@zvada/agent-server 0.3.22 → 0.3.23
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/CHANGELOG.md +261 -0
- package/dist/types/accounts/chatgpt.d.ts +1 -1
- package/dist/types/accounts/chatgpt.d.ts.map +1 -1
- package/dist/types/accounts/http.d.ts +2 -4
- package/dist/types/accounts/http.d.ts.map +1 -1
- package/dist/types/client/client.d.ts +37 -11
- package/dist/types/client/client.d.ts.map +1 -1
- package/dist/types/client/connection.d.ts +64 -13
- package/dist/types/client/connection.d.ts.map +1 -1
- package/dist/types/client/index.d.ts +1 -1
- package/dist/types/client/index.d.ts.map +1 -1
- package/dist/types/client/logins.d.ts +2 -1
- package/dist/types/client/logins.d.ts.map +1 -1
- package/dist/types/client/streams.d.ts +9 -3
- package/dist/types/client/streams.d.ts.map +1 -1
- package/dist/types/client/turns.d.ts +1 -1
- package/dist/types/client/turns.d.ts.map +1 -1
- package/dist/types/core/agents/acp/acp-agent.d.ts +34 -1
- package/dist/types/core/agents/acp/acp-agent.d.ts.map +1 -1
- package/dist/types/core/agents/acp/adapter.d.ts.map +1 -1
- package/dist/types/core/agents/acp/client.d.ts +12 -3
- package/dist/types/core/agents/acp/client.d.ts.map +1 -1
- package/dist/types/core/agents/acp/mappings.d.ts +8 -2
- package/dist/types/core/agents/acp/mappings.d.ts.map +1 -1
- package/dist/types/core/agents/base.d.ts +22 -8
- package/dist/types/core/agents/base.d.ts.map +1 -1
- package/dist/types/core/agents/claude-code/adapter.d.ts +7 -0
- package/dist/types/core/agents/claude-code/adapter.d.ts.map +1 -1
- package/dist/types/core/agents/claude-code/approvals.d.ts +4 -1
- package/dist/types/core/agents/claude-code/approvals.d.ts.map +1 -1
- package/dist/types/core/agents/claude-code/claude-agent.d.ts +16 -5
- package/dist/types/core/agents/claude-code/claude-agent.d.ts.map +1 -1
- package/dist/types/core/agents/claude-code/events.d.ts +9 -1
- package/dist/types/core/agents/claude-code/events.d.ts.map +1 -1
- package/dist/types/core/agents/claude-code/login.d.ts +4 -1
- package/dist/types/core/agents/claude-code/login.d.ts.map +1 -1
- package/dist/types/core/agents/claude-code/mcp.d.ts +21 -7
- package/dist/types/core/agents/claude-code/mcp.d.ts.map +1 -1
- package/dist/types/core/agents/claude-code/models.d.ts +5 -1
- package/dist/types/core/agents/claude-code/models.d.ts.map +1 -1
- package/dist/types/core/agents/claude-code/options.d.ts +10 -4
- package/dist/types/core/agents/claude-code/options.d.ts.map +1 -1
- package/dist/types/core/agents/claude-code/outcome.d.ts +3 -5
- package/dist/types/core/agents/claude-code/outcome.d.ts.map +1 -1
- package/dist/types/core/agents/claude-code/results.d.ts +16 -0
- package/dist/types/core/agents/claude-code/results.d.ts.map +1 -0
- package/dist/types/core/agents/claude-code/sdk-pair.d.ts +13 -0
- package/dist/types/core/agents/claude-code/sdk-pair.d.ts.map +1 -0
- package/dist/types/core/agents/claude-code/session.d.ts +50 -12
- package/dist/types/core/agents/claude-code/session.d.ts.map +1 -1
- package/dist/types/core/agents/claude-code/spend.d.ts +2 -1
- package/dist/types/core/agents/claude-code/spend.d.ts.map +1 -1
- package/dist/types/core/agents/claude-code/tools.d.ts +26 -3
- package/dist/types/core/agents/claude-code/tools.d.ts.map +1 -1
- package/dist/types/core/agents/codex-app-server/adapter.d.ts +2 -2
- package/dist/types/core/agents/codex-app-server/adapter.d.ts.map +1 -1
- package/dist/types/core/agents/codex-app-server/client.d.ts +12 -2
- package/dist/types/core/agents/codex-app-server/client.d.ts.map +1 -1
- package/dist/types/core/agents/codex-app-server/codex-agent.d.ts +58 -13
- package/dist/types/core/agents/codex-app-server/codex-agent.d.ts.map +1 -1
- package/dist/types/core/agents/codex-app-server/commands.d.ts +2 -2
- package/dist/types/core/agents/codex-app-server/commands.d.ts.map +1 -1
- package/dist/types/core/agents/codex-app-server/credentials.d.ts +5 -1
- package/dist/types/core/agents/codex-app-server/credentials.d.ts.map +1 -1
- package/dist/types/core/agents/codex-app-server/effort.d.ts +2 -1
- package/dist/types/core/agents/codex-app-server/effort.d.ts.map +1 -1
- package/dist/types/core/agents/codex-app-server/homes.d.ts +19 -0
- package/dist/types/core/agents/codex-app-server/homes.d.ts.map +1 -1
- package/dist/types/core/agents/codex-app-server/items.d.ts +27 -2
- package/dist/types/core/agents/codex-app-server/items.d.ts.map +1 -1
- package/dist/types/core/agents/codex-app-server/login.d.ts +4 -1
- package/dist/types/core/agents/codex-app-server/login.d.ts.map +1 -1
- package/dist/types/core/agents/codex-app-server/mcp.d.ts +15 -30
- package/dist/types/core/agents/codex-app-server/mcp.d.ts.map +1 -1
- package/dist/types/core/agents/codex-app-server/models.d.ts +3 -10
- package/dist/types/core/agents/codex-app-server/models.d.ts.map +1 -1
- package/dist/types/core/agents/codex-app-server/options.d.ts +27 -4
- package/dist/types/core/agents/codex-app-server/options.d.ts.map +1 -1
- package/dist/types/core/agents/codex-app-server/plan-approval.d.ts +2 -1
- package/dist/types/core/agents/codex-app-server/plan-approval.d.ts.map +1 -1
- package/dist/types/core/agents/codex-app-server/protocol.d.ts +16 -3
- package/dist/types/core/agents/codex-app-server/protocol.d.ts.map +1 -1
- package/dist/types/core/agents/codex-app-server/requests.d.ts.map +1 -1
- package/dist/types/core/agents/codex-app-server/session.d.ts +68 -40
- package/dist/types/core/agents/codex-app-server/session.d.ts.map +1 -1
- package/dist/types/core/agents/codex-app-server/subagents.d.ts +9 -4
- package/dist/types/core/agents/codex-app-server/subagents.d.ts.map +1 -1
- package/dist/types/core/agents/codex-app-server/thread-settings.d.ts +3 -2
- package/dist/types/core/agents/codex-app-server/thread-settings.d.ts.map +1 -1
- package/dist/types/core/agents/codex-app-server/turn-items.d.ts +2 -1
- package/dist/types/core/agents/codex-app-server/turn-items.d.ts.map +1 -1
- package/dist/types/core/agents/codex-app-server/turn.d.ts +31 -8
- package/dist/types/core/agents/codex-app-server/turn.d.ts.map +1 -1
- package/dist/types/core/agents/codex-app-server/user-login.d.ts +28 -0
- package/dist/types/core/agents/codex-app-server/user-login.d.ts.map +1 -0
- package/dist/types/core/agents/credentials.d.ts +3 -1
- package/dist/types/core/agents/credentials.d.ts.map +1 -1
- package/dist/types/core/agents/diffs.d.ts +9 -0
- package/dist/types/core/agents/diffs.d.ts.map +1 -0
- package/dist/types/core/agents/elicitation.d.ts +3 -2
- package/dist/types/core/agents/elicitation.d.ts.map +1 -1
- package/dist/types/core/agents/login.d.ts +6 -0
- package/dist/types/core/agents/login.d.ts.map +1 -1
- package/dist/types/core/agents/mcp-config.d.ts +0 -4
- package/dist/types/core/agents/mcp-config.d.ts.map +1 -1
- package/dist/types/core/agents/process-pool.d.ts +193 -0
- package/dist/types/core/agents/process-pool.d.ts.map +1 -0
- package/dist/types/core/agents/scripted/adapter.d.ts +68 -0
- package/dist/types/core/agents/scripted/adapter.d.ts.map +1 -0
- package/dist/types/core/agents/scripted/mcp-call.d.ts +56 -0
- package/dist/types/core/agents/scripted/mcp-call.d.ts.map +1 -0
- package/dist/types/core/agents/scripted/scripted-agent.d.ts +73 -0
- package/dist/types/core/agents/scripted/scripted-agent.d.ts.map +1 -0
- package/dist/types/core/agents/scripted/scripts.d.ts +29 -0
- package/dist/types/core/agents/scripted/scripts.d.ts.map +1 -0
- package/dist/types/core/agents/scripted/steps.d.ts +132 -0
- package/dist/types/core/agents/scripted/steps.d.ts.map +1 -0
- package/dist/types/core/agents/session-agent.d.ts +49 -6
- package/dist/types/core/agents/session-agent.d.ts.map +1 -1
- package/dist/types/core/diagnostics.d.ts +4 -1
- package/dist/types/core/diagnostics.d.ts.map +1 -1
- package/dist/types/core/index.d.ts +5 -0
- package/dist/types/core/index.d.ts.map +1 -1
- package/dist/types/core/presets.d.ts +32 -6
- package/dist/types/core/presets.d.ts.map +1 -1
- package/dist/types/core/processes/lifeline.d.ts +0 -20
- package/dist/types/core/processes/lifeline.d.ts.map +1 -1
- package/dist/types/core/provision/index.d.ts +2 -2
- package/dist/types/core/provision/index.d.ts.map +1 -1
- package/dist/types/core/provision/install-build.d.ts +2 -1
- package/dist/types/core/provision/install-build.d.ts.map +1 -1
- package/dist/types/core/provision/npm.d.ts +20 -8
- package/dist/types/core/provision/npm.d.ts.map +1 -1
- package/dist/types/core/provision/provisioner.d.ts +4 -1
- package/dist/types/core/provision/provisioner.d.ts.map +1 -1
- package/dist/types/core/provision/tools.d.ts +2 -1
- package/dist/types/core/provision/tools.d.ts.map +1 -1
- package/dist/types/core/runtime/agent-runtime.d.ts +16 -8
- package/dist/types/core/runtime/agent-runtime.d.ts.map +1 -1
- package/dist/types/core/runtime/event-processor.d.ts +5 -1
- package/dist/types/core/runtime/event-processor.d.ts.map +1 -1
- package/dist/types/core/runtime/harness-clis.d.ts +9 -0
- package/dist/types/core/runtime/harness-clis.d.ts.map +1 -1
- package/dist/types/core/runtime/harness-logins.d.ts +33 -5
- package/dist/types/core/runtime/harness-logins.d.ts.map +1 -1
- package/dist/types/core/runtime/model-lists.d.ts +2 -0
- package/dist/types/core/runtime/model-lists.d.ts.map +1 -1
- package/dist/types/core/runtime/permission-policy.d.ts +5 -3
- package/dist/types/core/runtime/permission-policy.d.ts.map +1 -1
- package/dist/types/core/runtime/request-broker.d.ts +2 -1
- package/dist/types/core/runtime/request-broker.d.ts.map +1 -1
- package/dist/types/core/runtime/turn.d.ts +12 -1
- package/dist/types/core/runtime/turn.d.ts.map +1 -1
- package/dist/types/core/utils/deadline.d.ts +6 -0
- package/dist/types/core/utils/deadline.d.ts.map +1 -1
- package/dist/types/core/utils/errors.d.ts +7 -1
- package/dist/types/core/utils/errors.d.ts.map +1 -1
- package/dist/types/operator/operator.d.ts.map +1 -1
- package/dist/types/operator/render.d.ts +6 -4
- package/dist/types/operator/render.d.ts.map +1 -1
- package/dist/types/protocol/auth.d.ts +54 -24
- package/dist/types/protocol/auth.d.ts.map +1 -1
- package/dist/types/protocol/clis.d.ts +14 -7
- package/dist/types/protocol/clis.d.ts.map +1 -1
- package/dist/types/protocol/config.d.ts +2 -0
- package/dist/types/protocol/config.d.ts.map +1 -1
- package/dist/types/protocol/conversation.d.ts +40 -3
- package/dist/types/protocol/conversation.d.ts.map +1 -1
- package/dist/types/protocol/credentials.d.ts +7 -0
- package/dist/types/protocol/credentials.d.ts.map +1 -1
- package/dist/types/protocol/execution.d.ts +2 -1
- package/dist/types/protocol/execution.d.ts.map +1 -1
- package/dist/types/protocol/factories.d.ts +12 -2
- package/dist/types/protocol/factories.d.ts.map +1 -1
- package/dist/types/protocol/harness.d.ts +6 -2
- package/dist/types/protocol/harness.d.ts.map +1 -1
- package/dist/types/protocol/history.d.ts +19 -0
- package/dist/types/protocol/history.d.ts.map +1 -1
- package/dist/types/protocol/lifecycle.d.ts +47 -8
- package/dist/types/protocol/lifecycle.d.ts.map +1 -1
- package/dist/types/protocol/model-catalog.d.ts.map +1 -1
- package/dist/types/protocol/models.d.ts +3 -0
- package/dist/types/protocol/models.d.ts.map +1 -1
- package/dist/types/protocol/parts.d.ts +14 -0
- package/dist/types/protocol/parts.d.ts.map +1 -1
- package/dist/types/protocol/tool-state.d.ts +12 -0
- package/dist/types/protocol/tool-state.d.ts.map +1 -1
- package/dist/types/protocol/wire-api.d.ts +129 -23
- package/dist/types/protocol/wire-api.d.ts.map +1 -1
- package/dist/types/protocol/wire.d.ts +70 -10
- package/dist/types/protocol/wire.d.ts.map +1 -1
- package/dist/types/server/acp/binding.d.ts +6 -1
- package/dist/types/server/acp/binding.d.ts.map +1 -1
- package/dist/types/server/acp/translate.d.ts +33 -7
- package/dist/types/server/acp/translate.d.ts.map +1 -1
- package/dist/types/server/agent-server.d.ts +6 -0
- package/dist/types/server/agent-server.d.ts.map +1 -1
- package/dist/types/server/feedback.d.ts +2 -1
- package/dist/types/server/feedback.d.ts.map +1 -1
- package/dist/types/server/install.d.ts +11 -0
- package/dist/types/server/install.d.ts.map +1 -1
- package/dist/types/server/session-gate.d.ts +2 -1
- package/dist/types/server/session-gate.d.ts.map +1 -1
- package/dist/types/server/session-store.d.ts +1 -0
- package/dist/types/server/session-store.d.ts.map +1 -1
- package/dist/types/server/subscriptions.d.ts +2 -1
- package/dist/types/server/subscriptions.d.ts.map +1 -1
- package/dist/types/server/transports.d.ts.map +1 -1
- package/dist/types/sync/fit.d.ts +8 -7
- package/dist/types/sync/fit.d.ts.map +1 -1
- package/dist/types/sync/history-sqlite.d.ts.map +1 -1
- package/dist/types/sync/index.d.ts +1 -0
- package/dist/types/sync/index.d.ts.map +1 -1
- package/dist/types/sync/journal-sqlite.d.ts +2 -1
- package/dist/types/sync/journal-sqlite.d.ts.map +1 -1
- package/dist/types/sync/journal.d.ts +11 -3
- package/dist/types/sync/journal.d.ts.map +1 -1
- package/dist/types/sync/projection.d.ts +6 -0
- package/dist/types/sync/projection.d.ts.map +1 -1
- package/dist/types/sync/recovery.d.ts +2 -1
- package/dist/types/sync/recovery.d.ts.map +1 -1
- package/dist/types/sync/schema.d.ts +10 -0
- package/dist/types/sync/schema.d.ts.map +1 -1
- package/dist/types/sync/sql.d.ts +2 -1
- package/dist/types/sync/sql.d.ts.map +1 -1
- package/docs/consuming.md +278 -28
- package/docs/deploy.md +36 -8
- package/docs/durable-sessions.md +35 -5
- package/docs/harnesses.md +385 -24
- package/package.json +6 -1
- package/src/accounts/chatgpt.ts +2 -2
- package/src/accounts/http.ts +2 -16
- package/src/client/client.ts +92 -31
- package/src/client/connection.ts +103 -22
- package/src/client/index.ts +1 -0
- package/src/client/logins.ts +1 -1
- package/src/client/streams.ts +12 -4
- package/src/client/turns.ts +1 -1
- package/src/core/agents/acp/acp-agent.ts +181 -52
- package/src/core/agents/acp/adapter.ts +9 -1
- package/src/core/agents/acp/client.ts +16 -4
- package/src/core/agents/acp/mappings.ts +27 -0
- package/src/core/agents/base.ts +25 -10
- package/src/core/agents/claude-code/adapter.ts +47 -17
- package/src/core/agents/claude-code/approvals.ts +6 -5
- package/src/core/agents/claude-code/claude-agent.ts +60 -30
- package/src/core/agents/claude-code/events.ts +11 -1
- package/src/core/agents/claude-code/login.ts +14 -2
- package/src/core/agents/claude-code/mcp.ts +31 -15
- package/src/core/agents/claude-code/models.ts +7 -2
- package/src/core/agents/claude-code/options.ts +11 -3
- package/src/core/agents/claude-code/outcome.ts +10 -2
- package/src/core/agents/claude-code/results.ts +73 -0
- package/src/core/agents/claude-code/sdk-pair.ts +66 -0
- package/src/core/agents/claude-code/session.ts +166 -37
- package/src/core/agents/claude-code/spend.ts +1 -1
- package/src/core/agents/claude-code/tools.ts +108 -12
- package/src/core/agents/codex-app-server/adapter.ts +37 -12
- package/src/core/agents/codex-app-server/client.ts +37 -8
- package/src/core/agents/codex-app-server/codex-agent.ts +115 -50
- package/src/core/agents/codex-app-server/commands.ts +2 -2
- package/src/core/agents/codex-app-server/credentials.ts +10 -5
- package/src/core/agents/codex-app-server/effort.ts +1 -1
- package/src/core/agents/codex-app-server/homes.ts +43 -1
- package/src/core/agents/codex-app-server/items.ts +219 -31
- package/src/core/agents/codex-app-server/login.ts +14 -2
- package/src/core/agents/codex-app-server/mcp.ts +47 -32
- package/src/core/agents/codex-app-server/models.ts +9 -8
- package/src/core/agents/codex-app-server/options.ts +69 -10
- package/src/core/agents/codex-app-server/plan-approval.ts +1 -1
- package/src/core/agents/codex-app-server/protocol.ts +14 -4
- package/src/core/agents/codex-app-server/requests.ts +14 -6
- package/src/core/agents/codex-app-server/session.ts +151 -113
- package/src/core/agents/codex-app-server/subagents.ts +21 -14
- package/src/core/agents/codex-app-server/thread-settings.ts +18 -8
- package/src/core/agents/codex-app-server/turn-items.ts +1 -1
- package/src/core/agents/codex-app-server/turn.ts +79 -32
- package/src/core/agents/codex-app-server/user-login.ts +107 -0
- package/src/core/agents/credentials.ts +5 -2
- package/src/core/agents/diffs.ts +25 -0
- package/src/core/agents/elicitation.ts +2 -2
- package/src/core/agents/login.ts +6 -0
- package/src/core/agents/mcp-config.ts +2 -2
- package/src/core/agents/process-pool.ts +432 -0
- package/src/core/agents/scripted/adapter.ts +142 -0
- package/src/core/agents/scripted/mcp-call.ts +134 -0
- package/src/core/agents/scripted/scripted-agent.ts +418 -0
- package/src/core/agents/scripted/scripts.ts +171 -0
- package/src/core/agents/scripted/steps.ts +127 -0
- package/src/core/agents/session-agent.ts +105 -8
- package/src/core/diagnostics.ts +9 -1
- package/src/core/index.ts +11 -0
- package/src/core/presets.ts +99 -14
- package/src/core/processes/lifeline.ts +99 -25
- package/src/core/provision/index.ts +1 -2
- package/src/core/provision/install-build.ts +4 -1
- package/src/core/provision/npm.ts +309 -97
- package/src/core/provision/provisioner.ts +22 -8
- package/src/core/provision/tools.ts +44 -19
- package/src/core/runtime/agent-runtime.ts +48 -18
- package/src/core/runtime/event-processor.ts +18 -2
- package/src/core/runtime/harness-clis.ts +36 -1
- package/src/core/runtime/harness-logins.ts +82 -31
- package/src/core/runtime/model-lists.ts +1 -1
- package/src/core/runtime/permission-policy.ts +4 -3
- package/src/core/runtime/request-broker.ts +1 -1
- package/src/core/runtime/turn.ts +51 -3
- package/src/core/utils/deadline.ts +23 -0
- package/src/core/utils/errors.ts +11 -4
- package/src/operator/operator.ts +8 -4
- package/src/operator/render.ts +46 -8
- package/src/protocol/auth.ts +30 -23
- package/src/protocol/clis.ts +12 -4
- package/src/protocol/credentials.ts +19 -0
- package/src/protocol/execution.ts +5 -0
- package/src/protocol/factories.ts +25 -3
- package/src/protocol/harness.ts +11 -1
- package/src/protocol/history.ts +20 -0
- package/src/protocol/lifecycle.ts +10 -1
- package/src/protocol/model-catalog.ts +19 -8
- package/src/protocol/parts.ts +12 -1
- package/src/protocol/tool-state.ts +14 -1
- package/src/protocol/wire.ts +14 -0
- package/src/server/acp/binding.ts +113 -23
- package/src/server/acp/translate.ts +161 -8
- package/src/server/agent-server.ts +10 -1
- package/src/server/bin.ts +83 -9
- package/src/server/feedback.ts +1 -1
- package/src/server/install.ts +82 -4
- package/src/server/session-gate.ts +1 -1
- package/src/server/session-store.ts +5 -1
- package/src/server/subscriptions.ts +1 -1
- package/src/server/transports.ts +14 -0
- package/src/sync/fit.ts +115 -28
- package/src/sync/history-sqlite.ts +6 -2
- package/src/sync/index.ts +1 -0
- package/src/sync/journal-sqlite.ts +20 -2
- package/src/sync/journal.ts +10 -2
- package/src/sync/projection.ts +10 -0
- package/src/sync/recovery.ts +11 -4
- package/src/sync/schema.ts +7 -5
- package/src/sync/sql.ts +1 -1
- package/dist/types/core/agents/claude-code/session-pool.d.ts +0 -36
- package/dist/types/core/agents/claude-code/session-pool.d.ts.map +0 -1
- package/dist/types/core/agents/session-pool.d.ts +0 -41
- package/dist/types/core/agents/session-pool.d.ts.map +0 -1
- package/src/core/agents/claude-code/session-pool.ts +0 -136
- package/src/core/agents/session-pool.ts +0 -111
|
@@ -0,0 +1,68 @@
|
|
|
1
|
+
import { type McpTool, type StopReason, type TokenUsage, type ToolKind, type ToolLocation, type ToolResultContent } from "../../../protocol/index.ts";
|
|
2
|
+
import type { AdapterEvent, EventTransformer, TransformResult } from "../types.ts";
|
|
3
|
+
/**
|
|
4
|
+
* What the scripted agent yields as it plays a turn: its "native" events,
|
|
5
|
+
* which a real harness would read off its CLI. `includeRaw` puts them on the
|
|
6
|
+
* stream as they are.
|
|
7
|
+
*/
|
|
8
|
+
export type ScriptedEvent = {
|
|
9
|
+
type: "text";
|
|
10
|
+
text: string;
|
|
11
|
+
}
|
|
12
|
+
/** One word of a streamed text part; the first opens the part. */
|
|
13
|
+
| {
|
|
14
|
+
type: "stream";
|
|
15
|
+
text: string;
|
|
16
|
+
}
|
|
17
|
+
/** The streamed part is complete. */
|
|
18
|
+
| {
|
|
19
|
+
type: "streamed";
|
|
20
|
+
} | {
|
|
21
|
+
type: "tool";
|
|
22
|
+
toolCallId: string;
|
|
23
|
+
toolName: string;
|
|
24
|
+
input: Record<string, unknown>;
|
|
25
|
+
kind?: ToolKind;
|
|
26
|
+
mcp?: McpTool;
|
|
27
|
+
command?: string;
|
|
28
|
+
url?: string;
|
|
29
|
+
locations?: ToolLocation[];
|
|
30
|
+
} | {
|
|
31
|
+
type: "tool-result";
|
|
32
|
+
toolCallId: string;
|
|
33
|
+
/** What ran instead of the input the call opened with (an approval that edited it). */
|
|
34
|
+
input?: Record<string, unknown>;
|
|
35
|
+
output?: string;
|
|
36
|
+
/** The call failed, or was rejected: why. */
|
|
37
|
+
error?: string;
|
|
38
|
+
content?: ToolResultContent[];
|
|
39
|
+
metadata?: Record<string, unknown>;
|
|
40
|
+
} | {
|
|
41
|
+
type: "end";
|
|
42
|
+
stopReason?: StopReason;
|
|
43
|
+
usage?: TokenUsage;
|
|
44
|
+
cost?: number;
|
|
45
|
+
}
|
|
46
|
+
/** The turn stopped as the user asked (a permission request answered as a cancel). */
|
|
47
|
+
| {
|
|
48
|
+
type: "cancelled";
|
|
49
|
+
};
|
|
50
|
+
/**
|
|
51
|
+
* The scripted harness's adapter: its events to the engine's `AdapterEvent`s.
|
|
52
|
+
* Every part goes into the turn's one assistant message, which the engine
|
|
53
|
+
* opens; ids, indices and clones are the engine's (`EventProcessor`).
|
|
54
|
+
*/
|
|
55
|
+
export declare class ScriptedTransformer implements EventTransformer<ScriptedEvent> {
|
|
56
|
+
private readonly sessionId;
|
|
57
|
+
private streaming?;
|
|
58
|
+
private readonly tools;
|
|
59
|
+
private ended?;
|
|
60
|
+
private cancelled;
|
|
61
|
+
constructor(sessionId: string);
|
|
62
|
+
process(event: ScriptedEvent): AdapterEvent[];
|
|
63
|
+
finish(): TransformResult;
|
|
64
|
+
}
|
|
65
|
+
export declare function createScriptedTransformer(ctx: {
|
|
66
|
+
sessionId: string;
|
|
67
|
+
}): EventTransformer<ScriptedEvent>;
|
|
68
|
+
//# sourceMappingURL=adapter.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"adapter.d.ts","sourceRoot":"","sources":["../../../../../src/core/agents/scripted/adapter.ts"],"names":[],"mappings":"AAAA,OAAO,EAEN,KAAK,OAAO,EACZ,KAAK,UAAU,EAEf,KAAK,UAAU,EACf,KAAK,QAAQ,EACb,KAAK,YAAY,EAEjB,KAAK,iBAAiB,EAItB,MA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AAI,EAAE,WAAW,CAAA;CAAE,CAAC;AAEzB;;;;GAIG;AACH,qBAAa,mBAAoB,YAAW,gBAAgB,CAAC,aAAa,CAAC;IAM9D,OAAO,CAAC,QAAQ,CAAC,SAAS;IALtC,OAAO,CAAC,SAAS,CAAC,CAAW;IAC7B,OAAO,CAAC,QAAQ,CAAC,KAAK,CAA+B;IACrD,OAAO,CAAC,KAAK,CAAC,CAA0C;IACxD,OAAO,CAAC,SAAS,CAAS;gBAEG,SAAS,EAAE,MAAM;IAE9C,OAAO,CAAC,KAAK,EAAE,aAAa,GAAG,YAAY,EAAE;IA6D7C,MAAM,IAAI,eAAe;CAQzB;AAED,wBAAgB,yBAAyB,CAAC,GAAG,EAAE;IAC9C,SAAS,EAAE,MAAM,CAAC;CAClB,GAAG,gBAAgB,CAAC,aAAa,CAAC,CAElC"}
|
|
@@ -0,0 +1,56 @@
|
|
|
1
|
+
import type { McpServerConfig, ToolResultContent } from "../../../protocol/index.ts";
|
|
2
|
+
/** What a `call` step's tool answered, as its tool part shows it. */
|
|
3
|
+
export interface McpCallResult {
|
|
4
|
+
output: string;
|
|
5
|
+
content?: ToolResultContent[];
|
|
6
|
+
/** The server's `structuredContent`, when it gave one. */
|
|
7
|
+
metadata?: Record<string, unknown>;
|
|
8
|
+
/** The server said the call failed (`isError`): `output` says why. */
|
|
9
|
+
isError: boolean;
|
|
10
|
+
}
|
|
11
|
+
/** The part of the MCP SDK a call uses, typed here so no declaration of ours names the optional SDK. */
|
|
12
|
+
interface McpClient {
|
|
13
|
+
connect(transport: unknown): Promise<void>;
|
|
14
|
+
callTool(params: {
|
|
15
|
+
name: string;
|
|
16
|
+
arguments?: Record<string, unknown>;
|
|
17
|
+
}, resultSchema?: undefined, options?: {
|
|
18
|
+
signal?: AbortSignal;
|
|
19
|
+
}): Promise<{
|
|
20
|
+
content?: unknown;
|
|
21
|
+
structuredContent?: unknown;
|
|
22
|
+
isError?: unknown;
|
|
23
|
+
}>;
|
|
24
|
+
close(): Promise<void>;
|
|
25
|
+
}
|
|
26
|
+
interface McpSdk {
|
|
27
|
+
Client: new (info: {
|
|
28
|
+
name: string;
|
|
29
|
+
version: string;
|
|
30
|
+
}) => McpClient;
|
|
31
|
+
StreamableHTTPClientTransport: new (url: URL, opts?: {
|
|
32
|
+
requestInit?: RequestInit;
|
|
33
|
+
}) => unknown;
|
|
34
|
+
}
|
|
35
|
+
/** An `http` MCP server of the turn's, with the SDK loaded to call it. */
|
|
36
|
+
export interface CallableServer {
|
|
37
|
+
url: string;
|
|
38
|
+
headers?: Record<string, string>;
|
|
39
|
+
sdk: McpSdk;
|
|
40
|
+
}
|
|
41
|
+
/**
|
|
42
|
+
* The turn's MCP server `name`, checked before its call opens a part: a server
|
|
43
|
+
* the turn does not have, one that is not `http`, or an SDK that is not
|
|
44
|
+
* installed fails the step.
|
|
45
|
+
*/
|
|
46
|
+
export declare function callableServer(name: string, servers: Record<string, McpServerConfig> | undefined): Promise<CallableServer>;
|
|
47
|
+
/**
|
|
48
|
+
* Call one tool over Streamable HTTP, on a connection of its own. A call that
|
|
49
|
+
* fails (the server down, an error it answers) answers `isError`.
|
|
50
|
+
*/
|
|
51
|
+
export declare function callMcpTool(server: CallableServer, call: {
|
|
52
|
+
tool: string;
|
|
53
|
+
arguments?: Record<string, unknown>;
|
|
54
|
+
}, signal: AbortSignal): Promise<McpCallResult>;
|
|
55
|
+
export {};
|
|
56
|
+
//# sourceMappingURL=mcp-call.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"mcp-call.d.ts","sourceRoot":"","sources":["../../../../../src/core/agents/scripted/mcp-call.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,eAAe,EAAE,iBAAiB,EAAE,MAAM,4BAA4B,CAAC;AAGrF,qEAAqE;AACrE,MAAM,WAAW,aAAa;IAC7B,MAAM,EAAE,MAAM,CAAC;IACf,OAAO,CAAC,EAAE,iBAAiB,EAAE,CAAC;IAC9B,0DAA0D;IAC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,CAAC,cAAc,CAAC,CAWzB;AAED;;;GAGG;AACH,wBAAsB,WAAW,CAChC,MAAM,EAAE,cAAc,EACtB,IAAI,EAAE;IAAE,IAAI,EAAE,MAAM,CAAC;IAAC,SAAS,CAAC,EAAE,MAAM,CAAC,MAAM,EAAE,OAAO,CAAC,CAAA;CAAE,EAC3D,MAAM,EAAE,WAAW,GACjB,OAAO,CAAC,aAAa,CAAC,CA0BxB"}
|
|
@@ -0,0 +1,73 @@
|
|
|
1
|
+
import { type AgentInput, type ModelDescriptor } from "../../../protocol/index.ts";
|
|
2
|
+
import type { NativeProcesses } from "../../processes/native-processes.ts";
|
|
3
|
+
import type { AgentExecuteOptions, RawAgentEvent } from "../base.ts";
|
|
4
|
+
import type { CliLogin } from "../login.ts";
|
|
5
|
+
import { SessionAgent } from "../session-agent.ts";
|
|
6
|
+
import { type ScriptStep, type ScriptStepOutcome } from "./steps.ts";
|
|
7
|
+
/** A turn's config as the script sees it: the turn's `RunConfig`, as the engine hands it to a harness. */
|
|
8
|
+
export type ScriptedTurnConfig = Omit<AgentExecuteOptions, "sessionId" | "turnId" | "signal" | "modelThinking" | "onNativeSession" | "onPermissionRequest" | "onElicitationRequest" | "onExecution" | "onWarning">;
|
|
9
|
+
/** What a turn was asked: what the script plays may depend on it. */
|
|
10
|
+
export interface ScriptedTurnRequest {
|
|
11
|
+
sessionId: string;
|
|
12
|
+
turnId: string;
|
|
13
|
+
input: AgentInput;
|
|
14
|
+
config: ScriptedTurnConfig;
|
|
15
|
+
/** How many turns this session ran before this one, in this engine: 0 for its first. */
|
|
16
|
+
turnIndex: number;
|
|
17
|
+
/** Aborts when the turn is cancelled. */
|
|
18
|
+
signal: AbortSignal;
|
|
19
|
+
}
|
|
20
|
+
/**
|
|
21
|
+
* Where a turn's steps come from. An async iterable lets a test release steps
|
|
22
|
+
* when it wants; the turn waits for the next one until it is cancelled. Each
|
|
23
|
+
* `next` is passed what the step before did (`ScriptStepOutcome`), so a
|
|
24
|
+
* generator's `yield` of a step evaluates to it.
|
|
25
|
+
*/
|
|
26
|
+
export type ScriptSource = (request: ScriptedTurnRequest) => Iterable<ScriptStep, unknown, ScriptStepOutcome> | AsyncIterable<ScriptStep, unknown, ScriptStepOutcome>;
|
|
27
|
+
export interface ScriptedAgentOptions {
|
|
28
|
+
/** The steps of each turn; `scriptedQueue`, `scriptedFile` and `scriptedBySession` build the common forms. */
|
|
29
|
+
turn: ScriptSource;
|
|
30
|
+
/**
|
|
31
|
+
* The registry's processes (`createAgentRegistry` passes them). It starts
|
|
32
|
+
* none, so its runtime can vouch after a restart that nothing of its was
|
|
33
|
+
* left running, as for a real agent its sweep saw stopped. Without it a
|
|
34
|
+
* restart fences its cut-off sessions.
|
|
35
|
+
*/
|
|
36
|
+
processes?: NativeProcesses;
|
|
37
|
+
}
|
|
38
|
+
/** A harness that plays a script instead of a model (see the top of this file). */
|
|
39
|
+
export declare class ScriptedAgent extends SessionAgent {
|
|
40
|
+
private readonly options;
|
|
41
|
+
readonly harness: "scripted";
|
|
42
|
+
readonly capabilities: {
|
|
43
|
+
multiTurn: boolean;
|
|
44
|
+
sessionResume: boolean;
|
|
45
|
+
modelSwitch: (string & {}) | "in_session" | "restart_session" | "unsupported";
|
|
46
|
+
thinkingLevels: boolean;
|
|
47
|
+
images: boolean;
|
|
48
|
+
files: ((string & {}) | "text" | "pdf" | "binary")[];
|
|
49
|
+
mcpServers: boolean;
|
|
50
|
+
permissionRequests: boolean;
|
|
51
|
+
rejectionMessages: boolean;
|
|
52
|
+
turnScopedSubagents?: boolean | undefined;
|
|
53
|
+
steering?: boolean | undefined;
|
|
54
|
+
ignoredSettings?: string[] | undefined;
|
|
55
|
+
};
|
|
56
|
+
/** Signed in to nothing, and always able to run: there is no login to make or lose. */
|
|
57
|
+
readonly login: CliLogin;
|
|
58
|
+
/** Turns each session has run in this engine. */
|
|
59
|
+
private readonly turns;
|
|
60
|
+
readonly processes?: NativeProcesses;
|
|
61
|
+
constructor(options: ScriptedAgentOptions);
|
|
62
|
+
listModels(): Promise<ModelDescriptor[]>;
|
|
63
|
+
protected executeTurn(input: AgentInput, options: AgentExecuteOptions, controller: AbortController): AsyncIterableIterator<RawAgentEvent>;
|
|
64
|
+
private play;
|
|
65
|
+
/**
|
|
66
|
+
* Ask the engine's permission broker about a call: the input to run (the
|
|
67
|
+
* approved edit, when the answer edited it), why it was rejected, or that
|
|
68
|
+
* the user cancelled the turn.
|
|
69
|
+
*/
|
|
70
|
+
private permit;
|
|
71
|
+
release(sessionId: string): Promise<void>;
|
|
72
|
+
}
|
|
73
|
+
//# sourceMappingURL=scripted-agent.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"scripted-agent.d.ts","sourceRoot":"","sources":["../../../../../src/core/agents/scripted/scripted-agent.ts"],"names":[],"mappings":"AAmBA,OAAO,EAEN,KAAK,UAAU,EACf,KAAK,eAAe,EAIpB,MAAM,4BAA4B,CAAC;AACpC,OAAO,KAAK,EAAE,eAAe,EAAE,MAAM,qCAAqC,CAAC;AAG3E,OAAO,KAAK,EAAE,mBAAmB,EAAE,aAAa,EAAE,MAAM,YAAY,CAAC;AAErE,OAAO,KAAK,EAAE,QAAQ,EAAE,MAAM,aAAa,CAAC;AAC5C,OAAO,EAAE,YAAY,EAAE,MAAM,qBAAqB,CAAC;AAGnD,OAAO,EAAiB,KAAK,UAAU,EAAE,KAAK,iBAAiB,EAAY,MAAM,YAAY,CAAC;AAoC9F,0GAA0G;AAC1G,MAAM,MAAM,kBAAkB,GAAG,IAAI,CACpC,mBAAmB,EACjB,WAAW,GACX,QAAQ,GACR,QAAQ,GACR,eAAe,GACf,iBAAiB,GACjB,qBAAqB,GACrB,sBAAsB,GACtB,aAAa,GACb,WAAW,CACb,CAAC;AAEF,qEAAqE;AACrE,MAAM,WAAW,mBAAmB;IACnC,SAAS,EAAE,MAAM,CAAC;IAClB,MAAM,EAAE,MAAM,CAAC;IACf,KAAK,EAAE,UAAU,CAAC;IAClB,MAAM,E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
|
+
* One queue of steps for the whole runtime, consumed turn by turn whatever
|
|
5
|
+
* the session, one turn at a time: `{ end: true }` closes a turn, and the next
|
|
6
|
+
* turn plays on from the step after it. A turn that finds the queue empty
|
|
7
|
+
* fails, saying the script ran out, and so does one that starts while another
|
|
8
|
+
* plays (`scriptedBySession` serves sessions that run at once). Every step is
|
|
9
|
+
* read here: one the schema does not know throws now.
|
|
10
|
+
*/
|
|
11
|
+
export declare function scriptedQueue(steps: readonly ScriptStep[]): ScriptSource;
|
|
12
|
+
/**
|
|
13
|
+
* `scriptedQueue`, read from a JSONL file: one step per line (blank lines
|
|
14
|
+
* skipped), a bad line refused by its number. It plays from its start each
|
|
15
|
+
* time an engine reads it and writes nothing, unless `position` names a file
|
|
16
|
+
* that keeps how far it has played: then an engine restarted mid-script goes
|
|
17
|
+
* on where the last one stopped (inside a turn, from the next turn), and a
|
|
18
|
+
* changed script plays from its start.
|
|
19
|
+
*/
|
|
20
|
+
export declare function scriptedFile(path: string, options?: {
|
|
21
|
+
position?: string;
|
|
22
|
+
}): ScriptSource;
|
|
23
|
+
/**
|
|
24
|
+
* A queue per session id, as `scriptedQueue` plays one; a session not named
|
|
25
|
+
* plays `otherwise` from its start, in a queue of its own. A session with
|
|
26
|
+
* neither fails its turn.
|
|
27
|
+
*/
|
|
28
|
+
export declare function scriptedBySession(scripts: Readonly<Record<string, readonly ScriptStep[]>>, otherwise?: readonly ScriptStep[]): ScriptSource;
|
|
29
|
+
//# sourceMappingURL=scripts.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"scripts.d.ts","sourceRoot":"","sources":["../../../../../src/core/agents/scripted/scripts.ts"],"names":[],"mappings":"AAEA,OAAO,KAAK,EAAE,YAAY,EAAE,MAAM,qBAAqB,CAAC;AACxD,OAAO,EAAiB,KAAK,UAAU,EAAY,MAAM,YAAY,CAAC;AAmFtE;;;;;;;GAOG;AACH,wBAAgB,aAAa,CAAC,KAAK,EAAE,SAAS,UAAU,EAAE,GAAG,YAAY,CAGxE;AAED;;;;;;;GAOG;AACH,wBAAgB,YAAY,CAAC,IAAI,EAAE,MAAM,EAAE,OAAO,GAAE;IAAE,QAAQ,CAAC,EAAE,MAAM,CAAA;CAAO,GAAG,YAAY,CAyB5F;AAcD;;;;GAIG;AACH,wBAAgB,iBAAiB,CAChC,OAAO,EAAE,QAAQ,CAAC,MAAM,CAAC,MAAM,EAAE,SAAS,UAAU,EAAE,CAAC,CAAC,EACxD,SAAS,CAAC,EAAE,SAAS,UAAU,EAAE,GAC/B,YAAY,CAgBd"}
|
|
@@ -0,0 +1,132 @@
|
|
|
1
|
+
import { z } from "zod";
|
|
2
|
+
import { type ElicitationOutcome, type ToolResultContent } from "../../../protocol/index.ts";
|
|
3
|
+
/**
|
|
4
|
+
* One step of a script: plain JSON, so a JSONL file is a script. Each form is
|
|
5
|
+
* strict, so a misspelt step or field is refused when the script is read,
|
|
6
|
+
* never skipped.
|
|
7
|
+
*/
|
|
8
|
+
export declare const ScriptStepSchema: z.ZodUnion<readonly [z.ZodObject<{
|
|
9
|
+
say: z.ZodString;
|
|
10
|
+
}, z.core.$strict>, z.ZodObject<{
|
|
11
|
+
stream: z.ZodString;
|
|
12
|
+
every: z.ZodOptional<z.ZodNumber>;
|
|
13
|
+
}, z.core.$strict>, z.ZodObject<{
|
|
14
|
+
tool: z.ZodString;
|
|
15
|
+
input: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
|
|
16
|
+
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>>>;
|
|
17
|
+
mcp: z.ZodOptional<z.ZodObject<{
|
|
18
|
+
server: z.ZodString;
|
|
19
|
+
tool: z.ZodString;
|
|
20
|
+
}, z.core.$strict>>;
|
|
21
|
+
command: z.ZodOptional<z.ZodString>;
|
|
22
|
+
url: z.ZodOptional<z.ZodString>;
|
|
23
|
+
locations: z.ZodOptional<z.ZodArray<z.ZodObject<{
|
|
24
|
+
path: z.ZodString;
|
|
25
|
+
line: z.ZodOptional<z.ZodNumber>;
|
|
26
|
+
}, z.core.$strict>>>;
|
|
27
|
+
reason: z.ZodOptional<z.ZodString>;
|
|
28
|
+
output: z.ZodOptional<z.ZodString>;
|
|
29
|
+
error: z.ZodOptional<z.ZodString>;
|
|
30
|
+
content: z.ZodOptional<z.ZodArray<z.ZodDiscriminatedUnion<[z.ZodObject<{
|
|
31
|
+
type: z.ZodLiteral<"text">;
|
|
32
|
+
text: z.ZodString;
|
|
33
|
+
_meta: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
|
|
34
|
+
}, z.core.$strip>, z.ZodObject<{
|
|
35
|
+
type: z.ZodLiteral<"image">;
|
|
36
|
+
data: z.ZodString;
|
|
37
|
+
mimeType: z.ZodString;
|
|
38
|
+
_meta: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
|
|
39
|
+
}, z.core.$strip>, z.ZodObject<{
|
|
40
|
+
type: z.ZodLiteral<"diff">;
|
|
41
|
+
path: z.ZodString;
|
|
42
|
+
oldText: z.ZodOptional<z.ZodString>;
|
|
43
|
+
newText: z.ZodString;
|
|
44
|
+
_meta: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
|
|
45
|
+
}, z.core.$strip>, z.ZodObject<{
|
|
46
|
+
type: z.ZodLiteral<"terminal">;
|
|
47
|
+
terminalId: z.ZodString;
|
|
48
|
+
_meta: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
|
|
49
|
+
}, z.core.$strip>], "type">>>;
|
|
50
|
+
metadata: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
|
|
51
|
+
ask: z.ZodOptional<z.ZodLiteral<true>>;
|
|
52
|
+
}, z.core.$strict>, z.ZodObject<{
|
|
53
|
+
call: z.ZodObject<{
|
|
54
|
+
server: z.ZodString;
|
|
55
|
+
tool: z.ZodString;
|
|
56
|
+
arguments: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
|
|
57
|
+
}, z.core.$strict>;
|
|
58
|
+
ask: z.ZodOptional<z.ZodLiteral<true>>;
|
|
59
|
+
}, z.core.$strict>, z.ZodObject<{
|
|
60
|
+
ask: z.ZodArray<z.ZodObject<{
|
|
61
|
+
id: z.ZodString;
|
|
62
|
+
question: z.ZodString;
|
|
63
|
+
header: z.ZodOptional<z.ZodString>;
|
|
64
|
+
options: z.ZodOptional<z.ZodArray<z.ZodObject<{
|
|
65
|
+
label: z.ZodString;
|
|
66
|
+
description: z.ZodOptional<z.ZodString>;
|
|
67
|
+
}, z.core.$strip>>>;
|
|
68
|
+
multiSelect: z.ZodOptional<z.ZodBoolean>;
|
|
69
|
+
allowOther: z.ZodOptional<z.ZodBoolean>;
|
|
70
|
+
secret: z.ZodOptional<z.ZodBoolean>;
|
|
71
|
+
}, z.core.$strip>>;
|
|
72
|
+
}, z.core.$strict>, z.ZodObject<{
|
|
73
|
+
echo: z.ZodEnum<{
|
|
74
|
+
input: "input";
|
|
75
|
+
config: "config";
|
|
76
|
+
}>;
|
|
77
|
+
}, z.core.$strict>, z.ZodObject<{
|
|
78
|
+
wait: z.ZodNumber;
|
|
79
|
+
}, z.core.$strict>, z.ZodObject<{
|
|
80
|
+
hang: z.ZodLiteral<true>;
|
|
81
|
+
stopTakes: z.ZodOptional<z.ZodNumber>;
|
|
82
|
+
}, z.core.$strict>, z.ZodObject<{
|
|
83
|
+
fail: z.ZodString;
|
|
84
|
+
category: z.ZodOptional<z.ZodType<"abort" | (string & {}) | "auth" | "rate_limit" | "overloaded" | "usage_limit" | "context_limit" | "network" | "invalid_request" | "process_exit" | "resume_failed" | "mcp_unavailable" | "server_restart" | "internal", unknown, z.core.$ZodTypeInternals<"abort" | (string & {}) | "auth" | "rate_limit" | "overloaded" | "usage_limit" | "context_limit" | "network" | "invalid_request" | "process_exit" | "resume_failed" | "mcp_unavailable" | "server_restart" | "internal", unknown>>>;
|
|
85
|
+
}, z.core.$strict>, z.ZodObject<{
|
|
86
|
+
end: z.ZodLiteral<true>;
|
|
87
|
+
stopReason: z.ZodOptional<z.ZodType<"error" | (string & {}) | "cancelled" | "end_turn" | "max_tokens" | "max_turn_requests" | "refusal", unknown, z.core.$ZodTypeInternals<"error" | (string & {}) | "cancelled" | "end_turn" | "max_tokens" | "max_turn_requests" | "refusal", unknown>>>;
|
|
88
|
+
usage: z.ZodOptional<z.ZodObject<{
|
|
89
|
+
input: z.ZodDefault<z.ZodNumber>;
|
|
90
|
+
output: z.ZodDefault<z.ZodNumber>;
|
|
91
|
+
reasoning: z.ZodOptional<z.ZodNumber>;
|
|
92
|
+
cache: z.ZodOptional<z.ZodObject<{
|
|
93
|
+
read: z.ZodDefault<z.ZodNumber>;
|
|
94
|
+
write: z.ZodDefault<z.ZodNumber>;
|
|
95
|
+
writeEphemeral5m: z.ZodOptional<z.ZodNumber>;
|
|
96
|
+
writeEphemeral1h: z.ZodOptional<z.ZodNumber>;
|
|
97
|
+
}, z.core.$strip>>;
|
|
98
|
+
}, z.core.$strip>>;
|
|
99
|
+
cost: z.ZodOptional<z.ZodNumber>;
|
|
100
|
+
}, z.core.$strict>]>;
|
|
101
|
+
/** One step of a script, as a script writes it (see `ScriptStepSchema`). */
|
|
102
|
+
export type ScriptStep = z.input<typeof ScriptStepSchema>;
|
|
103
|
+
/**
|
|
104
|
+
* What a step did, handed back to the script as the value of its `yield`
|
|
105
|
+
* (the agent passes it to the next `next(outcome)`): a script written as a
|
|
106
|
+
* generator reads it; an array or a queue ignores it.
|
|
107
|
+
* - a `tool` or `call` step that completed: what its part completed with;
|
|
108
|
+
* - one that failed: its `error` and `metadata`, with `rejected` when the
|
|
109
|
+
* person denied it;
|
|
110
|
+
* - an `ask` step: the person's `answer`; `undefined` when the turn's client
|
|
111
|
+
* answers no questions, as for every other step.
|
|
112
|
+
* A permission request answered as a cancel ends the turn: nothing is handed back.
|
|
113
|
+
*/
|
|
114
|
+
export type ScriptStepOutcome = {
|
|
115
|
+
output: string;
|
|
116
|
+
content?: ToolResultContent[];
|
|
117
|
+
/** A `call`'s: the server's `structuredContent`, as its part has it. */
|
|
118
|
+
metadata?: Record<string, unknown> & {
|
|
119
|
+
structuredContent?: Record<string, unknown>;
|
|
120
|
+
};
|
|
121
|
+
} | {
|
|
122
|
+
error: string;
|
|
123
|
+
rejected?: true;
|
|
124
|
+
metadata?: Record<string, unknown>;
|
|
125
|
+
} | {
|
|
126
|
+
answer: ElicitationOutcome;
|
|
127
|
+
} | undefined;
|
|
128
|
+
/** A step once read: defaults filled in. */
|
|
129
|
+
export type ReadStep = z.output<typeof ScriptStepSchema>;
|
|
130
|
+
/** A step, read, or an error that says where it is and what is wrong with it. */
|
|
131
|
+
export declare function readStep(step: unknown, where: string): ReadStep;
|
|
132
|
+
//# sourceMappingURL=steps.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"steps.d.ts","sourceRoot":"","sources":["../../../../../src/core/agents/scripted/steps.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAC;AACxB,OAAO,EACN,KAAK,kBAAkB,EAMvB,KAAK,iBAAiB,EAEtB,MAAM,4BAA4B,CAAC;AAKpC;;;;GAIG;AACH,eAAO,MAAM,gBAAgB;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;oBAqE3B,CAAC;AAEH,4EAA4E;AAC5E,MAAM,MAAM,UAAU,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,gBAAgB,CAAC,CAAC;AAC1D;;;;;;;;;;GAUG;AACH,MAAM,MAAM,iBAAiB,GAC1B;IACA,MAAM,EAAE,MAAM,CAAC;IACf,OAAO,CAAC,EAAE,iBAAiB,EAAE,CAAC;IAC9B,wEAAwE;IACxE,QAAQ,CAAC,EAAE,MAAM,CAAC,MAAM,EAAE,OAAO,CAAC,GAAG;QAAE,iBAAiB,CAAC,EAAE,MAAM,CAAC,MAAM,EAAE,OAAO,CAAC,CAAA;KAAE,CAAC;CACpF,GACD;IAAE,KAAK,EAAE,MAAM,CAAC;IAAC,QAAQ,CAAC,EAAE,IAAI,CAAC;IAAC,QAAQ,CAAC,EAAE,MAAM,CAAC,MAAM,EAAE,OAAO,CAAC,CAAA;CAAE,GACtE;IAAE,MAAM,EAAE,kBAAkB,CAAA;CAAE,GAC9B,SAAS,CAAC;AAEb,4CAA4C;AAC5C,MAAM,MAAM,QAAQ,GAAG,CAAC,CAAC,MAAM,CAAC,OAAO,gBAAgB,CAAC,CAAC;AAEzD,iFAAiF;AACjF,wBAAgB,QAAQ,CAAC,IAAI,EAAE,OAAO,EAAE,KAAK,EAAE,MAAM,GAAG,QAAQ,CAO/D"}
|
|
@@ -1,23 +1,66 @@
|
|
|
1
1
|
import type { AgentInput } from "../../protocol/index.ts";
|
|
2
|
-
import { type AgentExecuteOptions, BaseAgent, type RawAgentEvent, type SteerOutcome, type SteerRequest } from "./base.ts";
|
|
2
|
+
import { type AgentExecuteOptions, BaseAgent, type CancelResult, type RawAgentEvent, type SteerOutcome, type SteerRequest } from "./base.ts";
|
|
3
3
|
/** Hands one steer to the harness's native turn. */
|
|
4
4
|
export type DeliverSteer = (request: SteerRequest) => SteerOutcome | Promise<SteerOutcome>;
|
|
5
5
|
/**
|
|
6
|
-
*
|
|
7
|
-
*
|
|
8
|
-
* to
|
|
6
|
+
* How a running turn stops for a cancel: it sends the turn's native stop, if
|
|
7
|
+
* the turn's abort has not already, and resolves whether the agent confirmed
|
|
8
|
+
* that the turn stopped. It must be safe to call again: a cancel after one
|
|
9
|
+
* that was not confirmed calls it again (Claude then sends a new interrupt;
|
|
10
|
+
* Codex answers its one acknowledgement, ACP waits for its one prompt).
|
|
11
|
+
*/
|
|
12
|
+
export type StopTurn = () => Promise<boolean>;
|
|
13
|
+
export interface SessionAgentOptions {
|
|
14
|
+
/**
|
|
15
|
+
* How long a cancel waits for the agent to confirm its turn stopped before
|
|
16
|
+
* it answers `confirmed: false` (`CANCEL_CONFIRM_MS` by default).
|
|
17
|
+
*/
|
|
18
|
+
cancelConfirmMs?: number;
|
|
19
|
+
}
|
|
20
|
+
/**
|
|
21
|
+
* The execution lifecycle the engine's own harnesses extend: one turn owns a
|
|
22
|
+
* logical session from preparation through native cleanup, with steering,
|
|
23
|
+
* the conversation it resumes and the answer to its cancel. It is not
|
|
24
|
+
* exported while its design is a Draft (LLP 0016); a product's own harness
|
|
25
|
+
* extends `BaseAgent`, the public base.
|
|
9
26
|
*/
|
|
10
27
|
export declare abstract class SessionAgent extends BaseAgent {
|
|
11
28
|
private terminated;
|
|
12
|
-
/**
|
|
13
|
-
|
|
29
|
+
/**
|
|
30
|
+
* The turn each session executes. Cancel/release can return before
|
|
31
|
+
* execution drains; only finally relinquishes ownership.
|
|
32
|
+
*/
|
|
33
|
+
private readonly running;
|
|
14
34
|
/** Conversation identity outlives subprocess eviction and failed startup. */
|
|
15
35
|
private readonly conversations;
|
|
16
36
|
/** The running turn's input, per session. */
|
|
17
37
|
private readonly steering;
|
|
18
38
|
/** The last turn each session executed: a steer for it comes too late. */
|
|
19
39
|
private readonly executed;
|
|
40
|
+
protected readonly cancelConfirmMs: number;
|
|
41
|
+
constructor(options?: SessionAgentOptions);
|
|
20
42
|
execute(input: AgentInput, options: AgentExecuteOptions): AsyncIterableIterator<RawAgentEvent>;
|
|
43
|
+
/**
|
|
44
|
+
* Abort the session's turn, and answer whether it stopped within
|
|
45
|
+
* `cancelConfirmMs`: as its stop says (`cancelWith`), or, while it has
|
|
46
|
+
* none, by its end. A cancel while another is in flight shares its answer;
|
|
47
|
+
* one after it asks again, with a window of its own. With no turn, what
|
|
48
|
+
* the harness still has to stop (`stopWithoutTurn`) decides; with nothing
|
|
49
|
+
* to stop it is confirmed.
|
|
50
|
+
*/
|
|
51
|
+
cancel(sessionId: string): Promise<CancelResult>;
|
|
52
|
+
/**
|
|
53
|
+
* How the turn stops for a cancel (`StopTurn`), from when it has a native
|
|
54
|
+
* stop to send. A cancel calls it once it aborted the turn; until a turn
|
|
55
|
+
* registers one, its cancel is confirmed by the turn's end.
|
|
56
|
+
*/
|
|
57
|
+
protected cancelWith(options: AgentExecuteOptions, stop: StopTurn): void;
|
|
58
|
+
/**
|
|
59
|
+
* What a cancel with no turn running still has to stop, if anything:
|
|
60
|
+
* whether that stopped. Nothing by default.
|
|
61
|
+
*/
|
|
62
|
+
protected stopWithoutTurn(_sessionId: string): Promise<boolean> | undefined;
|
|
63
|
+
private confirmed;
|
|
21
64
|
/**
|
|
22
65
|
* Steer the session's turn. The runtime steers only a turn it admitted, so
|
|
23
66
|
* a steer for a turn not executing yet waits for it; until the native turn
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"session-agent.d.ts","sourceRoot":"","sources":["../../../../src/core/agents/session-agent.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,UAAU,EAAE,MAAM,yBAAyB,CAAC;
|
|
1
|
+
{"version":3,"file":"session-agent.d.ts","sourceRoot":"","sources":["../../../../src/core/agents/session-agent.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,UAAU,EAAE,MAAM,yBAAyB,CAAC;AAG1D,OAAO,EACN,KAAK,mBAAmB,EACxB,SAAS,EAET,KAAK,YAAY,EACjB,KAAK,aAAa,EAClB,KAAK,YAAY,EACjB,KAAK,YAAY,EACjB,MAAM,WAAW,CAAC;AAGnB,oDAAoD;AACpD,MAAM,MAAM,YAAY,GAAG,CAAC,OAAO,EAAE,YAAY,KAAK,YAAY,GAAG,OAAO,CAAC,YAAY,CAAC,CAAC;AAW3F;;;;;;GAMG;AACH,MAAM,MAAM,QAAQ,GAAG,MAAM,OAAO,CAAC,OAAO,C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C,YAAY,CAAC,OAAO,EAAE,mBAAmB,GAAG,IAAI;IAK1D,4FAA4F;IAC5F,SAAS,CAAC,QAAQ,CAAC,WAAW,CAC7B,KAAK,EAAE,UAAU,EACjB,OAAO,EAAE,mBAAmB,EAC5B,UAAU,EAAE,eAAe,GACzB,qBAAqB,CAAC,aAAa,CAAC;IAEvC,OAAO,CAAC,qBAAqB;IAiCd,OAAO,CAAC,SAAS,EAAE,MAAM,GAAG,OAAO,CAAC,IAAI,CAAC;IAOzC,YAAY,IAAI,OAAO,CAAC,IAAI,CAAC;CAO5C"}
|
|
@@ -14,8 +14,11 @@
|
|
|
14
14
|
* sink and the turn continued.
|
|
15
15
|
* - `proxyUpstreamAuth` — the BYOK proxy's upstream rejected the real key
|
|
16
16
|
* (401/403): the stored key is invalid/expired, not the placeholder.
|
|
17
|
+
* - `claudeSdkMismatch` — the Claude SDK that loaded and the CLI build it
|
|
18
|
+
* drives are different releases (`detail: {sdkVersion, cliVersion,
|
|
19
|
+
* cliPath}`); said once per process for each pair, and the turn runs.
|
|
17
20
|
*/
|
|
18
|
-
export type DiagnosticKind = "interruptTimeout" | "sinkError" | "proxyUpstreamAuth" | (string & {});
|
|
21
|
+
export type DiagnosticKind = "interruptTimeout" | "sinkError" | "proxyUpstreamAuth" | "claudeSdkMismatch" | (string & {});
|
|
19
22
|
export interface EngineDiagnostic {
|
|
20
23
|
type: DiagnosticKind;
|
|
21
24
|
sessionId?: string;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"diagnostics.d.ts","sourceRoot":"","sources":["../../../src/core/diagnostics.ts"],"names":[],"mappings":"AAAA;;;;;;GAMG;AAEH
|
|
1
|
+
{"version":3,"file":"diagnostics.d.ts","sourceRoot":"","sources":["../../../src/core/diagnostics.ts"],"names":[],"mappings":"AAAA;;;;;;GAMG;AAEH;;;;;;;;;;;;GAYG;AACH,MAAM,MAAM,cAAc,GACvB,kBAAkB,GAClB,WAAW,GACX,mBAAmB,GACnB,mBAAmB,GACnB,CAAC,MAAM,GAAG,EAAE,CAAC,CAAC;AAEjB,MAAM,WAAW,gBAAgB;IAChC,IAAI,EAAE,cAAc,CAAC;IACrB,SAAS,CAAC,EAAE,MAAM,CAAC;IACnB,OAAO,EAAE,MAAM,CAAC;IAChB,MAAM,CAAC,EAAE,OAAO,CAAC;IACjB,SAAS,EAAE,MAAM,CAAC;CAClB;AAED;;;;GAIG;AACH,MAAM,MAAM,iBAAiB,GAAG,CAAC,UAAU,EAAE,gBAAgB,KAAK,IAAI,CAAC;AAEvE;;uEAEuE;AACvE,wBAAgB,cAAc,CAC7B,OAAO,EAAE,iBAAiB,GAAG,SAAS,EACtC,UAAU,EAAE,IAAI,CAAC,gBAAgB,EAAE,WAAW,CAAC,GAC7C,IAAI,CAUN"}
|
|
@@ -16,12 +16,17 @@ export { ClaudeCodeAgent } from "./agents/claude-code/claude-agent.ts";
|
|
|
16
16
|
export type { ClaudeCodeAgentOptions, ClaudeHooksFactory, ClaudeSdkOptionOverrides, ClaudeSessionEndReason, ClaudeSessionExtras, ClaudeToolPolicy, SdkMcpServers, } from "./agents/claude-code/options.ts";
|
|
17
17
|
export { createClaudeCodeTransformer } from "./agents/claude-code/adapter.ts";
|
|
18
18
|
export { CodexAppServerAgent, type CodexAppServerAgentOptions, } from "./agents/codex-app-server/codex-agent.ts";
|
|
19
|
+
export type { CodexBuiltInTools } from "./agents/codex-app-server/options.ts";
|
|
19
20
|
export { createCodexAppServerTransformer } from "./agents/codex-app-server/adapter.ts";
|
|
20
21
|
export type { CodexConnection } from "./agents/codex-app-server/client.ts";
|
|
21
22
|
export type { CodexNotification } from "./agents/codex-app-server/protocol.ts";
|
|
22
23
|
export { AcpAgent, type AcpAgentOptions, } from "./agents/acp/acp-agent.ts";
|
|
23
24
|
export { createAcpTransformer } from "./agents/acp/adapter.ts";
|
|
24
25
|
export type { AcpClientOptions, AcpLaunch } from "./agents/acp/client.ts";
|
|
26
|
+
export { ScriptedAgent, type ScriptedAgentOptions, type ScriptedTurnConfig, type ScriptedTurnRequest, type ScriptSource, } from "./agents/scripted/scripted-agent.ts";
|
|
27
|
+
export { type ScriptedEvent, createScriptedTransformer } from "./agents/scripted/adapter.ts";
|
|
28
|
+
export type { ScriptStep, ScriptStepOutcome } from "./agents/scripted/steps.ts";
|
|
29
|
+
export { scriptedBySession, scriptedFile, scriptedQueue } from "./agents/scripted/scripts.ts";
|
|
25
30
|
export { KNOWN_ACP_AGENTS, resolveAcpLaunch, resolveHarnessName, } from "./agents/acp/known-agents.ts";
|
|
26
31
|
export { type CreateRegistryOptions, createAgentRegistry, createAgentRuntime, } from "./presets.ts";
|
|
27
32
|
export { AgentServerError, McpUnavailableError, SessionResumeError, CliNotFoundError, CliProvisionError, HarnessNotAvailableError, InvalidRequestError, TurnConflictError, TurnForgottenError, UnknownLoginError, TurnActiveError, UnsupportedAttachmentError, } from "./utils/errors.ts";
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/core/index.ts"],"names":[],"mappings":"AAGA,OAAO,EAAE,YAAY,EAAE,KAAK,aAAa,EAAE,MAAM,4BAA4B,CAAC;AAC9E,YAAY,EAAE,UAAU,EAAE,MAAM,mBAAmB,CAAC;AACpD,YAAY,EAAE,iBAAiB,EAAE,gBAAgB,EAAE,MAAM,kBAAkB,CAAC;AAC5E,OAAO,EACN,KAAK,SAAS,EACd,cAAc,EACd,YAAY,EACZ,cAAc,EACd,UAAU,EACV,OAAO,GACP,MAAM,yBAAyB,CAAC;AAGjC,OAAO,EACN,KAAK,KAAK,EACV,KAAK,mBAAmB,EACxB,KAAK,gBAAgB,EACrB,KAAK,YAAY,EACjB,KAAK,YAAY,EACjB,KAAK,kBAAkB,EACvB,KAAK,yBAAyB,EAC9B,KAAK,iBAAiB,EACtB,KAAK,kBAAkB,EACvB,KAAK,wBAAwB,EAC7B,KAAK,aAAa,EAClB,KAAK,YAAY,EACjB,KAAK,YAAY,EACjB,SAAS,GAC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0BAA0B,GAC1B,MAAM,mBAAmB,CAAC;AAG3B,cAAc,sBAAsB,CAAC"}
|
|
@@ -5,15 +5,18 @@ import { type CodexAppServerAgentOptions } from "./agents/codex-app-server/codex
|
|
|
5
5
|
import type { CredentialSource } from "./agents/credentials.ts";
|
|
6
6
|
import type { InheritConfig } from "./agents/inherit-config.ts";
|
|
7
7
|
import { AgentRegistry } from "./agents/registry.ts";
|
|
8
|
+
import { type ScriptedAgentOptions } from "./agents/scripted/scripted-agent.ts";
|
|
8
9
|
import type { DiagnosticHandler } from "./diagnostics.ts";
|
|
9
10
|
import { type NativeProcessOptions } from "./processes/native-processes.ts";
|
|
10
11
|
import { type ProvisionOptions } from "./provision/provisioner.ts";
|
|
11
12
|
import { AgentRuntime } from "./runtime/agent-runtime.ts";
|
|
13
|
+
/** What the registry gives every harness that has the notion, and takes from none of their options. */
|
|
14
|
+
type SaidOnce = "processes" | "resolveCliPath" | "inheritConfig" | "idleTimeoutMs" | "credentials" | "cancelConfirmMs" | "cancelGraceMs";
|
|
12
15
|
export interface CreateRegistryOptions {
|
|
13
16
|
/**
|
|
14
17
|
* Which harnesses to register. Defaults to `claude-code` and
|
|
15
18
|
* `codex-app-server`, plus `acp` when `acp` config is provided (it has no
|
|
16
|
-
* default launch).
|
|
19
|
+
* default launch), and `scripted` when `scripted` is (it has no script).
|
|
17
20
|
*/
|
|
18
21
|
harnesses?: AgentHarness[];
|
|
19
22
|
/**
|
|
@@ -25,24 +28,46 @@ export interface CreateRegistryOptions {
|
|
|
25
28
|
* ACP harness configuration. Required to enable `acp`: the harness needs an
|
|
26
29
|
* operator-supplied launch command for the target agent (never wire-driven).
|
|
27
30
|
*/
|
|
28
|
-
acp?: Omit<AcpAgentOptions,
|
|
31
|
+
acp?: Omit<AcpAgentOptions, SaidOnce>;
|
|
32
|
+
/**
|
|
33
|
+
* The scripted harness's script (LLP 0016, The scripted harness): steps
|
|
34
|
+
* played instead of a model, under the harness's own name `scripted`.
|
|
35
|
+
* Required to enable it, so no engine answers from a script it was not given.
|
|
36
|
+
*/
|
|
37
|
+
scripted?: Omit<ScriptedAgentOptions, "processes">;
|
|
29
38
|
/**
|
|
30
39
|
* Claude harness embed-tier options (e.g. in-process `sdkMcpServers`).
|
|
31
40
|
* `resolveCliPath` stays provisioner-wired here.
|
|
32
41
|
*/
|
|
33
|
-
claudeCode?: Omit<ClaudeCodeAgentOptions,
|
|
42
|
+
claudeCode?: Omit<ClaudeCodeAgentOptions, SaidOnce>;
|
|
34
43
|
/**
|
|
35
44
|
* Credentials the product holds (LLP 0012), asked before each turn of
|
|
36
45
|
* every harness that takes them, and again with a token the harness
|
|
37
46
|
* refused: Claude Code runs on them through the engine's own proxy, Codex
|
|
38
47
|
* holds them in memory. `undefined` from it runs a turn on the CLI's own
|
|
39
|
-
* login. `credentialsFromUrl` asks a product's credential endpoint.
|
|
40
|
-
* harness's own `credentials` win.
|
|
48
|
+
* login. `credentialsFromUrl` asks a product's credential endpoint.
|
|
41
49
|
* Operator-level only.
|
|
42
50
|
*/
|
|
43
51
|
credentials?: CredentialSource;
|
|
52
|
+
/**
|
|
53
|
+
* How long a session's agent process may wait unused between turns before
|
|
54
|
+
* it is ended (5 minutes by default); 0 never ends one for idleness, and
|
|
55
|
+
* one that holds the only copy of its conversation is never ended for it.
|
|
56
|
+
*/
|
|
57
|
+
idleTimeoutMs?: number;
|
|
58
|
+
/**
|
|
59
|
+
* How long a cancel waits for the agent to confirm its turn stopped before
|
|
60
|
+
* it answers `confirmed: false` (`CANCEL_CONFIRM_MS`, 2 s, by default).
|
|
61
|
+
*/
|
|
62
|
+
cancelConfirmMs?: number;
|
|
63
|
+
/**
|
|
64
|
+
* How long after a cancel the engine ends an agent that has not stopped:
|
|
65
|
+
* 2 s on Codex and 10 s on an ACP agent by default. Claude is not ended
|
|
66
|
+
* for it (LLP 0016, decision 11).
|
|
67
|
+
*/
|
|
68
|
+
cancelGraceMs?: number;
|
|
44
69
|
/** Codex embed-tier authentication and process options; CLI resolution stays provisioner-owned. */
|
|
45
|
-
codexAppServer?: Omit<CodexAppServerAgentOptions,
|
|
70
|
+
codexAppServer?: Omit<CodexAppServerAgentOptions, SaidOnce>;
|
|
46
71
|
/**
|
|
47
72
|
* What ambient configuration a turn loads by itself when it starts
|
|
48
73
|
* (LLP 0001, D17): `all` (the default) the host user's and the
|
|
@@ -77,4 +102,5 @@ export interface CreateRegistryOptions {
|
|
|
77
102
|
export declare function createAgentRegistry(opts?: CreateRegistryOptions): AgentRegistry;
|
|
78
103
|
/** Convenience: a ready-to-use runtime with the standard harnesses. */
|
|
79
104
|
export declare function createAgentRuntime(opts?: CreateRegistryOptions): AgentRuntime;
|
|
105
|
+
export {};
|
|
80
106
|
//# sourceMappingURL=presets.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"presets.d.ts","sourceRoot":"","sources":["../../../src/core/presets.ts"],"names":[],"mappings":"AAAA,OAAO,EAAmB,KAAK,YAAY,EAAE,MAAM,sBAAsB,CAAC;AAC1E,OAAO,EAAY,KAAK,eAAe,EAAE,MAAM,2BAA2B,CAAC;AAK3E,OAAO,KAAK,EAAE,sBAAsB,EAAE,MAAM,iCAAiC,CAAC;AAE9E,OAAO,EAEN,KAAK,0BAA0B,EAC/B,MAAM,0CAA0C,CAAC;AAClD,OAAO,KAAK,EAAE,gBAAgB,EAAE,MAAM,yBAAyB,CAAC;AAChE,OAAO,KAAK,EAAE,aAAa,EAAE,MAAM,4BAA4B,CAAC;AAChE,OAAO,EAAE,aAAa,EAAE,MAAM,sBAAsB,CAAC;AAErD,OAAO,KAAK,EAAE,iBAAiB,EAAE,MAAM,kBAAkB,CAAC;AAC1D,OAAO,EAAE,KAAK,oBAAoB,EAAmB,MAAM,iCAAiC,CAAC;AAC7F,OAAO,EAAkB,KAAK,gBAAgB,EAAE,MAAM,4BAA4B,CAAC;AAEnF,OAAO,EAAE,YAAY,EAAE,MAAM,4BAA4B,CAAC;
|
|
1
|
+
{"version":3,"file":"presets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