@zvada/agent-server 0.3.18 → 0.3.20
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.
- package/AGENTS.md +11 -26
- package/CHANGELOG.md +1041 -1
- package/README.md +40 -40
- package/dist/types/accounts/chatgpt.d.ts +34 -0
- package/dist/types/accounts/chatgpt.d.ts.map +1 -0
- package/dist/types/accounts/check.d.ts +24 -0
- package/dist/types/accounts/check.d.ts.map +1 -0
- package/dist/types/accounts/claude.d.ts +21 -0
- package/dist/types/accounts/claude.d.ts.map +1 -0
- package/dist/types/accounts/endpoint.d.ts +50 -0
- package/dist/types/accounts/endpoint.d.ts.map +1 -0
- package/dist/types/accounts/http.d.ts +38 -0
- package/dist/types/accounts/http.d.ts.map +1 -0
- package/dist/types/accounts/index.d.ts +6 -0
- package/dist/types/accounts/index.d.ts.map +1 -0
- package/dist/types/client/client.d.ts +272 -0
- package/dist/types/client/client.d.ts.map +1 -0
- package/dist/types/client/connection.d.ts +160 -0
- package/dist/types/client/connection.d.ts.map +1 -0
- package/dist/types/client/history.d.ts +8 -0
- package/dist/types/client/history.d.ts.map +1 -0
- package/dist/types/client/index.d.ts +5 -0
- package/dist/types/client/index.d.ts.map +1 -0
- package/dist/types/client/listeners.d.ts +8 -0
- package/dist/types/client/listeners.d.ts.map +1 -0
- package/dist/types/client/logins.d.ts +35 -0
- package/dist/types/client/logins.d.ts.map +1 -0
- package/dist/types/client/rpc.d.ts +46 -0
- package/dist/types/client/rpc.d.ts.map +1 -0
- package/dist/types/client/streams.d.ts +150 -0
- package/dist/types/client/streams.d.ts.map +1 -0
- package/dist/types/client/transports.d.ts +35 -0
- package/dist/types/client/transports.d.ts.map +1 -0
- package/dist/types/client/turns.d.ts +81 -0
- package/dist/types/client/turns.d.ts.map +1 -0
- package/dist/types/core/agents/acp/acp-agent.d.ts +68 -0
- package/dist/types/core/agents/acp/acp-agent.d.ts.map +1 -0
- package/dist/types/core/agents/acp/adapter.d.ts +39 -0
- package/dist/types/core/agents/acp/adapter.d.ts.map +1 -0
- package/dist/types/core/agents/acp/client.d.ts +90 -0
- package/dist/types/core/agents/acp/client.d.ts.map +1 -0
- package/dist/types/core/agents/acp/known-agents.d.ts +35 -0
- package/dist/types/core/agents/acp/known-agents.d.ts.map +1 -0
- package/dist/types/core/agents/acp/mappings.d.ts +46 -0
- package/dist/types/core/agents/acp/mappings.d.ts.map +1 -0
- package/dist/types/core/agents/acp/requests.d.ts +26 -0
- package/dist/types/core/agents/acp/requests.d.ts.map +1 -0
- package/dist/types/core/agents/attachments.d.ts +11 -0
- package/dist/types/core/agents/attachments.d.ts.map +1 -0
- package/dist/types/core/agents/base.d.ts +227 -0
- package/dist/types/core/agents/base.d.ts.map +1 -0
- package/dist/types/core/agents/claude-code/adapter.d.ts +58 -0
- package/dist/types/core/agents/claude-code/adapter.d.ts.map +1 -0
- package/dist/types/core/agents/claude-code/approvals.d.ts +26 -0
- package/dist/types/core/agents/claude-code/approvals.d.ts.map +1 -0
- package/dist/types/core/agents/claude-code/claude-agent.d.ts +70 -0
- package/dist/types/core/agents/claude-code/claude-agent.d.ts.map +1 -0
- package/dist/types/core/agents/claude-code/credentials.d.ts +54 -0
- package/dist/types/core/agents/claude-code/credentials.d.ts.map +1 -0
- package/dist/types/core/agents/claude-code/events.d.ts +42 -0
- package/dist/types/core/agents/claude-code/events.d.ts.map +1 -0
- package/dist/types/core/agents/claude-code/login.d.ts +61 -0
- package/dist/types/core/agents/claude-code/login.d.ts.map +1 -0
- package/dist/types/core/agents/claude-code/mcp.d.ts +52 -0
- package/dist/types/core/agents/claude-code/mcp.d.ts.map +1 -0
- package/dist/types/core/agents/claude-code/models.d.ts +30 -0
- package/dist/types/core/agents/claude-code/models.d.ts.map +1 -0
- package/dist/types/core/agents/claude-code/options.d.ts +183 -0
- package/dist/types/core/agents/claude-code/options.d.ts.map +1 -0
- package/dist/types/core/agents/claude-code/outcome.d.ts +50 -0
- package/dist/types/core/agents/claude-code/outcome.d.ts.map +1 -0
- package/dist/types/core/agents/claude-code/session-pool.d.ts +36 -0
- package/dist/types/core/agents/claude-code/session-pool.d.ts.map +1 -0
- package/dist/types/core/agents/claude-code/session.d.ts +148 -0
- package/dist/types/core/agents/claude-code/session.d.ts.map +1 -0
- package/dist/types/core/agents/claude-code/spawn.d.ts +29 -0
- package/dist/types/core/agents/claude-code/spawn.d.ts.map +1 -0
- package/dist/types/core/agents/claude-code/spend.d.ts +58 -0
- package/dist/types/core/agents/claude-code/spend.d.ts.map +1 -0
- package/dist/types/core/agents/claude-code/tools.d.ts +4 -0
- package/dist/types/core/agents/claude-code/tools.d.ts.map +1 -0
- package/dist/types/core/agents/claude-code/turn-usage.d.ts +52 -0
- package/dist/types/core/agents/claude-code/turn-usage.d.ts.map +1 -0
- package/dist/types/core/agents/claude-code/turn.d.ts +121 -0
- package/dist/types/core/agents/claude-code/turn.d.ts.map +1 -0
- package/dist/types/core/agents/codex-app-server/adapter.d.ts +59 -0
- package/dist/types/core/agents/codex-app-server/adapter.d.ts.map +1 -0
- package/dist/types/core/agents/codex-app-server/client.d.ts +116 -0
- package/dist/types/core/agents/codex-app-server/client.d.ts.map +1 -0
- package/dist/types/core/agents/codex-app-server/codex-agent.d.ts +113 -0
- package/dist/types/core/agents/codex-app-server/codex-agent.d.ts.map +1 -0
- package/dist/types/core/agents/codex-app-server/commands.d.ts +66 -0
- package/dist/types/core/agents/codex-app-server/commands.d.ts.map +1 -0
- package/dist/types/core/agents/codex-app-server/credentials.d.ts +49 -0
- package/dist/types/core/agents/codex-app-server/credentials.d.ts.map +1 -0
- package/dist/types/core/agents/codex-app-server/effort.d.ts +12 -0
- package/dist/types/core/agents/codex-app-server/effort.d.ts.map +1 -0
- package/dist/types/core/agents/codex-app-server/events.d.ts +45 -0
- package/dist/types/core/agents/codex-app-server/events.d.ts.map +1 -0
- package/dist/types/core/agents/codex-app-server/homes.d.ts +20 -0
- package/dist/types/core/agents/codex-app-server/homes.d.ts.map +1 -0
- package/dist/types/core/agents/codex-app-server/input.d.ts +26 -0
- package/dist/types/core/agents/codex-app-server/input.d.ts.map +1 -0
- package/dist/types/core/agents/codex-app-server/items.d.ts +31 -0
- package/dist/types/core/agents/codex-app-server/items.d.ts.map +1 -0
- package/dist/types/core/agents/codex-app-server/login.d.ts +38 -0
- package/dist/types/core/agents/codex-app-server/login.d.ts.map +1 -0
- package/dist/types/core/agents/codex-app-server/mcp.d.ts +62 -0
- package/dist/types/core/agents/codex-app-server/mcp.d.ts.map +1 -0
- package/dist/types/core/agents/codex-app-server/models.d.ts +67 -0
- package/dist/types/core/agents/codex-app-server/models.d.ts.map +1 -0
- package/dist/types/core/agents/codex-app-server/options.d.ts +40 -0
- package/dist/types/core/agents/codex-app-server/options.d.ts.map +1 -0
- package/dist/types/core/agents/codex-app-server/plan-approval.d.ts +19 -0
- package/dist/types/core/agents/codex-app-server/plan-approval.d.ts.map +1 -0
- package/dist/types/core/agents/codex-app-server/protocol.d.ts +99 -0
- package/dist/types/core/agents/codex-app-server/protocol.d.ts.map +1 -0
- package/dist/types/core/agents/codex-app-server/requests.d.ts +42 -0
- package/dist/types/core/agents/codex-app-server/requests.d.ts.map +1 -0
- package/dist/types/core/agents/codex-app-server/session.d.ts +96 -0
- package/dist/types/core/agents/codex-app-server/session.d.ts.map +1 -0
- package/dist/types/core/agents/codex-app-server/subagents.d.ts +53 -0
- package/dist/types/core/agents/codex-app-server/subagents.d.ts.map +1 -0
- package/dist/types/core/agents/codex-app-server/thread-settings.d.ts +87 -0
- package/dist/types/core/agents/codex-app-server/thread-settings.d.ts.map +1 -0
- package/dist/types/core/agents/codex-app-server/turn-items.d.ts +33 -0
- package/dist/types/core/agents/codex-app-server/turn-items.d.ts.map +1 -0
- package/dist/types/core/agents/codex-app-server/turn.d.ts +163 -0
- package/dist/types/core/agents/codex-app-server/turn.d.ts.map +1 -0
- package/dist/types/core/agents/config-fingerprint.d.ts +5 -0
- package/dist/types/core/agents/config-fingerprint.d.ts.map +1 -0
- package/dist/types/core/agents/credentials.d.ts +28 -0
- package/dist/types/core/agents/credentials.d.ts.map +1 -0
- package/dist/types/core/agents/elicitation.d.ts +37 -0
- package/dist/types/core/agents/elicitation.d.ts.map +1 -0
- package/dist/types/core/agents/inherit-config.d.ts +18 -0
- package/dist/types/core/agents/inherit-config.d.ts.map +1 -0
- package/dist/types/core/agents/login.d.ts +67 -0
- package/dist/types/core/agents/login.d.ts.map +1 -0
- package/dist/types/core/agents/mcp-config.d.ts +57 -0
- package/dist/types/core/agents/mcp-config.d.ts.map +1 -0
- package/dist/types/core/agents/plan.d.ts +16 -0
- package/dist/types/core/agents/plan.d.ts.map +1 -0
- package/dist/types/core/agents/registry.d.ts +30 -0
- package/dist/types/core/agents/registry.d.ts.map +1 -0
- package/dist/types/core/agents/session-agent.d.ts +48 -0
- package/dist/types/core/agents/session-agent.d.ts.map +1 -0
- package/dist/types/core/agents/session-pool.d.ts +41 -0
- package/dist/types/core/agents/session-pool.d.ts.map +1 -0
- package/dist/types/core/agents/stderr-tail.d.ts +28 -0
- package/dist/types/core/agents/stderr-tail.d.ts.map +1 -0
- package/dist/types/core/agents/thinking-levels.d.ts +4 -0
- package/dist/types/core/agents/thinking-levels.d.ts.map +1 -0
- package/dist/types/core/agents/types.d.ts +124 -0
- package/dist/types/core/agents/types.d.ts.map +1 -0
- package/dist/types/core/diagnostics.d.ts +36 -0
- package/dist/types/core/diagnostics.d.ts.map +1 -0
- package/dist/types/core/index.d.ts +29 -0
- package/dist/types/core/index.d.ts.map +1 -0
- package/dist/types/core/presets.d.ts +80 -0
- package/dist/types/core/presets.d.ts.map +1 -0
- package/dist/types/core/processes/identity.d.ts +31 -0
- package/dist/types/core/processes/identity.d.ts.map +1 -0
- package/dist/types/core/processes/lifeline.d.ts +47 -0
- package/dist/types/core/processes/lifeline.d.ts.map +1 -0
- package/dist/types/core/processes/native-processes.d.ts +130 -0
- package/dist/types/core/processes/native-processes.d.ts.map +1 -0
- package/dist/types/core/processes/process-table.d.ts +43 -0
- package/dist/types/core/processes/process-table.d.ts.map +1 -0
- package/dist/types/core/provision/cache-trust.d.ts +13 -0
- package/dist/types/core/provision/cache-trust.d.ts.map +1 -0
- package/dist/types/core/provision/cache-usage.d.ts +14 -0
- package/dist/types/core/provision/cache-usage.d.ts.map +1 -0
- package/dist/types/core/provision/checksums.d.ts +46 -0
- package/dist/types/core/provision/checksums.d.ts.map +1 -0
- package/dist/types/core/provision/extract.d.ts +7 -0
- package/dist/types/core/provision/extract.d.ts.map +1 -0
- package/dist/types/core/provision/index.d.ts +5 -0
- package/dist/types/core/provision/index.d.ts.map +1 -0
- package/dist/types/core/provision/install-build.d.ts +36 -0
- package/dist/types/core/provision/install-build.d.ts.map +1 -0
- package/dist/types/core/provision/npm.d.ts +40 -0
- package/dist/types/core/provision/npm.d.ts.map +1 -0
- package/dist/types/core/provision/pins.d.ts +24 -0
- package/dist/types/core/provision/pins.d.ts.map +1 -0
- package/dist/types/core/provision/platform.d.ts +28 -0
- package/dist/types/core/provision/platform.d.ts.map +1 -0
- package/dist/types/core/provision/provisioner.d.ts +189 -0
- package/dist/types/core/provision/provisioner.d.ts.map +1 -0
- package/dist/types/core/provision/releases.d.ts +8 -0
- package/dist/types/core/provision/releases.d.ts.map +1 -0
- package/dist/types/core/provision/tools.d.ts +81 -0
- package/dist/types/core/provision/tools.d.ts.map +1 -0
- package/dist/types/core/proxy/anthropic-proxy.d.ts +52 -0
- package/dist/types/core/proxy/anthropic-proxy.d.ts.map +1 -0
- package/dist/types/core/proxy/api-key-store.d.ts +37 -0
- package/dist/types/core/proxy/api-key-store.d.ts.map +1 -0
- package/dist/types/core/proxy/index.d.ts +3 -0
- package/dist/types/core/proxy/index.d.ts.map +1 -0
- package/dist/types/core/proxy/loopback.d.ts +14 -0
- package/dist/types/core/proxy/loopback.d.ts.map +1 -0
- package/dist/types/core/runtime/agent-runtime.d.ts +181 -0
- package/dist/types/core/runtime/agent-runtime.d.ts.map +1 -0
- package/dist/types/core/runtime/event-processor.d.ts +87 -0
- package/dist/types/core/runtime/event-processor.d.ts.map +1 -0
- package/dist/types/core/runtime/event-sink.d.ts +44 -0
- package/dist/types/core/runtime/event-sink.d.ts.map +1 -0
- package/dist/types/core/runtime/harness-clis.d.ts +10 -0
- package/dist/types/core/runtime/harness-clis.d.ts.map +1 -0
- package/dist/types/core/runtime/harness-logins.d.ts +68 -0
- package/dist/types/core/runtime/harness-logins.d.ts.map +1 -0
- package/dist/types/core/runtime/login-reads.d.ts +28 -0
- package/dist/types/core/runtime/login-reads.d.ts.map +1 -0
- package/dist/types/core/runtime/model-lists.d.ts +37 -0
- package/dist/types/core/runtime/model-lists.d.ts.map +1 -0
- package/dist/types/core/runtime/permission-policy.d.ts +61 -0
- package/dist/types/core/runtime/permission-policy.d.ts.map +1 -0
- package/dist/types/core/runtime/request-broker.d.ts +49 -0
- package/dist/types/core/runtime/request-broker.d.ts.map +1 -0
- package/dist/types/core/runtime/steering.d.ts +38 -0
- package/dist/types/core/runtime/steering.d.ts.map +1 -0
- package/dist/types/core/runtime/turn-outcome.d.ts +21 -0
- package/dist/types/core/runtime/turn-outcome.d.ts.map +1 -0
- package/dist/types/core/runtime/turn.d.ts +121 -0
- package/dist/types/core/runtime/turn.d.ts.map +1 -0
- package/dist/types/core/utils/bounded.d.ts +6 -0
- package/dist/types/core/utils/bounded.d.ts.map +1 -0
- package/dist/types/core/utils/deadline.d.ts +14 -0
- package/dist/types/core/utils/deadline.d.ts.map +1 -0
- package/dist/types/core/utils/errors.d.ts +104 -0
- package/dist/types/core/utils/errors.d.ts.map +1 -0
- package/dist/types/core/utils/is-record.d.ts +3 -0
- package/dist/types/core/utils/is-record.d.ts.map +1 -0
- package/dist/types/core/utils/loopback.d.ts +6 -0
- package/dist/types/core/utils/loopback.d.ts.map +1 -0
- package/dist/types/index.d.ts +2 -0
- package/dist/types/index.d.ts.map +1 -0
- package/dist/types/protocol/account.d.ts +26 -0
- package/dist/types/protocol/account.d.ts.map +1 -0
- package/dist/types/protocol/async-queue.d.ts +21 -0
- package/dist/types/protocol/async-queue.d.ts.map +1 -0
- package/dist/types/protocol/auth.d.ts +228 -0
- package/dist/types/protocol/auth.d.ts.map +1 -0
- package/dist/types/protocol/canonical.d.ts +9 -0
- package/dist/types/protocol/canonical.d.ts.map +1 -0
- package/dist/types/protocol/clis.d.ts +74 -0
- package/dist/types/protocol/clis.d.ts.map +1 -0
- package/dist/types/protocol/config.d.ts +200 -0
- package/dist/types/protocol/config.d.ts.map +1 -0
- package/dist/types/protocol/conversation.d.ts +942 -0
- package/dist/types/protocol/conversation.d.ts.map +1 -0
- package/dist/types/protocol/credentials.d.ts +145 -0
- package/dist/types/protocol/credentials.d.ts.map +1 -0
- package/dist/types/protocol/errors.d.ts +36 -0
- package/dist/types/protocol/errors.d.ts.map +1 -0
- package/dist/types/protocol/execution.d.ts +28 -0
- package/dist/types/protocol/execution.d.ts.map +1 -0
- package/dist/types/protocol/factories.d.ts +94 -0
- package/dist/types/protocol/factories.d.ts.map +1 -0
- package/dist/types/protocol/guards.d.ts +55 -0
- package/dist/types/protocol/guards.d.ts.map +1 -0
- package/dist/types/protocol/harness.d.ts +70 -0
- package/dist/types/protocol/harness.d.ts.map +1 -0
- package/dist/types/protocol/history.d.ts +318 -0
- package/dist/types/protocol/history.d.ts.map +1 -0
- package/dist/types/protocol/ids.d.ts +9 -0
- package/dist/types/protocol/ids.d.ts.map +1 -0
- package/dist/types/protocol/index.d.ts +35 -0
- package/dist/types/protocol/index.d.ts.map +1 -0
- package/dist/types/protocol/lifecycle.d.ts +1190 -0
- package/dist/types/protocol/lifecycle.d.ts.map +1 -0
- package/dist/types/protocol/meta-keys.d.ts +17 -0
- package/dist/types/protocol/meta-keys.d.ts.map +1 -0
- package/dist/types/protocol/meta.d.ts +13 -0
- package/dist/types/protocol/meta.d.ts.map +1 -0
- package/dist/types/protocol/model-catalog.d.ts +11 -0
- package/dist/types/protocol/model-catalog.d.ts.map +1 -0
- package/dist/types/protocol/models.d.ts +107 -0
- package/dist/types/protocol/models.d.ts.map +1 -0
- package/dist/types/protocol/part-input.d.ts +101 -0
- package/dist/types/protocol/part-input.d.ts.map +1 -0
- package/dist/types/protocol/parts.d.ts +357 -0
- package/dist/types/protocol/parts.d.ts.map +1 -0
- package/dist/types/protocol/reduce.d.ts +26 -0
- package/dist/types/protocol/reduce.d.ts.map +1 -0
- package/dist/types/protocol/selectors.d.ts +64 -0
- package/dist/types/protocol/selectors.d.ts.map +1 -0
- package/dist/types/protocol/seq-cursor.d.ts +66 -0
- package/dist/types/protocol/seq-cursor.d.ts.map +1 -0
- package/dist/types/protocol/stop-reasons.d.ts +33 -0
- package/dist/types/protocol/stop-reasons.d.ts.map +1 -0
- package/dist/types/protocol/thinking.d.ts +28 -0
- package/dist/types/protocol/thinking.d.ts.map +1 -0
- package/dist/types/protocol/time.d.ts +21 -0
- package/dist/types/protocol/time.d.ts.map +1 -0
- package/dist/types/protocol/tokens.d.ts +29 -0
- package/dist/types/protocol/tokens.d.ts.map +1 -0
- package/dist/types/protocol/tool-closure.d.ts +25 -0
- package/dist/types/protocol/tool-closure.d.ts.map +1 -0
- package/dist/types/protocol/tool-state.d.ts +209 -0
- package/dist/types/protocol/tool-state.d.ts.map +1 -0
- package/dist/types/protocol/verify.d.ts +52 -0
- package/dist/types/protocol/verify.d.ts.map +1 -0
- package/dist/types/protocol/vocabulary.d.ts +19 -0
- package/dist/types/protocol/vocabulary.d.ts.map +1 -0
- package/dist/types/protocol/wire-api.d.ts +1983 -0
- package/dist/types/protocol/wire-api.d.ts.map +1 -0
- package/dist/types/protocol/wire.d.ts +1758 -0
- package/dist/types/protocol/wire.d.ts.map +1 -0
- package/dist/types/server/acp/binding.d.ts +33 -0
- package/dist/types/server/acp/binding.d.ts.map +1 -0
- package/dist/types/server/acp/session-records.d.ts +17 -0
- package/dist/types/server/acp/session-records.d.ts.map +1 -0
- package/dist/types/server/acp/translate.d.ts +48 -0
- package/dist/types/server/acp/translate.d.ts.map +1 -0
- package/dist/types/server/agent-server.d.ts +121 -0
- package/dist/types/server/agent-server.d.ts.map +1 -0
- package/dist/types/server/feedback.d.ts +37 -0
- package/dist/types/server/feedback.d.ts.map +1 -0
- package/dist/types/server/history.d.ts +15 -0
- package/dist/types/server/history.d.ts.map +1 -0
- package/dist/types/server/index.d.ts +7 -0
- package/dist/types/server/index.d.ts.map +1 -0
- package/dist/types/server/install.d.ts +42 -0
- package/dist/types/server/install.d.ts.map +1 -0
- package/dist/types/server/open-parts.d.ts +27 -0
- package/dist/types/server/open-parts.d.ts.map +1 -0
- package/dist/types/server/routes.d.ts +61 -0
- package/dist/types/server/routes.d.ts.map +1 -0
- package/dist/types/server/secrets.d.ts +11 -0
- package/dist/types/server/secrets.d.ts.map +1 -0
- package/dist/types/server/session-gate.d.ts +32 -0
- package/dist/types/server/session-gate.d.ts.map +1 -0
- package/dist/types/server/session-log.d.ts +39 -0
- package/dist/types/server/session-log.d.ts.map +1 -0
- package/dist/types/server/session-store.d.ts +119 -0
- package/dist/types/server/session-store.d.ts.map +1 -0
- package/dist/types/server/subscriptions.d.ts +74 -0
- package/dist/types/server/subscriptions.d.ts.map +1 -0
- package/dist/types/server/transports.d.ts +74 -0
- package/dist/types/server/transports.d.ts.map +1 -0
- package/dist/types/server/wire-error.d.ts +9 -0
- package/dist/types/server/wire-error.d.ts.map +1 -0
- package/dist/types/sync/event-log.d.ts +45 -0
- package/dist/types/sync/event-log.d.ts.map +1 -0
- package/dist/types/sync/fit.d.ts +40 -0
- package/dist/types/sync/fit.d.ts.map +1 -0
- package/dist/types/sync/history-reader.d.ts +8 -0
- package/dist/types/sync/history-reader.d.ts.map +1 -0
- package/dist/types/sync/history-sqlite.d.ts +37 -0
- package/dist/types/sync/history-sqlite.d.ts.map +1 -0
- package/dist/types/sync/history.d.ts +70 -0
- package/dist/types/sync/history.d.ts.map +1 -0
- package/dist/types/sync/index.d.ts +4 -0
- package/dist/types/sync/index.d.ts.map +1 -0
- package/dist/types/sync/journal-sqlite.d.ts +51 -0
- package/dist/types/sync/journal-sqlite.d.ts.map +1 -0
- package/dist/types/sync/journal.d.ts +107 -0
- package/dist/types/sync/journal.d.ts.map +1 -0
- package/dist/types/sync/live-tails.d.ts +30 -0
- package/dist/types/sync/live-tails.d.ts.map +1 -0
- package/dist/types/sync/node-sqlite.d.ts +7 -0
- package/dist/types/sync/node-sqlite.d.ts.map +1 -0
- package/dist/types/sync/projection.d.ts +10 -0
- package/dist/types/sync/projection.d.ts.map +1 -0
- package/dist/types/sync/recovery.d.ts +25 -0
- package/dist/types/sync/recovery.d.ts.map +1 -0
- package/dist/types/sync/retry.d.ts +25 -0
- package/dist/types/sync/retry.d.ts.map +1 -0
- package/dist/types/sync/schema.d.ts +4 -0
- package/dist/types/sync/schema.d.ts.map +1 -0
- package/dist/types/sync/sql.d.ts +38 -0
- package/dist/types/sync/sql.d.ts.map +1 -0
- package/dist/types/sync/sqlite-file.d.ts +9 -0
- package/dist/types/sync/sqlite-file.d.ts.map +1 -0
- package/dist/types/sync/sqlite.d.ts +6 -0
- package/dist/types/sync/sqlite.d.ts.map +1 -0
- package/dist/types/sync/worker.d.ts +63 -0
- package/dist/types/sync/worker.d.ts.map +1 -0
- package/docs/consuming.md +452 -53
- package/docs/deploy.md +218 -47
- package/docs/{sync-experiment.md → durable-sessions.md} +77 -72
- package/docs/feedback.md +116 -0
- package/docs/harnesses.md +212 -88
- package/docs/sync-history.md +29 -13
- package/docs/sync-integration.md +52 -66
- package/package.json +45 -28
- package/src/accounts/chatgpt.ts +194 -0
- package/src/accounts/check.ts +112 -0
- package/src/accounts/claude.ts +111 -0
- package/src/accounts/endpoint.ts +151 -0
- package/src/accounts/http.ts +97 -0
- package/src/accounts/index.ts +19 -0
- package/src/client/client.ts +604 -670
- package/src/client/connection.ts +371 -0
- package/src/client/history.ts +29 -52
- package/src/client/index.ts +11 -2
- package/src/client/listeners.ts +20 -0
- package/src/client/logins.ts +105 -0
- package/src/client/rpc.ts +155 -0
- package/src/client/streams.ts +488 -0
- package/src/client/transports.ts +62 -8
- package/src/client/turns.ts +171 -0
- package/src/core/agents/acp/acp-agent.ts +94 -118
- package/src/core/agents/acp/adapter.ts +20 -9
- package/src/core/agents/acp/client.ts +125 -47
- package/src/core/agents/acp/known-agents.ts +36 -4
- package/src/core/agents/acp/mappings.ts +64 -18
- package/src/core/agents/acp/requests.ts +125 -0
- package/src/core/agents/attachments.ts +18 -0
- package/src/core/agents/base.ts +120 -42
- package/src/core/agents/claude-code/adapter.ts +177 -238
- package/src/core/agents/claude-code/approvals.ts +270 -0
- package/src/core/agents/claude-code/claude-agent.ts +175 -158
- package/src/core/agents/claude-code/credentials.ts +171 -0
- package/src/core/agents/claude-code/events.ts +55 -0
- package/src/core/agents/claude-code/login.ts +269 -0
- package/src/core/agents/claude-code/mcp.ts +206 -0
- package/src/core/agents/claude-code/models.ts +15 -9
- package/src/core/agents/claude-code/options.ts +326 -39
- package/src/core/agents/claude-code/outcome.ts +209 -0
- package/src/core/agents/claude-code/session-pool.ts +136 -0
- package/src/core/agents/claude-code/session.ts +513 -0
- package/src/core/agents/claude-code/spawn.ts +144 -0
- package/src/core/agents/claude-code/spend.ts +160 -0
- package/src/core/agents/claude-code/tools.ts +47 -0
- package/src/core/agents/claude-code/turn-usage.ts +135 -0
- package/src/core/agents/claude-code/turn.ts +232 -0
- package/src/core/agents/codex-app-server/adapter.ts +314 -117
- package/src/core/agents/codex-app-server/client.ts +186 -84
- package/src/core/agents/codex-app-server/codex-agent.ts +343 -0
- package/src/core/agents/codex-app-server/commands.ts +228 -0
- package/src/core/agents/codex-app-server/credentials.ts +126 -0
- package/src/core/agents/codex-app-server/effort.ts +29 -0
- package/src/core/agents/codex-app-server/events.ts +47 -0
- package/src/core/agents/codex-app-server/homes.ts +64 -0
- package/src/core/agents/codex-app-server/input.ts +60 -0
- package/src/core/agents/codex-app-server/items.ts +149 -0
- package/src/core/agents/codex-app-server/login.ts +180 -0
- package/src/core/agents/codex-app-server/mcp.ts +182 -37
- package/src/core/agents/codex-app-server/models.ts +99 -46
- package/src/core/agents/codex-app-server/options.ts +146 -0
- package/src/core/agents/codex-app-server/plan-approval.ts +135 -0
- package/src/core/agents/codex-app-server/protocol.ts +117 -0
- package/src/core/agents/codex-app-server/requests.ts +332 -0
- package/src/core/agents/codex-app-server/session.ts +285 -0
- package/src/core/agents/codex-app-server/subagents.ts +108 -42
- package/src/core/agents/codex-app-server/thread-settings.ts +279 -0
- package/src/core/agents/codex-app-server/turn-items.ts +88 -0
- package/src/core/agents/codex-app-server/turn.ts +463 -0
- package/src/core/agents/config-fingerprint.ts +7 -14
- package/src/core/agents/credentials.ts +98 -0
- package/src/core/agents/elicitation.ts +75 -0
- package/src/core/agents/inherit-config.ts +21 -0
- package/src/core/agents/login.ts +116 -0
- package/src/core/agents/mcp-config.ts +112 -8
- package/src/core/agents/plan.ts +25 -0
- package/src/core/agents/registry.ts +21 -4
- package/src/core/agents/session-agent.ts +96 -4
- package/src/core/agents/{session-store.ts → session-pool.ts} +11 -5
- package/src/core/agents/stderr-tail.ts +75 -0
- package/src/core/agents/types.ts +40 -5
- package/src/core/index.ts +58 -48
- package/src/core/presets.ts +100 -39
- package/src/core/processes/identity.ts +113 -0
- package/src/core/processes/lifeline.ts +170 -0
- package/src/core/processes/native-processes.ts +379 -0
- package/src/core/processes/process-table.ts +174 -0
- package/src/core/provision/cache-trust.ts +121 -0
- package/src/core/provision/cache-usage.ts +69 -0
- package/src/core/provision/checksums.ts +64 -0
- package/src/core/provision/extract.ts +11 -2
- package/src/core/provision/index.ts +4 -1
- package/src/core/provision/install-build.ts +136 -0
- package/src/core/provision/npm.ts +112 -17
- package/src/core/provision/pins.ts +9 -33
- package/src/core/provision/platform.ts +12 -1
- package/src/core/provision/provisioner.ts +329 -397
- package/src/core/provision/releases.ts +86 -0
- package/src/core/provision/tools.ts +329 -0
- package/src/core/proxy/anthropic-proxy.ts +55 -25
- package/src/core/proxy/api-key-store.ts +2 -12
- package/src/core/proxy/loopback.ts +106 -0
- package/src/core/runtime/agent-runtime.ts +327 -498
- package/src/core/runtime/event-processor.ts +197 -70
- package/src/core/runtime/harness-clis.ts +61 -0
- package/src/core/runtime/harness-logins.ts +328 -0
- package/src/core/runtime/login-reads.ts +78 -0
- package/src/core/runtime/model-lists.ts +33 -48
- package/src/core/runtime/permission-policy.ts +113 -0
- package/src/core/runtime/request-broker.ts +204 -0
- package/src/core/runtime/steering.ts +112 -0
- package/src/core/runtime/turn-outcome.ts +30 -0
- package/src/core/runtime/turn.ts +360 -0
- package/src/core/utils/bounded.ts +12 -0
- package/src/core/utils/deadline.ts +38 -0
- package/src/core/utils/errors.ts +113 -21
- package/src/core/utils/is-record.ts +4 -0
- package/src/core/utils/loopback.ts +10 -0
- package/src/protocol/account.ts +104 -0
- package/src/protocol/auth.ts +199 -0
- package/src/protocol/canonical.ts +16 -0
- package/src/protocol/clis.ts +69 -0
- package/src/protocol/config.ts +60 -6
- package/src/protocol/conversation.ts +272 -0
- package/src/protocol/credentials.ts +145 -0
- package/src/protocol/errors.ts +78 -20
- package/src/protocol/execution.ts +5 -2
- package/src/protocol/factories.ts +55 -7
- package/src/protocol/guards.ts +55 -2
- package/src/protocol/harness.ts +56 -6
- package/src/protocol/history.ts +72 -64
- package/src/protocol/ids.ts +0 -12
- package/src/protocol/index.ts +9 -0
- package/src/protocol/lifecycle.ts +250 -79
- package/src/protocol/meta-keys.ts +17 -0
- package/src/protocol/meta.ts +3 -3
- package/src/protocol/models.ts +2 -43
- package/src/protocol/part-input.ts +2 -1
- package/src/protocol/parts.ts +12 -3
- package/src/protocol/reduce.ts +302 -413
- package/src/protocol/selectors.ts +1 -20
- package/src/protocol/seq-cursor.ts +14 -0
- package/src/protocol/stop-reasons.ts +1 -1
- package/src/protocol/thinking.ts +1 -30
- package/src/protocol/time.ts +2 -2
- package/src/protocol/tool-closure.ts +93 -0
- package/src/protocol/tool-state.ts +19 -4
- package/src/protocol/verify.ts +222 -92
- package/src/protocol/vocabulary.ts +21 -5
- package/src/protocol/wire-api.ts +232 -0
- package/src/protocol/wire.ts +351 -64
- package/src/server/acp/binding.ts +63 -103
- package/src/server/acp/session-records.ts +53 -0
- package/src/server/acp/translate.ts +129 -20
- package/src/server/agent-server.ts +223 -387
- package/src/server/bin.ts +280 -78
- package/src/server/feedback.ts +204 -14
- package/src/server/history.ts +116 -122
- package/src/server/index.ts +3 -8
- package/src/server/install.ts +107 -8
- package/src/server/open-parts.ts +95 -0
- package/src/server/routes.ts +391 -0
- package/src/server/secrets.ts +24 -0
- package/src/server/session-gate.ts +69 -0
- package/src/server/session-log.ts +14 -2
- package/src/server/session-store.ts +136 -72
- package/src/server/subscriptions.ts +232 -0
- package/src/server/transports.ts +125 -25
- package/src/server/wire-error.ts +31 -45
- package/src/sync/event-log.ts +31 -3
- package/src/sync/fit.ts +27 -11
- package/src/sync/history-reader.ts +10 -5
- package/src/sync/history-sqlite.ts +37 -42
- package/src/sync/history.ts +9 -15
- package/src/sync/index.ts +17 -5
- package/src/sync/journal-sqlite.ts +162 -76
- package/src/sync/journal.ts +91 -32
- package/src/sync/live-tails.ts +107 -0
- package/src/sync/projection.ts +35 -0
- package/src/sync/recovery.ts +80 -51
- package/src/sync/schema.ts +27 -6
- package/docs/rfds/0001-deterministic-echo-ids.md +0 -44
- package/docs/rfds/0002-native-subagents.md +0 -197
- package/src/client/request.ts +0 -19
- package/src/core/agents/claude-code/generator-session.ts +0 -572
- package/src/core/agents/claude-code/session-manager.ts +0 -166
- package/src/core/agents/codex-app-server/codex-app-server-agent.ts +0 -962
- package/src/core/agents/codex-items.ts +0 -149
- package/src/core/agents/codex-sdk/adapter.ts +0 -237
- package/src/core/agents/codex-sdk/codex-sdk-agent.ts +0 -330
- package/src/core/agents/tool-meta.ts +0 -68
package/CHANGELOG.md
CHANGED
|
@@ -1,5 +1,1045 @@
|
|
|
1
1
|
# Changelog
|
|
2
2
|
|
|
3
|
+
## 0.3.20
|
|
4
|
+
|
|
5
|
+
- zod is a peer dependency, any 4.x (`^4.0.0`), where it was a dependency
|
|
6
|
+
at `^4.6.6`. The schemas are the wire contract a consumer builds its own
|
|
7
|
+
with (`.extend`, its own unions and objects), so the two must be one zod's:
|
|
8
|
+
a consumer on another 4.x got a second copy, and its types stopped matching
|
|
9
|
+
ours ("ZodObject … is not assignable to SomeType"). Install zod beside the
|
|
10
|
+
package. The suite passes on zod 4.0.0, 4.4.3 and 4.6.7.
|
|
11
|
+
- A result the client cannot read says where it is wrong:
|
|
12
|
+
`malformed initialize result: harnesses.claude-code.files: …`, where it
|
|
13
|
+
said only `malformed initialize result`.
|
|
14
|
+
- The README lists the `./accounts` seat, and the client's `subscribe` and
|
|
15
|
+
`joinTurn` where it named a `watch` the client no longer has.
|
|
16
|
+
|
|
17
|
+
## 0.3.19
|
|
18
|
+
|
|
19
|
+
Upgrading from 0.3.18, what the compiler does not tell you:
|
|
20
|
+
|
|
21
|
+
- A client hears a session while its own turn runs there, or while it
|
|
22
|
+
subscribes (wire protocol 6, was 2). A backend that records every event of
|
|
23
|
+
its sessions, one that comes after a turn included (`session.ended`),
|
|
24
|
+
subscribes to them, or calls `subscribeAll()` when it is the server's only
|
|
25
|
+
client.
|
|
26
|
+
- A tool its turn left running is `failed` with a `closure`
|
|
27
|
+
(`outcome_unknown`, `never_ran`) unless the turn was cancelled; it was
|
|
28
|
+
`cancelled`.
|
|
29
|
+
- The `codex-sdk` harness is gone: run a session saved with it on
|
|
30
|
+
`codex-app-server`. `codexAppServer.resolveAuth` is gone: a host's login
|
|
31
|
+
reaches each turn through `credentials`.
|
|
32
|
+
- New events for an exhaustive match: `elicitation.requested`,
|
|
33
|
+
`elicitation.resolved`, `session.limits` and `session.mode`; the
|
|
34
|
+
reducer's change kinds are snake_case (`part_upserted`).
|
|
35
|
+
- An agent's `capabilities` name `files` and `rejectionMessages`, and
|
|
36
|
+
`AgentServer` calls its runtime's `onCliProgress` and `onAuthUpdated`: a
|
|
37
|
+
fake runtime or agent in a test supplies them.
|
|
38
|
+
- The Claude Agent SDK is at least 0.3.277; a product that bundles it sets
|
|
39
|
+
`provision.pins.claude` to its version (agent-server pins 0.3.288).
|
|
40
|
+
|
|
41
|
+
Breaking since 0.3.18:
|
|
42
|
+
|
|
43
|
+
- Each harness's login is the engine's to read and to run, through its CLI
|
|
44
|
+
(LLP 0011; LLP 0001, D19). New on the wire: `auth/status`, `auth/login`
|
|
45
|
+
(answered as soon as the CLI says where to sign in, within 20 s),
|
|
46
|
+
`auth/complete`, `auth/cancel`, `auth/logout`, the `auth/updated`
|
|
47
|
+
notification to every connection (a login's end always comes with the
|
|
48
|
+
harness's login after it, as `auth/complete` answers it) and the
|
|
49
|
+
`unknownLogin` error; in the runtime `authStatus()` / `login()` /
|
|
50
|
+
`completeLogin()` / `cancelLogin()` / `logout()` / `onAuthUpdated()`; in
|
|
51
|
+
the client `authStatus()` / `login()` (a `LoginHandle` whose `done`
|
|
52
|
+
settles with the login's end, a `LoginError` when it did not succeed,
|
|
53
|
+
`disconnected` when the connection dropped first) / `logout()` /
|
|
54
|
+
`onAuthUpdated()`. Status is what the CLI says for the store and
|
|
55
|
+
environment a turn with the same `env` uses (`claude auth status --json`,
|
|
56
|
+
Codex's `account/read`), including an environment credential that wins
|
|
57
|
+
over the login. Logins are the CLI's own: Claude's subscription or Console
|
|
58
|
+
over the SDK's control channel (a `url` on this machine, or a `codeUrl`
|
|
59
|
+
and `auth/complete` from another device), Codex's ChatGPT browser or
|
|
60
|
+
device-code login and API key. A login change starts each session's next
|
|
61
|
+
turn on a new CLI, which resumes its conversation. One account shape
|
|
62
|
+
serves every login: `AccountInfo` (`provider`, `email`, `organization`,
|
|
63
|
+
`plan`), the kind of `credential` (`subscription`, `api_key`, `cloud`),
|
|
64
|
+
its `source` (`login`, `environment`, `settings`, `product`), a `label`
|
|
65
|
+
the engine makes (`accountLabel`: "Claude Max", "ChatGPT Pro", "OpenAI API
|
|
66
|
+
key") and `expiresAt`. Each method says what its login makes
|
|
67
|
+
(`AuthMethod.credential`), and `signedInBy(auth, method)` whether the CLI
|
|
68
|
+
is signed in that way already, so a product picks up a login the user
|
|
69
|
+
made and opens nothing. Harnesses take part by `Agent.login`
|
|
70
|
+
(`CliLogin`: `methods`, `status`, `start`, `logout`) and
|
|
71
|
+
`Agent.loginChanged`. The CLI has `/auth`, `/login` (which picks up a
|
|
72
|
+
login already made) and `/logout`. **A Codex turn whose key the API
|
|
73
|
+
refused now ends `auth`, not `network`** (Codex reports it as a failed
|
|
74
|
+
connection with HTTP 401).
|
|
75
|
+
- A login the product holds reaches each turn through the engine (LLP 0012;
|
|
76
|
+
LLP 0001, D20). New `@zvada/agent-server/accounts`, which needs only
|
|
77
|
+
`fetch` and Web Crypto (a Worker runs it): `startChatGptLogin` /
|
|
78
|
+
`pollChatGptLogin` / `refreshChatGptGrant` (ChatGPT's device sign-in and
|
|
79
|
+
renewal), `startClaudeLogin` / `completeClaudeLogin` (a one-year Claude
|
|
80
|
+
token, its code pasted back), `checkCredential` / `pastedGrant`,
|
|
81
|
+
`createCredentialHandler` (a product's credential endpoint, through which
|
|
82
|
+
an `AccountError` reaches the turn in the product's own words),
|
|
83
|
+
`credentialsFrom` (its `resolve` over the product's `GrantStore`: one
|
|
84
|
+
renewal at a time, written back; a refused credential nothing renews asks
|
|
85
|
+
for the person) and `AccountError`. New protocol types: `HarnessCredential`
|
|
86
|
+
and what each harness runs on (`ClaudeCredential`, `CodexCredential`,
|
|
87
|
+
`credentialRunsOn`), `CredentialGrant` (an `AccountInfo` with its
|
|
88
|
+
credential) and `grantAuth` (what to show of it, as a `HarnessAuth`),
|
|
89
|
+
`CredentialRequest`, `CredentialAnswer`, `tokenDigest` and
|
|
90
|
+
`pastedSignInCode`. `createAgentRuntime({ credentials })` takes a
|
|
91
|
+
`CredentialSource`, `(request, signal) =>`, for both harnesses, asked before
|
|
92
|
+
each turn with its id and again with a refused token's digest; a
|
|
93
|
+
credential the harness cannot run fails the turn. Claude Code runs through
|
|
94
|
+
the engine's own loopback proxy (a placeholder in the CLI's environment,
|
|
95
|
+
the credential held while a turn runs, a 401 renewed and retried), Codex
|
|
96
|
+
on `chatgptAuthTokens` in memory. `credentialsFromUrl` and the bin's
|
|
97
|
+
`--credentials-url` (its token in `$AGENT_SERVER_CREDENTIALS_TOKEN`) ask a
|
|
98
|
+
product's endpoint. The Anthropic proxy takes `renew`, which answers the
|
|
99
|
+
fresher entry. **Codex's `codexAppServer.resolveAuth` is gone:** hand
|
|
100
|
+
either harness its login with `credentials`; `CodexAppServerAuth`,
|
|
101
|
+
`CodexChatGptAuth` and `CodexChatGptAuthTokens` are no longer exported. A
|
|
102
|
+
source that answers none runs the turn as without it (its own `apiKey`,
|
|
103
|
+
else the CLI's own login).
|
|
104
|
+
- The engine installs the agent CLIs it runs from builds this release pins,
|
|
105
|
+
ahead of a turn and visibly (LLP 0010; LLP 0001, D18). **Trust no longer
|
|
106
|
+
rests on the registry:** `releases.ts` (generated by
|
|
107
|
+
`bun run releases:refresh`, which verifies Anthropic's signed release
|
|
108
|
+
manifest) holds every platform's npm integrity for the pinned versions and
|
|
109
|
+
Claude's binary sha256, so a mirror (`$AGENT_SERVER_NPM_REGISTRY`) that
|
|
110
|
+
serves another build is refused before it downloads, and a Claude binary
|
|
111
|
+
that is not the one Anthropic signed is never installed; a version the
|
|
112
|
+
table does not pin (an operator's `pins`) is checked against the installed
|
|
113
|
+
Claude SDK's manifest or the registry alone, and says so once. **A bundled
|
|
114
|
+
Claude SDK's version is the host's to say:** inside a consumer's ESM bundle
|
|
115
|
+
the provisioner searched for the SDK from the working folder, and ran the
|
|
116
|
+
CLI of whatever SDK the user's project held; it now runs agent-server's pin
|
|
117
|
+
and says once that a product that bundles the SDK sets
|
|
118
|
+
`provision.pins.claude` to its version. **`auto` no longer runs a `codex`
|
|
119
|
+
from `PATH`** (it may be another app's private copy, of another version):
|
|
120
|
+
an installed `@openai/codex` package still runs, a `PATH` build only in
|
|
121
|
+
`system` mode. **`ResolvedCli.source` may be `bundled`**, and
|
|
122
|
+
`InstallOptions.createProvisioner` takes the platform and must return
|
|
123
|
+
`prune`; `runInstall` results name their `platform`. New:
|
|
124
|
+
`CliProvisioner.status()` / `observe()` / `prune()`,
|
|
125
|
+
`runtime.listClis()` / `prepareClis()` / `onCliProgress()` and the wire's
|
|
126
|
+
`clis/list`, `clis/prepare` (answered at once, as an install outlasts a
|
|
127
|
+
request's timeout) and the `clis/progress` notification to every connection
|
|
128
|
+
(at most four a second), with `client.listClis()` / `prepareClis()` (which
|
|
129
|
+
waits for the installs, across a redial) / `onCliProgress()`, so a product
|
|
130
|
+
installs at setup and shows the download instead of a first turn that
|
|
131
|
+
waits silently; a download's errors, in a turn's error as in `clis/*`,
|
|
132
|
+
carry URLs without credentials or query. `ProvisionOptions.bundleDirs` (and
|
|
133
|
+
`$AGENT_SERVER_BUNDLE_DIR`) for CLIs an app or image ships, staged by
|
|
134
|
+
`agent-server install --platform <a,b> --dir <path>` from any machine into
|
|
135
|
+
a new or empty folder, the builds opened to every user; a prune after each
|
|
136
|
+
download removes builds whose recorded use is 14 days old, and
|
|
137
|
+
`install --prune` also those no use was recorded for (0.3.18 records none);
|
|
138
|
+
a staged build is opened before its rename, so a 002 umask no longer gets
|
|
139
|
+
it refused as writable by others; a request without a response
|
|
140
|
+
(headers or body) within 30 s, a download that receives nothing for 30 s,
|
|
141
|
+
or a `tar` still running after 5 min fails instead of hanging the turn; a
|
|
142
|
+
cached build removed under a running process is installed again.
|
|
143
|
+
`AgentRegistry` takes the provisioner as an optional second argument, and
|
|
144
|
+
managed Claude processes run with `DISABLE_AUTOUPDATER=1`. The CLI says a
|
|
145
|
+
download's start, quarters and end for its own server or one it connects
|
|
146
|
+
to, and `/info` shows the session harness's CLI.
|
|
147
|
+
- A listener answers native clients only, and needs a token beyond loopback
|
|
148
|
+
(LLP 0001, D16). `listen` accepted every upgrade, and a browser lets any
|
|
149
|
+
page open a WebSocket to localhost, so any website a user visited while
|
|
150
|
+
`agent-server --listen 4747` ran could start a turn with
|
|
151
|
+
`bypass_permissions` there. **A browser client of `listen` must now be
|
|
152
|
+
allowlisted:** an upgrade with an `Origin` header, `null` included, is
|
|
153
|
+
refused 403 unless `ListenOptions.allowedOrigins` (the bin's repeatable
|
|
154
|
+
`--allow-origin`) holds it exactly, as `scheme://host[:port]`; a native
|
|
155
|
+
client sends none. **A listener beyond loopback needs a token:**
|
|
156
|
+
`ListenOptions.token` (`--token-file <path>` or `$AGENT_SERVER_TOKEN`)
|
|
157
|
+
requires `Authorization: Bearer <token>` of every upgrade, compared in
|
|
158
|
+
constant time, else 401, and `listen` refuses a host other than
|
|
159
|
+
127.0.0.0/8, `::1` or `localhost` without one, as `docs/deploy.md`'s Docker
|
|
160
|
+
example on `0.0.0.0` was (it throws an `Error` whose `code` says which
|
|
161
|
+
option it refuses: `tokenRequired`, `emptyToken` or `invalidOrigin`). The bin refuses `--token` (`ps` shows argv) and
|
|
162
|
+
warns when others can read the token file. `AgentServerClient.connect(url,
|
|
163
|
+
{token})` (`ConnectOptions`) sends it with every dial, redials included,
|
|
164
|
+
and the CLI's `--connect` takes it from `$AGENT_SERVER_TOKEN`.
|
|
165
|
+
`dial(server, url, {headers})` and `connectTransport(url, headers)` send
|
|
166
|
+
headers with the upgrade, so a credential stays out of the URL, and the
|
|
167
|
+
bin's `--dial` sends `$AGENT_SERVER_DIAL_TOKEN`, when set, as
|
|
168
|
+
`Authorization: Bearer` on every dial (never from argv): the credential it
|
|
169
|
+
presents to the platform it dials. **A refused client is told so, and not
|
|
170
|
+
redialed:** neither Bun's nor Node's WebSocket says why a handshake failed,
|
|
171
|
+
so a dial that fails asks once with a plain request carrying the same
|
|
172
|
+
headers, which `listen` answers 401 before its 426. Only a 401 is a
|
|
173
|
+
refusal: `listen` answers 403 only for an `Origin`, which a native client
|
|
174
|
+
never sends, so a 403 comes from something in front of the server, and the
|
|
175
|
+
client redials on. `connect` rejects with `ConnectionRefusedError`
|
|
176
|
+
(exported from `./client`, a `ConnectionClosedError`; `reason`
|
|
177
|
+
`token_refused` when it sent a token, `token_required` when not), and a
|
|
178
|
+
reconnecting client whose redial is refused stops, reports `refused` then
|
|
179
|
+
`closed` through `onConnection`, and fails what waits with it. The CLI says
|
|
180
|
+
which token to set (`$AGENT_SERVER_TOKEN`) and exits 2 instead of
|
|
181
|
+
redialing. stdio is unchanged, and so is dial-out without a dial token.
|
|
182
|
+
|
|
183
|
+
- What a turn loads by itself is the operator's choice (LLP 0001, D17):
|
|
184
|
+
`inheritConfig: "all" | "project" | "none"` on `CreateRegistryOptions` (so
|
|
185
|
+
`createAgentRuntime`), `--inherit-config` on the bin and the CLI, and
|
|
186
|
+
`InheritConfig`, `INHERIT_CONFIGS` and `isInheritConfig` in `./core`. It
|
|
187
|
+
decides the settings, MCP servers, hooks and memory a turn picks up from the
|
|
188
|
+
host user and the repository, never what the agent may do. `all`, the
|
|
189
|
+
default, is what turns loaded before, with Claude's `settingSources` now
|
|
190
|
+
named explicitly (`["user", "project", "local"]`). `project` runs Claude on
|
|
191
|
+
the repository's settings only (`["project"]`), `none` on none (`[]` with
|
|
192
|
+
`strictMcpConfig`; the turn's MCP servers still attach), and below `all` the
|
|
193
|
+
user's auto-memory and the account's claude.ai connectors stay off whatever
|
|
194
|
+
the host's or the turn's environment says. Below `all` every Codex turn must
|
|
195
|
+
name a `CODEX_HOME` of its session's own (absolute, not the shared one, one
|
|
196
|
+
session to a home), else it fails `invalid_request` before Codex starts;
|
|
197
|
+
`none` also keeps the repository's `AGENTS.md` out (`project_doc_max_bytes =
|
|
198
|
+
0` on `thread/start` and `thread/resume`). `claudeCode.sdkOptions` may still
|
|
199
|
+
name `settingSources` itself. Claude's model listing loads what a turn at
|
|
200
|
+
the operator's level would. The bin refuses `--acp --harness
|
|
201
|
+
codex-app-server` below `all`, since an ACP client names no Codex home; the
|
|
202
|
+
CLI refuses `--inherit-config` with `--connect` (the server decides) and says
|
|
203
|
+
up front that Codex below `all` needs `--codex-home`. ACP agents are
|
|
204
|
+
unchanged: their launch command decides.
|
|
205
|
+
|
|
206
|
+
- A `disableTools` Claude turn (the CLI's `--no-tools`) no longer loads the
|
|
207
|
+
auto-memory Claude keeps for the repository: it runs at `inheritConfig:
|
|
208
|
+
"none"` whatever the option, which sets `CLAUDE_CODE_DISABLE_AUTO_MEMORY=1`.
|
|
209
|
+
Its `settingSources: []` kept every settings source out, but not the memory.
|
|
210
|
+
|
|
211
|
+
- Wire protocol 6 (LLP 0008, decision 10): a turn's subscription ends with
|
|
212
|
+
the turn. `turn/start` subscribes its caller to the turn until its
|
|
213
|
+
`turn.ended`, unless the connection watches the session;
|
|
214
|
+
`session/subscribe {sessionId}` watches a session until
|
|
215
|
+
`session/unsubscribe` (which ends the watch only), its end or the
|
|
216
|
+
connection's close, and `session/subscribe {sessionId, turnId}` follows a
|
|
217
|
+
running turn, uncounted, to its end. `onEvent` delivers a session's events
|
|
218
|
+
while it is watched or one of this client's turns runs in it: code that
|
|
219
|
+
heard a session after its own turn ended calls `subscribe` (the CLI
|
|
220
|
+
watches the session it is in). The client lets a session go when its turn
|
|
221
|
+
ends unless it watches it, and after a redial subscribes its running turns
|
|
222
|
+
first, then its watches; a refusal fails the session's turns
|
|
223
|
+
(`EventGapError`, gap reason `subscription_refused` or `session_missing`)
|
|
224
|
+
where a client that had run turns in more sessions than
|
|
225
|
+
`maxSubscriptions`, then redialed, waited on its running turn forever. A
|
|
226
|
+
turn the re-subscription's answer says runs no more ended by its
|
|
227
|
+
`headSeq`: the client replays up to there and lets the session go unless
|
|
228
|
+
it watches it, where a turn whose `turn.ended` the window had evicted kept
|
|
229
|
+
its session followed, subscribed again on every redial, its `onEvent`
|
|
230
|
+
hearing other clients' turns there.
|
|
231
|
+
`steerTurn` follows the turn it steers instead of watching the session.
|
|
232
|
+
`session/subscribe` takes no `afterSeq`, which the server never read: a
|
|
233
|
+
client catches up with `events/replay` (`subscribe(sessionId, {afterSeq})`
|
|
234
|
+
does). Every session is a pair of methods of its own,
|
|
235
|
+
`session/subscribeAll` (answering `{sessions}`) and
|
|
236
|
+
`session/unsubscribeAll`, in place of protocol 5's `{all: true}` params,
|
|
237
|
+
whose answers each side narrowed by hand. A peer of protocol 5 is refused
|
|
238
|
+
at `initialize`.
|
|
239
|
+
- The wire's requests are one table, `WIRE_API` (root and `/protocol`): each
|
|
240
|
+
method's params schema, result schema and the decoder a client reads its
|
|
241
|
+
answer with (tolerant for `events/replay` and `models/list`), with the
|
|
242
|
+
types `WireRequestMethod`, `WireParams`, `WireParsedParams`, `WireResult`
|
|
243
|
+
and `WireDecodedResult`, and `isWireRequestMethod`. The server parses a
|
|
244
|
+
request's params with it once (`history/list` still authorizes first), and
|
|
245
|
+
every client request is typed by its method. `WIRE_REFUSAL_DATA` says what
|
|
246
|
+
each refusal carries in `data` (`resumeRequired` its `nativeSessionId`,
|
|
247
|
+
`recoveryRequired` its `headSeq` and `reason`, `turnConflict`,
|
|
248
|
+
`turnActive`, `subscriptionLimit`, …); `refusalData(error, name)` in
|
|
249
|
+
`/client` (and `readRefusalData` in `/protocol`) reads it, undefined for
|
|
250
|
+
another refusal or malformed data.
|
|
251
|
+
- A turn the server admitted and the runtime refused before it started (it
|
|
252
|
+
was shutting down, or the harness could not be set up) ends after a
|
|
253
|
+
`turn.started` the server synthesizes, so its stream holds the contract
|
|
254
|
+
(`turn-ended-pairs`), and the `turn.ended` the server synthesizes for a run
|
|
255
|
+
that threw carries its readable message (`errorInfo`), as every other
|
|
256
|
+
failure does.
|
|
257
|
+
- `runTurn(params, {signal})` stops following its turn when the signal
|
|
258
|
+
aborts, as `joinTurn`'s signal does: the handle's `events` and `result`
|
|
259
|
+
fail with an `AbortError`, the turn runs on (`cancelTurn` stops it), and
|
|
260
|
+
`onEvent` still hears it to its end. `replayAll(sessionId, fromSeq,
|
|
261
|
+
throughSeq?)` reads every page `events/replay` answers (`replay` is one
|
|
262
|
+
page), failing `EventGapError` when some were evicted.
|
|
263
|
+
- `channelPair()` (root and `/protocol`) is the in-process wire: two
|
|
264
|
+
transports wired to each other, one for an `AgentServer` to attach and one
|
|
265
|
+
for `AgentServerClient.attach`, with `kill()` to drop the connection.
|
|
266
|
+
- A client receives the sessions it subscribes to, not every session on the
|
|
267
|
+
server (wire protocol 5, LLP 0008): an idle CLI downloaded 342 KB of another
|
|
268
|
+
session's history during a one-word turn, and now receives nothing but its
|
|
269
|
+
`initialize` answer. `session/subscribe {sessionId}` answers the
|
|
270
|
+
subscription point (`headSeq`, `firstAvailableSeq`, the turn it runs) and
|
|
271
|
+
streams every frame after it; `{all: true}` is every session, live from
|
|
272
|
+
then, for observers; `session/unsubscribe` stops. `turn/start` subscribes
|
|
273
|
+
its caller from the head at admission (`subscribe: false` declines), and
|
|
274
|
+
its ack carries `headSeq`, plus `startedSeq` for a retried start of a
|
|
275
|
+
running turn and `terminal` for one that ended, volatile ones included. A
|
|
276
|
+
closed session's subscriptions end with its `session.ended`, and a
|
|
277
|
+
connection's with the connection. A peer of protocol 4 is refused at
|
|
278
|
+
`initialize`.
|
|
279
|
+
- Joining a running turn receives its open parts at once: after a
|
|
280
|
+
subscription's answer, each streaming part comes as one `message.part`
|
|
281
|
+
frame with its content so far (`live: true`, at the head seq), so a client
|
|
282
|
+
that joins mid-answer no longer waits for a snapshot. Measured on a real
|
|
283
|
+
Claude turn, a client joining mid-answer downloaded 11.4 KB of catch-up
|
|
284
|
+
(the turn's kept events to the join, 6.7 KB, and its open part, 4.5 KB),
|
|
285
|
+
where it downloaded 34 KB with the SDK's `watch` and 68 KB with the CLI's
|
|
286
|
+
reopen; a reopened CLI downloads the transcript once (55 KB for a turn
|
|
287
|
+
where it downloaded 679 KB).
|
|
288
|
+
- Client: `subscribe`, `unsubscribe`, `subscribeAll`, `unsubscribeAll` and
|
|
289
|
+
`joinTurn(sessionId, {fromSeq, signal})` (a handle per join, each event
|
|
290
|
+
once; `TurnHandle.catchUp` counts the replayed ones). `watch` is removed:
|
|
291
|
+
use `subscribe(sessionId, {afterSeq})`. `onEvent` delivers the sessions the
|
|
292
|
+
client follows (`AgentServer.onEvent` still sees every one). `runTurn`'s
|
|
293
|
+
handle starts at its own `turn.started` and downloads none of the
|
|
294
|
+
session's history. The client subscribes again after a redial and on
|
|
295
|
+
`session/overflow`, and `steerTurn` subscribes to a session it does not
|
|
296
|
+
follow before it steers. `client.ts` is split by concern (`rpc`,
|
|
297
|
+
`connection`, `streams`, `turns`, `listeners`); `request.ts` became `rpc.ts`.
|
|
298
|
+
- A connection that falls `maxBacklogBytes` (16 MiB) behind stops receiving
|
|
299
|
+
the session it fell behind on: the server sends `session/overflow
|
|
300
|
+
{sessionId, lastSeq}` (or `{all: true}`) and drops the subscription, and the
|
|
301
|
+
client subscribes again from what it holds. Responses are never dropped.
|
|
302
|
+
`WireTransport.bufferedAmount?()` reports the backlog (Bun's server socket,
|
|
303
|
+
a dialing socket, stdio's `writableLength`). A connection may ask to watch
|
|
304
|
+
at most `maxSubscriptions` sessions (256; `{all: true}` counts once), past
|
|
305
|
+
which `session/subscribe` is refused `subscriptionLimit` (-32014,
|
|
306
|
+
`data.limit`). The sessions its own turns subscribe it to never count, so a
|
|
307
|
+
connection that runs the turns of every session (a product backend) is
|
|
308
|
+
never refused one.
|
|
309
|
+
- `isLiveEnvelope(envelope)` (zod-free, in `/protocol/guards`) tells every
|
|
310
|
+
live frame, a delta or an open part; `isLiveOnlyEvent(event)` no longer
|
|
311
|
+
does. `verifyStreamContract` takes `live` beside `seqs`, and `seq-live`
|
|
312
|
+
covers every live frame. `extendPart(part, delta)` applies a delta as the
|
|
313
|
+
engine, the server and the reducer all do; the reducer now extends a pending
|
|
314
|
+
tool's `partialInput` with its input deltas, and keeps `toolInputJson` to a
|
|
315
|
+
pending snapshot's streamed input.
|
|
316
|
+
- Journal schema 6: a schema-5 file is refused, never migrated. A streaming
|
|
317
|
+
part's tail is a row per delta in `live_tails`, deleted with the part's next
|
|
318
|
+
kept snapshot or its turn's end, and recovery joins a part's rows in order:
|
|
319
|
+
with no checkpoints the tail is the whole part, and rewriting it per delta
|
|
320
|
+
grew with the square of its length (250 MB written for a 100 KB tool input,
|
|
321
|
+
where an appended row costs a flat 14 µs).
|
|
322
|
+
|
|
323
|
+
- A native agent no longer outlives its server (LLP 0007). Every CLI a
|
|
324
|
+
harness starts leads a session and process group of its own, is held by the
|
|
325
|
+
OS process's lifeline (a `/bin/sh` that stops what it holds when the server
|
|
326
|
+
dies in any way, SIGKILL included) and is stopped with the tool sessions
|
|
327
|
+
under it: SIGTERM, then SIGKILL after 3 s. Before, a SIGKILLed server's
|
|
328
|
+
Claude CLI ran 30.5 s more and finished its tool, and a SIGKILLed Codex
|
|
329
|
+
app-server's command ran on 27.1 s; live, they were now gone 2.7 s and
|
|
330
|
+
0.15 s after the kill. Claude runs through the SDK's
|
|
331
|
+
`spawnClaudeCodeProcess`, with the CLI's stderr put back into the SDK's exit
|
|
332
|
+
error (the SDK no longer adds its own `--debug-file`; pass `debugFile`); an
|
|
333
|
+
operator `spawnClaudeCodeProcess` in `sdkOptions` still wins, and its
|
|
334
|
+
session's process is then the host's. `createAgentRuntime({nativeProcesses:
|
|
335
|
+
{lifeline?, graceMs?, onRecord?}})` configures it; `runtime.shutdown()` now
|
|
336
|
+
also stops what the runtime spawned before it settles, so a `shutdown`
|
|
337
|
+
request is answered once they are gone. New: `NativeProcesses`,
|
|
338
|
+
`runtime.onNativeProcess`, `runtime.stopOrphans(records)`,
|
|
339
|
+
`runtime.recordedHarnesses()`, `AgentRegistry.processes` and the optional
|
|
340
|
+
`Agent.processes`.
|
|
341
|
+
- An agent's stderr no longer carries its secrets into an exit error, which
|
|
342
|
+
reaches `turn.ended.error.message`, the journal and the logs: Claude's,
|
|
343
|
+
Codex's and ACP's tails are redacted (`redactSecrets`: Anthropic and OpenAI
|
|
344
|
+
keys, JWTs, `Bearer`/`Basic` credentials, AWS access keys, URL credentials,
|
|
345
|
+
and what is assigned to a key, token, secret or password become
|
|
346
|
+
`[REDACTED]`), before they are cut to size.
|
|
347
|
+
- Journal schema 5: a schema-4 file is refused, never migrated. It keeps the
|
|
348
|
+
native processes its owners started (`native_processes`) and why a fence
|
|
349
|
+
could not be lifted (`sessions.recovery_reason`). The port gains
|
|
350
|
+
`recordNative`, `forgetNative` and `nativeProcesses`, which every
|
|
351
|
+
`SessionJournal` must now implement (a custom journal adds them, as the
|
|
352
|
+
SQLite journals have), and `claim(options?)` takes the restart sweep's
|
|
353
|
+
result.
|
|
354
|
+
- `await AgentServer.open(runtime, options)` replaces `new AgentServer` for a
|
|
355
|
+
journal server: before it claims the journal it verifies each recorded
|
|
356
|
+
process (boot, start time, executable) and stops those still running, so a
|
|
357
|
+
session a restart cut off is fenced only when its agent could not be
|
|
358
|
+
confirmed stopped. The constructor still works and fences every such
|
|
359
|
+
session. `recoveryRequired`'s data and `DurableSession` carry the reason
|
|
360
|
+
(`recoveryReason`: `not_owned`, `not_verified`, `not_stopped`), and the
|
|
361
|
+
interrupted turn's `server_restart` message says whether its agent was
|
|
362
|
+
stopped. The bin and the CLI's `--journal` mode use `open`; the bin also
|
|
363
|
+
shuts down on SIGHUP. A CLI session whose agent was stopped runs its next
|
|
364
|
+
turn without `/recover`.
|
|
365
|
+
|
|
366
|
+
- `AgentRuntime.run` checks its request with `RunRequestSchema` and rejects
|
|
367
|
+
one the schema refuses with the new `InvalidRequestError` (code
|
|
368
|
+
`invalidParams`, category `invalid_request`), before admitting it and
|
|
369
|
+
without remembering it. An out-of-range `requestTimeoutMs` was clamped to a
|
|
370
|
+
timer's limit, or ignored when not positive, and an empty `resumeSessionId`
|
|
371
|
+
was refused only once a built-in harness executed the turn; both are now
|
|
372
|
+
refused. The wire refused all of them already.
|
|
373
|
+
- A turn ends `cancelled` because a cancel was asked for (`runtime.cancel`,
|
|
374
|
+
`closeSession`, the run's signal, shutdown), not because of what an error
|
|
375
|
+
says: an error a harness throws once asked to stop ends the turn
|
|
376
|
+
`cancelled`, whatever its words, and an abort a harness throws unasked
|
|
377
|
+
(an `AbortError`, "Request interrupted") fails the turn, as category
|
|
378
|
+
`abort`. A harness that stops a turn itself says so in its adapter's
|
|
379
|
+
`cancelled`, as the built-in ones do.
|
|
380
|
+
- `AgentExecuteOptions` is the turn's `RunConfig` without what the engine
|
|
381
|
+
handles itself (`harness`, `elicitation`, `requestTimeoutMs`, `includeRaw`),
|
|
382
|
+
plus its callbacks: a field the request leaves out is now absent from the
|
|
383
|
+
options, not present as `undefined`.
|
|
384
|
+
- New: `errorInfo(error, typedCategory?)` in the protocol, the one mapping
|
|
385
|
+
from a failure to the `ErrorInfo` the stream carries.
|
|
386
|
+
|
|
387
|
+
- Wire protocol 4, one vocabulary: every wire value is snake_case, and every
|
|
388
|
+
name says the same thing on the wire and in process. A 3 peer is refused at
|
|
389
|
+
`initialize` (`protocolVersionMismatch`), never half served. To migrate:
|
|
390
|
+
- the reducer's `ConversationChange.kind` values are snake_case
|
|
391
|
+
(`part-upserted` → `part_upserted`, `turn-updated` → `turn_updated`,
|
|
392
|
+
`usage-updated` → `usage_updated`, and so on for all thirteen);
|
|
393
|
+
- `AgentCapabilities.modelSwitch` is `in_session` / `restart_session`
|
|
394
|
+
(was `in-session` / `restart-session`), and is an open vocabulary: treat a
|
|
395
|
+
mode you do not know as `unsupported`. The compiler no longer catches the
|
|
396
|
+
old spelling in a harness you wrote: search for `in-session`;
|
|
397
|
+
- the `_meta` keys the engine writes are `agent-server/<name>`: a user
|
|
398
|
+
message's echoed text elements are `_meta["agent-server/elements"]` (was
|
|
399
|
+
`_meta.elements`), and the ACP binding's turn failure is
|
|
400
|
+
`_meta["agent-server/error"]` (was `zvada.dev/error`); `META_KEYS` names
|
|
401
|
+
them all, and replaces `PARTIAL_INPUT_META_KEY`. Journals and histories
|
|
402
|
+
written before keep the old key (and `session.ended {reason: "released"}`):
|
|
403
|
+
read both while you hold them;
|
|
404
|
+
- `history/pull` is `history/read` (the `HistoryApi.read` it serves), and
|
|
405
|
+
`HistoryPull`/`HistoryPullSchema` are `HistoryRead`/`HistoryReadSchema`;
|
|
406
|
+
- a refusal names the wire error it answers with: `HistoryError.code` is
|
|
407
|
+
`unknownHistory`, `historyConflict`, `notAuthorized` or `invalidParams`
|
|
408
|
+
(was `.reason`: `missing`, `conflict`, `unauthorized`, `invalid`), and a
|
|
409
|
+
`JournalError` that was `staleHead` is `historyConflict`, one that was
|
|
410
|
+
`invalidRecord` or `recordTooLarge` is `invalidParams`. Both extend the
|
|
411
|
+
new `WireRefusal`; `HISTORY_ERROR_CODES` is gone (`isHistoryRefusal` and
|
|
412
|
+
`wireErrorName` replace it);
|
|
413
|
+
- `turn/get` for a turn its known session never admitted answers
|
|
414
|
+
`unknownTurn` (new, -32013), and `unknownSession` only when the server
|
|
415
|
+
does not hold the session: a caller that read `unknownSession` as "not
|
|
416
|
+
admitted" reads `unknownTurn`;
|
|
417
|
+
- the engine's error codes are camelCase (`turnConflict`, `turnActive`,
|
|
418
|
+
`agentExited`, `unsupportedAttachment`, `resumeFailed`, `mcpUnavailable`,
|
|
419
|
+
`cliNotFound`, `cliProvisionFailed`), and `HarnessNotFoundError` is
|
|
420
|
+
`HarnessNotAvailableError` (`harnessNotAvailable`, the wire's name for the
|
|
421
|
+
same refusal). An engine error whose code the wire names answers as that
|
|
422
|
+
refusal. The typed errors that always mean one thing carry their
|
|
423
|
+
`category`, and `classifyError` reads it before the message: a turn
|
|
424
|
+
conflict and an unknown harness are now `invalid_request` (were
|
|
425
|
+
`internal`); a missing or unprovisionable CLI is still classified by its
|
|
426
|
+
message;
|
|
427
|
+
- `session.ended.reason` is `closed`, the one reason the stream carries
|
|
428
|
+
(was `released`); Claude's `onSessionEnd` keeps its own reasons;
|
|
429
|
+
- `STANDARD_PERMISSION_OPTIONS`, `isAllowKind` and `isRejectKind` are
|
|
430
|
+
exported from the protocol (zod-free, in `/protocol/guards`). Only
|
|
431
|
+
`allow_once` and `allow_always` approve: the reducer counted an unknown
|
|
432
|
+
`allow_*` kind as an approval. A tool whose approval got an answer this
|
|
433
|
+
build cannot read is closed with its outcome unknown, never as "never ran";
|
|
434
|
+
- `openVocabulary(known)` takes the values the vocabulary knows (was
|
|
435
|
+
`openVocabulary<T>()`); `knownValues(schema)` returns them;
|
|
436
|
+
- removed: `isRecoverable` (unused), the `ModelsQuery` alias (use
|
|
437
|
+
`ModelsListParams`), and the `EventProcessor` export (internal).
|
|
438
|
+
- A tool the engine closed `failed` says how in `closure`: `never_ran`,
|
|
439
|
+
`outcome_unknown` or `interrupted` (`TOOL_CLOSURES`, an open vocabulary;
|
|
440
|
+
read one you do not know as an outcome unknown), absent when the harness
|
|
441
|
+
reported the failure. Match on it rather than on the `error` sentence, which
|
|
442
|
+
stays for the model and the user. `/sync`'s `INTERRUPTED_TOOL_ERROR` is
|
|
443
|
+
`TOOL_INTERRUPTED`, exported from the protocol beside `TOOL_OUTCOME_UNKNOWN`
|
|
444
|
+
and `TOOL_NEVER_RAN`, words unchanged; `closeToolLeftOpen` is the one
|
|
445
|
+
function the reducer and crash recovery close tools with. A Codex command
|
|
446
|
+
whose stop could not be confirmed fails with `TOOL_OUTCOME_UNKNOWN` from its
|
|
447
|
+
harness, so without a `closure`.
|
|
448
|
+
- A turn a server restart cut off ends `error` with the new category
|
|
449
|
+
`server_restart` (was `internal`): a client tells a restart from a failure
|
|
450
|
+
without matching its message.
|
|
451
|
+
- A `SessionJournal` implements `keepTail` and `releaseNative`, which were
|
|
452
|
+
optional; a server without a journal is the only one that answers
|
|
453
|
+
`session/release` with `methodNotFound`.
|
|
454
|
+
- The `/sync` helpers refuse a peer's answer they cannot trust with a
|
|
455
|
+
`HistoryError`, where they threw a plain `Error`: `historyConflict` for a
|
|
456
|
+
page that does not match the requested prefix or revision, or an import
|
|
457
|
+
receipt for another version; `invalidParams` for a head of another
|
|
458
|
+
history, an ancestry cycle (or more than 64 ancestors), or a checkpoint
|
|
459
|
+
outside the requested history or over the byte limit. A retry policy that
|
|
460
|
+
never retries a `HistoryError` stops on them. `createCheckpoint` names an
|
|
461
|
+
invalid `maxRecords` as `openHistory` does.
|
|
462
|
+
- `reduceConversationWithChanges` reports one `part_upserted` for a tool's
|
|
463
|
+
open snapshot redelivered after its turn ended (it reported two): the
|
|
464
|
+
snapshot lands closed, as the turn's end closed it.
|
|
465
|
+
- `ContractViolation.rule` is a `ContractRule`, one of `CONTRACT_RULES` (the
|
|
466
|
+
ids LLP 0002 lists). `UnknownPartSchema` and `UnknownEventSchema` are
|
|
467
|
+
exported, beside their types.
|
|
468
|
+
- The ACP server binding's permission request names a `task` tool `other`, as
|
|
469
|
+
its tool updates do, and leaves out an option of a kind ACP cannot carry.
|
|
470
|
+
- The `codex-sdk` harness is gone; `codex-app-server` runs Codex. It streams
|
|
471
|
+
tokens, brokers approvals, attaches MCP servers, switches models without a
|
|
472
|
+
restart, and since this release maps a turn's `apiKey` and
|
|
473
|
+
`additionalDirectories` too, so codex-sdk offered nothing it lacked.
|
|
474
|
+
`@openai/codex-sdk` is no longer a peer dependency, and `codex-sdk` no longer
|
|
475
|
+
appears in `AgentHarness`, the catalog or `toolForHarness`. To migrate,
|
|
476
|
+
register `CodexAppServerAgent` and send `harness: "codex-app-server"`; a
|
|
477
|
+
thread `codex exec` created resumes there by the same thread id. Host
|
|
478
|
+
resolution now finds an installed `@openai/codex` package directly (a
|
|
479
|
+
lockfile can pin the CLI), then `codex` on PATH.
|
|
480
|
+
Approvals differ: codex-sdk never asked, while codex-app-server in `default`
|
|
481
|
+
mode asks through `permission.requested` for anything outside its read-only
|
|
482
|
+
sandbox, and waits for an answer. A host that never answers approvals runs
|
|
483
|
+
Codex in a mode that never asks: `bypass_permissions`, or `dont_ask`,
|
|
484
|
+
which since this release only reads.
|
|
485
|
+
- `dont_ask` on Codex runs read-only and writes nothing; it wrote inside its
|
|
486
|
+
workspace-write sandbox without asking. A host that used it so that Codex
|
|
487
|
+
edits unattended runs `bypass_permissions` instead, or `accept_edits` and
|
|
488
|
+
answers approvals.
|
|
489
|
+
- A Codex turn with `disableTools` fails as `invalid_request` instead of
|
|
490
|
+
running with every tool; send it with tools on.
|
|
491
|
+
- Removed exports, with what replaces them:
|
|
492
|
+
- root and `/protocol`: `MODEL_CATALOG`, `ModelInfo`, `modelsForHarness` and
|
|
493
|
+
`DEFAULT_MODELS` (use `CATALOG_MODELS`, `modelThinkingLevels` and
|
|
494
|
+
`runtime.models()`), `codexReasoningEffort`/`CodexReasoningEffort`,
|
|
495
|
+
`DEFAULT_THINKING_LEVEL`, `generateId` (use `generateUUIDv7`),
|
|
496
|
+
`timestampFromUUIDv7`, `toolResultText`, `Meta`, `EpochMs`, `WireMethod`,
|
|
497
|
+
`ShutdownParamsSchema`, `ModelsListResultSchema`;
|
|
498
|
+
- `/core`: `AgentExecutionError`, `CodexAppServerClient`, `AcpClient`,
|
|
499
|
+
`parseAcpLaunch`, the transformer classes (use the `create*Transformer`
|
|
500
|
+
factories), `emitDiagnostic`, `endedExecution`, `catalogModelList`,
|
|
501
|
+
`detectPlatform`;
|
|
502
|
+
- `/server`: `SessionLog`, `DEFAULT_BUFFER_SIZE`, `toolsFor`;
|
|
503
|
+
- `/sync`: `fitEvent`, `recordable`, `MAX_EVENT_BYTES`, `PAGE_SLACK_BYTES`,
|
|
504
|
+
`unrecordedEvent`, `interruptionFacts`.
|
|
505
|
+
- Tightened signatures: `BaseAgent.endTurn` requires its controller,
|
|
506
|
+
`ApiKeyStore.set` takes options and no string, an invalid wire message
|
|
507
|
+
carries `parseError`, and `client.history.checkpoint` throws instead of
|
|
508
|
+
returning `null` on a server without checkpoints.
|
|
509
|
+
- `AgentExecuteOptions.onElicitation` (`./core`) is `onElicitationRequest`,
|
|
510
|
+
named like `onPermissionRequest`: a custom harness that asks the user its
|
|
511
|
+
agent's questions reads it under the new name.
|
|
512
|
+
- Claude's raw passthrough (`includeRaw`, no stability promise under LLP
|
|
513
|
+
0001 D6) carries the SDK's messages unmodified: a `result` no longer has
|
|
514
|
+
`turn_cost_usd`, `turn_usage` or `steers_pending` spliced in. What the
|
|
515
|
+
session adds is its own events, named as Codex's are:
|
|
516
|
+
`agentServer/querySettled` (`costUsd`, `usage`, `steersPending`) just before
|
|
517
|
+
the result it describes, `agentServer/steerRead` (was `steer_inserted`) and
|
|
518
|
+
`agentServer/turnInterrupted` (was `turn_interrupted`). The normalized
|
|
519
|
+
stream is unchanged.
|
|
520
|
+
- A Claude turn the runtime stops reading before its end (its transformer or
|
|
521
|
+
its sink failed) is stopped first: interrupted, and its process replaced
|
|
522
|
+
when Claude does not confirm within the interrupt timeout (2 s). Its
|
|
523
|
+
`turn.ended` comes after that, and a `turn/cancel` meanwhile still reaches
|
|
524
|
+
it; the next turn found the CLI still working and switched its model, mode
|
|
525
|
+
and MCP servers onto that turn.
|
|
526
|
+
- With no Claude turn running (a query Claude began itself), a tool call is
|
|
527
|
+
denied and Claude stopped, an MCP server's request for input is dismissed
|
|
528
|
+
(`cancel`), and a hook's `currentTurnId()` is undefined. They reached the
|
|
529
|
+
last turn's closed brokers, and a hook saw that turn's id.
|
|
530
|
+
- A Claude tool named like an object member (`constructor`) is kind `other`.
|
|
531
|
+
- `ClaudeCodeAgentOptions`, `ClaudeToolPolicy`, `ClaudeHooksFactory`,
|
|
532
|
+
`ClaudeSessionEndReason` and `ClaudeSessionExtras` (now a `Pick` of
|
|
533
|
+
`ClaudeCodeAgentOptions`) are exported from `./core` as before; only their
|
|
534
|
+
source module moved.
|
|
535
|
+
- History that 0.3.18's `/sync` kept, which holds token deltas, is refused like
|
|
536
|
+
a schema-2 journal: open it with the version that wrote it, or start anew.
|
|
537
|
+
- Claude runs each turn in the permission mode the turn asks for, switching
|
|
538
|
+
the live process to it. 0.3.18 restarted only when the requested mode
|
|
539
|
+
changed, so a mode Claude switched to by itself (an approved plan, Claude
|
|
540
|
+
entering plan mode) lasted while a client kept sending one mode; such a
|
|
541
|
+
client now brings Claude back to its mode on the next turn. Follow
|
|
542
|
+
`session.mode` (`state.permissionMode`) to stay with the agent, as the CLI
|
|
543
|
+
and the ACP server binding do.
|
|
544
|
+
- A brokered permission request offers an "always" option only when its
|
|
545
|
+
harness can scope one, and on Claude and Codex no "always reject": render the
|
|
546
|
+
request's `options` rather than assume the four standard ones. A client's
|
|
547
|
+
standard `allow_always` or `reject_always` for a request that does not offer
|
|
548
|
+
it means a plain allow or reject.
|
|
549
|
+
- An assistant `message.started` names the model that wrote it: Claude's API
|
|
550
|
+
model (it named the requested alias, `haiku`, while a plan turn ran
|
|
551
|
+
`claude-sonnet-5-5` and `claude-haiku-4-5-…`), a Claude sub-agent's own, and
|
|
552
|
+
on Codex the model the thread runs on, or was rerouted to (it named none
|
|
553
|
+
without a requested model). The requested model remains the fallback for a
|
|
554
|
+
harness that names none. A Claude message that arrives whole, without
|
|
555
|
+
streaming, opens its own wire message, and a Codex reroute mid-turn starts
|
|
556
|
+
a new one under the rerouted model. `AdapterEvent` (exported from `./core`)
|
|
557
|
+
gains a `model` kind, which an embedder's exhaustive switch over it must
|
|
558
|
+
handle.
|
|
559
|
+
- `RunConfig.requestTimeoutMs` lets a permission request or question wait at
|
|
560
|
+
most that long: unanswered, it is resolved as cancelled, as a cancel would
|
|
561
|
+
resolve it (`permission.resolved` / `elicitation.resolved` on the stream, and
|
|
562
|
+
a cancelled permission ends a Claude turn). A host no longer needs a timer of
|
|
563
|
+
its own; absent, a request waits until the turn ends, as before. It is at
|
|
564
|
+
most 2^31-1 ms (about 24.8 days), a timer's limit.
|
|
565
|
+
- A Codex turn whose approval is answered cancel ends `cancelled`: Codex stops
|
|
566
|
+
such a turn and reports it `interrupted`, which the engine reported as
|
|
567
|
+
`end_turn`. What the turn started is stopped then, as after the engine's own
|
|
568
|
+
cancel, so a `cancelled` tool did not go on running. A Codex plan whose
|
|
569
|
+
question is cancelled unanswered ends its turn `cancelled`, as on Claude; it
|
|
570
|
+
read as the user keeping planning. A command the plan turn left running
|
|
571
|
+
keeps running then, as it was left on purpose, and reads as outcome unknown
|
|
572
|
+
rather than `cancelled`; so does one when the engine's cancel comes while the
|
|
573
|
+
plan's question is open. A Codex turn reported `failed` without an
|
|
574
|
+
error now fails.
|
|
575
|
+
- The Codex harness is one module per concern (`codex-agent.ts`, `session.ts`,
|
|
576
|
+
`turn.ts`, `thread-settings.ts`, `requests.ts`, `commands.ts`, …).
|
|
577
|
+
`CodexAppServerAgentOptions.createClient` returns a `CodexConnection`, the
|
|
578
|
+
members the harness uses (exported from `./core`); a `CodexAppServerClient`
|
|
579
|
+
is one, so a factory that returns it is unchanged. Behaviour changes that
|
|
580
|
+
came with it:
|
|
581
|
+
- a managed turn's cleanup reads every page of a worker's background
|
|
582
|
+
terminals: one listed past the first page read as stopped, and the turn as
|
|
583
|
+
settled;
|
|
584
|
+
- a command whose stop a cancel could not confirm carries
|
|
585
|
+
`closure: "outcome_unknown"` on its failed state, as the reducer's own
|
|
586
|
+
closures do;
|
|
587
|
+
- a list Codex does not end (a cursor it gave before, or more pages than the
|
|
588
|
+
list's bound) means Codex cannot say: `model/list` past ten pages fails the
|
|
589
|
+
live list, where it kept the first ten;
|
|
590
|
+
- a turn cancelled before its `turn/start` leaves the thread's model and
|
|
591
|
+
effort as they were; the engine took them as the cancelled turn's;
|
|
592
|
+
- the client says `clientInfo.version` `0.0.0`, not a made-up `0.1.0`.
|
|
593
|
+
- Claude runs with background tasks and scheduled prompts off, and Codex
|
|
594
|
+
threads with goals off (LLP 0001, D14). Both let the agent work after its
|
|
595
|
+
turn ended: Claude answers a background task that finished with a query of
|
|
596
|
+
its own, and Codex starts turns by itself while a goal is active. No turn on
|
|
597
|
+
the stream showed that work, and a Claude turn sent meanwhile ended on the
|
|
598
|
+
wrong result (asked "Reply with exactly SECOND", it showed "Background task
|
|
599
|
+
completed" and lost its answer). Claude's Bash and subagents now run in the
|
|
600
|
+
foreground. An operator's or a turn's `env` can set
|
|
601
|
+
`CLAUDE_CODE_DISABLE_BACKGROUND_TASKS` or `CLAUDE_CODE_DISABLE_CRON` back to
|
|
602
|
+
`0` (background tasks stay off under `subagentMode: "turn"`), and so accepts
|
|
603
|
+
that what Claude does after a turn is not shown.
|
|
604
|
+
- An MCP server can be one a turn goes on without: `required: false` on its
|
|
605
|
+
`McpServerConfig` (LLP 0001, D15). One that cannot connect is said as a
|
|
606
|
+
recoverable `error` of the new category `mcp_unavailable`, with no `retry`,
|
|
607
|
+
and the turn goes on without its tools; a later turn connects it again once
|
|
608
|
+
30 s have passed, and at once when its configuration changes or a turn
|
|
609
|
+
requires it. A required server (the default, as
|
|
610
|
+
before) that cannot connect still fails the turn before the model runs, now
|
|
611
|
+
as `mcp_unavailable` (it was `network` on Claude and `internal` on Codex)
|
|
612
|
+
with a message naming each server, its cause and the way out; Codex's cause
|
|
613
|
+
comes from its startup notification, where the message said only "server is
|
|
614
|
+
failed". A Codex server still starting after 30 seconds is named as one
|
|
615
|
+
that did not start, not "MCP startup timed out". Harnesses say such a
|
|
616
|
+
warning through `AgentExecuteOptions.onWarning`; `McpUnavailableError` is
|
|
617
|
+
exported from `./core`.
|
|
618
|
+
|
|
619
|
+
- A tool whose approval was asked for and never given (a crash at the
|
|
620
|
+
prompt, a rejection the harness never closed) fails as never run, not with
|
|
621
|
+
its outcome unknown. Crash recovery and the reducer close tools with one
|
|
622
|
+
rule now (`closeToolLeftOpen`); recovery said "outcome unknown" for a command
|
|
623
|
+
that never started.
|
|
624
|
+
- `canonicalHistoryJson` is `canonicalJson`, now the one canonical JSON: the
|
|
625
|
+
runtime's turn admission, the journal's fingerprint and the history hash
|
|
626
|
+
chain all use it (its output is unchanged, so stored versions still match).
|
|
627
|
+
- The server refuses every bad request one way (`WireError`); responses are
|
|
628
|
+
unchanged.
|
|
629
|
+
- A session-level error keeps its `retry` through a saved conversation:
|
|
630
|
+
`state.errors` entries had no `retry` in their schema, so
|
|
631
|
+
`ConversationStateSchema.parse` of a checkpoint dropped it. Turn and session
|
|
632
|
+
errors share `ErrorEntrySchema` now.
|
|
633
|
+
- `ClaudeCodeAgentOptions.idleTimeoutMs` sets how long an unused Claude
|
|
634
|
+
process lives (5 minutes by default), as the Codex and ACP options do.
|
|
635
|
+
|
|
636
|
+
- "Always allow" covers what the harness says it does, not every later call to
|
|
637
|
+
the tool: one "always" for `npm test` approved every Bash command after it,
|
|
638
|
+
with nothing on the stream (reported by AGNT). Claude and Codex keep
|
|
639
|
+
"always" themselves and the engine keeps no rule for them: Claude the rule
|
|
640
|
+
it suggests (`Bash(npm test *)`), for the session and never in settings
|
|
641
|
+
files; Codex its approval for the session (`acceptForSession`), the exact
|
|
642
|
+
command or a change's files. The always option names it, and there is no
|
|
643
|
+
"always reject" for them. A request the harness cannot scope offers none: a
|
|
644
|
+
Claude call with no suggestion, `suppressAlwaysAllowRule` or a matched ask
|
|
645
|
+
rule; a Codex network approval, or one asking extra permissions or a write
|
|
646
|
+
root. `onPermissionRequest`
|
|
647
|
+
takes `always: { rule } | null`; only a harness with no memory of its own
|
|
648
|
+
(ACP) leaves the engine its per-tool standing rule. A client's
|
|
649
|
+
`allow_always` for a request that offers none is a plain allow.
|
|
650
|
+
- A question the user skips is left out of Claude's answers instead of
|
|
651
|
+
answered with an empty string (a `null` too), and Claude and Codex tell the
|
|
652
|
+
agent the same thing when nobody can answer.
|
|
653
|
+
- A Claude turn ends on the result that answers it, one naming a message the
|
|
654
|
+
turn sent; a query Claude began itself (a finished background task) shows in
|
|
655
|
+
the turn it ran during and no longer ends it, nor does one between turns end
|
|
656
|
+
the session. A cancel drops the turn's messages Claude has not taken yet
|
|
657
|
+
(`command_lifecycle` names what it took), so a prompt waiting behind such a
|
|
658
|
+
query never runs. A permission request a client answers `cancelled` ends a
|
|
659
|
+
Claude turn `cancelled`, not `internal` ("error_during_execution"); one
|
|
660
|
+
Claude withdrew itself, a hook answering first, does not. The final context
|
|
661
|
+
gauge takes its size from the model in use, its `[1m]` variant included: one
|
|
662
|
+
Sonnet call made later Haiku turns read "/1000k".
|
|
663
|
+
|
|
664
|
+
- Findings of a live test of the Codex harness through the CLI:
|
|
665
|
+
- A cancelled Codex turn stops the command it was running. Codex 0.160 ends
|
|
666
|
+
a turn on `turn/interrupt` but keeps the command alive as a background
|
|
667
|
+
terminal, so a cancelled `sleep 6; touch after-cancel.txt` still created
|
|
668
|
+
the file, and Ctrl-C in the CLI left `sleep 17.3` running. The engine now
|
|
669
|
+
terminates the terminals the turn started
|
|
670
|
+
(`thread/backgroundTerminals/terminate`) and checks that they are gone
|
|
671
|
+
before the turn ends; when Codex cannot stop one, it ends the app-server,
|
|
672
|
+
whose shutdown stops them all (the next turn resumes the thread). A
|
|
673
|
+
command whose stop could not be confirmed fails with its outcome unknown
|
|
674
|
+
instead of reading as cancelled, and the cancel answers `unconfirmed`.
|
|
675
|
+
Only the terminals the turn started are terminated, never one it only
|
|
676
|
+
polled or wrote to, so terminals an earlier turn left running keep
|
|
677
|
+
running, unless the app-server has to be ended, which stops them all. A
|
|
678
|
+
cancel that comes after Codex's turn ended stops nothing, and a killed
|
|
679
|
+
command's late completion never reaches the next turn.
|
|
680
|
+
- A Codex command or patch the user declined fails, saying it was not
|
|
681
|
+
approved (`CODEX_COMMAND_DECLINED`, `CODEX_CHANGE_DECLINED`). Codex 0.160
|
|
682
|
+
completes it as `declined`, which the adapter read as completed: the CLI
|
|
683
|
+
printed `→ reject` and then `✔`. A completed patch's output names each
|
|
684
|
+
change as `update notes.md`; 0.160's change kind is an object, which
|
|
685
|
+
printed as `[object Object]`.
|
|
686
|
+
- Codex approvals show what they approve. A file change's `rawInput` was
|
|
687
|
+
`{}`; it now carries the change's `changes` (path, kind and diff of each
|
|
688
|
+
file, from the item Codex starts before it asks) and `locations`. An MCP
|
|
689
|
+
tool's consent carries the tool's arguments as its `rawInput`, as Claude's
|
|
690
|
+
do, where they were nested under `arguments`: read `rawInput` itself. The
|
|
691
|
+
CLI previews a patch's files with their added and removed lines, and an
|
|
692
|
+
approval prompt shows the whole command instead of its first 50
|
|
693
|
+
characters.
|
|
694
|
+
- A Codex turn that names no model or thinking level runs the thread's
|
|
695
|
+
defaults again. Codex keeps a turn's model and effort on the thread, and
|
|
696
|
+
the engine sent nothing for "default", so after `/model not-a-model-xyz`
|
|
697
|
+
every turn failed until a model was named, and `/thinking` after
|
|
698
|
+
`/thinking off` still ran `low`. The engine now sends the default back:
|
|
699
|
+
the model and effort the thread started with (`config.toml`, else Codex's
|
|
700
|
+
own), and with no effort configured the model's own default effort. A turn
|
|
701
|
+
that fails on a model it switched to puts the thread back on the model it
|
|
702
|
+
had (`thread/settings/update`), so a model the login cannot run no longer
|
|
703
|
+
sticks to the conversation, also for a later process that resumes it.
|
|
704
|
+
The session remembers its thread's defaults across processes (a
|
|
705
|
+
permission change starts a new one) until it is closed. Once an effort
|
|
706
|
+
was sent, even one fitted to a model a turn switched to, each later turn
|
|
707
|
+
that names no level works the default out for its own model, so going
|
|
708
|
+
back to the default model restores its effort too.
|
|
709
|
+
- A Codex turn with `disableTools` fails as `invalid_request` before Codex
|
|
710
|
+
starts (`CODEX_TOOLS_STAY`). Codex ignored it and ran `ls` under
|
|
711
|
+
`--no-tools`; the protocol said a read-only sandbox did the same, but that
|
|
712
|
+
sandbox still runs commands. With every feature that offers a tool turned
|
|
713
|
+
off, Codex 0.160 still gives the model its code-mode `exec`, `apply_patch`
|
|
714
|
+
inside it, its sub-agent tools and `request_user_input`, so no
|
|
715
|
+
configuration keeps it from acting. Send such a turn with tools on, in
|
|
716
|
+
`plan` or `default`. The harness scenarios, the live tests and the
|
|
717
|
+
durable drill's streaming scenario no longer ask Codex for it.
|
|
718
|
+
- `dont_ask` on Codex writes nothing. It ran in the workspace-write sandbox
|
|
719
|
+
with approvals off, so it wrote `d1.txt` without asking, where Claude
|
|
720
|
+
denies what was not approved and the protocol says unapproved tools are
|
|
721
|
+
denied. It now runs read-only: reads run, and Codex refuses every write,
|
|
722
|
+
which would need an approval. `accept_edits` keeps Codex's workspace-write
|
|
723
|
+
sandbox as its boundary (the folder, extra directories, `/tmp` and
|
|
724
|
+
`$TMPDIR`), where commands that write run unasked as well as edits;
|
|
725
|
+
harnesses.md now says so.
|
|
726
|
+
- Codex connects to a turn's MCP servers once per process instead of on
|
|
727
|
+
every turn. The engine's readiness check before each prompt asked Codex
|
|
728
|
+
for the status of every server, which makes Codex connect to each again
|
|
729
|
+
(`initialize`, `tools/list`), twice on a session's first turn. It now asks
|
|
730
|
+
for each requested server by name on the turn's thread, which Codex
|
|
731
|
+
answers from the thread's own connection: a scenario of nine turns sent
|
|
732
|
+
the server 3 initializations instead of 12.
|
|
733
|
+
|
|
734
|
+
- A client says what its connection does. `client.onConnection(handler)`
|
|
735
|
+
reports `disconnected`, `reconnecting` before each redial (`attempt`,
|
|
736
|
+
`delayMs`, and the `error` the one before failed with), `reconnected`
|
|
737
|
+
(`attempts`, `downMs`, the new `initialize`, and `serverChanged` when the
|
|
738
|
+
server behind the address no longer holds the logs the client followed:
|
|
739
|
+
another journal, none, or a volatile restart), and `closed`. A client that
|
|
740
|
+
gave up redialing closed in silence; its `closed` now says why ("reconnect
|
|
741
|
+
failed: …", also on the turns it fails). `maxReconnectAttempts: Infinity`
|
|
742
|
+
redials until `close()`, and `close()` ends a redial's backoff at once
|
|
743
|
+
instead of keeping the process alive through it. The repository CLI's chat
|
|
744
|
+
redials until the user quits (`run` gives up after about 3.5 minutes, as
|
|
745
|
+
before), shows the outage while it lasts, and after a `serverChanged`
|
|
746
|
+
continues the session's native conversation on the next turn instead of
|
|
747
|
+
starting a new one without a word.
|
|
748
|
+
|
|
749
|
+
- `session/release` (`client.releaseSession`) lets an idle durable session's
|
|
750
|
+
agent go (its process, a Codex home it holds) and keeps the session open:
|
|
751
|
+
its next turn names its native conversation (`resumeRequired` until it
|
|
752
|
+
does), as after a restart. `session/close` ends a session for good; this
|
|
753
|
+
frees what it runs on. Volatile servers answer `methodNotFound`; a
|
|
754
|
+
`SessionJournal` implements the port's new `releaseNative(sessionId)`. Nothing is broadcast: another client of the
|
|
755
|
+
session meets `resumeRequired` on its next turn, as after a restart. The
|
|
756
|
+
repository CLI
|
|
757
|
+
releases the session `/new` leaves and the one it leaves on exit; six `/new`
|
|
758
|
+
kept six Claude processes, 1.4 GB, until their idle timeout.
|
|
759
|
+
|
|
760
|
+
- The server bin says in one line what keeps it from starting, without a
|
|
761
|
+
stack: an unknown option by name, a missing value, a `--listen` port outside
|
|
762
|
+
0-65535, a port in use, a journal another server holds, a file that is not a
|
|
763
|
+
journal. `--listen [::1]:4747` binds IPv6 (`listen()` puts the host in
|
|
764
|
+
brackets in its URL), every option takes its value after `=` too
|
|
765
|
+
(`--journal=<path>`), `--help` lists `--stdio`, and `--buffer` with
|
|
766
|
+
`--journal` says it has no effect.
|
|
767
|
+
|
|
768
|
+
- A drill that injects a bad day into live turns, and what it found.
|
|
769
|
+
`control-agent-server drill signals-cli` pushes plan-limit warnings and
|
|
770
|
+
rejections, overload retries, a revoked key, a cut stream, a full context and
|
|
771
|
+
a crashed agent into real Claude and Codex turns through the CLI (a proxy in
|
|
772
|
+
front of the Anthropic API; a shim around Codex's app-server), checks the
|
|
773
|
+
stream and the chat view, and that the session recovers. It found three
|
|
774
|
+
misclassifications, now fixed: Claude's used-up plan failed as `rate_limit`
|
|
775
|
+
(now `usage_limit`, as Codex's), a prompt too long as `invalid_request` (now
|
|
776
|
+
`context_limit`), and a dead Codex app-server as `internal` (now
|
|
777
|
+
`process_exit`, an `AgentExitedError` as ACP's).
|
|
778
|
+
- A used-up window counts while no extra usage (overage) answers in its
|
|
779
|
+
place, until Claude reports it allowed again or its reset passes, and in
|
|
780
|
+
later turns of the same session too: Claude tells a rejection once.
|
|
781
|
+
- A Codex app-server that dies while resuming a thread now fails the turn as
|
|
782
|
+
`process_exit`, not `resume_failed`: a host that stops resuming on
|
|
783
|
+
`resume_failed` may retry it. Its stderr no longer decides the category
|
|
784
|
+
(a word such as "aborted" in a crash made it pass for a cancel). Requests
|
|
785
|
+
after the exit, a broken pipe before it, MCP startup and an open plan
|
|
786
|
+
question all fail with the exit and its last stderr words.
|
|
787
|
+
- The classifier reads a status code only as a whole number: a too-long
|
|
788
|
+
prompt's "240129 tokens" is no longer `auth`, nor "214290" `rate_limit`.
|
|
789
|
+
Claude Code's "You've hit your … limit" text classifies as `usage_limit`.
|
|
790
|
+
|
|
791
|
+
- Five reports from consumers, through Hivenet:
|
|
792
|
+
- `session.usage.used` stays the context in use. A Claude turn's last gauge
|
|
793
|
+
took it from the result's usage, which sums every model call of the turn
|
|
794
|
+
(a Rafina turn read 67,356, then 325,982).
|
|
795
|
+
- `session.created` comes when it says something new: a session's first
|
|
796
|
+
native id, a new one, or a resume that did not continue (`resumed:
|
|
797
|
+
false`). It came on every turn, so a consumer counting sessions saw one
|
|
798
|
+
per turn.
|
|
799
|
+
- `shutdown` answers once the turns it cancelled have broadcast their
|
|
800
|
+
`turn.ended`, so `client.shutdownServer()` hands a running turn its
|
|
801
|
+
cancelled end instead of a `ConnectionClosedError`.
|
|
802
|
+
- A turn sent again with the same ids converges when only what a client's
|
|
803
|
+
restart can change differs: MCP endpoints, `env`, `apiKey`, `includeRaw`
|
|
804
|
+
(`turnIdentity`, shared by the journal and the runtime). A fresh
|
|
805
|
+
per-session MCP URL made it `turnConflict`.
|
|
806
|
+
- Claude Code's own failure text (a sign-in or billing error, sent as a
|
|
807
|
+
synthetic assistant message) no longer appears as the agent's reply, and
|
|
808
|
+
its `<synthetic>` model is not reported as one the turn ran.
|
|
809
|
+
|
|
810
|
+
- A tool cut off by an error says its outcome is unknown. A turn that ended
|
|
811
|
+
with a tool still running closed it as `cancelled`, whatever ended the turn;
|
|
812
|
+
after an error, max tokens or a dead process the tool may have done its
|
|
813
|
+
work, so the reducer now closes it `failed` with `TOOL_OUTCOME_UNKNOWN`
|
|
814
|
+
("Its outcome is unknown and its effects were not undone", the words crash
|
|
815
|
+
recovery already used), and a call whose input never finished streaming
|
|
816
|
+
with `TOOL_NEVER_RAN`, as journal recovery now does too; `verifyStreamContract`
|
|
817
|
+
accepts both closures. Only a cancelled turn cancels its tools. The CLI
|
|
818
|
+
shows "outcome unknown · the turn ended first". A Claude process killed by
|
|
819
|
+
a signal now fails as `process_exit`, not `internal`.
|
|
820
|
+
|
|
821
|
+
- Codex plans in its own Plan mode. `permissionMode: "plan"` gave Codex only
|
|
822
|
+
a read-only sandbox; it now sends Codex's Plan collaboration mode (and
|
|
823
|
+
Default whenever a thread's mode is another, since Codex keeps it across
|
|
824
|
+
turns and resumes). Codex explores, may ask questions, and ends its turn
|
|
825
|
+
with a plan, which the engine puts to the user as it does Claude's (a
|
|
826
|
+
`switch_mode` tool part, "Implement this plan?") and Codex's TUI does.
|
|
827
|
+
Approving runs Codex's next turn within the same turn ("Implement the
|
|
828
|
+
plan." in Default mode, the thread switched to the workspace-write profile
|
|
829
|
+
when edits are auto-accepted); keeping planning with a message revises the
|
|
830
|
+
plan by it. Plan turns now ask like `default` (MCP tool consent, commands
|
|
831
|
+
beyond the sandbox) and decline the edits they ask for; a steer sent while
|
|
832
|
+
the user decides goes to the implementing turn. Codex sessions now always
|
|
833
|
+
opt into the app-server's experimental API, which collaboration modes need.
|
|
834
|
+
|
|
835
|
+
- A plan is put to the user, and the answer picks how the agent goes on.
|
|
836
|
+
Claude's ExitPlanMode asked "Allow tool: ExitPlanMode" with "Always allow"
|
|
837
|
+
among its options, and its tool part showed `{}`: Claude Code fills in the
|
|
838
|
+
plan after the model calls the tool empty. The approval now asks
|
|
839
|
+
"Implement this plan?" with Claude Code's own choices, whose ids are the
|
|
840
|
+
modes to go on in (`PLAN_OPTIONS`: `accept_edits`, `default`, `plan`), the
|
|
841
|
+
plan on the request and on the tool part. A permission answer can carry
|
|
842
|
+
`message`: keeping planning with one tells Claude what to change. A harness
|
|
843
|
+
can offer its own options (`onPermissionRequest(call, {options})`), which no
|
|
844
|
+
standing rule answers or keeps, and the decision says which was picked
|
|
845
|
+
(`optionId`); a client that answers with a standard id (`allow`, `reject`)
|
|
846
|
+
means a plain allow or reject, so an approved plan goes on in `default`, as
|
|
847
|
+
approving ExitPlanMode did. Auto-accepting edits is the plan's `allow_always`,
|
|
848
|
+
so an approver that takes the one-time approval asks for each edit. A
|
|
849
|
+
rejection's `message` reaches Claude for any tool, in Claude Code's words.
|
|
850
|
+
Each turn says the mode it asked for (`execution.permissionMode`); when the
|
|
851
|
+
agent switches mid-turn the stream says `session.mode`, both open
|
|
852
|
+
vocabularies, the reducer keeps `state.permissionMode`, and the CLI follows
|
|
853
|
+
it for the conversation. Claude now switches between plan, default, accept
|
|
854
|
+
edits and don't ask without a new process. An ACP agent's switch-mode
|
|
855
|
+
request (claude-agent-acp's plan approval) reaches the user with the agent's
|
|
856
|
+
own options in any mode that asks, where plan mode rejected it, and the turn
|
|
857
|
+
then runs in the mode approved. The ACP server binding offers session modes
|
|
858
|
+
(`session/set_mode`, `current_mode_update`), never above the operator's.
|
|
859
|
+
The CLI prints the plan and a numbered menu (or y/n), and
|
|
860
|
+
`control-agent-server drill plan-cli` verifies plans live. LLP 0001, D4.
|
|
861
|
+
|
|
862
|
+
- Steer a running turn. `turn/steer {sessionId, turnId, steerId?, input}`
|
|
863
|
+
(`client.steerTurn`, `handle.steer`, `runtime.steer`) adds input while the
|
|
864
|
+
agent works, instead of refusing it as `turnActive` or queueing it for the
|
|
865
|
+
next turn. The agent reads it at its next step, after the tool it runs, or
|
|
866
|
+
as one more query when it was already answering, and the stream shows it
|
|
867
|
+
there as a user message whose ids derive from the steer id
|
|
868
|
+
(`steerMessageId`). A turn that ends first lists it in
|
|
869
|
+
`turn.ended.undeliveredSteers`; a cancelled steer never runs later.
|
|
870
|
+
Answers: `steered`, `no_active_turn` (send a new turn), `unsupported`
|
|
871
|
+
(`AgentCapabilities.steering`); a steer `turn.ended` lists is always
|
|
872
|
+
answered `steered`. A turn takes steers from the moment it is admitted; a
|
|
873
|
+
retried `steerId` converges, and one reused with other input or in another
|
|
874
|
+
turn of the session is `turnConflict`. Claude and Codex steer, ACP does not.
|
|
875
|
+
Claude turns that ran a steer as an extra query report usage and cost summed
|
|
876
|
+
over both. The CLI steers with a line typed while a turn runs (also one it
|
|
877
|
+
reopened), and `/steer <text>` from anywhere. A custom harness steers by
|
|
878
|
+
implementing `Agent.steer` and having its adapter emit `steer-inserted` where
|
|
879
|
+
the agent read the steer. The verifier gains `user-messages-top-level`,
|
|
880
|
+
`undelivered-steers-not-echoed` and `message-ids-unique`. LLP 0001, D13.
|
|
881
|
+
The CLI's `/cancel` stops a turn where there is no terminal for Ctrl-C, and
|
|
882
|
+
`control-agent-server drill steering-cli` verifies steering live.
|
|
883
|
+
|
|
884
|
+
- An ACP agent that exits says why. The turn failed with the SDK's bare "ACP
|
|
885
|
+
connection closed"; it now fails as `process_exit` with the agent's exit
|
|
886
|
+
code and the last two lines of its stderr, where an agent explains a missing
|
|
887
|
+
login or a bad flag (an `AgentExitedError`, classified by its code, never by
|
|
888
|
+
that text). A child the agent left holding its pipes no longer keeps the
|
|
889
|
+
turn open, and an agent that ignores SIGTERM is killed after three seconds.
|
|
890
|
+
`pi` runs a pinned `pi-acp@0.0.34` instead of whatever npm published last.
|
|
891
|
+
|
|
892
|
+
- A Claude turn's `tokens` count every model call it made. They came from the
|
|
893
|
+
result's `usage`, which counts the main loop only, so a turn that ran a
|
|
894
|
+
sub-agent reported its cost but not its tokens (1,549 cache writes where
|
|
895
|
+
14,041 happened). They now come from the growth of Claude's running
|
|
896
|
+
`modelUsage` totals, thinking reported as `reasoning`; a resumed process's
|
|
897
|
+
first turn, whose totals include earlier turns, still uses `usage`.
|
|
898
|
+
|
|
899
|
+
- Codex compactions reach the stream: a `contextCompaction` item becomes
|
|
900
|
+
`session.compaction` (trigger `auto`), as Claude's compaction boundary does,
|
|
901
|
+
instead of being dropped.
|
|
902
|
+
|
|
903
|
+
- Plan usage and retries are visible. `session.limits` reports the account's
|
|
904
|
+
usage windows (percent used, reset time, plan type) from Claude's
|
|
905
|
+
`rate_limit_event` and Codex's `account/rateLimits/updated`, both of which
|
|
906
|
+
every turn already sent and the engine dropped; the reducer keeps
|
|
907
|
+
`state.limits`, windows merged by id. A harness retrying a failed request
|
|
908
|
+
(Claude `api_retry`, Codex `error` with `willRetry`) now emits a recoverable
|
|
909
|
+
`error` with `retry: {attempt, maxAttempts, delayMs}` instead of a silent
|
|
910
|
+
wait. A turn's failure takes its category from the harness's typed code
|
|
911
|
+
(Claude's assistant `error`, Codex's `codexErrorInfo`) before message
|
|
912
|
+
matching (a code this build does not know leaves it to the text), and
|
|
913
|
+
`overloaded` joins the error categories (recoverable). A status that belongs
|
|
914
|
+
to one window rides on it, and the overall status is the worst window's
|
|
915
|
+
unless the report gives its own. The CLI
|
|
916
|
+
shows the plan line once a window nears its limit, and retries with their
|
|
917
|
+
attempt and wait.
|
|
918
|
+
- The agent's questions reach the user. `elicitation.requested` /
|
|
919
|
+
`elicitation.resolved` and `elicitation/respond` (`respondElicitation` on the
|
|
920
|
+
runtime and the client) broker what an agent asks besides an approval,
|
|
921
|
+
shaped after ACP's `elicitation/create`: `question` mode for Claude's
|
|
922
|
+
`AskUserQuestion` and Codex's `request_user_input`, `form` and `url` for MCP
|
|
923
|
+
servers' requests through Claude, Codex and ACP agents (the ACP harness now
|
|
924
|
+
declares the `elicitation` client capability). A turn opts in with
|
|
925
|
+
`config.elicitation: true`; otherwise the harness declines on the user's
|
|
926
|
+
behalf and the agent carries on. Claude's `AskUserQuestion` used to arrive as
|
|
927
|
+
a tool approval whose "allow" told Claude "the user did not answer", and MCP
|
|
928
|
+
servers' requests were declined on every harness. The reducer keeps
|
|
929
|
+
`state.elicitations` (`pendingElicitations`), the stream contract adds
|
|
930
|
+
`elicitation-resolves-once`, journal recovery cancels a pending one, and the
|
|
931
|
+
CLI asks and answers in chat, also in a turn it reopens. The harness gets a
|
|
932
|
+
secret answer, but `elicitation.resolved` carries `["[secret]"]` in its place,
|
|
933
|
+
so no journal, replay, history or checkpoint stores it.
|
|
934
|
+
- Codex MCP tools that change something now run outside bypass mode. Codex
|
|
935
|
+
asks consent for an MCP tool call not marked read-only as an MCP elicitation;
|
|
936
|
+
agent-server answered it with an error, so in `default` mode every such call
|
|
937
|
+
was rejected without the user being asked and in `accept_edits` it failed.
|
|
938
|
+
The consent now goes to the engine's permission broker as an approval of
|
|
939
|
+
that tool call (`<server>.<tool>`, linked to its tool part), and
|
|
940
|
+
`accept_edits` runs Codex with `on-request` approvals: Codex still approves
|
|
941
|
+
edits inside its workspace by itself, and asks through the broker before
|
|
942
|
+
writing beyond it.
|
|
943
|
+
- Attachments reach the agent or fail the turn, as `invalid_request`, instead
|
|
944
|
+
of vanishing. Codex takes images as data or local paths (it refuses remote
|
|
945
|
+
image URLs), text files inline, and local files as mentions; Claude sends a
|
|
946
|
+
text file as a text document (base64 documents are PDFs only); an ACP agent
|
|
947
|
+
gets image data only with its image capability and files as embedded
|
|
948
|
+
resources only with `embeddedContext`, else text inline. Codex used to send
|
|
949
|
+
every URL as an image and drop files given as data; ACP dropped both.
|
|
950
|
+
`UnsupportedAttachmentError` is exported from `./core`.
|
|
951
|
+
- The `error` event that ends a turn is never `recoverable`, which the schema
|
|
952
|
+
defines as "the turn continues"; a rate-limit or network failure used to be
|
|
953
|
+
flagged recoverable, and the CLI printed "retrying" for a turn that had ended.
|
|
954
|
+
- The ACP harness never selects an agent's `allow_always` option for an allow,
|
|
955
|
+
which left a standing rule in the agent nobody chose; with no `allow_once`
|
|
956
|
+
offered the request is cancelled. The engine keeps the user's own "always"
|
|
957
|
+
answers.
|
|
958
|
+
- The CLI attaches files and images: `--attach=<path>` (repeatable) for the
|
|
959
|
+
first message and `/attach <path>` in chat, sent inline so every harness can
|
|
960
|
+
read them.
|
|
961
|
+
- codex-app-server honors a turn's `apiKey` and `additionalDirectories`, the
|
|
962
|
+
two fields only codex-sdk used to map. The key logs that session's process
|
|
963
|
+
in, for turns and for `models/list`, and any supplied credential stays in
|
|
964
|
+
memory (`cli_auth_credentials_store = "ephemeral"`) instead of replacing the
|
|
965
|
+
`CODEX_HOME` login. A host's `resolveAuth`, when configured, decides instead,
|
|
966
|
+
and its `undefined` still means the native login. Extra directories become
|
|
967
|
+
writable roots of the workspace-write sandbox; changing them starts a new
|
|
968
|
+
process.
|
|
969
|
+
- A Claude turn reports its own cost after a resume. Claude's running total
|
|
970
|
+
restores what earlier processes of the conversation spent, so a resumed
|
|
971
|
+
process's first turn reported the conversation's whole spend, as did each
|
|
972
|
+
turn after a thinking, permission-mode or rewind change restarted the
|
|
973
|
+
process. That first turn now reports no cost, and a restart keeps the
|
|
974
|
+
running baseline, so the turn after it is exact.
|
|
975
|
+
The cost comes from the session's own tap (`turn_cost_usd`): a custom agent
|
|
976
|
+
that yields raw SDK `result` messages to `createClaudeCodeTransformer` gets
|
|
977
|
+
no turn cost, since the SDK's `total_cost_usd` counts the whole conversation.
|
|
978
|
+
- Peer dependency floors rise to the versions this package is built and tested
|
|
979
|
+
against: `@anthropic-ai/claude-agent-sdk` >=0.3.277 (earlier versions reset
|
|
980
|
+
`total_cost_usd` on resume, which the cost baseline above relies on),
|
|
981
|
+
`@agentclientprotocol/sdk` >=1.3.0, and zod ^4.6.6. The old floors never
|
|
982
|
+
type-checked.
|
|
983
|
+
- Hivenet feedback for agent-server itself, never the task at hand: both CLI
|
|
984
|
+
entry points accept `--message`, failed-task eval fields, `--answer` and
|
|
985
|
+
`--dry-run`, validate reports before sending, and show known-issue context
|
|
986
|
+
alongside maintainer guidance and questions. `docs/feedback.md` is the guide;
|
|
987
|
+
the CLI's in-process MCP server tells a Claude session it may report harness
|
|
988
|
+
friction the same way.
|
|
989
|
+
- Types ship as declarations: each export's `types` is `dist/types`, which
|
|
990
|
+
`npm pack` and `npm publish` emit from the sources the runtime still loads.
|
|
991
|
+
A consumer's `tsc` no longer compiles this package's sources, so under Node
|
|
992
|
+
it needs neither Bun's types, nor the SDKs of harnesses it does not run, nor
|
|
993
|
+
`allowImportingTsExtensions`, and its own options (`noUnusedLocals`, …) apply
|
|
994
|
+
only to its own files.
|
|
995
|
+
- Token deltas are live only (wire protocol 3): `message.part.delta` takes no
|
|
996
|
+
`seq` of its own, carrying that of the session's last kept event, and no
|
|
997
|
+
replay buffer or journal newly keeps it. A journal used to commit every
|
|
998
|
+
delta as a hash-chained record, about 1.4 KB each, so a long answer added
|
|
999
|
+
megabytes and filled history pages. A turn that ends with text or tool input
|
|
1000
|
+
its harness streamed but never snapshotted (a cancel mid-sentence, or mid
|
|
1001
|
+
tool call) gets that snapshot before `turn.ended`, so kept history shows all
|
|
1002
|
+
the stream did.
|
|
1003
|
+
- A journal never stores a token delta, and history refuses delta records
|
|
1004
|
+
like raw harness output; it keeps what each streaming part streamed outside
|
|
1005
|
+
every history, for recovery (below). A journal written by an earlier
|
|
1006
|
+
version (schema 2, which kept every delta) is refused at open; start a new
|
|
1007
|
+
journal file.
|
|
1008
|
+
- Streaming parts are kept at their opening, the state changes their harness
|
|
1009
|
+
reports and their end; what streams in between is live (deltas, and the
|
|
1010
|
+
open parts a subscription sends) and survives a crash in the journal's tail
|
|
1011
|
+
rows. A 13,891-character answer kept 2 records (14.6 KB), where the
|
|
1012
|
+
one-second partial snapshots of an earlier build of this release kept 31
|
|
1013
|
+
for a 10,850-character one (185.8 KB): they were 86% of a session's journal
|
|
1014
|
+
bytes, replayed on every reopen. A history follower sees a part when it
|
|
1015
|
+
opens and when it ends. A server process that dies (a crash, a SIGKILL)
|
|
1016
|
+
keeps what was shown: the journal keeps each streaming part's tail
|
|
1017
|
+
(written before the delta is delivered, outside the history), and recovery
|
|
1018
|
+
closes the part with it; only power loss can lose it. Live-follow
|
|
1019
|
+
verification requires a finished assistant part before the source ends,
|
|
1020
|
+
not just a turn-start event or the user echo.
|
|
1021
|
+
- A delta is delivered only after a snapshot of its part on the current
|
|
1022
|
+
connection, which joining or reconnecting receives at once: the open parts
|
|
1023
|
+
that follow its subscription. Replay cannot expose missing tokens, and
|
|
1024
|
+
appending across that hole otherwise corrupts text already printed by a
|
|
1025
|
+
CLI even though the final saved snapshot is correct.
|
|
1026
|
+
- `SeqCursor.advanceLive` and `isLiveOnlyEvent` place a forwarded delta: it
|
|
1027
|
+
delivers where the cursor stands at its `seq`, is dropped once the cursor
|
|
1028
|
+
moved past it, and waits behind kept events still missing.
|
|
1029
|
+
- Both sides refuse the other protocol version, so a 0.3.18 client and this
|
|
1030
|
+
server fail at `initialize` instead of reading deltas as gaps or duplicates.
|
|
1031
|
+
- `AgentCapabilities` says what the CLI used to know by harness name:
|
|
1032
|
+
`files`, the kinds of file a harness reads as data (`FILE_KINDS`:
|
|
1033
|
+
`text`, `pdf`, `binary`, told apart by the new `fileKind(mimeType)`;
|
|
1034
|
+
Claude `text, pdf`, Codex `text`, ACP all three, as its agent decides),
|
|
1035
|
+
and `rejectionMessages`, whether a refused tool call's `message` reaches
|
|
1036
|
+
the agent (Claude only). Both are required: every built-in harness states
|
|
1037
|
+
them, and a custom agent's `capabilities` must too (a server older than
|
|
1038
|
+
protocol 6 is refused at `initialize`, so no client meets one without
|
|
1039
|
+
them). The CLI checks
|
|
1040
|
+
attachments and hands refusal words on from what `initialize` reports,
|
|
1041
|
+
so a `--connect` CLI no longer assumes the server's harnesses.
|
|
1042
|
+
|
|
3
1043
|
## 0.3.18
|
|
4
1044
|
|
|
5
1045
|
- A turn on a full model id that the model list names only through an alias,
|
|
@@ -17,7 +1057,7 @@
|
|
|
17
1057
|
sessions, replay and turn receipts survive a restart. A turn a restart cut
|
|
18
1058
|
off is recorded interrupted and its session refuses turns until
|
|
19
1059
|
`session/confirmStopped`; `turn/get` and `session/get` read receipts and
|
|
20
|
-
state. See `docs/
|
|
1060
|
+
state. See `docs/durable-sessions.md`.
|
|
21
1061
|
- Portable history: `history/*` on the wire, `client.history`, and
|
|
22
1062
|
`transferHistory`, `openHistory`, `followHistory` and `startHistorySync` in
|
|
23
1063
|
`/sync` copy hash-chained session history between stores and let viewers
|