remote-codex 0.11.49 → 0.11.51

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (38) hide show
  1. package/README.md +38 -5
  2. package/apps/supervisor-api/dist/index.js +2137 -422
  3. package/apps/supervisor-web/dist/assets/index-7LiZQ3aJ.js +22 -0
  4. package/apps/supervisor-web/dist/assets/{index-Dy8PgXgw.css → index-Bg8FdhS1.css} +1 -1
  5. package/apps/supervisor-web/dist/assets/{thread-ui-gcslNXur.js → thread-ui-BbtcUwps.js} +25 -19
  6. package/apps/supervisor-web/dist/index.html +3 -3
  7. package/bin/remote-codex.mjs +4 -2
  8. package/package.json +7 -1
  9. package/packages/acp/src/agent-catalog.test.ts +25 -0
  10. package/packages/acp/src/agent-catalog.ts +3 -1
  11. package/packages/acp/src/capabilities.ts +139 -0
  12. package/packages/acp/src/capability-parity.test.ts +99 -0
  13. package/packages/acp/src/catalog-runtime.test.ts +200 -6
  14. package/packages/acp/src/catalog-runtime.ts +239 -31
  15. package/packages/acp/src/extension-registry.test.ts +198 -0
  16. package/packages/acp/src/extension-registry.ts +285 -0
  17. package/packages/acp/src/extensions.test.ts +45 -0
  18. package/packages/acp/src/extensions.ts +103 -0
  19. package/packages/acp/src/harness-contract.test.ts +81 -0
  20. package/packages/acp/src/harness-contract.ts +62 -0
  21. package/packages/acp/src/index.ts +7 -0
  22. package/packages/acp/src/item-mapper.ts +28 -2
  23. package/packages/acp/src/prompt-content.test.ts +90 -0
  24. package/packages/acp/src/prompt-content.ts +99 -0
  25. package/packages/acp/src/runtimeAdapter.test.ts +458 -5
  26. package/packages/acp/src/runtimeAdapter.ts +791 -60
  27. package/packages/acp/src/session-hydrator.test.ts +135 -0
  28. package/packages/acp/src/session-hydrator.ts +147 -0
  29. package/packages/acp/src/terminal-service.test.ts +21 -2
  30. package/packages/acp/src/terminal-service.ts +23 -3
  31. package/packages/acp/src/test/fixtures/fake-acp-agent.mjs +514 -0
  32. package/packages/acp/src/workspace-boundary.test.ts +32 -0
  33. package/packages/acp/src/workspace-boundary.ts +47 -0
  34. package/packages/agent-runtime/src/types.ts +61 -1
  35. package/packages/db/src/repositories.ts +3 -2
  36. package/packages/shared/src/index.ts +32 -1
  37. package/scripts/service-manager.mjs +13 -0
  38. package/apps/supervisor-web/dist/assets/index-DZI1aSXo.js +0 -22
package/README.md CHANGED
@@ -241,11 +241,12 @@ Override with `SERVICE_PORT` and `SERVICE_API_PORT`.
241
241
 
242
242
  ### ACP Agents
243
243
 
244
- Enable the generic ACP backend, then choose the concrete agent when creating a
245
- thread:
244
+ The generic ACP backend is enabled by default. Choose the concrete agent when
245
+ creating a thread. To customize the enabled backend set explicitly, include
246
+ `acp` in the list:
246
247
 
247
248
  ```bash
248
- REMOTE_CODEX_ENABLED_AGENT_PROVIDERS=acp \
249
+ REMOTE_CODEX_ENABLED_AGENT_PROVIDERS=codex,claude,opencode,acp \
249
250
  remote-codex start
250
251
  ```
251
252
 
@@ -272,6 +273,23 @@ normalized turn item in its supervisor SQLite database, so transcript history
272
273
  remains available even when an ACP agent resumes context without replaying old
273
274
  turns.
274
275
 
276
+ The [ACP core and harness extension convergence plan](docs/acp-core-harness-extension-convergence-plan.zh.md)
277
+ tracks durable history hydration, capability extensions, native Codex parity,
278
+ and the real E2E gates required before the native runtime can be retired.
279
+
280
+ Backend ownership is selected per thread. Keep both `codex` and `acp` enabled
281
+ while ACP capabilities are being rolled out: choose `acp` plus the concrete
282
+ agent for negotiated ACP behavior, or choose `codex` for native-only fork,
283
+ rollback, MCP management, skills, hooks, and host configuration. Existing
284
+ threads are never converted in place.
285
+
286
+ To roll back from Codex ACP, keep the existing ACP thread as readable history,
287
+ create or resume a thread with backend `codex`, and use Resume / Connect after a
288
+ Supervisor restart before sending the next prompt. Check
289
+ `/api/agent-runtimes/acp/status` for restart and failure counters and the
290
+ per-agent capability endpoint before re-enabling an ACP workflow. These
291
+ diagnostics contain counts and status only, not message text.
292
+
275
293
  ### Development
276
294
 
277
295
  ```bash
@@ -522,10 +540,11 @@ npm CLI 默认端口:
522
540
 
523
541
  ### ACP Agent
524
542
 
525
- 启用通用 ACP backend,然后在创建 thread 时选择具体 Agent
543
+ 通用 ACP backend 默认启用,创建 thread 时直接选择具体 Agent。若要显式定制
544
+ 启用的 backend 集合,请在列表中保留 `acp`:
526
545
 
527
546
  ```bash
528
- REMOTE_CODEX_ENABLED_AGENT_PROVIDERS=acp \
547
+ REMOTE_CODEX_ENABLED_AGENT_PROVIDERS=codex,claude,opencode,acp \
529
548
  remote-codex start
530
549
  ```
531
550
 
@@ -550,6 +569,20 @@ Supervisor 会先探测基础 Agent。基础 Agent 不存在时选项保持灰
550
569
  所有规范化后的 turn item 持久化到 supervisor SQLite,因此即使 Agent 恢复上下文时
551
570
  不回放旧 turn,前端 transcript 历史仍然可用。
552
571
 
572
+ [ACP Core 与 Harness 扩展收敛计划](docs/acp-core-harness-extension-convergence-plan.zh.md)
573
+ 记录 durable history hydration、扩展能力、原生 Codex parity,以及允许退役原生
574
+ runtime 前必须通过的真实 E2E gate。
575
+
576
+ Backend owner 按 thread 选择。ACP 仍在分阶段启用时应同时保留 `codex` 和 `acp`:
577
+ 选择 `acp` 并指定具体 Agent 可使用协商后的 ACP 能力;需要 native-only 的 fork、
578
+ rollback、MCP 管理、skills、hooks 或 host config 时选择 `codex`。已有 thread 不会
579
+ 被原地转换成另一种 backend。
580
+
581
+ 从 Codex ACP 回滚时,保留原 ACP thread 作为只读历史,创建或恢复 `codex` backend
582
+ thread;Supervisor 重启后先执行 Resume / Connect,再发送下一条 prompt。重新开放
583
+ ACP workflow 前检查 `/api/agent-runtimes/acp/status` 的 restart/failure 计数和
584
+ per-agent capability endpoint。这些诊断只包含计数和状态,不记录消息正文。
585
+
553
586
  ### 开发
554
587
 
555
588
  ```bash