export type AiAgentToolSource = "builtin" | "mcp" | "custom";

export type AiAgentTool = {
  id: string;
  displayName: string;
  modelDescription: string;
  // v1 先用“文字 schema”，后续再引入 zod/jsonschema
  inputSchemaText: string;
  source: AiAgentToolSource;
  requiresConfirmation: boolean;
  isWriteTool: boolean;
};

export type AiAgentToolSet = {
  id: string;
  displayName: string;
  toolIds: string[];
};

export type ToolPermissionMode = "allow" | "confirm" | "deny";

export type ToolPermissions = {
  // 默认：读允许、写确认（和 design 文档一致）
  read: ToolPermissionMode;
  write: ToolPermissionMode;
};

