@open-everywhere/core 0.1.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/LICENSE +201 -0
- package/NOTICE +21 -0
- package/README.md +67 -0
- package/agent/access/access-referenced-link-sets.ts +23 -0
- package/agent/access/admin-read-venue.ts +159 -0
- package/agent/access/admin-standing.ts +98 -0
- package/agent/access/analytics-scope.ts +84 -0
- package/agent/access/approval-dedupe.ts +144 -0
- package/agent/access/approval-judge.ts +639 -0
- package/agent/access/approval-preview.ts +118 -0
- package/agent/access/approval-scenarios.ts +48 -0
- package/agent/access/approver-chain.ts +779 -0
- package/agent/access/audience-floor.ts +270 -0
- package/agent/access/aws-output.ts +132 -0
- package/agent/access/aws-screen.ts +198 -0
- package/agent/access/background-tasks.ts +364 -0
- package/agent/access/browser-hosts.ts +151 -0
- package/agent/access/browser-toolkit.ts +271 -0
- package/agent/access/bundle.ts +716 -0
- package/agent/access/capabilities.ts +11 -0
- package/agent/access/chat-dm-grant.ts +241 -0
- package/agent/access/chat-write-grant.ts +194 -0
- package/agent/access/config.ts +132 -0
- package/agent/access/connector-content-origin-state.ts +72 -0
- package/agent/access/connector-credentials.ts +449 -0
- package/agent/access/connector-disclosure.ts +253 -0
- package/agent/access/connector-op-gating.ts +224 -0
- package/agent/access/connector-scope.ts +302 -0
- package/agent/access/consequence.ts +1208 -0
- package/agent/access/credential-bindings-codemod.ts +242 -0
- package/agent/access/credential-endpoints.ts +279 -0
- package/agent/access/credential-grant-ask.ts +115 -0
- package/agent/access/credential-grant-broker.ts +359 -0
- package/agent/access/credential-grant-card.ts +521 -0
- package/agent/access/credential-grant-click.ts +246 -0
- package/agent/access/credential-grant-copy.ts +338 -0
- package/agent/access/credential-grant-flow.ts +735 -0
- package/agent/access/credential-grant-key-shape.ts +59 -0
- package/agent/access/credential-grant-notice.ts +219 -0
- package/agent/access/credential-grant-owner.ts +23 -0
- package/agent/access/credential-grant-reach.ts +81 -0
- package/agent/access/credential-grant-resolution.ts +119 -0
- package/agent/access/credential-grant-revoke.ts +95 -0
- package/agent/access/credential-grant-scope.ts +306 -0
- package/agent/access/credential-grant.ts +284 -0
- package/agent/access/credentials.ts +159 -0
- package/agent/access/dated-read.ts +18 -0
- package/agent/access/delegation-flag.ts +12 -0
- package/agent/access/delegation-mount.ts +28 -0
- package/agent/access/delta.ts +386 -0
- package/agent/access/dispatch-origin-signal.ts +133 -0
- package/agent/access/domain-credentials.ts +115 -0
- package/agent/access/egress-denial-log.ts +111 -0
- package/agent/access/egress-denial-poller.ts +239 -0
- package/agent/access/egress-status.ts +195 -0
- package/agent/access/egress.ts +321 -0
- package/agent/access/enforcement.ts +25 -0
- package/agent/access/eve-patch-probe-boot.ts +91 -0
- package/agent/access/eve-patch-probe.ts +276 -0
- package/agent/access/external-policy.ts +209 -0
- package/agent/access/extra-hosts.ts +31 -0
- package/agent/access/grant-borrow-transport-registry.internal.ts +81 -0
- package/agent/access/grant-room-notice-registry.internal.ts +77 -0
- package/agent/access/grant-schema-pin.ts +38 -0
- package/agent/access/grants-codemod.ts +352 -0
- package/agent/access/group-request.ts +76 -0
- package/agent/access/halt-state.ts +24 -0
- package/agent/access/halt.ts +276 -0
- package/agent/access/host-egress.ts +432 -0
- package/agent/access/human-only-invariants-manifest.ts +172 -0
- package/agent/access/ingestion-binding-manifest.ts +263 -0
- package/agent/access/ingestion-route-inventory.generated.ts +58 -0
- package/agent/access/instructions.ts +89 -0
- package/agent/access/invoker-posture-state.ts +25 -0
- package/agent/access/invoker-posture.ts +96 -0
- package/agent/access/job-posture.ts +83 -0
- package/agent/access/job-session-state.ts +58 -0
- package/agent/access/lean-seat-state.ts +45 -0
- package/agent/access/lean-seat.ts +83 -0
- package/agent/access/lint.ts +638 -0
- package/agent/access/live-delegated-tasks.ts +95 -0
- package/agent/access/loop-breaker.ts +88 -0
- package/agent/access/mcp-call-fence.ts +179 -0
- package/agent/access/member-grant.ts +45 -0
- package/agent/access/member-plane.ts +212 -0
- package/agent/access/native-admin.ts +35 -0
- package/agent/access/native-delegation-state.ts +40 -0
- package/agent/access/network-access.ts +132 -0
- package/agent/access/nullable-optional-fields.ts +184 -0
- package/agent/access/overlay-module.ts +70 -0
- package/agent/access/own-account-gate-manifest.ts +134 -0
- package/agent/access/pane-venue.ts +238 -0
- package/agent/access/pending-delegation-signal.ts +282 -0
- package/agent/access/permission-evidence.ts +627 -0
- package/agent/access/permission-proposal.ts +362 -0
- package/agent/access/platform.ts +14 -0
- package/agent/access/pre-approval-rules.ts +135 -0
- package/agent/access/principal-gate-manifest.ts +830 -0
- package/agent/access/provider-selection-check.ts +130 -0
- package/agent/access/provider-selection.ts +96 -0
- package/agent/access/read-grant.ts +104 -0
- package/agent/access/repo-capabilities.ts +74 -0
- package/agent/access/request.ts +126 -0
- package/agent/access/requester-identity.ts +305 -0
- package/agent/access/requester-messages.ts +52 -0
- package/agent/access/reserved-hosts.ts +11 -0
- package/agent/access/resolver.ts +604 -0
- package/agent/access/resource-capabilities.ts +103 -0
- package/agent/access/resource-grant-manifest.ts +136 -0
- package/agent/access/resource-grant.ts +163 -0
- package/agent/access/result-cap.ts +34 -0
- package/agent/access/result-reduce-model-arm.ts +94 -0
- package/agent/access/result-reduce.ts +104 -0
- package/agent/access/roles.ts +106 -0
- package/agent/access/scope-key.ts +50 -0
- package/agent/access/seat-read-budget.ts +57 -0
- package/agent/access/self-host-egress.ts +103 -0
- package/agent/access/settlement-dispatch-signal.ts +96 -0
- package/agent/access/skill-taint-envelope.ts +94 -0
- package/agent/access/source-gate-manifest.ts +148 -0
- package/agent/access/source-scoped-mount.ts +27 -0
- package/agent/access/subagent-taint.ts +225 -0
- package/agent/access/surface-work-grant.ts +91 -0
- package/agent/access/taint-enforcement.ts +183 -0
- package/agent/access/taint-signal.ts +297 -0
- package/agent/access/taint-tiers.ts +168 -0
- package/agent/access/task-wake-signal.ts +94 -0
- package/agent/access/tenant-admission.ts +191 -0
- package/agent/access/untrusted-projection.ts +273 -0
- package/agent/access/untrusted.ts +132 -0
- package/agent/access/wake-mapping.ts +38 -0
- package/agent/access/web-fetch-fence.ts +81 -0
- package/agent/access/window-gate-manifest.ts +543 -0
- package/agent/access/window-gated.ts +668 -0
- package/agent/access/window-routing.ts +23 -0
- package/agent/access/work-grant.ts +119 -0
- package/agent/access/work-mount-manifest.ts +203 -0
- package/agent/access/worker-capabilities.ts +379 -0
- package/agent/access/worker-capability-index.generated.ts +189 -0
- package/agent/access/worker-continuation.ts +200 -0
- package/agent/access/worker-seat-state.ts +25 -0
- package/agent/access/worker-seat.ts +54 -0
- package/agent/access/worker-toolset-state.ts +65 -0
- package/agent/adapter-api.ts +1795 -0
- package/agent/analytics/compile.ts +461 -0
- package/agent/analytics/execute.ts +166 -0
- package/agent/analytics/registry.ts +302 -0
- package/agent/approvals/access-request.ts +255 -0
- package/agent/approvals/actions.ts +398 -0
- package/agent/approvals/agent-create.ts +272 -0
- package/agent/approvals/arming-context.ts +26 -0
- package/agent/approvals/card-disclosure.ts +53 -0
- package/agent/approvals/card-signal.ts +151 -0
- package/agent/approvals/card-venue.ts +152 -0
- package/agent/approvals/card.ts +121 -0
- package/agent/approvals/chat-dm.ts +63 -0
- package/agent/approvals/chat-post.ts +60 -0
- package/agent/approvals/clicker-floor.ts +106 -0
- package/agent/approvals/decision-authority.internal.ts +114 -0
- package/agent/approvals/decision-wake.ts +122 -0
- package/agent/approvals/domain-exposure.ts +182 -0
- package/agent/approvals/eve-response-policy.ts +48 -0
- package/agent/approvals/flow.ts +2185 -0
- package/agent/approvals/input-response-floor.ts +104 -0
- package/agent/approvals/judge-contradiction.ts +156 -0
- package/agent/approvals/memory-purge.ts +149 -0
- package/agent/approvals/pr-open.ts +172 -0
- package/agent/approvals/review-surface.ts +7 -0
- package/agent/approvals/routine-cancel.ts +57 -0
- package/agent/approvals/routine-create.ts +213 -0
- package/agent/approvals/routine-lifecycle.ts +206 -0
- package/agent/approvals/routine-permission-offer.ts +131 -0
- package/agent/approvals/routine-permission.ts +214 -0
- package/agent/approvals/routine-policy.ts +174 -0
- package/agent/approvals/scope-label.ts +48 -0
- package/agent/approvals/session-checkpoint.ts +80 -0
- package/agent/approvals/session-grant.ts +173 -0
- package/agent/approvals/skill-create.ts +60 -0
- package/agent/approvals/skill-delete.ts +50 -0
- package/agent/approvals/taint-disclosure.ts +42 -0
- package/agent/approvals/ticket-actions.ts +86 -0
- package/agent/approvals/ticket-create.ts +67 -0
- package/agent/approvals/types.ts +48 -0
- package/agent/approvals/webhook-declare.ts +297 -0
- package/agent/approvals/webhook.ts +205 -0
- package/agent/audit/action-registry.ts +1094 -0
- package/agent/audit/audit.ts +105 -0
- package/agent/audit/chain.ts +568 -0
- package/agent/audit/tool-action.ts +286 -0
- package/agent/audit/window-tool-gate.ts +54 -0
- package/agent/audit/worker-toolset.ts +117 -0
- package/agent/blob/hosting.ts +180 -0
- package/agent/channels/access-request-ledger.ts +139 -0
- package/agent/channels/ambient-skip.ts +102 -0
- package/agent/channels/answered-container-ledger.ts +76 -0
- package/agent/channels/approval-card.ts +454 -0
- package/agent/channels/approval-claim-guard.ts +384 -0
- package/agent/channels/attachments.ts +243 -0
- package/agent/channels/aws-sso-callback.ts +9 -0
- package/agent/channels/backscroll-window.ts +145 -0
- package/agent/channels/cancel-note.ts +127 -0
- package/agent/channels/channel-key.ts +56 -0
- package/agent/channels/channel-read.ts +501 -0
- package/agent/channels/chat-turn-audit.ts +23 -0
- package/agent/channels/closing-prose-drop.ts +53 -0
- package/agent/channels/command-registration.ts +165 -0
- package/agent/channels/context-render.ts +206 -0
- package/agent/channels/control-mcp.ts +44 -0
- package/agent/channels/control-read.ts +37 -0
- package/agent/channels/credential-intake-page.ts +12 -0
- package/agent/channels/delegated-provenance.ts +506 -0
- package/agent/channels/dm-audience.ts +346 -0
- package/agent/channels/dm-seat.ts +138 -0
- package/agent/channels/domain-fingerprint.ts +90 -0
- package/agent/channels/egress-spoof.ts +35 -0
- package/agent/channels/engaged-wake.ts +158 -0
- package/agent/channels/engagement.ts +254 -0
- package/agent/channels/entity-actions.ts +186 -0
- package/agent/channels/front-queue.ts +78 -0
- package/agent/channels/generation-retirement.ts +557 -0
- package/agent/channels/halt-per-wake.ts +166 -0
- package/agent/channels/memory-claim-guard.ts +425 -0
- package/agent/channels/name-drop-wake-audit.ts +162 -0
- package/agent/channels/native-wake-retry.ts +62 -0
- package/agent/channels/no-reply-signal.ts +49 -0
- package/agent/channels/normalized-wake.ts +285 -0
- package/agent/channels/oe-oauth-callback.ts +13 -0
- package/agent/channels/own-post-ledger.ts +76 -0
- package/agent/channels/platform-failure.ts +45 -0
- package/agent/channels/policy-pages.ts +15 -0
- package/agent/channels/post-arms.ts +321 -0
- package/agent/channels/proactive-dm-manifest.ts +113 -0
- package/agent/channels/propose-scope.ts +90 -0
- package/agent/channels/question-bridge.ts +594 -0
- package/agent/channels/rate-limit-retry.ts +355 -0
- package/agent/channels/react-signal.ts +26 -0
- package/agent/channels/reaction-ingest.ts +221 -0
- package/agent/channels/read-author-trust.ts +71 -0
- package/agent/channels/read-reach.ts +339 -0
- package/agent/channels/read-scope-audit.ts +127 -0
- package/agent/channels/read-scope-error.ts +5 -0
- package/agent/channels/read-spool.ts +131 -0
- package/agent/channels/reply-edit.ts +208 -0
- package/agent/channels/reply-fold.ts +517 -0
- package/agent/channels/reply-freshness.ts +253 -0
- package/agent/channels/reply-post.ts +502 -0
- package/agent/channels/reply-provenance.ts +804 -0
- package/agent/channels/reply-signal.ts +723 -0
- package/agent/channels/request-claim-guard.ts +532 -0
- package/agent/channels/runtime-code-fingerprint.generated.ts +10 -0
- package/agent/channels/runtime-rotation.ts +224 -0
- package/agent/channels/seat-admission.ts +103 -0
- package/agent/channels/seat-catch-up.ts +482 -0
- package/agent/channels/self-dispatch.ts +349 -0
- package/agent/channels/session-park.ts +252 -0
- package/agent/channels/session-resume.ts +36 -0
- package/agent/channels/session-tail-record.ts +172 -0
- package/agent/channels/session-tail.ts +140 -0
- package/agent/channels/slack-bridge.ts +125 -0
- package/agent/channels/stand-down-silence.ts +110 -0
- package/agent/channels/standing-authority.ts +237 -0
- package/agent/channels/stranded-seat.ts +155 -0
- package/agent/channels/supervisor-complete.ts +141 -0
- package/agent/channels/surface-message-ops.ts +217 -0
- package/agent/channels/task-wake.ts +528 -0
- package/agent/channels/teams-bridge.ts +85 -0
- package/agent/channels/test-wake.ts +12 -0
- package/agent/channels/thread-ownership.ts +70 -0
- package/agent/channels/thread-seat-state.ts +90 -0
- package/agent/channels/ticket-create.ts +171 -0
- package/agent/channels/transcript-relay.ts +9 -0
- package/agent/channels/turn-cancel.ts +431 -0
- package/agent/channels/turn-delivery.ts +484 -0
- package/agent/channels/turn-registry.ts +117 -0
- package/agent/channels/turn-terminal-actions.ts +134 -0
- package/agent/channels/unified-redrive.ts +215 -0
- package/agent/channels/unified-reply.ts +300 -0
- package/agent/channels/unified-supervisor.ts +193 -0
- package/agent/channels/unified-window.ts +1075 -0
- package/agent/channels/unified.ts +1575 -0
- package/agent/channels/wake-accounting.ts +121 -0
- package/agent/channels/wake-arm.ts +244 -0
- package/agent/channels/wake-container.ts +50 -0
- package/agent/channels/wake-envelope.ts +632 -0
- package/agent/channels/wake-origin-codec.ts +96 -0
- package/agent/channels/wake-origin-codecs.ts +4 -0
- package/agent/channels/wake-timing.ts +401 -0
- package/agent/channels/webhook-reveal-page.ts +12 -0
- package/agent/channels/webhooks.ts +216 -0
- package/agent/channels/window-key.ts +439 -0
- package/agent/channels/window-sources.ts +88 -0
- package/agent/channels/work-destinations.ts +48 -0
- package/agent/channels/work-registry.ts +26 -0
- package/agent/channels/work-search.ts +92 -0
- package/agent/commands/core.ts +737 -0
- package/agent/commands/rate.ts +173 -0
- package/agent/connections/auth-retry-memo.ts +115 -0
- package/agent/connections/aws-exec.ts +52 -0
- package/agent/connections/aws-identity.ts +297 -0
- package/agent/connections/aws-sso-callback.ts +103 -0
- package/agent/connections/aws-sso-identity-binding.ts +115 -0
- package/agent/connections/aws-sso-link.ts +40 -0
- package/agent/connections/connector-auth.ts +984 -0
- package/agent/connections/connector-card.ts +447 -0
- package/agent/connections/connector-flags.ts +44 -0
- package/agent/connections/connector-offer.ts +241 -0
- package/agent/connections/connector-transport.ts +131 -0
- package/agent/connections/consent-resume.ts +205 -0
- package/agent/connections/grant-mcp-borrow.ts +334 -0
- package/agent/connections/grant-mcp-transport.ts +64 -0
- package/agent/connections/notion.ts +42 -0
- package/agent/connections/oe-oauth-callback.ts +207 -0
- package/agent/connections/own-account-ask.ts +302 -0
- package/agent/connections/own-account-carriage.ts +99 -0
- package/agent/connections/own-account-gate.ts +361 -0
- package/agent/connections/own-account-vendors.ts +117 -0
- package/agent/connections/user-auth-flow.ts +102 -0
- package/agent/contributions.ts +197 -0
- package/agent/control/auth.ts +663 -0
- package/agent/control/capture-window-read.ts +382 -0
- package/agent/control/delivery-history.ts +558 -0
- package/agent/control/http.ts +169 -0
- package/agent/control/mcp-route.ts +105 -0
- package/agent/control/oauth-clients.ts +278 -0
- package/agent/control/oauth-resource.ts +200 -0
- package/agent/control/oauth-route.ts +397 -0
- package/agent/control/oauth-tokens.ts +222 -0
- package/agent/control/read-route.ts +841 -0
- package/agent/control/server.ts +540 -0
- package/agent/control/test-route.ts +527 -0
- package/agent/control/transcript-export.ts +197 -0
- package/agent/control/transcript-relay.ts +381 -0
- package/agent/control/transcript-render.ts +164 -0
- package/agent/control/views.ts +1289 -0
- package/agent/control/writes.ts +1431 -0
- package/agent/credentials/binding-pr.ts +247 -0
- package/agent/credentials/config-pr-github.ts +197 -0
- package/agent/credentials/config-pr.ts +180 -0
- package/agent/credentials/db-broker.ts +270 -0
- package/agent/credentials/home.ts +83 -0
- package/agent/credentials/intake-page.ts +302 -0
- package/agent/credentials/intake.ts +550 -0
- package/agent/credentials/kv-vault.ts +180 -0
- package/agent/credentials/operator-secrets.ts +396 -0
- package/agent/credentials/page-chrome.ts +59 -0
- package/agent/credentials/page-token.ts +219 -0
- package/agent/credentials/purge.ts +113 -0
- package/agent/credentials/ref.ts +151 -0
- package/agent/credentials/reserved-refs.ts +76 -0
- package/agent/credentials/self-secrets.ts +165 -0
- package/agent/credentials/warm.ts +209 -0
- package/agent/docs/approver-policy.ts +234 -0
- package/agent/docs/capability-map.ts +180 -0
- package/agent/docs/counted-claims.ts +433 -0
- package/agent/docs/registry.ts +184 -0
- package/agent/docs/source-map.ts +174 -0
- package/agent/hooks/approval-raised.ts +37 -0
- package/agent/hooks/approval-settlement.ts +109 -0
- package/agent/hooks/binding-bridge.ts +77 -0
- package/agent/hooks/connector-audit.ts +111 -0
- package/agent/hooks/egress.ts +694 -0
- package/agent/hooks/eve-patch-gate.ts +52 -0
- package/agent/hooks/fire-carriage.ts +44 -0
- package/agent/hooks/fire-toolset.ts +306 -0
- package/agent/hooks/job-posture.ts +82 -0
- package/agent/hooks/lean-seat.ts +233 -0
- package/agent/hooks/learn.ts +199 -0
- package/agent/hooks/link-claim.ts +269 -0
- package/agent/hooks/log-flush.ts +32 -0
- package/agent/hooks/loop-breaker.ts +17 -0
- package/agent/hooks/memory.ts +1250 -0
- package/agent/hooks/native-input-audit.ts +41 -0
- package/agent/hooks/own-account-ask.ts +172 -0
- package/agent/hooks/requester-identity.ts +30 -0
- package/agent/hooks/requester-messages.ts +55 -0
- package/agent/hooks/routine-outcome.ts +252 -0
- package/agent/hooks/routine-silence.ts +38 -0
- package/agent/hooks/session-park.ts +48 -0
- package/agent/hooks/settlement-flush.ts +173 -0
- package/agent/hooks/spawn-taint.ts +1312 -0
- package/agent/hooks/spend.ts +368 -0
- package/agent/hooks/stall-guard.ts +22 -0
- package/agent/hooks/telemetry.ts +90 -0
- package/agent/hooks/turn-anchor.ts +682 -0
- package/agent/hooks/turn-tally.ts +98 -0
- package/agent/hooks/wake-accounting-turn.ts +96 -0
- package/agent/hooks/wake-turn-start.ts +44 -0
- package/agent/hooks/window-routing.ts +51 -0
- package/agent/identity/account-directory.ts +138 -0
- package/agent/identity/account-display-name.ts +178 -0
- package/agent/identity/author-trust.ts +297 -0
- package/agent/identity/binding-bridge.ts +88 -0
- package/agent/identity/binding.ts +1308 -0
- package/agent/identity/bot-display-name.ts +50 -0
- package/agent/identity/bot-name.ts +79 -0
- package/agent/identity/capabilities.ts +79 -0
- package/agent/identity/delegated-binding.ts +130 -0
- package/agent/identity/deployment-identity.ts +105 -0
- package/agent/identity/directory-sync.ts +777 -0
- package/agent/identity/directory.ts +89 -0
- package/agent/identity/display-title.ts +19 -0
- package/agent/identity/frozen-surface-binding.internal.ts +83 -0
- package/agent/identity/group-sync.ts +169 -0
- package/agent/identity/groups-codemod.ts +142 -0
- package/agent/identity/groups-delivery.ts +156 -0
- package/agent/identity/groups.ts +174 -0
- package/agent/identity/link-challenge.ts +147 -0
- package/agent/identity/link-consent.ts +216 -0
- package/agent/identity/link-flow.ts +380 -0
- package/agent/identity/link-initiator.ts +27 -0
- package/agent/identity/link-resolve.ts +227 -0
- package/agent/identity/link-set-ref.ts +33 -0
- package/agent/identity/link-store.ts +889 -0
- package/agent/identity/link-tenant-backfill.ts +79 -0
- package/agent/identity/link-tenant.ts +54 -0
- package/agent/identity/oauth-vault-share.ts +40 -0
- package/agent/identity/platform.ts +48 -0
- package/agent/identity/principal-key-rules.ts +113 -0
- package/agent/identity/principal-key.ts +210 -0
- package/agent/identity/principals.ts +354 -0
- package/agent/identity/surface-key-grammar.ts +142 -0
- package/agent/identity/surface-parity.ts +427 -0
- package/agent/identity/trust-preflight.ts +271 -0
- package/agent/identity/trust.ts +433 -0
- package/agent/identity/wake-trust.ts +217 -0
- package/agent/instructions/access.ts +1239 -0
- package/agent/instructions/seat-prompt.ts +1286 -0
- package/agent/lib/process-registry.ts +52 -0
- package/agent/memory/agents-codemod.ts +443 -0
- package/agent/memory/connector-memory.ts +137 -0
- package/agent/memory/domain.ts +1276 -0
- package/agent/memory/dream/candidates.ts +187 -0
- package/agent/memory/dream/correction.ts +133 -0
- package/agent/memory/dream/judge.ts +174 -0
- package/agent/memory/dream/learn.ts +299 -0
- package/agent/memory/dream/mode3-cluster.ts +151 -0
- package/agent/memory/dream/mode3-last-mile.ts +365 -0
- package/agent/memory/dream/mode3.ts +311 -0
- package/agent/memory/dream/ops.ts +321 -0
- package/agent/memory/dream/proposal.ts +83 -0
- package/agent/memory/dream/recurrence.ts +132 -0
- package/agent/memory/dream/salience.ts +24 -0
- package/agent/memory/dream/skill-proposal-pr.ts +323 -0
- package/agent/memory/dream/supersede-apply.ts +94 -0
- package/agent/memory/dream/tidy.ts +162 -0
- package/agent/memory/graph.ts +178 -0
- package/agent/memory/host-owned-files.ts +3 -0
- package/agent/memory/layout.ts +85 -0
- package/agent/memory/listing.ts +199 -0
- package/agent/memory/markdown.ts +211 -0
- package/agent/memory/partition.ts +66 -0
- package/agent/memory/postgres.ts +497 -0
- package/agent/memory/provenance-mark.ts +318 -0
- package/agent/memory/provenance.ts +28 -0
- package/agent/memory/provider.ts +186 -0
- package/agent/memory/purge-redaction.ts +68 -0
- package/agent/memory/readonly.ts +57 -0
- package/agent/memory/resolve.ts +181 -0
- package/agent/memory/root-fence.ts +54 -0
- package/agent/memory/sandbox-sync.ts +84 -0
- package/agent/memory/selection.ts +120 -0
- package/agent/memory/silo.ts +71 -0
- package/agent/memory/sqlite.ts +206 -0
- package/agent/memory/store.ts +162 -0
- package/agent/memory/sync-timing.ts +223 -0
- package/agent/memory/wake-delta.ts +239 -0
- package/agent/memory/write-evidence.ts +150 -0
- package/agent/memory/write-fence.ts +145 -0
- package/agent/memory/write-intent.ts +205 -0
- package/agent/memory/write-road.ts +159 -0
- package/agent/model/ab-test.ts +374 -0
- package/agent/model/call-capture.ts +414 -0
- package/agent/model/default-model.ts +63 -0
- package/agent/model/model-stamp.ts +162 -0
- package/agent/model/policy.ts +378 -0
- package/agent/model/routing.ts +834 -0
- package/agent/model/step-boundary.ts +560 -0
- package/agent/model/stream-drop-retry.ts +334 -0
- package/agent/model/turn-closeout.ts +299 -0
- package/agent/model/turn-state.ts +461 -0
- package/agent/model/vision.ts +112 -0
- package/agent/observability/ship.ts +394 -0
- package/agent/observability/telemetry.ts +819 -0
- package/agent/observability/turn-clock.ts +96 -0
- package/agent/onboarding/onboarding.ts +98 -0
- package/agent/operational/credential-grant-rows.ts +944 -0
- package/agent/operational/pglite-client.ts +282 -0
- package/agent/operational/post-once.ts +146 -0
- package/agent/operational/postgres.ts +5030 -0
- package/agent/operational/provider.ts +190 -0
- package/agent/operational/sqlite.ts +4007 -0
- package/agent/operational/store.ts +2346 -0
- package/agent/ops/census.ts +1076 -0
- package/agent/ops/probes.ts +69 -0
- package/agent/ops/quickstart.ts +296 -0
- package/agent/ops/server.ts +485 -0
- package/agent/ops/surface-manifest.ts +111 -0
- package/agent/ops/two-role.ts +75 -0
- package/agent/pages/policy-pages.ts +79 -0
- package/agent/plugins/extract.ts +381 -0
- package/agent/plugins/parse.ts +122 -0
- package/agent/plugins/types.ts +147 -0
- package/agent/publish/eve-patch-pack.ts +461 -0
- package/agent/review/blast-radius.ts +282 -0
- package/agent/review/config-facts.ts +200 -0
- package/agent/review/facts-artifact.ts +377 -0
- package/agent/review/facts-cloud-status.ts +288 -0
- package/agent/review/pr-walkthrough.ts +772 -0
- package/agent/review/zip.ts +154 -0
- package/agent/roles/role.ts +228 -0
- package/agent/routines/bound.ts +262 -0
- package/agent/routines/check-in.ts +54 -0
- package/agent/routines/collector.ts +497 -0
- package/agent/routines/declared-permissions.ts +578 -0
- package/agent/routines/disable-notice.ts +181 -0
- package/agent/routines/entity-read.ts +305 -0
- package/agent/routines/event-authz.ts +268 -0
- package/agent/routines/event-match.ts +200 -0
- package/agent/routines/event-model.ts +744 -0
- package/agent/routines/events.ts +201 -0
- package/agent/routines/fire-audit.ts +823 -0
- package/agent/routines/fire-auth.ts +280 -0
- package/agent/routines/fire-carriage.ts +126 -0
- package/agent/routines/fire-creator.ts +86 -0
- package/agent/routines/fire-disclosure.ts +233 -0
- package/agent/routines/fire-eligibility.ts +280 -0
- package/agent/routines/fire-halt.ts +57 -0
- package/agent/routines/fire-message.ts +76 -0
- package/agent/routines/fire-toolset.ts +179 -0
- package/agent/routines/fire-window.ts +604 -0
- package/agent/routines/follow-ups.ts +173 -0
- package/agent/routines/gate.ts +251 -0
- package/agent/routines/github-entity-read.ts +120 -0
- package/agent/routines/github-fanout.ts +88 -0
- package/agent/routines/github-normalizer.ts +248 -0
- package/agent/routines/ingress.ts +855 -0
- package/agent/routines/job.ts +140 -0
- package/agent/routines/jq-filter.ts +387 -0
- package/agent/routines/lifecycle.ts +248 -0
- package/agent/routines/match-stamp.ts +131 -0
- package/agent/routines/outcome-fold.ts +302 -0
- package/agent/routines/partition.ts +27 -0
- package/agent/routines/permission-card-wait.ts +281 -0
- package/agent/routines/permission-card.ts +496 -0
- package/agent/routines/permission-key.ts +54 -0
- package/agent/routines/permission-review.ts +318 -0
- package/agent/routines/policy.ts +304 -0
- package/agent/routines/pre-fire.ts +133 -0
- package/agent/routines/provider-events.ts +430 -0
- package/agent/routines/report.ts +148 -0
- package/agent/routines/routine.ts +949 -0
- package/agent/routines/schedule.ts +209 -0
- package/agent/routines/scheme-name.ts +96 -0
- package/agent/routines/stall.ts +153 -0
- package/agent/routines/store.ts +100 -0
- package/agent/routines/watch.ts +328 -0
- package/agent/sandbox/backend-select.ts +58 -0
- package/agent/sandbox/vercel-create.ts +211 -0
- package/agent/scaffold/app-root.ts +104 -0
- package/agent/scaffold/roster-config.ts +187 -0
- package/agent/scaffold/roster-fs.ts +202 -0
- package/agent/scaffold/roster-plan.ts +880 -0
- package/agent/scaffold/templates.ts +85 -0
- package/agent/scaffold/tool-roster-read.ts +79 -0
- package/agent/scaffold/tool-roster.ts +214 -0
- package/agent/schedules/directory-sync.ts +37 -0
- package/agent/schedules/dispatch.ts +798 -0
- package/agent/schedules/dream-mode3.ts +311 -0
- package/agent/schedules/routine-dispatch.ts +213 -0
- package/agent/schedules/tidy.ts +321 -0
- package/agent/scm/app.ts +150 -0
- package/agent/scm/broker-audit.ts +107 -0
- package/agent/scm/broker.ts +130 -0
- package/agent/scm/capability-fit.ts +164 -0
- package/agent/scm/config-repo-token.ts +44 -0
- package/agent/scm/config.ts +37 -0
- package/agent/scm/contents.ts +162 -0
- package/agent/scm/git.ts +383 -0
- package/agent/scm/github-acting-identity.ts +127 -0
- package/agent/scm/github-search.ts +144 -0
- package/agent/scm/github-work.ts +44 -0
- package/agent/scm/installations.ts +155 -0
- package/agent/scm/issue-actions.ts +234 -0
- package/agent/scm/mint.ts +299 -0
- package/agent/scm/pr-activity.ts +130 -0
- package/agent/scm/pr-diff.ts +143 -0
- package/agent/scm/pr-feedback.ts +335 -0
- package/agent/scm/pr-status.ts +299 -0
- package/agent/scm/pr-watch.ts +162 -0
- package/agent/scm/pr.ts +114 -0
- package/agent/scm/provider.ts +46 -0
- package/agent/scm/refs.ts +142 -0
- package/agent/scm/repo-skills.ts +212 -0
- package/agent/scm/types.ts +50 -0
- package/agent/scm/write-token.ts +41 -0
- package/agent/settings/settings.ts +1525 -0
- package/agent/skills/domain-skills.ts +206 -0
- package/agent/skills/scoped.ts +172 -0
- package/agent/spend/bypass.ts +133 -0
- package/agent/spend/caps.ts +361 -0
- package/agent/spend/check.ts +164 -0
- package/agent/spend/checkpoint.ts +673 -0
- package/agent/spend/dm-mask.ts +134 -0
- package/agent/spend/ingress-gate.ts +349 -0
- package/agent/spend/pricing.ts +584 -0
- package/agent/spend/reporting.ts +900 -0
- package/agent/spend/sandbox-pricing.ts +53 -0
- package/agent/spend/spend.ts +480 -0
- package/agent/spend/stack-pricing.ts +205 -0
- package/agent/spend/store.ts +263 -0
- package/agent/spend/subagent-runs.ts +166 -0
- package/agent/spend/usage-events.ts +144 -0
- package/agent/stall/bash-hang-guard.ts +326 -0
- package/agent/stall/guard.ts +285 -0
- package/agent/status/status.ts +128 -0
- package/agent/subagents/contracts.ts +147 -0
- package/agent/subagents/declared.ts +201 -0
- package/agent/testing/driver-allowlist.ts +239 -0
- package/agent/tools/add_label.ts +68 -0
- package/agent/tools/add_routine_rule.ts +215 -0
- package/agent/tools/agent_version.ts +46 -0
- package/agent/tools/assign.ts +182 -0
- package/agent/tools/aws.ts +175 -0
- package/agent/tools/browser_tools.ts +22 -0
- package/agent/tools/cancel_routine.ts +133 -0
- package/agent/tools/capture_events.ts +54 -0
- package/agent/tools/check_pr_status.ts +72 -0
- package/agent/tools/checkout_repo.ts +172 -0
- package/agent/tools/clear_connector_override.ts +159 -0
- package/agent/tools/clear_spend_limit.ts +199 -0
- package/agent/tools/complete_job.ts +64 -0
- package/agent/tools/complete_thread.ts +134 -0
- package/agent/tools/confirm_link.ts +503 -0
- package/agent/tools/connector.ts +230 -0
- package/agent/tools/create_agent.ts +305 -0
- package/agent/tools/create_routine.ts +487 -0
- package/agent/tools/create_skill.ts +178 -0
- package/agent/tools/create_ticket.ts +187 -0
- package/agent/tools/declare_webhook.ts +362 -0
- package/agent/tools/delete_skill.ts +135 -0
- package/agent/tools/describe_image.ts +302 -0
- package/agent/tools/dm_person.ts +203 -0
- package/agent/tools/edit_reply.ts +195 -0
- package/agent/tools/edit_routine.ts +159 -0
- package/agent/tools/enable_routine.ts +162 -0
- package/agent/tools/explain_permission.ts +59 -0
- package/agent/tools/get_pr_feedback.ts +84 -0
- package/agent/tools/grant_tools.ts +443 -0
- package/agent/tools/halt.ts +172 -0
- package/agent/tools/link_identity.ts +308 -0
- package/agent/tools/list_recent_events.ts +58 -0
- package/agent/tools/list_repos.ts +24 -0
- package/agent/tools/list_routines.ts +152 -0
- package/agent/tools/list_skills.ts +38 -0
- package/agent/tools/list_webhooks.ts +72 -0
- package/agent/tools/memory_admin_list.ts +79 -0
- package/agent/tools/memory_admin_read.ts +95 -0
- package/agent/tools/message_thread_seat.ts +145 -0
- package/agent/tools/no_reply.ts +272 -0
- package/agent/tools/open_pull_request.ts +348 -0
- package/agent/tools/permission_fit_report.ts +190 -0
- package/agent/tools/post_file.ts +416 -0
- package/agent/tools/post_message.ts +169 -0
- package/agent/tools/post_pr_walkthrough.ts +220 -0
- package/agent/tools/purge_memory.ts +361 -0
- package/agent/tools/query_analytics.ts +83 -0
- package/agent/tools/react.ts +201 -0
- package/agent/tools/read_channel.ts +121 -0
- package/agent/tools/read_docs.ts +50 -0
- package/agent/tools/read_file_upload.ts +190 -0
- package/agent/tools/read_routine_transcript.ts +88 -0
- package/agent/tools/read_thread.ts +103 -0
- package/agent/tools/read_thread_seat.ts +91 -0
- package/agent/tools/read_webhook_history.ts +46 -0
- package/agent/tools/read_work_channel.ts +109 -0
- package/agent/tools/read_work_thread.ts +90 -0
- package/agent/tools/record_follow_up.ts +84 -0
- package/agent/tools/record_job_state.ts +49 -0
- package/agent/tools/record_watch_state.ts +47 -0
- package/agent/tools/remove_routine_rule.ts +158 -0
- package/agent/tools/reply.ts +757 -0
- package/agent/tools/report_run_failed.ts +79 -0
- package/agent/tools/request_access.ts +518 -0
- package/agent/tools/request_credential_grant.ts +550 -0
- package/agent/tools/resume.ts +148 -0
- package/agent/tools/revoke_connector.ts +155 -0
- package/agent/tools/revoke_credential_grant.ts +108 -0
- package/agent/tools/revoke_routine_permissions.ts +81 -0
- package/agent/tools/rotate_webhook.ts +185 -0
- package/agent/tools/run_routine_now.ts +120 -0
- package/agent/tools/sandbox_tools.ts +94 -0
- package/agent/tools/search.ts +121 -0
- package/agent/tools/session_cost.ts +135 -0
- package/agent/tools/set_dm_delivery.ts +115 -0
- package/agent/tools/set_spend_limit.ts +529 -0
- package/agent/tools/set_state.ts +179 -0
- package/agent/tools/spawn_thread_session.ts +223 -0
- package/agent/tools/spend_report.ts +440 -0
- package/agent/tools/stand_down.ts +260 -0
- package/agent/tools/subscribe_pr.ts +253 -0
- package/agent/tools/unlink_identity.ts +100 -0
- package/agent/tools/update_status.ts +65 -0
- package/agent/tools/usage_report.ts +103 -0
- package/agent/tools/walk_pr.ts +150 -0
- package/agent/webhooks/achievability.ts +235 -0
- package/agent/webhooks/capture-window.ts +220 -0
- package/agent/webhooks/config.ts +556 -0
- package/agent/webhooks/dispatch.ts +418 -0
- package/agent/webhooks/gate.ts +392 -0
- package/agent/webhooks/handshake-capture.ts +189 -0
- package/agent/webhooks/hooks-codemod.ts +266 -0
- package/agent/webhooks/oe-standard-webhook.ts +563 -0
- package/agent/webhooks/reject-audit.ts +134 -0
- package/agent/webhooks/replay-dedupe.ts +183 -0
- package/agent/webhooks/reveal-page.ts +507 -0
- package/agent/webhooks/secrets.ts +81 -0
- package/agent/webhooks/source-vocabulary.ts +333 -0
- package/agent/webhooks/verifier.ts +324 -0
- package/bin/oe-eve-patch.js +205 -0
- package/bin/oe.js +19 -0
- package/dist/agent/access/access-referenced-link-sets.d.ts +8 -0
- package/dist/agent/access/access-referenced-link-sets.d.ts.map +1 -0
- package/dist/agent/access/access-referenced-link-sets.js +20 -0
- package/dist/agent/access/access-referenced-link-sets.js.map +1 -0
- package/dist/agent/access/admin-read-venue.d.ts +48 -0
- package/dist/agent/access/admin-read-venue.d.ts.map +1 -0
- package/dist/agent/access/admin-read-venue.js +109 -0
- package/dist/agent/access/admin-read-venue.js.map +1 -0
- package/dist/agent/access/admin-standing.d.ts +16 -0
- package/dist/agent/access/admin-standing.d.ts.map +1 -0
- package/dist/agent/access/admin-standing.js +89 -0
- package/dist/agent/access/admin-standing.js.map +1 -0
- package/dist/agent/access/analytics-scope.d.ts +24 -0
- package/dist/agent/access/analytics-scope.d.ts.map +1 -0
- package/dist/agent/access/analytics-scope.js +62 -0
- package/dist/agent/access/analytics-scope.js.map +1 -0
- package/dist/agent/access/approval-dedupe.d.ts +29 -0
- package/dist/agent/access/approval-dedupe.d.ts.map +1 -0
- package/dist/agent/access/approval-dedupe.js +99 -0
- package/dist/agent/access/approval-dedupe.js.map +1 -0
- package/dist/agent/access/approval-judge.d.ts +186 -0
- package/dist/agent/access/approval-judge.d.ts.map +1 -0
- package/dist/agent/access/approval-judge.js +482 -0
- package/dist/agent/access/approval-judge.js.map +1 -0
- package/dist/agent/access/approval-preview.d.ts +27 -0
- package/dist/agent/access/approval-preview.d.ts.map +1 -0
- package/dist/agent/access/approval-preview.js +90 -0
- package/dist/agent/access/approval-preview.js.map +1 -0
- package/dist/agent/access/approval-scenarios.d.ts +18 -0
- package/dist/agent/access/approval-scenarios.d.ts.map +1 -0
- package/dist/agent/access/approval-scenarios.js +27 -0
- package/dist/agent/access/approval-scenarios.js.map +1 -0
- package/dist/agent/access/approver-chain.d.ts +210 -0
- package/dist/agent/access/approver-chain.d.ts.map +1 -0
- package/dist/agent/access/approver-chain.js +585 -0
- package/dist/agent/access/approver-chain.js.map +1 -0
- package/dist/agent/access/audience-floor.d.ts +69 -0
- package/dist/agent/access/audience-floor.d.ts.map +1 -0
- package/dist/agent/access/audience-floor.js +189 -0
- package/dist/agent/access/audience-floor.js.map +1 -0
- package/dist/agent/access/aws-output.d.ts +39 -0
- package/dist/agent/access/aws-output.d.ts.map +1 -0
- package/dist/agent/access/aws-output.js +94 -0
- package/dist/agent/access/aws-output.js.map +1 -0
- package/dist/agent/access/aws-screen.d.ts +24 -0
- package/dist/agent/access/aws-screen.d.ts.map +1 -0
- package/dist/agent/access/aws-screen.js +177 -0
- package/dist/agent/access/aws-screen.js.map +1 -0
- package/dist/agent/access/background-tasks.d.ts +100 -0
- package/dist/agent/access/background-tasks.d.ts.map +1 -0
- package/dist/agent/access/background-tasks.js +288 -0
- package/dist/agent/access/background-tasks.js.map +1 -0
- package/dist/agent/access/browser-hosts.d.ts +37 -0
- package/dist/agent/access/browser-hosts.d.ts.map +1 -0
- package/dist/agent/access/browser-hosts.js +127 -0
- package/dist/agent/access/browser-hosts.js.map +1 -0
- package/dist/agent/access/browser-toolkit.d.ts +48 -0
- package/dist/agent/access/browser-toolkit.d.ts.map +1 -0
- package/dist/agent/access/browser-toolkit.js +240 -0
- package/dist/agent/access/browser-toolkit.js.map +1 -0
- package/dist/agent/access/bundle.d.ts +239 -0
- package/dist/agent/access/bundle.d.ts.map +1 -0
- package/dist/agent/access/bundle.js +454 -0
- package/dist/agent/access/bundle.js.map +1 -0
- package/dist/agent/access/capabilities.d.ts +5 -0
- package/dist/agent/access/capabilities.d.ts.map +1 -0
- package/dist/agent/access/capabilities.js +9 -0
- package/dist/agent/access/capabilities.js.map +1 -0
- package/dist/agent/access/chat-dm-grant.d.ts +47 -0
- package/dist/agent/access/chat-dm-grant.d.ts.map +1 -0
- package/dist/agent/access/chat-dm-grant.js +185 -0
- package/dist/agent/access/chat-dm-grant.js.map +1 -0
- package/dist/agent/access/chat-write-grant.d.ts +35 -0
- package/dist/agent/access/chat-write-grant.d.ts.map +1 -0
- package/dist/agent/access/chat-write-grant.js +153 -0
- package/dist/agent/access/chat-write-grant.js.map +1 -0
- package/dist/agent/access/config.d.ts +117 -0
- package/dist/agent/access/config.d.ts.map +1 -0
- package/dist/agent/access/config.js +16 -0
- package/dist/agent/access/config.js.map +1 -0
- package/dist/agent/access/connector-content-origin-state.d.ts +17 -0
- package/dist/agent/access/connector-content-origin-state.d.ts.map +1 -0
- package/dist/agent/access/connector-content-origin-state.js +73 -0
- package/dist/agent/access/connector-content-origin-state.js.map +1 -0
- package/dist/agent/access/connector-credentials.d.ts +186 -0
- package/dist/agent/access/connector-credentials.d.ts.map +1 -0
- package/dist/agent/access/connector-credentials.js +258 -0
- package/dist/agent/access/connector-credentials.js.map +1 -0
- package/dist/agent/access/connector-disclosure.d.ts +66 -0
- package/dist/agent/access/connector-disclosure.d.ts.map +1 -0
- package/dist/agent/access/connector-disclosure.js +194 -0
- package/dist/agent/access/connector-disclosure.js.map +1 -0
- package/dist/agent/access/connector-op-gating.d.ts +32 -0
- package/dist/agent/access/connector-op-gating.d.ts.map +1 -0
- package/dist/agent/access/connector-op-gating.js +178 -0
- package/dist/agent/access/connector-op-gating.js.map +1 -0
- package/dist/agent/access/connector-scope.d.ts +42 -0
- package/dist/agent/access/connector-scope.d.ts.map +1 -0
- package/dist/agent/access/connector-scope.js +258 -0
- package/dist/agent/access/connector-scope.js.map +1 -0
- package/dist/agent/access/consequence.d.ts +205 -0
- package/dist/agent/access/consequence.d.ts.map +1 -0
- package/dist/agent/access/consequence.js +816 -0
- package/dist/agent/access/consequence.js.map +1 -0
- package/dist/agent/access/credential-bindings-codemod.d.ts +63 -0
- package/dist/agent/access/credential-bindings-codemod.d.ts.map +1 -0
- package/dist/agent/access/credential-bindings-codemod.js +179 -0
- package/dist/agent/access/credential-bindings-codemod.js.map +1 -0
- package/dist/agent/access/credential-endpoints.d.ts +47 -0
- package/dist/agent/access/credential-endpoints.d.ts.map +1 -0
- package/dist/agent/access/credential-endpoints.js +211 -0
- package/dist/agent/access/credential-endpoints.js.map +1 -0
- package/dist/agent/access/credential-grant-ask.d.ts +22 -0
- package/dist/agent/access/credential-grant-ask.d.ts.map +1 -0
- package/dist/agent/access/credential-grant-ask.js +82 -0
- package/dist/agent/access/credential-grant-ask.js.map +1 -0
- package/dist/agent/access/credential-grant-broker.d.ts +85 -0
- package/dist/agent/access/credential-grant-broker.d.ts.map +1 -0
- package/dist/agent/access/credential-grant-broker.js +252 -0
- package/dist/agent/access/credential-grant-broker.js.map +1 -0
- package/dist/agent/access/credential-grant-card.d.ts +98 -0
- package/dist/agent/access/credential-grant-card.d.ts.map +1 -0
- package/dist/agent/access/credential-grant-card.js +447 -0
- package/dist/agent/access/credential-grant-card.js.map +1 -0
- package/dist/agent/access/credential-grant-click.d.ts +43 -0
- package/dist/agent/access/credential-grant-click.d.ts.map +1 -0
- package/dist/agent/access/credential-grant-click.js +190 -0
- package/dist/agent/access/credential-grant-click.js.map +1 -0
- package/dist/agent/access/credential-grant-copy.d.ts +135 -0
- package/dist/agent/access/credential-grant-copy.d.ts.map +1 -0
- package/dist/agent/access/credential-grant-copy.js +276 -0
- package/dist/agent/access/credential-grant-copy.js.map +1 -0
- package/dist/agent/access/credential-grant-flow.d.ts +174 -0
- package/dist/agent/access/credential-grant-flow.d.ts.map +1 -0
- package/dist/agent/access/credential-grant-flow.js +503 -0
- package/dist/agent/access/credential-grant-flow.js.map +1 -0
- package/dist/agent/access/credential-grant-key-shape.d.ts +37 -0
- package/dist/agent/access/credential-grant-key-shape.d.ts.map +1 -0
- package/dist/agent/access/credential-grant-key-shape.js +51 -0
- package/dist/agent/access/credential-grant-key-shape.js.map +1 -0
- package/dist/agent/access/credential-grant-notice.d.ts +29 -0
- package/dist/agent/access/credential-grant-notice.d.ts.map +1 -0
- package/dist/agent/access/credential-grant-notice.js +187 -0
- package/dist/agent/access/credential-grant-notice.js.map +1 -0
- package/dist/agent/access/credential-grant-owner.d.ts +10 -0
- package/dist/agent/access/credential-grant-owner.d.ts.map +1 -0
- package/dist/agent/access/credential-grant-owner.js +16 -0
- package/dist/agent/access/credential-grant-owner.js.map +1 -0
- package/dist/agent/access/credential-grant-reach.d.ts +46 -0
- package/dist/agent/access/credential-grant-reach.d.ts.map +1 -0
- package/dist/agent/access/credential-grant-reach.js +77 -0
- package/dist/agent/access/credential-grant-reach.js.map +1 -0
- package/dist/agent/access/credential-grant-resolution.d.ts +30 -0
- package/dist/agent/access/credential-grant-resolution.d.ts.map +1 -0
- package/dist/agent/access/credential-grant-resolution.js +107 -0
- package/dist/agent/access/credential-grant-resolution.js.map +1 -0
- package/dist/agent/access/credential-grant-revoke.d.ts +33 -0
- package/dist/agent/access/credential-grant-revoke.d.ts.map +1 -0
- package/dist/agent/access/credential-grant-revoke.js +62 -0
- package/dist/agent/access/credential-grant-revoke.js.map +1 -0
- package/dist/agent/access/credential-grant-scope.d.ts +206 -0
- package/dist/agent/access/credential-grant-scope.d.ts.map +1 -0
- package/dist/agent/access/credential-grant-scope.js +282 -0
- package/dist/agent/access/credential-grant-scope.js.map +1 -0
- package/dist/agent/access/credential-grant.d.ts +94 -0
- package/dist/agent/access/credential-grant.d.ts.map +1 -0
- package/dist/agent/access/credential-grant.js +198 -0
- package/dist/agent/access/credential-grant.js.map +1 -0
- package/dist/agent/access/credentials.d.ts +41 -0
- package/dist/agent/access/credentials.d.ts.map +1 -0
- package/dist/agent/access/credentials.js +112 -0
- package/dist/agent/access/credentials.js.map +1 -0
- package/dist/agent/access/dated-read.d.ts +3 -0
- package/dist/agent/access/dated-read.d.ts.map +1 -0
- package/dist/agent/access/dated-read.js +24 -0
- package/dist/agent/access/dated-read.js.map +1 -0
- package/dist/agent/access/delegation-flag.d.ts +5 -0
- package/dist/agent/access/delegation-flag.d.ts.map +1 -0
- package/dist/agent/access/delegation-flag.js +10 -0
- package/dist/agent/access/delegation-flag.js.map +1 -0
- package/dist/agent/access/delegation-mount.d.ts +6 -0
- package/dist/agent/access/delegation-mount.d.ts.map +1 -0
- package/dist/agent/access/delegation-mount.js +30 -0
- package/dist/agent/access/delegation-mount.js.map +1 -0
- package/dist/agent/access/delta.d.ts +103 -0
- package/dist/agent/access/delta.d.ts.map +1 -0
- package/dist/agent/access/delta.js +267 -0
- package/dist/agent/access/delta.js.map +1 -0
- package/dist/agent/access/dispatch-origin-signal.d.ts +19 -0
- package/dist/agent/access/dispatch-origin-signal.d.ts.map +1 -0
- package/dist/agent/access/dispatch-origin-signal.js +130 -0
- package/dist/agent/access/dispatch-origin-signal.js.map +1 -0
- package/dist/agent/access/domain-credentials.d.ts +32 -0
- package/dist/agent/access/domain-credentials.d.ts.map +1 -0
- package/dist/agent/access/domain-credentials.js +78 -0
- package/dist/agent/access/domain-credentials.js.map +1 -0
- package/dist/agent/access/egress-denial-log.d.ts +28 -0
- package/dist/agent/access/egress-denial-log.d.ts.map +1 -0
- package/dist/agent/access/egress-denial-log.js +96 -0
- package/dist/agent/access/egress-denial-log.js.map +1 -0
- package/dist/agent/access/egress-denial-poller.d.ts +56 -0
- package/dist/agent/access/egress-denial-poller.d.ts.map +1 -0
- package/dist/agent/access/egress-denial-poller.js +184 -0
- package/dist/agent/access/egress-denial-poller.js.map +1 -0
- package/dist/agent/access/egress-status.d.ts +61 -0
- package/dist/agent/access/egress-status.d.ts.map +1 -0
- package/dist/agent/access/egress-status.js +130 -0
- package/dist/agent/access/egress-status.js.map +1 -0
- package/dist/agent/access/egress.d.ts +86 -0
- package/dist/agent/access/egress.d.ts.map +1 -0
- package/dist/agent/access/egress.js +236 -0
- package/dist/agent/access/egress.js.map +1 -0
- package/dist/agent/access/enforcement.d.ts +8 -0
- package/dist/agent/access/enforcement.d.ts.map +1 -0
- package/dist/agent/access/enforcement.js +24 -0
- package/dist/agent/access/enforcement.js.map +1 -0
- package/dist/agent/access/eve-patch-probe-boot.d.ts +2 -0
- package/dist/agent/access/eve-patch-probe-boot.d.ts.map +1 -0
- package/dist/agent/access/eve-patch-probe-boot.js +91 -0
- package/dist/agent/access/eve-patch-probe-boot.js.map +1 -0
- package/dist/agent/access/eve-patch-probe.d.ts +57 -0
- package/dist/agent/access/eve-patch-probe.d.ts.map +1 -0
- package/dist/agent/access/eve-patch-probe.js +225 -0
- package/dist/agent/access/eve-patch-probe.js.map +1 -0
- package/dist/agent/access/external-policy.d.ts +95 -0
- package/dist/agent/access/external-policy.d.ts.map +1 -0
- package/dist/agent/access/external-policy.js +154 -0
- package/dist/agent/access/external-policy.js.map +1 -0
- package/dist/agent/access/extra-hosts.d.ts +10 -0
- package/dist/agent/access/extra-hosts.d.ts.map +1 -0
- package/dist/agent/access/extra-hosts.js +28 -0
- package/dist/agent/access/extra-hosts.js.map +1 -0
- package/dist/agent/access/grant-borrow-transport-registry.internal.d.ts +21 -0
- package/dist/agent/access/grant-borrow-transport-registry.internal.d.ts.map +1 -0
- package/dist/agent/access/grant-borrow-transport-registry.internal.js +63 -0
- package/dist/agent/access/grant-borrow-transport-registry.internal.js.map +1 -0
- package/dist/agent/access/grant-room-notice-registry.internal.d.ts +20 -0
- package/dist/agent/access/grant-room-notice-registry.internal.d.ts.map +1 -0
- package/dist/agent/access/grant-room-notice-registry.internal.js +59 -0
- package/dist/agent/access/grant-room-notice-registry.internal.js.map +1 -0
- package/dist/agent/access/grant-schema-pin.d.ts +15 -0
- package/dist/agent/access/grant-schema-pin.d.ts.map +1 -0
- package/dist/agent/access/grant-schema-pin.js +29 -0
- package/dist/agent/access/grant-schema-pin.js.map +1 -0
- package/dist/agent/access/grants-codemod.d.ts +32 -0
- package/dist/agent/access/grants-codemod.d.ts.map +1 -0
- package/dist/agent/access/grants-codemod.js +306 -0
- package/dist/agent/access/grants-codemod.js.map +1 -0
- package/dist/agent/access/group-request.d.ts +13 -0
- package/dist/agent/access/group-request.d.ts.map +1 -0
- package/dist/agent/access/group-request.js +67 -0
- package/dist/agent/access/group-request.js.map +1 -0
- package/dist/agent/access/halt-state.d.ts +7 -0
- package/dist/agent/access/halt-state.d.ts.map +1 -0
- package/dist/agent/access/halt-state.js +23 -0
- package/dist/agent/access/halt-state.js.map +1 -0
- package/dist/agent/access/halt.d.ts +90 -0
- package/dist/agent/access/halt.d.ts.map +1 -0
- package/dist/agent/access/halt.js +239 -0
- package/dist/agent/access/halt.js.map +1 -0
- package/dist/agent/access/host-egress.d.ts +71 -0
- package/dist/agent/access/host-egress.d.ts.map +1 -0
- package/dist/agent/access/host-egress.js +384 -0
- package/dist/agent/access/host-egress.js.map +1 -0
- package/dist/agent/access/human-only-invariants-manifest.d.ts +20 -0
- package/dist/agent/access/human-only-invariants-manifest.d.ts.map +1 -0
- package/dist/agent/access/human-only-invariants-manifest.js +144 -0
- package/dist/agent/access/human-only-invariants-manifest.js.map +1 -0
- package/dist/agent/access/ingestion-binding-manifest.d.ts +41 -0
- package/dist/agent/access/ingestion-binding-manifest.d.ts.map +1 -0
- package/dist/agent/access/ingestion-binding-manifest.js +214 -0
- package/dist/agent/access/ingestion-binding-manifest.js.map +1 -0
- package/dist/agent/access/ingestion-route-inventory.generated.d.ts +13 -0
- package/dist/agent/access/ingestion-route-inventory.generated.d.ts.map +1 -0
- package/dist/agent/access/ingestion-route-inventory.generated.js +46 -0
- package/dist/agent/access/ingestion-route-inventory.generated.js.map +1 -0
- package/dist/agent/access/instructions.d.ts +5 -0
- package/dist/agent/access/instructions.d.ts.map +1 -0
- package/dist/agent/access/instructions.js +72 -0
- package/dist/agent/access/instructions.js.map +1 -0
- package/dist/agent/access/invoker-posture-state.d.ts +8 -0
- package/dist/agent/access/invoker-posture-state.d.ts.map +1 -0
- package/dist/agent/access/invoker-posture-state.js +23 -0
- package/dist/agent/access/invoker-posture-state.js.map +1 -0
- package/dist/agent/access/invoker-posture.d.ts +29 -0
- package/dist/agent/access/invoker-posture.d.ts.map +1 -0
- package/dist/agent/access/invoker-posture.js +70 -0
- package/dist/agent/access/invoker-posture.js.map +1 -0
- package/dist/agent/access/job-posture.d.ts +37 -0
- package/dist/agent/access/job-posture.d.ts.map +1 -0
- package/dist/agent/access/job-posture.js +65 -0
- package/dist/agent/access/job-posture.js.map +1 -0
- package/dist/agent/access/job-session-state.d.ts +13 -0
- package/dist/agent/access/job-session-state.d.ts.map +1 -0
- package/dist/agent/access/job-session-state.js +57 -0
- package/dist/agent/access/job-session-state.js.map +1 -0
- package/dist/agent/access/lean-seat-state.d.ts +12 -0
- package/dist/agent/access/lean-seat-state.d.ts.map +1 -0
- package/dist/agent/access/lean-seat-state.js +35 -0
- package/dist/agent/access/lean-seat-state.js.map +1 -0
- package/dist/agent/access/lean-seat.d.ts +25 -0
- package/dist/agent/access/lean-seat.d.ts.map +1 -0
- package/dist/agent/access/lean-seat.js +66 -0
- package/dist/agent/access/lean-seat.js.map +1 -0
- package/dist/agent/access/lint.d.ts +39 -0
- package/dist/agent/access/lint.d.ts.map +1 -0
- package/dist/agent/access/lint.js +556 -0
- package/dist/agent/access/lint.js.map +1 -0
- package/dist/agent/access/live-delegated-tasks.d.ts +20 -0
- package/dist/agent/access/live-delegated-tasks.d.ts.map +1 -0
- package/dist/agent/access/live-delegated-tasks.js +96 -0
- package/dist/agent/access/live-delegated-tasks.js.map +1 -0
- package/dist/agent/access/loop-breaker.d.ts +26 -0
- package/dist/agent/access/loop-breaker.d.ts.map +1 -0
- package/dist/agent/access/loop-breaker.js +77 -0
- package/dist/agent/access/loop-breaker.js.map +1 -0
- package/dist/agent/access/mcp-call-fence.d.ts +19 -0
- package/dist/agent/access/mcp-call-fence.d.ts.map +1 -0
- package/dist/agent/access/mcp-call-fence.js +180 -0
- package/dist/agent/access/mcp-call-fence.js.map +1 -0
- package/dist/agent/access/member-grant.d.ts +16 -0
- package/dist/agent/access/member-grant.d.ts.map +1 -0
- package/dist/agent/access/member-grant.js +34 -0
- package/dist/agent/access/member-grant.js.map +1 -0
- package/dist/agent/access/member-plane.d.ts +91 -0
- package/dist/agent/access/member-plane.d.ts.map +1 -0
- package/dist/agent/access/member-plane.js +114 -0
- package/dist/agent/access/member-plane.js.map +1 -0
- package/dist/agent/access/native-admin.d.ts +13 -0
- package/dist/agent/access/native-admin.d.ts.map +1 -0
- package/dist/agent/access/native-admin.js +23 -0
- package/dist/agent/access/native-admin.js.map +1 -0
- package/dist/agent/access/native-delegation-state.d.ts +16 -0
- package/dist/agent/access/native-delegation-state.d.ts.map +1 -0
- package/dist/agent/access/native-delegation-state.js +26 -0
- package/dist/agent/access/native-delegation-state.js.map +1 -0
- package/dist/agent/access/network-access.d.ts +23 -0
- package/dist/agent/access/network-access.d.ts.map +1 -0
- package/dist/agent/access/network-access.js +108 -0
- package/dist/agent/access/network-access.js.map +1 -0
- package/dist/agent/access/nullable-optional-fields.d.ts +13 -0
- package/dist/agent/access/nullable-optional-fields.d.ts.map +1 -0
- package/dist/agent/access/nullable-optional-fields.js +190 -0
- package/dist/agent/access/nullable-optional-fields.js.map +1 -0
- package/dist/agent/access/overlay-module.d.ts +20 -0
- package/dist/agent/access/overlay-module.d.ts.map +1 -0
- package/dist/agent/access/overlay-module.js +47 -0
- package/dist/agent/access/overlay-module.js.map +1 -0
- package/dist/agent/access/own-account-gate-manifest.d.ts +23 -0
- package/dist/agent/access/own-account-gate-manifest.d.ts.map +1 -0
- package/dist/agent/access/own-account-gate-manifest.js +109 -0
- package/dist/agent/access/own-account-gate-manifest.js.map +1 -0
- package/dist/agent/access/pane-venue.d.ts +58 -0
- package/dist/agent/access/pane-venue.d.ts.map +1 -0
- package/dist/agent/access/pane-venue.js +177 -0
- package/dist/agent/access/pane-venue.js.map +1 -0
- package/dist/agent/access/pending-delegation-signal.d.ts +38 -0
- package/dist/agent/access/pending-delegation-signal.d.ts.map +1 -0
- package/dist/agent/access/pending-delegation-signal.js +268 -0
- package/dist/agent/access/pending-delegation-signal.js.map +1 -0
- package/dist/agent/access/permission-evidence.d.ts +184 -0
- package/dist/agent/access/permission-evidence.d.ts.map +1 -0
- package/dist/agent/access/permission-evidence.js +412 -0
- package/dist/agent/access/permission-evidence.js.map +1 -0
- package/dist/agent/access/permission-proposal.d.ts +33 -0
- package/dist/agent/access/permission-proposal.d.ts.map +1 -0
- package/dist/agent/access/permission-proposal.js +319 -0
- package/dist/agent/access/permission-proposal.js.map +1 -0
- package/dist/agent/access/platform.d.ts +5 -0
- package/dist/agent/access/platform.d.ts.map +1 -0
- package/dist/agent/access/platform.js +15 -0
- package/dist/agent/access/platform.js.map +1 -0
- package/dist/agent/access/pre-approval-rules.d.ts +44 -0
- package/dist/agent/access/pre-approval-rules.d.ts.map +1 -0
- package/dist/agent/access/pre-approval-rules.js +86 -0
- package/dist/agent/access/pre-approval-rules.js.map +1 -0
- package/dist/agent/access/principal-gate-manifest.d.ts +111 -0
- package/dist/agent/access/principal-gate-manifest.d.ts.map +1 -0
- package/dist/agent/access/principal-gate-manifest.js +718 -0
- package/dist/agent/access/principal-gate-manifest.js.map +1 -0
- package/dist/agent/access/provider-selection-check.d.ts +24 -0
- package/dist/agent/access/provider-selection-check.d.ts.map +1 -0
- package/dist/agent/access/provider-selection-check.js +97 -0
- package/dist/agent/access/provider-selection-check.js.map +1 -0
- package/dist/agent/access/provider-selection.d.ts +21 -0
- package/dist/agent/access/provider-selection.d.ts.map +1 -0
- package/dist/agent/access/provider-selection.js +76 -0
- package/dist/agent/access/provider-selection.js.map +1 -0
- package/dist/agent/access/read-grant.d.ts +13 -0
- package/dist/agent/access/read-grant.d.ts.map +1 -0
- package/dist/agent/access/read-grant.js +96 -0
- package/dist/agent/access/read-grant.js.map +1 -0
- package/dist/agent/access/repo-capabilities.d.ts +30 -0
- package/dist/agent/access/repo-capabilities.d.ts.map +1 -0
- package/dist/agent/access/repo-capabilities.js +60 -0
- package/dist/agent/access/repo-capabilities.js.map +1 -0
- package/dist/agent/access/request.d.ts +17 -0
- package/dist/agent/access/request.d.ts.map +1 -0
- package/dist/agent/access/request.js +110 -0
- package/dist/agent/access/request.js.map +1 -0
- package/dist/agent/access/requester-identity.d.ts +82 -0
- package/dist/agent/access/requester-identity.d.ts.map +1 -0
- package/dist/agent/access/requester-identity.js +275 -0
- package/dist/agent/access/requester-identity.js.map +1 -0
- package/dist/agent/access/requester-messages.d.ts +7 -0
- package/dist/agent/access/requester-messages.d.ts.map +1 -0
- package/dist/agent/access/requester-messages.js +45 -0
- package/dist/agent/access/requester-messages.js.map +1 -0
- package/dist/agent/access/reserved-hosts.d.ts +5 -0
- package/dist/agent/access/reserved-hosts.d.ts.map +1 -0
- package/dist/agent/access/reserved-hosts.js +9 -0
- package/dist/agent/access/reserved-hosts.js.map +1 -0
- package/dist/agent/access/resolver.d.ts +120 -0
- package/dist/agent/access/resolver.d.ts.map +1 -0
- package/dist/agent/access/resolver.js +447 -0
- package/dist/agent/access/resolver.js.map +1 -0
- package/dist/agent/access/resource-capabilities.d.ts +37 -0
- package/dist/agent/access/resource-capabilities.d.ts.map +1 -0
- package/dist/agent/access/resource-capabilities.js +77 -0
- package/dist/agent/access/resource-capabilities.js.map +1 -0
- package/dist/agent/access/resource-grant-manifest.d.ts +21 -0
- package/dist/agent/access/resource-grant-manifest.d.ts.map +1 -0
- package/dist/agent/access/resource-grant-manifest.js +93 -0
- package/dist/agent/access/resource-grant-manifest.js.map +1 -0
- package/dist/agent/access/resource-grant.d.ts +33 -0
- package/dist/agent/access/resource-grant.d.ts.map +1 -0
- package/dist/agent/access/resource-grant.js +131 -0
- package/dist/agent/access/resource-grant.js.map +1 -0
- package/dist/agent/access/result-cap.d.ts +11 -0
- package/dist/agent/access/result-cap.d.ts.map +1 -0
- package/dist/agent/access/result-cap.js +31 -0
- package/dist/agent/access/result-cap.js.map +1 -0
- package/dist/agent/access/result-reduce-model-arm.d.ts +25 -0
- package/dist/agent/access/result-reduce-model-arm.d.ts.map +1 -0
- package/dist/agent/access/result-reduce-model-arm.js +73 -0
- package/dist/agent/access/result-reduce-model-arm.js.map +1 -0
- package/dist/agent/access/result-reduce.d.ts +13 -0
- package/dist/agent/access/result-reduce.d.ts.map +1 -0
- package/dist/agent/access/result-reduce.js +86 -0
- package/dist/agent/access/result-reduce.js.map +1 -0
- package/dist/agent/access/roles.d.ts +26 -0
- package/dist/agent/access/roles.d.ts.map +1 -0
- package/dist/agent/access/roles.js +78 -0
- package/dist/agent/access/roles.js.map +1 -0
- package/dist/agent/access/scope-key.d.ts +43 -0
- package/dist/agent/access/scope-key.d.ts.map +1 -0
- package/dist/agent/access/scope-key.js +36 -0
- package/dist/agent/access/scope-key.js.map +1 -0
- package/dist/agent/access/seat-read-budget.d.ts +17 -0
- package/dist/agent/access/seat-read-budget.d.ts.map +1 -0
- package/dist/agent/access/seat-read-budget.js +53 -0
- package/dist/agent/access/seat-read-budget.js.map +1 -0
- package/dist/agent/access/self-host-egress.d.ts +37 -0
- package/dist/agent/access/self-host-egress.d.ts.map +1 -0
- package/dist/agent/access/self-host-egress.js +63 -0
- package/dist/agent/access/self-host-egress.js.map +1 -0
- package/dist/agent/access/settlement-dispatch-signal.d.ts +22 -0
- package/dist/agent/access/settlement-dispatch-signal.d.ts.map +1 -0
- package/dist/agent/access/settlement-dispatch-signal.js +76 -0
- package/dist/agent/access/settlement-dispatch-signal.js.map +1 -0
- package/dist/agent/access/skill-taint-envelope.d.ts +31 -0
- package/dist/agent/access/skill-taint-envelope.d.ts.map +1 -0
- package/dist/agent/access/skill-taint-envelope.js +80 -0
- package/dist/agent/access/skill-taint-envelope.js.map +1 -0
- package/dist/agent/access/source-gate-manifest.d.ts +14 -0
- package/dist/agent/access/source-gate-manifest.d.ts.map +1 -0
- package/dist/agent/access/source-gate-manifest.js +111 -0
- package/dist/agent/access/source-gate-manifest.js.map +1 -0
- package/dist/agent/access/source-scoped-mount.d.ts +7 -0
- package/dist/agent/access/source-scoped-mount.d.ts.map +1 -0
- package/dist/agent/access/source-scoped-mount.js +26 -0
- package/dist/agent/access/source-scoped-mount.js.map +1 -0
- package/dist/agent/access/subagent-taint.d.ts +44 -0
- package/dist/agent/access/subagent-taint.d.ts.map +1 -0
- package/dist/agent/access/subagent-taint.js +175 -0
- package/dist/agent/access/subagent-taint.js.map +1 -0
- package/dist/agent/access/surface-work-grant.d.ts +20 -0
- package/dist/agent/access/surface-work-grant.d.ts.map +1 -0
- package/dist/agent/access/surface-work-grant.js +84 -0
- package/dist/agent/access/surface-work-grant.js.map +1 -0
- package/dist/agent/access/taint-enforcement.d.ts +46 -0
- package/dist/agent/access/taint-enforcement.d.ts.map +1 -0
- package/dist/agent/access/taint-enforcement.js +141 -0
- package/dist/agent/access/taint-enforcement.js.map +1 -0
- package/dist/agent/access/taint-signal.d.ts +100 -0
- package/dist/agent/access/taint-signal.d.ts.map +1 -0
- package/dist/agent/access/taint-signal.js +236 -0
- package/dist/agent/access/taint-signal.js.map +1 -0
- package/dist/agent/access/taint-tiers.d.ts +64 -0
- package/dist/agent/access/taint-tiers.d.ts.map +1 -0
- package/dist/agent/access/taint-tiers.js +93 -0
- package/dist/agent/access/taint-tiers.js.map +1 -0
- package/dist/agent/access/task-wake-signal.d.ts +9 -0
- package/dist/agent/access/task-wake-signal.d.ts.map +1 -0
- package/dist/agent/access/task-wake-signal.js +86 -0
- package/dist/agent/access/task-wake-signal.js.map +1 -0
- package/dist/agent/access/tenant-admission.d.ts +52 -0
- package/dist/agent/access/tenant-admission.d.ts.map +1 -0
- package/dist/agent/access/tenant-admission.js +154 -0
- package/dist/agent/access/tenant-admission.js.map +1 -0
- package/dist/agent/access/untrusted-projection.d.ts +23 -0
- package/dist/agent/access/untrusted-projection.d.ts.map +1 -0
- package/dist/agent/access/untrusted-projection.js +258 -0
- package/dist/agent/access/untrusted-projection.js.map +1 -0
- package/dist/agent/access/untrusted.d.ts +34 -0
- package/dist/agent/access/untrusted.d.ts.map +1 -0
- package/dist/agent/access/untrusted.js +100 -0
- package/dist/agent/access/untrusted.js.map +1 -0
- package/dist/agent/access/wake-mapping.d.ts +22 -0
- package/dist/agent/access/wake-mapping.d.ts.map +1 -0
- package/dist/agent/access/wake-mapping.js +19 -0
- package/dist/agent/access/wake-mapping.js.map +1 -0
- package/dist/agent/access/web-fetch-fence.d.ts +8 -0
- package/dist/agent/access/web-fetch-fence.d.ts.map +1 -0
- package/dist/agent/access/web-fetch-fence.js +55 -0
- package/dist/agent/access/web-fetch-fence.js.map +1 -0
- package/dist/agent/access/window-gate-manifest.d.ts +75 -0
- package/dist/agent/access/window-gate-manifest.d.ts.map +1 -0
- package/dist/agent/access/window-gate-manifest.js +474 -0
- package/dist/agent/access/window-gate-manifest.js.map +1 -0
- package/dist/agent/access/window-gated.d.ts +111 -0
- package/dist/agent/access/window-gated.d.ts.map +1 -0
- package/dist/agent/access/window-gated.js +611 -0
- package/dist/agent/access/window-gated.js.map +1 -0
- package/dist/agent/access/window-routing.d.ts +16 -0
- package/dist/agent/access/window-routing.d.ts.map +1 -0
- package/dist/agent/access/window-routing.js +11 -0
- package/dist/agent/access/window-routing.js.map +1 -0
- package/dist/agent/access/work-grant.d.ts +39 -0
- package/dist/agent/access/work-grant.d.ts.map +1 -0
- package/dist/agent/access/work-grant.js +76 -0
- package/dist/agent/access/work-grant.js.map +1 -0
- package/dist/agent/access/work-mount-manifest.d.ts +21 -0
- package/dist/agent/access/work-mount-manifest.d.ts.map +1 -0
- package/dist/agent/access/work-mount-manifest.js +149 -0
- package/dist/agent/access/work-mount-manifest.js.map +1 -0
- package/dist/agent/access/worker-capabilities.d.ts +60 -0
- package/dist/agent/access/worker-capabilities.d.ts.map +1 -0
- package/dist/agent/access/worker-capabilities.js +318 -0
- package/dist/agent/access/worker-capabilities.js.map +1 -0
- package/dist/agent/access/worker-capability-index.generated.d.ts +7 -0
- package/dist/agent/access/worker-capability-index.generated.d.ts.map +1 -0
- package/dist/agent/access/worker-capability-index.generated.js +188 -0
- package/dist/agent/access/worker-capability-index.generated.js.map +1 -0
- package/dist/agent/access/worker-continuation.d.ts +7 -0
- package/dist/agent/access/worker-continuation.d.ts.map +1 -0
- package/dist/agent/access/worker-continuation.js +180 -0
- package/dist/agent/access/worker-continuation.js.map +1 -0
- package/dist/agent/access/worker-seat-state.d.ts +8 -0
- package/dist/agent/access/worker-seat-state.d.ts.map +1 -0
- package/dist/agent/access/worker-seat-state.js +24 -0
- package/dist/agent/access/worker-seat-state.js.map +1 -0
- package/dist/agent/access/worker-seat.d.ts +23 -0
- package/dist/agent/access/worker-seat.d.ts.map +1 -0
- package/dist/agent/access/worker-seat.js +47 -0
- package/dist/agent/access/worker-seat.js.map +1 -0
- package/dist/agent/access/worker-toolset-state.d.ts +32 -0
- package/dist/agent/access/worker-toolset-state.d.ts.map +1 -0
- package/dist/agent/access/worker-toolset-state.js +40 -0
- package/dist/agent/access/worker-toolset-state.js.map +1 -0
- package/dist/agent/adapter-api.d.ts +416 -0
- package/dist/agent/adapter-api.d.ts.map +1 -0
- package/dist/agent/adapter-api.js +1147 -0
- package/dist/agent/adapter-api.js.map +1 -0
- package/dist/agent/analytics/compile.d.ts +127 -0
- package/dist/agent/analytics/compile.d.ts.map +1 -0
- package/dist/agent/analytics/compile.js +406 -0
- package/dist/agent/analytics/compile.js.map +1 -0
- package/dist/agent/analytics/execute.d.ts +20 -0
- package/dist/agent/analytics/execute.d.ts.map +1 -0
- package/dist/agent/analytics/execute.js +146 -0
- package/dist/agent/analytics/execute.js.map +1 -0
- package/dist/agent/analytics/registry.d.ts +89 -0
- package/dist/agent/analytics/registry.d.ts.map +1 -0
- package/dist/agent/analytics/registry.js +216 -0
- package/dist/agent/analytics/registry.js.map +1 -0
- package/dist/agent/approvals/access-request.d.ts +53 -0
- package/dist/agent/approvals/access-request.d.ts.map +1 -0
- package/dist/agent/approvals/access-request.js +186 -0
- package/dist/agent/approvals/access-request.js.map +1 -0
- package/dist/agent/approvals/actions.d.ts +95 -0
- package/dist/agent/approvals/actions.d.ts.map +1 -0
- package/dist/agent/approvals/actions.js +293 -0
- package/dist/agent/approvals/actions.js.map +1 -0
- package/dist/agent/approvals/agent-create.d.ts +44 -0
- package/dist/agent/approvals/agent-create.d.ts.map +1 -0
- package/dist/agent/approvals/agent-create.js +205 -0
- package/dist/agent/approvals/agent-create.js.map +1 -0
- package/dist/agent/approvals/arming-context.d.ts +13 -0
- package/dist/agent/approvals/arming-context.d.ts.map +1 -0
- package/dist/agent/approvals/arming-context.js +17 -0
- package/dist/agent/approvals/arming-context.js.map +1 -0
- package/dist/agent/approvals/card-disclosure.d.ts +28 -0
- package/dist/agent/approvals/card-disclosure.d.ts.map +1 -0
- package/dist/agent/approvals/card-disclosure.js +31 -0
- package/dist/agent/approvals/card-disclosure.js.map +1 -0
- package/dist/agent/approvals/card-signal.d.ts +41 -0
- package/dist/agent/approvals/card-signal.d.ts.map +1 -0
- package/dist/agent/approvals/card-signal.js +115 -0
- package/dist/agent/approvals/card-signal.js.map +1 -0
- package/dist/agent/approvals/card-venue.d.ts +55 -0
- package/dist/agent/approvals/card-venue.d.ts.map +1 -0
- package/dist/agent/approvals/card-venue.js +106 -0
- package/dist/agent/approvals/card-venue.js.map +1 -0
- package/dist/agent/approvals/card.d.ts +23 -0
- package/dist/agent/approvals/card.d.ts.map +1 -0
- package/dist/agent/approvals/card.js +99 -0
- package/dist/agent/approvals/card.js.map +1 -0
- package/dist/agent/approvals/chat-dm.d.ts +19 -0
- package/dist/agent/approvals/chat-dm.d.ts.map +1 -0
- package/dist/agent/approvals/chat-dm.js +41 -0
- package/dist/agent/approvals/chat-dm.js.map +1 -0
- package/dist/agent/approvals/chat-post.d.ts +15 -0
- package/dist/agent/approvals/chat-post.d.ts.map +1 -0
- package/dist/agent/approvals/chat-post.js +43 -0
- package/dist/agent/approvals/chat-post.js.map +1 -0
- package/dist/agent/approvals/clicker-floor.d.ts +48 -0
- package/dist/agent/approvals/clicker-floor.d.ts.map +1 -0
- package/dist/agent/approvals/clicker-floor.js +58 -0
- package/dist/agent/approvals/clicker-floor.js.map +1 -0
- package/dist/agent/approvals/decision-authority.internal.d.ts +19 -0
- package/dist/agent/approvals/decision-authority.internal.d.ts.map +1 -0
- package/dist/agent/approvals/decision-authority.internal.js +107 -0
- package/dist/agent/approvals/decision-authority.internal.js.map +1 -0
- package/dist/agent/approvals/decision-wake.d.ts +28 -0
- package/dist/agent/approvals/decision-wake.d.ts.map +1 -0
- package/dist/agent/approvals/decision-wake.js +84 -0
- package/dist/agent/approvals/decision-wake.js.map +1 -0
- package/dist/agent/approvals/domain-exposure.d.ts +27 -0
- package/dist/agent/approvals/domain-exposure.d.ts.map +1 -0
- package/dist/agent/approvals/domain-exposure.js +145 -0
- package/dist/agent/approvals/domain-exposure.js.map +1 -0
- package/dist/agent/approvals/eve-response-policy.d.ts +22 -0
- package/dist/agent/approvals/eve-response-policy.d.ts.map +1 -0
- package/dist/agent/approvals/eve-response-policy.js +27 -0
- package/dist/agent/approvals/eve-response-policy.js.map +1 -0
- package/dist/agent/approvals/flow.d.ts +398 -0
- package/dist/agent/approvals/flow.d.ts.map +1 -0
- package/dist/agent/approvals/flow.js +1722 -0
- package/dist/agent/approvals/flow.js.map +1 -0
- package/dist/agent/approvals/input-response-floor.d.ts +47 -0
- package/dist/agent/approvals/input-response-floor.d.ts.map +1 -0
- package/dist/agent/approvals/input-response-floor.js +56 -0
- package/dist/agent/approvals/input-response-floor.js.map +1 -0
- package/dist/agent/approvals/judge-contradiction.d.ts +56 -0
- package/dist/agent/approvals/judge-contradiction.d.ts.map +1 -0
- package/dist/agent/approvals/judge-contradiction.js +90 -0
- package/dist/agent/approvals/judge-contradiction.js.map +1 -0
- package/dist/agent/approvals/memory-purge.d.ts +2 -0
- package/dist/agent/approvals/memory-purge.d.ts.map +1 -0
- package/dist/agent/approvals/memory-purge.js +128 -0
- package/dist/agent/approvals/memory-purge.js.map +1 -0
- package/dist/agent/approvals/pr-open.d.ts +36 -0
- package/dist/agent/approvals/pr-open.d.ts.map +1 -0
- package/dist/agent/approvals/pr-open.js +134 -0
- package/dist/agent/approvals/pr-open.js.map +1 -0
- package/dist/agent/approvals/review-surface.d.ts +3 -0
- package/dist/agent/approvals/review-surface.d.ts.map +1 -0
- package/dist/agent/approvals/review-surface.js +7 -0
- package/dist/agent/approvals/review-surface.js.map +1 -0
- package/dist/agent/approvals/routine-cancel.d.ts +2 -0
- package/dist/agent/approvals/routine-cancel.d.ts.map +1 -0
- package/dist/agent/approvals/routine-cancel.js +39 -0
- package/dist/agent/approvals/routine-cancel.js.map +1 -0
- package/dist/agent/approvals/routine-create.d.ts +38 -0
- package/dist/agent/approvals/routine-create.d.ts.map +1 -0
- package/dist/agent/approvals/routine-create.js +171 -0
- package/dist/agent/approvals/routine-create.js.map +1 -0
- package/dist/agent/approvals/routine-lifecycle.d.ts +2 -0
- package/dist/agent/approvals/routine-lifecycle.d.ts.map +1 -0
- package/dist/agent/approvals/routine-lifecycle.js +135 -0
- package/dist/agent/approvals/routine-lifecycle.js.map +1 -0
- package/dist/agent/approvals/routine-permission-offer.d.ts +35 -0
- package/dist/agent/approvals/routine-permission-offer.d.ts.map +1 -0
- package/dist/agent/approvals/routine-permission-offer.js +90 -0
- package/dist/agent/approvals/routine-permission-offer.js.map +1 -0
- package/dist/agent/approvals/routine-permission.d.ts +51 -0
- package/dist/agent/approvals/routine-permission.d.ts.map +1 -0
- package/dist/agent/approvals/routine-permission.js +173 -0
- package/dist/agent/approvals/routine-permission.js.map +1 -0
- package/dist/agent/approvals/routine-policy.d.ts +2 -0
- package/dist/agent/approvals/routine-policy.d.ts.map +1 -0
- package/dist/agent/approvals/routine-policy.js +133 -0
- package/dist/agent/approvals/routine-policy.js.map +1 -0
- package/dist/agent/approvals/scope-label.d.ts +11 -0
- package/dist/agent/approvals/scope-label.d.ts.map +1 -0
- package/dist/agent/approvals/scope-label.js +43 -0
- package/dist/agent/approvals/scope-label.js.map +1 -0
- package/dist/agent/approvals/session-checkpoint.d.ts +11 -0
- package/dist/agent/approvals/session-checkpoint.d.ts.map +1 -0
- package/dist/agent/approvals/session-checkpoint.js +60 -0
- package/dist/agent/approvals/session-checkpoint.js.map +1 -0
- package/dist/agent/approvals/session-grant.d.ts +46 -0
- package/dist/agent/approvals/session-grant.d.ts.map +1 -0
- package/dist/agent/approvals/session-grant.js +153 -0
- package/dist/agent/approvals/session-grant.js.map +1 -0
- package/dist/agent/approvals/skill-create.d.ts +2 -0
- package/dist/agent/approvals/skill-create.d.ts.map +1 -0
- package/dist/agent/approvals/skill-create.js +42 -0
- package/dist/agent/approvals/skill-create.js.map +1 -0
- package/dist/agent/approvals/skill-delete.d.ts +2 -0
- package/dist/agent/approvals/skill-delete.d.ts.map +1 -0
- package/dist/agent/approvals/skill-delete.js +38 -0
- package/dist/agent/approvals/skill-delete.js.map +1 -0
- package/dist/agent/approvals/taint-disclosure.d.ts +10 -0
- package/dist/agent/approvals/taint-disclosure.d.ts.map +1 -0
- package/dist/agent/approvals/taint-disclosure.js +36 -0
- package/dist/agent/approvals/taint-disclosure.js.map +1 -0
- package/dist/agent/approvals/ticket-actions.d.ts +27 -0
- package/dist/agent/approvals/ticket-actions.d.ts.map +1 -0
- package/dist/agent/approvals/ticket-actions.js +47 -0
- package/dist/agent/approvals/ticket-actions.js.map +1 -0
- package/dist/agent/approvals/ticket-create.d.ts +19 -0
- package/dist/agent/approvals/ticket-create.d.ts.map +1 -0
- package/dist/agent/approvals/ticket-create.js +46 -0
- package/dist/agent/approvals/ticket-create.js.map +1 -0
- package/dist/agent/approvals/types.d.ts +42 -0
- package/dist/agent/approvals/types.d.ts.map +1 -0
- package/dist/agent/approvals/types.js +3 -0
- package/dist/agent/approvals/types.js.map +1 -0
- package/dist/agent/approvals/webhook-declare.d.ts +55 -0
- package/dist/agent/approvals/webhook-declare.d.ts.map +1 -0
- package/dist/agent/approvals/webhook-declare.js +239 -0
- package/dist/agent/approvals/webhook-declare.js.map +1 -0
- package/dist/agent/approvals/webhook.d.ts +25 -0
- package/dist/agent/approvals/webhook.d.ts.map +1 -0
- package/dist/agent/approvals/webhook.js +156 -0
- package/dist/agent/approvals/webhook.js.map +1 -0
- package/dist/agent/audit/action-registry.d.ts +78 -0
- package/dist/agent/audit/action-registry.d.ts.map +1 -0
- package/dist/agent/audit/action-registry.js +996 -0
- package/dist/agent/audit/action-registry.js.map +1 -0
- package/dist/agent/audit/audit.d.ts +32 -0
- package/dist/agent/audit/audit.d.ts.map +1 -0
- package/dist/agent/audit/audit.js +100 -0
- package/dist/agent/audit/audit.js.map +1 -0
- package/dist/agent/audit/chain.d.ts +196 -0
- package/dist/agent/audit/chain.d.ts.map +1 -0
- package/dist/agent/audit/chain.js +462 -0
- package/dist/agent/audit/chain.js.map +1 -0
- package/dist/agent/audit/tool-action.d.ts +26 -0
- package/dist/agent/audit/tool-action.d.ts.map +1 -0
- package/dist/agent/audit/tool-action.js +271 -0
- package/dist/agent/audit/tool-action.js.map +1 -0
- package/dist/agent/audit/window-tool-gate.d.ts +21 -0
- package/dist/agent/audit/window-tool-gate.d.ts.map +1 -0
- package/dist/agent/audit/window-tool-gate.js +40 -0
- package/dist/agent/audit/window-tool-gate.js.map +1 -0
- package/dist/agent/audit/worker-toolset.d.ts +25 -0
- package/dist/agent/audit/worker-toolset.d.ts.map +1 -0
- package/dist/agent/audit/worker-toolset.js +108 -0
- package/dist/agent/audit/worker-toolset.js.map +1 -0
- package/dist/agent/blob/hosting.d.ts +61 -0
- package/dist/agent/blob/hosting.d.ts.map +1 -0
- package/dist/agent/blob/hosting.js +142 -0
- package/dist/agent/blob/hosting.js.map +1 -0
- package/dist/agent/channels/access-request-ledger.d.ts +36 -0
- package/dist/agent/channels/access-request-ledger.d.ts.map +1 -0
- package/dist/agent/channels/access-request-ledger.js +123 -0
- package/dist/agent/channels/access-request-ledger.js.map +1 -0
- package/dist/agent/channels/ambient-skip.d.ts +19 -0
- package/dist/agent/channels/ambient-skip.d.ts.map +1 -0
- package/dist/agent/channels/ambient-skip.js +88 -0
- package/dist/agent/channels/ambient-skip.js.map +1 -0
- package/dist/agent/channels/answered-container-ledger.d.ts +32 -0
- package/dist/agent/channels/answered-container-ledger.d.ts.map +1 -0
- package/dist/agent/channels/answered-container-ledger.js +70 -0
- package/dist/agent/channels/answered-container-ledger.js.map +1 -0
- package/dist/agent/channels/approval-card.d.ts +266 -0
- package/dist/agent/channels/approval-card.d.ts.map +1 -0
- package/dist/agent/channels/approval-card.js +328 -0
- package/dist/agent/channels/approval-card.js.map +1 -0
- package/dist/agent/channels/approval-claim-guard.d.ts +112 -0
- package/dist/agent/channels/approval-claim-guard.d.ts.map +1 -0
- package/dist/agent/channels/approval-claim-guard.js +324 -0
- package/dist/agent/channels/approval-claim-guard.js.map +1 -0
- package/dist/agent/channels/attachments.d.ts +113 -0
- package/dist/agent/channels/attachments.d.ts.map +1 -0
- package/dist/agent/channels/attachments.js +157 -0
- package/dist/agent/channels/attachments.js.map +1 -0
- package/dist/agent/channels/aws-sso-callback.d.ts +3 -0
- package/dist/agent/channels/aws-sso-callback.d.ts.map +1 -0
- package/dist/agent/channels/aws-sso-callback.js +8 -0
- package/dist/agent/channels/aws-sso-callback.js.map +1 -0
- package/dist/agent/channels/backscroll-window.d.ts +76 -0
- package/dist/agent/channels/backscroll-window.d.ts.map +1 -0
- package/dist/agent/channels/backscroll-window.js +106 -0
- package/dist/agent/channels/backscroll-window.js.map +1 -0
- package/dist/agent/channels/cancel-note.d.ts +45 -0
- package/dist/agent/channels/cancel-note.d.ts.map +1 -0
- package/dist/agent/channels/cancel-note.js +99 -0
- package/dist/agent/channels/cancel-note.js.map +1 -0
- package/dist/agent/channels/channel-key.d.ts +19 -0
- package/dist/agent/channels/channel-key.d.ts.map +1 -0
- package/dist/agent/channels/channel-key.js +53 -0
- package/dist/agent/channels/channel-key.js.map +1 -0
- package/dist/agent/channels/channel-read.d.ts +203 -0
- package/dist/agent/channels/channel-read.d.ts.map +1 -0
- package/dist/agent/channels/channel-read.js +294 -0
- package/dist/agent/channels/channel-read.js.map +1 -0
- package/dist/agent/channels/chat-turn-audit.d.ts +9 -0
- package/dist/agent/channels/chat-turn-audit.d.ts.map +1 -0
- package/dist/agent/channels/chat-turn-audit.js +18 -0
- package/dist/agent/channels/chat-turn-audit.js.map +1 -0
- package/dist/agent/channels/closing-prose-drop.d.ts +34 -0
- package/dist/agent/channels/closing-prose-drop.d.ts.map +1 -0
- package/dist/agent/channels/closing-prose-drop.js +29 -0
- package/dist/agent/channels/closing-prose-drop.js.map +1 -0
- package/dist/agent/channels/command-registration.d.ts +62 -0
- package/dist/agent/channels/command-registration.d.ts.map +1 -0
- package/dist/agent/channels/command-registration.js +128 -0
- package/dist/agent/channels/command-registration.js.map +1 -0
- package/dist/agent/channels/context-render.d.ts +111 -0
- package/dist/agent/channels/context-render.d.ts.map +1 -0
- package/dist/agent/channels/context-render.js +148 -0
- package/dist/agent/channels/context-render.js.map +1 -0
- package/dist/agent/channels/control-mcp.d.ts +3 -0
- package/dist/agent/channels/control-mcp.d.ts.map +1 -0
- package/dist/agent/channels/control-mcp.js +35 -0
- package/dist/agent/channels/control-mcp.js.map +1 -0
- package/dist/agent/channels/control-read.d.ts +3 -0
- package/dist/agent/channels/control-read.d.ts.map +1 -0
- package/dist/agent/channels/control-read.js +21 -0
- package/dist/agent/channels/control-read.js.map +1 -0
- package/dist/agent/channels/credential-intake-page.d.ts +3 -0
- package/dist/agent/channels/credential-intake-page.d.ts.map +1 -0
- package/dist/agent/channels/credential-intake-page.js +11 -0
- package/dist/agent/channels/credential-intake-page.js.map +1 -0
- package/dist/agent/channels/delegated-provenance.d.ts +129 -0
- package/dist/agent/channels/delegated-provenance.d.ts.map +1 -0
- package/dist/agent/channels/delegated-provenance.js +418 -0
- package/dist/agent/channels/delegated-provenance.js.map +1 -0
- package/dist/agent/channels/dm-audience.d.ts +157 -0
- package/dist/agent/channels/dm-audience.d.ts.map +1 -0
- package/dist/agent/channels/dm-audience.js +234 -0
- package/dist/agent/channels/dm-audience.js.map +1 -0
- package/dist/agent/channels/dm-seat.d.ts +68 -0
- package/dist/agent/channels/dm-seat.d.ts.map +1 -0
- package/dist/agent/channels/dm-seat.js +87 -0
- package/dist/agent/channels/dm-seat.js.map +1 -0
- package/dist/agent/channels/domain-fingerprint.d.ts +40 -0
- package/dist/agent/channels/domain-fingerprint.d.ts.map +1 -0
- package/dist/agent/channels/domain-fingerprint.js +94 -0
- package/dist/agent/channels/domain-fingerprint.js.map +1 -0
- package/dist/agent/channels/egress-spoof.d.ts +11 -0
- package/dist/agent/channels/egress-spoof.d.ts.map +1 -0
- package/dist/agent/channels/egress-spoof.js +36 -0
- package/dist/agent/channels/egress-spoof.js.map +1 -0
- package/dist/agent/channels/engaged-wake.d.ts +86 -0
- package/dist/agent/channels/engaged-wake.d.ts.map +1 -0
- package/dist/agent/channels/engaged-wake.js +146 -0
- package/dist/agent/channels/engaged-wake.js.map +1 -0
- package/dist/agent/channels/engagement.d.ts +132 -0
- package/dist/agent/channels/engagement.d.ts.map +1 -0
- package/dist/agent/channels/engagement.js +182 -0
- package/dist/agent/channels/engagement.js.map +1 -0
- package/dist/agent/channels/entity-actions.d.ts +80 -0
- package/dist/agent/channels/entity-actions.d.ts.map +1 -0
- package/dist/agent/channels/entity-actions.js +94 -0
- package/dist/agent/channels/entity-actions.js.map +1 -0
- package/dist/agent/channels/front-queue.d.ts +31 -0
- package/dist/agent/channels/front-queue.d.ts.map +1 -0
- package/dist/agent/channels/front-queue.js +86 -0
- package/dist/agent/channels/front-queue.js.map +1 -0
- package/dist/agent/channels/generation-retirement.d.ts +189 -0
- package/dist/agent/channels/generation-retirement.d.ts.map +1 -0
- package/dist/agent/channels/generation-retirement.js +473 -0
- package/dist/agent/channels/generation-retirement.js.map +1 -0
- package/dist/agent/channels/halt-per-wake.d.ts +53 -0
- package/dist/agent/channels/halt-per-wake.d.ts.map +1 -0
- package/dist/agent/channels/halt-per-wake.js +148 -0
- package/dist/agent/channels/halt-per-wake.js.map +1 -0
- package/dist/agent/channels/memory-claim-guard.d.ts +77 -0
- package/dist/agent/channels/memory-claim-guard.d.ts.map +1 -0
- package/dist/agent/channels/memory-claim-guard.js +389 -0
- package/dist/agent/channels/memory-claim-guard.js.map +1 -0
- package/dist/agent/channels/name-drop-wake-audit.d.ts +93 -0
- package/dist/agent/channels/name-drop-wake-audit.d.ts.map +1 -0
- package/dist/agent/channels/name-drop-wake-audit.js +92 -0
- package/dist/agent/channels/name-drop-wake-audit.js.map +1 -0
- package/dist/agent/channels/native-wake-retry.d.ts +16 -0
- package/dist/agent/channels/native-wake-retry.d.ts.map +1 -0
- package/dist/agent/channels/native-wake-retry.js +44 -0
- package/dist/agent/channels/native-wake-retry.js.map +1 -0
- package/dist/agent/channels/no-reply-signal.d.ts +12 -0
- package/dist/agent/channels/no-reply-signal.d.ts.map +1 -0
- package/dist/agent/channels/no-reply-signal.js +37 -0
- package/dist/agent/channels/no-reply-signal.js.map +1 -0
- package/dist/agent/channels/normalized-wake.d.ts +129 -0
- package/dist/agent/channels/normalized-wake.d.ts.map +1 -0
- package/dist/agent/channels/normalized-wake.js +153 -0
- package/dist/agent/channels/normalized-wake.js.map +1 -0
- package/dist/agent/channels/oe-oauth-callback.d.ts +3 -0
- package/dist/agent/channels/oe-oauth-callback.d.ts.map +1 -0
- package/dist/agent/channels/oe-oauth-callback.js +8 -0
- package/dist/agent/channels/oe-oauth-callback.js.map +1 -0
- package/dist/agent/channels/own-post-ledger.d.ts +35 -0
- package/dist/agent/channels/own-post-ledger.d.ts.map +1 -0
- package/dist/agent/channels/own-post-ledger.js +57 -0
- package/dist/agent/channels/own-post-ledger.js.map +1 -0
- package/dist/agent/channels/platform-failure.d.ts +20 -0
- package/dist/agent/channels/platform-failure.d.ts.map +1 -0
- package/dist/agent/channels/platform-failure.js +42 -0
- package/dist/agent/channels/platform-failure.js.map +1 -0
- package/dist/agent/channels/policy-pages.d.ts +3 -0
- package/dist/agent/channels/policy-pages.d.ts.map +1 -0
- package/dist/agent/channels/policy-pages.js +14 -0
- package/dist/agent/channels/policy-pages.js.map +1 -0
- package/dist/agent/channels/post-arms.d.ts +202 -0
- package/dist/agent/channels/post-arms.d.ts.map +1 -0
- package/dist/agent/channels/post-arms.js +146 -0
- package/dist/agent/channels/post-arms.js.map +1 -0
- package/dist/agent/channels/proactive-dm-manifest.d.ts +28 -0
- package/dist/agent/channels/proactive-dm-manifest.d.ts.map +1 -0
- package/dist/agent/channels/proactive-dm-manifest.js +80 -0
- package/dist/agent/channels/proactive-dm-manifest.js.map +1 -0
- package/dist/agent/channels/propose-scope.d.ts +18 -0
- package/dist/agent/channels/propose-scope.d.ts.map +1 -0
- package/dist/agent/channels/propose-scope.js +91 -0
- package/dist/agent/channels/propose-scope.js.map +1 -0
- package/dist/agent/channels/question-bridge.d.ts +291 -0
- package/dist/agent/channels/question-bridge.d.ts.map +1 -0
- package/dist/agent/channels/question-bridge.js +412 -0
- package/dist/agent/channels/question-bridge.js.map +1 -0
- package/dist/agent/channels/rate-limit-retry.d.ts +157 -0
- package/dist/agent/channels/rate-limit-retry.d.ts.map +1 -0
- package/dist/agent/channels/rate-limit-retry.js +256 -0
- package/dist/agent/channels/rate-limit-retry.js.map +1 -0
- package/dist/agent/channels/react-signal.d.ts +5 -0
- package/dist/agent/channels/react-signal.d.ts.map +1 -0
- package/dist/agent/channels/react-signal.js +25 -0
- package/dist/agent/channels/react-signal.js.map +1 -0
- package/dist/agent/channels/reaction-ingest.d.ts +87 -0
- package/dist/agent/channels/reaction-ingest.d.ts.map +1 -0
- package/dist/agent/channels/reaction-ingest.js +138 -0
- package/dist/agent/channels/reaction-ingest.js.map +1 -0
- package/dist/agent/channels/read-author-trust.d.ts +26 -0
- package/dist/agent/channels/read-author-trust.d.ts.map +1 -0
- package/dist/agent/channels/read-author-trust.js +56 -0
- package/dist/agent/channels/read-author-trust.js.map +1 -0
- package/dist/agent/channels/read-reach.d.ts +156 -0
- package/dist/agent/channels/read-reach.d.ts.map +1 -0
- package/dist/agent/channels/read-reach.js +293 -0
- package/dist/agent/channels/read-reach.js.map +1 -0
- package/dist/agent/channels/read-scope-audit.d.ts +39 -0
- package/dist/agent/channels/read-scope-audit.d.ts.map +1 -0
- package/dist/agent/channels/read-scope-audit.js +88 -0
- package/dist/agent/channels/read-scope-audit.js.map +1 -0
- package/dist/agent/channels/read-scope-error.d.ts +4 -0
- package/dist/agent/channels/read-scope-error.d.ts.map +1 -0
- package/dist/agent/channels/read-scope-error.js +6 -0
- package/dist/agent/channels/read-scope-error.js.map +1 -0
- package/dist/agent/channels/read-spool.d.ts +38 -0
- package/dist/agent/channels/read-spool.d.ts.map +1 -0
- package/dist/agent/channels/read-spool.js +97 -0
- package/dist/agent/channels/read-spool.js.map +1 -0
- package/dist/agent/channels/reply-edit.d.ts +47 -0
- package/dist/agent/channels/reply-edit.d.ts.map +1 -0
- package/dist/agent/channels/reply-edit.js +173 -0
- package/dist/agent/channels/reply-edit.js.map +1 -0
- package/dist/agent/channels/reply-fold.d.ts +186 -0
- package/dist/agent/channels/reply-fold.d.ts.map +1 -0
- package/dist/agent/channels/reply-fold.js +427 -0
- package/dist/agent/channels/reply-fold.js.map +1 -0
- package/dist/agent/channels/reply-freshness.d.ts +69 -0
- package/dist/agent/channels/reply-freshness.d.ts.map +1 -0
- package/dist/agent/channels/reply-freshness.js +208 -0
- package/dist/agent/channels/reply-freshness.js.map +1 -0
- package/dist/agent/channels/reply-post.d.ts +176 -0
- package/dist/agent/channels/reply-post.d.ts.map +1 -0
- package/dist/agent/channels/reply-post.js +407 -0
- package/dist/agent/channels/reply-post.js.map +1 -0
- package/dist/agent/channels/reply-provenance.d.ts +172 -0
- package/dist/agent/channels/reply-provenance.d.ts.map +1 -0
- package/dist/agent/channels/reply-provenance.js +662 -0
- package/dist/agent/channels/reply-provenance.js.map +1 -0
- package/dist/agent/channels/reply-signal.d.ts +141 -0
- package/dist/agent/channels/reply-signal.d.ts.map +1 -0
- package/dist/agent/channels/reply-signal.js +554 -0
- package/dist/agent/channels/reply-signal.js.map +1 -0
- package/dist/agent/channels/request-claim-guard.d.ts +91 -0
- package/dist/agent/channels/request-claim-guard.d.ts.map +1 -0
- package/dist/agent/channels/request-claim-guard.js +457 -0
- package/dist/agent/channels/request-claim-guard.js.map +1 -0
- package/dist/agent/channels/runtime-code-fingerprint.generated.d.ts +2 -0
- package/dist/agent/channels/runtime-code-fingerprint.generated.d.ts.map +1 -0
- package/dist/agent/channels/runtime-code-fingerprint.generated.js +9 -0
- package/dist/agent/channels/runtime-code-fingerprint.generated.js.map +1 -0
- package/dist/agent/channels/runtime-rotation.d.ts +98 -0
- package/dist/agent/channels/runtime-rotation.d.ts.map +1 -0
- package/dist/agent/channels/runtime-rotation.js +178 -0
- package/dist/agent/channels/runtime-rotation.js.map +1 -0
- package/dist/agent/channels/seat-admission.d.ts +61 -0
- package/dist/agent/channels/seat-admission.d.ts.map +1 -0
- package/dist/agent/channels/seat-admission.js +64 -0
- package/dist/agent/channels/seat-admission.js.map +1 -0
- package/dist/agent/channels/seat-catch-up.d.ts +240 -0
- package/dist/agent/channels/seat-catch-up.d.ts.map +1 -0
- package/dist/agent/channels/seat-catch-up.js +353 -0
- package/dist/agent/channels/seat-catch-up.js.map +1 -0
- package/dist/agent/channels/self-dispatch.d.ts +89 -0
- package/dist/agent/channels/self-dispatch.d.ts.map +1 -0
- package/dist/agent/channels/self-dispatch.js +310 -0
- package/dist/agent/channels/self-dispatch.js.map +1 -0
- package/dist/agent/channels/session-park.d.ts +120 -0
- package/dist/agent/channels/session-park.d.ts.map +1 -0
- package/dist/agent/channels/session-park.js +170 -0
- package/dist/agent/channels/session-park.js.map +1 -0
- package/dist/agent/channels/session-resume.d.ts +26 -0
- package/dist/agent/channels/session-resume.d.ts.map +1 -0
- package/dist/agent/channels/session-resume.js +34 -0
- package/dist/agent/channels/session-resume.js.map +1 -0
- package/dist/agent/channels/session-tail-record.d.ts +65 -0
- package/dist/agent/channels/session-tail-record.d.ts.map +1 -0
- package/dist/agent/channels/session-tail-record.js +129 -0
- package/dist/agent/channels/session-tail-record.js.map +1 -0
- package/dist/agent/channels/session-tail.d.ts +90 -0
- package/dist/agent/channels/session-tail.d.ts.map +1 -0
- package/dist/agent/channels/session-tail.js +79 -0
- package/dist/agent/channels/session-tail.js.map +1 -0
- package/dist/agent/channels/slack-bridge.d.ts +56 -0
- package/dist/agent/channels/slack-bridge.d.ts.map +1 -0
- package/dist/agent/channels/slack-bridge.js +80 -0
- package/dist/agent/channels/slack-bridge.js.map +1 -0
- package/dist/agent/channels/stand-down-silence.d.ts +49 -0
- package/dist/agent/channels/stand-down-silence.d.ts.map +1 -0
- package/dist/agent/channels/stand-down-silence.js +101 -0
- package/dist/agent/channels/stand-down-silence.js.map +1 -0
- package/dist/agent/channels/standing-authority.d.ts +69 -0
- package/dist/agent/channels/standing-authority.d.ts.map +1 -0
- package/dist/agent/channels/standing-authority.js +205 -0
- package/dist/agent/channels/standing-authority.js.map +1 -0
- package/dist/agent/channels/stranded-seat.d.ts +73 -0
- package/dist/agent/channels/stranded-seat.d.ts.map +1 -0
- package/dist/agent/channels/stranded-seat.js +107 -0
- package/dist/agent/channels/stranded-seat.js.map +1 -0
- package/dist/agent/channels/supervisor-complete.d.ts +61 -0
- package/dist/agent/channels/supervisor-complete.d.ts.map +1 -0
- package/dist/agent/channels/supervisor-complete.js +86 -0
- package/dist/agent/channels/supervisor-complete.js.map +1 -0
- package/dist/agent/channels/surface-message-ops.d.ts +100 -0
- package/dist/agent/channels/surface-message-ops.d.ts.map +1 -0
- package/dist/agent/channels/surface-message-ops.js +156 -0
- package/dist/agent/channels/surface-message-ops.js.map +1 -0
- package/dist/agent/channels/task-wake.d.ts +116 -0
- package/dist/agent/channels/task-wake.d.ts.map +1 -0
- package/dist/agent/channels/task-wake.js +390 -0
- package/dist/agent/channels/task-wake.js.map +1 -0
- package/dist/agent/channels/teams-bridge.d.ts +55 -0
- package/dist/agent/channels/teams-bridge.d.ts.map +1 -0
- package/dist/agent/channels/teams-bridge.js +25 -0
- package/dist/agent/channels/teams-bridge.js.map +1 -0
- package/dist/agent/channels/test-wake.d.ts +3 -0
- package/dist/agent/channels/test-wake.d.ts.map +1 -0
- package/dist/agent/channels/test-wake.js +11 -0
- package/dist/agent/channels/test-wake.js.map +1 -0
- package/dist/agent/channels/thread-ownership.d.ts +38 -0
- package/dist/agent/channels/thread-ownership.d.ts.map +1 -0
- package/dist/agent/channels/thread-ownership.js +53 -0
- package/dist/agent/channels/thread-ownership.js.map +1 -0
- package/dist/agent/channels/thread-seat-state.d.ts +35 -0
- package/dist/agent/channels/thread-seat-state.d.ts.map +1 -0
- package/dist/agent/channels/thread-seat-state.js +64 -0
- package/dist/agent/channels/thread-seat-state.js.map +1 -0
- package/dist/agent/channels/ticket-create.d.ts +77 -0
- package/dist/agent/channels/ticket-create.d.ts.map +1 -0
- package/dist/agent/channels/ticket-create.js +83 -0
- package/dist/agent/channels/ticket-create.js.map +1 -0
- package/dist/agent/channels/transcript-relay.d.ts +3 -0
- package/dist/agent/channels/transcript-relay.d.ts.map +1 -0
- package/dist/agent/channels/transcript-relay.js +8 -0
- package/dist/agent/channels/transcript-relay.js.map +1 -0
- package/dist/agent/channels/turn-cancel.d.ts +188 -0
- package/dist/agent/channels/turn-cancel.d.ts.map +1 -0
- package/dist/agent/channels/turn-cancel.js +310 -0
- package/dist/agent/channels/turn-cancel.js.map +1 -0
- package/dist/agent/channels/turn-delivery.d.ts +213 -0
- package/dist/agent/channels/turn-delivery.d.ts.map +1 -0
- package/dist/agent/channels/turn-delivery.js +384 -0
- package/dist/agent/channels/turn-delivery.js.map +1 -0
- package/dist/agent/channels/turn-registry.d.ts +47 -0
- package/dist/agent/channels/turn-registry.d.ts.map +1 -0
- package/dist/agent/channels/turn-registry.js +93 -0
- package/dist/agent/channels/turn-registry.js.map +1 -0
- package/dist/agent/channels/turn-terminal-actions.d.ts +22 -0
- package/dist/agent/channels/turn-terminal-actions.d.ts.map +1 -0
- package/dist/agent/channels/turn-terminal-actions.js +128 -0
- package/dist/agent/channels/turn-terminal-actions.js.map +1 -0
- package/dist/agent/channels/unified-redrive.d.ts +74 -0
- package/dist/agent/channels/unified-redrive.d.ts.map +1 -0
- package/dist/agent/channels/unified-redrive.js +141 -0
- package/dist/agent/channels/unified-redrive.js.map +1 -0
- package/dist/agent/channels/unified-reply.d.ts +102 -0
- package/dist/agent/channels/unified-reply.d.ts.map +1 -0
- package/dist/agent/channels/unified-reply.js +247 -0
- package/dist/agent/channels/unified-reply.js.map +1 -0
- package/dist/agent/channels/unified-supervisor.d.ts +100 -0
- package/dist/agent/channels/unified-supervisor.d.ts.map +1 -0
- package/dist/agent/channels/unified-supervisor.js +143 -0
- package/dist/agent/channels/unified-supervisor.js.map +1 -0
- package/dist/agent/channels/unified-window.d.ts +550 -0
- package/dist/agent/channels/unified-window.d.ts.map +1 -0
- package/dist/agent/channels/unified-window.js +731 -0
- package/dist/agent/channels/unified-window.js.map +1 -0
- package/dist/agent/channels/unified.d.ts +251 -0
- package/dist/agent/channels/unified.d.ts.map +1 -0
- package/dist/agent/channels/unified.js +1333 -0
- package/dist/agent/channels/unified.js.map +1 -0
- package/dist/agent/channels/wake-accounting.d.ts +57 -0
- package/dist/agent/channels/wake-accounting.d.ts.map +1 -0
- package/dist/agent/channels/wake-accounting.js +87 -0
- package/dist/agent/channels/wake-accounting.js.map +1 -0
- package/dist/agent/channels/wake-arm.d.ts +80 -0
- package/dist/agent/channels/wake-arm.d.ts.map +1 -0
- package/dist/agent/channels/wake-arm.js +173 -0
- package/dist/agent/channels/wake-arm.js.map +1 -0
- package/dist/agent/channels/wake-container.d.ts +27 -0
- package/dist/agent/channels/wake-container.d.ts.map +1 -0
- package/dist/agent/channels/wake-container.js +33 -0
- package/dist/agent/channels/wake-container.js.map +1 -0
- package/dist/agent/channels/wake-envelope.d.ts +252 -0
- package/dist/agent/channels/wake-envelope.d.ts.map +1 -0
- package/dist/agent/channels/wake-envelope.js +364 -0
- package/dist/agent/channels/wake-envelope.js.map +1 -0
- package/dist/agent/channels/wake-origin-codec.d.ts +77 -0
- package/dist/agent/channels/wake-origin-codec.d.ts.map +1 -0
- package/dist/agent/channels/wake-origin-codec.js +21 -0
- package/dist/agent/channels/wake-origin-codec.js.map +1 -0
- package/dist/agent/channels/wake-origin-codecs.d.ts +2 -0
- package/dist/agent/channels/wake-origin-codecs.d.ts.map +1 -0
- package/dist/agent/channels/wake-origin-codecs.js +4 -0
- package/dist/agent/channels/wake-origin-codecs.js.map +1 -0
- package/dist/agent/channels/wake-timing.d.ts +230 -0
- package/dist/agent/channels/wake-timing.d.ts.map +1 -0
- package/dist/agent/channels/wake-timing.js +256 -0
- package/dist/agent/channels/wake-timing.js.map +1 -0
- package/dist/agent/channels/webhook-reveal-page.d.ts +3 -0
- package/dist/agent/channels/webhook-reveal-page.d.ts.map +1 -0
- package/dist/agent/channels/webhook-reveal-page.js +11 -0
- package/dist/agent/channels/webhook-reveal-page.js.map +1 -0
- package/dist/agent/channels/webhooks.d.ts +5 -0
- package/dist/agent/channels/webhooks.d.ts.map +1 -0
- package/dist/agent/channels/webhooks.js +197 -0
- package/dist/agent/channels/webhooks.js.map +1 -0
- package/dist/agent/channels/window-key.d.ts +187 -0
- package/dist/agent/channels/window-key.d.ts.map +1 -0
- package/dist/agent/channels/window-key.js +379 -0
- package/dist/agent/channels/window-key.js.map +1 -0
- package/dist/agent/channels/window-sources.d.ts +17 -0
- package/dist/agent/channels/window-sources.d.ts.map +1 -0
- package/dist/agent/channels/window-sources.js +86 -0
- package/dist/agent/channels/window-sources.js.map +1 -0
- package/dist/agent/channels/work-destinations.d.ts +8 -0
- package/dist/agent/channels/work-destinations.d.ts.map +1 -0
- package/dist/agent/channels/work-destinations.js +45 -0
- package/dist/agent/channels/work-destinations.js.map +1 -0
- package/dist/agent/channels/work-registry.d.ts +13 -0
- package/dist/agent/channels/work-registry.d.ts.map +1 -0
- package/dist/agent/channels/work-registry.js +23 -0
- package/dist/agent/channels/work-registry.js.map +1 -0
- package/dist/agent/channels/work-search.d.ts +52 -0
- package/dist/agent/channels/work-search.d.ts.map +1 -0
- package/dist/agent/channels/work-search.js +54 -0
- package/dist/agent/channels/work-search.js.map +1 -0
- package/dist/agent/commands/core.d.ts +184 -0
- package/dist/agent/commands/core.d.ts.map +1 -0
- package/dist/agent/commands/core.js +541 -0
- package/dist/agent/commands/core.js.map +1 -0
- package/dist/agent/commands/rate.d.ts +55 -0
- package/dist/agent/commands/rate.d.ts.map +1 -0
- package/dist/agent/commands/rate.js +146 -0
- package/dist/agent/commands/rate.js.map +1 -0
- package/dist/agent/connections/auth-retry-memo.d.ts +28 -0
- package/dist/agent/connections/auth-retry-memo.d.ts.map +1 -0
- package/dist/agent/connections/auth-retry-memo.js +109 -0
- package/dist/agent/connections/auth-retry-memo.js.map +1 -0
- package/dist/agent/connections/aws-exec.d.ts +27 -0
- package/dist/agent/connections/aws-exec.d.ts.map +1 -0
- package/dist/agent/connections/aws-exec.js +22 -0
- package/dist/agent/connections/aws-exec.js.map +1 -0
- package/dist/agent/connections/aws-identity.d.ts +138 -0
- package/dist/agent/connections/aws-identity.d.ts.map +1 -0
- package/dist/agent/connections/aws-identity.js +163 -0
- package/dist/agent/connections/aws-identity.js.map +1 -0
- package/dist/agent/connections/aws-sso-callback.d.ts +33 -0
- package/dist/agent/connections/aws-sso-callback.d.ts.map +1 -0
- package/dist/agent/connections/aws-sso-callback.js +68 -0
- package/dist/agent/connections/aws-sso-callback.js.map +1 -0
- package/dist/agent/connections/aws-sso-identity-binding.d.ts +30 -0
- package/dist/agent/connections/aws-sso-identity-binding.d.ts.map +1 -0
- package/dist/agent/connections/aws-sso-identity-binding.js +95 -0
- package/dist/agent/connections/aws-sso-identity-binding.js.map +1 -0
- package/dist/agent/connections/aws-sso-link.d.ts +18 -0
- package/dist/agent/connections/aws-sso-link.d.ts.map +1 -0
- package/dist/agent/connections/aws-sso-link.js +22 -0
- package/dist/agent/connections/aws-sso-link.js.map +1 -0
- package/dist/agent/connections/connector-auth.d.ts +216 -0
- package/dist/agent/connections/connector-auth.d.ts.map +1 -0
- package/dist/agent/connections/connector-auth.js +745 -0
- package/dist/agent/connections/connector-auth.js.map +1 -0
- package/dist/agent/connections/connector-card.d.ts +61 -0
- package/dist/agent/connections/connector-card.d.ts.map +1 -0
- package/dist/agent/connections/connector-card.js +361 -0
- package/dist/agent/connections/connector-card.js.map +1 -0
- package/dist/agent/connections/connector-flags.d.ts +22 -0
- package/dist/agent/connections/connector-flags.d.ts.map +1 -0
- package/dist/agent/connections/connector-flags.js +40 -0
- package/dist/agent/connections/connector-flags.js.map +1 -0
- package/dist/agent/connections/connector-offer.d.ts +122 -0
- package/dist/agent/connections/connector-offer.d.ts.map +1 -0
- package/dist/agent/connections/connector-offer.js +145 -0
- package/dist/agent/connections/connector-offer.js.map +1 -0
- package/dist/agent/connections/connector-transport.d.ts +55 -0
- package/dist/agent/connections/connector-transport.d.ts.map +1 -0
- package/dist/agent/connections/connector-transport.js +80 -0
- package/dist/agent/connections/connector-transport.js.map +1 -0
- package/dist/agent/connections/consent-resume.d.ts +81 -0
- package/dist/agent/connections/consent-resume.d.ts.map +1 -0
- package/dist/agent/connections/consent-resume.js +142 -0
- package/dist/agent/connections/consent-resume.js.map +1 -0
- package/dist/agent/connections/grant-mcp-borrow.d.ts +116 -0
- package/dist/agent/connections/grant-mcp-borrow.d.ts.map +1 -0
- package/dist/agent/connections/grant-mcp-borrow.js +256 -0
- package/dist/agent/connections/grant-mcp-borrow.js.map +1 -0
- package/dist/agent/connections/grant-mcp-transport.d.ts +13 -0
- package/dist/agent/connections/grant-mcp-transport.d.ts.map +1 -0
- package/dist/agent/connections/grant-mcp-transport.js +50 -0
- package/dist/agent/connections/grant-mcp-transport.js.map +1 -0
- package/dist/agent/connections/notion.d.ts +3 -0
- package/dist/agent/connections/notion.d.ts.map +1 -0
- package/dist/agent/connections/notion.js +35 -0
- package/dist/agent/connections/notion.js.map +1 -0
- package/dist/agent/connections/oe-oauth-callback.d.ts +61 -0
- package/dist/agent/connections/oe-oauth-callback.d.ts.map +1 -0
- package/dist/agent/connections/oe-oauth-callback.js +142 -0
- package/dist/agent/connections/oe-oauth-callback.js.map +1 -0
- package/dist/agent/connections/own-account-ask.d.ts +120 -0
- package/dist/agent/connections/own-account-ask.d.ts.map +1 -0
- package/dist/agent/connections/own-account-ask.js +204 -0
- package/dist/agent/connections/own-account-ask.js.map +1 -0
- package/dist/agent/connections/own-account-carriage.d.ts +33 -0
- package/dist/agent/connections/own-account-carriage.d.ts.map +1 -0
- package/dist/agent/connections/own-account-carriage.js +102 -0
- package/dist/agent/connections/own-account-carriage.js.map +1 -0
- package/dist/agent/connections/own-account-gate.d.ts +105 -0
- package/dist/agent/connections/own-account-gate.d.ts.map +1 -0
- package/dist/agent/connections/own-account-gate.js +305 -0
- package/dist/agent/connections/own-account-gate.js.map +1 -0
- package/dist/agent/connections/own-account-vendors.d.ts +40 -0
- package/dist/agent/connections/own-account-vendors.d.ts.map +1 -0
- package/dist/agent/connections/own-account-vendors.js +106 -0
- package/dist/agent/connections/own-account-vendors.js.map +1 -0
- package/dist/agent/connections/user-auth-flow.d.ts +78 -0
- package/dist/agent/connections/user-auth-flow.d.ts.map +1 -0
- package/dist/agent/connections/user-auth-flow.js +41 -0
- package/dist/agent/connections/user-auth-flow.js.map +1 -0
- package/dist/agent/contributions.d.ts +671 -0
- package/dist/agent/contributions.d.ts.map +1 -0
- package/dist/agent/contributions.js +192 -0
- package/dist/agent/contributions.js.map +1 -0
- package/dist/agent/control/auth.d.ts +291 -0
- package/dist/agent/control/auth.d.ts.map +1 -0
- package/dist/agent/control/auth.js +533 -0
- package/dist/agent/control/auth.js.map +1 -0
- package/dist/agent/control/capture-window-read.d.ts +115 -0
- package/dist/agent/control/capture-window-read.d.ts.map +1 -0
- package/dist/agent/control/capture-window-read.js +302 -0
- package/dist/agent/control/capture-window-read.js.map +1 -0
- package/dist/agent/control/delivery-history.d.ts +163 -0
- package/dist/agent/control/delivery-history.d.ts.map +1 -0
- package/dist/agent/control/delivery-history.js +397 -0
- package/dist/agent/control/delivery-history.js.map +1 -0
- package/dist/agent/control/http.d.ts +13 -0
- package/dist/agent/control/http.d.ts.map +1 -0
- package/dist/agent/control/http.js +131 -0
- package/dist/agent/control/http.js.map +1 -0
- package/dist/agent/control/mcp-route.d.ts +13 -0
- package/dist/agent/control/mcp-route.d.ts.map +1 -0
- package/dist/agent/control/mcp-route.js +100 -0
- package/dist/agent/control/mcp-route.js.map +1 -0
- package/dist/agent/control/oauth-clients.d.ts +145 -0
- package/dist/agent/control/oauth-clients.d.ts.map +1 -0
- package/dist/agent/control/oauth-clients.js +229 -0
- package/dist/agent/control/oauth-clients.js.map +1 -0
- package/dist/agent/control/oauth-resource.d.ts +59 -0
- package/dist/agent/control/oauth-resource.d.ts.map +1 -0
- package/dist/agent/control/oauth-resource.js +168 -0
- package/dist/agent/control/oauth-resource.js.map +1 -0
- package/dist/agent/control/oauth-route.d.ts +50 -0
- package/dist/agent/control/oauth-route.d.ts.map +1 -0
- package/dist/agent/control/oauth-route.js +343 -0
- package/dist/agent/control/oauth-route.js.map +1 -0
- package/dist/agent/control/oauth-tokens.d.ts +88 -0
- package/dist/agent/control/oauth-tokens.d.ts.map +1 -0
- package/dist/agent/control/oauth-tokens.js +171 -0
- package/dist/agent/control/oauth-tokens.js.map +1 -0
- package/dist/agent/control/read-route.d.ts +278 -0
- package/dist/agent/control/read-route.d.ts.map +1 -0
- package/dist/agent/control/read-route.js +761 -0
- package/dist/agent/control/read-route.js.map +1 -0
- package/dist/agent/control/server.d.ts +49 -0
- package/dist/agent/control/server.d.ts.map +1 -0
- package/dist/agent/control/server.js +405 -0
- package/dist/agent/control/server.js.map +1 -0
- package/dist/agent/control/test-route.d.ts +85 -0
- package/dist/agent/control/test-route.d.ts.map +1 -0
- package/dist/agent/control/test-route.js +426 -0
- package/dist/agent/control/test-route.js.map +1 -0
- package/dist/agent/control/transcript-export.d.ts +68 -0
- package/dist/agent/control/transcript-export.d.ts.map +1 -0
- package/dist/agent/control/transcript-export.js +145 -0
- package/dist/agent/control/transcript-export.js.map +1 -0
- package/dist/agent/control/transcript-relay.d.ts +104 -0
- package/dist/agent/control/transcript-relay.d.ts.map +1 -0
- package/dist/agent/control/transcript-relay.js +314 -0
- package/dist/agent/control/transcript-relay.js.map +1 -0
- package/dist/agent/control/transcript-render.d.ts +43 -0
- package/dist/agent/control/transcript-render.d.ts.map +1 -0
- package/dist/agent/control/transcript-render.js +142 -0
- package/dist/agent/control/transcript-render.js.map +1 -0
- package/dist/agent/control/views.d.ts +511 -0
- package/dist/agent/control/views.d.ts.map +1 -0
- package/dist/agent/control/views.js +743 -0
- package/dist/agent/control/views.js.map +1 -0
- package/dist/agent/control/writes.d.ts +15 -0
- package/dist/agent/control/writes.d.ts.map +1 -0
- package/dist/agent/control/writes.js +1309 -0
- package/dist/agent/control/writes.js.map +1 -0
- package/dist/agent/credentials/binding-pr.d.ts +51 -0
- package/dist/agent/credentials/binding-pr.d.ts.map +1 -0
- package/dist/agent/credentials/binding-pr.js +178 -0
- package/dist/agent/credentials/binding-pr.js.map +1 -0
- package/dist/agent/credentials/config-pr-github.d.ts +24 -0
- package/dist/agent/credentials/config-pr-github.d.ts.map +1 -0
- package/dist/agent/credentials/config-pr-github.js +160 -0
- package/dist/agent/credentials/config-pr-github.js.map +1 -0
- package/dist/agent/credentials/config-pr.d.ts +148 -0
- package/dist/agent/credentials/config-pr.d.ts.map +1 -0
- package/dist/agent/credentials/config-pr.js +45 -0
- package/dist/agent/credentials/config-pr.js.map +1 -0
- package/dist/agent/credentials/db-broker.d.ts +82 -0
- package/dist/agent/credentials/db-broker.d.ts.map +1 -0
- package/dist/agent/credentials/db-broker.js +231 -0
- package/dist/agent/credentials/db-broker.js.map +1 -0
- package/dist/agent/credentials/home.d.ts +51 -0
- package/dist/agent/credentials/home.d.ts.map +1 -0
- package/dist/agent/credentials/home.js +43 -0
- package/dist/agent/credentials/home.js.map +1 -0
- package/dist/agent/credentials/intake-page.d.ts +54 -0
- package/dist/agent/credentials/intake-page.d.ts.map +1 -0
- package/dist/agent/credentials/intake-page.js +238 -0
- package/dist/agent/credentials/intake-page.js.map +1 -0
- package/dist/agent/credentials/intake.d.ts +147 -0
- package/dist/agent/credentials/intake.d.ts.map +1 -0
- package/dist/agent/credentials/intake.js +404 -0
- package/dist/agent/credentials/intake.js.map +1 -0
- package/dist/agent/credentials/kv-vault.d.ts +69 -0
- package/dist/agent/credentials/kv-vault.d.ts.map +1 -0
- package/dist/agent/credentials/kv-vault.js +121 -0
- package/dist/agent/credentials/kv-vault.js.map +1 -0
- package/dist/agent/credentials/operator-secrets.d.ts +169 -0
- package/dist/agent/credentials/operator-secrets.d.ts.map +1 -0
- package/dist/agent/credentials/operator-secrets.js +316 -0
- package/dist/agent/credentials/operator-secrets.js.map +1 -0
- package/dist/agent/credentials/page-chrome.d.ts +11 -0
- package/dist/agent/credentials/page-chrome.d.ts.map +1 -0
- package/dist/agent/credentials/page-chrome.js +52 -0
- package/dist/agent/credentials/page-chrome.js.map +1 -0
- package/dist/agent/credentials/page-token.d.ts +73 -0
- package/dist/agent/credentials/page-token.d.ts.map +1 -0
- package/dist/agent/credentials/page-token.js +197 -0
- package/dist/agent/credentials/page-token.js.map +1 -0
- package/dist/agent/credentials/purge.d.ts +54 -0
- package/dist/agent/credentials/purge.d.ts.map +1 -0
- package/dist/agent/credentials/purge.js +82 -0
- package/dist/agent/credentials/purge.js.map +1 -0
- package/dist/agent/credentials/ref.d.ts +72 -0
- package/dist/agent/credentials/ref.d.ts.map +1 -0
- package/dist/agent/credentials/ref.js +110 -0
- package/dist/agent/credentials/ref.js.map +1 -0
- package/dist/agent/credentials/reserved-refs.d.ts +31 -0
- package/dist/agent/credentials/reserved-refs.d.ts.map +1 -0
- package/dist/agent/credentials/reserved-refs.js +70 -0
- package/dist/agent/credentials/reserved-refs.js.map +1 -0
- package/dist/agent/credentials/self-secrets.d.ts +24 -0
- package/dist/agent/credentials/self-secrets.d.ts.map +1 -0
- package/dist/agent/credentials/self-secrets.js +138 -0
- package/dist/agent/credentials/self-secrets.js.map +1 -0
- package/dist/agent/credentials/warm.d.ts +77 -0
- package/dist/agent/credentials/warm.d.ts.map +1 -0
- package/dist/agent/credentials/warm.js +136 -0
- package/dist/agent/credentials/warm.js.map +1 -0
- package/dist/agent/docs/approver-policy.d.ts +70 -0
- package/dist/agent/docs/approver-policy.d.ts.map +1 -0
- package/dist/agent/docs/approver-policy.js +193 -0
- package/dist/agent/docs/approver-policy.js.map +1 -0
- package/dist/agent/docs/capability-map.d.ts +69 -0
- package/dist/agent/docs/capability-map.d.ts.map +1 -0
- package/dist/agent/docs/capability-map.js +142 -0
- package/dist/agent/docs/capability-map.js.map +1 -0
- package/dist/agent/docs/counted-claims.d.ts +61 -0
- package/dist/agent/docs/counted-claims.d.ts.map +1 -0
- package/dist/agent/docs/counted-claims.js +363 -0
- package/dist/agent/docs/counted-claims.js.map +1 -0
- package/dist/agent/docs/registry.d.ts +73 -0
- package/dist/agent/docs/registry.d.ts.map +1 -0
- package/dist/agent/docs/registry.js +157 -0
- package/dist/agent/docs/registry.js.map +1 -0
- package/dist/agent/docs/source-map.d.ts +69 -0
- package/dist/agent/docs/source-map.d.ts.map +1 -0
- package/dist/agent/docs/source-map.js +156 -0
- package/dist/agent/docs/source-map.js.map +1 -0
- package/dist/agent/hooks/approval-raised.d.ts +3 -0
- package/dist/agent/hooks/approval-raised.d.ts.map +1 -0
- package/dist/agent/hooks/approval-raised.js +31 -0
- package/dist/agent/hooks/approval-raised.js.map +1 -0
- package/dist/agent/hooks/approval-settlement.d.ts +5 -0
- package/dist/agent/hooks/approval-settlement.d.ts.map +1 -0
- package/dist/agent/hooks/approval-settlement.js +90 -0
- package/dist/agent/hooks/approval-settlement.js.map +1 -0
- package/dist/agent/hooks/binding-bridge.d.ts +3 -0
- package/dist/agent/hooks/binding-bridge.d.ts.map +1 -0
- package/dist/agent/hooks/binding-bridge.js +63 -0
- package/dist/agent/hooks/binding-bridge.js.map +1 -0
- package/dist/agent/hooks/connector-audit.d.ts +3 -0
- package/dist/agent/hooks/connector-audit.d.ts.map +1 -0
- package/dist/agent/hooks/connector-audit.js +103 -0
- package/dist/agent/hooks/connector-audit.js.map +1 -0
- package/dist/agent/hooks/egress.d.ts +150 -0
- package/dist/agent/hooks/egress.d.ts.map +1 -0
- package/dist/agent/hooks/egress.js +546 -0
- package/dist/agent/hooks/egress.js.map +1 -0
- package/dist/agent/hooks/eve-patch-gate.d.ts +3 -0
- package/dist/agent/hooks/eve-patch-gate.d.ts.map +1 -0
- package/dist/agent/hooks/eve-patch-gate.js +51 -0
- package/dist/agent/hooks/eve-patch-gate.js.map +1 -0
- package/dist/agent/hooks/fire-carriage.d.ts +3 -0
- package/dist/agent/hooks/fire-carriage.d.ts.map +1 -0
- package/dist/agent/hooks/fire-carriage.js +32 -0
- package/dist/agent/hooks/fire-carriage.js.map +1 -0
- package/dist/agent/hooks/fire-toolset.d.ts +48 -0
- package/dist/agent/hooks/fire-toolset.d.ts.map +1 -0
- package/dist/agent/hooks/fire-toolset.js +275 -0
- package/dist/agent/hooks/fire-toolset.js.map +1 -0
- package/dist/agent/hooks/job-posture.d.ts +3 -0
- package/dist/agent/hooks/job-posture.d.ts.map +1 -0
- package/dist/agent/hooks/job-posture.js +82 -0
- package/dist/agent/hooks/job-posture.js.map +1 -0
- package/dist/agent/hooks/lean-seat.d.ts +3 -0
- package/dist/agent/hooks/lean-seat.d.ts.map +1 -0
- package/dist/agent/hooks/lean-seat.js +229 -0
- package/dist/agent/hooks/lean-seat.js.map +1 -0
- package/dist/agent/hooks/learn.d.ts +3 -0
- package/dist/agent/hooks/learn.d.ts.map +1 -0
- package/dist/agent/hooks/learn.js +193 -0
- package/dist/agent/hooks/learn.js.map +1 -0
- package/dist/agent/hooks/link-claim.d.ts +63 -0
- package/dist/agent/hooks/link-claim.d.ts.map +1 -0
- package/dist/agent/hooks/link-claim.js +215 -0
- package/dist/agent/hooks/link-claim.js.map +1 -0
- package/dist/agent/hooks/log-flush.d.ts +3 -0
- package/dist/agent/hooks/log-flush.d.ts.map +1 -0
- package/dist/agent/hooks/log-flush.js +28 -0
- package/dist/agent/hooks/log-flush.js.map +1 -0
- package/dist/agent/hooks/loop-breaker.d.ts +3 -0
- package/dist/agent/hooks/loop-breaker.d.ts.map +1 -0
- package/dist/agent/hooks/loop-breaker.js +16 -0
- package/dist/agent/hooks/loop-breaker.js.map +1 -0
- package/dist/agent/hooks/memory.d.ts +112 -0
- package/dist/agent/hooks/memory.d.ts.map +1 -0
- package/dist/agent/hooks/memory.js +1191 -0
- package/dist/agent/hooks/memory.js.map +1 -0
- package/dist/agent/hooks/native-input-audit.d.ts +7 -0
- package/dist/agent/hooks/native-input-audit.d.ts.map +1 -0
- package/dist/agent/hooks/native-input-audit.js +44 -0
- package/dist/agent/hooks/native-input-audit.js.map +1 -0
- package/dist/agent/hooks/own-account-ask.d.ts +52 -0
- package/dist/agent/hooks/own-account-ask.d.ts.map +1 -0
- package/dist/agent/hooks/own-account-ask.js +162 -0
- package/dist/agent/hooks/own-account-ask.js.map +1 -0
- package/dist/agent/hooks/requester-identity.d.ts +3 -0
- package/dist/agent/hooks/requester-identity.d.ts.map +1 -0
- package/dist/agent/hooks/requester-identity.js +24 -0
- package/dist/agent/hooks/requester-identity.js.map +1 -0
- package/dist/agent/hooks/requester-messages.d.ts +9 -0
- package/dist/agent/hooks/requester-messages.d.ts.map +1 -0
- package/dist/agent/hooks/requester-messages.js +57 -0
- package/dist/agent/hooks/requester-messages.js.map +1 -0
- package/dist/agent/hooks/routine-outcome.d.ts +29 -0
- package/dist/agent/hooks/routine-outcome.d.ts.map +1 -0
- package/dist/agent/hooks/routine-outcome.js +211 -0
- package/dist/agent/hooks/routine-outcome.js.map +1 -0
- package/dist/agent/hooks/routine-silence.d.ts +3 -0
- package/dist/agent/hooks/routine-silence.d.ts.map +1 -0
- package/dist/agent/hooks/routine-silence.js +30 -0
- package/dist/agent/hooks/routine-silence.js.map +1 -0
- package/dist/agent/hooks/session-park.d.ts +3 -0
- package/dist/agent/hooks/session-park.d.ts.map +1 -0
- package/dist/agent/hooks/session-park.js +43 -0
- package/dist/agent/hooks/session-park.js.map +1 -0
- package/dist/agent/hooks/settlement-flush.d.ts +45 -0
- package/dist/agent/hooks/settlement-flush.d.ts.map +1 -0
- package/dist/agent/hooks/settlement-flush.js +146 -0
- package/dist/agent/hooks/settlement-flush.js.map +1 -0
- package/dist/agent/hooks/spawn-taint.d.ts +154 -0
- package/dist/agent/hooks/spawn-taint.d.ts.map +1 -0
- package/dist/agent/hooks/spawn-taint.js +1200 -0
- package/dist/agent/hooks/spawn-taint.js.map +1 -0
- package/dist/agent/hooks/spend.d.ts +92 -0
- package/dist/agent/hooks/spend.d.ts.map +1 -0
- package/dist/agent/hooks/spend.js +343 -0
- package/dist/agent/hooks/spend.js.map +1 -0
- package/dist/agent/hooks/stall-guard.d.ts +3 -0
- package/dist/agent/hooks/stall-guard.d.ts.map +1 -0
- package/dist/agent/hooks/stall-guard.js +22 -0
- package/dist/agent/hooks/stall-guard.js.map +1 -0
- package/dist/agent/hooks/telemetry.d.ts +3 -0
- package/dist/agent/hooks/telemetry.d.ts.map +1 -0
- package/dist/agent/hooks/telemetry.js +93 -0
- package/dist/agent/hooks/telemetry.js.map +1 -0
- package/dist/agent/hooks/turn-anchor.d.ts +35 -0
- package/dist/agent/hooks/turn-anchor.d.ts.map +1 -0
- package/dist/agent/hooks/turn-anchor.js +647 -0
- package/dist/agent/hooks/turn-anchor.js.map +1 -0
- package/dist/agent/hooks/turn-tally.d.ts +32 -0
- package/dist/agent/hooks/turn-tally.d.ts.map +1 -0
- package/dist/agent/hooks/turn-tally.js +69 -0
- package/dist/agent/hooks/turn-tally.js.map +1 -0
- package/dist/agent/hooks/wake-accounting-turn.d.ts +8 -0
- package/dist/agent/hooks/wake-accounting-turn.d.ts.map +1 -0
- package/dist/agent/hooks/wake-accounting-turn.js +88 -0
- package/dist/agent/hooks/wake-accounting-turn.js.map +1 -0
- package/dist/agent/hooks/wake-turn-start.d.ts +3 -0
- package/dist/agent/hooks/wake-turn-start.d.ts.map +1 -0
- package/dist/agent/hooks/wake-turn-start.js +44 -0
- package/dist/agent/hooks/wake-turn-start.js.map +1 -0
- package/dist/agent/hooks/window-routing.d.ts +3 -0
- package/dist/agent/hooks/window-routing.d.ts.map +1 -0
- package/dist/agent/hooks/window-routing.js +52 -0
- package/dist/agent/hooks/window-routing.js.map +1 -0
- package/dist/agent/identity/account-directory.d.ts +52 -0
- package/dist/agent/identity/account-directory.d.ts.map +1 -0
- package/dist/agent/identity/account-directory.js +110 -0
- package/dist/agent/identity/account-directory.js.map +1 -0
- package/dist/agent/identity/account-display-name.d.ts +65 -0
- package/dist/agent/identity/account-display-name.d.ts.map +1 -0
- package/dist/agent/identity/account-display-name.js +156 -0
- package/dist/agent/identity/account-display-name.js.map +1 -0
- package/dist/agent/identity/author-trust.d.ts +106 -0
- package/dist/agent/identity/author-trust.d.ts.map +1 -0
- package/dist/agent/identity/author-trust.js +209 -0
- package/dist/agent/identity/author-trust.js.map +1 -0
- package/dist/agent/identity/binding-bridge.d.ts +26 -0
- package/dist/agent/identity/binding-bridge.d.ts.map +1 -0
- package/dist/agent/identity/binding-bridge.js +75 -0
- package/dist/agent/identity/binding-bridge.js.map +1 -0
- package/dist/agent/identity/binding.d.ts +567 -0
- package/dist/agent/identity/binding.d.ts.map +1 -0
- package/dist/agent/identity/binding.js +1050 -0
- package/dist/agent/identity/binding.js.map +1 -0
- package/dist/agent/identity/bot-display-name.d.ts +19 -0
- package/dist/agent/identity/bot-display-name.d.ts.map +1 -0
- package/dist/agent/identity/bot-display-name.js +47 -0
- package/dist/agent/identity/bot-display-name.js.map +1 -0
- package/dist/agent/identity/bot-name.d.ts +39 -0
- package/dist/agent/identity/bot-name.d.ts.map +1 -0
- package/dist/agent/identity/bot-name.js +77 -0
- package/dist/agent/identity/bot-name.js.map +1 -0
- package/dist/agent/identity/capabilities.d.ts +52 -0
- package/dist/agent/identity/capabilities.d.ts.map +1 -0
- package/dist/agent/identity/capabilities.js +39 -0
- package/dist/agent/identity/capabilities.js.map +1 -0
- package/dist/agent/identity/delegated-binding.d.ts +59 -0
- package/dist/agent/identity/delegated-binding.d.ts.map +1 -0
- package/dist/agent/identity/delegated-binding.js +116 -0
- package/dist/agent/identity/delegated-binding.js.map +1 -0
- package/dist/agent/identity/deployment-identity.d.ts +61 -0
- package/dist/agent/identity/deployment-identity.d.ts.map +1 -0
- package/dist/agent/identity/deployment-identity.js +75 -0
- package/dist/agent/identity/deployment-identity.js.map +1 -0
- package/dist/agent/identity/directory-sync.d.ts +195 -0
- package/dist/agent/identity/directory-sync.d.ts.map +1 -0
- package/dist/agent/identity/directory-sync.js +623 -0
- package/dist/agent/identity/directory-sync.js.map +1 -0
- package/dist/agent/identity/directory.d.ts +73 -0
- package/dist/agent/identity/directory.d.ts.map +1 -0
- package/dist/agent/identity/directory.js +19 -0
- package/dist/agent/identity/directory.js.map +1 -0
- package/dist/agent/identity/display-title.d.ts +12 -0
- package/dist/agent/identity/display-title.d.ts.map +1 -0
- package/dist/agent/identity/display-title.js +14 -0
- package/dist/agent/identity/display-title.js.map +1 -0
- package/dist/agent/identity/frozen-surface-binding.internal.d.ts +8 -0
- package/dist/agent/identity/frozen-surface-binding.internal.d.ts.map +1 -0
- package/dist/agent/identity/frozen-surface-binding.internal.js +90 -0
- package/dist/agent/identity/frozen-surface-binding.internal.js.map +1 -0
- package/dist/agent/identity/group-sync.d.ts +77 -0
- package/dist/agent/identity/group-sync.d.ts.map +1 -0
- package/dist/agent/identity/group-sync.js +128 -0
- package/dist/agent/identity/group-sync.js.map +1 -0
- package/dist/agent/identity/groups-codemod.d.ts +52 -0
- package/dist/agent/identity/groups-codemod.d.ts.map +1 -0
- package/dist/agent/identity/groups-codemod.js +129 -0
- package/dist/agent/identity/groups-codemod.js.map +1 -0
- package/dist/agent/identity/groups-delivery.d.ts +56 -0
- package/dist/agent/identity/groups-delivery.d.ts.map +1 -0
- package/dist/agent/identity/groups-delivery.js +116 -0
- package/dist/agent/identity/groups-delivery.js.map +1 -0
- package/dist/agent/identity/groups.d.ts +74 -0
- package/dist/agent/identity/groups.d.ts.map +1 -0
- package/dist/agent/identity/groups.js +124 -0
- package/dist/agent/identity/groups.js.map +1 -0
- package/dist/agent/identity/link-challenge.d.ts +58 -0
- package/dist/agent/identity/link-challenge.d.ts.map +1 -0
- package/dist/agent/identity/link-challenge.js +136 -0
- package/dist/agent/identity/link-challenge.js.map +1 -0
- package/dist/agent/identity/link-consent.d.ts +79 -0
- package/dist/agent/identity/link-consent.d.ts.map +1 -0
- package/dist/agent/identity/link-consent.js +179 -0
- package/dist/agent/identity/link-consent.js.map +1 -0
- package/dist/agent/identity/link-flow.d.ts +260 -0
- package/dist/agent/identity/link-flow.d.ts.map +1 -0
- package/dist/agent/identity/link-flow.js +327 -0
- package/dist/agent/identity/link-flow.js.map +1 -0
- package/dist/agent/identity/link-initiator.d.ts +16 -0
- package/dist/agent/identity/link-initiator.d.ts.map +1 -0
- package/dist/agent/identity/link-initiator.js +25 -0
- package/dist/agent/identity/link-initiator.js.map +1 -0
- package/dist/agent/identity/link-resolve.d.ts +40 -0
- package/dist/agent/identity/link-resolve.d.ts.map +1 -0
- package/dist/agent/identity/link-resolve.js +195 -0
- package/dist/agent/identity/link-resolve.js.map +1 -0
- package/dist/agent/identity/link-set-ref.d.ts +16 -0
- package/dist/agent/identity/link-set-ref.d.ts.map +1 -0
- package/dist/agent/identity/link-set-ref.js +32 -0
- package/dist/agent/identity/link-set-ref.js.map +1 -0
- package/dist/agent/identity/link-store.d.ts +400 -0
- package/dist/agent/identity/link-store.d.ts.map +1 -0
- package/dist/agent/identity/link-store.js +725 -0
- package/dist/agent/identity/link-store.js.map +1 -0
- package/dist/agent/identity/link-tenant-backfill.d.ts +39 -0
- package/dist/agent/identity/link-tenant-backfill.d.ts.map +1 -0
- package/dist/agent/identity/link-tenant-backfill.js +67 -0
- package/dist/agent/identity/link-tenant-backfill.js.map +1 -0
- package/dist/agent/identity/link-tenant.d.ts +28 -0
- package/dist/agent/identity/link-tenant.d.ts.map +1 -0
- package/dist/agent/identity/link-tenant.js +51 -0
- package/dist/agent/identity/link-tenant.js.map +1 -0
- package/dist/agent/identity/oauth-vault-share.d.ts +29 -0
- package/dist/agent/identity/oauth-vault-share.d.ts.map +1 -0
- package/dist/agent/identity/oauth-vault-share.js +36 -0
- package/dist/agent/identity/oauth-vault-share.js.map +1 -0
- package/dist/agent/identity/platform.d.ts +9 -0
- package/dist/agent/identity/platform.d.ts.map +1 -0
- package/dist/agent/identity/platform.js +48 -0
- package/dist/agent/identity/platform.js.map +1 -0
- package/dist/agent/identity/principal-key-rules.d.ts +23 -0
- package/dist/agent/identity/principal-key-rules.d.ts.map +1 -0
- package/dist/agent/identity/principal-key-rules.js +91 -0
- package/dist/agent/identity/principal-key-rules.js.map +1 -0
- package/dist/agent/identity/principal-key.d.ts +92 -0
- package/dist/agent/identity/principal-key.d.ts.map +1 -0
- package/dist/agent/identity/principal-key.js +197 -0
- package/dist/agent/identity/principal-key.js.map +1 -0
- package/dist/agent/identity/principals.d.ts +145 -0
- package/dist/agent/identity/principals.d.ts.map +1 -0
- package/dist/agent/identity/principals.js +303 -0
- package/dist/agent/identity/principals.js.map +1 -0
- package/dist/agent/identity/surface-key-grammar.d.ts +83 -0
- package/dist/agent/identity/surface-key-grammar.d.ts.map +1 -0
- package/dist/agent/identity/surface-key-grammar.js +138 -0
- package/dist/agent/identity/surface-key-grammar.js.map +1 -0
- package/dist/agent/identity/surface-parity.d.ts +274 -0
- package/dist/agent/identity/surface-parity.d.ts.map +1 -0
- package/dist/agent/identity/surface-parity.js +357 -0
- package/dist/agent/identity/surface-parity.js.map +1 -0
- package/dist/agent/identity/trust-preflight.d.ts +83 -0
- package/dist/agent/identity/trust-preflight.d.ts.map +1 -0
- package/dist/agent/identity/trust-preflight.js +196 -0
- package/dist/agent/identity/trust-preflight.js.map +1 -0
- package/dist/agent/identity/trust.d.ts +217 -0
- package/dist/agent/identity/trust.d.ts.map +1 -0
- package/dist/agent/identity/trust.js +300 -0
- package/dist/agent/identity/trust.js.map +1 -0
- package/dist/agent/identity/wake-trust.d.ts +129 -0
- package/dist/agent/identity/wake-trust.d.ts.map +1 -0
- package/dist/agent/identity/wake-trust.js +159 -0
- package/dist/agent/identity/wake-trust.js.map +1 -0
- package/dist/agent/instructions/access.d.ts +252 -0
- package/dist/agent/instructions/access.d.ts.map +1 -0
- package/dist/agent/instructions/access.js +1200 -0
- package/dist/agent/instructions/access.js.map +1 -0
- package/dist/agent/instructions/seat-prompt.d.ts +354 -0
- package/dist/agent/instructions/seat-prompt.d.ts.map +1 -0
- package/dist/agent/instructions/seat-prompt.js +1143 -0
- package/dist/agent/instructions/seat-prompt.js.map +1 -0
- package/dist/agent/lib/process-registry.d.ts +8 -0
- package/dist/agent/lib/process-registry.d.ts.map +1 -0
- package/dist/agent/lib/process-registry.js +53 -0
- package/dist/agent/lib/process-registry.js.map +1 -0
- package/dist/agent/memory/agents-codemod.d.ts +92 -0
- package/dist/agent/memory/agents-codemod.d.ts.map +1 -0
- package/dist/agent/memory/agents-codemod.js +366 -0
- package/dist/agent/memory/agents-codemod.js.map +1 -0
- package/dist/agent/memory/connector-memory.d.ts +54 -0
- package/dist/agent/memory/connector-memory.d.ts.map +1 -0
- package/dist/agent/memory/connector-memory.js +80 -0
- package/dist/agent/memory/connector-memory.js.map +1 -0
- package/dist/agent/memory/domain.d.ts +384 -0
- package/dist/agent/memory/domain.d.ts.map +1 -0
- package/dist/agent/memory/domain.js +911 -0
- package/dist/agent/memory/domain.js.map +1 -0
- package/dist/agent/memory/dream/candidates.d.ts +35 -0
- package/dist/agent/memory/dream/candidates.d.ts.map +1 -0
- package/dist/agent/memory/dream/candidates.js +149 -0
- package/dist/agent/memory/dream/candidates.js.map +1 -0
- package/dist/agent/memory/dream/correction.d.ts +56 -0
- package/dist/agent/memory/dream/correction.d.ts.map +1 -0
- package/dist/agent/memory/dream/correction.js +109 -0
- package/dist/agent/memory/dream/correction.js.map +1 -0
- package/dist/agent/memory/dream/judge.d.ts +47 -0
- package/dist/agent/memory/dream/judge.d.ts.map +1 -0
- package/dist/agent/memory/dream/judge.js +135 -0
- package/dist/agent/memory/dream/judge.js.map +1 -0
- package/dist/agent/memory/dream/learn.d.ts +79 -0
- package/dist/agent/memory/dream/learn.d.ts.map +1 -0
- package/dist/agent/memory/dream/learn.js +243 -0
- package/dist/agent/memory/dream/learn.js.map +1 -0
- package/dist/agent/memory/dream/mode3-cluster.d.ts +37 -0
- package/dist/agent/memory/dream/mode3-cluster.d.ts.map +1 -0
- package/dist/agent/memory/dream/mode3-cluster.js +123 -0
- package/dist/agent/memory/dream/mode3-cluster.js.map +1 -0
- package/dist/agent/memory/dream/mode3-last-mile.d.ts +134 -0
- package/dist/agent/memory/dream/mode3-last-mile.d.ts.map +1 -0
- package/dist/agent/memory/dream/mode3-last-mile.js +262 -0
- package/dist/agent/memory/dream/mode3-last-mile.js.map +1 -0
- package/dist/agent/memory/dream/mode3.d.ts +82 -0
- package/dist/agent/memory/dream/mode3.d.ts.map +1 -0
- package/dist/agent/memory/dream/mode3.js +236 -0
- package/dist/agent/memory/dream/mode3.js.map +1 -0
- package/dist/agent/memory/dream/ops.d.ts +75 -0
- package/dist/agent/memory/dream/ops.d.ts.map +1 -0
- package/dist/agent/memory/dream/ops.js +302 -0
- package/dist/agent/memory/dream/ops.js.map +1 -0
- package/dist/agent/memory/dream/proposal.d.ts +22 -0
- package/dist/agent/memory/dream/proposal.d.ts.map +1 -0
- package/dist/agent/memory/dream/proposal.js +66 -0
- package/dist/agent/memory/dream/proposal.js.map +1 -0
- package/dist/agent/memory/dream/recurrence.d.ts +38 -0
- package/dist/agent/memory/dream/recurrence.d.ts.map +1 -0
- package/dist/agent/memory/dream/recurrence.js +106 -0
- package/dist/agent/memory/dream/recurrence.js.map +1 -0
- package/dist/agent/memory/dream/salience.d.ts +10 -0
- package/dist/agent/memory/dream/salience.d.ts.map +1 -0
- package/dist/agent/memory/dream/salience.js +16 -0
- package/dist/agent/memory/dream/salience.js.map +1 -0
- package/dist/agent/memory/dream/skill-proposal-pr.d.ts +63 -0
- package/dist/agent/memory/dream/skill-proposal-pr.d.ts.map +1 -0
- package/dist/agent/memory/dream/skill-proposal-pr.js +245 -0
- package/dist/agent/memory/dream/skill-proposal-pr.js.map +1 -0
- package/dist/agent/memory/dream/supersede-apply.d.ts +40 -0
- package/dist/agent/memory/dream/supersede-apply.d.ts.map +1 -0
- package/dist/agent/memory/dream/supersede-apply.js +78 -0
- package/dist/agent/memory/dream/supersede-apply.js.map +1 -0
- package/dist/agent/memory/dream/tidy.d.ts +60 -0
- package/dist/agent/memory/dream/tidy.d.ts.map +1 -0
- package/dist/agent/memory/dream/tidy.js +96 -0
- package/dist/agent/memory/dream/tidy.js.map +1 -0
- package/dist/agent/memory/graph.d.ts +46 -0
- package/dist/agent/memory/graph.d.ts.map +1 -0
- package/dist/agent/memory/graph.js +130 -0
- package/dist/agent/memory/graph.js.map +1 -0
- package/dist/agent/memory/host-owned-files.d.ts +2 -0
- package/dist/agent/memory/host-owned-files.d.ts.map +1 -0
- package/dist/agent/memory/host-owned-files.js +4 -0
- package/dist/agent/memory/host-owned-files.js.map +1 -0
- package/dist/agent/memory/layout.d.ts +8 -0
- package/dist/agent/memory/layout.d.ts.map +1 -0
- package/dist/agent/memory/layout.js +77 -0
- package/dist/agent/memory/layout.js.map +1 -0
- package/dist/agent/memory/listing.d.ts +11 -0
- package/dist/agent/memory/listing.d.ts.map +1 -0
- package/dist/agent/memory/listing.js +169 -0
- package/dist/agent/memory/listing.js.map +1 -0
- package/dist/agent/memory/markdown.d.ts +73 -0
- package/dist/agent/memory/markdown.d.ts.map +1 -0
- package/dist/agent/memory/markdown.js +190 -0
- package/dist/agent/memory/markdown.js.map +1 -0
- package/dist/agent/memory/partition.d.ts +34 -0
- package/dist/agent/memory/partition.d.ts.map +1 -0
- package/dist/agent/memory/partition.js +41 -0
- package/dist/agent/memory/partition.js.map +1 -0
- package/dist/agent/memory/postgres.d.ts +73 -0
- package/dist/agent/memory/postgres.d.ts.map +1 -0
- package/dist/agent/memory/postgres.js +411 -0
- package/dist/agent/memory/postgres.js.map +1 -0
- package/dist/agent/memory/provenance-mark.d.ts +77 -0
- package/dist/agent/memory/provenance-mark.d.ts.map +1 -0
- package/dist/agent/memory/provenance-mark.js +276 -0
- package/dist/agent/memory/provenance-mark.js.map +1 -0
- package/dist/agent/memory/provenance.d.ts +8 -0
- package/dist/agent/memory/provenance.d.ts.map +1 -0
- package/dist/agent/memory/provenance.js +25 -0
- package/dist/agent/memory/provenance.js.map +1 -0
- package/dist/agent/memory/provider.d.ts +76 -0
- package/dist/agent/memory/provider.d.ts.map +1 -0
- package/dist/agent/memory/provider.js +96 -0
- package/dist/agent/memory/provider.js.map +1 -0
- package/dist/agent/memory/purge-redaction.d.ts +29 -0
- package/dist/agent/memory/purge-redaction.d.ts.map +1 -0
- package/dist/agent/memory/purge-redaction.js +65 -0
- package/dist/agent/memory/purge-redaction.js.map +1 -0
- package/dist/agent/memory/readonly.d.ts +25 -0
- package/dist/agent/memory/readonly.d.ts.map +1 -0
- package/dist/agent/memory/readonly.js +46 -0
- package/dist/agent/memory/readonly.js.map +1 -0
- package/dist/agent/memory/resolve.d.ts +49 -0
- package/dist/agent/memory/resolve.d.ts.map +1 -0
- package/dist/agent/memory/resolve.js +136 -0
- package/dist/agent/memory/resolve.js.map +1 -0
- package/dist/agent/memory/root-fence.d.ts +24 -0
- package/dist/agent/memory/root-fence.d.ts.map +1 -0
- package/dist/agent/memory/root-fence.js +46 -0
- package/dist/agent/memory/root-fence.js.map +1 -0
- package/dist/agent/memory/sandbox-sync.d.ts +17 -0
- package/dist/agent/memory/sandbox-sync.d.ts.map +1 -0
- package/dist/agent/memory/sandbox-sync.js +61 -0
- package/dist/agent/memory/sandbox-sync.js.map +1 -0
- package/dist/agent/memory/selection.d.ts +29 -0
- package/dist/agent/memory/selection.d.ts.map +1 -0
- package/dist/agent/memory/selection.js +82 -0
- package/dist/agent/memory/selection.js.map +1 -0
- package/dist/agent/memory/silo.d.ts +39 -0
- package/dist/agent/memory/silo.d.ts.map +1 -0
- package/dist/agent/memory/silo.js +36 -0
- package/dist/agent/memory/silo.js.map +1 -0
- package/dist/agent/memory/sqlite.d.ts +4 -0
- package/dist/agent/memory/sqlite.d.ts.map +1 -0
- package/dist/agent/memory/sqlite.js +196 -0
- package/dist/agent/memory/sqlite.js.map +1 -0
- package/dist/agent/memory/store.d.ts +36 -0
- package/dist/agent/memory/store.d.ts.map +1 -0
- package/dist/agent/memory/store.js +144 -0
- package/dist/agent/memory/store.js.map +1 -0
- package/dist/agent/memory/sync-timing.d.ts +83 -0
- package/dist/agent/memory/sync-timing.d.ts.map +1 -0
- package/dist/agent/memory/sync-timing.js +166 -0
- package/dist/agent/memory/sync-timing.js.map +1 -0
- package/dist/agent/memory/wake-delta.d.ts +96 -0
- package/dist/agent/memory/wake-delta.d.ts.map +1 -0
- package/dist/agent/memory/wake-delta.js +176 -0
- package/dist/agent/memory/wake-delta.js.map +1 -0
- package/dist/agent/memory/write-evidence.d.ts +30 -0
- package/dist/agent/memory/write-evidence.d.ts.map +1 -0
- package/dist/agent/memory/write-evidence.js +137 -0
- package/dist/agent/memory/write-evidence.js.map +1 -0
- package/dist/agent/memory/write-fence.d.ts +30 -0
- package/dist/agent/memory/write-fence.d.ts.map +1 -0
- package/dist/agent/memory/write-fence.js +123 -0
- package/dist/agent/memory/write-fence.js.map +1 -0
- package/dist/agent/memory/write-intent.d.ts +72 -0
- package/dist/agent/memory/write-intent.d.ts.map +1 -0
- package/dist/agent/memory/write-intent.js +197 -0
- package/dist/agent/memory/write-intent.js.map +1 -0
- package/dist/agent/memory/write-road.d.ts +60 -0
- package/dist/agent/memory/write-road.d.ts.map +1 -0
- package/dist/agent/memory/write-road.js +96 -0
- package/dist/agent/memory/write-road.js.map +1 -0
- package/dist/agent/model/ab-test.d.ts +132 -0
- package/dist/agent/model/ab-test.d.ts.map +1 -0
- package/dist/agent/model/ab-test.js +321 -0
- package/dist/agent/model/ab-test.js.map +1 -0
- package/dist/agent/model/call-capture.d.ts +140 -0
- package/dist/agent/model/call-capture.d.ts.map +1 -0
- package/dist/agent/model/call-capture.js +374 -0
- package/dist/agent/model/call-capture.js.map +1 -0
- package/dist/agent/model/default-model.d.ts +13 -0
- package/dist/agent/model/default-model.d.ts.map +1 -0
- package/dist/agent/model/default-model.js +58 -0
- package/dist/agent/model/default-model.js.map +1 -0
- package/dist/agent/model/model-stamp.d.ts +41 -0
- package/dist/agent/model/model-stamp.d.ts.map +1 -0
- package/dist/agent/model/model-stamp.js +160 -0
- package/dist/agent/model/model-stamp.js.map +1 -0
- package/dist/agent/model/policy.d.ts +150 -0
- package/dist/agent/model/policy.d.ts.map +1 -0
- package/dist/agent/model/policy.js +309 -0
- package/dist/agent/model/policy.js.map +1 -0
- package/dist/agent/model/routing.d.ts +210 -0
- package/dist/agent/model/routing.d.ts.map +1 -0
- package/dist/agent/model/routing.js +694 -0
- package/dist/agent/model/routing.js.map +1 -0
- package/dist/agent/model/step-boundary.d.ts +163 -0
- package/dist/agent/model/step-boundary.d.ts.map +1 -0
- package/dist/agent/model/step-boundary.js +491 -0
- package/dist/agent/model/step-boundary.js.map +1 -0
- package/dist/agent/model/stream-drop-retry.d.ts +24 -0
- package/dist/agent/model/stream-drop-retry.d.ts.map +1 -0
- package/dist/agent/model/stream-drop-retry.js +316 -0
- package/dist/agent/model/stream-drop-retry.js.map +1 -0
- package/dist/agent/model/turn-closeout.d.ts +61 -0
- package/dist/agent/model/turn-closeout.d.ts.map +1 -0
- package/dist/agent/model/turn-closeout.js +289 -0
- package/dist/agent/model/turn-closeout.js.map +1 -0
- package/dist/agent/model/turn-state.d.ts +119 -0
- package/dist/agent/model/turn-state.d.ts.map +1 -0
- package/dist/agent/model/turn-state.js +423 -0
- package/dist/agent/model/turn-state.js.map +1 -0
- package/dist/agent/model/vision.d.ts +75 -0
- package/dist/agent/model/vision.d.ts.map +1 -0
- package/dist/agent/model/vision.js +39 -0
- package/dist/agent/model/vision.js.map +1 -0
- package/dist/agent/observability/ship.d.ts +87 -0
- package/dist/agent/observability/ship.d.ts.map +1 -0
- package/dist/agent/observability/ship.js +354 -0
- package/dist/agent/observability/ship.js.map +1 -0
- package/dist/agent/observability/telemetry.d.ts +154 -0
- package/dist/agent/observability/telemetry.d.ts.map +1 -0
- package/dist/agent/observability/telemetry.js +764 -0
- package/dist/agent/observability/telemetry.js.map +1 -0
- package/dist/agent/observability/turn-clock.d.ts +41 -0
- package/dist/agent/observability/turn-clock.d.ts.map +1 -0
- package/dist/agent/observability/turn-clock.js +75 -0
- package/dist/agent/observability/turn-clock.js.map +1 -0
- package/dist/agent/onboarding/onboarding.d.ts +30 -0
- package/dist/agent/onboarding/onboarding.d.ts.map +1 -0
- package/dist/agent/onboarding/onboarding.js +94 -0
- package/dist/agent/onboarding/onboarding.js.map +1 -0
- package/dist/agent/operational/credential-grant-rows.d.ts +626 -0
- package/dist/agent/operational/credential-grant-rows.d.ts.map +1 -0
- package/dist/agent/operational/credential-grant-rows.js +634 -0
- package/dist/agent/operational/credential-grant-rows.js.map +1 -0
- package/dist/agent/operational/pglite-client.d.ts +81 -0
- package/dist/agent/operational/pglite-client.d.ts.map +1 -0
- package/dist/agent/operational/pglite-client.js +255 -0
- package/dist/agent/operational/pglite-client.js.map +1 -0
- package/dist/agent/operational/post-once.d.ts +74 -0
- package/dist/agent/operational/post-once.d.ts.map +1 -0
- package/dist/agent/operational/post-once.js +92 -0
- package/dist/agent/operational/post-once.js.map +1 -0
- package/dist/agent/operational/postgres.d.ts +55 -0
- package/dist/agent/operational/postgres.d.ts.map +1 -0
- package/dist/agent/operational/postgres.js +4052 -0
- package/dist/agent/operational/postgres.js.map +1 -0
- package/dist/agent/operational/provider.d.ts +52 -0
- package/dist/agent/operational/provider.d.ts.map +1 -0
- package/dist/agent/operational/provider.js +166 -0
- package/dist/agent/operational/provider.js.map +1 -0
- package/dist/agent/operational/sqlite.d.ts +21 -0
- package/dist/agent/operational/sqlite.d.ts.map +1 -0
- package/dist/agent/operational/sqlite.js +3170 -0
- package/dist/agent/operational/sqlite.js.map +1 -0
- package/dist/agent/operational/store.d.ts +1953 -0
- package/dist/agent/operational/store.d.ts.map +1 -0
- package/dist/agent/operational/store.js +302 -0
- package/dist/agent/operational/store.js.map +1 -0
- package/dist/agent/ops/census.d.ts +411 -0
- package/dist/agent/ops/census.d.ts.map +1 -0
- package/dist/agent/ops/census.js +701 -0
- package/dist/agent/ops/census.js.map +1 -0
- package/dist/agent/ops/probes.d.ts +20 -0
- package/dist/agent/ops/probes.d.ts.map +1 -0
- package/dist/agent/ops/probes.js +59 -0
- package/dist/agent/ops/probes.js.map +1 -0
- package/dist/agent/ops/quickstart.d.ts +53 -0
- package/dist/agent/ops/quickstart.d.ts.map +1 -0
- package/dist/agent/ops/quickstart.js +247 -0
- package/dist/agent/ops/quickstart.js.map +1 -0
- package/dist/agent/ops/server.d.ts +16 -0
- package/dist/agent/ops/server.d.ts.map +1 -0
- package/dist/agent/ops/server.js +414 -0
- package/dist/agent/ops/server.js.map +1 -0
- package/dist/agent/ops/surface-manifest.d.ts +60 -0
- package/dist/agent/ops/surface-manifest.d.ts.map +1 -0
- package/dist/agent/ops/surface-manifest.js +79 -0
- package/dist/agent/ops/surface-manifest.js.map +1 -0
- package/dist/agent/ops/two-role.d.ts +26 -0
- package/dist/agent/ops/two-role.d.ts.map +1 -0
- package/dist/agent/ops/two-role.js +71 -0
- package/dist/agent/ops/two-role.js.map +1 -0
- package/dist/agent/pages/policy-pages.d.ts +14 -0
- package/dist/agent/pages/policy-pages.d.ts.map +1 -0
- package/dist/agent/pages/policy-pages.js +69 -0
- package/dist/agent/pages/policy-pages.js.map +1 -0
- package/dist/agent/plugins/extract.d.ts +31 -0
- package/dist/agent/plugins/extract.d.ts.map +1 -0
- package/dist/agent/plugins/extract.js +328 -0
- package/dist/agent/plugins/extract.js.map +1 -0
- package/dist/agent/plugins/parse.d.ts +3 -0
- package/dist/agent/plugins/parse.d.ts.map +1 -0
- package/dist/agent/plugins/parse.js +112 -0
- package/dist/agent/plugins/parse.js.map +1 -0
- package/dist/agent/plugins/types.d.ts +105 -0
- package/dist/agent/plugins/types.d.ts.map +1 -0
- package/dist/agent/plugins/types.js +30 -0
- package/dist/agent/plugins/types.js.map +1 -0
- package/dist/agent/publish/eve-patch-pack.d.ts +210 -0
- package/dist/agent/publish/eve-patch-pack.d.ts.map +1 -0
- package/dist/agent/publish/eve-patch-pack.js +377 -0
- package/dist/agent/publish/eve-patch-pack.js.map +1 -0
- package/dist/agent/review/blast-radius.d.ts +83 -0
- package/dist/agent/review/blast-radius.d.ts.map +1 -0
- package/dist/agent/review/blast-radius.js +224 -0
- package/dist/agent/review/blast-radius.js.map +1 -0
- package/dist/agent/review/config-facts.d.ts +69 -0
- package/dist/agent/review/config-facts.d.ts.map +1 -0
- package/dist/agent/review/config-facts.js +155 -0
- package/dist/agent/review/config-facts.js.map +1 -0
- package/dist/agent/review/facts-artifact.d.ts +108 -0
- package/dist/agent/review/facts-artifact.d.ts.map +1 -0
- package/dist/agent/review/facts-artifact.js +288 -0
- package/dist/agent/review/facts-artifact.js.map +1 -0
- package/dist/agent/review/facts-cloud-status.d.ts +90 -0
- package/dist/agent/review/facts-cloud-status.d.ts.map +1 -0
- package/dist/agent/review/facts-cloud-status.js +226 -0
- package/dist/agent/review/facts-cloud-status.js.map +1 -0
- package/dist/agent/review/pr-walkthrough.d.ts +134 -0
- package/dist/agent/review/pr-walkthrough.d.ts.map +1 -0
- package/dist/agent/review/pr-walkthrough.js +641 -0
- package/dist/agent/review/pr-walkthrough.js.map +1 -0
- package/dist/agent/review/zip.d.ts +26 -0
- package/dist/agent/review/zip.d.ts.map +1 -0
- package/dist/agent/review/zip.js +147 -0
- package/dist/agent/review/zip.js.map +1 -0
- package/dist/agent/roles/role.d.ts +95 -0
- package/dist/agent/roles/role.d.ts.map +1 -0
- package/dist/agent/roles/role.js +188 -0
- package/dist/agent/roles/role.js.map +1 -0
- package/dist/agent/routines/bound.d.ts +90 -0
- package/dist/agent/routines/bound.d.ts.map +1 -0
- package/dist/agent/routines/bound.js +233 -0
- package/dist/agent/routines/bound.js.map +1 -0
- package/dist/agent/routines/check-in.d.ts +10 -0
- package/dist/agent/routines/check-in.d.ts.map +1 -0
- package/dist/agent/routines/check-in.js +50 -0
- package/dist/agent/routines/check-in.js.map +1 -0
- package/dist/agent/routines/collector.d.ts +214 -0
- package/dist/agent/routines/collector.d.ts.map +1 -0
- package/dist/agent/routines/collector.js +389 -0
- package/dist/agent/routines/collector.js.map +1 -0
- package/dist/agent/routines/declared-permissions.d.ts +302 -0
- package/dist/agent/routines/declared-permissions.d.ts.map +1 -0
- package/dist/agent/routines/declared-permissions.js +548 -0
- package/dist/agent/routines/declared-permissions.js.map +1 -0
- package/dist/agent/routines/disable-notice.d.ts +75 -0
- package/dist/agent/routines/disable-notice.d.ts.map +1 -0
- package/dist/agent/routines/disable-notice.js +152 -0
- package/dist/agent/routines/disable-notice.js.map +1 -0
- package/dist/agent/routines/entity-read.d.ts +177 -0
- package/dist/agent/routines/entity-read.d.ts.map +1 -0
- package/dist/agent/routines/entity-read.js +178 -0
- package/dist/agent/routines/entity-read.js.map +1 -0
- package/dist/agent/routines/event-authz.d.ts +76 -0
- package/dist/agent/routines/event-authz.d.ts.map +1 -0
- package/dist/agent/routines/event-authz.js +229 -0
- package/dist/agent/routines/event-authz.js.map +1 -0
- package/dist/agent/routines/event-match.d.ts +50 -0
- package/dist/agent/routines/event-match.d.ts.map +1 -0
- package/dist/agent/routines/event-match.js +190 -0
- package/dist/agent/routines/event-match.js.map +1 -0
- package/dist/agent/routines/event-model.d.ts +463 -0
- package/dist/agent/routines/event-model.d.ts.map +1 -0
- package/dist/agent/routines/event-model.js +367 -0
- package/dist/agent/routines/event-model.js.map +1 -0
- package/dist/agent/routines/events.d.ts +85 -0
- package/dist/agent/routines/events.d.ts.map +1 -0
- package/dist/agent/routines/events.js +167 -0
- package/dist/agent/routines/events.js.map +1 -0
- package/dist/agent/routines/fire-audit.d.ts +409 -0
- package/dist/agent/routines/fire-audit.d.ts.map +1 -0
- package/dist/agent/routines/fire-audit.js +571 -0
- package/dist/agent/routines/fire-audit.js.map +1 -0
- package/dist/agent/routines/fire-auth.d.ts +114 -0
- package/dist/agent/routines/fire-auth.d.ts.map +1 -0
- package/dist/agent/routines/fire-auth.js +254 -0
- package/dist/agent/routines/fire-auth.js.map +1 -0
- package/dist/agent/routines/fire-carriage.d.ts +37 -0
- package/dist/agent/routines/fire-carriage.d.ts.map +1 -0
- package/dist/agent/routines/fire-carriage.js +115 -0
- package/dist/agent/routines/fire-carriage.js.map +1 -0
- package/dist/agent/routines/fire-creator.d.ts +26 -0
- package/dist/agent/routines/fire-creator.d.ts.map +1 -0
- package/dist/agent/routines/fire-creator.js +78 -0
- package/dist/agent/routines/fire-creator.js.map +1 -0
- package/dist/agent/routines/fire-disclosure.d.ts +70 -0
- package/dist/agent/routines/fire-disclosure.d.ts.map +1 -0
- package/dist/agent/routines/fire-disclosure.js +193 -0
- package/dist/agent/routines/fire-disclosure.js.map +1 -0
- package/dist/agent/routines/fire-eligibility.d.ts +87 -0
- package/dist/agent/routines/fire-eligibility.d.ts.map +1 -0
- package/dist/agent/routines/fire-eligibility.js +220 -0
- package/dist/agent/routines/fire-eligibility.js.map +1 -0
- package/dist/agent/routines/fire-halt.d.ts +16 -0
- package/dist/agent/routines/fire-halt.d.ts.map +1 -0
- package/dist/agent/routines/fire-halt.js +49 -0
- package/dist/agent/routines/fire-halt.js.map +1 -0
- package/dist/agent/routines/fire-message.d.ts +31 -0
- package/dist/agent/routines/fire-message.d.ts.map +1 -0
- package/dist/agent/routines/fire-message.js +51 -0
- package/dist/agent/routines/fire-message.js.map +1 -0
- package/dist/agent/routines/fire-toolset.d.ts +94 -0
- package/dist/agent/routines/fire-toolset.d.ts.map +1 -0
- package/dist/agent/routines/fire-toolset.js +128 -0
- package/dist/agent/routines/fire-toolset.js.map +1 -0
- package/dist/agent/routines/fire-window.d.ts +230 -0
- package/dist/agent/routines/fire-window.d.ts.map +1 -0
- package/dist/agent/routines/fire-window.js +517 -0
- package/dist/agent/routines/fire-window.js.map +1 -0
- package/dist/agent/routines/follow-ups.d.ts +77 -0
- package/dist/agent/routines/follow-ups.d.ts.map +1 -0
- package/dist/agent/routines/follow-ups.js +134 -0
- package/dist/agent/routines/follow-ups.js.map +1 -0
- package/dist/agent/routines/gate.d.ts +133 -0
- package/dist/agent/routines/gate.d.ts.map +1 -0
- package/dist/agent/routines/gate.js +196 -0
- package/dist/agent/routines/gate.js.map +1 -0
- package/dist/agent/routines/github-entity-read.d.ts +26 -0
- package/dist/agent/routines/github-entity-read.d.ts.map +1 -0
- package/dist/agent/routines/github-entity-read.js +107 -0
- package/dist/agent/routines/github-entity-read.js.map +1 -0
- package/dist/agent/routines/github-fanout.d.ts +23 -0
- package/dist/agent/routines/github-fanout.d.ts.map +1 -0
- package/dist/agent/routines/github-fanout.js +67 -0
- package/dist/agent/routines/github-fanout.js.map +1 -0
- package/dist/agent/routines/github-normalizer.d.ts +20 -0
- package/dist/agent/routines/github-normalizer.d.ts.map +1 -0
- package/dist/agent/routines/github-normalizer.js +253 -0
- package/dist/agent/routines/github-normalizer.js.map +1 -0
- package/dist/agent/routines/ingress.d.ts +128 -0
- package/dist/agent/routines/ingress.d.ts.map +1 -0
- package/dist/agent/routines/ingress.js +703 -0
- package/dist/agent/routines/ingress.js.map +1 -0
- package/dist/agent/routines/job.d.ts +49 -0
- package/dist/agent/routines/job.d.ts.map +1 -0
- package/dist/agent/routines/job.js +122 -0
- package/dist/agent/routines/job.js.map +1 -0
- package/dist/agent/routines/jq-filter.d.ts +94 -0
- package/dist/agent/routines/jq-filter.d.ts.map +1 -0
- package/dist/agent/routines/jq-filter.js +322 -0
- package/dist/agent/routines/jq-filter.js.map +1 -0
- package/dist/agent/routines/lifecycle.d.ts +101 -0
- package/dist/agent/routines/lifecycle.d.ts.map +1 -0
- package/dist/agent/routines/lifecycle.js +231 -0
- package/dist/agent/routines/lifecycle.js.map +1 -0
- package/dist/agent/routines/match-stamp.d.ts +26 -0
- package/dist/agent/routines/match-stamp.d.ts.map +1 -0
- package/dist/agent/routines/match-stamp.js +121 -0
- package/dist/agent/routines/match-stamp.js.map +1 -0
- package/dist/agent/routines/outcome-fold.d.ts +115 -0
- package/dist/agent/routines/outcome-fold.d.ts.map +1 -0
- package/dist/agent/routines/outcome-fold.js +244 -0
- package/dist/agent/routines/outcome-fold.js.map +1 -0
- package/dist/agent/routines/partition.d.ts +5 -0
- package/dist/agent/routines/partition.d.ts.map +1 -0
- package/dist/agent/routines/partition.js +24 -0
- package/dist/agent/routines/partition.js.map +1 -0
- package/dist/agent/routines/permission-card-wait.d.ts +150 -0
- package/dist/agent/routines/permission-card-wait.d.ts.map +1 -0
- package/dist/agent/routines/permission-card-wait.js +213 -0
- package/dist/agent/routines/permission-card-wait.js.map +1 -0
- package/dist/agent/routines/permission-card.d.ts +196 -0
- package/dist/agent/routines/permission-card.d.ts.map +1 -0
- package/dist/agent/routines/permission-card.js +397 -0
- package/dist/agent/routines/permission-card.js.map +1 -0
- package/dist/agent/routines/permission-key.d.ts +25 -0
- package/dist/agent/routines/permission-key.d.ts.map +1 -0
- package/dist/agent/routines/permission-key.js +53 -0
- package/dist/agent/routines/permission-key.js.map +1 -0
- package/dist/agent/routines/permission-review.d.ts +108 -0
- package/dist/agent/routines/permission-review.d.ts.map +1 -0
- package/dist/agent/routines/permission-review.js +215 -0
- package/dist/agent/routines/permission-review.js.map +1 -0
- package/dist/agent/routines/policy.d.ts +146 -0
- package/dist/agent/routines/policy.d.ts.map +1 -0
- package/dist/agent/routines/policy.js +241 -0
- package/dist/agent/routines/policy.js.map +1 -0
- package/dist/agent/routines/pre-fire.d.ts +46 -0
- package/dist/agent/routines/pre-fire.d.ts.map +1 -0
- package/dist/agent/routines/pre-fire.js +111 -0
- package/dist/agent/routines/pre-fire.js.map +1 -0
- package/dist/agent/routines/provider-events.d.ts +115 -0
- package/dist/agent/routines/provider-events.d.ts.map +1 -0
- package/dist/agent/routines/provider-events.js +307 -0
- package/dist/agent/routines/provider-events.js.map +1 -0
- package/dist/agent/routines/report.d.ts +33 -0
- package/dist/agent/routines/report.d.ts.map +1 -0
- package/dist/agent/routines/report.js +122 -0
- package/dist/agent/routines/report.js.map +1 -0
- package/dist/agent/routines/routine.d.ts +774 -0
- package/dist/agent/routines/routine.d.ts.map +1 -0
- package/dist/agent/routines/routine.js +385 -0
- package/dist/agent/routines/routine.js.map +1 -0
- package/dist/agent/routines/schedule.d.ts +70 -0
- package/dist/agent/routines/schedule.d.ts.map +1 -0
- package/dist/agent/routines/schedule.js +187 -0
- package/dist/agent/routines/schedule.js.map +1 -0
- package/dist/agent/routines/scheme-name.d.ts +43 -0
- package/dist/agent/routines/scheme-name.d.ts.map +1 -0
- package/dist/agent/routines/scheme-name.js +73 -0
- package/dist/agent/routines/scheme-name.js.map +1 -0
- package/dist/agent/routines/stall.d.ts +46 -0
- package/dist/agent/routines/stall.d.ts.map +1 -0
- package/dist/agent/routines/stall.js +143 -0
- package/dist/agent/routines/stall.js.map +1 -0
- package/dist/agent/routines/store.d.ts +47 -0
- package/dist/agent/routines/store.d.ts.map +1 -0
- package/dist/agent/routines/store.js +82 -0
- package/dist/agent/routines/store.js.map +1 -0
- package/dist/agent/routines/watch.d.ts +134 -0
- package/dist/agent/routines/watch.d.ts.map +1 -0
- package/dist/agent/routines/watch.js +266 -0
- package/dist/agent/routines/watch.js.map +1 -0
- package/dist/agent/sandbox/backend-select.d.ts +19 -0
- package/dist/agent/sandbox/backend-select.d.ts.map +1 -0
- package/dist/agent/sandbox/backend-select.js +46 -0
- package/dist/agent/sandbox/backend-select.js.map +1 -0
- package/dist/agent/sandbox/vercel-create.d.ts +99 -0
- package/dist/agent/sandbox/vercel-create.d.ts.map +1 -0
- package/dist/agent/sandbox/vercel-create.js +151 -0
- package/dist/agent/sandbox/vercel-create.js.map +1 -0
- package/dist/agent/scaffold/app-root.d.ts +18 -0
- package/dist/agent/scaffold/app-root.d.ts.map +1 -0
- package/dist/agent/scaffold/app-root.js +97 -0
- package/dist/agent/scaffold/app-root.js.map +1 -0
- package/dist/agent/scaffold/roster-config.d.ts +130 -0
- package/dist/agent/scaffold/roster-config.d.ts.map +1 -0
- package/dist/agent/scaffold/roster-config.js +46 -0
- package/dist/agent/scaffold/roster-config.js.map +1 -0
- package/dist/agent/scaffold/roster-fs.d.ts +45 -0
- package/dist/agent/scaffold/roster-fs.d.ts.map +1 -0
- package/dist/agent/scaffold/roster-fs.js +195 -0
- package/dist/agent/scaffold/roster-fs.js.map +1 -0
- package/dist/agent/scaffold/roster-plan.d.ts +167 -0
- package/dist/agent/scaffold/roster-plan.d.ts.map +1 -0
- package/dist/agent/scaffold/roster-plan.js +668 -0
- package/dist/agent/scaffold/roster-plan.js.map +1 -0
- package/dist/agent/scaffold/templates.d.ts +13 -0
- package/dist/agent/scaffold/templates.d.ts.map +1 -0
- package/dist/agent/scaffold/templates.js +73 -0
- package/dist/agent/scaffold/templates.js.map +1 -0
- package/dist/agent/scaffold/tool-roster-read.d.ts +24 -0
- package/dist/agent/scaffold/tool-roster-read.d.ts.map +1 -0
- package/dist/agent/scaffold/tool-roster-read.js +68 -0
- package/dist/agent/scaffold/tool-roster-read.js.map +1 -0
- package/dist/agent/scaffold/tool-roster.d.ts +90 -0
- package/dist/agent/scaffold/tool-roster.d.ts.map +1 -0
- package/dist/agent/scaffold/tool-roster.js +128 -0
- package/dist/agent/scaffold/tool-roster.js.map +1 -0
- package/dist/agent/schedules/directory-sync.d.ts +6 -0
- package/dist/agent/schedules/directory-sync.d.ts.map +1 -0
- package/dist/agent/schedules/directory-sync.js +36 -0
- package/dist/agent/schedules/directory-sync.js.map +1 -0
- package/dist/agent/schedules/dispatch.d.ts +34 -0
- package/dist/agent/schedules/dispatch.d.ts.map +1 -0
- package/dist/agent/schedules/dispatch.js +749 -0
- package/dist/agent/schedules/dispatch.js.map +1 -0
- package/dist/agent/schedules/dream-mode3.d.ts +28 -0
- package/dist/agent/schedules/dream-mode3.d.ts.map +1 -0
- package/dist/agent/schedules/dream-mode3.js +261 -0
- package/dist/agent/schedules/dream-mode3.js.map +1 -0
- package/dist/agent/schedules/routine-dispatch.d.ts +125 -0
- package/dist/agent/schedules/routine-dispatch.d.ts.map +1 -0
- package/dist/agent/schedules/routine-dispatch.js +139 -0
- package/dist/agent/schedules/routine-dispatch.js.map +1 -0
- package/dist/agent/schedules/tidy.d.ts +39 -0
- package/dist/agent/schedules/tidy.d.ts.map +1 -0
- package/dist/agent/schedules/tidy.js +292 -0
- package/dist/agent/schedules/tidy.js.map +1 -0
- package/dist/agent/scm/app.d.ts +55 -0
- package/dist/agent/scm/app.d.ts.map +1 -0
- package/dist/agent/scm/app.js +120 -0
- package/dist/agent/scm/app.js.map +1 -0
- package/dist/agent/scm/broker-audit.d.ts +35 -0
- package/dist/agent/scm/broker-audit.d.ts.map +1 -0
- package/dist/agent/scm/broker-audit.js +94 -0
- package/dist/agent/scm/broker-audit.js.map +1 -0
- package/dist/agent/scm/broker.d.ts +56 -0
- package/dist/agent/scm/broker.d.ts.map +1 -0
- package/dist/agent/scm/broker.js +113 -0
- package/dist/agent/scm/broker.js.map +1 -0
- package/dist/agent/scm/capability-fit.d.ts +59 -0
- package/dist/agent/scm/capability-fit.d.ts.map +1 -0
- package/dist/agent/scm/capability-fit.js +122 -0
- package/dist/agent/scm/capability-fit.js.map +1 -0
- package/dist/agent/scm/config-repo-token.d.ts +3 -0
- package/dist/agent/scm/config-repo-token.d.ts.map +1 -0
- package/dist/agent/scm/config-repo-token.js +43 -0
- package/dist/agent/scm/config-repo-token.js.map +1 -0
- package/dist/agent/scm/config.d.ts +3 -0
- package/dist/agent/scm/config.d.ts.map +1 -0
- package/dist/agent/scm/config.js +36 -0
- package/dist/agent/scm/config.js.map +1 -0
- package/dist/agent/scm/contents.d.ts +54 -0
- package/dist/agent/scm/contents.d.ts.map +1 -0
- package/dist/agent/scm/contents.js +117 -0
- package/dist/agent/scm/contents.js.map +1 -0
- package/dist/agent/scm/git.d.ts +157 -0
- package/dist/agent/scm/git.d.ts.map +1 -0
- package/dist/agent/scm/git.js +318 -0
- package/dist/agent/scm/git.js.map +1 -0
- package/dist/agent/scm/github-acting-identity.d.ts +38 -0
- package/dist/agent/scm/github-acting-identity.d.ts.map +1 -0
- package/dist/agent/scm/github-acting-identity.js +121 -0
- package/dist/agent/scm/github-acting-identity.js.map +1 -0
- package/dist/agent/scm/github-search.d.ts +23 -0
- package/dist/agent/scm/github-search.d.ts.map +1 -0
- package/dist/agent/scm/github-search.js +122 -0
- package/dist/agent/scm/github-search.js.map +1 -0
- package/dist/agent/scm/github-work.d.ts +17 -0
- package/dist/agent/scm/github-work.d.ts.map +1 -0
- package/dist/agent/scm/github-work.js +43 -0
- package/dist/agent/scm/github-work.js.map +1 -0
- package/dist/agent/scm/installations.d.ts +46 -0
- package/dist/agent/scm/installations.d.ts.map +1 -0
- package/dist/agent/scm/installations.js +144 -0
- package/dist/agent/scm/installations.js.map +1 -0
- package/dist/agent/scm/issue-actions.d.ts +41 -0
- package/dist/agent/scm/issue-actions.d.ts.map +1 -0
- package/dist/agent/scm/issue-actions.js +173 -0
- package/dist/agent/scm/issue-actions.js.map +1 -0
- package/dist/agent/scm/mint.d.ts +76 -0
- package/dist/agent/scm/mint.d.ts.map +1 -0
- package/dist/agent/scm/mint.js +253 -0
- package/dist/agent/scm/mint.js.map +1 -0
- package/dist/agent/scm/pr-activity.d.ts +50 -0
- package/dist/agent/scm/pr-activity.d.ts.map +1 -0
- package/dist/agent/scm/pr-activity.js +102 -0
- package/dist/agent/scm/pr-activity.js.map +1 -0
- package/dist/agent/scm/pr-diff.d.ts +61 -0
- package/dist/agent/scm/pr-diff.d.ts.map +1 -0
- package/dist/agent/scm/pr-diff.js +104 -0
- package/dist/agent/scm/pr-diff.js.map +1 -0
- package/dist/agent/scm/pr-feedback.d.ts +87 -0
- package/dist/agent/scm/pr-feedback.d.ts.map +1 -0
- package/dist/agent/scm/pr-feedback.js +230 -0
- package/dist/agent/scm/pr-feedback.js.map +1 -0
- package/dist/agent/scm/pr-status.d.ts +120 -0
- package/dist/agent/scm/pr-status.d.ts.map +1 -0
- package/dist/agent/scm/pr-status.js +199 -0
- package/dist/agent/scm/pr-status.js.map +1 -0
- package/dist/agent/scm/pr-watch.d.ts +26 -0
- package/dist/agent/scm/pr-watch.d.ts.map +1 -0
- package/dist/agent/scm/pr-watch.js +165 -0
- package/dist/agent/scm/pr-watch.js.map +1 -0
- package/dist/agent/scm/pr.d.ts +42 -0
- package/dist/agent/scm/pr.d.ts.map +1 -0
- package/dist/agent/scm/pr.js +73 -0
- package/dist/agent/scm/pr.js.map +1 -0
- package/dist/agent/scm/provider.d.ts +13 -0
- package/dist/agent/scm/provider.d.ts.map +1 -0
- package/dist/agent/scm/provider.js +39 -0
- package/dist/agent/scm/provider.js.map +1 -0
- package/dist/agent/scm/refs.d.ts +65 -0
- package/dist/agent/scm/refs.d.ts.map +1 -0
- package/dist/agent/scm/refs.js +89 -0
- package/dist/agent/scm/refs.js.map +1 -0
- package/dist/agent/scm/repo-skills.d.ts +69 -0
- package/dist/agent/scm/repo-skills.d.ts.map +1 -0
- package/dist/agent/scm/repo-skills.js +170 -0
- package/dist/agent/scm/repo-skills.js.map +1 -0
- package/dist/agent/scm/types.d.ts +40 -0
- package/dist/agent/scm/types.d.ts.map +1 -0
- package/dist/agent/scm/types.js +9 -0
- package/dist/agent/scm/types.js.map +1 -0
- package/dist/agent/scm/write-token.d.ts +10 -0
- package/dist/agent/scm/write-token.d.ts.map +1 -0
- package/dist/agent/scm/write-token.js +40 -0
- package/dist/agent/scm/write-token.js.map +1 -0
- package/dist/agent/settings/settings.d.ts +935 -0
- package/dist/agent/settings/settings.d.ts.map +1 -0
- package/dist/agent/settings/settings.js +1104 -0
- package/dist/agent/settings/settings.js.map +1 -0
- package/dist/agent/skills/domain-skills.d.ts +61 -0
- package/dist/agent/skills/domain-skills.d.ts.map +1 -0
- package/dist/agent/skills/domain-skills.js +174 -0
- package/dist/agent/skills/domain-skills.js.map +1 -0
- package/dist/agent/skills/scoped.d.ts +21 -0
- package/dist/agent/skills/scoped.d.ts.map +1 -0
- package/dist/agent/skills/scoped.js +152 -0
- package/dist/agent/skills/scoped.js.map +1 -0
- package/dist/agent/spend/bypass.d.ts +30 -0
- package/dist/agent/spend/bypass.d.ts.map +1 -0
- package/dist/agent/spend/bypass.js +117 -0
- package/dist/agent/spend/bypass.js.map +1 -0
- package/dist/agent/spend/caps.d.ts +173 -0
- package/dist/agent/spend/caps.d.ts.map +1 -0
- package/dist/agent/spend/caps.js +323 -0
- package/dist/agent/spend/caps.js.map +1 -0
- package/dist/agent/spend/check.d.ts +54 -0
- package/dist/agent/spend/check.d.ts.map +1 -0
- package/dist/agent/spend/check.js +157 -0
- package/dist/agent/spend/check.js.map +1 -0
- package/dist/agent/spend/checkpoint.d.ts +158 -0
- package/dist/agent/spend/checkpoint.d.ts.map +1 -0
- package/dist/agent/spend/checkpoint.js +559 -0
- package/dist/agent/spend/checkpoint.js.map +1 -0
- package/dist/agent/spend/dm-mask.d.ts +61 -0
- package/dist/agent/spend/dm-mask.d.ts.map +1 -0
- package/dist/agent/spend/dm-mask.js +113 -0
- package/dist/agent/spend/dm-mask.js.map +1 -0
- package/dist/agent/spend/ingress-gate.d.ts +143 -0
- package/dist/agent/spend/ingress-gate.d.ts.map +1 -0
- package/dist/agent/spend/ingress-gate.js +217 -0
- package/dist/agent/spend/ingress-gate.js.map +1 -0
- package/dist/agent/spend/pricing.d.ts +251 -0
- package/dist/agent/spend/pricing.d.ts.map +1 -0
- package/dist/agent/spend/pricing.js +454 -0
- package/dist/agent/spend/pricing.js.map +1 -0
- package/dist/agent/spend/reporting.d.ts +313 -0
- package/dist/agent/spend/reporting.d.ts.map +1 -0
- package/dist/agent/spend/reporting.js +674 -0
- package/dist/agent/spend/reporting.js.map +1 -0
- package/dist/agent/spend/sandbox-pricing.d.ts +19 -0
- package/dist/agent/spend/sandbox-pricing.d.ts.map +1 -0
- package/dist/agent/spend/sandbox-pricing.js +50 -0
- package/dist/agent/spend/sandbox-pricing.js.map +1 -0
- package/dist/agent/spend/spend.d.ts +283 -0
- package/dist/agent/spend/spend.d.ts.map +1 -0
- package/dist/agent/spend/spend.js +255 -0
- package/dist/agent/spend/spend.js.map +1 -0
- package/dist/agent/spend/stack-pricing.d.ts +94 -0
- package/dist/agent/spend/stack-pricing.d.ts.map +1 -0
- package/dist/agent/spend/stack-pricing.js +123 -0
- package/dist/agent/spend/stack-pricing.js.map +1 -0
- package/dist/agent/spend/store.d.ts +139 -0
- package/dist/agent/spend/store.d.ts.map +1 -0
- package/dist/agent/spend/store.js +180 -0
- package/dist/agent/spend/store.js.map +1 -0
- package/dist/agent/spend/subagent-runs.d.ts +79 -0
- package/dist/agent/spend/subagent-runs.d.ts.map +1 -0
- package/dist/agent/spend/subagent-runs.js +124 -0
- package/dist/agent/spend/subagent-runs.js.map +1 -0
- package/dist/agent/spend/usage-events.d.ts +79 -0
- package/dist/agent/spend/usage-events.d.ts.map +1 -0
- package/dist/agent/spend/usage-events.js +132 -0
- package/dist/agent/spend/usage-events.js.map +1 -0
- package/dist/agent/stall/bash-hang-guard.d.ts +133 -0
- package/dist/agent/stall/bash-hang-guard.d.ts.map +1 -0
- package/dist/agent/stall/bash-hang-guard.js +303 -0
- package/dist/agent/stall/bash-hang-guard.js.map +1 -0
- package/dist/agent/stall/guard.d.ts +68 -0
- package/dist/agent/stall/guard.d.ts.map +1 -0
- package/dist/agent/stall/guard.js +248 -0
- package/dist/agent/stall/guard.js.map +1 -0
- package/dist/agent/status/status.d.ts +32 -0
- package/dist/agent/status/status.d.ts.map +1 -0
- package/dist/agent/status/status.js +116 -0
- package/dist/agent/status/status.js.map +1 -0
- package/dist/agent/subagents/contracts.d.ts +82 -0
- package/dist/agent/subagents/contracts.d.ts.map +1 -0
- package/dist/agent/subagents/contracts.js +114 -0
- package/dist/agent/subagents/contracts.js.map +1 -0
- package/dist/agent/subagents/declared.d.ts +44 -0
- package/dist/agent/subagents/declared.d.ts.map +1 -0
- package/dist/agent/subagents/declared.js +152 -0
- package/dist/agent/subagents/declared.js.map +1 -0
- package/dist/agent/testing/driver-allowlist.d.ts +103 -0
- package/dist/agent/testing/driver-allowlist.d.ts.map +1 -0
- package/dist/agent/testing/driver-allowlist.js +193 -0
- package/dist/agent/testing/driver-allowlist.js.map +1 -0
- package/dist/agent/tools/add_label.d.ts +52 -0
- package/dist/agent/tools/add_label.d.ts.map +1 -0
- package/dist/agent/tools/add_label.js +63 -0
- package/dist/agent/tools/add_label.js.map +1 -0
- package/dist/agent/tools/add_routine_rule.d.ts +38 -0
- package/dist/agent/tools/add_routine_rule.d.ts.map +1 -0
- package/dist/agent/tools/add_routine_rule.js +182 -0
- package/dist/agent/tools/add_routine_rule.js.map +1 -0
- package/dist/agent/tools/agent_version.d.ts +17 -0
- package/dist/agent/tools/agent_version.d.ts.map +1 -0
- package/dist/agent/tools/agent_version.js +38 -0
- package/dist/agent/tools/agent_version.js.map +1 -0
- package/dist/agent/tools/assign.d.ts +74 -0
- package/dist/agent/tools/assign.d.ts.map +1 -0
- package/dist/agent/tools/assign.js +167 -0
- package/dist/agent/tools/assign.js.map +1 -0
- package/dist/agent/tools/aws.d.ts +33 -0
- package/dist/agent/tools/aws.d.ts.map +1 -0
- package/dist/agent/tools/aws.js +164 -0
- package/dist/agent/tools/aws.js.map +1 -0
- package/dist/agent/tools/browser_tools.d.ts +3 -0
- package/dist/agent/tools/browser_tools.d.ts.map +1 -0
- package/dist/agent/tools/browser_tools.js +21 -0
- package/dist/agent/tools/browser_tools.js.map +1 -0
- package/dist/agent/tools/cancel_routine.d.ts +27 -0
- package/dist/agent/tools/cancel_routine.d.ts.map +1 -0
- package/dist/agent/tools/cancel_routine.js +123 -0
- package/dist/agent/tools/cancel_routine.js.map +1 -0
- package/dist/agent/tools/capture_events.d.ts +17 -0
- package/dist/agent/tools/capture_events.d.ts.map +1 -0
- package/dist/agent/tools/capture_events.js +51 -0
- package/dist/agent/tools/capture_events.js.map +1 -0
- package/dist/agent/tools/check_pr_status.d.ts +52 -0
- package/dist/agent/tools/check_pr_status.d.ts.map +1 -0
- package/dist/agent/tools/check_pr_status.js +66 -0
- package/dist/agent/tools/check_pr_status.js.map +1 -0
- package/dist/agent/tools/checkout_repo.d.ts +3 -0
- package/dist/agent/tools/checkout_repo.d.ts.map +1 -0
- package/dist/agent/tools/checkout_repo.js +158 -0
- package/dist/agent/tools/checkout_repo.js.map +1 -0
- package/dist/agent/tools/clear_connector_override.d.ts +48 -0
- package/dist/agent/tools/clear_connector_override.d.ts.map +1 -0
- package/dist/agent/tools/clear_connector_override.js +134 -0
- package/dist/agent/tools/clear_connector_override.js.map +1 -0
- package/dist/agent/tools/clear_spend_limit.d.ts +51 -0
- package/dist/agent/tools/clear_spend_limit.d.ts.map +1 -0
- package/dist/agent/tools/clear_spend_limit.js +162 -0
- package/dist/agent/tools/clear_spend_limit.js.map +1 -0
- package/dist/agent/tools/complete_job.d.ts +15 -0
- package/dist/agent/tools/complete_job.d.ts.map +1 -0
- package/dist/agent/tools/complete_job.js +59 -0
- package/dist/agent/tools/complete_job.js.map +1 -0
- package/dist/agent/tools/complete_thread.d.ts +8 -0
- package/dist/agent/tools/complete_thread.d.ts.map +1 -0
- package/dist/agent/tools/complete_thread.js +125 -0
- package/dist/agent/tools/complete_thread.js.map +1 -0
- package/dist/agent/tools/confirm_link.d.ts +84 -0
- package/dist/agent/tools/confirm_link.d.ts.map +1 -0
- package/dist/agent/tools/confirm_link.js +437 -0
- package/dist/agent/tools/confirm_link.js.map +1 -0
- package/dist/agent/tools/connector.d.ts +34 -0
- package/dist/agent/tools/connector.d.ts.map +1 -0
- package/dist/agent/tools/connector.js +212 -0
- package/dist/agent/tools/connector.js.map +1 -0
- package/dist/agent/tools/create_agent.d.ts +77 -0
- package/dist/agent/tools/create_agent.d.ts.map +1 -0
- package/dist/agent/tools/create_agent.js +261 -0
- package/dist/agent/tools/create_agent.js.map +1 -0
- package/dist/agent/tools/create_routine.d.ts +95 -0
- package/dist/agent/tools/create_routine.d.ts.map +1 -0
- package/dist/agent/tools/create_routine.js +437 -0
- package/dist/agent/tools/create_routine.js.map +1 -0
- package/dist/agent/tools/create_skill.d.ts +3 -0
- package/dist/agent/tools/create_skill.d.ts.map +1 -0
- package/dist/agent/tools/create_skill.js +157 -0
- package/dist/agent/tools/create_skill.js.map +1 -0
- package/dist/agent/tools/create_ticket.d.ts +70 -0
- package/dist/agent/tools/create_ticket.d.ts.map +1 -0
- package/dist/agent/tools/create_ticket.js +171 -0
- package/dist/agent/tools/create_ticket.js.map +1 -0
- package/dist/agent/tools/declare_webhook.d.ts +70 -0
- package/dist/agent/tools/declare_webhook.d.ts.map +1 -0
- package/dist/agent/tools/declare_webhook.js +321 -0
- package/dist/agent/tools/declare_webhook.js.map +1 -0
- package/dist/agent/tools/delete_skill.d.ts +3 -0
- package/dist/agent/tools/delete_skill.d.ts.map +1 -0
- package/dist/agent/tools/delete_skill.js +125 -0
- package/dist/agent/tools/delete_skill.js.map +1 -0
- package/dist/agent/tools/describe_image.d.ts +72 -0
- package/dist/agent/tools/describe_image.d.ts.map +1 -0
- package/dist/agent/tools/describe_image.js +269 -0
- package/dist/agent/tools/describe_image.js.map +1 -0
- package/dist/agent/tools/dm_person.d.ts +43 -0
- package/dist/agent/tools/dm_person.d.ts.map +1 -0
- package/dist/agent/tools/dm_person.js +190 -0
- package/dist/agent/tools/dm_person.js.map +1 -0
- package/dist/agent/tools/edit_reply.d.ts +56 -0
- package/dist/agent/tools/edit_reply.d.ts.map +1 -0
- package/dist/agent/tools/edit_reply.js +169 -0
- package/dist/agent/tools/edit_reply.js.map +1 -0
- package/dist/agent/tools/edit_routine.d.ts +32 -0
- package/dist/agent/tools/edit_routine.d.ts.map +1 -0
- package/dist/agent/tools/edit_routine.js +143 -0
- package/dist/agent/tools/edit_routine.js.map +1 -0
- package/dist/agent/tools/enable_routine.d.ts +30 -0
- package/dist/agent/tools/enable_routine.d.ts.map +1 -0
- package/dist/agent/tools/enable_routine.js +148 -0
- package/dist/agent/tools/enable_routine.js.map +1 -0
- package/dist/agent/tools/explain_permission.d.ts +27 -0
- package/dist/agent/tools/explain_permission.d.ts.map +1 -0
- package/dist/agent/tools/explain_permission.js +51 -0
- package/dist/agent/tools/explain_permission.js.map +1 -0
- package/dist/agent/tools/get_pr_feedback.d.ts +184 -0
- package/dist/agent/tools/get_pr_feedback.d.ts.map +1 -0
- package/dist/agent/tools/get_pr_feedback.js +77 -0
- package/dist/agent/tools/get_pr_feedback.js.map +1 -0
- package/dist/agent/tools/grant_tools.d.ts +27 -0
- package/dist/agent/tools/grant_tools.d.ts.map +1 -0
- package/dist/agent/tools/grant_tools.js +417 -0
- package/dist/agent/tools/grant_tools.js.map +1 -0
- package/dist/agent/tools/halt.d.ts +71 -0
- package/dist/agent/tools/halt.d.ts.map +1 -0
- package/dist/agent/tools/halt.js +157 -0
- package/dist/agent/tools/halt.js.map +1 -0
- package/dist/agent/tools/link_identity.d.ts +48 -0
- package/dist/agent/tools/link_identity.d.ts.map +1 -0
- package/dist/agent/tools/link_identity.js +283 -0
- package/dist/agent/tools/link_identity.js.map +1 -0
- package/dist/agent/tools/list_recent_events.d.ts +19 -0
- package/dist/agent/tools/list_recent_events.d.ts.map +1 -0
- package/dist/agent/tools/list_recent_events.js +55 -0
- package/dist/agent/tools/list_recent_events.js.map +1 -0
- package/dist/agent/tools/list_repos.d.ts +11 -0
- package/dist/agent/tools/list_repos.d.ts.map +1 -0
- package/dist/agent/tools/list_repos.js +22 -0
- package/dist/agent/tools/list_repos.js.map +1 -0
- package/dist/agent/tools/list_routines.d.ts +88 -0
- package/dist/agent/tools/list_routines.d.ts.map +1 -0
- package/dist/agent/tools/list_routines.js +143 -0
- package/dist/agent/tools/list_routines.js.map +1 -0
- package/dist/agent/tools/list_skills.d.ts +21 -0
- package/dist/agent/tools/list_skills.d.ts.map +1 -0
- package/dist/agent/tools/list_skills.js +34 -0
- package/dist/agent/tools/list_skills.js.map +1 -0
- package/dist/agent/tools/list_webhooks.d.ts +27 -0
- package/dist/agent/tools/list_webhooks.d.ts.map +1 -0
- package/dist/agent/tools/list_webhooks.js +66 -0
- package/dist/agent/tools/list_webhooks.js.map +1 -0
- package/dist/agent/tools/memory_admin_list.d.ts +10 -0
- package/dist/agent/tools/memory_admin_list.d.ts.map +1 -0
- package/dist/agent/tools/memory_admin_list.js +72 -0
- package/dist/agent/tools/memory_admin_list.js.map +1 -0
- package/dist/agent/tools/memory_admin_read.d.ts +17 -0
- package/dist/agent/tools/memory_admin_read.d.ts.map +1 -0
- package/dist/agent/tools/memory_admin_read.js +85 -0
- package/dist/agent/tools/memory_admin_read.js.map +1 -0
- package/dist/agent/tools/message_thread_seat.d.ts +7 -0
- package/dist/agent/tools/message_thread_seat.d.ts.map +1 -0
- package/dist/agent/tools/message_thread_seat.js +133 -0
- package/dist/agent/tools/message_thread_seat.js.map +1 -0
- package/dist/agent/tools/no_reply.d.ts +31 -0
- package/dist/agent/tools/no_reply.d.ts.map +1 -0
- package/dist/agent/tools/no_reply.js +251 -0
- package/dist/agent/tools/no_reply.js.map +1 -0
- package/dist/agent/tools/open_pull_request.d.ts +23 -0
- package/dist/agent/tools/open_pull_request.d.ts.map +1 -0
- package/dist/agent/tools/open_pull_request.js +323 -0
- package/dist/agent/tools/open_pull_request.js.map +1 -0
- package/dist/agent/tools/permission_fit_report.d.ts +63 -0
- package/dist/agent/tools/permission_fit_report.d.ts.map +1 -0
- package/dist/agent/tools/permission_fit_report.js +173 -0
- package/dist/agent/tools/permission_fit_report.js.map +1 -0
- package/dist/agent/tools/post_file.d.ts +7 -0
- package/dist/agent/tools/post_file.d.ts.map +1 -0
- package/dist/agent/tools/post_file.js +372 -0
- package/dist/agent/tools/post_file.js.map +1 -0
- package/dist/agent/tools/post_message.d.ts +32 -0
- package/dist/agent/tools/post_message.d.ts.map +1 -0
- package/dist/agent/tools/post_message.js +158 -0
- package/dist/agent/tools/post_message.js.map +1 -0
- package/dist/agent/tools/post_pr_walkthrough.d.ts +126 -0
- package/dist/agent/tools/post_pr_walkthrough.d.ts.map +1 -0
- package/dist/agent/tools/post_pr_walkthrough.js +200 -0
- package/dist/agent/tools/post_pr_walkthrough.js.map +1 -0
- package/dist/agent/tools/purge_memory.d.ts +105 -0
- package/dist/agent/tools/purge_memory.d.ts.map +1 -0
- package/dist/agent/tools/purge_memory.js +271 -0
- package/dist/agent/tools/purge_memory.js.map +1 -0
- package/dist/agent/tools/query_analytics.d.ts +59 -0
- package/dist/agent/tools/query_analytics.d.ts.map +1 -0
- package/dist/agent/tools/query_analytics.js +80 -0
- package/dist/agent/tools/query_analytics.js.map +1 -0
- package/dist/agent/tools/react.d.ts +23 -0
- package/dist/agent/tools/react.d.ts.map +1 -0
- package/dist/agent/tools/react.js +185 -0
- package/dist/agent/tools/react.js.map +1 -0
- package/dist/agent/tools/read_channel.d.ts +28 -0
- package/dist/agent/tools/read_channel.d.ts.map +1 -0
- package/dist/agent/tools/read_channel.js +118 -0
- package/dist/agent/tools/read_channel.js.map +1 -0
- package/dist/agent/tools/read_docs.d.ts +27 -0
- package/dist/agent/tools/read_docs.d.ts.map +1 -0
- package/dist/agent/tools/read_docs.js +43 -0
- package/dist/agent/tools/read_docs.js.map +1 -0
- package/dist/agent/tools/read_file_upload.d.ts +32 -0
- package/dist/agent/tools/read_file_upload.d.ts.map +1 -0
- package/dist/agent/tools/read_file_upload.js +175 -0
- package/dist/agent/tools/read_file_upload.js.map +1 -0
- package/dist/agent/tools/read_routine_transcript.d.ts +31 -0
- package/dist/agent/tools/read_routine_transcript.d.ts.map +1 -0
- package/dist/agent/tools/read_routine_transcript.js +79 -0
- package/dist/agent/tools/read_routine_transcript.js.map +1 -0
- package/dist/agent/tools/read_thread.d.ts +29 -0
- package/dist/agent/tools/read_thread.d.ts.map +1 -0
- package/dist/agent/tools/read_thread.js +100 -0
- package/dist/agent/tools/read_thread.js.map +1 -0
- package/dist/agent/tools/read_thread_seat.d.ts +7 -0
- package/dist/agent/tools/read_thread_seat.d.ts.map +1 -0
- package/dist/agent/tools/read_thread_seat.js +84 -0
- package/dist/agent/tools/read_thread_seat.js.map +1 -0
- package/dist/agent/tools/read_webhook_history.d.ts +17 -0
- package/dist/agent/tools/read_webhook_history.d.ts.map +1 -0
- package/dist/agent/tools/read_webhook_history.js +45 -0
- package/dist/agent/tools/read_webhook_history.js.map +1 -0
- package/dist/agent/tools/read_work_channel.d.ts +26 -0
- package/dist/agent/tools/read_work_channel.d.ts.map +1 -0
- package/dist/agent/tools/read_work_channel.js +108 -0
- package/dist/agent/tools/read_work_channel.js.map +1 -0
- package/dist/agent/tools/read_work_thread.d.ts +27 -0
- package/dist/agent/tools/read_work_thread.d.ts.map +1 -0
- package/dist/agent/tools/read_work_thread.js +89 -0
- package/dist/agent/tools/read_work_thread.js.map +1 -0
- package/dist/agent/tools/record_follow_up.d.ts +19 -0
- package/dist/agent/tools/record_follow_up.d.ts.map +1 -0
- package/dist/agent/tools/record_follow_up.js +74 -0
- package/dist/agent/tools/record_follow_up.js.map +1 -0
- package/dist/agent/tools/record_job_state.d.ts +15 -0
- package/dist/agent/tools/record_job_state.d.ts.map +1 -0
- package/dist/agent/tools/record_job_state.js +47 -0
- package/dist/agent/tools/record_job_state.js.map +1 -0
- package/dist/agent/tools/record_watch_state.d.ts +15 -0
- package/dist/agent/tools/record_watch_state.d.ts.map +1 -0
- package/dist/agent/tools/record_watch_state.js +45 -0
- package/dist/agent/tools/record_watch_state.js.map +1 -0
- package/dist/agent/tools/remove_routine_rule.d.ts +32 -0
- package/dist/agent/tools/remove_routine_rule.d.ts.map +1 -0
- package/dist/agent/tools/remove_routine_rule.js +142 -0
- package/dist/agent/tools/remove_routine_rule.js.map +1 -0
- package/dist/agent/tools/reply.d.ts +73 -0
- package/dist/agent/tools/reply.d.ts.map +1 -0
- package/dist/agent/tools/reply.js +664 -0
- package/dist/agent/tools/reply.js.map +1 -0
- package/dist/agent/tools/report_run_failed.d.ts +17 -0
- package/dist/agent/tools/report_run_failed.d.ts.map +1 -0
- package/dist/agent/tools/report_run_failed.js +71 -0
- package/dist/agent/tools/report_run_failed.js.map +1 -0
- package/dist/agent/tools/request_access.d.ts +118 -0
- package/dist/agent/tools/request_access.d.ts.map +1 -0
- package/dist/agent/tools/request_access.js +408 -0
- package/dist/agent/tools/request_access.js.map +1 -0
- package/dist/agent/tools/request_credential_grant.d.ts +101 -0
- package/dist/agent/tools/request_credential_grant.d.ts.map +1 -0
- package/dist/agent/tools/request_credential_grant.js +525 -0
- package/dist/agent/tools/request_credential_grant.js.map +1 -0
- package/dist/agent/tools/resume.d.ts +27 -0
- package/dist/agent/tools/resume.d.ts.map +1 -0
- package/dist/agent/tools/resume.js +137 -0
- package/dist/agent/tools/resume.js.map +1 -0
- package/dist/agent/tools/revoke_connector.d.ts +52 -0
- package/dist/agent/tools/revoke_connector.d.ts.map +1 -0
- package/dist/agent/tools/revoke_connector.js +129 -0
- package/dist/agent/tools/revoke_connector.js.map +1 -0
- package/dist/agent/tools/revoke_credential_grant.d.ts +12 -0
- package/dist/agent/tools/revoke_credential_grant.d.ts.map +1 -0
- package/dist/agent/tools/revoke_credential_grant.js +97 -0
- package/dist/agent/tools/revoke_credential_grant.js.map +1 -0
- package/dist/agent/tools/revoke_routine_permissions.d.ts +21 -0
- package/dist/agent/tools/revoke_routine_permissions.d.ts.map +1 -0
- package/dist/agent/tools/revoke_routine_permissions.js +72 -0
- package/dist/agent/tools/revoke_routine_permissions.js.map +1 -0
- package/dist/agent/tools/rotate_webhook.d.ts +37 -0
- package/dist/agent/tools/rotate_webhook.d.ts.map +1 -0
- package/dist/agent/tools/rotate_webhook.js +170 -0
- package/dist/agent/tools/rotate_webhook.js.map +1 -0
- package/dist/agent/tools/run_routine_now.d.ts +23 -0
- package/dist/agent/tools/run_routine_now.d.ts.map +1 -0
- package/dist/agent/tools/run_routine_now.js +106 -0
- package/dist/agent/tools/run_routine_now.js.map +1 -0
- package/dist/agent/tools/sandbox_tools.d.ts +11 -0
- package/dist/agent/tools/sandbox_tools.d.ts.map +1 -0
- package/dist/agent/tools/sandbox_tools.js +75 -0
- package/dist/agent/tools/sandbox_tools.js.map +1 -0
- package/dist/agent/tools/search.d.ts +65 -0
- package/dist/agent/tools/search.d.ts.map +1 -0
- package/dist/agent/tools/search.js +114 -0
- package/dist/agent/tools/search.js.map +1 -0
- package/dist/agent/tools/session_cost.d.ts +39 -0
- package/dist/agent/tools/session_cost.d.ts.map +1 -0
- package/dist/agent/tools/session_cost.js +124 -0
- package/dist/agent/tools/session_cost.js.map +1 -0
- package/dist/agent/tools/set_dm_delivery.d.ts +23 -0
- package/dist/agent/tools/set_dm_delivery.d.ts.map +1 -0
- package/dist/agent/tools/set_dm_delivery.js +106 -0
- package/dist/agent/tools/set_dm_delivery.js.map +1 -0
- package/dist/agent/tools/set_spend_limit.d.ts +156 -0
- package/dist/agent/tools/set_spend_limit.d.ts.map +1 -0
- package/dist/agent/tools/set_spend_limit.js +437 -0
- package/dist/agent/tools/set_spend_limit.js.map +1 -0
- package/dist/agent/tools/set_state.d.ts +74 -0
- package/dist/agent/tools/set_state.d.ts.map +1 -0
- package/dist/agent/tools/set_state.js +166 -0
- package/dist/agent/tools/set_state.js.map +1 -0
- package/dist/agent/tools/spawn_thread_session.d.ts +9 -0
- package/dist/agent/tools/spawn_thread_session.d.ts.map +1 -0
- package/dist/agent/tools/spawn_thread_session.js +204 -0
- package/dist/agent/tools/spawn_thread_session.js.map +1 -0
- package/dist/agent/tools/spend_report.d.ts +180 -0
- package/dist/agent/tools/spend_report.d.ts.map +1 -0
- package/dist/agent/tools/spend_report.js +372 -0
- package/dist/agent/tools/spend_report.js.map +1 -0
- package/dist/agent/tools/stand_down.d.ts +91 -0
- package/dist/agent/tools/stand_down.d.ts.map +1 -0
- package/dist/agent/tools/stand_down.js +245 -0
- package/dist/agent/tools/stand_down.js.map +1 -0
- package/dist/agent/tools/subscribe_pr.d.ts +104 -0
- package/dist/agent/tools/subscribe_pr.d.ts.map +1 -0
- package/dist/agent/tools/subscribe_pr.js +213 -0
- package/dist/agent/tools/subscribe_pr.js.map +1 -0
- package/dist/agent/tools/unlink_identity.d.ts +19 -0
- package/dist/agent/tools/unlink_identity.d.ts.map +1 -0
- package/dist/agent/tools/unlink_identity.js +97 -0
- package/dist/agent/tools/unlink_identity.js.map +1 -0
- package/dist/agent/tools/update_status.d.ts +17 -0
- package/dist/agent/tools/update_status.d.ts.map +1 -0
- package/dist/agent/tools/update_status.js +59 -0
- package/dist/agent/tools/update_status.js.map +1 -0
- package/dist/agent/tools/usage_report.d.ts +59 -0
- package/dist/agent/tools/usage_report.d.ts.map +1 -0
- package/dist/agent/tools/usage_report.js +91 -0
- package/dist/agent/tools/usage_report.js.map +1 -0
- package/dist/agent/tools/walk_pr.d.ts +79 -0
- package/dist/agent/tools/walk_pr.d.ts.map +1 -0
- package/dist/agent/tools/walk_pr.js +133 -0
- package/dist/agent/tools/walk_pr.js.map +1 -0
- package/dist/agent/webhooks/achievability.d.ts +80 -0
- package/dist/agent/webhooks/achievability.d.ts.map +1 -0
- package/dist/agent/webhooks/achievability.js +216 -0
- package/dist/agent/webhooks/achievability.js.map +1 -0
- package/dist/agent/webhooks/capture-window.d.ts +86 -0
- package/dist/agent/webhooks/capture-window.d.ts.map +1 -0
- package/dist/agent/webhooks/capture-window.js +194 -0
- package/dist/agent/webhooks/capture-window.js.map +1 -0
- package/dist/agent/webhooks/config.d.ts +326 -0
- package/dist/agent/webhooks/config.d.ts.map +1 -0
- package/dist/agent/webhooks/config.js +280 -0
- package/dist/agent/webhooks/config.js.map +1 -0
- package/dist/agent/webhooks/dispatch.d.ts +103 -0
- package/dist/agent/webhooks/dispatch.d.ts.map +1 -0
- package/dist/agent/webhooks/dispatch.js +358 -0
- package/dist/agent/webhooks/dispatch.js.map +1 -0
- package/dist/agent/webhooks/gate.d.ts +128 -0
- package/dist/agent/webhooks/gate.d.ts.map +1 -0
- package/dist/agent/webhooks/gate.js +296 -0
- package/dist/agent/webhooks/gate.js.map +1 -0
- package/dist/agent/webhooks/handshake-capture.d.ts +66 -0
- package/dist/agent/webhooks/handshake-capture.d.ts.map +1 -0
- package/dist/agent/webhooks/handshake-capture.js +126 -0
- package/dist/agent/webhooks/handshake-capture.js.map +1 -0
- package/dist/agent/webhooks/hooks-codemod.d.ts +73 -0
- package/dist/agent/webhooks/hooks-codemod.d.ts.map +1 -0
- package/dist/agent/webhooks/hooks-codemod.js +231 -0
- package/dist/agent/webhooks/hooks-codemod.js.map +1 -0
- package/dist/agent/webhooks/oe-standard-webhook.d.ts +153 -0
- package/dist/agent/webhooks/oe-standard-webhook.d.ts.map +1 -0
- package/dist/agent/webhooks/oe-standard-webhook.js +498 -0
- package/dist/agent/webhooks/oe-standard-webhook.js.map +1 -0
- package/dist/agent/webhooks/reject-audit.d.ts +40 -0
- package/dist/agent/webhooks/reject-audit.d.ts.map +1 -0
- package/dist/agent/webhooks/reject-audit.js +99 -0
- package/dist/agent/webhooks/reject-audit.js.map +1 -0
- package/dist/agent/webhooks/replay-dedupe.d.ts +58 -0
- package/dist/agent/webhooks/replay-dedupe.d.ts.map +1 -0
- package/dist/agent/webhooks/replay-dedupe.js +159 -0
- package/dist/agent/webhooks/replay-dedupe.js.map +1 -0
- package/dist/agent/webhooks/reveal-page.d.ts +116 -0
- package/dist/agent/webhooks/reveal-page.d.ts.map +1 -0
- package/dist/agent/webhooks/reveal-page.js +443 -0
- package/dist/agent/webhooks/reveal-page.js.map +1 -0
- package/dist/agent/webhooks/secrets.d.ts +17 -0
- package/dist/agent/webhooks/secrets.d.ts.map +1 -0
- package/dist/agent/webhooks/secrets.js +73 -0
- package/dist/agent/webhooks/secrets.js.map +1 -0
- package/dist/agent/webhooks/source-vocabulary.d.ts +131 -0
- package/dist/agent/webhooks/source-vocabulary.d.ts.map +1 -0
- package/dist/agent/webhooks/source-vocabulary.js +315 -0
- package/dist/agent/webhooks/source-vocabulary.js.map +1 -0
- package/dist/agent/webhooks/verifier.d.ts +251 -0
- package/dist/agent/webhooks/verifier.d.ts.map +1 -0
- package/dist/agent/webhooks/verifier.js +109 -0
- package/dist/agent/webhooks/verifier.js.map +1 -0
- package/dist/scripts/operator-store-connect.d.ts +86 -0
- package/dist/scripts/operator-store-connect.d.ts.map +1 -0
- package/dist/scripts/operator-store-connect.js +218 -0
- package/dist/scripts/operator-store-connect.js.map +1 -0
- package/package.json +3397 -0
- package/patches/eve+0.54.3.patch +129 -0
- package/scripts/eve-framework-tools.ts +367 -0
- package/scripts/oe-cli.ts +293 -0
- package/scripts/oe-secret.ts +278 -0
- package/scripts/oe-wrap-untrusted.ts +63 -0
- package/scripts/operator-store-connect.ts +246 -0
- package/templates/subagents/fresh_eyes_review/agent.ts +37 -0
- package/templates/subagents/fresh_eyes_review/hooks/spend.ts +16 -0
- package/templates/subagents/fresh_eyes_review/instructions.md +52 -0
- package/templates/subagents/fresh_eyes_review/tools/ask_question.ts +13 -0
- package/templates/subagents/fresh_eyes_review/tools/bash.ts +13 -0
- package/templates/subagents/fresh_eyes_review/tools/connection_search.ts +52 -0
- package/templates/subagents/fresh_eyes_review/tools/load_skill.ts +13 -0
- package/templates/subagents/fresh_eyes_review/tools/read_file.ts +13 -0
- package/templates/subagents/fresh_eyes_review/tools/task_cancel.ts +20 -0
- package/templates/subagents/fresh_eyes_review/tools/todo.ts +13 -0
- package/templates/subagents/fresh_eyes_review/tools/web_fetch.ts +13 -0
- package/templates/subagents/fresh_eyes_review/tools/web_search.ts +13 -0
- package/templates/subagents/fresh_eyes_review/tools/write_file.ts +13 -0
- package/tsconfig.build.json +24 -0
- package/tsconfig.json +15 -0
|
@@ -0,0 +1,1953 @@
|
|
|
1
|
+
import { type Routine } from "../routines/routine.js";
|
|
2
|
+
import type { PendingActionRow } from "../approvals/types.js";
|
|
3
|
+
import type { ModelReasoning } from "../memory/domain.js";
|
|
4
|
+
import type { PendingUnifiedWake, UnifiedWakeRecord } from "../channels/unified-window.js";
|
|
5
|
+
import type { SessionTailEntry } from "../channels/session-tail.js";
|
|
6
|
+
import type { CredentialGrantAskRow, CredentialGrantAskState, CredentialGrantMode, CredentialGrantRow } from "./credential-grant-rows.js";
|
|
7
|
+
import type { AuditEpochSeal } from "../audit/chain.js";
|
|
8
|
+
/** The canonical table list the sqlite-to-postgres migrator iterates. migrate-operational-test.ts asserts it matches the tables both adapters create, so a CREATE TABLE missing here fails that test; instance_meta is the one deployment-level table and is still copied. */
|
|
9
|
+
export declare const OPERATIONAL_TABLES: readonly ["spend_ledger", "routine", "routine_prompt_revisions", "audit_entry", "spend_limit", "halt", "connector_override", "thread_engagement", "channel_session", "session_tail", "event_dedupe", "unified_wake_target", "thread_ownership", "thread_seat_state", "turn_anchor", "task_result", "slack_attachment", "stored_credential", "credential_intake", "webhook_capture_window", "github_installation", "pr_session_approval", "pending_actions", "domain_skill", "domain_skill_revisions", "domain_model", "usage_events", "instance_meta", "webhook_capture", "identity_link_sets", "identity_linked_ids", "identity_link_challenges", "notice_claim", "model_call_capture", "proactive_address", "memory_proposal", "credential_grant_ask", "credential_grant", "dm_audience", "ingress_delivery"];
|
|
10
|
+
/** Housekeeping ceiling for the shared event_dedupe table: rows older than this are swept on the next write for that org, whatever TTL wrote them. It must stay above the longest caller TTL in the tree (2 h today) or the sweep expires live keys. */
|
|
11
|
+
export declare const EVENT_DEDUPE_MAX_RETENTION_MS: number;
|
|
12
|
+
/** A completed ingress delivery keeps only its content-free dedupe tombstone for one day. Pending
|
|
13
|
+
* rows deliberately have no retention deadline: deleting accepted work because an outage lasted
|
|
14
|
+
* longer than a clock would turn durable acceptance into silent loss. */
|
|
15
|
+
export declare const INGRESS_DELIVERY_TOMBSTONE_RETENTION_MS: number;
|
|
16
|
+
export declare function assertIngressDeliveryRetainUntil(completedAt: string, retainUntil: string): void;
|
|
17
|
+
/** The window CLOSES on reaching this many deliveries; it is not a ring with FIFO eviction. A human quotes delivery numbers back, so the numbering must stay stable between the render and the filter being written. */
|
|
18
|
+
export declare const CAPTURE_MAX_DELIVERIES = 50;
|
|
19
|
+
/**
|
|
20
|
+
* X โ the longest a window may be armed for, whatever the arming caller asks. A window that outlives
|
|
21
|
+
* the sitting it was opened for is indistinguishable from permanent payload storage, which ยง2.6 says
|
|
22
|
+
* this must never become. One hour is long enough to catch a periodic sender and short enough that
|
|
23
|
+
* forgetting to disarm costs nothing.
|
|
24
|
+
*/
|
|
25
|
+
export declare const CAPTURE_MAX_WINDOW_MS: number;
|
|
26
|
+
/**
|
|
27
|
+
* The ABSOLUTE ceiling, independent of every window: any captured row older than this is swept on
|
|
28
|
+
* the next write for that org, whether or not a window is still open and whether or not anyone has
|
|
29
|
+
* read it. This is the bound that holds when the other two are wrong โ an arming path with a bug, a
|
|
30
|
+
* clock that jumped, a window nobody closed. Must stay above {@link CAPTURE_MAX_WINDOW_MS} or rows
|
|
31
|
+
* would expire inside the window that is still filling them.
|
|
32
|
+
*/
|
|
33
|
+
export declare const CAPTURE_MAX_RETENTION_MS: number;
|
|
34
|
+
/**
|
|
35
|
+
* One captured delivery, as stored and as read back.
|
|
36
|
+
*
|
|
37
|
+
* ๐ด `documentJson` IS THE `EventFilterDocument`, NOT THE RAW BODY, and the whole safety argument
|
|
38
|
+
* rests on that being true โ see `webhooks/capture-window.ts`'s header for what that excludes and
|
|
39
|
+
* why the exclusion is structural rather than a redaction pass anyone could forget to run.
|
|
40
|
+
*/
|
|
41
|
+
/** One hook's arm state for the capture window, kept as a row rather than a config field because a window is at most an hour of wall clock. It carries no authority: the hook's identity and read grant are read from the config registry at arm and delivery time, so this row can never become a second place a hook is defined. */
|
|
42
|
+
export interface WebhookCaptureWindowRow {
|
|
43
|
+
/** The DECLARED hook's id โ the same string `webhook_capture.source` holds for that hook's rows
|
|
44
|
+
* (a config delivery emits under `hook.id`), so the window and the deliveries it admitted share
|
|
45
|
+
* one key and cannot drift apart. */
|
|
46
|
+
readonly hookId: string;
|
|
47
|
+
/** ISO-8601, ALREADY CLAMPED to {@link CAPTURE_MAX_WINDOW_MS} by the arming path. */
|
|
48
|
+
readonly captureUntil: string;
|
|
49
|
+
readonly armedBy: string;
|
|
50
|
+
readonly armedAt: string;
|
|
51
|
+
}
|
|
52
|
+
export interface CapturedDeliveryRow {
|
|
53
|
+
/** 1-based ordinal WITHIN the current window โ the number a human says out loud. */
|
|
54
|
+
readonly seq: number;
|
|
55
|
+
/** ISO-8601 receive time (OUR clock, not the sender's `occurredAt`). */
|
|
56
|
+
readonly capturedAt: string;
|
|
57
|
+
/** Serialized `EventFilterDocument`. Opaque to the store. */
|
|
58
|
+
readonly documentJson: string;
|
|
59
|
+
}
|
|
60
|
+
/** One immutable audit record. */
|
|
61
|
+
export interface AuditEntry {
|
|
62
|
+
/** ISO-8601; stamped by appendAudit when the caller omits it. */
|
|
63
|
+
readonly ts: string;
|
|
64
|
+
/** Tenant โ the outermost partition key (Partition.org). */
|
|
65
|
+
readonly org: string;
|
|
66
|
+
readonly platform: string;
|
|
67
|
+
readonly workspace: string;
|
|
68
|
+
/** The surface, when the event is surface-scoped (memory write); omitted otherwise. */
|
|
69
|
+
readonly surface?: string;
|
|
70
|
+
/**
|
|
71
|
+
* The conversation this row's surface names ({@link SurfaceMode}) โ what the anti-doxxing mask
|
|
72
|
+
* reads before `query_analytics` publishes the surface (OPE-1866).
|
|
73
|
+
*
|
|
74
|
+
* ๐ด ABSENT MEANS UNCLASSIFIED, AND THE MASK FAILS CLOSED ON IT โ spend/dm-mask.ts buckets the
|
|
75
|
+
* surface as `(unclassified)` rather than publishing an id it cannot classify.
|
|
76
|
+
*
|
|
77
|
+
* ๐ด ONLY `audit/tool-action.ts` STAMPS IT TODAY, so most audit rows mask. That writer is the
|
|
78
|
+
* per-action tool affordance; the ~35 other modules that call `appendAudit` โ the memory, egress,
|
|
79
|
+
* approvals, connector and per-provider writers โ pass no mode, and their surface-scoped rows
|
|
80
|
+
* therefore report as `(unclassified)` even though many of them do hold a ctx to read one from.
|
|
81
|
+
* That is FAIL-CLOSED but it is a real loss of report fidelity, and it does NOT heal as rows age
|
|
82
|
+
* out: it is a property of the writers, not of the migration. Stamping the rest is a mechanical
|
|
83
|
+
* sweep across several planes and wants its own review (OPE-1940).
|
|
84
|
+
*
|
|
85
|
+
* A row that names no surface, and a row whose binding only GAP-FILLED its mode (OPE-1867), are
|
|
86
|
+
* absent for their own honest reasons and always will be.
|
|
87
|
+
*/
|
|
88
|
+
readonly surfaceMode?: SurfaceMode;
|
|
89
|
+
/** WHO asked โ the acting principal, when known. */
|
|
90
|
+
readonly principalId?: string;
|
|
91
|
+
/** WHAT โ a stable dotted action key, e.g. "memory.write", "egress.policy". */
|
|
92
|
+
readonly action: string;
|
|
93
|
+
readonly detail?: Readonly<Record<string, unknown>>;
|
|
94
|
+
}
|
|
95
|
+
export type AuditInput = Omit<AuditEntry, "ts"> & {
|
|
96
|
+
readonly ts?: string;
|
|
97
|
+
};
|
|
98
|
+
/** One audit row as a READ returns it: the stored record plus its storage `seq` (OPE-1933).
|
|
99
|
+
*
|
|
100
|
+
* ๐ด `seq` IS THE ONLY MONOTONIC ORDER KEY THE LOG HAS. `ts` is wall-clock โ `appendAudit` stamps
|
|
101
|
+
* `new Date()` at append โ so on a box whose clock steps BACKWARD a row written later can carry an
|
|
102
|
+
* EARLIER `ts` than a row written before it. A reader that anchors "everything after this instant"
|
|
103
|
+
* on `ts` then drops the very row it is waiting for, forever and silently. `seq` is the store's
|
|
104
|
+
* own insert order (sqlite AUTOINCREMENT / postgres IDENTITY) and never moves backwards, so a
|
|
105
|
+
* reader anchors on a `seq` CURSOR instead and uses `ts` only as a coarse query window.
|
|
106
|
+
*
|
|
107
|
+
* It is a READ shape only. {@link AuditEntry} stays the write shape, because a caller appending a
|
|
108
|
+
* row cannot know the `seq` the store has not allocated yet. */
|
|
109
|
+
export interface AuditReadRow extends AuditEntry {
|
|
110
|
+
/** Storage sequence โ sqlite AUTOINCREMENT / postgres IDENTITY; establishes order, NOT hashed. */
|
|
111
|
+
readonly seq: number;
|
|
112
|
+
}
|
|
113
|
+
/** One audit row as the hash-chain verifier sees it (OPE-52, audit-wedge WS-6c): the hashed
|
|
114
|
+
* content, its storage `seq` (the order key + stable locator), and its stored `prevSha` โ
|
|
115
|
+
* the sha256 of the immediately preceding row for the SAME org (null on the org's genesis
|
|
116
|
+
* row). The chain logic lives in agent/audit/chain.ts (auditRowSha/findChainBreak). */
|
|
117
|
+
export interface AuditChainRow {
|
|
118
|
+
/** Storage sequence โ sqlite AUTOINCREMENT / postgres IDENTITY; establishes order, NOT hashed. */
|
|
119
|
+
readonly seq: number;
|
|
120
|
+
readonly ts: string;
|
|
121
|
+
readonly org: string;
|
|
122
|
+
readonly platform: string;
|
|
123
|
+
readonly workspace: string;
|
|
124
|
+
readonly surface?: string;
|
|
125
|
+
/** The conversation the surface names โ see {@link AuditEntry.surfaceMode}. Hashed only when
|
|
126
|
+
* present, so a pre-OPE-1866 row's sha is unchanged (agent/audit/chain.ts). */
|
|
127
|
+
readonly surfaceMode?: SurfaceMode;
|
|
128
|
+
readonly principalId?: string;
|
|
129
|
+
readonly action: string;
|
|
130
|
+
readonly detail?: Readonly<Record<string, unknown>>;
|
|
131
|
+
/** sha256 of the preceding row (same org, by seq); null on the org's first (genesis) row. */
|
|
132
|
+
readonly prevSha: string | null;
|
|
133
|
+
}
|
|
134
|
+
/** What a successful epoch seal WROTE (OPE-1636): the seal itself, and the `seq` the marker row
|
|
135
|
+
* landed on โ the value `--accept-epoch` takes. The seq is RETURNED rather than re-read, because
|
|
136
|
+
* the only way to learn it afterwards is to read the chain again OUTSIDE the critical section,
|
|
137
|
+
* where a concurrent append can already be the last row and `.at(-1)` names the wrong one. */
|
|
138
|
+
export interface AuditChainEpochWritten {
|
|
139
|
+
readonly seal: AuditEpochSeal;
|
|
140
|
+
readonly markerSeq: number;
|
|
141
|
+
}
|
|
142
|
+
export interface AuditFilter {
|
|
143
|
+
/** ๐ด REQUIRED, and the audit log's tenancy boundary (OPE-1812). Every other field NARROWS the
|
|
144
|
+
* read; this one PARTITIONS it. It was optional, and an omitted org widened the read to every
|
|
145
|
+
* org's rows, because both adapters build the `WHERE` from whatever the caller passes. The
|
|
146
|
+
* store now refuses such a read โ see {@link auditReadOrg}. A caller that wants every org's
|
|
147
|
+
* rows names the orgs (`listAuditOrgs()`) and reads each one. */
|
|
148
|
+
readonly org: string;
|
|
149
|
+
readonly platform?: string;
|
|
150
|
+
readonly workspace?: string;
|
|
151
|
+
readonly surface?: string;
|
|
152
|
+
readonly action?: string;
|
|
153
|
+
readonly principalId?: string;
|
|
154
|
+
/** ISO-8601 lower bound (inclusive). */
|
|
155
|
+
readonly since?: string;
|
|
156
|
+
/**
|
|
157
|
+
* ISO-8601 UPPER bound (inclusive) โ the other half of a bounded window (OPE-1886).
|
|
158
|
+
*
|
|
159
|
+
* ๐ด WITHOUT IT A PAST WINDOW IS UNREADABLE ONCE NEWER ROWS EXIST. The read sorts newest-first
|
|
160
|
+
* and then applies `limit`, so a caller asking about 19:21โ19:56 got the newest `limit` rows of
|
|
161
|
+
* everything since 19:21. On ship #214 the board wrote well over 1000 rows after the six legs
|
|
162
|
+
* under investigation, and every read for those legs' wake rows came back holding only the
|
|
163
|
+
* newest rows โ an absence that proved nothing. An upper bound makes the window itself the
|
|
164
|
+
* page, so its rows are readable at any later volume.
|
|
165
|
+
*
|
|
166
|
+
* Inclusive, like `since`: `until` is the same kind of instant, and one bound that includes its
|
|
167
|
+
* endpoint beside one that excludes it is how an off-by-one row gets attributed to the wrong
|
|
168
|
+
* window. A caller paging backwards therefore re-reads the rows stamped exactly at `until` and
|
|
169
|
+
* must de-duplicate them.
|
|
170
|
+
*/
|
|
171
|
+
readonly until?: string;
|
|
172
|
+
/** Cap the result (after sort); newest-first. */
|
|
173
|
+
readonly limit?: number;
|
|
174
|
+
}
|
|
175
|
+
/**
|
|
176
|
+
* The audit read's org, or a refusal. ONE definition, called by both adapters before either builds
|
|
177
|
+
* a `WHERE` (OPE-1812) โ a bound that lives in two hand-copied query builders drifts.
|
|
178
|
+
*
|
|
179
|
+
* ๐ด IT REFUSES, IT NEVER WIDENS. An audit read whose org is missing or empty used to return every
|
|
180
|
+
* org's rows: the filter was optional, so `WHERE` came out empty and the query read the whole log.
|
|
181
|
+
* The type now makes that a compile error, and this makes it a throw โ the type alone stops nothing
|
|
182
|
+
* at a boundary the control plane reaches with parsed JSON, and a widened audit read is the one
|
|
183
|
+
* failure here that answers with another tenant's evidence instead of an error.
|
|
184
|
+
*
|
|
185
|
+
* The empty string is refused with the absent case because `org_id = ''` matches no row any caller
|
|
186
|
+
* wants: the deployment org is a non-empty name, so an empty org is a caller that lost its org, and
|
|
187
|
+
* answering it with zero rows would read as "this tenant did nothing".
|
|
188
|
+
*/
|
|
189
|
+
export declare function auditReadOrg(filter: AuditFilter): string;
|
|
190
|
+
export type CostSource = "measured" | "derived";
|
|
191
|
+
/**
|
|
192
|
+
* WHAT KIND OF CONVERSATION a row was written in (OPE-1862) โ the one fact the anti-doxxing mask
|
|
193
|
+
* reads, on `spend_ledger` and on `usage_events` alike.
|
|
194
|
+
*
|
|
195
|
+
* ๐ด IT IS NOT `kind`, AND THE TWO MAY NEVER BE CONFLATED. `usage_events.kind` is the TURN-ORIGIN
|
|
196
|
+
* tag (hooks/spend.ts `turnKind`): a routine fire, a supervisor turn and a delegated subagent turn
|
|
197
|
+
* each win that tag BEFORE the DM test runs, so a routine fired inside a DM is stamped
|
|
198
|
+
* `kind: "routine"` and the tag can never answer "was this a DM". This column answers exactly that
|
|
199
|
+
* and nothing else. It is written from the turn's own binding (`bindFrom(ctx).mode`), so every
|
|
200
|
+
* platform answers for its own surfaces and no reader has to test the SHAPE of a surface id.
|
|
201
|
+
*
|
|
202
|
+
* `''` (ledger) or absent (usage_events) means UNSTAMPED โ a row written before this column, or by
|
|
203
|
+
* a writer with no binding. A reader may not guess: spend/reporting.ts masks such a row rather than
|
|
204
|
+
* reveal a surface id it cannot classify.
|
|
205
|
+
*/
|
|
206
|
+
export type SurfaceMode = "dm" | "mpim" | "channel";
|
|
207
|
+
/** The stored `surface_mode` as a {@link SurfaceMode}, or undefined for every other value โ
|
|
208
|
+
* `''`, NULL, and anything an older or foreign writer left. ONE parser for both adapters, so a
|
|
209
|
+
* row cannot mean one thing on SQLite and another on Postgres. */
|
|
210
|
+
export declare function asSurfaceMode(value: unknown): SurfaceMode | undefined;
|
|
211
|
+
/** The `surfaceMode` half of an audit row rebuilt from storage โ spread into the row object, and
|
|
212
|
+
* EMPTY unless the stored value is inside the enum (OPE-1866). One helper for both adapters and
|
|
213
|
+
* for all three audit reads, because the hash-chain link recomputes a predecessor's sha from this
|
|
214
|
+
* same reading: a column that read one way for the digest and another for the report would break
|
|
215
|
+
* the chain on a row nobody touched. */
|
|
216
|
+
export declare function auditSurfaceMode(value: unknown): {
|
|
217
|
+
surfaceMode?: SurfaceMode;
|
|
218
|
+
};
|
|
219
|
+
/** The attribution dimensions of one ledger row. `''` means unattributed โ NOT NULL because
|
|
220
|
+
* Postgres PK columns cannot be NULL, and a nullable unique index would silently break the
|
|
221
|
+
* upsert-and-add dedup (two NULL-keyed writes would insert two rows instead of summing). */
|
|
222
|
+
export interface SpendLedgerKey {
|
|
223
|
+
readonly surfaceKey: string;
|
|
224
|
+
/** The acting principal, or `''` when the turn had none. */
|
|
225
|
+
readonly principalId: string;
|
|
226
|
+
/** The routine this spend belongs to (OPE-145 grain), or `''` for a non-routine turn. */
|
|
227
|
+
readonly routineId: string;
|
|
228
|
+
/** The model priced against, or `''` when there is none (sandbox runtime), or the explicit
|
|
229
|
+
* UNKNOWN_MODEL sentinel when a token-bearing model call reached the ledger with no model
|
|
230
|
+
* stamp at all (spend/spend.ts โ deliberately NOT `''`, which would blend an unattributed
|
|
231
|
+
* model call into the sandbox bucket). */
|
|
232
|
+
readonly model: string;
|
|
233
|
+
/** Calendar month, "YYYY-MM". */
|
|
234
|
+
readonly period: string;
|
|
235
|
+
/** WHICH cost answer this row's calls carried (OPE-369) โ part of the key so the row is
|
|
236
|
+
* homogeneous; see the {@link CostSource} section above. */
|
|
237
|
+
readonly costSource: CostSource;
|
|
238
|
+
}
|
|
239
|
+
export interface SpendLedgerRow extends SpendLedgerKey {
|
|
240
|
+
readonly org: string;
|
|
241
|
+
/** The conversation this row's spend happened in ({@link SurfaceMode}), or `''` when nothing
|
|
242
|
+
* stamped it. DELIBERATELY NOT part of {@link SpendLedgerKey}: a surface is a DM or it is not,
|
|
243
|
+
* for as long as it exists, so the mode is a property of `surface_key` and adding it to the
|
|
244
|
+
* primary key would split one surface's month across two rows for no gain โ and would force a
|
|
245
|
+
* table drop on both engines, which the additive column does not. */
|
|
246
|
+
readonly surfaceMode: string;
|
|
247
|
+
readonly inputTokens: number;
|
|
248
|
+
readonly outputTokens: number;
|
|
249
|
+
readonly cacheReadTokens: number;
|
|
250
|
+
readonly cacheWriteTokens: number;
|
|
251
|
+
/** REASONING tokens summed over this bucket's calls (OPE-1611) โ attribution only, never
|
|
252
|
+
* billed: no rate table names a reasoning rate. 0 where no call reported the dimension, which
|
|
253
|
+
* a monthly SUM cannot tell apart from "every call reported zero" โ the per-call row
|
|
254
|
+
* ({@link UsageEventEntry.reasoningTokens}) is where that distinction lives. */
|
|
255
|
+
readonly reasoningTokens: number;
|
|
256
|
+
/** Millionths of a dollar (integer โ never a float for money), DERIVED at write from this
|
|
257
|
+
* deployment's rate table. Always populated; the ONE figure every cap denomination sums. */
|
|
258
|
+
readonly usdMicros: number;
|
|
259
|
+
/** Millionths of a dollar the GATEWAY measured for these same calls (OPE-369). 0 on a
|
|
260
|
+
* `derived` row โ nothing measured it. */
|
|
261
|
+
readonly usdMicrosMeasured: number;
|
|
262
|
+
readonly calls: number;
|
|
263
|
+
}
|
|
264
|
+
/** One upsert-and-add write. Omitted dimensions default to `''` (unattributed); omitted
|
|
265
|
+
* amounts to 0. Each write also increments the row's `calls` by 1. */
|
|
266
|
+
export interface SpendLedgerWrite {
|
|
267
|
+
readonly surfaceKey: string;
|
|
268
|
+
readonly principalId?: string;
|
|
269
|
+
readonly routineId?: string;
|
|
270
|
+
readonly model?: string;
|
|
271
|
+
/** The conversation this increment happened in ({@link SurfaceMode}) โ what the report mask
|
|
272
|
+
* reads. Omitted โ the row keeps whatever mode it already carries, and a NEW row is stamped
|
|
273
|
+
* `''` (unstamped), which every report masks. */
|
|
274
|
+
readonly surfaceMode?: SurfaceMode;
|
|
275
|
+
readonly period: string;
|
|
276
|
+
readonly inputTokens?: number;
|
|
277
|
+
readonly outputTokens?: number;
|
|
278
|
+
readonly cacheReadTokens?: number;
|
|
279
|
+
readonly cacheWriteTokens?: number;
|
|
280
|
+
/** Reasoning tokens for this increment (OPE-1611); omitted โ adds 0, exactly like the cache
|
|
281
|
+
* dimensions. Attribution only โ it never enters `usdMicros`. */
|
|
282
|
+
readonly reasoningTokens?: number;
|
|
283
|
+
readonly usdMicros?: number;
|
|
284
|
+
/** Gateway-measured micros for this increment; omitted (or 0) means nothing measured it.
|
|
285
|
+
* Supplying it does NOT change `usdMicros` โ the two are stored side by side. */
|
|
286
|
+
readonly usdMicrosMeasured?: number;
|
|
287
|
+
/** Defaults to "derived" โ a writer that has a measured figure must say so explicitly, so a
|
|
288
|
+
* row can never claim measurement it didn't get. */
|
|
289
|
+
readonly costSource?: CostSource;
|
|
290
|
+
}
|
|
291
|
+
/** Filter for the two ledger reads โ the SUM read ({@link OperationalStore.spendTotals}) and the
|
|
292
|
+
* LIST read ({@link OperationalStore.listSpendLedger}). All optional; org (each method's own arg)
|
|
293
|
+
* always narrows. `surfaceKey` is an exact match; `surfaceKeyPrefix` a LIKE prefix (the workspace
|
|
294
|
+
* rollup). Every conjunct ANDs, and both backends assemble them from one definition
|
|
295
|
+
* ({@link spendLedgerConjuncts}), so the two cannot disagree about what a filter means. */
|
|
296
|
+
export interface SpendLedgerFilter {
|
|
297
|
+
readonly surfaceKey?: string;
|
|
298
|
+
readonly surfaceKeyPrefix?: string;
|
|
299
|
+
readonly principalId?: string;
|
|
300
|
+
readonly routineId?: string;
|
|
301
|
+
readonly period?: string;
|
|
302
|
+
/** Inclusive lower bound on period, and the bound is a month string ("YYYY-MM"), never an ISO instant: a fixed-width zero-padded month compares chronologically. An exact period and this range both apply and AND together. */
|
|
303
|
+
readonly periodFrom?: string;
|
|
304
|
+
/** INCLUSIVE upper bound on `period` โ the "until" half. See {@link periodFrom} for the
|
|
305
|
+
* "YYYY-MM" grain the bound is written in. */
|
|
306
|
+
readonly periodTo?: string;
|
|
307
|
+
/** Narrow to rows that took one cost path (OPE-369) โ the drift read's filter. Absent (the
|
|
308
|
+
* normal case, and every cap's case) sums BOTH kinds, which is why enforcement is unchanged. */
|
|
309
|
+
readonly costSource?: CostSource;
|
|
310
|
+
}
|
|
311
|
+
/** Summed amounts over a keyed prefix of the ledger โ what a cap compares against. */
|
|
312
|
+
export interface SpendTotals {
|
|
313
|
+
readonly inputTokens: number;
|
|
314
|
+
readonly outputTokens: number;
|
|
315
|
+
readonly cacheReadTokens: number;
|
|
316
|
+
readonly cacheWriteTokens: number;
|
|
317
|
+
/** Reasoning tokens summed over the matched rows (OPE-1611) โ attribution, never a cap
|
|
318
|
+
* denomination (`billableTokens` stays input + output). */
|
|
319
|
+
readonly reasoningTokens: number;
|
|
320
|
+
/** The DERIVED sum โ what every cap compares against, measured rows included (their derived
|
|
321
|
+
* shadow is stored too, precisely so this sum never develops a hole). */
|
|
322
|
+
readonly usdMicros: number;
|
|
323
|
+
/** The MEASURED sum over the same rows (0 where nothing was measured). */
|
|
324
|
+
readonly usdMicrosMeasured: number;
|
|
325
|
+
readonly calls: number;
|
|
326
|
+
}
|
|
327
|
+
/** Escapes the LIKE metacharacters so a literal ref prefix matches itself and cannot widen a credential enumeration. The escape character is a backslash, declared by the caller's ESCAPE clause, and it is escaped first so a prefix ending in one cannot consume the next character. */
|
|
328
|
+
export declare function likePrefixPattern(prefix: string): string;
|
|
329
|
+
/** The shared WHERE assembly for BOTH spend reads โ the SUM read and the LIST read โ as ONE
|
|
330
|
+
* definition (like assertSpendLimitAmount) so the two backends' filter semantics cannot drift.
|
|
331
|
+
* `?` placeholders; the Postgres adapter renders them to $n positionally. */
|
|
332
|
+
export declare function spendLedgerConjuncts(filter: SpendLedgerFilter): {
|
|
333
|
+
conjuncts: string[];
|
|
334
|
+
params: (string | number)[];
|
|
335
|
+
};
|
|
336
|
+
export interface OverrideMeta {
|
|
337
|
+
/** Epoch ms after which the override is ignored (consult falls back to config). Spend only. */
|
|
338
|
+
readonly expiresAt?: number;
|
|
339
|
+
/** Free-text why, surfaced in the drift view. */
|
|
340
|
+
readonly reason?: string;
|
|
341
|
+
readonly setBy?: string;
|
|
342
|
+
}
|
|
343
|
+
/** One override row per (org, scopeKey, level); setting a new one replaces the previous at that scope and level wholesale. A user-level row overlays the per-user caps only and never the place ladder, and both domain-level and user-level spend-cap approvals are org-admin only. */
|
|
344
|
+
export declare const CAP_LEVELS: readonly ["surface", "workspace", "domain", "user"];
|
|
345
|
+
/** The runtime levels array lives in this leaf module because the two propose tools need the levels as values and cannot import them from each other: a const crossing the set_spend_limit to card-venue cycle is a TDZ ReferenceError at module eval. The type is derived from the array, so the two are provably the same set. */
|
|
346
|
+
export type CapLevel = (typeof CAP_LEVELS)[number];
|
|
347
|
+
export interface SpendLimitRow extends OverrideMeta {
|
|
348
|
+
readonly org: string;
|
|
349
|
+
readonly scopeKey: string;
|
|
350
|
+
readonly level: CapLevel;
|
|
351
|
+
readonly monthlyTokens?: number;
|
|
352
|
+
readonly monthlyUsd?: number;
|
|
353
|
+
}
|
|
354
|
+
/** The amount(s) a spend-limit override sets โ at least one component required. */
|
|
355
|
+
export interface SpendLimitAmount {
|
|
356
|
+
readonly monthlyTokens?: number;
|
|
357
|
+
readonly monthlyUsd?: number;
|
|
358
|
+
}
|
|
359
|
+
/** Exact row facts used by an owner-safe clear. Every optional component is compared as
|
|
360
|
+
* `undefined`/NULL when absent; this is an equality guard, not a partial filter. */
|
|
361
|
+
export interface SpendLimitMatch extends SpendLimitAmount, OverrideMeta {
|
|
362
|
+
}
|
|
363
|
+
/** Exact ownership facts used by an owner-safe halt clear. */
|
|
364
|
+
export interface HaltMatch {
|
|
365
|
+
readonly setAt: string;
|
|
366
|
+
readonly setBy?: string;
|
|
367
|
+
/** Host-minted wake that owns a chat-set halt; absent on operator/legacy rows. */
|
|
368
|
+
readonly setRef?: string;
|
|
369
|
+
}
|
|
370
|
+
/** Shared write-side guard for setSpendLimit (both adapters call it): an override with
|
|
371
|
+
* no component, or a non-positive/non-finite one, is a caller bug โ fail loud at the
|
|
372
|
+
* ONE mutation path rather than storing a row the overlay can't interpret. Negative
|
|
373
|
+
* values are additionally load-bearing to reject: the SQLite adapter encodes "no token
|
|
374
|
+
* component" as -1 in the legacy NOT NULL column (see sqlite.ts), so a genuine
|
|
375
|
+
* negative limit must never reach storage. */
|
|
376
|
+
export declare function assertSpendLimitAmount(limit: SpendLimitAmount): void;
|
|
377
|
+
/** A halt points either at the whole org or at one (level, scopeKey) address drawn from the spend overlay's own level vocabulary. orgWide is a marker field, never a sentinel scope key, and the union is discriminated so an org-wide row has no level or scopeKey to consult. */
|
|
378
|
+
export type HaltAddress = {
|
|
379
|
+
readonly orgWide: true;
|
|
380
|
+
} | {
|
|
381
|
+
readonly orgWide: false;
|
|
382
|
+
readonly level: CapLevel;
|
|
383
|
+
readonly scopeKey: string;
|
|
384
|
+
};
|
|
385
|
+
/** One stored halt address and its state. `active: false` is a CLEARED row, kept so the trail can
|
|
386
|
+
* answer who halted and who resumed without a second table. */
|
|
387
|
+
export interface HaltRow {
|
|
388
|
+
readonly org: string;
|
|
389
|
+
readonly address: HaltAddress;
|
|
390
|
+
readonly active: boolean;
|
|
391
|
+
/** ISO-8601 of the last SET. */
|
|
392
|
+
readonly setAt: string;
|
|
393
|
+
readonly setBy?: string;
|
|
394
|
+
/** Host-minted wake that owns this set, when the chat door supplied one. */
|
|
395
|
+
readonly setRef?: string;
|
|
396
|
+
/** ISO-8601 of the last CLEAR, absent on a row that was never cleared. */
|
|
397
|
+
readonly clearedAt?: string;
|
|
398
|
+
readonly clearedBy?: string;
|
|
399
|
+
}
|
|
400
|
+
/** The three storage columns an address occupies, shared by both adapters so their encodings cannot
|
|
401
|
+
* drift. On an ORG-WIDE row `level` and `scopeKey` are EMPTY FILLER, never an address: the
|
|
402
|
+
* `orgWide` column is what every match branches on first, so no domain named `""` โ a shape
|
|
403
|
+
* `access/scope-key.ts` already treats as unusable โ can be mistaken for the org-wide row. */
|
|
404
|
+
export declare function haltAddressColumns(address: HaltAddress): {
|
|
405
|
+
level: string;
|
|
406
|
+
scopeKey: string;
|
|
407
|
+
orgWide: boolean;
|
|
408
|
+
};
|
|
409
|
+
/** The inverse of {@link haltAddressColumns}. An `orgWide` row ignores the two filler columns. */
|
|
410
|
+
export declare function haltAddressFromColumns(level: string, scopeKey: string, orgWide: boolean): HaltAddress;
|
|
411
|
+
/** Shared write-side guard for setHalt/clearHalt (both adapters call it): an ADDRESSED row must
|
|
412
|
+
* name a real level and a non-blank scope key. Fail loud at the ONE mutation path rather than
|
|
413
|
+
* storing a row whose address collides with the org-wide row's filler columns. */
|
|
414
|
+
export declare function assertHaltAddress(address: HaltAddress): void;
|
|
415
|
+
/** A connector grant/revoke override โ admin-set at runtime, overlaying bundle grants. */
|
|
416
|
+
export interface ConnectorOverrideRow {
|
|
417
|
+
readonly connector: string;
|
|
418
|
+
readonly granted: boolean;
|
|
419
|
+
/** Why + who, for the drift view. (No expiresAt โ auto-expiry would re-open access.) */
|
|
420
|
+
readonly reason?: string;
|
|
421
|
+
readonly setBy?: string;
|
|
422
|
+
}
|
|
423
|
+
/** A connector override with its scope โ the org-wide drift-view shape. */
|
|
424
|
+
export interface ScopedConnectorOverrideRow extends ConnectorOverrideRow {
|
|
425
|
+
readonly scopeKey: string;
|
|
426
|
+
}
|
|
427
|
+
export interface DomainModelRow {
|
|
428
|
+
readonly org: string;
|
|
429
|
+
readonly domain: string;
|
|
430
|
+
/** The picked model id, or absent for a reasoning-only pick. Validated against the
|
|
431
|
+
* envelope's allow-list/provider-deny at SET time (control/writes.ts); the envelope
|
|
432
|
+
* clamps again at resolve time as a backstop (defence in depth). */
|
|
433
|
+
readonly modelId?: string;
|
|
434
|
+
/** The picked reasoning effort, or absent for a modelId-only pick. Validated at SET
|
|
435
|
+
* time against the domain's effective reasoningCeiling; clamped again at resolve time. */
|
|
436
|
+
readonly reasoning?: ModelReasoning;
|
|
437
|
+
readonly setBy?: string;
|
|
438
|
+
/** ISO-8601 of the last set. */
|
|
439
|
+
readonly updatedAt: string;
|
|
440
|
+
}
|
|
441
|
+
/** At-least-one-component guard for a domain model pick (mirrors assertSpendLimitAmount's
|
|
442
|
+
* role for spend): a row with neither field, or a blank modelId, is a caller bug โ fail
|
|
443
|
+
* loud at the ONE mutation path (control/writes.ts set_domain_model) rather than storing
|
|
444
|
+
* a row the resolver can't interpret. */
|
|
445
|
+
export declare function assertDomainModelPick(pick: {
|
|
446
|
+
readonly modelId?: string;
|
|
447
|
+
readonly reasoning?: ModelReasoning;
|
|
448
|
+
}): void;
|
|
449
|
+
export interface DomainSkillRow {
|
|
450
|
+
readonly org: string;
|
|
451
|
+
readonly domain: string;
|
|
452
|
+
readonly name: string;
|
|
453
|
+
readonly content: string;
|
|
454
|
+
/** The authoring principal, when known (audit/provenance only โ no ownership gate). */
|
|
455
|
+
readonly updatedBy?: string;
|
|
456
|
+
/** ISO-8601 of the last create/update. */
|
|
457
|
+
readonly updatedAt: string;
|
|
458
|
+
}
|
|
459
|
+
export interface DomainSkillRevisionRow {
|
|
460
|
+
/** Monotonic per-database insertion order โ the ONLY total order (two revisions can share
|
|
461
|
+
* `recordedAt` to the second). Ascending = oldest first. */
|
|
462
|
+
readonly seq: number;
|
|
463
|
+
readonly org: string;
|
|
464
|
+
readonly domain: string;
|
|
465
|
+
readonly name: string;
|
|
466
|
+
/** The exact body written to `domain_skill` โ byte-for-byte what the card displayed. */
|
|
467
|
+
readonly content: string;
|
|
468
|
+
/** The AUTHORING principal (the row's `updatedBy`), when known. */
|
|
469
|
+
readonly authoredBy?: string;
|
|
470
|
+
/** The principal whose click ARMED this body โ the approver, when the write came through an
|
|
471
|
+
* approval. Absent for a write outside the card path (a test, a migration, a seed). */
|
|
472
|
+
readonly armedBy?: string;
|
|
473
|
+
/** `pending_actions.id` of the card that armed it โ the join back to the frozen args and the
|
|
474
|
+
* `approval.approved` audit row. Absent for the same reason `armedBy` can be. */
|
|
475
|
+
readonly approvalId?: string;
|
|
476
|
+
/** ISO-8601 โ the same stamp written to the live row's `updatedAt`. */
|
|
477
|
+
readonly recordedAt: string;
|
|
478
|
+
}
|
|
479
|
+
/** Who armed a `putDomainSkill` write, for the revision row. Optional at the port because the
|
|
480
|
+
* store must never refuse to record a revision just because provenance is thin โ a body with
|
|
481
|
+
* no known approver is still a body that was written, and losing it is the failure this table
|
|
482
|
+
* exists to prevent. The approval path (approvals/skill-create.ts) always supplies both. */
|
|
483
|
+
export interface DomainSkillProvenance {
|
|
484
|
+
readonly armedBy?: string;
|
|
485
|
+
readonly approvalId?: string;
|
|
486
|
+
}
|
|
487
|
+
export interface RoutinePromptRevisionRow {
|
|
488
|
+
/** Monotonic per-database insertion order โ the ONLY total order. Ascending = oldest first.
|
|
489
|
+
* (The genesis row carries the routine's `createdAt`, so `recordedAt` is NOT monotonic.) */
|
|
490
|
+
readonly seq: number;
|
|
491
|
+
readonly org: string;
|
|
492
|
+
readonly surfaceKey: string;
|
|
493
|
+
/** `Routine.id` โ the routine this text ran under. The row it points at may since be gone. */
|
|
494
|
+
readonly routineId: string;
|
|
495
|
+
/** The exact prompt, byte-for-byte as the routine held it. */
|
|
496
|
+
readonly prompt: string;
|
|
497
|
+
/** The `promptGeneration` this text ran under โ the join to `routinePermissionKey()`, so an auditor
|
|
498
|
+
* reading a standing grant in the audit log can recover the instruction it covered. */
|
|
499
|
+
readonly generation?: number;
|
|
500
|
+
/** Who authored this text: the routine's `createdBy` for the genesis row, the edit's
|
|
501
|
+
* `requestedBy` for every later one. Absent when neither was known. */
|
|
502
|
+
readonly authoredBy?: string;
|
|
503
|
+
/** The principal whose click ARMED this text. Absent on the genesis row (the store knows who
|
|
504
|
+
* created the routine, not who clicked its card) and on any write outside the card path. */
|
|
505
|
+
readonly armedBy?: string;
|
|
506
|
+
/** `pending_actions.id` of the card that armed it โ the join back to the frozen args (which
|
|
507
|
+
* carry BOTH prompts verbatim) and the `approval.approved` audit row. */
|
|
508
|
+
readonly approvalId?: string;
|
|
509
|
+
/** ISO-8601: when this text was recorded โ the routine's `createdAt` on the genesis row, the
|
|
510
|
+
* instant of the write for every later one. */
|
|
511
|
+
readonly recordedAt: string;
|
|
512
|
+
}
|
|
513
|
+
/** Who armed a prompt-replacing `updateRoutine`, for the revision row. Every field is optional at
|
|
514
|
+
* the port for the same reason {@link DomainSkillProvenance}'s are: the store must never refuse
|
|
515
|
+
* to record a superseded prompt because provenance is thin. The approval path
|
|
516
|
+
* (approvals/routine-lifecycle.ts) supplies all three. */
|
|
517
|
+
export interface RoutinePromptProvenance {
|
|
518
|
+
/** The principal who ASKED for the edit โ recorded as the new text's author. */
|
|
519
|
+
readonly authoredBy?: string;
|
|
520
|
+
readonly armedBy?: string;
|
|
521
|
+
/** `pending_actions.id` of the card that armed it. */
|
|
522
|
+
readonly approvalId?: string;
|
|
523
|
+
}
|
|
524
|
+
/** One row an adapter is to append to `routine_prompt_revisions`. The identity (`org`,
|
|
525
|
+
* `surfaceKey`, `routineId`) is the adapter's โ it already has it โ so this carries only what
|
|
526
|
+
* varies per row. */
|
|
527
|
+
export interface RoutinePromptRevisionWrite {
|
|
528
|
+
readonly prompt: string;
|
|
529
|
+
readonly generation: number;
|
|
530
|
+
readonly authoredBy?: string;
|
|
531
|
+
readonly armedBy?: string;
|
|
532
|
+
readonly approvalId?: string;
|
|
533
|
+
readonly recordedAt: string;
|
|
534
|
+
}
|
|
535
|
+
/** Pure, and shared by both backends so the two cannot drift on the judgement rather than the dialect. It emits a genesis row for the text being destroyed only when the log is empty, attributed from the routine's own createdBy and createdAt, never from the edit that is replacing it. */
|
|
536
|
+
export declare function routinePromptRevisionWrites(input: {
|
|
537
|
+
readonly existing: Routine;
|
|
538
|
+
readonly updated: Routine;
|
|
539
|
+
readonly provenance?: RoutinePromptProvenance;
|
|
540
|
+
/** Does the log already hold a row for this routine? Only false on its first edit. */
|
|
541
|
+
readonly hasPriorRevisions: boolean;
|
|
542
|
+
readonly nowIso: string;
|
|
543
|
+
}): RoutinePromptRevisionWrite[];
|
|
544
|
+
/** The top of the observable delegation-depth range: 2 means two or more hops from the root. eve names the immediate parent and denormalises the root but publishes no hop counter, so only depths 0 and 1 are exact. */
|
|
545
|
+
export declare const MAX_OBSERVABLE_DELEGATION_DEPTH = 2;
|
|
546
|
+
export interface UsageEventEntry {
|
|
547
|
+
/** Tenant โ the outermost partition key, same convention as every other row here. */
|
|
548
|
+
readonly org: string;
|
|
549
|
+
/** `platform/workspace/surface` โ this event's surface (memory/partition.ts). */
|
|
550
|
+
readonly surfaceKey: string;
|
|
551
|
+
/** The session this event belongs to โ the per-conversation cost key. */
|
|
552
|
+
readonly sessionId: string;
|
|
553
|
+
/** The acting principal (bindFrom(ctx).principalId), when the turn had one. */
|
|
554
|
+
readonly principalId?: string;
|
|
555
|
+
/** ISO-8601; stamped by appendUsageEvent when the caller omits it. */
|
|
556
|
+
readonly ts: string;
|
|
557
|
+
/** Best-effort turn-origin tag: "dm" | "channel" | "routine" | "sandbox" | ...
|
|
558
|
+
* free-form (new sources can add their own); absent when undeterminable.
|
|
559
|
+
* ๐ด IT DOES NOT ANSWER "was this a DM" โ {@link UsageEventEntry.surfaceMode} does. A routine,
|
|
560
|
+
* supervisor or subagent turn wins this tag before the DM test runs (hooks/spend.ts). */
|
|
561
|
+
readonly kind?: string;
|
|
562
|
+
/** The conversation this event happened in ({@link SurfaceMode}) โ the fact the report mask
|
|
563
|
+
* reads. Absent on a row written before the column, or by a writer with no binding; a report
|
|
564
|
+
* masks such a row rather than guess. */
|
|
565
|
+
readonly surfaceMode?: SurfaceMode;
|
|
566
|
+
/**
|
|
567
|
+
* WHICH routine this event's turn belongs to (OPE-145) โ present exactly when `kind === "routine"`,
|
|
568
|
+
* absent otherwise. `kind` alone said only THAT a routine ran; with no id, per-routine cost was
|
|
569
|
+
* unanswerable and a per-routine budget had nothing to key on. Read off the dispatcher's
|
|
570
|
+
* ROUTINE_MARKER in the fired session's auth attributes (hooks/spend.ts) โ the same seam the
|
|
571
|
+
* outcome hook reads, so it is available for the whole session lifetime, subagents included.
|
|
572
|
+
*/
|
|
573
|
+
readonly routineId?: string;
|
|
574
|
+
readonly inputTokens: number;
|
|
575
|
+
readonly outputTokens: number;
|
|
576
|
+
readonly cacheReadTokens: number;
|
|
577
|
+
readonly cacheWriteTokens: number;
|
|
578
|
+
/** True means the call's source published a cache figure, so a 0 beside it is real; absent means the question was never asked. It does NOT mean the figure is informative: the Vercel AI Gateway applies the cache discount without populating the token split, so a zero cache count is never evidence that caching did not happen. */
|
|
579
|
+
readonly cacheTokensReported?: boolean;
|
|
580
|
+
/**
|
|
581
|
+
* REASONING tokens for this one call (OPE-1611). ABSENT = the source did not report the
|
|
582
|
+
* dimension; a number (0 included) = it did. See {@link import("../spend/spend.js").Usage} for
|
|
583
|
+
* why a turn step reports nothing here today, and why this is never priced.
|
|
584
|
+
*/
|
|
585
|
+
readonly reasoningTokens?: number;
|
|
586
|
+
/** The model id, when the emitting source can name one (rarely โ see hooks/spend.ts;
|
|
587
|
+
* eve's step.completed carries no model field today), or the UNKNOWN_MODEL sentinel when a
|
|
588
|
+
* token-bearing model call could not be attributed to one (spend/spend.ts). */
|
|
589
|
+
readonly model?: string;
|
|
590
|
+
/** Millionths of a dollar the gateway measured for this call; absent on a direct-provider deployment and on non-model rows. There is deliberately no derived twin here โ derived cost is computed at read time from the model and tokens, so a price-table fix corrects history, while a measured figure can be recomputed from nothing. */
|
|
591
|
+
readonly usdMicrosMeasured?: number;
|
|
592
|
+
/** WHICH cost answer this call carried (OPE-369): "measured" iff {@link usdMicrosMeasured} is
|
|
593
|
+
* present. Absent on pre-migration rows and on non-model rows. */
|
|
594
|
+
readonly costSource?: CostSource;
|
|
595
|
+
/** How many delegation hops from the root conversation this call ran at: 0 is the root turn, 1 a directly-delegated child. The top of the range is a band, not a count, because eve's parent projection carries the immediate parent and the root and nothing in between. */
|
|
596
|
+
readonly delegationDepth?: number;
|
|
597
|
+
/** The ROOT (user-facing) session at the top of this call's delegation chain โ its own session
|
|
598
|
+
* id on a root turn (OPE-369). Total going forward, so grouping a whole delegation TREE's cost
|
|
599
|
+
* is one `GROUP BY root_session_id`, including grandchildren, which file under their immediate
|
|
600
|
+
* parent and would otherwise be invisible to the root. */
|
|
601
|
+
readonly rootSessionId?: string;
|
|
602
|
+
/** Extensibility slot (e.g. sandbox seconds) โ structured, stored as JSON text. */
|
|
603
|
+
readonly detail?: Readonly<Record<string, unknown>>;
|
|
604
|
+
}
|
|
605
|
+
/** Caller input โ `ts` and the four token counts are optional (0 / stamped when absent),
|
|
606
|
+
* so a zero-token event (the sandbox line) reads naturally as `{ ...meta, detail }`. */
|
|
607
|
+
export type UsageEventInput = Omit<UsageEventEntry, "ts" | "inputTokens" | "outputTokens" | "cacheReadTokens" | "cacheWriteTokens"> & {
|
|
608
|
+
readonly ts?: string;
|
|
609
|
+
readonly inputTokens?: number;
|
|
610
|
+
readonly outputTokens?: number;
|
|
611
|
+
readonly cacheReadTokens?: number;
|
|
612
|
+
readonly cacheWriteTokens?: number;
|
|
613
|
+
};
|
|
614
|
+
export interface UsageSummaryFilter {
|
|
615
|
+
/** Prefix match on surfaceKey (e.g. "slack/T1" for one workspace). */
|
|
616
|
+
readonly surfaceKeyPrefix?: string;
|
|
617
|
+
/** ISO-8601 lower bound (inclusive). */
|
|
618
|
+
readonly sinceTs?: string;
|
|
619
|
+
/** ISO-8601 upper bound (inclusive). */
|
|
620
|
+
readonly untilTs?: string;
|
|
621
|
+
/** Also excludes any row whose owning session had a recorded usage event before this bound, closing the leak sinceTs alone cannot: sinceTs bounds the event's own write time, so a turn from an older session that flushes inside the window still counts. A session's start is approximated as the earliest ts this store ever recorded for its session id. */
|
|
622
|
+
readonly sessionStartedAfter?: string;
|
|
623
|
+
}
|
|
624
|
+
/** One grouped rollup row: sums + counts for one (surfaceKey, principalId, kind, routineId, model)
|
|
625
|
+
* tuple. `routineId` joined the grain in OPE-145 โ it is null on every non-routine row, so the
|
|
626
|
+
* grouping is unchanged for them, and it is what makes per-routine cost (and a per-routine budget)
|
|
627
|
+
* computable from the same rollup everything else already uses. */
|
|
628
|
+
export interface UsageSummaryRow {
|
|
629
|
+
readonly surfaceKey: string;
|
|
630
|
+
readonly principalId?: string;
|
|
631
|
+
readonly kind?: string;
|
|
632
|
+
/** The conversation these events happened in ({@link SurfaceMode}) โ a grouping column, so one
|
|
633
|
+
* surface's unstamped legacy rows never blend with its stamped ones. Absent when unstamped. */
|
|
634
|
+
readonly surfaceMode?: SurfaceMode;
|
|
635
|
+
/** The routine this group's events belong to (OPE-145); absent for non-routine usage. */
|
|
636
|
+
readonly routineId?: string;
|
|
637
|
+
readonly model?: string;
|
|
638
|
+
readonly inputTokens: number;
|
|
639
|
+
readonly outputTokens: number;
|
|
640
|
+
readonly cacheReadTokens: number;
|
|
641
|
+
readonly cacheWriteTokens: number;
|
|
642
|
+
/** Reasoning tokens summed over this group's calls (OPE-1611); 0 when none reported any. */
|
|
643
|
+
readonly reasoningTokens: number;
|
|
644
|
+
/** How many of this group's calls REPORTED the cache split (`cache_tokens_reported = true`).
|
|
645
|
+
* `events - cacheReportedCalls` is the honest "cache attribution unreported" count โ the
|
|
646
|
+
* number a report shows instead of implying the group's cache zeros mean no caching. */
|
|
647
|
+
readonly cacheReportedCalls: number;
|
|
648
|
+
/** How many of this group's calls reported a reasoning-token count at all (a non-NULL
|
|
649
|
+
* `reasoning_tokens`). 0 means the group's `reasoningTokens` sum carries no information. */
|
|
650
|
+
readonly reasoningReportedCalls: number;
|
|
651
|
+
/** Row count in this group (โ model-call count). */
|
|
652
|
+
readonly events: number;
|
|
653
|
+
/** Distinct session_id count in this group (โ conversation count). */
|
|
654
|
+
readonly sessions: number;
|
|
655
|
+
}
|
|
656
|
+
export interface CompiledAnalyticsQuery {
|
|
657
|
+
readonly table: "audit_entry" | "usage_events" | "spend_ledger";
|
|
658
|
+
readonly select: readonly {
|
|
659
|
+
readonly expr: string;
|
|
660
|
+
readonly alias: string;
|
|
661
|
+
}[];
|
|
662
|
+
readonly groupBy: readonly string[];
|
|
663
|
+
/** WHERE conjuncts (AND-joined), scope conjuncts FIRST; `?` placeholders. */
|
|
664
|
+
readonly where: readonly string[];
|
|
665
|
+
/** Bind params, positionally matched to `?` across `where` in order. */
|
|
666
|
+
readonly params: readonly unknown[];
|
|
667
|
+
readonly orderBy: {
|
|
668
|
+
readonly expr: string;
|
|
669
|
+
readonly dir: "ASC" | "DESC";
|
|
670
|
+
} | null;
|
|
671
|
+
readonly limit: number;
|
|
672
|
+
}
|
|
673
|
+
/** Separator framing every id in a stored promoter list. A newline cannot occur inside a platform
|
|
674
|
+
* event id, and {@link framePromoterId} escapes one anyway. */
|
|
675
|
+
export declare const PROMOTER_SEP = "\n";
|
|
676
|
+
/**
|
|
677
|
+
* How many recent promoter ids one row keeps. The bound is the point: an unbounded list on a hot
|
|
678
|
+
* row is its own defect, so the oldest entry is dropped once a promotion pushes the list past this.
|
|
679
|
+
*
|
|
680
|
+
* ๐ด THE BOUND IS THE RESIDUAL, AND IT IS THE HONEST ONE TO STATE. A replay of a promotion that
|
|
681
|
+
* this many DISTINCT later promotions have already pushed off the list clears `stopped` again.
|
|
682
|
+
* Closing that needs an unbounded list, which is the defect this bound exists to avoid.
|
|
683
|
+
*/
|
|
684
|
+
export declare const PROMOTER_LIST_MAX = 32;
|
|
685
|
+
/**
|
|
686
|
+
* Frame one promoting event id for storage and for the membership test โ the SAME transform on
|
|
687
|
+
* both sides, which is what makes a redelivery match the entry its first delivery wrote.
|
|
688
|
+
*
|
|
689
|
+
* A separator inside the raw id would let a caller spell two entries in one value, so it is
|
|
690
|
+
* replaced by a space. The transform is deterministic, so a redelivery still matches; two ids that
|
|
691
|
+
* differ only in a separator collapse onto one entry, which errs towards KEEPING a stand-down.
|
|
692
|
+
*/
|
|
693
|
+
export declare function framePromoterId(raw: string): string;
|
|
694
|
+
/** Decode a stored promoter list into its ids, oldest first. NULL, empty and a list of nothing all
|
|
695
|
+
* read as an empty array โ "this row records no promoter", which never blocks a clear. */
|
|
696
|
+
export declare function decodePromoterList(stored: string | null | undefined): string[];
|
|
697
|
+
/** The {@link EngagementRow.recentPromoters} half of a decoded row โ present only when the row
|
|
698
|
+
* records a promoter, so an empty list reads as ABSENT rather than as `[]`. Both adapters spread
|
|
699
|
+
* this, so the "when is it absent" rule is written once. */
|
|
700
|
+
export declare function promoterListField(stored: string | null | undefined): {
|
|
701
|
+
recentPromoters?: readonly string[];
|
|
702
|
+
};
|
|
703
|
+
export interface EngagementRow {
|
|
704
|
+
readonly org: string;
|
|
705
|
+
/** The channel as a fully-qualified surface key (`platform/workspace/surface`). */
|
|
706
|
+
readonly surfaceKey: string;
|
|
707
|
+
/** Slack thread root ts โ the engagement is per thread, not per channel. */
|
|
708
|
+
readonly threadTs: string;
|
|
709
|
+
/** ISO-8601 when the thread was first engaged (set once). */
|
|
710
|
+
readonly engagedAt: string;
|
|
711
|
+
/** ISO-8601 of the most recent delivered turn (refreshed each engaged turn). */
|
|
712
|
+
readonly lastTurnAt: string;
|
|
713
|
+
/**
|
|
714
|
+
* TRUE once the bot is an INVITED PARTICIPANT here โ it has actually posted a reply or
|
|
715
|
+
* been @mentioned โ vs a WARM WATCHER latched by a name-drop wake that hasn't (yet)
|
|
716
|
+
* earned a reply. The distinction is load-bearing for two behaviours: a warm thread's
|
|
717
|
+
* rolled-in messages keep the quiet-failure / higher-bar posture (oeUninvited) until a
|
|
718
|
+
* reply promotes it, and a warm thread is auto-shed after a run of silent turns whereas
|
|
719
|
+
* a participating thread is sticky (only an explicit stop disengages it). Never
|
|
720
|
+
* downgraded trueโfalse.
|
|
721
|
+
*/
|
|
722
|
+
readonly participating: boolean;
|
|
723
|
+
/**
|
|
724
|
+
* Consecutive woken-but-silent turns since the last engage/participation. Bumped when a
|
|
725
|
+
* warm (non-participating) woken turn judges NO_REPLY; RESET to 0 the moment a reply or
|
|
726
|
+
* @mention promotes the thread (participating โ true). The warm auto-disengage threshold
|
|
727
|
+
* (channels/slack.ts WARM_SILENT_LIMIT) reads it to shed a name-drop that never landed.
|
|
728
|
+
*/
|
|
729
|
+
readonly silentStreak: number;
|
|
730
|
+
/**
|
|
731
|
+
* The session token that OWNS this thread, when ownership routing is in play
|
|
732
|
+
* (Slack Claude-Tag-parity build)
|
|
733
|
+
* โ either a thread token (`${channelId}:${threadTs}`) or the channel supervisor's token
|
|
734
|
+
* (`${channelId}:oe-sup:<generation>`, see {@link ChannelSessionRow}). Optional: absent on
|
|
735
|
+
* rows written before ownership routing existed, and until a T1.3+ router leg sets it โ
|
|
736
|
+
* markEngaged only ever SETS it when the caller passes one (never clears an existing
|
|
737
|
+
* value with an absent opt, see markEngaged's doc comment).
|
|
738
|
+
*/
|
|
739
|
+
readonly ownerToken?: string;
|
|
740
|
+
/**
|
|
741
|
+
* How this engagement came to exist: `"thread"` โ today's only path, an @mention or an
|
|
742
|
+
* earned reply (markThreadEngaged with no `kind` opt) โ or `"spawned"` โ a T3.1
|
|
743
|
+
* `start_thread_session` handoff bind. Additive column: rows written before this field
|
|
744
|
+
* existed have no stored value and read back as `"thread"` (the fail-safe default โ see
|
|
745
|
+
* markEngaged/getEngagement in sqlite.ts + postgres.ts). Set once at creation; never
|
|
746
|
+
* changed by a later markEngaged refresh/promotion.
|
|
747
|
+
*/
|
|
748
|
+
readonly kind: "thread" | "spawned";
|
|
749
|
+
/** True once an explicit stop landed on this thread on the Slack window-riding supervisor path, where deleting the row would suppress nothing because the wake gate never reads engagement for a window domain. A promotion clears it; the Discord path still deletes its row on stop. */
|
|
750
|
+
readonly stopped: boolean;
|
|
751
|
+
/** The ids of the events that promoted this row to participating, most recent last and at most PROMOTER_LIST_MAX of them: a promotion carrying an id the list still holds does NOT clear stopped, so a redelivered mention cannot lift a stand-down. Every promoter the list still holds is guarded, not only the latest; the bound is the residual. */
|
|
752
|
+
readonly recentPromoters?: readonly string[];
|
|
753
|
+
}
|
|
754
|
+
/**
|
|
755
|
+
* ONE in-flight turn, addressed the three ways an ingress trigger can know it (OPE-418). The
|
|
756
|
+
* WRITE shape โ `putTurnAnchor` stamps `createdAt` from its own `at` argument, so it isn't here.
|
|
757
|
+
*
|
|
758
|
+
* ๐ด EVERY FIELD IS HOST-RESOLVED. `sessionId`/`turnId` come from eve's own turn context, the keys
|
|
759
|
+
* from the resolved binding. A model never authors any of them, and nothing here is ever read back
|
|
760
|
+
* into a prompt โ this row exists so an ingress process can call `attachSession(id).cancel({turnId})`
|
|
761
|
+
* with NO model call and NO session mint, which is what makes stop free and over-cap-proof.
|
|
762
|
+
*/
|
|
763
|
+
export interface TurnAnchorWrite {
|
|
764
|
+
/** The continuation token / window this turn belongs to. ALWAYS written โ it is the primary key. */
|
|
765
|
+
readonly windowKey: string;
|
|
766
|
+
/** `"<platform>:<channelId>:<messageId>"` where the surface knows the anchor message (the thread
|
|
767
|
+
* root a reaction lands on). Absent where it doesn't (a webhook fire, a routine). */
|
|
768
|
+
readonly anchorKey?: string;
|
|
769
|
+
/** `"<platform>:<channelId>"` โ the slash-command resolution arm. Absent when unresolvable. */
|
|
770
|
+
readonly channelKey?: string;
|
|
771
|
+
/** eve's durable session id โ the `attachSession` argument. */
|
|
772
|
+
readonly sessionId: string;
|
|
773
|
+
/** eve's turn id โ passed to `cancel({turnId})` so a stale stop can never kill a LATER turn. */
|
|
774
|
+
readonly turnId: string;
|
|
775
|
+
/** The fully-qualified surface key (`platform/workspace/surface`), for the audit row. */
|
|
776
|
+
readonly surfaceKey: string;
|
|
777
|
+
}
|
|
778
|
+
/** A stored {@link TurnAnchorWrite}, plus the stamp the TTL prunes on. */
|
|
779
|
+
export interface TurnAnchorRow extends TurnAnchorWrite {
|
|
780
|
+
readonly createdAt: string;
|
|
781
|
+
}
|
|
782
|
+
/**
|
|
783
|
+
* One THREAD SEAT's durable record (OPE-1696) โ what a standing seat reads when it asks about a thread it handed off. Written at the spawn and again at the hand-back; never consulted for ROUTING, which stays on the ownership row alone.
|
|
784
|
+
* It carries no inference and no summary the host wrote: `report` is the seat's OWN closing words, and every other field is a fact the deployment recorded at the moment it happened.
|
|
785
|
+
*/
|
|
786
|
+
export interface ThreadSeatStateWrite {
|
|
787
|
+
/** The container (unifiedThreadRef.channelKey) โ half the primary key. */
|
|
788
|
+
readonly channelKey: string;
|
|
789
|
+
/** The thread within it (unifiedThreadRef.threadKey) โ the other half. */
|
|
790
|
+
readonly threadKey: string;
|
|
791
|
+
/** The thread seat's window token (`โฆ:win:s/โฆ`) โ its identity, and what `message_thread_seat` addresses. */
|
|
792
|
+
readonly seatToken: string;
|
|
793
|
+
/** The PARENT standing seat's channel_session REGISTRY key, not its token: a parent rotates, and
|
|
794
|
+
* the hand-back must wake the generation that is live THEN, not the one that spawned. */
|
|
795
|
+
readonly parentRegistryKey: string;
|
|
796
|
+
/** `open` from the spawn until the seat hands the thread back; `completed` after. */
|
|
797
|
+
readonly state: "open" | "completed";
|
|
798
|
+
/** The thread's own wake ORIGIN as JSON (channels/unified-window.ts `UnifiedWakeOrigin`) โ the
|
|
799
|
+
* reply target a later delivery to this seat must carry, recorded at the spawn because no
|
|
800
|
+
* platform codec can rebuild an origin from a thread key alone. Validated on read, never trusted
|
|
801
|
+
* raw. */
|
|
802
|
+
readonly originJson: string;
|
|
803
|
+
/** The seat's closing report, in its own words โ present only once it has handed back. */
|
|
804
|
+
readonly report?: string;
|
|
805
|
+
/** ISO-8601 of the spawn. */
|
|
806
|
+
readonly openedAt: string;
|
|
807
|
+
}
|
|
808
|
+
/** A stored {@link ThreadSeatStateWrite}, plus the stamp the TTL prunes on (also the "last changed" a reader sees). */
|
|
809
|
+
export interface ThreadSeatStateRow extends ThreadSeatStateWrite {
|
|
810
|
+
readonly updatedAt: string;
|
|
811
|
+
}
|
|
812
|
+
/** The live channel-supervisor session pointer for one (org, surfaceKey): one row tracking the current generation only, since a rotation replaces it wholesale and no history is kept. The token's shape is platform-specific and caller-minted; this store holds no routing logic. */
|
|
813
|
+
export interface ChannelSessionRow {
|
|
814
|
+
readonly org: string;
|
|
815
|
+
/** The channel as a fully-qualified surface key (`platform/workspace/surface`) โ same convention as EngagementRow. */
|
|
816
|
+
readonly surfaceKey: string;
|
|
817
|
+
/** The live continuation token for the current generation. */
|
|
818
|
+
readonly token: string;
|
|
819
|
+
/** Monotonic generation counter: 1 on first mint, +1 on every rotation. */
|
|
820
|
+
readonly generation: number;
|
|
821
|
+
/** ISO-8601 when THIS generation was minted (reset by rotateChannelSession). */
|
|
822
|
+
readonly createdAt: string;
|
|
823
|
+
/** ISO-8601 of the most recent wake delivered to this generation (bumped by touchChannelSession; reset on rotation). */
|
|
824
|
+
readonly lastWakeAt: string;
|
|
825
|
+
/** Turns served by this generation (bumped by touchChannelSession; reset to 0 on rotation) โ the rotation-by-budget BACKSTOP (T1.5, #551). */
|
|
826
|
+
readonly turnCount: number;
|
|
827
|
+
/**
|
|
828
|
+
* Measured cumulative `inputTokens + cacheReadTokens` for THIS generation (bumped by
|
|
829
|
+
* bumpChannelSessionUsage from the spend hook; reset to 0 on rotation) โ the PRIMARY
|
|
830
|
+
* rotation trigger against eve #551's cumulative-input death (ยง2, rotation-551-fix-design).
|
|
831
|
+
* NULL = unknown accumulation (a pre-migration row) โ shouldRotate FAILS SAFE and rotates.
|
|
832
|
+
*/
|
|
833
|
+
readonly inputTokensTotal: number | null;
|
|
834
|
+
/**
|
|
835
|
+
* ISO-8601 of the FIRST successfully-delivered wake on this generation (set once, COALESCE,
|
|
836
|
+
* by touchChannelSession; NULL on a freshly-minted/rotated row). NULL โ no wake has been
|
|
837
|
+
* delivered yet โ the next wake is still "fresh" and re-carries backscroll (H7c self-heal:
|
|
838
|
+
* a failed first wake no longer mints an amnesiac generation).
|
|
839
|
+
*/
|
|
840
|
+
readonly firstWakeAt: string | null;
|
|
841
|
+
/** The most recent request's measured input on this generation โ SET, not accumulated, and the context-size measure compaction reads, unlike the cumulative inputTokensTotal. NULL means no request has completed yet and deliberately does not rotate, because every freshly-minted generation is NULL. */
|
|
842
|
+
readonly lastInputTokens: number | null;
|
|
843
|
+
/** Set only by markChannelSessionRotation โ the ops sweep and the pruned-deployment heal โ never by a deploy and never by an ordinary wake. The next wake rotates before it delivers and clears the mark, so one mark buys one rotation, and it runs through the seat's own in-band rotate leg, which is the only leg that can carry the recorded tail. */
|
|
844
|
+
readonly rotateMarkedAt: string | null;
|
|
845
|
+
/**
|
|
846
|
+
* OPE-1821: the RUNNING CODE fingerprint this seat was last served with โ the build-time hash of
|
|
847
|
+
* this bundle's runtime source (channels/runtime-rotation.ts states exactly what it covers).
|
|
848
|
+
* Written ONLY by {@link OperationalStore.stampChannelSessionRuntime}, never by a rotation: the
|
|
849
|
+
* stamp happens pre-dispatch, and a rotation that reset it would make the seat rotate again on its
|
|
850
|
+
* very next wake. NULL means no wake has stamped this row yet โ a freshly-minted generation, or a
|
|
851
|
+
* row written before this column existed.
|
|
852
|
+
*/
|
|
853
|
+
readonly servedCodeFingerprint: string | null;
|
|
854
|
+
/** OPE-1821: the DOMAIN declaration fingerprint this seat was last served with (channels/domain-fingerprint.ts). Same writer, same NULL meaning, as {@link ChannelSessionRow.servedCodeFingerprint}. The pair moves together, so a reader never sees one half of a swap. */
|
|
855
|
+
readonly servedDomainFingerprint: string | null;
|
|
856
|
+
}
|
|
857
|
+
/**
|
|
858
|
+
* What {@link OperationalStore.stampChannelSessionRuntime} did, and what the row held before it.
|
|
859
|
+
*
|
|
860
|
+
* ๐ด `"rotate"` IS AT-MOST-ONCE, AND THAT IS THE WHOLE POINT. The stamp is one conditional UPDATE,
|
|
861
|
+
* so of two wakes that both find the same stale seat exactly one gets `"rotate"` and the other gets
|
|
862
|
+
* `"current"` โ the seat's generation retires once, not twice. A read-then-write in the caller could
|
|
863
|
+
* not give that, which is why the comparison lives in the store and not in runtime-rotation.ts.
|
|
864
|
+
*/
|
|
865
|
+
export interface ChannelSessionRuntimeStamp {
|
|
866
|
+
/**
|
|
867
|
+
* - `"rotate"` โ the row carried a DIFFERENT pair, and THIS call won the swap. The caller must retire the generation.
|
|
868
|
+
* - `"adopted"` โ the row carried NO pair (NULL), so it was stamped without rotating. A freshly-minted generation is already running this code, and a row written before the columns existed cannot prove otherwise; rotating on absence would retire every seat's first generation before its second wake.
|
|
869
|
+
* - `"current"` โ the row already carried this exact pair. The steady state, and the answer a racing loser gets.
|
|
870
|
+
* - `"absent"` โ no row for this (org, surfaceKey). There is no generation to retire; the caller's own mint arm writes the first one.
|
|
871
|
+
*/
|
|
872
|
+
readonly outcome: "rotate" | "adopted" | "current" | "absent";
|
|
873
|
+
/** The pair as the row held it BEFORE this call, for the audit row that says WHAT changed. Both NULL on `"adopted"` and on `"absent"`. */
|
|
874
|
+
readonly previousCodeFingerprint: string | null;
|
|
875
|
+
readonly previousDomainFingerprint: string | null;
|
|
876
|
+
}
|
|
877
|
+
/** One durable uploaded-attachment record โ the CROSS-PROCESS half of the Slack attachment
|
|
878
|
+
* registry (channels/slack-attachments.ts). Its `urlPrivate` came from a Slack event's
|
|
879
|
+
* `files[].url_private` (TRUSTED provenance, written only from the parse path), never a
|
|
880
|
+
* model-supplied string โ the same contract the in-memory `SlackAttachmentRecord` carries.
|
|
881
|
+
* The BYTES are NOT stored, only the (short-lived) download URL + metadata. */
|
|
882
|
+
export interface SlackAttachmentRow {
|
|
883
|
+
/** The Slack `url_private` download URL (the trusted event-supplied string). */
|
|
884
|
+
readonly urlPrivate: string;
|
|
885
|
+
/** IANA media type from the event (`files[].mimetype`), when known. */
|
|
886
|
+
readonly mimeType?: string;
|
|
887
|
+
/** Original filename from the event, when known โ the raw-bytes read path infers a type
|
|
888
|
+
* from its extension when the mimetype is absent. */
|
|
889
|
+
readonly name?: string;
|
|
890
|
+
/** The Slack team id the event belonged to, when known (future multi-bot token routing). */
|
|
891
|
+
readonly teamId?: string;
|
|
892
|
+
}
|
|
893
|
+
/** One GitHub App installation OE learned from the App's own `installation` webhook
|
|
894
|
+
* (scm/installations.ts). NOT a credential โ an installation id is a public routing
|
|
895
|
+
* number; the App private key (the actual secret) stays in env and is never stored here.
|
|
896
|
+
* Provenance is the SIGNATURE-VERIFIED webhook delivery only (the same
|
|
897
|
+
* `GITHUB_WEBHOOK_SECRET` gate the chat surface uses), never a model string. */
|
|
898
|
+
export interface GitHubInstallationRow {
|
|
899
|
+
/** The GitHub account the App is installed on (`installation.account.login`) โ the key
|
|
900
|
+
* the SCM plane's ownerโinstallation map is looked up by. */
|
|
901
|
+
readonly owner: string;
|
|
902
|
+
/** `installation.id`, as a string (GitHub sends a number; the mint API takes a path segment). */
|
|
903
|
+
readonly installationId: string;
|
|
904
|
+
/** `installation.account.type` โ "Organization" | "User" (diagnostics only). */
|
|
905
|
+
readonly accountType?: string;
|
|
906
|
+
/** `installation.repository_selection` โ "all" | "selected". Refreshed by the
|
|
907
|
+
* `installation_repositories` event so the row doesn't go stale on a scope change. */
|
|
908
|
+
readonly repositorySelection?: string;
|
|
909
|
+
/** ISO-8601 of the delivery that last wrote this row. */
|
|
910
|
+
readonly updatedAt: string;
|
|
911
|
+
}
|
|
912
|
+
/** One stored credential โ the ciphertext half of the `db` credential broker
|
|
913
|
+
* (agent/credentials/db-broker.ts, task #113). The VALUE is NEVER stored in plaintext:
|
|
914
|
+
* `ciphertext` is the broker's AES-256-GCM envelope (ivโtagโct, base64), opaque to this store.
|
|
915
|
+
* `connector`/`domain` are display/label metadata only (surfaced in audit + admin views, never the
|
|
916
|
+
* value). Written host-side by the credential-intake webhook path, read host-side at
|
|
917
|
+
* egress-resolution time โ the model touches neither end. */
|
|
918
|
+
export interface StoredCredentialRow {
|
|
919
|
+
/** The unique lookup key, e.g. `db:notion-<domain>-key` (the ref egress resolves through getSecret). */
|
|
920
|
+
readonly ref: string;
|
|
921
|
+
/** The opaque AES-256-GCM envelope, base64. NEVER plaintext, NEVER logged. */
|
|
922
|
+
readonly ciphertext: string;
|
|
923
|
+
/** Connector label (e.g. "notion"), for audit + admin views only. */
|
|
924
|
+
readonly connector?: string;
|
|
925
|
+
/** Domain label the credential belongs to, for audit + admin views only. */
|
|
926
|
+
readonly domain?: string;
|
|
927
|
+
/** The principal that stored it (the intake requester). */
|
|
928
|
+
readonly createdBy: string;
|
|
929
|
+
/** ISO-8601 when it was stored. */
|
|
930
|
+
readonly createdAt: string;
|
|
931
|
+
}
|
|
932
|
+
/** One pending credential-intake โ the opaque, single-use, TTL'd binding a "Set API key" button
|
|
933
|
+
* carries (agent/credentials/intake.ts, task #113). Binds an intake id to WHERE the resolved
|
|
934
|
+
* secret is stored (`ref`), WHO may complete it (`requestedBy` โ the button click must match this
|
|
935
|
+
* principal), and the connector/domain labels the modal shows. `usedAt` stays NULL until consumed
|
|
936
|
+
* (single-use CAS); `expiresAt` bounds the window (~15 min). It NEVER carries the secret value โ
|
|
937
|
+
* that exists only inside the view_submission handler's own scope. */
|
|
938
|
+
export interface CredentialIntakeRow {
|
|
939
|
+
readonly org: string;
|
|
940
|
+
readonly id: string;
|
|
941
|
+
/** The stored_credential ref the resolved value is written under. */
|
|
942
|
+
readonly ref: string;
|
|
943
|
+
readonly connector: string;
|
|
944
|
+
readonly domain?: string;
|
|
945
|
+
/** The ONLY principal permitted to open the modal + submit โ a different clicker is refused. */
|
|
946
|
+
readonly requestedBy: string;
|
|
947
|
+
/** Where the button lives (for the ephemeral wrong-clicker notice + the success confirmation). */
|
|
948
|
+
readonly channelId: string;
|
|
949
|
+
readonly threadTs?: string;
|
|
950
|
+
readonly createdAt: string;
|
|
951
|
+
readonly expiresAt: string;
|
|
952
|
+
/** ISO-8601 when consumed; NULL/undefined = still open (single-use guard). */
|
|
953
|
+
readonly usedAt?: string;
|
|
954
|
+
}
|
|
955
|
+
/** One approval memo. Two planes write here and sessionId tells them apart: a bare session or window token for a session grant, a routine permission key for a declared permission. kind is an open set, so read it with a positive test for the shape you want โ an else that treats anything unrecognised as held authority over-reports it. */
|
|
956
|
+
export interface SessionApprovalRow {
|
|
957
|
+
readonly org: string;
|
|
958
|
+
/** The session/window token the proposing turn ran under (embeds the generation), or a routine's
|
|
959
|
+
* permission key `oe-routine:<id>:g<n>` when the row is a declared permission. */
|
|
960
|
+
readonly sessionId: string;
|
|
961
|
+
readonly kind: string;
|
|
962
|
+
/** The member who clicked "Approve for session" โ the attribution carried on every subsequent skip. */
|
|
963
|
+
readonly grantedBy: string;
|
|
964
|
+
readonly createdAt: string;
|
|
965
|
+
readonly expiresAt: string;
|
|
966
|
+
}
|
|
967
|
+
/** A link-set's lifecycle. `revoked` is TERMINAL (the offboarding lever); `suspended` is the
|
|
968
|
+
* reversible hold a directory deprovision lands on. */
|
|
969
|
+
export type LinkSetStatus = "active" | "suspended" | "revoked";
|
|
970
|
+
/** One linked account's lifecycle. `suggested` = proposed by a directory sync, not yet proven;
|
|
971
|
+
* `confirmed` = evidence-backed and live; `revoked` = TERMINAL (never transitions back). */
|
|
972
|
+
export type LinkedIdStatus = "suggested" | "confirmed" | "revoked";
|
|
973
|
+
/** A challenge's lifecycle. `pending` โ `claimed` โ (`ratified` | `denied`), or `expired`.
|
|
974
|
+
* SINGLE-USE is the `pending`-only claim CAS: once a row leaves `pending` its nonce can never
|
|
975
|
+
* be claimed again, so the code is spent by the first claimer whatever happens next. */
|
|
976
|
+
export type LinkChallengeStatus = "pending" | "claimed" | "ratified" | "denied" | "expired";
|
|
977
|
+
/** One canonical person, as stored. `handle` is DISPLAY ONLY โ see the section header. */
|
|
978
|
+
export interface LinkSetRow {
|
|
979
|
+
readonly org: string;
|
|
980
|
+
/** Opaque, host-minted id โ the ONLY join key for a set. */
|
|
981
|
+
readonly id: string;
|
|
982
|
+
/** Display handle for admin lists + audit rows. NEVER a lookup key. */
|
|
983
|
+
readonly handle: string;
|
|
984
|
+
readonly status: LinkSetStatus;
|
|
985
|
+
readonly createdAt: string;
|
|
986
|
+
readonly updatedAt: string;
|
|
987
|
+
}
|
|
988
|
+
/** One account belonging to a link-set. `(org, platform, tenant, nativeId)` is the PRIMARY KEY โ
|
|
989
|
+
* the "an account is exactly one person" invariant, enforced by the engine and not merely by the
|
|
990
|
+
* write API (which enforces it again; defence in depth). */
|
|
991
|
+
export interface LinkedIdRow {
|
|
992
|
+
readonly org: string;
|
|
993
|
+
readonly linkSetId: string;
|
|
994
|
+
readonly platform: string;
|
|
995
|
+
/** Which workspace issued nativeId, and part of the primary key: on a tenant-scoped platform the id alone does not name an account, because two Slack workspaces can issue the same U-string to two people. Empty means a vendor-global platform, or a row written before this column existed. */
|
|
996
|
+
readonly tenant: string;
|
|
997
|
+
readonly nativeId: string;
|
|
998
|
+
readonly status: LinkedIdStatus;
|
|
999
|
+
/** WHAT established this row, in the canonical evidence spelling
|
|
1000
|
+
* (`challenge:<id>` | `config-import` | `directory-sync:<provider>`) โ identity/link-store.ts
|
|
1001
|
+
* owns the vocabulary. Never blank: a row with no evidence is a row nobody can audit. */
|
|
1002
|
+
readonly establishedBy: string;
|
|
1003
|
+
/** The evidence record as JSON (opaque to the store) โ the structured form of `establishedBy`,
|
|
1004
|
+
* so a later phase can answer "which challenge / which sync run" without parsing a label. */
|
|
1005
|
+
readonly evidenceJson?: string;
|
|
1006
|
+
readonly createdAt: string;
|
|
1007
|
+
readonly updatedAt: string;
|
|
1008
|
+
}
|
|
1009
|
+
/** One proof-of-control challenge. NO RAW CODE ever touches this row โ only sha-256 digests. */
|
|
1010
|
+
export interface LinkChallengeRow {
|
|
1011
|
+
readonly org: string;
|
|
1012
|
+
readonly id: string;
|
|
1013
|
+
/**
|
|
1014
|
+
* sha-256 (hex) of the uppercased code the TARGET posts back (code-1). The raw nonce exists only
|
|
1015
|
+
* in the message that carried it and in the initiator's own head; a stolen database yields no
|
|
1016
|
+
* usable codes.
|
|
1017
|
+
*
|
|
1018
|
+
* On the DIRECTORY transport nothing ever claims by nonce, so this holds a value that no message
|
|
1019
|
+
* can match โ see identity/link-store.ts `issueLinkChallenge`.
|
|
1020
|
+
*/
|
|
1021
|
+
readonly nonceHash: string;
|
|
1022
|
+
/** Which transport identifies the target: "code" is the bearer-code path and the default for every row written before this column, "directory" is the reverse-initiated path. It is a stored column rather than an inference because it decides the finalizer โ the code transport forces a code-back, the directory transport does not. */
|
|
1023
|
+
readonly transport: string;
|
|
1024
|
+
/** The account the DIRECTORY transport asked. Written at ISSUE time, before any consent exists โ
|
|
1025
|
+
* it is what the consent CAS matches against, so consent from any other account matches no row.
|
|
1026
|
+
* Absent on the code transport, where the target is unknown until it claims. */
|
|
1027
|
+
readonly targetPlatform?: string;
|
|
1028
|
+
readonly targetTenant?: string;
|
|
1029
|
+
readonly targetNativeId?: string;
|
|
1030
|
+
/**
|
|
1031
|
+
* sha-256 (hex) of the CODE-BACK (code-2) โ the value the INITIATOR must feed back to finalize.
|
|
1032
|
+
* Minted at CONSENT time and only when {@link codeBackDecision} said to; absent means the finalizer
|
|
1033
|
+
* is the ordinary acknowledged ratification.
|
|
1034
|
+
*
|
|
1035
|
+
* ๐ด ITS PRESENCE IS THE REQUIREMENT. identity/link-flow.ts's `finalizeGate` reads THIS, never the
|
|
1036
|
+
* live setting โ a knob flipped between consent and finalize must not strand a person holding a
|
|
1037
|
+
* code the tool now refuses, nor drop a requirement the consent step already enforced.
|
|
1038
|
+
*/
|
|
1039
|
+
readonly backNonceHash?: string;
|
|
1040
|
+
readonly initiatingPlatform: string;
|
|
1041
|
+
/** The initiator's TENANT (OPE-309 phase 2) โ `""` off a tenant-scoped platform; see
|
|
1042
|
+
* {@link LinkedIdRow.tenant}. Recorded rather than re-derived at ratification, because the
|
|
1043
|
+
* workspace the DM came from is a fact of the ISSUING turn and the ratifying turn may be days
|
|
1044
|
+
* later and (post-phase-1) on a deployment whose admitted set has moved. */
|
|
1045
|
+
readonly initiatingTenant: string;
|
|
1046
|
+
readonly initiatingNativeId: string;
|
|
1047
|
+
/** The surface key the challenge was issued from โ the DM the ratification must come back to. */
|
|
1048
|
+
readonly initiatingSurfaceKey: string;
|
|
1049
|
+
/** The claiming account, stamped from the WAKE'S OWN captured author at claim time โ never from
|
|
1050
|
+
* message content. NULL until claimed. */
|
|
1051
|
+
readonly claimedPlatform?: string;
|
|
1052
|
+
/** The claimant's TENANT, stamped in the same CAS as the other two claim columns โ so a claimed
|
|
1053
|
+
* row names a complete account and `ratifyLinkChallenge` never has to guess one half of it. */
|
|
1054
|
+
readonly claimedTenant?: string;
|
|
1055
|
+
readonly claimedNativeId?: string;
|
|
1056
|
+
readonly claimedAt?: string;
|
|
1057
|
+
readonly status: LinkChallengeStatus;
|
|
1058
|
+
readonly createdAt: string;
|
|
1059
|
+
readonly expiresAt: string;
|
|
1060
|
+
/** When the initiator ratified/denied it, or when the sweep expired it. */
|
|
1061
|
+
readonly decidedAt?: string;
|
|
1062
|
+
}
|
|
1063
|
+
export interface LinkChallengeFilter {
|
|
1064
|
+
readonly initiatingPlatform?: string;
|
|
1065
|
+
/** Narrow to one workspace's initiator (OPE-309 phase 2). Omitted โ every tenant, which is what
|
|
1066
|
+
* an admin-wide listing wants; the confirm path always supplies it, so a person confirming in
|
|
1067
|
+
* workspace A can never be shown a challenge minted by their namesake in workspace B. */
|
|
1068
|
+
readonly initiatingTenant?: string;
|
|
1069
|
+
readonly initiatingNativeId?: string;
|
|
1070
|
+
/** Narrow to the challenges aimed AT one account (the directory transport's target). The three
|
|
1071
|
+
* target conjuncts are what `confirm_link` uses to find "somebody asked to link YOUR account" โ
|
|
1072
|
+
* a caller sees a consent ask only when they ARE the account it names, by construction rather
|
|
1073
|
+
* than by a check the file could get backwards. */
|
|
1074
|
+
readonly targetPlatform?: string;
|
|
1075
|
+
readonly targetTenant?: string;
|
|
1076
|
+
readonly targetNativeId?: string;
|
|
1077
|
+
/** Narrow to the challenges one account ANSWERED. ๐ด TWO ACTS WRITE THIS TRIPLE, not one:
|
|
1078
|
+
* {@link OperationalStore.claimLinkChallenge} stamps the CODE transport's claimant from the wake's
|
|
1079
|
+
* own captured author, and {@link OperationalStore.consentLinkChallenge} stamps the DIRECTORY
|
|
1080
|
+
* transport's consenter in the same columns and to the same `claimed` status. So these conjuncts
|
|
1081
|
+
* find "this account is already mid-loop" through either door โ which is what `link_identity`
|
|
1082
|
+
* asks, and why a caller that puts words in front of a person must read `transport` too. A whole
|
|
1083
|
+
* account, never a (platform, id) pair, for the reason {@link LinkedIdRow.tenant} gives. */
|
|
1084
|
+
readonly claimedPlatform?: string;
|
|
1085
|
+
readonly claimedTenant?: string;
|
|
1086
|
+
readonly claimedNativeId?: string;
|
|
1087
|
+
readonly status?: LinkChallengeStatus;
|
|
1088
|
+
}
|
|
1089
|
+
/** One capture, as written. Every field is a fact about the CALL, never about its result. */
|
|
1090
|
+
export interface ModelCallCaptureWrite {
|
|
1091
|
+
readonly org: string;
|
|
1092
|
+
/** Spend grain (`domainKeyOf`) โ the same key the call's `usage_events` row carries. */
|
|
1093
|
+
readonly surfaceKey: string;
|
|
1094
|
+
/** eve's durable session id (`wrun_โฆ`), the join key the transcript route uses. */
|
|
1095
|
+
readonly sessionId: string;
|
|
1096
|
+
/** eve's turn id for this call's turn (`turn_<sequence>`); `""` when none was resolvable. */
|
|
1097
|
+
readonly turnId: string;
|
|
1098
|
+
/** 0-based index of this call WITHIN its turn, as the recorder counted it. */
|
|
1099
|
+
readonly stepIndex: number;
|
|
1100
|
+
/** ISO-8601 write time. */
|
|
1101
|
+
readonly ts: string;
|
|
1102
|
+
/** The model id this call ran on โ the id the router resolved, not the deployment default. */
|
|
1103
|
+
readonly model: string;
|
|
1104
|
+
/** The transport's provider label (e.g. "gateway"). */
|
|
1105
|
+
readonly provider: string;
|
|
1106
|
+
/** Serialised-shape version โ see CAPTURE_SCHEMA_VERSION. The replay bench validates on read. */
|
|
1107
|
+
readonly schemaVersion: number;
|
|
1108
|
+
/** sha256 (hex) of the UNCOMPRESSED serialised body. The identity a replay quotes. */
|
|
1109
|
+
readonly sha256: string;
|
|
1110
|
+
/** Byte length of the uncompressed serialised body. */
|
|
1111
|
+
readonly bodyBytes: number;
|
|
1112
|
+
/** gzip(body) base64'd. EMPTY when `truncated` โ see CAPTURE_MAX_BODY_B64_BYTES. */
|
|
1113
|
+
readonly bodyGzipB64: string;
|
|
1114
|
+
/** True when the body exceeded the store ceiling and was dropped. The row is still a witness that
|
|
1115
|
+
* the call happened (so the cross-check stays honest), but it cannot be replayed. */
|
|
1116
|
+
readonly truncated: boolean;
|
|
1117
|
+
}
|
|
1118
|
+
/** One capture, as read back. `seq` is the store's own insertion order within the org. */
|
|
1119
|
+
export interface ModelCallCaptureRow extends ModelCallCaptureWrite {
|
|
1120
|
+
readonly seq: number;
|
|
1121
|
+
}
|
|
1122
|
+
/**
|
|
1123
|
+
* One SESSION's capture footprint, for the retention operator (OPE-857): a run is harvested and
|
|
1124
|
+
* purged by session, and there is no supported way to find which sessions a run produced until
|
|
1125
|
+
* this row exists. Aggregated from `model_call_capture`, never carries a body byte โ this is a
|
|
1126
|
+
* listing, not a harvest read.
|
|
1127
|
+
*/
|
|
1128
|
+
export interface ModelCallCaptureSessionRow {
|
|
1129
|
+
readonly sessionId: string;
|
|
1130
|
+
/** ISO-8601 timestamp of the session's earliest capture. */
|
|
1131
|
+
readonly firstTs: string;
|
|
1132
|
+
/** ISO-8601 timestamp of the session's latest capture. */
|
|
1133
|
+
readonly lastTs: string;
|
|
1134
|
+
readonly rowCount: number;
|
|
1135
|
+
/** Sum of `bodyBytes` across the session's rows (uncompressed; a truncated row contributes 0 body
|
|
1136
|
+
* bytes stored but its `bodyBytes` fact still counts, matching what `modelCallCapturesForSession`
|
|
1137
|
+
* reports for that row). */
|
|
1138
|
+
readonly totalBytes: number;
|
|
1139
|
+
}
|
|
1140
|
+
export interface ModelCallCaptureReadOptions {
|
|
1141
|
+
/** Include the gzip body. Default TRUE (the harvest read). `false` returns metadata with an empty
|
|
1142
|
+
* body โ enough to count, to cross-check, and to pick a cut point before fetching its bytes. */
|
|
1143
|
+
readonly includeBody?: boolean;
|
|
1144
|
+
readonly turnId?: string;
|
|
1145
|
+
/** Max rows, oldest first. Omitted โ every row for the session. */
|
|
1146
|
+
readonly limit?: number;
|
|
1147
|
+
}
|
|
1148
|
+
export interface MemoryProposalRow {
|
|
1149
|
+
/** The store's own insertion order within the org โ the review worklist's stable id. */
|
|
1150
|
+
readonly id: number;
|
|
1151
|
+
readonly org: string;
|
|
1152
|
+
/** A destructive op kind (`DESTRUCTIVE_KINDS` in memory/dream/ops.ts) or "skill" for a Mode-1 suggestion. */
|
|
1153
|
+
readonly kind: string;
|
|
1154
|
+
/** WHERE it applies โ a silo name (Mode 2) or a surfaceKey (Mode 1). OE-minted, taint-clean. */
|
|
1155
|
+
readonly scope: string;
|
|
1156
|
+
readonly summary: string;
|
|
1157
|
+
/** The affected line(s), for review. Member-authored content โ this is why the table exists. */
|
|
1158
|
+
readonly before?: string;
|
|
1159
|
+
/** The suggested replacement / new content (e.g. a proposed SKILL.md body). */
|
|
1160
|
+
readonly after?: string;
|
|
1161
|
+
readonly detail?: Readonly<Record<string, unknown>>;
|
|
1162
|
+
/** The proposing principal, or DREAM_ACTOR for a cycle-emitted proposal. */
|
|
1163
|
+
readonly principalId: string;
|
|
1164
|
+
/** ISO-8601 write time. */
|
|
1165
|
+
readonly createdAt: string;
|
|
1166
|
+
}
|
|
1167
|
+
export type MemoryProposalWrite = Omit<MemoryProposalRow, "id">;
|
|
1168
|
+
export interface DmAudienceRow {
|
|
1169
|
+
/** The ARN-like person address this row is keyed on, e.g. `slack:person/U0123ABC`. */
|
|
1170
|
+
readonly address: string;
|
|
1171
|
+
/** ISO-8601 of the FIRST proactive DM delivered under this grant; undefined = never delivered. */
|
|
1172
|
+
readonly firstDmAt?: string;
|
|
1173
|
+
/** ISO-8601 the recipient stopped proactive DMs; undefined = not stopped. */
|
|
1174
|
+
readonly stoppedAt?: string;
|
|
1175
|
+
}
|
|
1176
|
+
/** One durable proactive address. `address` is provider-shaped and opaque to core โ see the section
|
|
1177
|
+
* header above. */
|
|
1178
|
+
export interface ProactiveAddress {
|
|
1179
|
+
readonly platform: string;
|
|
1180
|
+
/** The provider's own record species inside `platform`. Opaque to core. */
|
|
1181
|
+
readonly kind: string;
|
|
1182
|
+
/** The provider's own key inside (`platform`, `kind`) โ a principal id, a team id, โฆ */
|
|
1183
|
+
readonly refKey: string;
|
|
1184
|
+
/** The workspace/tenant the address lives in; `""` when the platform has none. */
|
|
1185
|
+
readonly tenant: string;
|
|
1186
|
+
/** The provider-shaped address bag. Core round-trips it as JSON and reads no field. */
|
|
1187
|
+
readonly address: Readonly<Record<string, unknown>>;
|
|
1188
|
+
/** ISO-8601 of the last write. */
|
|
1189
|
+
readonly updatedAt: string;
|
|
1190
|
+
}
|
|
1191
|
+
/** The one place the stored address bag is parsed, so the two adapters cannot disagree about a corrupt or non-object one. A bag that will not parse becomes an empty object rather than throwing, so one bad row cannot take a whole lookup down. */
|
|
1192
|
+
export declare function proactiveAddressRow(platform: string, kind: string, refKey: string, tenant: string, addressJson: string, updatedAt: string): ProactiveAddress;
|
|
1193
|
+
/** The immutable identity of one verified provider delivery. `authorityId` is the configured
|
|
1194
|
+
* credential/signer id that verified it, never the signing secret. It participates in the key so
|
|
1195
|
+
* one integration cannot spend another integration's delivery identity. */
|
|
1196
|
+
export interface IngressDeliveryKey {
|
|
1197
|
+
readonly source: string;
|
|
1198
|
+
readonly authorityId: string;
|
|
1199
|
+
readonly deliveryId: string;
|
|
1200
|
+
}
|
|
1201
|
+
/** The bytes admitted after provider verification. `payloadJson` is opaque to the store and owns
|
|
1202
|
+
* its own schemaVersion; raw signatures and credential material never belong here. */
|
|
1203
|
+
export interface IngressDeliveryWrite extends IngressDeliveryKey {
|
|
1204
|
+
readonly payloadJson: string;
|
|
1205
|
+
readonly receivedAt: string;
|
|
1206
|
+
}
|
|
1207
|
+
/** A content-free recovery candidate. The payload is returned only by the atomic claim to its
|
|
1208
|
+
* winner, never by the due-list scan. */
|
|
1209
|
+
export interface DueIngressDelivery extends IngressDeliveryKey {
|
|
1210
|
+
readonly receivedAt: string;
|
|
1211
|
+
readonly availableAt: string;
|
|
1212
|
+
}
|
|
1213
|
+
/** The fenced work item returned by a successful exact claim. */
|
|
1214
|
+
export interface ClaimedIngressDelivery extends DueIngressDelivery {
|
|
1215
|
+
readonly payloadJson: string;
|
|
1216
|
+
readonly claimId: string;
|
|
1217
|
+
readonly claimedAt: string;
|
|
1218
|
+
}
|
|
1219
|
+
/**
|
|
1220
|
+
* Durable, host-side store for operational state, partitioned by org. Spend and
|
|
1221
|
+
* routines are mutable; the audit log is APPEND-ONLY (no delete method on this seam). On
|
|
1222
|
+
* Postgres that is enforced at the DB layer โ SELECT/INSERT-only RLS under FORCE, which
|
|
1223
|
+
* binds the table owner the app connects as, so UPDATE/DELETE are denied. On SQLite
|
|
1224
|
+
* (single-tenant-trusted local/self-host) there is no RLS, so it is append-only by
|
|
1225
|
+
* contract only (the absence of a delete path).
|
|
1226
|
+
*/
|
|
1227
|
+
export interface OperationalStore {
|
|
1228
|
+
/** Backend id, for logs/diagnostics: "sqlite" | "postgres". */
|
|
1229
|
+
readonly id: string;
|
|
1230
|
+
/** Inspectable path (sqlite) or a descriptor (postgres) โ for logging/views. */
|
|
1231
|
+
root(): string;
|
|
1232
|
+
/** Upsert-and-add one spend increment to its (org, surface, principal, routine, model,
|
|
1233
|
+
* period) row: amounts sum, `calls` increments by 1. Atomic. */
|
|
1234
|
+
recordSpend(org: string, write: SpendLedgerWrite): Promise<void>;
|
|
1235
|
+
/** SUM the ledger over a keyed prefix (org-scoped; every filter conjunct ANDs) โ the
|
|
1236
|
+
* ONE read every cap denomination uses. Zero totals when nothing matches. */
|
|
1237
|
+
spendTotals(org: string, filter?: SpendLedgerFilter): Promise<SpendTotals>;
|
|
1238
|
+
/** Raw ledger rows for the report and admin rollups. Name the org on any path a remote caller can reach โ omitting it reads every tenant's rows โ and name the period, because omitting it reads the org's whole ledger history. */
|
|
1239
|
+
listSpendLedger(org?: string, filter?: SpendLedgerFilter): Promise<SpendLedgerRow[]>;
|
|
1240
|
+
listRoutines(org: string, surfaceKey: string): Promise<Routine[]>;
|
|
1241
|
+
getRoutine(org: string, surfaceKey: string, id: string): Promise<Routine | null>;
|
|
1242
|
+
addRoutine(routine: Routine): Promise<Routine>;
|
|
1243
|
+
/**
|
|
1244
|
+
* Apply a patch to one routine. When the patch REPLACES `prompt`, the adapter also appends to
|
|
1245
|
+
* the append-only `routine_prompt_revisions` log โ see {@link RoutinePromptRevisionRow} for what
|
|
1246
|
+
* is recorded, why the recording lives HERE rather than at the caller, and why the log begins at
|
|
1247
|
+
* the first edit rather than at creation. `provenance` names the approval that armed the new
|
|
1248
|
+
* text; every other patch (a fire's `nextRunAt`, a watch's `lastStateHash`, a job's ledger)
|
|
1249
|
+
* records nothing and pays nothing.
|
|
1250
|
+
*/
|
|
1251
|
+
updateRoutine(org: string, surfaceKey: string, id: string, patch: Partial<Routine>, provenance?: RoutinePromptProvenance): Promise<Routine | null>;
|
|
1252
|
+
removeRoutine(org: string, surfaceKey: string, id: string): Promise<boolean>;
|
|
1253
|
+
listAllRoutines(): Promise<Routine[]>;
|
|
1254
|
+
/** Every recorded prompt for a surface's routines, OLDEST FIRST (`seq` ascending). Narrow to one
|
|
1255
|
+
* routine with `routineId`; omit it to sweep the surface, which is how you reach the history of
|
|
1256
|
+
* a routine that has since been cancelled and whose row is gone. */
|
|
1257
|
+
listRoutinePromptRevisions(org: string, surfaceKey: string, routineId?: string): Promise<RoutinePromptRevisionRow[]>;
|
|
1258
|
+
/** Append one already-stamped audit record. There is intentionally NO delete. The store
|
|
1259
|
+
* stamps this row's `prev_sha` = sha256 of the org's current last row (OPE-52 hash chain,
|
|
1260
|
+
* agent/audit/chain.ts) โ a read-last-then-insert that the ADAPTER serialises per org, so
|
|
1261
|
+
* every caller is covered, not only those that come through audit.ts (OPE-1636). */
|
|
1262
|
+
appendAudit(entry: AuditEntry): Promise<void>;
|
|
1263
|
+
/** Read audit records matching a filter, newest-first โ each with its storage `seq`
|
|
1264
|
+
* ({@link AuditReadRow}), which is the only order key that survives a backward clock step. */
|
|
1265
|
+
readAudit(filter: AuditFilter): Promise<AuditReadRow[]>;
|
|
1266
|
+
/** Distinct org_ids present in the audit log โ the per-org hash-chain walk's key set (OPE-52). */
|
|
1267
|
+
listAuditOrgs(): Promise<string[]>;
|
|
1268
|
+
/** One org's audit rows OLDEST-first (seq ASC) with their `prevSha` + `seq`, for hash-chain
|
|
1269
|
+
* verification (OPE-52). `tailLimit` (>0) returns only the last N by seq โ still oldest-first โ
|
|
1270
|
+
* the boot tail-check window; absent/โค0 returns the full chain (the --verify-chain walk). */
|
|
1271
|
+
readAuditChain(org: string, opts?: {
|
|
1272
|
+
readonly tailLimit?: number;
|
|
1273
|
+
}): Promise<AuditChainRow[]>;
|
|
1274
|
+
/** Seal the org's existing audit rows under a NEW chain epoch and append the marker (OPE-1636,
|
|
1275
|
+
* agent/audit/chain.ts). Reads the era and inserts the marker in ONE critical section, so the
|
|
1276
|
+
* seal cannot be born stale. Returns the seal written AND the marker's seq, or null when there
|
|
1277
|
+
* is nothing to seal (no rows, or the chain already ends at an epoch). `sealedBy` is recorded as
|
|
1278
|
+
* the row's principal โ an operator act carries a name.
|
|
1279
|
+
*
|
|
1280
|
+
* ๐ด IT BLOCKS THE ORG'S APPENDS while it runs. The critical section holds the whole era read,
|
|
1281
|
+
* which is the org's ENTIRE chain, so a large log makes that a long hold โ see the seal command
|
|
1282
|
+
* and docs/security/audit-and-provenance.md. */
|
|
1283
|
+
sealAuditChainEpoch(org: string, sealedBy: string): Promise<AuditChainEpochWritten | null>;
|
|
1284
|
+
/** Set (upsert) a spend-limit override for (org, scopeKey, level), with optional bridge
|
|
1285
|
+
* metadata. `limit` carries a token and/or USD component (see SpendLimitAmount); the
|
|
1286
|
+
* upsert replaces any previous override row at that scope+level wholesale. */
|
|
1287
|
+
setSpendLimit(org: string, scopeKey: string, level: CapLevel, limit: SpendLimitAmount, meta?: OverrideMeta, condition?: {
|
|
1288
|
+
readonly ifAbsent?: true;
|
|
1289
|
+
}): Promise<boolean>;
|
|
1290
|
+
/** Clear a spend-limit override. When `expected` is present, delete only the byte-for-byte
|
|
1291
|
+
* logical row the caller owns; a missing or changed row returns false and is left untouched. */
|
|
1292
|
+
clearSpendLimit(org: string, scopeKey: string, level: CapLevel, expected?: SpendLimitMatch): Promise<boolean>;
|
|
1293
|
+
/** All spend-limit overrides for an org (small; consulted on the spend-check path + drift view). */
|
|
1294
|
+
spendLimits(org: string): Promise<SpendLimitRow[]>;
|
|
1295
|
+
/** Arm the break-glass HALT at one address (see {@link HaltAddress}). Upsert: re-halting an
|
|
1296
|
+
* already-halted address restamps `setBy`/`setAt` and clears the previous resume stamps. */
|
|
1297
|
+
setHalt(org: string, address: HaltAddress, meta?: {
|
|
1298
|
+
readonly setBy?: string;
|
|
1299
|
+
readonly setAt?: string;
|
|
1300
|
+
readonly setRef?: string;
|
|
1301
|
+
}): Promise<void>;
|
|
1302
|
+
/** Clear the halt at one address. Returns true iff an ACTIVE row was cleared โ false is
|
|
1303
|
+
* "nothing was halted there", never an error, so `resume` is idempotent. */
|
|
1304
|
+
clearHalt(org: string, address: HaltAddress, meta?: {
|
|
1305
|
+
readonly clearedBy?: string;
|
|
1306
|
+
}, expected?: HaltMatch): Promise<boolean>;
|
|
1307
|
+
/** Every ACTIVE halt row for an org (tiny; read on the enforcement paths). Cleared rows are kept
|
|
1308
|
+
* in the table for the trail but are never returned here โ a reader asks one question. */
|
|
1309
|
+
activeHalts(org: string): Promise<HaltRow[]>;
|
|
1310
|
+
/** Set (upsert) a connector grant/revoke override for (org, scopeKey, connector), with optional reason/setBy. */
|
|
1311
|
+
setConnectorOverride(org: string, scopeKey: string, connector: string, granted: boolean, meta?: Omit<OverrideMeta, "expiresAt">): Promise<void>;
|
|
1312
|
+
/** Clear a connector override (revert to config). Returns true if one was removed. */
|
|
1313
|
+
clearConnectorOverride(org: string, scopeKey: string, connector: string): Promise<boolean>;
|
|
1314
|
+
/** Connector overrides for one scope โ applied over the bundle-granted set by the gate. */
|
|
1315
|
+
connectorOverrides(org: string, scopeKey: string): Promise<ConnectorOverrideRow[]>;
|
|
1316
|
+
/** Every connector override for an org (across scopes) โ the drift view. */
|
|
1317
|
+
allConnectorOverrides(org: string): Promise<ScopedConnectorOverrideRow[]>;
|
|
1318
|
+
/** Set (upsert) a domain's runtime model/reasoning pick โ replaces any previous pick
|
|
1319
|
+
* for (org, domain) wholesale (assertDomainModelPick guards the shape). */
|
|
1320
|
+
setDomainModel(org: string, domain: string, pick: {
|
|
1321
|
+
readonly modelId?: string;
|
|
1322
|
+
readonly reasoning?: ModelReasoning;
|
|
1323
|
+
}, setBy?: string): Promise<void>;
|
|
1324
|
+
/** Clear a domain's model pick (reverts to the git-config route). Returns true if one was removed. */
|
|
1325
|
+
clearDomainModel(org: string, domain: string): Promise<boolean>;
|
|
1326
|
+
/** This domain's model pick, or null if none set โ the hot-path read model/routing.ts
|
|
1327
|
+
* consults (cached there; routing runs on every model call). */
|
|
1328
|
+
getDomainModel(org: string, domain: string): Promise<DomainModelRow | null>;
|
|
1329
|
+
/** Every domain model pick for an org (small; admin/diagnostic use). */
|
|
1330
|
+
domainModels(org: string): Promise<DomainModelRow[]>;
|
|
1331
|
+
/**
|
|
1332
|
+
* Mark a thread engaged (upsert). First touch: engagedAt=lastTurnAt=at, silentStreak=0,
|
|
1333
|
+
* participating = `opts?.participating ?? false`, kind = `opts?.kind ?? "thread"`,
|
|
1334
|
+
* ownerToken = `opts?.ownerToken` (absent if not given). Existing row: ALWAYS refresh
|
|
1335
|
+
* lastTurnAt; if `opts?.participating === true` PROMOTE participatingโtrue AND reset
|
|
1336
|
+
* silentStreakโ0 (a reply/mention invited the bot). participating is never downgraded
|
|
1337
|
+
* trueโfalse, so a plain refresh (no opts, or `participating:false`) leaves an already
|
|
1338
|
+
* participating thread โ and its silentStreak โ untouched. `ownerToken` is only ever
|
|
1339
|
+
* SET by a later call that passes one (an absent opt on a refresh never clears an
|
|
1340
|
+
* existing owner); `kind` is fixed at first touch and never changed by a later call. A
|
|
1341
|
+
* PROMOTION (`participating === true`) also CLEARS a `stopped` marker (task #100 follow-up:
|
|
1342
|
+
* a re-invitation โ a directMention or OE's own reply โ re-engages a stopped thread); a warm
|
|
1343
|
+
* refresh (participating absent/false) leaves `stopped` untouched.
|
|
1344
|
+
*
|
|
1345
|
+
* `engagedBy` NAMES THE PROMOTING EVENT and is the one exception to that clearing rule
|
|
1346
|
+
* (OPE-1527, widened by OPE-1562): a promotion whose id is ALREADY in the row's
|
|
1347
|
+
* {@link EngagementRow.recentPromoters} list leaves `stopped` set, so a redelivered @mention
|
|
1348
|
+
* cannot lift a stand-down โ including one a later @mention has since superseded. The id is
|
|
1349
|
+
* appended to that list (de-duplicated, most recent last, bounded by
|
|
1350
|
+
* {@link PROMOTER_LIST_MAX}) only by a promotion; a warm refresh records nothing. An absent id,
|
|
1351
|
+
* and an empty list, clear exactly as before.
|
|
1352
|
+
*/
|
|
1353
|
+
markEngaged(org: string, surfaceKey: string, threadTs: string, at: string, opts?: {
|
|
1354
|
+
participating?: boolean;
|
|
1355
|
+
ownerToken?: string;
|
|
1356
|
+
kind?: "thread" | "spawned";
|
|
1357
|
+
engagedBy?: string;
|
|
1358
|
+
}): Promise<void>;
|
|
1359
|
+
/**
|
|
1360
|
+
* Mark a thread STOPPED (task #100 follow-up โ the window-riding supervisor stop). Sets the
|
|
1361
|
+
* durable `stopped` flag on an EXISTING row (does NOT delete it, unlike {@link disengage} โ
|
|
1362
|
+
* the flag is what the route reads to suppress later non-mention wakes). Returns true if a row
|
|
1363
|
+
* was updated, false if the thread had no engagement row. Idempotent (re-stopping is a no-op
|
|
1364
|
+
* write). The Slack window stop path calls THIS; the Discord path keeps calling `disengage`.
|
|
1365
|
+
*/
|
|
1366
|
+
markStopped(org: string, surfaceKey: string, threadTs: string): Promise<boolean>;
|
|
1367
|
+
/**
|
|
1368
|
+
* Increment a thread's silent_streak by 1 and return the NEW value. No-op returning 0
|
|
1369
|
+
* when the thread has no engagement row (nothing to shed). Called when a warm woken
|
|
1370
|
+
* turn judges silence; the caller sheds the thread once the return hits the limit.
|
|
1371
|
+
*/
|
|
1372
|
+
bumpSilentStreak(org: string, surfaceKey: string, threadTs: string): Promise<number>;
|
|
1373
|
+
getEngagement(org: string, surfaceKey: string, threadTs: string): Promise<EngagementRow | null>;
|
|
1374
|
+
/** Disengage a thread (explicit stop). Returns true if one was removed. */
|
|
1375
|
+
disengage(org: string, surfaceKey: string, threadTs: string): Promise<boolean>;
|
|
1376
|
+
/** All engaged threads for an org โ for diagnostics + the dream-cycle sweep. */
|
|
1377
|
+
listEngagements(org: string): Promise<EngagementRow[]>;
|
|
1378
|
+
getChannelSession(org: string, surfaceKey: string): Promise<ChannelSessionRow | null>;
|
|
1379
|
+
/**
|
|
1380
|
+
* Mint a fresh generation for (org, surfaceKey): generation = (current row's generation
|
|
1381
|
+
* ?? 0) + 1, token = `newToken` (caller-computed โ the token's platform-specific shape,
|
|
1382
|
+
* e.g. `${channelId}:oe-sup:<generation>`, is not this store's concern), createdAt =
|
|
1383
|
+
* lastWakeAt = `at`, turnCount + input_tokens_total reset to 0, last_input_tokens reset to
|
|
1384
|
+
* NULL, first_wake_at reset to NULL (no wake delivered on the new generation yet โ H7c),
|
|
1385
|
+
* rotate_marked_at reset to NULL (the operator mark is SPENT by this rotation โ OPE-820).
|
|
1386
|
+
* Upserts the ONE row for this surface โ no generation history is kept (see the {@link
|
|
1387
|
+
* ChannelSessionRow} doc comment). Returns the freshly-minted row.
|
|
1388
|
+
*/
|
|
1389
|
+
rotateChannelSession(org: string, surfaceKey: string, newToken: string, at: string): Promise<ChannelSessionRow>;
|
|
1390
|
+
/**
|
|
1391
|
+
* OPE-1821 โ the PRE-DISPATCH comparison that decides whether a standing seat runs stale code.
|
|
1392
|
+
* Compare `codeFingerprint`/`domainFingerprint` against the pair the row was last served with; on
|
|
1393
|
+
* a difference, write the new pair and answer `"rotate"` (see {@link ChannelSessionRuntimeStamp}).
|
|
1394
|
+
* ONE conditional UPDATE, so the swap is atomic and a concurrent wake on the same stale seat
|
|
1395
|
+
* answers `"current"` instead of rotating it a second time.
|
|
1396
|
+
* It NEVER creates a row: a surface with no seat has no generation to retire.
|
|
1397
|
+
*/
|
|
1398
|
+
stampChannelSessionRuntime(org: string, surfaceKey: string, codeFingerprint: string, domainFingerprint: string): Promise<ChannelSessionRuntimeStamp>;
|
|
1399
|
+
/** Mark the current generation for retirement at its next wake; returns false when no row exists and never creates one. It rotates nothing itself โ the seat's own next wake takes the in-band rotate leg that carries the recorded tail โ and it is idempotent, with the first mark standing. */
|
|
1400
|
+
markChannelSessionRotation(org: string, surfaceKey: string, at: string): Promise<boolean>;
|
|
1401
|
+
/**
|
|
1402
|
+
* Record one more turn on the CURRENT generation: lastWakeAt = `at`, turnCount += 1, and
|
|
1403
|
+
* first_wake_at = COALESCE(first_wake_at, `at`) โ set ONCE, on the first delivered wake
|
|
1404
|
+
* (H7c: this runs only after a successful wake, so it stamps "first wake delivered"). No-op
|
|
1405
|
+
* if no row exists yet for this surface (nothing to touch โ the caller mints one via
|
|
1406
|
+
* rotateChannelSession first).
|
|
1407
|
+
*/
|
|
1408
|
+
touchChannelSession(org: string, surfaceKey: string, at: string): Promise<void>;
|
|
1409
|
+
/**
|
|
1410
|
+
* Add `delta` measured input tokens (`inputTokens + cacheReadTokens`) to the CURRENT
|
|
1411
|
+
* generation's cumulative counter โ the PRIMARY rotation trigger's input (ยง2, #551).
|
|
1412
|
+
* Guarded by `token`: the UPDATE only lands when the row's live token matches, so a
|
|
1413
|
+
* straggler step from a retired generation (a rotation-boundary race) mismatches and is a
|
|
1414
|
+
* no-op โ no phantom counting across generations. Best-effort at the caller (spend hook);
|
|
1415
|
+
* a NULL counter is COALESCE'd to 0 before the add (backfill posture). No-op if no row
|
|
1416
|
+
* exists or the token doesn't match โ RETURNS the matched-row count (0 or 1) so the caller
|
|
1417
|
+
* can tell a legitimate straggler no-op from a systematically missed counter (the #551
|
|
1418
|
+
* counter sat at 0 in prod for weeks because this was silent).
|
|
1419
|
+
*
|
|
1420
|
+
* The SAME write also SETS `last_input_tokens = delta` (OPE-794). One measurement, two rotation
|
|
1421
|
+
* rungs: cumulative accumulation is the running sum, context size is the latest value. They share
|
|
1422
|
+
* a writer so they can never disagree about which step they saw, and the token guard covers both.
|
|
1423
|
+
*/
|
|
1424
|
+
bumpChannelSessionUsage(org: string, surfaceKey: string, token: string, delta: number): Promise<number>;
|
|
1425
|
+
/**
|
|
1426
|
+
* All channel_session rows for `org`, narrowed to registry keys that START WITH `keyPrefix`
|
|
1427
|
+
* (an exact string prefix โ no wildcard interpretation), or every row when `keyPrefix` is
|
|
1428
|
+
* omitted. The one enumeration seam a deploy-time MASS rotation needs (OPE-806): every standing
|
|
1429
|
+
* seat this deployment has ever minted lives under `oe-domain::` (channel windows AND DM seats
|
|
1430
|
+
* alike โ a DM seat is a degenerate window on its own `oe-domain::oe-dm/<surfaceKey>` pseudo-
|
|
1431
|
+
* domain row, unified-supervisor.ts), so `listChannelSessions(org, "oe-domain::")` is a complete
|
|
1432
|
+
* sweep list with no separate DM enumeration needed. A full per-org scan is fine here: the row
|
|
1433
|
+
* count is dozens, not millions โ no pagination.
|
|
1434
|
+
*/
|
|
1435
|
+
listChannelSessions(org: string, keyPrefix?: string): Promise<ChannelSessionRow[]>;
|
|
1436
|
+
/**
|
|
1437
|
+
* Append one entry to a standing seat generation's TAIL ring โ the recorded conversation a
|
|
1438
|
+
* rotation carries into the fresh generation's first wake. `token` is the generation's live
|
|
1439
|
+
* continuation token, so a straggler write from a retired generation lands under the retired
|
|
1440
|
+
* token and is never read again.
|
|
1441
|
+
*
|
|
1442
|
+
* Bounded on write: the adapter prunes the ring to the newest {@link SESSION_TAIL_MAX_ENTRIES}
|
|
1443
|
+
* entries for that token, so a busy generation cannot grow the table without limit. Best-effort
|
|
1444
|
+
* at every caller โ a lost tail entry costs continuity, never a wake.
|
|
1445
|
+
*/
|
|
1446
|
+
appendSessionTail(org: string, surfaceKey: string, token: string, entry: SessionTailEntry): Promise<void>;
|
|
1447
|
+
/**
|
|
1448
|
+
* Read one generation's tail ring, OLDEST-FIRST. The rotate leg calls this with the OUTGOING
|
|
1449
|
+
* generation's token, immediately before minting the next one. Empty โ no recorded tail: a brand
|
|
1450
|
+
* new surface, or a generation that predates this feature (the bootstrap case), and the caller
|
|
1451
|
+
* falls back to a capped platform fetch.
|
|
1452
|
+
*/
|
|
1453
|
+
readSessionTail(org: string, surfaceKey: string, token: string): Promise<SessionTailEntry[]>;
|
|
1454
|
+
/** Drop a generation's ring once its tail has been carried forward. Best-effort housekeeping. */
|
|
1455
|
+
clearSessionTail(org: string, surfaceKey: string, token: string): Promise<void>;
|
|
1456
|
+
/**
|
|
1457
|
+
* Rewrite the TEXT of one `post`-kind ring row, matched by its recorded platform `messageId`, on
|
|
1458
|
+
* ONE generation's ring (OPE-815). The only mutation this ring ever takes, and it is narrow on
|
|
1459
|
+
* purpose: the sole caller is `edit_reply`'s CONFIRMED-success path
|
|
1460
|
+
* (channels/session-tail-record.ts `editPostTail`) โ never a definitive refusal, never an ambiguous
|
|
1461
|
+
* outcome โ so a row changes here only when the platform itself confirmed the room's copy changed.
|
|
1462
|
+
* Every other field on the row is untouched. Returns whether a row matched; `false` on a miss (the
|
|
1463
|
+
* generation already rotated the row off its ring, or no post row there carries this id) is silent
|
|
1464
|
+
* and expected, matching every other write on this ring โ nothing here throws into its caller.
|
|
1465
|
+
*/
|
|
1466
|
+
editSessionTailPost(org: string, surfaceKey: string, token: string, messageId: string, text: string): Promise<boolean>;
|
|
1467
|
+
/** All skills authored for (org, domain), for the resolver merge + list_skills. */
|
|
1468
|
+
listDomainSkills(org: string, domain: string): Promise<DomainSkillRow[]>;
|
|
1469
|
+
/**
|
|
1470
|
+
* Upsert one domain skill (create if absent, else overwrite content/updatedBy/updatedAt)
|
|
1471
|
+
* AND append the body to `domain_skill_revisions` โ one revision per call, the first write
|
|
1472
|
+
* included. The two happen together in the adapter rather than at the caller so that no
|
|
1473
|
+
* write path can produce a body in `domain_skill` with no record of what was armed; see
|
|
1474
|
+
* {@link DomainSkillRevisionRow}. `provenance` names the approval that armed it.
|
|
1475
|
+
*/
|
|
1476
|
+
putDomainSkill(org: string, domain: string, name: string, content: string, updatedBy: string | undefined, updatedAt: string, provenance?: DomainSkillProvenance): Promise<void>;
|
|
1477
|
+
/** Delete one domain skill by name. Returns true if one was removed. The skill's revisions
|
|
1478
|
+
* are NOT removed โ an append-only log does not un-record a body that was once armed. */
|
|
1479
|
+
deleteDomainSkill(org: string, domain: string, name: string): Promise<boolean>;
|
|
1480
|
+
/** Every recorded body for a domain's skills, OLDEST FIRST (`seq` ascending). Narrow to one
|
|
1481
|
+
* skill with `name`; omit it to sweep the whole domain, which is how you reach the history
|
|
1482
|
+
* of a skill that has since been deleted and whose name you no longer have. */
|
|
1483
|
+
listDomainSkillRevisions(org: string, domain: string, name?: string): Promise<DomainSkillRevisionRow[]>;
|
|
1484
|
+
/** Append one usage event (best-effort by contract at the caller โ see spend/usage-events.ts). */
|
|
1485
|
+
appendUsageEvent(entry: UsageEventEntry): Promise<void>;
|
|
1486
|
+
/** Every usage event for one session (org-scoped), oldest-first. Returns the RAW
|
|
1487
|
+
* rows rather than a pre-summed projection: a session_cost tool wants the turn
|
|
1488
|
+
* count and the kind/model breakdown, not just a total, so summing is left to the
|
|
1489
|
+
* caller (cheap โ a session's row count is small). */
|
|
1490
|
+
usageForSession(org: string, sessionId: string): Promise<UsageEventEntry[]>;
|
|
1491
|
+
/** Grouped rollup by (surfaceKey, principalId, kind, routineId, surfaceMode, model) within an org โ the
|
|
1492
|
+
* admin/analytics view + the cost-prediction input. */
|
|
1493
|
+
usageSummary(org: string, filter?: UsageSummaryFilter): Promise<UsageSummaryRow[]>;
|
|
1494
|
+
/**
|
|
1495
|
+
* Opportunistic retention: delete this org's usage events older than `olderThanTs`
|
|
1496
|
+
* (ISO-8601). Returns the count removed. NO-OP on Postgres (see operational/postgres.ts
|
|
1497
|
+
* for why โ the table is append-only there, same posture as audit_entry).
|
|
1498
|
+
*/
|
|
1499
|
+
pruneUsageEvents(org: string, olderThanTs: string): Promise<number>;
|
|
1500
|
+
/** Append one captured model-call body. Best-effort by contract at the caller
|
|
1501
|
+
* (`model/call-capture.ts` swallows its own failures โ a lost capture never breaks a turn). */
|
|
1502
|
+
appendModelCallCapture(write: ModelCallCaptureWrite): Promise<void>;
|
|
1503
|
+
/** One session's captures, oldest first (`seq` ascending). `includeBody: false` returns the
|
|
1504
|
+
* metadata with an EMPTY `bodyGzipB64` โ the cheap read for counting and for the
|
|
1505
|
+
* capture-vs-step cross-check, which never needs the bytes. */
|
|
1506
|
+
modelCallCapturesForSession(org: string, sessionId: string, opts?: ModelCallCaptureReadOptions): Promise<ModelCallCaptureRow[]>;
|
|
1507
|
+
/** Every session with at least one capture row, most-recently-active first โ the retention
|
|
1508
|
+
* operator's "what did this run produce" read (OPE-857). Carries no body byte; a listing, not a
|
|
1509
|
+
* harvest. */
|
|
1510
|
+
modelCallCaptureSessions(org: string): Promise<ModelCallCaptureSessionRow[]>;
|
|
1511
|
+
/** Delete one session's captures. THE retention verb (see the section header): a soak run's
|
|
1512
|
+
* captures are harvested and then dropped. Returns the count removed. */
|
|
1513
|
+
deleteModelCallCapturesForSession(org: string, sessionId: string): Promise<number>;
|
|
1514
|
+
/** Append one proposal; returns the stored row with its store-assigned `id`. */
|
|
1515
|
+
addMemoryProposal(write: MemoryProposalWrite): Promise<MemoryProposalRow>;
|
|
1516
|
+
/** Every proposal recorded for an org, newest-first โ the review worklist. */
|
|
1517
|
+
listMemoryProposals(org: string): Promise<MemoryProposalRow[]>;
|
|
1518
|
+
/** This person's row, or null when this deployment has never delivered to them and they have never
|
|
1519
|
+
* stopped it. Null therefore reads as "first delivery, not stopped", which is the correct floor. */
|
|
1520
|
+
getDmAudience(org: string, address: string): Promise<DmAudienceRow | null>;
|
|
1521
|
+
/**
|
|
1522
|
+
* Record that a proactive DM landed. Upsert; `firstDmAt` is set ONLY on the first call and never
|
|
1523
|
+
* moved after (COALESCE, in both adapters) โ it is the fact "the carded first delivery already
|
|
1524
|
+
* happened", so a later write that reset it would card a second time and, worse, would card again
|
|
1525
|
+
* after every delivery. NEVER touches `stoppedAt`.
|
|
1526
|
+
*/
|
|
1527
|
+
markDmAudienceDelivered(org: string, address: string, at: string): Promise<void>;
|
|
1528
|
+
/** Set the recipient's STOP. Upsert, so a person may stop before any delivery has landed (a stop
|
|
1529
|
+
* written by somebody who was carded and then said no). Idempotent: re-stopping keeps the
|
|
1530
|
+
* ORIGINAL `stoppedAt`, so the trail keeps when the boundary was first drawn. */
|
|
1531
|
+
setDmAudienceStopped(org: string, address: string, at: string): Promise<void>;
|
|
1532
|
+
/** Clear the recipient's stop. Returns true when a stop was actually lifted, so the caller can tell
|
|
1533
|
+
* "resumed" apart from "there was nothing to resume" and never claims an act that did not happen. */
|
|
1534
|
+
clearDmAudienceStopped(org: string, address: string): Promise<boolean>;
|
|
1535
|
+
/** Every DM-audience row for an org โ the operator's "who has stopped us" read. Small by nature:
|
|
1536
|
+
* one row per person this deployment has ever proactively DMed. */
|
|
1537
|
+
listDmAudience(org: string): Promise<DmAudienceRow[]>;
|
|
1538
|
+
/**
|
|
1539
|
+
* Execute one compiled, constrained analytics query (OPE-66) and return the raw result rows,
|
|
1540
|
+
* each keyed by the compiled query's SELECT aliases. READ-ONLY by construction โ a
|
|
1541
|
+
* CompiledAnalyticsQuery is SELECT-only (no mutation verbs in the grammar); values reach SQL only
|
|
1542
|
+
* as bind params. The org filter is already the FIRST scope conjunct in `compiled.where`; Postgres
|
|
1543
|
+
* org RLS backstops it. Adapters assemble the SQL via analytics/compile.ts's assembleAnalyticsSql
|
|
1544
|
+
* (rendering the placeholder style) so the raw SQL string stays inside the adapter. Numeric sums
|
|
1545
|
+
* come back per-engine (SQLite number, Postgres bigint-as-string) โ the caller (analytics/
|
|
1546
|
+
* execute.ts) coerces.
|
|
1547
|
+
*/
|
|
1548
|
+
runAnalyticsQuery(compiled: CompiledAnalyticsQuery): Promise<Record<string, unknown>[]>;
|
|
1549
|
+
/** Insert one verified delivery iff its full identity is new. The first payload wins for the
|
|
1550
|
+
* row's lifetime; duplicates never rewrite it. Also prunes this org/source's elapsed completed
|
|
1551
|
+
* tombstones. */
|
|
1552
|
+
enqueueIngressDelivery(org: string, write: IngressDeliveryWrite): Promise<boolean>;
|
|
1553
|
+
/** Content-free pending/stale candidates, oldest first. An active lease is omitted until
|
|
1554
|
+
* `claimedAt <= staleBeforeIso`; completed rows never appear. */
|
|
1555
|
+
listDueIngressDeliveries(org: string, source: string, nowIso: string, staleBeforeIso: string, limit: number): Promise<readonly DueIngressDelivery[]>;
|
|
1556
|
+
/** Atomic exact-key claim. Returns the payload only to the winner. A free or stale lease may be
|
|
1557
|
+
* claimed when the row is due and incomplete; an active/completed/missing row returns null. */
|
|
1558
|
+
claimIngressDelivery(org: string, key: IngressDeliveryKey, claimId: string, claimedAtIso: string, staleBeforeIso: string): Promise<ClaimedIngressDelivery | null>;
|
|
1559
|
+
/** Guarded retry release. Only the current claim holder can clear its lease and set the next
|
|
1560
|
+
* eligible instant. Pending rows do not expire: accepted work remains recoverable after outages. */
|
|
1561
|
+
releaseIngressDelivery(org: string, key: IngressDeliveryKey, claimId: string, availableAtIso: string): Promise<boolean>;
|
|
1562
|
+
/** Guarded completion. Erases payload bytes in the same CAS and retains only a content-free
|
|
1563
|
+
* dedupe tombstone until the caller's validated deadline (at most
|
|
1564
|
+
* {@link INGRESS_DELIVERY_TOMBSTONE_RETENTION_MS} after completion). */
|
|
1565
|
+
completeIngressDelivery(org: string, key: IngressDeliveryKey, claimId: string, completedAtIso: string, retainUntilIso: string): Promise<boolean>;
|
|
1566
|
+
/** Guarded deletion for a DEFINITIVE pre-dispatch refusal. It is deliberately narrower than a
|
|
1567
|
+
* retry release: removing the row makes a vendor redelivery eligible to enqueue again. */
|
|
1568
|
+
discardIngressDelivery(org: string, key: IngressDeliveryKey, claimId: string): Promise<boolean>;
|
|
1569
|
+
/** Records key as handled: true is the first sighting within ttlMs and false is a duplicate, and two racing calls resolve to exactly one true. Both prunes are org-scoped and ttlMs is per key and per caller, so any statement added here must stay keyed by org, and by key wherever a caller's TTL is involved. */
|
|
1570
|
+
markEventSeen(org: string, key: string, at: string, ttlMs: number): Promise<boolean>;
|
|
1571
|
+
/**
|
|
1572
|
+
* READ-ONLY twin of {@link OperationalStore.markEventSeen}: true when `key` has a live
|
|
1573
|
+
* (non-expired, per the same `ttlMs` semantics) row for this org, false otherwise. Never
|
|
1574
|
+
* writes โ a caller that must know "is this already marked" before deciding whether marking
|
|
1575
|
+
* is even safe (OPE-436: a mark written from inside a step that might still crash before it
|
|
1576
|
+
* commits) needs a check with no side effect of its own.
|
|
1577
|
+
*/
|
|
1578
|
+
hasEventSeen(org: string, key: string, at: string, ttlMs: number): Promise<boolean>;
|
|
1579
|
+
/** Drops key's row, so the next markEventSeen on it is a first sighting again. Release a claim only when the platform PROVED nothing landed: on an ambiguous failure the claim must stay, because a retry could double-post. */
|
|
1580
|
+
forgetEventSeen(org: string, key: string): Promise<void>;
|
|
1581
|
+
/** Appends one delivery to the capture window. FALSE is the ordinary outcome โ the window is shut for all but a bounded period after arming โ and a capture failure must never affect whether a delivery routes. Every bound is enforced in the adapter, in order: the absolute-age sweep, then the window deadline, then the row count. */
|
|
1582
|
+
captureDelivery(org: string, source: string, documentJson: string, at: string, captureUntil: string, maxRows: number): Promise<boolean>;
|
|
1583
|
+
/**
|
|
1584
|
+
* The captured window for `source`, OLDEST FIRST โ the order the `seq` numbering runs in, which is
|
|
1585
|
+
* the order a human reads them in and says "17, 21 and 28" about. Never applies a read-time TTL:
|
|
1586
|
+
* rows die on the prune-on-write path, and a read that silently hid rows the table still holds
|
|
1587
|
+
* would make the numbering disagree with itself between two calls.
|
|
1588
|
+
*/
|
|
1589
|
+
listCapturedDeliveries(org: string, source: string, limit: number): Promise<readonly CapturedDeliveryRow[]>;
|
|
1590
|
+
/**
|
|
1591
|
+
* Drop `source`'s whole captured window. Called when a window is (re-)armed, so numbering restarts
|
|
1592
|
+
* at 1 against a set that is entirely from the current window โ and reachable as the disarm/forget
|
|
1593
|
+
* action, which is why the capture window is not a thing a deployment can only wait out.
|
|
1594
|
+
*/
|
|
1595
|
+
clearCapturedDeliveries(org: string, source: string): Promise<void>;
|
|
1596
|
+
/** Records the originating surface and conversation for one wake; the upsert updates target_json, created_at and window_token ONLY. It must never touch answered_at or audited_at โ a retry would make an answered wake answerable again โ and inbound is sticky-true, so a redrive cannot clear a flag a human's message set. */
|
|
1597
|
+
putUnifiedWakeTarget(org: string, wakeId: string, targetJson: string, at: string, ttlMs: number, windowToken?: string, inbound?: boolean): Promise<void>;
|
|
1598
|
+
/** The stored origin JSON for a wakeId, or null when unknown/expired โ the caller FAILS
|
|
1599
|
+
* CLOSED (posts nothing) on null, never guesses a target. */
|
|
1600
|
+
getUnifiedWakeTarget(org: string, wakeId: string): Promise<string | null>;
|
|
1601
|
+
/** The FULL row (origin JSON + createdAt + windowToken + the answered marks) for a wakeId, or
|
|
1602
|
+
* null when unknown. Read by the answerable-reply fence, which needs the lifecycle columns
|
|
1603
|
+
* `getUnifiedWakeTarget` deliberately doesn't return. NOTE: like `getUnifiedWakeTarget` this
|
|
1604
|
+
* applies NO read-time TTL โ the row's `createdAt` is returned and the CALLER enforces the
|
|
1605
|
+
* bound (rows die on disk only via the opportunistic prune-on-write, which on a quiet org may
|
|
1606
|
+
* not run for days). */
|
|
1607
|
+
getUnifiedWakeRecord(org: string, wakeId: string): Promise<UnifiedWakeRecord | null>;
|
|
1608
|
+
/** Mark a wake ANSWERED at `at` (ISO-8601) by `turnId`. Idempotent UPDATE โ a missing row is a
|
|
1609
|
+
* no-op (never an insert: an answered mark without an origin is meaningless). No CAS is needed:
|
|
1610
|
+
* eve permits one active turn per continuation token and the fence confines writers to one
|
|
1611
|
+
* window. */
|
|
1612
|
+
markUnifiedWakeAnswered(org: string, wakeId: string, at: string, turnId?: string): Promise<void>;
|
|
1613
|
+
/** Stamps audited_at on every named wake that lacks one โ the turn-end wake-accounting horizon, so a wake is reported unaccounted at most once. It is not markUnifiedWakeAnswered and must never be merged with it: no query filters on this column, so it changes no gate's behaviour. */
|
|
1614
|
+
markUnifiedWakesAudited(org: string, wakeIds: readonly string[], at: string): Promise<void>;
|
|
1615
|
+
/** The unanswered, inbound, not-yet-audited wakes on one window token, oldest first. It is a separate method so the freshness gate's query stays byte-identical, and filtering audited rows in SQL keeps limit bounding only the rows this audit still has to consider. */
|
|
1616
|
+
listUnauditedUnifiedWakes(org: string, windowToken: string, limit: number): Promise<readonly PendingUnifiedWake[]>;
|
|
1617
|
+
/** The unanswered, inbound wakes on one window token registered after afterIso, oldest first and capped at limit. Inbound-only is load-bearing: a delegating turn mints its own task and completion wakes on the same conversation, and counting them would report every delegating turn as stale. */
|
|
1618
|
+
listPendingUnifiedWakes(org: string, windowToken: string, afterIso: string, limit: number): Promise<readonly PendingUnifiedWake[]>;
|
|
1619
|
+
/** Upsert the owner of (org, channelKey, threadKey). Rows older than `ttlMs` are pruned
|
|
1620
|
+
* opportunistically on write, same posture as putUnifiedWakeTarget. */
|
|
1621
|
+
putThreadOwner(org: string, channelKey: string, threadKey: string, taskToken: string, at: string, ttlMs: number): Promise<void>;
|
|
1622
|
+
getThreadOwner(org: string, channelKey: string, threadKey: string): Promise<string | null>;
|
|
1623
|
+
/** Clear the owner of (org, channelKey, threadKey). Returns true if a row was removed. */
|
|
1624
|
+
clearThreadOwner(org: string, channelKey: string, threadKey: string): Promise<boolean>;
|
|
1625
|
+
/** Upsert the thread-seat row. Same opportunistic org-scoped TTL prune as putThreadOwner. */
|
|
1626
|
+
putThreadSeatState(org: string, row: ThreadSeatStateWrite, at: string, ttlMs: number): Promise<void>;
|
|
1627
|
+
/** The thread-seat row for one thread, or null when unwritten/expired. */
|
|
1628
|
+
getThreadSeatState(org: string, channelKey: string, threadKey: string): Promise<ThreadSeatStateRow | null>;
|
|
1629
|
+
/** Upsert the anchor for one in-flight turn on `windowKey`. Rows older than `ttlMs` are pruned
|
|
1630
|
+
* opportunistically on write (org-scoped), same posture as putThreadOwner. */
|
|
1631
|
+
putTurnAnchor(org: string, anchor: TurnAnchorWrite, at: string, ttlMs: number): Promise<void>;
|
|
1632
|
+
getTurnAnchorByWindow(org: string, windowKey: string): Promise<TurnAnchorRow | null>;
|
|
1633
|
+
getTurnAnchorByAnchor(org: string, anchorKey: string): Promise<TurnAnchorRow | null>;
|
|
1634
|
+
/** The MOST RECENT anchor in a channel (`<platform>:<channelId>`), or null โ the slash-command
|
|
1635
|
+
* resolution arm. Newest by `created_at`; ties are broken by `window_key` for determinism. */
|
|
1636
|
+
getLatestTurnAnchorForChannel(org: string, channelKey: string): Promise<TurnAnchorRow | null>;
|
|
1637
|
+
/** Clear the anchor on `windowKey`. Returns whether a row was removed. */
|
|
1638
|
+
clearTurnAnchor(org: string, windowKey: string): Promise<boolean>;
|
|
1639
|
+
/** Upsert a row. Rows older than `ttlMs` are pruned opportunistically on write, same posture as
|
|
1640
|
+
* putUnifiedWakeTarget/putThreadOwner. */
|
|
1641
|
+
putTaskResult(org: string, taskId: string, resultJson: string, at: string, ttlMs: number): Promise<void>;
|
|
1642
|
+
/** Put-if-absent variant: INSERT โฆ ON CONFLICT DO NOTHING, reporting whether THIS call inserted the
|
|
1643
|
+
* row โ so a best-effort writer can never overwrite an authoritative one it raced. Same
|
|
1644
|
+
* opportunistic TTL prune as put. */
|
|
1645
|
+
putTaskResultIfAbsent(org: string, taskId: string, resultJson: string, at: string, ttlMs: number): Promise<boolean>;
|
|
1646
|
+
/** The stored JSON for a key, or null when unwritten/expired. */
|
|
1647
|
+
getTaskResult(org: string, taskId: string): Promise<string | null>;
|
|
1648
|
+
/** Delete one row. Returns true if a row was removed. */
|
|
1649
|
+
deleteTaskResult(org: string, taskId: string): Promise<boolean>;
|
|
1650
|
+
/** Upsert one uploaded attachment under (org, fileId). Rows older than `ttlMs` are pruned
|
|
1651
|
+
* opportunistically on write, same posture as putUnifiedWakeTarget/putTaskResult. */
|
|
1652
|
+
putSlackAttachment(org: string, fileId: string, rec: SlackAttachmentRow, at: string, ttlMs: number): Promise<void>;
|
|
1653
|
+
/** The stored attachment record for (org, fileId), or null when unknown/expired โ the resolver
|
|
1654
|
+
* FAILS CLOSED on null (never fetches an arbitrary URL for an unknown id). */
|
|
1655
|
+
getSlackAttachment(org: string, fileId: string): Promise<SlackAttachmentRow | null>;
|
|
1656
|
+
/** Insert one freshly-proposed pending action (status "pending" by construction). */
|
|
1657
|
+
addPendingAction(row: PendingActionRow): Promise<void>;
|
|
1658
|
+
/** Insert-if-absent twin of addPendingAction, reporting whether THIS call inserted the row. The auto-approved wedge needs it because its row id is derived from the decision and eve re-runs an uncommitted step body on crash-recovery redelivery; the card path keeps the plain insert, where a collision is a bug. */
|
|
1659
|
+
addPendingActionIfAbsent(row: PendingActionRow): Promise<boolean>;
|
|
1660
|
+
getPendingAction(org: string, id: string): Promise<PendingActionRow | null>;
|
|
1661
|
+
/** Every still-"pending" action for an org, oldest first โ the control-plane list
|
|
1662
|
+
* view's read model (decided/expired rows are excluded; they're terminal). */
|
|
1663
|
+
listPendingActions(org: string): Promise<readonly PendingActionRow[]>;
|
|
1664
|
+
/** Every still-"pending" action for an org whose TTL has passed (`expires_at <= nowIso`),
|
|
1665
|
+
* oldest first โ the sweep's read model (schedules/tidy.ts โ approvals/flow.ts
|
|
1666
|
+
* sweepExpiredPendings). An unclicked pending otherwise never gets a terminal row; the
|
|
1667
|
+
* sweep CAS-expires each, audits `approval.expired`, and (task #105) routes best-effort
|
|
1668
|
+
* expiry feedback via the row's mint-frozen `postedTo` (NULL โ audit-only, no feedback). */
|
|
1669
|
+
listExpiredPendingActions(org: string, nowIso: string): Promise<readonly PendingActionRow[]>;
|
|
1670
|
+
/** Every "rejected" action for an org decided at or after `sinceIso`, newest decision first. The propose path reads it to REPORT a fresh reject of the same proposal to the next proposer (OPE-2071); it never blocks a card. */
|
|
1671
|
+
listRejectedActionsSince(org: string, sinceIso: string): Promise<readonly PendingActionRow[]>;
|
|
1672
|
+
/** Record the card's message ts after the initial post (fire-once, no CAS needed). */
|
|
1673
|
+
setPendingActionMessage(org: string, id: string, messageTs: string): Promise<void>;
|
|
1674
|
+
/**
|
|
1675
|
+
* Compare-and-set the decision: a single `UPDATE ... WHERE org=? AND id=? AND
|
|
1676
|
+
* status='pending'`, so of two racing calls (two clicks, or a click racing an
|
|
1677
|
+
* expiry sweep) exactly one changes a row. Returns whether THIS call won.
|
|
1678
|
+
*/
|
|
1679
|
+
decidePendingAction(org: string, id: string, status: "approved" | "rejected" | "expired", decidedBy: string, decidedAt: string): Promise<boolean>;
|
|
1680
|
+
/** Upsert one session-approval memo (idempotent per (org, sessionId, kind)); prunes expired rows. */
|
|
1681
|
+
setSessionApproval(row: SessionApprovalRow): Promise<void>;
|
|
1682
|
+
/** The LIVE memo for (org, sessionId, kind) โ null when absent OR expired (expires_at <= nowIso). */
|
|
1683
|
+
getSessionApproval(org: string, sessionId: string, kind: string, nowIso: string): Promise<SessionApprovalRow | null>;
|
|
1684
|
+
/**
|
|
1685
|
+
* EVERY live memo under one key (OPE-152), kind-ascending. A session grant never needed this โ
|
|
1686
|
+
* nothing renders a session's grant set, and the session dies on its own โ but a routine's declared
|
|
1687
|
+
* permission is
|
|
1688
|
+
* standing and unattended, so the set has to be readable or it is authority nobody can see
|
|
1689
|
+
* (`list_routines`, via routines/declared-permissions.ts).
|
|
1690
|
+
*/
|
|
1691
|
+
listSessionApprovals(org: string, sessionId: string, nowIso: string): Promise<SessionApprovalRow[]>;
|
|
1692
|
+
/**
|
|
1693
|
+
* REVOKE every memo under one key (OPE-152); returns how many rows went. The FIRST delete on this
|
|
1694
|
+
* seam, and it is deliberate: a session grant's death mechanism is the session token's generation,
|
|
1695
|
+
* so nothing ever had to remove one, but a routine's declared permission must be withdrawable from the
|
|
1696
|
+
* channel WITHOUT cancelling the routine โ an off switch that also stops the work is not an off
|
|
1697
|
+
* switch for the authority. (`revoke_routine_permissions`, via routines/declared-permissions.ts.)
|
|
1698
|
+
*/
|
|
1699
|
+
revokeSessionApprovals(org: string, sessionId: string): Promise<number>;
|
|
1700
|
+
/** Deletes every inert legacy connector.op: memo this org holds under a routine permission key, whatever its expiry. Such a row lifts nothing on any code path, which is what makes an unattended sweep safe here; expiry is deliberately not in the predicate, because these rows carry the routine grain's far-future sentinel. */
|
|
1701
|
+
sweepLegacyConnectorOpRows(org: string): Promise<number>;
|
|
1702
|
+
/** Upsert one credential envelope under (org, rec.ref). `rec.ciphertext` is opaque to the store. */
|
|
1703
|
+
putStoredCredential(org: string, rec: StoredCredentialRow): Promise<void>;
|
|
1704
|
+
/** The row stored under (org, ref), or null when unknown โ the broker FAILS CLOSED on null. */
|
|
1705
|
+
getStoredCredential(org: string, ref: string): Promise<StoredCredentialRow | null>;
|
|
1706
|
+
/** Destroys the envelope stored under (org, ref); idempotent, answering false when nothing was there. It is a real delete rather than a status flip because the row IS the secret: severing reachability alone leaves a live, decryptable token behind. What happened is recorded in the append-only audit log instead. */
|
|
1707
|
+
deleteStoredCredential(org: string, ref: string): Promise<boolean>;
|
|
1708
|
+
/** Stored-credential refs for an org, and deliberately refs only: a listing carrying envelopes would put every secret in the org through a path with no reason to hold one. refPrefix goes into the SQL predicate and is matched literally, so an in-product caller is never handed names outside the namespace it owns. */
|
|
1709
|
+
listStoredCredentialRefs(org: string, refPrefix?: string): Promise<readonly string[]>;
|
|
1710
|
+
/** Upsert one discovered installation under (org, rec.owner). Idempotent โ a redelivered
|
|
1711
|
+
* `created` rewrites the same row. */
|
|
1712
|
+
putGitHubInstallation(org: string, rec: GitHubInstallationRow): Promise<void>;
|
|
1713
|
+
/** Forget one owner's discovered installation (an uninstall/suspend delivery). Returns true if
|
|
1714
|
+
* a row was removed. Never touches the env map โ that composition happens above the store. */
|
|
1715
|
+
deleteGitHubInstallation(org: string, owner: string): Promise<boolean>;
|
|
1716
|
+
/** Every discovered installation for an org, owner-ascending โ the hydration read. */
|
|
1717
|
+
listGitHubInstallations(org: string): Promise<readonly GitHubInstallationRow[]>;
|
|
1718
|
+
/**
|
|
1719
|
+
* Atomically claim (org, ref) for single-flight refresh: set (claim_id, claimed_at) IFF the row is
|
|
1720
|
+
* unclaimed (claim_id NULL) OR its existing claim's lease has expired (claimed_at โค `staleBeforeIso`
|
|
1721
|
+
* โ a crashed winner never wedges the row). Returns true IFF THIS call won the claim. A missing row
|
|
1722
|
+
* returns false. `claimId` is a random, non-secret id; `claimedAtIso`/`staleBeforeIso` are ISO-8601.
|
|
1723
|
+
*/
|
|
1724
|
+
claimStoredCredential(org: string, ref: string, claimId: string, claimedAtIso: string, staleBeforeIso: string): Promise<boolean>;
|
|
1725
|
+
/**
|
|
1726
|
+
* Release a claim on (org, ref) IFF `claimId` still holds it (a guarded clear โ a caller whose lease
|
|
1727
|
+
* was stolen never clears the new owner's claim). Returns true iff a claim was cleared; idempotent.
|
|
1728
|
+
*/
|
|
1729
|
+
releaseStoredCredential(org: string, ref: string, claimId: string): Promise<boolean>;
|
|
1730
|
+
/** Insert one freshly-minted intake (usedAt NULL by construction). */
|
|
1731
|
+
addCredentialIntake(row: CredentialIntakeRow): Promise<void>;
|
|
1732
|
+
getCredentialIntake(org: string, id: string): Promise<CredentialIntakeRow | null>;
|
|
1733
|
+
/** Compare-and-set single-use: stamp usedAt only when it was NULL. Returns whether THIS call won. */
|
|
1734
|
+
consumeCredentialIntake(org: string, id: string, usedAt: string): Promise<boolean>;
|
|
1735
|
+
/**
|
|
1736
|
+
* Arm (or re-arm) `hookId`'s window. UPSERT: re-arming overwrites, because a second window is
|
|
1737
|
+
* never wanted alongside the first โ the numbering the human reads is only meaningful over one.
|
|
1738
|
+
* There is deliberately NO disarm verb: `capture_events` disarms by re-arming for the shortest
|
|
1739
|
+
* window and clearing the rows, so "forget what you captured" is one act rather than two that can
|
|
1740
|
+
* half-run.
|
|
1741
|
+
*/
|
|
1742
|
+
armWebhookCaptureWindow(org: string, hookId: string, captureUntil: string, armedBy: string, at: string): Promise<void>;
|
|
1743
|
+
/**
|
|
1744
|
+
* The arm state for `hookId`, or null when it was never armed. Returns an EXPIRED row as-is rather
|
|
1745
|
+
* than filtering it out: expiry is a comparison the caller makes against its own clock
|
|
1746
|
+
* (`captureWindowOpen`), and a store that silently hid closed windows would make "when did this
|
|
1747
|
+
* last get armed?" unanswerable from the operator plane.
|
|
1748
|
+
*/
|
|
1749
|
+
getWebhookCaptureWindow(org: string, hookId: string): Promise<WebhookCaptureWindowRow | null>;
|
|
1750
|
+
/** Upsert one link-set (create, or update handle/status/updatedAt for an existing id). */
|
|
1751
|
+
putLinkSet(org: string, row: LinkSetRow): Promise<void>;
|
|
1752
|
+
/** One link-set by its opaque id, or null. There is deliberately NO by-handle lookup. */
|
|
1753
|
+
getLinkSet(org: string, id: string): Promise<LinkSetRow | null>;
|
|
1754
|
+
/** Every link-set for an org, id-ascending โ the admin list view. */
|
|
1755
|
+
listLinkSets(org: string): Promise<readonly LinkSetRow[]>;
|
|
1756
|
+
/**
|
|
1757
|
+
* Compare-and-set a link-set's status: the UPDATE lands only when the row's CURRENT status is
|
|
1758
|
+
* one of `from`, so `revoked` (never in any caller's `from`) is terminal at the query layer as
|
|
1759
|
+
* well as in the write API. Returns whether THIS call changed a row.
|
|
1760
|
+
*/
|
|
1761
|
+
updateLinkSetStatus(org: string, id: string, from: readonly LinkSetStatus[], to: LinkSetStatus, at: string): Promise<boolean>;
|
|
1762
|
+
/**
|
|
1763
|
+
* INSERT one linked id, or report that the account is already claimed. `INSERT โฆ ON CONFLICT DO
|
|
1764
|
+
* NOTHING` on the (org, platform, tenant, native_id) PK, returning TRUE only when THIS call
|
|
1765
|
+
* inserted โ so two racing joins resolve to exactly one, and "an account is exactly one person"
|
|
1766
|
+
* is a property of the engine rather than of a check-then-write the caller could lose.
|
|
1767
|
+
*/
|
|
1768
|
+
insertLinkedId(org: string, row: LinkedIdRow): Promise<boolean>;
|
|
1769
|
+
/** The row claiming (org, platform, tenant, nativeId), whatever its status, or null when
|
|
1770
|
+
* unclaimed. */
|
|
1771
|
+
getLinkedId(org: string, platform: string, tenant: string, nativeId: string): Promise<LinkedIdRow | null>;
|
|
1772
|
+
/** Linked ids for an org, narrowed to one set with `linkSetId`; (platform, tenant, nativeId)-ascending. */
|
|
1773
|
+
listLinkedIds(org: string, linkSetId?: string): Promise<readonly LinkedIdRow[]>;
|
|
1774
|
+
/**
|
|
1775
|
+
* Compare-and-set one linked id's status + its evidence stamp. Lands only when the row's CURRENT
|
|
1776
|
+
* status is one of `from` โ `revoked` is never a legal `from`, which is what makes revocation
|
|
1777
|
+
* terminal at the query layer. Returns whether THIS call changed a row.
|
|
1778
|
+
*/
|
|
1779
|
+
updateLinkedIdStatus(org: string, platform: string, tenant: string, nativeId: string, from: readonly LinkedIdStatus[], to: LinkedIdStatus, establishedBy: string, evidenceJson: string | undefined, at: string): Promise<boolean>;
|
|
1780
|
+
/** Delete one linked id โ the person's own SEVER (the account becomes joinable again). Returns
|
|
1781
|
+
* true if a row went. Admin revocation deliberately does NOT use this: it tombstones instead. */
|
|
1782
|
+
deleteLinkedId(org: string, platform: string, tenant: string, nativeId: string): Promise<boolean>;
|
|
1783
|
+
/** Tombstone every not-already-revoked id of one set (the offboarding cascade). Returns the count. */
|
|
1784
|
+
revokeLinkedIdsForSet(org: string, linkSetId: string, at: string): Promise<number>;
|
|
1785
|
+
/** The platforms still holding linked-id rows with an empty tenant โ the backfill worklist. It is deployment-wide rather than org-scoped, because the tenant a row should carry comes from the deployment's own reach, and it makes no judgement about which platforms are tenant-scoped. */
|
|
1786
|
+
unbackfilledLinkedIdPlatforms(): Promise<readonly string[]>;
|
|
1787
|
+
/**
|
|
1788
|
+
* Stamp `tenant` onto every linked-id row of `platform` that still carries `""`. Returns how many
|
|
1789
|
+
* rows moved. Deployment-wide, for the reason above; idempotent, because a second run matches
|
|
1790
|
+
* nothing. NEVER overwrites a row that already names a tenant โ a stamped row is a delivery's own
|
|
1791
|
+
* statement about itself and a backfill is only ever allowed to fill a blank.
|
|
1792
|
+
*/
|
|
1793
|
+
backfillLinkedIdTenant(platform: string, tenant: string, at: string): Promise<number>;
|
|
1794
|
+
/** Insert one freshly-minted challenge (status "pending" by construction). */
|
|
1795
|
+
addLinkChallenge(org: string, row: LinkChallengeRow): Promise<void>;
|
|
1796
|
+
getLinkChallenge(org: string, id: string): Promise<LinkChallengeRow | null>;
|
|
1797
|
+
/** Challenges matching a filter, newest-first โ the initiator's own pending-claim lookup and
|
|
1798
|
+
* the admin view. Never exposes the nonce in any queryable form beyond its hash. */
|
|
1799
|
+
listLinkChallenges(org: string, filter?: LinkChallengeFilter): Promise<readonly LinkChallengeRow[]>;
|
|
1800
|
+
/** Single-use compare-and-set claim: returns the row as claimed, or null when nothing was claimable โ spent, expired, denied and unknown are indistinguishable on purpose, so a claim probe cannot become a nonce oracle. The self-claim exclusion is in the statement, because the initiator's own next message in the issuing DM can easily contain the code. */
|
|
1801
|
+
claimLinkChallenge(org: string, nonceHash: string, platform: string, tenant: string, nativeId: string, at: string, backNonceHash?: string): Promise<LinkChallengeRow | null>;
|
|
1802
|
+
/** Directory-transport consent: a compare-and-set that lands only while the row is pending, at is before expires_at, and the consenting account IS the one the challenge named. The target match is a conjunct rather than a caller-side check, because consent from any other account must satisfy nothing. */
|
|
1803
|
+
consentLinkChallenge(org: string, id: string, consenter: {
|
|
1804
|
+
readonly platform: string;
|
|
1805
|
+
readonly tenant: string;
|
|
1806
|
+
readonly nativeId: string;
|
|
1807
|
+
}, at: string, backNonceHash?: string): Promise<LinkChallengeRow | null>;
|
|
1808
|
+
/** CAS a claimed challenge to its terminal outcome (`ratified` | `denied`), or a pending/claimed
|
|
1809
|
+
* one to `expired`. Lands only from `from`; returns whether THIS call decided it. */
|
|
1810
|
+
decideLinkChallenge(org: string, id: string, from: readonly LinkChallengeStatus[], to: LinkChallengeStatus, at: string): Promise<boolean>;
|
|
1811
|
+
/** Sweep: mark every still-open (pending|claimed) challenge whose TTL has passed `expired`.
|
|
1812
|
+
* Called opportunistically on write (the prune-on-write posture every TTL'd table here uses โ
|
|
1813
|
+
* a serverless deployment has no reliable cron to hang a sweep on). Returns the count. */
|
|
1814
|
+
expireLinkChallenges(org: string, nowIso: string): Promise<number>;
|
|
1815
|
+
addCredentialGrantAsk(org: string, row: CredentialGrantAskRow): Promise<void>;
|
|
1816
|
+
getCredentialGrantAsk(org: string, id: string): Promise<CredentialGrantAskRow | null>;
|
|
1817
|
+
/** The one pending, unexpired ask for (requester, owner, verb, resource) โ the anti-nag control, so a second ask while one is pending answers "already asked" instead of DMing the owner again. Expiry is in the predicate, never a status read alone: a lapsed pending row must read as gone or it blocks every later ask forever. */
|
|
1818
|
+
liveCredentialGrantAsk(org: string, requesterPrincipalId: string, ownerPrincipalId: string, verb: string, resource: string, nowIso: string): Promise<CredentialGrantAskRow | null>;
|
|
1819
|
+
/**
|
|
1820
|
+
* APPROVE: move `pending` โ `approved` and stamp `grantId`, IFF the ask is still pending AND `at`
|
|
1821
|
+
* is before its `expires_at`. Returns the row as approved, or null.
|
|
1822
|
+
*
|
|
1823
|
+
* ๐ด THE TTL IS A CONJUNCT. A late click on a stale card must LOSE THIS CAS, not be caught by a UI
|
|
1824
|
+
* state โ the card lives in a DM the owner can scroll back to at any time, so the row is the only
|
|
1825
|
+
* thing that can refuse it.
|
|
1826
|
+
*/
|
|
1827
|
+
approveCredentialGrantAsk(org: string, id: string, mode: CredentialGrantMode, grantId: string, at: string): Promise<CredentialGrantAskRow | null>;
|
|
1828
|
+
/** CAS one ask to a terminal outcome (`declined` | `expired`). Lands only from `from`; returns
|
|
1829
|
+
* whether THIS call decided it, so two racing deciders resolve to exactly one true. */
|
|
1830
|
+
decideCredentialGrantAsk(org: string, id: string, from: readonly CredentialGrantAskState[], to: CredentialGrantAskState, at: string): Promise<boolean>;
|
|
1831
|
+
/**
|
|
1832
|
+
* Stamp where the owner's DM card landed (OPE-1112). Called once, right after delivery.
|
|
1833
|
+
*
|
|
1834
|
+
* A separate statement rather than a column on the insert because the card is delivered AFTER the
|
|
1835
|
+
* row exists โ {@link OperationalStore.addCredentialGrantAsk} must land first so a delivery
|
|
1836
|
+
* failure has a row to close.
|
|
1837
|
+
*/
|
|
1838
|
+
setCredentialGrantAskCard(org: string, id: string, surfaceId: string, messageId: string): Promise<void>;
|
|
1839
|
+
/** Every still-pending ask whose TTL has passed, as ROWS rather than a count: a lapsed ask owes a message to the requester and a rewrite of the owner's card, and neither address survives anywhere but the row. The caller CASes each with decideCredentialGrantAsk, so a click racing the sweep still resolves to one decider. */
|
|
1840
|
+
listExpiredCredentialGrantAsks(org: string, nowIso: string): Promise<readonly CredentialGrantAskRow[]>;
|
|
1841
|
+
/** Every pending, unexpired ask for one chat โ the rows holding a mounted tool name no grant row carries yet. A name is claimed at ask time, not approve time, so reading only the grant rows reads the chat as holding fewer names than it does for the whole ask TTL. */
|
|
1842
|
+
pendingCredentialGrantAsksForScope(org: string, scopeKey: string, nowIso: string): Promise<readonly CredentialGrantAskRow[]>;
|
|
1843
|
+
addCredentialGrant(org: string, row: CredentialGrantRow): Promise<void>;
|
|
1844
|
+
getCredentialGrant(org: string, id: string): Promise<CredentialGrantRow | null>;
|
|
1845
|
+
/**
|
|
1846
|
+
* EVERY grant ISSUED to one chat, whatever its current status, newest first.
|
|
1847
|
+
*
|
|
1848
|
+
* ๐ด STATUS IS NOT A FILTER HERE, and that is a correctness requirement rather than a convenience.
|
|
1849
|
+
* The mount projects this list, and eve re-runs the `session.started` resolvers on the cold-heal
|
|
1850
|
+
* path. A resolver that mounted on STATUS would silently drop a tool whose description is already
|
|
1851
|
+
* in the persisted transcript. Mount on EXISTENCE; refuse on STATE (design ยง7).
|
|
1852
|
+
*/
|
|
1853
|
+
credentialGrantsForScope(org: string, scopeKey: string): Promise<readonly CredentialGrantRow[]>;
|
|
1854
|
+
/**
|
|
1855
|
+
* EVERY LIVE `standing` grant bound to one CONVERSATION-STABLE scope key (OPE-1950) โ domain-shaped
|
|
1856
|
+
* or room-shaped (`access/credential-grant-scope.ts`), newest first, active, unexpired and
|
|
1857
|
+
* unrevoked. The key is OPAQUE here: this reads exact equality and never its shape. The second half
|
|
1858
|
+
* of every use-time lookup: a seat reads its own session-keyed rows through
|
|
1859
|
+
* {@link credentialGrantsForScope} and the room's conversation-keyed standing rows through this, and
|
|
1860
|
+
* the union is what it may reach.
|
|
1861
|
+
*
|
|
1862
|
+
* ๐ด STATUS AND EXPIRY DO FILTER HERE, where {@link credentialGrantsForScope} must not, and the
|
|
1863
|
+
* difference is deliberate. That method's no-filter rule protects the COLD-HEAL path: a session
|
|
1864
|
+
* whose transcript already describes a granted tool must keep meeting it, refusing on state. A
|
|
1865
|
+
* conversation-keyed row is read by sessions that never saw it โ the seat that asked has rotated away โ
|
|
1866
|
+
* so mounting a revoked or expired one there would offer a brand-new conversation a tool its owner
|
|
1867
|
+
* has already ended. The narrower rule is the safe direction for a key that crosses sessions.
|
|
1868
|
+
*
|
|
1869
|
+
* ๐ด `mode = 'standing'` IS IN THE PREDICATE, not assumed from the key's shape. Only a standing
|
|
1870
|
+
* grant ever binds to a domain, and stating it in SQL means no future writer can widen the
|
|
1871
|
+
* exact-session rule that `once` and `session` keep by writing a differently-shaped key.
|
|
1872
|
+
*/
|
|
1873
|
+
liveStandingCredentialGrantsForScope(org: string, scopeKey: string, nowIso: string): Promise<readonly CredentialGrantRow[]>;
|
|
1874
|
+
/** Every grant one owner still has live at nowIso โ active and unexpired โ oldest first, for the owner's own revoke route. Status filters here, unlike credentialGrantsForScope, because this is the list a person can act on; expiry is in the predicate, never the status column alone. */
|
|
1875
|
+
liveCredentialGrantsForOwner(org: string, ownerPrincipalId: string, nowIso: string): Promise<readonly CredentialGrantRow[]>;
|
|
1876
|
+
/** The one live borrow grant for (owner, connector, mcpTool, frozen-args digest, scope). The frozen arguments are part of the key, so the same vendor tool frozen two ways is two decisions and two grants; a row whose frozenArgs column is absent never matches. */
|
|
1877
|
+
liveBorrowCredentialGrant(org: string, ownerPrincipalId: string, connector: string, mcpTool: string, frozenArgsDigest: string, scopeKey: string, nowIso: string): Promise<CredentialGrantRow | null>;
|
|
1878
|
+
/**
|
|
1879
|
+
* BURN: move `active` โ `used`, IFF still active AND `at` is before `expires_at`. Returns the row
|
|
1880
|
+
* as burned, or null. This is the WHOLE of once-mode's single-use guarantee โ a retried turn, a
|
|
1881
|
+
* replayed step and two parallel calls in one step all race here, and exactly one wins.
|
|
1882
|
+
*/
|
|
1883
|
+
burnCredentialGrant(org: string, id: string, at: string): Promise<CredentialGrantRow | null>;
|
|
1884
|
+
/** Undoes one burn, and only the burn the caller owns: the used_at conjunct stops a caller that LOST the burn race from un-spending the winner's. It is not a general un-use โ the broker calls it only for a refusal that provably never sent โ and a revoked_at stamp poisons it, so an owner's revoke beats a refund racing it. */
|
|
1885
|
+
refundCredentialGrant(org: string, id: string, burnedAt: string): Promise<boolean>;
|
|
1886
|
+
/**
|
|
1887
|
+
* CLAIM ONE REFUND for `id` on `turnKey`, and answer whether this turn still had one to give
|
|
1888
|
+
* (OPE-1264). `cap` is the allowance per row per turn; the caller owns the number.
|
|
1889
|
+
*
|
|
1890
|
+
* ๐ด IT LIVES BESIDE THE BURN BECAUSE IT MUST BE AS DURABLE AS THE BURN. The count started life
|
|
1891
|
+
* in eve durable context, which is serialized only when a step COMPLETES. A crash mid-step is
|
|
1892
|
+
* redelivered against the last persisted context, so the refunds stood and the counts did not,
|
|
1893
|
+
* and one turn could write an unbounded number of refunds by crashing. The count is a column on
|
|
1894
|
+
* the grant row instead: the refund and its claim now land with one durability.
|
|
1895
|
+
*
|
|
1896
|
+
* ๐ด IT IS ONE STATEMENT, so two calls racing in one step cannot both read `cap - 1`. The row's
|
|
1897
|
+
* stored turn decides the arithmetic: a `turnKey` that is STRICTLY LATER than the stored one
|
|
1898
|
+
* rolls the count to 1 and adopts the new key, any other key increments, and a count already at
|
|
1899
|
+
* `cap` claims nothing and leaves the row alone.
|
|
1900
|
+
*
|
|
1901
|
+
* ๐ด THE ROLL IS ONE-DIRECTIONAL, AND THAT IS THE WHOLE OF OPE-1281. "Later" is read from the
|
|
1902
|
+
* turn's own ordinal โ {@link import("./credential-grant-rows.js").grantRefundTurnOrdinal} over
|
|
1903
|
+
* eve's `` `turn_${sequence}` `` โ held beside the key in `refund_turn_seq`. Comparing the KEYS
|
|
1904
|
+
* for inequality, which is what this statement did until OPE-1281, made the cap rollable in both
|
|
1905
|
+
* directions: two turn ids alternating on one row each read the other as new and each got a fresh
|
|
1906
|
+
* allowance, so one row yielded K refunds PER ALTERNATION rather than K per turn. One row is read
|
|
1907
|
+
* by one eve session (`scopeKey` is the session id), so the only event that can deliver those
|
|
1908
|
+
* turns out of order is a crashed turn's redelivery re-executing its body after a later turn has
|
|
1909
|
+
* already counted on the row โ the event OPE-1264 is about. An ordinal that only ever moves
|
|
1910
|
+
* forward closes it without depending on whether eve can overlap the two, which is a property
|
|
1911
|
+
* nothing in this repository can prove (OPE-1281, measured against eve 0.52.2 and NOT re-read at the 0.54.3 bump).
|
|
1912
|
+
*
|
|
1913
|
+
* ๐ด AN ABSENT OR UNREADABLE `turnKey` NEVER ROLLS. A caller that could not read a turn id โ or
|
|
1914
|
+
* one whose key carries no ordinal, which is where a change of eve's key shape lands โ counts
|
|
1915
|
+
* against whatever turn the row already holds and leaves it in place, so the allowance narrows to
|
|
1916
|
+
* the row's lifetime instead of resetting. Rolling on absence would be the one way this statement
|
|
1917
|
+
* could hand out a fresh allowance to a caller that proved nothing about the turn.
|
|
1918
|
+
*
|
|
1919
|
+
* ๐ด A ROW MIGRATED FROM BEFORE OPE-1281 HAS A TURN AND NO ORDINAL, AND IT NEVER ROLLS AGAIN.
|
|
1920
|
+
* Only a row with BOTH columns empty has genuinely counted nothing, and only that row rolls
|
|
1921
|
+
* without an ordinal to beat. Reading a missing ordinal as "never counted" instead would let any
|
|
1922
|
+
* turn roll such a row โ the turn already counted there included โ which is exactly the hole this
|
|
1923
|
+
* ticket closes, re-opened for the length of the upgrade. The cost of the safe reading is that a
|
|
1924
|
+
* row which had already counted refunds keeps that one allowance for the rest of its life; a
|
|
1925
|
+
* grant's TTL bounds how long any row stays in that state, and narrowing is the direction this
|
|
1926
|
+
* statement takes everywhere else.
|
|
1927
|
+
*
|
|
1928
|
+
* A row that does not exist claims nothing and answers false โ the fail-closed direction, and a
|
|
1929
|
+
* refund of a row that is gone would fail anyway.
|
|
1930
|
+
*/
|
|
1931
|
+
claimCredentialGrantRefund(org: string, id: string, turnKey: string | undefined, cap: number): Promise<boolean>;
|
|
1932
|
+
/** Moves active to revoked and answers whether THIS call revoked a live grant. It also stamps revoked_at on an already-used row while returning false, so an owner's revoke beats a refund racing it; the status is left alone there because a spent grant is already terminal. */
|
|
1933
|
+
revokeCredentialGrant(org: string, id: string, at: string): Promise<boolean>;
|
|
1934
|
+
/** Sweep: mark every still-active grant whose TTL has passed `expired`. Returns the count. */
|
|
1935
|
+
expireCredentialGrants(org: string, nowIso: string): Promise<number>;
|
|
1936
|
+
/** Claim `key` for this org, once and forever. TRUE = the caller won the claim and must do the
|
|
1937
|
+
* thing; FALSE = it was already claimed and the caller must not. Atomic: two racing callers
|
|
1938
|
+
* resolve to exactly one TRUE. Never expires. */
|
|
1939
|
+
claimNotice(org: string, key: string, at: string): Promise<boolean>;
|
|
1940
|
+
/** READ-ONLY twin of {@link OperationalStore.claimNotice}: has `key` already been claimed? Never
|
|
1941
|
+
* writes โ for a caller that must know before deciding whether claiming is even correct. */
|
|
1942
|
+
noticeClaimed(org: string, key: string): Promise<boolean>;
|
|
1943
|
+
/** Upsert one address. `updatedAt` is re-stamped on every call, so a repeated write from a live
|
|
1944
|
+
* ingest path keeps the row current rather than duplicating it. */
|
|
1945
|
+
recordProactiveAddress(org: string, row: ProactiveAddress): Promise<void>;
|
|
1946
|
+
proactiveAddress(org: string, platform: string, kind: string, refKey: string): Promise<ProactiveAddress | undefined>;
|
|
1947
|
+
/** Every address of one (`platform`, `kind`), most recently seen first. `limit` bounds the read โ
|
|
1948
|
+
* a caller that fans a live vendor call out per row must never inherit an unbounded list. */
|
|
1949
|
+
proactiveAddresses(org: string, platform: string, kind: string, limit: number): Promise<readonly ProactiveAddress[]>;
|
|
1950
|
+
getMeta(key: string): Promise<string | null>;
|
|
1951
|
+
setMeta(key: string, value: string): Promise<void>;
|
|
1952
|
+
}
|
|
1953
|
+
//# sourceMappingURL=store.d.ts.map
|