feat: 实现 Queue Q1 API 和 CLI 骨架

This commit is contained in:
Codex
2026-06-01 22:20:09 +08:00
parent f4a26e5961
commit 237b10c4da
11 changed files with 566 additions and 14 deletions
+2 -2
View File
@@ -161,8 +161,8 @@ Queue 首版新增或扩展的稳定表方向:
| 规格项 | 状态 | 说明 |
| --- | --- | --- |
| AgentRun Queue 直接吸收规格 | 已定义 | 本文为 Queue 吸收 Code Queue 的首版权威规格。 |
| Queue RESTful API | 实现 | 计划通过 `agentrun-mgr` 暴露,仍使用短请求和轻量轮询。 |
| Queue CLI | 实现 | 计划加入 `queue ...``sessions ...` 命令族。 |
| Queue RESTful API | 实现/Q1 | 通过 `agentrun-mgr` 暴露 `submit/list/show/stats/read/cancel/commander`,使用短请求和 Queue version/cursor 轻量轮询;Q2 再接入 attempt 与真实执行。 |
| Queue CLI | 实现/Q1 | 加入 `queue submit/list/show/stats/commander/read/cancel`Queue 命令只返回 task summary、stats、read cursor`sessionPath`。 |
| Session API/CLI | 待实现 | Queue 只返回 `sessionPath`Session 层承接输出、trace 和控制。 |
| Scheduler 接入 | 待实现 | 旧 Code Queue scheduler 不保留;AgentRun Scheduler 是唯一调度方向。 |
| OA/Event/integrations | 不采用 | 首版不做,后续如需外部 connector/sink 必须单独立规格。 |