@zvada/agent-server 0.3.18 → 0.3.19
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 +1005 -1
- package/README.md +35 -39
- 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 +43 -25
- 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 +144 -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
|
@@ -1,4 +1,6 @@
|
|
|
1
1
|
import { generateUUIDv7 } from "./ids.ts";
|
|
2
|
+
import type { Delta } from "./lifecycle.ts";
|
|
3
|
+
import { META_KEYS } from "./meta-keys.ts";
|
|
2
4
|
import type { AgentInput } from "./part-input.ts";
|
|
3
5
|
import type { Part, ReasoningPart, SubagentMetadata, TextPart, ToolPart } from "./parts.ts";
|
|
4
6
|
import type { ToolKind, ToolLocation, ToolResultContent } from "./tool-state.ts";
|
|
@@ -103,6 +105,27 @@ export function appendToolInput(part: ToolPart, partialJson: string): void {
|
|
|
103
105
|
}
|
|
104
106
|
}
|
|
105
107
|
|
|
108
|
+
/**
|
|
109
|
+
* `part` with `delta` applied, as a new part: a text or reasoning part gains
|
|
110
|
+
* the delta's text, a pending tool its streamed input. Undefined for a delta
|
|
111
|
+
* the part does not take (another part type, a tool no longer pending). The
|
|
112
|
+
* engine's processor, the server's open parts and the reducer all extend a
|
|
113
|
+
* part with this one function, so the snapshot a joiner receives equals what
|
|
114
|
+
* a client that saw every delta folded.
|
|
115
|
+
*/
|
|
116
|
+
export function extendPart(part: Part, delta: Delta): Part | undefined {
|
|
117
|
+
if (delta.type === "tool_input") {
|
|
118
|
+
if (part.type !== "tool" || part.state.status !== "pending") return undefined;
|
|
119
|
+
return {
|
|
120
|
+
...part,
|
|
121
|
+
state: { ...part.state, partialInput: part.state.partialInput + delta.input },
|
|
122
|
+
};
|
|
123
|
+
}
|
|
124
|
+
if ((part.type === "text" || part.type === "reasoning") && part.type === delta.type)
|
|
125
|
+
return { ...part, text: part.text + delta.text };
|
|
126
|
+
return undefined;
|
|
127
|
+
}
|
|
128
|
+
|
|
106
129
|
/** Attach/refresh normalized metadata on an existing tool part. */
|
|
107
130
|
export function setToolMeta(part: ToolPart, meta: ToolMeta): void {
|
|
108
131
|
if (meta.subagent) {
|
|
@@ -143,12 +166,14 @@ export function completeToolPart(
|
|
|
143
166
|
};
|
|
144
167
|
}
|
|
145
168
|
|
|
169
|
+
// @ref LLP 0002#engine-minted-ids — the echo is the one exception
|
|
146
170
|
/**
|
|
147
171
|
* The user echo's message id, derived from the turn id.
|
|
148
172
|
*
|
|
149
|
-
* A
|
|
173
|
+
* A deliberate exception to engine-minted UUIDv7 ids: the echo
|
|
150
174
|
* is not new information, it is the caller's own input played back, and one
|
|
151
|
-
* turn has exactly one echo message
|
|
175
|
+
* turn has exactly one echo message (plus one per steer, see
|
|
176
|
+
* `steerMessageId`). Deriving the id means a consumer can
|
|
152
177
|
* predict the echo byte-for-byte from the `turnId` it minted — so an
|
|
153
178
|
* optimistically-rendered prompt bubble IS the echo (same id, same parts)
|
|
154
179
|
* instead of a look-alike that has to be reconciled and swapped. The
|
|
@@ -158,8 +183,8 @@ export function completeToolPart(
|
|
|
158
183
|
* PRODUCER rule (how the engine mints), matched by a consumer helper — not a
|
|
159
184
|
* licence to infer turn ids from message ids elsewhere.
|
|
160
185
|
*
|
|
161
|
-
* Two consequences of NOT being UUIDv7, for consumers that leaned on
|
|
162
|
-
*
|
|
186
|
+
* Two consequences of NOT being UUIDv7, for consumers that leaned on its side
|
|
187
|
+
* effects: echo ids do not TIME-SORT against UUIDv7 ids (`echo-` sorts
|
|
163
188
|
* after every hex digit — never order by id), and they do not fit uuid-typed
|
|
164
189
|
* columns or id-derived timestamps (`createdAtFromUUID7(echoId)` is 0 — derive
|
|
165
190
|
* the echo's time from the `turnId` FIELD the event/row carries, never by
|
|
@@ -175,7 +200,21 @@ export function echoPartId(turnId: string, index: number): string {
|
|
|
175
200
|
}
|
|
176
201
|
|
|
177
202
|
/**
|
|
178
|
-
*
|
|
203
|
+
* The message id of a steer's echo: the user message a steer becomes once the
|
|
204
|
+
* agent reads it, derived from the steer id the way the turn's echo is derived
|
|
205
|
+
* from the turn id, so the sender can predict it.
|
|
206
|
+
*/
|
|
207
|
+
export function steerMessageId(steerId: string): string {
|
|
208
|
+
return `steer-${steerId}`;
|
|
209
|
+
}
|
|
210
|
+
|
|
211
|
+
/** The id of a steer echo's part at `index`. */
|
|
212
|
+
export function steerPartId(steerId: string, index: number): string {
|
|
213
|
+
return `steer-${steerId}-${index}`;
|
|
214
|
+
}
|
|
215
|
+
|
|
216
|
+
/**
|
|
217
|
+
* Build the parts for the user echo from a turn's input. Part ids
|
|
179
218
|
* are derived from the turn (see `echoPartId`), so the whole echo message is
|
|
180
219
|
* predictable from `{turnId, input}` alone. The EventProcessor stamps
|
|
181
220
|
* `sessionId`/`messageId` at emit time. Text `elements` spans ride `_meta`
|
|
@@ -183,11 +222,20 @@ export function echoPartId(turnId: string, index: number): string {
|
|
|
183
222
|
* annotations).
|
|
184
223
|
*/
|
|
185
224
|
export function createUserEchoParts(input: AgentInput, turnId: string): Part[] {
|
|
225
|
+
return echoParts(input, (index) => echoPartId(turnId, index));
|
|
226
|
+
}
|
|
227
|
+
|
|
228
|
+
/** The parts of a steer's echo, predictable from `{steerId, input}` alone. */
|
|
229
|
+
export function createSteerEchoParts(input: AgentInput, steerId: string): Part[] {
|
|
230
|
+
return echoParts(input, (index) => steerPartId(steerId, index));
|
|
231
|
+
}
|
|
232
|
+
|
|
233
|
+
function echoParts(input: AgentInput, partId: (index: number) => string): Part[] {
|
|
186
234
|
const items = typeof input === "string" ? [{ type: "text" as const, text: input }] : input;
|
|
187
235
|
const parts: Part[] = [];
|
|
188
236
|
for (let index = 0; index < items.length; index++) {
|
|
189
237
|
const item = items[index] as (typeof items)[number];
|
|
190
|
-
const base = { id:
|
|
238
|
+
const base = { id: partId(index), sessionId: "", messageId: "" };
|
|
191
239
|
if (item.type === "text") {
|
|
192
240
|
parts.push({
|
|
193
241
|
...base,
|
|
@@ -195,7 +243,7 @@ export function createUserEchoParts(input: AgentInput, turnId: string): Part[] {
|
|
|
195
243
|
text: item.text,
|
|
196
244
|
state: "done",
|
|
197
245
|
...("elements" in item && item.elements?.length
|
|
198
|
-
? { _meta: { elements: item.elements } }
|
|
246
|
+
? { _meta: { [META_KEYS.elements]: item.elements } }
|
|
199
247
|
: {}),
|
|
200
248
|
});
|
|
201
249
|
} else if (item.type === "image") {
|
package/src/protocol/guards.ts
CHANGED
|
@@ -1,4 +1,5 @@
|
|
|
1
|
-
//
|
|
1
|
+
// Membership tests for the open vocabularies (tolerant of the unknown,
|
|
2
|
+
// strict about the known: LLP 0002), kept in one zod-free module.
|
|
2
3
|
//
|
|
3
4
|
// A guard is a string comparison against a frozen list — but when it lives
|
|
4
5
|
// next to the schema it guards, importing it pulls zod (and the whole part /
|
|
@@ -11,7 +12,13 @@
|
|
|
11
12
|
//
|
|
12
13
|
// Type-only imports below are erased at compile time and cost nothing at
|
|
13
14
|
// runtime — the modules they name are never loaded by this one.
|
|
14
|
-
import type {
|
|
15
|
+
import type {
|
|
16
|
+
DecodedLifecycleEvent,
|
|
17
|
+
MessagePartDeltaEvent,
|
|
18
|
+
PermissionOption,
|
|
19
|
+
PermissionOptionKind,
|
|
20
|
+
UnknownEvent,
|
|
21
|
+
} from "./lifecycle.ts";
|
|
15
22
|
import type { Part, UnknownPart } from "./parts.ts";
|
|
16
23
|
|
|
17
24
|
export const PART_TYPES = ["text", "reasoning", "tool", "subagent", "image", "file"] as const;
|
|
@@ -35,10 +42,14 @@ export const LIFECYCLE_EVENT_TYPES = [
|
|
|
35
42
|
"message.ended",
|
|
36
43
|
"turn.ended",
|
|
37
44
|
"session.usage",
|
|
45
|
+
"session.limits",
|
|
46
|
+
"session.mode",
|
|
38
47
|
"session.compaction",
|
|
39
48
|
"error",
|
|
40
49
|
"permission.requested",
|
|
41
50
|
"permission.resolved",
|
|
51
|
+
"elicitation.requested",
|
|
52
|
+
"elicitation.resolved",
|
|
42
53
|
"raw",
|
|
43
54
|
] as const;
|
|
44
55
|
|
|
@@ -51,3 +62,45 @@ export function isKnownLifecycleEventType(
|
|
|
51
62
|
export function isUnknownEvent(event: DecodedLifecycleEvent | UnknownEvent): event is UnknownEvent {
|
|
52
63
|
return !isKnownLifecycleEventType((event as { type: string }).type);
|
|
53
64
|
}
|
|
65
|
+
|
|
66
|
+
/**
|
|
67
|
+
* Whether a server delivers this event without keeping it: a token delta,
|
|
68
|
+
* which takes no `seq` of its own (see `SeqCursor.advanceLive`) and which
|
|
69
|
+
* replay and history never return.
|
|
70
|
+
*/
|
|
71
|
+
export function isLiveOnlyEvent(event: { type: string }): event is MessagePartDeltaEvent {
|
|
72
|
+
return event.type === "message.part.delta";
|
|
73
|
+
}
|
|
74
|
+
|
|
75
|
+
/**
|
|
76
|
+
* Whether the server sent this frame without keeping it: a token delta, or an
|
|
77
|
+
* open part sent after a subscription (`live: true`). Either carries the seq
|
|
78
|
+
* of the last kept event before it: fold it with `SeqCursor.advanceLive`.
|
|
79
|
+
*/
|
|
80
|
+
export function isLiveEnvelope(envelope: { live?: boolean; event: { type: string } }): boolean {
|
|
81
|
+
return envelope.live === true || isLiveOnlyEvent(envelope.event);
|
|
82
|
+
}
|
|
83
|
+
|
|
84
|
+
// @ref LLP 0002#permissions — the four ACP option kinds, where the engine keeps "always"
|
|
85
|
+
/**
|
|
86
|
+
* The standard options of a brokered permission request whose harness keeps
|
|
87
|
+
* no "always" of its own: the broker offers the `*_always` kinds the schema
|
|
88
|
+
* advertises, and a "don't ask again" answer becomes a standing per-session
|
|
89
|
+
* rule. A client that renders no options answers with these ids.
|
|
90
|
+
*/
|
|
91
|
+
export const STANDARD_PERMISSION_OPTIONS = [
|
|
92
|
+
{ optionId: "allow", name: "Allow", kind: "allow_once" },
|
|
93
|
+
{ optionId: "allow_always", name: "Always allow", kind: "allow_always" },
|
|
94
|
+
{ optionId: "reject", name: "Reject", kind: "reject_once" },
|
|
95
|
+
{ optionId: "reject_always", name: "Always reject", kind: "reject_always" },
|
|
96
|
+
] as const satisfies readonly PermissionOption[];
|
|
97
|
+
|
|
98
|
+
/** Whether an option kind approves the call. Exact: a kind this build does not know never does. */
|
|
99
|
+
export function isAllowKind(kind: PermissionOptionKind | undefined): boolean {
|
|
100
|
+
return kind === "allow_once" || kind === "allow_always";
|
|
101
|
+
}
|
|
102
|
+
|
|
103
|
+
/** Whether an option kind refuses the call. Exact: a kind this build does not know might not. */
|
|
104
|
+
export function isRejectKind(kind: PermissionOptionKind | undefined): boolean {
|
|
105
|
+
return kind === "reject_once" || kind === "reject_always";
|
|
106
|
+
}
|
package/src/protocol/harness.ts
CHANGED
|
@@ -1,30 +1,64 @@
|
|
|
1
1
|
import { z } from "zod";
|
|
2
|
+
import { openVocabulary } from "./vocabulary.ts";
|
|
2
3
|
|
|
3
4
|
/**
|
|
4
5
|
* The agent harnesses this engine can drive:
|
|
5
6
|
* - `claude-code` — Claude Code via @anthropic-ai/claude-agent-sdk (CLI under the hood)
|
|
6
|
-
* - `codex-sdk` — OpenAI Codex via @openai/codex-sdk (wraps the `codex` CLI in exec mode)
|
|
7
7
|
* - `codex-app-server` — OpenAI Codex via `codex app-server` (long-lived JSON-RPC subprocess)
|
|
8
8
|
* - `acp` — any Agent Client Protocol v1 agent subprocess (`gemini --acp`,
|
|
9
9
|
* `claude-code-acp`, `codex-acp`, ACP registry agents); the launch
|
|
10
10
|
* command is operator-configured, never taken from the wire
|
|
11
11
|
*/
|
|
12
|
-
export const AGENT_HARNESSES = ["claude-code", "codex-
|
|
12
|
+
export const AGENT_HARNESSES = ["claude-code", "codex-app-server", "acp"] as const;
|
|
13
13
|
export type AgentHarness = (typeof AGENT_HARNESSES)[number];
|
|
14
14
|
export const AgentHarnessSchema = z.enum(AGENT_HARNESSES);
|
|
15
15
|
|
|
16
|
+
/**
|
|
17
|
+
* A harness id as it appears on the stream: OPEN, so an event or history entry
|
|
18
|
+
* from a harness this build does not run (written by another version, or
|
|
19
|
+
* another registry) still decodes. `RunConfig.harness` stays closed: a turn
|
|
20
|
+
* can only ask for a harness this build has.
|
|
21
|
+
*/
|
|
22
|
+
export type HarnessId = AgentHarness | (string & {});
|
|
23
|
+
export const HarnessIdSchema = openVocabulary(AGENT_HARNESSES);
|
|
24
|
+
|
|
16
25
|
export function isAgentHarness(value: string): value is AgentHarness {
|
|
17
26
|
return (AGENT_HARNESSES as readonly string[]).includes(value);
|
|
18
27
|
}
|
|
19
28
|
|
|
20
29
|
/**
|
|
21
30
|
* How a harness handles changing the model mid-conversation:
|
|
22
|
-
* - `
|
|
23
|
-
* - `
|
|
31
|
+
* - `in_session` — swap live without losing context (Claude `setModel`)
|
|
32
|
+
* - `restart_session` — must start a fresh underlying session (no built-in
|
|
33
|
+
* harness does; a custom one may)
|
|
24
34
|
* - `unsupported` — model is fixed for the life of the session
|
|
35
|
+
* OPEN: a mode a newer engine reports decodes intact; treat one this build
|
|
36
|
+
* does not know as `unsupported`.
|
|
25
37
|
*/
|
|
26
|
-
export const
|
|
27
|
-
export type ModelSwitchMode =
|
|
38
|
+
export const MODEL_SWITCH_MODES = ["in_session", "restart_session", "unsupported"] as const;
|
|
39
|
+
export type ModelSwitchMode = (typeof MODEL_SWITCH_MODES)[number] | (string & {});
|
|
40
|
+
export const ModelSwitchModeSchema = openVocabulary(MODEL_SWITCH_MODES);
|
|
41
|
+
|
|
42
|
+
/**
|
|
43
|
+
* What a file sent as data is, to the harness that reads it (`fileKind`):
|
|
44
|
+
* - `text` — a text media type (`text/*`, JSON, XML, YAML, TOML, scripts,
|
|
45
|
+
* `+json`, `+xml`), which a harness may inline as prompt text
|
|
46
|
+
* - `pdf` — `application/pdf`
|
|
47
|
+
* - `binary` — any other media type
|
|
48
|
+
* OPEN: a newer engine may name a kind this build does not classify.
|
|
49
|
+
*/
|
|
50
|
+
export const FILE_KINDS = ["text", "pdf", "binary"] as const;
|
|
51
|
+
export type FileKind = (typeof FILE_KINDS)[number] | (string & {});
|
|
52
|
+
export const FileKindSchema = openVocabulary(FILE_KINDS);
|
|
53
|
+
|
|
54
|
+
const TEXT_MEDIA =
|
|
55
|
+
/^text\/|^application\/(json|xml|yaml|x-yaml|toml|javascript|typescript|x-sh|sql|graphql)$|\+(json|xml)$/;
|
|
56
|
+
|
|
57
|
+
/** The kind of a file of this media type, as every harness tells them apart. */
|
|
58
|
+
export function fileKind(mimeType: string): (typeof FILE_KINDS)[number] {
|
|
59
|
+
if (mimeType === "application/pdf") return "pdf";
|
|
60
|
+
return TEXT_MEDIA.test(mimeType) ? "text" : "binary";
|
|
61
|
+
}
|
|
28
62
|
|
|
29
63
|
/**
|
|
30
64
|
* Declarative feature matrix per harness. Callers consult this to decide what
|
|
@@ -42,11 +76,27 @@ export const AgentCapabilitiesSchema = z.object({
|
|
|
42
76
|
thinkingLevels: z.boolean(),
|
|
43
77
|
/** Accepts image input parts. */
|
|
44
78
|
images: z.boolean(),
|
|
79
|
+
/**
|
|
80
|
+
* The files it reads when a turn sends one as data, by `fileKind`: a file
|
|
81
|
+
* of a kind not listed fails the turn as `invalid_request`.
|
|
82
|
+
*/
|
|
83
|
+
files: z.array(FileKindSchema),
|
|
45
84
|
/** Accepts external MCP servers. */
|
|
46
85
|
mcpServers: z.boolean(),
|
|
47
86
|
/** Can raise interactive `permission.requested` round-trips mid-turn. */
|
|
48
87
|
permissionRequests: z.boolean(),
|
|
88
|
+
/**
|
|
89
|
+
* A refused tool call's `message` (`PermissionOutcome`) reaches the agent
|
|
90
|
+
* as why. Where it does not (a bare verdict, an option id), a client hands
|
|
91
|
+
* the user's words on as the next input.
|
|
92
|
+
*/
|
|
93
|
+
rejectionMessages: z.boolean(),
|
|
49
94
|
/** Supports native delegation contained within the current execution. */
|
|
50
95
|
turnScopedSubagents: z.boolean().optional(),
|
|
96
|
+
/**
|
|
97
|
+
* Takes more input while a turn runs (`turn/steer`): the agent reads it at
|
|
98
|
+
* its next step, inside the same turn.
|
|
99
|
+
*/
|
|
100
|
+
steering: z.boolean().optional(),
|
|
51
101
|
});
|
|
52
102
|
export type AgentCapabilities = z.infer<typeof AgentCapabilitiesSchema>;
|
package/src/protocol/history.ts
CHANGED
|
@@ -1,19 +1,26 @@
|
|
|
1
1
|
import { z } from "zod";
|
|
2
|
-
import {
|
|
3
|
-
import {
|
|
2
|
+
import { canonicalJson } from "./canonical.ts";
|
|
3
|
+
import { isLiveOnlyEvent, isUnknownEvent } from "./guards.ts";
|
|
4
|
+
import {
|
|
5
|
+
type DecodedLifecycleEvent,
|
|
6
|
+
type UnknownEvent,
|
|
7
|
+
decodeLifecycleEvent,
|
|
8
|
+
} from "./lifecycle.ts";
|
|
9
|
+
import { type WireErrorName, WireRefusal } from "./wire.ts";
|
|
4
10
|
|
|
5
11
|
/** Portable session history: versioned, append-only event logs that any host
|
|
6
12
|
* can pull, import, fork and follow. These methods never execute agent work. */
|
|
7
13
|
export const HISTORY_METHODS = {
|
|
8
14
|
list: "history/list",
|
|
9
15
|
head: "history/head",
|
|
10
|
-
read: "history/
|
|
16
|
+
read: "history/read",
|
|
11
17
|
import: "history/import",
|
|
12
18
|
fork: "history/fork",
|
|
13
19
|
commit: "history/commit",
|
|
14
20
|
wait: "history/wait",
|
|
15
21
|
checkpoint: "history/checkpoint",
|
|
16
22
|
} as const;
|
|
23
|
+
export type HistoryMethod = (typeof HISTORY_METHODS)[keyof typeof HISTORY_METHODS];
|
|
17
24
|
export const HISTORY_MAX_RECORDS = 256;
|
|
18
25
|
/** How long `history/wait` waits by default before answering with an unchanged head. */
|
|
19
26
|
export const HISTORY_WAIT_TIMEOUT_MS = 15_000;
|
|
@@ -31,40 +38,39 @@ export const HistoryRecordSchema = z.object({ seq: seq.min(1), event: z.unknown(
|
|
|
31
38
|
export type HistoryRecord = z.infer<typeof HistoryRecordSchema>;
|
|
32
39
|
|
|
33
40
|
/**
|
|
34
|
-
* Why a history operation was refused. Stores throw it and the wire carries
|
|
35
|
-
*
|
|
36
|
-
* - `
|
|
37
|
-
* - `
|
|
38
|
-
* hash for a committed version, a stale expected head, a reused
|
|
39
|
-
*
|
|
40
|
-
* - `
|
|
41
|
+
* Why a history operation was refused. Stores throw it and the wire carries
|
|
42
|
+
* its code unchanged, so a remote store fails the way a local one does:
|
|
43
|
+
* - `unknownHistory`: no such history, or not at the requested version;
|
|
44
|
+
* - `historyConflict`: the request contradicts committed history (another
|
|
45
|
+
* payload or hash for a committed version, a stale expected head, a reused
|
|
46
|
+
* commit id);
|
|
47
|
+
* - `notAuthorized`: the host refused this caller;
|
|
48
|
+
* - `invalidParams`: a malformed request, or one this store cannot hold.
|
|
41
49
|
* None of these succeed when retried unchanged.
|
|
42
50
|
*/
|
|
43
|
-
export class HistoryError extends
|
|
51
|
+
export class HistoryError extends WireRefusal<HistoryRefusal> {
|
|
44
52
|
override readonly name = "HistoryError";
|
|
45
|
-
|
|
46
|
-
|
|
47
|
-
|
|
48
|
-
|
|
49
|
-
|
|
50
|
-
|
|
53
|
+
}
|
|
54
|
+
export const HISTORY_REFUSALS = [
|
|
55
|
+
"unknownHistory",
|
|
56
|
+
"historyConflict",
|
|
57
|
+
"notAuthorized",
|
|
58
|
+
"invalidParams",
|
|
59
|
+
] as const satisfies readonly WireErrorName[];
|
|
60
|
+
export type HistoryRefusal = (typeof HISTORY_REFUSALS)[number];
|
|
61
|
+
const REFUSALS = new Set<string>(HISTORY_REFUSALS);
|
|
62
|
+
/** Whether a wire error name is one a history store refuses with. */
|
|
63
|
+
export function isHistoryRefusal(name: string | undefined): name is HistoryRefusal {
|
|
64
|
+
return name !== undefined && REFUSALS.has(name);
|
|
51
65
|
}
|
|
52
66
|
|
|
53
|
-
/**
|
|
54
|
-
export const HISTORY_ERROR_CODES = {
|
|
55
|
-
missing: WIRE_ERROR_CODES.unknownHistory,
|
|
56
|
-
conflict: WIRE_ERROR_CODES.historyConflict,
|
|
57
|
-
unauthorized: WIRE_ERROR_CODES.notAuthorized,
|
|
58
|
-
invalid: WIRE_ERROR_CODES.invalidParams,
|
|
59
|
-
} as const satisfies Record<HistoryError["reason"], number>;
|
|
60
|
-
|
|
61
|
-
/** Parse a history request or slice, refusing a malformed one as `invalid`,
|
|
67
|
+
/** Parse a history request or slice, refusing a malformed one as `invalidParams`,
|
|
62
68
|
* the way a remote store refuses it. */
|
|
63
69
|
export function parseHistoryRequest<S extends z.ZodType>(schema: S, value: unknown): z.output<S> {
|
|
64
70
|
const parsed = schema.safeParse(value);
|
|
65
71
|
if (!parsed.success)
|
|
66
72
|
throw new HistoryError(
|
|
67
|
-
"
|
|
73
|
+
"invalidParams",
|
|
68
74
|
parsed.error.issues.map((issue) => `${issue.path.join(".")}: ${issue.message}`).join("; "),
|
|
69
75
|
);
|
|
70
76
|
return parsed.data;
|
|
@@ -74,39 +80,50 @@ export function jsonBytes(value: unknown): number {
|
|
|
74
80
|
return new TextEncoder().encode(JSON.stringify(value)).byteLength;
|
|
75
81
|
}
|
|
76
82
|
|
|
77
|
-
/** Records a history holds: contiguous,
|
|
83
|
+
/** Records a history holds: contiguous, well formed where their type is known, and history events. */
|
|
78
84
|
export function validateHistoryRecords(sessionId: string, records: readonly HistoryRecord[]): void {
|
|
79
85
|
let previous: number | undefined;
|
|
80
86
|
for (const record of records) {
|
|
81
87
|
if (previous !== undefined && record.seq !== previous + 1)
|
|
82
|
-
throw new HistoryError("
|
|
88
|
+
throw new HistoryError("invalidParams", "History records must be contiguous and ordered");
|
|
83
89
|
// Unknown event types are kept as they are; a known type must be well formed.
|
|
84
|
-
let event:
|
|
90
|
+
let event: DecodedLifecycleEvent | UnknownEvent;
|
|
85
91
|
try {
|
|
86
92
|
event = decodeLifecycleEvent(record.event);
|
|
87
93
|
} catch {
|
|
88
|
-
throw new HistoryError("
|
|
89
|
-
}
|
|
90
|
-
if (
|
|
91
|
-
!record.event ||
|
|
92
|
-
typeof record.event !== "object" ||
|
|
93
|
-
(record.event as { sessionId?: unknown }).sessionId !== sessionId
|
|
94
|
-
)
|
|
95
|
-
throw new HistoryError("invalid", "History event belongs to a different session");
|
|
96
|
-
if (event.type === "raw")
|
|
97
|
-
throw new HistoryError("invalid", "Raw harness records are not part of session history");
|
|
98
|
-
if (event.type === "message.part") {
|
|
99
|
-
const raw = record.event as {
|
|
100
|
-
messageId: string;
|
|
101
|
-
part: { sessionId: string; messageId: string };
|
|
102
|
-
};
|
|
103
|
-
if (raw.part.sessionId !== sessionId || raw.part.messageId !== raw.messageId)
|
|
104
|
-
throw new HistoryError("invalid", "History part belongs to a different message or session");
|
|
94
|
+
throw new HistoryError("invalidParams", `History record ${record.seq} is a malformed event`);
|
|
105
95
|
}
|
|
96
|
+
validateHistoryEvent(sessionId, event);
|
|
106
97
|
previous = record.seq;
|
|
107
98
|
}
|
|
108
99
|
}
|
|
109
100
|
|
|
101
|
+
/** An event a history of `sessionId` holds: its session's, a part of its own message, and never
|
|
102
|
+
* raw harness output or a token delta. Throws `invalidParams` for any other. */
|
|
103
|
+
export function validateHistoryEvent(
|
|
104
|
+
sessionId: string,
|
|
105
|
+
event: DecodedLifecycleEvent | UnknownEvent,
|
|
106
|
+
): void {
|
|
107
|
+
if (event.sessionId !== sessionId)
|
|
108
|
+
throw new HistoryError("invalidParams", "History event belongs to a different session");
|
|
109
|
+
if (isUnknownEvent(event)) return;
|
|
110
|
+
if (event.type === "raw")
|
|
111
|
+
throw new HistoryError("invalidParams", "Raw harness records are not part of session history");
|
|
112
|
+
if (isLiveOnlyEvent(event))
|
|
113
|
+
throw new HistoryError(
|
|
114
|
+
"invalidParams",
|
|
115
|
+
"Token deltas are live only, never part of session history",
|
|
116
|
+
);
|
|
117
|
+
if (
|
|
118
|
+
event.type === "message.part" &&
|
|
119
|
+
(event.part.sessionId !== sessionId || event.part.messageId !== event.messageId)
|
|
120
|
+
)
|
|
121
|
+
throw new HistoryError(
|
|
122
|
+
"invalidParams",
|
|
123
|
+
"History part belongs to a different message or session",
|
|
124
|
+
);
|
|
125
|
+
}
|
|
126
|
+
|
|
110
127
|
export const HistoryVersionSchema = SessionRefSchema.extend({
|
|
111
128
|
seq,
|
|
112
129
|
hash: z.string().regex(/^[a-f0-9]{64}$/),
|
|
@@ -133,13 +150,13 @@ export const HistoryCatalogSchema = z.object({
|
|
|
133
150
|
next: z.object({ storeId: z.string(), ref: SessionRefSchema }).nullable(),
|
|
134
151
|
});
|
|
135
152
|
export type HistoryCatalog = z.infer<typeof HistoryCatalogSchema>;
|
|
136
|
-
export const
|
|
153
|
+
export const HistoryReadSchema = SessionRefSchema.extend({
|
|
137
154
|
after: HistoryVersionSchema.optional(),
|
|
138
155
|
through: HistoryVersionSchema.optional(),
|
|
139
156
|
limit: z.number().int().min(1).max(HISTORY_MAX_RECORDS).default(HISTORY_MAX_RECORDS),
|
|
140
157
|
maxBytes: z.number().int().min(2048).max(HISTORY_MAX_BYTES).default(HISTORY_MAX_BYTES),
|
|
141
158
|
});
|
|
142
|
-
export type
|
|
159
|
+
export type HistoryRead = z.input<typeof HistoryReadSchema>;
|
|
143
160
|
export const HistorySliceSchema = z.object({
|
|
144
161
|
descriptor: HistoryDescriptorSchema,
|
|
145
162
|
base: HistoryVersionSchema,
|
|
@@ -183,7 +200,7 @@ export type HistoryCheckpoint = z.infer<typeof HistoryCheckpointSchema>;
|
|
|
183
200
|
* these same methods. No provider, SQLite or WebSocket dependency. */
|
|
184
201
|
export interface HistoryReader {
|
|
185
202
|
head(ref: { sourceId: string; sessionId: string }): HistoryHead | Promise<HistoryHead>;
|
|
186
|
-
read(request:
|
|
203
|
+
read(request: HistoryRead): HistorySlice | Promise<HistorySlice>;
|
|
187
204
|
/** Optional cached projection at or before the pinned version. Never builds on read. */
|
|
188
205
|
checkpoint?(
|
|
189
206
|
request: HistoryCheckpointRequest,
|
|
@@ -207,24 +224,15 @@ export interface HistoryStore extends HistoryApi {
|
|
|
207
224
|
/** Host-local wakeups; storage is authoritative, so callers recheck the head. */
|
|
208
225
|
onChange(listener: (ref: { sourceId: string; sessionId: string }) => void): () => void;
|
|
209
226
|
}
|
|
210
|
-
export function canonicalHistoryJson(value: unknown): string {
|
|
211
|
-
if (value === null || typeof value !== "object") return JSON.stringify(value) ?? "null";
|
|
212
|
-
if (Array.isArray(value)) return `[${value.map(canonicalHistoryJson).join(",")}]`;
|
|
213
|
-
return `{${Object.entries(value)
|
|
214
|
-
.filter(([, v]) => v !== undefined)
|
|
215
|
-
.sort(([a], [b]) => (a < b ? -1 : a > b ? 1 : 0))
|
|
216
|
-
.map(([k, v]) => `${JSON.stringify(k)}:${canonicalHistoryJson(v)}`)
|
|
217
|
-
.join(",")}}`;
|
|
218
|
-
}
|
|
219
227
|
/**
|
|
220
228
|
* The hash chain every store computes alike. A history's version 0 hashes its
|
|
221
229
|
* canonical descriptor; each record's version hashes
|
|
222
|
-
* `
|
|
230
|
+
* `canonicalJson({ event, previous, seq })` — built here from the
|
|
223
231
|
* record's canonical event JSON, so stored bodies hash without re-encoding.
|
|
224
232
|
* A version is the lowercase hex sha256 of its preimage.
|
|
225
233
|
*/
|
|
226
234
|
export function historyRootPreimage(descriptor: HistoryDescriptor): string {
|
|
227
|
-
return
|
|
235
|
+
return canonicalJson(descriptor);
|
|
228
236
|
}
|
|
229
237
|
export function historyRecordPreimage(previous: string, seq: number, body: string): string {
|
|
230
238
|
return `{"event":${body},"previous":${JSON.stringify(previous)},"seq":${seq}}`;
|
|
@@ -242,9 +250,9 @@ export function sameVersion(a: HistoryVersion, b: HistoryVersion) {
|
|
|
242
250
|
export function validateHistorySlice(value: unknown): HistorySlice {
|
|
243
251
|
const page = parseHistoryRequest(HistorySliceSchema, value);
|
|
244
252
|
if (jsonBytes(page) > HISTORY_MAX_BYTES)
|
|
245
|
-
throw new HistoryError("
|
|
253
|
+
throw new HistoryError("invalidParams", "History slice exceeds byte limit");
|
|
246
254
|
if (![page.base, page.next, page.head].every((v) => sameHistory(v, page.descriptor)))
|
|
247
|
-
throw new HistoryError("
|
|
255
|
+
throw new HistoryError("invalidParams", "History identity mismatch");
|
|
248
256
|
validateHistoryRecords(page.descriptor.sessionId, page.records);
|
|
249
257
|
const end = page.records.at(-1)?.seq ?? page.base.seq;
|
|
250
258
|
if (
|
|
@@ -255,7 +263,7 @@ export function validateHistorySlice(value: unknown): HistorySlice {
|
|
|
255
263
|
(!page.records.length && (!sameVersion(page.base, page.next) || page.hasMore)) ||
|
|
256
264
|
(end === page.head.seq && !sameVersion(page.next, page.head))
|
|
257
265
|
)
|
|
258
|
-
throw new HistoryError("
|
|
266
|
+
throw new HistoryError("invalidParams", "Invalid history slice boundaries");
|
|
259
267
|
return page;
|
|
260
268
|
}
|
|
261
269
|
|
package/src/protocol/ids.ts
CHANGED
|
@@ -38,15 +38,3 @@ export function generateUUIDv7(timestamp = Date.now()): string {
|
|
|
38
38
|
.slice(6, 8)
|
|
39
39
|
.join("")}-${hex.slice(8, 10).join("")}-${hex.slice(10, 16).join("")}`;
|
|
40
40
|
}
|
|
41
|
-
|
|
42
|
-
/** Extract the embedded millisecond timestamp from a UUIDv7. */
|
|
43
|
-
export function timestampFromUUIDv7(id: string): number {
|
|
44
|
-
const hex = id.replace(/-/g, "").slice(0, 12);
|
|
45
|
-
return Number.parseInt(hex, 16);
|
|
46
|
-
}
|
|
47
|
-
|
|
48
|
-
/** Short, non-sortable id for ad-hoc correlation (e.g. JSON-RPC request ids). */
|
|
49
|
-
export function generateId(prefix?: string): string {
|
|
50
|
-
const id = crypto.randomUUID().replace(/-/g, "").slice(0, 16);
|
|
51
|
-
return prefix ? `${prefix}_${id}` : id;
|
|
52
|
-
}
|
package/src/protocol/index.ts
CHANGED
|
@@ -4,6 +4,7 @@
|
|
|
4
4
|
export * from "./ids.ts";
|
|
5
5
|
export * from "./async-queue.ts";
|
|
6
6
|
export * from "./meta.ts";
|
|
7
|
+
export * from "./meta-keys.ts";
|
|
7
8
|
export * from "./time.ts";
|
|
8
9
|
export * from "./vocabulary.ts";
|
|
9
10
|
export * from "./errors.ts";
|
|
@@ -16,13 +17,21 @@ export * from "./factories.ts";
|
|
|
16
17
|
export * from "./harness.ts";
|
|
17
18
|
export * from "./thinking.ts";
|
|
18
19
|
export * from "./models.ts";
|
|
20
|
+
export * from "./clis.ts";
|
|
21
|
+
export * from "./account.ts";
|
|
22
|
+
export * from "./auth.ts";
|
|
23
|
+
export * from "./credentials.ts";
|
|
19
24
|
export * from "./config.ts";
|
|
20
25
|
export * from "./execution.ts";
|
|
21
26
|
export * from "./lifecycle.ts";
|
|
22
27
|
export * from "./stop-reasons.ts";
|
|
23
28
|
export * from "./seq-cursor.ts";
|
|
29
|
+
export * from "./conversation.ts";
|
|
30
|
+
export * from "./tool-closure.ts";
|
|
24
31
|
export * from "./reduce.ts";
|
|
25
32
|
export * from "./selectors.ts";
|
|
26
33
|
export * from "./verify.ts";
|
|
27
34
|
export * from "./wire.ts";
|
|
35
|
+
export * from "./wire-api.ts";
|
|
36
|
+
export * from "./canonical.ts";
|
|
28
37
|
export * from "./history.ts";
|