mirror of
https://github.com/wu736139669/hapi.git
synced 2026-08-06 06:41:56 +00:00
Share slash command definitions
This commit is contained in:
@@ -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
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user