kimi-code/packages
haozhe.yang 053ee9a150 feat(server-v2): add sessions tasks api/v1 endpoints
Port the v1 server's `/sessions/{sid}/tasks*` REST surface onto
agent-core-v2:

- GET /sessions/{sid}/tasks — list with optional `status` filter
- GET /sessions/{sid}/tasks/{tid} — get by id with optional
  `with_output` / `output_bytes` preview
- POST /sessions/{sid}/tasks/{tid}:cancel — cancel with the
  idempotent 40904 `{cancelled:false}` shape

The routes resolve the main agent's `IBackgroundService` through the
core -> session -> agent scope chain and project `BackgroundTaskInfo`
onto the protocol `BackgroundTask`, matching the v1 wire contract
(schemas, error codes, and messages). The `:cancel` suffix is parsed
via the shared `parseActionSuffix` helper.
2026-06-30 10:26:12 +08:00
..
acp-adapter ci: release packages (#911) 2026-06-22 21:39:21 +08:00
agent-core feat: auto-create missing parent directories when writing files (#1065) 2026-06-24 14:05:27 +08:00
agent-core-v2 Merge remote-tracking branch 'origin/kimi-code-v2' into kimi-code-v2 2026-06-29 23:38:29 +08:00
kaos perf(kaos): optimize large file reads (#971) 2026-06-23 15:07:40 +08:00
kimi-migration-legacy feat(web): introduce Kimi web app and daemon gateway (#625) 2026-06-17 20:53:46 +08:00
kosong ci: release packages (#803) 2026-06-16 21:23:58 +08:00
migration-legacy ci: release packages (#911) 2026-06-22 21:39:21 +08:00
minidb feat(minidb): add embedded key-value database package 2026-06-28 16:30:10 +08:00
node-sdk feat: replace silent AGENTS.md truncation with a visible warning (#1040) 2026-06-24 12:26:17 +08:00
oauth fix: classify OAuth token refresh errors by cause (#838) 2026-06-17 18:34:42 +08:00
protocol feat(server-v2): port v1 /sessions/:sid/prompts routes 2026-06-29 20:59:02 +08:00
server feat: replace silent AGENTS.md truncation with a visible warning (#1040) 2026-06-24 12:26:17 +08:00
server-e2e feat(web): introduce Kimi web app and daemon gateway (#625) 2026-06-17 20:53:46 +08:00
server-v2 feat(server-v2): add sessions tasks api/v1 endpoints 2026-06-30 10:26:12 +08:00
telemetry feat: rework permission decision policies (#26) 2026-05-27 20:07:24 +08:00