refactor(core): hide mcp prompt command source

This commit is contained in:
Aiden Cline 2026-06-30 14:20:35 -05:00
commit 38299a7e35
6 changed files with 0 additions and 7 deletions

View file

@ -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
}>
}

View file

@ -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) {

View file

@ -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
})
})

View file

@ -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
})
}

View file

@ -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" })

View file

@ -5335,7 +5335,6 @@ export type CommandV2Info = {
description?: string
agent?: string
model?: ModelRef
source?: "command" | "mcp" | "skill"
subtask?: boolean
}