claude-code-best/src/server/routes
Askhz 084d3fa468 feat: serve 模式 GET /session 接口从磁盘读取历史会话列表
- GET /session:调用 listSessionsImpl 扫描 ~/.claude/projects/ 历史 transcript,
  合并内存中活跃 handle 的运行时状态,支持 ?dir= 过滤
- GET /session/status:补充磁盘历史 session(全部标为 idle),不再返回空对象
- POST /session/:id/command_async、revert、summarize:补充缺失接口
- Bun.serve 设置 idleTimeout: 0,修复 SSE 长连接被 10s 超时切断的问题

Co-Authored-By: Claude Opus 4.7 <noreply@anthropic.com>
2026-05-08 17:32:04 +08:00
..
event.ts feat: 实现基于 Hono 的 HTTP API 服务器(serve 模式) 2026-05-06 14:32:04 +08:00
find.ts feat: 实现基于 Hono 的 HTTP API 服务器(serve 模式) 2026-05-06 14:32:04 +08:00
health.ts feat: 实现基于 Hono 的 HTTP API 服务器(serve 模式) 2026-05-06 14:32:04 +08:00
info.ts fix: 修复 serve 模式 GET /agent 接口,直接从内置 agent 列表加载数据 2026-05-07 18:00:52 +08:00
message.ts feat: 实现基于 Hono 的 HTTP API 服务器(serve 模式) 2026-05-06 14:32:04 +08:00
permission.ts feat: 实现基于 Hono 的 HTTP API 服务器(serve 模式) 2026-05-06 14:32:04 +08:00
provider.ts fix: 修复 serve 模式模型接口返回空数据 2026-05-07 20:08:27 +08:00
question.ts feat: 实现基于 Hono 的 HTTP API 服务器(serve 模式) 2026-05-06 14:32:04 +08:00
session.ts feat: serve 模式 GET /session 接口从磁盘读取历史会话列表 2026-05-08 17:32:04 +08:00