fix(mcp): refresh prompt slash commands
This commit is contained in:
parent
dbbe67f066
commit
594eddb288
9 changed files with 172 additions and 17 deletions
|
|
@ -74,7 +74,9 @@ export type Event =
|
|||
| EventTuiToastShow2
|
||||
| EventTuiSessionSelect2
|
||||
| EventMcpToolsChanged
|
||||
| EventMcpCatalogChanged
|
||||
| EventMcpBrowserOpenFailed
|
||||
| EventCommandChanged
|
||||
| EventCommandExecuted
|
||||
| EventProjectUpdated
|
||||
| EventSessionStatus
|
||||
|
|
@ -1468,6 +1470,14 @@ export type GlobalEvent = {
|
|||
server: string
|
||||
}
|
||||
}
|
||||
| {
|
||||
id: string
|
||||
type: "mcp.catalog.changed"
|
||||
properties: {
|
||||
server: string
|
||||
kinds: Array<"prompts" | "tools">
|
||||
}
|
||||
}
|
||||
| {
|
||||
id: string
|
||||
type: "mcp.browser.open.failed"
|
||||
|
|
@ -1476,6 +1486,13 @@ export type GlobalEvent = {
|
|||
url: string
|
||||
}
|
||||
}
|
||||
| {
|
||||
id: string
|
||||
type: "command.changed"
|
||||
properties: {
|
||||
[key: string]: unknown
|
||||
}
|
||||
}
|
||||
| {
|
||||
id: string
|
||||
type: "command.executed"
|
||||
|
|
@ -5075,6 +5092,15 @@ export type EventMcpToolsChanged = {
|
|||
}
|
||||
}
|
||||
|
||||
export type EventMcpCatalogChanged = {
|
||||
id: string
|
||||
type: "mcp.catalog.changed"
|
||||
properties: {
|
||||
server: string
|
||||
kinds: Array<"prompts" | "tools">
|
||||
}
|
||||
}
|
||||
|
||||
export type EventMcpBrowserOpenFailed = {
|
||||
id: string
|
||||
type: "mcp.browser.open.failed"
|
||||
|
|
@ -5084,6 +5110,14 @@ export type EventMcpBrowserOpenFailed = {
|
|||
}
|
||||
}
|
||||
|
||||
export type EventCommandChanged = {
|
||||
id: string
|
||||
type: "command.changed"
|
||||
properties: {
|
||||
[key: string]: unknown
|
||||
}
|
||||
}
|
||||
|
||||
export type EventCommandExecuted = {
|
||||
id: string
|
||||
type: "command.executed"
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue