refactor(core): hide mcp prompt command source
This commit is contained in:
parent
118bf05f32
commit
38299a7e35
6 changed files with 0 additions and 7 deletions
|
|
@ -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
|
||||
}>
|
||||
}
|
||||
|
|
|
|||
|
|
@ -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) {
|
||||
|
|
|
|||
|
|
@ -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
|
||||
})
|
||||
})
|
||||
|
|
|
|||
|
|
@ -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
|
||||
})
|
||||
}
|
||||
|
|
|
|||
|
|
@ -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" })
|
||||
|
|
|
|||
|
|
@ -5335,7 +5335,6 @@ export type CommandV2Info = {
|
|||
description?: string
|
||||
agent?: string
|
||||
model?: ModelRef
|
||||
source?: "command" | "mcp" | "skill"
|
||||
subtask?: boolean
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue