@sema-agent/core 7.72.0 → 7.74.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 +565 -0
- package/dist/agents/inherited-tool-pool.d.ts +26 -1
- package/dist/agents/inherited-tool-pool.js +46 -2
- package/dist/agents/list-agents-tool.js +1 -1
- package/dist/agents/parked-resume-drive.d.ts +10 -0
- package/dist/agents/parked-resume-drive.js +9 -0
- package/dist/agents/retain-ledger.d.ts +3 -0
- package/dist/agents/retain-ledger.js +3 -3
- package/dist/agents/send-message-tool.js +5 -4
- package/dist/agents/send-user-message-tool.d.ts +12 -0
- package/dist/agents/send-user-message-tool.js +67 -0
- package/dist/agents/subagent-steps.d.ts +9 -0
- package/dist/agents/subagent-steps.js +38 -0
- package/dist/agents/subagent.d.ts +2 -0
- package/dist/agents/subagent.js +43 -12
- package/dist/agents/verify.js +23 -8
- package/dist/agents/yield-adoption.js +3 -1
- package/dist/brain/anthropic.d.ts +42 -1
- package/dist/brain/anthropic.js +68 -13
- package/dist/brain/failover.d.ts +5 -0
- package/dist/brain/failover.js +51 -22
- package/dist/brain/model-lane.d.ts +12 -3
- package/dist/brain/model-lane.js +5 -5
- package/dist/brain/open-responses.js +7 -8
- package/dist/brain/openai.js +31 -24
- package/dist/brain/route-adjudicator.d.ts +33 -4
- package/dist/brain/route-adjudicator.js +49 -12
- package/dist/brain/stream-engine.js +166 -156
- package/dist/brain/stream-shared.d.ts +4 -3
- package/dist/brain/stream-shared.js +2 -2
- package/dist/core/actions-digest.d.ts +43 -0
- package/dist/core/actions-digest.js +22 -0
- package/dist/core/allow-entry.js +4 -4
- package/dist/core/ask-class.d.ts +2 -2
- package/dist/core/ask-headline.d.ts +1 -1
- package/dist/core/ask-origin.d.ts +44 -4
- package/dist/core/ask-origin.js +29 -10
- package/dist/core/auto-mode.d.ts +7 -9
- package/dist/core/auto-mode.js +114 -8
- package/dist/core/background-agent-store.d.ts +1 -0
- package/dist/core/background-agent-store.js +49 -8
- package/dist/core/checkpoint-features.d.ts +3 -2
- package/dist/core/checkpoint-features.js +1 -1
- package/dist/core/checkpoint-rekey.d.ts +1 -1
- package/dist/core/checkpoint-rekey.js +6 -1
- package/dist/core/checkpoint-requirements.d.ts +23 -3
- package/dist/core/checkpoint-requirements.js +5 -1
- package/dist/core/checkpoint-row-verdict.d.ts +1 -1
- package/dist/core/checkpoint-row-verdict.js +9 -3
- package/dist/core/checkpoint-store.d.ts +26 -2
- package/dist/core/checkpoint-store.js +9 -2
- package/dist/core/child-clamp-seats.d.ts +15 -0
- package/dist/core/child-clamp-seats.js +15 -0
- package/dist/core/config-refusal-codes.d.ts +1 -1
- package/dist/core/config-refusal-codes.js +1 -0
- package/dist/core/cron.js +9 -1
- package/dist/core/delegation-frames.d.ts +1 -0
- package/dist/core/delegation-frames.js +1 -1
- package/dist/core/deployment-shape.d.ts +7 -0
- package/dist/core/deployment-shape.js +19 -0
- package/dist/core/engine-capabilities.d.ts +13 -1
- package/dist/core/engine-capabilities.js +1 -1
- package/dist/core/engine-notice.d.ts +41 -28
- package/dist/core/engine-version.js +1 -1
- package/dist/core/entries-not-applied.d.ts +19 -7
- package/dist/core/entries-not-applied.js +33 -1
- package/dist/core/gate-fold.js +5 -4
- package/dist/core/gate-lanes.js +8 -12
- package/dist/core/gate-outcome.d.ts +8 -2
- package/dist/core/gate-outcome.js +10 -3
- package/dist/core/governance-codes.d.ts +14 -2
- package/dist/core/governance-codes.js +22 -6
- package/dist/core/hook-condition.d.ts +37 -0
- package/dist/core/hook-condition.js +567 -0
- package/dist/core/hooks.d.ts +5 -0
- package/dist/core/hooks.js +1 -0
- package/dist/core/host-instance.d.ts +23 -0
- package/dist/core/host-instance.js +69 -0
- package/dist/core/instruction-preview.d.ts +63 -0
- package/dist/core/instruction-preview.js +406 -0
- package/dist/core/leg-budget.d.ts +26 -0
- package/dist/core/leg-budget.js +9 -0
- package/dist/core/leg-identity.d.ts +51 -1
- package/dist/core/leg-identity.js +45 -2
- package/dist/core/manager-launch-check.d.ts +48 -0
- package/dist/core/manager-launch-check.js +64 -0
- package/dist/core/mcp-call-meta.d.ts +2 -2
- package/dist/core/mcp-injection-drop.d.ts +20 -10
- package/dist/core/mcp-injection-drop.js +9 -3
- package/dist/core/mcp-server-spec.d.ts +2 -1
- package/dist/core/member-outcome.d.ts +3 -2
- package/dist/core/member-outcome.js +1 -1
- package/dist/core/memory-engine/deletion-record.d.ts +46 -0
- package/dist/core/memory-engine/deletion-record.js +96 -0
- package/dist/core/memory-engine/engine.js +24 -16
- package/dist/core/memory-engine/file-backend.js +7 -5
- package/dist/core/memory-engine/projection-ledger.d.ts +1 -1
- package/dist/core/memory-engine/projection-ledger.js +1 -1
- package/dist/core/memory-engine/scope-contract.d.ts +18 -13
- package/dist/core/memory-engine/scope-contract.js +18 -18
- package/dist/core/memory-engine/sync-client.js +26 -6
- package/dist/core/memory-engine/sync.d.ts +20 -2
- package/dist/core/memory-engine/sync.js +18 -17
- package/dist/core/mode-policy.d.ts +25 -6
- package/dist/core/mode-policy.js +33 -8
- package/dist/core/model-seat.d.ts +8 -5
- package/dist/core/model-shell.d.ts +129 -0
- package/dist/core/model-shell.js +249 -0
- package/dist/core/mods/kernel/digest.d.ts +4 -0
- package/dist/core/mods/kernel/digest.js +5 -0
- package/dist/core/mods/kernel/dispatch.d.ts +3 -0
- package/dist/core/mods/kernel/dispatch.js +15 -6
- package/dist/core/mods/kernel/events.d.ts +21 -5
- package/dist/core/mods/kernel/events.js +19 -10
- package/dist/core/mods/kernel/hash-mirror.d.ts +1 -0
- package/dist/core/mods/kernel/hash-mirror.js +55 -0
- package/dist/core/mods/kernel/index.d.ts +1 -0
- package/dist/core/mods/kernel/index.js +1 -0
- package/dist/core/mods/kernel/package-reader.d.ts +48 -0
- package/dist/core/mods/kernel/package-reader.js +149 -0
- package/dist/core/mods/kernel/site-rules.d.ts +4 -0
- package/dist/core/mods/kernel/site-rules.js +13 -0
- package/dist/core/mods/package.d.ts +7 -3
- package/dist/core/mods/package.js +47 -80
- package/dist/core/own-property-receipt.js +11 -4
- package/dist/core/parent-spec-seat.d.ts +13 -11
- package/dist/core/parent-spec-seat.js +13 -9
- package/dist/core/peer-seat.js +3 -3
- package/dist/core/peer-task-store.d.ts +365 -0
- package/dist/core/peer-task-store.js +682 -0
- package/dist/core/permission-rule-consent.js +6 -11
- package/dist/core/permission-rule-model.d.ts +27 -0
- package/dist/core/permission-rule-model.js +33 -5
- package/dist/core/permission-rule-org.js +13 -3
- package/dist/core/permission-rule-provider.d.ts +35 -33
- package/dist/core/permission-rule-provider.js +38 -295
- package/dist/core/permission-rule-store.d.ts +181 -8
- package/dist/core/permission-rule-store.js +420 -17
- package/dist/core/permission-rule-sync.js +15 -1
- package/dist/core/permission-rules.js +4 -1
- package/dist/core/project-seat.d.ts +55 -0
- package/dist/core/project-seat.js +96 -0
- package/dist/core/protocol-http-auth.d.ts +3 -2
- package/dist/core/protocol-http-auth.js +26 -18
- package/dist/core/remote-env.d.ts +4 -4
- package/dist/core/retain-seat.d.ts +42 -0
- package/dist/core/retain-seat.js +76 -0
- package/dist/core/retired-keys.js +1 -0
- package/dist/core/rewind-refusal-codes.d.ts +8 -0
- package/dist/core/rewind-refusal-codes.js +12 -0
- package/dist/core/roles.d.ts +2 -2
- package/dist/core/roles.js +15 -1
- package/dist/core/rule-offer-read.d.ts +1 -1
- package/dist/core/rule-offer-read.js +32 -4
- package/dist/core/rule-store-fault.d.ts +9 -7
- package/dist/core/rule-store-fault.js +8 -3
- package/dist/core/run-ledger-seat.d.ts +66 -0
- package/dist/core/run-ledger-seat.js +70 -0
- package/dist/core/run-ledger.d.ts +332 -0
- package/dist/core/run-ledger.js +550 -0
- package/dist/core/runner/checkpoint-scope.d.ts +14 -3
- package/dist/core/runner/checkpoint-scope.js +16 -6
- package/dist/core/runner/compact-session.js +1 -1
- package/dist/core/runner/construction-doors.js +8 -0
- package/dist/core/runner/contracts.d.ts +21 -5
- package/dist/core/runner/cross-boundary-lane.d.ts +8 -1
- package/dist/core/runner/cross-boundary-lane.js +4 -0
- package/dist/core/runner/delegation-owner.d.ts +30 -0
- package/dist/core/runner/delegation-owner.js +20 -4
- package/dist/core/runner/finish-reason-seat.js +4 -2
- package/dist/core/runner/gate-exit.d.ts +7 -0
- package/dist/core/runner/gate-exit.js +2 -1
- package/dist/core/runner/leg-frame.js +3 -0
- package/dist/core/runner/model-lane-seat.d.ts +3 -0
- package/dist/core/runner/model-lane-seat.js +4 -0
- package/dist/core/runner/nested-memory-lane.d.ts +22 -5
- package/dist/core/runner/nested-memory-lane.js +91 -30
- package/dist/core/runner/person-path-rows.d.ts +27 -16
- package/dist/core/runner/person-path-rows.js +93 -15
- package/dist/core/runner/prepare-caps-and-workflow.js +98 -88
- package/dist/core/runner/prepare-config-doors.d.ts +1 -0
- package/dist/core/runner/prepare-config-doors.js +13 -7
- package/dist/core/runner/prepare-context-lane.js +1 -0
- package/dist/core/runner/prepare-delegation-surface.d.ts +3 -0
- package/dist/core/runner/prepare-delegation-surface.js +6 -0
- package/dist/core/runner/prepare-execution-env.d.ts +3 -3
- package/dist/core/runner/prepare-gate-stations.d.ts +6 -0
- package/dist/core/runner/prepare-gate-stations.js +3 -1
- package/dist/core/runner/prepare-hands-readface.d.ts +5 -2
- package/dist/core/runner/prepare-hands-readface.js +15 -3
- package/dist/core/runner/prepare-inherited-gate.d.ts +6 -3
- package/dist/core/runner/prepare-inherited-gate.js +13 -5
- package/dist/core/runner/prepare-offload-wrappers.js +1 -1
- package/dist/core/runner/prepare-run-refs.d.ts +1 -1
- package/dist/core/runner/prepare-run-refs.js +3 -2
- package/dist/core/runner/prepare-suspend-saga.d.ts +6 -2
- package/dist/core/runner/prepare-suspend-saga.js +4 -2
- package/dist/core/runner/prepare-task.js +42 -30
- package/dist/core/runner/prepare-turn-wiring.d.ts +4 -3
- package/dist/core/runner/prepare-turn-wiring.js +2 -1
- package/dist/core/runner/prepare-wiring-manifest.d.ts +3 -1
- package/dist/core/runner/prepare-wiring-manifest.js +8 -6
- package/dist/core/runner/resume-apply.js +11 -5
- package/dist/core/runner/resume-policy-outcome.js +5 -2
- package/dist/core/runner/resume-review-outcome.d.ts +3 -0
- package/dist/core/runner/resume-review-outcome.js +24 -1
- package/dist/core/runner/role-seat-defaulted.d.ts +3 -3
- package/dist/core/runner/role-seat-defaulted.js +1 -1
- package/dist/core/runner/rule-store-unreadable-notice.d.ts +1 -1
- package/dist/core/runner/rule-store-unreadable-notice.js +3 -3
- package/dist/core/runner/run-harness-handlers.js +4 -1
- package/dist/core/runner/run-identity-wiring.js +3 -2
- package/dist/core/runner/run-leg.js +5 -2
- package/dist/core/runner/run-notification-lane.js +20 -1
- package/dist/core/runner/run-settle-and-teardown.js +21 -12
- package/dist/core/runner/run-stop-and-final-verify.js +6 -0
- package/dist/core/runner/run-telemetry-and-budget-seats.js +1 -1
- package/dist/core/runner/runtask.d.ts +6 -2
- package/dist/core/runner/runtask.js +21 -9
- package/dist/core/runner/shell-env-withheld.d.ts +6 -4
- package/dist/core/runner/shell-env-withheld.js +25 -3
- package/dist/core/runner/stop-tail-notice.d.ts +10 -2
- package/dist/core/runner/stop-tail-notice.js +9 -2
- package/dist/core/runner/stream-settle-backstop.d.ts +1 -0
- package/dist/core/runner/stream-settle-backstop.js +1 -0
- package/dist/core/runner/sub-agent-deny-lists.js +9 -5
- package/dist/core/runner/task-start-doors.js +6 -3
- package/dist/core/runner/terminal-account.d.ts +6 -1
- package/dist/core/runner/terminal-account.js +16 -1
- package/dist/core/runner/tool-end-body.d.ts +1 -1
- package/dist/core/runner/tool-not-executed.d.ts +27 -8
- package/dist/core/runner/tool-not-executed.js +22 -11
- package/dist/core/runner/unreadable-person-rows.d.ts +2 -1
- package/dist/core/runner/write-protection-station.d.ts +1 -1
- package/dist/core/runner/write-protection-station.js +1 -1
- package/dist/core/runner-deps.d.ts +17 -10
- package/dist/core/secret-env.d.ts +61 -37
- package/dist/core/secret-env.js +49 -49
- package/dist/core/session-checkout.d.ts +3 -0
- package/dist/core/session-checkout.js +1 -0
- package/dist/core/session-store.d.ts +12 -6
- package/dist/core/session-store.js +26 -6
- package/dist/core/session.d.ts +31 -8
- package/dist/core/shell-read-silence.d.ts +40 -2
- package/dist/core/shell-read-silence.js +23 -4
- package/dist/core/store-contracts/checkpoint-store-contract.js +10 -0
- package/dist/core/store-contracts/peer-task-store-contract.d.ts +21 -0
- package/dist/core/store-contracts/peer-task-store-contract.js +516 -0
- package/dist/core/store-contracts/session-store-contract.d.ts +15 -2
- package/dist/core/store-contracts/session-store-contract.js +87 -3
- package/dist/core/store-contracts/workflow-journal-store-contract.d.ts +19 -1
- package/dist/core/store-contracts/workflow-journal-store-contract.js +89 -1
- package/dist/core/task-event.d.ts +14 -7
- package/dist/core/task-notification.d.ts +96 -10
- package/dist/core/task-notification.js +135 -6
- package/dist/core/task-registry-agent.d.ts +1 -0
- package/dist/core/task-registry-agent.js +1 -1
- package/dist/core/task-registry-shared.d.ts +12 -1
- package/dist/core/task-registry-shared.js +3 -1
- package/dist/core/task-registry-workflow.d.ts +1 -1
- package/dist/core/task-registry-workflow.js +9 -1
- package/dist/core/task-registry.d.ts +40 -2
- package/dist/core/task-registry.js +80 -15
- package/dist/core/task-result.d.ts +18 -3
- package/dist/core/task-spec-members.d.ts +3 -1
- package/dist/core/task-spec-members.js +19 -3
- package/dist/core/task-spec.d.ts +48 -22
- package/dist/core/tool-catalog-entries.js +2 -0
- package/dist/core/tool-gate-phase.d.ts +6 -3
- package/dist/core/tool-gate-phase.js +1 -0
- package/dist/core/tool-mount-facts.d.ts +8 -4
- package/dist/core/tool-mount-facts.js +7 -2
- package/dist/core/tool-mount-plan.d.ts +3 -1
- package/dist/core/tool-mount-plan.js +10 -3
- package/dist/core/tool-mount-static.d.ts +1 -1
- package/dist/core/tool-mount-static.js +4 -2
- package/dist/core/tool-result-store.d.ts +56 -3
- package/dist/core/tool-result-store.js +219 -25
- package/dist/core/tool-spec.d.ts +9 -2
- package/dist/core/trace.d.ts +3 -3
- package/dist/core/user-attachment.d.ts +5 -1
- package/dist/core/user-attachment.js +14 -7
- package/dist/core/wiring-manifest.d.ts +26 -20
- package/dist/core/wiring-manifest.js +7 -3
- package/dist/core/workflow-journal-store.d.ts +53 -10
- package/dist/core/workflow-journal-store.js +27 -4
- package/dist/core/workflow-run-store-contract.js +16 -0
- package/dist/core/workflow-run-store.d.ts +9 -7
- package/dist/core/workflow-run-store.js +4 -1
- package/dist/engine/execution-env/node-execution-env.d.ts +75 -1
- package/dist/engine/execution-env/node-execution-env.js +227 -13
- package/dist/engine/harness/types.d.ts +49 -1
- package/dist/engine/harness/types.js +10 -0
- package/dist/engine/llm/types.d.ts +13 -7
- package/dist/engine/llm/validation.d.ts +8 -1
- package/dist/engine/llm/validation.js +31 -2
- package/dist/engine/lsp/node-lsp-manager.js +2 -1
- package/dist/engine/session/import-validate.js +6 -1
- package/dist/engine/session/session.d.ts +15 -2
- package/dist/engine/session/session.js +34 -4
- package/dist/host-env.d.ts +10 -0
- package/dist/host-env.js +1 -0
- package/dist/index.d.ts +28 -9
- package/dist/index.js +22 -6
- package/dist/internal/harness-types.d.ts +1 -1
- package/dist/orchestration/goal.js +1 -1
- package/dist/orchestration/run-workflow-tool.js +40 -32
- package/dist/orchestration/workflow-park-adoption.d.ts +51 -12
- package/dist/orchestration/workflow-park-adoption.js +47 -12
- package/dist/orchestration/workflow-primitives.js +10 -1
- package/dist/orchestration/workflow-script-runner.d.ts +2 -2
- package/dist/orchestration/workflow-stop.d.ts +128 -0
- package/dist/orchestration/workflow-stop.js +156 -0
- package/dist/orchestration/workflow.d.ts +31 -7
- package/dist/orchestration/workflow.js +119 -57
- package/dist/prompts/manager-recipe.d.ts +18 -0
- package/dist/prompts/manager-recipe.js +24 -0
- package/dist/shell/lex.d.ts +2 -2
- package/dist/shell/lex.js +1 -1
- package/dist/stores/file/permission-rule-store.d.ts +3 -1
- package/dist/stores/file/permission-rule-store.js +0 -1
- package/dist/stores/file/workflow-journal-store.d.ts +16 -3
- package/dist/stores/file/workflow-journal-store.js +93 -5
- package/dist/stores/file/workflow-run-store.d.ts +1 -1
- package/dist/tools/fs/bash-model-shell.d.ts +23 -0
- package/dist/tools/fs/bash-model-shell.js +25 -0
- package/dist/tools/fs/bash-readonly-classifier.d.ts +6 -0
- package/dist/tools/fs/bash-readonly-classifier.js +3 -0
- package/dist/tools/fs/file-write-check.js +9 -3
- package/dist/tools/fs/fs-bash.js +13 -11
- package/dist/tools/fs/index.d.ts +8 -7
- package/dist/tools/fs/index.js +4 -4
- package/dist/tools/fs/read-deny-home.d.ts +1 -1
- package/dist/tools/fs/read-deny-home.js +5 -5
- package/dist/tools/fs/read-deny.d.ts +33 -8
- package/dist/tools/fs/read-deny.js +114 -25
- package/dist/tools/fs/safety.d.ts +4 -1
- package/dist/tools/fs/safety.js +4 -2
- package/dist/tools/fs/shell-read-argv.js +1 -0
- package/dist/tools/fs/shell-read-check.d.ts +9 -2
- package/dist/tools/fs/shell-read-check.js +134 -22
- package/dist/tools/fs/shell-read-establish.d.ts +9 -0
- package/dist/tools/fs/shell-read-establish.js +21 -11
- package/dist/tools/fs/shell-read-judge.d.ts +13 -1
- package/dist/tools/fs/shell-read-judge.js +26 -7
- package/dist/tools/fs/shell-read-plan.d.ts +7 -3
- package/dist/tools/fs/shell-read-plan.js +8 -5
- package/dist/tools/fs/shell-read-word.d.ts +8 -0
- package/dist/tools/fs/shell-read-word.js +13 -4
- package/dist/tools/fs/shell-read-write-targets.js +17 -9
- package/dist/tools/monitor.js +12 -8
- package/dist/tools/scheduler-tools.d.ts +1 -0
- package/dist/tools/scheduler-tools.js +5 -2
- package/package.json +3 -2
- package/test/export-surface.snapshot.json +192 -3
- package/wire-changes/answers/core-stores-sql@7.73.0.json +28 -0
- package/wire-changes/answers/core-stores-sql@7.74.0.json +7 -0
- package/wire-changes/answers/core@7.73.0.json +216 -0
- package/wire-changes/answers/core@7.74.0.json +68 -0
- package/wire-changes/answers/mods-kernel@7.73.0.json +7 -0
- package/wire-changes/answers/mods-kernel@7.74.0.json +21 -0
- package/wire-changes/answers/primitives@7.73.0.json +12 -0
- package/wire-changes/answers/primitives@7.74.0.json +7 -0
- package/wire-changes/answers/wiki-gate@7.73.0.json +7 -0
- package/wire-changes/answers/wiki-gate@7.74.0.json +8 -0
- package/wire-changes/core-stores-sql@7.73.0.json +326 -0
- package/wire-changes/core-stores-sql@7.74.0.json +143 -0
- package/wire-changes/core@7.73.0.json +6480 -0
- package/wire-changes/core@7.74.0.json +2210 -0
- package/wire-changes/mods-kernel@7.73.0.json +147 -0
- package/wire-changes/mods-kernel@7.74.0.json +421 -0
- package/wire-changes/primitives@7.73.0.json +227 -0
- package/wire-changes/primitives@7.74.0.json +174 -0
- package/wire-changes/wiki-gate@7.73.0.json +145 -0
- package/wire-changes/wiki-gate@7.74.0.json +145 -0
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { asAgentMessage, createCompactionSummaryMessage, createCustomMessage, } from "../harness/messages.js";
|
|
2
|
-
import { SessionError, isSessionCheckoutStand, isSyntheticApiErrorMessage, isValidModelChange, normalizeAnnouncedListing, normalizeCompactionStateCarrier, normalizeGitAnnouncement, normalizeReminderMark, normalizeSessionCheckoutFact, normalizeSessionCheckoutStatement, normalizeWorkspaceState } from "../harness/types.js";
|
|
2
|
+
import { SessionError, isRunLedgerRecord, isSessionCheckoutStand, isSyntheticApiErrorMessage, isValidModelChange, normalizeAnnouncedListing, normalizeCompactionStateCarrier, normalizeGitAnnouncement, normalizeReminderMark, normalizeSessionCheckoutFact, normalizeSessionCheckoutStatement, normalizeWorkspaceState } from "../harness/types.js";
|
|
3
3
|
import { readStoredPromptEpoch, walkPromptEpochCarriers } from "../../prompt-assembly/epoch.js";
|
|
4
4
|
import { budgetInvokedSkillsRetention, readElidedMessages, readRetainedInvokedSkills, readUnsummarizedMessages, renderInvokedSkillsRetention, } from "../compaction/utils.js";
|
|
5
5
|
import { thrownText } from "../../core/thrown-value.js";
|
|
@@ -21,6 +21,7 @@ export const ENTRY_RENDERS_INTO_CONTEXT = {
|
|
|
21
21
|
reminder_mark: false,
|
|
22
22
|
git_announcement: false,
|
|
23
23
|
session_checkout: false,
|
|
24
|
+
run_ledger: false,
|
|
24
25
|
};
|
|
25
26
|
export function entryRendersIntoContext(entry) {
|
|
26
27
|
return ENTRY_RENDERS_INTO_CONTEXT[entry.type] ?? true;
|
|
@@ -264,6 +265,28 @@ export class StoredSession {
|
|
|
264
265
|
mark: shaped,
|
|
265
266
|
});
|
|
266
267
|
}
|
|
268
|
+
async appendRunLedger(ledger) {
|
|
269
|
+
let copy;
|
|
270
|
+
try {
|
|
271
|
+
copy = structuredClone(ledger);
|
|
272
|
+
}
|
|
273
|
+
catch {
|
|
274
|
+
copy = undefined;
|
|
275
|
+
}
|
|
276
|
+
if (!isRunLedgerRecord(copy))
|
|
277
|
+
throw new SessionError("invalid_entry", "appendRunLedger: the ledger is not a plain ledger record");
|
|
278
|
+
return this.appendTypedEntry({
|
|
279
|
+
type: "run_ledger",
|
|
280
|
+
id: await this.storage.createEntryId(),
|
|
281
|
+
parentId: await this.storage.getLeafId(),
|
|
282
|
+
timestamp: new Date().toISOString(),
|
|
283
|
+
ledger: copy,
|
|
284
|
+
});
|
|
285
|
+
}
|
|
286
|
+
async getRunLedgers() {
|
|
287
|
+
const branch = await this.getBranch();
|
|
288
|
+
return branch.flatMap((e) => (e.type === "run_ledger" && isRunLedgerRecord(e.ledger) ? [e.ledger] : []));
|
|
289
|
+
}
|
|
267
290
|
async getReminderMark() {
|
|
268
291
|
const branch = await this.getBranch();
|
|
269
292
|
for (let i = branch.length - 1; i >= 0; i--) {
|
|
@@ -427,14 +450,21 @@ export function gitFrameContextVisible(branch, entryId) {
|
|
|
427
450
|
return keptIdx !== -1 && frameIdx >= keptIdx;
|
|
428
451
|
}
|
|
429
452
|
export async function readSessionCheckout(session, sessionId) {
|
|
430
|
-
let
|
|
453
|
+
let id = sessionId;
|
|
454
|
+
if (id === undefined) {
|
|
455
|
+
try {
|
|
456
|
+
id = (await session.getMetadata()).id;
|
|
457
|
+
}
|
|
458
|
+
catch (err) {
|
|
459
|
+
return { kind: "unreadable", detail: `the session row could not be read (${thrownText(err)})` };
|
|
460
|
+
}
|
|
461
|
+
}
|
|
431
462
|
try {
|
|
432
|
-
|
|
463
|
+
return foldSessionCheckout(await sessionCheckoutCopiesOf(session.getStorage()), id);
|
|
433
464
|
}
|
|
434
465
|
catch (err) {
|
|
435
466
|
return { kind: "unreadable", detail: `the session log could not be read (${thrownText(err)})` };
|
|
436
467
|
}
|
|
437
|
-
return foldSessionCheckout(copies, sessionId);
|
|
438
468
|
}
|
|
439
469
|
async function sessionCheckoutCopiesOf(storage) {
|
|
440
470
|
const floor = storage.getFloorId?.() ?? null;
|
package/dist/host-env.d.ts
CHANGED
|
@@ -13,5 +13,15 @@
|
|
|
13
13
|
*
|
|
14
14
|
* What this entry loads is the composition's own module graph (the credential vocabulary, the notice throat, the
|
|
15
15
|
* member receipt), not the engine's.
|
|
16
|
+
*
|
|
17
|
+
* It also re-exports `judgeHookCondition` (plus its closed event and reason tables): the pure judge that tells a
|
|
18
|
+
* host's local hook selector whether an entry's `if` condition matches a tool call (definite answers for empty
|
|
19
|
+
* conditions, equal engine-catalog non-Monitor names without content, and strictly flat Bash commands; `untested`
|
|
20
|
+
* with a closed reason word everywhere else). Both its accuracy and its no-host-code promise for plain data hold
|
|
21
|
+
* in a realm whose built-in objects are as loaded; R-J catches a key added to, removed from, or reordered on
|
|
22
|
+
* `Object.prototype` or `Array.prototype` relative to module load (`untested:invalid_input`), while any other
|
|
23
|
+
* built-in modification, pre-load pollution, and cross-realm `null`-prototype exotic objects are outside the
|
|
24
|
+
* contract (`docs/KNOWN-LIMITS.md` KL-4994-a / KL-4994-b).
|
|
16
25
|
*/
|
|
17
26
|
export { declareWithheldEnv, hostChildEnv, hostChildEnvProblem, inheritedHostEnv, inheritEnvPolicyProblem, type HostChildEnv, type HostChildInheritance, type InheritEnvPolicy, type SecretEnvFinding, type SecretEnvFindingKind, type WithheldEnvDeclaration, } from "./core/secret-env.js";
|
|
27
|
+
export { HOOK_CONDITION_EVENTS, HOOK_CONDITION_UNTESTED_REASONS, judgeHookCondition, type HookConditionInput, type HookConditionVerdict, } from "./core/hook-condition.js";
|
package/dist/host-env.js
CHANGED
package/dist/index.d.ts
CHANGED
|
@@ -91,6 +91,7 @@ export { askUnresolvableNotice, type AskUnresolvableFacts } from "./core/ask-unr
|
|
|
91
91
|
export { ASK_UNRESOLVABLE_CAUSES, type AskUnresolvableCause } from "./core/ask-unresolvable-notice.js";
|
|
92
92
|
export { WORKFLOW_PARK_GAPS, isWorkflowParkGap, type WorkflowParkGap } from "./core/ask-unresolvable-notice.js";
|
|
93
93
|
export { TOOL_GATE_PHASES, type ToolGatePhase } from "./core/tool-gate-phase.js";
|
|
94
|
+
export { BRAIN_STATUS_SEATS } from "./core/tool-gate-phase.js";
|
|
94
95
|
export type { ApprovalParkNotResumable } from "./core/park-resumability.js";
|
|
95
96
|
export { APPROVAL_REMEDY_KINDS, type ApprovalRemedy, type ApprovalRemedyKind } from "./core/ask-origin.js";
|
|
96
97
|
export { USER_INPUT_UNDRAINED_CAUSES, type UserInputUndrainedCause, USER_INPUT_UNDRAINED_FAMILIES } from "./core/engine-notice.js";
|
|
@@ -122,6 +123,7 @@ export { RESUME_AT_REFUSAL_CLASSES, RESUME_AT_REFUSAL_CLASS, isResumeAtAnchorMis
|
|
|
122
123
|
export { RESUME_AT_OUTSIDE_WINDOW_REASONS, RESUME_AT_REMEDY_KINDS, type ResumeAtOutsideWindowDetail, type ResumeAtOutsideWindowReason, type ResumeAtRemedy, type ResumeAtRemedyKind } from "./core/resume-at-refusal.js";
|
|
123
124
|
export { CONFIG_REFUSAL_INPUTS, type ConfigRefusalInput, isConfigRefusalInput, configRefusalInputOf } from "./core/config-refusal-input.js";
|
|
124
125
|
export { CONFIG_REFUSAL_CODES, type ConfigRefusalCode } from "./core/config-refusal-codes.js";
|
|
126
|
+
export { REWIND_REFUSAL_CODES, type RewindRefusalCode } from "./core/rewind-refusal-codes.js";
|
|
125
127
|
export { NOTICE_AUDIENCE, noticeAudienceOf, ENGINE_NOTICE_CODES, NOTICE_MINTER, NOTICE_ATTENTION, noticeAttentionOf, type EngineNoticeCode, type NoticeAudience, type NoticeMinter, type NoticeAttention } from "./core/governance-codes.js";
|
|
126
128
|
export { NOTICE_CODE_LINEAGE, type NoticeCodeChange, type NoticeCodeBranch } from "./core/governance-codes.js";
|
|
127
129
|
export { TtlSessionStore, type TtlSessionStoreOptions, type EvictPolicy } from "./core/session-store.js";
|
|
@@ -160,7 +162,7 @@ export { withRetry } from "./core/with-retry.js";
|
|
|
160
162
|
export type { RetryPolicy, RetryResult } from "./core/with-retry.js";
|
|
161
163
|
export type { RemoteExecutionEnv, WorkspaceHandle, SnapshotId, SessionToken, OutputChunk, ExecStreamOptions, RemoteConnectConfig, VmLifecycleOptions, SecretRef, RemoteExecutionErrorCode, ExecutionEnvFactory, ExecutionEnvFactoryContext, ExecutionEnvPurpose, PlacementTarget, RepositoryWorkspace, WorkspaceSyncReason, WorkspaceSyncOptions, WorkspaceSyncAnswer, } from "./core/remote-env.js";
|
|
162
164
|
export { addWorktree, judgeManagedTree, pruneWorktrees, WORKTREE_PARENT, type AddWorktreeOptions, type ManagedTreeVerdict, type TreeKeptReason, } from "./core/git-worktree-env.js";
|
|
163
|
-
export { listOrphanSessionTrees, probeWorktreeCapability, releaseOrphanSessionTree, releaseSessionCheckout, WORKTREE_INCAPABLE_REASONS, type OrphanSessionTree, type ReleasedTree, type WorkspaceDeclaration, type WorkspaceSourceDeclaration, type WorktreeCapability, type WorktreeIncapableReason, } from "./core/session-checkout.js";
|
|
165
|
+
export { listOrphanSessionTrees, probeWorktreeCapability, readSessionCheckout, releaseOrphanSessionTree, releaseSessionCheckout, WORKTREE_INCAPABLE_REASONS, type OrphanSessionTree, type ReleasedTree, type SessionCheckoutRead, type SessionCheckoutRecord, type WorkspaceDeclaration, type WorkspaceSourceDeclaration, type WorktreeCapability, type WorktreeIncapableReason, } from "./core/session-checkout.js";
|
|
164
166
|
export { runExecGate } from "./core/exec-gate.js";
|
|
165
167
|
export type { ExecStep, ExecStepResult, ExecGateResult, ExecGateOptions } from "./core/exec-gate.js";
|
|
166
168
|
export { sanitizeUntrustedText, delimitUntrusted, inlineUntrusted, isMintableProbeReason } from "./core/untrusted-text.js";
|
|
@@ -244,7 +246,7 @@ export { DEFAULT_SUBAGENT_TOOL_NAME } from "./agents/subagent.js";
|
|
|
244
246
|
export { renderTaskNotificationXml, RESUPPLIED_FRAME_PREAMBLE, taskNotificationDedupKey, isDelegatedAgentTerminal, isTerminalTaskNotification, TASK_NOTIFICATION_TERMINAL_STATUSES, // the terminal words that predicate reads, as a value: a host's own terminal check reads these, never a second list
|
|
245
247
|
type TaskNotificationTerminalStatus, SystemInjectionQueue, type TaskNotificationPayload, type TaskNotificationStatus, type ExternalNotificationInput, type SystemInjection, type SystemInjectionPriority, type NotificationInjectionOutcome, // the injector's outcome words (`parked_durably` = the session's durable box took the frame)
|
|
246
248
|
NOTIFICATION_INJECTION_OUTCOMES, // …and their value half + guard, so a host wiring its own uplink validates a reported outcome without duplicating the vocabulary
|
|
247
|
-
isNotificationInjectionOutcome, SYSTEM_INJECTION_PRIORITIES, isSystemInjectionPriority, steerPriorityOf, injectionLaneOf, type UserInputLane, AGENT_MESSAGE_TAG, renderAgentMessageFrame, type SemaProvenance, HANDBACK_STATES, type HandbackState, COMPACTION_KINDS, type CompactionKind, DISCARDED_DELIVERY_PATHS, handbackStateOf, terminalFrameFacets, parksInSessionBox, } from "./core/task-notification.js";
|
|
249
|
+
isNotificationInjectionOutcome, SYSTEM_INJECTION_PRIORITIES, isSystemInjectionPriority, steerPriorityOf, injectionLaneOf, type UserInputLane, AGENT_MESSAGE_TAG, renderAgentMessageFrame, type SemaProvenance, HANDBACK_STATES, type HandbackState, COMPACTION_KINDS, type CompactionKind, DISCARDED_DELIVERY_PATHS, PEER_TASK_FOLLOW_UPS, PEER_TASK_CANCEL_STATES, PEER_TASK_CLOCK_STATES, PEER_TASK_REMINDER_TARGETS, PEER_TASK_REMINDER_DISPOSITIONS, PEER_TASK_REMINDER_ROUTES, type PeerTaskNotification, type PeerTaskReminderFacet, type PeerTaskFollowUps, type PeerTaskCancelState, type PeerTaskClockState, type PeerTaskReminderTarget, type PeerTaskReminderDisposition, type PeerTaskReminderRoute, handbackStateOf, terminalFrameFacets, parksInSessionBox, } from "./core/task-notification.js";
|
|
248
250
|
export { TOOL_FAMILIES, TOOL_MOUNT_TAGS, TOOL_APPROVAL_CARDS, TOOL_PATH_ACCESSES, TOOL_PATH_BASES, TOOL_PATH_ABSENCES, TOOL_WIRE_NAME_MAX_CHARS, TOOL_CONTRACT_MAX_CHARS, TOOL_CARD_ID_MAX_CHARS, TOOL_KEY_MAX_CHARS, TOOL_KEYS_MAX, RENDER_HINT_MAX_CHARS, RENDER_HINT_ACTIVITY_MAX_CHARS, RENDER_HINT_MAX_LIST, type ToolFamily, type ToolMountTag, type ToolApprovalCard, type ToolPathAccess, type ToolPathBase, type ToolPathAbsence, type ToolPathTarget, type ToolCallPathTarget, type ToolRosterPathTarget, pathTargetSlotOnly, type ToolHostTarget, type ToolRuleFace, type ToolRenderHints, type ToolFaceDeclaration, type ToolCatalogEntry, } from "./core/tool-face.js";
|
|
249
251
|
export { describeToolCatalog, catalogEntriesNamed, catalogToolNames, catalogRuleFaceOf, pathTargetOf, pathTargetValue, protectivePathTargetOf, declaredPathTargetOf, BARE_REQUEST_CODE, isProtectedWrite, isDeclaredWrite, fileOpAccessOf, type ToolCallLike, pathConfinableWriteToolNames, persistenceCapableToolNames, persistenceCandidateToolNames, rosterCanPersistMemory, type PersistenceProbeTool, type PersistenceFacts, pathTargetingToolNames, compactableToolNames, budgetExemptToolNames, handBandEffects, engineCardTypes, HANDS_BAND_TAGS, MOUNT_TAG_IN_HANDS_BAND, } from "./core/tool-registry.js";
|
|
250
252
|
export { ToolRosterEntry, ToolRoster, ToolRosterDelta, ToolRosterRenderHints, ROSTER_SOURCES, type RosterSource, type ToolIdentity, toolIdentityOf, ROSTER_APPROVAL_BINDING, type RosterApprovalBinding, toolDeclarationDigestOf, mintCapabilityId, diffToolRoster, ruleFacesFromRoster, toolCallFaceOf, rosterToolName, ruleNamesOf, inputKeysOf, ruleFaceOfInstance, rosterMemberBoundProblem, TOOL_ROSTER_MAX_ENTRIES, type RosterBoundMembers, type RosterBoundCode, ToolRosterDeltaSeat, } from "./core/tool-roster.js";
|
|
@@ -271,7 +273,7 @@ export { approvalObjectOf, judgeApprovalObject, APPROVAL_STATION_MEMBERS, APPROV
|
|
|
271
273
|
export { type ToolCallIdentity } from "./core/fs-write-gate-policy.js";
|
|
272
274
|
export { type RuleFaceView, catalogRuleFaceView } from "./core/permission-rules.js";
|
|
273
275
|
export { DURABLE_HISTORY_NAMES } from "./engine/compaction/utils.js";
|
|
274
|
-
export { describeStaticWiring, deriveWiringManifest, deriveAskEffective, resolveDeclaredDurability, resolveSubagentTranscriptTier, type SubagentTranscriptTier, resolveAskSeamForm, resolveQuestionSeam, countElicitOptIns, AUTO_MODE_ARM_REASONS, type AutoModeArmReason, type AutoModeArmFact, type WiringManifest, type WiringManifestMcpEntry, type WiringManifestA2aEntry, LSP_LANES, type LspLane, HANDS_UNMOUNTED_REASONS, type HandsUnmountedReason, EXECUTION_ENV_SEATS, type ExecutionEnvSeat, DEPLOYMENT_ASK_SEAT_FORMS, type DeploymentAskSeatForm, type InteractionSeats, type WiringFacts, type WiringLegKind, ASK_SEAM_FORMS, type AskSeamForm, APPROVAL_REACH, type ApprovalReach, isApprovalReach, ASK_EFFECTIVE_VALUES, type AskEffective, type QuestionChannelState, type SeamProvenance, PARK_LANE_REASONS, type ParkLaneReason, SUSPEND_LANE_REASONS, type SuspendLaneReason, type ManifestDurability, type StaticWiringDeps, type StaticWiringSpec, } from "./core/wiring-manifest.js";
|
|
276
|
+
export { describeStaticWiring, deriveWiringManifest, deriveAskEffective, resolveDeclaredDurability, resolveSubagentTranscriptTier, type SubagentTranscriptTier, resolveAskSeamForm, resolveQuestionSeam, countElicitOptIns, AUTO_MODE_ARM_REASONS, type AutoModeArmReason, type AutoModeArmFact, type WiringManifest, type WiringManifestMcpEntry, type WiringManifestA2aEntry, LSP_LANES, type LspLane, HANDS_UNMOUNTED_REASONS, type HandsUnmountedReason, EXECUTION_ENV_SEATS, type ExecutionEnvSeat, DEPLOYMENT_ASK_SEAT_FORMS, type DeploymentAskSeatForm, type InteractionSeats, type WiringFacts, type WiringLegKind, type WiringLegInstance, type HostInstanceDeclaration, ASK_SEAM_FORMS, type AskSeamForm, APPROVAL_REACH, type ApprovalReach, isApprovalReach, ASK_EFFECTIVE_VALUES, type AskEffective, type QuestionChannelState, type SeamProvenance, PARK_LANE_REASONS, type ParkLaneReason, SUSPEND_LANE_REASONS, type SuspendLaneReason, type ManifestDurability, type StaticWiringDeps, type StaticWiringSpec, } from "./core/wiring-manifest.js";
|
|
275
277
|
export { RUN_ORIGINS, type RunOrigin, isRunOrigin } from "./core/run-origin.js";
|
|
276
278
|
export { INPUT_AUTHORS, type InputAuthor, isInputAuthor, type InputWindow } from "./core/input-author.js";
|
|
277
279
|
export { USER_ROW_ORIGINS, type UserRowOrigin, type UserRowSource, isUserRowOrigin, userRowSourceOf } from "./core/user-row-origin.js";
|
|
@@ -283,7 +285,8 @@ export { projectHumanInput, buildHumanInputEvent, type HumanInputSource, type Hu
|
|
|
283
285
|
export { USER_ATTACHMENT_SEAT, USER_ATTACHMENT_KINDS, USER_ATTACHMENT_SUPPLIES, USER_ATTACHMENT_OUTCOMES, USER_ATTACHMENTS_MAX, USER_ATTACHMENT_LABEL_MAX, USER_ATTACHMENT_INVALID_REASONS, type UserAttachmentInvalidReason, type UserAttachmentRefusalDetail, type UserAttachmentFieldRef, type UserAttachmentDeclaration, } from "./core/user-attachment.js";
|
|
284
286
|
export { NESTED_MEMORY_LANE, INSTRUCTIONS_WITHHELD_REASONS, type InstructionsWithheldReason } from "./core/runner/nested-memory-lane.js";
|
|
285
287
|
export type { HumanInputAttachment } from "./core/types.js";
|
|
286
|
-
export { TaskRegistry, defaultTaskRegistry, createTaskStopTool, type SemaTaskType, SEMA_TASK_TYPES, SEMA_TASK_HANDLE_PREFIXES,
|
|
288
|
+
export { TaskRegistry, defaultTaskRegistry, createTaskStopTool, type SemaTaskType, SEMA_TASK_TYPES, SEMA_TASK_HANDLE_PREFIXES, PEER_TASK_HANDLE_RE, // strict peer_task handle shape (^p[0-9a-f]{16}$), derived from SEMA_TASK_HANDLE_PREFIXES
|
|
289
|
+
type SemaTaskStatus, type SemaTaskHandle, type ParkedClaimTicket, type BackgroundYieldReport, type BackgroundYieldOptions, type BackgroundUnyieldableReason, type BackgroundYieldLane, PARKED_CLAIM_ROLLBACKS, type ParkedClaimRollback, type TaskAccess, type TaskListRow, type UnifiedTaskOutput, type TaskRetrievalStatus, type StopSource, type RegisterMonitorInput, type MonitorTimers, MONITOR_BATCH_WINDOW_MS, MONITOR_DEFAULT_TIMEOUT_MS, MONITOR_MAX_TIMEOUT_MS, MONITOR_MAX_BATCHES_PER_MINUTE, canAccessWorkflowRun, DURABLE_AGENT_HANDLE_RE, engineAgentName, chosenAgentName, type BackgroundShellHardKillReceipt, } from "./core/task-registry.js";
|
|
287
290
|
export { InMemoryMailboxStore, type MailboxStore, type MailboxMessage, type MailboxLease, MailboxStoreError, type MailboxStoreErrorCode, MAILBOX_TOMBSTONED_RECIPIENT_CODE, type MailboxAppendMessage, type MailboxPeerMeta, type MailboxPeerFromMode, type MailboxPeerRecordKind, type MailboxPeerNoticeMeta, type MailboxPeerNoticeState, MAILBOX_PEER_NOTICE_STATES, MAILBOX_PEER_FROM_MODES, MAILBOX_PEER_RECORD_KINDS, MAILBOX_INVALID_PEER_META_CODE, MAILBOX_CROSS_PROCESS_UNSAFE_CODE, readMailboxPeerMeta, mailboxCrossProcessMountVerdict, sessionBoxMountVerdict, type MailboxCrossProcessVerdict, mailboxRecipientLifecycleOf, type MailboxRecipientTombstone, MAILBOX_INVALID_RECORD_ID_CODE, MAILBOX_DUPLICATE_RECORD_ID_CODE, MAILBOX_RECORD_ID_MAX_CHARS, MAILBOX_REPLAY_FACETS, type MailboxReplayFacet, readMailboxRecordId, readMailboxAppend, judgeMailboxAppendById, MAILBOX_MESSAGE_ROW_SHAPE, MAILBOX_ROW_MALFORMED_CODE, mailboxReadablePrefix, type MailboxReadablePrefix, MAILBOX_CONSUMED_ID_WINDOW, type MailboxConsumedRecord, mailboxReplayDigests, type MailboxAckResult, type MailboxDecision, type MailboxDecisionOutcome, MAILBOX_DECISIONS, MAILBOX_INVALID_DECISION_MOVE_CODE, MAILBOX_INVALID_LEASE_OWNER_CODE, assertMailboxLeaseOwner, isMailboxDecision, isMailboxDecisionFinal, isMailboxDecisionDeliverable, mailboxDecisionEdgeAllowed, mailboxDecisionMoveFenced, assertMailboxDecisionMove, moveMailboxDecision, readStoredMailboxDecision, } from "./core/mailbox-store.js";
|
|
288
291
|
export { FileMailboxStore, type FileMailboxStoreOptions } from "./stores/file/mailbox-store.js";
|
|
289
292
|
export { createFileTaskListStore } from "./stores/file/task-list-store.js";
|
|
@@ -312,7 +315,8 @@ export { type ExistingTarget, type ExistingTargetKind, type ExistingTargetWithhe
|
|
|
312
315
|
export { READ_ROOT_GRANT_LASTS, type ReadRootGrantScreen } from "./core/read-root-grant-screen.js";
|
|
313
316
|
export { type AskOrigin, ASK_ORIGINS, isAskOrigin, ORIGIN_IMPLIES_REAL_APPROVAL, PERSISTED_RULE_MANDATES, type PersistedRuleMandate, isPersistedRuleMandate, screenAskClassMembers } from "./core/ask-origin.js";
|
|
314
317
|
export { type AskReason, HOOK_QUESTION_CAUSES, type HookQuestionCause } from "./core/ask-origin.js";
|
|
315
|
-
export { PERMISSION_MODES, type PermissionMode, isPermissionMode, PERMISSION_MODE_RANK, clampPermissionMode, ASK_CLASSES, type AskClass, isAskClass, MODE_ARBITRATION, type ModeArbitrationRow, ASK_FACES, type AskFace, askFaceOf, releasableAskClassesFor, MODE_RELEASE_REASONS, type ModeReleaseReason, isModeReleaseReason, RRA_EXPLAINERS, classifyAsk, foldArbitrationRow, type AskClassification, type AskClassFacts, type ToolMarkSource, arbitrateByMode, type Arbitration, fileCommandOptionsSentence } from "./core/ask-origin.js";
|
|
318
|
+
export { PERMISSION_MODES, type PermissionMode, isPermissionMode, PERMISSION_MODE_RANK, clampPermissionMode, ASK_CLASSES, type AskClass, isAskClass, MODE_ARBITRATION, type ModeArbitrationRow, ASK_FACES, type AskFace, askFaceOf, releasableAskClassesFor, MODE_RELEASE_REASONS, type ModeReleaseReason, isModeReleaseReason, RRA_EXPLAINERS, classifyAsk, foldArbitrationRow, type AskClassification, type AskClassFacts, type ToolMarkSource, arbitrateByMode, type Arbitration, fileCommandOptionsSentence, RELEASED_ON_CONFINED_RUNNER, confinedReleasableAskClassesFor, type ConfinedCall } from "./core/ask-origin.js";
|
|
319
|
+
export { DEPLOYMENT_SHAPES, type DeploymentShape } from "./core/deployment-shape.js";
|
|
316
320
|
export { CROSS_BOUNDARY_TAINT_BITS, type CrossBoundaryTaintBit, CROSS_BOUNDARY_POSTURES, type CrossBoundaryPosture, BOUNDARY_LEGS, type BoundaryLeg, type BoundaryLegList, type BoundaryLegsDeclaration, type CrossBoundaryTree, type CrossBoundaryObligation, crossBoundaryObligation, CROSS_BOUNDARY_RECORD_TYPE, type CrossBoundaryRecordData, type CrossBoundaryRecordEntry, type CrossBoundaryRecordRead, readCrossBoundaryRecord, type BoundaryLegsFor, type BoundaryLegsGiven, type CrossBoundaryCall, type CrossBoundaryCheck, type CrossBoundaryExitRefusal, type CrossBoundaryTreeToken } from "./core/cross-boundary-taint.js";
|
|
317
321
|
export { modePolicyOf, type ModePolicy, PERMISSION_MODE_FOLD_REASONS, type PermissionModeFoldReason, type PermissionModeReceipt, ACCEPT_EDITS_FILE_COMMANDS, modeAcceptsFileCommand, foldPermissionMode, type PermissionModeFold, type PermissionModeFoldInput, type PermissionModeArmingFacts, type PermissionModeStartWord } from "./core/mode-policy.js";
|
|
318
322
|
export type { PermissionSeatInputs, PermissionSeatReading } from "./core/mode-policy.js";
|
|
@@ -362,7 +366,7 @@ wildcardMatch, isCoveringRuleName, ruleNameCovers, type PermissionRule, type Par
|
|
|
362
366
|
* and nothing more. Removal is exported without ceremony, because narrowing on a user's behalf is
|
|
363
367
|
* allowed and widening is not.
|
|
364
368
|
*/
|
|
365
|
-
export { RULE_BEHAVIORS, RULE_BEHAVIOR_PRECEDENCE, RULE_BEHAVIORS_BY_PRECEDENCE, isRuleBehavior, readRowBehavior, adjudicatePersistedRules, adjudicatePersistedPathRules, adjudicatePersistedToolRules, ruleReachesProgramRun, programRunReachOf, PROGRAM_RUN_REACHES, type ProgramRunReachOutcome, pathRuleReachOf, ruleBasesNeeded, PATH_RULE_BASES, PATH_RULE_BASE_LABEL, ruleToolGrammarOf, COMMAND_RULE_TOOL, READ_RULE_TOOL, type PathRuleBase, type PathRuleBases, type RuleBehavior, type PersistedRuleVerdict, parseRuleText, formatRuleText, ruleAdmitsCommand, findAdmittingRule, suggestRulesForCommand, scopeCoversCwd, pathWithinRoot, isRuleLive, renderUntrustedCommandText, stripFormatCharacters, UNCOVERED_SEGMENT_REASON_BASELINE, RULE_OFFERS_ABSENCE_BASELINE, type UncoveredSegmentDetail, PERSISTED_RULE_MATCHES, RULE_OFFER_KINDS, RULE_OFFER_BATCH_MEMBER_KINDS, UNCOVERED_SEGMENT_REASONS, EDITED_RULE_BREADTH_WARNING_CODES, RULE_ADD_ORIGINS, type EditedRuleBreadthWarning, directoryRuleAdmits, BARE_INTERPRETER_NAMES, MAX_RULE_TEXT_CHARS, type PersistedRule, type RuleTombstone, type RuleScope, type RuleDot, type RuleAdd, type RuleAddOrigin, type RuleOffer, type RuleOfferBatchMember, type SegmentRuleSuggestion, type SegmentCoverage, type RuleReject, type RuleRejectCode, type ParsedRule, type PersistedRuleTool, type PersistedRuleMatch, } from "./core/permission-rule-model.js";
|
|
369
|
+
export { RULE_BEHAVIORS, RULE_BEHAVIOR_PRECEDENCE, RULE_BEHAVIORS_BY_PRECEDENCE, isRuleBehavior, readRowBehavior, adjudicatePersistedRules, adjudicatePersistedPathRules, adjudicatePersistedToolRules, ruleReachesProgramRun, programRunReachOf, PROGRAM_RUN_REACHES, type ProgramRunReachOutcome, pathRuleReachOf, ruleBasesNeeded, PATH_RULE_BASES, PATH_RULE_BASE_LABEL, ruleToolGrammarOf, COMMAND_RULE_TOOL, READ_RULE_TOOL, type PathRuleBase, type PathRuleBases, type RuleBehavior, type PersistedRuleVerdict, parseRuleText, formatRuleText, ruleAdmitsCommand, findAdmittingRule, suggestRulesForCommand, scopeCoversCwd, pathWithinRoot, isRuleLive, renderUntrustedCommandText, stripFormatCharacters, UNCOVERED_SEGMENT_REASON_BASELINE, RULE_OFFERS_ABSENCE_BASELINE, type UncoveredSegmentDetail, PERSISTED_RULE_MATCHES, RULE_OFFER_KINDS, RULE_OFFER_BATCH_MEMBER_KINDS, UNCOVERED_SEGMENT_REASONS, EDITED_RULE_BREADTH_WARNING_CODES, RULE_ADD_ORIGINS, type EditedRuleBreadthWarning, directoryRuleAdmits, BARE_INTERPRETER_NAMES, MAX_RULE_TEXT_CHARS, type PersistedRule, type RuleTombstone, type RuleScope, type RuleDot, type RuleAdd, type RuleAddOrigin, type RuleOffer, type RuleOfferBatchMember, type SegmentRuleSuggestion, RULE_OFFER_CAUTIONS, type RuleOfferCaution, type SegmentCoverage, type RuleReject, type RuleRejectCode, type ParsedRule, type PersistedRuleTool, type PersistedRuleMatch, } from "./core/permission-rule-model.js";
|
|
366
370
|
export { removePersistedRule, addPersistedRule, applyTombstones, sameScope, sameRuleIdentity, isValidConsentScope, isValidDurableScope, InMemoryDurableRulePartition, EMPTY_DURABLE_RULE_PARTITION, type DurableRulePartition, type DurableRulePartitionProvider, type RuleWriteOutcome, type StoredRules, type RemoveResult, type AddResult, type PutResult, joinRuleStates, applySyncJoin, type RuleSyncJoinBase, screenRuleSyncState, collectBelowFrontier, ruleSyncVector, joinFrontiers, dotAtOrBelowFrontier, type RuleSyncState, type RuleSyncFrontier, type RuleSyncDrop, type RuleSyncLandingReport, type QuarantinedRuleAdd, PERMISSION_RULE_WRITER, writerOf, foldDelta, addDotsOf, assertDeleteDeltaCarriesNoAdd, assertRedemptionNotQuarantined, assertWriteDeltaScopeDurable, PERMISSION_RULES_LATER_GRAMMAR_CODE, PERMISSION_RULES_DAMAGED_BUCKET_CODE, PERMISSION_RULES_UNREADABLE_BUCKET_CODE, type PermissionRuleWriter, type WritableDurableRulePartition, type RuleWriteDelta, type RuleAddDelta, type RuleTightenAddDelta, type RuleDeleteDelta, type RuleSyncJoinDelta, type RawRuleSyncState, type RedemptionAuthorization, } from "./core/permission-rule-store.js";
|
|
367
371
|
export { readRuleOwner, sameRuleOwner, type RuleOwner, RULE_OWNER_KINDS, } from "./core/rule-owner.js";
|
|
368
372
|
export { judgePrincipalName, principalNameOf, whiteSpaceAtEdgesOf, PRINCIPAL_NAME_MAX_CHARS, PRINCIPAL_NAME_MAX_BYTES, PRINCIPAL_NAME_REFUSALS, type PrincipalNameRefusal, type PrincipalNameVerdict, } from "./core/principal-name.js";
|
|
@@ -406,6 +410,8 @@ export { resolveMemoryScopeStore, type MemoryScopeStore, type MemoryScopeStoreIn
|
|
|
406
410
|
export { classifyScopePlanes, memoryScopePlaneOf, scopePlanesOf, type ScopePlanes } from "./core/memory-engine/dual-root.js";
|
|
407
411
|
export { createMemoryDeployment, type MemoryDeployment, type MemoryDeploymentInput, type MemoryDeploymentStore, type DeploymentSessionMemoryStatus, } from "./core/memory-engine/memory-deployment.js";
|
|
408
412
|
export { reanchorMemoryStoreRoot, type StoreRootReanchor } from "./core/memory-engine/layout.js";
|
|
413
|
+
export { deletionRecordOf, memoryDeletionRecords, type DeletionRecord } from "./core/memory-engine/deletion-record.js";
|
|
414
|
+
export type { MemorySyncDeletions } from "./core/memory-engine/sync.js";
|
|
409
415
|
export { admittingLandings, cutPerLanding, LandingsNeedAdmission, MAX_LANDING_ADMISSION_ROUNDS, requireLandingsAdmitted, type AdmitLandings, type LandingCut, type PatchLanding, type PatchShare, } from "./core/memory-engine/landing-admission.js";
|
|
410
416
|
export { NON_GOVERNANCE_MEMORY_CODES } from "./core/governance-codes.js";
|
|
411
417
|
export { SHARED_MEMORY_READ_CAP_BYTES, SHARED_MEMORY_LIST_PAGE_SIZE, SharedMemoryStoreError, type SharedMemoryStoreProvider, type SharedMemoryStoreReader, type SharedMemoryPagedList, type SharedMemoryStoreInfo, type SharedMemoryDocumentEntry, type SharedMemorySnapshot, type SharedMemoryRequestContext, type MemoryListDetails, type MemoryReadDetails, } from "./core/shared-memory/types.js";
|
|
@@ -470,6 +476,7 @@ export { workflowTreeIdStampOf, type WorkflowTreeIdStamp } from "./orchestration
|
|
|
470
476
|
export { readWorkflowRunTree, workflowRunTreeOfOne, type WorkflowRunTree } from "./orchestration/workflow-park-adoption.js";
|
|
471
477
|
export { workflowParkHolderOf, type WorkflowParkHolder } from "./orchestration/workflow-types.js";
|
|
472
478
|
export { WORKFLOW_AGENT_STOP_ANSWERS, type WorkflowAgentStopAnswer, type WorkflowAgentStopReceipt } from "./orchestration/workflow-types.js";
|
|
479
|
+
export { WORKFLOW_RUN_STOP_ANSWERS, type WorkflowRunStopAnswer, type WorkflowRunStopReceipt } from "./orchestration/workflow-stop.js";
|
|
473
480
|
export { type WorkflowParkWait, type WorkflowParkCardState } from "./orchestration/workflow-types.js";
|
|
474
481
|
export { workflowParkWaitOf, readWorkflowParkWaits, type WorkflowParkWaitSeats } from "./orchestration/workflow-park-adoption.js";
|
|
475
482
|
export { WORKFLOW_PARK_UNUSED_REASONS, type WorkflowParkUnusedReason } from "./orchestration/workflow-park-adoption.js";
|
|
@@ -485,7 +492,7 @@ export { checkpointStoreContract } from "./core/store-contracts/checkpoint-store
|
|
|
485
492
|
export { sessionRepoContract } from "./core/store-contracts/session-repo-contract.js";
|
|
486
493
|
export { toolResultStoreContract } from "./core/store-contracts/tool-result-store-contract.js";
|
|
487
494
|
export { fileHistoryStoreContract } from "./core/store-contracts/file-history-store-contract.js";
|
|
488
|
-
export { workflowJournalStoreContract } from "./core/store-contracts/workflow-journal-store-contract.js";
|
|
495
|
+
export { workflowJournalStoreContract, type WorkflowJournalStoreContractHooks } from "./core/store-contracts/workflow-journal-store-contract.js";
|
|
489
496
|
export { sessionPolicyStoreContract } from "./core/store-contracts/session-policy-store-contract.js";
|
|
490
497
|
export { sessionDeletionCascadeContract } from "./core/store-contracts/session-deletion-cascade-contract.js";
|
|
491
498
|
export { permissionRuleSyncContract, type PermissionRuleSyncContractHooks } from "./core/store-contracts/permission-rule-sync-contract.js";
|
|
@@ -503,7 +510,7 @@ export { REMOVAL_LIVENESS_WORDS, type RemovalLiveness, RULE_REFUSAL_CODES, type
|
|
|
503
510
|
export { normalizeReadRootCandidate, READ_ROOT_CANDIDATE_DIR_MAX } from "./core/read-root-candidate.js";
|
|
504
511
|
export { FileBackgroundAgentStore, type FileBackgroundAgentStoreOptions } from "./stores/file/background-agent-store.js";
|
|
505
512
|
export { A2A_TASK_STATES, type A2ATaskState, A2A_SEMA_EXTENSIONS, A2A_SEMA_REFUSAL_CODES, type A2ARefusalClass, A2A_SEMA_SKILL_ID_KEY, A2A_SEMA_WAITING_ON_KEY, A2A_WAITING_ON_KINDS, type A2AWaitingOnKind, type A2AWaitingOn, A2A_STATE_CLASSES, type A2AStateClass, A2A_WAITING_FOR, type A2AWaitingFor, type A2AStateClassRow, A2A_STATE_TABLE, type A2AWireStatus, a2aWireStatusOf, a2aStateClassOfRecord, type A2APeerStateReading, readA2APeerState, } from "./core/a2a-task-state.js";
|
|
506
|
-
export { type WorkflowJournalStore, type WorkflowJournalEntry, InMemoryWorkflowJournalStore, callKeyOrdinal, JOURNAL_OVERSIZE_ERROR_CODE, WorkflowJournalOversizeError, assertJournalEntryFits, readWorkflowJournalEntry, type WorkflowJournalEntryReading, WorkflowJournalIncompatibleError, JOURNAL_INCOMPATIBLE_ERROR_CODE, type WorkflowLaunchRecord, type WorkflowLaunchFace, readWorkflowLaunchRecord, launchRecordToKeepOrThrow, assertLaunchRecordFits, sameLaunchRecord, WorkflowLaunchConflictError, WORKFLOW_LAUNCH_CONFLICT_CODE, WorkflowLaunchUnreadableError, WORKFLOW_LAUNCH_UNREADABLE_CODE, } from "./core/workflow-journal-store.js";
|
|
513
|
+
export { type WorkflowJournalStore, type WorkflowJournalEntry, type StopResumeClaimArgs, type StopResumeClaimAnswer, InMemoryWorkflowJournalStore, callKeyOrdinal, JOURNAL_OVERSIZE_ERROR_CODE, WorkflowJournalOversizeError, assertJournalEntryFits, readWorkflowJournalEntry, type WorkflowJournalEntryReading, WorkflowJournalIncompatibleError, JOURNAL_INCOMPATIBLE_ERROR_CODE, type WorkflowLaunchRecord, type WorkflowLaunchFace, readWorkflowLaunchRecord, launchRecordToKeepOrThrow, assertLaunchRecordFits, sameLaunchRecord, WorkflowLaunchConflictError, WORKFLOW_LAUNCH_CONFLICT_CODE, WorkflowLaunchUnreadableError, WORKFLOW_LAUNCH_UNREADABLE_CODE, } from "./core/workflow-journal-store.js";
|
|
507
514
|
export { untrustedEgressForHuman, redactHostLeaks, redactSecrets, boundedRedactedSummary } from "./core/untrusted-egress.js";
|
|
508
515
|
export { REDACTION_MARKS, isRedactionMark, eachRedactionMarkerSpan, redactionMarkerSpans, type RedactionMark, type RedactionMarkName, } from "@sema-agent/primitives";
|
|
509
516
|
export type { Egress, EgressTier } from "./core/untrusted-egress.js";
|
|
@@ -554,7 +561,7 @@ export { builtinAgentDefinitions, BUILTIN_READONLY_DENY_TOOLS, EXPLORE_WHEN_TO_U
|
|
|
554
561
|
export { createTaskServer, type TaskServerOptions, type TaskRequestBody, } from "./server/http.js";
|
|
555
562
|
export { clearStaleToolResults, editBudget, type ContextEditOptions, } from "./core/context-edit.js";
|
|
556
563
|
export { createOpenAIBrain, type OpenAIBrainConfig } from "./brain/openai.js";
|
|
557
|
-
export { createAnthropicBrain, ANTHROPIC_DEFAULT_BASE_URL, type AnthropicBrainConfig } from "./brain/anthropic.js";
|
|
564
|
+
export { createAnthropicBrain, ANTHROPIC_DEFAULT_BASE_URL, anthropicCredentialHeadersOf, type AnthropicBrainConfig, type AnthropicCredentialHeaders } from "./brain/anthropic.js";
|
|
558
565
|
export { createOpenResponsesBrain, type OpenResponsesBrainConfig } from "./brain/open-responses.js";
|
|
559
566
|
export { FABLE_5_COMPAT, fable5Model } from "./brain/model-presets.js";
|
|
560
567
|
export { REFERENCE_MODEL_PROMPT_TRAITS, referenceModelIdOf, referencePromptTraitsOf, type ReferenceModelId } from "./brain/reference-model-traits.js";
|
|
@@ -569,6 +576,7 @@ export { DEGRADE_REASONS, MODEL_FALLBACK_GATE_WORDS, DEFAULT_FALLBACK_GATE, type
|
|
|
569
576
|
export { retryBackoffMs, parseRetryAfter } from "./brain/retry.js";
|
|
570
577
|
export { WAITING_AFTER_MS, WAITING_EVERY_MS } from "./brain/stream-engine.js";
|
|
571
578
|
export { adjudicateModelRoute, resolveRouteCredential, admitRouteRequest, rebindCredentialOrigin, type CredentialRebind, type CredentialRebindEntry, type CredentialRebindAlignment, type CredentialRebindOutcome, CREDENTIAL_REBIND_OUTCOMES, requestOriginOf, routeRefusalText, routePairingStatus, routeKeyOf, displayUrlOf, resolveRequestRoot, resolveRequestRootOf, joinRequestUrl, hasAuthCarrier, __resetCredentialOriginBindings, type RoutePairingStatus, } from "./brain/route-adjudicator.js";
|
|
579
|
+
export { ROUTE_PAIRING_STATUSES } from "./brain/route-adjudicator.js";
|
|
572
580
|
export { ROUTE_CREDENTIAL_SOURCES, ROUTE_CARRIERS, ROUTE_CARRIER_BAGS, REQUEST_ROOT_ORIGINS, ROUTE_CREDENTIAL_PAIRING, requestRouteOf, routePairingRowOf, type RequestRoute, type RouteCarrier, type RouteCarrierBag, type RequestRootOrigin, type RouteCredentialPairingRow, } from "./brain/request-route.js";
|
|
573
581
|
export type { RouteAdjudication, RouteCredential, RouteCredentialSource, RoutePairingConfig, RoutePairingPosture, RouteRefusalCode, RouteRefusalDetail, RouteUnavailableDetail, } from "./internal/llm.js";
|
|
574
582
|
export { ROUTE_ADJUDICATION_CONFORMANCE_CORPUS, type RouteAdjudicationVector } from "./brain/route-conformance.js";
|
|
@@ -578,6 +586,11 @@ export type { AssistantMessage, AssistantMessageEvent, CompleteSimpleFn, Context
|
|
|
578
586
|
export type { AgentDefinition, BeforeWriteHook, BeforeWriteRequest, BeforeWriteResult, TrackFileEditHook, TrackEditRequest, TrackEditResult, FileEditedHook, FileEditedNotice, HandsBandOptions, Brain, RouteJudgmentDispatch, BrainStatus, BrainStatusPhase, BrainRetryErrClass, ImageInput, UserAttachment, McpElicitRequest, McpElicitResponse, McpServerSpec, A2aServerSpec, OnElicit, Model, ModelRef, RunnerDeps, ResumePreflightInfo, ResumePreflightVerdict, EngineNotice, RuntimeCaps, BackgroundChildEvent, ContinuationEndedBy, DelegationLifecycleEvent, SkillSpec, TaskEvent, ExtensionRequester, RewriteAuthor, ToolInputRewrite, TaskEventIdentity, ToolActivity, TaskLimits, StaleToolResultOffloadOptions, TaskResult, TerminalCause, PausedCause, EffectiveMemoryScopes, RemoteEnvFailureNote, RefusedAsk, VerdictRefusal, RefusedToolCall, RefusedToolCalls, TaskSpec, DurableApprovalOptIn, InstructionFamilyDeclaration, ShellGateDoctrine, TaskStatus, TaskStream, CompactOutcome, ThinkingLevel, ToolExecuteContext, ToolReturn, ToolSpec, ToolInputVerdict, ToolInputValidationContext, ReversibilityVerdict, ReadRootGrantCandidate, ToolEffect, ToolContentOrigin, WorkflowGovernanceBaseline, DelegationTaskType, } from "./core/types.js";
|
|
579
587
|
export { CONTINUATION_ENDED_BY } from "./core/delegation-frames.js";
|
|
580
588
|
export { MEMBER_OUTCOMES, MEMBER_KINDS, MEMBER_COVERAGES, RUN_END_CAUSES, REFUSALS_LISTED, isMemberOutcomeWord, isRunEndCause, isMemberOutcome, isMemberCoverage, memberOutcomeOf, memberRefusalsOf, memberCoverageOf, memberLedgerOf, memberOutcomeText, memberRefusalsText, type MemberOutcome, type MemberOutcomeWord, type MemberKind, type MemberCoverage, type RunEndCause, type MemberRefusals, type MemberFacts, type MemberLedger, type MemberLedgerRow, type Listed, } from "./core/member-outcome.js";
|
|
589
|
+
export { RUN_LEDGER_VERSION, RUN_LEDGER_WIRE_KEY, RUN_LEDGER_CHECKS, runLedgerHeadline, type RunLedger, type RunLedgerRow, type RunLedgerCheck, type RunLedgerClaim, type RunLedgerReport, type RunLedgerVerdict, type RunLedgerTrigger, } from "./core/run-ledger.js";
|
|
590
|
+
export { subagentActionsLine, type SubagentActions } from "./core/actions-digest.js";
|
|
591
|
+
export { MANAGER_LAUNCH_ITEMS, managerLaunchCheck, managerLaunchCheckSentence, type ManagerLaunchCheck, type ManagerLaunchFacts, type ManagerLaunchItem, type ManagerLaunchState } from "./core/manager-launch-check.js";
|
|
592
|
+
export { MANAGER_RECIPE, MANAGER_DUTIES_ADDENDUM, managerWorkerDefinition } from "./prompts/manager-recipe.js";
|
|
593
|
+
export { SEND_USER_MESSAGE_TOOL_NAME } from "./agents/send-user-message-tool.js";
|
|
581
594
|
export { agentOutcomeOf } from "./core/background-agent-store.js";
|
|
582
595
|
export { Type } from "typebox";
|
|
583
596
|
export type { TSchema, Static } from "typebox";
|
|
@@ -620,3 +633,9 @@ export { sessionLogMarkOf } from "./engine/session/storage-base.js";
|
|
|
620
633
|
export { readRowExpectationMember } from "./core/runner/session-verb-doors.js";
|
|
621
634
|
export { delegationOwnerSeat, type DelegationOwnerSeat, type DelegationOwnerReading } from "./core/runner/delegation-owner.js";
|
|
622
635
|
export { CHECKPOINT_LIST_LIMITS, readCheckpointOverdueQuery, readCheckpointSessionQuery, readCheckpointDeleteGuard, checkpointDeadlinePassed, checkpointOverdueAt, checkpointRunSessionOf, storedCheckpointRowRefusal, checkpointRowUnreadable, isCheckpointRowUnreadable, deleteGuardAdmits, selectOverduePage, selectSessionPage, type CheckpointFacet, type CheckpointPage, type CheckpointOverdueQuery, type CheckpointOverdueCursor, type CheckpointOverdueQueryReading, type CheckpointSessionQuery, type CheckpointSessionCursor, type CheckpointSessionQueryReading, type CheckpointRowRead, type CheckpointDeleteGuard, } from "./core/checkpoint-queries.js";
|
|
636
|
+
export { EXTERNAL_INCLUDE_POST_APPROVAL_BLOCKS, type ExternalIncludePostApprovalBlock, type InstructionIncludedEntry, type InstructionWithheldEntry, type WiringInstructions, type InstructionPreviewResult, } from "./core/instruction-preview.js";
|
|
637
|
+
export { screenProjectSeat, type ProjectSeat, type ProjectSeatScreen } from "./core/project-seat.js";
|
|
638
|
+
export { HOOK_CONDITION_EVENTS, HOOK_CONDITION_UNTESTED_REASONS, judgeHookCondition, type HookConditionInput, type HookConditionVerdict } from "./core/hook-condition.js";
|
|
639
|
+
export { SHELL_STATE_ENV, shellStateEnvRowOf, type ShellStateEnvRow, type ShellStateInherited } from "./core/model-shell.js";
|
|
640
|
+
export type { ExecutionEnvModelShell } from "./internal/harness.js";
|
|
641
|
+
export { SHELL_KIND_QUESTION, SHELL_KIND_QUESTION_OPTIONS, hasModelShell, readShellKindAnswer, type DroppedShellState, type ShellKindAnswer } from "./core/model-shell.js";
|
package/dist/index.js
CHANGED
|
@@ -72,6 +72,7 @@ export { askUnresolvableNotice } from "./core/ask-unresolvable-notice.js";
|
|
|
72
72
|
export { ASK_UNRESOLVABLE_CAUSES } from "./core/ask-unresolvable-notice.js";
|
|
73
73
|
export { WORKFLOW_PARK_GAPS, isWorkflowParkGap } from "./core/ask-unresolvable-notice.js";
|
|
74
74
|
export { TOOL_GATE_PHASES } from "./core/tool-gate-phase.js";
|
|
75
|
+
export { BRAIN_STATUS_SEATS } from "./core/tool-gate-phase.js";
|
|
75
76
|
export { APPROVAL_REMEDY_KINDS } from "./core/ask-origin.js";
|
|
76
77
|
export { USER_INPUT_UNDRAINED_CAUSES, USER_INPUT_UNDRAINED_FAMILIES } from "./core/engine-notice.js";
|
|
77
78
|
export { setDefaultEngineNoticeSeat } from "./core/engine-notice.js";
|
|
@@ -100,6 +101,7 @@ export { RESUME_AT_REFUSAL_CLASSES, RESUME_AT_REFUSAL_CLASS, isResumeAtAnchorMis
|
|
|
100
101
|
export { RESUME_AT_OUTSIDE_WINDOW_REASONS, RESUME_AT_REMEDY_KINDS } from "./core/resume-at-refusal.js";
|
|
101
102
|
export { CONFIG_REFUSAL_INPUTS, isConfigRefusalInput, configRefusalInputOf } from "./core/config-refusal-input.js";
|
|
102
103
|
export { CONFIG_REFUSAL_CODES } from "./core/config-refusal-codes.js";
|
|
104
|
+
export { REWIND_REFUSAL_CODES } from "./core/rewind-refusal-codes.js";
|
|
103
105
|
export { NOTICE_AUDIENCE, noticeAudienceOf, ENGINE_NOTICE_CODES, NOTICE_MINTER, NOTICE_ATTENTION, noticeAttentionOf } from "./core/governance-codes.js";
|
|
104
106
|
export { NOTICE_CODE_LINEAGE } from "./core/governance-codes.js";
|
|
105
107
|
export { TtlSessionStore } from "./core/session-store.js";
|
|
@@ -129,7 +131,7 @@ export { confineShellStart } from "./core/shell-confinement.js";
|
|
|
129
131
|
export { RemoteExecutionError, hasDestroy, isRemoteExecutionEnv, isSuspendable, isIsolated, canonicalPathIsAuthoritative, pathsAreHostLocal, keepsReadFloor, providesCommandSandbox, missingRestoreSurface, isRetryableRemoteErrorCode, RETRYABLE_REMOTE_ERROR_CODES, EXECUTION_ENV_PURPOSES, ENV_PURPOSE_UNSUPPORTED, WORKSPACE_SYNC_REASONS, hasWorkspaceSync, } from "./core/remote-env.js";
|
|
130
132
|
export { withRetry } from "./core/with-retry.js";
|
|
131
133
|
export { addWorktree, judgeManagedTree, pruneWorktrees, WORKTREE_PARENT, } from "./core/git-worktree-env.js";
|
|
132
|
-
export { listOrphanSessionTrees, probeWorktreeCapability, releaseOrphanSessionTree, releaseSessionCheckout, WORKTREE_INCAPABLE_REASONS, } from "./core/session-checkout.js";
|
|
134
|
+
export { listOrphanSessionTrees, probeWorktreeCapability, readSessionCheckout, releaseOrphanSessionTree, releaseSessionCheckout, WORKTREE_INCAPABLE_REASONS, } from "./core/session-checkout.js";
|
|
133
135
|
export { runExecGate } from "./core/exec-gate.js";
|
|
134
136
|
export { sanitizeUntrustedText, delimitUntrusted, inlineUntrusted, isMintableProbeReason } from "./core/untrusted-text.js";
|
|
135
137
|
export { callerKey, callerText } from "./core/caller-text.js";
|
|
@@ -190,7 +192,7 @@ export { judgePolicyEntryName } from "./core/tool-name-aliases.js";
|
|
|
190
192
|
export { retiredNameView } from "./core/tool-name-aliases.js";
|
|
191
193
|
export { retiredToolNameAccount } from "./core/retired-host-table-account.js";
|
|
192
194
|
export { DEFAULT_SUBAGENT_TOOL_NAME } from "./agents/subagent.js";
|
|
193
|
-
export { renderTaskNotificationXml, RESUPPLIED_FRAME_PREAMBLE, taskNotificationDedupKey, isDelegatedAgentTerminal, isTerminalTaskNotification, TASK_NOTIFICATION_TERMINAL_STATUSES, SystemInjectionQueue, NOTIFICATION_INJECTION_OUTCOMES, isNotificationInjectionOutcome, SYSTEM_INJECTION_PRIORITIES, isSystemInjectionPriority, steerPriorityOf, injectionLaneOf, AGENT_MESSAGE_TAG, renderAgentMessageFrame, HANDBACK_STATES, COMPACTION_KINDS, DISCARDED_DELIVERY_PATHS, handbackStateOf, terminalFrameFacets, parksInSessionBox, } from "./core/task-notification.js";
|
|
195
|
+
export { renderTaskNotificationXml, RESUPPLIED_FRAME_PREAMBLE, taskNotificationDedupKey, isDelegatedAgentTerminal, isTerminalTaskNotification, TASK_NOTIFICATION_TERMINAL_STATUSES, SystemInjectionQueue, NOTIFICATION_INJECTION_OUTCOMES, isNotificationInjectionOutcome, SYSTEM_INJECTION_PRIORITIES, isSystemInjectionPriority, steerPriorityOf, injectionLaneOf, AGENT_MESSAGE_TAG, renderAgentMessageFrame, HANDBACK_STATES, COMPACTION_KINDS, DISCARDED_DELIVERY_PATHS, PEER_TASK_FOLLOW_UPS, PEER_TASK_CANCEL_STATES, PEER_TASK_CLOCK_STATES, PEER_TASK_REMINDER_TARGETS, PEER_TASK_REMINDER_DISPOSITIONS, PEER_TASK_REMINDER_ROUTES, handbackStateOf, terminalFrameFacets, parksInSessionBox, } from "./core/task-notification.js";
|
|
194
196
|
export { TOOL_FAMILIES, TOOL_MOUNT_TAGS, TOOL_APPROVAL_CARDS, TOOL_PATH_ACCESSES, TOOL_PATH_BASES, TOOL_PATH_ABSENCES, TOOL_WIRE_NAME_MAX_CHARS, TOOL_CONTRACT_MAX_CHARS, TOOL_CARD_ID_MAX_CHARS, TOOL_KEY_MAX_CHARS, TOOL_KEYS_MAX, RENDER_HINT_MAX_CHARS, RENDER_HINT_ACTIVITY_MAX_CHARS, RENDER_HINT_MAX_LIST, pathTargetSlotOnly, } from "./core/tool-face.js";
|
|
195
197
|
export { describeToolCatalog, catalogEntriesNamed, catalogToolNames, catalogRuleFaceOf, pathTargetOf, pathTargetValue, protectivePathTargetOf, declaredPathTargetOf, BARE_REQUEST_CODE, isProtectedWrite, isDeclaredWrite, fileOpAccessOf, pathConfinableWriteToolNames, persistenceCapableToolNames, persistenceCandidateToolNames, rosterCanPersistMemory, pathTargetingToolNames, compactableToolNames, budgetExemptToolNames, handBandEffects, engineCardTypes, HANDS_BAND_TAGS, MOUNT_TAG_IN_HANDS_BAND, } from "./core/tool-registry.js";
|
|
196
198
|
export { ToolRosterEntry, ToolRoster, ToolRosterDelta, ToolRosterRenderHints, ROSTER_SOURCES, toolIdentityOf, ROSTER_APPROVAL_BINDING, toolDeclarationDigestOf, mintCapabilityId, diffToolRoster, ruleFacesFromRoster, toolCallFaceOf, rosterToolName, ruleNamesOf, inputKeysOf, ruleFaceOfInstance, rosterMemberBoundProblem, TOOL_ROSTER_MAX_ENTRIES, ToolRosterDeltaSeat, } from "./core/tool-roster.js";
|
|
@@ -226,7 +228,7 @@ export { resolveDeclaredFidelity } from "./core/checkpoint-store.js";
|
|
|
226
228
|
export { projectHumanInput, buildHumanInputEvent, } from "./core/human-input-projection.js";
|
|
227
229
|
export { USER_ATTACHMENT_SEAT, USER_ATTACHMENT_KINDS, USER_ATTACHMENT_SUPPLIES, USER_ATTACHMENT_OUTCOMES, USER_ATTACHMENTS_MAX, USER_ATTACHMENT_LABEL_MAX, USER_ATTACHMENT_INVALID_REASONS, } from "./core/user-attachment.js";
|
|
228
230
|
export { NESTED_MEMORY_LANE, INSTRUCTIONS_WITHHELD_REASONS } from "./core/runner/nested-memory-lane.js";
|
|
229
|
-
export { TaskRegistry, defaultTaskRegistry, createTaskStopTool, SEMA_TASK_TYPES, SEMA_TASK_HANDLE_PREFIXES, PARKED_CLAIM_ROLLBACKS, MONITOR_BATCH_WINDOW_MS, MONITOR_DEFAULT_TIMEOUT_MS, MONITOR_MAX_TIMEOUT_MS, MONITOR_MAX_BATCHES_PER_MINUTE, canAccessWorkflowRun, DURABLE_AGENT_HANDLE_RE, engineAgentName, chosenAgentName, } from "./core/task-registry.js";
|
|
231
|
+
export { TaskRegistry, defaultTaskRegistry, createTaskStopTool, SEMA_TASK_TYPES, SEMA_TASK_HANDLE_PREFIXES, PEER_TASK_HANDLE_RE, PARKED_CLAIM_ROLLBACKS, MONITOR_BATCH_WINDOW_MS, MONITOR_DEFAULT_TIMEOUT_MS, MONITOR_MAX_TIMEOUT_MS, MONITOR_MAX_BATCHES_PER_MINUTE, canAccessWorkflowRun, DURABLE_AGENT_HANDLE_RE, engineAgentName, chosenAgentName, } from "./core/task-registry.js";
|
|
230
232
|
export { InMemoryMailboxStore, MailboxStoreError, MAILBOX_TOMBSTONED_RECIPIENT_CODE, MAILBOX_PEER_NOTICE_STATES, MAILBOX_PEER_FROM_MODES, MAILBOX_PEER_RECORD_KINDS, MAILBOX_INVALID_PEER_META_CODE, MAILBOX_CROSS_PROCESS_UNSAFE_CODE, readMailboxPeerMeta, mailboxCrossProcessMountVerdict, sessionBoxMountVerdict, mailboxRecipientLifecycleOf, MAILBOX_INVALID_RECORD_ID_CODE, MAILBOX_DUPLICATE_RECORD_ID_CODE, MAILBOX_RECORD_ID_MAX_CHARS, MAILBOX_REPLAY_FACETS, readMailboxRecordId, readMailboxAppend, judgeMailboxAppendById, MAILBOX_MESSAGE_ROW_SHAPE, MAILBOX_ROW_MALFORMED_CODE, mailboxReadablePrefix, MAILBOX_CONSUMED_ID_WINDOW, mailboxReplayDigests, MAILBOX_DECISIONS, MAILBOX_INVALID_DECISION_MOVE_CODE, MAILBOX_INVALID_LEASE_OWNER_CODE, assertMailboxLeaseOwner, isMailboxDecision, isMailboxDecisionFinal, isMailboxDecisionDeliverable, mailboxDecisionEdgeAllowed, mailboxDecisionMoveFenced, assertMailboxDecisionMove, moveMailboxDecision, readStoredMailboxDecision, } from "./core/mailbox-store.js";
|
|
231
233
|
export { FileMailboxStore } from "./stores/file/mailbox-store.js";
|
|
232
234
|
export { createFileTaskListStore } from "./stores/file/task-list-store.js";
|
|
@@ -247,7 +249,8 @@ export { EXISTING_TARGET_KINDS, EXISTING_TARGET_WITHHELD_REASONS, EXISTING_TARGE
|
|
|
247
249
|
export { READ_ROOT_GRANT_LASTS } from "./core/read-root-grant-screen.js";
|
|
248
250
|
export { ASK_ORIGINS, isAskOrigin, ORIGIN_IMPLIES_REAL_APPROVAL, PERSISTED_RULE_MANDATES, isPersistedRuleMandate, screenAskClassMembers } from "./core/ask-origin.js";
|
|
249
251
|
export { HOOK_QUESTION_CAUSES } from "./core/ask-origin.js";
|
|
250
|
-
export { PERMISSION_MODES, isPermissionMode, PERMISSION_MODE_RANK, clampPermissionMode, ASK_CLASSES, isAskClass, MODE_ARBITRATION, ASK_FACES, askFaceOf, releasableAskClassesFor, MODE_RELEASE_REASONS, isModeReleaseReason, RRA_EXPLAINERS, classifyAsk, foldArbitrationRow, arbitrateByMode, fileCommandOptionsSentence } from "./core/ask-origin.js";
|
|
252
|
+
export { PERMISSION_MODES, isPermissionMode, PERMISSION_MODE_RANK, clampPermissionMode, ASK_CLASSES, isAskClass, MODE_ARBITRATION, ASK_FACES, askFaceOf, releasableAskClassesFor, MODE_RELEASE_REASONS, isModeReleaseReason, RRA_EXPLAINERS, classifyAsk, foldArbitrationRow, arbitrateByMode, fileCommandOptionsSentence, RELEASED_ON_CONFINED_RUNNER, confinedReleasableAskClassesFor } from "./core/ask-origin.js";
|
|
253
|
+
export { DEPLOYMENT_SHAPES } from "./core/deployment-shape.js";
|
|
251
254
|
export { CROSS_BOUNDARY_TAINT_BITS, CROSS_BOUNDARY_POSTURES, BOUNDARY_LEGS, crossBoundaryObligation, CROSS_BOUNDARY_RECORD_TYPE, readCrossBoundaryRecord } from "./core/cross-boundary-taint.js";
|
|
252
255
|
export { modePolicyOf, PERMISSION_MODE_FOLD_REASONS, ACCEPT_EDITS_FILE_COMMANDS, modeAcceptsFileCommand, foldPermissionMode } from "./core/mode-policy.js";
|
|
253
256
|
export { SKILL_GRANT_ORIGINS } from "./core/skill-grant.js";
|
|
@@ -275,7 +278,7 @@ export { AUTO_MODE_BASE_PROMPT, AUTO_MODE_PERMISSIONS_EXTERNAL } from "./core/au
|
|
|
275
278
|
export { AUTO_MODE_ARMING_RECIPE_VERSION, autoModeArmingRecipeOf, sanitizeAutoModeArmingRecipe, foldAutoModeArming, } from "./core/auto-mode-arming.js";
|
|
276
279
|
export { rebuildAutoModeDecider, } from "./core/auto-mode-rebuild.js";
|
|
277
280
|
export { createPermissionRulePolicy, validatePermissionRules, skipsUnreadableRule, toolPolicySkippedRules, parsePermissionRule, formatPermissionRule, wildcardMatch, isCoveringRuleName, ruleNameCovers, } from "./core/permission-rules.js";
|
|
278
|
-
export { RULE_BEHAVIORS, RULE_BEHAVIOR_PRECEDENCE, RULE_BEHAVIORS_BY_PRECEDENCE, isRuleBehavior, readRowBehavior, adjudicatePersistedRules, adjudicatePersistedPathRules, adjudicatePersistedToolRules, ruleReachesProgramRun, programRunReachOf, PROGRAM_RUN_REACHES, pathRuleReachOf, ruleBasesNeeded, PATH_RULE_BASES, PATH_RULE_BASE_LABEL, ruleToolGrammarOf, COMMAND_RULE_TOOL, READ_RULE_TOOL, parseRuleText, formatRuleText, ruleAdmitsCommand, findAdmittingRule, suggestRulesForCommand, scopeCoversCwd, pathWithinRoot, isRuleLive, renderUntrustedCommandText, stripFormatCharacters, UNCOVERED_SEGMENT_REASON_BASELINE, RULE_OFFERS_ABSENCE_BASELINE, PERSISTED_RULE_MATCHES, RULE_OFFER_KINDS, RULE_OFFER_BATCH_MEMBER_KINDS, UNCOVERED_SEGMENT_REASONS, EDITED_RULE_BREADTH_WARNING_CODES, RULE_ADD_ORIGINS, directoryRuleAdmits, BARE_INTERPRETER_NAMES, MAX_RULE_TEXT_CHARS, } from "./core/permission-rule-model.js";
|
|
281
|
+
export { RULE_BEHAVIORS, RULE_BEHAVIOR_PRECEDENCE, RULE_BEHAVIORS_BY_PRECEDENCE, isRuleBehavior, readRowBehavior, adjudicatePersistedRules, adjudicatePersistedPathRules, adjudicatePersistedToolRules, ruleReachesProgramRun, programRunReachOf, PROGRAM_RUN_REACHES, pathRuleReachOf, ruleBasesNeeded, PATH_RULE_BASES, PATH_RULE_BASE_LABEL, ruleToolGrammarOf, COMMAND_RULE_TOOL, READ_RULE_TOOL, parseRuleText, formatRuleText, ruleAdmitsCommand, findAdmittingRule, suggestRulesForCommand, scopeCoversCwd, pathWithinRoot, isRuleLive, renderUntrustedCommandText, stripFormatCharacters, UNCOVERED_SEGMENT_REASON_BASELINE, RULE_OFFERS_ABSENCE_BASELINE, PERSISTED_RULE_MATCHES, RULE_OFFER_KINDS, RULE_OFFER_BATCH_MEMBER_KINDS, UNCOVERED_SEGMENT_REASONS, EDITED_RULE_BREADTH_WARNING_CODES, RULE_ADD_ORIGINS, directoryRuleAdmits, BARE_INTERPRETER_NAMES, MAX_RULE_TEXT_CHARS, RULE_OFFER_CAUTIONS, } from "./core/permission-rule-model.js";
|
|
279
282
|
export { removePersistedRule, addPersistedRule, applyTombstones, sameScope, sameRuleIdentity, isValidConsentScope, isValidDurableScope, InMemoryDurableRulePartition, EMPTY_DURABLE_RULE_PARTITION, joinRuleStates, applySyncJoin, screenRuleSyncState, collectBelowFrontier, ruleSyncVector, joinFrontiers, dotAtOrBelowFrontier, PERMISSION_RULE_WRITER, writerOf, foldDelta, addDotsOf, assertDeleteDeltaCarriesNoAdd, assertRedemptionNotQuarantined, assertWriteDeltaScopeDurable, PERMISSION_RULES_LATER_GRAMMAR_CODE, PERMISSION_RULES_DAMAGED_BUCKET_CODE, PERMISSION_RULES_UNREADABLE_BUCKET_CODE, } from "./core/permission-rule-store.js";
|
|
280
283
|
export { readRuleOwner, sameRuleOwner, RULE_OWNER_KINDS, } from "./core/rule-owner.js";
|
|
281
284
|
export { judgePrincipalName, principalNameOf, whiteSpaceAtEdgesOf, PRINCIPAL_NAME_MAX_CHARS, PRINCIPAL_NAME_MAX_BYTES, PRINCIPAL_NAME_REFUSALS, } from "./core/principal-name.js";
|
|
@@ -315,6 +318,7 @@ export { resolveMemoryScopeStore } from "./core/memory-engine/dual-root.js";
|
|
|
315
318
|
export { classifyScopePlanes, memoryScopePlaneOf, scopePlanesOf } from "./core/memory-engine/dual-root.js";
|
|
316
319
|
export { createMemoryDeployment, } from "./core/memory-engine/memory-deployment.js";
|
|
317
320
|
export { reanchorMemoryStoreRoot } from "./core/memory-engine/layout.js";
|
|
321
|
+
export { deletionRecordOf, memoryDeletionRecords } from "./core/memory-engine/deletion-record.js";
|
|
318
322
|
export { admittingLandings, cutPerLanding, LandingsNeedAdmission, MAX_LANDING_ADMISSION_ROUNDS, requireLandingsAdmitted, } from "./core/memory-engine/landing-admission.js";
|
|
319
323
|
export { NON_GOVERNANCE_MEMORY_CODES } from "./core/governance-codes.js";
|
|
320
324
|
export { SHARED_MEMORY_READ_CAP_BYTES, SHARED_MEMORY_LIST_PAGE_SIZE, SharedMemoryStoreError, } from "./core/shared-memory/types.js";
|
|
@@ -375,6 +379,7 @@ export { workflowTreeIdStampOf } from "./orchestration/workflow-tree-id.js";
|
|
|
375
379
|
export { readWorkflowRunTree, workflowRunTreeOfOne } from "./orchestration/workflow-park-adoption.js";
|
|
376
380
|
export { workflowParkHolderOf } from "./orchestration/workflow-types.js";
|
|
377
381
|
export { WORKFLOW_AGENT_STOP_ANSWERS } from "./orchestration/workflow-types.js";
|
|
382
|
+
export { WORKFLOW_RUN_STOP_ANSWERS } from "./orchestration/workflow-stop.js";
|
|
378
383
|
export {} from "./orchestration/workflow-types.js";
|
|
379
384
|
export { workflowParkWaitOf, readWorkflowParkWaits } from "./orchestration/workflow-park-adoption.js";
|
|
380
385
|
export { WORKFLOW_PARK_UNUSED_REASONS } from "./orchestration/workflow-park-adoption.js";
|
|
@@ -452,7 +457,7 @@ export { builtinAgentDefinitions, BUILTIN_READONLY_DENY_TOOLS, EXPLORE_WHEN_TO_U
|
|
|
452
457
|
export { createTaskServer, } from "./server/http.js";
|
|
453
458
|
export { clearStaleToolResults, editBudget, } from "./core/context-edit.js";
|
|
454
459
|
export { createOpenAIBrain } from "./brain/openai.js";
|
|
455
|
-
export { createAnthropicBrain, ANTHROPIC_DEFAULT_BASE_URL } from "./brain/anthropic.js";
|
|
460
|
+
export { createAnthropicBrain, ANTHROPIC_DEFAULT_BASE_URL, anthropicCredentialHeadersOf } from "./brain/anthropic.js";
|
|
456
461
|
export { createOpenResponsesBrain } from "./brain/open-responses.js";
|
|
457
462
|
export { FABLE_5_COMPAT, fable5Model } from "./brain/model-presets.js";
|
|
458
463
|
export { REFERENCE_MODEL_PROMPT_TRAITS, referenceModelIdOf, referencePromptTraitsOf } from "./brain/reference-model-traits.js";
|
|
@@ -467,12 +472,18 @@ export { DEGRADE_REASONS, MODEL_FALLBACK_GATE_WORDS, DEFAULT_FALLBACK_GATE } fro
|
|
|
467
472
|
export { retryBackoffMs, parseRetryAfter } from "./brain/retry.js";
|
|
468
473
|
export { WAITING_AFTER_MS, WAITING_EVERY_MS } from "./brain/stream-engine.js";
|
|
469
474
|
export { adjudicateModelRoute, resolveRouteCredential, admitRouteRequest, rebindCredentialOrigin, CREDENTIAL_REBIND_OUTCOMES, requestOriginOf, routeRefusalText, routePairingStatus, routeKeyOf, displayUrlOf, resolveRequestRoot, resolveRequestRootOf, joinRequestUrl, hasAuthCarrier, __resetCredentialOriginBindings, } from "./brain/route-adjudicator.js";
|
|
475
|
+
export { ROUTE_PAIRING_STATUSES } from "./brain/route-adjudicator.js";
|
|
470
476
|
export { ROUTE_CREDENTIAL_SOURCES, ROUTE_CARRIERS, ROUTE_CARRIER_BAGS, REQUEST_ROOT_ORIGINS, ROUTE_CREDENTIAL_PAIRING, requestRouteOf, routePairingRowOf, } from "./brain/request-route.js";
|
|
471
477
|
export { ROUTE_ADJUDICATION_CONFORMANCE_CORPUS } from "./brain/route-conformance.js";
|
|
472
478
|
export {} from "./brain/timeout.js";
|
|
473
479
|
export { createAssistantMessageEventStream } from "./internal/llm.js";
|
|
474
480
|
export { CONTINUATION_ENDED_BY } from "./core/delegation-frames.js";
|
|
475
481
|
export { MEMBER_OUTCOMES, MEMBER_KINDS, MEMBER_COVERAGES, RUN_END_CAUSES, REFUSALS_LISTED, isMemberOutcomeWord, isRunEndCause, isMemberOutcome, isMemberCoverage, memberOutcomeOf, memberRefusalsOf, memberCoverageOf, memberLedgerOf, memberOutcomeText, memberRefusalsText, } from "./core/member-outcome.js";
|
|
482
|
+
export { RUN_LEDGER_VERSION, RUN_LEDGER_WIRE_KEY, RUN_LEDGER_CHECKS, runLedgerHeadline, } from "./core/run-ledger.js";
|
|
483
|
+
export { subagentActionsLine } from "./core/actions-digest.js";
|
|
484
|
+
export { MANAGER_LAUNCH_ITEMS, managerLaunchCheck, managerLaunchCheckSentence } from "./core/manager-launch-check.js";
|
|
485
|
+
export { MANAGER_RECIPE, MANAGER_DUTIES_ADDENDUM, managerWorkerDefinition } from "./prompts/manager-recipe.js";
|
|
486
|
+
export { SEND_USER_MESSAGE_TOOL_NAME } from "./agents/send-user-message-tool.js";
|
|
476
487
|
export { agentOutcomeOf } from "./core/background-agent-store.js";
|
|
477
488
|
export { Type } from "typebox";
|
|
478
489
|
export { explainPromptAssembly, describeCatalog } from "./prompt-assembly/explain.js";
|
|
@@ -506,3 +517,8 @@ export { sessionLogMarkOf } from "./engine/session/storage-base.js";
|
|
|
506
517
|
export { readRowExpectationMember } from "./core/runner/session-verb-doors.js";
|
|
507
518
|
export { delegationOwnerSeat } from "./core/runner/delegation-owner.js";
|
|
508
519
|
export { CHECKPOINT_LIST_LIMITS, readCheckpointOverdueQuery, readCheckpointSessionQuery, readCheckpointDeleteGuard, checkpointDeadlinePassed, checkpointOverdueAt, checkpointRunSessionOf, storedCheckpointRowRefusal, checkpointRowUnreadable, isCheckpointRowUnreadable, deleteGuardAdmits, selectOverduePage, selectSessionPage, } from "./core/checkpoint-queries.js";
|
|
520
|
+
export { EXTERNAL_INCLUDE_POST_APPROVAL_BLOCKS, } from "./core/instruction-preview.js";
|
|
521
|
+
export { screenProjectSeat } from "./core/project-seat.js";
|
|
522
|
+
export { HOOK_CONDITION_EVENTS, HOOK_CONDITION_UNTESTED_REASONS, judgeHookCondition } from "./core/hook-condition.js";
|
|
523
|
+
export { SHELL_STATE_ENV, shellStateEnvRowOf } from "./core/model-shell.js";
|
|
524
|
+
export { SHELL_KIND_QUESTION, SHELL_KIND_QUESTION_OPTIONS, hasModelShell, readShellKindAnswer } from "./core/model-shell.js";
|
|
@@ -9,7 +9,7 @@ export type { InvokedSkillRetention } from "../engine/compaction/utils.js";
|
|
|
9
9
|
export type { AgentCoreRuntimeDeps } from "../engine/loop/runtime-deps.js";
|
|
10
10
|
export type { LoopTerminalReason } from "../engine/loop/agent-loop.js";
|
|
11
11
|
export type { AgentMessage, AgentTool, AgentToolResult, AgentToolUpdateCallback, ThinkingLevel, ToolExecutionMode, ToolInputValidationContext, ToolInputVerdict, } from "../engine/loop/types.js";
|
|
12
|
-
export type { AgentHarnessEvent, CompactionSettings, ExecutionEnv, ExecutionErrorCode, FileError, FileKind, FileErrorCode, FileInfo, Result, WriteExpectation, WriteReceipt, SymlinkChain, BoundFileObject, Session, SessionCheckoutCell, SessionCheckoutDeclared, SessionCheckoutRecord, SessionCheckoutSource, SessionCheckoutStand, SessionMetadata, SessionRepo, SessionStorage, SessionTreeEntry, Skill, } from "../engine/harness/types.js";
|
|
12
|
+
export type { AgentHarnessEvent, CompactionSettings, ExecutionEnv, ExecutionEnvModelShell, ExecutionErrorCode, FileError, FileKind, FileErrorCode, FileInfo, Result, WriteExpectation, WriteReceipt, SymlinkChain, BoundFileObject, Session, SessionCheckoutCell, SessionCheckoutDeclared, SessionCheckoutRecord, SessionCheckoutSource, SessionCheckoutStand, SessionMetadata, SessionRepo, SessionStorage, SessionTreeEntry, Skill, } from "../engine/harness/types.js";
|
|
13
13
|
export type { ExecutionEnvExecOptions, ExecResult, ReadFloor, ExecutionEnvCapabilities } from "../engine/harness/types.js";
|
|
14
14
|
export type { SessionWriteOptions, CompactionEntry } from "../engine/harness/types.js";
|
|
15
15
|
export type { RowAdmission, RowRaising } from "../engine/harness/types.js";
|
|
@@ -173,7 +173,7 @@ export async function runGoal(runner, spec, internals) {
|
|
|
173
173
|
}
|
|
174
174
|
let verdict;
|
|
175
175
|
try {
|
|
176
|
-
verdict = await raceAbortReject(spec.doneCheck({ result, iteration, sessionId, cumulativeTokens }, goalSignal), goalSignal);
|
|
176
|
+
verdict = await raceAbortReject(spec.doneCheck({ result, iteration, sessionId: result.sessionId, cumulativeTokens }, goalSignal), goalSignal);
|
|
177
177
|
}
|
|
178
178
|
catch {
|
|
179
179
|
const s = classifyStop();
|