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
|
|
@ -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
|
||||
})
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue