@pellux/goodvibes-sdk 0.18.3 → 0.18.12
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/README.md +3 -0
- package/dist/_internal/contracts/artifacts/operator-contract.json +55157 -0
- package/dist/_internal/contracts/artifacts/peer-contract.json +2384 -0
- package/dist/_internal/contracts/generated/foundation-client-types.d.ts +11213 -0
- package/dist/_internal/contracts/generated/foundation-client-types.d.ts.map +1 -0
- package/dist/_internal/contracts/generated/foundation-client-types.js +3 -0
- package/dist/_internal/contracts/generated/foundation-metadata.d.ts +8 -0
- package/dist/_internal/contracts/generated/foundation-metadata.d.ts.map +1 -0
- package/dist/_internal/contracts/generated/foundation-metadata.js +8 -0
- package/dist/_internal/contracts/generated/operator-contract.d.ts +3 -0
- package/dist/_internal/contracts/generated/operator-contract.d.ts.map +1 -0
- package/dist/_internal/contracts/generated/operator-contract.js +55157 -0
- package/dist/_internal/contracts/generated/operator-method-ids.d.ts +3 -0
- package/dist/_internal/contracts/generated/operator-method-ids.d.ts.map +1 -0
- package/dist/_internal/contracts/generated/operator-method-ids.js +216 -0
- package/dist/_internal/contracts/generated/peer-contract.d.ts +3 -0
- package/dist/_internal/contracts/generated/peer-contract.d.ts.map +1 -0
- package/dist/_internal/contracts/generated/peer-contract.js +2384 -0
- package/dist/_internal/contracts/generated/peer-endpoint-ids.d.ts +3 -0
- package/dist/_internal/contracts/generated/peer-endpoint-ids.d.ts.map +1 -0
- package/dist/_internal/contracts/generated/peer-endpoint-ids.js +9 -0
- package/dist/_internal/contracts/generated/runtime-event-domains.d.ts +4 -0
- package/dist/_internal/contracts/generated/runtime-event-domains.d.ts.map +1 -0
- package/dist/_internal/contracts/generated/runtime-event-domains.js +32 -0
- package/dist/_internal/contracts/index.d.ts +23 -0
- package/dist/_internal/contracts/index.d.ts.map +1 -0
- package/dist/_internal/contracts/index.js +35 -0
- package/dist/_internal/contracts/node.d.ts +3 -0
- package/dist/_internal/contracts/node.d.ts.map +1 -0
- package/dist/_internal/contracts/node.js +8 -0
- package/dist/_internal/contracts/types.d.ts +150 -0
- package/dist/_internal/contracts/types.d.ts.map +1 -0
- package/dist/_internal/contracts/types.js +1 -0
- package/dist/_internal/contracts.d.ts +2 -0
- package/dist/_internal/contracts.d.ts.map +1 -0
- package/dist/_internal/contracts.js +1 -0
- package/dist/_internal/daemon/api-router.d.ts +3 -0
- package/dist/_internal/daemon/api-router.d.ts.map +1 -0
- package/dist/_internal/daemon/api-router.js +14 -0
- package/dist/_internal/daemon/automation.d.ts +3 -0
- package/dist/_internal/daemon/automation.d.ts.map +1 -0
- package/dist/_internal/daemon/automation.js +56 -0
- package/dist/_internal/daemon/channel-route-types.d.ts +78 -0
- package/dist/_internal/daemon/channel-route-types.d.ts.map +1 -0
- package/dist/_internal/daemon/channel-route-types.js +1 -0
- package/dist/_internal/daemon/channel-routes.d.ts +4 -0
- package/dist/_internal/daemon/channel-routes.d.ts.map +1 -0
- package/dist/_internal/daemon/channel-routes.js +264 -0
- package/dist/_internal/daemon/context.d.ts +207 -0
- package/dist/_internal/daemon/context.d.ts.map +1 -0
- package/dist/_internal/daemon/context.js +1 -0
- package/dist/_internal/daemon/control-routes.d.ts +57 -0
- package/dist/_internal/daemon/control-routes.d.ts.map +1 -0
- package/dist/_internal/daemon/control-routes.js +120 -0
- package/dist/_internal/daemon/error-response.d.ts +10 -0
- package/dist/_internal/daemon/error-response.d.ts.map +1 -0
- package/dist/_internal/daemon/error-response.js +224 -0
- package/dist/_internal/daemon/http-policy.d.ts +33 -0
- package/dist/_internal/daemon/http-policy.d.ts.map +1 -0
- package/dist/_internal/daemon/http-policy.js +31 -0
- package/dist/_internal/daemon/index.d.ts +30 -0
- package/dist/_internal/daemon/index.d.ts.map +1 -0
- package/dist/_internal/daemon/index.js +20 -0
- package/dist/_internal/daemon/integration-route-types.d.ts +64 -0
- package/dist/_internal/daemon/integration-route-types.d.ts.map +1 -0
- package/dist/_internal/daemon/integration-route-types.js +1 -0
- package/dist/_internal/daemon/integration-routes.d.ts +4 -0
- package/dist/_internal/daemon/integration-routes.d.ts.map +1 -0
- package/dist/_internal/daemon/integration-routes.js +172 -0
- package/dist/_internal/daemon/knowledge-route-types.d.ts +114 -0
- package/dist/_internal/daemon/knowledge-route-types.d.ts.map +1 -0
- package/dist/_internal/daemon/knowledge-route-types.js +1 -0
- package/dist/_internal/daemon/knowledge-routes.d.ts +4 -0
- package/dist/_internal/daemon/knowledge-routes.d.ts.map +1 -0
- package/dist/_internal/daemon/knowledge-routes.js +582 -0
- package/dist/_internal/daemon/media-route-types.d.ts +66 -0
- package/dist/_internal/daemon/media-route-types.d.ts.map +1 -0
- package/dist/_internal/daemon/media-route-types.js +1 -0
- package/dist/_internal/daemon/media-routes.d.ts +4 -0
- package/dist/_internal/daemon/media-routes.d.ts.map +1 -0
- package/dist/_internal/daemon/media-routes.js +328 -0
- package/dist/_internal/daemon/operator.d.ts +3 -0
- package/dist/_internal/daemon/operator.d.ts.map +1 -0
- package/dist/_internal/daemon/operator.js +395 -0
- package/dist/_internal/daemon/remote-routes.d.ts +40 -0
- package/dist/_internal/daemon/remote-routes.d.ts.map +1 -0
- package/dist/_internal/daemon/remote-routes.js +238 -0
- package/dist/_internal/daemon/remote.d.ts +3 -0
- package/dist/_internal/daemon/remote.d.ts.map +1 -0
- package/dist/_internal/daemon/remote.js +35 -0
- package/dist/_internal/daemon/route-helpers.d.ts +11 -0
- package/dist/_internal/daemon/route-helpers.d.ts.map +1 -0
- package/dist/_internal/daemon/route-helpers.js +54 -0
- package/dist/_internal/daemon/runtime-automation-routes.d.ts +4 -0
- package/dist/_internal/daemon/runtime-automation-routes.d.ts.map +1 -0
- package/dist/_internal/daemon/runtime-automation-routes.js +165 -0
- package/dist/_internal/daemon/runtime-route-types.d.ts +240 -0
- package/dist/_internal/daemon/runtime-route-types.d.ts.map +1 -0
- package/dist/_internal/daemon/runtime-route-types.js +1 -0
- package/dist/_internal/daemon/runtime-routes.d.ts +5 -0
- package/dist/_internal/daemon/runtime-routes.d.ts.map +1 -0
- package/dist/_internal/daemon/runtime-routes.js +8 -0
- package/dist/_internal/daemon/runtime-session-routes.d.ts +4 -0
- package/dist/_internal/daemon/runtime-session-routes.d.ts.map +1 -0
- package/dist/_internal/daemon/runtime-session-routes.js +387 -0
- package/dist/_internal/daemon/sessions.d.ts +3 -0
- package/dist/_internal/daemon/sessions.d.ts.map +1 -0
- package/dist/_internal/daemon/sessions.js +37 -0
- package/dist/_internal/daemon/system-route-types.d.ts +124 -0
- package/dist/_internal/daemon/system-route-types.d.ts.map +1 -0
- package/dist/_internal/daemon/system-route-types.js +1 -0
- package/dist/_internal/daemon/system-routes.d.ts +4 -0
- package/dist/_internal/daemon/system-routes.d.ts.map +1 -0
- package/dist/_internal/daemon/system-routes.js +327 -0
- package/dist/_internal/daemon/tasks.d.ts +3 -0
- package/dist/_internal/daemon/tasks.d.ts.map +1 -0
- package/dist/_internal/daemon/tasks.js +22 -0
- package/dist/_internal/daemon/telemetry-routes.d.ts +44 -0
- package/dist/_internal/daemon/telemetry-routes.d.ts.map +1 -0
- package/dist/_internal/daemon/telemetry-routes.js +227 -0
- package/dist/_internal/daemon.d.ts +2 -0
- package/dist/_internal/daemon.d.ts.map +1 -0
- package/dist/_internal/daemon.js +1 -0
- package/dist/_internal/errors/daemon-error-contract.d.ts +19 -0
- package/dist/_internal/errors/daemon-error-contract.d.ts.map +1 -0
- package/dist/_internal/errors/daemon-error-contract.js +1 -0
- package/dist/_internal/errors/index.d.ts +54 -0
- package/dist/_internal/errors/index.d.ts.map +1 -0
- package/dist/_internal/errors/index.js +123 -0
- package/dist/_internal/errors.d.ts +2 -0
- package/dist/_internal/errors.d.ts.map +1 -0
- package/dist/_internal/errors.js +1 -0
- package/dist/_internal/operator/client-core.d.ts +104 -0
- package/dist/_internal/operator/client-core.d.ts.map +1 -0
- package/dist/_internal/operator/client-core.js +184 -0
- package/dist/_internal/operator/client.d.ts +16 -0
- package/dist/_internal/operator/client.d.ts.map +1 -0
- package/dist/_internal/operator/client.js +7 -0
- package/dist/_internal/operator/index.d.ts +5 -0
- package/dist/_internal/operator/index.d.ts.map +1 -0
- package/dist/_internal/operator/index.js +2 -0
- package/dist/_internal/operator.d.ts +2 -0
- package/dist/_internal/operator.d.ts.map +1 -0
- package/dist/_internal/operator.js +1 -0
- package/dist/_internal/peer/client-core.d.ts +42 -0
- package/dist/_internal/peer/client-core.d.ts.map +1 -0
- package/dist/_internal/peer/client-core.js +41 -0
- package/dist/_internal/peer/client.d.ts +13 -0
- package/dist/_internal/peer/client.d.ts.map +1 -0
- package/dist/_internal/peer/client.js +7 -0
- package/dist/_internal/peer/index.d.ts +5 -0
- package/dist/_internal/peer/index.d.ts.map +1 -0
- package/dist/_internal/peer/index.js +2 -0
- package/dist/_internal/peer.d.ts +2 -0
- package/dist/_internal/peer.d.ts.map +1 -0
- package/dist/_internal/peer.js +1 -0
- package/dist/_internal/platform/acp/protocol.d.ts +44 -0
- package/dist/_internal/platform/acp/protocol.d.ts.map +1 -0
- package/dist/_internal/platform/acp/protocol.js +7 -0
- package/dist/_internal/platform/adapters/helpers.d.ts +8 -0
- package/dist/_internal/platform/adapters/helpers.d.ts.map +1 -0
- package/dist/_internal/platform/adapters/helpers.js +61 -0
- package/dist/_internal/platform/agents/archetypes.d.ts +68 -0
- package/dist/_internal/platform/agents/archetypes.d.ts.map +1 -0
- package/dist/_internal/platform/agents/archetypes.js +272 -0
- package/dist/_internal/platform/agents/communication-policy.d.ts +21 -0
- package/dist/_internal/platform/agents/communication-policy.d.ts.map +1 -0
- package/dist/_internal/platform/agents/communication-policy.js +55 -0
- package/dist/_internal/platform/agents/completion-report.d.ts +78 -0
- package/dist/_internal/platform/agents/completion-report.d.ts.map +1 -0
- package/dist/_internal/platform/agents/completion-report.js +58 -0
- package/dist/_internal/platform/agents/orchestrator-utils.d.ts +8 -0
- package/dist/_internal/platform/agents/orchestrator-utils.d.ts.map +1 -0
- package/dist/_internal/platform/agents/orchestrator-utils.js +24 -0
- package/dist/_internal/platform/agents/wrfc-gates.d.ts +8 -0
- package/dist/_internal/platform/agents/wrfc-gates.d.ts.map +1 -0
- package/dist/_internal/platform/agents/wrfc-gates.js +74 -0
- package/dist/_internal/platform/agents/wrfc-plan-sync.d.ts +3 -0
- package/dist/_internal/platform/agents/wrfc-plan-sync.d.ts.map +1 -0
- package/dist/_internal/platform/agents/wrfc-plan-sync.js +21 -0
- package/dist/_internal/platform/agents/wrfc-workmap.d.ts +37 -0
- package/dist/_internal/platform/agents/wrfc-workmap.d.ts.map +1 -0
- package/dist/_internal/platform/agents/wrfc-workmap.js +81 -0
- package/dist/_internal/platform/artifacts/index.d.ts +4 -0
- package/dist/_internal/platform/artifacts/index.d.ts.map +1 -0
- package/dist/_internal/platform/artifacts/index.js +2 -0
- package/dist/_internal/platform/artifacts/store.d.ts +48 -0
- package/dist/_internal/platform/artifacts/store.d.ts.map +1 -0
- package/dist/_internal/platform/artifacts/store.js +403 -0
- package/dist/_internal/platform/artifacts/types.d.ts +56 -0
- package/dist/_internal/platform/artifacts/types.d.ts.map +1 -0
- package/dist/_internal/platform/artifacts/types.js +92 -0
- package/dist/_internal/platform/automation/delivery.d.ts +33 -0
- package/dist/_internal/platform/automation/delivery.d.ts.map +1 -0
- package/dist/_internal/platform/automation/delivery.js +4 -0
- package/dist/_internal/platform/automation/failures.d.ts +35 -0
- package/dist/_internal/platform/automation/failures.d.ts.map +1 -0
- package/dist/_internal/platform/automation/failures.js +2 -0
- package/dist/_internal/platform/automation/jobs.d.ts +30 -0
- package/dist/_internal/platform/automation/jobs.d.ts.map +1 -0
- package/dist/_internal/platform/automation/jobs.js +4 -0
- package/dist/_internal/platform/automation/migration.d.ts +12 -0
- package/dist/_internal/platform/automation/migration.d.ts.map +1 -0
- package/dist/_internal/platform/automation/migration.js +138 -0
- package/dist/_internal/platform/automation/routes.d.ts +33 -0
- package/dist/_internal/platform/automation/routes.d.ts.map +1 -0
- package/dist/_internal/platform/automation/routes.js +4 -0
- package/dist/_internal/platform/automation/runs.d.ts +63 -0
- package/dist/_internal/platform/automation/runs.d.ts.map +1 -0
- package/dist/_internal/platform/automation/runs.js +4 -0
- package/dist/_internal/platform/automation/schedules.d.ts +32 -0
- package/dist/_internal/platform/automation/schedules.d.ts.map +1 -0
- package/dist/_internal/platform/automation/schedules.js +183 -0
- package/dist/_internal/platform/automation/session-targets.d.ts +50 -0
- package/dist/_internal/platform/automation/session-targets.d.ts.map +1 -0
- package/dist/_internal/platform/automation/session-targets.js +4 -0
- package/dist/_internal/platform/automation/sources.d.ts +24 -0
- package/dist/_internal/platform/automation/sources.d.ts.map +1 -0
- package/dist/_internal/platform/automation/sources.js +4 -0
- package/dist/_internal/platform/automation/store/jobs.d.ts +18 -0
- package/dist/_internal/platform/automation/store/jobs.d.ts.map +1 -0
- package/dist/_internal/platform/automation/store/jobs.js +33 -0
- package/dist/_internal/platform/automation/store/paths.d.ts +7 -0
- package/dist/_internal/platform/automation/store/paths.d.ts.map +1 -0
- package/dist/_internal/platform/automation/store/paths.js +14 -0
- package/dist/_internal/platform/automation/store/routes.d.ts +18 -0
- package/dist/_internal/platform/automation/store/routes.d.ts.map +1 -0
- package/dist/_internal/platform/automation/store/routes.js +33 -0
- package/dist/_internal/platform/automation/store/runs.d.ts +18 -0
- package/dist/_internal/platform/automation/store/runs.d.ts.map +1 -0
- package/dist/_internal/platform/automation/store/runs.js +33 -0
- package/dist/_internal/platform/automation/store/sources.d.ts +18 -0
- package/dist/_internal/platform/automation/store/sources.d.ts.map +1 -0
- package/dist/_internal/platform/automation/store/sources.js +33 -0
- package/dist/_internal/platform/automation/types.d.ts +171 -0
- package/dist/_internal/platform/automation/types.d.ts.map +1 -0
- package/dist/_internal/platform/automation/types.js +2 -0
- package/dist/_internal/platform/bookmarks/manager.d.ts +53 -0
- package/dist/_internal/platform/bookmarks/manager.d.ts.map +1 -0
- package/dist/_internal/platform/bookmarks/manager.js +106 -0
- package/dist/_internal/platform/channels/builtin/descriptors.d.ts +5 -0
- package/dist/_internal/platform/channels/builtin/descriptors.d.ts.map +1 -0
- package/dist/_internal/platform/channels/builtin/descriptors.js +566 -0
- package/dist/_internal/platform/channels/builtin/parsing.d.ts +8 -0
- package/dist/_internal/platform/channels/builtin/parsing.d.ts.map +1 -0
- package/dist/_internal/platform/channels/builtin/parsing.js +48 -0
- package/dist/_internal/platform/channels/builtin/presentation.d.ts +4 -0
- package/dist/_internal/platform/channels/builtin/presentation.d.ts.map +1 -0
- package/dist/_internal/platform/channels/builtin/presentation.js +70 -0
- package/dist/_internal/platform/channels/policy-manager.d.ts +25 -0
- package/dist/_internal/platform/channels/policy-manager.d.ts.map +1 -0
- package/dist/_internal/platform/channels/policy-manager.js +236 -0
- package/dist/_internal/platform/channels/types.d.ts +430 -0
- package/dist/_internal/platform/channels/types.d.ts.map +1 -0
- package/dist/_internal/platform/channels/types.js +2 -0
- package/dist/_internal/platform/config/oauth-local-listener.d.ts +18 -0
- package/dist/_internal/platform/config/oauth-local-listener.d.ts.map +1 -0
- package/dist/_internal/platform/config/oauth-local-listener.js +125 -0
- package/dist/_internal/platform/config/openai-codex-auth.d.ts +21 -0
- package/dist/_internal/platform/config/openai-codex-auth.d.ts.map +1 -0
- package/dist/_internal/platform/config/openai-codex-auth.js +77 -0
- package/dist/_internal/platform/config/schema-domain-core.d.ts +120 -0
- package/dist/_internal/platform/config/schema-domain-core.d.ts.map +1 -0
- package/dist/_internal/platform/config/schema-domain-core.js +610 -0
- package/dist/_internal/platform/config/schema-domain-runtime.d.ts +71 -0
- package/dist/_internal/platform/config/schema-domain-runtime.d.ts.map +1 -0
- package/dist/_internal/platform/config/schema-domain-runtime.js +345 -0
- package/dist/_internal/platform/config/schema-domain-surfaces.d.ts +117 -0
- package/dist/_internal/platform/config/schema-domain-surfaces.d.ts.map +1 -0
- package/dist/_internal/platform/config/schema-domain-surfaces.js +420 -0
- package/dist/_internal/platform/config/schema-shared.d.ts +10 -0
- package/dist/_internal/platform/config/schema-shared.d.ts.map +1 -0
- package/dist/_internal/platform/config/schema-shared.js +2 -0
- package/dist/_internal/platform/config/schema-types.d.ts +340 -0
- package/dist/_internal/platform/config/schema-types.d.ts.map +1 -0
- package/dist/_internal/platform/config/schema-types.js +4 -0
- package/dist/_internal/platform/config/schema.d.ts +12 -0
- package/dist/_internal/platform/config/schema.d.ts.map +1 -0
- package/dist/_internal/platform/config/schema.js +46 -0
- package/dist/_internal/platform/config/secret-refs.d.ts +89 -0
- package/dist/_internal/platform/config/secret-refs.d.ts.map +1 -0
- package/dist/_internal/platform/config/secret-refs.js +553 -0
- package/dist/_internal/platform/config/subscriptions.d.ts +66 -0
- package/dist/_internal/platform/config/subscriptions.d.ts.map +1 -0
- package/dist/_internal/platform/config/subscriptions.js +167 -0
- package/dist/_internal/platform/control-plane/auth-snapshot.d.ts +15 -0
- package/dist/_internal/platform/control-plane/auth-snapshot.d.ts.map +1 -0
- package/dist/_internal/platform/control-plane/auth-snapshot.js +2 -0
- package/dist/_internal/platform/control-plane/gateway-web-ui.d.ts +3 -0
- package/dist/_internal/platform/control-plane/gateway-web-ui.d.ts.map +1 -0
- package/dist/_internal/platform/control-plane/gateway-web-ui.js +741 -0
- package/dist/_internal/platform/control-plane/routes/api-router.d.ts +2 -0
- package/dist/_internal/platform/control-plane/routes/api-router.d.ts.map +1 -0
- package/dist/_internal/platform/control-plane/routes/api-router.js +1 -0
- package/dist/_internal/platform/control-plane/routes/automation.d.ts +3 -0
- package/dist/_internal/platform/control-plane/routes/automation.d.ts.map +1 -0
- package/dist/_internal/platform/control-plane/routes/automation.js +56 -0
- package/dist/_internal/platform/control-plane/routes/context.d.ts +2 -0
- package/dist/_internal/platform/control-plane/routes/context.d.ts.map +1 -0
- package/dist/_internal/platform/control-plane/routes/context.js +1 -0
- package/dist/_internal/platform/control-plane/routes/index.d.ts +8 -0
- package/dist/_internal/platform/control-plane/routes/index.d.ts.map +1 -0
- package/dist/_internal/platform/control-plane/routes/index.js +6 -0
- package/dist/_internal/platform/control-plane/routes/operator.d.ts +3 -0
- package/dist/_internal/platform/control-plane/routes/operator.d.ts.map +1 -0
- package/dist/_internal/platform/control-plane/routes/operator.js +395 -0
- package/dist/_internal/platform/control-plane/routes/remote.d.ts +3 -0
- package/dist/_internal/platform/control-plane/routes/remote.d.ts.map +1 -0
- package/dist/_internal/platform/control-plane/routes/remote.js +35 -0
- package/dist/_internal/platform/control-plane/routes/sessions.d.ts +3 -0
- package/dist/_internal/platform/control-plane/routes/sessions.d.ts.map +1 -0
- package/dist/_internal/platform/control-plane/routes/sessions.js +37 -0
- package/dist/_internal/platform/control-plane/routes/tasks.d.ts +3 -0
- package/dist/_internal/platform/control-plane/routes/tasks.d.ts.map +1 -0
- package/dist/_internal/platform/control-plane/routes/tasks.js +22 -0
- package/dist/_internal/platform/control-plane/session-broker-internals.d.ts +25 -0
- package/dist/_internal/platform/control-plane/session-broker-internals.d.ts.map +1 -0
- package/dist/_internal/platform/control-plane/session-broker-internals.js +3 -0
- package/dist/_internal/platform/control-plane/session-broker-state.d.ts +19 -0
- package/dist/_internal/platform/control-plane/session-broker-state.d.ts.map +1 -0
- package/dist/_internal/platform/control-plane/session-broker-state.js +56 -0
- package/dist/_internal/platform/control-plane/session-intents.d.ts +65 -0
- package/dist/_internal/platform/control-plane/session-intents.d.ts.map +1 -0
- package/dist/_internal/platform/control-plane/session-intents.js +2 -0
- package/dist/_internal/platform/control-plane/session-types.d.ts +81 -0
- package/dist/_internal/platform/control-plane/session-types.d.ts.map +1 -0
- package/dist/_internal/platform/control-plane/session-types.js +1 -0
- package/dist/_internal/platform/control-plane/types.d.ts +42 -0
- package/dist/_internal/platform/control-plane/types.d.ts.map +1 -0
- package/dist/_internal/platform/control-plane/types.js +4 -0
- package/dist/_internal/platform/core/adaptive-planner.d.ts +137 -0
- package/dist/_internal/platform/core/adaptive-planner.d.ts.map +1 -0
- package/dist/_internal/platform/core/adaptive-planner.js +288 -0
- package/dist/_internal/platform/core/circuit-breaker.d.ts +19 -0
- package/dist/_internal/platform/core/circuit-breaker.d.ts.map +1 -0
- package/dist/_internal/platform/core/circuit-breaker.js +26 -0
- package/dist/_internal/platform/core/conversation-follow-ups.d.ts +8 -0
- package/dist/_internal/platform/core/conversation-follow-ups.d.ts.map +1 -0
- package/dist/_internal/platform/core/conversation-follow-ups.js +33 -0
- package/dist/_internal/platform/core/deterministic-replay.d.ts +201 -0
- package/dist/_internal/platform/core/deterministic-replay.d.ts.map +1 -0
- package/dist/_internal/platform/core/deterministic-replay.js +569 -0
- package/dist/_internal/platform/core/execution-plan.d.ts +73 -0
- package/dist/_internal/platform/core/execution-plan.d.ts.map +1 -0
- package/dist/_internal/platform/core/execution-plan.js +463 -0
- package/dist/_internal/platform/core/history.d.ts +22 -0
- package/dist/_internal/platform/core/history.d.ts.map +1 -0
- package/dist/_internal/platform/core/history.js +43 -0
- package/dist/_internal/platform/core/intent-classifier.d.ts +19 -0
- package/dist/_internal/platform/core/intent-classifier.d.ts.map +1 -0
- package/dist/_internal/platform/core/intent-classifier.js +86 -0
- package/dist/_internal/platform/core/replay-command-handler.d.ts +38 -0
- package/dist/_internal/platform/core/replay-command-handler.d.ts.map +1 -0
- package/dist/_internal/platform/core/replay-command-handler.js +229 -0
- package/dist/_internal/platform/core/session-lineage.d.ts +43 -0
- package/dist/_internal/platform/core/session-lineage.d.ts.map +1 -0
- package/dist/_internal/platform/core/session-lineage.js +69 -0
- package/dist/_internal/platform/core/session-memory.d.ts +32 -0
- package/dist/_internal/platform/core/session-memory.d.ts.map +1 -0
- package/dist/_internal/platform/core/session-memory.js +43 -0
- package/dist/_internal/platform/core/tokenizer.d.ts +30 -0
- package/dist/_internal/platform/core/tokenizer.d.ts.map +1 -0
- package/dist/_internal/platform/core/tokenizer.js +312 -0
- package/dist/_internal/platform/core/tool-reconciliation.d.ts +85 -0
- package/dist/_internal/platform/core/tool-reconciliation.d.ts.map +1 -0
- package/dist/_internal/platform/core/tool-reconciliation.js +35 -0
- package/dist/_internal/platform/core/transcript-events/grouping.d.ts +10 -0
- package/dist/_internal/platform/core/transcript-events/grouping.d.ts.map +1 -0
- package/dist/_internal/platform/core/transcript-events/grouping.js +17 -0
- package/dist/_internal/platform/core/transcript-events/types.d.ts +12 -0
- package/dist/_internal/platform/core/transcript-events/types.d.ts.map +1 -0
- package/dist/_internal/platform/core/transcript-events/types.js +2 -0
- package/dist/_internal/platform/daemon/http/channel-route-types.d.ts +2 -0
- package/dist/_internal/platform/daemon/http/channel-route-types.d.ts.map +1 -0
- package/dist/_internal/platform/daemon/http/channel-route-types.js +1 -0
- package/dist/_internal/platform/daemon/http/channel-routes.d.ts +2 -0
- package/dist/_internal/platform/daemon/http/channel-routes.d.ts.map +1 -0
- package/dist/_internal/platform/daemon/http/channel-routes.js +1 -0
- package/dist/_internal/platform/daemon/http/control-routes.d.ts +2 -0
- package/dist/_internal/platform/daemon/http/control-routes.d.ts.map +1 -0
- package/dist/_internal/platform/daemon/http/control-routes.js +1 -0
- package/dist/_internal/platform/daemon/http/error-response.d.ts +2 -0
- package/dist/_internal/platform/daemon/http/error-response.d.ts.map +1 -0
- package/dist/_internal/platform/daemon/http/error-response.js +1 -0
- package/dist/_internal/platform/daemon/http/integration-route-types.d.ts +10 -0
- package/dist/_internal/platform/daemon/http/integration-route-types.d.ts.map +1 -0
- package/dist/_internal/platform/daemon/http/integration-route-types.js +1 -0
- package/dist/_internal/platform/daemon/http/integration-routes.d.ts +2 -0
- package/dist/_internal/platform/daemon/http/integration-routes.d.ts.map +1 -0
- package/dist/_internal/platform/daemon/http/integration-routes.js +1 -0
- package/dist/_internal/platform/daemon/http/knowledge-route-types.d.ts +5 -0
- package/dist/_internal/platform/daemon/http/knowledge-route-types.d.ts.map +1 -0
- package/dist/_internal/platform/daemon/http/knowledge-route-types.js +1 -0
- package/dist/_internal/platform/daemon/http/knowledge-routes.d.ts +2 -0
- package/dist/_internal/platform/daemon/http/knowledge-routes.d.ts.map +1 -0
- package/dist/_internal/platform/daemon/http/knowledge-routes.js +1 -0
- package/dist/_internal/platform/daemon/http/media-route-types.d.ts +17 -0
- package/dist/_internal/platform/daemon/http/media-route-types.d.ts.map +1 -0
- package/dist/_internal/platform/daemon/http/media-route-types.js +1 -0
- package/dist/_internal/platform/daemon/http/media-routes.d.ts +2 -0
- package/dist/_internal/platform/daemon/http/media-routes.d.ts.map +1 -0
- package/dist/_internal/platform/daemon/http/media-routes.js +1 -0
- package/dist/_internal/platform/daemon/http/remote-routes.d.ts +2 -0
- package/dist/_internal/platform/daemon/http/remote-routes.d.ts.map +1 -0
- package/dist/_internal/platform/daemon/http/remote-routes.js +1 -0
- package/dist/_internal/platform/daemon/http/route-helpers.d.ts +5 -0
- package/dist/_internal/platform/daemon/http/route-helpers.d.ts.map +1 -0
- package/dist/_internal/platform/daemon/http/route-helpers.js +21 -0
- package/dist/_internal/platform/daemon/http/runtime-automation-routes.d.ts +2 -0
- package/dist/_internal/platform/daemon/http/runtime-automation-routes.d.ts.map +1 -0
- package/dist/_internal/platform/daemon/http/runtime-automation-routes.js +1 -0
- package/dist/_internal/platform/daemon/http/runtime-route-types.d.ts +240 -0
- package/dist/_internal/platform/daemon/http/runtime-route-types.d.ts.map +1 -0
- package/dist/_internal/platform/daemon/http/runtime-route-types.js +1 -0
- package/dist/_internal/platform/daemon/http/runtime-routes.d.ts +3 -0
- package/dist/_internal/platform/daemon/http/runtime-routes.d.ts.map +1 -0
- package/dist/_internal/platform/daemon/http/runtime-routes.js +1 -0
- package/dist/_internal/platform/daemon/http/runtime-session-routes.d.ts +2 -0
- package/dist/_internal/platform/daemon/http/runtime-session-routes.d.ts.map +1 -0
- package/dist/_internal/platform/daemon/http/runtime-session-routes.js +1 -0
- package/dist/_internal/platform/daemon/http/system-route-types.d.ts +52 -0
- package/dist/_internal/platform/daemon/http/system-route-types.d.ts.map +1 -0
- package/dist/_internal/platform/daemon/http/system-route-types.js +1 -0
- package/dist/_internal/platform/daemon/http/system-routes.d.ts +2 -0
- package/dist/_internal/platform/daemon/http/system-routes.d.ts.map +1 -0
- package/dist/_internal/platform/daemon/http/system-routes.js +1 -0
- package/dist/_internal/platform/daemon/http/telemetry-routes.d.ts +2 -0
- package/dist/_internal/platform/daemon/http/telemetry-routes.d.ts.map +1 -0
- package/dist/_internal/platform/daemon/http/telemetry-routes.js +1 -0
- package/dist/_internal/platform/daemon/http-policy.d.ts +33 -0
- package/dist/_internal/platform/daemon/http-policy.d.ts.map +1 -0
- package/dist/_internal/platform/daemon/http-policy.js +29 -0
- package/dist/_internal/platform/discovery/index.d.ts +3 -0
- package/dist/_internal/platform/discovery/index.d.ts.map +1 -0
- package/dist/_internal/platform/discovery/index.js +2 -0
- package/dist/_internal/platform/discovery/mcp-scanner.d.ts +18 -0
- package/dist/_internal/platform/discovery/mcp-scanner.d.ts.map +1 -0
- package/dist/_internal/platform/discovery/mcp-scanner.js +218 -0
- package/dist/_internal/platform/discovery/scanner.d.ts +49 -0
- package/dist/_internal/platform/discovery/scanner.d.ts.map +1 -0
- package/dist/_internal/platform/discovery/scanner.js +655 -0
- package/dist/_internal/platform/hooks/activity.d.ts +28 -0
- package/dist/_internal/platform/hooks/activity.d.ts.map +1 -0
- package/dist/_internal/platform/hooks/activity.js +28 -0
- package/dist/_internal/platform/hooks/contracts.d.ts +22 -0
- package/dist/_internal/platform/hooks/contracts.d.ts.map +1 -0
- package/dist/_internal/platform/hooks/contracts.js +350 -0
- package/dist/_internal/platform/hooks/matcher.d.ts +14 -0
- package/dist/_internal/platform/hooks/matcher.d.ts.map +1 -0
- package/dist/_internal/platform/hooks/matcher.js +36 -0
- package/dist/_internal/platform/hooks/runners/command.d.ts +22 -0
- package/dist/_internal/platform/hooks/runners/command.d.ts.map +1 -0
- package/dist/_internal/platform/hooks/runners/command.js +77 -0
- package/dist/_internal/platform/hooks/runners/http.d.ts +7 -0
- package/dist/_internal/platform/hooks/runners/http.d.ts.map +1 -0
- package/dist/_internal/platform/hooks/runners/http.js +54 -0
- package/dist/_internal/platform/hooks/runners/typescript.d.ts +7 -0
- package/dist/_internal/platform/hooks/runners/typescript.d.ts.map +1 -0
- package/dist/_internal/platform/hooks/runners/typescript.js +42 -0
- package/dist/_internal/platform/hooks/types.d.ts +95 -0
- package/dist/_internal/platform/hooks/types.d.ts.map +1 -0
- package/dist/_internal/platform/hooks/types.js +2 -0
- package/dist/_internal/platform/integrations/delivery.d.ts +186 -0
- package/dist/_internal/platform/integrations/delivery.d.ts.map +1 -0
- package/dist/_internal/platform/integrations/delivery.js +311 -0
- package/dist/_internal/platform/integrations/discord.d.ts +171 -0
- package/dist/_internal/platform/integrations/discord.d.ts.map +1 -0
- package/dist/_internal/platform/integrations/discord.js +445 -0
- package/dist/_internal/platform/integrations/github.d.ts +43 -0
- package/dist/_internal/platform/integrations/github.d.ts.map +1 -0
- package/dist/_internal/platform/integrations/github.js +237 -0
- package/dist/_internal/platform/integrations/ntfy.d.ts +44 -0
- package/dist/_internal/platform/integrations/ntfy.d.ts.map +1 -0
- package/dist/_internal/platform/integrations/ntfy.js +129 -0
- package/dist/_internal/platform/integrations/slack.d.ts +190 -0
- package/dist/_internal/platform/integrations/slack.d.ts.map +1 -0
- package/dist/_internal/platform/integrations/slack.js +374 -0
- package/dist/_internal/platform/intelligence/config.d.ts +35 -0
- package/dist/_internal/platform/intelligence/config.d.ts.map +1 -0
- package/dist/_internal/platform/intelligence/config.js +116 -0
- package/dist/_internal/platform/intelligence/facade.d.ts +99 -0
- package/dist/_internal/platform/intelligence/facade.d.ts.map +1 -0
- package/dist/_internal/platform/intelligence/facade.js +336 -0
- package/dist/_internal/platform/intelligence/import-graph.d.ts +83 -0
- package/dist/_internal/platform/intelligence/import-graph.d.ts.map +1 -0
- package/dist/_internal/platform/intelligence/import-graph.js +257 -0
- package/dist/_internal/platform/intelligence/index.d.ts +19 -0
- package/dist/_internal/platform/intelligence/index.d.ts.map +1 -0
- package/dist/_internal/platform/intelligence/index.js +18 -0
- package/dist/_internal/platform/intelligence/lsp/binary-downloader.d.ts +17 -0
- package/dist/_internal/platform/intelligence/lsp/binary-downloader.d.ts.map +1 -0
- package/dist/_internal/platform/intelligence/lsp/binary-downloader.js +245 -0
- package/dist/_internal/platform/intelligence/lsp/capabilities.d.ts +19 -0
- package/dist/_internal/platform/intelligence/lsp/capabilities.d.ts.map +1 -0
- package/dist/_internal/platform/intelligence/lsp/capabilities.js +59 -0
- package/dist/_internal/platform/intelligence/lsp/client.d.ts +33 -0
- package/dist/_internal/platform/intelligence/lsp/client.d.ts.map +1 -0
- package/dist/_internal/platform/intelligence/lsp/client.js +238 -0
- package/dist/_internal/platform/intelligence/lsp/index.d.ts +8 -0
- package/dist/_internal/platform/intelligence/lsp/index.d.ts.map +1 -0
- package/dist/_internal/platform/intelligence/lsp/index.js +4 -0
- package/dist/_internal/platform/intelligence/lsp/protocol.d.ts +102 -0
- package/dist/_internal/platform/intelligence/lsp/protocol.d.ts.map +1 -0
- package/dist/_internal/platform/intelligence/lsp/protocol.js +30 -0
- package/dist/_internal/platform/intelligence/lsp/service.d.ts +45 -0
- package/dist/_internal/platform/intelligence/lsp/service.d.ts.map +1 -0
- package/dist/_internal/platform/intelligence/lsp/service.js +213 -0
- package/dist/_internal/platform/intelligence/tree-sitter/embedded-wasm.d.ts +13 -0
- package/dist/_internal/platform/intelligence/tree-sitter/embedded-wasm.d.ts.map +1 -0
- package/dist/_internal/platform/intelligence/tree-sitter/embedded-wasm.js +36 -0
- package/dist/_internal/platform/intelligence/tree-sitter/index.d.ts +10 -0
- package/dist/_internal/platform/intelligence/tree-sitter/index.d.ts.map +1 -0
- package/dist/_internal/platform/intelligence/tree-sitter/index.js +8 -0
- package/dist/_internal/platform/intelligence/tree-sitter/languages.d.ts +15 -0
- package/dist/_internal/platform/intelligence/tree-sitter/languages.d.ts.map +1 -0
- package/dist/_internal/platform/intelligence/tree-sitter/languages.js +78 -0
- package/dist/_internal/platform/intelligence/tree-sitter/queries.d.ts +48 -0
- package/dist/_internal/platform/intelligence/tree-sitter/queries.d.ts.map +1 -0
- package/dist/_internal/platform/intelligence/tree-sitter/queries.js +403 -0
- package/dist/_internal/platform/intelligence/tree-sitter/service.d.ts +48 -0
- package/dist/_internal/platform/intelligence/tree-sitter/service.d.ts.map +1 -0
- package/dist/_internal/platform/intelligence/tree-sitter/service.js +171 -0
- package/dist/_internal/platform/knowledge/bookmarks.d.ts +3 -0
- package/dist/_internal/platform/knowledge/bookmarks.d.ts.map +1 -0
- package/dist/_internal/platform/knowledge/bookmarks.js +150 -0
- package/dist/_internal/platform/knowledge/connectors.d.ts +13 -0
- package/dist/_internal/platform/knowledge/connectors.d.ts.map +1 -0
- package/dist/_internal/platform/knowledge/connectors.js +248 -0
- package/dist/_internal/platform/knowledge/extractors.d.ts +16 -0
- package/dist/_internal/platform/knowledge/extractors.d.ts.map +1 -0
- package/dist/_internal/platform/knowledge/extractors.js +518 -0
- package/dist/_internal/platform/knowledge/graphql-schema.d.ts +45 -0
- package/dist/_internal/platform/knowledge/graphql-schema.d.ts.map +1 -0
- package/dist/_internal/platform/knowledge/graphql-schema.js +534 -0
- package/dist/_internal/platform/knowledge/persistence.d.ts +6 -0
- package/dist/_internal/platform/knowledge/persistence.d.ts.map +1 -0
- package/dist/_internal/platform/knowledge/persistence.js +3 -0
- package/dist/_internal/platform/knowledge/projections.d.ts +47 -0
- package/dist/_internal/platform/knowledge/projections.d.ts.map +1 -0
- package/dist/_internal/platform/knowledge/projections.js +674 -0
- package/dist/_internal/platform/knowledge/store-load.d.ts +16 -0
- package/dist/_internal/platform/knowledge/store-load.d.ts.map +1 -0
- package/dist/_internal/platform/knowledge/store-load.js +21 -0
- package/dist/_internal/platform/knowledge/store-read.d.ts +50 -0
- package/dist/_internal/platform/knowledge/store-read.d.ts.map +1 -0
- package/dist/_internal/platform/knowledge/store-read.js +183 -0
- package/dist/_internal/platform/knowledge/store-schema.d.ts +22 -0
- package/dist/_internal/platform/knowledge/store-schema.d.ts.map +1 -0
- package/dist/_internal/platform/knowledge/store-schema.js +408 -0
- package/dist/_internal/platform/knowledge/store.d.ts +76 -0
- package/dist/_internal/platform/knowledge/store.d.ts.map +1 -0
- package/dist/_internal/platform/knowledge/store.js +656 -0
- package/dist/_internal/platform/knowledge/types.d.ts +452 -0
- package/dist/_internal/platform/knowledge/types.d.ts.map +1 -0
- package/dist/_internal/platform/knowledge/types.js +1 -0
- package/dist/_internal/platform/mcp/config.d.ts +29 -0
- package/dist/_internal/platform/mcp/config.d.ts.map +1 -0
- package/dist/_internal/platform/mcp/config.js +99 -0
- package/dist/_internal/platform/media/builtin-generation-providers.d.ts +3 -0
- package/dist/_internal/platform/media/builtin-generation-providers.d.ts.map +1 -0
- package/dist/_internal/platform/media/builtin-generation-providers.js +552 -0
- package/dist/_internal/platform/media/provider-registry.d.ts +86 -0
- package/dist/_internal/platform/media/provider-registry.d.ts.map +1 -0
- package/dist/_internal/platform/media/provider-registry.js +58 -0
- package/dist/_internal/platform/multimodal/types.d.ts +71 -0
- package/dist/_internal/platform/multimodal/types.d.ts.map +1 -0
- package/dist/_internal/platform/multimodal/types.js +1 -0
- package/dist/_internal/platform/permissions/analysis.d.ts +3 -0
- package/dist/_internal/platform/permissions/analysis.d.ts.map +1 -0
- package/dist/_internal/platform/permissions/analysis.js +220 -0
- package/dist/_internal/platform/permissions/briefs/render-hints.d.ts +3 -0
- package/dist/_internal/platform/permissions/briefs/render-hints.d.ts.map +1 -0
- package/dist/_internal/platform/permissions/briefs/render-hints.js +3 -0
- package/dist/_internal/platform/permissions/briefs/types.d.ts +10 -0
- package/dist/_internal/platform/permissions/briefs/types.d.ts.map +1 -0
- package/dist/_internal/platform/permissions/briefs/types.js +1 -0
- package/dist/_internal/platform/permissions/types.d.ts +28 -0
- package/dist/_internal/platform/permissions/types.d.ts.map +1 -0
- package/dist/_internal/platform/permissions/types.js +2 -0
- package/dist/_internal/platform/profiles/manager.d.ts +57 -0
- package/dist/_internal/platform/profiles/manager.d.ts.map +1 -0
- package/dist/_internal/platform/profiles/manager.js +140 -0
- package/dist/_internal/platform/providers/cache-capability.d.ts +51 -0
- package/dist/_internal/platform/providers/cache-capability.d.ts.map +1 -0
- package/dist/_internal/platform/providers/cache-capability.js +124 -0
- package/dist/_internal/platform/providers/cache-strategy.d.ts +76 -0
- package/dist/_internal/platform/providers/cache-strategy.d.ts.map +1 -0
- package/dist/_internal/platform/providers/cache-strategy.js +160 -0
- package/dist/_internal/platform/providers/context-discovery.d.ts +99 -0
- package/dist/_internal/platform/providers/context-discovery.d.ts.map +1 -0
- package/dist/_internal/platform/providers/context-discovery.js +341 -0
- package/dist/_internal/platform/providers/effort-levels.d.ts +7 -0
- package/dist/_internal/platform/providers/effort-levels.d.ts.map +1 -0
- package/dist/_internal/platform/providers/effort-levels.js +11 -0
- package/dist/_internal/platform/providers/favorites.d.ts +34 -0
- package/dist/_internal/platform/providers/favorites.d.ts.map +1 -0
- package/dist/_internal/platform/providers/favorites.js +103 -0
- package/dist/_internal/platform/providers/local-context-ingestion.d.ts +89 -0
- package/dist/_internal/platform/providers/local-context-ingestion.d.ts.map +1 -0
- package/dist/_internal/platform/providers/local-context-ingestion.js +119 -0
- package/dist/_internal/platform/providers/microsoft-foundry-shared.d.ts +4 -0
- package/dist/_internal/platform/providers/microsoft-foundry-shared.d.ts.map +1 -0
- package/dist/_internal/platform/providers/microsoft-foundry-shared.js +21 -0
- package/dist/_internal/platform/providers/model-benchmarks.d.ts +43 -0
- package/dist/_internal/platform/providers/model-benchmarks.d.ts.map +1 -0
- package/dist/_internal/platform/providers/model-benchmarks.js +268 -0
- package/dist/_internal/platform/providers/openai-stream-delta.d.ts +14 -0
- package/dist/_internal/platform/providers/openai-stream-delta.d.ts.map +1 -0
- package/dist/_internal/platform/providers/openai-stream-delta.js +122 -0
- package/dist/_internal/platform/runtime/auth/oauth-core.d.ts +32 -0
- package/dist/_internal/platform/runtime/auth/oauth-core.d.ts.map +1 -0
- package/dist/_internal/platform/runtime/auth/oauth-core.js +121 -0
- package/dist/_internal/platform/runtime/contracts/index.d.ts +40 -0
- package/dist/_internal/platform/runtime/contracts/index.d.ts.map +1 -0
- package/dist/_internal/platform/runtime/contracts/index.js +137 -0
- package/dist/_internal/platform/runtime/contracts/migrations/event-envelope.d.ts +23 -0
- package/dist/_internal/platform/runtime/contracts/migrations/event-envelope.d.ts.map +1 -0
- package/dist/_internal/platform/runtime/contracts/migrations/event-envelope.js +41 -0
- package/dist/_internal/platform/runtime/contracts/migrations/index.d.ts +75 -0
- package/dist/_internal/platform/runtime/contracts/migrations/index.d.ts.map +1 -0
- package/dist/_internal/platform/runtime/contracts/migrations/index.js +158 -0
- package/dist/_internal/platform/runtime/contracts/migrations/plugin-manifest.d.ts +23 -0
- package/dist/_internal/platform/runtime/contracts/migrations/plugin-manifest.d.ts.map +1 -0
- package/dist/_internal/platform/runtime/contracts/migrations/plugin-manifest.js +41 -0
- package/dist/_internal/platform/runtime/contracts/migrations/runtime-state.d.ts +23 -0
- package/dist/_internal/platform/runtime/contracts/migrations/runtime-state.d.ts.map +1 -0
- package/dist/_internal/platform/runtime/contracts/migrations/runtime-state.js +44 -0
- package/dist/_internal/platform/runtime/contracts/migrations/session.d.ts +23 -0
- package/dist/_internal/platform/runtime/contracts/migrations/session.d.ts.map +1 -0
- package/dist/_internal/platform/runtime/contracts/migrations/session.js +42 -0
- package/dist/_internal/platform/runtime/contracts/migrations/task-record.d.ts +23 -0
- package/dist/_internal/platform/runtime/contracts/migrations/task-record.d.ts.map +1 -0
- package/dist/_internal/platform/runtime/contracts/migrations/task-record.js +41 -0
- package/dist/_internal/platform/runtime/contracts/types.d.ts +123 -0
- package/dist/_internal/platform/runtime/contracts/types.d.ts.map +1 -0
- package/dist/_internal/platform/runtime/contracts/types.js +41 -0
- package/dist/_internal/platform/runtime/contracts/validators/event-envelope.d.ts +24 -0
- package/dist/_internal/platform/runtime/contracts/validators/event-envelope.d.ts.map +1 -0
- package/dist/_internal/platform/runtime/contracts/validators/event-envelope.js +104 -0
- package/dist/_internal/platform/runtime/contracts/validators/index.d.ts +11 -0
- package/dist/_internal/platform/runtime/contracts/validators/index.d.ts.map +1 -0
- package/dist/_internal/platform/runtime/contracts/validators/index.js +10 -0
- package/dist/_internal/platform/runtime/contracts/validators/runtime-state.d.ts +23 -0
- package/dist/_internal/platform/runtime/contracts/validators/runtime-state.d.ts.map +1 -0
- package/dist/_internal/platform/runtime/contracts/validators/runtime-state.js +101 -0
- package/dist/_internal/platform/runtime/contracts/validators/session.d.ts +24 -0
- package/dist/_internal/platform/runtime/contracts/validators/session.d.ts.map +1 -0
- package/dist/_internal/platform/runtime/contracts/validators/session.js +103 -0
- package/dist/_internal/platform/runtime/contracts/version.d.ts +84 -0
- package/dist/_internal/platform/runtime/contracts/version.d.ts.map +1 -0
- package/dist/_internal/platform/runtime/contracts/version.js +41 -0
- package/dist/_internal/platform/runtime/deferred-startup.d.ts +12 -0
- package/dist/_internal/platform/runtime/deferred-startup.d.ts.map +1 -0
- package/dist/_internal/platform/runtime/deferred-startup.js +38 -0
- package/dist/_internal/platform/runtime/diagnostics/panels/divergence.d.ts +66 -0
- package/dist/_internal/platform/runtime/diagnostics/panels/divergence.d.ts.map +1 -0
- package/dist/_internal/platform/runtime/diagnostics/panels/divergence.js +93 -0
- package/dist/_internal/platform/runtime/diagnostics/panels/forensics.d.ts +38 -0
- package/dist/_internal/platform/runtime/diagnostics/panels/forensics.d.ts.map +1 -0
- package/dist/_internal/platform/runtime/diagnostics/panels/forensics.js +56 -0
- package/dist/_internal/platform/runtime/diagnostics/panels/panel-resources.d.ts +55 -0
- package/dist/_internal/platform/runtime/diagnostics/panels/panel-resources.d.ts.map +1 -0
- package/dist/_internal/platform/runtime/diagnostics/panels/panel-resources.js +125 -0
- package/dist/_internal/platform/runtime/diagnostics/panels/replay.d.ts +34 -0
- package/dist/_internal/platform/runtime/diagnostics/panels/replay.d.ts.map +1 -0
- package/dist/_internal/platform/runtime/diagnostics/panels/replay.js +67 -0
- package/dist/_internal/platform/runtime/diagnostics/panels/security.d.ts +89 -0
- package/dist/_internal/platform/runtime/diagnostics/panels/security.d.ts.map +1 -0
- package/dist/_internal/platform/runtime/diagnostics/panels/security.js +118 -0
- package/dist/_internal/platform/runtime/diagnostics/panels/state-inspector.d.ts +112 -0
- package/dist/_internal/platform/runtime/diagnostics/panels/state-inspector.d.ts.map +1 -0
- package/dist/_internal/platform/runtime/diagnostics/panels/state-inspector.js +122 -0
- package/dist/_internal/platform/runtime/diagnostics/panels/tool-contracts.d.ts +99 -0
- package/dist/_internal/platform/runtime/diagnostics/panels/tool-contracts.d.ts.map +1 -0
- package/dist/_internal/platform/runtime/diagnostics/panels/tool-contracts.js +172 -0
- package/dist/_internal/platform/runtime/diagnostics/panels/transport.d.ts +146 -0
- package/dist/_internal/platform/runtime/diagnostics/panels/transport.d.ts.map +1 -0
- package/dist/_internal/platform/runtime/diagnostics/panels/transport.js +268 -0
- package/dist/_internal/platform/runtime/diagnostics/types.d.ts +533 -0
- package/dist/_internal/platform/runtime/diagnostics/types.d.ts.map +1 -0
- package/dist/_internal/platform/runtime/diagnostics/types.js +58 -0
- package/dist/_internal/platform/runtime/eval/baseline.d.ts +41 -0
- package/dist/_internal/platform/runtime/eval/baseline.d.ts.map +1 -0
- package/dist/_internal/platform/runtime/eval/baseline.js +123 -0
- package/dist/_internal/platform/runtime/eval/format.d.ts +16 -0
- package/dist/_internal/platform/runtime/eval/format.d.ts.map +1 -0
- package/dist/_internal/platform/runtime/eval/format.js +58 -0
- package/dist/_internal/platform/runtime/eval/scorecard.d.ts +32 -0
- package/dist/_internal/platform/runtime/eval/scorecard.d.ts.map +1 -0
- package/dist/_internal/platform/runtime/eval/scorecard.js +231 -0
- package/dist/_internal/platform/runtime/eval/types.d.ts +156 -0
- package/dist/_internal/platform/runtime/eval/types.d.ts.map +1 -0
- package/dist/_internal/platform/runtime/eval/types.js +7 -0
- package/dist/_internal/platform/runtime/event-envelope.d.ts +3 -0
- package/dist/_internal/platform/runtime/event-envelope.d.ts.map +1 -0
- package/dist/_internal/platform/runtime/event-envelope.js +1 -0
- package/dist/_internal/platform/runtime/event-feeds.d.ts +3 -0
- package/dist/_internal/platform/runtime/event-feeds.d.ts.map +1 -0
- package/dist/_internal/platform/runtime/event-feeds.js +1 -0
- package/dist/_internal/platform/runtime/events/agents.d.ts +82 -0
- package/dist/_internal/platform/runtime/events/agents.d.ts.map +1 -0
- package/dist/_internal/platform/runtime/events/agents.js +2 -0
- package/dist/_internal/platform/runtime/events/automation.d.ts +73 -0
- package/dist/_internal/platform/runtime/events/automation.d.ts.map +1 -0
- package/dist/_internal/platform/runtime/events/automation.js +6 -0
- package/dist/_internal/platform/runtime/events/communication.d.ts +42 -0
- package/dist/_internal/platform/runtime/events/communication.d.ts.map +1 -0
- package/dist/_internal/platform/runtime/events/communication.js +2 -0
- package/dist/_internal/platform/runtime/events/compaction.d.ts +99 -0
- package/dist/_internal/platform/runtime/events/compaction.d.ts.map +1 -0
- package/dist/_internal/platform/runtime/events/compaction.js +2 -0
- package/dist/_internal/platform/runtime/events/contracts/agent-mcp.d.ts +8 -0
- package/dist/_internal/platform/runtime/events/contracts/agent-mcp.d.ts.map +1 -0
- package/dist/_internal/platform/runtime/events/contracts/agent-mcp.js +40 -0
- package/dist/_internal/platform/runtime/events/contracts/automation-route.d.ts +41 -0
- package/dist/_internal/platform/runtime/events/contracts/automation-route.d.ts.map +1 -0
- package/dist/_internal/platform/runtime/events/contracts/automation-route.js +315 -0
- package/dist/_internal/platform/runtime/events/contracts/shared.d.ts +28 -0
- package/dist/_internal/platform/runtime/events/contracts/shared.d.ts.map +1 -0
- package/dist/_internal/platform/runtime/events/contracts/shared.js +72 -0
- package/dist/_internal/platform/runtime/events/contracts/turn-tool.d.ts +10 -0
- package/dist/_internal/platform/runtime/events/contracts/turn-tool.d.ts.map +1 -0
- package/dist/_internal/platform/runtime/events/contracts/turn-tool.js +53 -0
- package/dist/_internal/platform/runtime/events/contracts.d.ts +11 -0
- package/dist/_internal/platform/runtime/events/contracts.d.ts.map +1 -0
- package/dist/_internal/platform/runtime/events/contracts.js +83 -0
- package/dist/_internal/platform/runtime/events/control-plane.d.ts +43 -0
- package/dist/_internal/platform/runtime/events/control-plane.d.ts.map +1 -0
- package/dist/_internal/platform/runtime/events/control-plane.js +25 -0
- package/dist/_internal/platform/runtime/events/deliveries.d.ts +54 -0
- package/dist/_internal/platform/runtime/events/deliveries.d.ts.map +1 -0
- package/dist/_internal/platform/runtime/events/deliveries.js +4 -0
- package/dist/_internal/platform/runtime/events/envelope.d.ts +3 -0
- package/dist/_internal/platform/runtime/events/envelope.d.ts.map +1 -0
- package/dist/_internal/platform/runtime/events/envelope.js +1 -0
- package/dist/_internal/platform/runtime/events/forensics.d.ts +32 -0
- package/dist/_internal/platform/runtime/events/forensics.d.ts.map +1 -0
- package/dist/_internal/platform/runtime/events/forensics.js +2 -0
- package/dist/_internal/platform/runtime/events/knowledge.d.ts +77 -0
- package/dist/_internal/platform/runtime/events/knowledge.d.ts.map +1 -0
- package/dist/_internal/platform/runtime/events/knowledge.js +2 -0
- package/dist/_internal/platform/runtime/events/mcp.d.ts +90 -0
- package/dist/_internal/platform/runtime/events/mcp.d.ts.map +1 -0
- package/dist/_internal/platform/runtime/events/mcp.js +6 -0
- package/dist/_internal/platform/runtime/events/ops.d.ts +82 -0
- package/dist/_internal/platform/runtime/events/ops.d.ts.map +1 -0
- package/dist/_internal/platform/runtime/events/ops.js +2 -0
- package/dist/_internal/platform/runtime/events/orchestration.d.ts +76 -0
- package/dist/_internal/platform/runtime/events/orchestration.d.ts.map +1 -0
- package/dist/_internal/platform/runtime/events/orchestration.js +2 -0
- package/dist/_internal/platform/runtime/events/permissions.d.ts +79 -0
- package/dist/_internal/platform/runtime/events/permissions.d.ts.map +1 -0
- package/dist/_internal/platform/runtime/events/permissions.js +2 -0
- package/dist/_internal/platform/runtime/events/planner.d.ts +13 -0
- package/dist/_internal/platform/runtime/events/planner.d.ts.map +1 -0
- package/dist/_internal/platform/runtime/events/planner.js +1 -0
- package/dist/_internal/platform/runtime/events/plugins.d.ts +61 -0
- package/dist/_internal/platform/runtime/events/plugins.d.ts.map +1 -0
- package/dist/_internal/platform/runtime/events/plugins.js +2 -0
- package/dist/_internal/platform/runtime/events/providers.d.ts +20 -0
- package/dist/_internal/platform/runtime/events/providers.d.ts.map +1 -0
- package/dist/_internal/platform/runtime/events/providers.js +2 -0
- package/dist/_internal/platform/runtime/events/routes.d.ts +41 -0
- package/dist/_internal/platform/runtime/events/routes.d.ts.map +1 -0
- package/dist/_internal/platform/runtime/events/routes.js +23 -0
- package/dist/_internal/platform/runtime/events/security.d.ts +44 -0
- package/dist/_internal/platform/runtime/events/security.d.ts.map +1 -0
- package/dist/_internal/platform/runtime/events/security.js +8 -0
- package/dist/_internal/platform/runtime/events/session.d.ts +52 -0
- package/dist/_internal/platform/runtime/events/session.d.ts.map +1 -0
- package/dist/_internal/platform/runtime/events/session.js +2 -0
- package/dist/_internal/platform/runtime/events/surfaces.d.ts +37 -0
- package/dist/_internal/platform/runtime/events/surfaces.d.ts.map +1 -0
- package/dist/_internal/platform/runtime/events/surfaces.js +4 -0
- package/dist/_internal/platform/runtime/events/tasks.d.ts +61 -0
- package/dist/_internal/platform/runtime/events/tasks.d.ts.map +1 -0
- package/dist/_internal/platform/runtime/events/tasks.js +2 -0
- package/dist/_internal/platform/runtime/events/tools.d.ts +132 -0
- package/dist/_internal/platform/runtime/events/tools.d.ts.map +1 -0
- package/dist/_internal/platform/runtime/events/tools.js +2 -0
- package/dist/_internal/platform/runtime/events/transport.d.ts +58 -0
- package/dist/_internal/platform/runtime/events/transport.d.ts.map +1 -0
- package/dist/_internal/platform/runtime/events/transport.js +2 -0
- package/dist/_internal/platform/runtime/events/ui.d.ts +59 -0
- package/dist/_internal/platform/runtime/events/ui.d.ts.map +1 -0
- package/dist/_internal/platform/runtime/events/ui.js +6 -0
- package/dist/_internal/platform/runtime/events/watchers.d.ts +36 -0
- package/dist/_internal/platform/runtime/events/watchers.d.ts.map +1 -0
- package/dist/_internal/platform/runtime/events/watchers.js +5 -0
- package/dist/_internal/platform/runtime/execution-intents.d.ts +14 -0
- package/dist/_internal/platform/runtime/execution-intents.d.ts.map +1 -0
- package/dist/_internal/platform/runtime/execution-intents.js +4 -0
- package/dist/_internal/platform/runtime/feature-flags/flags.d.ts +21 -0
- package/dist/_internal/platform/runtime/feature-flags/flags.d.ts.map +1 -0
- package/dist/_internal/platform/runtime/feature-flags/flags.js +472 -0
- package/dist/_internal/platform/runtime/feature-flags/index.d.ts +22 -0
- package/dist/_internal/platform/runtime/feature-flags/index.d.ts.map +1 -0
- package/dist/_internal/platform/runtime/feature-flags/index.js +19 -0
- package/dist/_internal/platform/runtime/feature-flags/manager.d.ts +133 -0
- package/dist/_internal/platform/runtime/feature-flags/manager.d.ts.map +1 -0
- package/dist/_internal/platform/runtime/feature-flags/manager.js +255 -0
- package/dist/_internal/platform/runtime/feature-flags/types.d.ts +65 -0
- package/dist/_internal/platform/runtime/feature-flags/types.d.ts.map +1 -0
- package/dist/_internal/platform/runtime/feature-flags/types.js +7 -0
- package/dist/_internal/platform/runtime/forensics/classifier.d.ts +39 -0
- package/dist/_internal/platform/runtime/forensics/classifier.d.ts.map +1 -0
- package/dist/_internal/platform/runtime/forensics/classifier.js +95 -0
- package/dist/_internal/platform/runtime/forensics/registry.d.ts +89 -0
- package/dist/_internal/platform/runtime/forensics/registry.d.ts.map +1 -0
- package/dist/_internal/platform/runtime/forensics/registry.js +191 -0
- package/dist/_internal/platform/runtime/forensics/types.d.ts +206 -0
- package/dist/_internal/platform/runtime/forensics/types.d.ts.map +1 -0
- package/dist/_internal/platform/runtime/forensics/types.js +9 -0
- package/dist/_internal/platform/runtime/health/aggregator.d.ts +57 -0
- package/dist/_internal/platform/runtime/health/aggregator.d.ts.map +1 -0
- package/dist/_internal/platform/runtime/health/aggregator.js +188 -0
- package/dist/_internal/platform/runtime/health/cascade-engine.d.ts +55 -0
- package/dist/_internal/platform/runtime/health/cascade-engine.d.ts.map +1 -0
- package/dist/_internal/platform/runtime/health/cascade-engine.js +134 -0
- package/dist/_internal/platform/runtime/health/cascade-playbook-map.d.ts +23 -0
- package/dist/_internal/platform/runtime/health/cascade-playbook-map.d.ts.map +1 -0
- package/dist/_internal/platform/runtime/health/cascade-playbook-map.js +49 -0
- package/dist/_internal/platform/runtime/health/cascade-rules.d.ts +14 -0
- package/dist/_internal/platform/runtime/health/cascade-rules.d.ts.map +1 -0
- package/dist/_internal/platform/runtime/health/cascade-rules.js +89 -0
- package/dist/_internal/platform/runtime/health/cascade-timing.d.ts +79 -0
- package/dist/_internal/platform/runtime/health/cascade-timing.d.ts.map +1 -0
- package/dist/_internal/platform/runtime/health/cascade-timing.js +96 -0
- package/dist/_internal/platform/runtime/health/types.d.ts +176 -0
- package/dist/_internal/platform/runtime/health/types.d.ts.map +1 -0
- package/dist/_internal/platform/runtime/health/types.js +24 -0
- package/dist/_internal/platform/runtime/idempotency/index.d.ts +123 -0
- package/dist/_internal/platform/runtime/idempotency/index.d.ts.map +1 -0
- package/dist/_internal/platform/runtime/idempotency/index.js +193 -0
- package/dist/_internal/platform/runtime/idempotency/types.d.ts +70 -0
- package/dist/_internal/platform/runtime/idempotency/types.d.ts.map +1 -0
- package/dist/_internal/platform/runtime/idempotency/types.js +2 -0
- package/dist/_internal/platform/runtime/inspection/state-inspector/hotspot-sampler.d.ts +80 -0
- package/dist/_internal/platform/runtime/inspection/state-inspector/hotspot-sampler.d.ts.map +1 -0
- package/dist/_internal/platform/runtime/inspection/state-inspector/hotspot-sampler.js +153 -0
- package/dist/_internal/platform/runtime/inspection/state-inspector/index.d.ts +42 -0
- package/dist/_internal/platform/runtime/inspection/state-inspector/index.d.ts.map +1 -0
- package/dist/_internal/platform/runtime/inspection/state-inspector/index.js +38 -0
- package/dist/_internal/platform/runtime/inspection/state-inspector/inspector.d.ts +184 -0
- package/dist/_internal/platform/runtime/inspection/state-inspector/inspector.d.ts.map +1 -0
- package/dist/_internal/platform/runtime/inspection/state-inspector/inspector.js +331 -0
- package/dist/_internal/platform/runtime/inspection/state-inspector/serialize.d.ts +16 -0
- package/dist/_internal/platform/runtime/inspection/state-inspector/serialize.d.ts.map +1 -0
- package/dist/_internal/platform/runtime/inspection/state-inspector/serialize.js +39 -0
- package/dist/_internal/platform/runtime/inspection/state-inspector/timeline.d.ts +116 -0
- package/dist/_internal/platform/runtime/inspection/state-inspector/timeline.d.ts.map +1 -0
- package/dist/_internal/platform/runtime/inspection/state-inspector/timeline.js +198 -0
- package/dist/_internal/platform/runtime/inspection/state-inspector/transition-log.d.ts +84 -0
- package/dist/_internal/platform/runtime/inspection/state-inspector/transition-log.d.ts.map +1 -0
- package/dist/_internal/platform/runtime/inspection/state-inspector/transition-log.js +120 -0
- package/dist/_internal/platform/runtime/inspection/state-inspector/types.d.ts +193 -0
- package/dist/_internal/platform/runtime/inspection/state-inspector/types.d.ts.map +1 -0
- package/dist/_internal/platform/runtime/inspection/state-inspector/types.js +16 -0
- package/dist/_internal/platform/runtime/mcp/lifecycle.d.ts +54 -0
- package/dist/_internal/platform/runtime/mcp/lifecycle.d.ts.map +1 -0
- package/dist/_internal/platform/runtime/mcp/lifecycle.js +72 -0
- package/dist/_internal/platform/runtime/mcp/permissions.d.ts +110 -0
- package/dist/_internal/platform/runtime/mcp/permissions.d.ts.map +1 -0
- package/dist/_internal/platform/runtime/mcp/permissions.js +605 -0
- package/dist/_internal/platform/runtime/mcp/schema-freshness.d.ts +115 -0
- package/dist/_internal/platform/runtime/mcp/schema-freshness.d.ts.map +1 -0
- package/dist/_internal/platform/runtime/mcp/schema-freshness.js +231 -0
- package/dist/_internal/platform/runtime/mcp/types.d.ts +275 -0
- package/dist/_internal/platform/runtime/mcp/types.d.ts.map +1 -0
- package/dist/_internal/platform/runtime/mcp/types.js +6 -0
- package/dist/_internal/platform/runtime/notifications/formatters/index.d.ts +6 -0
- package/dist/_internal/platform/runtime/notifications/formatters/index.d.ts.map +1 -0
- package/dist/_internal/platform/runtime/notifications/formatters/index.js +5 -0
- package/dist/_internal/platform/runtime/notifications/formatters/panel-jump.d.ts +23 -0
- package/dist/_internal/platform/runtime/notifications/formatters/panel-jump.d.ts.map +1 -0
- package/dist/_internal/platform/runtime/notifications/formatters/panel-jump.js +32 -0
- package/dist/_internal/platform/runtime/notifications/formatters/summary.d.ts +24 -0
- package/dist/_internal/platform/runtime/notifications/formatters/summary.d.ts.map +1 -0
- package/dist/_internal/platform/runtime/notifications/formatters/summary.js +56 -0
- package/dist/_internal/platform/runtime/notifications/index.d.ts +32 -0
- package/dist/_internal/platform/runtime/notifications/index.d.ts.map +1 -0
- package/dist/_internal/platform/runtime/notifications/index.js +32 -0
- package/dist/_internal/platform/runtime/notifications/policies/batch-policy.d.ts +51 -0
- package/dist/_internal/platform/runtime/notifications/policies/batch-policy.d.ts.map +1 -0
- package/dist/_internal/platform/runtime/notifications/policies/batch-policy.js +85 -0
- package/dist/_internal/platform/runtime/notifications/policies/burst-policy.d.ts +70 -0
- package/dist/_internal/platform/runtime/notifications/policies/burst-policy.d.ts.map +1 -0
- package/dist/_internal/platform/runtime/notifications/policies/burst-policy.js +122 -0
- package/dist/_internal/platform/runtime/notifications/policies/default-policy.d.ts +21 -0
- package/dist/_internal/platform/runtime/notifications/policies/default-policy.d.ts.map +1 -0
- package/dist/_internal/platform/runtime/notifications/policies/default-policy.js +32 -0
- package/dist/_internal/platform/runtime/notifications/policies/index.d.ts +9 -0
- package/dist/_internal/platform/runtime/notifications/policies/index.d.ts.map +1 -0
- package/dist/_internal/platform/runtime/notifications/policies/index.js +8 -0
- package/dist/_internal/platform/runtime/notifications/policies/mode-context-policy.d.ts +28 -0
- package/dist/_internal/platform/runtime/notifications/policies/mode-context-policy.d.ts.map +1 -0
- package/dist/_internal/platform/runtime/notifications/policies/mode-context-policy.js +62 -0
- package/dist/_internal/platform/runtime/notifications/policies/quiet-typing.d.ts +21 -0
- package/dist/_internal/platform/runtime/notifications/policies/quiet-typing.d.ts.map +1 -0
- package/dist/_internal/platform/runtime/notifications/policies/quiet-typing.js +37 -0
- package/dist/_internal/platform/runtime/notifications/router.d.ts +139 -0
- package/dist/_internal/platform/runtime/notifications/router.d.ts.map +1 -0
- package/dist/_internal/platform/runtime/notifications/router.js +222 -0
- package/dist/_internal/platform/runtime/notifications/types.d.ts +127 -0
- package/dist/_internal/platform/runtime/notifications/types.d.ts.map +1 -0
- package/dist/_internal/platform/runtime/notifications/types.js +2 -0
- package/dist/_internal/platform/runtime/ops/playbooks/compaction-failure.d.ts +10 -0
- package/dist/_internal/platform/runtime/ops/playbooks/compaction-failure.d.ts.map +1 -0
- package/dist/_internal/platform/runtime/ops/playbooks/compaction-failure.js +106 -0
- package/dist/_internal/platform/runtime/ops/playbooks/export-recovery.d.ts +10 -0
- package/dist/_internal/platform/runtime/ops/playbooks/export-recovery.d.ts.map +1 -0
- package/dist/_internal/platform/runtime/ops/playbooks/export-recovery.js +110 -0
- package/dist/_internal/platform/runtime/ops/playbooks/permission-deadlock.d.ts +11 -0
- package/dist/_internal/platform/runtime/ops/playbooks/permission-deadlock.d.ts.map +1 -0
- package/dist/_internal/platform/runtime/ops/playbooks/permission-deadlock.js +108 -0
- package/dist/_internal/platform/runtime/ops/playbooks/plugin-degradation.d.ts +10 -0
- package/dist/_internal/platform/runtime/ops/playbooks/plugin-degradation.d.ts.map +1 -0
- package/dist/_internal/platform/runtime/ops/playbooks/plugin-degradation.js +107 -0
- package/dist/_internal/platform/runtime/ops/playbooks/reconnect-failure.d.ts +10 -0
- package/dist/_internal/platform/runtime/ops/playbooks/reconnect-failure.d.ts.map +1 -0
- package/dist/_internal/platform/runtime/ops/playbooks/reconnect-failure.js +109 -0
- package/dist/_internal/platform/runtime/ops/safe-check.d.ts +10 -0
- package/dist/_internal/platform/runtime/ops/safe-check.d.ts.map +1 -0
- package/dist/_internal/platform/runtime/ops/safe-check.js +14 -0
- package/dist/_internal/platform/runtime/ops/types.d.ts +100 -0
- package/dist/_internal/platform/runtime/ops/types.d.ts.map +1 -0
- package/dist/_internal/platform/runtime/ops/types.js +2 -0
- package/dist/_internal/platform/runtime/perf/budgets.d.ts +17 -0
- package/dist/_internal/platform/runtime/perf/budgets.d.ts.map +1 -0
- package/dist/_internal/platform/runtime/perf/budgets.js +117 -0
- package/dist/_internal/platform/runtime/perf/monitor.d.ts +69 -0
- package/dist/_internal/platform/runtime/perf/monitor.d.ts.map +1 -0
- package/dist/_internal/platform/runtime/perf/monitor.js +148 -0
- package/dist/_internal/platform/runtime/perf/panel-contracts.d.ts +94 -0
- package/dist/_internal/platform/runtime/perf/panel-contracts.d.ts.map +1 -0
- package/dist/_internal/platform/runtime/perf/panel-contracts.js +86 -0
- package/dist/_internal/platform/runtime/perf/panel-health-monitor.d.ts +92 -0
- package/dist/_internal/platform/runtime/perf/panel-health-monitor.d.ts.map +1 -0
- package/dist/_internal/platform/runtime/perf/panel-health-monitor.js +239 -0
- package/dist/_internal/platform/runtime/perf/reporter.d.ts +16 -0
- package/dist/_internal/platform/runtime/perf/reporter.d.ts.map +1 -0
- package/dist/_internal/platform/runtime/perf/reporter.js +99 -0
- package/dist/_internal/platform/runtime/perf/types.d.ts +70 -0
- package/dist/_internal/platform/runtime/perf/types.d.ts.map +1 -0
- package/dist/_internal/platform/runtime/perf/types.js +2 -0
- package/dist/_internal/platform/runtime/permissions/decision-log.d.ts +98 -0
- package/dist/_internal/platform/runtime/permissions/decision-log.d.ts.map +1 -0
- package/dist/_internal/platform/runtime/permissions/decision-log.js +133 -0
- package/dist/_internal/platform/runtime/permissions/divergence-dashboard.d.ts +205 -0
- package/dist/_internal/platform/runtime/permissions/divergence-dashboard.d.ts.map +1 -0
- package/dist/_internal/platform/runtime/permissions/divergence-dashboard.js +207 -0
- package/dist/_internal/platform/runtime/permissions/evaluator.d.ts +60 -0
- package/dist/_internal/platform/runtime/permissions/evaluator.d.ts.map +1 -0
- package/dist/_internal/platform/runtime/permissions/evaluator.js +384 -0
- package/dist/_internal/platform/runtime/permissions/lint.d.ts +9 -0
- package/dist/_internal/platform/runtime/permissions/lint.d.ts.map +1 -0
- package/dist/_internal/platform/runtime/permissions/lint.js +72 -0
- package/dist/_internal/platform/runtime/permissions/normalization/ast.d.ts +93 -0
- package/dist/_internal/platform/runtime/permissions/normalization/ast.d.ts.map +1 -0
- package/dist/_internal/platform/runtime/permissions/normalization/ast.js +53 -0
- package/dist/_internal/platform/runtime/permissions/normalization/canonicalizer.d.ts +15 -0
- package/dist/_internal/platform/runtime/permissions/normalization/canonicalizer.d.ts.map +1 -0
- package/dist/_internal/platform/runtime/permissions/normalization/canonicalizer.js +61 -0
- package/dist/_internal/platform/runtime/permissions/normalization/classifier.d.ts +38 -0
- package/dist/_internal/platform/runtime/permissions/normalization/classifier.d.ts.map +1 -0
- package/dist/_internal/platform/runtime/permissions/normalization/classifier.js +277 -0
- package/dist/_internal/platform/runtime/permissions/normalization/index.d.ts +33 -0
- package/dist/_internal/platform/runtime/permissions/normalization/index.d.ts.map +1 -0
- package/dist/_internal/platform/runtime/permissions/normalization/index.js +45 -0
- package/dist/_internal/platform/runtime/permissions/normalization/parser.d.ts +42 -0
- package/dist/_internal/platform/runtime/permissions/normalization/parser.d.ts.map +1 -0
- package/dist/_internal/platform/runtime/permissions/normalization/parser.js +189 -0
- package/dist/_internal/platform/runtime/permissions/normalization/segmenter.d.ts +17 -0
- package/dist/_internal/platform/runtime/permissions/normalization/segmenter.d.ts.map +1 -0
- package/dist/_internal/platform/runtime/permissions/normalization/segmenter.js +59 -0
- package/dist/_internal/platform/runtime/permissions/normalization/tokenizer.d.ts +40 -0
- package/dist/_internal/platform/runtime/permissions/normalization/tokenizer.d.ts.map +1 -0
- package/dist/_internal/platform/runtime/permissions/normalization/tokenizer.js +184 -0
- package/dist/_internal/platform/runtime/permissions/normalization/types.d.ts +64 -0
- package/dist/_internal/platform/runtime/permissions/normalization/types.d.ts.map +1 -0
- package/dist/_internal/platform/runtime/permissions/normalization/types.js +2 -0
- package/dist/_internal/platform/runtime/permissions/normalization/verdict.d.ts +100 -0
- package/dist/_internal/platform/runtime/permissions/normalization/verdict.d.ts.map +1 -0
- package/dist/_internal/platform/runtime/permissions/normalization/verdict.js +269 -0
- package/dist/_internal/platform/runtime/permissions/policy-loader.d.ts +142 -0
- package/dist/_internal/platform/runtime/permissions/policy-loader.d.ts.map +1 -0
- package/dist/_internal/platform/runtime/permissions/policy-loader.js +124 -0
- package/dist/_internal/platform/runtime/permissions/policy-registry.d.ts +225 -0
- package/dist/_internal/platform/runtime/permissions/policy-registry.d.ts.map +1 -0
- package/dist/_internal/platform/runtime/permissions/policy-registry.js +307 -0
- package/dist/_internal/platform/runtime/permissions/policy-signer.d.ts +95 -0
- package/dist/_internal/platform/runtime/permissions/policy-signer.d.ts.map +1 -0
- package/dist/_internal/platform/runtime/permissions/policy-signer.js +146 -0
- package/dist/_internal/platform/runtime/permissions/risk-language.d.ts +3 -0
- package/dist/_internal/platform/runtime/permissions/risk-language.d.ts.map +1 -0
- package/dist/_internal/platform/runtime/permissions/risk-language.js +21 -0
- package/dist/_internal/platform/runtime/permissions/risk-model.d.ts +9 -0
- package/dist/_internal/platform/runtime/permissions/risk-model.d.ts.map +1 -0
- package/dist/_internal/platform/runtime/permissions/risk-model.js +58 -0
- package/dist/_internal/platform/runtime/permissions/rules/arg-shape.d.ts +26 -0
- package/dist/_internal/platform/runtime/permissions/rules/arg-shape.d.ts.map +1 -0
- package/dist/_internal/platform/runtime/permissions/rules/arg-shape.js +109 -0
- package/dist/_internal/platform/runtime/permissions/rules/index.d.ts +16 -0
- package/dist/_internal/platform/runtime/permissions/rules/index.d.ts.map +1 -0
- package/dist/_internal/platform/runtime/permissions/rules/index.js +10 -0
- package/dist/_internal/platform/runtime/permissions/rules/mode-constraint.d.ts +29 -0
- package/dist/_internal/platform/runtime/permissions/rules/mode-constraint.d.ts.map +1 -0
- package/dist/_internal/platform/runtime/permissions/rules/mode-constraint.js +80 -0
- package/dist/_internal/platform/runtime/permissions/rules/network-scope.d.ts +38 -0
- package/dist/_internal/platform/runtime/permissions/rules/network-scope.d.ts.map +1 -0
- package/dist/_internal/platform/runtime/permissions/rules/network-scope.js +153 -0
- package/dist/_internal/platform/runtime/permissions/rules/path-scope.d.ts +28 -0
- package/dist/_internal/platform/runtime/permissions/rules/path-scope.d.ts.map +1 -0
- package/dist/_internal/platform/runtime/permissions/rules/path-scope.js +0 -0
- package/dist/_internal/platform/runtime/permissions/rules/prefix.d.ts +26 -0
- package/dist/_internal/platform/runtime/permissions/rules/prefix.d.ts.map +1 -0
- package/dist/_internal/platform/runtime/permissions/rules/prefix.js +103 -0
- package/dist/_internal/platform/runtime/permissions/safety-checks.d.ts +32 -0
- package/dist/_internal/platform/runtime/permissions/safety-checks.d.ts.map +1 -0
- package/dist/_internal/platform/runtime/permissions/safety-checks.js +263 -0
- package/dist/_internal/platform/runtime/permissions/simulation-scenarios.d.ts +28 -0
- package/dist/_internal/platform/runtime/permissions/simulation-scenarios.d.ts.map +1 -0
- package/dist/_internal/platform/runtime/permissions/simulation-scenarios.js +34 -0
- package/dist/_internal/platform/runtime/permissions/simulation.d.ts +113 -0
- package/dist/_internal/platform/runtime/permissions/simulation.d.ts.map +1 -0
- package/dist/_internal/platform/runtime/permissions/simulation.js +290 -0
- package/dist/_internal/platform/runtime/permissions/types.d.ts +332 -0
- package/dist/_internal/platform/runtime/permissions/types.d.ts.map +1 -0
- package/dist/_internal/platform/runtime/permissions/types.js +7 -0
- package/dist/_internal/platform/runtime/provider-health/data-provider.d.ts +82 -0
- package/dist/_internal/platform/runtime/provider-health/data-provider.d.ts.map +1 -0
- package/dist/_internal/platform/runtime/provider-health/data-provider.js +197 -0
- package/dist/_internal/platform/runtime/provider-health/fallback-visualizer.d.ts +22 -0
- package/dist/_internal/platform/runtime/provider-health/fallback-visualizer.d.ts.map +1 -0
- package/dist/_internal/platform/runtime/provider-health/fallback-visualizer.js +48 -0
- package/dist/_internal/platform/runtime/provider-health/index.d.ts +24 -0
- package/dist/_internal/platform/runtime/provider-health/index.d.ts.map +1 -0
- package/dist/_internal/platform/runtime/provider-health/index.js +21 -0
- package/dist/_internal/platform/runtime/provider-health/types.d.ts +128 -0
- package/dist/_internal/platform/runtime/provider-health/types.d.ts.map +1 -0
- package/dist/_internal/platform/runtime/provider-health/types.js +1 -0
- package/dist/_internal/platform/runtime/remote/capabilities.d.ts +11 -0
- package/dist/_internal/platform/runtime/remote/capabilities.d.ts.map +1 -0
- package/dist/_internal/platform/runtime/remote/capabilities.js +53 -0
- package/dist/_internal/platform/runtime/remote/distributed-runtime-contract.d.ts +3 -0
- package/dist/_internal/platform/runtime/remote/distributed-runtime-contract.d.ts.map +1 -0
- package/dist/_internal/platform/runtime/remote/distributed-runtime-contract.js +4 -0
- package/dist/_internal/platform/runtime/remote/distributed-runtime-manager.d.ts +147 -0
- package/dist/_internal/platform/runtime/remote/distributed-runtime-manager.d.ts.map +1 -0
- package/dist/_internal/platform/runtime/remote/distributed-runtime-manager.js +88 -0
- package/dist/_internal/platform/runtime/remote/distributed-runtime-pairing.d.ts +71 -0
- package/dist/_internal/platform/runtime/remote/distributed-runtime-pairing.d.ts.map +1 -0
- package/dist/_internal/platform/runtime/remote/distributed-runtime-pairing.js +405 -0
- package/dist/_internal/platform/runtime/remote/distributed-runtime-store.d.ts +23 -0
- package/dist/_internal/platform/runtime/remote/distributed-runtime-store.d.ts.map +1 -0
- package/dist/_internal/platform/runtime/remote/distributed-runtime-store.js +238 -0
- package/dist/_internal/platform/runtime/remote/distributed-runtime-types.d.ts +181 -0
- package/dist/_internal/platform/runtime/remote/distributed-runtime-types.d.ts.map +1 -0
- package/dist/_internal/platform/runtime/remote/distributed-runtime-types.js +1 -0
- package/dist/_internal/platform/runtime/remote/distributed-runtime-utils.d.ts +36 -0
- package/dist/_internal/platform/runtime/remote/distributed-runtime-utils.d.ts.map +1 -0
- package/dist/_internal/platform/runtime/remote/distributed-runtime-utils.js +292 -0
- package/dist/_internal/platform/runtime/remote/distributed-runtime-work.d.ts +61 -0
- package/dist/_internal/platform/runtime/remote/distributed-runtime-work.d.ts.map +1 -0
- package/dist/_internal/platform/runtime/remote/distributed-runtime-work.js +257 -0
- package/dist/_internal/platform/runtime/remote/distributed-runtime.d.ts +4 -0
- package/dist/_internal/platform/runtime/remote/distributed-runtime.d.ts.map +1 -0
- package/dist/_internal/platform/runtime/remote/distributed-runtime.js +2 -0
- package/dist/_internal/platform/runtime/remote/heartbeat.d.ts +10 -0
- package/dist/_internal/platform/runtime/remote/heartbeat.d.ts.map +1 -0
- package/dist/_internal/platform/runtime/remote/heartbeat.js +32 -0
- package/dist/_internal/platform/runtime/remote/identity.d.ts +83 -0
- package/dist/_internal/platform/runtime/remote/identity.d.ts.map +1 -0
- package/dist/_internal/platform/runtime/remote/identity.js +137 -0
- package/dist/_internal/platform/runtime/remote/negotiation.d.ts +12 -0
- package/dist/_internal/platform/runtime/remote/negotiation.d.ts.map +1 -0
- package/dist/_internal/platform/runtime/remote/negotiation.js +22 -0
- package/dist/_internal/platform/runtime/remote/observability.d.ts +138 -0
- package/dist/_internal/platform/runtime/remote/observability.d.ts.map +1 -0
- package/dist/_internal/platform/runtime/remote/observability.js +160 -0
- package/dist/_internal/platform/runtime/remote/reconnect.d.ts +163 -0
- package/dist/_internal/platform/runtime/remote/reconnect.d.ts.map +1 -0
- package/dist/_internal/platform/runtime/remote/reconnect.js +242 -0
- package/dist/_internal/platform/runtime/remote/recovery.d.ts +11 -0
- package/dist/_internal/platform/runtime/remote/recovery.d.ts.map +1 -0
- package/dist/_internal/platform/runtime/remote/recovery.js +36 -0
- package/dist/_internal/platform/runtime/remote/session-state.d.ts +30 -0
- package/dist/_internal/platform/runtime/remote/session-state.d.ts.map +1 -0
- package/dist/_internal/platform/runtime/remote/session-state.js +18 -0
- package/dist/_internal/platform/runtime/remote/sync.d.ts +132 -0
- package/dist/_internal/platform/runtime/remote/sync.d.ts.map +1 -0
- package/dist/_internal/platform/runtime/remote/sync.js +194 -0
- package/dist/_internal/platform/runtime/remote/transport-contract.d.ts +240 -0
- package/dist/_internal/platform/runtime/remote/transport-contract.d.ts.map +1 -0
- package/dist/_internal/platform/runtime/remote/transport-contract.js +334 -0
- package/dist/_internal/platform/runtime/remote/types.d.ts +410 -0
- package/dist/_internal/platform/runtime/remote/types.d.ts.map +1 -0
- package/dist/_internal/platform/runtime/remote/types.js +7 -0
- package/dist/_internal/platform/runtime/retention/index.d.ts +18 -0
- package/dist/_internal/platform/runtime/retention/index.d.ts.map +1 -0
- package/dist/_internal/platform/runtime/retention/index.js +16 -0
- package/dist/_internal/platform/runtime/retention/policy.d.ts +119 -0
- package/dist/_internal/platform/runtime/retention/policy.d.ts.map +1 -0
- package/dist/_internal/platform/runtime/retention/policy.js +259 -0
- package/dist/_internal/platform/runtime/retention/pruner.d.ts +54 -0
- package/dist/_internal/platform/runtime/retention/pruner.d.ts.map +1 -0
- package/dist/_internal/platform/runtime/retention/pruner.js +153 -0
- package/dist/_internal/platform/runtime/retention/types.d.ts +139 -0
- package/dist/_internal/platform/runtime/retention/types.d.ts.map +1 -0
- package/dist/_internal/platform/runtime/retention/types.js +2 -0
- package/dist/_internal/platform/runtime/sandbox/qemu-wrapper-template.d.ts +3 -0
- package/dist/_internal/platform/runtime/sandbox/qemu-wrapper-template.d.ts.map +1 -0
- package/dist/_internal/platform/runtime/sandbox/qemu-wrapper-template.js +248 -0
- package/dist/_internal/platform/runtime/sandbox/types.d.ts +138 -0
- package/dist/_internal/platform/runtime/sandbox/types.d.ts.map +1 -0
- package/dist/_internal/platform/runtime/sandbox/types.js +1 -0
- package/dist/_internal/platform/runtime/shell-paths.d.ts +21 -0
- package/dist/_internal/platform/runtime/shell-paths.d.ts.map +1 -0
- package/dist/_internal/platform/runtime/shell-paths.js +51 -0
- package/dist/_internal/platform/runtime/store/domains/acp.d.ts +60 -0
- package/dist/_internal/platform/runtime/store/domains/acp.d.ts.map +1 -0
- package/dist/_internal/platform/runtime/store/domains/acp.js +22 -0
- package/dist/_internal/platform/runtime/store/domains/agents.d.ts +89 -0
- package/dist/_internal/platform/runtime/store/domains/agents.d.ts.map +1 -0
- package/dist/_internal/platform/runtime/store/domains/agents.js +17 -0
- package/dist/_internal/platform/runtime/store/domains/automation.d.ts +27 -0
- package/dist/_internal/platform/runtime/store/domains/automation.d.ts.map +1 -0
- package/dist/_internal/platform/runtime/store/domains/automation.js +24 -0
- package/dist/_internal/platform/runtime/store/domains/communication.d.ts +32 -0
- package/dist/_internal/platform/runtime/store/domains/communication.d.ts.map +1 -0
- package/dist/_internal/platform/runtime/store/domains/communication.js +15 -0
- package/dist/_internal/platform/runtime/store/domains/control-plane.d.ts +46 -0
- package/dist/_internal/platform/runtime/store/domains/control-plane.d.ts.map +1 -0
- package/dist/_internal/platform/runtime/store/domains/control-plane.js +27 -0
- package/dist/_internal/platform/runtime/store/domains/daemon.d.ts +73 -0
- package/dist/_internal/platform/runtime/store/domains/daemon.d.ts.map +1 -0
- package/dist/_internal/platform/runtime/store/domains/daemon.js +19 -0
- package/dist/_internal/platform/runtime/store/domains/deliveries.d.ts +22 -0
- package/dist/_internal/platform/runtime/store/domains/deliveries.d.ts.map +1 -0
- package/dist/_internal/platform/runtime/store/domains/deliveries.js +20 -0
- package/dist/_internal/platform/runtime/store/domains/discovery.d.ts +73 -0
- package/dist/_internal/platform/runtime/store/domains/discovery.d.ts.map +1 -0
- package/dist/_internal/platform/runtime/store/domains/discovery.js +27 -0
- package/dist/_internal/platform/runtime/store/domains/domain-read-matrix.d.ts +47 -0
- package/dist/_internal/platform/runtime/store/domains/domain-read-matrix.d.ts.map +1 -0
- package/dist/_internal/platform/runtime/store/domains/domain-read-matrix.js +83 -0
- package/dist/_internal/platform/runtime/store/domains/git.d.ts +86 -0
- package/dist/_internal/platform/runtime/store/domains/git.d.ts.map +1 -0
- package/dist/_internal/platform/runtime/store/domains/git.js +23 -0
- package/dist/_internal/platform/runtime/store/domains/integrations.d.ts +60 -0
- package/dist/_internal/platform/runtime/store/domains/integrations.d.ts.map +1 -0
- package/dist/_internal/platform/runtime/store/domains/integrations.js +16 -0
- package/dist/_internal/platform/runtime/store/domains/intelligence.d.ts +86 -0
- package/dist/_internal/platform/runtime/store/domains/intelligence.d.ts.map +1 -0
- package/dist/_internal/platform/runtime/store/domains/intelligence.js +22 -0
- package/dist/_internal/platform/runtime/store/domains/mcp.d.ts +90 -0
- package/dist/_internal/platform/runtime/store/domains/mcp.d.ts.map +1 -0
- package/dist/_internal/platform/runtime/store/domains/mcp.js +20 -0
- package/dist/_internal/platform/runtime/store/domains/model.d.ts +82 -0
- package/dist/_internal/platform/runtime/store/domains/model.d.ts.map +1 -0
- package/dist/_internal/platform/runtime/store/domains/model.js +31 -0
- package/dist/_internal/platform/runtime/store/domains/orchestration.d.ts +56 -0
- package/dist/_internal/platform/runtime/store/domains/orchestration.d.ts.map +1 -0
- package/dist/_internal/platform/runtime/store/domains/orchestration.js +17 -0
- package/dist/_internal/platform/runtime/store/domains/overlays.d.ts +62 -0
- package/dist/_internal/platform/runtime/store/domains/overlays.d.ts.map +1 -0
- package/dist/_internal/platform/runtime/store/domains/overlays.js +19 -0
- package/dist/_internal/platform/runtime/store/domains/plugins.d.ts +70 -0
- package/dist/_internal/platform/runtime/store/domains/plugins.d.ts.map +1 -0
- package/dist/_internal/platform/runtime/store/domains/plugins.js +19 -0
- package/dist/_internal/platform/runtime/store/domains/provider-health.d.ts +86 -0
- package/dist/_internal/platform/runtime/store/domains/provider-health.d.ts.map +1 -0
- package/dist/_internal/platform/runtime/store/domains/provider-health.js +16 -0
- package/dist/_internal/platform/runtime/store/domains/routes.d.ts +19 -0
- package/dist/_internal/platform/runtime/store/domains/routes.d.ts.map +1 -0
- package/dist/_internal/platform/runtime/store/domains/routes.js +26 -0
- package/dist/_internal/platform/runtime/store/domains/session.d.ts +69 -0
- package/dist/_internal/platform/runtime/store/domains/session.d.ts.map +1 -0
- package/dist/_internal/platform/runtime/store/domains/session.js +30 -0
- package/dist/_internal/platform/runtime/store/domains/surface-perf.d.ts +72 -0
- package/dist/_internal/platform/runtime/store/domains/surface-perf.d.ts.map +1 -0
- package/dist/_internal/platform/runtime/store/domains/surface-perf.js +28 -0
- package/dist/_internal/platform/runtime/store/domains/surfaces.d.ts +32 -0
- package/dist/_internal/platform/runtime/store/domains/surfaces.d.ts.map +1 -0
- package/dist/_internal/platform/runtime/store/domains/surfaces.js +17 -0
- package/dist/_internal/platform/runtime/store/domains/tasks.d.ts +110 -0
- package/dist/_internal/platform/runtime/store/domains/tasks.d.ts.map +1 -0
- package/dist/_internal/platform/runtime/store/domains/tasks.js +20 -0
- package/dist/_internal/platform/runtime/store/domains/telemetry.d.ts +91 -0
- package/dist/_internal/platform/runtime/store/domains/telemetry.d.ts.map +1 -0
- package/dist/_internal/platform/runtime/store/domains/telemetry.js +31 -0
- package/dist/_internal/platform/runtime/store/domains/watchers.d.ts +39 -0
- package/dist/_internal/platform/runtime/store/domains/watchers.d.ts.map +1 -0
- package/dist/_internal/platform/runtime/store/domains/watchers.js +20 -0
- package/dist/_internal/platform/runtime/tasks/lifecycle.d.ts +55 -0
- package/dist/_internal/platform/runtime/tasks/lifecycle.d.ts.map +1 -0
- package/dist/_internal/platform/runtime/tasks/lifecycle.js +57 -0
- package/dist/_internal/platform/runtime/tasks/registry.d.ts +77 -0
- package/dist/_internal/platform/runtime/tasks/registry.d.ts.map +1 -0
- package/dist/_internal/platform/runtime/tasks/registry.js +110 -0
- package/dist/_internal/platform/runtime/tasks/types.d.ts +190 -0
- package/dist/_internal/platform/runtime/tasks/types.d.ts.map +1 -0
- package/dist/_internal/platform/runtime/tasks/types.js +1 -0
- package/dist/_internal/platform/runtime/telemetry/exporters/console.d.ts +41 -0
- package/dist/_internal/platform/runtime/telemetry/exporters/console.d.ts.map +1 -0
- package/dist/_internal/platform/runtime/telemetry/exporters/console.js +76 -0
- package/dist/_internal/platform/runtime/telemetry/exporters/index.d.ts +12 -0
- package/dist/_internal/platform/runtime/telemetry/exporters/index.d.ts.map +1 -0
- package/dist/_internal/platform/runtime/telemetry/exporters/index.js +5 -0
- package/dist/_internal/platform/runtime/telemetry/exporters/local-ledger.d.ts +105 -0
- package/dist/_internal/platform/runtime/telemetry/exporters/local-ledger.d.ts.map +1 -0
- package/dist/_internal/platform/runtime/telemetry/exporters/local-ledger.js +185 -0
- package/dist/_internal/platform/runtime/telemetry/exporters/otlp.d.ts +66 -0
- package/dist/_internal/platform/runtime/telemetry/exporters/otlp.d.ts.map +1 -0
- package/dist/_internal/platform/runtime/telemetry/exporters/otlp.js +214 -0
- package/dist/_internal/platform/runtime/telemetry/exporters/queue.d.ts +86 -0
- package/dist/_internal/platform/runtime/telemetry/exporters/queue.d.ts.map +1 -0
- package/dist/_internal/platform/runtime/telemetry/exporters/queue.js +212 -0
- package/dist/_internal/platform/runtime/telemetry/exporters/types.d.ts +92 -0
- package/dist/_internal/platform/runtime/telemetry/exporters/types.d.ts.map +1 -0
- package/dist/_internal/platform/runtime/telemetry/exporters/types.js +19 -0
- package/dist/_internal/platform/runtime/telemetry/meter.d.ts +50 -0
- package/dist/_internal/platform/runtime/telemetry/meter.d.ts.map +1 -0
- package/dist/_internal/platform/runtime/telemetry/meter.js +132 -0
- package/dist/_internal/platform/runtime/telemetry/spans/agent.d.ts +65 -0
- package/dist/_internal/platform/runtime/telemetry/spans/agent.d.ts.map +1 -0
- package/dist/_internal/platform/runtime/telemetry/spans/agent.js +63 -0
- package/dist/_internal/platform/runtime/telemetry/spans/compaction.d.ts +67 -0
- package/dist/_internal/platform/runtime/telemetry/spans/compaction.d.ts.map +1 -0
- package/dist/_internal/platform/runtime/telemetry/spans/compaction.js +70 -0
- package/dist/_internal/platform/runtime/telemetry/spans/health.d.ts +33 -0
- package/dist/_internal/platform/runtime/telemetry/spans/health.d.ts.map +1 -0
- package/dist/_internal/platform/runtime/telemetry/spans/health.js +81 -0
- package/dist/_internal/platform/runtime/telemetry/spans/index.d.ts +28 -0
- package/dist/_internal/platform/runtime/telemetry/spans/index.d.ts.map +1 -0
- package/dist/_internal/platform/runtime/telemetry/spans/index.js +12 -0
- package/dist/_internal/platform/runtime/telemetry/spans/llm.d.ts +67 -0
- package/dist/_internal/platform/runtime/telemetry/spans/llm.d.ts.map +1 -0
- package/dist/_internal/platform/runtime/telemetry/spans/llm.js +73 -0
- package/dist/_internal/platform/runtime/telemetry/spans/mcp.d.ts +60 -0
- package/dist/_internal/platform/runtime/telemetry/spans/mcp.d.ts.map +1 -0
- package/dist/_internal/platform/runtime/telemetry/spans/mcp.js +67 -0
- package/dist/_internal/platform/runtime/telemetry/spans/permission.d.ts +65 -0
- package/dist/_internal/platform/runtime/telemetry/spans/permission.d.ts.map +1 -0
- package/dist/_internal/platform/runtime/telemetry/spans/permission.js +63 -0
- package/dist/_internal/platform/runtime/telemetry/spans/plugin.d.ts +58 -0
- package/dist/_internal/platform/runtime/telemetry/spans/plugin.d.ts.map +1 -0
- package/dist/_internal/platform/runtime/telemetry/spans/plugin.js +60 -0
- package/dist/_internal/platform/runtime/telemetry/spans/session.d.ts +61 -0
- package/dist/_internal/platform/runtime/telemetry/spans/session.d.ts.map +1 -0
- package/dist/_internal/platform/runtime/telemetry/spans/session.js +64 -0
- package/dist/_internal/platform/runtime/telemetry/spans/task.d.ts +65 -0
- package/dist/_internal/platform/runtime/telemetry/spans/task.d.ts.map +1 -0
- package/dist/_internal/platform/runtime/telemetry/spans/task.js +66 -0
- package/dist/_internal/platform/runtime/telemetry/spans/tool.d.ts +62 -0
- package/dist/_internal/platform/runtime/telemetry/spans/tool.d.ts.map +1 -0
- package/dist/_internal/platform/runtime/telemetry/spans/tool.js +71 -0
- package/dist/_internal/platform/runtime/telemetry/spans/transport.d.ts +57 -0
- package/dist/_internal/platform/runtime/telemetry/spans/transport.d.ts.map +1 -0
- package/dist/_internal/platform/runtime/telemetry/spans/transport.js +63 -0
- package/dist/_internal/platform/runtime/telemetry/spans/turn.d.ts +55 -0
- package/dist/_internal/platform/runtime/telemetry/spans/turn.d.ts.map +1 -0
- package/dist/_internal/platform/runtime/telemetry/spans/turn.js +56 -0
- package/dist/_internal/platform/runtime/telemetry/tracer.d.ts +56 -0
- package/dist/_internal/platform/runtime/telemetry/tracer.d.ts.map +1 -0
- package/dist/_internal/platform/runtime/telemetry/tracer.js +210 -0
- package/dist/_internal/platform/runtime/telemetry/types.d.ts +167 -0
- package/dist/_internal/platform/runtime/telemetry/types.d.ts.map +1 -0
- package/dist/_internal/platform/runtime/telemetry/types.js +22 -0
- package/dist/_internal/platform/runtime/tools/adapter.d.ts +60 -0
- package/dist/_internal/platform/runtime/tools/adapter.d.ts.map +1 -0
- package/dist/_internal/platform/runtime/tools/adapter.js +19 -0
- package/dist/_internal/platform/runtime/tools/contract-verifier.d.ts +105 -0
- package/dist/_internal/platform/runtime/tools/contract-verifier.d.ts.map +1 -0
- package/dist/_internal/platform/runtime/tools/contract-verifier.js +359 -0
- package/dist/_internal/platform/runtime/tools/output-policy.d.ts +128 -0
- package/dist/_internal/platform/runtime/tools/output-policy.d.ts.map +1 -0
- package/dist/_internal/platform/runtime/tools/output-policy.js +185 -0
- package/dist/_internal/platform/runtime/tools/types.d.ts +118 -0
- package/dist/_internal/platform/runtime/tools/types.d.ts.map +1 -0
- package/dist/_internal/platform/runtime/tools/types.js +1 -0
- package/dist/_internal/platform/runtime/transports/backoff.d.ts +3 -0
- package/dist/_internal/platform/runtime/transports/backoff.d.ts.map +1 -0
- package/dist/_internal/platform/runtime/transports/backoff.js +1 -0
- package/dist/_internal/platform/runtime/transports/client-transport.d.ts +3 -0
- package/dist/_internal/platform/runtime/transports/client-transport.d.ts.map +1 -0
- package/dist/_internal/platform/runtime/transports/client-transport.js +1 -0
- package/dist/_internal/platform/runtime/transports/contract-http-client.d.ts +3 -0
- package/dist/_internal/platform/runtime/transports/contract-http-client.d.ts.map +1 -0
- package/dist/_internal/platform/runtime/transports/contract-http-client.js +1 -0
- package/dist/_internal/platform/runtime/transports/direct-client.d.ts +3 -0
- package/dist/_internal/platform/runtime/transports/direct-client.d.ts.map +1 -0
- package/dist/_internal/platform/runtime/transports/direct-client.js +1 -0
- package/dist/_internal/platform/runtime/transports/domain-events.d.ts +3 -0
- package/dist/_internal/platform/runtime/transports/domain-events.d.ts.map +1 -0
- package/dist/_internal/platform/runtime/transports/domain-events.js +1 -0
- package/dist/_internal/platform/runtime/transports/http-auth.d.ts +3 -0
- package/dist/_internal/platform/runtime/transports/http-auth.d.ts.map +1 -0
- package/dist/_internal/platform/runtime/transports/http-auth.js +1 -0
- package/dist/_internal/platform/runtime/transports/http-json-transport.d.ts +7 -0
- package/dist/_internal/platform/runtime/transports/http-json-transport.d.ts.map +1 -0
- package/dist/_internal/platform/runtime/transports/http-json-transport.js +5 -0
- package/dist/_internal/platform/runtime/transports/http-retry.d.ts +3 -0
- package/dist/_internal/platform/runtime/transports/http-retry.d.ts.map +1 -0
- package/dist/_internal/platform/runtime/transports/http-retry.js +1 -0
- package/dist/_internal/platform/runtime/transports/operator-remote-client.d.ts +3 -0
- package/dist/_internal/platform/runtime/transports/operator-remote-client.d.ts.map +1 -0
- package/dist/_internal/platform/runtime/transports/operator-remote-client.js +1 -0
- package/dist/_internal/platform/runtime/transports/peer-remote-client.d.ts +3 -0
- package/dist/_internal/platform/runtime/transports/peer-remote-client.d.ts.map +1 -0
- package/dist/_internal/platform/runtime/transports/peer-remote-client.js +1 -0
- package/dist/_internal/platform/runtime/transports/runtime-events-client.d.ts +3 -0
- package/dist/_internal/platform/runtime/transports/runtime-events-client.d.ts.map +1 -0
- package/dist/_internal/platform/runtime/transports/runtime-events-client.js +1 -0
- package/dist/_internal/platform/runtime/transports/sse-stream.d.ts +4 -0
- package/dist/_internal/platform/runtime/transports/sse-stream.d.ts.map +1 -0
- package/dist/_internal/platform/runtime/transports/sse-stream.js +7 -0
- package/dist/_internal/platform/runtime/transports/stream-reconnect.d.ts +3 -0
- package/dist/_internal/platform/runtime/transports/stream-reconnect.d.ts.map +1 -0
- package/dist/_internal/platform/runtime/transports/stream-reconnect.js +1 -0
- package/dist/_internal/platform/runtime/transports/transport-paths.d.ts +3 -0
- package/dist/_internal/platform/runtime/transports/transport-paths.d.ts.map +1 -0
- package/dist/_internal/platform/runtime/transports/transport-paths.js +1 -0
- package/dist/_internal/platform/runtime/ui-read-models-base.d.ts +8 -0
- package/dist/_internal/platform/runtime/ui-read-models-base.d.ts.map +1 -0
- package/dist/_internal/platform/runtime/ui-read-models-base.js +2 -0
- package/dist/_internal/platform/scheduler/scheduler.d.ts +85 -0
- package/dist/_internal/platform/scheduler/scheduler.d.ts.map +1 -0
- package/dist/_internal/platform/scheduler/scheduler.js +628 -0
- package/dist/_internal/platform/security/http-auth.d.ts +30 -0
- package/dist/_internal/platform/security/http-auth.d.ts.map +1 -0
- package/dist/_internal/platform/security/http-auth.js +112 -0
- package/dist/_internal/platform/security/index.d.ts +8 -0
- package/dist/_internal/platform/security/index.d.ts.map +1 -0
- package/dist/_internal/platform/security/index.js +4 -0
- package/dist/_internal/platform/security/spawn-tokens.d.ts +65 -0
- package/dist/_internal/platform/security/spawn-tokens.d.ts.map +1 -0
- package/dist/_internal/platform/security/spawn-tokens.js +161 -0
- package/dist/_internal/platform/security/token-audit.d.ts +207 -0
- package/dist/_internal/platform/security/token-audit.d.ts.map +1 -0
- package/dist/_internal/platform/security/token-audit.js +292 -0
- package/dist/_internal/platform/security/user-auth.d.ts +63 -0
- package/dist/_internal/platform/security/user-auth.d.ts.map +1 -0
- package/dist/_internal/platform/security/user-auth.js +257 -0
- package/dist/_internal/platform/sessions/change-tracker.d.ts +15 -0
- package/dist/_internal/platform/sessions/change-tracker.d.ts.map +1 -0
- package/dist/_internal/platform/sessions/change-tracker.js +25 -0
- package/dist/_internal/platform/sessions/orchestration/graph.d.ts +182 -0
- package/dist/_internal/platform/sessions/orchestration/graph.d.ts.map +1 -0
- package/dist/_internal/platform/sessions/orchestration/graph.js +427 -0
- package/dist/_internal/platform/sessions/orchestration/index.d.ts +8 -0
- package/dist/_internal/platform/sessions/orchestration/index.d.ts.map +1 -0
- package/dist/_internal/platform/sessions/orchestration/index.js +6 -0
- package/dist/_internal/platform/sessions/orchestration/registry.d.ts +149 -0
- package/dist/_internal/platform/sessions/orchestration/registry.d.ts.map +1 -0
- package/dist/_internal/platform/sessions/orchestration/registry.js +299 -0
- package/dist/_internal/platform/sessions/orchestration/types.d.ts +138 -0
- package/dist/_internal/platform/sessions/orchestration/types.d.ts.map +1 -0
- package/dist/_internal/platform/sessions/orchestration/types.js +22 -0
- package/dist/_internal/platform/state/db.d.ts +76 -0
- package/dist/_internal/platform/state/db.d.ts.map +1 -0
- package/dist/_internal/platform/state/db.js +220 -0
- package/dist/_internal/platform/state/file-cache.d.ts +97 -0
- package/dist/_internal/platform/state/file-cache.d.ts.map +1 -0
- package/dist/_internal/platform/state/file-cache.js +328 -0
- package/dist/_internal/platform/state/file-undo.d.ts +46 -0
- package/dist/_internal/platform/state/file-undo.d.ts.map +1 -0
- package/dist/_internal/platform/state/file-undo.js +110 -0
- package/dist/_internal/platform/state/json-file-store.d.ts +16 -0
- package/dist/_internal/platform/state/json-file-store.d.ts.map +1 -0
- package/dist/_internal/platform/state/json-file-store.js +44 -0
- package/dist/_internal/platform/state/kv-state.d.ts +42 -0
- package/dist/_internal/platform/state/kv-state.d.ts.map +1 -0
- package/dist/_internal/platform/state/kv-state.js +215 -0
- package/dist/_internal/platform/state/mode-manager.d.ts +61 -0
- package/dist/_internal/platform/state/mode-manager.d.ts.map +1 -0
- package/dist/_internal/platform/state/mode-manager.js +146 -0
- package/dist/_internal/platform/state/persistent-store.d.ts +17 -0
- package/dist/_internal/platform/state/persistent-store.d.ts.map +1 -0
- package/dist/_internal/platform/state/persistent-store.js +47 -0
- package/dist/_internal/platform/state/project-index.d.ts +58 -0
- package/dist/_internal/platform/state/project-index.d.ts.map +1 -0
- package/dist/_internal/platform/state/project-index.js +249 -0
- package/dist/_internal/platform/state/sqlite-store.d.ts +28 -0
- package/dist/_internal/platform/state/sqlite-store.d.ts.map +1 -0
- package/dist/_internal/platform/state/sqlite-store.js +95 -0
- package/dist/_internal/platform/state/telemetry.d.ts +42 -0
- package/dist/_internal/platform/state/telemetry.d.ts.map +1 -0
- package/dist/_internal/platform/state/telemetry.js +124 -0
- package/dist/_internal/platform/tools/agent/schema.d.ts +71 -0
- package/dist/_internal/platform/tools/agent/schema.d.ts.map +1 -0
- package/dist/_internal/platform/tools/agent/schema.js +236 -0
- package/dist/_internal/platform/tools/analyze/scan-modes.d.ts +13 -0
- package/dist/_internal/platform/tools/analyze/scan-modes.d.ts.map +1 -0
- package/dist/_internal/platform/tools/analyze/scan-modes.js +632 -0
- package/dist/_internal/platform/tools/analyze/schema.d.ts +8 -0
- package/dist/_internal/platform/tools/analyze/schema.d.ts.map +1 -0
- package/dist/_internal/platform/tools/analyze/schema.js +118 -0
- package/dist/_internal/platform/tools/analyze/shared.d.ts +37 -0
- package/dist/_internal/platform/tools/analyze/shared.d.ts.map +1 -0
- package/dist/_internal/platform/tools/analyze/shared.js +337 -0
- package/dist/_internal/platform/tools/analyze/types.d.ts +37 -0
- package/dist/_internal/platform/tools/analyze/types.d.ts.map +1 -0
- package/dist/_internal/platform/tools/analyze/types.js +2 -0
- package/dist/_internal/platform/tools/auto-repair.d.ts +21 -0
- package/dist/_internal/platform/tools/auto-repair.d.ts.map +1 -0
- package/dist/_internal/platform/tools/auto-repair.js +160 -0
- package/dist/_internal/platform/tools/control/schema.d.ts +6 -0
- package/dist/_internal/platform/tools/control/schema.d.ts.map +1 -0
- package/dist/_internal/platform/tools/control/schema.js +15 -0
- package/dist/_internal/platform/tools/edit/match.d.ts +69 -0
- package/dist/_internal/platform/tools/edit/match.d.ts.map +1 -0
- package/dist/_internal/platform/tools/edit/match.js +468 -0
- package/dist/_internal/platform/tools/edit/notebook.d.ts +33 -0
- package/dist/_internal/platform/tools/edit/notebook.d.ts.map +1 -0
- package/dist/_internal/platform/tools/edit/notebook.js +265 -0
- package/dist/_internal/platform/tools/edit/schema.d.ts +223 -0
- package/dist/_internal/platform/tools/edit/schema.d.ts.map +1 -0
- package/dist/_internal/platform/tools/edit/schema.js +235 -0
- package/dist/_internal/platform/tools/edit/types.d.ts +83 -0
- package/dist/_internal/platform/tools/edit/types.d.ts.map +1 -0
- package/dist/_internal/platform/tools/edit/types.js +2 -0
- package/dist/_internal/platform/tools/exec/ast-guard.d.ts +66 -0
- package/dist/_internal/platform/tools/exec/ast-guard.d.ts.map +1 -0
- package/dist/_internal/platform/tools/exec/ast-guard.js +121 -0
- package/dist/_internal/platform/tools/exec/file-ops.d.ts +15 -0
- package/dist/_internal/platform/tools/exec/file-ops.d.ts.map +1 -0
- package/dist/_internal/platform/tools/exec/file-ops.js +193 -0
- package/dist/_internal/platform/tools/exec/index.d.ts +2 -0
- package/dist/_internal/platform/tools/exec/index.d.ts.map +1 -0
- package/dist/_internal/platform/tools/exec/index.js +1 -0
- package/dist/_internal/platform/tools/exec/phased.d.ts +16 -0
- package/dist/_internal/platform/tools/exec/phased.d.ts.map +1 -0
- package/dist/_internal/platform/tools/exec/phased.js +25 -0
- package/dist/_internal/platform/tools/exec/runtime.d.ts +9 -0
- package/dist/_internal/platform/tools/exec/runtime.d.ts.map +1 -0
- package/dist/_internal/platform/tools/exec/runtime.js +506 -0
- package/dist/_internal/platform/tools/exec/schema.d.ts +267 -0
- package/dist/_internal/platform/tools/exec/schema.d.ts.map +1 -0
- package/dist/_internal/platform/tools/exec/schema.js +191 -0
- package/dist/_internal/platform/tools/fetch/extract.d.ts +6 -0
- package/dist/_internal/platform/tools/fetch/extract.d.ts.map +1 -0
- package/dist/_internal/platform/tools/fetch/extract.js +300 -0
- package/dist/_internal/platform/tools/fetch/host-utils.d.ts +3 -0
- package/dist/_internal/platform/tools/fetch/host-utils.d.ts.map +1 -0
- package/dist/_internal/platform/tools/fetch/host-utils.js +36 -0
- package/dist/_internal/platform/tools/fetch/sanitizer.d.ts +61 -0
- package/dist/_internal/platform/tools/fetch/sanitizer.d.ts.map +1 -0
- package/dist/_internal/platform/tools/fetch/sanitizer.js +108 -0
- package/dist/_internal/platform/tools/fetch/schema.d.ts +252 -0
- package/dist/_internal/platform/tools/fetch/schema.d.ts.map +1 -0
- package/dist/_internal/platform/tools/fetch/schema.js +167 -0
- package/dist/_internal/platform/tools/fetch/trust-tiers.d.ts +115 -0
- package/dist/_internal/platform/tools/fetch/trust-tiers.d.ts.map +1 -0
- package/dist/_internal/platform/tools/fetch/trust-tiers.js +294 -0
- package/dist/_internal/platform/tools/fetch/types.d.ts +35 -0
- package/dist/_internal/platform/tools/fetch/types.d.ts.map +1 -0
- package/dist/_internal/platform/tools/fetch/types.js +1 -0
- package/dist/_internal/platform/tools/find/content.d.ts +5 -0
- package/dist/_internal/platform/tools/find/content.d.ts.map +1 -0
- package/dist/_internal/platform/tools/find/content.js +240 -0
- package/dist/_internal/platform/tools/find/executor.d.ts +5 -0
- package/dist/_internal/platform/tools/find/executor.d.ts.map +1 -0
- package/dist/_internal/platform/tools/find/executor.js +76 -0
- package/dist/_internal/platform/tools/find/files.d.ts +3 -0
- package/dist/_internal/platform/tools/find/files.d.ts.map +1 -0
- package/dist/_internal/platform/tools/find/files.js +142 -0
- package/dist/_internal/platform/tools/find/index.d.ts +4 -0
- package/dist/_internal/platform/tools/find/index.d.ts.map +1 -0
- package/dist/_internal/platform/tools/find/index.js +2 -0
- package/dist/_internal/platform/tools/find/phased.d.ts +13 -0
- package/dist/_internal/platform/tools/find/phased.d.ts.map +1 -0
- package/dist/_internal/platform/tools/find/phased.js +25 -0
- package/dist/_internal/platform/tools/find/references.d.ts +3 -0
- package/dist/_internal/platform/tools/find/references.d.ts.map +1 -0
- package/dist/_internal/platform/tools/find/references.js +67 -0
- package/dist/_internal/platform/tools/find/schema.d.ts +7 -0
- package/dist/_internal/platform/tools/find/schema.d.ts.map +1 -0
- package/dist/_internal/platform/tools/find/schema.js +261 -0
- package/dist/_internal/platform/tools/find/shared.d.ts +152 -0
- package/dist/_internal/platform/tools/find/shared.d.ts.map +1 -0
- package/dist/_internal/platform/tools/find/shared.js +240 -0
- package/dist/_internal/platform/tools/find/structural.d.ts +3 -0
- package/dist/_internal/platform/tools/find/structural.d.ts.map +1 -0
- package/dist/_internal/platform/tools/find/structural.js +81 -0
- package/dist/_internal/platform/tools/find/symbols.d.ts +3 -0
- package/dist/_internal/platform/tools/find/symbols.d.ts.map +1 -0
- package/dist/_internal/platform/tools/find/symbols.js +167 -0
- package/dist/_internal/platform/tools/inspect/executor.d.ts +4 -0
- package/dist/_internal/platform/tools/inspect/executor.d.ts.map +1 -0
- package/dist/_internal/platform/tools/inspect/executor.js +142 -0
- package/dist/_internal/platform/tools/inspect/frontend.d.ts +16 -0
- package/dist/_internal/platform/tools/inspect/frontend.d.ts.map +1 -0
- package/dist/_internal/platform/tools/inspect/frontend.js +466 -0
- package/dist/_internal/platform/tools/inspect/index.d.ts +13 -0
- package/dist/_internal/platform/tools/inspect/index.d.ts.map +1 -0
- package/dist/_internal/platform/tools/inspect/index.js +65 -0
- package/dist/_internal/platform/tools/inspect/project.d.ts +10 -0
- package/dist/_internal/platform/tools/inspect/project.d.ts.map +1 -0
- package/dist/_internal/platform/tools/inspect/project.js +466 -0
- package/dist/_internal/platform/tools/inspect/schema.d.ts +303 -0
- package/dist/_internal/platform/tools/inspect/schema.d.ts.map +1 -0
- package/dist/_internal/platform/tools/inspect/schema.js +73 -0
- package/dist/_internal/platform/tools/inspect/shared.d.ts +21 -0
- package/dist/_internal/platform/tools/inspect/shared.d.ts.map +1 -0
- package/dist/_internal/platform/tools/inspect/shared.js +273 -0
- package/dist/_internal/platform/tools/mcp/schema.d.ts +12 -0
- package/dist/_internal/platform/tools/mcp/schema.d.ts.map +1 -0
- package/dist/_internal/platform/tools/mcp/schema.js +30 -0
- package/dist/_internal/platform/tools/packet/index.d.ts +3 -0
- package/dist/_internal/platform/tools/packet/index.d.ts.map +1 -0
- package/dist/_internal/platform/tools/packet/index.js +113 -0
- package/dist/_internal/platform/tools/packet/schema.d.ts +14 -0
- package/dist/_internal/platform/tools/packet/schema.d.ts.map +1 -0
- package/dist/_internal/platform/tools/packet/schema.js +20 -0
- package/dist/_internal/platform/tools/query/index.d.ts +3 -0
- package/dist/_internal/platform/tools/query/index.d.ts.map +1 -0
- package/dist/_internal/platform/tools/query/index.js +106 -0
- package/dist/_internal/platform/tools/query/schema.d.ts +13 -0
- package/dist/_internal/platform/tools/query/schema.d.ts.map +1 -0
- package/dist/_internal/platform/tools/query/schema.js +19 -0
- package/dist/_internal/platform/tools/read/file-readers.d.ts +82 -0
- package/dist/_internal/platform/tools/read/file-readers.d.ts.map +1 -0
- package/dist/_internal/platform/tools/read/file-readers.js +365 -0
- package/dist/_internal/platform/tools/read/index.d.ts +19 -0
- package/dist/_internal/platform/tools/read/index.d.ts.map +1 -0
- package/dist/_internal/platform/tools/read/index.js +133 -0
- package/dist/_internal/platform/tools/read/media.d.ts +111 -0
- package/dist/_internal/platform/tools/read/media.d.ts.map +1 -0
- package/dist/_internal/platform/tools/read/media.js +458 -0
- package/dist/_internal/platform/tools/read/phased.d.ts +20 -0
- package/dist/_internal/platform/tools/read/phased.d.ts.map +1 -0
- package/dist/_internal/platform/tools/read/phased.js +25 -0
- package/dist/_internal/platform/tools/read/schema.d.ts +144 -0
- package/dist/_internal/platform/tools/read/schema.d.ts.map +1 -0
- package/dist/_internal/platform/tools/read/schema.js +114 -0
- package/dist/_internal/platform/tools/read/text.d.ts +11 -0
- package/dist/_internal/platform/tools/read/text.d.ts.map +1 -0
- package/dist/_internal/platform/tools/read/text.js +138 -0
- package/dist/_internal/platform/tools/registry-tool/index.d.ts +14 -0
- package/dist/_internal/platform/tools/registry-tool/index.d.ts.map +1 -0
- package/dist/_internal/platform/tools/registry-tool/index.js +408 -0
- package/dist/_internal/platform/tools/registry-tool/schema.d.ts +54 -0
- package/dist/_internal/platform/tools/registry-tool/schema.d.ts.map +1 -0
- package/dist/_internal/platform/tools/registry-tool/schema.js +47 -0
- package/dist/_internal/platform/tools/registry-tool/skill-loader.d.ts +10 -0
- package/dist/_internal/platform/tools/registry-tool/skill-loader.d.ts.map +1 -0
- package/dist/_internal/platform/tools/registry-tool/skill-loader.js +73 -0
- package/dist/_internal/platform/tools/registry.d.ts +51 -0
- package/dist/_internal/platform/tools/registry.d.ts.map +1 -0
- package/dist/_internal/platform/tools/registry.js +119 -0
- package/dist/_internal/platform/tools/remote-trigger/schema.d.ts +12 -0
- package/dist/_internal/platform/tools/remote-trigger/schema.d.ts.map +1 -0
- package/dist/_internal/platform/tools/remote-trigger/schema.js +18 -0
- package/dist/_internal/platform/tools/repl/schema.d.ts +9 -0
- package/dist/_internal/platform/tools/repl/schema.d.ts.map +1 -0
- package/dist/_internal/platform/tools/repl/schema.js +15 -0
- package/dist/_internal/platform/tools/shared/overflow.d.ts +156 -0
- package/dist/_internal/platform/tools/shared/overflow.d.ts.map +1 -0
- package/dist/_internal/platform/tools/shared/overflow.js +363 -0
- package/dist/_internal/platform/tools/shared/process-manager.d.ts +62 -0
- package/dist/_internal/platform/tools/shared/process-manager.d.ts.map +1 -0
- package/dist/_internal/platform/tools/shared/process-manager.js +155 -0
- package/dist/_internal/platform/tools/shared/schema-fingerprint.d.ts +80 -0
- package/dist/_internal/platform/tools/shared/schema-fingerprint.d.ts.map +1 -0
- package/dist/_internal/platform/tools/shared/schema-fingerprint.js +163 -0
- package/dist/_internal/platform/tools/shared/validators.d.ts +24 -0
- package/dist/_internal/platform/tools/shared/validators.d.ts.map +1 -0
- package/dist/_internal/platform/tools/shared/validators.js +68 -0
- package/dist/_internal/platform/tools/state/schema.d.ts +198 -0
- package/dist/_internal/platform/tools/state/schema.d.ts.map +1 -0
- package/dist/_internal/platform/tools/state/schema.js +128 -0
- package/dist/_internal/platform/tools/task/index.d.ts +4 -0
- package/dist/_internal/platform/tools/task/index.d.ts.map +1 -0
- package/dist/_internal/platform/tools/task/index.js +150 -0
- package/dist/_internal/platform/tools/task/schema.d.ts +63 -0
- package/dist/_internal/platform/tools/task/schema.d.ts.map +1 -0
- package/dist/_internal/platform/tools/task/schema.js +29 -0
- package/dist/_internal/platform/tools/team/index.d.ts +3 -0
- package/dist/_internal/platform/tools/team/index.d.ts.map +1 -0
- package/dist/_internal/platform/tools/team/index.js +149 -0
- package/dist/_internal/platform/tools/team/schema.d.ts +48 -0
- package/dist/_internal/platform/tools/team/schema.d.ts.map +1 -0
- package/dist/_internal/platform/tools/team/schema.js +22 -0
- package/dist/_internal/platform/tools/web-search/schema.d.ts +60 -0
- package/dist/_internal/platform/tools/web-search/schema.d.ts.map +1 -0
- package/dist/_internal/platform/tools/web-search/schema.js +60 -0
- package/dist/_internal/platform/tools/workflow/index.d.ts +106 -0
- package/dist/_internal/platform/tools/workflow/index.d.ts.map +1 -0
- package/dist/_internal/platform/tools/workflow/index.js +443 -0
- package/dist/_internal/platform/tools/workflow/schema.d.ts +7 -0
- package/dist/_internal/platform/tools/workflow/schema.d.ts.map +1 -0
- package/dist/_internal/platform/tools/workflow/schema.js +94 -0
- package/dist/_internal/platform/tools/worklist/index.d.ts +3 -0
- package/dist/_internal/platform/tools/worklist/index.d.ts.map +1 -0
- package/dist/_internal/platform/tools/worklist/index.js +140 -0
- package/dist/_internal/platform/tools/worklist/schema.d.ts +46 -0
- package/dist/_internal/platform/tools/worklist/schema.d.ts.map +1 -0
- package/dist/_internal/platform/tools/worklist/schema.js +19 -0
- package/dist/_internal/platform/tools/write/schema.d.ts +108 -0
- package/dist/_internal/platform/tools/write/schema.d.ts.map +1 -0
- package/dist/_internal/platform/tools/write/schema.js +90 -0
- package/dist/_internal/platform/types/daemon-error-contract.d.ts +2 -0
- package/dist/_internal/platform/types/daemon-error-contract.d.ts.map +1 -0
- package/dist/_internal/platform/types/daemon-error-contract.js +1 -0
- package/dist/_internal/platform/types/errors.d.ts +88 -0
- package/dist/_internal/platform/types/errors.d.ts.map +1 -0
- package/dist/_internal/platform/types/errors.js +237 -0
- package/dist/_internal/platform/types/foundation-contract.d.ts +9 -0
- package/dist/_internal/platform/types/foundation-contract.d.ts.map +1 -0
- package/dist/_internal/platform/types/foundation-contract.js +1 -0
- package/dist/_internal/platform/types/generated/foundation-client-types.d.ts +2 -0
- package/dist/_internal/platform/types/generated/foundation-client-types.d.ts.map +1 -0
- package/dist/_internal/platform/types/generated/foundation-client-types.js +2 -0
- package/dist/_internal/platform/types/grid.d.ts +27 -0
- package/dist/_internal/platform/types/grid.d.ts.map +1 -0
- package/dist/_internal/platform/types/grid.js +26 -0
- package/dist/_internal/platform/types/tools.d.ts +37 -0
- package/dist/_internal/platform/types/tools.d.ts.map +1 -0
- package/dist/_internal/platform/types/tools.js +2 -0
- package/dist/_internal/platform/utils/clipboard.d.ts +18 -0
- package/dist/_internal/platform/utils/clipboard.d.ts.map +1 -0
- package/dist/_internal/platform/utils/clipboard.js +147 -0
- package/dist/_internal/platform/utils/error-display.d.ts +35 -0
- package/dist/_internal/platform/utils/error-display.d.ts.map +1 -0
- package/dist/_internal/platform/utils/error-display.js +314 -0
- package/dist/_internal/platform/utils/glob-to-regex.d.ts +8 -0
- package/dist/_internal/platform/utils/glob-to-regex.d.ts.map +1 -0
- package/dist/_internal/platform/utils/glob-to-regex.js +31 -0
- package/dist/_internal/platform/utils/logger.d.ts +26 -0
- package/dist/_internal/platform/utils/logger.d.ts.map +1 -0
- package/dist/_internal/platform/utils/logger.js +75 -0
- package/dist/_internal/platform/utils/markdown-disclosure.d.ts +24 -0
- package/dist/_internal/platform/utils/markdown-disclosure.d.ts.map +1 -0
- package/dist/_internal/platform/utils/markdown-disclosure.js +167 -0
- package/dist/_internal/platform/utils/notebook.d.ts +7 -0
- package/dist/_internal/platform/utils/notebook.d.ts.map +1 -0
- package/dist/_internal/platform/utils/notebook.js +8 -0
- package/dist/_internal/platform/utils/notify.d.ts +13 -0
- package/dist/_internal/platform/utils/notify.d.ts.map +1 -0
- package/dist/_internal/platform/utils/notify.js +35 -0
- package/dist/_internal/platform/utils/open-external.d.ts +3 -0
- package/dist/_internal/platform/utils/open-external.d.ts.map +1 -0
- package/dist/_internal/platform/utils/open-external.js +30 -0
- package/dist/_internal/platform/utils/path-safety.d.ts +7 -0
- package/dist/_internal/platform/utils/path-safety.d.ts.map +1 -0
- package/dist/_internal/platform/utils/path-safety.js +42 -0
- package/dist/_internal/platform/utils/prompt-loader.d.ts +25 -0
- package/dist/_internal/platform/utils/prompt-loader.d.ts.map +1 -0
- package/dist/_internal/platform/utils/prompt-loader.js +100 -0
- package/dist/_internal/platform/utils/redaction.d.ts +5 -0
- package/dist/_internal/platform/utils/redaction.d.ts.map +1 -0
- package/dist/_internal/platform/utils/redaction.js +67 -0
- package/dist/_internal/platform/utils/retry.d.ts +30 -0
- package/dist/_internal/platform/utils/retry.d.ts.map +1 -0
- package/dist/_internal/platform/utils/retry.js +76 -0
- package/dist/_internal/platform/utils/terminal-width.d.ts +20 -0
- package/dist/_internal/platform/utils/terminal-width.d.ts.map +1 -0
- package/dist/_internal/platform/utils/terminal-width.js +189 -0
- package/dist/_internal/platform/utils/url-safety.d.ts +9 -0
- package/dist/_internal/platform/utils/url-safety.d.ts.map +1 -0
- package/dist/_internal/platform/utils/url-safety.js +75 -0
- package/dist/_internal/platform/utils/walk-dir.d.ts +19 -0
- package/dist/_internal/platform/utils/walk-dir.d.ts.map +1 -0
- package/dist/_internal/platform/utils/walk-dir.js +56 -0
- package/dist/_internal/platform/voice/builtin-providers.d.ts +3 -0
- package/dist/_internal/platform/voice/builtin-providers.d.ts.map +1 -0
- package/dist/_internal/platform/voice/builtin-providers.js +15 -0
- package/dist/_internal/platform/voice/index.d.ts +7 -0
- package/dist/_internal/platform/voice/index.d.ts.map +1 -0
- package/dist/_internal/platform/voice/index.js +3 -0
- package/dist/_internal/platform/voice/provider-registry.d.ts +18 -0
- package/dist/_internal/platform/voice/provider-registry.d.ts.map +1 -0
- package/dist/_internal/platform/voice/provider-registry.js +58 -0
- package/dist/_internal/platform/voice/providers/deepgram.d.ts +3 -0
- package/dist/_internal/platform/voice/providers/deepgram.d.ts.map +1 -0
- package/dist/_internal/platform/voice/providers/deepgram.js +54 -0
- package/dist/_internal/platform/voice/providers/elevenlabs.d.ts +3 -0
- package/dist/_internal/platform/voice/providers/elevenlabs.d.ts.map +1 -0
- package/dist/_internal/platform/voice/providers/elevenlabs.js +333 -0
- package/dist/_internal/platform/voice/providers/google.d.ts +3 -0
- package/dist/_internal/platform/voice/providers/google.d.ts.map +1 -0
- package/dist/_internal/platform/voice/providers/google.js +166 -0
- package/dist/_internal/platform/voice/providers/microsoft.d.ts +3 -0
- package/dist/_internal/platform/voice/providers/microsoft.d.ts.map +1 -0
- package/dist/_internal/platform/voice/providers/microsoft.js +85 -0
- package/dist/_internal/platform/voice/providers/openai.d.ts +3 -0
- package/dist/_internal/platform/voice/providers/openai.d.ts.map +1 -0
- package/dist/_internal/platform/voice/providers/openai.js +289 -0
- package/dist/_internal/platform/voice/providers/shared.d.ts +17 -0
- package/dist/_internal/platform/voice/providers/shared.d.ts.map +1 -0
- package/dist/_internal/platform/voice/providers/shared.js +115 -0
- package/dist/_internal/platform/voice/providers/vydra.d.ts +3 -0
- package/dist/_internal/platform/voice/providers/vydra.d.ts.map +1 -0
- package/dist/_internal/platform/voice/providers/vydra.js +74 -0
- package/dist/_internal/platform/voice/service.d.ts +18 -0
- package/dist/_internal/platform/voice/service.d.ts.map +1 -0
- package/dist/_internal/platform/voice/service.js +49 -0
- package/dist/_internal/platform/voice/types.d.ts +89 -0
- package/dist/_internal/platform/voice/types.d.ts.map +1 -0
- package/dist/_internal/platform/voice/types.js +2 -0
- package/dist/_internal/platform/watchers/store.d.ts +12 -0
- package/dist/_internal/platform/watchers/store.d.ts.map +1 -0
- package/dist/_internal/platform/watchers/store.js +45 -0
- package/dist/_internal/platform/web-search/types.d.ts +89 -0
- package/dist/_internal/platform/web-search/types.d.ts.map +1 -0
- package/dist/_internal/platform/web-search/types.js +1 -0
- package/dist/_internal/platform/workflow/trigger-executor.d.ts +22 -0
- package/dist/_internal/platform/workflow/trigger-executor.d.ts.map +1 -0
- package/dist/_internal/platform/workflow/trigger-executor.js +304 -0
- package/dist/_internal/transport-core/client-transport.d.ts +9 -0
- package/dist/_internal/transport-core/client-transport.d.ts.map +1 -0
- package/dist/_internal/transport-core/client-transport.js +13 -0
- package/dist/_internal/transport-core/event-envelope.d.ts +21 -0
- package/dist/_internal/transport-core/event-envelope.d.ts.map +1 -0
- package/dist/_internal/transport-core/event-envelope.js +16 -0
- package/dist/_internal/transport-core/event-feeds.d.ts +22 -0
- package/dist/_internal/transport-core/event-feeds.d.ts.map +1 -0
- package/dist/_internal/transport-core/event-feeds.js +25 -0
- package/dist/_internal/transport-core/index.d.ts +7 -0
- package/dist/_internal/transport-core/index.d.ts.map +1 -0
- package/dist/_internal/transport-core/index.js +3 -0
- package/dist/_internal/transport-core.d.ts +2 -0
- package/dist/_internal/transport-core.d.ts.map +1 -0
- package/dist/_internal/transport-core.js +1 -0
- package/dist/_internal/transport-direct/index.d.ts +4 -0
- package/dist/_internal/transport-direct/index.d.ts.map +1 -0
- package/dist/_internal/transport-direct/index.js +6 -0
- package/dist/_internal/transport-direct.d.ts +2 -0
- package/dist/_internal/transport-direct.d.ts.map +1 -0
- package/dist/_internal/transport-direct.js +1 -0
- package/dist/_internal/transport-http/auth.d.ts +7 -0
- package/dist/_internal/transport-http/auth.d.ts.map +1 -0
- package/dist/_internal/transport-http/auth.js +39 -0
- package/dist/_internal/transport-http/backoff.d.ts +16 -0
- package/dist/_internal/transport-http/backoff.d.ts.map +1 -0
- package/dist/_internal/transport-http/backoff.js +37 -0
- package/dist/_internal/transport-http/contract-client.d.ts +21 -0
- package/dist/_internal/transport-http/contract-client.d.ts.map +1 -0
- package/dist/_internal/transport-http/contract-client.js +31 -0
- package/dist/_internal/transport-http/http-core.d.ts +55 -0
- package/dist/_internal/transport-http/http-core.d.ts.map +1 -0
- package/dist/_internal/transport-http/http-core.js +218 -0
- package/dist/_internal/transport-http/http.d.ts +12 -0
- package/dist/_internal/transport-http/http.d.ts.map +1 -0
- package/dist/_internal/transport-http/http.js +52 -0
- package/dist/_internal/transport-http/index.d.ts +19 -0
- package/dist/_internal/transport-http/index.d.ts.map +1 -0
- package/dist/_internal/transport-http/index.js +9 -0
- package/dist/_internal/transport-http/paths.d.ts +32 -0
- package/dist/_internal/transport-http/paths.d.ts.map +1 -0
- package/dist/_internal/transport-http/paths.js +42 -0
- package/dist/_internal/transport-http/reconnect.d.ts +11 -0
- package/dist/_internal/transport-http/reconnect.d.ts.map +1 -0
- package/dist/_internal/transport-http/reconnect.js +20 -0
- package/dist/_internal/transport-http/retry.d.ts +18 -0
- package/dist/_internal/transport-http/retry.d.ts.map +1 -0
- package/dist/_internal/transport-http/retry.js +46 -0
- package/dist/_internal/transport-http/sse-stream.d.ts +22 -0
- package/dist/_internal/transport-http/sse-stream.d.ts.map +1 -0
- package/dist/_internal/transport-http/sse-stream.js +213 -0
- package/dist/_internal/transport-http/sse.d.ts +7 -0
- package/dist/_internal/transport-http/sse.d.ts.map +1 -0
- package/dist/_internal/transport-http/sse.js +18 -0
- package/dist/_internal/transport-http.d.ts +2 -0
- package/dist/_internal/transport-http.d.ts.map +1 -0
- package/dist/_internal/transport-http.js +1 -0
- package/dist/_internal/transport-realtime/domain-events.d.ts +18 -0
- package/dist/_internal/transport-realtime/domain-events.d.ts.map +1 -0
- package/dist/_internal/transport-realtime/domain-events.js +116 -0
- package/dist/_internal/transport-realtime/index.d.ts +6 -0
- package/dist/_internal/transport-realtime/index.d.ts.map +1 -0
- package/dist/_internal/transport-realtime/index.js +2 -0
- package/dist/_internal/transport-realtime/runtime-events.d.ts +20 -0
- package/dist/_internal/transport-realtime/runtime-events.d.ts.map +1 -0
- package/dist/_internal/transport-realtime/runtime-events.js +135 -0
- package/dist/_internal/transport-realtime.d.ts +2 -0
- package/dist/_internal/transport-realtime.d.ts.map +1 -0
- package/dist/_internal/transport-realtime.js +1 -0
- package/dist/auth.d.ts +3 -3
- package/dist/auth.d.ts.map +1 -1
- package/dist/auth.js +1 -1
- package/dist/browser.js +1 -1
- package/dist/client.d.ts +4 -4
- package/dist/client.d.ts.map +1 -1
- package/dist/client.js +4 -4
- package/dist/contracts-node.d.ts +2 -0
- package/dist/contracts-node.d.ts.map +1 -0
- package/dist/contracts-node.js +1 -0
- package/dist/contracts.d.ts +2 -0
- package/dist/contracts.d.ts.map +1 -0
- package/dist/contracts.js +1 -0
- package/dist/daemon.d.ts +2 -0
- package/dist/daemon.d.ts.map +1 -0
- package/dist/daemon.js +1 -0
- package/dist/errors.d.ts +2 -0
- package/dist/errors.d.ts.map +1 -0
- package/dist/errors.js +1 -0
- package/dist/index.d.ts +9 -9
- package/dist/index.d.ts.map +1 -1
- package/dist/index.js +9 -9
- package/dist/operator.d.ts +2 -0
- package/dist/operator.d.ts.map +1 -0
- package/dist/operator.js +1 -0
- package/dist/peer.d.ts +2 -0
- package/dist/peer.d.ts.map +1 -0
- package/dist/peer.js +1 -0
- package/dist/react-native.d.ts +1 -1
- package/dist/react-native.d.ts.map +1 -1
- package/dist/react-native.js +2 -2
- package/dist/transport-core.d.ts +2 -0
- package/dist/transport-core.d.ts.map +1 -0
- package/dist/transport-core.js +1 -0
- package/dist/transport-direct.d.ts +2 -0
- package/dist/transport-direct.d.ts.map +1 -0
- package/dist/transport-direct.js +1 -0
- package/dist/transport-http.d.ts +2 -0
- package/dist/transport-http.d.ts.map +1 -0
- package/dist/transport-http.js +1 -0
- package/dist/transport-realtime.d.ts +2 -0
- package/dist/transport-realtime.d.ts.map +1 -0
- package/dist/transport-realtime.js +1 -0
- package/package.json +76 -10
|
@@ -0,0 +1,225 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Policy-as-Code registry.
|
|
3
|
+
*
|
|
4
|
+
* Manages versioned policy bundles with promote/rollback semantics.
|
|
5
|
+
* Enforces the rule that no bundle may move to enforcement without
|
|
6
|
+
* prior simulation evidence and a passing divergence gate.
|
|
7
|
+
*
|
|
8
|
+
* Bundle lifecycle:
|
|
9
|
+
* loaded → simulating → promoting (gate check) → active (enforced)
|
|
10
|
+
*
|
|
11
|
+
* At any time:
|
|
12
|
+
* - `current` — the bundle whose rules are actively enforced
|
|
13
|
+
* - `candidate` — a loaded bundle awaiting simulation before promotion
|
|
14
|
+
* - `history` — previous active bundles, kept for rollback
|
|
15
|
+
*/
|
|
16
|
+
import type { PolicyRule } from './types.js';
|
|
17
|
+
import type { SignedPolicyBundle } from './policy-signer.js';
|
|
18
|
+
import type { PolicyBundlePayload, BundleProvenance, PolicyLoadResult, PolicyLoaderOptions } from './policy-loader.js';
|
|
19
|
+
import type { DivergenceReport, SimulationMode } from './types.js';
|
|
20
|
+
import type { EnforceGateResult } from './divergence-dashboard.js';
|
|
21
|
+
/**
|
|
22
|
+
* Lifecycle state of a policy bundle version.
|
|
23
|
+
*
|
|
24
|
+
* - `loaded` — Bundle loaded as candidate; not yet simulated.
|
|
25
|
+
* - `simulating` — Simulation pipeline is active; divergence being collected.
|
|
26
|
+
* - `promoting` — Gate check in progress; simulation evidence collected.
|
|
27
|
+
* - `active` — Bundle is the enforced policy.
|
|
28
|
+
* - `rolled-back`— Bundle was superseded by a rollback operation.
|
|
29
|
+
*/
|
|
30
|
+
export type BundleLifecycleState = 'loaded' | 'simulating' | 'promoting' | 'active' | 'rolled-back';
|
|
31
|
+
/**
|
|
32
|
+
* A versioned policy bundle entry in the registry.
|
|
33
|
+
*/
|
|
34
|
+
export interface PolicyBundleVersion {
|
|
35
|
+
/** The signed bundle as loaded from disk/inline. */
|
|
36
|
+
bundle: SignedPolicyBundle<PolicyBundlePayload>;
|
|
37
|
+
/** Provenance record from the loader. */
|
|
38
|
+
provenance: BundleProvenance;
|
|
39
|
+
/** The extracted rules (only populated when load succeeded). */
|
|
40
|
+
rules: PolicyRule[];
|
|
41
|
+
/** Lifecycle state for this version. */
|
|
42
|
+
state: BundleLifecycleState;
|
|
43
|
+
/** ISO 8601 timestamp when this version was loaded. */
|
|
44
|
+
loadedAt: string;
|
|
45
|
+
/** ISO 8601 timestamp when this version became active, if ever. */
|
|
46
|
+
activatedAt?: string;
|
|
47
|
+
/** ISO 8601 timestamp when this version was rolled back, if applicable. */
|
|
48
|
+
rolledBackAt?: string;
|
|
49
|
+
/** Simulation report collected before promotion, if any. */
|
|
50
|
+
simulationReport?: DivergenceReport;
|
|
51
|
+
/** The gate result that was evaluated at promotion time, if any. */
|
|
52
|
+
gateResult?: EnforceGateResult;
|
|
53
|
+
}
|
|
54
|
+
/**
|
|
55
|
+
* Result of a diff between two policy bundle versions.
|
|
56
|
+
*/
|
|
57
|
+
export interface PolicyDiffResult {
|
|
58
|
+
/** ID of the "from" bundle (current or named). */
|
|
59
|
+
fromBundleId: string;
|
|
60
|
+
/** ID of the "to" bundle (candidate or named). */
|
|
61
|
+
toBundleId: string;
|
|
62
|
+
/** Rules present in `from` but not in `to` (removed). */
|
|
63
|
+
removed: PolicyRule[];
|
|
64
|
+
/** Rules present in `to` but not in `from` (added). */
|
|
65
|
+
added: PolicyRule[];
|
|
66
|
+
/** Rules whose `id` matches but whose payload differs. */
|
|
67
|
+
changed: Array<{
|
|
68
|
+
ruleId: string;
|
|
69
|
+
from: PolicyRule;
|
|
70
|
+
to: PolicyRule;
|
|
71
|
+
}>;
|
|
72
|
+
/** Rules identical in both bundles. */
|
|
73
|
+
unchanged: PolicyRule[];
|
|
74
|
+
/** Total count of changed rules (added + removed + modified). */
|
|
75
|
+
totalChanges: number;
|
|
76
|
+
}
|
|
77
|
+
/**
|
|
78
|
+
* Result of a promote operation.
|
|
79
|
+
*/
|
|
80
|
+
export interface PromoteResult {
|
|
81
|
+
/** Whether the promotion succeeded. */
|
|
82
|
+
ok: boolean;
|
|
83
|
+
/** The gate result evaluated at promotion time. */
|
|
84
|
+
gate?: EnforceGateResult;
|
|
85
|
+
/** Human-readable explanation when promotion is blocked. */
|
|
86
|
+
error?: string;
|
|
87
|
+
/** The bundle that was promoted, if successful. */
|
|
88
|
+
bundleId?: string;
|
|
89
|
+
}
|
|
90
|
+
/**
|
|
91
|
+
* Result of a rollback operation.
|
|
92
|
+
*/
|
|
93
|
+
export interface RollbackResult {
|
|
94
|
+
/** Whether the rollback succeeded. */
|
|
95
|
+
ok: boolean;
|
|
96
|
+
/** The bundle ID restored to active state. */
|
|
97
|
+
restoredBundleId?: string;
|
|
98
|
+
/** Human-readable error when rollback fails. */
|
|
99
|
+
error?: string;
|
|
100
|
+
}
|
|
101
|
+
/**
|
|
102
|
+
* Configuration for the PolicyRegistry.
|
|
103
|
+
*/
|
|
104
|
+
export interface PolicyRegistryConfig {
|
|
105
|
+
/**
|
|
106
|
+
* Maximum number of historical (non-active) bundle versions to retain.
|
|
107
|
+
* Oldest entries are dropped when the limit is exceeded.
|
|
108
|
+
* Defaults to 10.
|
|
109
|
+
*/
|
|
110
|
+
maxHistorySize?: number;
|
|
111
|
+
/**
|
|
112
|
+
* Options forwarded to `loadPolicyBundle()` for every bundle load.
|
|
113
|
+
*/
|
|
114
|
+
loaderOptions?: PolicyLoaderOptions;
|
|
115
|
+
}
|
|
116
|
+
/**
|
|
117
|
+
* PolicyRegistry — Versioned policy bundle manager.
|
|
118
|
+
*
|
|
119
|
+
* Maintains the full bundle lifecycle: loaded → simulating → promoting → active.
|
|
120
|
+
* Enforces that promotion to `active` (enforcement mode) requires:
|
|
121
|
+
* 1. A simulation report to have been attached (evidence of simulation).
|
|
122
|
+
* 2. The divergence gate to be passing (rate below threshold).
|
|
123
|
+
*
|
|
124
|
+
* Usage:
|
|
125
|
+
* ```ts
|
|
126
|
+
* const registry = new PolicyRegistry();
|
|
127
|
+
*
|
|
128
|
+
* // Load a new candidate bundle
|
|
129
|
+
* const loadResult = registry.loadCandidate(signedBundle);
|
|
130
|
+
*
|
|
131
|
+
* // After simulation, attach the report
|
|
132
|
+
* registry.attachSimulationReport(divergenceReport, gateResult);
|
|
133
|
+
*
|
|
134
|
+
* // Promote when gate passes
|
|
135
|
+
* const promoteResult = registry.promote();
|
|
136
|
+
*
|
|
137
|
+
* // Rollback if something goes wrong
|
|
138
|
+
* registry.rollback();
|
|
139
|
+
* ```
|
|
140
|
+
*/
|
|
141
|
+
export declare class PolicyRegistry {
|
|
142
|
+
private _current;
|
|
143
|
+
private _candidate;
|
|
144
|
+
private _history;
|
|
145
|
+
readonly DEFAULT_HISTORY_SIZE = 10;
|
|
146
|
+
private readonly _maxHistorySize;
|
|
147
|
+
private readonly _loaderOptions;
|
|
148
|
+
constructor(config?: PolicyRegistryConfig);
|
|
149
|
+
/**
|
|
150
|
+
* loadCandidate — Load a signed policy bundle as the pending candidate.
|
|
151
|
+
*
|
|
152
|
+
* Replaces any existing candidate. The candidate must be simulated and
|
|
153
|
+
* have its gate checked before it can be promoted to active.
|
|
154
|
+
*
|
|
155
|
+
* @param bundle — The signed bundle to load.
|
|
156
|
+
* @returns `PolicyLoadResult` indicating success or validation failure.
|
|
157
|
+
*/
|
|
158
|
+
loadCandidate(bundle: SignedPolicyBundle<PolicyBundlePayload>): PolicyLoadResult;
|
|
159
|
+
/**
|
|
160
|
+
* markSimulating — Transition candidate to `simulating` state.
|
|
161
|
+
*
|
|
162
|
+
* Called by the `/policy simulate` command when a simulation pipeline
|
|
163
|
+
* is started. Validates that a candidate is loaded and in `loaded` state.
|
|
164
|
+
*
|
|
165
|
+
* @returns true if the state was successfully advanced.
|
|
166
|
+
*/
|
|
167
|
+
markSimulating(): boolean;
|
|
168
|
+
/**
|
|
169
|
+
* attachSimulationReport — Attach divergence report and gate result to candidate.
|
|
170
|
+
*
|
|
171
|
+
* Advances the candidate to `promoting` state, which is a prerequisite for
|
|
172
|
+
* calling `promote()`.
|
|
173
|
+
*
|
|
174
|
+
* @param report — The divergence report from the simulation run.
|
|
175
|
+
* @param gateResult — The gate evaluation at report time.
|
|
176
|
+
* @returns true if the evidence was attached.
|
|
177
|
+
*/
|
|
178
|
+
attachSimulationReport(report: DivergenceReport, gateResult: EnforceGateResult): boolean;
|
|
179
|
+
/**
|
|
180
|
+
* promote — Promote the candidate bundle to active enforcement.
|
|
181
|
+
*
|
|
182
|
+
* Blocked unless:
|
|
183
|
+
* - A candidate exists in `promoting` state (simulation evidence attached).
|
|
184
|
+
* - The attached gate result is `passing`.
|
|
185
|
+
*
|
|
186
|
+
* On success, the previous active bundle moves to history.
|
|
187
|
+
*
|
|
188
|
+
* @param force — Skip gate check. Use only for testing; not for production use.
|
|
189
|
+
*/
|
|
190
|
+
promote(force?: boolean): PromoteResult;
|
|
191
|
+
/**
|
|
192
|
+
* rollback — Restore the previous active bundle.
|
|
193
|
+
*
|
|
194
|
+
* Moves the current active bundle to history and restores the most recent
|
|
195
|
+
* previously-active bundle from history.
|
|
196
|
+
*
|
|
197
|
+
* @returns `RollbackResult` indicating success or failure.
|
|
198
|
+
*/
|
|
199
|
+
rollback(): RollbackResult;
|
|
200
|
+
/**
|
|
201
|
+
* diff — Produce a structural diff between two bundle rule sets.
|
|
202
|
+
*
|
|
203
|
+
* Compares `from` (defaults to current active) and `to` (defaults to candidate).
|
|
204
|
+
* Rules are matched by `id` field.
|
|
205
|
+
*
|
|
206
|
+
* @param fromRules — Override the "from" rule set (defaults to current active).
|
|
207
|
+
* @param toRules — Override the "to" rule set (defaults to candidate).
|
|
208
|
+
*/
|
|
209
|
+
diff(fromRules?: PolicyRule[], toRules?: PolicyRule[]): PolicyDiffResult | null;
|
|
210
|
+
/** Returns the currently active bundle version, or null if none loaded. */
|
|
211
|
+
getCurrent(): PolicyBundleVersion | null;
|
|
212
|
+
/** Returns the candidate bundle version, or null if none loaded. */
|
|
213
|
+
getCandidate(): PolicyBundleVersion | null;
|
|
214
|
+
/** Returns the bundle history (previous active bundles), oldest first. */
|
|
215
|
+
getHistory(): PolicyBundleVersion[];
|
|
216
|
+
/**
|
|
217
|
+
* getSimulationMode — Returns the recommended simulation mode based on
|
|
218
|
+
* whether the candidate has simulation evidence.
|
|
219
|
+
*
|
|
220
|
+
* This is a hint for the command handler; callers choose the actual mode.
|
|
221
|
+
*/
|
|
222
|
+
getSimulationMode(): SimulationMode;
|
|
223
|
+
private _archiveVersion;
|
|
224
|
+
}
|
|
225
|
+
//# sourceMappingURL=policy-registry.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"policy-registry.d.ts","sourceRoot":"","sources":["../../../../../src/_internal/platform/runtime/permissions/policy-registry.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;GAcG;AAEH,OAAO,KAAK,EAAE,UAAU,EAAE,MAAM,YAAY,CAAC;AAC7C,OAAO,KAAK,EAAE,kBAAkB,EAAE,MAAM,oBAAoB,CAAC;AAC7D,OAAO,KAAK,EAAE,mBAAmB,EAAE,gBAAgB,EAAE,gBAAgB,EAAE,mBAAmB,EAAE,MAAM,oBAAoB,CAAC;AAEvH,OAAO,KAAK,EAAE,gBAAgB,EAAE,cAAc,EAAE,MAAM,YAAY,CAAC;AACnE,OAAO,KAAK,EAAE,iBAAiB,EAAE,MAAM,2BAA2B,CAAC;AAInE;;;;;;;;GAQG;AACH,MAAM,MAAM,oBAAoB,GAC5B,QAAQ,GACR,YAAY,GACZ,WAAW,GACX,QAAQ,GACR,aAAa,CAAC;AAElB;;GAEG;AACH,MAAM,WAAW,mBAAmB;IAClC,oDAAoD;IACpD,MAAM,EAAE,kBAAkB,CAAC,mBAAmB,CAAC,CAAC;IAChD,yCAAyC;IACzC,UAAU,EAAE,gBAAgB,CAAC;IAC7B,gEAAgE;IAChE,KAAK,EAAE,UAAU,EAAE,CAAC;IACpB,wCAAwC;IACxC,KAAK,EAAE,oBAAoB,CAAC;IAC5B,uDAAuD;IACvD,QAAQ,EAAE,MAAM,CAAC;IACjB,mEAAmE;IACnE,WAAW,CAAC,EAAE,MAAM,CAAC;IACrB,2EAA2E;IAC3E,YAAY,CAAC,EAAE,MAAM,CAAC;IACtB,4DAA4D;IAC5D,gBAAgB,CAAC,EAAE,gBAAgB,CAAC;IACpC,oEAAoE;IACpE,UAAU,CAAC,EAAE,iBAAiB,CAAC;CAChC;AAED;;GAEG;AACH,MAAM,WAAW,gBAAgB;IAC/B,kDAAkD;IAClD,YAAY,EAAE,MAAM,CAAC;IACrB,kDAAkD;IAClD,UAAU,EAAE,MAAM,CAAC;IACnB,yDAAyD;IACzD,OAAO,EAAE,UAAU,EAAE,CAAC;IACtB,uDAAuD;IACvD,KAAK,EAAE,UAAU,EAAE,CAAC;IACpB,0DAA0D;IAC1D,OAAO,EAAE,KAAK,CAAC;QAAE,MAAM,EAAE,MAAM,CAAC;QAAC,IAAI,EAAE,UAAU,CAAC;QAAC,EAAE,EAAE,UAAU,CAAA;KAAE,CAAC,CAAC;IACrE,uCAAuC;IACvC,SAAS,EAAE,UAAU,EAAE,CAAC;IACxB,iEAAiE;IACjE,YAAY,EAAE,MAAM,CAAC;CACtB;AAED;;GAEG;AACH,MAAM,WAAW,aAAa;IAC5B,uCAAuC;IACvC,EAAE,EAAE,OAAO,CAAC;IACZ,mDAAmD;IACnD,IAAI,CAAC,EAAE,iBAAiB,CAAC;IACzB,4DAA4D;IAC5D,KAAK,CAAC,EAAE,MAAM,CAAC;IACf,mDAAmD;IACnD,QAAQ,CAAC,EAAE,MAAM,CAAC;CACnB;AAED;;GAEG;AACH,MAAM,WAAW,cAAc;IAC7B,sCAAsC;IACtC,EAAE,EAAE,OAAO,CAAC;IACZ,8CAA8C;IAC9C,gBAAgB,CAAC,EAAE,MAAM,CAAC;IAC1B,gDAAgD;IAChD,KAAK,CAAC,EAAE,MAAM,CAAC;CAChB;AAED;;GAEG;AACH,MAAM,WAAW,oBAAoB;IACnC;;;;OAIG;IACH,cAAc,CAAC,EAAE,MAAM,CAAC;IACxB;;OAEG;IACH,aAAa,CAAC,EAAE,mBAAmB,CAAC;CACrC;AAID;;;;;;;;;;;;;;;;;;;;;;;;GAwBG;AACH,qBAAa,cAAc;IACzB,OAAO,CAAC,QAAQ,CAAoC;IACpD,OAAO,CAAC,UAAU,CAAoC;IACtD,OAAO,CAAC,QAAQ,CAA6B;IAE7C,SAAgB,oBAAoB,MAAM;IAE1C,OAAO,CAAC,QAAQ,CAAC,eAAe,CAAS;IACzC,OAAO,CAAC,QAAQ,CAAC,cAAc,CAAsB;gBAEzC,MAAM,GAAE,oBAAyB;IAO7C;;;;;;;;OAQG;IACI,aAAa,CAClB,MAAM,EAAE,kBAAkB,CAAC,mBAAmB,CAAC,GAC9C,gBAAgB;IAqBnB;;;;;;;OAOG;IACI,cAAc,IAAI,OAAO;IAQhC;;;;;;;;;OASG;IACI,sBAAsB,CAC3B,MAAM,EAAE,gBAAgB,EACxB,UAAU,EAAE,iBAAiB,GAC5B,OAAO;IAeV;;;;;;;;;;OAUG;IACI,OAAO,CAAC,KAAK,UAAQ,GAAG,aAAa;IA4E5C;;;;;;;OAOG;IACI,QAAQ,IAAI,cAAc;IA6BjC;;;;;;;;OAQG;IACI,IAAI,CACT,SAAS,CAAC,EAAE,UAAU,EAAE,EACxB,OAAO,CAAC,EAAE,UAAU,EAAE,GACrB,gBAAgB,GAAG,IAAI;IAsD1B,2EAA2E;IACpE,UAAU,IAAI,mBAAmB,GAAG,IAAI;IAI/C,oEAAoE;IAC7D,YAAY,IAAI,mBAAmB,GAAG,IAAI;IAIjD,0EAA0E;IACnE,UAAU,IAAI,mBAAmB,EAAE;IAI1C;;;;;OAKG;IACI,iBAAiB,IAAI,cAAc;IAQ1C,OAAO,CAAC,eAAe;CAOxB"}
|
|
@@ -0,0 +1,307 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Policy-as-Code registry.
|
|
3
|
+
*
|
|
4
|
+
* Manages versioned policy bundles with promote/rollback semantics.
|
|
5
|
+
* Enforces the rule that no bundle may move to enforcement without
|
|
6
|
+
* prior simulation evidence and a passing divergence gate.
|
|
7
|
+
*
|
|
8
|
+
* Bundle lifecycle:
|
|
9
|
+
* loaded → simulating → promoting (gate check) → active (enforced)
|
|
10
|
+
*
|
|
11
|
+
* At any time:
|
|
12
|
+
* - `current` — the bundle whose rules are actively enforced
|
|
13
|
+
* - `candidate` — a loaded bundle awaiting simulation before promotion
|
|
14
|
+
* - `history` — previous active bundles, kept for rollback
|
|
15
|
+
*/
|
|
16
|
+
import { loadPolicyBundle } from './policy-loader.js';
|
|
17
|
+
// ── PolicyRegistry ─────────────────────────────────────────────────────────────
|
|
18
|
+
/**
|
|
19
|
+
* PolicyRegistry — Versioned policy bundle manager.
|
|
20
|
+
*
|
|
21
|
+
* Maintains the full bundle lifecycle: loaded → simulating → promoting → active.
|
|
22
|
+
* Enforces that promotion to `active` (enforcement mode) requires:
|
|
23
|
+
* 1. A simulation report to have been attached (evidence of simulation).
|
|
24
|
+
* 2. The divergence gate to be passing (rate below threshold).
|
|
25
|
+
*
|
|
26
|
+
* Usage:
|
|
27
|
+
* ```ts
|
|
28
|
+
* const registry = new PolicyRegistry();
|
|
29
|
+
*
|
|
30
|
+
* // Load a new candidate bundle
|
|
31
|
+
* const loadResult = registry.loadCandidate(signedBundle);
|
|
32
|
+
*
|
|
33
|
+
* // After simulation, attach the report
|
|
34
|
+
* registry.attachSimulationReport(divergenceReport, gateResult);
|
|
35
|
+
*
|
|
36
|
+
* // Promote when gate passes
|
|
37
|
+
* const promoteResult = registry.promote();
|
|
38
|
+
*
|
|
39
|
+
* // Rollback if something goes wrong
|
|
40
|
+
* registry.rollback();
|
|
41
|
+
* ```
|
|
42
|
+
*/
|
|
43
|
+
export class PolicyRegistry {
|
|
44
|
+
_current = null;
|
|
45
|
+
_candidate = null;
|
|
46
|
+
_history = [];
|
|
47
|
+
DEFAULT_HISTORY_SIZE = 10;
|
|
48
|
+
_maxHistorySize;
|
|
49
|
+
_loaderOptions;
|
|
50
|
+
constructor(config = {}) {
|
|
51
|
+
this._maxHistorySize = config.maxHistorySize ?? this.DEFAULT_HISTORY_SIZE;
|
|
52
|
+
this._loaderOptions = config.loaderOptions ?? {};
|
|
53
|
+
}
|
|
54
|
+
// ── Loading ──────────────────────────────────────────────────────────────────
|
|
55
|
+
/**
|
|
56
|
+
* loadCandidate — Load a signed policy bundle as the pending candidate.
|
|
57
|
+
*
|
|
58
|
+
* Replaces any existing candidate. The candidate must be simulated and
|
|
59
|
+
* have its gate checked before it can be promoted to active.
|
|
60
|
+
*
|
|
61
|
+
* @param bundle — The signed bundle to load.
|
|
62
|
+
* @returns `PolicyLoadResult` indicating success or validation failure.
|
|
63
|
+
*/
|
|
64
|
+
loadCandidate(bundle) {
|
|
65
|
+
const result = loadPolicyBundle(bundle, this._loaderOptions);
|
|
66
|
+
if (!result.ok) {
|
|
67
|
+
return result;
|
|
68
|
+
}
|
|
69
|
+
const version = {
|
|
70
|
+
bundle,
|
|
71
|
+
provenance: result.provenance,
|
|
72
|
+
rules: result.rules ?? [],
|
|
73
|
+
state: 'loaded',
|
|
74
|
+
loadedAt: new Date().toISOString(),
|
|
75
|
+
};
|
|
76
|
+
this._candidate = version;
|
|
77
|
+
return result;
|
|
78
|
+
}
|
|
79
|
+
// ── Simulation evidence ───────────────────────────────────────────────────────
|
|
80
|
+
/**
|
|
81
|
+
* markSimulating — Transition candidate to `simulating` state.
|
|
82
|
+
*
|
|
83
|
+
* Called by the `/policy simulate` command when a simulation pipeline
|
|
84
|
+
* is started. Validates that a candidate is loaded and in `loaded` state.
|
|
85
|
+
*
|
|
86
|
+
* @returns true if the state was successfully advanced.
|
|
87
|
+
*/
|
|
88
|
+
markSimulating() {
|
|
89
|
+
if (!this._candidate || this._candidate.state !== 'loaded') {
|
|
90
|
+
return false;
|
|
91
|
+
}
|
|
92
|
+
this._candidate = { ...this._candidate, state: 'simulating' };
|
|
93
|
+
return true;
|
|
94
|
+
}
|
|
95
|
+
/**
|
|
96
|
+
* attachSimulationReport — Attach divergence report and gate result to candidate.
|
|
97
|
+
*
|
|
98
|
+
* Advances the candidate to `promoting` state, which is a prerequisite for
|
|
99
|
+
* calling `promote()`.
|
|
100
|
+
*
|
|
101
|
+
* @param report — The divergence report from the simulation run.
|
|
102
|
+
* @param gateResult — The gate evaluation at report time.
|
|
103
|
+
* @returns true if the evidence was attached.
|
|
104
|
+
*/
|
|
105
|
+
attachSimulationReport(report, gateResult) {
|
|
106
|
+
if (!this._candidate || this._candidate.state !== 'simulating') {
|
|
107
|
+
return false;
|
|
108
|
+
}
|
|
109
|
+
this._candidate = {
|
|
110
|
+
...this._candidate,
|
|
111
|
+
state: 'promoting',
|
|
112
|
+
simulationReport: report,
|
|
113
|
+
gateResult,
|
|
114
|
+
};
|
|
115
|
+
return true;
|
|
116
|
+
}
|
|
117
|
+
// ── Promotion ─────────────────────────────────────────────────────────────────
|
|
118
|
+
/**
|
|
119
|
+
* promote — Promote the candidate bundle to active enforcement.
|
|
120
|
+
*
|
|
121
|
+
* Blocked unless:
|
|
122
|
+
* - A candidate exists in `promoting` state (simulation evidence attached).
|
|
123
|
+
* - The attached gate result is `passing`.
|
|
124
|
+
*
|
|
125
|
+
* On success, the previous active bundle moves to history.
|
|
126
|
+
*
|
|
127
|
+
* @param force — Skip gate check. Use only for testing; not for production use.
|
|
128
|
+
*/
|
|
129
|
+
promote(force = false) {
|
|
130
|
+
if (!this._candidate) {
|
|
131
|
+
return { ok: false, error: 'No candidate bundle loaded.' };
|
|
132
|
+
}
|
|
133
|
+
if (this._candidate.state === 'loaded') {
|
|
134
|
+
return {
|
|
135
|
+
ok: false,
|
|
136
|
+
error: 'Candidate has not been simulated. Run `/policy simulate` first to collect divergence evidence.',
|
|
137
|
+
};
|
|
138
|
+
}
|
|
139
|
+
if (this._candidate.state === 'simulating') {
|
|
140
|
+
return {
|
|
141
|
+
ok: false,
|
|
142
|
+
error: 'Simulation is in progress. Attach a divergence report before promoting.',
|
|
143
|
+
};
|
|
144
|
+
}
|
|
145
|
+
if (this._candidate.state !== 'promoting') {
|
|
146
|
+
return {
|
|
147
|
+
ok: false,
|
|
148
|
+
error: `Candidate is in unexpected state: "${this._candidate.state}".`,
|
|
149
|
+
};
|
|
150
|
+
}
|
|
151
|
+
const gateResult = this._candidate.gateResult;
|
|
152
|
+
if (!gateResult) {
|
|
153
|
+
throw new Error('Invariant violation: candidate is in "promoting" state but gateResult is missing. ' +
|
|
154
|
+
'attachSimulationReport() must be called before promote().');
|
|
155
|
+
}
|
|
156
|
+
if (!force && gateResult.status === 'blocked') {
|
|
157
|
+
const rateStr = gateResult.divergenceRate !== undefined
|
|
158
|
+
? `${(gateResult.divergenceRate * 100).toFixed(1)}%`
|
|
159
|
+
: 'unknown';
|
|
160
|
+
return {
|
|
161
|
+
ok: false,
|
|
162
|
+
gate: gateResult,
|
|
163
|
+
error: `Promotion blocked: divergence gate is "${gateResult.status}" ` +
|
|
164
|
+
`(rate ${rateStr} exceeds threshold ` +
|
|
165
|
+
`${(gateResult.threshold * 100).toFixed(1)}%). ` +
|
|
166
|
+
`Reduce divergence or run more evaluations before promoting.`,
|
|
167
|
+
};
|
|
168
|
+
}
|
|
169
|
+
const now = new Date().toISOString();
|
|
170
|
+
// Archive the current active bundle
|
|
171
|
+
if (this._current) {
|
|
172
|
+
this._archiveVersion({ ...this._current });
|
|
173
|
+
}
|
|
174
|
+
// Promote candidate to active
|
|
175
|
+
this._current = {
|
|
176
|
+
...this._candidate,
|
|
177
|
+
state: 'active',
|
|
178
|
+
activatedAt: now,
|
|
179
|
+
};
|
|
180
|
+
this._candidate = null;
|
|
181
|
+
return {
|
|
182
|
+
ok: true,
|
|
183
|
+
gate: gateResult,
|
|
184
|
+
bundleId: this._current.bundle.bundleId,
|
|
185
|
+
};
|
|
186
|
+
}
|
|
187
|
+
// ── Rollback ──────────────────────────────────────────────────────────────────
|
|
188
|
+
/**
|
|
189
|
+
* rollback — Restore the previous active bundle.
|
|
190
|
+
*
|
|
191
|
+
* Moves the current active bundle to history and restores the most recent
|
|
192
|
+
* previously-active bundle from history.
|
|
193
|
+
*
|
|
194
|
+
* @returns `RollbackResult` indicating success or failure.
|
|
195
|
+
*/
|
|
196
|
+
rollback() {
|
|
197
|
+
const previous = this._history.findLast((v) => v.state === 'active');
|
|
198
|
+
if (!previous) {
|
|
199
|
+
return {
|
|
200
|
+
ok: false,
|
|
201
|
+
error: 'No previous bundle version available for rollback.',
|
|
202
|
+
};
|
|
203
|
+
}
|
|
204
|
+
const now = new Date().toISOString();
|
|
205
|
+
// Archive current active bundle as rolled-back
|
|
206
|
+
if (this._current) {
|
|
207
|
+
this._archiveVersion({ ...this._current, state: 'rolled-back', rolledBackAt: now });
|
|
208
|
+
}
|
|
209
|
+
// Remove the restored version from history and set as current
|
|
210
|
+
this._history = this._history.filter((v) => v !== previous);
|
|
211
|
+
this._current = { ...previous, state: 'active', activatedAt: now };
|
|
212
|
+
return {
|
|
213
|
+
ok: true,
|
|
214
|
+
restoredBundleId: this._current.bundle.bundleId,
|
|
215
|
+
};
|
|
216
|
+
}
|
|
217
|
+
// ── Diff ──────────────────────────────────────────────────────────────────────
|
|
218
|
+
/**
|
|
219
|
+
* diff — Produce a structural diff between two bundle rule sets.
|
|
220
|
+
*
|
|
221
|
+
* Compares `from` (defaults to current active) and `to` (defaults to candidate).
|
|
222
|
+
* Rules are matched by `id` field.
|
|
223
|
+
*
|
|
224
|
+
* @param fromRules — Override the "from" rule set (defaults to current active).
|
|
225
|
+
* @param toRules — Override the "to" rule set (defaults to candidate).
|
|
226
|
+
*/
|
|
227
|
+
diff(fromRules, toRules) {
|
|
228
|
+
const from = fromRules ?? this._current?.rules;
|
|
229
|
+
const to = toRules ?? this._candidate?.rules;
|
|
230
|
+
if (!from || !to) {
|
|
231
|
+
return null;
|
|
232
|
+
}
|
|
233
|
+
const fromId = this._current?.bundle.bundleId ?? 'unknown';
|
|
234
|
+
const toId = this._candidate?.bundle.bundleId ?? 'unknown';
|
|
235
|
+
const fromMap = new Map(from.map((r) => [r.id, r]));
|
|
236
|
+
const toMap = new Map(to.map((r) => [r.id, r]));
|
|
237
|
+
const removed = [];
|
|
238
|
+
const added = [];
|
|
239
|
+
const changed = [];
|
|
240
|
+
const unchanged = [];
|
|
241
|
+
// Check from → to (removed, changed, unchanged)
|
|
242
|
+
for (const [id, fromRule] of fromMap) {
|
|
243
|
+
const toRule = toMap.get(id);
|
|
244
|
+
if (!toRule) {
|
|
245
|
+
removed.push(fromRule);
|
|
246
|
+
// Safe: PolicyRule objects are constructed uniformly with consistent key ordering
|
|
247
|
+
// (all shapes extend BaseRule and are created only through controlled factory paths),
|
|
248
|
+
// so JSON.stringify produces a stable, deterministic representation for deep equality.
|
|
249
|
+
}
|
|
250
|
+
else if (JSON.stringify(fromRule) !== JSON.stringify(toRule)) {
|
|
251
|
+
changed.push({ ruleId: id, from: fromRule, to: toRule });
|
|
252
|
+
}
|
|
253
|
+
else {
|
|
254
|
+
unchanged.push(fromRule);
|
|
255
|
+
}
|
|
256
|
+
}
|
|
257
|
+
// Check to → from (added)
|
|
258
|
+
for (const [id, toRule] of toMap) {
|
|
259
|
+
if (!fromMap.has(id)) {
|
|
260
|
+
added.push(toRule);
|
|
261
|
+
}
|
|
262
|
+
}
|
|
263
|
+
return {
|
|
264
|
+
fromBundleId: fromId,
|
|
265
|
+
toBundleId: toId,
|
|
266
|
+
removed,
|
|
267
|
+
added,
|
|
268
|
+
changed,
|
|
269
|
+
unchanged,
|
|
270
|
+
totalChanges: added.length + removed.length + changed.length,
|
|
271
|
+
};
|
|
272
|
+
}
|
|
273
|
+
// ── Accessors ─────────────────────────────────────────────────────────────────
|
|
274
|
+
/** Returns the currently active bundle version, or null if none loaded. */
|
|
275
|
+
getCurrent() {
|
|
276
|
+
return this._current;
|
|
277
|
+
}
|
|
278
|
+
/** Returns the candidate bundle version, or null if none loaded. */
|
|
279
|
+
getCandidate() {
|
|
280
|
+
return this._candidate;
|
|
281
|
+
}
|
|
282
|
+
/** Returns the bundle history (previous active bundles), oldest first. */
|
|
283
|
+
getHistory() {
|
|
284
|
+
return [...this._history];
|
|
285
|
+
}
|
|
286
|
+
/**
|
|
287
|
+
* getSimulationMode — Returns the recommended simulation mode based on
|
|
288
|
+
* whether the candidate has simulation evidence.
|
|
289
|
+
*
|
|
290
|
+
* This is a hint for the command handler; callers choose the actual mode.
|
|
291
|
+
*/
|
|
292
|
+
getSimulationMode() {
|
|
293
|
+
if (!this._candidate)
|
|
294
|
+
return 'simulation-only';
|
|
295
|
+
if (this._candidate.state === 'loaded')
|
|
296
|
+
return 'simulation-only';
|
|
297
|
+
return 'warn-on-divergence';
|
|
298
|
+
}
|
|
299
|
+
// ── Private helpers ───────────────────────────────────────────────────────────
|
|
300
|
+
_archiveVersion(version) {
|
|
301
|
+
this._history.push(version);
|
|
302
|
+
// Trim to max history size (keep most recent)
|
|
303
|
+
if (this._history.length > this._maxHistorySize) {
|
|
304
|
+
this._history = this._history.slice(-this._maxHistorySize);
|
|
305
|
+
}
|
|
306
|
+
}
|
|
307
|
+
}
|
|
@@ -0,0 +1,95 @@
|
|
|
1
|
+
/** SDK-owned platform module. This implementation is maintained in goodvibes-sdk. */
|
|
2
|
+
/**
|
|
3
|
+
* Opaque identifier for a specific policy bundle instance.
|
|
4
|
+
*
|
|
5
|
+
* Used to correlate decisions back to the bundle that produced them.
|
|
6
|
+
* Typically a content hash or UUID assigned at bundle creation.
|
|
7
|
+
*/
|
|
8
|
+
export type PolicyBundleId = string;
|
|
9
|
+
/**
|
|
10
|
+
* Signature validation outcome for a loaded policy bundle.
|
|
11
|
+
*
|
|
12
|
+
* - `valid` — Signature present and verified against the payload.
|
|
13
|
+
* - `invalid` — Signature present but verification failed (tampered/wrong key).
|
|
14
|
+
* - `missing` — No signature field present in the bundle (returned by verifyBundle directly).
|
|
15
|
+
* - `unsigned` — Bundle has no signature field; loader uses this in non-managed mode.
|
|
16
|
+
* - `skipped` — Signature check was bypassed (no key supplied).
|
|
17
|
+
*/
|
|
18
|
+
export type SignatureStatus = 'valid' | 'invalid' | 'missing' | 'unsigned' | 'skipped';
|
|
19
|
+
/**
|
|
20
|
+
* Describes the origin of the policy bundle for audit and UI display.
|
|
21
|
+
*
|
|
22
|
+
* - `local-file` — Loaded from a local filesystem path.
|
|
23
|
+
* - `remote-url` — Fetched from a remote URL (managed infra).
|
|
24
|
+
* - `inline` — Embedded directly in runtime configuration.
|
|
25
|
+
* - `test-fixture`— Created by test infrastructure; never production.
|
|
26
|
+
*/
|
|
27
|
+
export type ProvenanceSource = 'local-file' | 'remote-url' | 'inline' | 'test-fixture';
|
|
28
|
+
/**
|
|
29
|
+
* A signed policy bundle as it appears on disk or over the wire.
|
|
30
|
+
*
|
|
31
|
+
* The `signature` field contains the hex-encoded HMAC-SHA256 digest of
|
|
32
|
+
* the canonical JSON serialisation of `{ bundleId, issuedAt, issuer, payload }`.
|
|
33
|
+
*/
|
|
34
|
+
export interface SignedPolicyBundle<T = unknown> {
|
|
35
|
+
/** Opaque bundle identifier (UUID or content hash). */
|
|
36
|
+
bundleId: PolicyBundleId;
|
|
37
|
+
/** ISO 8601 timestamp of when the bundle was signed. */
|
|
38
|
+
issuedAt: string;
|
|
39
|
+
/** The actual policy payload (rules array, metadata, etc.). */
|
|
40
|
+
payload: T;
|
|
41
|
+
/**
|
|
42
|
+
* Hex-encoded HMAC-SHA256 of the canonical JSON of `{ bundleId, issuedAt, issuer, payload }`.
|
|
43
|
+
* Absent when the bundle is unsigned.
|
|
44
|
+
*/
|
|
45
|
+
signature?: string;
|
|
46
|
+
/** Human-readable hint about the signer or issuer. */
|
|
47
|
+
issuer?: string;
|
|
48
|
+
}
|
|
49
|
+
/**
|
|
50
|
+
* Result returned by `verifyBundle()`.
|
|
51
|
+
*/
|
|
52
|
+
export interface VerifyResult {
|
|
53
|
+
/** Whether the bundle signature is valid (false for missing/invalid). */
|
|
54
|
+
ok: boolean;
|
|
55
|
+
/** Validation outcome detail. */
|
|
56
|
+
status: SignatureStatus;
|
|
57
|
+
/** Human-readable explanation of the outcome. */
|
|
58
|
+
message: string;
|
|
59
|
+
}
|
|
60
|
+
/**
|
|
61
|
+
* canonicalise — Produces a deterministic JSON string for the given value.
|
|
62
|
+
*
|
|
63
|
+
* Keys are sorted recursively so that the representation is stable
|
|
64
|
+
* regardless of insertion order, ensuring consistent HMAC inputs.
|
|
65
|
+
*
|
|
66
|
+
* @param value — The value to serialise.
|
|
67
|
+
*/
|
|
68
|
+
export declare function canonicalise(value: unknown): string;
|
|
69
|
+
/**
|
|
70
|
+
* signBundle — Creates a signed policy bundle from a payload.
|
|
71
|
+
*
|
|
72
|
+
* Generates a hex-encoded HMAC-SHA256 signature over the canonical JSON
|
|
73
|
+
* of the payload and embeds it in the returned `SignedPolicyBundle`.
|
|
74
|
+
*
|
|
75
|
+
* @param bundleId — Unique identifier for this bundle.
|
|
76
|
+
* @param payload — The policy payload to sign.
|
|
77
|
+
* @param key — Raw signing key (Buffer or hex string).
|
|
78
|
+
* @param issuer — Optional human-readable issuer label.
|
|
79
|
+
*/
|
|
80
|
+
export declare function signBundle<T>(bundleId: PolicyBundleId, payload: T, key: Buffer | string, issuer?: string): SignedPolicyBundle<T>;
|
|
81
|
+
/**
|
|
82
|
+
* verifyBundle — Validates the HMAC-SHA256 signature of a policy bundle.
|
|
83
|
+
*
|
|
84
|
+
* Computes the expected HMAC over the canonical payload and performs
|
|
85
|
+
* a constant-time comparison against the stored signature to prevent
|
|
86
|
+
* timing side-channel attacks.
|
|
87
|
+
*
|
|
88
|
+
* Returns `{ ok: false, status: 'missing' }` when the bundle carries no
|
|
89
|
+
* signature field. Callers decide whether to accept unsigned bundles.
|
|
90
|
+
*
|
|
91
|
+
* @param bundle — The bundle to verify.
|
|
92
|
+
* @param key — The verification key (Buffer or hex string).
|
|
93
|
+
*/
|
|
94
|
+
export declare function verifyBundle<T>(bundle: SignedPolicyBundle<T>, key: Buffer | string): VerifyResult;
|
|
95
|
+
//# sourceMappingURL=policy-signer.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"policy-signer.d.ts","sourceRoot":"","sources":["../../../../../src/_internal/platform/runtime/permissions/policy-signer.ts"],"names":[],"mappings":"AAAA,qFAAqF;AAiBrF;;;;;GAKG;AACH,MAAM,MAAM,cAAc,GAAG,MAAM,CAAC;AAEpC;;;;;;;;GAQG;AACH,MAAM,MAAM,eAAe,GAAG,OAAO,GAAG,SAAS,GAAG,SAAS,GAAG,UAAU,GAAG,SAAS,CAAC;AAEvF;;;;;;;GAOG;AACH,MAAM,MAAM,gBAAgB,GAAG,YAAY,GAAG,YAAY,GAAG,QAAQ,GAAG,cAAc,CAAC;AAIvF;;;;;GAKG;AACH,MAAM,WAAW,kBAAkB,CAAC,CAAC,GAAG,OAAO;IAC7C,uDAAuD;IACvD,QAAQ,EAAE,cAAc,CAAC;IACzB,wDAAwD;IACxD,QAAQ,EAAE,MAAM,CAAC;IACjB,+DAA+D;IAC/D,OAAO,EAAE,CAAC,CAAC;IACX;;;OAGG;IACH,SAAS,CAAC,EAAE,MAAM,CAAC;IACnB,sDAAsD;IACtD,MAAM,CAAC,EAAE,MAAM,CAAC;CACjB;AAED;;GAEG;AACH,MAAM,WAAW,YAAY;IAC3B,yEAAyE;IACzE,EAAE,EAAE,OAAO,CAAC;IACZ,iCAAiC;IACjC,MAAM,EAAE,eAAe,CAAC;IACxB,iDAAiD;IACjD,OAAO,EAAE,MAAM,CAAC;CACjB;AAID;;;;;;;GAOG;AACH,wBAAgB,YAAY,CAAC,KAAK,EAAE,OAAO,GAAG,MAAM,CAWnD;AAID;;;;;;;;;;GAUG;AACH,wBAAgB,UAAU,CAAC,CAAC,EAC1B,QAAQ,EAAE,cAAc,EACxB,OAAO,EAAE,CAAC,EACV,GAAG,EAAE,MAAM,GAAG,MAAM,EACpB,MAAM,CAAC,EAAE,MAAM,GACd,kBAAkB,CAAC,CAAC,CAAC,CAiBvB;AAID;;;;;;;;;;;;GAYG;AACH,wBAAgB,YAAY,CAAC,CAAC,EAC5B,MAAM,EAAE,kBAAkB,CAAC,CAAC,CAAC,EAC7B,GAAG,EAAE,MAAM,GAAG,MAAM,GACnB,YAAY,CAyEd"}
|