@zvada/agent-server 0.3.21 → 0.3.23
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/CHANGELOG.md +332 -0
- package/README.md +2 -1
- package/dist/types/accounts/chatgpt.d.ts +1 -1
- package/dist/types/accounts/chatgpt.d.ts.map +1 -1
- package/dist/types/accounts/http.d.ts +2 -4
- package/dist/types/accounts/http.d.ts.map +1 -1
- package/dist/types/client/client.d.ts +37 -11
- package/dist/types/client/client.d.ts.map +1 -1
- package/dist/types/client/connection.d.ts +66 -13
- package/dist/types/client/connection.d.ts.map +1 -1
- package/dist/types/client/index.d.ts +1 -1
- package/dist/types/client/index.d.ts.map +1 -1
- package/dist/types/client/logins.d.ts +4 -3
- package/dist/types/client/logins.d.ts.map +1 -1
- package/dist/types/client/streams.d.ts +9 -3
- package/dist/types/client/streams.d.ts.map +1 -1
- package/dist/types/client/turns.d.ts +1 -1
- package/dist/types/client/turns.d.ts.map +1 -1
- package/dist/types/core/agents/acp/acp-agent.d.ts +34 -1
- package/dist/types/core/agents/acp/acp-agent.d.ts.map +1 -1
- package/dist/types/core/agents/acp/adapter.d.ts.map +1 -1
- package/dist/types/core/agents/acp/client.d.ts +12 -3
- package/dist/types/core/agents/acp/client.d.ts.map +1 -1
- package/dist/types/core/agents/acp/mappings.d.ts +8 -2
- package/dist/types/core/agents/acp/mappings.d.ts.map +1 -1
- package/dist/types/core/agents/base.d.ts +22 -8
- package/dist/types/core/agents/base.d.ts.map +1 -1
- package/dist/types/core/agents/claude-code/adapter.d.ts +7 -0
- package/dist/types/core/agents/claude-code/adapter.d.ts.map +1 -1
- package/dist/types/core/agents/claude-code/approvals.d.ts +4 -1
- package/dist/types/core/agents/claude-code/approvals.d.ts.map +1 -1
- package/dist/types/core/agents/claude-code/claude-agent.d.ts +16 -5
- package/dist/types/core/agents/claude-code/claude-agent.d.ts.map +1 -1
- package/dist/types/core/agents/claude-code/events.d.ts +9 -1
- package/dist/types/core/agents/claude-code/events.d.ts.map +1 -1
- package/dist/types/core/agents/claude-code/login.d.ts +4 -1
- package/dist/types/core/agents/claude-code/login.d.ts.map +1 -1
- package/dist/types/core/agents/claude-code/mcp.d.ts +21 -7
- package/dist/types/core/agents/claude-code/mcp.d.ts.map +1 -1
- package/dist/types/core/agents/claude-code/models.d.ts +5 -1
- package/dist/types/core/agents/claude-code/models.d.ts.map +1 -1
- package/dist/types/core/agents/claude-code/options.d.ts +10 -4
- package/dist/types/core/agents/claude-code/options.d.ts.map +1 -1
- package/dist/types/core/agents/claude-code/outcome.d.ts +3 -5
- package/dist/types/core/agents/claude-code/outcome.d.ts.map +1 -1
- package/dist/types/core/agents/claude-code/results.d.ts +16 -0
- package/dist/types/core/agents/claude-code/results.d.ts.map +1 -0
- package/dist/types/core/agents/claude-code/sdk-pair.d.ts +13 -0
- package/dist/types/core/agents/claude-code/sdk-pair.d.ts.map +1 -0
- package/dist/types/core/agents/claude-code/session.d.ts +50 -12
- package/dist/types/core/agents/claude-code/session.d.ts.map +1 -1
- package/dist/types/core/agents/claude-code/spend.d.ts +2 -1
- package/dist/types/core/agents/claude-code/spend.d.ts.map +1 -1
- package/dist/types/core/agents/claude-code/tools.d.ts +26 -3
- package/dist/types/core/agents/claude-code/tools.d.ts.map +1 -1
- package/dist/types/core/agents/codex-app-server/adapter.d.ts +2 -2
- package/dist/types/core/agents/codex-app-server/adapter.d.ts.map +1 -1
- package/dist/types/core/agents/codex-app-server/client.d.ts +21 -2
- package/dist/types/core/agents/codex-app-server/client.d.ts.map +1 -1
- package/dist/types/core/agents/codex-app-server/codex-agent.d.ts +61 -14
- package/dist/types/core/agents/codex-app-server/codex-agent.d.ts.map +1 -1
- package/dist/types/core/agents/codex-app-server/commands.d.ts +2 -2
- package/dist/types/core/agents/codex-app-server/commands.d.ts.map +1 -1
- package/dist/types/core/agents/codex-app-server/credentials.d.ts +5 -1
- package/dist/types/core/agents/codex-app-server/credentials.d.ts.map +1 -1
- package/dist/types/core/agents/codex-app-server/effort.d.ts +2 -1
- package/dist/types/core/agents/codex-app-server/effort.d.ts.map +1 -1
- package/dist/types/core/agents/codex-app-server/homes.d.ts +26 -5
- package/dist/types/core/agents/codex-app-server/homes.d.ts.map +1 -1
- package/dist/types/core/agents/codex-app-server/items.d.ts +27 -2
- package/dist/types/core/agents/codex-app-server/items.d.ts.map +1 -1
- package/dist/types/core/agents/codex-app-server/login.d.ts +4 -1
- package/dist/types/core/agents/codex-app-server/login.d.ts.map +1 -1
- package/dist/types/core/agents/codex-app-server/mcp.d.ts +45 -20
- package/dist/types/core/agents/codex-app-server/mcp.d.ts.map +1 -1
- package/dist/types/core/agents/codex-app-server/models.d.ts +3 -10
- package/dist/types/core/agents/codex-app-server/models.d.ts.map +1 -1
- package/dist/types/core/agents/codex-app-server/options.d.ts +32 -5
- package/dist/types/core/agents/codex-app-server/options.d.ts.map +1 -1
- package/dist/types/core/agents/codex-app-server/plan-approval.d.ts +2 -1
- package/dist/types/core/agents/codex-app-server/plan-approval.d.ts.map +1 -1
- package/dist/types/core/agents/codex-app-server/protocol.d.ts +16 -3
- package/dist/types/core/agents/codex-app-server/protocol.d.ts.map +1 -1
- package/dist/types/core/agents/codex-app-server/requests.d.ts.map +1 -1
- package/dist/types/core/agents/codex-app-server/session.d.ts +70 -33
- package/dist/types/core/agents/codex-app-server/session.d.ts.map +1 -1
- package/dist/types/core/agents/codex-app-server/subagents.d.ts +9 -4
- package/dist/types/core/agents/codex-app-server/subagents.d.ts.map +1 -1
- package/dist/types/core/agents/codex-app-server/thread-settings.d.ts +3 -2
- package/dist/types/core/agents/codex-app-server/thread-settings.d.ts.map +1 -1
- package/dist/types/core/agents/codex-app-server/turn-items.d.ts +2 -1
- package/dist/types/core/agents/codex-app-server/turn-items.d.ts.map +1 -1
- package/dist/types/core/agents/codex-app-server/turn.d.ts +37 -8
- package/dist/types/core/agents/codex-app-server/turn.d.ts.map +1 -1
- package/dist/types/core/agents/codex-app-server/user-login.d.ts +28 -0
- package/dist/types/core/agents/codex-app-server/user-login.d.ts.map +1 -0
- package/dist/types/core/agents/credentials.d.ts +3 -1
- package/dist/types/core/agents/credentials.d.ts.map +1 -1
- package/dist/types/core/agents/diffs.d.ts +9 -0
- package/dist/types/core/agents/diffs.d.ts.map +1 -0
- package/dist/types/core/agents/elicitation.d.ts +3 -2
- package/dist/types/core/agents/elicitation.d.ts.map +1 -1
- package/dist/types/core/agents/login.d.ts +6 -0
- package/dist/types/core/agents/login.d.ts.map +1 -1
- package/dist/types/core/agents/mcp-config.d.ts +0 -4
- package/dist/types/core/agents/mcp-config.d.ts.map +1 -1
- package/dist/types/core/agents/plan.d.ts +2 -13
- package/dist/types/core/agents/plan.d.ts.map +1 -1
- package/dist/types/core/agents/process-pool.d.ts +193 -0
- package/dist/types/core/agents/process-pool.d.ts.map +1 -0
- package/dist/types/core/agents/scripted/adapter.d.ts +68 -0
- package/dist/types/core/agents/scripted/adapter.d.ts.map +1 -0
- package/dist/types/core/agents/scripted/mcp-call.d.ts +56 -0
- package/dist/types/core/agents/scripted/mcp-call.d.ts.map +1 -0
- package/dist/types/core/agents/scripted/scripted-agent.d.ts +73 -0
- package/dist/types/core/agents/scripted/scripted-agent.d.ts.map +1 -0
- package/dist/types/core/agents/scripted/scripts.d.ts +29 -0
- package/dist/types/core/agents/scripted/scripts.d.ts.map +1 -0
- package/dist/types/core/agents/scripted/steps.d.ts +132 -0
- package/dist/types/core/agents/scripted/steps.d.ts.map +1 -0
- package/dist/types/core/agents/session-agent.d.ts +49 -6
- package/dist/types/core/agents/session-agent.d.ts.map +1 -1
- package/dist/types/core/diagnostics.d.ts +4 -1
- package/dist/types/core/diagnostics.d.ts.map +1 -1
- package/dist/types/core/index.d.ts +6 -1
- package/dist/types/core/index.d.ts.map +1 -1
- package/dist/types/core/presets.d.ts +32 -6
- package/dist/types/core/presets.d.ts.map +1 -1
- package/dist/types/core/processes/lifeline.d.ts +0 -20
- package/dist/types/core/processes/lifeline.d.ts.map +1 -1
- package/dist/types/core/provision/index.d.ts +2 -2
- package/dist/types/core/provision/index.d.ts.map +1 -1
- package/dist/types/core/provision/install-build.d.ts +2 -1
- package/dist/types/core/provision/install-build.d.ts.map +1 -1
- package/dist/types/core/provision/npm.d.ts +20 -8
- package/dist/types/core/provision/npm.d.ts.map +1 -1
- package/dist/types/core/provision/provisioner.d.ts +4 -1
- package/dist/types/core/provision/provisioner.d.ts.map +1 -1
- package/dist/types/core/provision/tools.d.ts +2 -1
- package/dist/types/core/provision/tools.d.ts.map +1 -1
- package/dist/types/core/runtime/agent-runtime.d.ts +18 -9
- package/dist/types/core/runtime/agent-runtime.d.ts.map +1 -1
- package/dist/types/core/runtime/event-processor.d.ts +5 -1
- package/dist/types/core/runtime/event-processor.d.ts.map +1 -1
- package/dist/types/core/runtime/harness-clis.d.ts +9 -0
- package/dist/types/core/runtime/harness-clis.d.ts.map +1 -1
- package/dist/types/core/runtime/harness-logins.d.ts +33 -5
- package/dist/types/core/runtime/harness-logins.d.ts.map +1 -1
- package/dist/types/core/runtime/model-lists.d.ts +2 -0
- package/dist/types/core/runtime/model-lists.d.ts.map +1 -1
- package/dist/types/core/runtime/permission-policy.d.ts +5 -3
- package/dist/types/core/runtime/permission-policy.d.ts.map +1 -1
- package/dist/types/core/runtime/request-broker.d.ts +2 -1
- package/dist/types/core/runtime/request-broker.d.ts.map +1 -1
- package/dist/types/core/runtime/turn.d.ts +14 -1
- package/dist/types/core/runtime/turn.d.ts.map +1 -1
- package/dist/types/core/utils/deadline.d.ts +6 -0
- package/dist/types/core/utils/deadline.d.ts.map +1 -1
- package/dist/types/core/utils/errors.d.ts +15 -1
- package/dist/types/core/utils/errors.d.ts.map +1 -1
- package/dist/types/operator/index.d.ts +11 -0
- package/dist/types/operator/index.d.ts.map +1 -0
- package/dist/types/operator/mcp.d.ts +33 -0
- package/dist/types/operator/mcp.d.ts.map +1 -0
- package/dist/types/operator/operator.d.ts +206 -0
- package/dist/types/operator/operator.d.ts.map +1 -0
- package/dist/types/operator/render.d.ts +89 -0
- package/dist/types/operator/render.d.ts.map +1 -0
- package/dist/types/operator/view.d.ts +44 -0
- package/dist/types/operator/view.d.ts.map +1 -0
- package/dist/types/protocol/auth.d.ts +54 -24
- package/dist/types/protocol/auth.d.ts.map +1 -1
- package/dist/types/protocol/clis.d.ts +14 -7
- package/dist/types/protocol/clis.d.ts.map +1 -1
- package/dist/types/protocol/config.d.ts +2 -0
- package/dist/types/protocol/config.d.ts.map +1 -1
- package/dist/types/protocol/conversation.d.ts +40 -3
- package/dist/types/protocol/conversation.d.ts.map +1 -1
- package/dist/types/protocol/credentials.d.ts +7 -0
- package/dist/types/protocol/credentials.d.ts.map +1 -1
- package/dist/types/protocol/execution.d.ts +2 -1
- package/dist/types/protocol/execution.d.ts.map +1 -1
- package/dist/types/protocol/factories.d.ts +12 -2
- package/dist/types/protocol/factories.d.ts.map +1 -1
- package/dist/types/protocol/harness.d.ts +6 -2
- package/dist/types/protocol/harness.d.ts.map +1 -1
- package/dist/types/protocol/history.d.ts +19 -0
- package/dist/types/protocol/history.d.ts.map +1 -1
- package/dist/types/protocol/lifecycle.d.ts +47 -8
- package/dist/types/protocol/lifecycle.d.ts.map +1 -1
- package/dist/types/protocol/model-catalog.d.ts.map +1 -1
- package/dist/types/protocol/models.d.ts +3 -0
- package/dist/types/protocol/models.d.ts.map +1 -1
- package/dist/types/protocol/parts.d.ts +14 -0
- package/dist/types/protocol/parts.d.ts.map +1 -1
- package/dist/types/protocol/plan.d.ts +20 -0
- package/dist/types/protocol/plan.d.ts.map +1 -0
- package/dist/types/protocol/tool-state.d.ts +12 -0
- package/dist/types/protocol/tool-state.d.ts.map +1 -1
- package/dist/types/protocol/wire-api.d.ts +129 -23
- package/dist/types/protocol/wire-api.d.ts.map +1 -1
- package/dist/types/protocol/wire.d.ts +70 -10
- package/dist/types/protocol/wire.d.ts.map +1 -1
- package/dist/types/server/acp/binding.d.ts +6 -1
- package/dist/types/server/acp/binding.d.ts.map +1 -1
- package/dist/types/server/acp/translate.d.ts +33 -7
- package/dist/types/server/acp/translate.d.ts.map +1 -1
- package/dist/types/server/agent-server.d.ts +6 -0
- package/dist/types/server/agent-server.d.ts.map +1 -1
- package/dist/types/server/feedback.d.ts +2 -1
- package/dist/types/server/feedback.d.ts.map +1 -1
- package/dist/types/server/install.d.ts +11 -0
- package/dist/types/server/install.d.ts.map +1 -1
- package/dist/types/server/session-gate.d.ts +2 -1
- package/dist/types/server/session-gate.d.ts.map +1 -1
- package/dist/types/server/session-store.d.ts +1 -0
- package/dist/types/server/session-store.d.ts.map +1 -1
- package/dist/types/server/subscriptions.d.ts +2 -1
- package/dist/types/server/subscriptions.d.ts.map +1 -1
- package/dist/types/server/transports.d.ts.map +1 -1
- package/dist/types/sync/fit.d.ts +8 -7
- package/dist/types/sync/fit.d.ts.map +1 -1
- package/dist/types/sync/history-sqlite.d.ts.map +1 -1
- package/dist/types/sync/index.d.ts +1 -0
- package/dist/types/sync/index.d.ts.map +1 -1
- package/dist/types/sync/journal-sqlite.d.ts +2 -1
- package/dist/types/sync/journal-sqlite.d.ts.map +1 -1
- package/dist/types/sync/journal.d.ts +11 -3
- package/dist/types/sync/journal.d.ts.map +1 -1
- package/dist/types/sync/projection.d.ts +6 -0
- package/dist/types/sync/projection.d.ts.map +1 -1
- package/dist/types/sync/recovery.d.ts +2 -1
- package/dist/types/sync/recovery.d.ts.map +1 -1
- package/dist/types/sync/schema.d.ts +10 -0
- package/dist/types/sync/schema.d.ts.map +1 -1
- package/dist/types/sync/sql.d.ts +2 -1
- package/dist/types/sync/sql.d.ts.map +1 -1
- package/dist/types/sync/worker.d.ts.map +1 -1
- package/docs/consuming.md +464 -40
- package/docs/deploy.md +36 -8
- package/docs/durable-sessions.md +35 -5
- package/docs/harnesses.md +396 -30
- package/package.json +11 -1
- package/src/accounts/chatgpt.ts +2 -2
- package/src/accounts/http.ts +2 -16
- package/src/client/client.ts +92 -31
- package/src/client/connection.ts +113 -22
- package/src/client/index.ts +1 -0
- package/src/client/logins.ts +24 -15
- package/src/client/streams.ts +12 -4
- package/src/client/turns.ts +1 -1
- package/src/core/agents/acp/acp-agent.ts +181 -52
- package/src/core/agents/acp/adapter.ts +9 -1
- package/src/core/agents/acp/client.ts +16 -4
- package/src/core/agents/acp/mappings.ts +27 -0
- package/src/core/agents/base.ts +25 -10
- package/src/core/agents/claude-code/adapter.ts +47 -17
- package/src/core/agents/claude-code/approvals.ts +6 -5
- package/src/core/agents/claude-code/claude-agent.ts +60 -30
- package/src/core/agents/claude-code/events.ts +11 -1
- package/src/core/agents/claude-code/login.ts +14 -2
- package/src/core/agents/claude-code/mcp.ts +31 -15
- package/src/core/agents/claude-code/models.ts +7 -2
- package/src/core/agents/claude-code/options.ts +11 -3
- package/src/core/agents/claude-code/outcome.ts +10 -2
- package/src/core/agents/claude-code/results.ts +73 -0
- package/src/core/agents/claude-code/sdk-pair.ts +66 -0
- package/src/core/agents/claude-code/session.ts +166 -37
- package/src/core/agents/claude-code/spend.ts +1 -1
- package/src/core/agents/claude-code/tools.ts +108 -12
- package/src/core/agents/codex-app-server/adapter.ts +37 -12
- package/src/core/agents/codex-app-server/client.ts +69 -10
- package/src/core/agents/codex-app-server/codex-agent.ts +141 -55
- package/src/core/agents/codex-app-server/commands.ts +2 -2
- package/src/core/agents/codex-app-server/credentials.ts +10 -5
- package/src/core/agents/codex-app-server/effort.ts +1 -1
- package/src/core/agents/codex-app-server/homes.ts +59 -10
- package/src/core/agents/codex-app-server/items.ts +219 -31
- package/src/core/agents/codex-app-server/login.ts +14 -2
- package/src/core/agents/codex-app-server/mcp.ts +142 -26
- package/src/core/agents/codex-app-server/models.ts +9 -8
- package/src/core/agents/codex-app-server/options.ts +79 -11
- package/src/core/agents/codex-app-server/plan-approval.ts +1 -1
- package/src/core/agents/codex-app-server/protocol.ts +14 -4
- package/src/core/agents/codex-app-server/requests.ts +14 -6
- package/src/core/agents/codex-app-server/session.ts +156 -81
- package/src/core/agents/codex-app-server/subagents.ts +21 -14
- package/src/core/agents/codex-app-server/thread-settings.ts +18 -8
- package/src/core/agents/codex-app-server/turn-items.ts +1 -1
- package/src/core/agents/codex-app-server/turn.ts +96 -35
- package/src/core/agents/codex-app-server/user-login.ts +107 -0
- package/src/core/agents/credentials.ts +5 -2
- package/src/core/agents/diffs.ts +25 -0
- package/src/core/agents/elicitation.ts +2 -2
- package/src/core/agents/login.ts +6 -0
- package/src/core/agents/mcp-config.ts +2 -2
- package/src/core/agents/plan.ts +3 -19
- package/src/core/agents/process-pool.ts +432 -0
- package/src/core/agents/scripted/adapter.ts +142 -0
- package/src/core/agents/scripted/mcp-call.ts +134 -0
- package/src/core/agents/scripted/scripted-agent.ts +418 -0
- package/src/core/agents/scripted/scripts.ts +171 -0
- package/src/core/agents/scripted/steps.ts +127 -0
- package/src/core/agents/session-agent.ts +105 -8
- package/src/core/diagnostics.ts +9 -1
- package/src/core/index.ts +12 -0
- package/src/core/presets.ts +99 -14
- package/src/core/processes/lifeline.ts +99 -25
- package/src/core/provision/index.ts +1 -2
- package/src/core/provision/install-build.ts +4 -1
- package/src/core/provision/npm.ts +309 -97
- package/src/core/provision/provisioner.ts +22 -8
- package/src/core/provision/tools.ts +44 -19
- package/src/core/runtime/agent-runtime.ts +70 -34
- package/src/core/runtime/event-processor.ts +18 -2
- package/src/core/runtime/harness-clis.ts +36 -1
- package/src/core/runtime/harness-logins.ts +82 -31
- package/src/core/runtime/model-lists.ts +1 -1
- package/src/core/runtime/permission-policy.ts +4 -3
- package/src/core/runtime/request-broker.ts +1 -1
- package/src/core/runtime/turn.ts +53 -3
- package/src/core/utils/deadline.ts +23 -0
- package/src/core/utils/errors.ts +24 -4
- package/src/operator/index.ts +40 -0
- package/src/operator/mcp.ts +171 -0
- package/src/operator/operator.ts +782 -0
- package/src/operator/render.ts +473 -0
- package/src/operator/view.ts +82 -0
- package/src/protocol/auth.ts +30 -23
- package/src/protocol/clis.ts +12 -4
- package/src/protocol/credentials.ts +19 -0
- package/src/protocol/execution.ts +5 -0
- package/src/protocol/factories.ts +25 -3
- package/src/protocol/harness.ts +11 -1
- package/src/protocol/history.ts +20 -0
- package/src/protocol/lifecycle.ts +10 -1
- package/src/protocol/model-catalog.ts +19 -8
- package/src/protocol/parts.ts +12 -1
- package/src/protocol/plan.ts +35 -0
- package/src/protocol/tool-state.ts +14 -1
- package/src/protocol/wire.ts +14 -0
- package/src/server/acp/binding.ts +113 -22
- package/src/server/acp/translate.ts +161 -8
- package/src/server/agent-server.ts +10 -1
- package/src/server/bin.ts +83 -9
- package/src/server/feedback.ts +1 -1
- package/src/server/install.ts +82 -4
- package/src/server/session-gate.ts +1 -1
- package/src/server/session-store.ts +5 -1
- package/src/server/subscriptions.ts +1 -1
- package/src/server/transports.ts +14 -0
- package/src/sync/fit.ts +115 -28
- package/src/sync/history-sqlite.ts +6 -2
- package/src/sync/index.ts +1 -0
- package/src/sync/journal-sqlite.ts +20 -2
- package/src/sync/journal.ts +10 -2
- package/src/sync/projection.ts +10 -0
- package/src/sync/recovery.ts +11 -4
- package/src/sync/schema.ts +7 -5
- package/src/sync/sql.ts +1 -1
- package/src/sync/worker.ts +4 -0
- package/dist/types/core/agents/claude-code/session-pool.d.ts +0 -36
- package/dist/types/core/agents/claude-code/session-pool.d.ts.map +0 -1
- package/dist/types/core/agents/session-pool.d.ts +0 -41
- package/dist/types/core/agents/session-pool.d.ts.map +0 -1
- package/src/core/agents/claude-code/session-pool.ts +0 -136
- package/src/core/agents/session-pool.ts +0 -111
package/CHANGELOG.md
CHANGED
|
@@ -1,5 +1,337 @@
|
|
|
1
1
|
# Changelog
|
|
2
2
|
|
|
3
|
+
A bullet says what changed for someone who uses the package, in at most four
|
|
4
|
+
lines: what is now true, and what breaks or is new for them (the names of new
|
|
5
|
+
exports, fields, options and messages), with the LLP that holds the reasoning
|
|
6
|
+
and the measurements. Evidence lives in the LLP, not here. A release groups
|
|
7
|
+
its bullets under Breaking, Added, Changed and Fixed, breaking first. The
|
|
8
|
+
released sections below that predate this convention are kept as written.
|
|
9
|
+
|
|
10
|
+
## 0.3.23
|
|
11
|
+
|
|
12
|
+
### Breaking
|
|
13
|
+
|
|
14
|
+
- `createAgentRegistry` and `createAgentRuntime` take `idleTimeoutMs`,
|
|
15
|
+
`cancelGraceMs` and `credentials` at the top level only, for every harness;
|
|
16
|
+
under `claudeCode`, `codexAppServer` or `acp` they throw, naming the option.
|
|
17
|
+
An agent made directly still takes them (LLP 0016, decision 5).
|
|
18
|
+
- `inheritConfig`, `processes` and `resolveCliPath` under `claudeCode`,
|
|
19
|
+
`codexAppServer` or `acp`, and `processes` under `scripted`, throw too,
|
|
20
|
+
naming the option: the registry overrode them in silence. Set
|
|
21
|
+
`inheritConfig` at the top level (LLP 0016, decision 5).
|
|
22
|
+
- A journal of your own implements `SessionJournal.lastTurn(sessionId)`: the
|
|
23
|
+
admitted turn, else the latest ended one, as `LastTurn` (LLP 0003).
|
|
24
|
+
- A Codex permission request's `title` is no longer Codex's reason, which is
|
|
25
|
+
now `toolCall.reason`; `title` is `Allow tool: shell` (or `apply_patch`),
|
|
26
|
+
as on every harness. Show `toolCall.reason` where you showed `title` on
|
|
27
|
+
Codex (LLP 0002, A tool call says what it acts on).
|
|
28
|
+
- A server of another wire protocol version is a refusal: the client stops
|
|
29
|
+
redialing, and what waits fails with `ProtocolVersionMismatchError` (new, a
|
|
30
|
+
`ConnectionRefusedError`), `initialize()` too (was `WireRequestError`); check
|
|
31
|
+
`reason`: `ConnectionRefusal` gains `"protocol_mismatch"` (LLP 0001, D16).
|
|
32
|
+
- A read installs nothing. While a harness's CLI is not installed,
|
|
33
|
+
`auth/status` answers it `unknown` with no `methods` and `models/list` the
|
|
34
|
+
catalog (`source: "catalog"`), each with an `error`. Install at setup
|
|
35
|
+
(`prepareClis`) and read again on `ready` (LLP 0010, A read installs nothing).
|
|
36
|
+
- Below `inheritConfig: "all"`, Codex's apps and plugins are off
|
|
37
|
+
(`features.apps = false`, `-c features.plugins=false`): the ChatGPT
|
|
38
|
+
account's connectors no longer join such a turn. A product that wants them
|
|
39
|
+
runs at `all` (LLP 0017).
|
|
40
|
+
- Codex asks its questions in `default` mode too: every thread starts with
|
|
41
|
+
`default_mode_request_user_input`. A turn without `elicitation: true`
|
|
42
|
+
declines the question, where Codex told the model the tool was unavailable
|
|
43
|
+
(LLP 0001, D12; LLP 0017, Questions outside plan mode).
|
|
44
|
+
- On Codex an MCP tool's image comes as `content` on its tool part, and
|
|
45
|
+
`output` says `[image image/png]` where the base64 was. A picture Codex
|
|
46
|
+
makes is an `image_generation` tool part with `metadata.savedPath`, no bytes
|
|
47
|
+
(LLP 0017, Codex's own pictures and an MCP tool's picture).
|
|
48
|
+
- A durable server delivers what its journal kept: an image or file too large
|
|
49
|
+
for a record is a text marker with `_meta["agent-server/omittedBinary"]`
|
|
50
|
+
(`OMITTED_BINARY_META_KEY`, `OmittedBinary`, new root exports), live and on
|
|
51
|
+
replay alike. It was cut base64 (LLP 0003, One log, one write path).
|
|
52
|
+
|
|
53
|
+
### Added
|
|
54
|
+
|
|
55
|
+
- `cancelConfirmMs` on `createAgentRegistry` (and each agent's options): how
|
|
56
|
+
long a cancel waits for the agent to confirm it stopped before it answers
|
|
57
|
+
`unconfirmed`, 2 s by default, on Claude, Codex and ACP (LLP 0001, D9).
|
|
58
|
+
- `session/get` (`getSession`) answers `lastTurn`: the latest turn's
|
|
59
|
+
`turnId`, and once it ended its `stopReason` and `error`, so a client learns
|
|
60
|
+
a restart cut it off (`server_restart`) without its history (LLP 0003,
|
|
61
|
+
Commit before acknowledging).
|
|
62
|
+
- A tool call says what it acts on: `command` (a command's line) and `url` (a
|
|
63
|
+
fetch's address) on tool parts and on `permission.requested`'s `toolCall`,
|
|
64
|
+
with `reason` (why it asks) on the request; a failed tool keeps `metadata`
|
|
65
|
+
(`ToolStateFailed.metadata`). Draw from them, not `rawInput` (LLP 0002).
|
|
66
|
+
- On Codex a command names its line apart from Codex's shell (`command`),
|
|
67
|
+
and carries `metadata.exitCode`, failed or not; a file change shows each
|
|
68
|
+
hunk as a `diff` entry, located at its start line (`docs/harnesses.md`,
|
|
69
|
+
What a tool call says, per harness; LLP 0002).
|
|
70
|
+
- On Claude a `Bash` call names its `command`, a `WebFetch` its `url`, a
|
|
71
|
+
request its `reason` (the CLI's `decisionReason`); an `Edit`, `Write` or
|
|
72
|
+
`NotebookEdit` shows `diff` entries from the CLI's structured result, and a
|
|
73
|
+
failed `Bash` its `metadata.exitCode` (`docs/harnesses.md`; LLP 0002).
|
|
74
|
+
- An ACP agent's `diff` and `terminal` content reaches its tool part's
|
|
75
|
+
`content`, where it was dropped, and `agent-server --acp` sends a part's
|
|
76
|
+
`diff` entries to its client as ACP diffs (LLP 0002, Tool output has three
|
|
77
|
+
audiences).
|
|
78
|
+
- A scripted harness, `scripted`, plays steps instead of a model; a step's
|
|
79
|
+
`yield` gives back what it did (`ScriptStepOutcome`). `createAgentRuntime({
|
|
80
|
+
scripted: { turn } })`, `ScriptStep`, `scriptedQueue`, `scriptedFile`,
|
|
81
|
+
`scriptedBySession`, `--script`, `--script-position` (LLP 0001, D23).
|
|
82
|
+
- `agent-server --acp` takes `--model <id>` and `--thinking <level>`: every
|
|
83
|
+
turn the ACP binding runs uses them (`AcpBindingOptions.thinkingLevel`, new),
|
|
84
|
+
where it ran the harness's own default. They are the operator's; an ACP
|
|
85
|
+
client cannot change them (LLP 0016.001, Prepared features, measured).
|
|
86
|
+
- A turn says what it did not apply: `AgentCapabilities.ignoredSettings`
|
|
87
|
+
lists the `RunConfig` fields a harness never applies, and
|
|
88
|
+
`execution.notApplied` on `turn.started` (and `turn.ended`, with what the
|
|
89
|
+
harness found as it ran) names those the turn set (LLP 0001, D22).
|
|
90
|
+
- A call to an MCP tool names its server and tool: `mcp: { server, tool }`
|
|
91
|
+
(new `McpTool`, `McpToolSchema`) on tool parts and on
|
|
92
|
+
`permission.requested`'s `toolCall`, on Claude and Codex; ACP leaves it out.
|
|
93
|
+
`toolName` is unchanged: stop parsing its spellings (LLP 0002).
|
|
94
|
+
- `codexAppServer.builtInTools: { local, webSearch, imageGeneration }`
|
|
95
|
+
(operator only) turns Codex's own tools off; `bun run harness --
|
|
96
|
+
--scenario=codex-tools-off` checks it for free at a Codex pin bump (LLP 0017).
|
|
97
|
+
- `codexAppServer.userLogin` (operator only, off by default): a Codex turn in
|
|
98
|
+
its session's own home runs on the user's Codex login, held in memory only;
|
|
99
|
+
with none it fails `auth` before Codex starts. `claimsOf` is a protocol
|
|
100
|
+
export (LLP 0017, The person's own login in a home of the session's own).
|
|
101
|
+
- `HarnessCli.category` and `HarnessCliProgress.category`: an install
|
|
102
|
+
failure's error category (`network`, `auth`, `rate_limit`,
|
|
103
|
+
`invalid_request`, `internal`), on the failed turn too. `CliProvisionError`
|
|
104
|
+
takes an optional `category`. Wire protocol 6 stays (LLP 0010).
|
|
105
|
+
- `HarnessAuth.loginUnderWay`: the login `auth/login` answered, in every status
|
|
106
|
+
read and `auth/updated` until its end, and `auth/updated` tells it as it
|
|
107
|
+
starts. Wire protocol 6 stays (LLP 0011, The wire).
|
|
108
|
+
- The `claudeSdkMismatch` diagnostic: the Claude SDK that loaded and the CLI
|
|
109
|
+
build it drives are different releases. Said once per pair, through
|
|
110
|
+
`onDiagnostic` (`{sdkVersion, cliVersion, cliPath}`) and on stderr; the turn
|
|
111
|
+
runs (LLP 0010, Implementation).
|
|
112
|
+
- `JOURNAL_SCHEMA_VERSION` (6), exported from `@zvada/agent-server/sync`
|
|
113
|
+
without loading SQLite: name a journal file from it (LLP 0003).
|
|
114
|
+
- `AgentServer.maxBacklogBytes` reads a server's backlog bound (LLP 0008).
|
|
115
|
+
- What each permission mode does on Claude and Codex is measured: the
|
|
116
|
+
`permission-modes` harness scenario, and the table in `docs/harnesses.md`
|
|
117
|
+
(LLP 0015).
|
|
118
|
+
|
|
119
|
+
### Changed
|
|
120
|
+
|
|
121
|
+
- An ACP agent that offers modes is put in the turn's `permissionMode`
|
|
122
|
+
(`session/set_mode`, its own id; `default` when the turn names none); one
|
|
123
|
+
it lacks is `notApplied`. It ran in its own: `claude-agent-acp`'s `auto`
|
|
124
|
+
asked the product nothing (LLP 0001, D4).
|
|
125
|
+
- `agent-server --acp --harness codex-app-server` takes a client's stdio and
|
|
126
|
+
HTTP MCP servers, carried in the thread at `all`, and advertises
|
|
127
|
+
`mcpCapabilities.http`; it refused every one. SSE and `codex_apps` are
|
|
128
|
+
refused, named. In front of `scripted` it advertises HTTP (LLP 0001, D21).
|
|
129
|
+
- Codex's `cancelGraceMs` is only how long after a cancel its process is
|
|
130
|
+
ended; a failed turn's wait for its end is `cancelConfirmMs`. A Codex
|
|
131
|
+
cancel answers within `cancelConfirmMs`: one whose commands were slow to
|
|
132
|
+
stop is `unconfirmed` now, where it answered late (LLP 0016, decision 5).
|
|
133
|
+
- The operator tools show a waiting permission's `command`, `url` or files and
|
|
134
|
+
its `reason`, each a quoted line under its title, and a tool's line reads
|
|
135
|
+
the call's `command` or `url` first, so a Codex command reads without
|
|
136
|
+
Codex's shell; paths read relative to the session's `root` (LLP 0014).
|
|
137
|
+
- A fenced restart's `server_restart` message reads "Server restarted before
|
|
138
|
+
the turn settled. Its agent could not be confirmed stopped at restart
|
|
139
|
+
(<reason>).", with the tool clause an unfenced one has, where it said "check
|
|
140
|
+
it before continuing": `recoveryRequired` says that (LLP 0003).
|
|
141
|
+
- Every tool the pinned Claude CLI offers has a decided `kind`: `TaskStop` and
|
|
142
|
+
`Workflow` are `execute`, `Skill` is `read`, the task-list tools are
|
|
143
|
+
`think`; the rest stay `other`. A free live check names a tool a pin bump
|
|
144
|
+
adds without one (LLP 0002, A tool call says what it acts on).
|
|
145
|
+
- The model catalog (`CATALOG_MODELS`) is regenerated from Claude SDK 0.3.288
|
|
146
|
+
and Codex 0.160.0 and adds Codex's `gpt-6.1-terra`. Claude's rows depend on
|
|
147
|
+
its route, so a live list can still differ (LLP 0010, A read installs
|
|
148
|
+
nothing; `docs/harnesses.md`, Model lists).
|
|
149
|
+
- A model known to have no thinking control (an empty `thinking.levels`, such
|
|
150
|
+
as Haiku's) starts without a level, and `turn.ended.execution` has no
|
|
151
|
+
`appliedThinkingLevel`; `off` is still sent (LLP 0013, M17).
|
|
152
|
+
- `createCheckpoint` replaces its largest images and files with the same
|
|
153
|
+
markers until it fits `HISTORY_MAX_BYTES`, and durable input over the record
|
|
154
|
+
limit is refused with its size and the limit (LLP 0003).
|
|
155
|
+
- `agent-server install` names each version (the Claude SDK package's and
|
|
156
|
+
Claude Code's), and says an ACP agent has nothing to install (LLP 0010, P4).
|
|
157
|
+
- A CLI install's error no longer ends with a request to report friction over
|
|
158
|
+
Hivenet; integration errors keep it (LLP 0010).
|
|
159
|
+
- A Codex thread's config is sent as one nested object (LLP 0017, One nested
|
|
160
|
+
config).
|
|
161
|
+
- On Codex and ACP, `idleTimeoutMs: 0` never ends a session's process for
|
|
162
|
+
idleness, as on Claude; it ended it as soon as the turn left (LLP 0001, D10).
|
|
163
|
+
- A host resume (`invalidateMcpConnections`) no longer closes idle Codex
|
|
164
|
+
processes at once: each session's next turn replaces its process, as on
|
|
165
|
+
Claude, and now on ACP too (LLP 0001, D10).
|
|
166
|
+
- `terminateAll` on Codex and ACP settles once every process has exited, as on
|
|
167
|
+
Claude, so a runtime's shutdown waits for them (LLP 0001, D10).
|
|
168
|
+
- A login changed in a named store (`CLAUDE_CONFIG_DIR`, `CODEX_HOME`)
|
|
169
|
+
restarts only that store's sessions; one in the default store still restarts
|
|
170
|
+
all of the harness's. New: `CliLogin.store`, `Agent.loginChanged(store?)`
|
|
171
|
+
(LLP 0011, A login change starts the next turn on a new CLI).
|
|
172
|
+
- Claude sessions run on the process pool Codex and ACP use; `onSessionEnd`
|
|
173
|
+
keeps its reasons. A cancel during a Claude start ends it at once and
|
|
174
|
+
answers without waiting for that CLI's exit (LLP 0001, D10; LLP 0016).
|
|
175
|
+
|
|
176
|
+
### Fixed
|
|
177
|
+
|
|
178
|
+
- Behind `agent-server --acp`, a prompt's `resource_link` (an editor's
|
|
179
|
+
@-mention of a file), which ACP v1 has every agent take, reaches the turn
|
|
180
|
+
as a Markdown link in its text; it was dropped (LLP 0016.001, Prepared
|
|
181
|
+
features, measured).
|
|
182
|
+
- The stock program's `acp` harness tells its agent its release in
|
|
183
|
+
`initialize` (`clientInfo.version`); it said `0.0.0`. Embedded, set
|
|
184
|
+
`acp.clientVersion` (LLP 0016.001, Prepared features, measured).
|
|
185
|
+
- Behind `agent-server --acp`, the agent's questions reach a client that
|
|
186
|
+
advertises form elicitation, as `elicitation/create` (one form field per
|
|
187
|
+
question), and MCP forms and URLs one that advertises their mode; the
|
|
188
|
+
agent was told no one could answer (LLP 0001, D12).
|
|
189
|
+
- Behind `agent-server --acp`, a permission request names its tool (`name`)
|
|
190
|
+
and carries its `locations`; a client read the tool's name from the
|
|
191
|
+
request's title ("Allow tool: Bash") and got no locations (LLP 0016.001,
|
|
192
|
+
Prepared features, measured).
|
|
193
|
+
- Input with a lone UTF-16 surrogate (text cut mid-emoji) runs on Codex: the
|
|
194
|
+
agent is given U+FFFD, the echo stays your input. Such a turn waited 30 s
|
|
195
|
+
and failed; an unanswered `turn/start` now says so, with its deadline
|
|
196
|
+
(LLP 0013, F12).
|
|
197
|
+
- A cancel while a warm Claude process changes model, permission mode or MCP
|
|
198
|
+
servers ends the turn `cancelled` and the process; Claude never answering
|
|
199
|
+
held the turn, though the cancel said `confirmed`. The next turn resumes on
|
|
200
|
+
a new process (LLP 0013, F13).
|
|
201
|
+
- A Claude turn that fails on an overloaded API (529 or 503) ends with error
|
|
202
|
+
category `overloaded`, read from its result's status; it was `internal`
|
|
203
|
+
(LLP 0002, Plan usage and retries).
|
|
204
|
+
- A cancel while a Codex turn is still starting answers `cancelled` once the
|
|
205
|
+
turn has ended; it answered `unconfirmed` at once, though the turn stopped
|
|
206
|
+
(LLP 0001, D9; LLP 0016.000, The cancel answer).
|
|
207
|
+
- A cancel while an ACP operator's `resolveLaunch` is pending ends the turn at
|
|
208
|
+
once; the turn waited for it, the cancel answered `unconfirmed` after 2 s,
|
|
209
|
+
and a later cancel still found the turn (LLP 0001, D9).
|
|
210
|
+
- A cancel while Claude or Codex asks the product's credential source ends the
|
|
211
|
+
turn `cancelled` at once, whether or not the source heeds its signal; the
|
|
212
|
+
turn waited for the source, and an answer after the cancel is dropped
|
|
213
|
+
(LLP 0016.000, The cancel answer).
|
|
214
|
+
- A durable restart that cuts off a scripted turn fences nothing, as on
|
|
215
|
+
Claude or Codex once the restart saw them stopped: it runs no process, and
|
|
216
|
+
`createAgentRegistry` now vouches for it (LLP 0007, What each harness does).
|
|
217
|
+
- `subscribeAll()` follows every session from the call, across redials, until
|
|
218
|
+
`unsubscribeAll()`; it rejects only when refused or closed (LLP 0008, What
|
|
219
|
+
requests do to subscriptions).
|
|
220
|
+
- A cut CLI download goes on from the bytes it has (`Range`), then fails as
|
|
221
|
+
`network` saying how far it got; "Integrity mismatch" is said only of a whole
|
|
222
|
+
file (LLP 0010, Implementation).
|
|
223
|
+
- `agent-server install --dir` creates missing folders at 0755 whatever the
|
|
224
|
+
umask (LLP 0010, P4).
|
|
225
|
+
- Under Node's ESM (tsx, an ESM bundle) the engine finds the Claude SDK
|
|
226
|
+
installed beside it (LLP 0010, P2).
|
|
227
|
+
- A connection that falls behind is told (`session/overflow`) or closed, never
|
|
228
|
+
left waiting: `listen` gives Bun 64 MiB of headroom above the bound (LLP 0008,
|
|
229
|
+
Backpressure and overflow).
|
|
230
|
+
- A turn cancelled while its CLI installs ends `cancelled` at once; the install
|
|
231
|
+
goes on (LLP 0010, A turn waits for its CLI until it is cancelled).
|
|
232
|
+
- Codex: a session whose `CODEX_HOME` was made again starts a new process
|
|
233
|
+
(LLP 0001, D21).
|
|
234
|
+
- A failed Codex turn ends at its own `turn/completed`, so the next turn is
|
|
235
|
+
its own (LLP 0013, F11).
|
|
236
|
+
- `session/close` and `session/release` of a Codex or ACP session answer once
|
|
237
|
+
its agent process has exited (LLP 0001, D10; LLP 0007).
|
|
238
|
+
- Under Bun, a CLI started just before its owner was SIGKILLed no longer
|
|
239
|
+
outlives it (LLP 0007, The lifeline).
|
|
240
|
+
- A Codex retry's recoverable `error` says which attempt it is, of how many
|
|
241
|
+
(`retry.attempt`, `retry.maxAttempts`), read from Codex's "Reconnecting...
|
|
242
|
+
2/5"; it was `retry: {}` (LLP 0002, Plan usage and retries).
|
|
243
|
+
- An ACP agent that can neither resume nor load a session is no longer ended
|
|
244
|
+
for being idle, so its next turn no longer fails with `SessionResumeError`;
|
|
245
|
+
it lives until release, close or shutdown (LLP 0001, D10).
|
|
246
|
+
- An ACP cancel answers `confirmed: true` only when the agent's prompt ended
|
|
247
|
+
within 2 s, and `confirmed: false` (`turn/cancel`: `unconfirmed`) otherwise;
|
|
248
|
+
it was always `true`. The turn still ends at the 10 s grace (LLP 0001, D9).
|
|
249
|
+
- An ACP agent that replaces an evicted or replaced one starts once that one
|
|
250
|
+
has exited, so two never hold one conversation; `session/release` waits for
|
|
251
|
+
it too (LLP 0001, D10).
|
|
252
|
+
- `--acp`: a `session/new` or `session/resume` with an MCP server of a
|
|
253
|
+
transport the binding cannot attach (ACP's `acp`) is refused with
|
|
254
|
+
`invalidParams` naming the server, where the server was dropped in silence
|
|
255
|
+
(LLP 0001, D15).
|
|
256
|
+
- A turn a restart cut off says "what its running tool did is unknown" only
|
|
257
|
+
when a tool that may have run was open; otherwise its `server_restart`
|
|
258
|
+
message ends "Its agent was stopped at restart." (LLP 0003).
|
|
259
|
+
|
|
260
|
+
Not in any release, so not removed: `codexAppServer.userMcpServers` and
|
|
261
|
+
`CodexUserMcpServers`, which `userLogin` replaced before they shipped
|
|
262
|
+
(LLP 0017).
|
|
263
|
+
|
|
264
|
+
## 0.3.22
|
|
265
|
+
|
|
266
|
+
- `@zvada/agent-server/operator`, new: eight tools a hosted assistant or a
|
|
267
|
+
CLI agent operates a product's coding agents with (`list_sessions`,
|
|
268
|
+
`read_session`, `start_session`, `send_message`, `wait_for_session`,
|
|
269
|
+
`watch_sessions`, `answer_request`, `stop_session`), answering in short
|
|
270
|
+
text that names the next call (LLP 0014).
|
|
271
|
+
- A product implements `OperatorHost` (list, view, send, cancel, respond;
|
|
272
|
+
optionally start, groups, entry, outcome, changed) and calls
|
|
273
|
+
`createOperator(host, { maxWaitSeconds, extra })`. `viewOf` builds a
|
|
274
|
+
session's view from the engine's folded state; `tool()` declares the
|
|
275
|
+
host's own tools (`readOnly`, `openWorld`, `destructive`). Access is the
|
|
276
|
+
host's: the tool list is the same for every caller, and a host checks
|
|
277
|
+
around `call`. `PLAN_OPTIONS` and `PLAN_TITLE` are exported for a host
|
|
278
|
+
that asks a plan itself.
|
|
279
|
+
- `createMcpHandler(source, info)` answers MCP's tool methods (stateless
|
|
280
|
+
Streamable HTTP, protocol versions 2024-10-07 to 2025-11-25) with no
|
|
281
|
+
dependency, and the MCP annotations from each tool; a tool's refusal
|
|
282
|
+
(`OperatorError`) is an `isError` result the model reads, and any other
|
|
283
|
+
failure one quoted line.
|
|
284
|
+
- What an agent, a person or a repository wrote is quoted, each line after
|
|
285
|
+
` | `, and names are one line, so none reads as a hint
|
|
286
|
+
(` -> tool(args)`).
|
|
287
|
+
- Limits: every wait is `wait` seconds (default 60, 0 looks once), never
|
|
288
|
+
past `maxWaitSeconds` (90, or a function of the caller);
|
|
289
|
+
`read_session.last` at most 100; a message or answer at most 100,000
|
|
290
|
+
characters, refused when empty; an MCP batch at most 20 messages, run in
|
|
291
|
+
order. A form, a page to visit or a secret is left to the person, where
|
|
292
|
+
the session runs. Imports only the protocol and zod.
|
|
293
|
+
- A Codex turn with MCP servers no longer needs a `CODEX_HOME` of its
|
|
294
|
+
session's own at `inheritConfig: "all"`. A turn that names none runs in the
|
|
295
|
+
process's home, the user's own, with its servers in its thread's config
|
|
296
|
+
(`thread/start`, `thread/resume`): the user's servers, threads and login
|
|
297
|
+
stay, and the engine writes nothing. With Codex 0.160.0 no file of the home
|
|
298
|
+
held the servers' headers either (observed, LLP 0001 D21; no test holds it).
|
|
299
|
+
It was refused ("Codex per-turn MCP requires a session-specific one"). A
|
|
300
|
+
changed set starts a new process on the same thread before the turn, an
|
|
301
|
+
unchanged one keeps the warm process, and a server that could not connect
|
|
302
|
+
is reloaded on D15's schedule. A server named like one in Codex's own
|
|
303
|
+
configuration that sets more than the turn's does is refused as
|
|
304
|
+
`invalid_request` (`mcpServers.<name>`): Codex would merge the two. A turn
|
|
305
|
+
that names a home, and `project` and `none`, are as before (LLP 0001, D21).
|
|
306
|
+
- A Codex session's process has exited before its next one starts, whatever
|
|
307
|
+
ended it (a login, an account, its options or its thread's servers changed,
|
|
308
|
+
idle, a cancel, a host that resumed). Codex lets one process write a
|
|
309
|
+
thread, and a replacement's `thread/resume` came 11 to 14 ms after that
|
|
310
|
+
exit. The wait is the stop's grace at most: an app-server whose pipe broke
|
|
311
|
+
while it still ran is stopped, where it was left running, and a cancelled
|
|
312
|
+
turn does not sit the wait out. `CodexConnection` takes an optional `gone()`.
|
|
313
|
+
- A Codex session whose first turn failed before Codex took it (a required
|
|
314
|
+
MCP server down, a `turn/start` Codex refused) has no conversation yet, and
|
|
315
|
+
its next turn starts one. The harness named a new thread when it opened,
|
|
316
|
+
and Codex writes a thread at its first turn: once that session's process
|
|
317
|
+
was replaced or gone, every later turn failed with `resume_failed` ("no
|
|
318
|
+
rollout found"). A new thread is reported (`session.created`, the run's
|
|
319
|
+
`nativeSessionId`) when Codex accepts its first turn, still ahead of the
|
|
320
|
+
turn's first event; a turn that fails before reports none. A thread a turn
|
|
321
|
+
resumes is reported at once, as before.
|
|
322
|
+
- A retry of a turn the runtime no longer remembers (a volatile session keeps
|
|
323
|
+
its last 16 turns' answers) is refused with `turnConflict`
|
|
324
|
+
(`TurnForgottenError`, a `TurnConflictError`), whatever its input. It ran
|
|
325
|
+
again, a second `turn.started` under the same `turnId`. A journaled server
|
|
326
|
+
was not affected.
|
|
327
|
+
- A client redial whose handshake fails (a server of another protocol version)
|
|
328
|
+
closes that attempt's transport. Each one stayed open, also after
|
|
329
|
+
`client.close()`.
|
|
330
|
+
- A `LoginHandle` whose connection drops just as its answer arrives settles
|
|
331
|
+
`disconnected`; its `done` could stay pending for good.
|
|
332
|
+
- A history sync worker that recovers while its source is idle says `synced`
|
|
333
|
+
again, with no error. It kept saying `retrying`, with the old error.
|
|
334
|
+
|
|
3
335
|
## 0.3.21
|
|
4
336
|
|
|
5
337
|
- A bypass-mode Claude session no longer prints the SDK's "canUseTool will
|
package/README.md
CHANGED
|
@@ -5,7 +5,7 @@ OpenAI Codex (app-server), and any [ACP](https://agentclientprotocol.com)
|
|
|
5
5
|
agent behind one interface with a single normalized event stream, multi-turn
|
|
6
6
|
sessions, resume, engine-brokered permissions, and pinned CLI provisioning.
|
|
7
7
|
|
|
8
|
-
One package,
|
|
8
|
+
One package, seven seats — pick the subpath for how you consume it:
|
|
9
9
|
|
|
10
10
|
| Import | Seat |
|
|
11
11
|
| --- | --- |
|
|
@@ -14,6 +14,7 @@ One package, six seats — pick the subpath for how you consume it:
|
|
|
14
14
|
| `@zvada/agent-server/server` | **The standard wire** — serve the engine over JSON-RPC 2.0 NDJSON (stdio / WebSocket listen / dial-out) with quick-ack turns, per-session `seq`, bounded replay, and an ACP v1 binding (`--acp`). Ships the `agent-server` bin. |
|
|
15
15
|
| `@zvada/agent-server/client` | **The typed consumer client** — spawn/connect/attach, `runTurn` as an async iterable, permission responses, reconnect with sequenced replay healing (a turn start whose ack a dropped connection lost is re-sent and joins the running turn), `subscribe` / `joinTurn` to follow a session or a turn another client started, the harnesses' logins (`authStatus`, `login`). Depends only on the contract + node builtins. |
|
|
16
16
|
| `@zvada/agent-server/accounts` | **A login the product holds** — sign a subscription in for a credential the product stores (ChatGPT, Claude), renew it, and answer each turn's credential request (`createCredentialHandler`, `credentialsFrom`). `fetch` and Web Crypto only: it runs in a Worker. |
|
|
17
|
+
| `@zvada/agent-server/operator` | **Operator tools** — the session tools an outside agent (a hosted assistant, a CLI agent) operates your product's coding agents with, over an `OperatorHost` you implement, and a dependency-free MCP binding (`createMcpHandler`). Protocol and zod only. See [consuming](docs/consuming.md#let-an-outside-agent-operate-your-sessions) and LLP 0014. |
|
|
17
18
|
| `@zvada/agent-server/sync` | **Experimental.** Optional durable journal port and history helpers: transfer, open, follow, managed sync. |
|
|
18
19
|
| `@zvada/agent-server/sync/sqlite` | **Experimental.** Bun SQLite journal with its history and checkpoint store. |
|
|
19
20
|
| `@zvada/agent-server/sync/node-sqlite` | **Experimental.** Same storage under Node >=22.16 using built-in SQLite (itself experimental in Node 22). |
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"chatgpt.d.ts","sourceRoot":"","sources":["../../../src/accounts/chatgpt.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,
|
|
1
|
+
{"version":3,"file":"chatgpt.d.ts","sourceRoot":"","sources":["../../../src/accounts/chatgpt.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,KAAK,eAAe,EAAY,MAAM,4BAA4B,CAAC;AAC5E,OAAO,EAAgB,KAAK,eAAe,EAAwB,MAAM,WAAW,CAAC;AAWrF;;;;GAIG;AACH,MAAM,WAAW,YAAY;IAC5B,YAAY,EAAE,MAAM,CAAC;IACrB,QAAQ,EAAE,MAAM,CAAC;IACjB,eAAe,EAAE,MAAM,CAAC;IACxB,UAAU,EAAE,MAAM,CAAC;IACnB,SAAS,EAAE,MAAM,CAAC;CAClB;AA8CD;;;;;GAKG;AACH,wBAAsB,iBAAiB,CAAC,OAAO,GAAE,eAAoB,GAAG,OAAO,CAAC,YAAY,CAAC,CA0B5F;AAED;;;;GAIG;AACH,wBAAsB,gBAAgB,CACrC,KAAK,EAAE,YAAY,EACnB,OAAO,GAAE,eAAoB,GAC3B,OAAO,CAAC,eAAe,GAAG,SAAS,CAAC,CA6CtC;AAED;;;;GAIG;AACH,wBAAsB,mBAAmB,CACxC,KAAK,EAAE,eAAe,EACtB,OAAO,GAAE,eAAoB,GAC3B,OAAO,CAAC,eAAe,CAAC,CA2B1B"}
|
|
@@ -15,7 +15,7 @@ export interface ProviderOptions {
|
|
|
15
15
|
timeoutMs?: number;
|
|
16
16
|
}
|
|
17
17
|
/** A provider's answer: JSON when it sent some, `undefined` when it did not. */
|
|
18
|
-
|
|
18
|
+
interface Answer {
|
|
19
19
|
ok: boolean;
|
|
20
20
|
status: number;
|
|
21
21
|
body: unknown;
|
|
@@ -30,9 +30,7 @@ export declare const isRecord: (value: unknown) => value is Record<string, unkno
|
|
|
30
30
|
export declare const text: (value: unknown) => string | undefined;
|
|
31
31
|
/** Random bytes as base64url: a PKCE verifier, a state. */
|
|
32
32
|
export declare function randomToken(bytes?: number): string;
|
|
33
|
-
export declare function base64Url(bytes: Uint8Array): string;
|
|
34
33
|
/** A PKCE challenge (S256) for a verifier. */
|
|
35
34
|
export declare function challengeOf(verifier: string): Promise<string>;
|
|
36
|
-
|
|
37
|
-
export declare function claimsOf(jwt: string): Record<string, unknown>;
|
|
35
|
+
export {};
|
|
38
36
|
//# sourceMappingURL=http.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"http.d.ts","sourceRoot":"","sources":["../../../src/accounts/http.ts"],"names":[],"mappings":"AAAA;;;;GAIG;AACH,qBAAa,YAAa,SAAQ,KAAK;IAGrC,QAAQ,CAAC,SAAS;gBADlB,OAAO,EAAE,MAAM,EACN,SAAS,UAAQ;CAK3B;AAED,0EAA0E;AAC1E,MAAM,WAAW,eAAe;IAC/B,KAAK,CAAC,EAAE,OAAO,KAAK,CAAC;IACrB,GAAG,CAAC,EAAE,MAAM,MAAM,CAAC;IACnB,6CAA6C;IAC7C,SAAS,CAAC,EAAE,MAAM,CAAC;CACnB;AAED,gFAAgF;AAChF,
|
|
1
|
+
{"version":3,"file":"http.d.ts","sourceRoot":"","sources":["../../../src/accounts/http.ts"],"names":[],"mappings":"AAAA;;;;GAIG;AACH,qBAAa,YAAa,SAAQ,KAAK;IAGrC,QAAQ,CAAC,SAAS;gBADlB,OAAO,EAAE,MAAM,EACN,SAAS,UAAQ;CAK3B;AAED,0EAA0E;AAC1E,MAAM,WAAW,eAAe;IAC/B,KAAK,CAAC,EAAE,OAAO,KAAK,CAAC;IACrB,GAAG,CAAC,EAAE,MAAM,MAAM,CAAC;IACnB,6CAA6C;IAC7C,SAAS,CAAC,EAAE,MAAM,CAAC;CACnB;AAED,gFAAgF;AAChF,UAAU,MAAM;IACf,EAAE,EAAE,OAAO,CAAC;IACZ,MAAM,EAAE,MAAM,CAAC;IACf,IAAI,EAAE,OAAO,CAAC;CACd;AAED;;;;GAIG;AACH,wBAAsB,IAAI,CACzB,GAAG,EAAE,MAAM,EACX,IAAI,EAAE,WAAW,EACjB,OAAO,EAAE,eAAe,GACtB,OAAO,CAAC,MAAM,CAAC,CAoBjB;AAED,eAAO,MAAM,QAAQ,GAAI,OAAO,OAAO,KAAG,KAAK,IAAI,MAAM,CAAC,MAAM,EAAE,OAAO,CACJ,CAAC;AAEtE,eAAO,MAAM,IAAI,GAAI,OAAO,OAAO,KAAG,MAAM,GAAG,SACmB,CAAC;AAEnE,2DAA2D;AAC3D,wBAAgB,WAAW,CAAC,KAAK,SAAK,GAAG,MAAM,CAE9C;AAQD,8CAA8C;AAC9C,wBAAsB,WAAW,CAAC,QAAQ,EAAE,MAAM,GAAG,OAAO,CAAC,MAAM,CAAC,CAGnE"}
|
|
@@ -1,10 +1,10 @@
|
|
|
1
1
|
import { type AgentHarness, type AsyncHistoryApi, type AuthUpdated, type DecodedEventsReplayResult, type DecodedWireEventEnvelope, type DurableSession, type ElicitationOutcome, type HarnessAuth, type HarnessCli, type HarnessCliProgress, type InitializeResult, type ModelList, type ModelsListParams, type PermissionOutcome, type RunningTurn, type SessionConfirmStoppedParams, type TurnCancelResult, type TurnReceipt, type TurnStartParams, type TurnStartResult, type TurnSteerParams, type TurnSteerResult, type WireTransport } from "../protocol/index.ts";
|
|
2
|
-
import { type AgentServerClientOptions, ConnectionClosedError, type ConnectionEvent, type ConnectionRefusal, ConnectionRefusedError, type TransportFactory } from "./connection.ts";
|
|
2
|
+
import { type AgentServerClientOptions, ConnectionClosedError, type ConnectionEvent, type ConnectionRefusal, ConnectionRefusedError, ProtocolVersionMismatchError, type TransportFactory } from "./connection.ts";
|
|
3
3
|
import { type LoginHandle } from "./logins.ts";
|
|
4
4
|
import { EventGapError, type SessionEventGap } from "./streams.ts";
|
|
5
5
|
import { type SpawnServerOptions, type WebSocketLike } from "./transports.ts";
|
|
6
6
|
import { type TurnHandle } from "./turns.ts";
|
|
7
|
-
export { type AgentServerClientOptions, ConnectionClosedError, type ConnectionEvent, type ConnectionRefusal, ConnectionRefusedError, EventGapError, type SessionEventGap, type TurnHandle, };
|
|
7
|
+
export { type AgentServerClientOptions, ConnectionClosedError, type ConnectionEvent, type ConnectionRefusal, ConnectionRefusedError, EventGapError, ProtocolVersionMismatchError, type SessionEventGap, type TurnHandle, };
|
|
8
8
|
export interface SubscribeOptions {
|
|
9
9
|
/**
|
|
10
10
|
* Catch up after this seq: the session's kept events after it reach
|
|
@@ -55,6 +55,8 @@ export declare class AgentServerClient {
|
|
|
55
55
|
private readonly progress;
|
|
56
56
|
private readonly authUpdates;
|
|
57
57
|
private readonly streams;
|
|
58
|
+
/** `subscribeAll` calls whose ask no server has answered yet: across redials, the next answer settles them. */
|
|
59
|
+
private readonly allAsked;
|
|
58
60
|
/** Portable history operations (`history/*`), independent of execution subscriptions. */
|
|
59
61
|
readonly history: AsyncHistoryApi;
|
|
60
62
|
private constructor();
|
|
@@ -144,7 +146,10 @@ export declare class AgentServerClient {
|
|
|
144
146
|
/**
|
|
145
147
|
* Every session's frames, live from now, to `onEvent` (observers): no
|
|
146
148
|
* history, the open parts of running turns, and after a redial, the gaps a
|
|
147
|
-
* dropped connection left healed.
|
|
149
|
+
* dropped connection left healed. The client follows every session from
|
|
150
|
+
* the ask until `unsubscribeAll`: a connection that drops before the
|
|
151
|
+
* answer asks the server it redials, whose answer this waits for; it fails
|
|
152
|
+
* when the server refuses it or the client closes.
|
|
148
153
|
*/
|
|
149
154
|
subscribeAll(): Promise<void>;
|
|
150
155
|
/** Stop following every session (`subscribeAll`); those subscribed by name stay. */
|
|
@@ -163,7 +168,9 @@ export declare class AgentServerClient {
|
|
|
163
168
|
/**
|
|
164
169
|
* The models a harness offers for the login and folder a turn with the same
|
|
165
170
|
* `cwd`, `env` and `apiKey` would use. `source: "catalog"` (with `error`)
|
|
166
|
-
* means the CLI did not answer and the list is agent-server's built-in one
|
|
171
|
+
* means the CLI did not answer and the list is agent-server's built-in one,
|
|
172
|
+
* as it is while the harness's CLI is not installed yet: a read installs
|
|
173
|
+
* nothing (`prepareClis` does), and the first list after the install is live.
|
|
167
174
|
*/
|
|
168
175
|
listModels(params: ModelsListParams): Promise<ModelList>;
|
|
169
176
|
/**
|
|
@@ -204,8 +211,12 @@ export declare class AgentServerClient {
|
|
|
204
211
|
/**
|
|
205
212
|
* Each harness's login on the server (every harness when `harnesses` is
|
|
206
213
|
* absent), for the store and environment a turn with `env` would use:
|
|
207
|
-
* signed in, with what and as whom, signed out, or unknown and why;
|
|
208
|
-
*
|
|
214
|
+
* signed in, with what and as whom, signed out, or unknown and why; the
|
|
215
|
+
* logins it offers; and the login under way to that store
|
|
216
|
+
* (`loginUnderWay`), whoever started it, so a second window or a handle
|
|
217
|
+
* whose connection dropped finds it. A read installs nothing: a harness
|
|
218
|
+
* whose CLI is not installed yet is `unknown` with no methods
|
|
219
|
+
* (`prepareClis` installs it, as `login` does).
|
|
209
220
|
*/
|
|
210
221
|
authStatus(options?: {
|
|
211
222
|
harnesses?: AgentHarness[];
|
|
@@ -215,7 +226,11 @@ export declare class AgentServerClient {
|
|
|
215
226
|
* Start one of a harness's logins through its CLI's own flow: answered
|
|
216
227
|
* once the CLI says where the user signs in (`url`, `userCode`, or from
|
|
217
228
|
* another device `codeUrl`, then `complete` with the code it shows).
|
|
218
|
-
* `done` resolves with the harness's login once it succeeded.
|
|
229
|
+
* `done` resolves with the harness's login once it succeeded. Every
|
|
230
|
+
* connection hears it start (`onAuthUpdated`, `auth.loginUnderWay`), and
|
|
231
|
+
* a newer login to the same store cancels it. It installs the harness's
|
|
232
|
+
* CLI first when it is not there yet, inside the 20 s the CLI has to
|
|
233
|
+
* start the login: on a slow network, `prepareClis` first.
|
|
219
234
|
*/
|
|
220
235
|
login(harness: AgentHarness, method: string, options?: {
|
|
221
236
|
apiKey?: string;
|
|
@@ -229,7 +244,12 @@ export declare class AgentServerClient {
|
|
|
229
244
|
onEvent(handler: (envelope: DecodedWireEventEnvelope) => void): () => void;
|
|
230
245
|
/** A harness's CLI being installed on the server, whatever caused it (`clis/progress`). */
|
|
231
246
|
onCliProgress(handler: (progress: HarnessCliProgress) => void): () => void;
|
|
232
|
-
/**
|
|
247
|
+
/**
|
|
248
|
+
* A harness's login changed on the server, a login started (no `login`;
|
|
249
|
+
* `auth.loginUnderWay` is it), or a login ended (`login`), whoever caused
|
|
250
|
+
* it (`auth/updated`). Every update's `auth` carries the login then under
|
|
251
|
+
* way to that harness, if any.
|
|
252
|
+
*/
|
|
233
253
|
onAuthUpdated(handler: (update: AuthUpdated) => void): () => void;
|
|
234
254
|
/** Observe unrecoverable delivery gaps even when using startTurn without a handle. */
|
|
235
255
|
onEventGap(handler: (gap: SessionEventGap) => void): () => void;
|
|
@@ -260,11 +280,17 @@ export declare class AgentServerClient {
|
|
|
260
280
|
* server's answer: the session is followed no more.
|
|
261
281
|
*/
|
|
262
282
|
private resubscribe;
|
|
263
|
-
/**
|
|
264
|
-
private
|
|
283
|
+
/** A failure a redial heals: the connection dropped and will be redialed, which subscribes again. */
|
|
284
|
+
private redialing;
|
|
285
|
+
/** Settle the `subscribeAll` calls waiting for an answer: answered, or failed with `error`. */
|
|
286
|
+
private answeredAll;
|
|
265
287
|
/** After a redial: every session followed, from what the client holds, pipelined. */
|
|
266
288
|
private subscribeAgain;
|
|
267
|
-
/**
|
|
289
|
+
/**
|
|
290
|
+
* `session/subscribeAll`, sent now; its answer settles the `subscribeAll`
|
|
291
|
+
* calls waiting. Refused, the client follows every session no more; dropped,
|
|
292
|
+
* the redial asks again.
|
|
293
|
+
*/
|
|
268
294
|
private requestAll;
|
|
269
295
|
/** `session/subscribe` for one session, `onAnswer` given its point the moment it arrives. */
|
|
270
296
|
private subscribeTo;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"client.d.ts","sourceRoot":"","sources":["../../../src/client/client.ts"],"names":[],"mappings":"AAAA,OAAO,EACN,KAAK,YAAY,EAEjB,KAAK,eAAe,EACpB,KAAK,WAAW,EAEhB,KAAK,yBAAyB,EAC9B,KAAK,wBAAwB,EAC7B,KAAK,cAAc,EACnB,KAAK,kBAAkB,EACvB,KAAK,WAAW,EAChB,KAAK,UAAU,EACf,KAAK,kBAAkB,EAEvB,KAAK,gBAAgB,EACrB,KAAK,SAAS,EACd,KAAK,gBAAgB,EACrB,KAAK,iBAAiB,EACtB,KAAK,WAAW,EAChB,KAAK,2BAA2B,EAGhC,KAAK,gBAAgB,EACrB,KAAK,WAAW,EAChB,KAAK,eAAe,EACpB,KAAK,eAAe,EACpB,KAAK,eAAe,EACpB,KAAK,eAAe,EAGpB,KAAK,aAAa,EAIlB,MAAM,sBAAsB,CAAC;AAC9B,OAAO,EACN,KAAK,wBAAwB,EAE7B,qBAAqB,EACrB,KAAK,eAAe,EACpB,KAAK,iBAAiB,EACtB,sBAAsB,EACtB,KAAK,gBAAgB,EACrB,MAAM,iBAAiB,CAAC;AAGzB,OAAO,EAAE,KAAK,WAAW,EAAc,MAAM,aAAa,CAAC;AAE3D,OAAO,EAAE,aAAa,EAAe,KAAK,eAAe,EAAW,MAAM,cAAc,CAAC;AACzF,OAAO,EACN,KAAK,kBAAkB,EACvB,KAAK,aAAa,EAIlB,MAAM,iBAAiB,CAAC;AACzB,OAAO,EAAe,KAAK,UAAU,EAAS,MAAM,YAAY,CAAC;AAEjE,OAAO,EACN,KAAK,wBAAwB,EAC7B,qBAAqB,EACrB,KAAK,eAAe,EACpB,KAAK,iBAAiB,EACtB,sBAAsB,EACtB,aAAa,EACb,KAAK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