feat(server): 添加统一命令系统 API

- 新增 /api/commands 路由,支持列出、查询、执行和搜索命令
- Server 通过动态导入 Core 的 CommandRegistry 和 CommandExecutor
- CLI、Web、Desktop 客户端均可通过 REST API 访问斜杠命令
- 支持三层命令优先级: project > user > builtin
This commit is contained in:
2025-12-12 18:24:04 +08:00
parent ada9f890c6
commit 61735317a0
7 changed files with 508 additions and 1 deletions
+1
View File
@@ -8,3 +8,4 @@ export { sessionsRouter } from './sessions.js';
export { toolsRouter, registerTool, getRegisteredTools } from './tools.js';
export { configRouter, getConfig, setConfig } from './config.js';
export { filesRouter, setWorkingDirectory, getWorkingDirectory } from './files.js';
export { commandsRouter } from './commands.js';