From 9b7ad8f97e90aacfae7ad3111d77f05ef43e27f8 Mon Sep 17 00:00:00 2001 From: Aiden Cline Date: Mon, 29 Jun 2026 19:00:12 -0500 Subject: [PATCH] refactor(core): keep mcp command metadata minimal --- packages/client/src/generated/types.ts | 1 - packages/core/src/plugin/mcp-command.ts | 1 - packages/schema/src/command.ts | 1 - packages/sdk/js/src/v2/gen/types.gen.ts | 1 - 4 files changed, 4 deletions(-) diff --git a/packages/client/src/generated/types.ts b/packages/client/src/generated/types.ts index cdf420977e..cffc6fac5c 100644 --- a/packages/client/src/generated/types.ts +++ b/packages/client/src/generated/types.ts @@ -2564,7 +2564,6 @@ export type CommandsListOutput = { 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/plugin/mcp-command.ts b/packages/core/src/plugin/mcp-command.ts index 30c7a4fd8f..6226da23fe 100644 --- a/packages/core/src/plugin/mcp-command.ts +++ b/packages/core/src/plugin/mcp-command.ts @@ -17,7 +17,6 @@ export const Plugin = define({ draft.update(commandName(prompt), (command) => { command.template = "" command.description = prompt.description - command.source = "mcp" }) } }), 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 f9ca5278ab..64aec23f62 100644 --- a/packages/sdk/js/src/v2/gen/types.gen.ts +++ b/packages/sdk/js/src/v2/gen/types.gen.ts @@ -5166,7 +5166,6 @@ export type CommandV2Info = { description?: string agent?: string model?: ModelRef - source?: "command" | "mcp" | "skill" subtask?: boolean }