fix(cli): support project slash command completion (#245)

Add project-level slash command discovery with recursive nested command scanning, pass workingDirectory through slash-command handlers, and align hub/web source unions to include project commands.
This commit is contained in:
Jlovec
2026-03-05 12:50:59 +08:00
committed by GitHub
parent 55f08bd562
commit ef3328f48f
9 changed files with 164 additions and 17 deletions
+1 -1
View File
@@ -450,7 +450,7 @@ export class SyncEngine {
async listSlashCommands(sessionId: string, agent: string): Promise<{
success: boolean
commands?: Array<{ name: string; description?: string; source: 'builtin' | 'user' }>
commands?: Array<{ name: string; description?: string; source: 'builtin' | 'user' | 'plugin' | 'project' }>
error?: string
}> {
return await this.rpcGateway.listSlashCommands(sessionId, agent)