diff --git a/packages/client/src/generated/types.ts b/packages/client/src/generated/types.ts index 8871d5bf5b..72796c3c34 100644 --- a/packages/client/src/generated/types.ts +++ b/packages/client/src/generated/types.ts @@ -2758,7 +2758,6 @@ export type CommandListOutput = { readonly description?: string readonly agent?: string readonly model?: { readonly id: string; readonly providerID: string; readonly variant?: string } - readonly source?: "command" | "mcp" | "skill" readonly subtask?: boolean }> } diff --git a/packages/core/src/config/plugin/command.ts b/packages/core/src/config/plugin/command.ts index 56e3169cd2..f9b31f8e45 100644 --- a/packages/core/src/config/plugin/command.ts +++ b/packages/core/src/config/plugin/command.ts @@ -31,7 +31,6 @@ export const Plugin = define({ for (const [name, command] of Object.entries(document.commands ?? {})) { draft.update(name, (item) => { item.template = command.template - item.source = "command" if (command.description !== undefined) item.description = command.description if (command.agent !== undefined) item.agent = command.agent if (command.model !== undefined) { diff --git a/packages/core/src/plugin/command.ts b/packages/core/src/plugin/command.ts index 6b02591aa3..cbafd68b50 100644 --- a/packages/core/src/plugin/command.ts +++ b/packages/core/src/plugin/command.ts @@ -14,12 +14,10 @@ export const Plugin = define({ draft.update("init", (command) => { command.template = PROMPT_INITIALIZE.replace("${path}", location.project.directory) command.description = "guided AGENTS.md setup" - command.source = "command" }) draft.update("review", (command) => { command.template = PROMPT_REVIEW.replace("${path}", location.project.directory) command.description = "review changes [commit|branch|pr], defaults to uncommitted" - command.source = "command" command.subtask = true }) }) diff --git a/packages/core/src/plugin/mcp-command.ts b/packages/core/src/plugin/mcp-command.ts index 344c6e4a2a..8e81ee3baf 100644 --- a/packages/core/src/plugin/mcp-command.ts +++ b/packages/core/src/plugin/mcp-command.ts @@ -34,7 +34,6 @@ export const Plugin = define({ if (!template || draft.get(command.name)) continue draft.update(command.name, (item) => { item.template = template - item.source = "mcp" if (command.description !== undefined) item.description = command.description }) } diff --git a/packages/schema/src/command.ts b/packages/schema/src/command.ts index d689cc7a5b..2bdf3a95c5 100644 --- a/packages/schema/src/command.ts +++ b/packages/schema/src/command.ts @@ -11,6 +11,5 @@ export const Info = Schema.Struct({ description: Schema.String.pipe(optional), agent: Schema.String.pipe(optional), model: Model.Ref.pipe(optional), - source: Schema.Literals(["command", "mcp", "skill"]).pipe(optional), subtask: Schema.Boolean.pipe(optional), }).annotate({ identifier: "CommandV2.Info" }) diff --git a/packages/sdk/js/src/v2/gen/types.gen.ts b/packages/sdk/js/src/v2/gen/types.gen.ts index bf368f9e6b..4788320adc 100644 --- a/packages/sdk/js/src/v2/gen/types.gen.ts +++ b/packages/sdk/js/src/v2/gen/types.gen.ts @@ -5335,7 +5335,6 @@ export type CommandV2Info = { description?: string agent?: string model?: ModelRef - source?: "command" | "mcp" | "skill" subtask?: boolean }