Skip to content

[serve][MVP] Runtime/Lifecycle + /v1/health + /v1/status #38

@ARCJ137442

Description

@ARCJ137442

Parent: #35

Goal

实现 /serve 的基础运行时与生命周期管理,为后续输入注入与命令层提供稳定底座。

Scope

  • ServeRuntimeState(running、boundHost、boundPort、startedAt、handle、基础统计)
  • start/stop 生命周期与幂等语义
  • 端口冲突自动回退并记录最终端口
  • 与 TUI 进程强绑定(退出自动停服)
  • GET /v1/health
  • GET /v1/statusrunning,boundHost,boundPort,activeThreadId,busy,queueDepth,startedAt

Out of Scope

  • /v1/input 业务语义
  • slash 命令文案与交互细节

Definition of Done

Metadata

Metadata

Assignees

No one assigned

    Labels

    enhancementNew feature or request

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions