@sema-agent/core 7.69.0 → 7.70.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 +3060 -0
- package/dist/agents/agent-definition.d.ts +18 -0
- package/dist/agents/agent-definition.js +10 -0
- package/dist/agents/agent-transcript-tool.d.ts +2 -1
- package/dist/agents/agent-transcript-tool.js +2 -0
- package/dist/agents/cascade.d.ts +10 -0
- package/dist/agents/cascade.js +33 -5
- package/dist/agents/cc-peer-directory.d.ts +1 -1
- package/dist/agents/cc-peer-directory.js +2 -1
- package/dist/agents/child-model-seat.d.ts +1 -1
- package/dist/agents/composition-allowance.d.ts +63 -19
- package/dist/agents/composition-allowance.js +62 -45
- package/dist/agents/composition-placement.d.ts +22 -4
- package/dist/agents/composition-placement.js +10 -1
- package/dist/agents/cross-session-envelope.d.ts +4 -5
- package/dist/agents/cross-session-envelope.js +4 -5
- package/dist/agents/inherited-tool-pool.js +1 -2
- package/dist/agents/list-agents-tool.js +2 -1
- package/dist/agents/parked-resume-drive.d.ts +38 -0
- package/dist/agents/parked-resume-drive.js +57 -0
- package/dist/agents/peer-admission.js +4 -3
- package/dist/agents/peer-held-queue.d.ts +4 -2
- package/dist/agents/peer-held-queue.js +2 -1
- package/dist/agents/peer-session-drain.d.ts +2 -0
- package/dist/agents/peer-session-drain.js +49 -29
- package/dist/agents/repair-loop.js +21 -25
- package/dist/agents/retain-ledger.d.ts +71 -18
- package/dist/agents/retain-ledger.js +45 -13
- package/dist/agents/roster-store.d.ts +11 -3
- package/dist/agents/roster-store.js +6 -2
- package/dist/agents/send-message-tool.d.ts +2 -1
- package/dist/agents/send-message-tool.js +10 -7
- package/dist/agents/subagent.d.ts +24 -7
- package/dist/agents/subagent.js +258 -145
- package/dist/agents/tool-filter.js +1 -1
- package/dist/agents/verify.d.ts +5 -2
- package/dist/agents/verify.js +29 -17
- package/dist/agents/yield-adoption.js +2 -1
- package/dist/bench/metrics.js +2 -2
- package/dist/brain/anthropic.d.ts +2 -1
- package/dist/brain/anthropic.js +3 -3
- package/dist/brain/circuit-breaker.js +1 -1
- package/dist/brain/model-lane.d.ts +2 -1
- package/dist/brain/model-lane.js +22 -9
- package/dist/brain/open-responses.d.ts +77 -1
- package/dist/brain/open-responses.js +1 -1
- package/dist/brain/openai.d.ts +2 -1
- package/dist/brain/openai.js +3 -3
- package/dist/brain/reasoning-request.d.ts +7 -0
- package/dist/brain/reasoning-request.js +6 -0
- package/dist/brain/reasoning.d.ts +8 -1
- package/dist/brain/reasoning.js +3 -0
- package/dist/brain/reference-model-traits.d.ts +13 -12
- package/dist/brain/reference-model-traits.js +11 -10
- package/dist/brain/request-route.d.ts +1 -1
- package/dist/brain/request-route.js +2 -2
- package/dist/brain/route-adjudicator.d.ts +72 -2
- package/dist/brain/route-adjudicator.js +210 -69
- package/dist/brain/route-conformance.js +35 -0
- package/dist/brain/routing.js +2 -2
- package/dist/brain/spend-meter.d.ts +56 -0
- package/dist/brain/spend-meter.js +263 -0
- package/dist/brain/stream-shared.d.ts +1 -1
- package/dist/brain/stream-shared.js +3 -1
- package/dist/core/a2a-bound-grant.d.ts +110 -0
- package/dist/core/a2a-bound-grant.js +83 -0
- package/dist/core/a2a-task-state.d.ts +153 -51
- package/dist/core/a2a-task-state.js +85 -45
- package/dist/core/a2a.d.ts +62 -14
- package/dist/core/a2a.js +298 -57
- package/dist/core/agent-config-dir.d.ts +86 -3
- package/dist/core/agent-config-dir.js +122 -13
- package/dist/core/agent-definition.d.ts +1 -1
- package/dist/core/agent-state.d.ts +10 -1
- package/dist/core/agent-state.js +11 -4
- package/dist/core/allow-entry.d.ts +80 -42
- package/dist/core/allow-entry.js +118 -54
- package/dist/core/allow-rule-shadow.d.ts +25 -3
- package/dist/core/allow-rule-shadow.js +7 -0
- package/dist/core/approval-object.js +2 -2
- package/dist/core/artifact-host.d.ts +109 -6
- package/dist/core/artifact-host.js +68 -0
- package/dist/core/ask-headline.d.ts +12 -11
- package/dist/core/ask-headline.js +9 -3
- package/dist/core/ask-origin.d.ts +115 -55
- package/dist/core/ask-origin.js +80 -43
- package/dist/core/ask-question.d.ts +76 -38
- package/dist/core/ask-question.js +151 -22
- package/dist/core/ask-unresolvable-notice.d.ts +66 -10
- package/dist/core/ask-unresolvable-notice.js +38 -14
- package/dist/core/attachment-source.d.ts +1 -1
- package/dist/core/attachment-source.js +1 -0
- package/dist/core/auto-compaction.d.ts +31 -95
- package/dist/core/auto-compaction.js +40 -104
- package/dist/core/auto-mode-directive.d.ts +17 -5
- package/dist/core/auto-mode-directive.js +12 -3
- package/dist/core/auto-mode.d.ts +34 -5
- package/dist/core/auto-mode.js +43 -5
- package/dist/core/background-agent-store.d.ts +100 -11
- package/dist/core/background-agent-store.js +64 -6
- package/dist/core/background-shell.d.ts +9 -0
- package/dist/core/background-shell.js +10 -0
- package/dist/core/caller-text.d.ts +2 -2
- package/dist/core/caller-tool-name.d.ts +6 -0
- package/dist/core/caller-tool-name.js +2 -1
- package/dist/core/checkpoint-features.d.ts +39 -423
- package/dist/core/checkpoint-features.js +45 -1
- package/dist/core/checkpoint-queries.d.ts +14 -3
- package/dist/core/checkpoint-queries.js +9 -4
- package/dist/core/checkpoint-requirements.d.ts +87 -2
- package/dist/core/checkpoint-requirements.js +18 -2
- package/dist/core/checkpoint-row-verdict.d.ts +70 -17
- package/dist/core/checkpoint-row-verdict.js +78 -29
- package/dist/core/checkpoint-store.d.ts +88 -71
- package/dist/core/checkpoint-store.js +24 -22
- package/dist/core/child-clamp-seats.d.ts +30 -3
- package/dist/core/child-clamp-seats.js +24 -0
- package/dist/core/classifier-unavailable-arm.d.ts +6 -1
- package/dist/core/classifier-unavailable-arm.js +8 -5
- package/dist/core/config-refusal-codes.d.ts +7 -5
- package/dist/core/config-refusal-codes.js +9 -2
- package/dist/core/config-refusal-input.d.ts +46 -0
- package/dist/core/config-refusal-input.js +62 -0
- package/dist/core/context-edit.d.ts +50 -18
- package/dist/core/context-edit.js +41 -2
- package/dist/core/context-guard.d.ts +60 -13
- package/dist/core/context-guard.js +77 -35
- package/dist/core/context-settings.d.ts +2 -1
- package/dist/core/context-settings.js +10 -6
- package/dist/core/corrupt-session-form.d.ts +97 -0
- package/dist/core/corrupt-session-form.js +54 -0
- package/dist/core/cron.d.ts +68 -0
- package/dist/core/cron.js +259 -0
- package/dist/core/cross-boundary-taint.d.ts +3 -3
- package/dist/core/data-root.d.ts +32 -0
- package/dist/core/data-root.js +86 -0
- package/dist/core/decision-receipt.d.ts +2 -0
- package/dist/core/decision-receipt.js +3 -2
- package/dist/core/declaration-words.d.ts +37 -0
- package/dist/core/declaration-words.js +21 -0
- package/dist/core/delegation-frames.d.ts +76 -35
- package/dist/core/delegation-frames.js +21 -1
- package/dist/core/durable-sync.d.ts +9 -0
- package/dist/core/durable-sync.js +37 -0
- package/dist/core/engine-attestation.d.ts +16 -0
- package/dist/core/engine-attestation.js +2 -0
- package/dist/core/engine-capabilities.d.ts +123 -3
- package/dist/core/engine-capabilities.js +1 -1
- package/dist/core/engine-notice.d.ts +267 -136
- package/dist/core/engine-notice.js +13 -19
- package/dist/core/engine-version.js +1 -1
- package/dist/core/entries-not-applied.d.ts +22 -0
- package/dist/core/entries-not-applied.js +26 -0
- package/dist/core/exec-gate.d.ts +8 -1
- package/dist/core/exec-gate.js +24 -9
- package/dist/core/exec-outcome.d.ts +102 -0
- package/dist/core/exec-outcome.js +79 -0
- package/dist/core/existing-target.d.ts +45 -0
- package/dist/core/existing-target.js +54 -8
- package/dist/core/fast-tier-door.d.ts +2 -2
- package/dist/core/fast-tier-door.js +3 -3
- package/dist/core/file-history-store.d.ts +138 -19
- package/dist/core/file-history-store.js +124 -33
- package/dist/core/gate-fold.js +8 -1
- package/dist/core/gate-lanes.js +65 -38
- package/dist/core/gate-outcome.d.ts +32 -3
- package/dist/core/gate-outcome.js +13 -1
- package/dist/core/git-read-only.d.ts +10 -0
- package/dist/core/git-read-only.js +1 -0
- package/dist/core/git-worktree-env.d.ts +25 -5
- package/dist/core/git-worktree-env.js +47 -21
- package/dist/core/governance-codes.d.ts +184 -38
- package/dist/core/governance-codes.js +455 -39
- package/dist/core/hands-band.d.ts +1 -1
- package/dist/core/hooks.d.ts +75 -13
- package/dist/core/hooks.js +4 -0
- package/dist/core/host-floor.d.ts +1 -1
- package/dist/core/host-floor.js +1 -1
- package/dist/core/identity-rekey.d.ts +2 -1
- package/dist/core/identity-rekey.js +5 -5
- package/dist/core/image-admission.d.ts +2 -2
- package/dist/core/image-admission.js +1 -1
- package/dist/core/isolation-scope.d.ts +42 -17
- package/dist/core/isolation-scope.js +12 -4
- package/dist/core/leg-identity.d.ts +17 -2
- package/dist/core/leg-identity.js +6 -1
- package/dist/core/locked-config.d.ts +86 -16
- package/dist/core/locked-config.js +106 -36
- package/dist/core/lsp.d.ts +3 -0
- package/dist/core/lsp.js +3 -2
- package/dist/core/mailbox-store.d.ts +4 -0
- package/dist/core/mailbox-store.js +7 -0
- package/dist/core/mcp-failure.d.ts +13 -4
- package/dist/core/mcp-failure.js +10 -0
- package/dist/core/mcp-injection-drop.d.ts +30 -13
- package/dist/core/mcp-injection-drop.js +25 -7
- package/dist/core/mcp-leg-wait.d.ts +88 -0
- package/dist/core/mcp-leg-wait.js +100 -0
- package/dist/core/mcp-name-judge.js +1 -2
- package/dist/core/mcp-probe.d.ts +30 -1
- package/dist/core/mcp-probe.js +5 -3
- package/dist/core/mcp-read-bound.d.ts +51 -0
- package/dist/core/mcp-read-bound.js +49 -0
- package/dist/core/mcp-server-link.js +4 -3
- package/dist/core/mcp-server-spec.d.ts +97 -26
- package/dist/core/mcp-server-spec.js +51 -19
- package/dist/core/mcp-server-unavailable-notice.d.ts +15 -6
- package/dist/core/mcp-server-unavailable-notice.js +12 -11
- package/dist/core/mcp-stderr-lines.d.ts +69 -0
- package/dist/core/mcp-stderr-lines.js +333 -0
- package/dist/core/mcp.d.ts +32 -9
- package/dist/core/mcp.js +187 -44
- package/dist/core/member-outcome.d.ts +281 -0
- package/dist/core/member-outcome.js +293 -0
- package/dist/core/memory-engine/consolidation.js +3 -3
- package/dist/core/memory-engine/content-origin.js +5 -4
- package/dist/core/memory-engine/control-objects.js +6 -4
- package/dist/core/memory-engine/distiller.js +2 -2
- package/dist/core/memory-engine/dual-root.d.ts +12 -5
- package/dist/core/memory-engine/dual-root.js +13 -7
- package/dist/core/memory-engine/engine.d.ts +74 -42
- package/dist/core/memory-engine/engine.js +206 -102
- package/dist/core/memory-engine/file-backend.d.ts +18 -4
- package/dist/core/memory-engine/file-backend.js +15 -20
- package/dist/core/memory-engine/index-copies.d.ts +49 -0
- package/dist/core/memory-engine/index-copies.js +89 -0
- package/dist/core/memory-engine/index.d.ts +3 -2
- package/dist/core/memory-engine/index.js +3 -2
- package/dist/core/memory-engine/layout.d.ts +186 -26
- package/dist/core/memory-engine/layout.js +273 -42
- package/dist/core/memory-engine/memory-backend-contract.js +20 -20
- package/dist/core/memory-engine/memory-deployment.d.ts +29 -16
- package/dist/core/memory-engine/memory-deployment.js +30 -20
- package/dist/core/memory-engine/mount-failed-notice.d.ts +64 -0
- package/dist/core/memory-engine/mount-failed-notice.js +50 -2
- package/dist/core/memory-engine/origin-clearance.d.ts +9 -7
- package/dist/core/memory-engine/origin-clearance.js +2 -4
- package/dist/core/memory-engine/projection-ledger.d.ts +48 -0
- package/dist/core/memory-engine/projection-ledger.js +130 -0
- package/dist/core/memory-engine/scope-contract.js +2 -2
- package/dist/core/memory-engine/sync-client.js +1 -2
- package/dist/core/memory-engine/types.d.ts +22 -3
- package/dist/core/memory.js +3 -5
- package/dist/core/mode-policy.d.ts +89 -17
- package/dist/core/mode-policy.js +72 -29
- package/dist/core/model-seat.d.ts +13 -1
- package/dist/core/mods/classic-events.d.ts +13 -1
- package/dist/core/mods/dollar.js +2 -1
- package/dist/core/mods/extension-call.d.ts +3 -0
- package/dist/core/mods/extension-call.js +3 -0
- package/dist/core/mods/kernel/dispatch.d.ts +4 -0
- package/dist/core/mods/kernel/dispatch.js +3 -3
- package/dist/core/mods/kernel/events.d.ts +11 -3
- package/dist/core/mods/kernel/events.js +4 -4
- package/dist/core/mods/message-display.d.ts +6 -3
- package/dist/core/mods/message-display.js +13 -5
- package/dist/core/mods/session-compact.js +3 -3
- package/dist/core/mods/stations.d.ts +10 -1
- package/dist/core/mods/stations.js +7 -4
- package/dist/core/mods/teammate-stations.d.ts +75 -0
- package/dist/core/mods/teammate-stations.js +108 -0
- package/dist/core/mounted-mcp.js +1 -2
- package/dist/core/namespaced-rule-name.d.ts +1 -1
- package/dist/core/namespaced-rule-name.js +1 -1
- package/dist/core/notice-fact.d.ts +28 -0
- package/dist/core/notice-fact.js +25 -0
- package/dist/core/owner-identity.d.ts +8 -3
- package/dist/core/owner-identity.js +6 -3
- package/dist/core/parent-spec-seat.d.ts +16 -6
- package/dist/core/parent-spec-seat.js +28 -6
- package/dist/core/park-resumability.d.ts +10 -5
- package/dist/core/park-resumability.js +3 -0
- package/dist/core/park-selfcheck.js +2 -1
- package/dist/core/path-guard-rows.d.ts +8 -3
- package/dist/core/path-guard-rows.js +18 -5
- package/dist/core/peer-seat.d.ts +4 -2
- package/dist/core/peer-seat.js +3 -0
- package/dist/core/permission-rule-consent.d.ts +50 -1
- package/dist/core/permission-rule-consent.js +121 -14
- package/dist/core/permission-rule-model.d.ts +135 -39
- package/dist/core/permission-rule-model.js +154 -26
- package/dist/core/permission-rule-org.d.ts +13 -0
- package/dist/core/permission-rule-org.js +8 -0
- package/dist/core/permission-rule-provider.d.ts +107 -7
- package/dist/core/permission-rule-provider.js +434 -29
- package/dist/core/permission-rule-session.js +3 -1
- package/dist/core/permission-rule-store.d.ts +19 -2
- package/dist/core/permission-rule-store.js +29 -10
- package/dist/core/permission-rule-sync.js +5 -2
- package/dist/core/permission-rules.js +8 -3
- package/dist/core/persisted-rule-arms.d.ts +10 -4
- package/dist/core/persisted-rule-arms.js +16 -11
- package/dist/core/persisted-rule-buckets.d.ts +66 -0
- package/dist/core/persisted-rule-buckets.js +57 -0
- package/dist/core/plan-review-facts.d.ts +33 -0
- package/dist/core/plan-review-facts.js +25 -0
- package/dist/core/prefix-declaration.d.ts +50 -0
- package/dist/core/prefix-declaration.js +13 -0
- package/dist/core/present-plan-tool.d.ts +13 -3
- package/dist/core/present-plan-tool.js +14 -3
- package/dist/core/pricing.d.ts +5 -1
- package/dist/core/pricing.js +8 -5
- package/dist/core/principal-name.d.ts +55 -5
- package/dist/core/principal-name.js +57 -16
- package/dist/core/process-identity.d.ts +21 -9
- package/dist/core/process-identity.js +51 -51
- package/dist/core/process-table.d.ts +67 -0
- package/dist/core/process-table.js +177 -0
- package/dist/core/protocol-http-auth.d.ts +75 -12
- package/dist/core/protocol-http-auth.js +223 -26
- package/dist/core/protocol-revocation.d.ts +29 -10
- package/dist/core/protocol-revocation.js +9 -5
- package/dist/core/read-only-shell.d.ts +1 -1
- package/dist/core/read-only-shell.js +1 -1
- package/dist/core/read-root-grant-screen.d.ts +17 -6
- package/dist/core/read-root-grant-screen.js +15 -5
- package/dist/core/reminder-mint.d.ts +6 -0
- package/dist/core/reminder-mint.js +13 -0
- package/dist/core/remote-env.d.ts +111 -3
- package/dist/core/remote-env.js +20 -0
- package/dist/core/request-copy-projection.js +97 -18
- package/dist/core/resource-limit-reasons.d.ts +52 -0
- package/dist/core/resource-limit-reasons.js +6 -0
- package/dist/core/resume-at-refusal.d.ts +10 -6
- package/dist/core/resume-at-refusal.js +2 -2
- package/dist/core/resume-config-judge.d.ts +3 -2
- package/dist/core/resume-config-judge.js +2 -1
- package/dist/core/resume-startup-cause.d.ts +18 -4
- package/dist/core/resume-startup-cause.js +30 -6
- package/dist/core/retention.d.ts +12 -2
- package/dist/core/retention.js +6 -1
- package/dist/core/retired-keys.d.ts +5 -0
- package/dist/core/retired-keys.js +12 -0
- package/dist/core/rewind-conversation.d.ts +54 -0
- package/dist/core/rewind-conversation.js +1 -0
- package/dist/core/roles.d.ts +61 -3
- package/dist/core/roles.js +81 -28
- package/dist/core/rule-lane-reads.d.ts +2 -1
- package/dist/core/rule-lane-reads.js +54 -29
- package/dist/core/rule-offer-read.js +5 -2
- package/dist/core/rule-owner.d.ts +6 -1
- package/dist/core/rule-owner.js +8 -2
- package/dist/core/rule-store-fault.d.ts +4 -2
- package/dist/core/rule-store-fault.js +4 -1
- package/dist/core/runner/advertised-writable-dirs.d.ts +17 -0
- package/dist/core/runner/advertised-writable-dirs.js +15 -9
- package/dist/core/runner/announce-once-ledger.js +12 -11
- package/dist/core/runner/assemble-result.d.ts +20 -6
- package/dist/core/runner/assemble-result.js +12 -5
- package/dist/core/runner/auto-strip-notice.d.ts +1 -1
- package/dist/core/runner/branch-window.d.ts +25 -2
- package/dist/core/runner/branch-window.js +47 -11
- package/dist/core/runner/chain-refusal-throw.d.ts +19 -0
- package/dist/core/runner/chain-refusal-throw.js +30 -0
- package/dist/core/runner/changes-git.d.ts +21 -0
- package/dist/core/runner/changes-git.js +291 -0
- package/dist/core/runner/changes-history.d.ts +80 -0
- package/dist/core/runner/changes-history.js +351 -0
- package/dist/core/runner/checkpoint-scope.d.ts +16 -8
- package/dist/core/runner/checkpoint-scope.js +6 -4
- package/dist/core/runner/child-tree.d.ts +31 -20
- package/dist/core/runner/child-tree.js +24 -9
- package/dist/core/runner/classifier-ladder.d.ts +4 -2
- package/dist/core/runner/classifier-ladder.js +14 -12
- package/dist/core/runner/cleared-results-record.d.ts +33 -0
- package/dist/core/runner/cleared-results-record.js +56 -0
- package/dist/core/runner/clock-and-limits.d.ts +0 -3
- package/dist/core/runner/clock-and-limits.js +1 -2
- package/dist/core/runner/compact-session.js +30 -56
- package/dist/core/runner/compaction-knobs.d.ts +1 -1
- package/dist/core/runner/compaction-restate.js +2 -1
- package/dist/core/runner/constraint-layers.d.ts +101 -0
- package/dist/core/runner/constraint-layers.js +96 -0
- package/dist/core/runner/construction-doors.js +2 -0
- package/dist/core/runner/content-ask-bindings.d.ts +3 -3
- package/dist/core/runner/continuation-gate.d.ts +8 -4
- package/dist/core/runner/continuation-gate.js +4 -1
- package/dist/core/runner/continues-from.d.ts +8 -1
- package/dist/core/runner/continues-from.js +10 -1
- package/dist/core/runner/contracts.d.ts +226 -74
- package/dist/core/runner/conversation-segment.d.ts +19 -12
- package/dist/core/runner/conversation-segment.js +27 -7
- package/dist/core/runner/decide-continuation.d.ts +2 -2
- package/dist/core/runner/denial-limit-arms.js +3 -4
- package/dist/core/runner/derived-route-fallback.d.ts +2 -12
- package/dist/core/runner/derived-route-fallback.js +0 -6
- package/dist/core/runner/earlier-grammar-notice.js +5 -3
- package/dist/core/runner/env-capability-census.js +2 -1
- package/dist/core/runner/file-history-restore.d.ts +35 -9
- package/dist/core/runner/file-history-restore.js +36 -9
- package/dist/core/runner/finish-reason-seat.js +13 -4
- package/dist/core/runner/gate-exit.d.ts +10 -1
- package/dist/core/runner/gate-exit.js +40 -13
- package/dist/core/runner/git-status-frame.d.ts +2 -2
- package/dist/core/runner/git-status-frame.js +2 -1
- package/dist/core/runner/halt-attribution.js +1 -1
- package/dist/core/runner/initial-run-state.d.ts +1 -1
- package/dist/core/runner/initial-run-state.js +3 -3
- package/dist/core/runner/left-as-is-seat.js +1 -1
- package/dist/core/runner/leg-caller-places.d.ts +39 -0
- package/dist/core/runner/leg-caller-places.js +23 -0
- package/dist/core/runner/leg-frame.d.ts +8 -2
- package/dist/core/runner/leg-receipt.d.ts +29 -2
- package/dist/core/runner/leg-receipt.js +37 -6
- package/dist/core/runner/mcp-redial.d.ts +15 -4
- package/dist/core/runner/mcp-redial.js +53 -6
- package/dist/core/runner/media-removed-seat.d.ts +10 -6
- package/dist/core/runner/media-removed-seat.js +6 -3
- package/dist/core/runner/memory-capture-optout.d.ts +7 -11
- package/dist/core/runner/memory-capture-optout.js +7 -4
- package/dist/core/runner/memory-phase-refusals.d.ts +19 -0
- package/dist/core/runner/memory-phase-refusals.js +18 -0
- package/dist/core/runner/messages-omitted-seat.d.ts +25 -1
- package/dist/core/runner/messages-omitted-seat.js +41 -10
- package/dist/core/runner/model-fallback-seat.d.ts +18 -5
- package/dist/core/runner/model-fallback-seat.js +29 -24
- package/dist/core/runner/model-lane-seat.d.ts +23 -1
- package/dist/core/runner/model-lane-seat.js +20 -2
- package/dist/core/runner/nested-memory-lane.d.ts +64 -57
- package/dist/core/runner/nested-memory-lane.js +310 -110
- package/dist/core/runner/park-commit.d.ts +26 -5
- package/dist/core/runner/park-commit.js +19 -8
- package/dist/core/runner/permission-rule-lanes.d.ts +5 -0
- package/dist/core/runner/permission-rule-lanes.js +44 -11
- package/dist/core/runner/person-path-rows.d.ts +146 -25
- package/dist/core/runner/person-path-rows.js +195 -22
- package/dist/core/runner/prefix-ledger.d.ts +174 -0
- package/dist/core/runner/prefix-ledger.js +266 -0
- package/dist/core/runner/prepare-acquire-reconcile.d.ts +2 -1
- package/dist/core/runner/prepare-acquire-reconcile.js +13 -65
- package/dist/core/runner/prepare-advisor.d.ts +2 -0
- package/dist/core/runner/prepare-advisor.js +4 -2
- package/dist/core/runner/prepare-artifact.d.ts +7 -1
- package/dist/core/runner/prepare-artifact.js +4 -4
- package/dist/core/runner/prepare-ask-lane.d.ts +4 -0
- package/dist/core/runner/prepare-ask-lane.js +7 -5
- package/dist/core/runner/prepare-boundary-parks.js +9 -3
- package/dist/core/runner/prepare-caps-and-workflow.d.ts +2 -0
- package/dist/core/runner/prepare-caps-and-workflow.js +41 -28
- package/dist/core/runner/prepare-config-doors.d.ts +13 -13
- package/dist/core/runner/prepare-config-doors.js +125 -123
- package/dist/core/runner/prepare-context-lane.d.ts +55 -15
- package/dist/core/runner/prepare-context-lane.js +135 -51
- package/dist/core/runner/prepare-defer-classify.d.ts +12 -0
- package/dist/core/runner/prepare-defer-classify.js +29 -7
- package/dist/core/runner/prepare-delegation-surface.d.ts +2 -0
- package/dist/core/runner/prepare-delegation-surface.js +8 -4
- package/dist/core/runner/prepare-execution-env.d.ts +3 -0
- package/dist/core/runner/prepare-execution-env.js +10 -5
- package/dist/core/runner/prepare-file-history.js +4 -1
- package/dist/core/runner/prepare-gate-stations.d.ts +11 -2
- package/dist/core/runner/prepare-gate-stations.js +17 -10
- package/dist/core/runner/prepare-hands-readface.d.ts +45 -11
- package/dist/core/runner/prepare-hands-readface.js +118 -39
- package/dist/core/runner/prepare-inherited-gate.d.ts +25 -11
- package/dist/core/runner/prepare-inherited-gate.js +29 -16
- package/dist/core/runner/prepare-memory-engine-session.js +4 -2
- package/dist/core/runner/prepare-memory.d.ts +18 -3
- package/dist/core/runner/prepare-memory.js +86 -36
- package/dist/core/runner/prepare-offload-wrappers.d.ts +7 -7
- package/dist/core/runner/prepare-offload-wrappers.js +26 -17
- package/dist/core/runner/prepare-park-ask.d.ts +8 -11
- package/dist/core/runner/prepare-park-ask.js +11 -8
- package/dist/core/runner/prepare-policy-chain.d.ts +27 -1
- package/dist/core/runner/prepare-policy-chain.js +65 -29
- package/dist/core/runner/prepare-project-context.d.ts +4 -0
- package/dist/core/runner/prepare-project-context.js +9 -8
- package/dist/core/runner/prepare-prompt-assembly.d.ts +12 -4
- package/dist/core/runner/prepare-prompt-assembly.js +12 -6
- package/dist/core/runner/prepare-prompt-inputs.d.ts +3 -7
- package/dist/core/runner/prepare-prompt-inputs.js +6 -7
- package/dist/core/runner/prepare-protocol-tools.d.ts +2 -2
- package/dist/core/runner/prepare-protocol-tools.js +44 -24
- package/dist/core/runner/prepare-question-face.d.ts +4 -9
- package/dist/core/runner/prepare-question-face.js +8 -3
- package/dist/core/runner/prepare-safety-scan.js +7 -0
- package/dist/core/runner/prepare-suspend-saga.d.ts +11 -1
- package/dist/core/runner/prepare-suspend-saga.js +12 -5
- package/dist/core/runner/prepare-task.d.ts +2 -2
- package/dist/core/runner/prepare-task.js +188 -98
- package/dist/core/runner/prepare-tool-disclosure-mount.d.ts +5 -11
- package/dist/core/runner/prepare-tool-disclosure-mount.js +16 -12
- package/dist/core/runner/prepare-turn-wiring.d.ts +19 -26
- package/dist/core/runner/prepare-turn-wiring.js +15 -23
- package/dist/core/runner/prepare-wiring-manifest.d.ts +7 -19
- package/dist/core/runner/prepare-wiring-manifest.js +19 -36
- package/dist/core/runner/prepare-workspace-restore.d.ts +4 -11
- package/dist/core/runner/prepare-workspace-restore.js +1 -14
- package/dist/core/runner/prompt-suggestions.d.ts +3 -1
- package/dist/core/runner/prompt-suggestions.js +1 -1
- package/dist/core/runner/read-block-judge.d.ts +47 -0
- package/dist/core/runner/read-block-judge.js +33 -0
- package/dist/core/runner/read-root-grant.d.ts +48 -13
- package/dist/core/runner/read-root-grant.js +53 -19
- package/dist/core/runner/read-session-changes.d.ts +9 -0
- package/dist/core/runner/read-session-changes.js +192 -0
- package/dist/core/runner/remote-env-retry.d.ts +4 -4
- package/dist/core/runner/resume-admission.d.ts +11 -7
- package/dist/core/runner/resume-admission.js +25 -15
- package/dist/core/runner/resume-apply.js +2 -1
- package/dist/core/runner/resume-checkpoint-screen.d.ts +7 -2
- package/dist/core/runner/resume-checkpoint-screen.js +32 -17
- package/dist/core/runner/resume-internals-and-config.d.ts +3 -0
- package/dist/core/runner/resume-internals-and-config.js +10 -7
- package/dist/core/runner/resume-policy-outcome.d.ts +4 -3
- package/dist/core/runner/resume-policy-outcome.js +2 -2
- package/dist/core/runner/retired-name-policy.d.ts +15 -0
- package/dist/core/runner/retired-name-policy.js +37 -0
- package/dist/core/runner/retired-runner-deps.js +3 -1
- package/dist/core/runner/rewind-conversation.d.ts +10 -0
- package/dist/core/runner/rewind-conversation.js +100 -0
- package/dist/core/runner/rewind-files.js +37 -20
- package/dist/core/runner/rewind-target.d.ts +28 -0
- package/dist/core/runner/rewind-target.js +58 -0
- package/dist/core/runner/role-resolution-table.d.ts +8 -16
- package/dist/core/runner/role-resolution-table.js +3 -6
- package/dist/core/runner/role-seat-defaulted.d.ts +14 -5
- package/dist/core/runner/role-seat-defaulted.js +17 -13
- package/dist/core/runner/rule-store-unreadable-notice.d.ts +9 -4
- package/dist/core/runner/rule-store-unreadable-notice.js +8 -5
- package/dist/core/runner/run-compaction-machinery.d.ts +0 -10
- package/dist/core/runner/run-compaction-machinery.js +4 -40
- package/dist/core/runner/run-harness-handlers.js +46 -27
- package/dist/core/runner/run-identity-wiring.d.ts +2 -0
- package/dist/core/runner/run-identity-wiring.js +7 -3
- package/dist/core/runner/run-leg.js +30 -29
- package/dist/core/runner/run-notification-lane.js +2 -2
- package/dist/core/runner/run-recovery-lanes.d.ts +0 -4
- package/dist/core/runner/run-recovery-lanes.js +34 -18
- package/dist/core/runner/run-settle-and-teardown.d.ts +1 -3
- package/dist/core/runner/run-settle-and-teardown.js +45 -38
- package/dist/core/runner/run-stop-and-final-verify.js +66 -69
- package/dist/core/runner/run-telemetry-and-budget-seats.js +14 -9
- package/dist/core/runner/run-terminal-adoption.d.ts +11 -30
- package/dist/core/runner/run-terminal-adoption.js +5 -88
- package/dist/core/runner/run-tool-mount-facts.js +1 -5
- package/dist/core/runner/run-turn-boundary.js +59 -32
- package/dist/core/runner/runtask.d.ts +22 -16
- package/dist/core/runner/runtask.js +25 -15
- package/dist/core/runner/sandbox-network-seat.js +1 -1
- package/dist/core/runner/seat-model-doors.d.ts +6 -5
- package/dist/core/runner/seat-model-doors.js +4 -3
- package/dist/core/runner/session-file-state-replay.d.ts +47 -8
- package/dist/core/runner/session-file-state-replay.js +97 -11
- package/dist/core/runner/session-files-open.d.ts +64 -0
- package/dist/core/runner/session-files-open.js +33 -0
- package/dist/core/runner/session-hash-salt.d.ts +18 -0
- package/dist/core/runner/session-hash-salt.js +36 -0
- package/dist/core/runner/session-read-file-states.d.ts +37 -41
- package/dist/core/runner/session-read-file-states.js +14 -6
- package/dist/core/runner/session-rule-policy.d.ts +5 -0
- package/dist/core/runner/session-rule-policy.js +16 -9
- package/dist/core/runner/session-verb-doors.d.ts +41 -4
- package/dist/core/runner/session-verb-doors.js +66 -11
- package/dist/core/runner/shared-read-classifier.d.ts +14 -3
- package/dist/core/runner/shared-read-classifier.js +14 -6
- package/dist/core/runner/shell-env-withheld.d.ts +10 -5
- package/dist/core/runner/shell-env-withheld.js +4 -3
- package/dist/core/runner/side-call-account.d.ts +56 -6
- package/dist/core/runner/side-call-account.js +52 -7
- package/dist/core/runner/skill-mention.d.ts +12 -0
- package/dist/core/runner/skill-mention.js +50 -0
- package/dist/core/runner/skipped-rules-notice.d.ts +5 -5
- package/dist/core/runner/skipped-rules-notice.js +3 -3
- package/dist/core/runner/stream-settle-backstop.js +6 -4
- package/dist/core/runner/sub-agent-deny-lists.d.ts +26 -7
- package/dist/core/runner/sub-agent-deny-lists.js +23 -15
- package/dist/core/runner/synthetic-tools.js +2 -2
- package/dist/core/runner/task-start-doors.d.ts +7 -3
- package/dist/core/runner/task-start-doors.js +72 -31
- package/dist/core/runner/terminal-account.js +14 -8
- package/dist/core/runner/terminal-projection.d.ts +3 -2
- package/dist/core/runner/terminal-projection.js +2 -2
- package/dist/core/runner/tool-defer-gate.d.ts +1 -1
- package/dist/core/runner/tool-end-body.d.ts +8 -1
- package/dist/core/runner/tool-end-body.js +4 -3
- package/dist/core/runner/tool-face-overlay.js +6 -4
- package/dist/core/runner/tool-result-media-seat.d.ts +2 -1
- package/dist/core/runner/tool-table-view.d.ts +5 -9
- package/dist/core/runner/tool-table-view.js +24 -22
- package/dist/core/runner/trim-stretch.d.ts +43 -0
- package/dist/core/runner/trim-stretch.js +34 -0
- package/dist/core/runner/turn-attachments.js +7 -2
- package/dist/core/runner/unreadable-person-rows.d.ts +39 -0
- package/dist/core/runner/unreadable-person-rows.js +20 -0
- package/dist/core/runner/verdict-refusal.d.ts +22 -7
- package/dist/core/runner/verdict-refusal.js +35 -3
- package/dist/core/runner/workspace-sync.d.ts +49 -0
- package/dist/core/runner/workspace-sync.js +170 -0
- package/dist/core/runner/write-protection-station.d.ts +5 -2
- package/dist/core/runner/write-protection-station.js +1 -1
- package/dist/core/runner-deps.d.ts +76 -53
- package/dist/core/scheduler.d.ts +47 -17
- package/dist/core/scheduler.js +0 -12
- package/dist/core/secret-env.d.ts +209 -23
- package/dist/core/secret-env.js +343 -47
- package/dist/core/sensitive-path-policy.js +7 -2
- package/dist/core/session-changes.d.ts +260 -0
- package/dist/core/session-changes.js +40 -0
- package/dist/core/session-checkout.d.ts +87 -3
- package/dist/core/session-checkout.js +144 -15
- package/dist/core/session-log-transfer.js +13 -7
- package/dist/core/session-policy-store.d.ts +40 -12
- package/dist/core/session-policy-store.js +51 -25
- package/dist/core/session-store.d.ts +23 -10
- package/dist/core/session-store.js +40 -13
- package/dist/core/session.d.ts +56 -9
- package/dist/core/session.js +8 -1
- package/dist/core/shell-read-silence.d.ts +3 -2
- package/dist/core/shell-read-silence.js +3 -1
- package/dist/core/shell-run-candidates.d.ts +23 -6
- package/dist/core/shell-run-candidates.js +41 -10
- package/dist/core/skill-grant.d.ts +11 -6
- package/dist/core/skill-grant.js +23 -15
- package/dist/core/spend-account.d.ts +232 -0
- package/dist/core/spend-account.js +286 -0
- package/dist/core/store-contracts/background-agent-store-contract.js +85 -0
- package/dist/core/store-contracts/checkpoint-store-contract.d.ts +6 -2
- package/dist/core/store-contracts/checkpoint-store-contract.js +60 -6
- package/dist/core/store-contracts/file-history-store-contract.js +4 -4
- package/dist/core/store-contracts/mailbox-store-contract.d.ts +2 -1
- package/dist/core/store-contracts/mailbox-store-contract.js +22 -11
- package/dist/core/store-contracts/peer-directory-contract.js +8 -0
- package/dist/core/store-contracts/permission-rule-sync-contract.js +3 -3
- package/dist/core/store-contracts/session-deletion-cascade-contract.js +23 -4
- package/dist/core/store-contracts/session-policy-store-contract.js +9 -0
- package/dist/core/store-contracts/session-repo-contract.js +38 -1
- package/dist/core/store-contracts/session-store-contract.d.ts +21 -2
- package/dist/core/store-contracts/session-store-contract.js +369 -5
- package/dist/core/store-contracts/tool-result-store-contract.js +8 -7
- package/dist/core/store-contracts/workflow-journal-store-contract.js +33 -0
- package/dist/core/task-event.d.ts +83 -57
- package/dist/core/task-intake.d.ts +5 -3
- package/dist/core/task-intake.js +6 -2
- package/dist/core/task-limits.d.ts +15 -8
- package/dist/core/task-notification.d.ts +17 -12
- package/dist/core/task-notification.js +20 -9
- package/dist/core/task-registry-agent.d.ts +35 -30
- package/dist/core/task-registry-agent.js +102 -32
- package/dist/core/task-registry-monitor.js +2 -1
- package/dist/core/task-registry-shared.d.ts +83 -16
- package/dist/core/task-registry-shared.js +26 -7
- package/dist/core/task-registry-workflow.d.ts +9 -1
- package/dist/core/task-registry-workflow.js +11 -3
- package/dist/core/task-registry.d.ts +26 -27
- package/dist/core/task-registry.js +42 -12
- package/dist/core/task-result.d.ts +182 -33
- package/dist/core/task-spec-members.d.ts +24 -3
- package/dist/core/task-spec-members.js +13 -4
- package/dist/core/task-spec.d.ts +74 -60
- package/dist/core/task-start-judge.js +10 -3
- package/dist/core/task-stream.d.ts +2 -1
- package/dist/core/terminal-cause.d.ts +30 -2
- package/dist/core/tool-catalog-entries.js +1 -1
- package/dist/core/tool-errors.js +1 -0
- package/dist/core/tool-face-reader.d.ts +3 -2
- package/dist/core/tool-gate-phase.d.ts +16 -0
- package/dist/core/tool-gate-phase.js +1 -0
- package/dist/core/tool-mount-plan.d.ts +7 -0
- package/dist/core/tool-mount-plan.js +25 -1
- package/dist/core/tool-mount-static.js +3 -2
- package/dist/core/tool-name-aliases.d.ts +81 -106
- package/dist/core/tool-name-aliases.js +60 -155
- package/dist/core/tool-name-readings.d.ts +2 -0
- package/dist/core/tool-name-readings.js +9 -1
- package/dist/core/tool-policy.d.ts +195 -78
- package/dist/core/tool-policy.js +147 -99
- package/dist/core/tool-registry.d.ts +2 -0
- package/dist/core/tool-registry.js +3 -0
- package/dist/core/tool-result-bytes.d.ts +27 -3
- package/dist/core/tool-result-bytes.js +53 -0
- package/dist/core/tool-result-store.d.ts +11 -4
- package/dist/core/tool-result-store.js +6 -2
- package/dist/core/tool-roster.d.ts +41 -16
- package/dist/core/tool-roster.js +55 -17
- package/dist/core/tool-spec-members.d.ts +12 -0
- package/dist/core/tool-spec-members.js +32 -1
- package/dist/core/tool-spec.d.ts +68 -28
- package/dist/core/tools.js +1 -0
- package/dist/core/trace.d.ts +54 -74
- package/dist/core/trace.js +2 -3
- package/dist/core/types.d.ts +7 -7
- package/dist/core/types.js +2 -2
- package/dist/core/unavailable-landing.d.ts +72 -0
- package/dist/core/unavailable-landing.js +18 -0
- package/dist/core/unc-spelling.d.ts +31 -0
- package/dist/core/unc-spelling.js +51 -0
- package/dist/core/untrusted-egress.d.ts +27 -5
- package/dist/core/untrusted-egress.js +30 -8
- package/dist/core/usage-window-store.d.ts +11 -1
- package/dist/core/usage-window-store.js +5 -0
- package/dist/core/user-attachment.d.ts +74 -48
- package/dist/core/user-attachment.js +137 -69
- package/dist/core/user-row-origin.d.ts +10 -0
- package/dist/core/user-row-origin.js +6 -0
- package/dist/core/wiring-manifest.d.ts +123 -26
- package/dist/core/wiring-manifest.js +75 -13
- package/dist/core/workflow-journal-store.d.ts +16 -7
- package/dist/core/workflow-journal-store.js +34 -6
- package/dist/core/workflow-run-store-contract.js +124 -0
- package/dist/core/workflow-run-store.d.ts +112 -17
- package/dist/core/workflow-run-store.js +75 -12
- package/dist/core/write-protect.d.ts +4 -0
- package/dist/core/write-protect.js +17 -15
- package/dist/engine/compaction/compaction.d.ts +63 -101
- package/dist/engine/compaction/compaction.js +165 -226
- package/dist/engine/compaction/utils.d.ts +2 -11
- package/dist/engine/compaction/utils.js +4 -13
- package/dist/engine/execution-env/kill-tree.js +44 -49
- package/dist/engine/execution-env/node-execution-env.d.ts +3 -1
- package/dist/engine/execution-env/node-execution-env.js +35 -17
- package/dist/engine/harness/agent-harness.d.ts +32 -5
- package/dist/engine/harness/agent-harness.js +34 -8
- package/dist/engine/harness/types.d.ts +100 -32
- package/dist/engine/harness/types.js +36 -4
- package/dist/engine/llm/rejected-images.js +1 -1
- package/dist/engine/llm/types.d.ts +22 -2
- package/dist/engine/llm/types.js +5 -2
- package/dist/engine/loop/agent-loop.d.ts +14 -1
- package/dist/engine/loop/agent-loop.js +74 -22
- package/dist/engine/loop/types.d.ts +19 -2
- package/dist/engine/session/import-validate.d.ts +9 -0
- package/dist/engine/session/import-validate.js +50 -9
- package/dist/engine/session/memory-repo.d.ts +5 -1
- package/dist/engine/session/memory-repo.js +8 -3
- package/dist/engine/session/parent-chain-guard.js +1 -1
- package/dist/engine/session/path-to-root.js +1 -1
- package/dist/engine/session/repo-utils.d.ts +19 -12
- package/dist/engine/session/repo-utils.js +12 -7
- package/dist/engine/session/session.d.ts +30 -10
- package/dist/engine/session/session.js +52 -20
- package/dist/engine/session/storage-base.js +2 -2
- package/dist/fixtures/index.d.ts +3 -1
- package/dist/fixtures/index.js +3 -0
- package/dist/host-env.d.ts +17 -0
- package/dist/host-env.js +1 -0
- package/dist/index.d.ts +91 -46
- package/dist/index.js +71 -35
- package/dist/internal/harness-types.d.ts +2 -2
- package/dist/internal/harness.d.ts +5 -3
- package/dist/internal/harness.js +4 -3
- package/dist/internal/llm.d.ts +1 -1
- package/dist/internal/llm.js +1 -1
- package/dist/orchestration/run-spec.js +7 -2
- package/dist/orchestration/run-workflow-tool.d.ts +40 -12
- package/dist/orchestration/run-workflow-tool.js +210 -105
- package/dist/orchestration/workflow-catalog.d.ts +254 -0
- package/dist/orchestration/workflow-catalog.js +702 -0
- package/dist/orchestration/workflow-governance.d.ts +1 -1
- package/dist/orchestration/workflow-meta.d.ts +11 -1
- package/dist/orchestration/workflow-meta.js +48 -0
- package/dist/orchestration/workflow-observe.d.ts +8 -10
- package/dist/orchestration/workflow-observe.js +6 -1
- package/dist/orchestration/workflow-park-adoption.d.ts +129 -33
- package/dist/orchestration/workflow-park-adoption.js +327 -64
- package/dist/orchestration/workflow-requirements.d.ts +51 -0
- package/dist/orchestration/workflow-requirements.js +54 -0
- package/dist/orchestration/workflow-script-runner.d.ts +18 -0
- package/dist/orchestration/workflow-script-store.d.ts +19 -64
- package/dist/orchestration/workflow-script-store.js +1 -24
- package/dist/orchestration/workflow-types.d.ts +183 -31
- package/dist/orchestration/workflow-types.js +23 -4
- package/dist/orchestration/workflow.d.ts +59 -44
- package/dist/orchestration/workflow.js +664 -143
- package/dist/prompt-assembly/catalog/core-behavior.js +12 -2
- package/dist/prompt-assembly/catalog/engine.d.ts +36 -0
- package/dist/prompt-assembly/catalog/engine.js +4 -0
- package/dist/prompt-assembly/catalog/events.d.ts +24 -0
- package/dist/prompt-assembly/catalog/events.js +2 -0
- package/dist/prompt-assembly/catalog/locales/zh-Hans/core-behavior.js +13 -0
- package/dist/prompt-assembly/catalog/locales/zh-Hans/engine.js +4 -0
- package/dist/prompt-assembly/catalog/locales/zh-Hans/events.js +2 -0
- package/dist/prompt-assembly/catalog/locales/zh-Hans/mechanism.js +3 -2
- package/dist/prompt-assembly/catalog/mechanism.d.ts +8 -0
- package/dist/prompt-assembly/catalog/mechanism.js +3 -2
- package/dist/prompt-assembly/catalog/schema.d.ts +6 -3
- package/dist/prompt-assembly/catalog/schema.js +2 -0
- package/dist/prompt-assembly/catalog/sections.js +8 -0
- package/dist/prompt-assembly/epoch.d.ts +26 -0
- package/dist/prompt-assembly/epoch.js +29 -0
- package/dist/prompt-assembly/event-registry.js +3 -0
- package/dist/prompt-assembly/select.js +1 -0
- package/dist/prompt-assembly/tool-catalog.d.ts +1 -1
- package/dist/prompt-assembly/turn-snapshot.d.ts +14 -27
- package/dist/prompt-assembly/turn-snapshot.js +6 -18
- package/dist/prompt-assembly/types.d.ts +3 -0
- package/dist/prompts/default.d.ts +11 -2
- package/dist/prompts/default.js +4 -0
- package/dist/shell/lex.d.ts +78 -11
- package/dist/shell/lex.js +392 -78
- package/dist/stores/file/adoption/adopt.d.ts +12 -0
- package/dist/stores/file/adoption/adopt.js +78 -31
- package/dist/stores/file/adoption/marker.d.ts +48 -26
- package/dist/stores/file/adoption/marker.js +24 -11
- package/dist/stores/file/background-agent-store.d.ts +5 -0
- package/dist/stores/file/background-agent-store.js +26 -5
- package/dist/stores/file/data-root-declaration.js +2 -1
- package/dist/stores/file/descriptor-seat.d.ts +100 -0
- package/dist/stores/file/descriptor-seat.js +150 -0
- package/dist/stores/file/file-history-store.js +2 -1
- package/dist/stores/file/fs-atomic.d.ts +126 -78
- package/dist/stores/file/fs-atomic.js +313 -253
- package/dist/stores/file/index.d.ts +10 -1
- package/dist/stores/file/index.js +28 -16
- package/dist/stores/file/ledger-damage.js +6 -10
- package/dist/stores/file/lock-reading.d.ts +158 -0
- package/dist/stores/file/lock-reading.js +252 -0
- package/dist/stores/file/mailbox-store.d.ts +8 -5
- package/dist/stores/file/mailbox-store.js +23 -14
- package/dist/stores/file/permission-rule-adopt.js +11 -11
- package/dist/stores/file/permission-rule-store.d.ts +14 -3
- package/dist/stores/file/permission-rule-store.js +33 -37
- package/dist/stores/file/process-anchor.d.ts +85 -0
- package/dist/stores/file/process-anchor.js +392 -0
- package/dist/stores/file/session-policy-store.d.ts +18 -2
- package/dist/stores/file/session-policy-store.js +71 -5
- package/dist/stores/file/session-store.d.ts +19 -1
- package/dist/stores/file/session-store.js +51 -19
- package/dist/stores/file/shared-ledger.d.ts +3 -3
- package/dist/stores/file/task-list-store.js +1 -1
- package/dist/stores/file/tool-result-store.js +2 -1
- package/dist/stores/file/usage-window-store.js +1 -1
- package/dist/stores/file/workflow-journal-store.d.ts +5 -2
- package/dist/stores/file/workflow-journal-store.js +12 -25
- package/dist/stores/file/workflow-run-store.d.ts +5 -0
- package/dist/stores/file/workflow-run-store.js +19 -12
- package/dist/tools/artifact/artifact-text.d.ts +29 -11
- package/dist/tools/artifact/artifact-text.js +13 -6
- package/dist/tools/artifact/artifact-tool.d.ts +35 -5
- package/dist/tools/artifact/artifact-tool.js +240 -45
- package/dist/tools/artifact/conformance.d.ts +27 -5
- package/dist/tools/artifact/conformance.js +420 -45
- package/dist/tools/artifact/local-stub.d.ts +2 -2
- package/dist/tools/artifact/local-stub.js +29 -26
- package/dist/tools/fs/bash-failure-output.d.ts +64 -0
- package/dist/tools/fs/bash-failure-output.js +40 -0
- package/dist/tools/fs/bash-program-position.d.ts +7 -3
- package/dist/tools/fs/bash-program-position.js +11 -12
- package/dist/tools/fs/bash-readonly-classifier.d.ts +22 -6
- package/dist/tools/fs/bash-readonly-classifier.js +19 -9
- package/dist/tools/fs/bound-open.d.ts +9 -8
- package/dist/tools/fs/bound-open.js +6 -4
- package/dist/tools/fs/containment-face.d.ts +12 -3
- package/dist/tools/fs/containment-face.js +16 -7
- package/dist/tools/fs/dead-cwd.d.ts +8 -0
- package/dist/tools/fs/dead-cwd.js +7 -7
- package/dist/tools/fs/file-read-check.d.ts +30 -3
- package/dist/tools/fs/file-read-check.js +28 -6
- package/dist/tools/fs/file-write-check.d.ts +14 -0
- package/dist/tools/fs/file-write-check.js +35 -0
- package/dist/tools/fs/find-actions.d.ts +186 -0
- package/dist/tools/fs/find-actions.js +538 -0
- package/dist/tools/fs/fs-bash.d.ts +6 -3
- package/dist/tools/fs/fs-bash.js +71 -64
- package/dist/tools/fs/fs-pdf.js +16 -5
- package/dist/tools/fs/fs-read.d.ts +3 -0
- package/dist/tools/fs/fs-read.js +7 -5
- package/dist/tools/fs/fs-search-tools.d.ts +2 -2
- package/dist/tools/fs/fs-search-tools.js +4 -4
- package/dist/tools/fs/fs-shared.d.ts +67 -3
- package/dist/tools/fs/fs-shared.js +70 -34
- package/dist/tools/fs/fs-write.d.ts +23 -3
- package/dist/tools/fs/fs-write.js +137 -33
- package/dist/tools/fs/index.d.ts +15 -2
- package/dist/tools/fs/index.js +13 -7
- package/dist/tools/fs/pdf.js +12 -4
- package/dist/tools/fs/program-read-model.d.ts +17 -1
- package/dist/tools/fs/program-read-model.js +7 -2
- package/dist/tools/fs/program-read-model.rows.js +5 -1
- package/dist/tools/fs/read-deny-home.d.ts +13 -2
- package/dist/tools/fs/read-deny-home.js +38 -27
- package/dist/tools/fs/read-deny.js +15 -6
- package/dist/tools/fs/read-floor.d.ts +16 -0
- package/dist/tools/fs/read-floor.js +10 -5
- package/dist/tools/fs/removal-targets.d.ts +55 -21
- package/dist/tools/fs/removal-targets.js +272 -63
- package/dist/tools/fs/repo-map.d.ts +1 -1
- package/dist/tools/fs/repo-map.js +2 -2
- package/dist/tools/fs/safety.d.ts +30 -5
- package/dist/tools/fs/safety.js +80 -9
- package/dist/tools/fs/shell-read-bindings.d.ts +60 -5
- package/dist/tools/fs/shell-read-bindings.js +189 -21
- package/dist/tools/fs/shell-read-check.d.ts +14 -2
- package/dist/tools/fs/shell-read-check.js +52 -8
- package/dist/tools/fs/shell-read-command-environment.d.ts +56 -0
- package/dist/tools/fs/shell-read-command-environment.js +75 -0
- package/dist/tools/fs/shell-read-establish.js +134 -58
- package/dist/tools/fs/shell-read-judge.d.ts +84 -21
- package/dist/tools/fs/shell-read-judge.js +76 -26
- package/dist/tools/fs/shell-read-lost-walk.d.ts +19 -0
- package/dist/tools/fs/shell-read-lost-walk.js +35 -0
- package/dist/tools/fs/shell-read-object-path.d.ts +5 -1
- package/dist/tools/fs/shell-read-object-path.js +17 -4
- package/dist/tools/fs/shell-read-plan.d.ts +12 -2
- package/dist/tools/fs/shell-read-plan.js +79 -31
- package/dist/tools/fs/shell-read-sourced.d.ts +4 -3
- package/dist/tools/fs/shell-read-sourced.js +39 -6
- package/dist/tools/fs/shell-read-start.d.ts +11 -2
- package/dist/tools/fs/shell-read-start.js +3 -3
- package/dist/tools/fs/shell-read-word.js +1 -0
- package/dist/tools/fs/shell-read-workdir.d.ts +23 -17
- package/dist/tools/fs/shell-read-workdir.js +54 -42
- package/dist/tools/fs/shell-read-write-targets.d.ts +13 -5
- package/dist/tools/fs/shell-read-write-targets.js +51 -9
- package/dist/tools/monitor.d.ts +2 -1
- package/dist/tools/monitor.js +2 -0
- package/dist/tools/scheduler-tools.d.ts +14 -21
- package/dist/tools/scheduler-tools.js +68 -104
- package/dist/tools/task-list.d.ts +11 -1
- package/dist/tools/task-list.js +187 -134
- package/dist/tools/todo.d.ts +1 -1
- package/dist/tools/worktree.js +15 -13
- package/package.json +7 -2
- package/test/export-surface.snapshot.json +638 -22
- package/wire-changes/core-stores-sql@7.68.6.json +39 -0
- package/wire-changes/core-stores-sql@7.68.7.json +39 -0
- package/wire-changes/core-stores-sql@7.69.1.json +39 -0
- package/wire-changes/core-stores-sql@7.70.0.json +414 -0
- package/wire-changes/core@7.68.6.json +125 -0
- package/wire-changes/core@7.68.7.json +140 -0
- package/wire-changes/core@7.69.1.json +2561 -0
- package/wire-changes/core@7.70.0.json +14689 -0
- package/wire-changes/mods-kernel@7.68.6.json +39 -0
- package/wire-changes/mods-kernel@7.68.7.json +39 -0
- package/wire-changes/mods-kernel@7.69.1.json +39 -0
- package/wire-changes/mods-kernel@7.70.0.json +75 -0
- package/wire-changes/primitives@7.68.6.json +39 -0
- package/wire-changes/primitives@7.68.7.json +39 -0
- package/wire-changes/primitives@7.69.1.json +39 -0
- package/wire-changes/primitives@7.70.0.json +807 -0
- package/wire-changes/wiki-gate@7.68.6.json +39 -0
- package/wire-changes/wiki-gate@7.68.7.json +39 -0
- package/wire-changes/wiki-gate@7.69.1.json +39 -0
- package/wire-changes/wiki-gate@7.70.0.json +40 -0
- package/dist/core/cache-break-detector.d.ts +0 -86
- package/dist/core/cache-break-detector.js +0 -140
- package/dist/core/loopback-host.d.ts +0 -18
- package/dist/core/loopback-host.js +0 -40
- package/dist/core/protocol-naming.d.ts +0 -95
- package/dist/core/protocol-naming.js +0 -70
- package/dist/core/protocol-table.d.ts +0 -88
- package/dist/core/protocol-table.js +0 -47
- package/dist/core/runner/prompt-hash-salt.d.ts +0 -1
- package/dist/core/runner/prompt-hash-salt.js +0 -2
package/dist/index.js
CHANGED
|
@@ -16,7 +16,7 @@ export { webFetchToolSpec, htmlToText, createWebSearchTool, createSearxngSearchB
|
|
|
16
16
|
export { compileHostFloor, isLoopbackHost } from "./core/host-floor.js";
|
|
17
17
|
export { hostOfUrl, HOST_UNREADABLE_SENTENCE } from "./core/host-target.js";
|
|
18
18
|
export { createTodoWriteTool } from "./tools/todo.js";
|
|
19
|
-
export { ARTIFACT_ACTIONS, ARTIFACT_PLANES, ARTIFACT_COMMIT_CERTAINTIES, ARTIFACT_COMMIT_THROW_OUTCOME, ARTIFACT_PUBLISH_CONTEXTS, ARTIFACT_LIST_SCOPES, ARTIFACT_PLANE_CONTENT_ORIGIN, ARTIFACT_ACTION_HOST_METHOD, ARTIFACT_ACTION_CONCURRENCY_SAFE, ARTIFACT_HOST_FAILURE_CODES, ARTIFACT_FAILURE_RESULT_CODE, ARTIFACT_HOST_ERROR_CODE, readArtifactHostCapabilities, } from "./core/artifact-host.js";
|
|
19
|
+
export { ARTIFACT_ACTIONS, ARTIFACT_PLANES, ARTIFACT_COMMIT_CERTAINTIES, ARTIFACT_COMMIT_THROW_OUTCOME, ARTIFACT_PUBLISH_CONTEXTS, ARTIFACT_LIST_SCOPES, ARTIFACT_PLANE_CONTENT_ORIGIN, ARTIFACT_ACTION_HOST_METHOD, ARTIFACT_ACTION_CONCURRENCY_SAFE, ARTIFACT_HOST_FAILURE_CODES, ARTIFACT_FAILURE_RESULT_CODE, ARTIFACT_HOST_ERROR_CODE, ARTIFACT_OWNERSHIP_WORDS, readArtifactHostCapabilities, } from "./core/artifact-host.js";
|
|
20
20
|
export { createArtifactTool, artifactAttemptId, normalizePublishedPath, mediaTypeOf } from "./tools/artifact/artifact-tool.js";
|
|
21
21
|
export { localArtifactStub, LocalArtifactStub, EVAL_STUB_URL_PREFIX, LOCAL_STUB_MAX_FILE_BYTES, LOCAL_STUB_MAX_TOTAL_BYTES } from "./tools/artifact/local-stub.js";
|
|
22
22
|
export { ARTIFACT_CONFORMANCE_VECTORS, artifactConformanceVectors, runArtifactConformance, } from "./tools/artifact/conformance.js";
|
|
@@ -63,10 +63,13 @@ export { judgeSessionMetaKey, MCP_SESSION_META_KEY_MAX_CHARS } from "./core/mcp-
|
|
|
63
63
|
export { McpConnectionPool } from "./core/mcp-connection-pool.js";
|
|
64
64
|
export { probeMcpServers } from "./core/mcp-probe.js";
|
|
65
65
|
export { judgeMcpNames, describeMcpNameConflict } from "./core/mcp-name-judge.js";
|
|
66
|
-
export { MCP_FAILURE_KINDS, MCP_DELIVERY_VERDICTS, MCP_LIVENESS_STATES, MCP_AUTHORIZATION_REASONS, classifyMcpFailure } from "./core/mcp-failure.js";
|
|
66
|
+
export { MCP_FAILURE_KINDS, MCP_DELIVERY_VERDICTS, MCP_LIVENESS_STATES, MCP_AUTHORIZATION_REASONS, classifyMcpFailure, owesAuthorization } from "./core/mcp-failure.js";
|
|
67
67
|
export { MCP_INJECTION_DROP_REASONS, MCP_INJECTION_DROP_TEXT, mcpInjectionDroppedNotice } from "./core/mcp-injection-drop.js";
|
|
68
|
+
export { ENTRIES_NOT_APPLIED_KINDS } from "./core/entries-not-applied.js";
|
|
68
69
|
export { askUnresolvableNotice } from "./core/ask-unresolvable-notice.js";
|
|
69
70
|
export { ASK_UNRESOLVABLE_CAUSES } from "./core/ask-unresolvable-notice.js";
|
|
71
|
+
export { WORKFLOW_PARK_GAPS, isWorkflowParkGap } from "./core/ask-unresolvable-notice.js";
|
|
72
|
+
export { TOOL_GATE_PHASES } from "./core/tool-gate-phase.js";
|
|
70
73
|
export { APPROVAL_REMEDY_KINDS } from "./core/ask-origin.js";
|
|
71
74
|
export { USER_INPUT_UNDRAINED_CAUSES, USER_INPUT_UNDRAINED_FAMILIES } from "./core/engine-notice.js";
|
|
72
75
|
export { setDefaultEngineNoticeSeat } from "./core/engine-notice.js";
|
|
@@ -78,34 +81,40 @@ export { TERMINAL_CAUSE_IS_REPLAYABLE, PROMPT_BLOCK_CAUSES, isPromptBlockCause,
|
|
|
78
81
|
export { RESERVED_AGENT_NAMES } from "./agents/subagent.js";
|
|
79
82
|
export { WORKFLOW_SIZE_GUIDELINE_AGENT_CAPS } from "./orchestration/workflow-size-guideline.js";
|
|
80
83
|
export { ENGINE_AUTHORITY_ENVELOPE_TAGS } from "./core/untrusted-text.js";
|
|
81
|
-
export { materializeA2aTools, A2aRpcError } from "./core/a2a.js";
|
|
82
|
-
export { PROTOCOL_TABLE, MCP_NAMESPACE, A2A_NAMESPACE, protocolOf } from "
|
|
84
|
+
export { materializeA2aTools, A2aRpcError, A2A_CALL_REFUSAL_CODES } from "./core/a2a.js";
|
|
85
|
+
export { PROTOCOL_TABLE, MCP_NAMESPACE, A2A_NAMESPACE, protocolOf } from "@sema-agent/primitives";
|
|
83
86
|
export { InMemorySessionPolicyStore, SessionPolicyError, loosenReasons, normalizeRules, judgeSessionRulesWrite, readSessionRulesShape, SESSION_RULES_GRAMMAR, compileSessionRuleBucket, unreadableDenyEntries, readRuleGrammarStamp, rewriteSessionRules, } from "./core/session-policy-store.js";
|
|
84
87
|
export { SAFETY_MERGE_CONFORMANCE_CORPUS } from "./core/safety-merge-corpus.js";
|
|
85
88
|
export { SAFETY_AXIS_VOCABULARY } from "./core/safety-axis-vocab.js";
|
|
86
89
|
export { createSessionRulePolicy } from "./core/runner/session-rule-policy.js";
|
|
87
90
|
export { LOCKED_KEY_REGISTRY, resolveLockedKeys } from "./core/locked-config.js";
|
|
88
|
-
export { judgeMcpEntryDeclarations } from "./core/locked-config.js";
|
|
91
|
+
export { judgeMcpEntryDeclarations, judgeA2aEntryDeclarations } from "./core/locked-config.js";
|
|
92
|
+
export { judgeAgentDefinitionDeclarations } from "./agents/agent-definition.js";
|
|
89
93
|
export { BUILTIN_COMPLIANCE_DENIES, COMPLIANCE_CAPABILITIES, WEB_FETCH_TOOL_NAME, complianceCallDenial, resolveComplianceDenies, } from "./core/compliance.js";
|
|
90
94
|
export { admitMemoryScopes, foldAdmissionFreeze, } from "./core/memory-admission.js";
|
|
91
95
|
export { assertRetentionCapability, readRetentionDeclaration, RETENTION_CASCADE, RETENTION_SESSION_TREE_STEPS, } from "./core/retention.js";
|
|
92
96
|
export { GOVERNANCE_CODES, governanceRetryClass, TOOL_DECLARATION_CODES } from "./core/governance-codes.js";
|
|
93
97
|
export { RESUME_AT_REFUSAL_CLASSES, RESUME_AT_REFUSAL_CLASS, isResumeAtAnchorMissing } from "./core/config-refusal-codes.js";
|
|
94
98
|
export { RESUME_AT_OUTSIDE_WINDOW_REASONS, RESUME_AT_REMEDY_KINDS } from "./core/resume-at-refusal.js";
|
|
99
|
+
export { CONFIG_REFUSAL_INPUTS, isConfigRefusalInput, configRefusalInputOf } from "./core/config-refusal-input.js";
|
|
95
100
|
export { CONFIG_REFUSAL_CODES } from "./core/config-refusal-codes.js";
|
|
96
101
|
export { NOTICE_AUDIENCE, noticeAudienceOf, ENGINE_NOTICE_CODES, NOTICE_MINTER, NOTICE_ATTENTION, noticeAttentionOf } from "./core/governance-codes.js";
|
|
102
|
+
export { NOTICE_CODE_LINEAGE } from "./core/governance-codes.js";
|
|
97
103
|
export { TtlSessionStore } from "./core/session-store.js";
|
|
98
104
|
export { reconcileInterruptedSession, findOrphanToolCalls, } from "./core/session-reconcile.js";
|
|
99
|
-
export { StoredSession, InMemorySessionRepo, InMemorySessionStorage, BaseSessionStorage, leafIdAfterEntry, validateEntriesForImport, StreamingImportValidator, boundedTail, SessionError, isSessionConflict, isRowUnreadable, hasSessionFork, uuidv7, readSessionListQuery, SESSION_LIST_LIMITS, } from "./core/session.js";
|
|
105
|
+
export { StoredSession, InMemorySessionRepo, InMemorySessionStorage, BaseSessionStorage, leafIdAfterEntry, validateEntriesForImport, StreamingImportValidator, boundedTail, SessionError, isSessionConflict, isRowUnreadable, CORRUPT_SESSION_FORMS, CORRUPT_SESSION_WAYS, CORRUPT_SESSION_WAYS_OUT, CORRUPT_SESSION_DELETE_DOORS, corruptSessionWayOutSentence, isCorruptSessionForm, corruptSessionFormOf, hasSessionFork, uuidv7, readSessionListQuery, SESSION_LIST_LIMITS, } from "./core/session.js";
|
|
100
106
|
export { warmResume } from "./core/warm-resume.js";
|
|
101
107
|
export { StubExecutionEnv } from "./core/stub-env.js";
|
|
102
108
|
export { NodeExecutionEnv, FileError, ExecutionError } from "./internal/harness.js";
|
|
103
109
|
export { ok, err } from "./internal/harness.js";
|
|
104
110
|
export { killProcessTree, signalProcessTree } from "./engine/execution-env/kill-tree.js";
|
|
111
|
+
export { processGroupReading } from "./core/process-table.js";
|
|
105
112
|
export { getShellConfig, isWslBashLauncher } from "./engine/execution-env/node-execution-env.js";
|
|
106
113
|
export { walkSymlinkChain, SYMLINK_CHAIN_MAX_HOPS } from "./engine/execution-env/symlink-chain.js";
|
|
107
114
|
export { isSecretEnvKey, scrubSecretEnv } from "./core/secret-env.js";
|
|
108
115
|
export { declareWithheldEnv, hostChildEnv, hostChildEnvProblem, inheritedHostEnv, inheritEnvPolicyProblem } from "./core/secret-env.js";
|
|
116
|
+
export { judgeWithheldEnv, WITHHELD_ENV_ANSWERS } from "./core/secret-env.js";
|
|
117
|
+
export { declarePeerHeldEnv, PEER_HELD_ENV_NOT_TAKEN_REASONS, } from "./core/secret-env.js";
|
|
109
118
|
export { isBlankCredential } from "./core/secret-env.js";
|
|
110
119
|
export { credentialHeaderValues, isCredentialHeaderName, isSchemedCredentialHeader } from "./core/secret-env.js";
|
|
111
120
|
export { ENGINE_CAPABILITIES } from "./core/engine-capabilities.js";
|
|
@@ -113,7 +122,7 @@ export { fastModeReadingOf, FAST_MODE_STATES, FAST_MODE_UNAVAILABLE_REASONS, FAS
|
|
|
113
122
|
export { MAX_EXEC_OUTPUT_BYTES, RollingTailBuffer, markTruncated } from "./core/exec-output-tail.js";
|
|
114
123
|
export { physicalPathOf, physicalPathOfExisting } from "./core/physical-path.js";
|
|
115
124
|
export { confineShellStart } from "./core/shell-confinement.js";
|
|
116
|
-
export { RemoteExecutionError, hasDestroy, isRemoteExecutionEnv, isSuspendable, isIsolated, canonicalPathIsAuthoritative, pathsAreHostLocal, keepsReadFloor, providesCommandSandbox, missingRestoreSurface, isRetryableRemoteErrorCode, RETRYABLE_REMOTE_ERROR_CODES, EXECUTION_ENV_PURPOSES, ENV_PURPOSE_UNSUPPORTED, } from "./core/remote-env.js";
|
|
125
|
+
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";
|
|
117
126
|
export { withRetry } from "./core/with-retry.js";
|
|
118
127
|
export { addWorktree, judgeManagedTree, pruneWorktrees, WORKTREE_PARENT, } from "./core/git-worktree-env.js";
|
|
119
128
|
export { listOrphanSessionTrees, probeWorktreeCapability, releaseOrphanSessionTree, releaseSessionCheckout, WORKTREE_INCAPABLE_REASONS, } from "./core/session-checkout.js";
|
|
@@ -125,14 +134,17 @@ export { deriveInvariants, checkInvariants } from "./core/property-harness.js";
|
|
|
125
134
|
export { bashReversibilityProbe, BASH_READONLY_DEFAULT_ALLOW, parseLeadingCommandName, classifyCompoundReadonly, MAX_EDIT_BYTES } from "./tools/fs/index.js";
|
|
126
135
|
export { classifyCompoundReadonlyDetailed, formatOutOfRootReadApprovalOption, } from "./tools/fs/index.js";
|
|
127
136
|
export { resolveBashTimeoutCaps } from "./tools/fs/index.js";
|
|
137
|
+
export { shouldAutoBackgroundCommand } from "./tools/fs/index.js";
|
|
138
|
+
export { judgeBashTimeoutCaps } from "./tools/fs/index.js";
|
|
128
139
|
export { READ_FACE_DEFAULT_DENY_ENTRIES, READ_FACE_BUILTIN_DENY_TABLE, READ_DENY_BUILTIN_TIERS, READ_DENY_DEFAULT_TIERS, resolveReadDenyBuiltins, compileReadDeny, READ_DENY_HOME_WORD, readDenyPatternRun, readDenyRowAnchor, readDenyHomesOf, compileWriteDeny, DENY_FACES, } from "./tools/fs/index.js";
|
|
129
|
-
export {
|
|
140
|
+
export { placeReadDenyAtHome } from "./tools/fs/read-deny-home.js";
|
|
141
|
+
export { deploymentFaceClampNotice, FACE_CLAMP_CAUSES, resolveContainmentFace, } from "./tools/fs/index.js";
|
|
130
142
|
export { WRITE_PROTECTED_DEFAULT_TABLE, resolveWriteProtectedTable, compileWriteProtection, WRITE_PROTECTION_TARGET_VIEWS, } from "./core/write-protect.js";
|
|
131
143
|
export { InMemoryToolResultStore, OFFLOAD_TOOL_NAME, DEFAULT_TOOL_RESULT_THRESHOLD_CHARS, assertSafeToolResultRef, buildToolResultRef, toolResultContentSegment, MAX_MINTED_TOOL_RESULT_REF_CHARS, assertToolResultProvenanceMatch, normalizeToolResultProvenance, toolResultProvenanceOf, ToolResultRefConflictError, TOOL_RESULT_REF_CONFLICT_CODE, ToolResultBytesOverLimitError, TOOL_RESULT_BYTES_OVER_LIMIT_CODE, rekeyToolResultOwner, offloadedDetailOf, } from "./core/tool-result-store.js";
|
|
132
144
|
export { ownerIdentityOf, identityReadVerdict, encodePrincipalColumn, decodePrincipalColumn } from "./core/owner-identity.js";
|
|
133
|
-
export { InMemoryCheckpointStore, CheckpointError, mintCheckpointId, mintCheckpointToken, checkpointVersionOf, CURRENT_CHECKPOINT_VERSION, MAX_SUPPORTED_CHECKPOINT_VERSION, ORG_ADMISSION_CHECKPOINT_VERSION, F012_CHECKPOINT_VERSION, REAL_APPROVAL_CHECKPOINT_VERSION, RESOURCE_CHECKPOINT_VERSION, TOKEN_CHECKPOINT_VERSION, debitLedger, remainingBudgetMicroUsd, remainingTokens, winnerFromOutcome, validatePendingSteer, readPendingSteerQueue, appendPendingSteer, judgeParkedSteerRepeat, MAX_PENDING_STEER_CHARS, MAX_PENDING_STEER_ENTRIES, PENDING_STEER_QUEUE_BYTE_BUDGET_BYTES, PENDING_STEER_FROZEN_FIELDS, ACTOR_ASSERTION_FROZEN_FIELDS, MAX_ACTOR_FIELD_CHARS, MAX_STEER_INPUT_ID_CHARS, riskSeverity, buildRiskDescriptor, summarizeCheckpoint, isUnreadableCheckpointSummary, realApprovalOrgFact, resolveCheckpointStore, checkpointStoreIncomplete, } from "./core/checkpoint-store.js";
|
|
145
|
+
export { InMemoryCheckpointStore, CheckpointError, CHECKPOINT_ERROR_CODES, isCheckpointErrorCode, SPAWN_RESUME_REFUSAL_CODES, mintCheckpointId, mintCheckpointToken, checkpointVersionOf, CURRENT_CHECKPOINT_VERSION, MAX_SUPPORTED_CHECKPOINT_VERSION, ORG_ADMISSION_CHECKPOINT_VERSION, F012_CHECKPOINT_VERSION, REAL_APPROVAL_CHECKPOINT_VERSION, RESOURCE_CHECKPOINT_VERSION, TOKEN_CHECKPOINT_VERSION, debitLedger, remainingBudgetMicroUsd, remainingTokens, winnerFromOutcome, validatePendingSteer, readPendingSteerQueue, appendPendingSteer, judgeParkedSteerRepeat, MAX_PENDING_STEER_CHARS, MAX_PENDING_STEER_ENTRIES, PENDING_STEER_QUEUE_BYTE_BUDGET_BYTES, PENDING_STEER_FROZEN_FIELDS, ACTOR_ASSERTION_FROZEN_FIELDS, MAX_ACTOR_FIELD_CHARS, MAX_STEER_INPUT_ID_CHARS, riskSeverity, buildRiskDescriptor, summarizeCheckpoint, isUnreadableCheckpointSummary, RESOURCE_LIMIT_REASONS, PLATFORM_LIMIT_REASONS, realApprovalOrgFact, resolveCheckpointStore, checkpointStoreIncomplete, } from "./core/checkpoint-store.js";
|
|
134
146
|
export { MAX_CHECKPOINT_ID_CHARS, trustedCheckpointId, readGateIdentity, CHECKPOINT_ID_MISSING, isCheckpointIdMissing, } from "./core/checkpoint-identity.js";
|
|
135
|
-
export { REOPEN_REASONS, RESUME_STARTUP_CAUSES, resumeStartupCauseOf, reopenReasonOf } from "./core/resume-startup-cause.js";
|
|
147
|
+
export { REOPEN_REASONS, RESUME_STARTUP_CAUSES, resumeStartupCauseOf, reopenReasonOf, resumeAgainMayCure } from "./core/resume-startup-cause.js";
|
|
136
148
|
export { EXECUTION_OUTCOME_RECORD_WORDS, EXECUTION_RECORD_LEAVES_ROW_UNRECORDED, ExecutionOutcomeConflictError, checkpointExecutionRecorded, executionRecordDisposition, sameExecutionRecord, executionVerdict, } from "./core/checkpoint-execution-record.js";
|
|
137
149
|
export { PAUSE_REGISTRY, isGateKind, resumeGateMatches, pauseOf, checkpointFrom, facetOf } from "./core/pause-registry.js";
|
|
138
150
|
export { REQUIREMENT_WORDS, checkpointRequirementsFor } from "./core/checkpoint-requirements.js";
|
|
@@ -142,26 +154,32 @@ export { FileUsageWindowStore } from "./stores/file/usage-window-store.js";
|
|
|
142
154
|
export { ENV_LIFETIME_SUSPEND_MARGIN_MS, USAGE_WINDOW_REAP_MARGIN_MS } from "./core/runner/prepare-task.js";
|
|
143
155
|
export { InMemoryFileHistoryStore, boundaryPublishVerdict } from "./core/file-history-store.js";
|
|
144
156
|
export { FILE_HISTORY_ERROR_CODES, FileHistoryStoreError } from "./core/file-history-store.js";
|
|
157
|
+
export { caughtFault } from "./core/file-history-store.js";
|
|
145
158
|
export { captureFileBackupViaEnv, applyFileRestoreViaEnv } from "./core/file-history-store.js";
|
|
146
159
|
export { modeProvenDifferent as fileHistoryModeProvenDifferent } from "./core/file-history-store.js";
|
|
147
160
|
export { countRestoreLineDiff, FILE_HISTORY_DIFF_LINE_BUDGET } from "./core/file-history-store.js";
|
|
161
|
+
export { bytesAreBinary } from "./core/file-history-store.js";
|
|
148
162
|
export { worldStillMatchesMint, annulProofFailure } from "./core/file-history-store.js";
|
|
149
163
|
export { FILE_HISTORY_REFUSAL_CLASSES } from "./core/file-history-store.js";
|
|
164
|
+
export { CHANGES_CONTENT_MAX_BYTES, CHANGES_CONTENT_BUDGET_BYTES, CHANGES_CONTENT_OF_MAX, CHANGES_CHECKPOINTS_PAGE_MAX, CHANGES_ROWS_MAX, CHANGES_REASONS, CHANGES_UNAVAILABLE_REASONS } from "./core/session-changes.js";
|
|
150
165
|
export { COMPACTION_FAILURE_CAUSES } from "./core/auto-compaction.js";
|
|
151
166
|
export { trackKeyOf as fileHistoryTrackKeyOf, resolveTrackKey as fileHistoryResolveTrackKey } from "./core/file-history-store.js";
|
|
152
167
|
export { describeTrackKey as fileHistoryDescribeTrackKey, fileHistoryExportDigest, validateFileHistoryExport } from "./core/file-history-store.js";
|
|
153
168
|
export { resolveTrackedFile as fileHistoryResolveTrackedFile, placeProvenDifferent as fileHistoryPlaceProvenDifferent, trackKeyForEdit as fileHistoryTrackKeyForEdit, trackKeyForAnnul as fileHistoryTrackKeyForAnnul, fileHistoryEntryTravels, fileHistoryParentIdentTravels } from "./core/file-history-store.js";
|
|
154
169
|
export { FILE_HISTORY_LEFT_AS_IS_CLASSES, fileHistoryEntryFrozen, listFrozenFileHistoryEntries } from "./core/file-history-store.js";
|
|
170
|
+
export { fileHistoryTargetOf } from "./core/file-history-store.js";
|
|
171
|
+
export { FILE_HISTORY_UNREFERENCED_BLOB_GRACE_MS } from "./core/file-history-store.js";
|
|
155
172
|
export { fileHistoryBlobExchangeOf } from "./core/file-history-store.js";
|
|
156
173
|
export { DEFAULT_FILE_HISTORY_BOUNDARY_KEEP, resolveFileHistoryRetention, fileHistoryBoundariesToKeep } from "./core/file-history-retention.js";
|
|
157
|
-
export { FileStorageBackend, FileSessionRepo, FileCheckpointStore, CHECKPOINT_LEDGER_EVENT_KINDS, readCheckpointLedger, FileToolResultStore, FileSessionPolicyStore, FileFileHistoryStore, FileWorkflowJournalStore, MAX_JOURNAL_RESULT_BYTES, oversizeJournalResult, resolveDataRoot, sanitizeScope, sanitizePathComponent, atomicWriteFile, writeThenLink, ensureDir, readJsonlRecords, AppendLog, FileStoreLockError, FileLedgerDamagedError, inspectFileLedgers, setAsideLedgerDamage, processFingerprint, isProcessLive, declareDataRoot, } from "./stores/file/index.js";
|
|
158
|
-
export { CacheBreakDetector } from "./core/cache-break-detector.js";
|
|
174
|
+
export { FileStorageBackend, FileSessionRepo, FileCheckpointStore, CHECKPOINT_LEDGER_EVENT_KINDS, readCheckpointLedger, FileToolResultStore, FileSessionPolicyStore, FileFileHistoryStore, FileWorkflowJournalStore, MAX_JOURNAL_RESULT_BYTES, oversizeJournalResult, resolveDataRoot, dataRootLocation, sanitizeScope, sanitizePathComponent, atomicWriteFile, writeThenLink, ensureDir, readJsonlRecords, AppendLog, setAppendLogDescriptorBudget, appendLogDescriptorStats, FileStoreLockError, readDataRootLocks, FileLedgerDamagedError, inspectFileLedgers, setAsideLedgerDamage, processFingerprint, isProcessLive, declareDataRoot, } from "./stores/file/index.js";
|
|
159
175
|
export { maybeCompact } from "./core/auto-compaction.js";
|
|
160
176
|
export { brainToRuntime } from "./core/runtime.js";
|
|
161
177
|
export { createSensitivePathPolicy, RECOMMENDED_SENSITIVE_PATTERNS } from "./core/sensitive-path-policy.js";
|
|
162
178
|
export { createFsWriteGatePolicy, WRITE_EXEMPT_DIR_COVERS_ROOT_CODE } from "./core/fs-write-gate-policy.js";
|
|
163
|
-
export { RETIRED_TOOL_NAMES } from "
|
|
164
|
-
export { judgeRuleToolName,
|
|
179
|
+
export { RETIRED_TOOL_NAMES } from "@sema-agent/primitives";
|
|
180
|
+
export { judgeRuleToolName, RULE_TOOL_NAME_VERDICTS } from "@sema-agent/primitives";
|
|
181
|
+
export { judgePolicyEntryName } from "./core/tool-name-aliases.js";
|
|
182
|
+
export { retiredNameView } from "./core/tool-name-aliases.js";
|
|
165
183
|
export { retiredToolNameAccount } from "./core/retired-host-table-account.js";
|
|
166
184
|
export { DEFAULT_SUBAGENT_TOOL_NAME } from "./agents/subagent.js";
|
|
167
185
|
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";
|
|
@@ -175,8 +193,10 @@ export { pathFamilyOf, isAbsoluteForFamily, pathIdentityOf, win32NamespaceScreen
|
|
|
175
193
|
export { judgeShellRead, } from "./tools/fs/shell-read-check.js";
|
|
176
194
|
export { SHELL_READ_FINDINGS, SHELL_READ_SEATS, SHELL_READ_DECISION, SHELL_READ_FINDING_RANK, } from "./tools/fs/shell-read-judge.js";
|
|
177
195
|
export {} from "./tools/fs/shell-read-plan.js";
|
|
196
|
+
export { WORKING_DIRECTORY_NAMES } from "./tools/fs/shell-read-bindings.js";
|
|
178
197
|
export { TOOL_MOUNT_FACTS } from "./core/tool-mount-plan.js";
|
|
179
198
|
export { EXECUTION_ENV_NEEDS, EXECUTION_ENV_ASKS } from "./core/tool-mount-plan.js";
|
|
199
|
+
export { INTERACTIVE_TOOL_NAMES } from "./core/tool-mount-plan.js";
|
|
180
200
|
export {} from "./core/tool-mount-static.js";
|
|
181
201
|
export { applyMcpToolFaces, toolFaceProblem, APPROVAL_CARD_REQUIRED_KEYS } from "./core/runner/tool-face-overlay.js";
|
|
182
202
|
export { readToolFaces } from "./core/tool-face-reader.js";
|
|
@@ -186,10 +206,11 @@ export { approvalObjectOf, judgeApprovalObject, APPROVAL_STATION_MEMBERS, APPROV
|
|
|
186
206
|
export {} from "./core/fs-write-gate-policy.js";
|
|
187
207
|
export { catalogRuleFaceView } from "./core/permission-rules.js";
|
|
188
208
|
export { DURABLE_HISTORY_NAMES } from "./engine/compaction/utils.js";
|
|
189
|
-
export { describeStaticWiring, deriveWiringManifest, deriveAskEffective, resolveDeclaredDurability, resolveSubagentTranscriptTier, resolveAskSeamForm, resolveQuestionSeam, countElicitOptIns, AUTO_MODE_ARM_REASONS, LSP_LANES, HANDS_UNMOUNTED_REASONS, EXECUTION_ENV_SEATS, DEPLOYMENT_ASK_SEAT_FORMS, APPROVAL_REACH, isApprovalReach, } from "./core/wiring-manifest.js";
|
|
209
|
+
export { describeStaticWiring, deriveWiringManifest, deriveAskEffective, resolveDeclaredDurability, resolveSubagentTranscriptTier, resolveAskSeamForm, resolveQuestionSeam, countElicitOptIns, AUTO_MODE_ARM_REASONS, LSP_LANES, HANDS_UNMOUNTED_REASONS, EXECUTION_ENV_SEATS, DEPLOYMENT_ASK_SEAT_FORMS, ASK_SEAM_FORMS, APPROVAL_REACH, isApprovalReach, ASK_EFFECTIVE_VALUES, PARK_LANE_REASONS, SUSPEND_LANE_REASONS, } from "./core/wiring-manifest.js";
|
|
190
210
|
export { RUN_ORIGINS, isRunOrigin } from "./core/run-origin.js";
|
|
191
211
|
export { INPUT_AUTHORS, isInputAuthor } from "./core/input-author.js";
|
|
192
212
|
export { USER_ROW_ORIGINS, isUserRowOrigin, userRowSourceOf } from "./core/user-row-origin.js";
|
|
213
|
+
export { legFirstInputOf } from "./core/user-row-origin.js";
|
|
193
214
|
export { probeParkRoundTrip, durableParkGapOf, durableParkGapFor, PARK_SELFCHECK_SCOPE_PREFIX, } from "./core/park-selfcheck.js";
|
|
194
215
|
export {} from "./core/checkpoint-store.js";
|
|
195
216
|
export {} from "./core/checkpoint-store.js";
|
|
@@ -205,24 +226,25 @@ export { createWorktreeTools } from "./tools/worktree.js";
|
|
|
205
226
|
export { createImageDownsampler, sharpImageDownsampler } from "./core/image-downsample.js";
|
|
206
227
|
export { IMAGE_ADMISSION } from "./core/image-admission.js";
|
|
207
228
|
export { hasBackgroundShell, BackgroundShellError } from "./core/background-shell.js";
|
|
208
|
-
export { hasScheduler,
|
|
229
|
+
export { hasScheduler, SchedulerError } from "./core/scheduler.js";
|
|
230
|
+
export { isValidCronExpr, nextCronFireTime } from "./core/cron.js";
|
|
209
231
|
export { createSchedulerTools, sessionLaneScopeOf, schedulerLanesOf, listScheduled, cancelScheduled, SCHEDULE_WAKEUP_TOOL_NAME, AUTONOMOUS_LOOP_SENTINEL, AUTONOMOUS_LOOP_DYNAMIC_SENTINEL, } from "./tools/scheduler-tools.js";
|
|
210
232
|
export { resolveAutonomousLoopPrompt, AUTONOMOUS_LOOP_PREAMBLE, AUTONOMOUS_LOOP_PREAMBLE_PERSISTENT, } from "./tools/loop-tick.js";
|
|
211
233
|
export { tightenTaskSpec, TaskSpecTightenError } from "./core/tighten-task-spec.js";
|
|
212
|
-
export { createAllowDenyPolicy, createApprovalPolicy, COARSE_SHELL_TOOLS, createCoarseCommandNamePolicy, createTranscriptIntegrityPolicy, createUnverifiableDeletePolicy, combinePolicies, abortedSeatDeny, noApproverSeatDeny, wrapToolPolicy, decisionText, resolveAsk, toolPolicyNameSets, toolPolicyPathRules, checkToolPolicyProjection, constraintChainEntryOf, constraintChainDigest, screenApproverAttribution, APPROVER_ATTRIBUTION_MAX_CHARS, BIDI_CONTROL_CHARS, carriesBidiControls, asPolicyApprover, isPolicyApprover, declareClassAnswers, ASK_EVIDENCE_ABSENCE_VALUES, } from "./core/tool-policy.js";
|
|
234
|
+
export { createAllowDenyPolicy, createApprovalPolicy, COARSE_SHELL_TOOLS, createCoarseCommandNamePolicy, createTranscriptIntegrityPolicy, createUnverifiableDeletePolicy, combinePolicies, abortedSeatDeny, noApproverSeatDeny, wrapToolPolicy, decisionText, resolveAsk, toolPolicyNameSets, toolPolicyPathRules, CONSTRAINT_LAYER_KINDS, checkToolPolicyProjection, constraintChainEntryOf, constraintChainDigest, screenApproverAttribution, APPROVER_ATTRIBUTION_MAX_CHARS, BIDI_CONTROL_CHARS, carriesBidiControls, asPolicyApprover, isPolicyApprover, declareClassAnswers, ASK_EVIDENCE_ABSENCE_VALUES, } from "./core/tool-policy.js";
|
|
213
235
|
export { writtenFeedback, unfitFeedbackOf } from "./core/approval-words.js";
|
|
214
236
|
export { EXISTING_TARGET_KINDS, EXISTING_TARGET_WITHHELD_REASONS, EXISTING_TARGET_READ_CAP, } from "./core/existing-target.js";
|
|
215
|
-
export {} from "./core/read-root-grant-screen.js";
|
|
237
|
+
export { READ_ROOT_GRANT_LASTS } from "./core/read-root-grant-screen.js";
|
|
216
238
|
export { ASK_ORIGINS, isAskOrigin, ORIGIN_IMPLIES_REAL_APPROVAL, PERSISTED_RULE_MANDATES, isPersistedRuleMandate, screenAskClassMembers } from "./core/ask-origin.js";
|
|
217
239
|
export { HOOK_QUESTION_CAUSES } from "./core/ask-origin.js";
|
|
218
240
|
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";
|
|
219
241
|
export { CROSS_BOUNDARY_TAINT_BITS, CROSS_BOUNDARY_POSTURES, BOUNDARY_LEGS, crossBoundaryObligation, CROSS_BOUNDARY_RECORD_TYPE, readCrossBoundaryRecord } from "./core/cross-boundary-taint.js";
|
|
220
|
-
export { modePolicyOf, PERMISSION_MODE_FOLD_REASONS, ACCEPT_EDITS_FILE_COMMANDS, modeAcceptsFileCommand } from "./core/mode-policy.js";
|
|
242
|
+
export { modePolicyOf, PERMISSION_MODE_FOLD_REASONS, ACCEPT_EDITS_FILE_COMMANDS, modeAcceptsFileCommand, foldPermissionMode } from "./core/mode-policy.js";
|
|
221
243
|
export { SKILL_GRANT_ORIGINS } from "./core/skill-grant.js";
|
|
222
244
|
export { AUTO_STRIP_REASONS } from "./core/auto-strip.js";
|
|
223
245
|
export { ALLOW_ENTRY_INERT_REASONS, allowEntryAutoStrip, readRuleEntry, compileAllowList, renderListEntry, screenAllowedToolsValue } from "./core/allow-entry.js";
|
|
224
|
-
export { ALLOW_RULE_MEMBERS } from "./core/allow-rule-shadow.js";
|
|
225
|
-
export { mintNamespacePrefix } from "
|
|
246
|
+
export { ALLOW_RULE_MEMBERS, ALLOW_RULE_SHADOW_REASONS, ALLOW_RULE_BINDINGS, ALLOW_LIST_GRANTS } from "./core/allow-rule-shadow.js";
|
|
247
|
+
export { mintNamespacePrefix } from "@sema-agent/primitives";
|
|
226
248
|
export { readDenyClassifierRules, renderClassifierDenyRules } from "./core/auto-mode-prompt.js";
|
|
227
249
|
export { AUTO_MODE_DENY_SOURCES, isAutoModeDenySource } from "./core/runtime-caps.js";
|
|
228
250
|
export { SETTLEMENT_KINDS, isSettlementKind, SETTLEMENT_PARTIES, isSettlementParty, HOST_DECIDERS, isHostDecider, DECIDED_VIA, SETTLEMENT_IS_REFUSAL, DENIED_BY_VALUES, isDeniedBy, DENIED_BY_MAY_VETO, CLASSIFIER_DENY_CAUSES, isClassifierDenyCause, DENIED_BY_MAY_CARRY_CAUSE, screenGateOutcome, RETIRED_MEMBERS, isRetiredMember } from "./core/gate-outcome.js";
|
|
@@ -231,6 +253,7 @@ export { REFUSAL_ECHO_KINDS, isRefusalEchoKind } from "./core/refusal-echo.js";
|
|
|
231
253
|
export { ENGINE_BUILTIN_TOOL_NAMES, isEngineBuiltinToolName } from "./core/tool-catalog-entries.js";
|
|
232
254
|
export { policyCannotAnswer } from "./core/real-approval.js";
|
|
233
255
|
export {} from "./core/hooks.js";
|
|
256
|
+
export { UNAVAILABLE_LANDINGS, isUnavailableLanding } from "./core/unavailable-landing.js";
|
|
234
257
|
export { SWAPPABLE_DEP_SEATS, SWAP_SEAT_NOTICE, isSwappableDepSeat, screenSwappableDeps } from "./core/swappable-deps.js";
|
|
235
258
|
export { parseAutoModeResponse, createAutoModeDecider, AUTO_MODE_UNAVAILABLE_CAUSES, isAutoModeUnavailableCause, classifierUnavailableDenyMessage, classifierParseFailureDenyMessage, AUTO_MODE_PARSE_FAILURES, isAutoModeParseFailure, AUTO_MODE_CLASSIFIER_FALLBACKS, isAutoModeClassifierFallback, AUTO_MODE_FALLBACK_CAUSES, isAutoModeFallbackCause, createAutoModeDenialTracker, denialLimitFallbackMessage, denialLimitSentence, unarmedWindow, DENIAL_LIMIT_BOUNDS, isDenialLimitBound, } from "./core/auto-mode.js";
|
|
236
259
|
export { CLASSIFIER_REVIEW_SITES } from "./core/classifier-unavailable-arm.js";
|
|
@@ -245,10 +268,10 @@ export { createPermissionRulePolicy, validatePermissionRules, skipsUnreadableRul
|
|
|
245
268
|
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";
|
|
246
269
|
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";
|
|
247
270
|
export { readRuleOwner, sameRuleOwner, RULE_OWNER_KINDS, } from "./core/rule-owner.js";
|
|
248
|
-
export { principalNameOf, PRINCIPAL_NAME_MAX_CHARS } from "./core/principal-name.js";
|
|
249
|
-
export { isolationScopeOf, callScopeOf } from "./core/isolation-scope.js";
|
|
250
|
-
export { REKEY_MODES, ONE_STEP_REKEY_MODES, readPrincipalRekeyInput, readScopeRekeyInput, readIdentityRekeyInput, rekeyOwnerIdentity, oneStepRekeyAnswerOf, } from "./core/identity-rekey.js";
|
|
251
|
-
export { rekeyCheckpointRow, CHECKPOINT_IDENTITY_MEMBERS } from "./core/checkpoint-rekey.js";
|
|
271
|
+
export { judgePrincipalName, principalNameOf, PRINCIPAL_NAME_MAX_CHARS, PRINCIPAL_NAME_MAX_BYTES, PRINCIPAL_NAME_REFUSALS, } from "./core/principal-name.js";
|
|
272
|
+
export { isolationScopeOf, callScopeOf, ANONYMOUS_SCOPE, scopeKeyOf } from "./core/isolation-scope.js";
|
|
273
|
+
export { REKEY_MODES, ONE_STEP_REKEY_MODES, readPrincipalRekeyInput, readScopeRekeyInput, readIdentityRekeyInput, rekeyOwnerIdentity, oneStepRekeyAnswerOf, judgePrincipalRekey, eraseStepOf, } from "./core/identity-rekey.js";
|
|
274
|
+
export { rekeyCheckpointRow, checkpointRekeySelects, CHECKPOINT_IDENTITY_MEMBERS } from "./core/checkpoint-rekey.js";
|
|
252
275
|
export { syncPermissionRules, parseRuleSyncResponse, PERMISSION_RULE_SYNC_PATH, LOCAL_OWNER_UNSYNCABLE_CODE, } from "./core/permission-rule-sync.js";
|
|
253
276
|
export { createPermissionRuleStoreProvider, effectivePermissionRules, effectiveOrThrow, ruleSourceOf, } from "./core/permission-rule-provider.js";
|
|
254
277
|
export { RULE_STORE_FAULT_REASONS } from "./core/rule-store-fault.js";
|
|
@@ -273,9 +296,9 @@ export { SESSION_SEND_ORIGIN_KINDS } from "./core/mods/session-send.js";
|
|
|
273
296
|
export { loadModPackage } from "./core/mods/package.js";
|
|
274
297
|
export { CREDENTIAL_REF_KINDS, CREDENTIAL_REF_TRUST, CREDENTIAL_REF_TEXT_MAX, CREDENTIAL_REF_MAP_MAX, CREDENTIAL_REF_PROBLEM_REASONS, readCredentialRef, } from "@sema-agent/primitives";
|
|
275
298
|
export { composeMemoryBlock, composeLayeredMemoryBlock, normalizeMemorySpec, firstSentence, detectSecret, MEMORY_PROJECT_KEY_ABSENT_REASONS, } from "./core/memory.js";
|
|
276
|
-
export { MemoryEngine, FileMemoryEngineBackend, readMemoryLedgerForm, memoryBackendContract, assertMemoryBackendSearchEquivalence, memoryGovernanceStoreContract, buildMemoryInstruction, writableRootOf, truncateIndex, scanEntryFiles, deriveRepoKey, deriveRepoMemoryDir, deriveControlPlaneDir, deriveRepoControlPlaneDir, resolveMemoryEngineRoot, scopeDirName, ControlPlaneCorruptError, parseEntryFile, serializeEntryFile, computeEntryRev, entryFromFile, MEMORY_ORIGIN_CAUSES, committedOriginOf, originEquals, consolidationExposedFrontmatter, ambiguousOriginRepresentation, committedDistilledOf, distilledEquals, CONSOLIDATION_DEFAULTS, ConsolidationRefusedError, MEMORY_SEARCH_SUPERSEDED_TAG, consolidationTypeEligible, deriveSupersededSet, memorySupersededNote, supersessionFuseCeiling, DELETION_FUSE_FLOOR, fileGovernanceStore, memoryGovernanceDurability, deriveShadowedSet, memoryConsolidationRecommendedNotice, memoryConsolidationCommittedNotice, memoryConsolidationConflictNotice, memoryConsolidationIncompleteNotice, memoryConsolidationRefusedNotice, memoryConsolidationWithheldNotice, DISTILLER_DEFAULT_MAX_INPUTS_PER_PRODUCT, LLM_DISTILLER_CONTRACT, LLM_DISTILLER_CONTRACT_DL2, LLM_DISTILLER_CONTRACT_DL3, LLM_DISTILLER_CONTRACTS, MEMORY_DISTILLER_CONTRACT_V1, contractGroupingDiff, driveConsolidationToFixpoint, isAliasModelId, llmPlanDistiller, mintExposurePartitionedPlan, mintLlmConsolidationPlan, MEMORY_DISTILLER_PURITY_CONTRACT_V1, detectCleanArmVerbatimLeak, openAiCompatChatSeat, parseJsonAnswer, planParseRepairs, sanitizeLlmGroups, scheduleUnderFuse, CONSOLIDATION_RUN_STOP_REASONS, CONSOLIDATION_WRITE_REFUSED_CODE, runMemoryConsolidationDriver, isInstructionEntry, MEMORY_INSTRUCTION_TEMPLATE, MEMORY_RECALL_DISCIPLINE, MEMORY_PREFERENCE_DISCIPLINE, MEMORY_READONLY_NOTICE, MEMORY_CAPTURE_OPTOUT_NOTICE, memoryCaptureOptedOutNotice, memoryCaptureOptOutUnpersistedNotice, SESSION_CAPTURE_OPTOUT_DIR, fileSessionCaptureRecordStore, readV2HeaderHints, LINEAGE_FILE, CHALLENGES_FILE, CHALLENGED_HISTORY_FILE, CHALLENGE_LEDGER_MAX_EVENTS, rebuildStrictControlPlaneLedger, MEMORY_INDEX_FILENAME, MEMORY_INDEX_MAX_LINES, MEMORY_INDEX_MAX_BYTES, MEMORY_SEARCH_TOOL_NAME, MEMORY_GET_TOOL_NAME, MEMORY_INDEX_TOOL_NAME, MEMORY_ENGINE_TOOL_NAMES, MEMORY_EXPOSURE_BANNER, MEMORY_EXPOSURE_HANDLE_TAG, memoryExposureIndexRow, STUB_ARCHIVED_LINE, DEFAULT_MAX_MEMORY_FILES, DEFAULT_MAX_ENTRY_DEPTH, DEFAULT_HARVEST_DEADLINE_MS, DEFAULT_HARVEST_FILE_BUDGET, MASS_DELETION_FUSE_RATIO, scanMemoryWrite, scanMemoryFileName, scanRemediation, MEMORY_FILENAME_SEGMENT_RE, renderAnnouncements, enqueueMemoryAnnouncement, drainMemoryAnnouncements, peekMemoryAnnouncements, bumpScanFuse, scanFuseCount, clearScanFuse, ANNOUNCEMENTS_FILE, MEMORY_ANNOUNCEMENTS_MAX, SCAN_FUSE_FILE, SCAN_FUSE_THRESHOLD, erasureSelectHash, computeMemoryBundleHash, MEMORY_GOVERNANCE_DOC_NAMES, MEMORY_CONTROL_OBJECT_KINDS, adoptReplicaControlPlane, replicaControlPlaneStrays, SCOPE_SEGMENT_MAX_ENCODED, PROJECT_MARKER_PATH, encodeScopeSegment, decodeScopeSegment, parseScopeKey, formatUserScope, formatUserLocalScope, formatOrgScope, formatProjScope, formatUserProjScope, isPersonalScope, isReplicableScope, isOrgScopeKey, assertScopeContractPlacement, formatProjectMarker, parseProjectMarker, resolveProjectId, PROJECT_ID_REGEX, migrateScope, materializeEntriesToFiles, harvestFilesToPatches, projectionsToWriteBack, screenInboundEntries, REMOTE_HARVEST_PER_FILE_BYTES, REMOTE_MASS_DELETION_FUSE_RATIO, deriveProjectMemoryDir, deriveProjectControlDir, recordProjectIdHint, lookupProjectIdHint, PROJECT_ID_HINTS_FILE, reconcileMemoryEntries, nextSyncBaseline, mergeRecallHits, syncMemoryScope, memorySyncStoreOf, carriesCredential, memorySyncReportOf, memoryTravelGapOf, } from "./core/memory-engine/index.js";
|
|
299
|
+
export { MemoryEngine, FileMemoryEngineBackend, readMemoryLedgerForm, memoryBackendContract, assertMemoryBackendSearchEquivalence, memoryGovernanceStoreContract, buildMemoryInstruction, writableRootOf, truncateIndex, scanEntryFiles, deriveRepoKey, deriveRepoMemoryDir, deriveControlPlaneDir, deriveRepoControlPlaneDir, resolveMemoryEngineRoot, scopeDirName, ControlPlaneCorruptError, parseEntryFile, serializeEntryFile, computeEntryRev, entryFromFile, MEMORY_ORIGIN_CAUSES, committedOriginOf, originEquals, consolidationExposedFrontmatter, ambiguousOriginRepresentation, committedDistilledOf, distilledEquals, CONSOLIDATION_DEFAULTS, ConsolidationRefusedError, MEMORY_SEARCH_SUPERSEDED_TAG, consolidationTypeEligible, deriveSupersededSet, memorySupersededNote, supersessionFuseCeiling, DELETION_FUSE_FLOOR, fileGovernanceStore, memoryGovernanceDurability, deriveShadowedSet, memoryConsolidationRecommendedNotice, memoryConsolidationCommittedNotice, memoryConsolidationConflictNotice, memoryConsolidationIncompleteNotice, memoryConsolidationRefusedNotice, memoryConsolidationWithheldNotice, DISTILLER_DEFAULT_MAX_INPUTS_PER_PRODUCT, LLM_DISTILLER_CONTRACT, LLM_DISTILLER_CONTRACT_DL2, LLM_DISTILLER_CONTRACT_DL3, LLM_DISTILLER_CONTRACTS, MEMORY_DISTILLER_CONTRACT_V1, contractGroupingDiff, driveConsolidationToFixpoint, isAliasModelId, llmPlanDistiller, mintExposurePartitionedPlan, mintLlmConsolidationPlan, MEMORY_DISTILLER_PURITY_CONTRACT_V1, detectCleanArmVerbatimLeak, openAiCompatChatSeat, parseJsonAnswer, planParseRepairs, sanitizeLlmGroups, scheduleUnderFuse, CONSOLIDATION_RUN_STOP_REASONS, CONSOLIDATION_WRITE_REFUSED_CODE, runMemoryConsolidationDriver, isInstructionEntry, MEMORY_INSTRUCTION_TEMPLATE, MEMORY_RECALL_DISCIPLINE, MEMORY_PREFERENCE_DISCIPLINE, MEMORY_READONLY_NOTICE, MEMORY_CAPTURE_OPTOUT_NOTICE, memoryCaptureOptedOutNotice, memoryCaptureOptOutUnpersistedNotice, CAPTURE_OPTOUT_UNPERSISTED_RETRY, SESSION_CAPTURE_OPTOUT_DIR, fileSessionCaptureRecordStore, sessionRecordBindsIncarnation, usableSessionIncarnation, readV2HeaderHints, LINEAGE_FILE, CHALLENGES_FILE, CHALLENGED_HISTORY_FILE, CHALLENGE_LEDGER_MAX_EVENTS, rebuildStrictControlPlaneLedger, MEMORY_INDEX_FILENAME, MEMORY_INDEX_MAX_LINES, MEMORY_INDEX_MAX_BYTES, MEMORY_SEARCH_TOOL_NAME, MEMORY_GET_TOOL_NAME, MEMORY_INDEX_TOOL_NAME, MEMORY_ENGINE_TOOL_NAMES, MEMORY_EXPOSURE_BANNER, MEMORY_EXPOSURE_HANDLE_TAG, memoryExposureIndexRow, STUB_ARCHIVED_LINE, DEFAULT_MAX_MEMORY_FILES, DEFAULT_MAX_ENTRY_DEPTH, DEFAULT_HARVEST_DEADLINE_MS, DEFAULT_HARVEST_FILE_BUDGET, MASS_DELETION_FUSE_RATIO, scanMemoryWrite, scanMemoryFileName, scanRemediation, MEMORY_FILENAME_SEGMENT_RE, renderAnnouncements, enqueueMemoryAnnouncement, drainMemoryAnnouncements, peekMemoryAnnouncements, bumpScanFuse, scanFuseCount, clearScanFuse, ANNOUNCEMENTS_FILE, MEMORY_ANNOUNCEMENTS_MAX, SCAN_FUSE_FILE, SCAN_FUSE_THRESHOLD, erasureSelectHash, computeMemoryBundleHash, MEMORY_GOVERNANCE_DOC_NAMES, MEMORY_CONTROL_OBJECT_KINDS, adoptReplicaControlPlane, replicaControlPlaneStrays, SCOPE_SEGMENT_MAX_ENCODED, PROJECT_MARKER_PATH, encodeScopeSegment, decodeScopeSegment, parseScopeKey, formatUserScope, formatUserLocalScope, formatOrgScope, formatProjScope, formatUserProjScope, isPersonalScope, isReplicableScope, isOrgScopeKey, assertScopeContractPlacement, formatProjectMarker, parseProjectMarker, resolveProjectId, PROJECT_ID_REGEX, migrateScope, materializeEntriesToFiles, harvestFilesToPatches, projectionsToWriteBack, screenInboundEntries, REMOTE_HARVEST_PER_FILE_BYTES, REMOTE_MASS_DELETION_FUSE_RATIO, deriveProjectMemoryDir, deriveProjectControlDir, recordProjectIdHint, lookupProjectIdHint, PROJECT_ID_HINTS_FILE, reconcileMemoryEntries, nextSyncBaseline, mergeRecallHits, syncMemoryScope, memorySyncStoreOf, carriesCredential, memorySyncReportOf, memoryTravelGapOf, } from "./core/memory-engine/index.js";
|
|
277
300
|
export { createConsolidationWriteJudge, deliverWriteRefusal } from "./core/runner/memory-consolidation-write-judge.js";
|
|
278
|
-
export { STORE_FORM_REFUSAL_CODES, TARGET_OUTSIDE_STORE, TARGET_OUTSIDE_STORE_REASONS, SCOPE_HOME_NOT_DIRECTORY, CONTROL_PLANE_LINKS_UNSUPPORTED, SCOPE_HOME_FORMS } from "./core/memory-engine/layout.js";
|
|
301
|
+
export { STORE_FORM_REFUSAL_CODES, TARGET_OUTSIDE_STORE, TARGET_OUTSIDE_STORE_REASONS, SCOPE_HOME_NOT_DIRECTORY, CONTROL_PLANE_LINKS_UNSUPPORTED, SCOPE_HOME_FORMS, STORE_ABSENT, STORE_ABSENT_EXPECTED_BY } from "./core/memory-engine/layout.js";
|
|
279
302
|
export { resolveMemoryScopeStore } from "./core/memory-engine/dual-root.js";
|
|
280
303
|
export { classifyScopePlanes, memoryScopePlaneOf, scopePlanesOf } from "./core/memory-engine/dual-root.js";
|
|
281
304
|
export { createMemoryDeployment, } from "./core/memory-engine/memory-deployment.js";
|
|
@@ -301,7 +324,7 @@ export { PROMPT_LOCALES } from "./prompt-assembly/catalog/schema.js";
|
|
|
301
324
|
export { OVERLAY_OPS, HOST_ROLES, isHostRole, HOST_FORMS } from "./prompt-assembly/catalog/schema.js";
|
|
302
325
|
export { SEMA_DEFAULT_CATALOG, catalogText } from "./prompt-assembly/catalog/index.js";
|
|
303
326
|
export { attachToolContract, getToolContract, hasToolContract, computeShapeDigest, projectToolManifest } from "./prompt-assembly/tool-catalog.js";
|
|
304
|
-
export { normalizePromptEpoch, promptIdentityOf, PROMPT_EPOCH_ACTIVATIONS, PROMPT_EPOCH_CHANGES, } from "./prompt-assembly/epoch.js";
|
|
327
|
+
export { normalizePromptEpoch, promptIdentityOf, walkPromptEpochCarriers, PROMPT_EPOCH_ACTIVATIONS, PROMPT_EPOCH_CHANGES, } from "./prompt-assembly/epoch.js";
|
|
305
328
|
export { ARTIFACT_LIMITS, buildPromptArtifact, computeArtifactDigest, requiresOf, unmetRequirements, verifyPromptArtifact, } from "./prompt-assembly/artifact.js";
|
|
306
329
|
export { buildTurnPromptSnapshot, loweringRecordFor, LOWERING_VERSION, PREFIX_INPUT_CLASSIFICATION, } from "./prompt-assembly/turn-snapshot.js";
|
|
307
330
|
export { CenterPromptSource, FilePromptArtifactStore, FilePromptSourceStateStore, MemoryPromptArtifactStore, MemoryPromptSourceStateStore, } from "./prompt-assembly/artifact-store.js";
|
|
@@ -309,10 +332,10 @@ export { stripEngineMetadata } from "./internal/llm.js";
|
|
|
309
332
|
export { EVENT_PROMPT_REGISTRY, eventDefaultOn } from "./prompt-assembly/event-registry.js";
|
|
310
333
|
export { OUTPUT_STYLE_NAME_MAX } from "./core/output-style.js";
|
|
311
334
|
export { contextUsageSections } from "./prompt-assembly/section-usage.js";
|
|
312
|
-
export { DEFAULT_EFFORT_LEVELS, REASONING_BUDGET_SHARE, isThinkingLevel, rankOf, resolveEffort, reasoningBudgetShare, thinkingOffSpelled, declaredOffSpelling, mintEffortWireValue, resolveReasoningProfile, } from "./brain/reasoning.js";
|
|
335
|
+
export { REASONING_EFFECTIVE_WORDS, DEFAULT_EFFORT_LEVELS, REASONING_BUDGET_SHARE, isThinkingLevel, rankOf, resolveEffort, reasoningBudgetShare, thinkingOffSpelled, declaredOffSpelling, mintEffortWireValue, resolveReasoningProfile, } from "./brain/reasoning.js";
|
|
313
336
|
export { applyReasoningToRequest, mergeReasoningHeaders, lowestReasoningSeat, resolveReasoning, reasoningEffortLevelsOf, } from "./brain/reasoning-request.js";
|
|
314
337
|
export { capabilityOf, capabilityHeld, MODEL_CAPABILITIES, CAPABILITY_DECLARATIONS, } from "./brain/model-capability.js";
|
|
315
|
-
export { runWorkflow, startWorkflow, workflowAgentCallKey, WorkflowBudgetExceededError, WorkflowNestingError, WorkflowAgentSchemaError, WorkflowAgentStalledError, WorkflowAgentBlockedError, WORKFLOW_SPAWN_BLOCKED_ERROR_CODE, WorkflowAgentParkedError, WORKFLOW_AGENT_PARKED_ERROR_CODE, parkedAgentsOf, runParkedOf, WORKFLOW_SUBAGENT_PROMPT, WORKFLOW_SUBAGENT_PROMPT_SCHEMA, WORKFLOW_SUBAGENT_APPEND, WORKFLOW_SUBAGENT_APPEND_SCHEMA, MAX_WORKFLOW_ITEMS, } from "./orchestration/workflow.js";
|
|
338
|
+
export { runWorkflow, startWorkflow, workflowAgentCallKey, WorkflowBudgetExceededError, WorkflowNestingError, WorkflowAgentSchemaError, WorkflowAgentStalledError, WorkflowAgentBlockedError, WORKFLOW_SPAWN_BLOCKED_ERROR_CODE, WorkflowAgentParkedError, WORKFLOW_AGENT_PARKED_ERROR_CODE, WORKFLOW_AGENT_OUTLIVED_RUN_CODE, parkedAgentsOf, runParkedOf, WORKFLOW_SUBAGENT_PROMPT, WORKFLOW_SUBAGENT_PROMPT_SCHEMA, WORKFLOW_SUBAGENT_APPEND, WORKFLOW_SUBAGENT_APPEND_SCHEMA, MAX_WORKFLOW_ITEMS, workflowRowStatusOf, workflowMembersOf, } from "./orchestration/workflow.js";
|
|
316
339
|
export { listWorkflowRuns, getWorkflowRun, subscribeWorkflow, redeemWorkflowParks, deriveAgentDisplayStatus } from "./orchestration/workflow-observe.js";
|
|
317
340
|
export { workflowRecordPickupOf } from "./orchestration/workflow-record-artifact.js";
|
|
318
341
|
export { runGoal, DECLARE_DONE_TOOL_NAME, } from "./orchestration/goal.js";
|
|
@@ -321,21 +344,27 @@ export { runOracle, captureBaseline, resolveFrozenPaths, snapshotFrozenPaths, re
|
|
|
321
344
|
export { runSpec } from "./orchestration/run-spec.js";
|
|
322
345
|
export { isSelfOrchestrationActive, workflowsCapability, selfOrchestrationFailClosedReason, } from "./orchestration/workflow-script-runner.js";
|
|
323
346
|
export { devWorkflowScriptRunner } from "./orchestration/dev-vm-script-runner.js";
|
|
324
|
-
export { parseWorkflowMeta, splitWorkflowMeta, WorkflowScriptError, workflowScriptReadsClockOrRandom } from "./orchestration/workflow-meta.js";
|
|
347
|
+
export { parseWorkflowMeta, parseWorkflowRequires, splitWorkflowMeta, WorkflowScriptError, workflowScriptReadsClockOrRandom } from "./orchestration/workflow-meta.js";
|
|
325
348
|
export { assertWorkflowSandboxConformance, assertWorkflowPrimitivesWiring, assertWorkflowDeterminism } from "./orchestration/workflow-sandbox-conformance.js";
|
|
326
349
|
export { WorkflowModelNotAllowedError, workflowModelNamesOf } from "./orchestration/workflow-governance.js";
|
|
327
350
|
export { WorkflowMaxAgentsError, WorkflowResultTooLargeError, WorkflowJournalAppendTimeoutError } from "./orchestration/workflow.js";
|
|
328
351
|
export { createFileWorkflowScriptStore, mergeWorkflowArgs, } from "./orchestration/workflow-script-store.js";
|
|
352
|
+
export { createWorkflowCatalog, createDirectoryWorkflowLayer, isWorkflowName, WORKFLOW_SOURCES, WORKFLOW_SAVE_LAYERS, WORKFLOW_CATALOG_MAX_FILE_BYTES, WORKFLOW_SAVE_REFUSAL_CODES, WORKFLOW_CATALOG_HELD_CODE, WorkflowCatalogSaveError, WorkflowCatalogHeldError, } from "./orchestration/workflow-catalog.js";
|
|
353
|
+
export { workflowRequirementGaps, workflowRequirementsUnmetSentence, listWorkflowCatalogRows, WORKFLOW_REQUIREMENTS_UNMET_CODE, } from "./orchestration/workflow-requirements.js";
|
|
329
354
|
export { WORKFLOW_AGENT_STALL_MS, WORKFLOW_AGENT_MAX_RETRIES, WORKFLOW_AGENT_THROTTLE_BACKOFF_MS, WORKFLOW_JOURNAL_APPEND_TIMEOUT_MS } from "./orchestration/workflow.js";
|
|
330
355
|
export { parentSpecSeatOf, applyParentSpecSeat } from "./core/parent-spec-seat.js";
|
|
331
356
|
export { createRunWorkflowTool, RUN_WORKFLOW_TOOL_NAME, workflowWhenToUseText, renderNamedWorkflowListing, } from "./orchestration/run-workflow-tool.js";
|
|
332
357
|
export { runSideQuery } from "./core/side-query.js";
|
|
333
358
|
export { ACCOUNT_ORIGINS, accountRowOfResult, foldAccount } from "./core/account-row.js";
|
|
334
359
|
export { PRESENT_PLAN_TOOL_NAME, ENTER_PLAN_MODE_TOOL_NAME } from "./core/present-plan-tool.js";
|
|
335
|
-
export { summarizeWorkflowRun, isTerminalWorkflowStatus, WorkflowRunStoreError, InMemoryWorkflowRunStore, WORKFLOW_RUN_UPDATE_CAUSES, WORKFLOW_RUN_ROW_SHAPE, WORKFLOW_RUN_ROW_MALFORMED_CODE, readStoredWorkflowRun, admitWorkflowRun, summarizeStoredWorkflowRun, } from "./core/workflow-run-store.js";
|
|
360
|
+
export { summarizeWorkflowRun, isTerminalWorkflowStatus, WorkflowRunStoreError, InMemoryWorkflowRunStore, WORKFLOW_RUN_UPDATE_CAUSES, WORKFLOW_RUN_ROW_SHAPE, WORKFLOW_RUN_ROW_MALFORMED_CODE, readStoredWorkflowRun, admitWorkflowRun, summarizeStoredWorkflowRun, reapWorkflowRuns, } from "./core/workflow-run-store.js";
|
|
336
361
|
export { WORKFLOW_RUN_STATUSES } from "./orchestration/workflow-types.js";
|
|
337
362
|
export { workflowParkHolderOf } from "./orchestration/workflow-types.js";
|
|
363
|
+
export {} from "./orchestration/workflow-types.js";
|
|
364
|
+
export { workflowParkWaitOf, readWorkflowParkWaits } from "./orchestration/workflow-park-adoption.js";
|
|
338
365
|
export { WORKFLOW_PARK_UNUSED_REASONS } from "./orchestration/workflow-park-adoption.js";
|
|
366
|
+
export { workflowParkDecisionOf, WORKFLOW_PARK_SETTLING_REASONS } from "./orchestration/workflow-park-adoption.js";
|
|
367
|
+
export { WORKFLOW_PARK_SETTLED_DECISIONS_MAX, WORKFLOW_PARK_DECISION_MARK_BYTES_MAX } from "./orchestration/workflow-types.js";
|
|
339
368
|
export { FileWorkflowRunStore } from "./stores/file/workflow-run-store.js";
|
|
340
369
|
export { workflowRunStoreContract } from "./core/workflow-run-store-contract.js";
|
|
341
370
|
export { CONTRACT_KIT_ENGINE_VERSION } from "./core/store-contracts/contract-kit-version.js";
|
|
@@ -353,20 +382,21 @@ export { permissionRuleWriteContract } from "./core/store-contracts/permission-r
|
|
|
353
382
|
export { MAILBOX_CONTRACT_SCOPE, mailboxStoreContract, mailboxAckOwnershipContract, mailboxBundledOnlyContract, mailboxTombstonedRecipientContract, mailboxCrossProcessContract, } from "./core/store-contracts/mailbox-store-contract.js";
|
|
354
383
|
export { BACKGROUND_AGENT_CONTRACT_SCOPE, backgroundAgentStoreContract, backgroundAgentStoreScopesContract, } from "./core/store-contracts/background-agent-store-contract.js";
|
|
355
384
|
export { PEER_DIRECTORY_CONTRACT_SCOPE, peerDirectoryContract } from "./core/store-contracts/peer-directory-contract.js";
|
|
356
|
-
export { canAccessAgentRecord, STALE_RUNNING_REAP_ATTRIBUTION, staleRunningFlip, staleRunningFlipOf, BackgroundAgentStoreError, InMemoryBackgroundAgentStore, reconcileParkedAgents, queryBackgroundAgents, BACKGROUND_AGENT_ROW_SHAPE, BACKGROUND_AGENT_ROW_MALFORMED_CODE, BACKGROUND_AGENT_STATUSES, readStoredBackgroundAgent, admitBackgroundAgent, summarizeStoredBackgroundAgent, nextBackgroundAgentOnUpdate, assertDelegationRoot, } from "./core/background-agent-store.js";
|
|
385
|
+
export { canAccessAgentRecord, STALE_RUNNING_REAP_ATTRIBUTION, staleRunningFlip, staleRunningFlipOf, BackgroundAgentStoreError, InMemoryBackgroundAgentStore, reconcileParkedAgents, queryBackgroundAgents, backgroundAgentSessionRows, BACKGROUND_AGENT_ROW_SHAPE, BACKGROUND_AGENT_ROW_MALFORMED_CODE, BACKGROUND_AGENT_STATUSES, BACKGROUND_AGENT_SETTLED_STATUSES, isBackgroundAgentSettledStatus, BACKGROUND_AGENT_LIVE_STATUSES, isBackgroundAgentLiveStatus, readStoredBackgroundAgent, admitBackgroundAgent, planScopeRekey, scopeRekeyWritesOf, summarizeStoredBackgroundAgent, nextBackgroundAgentOnUpdate, assertDelegationRoot, } from "./core/background-agent-store.js";
|
|
357
386
|
export { serveDurableAgentRowLane, buildAgentPollDetails, } from "./core/task-registry-agent.js";
|
|
358
387
|
export { readAgentState, agentStateSourceOfRecord, agentStateSummary, } from "./core/agent-state.js";
|
|
359
388
|
export { TASK_OUTPUT_REPLAY_KINDS } from "./core/task-registry-shared.js";
|
|
360
389
|
export { REMOVAL_LIVENESS_WORDS, RULE_REFUSAL_CODES, RULE_WRITE_COMMITTED_WORDS } from "./core/permission-rule-store.js";
|
|
361
390
|
export { normalizeReadRootCandidate, READ_ROOT_CANDIDATE_DIR_MAX } from "./core/read-root-candidate.js";
|
|
362
391
|
export { FileBackgroundAgentStore } from "./stores/file/background-agent-store.js";
|
|
363
|
-
export { A2A_TASK_STATES,
|
|
392
|
+
export { A2A_TASK_STATES, A2A_SEMA_EXTENSIONS, A2A_SEMA_REFUSAL_CODES, A2A_SEMA_SKILL_ID_KEY, A2A_SEMA_WAITING_ON_KEY, A2A_WAITING_ON_KINDS, A2A_STATE_CLASSES, A2A_WAITING_FOR, A2A_STATE_TABLE, a2aWireStatusOf, a2aStateClassOfRecord, readA2APeerState, } from "./core/a2a-task-state.js";
|
|
364
393
|
export { InMemoryWorkflowJournalStore, callKeyOrdinal, JOURNAL_OVERSIZE_ERROR_CODE, WorkflowJournalOversizeError, assertJournalEntryFits, readWorkflowJournalEntry, WorkflowJournalIncompatibleError, JOURNAL_INCOMPATIBLE_ERROR_CODE, readWorkflowLaunchRecord, assertLaunchRecordFits, sameLaunchRecord, WorkflowLaunchConflictError, WORKFLOW_LAUNCH_CONFLICT_CODE, WorkflowLaunchUnreadableError, WORKFLOW_LAUNCH_UNREADABLE_CODE, } from "./core/workflow-journal-store.js";
|
|
365
394
|
export { untrustedEgressForHuman, redactHostLeaks, redactSecrets, boundedRedactedSummary } from "./core/untrusted-egress.js";
|
|
366
395
|
export { REDACTION_MARKS, isRedactionMark, eachRedactionMarkerSpan, redactionMarkerSpans, } from "@sema-agent/primitives";
|
|
367
396
|
export { summarizeRedactions } from "./core/untrusted-egress.js";
|
|
368
397
|
export { headerOwnershipCollision, MCP_ASSERTION_HEADER } from "./core/protocol-http-auth.js";
|
|
369
398
|
export { crossesNetworkInClear } from "./core/protocol-http-auth.js";
|
|
399
|
+
export { createSentCredentialStream, eraseSentCredentials, sentCredentialHits } from "./core/protocol-http-auth.js";
|
|
370
400
|
export { MemoryRosterStore, FileRosterStore } from "./agents/roster-store.js";
|
|
371
401
|
export { CONFIG_CATALOG_VERSION, describeConfigCatalog, resolveEffectiveConfig, } from "./config/catalog.js";
|
|
372
402
|
export { normalizeAgentName } from "./core/task-registry.js";
|
|
@@ -420,11 +450,14 @@ export { readFallbackUnsent, FALLBACK_UNSENT_DIAGNOSTIC_TYPE } from "./brain/mod
|
|
|
420
450
|
export { DEGRADE_REASONS, MODEL_FALLBACK_GATE_WORDS, DEFAULT_FALLBACK_GATE } from "./core/model-fallbacks.js";
|
|
421
451
|
export { retryBackoffMs, parseRetryAfter } from "./brain/retry.js";
|
|
422
452
|
export { WAITING_AFTER_MS, WAITING_EVERY_MS } from "./brain/stream-engine.js";
|
|
423
|
-
export { adjudicateModelRoute, resolveRouteCredential, admitRouteRequest, rebindCredentialOrigin, routeRefusalText, routePairingStatus, routeKeyOf, displayUrlOf, resolveRequestRoot, resolveRequestRootOf, joinRequestUrl, hasAuthCarrier, __resetCredentialOriginBindings, } from "./brain/route-adjudicator.js";
|
|
453
|
+
export { adjudicateModelRoute, resolveRouteCredential, admitRouteRequest, rebindCredentialOrigin, CREDENTIAL_REBIND_OUTCOMES, requestOriginOf, routeRefusalText, routePairingStatus, routeKeyOf, displayUrlOf, resolveRequestRoot, resolveRequestRootOf, joinRequestUrl, hasAuthCarrier, __resetCredentialOriginBindings, } from "./brain/route-adjudicator.js";
|
|
424
454
|
export { ROUTE_CREDENTIAL_SOURCES, ROUTE_CARRIERS, ROUTE_CARRIER_BAGS, REQUEST_ROOT_ORIGINS, ROUTE_CREDENTIAL_PAIRING, requestRouteOf, routePairingRowOf, } from "./brain/request-route.js";
|
|
425
455
|
export { ROUTE_ADJUDICATION_CONFORMANCE_CORPUS } from "./brain/route-conformance.js";
|
|
426
456
|
export {} from "./brain/timeout.js";
|
|
427
457
|
export { createAssistantMessageEventStream } from "./internal/llm.js";
|
|
458
|
+
export { CONTINUATION_ENDED_BY } from "./core/delegation-frames.js";
|
|
459
|
+
export { MEMBER_OUTCOMES, MEMBER_KINDS, MEMBER_COVERAGES, REFUSALS_LISTED, isMemberOutcomeWord, isMemberOutcome, isMemberCoverage, memberOutcomeOf, memberRefusalsOf, memberCoverageOf, memberLedgerOf, memberOutcomeText, memberRefusalsText, } from "./core/member-outcome.js";
|
|
460
|
+
export { agentOutcomeOf } from "./core/background-agent-store.js";
|
|
428
461
|
export { Type } from "typebox";
|
|
429
462
|
export { explainPromptAssembly, describeCatalog } from "./prompt-assembly/explain.js";
|
|
430
463
|
export { APPROVAL_ROUTES, approvalRouteOf } from "./core/wiring-manifest.js";
|
|
@@ -443,6 +476,8 @@ export { canonicalJsonStringify } from "./core/canonical-json.js";
|
|
|
443
476
|
export { parkedApprovalCardOf } from "./core/pause-registry.js";
|
|
444
477
|
export { admitSessionPlacement, settledForkOptions } from "./core/session-store.js";
|
|
445
478
|
export { incarnationCell, forkRowCells, assertForkTarget, readIncarnationCell, fileHistoryScopeOf, readFileHistoryScope, sessionIdHasScopeTail, FILE_HISTORY_SCOPE_TAIL_LENGTH, FILE_HISTORY_SCOPE_SUFFIX_LENGTH } from "./engine/session/repo-utils.js";
|
|
479
|
+
export { ownerCell, readOwnerCell } from "./engine/session/repo-utils.js";
|
|
480
|
+
export { readPlacementCell, placementCellToWrite } from "./engine/session/repo-utils.js";
|
|
446
481
|
export { selectForkRows } from "./engine/session/path-to-root.js";
|
|
447
482
|
export { checkpointIndexFacts } from "./core/checkpoint-store.js";
|
|
448
483
|
export { checkpointRevOf, checkpointOccMatches, checkpointHolderMatches } from "./core/checkpoint-generation.js";
|
|
@@ -451,4 +486,5 @@ export { readRuleOffers, RULE_OFFER_SHAPE_PROBLEMS } from "./core/rule-offer-rea
|
|
|
451
486
|
export { compareOccupants } from "./engine/session/repo-utils.js";
|
|
452
487
|
export { sessionRowMatches } from "./engine/session/repo-utils.js";
|
|
453
488
|
export { sessionLogMarkOf } from "./engine/session/storage-base.js";
|
|
489
|
+
export { readRowExpectationMember } from "./core/runner/session-verb-doors.js";
|
|
454
490
|
export { CHECKPOINT_LIST_LIMITS, readCheckpointOverdueQuery, readCheckpointSessionQuery, readCheckpointDeleteGuard, checkpointDeadlinePassed, deleteGuardAdmits, selectOverduePage, selectSessionPage, } from "./core/checkpoint-queries.js";
|
|
@@ -4,12 +4,12 @@
|
|
|
4
4
|
* that only need harness types (not the NodeExecutionEnv value export) import from here instead, so
|
|
5
5
|
* their compile-time dependency graph never has to reach the value side of the facade.
|
|
6
6
|
*/
|
|
7
|
-
export type { CompactionPreparation
|
|
7
|
+
export type { CompactionPreparation } from "../engine/compaction/compaction.js";
|
|
8
8
|
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, SessionMetadata, SessionRepo, SessionStorage, SessionTreeEntry, Skill, } from "../engine/harness/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";
|
|
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";
|
|
@@ -13,11 +13,11 @@ export * from "./harness-types.js";
|
|
|
13
13
|
export { AgentHarness, turnContextOptions } from "../engine/harness/agent-harness.js";
|
|
14
14
|
export type { AnsweredInputSeed, HaltConsumption, PromptCommittedCallback, SeatCutSource, StopRequestSource, TrailingToolBatchOptions, TurnCutVerdict } from "../engine/harness/agent-harness.js";
|
|
15
15
|
export { CompactionError, ExecutionError, FileError, isTimeCutCode, NothingQueuedError, ok, err } from "../engine/harness/types.js";
|
|
16
|
-
export { DEFAULT_CHARS_PER_TOKEN,
|
|
16
|
+
export { DEFAULT_CHARS_PER_TOKEN, DEFAULT_COMPACTION_SETTINGS, calculateContextTokens, compact, computeFileLists, estimateContextTokens, estimateTokens, lastUsageReport, prepareCompaction, refusalShortfall, shouldCompact, summaryOutputBudgetTokens, } from "../engine/compaction/compaction.js";
|
|
17
17
|
export { SKILL_RETENTION_PER_SKILL_MAX_CHARS, SKILL_RETENTION_TOTAL_MAX_CHARS, SKILL_RETENTION_TRUNCATION_MARKER, formatFileOperations, formatPersistedOutputRefs, readCompactionActiveTools, readRetainedInvokedSkills, renderInvokedSkillsRetention, } from "../engine/compaction/utils.js";
|
|
18
18
|
export { NodeExecutionEnv } from "../engine/execution-env/node-execution-env.js";
|
|
19
|
-
export { StoredSession, buildSessionContext } from "../engine/session/session.js";
|
|
20
|
-
export { assertForkTarget, compareOccupants, forkRowCells, frozenRow, getEntriesToFork, importRowCells, incarnationCell, ownerCell, placementCellToWrite, readIncarnationCell, readOwnerCell, readPlacementCell, rowExpectationMissed, sessionHeadOf, sessionRowMatches } from "../engine/session/repo-utils.js";
|
|
19
|
+
export { StoredSession, buildSessionContext, entryRendersIntoContext } from "../engine/session/session.js";
|
|
20
|
+
export { assertForkTarget, compareOccupants, forkRowCells, forkTargetTaken, frozenRow, getEntriesToFork, importRowCells, incarnationCell, ownerCell, placementCellToWrite, readIncarnationCell, readOwnerCell, readPlacementCell, rowExpectationMissed, sessionHeadOf, sessionRowMatches } from "../engine/session/repo-utils.js";
|
|
21
21
|
export { validateEntriesForImport, StreamingImportValidator } from "../engine/session/import-validate.js";
|
|
22
22
|
export { BaseSessionStorage, entryParentLinks, leafIdAfterEntry, resolveLeafId, sessionLogMarkOf } from "../engine/session/storage-base.js";
|
|
23
23
|
export { InMemorySessionStorage } from "../engine/session/memory-storage.js";
|
|
@@ -29,6 +29,8 @@ export type { ForkPoint, ReplayLoss } from "../engine/session/path-to-root.js";
|
|
|
29
29
|
export { LineageBreak, pathToRoot, replayLossText } from "../engine/session/path-to-root.js";
|
|
30
30
|
export { findUnansweredToolBatch, readToolCallArguments } from "../engine/loop/agent-loop.js";
|
|
31
31
|
export { SessionError } from "../engine/harness/types.js";
|
|
32
|
+
export { CORRUPT_SESSION_DELETE_DOORS, CORRUPT_SESSION_FORMS, CORRUPT_SESSION_WAYS, CORRUPT_SESSION_WAYS_OUT, corruptSessionWayOutSentence, isCorruptSessionForm } from "../core/corrupt-session-form.js";
|
|
33
|
+
export type { CorruptSessionDeleteDoor, CorruptSessionDetail, CorruptSessionForm, CorruptSessionWay, CorruptSessionWayOut } from "../core/corrupt-session-form.js";
|
|
32
34
|
export type { AnnouncedAdvisorState, AnnouncedLanguageState, AnnouncedSandboxFrameState, AnnouncedListingSnapshot, AnnouncedListingSnapshotInput, AnnouncedMcpFailure } from "../engine/harness/types.js";
|
|
33
35
|
export { ANNOUNCED_LANGUAGE_MAX_CHARS } from "../engine/harness/types.js";
|
|
34
36
|
export { normalizeGitAnnouncement } from "../engine/harness/types.js";
|
package/dist/internal/harness.js
CHANGED
|
@@ -1,11 +1,11 @@
|
|
|
1
1
|
export * from "./harness-types.js";
|
|
2
2
|
export { AgentHarness, turnContextOptions } from "../engine/harness/agent-harness.js";
|
|
3
3
|
export { CompactionError, ExecutionError, FileError, isTimeCutCode, NothingQueuedError, ok, err } from "../engine/harness/types.js";
|
|
4
|
-
export { DEFAULT_CHARS_PER_TOKEN,
|
|
4
|
+
export { DEFAULT_CHARS_PER_TOKEN, DEFAULT_COMPACTION_SETTINGS, calculateContextTokens, compact, computeFileLists, estimateContextTokens, estimateTokens, lastUsageReport, prepareCompaction, refusalShortfall, shouldCompact, summaryOutputBudgetTokens, } from "../engine/compaction/compaction.js";
|
|
5
5
|
export { SKILL_RETENTION_PER_SKILL_MAX_CHARS, SKILL_RETENTION_TOTAL_MAX_CHARS, SKILL_RETENTION_TRUNCATION_MARKER, formatFileOperations, formatPersistedOutputRefs, readCompactionActiveTools, readRetainedInvokedSkills, renderInvokedSkillsRetention, } from "../engine/compaction/utils.js";
|
|
6
6
|
export { NodeExecutionEnv } from "../engine/execution-env/node-execution-env.js";
|
|
7
|
-
export { StoredSession, buildSessionContext } from "../engine/session/session.js";
|
|
8
|
-
export { assertForkTarget, compareOccupants, forkRowCells, frozenRow, getEntriesToFork, importRowCells, incarnationCell, ownerCell, placementCellToWrite, readIncarnationCell, readOwnerCell, readPlacementCell, rowExpectationMissed, sessionHeadOf, sessionRowMatches } from "../engine/session/repo-utils.js";
|
|
7
|
+
export { StoredSession, buildSessionContext, entryRendersIntoContext } from "../engine/session/session.js";
|
|
8
|
+
export { assertForkTarget, compareOccupants, forkRowCells, forkTargetTaken, frozenRow, getEntriesToFork, importRowCells, incarnationCell, ownerCell, placementCellToWrite, readIncarnationCell, readOwnerCell, readPlacementCell, rowExpectationMissed, sessionHeadOf, sessionRowMatches } from "../engine/session/repo-utils.js";
|
|
9
9
|
export { validateEntriesForImport, StreamingImportValidator } from "../engine/session/import-validate.js";
|
|
10
10
|
export { BaseSessionStorage, entryParentLinks, leafIdAfterEntry, resolveLeafId, sessionLogMarkOf } from "../engine/session/storage-base.js";
|
|
11
11
|
export { InMemorySessionStorage } from "../engine/session/memory-storage.js";
|
|
@@ -16,6 +16,7 @@ export { ParentChainGuard } from "../engine/session/parent-chain-guard.js";
|
|
|
16
16
|
export { LineageBreak, pathToRoot, replayLossText } from "../engine/session/path-to-root.js";
|
|
17
17
|
export { findUnansweredToolBatch, readToolCallArguments } from "../engine/loop/agent-loop.js";
|
|
18
18
|
export { SessionError } from "../engine/harness/types.js";
|
|
19
|
+
export { CORRUPT_SESSION_DELETE_DOORS, CORRUPT_SESSION_FORMS, CORRUPT_SESSION_WAYS, CORRUPT_SESSION_WAYS_OUT, corruptSessionWayOutSentence, isCorruptSessionForm } from "../core/corrupt-session-form.js";
|
|
19
20
|
export { ANNOUNCED_LANGUAGE_MAX_CHARS } from "../engine/harness/types.js";
|
|
20
21
|
export { normalizeGitAnnouncement } from "../engine/harness/types.js";
|
|
21
22
|
export { gitFrameContextVisible } from "../engine/session/session.js";
|
package/dist/internal/llm.d.ts
CHANGED
|
@@ -4,7 +4,7 @@
|
|
|
4
4
|
* design/118 ①②: the layer is now first-party (`src/engine/llm/`, naturalized out of the vendored
|
|
5
5
|
* llm-core); the facade stays so consumers never notice which side a symbol lives on.
|
|
6
6
|
*/
|
|
7
|
-
export { answeredWithoutModel, CACHE_RETENTION_WORDS, changedFilesNoticesOf, createAssistantMessageEventStream, flattenedUserText, DATA_LABEL_UNSAFE, isCacheRetention, ensureToolTurnInvariants, findToolByName, isTextBlock, MODEL_OUTPUT_INVALID_CAUSES, quoteDataLabel, renderContentBlock, renderUserAttachmentView, SECOND_RESULT_SEPARATOR, snapshotActorAssertion, stampStreamDrops, streamDropsOf, streamDropTurnOf, stripEngineMetadata, TOOL_TURN_INCOMPLETE_CAUSES, TOOL_TURN_REPAIR_DROPS, toolNameIndex, userAttachmentOf } from "../engine/llm/index.js";
|
|
7
|
+
export { answeredWithoutModel, CACHE_RETENTION_WORDS, changedFilesNoticesOf, createAssistantMessageEventStream, flattenedUserText, DATA_LABEL_UNSAFE, isCacheRetention, ensureToolTurnInvariants, findToolByName, isTextBlock, MODEL_OUTPUT_INVALID_CAUSES, quoteDataLabel, relayedTextOf, renderContentBlock, renderUserAttachmentView, SECOND_RESULT_SEPARATOR, snapshotActorAssertion, stampStreamDrops, streamDropsOf, streamDropTurnOf, stripEngineMetadata, TOOL_TURN_INCOMPLETE_CAUSES, TOOL_TURN_REPAIR_DROPS, toolNameIndex, userAttachmentOf } from "../engine/llm/index.js";
|
|
8
8
|
export type { ActorAssertion, ChangedFilesNotice, UserAttachmentKind, UserAttachmentObservation, UserAttachmentOutcome, UserAttachmentSupply, UserMessageAttachment, AnthropicMessagesCompat, OpenAICompletionsCompat, OpenAIResponsesCompat, AssistantMessage, AssistantMessageDiagnostic, AssistantMessageEvent, CacheRetention, CompleteSimpleFn, Context, DocumentContent, ImageContent, Message, Model, ModelOutputInvalid, ModelOutputInvalidCause, OutputLimit, PerModelAuth, ResilienceOptions, RouteAdjudication, RouteCredential, RouteCredentialSource, RoutePairingConfig, RoutePairingPosture, RouteRefusalCode, RouteRefusalDetail, RouteUnavailableDetail, SimpleStreamOptions, StallTimeouts, StopReason, StreamFn, TextContent, ThinkingContent, Tool, ToolCall, ToolDescriptionVariant, ToolResultMessage, StreamDrop, StreamDropCause, StreamDropTurn, ToolTurnIncompleteCause, ToolTurnRepair, Usage, UserMessage, RowRewrittenBy, } from "../engine/llm/index.js";
|
|
9
9
|
export type { RejectedImageRemoval } from "../engine/llm/rejected-images.js";
|
|
10
10
|
export { MEDIA_REMOVED_REASONS, mediaRemovedPlaceholder, type MediaRemovedReason } from "../engine/llm/media-removed.js";
|
package/dist/internal/llm.js
CHANGED
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
export { answeredWithoutModel, CACHE_RETENTION_WORDS, changedFilesNoticesOf, createAssistantMessageEventStream, flattenedUserText, DATA_LABEL_UNSAFE, isCacheRetention, ensureToolTurnInvariants, findToolByName, isTextBlock, MODEL_OUTPUT_INVALID_CAUSES, quoteDataLabel, renderContentBlock, renderUserAttachmentView, SECOND_RESULT_SEPARATOR, snapshotActorAssertion, stampStreamDrops, streamDropsOf, streamDropTurnOf, stripEngineMetadata, TOOL_TURN_INCOMPLETE_CAUSES, TOOL_TURN_REPAIR_DROPS, toolNameIndex, userAttachmentOf } from "../engine/llm/index.js";
|
|
1
|
+
export { answeredWithoutModel, CACHE_RETENTION_WORDS, changedFilesNoticesOf, createAssistantMessageEventStream, flattenedUserText, DATA_LABEL_UNSAFE, isCacheRetention, ensureToolTurnInvariants, findToolByName, isTextBlock, MODEL_OUTPUT_INVALID_CAUSES, quoteDataLabel, relayedTextOf, renderContentBlock, renderUserAttachmentView, SECOND_RESULT_SEPARATOR, snapshotActorAssertion, stampStreamDrops, streamDropsOf, streamDropTurnOf, stripEngineMetadata, TOOL_TURN_INCOMPLETE_CAUSES, TOOL_TURN_REPAIR_DROPS, toolNameIndex, userAttachmentOf } from "../engine/llm/index.js";
|
|
2
2
|
export { MEDIA_REMOVED_REASONS, mediaRemovedPlaceholder } from "../engine/llm/media-removed.js";
|
|
@@ -3,10 +3,13 @@ import { readFileSync } from "node:fs";
|
|
|
3
3
|
import { isAbsolute, resolve, sep } from "node:path";
|
|
4
4
|
import { combinePolicies } from "../core/tool-policy.js";
|
|
5
5
|
import { delimitUntrusted } from "../core/untrusted-text.js";
|
|
6
|
+
import { receivePeerDeclarations } from "../core/locked-config.js";
|
|
7
|
+
import { receiveHeldDeclarations } from "../core/runner/leg-receipt.js";
|
|
6
8
|
import { isDurablePause } from "../agents/suspend-guard.js";
|
|
7
9
|
import { terminalProjection } from "../core/runner/terminal-projection.js";
|
|
8
10
|
import { writeTargetPath } from "../tools/fs/safety.js";
|
|
9
11
|
import { callTargetViewsOf } from "../core/effective-path-target.js";
|
|
12
|
+
import { judgePathRows } from "../core/path-guard-rows.js";
|
|
10
13
|
import { captureBaseline, resolveFrozenPaths, restoreFrozenPaths, runOracle, snapshotFrozenPaths, specError, } from "../core/spec-contract.js";
|
|
11
14
|
import { isProtectedWrite } from "../core/tool-registry.js";
|
|
12
15
|
const RUN_SPEC_ORACLE_GATE = "run-spec-oracle-gate";
|
|
@@ -20,6 +23,7 @@ const pathKey = (p) => {
|
|
|
20
23
|
};
|
|
21
24
|
export function frozenDenyPolicy(rootDir, frozenResolved) {
|
|
22
25
|
const frozen = new Set(frozenResolved.map(pathKey));
|
|
26
|
+
const row = { reach: (v) => (frozen.has(pathKey(v.path)) ? { reach: "reached" } : { reach: "not_reached" }) };
|
|
23
27
|
return {
|
|
24
28
|
check(req) {
|
|
25
29
|
if (!isProtectedWrite(req))
|
|
@@ -28,8 +32,7 @@ export function frozenDenyPolicy(rootDir, frozenResolved) {
|
|
|
28
32
|
if (views === undefined || views.views.length === 0)
|
|
29
33
|
return { action: "allow" };
|
|
30
34
|
const raw = writeTargetPath(req);
|
|
31
|
-
|
|
32
|
-
if (hit) {
|
|
35
|
+
if (judgePathRows([row], views, "tighten")?.view !== undefined) {
|
|
33
36
|
return { action: "deny", message: `${typeof raw === "string" && raw.length > 0 ? raw : views.views[0].path} is part of the frozen specification surface (read-only).` };
|
|
34
37
|
}
|
|
35
38
|
return { action: "allow" };
|
|
@@ -81,6 +84,8 @@ export async function runSpec(runner, contract, opts) {
|
|
|
81
84
|
const rootDir = resolve(opts.rootDir);
|
|
82
85
|
const specText = loadSpecText(contract, rootDir);
|
|
83
86
|
const startedAt = Date.now();
|
|
87
|
+
receivePeerDeclarations(opts.taskSpec, {});
|
|
88
|
+
receiveHeldDeclarations(opts.taskSpec);
|
|
84
89
|
const frozenResolved = resolveFrozenPaths(rootDir, contract.frozenPaths);
|
|
85
90
|
const snapshot = snapshotFrozenPaths(frozenResolved);
|
|
86
91
|
const noticeSeat = opts.onNotice !== undefined ? { onNotice: opts.onNotice } : {};
|