@zvada/agent-server 0.3.18 → 0.3.20
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/AGENTS.md +11 -26
- package/CHANGELOG.md +1041 -1
- package/README.md +40 -40
- package/dist/types/accounts/chatgpt.d.ts +34 -0
- package/dist/types/accounts/chatgpt.d.ts.map +1 -0
- package/dist/types/accounts/check.d.ts +24 -0
- package/dist/types/accounts/check.d.ts.map +1 -0
- package/dist/types/accounts/claude.d.ts +21 -0
- package/dist/types/accounts/claude.d.ts.map +1 -0
- package/dist/types/accounts/endpoint.d.ts +50 -0
- package/dist/types/accounts/endpoint.d.ts.map +1 -0
- package/dist/types/accounts/http.d.ts +38 -0
- package/dist/types/accounts/http.d.ts.map +1 -0
- package/dist/types/accounts/index.d.ts +6 -0
- package/dist/types/accounts/index.d.ts.map +1 -0
- package/dist/types/client/client.d.ts +272 -0
- package/dist/types/client/client.d.ts.map +1 -0
- package/dist/types/client/connection.d.ts +160 -0
- package/dist/types/client/connection.d.ts.map +1 -0
- package/dist/types/client/history.d.ts +8 -0
- package/dist/types/client/history.d.ts.map +1 -0
- package/dist/types/client/index.d.ts +5 -0
- package/dist/types/client/index.d.ts.map +1 -0
- package/dist/types/client/listeners.d.ts +8 -0
- package/dist/types/client/listeners.d.ts.map +1 -0
- package/dist/types/client/logins.d.ts +35 -0
- package/dist/types/client/logins.d.ts.map +1 -0
- package/dist/types/client/rpc.d.ts +46 -0
- package/dist/types/client/rpc.d.ts.map +1 -0
- package/dist/types/client/streams.d.ts +150 -0
- package/dist/types/client/streams.d.ts.map +1 -0
- package/dist/types/client/transports.d.ts +35 -0
- package/dist/types/client/transports.d.ts.map +1 -0
- package/dist/types/client/turns.d.ts +81 -0
- package/dist/types/client/turns.d.ts.map +1 -0
- package/dist/types/core/agents/acp/acp-agent.d.ts +68 -0
- package/dist/types/core/agents/acp/acp-agent.d.ts.map +1 -0
- package/dist/types/core/agents/acp/adapter.d.ts +39 -0
- package/dist/types/core/agents/acp/adapter.d.ts.map +1 -0
- package/dist/types/core/agents/acp/client.d.ts +90 -0
- package/dist/types/core/agents/acp/client.d.ts.map +1 -0
- package/dist/types/core/agents/acp/known-agents.d.ts +35 -0
- package/dist/types/core/agents/acp/known-agents.d.ts.map +1 -0
- package/dist/types/core/agents/acp/mappings.d.ts +46 -0
- package/dist/types/core/agents/acp/mappings.d.ts.map +1 -0
- package/dist/types/core/agents/acp/requests.d.ts +26 -0
- package/dist/types/core/agents/acp/requests.d.ts.map +1 -0
- package/dist/types/core/agents/attachments.d.ts +11 -0
- package/dist/types/core/agents/attachments.d.ts.map +1 -0
- package/dist/types/core/agents/base.d.ts +227 -0
- package/dist/types/core/agents/base.d.ts.map +1 -0
- package/dist/types/core/agents/claude-code/adapter.d.ts +58 -0
- package/dist/types/core/agents/claude-code/adapter.d.ts.map +1 -0
- package/dist/types/core/agents/claude-code/approvals.d.ts +26 -0
- package/dist/types/core/agents/claude-code/approvals.d.ts.map +1 -0
- package/dist/types/core/agents/claude-code/claude-agent.d.ts +70 -0
- package/dist/types/core/agents/claude-code/claude-agent.d.ts.map +1 -0
- package/dist/types/core/agents/claude-code/credentials.d.ts +54 -0
- package/dist/types/core/agents/claude-code/credentials.d.ts.map +1 -0
- package/dist/types/core/agents/claude-code/events.d.ts +42 -0
- package/dist/types/core/agents/claude-code/events.d.ts.map +1 -0
- package/dist/types/core/agents/claude-code/login.d.ts +61 -0
- package/dist/types/core/agents/claude-code/login.d.ts.map +1 -0
- package/dist/types/core/agents/claude-code/mcp.d.ts +52 -0
- package/dist/types/core/agents/claude-code/mcp.d.ts.map +1 -0
- package/dist/types/core/agents/claude-code/models.d.ts +30 -0
- package/dist/types/core/agents/claude-code/models.d.ts.map +1 -0
- package/dist/types/core/agents/claude-code/options.d.ts +183 -0
- package/dist/types/core/agents/claude-code/options.d.ts.map +1 -0
- package/dist/types/core/agents/claude-code/outcome.d.ts +50 -0
- package/dist/types/core/agents/claude-code/outcome.d.ts.map +1 -0
- package/dist/types/core/agents/claude-code/session-pool.d.ts +36 -0
- package/dist/types/core/agents/claude-code/session-pool.d.ts.map +1 -0
- package/dist/types/core/agents/claude-code/session.d.ts +148 -0
- package/dist/types/core/agents/claude-code/session.d.ts.map +1 -0
- package/dist/types/core/agents/claude-code/spawn.d.ts +29 -0
- package/dist/types/core/agents/claude-code/spawn.d.ts.map +1 -0
- package/dist/types/core/agents/claude-code/spend.d.ts +58 -0
- package/dist/types/core/agents/claude-code/spend.d.ts.map +1 -0
- package/dist/types/core/agents/claude-code/tools.d.ts +4 -0
- package/dist/types/core/agents/claude-code/tools.d.ts.map +1 -0
- package/dist/types/core/agents/claude-code/turn-usage.d.ts +52 -0
- package/dist/types/core/agents/claude-code/turn-usage.d.ts.map +1 -0
- package/dist/types/core/agents/claude-code/turn.d.ts +121 -0
- package/dist/types/core/agents/claude-code/turn.d.ts.map +1 -0
- package/dist/types/core/agents/codex-app-server/adapter.d.ts +59 -0
- package/dist/types/core/agents/codex-app-server/adapter.d.ts.map +1 -0
- package/dist/types/core/agents/codex-app-server/client.d.ts +116 -0
- package/dist/types/core/agents/codex-app-server/client.d.ts.map +1 -0
- package/dist/types/core/agents/codex-app-server/codex-agent.d.ts +113 -0
- package/dist/types/core/agents/codex-app-server/codex-agent.d.ts.map +1 -0
- package/dist/types/core/agents/codex-app-server/commands.d.ts +66 -0
- package/dist/types/core/agents/codex-app-server/commands.d.ts.map +1 -0
- package/dist/types/core/agents/codex-app-server/credentials.d.ts +49 -0
- package/dist/types/core/agents/codex-app-server/credentials.d.ts.map +1 -0
- package/dist/types/core/agents/codex-app-server/effort.d.ts +12 -0
- package/dist/types/core/agents/codex-app-server/effort.d.ts.map +1 -0
- package/dist/types/core/agents/codex-app-server/events.d.ts +45 -0
- package/dist/types/core/agents/codex-app-server/events.d.ts.map +1 -0
- package/dist/types/core/agents/codex-app-server/homes.d.ts +20 -0
- package/dist/types/core/agents/codex-app-server/homes.d.ts.map +1 -0
- package/dist/types/core/agents/codex-app-server/input.d.ts +26 -0
- package/dist/types/core/agents/codex-app-server/input.d.ts.map +1 -0
- package/dist/types/core/agents/codex-app-server/items.d.ts +31 -0
- package/dist/types/core/agents/codex-app-server/items.d.ts.map +1 -0
- package/dist/types/core/agents/codex-app-server/login.d.ts +38 -0
- package/dist/types/core/agents/codex-app-server/login.d.ts.map +1 -0
- package/dist/types/core/agents/codex-app-server/mcp.d.ts +62 -0
- package/dist/types/core/agents/codex-app-server/mcp.d.ts.map +1 -0
- package/dist/types/core/agents/codex-app-server/models.d.ts +67 -0
- package/dist/types/core/agents/codex-app-server/models.d.ts.map +1 -0
- package/dist/types/core/agents/codex-app-server/options.d.ts +40 -0
- package/dist/types/core/agents/codex-app-server/options.d.ts.map +1 -0
- package/dist/types/core/agents/codex-app-server/plan-approval.d.ts +19 -0
- package/dist/types/core/agents/codex-app-server/plan-approval.d.ts.map +1 -0
- package/dist/types/core/agents/codex-app-server/protocol.d.ts +99 -0
- package/dist/types/core/agents/codex-app-server/protocol.d.ts.map +1 -0
- package/dist/types/core/agents/codex-app-server/requests.d.ts +42 -0
- package/dist/types/core/agents/codex-app-server/requests.d.ts.map +1 -0
- package/dist/types/core/agents/codex-app-server/session.d.ts +96 -0
- package/dist/types/core/agents/codex-app-server/session.d.ts.map +1 -0
- package/dist/types/core/agents/codex-app-server/subagents.d.ts +53 -0
- package/dist/types/core/agents/codex-app-server/subagents.d.ts.map +1 -0
- package/dist/types/core/agents/codex-app-server/thread-settings.d.ts +87 -0
- package/dist/types/core/agents/codex-app-server/thread-settings.d.ts.map +1 -0
- package/dist/types/core/agents/codex-app-server/turn-items.d.ts +33 -0
- package/dist/types/core/agents/codex-app-server/turn-items.d.ts.map +1 -0
- package/dist/types/core/agents/codex-app-server/turn.d.ts +163 -0
- package/dist/types/core/agents/codex-app-server/turn.d.ts.map +1 -0
- package/dist/types/core/agents/config-fingerprint.d.ts +5 -0
- package/dist/types/core/agents/config-fingerprint.d.ts.map +1 -0
- package/dist/types/core/agents/credentials.d.ts +28 -0
- package/dist/types/core/agents/credentials.d.ts.map +1 -0
- package/dist/types/core/agents/elicitation.d.ts +37 -0
- package/dist/types/core/agents/elicitation.d.ts.map +1 -0
- package/dist/types/core/agents/inherit-config.d.ts +18 -0
- package/dist/types/core/agents/inherit-config.d.ts.map +1 -0
- package/dist/types/core/agents/login.d.ts +67 -0
- package/dist/types/core/agents/login.d.ts.map +1 -0
- package/dist/types/core/agents/mcp-config.d.ts +57 -0
- package/dist/types/core/agents/mcp-config.d.ts.map +1 -0
- package/dist/types/core/agents/plan.d.ts +16 -0
- package/dist/types/core/agents/plan.d.ts.map +1 -0
- package/dist/types/core/agents/registry.d.ts +30 -0
- package/dist/types/core/agents/registry.d.ts.map +1 -0
- package/dist/types/core/agents/session-agent.d.ts +48 -0
- package/dist/types/core/agents/session-agent.d.ts.map +1 -0
- package/dist/types/core/agents/session-pool.d.ts +41 -0
- package/dist/types/core/agents/session-pool.d.ts.map +1 -0
- package/dist/types/core/agents/stderr-tail.d.ts +28 -0
- package/dist/types/core/agents/stderr-tail.d.ts.map +1 -0
- package/dist/types/core/agents/thinking-levels.d.ts +4 -0
- package/dist/types/core/agents/thinking-levels.d.ts.map +1 -0
- package/dist/types/core/agents/types.d.ts +124 -0
- package/dist/types/core/agents/types.d.ts.map +1 -0
- package/dist/types/core/diagnostics.d.ts +36 -0
- package/dist/types/core/diagnostics.d.ts.map +1 -0
- package/dist/types/core/index.d.ts +29 -0
- package/dist/types/core/index.d.ts.map +1 -0
- package/dist/types/core/presets.d.ts +80 -0
- package/dist/types/core/presets.d.ts.map +1 -0
- package/dist/types/core/processes/identity.d.ts +31 -0
- package/dist/types/core/processes/identity.d.ts.map +1 -0
- package/dist/types/core/processes/lifeline.d.ts +47 -0
- package/dist/types/core/processes/lifeline.d.ts.map +1 -0
- package/dist/types/core/processes/native-processes.d.ts +130 -0
- package/dist/types/core/processes/native-processes.d.ts.map +1 -0
- package/dist/types/core/processes/process-table.d.ts +43 -0
- package/dist/types/core/processes/process-table.d.ts.map +1 -0
- package/dist/types/core/provision/cache-trust.d.ts +13 -0
- package/dist/types/core/provision/cache-trust.d.ts.map +1 -0
- package/dist/types/core/provision/cache-usage.d.ts +14 -0
- package/dist/types/core/provision/cache-usage.d.ts.map +1 -0
- package/dist/types/core/provision/checksums.d.ts +46 -0
- package/dist/types/core/provision/checksums.d.ts.map +1 -0
- package/dist/types/core/provision/extract.d.ts +7 -0
- package/dist/types/core/provision/extract.d.ts.map +1 -0
- package/dist/types/core/provision/index.d.ts +5 -0
- package/dist/types/core/provision/index.d.ts.map +1 -0
- package/dist/types/core/provision/install-build.d.ts +36 -0
- package/dist/types/core/provision/install-build.d.ts.map +1 -0
- package/dist/types/core/provision/npm.d.ts +40 -0
- package/dist/types/core/provision/npm.d.ts.map +1 -0
- package/dist/types/core/provision/pins.d.ts +24 -0
- package/dist/types/core/provision/pins.d.ts.map +1 -0
- package/dist/types/core/provision/platform.d.ts +28 -0
- package/dist/types/core/provision/platform.d.ts.map +1 -0
- package/dist/types/core/provision/provisioner.d.ts +189 -0
- package/dist/types/core/provision/provisioner.d.ts.map +1 -0
- package/dist/types/core/provision/releases.d.ts +8 -0
- package/dist/types/core/provision/releases.d.ts.map +1 -0
- package/dist/types/core/provision/tools.d.ts +81 -0
- package/dist/types/core/provision/tools.d.ts.map +1 -0
- package/dist/types/core/proxy/anthropic-proxy.d.ts +52 -0
- package/dist/types/core/proxy/anthropic-proxy.d.ts.map +1 -0
- package/dist/types/core/proxy/api-key-store.d.ts +37 -0
- package/dist/types/core/proxy/api-key-store.d.ts.map +1 -0
- package/dist/types/core/proxy/index.d.ts +3 -0
- package/dist/types/core/proxy/index.d.ts.map +1 -0
- package/dist/types/core/proxy/loopback.d.ts +14 -0
- package/dist/types/core/proxy/loopback.d.ts.map +1 -0
- package/dist/types/core/runtime/agent-runtime.d.ts +181 -0
- package/dist/types/core/runtime/agent-runtime.d.ts.map +1 -0
- package/dist/types/core/runtime/event-processor.d.ts +87 -0
- package/dist/types/core/runtime/event-processor.d.ts.map +1 -0
- package/dist/types/core/runtime/event-sink.d.ts +44 -0
- package/dist/types/core/runtime/event-sink.d.ts.map +1 -0
- package/dist/types/core/runtime/harness-clis.d.ts +10 -0
- package/dist/types/core/runtime/harness-clis.d.ts.map +1 -0
- package/dist/types/core/runtime/harness-logins.d.ts +68 -0
- package/dist/types/core/runtime/harness-logins.d.ts.map +1 -0
- package/dist/types/core/runtime/login-reads.d.ts +28 -0
- package/dist/types/core/runtime/login-reads.d.ts.map +1 -0
- package/dist/types/core/runtime/model-lists.d.ts +37 -0
- package/dist/types/core/runtime/model-lists.d.ts.map +1 -0
- package/dist/types/core/runtime/permission-policy.d.ts +61 -0
- package/dist/types/core/runtime/permission-policy.d.ts.map +1 -0
- package/dist/types/core/runtime/request-broker.d.ts +49 -0
- package/dist/types/core/runtime/request-broker.d.ts.map +1 -0
- package/dist/types/core/runtime/steering.d.ts +38 -0
- package/dist/types/core/runtime/steering.d.ts.map +1 -0
- package/dist/types/core/runtime/turn-outcome.d.ts +21 -0
- package/dist/types/core/runtime/turn-outcome.d.ts.map +1 -0
- package/dist/types/core/runtime/turn.d.ts +121 -0
- package/dist/types/core/runtime/turn.d.ts.map +1 -0
- package/dist/types/core/utils/bounded.d.ts +6 -0
- package/dist/types/core/utils/bounded.d.ts.map +1 -0
- package/dist/types/core/utils/deadline.d.ts +14 -0
- package/dist/types/core/utils/deadline.d.ts.map +1 -0
- package/dist/types/core/utils/errors.d.ts +104 -0
- package/dist/types/core/utils/errors.d.ts.map +1 -0
- package/dist/types/core/utils/is-record.d.ts +3 -0
- package/dist/types/core/utils/is-record.d.ts.map +1 -0
- package/dist/types/core/utils/loopback.d.ts +6 -0
- package/dist/types/core/utils/loopback.d.ts.map +1 -0
- package/dist/types/index.d.ts +2 -0
- package/dist/types/index.d.ts.map +1 -0
- package/dist/types/protocol/account.d.ts +26 -0
- package/dist/types/protocol/account.d.ts.map +1 -0
- package/dist/types/protocol/async-queue.d.ts +21 -0
- package/dist/types/protocol/async-queue.d.ts.map +1 -0
- package/dist/types/protocol/auth.d.ts +228 -0
- package/dist/types/protocol/auth.d.ts.map +1 -0
- package/dist/types/protocol/canonical.d.ts +9 -0
- package/dist/types/protocol/canonical.d.ts.map +1 -0
- package/dist/types/protocol/clis.d.ts +74 -0
- package/dist/types/protocol/clis.d.ts.map +1 -0
- package/dist/types/protocol/config.d.ts +200 -0
- package/dist/types/protocol/config.d.ts.map +1 -0
- package/dist/types/protocol/conversation.d.ts +942 -0
- package/dist/types/protocol/conversation.d.ts.map +1 -0
- package/dist/types/protocol/credentials.d.ts +145 -0
- package/dist/types/protocol/credentials.d.ts.map +1 -0
- package/dist/types/protocol/errors.d.ts +36 -0
- package/dist/types/protocol/errors.d.ts.map +1 -0
- package/dist/types/protocol/execution.d.ts +28 -0
- package/dist/types/protocol/execution.d.ts.map +1 -0
- package/dist/types/protocol/factories.d.ts +94 -0
- package/dist/types/protocol/factories.d.ts.map +1 -0
- package/dist/types/protocol/guards.d.ts +55 -0
- package/dist/types/protocol/guards.d.ts.map +1 -0
- package/dist/types/protocol/harness.d.ts +70 -0
- package/dist/types/protocol/harness.d.ts.map +1 -0
- package/dist/types/protocol/history.d.ts +318 -0
- package/dist/types/protocol/history.d.ts.map +1 -0
- package/dist/types/protocol/ids.d.ts +9 -0
- package/dist/types/protocol/ids.d.ts.map +1 -0
- package/dist/types/protocol/index.d.ts +35 -0
- package/dist/types/protocol/index.d.ts.map +1 -0
- package/dist/types/protocol/lifecycle.d.ts +1190 -0
- package/dist/types/protocol/lifecycle.d.ts.map +1 -0
- package/dist/types/protocol/meta-keys.d.ts +17 -0
- package/dist/types/protocol/meta-keys.d.ts.map +1 -0
- package/dist/types/protocol/meta.d.ts +13 -0
- package/dist/types/protocol/meta.d.ts.map +1 -0
- package/dist/types/protocol/model-catalog.d.ts +11 -0
- package/dist/types/protocol/model-catalog.d.ts.map +1 -0
- package/dist/types/protocol/models.d.ts +107 -0
- package/dist/types/protocol/models.d.ts.map +1 -0
- package/dist/types/protocol/part-input.d.ts +101 -0
- package/dist/types/protocol/part-input.d.ts.map +1 -0
- package/dist/types/protocol/parts.d.ts +357 -0
- package/dist/types/protocol/parts.d.ts.map +1 -0
- package/dist/types/protocol/reduce.d.ts +26 -0
- package/dist/types/protocol/reduce.d.ts.map +1 -0
- package/dist/types/protocol/selectors.d.ts +64 -0
- package/dist/types/protocol/selectors.d.ts.map +1 -0
- package/dist/types/protocol/seq-cursor.d.ts +66 -0
- package/dist/types/protocol/seq-cursor.d.ts.map +1 -0
- package/dist/types/protocol/stop-reasons.d.ts +33 -0
- package/dist/types/protocol/stop-reasons.d.ts.map +1 -0
- package/dist/types/protocol/thinking.d.ts +28 -0
- package/dist/types/protocol/thinking.d.ts.map +1 -0
- package/dist/types/protocol/time.d.ts +21 -0
- package/dist/types/protocol/time.d.ts.map +1 -0
- package/dist/types/protocol/tokens.d.ts +29 -0
- package/dist/types/protocol/tokens.d.ts.map +1 -0
- package/dist/types/protocol/tool-closure.d.ts +25 -0
- package/dist/types/protocol/tool-closure.d.ts.map +1 -0
- package/dist/types/protocol/tool-state.d.ts +209 -0
- package/dist/types/protocol/tool-state.d.ts.map +1 -0
- package/dist/types/protocol/verify.d.ts +52 -0
- package/dist/types/protocol/verify.d.ts.map +1 -0
- package/dist/types/protocol/vocabulary.d.ts +19 -0
- package/dist/types/protocol/vocabulary.d.ts.map +1 -0
- package/dist/types/protocol/wire-api.d.ts +1983 -0
- package/dist/types/protocol/wire-api.d.ts.map +1 -0
- package/dist/types/protocol/wire.d.ts +1758 -0
- package/dist/types/protocol/wire.d.ts.map +1 -0
- package/dist/types/server/acp/binding.d.ts +33 -0
- package/dist/types/server/acp/binding.d.ts.map +1 -0
- package/dist/types/server/acp/session-records.d.ts +17 -0
- package/dist/types/server/acp/session-records.d.ts.map +1 -0
- package/dist/types/server/acp/translate.d.ts +48 -0
- package/dist/types/server/acp/translate.d.ts.map +1 -0
- package/dist/types/server/agent-server.d.ts +121 -0
- package/dist/types/server/agent-server.d.ts.map +1 -0
- package/dist/types/server/feedback.d.ts +37 -0
- package/dist/types/server/feedback.d.ts.map +1 -0
- package/dist/types/server/history.d.ts +15 -0
- package/dist/types/server/history.d.ts.map +1 -0
- package/dist/types/server/index.d.ts +7 -0
- package/dist/types/server/index.d.ts.map +1 -0
- package/dist/types/server/install.d.ts +42 -0
- package/dist/types/server/install.d.ts.map +1 -0
- package/dist/types/server/open-parts.d.ts +27 -0
- package/dist/types/server/open-parts.d.ts.map +1 -0
- package/dist/types/server/routes.d.ts +61 -0
- package/dist/types/server/routes.d.ts.map +1 -0
- package/dist/types/server/secrets.d.ts +11 -0
- package/dist/types/server/secrets.d.ts.map +1 -0
- package/dist/types/server/session-gate.d.ts +32 -0
- package/dist/types/server/session-gate.d.ts.map +1 -0
- package/dist/types/server/session-log.d.ts +39 -0
- package/dist/types/server/session-log.d.ts.map +1 -0
- package/dist/types/server/session-store.d.ts +119 -0
- package/dist/types/server/session-store.d.ts.map +1 -0
- package/dist/types/server/subscriptions.d.ts +74 -0
- package/dist/types/server/subscriptions.d.ts.map +1 -0
- package/dist/types/server/transports.d.ts +74 -0
- package/dist/types/server/transports.d.ts.map +1 -0
- package/dist/types/server/wire-error.d.ts +9 -0
- package/dist/types/server/wire-error.d.ts.map +1 -0
- package/dist/types/sync/event-log.d.ts +45 -0
- package/dist/types/sync/event-log.d.ts.map +1 -0
- package/dist/types/sync/fit.d.ts +40 -0
- package/dist/types/sync/fit.d.ts.map +1 -0
- package/dist/types/sync/history-reader.d.ts +8 -0
- package/dist/types/sync/history-reader.d.ts.map +1 -0
- package/dist/types/sync/history-sqlite.d.ts +37 -0
- package/dist/types/sync/history-sqlite.d.ts.map +1 -0
- package/dist/types/sync/history.d.ts +70 -0
- package/dist/types/sync/history.d.ts.map +1 -0
- package/dist/types/sync/index.d.ts +4 -0
- package/dist/types/sync/index.d.ts.map +1 -0
- package/dist/types/sync/journal-sqlite.d.ts +51 -0
- package/dist/types/sync/journal-sqlite.d.ts.map +1 -0
- package/dist/types/sync/journal.d.ts +107 -0
- package/dist/types/sync/journal.d.ts.map +1 -0
- package/dist/types/sync/live-tails.d.ts +30 -0
- package/dist/types/sync/live-tails.d.ts.map +1 -0
- package/dist/types/sync/node-sqlite.d.ts +7 -0
- package/dist/types/sync/node-sqlite.d.ts.map +1 -0
- package/dist/types/sync/projection.d.ts +10 -0
- package/dist/types/sync/projection.d.ts.map +1 -0
- package/dist/types/sync/recovery.d.ts +25 -0
- package/dist/types/sync/recovery.d.ts.map +1 -0
- package/dist/types/sync/retry.d.ts +25 -0
- package/dist/types/sync/retry.d.ts.map +1 -0
- package/dist/types/sync/schema.d.ts +4 -0
- package/dist/types/sync/schema.d.ts.map +1 -0
- package/dist/types/sync/sql.d.ts +38 -0
- package/dist/types/sync/sql.d.ts.map +1 -0
- package/dist/types/sync/sqlite-file.d.ts +9 -0
- package/dist/types/sync/sqlite-file.d.ts.map +1 -0
- package/dist/types/sync/sqlite.d.ts +6 -0
- package/dist/types/sync/sqlite.d.ts.map +1 -0
- package/dist/types/sync/worker.d.ts +63 -0
- package/dist/types/sync/worker.d.ts.map +1 -0
- package/docs/consuming.md +452 -53
- package/docs/deploy.md +218 -47
- package/docs/{sync-experiment.md → durable-sessions.md} +77 -72
- package/docs/feedback.md +116 -0
- package/docs/harnesses.md +212 -88
- package/docs/sync-history.md +29 -13
- package/docs/sync-integration.md +52 -66
- package/package.json +45 -28
- package/src/accounts/chatgpt.ts +194 -0
- package/src/accounts/check.ts +112 -0
- package/src/accounts/claude.ts +111 -0
- package/src/accounts/endpoint.ts +151 -0
- package/src/accounts/http.ts +97 -0
- package/src/accounts/index.ts +19 -0
- package/src/client/client.ts +604 -670
- package/src/client/connection.ts +371 -0
- package/src/client/history.ts +29 -52
- package/src/client/index.ts +11 -2
- package/src/client/listeners.ts +20 -0
- package/src/client/logins.ts +105 -0
- package/src/client/rpc.ts +155 -0
- package/src/client/streams.ts +488 -0
- package/src/client/transports.ts +62 -8
- package/src/client/turns.ts +171 -0
- package/src/core/agents/acp/acp-agent.ts +94 -118
- package/src/core/agents/acp/adapter.ts +20 -9
- package/src/core/agents/acp/client.ts +125 -47
- package/src/core/agents/acp/known-agents.ts +36 -4
- package/src/core/agents/acp/mappings.ts +64 -18
- package/src/core/agents/acp/requests.ts +125 -0
- package/src/core/agents/attachments.ts +18 -0
- package/src/core/agents/base.ts +120 -42
- package/src/core/agents/claude-code/adapter.ts +177 -238
- package/src/core/agents/claude-code/approvals.ts +270 -0
- package/src/core/agents/claude-code/claude-agent.ts +175 -158
- package/src/core/agents/claude-code/credentials.ts +171 -0
- package/src/core/agents/claude-code/events.ts +55 -0
- package/src/core/agents/claude-code/login.ts +269 -0
- package/src/core/agents/claude-code/mcp.ts +206 -0
- package/src/core/agents/claude-code/models.ts +15 -9
- package/src/core/agents/claude-code/options.ts +326 -39
- package/src/core/agents/claude-code/outcome.ts +209 -0
- package/src/core/agents/claude-code/session-pool.ts +136 -0
- package/src/core/agents/claude-code/session.ts +513 -0
- package/src/core/agents/claude-code/spawn.ts +144 -0
- package/src/core/agents/claude-code/spend.ts +160 -0
- package/src/core/agents/claude-code/tools.ts +47 -0
- package/src/core/agents/claude-code/turn-usage.ts +135 -0
- package/src/core/agents/claude-code/turn.ts +232 -0
- package/src/core/agents/codex-app-server/adapter.ts +314 -117
- package/src/core/agents/codex-app-server/client.ts +186 -84
- package/src/core/agents/codex-app-server/codex-agent.ts +343 -0
- package/src/core/agents/codex-app-server/commands.ts +228 -0
- package/src/core/agents/codex-app-server/credentials.ts +126 -0
- package/src/core/agents/codex-app-server/effort.ts +29 -0
- package/src/core/agents/codex-app-server/events.ts +47 -0
- package/src/core/agents/codex-app-server/homes.ts +64 -0
- package/src/core/agents/codex-app-server/input.ts +60 -0
- package/src/core/agents/codex-app-server/items.ts +149 -0
- package/src/core/agents/codex-app-server/login.ts +180 -0
- package/src/core/agents/codex-app-server/mcp.ts +182 -37
- package/src/core/agents/codex-app-server/models.ts +99 -46
- package/src/core/agents/codex-app-server/options.ts +146 -0
- package/src/core/agents/codex-app-server/plan-approval.ts +135 -0
- package/src/core/agents/codex-app-server/protocol.ts +117 -0
- package/src/core/agents/codex-app-server/requests.ts +332 -0
- package/src/core/agents/codex-app-server/session.ts +285 -0
- package/src/core/agents/codex-app-server/subagents.ts +108 -42
- package/src/core/agents/codex-app-server/thread-settings.ts +279 -0
- package/src/core/agents/codex-app-server/turn-items.ts +88 -0
- package/src/core/agents/codex-app-server/turn.ts +463 -0
- package/src/core/agents/config-fingerprint.ts +7 -14
- package/src/core/agents/credentials.ts +98 -0
- package/src/core/agents/elicitation.ts +75 -0
- package/src/core/agents/inherit-config.ts +21 -0
- package/src/core/agents/login.ts +116 -0
- package/src/core/agents/mcp-config.ts +112 -8
- package/src/core/agents/plan.ts +25 -0
- package/src/core/agents/registry.ts +21 -4
- package/src/core/agents/session-agent.ts +96 -4
- package/src/core/agents/{session-store.ts → session-pool.ts} +11 -5
- package/src/core/agents/stderr-tail.ts +75 -0
- package/src/core/agents/types.ts +40 -5
- package/src/core/index.ts +58 -48
- package/src/core/presets.ts +100 -39
- package/src/core/processes/identity.ts +113 -0
- package/src/core/processes/lifeline.ts +170 -0
- package/src/core/processes/native-processes.ts +379 -0
- package/src/core/processes/process-table.ts +174 -0
- package/src/core/provision/cache-trust.ts +121 -0
- package/src/core/provision/cache-usage.ts +69 -0
- package/src/core/provision/checksums.ts +64 -0
- package/src/core/provision/extract.ts +11 -2
- package/src/core/provision/index.ts +4 -1
- package/src/core/provision/install-build.ts +136 -0
- package/src/core/provision/npm.ts +112 -17
- package/src/core/provision/pins.ts +9 -33
- package/src/core/provision/platform.ts +12 -1
- package/src/core/provision/provisioner.ts +329 -397
- package/src/core/provision/releases.ts +86 -0
- package/src/core/provision/tools.ts +329 -0
- package/src/core/proxy/anthropic-proxy.ts +55 -25
- package/src/core/proxy/api-key-store.ts +2 -12
- package/src/core/proxy/loopback.ts +106 -0
- package/src/core/runtime/agent-runtime.ts +327 -498
- package/src/core/runtime/event-processor.ts +197 -70
- package/src/core/runtime/harness-clis.ts +61 -0
- package/src/core/runtime/harness-logins.ts +328 -0
- package/src/core/runtime/login-reads.ts +78 -0
- package/src/core/runtime/model-lists.ts +33 -48
- package/src/core/runtime/permission-policy.ts +113 -0
- package/src/core/runtime/request-broker.ts +204 -0
- package/src/core/runtime/steering.ts +112 -0
- package/src/core/runtime/turn-outcome.ts +30 -0
- package/src/core/runtime/turn.ts +360 -0
- package/src/core/utils/bounded.ts +12 -0
- package/src/core/utils/deadline.ts +38 -0
- package/src/core/utils/errors.ts +113 -21
- package/src/core/utils/is-record.ts +4 -0
- package/src/core/utils/loopback.ts +10 -0
- package/src/protocol/account.ts +104 -0
- package/src/protocol/auth.ts +199 -0
- package/src/protocol/canonical.ts +16 -0
- package/src/protocol/clis.ts +69 -0
- package/src/protocol/config.ts +60 -6
- package/src/protocol/conversation.ts +272 -0
- package/src/protocol/credentials.ts +145 -0
- package/src/protocol/errors.ts +78 -20
- package/src/protocol/execution.ts +5 -2
- package/src/protocol/factories.ts +55 -7
- package/src/protocol/guards.ts +55 -2
- package/src/protocol/harness.ts +56 -6
- package/src/protocol/history.ts +72 -64
- package/src/protocol/ids.ts +0 -12
- package/src/protocol/index.ts +9 -0
- package/src/protocol/lifecycle.ts +250 -79
- package/src/protocol/meta-keys.ts +17 -0
- package/src/protocol/meta.ts +3 -3
- package/src/protocol/models.ts +2 -43
- package/src/protocol/part-input.ts +2 -1
- package/src/protocol/parts.ts +12 -3
- package/src/protocol/reduce.ts +302 -413
- package/src/protocol/selectors.ts +1 -20
- package/src/protocol/seq-cursor.ts +14 -0
- package/src/protocol/stop-reasons.ts +1 -1
- package/src/protocol/thinking.ts +1 -30
- package/src/protocol/time.ts +2 -2
- package/src/protocol/tool-closure.ts +93 -0
- package/src/protocol/tool-state.ts +19 -4
- package/src/protocol/verify.ts +222 -92
- package/src/protocol/vocabulary.ts +21 -5
- package/src/protocol/wire-api.ts +232 -0
- package/src/protocol/wire.ts +351 -64
- package/src/server/acp/binding.ts +63 -103
- package/src/server/acp/session-records.ts +53 -0
- package/src/server/acp/translate.ts +129 -20
- package/src/server/agent-server.ts +223 -387
- package/src/server/bin.ts +280 -78
- package/src/server/feedback.ts +204 -14
- package/src/server/history.ts +116 -122
- package/src/server/index.ts +3 -8
- package/src/server/install.ts +107 -8
- package/src/server/open-parts.ts +95 -0
- package/src/server/routes.ts +391 -0
- package/src/server/secrets.ts +24 -0
- package/src/server/session-gate.ts +69 -0
- package/src/server/session-log.ts +14 -2
- package/src/server/session-store.ts +136 -72
- package/src/server/subscriptions.ts +232 -0
- package/src/server/transports.ts +125 -25
- package/src/server/wire-error.ts +31 -45
- package/src/sync/event-log.ts +31 -3
- package/src/sync/fit.ts +27 -11
- package/src/sync/history-reader.ts +10 -5
- package/src/sync/history-sqlite.ts +37 -42
- package/src/sync/history.ts +9 -15
- package/src/sync/index.ts +17 -5
- package/src/sync/journal-sqlite.ts +162 -76
- package/src/sync/journal.ts +91 -32
- package/src/sync/live-tails.ts +107 -0
- package/src/sync/projection.ts +35 -0
- package/src/sync/recovery.ts +80 -51
- package/src/sync/schema.ts +27 -6
- package/docs/rfds/0001-deterministic-echo-ids.md +0 -44
- package/docs/rfds/0002-native-subagents.md +0 -197
- package/src/client/request.ts +0 -19
- package/src/core/agents/claude-code/generator-session.ts +0 -572
- package/src/core/agents/claude-code/session-manager.ts +0 -166
- package/src/core/agents/codex-app-server/codex-app-server-agent.ts +0 -962
- package/src/core/agents/codex-items.ts +0 -149
- package/src/core/agents/codex-sdk/adapter.ts +0 -237
- package/src/core/agents/codex-sdk/codex-sdk-agent.ts +0 -330
- package/src/core/agents/tool-meta.ts +0 -68
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"lifecycle.d.ts","sourceRoot":"","sources":["../../../src/protocol/lifecycle.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,CAAC,EAAE,MAAM,KA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,cAAc,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,oBAAoB,CAAC,CAAC;AAGlE;;;;GAIG;AACH,MAAM,WAAW,YAAY;IAC5B,IAAI,EAAE,MAAM,GAAG,EAAE,CAAC;IAClB,SAAS,CAAC,EAAE,MAAM,CAAC;IACnB,GAAG,EAAE,MAAM,CAAC,MAAM,EAAE,OAAO,CAAC,CAAC;CAC7B;AACD,yFAAyF;AACzF,eAAO,MAAM,kBAAkB,EAId,CAAC,CAAC,OAAO,CAAC,YAAY,CAAC,CAAC;AAEzC;;;GAGG;AACH,MAAM,WAAW,uBAAwB,SAAQ,IAAI,CAAC,gBAAgB,EAAE,MAAM,CAAC;IAC9E,IAAI,EAAE,IAAI,GAAG,WAAW,CAAC;CACzB;AAED;;;;;GAKG;AACH,MAAM,MAAM,qBAAqB,GAC9B,OAAO,CAAC,cAAc,EAAE,gBAAgB,CAAC,GACzC,uBAAuB,CAAC;AAK3B;;;;;;;;GAQG;AACH,wBAAgB,oBAAoB,CAAC,KAAK,EAAE,OAAO,GAAG,qBAAqB,GAAG,YAAY,CAiBzF"}
|
|
@@ -0,0 +1,17 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* The `_meta` keys the engine itself writes, all under `agent-server/`
|
|
3
|
+
* (camelCase after the slash, like every wire field).
|
|
4
|
+
*/
|
|
5
|
+
export declare const META_KEYS: {
|
|
6
|
+
/**
|
|
7
|
+
* The partial JSON a pending tool call was still streaming when its turn
|
|
8
|
+
* closed it: its closed state carries a parsed `input` the call never had,
|
|
9
|
+
* and without this a UI would render an empty tool card.
|
|
10
|
+
*/
|
|
11
|
+
readonly partialInput: "agent-server/partialInput";
|
|
12
|
+
/** The text element spans (mentions, pills) of a user message's text, echoed from its input. */
|
|
13
|
+
readonly elements: "agent-server/elements";
|
|
14
|
+
/** Over ACP: the failure of a turn that ended, which ACP's stop reasons cannot carry. */
|
|
15
|
+
readonly error: "agent-server/error";
|
|
16
|
+
};
|
|
17
|
+
//# sourceMappingURL=meta-keys.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"meta-keys.d.ts","sourceRoot":"","sources":["../../../src/protocol/meta-keys.ts"],"names":[],"mappings":"AACA;;;GAGG;AACH,eAAO,MAAM,SAAS;IACrB;;;;OAIG;;IAEH,gGAAgG;;IAEhG,yFAAyF;;CAEhF,CAAC"}
|
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
import { z } from "zod";
|
|
2
|
+
/**
|
|
3
|
+
* The extension slot (ACP's pattern): present on every event, part,
|
|
4
|
+
* tool state, and result-content item. Adapters and products MUST NOT add
|
|
5
|
+
* root-level fields to canonical types — all root names are reserved for
|
|
6
|
+
* future protocol versions; extensions live here under namespaced keys
|
|
7
|
+
* (`product/...`).
|
|
8
|
+
*
|
|
9
|
+
* Reserved keys (W3C trace context, MCP-compatible): `traceparent`,
|
|
10
|
+
* `tracestate`, `baggage`.
|
|
11
|
+
*/
|
|
12
|
+
export declare const MetaSchema: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
|
|
13
|
+
//# sourceMappingURL=meta.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"meta.d.ts","sourceRoot":"","sources":["../../../src/protocol/meta.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAC;AAGxB;;;;;;;;;GASG;AACH,eAAO,MAAM,UAAU,uDAA+C,CAAC"}
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
import type { ModelDescriptor } from "./models.ts";
|
|
2
|
+
/** What the pinned CLIs listed for the maintainer's login when this release was built. */
|
|
3
|
+
export declare const GENERATED_MODEL_CATALOG: {
|
|
4
|
+
/** The CLI versions that listed these models. */
|
|
5
|
+
readonly cli: {
|
|
6
|
+
readonly claude: string;
|
|
7
|
+
readonly codex: string;
|
|
8
|
+
};
|
|
9
|
+
readonly models: readonly ModelDescriptor[];
|
|
10
|
+
};
|
|
11
|
+
//# sourceMappingURL=model-catalog.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"model-catalog.d.ts","sourceRoot":"","sources":["../../../src/protocol/model-catalog.ts"],"names":[],"mappings":"AAEA,OAAO,KAAK,EAAE,eAAe,EAAE,MAAM,aAAa,CAAC;AAEnD,0FAA0F;AAC1F,eAAO,MAAM,uBAAuB,EAAE;IACrC,iDAAiD;IACjD,QAAQ,CAAC,GAAG,EAAE;QAAE,QAAQ,CAAC,MAAM,EAAE,MAAM,CAAC;QAAC,QAAQ,CAAC,KAAK,EAAE,MAAM,CAAA;KAAE,CAAC;IAClE,QAAQ,CAAC,MAAM,EAAE,SAAS,eAAe,EAAE,CAAC;CAmN5C,CAAC"}
|
|
@@ -0,0 +1,107 @@
|
|
|
1
|
+
import { z } from "zod";
|
|
2
|
+
import { type AgentHarness } from "./harness.ts";
|
|
3
|
+
import { type ThinkingLevel } from "./thinking.ts";
|
|
4
|
+
/**
|
|
5
|
+
* One model a harness can run, in the same shape for every harness. Claude
|
|
6
|
+
* fills it from `supportedModels()`, Codex from `model/list`. Pass `id` as
|
|
7
|
+
* `config.model`.
|
|
8
|
+
*/
|
|
9
|
+
export declare const ModelDescriptorSchema: z.ZodObject<{
|
|
10
|
+
id: z.ZodString;
|
|
11
|
+
harness: z.ZodEnum<{
|
|
12
|
+
"claude-code": "claude-code";
|
|
13
|
+
"codex-app-server": "codex-app-server";
|
|
14
|
+
acp: "acp";
|
|
15
|
+
}>;
|
|
16
|
+
label: z.ZodString;
|
|
17
|
+
description: z.ZodOptional<z.ZodString>;
|
|
18
|
+
resolvedId: z.ZodOptional<z.ZodString>;
|
|
19
|
+
isDefault: z.ZodOptional<z.ZodBoolean>;
|
|
20
|
+
thinking: z.ZodObject<{
|
|
21
|
+
levels: z.ZodArray<z.ZodEnum<{
|
|
22
|
+
off: "off";
|
|
23
|
+
low: "low";
|
|
24
|
+
medium: "medium";
|
|
25
|
+
high: "high";
|
|
26
|
+
xhigh: "xhigh";
|
|
27
|
+
max: "max";
|
|
28
|
+
ultra: "ultra";
|
|
29
|
+
}>>;
|
|
30
|
+
default: z.ZodOptional<z.ZodEnum<{
|
|
31
|
+
off: "off";
|
|
32
|
+
low: "low";
|
|
33
|
+
medium: "medium";
|
|
34
|
+
high: "high";
|
|
35
|
+
xhigh: "xhigh";
|
|
36
|
+
max: "max";
|
|
37
|
+
ultra: "ultra";
|
|
38
|
+
}>>;
|
|
39
|
+
}, z.core.$strip>;
|
|
40
|
+
images: z.ZodOptional<z.ZodBoolean>;
|
|
41
|
+
_meta: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
|
|
42
|
+
}, z.core.$strip>;
|
|
43
|
+
export type ModelDescriptor = z.infer<typeof ModelDescriptorSchema>;
|
|
44
|
+
/** The models a harness offers, as `models/list` and `AgentRuntime.models()` return them. */
|
|
45
|
+
export declare const ModelListSchema: z.ZodObject<{
|
|
46
|
+
harness: z.ZodEnum<{
|
|
47
|
+
"claude-code": "claude-code";
|
|
48
|
+
"codex-app-server": "codex-app-server";
|
|
49
|
+
acp: "acp";
|
|
50
|
+
}>;
|
|
51
|
+
models: z.ZodArray<z.ZodObject<{
|
|
52
|
+
id: z.ZodString;
|
|
53
|
+
harness: z.ZodEnum<{
|
|
54
|
+
"claude-code": "claude-code";
|
|
55
|
+
"codex-app-server": "codex-app-server";
|
|
56
|
+
acp: "acp";
|
|
57
|
+
}>;
|
|
58
|
+
label: z.ZodString;
|
|
59
|
+
description: z.ZodOptional<z.ZodString>;
|
|
60
|
+
resolvedId: z.ZodOptional<z.ZodString>;
|
|
61
|
+
isDefault: z.ZodOptional<z.ZodBoolean>;
|
|
62
|
+
thinking: z.ZodObject<{
|
|
63
|
+
levels: z.ZodArray<z.ZodEnum<{
|
|
64
|
+
off: "off";
|
|
65
|
+
low: "low";
|
|
66
|
+
medium: "medium";
|
|
67
|
+
high: "high";
|
|
68
|
+
xhigh: "xhigh";
|
|
69
|
+
max: "max";
|
|
70
|
+
ultra: "ultra";
|
|
71
|
+
}>>;
|
|
72
|
+
default: z.ZodOptional<z.ZodEnum<{
|
|
73
|
+
off: "off";
|
|
74
|
+
low: "low";
|
|
75
|
+
medium: "medium";
|
|
76
|
+
high: "high";
|
|
77
|
+
xhigh: "xhigh";
|
|
78
|
+
max: "max";
|
|
79
|
+
ultra: "ultra";
|
|
80
|
+
}>>;
|
|
81
|
+
}, z.core.$strip>;
|
|
82
|
+
images: z.ZodOptional<z.ZodBoolean>;
|
|
83
|
+
_meta: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
|
|
84
|
+
}, z.core.$strip>>;
|
|
85
|
+
source: z.ZodEnum<{
|
|
86
|
+
live: "live";
|
|
87
|
+
catalog: "catalog";
|
|
88
|
+
}>;
|
|
89
|
+
error: z.ZodOptional<z.ZodString>;
|
|
90
|
+
fetchedAt: z.ZodNumber;
|
|
91
|
+
}, z.core.$strip>;
|
|
92
|
+
export type ModelList = z.infer<typeof ModelListSchema>;
|
|
93
|
+
/**
|
|
94
|
+
* Parse a model list from a server that may be newer than this build: a
|
|
95
|
+
* thinking level this build does not know is dropped from `levels` (and from
|
|
96
|
+
* `default`) instead of failing the whole list.
|
|
97
|
+
*/
|
|
98
|
+
export declare function decodeModelList(value: unknown): ModelList;
|
|
99
|
+
/**
|
|
100
|
+
* The models each harness's pinned CLI listed when this release was built
|
|
101
|
+
* (`bun run models:refresh`), for a picker without a live list. The live list
|
|
102
|
+
* is the account's own: prefer `AgentRuntime.models()` / `client.listModels()`.
|
|
103
|
+
*/
|
|
104
|
+
export declare const CATALOG_MODELS: readonly ModelDescriptor[];
|
|
105
|
+
/** The catalog's thinking levels for a model; `undefined` when it isn't listed. */
|
|
106
|
+
export declare function modelThinkingLevels(harness: AgentHarness, model: string): readonly ThinkingLevel[] | undefined;
|
|
107
|
+
//# sourceMappingURL=models.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"models.d.ts","sourceRoot":"","sources":["../../../src/protocol/models.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAC;AACxB,OAAO,EAAE,KAAK,YAAY,EAAsB,MAAM,cAAc,CAAC;AAGrE,OAAO,EAAE,KAAK,aAAa,EAAwC,MAAM,eAAe,CAAC;AAGzF;;;;GAIG;AACH,eAAO,MAAM,qBAAqB;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;iBAkBhC,CAAC;AACH,MAAM,MAAM,eAAe,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,qBAAqB,CAAC,CAAC;AAEpE,6FAA6F;AAC7F,eAAO,MAAM,eAAe;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;iBAiB1B,CAAC;AACH,MAAM,MAAM,SAAS,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,eAAe,CAAC,CAAC;AAExD;;;;GAIG;AACH,wBAAgB,eAAe,CAAC,KAAK,EAAE,OAAO,GAAG,SAAS,CAiBzD;AAED;;;;GAIG;AACH,eAAO,MAAM,cAAc,EAAE,SAAS,eAAe,EAAmC,CAAC;AAEzF,mFAAmF;AACnF,wBAAgB,mBAAmB,CAClC,OAAO,EAAE,YAAY,EACrB,KAAK,EAAE,MAAM,GACX,SAAS,aAAa,EAAE,GAAG,SAAS,CAEtC"}
|
|
@@ -0,0 +1,101 @@
|
|
|
1
|
+
import { z } from "zod";
|
|
2
|
+
/**
|
|
3
|
+
* A UI-authored span over the text (mentions, pills, inline references) that
|
|
4
|
+
* survives the round trip through the model, the user echo, and persistence.
|
|
5
|
+
* The model sees plain text; `byteRange` is [start, end) over the UTF-8 bytes
|
|
6
|
+
* of the parent `text`.
|
|
7
|
+
*/
|
|
8
|
+
export declare const TextElementSchema: z.ZodObject<{
|
|
9
|
+
byteRange: z.ZodTuple<[z.ZodNumber, z.ZodNumber], null>;
|
|
10
|
+
placeholder: z.ZodOptional<z.ZodString>;
|
|
11
|
+
}, z.core.$strip>;
|
|
12
|
+
export type TextElement = z.infer<typeof TextElementSchema>;
|
|
13
|
+
/** Inbound user content for a turn: plain text, or multimodal blocks. */
|
|
14
|
+
export declare const TextPartInputSchema: z.ZodObject<{
|
|
15
|
+
type: z.ZodLiteral<"text">;
|
|
16
|
+
id: z.ZodOptional<z.ZodString>;
|
|
17
|
+
text: z.ZodString;
|
|
18
|
+
elements: z.ZodOptional<z.ZodArray<z.ZodObject<{
|
|
19
|
+
byteRange: z.ZodTuple<[z.ZodNumber, z.ZodNumber], null>;
|
|
20
|
+
placeholder: z.ZodOptional<z.ZodString>;
|
|
21
|
+
}, z.core.$strip>>>;
|
|
22
|
+
}, z.core.$strip>;
|
|
23
|
+
export type TextPartInput = z.infer<typeof TextPartInputSchema>;
|
|
24
|
+
export declare const ImagePartInputSchema: z.ZodObject<{
|
|
25
|
+
type: z.ZodLiteral<"image">;
|
|
26
|
+
id: z.ZodOptional<z.ZodString>;
|
|
27
|
+
url: z.ZodOptional<z.ZodString>;
|
|
28
|
+
data: z.ZodOptional<z.ZodString>;
|
|
29
|
+
mimeType: z.ZodString;
|
|
30
|
+
}, z.core.$strip>;
|
|
31
|
+
export type ImagePartInput = z.infer<typeof ImagePartInputSchema>;
|
|
32
|
+
export declare const FilePartInputSchema: z.ZodObject<{
|
|
33
|
+
type: z.ZodLiteral<"file">;
|
|
34
|
+
id: z.ZodOptional<z.ZodString>;
|
|
35
|
+
url: z.ZodOptional<z.ZodString>;
|
|
36
|
+
data: z.ZodOptional<z.ZodString>;
|
|
37
|
+
mimeType: z.ZodString;
|
|
38
|
+
filename: z.ZodOptional<z.ZodString>;
|
|
39
|
+
}, z.core.$strip>;
|
|
40
|
+
export type FilePartInput = z.infer<typeof FilePartInputSchema>;
|
|
41
|
+
export declare const PartInputSchema: z.ZodDiscriminatedUnion<[z.ZodObject<{
|
|
42
|
+
type: z.ZodLiteral<"text">;
|
|
43
|
+
id: z.ZodOptional<z.ZodString>;
|
|
44
|
+
text: z.ZodString;
|
|
45
|
+
elements: z.ZodOptional<z.ZodArray<z.ZodObject<{
|
|
46
|
+
byteRange: z.ZodTuple<[z.ZodNumber, z.ZodNumber], null>;
|
|
47
|
+
placeholder: z.ZodOptional<z.ZodString>;
|
|
48
|
+
}, z.core.$strip>>>;
|
|
49
|
+
}, z.core.$strip>, z.ZodObject<{
|
|
50
|
+
type: z.ZodLiteral<"image">;
|
|
51
|
+
id: z.ZodOptional<z.ZodString>;
|
|
52
|
+
url: z.ZodOptional<z.ZodString>;
|
|
53
|
+
data: z.ZodOptional<z.ZodString>;
|
|
54
|
+
mimeType: z.ZodString;
|
|
55
|
+
}, z.core.$strip>, z.ZodObject<{
|
|
56
|
+
type: z.ZodLiteral<"file">;
|
|
57
|
+
id: z.ZodOptional<z.ZodString>;
|
|
58
|
+
url: z.ZodOptional<z.ZodString>;
|
|
59
|
+
data: z.ZodOptional<z.ZodString>;
|
|
60
|
+
mimeType: z.ZodString;
|
|
61
|
+
filename: z.ZodOptional<z.ZodString>;
|
|
62
|
+
}, z.core.$strip>], "type">;
|
|
63
|
+
export type PartInput = z.infer<typeof PartInputSchema>;
|
|
64
|
+
/** A turn's input is either a bare string or a list of typed parts. */
|
|
65
|
+
export declare const AgentInputSchema: z.ZodUnion<readonly [z.ZodString, z.ZodArray<z.ZodDiscriminatedUnion<[z.ZodObject<{
|
|
66
|
+
type: z.ZodLiteral<"text">;
|
|
67
|
+
id: z.ZodOptional<z.ZodString>;
|
|
68
|
+
text: z.ZodString;
|
|
69
|
+
elements: z.ZodOptional<z.ZodArray<z.ZodObject<{
|
|
70
|
+
byteRange: z.ZodTuple<[z.ZodNumber, z.ZodNumber], null>;
|
|
71
|
+
placeholder: z.ZodOptional<z.ZodString>;
|
|
72
|
+
}, z.core.$strip>>>;
|
|
73
|
+
}, z.core.$strip>, z.ZodObject<{
|
|
74
|
+
type: z.ZodLiteral<"image">;
|
|
75
|
+
id: z.ZodOptional<z.ZodString>;
|
|
76
|
+
url: z.ZodOptional<z.ZodString>;
|
|
77
|
+
data: z.ZodOptional<z.ZodString>;
|
|
78
|
+
mimeType: z.ZodString;
|
|
79
|
+
}, z.core.$strip>, z.ZodObject<{
|
|
80
|
+
type: z.ZodLiteral<"file">;
|
|
81
|
+
id: z.ZodOptional<z.ZodString>;
|
|
82
|
+
url: z.ZodOptional<z.ZodString>;
|
|
83
|
+
data: z.ZodOptional<z.ZodString>;
|
|
84
|
+
mimeType: z.ZodString;
|
|
85
|
+
filename: z.ZodOptional<z.ZodString>;
|
|
86
|
+
}, z.core.$strip>], "type">>]>;
|
|
87
|
+
export type AgentInput = z.infer<typeof AgentInputSchema>;
|
|
88
|
+
/**
|
|
89
|
+
* Decode an untrusted value (an HTTP body, a queue message, a DB column) into
|
|
90
|
+
* an `AgentInput`, or throw with a message that names the offending path.
|
|
91
|
+
*
|
|
92
|
+
* The schema is the contract; a hand-rolled decoder in front of it is where
|
|
93
|
+
* tolerance for shapes the engine never accepted creeps in (`content` arrays,
|
|
94
|
+
* bare `{text}` objects) and where the error a product shows its user
|
|
95
|
+
* degrades to "invalid input". (An empty STRING is valid input — deliberately:
|
|
96
|
+
* "continue" semantics belong to the product, not the schema.)
|
|
97
|
+
*/
|
|
98
|
+
export declare function parseAgentInput(value: unknown): AgentInput;
|
|
99
|
+
/** Collapse an AgentInput down to the text the model sees first. */
|
|
100
|
+
export declare function inputToText(input: AgentInput): string;
|
|
101
|
+
//# sourceMappingURL=part-input.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"part-input.d.ts","sourceRoot":"","sources":["../../../src/protocol/part-input.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAC;AAExB;;;;;GAKG;AACH,eAAO,MAAM,iBAAiB;;;iBAW5B,CAAC;AACH,MAAM,MAAM,WAAW,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,iBAAiB,CAAC,CAAC;AAE5D,yEAAyE;AACzE,eAAO,MAAM,mBAAmB;;;;;;;;iBAK9B,CAAC;AACH,MAAM,MAAM,aAAa,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,mBAAmB,CAAC,CAAC;AAEhE,eAAO,MAAM,oBAAoB;;;;;;iBAiB9B,CAAC;AACJ,MAAM,MAAM,cAAc,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,oBAAoB,CAAC,CAAC;AAElE,eAAO,MAAM,mBAAmB;;;;;;;iBAW7B,CAAC;AACJ,MAAM,MAAM,aAAa,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,mBAAmB,CAAC,CAAC;AAEhE,eAAO,MAAM,eAAe;;;;;;;;;;;;;;;;;;;;;2BAI1B,CAAC;AACH,MAAM,MAAM,SAAS,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,eAAe,CAAC,CAAC;AAExD,uEAAuE;AACvE,eAAO,MAAM,gBAAgB;;;;;;;;;;;;;;;;;;;;;8BAAkD,CAAC;AAChF,MAAM,MAAM,UAAU,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,gBAAgB,CAAC,CAAC;AAE1D;;;;;;;;;GASG;AACH,wBAAgB,eAAe,CAAC,KAAK,EAAE,OAAO,GAAG,UAAU,CAY1D;AAED,oEAAoE;AACpE,wBAAgB,WAAW,CAAC,KAAK,EAAE,UAAU,GAAG,MAAM,CAMrD"}
|
|
@@ -0,0 +1,357 @@
|
|
|
1
|
+
import { z } from "zod";
|
|
2
|
+
export declare const TextPartSchema: z.ZodObject<{
|
|
3
|
+
id: z.ZodString;
|
|
4
|
+
sessionId: z.ZodString;
|
|
5
|
+
messageId: z.ZodString;
|
|
6
|
+
parentToolCallId: z.ZodOptional<z.ZodString>;
|
|
7
|
+
_meta: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
|
|
8
|
+
type: z.ZodLiteral<"text">;
|
|
9
|
+
text: z.ZodString;
|
|
10
|
+
state: z.ZodOptional<z.ZodEnum<{
|
|
11
|
+
done: "done";
|
|
12
|
+
streaming: "streaming";
|
|
13
|
+
}>>;
|
|
14
|
+
}, z.core.$strip>;
|
|
15
|
+
export type TextPart = z.infer<typeof TextPartSchema>;
|
|
16
|
+
export declare const ReasoningPartSchema: z.ZodObject<{
|
|
17
|
+
id: z.ZodString;
|
|
18
|
+
sessionId: z.ZodString;
|
|
19
|
+
messageId: z.ZodString;
|
|
20
|
+
parentToolCallId: z.ZodOptional<z.ZodString>;
|
|
21
|
+
_meta: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
|
|
22
|
+
type: z.ZodLiteral<"reasoning">;
|
|
23
|
+
text: z.ZodString;
|
|
24
|
+
state: z.ZodOptional<z.ZodEnum<{
|
|
25
|
+
done: "done";
|
|
26
|
+
streaming: "streaming";
|
|
27
|
+
}>>;
|
|
28
|
+
time: z.ZodOptional<z.ZodObject<{
|
|
29
|
+
start: z.ZodNumber;
|
|
30
|
+
end: z.ZodOptional<z.ZodNumber>;
|
|
31
|
+
}, z.core.$strip>>;
|
|
32
|
+
providerMetadata: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
|
|
33
|
+
}, z.core.$strip>;
|
|
34
|
+
export type ReasoningPart = z.infer<typeof ReasoningPartSchema>;
|
|
35
|
+
/**
|
|
36
|
+
* Metadata about the subagent a `task`-kind tool spawned, populated from the
|
|
37
|
+
* spawning tool's input (Claude `Task`: description/subagent_type/model).
|
|
38
|
+
* `agentId` is the harness-native id — the only reliable way to attribute
|
|
39
|
+
* PARALLEL subagents. Presence of `subagent` implies `kind: "task"`; tool-name
|
|
40
|
+
* allowlists are forbidden.
|
|
41
|
+
*/
|
|
42
|
+
export declare const SubagentMetadataSchema: z.ZodObject<{
|
|
43
|
+
type: z.ZodOptional<z.ZodString>;
|
|
44
|
+
description: z.ZodOptional<z.ZodString>;
|
|
45
|
+
model: z.ZodOptional<z.ZodString>;
|
|
46
|
+
agentId: z.ZodOptional<z.ZodString>;
|
|
47
|
+
}, z.core.$strip>;
|
|
48
|
+
export type SubagentMetadata = z.infer<typeof SubagentMetadataSchema>;
|
|
49
|
+
export declare const ToolPartSchema: z.ZodObject<{
|
|
50
|
+
id: z.ZodString;
|
|
51
|
+
sessionId: z.ZodString;
|
|
52
|
+
messageId: z.ZodString;
|
|
53
|
+
parentToolCallId: z.ZodOptional<z.ZodString>;
|
|
54
|
+
_meta: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
|
|
55
|
+
type: z.ZodLiteral<"tool">;
|
|
56
|
+
toolCallId: z.ZodString;
|
|
57
|
+
toolName: z.ZodString;
|
|
58
|
+
kind: z.ZodOptional<z.ZodType<(string & {}) | "read" | "edit" | "delete" | "move" | "search" | "execute" | "think" | "fetch" | "switch_mode" | "task" | "other", unknown, z.core.$ZodTypeInternals<(string & {}) | "read" | "edit" | "delete" | "move" | "search" | "execute" | "think" | "fetch" | "switch_mode" | "task" | "other", unknown>>>;
|
|
59
|
+
title: z.ZodOptional<z.ZodString>;
|
|
60
|
+
locations: z.ZodOptional<z.ZodArray<z.ZodObject<{
|
|
61
|
+
path: z.ZodString;
|
|
62
|
+
line: z.ZodOptional<z.ZodNumber>;
|
|
63
|
+
}, z.core.$strip>>>;
|
|
64
|
+
subagent: z.ZodOptional<z.ZodObject<{
|
|
65
|
+
type: z.ZodOptional<z.ZodString>;
|
|
66
|
+
description: z.ZodOptional<z.ZodString>;
|
|
67
|
+
model: z.ZodOptional<z.ZodString>;
|
|
68
|
+
agentId: z.ZodOptional<z.ZodString>;
|
|
69
|
+
}, z.core.$strip>>;
|
|
70
|
+
state: z.ZodDiscriminatedUnion<[z.ZodObject<{
|
|
71
|
+
status: z.ZodLiteral<"pending">;
|
|
72
|
+
partialInput: z.ZodString;
|
|
73
|
+
_meta: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
|
|
74
|
+
}, z.core.$strip>, z.ZodObject<{
|
|
75
|
+
status: z.ZodLiteral<"in_progress">;
|
|
76
|
+
input: z.ZodRecord<z.ZodString, z.ZodUnknown>;
|
|
77
|
+
title: z.ZodOptional<z.ZodString>;
|
|
78
|
+
time: z.ZodObject<{
|
|
79
|
+
start: z.ZodNumber;
|
|
80
|
+
}, z.core.$strip>;
|
|
81
|
+
_meta: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
|
|
82
|
+
}, z.core.$strip>, z.ZodObject<{
|
|
83
|
+
status: z.ZodLiteral<"completed">;
|
|
84
|
+
input: z.ZodRecord<z.ZodString, z.ZodUnknown>;
|
|
85
|
+
output: z.ZodString;
|
|
86
|
+
content: z.ZodOptional<z.ZodArray<z.ZodDiscriminatedUnion<[z.ZodObject<{
|
|
87
|
+
type: z.ZodLiteral<"text">;
|
|
88
|
+
text: z.ZodString;
|
|
89
|
+
_meta: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
|
|
90
|
+
}, z.core.$strip>, z.ZodObject<{
|
|
91
|
+
type: z.ZodLiteral<"image">;
|
|
92
|
+
data: z.ZodString;
|
|
93
|
+
mimeType: z.ZodString;
|
|
94
|
+
_meta: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
|
|
95
|
+
}, z.core.$strip>, z.ZodObject<{
|
|
96
|
+
type: z.ZodLiteral<"diff">;
|
|
97
|
+
path: z.ZodString;
|
|
98
|
+
oldText: z.ZodOptional<z.ZodString>;
|
|
99
|
+
newText: z.ZodString;
|
|
100
|
+
_meta: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
|
|
101
|
+
}, z.core.$strip>, z.ZodObject<{
|
|
102
|
+
type: z.ZodLiteral<"terminal">;
|
|
103
|
+
terminalId: z.ZodString;
|
|
104
|
+
_meta: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
|
|
105
|
+
}, z.core.$strip>], "type">>>;
|
|
106
|
+
metadata: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
|
|
107
|
+
title: z.ZodOptional<z.ZodString>;
|
|
108
|
+
time: z.ZodObject<{
|
|
109
|
+
start: z.ZodNumber;
|
|
110
|
+
end: z.ZodNumber;
|
|
111
|
+
}, z.core.$strip>;
|
|
112
|
+
_meta: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
|
|
113
|
+
}, z.core.$strip>, z.ZodObject<{
|
|
114
|
+
status: z.ZodLiteral<"failed">;
|
|
115
|
+
input: z.ZodRecord<z.ZodString, z.ZodUnknown>;
|
|
116
|
+
error: z.ZodString;
|
|
117
|
+
closure: z.ZodOptional<z.ZodType<(string & {}) | "interrupted" | "never_ran" | "outcome_unknown", unknown, z.core.$ZodTypeInternals<(string & {}) | "interrupted" | "never_ran" | "outcome_unknown", unknown>>>;
|
|
118
|
+
time: z.ZodObject<{
|
|
119
|
+
start: z.ZodNumber;
|
|
120
|
+
end: z.ZodNumber;
|
|
121
|
+
}, z.core.$strip>;
|
|
122
|
+
_meta: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
|
|
123
|
+
}, z.core.$strip>, z.ZodObject<{
|
|
124
|
+
status: z.ZodLiteral<"cancelled">;
|
|
125
|
+
input: z.ZodRecord<z.ZodString, z.ZodUnknown>;
|
|
126
|
+
time: z.ZodObject<{
|
|
127
|
+
start: z.ZodNumber;
|
|
128
|
+
end: z.ZodNumber;
|
|
129
|
+
}, z.core.$strip>;
|
|
130
|
+
_meta: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
|
|
131
|
+
}, z.core.$strip>], "status">;
|
|
132
|
+
}, z.core.$strip>;
|
|
133
|
+
export type ToolPart = z.infer<typeof ToolPartSchema>;
|
|
134
|
+
/** Native worker activity, including harnesses without a public spawning tool call. */
|
|
135
|
+
export declare const SubagentPartSchema: z.ZodObject<{
|
|
136
|
+
id: z.ZodString;
|
|
137
|
+
sessionId: z.ZodString;
|
|
138
|
+
messageId: z.ZodString;
|
|
139
|
+
parentToolCallId: z.ZodOptional<z.ZodString>;
|
|
140
|
+
_meta: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
|
|
141
|
+
type: z.ZodLiteral<"subagent">;
|
|
142
|
+
nativeActivityId: z.ZodString;
|
|
143
|
+
nativeThreadId: z.ZodString;
|
|
144
|
+
path: z.ZodOptional<z.ZodString>;
|
|
145
|
+
activity: z.ZodEnum<{
|
|
146
|
+
interrupted: "interrupted";
|
|
147
|
+
completed: "completed";
|
|
148
|
+
started: "started";
|
|
149
|
+
interacted: "interacted";
|
|
150
|
+
}>;
|
|
151
|
+
}, z.core.$strip>;
|
|
152
|
+
export type SubagentPart = z.infer<typeof SubagentPartSchema>;
|
|
153
|
+
/** Exactly one of `data` (base64) | `url`. Emitted by the user echo and image tool results. */
|
|
154
|
+
export declare const ImagePartSchema: z.ZodObject<{
|
|
155
|
+
id: z.ZodString;
|
|
156
|
+
sessionId: z.ZodString;
|
|
157
|
+
messageId: z.ZodString;
|
|
158
|
+
parentToolCallId: z.ZodOptional<z.ZodString>;
|
|
159
|
+
_meta: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
|
|
160
|
+
type: z.ZodLiteral<"image">;
|
|
161
|
+
data: z.ZodOptional<z.ZodString>;
|
|
162
|
+
url: z.ZodOptional<z.ZodString>;
|
|
163
|
+
mimeType: z.ZodString;
|
|
164
|
+
}, z.core.$strip>;
|
|
165
|
+
export type ImagePart = z.infer<typeof ImagePartSchema>;
|
|
166
|
+
/** Exactly one of `data` (base64) | `url`. Emitted by the user echo. */
|
|
167
|
+
export declare const FilePartSchema: z.ZodObject<{
|
|
168
|
+
id: z.ZodString;
|
|
169
|
+
sessionId: z.ZodString;
|
|
170
|
+
messageId: z.ZodString;
|
|
171
|
+
parentToolCallId: z.ZodOptional<z.ZodString>;
|
|
172
|
+
_meta: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
|
|
173
|
+
type: z.ZodLiteral<"file">;
|
|
174
|
+
data: z.ZodOptional<z.ZodString>;
|
|
175
|
+
url: z.ZodOptional<z.ZodString>;
|
|
176
|
+
mimeType: z.ZodString;
|
|
177
|
+
filename: z.ZodOptional<z.ZodString>;
|
|
178
|
+
}, z.core.$strip>;
|
|
179
|
+
export type FilePart = z.infer<typeof FilePartSchema>;
|
|
180
|
+
export declare const PartSchema: z.ZodDiscriminatedUnion<[z.ZodObject<{
|
|
181
|
+
id: z.ZodString;
|
|
182
|
+
sessionId: z.ZodString;
|
|
183
|
+
messageId: z.ZodString;
|
|
184
|
+
parentToolCallId: z.ZodOptional<z.ZodString>;
|
|
185
|
+
_meta: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
|
|
186
|
+
type: z.ZodLiteral<"text">;
|
|
187
|
+
text: z.ZodString;
|
|
188
|
+
state: z.ZodOptional<z.ZodEnum<{
|
|
189
|
+
done: "done";
|
|
190
|
+
streaming: "streaming";
|
|
191
|
+
}>>;
|
|
192
|
+
}, z.core.$strip>, z.ZodObject<{
|
|
193
|
+
id: z.ZodString;
|
|
194
|
+
sessionId: z.ZodString;
|
|
195
|
+
messageId: z.ZodString;
|
|
196
|
+
parentToolCallId: z.ZodOptional<z.ZodString>;
|
|
197
|
+
_meta: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
|
|
198
|
+
type: z.ZodLiteral<"reasoning">;
|
|
199
|
+
text: z.ZodString;
|
|
200
|
+
state: z.ZodOptional<z.ZodEnum<{
|
|
201
|
+
done: "done";
|
|
202
|
+
streaming: "streaming";
|
|
203
|
+
}>>;
|
|
204
|
+
time: z.ZodOptional<z.ZodObject<{
|
|
205
|
+
start: z.ZodNumber;
|
|
206
|
+
end: z.ZodOptional<z.ZodNumber>;
|
|
207
|
+
}, z.core.$strip>>;
|
|
208
|
+
providerMetadata: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
|
|
209
|
+
}, z.core.$strip>, z.ZodObject<{
|
|
210
|
+
id: z.ZodString;
|
|
211
|
+
sessionId: z.ZodString;
|
|
212
|
+
messageId: z.ZodString;
|
|
213
|
+
parentToolCallId: z.ZodOptional<z.ZodString>;
|
|
214
|
+
_meta: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
|
|
215
|
+
type: z.ZodLiteral<"tool">;
|
|
216
|
+
toolCallId: z.ZodString;
|
|
217
|
+
toolName: z.ZodString;
|
|
218
|
+
kind: z.ZodOptional<z.ZodType<(string & {}) | "read" | "edit" | "delete" | "move" | "search" | "execute" | "think" | "fetch" | "switch_mode" | "task" | "other", unknown, z.core.$ZodTypeInternals<(string & {}) | "read" | "edit" | "delete" | "move" | "search" | "execute" | "think" | "fetch" | "switch_mode" | "task" | "other", unknown>>>;
|
|
219
|
+
title: z.ZodOptional<z.ZodString>;
|
|
220
|
+
locations: z.ZodOptional<z.ZodArray<z.ZodObject<{
|
|
221
|
+
path: z.ZodString;
|
|
222
|
+
line: z.ZodOptional<z.ZodNumber>;
|
|
223
|
+
}, z.core.$strip>>>;
|
|
224
|
+
subagent: z.ZodOptional<z.ZodObject<{
|
|
225
|
+
type: z.ZodOptional<z.ZodString>;
|
|
226
|
+
description: z.ZodOptional<z.ZodString>;
|
|
227
|
+
model: z.ZodOptional<z.ZodString>;
|
|
228
|
+
agentId: z.ZodOptional<z.ZodString>;
|
|
229
|
+
}, z.core.$strip>>;
|
|
230
|
+
state: z.ZodDiscriminatedUnion<[z.ZodObject<{
|
|
231
|
+
status: z.ZodLiteral<"pending">;
|
|
232
|
+
partialInput: z.ZodString;
|
|
233
|
+
_meta: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
|
|
234
|
+
}, z.core.$strip>, z.ZodObject<{
|
|
235
|
+
status: z.ZodLiteral<"in_progress">;
|
|
236
|
+
input: z.ZodRecord<z.ZodString, z.ZodUnknown>;
|
|
237
|
+
title: z.ZodOptional<z.ZodString>;
|
|
238
|
+
time: z.ZodObject<{
|
|
239
|
+
start: z.ZodNumber;
|
|
240
|
+
}, z.core.$strip>;
|
|
241
|
+
_meta: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
|
|
242
|
+
}, z.core.$strip>, z.ZodObject<{
|
|
243
|
+
status: z.ZodLiteral<"completed">;
|
|
244
|
+
input: z.ZodRecord<z.ZodString, z.ZodUnknown>;
|
|
245
|
+
output: z.ZodString;
|
|
246
|
+
content: z.ZodOptional<z.ZodArray<z.ZodDiscriminatedUnion<[z.ZodObject<{
|
|
247
|
+
type: z.ZodLiteral<"text">;
|
|
248
|
+
text: z.ZodString;
|
|
249
|
+
_meta: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
|
|
250
|
+
}, z.core.$strip>, z.ZodObject<{
|
|
251
|
+
type: z.ZodLiteral<"image">;
|
|
252
|
+
data: z.ZodString;
|
|
253
|
+
mimeType: z.ZodString;
|
|
254
|
+
_meta: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
|
|
255
|
+
}, z.core.$strip>, z.ZodObject<{
|
|
256
|
+
type: z.ZodLiteral<"diff">;
|
|
257
|
+
path: z.ZodString;
|
|
258
|
+
oldText: z.ZodOptional<z.ZodString>;
|
|
259
|
+
newText: z.ZodString;
|
|
260
|
+
_meta: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
|
|
261
|
+
}, z.core.$strip>, z.ZodObject<{
|
|
262
|
+
type: z.ZodLiteral<"terminal">;
|
|
263
|
+
terminalId: z.ZodString;
|
|
264
|
+
_meta: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
|
|
265
|
+
}, z.core.$strip>], "type">>>;
|
|
266
|
+
metadata: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
|
|
267
|
+
title: z.ZodOptional<z.ZodString>;
|
|
268
|
+
time: z.ZodObject<{
|
|
269
|
+
start: z.ZodNumber;
|
|
270
|
+
end: z.ZodNumber;
|
|
271
|
+
}, z.core.$strip>;
|
|
272
|
+
_meta: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
|
|
273
|
+
}, z.core.$strip>, z.ZodObject<{
|
|
274
|
+
status: z.ZodLiteral<"failed">;
|
|
275
|
+
input: z.ZodRecord<z.ZodString, z.ZodUnknown>;
|
|
276
|
+
error: z.ZodString;
|
|
277
|
+
closure: z.ZodOptional<z.ZodType<(string & {}) | "interrupted" | "never_ran" | "outcome_unknown", unknown, z.core.$ZodTypeInternals<(string & {}) | "interrupted" | "never_ran" | "outcome_unknown", unknown>>>;
|
|
278
|
+
time: z.ZodObject<{
|
|
279
|
+
start: z.ZodNumber;
|
|
280
|
+
end: z.ZodNumber;
|
|
281
|
+
}, z.core.$strip>;
|
|
282
|
+
_meta: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
|
|
283
|
+
}, z.core.$strip>, z.ZodObject<{
|
|
284
|
+
status: z.ZodLiteral<"cancelled">;
|
|
285
|
+
input: z.ZodRecord<z.ZodString, z.ZodUnknown>;
|
|
286
|
+
time: z.ZodObject<{
|
|
287
|
+
start: z.ZodNumber;
|
|
288
|
+
end: z.ZodNumber;
|
|
289
|
+
}, z.core.$strip>;
|
|
290
|
+
_meta: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
|
|
291
|
+
}, z.core.$strip>], "status">;
|
|
292
|
+
}, z.core.$strip>, z.ZodObject<{
|
|
293
|
+
id: z.ZodString;
|
|
294
|
+
sessionId: z.ZodString;
|
|
295
|
+
messageId: z.ZodString;
|
|
296
|
+
parentToolCallId: z.ZodOptional<z.ZodString>;
|
|
297
|
+
_meta: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
|
|
298
|
+
type: z.ZodLiteral<"subagent">;
|
|
299
|
+
nativeActivityId: z.ZodString;
|
|
300
|
+
nativeThreadId: z.ZodString;
|
|
301
|
+
path: z.ZodOptional<z.ZodString>;
|
|
302
|
+
activity: z.ZodEnum<{
|
|
303
|
+
interrupted: "interrupted";
|
|
304
|
+
completed: "completed";
|
|
305
|
+
started: "started";
|
|
306
|
+
interacted: "interacted";
|
|
307
|
+
}>;
|
|
308
|
+
}, z.core.$strip>, z.ZodObject<{
|
|
309
|
+
id: z.ZodString;
|
|
310
|
+
sessionId: z.ZodString;
|
|
311
|
+
messageId: z.ZodString;
|
|
312
|
+
parentToolCallId: z.ZodOptional<z.ZodString>;
|
|
313
|
+
_meta: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
|
|
314
|
+
type: z.ZodLiteral<"image">;
|
|
315
|
+
data: z.ZodOptional<z.ZodString>;
|
|
316
|
+
url: z.ZodOptional<z.ZodString>;
|
|
317
|
+
mimeType: z.ZodString;
|
|
318
|
+
}, z.core.$strip>, z.ZodObject<{
|
|
319
|
+
id: z.ZodString;
|
|
320
|
+
sessionId: z.ZodString;
|
|
321
|
+
messageId: z.ZodString;
|
|
322
|
+
parentToolCallId: z.ZodOptional<z.ZodString>;
|
|
323
|
+
_meta: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
|
|
324
|
+
type: z.ZodLiteral<"file">;
|
|
325
|
+
data: z.ZodOptional<z.ZodString>;
|
|
326
|
+
url: z.ZodOptional<z.ZodString>;
|
|
327
|
+
mimeType: z.ZodString;
|
|
328
|
+
filename: z.ZodOptional<z.ZodString>;
|
|
329
|
+
}, z.core.$strip>], "type">;
|
|
330
|
+
export type Part = z.infer<typeof PartSchema>;
|
|
331
|
+
/**
|
|
332
|
+
* Tolerant of the unknown, strict about the known: an unknown part
|
|
333
|
+
* type is preserved, in order, never dropped. A KNOWN type with a malformed
|
|
334
|
+
* body is a hard error (never wrapped as unknown).
|
|
335
|
+
*/
|
|
336
|
+
export interface UnknownPart {
|
|
337
|
+
type: string & {};
|
|
338
|
+
id: string;
|
|
339
|
+
sessionId: string;
|
|
340
|
+
messageId: string;
|
|
341
|
+
parentToolCallId?: string;
|
|
342
|
+
raw: Record<string, unknown>;
|
|
343
|
+
_meta?: Record<string, unknown>;
|
|
344
|
+
}
|
|
345
|
+
/** A preserved unknown part as persisted state holds it: its address, and everything else kept. */
|
|
346
|
+
export declare const UnknownPartSchema: z.ZodType<UnknownPart>;
|
|
347
|
+
/**
|
|
348
|
+
* Decode a wire value into a Part, preserving unknown part types instead of
|
|
349
|
+
* failing the whole event that carries them (preservation is a STORAGE and FORWARDING
|
|
350
|
+
* requirement — a newer server's part type must survive a round trip through
|
|
351
|
+
* an older consumer). Throws on a known type with a malformed body, and on an
|
|
352
|
+
* unknown part that lacks the addressing fields every part owns: without
|
|
353
|
+
* `id`/`sessionId`/`messageId` there is nothing to upsert by, so it cannot be
|
|
354
|
+
* preserved in any useful sense.
|
|
355
|
+
*/
|
|
356
|
+
export declare function decodePart(value: unknown): Part | UnknownPart;
|
|
357
|
+
//# sourceMappingURL=parts.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"parts.d.ts","sourceRoot":"","sources":["../../../src/protocol/parts.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAC;AAiCxB,eAAO,MAAM,cAAc;;;;;;;;;;;;iBAIzB,CAAC;AACH,MAAM,MAAM,QAAQ,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,cAAc,CAAC,CAAC;AAEtD,eAAO,MAAM,mBAAmB;;;;;;;;;;;;;;;;;iBAQ9B,CAAC;AACH,MAAM,MAAM,aAAa,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,mBAAmB,CAAC,CAAC;AAEhE;;;;;;GAMG;AACH,eAAO,MAAM,sBAAsB;;;;;iBAKjC,CAAC;AACH,MAAM,MAAM,gBAAgB,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,sBAAsB,CAAC,CAAC;AAEtE,eAAO,MAAM,cAAc;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;iBAczB,CAAC;AACH,MAAM,MAAM,QAAQ,GAAG,CAAC,CAAC,KA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