@namzu/sdk 49.0.0 → 50.0.0
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 +507 -0
- package/README.md +137 -125
- package/dist/agents/QueryAgent.d.ts.map +1 -1
- package/dist/agents/QueryAgent.js +1 -0
- package/dist/agents/QueryAgent.js.map +1 -1
- package/dist/agents/examples/SupervisorAgent.d.ts.map +1 -1
- package/dist/agents/examples/SupervisorAgent.js +1 -0
- package/dist/agents/examples/SupervisorAgent.js.map +1 -1
- package/dist/agents/runAgent.d.ts +2 -0
- package/dist/agents/runAgent.d.ts.map +1 -1
- package/dist/agents/runAgent.js +1 -0
- package/dist/agents/runAgent.js.map +1 -1
- package/dist/authorization/shell-lexer.d.ts.map +1 -1
- package/dist/authorization/shell-lexer.js +16 -1
- package/dist/authorization/shell-lexer.js.map +1 -1
- package/dist/bridge/acp/permission.d.ts +8 -2
- package/dist/bridge/acp/permission.d.ts.map +1 -1
- package/dist/bridge/acp/permission.js +1 -0
- package/dist/bridge/acp/permission.js.map +1 -1
- package/dist/bridge/acp/server.d.ts +25 -1
- package/dist/bridge/acp/server.d.ts.map +1 -1
- package/dist/bridge/acp/server.js +205 -21
- package/dist/bridge/acp/server.js.map +1 -1
- package/dist/bridge/acp/tasks.d.ts +5 -0
- package/dist/bridge/acp/tasks.d.ts.map +1 -0
- package/dist/bridge/acp/tasks.js +19 -0
- package/dist/bridge/acp/tasks.js.map +1 -0
- package/dist/bridge/acp/update.d.ts.map +1 -1
- package/dist/bridge/acp/update.js +148 -13
- package/dist/bridge/acp/update.js.map +1 -1
- package/dist/config/runtime.d.ts +31 -31
- package/dist/connector/mcp/adapter.d.ts.map +1 -1
- package/dist/connector/mcp/adapter.js +11 -4
- package/dist/connector/mcp/adapter.js.map +1 -1
- package/dist/connector/mcp/client.d.ts.map +1 -1
- package/dist/connector/mcp/client.js +6 -3
- package/dist/connector/mcp/client.js.map +1 -1
- package/dist/constants/acp/index.d.ts +3 -0
- package/dist/constants/acp/index.d.ts.map +1 -1
- package/dist/constants/acp/index.js +3 -0
- package/dist/constants/acp/index.js.map +1 -1
- package/dist/contracts/a2a.d.ts +80 -80
- package/dist/contracts/schemas.d.ts +2 -2
- package/dist/contracts/session/schemas.d.ts +10 -10
- package/dist/manager/agent/lifecycle.d.ts +11 -0
- package/dist/manager/agent/lifecycle.d.ts.map +1 -1
- package/dist/manager/agent/lifecycle.js +178 -3
- package/dist/manager/agent/lifecycle.js.map +1 -1
- package/dist/manager/plan/lifecycle.d.ts +7 -8
- package/dist/manager/plan/lifecycle.d.ts.map +1 -1
- package/dist/manager/plan/lifecycle.js +7 -8
- package/dist/manager/plan/lifecycle.js.map +1 -1
- package/dist/manager/resident/consumption.d.ts +8 -8
- package/dist/manager/resident/learning-cycle.d.ts +2 -2
- package/dist/manager/resident/learning-observation.d.ts +12 -12
- package/dist/manager/resident/learning.d.ts +82 -82
- package/dist/manager/resident/outbox.d.ts +8 -8
- package/dist/manager/resident/proposal.d.ts +2 -2
- package/dist/manager/resident/store.d.ts +10 -10
- package/dist/manager/session/attribution.d.ts +1 -0
- package/dist/manager/session/attribution.d.ts.map +1 -1
- package/dist/manager/session/attribution.js +9 -1
- package/dist/manager/session/attribution.js.map +1 -1
- package/dist/manager/session/streamed-message-identity.d.ts +6 -0
- package/dist/manager/session/streamed-message-identity.d.ts.map +1 -0
- package/dist/manager/session/streamed-message-identity.js +14 -0
- package/dist/manager/session/streamed-message-identity.js.map +1 -0
- package/dist/manager/session/turn-recorder.d.ts.map +1 -1
- package/dist/manager/session/turn-recorder.js +4 -3
- package/dist/manager/session/turn-recorder.js.map +1 -1
- package/dist/pals/activity/causality.d.ts +23 -0
- package/dist/pals/activity/causality.d.ts.map +1 -0
- package/dist/pals/activity/causality.js +205 -0
- package/dist/pals/activity/causality.js.map +1 -0
- package/dist/pals/activity/projection.d.ts +5 -0
- package/dist/pals/activity/projection.d.ts.map +1 -0
- package/dist/pals/activity/projection.js +79 -0
- package/dist/pals/activity/projection.js.map +1 -0
- package/dist/pals/activity/source.d.ts +16 -0
- package/dist/pals/activity/source.d.ts.map +1 -0
- package/dist/pals/activity/source.js +235 -0
- package/dist/pals/activity/source.js.map +1 -0
- package/dist/pals/activity/subscription-policy.d.ts +38 -0
- package/dist/pals/activity/subscription-policy.d.ts.map +1 -0
- package/dist/pals/activity/subscription-policy.js +183 -0
- package/dist/pals/activity/subscription-policy.js.map +1 -0
- package/dist/pals/activity/subscription-schema.d.ts +353 -0
- package/dist/pals/activity/subscription-schema.d.ts.map +1 -0
- package/dist/pals/activity/subscription-schema.js +24 -0
- package/dist/pals/activity/subscription-schema.js.map +1 -0
- package/dist/pals/activity/subscription-store.d.ts +25 -0
- package/dist/pals/activity/subscription-store.d.ts.map +1 -0
- package/dist/pals/activity/subscription-store.js +152 -0
- package/dist/pals/activity/subscription-store.js.map +1 -0
- package/dist/pals/activity/subscription-types.d.ts +42 -0
- package/dist/pals/activity/subscription-types.d.ts.map +1 -0
- package/dist/pals/activity/subscription-types.js +2 -0
- package/dist/pals/activity/subscription-types.js.map +1 -0
- package/dist/pals/activity/subscriptions.d.ts +32 -0
- package/dist/pals/activity/subscriptions.d.ts.map +1 -0
- package/dist/pals/activity/subscriptions.js +151 -0
- package/dist/pals/activity/subscriptions.js.map +1 -0
- package/dist/pals/activity/types.d.ts +77 -0
- package/dist/pals/activity/types.d.ts.map +1 -0
- package/dist/pals/activity/types.js +2 -0
- package/dist/pals/activity/types.js.map +1 -0
- package/dist/pals/channels/ingress.d.ts +9 -0
- package/dist/pals/channels/ingress.d.ts.map +1 -0
- package/dist/pals/channels/ingress.js +131 -0
- package/dist/pals/channels/ingress.js.map +1 -0
- package/dist/pals/channels/routes.d.ts +20 -0
- package/dist/pals/channels/routes.d.ts.map +1 -0
- package/dist/pals/channels/routes.js +111 -0
- package/dist/pals/channels/routes.js.map +1 -0
- package/dist/pals/channels/routing.d.ts +37 -0
- package/dist/pals/channels/routing.d.ts.map +1 -0
- package/dist/pals/channels/routing.js +150 -0
- package/dist/pals/channels/routing.js.map +1 -0
- package/dist/pals/channels/schema.d.ts +234 -0
- package/dist/pals/channels/schema.d.ts.map +1 -0
- package/dist/pals/channels/schema.js +94 -0
- package/dist/pals/channels/schema.js.map +1 -0
- package/dist/pals/channels/types.d.ts +115 -0
- package/dist/pals/channels/types.d.ts.map +1 -0
- package/dist/pals/channels/types.js +2 -0
- package/dist/pals/channels/types.js.map +1 -0
- package/dist/pals/communication/broker.d.ts +8 -0
- package/dist/pals/communication/broker.d.ts.map +1 -0
- package/dist/pals/communication/broker.js +121 -0
- package/dist/pals/communication/broker.js.map +1 -0
- package/dist/pals/communication/dispatch.d.ts +4 -0
- package/dist/pals/communication/dispatch.d.ts.map +1 -0
- package/dist/pals/communication/dispatch.js +57 -0
- package/dist/pals/communication/dispatch.js.map +1 -0
- package/dist/pals/communication/inbound.d.ts +9 -0
- package/dist/pals/communication/inbound.d.ts.map +1 -0
- package/dist/pals/communication/inbound.js +155 -0
- package/dist/pals/communication/inbound.js.map +1 -0
- package/dist/pals/communication/ingress-dispatch.d.ts +5 -0
- package/dist/pals/communication/ingress-dispatch.d.ts.map +1 -0
- package/dist/pals/communication/ingress-dispatch.js +51 -0
- package/dist/pals/communication/ingress-dispatch.js.map +1 -0
- package/dist/pals/communication/ingress-inbound.d.ts +9 -0
- package/dist/pals/communication/ingress-inbound.d.ts.map +1 -0
- package/dist/pals/communication/ingress-inbound.js +222 -0
- package/dist/pals/communication/ingress-inbound.js.map +1 -0
- package/dist/pals/communication/ingress-schema.d.ts +7829 -0
- package/dist/pals/communication/ingress-schema.d.ts.map +1 -0
- package/dist/pals/communication/ingress-schema.js +479 -0
- package/dist/pals/communication/ingress-schema.js.map +1 -0
- package/dist/pals/communication/ingress-types.d.ts +187 -0
- package/dist/pals/communication/ingress-types.d.ts.map +1 -0
- package/dist/pals/communication/ingress-types.js +73 -0
- package/dist/pals/communication/ingress-types.js.map +1 -0
- package/dist/pals/communication/operator.d.ts +75 -0
- package/dist/pals/communication/operator.d.ts.map +1 -0
- package/dist/pals/communication/operator.js +217 -0
- package/dist/pals/communication/operator.js.map +1 -0
- package/dist/pals/communication/policy.d.ts +41 -0
- package/dist/pals/communication/policy.d.ts.map +1 -0
- package/dist/pals/communication/policy.js +138 -0
- package/dist/pals/communication/policy.js.map +1 -0
- package/dist/pals/communication/schema.d.ts +2000 -0
- package/dist/pals/communication/schema.d.ts.map +1 -0
- package/dist/pals/communication/schema.js +170 -0
- package/dist/pals/communication/schema.js.map +1 -0
- package/dist/pals/communication/store.d.ts +61 -0
- package/dist/pals/communication/store.d.ts.map +1 -0
- package/dist/pals/communication/store.js +450 -0
- package/dist/pals/communication/store.js.map +1 -0
- package/dist/pals/communication/tools.d.ts +23 -0
- package/dist/pals/communication/tools.d.ts.map +1 -0
- package/dist/pals/communication/tools.js +107 -0
- package/dist/pals/communication/tools.js.map +1 -0
- package/dist/pals/communication/types.d.ts +168 -0
- package/dist/pals/communication/types.d.ts.map +1 -0
- package/dist/pals/communication/types.js +24 -0
- package/dist/pals/communication/types.js.map +1 -0
- package/dist/pals/communication/verify.d.ts +22 -0
- package/dist/pals/communication/verify.d.ts.map +1 -0
- package/dist/pals/communication/verify.js +142 -0
- package/dist/pals/communication/verify.js.map +1 -0
- package/dist/pals/lifecycle.d.ts +37 -0
- package/dist/pals/lifecycle.d.ts.map +1 -0
- package/dist/pals/lifecycle.js +22 -0
- package/dist/pals/lifecycle.js.map +1 -0
- package/dist/pals/prompt.d.ts +30 -0
- package/dist/pals/prompt.d.ts.map +1 -0
- package/dist/pals/prompt.js +65 -0
- package/dist/pals/prompt.js.map +1 -0
- package/dist/pals/reference-images.d.ts +44 -0
- package/dist/pals/reference-images.d.ts.map +1 -0
- package/dist/pals/reference-images.js +248 -0
- package/dist/pals/reference-images.js.map +1 -0
- package/dist/pals/runtime.d.ts +46 -0
- package/dist/pals/runtime.d.ts.map +1 -0
- package/dist/pals/runtime.js +624 -0
- package/dist/pals/runtime.js.map +1 -0
- package/dist/pals/store.d.ts +26 -0
- package/dist/pals/store.d.ts.map +1 -0
- package/dist/pals/store.js +334 -0
- package/dist/pals/store.js.map +1 -0
- package/dist/pals/types.d.ts +145 -0
- package/dist/pals/types.d.ts.map +1 -0
- package/dist/pals/types.js +2 -0
- package/dist/pals/types.js.map +1 -0
- package/dist/peers/envelope.js +1 -1
- package/dist/peers/envelope.js.map +1 -1
- package/dist/peers/protocol.d.ts +83 -83
- package/dist/peers/record.d.ts +10 -10
- package/dist/plugin/shell-hook.d.ts.map +1 -1
- package/dist/plugin/shell-hook.js +7 -2
- package/dist/plugin/shell-hook.js.map +1 -1
- package/dist/process/kill-tree.d.ts.map +1 -1
- package/dist/process/kill-tree.js +9 -1
- package/dist/process/kill-tree.js.map +1 -1
- package/dist/provider/errors.d.ts +19 -0
- package/dist/provider/errors.d.ts.map +1 -1
- package/dist/provider/errors.js +123 -2
- package/dist/provider/errors.js.map +1 -1
- package/dist/public-runtime.d.ts +41 -13
- package/dist/public-runtime.d.ts.map +1 -1
- package/dist/public-runtime.js +35 -7
- package/dist/public-runtime.js.map +1 -1
- package/dist/public-tools.d.ts +8 -3
- package/dist/public-tools.d.ts.map +1 -1
- package/dist/public-tools.js +8 -3
- package/dist/public-tools.js.map +1 -1
- package/dist/public-types.d.ts +27 -7
- package/dist/public-types.d.ts.map +1 -1
- package/dist/registry/tool/presentation.d.ts +1 -0
- package/dist/registry/tool/presentation.d.ts.map +1 -1
- package/dist/registry/tool/presentation.js +9 -7
- package/dist/registry/tool/presentation.js.map +1 -1
- package/dist/runtime/harness-session/index.d.ts +5 -0
- package/dist/runtime/harness-session/index.d.ts.map +1 -0
- package/dist/runtime/harness-session/index.js +928 -0
- package/dist/runtime/harness-session/index.js.map +1 -0
- package/dist/runtime/harness-session/journal.d.ts +37 -0
- package/dist/runtime/harness-session/journal.d.ts.map +1 -0
- package/dist/runtime/harness-session/journal.js +177 -0
- package/dist/runtime/harness-session/journal.js.map +1 -0
- package/dist/runtime/harness-session/saved-view.d.ts +8 -0
- package/dist/runtime/harness-session/saved-view.d.ts.map +1 -0
- package/dist/runtime/harness-session/saved-view.js +112 -0
- package/dist/runtime/harness-session/saved-view.js.map +1 -0
- package/dist/runtime/jobs/awaited-jobs.d.ts +2 -1
- package/dist/runtime/jobs/awaited-jobs.d.ts.map +1 -1
- package/dist/runtime/jobs/awaited-jobs.js +2 -1
- package/dist/runtime/jobs/awaited-jobs.js.map +1 -1
- package/dist/runtime/jobs/registry.d.ts +56 -1
- package/dist/runtime/jobs/registry.d.ts.map +1 -1
- package/dist/runtime/jobs/registry.js +351 -34
- package/dist/runtime/jobs/registry.js.map +1 -1
- package/dist/runtime/query/abandon-turn.d.ts +12 -1
- package/dist/runtime/query/abandon-turn.d.ts.map +1 -1
- package/dist/runtime/query/abandon-turn.js +3 -1
- package/dist/runtime/query/abandon-turn.js.map +1 -1
- package/dist/runtime/query/checkpoint.d.ts +4 -0
- package/dist/runtime/query/checkpoint.d.ts.map +1 -1
- package/dist/runtime/query/checkpoint.js +10 -0
- package/dist/runtime/query/checkpoint.js.map +1 -1
- package/dist/runtime/query/durable-inbound.d.ts +5 -0
- package/dist/runtime/query/durable-inbound.d.ts.map +1 -0
- package/dist/runtime/query/durable-inbound.js +89 -0
- package/dist/runtime/query/durable-inbound.js.map +1 -0
- package/dist/runtime/query/events.d.ts +4 -0
- package/dist/runtime/query/events.d.ts.map +1 -1
- package/dist/runtime/query/events.js +22 -5
- package/dist/runtime/query/events.js.map +1 -1
- package/dist/runtime/query/executor/tool-call-admission.d.ts +5 -1
- package/dist/runtime/query/executor/tool-call-admission.d.ts.map +1 -1
- package/dist/runtime/query/executor/tool-call-admission.js +85 -13
- package/dist/runtime/query/executor/tool-call-admission.js.map +1 -1
- package/dist/runtime/query/executor.d.ts +41 -18
- package/dist/runtime/query/executor.d.ts.map +1 -1
- package/dist/runtime/query/executor.js +227 -114
- package/dist/runtime/query/executor.js.map +1 -1
- package/dist/runtime/query/index.d.ts +3 -0
- package/dist/runtime/query/index.d.ts.map +1 -1
- package/dist/runtime/query/index.js +21 -4
- package/dist/runtime/query/index.js.map +1 -1
- package/dist/runtime/query/iteration/index.d.ts +18 -6
- package/dist/runtime/query/iteration/index.d.ts.map +1 -1
- package/dist/runtime/query/iteration/index.js +144 -67
- package/dist/runtime/query/iteration/index.js.map +1 -1
- package/dist/runtime/query/iteration/outstanding-work.d.ts +9 -5
- package/dist/runtime/query/iteration/outstanding-work.d.ts.map +1 -1
- package/dist/runtime/query/iteration/outstanding-work.js +61 -6
- package/dist/runtime/query/iteration/outstanding-work.js.map +1 -1
- package/dist/runtime/query/iteration/phases/context.d.ts +4 -0
- package/dist/runtime/query/iteration/phases/context.d.ts.map +1 -1
- package/dist/runtime/query/iteration/phases/context.js.map +1 -1
- package/dist/runtime/query/iteration/phases/tool-review.d.ts.map +1 -1
- package/dist/runtime/query/iteration/phases/tool-review.js +99 -16
- package/dist/runtime/query/iteration/phases/tool-review.js.map +1 -1
- package/dist/runtime/query/observation-context.d.ts +2 -2
- package/dist/runtime/query/observation-context.d.ts.map +1 -1
- package/dist/runtime/query/observation-context.js +20 -13
- package/dist/runtime/query/observation-context.js.map +1 -1
- package/dist/runtime/query/prepare-turn.js +2 -2
- package/dist/runtime/query/prepare-turn.js.map +1 -1
- package/dist/runtime/query/prompt-cache.d.ts +1 -0
- package/dist/runtime/query/prompt-cache.d.ts.map +1 -1
- package/dist/runtime/query/prompt-cache.js +2 -0
- package/dist/runtime/query/prompt-cache.js.map +1 -1
- package/dist/runtime/query/prompt.d.ts +2 -0
- package/dist/runtime/query/prompt.d.ts.map +1 -1
- package/dist/runtime/query/prompt.js +23 -1
- package/dist/runtime/query/prompt.js.map +1 -1
- package/dist/runtime/query/repeat-call.d.ts +12 -3
- package/dist/runtime/query/repeat-call.d.ts.map +1 -1
- package/dist/runtime/query/repeat-call.js +33 -10
- package/dist/runtime/query/repeat-call.js.map +1 -1
- package/dist/runtime/query/resume-pending.d.ts +5 -6
- package/dist/runtime/query/resume-pending.d.ts.map +1 -1
- package/dist/runtime/query/resume-pending.js +30 -3
- package/dist/runtime/query/resume-pending.js.map +1 -1
- package/dist/runtime/query/resume-session.js +1 -1
- package/dist/runtime/query/resume-session.js.map +1 -1
- package/dist/runtime/query/review-policy.d.ts +8 -1
- package/dist/runtime/query/review-policy.d.ts.map +1 -1
- package/dist/runtime/query/review-policy.js +6 -0
- package/dist/runtime/query/review-policy.js.map +1 -1
- package/dist/runtime/query/saved-presentation.d.ts +13 -0
- package/dist/runtime/query/saved-presentation.d.ts.map +1 -0
- package/dist/runtime/query/saved-presentation.js +63 -0
- package/dist/runtime/query/saved-presentation.js.map +1 -0
- package/dist/runtime/query/steering.d.ts +6 -9
- package/dist/runtime/query/steering.d.ts.map +1 -1
- package/dist/runtime/query/steering.js.map +1 -1
- package/dist/runtime/query/tool-executions.d.ts +7 -3
- package/dist/runtime/query/tool-executions.d.ts.map +1 -1
- package/dist/runtime/query/tool-executions.js +89 -9
- package/dist/runtime/query/tool-executions.js.map +1 -1
- package/dist/runtime/query/tooling.d.ts +3 -1
- package/dist/runtime/query/tooling.d.ts.map +1 -1
- package/dist/runtime/query/tooling.js +3 -0
- package/dist/runtime/query/tooling.js.map +1 -1
- package/dist/scheduler/completion-inbox.d.ts +25 -1
- package/dist/scheduler/completion-inbox.d.ts.map +1 -1
- package/dist/scheduler/completion-inbox.js +102 -8
- package/dist/scheduler/completion-inbox.js.map +1 -1
- package/dist/scheduler/delegating.d.ts.map +1 -1
- package/dist/scheduler/delegating.js +5 -0
- package/dist/scheduler/delegating.js.map +1 -1
- package/dist/scheduler/local.d.ts.map +1 -1
- package/dist/scheduler/local.js +2 -0
- package/dist/scheduler/local.js.map +1 -1
- package/dist/session/summary/materialize.d.ts +10 -6
- package/dist/session/summary/materialize.d.ts.map +1 -1
- package/dist/session/summary/materialize.js +41 -8
- package/dist/session/summary/materialize.js.map +1 -1
- package/dist/store/budget/ledger.d.ts +9 -0
- package/dist/store/budget/ledger.d.ts.map +1 -1
- package/dist/store/budget/ledger.js +58 -6
- package/dist/store/budget/ledger.js.map +1 -1
- package/dist/store/evidence/index-page.d.ts +12 -12
- package/dist/store/evidence/source-text.d.ts +4 -4
- package/dist/store/session/disk.d.ts +9 -4
- package/dist/store/session/disk.d.ts.map +1 -1
- package/dist/store/session/disk.js +57 -11
- package/dist/store/session/disk.js.map +1 -1
- package/dist/store/session/memory.d.ts +5 -3
- package/dist/store/session/memory.d.ts.map +1 -1
- package/dist/store/session/memory.js +24 -7
- package/dist/store/session/memory.js.map +1 -1
- package/dist/store/session-log/core.d.ts +26 -6
- package/dist/store/session-log/core.d.ts.map +1 -1
- package/dist/store/session-log/core.js +61 -8
- package/dist/store/session-log/core.js.map +1 -1
- package/dist/store/session-log/disk.d.ts +2 -2
- package/dist/store/session-log/disk.d.ts.map +1 -1
- package/dist/store/session-log/disk.js +1 -0
- package/dist/store/session-log/disk.js.map +1 -1
- package/dist/store/session-log/fold.d.ts +7 -0
- package/dist/store/session-log/fold.d.ts.map +1 -1
- package/dist/store/session-log/fold.js +21 -0
- package/dist/store/session-log/fold.js.map +1 -1
- package/dist/store/session-log/index.d.ts +5 -3
- package/dist/store/session-log/index.d.ts.map +1 -1
- package/dist/store/session-log/index.js +3 -1
- package/dist/store/session-log/index.js.map +1 -1
- package/dist/store/session-log/memory.d.ts +1 -1
- package/dist/store/session-log/memory.d.ts.map +1 -1
- package/dist/store/session-log/memory.js +1 -0
- package/dist/store/session-log/memory.js.map +1 -1
- package/dist/store/session-log/spill.d.ts +10 -3
- package/dist/store/session-log/spill.d.ts.map +1 -1
- package/dist/store/session-log/spill.js +70 -5
- package/dist/store/session-log/spill.js.map +1 -1
- package/dist/store/session-log/structured-result.d.ts +21 -0
- package/dist/store/session-log/structured-result.d.ts.map +1 -0
- package/dist/store/session-log/structured-result.js +67 -0
- package/dist/store/session-log/structured-result.js.map +1 -0
- package/dist/store/task/disk.d.ts +11 -0
- package/dist/store/task/disk.d.ts.map +1 -1
- package/dist/store/task/disk.js +41 -2
- package/dist/store/task/disk.js.map +1 -1
- package/dist/store/task/memory.d.ts.map +1 -1
- package/dist/store/task/memory.js +15 -3
- package/dist/store/task/memory.js.map +1 -1
- package/dist/tools/admit-facts.d.ts +13 -0
- package/dist/tools/admit-facts.d.ts.map +1 -0
- package/dist/tools/admit-facts.js +142 -0
- package/dist/tools/admit-facts.js.map +1 -0
- package/dist/tools/builtins/bash.d.ts +4 -1
- package/dist/tools/builtins/bash.d.ts.map +1 -1
- package/dist/tools/builtins/bash.js +108 -22
- package/dist/tools/builtins/bash.js.map +1 -1
- package/dist/tools/builtins/browser.d.ts +10 -10
- package/dist/tools/builtins/computer-use.d.ts +90 -90
- package/dist/tools/builtins/edit.d.ts +17 -0
- package/dist/tools/builtins/edit.d.ts.map +1 -1
- package/dist/tools/builtins/edit.js +34 -0
- package/dist/tools/builtins/edit.js.map +1 -1
- package/dist/tools/builtins/file-write-result.d.ts.map +1 -1
- package/dist/tools/builtins/file-write-result.js +13 -0
- package/dist/tools/builtins/file-write-result.js.map +1 -1
- package/dist/tools/builtins/glob.d.ts.map +1 -1
- package/dist/tools/builtins/glob.js +12 -0
- package/dist/tools/builtins/glob.js.map +1 -1
- package/dist/tools/builtins/grep.d.ts.map +1 -1
- package/dist/tools/builtins/grep.js +14 -0
- package/dist/tools/builtins/grep.js.map +1 -1
- package/dist/tools/builtins/index.d.ts +2 -0
- package/dist/tools/builtins/index.d.ts.map +1 -1
- package/dist/tools/builtins/index.js +1 -0
- package/dist/tools/builtins/index.js.map +1 -1
- package/dist/tools/builtins/job.d.ts.map +1 -1
- package/dist/tools/builtins/job.js +4 -1
- package/dist/tools/builtins/job.js.map +1 -1
- package/dist/tools/builtins/lsp.d.ts +2 -2
- package/dist/tools/builtins/read-file.d.ts.map +1 -1
- package/dist/tools/builtins/read-file.js +49 -0
- package/dist/tools/builtins/read-file.js.map +1 -1
- package/dist/tools/builtins/view-image.d.ts +24 -0
- package/dist/tools/builtins/view-image.d.ts.map +1 -0
- package/dist/tools/builtins/view-image.js +385 -0
- package/dist/tools/builtins/view-image.js.map +1 -0
- package/dist/tools/builtins/wait-for-job-bounds.d.ts +2 -0
- package/dist/tools/builtins/wait-for-job-bounds.d.ts.map +1 -1
- package/dist/tools/builtins/wait-for-job-bounds.js +1 -0
- package/dist/tools/builtins/wait-for-job-bounds.js.map +1 -1
- package/dist/tools/builtins/wait-for-job.d.ts +2 -0
- package/dist/tools/builtins/wait-for-job.d.ts.map +1 -1
- package/dist/tools/builtins/wait-for-job.js +104 -6
- package/dist/tools/builtins/wait-for-job.js.map +1 -1
- package/dist/tools/builtins/write-file.d.ts.map +1 -1
- package/dist/tools/builtins/write-file.js +1 -0
- package/dist/tools/builtins/write-file.js.map +1 -1
- package/dist/tools/command-shell.d.ts +37 -2
- package/dist/tools/command-shell.d.ts.map +1 -1
- package/dist/tools/command-shell.js +100 -3
- package/dist/tools/command-shell.js.map +1 -1
- package/dist/tools/coordinator/agent.d.ts +9 -19
- package/dist/tools/coordinator/agent.d.ts.map +1 -1
- package/dist/tools/coordinator/agent.js.map +1 -1
- package/dist/tools/coordinator/index.d.ts.map +1 -1
- package/dist/tools/coordinator/index.js +127 -67
- package/dist/tools/coordinator/index.js.map +1 -1
- package/dist/tools/coordinator/wait-with-idle-bound.d.ts +2 -0
- package/dist/tools/coordinator/wait-with-idle-bound.d.ts.map +1 -1
- package/dist/tools/coordinator/wait-with-idle-bound.js +1 -1
- package/dist/tools/coordinator/wait-with-idle-bound.js.map +1 -1
- package/dist/tools/defineTool.d.ts.map +1 -1
- package/dist/tools/defineTool.js +4 -0
- package/dist/tools/defineTool.js.map +1 -1
- package/dist/tools/failure-facts.d.ts +8 -0
- package/dist/tools/failure-facts.d.ts.map +1 -0
- package/dist/tools/failure-facts.js +24 -0
- package/dist/tools/failure-facts.js.map +1 -0
- package/dist/tools/host-output.d.ts +24 -0
- package/dist/tools/host-output.d.ts.map +1 -0
- package/dist/tools/host-output.js +117 -0
- package/dist/tools/host-output.js.map +1 -0
- package/dist/tools/oem-code-pages.d.ts +8 -0
- package/dist/tools/oem-code-pages.d.ts.map +1 -0
- package/dist/tools/oem-code-pages.js +23 -0
- package/dist/tools/oem-code-pages.js.map +1 -0
- package/dist/tools/schedules/schedule-tool.d.ts.map +1 -1
- package/dist/tools/schedules/schedule-tool.js +35 -6
- package/dist/tools/schedules/schedule-tool.js.map +1 -1
- package/dist/tools/schedules/types.d.ts +23 -3
- package/dist/tools/schedules/types.d.ts.map +1 -1
- package/dist/tools/task/list.d.ts.map +1 -1
- package/dist/tools/task/list.js +14 -6
- package/dist/tools/task/list.js.map +1 -1
- package/dist/tools/task/present.d.ts.map +1 -1
- package/dist/tools/task/present.js +26 -6
- package/dist/tools/task/present.js.map +1 -1
- package/dist/tools/task/update.d.ts.map +1 -1
- package/dist/tools/task/update.js +12 -5
- package/dist/tools/task/update.js.map +1 -1
- package/dist/tools/text-window.d.ts +19 -0
- package/dist/tools/text-window.d.ts.map +1 -0
- package/dist/tools/text-window.js +83 -0
- package/dist/tools/text-window.js.map +1 -0
- package/dist/toolsets/manager.d.ts +11 -0
- package/dist/toolsets/manager.d.ts.map +1 -1
- package/dist/toolsets/manager.js +45 -1
- package/dist/toolsets/manager.js.map +1 -1
- package/dist/types/acp/index.d.ts +137 -1
- package/dist/types/acp/index.d.ts.map +1 -1
- package/dist/types/agent/base.d.ts +3 -0
- package/dist/types/agent/base.d.ts.map +1 -1
- package/dist/types/agent/manager.d.ts +8 -23
- package/dist/types/agent/manager.d.ts.map +1 -1
- package/dist/types/agent/scheduler.d.ts +10 -1
- package/dist/types/agent/scheduler.d.ts.map +1 -1
- package/dist/types/agent/task.d.ts +4 -0
- package/dist/types/agent/task.d.ts.map +1 -1
- package/dist/types/authorization/index.d.ts +30 -30
- package/dist/types/connector/mcp.d.ts +7 -0
- package/dist/types/connector/mcp.d.ts.map +1 -1
- package/dist/types/errors/catalog.d.ts.map +1 -1
- package/dist/types/errors/catalog.js +4 -2
- package/dist/types/errors/catalog.js.map +1 -1
- package/dist/types/harness/schema.d.ts +354 -0
- package/dist/types/harness/schema.d.ts.map +1 -0
- package/dist/types/harness/schema.js +203 -0
- package/dist/types/harness/schema.js.map +1 -0
- package/dist/types/harness/session.d.ts +278 -0
- package/dist/types/harness/session.d.ts.map +1 -0
- package/dist/types/harness/session.js +2 -0
- package/dist/types/harness/session.js.map +1 -0
- package/dist/types/hitl/index.d.ts +12 -0
- package/dist/types/hitl/index.d.ts.map +1 -1
- package/dist/types/hitl/index.js.map +1 -1
- package/dist/types/job/index.d.ts +47 -0
- package/dist/types/job/index.d.ts.map +1 -0
- package/dist/types/job/index.js +2 -0
- package/dist/types/job/index.js.map +1 -0
- package/dist/types/message/inbound-delivery.d.ts +44 -0
- package/dist/types/message/inbound-delivery.d.ts.map +1 -0
- package/dist/types/message/inbound-delivery.js +14 -0
- package/dist/types/message/inbound-delivery.js.map +1 -0
- package/dist/types/message/index.d.ts +4 -1
- package/dist/types/message/index.d.ts.map +1 -1
- package/dist/types/message/index.js +5 -1
- package/dist/types/message/index.js.map +1 -1
- package/dist/types/plugin/index.d.ts +6 -6
- package/dist/types/sandbox/index.d.ts +39 -2
- package/dist/types/sandbox/index.d.ts.map +1 -1
- package/dist/types/sandbox/index.js.map +1 -1
- package/dist/types/session/checkpoint.d.ts +24 -17
- package/dist/types/session/checkpoint.d.ts.map +1 -1
- package/dist/types/session/checkpoint.js +1 -0
- package/dist/types/session/checkpoint.js.map +1 -1
- package/dist/types/session/events.d.ts +23 -1
- package/dist/types/session/events.d.ts.map +1 -1
- package/dist/types/session/events.js.map +1 -1
- package/dist/types/session/records.d.ts +1514 -565
- package/dist/types/session/records.d.ts.map +1 -1
- package/dist/types/session/records.js +89 -1
- package/dist/types/session/records.js.map +1 -1
- package/dist/types/session/step.d.ts +2 -0
- package/dist/types/session/step.d.ts.map +1 -1
- package/dist/types/session/step.js.map +1 -1
- package/dist/types/session/store.d.ts +19 -10
- package/dist/types/session/store.d.ts.map +1 -1
- package/dist/types/session/tool-execution.d.ts +6 -0
- package/dist/types/session/tool-execution.d.ts.map +1 -1
- package/dist/types/structured-output/index.d.ts +12 -2
- package/dist/types/structured-output/index.d.ts.map +1 -1
- package/dist/types/summary/ref.d.ts +3 -1
- package/dist/types/summary/ref.d.ts.map +1 -1
- package/dist/types/tool/index.d.ts +32 -4
- package/dist/types/tool/index.d.ts.map +1 -1
- package/dist/types/tool/index.js.map +1 -1
- package/dist/types/tool/presentation.d.ts +106 -0
- package/dist/types/tool/presentation.d.ts.map +1 -1
- package/dist/utils/json-snapshot.d.ts +6 -2
- package/dist/utils/json-snapshot.d.ts.map +1 -1
- package/dist/utils/json-snapshot.js +19 -9
- package/dist/utils/json-snapshot.js.map +1 -1
- package/dist/utils/structured-result-json.d.ts +5 -0
- package/dist/utils/structured-result-json.d.ts.map +1 -0
- package/dist/utils/structured-result-json.js +10 -0
- package/dist/utils/structured-result-json.js.map +1 -0
- package/package.json +1 -1
- package/src/agents/QueryAgent.ts +1 -0
- package/src/agents/examples/SupervisorAgent.ts +1 -0
- package/src/agents/runAgent.ts +3 -0
- package/src/authorization/shell-lexer.ts +16 -1
- package/src/bridge/acp/permission.ts +17 -3
- package/src/bridge/acp/server.ts +271 -25
- package/src/bridge/acp/tasks.ts +23 -0
- package/src/bridge/acp/update.ts +167 -13
- package/src/connector/mcp/adapter.ts +16 -4
- package/src/connector/mcp/client.ts +6 -2
- package/src/constants/acp/index.ts +4 -0
- package/src/manager/agent/lifecycle.ts +230 -3
- package/src/manager/plan/lifecycle.ts +11 -9
- package/src/manager/session/attribution.ts +12 -2
- package/src/manager/session/streamed-message-identity.ts +21 -0
- package/src/manager/session/turn-recorder.ts +4 -3
- package/src/pals/activity/causality.ts +261 -0
- package/src/pals/activity/projection.ts +89 -0
- package/src/pals/activity/source.ts +240 -0
- package/src/pals/activity/subscription-policy.ts +230 -0
- package/src/pals/activity/subscription-schema.ts +27 -0
- package/src/pals/activity/subscription-store.ts +172 -0
- package/src/pals/activity/subscription-types.ts +48 -0
- package/src/pals/activity/subscriptions.ts +209 -0
- package/src/pals/activity/types.ts +108 -0
- package/src/pals/channels/ingress.ts +153 -0
- package/src/pals/channels/routes.ts +118 -0
- package/src/pals/channels/routing.ts +197 -0
- package/src/pals/channels/schema.ts +108 -0
- package/src/pals/channels/types.ts +156 -0
- package/src/pals/communication/broker.ts +131 -0
- package/src/pals/communication/dispatch.ts +66 -0
- package/src/pals/communication/inbound.ts +193 -0
- package/src/pals/communication/ingress-dispatch.ts +63 -0
- package/src/pals/communication/ingress-inbound.ts +269 -0
- package/src/pals/communication/ingress-schema.ts +526 -0
- package/src/pals/communication/ingress-types.ts +336 -0
- package/src/pals/communication/operator.ts +315 -0
- package/src/pals/communication/policy.ts +174 -0
- package/src/pals/communication/schema.ts +173 -0
- package/src/pals/communication/store.ts +577 -0
- package/src/pals/communication/tools.ts +139 -0
- package/src/pals/communication/types.ts +227 -0
- package/src/pals/communication/verify.ts +220 -0
- package/src/pals/lifecycle.ts +54 -0
- package/src/pals/prompt.ts +101 -0
- package/src/pals/reference-images.ts +322 -0
- package/src/pals/runtime.ts +670 -0
- package/src/pals/store.ts +369 -0
- package/src/pals/types.ts +157 -0
- package/src/peers/envelope.ts +1 -1
- package/src/plugin/shell-hook.ts +8 -2
- package/src/process/kill-tree.ts +10 -1
- package/src/provider/errors.ts +135 -2
- package/src/public-runtime.ts +117 -12
- package/src/public-tools.ts +13 -1
- package/src/public-types.ts +69 -7
- package/src/registry/tool/presentation.ts +9 -4
- package/src/runtime/harness-session/index.ts +1125 -0
- package/src/runtime/harness-session/journal.ts +209 -0
- package/src/runtime/harness-session/saved-view.ts +122 -0
- package/src/runtime/jobs/awaited-jobs.ts +2 -1
- package/src/runtime/jobs/registry.ts +397 -41
- package/src/runtime/query/abandon-turn.ts +18 -2
- package/src/runtime/query/checkpoint.ts +11 -0
- package/src/runtime/query/durable-inbound.ts +101 -0
- package/src/runtime/query/events.ts +22 -5
- package/src/runtime/query/executor/tool-call-admission.ts +125 -32
- package/src/runtime/query/executor.ts +316 -130
- package/src/runtime/query/index.ts +24 -4
- package/src/runtime/query/iteration/index.ts +218 -104
- package/src/runtime/query/iteration/outstanding-work.ts +55 -7
- package/src/runtime/query/iteration/phases/context.ts +4 -0
- package/src/runtime/query/iteration/phases/tool-review.ts +118 -21
- package/src/runtime/query/observation-context.ts +22 -16
- package/src/runtime/query/prepare-turn.ts +2 -2
- package/src/runtime/query/prompt-cache.ts +3 -0
- package/src/runtime/query/prompt.ts +32 -1
- package/src/runtime/query/repeat-call.ts +40 -10
- package/src/runtime/query/resume-pending.ts +60 -7
- package/src/runtime/query/resume-session.ts +1 -1
- package/src/runtime/query/review-policy.ts +23 -2
- package/src/runtime/query/saved-presentation.ts +70 -0
- package/src/runtime/query/steering.ts +6 -9
- package/src/runtime/query/tool-executions.ts +108 -9
- package/src/runtime/query/tooling.ts +6 -1
- package/src/scheduler/completion-inbox.ts +108 -7
- package/src/scheduler/delegating.ts +5 -0
- package/src/scheduler/local.ts +2 -0
- package/src/session/summary/materialize.ts +51 -9
- package/src/store/budget/ledger.ts +60 -5
- package/src/store/session/disk.ts +77 -10
- package/src/store/session/memory.ts +32 -7
- package/src/store/session-log/core.ts +118 -11
- package/src/store/session-log/disk.ts +9 -2
- package/src/store/session-log/fold.ts +22 -0
- package/src/store/session-log/index.ts +5 -0
- package/src/store/session-log/memory.ts +2 -1
- package/src/store/session-log/spill.ts +89 -6
- package/src/store/session-log/structured-result.ts +96 -0
- package/src/store/task/disk.ts +46 -2
- package/src/store/task/memory.ts +13 -3
- package/src/tools/admit-facts.ts +145 -0
- package/src/tools/builtins/bash.ts +132 -24
- package/src/tools/builtins/edit.ts +42 -0
- package/src/tools/builtins/file-write-result.ts +14 -0
- package/src/tools/builtins/glob.ts +12 -0
- package/src/tools/builtins/grep.ts +14 -0
- package/src/tools/builtins/index.ts +2 -0
- package/src/tools/builtins/job.ts +4 -1
- package/src/tools/builtins/read-file.ts +57 -0
- package/src/tools/builtins/view-image.ts +409 -0
- package/src/tools/builtins/wait-for-job-bounds.ts +3 -0
- package/src/tools/builtins/wait-for-job.ts +141 -32
- package/src/tools/builtins/write-file.ts +4 -2
- package/src/tools/command-shell.ts +132 -5
- package/src/tools/coordinator/agent.ts +9 -19
- package/src/tools/coordinator/index.ts +150 -75
- package/src/tools/coordinator/wait-with-idle-bound.ts +3 -1
- package/src/tools/defineTool.ts +4 -0
- package/src/tools/failure-facts.ts +24 -0
- package/src/tools/host-output.ts +136 -0
- package/src/tools/oem-code-pages.ts +22 -0
- package/src/tools/schedules/schedule-tool.ts +38 -5
- package/src/tools/schedules/types.ts +23 -3
- package/src/tools/task/list.ts +15 -7
- package/src/tools/task/present.ts +37 -7
- package/src/tools/task/update.ts +12 -5
- package/src/tools/text-window.ts +87 -0
- package/src/toolsets/manager.ts +58 -1
- package/src/types/acp/index.ts +150 -4
- package/src/types/agent/base.ts +3 -0
- package/src/types/agent/manager.ts +8 -23
- package/src/types/agent/scheduler.ts +10 -1
- package/src/types/agent/task.ts +4 -0
- package/src/types/connector/mcp.ts +7 -0
- package/src/types/errors/catalog.ts +4 -2
- package/src/types/harness/schema.ts +203 -0
- package/src/types/harness/session.ts +306 -0
- package/src/types/hitl/index.ts +17 -1
- package/src/types/job/index.ts +42 -0
- package/src/types/message/inbound-delivery.ts +63 -0
- package/src/types/message/index.ts +8 -1
- package/src/types/sandbox/index.ts +46 -0
- package/src/types/session/checkpoint.ts +4 -1
- package/src/types/session/events.ts +23 -1
- package/src/types/session/records.ts +114 -2
- package/src/types/session/step.ts +2 -0
- package/src/types/session/store.ts +23 -9
- package/src/types/session/tool-execution.ts +6 -0
- package/src/types/structured-output/index.ts +13 -2
- package/src/types/summary/ref.ts +3 -1
- package/src/types/tool/index.ts +39 -5
- package/src/types/tool/presentation.ts +121 -0
- package/src/utils/json-snapshot.ts +26 -9
- package/src/utils/structured-result-json.ts +10 -0
|
@@ -0,0 +1,278 @@
|
|
|
1
|
+
import type { ReviewMode } from '../../runtime/query/review-policy.js';
|
|
2
|
+
import type { SessionLog } from '../../store/session-log/index.js';
|
|
3
|
+
/**
|
|
4
|
+
* A session whose execution and tools belong to a host-composed external harness.
|
|
5
|
+
* SDK code contains no vendor import, process runner or credential discovery.
|
|
6
|
+
* Existing Namzu query/LLMProvider/tool execution is unchanged.
|
|
7
|
+
*/
|
|
8
|
+
import type { MessageId, ProjectId, SessionId, TenantId, ToolUseId, TopicId, TurnId } from '../ids/index.js';
|
|
9
|
+
import type { Message } from '../message/index.js';
|
|
10
|
+
import type { ReasoningEffort } from '../provider/index.js';
|
|
11
|
+
import type { SessionEvent } from '../session/events.js';
|
|
12
|
+
export type HarnessJson = null | boolean | number | string | readonly HarnessJson[] | {
|
|
13
|
+
readonly [key: string]: HarnessJson;
|
|
14
|
+
};
|
|
15
|
+
/** Native IDs remain opaque strings and are NEVER parsed as Namzu UUIDs. */
|
|
16
|
+
export interface HarnessBinding {
|
|
17
|
+
readonly v: 1;
|
|
18
|
+
readonly engineId: string;
|
|
19
|
+
/** Host-owned opaque identity for executable/state-home/account selection; no credentials. */
|
|
20
|
+
readonly profileRef: string;
|
|
21
|
+
/** Exact native conversation/thread identifier, not a shared root or Namzu session ID. */
|
|
22
|
+
readonly nativeSessionId: string;
|
|
23
|
+
/** Canonical absolute native execution directory, confirmed by the adapter. */
|
|
24
|
+
readonly cwd: string;
|
|
25
|
+
/** Verified initial selection; later changes are captured per turn, never engine changes. */
|
|
26
|
+
readonly initialModel: string;
|
|
27
|
+
}
|
|
28
|
+
export interface HarnessScope {
|
|
29
|
+
readonly sessionId: SessionId;
|
|
30
|
+
readonly tenantId: TenantId;
|
|
31
|
+
readonly projectId: ProjectId;
|
|
32
|
+
readonly topicId: TopicId;
|
|
33
|
+
readonly cwd: string;
|
|
34
|
+
}
|
|
35
|
+
/** Values established from the installed engine/protocol, never copied from Namzu providers. */
|
|
36
|
+
export interface HarnessCapabilities {
|
|
37
|
+
readonly persistentSessions: boolean;
|
|
38
|
+
readonly history: 'snapshot' | 'unavailable';
|
|
39
|
+
readonly models: 'discover' | 'configured' | 'unavailable';
|
|
40
|
+
readonly permissions: 'interactive' | 'deny-only' | 'unavailable';
|
|
41
|
+
readonly interrupt: 'native-terminal' | 'process-stop' | 'unavailable';
|
|
42
|
+
readonly attachments: readonly ('image' | 'file')[];
|
|
43
|
+
readonly effortLevels?: readonly ReasoningEffort[];
|
|
44
|
+
/** Common UI may offer only modes actually mapped by this engine. */
|
|
45
|
+
readonly reviewModes: readonly ReviewMode[];
|
|
46
|
+
}
|
|
47
|
+
export interface HarnessModel {
|
|
48
|
+
readonly id: string;
|
|
49
|
+
readonly label: string;
|
|
50
|
+
readonly effortLevels?: readonly ReasoningEffort[];
|
|
51
|
+
readonly defaultEffort?: ReasoningEffort;
|
|
52
|
+
}
|
|
53
|
+
export interface HarnessNativeTurn {
|
|
54
|
+
readonly nativeSessionId: string;
|
|
55
|
+
readonly nativeTurnId: string;
|
|
56
|
+
/** Explicit operation correlation when the engine exposes no native turn ID. */
|
|
57
|
+
readonly turnIdSource?: 'engine' | 'operation';
|
|
58
|
+
}
|
|
59
|
+
export interface HarnessNativeItem extends HarnessNativeTurn {
|
|
60
|
+
readonly nativeItemId: string;
|
|
61
|
+
}
|
|
62
|
+
export interface HarnessPublicTextPart {
|
|
63
|
+
readonly id: string;
|
|
64
|
+
readonly text: string;
|
|
65
|
+
readonly phase?: 'commentary' | 'final_answer';
|
|
66
|
+
}
|
|
67
|
+
export type HarnessDecision = {
|
|
68
|
+
readonly kind: 'approve-once';
|
|
69
|
+
readonly updatedInput?: HarnessJson;
|
|
70
|
+
} | {
|
|
71
|
+
readonly kind: 'reject';
|
|
72
|
+
readonly feedback?: string;
|
|
73
|
+
} | {
|
|
74
|
+
readonly kind: 'cancel';
|
|
75
|
+
};
|
|
76
|
+
export interface HarnessReviewRequest extends HarnessNativeTurn {
|
|
77
|
+
readonly requestId: string;
|
|
78
|
+
readonly nativeItemId?: string;
|
|
79
|
+
readonly kind: 'command' | 'file-change' | 'tool';
|
|
80
|
+
readonly title: string;
|
|
81
|
+
/** Public proposed operation only. No raw RPC frame, credentials or private thinking. */
|
|
82
|
+
readonly input: HarnessJson;
|
|
83
|
+
readonly decisions: readonly HarnessDecision['kind'][];
|
|
84
|
+
}
|
|
85
|
+
/** A NEW, namespaced port union. No new existing SessionEvent discriminants. */
|
|
86
|
+
export type HarnessEvent = (HarnessNativeTurn & {
|
|
87
|
+
readonly kind: 'turn-started';
|
|
88
|
+
readonly model?: string;
|
|
89
|
+
}) | (HarnessNativeItem & {
|
|
90
|
+
readonly kind: 'message-started';
|
|
91
|
+
}) | (HarnessNativeItem & {
|
|
92
|
+
readonly kind: 'text-delta';
|
|
93
|
+
readonly text: string;
|
|
94
|
+
readonly part?: Pick<HarnessPublicTextPart, 'id' | 'phase'>;
|
|
95
|
+
}) | (HarnessNativeItem & {
|
|
96
|
+
readonly kind: 'message-completed';
|
|
97
|
+
readonly content: string;
|
|
98
|
+
readonly parts?: readonly HarnessPublicTextPart[];
|
|
99
|
+
readonly stopReason: import('../session/stop-reason.js').MessageStopReason;
|
|
100
|
+
}) | (HarnessNativeItem & {
|
|
101
|
+
readonly kind: 'reasoning';
|
|
102
|
+
readonly blockId: string;
|
|
103
|
+
readonly status: 'pending' | 'completed';
|
|
104
|
+
/** Only engine-documented public summary/thinking; never replay/signature material. */
|
|
105
|
+
readonly text?: string;
|
|
106
|
+
}) | (HarnessNativeItem & {
|
|
107
|
+
readonly kind: 'tool-started';
|
|
108
|
+
readonly name: string;
|
|
109
|
+
readonly input: HarnessJson;
|
|
110
|
+
}) | (HarnessNativeItem & {
|
|
111
|
+
readonly kind: 'tool-output';
|
|
112
|
+
readonly text: string;
|
|
113
|
+
}) | (HarnessNativeItem & {
|
|
114
|
+
readonly kind: 'tool-completed';
|
|
115
|
+
readonly name: string;
|
|
116
|
+
readonly result: string;
|
|
117
|
+
readonly status: 'completed' | 'failed' | 'declined' | 'cancelled';
|
|
118
|
+
readonly durationMs?: number;
|
|
119
|
+
}) | {
|
|
120
|
+
readonly kind: 'review-requested';
|
|
121
|
+
readonly request: HarnessReviewRequest;
|
|
122
|
+
} | (HarnessNativeTurn & {
|
|
123
|
+
readonly kind: 'review-resolved';
|
|
124
|
+
readonly requestId: string;
|
|
125
|
+
}) | (HarnessNativeTurn & {
|
|
126
|
+
readonly kind: 'turn-completed';
|
|
127
|
+
readonly status: 'completed' | 'failed' | 'cancelled';
|
|
128
|
+
readonly finalItemId?: string;
|
|
129
|
+
readonly result?: string;
|
|
130
|
+
readonly error?: {
|
|
131
|
+
readonly code: string;
|
|
132
|
+
readonly message: string;
|
|
133
|
+
};
|
|
134
|
+
}) | {
|
|
135
|
+
readonly kind: 'connection-lost';
|
|
136
|
+
readonly code: string;
|
|
137
|
+
/** True never implies that native work stopped. */
|
|
138
|
+
readonly mayBeRunning: boolean;
|
|
139
|
+
};
|
|
140
|
+
/** Resolve after validation/persistence/publication, never await a human answer here. */
|
|
141
|
+
export type HarnessEventSink = (event: HarnessEvent) => Promise<void>;
|
|
142
|
+
export interface HarnessPrompt {
|
|
143
|
+
/** Actual host operation identity for this admitted prompt, persisted before send. */
|
|
144
|
+
readonly operationId: string;
|
|
145
|
+
readonly prompt: string;
|
|
146
|
+
readonly model: string;
|
|
147
|
+
readonly effort?: ReasoningEffort;
|
|
148
|
+
readonly permissionMode: ReviewMode;
|
|
149
|
+
readonly signal?: AbortSignal;
|
|
150
|
+
}
|
|
151
|
+
export interface HarnessHistorySnapshot {
|
|
152
|
+
readonly binding: HarnessBinding;
|
|
153
|
+
readonly activeTurn?: HarnessNativeTurn;
|
|
154
|
+
/** Authoritative lifecycle/items, not byte-for-byte replay of ephemeral deltas. */
|
|
155
|
+
readonly events: readonly Exclude<HarnessEvent, {
|
|
156
|
+
readonly kind: 'text-delta' | 'tool-output' | 'connection-lost';
|
|
157
|
+
}>[];
|
|
158
|
+
readonly pendingReviews: readonly HarnessReviewRequest[];
|
|
159
|
+
readonly complete: boolean;
|
|
160
|
+
}
|
|
161
|
+
export interface HarnessConnection {
|
|
162
|
+
readonly binding: HarnessBinding;
|
|
163
|
+
readonly capabilities: HarnessCapabilities;
|
|
164
|
+
models(signal?: AbortSignal): Promise<readonly HarnessModel[]>;
|
|
165
|
+
/** ACK may follow terminal event. It must not resurrect a finished turn. */
|
|
166
|
+
dispatch(input: HarnessPrompt): Promise<HarnessNativeTurn>;
|
|
167
|
+
/** Receipt means requested only; SDK waits for correlated terminal/confirmed owned stop. */
|
|
168
|
+
interrupt(turn: HarnessNativeTurn): Promise<{
|
|
169
|
+
readonly requested: true;
|
|
170
|
+
}>;
|
|
171
|
+
/** Validate exact current native request, then send one of that request's decisions. */
|
|
172
|
+
respond(request: HarnessReviewRequest, decision: HarnessDecision): Promise<{
|
|
173
|
+
readonly sent: true;
|
|
174
|
+
}>;
|
|
175
|
+
/** Never resends a prompt. Absence/incomplete history leaves explicit reconciliation required. */
|
|
176
|
+
readHistory(signal?: AbortSignal): Promise<HarnessHistorySnapshot>;
|
|
177
|
+
/** Success confirms own process/children stopped; rejection retains handle for retry. */
|
|
178
|
+
close(): Promise<{
|
|
179
|
+
readonly stopped: true;
|
|
180
|
+
}>;
|
|
181
|
+
}
|
|
182
|
+
export interface HarnessAdapter {
|
|
183
|
+
readonly engineId: string;
|
|
184
|
+
readonly profileRef: string;
|
|
185
|
+
/** Subscribe BEFORE spawn/initialize/open/resume so early items/requests cannot be lost. */
|
|
186
|
+
open(input: {
|
|
187
|
+
readonly cwd: string;
|
|
188
|
+
readonly model?: string;
|
|
189
|
+
readonly resume?: HarnessBinding;
|
|
190
|
+
readonly signal?: AbortSignal;
|
|
191
|
+
}, onEvent: HarnessEventSink): Promise<HarnessConnection>;
|
|
192
|
+
}
|
|
193
|
+
export interface HarnessAdmissionRequest {
|
|
194
|
+
readonly kind: 'open' | 'run' | 'approval' | 'reconnect';
|
|
195
|
+
readonly scope: HarnessScope;
|
|
196
|
+
readonly binding?: HarnessBinding;
|
|
197
|
+
readonly nativeTurn?: HarnessNativeTurn;
|
|
198
|
+
readonly review?: HarnessReviewRequest;
|
|
199
|
+
}
|
|
200
|
+
export interface HarnessSessionOptions {
|
|
201
|
+
readonly scope: HarnessScope;
|
|
202
|
+
readonly sessionLog: SessionLog;
|
|
203
|
+
readonly adapter: HarnessAdapter;
|
|
204
|
+
/** REQUIRED current trusted host boundary: canonical cwd/trust/user ownership, ordinary only. */
|
|
205
|
+
readonly assertAdmission: (request: HarnessAdmissionRequest, signal?: AbortSignal) => Promise<void>;
|
|
206
|
+
readonly onEvent: (event: SessionEvent) => void | Promise<void>;
|
|
207
|
+
readonly onReview: (request: HarnessReviewRequest) => void | Promise<void>;
|
|
208
|
+
}
|
|
209
|
+
export interface HarnessTurnOutcome {
|
|
210
|
+
readonly turnId: TurnId;
|
|
211
|
+
readonly nativeTurn: HarnessNativeTurn;
|
|
212
|
+
readonly status: 'completed' | 'failed' | 'cancelled';
|
|
213
|
+
readonly messages: readonly Message[];
|
|
214
|
+
}
|
|
215
|
+
export interface HarnessSession {
|
|
216
|
+
readonly scope: HarnessScope;
|
|
217
|
+
readonly binding: HarnessBinding | undefined;
|
|
218
|
+
/** Exact admitted turn pointer for host cancellation; never a model-supplied ID. */
|
|
219
|
+
readonly currentTurnId: TurnId | undefined;
|
|
220
|
+
readonly status: 'disconnected' | 'idle' | 'running' | 'waiting' | 'reconciliation-required' | 'closed';
|
|
221
|
+
/** Public durable text only; no native process startup. */
|
|
222
|
+
history(): Promise<readonly Message[]>;
|
|
223
|
+
/** Reject concurrent turn operations. CLI/desktop owns its visible queue. */
|
|
224
|
+
run(input: Omit<HarnessPrompt, 'operationId'>): Promise<HarnessTurnOutcome>;
|
|
225
|
+
/** Exact expected turn pointer prevents a stale Stop from cancelling the next turn. */
|
|
226
|
+
cancel(expectedTurnId: TurnId): Promise<{
|
|
227
|
+
readonly stopped: true;
|
|
228
|
+
readonly turnId: TurnId;
|
|
229
|
+
}>;
|
|
230
|
+
/** SDK adds current writer generation/request digest internally; renderer cannot supply authority. */
|
|
231
|
+
respond(request: HarnessReviewRequest, decision: HarnessDecision): Promise<void>;
|
|
232
|
+
reconnect(signal?: AbortSignal): Promise<void>;
|
|
233
|
+
close(): Promise<void>;
|
|
234
|
+
}
|
|
235
|
+
/** Typed journal receipts stored in the existing session_updated record. */
|
|
236
|
+
export type HarnessJournalTransition = {
|
|
237
|
+
readonly kind: 'dispatch-prepared';
|
|
238
|
+
/** Actual admitted selection; engine binding remains immutable. */
|
|
239
|
+
readonly model?: string;
|
|
240
|
+
readonly effort?: ReasoningEffort;
|
|
241
|
+
readonly permissionMode?: ReviewMode;
|
|
242
|
+
readonly operationId: string;
|
|
243
|
+
readonly turnId: TurnId;
|
|
244
|
+
readonly promptId: MessageId;
|
|
245
|
+
readonly digest: string;
|
|
246
|
+
} | {
|
|
247
|
+
readonly kind: 'dispatch-accepted';
|
|
248
|
+
readonly operationId: string;
|
|
249
|
+
readonly turnId: TurnId;
|
|
250
|
+
readonly nativeTurn: HarnessNativeTurn;
|
|
251
|
+
} | {
|
|
252
|
+
readonly kind: 'item-bound';
|
|
253
|
+
readonly turnId: TurnId;
|
|
254
|
+
readonly nativeItem: HarnessNativeItem;
|
|
255
|
+
readonly messageId?: MessageId;
|
|
256
|
+
readonly toolUseId?: ToolUseId;
|
|
257
|
+
} | {
|
|
258
|
+
readonly kind: 'review-requested';
|
|
259
|
+
readonly turnId: TurnId;
|
|
260
|
+
readonly request: HarnessReviewRequest;
|
|
261
|
+
readonly digest: string;
|
|
262
|
+
} | {
|
|
263
|
+
readonly kind: 'review-decided';
|
|
264
|
+
readonly turnId: TurnId;
|
|
265
|
+
readonly requestId: string;
|
|
266
|
+
readonly requestDigest: string;
|
|
267
|
+
readonly decisionDigest: string;
|
|
268
|
+
readonly decision: HarnessDecision;
|
|
269
|
+
} | {
|
|
270
|
+
readonly kind: 'review-resolved';
|
|
271
|
+
readonly turnId: TurnId;
|
|
272
|
+
readonly requestId: string;
|
|
273
|
+
} | {
|
|
274
|
+
readonly kind: 'connection-lost';
|
|
275
|
+
readonly turnId?: TurnId;
|
|
276
|
+
readonly code: string;
|
|
277
|
+
};
|
|
278
|
+
//# sourceMappingURL=session.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"session.d.ts","sourceRoot":"","sources":["../../../src/types/harness/session.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,UAAU,EAAE,MAAM,sCAAsC,CAAA;AACtE,OAAO,KAAK,EAAE,UAAU,EAAE,MAAM,kCAAkC,CAAA;AAClE;;;;GAIG;AACH,OAAO,KAAK,EACX,SAAS,EACT,SAAS,EACT,SAAS,EACT,QAAQ,EACR,SAAS,EACT,OAAO,EACP,MAAM,EACN,MAAM,iBAAiB,CAAA;AACxB,OAAO,KAAK,EAAE,OAAO,EAAE,MAAM,qBAAqB,CAAA;AAClD,OAAO,KAAK,EAAE,eAAe,EAAE,MAAM,sBAAsB,CAAA;AAC3D,OAAO,KAAK,EAAE,YAAY,EAAE,MAAM,sBAAsB,CAAA;AAExD,MAAM,MAAM,WAAW,GACpB,IAAI,GACJ,OAAO,GACP,MAAM,GACN,MAAM,GACN,SAAS,WAAW,EAAE,GACtB;IAAE,QAAQ,EAAE,GAAG,EAAE,MAAM,GAAG,WAAW,CAAA;CAAE,CAAA;AAE1C,4EAA4E;AAC5E,MAAM,WAAW,cAAc;IAC9B,QAAQ,CAAC,CAAC,EAAE,CAAC,CAAA;IACb,QAAQ,CAAC,QAAQ,EAAE,MAAM,CAAA;IACzB,8FAA8F;IAC9F,QAAQ,CAAC,UAAU,EAAE,MAAM,CAAA;IAC3B,0FAA0F;IAC1F,QAAQ,CAAC,eAAe,EAAE,MAAM,CAAA;IAChC,+EAA+E;IAC/E,QAAQ,CAAC,GAAG,EAAE,MAAM,CAAA;IACpB,6FAA6F;IAC7F,QAAQ,CAAC,YAAY,EAAE,MAAM,CAAA;CAC7B;AAED,MAAM,WAAW,YAA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AA;IAC/B,QAAQ,CAAC,QAAQ,EAAE,eAAe,CAAA;CACjC,GACD;IAAE,QAAQ,CAAC,IAAI,EAAE,iBAAiB,CAAC;IAAC,QAAQ,CAAC,MAAM,EAAE,MAAM,CAAC;IAAC,QAAQ,CAAC,SAAS,EAAE,MAAM,CAAA;CAAE,GACzF;IAAE,QAAQ,CAAC,IAAI,EAAE,iBAAiB,CAAC;IAAC,QAAQ,CAAC,MAAM,CAAC,EAAE,MAAM,CAAC;IAAC,QAAQ,CAAC,IAAI,EAAE,MAAM,CAAA;CAAE,CAAA"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"session.js","sourceRoot":"","sources":["../../../src/types/harness/session.ts"],"names":[],"mappings":""}
|
|
@@ -1,6 +1,11 @@
|
|
|
1
1
|
import type { CostInfo, TokenUsage } from '../common/index.js';
|
|
2
2
|
import type { CheckpointId, PlanId, SessionId, TurnId } from '../ids/index.js';
|
|
3
3
|
export type { CheckpointId };
|
|
4
|
+
/** A person's No to a tool call. See the `declined` field of `reject_tools`. */
|
|
5
|
+
export interface ToolCallDeclined {
|
|
6
|
+
/** What the person said about it, in their own words. */
|
|
7
|
+
readonly note?: string;
|
|
8
|
+
}
|
|
4
9
|
export type HITLResumeDecision = {
|
|
5
10
|
action: 'continue';
|
|
6
11
|
} | {
|
|
@@ -59,6 +64,13 @@ export type HITLResumeDecision = {
|
|
|
59
64
|
} | {
|
|
60
65
|
action: 'reject_tools';
|
|
61
66
|
feedback: string;
|
|
67
|
+
/**
|
|
68
|
+
* Present only when a person answered No. `feedback` is what the
|
|
69
|
+
* MODEL is told and a policy refusal fills it too, so it cannot say
|
|
70
|
+
* who refused; this does. `note` is the person's own words, apart
|
|
71
|
+
* from any wrapper a host put around them in `feedback`.
|
|
72
|
+
*/
|
|
73
|
+
declined?: ToolCallDeclined;
|
|
62
74
|
} | {
|
|
63
75
|
action: 'answer_question';
|
|
64
76
|
selectedOptionIds: string[];
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/types/hitl/index.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,QAAQ,EAAE,UAAU,EAAE,MAAM,oBAAoB,CAAA;AAC9D,OAAO,KAAK,EAAE,YAAY,EAAE,MAAM,EAAE,SAAS,EAAE,MAAM,EAAE,MAAM,iBAAiB,CAAA;AAE9E,YAAY,EAAE,YAAY,EAAE,CAAA;AAE5B,MAAM,MAAM,kBAAkB,GAC3B;IAAE,MAAM,EAAE,UAAU,CAAA;CAAE,GACtB;IAAE,MAAM,EAAE,cAAc,CAAC;IAAC,QAAQ,CAAC,EAAE,MAAM,CAAA;CAAE,GAC7C;IAAE,MAAM,EAAE,aAAa,CAAC;IAAC,QAAQ,EAAE,MAAM,CAAA;CAAE,GAC3C;IACA,MAAM,EAAE,eAAe,CAAA;IACvB;;;;;;;;;;;;;;;;OAgBG;IACH,QAAQ,CAAC,EAAE,SAAS,MAAM,EAAE,CAAA;IAC5B;;;;;;;;;;;OAWG;IACH,oBAAoB,CAAC,EAAE,SAAS,MAAM,EAAE,CAAA;IACxC;;;;;;;OAOG;IACH,YAAY,CAAC,EAAE,SAAS,MAAM,EAAE,CAAA;CAC/B,GACD;IACA,MAAM,EAAE,cAAc,CAAA;IACtB,aAAa,EAAE,gBAAgB,EAAE,CAAA;IACjC,sDAAsD;IACtD,oBAAoB,CAAC,EAAE,SAAS,MAAM,EAAE,CAAA;CACvC,GACD;
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/types/hitl/index.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,QAAQ,EAAE,UAAU,EAAE,MAAM,oBAAoB,CAAA;AAC9D,OAAO,KAAK,EAAE,YAAY,EAAE,MAAM,EAAE,SAAS,EAAE,MAAM,EAAE,MAAM,iBAAiB,CAAA;AAE9E,YAAY,EAAE,YAAY,EAAE,CAAA;AAE5B,gFAAgF;AAChF,MAAM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KACb,CAAC,CAAA;IACF,OAAO,CAAC,EAAE,MAAM,CAAA;CAChB;AAED,MAAM,WAAW,iBAAiB;IACjC,SAAS,EAAE,MAAM,CAAA;IACjB,YAAY,EAAE,MAAM,CAAA;IACpB,UAAU,EAAE,UAAU,CAAA;IACtB,QAAQ,EAAE,QAAQ,CAAA;IAClB,oBAAoB,CAAC,EAAE,MAAM,CAAA;CAC7B;AAED;;;;;;;;;;;;;GAaG;AACH,MAAM,WAAW,eAAe;IAC/B,0EAA0E;IAC1E,QAAQ,CAAC,OAAO,EAAE,mBAAmB,CAAA;IACrC,yCAAyC;IACzC,QAAQ,CAAC,QAAQ,EAAE,MAAM,CAAA;IACzB;;;;;;;;;;;;;;;;;;;OAmBG;IACH,QAAQ,CAAC,UAAU,CAAC,EAAE,MAAM,CAAA;IAC5B;;;;OAIG;IACH,QAAQ,CAAC,UAAU,CAAC,EAAE,MAAM,CAAA;IAC5B,0EAA0E;IAC1E,QAAQ,CAAC,QAAQ,CAAC,EAAE,kBAAkB,CAAA;CACtC;AAED,wBAAgB,kBAAkB,CAAC,OAAO,EAAE,mBAAmB,GAAG,OAAO,CAAC,kBAAkB,CAAC,CAwB5F"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../src/types/hitl/index.ts"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../src/types/hitl/index.ts"],"names":[],"mappings":"AAwWA,MAAM,UAAU,kBAAkB,CAAC,OAA4B;IAC9D,QAAQ,OAAO,CAAC,IAAI,EAAE,CAAC;QACtB,KAAK,eAAe;YACnB,OAAO,OAAO,CAAC,OAAO,CAAC,EAAE,MAAM,EAAE,cAAc,EAAE,CAAC,CAAA;QACnD,KAAK,aAAa;YACjB,OAAO,OAAO,CAAC,OAAO,CAAC,EAAE,MAAM,EAAE,eAAe,EAAE,CAAC,CAAA;QACpD,KAAK,sBAAsB;YAC1B,OAAO,OAAO,CAAC,OAAO,CAAC,EAAE,MAAM,EAAE,UAAU,EAAE,CAAC,CAAA;QAC/C,KAAK,eAAe;YACnB,4DAA4D;YAC5D,yDAAyD;YACzD,6DAA6D;YAC7D,uCAAuC;YACvC,OAAO,OAAO,CAAC,OAAO,CAAC;gBACtB,MAAM,EAAE,iBAAiB;gBACzB,iBAAiB,EAAE,EAAE;gBACrB,QAAQ,EAAE,mEAAmE;gBAC7E,UAAU,EAAE,OAAO,CAAC,QAAQ,CAAC,UAAU;aACvC,CAAC,CAAA;QACH,OAAO,CAAC,CAAC,CAAC;YACT,MAAM,WAAW,GAAU,OAAO,CAAA;YAClC,MAAM,IAAI,KAAK,CAAC,gCAAiC,WAAmC,CAAC,IAAI,EAAE,CAAC,CAAA;QAC7F,CAAC;IACF,CAAC;AACF,CAAC"}
|
|
@@ -0,0 +1,47 @@
|
|
|
1
|
+
/** A literal condition on one existing background job's output. */
|
|
2
|
+
export interface BackgroundJobOutputWaitOptions {
|
|
3
|
+
/** Non-empty UTF-8 literal, at most 4096 bytes. Never a regular expression. */
|
|
4
|
+
readonly literal: string;
|
|
5
|
+
/** Match each pipe independently; `either` never joins stdout to stderr. */
|
|
6
|
+
readonly stream?: 'stdout' | 'stderr' | 'either';
|
|
7
|
+
/** Combined output byte cursor, as returned by `read` or an earlier wait. */
|
|
8
|
+
readonly fromOffset?: number;
|
|
9
|
+
/** Required wall bound, from 1 millisecond through one hour. */
|
|
10
|
+
readonly timeoutMs: number;
|
|
11
|
+
/** Optional silence bound, reset by output from either pipe. */
|
|
12
|
+
readonly idleTimeoutMs?: number;
|
|
13
|
+
/** Cancels this observation, without stopping the process. */
|
|
14
|
+
readonly signal?: AbortSignal;
|
|
15
|
+
}
|
|
16
|
+
/** Evidence and cursor common to every readiness wait outcome. */
|
|
17
|
+
export interface BackgroundJobOutputWaitProgress {
|
|
18
|
+
readonly status: string;
|
|
19
|
+
readonly exitCode?: number;
|
|
20
|
+
/** Why the command never started, when it could not. */
|
|
21
|
+
readonly error?: string;
|
|
22
|
+
/** Mixed stdout/stderr tail, at most 32 KiB. Treat process output as untrusted. */
|
|
23
|
+
readonly output: string;
|
|
24
|
+
readonly nextOffset: number;
|
|
25
|
+
/** Bytes unavailable because the job's normal output cap discarded them. */
|
|
26
|
+
readonly droppedBytes: number;
|
|
27
|
+
/** Available output excluded from matching by the bounded channel history. */
|
|
28
|
+
readonly unsearchedBytes: number;
|
|
29
|
+
/** Earlier observed bytes omitted from the bounded result text. */
|
|
30
|
+
readonly omittedOutputBytes: number;
|
|
31
|
+
}
|
|
32
|
+
/** A matched marker proves its appearance, not process completion or service health. */
|
|
33
|
+
export type BackgroundJobOutputWaitResult = BackgroundJobOutputWaitProgress & ({
|
|
34
|
+
readonly kind: 'matched';
|
|
35
|
+
readonly matchedStream: 'stdout' | 'stderr';
|
|
36
|
+
} | {
|
|
37
|
+
readonly kind: 'exited';
|
|
38
|
+
} | {
|
|
39
|
+
readonly kind: 'stopped';
|
|
40
|
+
} | {
|
|
41
|
+
readonly kind: 'timeout';
|
|
42
|
+
readonly cause: 'wall' | 'idle';
|
|
43
|
+
readonly elapsedMs: number;
|
|
44
|
+
} | {
|
|
45
|
+
readonly kind: 'aborted';
|
|
46
|
+
});
|
|
47
|
+
//# sourceMappingURL=index.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/types/job/index.ts"],"names":[],"mappings":"AAAA,mEAAmE;AACnE,MAAM,WAAW,8BAA8B;IAC9C,+EAA+E;IAC/E,QAAQ,CAAC,OAAO,EAAE,MAAM,CAAA;IACxB,4EAA4E;IAC5E,QAAQ,CAAC,MAAM,CAAC,EAAE,QAAQ,GAAG,QAAQ,GAAG,QAAQ,CAAA;IAChD,6EAA6E;IAC7E,QAAQ,CAAC,UAAU,CAAC,EAAE,MAAM,CAAA;IAC5B,gEAAgE;IAChE,QAAQ,CAAC,SAAS,EAAE,MAAM,CAAA;IAC1B,gEAA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
@@ -0,0 +1,44 @@
|
|
|
1
|
+
import type { SessionLogHead } from '../../store/session-log/core.js';
|
|
2
|
+
import type { MessageId, SessionId, TurnId } from '../ids/index.js';
|
|
3
|
+
import type { RuntimeContextMessageSource, UserMessage } from './index.js';
|
|
4
|
+
/** Host provenance only; this reference grants no operator authority. */
|
|
5
|
+
export interface InboundDeliveryRef {
|
|
6
|
+
readonly namespace: string;
|
|
7
|
+
readonly id: string;
|
|
8
|
+
readonly digest: string;
|
|
9
|
+
}
|
|
10
|
+
/** Bounded validation for persisted or JavaScript-authored delivery references. */
|
|
11
|
+
export declare function isInboundDeliveryRef(value: unknown): value is InboundDeliveryRef;
|
|
12
|
+
/** Durable delivery carries host context and cannot acquire operator authority. */
|
|
13
|
+
export type DurableInboundMessage = UserMessage & {
|
|
14
|
+
readonly source: RuntimeContextMessageSource & {
|
|
15
|
+
readonly kind: Exclude<RuntimeContextMessageSource['kind'], 'steering'>;
|
|
16
|
+
readonly deliveryRef: InboundDeliveryRef;
|
|
17
|
+
};
|
|
18
|
+
};
|
|
19
|
+
export interface InboundDeliveryClaim {
|
|
20
|
+
readonly claimId: string;
|
|
21
|
+
readonly ref: InboundDeliveryRef;
|
|
22
|
+
readonly message: DurableInboundMessage;
|
|
23
|
+
}
|
|
24
|
+
/** Exact ordinary session-log append, flushed before the host acknowledges it. */
|
|
25
|
+
export interface InboundDeliveryReceipt {
|
|
26
|
+
readonly claimId: string;
|
|
27
|
+
readonly ref: InboundDeliveryRef;
|
|
28
|
+
readonly sessionId: SessionId;
|
|
29
|
+
readonly turnId: TurnId;
|
|
30
|
+
readonly messageId: MessageId;
|
|
31
|
+
readonly through: SessionLogHead;
|
|
32
|
+
}
|
|
33
|
+
/** Host-owned durable input. Claim, write and acknowledgement failures stop execution. */
|
|
34
|
+
export interface DurableInboundSource {
|
|
35
|
+
claim(context: {
|
|
36
|
+
readonly sessionId: SessionId;
|
|
37
|
+
readonly turnId: TurnId;
|
|
38
|
+
readonly signal: AbortSignal;
|
|
39
|
+
}): Promise<readonly InboundDeliveryClaim[]>;
|
|
40
|
+
recorded(receipts: readonly InboundDeliveryReceipt[]): Promise<void>;
|
|
41
|
+
/** Wake only. An aborted wait must remove its listener. */
|
|
42
|
+
wait?(signal: AbortSignal): Promise<void>;
|
|
43
|
+
}
|
|
44
|
+
//# sourceMappingURL=inbound-delivery.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"inbound-delivery.d.ts","sourceRoot":"","sources":["../../../src/types/message/inbound-delivery.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,cAAc,EAAE,MAAM,iCAAiC,CAAA;AACrE,OAAO,KAAK,EAAE,SAAS,EAAE,SAAS,EAAE,MAAM,EAAE,MAAM,iBAAiB,CAAA;AACnE,OAAO,KAAK,EAAE,2BAA2B,EAAE,WAAW,EAAE,MAAM,YAAY,CAAA;AAE1E,yEAAyE;AACzE,MAAM,WAAW,kBAAkB;IAClC,QAAQ,CAAC,SAAS,EAAE,MAAM,CAAA;IAC1B,QAAQ,CAAC,EAAE,EAAE,MAAM,CAAA;IACnB,QAAQ,CAAC,MAAM,EAAE,MAAM,CAAA;CACvB;AAED,mFAAmF;AACnF,wBAAgB,oBAAoB,CAAC,KAAK,EAAE,OAAO,GAAG,KAAK,IAAI,kBAAkB,CAchF;AAED,mFAAmF;AACnF,MAAM,MAAM,qBAAqB,GAAG,WAAW,GAAG;IACjD,QAAQ,CAAC,MAAM,EAAE,2BAA2B,GAAG;QAC9C,QAAQ,CAAC,IAAI,EAAE,OAAO,CAAC,2BAA2B,CAAC,MAAM,CAAC,EAAE,UAAU,CAAC,CAAA;QACvE,QAAQ,CAAC,WAAW,EAAE,kBAAkB,CAAA;KACxC,CAAA;CACD,CAAA;AAED,MAAM,WAAW,oBAAoB;IACpC,QAAQ,CAAC,OAAO,EAAE,MAAM,CAAA;IACxB,QAAQ,CAAC,GAAG,EAAE,kBAAkB,CAAA;IAChC,QAAQ,CAAC,OAAO,EAAE,qBAAqB,CAAA;CACvC;AAED,kFAAkF;AAClF,MAAM,WAAW,sBAAsB;IACtC,QAAQ,CAAC,OAAO,EAAE,MAAM,CAAA;IACxB,QAAQ,CAAC,GAAG,EAAE,kBAAkB,CAAA;IAChC,QAAQ,CAAC,SAAS,EAAE,SAAS,CAAA;IAC7B,QAAQ,CAAC,MAAM,EAAE,MAAM,CAAA;IACvB,QAAQ,CAAC,SAAS,EAAE,SAAS,CAAA;IAC7B,QAAQ,CAAC,OAAO,EAAE,cAAc,CAAA;CAChC;AAED,0FAA0F;AAC1F,MAAM,WAAW,oBAAoB;IACpC,KAAK,CAAC,OAAO,EAAE;QACd,QAAQ,CAAC,SAAS,EAAE,SAAS,CAAA;QAC7B,QAAQ,CAAC,MAAM,EAAE,MAAM,CAAA;QACvB,QAAQ,CAAC,MAAM,EAAE,WAAW,CAAA;KAC5B,GAAG,OAAO,CAAC,SAAS,oBAAoB,EAAE,CAAC,CAAA;IAC5C,QAAQ,CAAC,QAAQ,EAAE,SAAS,sBAAsB,EAAE,GAAG,OAAO,CAAC,IAAI,CAAC,CAAA;IACpE,2DAA2D;IAC3D,IAAI,CAAC,CAAC,MAAM,EAAE,WAAW,GAAG,OAAO,CAAC,IAAI,CAAC,CAAA;CACzC"}
|
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
/** Bounded validation for persisted or JavaScript-authored delivery references. */
|
|
2
|
+
export function isInboundDeliveryRef(value) {
|
|
3
|
+
if (typeof value !== 'object' || value === null || Array.isArray(value))
|
|
4
|
+
return false;
|
|
5
|
+
const candidate = value;
|
|
6
|
+
return ['namespace', 'id', 'digest'].every((key) => {
|
|
7
|
+
const field = candidate[key];
|
|
8
|
+
return (typeof field === 'string' &&
|
|
9
|
+
field.length > 0 &&
|
|
10
|
+
field.length <= 512 &&
|
|
11
|
+
[...field].every((character) => character.charCodeAt(0) >= 32 && character.charCodeAt(0) !== 127));
|
|
12
|
+
});
|
|
13
|
+
}
|
|
14
|
+
//# sourceMappingURL=inbound-delivery.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"inbound-delivery.js","sourceRoot":"","sources":["../../../src/types/message/inbound-delivery.ts"],"names":[],"mappings":"AAWA,mFAAmF;AACnF,MAAM,UAAU,oBAAoB,CAAC,KAAc;IAClD,IAAI,OAAO,KAAK,KAAK,QAAQ,IAAI,KAAK,KAAK,IAAI,IAAI,KAAK,CAAC,OAAO,CAAC,KAAK,CAAC;QAAE,OAAO,KAAK,CAAA;IACrF,MAAM,SAAS,GAAG,KAAgC,CAAA;IAClD,OAAO,CAAC,WAAW,EAAE,IAAI,EAAE,QAAQ,CAAC,CAAC,KAAK,CAAC,CAAC,GAAG,EAAE,EAAE;QAClD,MAAM,KAAK,GAAG,SAAS,CAAC,GAAG,CAAC,CAAA;QAC5B,OAAO,CACN,OAAO,KAAK,KAAK,QAAQ;YACzB,KAAK,CAAC,MAAM,GAAG,CAAC;YAChB,KAAK,CAAC,MAAM,IAAI,GAAG;YACnB,CAAC,GAAG,KAAK,CAAC,CAAC,KAAK,CACf,CAAC,SAAS,EAAE,EAAE,CAAC,SAAS,CAAC,UAAU,CAAC,CAAC,CAAC,IAAI,EAAE,IAAI,SAAS,CAAC,UAAU,CAAC,CAAC,CAAC,KAAK,GAAG,CAC/E,CACD,CAAA;IACF,CAAC,CAAC,CAAA;AACH,CAAC"}
|
|
@@ -1,4 +1,5 @@
|
|
|
1
1
|
import type { GoalId, MessageId } from '../ids/index.js';
|
|
2
|
+
import { type InboundDeliveryRef } from './inbound-delivery.js';
|
|
2
3
|
export type MessageRole = 'system' | 'user' | 'assistant' | 'tool';
|
|
3
4
|
export type CacheHint = 'cache' | 'ephemeral' | 'none';
|
|
4
5
|
/** Why durable rich content must not be sent to a model again. */
|
|
@@ -328,12 +329,14 @@ export interface ProjectInstructionMessageSource {
|
|
|
328
329
|
* transcript, export, or previous-prompt editor from presenting kernel context
|
|
329
330
|
* as something the operator typed.
|
|
330
331
|
*/
|
|
331
|
-
export declare const RUNTIME_CONTEXT_MESSAGE_KINDS: readonly ["advisory", "answer-review", "auto-continuation", "job-exit", "limit-finalization", "peer-message", "peer-notice", "repeat-call", "steering", "step-context", "structured-output", "task-completion"];
|
|
332
|
+
export declare const RUNTIME_CONTEXT_MESSAGE_KINDS: readonly ["advisory", "answer-review", "auto-continuation", "channel-message", "host-observation", "job-exit", "limit-finalization", "peer-message", "peer-notice", "repeat-call", "steering", "step-context", "structured-output", "task-completion"];
|
|
332
333
|
export type RuntimeContextMessageKind = (typeof RUNTIME_CONTEXT_MESSAGE_KINDS)[number];
|
|
333
334
|
/** Host-generated context carried in the provider's required user role. */
|
|
334
335
|
export interface RuntimeContextMessageSource {
|
|
335
336
|
readonly type: 'runtime-context';
|
|
336
337
|
readonly kind: RuntimeContextMessageKind;
|
|
338
|
+
/** Optional durable host delivery identity; it never grants operator authority. */
|
|
339
|
+
readonly deliveryRef?: InboundDeliveryRef;
|
|
337
340
|
}
|
|
338
341
|
export type UserMessageSource = GoalRoundMessageSource | ProjectInstructionMessageSource | RuntimeContextMessageSource;
|
|
339
342
|
/** A bounded source list keeps untrusted persisted metadata cheap to validate. */
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/types/message/index.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,MAAM,EAAE,SAAS,EAAE,MAAM,iBAAiB,CAAA;
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/types/message/index.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,MAAM,EAAE,SAAS,EAAE,MAAM,iBAAiB,CAAA;AACxD,OAAO,EAAE,KAAK,kBAAkB,EAAwB,MAAM,uBAAuB,CAAA;AAErF,MAAM,MAAM,WAAW,GAAG,QAAQ,GAAG,MAAM,GAAG,WAAW,GAAG,MAAM,CAAA;AAElE,MAAM,MAAM,SAAS,GAAG,OAAO,GAAG,WAAW,GA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AAA;CAC5C;AAED,MAAM,MAAM,OAAO,GAAG,aAAa,GAAG,WAAW,GAAG,gBAAgB,GAAG,WAAW,CAAA;AAElF,wBAAgB,mBAAmB,CAAC,OAAO,EAAE,MAAM,EAAE,SAAS,CAAC,EAAE,SAAS,GAAG,aAAa,CAOzF;AAED,wBAAgB,iBAAiB,CAChC,OAAO,EAAE,MAAM,EACf,WAAW,CAAC,EAAE,SAAS,iBAAiB,EAAE,EAC1C,MAAM,CAAC,EAAE,iBAAiB,GACxB,WAAW,CAQb;AAED,gEAAgE;AAChE,wBAAgB,2BAA2B,CAC1C,OAAO,EAAE,MAAM,EACf,IAAI,EAAE,yBAAyB,GAC7B,WAAW,CAKb;AAED,gFAAgF;AAChF,wBAAgB,+BAA+B,CAC9C,OAAO,EAAE,MAAM,EACf,KAAK,EAAE,SAAS,MAAM,EAAE,GACtB,WAAW,CAWb;AAED,wBAAgB,sBAAsB,CACrC,OAAO,EAAE,MAAM,GAAG,IAAI,EACtB,SAAS,CAAC,EAAE,QAAQ,EAAE,EACtB,SAAS,CAAC,EAAE,SAAS,cAAc,EAAE,EACrC,SAAS,CAAC,EAAE,SAAS,QAAQ,EAAE,EAC/B,MAAM,CAAC,EAAE,sBAAsB,EAC/B,SAAS,CAAC,EAAE,SAAS,iBAAiB,EAAE,GACtC,gBAAgB,CAWlB;AAED,wBAAgB,iBAAiB,CAChC,OAAO,EAAE,iBAAiB,EAC1B,UAAU,EAAE,MAAM,EAClB,OAAO,CAAC,EAAE,OAAO,EACjB,aAAa,CAAC,EAAE,SAAS,iBAAiB,EAAE,GAC1C,WAAW,CASb;AAED,OAAO,EACN,gBAAgB,EAChB,kBAAkB,EAClB,gBAAgB,GAChB,MAAM,cAAc,CAAA"}
|
|
@@ -1,3 +1,4 @@
|
|
|
1
|
+
import { isInboundDeliveryRef } from './inbound-delivery.js';
|
|
1
2
|
/** Runtime validation for persisted model-delivery metadata. */
|
|
2
3
|
export function isModelContentOmission(value) {
|
|
3
4
|
return (typeof value === 'object' &&
|
|
@@ -21,6 +22,8 @@ export const RUNTIME_CONTEXT_MESSAGE_KINDS = [
|
|
|
21
22
|
'advisory',
|
|
22
23
|
'answer-review',
|
|
23
24
|
'auto-continuation',
|
|
25
|
+
'channel-message',
|
|
26
|
+
'host-observation',
|
|
24
27
|
'job-exit',
|
|
25
28
|
'limit-finalization',
|
|
26
29
|
'peer-message',
|
|
@@ -71,7 +74,8 @@ export function isRuntimeContextMessageSource(value) {
|
|
|
71
74
|
const candidate = value;
|
|
72
75
|
return (candidate.type === 'runtime-context' &&
|
|
73
76
|
typeof candidate.kind === 'string' &&
|
|
74
|
-
RUNTIME_CONTEXT_MESSAGE_KINDS.includes(candidate.kind)
|
|
77
|
+
RUNTIME_CONTEXT_MESSAGE_KINDS.includes(candidate.kind) &&
|
|
78
|
+
(candidate.deliveryRef === undefined || isInboundDeliveryRef(candidate.deliveryRef)));
|
|
75
79
|
}
|
|
76
80
|
/** Select explicit final answers, retaining unphased behavior when none is identified. */
|
|
77
81
|
export function selectAssistantText(parts) {
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../src/types/message/index.ts"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../src/types/message/index.ts"],"names":[],"mappings":"AACA,OAAO,EAA2B,oBAAoB,EAAE,MAAM,uBAAuB,CAAA;AAWrF,gEAAgE;AAChE,MAAM,UAAU,sBAAsB,CAAC,KAAc;IACpD,OAAO,CACN,OAAO,KAAK,KAAK,QAAQ;QACzB,KAAK,KAAK,IAAI;QACd,CAAC,KAAK,CAAC,OAAO,CAAC,KAAK,CAAC;QACrB,CAAE,KAAuC,CAAC,MAAM,KAAK,mBAAmB;YACtE,KAAuC,CAAC,MAAM,KAAK,eAAe,CAAC,CACrE,CAAA;AACF,CAAC;AA6GD,MAAM,CAAC,MAAM,oBAAoB,GAAG,CACnC,UAA6B,EACM,EAAE,CAAC,UAAU,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