Share slash command definitions

This commit is contained in:
weishu
2026-05-21 10:36:25 +08:00
parent d6f97065c1
commit 2e1e2d39db
10 changed files with 91 additions and 148 deletions
+14
View File
@@ -93,3 +93,17 @@ export type OpencodeModelsResponse = {
}
export type ListOpencodeModelsResponse = OpencodeModelsResponse
export type SlashCommand = {
name: string
description?: string
source: 'builtin' | 'user' | 'plugin' | 'project'
content?: string
pluginName?: string
}
export type SlashCommandsResponse = {
success: boolean
commands?: SlashCommand[]
error?: string
}