@sema-agent/core 7.70.0 → 7.71.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 +728 -0
- package/dist/agents/agent-transcript-tool.js +43 -19
- package/dist/agents/inherited-tool-pool.d.ts +5 -1
- package/dist/agents/inherited-tool-pool.js +6 -0
- package/dist/agents/retain-ledger.js +2 -0
- package/dist/agents/send-message-tool.d.ts +12 -1
- package/dist/agents/send-message-tool.js +47 -9
- package/dist/agents/subagent.js +31 -10
- package/dist/agents/tool-filter.js +1 -2
- package/dist/agents/verify.js +13 -2
- package/dist/agents/yield-adoption.js +11 -1
- package/dist/brain/claude-model-id.d.ts +11 -0
- package/dist/brain/claude-model-id.js +3 -1
- package/dist/config/catalog.js +10 -1
- package/dist/config/defaults.d.ts +3 -0
- package/dist/config/defaults.js +1 -0
- package/dist/core/allow-entry.js +1 -2
- package/dist/core/ask-origin.d.ts +55 -21
- package/dist/core/ask-origin.js +19 -11
- package/dist/core/ask-question.d.ts +4 -7
- package/dist/core/ask-question.js +2 -4
- package/dist/core/ask-unresolvable-notice.d.ts +17 -3
- package/dist/core/ask-unresolvable-notice.js +18 -4
- package/dist/core/attachment-source.d.ts +1 -1
- package/dist/core/attachment-source.js +2 -0
- package/dist/core/auto-compaction.d.ts +14 -4
- package/dist/core/auto-compaction.js +3 -2
- package/dist/core/auto-strip.js +2 -0
- package/dist/core/caller-text.d.ts +2 -33
- package/dist/core/caller-text.js +2 -23
- package/dist/core/caller-tool-name.js +1 -2
- package/dist/core/canonical-json.d.ts +9 -0
- package/dist/core/canonical-json.js +6 -0
- package/dist/core/checkpoint-features.d.ts +43 -80
- package/dist/core/checkpoint-features.js +10 -20
- package/dist/core/checkpoint-generation.d.ts +89 -19
- package/dist/core/checkpoint-generation.js +89 -14
- package/dist/core/checkpoint-queries.d.ts +95 -15
- package/dist/core/checkpoint-queries.js +108 -7
- package/dist/core/checkpoint-rekey.d.ts +2 -1
- package/dist/core/checkpoint-rekey.js +2 -2
- package/dist/core/checkpoint-requirements.d.ts +7 -6
- package/dist/core/checkpoint-requirements.js +2 -5
- package/dist/core/checkpoint-row-verdict.d.ts +3 -4
- package/dist/core/checkpoint-row-verdict.js +20 -41
- package/dist/core/checkpoint-store.d.ts +65 -41
- package/dist/core/checkpoint-store.js +28 -14
- package/dist/core/command-sandbox.d.ts +5 -3
- package/dist/core/command-sandbox.js +17 -9
- package/dist/core/config-refusal-codes.d.ts +1 -1
- package/dist/core/config-refusal-codes.js +1 -0
- package/dist/core/declaration-words.d.ts +2 -1
- package/dist/core/declaration-words.js +13 -2
- package/dist/core/effective-path-target.d.ts +23 -0
- package/dist/core/effective-path-target.js +15 -1
- package/dist/core/engine-attestation.d.ts +5 -1
- package/dist/core/engine-attestation.js +1 -0
- package/dist/core/engine-capabilities.d.ts +14 -9
- package/dist/core/engine-capabilities.js +1 -1
- package/dist/core/engine-notice.d.ts +62 -32
- package/dist/core/engine-version.js +1 -1
- package/dist/core/entries-not-applied.d.ts +1 -1
- package/dist/core/entries-not-applied.js +1 -0
- package/dist/core/file-history-store.d.ts +95 -11
- package/dist/core/file-history-store.js +117 -19
- package/dist/core/gate-fold.js +13 -7
- package/dist/core/gate-lanes.js +9 -9
- package/dist/core/governance-codes.d.ts +56 -7
- package/dist/core/governance-codes.js +105 -7
- package/dist/core/grant-holder.d.ts +53 -0
- package/dist/core/grant-holder.js +80 -0
- package/dist/core/hooks.d.ts +7 -3
- package/dist/core/hooks.js +2 -2
- package/dist/core/locked-config.d.ts +7 -1
- package/dist/core/locked-config.js +9 -2
- package/dist/core/mcp-call-meta.d.ts +52 -7
- package/dist/core/mcp-call-meta.js +21 -2
- package/dist/core/mcp-host-read.d.ts +1 -1
- package/dist/core/mcp-server-spec.d.ts +18 -0
- package/dist/core/mcp-server-spec.js +1 -0
- package/dist/core/mcp.js +2 -2
- package/dist/core/member-outcome.d.ts +22 -1
- package/dist/core/member-outcome.js +18 -6
- package/dist/core/memory-engine/delegation-settlement.js +5 -5
- package/dist/core/memory-engine/engine.js +19 -19
- package/dist/core/memory-engine/file-backend.d.ts +7 -2
- package/dist/core/memory-engine/file-backend.js +14 -12
- package/dist/core/memory-engine/frontmatter.js +1 -1
- package/dist/core/memory-engine/index.d.ts +1 -0
- package/dist/core/memory-engine/index.js +1 -0
- package/dist/core/memory-engine/layout.d.ts +34 -9
- package/dist/core/memory-engine/layout.js +36 -19
- package/dist/core/memory-engine/memory-deployment.js +8 -8
- package/dist/core/memory-engine/mount-failed-notice.d.ts +8 -5
- package/dist/core/memory-engine/mount-failed-notice.js +5 -2
- package/dist/core/mode-policy.d.ts +5 -0
- package/dist/core/mode-policy.js +6 -0
- package/dist/core/mods/host.d.ts +2 -1
- package/dist/core/mods/host.js +7 -6
- package/dist/core/mods/kernel/index.d.ts +1 -1
- package/dist/core/mods/kernel/index.js +1 -1
- package/dist/core/mods/kernel/registration.d.ts +5 -2
- package/dist/core/mods/kernel/registration.js +19 -3
- package/dist/core/mods/package.d.ts +12 -1
- package/dist/core/mods/package.js +36 -9
- package/dist/core/mods/stations.d.ts +7 -1
- package/dist/core/mods/stations.js +17 -3
- package/dist/core/mods/teammate-stations.d.ts +4 -1
- package/dist/core/mods/teammate-stations.js +1 -1
- package/dist/core/native-signal.d.ts +13 -0
- package/dist/core/native-signal.js +18 -0
- package/dist/core/park-resumability.d.ts +16 -14
- package/dist/core/park-resumability.js +9 -4
- package/dist/core/path-rule-binding.js +1 -1
- package/dist/core/permission-rule-model.d.ts +11 -5
- package/dist/core/permission-rule-model.js +5 -3
- package/dist/core/permission-rule-org.js +1 -1
- package/dist/core/permission-rule-provider.d.ts +5 -1
- package/dist/core/permission-rule-provider.js +6 -1
- package/dist/core/permission-rule-session.d.ts +35 -5
- package/dist/core/permission-rule-session.js +32 -1
- package/dist/core/permission-rule-store.d.ts +5 -1
- package/dist/core/permission-rule-store.js +28 -5
- package/dist/core/permission-rules.d.ts +2 -2
- package/dist/core/permission-rules.js +2 -3
- package/dist/core/principal-name.d.ts +12 -0
- package/dist/core/principal-name.js +6 -2
- package/dist/core/read-root-grant-screen.d.ts +7 -6
- package/dist/core/read-root-grant-screen.js +7 -8
- package/dist/core/remote-env.d.ts +42 -8
- package/dist/core/resume-config-judge.js +1 -1
- package/dist/core/resume-startup-cause.d.ts +19 -4
- package/dist/core/resume-startup-cause.js +25 -6
- package/dist/core/rewind-conversation.d.ts +4 -0
- package/dist/core/rewrite-rejudge.d.ts +9 -1
- package/dist/core/rewrite-rejudge.js +11 -1
- package/dist/core/rule-offer-read.js +3 -2
- package/dist/core/runner/assemble-result.d.ts +21 -11
- package/dist/core/runner/assemble-result.js +24 -4
- package/dist/core/runner/boundary-reminders.d.ts +104 -0
- package/dist/core/runner/boundary-reminders.js +108 -0
- package/dist/core/runner/branch-writeback.d.ts +21 -7
- package/dist/core/runner/branch-writeback.js +44 -6
- package/dist/core/runner/command-sandbox-frame.js +2 -1
- package/dist/core/runner/compact-session.js +11 -4
- package/dist/core/runner/constraint-layers.d.ts +24 -5
- package/dist/core/runner/constraint-layers.js +21 -2
- package/dist/core/runner/continuation-gate.js +3 -1
- package/dist/core/runner/contracts.d.ts +83 -13
- package/dist/core/runner/cross-boundary-lane.js +2 -1
- package/dist/core/runner/delegation-owner.d.ts +246 -45
- package/dist/core/runner/delegation-owner.js +237 -63
- package/dist/core/runner/expire-settle.d.ts +17 -0
- package/dist/core/runner/expire-settle.js +8 -2
- package/dist/core/runner/file-history-request.d.ts +4 -3
- package/dist/core/runner/file-history-request.js +4 -1
- package/dist/core/runner/file-history-restore.d.ts +11 -3
- package/dist/core/runner/file-history-restore.js +11 -3
- package/dist/core/runner/gate-exit.d.ts +22 -1
- package/dist/core/runner/gate-exit.js +12 -14
- package/dist/core/runner/nested-memory-content.js +1 -1
- package/dist/core/runner/nested-memory-lane.d.ts +10 -2
- package/dist/core/runner/nested-memory-lane.js +29 -8
- package/dist/core/runner/own-model-money-door.d.ts +13 -0
- package/dist/core/runner/own-model-money-door.js +17 -0
- package/dist/core/runner/park-commit.d.ts +4 -2
- package/dist/core/runner/park-commit.js +2 -1
- package/dist/core/runner/permission-rule-lanes.d.ts +4 -0
- package/dist/core/runner/permission-rule-lanes.js +7 -0
- package/dist/core/runner/person-path-rows.js +1 -1
- package/dist/core/runner/placement-fence.d.ts +8 -2
- package/dist/core/runner/placement-fence.js +8 -3
- package/dist/core/runner/policy-throw.d.ts +3 -2
- package/dist/core/runner/policy-throw.js +2 -2
- package/dist/core/runner/prepare-acquire-reconcile.d.ts +23 -14
- package/dist/core/runner/prepare-acquire-reconcile.js +33 -15
- package/dist/core/runner/prepare-artifact.d.ts +14 -1
- package/dist/core/runner/prepare-artifact.js +7 -2
- package/dist/core/runner/prepare-ask-lane.d.ts +8 -0
- package/dist/core/runner/prepare-ask-lane.js +14 -5
- package/dist/core/runner/prepare-boundary-parks.js +5 -4
- package/dist/core/runner/prepare-config-doors.d.ts +9 -4
- package/dist/core/runner/prepare-config-doors.js +25 -8
- package/dist/core/runner/prepare-defer-classify.d.ts +8 -4
- package/dist/core/runner/prepare-defer-classify.js +6 -6
- package/dist/core/runner/prepare-execution-env.d.ts +4 -1
- package/dist/core/runner/prepare-execution-env.js +8 -3
- package/dist/core/runner/prepare-file-history.d.ts +26 -0
- package/dist/core/runner/prepare-file-history.js +15 -1
- package/dist/core/runner/prepare-inherited-gate.d.ts +8 -3
- package/dist/core/runner/prepare-inherited-gate.js +9 -2
- package/dist/core/runner/prepare-leg-adoption.d.ts +2 -2
- package/dist/core/runner/prepare-park-ask.js +8 -5
- package/dist/core/runner/prepare-policy-chain.d.ts +5 -0
- package/dist/core/runner/prepare-policy-chain.js +18 -7
- package/dist/core/runner/prepare-prompt-assembly.d.ts +3 -0
- package/dist/core/runner/prepare-prompt-assembly.js +4 -3
- package/dist/core/runner/prepare-suspend-saga.d.ts +4 -1
- package/dist/core/runner/prepare-suspend-saga.js +19 -5
- package/dist/core/runner/prepare-task.d.ts +2 -5
- package/dist/core/runner/prepare-task.js +71 -26
- package/dist/core/runner/prepare-turn-wiring.js +7 -5
- package/dist/core/runner/prepare-workspace-restore.js +59 -28
- package/dist/core/runner/read-root-grant.d.ts +1 -0
- package/dist/core/runner/read-root-grant.js +1 -2
- package/dist/core/runner/resume-admission.d.ts +3 -0
- package/dist/core/runner/resume-admission.js +6 -4
- package/dist/core/runner/resume-apply.js +7 -5
- package/dist/core/runner/resume-claim.d.ts +2 -2
- package/dist/core/runner/resume-claim.js +4 -4
- package/dist/core/runner/resume-policy-outcome.d.ts +1 -1
- package/dist/core/runner/resume-policy-outcome.js +6 -4
- package/dist/core/runner/resume-preflight.d.ts +3 -0
- package/dist/core/runner/resume-preflight.js +10 -3
- package/dist/core/runner/rewind-conversation.js +11 -4
- package/dist/core/runner/rewind-files.js +29 -14
- package/dist/core/runner/rewind-outcome.d.ts +27 -0
- package/dist/core/runner/rewind-outcome.js +14 -0
- package/dist/core/runner/run-attachment-seats.js +2 -1
- package/dist/core/runner/run-clock-and-content.js +2 -0
- package/dist/core/runner/run-identity-wiring.js +2 -0
- package/dist/core/runner/run-leg.js +11 -1
- package/dist/core/runner/run-notification-lane.d.ts +3 -0
- package/dist/core/runner/run-notification-lane.js +2 -2
- package/dist/core/runner/run-settle-and-teardown.d.ts +4 -2
- package/dist/core/runner/run-settle-and-teardown.js +52 -40
- package/dist/core/runner/run-stop-and-final-verify.d.ts +4 -0
- package/dist/core/runner/run-stop-and-final-verify.js +5 -4
- package/dist/core/runner/run-terminal-adoption.d.ts +1 -1
- package/dist/core/runner/run-terminal-adoption.js +3 -3
- package/dist/core/runner/run-turn-boundary.js +7 -0
- package/dist/core/runner/runtask.d.ts +7 -4
- package/dist/core/runner/runtask.js +18 -9
- package/dist/core/runner/session-call-grant-station.d.ts +64 -0
- package/dist/core/runner/session-call-grant-station.js +119 -0
- package/dist/core/runner/session-file-state-replay.js +2 -2
- package/dist/core/runner/session-prompt-seats.d.ts +95 -0
- package/dist/core/runner/session-prompt-seats.js +62 -0
- package/dist/core/runner/session-rule-policy.js +1 -1
- package/dist/core/runner/session-write-ledger.d.ts +8 -0
- package/dist/core/runner/session-write-ledger.js +16 -0
- package/dist/core/runner/side-call-account.js +5 -1
- package/dist/core/runner/stop-tail-notice.d.ts +7 -0
- package/dist/core/runner/stop-tail-notice.js +23 -8
- package/dist/core/runner/stream-reap.js +4 -2
- package/dist/core/runner/stream-settle-backstop.d.ts +1 -1
- package/dist/core/runner/stream-settle-backstop.js +17 -18
- package/dist/core/runner/terminal-account.js +17 -8
- package/dist/core/runner/terminal-projection.d.ts +3 -2
- package/dist/core/runner/terminal-projection.js +1 -1
- package/dist/core/runner/tool-turn-repair-seat.d.ts +2 -2
- package/dist/core/runner/tool-turn-repair-seat.js +12 -7
- package/dist/core/runner/turn-attachments.d.ts +22 -1
- package/dist/core/runner/turn-attachments.js +20 -3
- package/dist/core/runner-deps.d.ts +6 -2
- package/dist/core/secret-env.d.ts +26 -6
- package/dist/core/secret-env.js +6 -6
- package/dist/core/session-call-grant-screen.d.ts +58 -0
- package/dist/core/session-call-grant-screen.js +18 -0
- package/dist/core/session-call-grant.d.ts +93 -0
- package/dist/core/session-call-grant.js +524 -0
- package/dist/core/session-checkout.d.ts +3 -0
- package/dist/core/session-checkout.js +8 -3
- package/dist/core/session-policy-store.d.ts +14 -0
- package/dist/core/session-policy-store.js +16 -2
- package/dist/core/session-store.d.ts +18 -1
- package/dist/core/session-store.js +20 -4
- package/dist/core/session.d.ts +36 -4
- package/dist/core/shared-artifact-reads.d.ts +93 -0
- package/dist/core/shared-artifact-reads.js +94 -0
- package/dist/core/skill-grant.js +1 -1
- package/dist/core/skills-directory.d.ts +9 -45
- package/dist/core/skills-directory.js +9 -722
- package/dist/core/spend-account.js +3 -0
- package/dist/core/store-contracts/checkpoint-store-contract.d.ts +22 -4
- package/dist/core/store-contracts/checkpoint-store-contract.js +363 -29
- package/dist/core/store-contracts/file-history-store-contract.d.ts +11 -3
- package/dist/core/store-contracts/file-history-store-contract.js +62 -2
- package/dist/core/store-contracts/grant-fixture.d.ts +52 -0
- package/dist/core/store-contracts/grant-fixture.js +84 -0
- package/dist/core/store-contracts/session-repo-contract.js +18 -0
- package/dist/core/store-contracts/session-store-contract.d.ts +15 -1
- package/dist/core/store-contracts/session-store-contract.js +211 -2
- package/dist/core/store-contracts/workflow-journal-store-contract.js +47 -8
- package/dist/core/suspend-lane-reasons.d.ts +13 -0
- package/dist/core/suspend-lane-reasons.js +5 -0
- package/dist/core/synthetic-read-verdict.d.ts +5 -3
- package/dist/core/synthetic-read-verdict.js +1 -1
- package/dist/core/task-limits.d.ts +15 -0
- package/dist/core/task-notification.d.ts +33 -7
- package/dist/core/task-notification.js +34 -9
- package/dist/core/task-registry-agent.d.ts +1 -1
- package/dist/core/task-registry-agent.js +18 -7
- package/dist/core/task-registry-shared.d.ts +29 -4
- package/dist/core/task-registry-shared.js +7 -0
- package/dist/core/task-registry.d.ts +21 -1
- package/dist/core/task-registry.js +36 -9
- package/dist/core/task-result.d.ts +55 -1
- package/dist/core/task-spec.d.ts +17 -3
- package/dist/core/terminal-cause.d.ts +68 -5
- package/dist/core/tool-catalog-entries.js +1 -1
- package/dist/core/tool-check-reading.js +2 -1
- package/dist/core/tool-errors.js +1 -0
- package/dist/core/tool-list-grammar.d.ts +0 -47
- package/dist/core/tool-list-grammar.js +1 -75
- package/dist/core/tool-model-gate.d.ts +7 -11
- package/dist/core/tool-model-gate.js +5 -8
- package/dist/core/tool-name-aliases.js +2 -3
- package/dist/core/tool-name-readings.d.ts +4 -0
- package/dist/core/tool-name-readings.js +1 -0
- package/dist/core/tool-policy.d.ts +46 -4
- package/dist/core/tool-policy.js +47 -18
- package/dist/core/tool-result-store.d.ts +0 -24
- package/dist/core/tool-result-store.js +1 -36
- package/dist/core/tool-spec.d.ts +8 -4
- package/dist/core/untrusted-egress.js +2 -2
- package/dist/core/untrusted-text.d.ts +8 -0
- package/dist/core/untrusted-text.js +14 -0
- package/dist/core/user-attachment.d.ts +16 -1
- package/dist/core/user-attachment.js +42 -18
- package/dist/core/wiring-manifest.d.ts +4 -9
- package/dist/core/wiring-manifest.js +1 -1
- package/dist/core/workflow-journal-store.d.ts +55 -8
- package/dist/core/workflow-journal-store.js +34 -10
- package/dist/core/workflow-run-store-contract.js +56 -1
- package/dist/core/workflow-run-store.d.ts +43 -19
- package/dist/core/workflow-run-store.js +17 -2
- package/dist/engine/execution-env/node-execution-env.d.ts +3 -0
- package/dist/engine/execution-env/node-execution-env.js +4 -0
- package/dist/engine/harness/agent-harness.d.ts +10 -5
- package/dist/engine/harness/agent-harness.js +12 -4
- package/dist/engine/harness/types.d.ts +18 -0
- package/dist/engine/llm/tool-turns.d.ts +1 -1
- package/dist/engine/llm/types.d.ts +5 -4
- package/dist/engine/session/memory-repo.d.ts +15 -3
- package/dist/engine/session/memory-repo.js +21 -3
- package/dist/engine/session/memory-storage.d.ts +5 -0
- package/dist/engine/session/memory-storage.js +8 -3
- package/dist/engine/session/repo-utils.d.ts +9 -0
- package/dist/engine/session/repo-utils.js +14 -0
- package/dist/engine/session/storage-base.d.ts +20 -7
- package/dist/engine/session/storage-base.js +13 -1
- package/dist/index.d.ts +37 -19
- package/dist/index.js +30 -15
- package/dist/internal/harness.d.ts +1 -1
- package/dist/internal/harness.js +1 -1
- package/dist/orchestration/run-workflow-tool.d.ts +13 -1
- package/dist/orchestration/run-workflow-tool.js +101 -32
- package/dist/orchestration/workflow-park-adoption.d.ts +309 -92
- package/dist/orchestration/workflow-park-adoption.js +588 -323
- package/dist/orchestration/workflow-tree-id.d.ts +66 -0
- package/dist/orchestration/workflow-tree-id.js +66 -0
- package/dist/orchestration/workflow-types.d.ts +90 -11
- package/dist/orchestration/workflow-types.js +10 -1
- package/dist/orchestration/workflow.d.ts +30 -4
- package/dist/orchestration/workflow.js +424 -114
- package/dist/prompt-assembly/catalog/constitution.js +5 -1
- package/dist/prompt-assembly/catalog/core-behavior.d.ts +3 -4
- package/dist/prompt-assembly/catalog/core-behavior.js +61 -22
- package/dist/prompt-assembly/catalog/environment.js +2 -2
- package/dist/prompt-assembly/catalog/events.d.ts +16 -0
- package/dist/prompt-assembly/catalog/events.js +2 -0
- package/dist/prompt-assembly/catalog/locales/zh-Hans/core-behavior.js +72 -44
- package/dist/prompt-assembly/catalog/locales/zh-Hans/environment.js +2 -2
- package/dist/prompt-assembly/catalog/locales/zh-Hans/events.js +2 -0
- package/dist/prompt-assembly/catalog/schema.d.ts +5 -1
- package/dist/prompt-assembly/catalog/schema.js +2 -0
- package/dist/prompt-assembly/catalog/sections.js +3 -14
- package/dist/prompt-assembly/event-registry.js +2 -0
- package/dist/prompt-assembly/select.js +1 -0
- package/dist/prompt-assembly/tool-catalog.d.ts +10 -7
- package/dist/prompt-assembly/tool-catalog.js +21 -7
- package/dist/prompt-assembly/types.d.ts +3 -0
- package/dist/prompts/default.d.ts +4 -1
- package/dist/prompts/default.js +6 -0
- package/dist/stores/file/checkpoint-store.d.ts +11 -10
- package/dist/stores/file/checkpoint-store.js +36 -10
- package/dist/stores/file/file-history-store.d.ts +6 -0
- package/dist/stores/file/file-history-store.js +21 -4
- package/dist/stores/file/fs-atomic.d.ts +1 -1
- package/dist/stores/file/index.d.ts +14 -4
- package/dist/stores/file/index.js +21 -5
- package/dist/stores/file/process-anchor.d.ts +9 -1
- package/dist/stores/file/session-policy-store.js +2 -17
- package/dist/stores/file/session-store.d.ts +27 -0
- package/dist/stores/file/session-store.js +81 -9
- package/dist/stores/file/workflow-journal-store.d.ts +14 -4
- package/dist/stores/file/workflow-journal-store.js +32 -24
- package/dist/stores/file/workflow-run-store.d.ts +15 -4
- package/dist/stores/file/workflow-run-store.js +76 -0
- package/dist/tools/artifact/artifact-tool.d.ts +10 -3
- package/dist/tools/artifact/artifact-tool.js +16 -1
- package/dist/tools/fs/bash-program-position.d.ts +10 -4
- package/dist/tools/fs/bash-program-position.js +11 -8
- package/dist/tools/fs/bash-readonly-classifier.d.ts +3 -1
- package/dist/tools/fs/bash-readonly-classifier.js +9 -2
- package/dist/tools/fs/find-actions.d.ts +30 -16
- package/dist/tools/fs/find-actions.js +272 -19
- package/dist/tools/fs/fs-bash.js +8 -5
- package/dist/tools/fs/fs-shared.d.ts +0 -29
- package/dist/tools/fs/fs-shared.js +0 -5
- package/dist/tools/fs/fs-write.js +2 -1
- package/dist/tools/fs/read-deny.d.ts +6 -1
- package/dist/tools/fs/read-deny.js +6 -1
- package/dist/tools/fs/read-floor.d.ts +6 -0
- package/dist/tools/fs/read-floor.js +5 -1
- package/dist/tools/fs/removal-actions.d.ts +43 -0
- package/dist/tools/fs/removal-actions.js +25 -0
- package/dist/tools/fs/removal-targets.d.ts +2 -21
- package/dist/tools/fs/removal-targets.js +2 -3
- package/dist/tools/fs/safety.d.ts +37 -1
- package/dist/tools/fs/safety.js +52 -0
- package/dist/tools/fs/shell-climb.d.ts +46 -0
- package/dist/tools/fs/shell-climb.js +79 -0
- package/dist/tools/fs/shell-read-check.js +47 -19
- package/dist/tools/fs/shell-read-establish.js +36 -22
- package/dist/tools/fs/shell-read-judge.d.ts +10 -2
- package/dist/tools/fs/shell-read-judge.js +4 -4
- package/dist/tools/fs/shell-read-plan.d.ts +3 -0
- package/dist/tools/fs/shell-read-plan.js +1 -1
- package/dist/tools/fs/shell-read-workdir.js +3 -2
- package/dist/tools/fs/shell-read-write-targets.d.ts +4 -3
- package/dist/tools/fs/shell-read-write-targets.js +3 -0
- package/package.json +2 -2
- package/test/export-surface.snapshot.json +169 -15
- package/wire-changes/core-stores-sql@7.71.0.json +40 -0
- package/wire-changes/core@7.71.0.json +5827 -0
- package/wire-changes/mods-kernel@7.71.0.json +52 -0
- package/wire-changes/primitives@7.71.0.json +473 -0
- package/wire-changes/wiki-gate@7.71.0.json +40 -0
- package/dist/core/frontmatter-fence.d.ts +0 -10
- package/dist/core/frontmatter-fence.js +0 -6
- package/dist/core/permission-rule-syntax.d.ts +0 -46
- package/dist/core/permission-rule-syntax.js +0 -52
package/dist/index.d.ts
CHANGED
|
@@ -25,8 +25,9 @@ export { SKILL_TOOL_NAME, SKILL_CONTENT_MAX_CHARS, skillsThatLoad } from "./core
|
|
|
25
25
|
export { TOOL_SEARCH_POLICIES, TOOL_SEARCH_DEFAULT_THRESHOLD_PERCENT, TOOL_SEARCH_INVALID_CODE, type ToolSearchSetting, type ToolSearchPolicy, } from "./core/tool-search-setting.js";
|
|
26
26
|
export type { ToolDisclosureSnapshot } from "./core/runner/deferral-census.js";
|
|
27
27
|
export { createSkillsFromDirectory, type SkillsDirectoryOptions, type SkillsDirectoryWarning, type SkillsDirectoryWarningCode, } from "./core/skills-directory.js";
|
|
28
|
+
export { SKILL_NAME_MAX_CHARS, skillNamePattern, SKILL_DESCRIPTION_MAX_CHARS, SKILL_FILE_REFUSAL_REASONS, judgeSkillName, judgeSkillDescription, readSkillFile, type SkillFileRefusalReason, type SkillFileReading, type ReadSkillFileOptions, } from "@sema-agent/primitives";
|
|
28
29
|
export { parseToolListField, type ToolListField, type ToolListFieldEntry, type ToolListFieldProblem, } from "./core/tool-list-grammar.js";
|
|
29
|
-
export { FRONTMATTER_FENCE, isFrontmatterFence, UNCLOSED_FRONTMATTER_REASON } from "
|
|
30
|
+
export { FRONTMATTER_FENCE, isFrontmatterFence, UNCLOSED_FRONTMATTER_REASON } from "@sema-agent/primitives";
|
|
30
31
|
export { REPORT_FINDINGS_TOOL_NAME, type ReportedFinding } from "./core/runner/synthetic-tools.js";
|
|
31
32
|
export { formatToolError, formatZodValidationError, formatValidationPath, truncateError, errorClassOf } from "./core/tool-errors.js";
|
|
32
33
|
export type { WorkerErrorClass } from "./core/tool-errors.js";
|
|
@@ -34,6 +35,7 @@ export { webFetchToolSpec, htmlToText, type WebFetchConfig, createWebSearchTool,
|
|
|
34
35
|
export { compileHostFloor, isLoopbackHost, type HostFloor, type HostFloorDeclaration, type HostFloorPosture, type HostFloorReach } from "./core/host-floor.js";
|
|
35
36
|
export { hostOfUrl, HOST_UNREADABLE_SENTENCE, type HostReading, type HostUnreadableReason } from "./core/host-target.js";
|
|
36
37
|
export { createTodoWriteTool } from "./tools/todo.js";
|
|
38
|
+
export { SHARED_ARTIFACT_READS_SETTINGS, SETTING_NOT_APPLIED_REASONS, resolveSharedArtifactReads, type SharedArtifactReadsSetting, type SharedArtifactReadsLayers, type SharedArtifactReadsDecidedBy, type SettingNotAppliedReason, type SettingNotApplied, type ResolvedSharedArtifactReads, } from "./core/shared-artifact-reads.js";
|
|
37
39
|
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, type ArtifactHostOwnership, type ArtifactCallBinding, type ArtifactAction, type ArtifactPlane, type ArtifactCommitCertainty, type ArtifactPublishContext, type ArtifactListScope, type ArtifactHostFailureCode, type ArtifactResultCode, type ArtifactHost, type ArtifactHostCapabilities, type ArtifactHostCapabilitiesVerdict, type ArtifactCallContext, type ArtifactFileContent, type ArtifactPublishRequest, type ArtifactPublishOutcome, type ArtifactConflictSnapshot, type ArtifactListOutcome, type ArtifactReadOutcome, type ArtifactFilesOutcome, type ArtifactFileOutcome, type ArtifactRef, type ArtifactListRow, } from "./core/artifact-host.js";
|
|
38
40
|
export { createArtifactTool, artifactAttemptId, normalizePublishedPath, mediaTypeOf, type ArtifactToolOptions, type ArtifactLocalRead } from "./tools/artifact/artifact-tool.js";
|
|
39
41
|
export { localArtifactStub, LocalArtifactStub, EVAL_STUB_URL_PREFIX, LOCAL_STUB_MAX_FILE_BYTES, LOCAL_STUB_MAX_TOTAL_BYTES, type LocalArtifactStubOptions } from "./tools/artifact/local-stub.js";
|
|
@@ -105,7 +107,7 @@ export { materializeA2aTools, A2aRpcError, A2A_CALL_REFUSAL_CODES, type Material
|
|
|
105
107
|
export type { A2aInsidePeer, MountedPeersSeat } from "./core/a2a-bound-grant.js";
|
|
106
108
|
export type { AskDestination } from "./core/mcp-server-spec.js";
|
|
107
109
|
export { PROTOCOL_TABLE, MCP_NAMESPACE, A2A_NAMESPACE, protocolOf, type ProtocolNamespace, type ProtocolId } from "@sema-agent/primitives";
|
|
108
|
-
export { InMemorySessionPolicyStore, SessionPolicyError, loosenReasons, normalizeRules, judgeSessionRulesWrite, readSessionRulesShape, SESSION_RULES_GRAMMAR, compileSessionRuleBucket, unreadableDenyEntries, readRuleGrammarStamp, rewriteSessionRules, type SessionRulesRewrite, type SessionRulesRewriteRefusal, type SessionRulesRewriteWayOut, type SessionRuleEntryRef, type SessionRuleReread, type SessionRuleGrammarRefusal, type SessionRuleRereadRefusal, type SessionRuleRereadWay, type SessionRuleLoosenRefusal, type SessionRulesRereadPosture, type SessionRulesInGrammar, type SessionPolicyStoreOptions, type SessionRuleShapeRefusal, type SessionRuleEntryRefusal, type SessionRuleEntryField, type SessionPolicyStore, type SessionPermissionRules, type StoredSessionRules, type SessionRulesRecord, type PutRulesOptions, } from "./core/session-policy-store.js";
|
|
110
|
+
export { InMemorySessionPolicyStore, SessionPolicyError, loosenReasons, normalizeRules, judgeSessionRulesWrite, readSessionRulesShape, sessionRulesPrincipalOf, conjoinSessionRuleRows, type SessionRuleContent, SESSION_RULES_GRAMMAR, compileSessionRuleBucket, unreadableDenyEntries, readRuleGrammarStamp, rewriteSessionRules, type SessionRulesRewrite, type SessionRulesRewriteRefusal, type SessionRulesRewriteWayOut, type SessionRuleEntryRef, type SessionRuleReread, type SessionRuleGrammarRefusal, type SessionRuleRereadRefusal, type SessionRuleRereadWay, type SessionRuleLoosenRefusal, type SessionRulesRereadPosture, type SessionRulesInGrammar, type SessionPolicyStoreOptions, type SessionRuleShapeRefusal, type SessionRuleEntryRefusal, type SessionRuleEntryField, type SessionPolicyStore, type SessionPermissionRules, type StoredSessionRules, type SessionRulesRecord, type PutRulesOptions, } from "./core/session-policy-store.js";
|
|
109
111
|
export { SAFETY_MERGE_CONFORMANCE_CORPUS, type SafetyMergeVector } from "./core/safety-merge-corpus.js";
|
|
110
112
|
export { SAFETY_AXIS_VOCABULARY } from "./core/safety-axis-vocab.js";
|
|
111
113
|
export { createSessionRulePolicy } from "./core/runner/session-rule-policy.js";
|
|
@@ -138,6 +140,7 @@ export { isSecretEnvKey, scrubSecretEnv } from "./core/secret-env.js";
|
|
|
138
140
|
export type { SecretEnvFinding, SecretEnvFindingKind } from "./core/secret-env.js";
|
|
139
141
|
export { declareWithheldEnv, hostChildEnv, hostChildEnvProblem, inheritedHostEnv, inheritEnvPolicyProblem, type HostChildEnv, type HostChildInheritance, type InheritEnvPolicy, type WithheldEnvDeclaration } from "./core/secret-env.js";
|
|
140
142
|
export { judgeWithheldEnv, WITHHELD_ENV_ANSWERS, type WithheldEnvJudgment, type WithheldEnvAnswer } from "./core/secret-env.js";
|
|
143
|
+
export { credentialValueProblemOf } from "./core/secret-env.js";
|
|
141
144
|
export { declarePeerHeldEnv, PEER_HELD_ENV_NOT_TAKEN_REASONS, type PeerHeldEnvAudience, type PeerHeldEnvDeclaration, type PeerHeldEnvNameNotTaken, type PeerHeldEnvNotTakenReason, type PeerHeldEnvReceipt, } from "./core/secret-env.js";
|
|
142
145
|
export { isBlankCredential } from "./core/secret-env.js";
|
|
143
146
|
export { credentialHeaderValues, isCredentialHeaderName, isSchemedCredentialHeader } from "./core/secret-env.js";
|
|
@@ -173,10 +176,12 @@ export { READ_FACE_DEFAULT_DENY_ENTRIES, READ_FACE_BUILTIN_DENY_TABLE, READ_DENY
|
|
|
173
176
|
export { placeReadDenyAtHome } from "./tools/fs/read-deny-home.js";
|
|
174
177
|
export { deploymentFaceClampNotice, FACE_CLAMP_CAUSES, type FaceClampCause, resolveContainmentFace, type ContainmentFace, type ContainmentFaceInputs, type ContainmentFaceKind, type ContainmentFaceLayer, } from "./tools/fs/index.js";
|
|
175
178
|
export { WRITE_PROTECTED_DEFAULT_TABLE, resolveWriteProtectedTable, compileWriteProtection, type WriteProtectedEntry, type WriteProtectedRow, type WriteProtectedKind, type WriteProtectedHit, type WriteProtectionMatcher, type WriteProtectionVerdict, type WriteProtectionViewAbsence, type WriteProtectionJudgeContext, type WriteProtectionCompileOptions, type WriteProtectionCheck, WRITE_PROTECTION_TARGET_VIEWS, type WriteProtectionTargetView, type WriteProtectionMount, } from "./core/write-protect.js";
|
|
176
|
-
export { InMemoryToolResultStore, OFFLOAD_TOOL_NAME, DEFAULT_TOOL_RESULT_THRESHOLD_CHARS, assertSafeToolResultRef, buildToolResultRef, toolResultContentSegment, MAX_MINTED_TOOL_RESULT_REF_CHARS, type ToolResultProvenance, assertToolResultProvenanceMatch, normalizeToolResultProvenance, toolResultProvenanceOf, type ToolResultReadRefusal, ToolResultRefConflictError, TOOL_RESULT_REF_CONFLICT_CODE, ToolResultBytesOverLimitError, TOOL_RESULT_BYTES_OVER_LIMIT_CODE, type ToolResultStore, type ToolResultSeat, rekeyToolResultOwner, type ToolResultRekeyVerdict, type ToolResultSlice, type ToolResultDeletionReport, type ToolResultSessionListing, type ToolResultListedEntry,
|
|
179
|
+
export { InMemoryToolResultStore, OFFLOAD_TOOL_NAME, DEFAULT_TOOL_RESULT_THRESHOLD_CHARS, assertSafeToolResultRef, buildToolResultRef, toolResultContentSegment, MAX_MINTED_TOOL_RESULT_REF_CHARS, type ToolResultProvenance, assertToolResultProvenanceMatch, normalizeToolResultProvenance, toolResultProvenanceOf, type ToolResultReadRefusal, ToolResultRefConflictError, TOOL_RESULT_REF_CONFLICT_CODE, ToolResultBytesOverLimitError, TOOL_RESULT_BYTES_OVER_LIMIT_CODE, type ToolResultStore, type ToolResultSeat, rekeyToolResultOwner, type ToolResultRekeyVerdict, type ToolResultSlice, type ToolResultDeletionReport, type ToolResultSessionListing, type ToolResultListedEntry, } from "./core/tool-result-store.js";
|
|
180
|
+
export { offloadedDetailOf, type OffloadedDetail } from "@sema-agent/primitives";
|
|
181
|
+
export { applyRecordedEdit, type RecordedEdit } from "@sema-agent/primitives";
|
|
177
182
|
export { type OwnerIdentity, ownerIdentityOf, type IdentityReadVerdict, identityReadVerdict, encodePrincipalColumn, decodePrincipalColumn } from "./core/owner-identity.js";
|
|
178
|
-
export { InMemoryCheckpointStore, CheckpointError, CHECKPOINT_ERROR_CODES, isCheckpointErrorCode, type CheckpointErrorCode, SPAWN_RESUME_REFUSAL_CODES, type SpawnResumeRefusalCode, mintCheckpointId, mintCheckpointToken, checkpointVersionOf,
|
|
179
|
-
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, type ActorAssertion, type PendingSteerEntry, type PendingSteerInput, type PendingSteerReply, riskSeverity, buildRiskDescriptor, summarizeCheckpoint, isUnreadableCheckpointSummary, type CheckpointRowVerdict, type RiskDescriptor, type ProbeCause, type ProbeCauseOperands, type CheckpointStore, type CheckpointSummary, type Checkpoint, type CheckpointToken, type CheckpointGate, type CheckpointState, type SerializedCheckpointState, type CheckpointFaultMode, type PendingAction, type ResumeOutcome, type ResolvedOutcome, type ReopenReason, type ResolveExpectation, type TerminalClaimIntent, type TerminalClaimOutcome, type SafetyAxis, type RealApprovalGateBit, type ResourceLedger, RESOURCE_LIMIT_REASONS, type ResourceLimitReason, PLATFORM_LIMIT_REASONS, type PlatformLimitReason, type CheckpointRow, realApprovalOrgFact, resolveCheckpointStore, checkpointStoreIncomplete, } from "./core/checkpoint-store.js";
|
|
183
|
+
export { InMemoryCheckpointStore, CheckpointError, CHECKPOINT_ERROR_CODES, isCheckpointErrorCode, type CheckpointErrorCode, SPAWN_RESUME_REFUSAL_CODES, type SpawnResumeRefusalCode, mintCheckpointId, mintCheckpointToken, checkpointVersionOf, MAX_SUPPORTED_CHECKPOINT_VERSION, debitLedger, remainingBudgetMicroUsd, remainingTokens, winnerFromOutcome, validatePendingSteer, readPendingSteerQueue, appendPendingSteer, judgeParkedSteerRepeat, // #2705 — the queue's one identity judgment (append and the wake entrance read it)
|
|
184
|
+
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, type ActorAssertion, type PendingSteerEntry, type PendingSteerInput, type PendingSteerReply, riskSeverity, buildRiskDescriptor, summarizeCheckpoint, isUnreadableCheckpointSummary, type CheckpointRowVerdict, type RiskDescriptor, type ProbeCause, type ProbeCauseOperands, type CheckpointStore, type CheckpointSummary, type Checkpoint, type CheckpointToken, type CheckpointGate, type CheckpointState, type SerializedCheckpointState, type CheckpointFaultMode, type PendingAction, type ResumeOutcome, type ResolvedOutcome, type ReopenReason, type ResolveExpectation, type TerminalClaimIntent, type TerminalClaimOutcome, type CheckpointWriteOptions, type SafetyAxis, type RealApprovalGateBit, type ResourceLedger, RESOURCE_LIMIT_REASONS, type ResourceLimitReason, PLATFORM_LIMIT_REASONS, type PlatformLimitReason, type CheckpointRow, realApprovalOrgFact, resolveCheckpointStore, checkpointStoreIncomplete, } from "./core/checkpoint-store.js";
|
|
180
185
|
export { MAX_CHECKPOINT_ID_CHARS, trustedCheckpointId, readGateIdentity, CHECKPOINT_ID_MISSING, isCheckpointIdMissing, type CheckpointIdMissing, type GateIdentity, } from "./core/checkpoint-identity.js";
|
|
181
186
|
export { REOPEN_REASONS, RESUME_STARTUP_CAUSES, resumeStartupCauseOf, reopenReasonOf, resumeAgainMayCure, type ResumeStartupCause } from "./core/resume-startup-cause.js";
|
|
182
187
|
export { EXECUTION_OUTCOME_RECORD_WORDS, EXECUTION_RECORD_LEAVES_ROW_UNRECORDED, type ExecutionOutcomeRecordWord, type ExecutionRecordRowFacts, type ExecutionVerdict, ExecutionOutcomeConflictError, checkpointExecutionRecorded, executionRecordDisposition, sameExecutionRecord, executionVerdict, } from "./core/checkpoint-execution-record.js";
|
|
@@ -188,6 +193,7 @@ export { FileUsageWindowStore, type FileUsageWindowStoreOptions } from "./stores
|
|
|
188
193
|
export { ENV_LIFETIME_SUSPEND_MARGIN_MS, USAGE_WINDOW_REAP_MARGIN_MS } from "./core/runner/prepare-task.js";
|
|
189
194
|
export { InMemoryFileHistoryStore, boundaryPublishVerdict } from "./core/file-history-store.js";
|
|
190
195
|
export { FILE_HISTORY_ERROR_CODES, FileHistoryStoreError } from "./core/file-history-store.js";
|
|
196
|
+
export { fileHistoryTooLarge, FILE_HISTORY_LIMIT_SOURCES, type FileHistoryLimitSource, type FileHistorySizeLimit } from "./core/file-history-store.js";
|
|
191
197
|
export { caughtFault, type FileHistoryFault } from "./core/file-history-store.js";
|
|
192
198
|
export { captureFileBackupViaEnv, applyFileRestoreViaEnv } from "./core/file-history-store.js";
|
|
193
199
|
export { modeProvenDifferent as fileHistoryModeProvenDifferent } from "./core/file-history-store.js";
|
|
@@ -220,6 +226,7 @@ export type { InMemoryFileHistoryStoreOptions } from "./core/file-history-store.
|
|
|
220
226
|
export { DEFAULT_FILE_HISTORY_BOUNDARY_KEEP, resolveFileHistoryRetention, fileHistoryBoundariesToKeep } from "./core/file-history-retention.js";
|
|
221
227
|
export type { FileHistoryRetentionPolicy } from "./core/file-history-retention.js";
|
|
222
228
|
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, type AppendLogDescriptorStats, FileStoreLockError, type FileStoreLockErrorCode, readDataRootLocks, type LockReading, type LockHolder, type LockRemedy, type AnchorReading, FileLedgerDamagedError, type LedgerDamagedLine, inspectFileLedgers, setAsideLedgerDamage, type FileLedgerHealth, type FileLedgerName, type LedgerDamageSetAside, processFingerprint, isProcessLive, type ProcessFingerprint, declareDataRoot, type DataRootDeclaration, type FileStorageBackendOptions, type FileStorageCorruptReadInfo, type FileFileHistoryStoreOptions, type FileSessionRepoOptions, type FileCheckpointStoreOptions, type CheckpointLedgerEventKind, type CheckpointLedgerReading, type ReadCheckpointLedgerOptions, } from "./stores/file/index.js";
|
|
229
|
+
export { ANCHOR_DIR as PROCESS_ANCHOR_DIR } from "./stores/file/process-anchor.js";
|
|
223
230
|
export type { ToolFingerprintInput } from "./core/prefix-declaration.js";
|
|
224
231
|
export { maybeCompact, type MaybeCompactOptions, type CompactionPassStart, type CompactionRestoreAsk } from "./core/auto-compaction.js";
|
|
225
232
|
export type { MintedAttachmentFrame } from "./core/user-attachment.js";
|
|
@@ -273,7 +280,7 @@ export { projectHumanInput, buildHumanInputEvent, type HumanInputSource, type Hu
|
|
|
273
280
|
export { USER_ATTACHMENT_SEAT, USER_ATTACHMENT_KINDS, USER_ATTACHMENT_SUPPLIES, USER_ATTACHMENT_OUTCOMES, USER_ATTACHMENTS_MAX, USER_ATTACHMENT_LABEL_MAX, USER_ATTACHMENT_INVALID_REASONS, type UserAttachmentInvalidReason, type UserAttachmentRefusalDetail, type UserAttachmentFieldRef, type UserAttachmentDeclaration, } from "./core/user-attachment.js";
|
|
274
281
|
export { NESTED_MEMORY_LANE, INSTRUCTIONS_WITHHELD_REASONS, type InstructionsWithheldReason } from "./core/runner/nested-memory-lane.js";
|
|
275
282
|
export type { HumanInputAttachment } from "./core/types.js";
|
|
276
|
-
export { TaskRegistry, defaultTaskRegistry, createTaskStopTool, type SemaTaskType, type SemaTaskStatus, type SemaTaskHandle, type ParkedClaimTicket, type BackgroundYieldReport, type BackgroundYieldOptions, type BackgroundUnyieldableReason, type BackgroundYieldLane, PARKED_CLAIM_ROLLBACKS, type ParkedClaimRollback, type TaskAccess, type TaskListRow, type UnifiedTaskOutput, type TaskRetrievalStatus, type StopSource, type RegisterMonitorInput, type MonitorTimers, MONITOR_BATCH_WINDOW_MS, MONITOR_DEFAULT_TIMEOUT_MS, MONITOR_MAX_TIMEOUT_MS, MONITOR_MAX_BATCHES_PER_MINUTE, canAccessWorkflowRun, DURABLE_AGENT_HANDLE_RE, engineAgentName, chosenAgentName, type BackgroundShellHardKillReceipt, } from "./core/task-registry.js";
|
|
283
|
+
export { TaskRegistry, defaultTaskRegistry, createTaskStopTool, type SemaTaskType, SEMA_TASK_TYPES, SEMA_TASK_HANDLE_PREFIXES, type SemaTaskStatus, type SemaTaskHandle, type ParkedClaimTicket, type BackgroundYieldReport, type BackgroundYieldOptions, type BackgroundUnyieldableReason, type BackgroundYieldLane, PARKED_CLAIM_ROLLBACKS, type ParkedClaimRollback, type TaskAccess, type TaskListRow, type UnifiedTaskOutput, type TaskRetrievalStatus, type StopSource, type RegisterMonitorInput, type MonitorTimers, MONITOR_BATCH_WINDOW_MS, MONITOR_DEFAULT_TIMEOUT_MS, MONITOR_MAX_TIMEOUT_MS, MONITOR_MAX_BATCHES_PER_MINUTE, canAccessWorkflowRun, DURABLE_AGENT_HANDLE_RE, engineAgentName, chosenAgentName, type BackgroundShellHardKillReceipt, } from "./core/task-registry.js";
|
|
277
284
|
export { InMemoryMailboxStore, type MailboxStore, type MailboxMessage, type MailboxLease, MailboxStoreError, type MailboxStoreErrorCode, MAILBOX_TOMBSTONED_RECIPIENT_CODE, type MailboxAppendMessage, type MailboxPeerMeta, type MailboxPeerFromMode, type MailboxPeerRecordKind, type MailboxPeerNoticeMeta, type MailboxPeerNoticeState, MAILBOX_PEER_NOTICE_STATES, MAILBOX_PEER_FROM_MODES, MAILBOX_PEER_RECORD_KINDS, MAILBOX_INVALID_PEER_META_CODE, MAILBOX_CROSS_PROCESS_UNSAFE_CODE, readMailboxPeerMeta, mailboxCrossProcessMountVerdict, sessionBoxMountVerdict, type MailboxCrossProcessVerdict, mailboxRecipientLifecycleOf, type MailboxRecipientTombstone, MAILBOX_INVALID_RECORD_ID_CODE, MAILBOX_DUPLICATE_RECORD_ID_CODE, MAILBOX_RECORD_ID_MAX_CHARS, MAILBOX_REPLAY_FACETS, type MailboxReplayFacet, readMailboxRecordId, readMailboxAppend, judgeMailboxAppendById, MAILBOX_MESSAGE_ROW_SHAPE, MAILBOX_ROW_MALFORMED_CODE, mailboxReadablePrefix, type MailboxReadablePrefix, MAILBOX_CONSUMED_ID_WINDOW, type MailboxConsumedRecord, mailboxReplayDigests, type MailboxAckResult, type MailboxDecision, type MailboxDecisionOutcome, MAILBOX_DECISIONS, MAILBOX_INVALID_DECISION_MOVE_CODE, MAILBOX_INVALID_LEASE_OWNER_CODE, assertMailboxLeaseOwner, isMailboxDecision, isMailboxDecisionFinal, isMailboxDecisionDeliverable, mailboxDecisionEdgeAllowed, mailboxDecisionMoveFenced, assertMailboxDecisionMove, moveMailboxDecision, readStoredMailboxDecision, } from "./core/mailbox-store.js";
|
|
278
285
|
export { FileMailboxStore, type FileMailboxStoreOptions } from "./stores/file/mailbox-store.js";
|
|
279
286
|
export { createFileTaskListStore } from "./stores/file/task-list-store.js";
|
|
@@ -334,7 +341,8 @@ export { buildAutoModePrompt, renderAutoModeWindow, renderAutoModeAction, AUTO_M
|
|
|
334
341
|
export { AUTO_MODE_BASE_PROMPT, AUTO_MODE_PERMISSIONS_EXTERNAL } from "./core/auto-mode-prompt-assets.js";
|
|
335
342
|
export { AUTO_MODE_ARMING_RECIPE_VERSION, autoModeArmingRecipeOf, sanitizeAutoModeArmingRecipe, foldAutoModeArming, type AutoModeArmingRecipe, type AutoModeArmingFace, type AutoModeArmingFold, type AutoModeRebuildRefusal, } from "./core/auto-mode-arming.js";
|
|
336
343
|
export { rebuildAutoModeDecider, type AutoModeClassifierCompletion, type AutoModeRebuildOptions, type AutoModeRebuildResult, } from "./core/auto-mode-rebuild.js";
|
|
337
|
-
export { createPermissionRulePolicy, validatePermissionRules, skipsUnreadableRule, toolPolicySkippedRules, type SkippedPermissionRule, parsePermissionRule,
|
|
344
|
+
export { createPermissionRulePolicy, validatePermissionRules, skipsUnreadableRule, toolPolicySkippedRules, type SkippedPermissionRule, parsePermissionRule, formatPermissionRule, // its inverse: a tool name and a content → the rule text that reads back as them (the reference's escapes)
|
|
345
|
+
wildcardMatch, isCoveringRuleName, ruleNameCovers, type PermissionRule, type ParsedPermissionRule, type PermissionRuleIssue, type PermissionRuleCaps, type PermissionRulePolicyOptions, } from "./core/permission-rules.js";
|
|
338
346
|
/**
|
|
339
347
|
* design/179 — persisted ALLOW rules: the standing form of approvals a person already gave.
|
|
340
348
|
*
|
|
@@ -353,14 +361,16 @@ export { createPermissionRulePolicy, validatePermissionRules, skipsUnreadableRul
|
|
|
353
361
|
export { RULE_BEHAVIORS, RULE_BEHAVIOR_PRECEDENCE, RULE_BEHAVIORS_BY_PRECEDENCE, isRuleBehavior, readRowBehavior, adjudicatePersistedRules, adjudicatePersistedPathRules, adjudicatePersistedToolRules, ruleReachesProgramRun, programRunReachOf, PROGRAM_RUN_REACHES, type ProgramRunReachOutcome, pathRuleReachOf, ruleBasesNeeded, PATH_RULE_BASES, PATH_RULE_BASE_LABEL, ruleToolGrammarOf, COMMAND_RULE_TOOL, READ_RULE_TOOL, type PathRuleBase, type PathRuleBases, type RuleBehavior, type PersistedRuleVerdict, parseRuleText, formatRuleText, ruleAdmitsCommand, findAdmittingRule, suggestRulesForCommand, scopeCoversCwd, pathWithinRoot, isRuleLive, renderUntrustedCommandText, stripFormatCharacters, UNCOVERED_SEGMENT_REASON_BASELINE, RULE_OFFERS_ABSENCE_BASELINE, type UncoveredSegmentDetail, PERSISTED_RULE_MATCHES, RULE_OFFER_KINDS, RULE_OFFER_BATCH_MEMBER_KINDS, UNCOVERED_SEGMENT_REASONS, EDITED_RULE_BREADTH_WARNING_CODES, RULE_ADD_ORIGINS, type EditedRuleBreadthWarning, directoryRuleAdmits, BARE_INTERPRETER_NAMES, MAX_RULE_TEXT_CHARS, type PersistedRule, type RuleTombstone, type RuleScope, type RuleDot, type RuleAdd, type RuleAddOrigin, type RuleOffer, type RuleOfferBatchMember, type SegmentRuleSuggestion, type SegmentCoverage, type RuleReject, type RuleRejectCode, type ParsedRule, type PersistedRuleTool, type PersistedRuleMatch, } from "./core/permission-rule-model.js";
|
|
354
362
|
export { removePersistedRule, addPersistedRule, applyTombstones, sameScope, sameRuleIdentity, isValidConsentScope, isValidDurableScope, InMemoryDurableRulePartition, EMPTY_DURABLE_RULE_PARTITION, type DurableRulePartition, type DurableRulePartitionProvider, type RuleWriteOutcome, type StoredRules, type RemoveResult, type AddResult, type PutResult, joinRuleStates, applySyncJoin, type RuleSyncJoinBase, screenRuleSyncState, collectBelowFrontier, ruleSyncVector, joinFrontiers, dotAtOrBelowFrontier, type RuleSyncState, type RuleSyncFrontier, type RuleSyncDrop, type RuleSyncLandingReport, type QuarantinedRuleAdd, PERMISSION_RULE_WRITER, writerOf, foldDelta, addDotsOf, assertDeleteDeltaCarriesNoAdd, assertRedemptionNotQuarantined, assertWriteDeltaScopeDurable, PERMISSION_RULES_LATER_GRAMMAR_CODE, PERMISSION_RULES_DAMAGED_BUCKET_CODE, PERMISSION_RULES_UNREADABLE_BUCKET_CODE, type PermissionRuleWriter, type WritableDurableRulePartition, type RuleWriteDelta, type RuleAddDelta, type RuleTightenAddDelta, type RuleDeleteDelta, type RuleSyncJoinDelta, type RawRuleSyncState, type RedemptionAuthorization, } from "./core/permission-rule-store.js";
|
|
355
363
|
export { readRuleOwner, sameRuleOwner, type RuleOwner, RULE_OWNER_KINDS, } from "./core/rule-owner.js";
|
|
356
|
-
export { judgePrincipalName, principalNameOf, PRINCIPAL_NAME_MAX_CHARS, PRINCIPAL_NAME_MAX_BYTES, PRINCIPAL_NAME_REFUSALS, type PrincipalNameRefusal, type PrincipalNameVerdict, } from "./core/principal-name.js";
|
|
364
|
+
export { judgePrincipalName, principalNameOf, whiteSpaceAtEdgesOf, PRINCIPAL_NAME_MAX_CHARS, PRINCIPAL_NAME_MAX_BYTES, PRINCIPAL_NAME_REFUSALS, type PrincipalNameRefusal, type PrincipalNameVerdict, } from "./core/principal-name.js";
|
|
357
365
|
export { isolationScopeOf, callScopeOf, ANONYMOUS_SCOPE, scopeKeyOf } from "./core/isolation-scope.js";
|
|
358
366
|
export { REKEY_MODES, ONE_STEP_REKEY_MODES, readPrincipalRekeyInput, readScopeRekeyInput, readIdentityRekeyInput, rekeyOwnerIdentity, oneStepRekeyAnswerOf, judgePrincipalRekey, eraseStepOf, type OneStepRekeyMode, type RekeyStamp, type RekeyRowStamp, type RekeyArrivalRecord, type RekeyMarkReading, type PrincipalRekeyKeyState, type PrincipalRekeyWrite, type RekeyMode, type PrincipalRekeyInput, type ScopeRekeyInput, type ScopeRekeyPair, type IdentityRekeyInput, type IdentityRekeyMap, type OwnerIdentityRekeyVerdict, type OneStepRekeyCount, type RekeyPlan, type IdentityRekeyPlan, type RekeyDone, type RekeyConflict, } from "./core/identity-rekey.js";
|
|
359
367
|
export { rekeyCheckpointRow, checkpointRekeySelects, CHECKPOINT_IDENTITY_MEMBERS, type CheckpointRekeyVerdict } from "./core/checkpoint-rekey.js";
|
|
360
368
|
export { syncPermissionRules, parseRuleSyncResponse, PERMISSION_RULE_SYNC_PATH, LOCAL_OWNER_UNSYNCABLE_CODE, type PermissionRuleSyncTransport, type PermissionRuleSyncResult, type RuleSyncRequestBody, type RuleSyncResponseBody, } from "./core/permission-rule-sync.js";
|
|
361
369
|
export { createPermissionRuleStoreProvider, effectivePermissionRules, effectiveOrThrow, ruleSourceOf, type PermissionRuleStore, type PermissionRuleStoreProvider, type PermissionRuleStoreConfig, type EffectivePermissionRules, type EffectivePermissionRule, type RemovedPermissionRule, type RuleSource, } from "./core/permission-rule-provider.js";
|
|
362
370
|
export { RULE_STORE_FAULT_REASONS, type RuleStoreFault, type RuleStoreFaultReason, type RuleStoreSource } from "./core/rule-store-fault.js";
|
|
363
|
-
export { InMemorySessionRulePartition, type SessionRulePartition, type SessionRuleAdd, type SessionRuleApplyResult, } from "./core/permission-rule-session.js";
|
|
371
|
+
export { InMemorySessionRulePartition, type SessionRulePartition, type SessionRuleAdd, type SessionRuleApplyResult, type SessionRuleTarget, type SessionRuleRevokeResult, } from "./core/permission-rule-session.js";
|
|
372
|
+
export { sessionCallGrantOfRow, readCallGrantBinding, type CallGrantBinding, type CallGrantSegment, type CallGrantProgram } from "./core/session-call-grant.js";
|
|
373
|
+
export { SESSION_CALL_GRANT_REJECTIONS, type SessionCallGrantOffer, type SessionCallGrantScreen, type SessionCallGrantRejection, } from "./core/session-call-grant-screen.js";
|
|
364
374
|
export { readShellCommand, isFullyReadable, MAX_SHELL_READ_CHARS, SHELL_WRAPPER_TABLE, type ShellCommandShape, type ShellSegment, type ShellWord, type ShellRedirection, type ShellWrapperName, } from "./core/shell-run-candidates.js";
|
|
365
375
|
export { readOnlyShellVerdict, type ReadOnlyShellVerdict, type ReadOnlyShellOptions } from "./core/read-only-shell.js";
|
|
366
376
|
export { READ_ONLY_FLAG_ARITIES, FLAG_VALUE_ACCEPTS, READ_ONLY_COMMAND_TABLE, READ_ONLY_BARE_PROGRAMS, READ_ONLY_GLOB_PROGRAMS, READ_ONLY_EXACT_FORMS, READ_ONLY_BARE_ONLY, FIND_ACTION_PRIMARIES, FIND_VALUE_PRIMARIES, FIND_NEWER_PRIMARY, READ_ONLY_ENV_NAMES, XARGS_READ_ONLY_TARGETS, type ReadOnlyFlagArity, type ReadOnlyCommandRow, } from "./core/read-only-shell-table.js";
|
|
@@ -373,7 +383,7 @@ export { AdoptionError, assertAdoptionBootGate, readRootAdoptionFile, writeRootA
|
|
|
373
383
|
export { adoptLocalDataRoot, ackAdoptionConfig, witnessAdoptionConfig, listAdoptionQuarantine, readAdoptionStatus, type AdoptionStatus, type AdoptLocalDataRootOptions, type AdoptLocalDataRootResult, type AdoptionCarriageLeg, type AdoptionCarriageLegContext, type AdoptionConfigWitnessReceipt, } from "./stores/file/adoption/adopt.js";
|
|
374
384
|
export { formatHookFeedback, runToolGate, createHookEnvCapabilities, type PersistedRuleHit, type PersistedRuleHitRule, type PersistedRuleUnreadable, type PersistedRuleCoverage, type PersistedRuleAnswer, normalizePersistedRuleHit, type HookInvocationIdentity, type ClassicEventBase, type PreToolUseEvent, type PostToolUseEvent, type PostToolUseFailureEvent, type PostToolBatchEvent, type UserPromptSubmitEvent, type SubagentStartEvent, type StopEvent, type TaskHookEvent, type TeammateIdleEvent, type StopFailureEvent, type SessionStartEvent, type SessionEndEvent, type PreCompactEvent, type PostCompactEvent, type MessageDisplayEvent, type MessageDisplayResult, type StopHookResult, type HookEnvCapabilities, type HookToolOutput, type PreToolUseResult, type PostToolUseResult, type UserPromptSubmitResult, type SubagentStartResult, type HookToolFailure, type PostToolUseFailureResult, type PostToolBatchCall, type PostToolBatchResult, type PreCompactContext, type PreCompactResult, type PostCompactContext, type PermissionDeniedPayload, } from "./core/hooks.js";
|
|
375
385
|
export type { ClassicEventMap, ClassicEventName, ObservedAnswer, EngineModRegistration } from "./core/mods/classic-events.js";
|
|
376
|
-
export { KERNEL_CONTRACT_VERSION, MOD_TIERS, MOD_SEATS, MOD_EVENT_SIDES, MOD_EVENT_TABLE, MODS_INVALID_CODE, MODS_REGISTRATION_REFUSED_CODE, type ModTier, type ModRegistrationTier, type ModSeat, type ModEventSide, type ModEventName, type ModEventRow, type ModStation, type ModRegistration, type ModUses, type On, type ModHandler, type ModHandlerOptions, type ModNext, type ModParticipant, type ModOrigin, type ModTraceEntry, type ModCaughtError, type ModDollarBase, type ModEventPayload, type ModMatcher, type ModAdmissionRecord, type ModTimer, } from "./core/mods/kernel/index.js";
|
|
386
|
+
export { KERNEL_CONTRACT_VERSION, MOD_TIERS, MOD_SEATS, MOD_EVENT_SIDES, MOD_EVENT_TABLE, MODS_INVALID_CODE, MODS_REGISTRATION_REFUSED_CODE, MODS_REGISTRATION_REFUSED_DEPLOYMENT_CODE, type ModTier, type ModRegistrationTier, type ModSeat, type ModEventSide, type ModEventName, type ModEventRow, type ModStation, type ModRegistration, type ModUses, type On, type ModHandler, type ModHandlerOptions, type ModNext, type ModParticipant, type ModOrigin, type ModTraceEntry, type ModCaughtError, type ModDollarBase, type ModEventPayload, type ModMatcher, type ModAdmissionRecord, type ModTimer, } from "./core/mods/kernel/index.js";
|
|
377
387
|
export type { AgentSpawnAnswer, EngineDollar, ModelCompleteBlock, PromptSubmitAnswer, SessionAppendAnswer, SessionCompactAnswer, SessionSendAnswer, SessionUsage, SessionVersion, ToolCallAnswer } from "./core/mods/dollar.js";
|
|
378
388
|
export type { ContextOccupancy } from "./core/mods/lifecycle-stations.js";
|
|
379
389
|
export { admitModChain, promptScreenDeclaredBy } from "./core/mods/stations.js";
|
|
@@ -381,12 +391,13 @@ export { mergeStopAnswers } from "./core/mods/stop-answers.js";
|
|
|
381
391
|
export { SESSION_APPEND_DOORS, SESSION_APPEND_ORIGIN_KINDS, type SessionAppendDoor, type SessionAppendOrigin } from "./core/mods/session-append.js";
|
|
382
392
|
export { SESSION_RECEIVE_ORIGIN_KINDS, type SessionReceiveOrigin } from "./core/mods/session-receive.js";
|
|
383
393
|
export { SESSION_SEND_ORIGIN_KINDS, type SessionSendOrigin } from "./core/mods/session-send.js";
|
|
384
|
-
export { loadModPackage, type ModPackageHost, type ModPackageRegistration } from "./core/mods/package.js";
|
|
394
|
+
export { loadModPackage, type ModPackageHost, type ModPackageRegistration, type ModPackageUnreadKey } from "./core/mods/package.js";
|
|
385
395
|
export { CREDENTIAL_REF_KINDS, CREDENTIAL_REF_TRUST, CREDENTIAL_REF_TEXT_MAX, CREDENTIAL_REF_MAP_MAX, CREDENTIAL_REF_PROBLEM_REASONS, readCredentialRef, type CredentialRef, type CredentialRefKind, type CredentialRefRequestAdmission, type CredentialRefProblem, type CredentialRefProblemReason, type CredentialRefReading, } from "@sema-agent/primitives";
|
|
386
396
|
export { composeMemoryBlock, composeLayeredMemoryBlock, normalizeMemorySpec, type NormalizedMemorySpec, type MemorySpecInput, firstSentence, detectSecret, MEMORY_PROJECT_KEY_ABSENT_REASONS, type MemoryProjectKeyAbsentReason, type MemoryProjectKey, } from "./core/memory.js";
|
|
387
|
-
export { MemoryEngine, FileMemoryEngineBackend, readMemoryLedgerForm, memoryBackendContract, assertMemoryBackendSearchEquivalence, type MemoryBackendContractHooks, memoryGovernanceStoreContract, type MemoryGovernanceStoreContractHooks, buildMemoryInstruction, writableRootOf, truncateIndex, scanEntryFiles, deriveRepoKey, deriveRepoMemoryDir, deriveControlPlaneDir, deriveRepoControlPlaneDir, resolveMemoryEngineRoot, scopeDirName, ControlPlaneCorruptError, parseEntryFile, serializeEntryFile, computeEntryRev, entryFromFile,
|
|
397
|
+
export { MemoryEngine, FileMemoryEngineBackend, readMemoryLedgerForm, memoryBackendContract, assertMemoryBackendSearchEquivalence, type MemoryBackendContractHooks, memoryGovernanceStoreContract, type MemoryGovernanceStoreContractHooks, buildMemoryInstruction, writableRootOf, truncateIndex, scanEntryFiles, deriveRepoKey, deriveRepoMemoryDir, deriveControlPlaneDir, deriveRepoControlPlaneDir, resolveMemoryEngineRoot, scopeDirName, ControlPlaneCorruptError, parseEntryFile, serializeEntryFile, computeEntryRev, entryFromFile, isValidEntryId, // the entry-id grammar a backend outside core judges a key by (the delete evidence of a key it fails carries the marker for such keys)
|
|
398
|
+
MEMORY_ORIGIN_CAUSES, committedOriginOf, originEquals, consolidationExposedFrontmatter, ambiguousOriginRepresentation, type OriginClearanceRow, type OriginClearanceEvent, type OriginClearanceShadow, committedDistilledOf, distilledEquals, type MemoryEntryDistilled, type MemoryEntryDistilledInput, CONSOLIDATION_DEFAULTS, ConsolidationRefusedError, MEMORY_SEARCH_SUPERSEDED_TAG, consolidationTypeEligible, deriveSupersededSet, memorySupersededNote, supersessionFuseCeiling, DELETION_FUSE_FLOOR, fileGovernanceStore, memoryGovernanceDurability, type MemoryGovernanceDurability, deriveShadowedSet, memoryConsolidationRecommendedNotice, memoryConsolidationCommittedNotice, memoryConsolidationConflictNotice, memoryConsolidationIncompleteNotice, memoryConsolidationRefusedNotice, memoryConsolidationWithheldNotice, type ConsolidationGateRead, type ConsolidationGateRow, type ConsolidationIntent, type ConsolidationIntentCredentialRow, type ConsolidationLeaseSeat, type ConsolidationProductProposal, type ConsolidationProposal, type ConsolidationWriteGate, type MemoryConsolidationOptions, type ConsolidationCommitReceipt, type ConsolidationReconcileReport, type ConsolidationResolveReceipt, type ConsolidationPlanSummary, type ConsolidationPlanFoldEvidence, type SessionMemoryStatus, 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, type CleanArmLeakFinding, type CleanArmLeakVerdict, type MemoryDistillerPurityContract, openAiCompatChatSeat, parseJsonAnswer, planParseRepairs, sanitizeLlmGroups, scheduleUnderFuse, type ConsolidationDistillFn, type ConsolidationDriveCycleRow, type ConsolidationDriveEngine, type ConsolidationDriveResult, type ConsolidationFoldState, type DistillerCandidate, type DistillerChatAnswer, type DistillerChatFn, type DistillerChatRequest, type FuseSchedule, type LlmConsolidationPlan, type LlmConsolidationPlanArm, type LlmConsolidationPlanProduct, type LlmDistillerContract, type MintLlmConsolidationPlanResult, type PlanParseRepairs, type SanitizedLlmGroups, CONSOLIDATION_RUN_STOP_REASONS, CONSOLIDATION_WRITE_REFUSED_CODE, runMemoryConsolidationDriver, type ConsolidationDriverEngine, type ConsolidationDriverRunRow, type ConsolidationRunReceipt, type ConsolidationRunStopReason, type ConsolidationWriteJudge, type ConsolidationWriteTarget, type RunMemoryConsolidationOptions, isInstructionEntry, type MemoryEntryOrigin, type MemoryOriginCause, MEMORY_INSTRUCTION_TEMPLATE, MEMORY_RECALL_DISCIPLINE, MEMORY_PREFERENCE_DISCIPLINE, MEMORY_READONLY_NOTICE, MEMORY_CAPTURE_OPTOUT_NOTICE, memoryCaptureOptedOutNotice, memoryCaptureOptOutUnpersistedNotice, CAPTURE_OPTOUT_UNPERSISTED_RETRY, type CaptureOptOutUnpersistedCause, type CaptureOptOutUnpersistedRetry, SESSION_CAPTURE_OPTOUT_DIR, fileSessionCaptureRecordStore, type SessionCaptureOptOutRecord, type SessionCaptureOptOutMarkOutcome, type SessionCaptureRecordStore, sessionRecordBindsIncarnation, usableSessionIncarnation, type SessionIdentityRead, readV2HeaderHints, type V2HeaderHints, LINEAGE_FILE, CHALLENGES_FILE, CHALLENGED_HISTORY_FILE, CHALLENGE_LEDGER_MAX_EVENTS, rebuildStrictControlPlaneLedger, type ControlPlaneRebuildReceipt, type StrictControlPlaneLedger, type ChallengeAssignment, type ChallengeEvent, type ChallengedHistoryRow, type LineagePendingTxn, type LineagePromotion, 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, type MemorySearchDetails, type MemorySearchHit, type CleanMemorySearchHit, type ExposedMemorySearchHit, MEMORY_EXPOSURE_BANNER, MEMORY_EXPOSURE_HANDLE_TAG, memoryExposureIndexRow, type MemoryGetDetails, type MemoryIndexDetails, type MemoryIndexRow, type CleanMemoryIndexRow, type ExposedMemoryIndexRow, 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, type MemoryAnnouncement, type ScanFinding, type MemoryEngineOptions, type MemoryInjection, type EntryProvenanceAccount, type TransferEvidence, type CommittedBinding, type CommittedEntrySnapshot, type CommittedScopeSnapshots, type EntryCustodyReport, erasureSelectHash, type EraseMemoryEntriesInput, type ErasureCarrierAnswer, type ErasureCarrierClass, type ErasureCountAnswer, type ErasureSelect, type ErasedBinding, type MemoryErasureAttestation, computeMemoryBundleHash, type MemoryExportBundle, type MemoryImportReport, type MemoryExportSnapshot, type MemoryBundleImportPlan, type BundleChallengeRow, type BundleLineageRow, type BundlePollutedSession, type MemoryBackend, type MemoryGovernanceStore, MEMORY_GOVERNANCE_DOC_NAMES, type MemoryGovernanceDocName, MEMORY_CONTROL_OBJECT_KINDS, type MemoryControlObjectKind, adoptReplicaControlPlane, replicaControlPlaneStrays, type ControlPlaneAdoptionReport, type ReplicaControlPlaneStrays, type MemoryGovernanceDocs, type ConsolidationTx, type MemoryEntry, type MemoryEntryFrontmatter, type MemoryEntryHeader, type MemoryScopeEnumeration, type ScoredMemoryEntry, type NotePatch, type PatchReport, type MaterializedFile, type MemorySessionHandle, type HarvestReport, type HarvestRejection, type HarvestRejectionCode, type ParsedEntryFile, type ScannedEntryFile, 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, type ParsedScopeKey, migrateScope, type MigrateScopeReport, materializeEntriesToFiles, harvestFilesToPatches, projectionsToWriteBack, screenInboundEntries, REMOTE_HARVEST_PER_FILE_BYTES, REMOTE_MASS_DELETION_FUSE_RATIO, type RemoteMemoryFile, type RemoteMemoryBaseline, type RemoteMaterialization, type RemoteHarvestResult, type InboundEntryFinding, deriveProjectMemoryDir, deriveProjectControlDir, recordProjectIdHint, lookupProjectIdHint, PROJECT_ID_HINTS_FILE, reconcileMemoryEntries, nextSyncBaseline, mergeRecallHits, type MemorySyncCursor, type MemorySyncConflict, type MemorySyncPlan, type RecallSource, syncMemoryScope, memorySyncStoreOf, carriesCredential, type MemorySyncTransport, type MemorySyncRequestBody, type MemorySyncResponseBody, type MemorySyncClientConflict, type SyncMemoryScopeOptions, type MemorySyncClientResult, memorySyncReportOf, memoryTravelGapOf, type MemorySyncLayerReport, type MemorySyncRoundReport, } from "./core/memory-engine/index.js";
|
|
388
399
|
export { createConsolidationWriteJudge, deliverWriteRefusal, type ConsolidationWriteJudgeInput } from "./core/runner/memory-consolidation-write-judge.js";
|
|
389
|
-
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, type StoreFormRefusalCode, type StoreFormRefusalDetail, type StoreFormRefusal, type ScopeHomeForm, type TargetOutsideStoreReason, type StoreAbsentExpectedBy } from "./core/memory-engine/layout.js";
|
|
400
|
+
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, type StoreFormRefusalCode, type StoreFormRefusalDetail, type StoreFormRefusal, type ScopeHomeForm, type TargetOutsideStoreReason, type StoreAbsentExpectedBy, ROOT_ANCHOR_DAMAGED, type RootAnchorRefusalDetail } from "./core/memory-engine/layout.js";
|
|
390
401
|
export { resolveMemoryScopeStore, type MemoryScopeStore, type MemoryScopeStoreInput } from "./core/memory-engine/dual-root.js";
|
|
391
402
|
export { classifyScopePlanes, memoryScopePlaneOf, scopePlanesOf, type ScopePlanes } from "./core/memory-engine/dual-root.js";
|
|
392
403
|
export { createMemoryDeployment, type MemoryDeployment, type MemoryDeploymentInput, type MemoryDeploymentStore, type DeploymentSessionMemoryStatus, } from "./core/memory-engine/memory-deployment.js";
|
|
@@ -449,13 +460,17 @@ export { createRunWorkflowTool, RUN_WORKFLOW_TOOL_NAME, workflowWhenToUseText, r
|
|
|
449
460
|
export { runSideQuery, type SideQuerySpec, type SideQueryResult, type SideQueryToolDef, type SideQueryDeps, type SideQueryMessage } from "./core/side-query.js";
|
|
450
461
|
export { ACCOUNT_ORIGINS, accountRowOfResult, foldAccount, type AccountOrigin, type AccountRow, type AccountTotal, type SessionAccount } from "./core/account-row.js";
|
|
451
462
|
export { PRESENT_PLAN_TOOL_NAME, ENTER_PLAN_MODE_TOOL_NAME } from "./core/present-plan-tool.js";
|
|
452
|
-
export { type WorkflowRunStore, type WorkflowRunSummary, type ReadableWorkflowRunSummary, type DamagedWorkflowRunSummary, summarizeWorkflowRun, isTerminalWorkflowStatus, WorkflowRunStoreError, InMemoryWorkflowRunStore, WORKFLOW_RUN_UPDATE_CAUSES, type WorkflowRunUpdateCause, type WorkflowRunUpdateOptions, WORKFLOW_RUN_ROW_SHAPE, WORKFLOW_RUN_ROW_MALFORMED_CODE, readStoredWorkflowRun, admitWorkflowRun, summarizeStoredWorkflowRun, reapWorkflowRuns, type WorkflowRunTreeStores, type WorkflowRunReapFault, } from "./core/workflow-run-store.js";
|
|
463
|
+
export { type WorkflowRunStore, type WorkflowRunSummary, type ReadableWorkflowRunSummary, type DamagedWorkflowRunSummary, summarizeWorkflowRun, isTerminalWorkflowStatus, WorkflowRunStoreError, InMemoryWorkflowRunStore, WORKFLOW_RUN_UPDATE_CAUSES, type WorkflowRunUpdateCause, type WorkflowRunUpdateOptions, type WorkflowRunUpdateExpect, workflowRunCreationIdOf, WORKFLOW_RUN_ROW_SHAPE, WORKFLOW_RUN_ROW_MALFORMED_CODE, readStoredWorkflowRun, admitWorkflowRun, summarizeStoredWorkflowRun, reapWorkflowRuns, type WorkflowRunTreeStores, type WorkflowRunReapFault, } from "./core/workflow-run-store.js";
|
|
453
464
|
export { WORKFLOW_RUN_STATUSES } from "./orchestration/workflow-types.js";
|
|
465
|
+
export { workflowTreeIdStampOf, type WorkflowTreeIdStamp } from "./orchestration/workflow-tree-id.js";
|
|
466
|
+
export { readWorkflowRunTree, workflowRunTreeOfOne, type WorkflowRunTree } from "./orchestration/workflow-park-adoption.js";
|
|
454
467
|
export { workflowParkHolderOf, type WorkflowParkHolder } from "./orchestration/workflow-types.js";
|
|
468
|
+
export { WORKFLOW_AGENT_STOP_ANSWERS, type WorkflowAgentStopAnswer, type WorkflowAgentStopReceipt } from "./orchestration/workflow-types.js";
|
|
455
469
|
export { type WorkflowParkWait, type WorkflowParkCardState } from "./orchestration/workflow-types.js";
|
|
456
470
|
export { workflowParkWaitOf, readWorkflowParkWaits, type WorkflowParkWaitSeats } from "./orchestration/workflow-park-adoption.js";
|
|
457
471
|
export { WORKFLOW_PARK_UNUSED_REASONS, type WorkflowParkUnusedReason } from "./orchestration/workflow-park-adoption.js";
|
|
458
|
-
export { workflowParkDecisionOf,
|
|
472
|
+
export { workflowParkDecisionOf, type WorkflowParkDecisionState, type WorkflowParkSettlingReason } from "./orchestration/workflow-park-adoption.js";
|
|
473
|
+
export { WORKFLOW_PARK_UNUSED_REASON_CLASS, workflowParkUnusedClassOf, type WorkflowParkUnusedClass, type WorkflowParkUnusedClassRow } from "./orchestration/workflow-park-adoption.js";
|
|
459
474
|
export { WORKFLOW_PARK_SETTLED_DECISIONS_MAX, WORKFLOW_PARK_DECISION_MARK_BYTES_MAX } from "./orchestration/workflow-types.js";
|
|
460
475
|
export { FileWorkflowRunStore, type FileWorkflowRunStoreOptions } from "./stores/file/workflow-run-store.js";
|
|
461
476
|
export { workflowRunStoreContract, type WorkflowRunStoreContractHooks } from "./core/workflow-run-store-contract.js";
|
|
@@ -484,7 +499,7 @@ export { REMOVAL_LIVENESS_WORDS, type RemovalLiveness, RULE_REFUSAL_CODES, type
|
|
|
484
499
|
export { normalizeReadRootCandidate, READ_ROOT_CANDIDATE_DIR_MAX } from "./core/read-root-candidate.js";
|
|
485
500
|
export { FileBackgroundAgentStore, type FileBackgroundAgentStoreOptions } from "./stores/file/background-agent-store.js";
|
|
486
501
|
export { A2A_TASK_STATES, type A2ATaskState, A2A_SEMA_EXTENSIONS, A2A_SEMA_REFUSAL_CODES, type A2ARefusalClass, A2A_SEMA_SKILL_ID_KEY, A2A_SEMA_WAITING_ON_KEY, A2A_WAITING_ON_KINDS, type A2AWaitingOnKind, type A2AWaitingOn, A2A_STATE_CLASSES, type A2AStateClass, A2A_WAITING_FOR, type A2AWaitingFor, type A2AStateClassRow, A2A_STATE_TABLE, type A2AWireStatus, a2aWireStatusOf, a2aStateClassOfRecord, type A2APeerStateReading, readA2APeerState, } from "./core/a2a-task-state.js";
|
|
487
|
-
export { type WorkflowJournalStore, type WorkflowJournalEntry, InMemoryWorkflowJournalStore, callKeyOrdinal, JOURNAL_OVERSIZE_ERROR_CODE, WorkflowJournalOversizeError, assertJournalEntryFits, readWorkflowJournalEntry, type WorkflowJournalEntryReading, WorkflowJournalIncompatibleError, JOURNAL_INCOMPATIBLE_ERROR_CODE, type WorkflowLaunchRecord, type WorkflowLaunchFace, readWorkflowLaunchRecord, assertLaunchRecordFits, sameLaunchRecord, WorkflowLaunchConflictError, WORKFLOW_LAUNCH_CONFLICT_CODE, WorkflowLaunchUnreadableError, WORKFLOW_LAUNCH_UNREADABLE_CODE, } from "./core/workflow-journal-store.js";
|
|
502
|
+
export { type WorkflowJournalStore, type WorkflowJournalEntry, InMemoryWorkflowJournalStore, callKeyOrdinal, JOURNAL_OVERSIZE_ERROR_CODE, WorkflowJournalOversizeError, assertJournalEntryFits, readWorkflowJournalEntry, type WorkflowJournalEntryReading, WorkflowJournalIncompatibleError, JOURNAL_INCOMPATIBLE_ERROR_CODE, type WorkflowLaunchRecord, type WorkflowLaunchFace, readWorkflowLaunchRecord, launchRecordToKeepOrThrow, assertLaunchRecordFits, sameLaunchRecord, WorkflowLaunchConflictError, WORKFLOW_LAUNCH_CONFLICT_CODE, WorkflowLaunchUnreadableError, WORKFLOW_LAUNCH_UNREADABLE_CODE, } from "./core/workflow-journal-store.js";
|
|
488
503
|
export { untrustedEgressForHuman, redactHostLeaks, redactSecrets, boundedRedactedSummary } from "./core/untrusted-egress.js";
|
|
489
504
|
export { REDACTION_MARKS, isRedactionMark, eachRedactionMarkerSpan, redactionMarkerSpans, type RedactionMark, type RedactionMarkName, } from "@sema-agent/primitives";
|
|
490
505
|
export type { Egress, EgressTier } from "./core/untrusted-egress.js";
|
|
@@ -558,7 +573,7 @@ export { createAssistantMessageEventStream } from "./internal/llm.js";
|
|
|
558
573
|
export type { AssistantMessage, AssistantMessageEvent, CompleteSimpleFn, Context, DocumentContent, ImageContent, Message, StopReason, StreamFn, TextContent, ThinkingContent, ToolCall, ToolDescriptionVariant, ToolResultMessage, Usage, UserMessage, UserMessageAttachment, UserAttachmentKind, UserAttachmentObservation, UserAttachmentOutcome, UserAttachmentSupply, ChangedFilesNotice, RowRewrittenBy, } from "./internal/llm.js";
|
|
559
574
|
export type { AgentDefinition, BeforeWriteHook, BeforeWriteRequest, BeforeWriteResult, TrackFileEditHook, TrackEditRequest, TrackEditResult, FileEditedHook, FileEditedNotice, HandsBandOptions, Brain, RouteJudgmentDispatch, BrainStatus, BrainStatusPhase, BrainRetryErrClass, ImageInput, UserAttachment, McpElicitRequest, McpElicitResponse, McpServerSpec, A2aServerSpec, OnElicit, Model, ModelRef, RunnerDeps, ResumePreflightInfo, ResumePreflightVerdict, EngineNotice, RuntimeCaps, BackgroundChildEvent, ContinuationEndedBy, DelegationLifecycleEvent, SkillSpec, TaskEvent, ExtensionRequester, RewriteAuthor, ToolInputRewrite, TaskEventIdentity, ToolActivity, TaskLimits, StaleToolResultOffloadOptions, TaskResult, TerminalCause, PausedCause, EffectiveMemoryScopes, RemoteEnvFailureNote, RefusedAsk, VerdictRefusal, RefusedToolCall, RefusedToolCalls, TaskSpec, DurableApprovalOptIn, InstructionFamilyDeclaration, ShellGateDoctrine, TaskStatus, TaskStream, CompactOutcome, ThinkingLevel, ToolExecuteContext, ToolReturn, ToolSpec, ToolInputVerdict, ToolInputValidationContext, ReversibilityVerdict, ReadRootGrantCandidate, ToolEffect, ToolContentOrigin, WorkflowGovernanceBaseline, DelegationTaskType, } from "./core/types.js";
|
|
560
575
|
export { CONTINUATION_ENDED_BY } from "./core/delegation-frames.js";
|
|
561
|
-
export { MEMBER_OUTCOMES, MEMBER_KINDS, MEMBER_COVERAGES, REFUSALS_LISTED, isMemberOutcomeWord, isMemberOutcome, isMemberCoverage, memberOutcomeOf, memberRefusalsOf, memberCoverageOf, memberLedgerOf, memberOutcomeText, memberRefusalsText, type MemberOutcome, type MemberOutcomeWord, type MemberKind, type MemberCoverage, type MemberRefusals, type MemberFacts, type MemberLedger, type MemberLedgerRow, type Listed, } from "./core/member-outcome.js";
|
|
576
|
+
export { MEMBER_OUTCOMES, MEMBER_KINDS, MEMBER_COVERAGES, RUN_END_CAUSES, REFUSALS_LISTED, isMemberOutcomeWord, isRunEndCause, isMemberOutcome, isMemberCoverage, memberOutcomeOf, memberRefusalsOf, memberCoverageOf, memberLedgerOf, memberOutcomeText, memberRefusalsText, type MemberOutcome, type MemberOutcomeWord, type MemberKind, type MemberCoverage, type RunEndCause, type MemberRefusals, type MemberFacts, type MemberLedger, type MemberLedgerRow, type Listed, } from "./core/member-outcome.js";
|
|
562
577
|
export { agentOutcomeOf } from "./core/background-agent-store.js";
|
|
563
578
|
export { Type } from "typebox";
|
|
564
579
|
export type { TSchema, Static } from "typebox";
|
|
@@ -582,6 +597,7 @@ export { receiveDeclaration, DECLARATION_PATH_RULES } from "./core/mcp-server-sp
|
|
|
582
597
|
export type { DeclarationRead, DeclarationFault, DeclarationPathRule } from "./core/mcp-server-spec.js";
|
|
583
598
|
export type { EngineStorageBackend } from "./core/engine-storage-backend.js";
|
|
584
599
|
export { sessionStoreContract, type SessionStoreContractHooks } from "./core/store-contracts/session-store-contract.js";
|
|
600
|
+
export type { ContractGrants } from "./core/store-contracts/grant-fixture.js";
|
|
585
601
|
export { canonicalJsonStringify } from "./core/canonical-json.js";
|
|
586
602
|
export { parkedApprovalCardOf, type ParkedApprovalCardReading } from "./core/pause-registry.js";
|
|
587
603
|
export { admitSessionPlacement, settledForkOptions } from "./core/session-store.js";
|
|
@@ -590,11 +606,13 @@ export { ownerCell, readOwnerCell } from "./engine/session/repo-utils.js";
|
|
|
590
606
|
export { readPlacementCell, placementCellToWrite } from "./engine/session/repo-utils.js";
|
|
591
607
|
export { selectForkRows, type ForkPoint, type ForkRowShape } from "./engine/session/path-to-root.js";
|
|
592
608
|
export { checkpointIndexFacts, type CheckpointIndexFacts } from "./core/checkpoint-store.js";
|
|
593
|
-
export { checkpointRevOf, checkpointOccMatches, checkpointHolderMatches, type HolderJudge } from "./core/checkpoint-generation.js";
|
|
609
|
+
export { checkpointRevOf, checkpointOccMatches, checkpointHolderMatches, type HolderJudge, type StoreHolderFence } from "./core/checkpoint-generation.js";
|
|
610
|
+
export { encodeGrantHolder, decodeGrantHolder, holderSupersededError, isHolderSuperseded, type GrantHolderParts } from "./core/grant-holder.js";
|
|
594
611
|
export { CARD_FACET_OVERRIDES } from "./core/pause-registry.js";
|
|
595
612
|
export { readRuleOffers, RULE_OFFER_SHAPE_PROBLEMS, type RuleOfferShapeProblem, type RuleOfferRead, type RuleOfferDropped, type RuleOffersReading } from "./core/rule-offer-read.js";
|
|
596
613
|
export { compareOccupants } from "./engine/session/repo-utils.js";
|
|
597
614
|
export { sessionRowMatches } from "./engine/session/repo-utils.js";
|
|
598
615
|
export { sessionLogMarkOf } from "./engine/session/storage-base.js";
|
|
599
616
|
export { readRowExpectationMember } from "./core/runner/session-verb-doors.js";
|
|
600
|
-
export {
|
|
617
|
+
export { delegationOwnerSeat, type DelegationOwnerSeat, type DelegationOwnerReading } from "./core/runner/delegation-owner.js";
|
|
618
|
+
export { CHECKPOINT_LIST_LIMITS, readCheckpointOverdueQuery, readCheckpointSessionQuery, readCheckpointDeleteGuard, checkpointDeadlinePassed, checkpointOverdueAt, checkpointRunSessionOf, storedCheckpointRowRefusal, checkpointRowUnreadable, isCheckpointRowUnreadable, deleteGuardAdmits, selectOverduePage, selectSessionPage, type CheckpointFacet, type CheckpointPage, type CheckpointOverdueQuery, type CheckpointOverdueCursor, type CheckpointOverdueQueryReading, type CheckpointSessionQuery, type CheckpointSessionCursor, type CheckpointSessionQueryReading, type CheckpointRowRead, type CheckpointDeleteGuard, } from "./core/checkpoint-queries.js";
|
package/dist/index.js
CHANGED
|
@@ -8,14 +8,16 @@ export { defineTool } from "./core/tools.js";
|
|
|
8
8
|
export { SKILL_TOOL_NAME, SKILL_CONTENT_MAX_CHARS, skillsThatLoad } from "./core/runner/synthetic-tools.js";
|
|
9
9
|
export { TOOL_SEARCH_POLICIES, TOOL_SEARCH_DEFAULT_THRESHOLD_PERCENT, TOOL_SEARCH_INVALID_CODE, } from "./core/tool-search-setting.js";
|
|
10
10
|
export { createSkillsFromDirectory, } from "./core/skills-directory.js";
|
|
11
|
+
export { SKILL_NAME_MAX_CHARS, skillNamePattern, SKILL_DESCRIPTION_MAX_CHARS, SKILL_FILE_REFUSAL_REASONS, judgeSkillName, judgeSkillDescription, readSkillFile, } from "@sema-agent/primitives";
|
|
11
12
|
export { parseToolListField, } from "./core/tool-list-grammar.js";
|
|
12
|
-
export { FRONTMATTER_FENCE, isFrontmatterFence, UNCLOSED_FRONTMATTER_REASON } from "
|
|
13
|
+
export { FRONTMATTER_FENCE, isFrontmatterFence, UNCLOSED_FRONTMATTER_REASON } from "@sema-agent/primitives";
|
|
13
14
|
export { REPORT_FINDINGS_TOOL_NAME } from "./core/runner/synthetic-tools.js";
|
|
14
15
|
export { formatToolError, formatZodValidationError, formatValidationPath, truncateError, errorClassOf } from "./core/tool-errors.js";
|
|
15
16
|
export { webFetchToolSpec, htmlToText, createWebSearchTool, createSearxngSearchBackend, probeSearchBackend, createWebFetchSummarizer, WEBFETCH_SUMMARY_MAX_CONTENT, WEBFETCH_SUMMARY_GUIDELINES, } from "./tools/web.js";
|
|
16
17
|
export { compileHostFloor, isLoopbackHost } from "./core/host-floor.js";
|
|
17
18
|
export { hostOfUrl, HOST_UNREADABLE_SENTENCE } from "./core/host-target.js";
|
|
18
19
|
export { createTodoWriteTool } from "./tools/todo.js";
|
|
20
|
+
export { SHARED_ARTIFACT_READS_SETTINGS, SETTING_NOT_APPLIED_REASONS, resolveSharedArtifactReads, } from "./core/shared-artifact-reads.js";
|
|
19
21
|
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
22
|
export { createArtifactTool, artifactAttemptId, normalizePublishedPath, mediaTypeOf } from "./tools/artifact/artifact-tool.js";
|
|
21
23
|
export { localArtifactStub, LocalArtifactStub, EVAL_STUB_URL_PREFIX, LOCAL_STUB_MAX_FILE_BYTES, LOCAL_STUB_MAX_TOTAL_BYTES } from "./tools/artifact/local-stub.js";
|
|
@@ -83,7 +85,7 @@ export { WORKFLOW_SIZE_GUIDELINE_AGENT_CAPS } from "./orchestration/workflow-siz
|
|
|
83
85
|
export { ENGINE_AUTHORITY_ENVELOPE_TAGS } from "./core/untrusted-text.js";
|
|
84
86
|
export { materializeA2aTools, A2aRpcError, A2A_CALL_REFUSAL_CODES } from "./core/a2a.js";
|
|
85
87
|
export { PROTOCOL_TABLE, MCP_NAMESPACE, A2A_NAMESPACE, protocolOf } from "@sema-agent/primitives";
|
|
86
|
-
export { InMemorySessionPolicyStore, SessionPolicyError, loosenReasons, normalizeRules, judgeSessionRulesWrite, readSessionRulesShape, SESSION_RULES_GRAMMAR, compileSessionRuleBucket, unreadableDenyEntries, readRuleGrammarStamp, rewriteSessionRules, } from "./core/session-policy-store.js";
|
|
88
|
+
export { InMemorySessionPolicyStore, SessionPolicyError, loosenReasons, normalizeRules, judgeSessionRulesWrite, readSessionRulesShape, sessionRulesPrincipalOf, conjoinSessionRuleRows, SESSION_RULES_GRAMMAR, compileSessionRuleBucket, unreadableDenyEntries, readRuleGrammarStamp, rewriteSessionRules, } from "./core/session-policy-store.js";
|
|
87
89
|
export { SAFETY_MERGE_CONFORMANCE_CORPUS } from "./core/safety-merge-corpus.js";
|
|
88
90
|
export { SAFETY_AXIS_VOCABULARY } from "./core/safety-axis-vocab.js";
|
|
89
91
|
export { createSessionRulePolicy } from "./core/runner/session-rule-policy.js";
|
|
@@ -114,6 +116,7 @@ export { walkSymlinkChain, SYMLINK_CHAIN_MAX_HOPS } from "./engine/execution-env
|
|
|
114
116
|
export { isSecretEnvKey, scrubSecretEnv } from "./core/secret-env.js";
|
|
115
117
|
export { declareWithheldEnv, hostChildEnv, hostChildEnvProblem, inheritedHostEnv, inheritEnvPolicyProblem } from "./core/secret-env.js";
|
|
116
118
|
export { judgeWithheldEnv, WITHHELD_ENV_ANSWERS } from "./core/secret-env.js";
|
|
119
|
+
export { credentialValueProblemOf } from "./core/secret-env.js";
|
|
117
120
|
export { declarePeerHeldEnv, PEER_HELD_ENV_NOT_TAKEN_REASONS, } from "./core/secret-env.js";
|
|
118
121
|
export { isBlankCredential } from "./core/secret-env.js";
|
|
119
122
|
export { credentialHeaderValues, isCredentialHeaderName, isSchemedCredentialHeader } from "./core/secret-env.js";
|
|
@@ -140,9 +143,11 @@ export { READ_FACE_DEFAULT_DENY_ENTRIES, READ_FACE_BUILTIN_DENY_TABLE, READ_DENY
|
|
|
140
143
|
export { placeReadDenyAtHome } from "./tools/fs/read-deny-home.js";
|
|
141
144
|
export { deploymentFaceClampNotice, FACE_CLAMP_CAUSES, resolveContainmentFace, } from "./tools/fs/index.js";
|
|
142
145
|
export { WRITE_PROTECTED_DEFAULT_TABLE, resolveWriteProtectedTable, compileWriteProtection, WRITE_PROTECTION_TARGET_VIEWS, } from "./core/write-protect.js";
|
|
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,
|
|
146
|
+
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, } from "./core/tool-result-store.js";
|
|
147
|
+
export { offloadedDetailOf } from "@sema-agent/primitives";
|
|
148
|
+
export { applyRecordedEdit } from "@sema-agent/primitives";
|
|
144
149
|
export { ownerIdentityOf, identityReadVerdict, encodePrincipalColumn, decodePrincipalColumn } from "./core/owner-identity.js";
|
|
145
|
-
export { InMemoryCheckpointStore, CheckpointError, CHECKPOINT_ERROR_CODES, isCheckpointErrorCode, SPAWN_RESUME_REFUSAL_CODES, mintCheckpointId, mintCheckpointToken, checkpointVersionOf,
|
|
150
|
+
export { InMemoryCheckpointStore, CheckpointError, CHECKPOINT_ERROR_CODES, isCheckpointErrorCode, SPAWN_RESUME_REFUSAL_CODES, mintCheckpointId, mintCheckpointToken, checkpointVersionOf, MAX_SUPPORTED_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";
|
|
146
151
|
export { MAX_CHECKPOINT_ID_CHARS, trustedCheckpointId, readGateIdentity, CHECKPOINT_ID_MISSING, isCheckpointIdMissing, } from "./core/checkpoint-identity.js";
|
|
147
152
|
export { REOPEN_REASONS, RESUME_STARTUP_CAUSES, resumeStartupCauseOf, reopenReasonOf, resumeAgainMayCure } from "./core/resume-startup-cause.js";
|
|
148
153
|
export { EXECUTION_OUTCOME_RECORD_WORDS, EXECUTION_RECORD_LEAVES_ROW_UNRECORDED, ExecutionOutcomeConflictError, checkpointExecutionRecorded, executionRecordDisposition, sameExecutionRecord, executionVerdict, } from "./core/checkpoint-execution-record.js";
|
|
@@ -154,6 +159,7 @@ export { FileUsageWindowStore } from "./stores/file/usage-window-store.js";
|
|
|
154
159
|
export { ENV_LIFETIME_SUSPEND_MARGIN_MS, USAGE_WINDOW_REAP_MARGIN_MS } from "./core/runner/prepare-task.js";
|
|
155
160
|
export { InMemoryFileHistoryStore, boundaryPublishVerdict } from "./core/file-history-store.js";
|
|
156
161
|
export { FILE_HISTORY_ERROR_CODES, FileHistoryStoreError } from "./core/file-history-store.js";
|
|
162
|
+
export { fileHistoryTooLarge, FILE_HISTORY_LIMIT_SOURCES } from "./core/file-history-store.js";
|
|
157
163
|
export { caughtFault } from "./core/file-history-store.js";
|
|
158
164
|
export { captureFileBackupViaEnv, applyFileRestoreViaEnv } from "./core/file-history-store.js";
|
|
159
165
|
export { modeProvenDifferent as fileHistoryModeProvenDifferent } from "./core/file-history-store.js";
|
|
@@ -172,6 +178,7 @@ export { FILE_HISTORY_UNREFERENCED_BLOB_GRACE_MS } from "./core/file-history-sto
|
|
|
172
178
|
export { fileHistoryBlobExchangeOf } from "./core/file-history-store.js";
|
|
173
179
|
export { DEFAULT_FILE_HISTORY_BOUNDARY_KEEP, resolveFileHistoryRetention, fileHistoryBoundariesToKeep } from "./core/file-history-retention.js";
|
|
174
180
|
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";
|
|
181
|
+
export { ANCHOR_DIR as PROCESS_ANCHOR_DIR } from "./stores/file/process-anchor.js";
|
|
175
182
|
export { maybeCompact } from "./core/auto-compaction.js";
|
|
176
183
|
export { brainToRuntime } from "./core/runtime.js";
|
|
177
184
|
export { createSensitivePathPolicy, RECOMMENDED_SENSITIVE_PATTERNS } from "./core/sensitive-path-policy.js";
|
|
@@ -217,7 +224,7 @@ export {} from "./core/checkpoint-store.js";
|
|
|
217
224
|
export { projectHumanInput, buildHumanInputEvent, } from "./core/human-input-projection.js";
|
|
218
225
|
export { USER_ATTACHMENT_SEAT, USER_ATTACHMENT_KINDS, USER_ATTACHMENT_SUPPLIES, USER_ATTACHMENT_OUTCOMES, USER_ATTACHMENTS_MAX, USER_ATTACHMENT_LABEL_MAX, USER_ATTACHMENT_INVALID_REASONS, } from "./core/user-attachment.js";
|
|
219
226
|
export { NESTED_MEMORY_LANE, INSTRUCTIONS_WITHHELD_REASONS } from "./core/runner/nested-memory-lane.js";
|
|
220
|
-
export { TaskRegistry, defaultTaskRegistry, createTaskStopTool, PARKED_CLAIM_ROLLBACKS, MONITOR_BATCH_WINDOW_MS, MONITOR_DEFAULT_TIMEOUT_MS, MONITOR_MAX_TIMEOUT_MS, MONITOR_MAX_BATCHES_PER_MINUTE, canAccessWorkflowRun, DURABLE_AGENT_HANDLE_RE, engineAgentName, chosenAgentName, } from "./core/task-registry.js";
|
|
227
|
+
export { TaskRegistry, defaultTaskRegistry, createTaskStopTool, SEMA_TASK_TYPES, SEMA_TASK_HANDLE_PREFIXES, PARKED_CLAIM_ROLLBACKS, MONITOR_BATCH_WINDOW_MS, MONITOR_DEFAULT_TIMEOUT_MS, MONITOR_MAX_TIMEOUT_MS, MONITOR_MAX_BATCHES_PER_MINUTE, canAccessWorkflowRun, DURABLE_AGENT_HANDLE_RE, engineAgentName, chosenAgentName, } from "./core/task-registry.js";
|
|
221
228
|
export { InMemoryMailboxStore, MailboxStoreError, MAILBOX_TOMBSTONED_RECIPIENT_CODE, MAILBOX_PEER_NOTICE_STATES, MAILBOX_PEER_FROM_MODES, MAILBOX_PEER_RECORD_KINDS, MAILBOX_INVALID_PEER_META_CODE, MAILBOX_CROSS_PROCESS_UNSAFE_CODE, readMailboxPeerMeta, mailboxCrossProcessMountVerdict, sessionBoxMountVerdict, mailboxRecipientLifecycleOf, MAILBOX_INVALID_RECORD_ID_CODE, MAILBOX_DUPLICATE_RECORD_ID_CODE, MAILBOX_RECORD_ID_MAX_CHARS, MAILBOX_REPLAY_FACETS, readMailboxRecordId, readMailboxAppend, judgeMailboxAppendById, MAILBOX_MESSAGE_ROW_SHAPE, MAILBOX_ROW_MALFORMED_CODE, mailboxReadablePrefix, MAILBOX_CONSUMED_ID_WINDOW, mailboxReplayDigests, MAILBOX_DECISIONS, MAILBOX_INVALID_DECISION_MOVE_CODE, MAILBOX_INVALID_LEASE_OWNER_CODE, assertMailboxLeaseOwner, isMailboxDecision, isMailboxDecisionFinal, isMailboxDecisionDeliverable, mailboxDecisionEdgeAllowed, mailboxDecisionMoveFenced, assertMailboxDecisionMove, moveMailboxDecision, readStoredMailboxDecision, } from "./core/mailbox-store.js";
|
|
222
229
|
export { FileMailboxStore } from "./stores/file/mailbox-store.js";
|
|
223
230
|
export { createFileTaskListStore } from "./stores/file/task-list-store.js";
|
|
@@ -264,11 +271,11 @@ export { buildAutoModePrompt, renderAutoModeWindow, renderAutoModeAction, AUTO_M
|
|
|
264
271
|
export { AUTO_MODE_BASE_PROMPT, AUTO_MODE_PERMISSIONS_EXTERNAL } from "./core/auto-mode-prompt-assets.js";
|
|
265
272
|
export { AUTO_MODE_ARMING_RECIPE_VERSION, autoModeArmingRecipeOf, sanitizeAutoModeArmingRecipe, foldAutoModeArming, } from "./core/auto-mode-arming.js";
|
|
266
273
|
export { rebuildAutoModeDecider, } from "./core/auto-mode-rebuild.js";
|
|
267
|
-
export { createPermissionRulePolicy, validatePermissionRules, skipsUnreadableRule, toolPolicySkippedRules, parsePermissionRule, wildcardMatch, isCoveringRuleName, ruleNameCovers, } from "./core/permission-rules.js";
|
|
274
|
+
export { createPermissionRulePolicy, validatePermissionRules, skipsUnreadableRule, toolPolicySkippedRules, parsePermissionRule, formatPermissionRule, wildcardMatch, isCoveringRuleName, ruleNameCovers, } from "./core/permission-rules.js";
|
|
268
275
|
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";
|
|
269
276
|
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";
|
|
270
277
|
export { readRuleOwner, sameRuleOwner, RULE_OWNER_KINDS, } from "./core/rule-owner.js";
|
|
271
|
-
export { judgePrincipalName, principalNameOf, PRINCIPAL_NAME_MAX_CHARS, PRINCIPAL_NAME_MAX_BYTES, PRINCIPAL_NAME_REFUSALS, } from "./core/principal-name.js";
|
|
278
|
+
export { judgePrincipalName, principalNameOf, whiteSpaceAtEdgesOf, PRINCIPAL_NAME_MAX_CHARS, PRINCIPAL_NAME_MAX_BYTES, PRINCIPAL_NAME_REFUSALS, } from "./core/principal-name.js";
|
|
272
279
|
export { isolationScopeOf, callScopeOf, ANONYMOUS_SCOPE, scopeKeyOf } from "./core/isolation-scope.js";
|
|
273
280
|
export { REKEY_MODES, ONE_STEP_REKEY_MODES, readPrincipalRekeyInput, readScopeRekeyInput, readIdentityRekeyInput, rekeyOwnerIdentity, oneStepRekeyAnswerOf, judgePrincipalRekey, eraseStepOf, } from "./core/identity-rekey.js";
|
|
274
281
|
export { rekeyCheckpointRow, checkpointRekeySelects, CHECKPOINT_IDENTITY_MEMBERS } from "./core/checkpoint-rekey.js";
|
|
@@ -276,6 +283,8 @@ export { syncPermissionRules, parseRuleSyncResponse, PERMISSION_RULE_SYNC_PATH,
|
|
|
276
283
|
export { createPermissionRuleStoreProvider, effectivePermissionRules, effectiveOrThrow, ruleSourceOf, } from "./core/permission-rule-provider.js";
|
|
277
284
|
export { RULE_STORE_FAULT_REASONS } from "./core/rule-store-fault.js";
|
|
278
285
|
export { InMemorySessionRulePartition, } from "./core/permission-rule-session.js";
|
|
286
|
+
export { sessionCallGrantOfRow, readCallGrantBinding } from "./core/session-call-grant.js";
|
|
287
|
+
export { SESSION_CALL_GRANT_REJECTIONS, } from "./core/session-call-grant-screen.js";
|
|
279
288
|
export { readShellCommand, isFullyReadable, MAX_SHELL_READ_CHARS, SHELL_WRAPPER_TABLE, } from "./core/shell-run-candidates.js";
|
|
280
289
|
export { readOnlyShellVerdict } from "./core/read-only-shell.js";
|
|
281
290
|
export { READ_ONLY_FLAG_ARITIES, FLAG_VALUE_ACCEPTS, READ_ONLY_COMMAND_TABLE, READ_ONLY_BARE_PROGRAMS, READ_ONLY_GLOB_PROGRAMS, READ_ONLY_EXACT_FORMS, READ_ONLY_BARE_ONLY, FIND_ACTION_PRIMARIES, FIND_VALUE_PRIMARIES, FIND_NEWER_PRIMARY, READ_ONLY_ENV_NAMES, XARGS_READ_ONLY_TARGETS, } from "./core/read-only-shell-table.js";
|
|
@@ -287,7 +296,7 @@ export { adoptFilePermissionRuleStore } from "./stores/file/permission-rule-adop
|
|
|
287
296
|
export { AdoptionError, assertAdoptionBootGate, readRootAdoptionFile, writeRootAdoptionFile, ROOT_ADOPTION_FILE, } from "./stores/file/adoption/marker.js";
|
|
288
297
|
export { adoptLocalDataRoot, ackAdoptionConfig, witnessAdoptionConfig, listAdoptionQuarantine, readAdoptionStatus, } from "./stores/file/adoption/adopt.js";
|
|
289
298
|
export { formatHookFeedback, runToolGate, createHookEnvCapabilities, normalizePersistedRuleHit, } from "./core/hooks.js";
|
|
290
|
-
export { KERNEL_CONTRACT_VERSION, MOD_TIERS, MOD_SEATS, MOD_EVENT_SIDES, MOD_EVENT_TABLE, MODS_INVALID_CODE, MODS_REGISTRATION_REFUSED_CODE, } from "./core/mods/kernel/index.js";
|
|
299
|
+
export { KERNEL_CONTRACT_VERSION, MOD_TIERS, MOD_SEATS, MOD_EVENT_SIDES, MOD_EVENT_TABLE, MODS_INVALID_CODE, MODS_REGISTRATION_REFUSED_CODE, MODS_REGISTRATION_REFUSED_DEPLOYMENT_CODE, } from "./core/mods/kernel/index.js";
|
|
291
300
|
export { admitModChain, promptScreenDeclaredBy } from "./core/mods/stations.js";
|
|
292
301
|
export { mergeStopAnswers } from "./core/mods/stop-answers.js";
|
|
293
302
|
export { SESSION_APPEND_DOORS, SESSION_APPEND_ORIGIN_KINDS } from "./core/mods/session-append.js";
|
|
@@ -296,9 +305,9 @@ export { SESSION_SEND_ORIGIN_KINDS } from "./core/mods/session-send.js";
|
|
|
296
305
|
export { loadModPackage } from "./core/mods/package.js";
|
|
297
306
|
export { CREDENTIAL_REF_KINDS, CREDENTIAL_REF_TRUST, CREDENTIAL_REF_TEXT_MAX, CREDENTIAL_REF_MAP_MAX, CREDENTIAL_REF_PROBLEM_REASONS, readCredentialRef, } from "@sema-agent/primitives";
|
|
298
307
|
export { composeMemoryBlock, composeLayeredMemoryBlock, normalizeMemorySpec, firstSentence, detectSecret, MEMORY_PROJECT_KEY_ABSENT_REASONS, } from "./core/memory.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";
|
|
308
|
+
export { MemoryEngine, FileMemoryEngineBackend, readMemoryLedgerForm, memoryBackendContract, assertMemoryBackendSearchEquivalence, memoryGovernanceStoreContract, buildMemoryInstruction, writableRootOf, truncateIndex, scanEntryFiles, deriveRepoKey, deriveRepoMemoryDir, deriveControlPlaneDir, deriveRepoControlPlaneDir, resolveMemoryEngineRoot, scopeDirName, ControlPlaneCorruptError, parseEntryFile, serializeEntryFile, computeEntryRev, entryFromFile, isValidEntryId, 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";
|
|
300
309
|
export { createConsolidationWriteJudge, deliverWriteRefusal } from "./core/runner/memory-consolidation-write-judge.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";
|
|
310
|
+
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, ROOT_ANCHOR_DAMAGED } from "./core/memory-engine/layout.js";
|
|
302
311
|
export { resolveMemoryScopeStore } from "./core/memory-engine/dual-root.js";
|
|
303
312
|
export { classifyScopePlanes, memoryScopePlaneOf, scopePlanesOf } from "./core/memory-engine/dual-root.js";
|
|
304
313
|
export { createMemoryDeployment, } from "./core/memory-engine/memory-deployment.js";
|
|
@@ -357,13 +366,17 @@ export { createRunWorkflowTool, RUN_WORKFLOW_TOOL_NAME, workflowWhenToUseText, r
|
|
|
357
366
|
export { runSideQuery } from "./core/side-query.js";
|
|
358
367
|
export { ACCOUNT_ORIGINS, accountRowOfResult, foldAccount } from "./core/account-row.js";
|
|
359
368
|
export { PRESENT_PLAN_TOOL_NAME, ENTER_PLAN_MODE_TOOL_NAME } from "./core/present-plan-tool.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";
|
|
369
|
+
export { summarizeWorkflowRun, isTerminalWorkflowStatus, WorkflowRunStoreError, InMemoryWorkflowRunStore, WORKFLOW_RUN_UPDATE_CAUSES, workflowRunCreationIdOf, WORKFLOW_RUN_ROW_SHAPE, WORKFLOW_RUN_ROW_MALFORMED_CODE, readStoredWorkflowRun, admitWorkflowRun, summarizeStoredWorkflowRun, reapWorkflowRuns, } from "./core/workflow-run-store.js";
|
|
361
370
|
export { WORKFLOW_RUN_STATUSES } from "./orchestration/workflow-types.js";
|
|
371
|
+
export { workflowTreeIdStampOf } from "./orchestration/workflow-tree-id.js";
|
|
372
|
+
export { readWorkflowRunTree, workflowRunTreeOfOne } from "./orchestration/workflow-park-adoption.js";
|
|
362
373
|
export { workflowParkHolderOf } from "./orchestration/workflow-types.js";
|
|
374
|
+
export { WORKFLOW_AGENT_STOP_ANSWERS } from "./orchestration/workflow-types.js";
|
|
363
375
|
export {} from "./orchestration/workflow-types.js";
|
|
364
376
|
export { workflowParkWaitOf, readWorkflowParkWaits } from "./orchestration/workflow-park-adoption.js";
|
|
365
377
|
export { WORKFLOW_PARK_UNUSED_REASONS } from "./orchestration/workflow-park-adoption.js";
|
|
366
|
-
export { workflowParkDecisionOf
|
|
378
|
+
export { workflowParkDecisionOf } from "./orchestration/workflow-park-adoption.js";
|
|
379
|
+
export { WORKFLOW_PARK_UNUSED_REASON_CLASS, workflowParkUnusedClassOf } from "./orchestration/workflow-park-adoption.js";
|
|
367
380
|
export { WORKFLOW_PARK_SETTLED_DECISIONS_MAX, WORKFLOW_PARK_DECISION_MARK_BYTES_MAX } from "./orchestration/workflow-types.js";
|
|
368
381
|
export { FileWorkflowRunStore } from "./stores/file/workflow-run-store.js";
|
|
369
382
|
export { workflowRunStoreContract } from "./core/workflow-run-store-contract.js";
|
|
@@ -390,7 +403,7 @@ export { REMOVAL_LIVENESS_WORDS, RULE_REFUSAL_CODES, RULE_WRITE_COMMITTED_WORDS
|
|
|
390
403
|
export { normalizeReadRootCandidate, READ_ROOT_CANDIDATE_DIR_MAX } from "./core/read-root-candidate.js";
|
|
391
404
|
export { FileBackgroundAgentStore } from "./stores/file/background-agent-store.js";
|
|
392
405
|
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";
|
|
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";
|
|
406
|
+
export { InMemoryWorkflowJournalStore, callKeyOrdinal, JOURNAL_OVERSIZE_ERROR_CODE, WorkflowJournalOversizeError, assertJournalEntryFits, readWorkflowJournalEntry, WorkflowJournalIncompatibleError, JOURNAL_INCOMPATIBLE_ERROR_CODE, readWorkflowLaunchRecord, launchRecordToKeepOrThrow, assertLaunchRecordFits, sameLaunchRecord, WorkflowLaunchConflictError, WORKFLOW_LAUNCH_CONFLICT_CODE, WorkflowLaunchUnreadableError, WORKFLOW_LAUNCH_UNREADABLE_CODE, } from "./core/workflow-journal-store.js";
|
|
394
407
|
export { untrustedEgressForHuman, redactHostLeaks, redactSecrets, boundedRedactedSummary } from "./core/untrusted-egress.js";
|
|
395
408
|
export { REDACTION_MARKS, isRedactionMark, eachRedactionMarkerSpan, redactionMarkerSpans, } from "@sema-agent/primitives";
|
|
396
409
|
export { summarizeRedactions } from "./core/untrusted-egress.js";
|
|
@@ -456,7 +469,7 @@ export { ROUTE_ADJUDICATION_CONFORMANCE_CORPUS } from "./brain/route-conformance
|
|
|
456
469
|
export {} from "./brain/timeout.js";
|
|
457
470
|
export { createAssistantMessageEventStream } from "./internal/llm.js";
|
|
458
471
|
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";
|
|
472
|
+
export { MEMBER_OUTCOMES, MEMBER_KINDS, MEMBER_COVERAGES, RUN_END_CAUSES, REFUSALS_LISTED, isMemberOutcomeWord, isRunEndCause, isMemberOutcome, isMemberCoverage, memberOutcomeOf, memberRefusalsOf, memberCoverageOf, memberLedgerOf, memberOutcomeText, memberRefusalsText, } from "./core/member-outcome.js";
|
|
460
473
|
export { agentOutcomeOf } from "./core/background-agent-store.js";
|
|
461
474
|
export { Type } from "typebox";
|
|
462
475
|
export { explainPromptAssembly, describeCatalog } from "./prompt-assembly/explain.js";
|
|
@@ -481,10 +494,12 @@ export { readPlacementCell, placementCellToWrite } from "./engine/session/repo-u
|
|
|
481
494
|
export { selectForkRows } from "./engine/session/path-to-root.js";
|
|
482
495
|
export { checkpointIndexFacts } from "./core/checkpoint-store.js";
|
|
483
496
|
export { checkpointRevOf, checkpointOccMatches, checkpointHolderMatches } from "./core/checkpoint-generation.js";
|
|
497
|
+
export { encodeGrantHolder, decodeGrantHolder, holderSupersededError, isHolderSuperseded } from "./core/grant-holder.js";
|
|
484
498
|
export { CARD_FACET_OVERRIDES } from "./core/pause-registry.js";
|
|
485
499
|
export { readRuleOffers, RULE_OFFER_SHAPE_PROBLEMS } from "./core/rule-offer-read.js";
|
|
486
500
|
export { compareOccupants } from "./engine/session/repo-utils.js";
|
|
487
501
|
export { sessionRowMatches } from "./engine/session/repo-utils.js";
|
|
488
502
|
export { sessionLogMarkOf } from "./engine/session/storage-base.js";
|
|
489
503
|
export { readRowExpectationMember } from "./core/runner/session-verb-doors.js";
|
|
490
|
-
export {
|
|
504
|
+
export { delegationOwnerSeat } from "./core/runner/delegation-owner.js";
|
|
505
|
+
export { CHECKPOINT_LIST_LIMITS, readCheckpointOverdueQuery, readCheckpointSessionQuery, readCheckpointDeleteGuard, checkpointDeadlinePassed, checkpointOverdueAt, checkpointRunSessionOf, storedCheckpointRowRefusal, checkpointRowUnreadable, isCheckpointRowUnreadable, deleteGuardAdmits, selectOverduePage, selectSessionPage, } from "./core/checkpoint-queries.js";
|
|
@@ -17,7 +17,7 @@ export { DEFAULT_CHARS_PER_TOKEN, DEFAULT_COMPACTION_SETTINGS, calculateContextT
|
|
|
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
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";
|
|
20
|
+
export { assertForkTarget, compareOccupants, forkRowCells, forkTargetTaken, frozenRow, getEntriesToFork, importRowCells, incarnationCell, ownerCell, placementCellToWrite, readIncarnationCell, readOwnerCell, readPlacementCell, readRowExpectation, recordedOwnerCells, recordedOwnerName, 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";
|
package/dist/internal/harness.js
CHANGED
|
@@ -5,7 +5,7 @@ export { DEFAULT_CHARS_PER_TOKEN, DEFAULT_COMPACTION_SETTINGS, calculateContextT
|
|
|
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
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";
|
|
8
|
+
export { assertForkTarget, compareOccupants, forkRowCells, forkTargetTaken, frozenRow, getEntriesToFork, importRowCells, incarnationCell, ownerCell, placementCellToWrite, readIncarnationCell, readOwnerCell, readPlacementCell, readRowExpectation, recordedOwnerCells, recordedOwnerName, 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";
|
|
@@ -13,7 +13,7 @@ import type { AgentTool } from "../internal/harness-types.js";
|
|
|
13
13
|
import type { Model } from "../internal/llm.js";
|
|
14
14
|
import type { RunnerSelfSeat } from "../core/runner/contracts.js";
|
|
15
15
|
import type { WorkflowGovernanceBaseline } from "../core/types.js";
|
|
16
|
-
import type
|
|
16
|
+
import { type WorkflowRunStore } from "../core/workflow-run-store.js";
|
|
17
17
|
import type { WorkflowJournalStore } from "../core/workflow-journal-store.js";
|
|
18
18
|
import type { TaskRegistry } from "../core/task-registry.js";
|
|
19
19
|
import { type TaskNotificationPayload } from "../core/task-notification.js";
|
|
@@ -46,6 +46,10 @@ export interface WorkflowCompletionNotifier {
|
|
|
46
46
|
* Runner so a deployment's completion inbox resolves the target session lookup-free. */
|
|
47
47
|
originatingSessionId?: string;
|
|
48
48
|
principal?: string;
|
|
49
|
+
/** The isolation scope the run is filed under — its row's own `WorkflowRun.scope`, the same value under the same name (the
|
|
50
|
+
* scope of the identity the work runs as, else the mount's, else the anonymous scope `"default"`): which tenant / scene the completion is for. Present on
|
|
51
|
+
* every notification an engine of this version sends. */
|
|
52
|
+
scope?: string;
|
|
49
53
|
status: "completed" | "failed";
|
|
50
54
|
/** Redacted + length-bounded — never the host's internal paths/tokens. */
|
|
51
55
|
summary: string;
|
|
@@ -62,6 +66,10 @@ export interface WorkflowCompletionNotifier {
|
|
|
62
66
|
completionId?: string;
|
|
63
67
|
/** See {@link "../core/task-notification.js".TaskNotificationPayload.members} — the same ledger object the frame carries. */
|
|
64
68
|
members?: MemberLedger;
|
|
69
|
+
/** See {@link "../core/task-notification.js".TaskNotificationPayload.errorCode} — on a `failed` run only, and only an engine's
|
|
70
|
+
* word ({@link workflowNotifiedCodeOf}): `workflow.agent_parked` when the run suspended on a park, else the code of its first
|
|
71
|
+
* failed agent. Absent otherwise — a code the script threw stays on the run's record, never here. */
|
|
72
|
+
errorCode?: string;
|
|
65
73
|
}): Promise<void> | void;
|
|
66
74
|
}
|
|
67
75
|
/** design/98 §D.6 — the deployment's hard CEILINGS for an LLM-authored workflow (the tool forces them; a
|
|
@@ -100,6 +108,10 @@ export interface WorkflowLimits {
|
|
|
100
108
|
*/
|
|
101
109
|
sizeGuideline?: WorkflowSizeGuideline;
|
|
102
110
|
}
|
|
111
|
+
/** The code a failed workflow run's completion notification carries (#5182): an engine's word alone — `workflow.agent_parked` when the
|
|
112
|
+
* run suspended on a park (the record's code is the park terminal's alone), else its first failed agent's code; none otherwise (a code
|
|
113
|
+
* the script threw stays on the record and its summary). */
|
|
114
|
+
export declare function workflowNotifiedCodeOf(run: Pick<import("./workflow.js").WorkflowRun, "errorCode" | "agents">): string | undefined;
|
|
103
115
|
/**
|
|
104
116
|
* design/140 §6 1b — pick the LLM-facing guidance text for one named workflow: `whenToUse` when declared,
|
|
105
117
|
* else the description (the agents-side `agentWhenToUseText`/CC `tIl` selection shape, workflows arm —
|