Parent: #35
Goal
实现 /serve 的基础运行时与生命周期管理,为后续输入注入与命令层提供稳定底座。
Scope
ServeRuntimeState(running、boundHost、boundPort、startedAt、handle、基础统计)
start/stop 生命周期与幂等语义
- 端口冲突自动回退并记录最终端口
- 与 TUI 进程强绑定(退出自动停服)
GET /v1/health
GET /v1/status(running,boundHost,boundPort,activeThreadId,busy,queueDepth,startedAt)
Out of Scope
/v1/input 业务语义
- slash 命令文案与交互细节
Definition of Done
Parent: #35
Goal
实现
/serve的基础运行时与生命周期管理,为后续输入注入与命令层提供稳定底座。Scope
ServeRuntimeState(running、boundHost、boundPort、startedAt、handle、基础统计)start/stop生命周期与幂等语义GET /v1/healthGET /v1/status(running,boundHost,boundPort,activeThreadId,busy,queueDepth,startedAt)Out of Scope
/v1/input业务语义Definition of Done
health/status字段与类型符合 Feature Epic: /serve + /serve-mcp 本地可编排入口(HTTP 注入 + MCP 对外) #35 锁定规格