pulseed 0.6.4 → 0.6.6
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 +105 -86
- package/dist/adapters/datasources/artifact-metric-datasource.d.ts +1 -1
- package/dist/adapters/datasources/artifact-metric-datasource.d.ts.map +1 -1
- package/dist/adapters/datasources/artifact-metric-datasource.js +20 -249
- package/dist/adapters/datasources/artifact-metric-datasource.js.map +1 -1
- package/dist/adapters/datasources/artifact-metric-discovery.d.ts +44 -0
- package/dist/adapters/datasources/artifact-metric-discovery.d.ts.map +1 -0
- package/dist/adapters/datasources/artifact-metric-discovery.js +256 -0
- package/dist/adapters/datasources/artifact-metric-discovery.js.map +1 -0
- package/dist/adapters/datasources/mcp-datasource.d.ts.map +1 -1
- package/dist/adapters/datasources/mcp-datasource.js +2 -4
- package/dist/adapters/datasources/mcp-datasource.js.map +1 -1
- package/dist/adapters/datasources/shell-datasource.d.ts.map +1 -1
- package/dist/adapters/datasources/shell-datasource.js +9 -2
- package/dist/adapters/datasources/shell-datasource.js.map +1 -1
- package/dist/adapters/mcp-client-manager.d.ts +1 -0
- package/dist/adapters/mcp-client-manager.d.ts.map +1 -1
- package/dist/adapters/mcp-client-manager.js +8 -3
- package/dist/adapters/mcp-client-manager.js.map +1 -1
- package/dist/adapters/types/a2a.d.ts +6 -6
- package/dist/adapters/types/mcp.d.ts +6 -6
- package/dist/base/config/global-config.d.ts +67 -5
- package/dist/base/config/global-config.d.ts.map +1 -1
- package/dist/base/config/global-config.js +76 -25
- package/dist/base/config/global-config.js.map +1 -1
- package/dist/base/config/identity-loader.d.ts +1 -1
- package/dist/base/config/identity-loader.d.ts.map +1 -1
- package/dist/base/config/identity-loader.js +3 -6
- package/dist/base/config/identity-loader.js.map +1 -1
- package/dist/base/config/tool-metadata.js +39 -39
- package/dist/base/config/tool-metadata.js.map +1 -1
- package/dist/base/llm/anthropic-runtime.d.ts +3 -0
- package/dist/base/llm/anthropic-runtime.d.ts.map +1 -0
- package/dist/base/llm/anthropic-runtime.js +4 -0
- package/dist/base/llm/anthropic-runtime.js.map +1 -0
- package/dist/base/llm/base-llm-client.d.ts.map +1 -1
- package/dist/base/llm/base-llm-client.js +15 -3
- package/dist/base/llm/base-llm-client.js.map +1 -1
- package/dist/base/llm/codex-llm-client.d.ts +13 -2
- package/dist/base/llm/codex-llm-client.d.ts.map +1 -1
- package/dist/base/llm/codex-llm-client.js +435 -38
- package/dist/base/llm/codex-llm-client.js.map +1 -1
- package/dist/base/llm/llm-client.d.ts +27 -4
- package/dist/base/llm/llm-client.d.ts.map +1 -1
- package/dist/base/llm/llm-client.js +43 -10
- package/dist/base/llm/llm-client.js.map +1 -1
- package/dist/base/llm/ollama-client.d.ts.map +1 -1
- package/dist/base/llm/ollama-client.js +6 -1
- package/dist/base/llm/ollama-client.js.map +1 -1
- package/dist/base/llm/openai-client.d.ts +1 -0
- package/dist/base/llm/openai-client.d.ts.map +1 -1
- package/dist/base/llm/openai-client.js +239 -20
- package/dist/base/llm/openai-client.js.map +1 -1
- package/dist/base/llm/provider-config-models.d.ts +13 -0
- package/dist/base/llm/provider-config-models.d.ts.map +1 -0
- package/dist/base/llm/provider-config-models.js +37 -0
- package/dist/base/llm/provider-config-models.js.map +1 -0
- package/dist/base/llm/provider-config-resolution.d.ts +18 -0
- package/dist/base/llm/provider-config-resolution.d.ts.map +1 -0
- package/dist/base/llm/provider-config-resolution.js +116 -0
- package/dist/base/llm/provider-config-resolution.js.map +1 -0
- package/dist/base/llm/provider-config-types.d.ts +103 -0
- package/dist/base/llm/provider-config-types.d.ts.map +1 -0
- package/dist/base/llm/provider-config-types.js +2 -0
- package/dist/base/llm/provider-config-types.js.map +1 -0
- package/dist/base/llm/provider-config.d.ts +3 -111
- package/dist/base/llm/provider-config.d.ts.map +1 -1
- package/dist/base/llm/provider-config.js +22 -160
- package/dist/base/llm/provider-config.js.map +1 -1
- package/dist/base/llm/provider-factory.d.ts +10 -0
- package/dist/base/llm/provider-factory.d.ts.map +1 -1
- package/dist/base/llm/provider-factory.js +26 -1
- package/dist/base/llm/provider-factory.js.map +1 -1
- package/dist/base/state/legacy-archived-goal-recovery.d.ts +8 -0
- package/dist/base/state/legacy-archived-goal-recovery.d.ts.map +1 -0
- package/dist/base/state/legacy-archived-goal-recovery.js +29 -0
- package/dist/base/state/legacy-archived-goal-recovery.js.map +1 -0
- package/dist/base/state/legacy-state-manager-wal-recovery.d.ts +13 -0
- package/dist/base/state/legacy-state-manager-wal-recovery.d.ts.map +1 -0
- package/dist/base/state/legacy-state-manager-wal-recovery.js +102 -0
- package/dist/base/state/legacy-state-manager-wal-recovery.js.map +1 -0
- package/dist/base/state/{state-wal.d.ts → legacy-state-wal.d.ts} +7 -1
- package/dist/base/state/legacy-state-wal.d.ts.map +1 -0
- package/dist/base/state/{state-wal.js → legacy-state-wal.js} +50 -2
- package/dist/base/state/legacy-state-wal.js.map +1 -0
- package/dist/base/state/state-manager.d.ts +73 -44
- package/dist/base/state/state-manager.d.ts.map +1 -1
- package/dist/base/state/state-manager.js +492 -265
- package/dist/base/state/state-manager.js.map +1 -1
- package/dist/base/state/state-snapshot.d.ts.map +1 -1
- package/dist/base/state/state-snapshot.js +16 -3
- package/dist/base/state/state-snapshot.js.map +1 -1
- package/dist/base/types/time-horizon.d.ts +1 -0
- package/dist/base/types/time-horizon.d.ts.map +1 -1
- package/dist/base/types/time-horizon.js +20 -19
- package/dist/base/types/time-horizon.js.map +1 -1
- package/dist/base/utils/abort-reason.d.ts +11 -0
- package/dist/base/utils/abort-reason.d.ts.map +1 -0
- package/dist/base/utils/abort-reason.js +17 -0
- package/dist/base/utils/abort-reason.js.map +1 -0
- package/dist/base/utils/event-spool.d.ts +26 -0
- package/dist/base/utils/event-spool.d.ts.map +1 -0
- package/dist/base/utils/event-spool.js +149 -0
- package/dist/base/utils/event-spool.js.map +1 -0
- package/dist/base/utils/execFileNoThrow.d.ts.map +1 -1
- package/dist/base/utils/execFileNoThrow.js +21 -3
- package/dist/base/utils/execFileNoThrow.js.map +1 -1
- package/dist/base/utils/json-io.d.ts +25 -1
- package/dist/base/utils/json-io.d.ts.map +1 -1
- package/dist/base/utils/json-io.js +144 -3
- package/dist/base/utils/json-io.js.map +1 -1
- package/dist/base/utils/package-metadata.d.ts +10 -0
- package/dist/base/utils/package-metadata.d.ts.map +1 -0
- package/dist/base/utils/package-metadata.js +40 -0
- package/dist/base/utils/package-metadata.js.map +1 -0
- package/dist/base/utils/paths.d.ts +7 -0
- package/dist/base/utils/paths.d.ts.map +1 -1
- package/dist/base/utils/paths.js +13 -0
- package/dist/base/utils/paths.js.map +1 -1
- package/dist/base/utils/process-pid.d.ts +15 -0
- package/dist/base/utils/process-pid.d.ts.map +1 -0
- package/dist/base/utils/process-pid.js +45 -0
- package/dist/base/utils/process-pid.js.map +1 -0
- package/dist/base/utils/usage-counter.d.ts +14 -0
- package/dist/base/utils/usage-counter.d.ts.map +1 -0
- package/dist/base/utils/usage-counter.js +50 -0
- package/dist/base/utils/usage-counter.js.map +1 -0
- package/dist/base/utils/workspace-root.d.ts +6 -0
- package/dist/base/utils/workspace-root.d.ts.map +1 -0
- package/dist/base/utils/workspace-root.js +87 -0
- package/dist/base/utils/workspace-root.js.map +1 -0
- package/dist/grounding/contracts.d.ts +2 -0
- package/dist/grounding/contracts.d.ts.map +1 -1
- package/dist/grounding/profile-surface.d.ts +30 -0
- package/dist/grounding/profile-surface.d.ts.map +1 -0
- package/dist/grounding/profile-surface.js +257 -0
- package/dist/grounding/profile-surface.js.map +1 -0
- package/dist/grounding/providers/helpers.d.ts +6 -1
- package/dist/grounding/providers/helpers.d.ts.map +1 -1
- package/dist/grounding/providers/helpers.js +11 -3
- package/dist/grounding/providers/helpers.js.map +1 -1
- package/dist/grounding/providers/knowledge-provider.d.ts.map +1 -1
- package/dist/grounding/providers/knowledge-provider.js +22 -5
- package/dist/grounding/providers/knowledge-provider.js.map +1 -1
- package/dist/grounding/providers/session-history-provider.d.ts.map +1 -1
- package/dist/grounding/providers/session-history-provider.js +12 -22
- package/dist/grounding/providers/session-history-provider.js.map +1 -1
- package/dist/grounding/providers/soil-provider.d.ts.map +1 -1
- package/dist/grounding/providers/soil-provider.js +65 -10
- package/dist/grounding/providers/soil-provider.js.map +1 -1
- package/dist/grounding/providers/task-state-provider.d.ts.map +1 -1
- package/dist/grounding/providers/task-state-provider.js +7 -27
- package/dist/grounding/providers/task-state-provider.js.map +1 -1
- package/dist/grounding/providers/trust-state-provider.d.ts.map +1 -1
- package/dist/grounding/providers/trust-state-provider.js +5 -4
- package/dist/grounding/providers/trust-state-provider.js.map +1 -1
- package/dist/grounding/surface-contract-source-helpers.d.ts +37 -0
- package/dist/grounding/surface-contract-source-helpers.d.ts.map +1 -0
- package/dist/grounding/surface-contract-source-helpers.js +58 -0
- package/dist/grounding/surface-contract-source-helpers.js.map +1 -0
- package/dist/grounding/surface-contracts.d.ts +19531 -0
- package/dist/grounding/surface-contracts.d.ts.map +1 -0
- package/dist/grounding/surface-contracts.js +1352 -0
- package/dist/grounding/surface-contracts.js.map +1 -0
- package/dist/index.d.ts +17 -7
- package/dist/index.d.ts.map +1 -1
- package/dist/index.js +9 -4
- package/dist/index.js.map +1 -1
- package/dist/interface/chat/chat-agentloop-state-migration.d.ts +14 -0
- package/dist/interface/chat/chat-agentloop-state-migration.d.ts.map +1 -0
- package/dist/interface/chat/chat-agentloop-state-migration.js +252 -0
- package/dist/interface/chat/chat-agentloop-state-migration.js.map +1 -0
- package/dist/interface/chat/chat-command-args.d.ts +47 -0
- package/dist/interface/chat/chat-command-args.d.ts.map +1 -0
- package/dist/interface/chat/chat-command-args.js +134 -0
- package/dist/interface/chat/chat-command-args.js.map +1 -0
- package/dist/interface/chat/chat-event-state.d.ts.map +1 -1
- package/dist/interface/chat/chat-event-state.js +17 -0
- package/dist/interface/chat/chat-event-state.js.map +1 -1
- package/dist/interface/chat/chat-events.d.ts +23 -11
- package/dist/interface/chat/chat-events.d.ts.map +1 -1
- package/dist/interface/chat/chat-history.d.ts +18 -8969
- package/dist/interface/chat/chat-history.d.ts.map +1 -1
- package/dist/interface/chat/chat-history.js +67 -182
- package/dist/interface/chat/chat-history.js.map +1 -1
- package/dist/interface/chat/chat-runner-command-helpers.d.ts +4 -8
- package/dist/interface/chat/chat-runner-command-helpers.d.ts.map +1 -1
- package/dist/interface/chat/chat-runner-command-helpers.js +25 -50
- package/dist/interface/chat/chat-runner-command-helpers.js.map +1 -1
- package/dist/interface/chat/chat-runner-commands.d.ts +2 -7
- package/dist/interface/chat/chat-runner-commands.d.ts.map +1 -1
- package/dist/interface/chat/chat-runner-commands.js +112 -197
- package/dist/interface/chat/chat-runner-commands.js.map +1 -1
- package/dist/interface/chat/chat-runner-contracts.d.ts +34 -3
- package/dist/interface/chat/chat-runner-contracts.d.ts.map +1 -1
- package/dist/interface/chat/chat-runner-event-bridge.d.ts +35 -21
- package/dist/interface/chat/chat-runner-event-bridge.d.ts.map +1 -1
- package/dist/interface/chat/chat-runner-event-bridge.js +406 -71
- package/dist/interface/chat/chat-runner-event-bridge.js.map +1 -1
- package/dist/interface/chat/chat-runner-guardrail-status.d.ts +12 -0
- package/dist/interface/chat/chat-runner-guardrail-status.d.ts.map +1 -0
- package/dist/interface/chat/chat-runner-guardrail-status.js +173 -0
- package/dist/interface/chat/chat-runner-guardrail-status.js.map +1 -0
- package/dist/interface/chat/chat-runner-routes.d.ts +34 -88
- package/dist/interface/chat/chat-runner-routes.d.ts.map +1 -1
- package/dist/interface/chat/chat-runner-routes.js +815 -426
- package/dist/interface/chat/chat-runner-routes.js.map +1 -1
- package/dist/interface/chat/chat-runner-runtime.d.ts +9 -4
- package/dist/interface/chat/chat-runner-runtime.d.ts.map +1 -1
- package/dist/interface/chat/chat-runner-runtime.js +47 -17
- package/dist/interface/chat/chat-runner-runtime.js.map +1 -1
- package/dist/interface/chat/chat-runner-setup-format.d.ts +11 -0
- package/dist/interface/chat/chat-runner-setup-format.d.ts.map +1 -0
- package/dist/interface/chat/chat-runner-setup-format.js +28 -0
- package/dist/interface/chat/chat-runner-setup-format.js.map +1 -0
- package/dist/interface/chat/chat-runner-state.d.ts +2 -6
- package/dist/interface/chat/chat-runner-state.d.ts.map +1 -1
- package/dist/interface/chat/chat-runner-state.js +22 -128
- package/dist/interface/chat/chat-runner-state.js.map +1 -1
- package/dist/interface/chat/chat-runner-support.d.ts +2 -2
- package/dist/interface/chat/chat-runner.d.ts +36 -1
- package/dist/interface/chat/chat-runner.d.ts.map +1 -1
- package/dist/interface/chat/chat-runner.js +449 -188
- package/dist/interface/chat/chat-runner.js.map +1 -1
- package/dist/interface/chat/chat-session-contracts.d.ts +8872 -0
- package/dist/interface/chat/chat-session-contracts.d.ts.map +1 -0
- package/dist/interface/chat/chat-session-contracts.js +143 -0
- package/dist/interface/chat/chat-session-contracts.js.map +1 -0
- package/dist/interface/chat/chat-session-data-store.d.ts +26 -0
- package/dist/interface/chat/chat-session-data-store.d.ts.map +1 -0
- package/dist/interface/chat/chat-session-data-store.js +227 -0
- package/dist/interface/chat/chat-session-data-store.js.map +1 -0
- package/dist/interface/chat/chat-session-store.d.ts +8 -3
- package/dist/interface/chat/chat-session-store.d.ts.map +1 -1
- package/dist/interface/chat/chat-session-store.js +111 -246
- package/dist/interface/chat/chat-session-store.js.map +1 -1
- package/dist/interface/chat/chat-state-base-dir.d.ts +3 -0
- package/dist/interface/chat/chat-state-base-dir.d.ts.map +1 -0
- package/dist/interface/chat/chat-state-base-dir.js +17 -0
- package/dist/interface/chat/chat-state-base-dir.js.map +1 -0
- package/dist/interface/chat/chat-state-service.d.ts.map +1 -1
- package/dist/interface/chat/chat-state-service.js +2 -3
- package/dist/interface/chat/chat-state-service.js.map +1 -1
- package/dist/interface/chat/chat-usage-contracts.d.ts +102 -0
- package/dist/interface/chat/chat-usage-contracts.d.ts.map +1 -0
- package/dist/interface/chat/chat-usage-contracts.js +17 -0
- package/dist/interface/chat/chat-usage-contracts.js.map +1 -0
- package/dist/interface/chat/chat-usage.d.ts +12 -0
- package/dist/interface/chat/chat-usage.d.ts.map +1 -0
- package/dist/interface/chat/chat-usage.js +38 -0
- package/dist/interface/chat/chat-usage.js.map +1 -0
- package/dist/interface/chat/cross-platform-session-normalization.d.ts +50 -0
- package/dist/interface/chat/cross-platform-session-normalization.d.ts.map +1 -0
- package/dist/interface/chat/cross-platform-session-normalization.js +134 -0
- package/dist/interface/chat/cross-platform-session-normalization.js.map +1 -0
- package/dist/interface/chat/cross-platform-session-types.d.ts +105 -0
- package/dist/interface/chat/cross-platform-session-types.d.ts.map +1 -0
- package/dist/interface/chat/cross-platform-session-types.js +2 -0
- package/dist/interface/chat/cross-platform-session-types.js.map +1 -0
- package/dist/interface/chat/cross-platform-session.d.ts +12 -101
- package/dist/interface/chat/cross-platform-session.d.ts.map +1 -1
- package/dist/interface/chat/cross-platform-session.js +410 -220
- package/dist/interface/chat/cross-platform-session.js.map +1 -1
- package/dist/interface/chat/event-subscriber.d.ts.map +1 -1
- package/dist/interface/chat/event-subscriber.js +3 -2
- package/dist/interface/chat/event-subscriber.js.map +1 -1
- package/dist/interface/chat/failure-recovery.d.ts +5 -5
- package/dist/interface/chat/failure-recovery.d.ts.map +1 -1
- package/dist/interface/chat/failure-recovery.js +23 -18
- package/dist/interface/chat/failure-recovery.js.map +1 -1
- package/dist/interface/chat/feedback-ingestion.d.ts +17 -0
- package/dist/interface/chat/feedback-ingestion.d.ts.map +1 -0
- package/dist/interface/chat/feedback-ingestion.js +140 -0
- package/dist/interface/chat/feedback-ingestion.js.map +1 -0
- package/dist/interface/chat/gateway-progress.d.ts +17 -0
- package/dist/interface/chat/gateway-progress.d.ts.map +1 -0
- package/dist/interface/chat/gateway-progress.js +2 -0
- package/dist/interface/chat/gateway-progress.js.map +1 -0
- package/dist/interface/chat/grounding.d.ts.map +1 -1
- package/dist/interface/chat/grounding.js +2 -0
- package/dist/interface/chat/grounding.js.map +1 -1
- package/dist/interface/chat/ingress-router.d.ts +11 -63
- package/dist/interface/chat/ingress-router.d.ts.map +1 -1
- package/dist/interface/chat/ingress-router.js +90 -142
- package/dist/interface/chat/ingress-router.js.map +1 -1
- package/dist/interface/chat/ingress-types.d.ts +52 -0
- package/dist/interface/chat/ingress-types.d.ts.map +1 -0
- package/dist/interface/chat/ingress-types.js +2 -0
- package/dist/interface/chat/ingress-types.js.map +1 -0
- package/dist/interface/chat/operation-progress.d.ts +2 -0
- package/dist/interface/chat/operation-progress.d.ts.map +1 -1
- package/dist/interface/chat/operation-progress.js +1 -0
- package/dist/interface/chat/operation-progress.js.map +1 -1
- package/dist/interface/chat/recovery-resume.d.ts +33 -0
- package/dist/interface/chat/recovery-resume.d.ts.map +1 -0
- package/dist/interface/chat/recovery-resume.js +92 -0
- package/dist/interface/chat/recovery-resume.js.map +1 -0
- package/dist/interface/chat/resume-choice.d.ts +2 -0
- package/dist/interface/chat/resume-choice.d.ts.map +1 -0
- package/dist/interface/chat/resume-choice.js +10 -0
- package/dist/interface/chat/resume-choice.js.map +1 -0
- package/dist/interface/chat/runtime-evidence-gate.d.ts +17 -0
- package/dist/interface/chat/runtime-evidence-gate.d.ts.map +1 -0
- package/dist/interface/chat/runtime-evidence-gate.js +171 -0
- package/dist/interface/chat/runtime-evidence-gate.js.map +1 -0
- package/dist/interface/chat/seedy-presence-text.d.ts +7 -0
- package/dist/interface/chat/seedy-presence-text.d.ts.map +1 -0
- package/dist/interface/chat/seedy-presence-text.js +78 -0
- package/dist/interface/chat/seedy-presence-text.js.map +1 -0
- package/dist/interface/chat/seedy-presence-view-model.d.ts +15 -0
- package/dist/interface/chat/seedy-presence-view-model.d.ts.map +1 -0
- package/dist/interface/chat/seedy-presence-view-model.js +90 -0
- package/dist/interface/chat/seedy-presence-view-model.js.map +1 -0
- package/dist/interface/chat/seedy-turn-presence.d.ts +103 -0
- package/dist/interface/chat/seedy-turn-presence.d.ts.map +1 -0
- package/dist/interface/chat/seedy-turn-presence.js +195 -0
- package/dist/interface/chat/seedy-turn-presence.js.map +1 -0
- package/dist/interface/chat/setup-config-write.js +1 -1
- package/dist/interface/chat/setup-config-write.js.map +1 -1
- package/dist/interface/chat/telegram-setup-guidance.d.ts +55 -0
- package/dist/interface/chat/telegram-setup-guidance.d.ts.map +1 -0
- package/dist/interface/chat/telegram-setup-guidance.js +105 -0
- package/dist/interface/chat/telegram-setup-guidance.js.map +1 -0
- package/dist/interface/chat/tend-command.d.ts +1 -0
- package/dist/interface/chat/tend-command.d.ts.map +1 -1
- package/dist/interface/chat/tend-command.js +67 -15
- package/dist/interface/chat/tend-command.js.map +1 -1
- package/dist/interface/chat/turn-context.d.ts +2 -0
- package/dist/interface/chat/turn-context.d.ts.map +1 -1
- package/dist/interface/chat/turn-context.js +2 -0
- package/dist/interface/chat/turn-context.js.map +1 -1
- package/dist/interface/chat/turn-language.d.ts +0 -1
- package/dist/interface/chat/turn-language.d.ts.map +1 -1
- package/dist/interface/chat/turn-language.js +0 -3
- package/dist/interface/chat/turn-language.js.map +1 -1
- package/dist/interface/chat/turn-protocol.d.ts +1 -2
- package/dist/interface/chat/turn-protocol.d.ts.map +1 -1
- package/dist/interface/chat/turn-protocol.js.map +1 -1
- package/dist/interface/chat/turn-state.d.ts +22 -0
- package/dist/interface/chat/turn-state.d.ts.map +1 -0
- package/dist/interface/chat/turn-state.js +2 -0
- package/dist/interface/chat/turn-state.js.map +1 -0
- package/dist/interface/cli/cli-command-registry.d.ts +6 -6
- package/dist/interface/cli/cli-command-registry.d.ts.map +1 -1
- package/dist/interface/cli/cli-command-registry.js +55 -50
- package/dist/interface/cli/cli-command-registry.js.map +1 -1
- package/dist/interface/cli/cli-runner.d.ts +2 -2
- package/dist/interface/cli/cli-runner.d.ts.map +1 -1
- package/dist/interface/cli/cli-runner.js +85 -9
- package/dist/interface/cli/cli-runner.js.map +1 -1
- package/dist/interface/cli/commands/approval.d.ts +1 -1
- package/dist/interface/cli/commands/approval.d.ts.map +1 -1
- package/dist/interface/cli/commands/approval.js +2 -33
- package/dist/interface/cli/commands/approval.js.map +1 -1
- package/dist/interface/cli/commands/config.d.ts +2 -2
- package/dist/interface/cli/commands/config.d.ts.map +1 -1
- package/dist/interface/cli/commands/config.js +85 -28
- package/dist/interface/cli/commands/config.js.map +1 -1
- package/dist/interface/cli/commands/daemon-shared.d.ts +8 -8
- package/dist/interface/cli/commands/daemon-shared.d.ts.map +1 -1
- package/dist/interface/cli/commands/daemon-shared.js +55 -55
- package/dist/interface/cli/commands/daemon-shared.js.map +1 -1
- package/dist/interface/cli/commands/daemon-status-health.d.ts +16 -0
- package/dist/interface/cli/commands/daemon-status-health.d.ts.map +1 -0
- package/dist/interface/cli/commands/daemon-status-health.js +134 -0
- package/dist/interface/cli/commands/daemon-status-health.js.map +1 -0
- package/dist/interface/cli/commands/daemon.d.ts +8 -2
- package/dist/interface/cli/commands/daemon.d.ts.map +1 -1
- package/dist/interface/cli/commands/daemon.js +203 -105
- package/dist/interface/cli/commands/daemon.js.map +1 -1
- package/dist/interface/cli/commands/display-format.d.ts +8 -0
- package/dist/interface/cli/commands/display-format.d.ts.map +1 -0
- package/dist/interface/cli/commands/display-format.js +79 -0
- package/dist/interface/cli/commands/display-format.js.map +1 -0
- package/dist/interface/cli/commands/doctor.d.ts +3 -2
- package/dist/interface/cli/commands/doctor.d.ts.map +1 -1
- package/dist/interface/cli/commands/doctor.js +220 -109
- package/dist/interface/cli/commands/doctor.js.map +1 -1
- package/dist/interface/cli/commands/exact-number.d.ts +2 -0
- package/dist/interface/cli/commands/exact-number.d.ts.map +1 -0
- package/dist/interface/cli/commands/exact-number.js +9 -0
- package/dist/interface/cli/commands/exact-number.js.map +1 -0
- package/dist/interface/cli/commands/gateway.d.ts +1 -1
- package/dist/interface/cli/commands/gateway.d.ts.map +1 -1
- package/dist/interface/cli/commands/gateway.js +40 -1
- package/dist/interface/cli/commands/gateway.js.map +1 -1
- package/dist/interface/cli/commands/goal-dispatch.d.ts.map +1 -1
- package/dist/interface/cli/commands/goal-dispatch.js +9 -2
- package/dist/interface/cli/commands/goal-dispatch.js.map +1 -1
- package/dist/interface/cli/commands/goal-read.d.ts +8 -2
- package/dist/interface/cli/commands/goal-read.d.ts.map +1 -1
- package/dist/interface/cli/commands/goal-read.js +143 -70
- package/dist/interface/cli/commands/goal-read.js.map +1 -1
- package/dist/interface/cli/commands/goal-utils.d.ts +5 -12
- package/dist/interface/cli/commands/goal-utils.d.ts.map +1 -1
- package/dist/interface/cli/commands/goal-utils.js +27 -20
- package/dist/interface/cli/commands/goal-utils.js.map +1 -1
- package/dist/interface/cli/commands/goal-write.d.ts +2 -2
- package/dist/interface/cli/commands/goal-write.d.ts.map +1 -1
- package/dist/interface/cli/commands/goal-write.js +17 -7
- package/dist/interface/cli/commands/goal-write.js.map +1 -1
- package/dist/interface/cli/commands/goal.d.ts +1 -1
- package/dist/interface/cli/commands/goal.d.ts.map +1 -1
- package/dist/interface/cli/commands/goal.js +1 -1
- package/dist/interface/cli/commands/goal.js.map +1 -1
- package/dist/interface/cli/commands/install.d.ts +1 -0
- package/dist/interface/cli/commands/install.d.ts.map +1 -1
- package/dist/interface/cli/commands/install.js +20 -4
- package/dist/interface/cli/commands/install.js.map +1 -1
- package/dist/interface/cli/commands/logs.d.ts +1 -0
- package/dist/interface/cli/commands/logs.d.ts.map +1 -1
- package/dist/interface/cli/commands/logs.js +23 -4
- package/dist/interface/cli/commands/logs.js.map +1 -1
- package/dist/interface/cli/commands/notify.d.ts.map +1 -1
- package/dist/interface/cli/commands/notify.js +59 -15
- package/dist/interface/cli/commands/notify.js.map +1 -1
- package/dist/interface/cli/commands/operator-binding-status.d.ts +2 -0
- package/dist/interface/cli/commands/operator-binding-status.d.ts.map +1 -1
- package/dist/interface/cli/commands/operator-binding-status.js +191 -14
- package/dist/interface/cli/commands/operator-binding-status.js.map +1 -1
- package/dist/interface/cli/commands/plugin.d.ts.map +1 -1
- package/dist/interface/cli/commands/plugin.js +54 -40
- package/dist/interface/cli/commands/plugin.js.map +1 -1
- package/dist/interface/cli/commands/profile.d.ts.map +1 -1
- package/dist/interface/cli/commands/profile.js +3 -2
- package/dist/interface/cli/commands/profile.js.map +1 -1
- package/dist/interface/cli/commands/run.d.ts +5 -5
- package/dist/interface/cli/commands/run.d.ts.map +1 -1
- package/dist/interface/cli/commands/run.js +15 -26
- package/dist/interface/cli/commands/run.js.map +1 -1
- package/dist/interface/cli/commands/runtime.d.ts.map +1 -1
- package/dist/interface/cli/commands/runtime.js +73 -11
- package/dist/interface/cli/commands/runtime.js.map +1 -1
- package/dist/interface/cli/commands/schedule/cost.d.ts +1 -1
- package/dist/interface/cli/commands/schedule/cost.d.ts.map +1 -1
- package/dist/interface/cli/commands/schedule/cost.js +9 -22
- package/dist/interface/cli/commands/schedule/cost.js.map +1 -1
- package/dist/interface/cli/commands/schedule/history.d.ts.map +1 -1
- package/dist/interface/cli/commands/schedule/history.js +19 -1
- package/dist/interface/cli/commands/schedule/history.js.map +1 -1
- package/dist/interface/cli/commands/schedule/shared.d.ts.map +1 -1
- package/dist/interface/cli/commands/schedule/shared.js +25 -8
- package/dist/interface/cli/commands/schedule/shared.js.map +1 -1
- package/dist/interface/cli/commands/schedule.d.ts +1 -1
- package/dist/interface/cli/commands/schedule.d.ts.map +1 -1
- package/dist/interface/cli/commands/schedule.js +163 -86
- package/dist/interface/cli/commands/schedule.js.map +1 -1
- package/dist/interface/cli/commands/setup/import/apply.d.ts.map +1 -1
- package/dist/interface/cli/commands/setup/import/apply.js +153 -7
- package/dist/interface/cli/commands/setup/import/apply.js.map +1 -1
- package/dist/interface/cli/commands/setup/import/discovery.js +14 -15
- package/dist/interface/cli/commands/setup/import/discovery.js.map +1 -1
- package/dist/interface/cli/commands/setup/import/fs-utils.d.ts +4 -0
- package/dist/interface/cli/commands/setup/import/fs-utils.d.ts.map +1 -1
- package/dist/interface/cli/commands/setup/import/fs-utils.js +20 -2
- package/dist/interface/cli/commands/setup/import/fs-utils.js.map +1 -1
- package/dist/interface/cli/commands/setup/import/provider.d.ts.map +1 -1
- package/dist/interface/cli/commands/setup/import/provider.js +44 -31
- package/dist/interface/cli/commands/setup/import/provider.js.map +1 -1
- package/dist/interface/cli/commands/setup/import/telegram.d.ts.map +1 -1
- package/dist/interface/cli/commands/setup/import/telegram.js +4 -3
- package/dist/interface/cli/commands/setup/import/telegram.js.map +1 -1
- package/dist/interface/cli/commands/setup/import/types.d.ts +3 -0
- package/dist/interface/cli/commands/setup/import/types.d.ts.map +1 -1
- package/dist/interface/cli/commands/setup/resident-readiness.d.ts +42 -0
- package/dist/interface/cli/commands/setup/resident-readiness.d.ts.map +1 -0
- package/dist/interface/cli/commands/setup/resident-readiness.js +79 -0
- package/dist/interface/cli/commands/setup/resident-readiness.js.map +1 -0
- package/dist/interface/cli/commands/setup/steps-gateway.d.ts +10 -0
- package/dist/interface/cli/commands/setup/steps-gateway.d.ts.map +1 -1
- package/dist/interface/cli/commands/setup/steps-gateway.js +89 -44
- package/dist/interface/cli/commands/setup/steps-gateway.js.map +1 -1
- package/dist/interface/cli/commands/setup/steps-runtime.d.ts +1 -0
- package/dist/interface/cli/commands/setup/steps-runtime.d.ts.map +1 -1
- package/dist/interface/cli/commands/setup/steps-runtime.js +29 -18
- package/dist/interface/cli/commands/setup/steps-runtime.js.map +1 -1
- package/dist/interface/cli/commands/setup-wizard.d.ts +3 -33
- package/dist/interface/cli/commands/setup-wizard.d.ts.map +1 -1
- package/dist/interface/cli/commands/setup-wizard.js +18 -81
- package/dist/interface/cli/commands/setup-wizard.js.map +1 -1
- package/dist/interface/cli/commands/skills.d.ts.map +1 -1
- package/dist/interface/cli/commands/skills.js +10 -2
- package/dist/interface/cli/commands/skills.js.map +1 -1
- package/dist/interface/cli/commands/suggest-normalizer.d.ts +7 -3
- package/dist/interface/cli/commands/suggest-normalizer.d.ts.map +1 -1
- package/dist/interface/cli/commands/suggest-normalizer.js +70 -23
- package/dist/interface/cli/commands/suggest-normalizer.js.map +1 -1
- package/dist/interface/cli/commands/suggest.d.ts +1 -0
- package/dist/interface/cli/commands/suggest.d.ts.map +1 -1
- package/dist/interface/cli/commands/suggest.js +40 -10
- package/dist/interface/cli/commands/suggest.js.map +1 -1
- package/dist/interface/cli/commands/task-read.d.ts +1 -1
- package/dist/interface/cli/commands/task-read.d.ts.map +1 -1
- package/dist/interface/cli/commands/task-read.js +8 -30
- package/dist/interface/cli/commands/task-read.js.map +1 -1
- package/dist/interface/cli/commands/telegram-id-parser.d.ts +10 -0
- package/dist/interface/cli/commands/telegram-id-parser.d.ts.map +1 -0
- package/dist/interface/cli/commands/telegram-id-parser.js +26 -0
- package/dist/interface/cli/commands/telegram-id-parser.js.map +1 -0
- package/dist/interface/cli/commands/telegram.d.ts +2 -1
- package/dist/interface/cli/commands/telegram.d.ts.map +1 -1
- package/dist/interface/cli/commands/telegram.js +66 -20
- package/dist/interface/cli/commands/telegram.js.map +1 -1
- package/dist/interface/cli/commands/usage.d.ts.map +1 -1
- package/dist/interface/cli/commands/usage.js +17 -83
- package/dist/interface/cli/commands/usage.js.map +1 -1
- package/dist/interface/cli/data-source-bootstrap.d.ts +1 -1
- package/dist/interface/cli/data-source-bootstrap.d.ts.map +1 -1
- package/dist/interface/cli/data-source-bootstrap.js +43 -10
- package/dist/interface/cli/data-source-bootstrap.js.map +1 -1
- package/dist/interface/cli/datasource-config-file.d.ts +5 -0
- package/dist/interface/cli/datasource-config-file.d.ts.map +1 -0
- package/dist/interface/cli/datasource-config-file.js +14 -0
- package/dist/interface/cli/datasource-config-file.js.map +1 -0
- package/dist/interface/cli/ensure-api-key.d.ts.map +1 -1
- package/dist/interface/cli/ensure-api-key.js +5 -1
- package/dist/interface/cli/ensure-api-key.js.map +1 -1
- package/dist/interface/cli/setup.d.ts.map +1 -1
- package/dist/interface/cli/setup.js +13 -10
- package/dist/interface/cli/setup.js.map +1 -1
- package/dist/interface/cli/utils/loop-runner.d.ts +2 -2
- package/dist/interface/cli/utils/loop-runner.d.ts.map +1 -1
- package/dist/interface/cli/utils/loop-runner.js +3 -3
- package/dist/interface/cli/utils/loop-runner.js.map +1 -1
- package/dist/interface/cli/utils.d.ts.map +1 -1
- package/dist/interface/cli/utils.js +5 -2
- package/dist/interface/cli/utils.js.map +1 -1
- package/dist/interface/current-goal-summary.d.ts +20 -0
- package/dist/interface/current-goal-summary.d.ts.map +1 -0
- package/dist/interface/current-goal-summary.js +197 -0
- package/dist/interface/current-goal-summary.js.map +1 -0
- package/dist/interface/goal-status-display.d.ts +7 -0
- package/dist/interface/goal-status-display.d.ts.map +1 -0
- package/dist/interface/goal-status-display.js +48 -0
- package/dist/interface/goal-status-display.js.map +1 -0
- package/dist/interface/mcp-server/tools.d.ts.map +1 -1
- package/dist/interface/mcp-server/tools.js +6 -29
- package/dist/interface/mcp-server/tools.js.map +1 -1
- package/dist/interface/runtime-budget-summary.d.ts +19 -0
- package/dist/interface/runtime-budget-summary.d.ts.map +1 -0
- package/dist/interface/runtime-budget-summary.js +157 -0
- package/dist/interface/runtime-budget-summary.js.map +1 -0
- package/dist/interface/tui/actions.d.ts +7 -0
- package/dist/interface/tui/actions.d.ts.map +1 -1
- package/dist/interface/tui/actions.js +91 -46
- package/dist/interface/tui/actions.js.map +1 -1
- package/dist/interface/tui/app-approval.d.ts +4 -0
- package/dist/interface/tui/app-approval.d.ts.map +1 -0
- package/dist/interface/tui/app-approval.js +53 -0
- package/dist/interface/tui/app-approval.js.map +1 -0
- package/dist/interface/tui/app-shell.d.ts +18 -0
- package/dist/interface/tui/app-shell.d.ts.map +1 -0
- package/dist/interface/tui/app-shell.js +47 -0
- package/dist/interface/tui/app-shell.js.map +1 -0
- package/dist/interface/tui/app.d.ts +4 -6
- package/dist/interface/tui/app.d.ts.map +1 -1
- package/dist/interface/tui/app.js +81 -77
- package/dist/interface/tui/app.js.map +1 -1
- package/dist/interface/tui/chat/scroll.d.ts.map +1 -1
- package/dist/interface/tui/chat/scroll.js +18 -8
- package/dist/interface/tui/chat/scroll.js.map +1 -1
- package/dist/interface/tui/chat/suggestions.js +19 -19
- package/dist/interface/tui/chat/suggestions.js.map +1 -1
- package/dist/interface/tui/chat.d.ts +1 -1
- package/dist/interface/tui/chat.d.ts.map +1 -1
- package/dist/interface/tui/chat.js +4 -3
- package/dist/interface/tui/chat.js.map +1 -1
- package/dist/interface/tui/dashboard.d.ts.map +1 -1
- package/dist/interface/tui/dashboard.js +2 -2
- package/dist/interface/tui/dashboard.js.map +1 -1
- package/dist/interface/tui/entry-daemon.d.ts.map +1 -1
- package/dist/interface/tui/entry-daemon.js +9 -4
- package/dist/interface/tui/entry-daemon.js.map +1 -1
- package/dist/interface/tui/entry-deps.d.ts.map +1 -1
- package/dist/interface/tui/entry-deps.js +12 -9
- package/dist/interface/tui/entry-deps.js.map +1 -1
- package/dist/interface/tui/flicker-overlay.d.ts.map +1 -1
- package/dist/interface/tui/flicker-overlay.js +5 -4
- package/dist/interface/tui/flicker-overlay.js.map +1 -1
- package/dist/interface/tui/fullscreen-chat-actions.d.ts +17 -0
- package/dist/interface/tui/fullscreen-chat-actions.d.ts.map +1 -0
- package/dist/interface/tui/fullscreen-chat-actions.js +98 -0
- package/dist/interface/tui/fullscreen-chat-actions.js.map +1 -0
- package/dist/interface/tui/fullscreen-chat-composer.d.ts +28 -0
- package/dist/interface/tui/fullscreen-chat-composer.d.ts.map +1 -0
- package/dist/interface/tui/fullscreen-chat-composer.js +385 -0
- package/dist/interface/tui/fullscreen-chat-composer.js.map +1 -0
- package/dist/interface/tui/fullscreen-chat-render-types.d.ts +68 -0
- package/dist/interface/tui/fullscreen-chat-render-types.d.ts.map +1 -0
- package/dist/interface/tui/fullscreen-chat-render-types.js +2 -0
- package/dist/interface/tui/fullscreen-chat-render-types.js.map +1 -0
- package/dist/interface/tui/fullscreen-chat-render-utils.d.ts +10 -0
- package/dist/interface/tui/fullscreen-chat-render-utils.d.ts.map +1 -0
- package/dist/interface/tui/fullscreen-chat-render-utils.js +45 -0
- package/dist/interface/tui/fullscreen-chat-render-utils.js.map +1 -0
- package/dist/interface/tui/fullscreen-chat-render.d.ts +13 -93
- package/dist/interface/tui/fullscreen-chat-render.d.ts.map +1 -1
- package/dist/interface/tui/fullscreen-chat-render.js +19 -420
- package/dist/interface/tui/fullscreen-chat-render.js.map +1 -1
- package/dist/interface/tui/fullscreen-chat.d.ts.map +1 -1
- package/dist/interface/tui/fullscreen-chat.js +2 -97
- package/dist/interface/tui/fullscreen-chat.js.map +1 -1
- package/dist/interface/tui/help-overlay.d.ts.map +1 -1
- package/dist/interface/tui/help-overlay.js +1 -1
- package/dist/interface/tui/help-overlay.js.map +1 -1
- package/dist/interface/tui/intent-recognizer.d.ts.map +1 -1
- package/dist/interface/tui/intent-recognizer.js +59 -3
- package/dist/interface/tui/intent-recognizer.js.map +1 -1
- package/dist/interface/tui/markdown-code-highlight.d.ts +7 -0
- package/dist/interface/tui/markdown-code-highlight.d.ts.map +1 -0
- package/dist/interface/tui/markdown-code-highlight.js +64 -0
- package/dist/interface/tui/markdown-code-highlight.js.map +1 -0
- package/dist/interface/tui/markdown-inline.d.ts +9 -0
- package/dist/interface/tui/markdown-inline.d.ts.map +1 -0
- package/dist/interface/tui/markdown-inline.js +86 -0
- package/dist/interface/tui/markdown-inline.js.map +1 -0
- package/dist/interface/tui/markdown-renderer-types.d.ts +16 -0
- package/dist/interface/tui/markdown-renderer-types.d.ts.map +1 -0
- package/dist/interface/tui/markdown-renderer-types.js +2 -0
- package/dist/interface/tui/markdown-renderer-types.js.map +1 -0
- package/dist/interface/tui/markdown-renderer.d.ts +4 -25
- package/dist/interface/tui/markdown-renderer.d.ts.map +1 -1
- package/dist/interface/tui/markdown-renderer.js +8 -164
- package/dist/interface/tui/markdown-renderer.js.map +1 -1
- package/dist/interface/tui/report-view.d.ts +2 -1
- package/dist/interface/tui/report-view.d.ts.map +1 -1
- package/dist/interface/tui/report-view.js +18 -7
- package/dist/interface/tui/report-view.js.map +1 -1
- package/dist/interface/tui/settings-overlay.js +4 -4
- package/dist/interface/tui/settings-overlay.js.map +1 -1
- package/dist/interface/tui/use-loop.d.ts +3 -3
- package/dist/interface/tui/use-loop.d.ts.map +1 -1
- package/dist/interface/tui/use-loop.js +18 -8
- package/dist/interface/tui/use-loop.js.map +1 -1
- package/dist/interface/usage-counter.d.ts +3 -0
- package/dist/interface/usage-counter.d.ts.map +1 -0
- package/dist/interface/usage-counter.js +2 -0
- package/dist/interface/usage-counter.js.map +1 -0
- package/dist/interface/usage-period.d.ts +2 -0
- package/dist/interface/usage-period.d.ts.map +1 -0
- package/dist/interface/usage-period.js +23 -0
- package/dist/interface/usage-period.js.map +1 -0
- package/dist/orchestrator/execution/adapter-layer.d.ts +8 -1
- package/dist/orchestrator/execution/adapter-layer.d.ts.map +1 -1
- package/dist/orchestrator/execution/adapter-layer.js.map +1 -1
- package/dist/orchestrator/execution/agent-loop/agent-loop-context-assembler.d.ts.map +1 -1
- package/dist/orchestrator/execution/agent-loop/agent-loop-context-assembler.js +19 -1
- package/dist/orchestrator/execution/agent-loop/agent-loop-context-assembler.js.map +1 -1
- package/dist/orchestrator/execution/agent-loop/agent-loop-default-profile.d.ts.map +1 -1
- package/dist/orchestrator/execution/agent-loop/agent-loop-default-profile.js +1 -4
- package/dist/orchestrator/execution/agent-loop/agent-loop-default-profile.js.map +1 -1
- package/dist/orchestrator/execution/agent-loop/agent-loop-events.d.ts +3 -0
- package/dist/orchestrator/execution/agent-loop/agent-loop-events.d.ts.map +1 -1
- package/dist/orchestrator/execution/agent-loop/agent-loop-events.js.map +1 -1
- package/dist/orchestrator/execution/agent-loop/agent-loop-model-client.d.ts.map +1 -1
- package/dist/orchestrator/execution/agent-loop/agent-loop-model-client.js +22 -3
- package/dist/orchestrator/execution/agent-loop/agent-loop-model-client.js.map +1 -1
- package/dist/orchestrator/execution/agent-loop/agent-loop-model.d.ts +5 -0
- package/dist/orchestrator/execution/agent-loop/agent-loop-model.d.ts.map +1 -1
- package/dist/orchestrator/execution/agent-loop/agent-loop-model.js.map +1 -1
- package/dist/orchestrator/execution/agent-loop/agent-loop-prompts.d.ts.map +1 -1
- package/dist/orchestrator/execution/agent-loop/agent-loop-prompts.js +1 -0
- package/dist/orchestrator/execution/agent-loop/agent-loop-prompts.js.map +1 -1
- package/dist/orchestrator/execution/agent-loop/agent-loop-result.d.ts +8 -0
- package/dist/orchestrator/execution/agent-loop/agent-loop-result.d.ts.map +1 -1
- package/dist/orchestrator/execution/agent-loop/agent-loop-session-db-store.d.ts +37 -0
- package/dist/orchestrator/execution/agent-loop/agent-loop-session-db-store.d.ts.map +1 -0
- package/dist/orchestrator/execution/agent-loop/agent-loop-session-db-store.js +206 -0
- package/dist/orchestrator/execution/agent-loop/agent-loop-session-db-store.js.map +1 -0
- package/dist/orchestrator/execution/agent-loop/agent-loop-session-factory.d.ts +1 -1
- package/dist/orchestrator/execution/agent-loop/agent-loop-session-factory.d.ts.map +1 -1
- package/dist/orchestrator/execution/agent-loop/agent-loop-session-factory.js +6 -12
- package/dist/orchestrator/execution/agent-loop/agent-loop-session-factory.js.map +1 -1
- package/dist/orchestrator/execution/agent-loop/agent-loop-session-state.d.ts +0 -6
- package/dist/orchestrator/execution/agent-loop/agent-loop-session-state.d.ts.map +1 -1
- package/dist/orchestrator/execution/agent-loop/agent-loop-session-state.js +0 -21
- package/dist/orchestrator/execution/agent-loop/agent-loop-session-state.js.map +1 -1
- package/dist/orchestrator/execution/agent-loop/agent-loop-trace-store.d.ts +0 -7
- package/dist/orchestrator/execution/agent-loop/agent-loop-trace-store.d.ts.map +1 -1
- package/dist/orchestrator/execution/agent-loop/agent-loop-trace-store.js +0 -20
- package/dist/orchestrator/execution/agent-loop/agent-loop-trace-store.js.map +1 -1
- package/dist/orchestrator/execution/agent-loop/agent-loop-workspace-snapshot.d.ts +17 -0
- package/dist/orchestrator/execution/agent-loop/agent-loop-workspace-snapshot.d.ts.map +1 -0
- package/dist/orchestrator/execution/agent-loop/agent-loop-workspace-snapshot.js +144 -0
- package/dist/orchestrator/execution/agent-loop/agent-loop-workspace-snapshot.js.map +1 -0
- package/dist/orchestrator/execution/agent-loop/anthropic-messages-agent-loop-model-client.d.ts.map +1 -1
- package/dist/orchestrator/execution/agent-loop/anthropic-messages-agent-loop-model-client.js +2 -2
- package/dist/orchestrator/execution/agent-loop/anthropic-messages-agent-loop-model-client.js.map +1 -1
- package/dist/orchestrator/execution/agent-loop/bounded-agent-loop-runner.d.ts +2 -9
- package/dist/orchestrator/execution/agent-loop/bounded-agent-loop-runner.d.ts.map +1 -1
- package/dist/orchestrator/execution/agent-loop/bounded-agent-loop-runner.js +86 -203
- package/dist/orchestrator/execution/agent-loop/bounded-agent-loop-runner.js.map +1 -1
- package/dist/orchestrator/execution/agent-loop/bounded-agent-loop-tool-observation.d.ts +11 -0
- package/dist/orchestrator/execution/agent-loop/bounded-agent-loop-tool-observation.d.ts.map +1 -0
- package/dist/orchestrator/execution/agent-loop/bounded-agent-loop-tool-observation.js +63 -0
- package/dist/orchestrator/execution/agent-loop/bounded-agent-loop-tool-observation.js.map +1 -0
- package/dist/orchestrator/execution/agent-loop/chat-agent-loop-runner.d.ts +2 -2
- package/dist/orchestrator/execution/agent-loop/chat-agent-loop-runner.d.ts.map +1 -1
- package/dist/orchestrator/execution/agent-loop/chat-agent-loop-runner.js +6 -3
- package/dist/orchestrator/execution/agent-loop/chat-agent-loop-runner.js.map +1 -1
- package/dist/orchestrator/execution/agent-loop/core-phase-runner.d.ts.map +1 -1
- package/dist/orchestrator/execution/agent-loop/core-phase-runner.js +16 -2
- package/dist/orchestrator/execution/agent-loop/core-phase-runner.js.map +1 -1
- package/dist/orchestrator/execution/agent-loop/durable-loop-control-tools.d.ts.map +1 -1
- package/dist/orchestrator/execution/agent-loop/durable-loop-control-tools.js +26 -13
- package/dist/orchestrator/execution/agent-loop/durable-loop-control-tools.js.map +1 -1
- package/dist/orchestrator/execution/agent-loop/response-item-tool-router.d.ts.map +1 -1
- package/dist/orchestrator/execution/agent-loop/response-item-tool-router.js +1 -0
- package/dist/orchestrator/execution/agent-loop/response-item-tool-router.js.map +1 -1
- package/dist/orchestrator/execution/agent-loop/response-item.d.ts +58 -55
- package/dist/orchestrator/execution/agent-loop/response-item.d.ts.map +1 -1
- package/dist/orchestrator/execution/agent-loop/response-item.js.map +1 -1
- package/dist/orchestrator/execution/agent-loop/self-protection.d.ts.map +1 -1
- package/dist/orchestrator/execution/agent-loop/self-protection.js +2 -2
- package/dist/orchestrator/execution/agent-loop/self-protection.js.map +1 -1
- package/dist/orchestrator/execution/agent-loop/task-agent-loop-context.d.ts.map +1 -1
- package/dist/orchestrator/execution/agent-loop/task-agent-loop-context.js +31 -6
- package/dist/orchestrator/execution/agent-loop/task-agent-loop-context.js.map +1 -1
- package/dist/orchestrator/execution/agent-loop/task-agent-loop-factory.js +32 -11
- package/dist/orchestrator/execution/agent-loop/task-agent-loop-factory.js.map +1 -1
- package/dist/orchestrator/execution/agent-loop/task-agent-loop-result.d.ts +27 -14
- package/dist/orchestrator/execution/agent-loop/task-agent-loop-result.d.ts.map +1 -1
- package/dist/orchestrator/execution/agent-loop/task-agent-loop-result.js +70 -8
- package/dist/orchestrator/execution/agent-loop/task-agent-loop-result.js.map +1 -1
- package/dist/orchestrator/execution/agent-loop/task-agent-loop-runner.d.ts +2 -0
- package/dist/orchestrator/execution/agent-loop/task-agent-loop-runner.d.ts.map +1 -1
- package/dist/orchestrator/execution/agent-loop/task-agent-loop-runner.js +181 -0
- package/dist/orchestrator/execution/agent-loop/task-agent-loop-runner.js.map +1 -1
- package/dist/orchestrator/execution/agent-loop/task-agent-loop-worktree.d.ts.map +1 -1
- package/dist/orchestrator/execution/agent-loop/task-agent-loop-worktree.js +27 -1
- package/dist/orchestrator/execution/agent-loop/task-agent-loop-worktree.js.map +1 -1
- package/dist/orchestrator/execution/checkpoint-manager.d.ts +0 -3
- package/dist/orchestrator/execution/checkpoint-manager.d.ts.map +1 -1
- package/dist/orchestrator/execution/checkpoint-manager.js +12 -52
- package/dist/orchestrator/execution/checkpoint-manager.js.map +1 -1
- package/dist/orchestrator/execution/context/context-budget.d.ts.map +1 -1
- package/dist/orchestrator/execution/context/context-budget.js +36 -14
- package/dist/orchestrator/execution/context/context-budget.js.map +1 -1
- package/dist/orchestrator/execution/context/issue-context-fetcher.d.ts +1 -1
- package/dist/orchestrator/execution/context/issue-context-fetcher.d.ts.map +1 -1
- package/dist/orchestrator/execution/context/issue-context-fetcher.js +11 -3
- package/dist/orchestrator/execution/context/issue-context-fetcher.js.map +1 -1
- package/dist/orchestrator/execution/pipeline-executor.d.ts.map +1 -1
- package/dist/orchestrator/execution/pipeline-executor.js +3 -5
- package/dist/orchestrator/execution/pipeline-executor.js.map +1 -1
- package/dist/orchestrator/execution/session-manager.d.ts +4 -7
- package/dist/orchestrator/execution/session-manager.d.ts.map +1 -1
- package/dist/orchestrator/execution/session-manager.js +8 -38
- package/dist/orchestrator/execution/session-manager.js.map +1 -1
- package/dist/orchestrator/execution/task/task-artifact-contract.d.ts +1 -0
- package/dist/orchestrator/execution/task/task-artifact-contract.d.ts.map +1 -1
- package/dist/orchestrator/execution/task/task-artifact-contract.js +74 -5
- package/dist/orchestrator/execution/task/task-artifact-contract.js.map +1 -1
- package/dist/orchestrator/execution/task/task-diff-capture.d.ts +2 -0
- package/dist/orchestrator/execution/task/task-diff-capture.d.ts.map +1 -1
- package/dist/orchestrator/execution/task/task-diff-capture.js +101 -11
- package/dist/orchestrator/execution/task/task-diff-capture.js.map +1 -1
- package/dist/orchestrator/execution/task/task-execution-helpers.d.ts +2 -1
- package/dist/orchestrator/execution/task/task-execution-helpers.d.ts.map +1 -1
- package/dist/orchestrator/execution/task/task-execution-helpers.js +19 -6
- package/dist/orchestrator/execution/task/task-execution-helpers.js.map +1 -1
- package/dist/orchestrator/execution/task/task-execution-types.d.ts +2 -0
- package/dist/orchestrator/execution/task/task-execution-types.d.ts.map +1 -1
- package/dist/orchestrator/execution/task/task-execution-types.js.map +1 -1
- package/dist/orchestrator/execution/task/task-executor.d.ts.map +1 -1
- package/dist/orchestrator/execution/task/task-executor.js +7 -6
- package/dist/orchestrator/execution/task/task-executor.js.map +1 -1
- package/dist/orchestrator/execution/task/task-generation-schema.d.ts +210 -0
- package/dist/orchestrator/execution/task/task-generation-schema.d.ts.map +1 -0
- package/dist/orchestrator/execution/task/task-generation-schema.js +42 -0
- package/dist/orchestrator/execution/task/task-generation-schema.js.map +1 -0
- package/dist/orchestrator/execution/task/task-generation-workspace-contract.d.ts +11 -0
- package/dist/orchestrator/execution/task/task-generation-workspace-contract.d.ts.map +1 -0
- package/dist/orchestrator/execution/task/task-generation-workspace-contract.js +149 -0
- package/dist/orchestrator/execution/task/task-generation-workspace-contract.js.map +1 -0
- package/dist/orchestrator/execution/task/task-generation.d.ts +3 -198
- package/dist/orchestrator/execution/task/task-generation.d.ts.map +1 -1
- package/dist/orchestrator/execution/task/task-generation.js +74 -88
- package/dist/orchestrator/execution/task/task-generation.js.map +1 -1
- package/dist/orchestrator/execution/task/task-history-metrics.d.ts +2 -0
- package/dist/orchestrator/execution/task/task-history-metrics.d.ts.map +1 -0
- package/dist/orchestrator/execution/task/task-history-metrics.js +13 -0
- package/dist/orchestrator/execution/task/task-history-metrics.js.map +1 -0
- package/dist/orchestrator/execution/task/task-lifecycle-policies.d.ts +29 -0
- package/dist/orchestrator/execution/task/task-lifecycle-policies.d.ts.map +1 -0
- package/dist/orchestrator/execution/task/task-lifecycle-policies.js +96 -0
- package/dist/orchestrator/execution/task/task-lifecycle-policies.js.map +1 -0
- package/dist/orchestrator/execution/task/task-lifecycle-runner.d.ts.map +1 -1
- package/dist/orchestrator/execution/task/task-lifecycle-runner.js +35 -3
- package/dist/orchestrator/execution/task/task-lifecycle-runner.js.map +1 -1
- package/dist/orchestrator/execution/task/task-lifecycle.d.ts.map +1 -1
- package/dist/orchestrator/execution/task/task-lifecycle.js +60 -52
- package/dist/orchestrator/execution/task/task-lifecycle.js.map +1 -1
- package/dist/orchestrator/execution/task/task-outcome-ledger.d.ts +2 -1
- package/dist/orchestrator/execution/task/task-outcome-ledger.d.ts.map +1 -1
- package/dist/orchestrator/execution/task/task-outcome-ledger.js +11 -72
- package/dist/orchestrator/execution/task/task-outcome-ledger.js.map +1 -1
- package/dist/orchestrator/execution/task/task-post-execution.d.ts +2 -1
- package/dist/orchestrator/execution/task/task-post-execution.d.ts.map +1 -1
- package/dist/orchestrator/execution/task/task-post-execution.js +3 -3
- package/dist/orchestrator/execution/task/task-post-execution.js.map +1 -1
- package/dist/orchestrator/execution/task/task-prompt-builder.d.ts.map +1 -1
- package/dist/orchestrator/execution/task/task-prompt-builder.js +44 -22
- package/dist/orchestrator/execution/task/task-prompt-builder.js.map +1 -1
- package/dist/orchestrator/execution/task/task-verifier-evidence.d.ts +33 -0
- package/dist/orchestrator/execution/task/task-verifier-evidence.d.ts.map +1 -0
- package/dist/orchestrator/execution/task/task-verifier-evidence.js +164 -0
- package/dist/orchestrator/execution/task/task-verifier-evidence.js.map +1 -0
- package/dist/orchestrator/execution/task/task-verifier-rules.d.ts +1 -0
- package/dist/orchestrator/execution/task/task-verifier-rules.d.ts.map +1 -1
- package/dist/orchestrator/execution/task/task-verifier-rules.js +106 -51
- package/dist/orchestrator/execution/task/task-verifier-rules.js.map +1 -1
- package/dist/orchestrator/execution/task/task-verifier-types.d.ts +2 -2
- package/dist/orchestrator/execution/task/task-verifier-types.d.ts.map +1 -1
- package/dist/orchestrator/execution/task/task-verifier-workspace-guards.d.ts +10 -0
- package/dist/orchestrator/execution/task/task-verifier-workspace-guards.d.ts.map +1 -0
- package/dist/orchestrator/execution/task/task-verifier-workspace-guards.js +65 -0
- package/dist/orchestrator/execution/task/task-verifier-workspace-guards.js.map +1 -0
- package/dist/orchestrator/execution/task/task-verifier.d.ts +3 -2
- package/dist/orchestrator/execution/task/task-verifier.d.ts.map +1 -1
- package/dist/orchestrator/execution/task/task-verifier.js +216 -212
- package/dist/orchestrator/execution/task/task-verifier.js.map +1 -1
- package/dist/orchestrator/execution/types/session.d.ts +2 -0
- package/dist/orchestrator/execution/types/session.d.ts.map +1 -1
- package/dist/orchestrator/execution/types/session.js +11 -7
- package/dist/orchestrator/execution/types/session.js.map +1 -1
- package/dist/orchestrator/execution/types/task-group.d.ts +14 -0
- package/dist/orchestrator/execution/types/task-group.d.ts.map +1 -1
- package/dist/orchestrator/execution/types/task.d.ts +49 -0
- package/dist/orchestrator/execution/types/task.d.ts.map +1 -1
- package/dist/orchestrator/execution/types/task.js +8 -0
- package/dist/orchestrator/execution/types/task.js.map +1 -1
- package/dist/orchestrator/goal/goal-dependency-graph.d.ts +7 -5
- package/dist/orchestrator/goal/goal-dependency-graph.d.ts.map +1 -1
- package/dist/orchestrator/goal/goal-dependency-graph.js +53 -18
- package/dist/orchestrator/goal/goal-dependency-graph.js.map +1 -1
- package/dist/orchestrator/goal/goal-negotiator.d.ts +5 -1
- package/dist/orchestrator/goal/goal-negotiator.d.ts.map +1 -1
- package/dist/orchestrator/goal/goal-negotiator.js +7 -6
- package/dist/orchestrator/goal/goal-negotiator.js.map +1 -1
- package/dist/orchestrator/goal/goal-refiner.d.ts.map +1 -1
- package/dist/orchestrator/goal/goal-refiner.js +15 -8
- package/dist/orchestrator/goal/goal-refiner.js.map +1 -1
- package/dist/orchestrator/goal/goal-suggest.d.ts +6 -2
- package/dist/orchestrator/goal/goal-suggest.d.ts.map +1 -1
- package/dist/orchestrator/goal/goal-suggest.js +19 -30
- package/dist/orchestrator/goal/goal-suggest.js.map +1 -1
- package/dist/orchestrator/goal/milestone-evaluator.d.ts.map +1 -1
- package/dist/orchestrator/goal/milestone-evaluator.js +65 -31
- package/dist/orchestrator/goal/milestone-evaluator.js.map +1 -1
- package/dist/orchestrator/goal/negotiator-context.d.ts.map +1 -1
- package/dist/orchestrator/goal/negotiator-context.js +68 -76
- package/dist/orchestrator/goal/negotiator-context.js.map +1 -1
- package/dist/orchestrator/goal/negotiator-feasibility.d.ts.map +1 -1
- package/dist/orchestrator/goal/negotiator-feasibility.js +2 -1
- package/dist/orchestrator/goal/negotiator-feasibility.js.map +1 -1
- package/dist/orchestrator/goal/types/dependency.d.ts +55 -0
- package/dist/orchestrator/goal/types/dependency.d.ts.map +1 -1
- package/dist/orchestrator/goal/types/dependency.js +5 -0
- package/dist/orchestrator/goal/types/dependency.js.map +1 -1
- package/dist/orchestrator/goal/types/goal-refiner.d.ts.map +1 -1
- package/dist/orchestrator/goal/types/goal-refiner.js +0 -1
- package/dist/orchestrator/goal/types/goal-refiner.js.map +1 -1
- package/dist/orchestrator/loop/checkpoint-manager-loop.d.ts.map +1 -1
- package/dist/orchestrator/loop/checkpoint-manager-loop.js +6 -9
- package/dist/orchestrator/loop/checkpoint-manager-loop.js.map +1 -1
- package/dist/orchestrator/loop/durable-loop/contracts.d.ts +2 -0
- package/dist/orchestrator/loop/durable-loop/contracts.d.ts.map +1 -1
- package/dist/orchestrator/loop/durable-loop/contracts.js.map +1 -1
- package/dist/orchestrator/loop/durable-loop/dream-review-checkpoint.js +1 -9
- package/dist/orchestrator/loop/durable-loop/dream-review-checkpoint.js.map +1 -1
- package/dist/orchestrator/loop/durable-loop/iteration-kernel-evidence-helpers.d.ts +13 -0
- package/dist/orchestrator/loop/durable-loop/iteration-kernel-evidence-helpers.d.ts.map +1 -0
- package/dist/orchestrator/loop/durable-loop/iteration-kernel-evidence-helpers.js +65 -0
- package/dist/orchestrator/loop/durable-loop/iteration-kernel-evidence-helpers.js.map +1 -0
- package/dist/orchestrator/loop/durable-loop/iteration-kernel-wait.d.ts.map +1 -1
- package/dist/orchestrator/loop/durable-loop/iteration-kernel-wait.js +1 -2
- package/dist/orchestrator/loop/durable-loop/iteration-kernel-wait.js.map +1 -1
- package/dist/orchestrator/loop/durable-loop/iteration-kernel.d.ts.map +1 -1
- package/dist/orchestrator/loop/durable-loop/iteration-kernel.js +9 -65
- package/dist/orchestrator/loop/durable-loop/iteration-kernel.js.map +1 -1
- package/dist/orchestrator/loop/durable-loop/learning.js +3 -3
- package/dist/orchestrator/loop/durable-loop/learning.js.map +1 -1
- package/dist/orchestrator/loop/durable-loop/phase-specs.d.ts +76 -66
- package/dist/orchestrator/loop/durable-loop/phase-specs.d.ts.map +1 -1
- package/dist/orchestrator/loop/durable-loop/phase-specs.js +33 -26
- package/dist/orchestrator/loop/durable-loop/phase-specs.js.map +1 -1
- package/dist/orchestrator/loop/durable-loop/task-cycle-stall.d.ts +3 -1
- package/dist/orchestrator/loop/durable-loop/task-cycle-stall.d.ts.map +1 -1
- package/dist/orchestrator/loop/durable-loop/task-cycle-stall.js +10 -4
- package/dist/orchestrator/loop/durable-loop/task-cycle-stall.js.map +1 -1
- package/dist/orchestrator/loop/durable-loop/task-cycle-wait.js +2 -3
- package/dist/orchestrator/loop/durable-loop/task-cycle-wait.js.map +1 -1
- package/dist/orchestrator/loop/durable-loop/task-cycle.d.ts +1 -4
- package/dist/orchestrator/loop/durable-loop/task-cycle.d.ts.map +1 -1
- package/dist/orchestrator/loop/durable-loop/task-cycle.js +32 -12
- package/dist/orchestrator/loop/durable-loop/task-cycle.js.map +1 -1
- package/dist/orchestrator/loop/iteration-budget.d.ts +11 -1
- package/dist/orchestrator/loop/iteration-budget.d.ts.map +1 -1
- package/dist/orchestrator/loop/iteration-budget.js +29 -11
- package/dist/orchestrator/loop/iteration-budget.js.map +1 -1
- package/dist/orchestrator/loop/loop-report-helper.d.ts.map +1 -1
- package/dist/orchestrator/loop/loop-report-helper.js +2 -0
- package/dist/orchestrator/loop/loop-report-helper.js.map +1 -1
- package/dist/orchestrator/loop/tree-loop-runner.d.ts.map +1 -1
- package/dist/orchestrator/loop/tree-loop-runner.js +18 -8
- package/dist/orchestrator/loop/tree-loop-runner.js.map +1 -1
- package/dist/orchestrator/strategy/cross-goal-portfolio.d.ts.map +1 -1
- package/dist/orchestrator/strategy/cross-goal-portfolio.js +7 -5
- package/dist/orchestrator/strategy/cross-goal-portfolio.js.map +1 -1
- package/dist/orchestrator/strategy/portfolio-manager.d.ts +7 -1
- package/dist/orchestrator/strategy/portfolio-manager.d.ts.map +1 -1
- package/dist/orchestrator/strategy/portfolio-manager.js +8 -6
- package/dist/orchestrator/strategy/portfolio-manager.js.map +1 -1
- package/dist/orchestrator/strategy/portfolio-rebalance.d.ts +6 -5
- package/dist/orchestrator/strategy/portfolio-rebalance.d.ts.map +1 -1
- package/dist/orchestrator/strategy/portfolio-rebalance.js +28 -398
- package/dist/orchestrator/strategy/portfolio-rebalance.js.map +1 -1
- package/dist/orchestrator/strategy/portfolio-wait-observation.d.ts +18 -0
- package/dist/orchestrator/strategy/portfolio-wait-observation.d.ts.map +1 -0
- package/dist/orchestrator/strategy/portfolio-wait-observation.js +377 -0
- package/dist/orchestrator/strategy/portfolio-wait-observation.js.map +1 -0
- package/dist/orchestrator/strategy/strategy-helpers.d.ts +3 -2
- package/dist/orchestrator/strategy/strategy-helpers.d.ts.map +1 -1
- package/dist/orchestrator/strategy/strategy-helpers.js +5 -17
- package/dist/orchestrator/strategy/strategy-helpers.js.map +1 -1
- package/dist/orchestrator/strategy/strategy-manager-base.d.ts.map +1 -1
- package/dist/orchestrator/strategy/strategy-manager-base.js +5 -10
- package/dist/orchestrator/strategy/strategy-manager-base.js.map +1 -1
- package/dist/orchestrator/strategy/strategy-manager.d.ts +1 -3
- package/dist/orchestrator/strategy/strategy-manager.d.ts.map +1 -1
- package/dist/orchestrator/strategy/strategy-manager.js +23 -44
- package/dist/orchestrator/strategy/strategy-manager.js.map +1 -1
- package/dist/orchestrator/strategy/strategy-template-registry.d.ts +5 -6
- package/dist/orchestrator/strategy/strategy-template-registry.d.ts.map +1 -1
- package/dist/orchestrator/strategy/strategy-template-registry.js +10 -25
- package/dist/orchestrator/strategy/strategy-template-registry.js.map +1 -1
- package/dist/orchestrator/strategy/strategy-template-state-migration.d.ts +14 -0
- package/dist/orchestrator/strategy/strategy-template-state-migration.d.ts.map +1 -0
- package/dist/orchestrator/strategy/strategy-template-state-migration.js +136 -0
- package/dist/orchestrator/strategy/strategy-template-state-migration.js.map +1 -0
- package/dist/orchestrator/strategy/strategy-template-state-store.d.ts +16 -0
- package/dist/orchestrator/strategy/strategy-template-state-store.d.ts.map +1 -0
- package/dist/orchestrator/strategy/strategy-template-state-store.js +84 -0
- package/dist/orchestrator/strategy/strategy-template-state-store.js.map +1 -0
- package/dist/orchestrator/strategy/strategy-workspace.d.ts.map +1 -1
- package/dist/orchestrator/strategy/strategy-workspace.js +6 -19
- package/dist/orchestrator/strategy/strategy-workspace.js.map +1 -1
- package/dist/orchestrator/strategy/types/cross-portfolio.d.ts +7 -6
- package/dist/orchestrator/strategy/types/cross-portfolio.d.ts.map +1 -1
- package/dist/orchestrator/strategy/types/cross-portfolio.js +2 -1
- package/dist/orchestrator/strategy/types/cross-portfolio.js.map +1 -1
- package/dist/orchestrator/strategy/types/portfolio.d.ts +1 -0
- package/dist/orchestrator/strategy/types/portfolio.d.ts.map +1 -1
- package/dist/orchestrator/strategy/types/portfolio.js +2 -1
- package/dist/orchestrator/strategy/types/portfolio.js.map +1 -1
- package/dist/orchestrator/strategy/types/strategy.d.ts +8 -3
- package/dist/orchestrator/strategy/types/strategy.d.ts.map +1 -1
- package/dist/orchestrator/strategy/types/strategy.js +25 -17
- package/dist/orchestrator/strategy/types/strategy.js.map +1 -1
- package/dist/platform/code-search/candidate-normalizer.d.ts.map +1 -1
- package/dist/platform/code-search/candidate-normalizer.js +4 -2
- package/dist/platform/code-search/candidate-normalizer.js.map +1 -1
- package/dist/platform/code-search/candidate.d.ts.map +1 -1
- package/dist/platform/code-search/candidate.js +5 -0
- package/dist/platform/code-search/candidate.js.map +1 -1
- package/dist/platform/code-search/contracts.d.ts +8 -0
- package/dist/platform/code-search/contracts.d.ts.map +1 -1
- package/dist/platform/code-search/contracts.js.map +1 -1
- package/dist/platform/code-search/indexes/file-index.d.ts.map +1 -1
- package/dist/platform/code-search/indexes/file-index.js +4 -0
- package/dist/platform/code-search/indexes/file-index.js.map +1 -1
- package/dist/platform/code-search/indexes/package-graph.d.ts.map +1 -1
- package/dist/platform/code-search/indexes/package-graph.js +5 -2
- package/dist/platform/code-search/indexes/package-graph.js.map +1 -1
- package/dist/platform/code-search/parse-position.d.ts +2 -0
- package/dist/platform/code-search/parse-position.d.ts.map +1 -0
- package/dist/platform/code-search/parse-position.js +10 -0
- package/dist/platform/code-search/parse-position.js.map +1 -0
- package/dist/platform/code-search/progressive-reader.d.ts.map +1 -1
- package/dist/platform/code-search/progressive-reader.js +58 -13
- package/dist/platform/code-search/progressive-reader.js.map +1 -1
- package/dist/platform/code-search/query-planner.d.ts.map +1 -1
- package/dist/platform/code-search/query-planner.js +4 -3
- package/dist/platform/code-search/query-planner.js.map +1 -1
- package/dist/platform/code-search/verification-retrieval.d.ts.map +1 -1
- package/dist/platform/code-search/verification-retrieval.js +2 -1
- package/dist/platform/code-search/verification-retrieval.js.map +1 -1
- package/dist/platform/corrections/cognition-memory-review.d.ts +233 -0
- package/dist/platform/corrections/cognition-memory-review.d.ts.map +1 -0
- package/dist/platform/corrections/cognition-memory-review.js +93 -0
- package/dist/platform/corrections/cognition-memory-review.js.map +1 -0
- package/dist/platform/corrections/index.d.ts +2 -0
- package/dist/platform/corrections/index.d.ts.map +1 -1
- package/dist/platform/corrections/index.js +2 -0
- package/dist/platform/corrections/index.js.map +1 -1
- package/dist/platform/corrections/memory-correction-ledger.d.ts +60 -60
- package/dist/platform/corrections/memory-governance.d.ts +6 -6
- package/dist/platform/corrections/memory-quarantine.d.ts +3 -3
- package/dist/platform/corrections/user-memory-operations.js +4 -4
- package/dist/platform/corrections/user-memory-operations.js.map +1 -1
- package/dist/platform/dream/dream-activation-artifacts.d.ts.map +1 -1
- package/dist/platform/dream/dream-activation-artifacts.js +4 -16
- package/dist/platform/dream/dream-activation-artifacts.js.map +1 -1
- package/dist/platform/dream/dream-activation.d.ts +2 -185
- package/dist/platform/dream/dream-activation.d.ts.map +1 -1
- package/dist/platform/dream/dream-activation.js +10 -57
- package/dist/platform/dream/dream-activation.js.map +1 -1
- package/dist/platform/dream/dream-analyzer.d.ts +1 -2
- package/dist/platform/dream/dream-analyzer.d.ts.map +1 -1
- package/dist/platform/dream/dream-analyzer.js +21 -59
- package/dist/platform/dream/dream-analyzer.js.map +1 -1
- package/dist/platform/dream/dream-consolidator/evidence-helpers.d.ts +12 -0
- package/dist/platform/dream/dream-consolidator/evidence-helpers.d.ts.map +1 -0
- package/dist/platform/dream/dream-consolidator/evidence-helpers.js +73 -0
- package/dist/platform/dream/dream-consolidator/evidence-helpers.js.map +1 -0
- package/dist/platform/dream/dream-consolidator/fs-metrics.d.ts.map +1 -1
- package/dist/platform/dream/dream-consolidator/fs-metrics.js +27 -38
- package/dist/platform/dream/dream-consolidator/fs-metrics.js.map +1 -1
- package/dist/platform/dream/dream-consolidator.d.ts +3 -0
- package/dist/platform/dream/dream-consolidator.d.ts.map +1 -1
- package/dist/platform/dream/dream-consolidator.js +35 -129
- package/dist/platform/dream/dream-consolidator.js.map +1 -1
- package/dist/platform/dream/dream-decision-heuristics.d.ts +421 -0
- package/dist/platform/dream/dream-decision-heuristics.d.ts.map +1 -0
- package/dist/platform/dream/dream-decision-heuristics.js +27 -0
- package/dist/platform/dream/dream-decision-heuristics.js.map +1 -0
- package/dist/platform/dream/dream-event-workflows.d.ts.map +1 -1
- package/dist/platform/dream/dream-event-workflows.js +23 -37
- package/dist/platform/dream/dream-event-workflows.js.map +1 -1
- package/dist/platform/dream/dream-importance.d.ts +1 -2
- package/dist/platform/dream/dream-importance.d.ts.map +1 -1
- package/dist/platform/dream/dream-importance.js +6 -24
- package/dist/platform/dream/dream-importance.js.map +1 -1
- package/dist/platform/dream/dream-log-collector.d.ts +4 -15
- package/dist/platform/dream/dream-log-collector.d.ts.map +1 -1
- package/dist/platform/dream/dream-log-collector.js +12 -101
- package/dist/platform/dream/dream-log-collector.js.map +1 -1
- package/dist/platform/dream/dream-schedule-suggestions.d.ts +1 -2
- package/dist/platform/dream/dream-schedule-suggestions.d.ts.map +1 -1
- package/dist/platform/dream/dream-schedule-suggestions.js +6 -20
- package/dist/platform/dream/dream-schedule-suggestions.js.map +1 -1
- package/dist/platform/dream/dream-soil-sync.d.ts.map +1 -1
- package/dist/platform/dream/dream-soil-sync.js +2 -6
- package/dist/platform/dream/dream-soil-sync.js.map +1 -1
- package/dist/platform/dream/dream-types.d.ts +269 -269
- package/dist/platform/dream/dream-types.js +2 -2
- package/dist/platform/dream/dream-types.js.map +1 -1
- package/dist/platform/dream/index.d.ts +1 -0
- package/dist/platform/dream/index.d.ts.map +1 -1
- package/dist/platform/dream/index.js +1 -0
- package/dist/platform/dream/index.js.map +1 -1
- package/dist/platform/dream/playbook-memory.d.ts +8 -8
- package/dist/platform/dream/playbook-memory.d.ts.map +1 -1
- package/dist/platform/dream/playbook-memory.js +14 -75
- package/dist/platform/dream/playbook-memory.js.map +1 -1
- package/dist/platform/dream/procedural-memory.d.ts +262 -0
- package/dist/platform/dream/procedural-memory.d.ts.map +1 -0
- package/dist/platform/dream/procedural-memory.js +78 -0
- package/dist/platform/dream/procedural-memory.js.map +1 -0
- package/dist/platform/drive/drive-schedule-state-migration.d.ts +13 -0
- package/dist/platform/drive/drive-schedule-state-migration.d.ts.map +1 -0
- package/dist/platform/drive/drive-schedule-state-migration.js +115 -0
- package/dist/platform/drive/drive-schedule-state-migration.js.map +1 -0
- package/dist/platform/drive/drive-schedule-state-store.d.ts +15 -0
- package/dist/platform/drive/drive-schedule-state-store.d.ts.map +1 -0
- package/dist/platform/drive/drive-schedule-state-store.js +84 -0
- package/dist/platform/drive/drive-schedule-state-store.js.map +1 -0
- package/dist/platform/drive/drive-scorer.d.ts +6 -6
- package/dist/platform/drive/drive-scorer.d.ts.map +1 -1
- package/dist/platform/drive/drive-scorer.js +44 -16
- package/dist/platform/drive/drive-scorer.js.map +1 -1
- package/dist/platform/drive/drive-system.d.ts +10 -8
- package/dist/platform/drive/drive-system.d.ts.map +1 -1
- package/dist/platform/drive/drive-system.js +42 -57
- package/dist/platform/drive/drive-system.js.map +1 -1
- package/dist/platform/drive/gap-calculator.d.ts.map +1 -1
- package/dist/platform/drive/gap-calculator.js +36 -8
- package/dist/platform/drive/gap-calculator.js.map +1 -1
- package/dist/platform/drive/satisficing-helpers.d.ts.map +1 -1
- package/dist/platform/drive/satisficing-helpers.js +14 -10
- package/dist/platform/drive/satisficing-helpers.js.map +1 -1
- package/dist/platform/drive/satisficing-judge.d.ts.map +1 -1
- package/dist/platform/drive/satisficing-judge.js +16 -10
- package/dist/platform/drive/satisficing-judge.js.map +1 -1
- package/dist/platform/drive/satisficing-propagation.d.ts.map +1 -1
- package/dist/platform/drive/satisficing-propagation.js +20 -16
- package/dist/platform/drive/satisficing-propagation.js.map +1 -1
- package/dist/platform/drive/stall-detector/repetitive.d.ts +28 -1
- package/dist/platform/drive/stall-detector/repetitive.d.ts.map +1 -1
- package/dist/platform/drive/stall-detector/repetitive.js.map +1 -1
- package/dist/platform/drive/stall-detector/thresholds.d.ts.map +1 -1
- package/dist/platform/drive/stall-detector/thresholds.js +2 -1
- package/dist/platform/drive/stall-detector/thresholds.js.map +1 -1
- package/dist/platform/drive/stall-detector.d.ts +7 -32
- package/dist/platform/drive/stall-detector.d.ts.map +1 -1
- package/dist/platform/drive/stall-detector.js +16 -13
- package/dist/platform/drive/stall-detector.js.map +1 -1
- package/dist/platform/drive/types/drive.d.ts +4 -0
- package/dist/platform/drive/types/drive.d.ts.map +1 -1
- package/dist/platform/drive/types/drive.js +26 -15
- package/dist/platform/drive/types/drive.js.map +1 -1
- package/dist/platform/drive/types/satisficing.js +1 -1
- package/dist/platform/drive/types/satisficing.js.map +1 -1
- package/dist/platform/knowledge/knowledge-graph-state-migration.d.ts +15 -0
- package/dist/platform/knowledge/knowledge-graph-state-migration.d.ts.map +1 -0
- package/dist/platform/knowledge/knowledge-graph-state-migration.js +137 -0
- package/dist/platform/knowledge/knowledge-graph-state-migration.js.map +1 -0
- package/dist/platform/knowledge/knowledge-graph-state-store.d.ts +38 -0
- package/dist/platform/knowledge/knowledge-graph-state-store.d.ts.map +1 -0
- package/dist/platform/knowledge/knowledge-graph-state-store.js +137 -0
- package/dist/platform/knowledge/knowledge-graph-state-store.js.map +1 -0
- package/dist/platform/knowledge/knowledge-graph.d.ts +17 -12
- package/dist/platform/knowledge/knowledge-graph.d.ts.map +1 -1
- package/dist/platform/knowledge/knowledge-graph.js +35 -44
- package/dist/platform/knowledge/knowledge-graph.js.map +1 -1
- package/dist/platform/knowledge/knowledge-manager-agent-memory.d.ts.map +1 -1
- package/dist/platform/knowledge/knowledge-manager-agent-memory.js +18 -8
- package/dist/platform/knowledge/knowledge-manager-agent-memory.js.map +1 -1
- package/dist/platform/knowledge/knowledge-manager-internals.d.ts +3 -2
- package/dist/platform/knowledge/knowledge-manager-internals.d.ts.map +1 -1
- package/dist/platform/knowledge/knowledge-manager-internals.js +8 -7
- package/dist/platform/knowledge/knowledge-manager-internals.js.map +1 -1
- package/dist/platform/knowledge/knowledge-manager-query.js +2 -2
- package/dist/platform/knowledge/knowledge-manager-query.js.map +1 -1
- package/dist/platform/knowledge/knowledge-manager-store.js +3 -3
- package/dist/platform/knowledge/knowledge-manager-store.js.map +1 -1
- package/dist/platform/knowledge/knowledge-manager.d.ts +5 -6
- package/dist/platform/knowledge/knowledge-manager.d.ts.map +1 -1
- package/dist/platform/knowledge/knowledge-manager.js +53 -27
- package/dist/platform/knowledge/knowledge-manager.js.map +1 -1
- package/dist/platform/knowledge/knowledge-memory-state-store.d.ts +17 -0
- package/dist/platform/knowledge/knowledge-memory-state-store.d.ts.map +1 -0
- package/dist/platform/knowledge/knowledge-memory-state-store.js +565 -0
- package/dist/platform/knowledge/knowledge-memory-state-store.js.map +1 -0
- package/dist/platform/knowledge/knowledge-search.d.ts.map +1 -1
- package/dist/platform/knowledge/knowledge-search.js +4 -17
- package/dist/platform/knowledge/knowledge-search.js.map +1 -1
- package/dist/platform/knowledge/learning/learning-cross-goal.d.ts +2 -2
- package/dist/platform/knowledge/learning/learning-cross-goal.d.ts.map +1 -1
- package/dist/platform/knowledge/learning/learning-feedback.d.ts +3 -3
- package/dist/platform/knowledge/learning/learning-feedback.d.ts.map +1 -1
- package/dist/platform/knowledge/learning/learning-feedback.js +3 -11
- package/dist/platform/knowledge/learning/learning-feedback.js.map +1 -1
- package/dist/platform/knowledge/learning/learning-pipeline.d.ts +4 -5
- package/dist/platform/knowledge/learning/learning-pipeline.d.ts.map +1 -1
- package/dist/platform/knowledge/learning/learning-pipeline.js +16 -33
- package/dist/platform/knowledge/learning/learning-pipeline.js.map +1 -1
- package/dist/platform/knowledge/memory/memory-compression.d.ts.map +1 -1
- package/dist/platform/knowledge/memory/memory-compression.js +19 -43
- package/dist/platform/knowledge/memory/memory-compression.js.map +1 -1
- package/dist/platform/knowledge/memory/memory-exports.d.ts +2 -1
- package/dist/platform/knowledge/memory/memory-exports.d.ts.map +1 -1
- package/dist/platform/knowledge/memory/memory-exports.js +2 -1
- package/dist/platform/knowledge/memory/memory-exports.js.map +1 -1
- package/dist/platform/knowledge/memory/memory-index.d.ts +1 -1
- package/dist/platform/knowledge/memory/memory-index.d.ts.map +1 -1
- package/dist/platform/knowledge/memory/memory-index.js +11 -115
- package/dist/platform/knowledge/memory/memory-index.js.map +1 -1
- package/dist/platform/knowledge/memory/memory-lifecycle-state-store.d.ts +51 -0
- package/dist/platform/knowledge/memory/memory-lifecycle-state-store.d.ts.map +1 -0
- package/dist/platform/knowledge/memory/memory-lifecycle-state-store.js +498 -0
- package/dist/platform/knowledge/memory/memory-lifecycle-state-store.js.map +1 -0
- package/dist/platform/knowledge/memory/memory-lifecycle-storage.d.ts.map +1 -1
- package/dist/platform/knowledge/memory/memory-lifecycle-storage.js +13 -91
- package/dist/platform/knowledge/memory/memory-lifecycle-storage.js.map +1 -1
- package/dist/platform/knowledge/memory/memory-lifecycle.d.ts +7 -9
- package/dist/platform/knowledge/memory/memory-lifecycle.d.ts.map +1 -1
- package/dist/platform/knowledge/memory/memory-lifecycle.js +14 -24
- package/dist/platform/knowledge/memory/memory-lifecycle.js.map +1 -1
- package/dist/platform/knowledge/memory/memory-persistence.d.ts +1 -27
- package/dist/platform/knowledge/memory/memory-persistence.d.ts.map +1 -1
- package/dist/platform/knowledge/memory/memory-persistence.js +0 -122
- package/dist/platform/knowledge/memory/memory-persistence.js.map +1 -1
- package/dist/platform/knowledge/memory/memory-query.d.ts.map +1 -1
- package/dist/platform/knowledge/memory/memory-query.js +3 -59
- package/dist/platform/knowledge/memory/memory-query.js.map +1 -1
- package/dist/platform/knowledge/memory/memory-selection.d.ts.map +1 -1
- package/dist/platform/knowledge/memory/memory-selection.js +7 -19
- package/dist/platform/knowledge/memory/memory-selection.js.map +1 -1
- package/dist/platform/knowledge/memory/memory-stats.d.ts.map +1 -1
- package/dist/platform/knowledge/memory/memory-stats.js +4 -5
- package/dist/platform/knowledge/memory/memory-stats.js.map +1 -1
- package/dist/platform/knowledge/transfer/knowledge-transfer-types.d.ts.map +1 -1
- package/dist/platform/knowledge/transfer/knowledge-transfer-types.js +6 -10
- package/dist/platform/knowledge/transfer/knowledge-transfer-types.js.map +1 -1
- package/dist/platform/knowledge/transfer/knowledge-transfer.d.ts +3 -2
- package/dist/platform/knowledge/transfer/knowledge-transfer.d.ts.map +1 -1
- package/dist/platform/knowledge/transfer/knowledge-transfer.js +19 -34
- package/dist/platform/knowledge/transfer/knowledge-transfer.js.map +1 -1
- package/dist/platform/knowledge/transfer/transfer-trust.d.ts +6 -5
- package/dist/platform/knowledge/transfer/transfer-trust.d.ts.map +1 -1
- package/dist/platform/knowledge/transfer/transfer-trust.js +23 -30
- package/dist/platform/knowledge/transfer/transfer-trust.js.map +1 -1
- package/dist/platform/knowledge/types/agent-memory.d.ts +204 -204
- package/dist/platform/knowledge/types/embedding.js +2 -2
- package/dist/platform/knowledge/types/embedding.js.map +1 -1
- package/dist/platform/knowledge/types/memory-lifecycle.d.ts +4 -4
- package/dist/platform/knowledge/vector-index-state-migration.d.ts +14 -0
- package/dist/platform/knowledge/vector-index-state-migration.d.ts.map +1 -0
- package/dist/platform/knowledge/vector-index-state-migration.js +132 -0
- package/dist/platform/knowledge/vector-index-state-migration.js.map +1 -0
- package/dist/platform/knowledge/vector-index-state-store.d.ts +19 -0
- package/dist/platform/knowledge/vector-index-state-store.d.ts.map +1 -0
- package/dist/platform/knowledge/vector-index-state-store.js +124 -0
- package/dist/platform/knowledge/vector-index-state-store.js.map +1 -0
- package/dist/platform/knowledge/vector-index.d.ts +11 -6
- package/dist/platform/knowledge/vector-index.d.ts.map +1 -1
- package/dist/platform/knowledge/vector-index.js +27 -37
- package/dist/platform/knowledge/vector-index.js.map +1 -1
- package/dist/platform/observation/capability-dependencies.d.ts +4 -3
- package/dist/platform/observation/capability-dependencies.d.ts.map +1 -1
- package/dist/platform/observation/capability-dependencies.js +8 -15
- package/dist/platform/observation/capability-dependencies.js.map +1 -1
- package/dist/platform/observation/capability-detector.d.ts.map +1 -1
- package/dist/platform/observation/capability-detector.js +8 -2
- package/dist/platform/observation/capability-detector.js.map +1 -1
- package/dist/platform/observation/capability-graph.d.ts +16 -0
- package/dist/platform/observation/capability-graph.d.ts.map +1 -0
- package/dist/platform/observation/capability-graph.js +387 -0
- package/dist/platform/observation/capability-graph.js.map +1 -0
- package/dist/platform/observation/capability-readiness.d.ts +13 -0
- package/dist/platform/observation/capability-readiness.d.ts.map +1 -0
- package/dist/platform/observation/capability-readiness.js +192 -0
- package/dist/platform/observation/capability-readiness.js.map +1 -0
- package/dist/platform/observation/capability-registry.d.ts +3 -3
- package/dist/platform/observation/capability-registry.d.ts.map +1 -1
- package/dist/platform/observation/capability-registry.js +5 -14
- package/dist/platform/observation/capability-registry.js.map +1 -1
- package/dist/platform/observation/data-source-adapter.js +1 -1
- package/dist/platform/observation/data-source-adapter.js.map +1 -1
- package/dist/platform/observation/dimension-pre-checker.d.ts.map +1 -1
- package/dist/platform/observation/dimension-pre-checker.js +12 -2
- package/dist/platform/observation/dimension-pre-checker.js.map +1 -1
- package/dist/platform/observation/observation-apply.d.ts.map +1 -1
- package/dist/platform/observation/observation-apply.js +2 -14
- package/dist/platform/observation/observation-apply.js.map +1 -1
- package/dist/platform/observation/observation-datasource.d.ts.map +1 -1
- package/dist/platform/observation/observation-datasource.js +2 -14
- package/dist/platform/observation/observation-datasource.js.map +1 -1
- package/dist/platform/observation/observation-engine.js +0 -2
- package/dist/platform/observation/observation-engine.js.map +1 -1
- package/dist/platform/observation/observation-value.d.ts +2 -0
- package/dist/platform/observation/observation-value.d.ts.map +1 -0
- package/dist/platform/observation/observation-value.js +18 -0
- package/dist/platform/observation/observation-value.js.map +1 -0
- package/dist/platform/observation/types/capability.d.ts +689 -0
- package/dist/platform/observation/types/capability.d.ts.map +1 -1
- package/dist/platform/observation/types/capability.js +170 -2
- package/dist/platform/observation/types/capability.js.map +1 -1
- package/dist/platform/observation/types/data-source.d.ts +122 -25
- package/dist/platform/observation/types/data-source.d.ts.map +1 -1
- package/dist/platform/observation/types/data-source.js +17 -9
- package/dist/platform/observation/types/data-source.js.map +1 -1
- package/dist/platform/profile/governed-memory.d.ts +667 -0
- package/dist/platform/profile/governed-memory.d.ts.map +1 -0
- package/dist/platform/profile/governed-memory.js +535 -0
- package/dist/platform/profile/governed-memory.js.map +1 -0
- package/dist/platform/profile/profile-change-proposal.d.ts +91 -89
- package/dist/platform/profile/profile-change-proposal.d.ts.map +1 -1
- package/dist/platform/profile/profile-change-proposal.js +134 -19
- package/dist/platform/profile/profile-change-proposal.js.map +1 -1
- package/dist/platform/profile/relationship-profile.d.ts +51 -51
- package/dist/platform/profile/relationship-profile.d.ts.map +1 -1
- package/dist/platform/profile/relationship-profile.js +3 -2
- package/dist/platform/profile/relationship-profile.js.map +1 -1
- package/dist/platform/profile/retrieval-context.d.ts +16 -0
- package/dist/platform/profile/retrieval-context.d.ts.map +1 -1
- package/dist/platform/profile/retrieval-context.js +17 -0
- package/dist/platform/profile/retrieval-context.js.map +1 -1
- package/dist/platform/profile/user-md-profile-import.d.ts +6 -6
- package/dist/platform/soil/compiled-memory-projections.js +6 -6
- package/dist/platform/soil/compiled-memory-projections.js.map +1 -1
- package/dist/platform/soil/content-projections.js +12 -12
- package/dist/platform/soil/content-projections.js.map +1 -1
- package/dist/platform/soil/contracts.d.ts +416 -387
- package/dist/platform/soil/contracts.d.ts.map +1 -1
- package/dist/platform/soil/contracts.js +23 -3
- package/dist/platform/soil/contracts.js.map +1 -1
- package/dist/platform/soil/doctor.d.ts +0 -1
- package/dist/platform/soil/doctor.d.ts.map +1 -1
- package/dist/platform/soil/doctor.js +3 -17
- package/dist/platform/soil/doctor.js.map +1 -1
- package/dist/platform/soil/frontmatter.js +1 -1
- package/dist/platform/soil/frontmatter.js.map +1 -1
- package/dist/platform/soil/importer.d.ts +6 -6
- package/dist/platform/soil/index-store.d.ts.map +1 -1
- package/dist/platform/soil/index-store.js +6 -7
- package/dist/platform/soil/index-store.js.map +1 -1
- package/dist/platform/soil/projections.d.ts.map +1 -1
- package/dist/platform/soil/projections.js +8 -4
- package/dist/platform/soil/projections.js.map +1 -1
- package/dist/platform/soil/runtime-rebuild.d.ts.map +1 -1
- package/dist/platform/soil/runtime-rebuild.js +17 -23
- package/dist/platform/soil/runtime-rebuild.js.map +1 -1
- package/dist/platform/soil/source-paths.d.ts +2 -0
- package/dist/platform/soil/source-paths.d.ts.map +1 -0
- package/dist/platform/soil/source-paths.js +25 -0
- package/dist/platform/soil/source-paths.js.map +1 -0
- package/dist/platform/soil/sqlite-repository-helpers.d.ts.map +1 -1
- package/dist/platform/soil/sqlite-repository-helpers.js +7 -3
- package/dist/platform/soil/sqlite-repository-helpers.js.map +1 -1
- package/dist/platform/soil/sqlite-repository-search.d.ts.map +1 -1
- package/dist/platform/soil/sqlite-repository-search.js +5 -1
- package/dist/platform/soil/sqlite-repository-search.js.map +1 -1
- package/dist/platform/soil/types.d.ts +19 -18
- package/dist/platform/soil/types.d.ts.map +1 -1
- package/dist/platform/soil/types.js +58 -16
- package/dist/platform/soil/types.js.map +1 -1
- package/dist/platform/time/time-horizon-engine.d.ts.map +1 -1
- package/dist/platform/time/time-horizon-engine.js +8 -3
- package/dist/platform/time/time-horizon-engine.js.map +1 -1
- package/dist/platform/traits/character-policy.d.ts +4 -0
- package/dist/platform/traits/character-policy.d.ts.map +1 -0
- package/dist/platform/traits/character-policy.js +10 -0
- package/dist/platform/traits/character-policy.js.map +1 -0
- package/dist/platform/traits/curiosity-engine.d.ts +5 -26
- package/dist/platform/traits/curiosity-engine.d.ts.map +1 -1
- package/dist/platform/traits/curiosity-engine.js +29 -203
- package/dist/platform/traits/curiosity-engine.js.map +1 -1
- package/dist/platform/traits/curiosity-triggers.d.ts +16 -0
- package/dist/platform/traits/curiosity-triggers.d.ts.map +1 -0
- package/dist/platform/traits/curiosity-triggers.js +187 -0
- package/dist/platform/traits/curiosity-triggers.js.map +1 -0
- package/dist/platform/traits/ethics-gate.d.ts +5 -4
- package/dist/platform/traits/ethics-gate.d.ts.map +1 -1
- package/dist/platform/traits/ethics-gate.js +11 -17
- package/dist/platform/traits/ethics-gate.js.map +1 -1
- package/dist/platform/traits/trust-manager.d.ts +5 -2
- package/dist/platform/traits/trust-manager.d.ts.map +1 -1
- package/dist/platform/traits/trust-manager.js +11 -20
- package/dist/platform/traits/trust-manager.js.map +1 -1
- package/dist/platform/traits/types/curiosity.d.ts +12 -12
- package/dist/platform/traits/types/curiosity.d.ts.map +1 -1
- package/dist/platform/traits/types/curiosity.js +24 -11
- package/dist/platform/traits/types/curiosity.js.map +1 -1
- package/dist/platform/traits/types/guardrail.d.ts +6 -6
- package/dist/prompt/gateway.d.ts +2 -2
- package/dist/prompt/gateway.d.ts.map +1 -1
- package/dist/prompt/gateway.js +4 -3
- package/dist/prompt/gateway.js.map +1 -1
- package/dist/prompt/purposes/dream.d.ts.map +1 -1
- package/dist/prompt/purposes/dream.js +3 -2
- package/dist/prompt/purposes/dream.js.map +1 -1
- package/dist/prompt/purposes/verification.d.ts +2 -2
- package/dist/reflection/cognition-writeback-evaluator.d.ts +10 -0
- package/dist/reflection/cognition-writeback-evaluator.d.ts.map +1 -0
- package/dist/reflection/cognition-writeback-evaluator.js +49 -0
- package/dist/reflection/cognition-writeback-evaluator.js.map +1 -0
- package/dist/reflection/cognition-writeback-queue.d.ts +835 -0
- package/dist/reflection/cognition-writeback-queue.d.ts.map +1 -0
- package/dist/reflection/cognition-writeback-queue.js +198 -0
- package/dist/reflection/cognition-writeback-queue.js.map +1 -0
- package/dist/reflection/dream-consolidation.d.ts +4 -0
- package/dist/reflection/dream-consolidation.d.ts.map +1 -1
- package/dist/reflection/dream-consolidation.js +28 -8
- package/dist/reflection/dream-consolidation.js.map +1 -1
- package/dist/reflection/evening-catchup.d.ts.map +1 -1
- package/dist/reflection/evening-catchup.js +21 -13
- package/dist/reflection/evening-catchup.js.map +1 -1
- package/dist/reflection/index.d.ts +4 -0
- package/dist/reflection/index.d.ts.map +1 -1
- package/dist/reflection/index.js +2 -0
- package/dist/reflection/index.js.map +1 -1
- package/dist/reflection/morning-planning.d.ts.map +1 -1
- package/dist/reflection/morning-planning.js +17 -6
- package/dist/reflection/morning-planning.js.map +1 -1
- package/dist/reflection/reflection-profile-surface.d.ts +8 -0
- package/dist/reflection/reflection-profile-surface.d.ts.map +1 -0
- package/dist/reflection/reflection-profile-surface.js +20 -0
- package/dist/reflection/reflection-profile-surface.js.map +1 -0
- package/dist/reflection/reflection-report-state-migration.d.ts +14 -0
- package/dist/reflection/reflection-report-state-migration.d.ts.map +1 -0
- package/dist/reflection/reflection-report-state-migration.js +169 -0
- package/dist/reflection/reflection-report-state-migration.js.map +1 -0
- package/dist/reflection/reflection-report-state-store.d.ts +23 -0
- package/dist/reflection/reflection-report-state-store.d.ts.map +1 -0
- package/dist/reflection/reflection-report-state-store.js +90 -0
- package/dist/reflection/reflection-report-state-store.js.map +1 -0
- package/dist/reflection/reflection-utils.d.ts +7 -1
- package/dist/reflection/reflection-utils.d.ts.map +1 -1
- package/dist/reflection/reflection-utils.js +24 -7
- package/dist/reflection/reflection-utils.js.map +1 -1
- package/dist/reflection/types.d.ts +16 -4
- package/dist/reflection/types.d.ts.map +1 -1
- package/dist/reflection/types.js +14 -9
- package/dist/reflection/types.js.map +1 -1
- package/dist/reflection/weekly-review.d.ts.map +1 -1
- package/dist/reflection/weekly-review.js +29 -8
- package/dist/reflection/weekly-review.js.map +1 -1
- package/dist/reporting/report-formatters.d.ts +1 -1
- package/dist/reporting/report-formatters.d.ts.map +1 -1
- package/dist/reporting/report-formatters.js +46 -17
- package/dist/reporting/report-formatters.js.map +1 -1
- package/dist/reporting/report-summary-builders.d.ts +16 -0
- package/dist/reporting/report-summary-builders.d.ts.map +1 -0
- package/dist/reporting/report-summary-builders.js +125 -0
- package/dist/reporting/report-summary-builders.js.map +1 -0
- package/dist/reporting/reporting-engine.d.ts +1 -1
- package/dist/reporting/reporting-engine.d.ts.map +1 -1
- package/dist/reporting/reporting-engine.js +11 -132
- package/dist/reporting/reporting-engine.js.map +1 -1
- package/dist/reporting/reporting-types.d.ts +7 -0
- package/dist/reporting/reporting-types.d.ts.map +1 -1
- package/dist/reporting/types/report.d.ts +5 -0
- package/dist/reporting/types/report.d.ts.map +1 -1
- package/dist/reporting/types/report.js +1 -0
- package/dist/reporting/types/report.js.map +1 -1
- package/dist/runtime/approval-broker.d.ts +8 -2
- package/dist/runtime/approval-broker.d.ts.map +1 -1
- package/dist/runtime/approval-broker.js +87 -7
- package/dist/runtime/approval-broker.js.map +1 -1
- package/dist/runtime/assets/checksum.d.ts +2 -0
- package/dist/runtime/assets/checksum.d.ts.map +1 -0
- package/dist/runtime/assets/checksum.js +44 -0
- package/dist/runtime/assets/checksum.js.map +1 -0
- package/dist/runtime/assets/index.d.ts +4 -0
- package/dist/runtime/assets/index.d.ts.map +1 -0
- package/dist/runtime/assets/index.js +4 -0
- package/dist/runtime/assets/index.js.map +1 -0
- package/dist/runtime/assets/registry.d.ts +16 -0
- package/dist/runtime/assets/registry.d.ts.map +1 -0
- package/dist/runtime/assets/registry.js +105 -0
- package/dist/runtime/assets/registry.js.map +1 -0
- package/dist/runtime/assets/types.d.ts +233 -0
- package/dist/runtime/assets/types.d.ts.map +1 -0
- package/dist/runtime/assets/types.js +92 -0
- package/dist/runtime/assets/types.js.map +1 -0
- package/dist/runtime/attention/attention-admission.d.ts +29 -0
- package/dist/runtime/attention/attention-admission.d.ts.map +1 -0
- package/dist/runtime/attention/attention-admission.js +92 -0
- package/dist/runtime/attention/attention-admission.js.map +1 -0
- package/dist/runtime/attention/attention-agenda.d.ts +21 -0
- package/dist/runtime/attention/attention-agenda.d.ts.map +1 -0
- package/dist/runtime/attention/attention-agenda.js +539 -0
- package/dist/runtime/attention/attention-agenda.js.map +1 -0
- package/dist/runtime/attention/attention-clustering.d.ts +54 -0
- package/dist/runtime/attention/attention-clustering.d.ts.map +1 -0
- package/dist/runtime/attention/attention-clustering.js +243 -0
- package/dist/runtime/attention/attention-clustering.js.map +1 -0
- package/dist/runtime/attention/attention-continuity.d.ts +609 -0
- package/dist/runtime/attention/attention-continuity.d.ts.map +1 -0
- package/dist/runtime/attention/attention-continuity.js +414 -0
- package/dist/runtime/attention/attention-continuity.js.map +1 -0
- package/dist/runtime/attention/attention-cycle.d.ts +56 -0
- package/dist/runtime/attention/attention-cycle.d.ts.map +1 -0
- package/dist/runtime/attention/attention-cycle.js +266 -0
- package/dist/runtime/attention/attention-cycle.js.map +1 -0
- package/dist/runtime/attention/attention-decomposition.d.ts +15 -0
- package/dist/runtime/attention/attention-decomposition.d.ts.map +1 -0
- package/dist/runtime/attention/attention-decomposition.js +157 -0
- package/dist/runtime/attention/attention-decomposition.js.map +1 -0
- package/dist/runtime/attention/attention-diagnostics.d.ts +122 -0
- package/dist/runtime/attention/attention-diagnostics.d.ts.map +1 -0
- package/dist/runtime/attention/attention-diagnostics.js +101 -0
- package/dist/runtime/attention/attention-diagnostics.js.map +1 -0
- package/dist/runtime/attention/attention-feedback.d.ts +58 -0
- package/dist/runtime/attention/attention-feedback.d.ts.map +1 -0
- package/dist/runtime/attention/attention-feedback.js +212 -0
- package/dist/runtime/attention/attention-feedback.js.map +1 -0
- package/dist/runtime/attention/attention-input.d.ts +673 -0
- package/dist/runtime/attention/attention-input.d.ts.map +1 -0
- package/dist/runtime/attention/attention-input.js +439 -0
- package/dist/runtime/attention/attention-input.js.map +1 -0
- package/dist/runtime/attention/attention-metabolism-types.d.ts +222 -0
- package/dist/runtime/attention/attention-metabolism-types.d.ts.map +1 -0
- package/dist/runtime/attention/attention-metabolism-types.js +2 -0
- package/dist/runtime/attention/attention-metabolism-types.js.map +1 -0
- package/dist/runtime/attention/attention-metabolism.d.ts +21 -0
- package/dist/runtime/attention/attention-metabolism.d.ts.map +1 -0
- package/dist/runtime/attention/attention-metabolism.js +1351 -0
- package/dist/runtime/attention/attention-metabolism.js.map +1 -0
- package/dist/runtime/attention/attention-promotion.d.ts +15 -0
- package/dist/runtime/attention/attention-promotion.d.ts.map +1 -0
- package/dist/runtime/attention/attention-promotion.js +110 -0
- package/dist/runtime/attention/attention-promotion.js.map +1 -0
- package/dist/runtime/attention/attention-refs.d.ts +12 -0
- package/dist/runtime/attention/attention-refs.d.ts.map +1 -0
- package/dist/runtime/attention/attention-refs.js +46 -0
- package/dist/runtime/attention/attention-refs.js.map +1 -0
- package/dist/runtime/attention/attention-scope.d.ts +33 -0
- package/dist/runtime/attention/attention-scope.d.ts.map +1 -0
- package/dist/runtime/attention/attention-scope.js +215 -0
- package/dist/runtime/attention/attention-scope.js.map +1 -0
- package/dist/runtime/attention/attention-semantic.d.ts +65 -0
- package/dist/runtime/attention/attention-semantic.d.ts.map +1 -0
- package/dist/runtime/attention/attention-semantic.js +102 -0
- package/dist/runtime/attention/attention-semantic.js.map +1 -0
- package/dist/runtime/attention/direct-path-inventory.d.ts +25 -0
- package/dist/runtime/attention/direct-path-inventory.d.ts.map +1 -0
- package/dist/runtime/attention/direct-path-inventory.js +377 -0
- package/dist/runtime/attention/direct-path-inventory.js.map +1 -0
- package/dist/runtime/attention/feedback-ingestion.d.ts +2236 -0
- package/dist/runtime/attention/feedback-ingestion.d.ts.map +1 -0
- package/dist/runtime/attention/feedback-ingestion.js +568 -0
- package/dist/runtime/attention/feedback-ingestion.js.map +1 -0
- package/dist/runtime/attention/index.d.ts +31 -0
- package/dist/runtime/attention/index.d.ts.map +1 -0
- package/dist/runtime/attention/index.js +16 -0
- package/dist/runtime/attention/index.js.map +1 -0
- package/dist/runtime/attention/proactive-policy.d.ts +200 -0
- package/dist/runtime/attention/proactive-policy.d.ts.map +1 -0
- package/dist/runtime/attention/proactive-policy.js +133 -0
- package/dist/runtime/attention/proactive-policy.js.map +1 -0
- package/dist/runtime/attention/surface-delivery.d.ts +215 -0
- package/dist/runtime/attention/surface-delivery.d.ts.map +1 -0
- package/dist/runtime/attention/surface-delivery.js +232 -0
- package/dist/runtime/attention/surface-delivery.js.map +1 -0
- package/dist/runtime/builtin-integrations.d.ts +4 -0
- package/dist/runtime/builtin-integrations.d.ts.map +1 -1
- package/dist/runtime/builtin-integrations.js +29 -0
- package/dist/runtime/builtin-integrations.js.map +1 -1
- package/dist/runtime/capability-execution-resolver.d.ts +9 -0
- package/dist/runtime/capability-execution-resolver.d.ts.map +1 -0
- package/dist/runtime/capability-execution-resolver.js +92 -0
- package/dist/runtime/capability-execution-resolver.js.map +1 -0
- package/dist/runtime/capability-operation-planner.d.ts +81 -0
- package/dist/runtime/capability-operation-planner.d.ts.map +1 -0
- package/dist/runtime/capability-operation-planner.js +481 -0
- package/dist/runtime/capability-operation-planner.js.map +1 -0
- package/dist/runtime/change-detector.d.ts.map +1 -1
- package/dist/runtime/change-detector.js +17 -2
- package/dist/runtime/change-detector.js.map +1 -1
- package/dist/runtime/channels/http-post.d.ts +5 -1
- package/dist/runtime/channels/http-post.d.ts.map +1 -1
- package/dist/runtime/channels/http-post.js +65 -9
- package/dist/runtime/channels/http-post.js.map +1 -1
- package/dist/runtime/cognition/audit-sink.d.ts +37 -0
- package/dist/runtime/cognition/audit-sink.d.ts.map +1 -0
- package/dist/runtime/cognition/audit-sink.js +108 -0
- package/dist/runtime/cognition/audit-sink.js.map +1 -0
- package/dist/runtime/cognition/cloud-boundary.d.ts +308 -0
- package/dist/runtime/cognition/cloud-boundary.d.ts.map +1 -0
- package/dist/runtime/cognition/cloud-boundary.js +114 -0
- package/dist/runtime/cognition/cloud-boundary.js.map +1 -0
- package/dist/runtime/cognition/companion-cognition-service.d.ts +18 -0
- package/dist/runtime/cognition/companion-cognition-service.d.ts.map +1 -0
- package/dist/runtime/cognition/companion-cognition-service.js +224 -0
- package/dist/runtime/cognition/companion-cognition-service.js.map +1 -0
- package/dist/runtime/cognition/contracts.d.ts +19901 -0
- package/dist/runtime/cognition/contracts.d.ts.map +1 -0
- package/dist/runtime/cognition/contracts.js +559 -0
- package/dist/runtime/cognition/contracts.js.map +1 -0
- package/dist/runtime/cognition/index.d.ts +13 -0
- package/dist/runtime/cognition/index.d.ts.map +1 -0
- package/dist/runtime/cognition/index.js +9 -0
- package/dist/runtime/cognition/index.js.map +1 -0
- package/dist/runtime/cognition/memory-context.d.ts +19 -0
- package/dist/runtime/cognition/memory-context.d.ts.map +1 -0
- package/dist/runtime/cognition/memory-context.js +187 -0
- package/dist/runtime/cognition/memory-context.js.map +1 -0
- package/dist/runtime/cognition/ports.d.ts +11 -0
- package/dist/runtime/cognition/ports.d.ts.map +1 -0
- package/dist/runtime/cognition/ports.js +2 -0
- package/dist/runtime/cognition/ports.js.map +1 -0
- package/dist/runtime/cognition/situation.d.ts +6 -0
- package/dist/runtime/cognition/situation.d.ts.map +1 -0
- package/dist/runtime/cognition/situation.js +66 -0
- package/dist/runtime/cognition/situation.js.map +1 -0
- package/dist/runtime/cognition/tool-authority.d.ts +21 -0
- package/dist/runtime/cognition/tool-authority.d.ts.map +1 -0
- package/dist/runtime/cognition/tool-authority.js +56 -0
- package/dist/runtime/cognition/tool-authority.js.map +1 -0
- package/dist/runtime/cognition/writeback.d.ts +17 -0
- package/dist/runtime/cognition/writeback.d.ts.map +1 -0
- package/dist/runtime/cognition/writeback.js +40 -0
- package/dist/runtime/cognition/writeback.js.map +1 -0
- package/dist/runtime/companion-state-reducer.d.ts +10 -0
- package/dist/runtime/companion-state-reducer.d.ts.map +1 -0
- package/dist/runtime/companion-state-reducer.js +601 -0
- package/dist/runtime/companion-state-reducer.js.map +1 -0
- package/dist/runtime/companion-state-runtime-selectors.d.ts +44 -0
- package/dist/runtime/companion-state-runtime-selectors.d.ts.map +1 -0
- package/dist/runtime/companion-state-runtime-selectors.js +308 -0
- package/dist/runtime/companion-state-runtime-selectors.js.map +1 -0
- package/dist/runtime/confirmation-decision.d.ts +2 -2
- package/dist/runtime/confirmation-decision.d.ts.map +1 -1
- package/dist/runtime/confirmation-decision.js +3 -2
- package/dist/runtime/confirmation-decision.js.map +1 -1
- package/dist/runtime/control/admission-policy.d.ts +1228 -0
- package/dist/runtime/control/admission-policy.d.ts.map +1 -0
- package/dist/runtime/control/admission-policy.js +455 -0
- package/dist/runtime/control/admission-policy.js.map +1 -0
- package/dist/runtime/control/autonomy-governor.d.ts +1345 -0
- package/dist/runtime/control/autonomy-governor.d.ts.map +1 -0
- package/dist/runtime/control/autonomy-governor.js +1030 -0
- package/dist/runtime/control/autonomy-governor.js.map +1 -0
- package/dist/runtime/control/autonomy-ttl.d.ts +4 -0
- package/dist/runtime/control/autonomy-ttl.d.ts.map +1 -0
- package/dist/runtime/control/autonomy-ttl.js +8 -0
- package/dist/runtime/control/autonomy-ttl.js.map +1 -0
- package/dist/runtime/control/capability-status-projection.d.ts +987 -0
- package/dist/runtime/control/capability-status-projection.d.ts.map +1 -0
- package/dist/runtime/control/capability-status-projection.js +384 -0
- package/dist/runtime/control/capability-status-projection.js.map +1 -0
- package/dist/runtime/control/companion-action-projection.d.ts +640 -0
- package/dist/runtime/control/companion-action-projection.d.ts.map +1 -0
- package/dist/runtime/control/companion-action-projection.js +304 -0
- package/dist/runtime/control/companion-action-projection.js.map +1 -0
- package/dist/runtime/control/daemon-runtime-control-executor.d.ts.map +1 -1
- package/dist/runtime/control/daemon-runtime-control-executor.js +2 -3
- package/dist/runtime/control/daemon-runtime-control-executor.js.map +1 -1
- package/dist/runtime/control/index.d.ts +14 -1
- package/dist/runtime/control/index.d.ts.map +1 -1
- package/dist/runtime/control/index.js +7 -0
- package/dist/runtime/control/index.js.map +1 -1
- package/dist/runtime/control/internal-autonomy-default.d.ts +163 -0
- package/dist/runtime/control/internal-autonomy-default.d.ts.map +1 -0
- package/dist/runtime/control/internal-autonomy-default.js +379 -0
- package/dist/runtime/control/internal-autonomy-default.js.map +1 -0
- package/dist/runtime/control/runtime-control-intent.d.ts +4 -0
- package/dist/runtime/control/runtime-control-intent.d.ts.map +1 -1
- package/dist/runtime/control/runtime-control-intent.js +29 -6
- package/dist/runtime/control/runtime-control-intent.js.map +1 -1
- package/dist/runtime/control/runtime-control-messages.d.ts +5 -0
- package/dist/runtime/control/runtime-control-messages.d.ts.map +1 -0
- package/dist/runtime/control/runtime-control-messages.js +11 -0
- package/dist/runtime/control/runtime-control-messages.js.map +1 -0
- package/dist/runtime/control/runtime-control-permission-grants.d.ts +16 -0
- package/dist/runtime/control/runtime-control-permission-grants.d.ts.map +1 -0
- package/dist/runtime/control/runtime-control-permission-grants.js +125 -0
- package/dist/runtime/control/runtime-control-permission-grants.js.map +1 -0
- package/dist/runtime/control/runtime-control-result-routing.d.ts +1 -0
- package/dist/runtime/control/runtime-control-result-routing.d.ts.map +1 -1
- package/dist/runtime/control/runtime-control-result-routing.js +1 -1
- package/dist/runtime/control/runtime-control-result-routing.js.map +1 -1
- package/dist/runtime/control/runtime-control-service.d.ts +74 -1
- package/dist/runtime/control/runtime-control-service.d.ts.map +1 -1
- package/dist/runtime/control/runtime-control-service.js +1084 -15
- package/dist/runtime/control/runtime-control-service.js.map +1 -1
- package/dist/runtime/control/runtime-target-resolver.d.ts.map +1 -1
- package/dist/runtime/control/runtime-target-resolver.js +54 -8
- package/dist/runtime/control/runtime-target-resolver.js.map +1 -1
- package/dist/runtime/conversational-approval-decision.d.ts +2 -2
- package/dist/runtime/daemon/browser-backpressure-policy.d.ts +23 -0
- package/dist/runtime/daemon/browser-backpressure-policy.d.ts.map +1 -0
- package/dist/runtime/daemon/browser-backpressure-policy.js +94 -0
- package/dist/runtime/daemon/browser-backpressure-policy.js.map +1 -0
- package/dist/runtime/daemon/client.d.ts +2 -0
- package/dist/runtime/daemon/client.d.ts.map +1 -1
- package/dist/runtime/daemon/client.js +64 -24
- package/dist/runtime/daemon/client.js.map +1 -1
- package/dist/runtime/daemon/config-json.d.ts +5 -0
- package/dist/runtime/daemon/config-json.d.ts.map +1 -0
- package/dist/runtime/daemon/config-json.js +19 -0
- package/dist/runtime/daemon/config-json.js.map +1 -0
- package/dist/runtime/daemon/maintenance.d.ts +12 -2
- package/dist/runtime/daemon/maintenance.d.ts.map +1 -1
- package/dist/runtime/daemon/maintenance.js +59 -22
- package/dist/runtime/daemon/maintenance.js.map +1 -1
- package/dist/runtime/daemon/persistence.d.ts +1 -1
- package/dist/runtime/daemon/persistence.d.ts.map +1 -1
- package/dist/runtime/daemon/persistence.js +10 -20
- package/dist/runtime/daemon/persistence.js.map +1 -1
- package/dist/runtime/daemon/resident-attention-orchestrator.d.ts +35 -0
- package/dist/runtime/daemon/resident-attention-orchestrator.d.ts.map +1 -0
- package/dist/runtime/daemon/resident-attention-orchestrator.js +495 -0
- package/dist/runtime/daemon/resident-attention-orchestrator.js.map +1 -0
- package/dist/runtime/daemon/runner-bootstrap.d.ts.map +1 -1
- package/dist/runtime/daemon/runner-bootstrap.js +8 -6
- package/dist/runtime/daemon/runner-bootstrap.js.map +1 -1
- package/dist/runtime/daemon/runner-commands.d.ts +6 -6
- package/dist/runtime/daemon/runner-commands.d.ts.map +1 -1
- package/dist/runtime/daemon/runner-commands.js +10 -6
- package/dist/runtime/daemon/runner-commands.js.map +1 -1
- package/dist/runtime/daemon/runner-goal-cycle.d.ts.map +1 -1
- package/dist/runtime/daemon/runner-goal-cycle.js +4 -1
- package/dist/runtime/daemon/runner-goal-cycle.js.map +1 -1
- package/dist/runtime/daemon/runner-recovery.d.ts +2 -2
- package/dist/runtime/daemon/runner-recovery.d.ts.map +1 -1
- package/dist/runtime/daemon/runner-recovery.js +82 -88
- package/dist/runtime/daemon/runner-recovery.js.map +1 -1
- package/dist/runtime/daemon/runner-resident-curiosity.d.ts +6 -4
- package/dist/runtime/daemon/runner-resident-curiosity.d.ts.map +1 -1
- package/dist/runtime/daemon/runner-resident-curiosity.js +125 -20
- package/dist/runtime/daemon/runner-resident-curiosity.js.map +1 -1
- package/dist/runtime/daemon/runner-resident-dream.d.ts +2 -3
- package/dist/runtime/daemon/runner-resident-dream.d.ts.map +1 -1
- package/dist/runtime/daemon/runner-resident-dream.js +4 -14
- package/dist/runtime/daemon/runner-resident-dream.js.map +1 -1
- package/dist/runtime/daemon/runner-resident-proactive.d.ts +14 -3
- package/dist/runtime/daemon/runner-resident-proactive.d.ts.map +1 -1
- package/dist/runtime/daemon/runner-resident-proactive.js +312 -23
- package/dist/runtime/daemon/runner-resident-proactive.js.map +1 -1
- package/dist/runtime/daemon/runner-resident-shared.d.ts +25 -0
- package/dist/runtime/daemon/runner-resident-shared.d.ts.map +1 -1
- package/dist/runtime/daemon/runner-resident-shared.js +57 -12
- package/dist/runtime/daemon/runner-resident-shared.js.map +1 -1
- package/dist/runtime/daemon/runner-resident.d.ts +1 -1
- package/dist/runtime/daemon/runner-resident.d.ts.map +1 -1
- package/dist/runtime/daemon/runner-resident.js +1 -1
- package/dist/runtime/daemon/runner-resident.js.map +1 -1
- package/dist/runtime/daemon/runner-startup.d.ts +2 -1
- package/dist/runtime/daemon/runner-startup.d.ts.map +1 -1
- package/dist/runtime/daemon/runner-startup.js +19 -14
- package/dist/runtime/daemon/runner-startup.js.map +1 -1
- package/dist/runtime/daemon/runner.d.ts +28 -14
- package/dist/runtime/daemon/runner.d.ts.map +1 -1
- package/dist/runtime/daemon/runner.js +30 -20
- package/dist/runtime/daemon/runner.js.map +1 -1
- package/dist/runtime/daemon/runtime-ownership.d.ts +8 -0
- package/dist/runtime/daemon/runtime-ownership.d.ts.map +1 -1
- package/dist/runtime/daemon/runtime-ownership.js +157 -18
- package/dist/runtime/daemon/runtime-ownership.js.map +1 -1
- package/dist/runtime/daemon/runtime-root.d.ts.map +1 -1
- package/dist/runtime/daemon/runtime-root.js +13 -17
- package/dist/runtime/daemon/runtime-root.js.map +1 -1
- package/dist/runtime/daemon/types.d.ts +18 -4
- package/dist/runtime/daemon/types.d.ts.map +1 -1
- package/dist/runtime/daemon/types.js +8 -1
- package/dist/runtime/daemon/types.js.map +1 -1
- package/dist/runtime/daemon/wait-deadline-resolver.d.ts +9 -2
- package/dist/runtime/daemon/wait-deadline-resolver.d.ts.map +1 -1
- package/dist/runtime/daemon/wait-deadline-resolver.js +13 -12
- package/dist/runtime/daemon/wait-deadline-resolver.js.map +1 -1
- package/dist/runtime/decision/companion-behavior-eval-contract.d.ts +645 -0
- package/dist/runtime/decision/companion-behavior-eval-contract.d.ts.map +1 -0
- package/dist/runtime/decision/companion-behavior-eval-contract.js +263 -0
- package/dist/runtime/decision/companion-behavior-eval-contract.js.map +1 -0
- package/dist/runtime/decision/companion-character-policy-projection.d.ts +325 -0
- package/dist/runtime/decision/companion-character-policy-projection.d.ts.map +1 -0
- package/dist/runtime/decision/companion-character-policy-projection.js +231 -0
- package/dist/runtime/decision/companion-character-policy-projection.js.map +1 -0
- package/dist/runtime/decision/companion-decision-contract.d.ts +503 -0
- package/dist/runtime/decision/companion-decision-contract.d.ts.map +1 -0
- package/dist/runtime/decision/companion-decision-contract.js +128 -0
- package/dist/runtime/decision/companion-decision-contract.js.map +1 -0
- package/dist/runtime/decision/companion-gadget-planning.d.ts +2252 -0
- package/dist/runtime/decision/companion-gadget-planning.d.ts.map +1 -0
- package/dist/runtime/decision/companion-gadget-planning.js +534 -0
- package/dist/runtime/decision/companion-gadget-planning.js.map +1 -0
- package/dist/runtime/decision/core-companion-memory-projection.d.ts +3059 -0
- package/dist/runtime/decision/core-companion-memory-projection.d.ts.map +1 -0
- package/dist/runtime/decision/core-companion-memory-projection.js +449 -0
- package/dist/runtime/decision/core-companion-memory-projection.js.map +1 -0
- package/dist/runtime/decision/index.d.ts +11 -0
- package/dist/runtime/decision/index.d.ts.map +1 -0
- package/dist/runtime/decision/index.js +6 -0
- package/dist/runtime/decision/index.js.map +1 -0
- package/dist/runtime/dream-sidecar-review.d.ts.map +1 -1
- package/dist/runtime/dream-sidecar-review.js +2 -2
- package/dist/runtime/dream-sidecar-review.js.map +1 -1
- package/dist/runtime/event/outbox-seq.d.ts +2 -0
- package/dist/runtime/event/outbox-seq.d.ts.map +1 -0
- package/dist/runtime/event/outbox-seq.js +11 -0
- package/dist/runtime/event/outbox-seq.js.map +1 -0
- package/dist/runtime/event/server-auth.d.ts +1 -1
- package/dist/runtime/event/server-auth.d.ts.map +1 -1
- package/dist/runtime/event/server-auth.js +3 -1
- package/dist/runtime/event/server-auth.js.map +1 -1
- package/dist/runtime/event/server-command-handler.d.ts.map +1 -1
- package/dist/runtime/event/server-command-handler.js +45 -44
- package/dist/runtime/event/server-command-handler.js.map +1 -1
- package/dist/runtime/event/server-file-ingestion.d.ts +1 -0
- package/dist/runtime/event/server-file-ingestion.d.ts.map +1 -1
- package/dist/runtime/event/server-file-ingestion.js +18 -29
- package/dist/runtime/event/server-file-ingestion.js.map +1 -1
- package/dist/runtime/event/server-http.d.ts +2 -1
- package/dist/runtime/event/server-http.d.ts.map +1 -1
- package/dist/runtime/event/server-http.js +2 -18
- package/dist/runtime/event/server-http.js.map +1 -1
- package/dist/runtime/event/server-router.d.ts +2 -0
- package/dist/runtime/event/server-router.d.ts.map +1 -1
- package/dist/runtime/event/server-router.js +21 -12
- package/dist/runtime/event/server-router.js.map +1 -1
- package/dist/runtime/event/server-snapshot-reader.d.ts +12 -2
- package/dist/runtime/event/server-snapshot-reader.d.ts.map +1 -1
- package/dist/runtime/event/server-snapshot-reader.js +159 -62
- package/dist/runtime/event/server-snapshot-reader.js.map +1 -1
- package/dist/runtime/event/server-sse.d.ts.map +1 -1
- package/dist/runtime/event/server-sse.js +3 -4
- package/dist/runtime/event/server-sse.js.map +1 -1
- package/dist/runtime/event/server-trigger-handler.d.ts.map +1 -1
- package/dist/runtime/event/server-trigger-handler.js +7 -10
- package/dist/runtime/event/server-trigger-handler.js.map +1 -1
- package/dist/runtime/event/server-types.d.ts +6 -0
- package/dist/runtime/event/server-types.d.ts.map +1 -1
- package/dist/runtime/event/server.d.ts +1 -0
- package/dist/runtime/event/server.d.ts.map +1 -1
- package/dist/runtime/event/server.js +15 -4
- package/dist/runtime/event/server.js.map +1 -1
- package/dist/runtime/evidence-answer.d.ts +26 -0
- package/dist/runtime/evidence-answer.d.ts.map +1 -1
- package/dist/runtime/evidence-answer.js +134 -14
- package/dist/runtime/evidence-answer.js.map +1 -1
- package/dist/runtime/executor/goal-worker.d.ts +3 -3
- package/dist/runtime/executor/goal-worker.d.ts.map +1 -1
- package/dist/runtime/executor/goal-worker.js +4 -4
- package/dist/runtime/executor/goal-worker.js.map +1 -1
- package/dist/runtime/executor/loop-supervisor.d.ts +13 -6
- package/dist/runtime/executor/loop-supervisor.d.ts.map +1 -1
- package/dist/runtime/executor/loop-supervisor.js +91 -23
- package/dist/runtime/executor/loop-supervisor.js.map +1 -1
- package/dist/runtime/foreign-plugins/compatibility.d.ts +18 -1
- package/dist/runtime/foreign-plugins/compatibility.d.ts.map +1 -1
- package/dist/runtime/foreign-plugins/compatibility.js +183 -55
- package/dist/runtime/foreign-plugins/compatibility.js.map +1 -1
- package/dist/runtime/foreign-plugins/index.d.ts +2 -2
- package/dist/runtime/foreign-plugins/index.d.ts.map +1 -1
- package/dist/runtime/foreign-plugins/index.js +1 -1
- package/dist/runtime/foreign-plugins/index.js.map +1 -1
- package/dist/runtime/foreign-plugins/types.d.ts +347 -14
- package/dist/runtime/foreign-plugins/types.d.ts.map +1 -1
- package/dist/runtime/foreign-plugins/types.js +88 -1
- package/dist/runtime/foreign-plugins/types.js.map +1 -1
- package/dist/runtime/gateway/channel-adapter.d.ts +3 -0
- package/dist/runtime/gateway/channel-adapter.d.ts.map +1 -1
- package/dist/runtime/gateway/channel-display-policy.js +1 -1
- package/dist/runtime/gateway/channel-display-policy.js.map +1 -1
- package/dist/runtime/gateway/channel-policy.d.ts +55 -0
- package/dist/runtime/gateway/channel-policy.d.ts.map +1 -1
- package/dist/runtime/gateway/channel-policy.js +108 -0
- package/dist/runtime/gateway/channel-policy.js.map +1 -1
- package/dist/runtime/gateway/channel-presence-policy.d.ts +34 -0
- package/dist/runtime/gateway/channel-presence-policy.d.ts.map +1 -0
- package/dist/runtime/gateway/channel-presence-policy.js +118 -0
- package/dist/runtime/gateway/channel-presence-policy.js.map +1 -0
- package/dist/runtime/gateway/chat-event-rendering.d.ts +18 -27
- package/dist/runtime/gateway/chat-event-rendering.d.ts.map +1 -1
- package/dist/runtime/gateway/chat-event-rendering.js +49 -34
- package/dist/runtime/gateway/chat-event-rendering.js.map +1 -1
- package/dist/runtime/gateway/chat-session-dispatch.d.ts +13 -0
- package/dist/runtime/gateway/chat-session-dispatch.d.ts.map +1 -1
- package/dist/runtime/gateway/chat-session-dispatch.js +43 -6
- package/dist/runtime/gateway/chat-session-dispatch.js.map +1 -1
- package/dist/runtime/gateway/chat-session-port.d.ts +2 -0
- package/dist/runtime/gateway/chat-session-port.d.ts.map +1 -1
- package/dist/runtime/gateway/chat-session-port.js.map +1 -1
- package/dist/runtime/gateway/config-json.d.ts +3 -0
- package/dist/runtime/gateway/config-json.d.ts.map +1 -0
- package/dist/runtime/gateway/config-json.js +27 -0
- package/dist/runtime/gateway/config-json.js.map +1 -0
- package/dist/runtime/gateway/direct-chat-latency-smoke.d.ts +2 -0
- package/dist/runtime/gateway/direct-chat-latency-smoke.d.ts.map +1 -0
- package/dist/runtime/gateway/direct-chat-latency-smoke.js +214 -0
- package/dist/runtime/gateway/direct-chat-latency-smoke.js.map +1 -0
- package/dist/runtime/gateway/discord-gateway-adapter.d.ts +1 -1
- package/dist/runtime/gateway/discord-gateway-adapter.d.ts.map +1 -1
- package/dist/runtime/gateway/discord-gateway-adapter.js +87 -43
- package/dist/runtime/gateway/discord-gateway-adapter.js.map +1 -1
- package/dist/runtime/gateway/gateway-progress-narration.d.ts +12 -0
- package/dist/runtime/gateway/gateway-progress-narration.d.ts.map +1 -0
- package/dist/runtime/gateway/gateway-progress-narration.js +294 -0
- package/dist/runtime/gateway/gateway-progress-narration.js.map +1 -0
- package/dist/runtime/gateway/http-channel-adapter.d.ts +1 -0
- package/dist/runtime/gateway/http-channel-adapter.d.ts.map +1 -1
- package/dist/runtime/gateway/http-channel-adapter.js +2 -0
- package/dist/runtime/gateway/http-channel-adapter.js.map +1 -1
- package/dist/runtime/gateway/index.d.ts +7 -0
- package/dist/runtime/gateway/index.d.ts.map +1 -1
- package/dist/runtime/gateway/index.js +5 -0
- package/dist/runtime/gateway/index.js.map +1 -1
- package/dist/runtime/gateway/ingress-gateway.d.ts.map +1 -1
- package/dist/runtime/gateway/ingress-gateway.js +2 -6
- package/dist/runtime/gateway/ingress-gateway.js.map +1 -1
- package/dist/runtime/gateway/non-tui-display-projector.d.ts +5 -0
- package/dist/runtime/gateway/non-tui-display-projector.d.ts.map +1 -1
- package/dist/runtime/gateway/non-tui-display-projector.js +202 -27
- package/dist/runtime/gateway/non-tui-display-projector.js.map +1 -1
- package/dist/runtime/gateway/seedy-presence-projector.d.ts +74 -0
- package/dist/runtime/gateway/seedy-presence-projector.d.ts.map +1 -0
- package/dist/runtime/gateway/seedy-presence-projector.js +395 -0
- package/dist/runtime/gateway/seedy-presence-projector.js.map +1 -0
- package/dist/runtime/gateway/seedy-presence-rendering.d.ts +9 -0
- package/dist/runtime/gateway/seedy-presence-rendering.d.ts.map +1 -0
- package/dist/runtime/gateway/seedy-presence-rendering.js +103 -0
- package/dist/runtime/gateway/seedy-presence-rendering.js.map +1 -0
- package/dist/runtime/gateway/signal-gateway-adapter.d.ts +1 -0
- package/dist/runtime/gateway/signal-gateway-adapter.d.ts.map +1 -1
- package/dist/runtime/gateway/signal-gateway-adapter.js +67 -38
- package/dist/runtime/gateway/signal-gateway-adapter.js.map +1 -1
- package/dist/runtime/gateway/slack-channel-adapter.d.ts +1 -0
- package/dist/runtime/gateway/slack-channel-adapter.d.ts.map +1 -1
- package/dist/runtime/gateway/slack-channel-adapter.js +85 -34
- package/dist/runtime/gateway/slack-channel-adapter.js.map +1 -1
- package/dist/runtime/gateway/telegram-gateway-adapter.d.ts +19 -4
- package/dist/runtime/gateway/telegram-gateway-adapter.d.ts.map +1 -1
- package/dist/runtime/gateway/telegram-gateway-adapter.js +428 -117
- package/dist/runtime/gateway/telegram-gateway-adapter.js.map +1 -1
- package/dist/runtime/gateway/whatsapp-gateway-adapter.d.ts +1 -1
- package/dist/runtime/gateway/whatsapp-gateway-adapter.d.ts.map +1 -1
- package/dist/runtime/gateway/whatsapp-gateway-adapter.js +86 -54
- package/dist/runtime/gateway/whatsapp-gateway-adapter.js.map +1 -1
- package/dist/runtime/gateway/ws-channel-adapter.d.ts.map +1 -1
- package/dist/runtime/gateway/ws-channel-adapter.js +3 -4
- package/dist/runtime/gateway/ws-channel-adapter.js.map +1 -1
- package/dist/runtime/goal-lease-manager.d.ts +9 -14
- package/dist/runtime/goal-lease-manager.d.ts.map +1 -1
- package/dist/runtime/goal-lease-manager.js +85 -141
- package/dist/runtime/goal-lease-manager.js.map +1 -1
- package/dist/runtime/guardrails/backpressure-controller.d.ts +1 -1
- package/dist/runtime/guardrails/backpressure-controller.d.ts.map +1 -1
- package/dist/runtime/guardrails/backpressure-controller.js +5 -4
- package/dist/runtime/guardrails/backpressure-controller.js.map +1 -1
- package/dist/runtime/guardrails/backpressure-limits.d.ts +5 -0
- package/dist/runtime/guardrails/backpressure-limits.d.ts.map +1 -0
- package/dist/runtime/guardrails/backpressure-limits.js +13 -0
- package/dist/runtime/guardrails/backpressure-limits.js.map +1 -0
- package/dist/runtime/guardrails/guardrail-store.d.ts +8 -10
- package/dist/runtime/guardrails/guardrail-store.d.ts.map +1 -1
- package/dist/runtime/guardrails/guardrail-store.js +78 -55
- package/dist/runtime/guardrails/guardrail-store.js.map +1 -1
- package/dist/runtime/hook-manager.d.ts +2 -0
- package/dist/runtime/hook-manager.d.ts.map +1 -1
- package/dist/runtime/hook-manager.js +10 -4
- package/dist/runtime/hook-manager.js.map +1 -1
- package/dist/runtime/http-body.d.ts +8 -0
- package/dist/runtime/http-body.d.ts.map +1 -0
- package/dist/runtime/http-body.js +43 -0
- package/dist/runtime/http-body.js.map +1 -0
- package/dist/runtime/intention/companion-intention-state.d.ts +680 -0
- package/dist/runtime/intention/companion-intention-state.d.ts.map +1 -0
- package/dist/runtime/intention/companion-intention-state.js +146 -0
- package/dist/runtime/intention/companion-intention-state.js.map +1 -0
- package/dist/runtime/intention/index.d.ts +3 -0
- package/dist/runtime/intention/index.d.ts.map +1 -0
- package/dist/runtime/intention/index.js +2 -0
- package/dist/runtime/intention/index.js.map +1 -0
- package/dist/runtime/interactive-automation/browser-session-resolver.d.ts +26 -0
- package/dist/runtime/interactive-automation/browser-session-resolver.d.ts.map +1 -0
- package/dist/runtime/interactive-automation/browser-session-resolver.js +75 -0
- package/dist/runtime/interactive-automation/browser-session-resolver.js.map +1 -0
- package/dist/runtime/interactive-automation/browser-session-store.d.ts +8 -4
- package/dist/runtime/interactive-automation/browser-session-store.d.ts.map +1 -1
- package/dist/runtime/interactive-automation/browser-session-store.js +78 -9
- package/dist/runtime/interactive-automation/browser-session-store.js.map +1 -1
- package/dist/runtime/interactive-automation/index.d.ts +2 -0
- package/dist/runtime/interactive-automation/index.d.ts.map +1 -1
- package/dist/runtime/interactive-automation/index.js +2 -0
- package/dist/runtime/interactive-automation/index.js.map +1 -1
- package/dist/runtime/interactive-automation/runtime-auth-handoff-store.d.ts +40 -0
- package/dist/runtime/interactive-automation/runtime-auth-handoff-store.d.ts.map +1 -0
- package/dist/runtime/interactive-automation/runtime-auth-handoff-store.js +198 -0
- package/dist/runtime/interactive-automation/runtime-auth-handoff-store.js.map +1 -0
- package/dist/runtime/leader-lock-manager.d.ts +27 -4
- package/dist/runtime/leader-lock-manager.d.ts.map +1 -1
- package/dist/runtime/leader-lock-manager.js +102 -105
- package/dist/runtime/leader-lock-manager.js.map +1 -1
- package/dist/runtime/mcp/compatibility.d.ts +53 -0
- package/dist/runtime/mcp/compatibility.d.ts.map +1 -0
- package/dist/runtime/mcp/compatibility.js +94 -0
- package/dist/runtime/mcp/compatibility.js.map +1 -0
- package/dist/runtime/mcp/index.d.ts +3 -0
- package/dist/runtime/mcp/index.d.ts.map +1 -0
- package/dist/runtime/mcp/index.js +2 -0
- package/dist/runtime/mcp/index.js.map +1 -0
- package/dist/runtime/notification-routing.d.ts.map +1 -1
- package/dist/runtime/notification-routing.js +2 -1
- package/dist/runtime/notification-routing.js.map +1 -1
- package/dist/runtime/observation/index.d.ts +3 -0
- package/dist/runtime/observation/index.d.ts.map +1 -0
- package/dist/runtime/observation/index.js +2 -0
- package/dist/runtime/observation/index.js.map +1 -0
- package/dist/runtime/observation/observation-contracts.d.ts +1518 -0
- package/dist/runtime/observation/observation-contracts.d.ts.map +1 -0
- package/dist/runtime/observation/observation-contracts.js +311 -0
- package/dist/runtime/observation/observation-contracts.js.map +1 -0
- package/dist/runtime/permission-dialogue.d.ts +87 -10
- package/dist/runtime/permission-dialogue.d.ts.map +1 -1
- package/dist/runtime/permission-dialogue.js +39 -4
- package/dist/runtime/permission-dialogue.js.map +1 -1
- package/dist/runtime/permission-grant-decision.d.ts +50 -0
- package/dist/runtime/permission-grant-decision.d.ts.map +1 -0
- package/dist/runtime/permission-grant-decision.js +139 -0
- package/dist/runtime/permission-grant-decision.js.map +1 -0
- package/dist/runtime/pid-manager.d.ts +1 -0
- package/dist/runtime/pid-manager.d.ts.map +1 -1
- package/dist/runtime/pid-manager.js +44 -21
- package/dist/runtime/pid-manager.js.map +1 -1
- package/dist/runtime/plugin-loader.d.ts +10 -1
- package/dist/runtime/plugin-loader.d.ts.map +1 -1
- package/dist/runtime/plugin-loader.js +104 -78
- package/dist/runtime/plugin-loader.js.map +1 -1
- package/dist/runtime/plugin-manifest-reader.d.ts +38 -0
- package/dist/runtime/plugin-manifest-reader.d.ts.map +1 -0
- package/dist/runtime/plugin-manifest-reader.js +163 -0
- package/dist/runtime/plugin-manifest-reader.js.map +1 -0
- package/dist/runtime/port-utils.d.ts.map +1 -1
- package/dist/runtime/port-utils.js +20 -6
- package/dist/runtime/port-utils.js.map +1 -1
- package/dist/runtime/queue/journal-backed-queue.d.ts +8 -7
- package/dist/runtime/queue/journal-backed-queue.d.ts.map +1 -1
- package/dist/runtime/queue/journal-backed-queue.js +172 -122
- package/dist/runtime/queue/journal-backed-queue.js.map +1 -1
- package/dist/runtime/resident-runtime-interface.d.ts +1034 -0
- package/dist/runtime/resident-runtime-interface.d.ts.map +1 -0
- package/dist/runtime/resident-runtime-interface.js +429 -0
- package/dist/runtime/resident-runtime-interface.js.map +1 -0
- package/dist/runtime/run-spec/confirmation.d.ts +4 -1
- package/dist/runtime/run-spec/confirmation.d.ts.map +1 -1
- package/dist/runtime/run-spec/confirmation.js +101 -6
- package/dist/runtime/run-spec/confirmation.js.map +1 -1
- package/dist/runtime/run-spec/derive.d.ts +29 -29
- package/dist/runtime/run-spec/derive.d.ts.map +1 -1
- package/dist/runtime/run-spec/derive.js +8 -7
- package/dist/runtime/run-spec/derive.js.map +1 -1
- package/dist/runtime/run-spec/handoff.d.ts.map +1 -1
- package/dist/runtime/run-spec/handoff.js +73 -38
- package/dist/runtime/run-spec/handoff.js.map +1 -1
- package/dist/runtime/run-spec/index.d.ts +2 -0
- package/dist/runtime/run-spec/index.d.ts.map +1 -1
- package/dist/runtime/run-spec/index.js +1 -0
- package/dist/runtime/run-spec/index.js.map +1 -1
- package/dist/runtime/run-spec/pending-dialogue-arbiter.d.ts +4 -4
- package/dist/runtime/run-spec/pending-dialogue-arbiter.js +1 -1
- package/dist/runtime/run-spec/pending-dialogue-arbiter.js.map +1 -1
- package/dist/runtime/run-spec/run-spec-state-migration.d.ts +13 -0
- package/dist/runtime/run-spec/run-spec-state-migration.d.ts.map +1 -0
- package/dist/runtime/run-spec/run-spec-state-migration.js +117 -0
- package/dist/runtime/run-spec/run-spec-state-migration.js.map +1 -0
- package/dist/runtime/run-spec/store.d.ts +9 -3
- package/dist/runtime/run-spec/store.d.ts.map +1 -1
- package/dist/runtime/run-spec/store.js +68 -19
- package/dist/runtime/run-spec/store.js.map +1 -1
- package/dist/runtime/run-spec/types.d.ts +49 -44
- package/dist/runtime/run-spec/types.d.ts.map +1 -1
- package/dist/runtime/run-spec/types.js +11 -6
- package/dist/runtime/run-spec/types.js.map +1 -1
- package/dist/runtime/schedule/engine-execution.d.ts +7 -3
- package/dist/runtime/schedule/engine-execution.d.ts.map +1 -1
- package/dist/runtime/schedule/engine-execution.js +61 -26
- package/dist/runtime/schedule/engine-execution.js.map +1 -1
- package/dist/runtime/schedule/engine-heartbeat.d.ts.map +1 -1
- package/dist/runtime/schedule/engine-heartbeat.js +15 -7
- package/dist/runtime/schedule/engine-heartbeat.js.map +1 -1
- package/dist/runtime/schedule/engine-layers.d.ts +4 -1
- package/dist/runtime/schedule/engine-layers.d.ts.map +1 -1
- package/dist/runtime/schedule/engine-layers.js +155 -12
- package/dist/runtime/schedule/engine-layers.js.map +1 -1
- package/dist/runtime/schedule/engine-mutations.js.map +1 -1
- package/dist/runtime/schedule/engine.d.ts +7 -3
- package/dist/runtime/schedule/engine.d.ts.map +1 -1
- package/dist/runtime/schedule/engine.js +62 -13
- package/dist/runtime/schedule/engine.js.map +1 -1
- package/dist/runtime/schedule/entry-normalization.d.ts +9 -0
- package/dist/runtime/schedule/entry-normalization.d.ts.map +1 -0
- package/dist/runtime/schedule/entry-normalization.js +105 -0
- package/dist/runtime/schedule/entry-normalization.js.map +1 -0
- package/dist/runtime/schedule/entry-store.d.ts +7 -6
- package/dist/runtime/schedule/entry-store.d.ts.map +1 -1
- package/dist/runtime/schedule/entry-store.js +94 -67
- package/dist/runtime/schedule/entry-store.js.map +1 -1
- package/dist/runtime/schedule/history.d.ts +649 -9
- package/dist/runtime/schedule/history.d.ts.map +1 -1
- package/dist/runtime/schedule/history.js +66 -23
- package/dist/runtime/schedule/history.js.map +1 -1
- package/dist/runtime/schedule/legacy-cron-migration.d.ts.map +1 -1
- package/dist/runtime/schedule/legacy-cron-migration.js +34 -8
- package/dist/runtime/schedule/legacy-cron-migration.js.map +1 -1
- package/dist/runtime/schedule/presets.d.ts +20 -20
- package/dist/runtime/schedule/presets.d.ts.map +1 -1
- package/dist/runtime/schedule/presets.js +4 -2
- package/dist/runtime/schedule/presets.js.map +1 -1
- package/dist/runtime/schedule/source.d.ts +30 -28
- package/dist/runtime/schedule/source.d.ts.map +1 -1
- package/dist/runtime/schedule/source.js +16 -5
- package/dist/runtime/schedule/source.js.map +1 -1
- package/dist/runtime/schedule/wait-projection.d.ts.map +1 -1
- package/dist/runtime/schedule/wait-projection.js +6 -9
- package/dist/runtime/schedule/wait-projection.js.map +1 -1
- package/dist/runtime/session-registry/registry-helpers.d.ts +2 -0
- package/dist/runtime/session-registry/registry-helpers.d.ts.map +1 -1
- package/dist/runtime/session-registry/registry-helpers.js +34 -10
- package/dist/runtime/session-registry/registry-helpers.js.map +1 -1
- package/dist/runtime/session-registry/registry.d.ts +3 -2
- package/dist/runtime/session-registry/registry.d.ts.map +1 -1
- package/dist/runtime/session-registry/registry.js +118 -211
- package/dist/runtime/session-registry/registry.js.map +1 -1
- package/dist/runtime/session-registry/types.d.ts +160 -160
- package/dist/runtime/session-registry/types.d.ts.map +1 -1
- package/dist/runtime/session-registry/types.js +1 -0
- package/dist/runtime/session-registry/types.js.map +1 -1
- package/dist/runtime/skills/skill-bundle.d.ts +45 -0
- package/dist/runtime/skills/skill-bundle.d.ts.map +1 -0
- package/dist/runtime/skills/skill-bundle.js +203 -0
- package/dist/runtime/skills/skill-bundle.js.map +1 -0
- package/dist/runtime/skills/skill-parser.d.ts +1 -0
- package/dist/runtime/skills/skill-parser.d.ts.map +1 -1
- package/dist/runtime/skills/skill-parser.js +30 -11
- package/dist/runtime/skills/skill-parser.js.map +1 -1
- package/dist/runtime/skills/skill-registry.d.ts +5 -0
- package/dist/runtime/skills/skill-registry.d.ts.map +1 -1
- package/dist/runtime/skills/skill-registry.js +53 -9
- package/dist/runtime/skills/skill-registry.js.map +1 -1
- package/dist/runtime/store/approval-store.d.ts +5 -5
- package/dist/runtime/store/approval-store.d.ts.map +1 -1
- package/dist/runtime/store/approval-store.js +86 -81
- package/dist/runtime/store/approval-store.js.map +1 -1
- package/dist/runtime/store/artifact-retention.d.ts.map +1 -1
- package/dist/runtime/store/artifact-retention.js +13 -2
- package/dist/runtime/store/artifact-retention.js.map +1 -1
- package/dist/runtime/store/attention-state-store.d.ts +195 -0
- package/dist/runtime/store/attention-state-store.d.ts.map +1 -0
- package/dist/runtime/store/attention-state-store.js +1186 -0
- package/dist/runtime/store/attention-state-store.js.map +1 -0
- package/dist/runtime/store/background-run-store.d.ts +233 -2
- package/dist/runtime/store/background-run-store.d.ts.map +1 -1
- package/dist/runtime/store/background-run-store.js +65 -9
- package/dist/runtime/store/background-run-store.js.map +1 -1
- package/dist/runtime/store/budget-store.d.ts +101 -48
- package/dist/runtime/store/budget-store.d.ts.map +1 -1
- package/dist/runtime/store/budget-store.js +226 -47
- package/dist/runtime/store/budget-store.js.map +1 -1
- package/dist/runtime/store/capability-registry-state-migration.d.ts +24 -0
- package/dist/runtime/store/capability-registry-state-migration.d.ts.map +1 -0
- package/dist/runtime/store/capability-registry-state-migration.js +208 -0
- package/dist/runtime/store/capability-registry-state-migration.js.map +1 -0
- package/dist/runtime/store/capability-registry-state-store.d.ts +36 -0
- package/dist/runtime/store/capability-registry-state-store.d.ts.map +1 -0
- package/dist/runtime/store/capability-registry-state-store.js +181 -0
- package/dist/runtime/store/capability-registry-state-store.js.map +1 -0
- package/dist/runtime/store/capability-verification-schemas.d.ts +184 -0
- package/dist/runtime/store/capability-verification-schemas.d.ts.map +1 -0
- package/dist/runtime/store/capability-verification-schemas.js +150 -0
- package/dist/runtime/store/capability-verification-schemas.js.map +1 -0
- package/dist/runtime/store/capability-verification-store.d.ts +31 -0
- package/dist/runtime/store/capability-verification-store.d.ts.map +1 -0
- package/dist/runtime/store/capability-verification-store.js +198 -0
- package/dist/runtime/store/capability-verification-store.js.map +1 -0
- package/dist/runtime/store/control-db/control-db.d.ts +80 -0
- package/dist/runtime/store/control-db/control-db.d.ts.map +1 -0
- package/dist/runtime/store/control-db/control-db.js +313 -0
- package/dist/runtime/store/control-db/control-db.js.map +1 -0
- package/dist/runtime/store/control-db/index.d.ts +7 -0
- package/dist/runtime/store/control-db/index.d.ts.map +1 -0
- package/dist/runtime/store/control-db/index.js +4 -0
- package/dist/runtime/store/control-db/index.js.map +1 -0
- package/dist/runtime/store/control-db/runtime-control-db.d.ts +11 -0
- package/dist/runtime/store/control-db/runtime-control-db.d.ts.map +1 -0
- package/dist/runtime/store/control-db/runtime-control-db.js +27 -0
- package/dist/runtime/store/control-db/runtime-control-db.js.map +1 -0
- package/dist/runtime/store/control-db/schema.d.ts +41 -0
- package/dist/runtime/store/control-db/schema.d.ts.map +1 -0
- package/dist/runtime/store/control-db/schema.js +2032 -0
- package/dist/runtime/store/control-db/schema.js.map +1 -0
- package/dist/runtime/store/curiosity-state-migration.d.ts +14 -0
- package/dist/runtime/store/curiosity-state-migration.d.ts.map +1 -0
- package/dist/runtime/store/curiosity-state-migration.js +98 -0
- package/dist/runtime/store/curiosity-state-migration.js.map +1 -0
- package/dist/runtime/store/curiosity-state-store.d.ts +19 -0
- package/dist/runtime/store/curiosity-state-store.d.ts.map +1 -0
- package/dist/runtime/store/curiosity-state-store.js +161 -0
- package/dist/runtime/store/curiosity-state-store.js.map +1 -0
- package/dist/runtime/store/daemon-state-store.d.ts +25 -0
- package/dist/runtime/store/daemon-state-store.d.ts.map +1 -0
- package/dist/runtime/store/daemon-state-store.js +145 -0
- package/dist/runtime/store/daemon-state-store.js.map +1 -0
- package/dist/runtime/store/dream-decision-heuristic-migration.d.ts +8 -0
- package/dist/runtime/store/dream-decision-heuristic-migration.d.ts.map +1 -0
- package/dist/runtime/store/dream-decision-heuristic-migration.js +89 -0
- package/dist/runtime/store/dream-decision-heuristic-migration.js.map +1 -0
- package/dist/runtime/store/dream-decision-heuristic-store.d.ts +13 -0
- package/dist/runtime/store/dream-decision-heuristic-store.d.ts.map +1 -0
- package/dist/runtime/store/dream-decision-heuristic-store.js +62 -0
- package/dist/runtime/store/dream-decision-heuristic-store.js.map +1 -0
- package/dist/runtime/store/ethics-log-migration.d.ts +12 -0
- package/dist/runtime/store/ethics-log-migration.d.ts.map +1 -0
- package/dist/runtime/store/ethics-log-migration.js +94 -0
- package/dist/runtime/store/ethics-log-migration.js.map +1 -0
- package/dist/runtime/store/ethics-log-store.d.ts +20 -0
- package/dist/runtime/store/ethics-log-store.d.ts.map +1 -0
- package/dist/runtime/store/ethics-log-store.js +90 -0
- package/dist/runtime/store/ethics-log-store.js.map +1 -0
- package/dist/runtime/store/evidence-ledger.d.ts +8 -203
- package/dist/runtime/store/evidence-ledger.d.ts.map +1 -1
- package/dist/runtime/store/evidence-ledger.js +172 -507
- package/dist/runtime/store/evidence-ledger.js.map +1 -1
- package/dist/runtime/store/evidence-types.d.ts +860 -841
- package/dist/runtime/store/evidence-types.d.ts.map +1 -1
- package/dist/runtime/store/evidence-types.js +7 -4
- package/dist/runtime/store/evidence-types.js.map +1 -1
- package/dist/runtime/store/execution-session-state-migration.d.ts +14 -0
- package/dist/runtime/store/execution-session-state-migration.d.ts.map +1 -0
- package/dist/runtime/store/execution-session-state-migration.js +184 -0
- package/dist/runtime/store/execution-session-state-migration.js.map +1 -0
- package/dist/runtime/store/execution-session-state-store.d.ts +21 -0
- package/dist/runtime/store/execution-session-state-store.d.ts.map +1 -0
- package/dist/runtime/store/execution-session-state-store.js +117 -0
- package/dist/runtime/store/execution-session-state-store.js.map +1 -0
- package/dist/runtime/store/experiment-queue-store.d.ts +76 -72
- package/dist/runtime/store/experiment-queue-store.d.ts.map +1 -1
- package/dist/runtime/store/experiment-queue-store.js +72 -9
- package/dist/runtime/store/experiment-queue-store.js.map +1 -1
- package/dist/runtime/store/feedback-ingestion-store.d.ts +19 -0
- package/dist/runtime/store/feedback-ingestion-store.d.ts.map +1 -0
- package/dist/runtime/store/feedback-ingestion-store.js +147 -0
- package/dist/runtime/store/feedback-ingestion-store.js.map +1 -0
- package/dist/runtime/store/goal-orchestration-state-migration.d.ts +14 -0
- package/dist/runtime/store/goal-orchestration-state-migration.d.ts.map +1 -0
- package/dist/runtime/store/goal-orchestration-state-migration.js +206 -0
- package/dist/runtime/store/goal-orchestration-state-migration.js.map +1 -0
- package/dist/runtime/store/goal-orchestration-state-store.d.ts +25 -0
- package/dist/runtime/store/goal-orchestration-state-store.d.ts.map +1 -0
- package/dist/runtime/store/goal-orchestration-state-store.js +101 -0
- package/dist/runtime/store/goal-orchestration-state-store.js.map +1 -0
- package/dist/runtime/store/goal-task-state-migration.d.ts +24 -0
- package/dist/runtime/store/goal-task-state-migration.d.ts.map +1 -0
- package/dist/runtime/store/goal-task-state-migration.js +554 -0
- package/dist/runtime/store/goal-task-state-migration.js.map +1 -0
- package/dist/runtime/store/goal-task-state-store.d.ts +85 -0
- package/dist/runtime/store/goal-task-state-store.d.ts.map +1 -0
- package/dist/runtime/store/goal-task-state-store.js +992 -0
- package/dist/runtime/store/goal-task-state-store.js.map +1 -0
- package/dist/runtime/store/health-store.d.ts +5 -2
- package/dist/runtime/store/health-store.d.ts.map +1 -1
- package/dist/runtime/store/health-store.js +70 -23
- package/dist/runtime/store/health-store.js.map +1 -1
- package/dist/runtime/store/index.d.ts +91 -4
- package/dist/runtime/store/index.d.ts.map +1 -1
- package/dist/runtime/store/index.js +49 -3
- package/dist/runtime/store/index.js.map +1 -1
- package/dist/runtime/store/knowledge-memory-state-migration.d.ts +14 -0
- package/dist/runtime/store/knowledge-memory-state-migration.d.ts.map +1 -0
- package/dist/runtime/store/knowledge-memory-state-migration.js +160 -0
- package/dist/runtime/store/knowledge-memory-state-migration.js.map +1 -0
- package/dist/runtime/store/knowledge-transfer-state-migration.d.ts +14 -0
- package/dist/runtime/store/knowledge-transfer-state-migration.d.ts.map +1 -0
- package/dist/runtime/store/knowledge-transfer-state-migration.js +210 -0
- package/dist/runtime/store/knowledge-transfer-state-migration.js.map +1 -0
- package/dist/runtime/store/knowledge-transfer-state-store.d.ts +658 -0
- package/dist/runtime/store/knowledge-transfer-state-store.d.ts.map +1 -0
- package/dist/runtime/store/knowledge-transfer-state-store.js +214 -0
- package/dist/runtime/store/knowledge-transfer-state-store.js.map +1 -0
- package/dist/runtime/store/learning-runtime-state-migration.d.ts +16 -0
- package/dist/runtime/store/learning-runtime-state-migration.d.ts.map +1 -0
- package/dist/runtime/store/learning-runtime-state-migration.js +202 -0
- package/dist/runtime/store/learning-runtime-state-migration.js.map +1 -0
- package/dist/runtime/store/learning-runtime-state-store.d.ts +53 -0
- package/dist/runtime/store/learning-runtime-state-store.d.ts.map +1 -0
- package/dist/runtime/store/learning-runtime-state-store.js +232 -0
- package/dist/runtime/store/learning-runtime-state-store.js.map +1 -0
- package/dist/runtime/store/memory-lifecycle-state-migration.d.ts +18 -0
- package/dist/runtime/store/memory-lifecycle-state-migration.d.ts.map +1 -0
- package/dist/runtime/store/memory-lifecycle-state-migration.js +344 -0
- package/dist/runtime/store/memory-lifecycle-state-migration.js.map +1 -0
- package/dist/runtime/store/metric-history.d.ts +4 -1
- package/dist/runtime/store/metric-history.d.ts.map +1 -1
- package/dist/runtime/store/metric-history.js +18 -3
- package/dist/runtime/store/metric-history.js.map +1 -1
- package/dist/runtime/store/operator-handoff-store.d.ts +22 -17
- package/dist/runtime/store/operator-handoff-store.d.ts.map +1 -1
- package/dist/runtime/store/operator-handoff-store.js +74 -7
- package/dist/runtime/store/operator-handoff-store.js.map +1 -1
- package/dist/runtime/store/outbox-store.d.ts +5 -3
- package/dist/runtime/store/outbox-store.d.ts.map +1 -1
- package/dist/runtime/store/outbox-store.js +76 -66
- package/dist/runtime/store/outbox-store.js.map +1 -1
- package/dist/runtime/store/permission-grant-store.d.ts +961 -0
- package/dist/runtime/store/permission-grant-store.d.ts.map +1 -0
- package/dist/runtime/store/permission-grant-store.js +525 -0
- package/dist/runtime/store/permission-grant-store.js.map +1 -0
- package/dist/runtime/store/permission-wait-plan-store.d.ts +633 -0
- package/dist/runtime/store/permission-wait-plan-store.d.ts.map +1 -0
- package/dist/runtime/store/permission-wait-plan-store.js +366 -0
- package/dist/runtime/store/permission-wait-plan-store.js.map +1 -0
- package/dist/runtime/store/plugin-channel-runtime-state-migration.d.ts +14 -0
- package/dist/runtime/store/plugin-channel-runtime-state-migration.d.ts.map +1 -0
- package/dist/runtime/store/plugin-channel-runtime-state-migration.js +204 -0
- package/dist/runtime/store/plugin-channel-runtime-state-migration.js.map +1 -0
- package/dist/runtime/store/plugin-channel-runtime-state-store.d.ts +78 -0
- package/dist/runtime/store/plugin-channel-runtime-state-store.d.ts.map +1 -0
- package/dist/runtime/store/plugin-channel-runtime-state-store.js +278 -0
- package/dist/runtime/store/plugin-channel-runtime-state-store.js.map +1 -0
- package/dist/runtime/store/postmortem-report.d.ts +10 -8
- package/dist/runtime/store/postmortem-report.d.ts.map +1 -1
- package/dist/runtime/store/postmortem-report.js +40 -18
- package/dist/runtime/store/postmortem-report.js.map +1 -1
- package/dist/runtime/store/proactive-intervention-store.d.ts +2376 -33
- package/dist/runtime/store/proactive-intervention-store.d.ts.map +1 -1
- package/dist/runtime/store/proactive-intervention-store.js +83 -37
- package/dist/runtime/store/proactive-intervention-store.js.map +1 -1
- package/dist/runtime/store/process-session-state-store.d.ts +83 -0
- package/dist/runtime/store/process-session-state-store.d.ts.map +1 -0
- package/dist/runtime/store/process-session-state-store.js +199 -0
- package/dist/runtime/store/process-session-state-store.js.map +1 -0
- package/dist/runtime/store/queue-daemon-schedule-state-migration.d.ts +17 -0
- package/dist/runtime/store/queue-daemon-schedule-state-migration.d.ts.map +1 -0
- package/dist/runtime/store/queue-daemon-schedule-state-migration.js +261 -0
- package/dist/runtime/store/queue-daemon-schedule-state-migration.js.map +1 -0
- package/dist/runtime/store/relationship-profile-proposal-state-migration.d.ts +13 -0
- package/dist/runtime/store/relationship-profile-proposal-state-migration.d.ts.map +1 -0
- package/dist/runtime/store/relationship-profile-proposal-state-migration.js +94 -0
- package/dist/runtime/store/relationship-profile-proposal-state-migration.js.map +1 -0
- package/dist/runtime/store/reproducibility-manifest.d.ts +33 -33
- package/dist/runtime/store/reproducibility-manifest.d.ts.map +1 -1
- package/dist/runtime/store/reproducibility-manifest.js +22 -11
- package/dist/runtime/store/reproducibility-manifest.js.map +1 -1
- package/dist/runtime/store/runtime-control-state-migration.d.ts +23 -0
- package/dist/runtime/store/runtime-control-state-migration.d.ts.map +1 -0
- package/dist/runtime/store/runtime-control-state-migration.js +151 -0
- package/dist/runtime/store/runtime-control-state-migration.js.map +1 -0
- package/dist/runtime/store/runtime-control-store-migration.d.ts +18 -0
- package/dist/runtime/store/runtime-control-store-migration.d.ts.map +1 -0
- package/dist/runtime/store/runtime-control-store-migration.js +119 -0
- package/dist/runtime/store/runtime-control-store-migration.js.map +1 -0
- package/dist/runtime/store/runtime-evidence-state-store.d.ts +34 -0
- package/dist/runtime/store/runtime-evidence-state-store.d.ts.map +1 -0
- package/dist/runtime/store/runtime-evidence-state-store.js +181 -0
- package/dist/runtime/store/runtime-evidence-state-store.js.map +1 -0
- package/dist/runtime/store/runtime-evidence-strategy-dream-state-migration.d.ts +24 -0
- package/dist/runtime/store/runtime-evidence-strategy-dream-state-migration.d.ts.map +1 -0
- package/dist/runtime/store/runtime-evidence-strategy-dream-state-migration.js +369 -0
- package/dist/runtime/store/runtime-evidence-strategy-dream-state-migration.js.map +1 -0
- package/dist/runtime/store/runtime-evidence-summary-types.d.ts +213 -0
- package/dist/runtime/store/runtime-evidence-summary-types.d.ts.map +1 -0
- package/dist/runtime/store/runtime-evidence-summary-types.js +2 -0
- package/dist/runtime/store/runtime-evidence-summary-types.js.map +1 -0
- package/dist/runtime/store/runtime-journal-state-migration.d.ts +20 -0
- package/dist/runtime/store/runtime-journal-state-migration.d.ts.map +1 -0
- package/dist/runtime/store/runtime-journal-state-migration.js +280 -0
- package/dist/runtime/store/runtime-journal-state-migration.js.map +1 -0
- package/dist/runtime/store/runtime-journal.d.ts +0 -11
- package/dist/runtime/store/runtime-journal.d.ts.map +1 -1
- package/dist/runtime/store/runtime-journal.js +0 -25
- package/dist/runtime/store/runtime-journal.js.map +1 -1
- package/dist/runtime/store/runtime-operation-companion.d.ts +13 -0
- package/dist/runtime/store/runtime-operation-companion.d.ts.map +1 -0
- package/dist/runtime/store/runtime-operation-companion.js +597 -0
- package/dist/runtime/store/runtime-operation-companion.js.map +1 -0
- package/dist/runtime/store/runtime-operation-schemas.d.ts +692 -70
- package/dist/runtime/store/runtime-operation-schemas.d.ts.map +1 -1
- package/dist/runtime/store/runtime-operation-schemas.js +70 -1
- package/dist/runtime/store/runtime-operation-schemas.js.map +1 -1
- package/dist/runtime/store/runtime-operation-store.d.ts +19 -8
- package/dist/runtime/store/runtime-operation-store.d.ts.map +1 -1
- package/dist/runtime/store/runtime-operation-store.js +173 -36
- package/dist/runtime/store/runtime-operation-store.js.map +1 -1
- package/dist/runtime/store/runtime-paths.d.ts +4 -15
- package/dist/runtime/store/runtime-paths.d.ts.map +1 -1
- package/dist/runtime/store/runtime-paths.js +10 -55
- package/dist/runtime/store/runtime-paths.js.map +1 -1
- package/dist/runtime/store/runtime-schemas.d.ts +2689 -56
- package/dist/runtime/store/runtime-schemas.d.ts.map +1 -1
- package/dist/runtime/store/runtime-schemas.js +153 -35
- package/dist/runtime/store/runtime-schemas.js.map +1 -1
- package/dist/runtime/store/safe-pause-store.d.ts +5 -2
- package/dist/runtime/store/safe-pause-store.d.ts.map +1 -1
- package/dist/runtime/store/safe-pause-store.js +46 -8
- package/dist/runtime/store/safe-pause-store.js.map +1 -1
- package/dist/runtime/store/stall-state-migration.d.ts +13 -0
- package/dist/runtime/store/stall-state-migration.d.ts.map +1 -0
- package/dist/runtime/store/stall-state-migration.js +143 -0
- package/dist/runtime/store/stall-state-migration.js.map +1 -0
- package/dist/runtime/store/stall-state-store.d.ts +22 -0
- package/dist/runtime/store/stall-state-store.d.ts.map +1 -0
- package/dist/runtime/store/stall-state-store.js +76 -0
- package/dist/runtime/store/stall-state-store.js.map +1 -0
- package/dist/runtime/store/strategy-dream-state-store.d.ts +65 -0
- package/dist/runtime/store/strategy-dream-state-store.d.ts.map +1 -0
- package/dist/runtime/store/strategy-dream-state-store.js +524 -0
- package/dist/runtime/store/strategy-dream-state-store.js.map +1 -0
- package/dist/runtime/store/supervisor-state-store.d.ts +71 -0
- package/dist/runtime/store/supervisor-state-store.d.ts.map +1 -0
- package/dist/runtime/store/supervisor-state-store.js +134 -0
- package/dist/runtime/store/supervisor-state-store.js.map +1 -0
- package/dist/runtime/store/transfer-trust-state-migration.d.ts +15 -0
- package/dist/runtime/store/transfer-trust-state-migration.d.ts.map +1 -0
- package/dist/runtime/store/transfer-trust-state-migration.js +281 -0
- package/dist/runtime/store/transfer-trust-state-migration.js.map +1 -0
- package/dist/runtime/store/transfer-trust-state-store.d.ts +62 -0
- package/dist/runtime/store/transfer-trust-state-store.d.ts.map +1 -0
- package/dist/runtime/store/transfer-trust-state-store.js +322 -0
- package/dist/runtime/store/transfer-trust-state-store.js.map +1 -0
- package/dist/runtime/store/trust-state-migration.d.ts +14 -0
- package/dist/runtime/store/trust-state-migration.d.ts.map +1 -0
- package/dist/runtime/store/trust-state-migration.js +99 -0
- package/dist/runtime/store/trust-state-migration.js.map +1 -0
- package/dist/runtime/store/trust-state-store.d.ts +18 -0
- package/dist/runtime/store/trust-state-store.d.ts.map +1 -0
- package/dist/runtime/store/trust-state-store.js +132 -0
- package/dist/runtime/store/trust-state-store.js.map +1 -0
- package/dist/runtime/trigger-mapper.d.ts +1 -0
- package/dist/runtime/trigger-mapper.d.ts.map +1 -1
- package/dist/runtime/trigger-mapper.js +83 -18
- package/dist/runtime/trigger-mapper.js.map +1 -1
- package/dist/runtime/trigger-mappings-json.d.ts +4 -0
- package/dist/runtime/trigger-mappings-json.d.ts.map +1 -0
- package/dist/runtime/trigger-mappings-json.js +10 -0
- package/dist/runtime/trigger-mappings-json.js.map +1 -0
- package/dist/runtime/types/capability-operation-plan.d.ts +580 -0
- package/dist/runtime/types/capability-operation-plan.d.ts.map +1 -0
- package/dist/runtime/types/capability-operation-plan.js +38 -0
- package/dist/runtime/types/capability-operation-plan.js.map +1 -0
- package/dist/runtime/types/companion-autonomy.d.ts +10283 -0
- package/dist/runtime/types/companion-autonomy.d.ts.map +1 -0
- package/dist/runtime/types/companion-autonomy.js +1091 -0
- package/dist/runtime/types/companion-autonomy.js.map +1 -0
- package/dist/runtime/types/companion-state.d.ts +8234 -0
- package/dist/runtime/types/companion-state.d.ts.map +1 -0
- package/dist/runtime/types/companion-state.js +403 -0
- package/dist/runtime/types/companion-state.js.map +1 -0
- package/dist/runtime/types/companion.d.ts +74 -72
- package/dist/runtime/types/companion.d.ts.map +1 -1
- package/dist/runtime/types/companion.js +3 -1
- package/dist/runtime/types/companion.js.map +1 -1
- package/dist/runtime/types/daemon.d.ts +2121 -33
- package/dist/runtime/types/daemon.d.ts.map +1 -1
- package/dist/runtime/types/daemon.js +69 -26
- package/dist/runtime/types/daemon.js.map +1 -1
- package/dist/runtime/types/envelope.d.ts +8 -8
- package/dist/runtime/types/envelope.js +2 -2
- package/dist/runtime/types/envelope.js.map +1 -1
- package/dist/runtime/types/hook.d.ts.map +1 -1
- package/dist/runtime/types/hook.js +2 -1
- package/dist/runtime/types/hook.js.map +1 -1
- package/dist/runtime/types/notification.d.ts +57 -56
- package/dist/runtime/types/notification.d.ts.map +1 -1
- package/dist/runtime/types/notification.js +24 -10
- package/dist/runtime/types/notification.js.map +1 -1
- package/dist/runtime/types/plugin.d.ts +8 -8
- package/dist/runtime/types/plugin.d.ts.map +1 -1
- package/dist/runtime/types/plugin.js +30 -15
- package/dist/runtime/types/plugin.js.map +1 -1
- package/dist/runtime/types/schedule.d.ts +1385 -97
- package/dist/runtime/types/schedule.d.ts.map +1 -1
- package/dist/runtime/types/schedule.js +120 -27
- package/dist/runtime/types/schedule.js.map +1 -1
- package/dist/runtime/types/trigger.d.ts +6 -6
- package/dist/runtime/visibility/cognitive-replay-index.d.ts +1072 -0
- package/dist/runtime/visibility/cognitive-replay-index.d.ts.map +1 -0
- package/dist/runtime/visibility/cognitive-replay-index.js +226 -0
- package/dist/runtime/visibility/cognitive-replay-index.js.map +1 -0
- package/dist/runtime/visibility/companion-audit-visibility.d.ts +161 -0
- package/dist/runtime/visibility/companion-audit-visibility.d.ts.map +1 -0
- package/dist/runtime/visibility/companion-audit-visibility.js +565 -0
- package/dist/runtime/visibility/companion-audit-visibility.js.map +1 -0
- package/dist/runtime/visibility/index.d.ts +5 -0
- package/dist/runtime/visibility/index.d.ts.map +1 -0
- package/dist/runtime/visibility/index.js +3 -0
- package/dist/runtime/visibility/index.js.map +1 -0
- package/dist/runtime/watchdog.d.ts +9 -1
- package/dist/runtime/watchdog.d.ts.map +1 -1
- package/dist/runtime/watchdog.js +53 -11
- package/dist/runtime/watchdog.js.map +1 -1
- package/dist/tools/automation/InteractiveAutomationTools.d.ts +68 -208
- package/dist/tools/automation/InteractiveAutomationTools.d.ts.map +1 -1
- package/dist/tools/automation/InteractiveAutomationTools.js +76 -123
- package/dist/tools/automation/InteractiveAutomationTools.js.map +1 -1
- package/dist/tools/automation/automation-tool-base.d.ts +37 -0
- package/dist/tools/automation/automation-tool-base.d.ts.map +1 -0
- package/dist/tools/automation/automation-tool-base.js +77 -0
- package/dist/tools/automation/automation-tool-base.js.map +1 -0
- package/dist/tools/automation/interactive-automation-schemas.d.ts +136 -0
- package/dist/tools/automation/interactive-automation-schemas.d.ts.map +1 -0
- package/dist/tools/automation/interactive-automation-schemas.js +54 -0
- package/dist/tools/automation/interactive-automation-schemas.js.map +1 -0
- package/dist/tools/builtin/factory.d.ts +6 -3
- package/dist/tools/builtin/factory.d.ts.map +1 -1
- package/dist/tools/builtin/factory.js +10 -4
- package/dist/tools/builtin/factory.js.map +1 -1
- package/dist/tools/capability-execution-records.d.ts +8 -0
- package/dist/tools/capability-execution-records.d.ts.map +1 -0
- package/dist/tools/capability-execution-records.js +165 -0
- package/dist/tools/capability-execution-records.js.map +1 -0
- package/dist/tools/execution/MemoryCorrectionTool/MemoryCorrectionTool.d.ts +4 -4
- package/dist/tools/execution/MemorySaveTool/MemorySaveTool.d.ts +40 -40
- package/dist/tools/execution/QueryDataSourceTool/QueryDataSourceTool.d.ts +2 -2
- package/dist/tools/execution/QueryDataSourceTool/QueryDataSourceTool.d.ts.map +1 -1
- package/dist/tools/execution/QueryDataSourceTool/QueryDataSourceTool.js +1 -1
- package/dist/tools/execution/QueryDataSourceTool/QueryDataSourceTool.js.map +1 -1
- package/dist/tools/execution/RunAdapterTool/RunAdapterTool.d.ts +2 -2
- package/dist/tools/execution/RunAdapterTool/RunAdapterTool.d.ts.map +1 -1
- package/dist/tools/execution/RunAdapterTool/RunAdapterTool.js +1 -1
- package/dist/tools/execution/RunAdapterTool/RunAdapterTool.js.map +1 -1
- package/dist/tools/execution/SoilDoctorTool/SoilDoctorTool.d.ts +2 -2
- package/dist/tools/execution/SoilDoctorTool/SoilDoctorTool.d.ts.map +1 -1
- package/dist/tools/execution/SoilDoctorTool/SoilDoctorTool.js +1 -1
- package/dist/tools/execution/SoilDoctorTool/SoilDoctorTool.js.map +1 -1
- package/dist/tools/execution/SoilImportTool/SoilImportTool.d.ts +8 -8
- package/dist/tools/execution/SoilImportTool/SoilImportTool.js +4 -4
- package/dist/tools/execution/SoilImportTool/SoilImportTool.js.map +1 -1
- package/dist/tools/execution/SoilOpenTool/SoilOpenTool.d.ts +2 -2
- package/dist/tools/execution/SoilOpenTool/SoilOpenTool.d.ts.map +1 -1
- package/dist/tools/execution/SoilOpenTool/SoilOpenTool.js +1 -1
- package/dist/tools/execution/SoilOpenTool/SoilOpenTool.js.map +1 -1
- package/dist/tools/execution/SoilPublishTool/SoilPublishTool.d.ts +2 -2
- package/dist/tools/execution/SoilPublishTool/SoilPublishTool.d.ts.map +1 -1
- package/dist/tools/execution/SoilPublishTool/SoilPublishTool.js +1 -1
- package/dist/tools/execution/SoilPublishTool/SoilPublishTool.js.map +1 -1
- package/dist/tools/execution/SoilRebuildTool/SoilRebuildTool.d.ts +2 -2
- package/dist/tools/execution/SoilRebuildTool/SoilRebuildTool.d.ts.map +1 -1
- package/dist/tools/execution/SoilRebuildTool/SoilRebuildTool.js +1 -1
- package/dist/tools/execution/SoilRebuildTool/SoilRebuildTool.js.map +1 -1
- package/dist/tools/execution/SpawnSessionTool/SpawnSessionTool.d.ts +3 -2
- package/dist/tools/execution/SpawnSessionTool/SpawnSessionTool.d.ts.map +1 -1
- package/dist/tools/execution/SpawnSessionTool/SpawnSessionTool.js +3 -2
- package/dist/tools/execution/SpawnSessionTool/SpawnSessionTool.js.map +1 -1
- package/dist/tools/execution-orchestrator.d.ts +2 -9
- package/dist/tools/execution-orchestrator.d.ts.map +1 -1
- package/dist/tools/execution-orchestrator.js.map +1 -1
- package/dist/tools/executor.d.ts +2 -0
- package/dist/tools/executor.d.ts.map +1 -1
- package/dist/tools/executor.js +163 -22
- package/dist/tools/executor.js.map +1 -1
- package/dist/tools/fs/ApplyPatchTool/ApplyPatchTool.d.ts +2 -2
- package/dist/tools/fs/ApplyPatchTool/ApplyPatchTool.d.ts.map +1 -1
- package/dist/tools/fs/ApplyPatchTool/ApplyPatchTool.js +1 -1
- package/dist/tools/fs/ApplyPatchTool/ApplyPatchTool.js.map +1 -1
- package/dist/tools/fs/FileEditTool/FileEditTool.d.ts +2 -2
- package/dist/tools/fs/FileEditTool/FileEditTool.d.ts.map +1 -1
- package/dist/tools/fs/FileEditTool/FileEditTool.js +1 -1
- package/dist/tools/fs/FileEditTool/FileEditTool.js.map +1 -1
- package/dist/tools/fs/FileWriteTool/FileWriteTool.d.ts +2 -2
- package/dist/tools/fs/FileWriteTool/FileWriteTool.d.ts.map +1 -1
- package/dist/tools/fs/FileWriteTool/FileWriteTool.js +1 -1
- package/dist/tools/fs/FileWriteTool/FileWriteTool.js.map +1 -1
- package/dist/tools/fs/GlobTool/GlobTool.d.ts +2 -2
- package/dist/tools/fs/GlobTool/GlobTool.d.ts.map +1 -1
- package/dist/tools/fs/GlobTool/GlobTool.js +23 -9
- package/dist/tools/fs/GlobTool/GlobTool.js.map +1 -1
- package/dist/tools/fs/GrepTool/GrepTool.d.ts +8 -2
- package/dist/tools/fs/GrepTool/GrepTool.d.ts.map +1 -1
- package/dist/tools/fs/GrepTool/GrepTool.js +53 -7
- package/dist/tools/fs/GrepTool/GrepTool.js.map +1 -1
- package/dist/tools/fs/GrepTool/prompt.d.ts +1 -1
- package/dist/tools/fs/GrepTool/prompt.d.ts.map +1 -1
- package/dist/tools/fs/GrepTool/prompt.js +1 -1
- package/dist/tools/fs/GrepTool/prompt.js.map +1 -1
- package/dist/tools/fs/JsonQueryTool/JsonQueryTool.d.ts +2 -2
- package/dist/tools/fs/JsonQueryTool/JsonQueryTool.d.ts.map +1 -1
- package/dist/tools/fs/JsonQueryTool/JsonQueryTool.js +20 -5
- package/dist/tools/fs/JsonQueryTool/JsonQueryTool.js.map +1 -1
- package/dist/tools/fs/JsonQueryTool/constants.d.ts +1 -0
- package/dist/tools/fs/JsonQueryTool/constants.d.ts.map +1 -1
- package/dist/tools/fs/JsonQueryTool/constants.js +1 -0
- package/dist/tools/fs/JsonQueryTool/constants.js.map +1 -1
- package/dist/tools/fs/ListDirTool/ListDirTool.d.ts +2 -2
- package/dist/tools/fs/ListDirTool/ListDirTool.d.ts.map +1 -1
- package/dist/tools/fs/ListDirTool/ListDirTool.js +7 -4
- package/dist/tools/fs/ListDirTool/ListDirTool.js.map +1 -1
- package/dist/tools/fs/ReadPulseedFileTool/ReadPulseedFileTool.d.ts +2 -2
- package/dist/tools/fs/ReadPulseedFileTool/ReadPulseedFileTool.d.ts.map +1 -1
- package/dist/tools/fs/ReadPulseedFileTool/ReadPulseedFileTool.js +1 -1
- package/dist/tools/fs/ReadPulseedFileTool/ReadPulseedFileTool.js.map +1 -1
- package/dist/tools/fs/ReadTool/ReadTool.d.ts +2 -2
- package/dist/tools/fs/ReadTool/ReadTool.d.ts.map +1 -1
- package/dist/tools/fs/ReadTool/ReadTool.js +51 -12
- package/dist/tools/fs/ReadTool/ReadTool.js.map +1 -1
- package/dist/tools/fs/WritePulseedFileTool/WritePulseedFileTool.d.ts +2 -2
- package/dist/tools/fs/WritePulseedFileTool/WritePulseedFileTool.d.ts.map +1 -1
- package/dist/tools/fs/WritePulseedFileTool/WritePulseedFileTool.js +1 -2
- package/dist/tools/fs/WritePulseedFileTool/WritePulseedFileTool.js.map +1 -1
- package/dist/tools/interaction/AskHumanTool/AskHumanTool.d.ts +75 -2
- package/dist/tools/interaction/AskHumanTool/AskHumanTool.d.ts.map +1 -1
- package/dist/tools/interaction/AskHumanTool/AskHumanTool.js +55 -6
- package/dist/tools/interaction/AskHumanTool/AskHumanTool.js.map +1 -1
- package/dist/tools/interaction/AskHumanTool/prompt.d.ts +1 -1
- package/dist/tools/interaction/AskHumanTool/prompt.d.ts.map +1 -1
- package/dist/tools/interaction/AskHumanTool/prompt.js +1 -1
- package/dist/tools/interaction/AskHumanTool/prompt.js.map +1 -1
- package/dist/tools/interaction/CreatePlanTool/CreatePlanTool.d.ts +2 -2
- package/dist/tools/interaction/CreatePlanTool/CreatePlanTool.d.ts.map +1 -1
- package/dist/tools/interaction/CreatePlanTool/CreatePlanTool.js +4 -4
- package/dist/tools/interaction/CreatePlanTool/CreatePlanTool.js.map +1 -1
- package/dist/tools/interaction/ReadPlanTool/ReadPlanTool.d.ts +2 -2
- package/dist/tools/interaction/ReadPlanTool/ReadPlanTool.d.ts.map +1 -1
- package/dist/tools/interaction/ReadPlanTool/ReadPlanTool.js +14 -5
- package/dist/tools/interaction/ReadPlanTool/ReadPlanTool.js.map +1 -1
- package/dist/tools/interaction/plan-utils.d.ts +3 -0
- package/dist/tools/interaction/plan-utils.d.ts.map +1 -1
- package/dist/tools/interaction/plan-utils.js +3 -0
- package/dist/tools/interaction/plan-utils.js.map +1 -1
- package/dist/tools/kaggle/KaggleExperimentTools.d.ts +2 -2
- package/dist/tools/kaggle/KaggleExperimentTools.d.ts.map +1 -1
- package/dist/tools/kaggle/KaggleExperimentTools.js +18 -323
- package/dist/tools/kaggle/KaggleExperimentTools.js.map +1 -1
- package/dist/tools/kaggle/KaggleSubmissionTools.d.ts +6 -6
- package/dist/tools/kaggle/KaggleSubmissionTools.d.ts.map +1 -1
- package/dist/tools/kaggle/KaggleSubmissionTools.js +13 -6
- package/dist/tools/kaggle/KaggleSubmissionTools.js.map +1 -1
- package/dist/tools/kaggle/KaggleWorkspacePrepareTool.js +6 -5
- package/dist/tools/kaggle/KaggleWorkspacePrepareTool.js.map +1 -1
- package/dist/tools/kaggle/experiment-artifacts.d.ts +16 -0
- package/dist/tools/kaggle/experiment-artifacts.d.ts.map +1 -0
- package/dist/tools/kaggle/experiment-artifacts.js +103 -0
- package/dist/tools/kaggle/experiment-artifacts.js.map +1 -0
- package/dist/tools/kaggle/metrics.d.ts +2 -2
- package/dist/tools/kaggle/metrics.js +3 -1
- package/dist/tools/kaggle/metrics.js.map +1 -1
- package/dist/tools/kaggle/paths.d.ts.map +1 -1
- package/dist/tools/kaggle/paths.js +12 -8
- package/dist/tools/kaggle/paths.js.map +1 -1
- package/dist/tools/kaggle/tee-wrapper.d.ts +2 -0
- package/dist/tools/kaggle/tee-wrapper.d.ts.map +1 -0
- package/dist/tools/kaggle/tee-wrapper.js +244 -0
- package/dist/tools/kaggle/tee-wrapper.js.map +1 -0
- package/dist/tools/media/ViewImageTool/ViewImageTool.d.ts +2 -2
- package/dist/tools/media/ViewImageTool/ViewImageTool.d.ts.map +1 -1
- package/dist/tools/media/ViewImageTool/ViewImageTool.js +1 -1
- package/dist/tools/media/ViewImageTool/ViewImageTool.js.map +1 -1
- package/dist/tools/mutation/ArchiveGoalTool/ArchiveGoalTool.d.ts +2 -2
- package/dist/tools/mutation/ArchiveGoalTool/ArchiveGoalTool.d.ts.map +1 -1
- package/dist/tools/mutation/ArchiveGoalTool/ArchiveGoalTool.js +1 -1
- package/dist/tools/mutation/ArchiveGoalTool/ArchiveGoalTool.js.map +1 -1
- package/dist/tools/mutation/ConfigureNotificationRoutingTool/ConfigureNotificationRoutingTool.d.ts +2 -2
- package/dist/tools/mutation/ConfigureNotificationRoutingTool/ConfigureNotificationRoutingTool.d.ts.map +1 -1
- package/dist/tools/mutation/ConfigureNotificationRoutingTool/ConfigureNotificationRoutingTool.js +1 -1
- package/dist/tools/mutation/ConfigureNotificationRoutingTool/ConfigureNotificationRoutingTool.js.map +1 -1
- package/dist/tools/mutation/ConfigureNotificationRoutingTool/prompt.d.ts +1 -1
- package/dist/tools/mutation/ConfigureNotificationRoutingTool/prompt.d.ts.map +1 -1
- package/dist/tools/mutation/ConfigureNotificationRoutingTool/prompt.js +1 -1
- package/dist/tools/mutation/ConfigureNotificationRoutingTool/prompt.js.map +1 -1
- package/dist/tools/mutation/DeleteGoalTool/DeleteGoalTool.d.ts +2 -2
- package/dist/tools/mutation/DeleteGoalTool/DeleteGoalTool.d.ts.map +1 -1
- package/dist/tools/mutation/DeleteGoalTool/DeleteGoalTool.js +1 -1
- package/dist/tools/mutation/DeleteGoalTool/DeleteGoalTool.js.map +1 -1
- package/dist/tools/mutation/ResetTrustTool/ResetTrustTool.d.ts +2 -2
- package/dist/tools/mutation/ResetTrustTool/ResetTrustTool.d.ts.map +1 -1
- package/dist/tools/mutation/ResetTrustTool/ResetTrustTool.js +1 -1
- package/dist/tools/mutation/ResetTrustTool/ResetTrustTool.js.map +1 -1
- package/dist/tools/mutation/SetGoalTool/SetGoalTool.d.ts +2 -2
- package/dist/tools/mutation/SetGoalTool/SetGoalTool.d.ts.map +1 -1
- package/dist/tools/mutation/SetGoalTool/SetGoalTool.js +1 -1
- package/dist/tools/mutation/SetGoalTool/SetGoalTool.js.map +1 -1
- package/dist/tools/mutation/TaskCreateTool/TaskCreateTool.d.ts +8 -8
- package/dist/tools/mutation/TaskCreateTool/TaskCreateTool.d.ts.map +1 -1
- package/dist/tools/mutation/TaskCreateTool/TaskCreateTool.js +8 -5
- package/dist/tools/mutation/TaskCreateTool/TaskCreateTool.js.map +1 -1
- package/dist/tools/mutation/TaskOutputTool/TaskOutputTool.d.ts +2 -2
- package/dist/tools/mutation/TaskOutputTool/TaskOutputTool.d.ts.map +1 -1
- package/dist/tools/mutation/TaskOutputTool/TaskOutputTool.js +3 -3
- package/dist/tools/mutation/TaskOutputTool/TaskOutputTool.js.map +1 -1
- package/dist/tools/mutation/TaskStopTool/TaskStopTool.d.ts +2 -2
- package/dist/tools/mutation/TaskStopTool/TaskStopTool.d.ts.map +1 -1
- package/dist/tools/mutation/TaskStopTool/TaskStopTool.js +3 -3
- package/dist/tools/mutation/TaskStopTool/TaskStopTool.js.map +1 -1
- package/dist/tools/mutation/TaskUpdateTool/TaskUpdateTool.d.ts +10 -10
- package/dist/tools/mutation/TaskUpdateTool/TaskUpdateTool.d.ts.map +1 -1
- package/dist/tools/mutation/TaskUpdateTool/TaskUpdateTool.js +58 -13
- package/dist/tools/mutation/TaskUpdateTool/TaskUpdateTool.js.map +1 -1
- package/dist/tools/mutation/TogglePluginTool/TogglePluginTool.d.ts +2 -2
- package/dist/tools/mutation/TogglePluginTool/TogglePluginTool.d.ts.map +1 -1
- package/dist/tools/mutation/TogglePluginTool/TogglePluginTool.js +1 -1
- package/dist/tools/mutation/TogglePluginTool/TogglePluginTool.js.map +1 -1
- package/dist/tools/mutation/UpdateConfigTool/UpdateConfigTool.d.ts +2 -2
- package/dist/tools/mutation/UpdateConfigTool/UpdateConfigTool.d.ts.map +1 -1
- package/dist/tools/mutation/UpdateConfigTool/UpdateConfigTool.js +1 -1
- package/dist/tools/mutation/UpdateConfigTool/UpdateConfigTool.js.map +1 -1
- package/dist/tools/mutation/UpdateGoalTool/UpdateGoalTool.d.ts +2 -2
- package/dist/tools/mutation/UpdateGoalTool/UpdateGoalTool.d.ts.map +1 -1
- package/dist/tools/mutation/UpdateGoalTool/UpdateGoalTool.js +1 -1
- package/dist/tools/mutation/UpdateGoalTool/UpdateGoalTool.js.map +1 -1
- package/dist/tools/mutation/task-history-utils.d.ts.map +1 -1
- package/dist/tools/mutation/task-history-utils.js +4 -7
- package/dist/tools/mutation/task-history-utils.js.map +1 -1
- package/dist/tools/network/GitHubCliTool/GitHubCliTool.d.ts +10 -10
- package/dist/tools/network/GitHubCliTool/GitHubCliTool.d.ts.map +1 -1
- package/dist/tools/network/GitHubCliTool/GitHubCliTool.js +6 -5
- package/dist/tools/network/GitHubCliTool/GitHubCliTool.js.map +1 -1
- package/dist/tools/network/HttpFetchTool/HttpFetchTool.d.ts +2 -2
- package/dist/tools/network/HttpFetchTool/HttpFetchTool.d.ts.map +1 -1
- package/dist/tools/network/HttpFetchTool/HttpFetchTool.js +19 -7
- package/dist/tools/network/HttpFetchTool/HttpFetchTool.js.map +1 -1
- package/dist/tools/network/McpStdioTool/McpStdioTool.d.ts +14 -14
- package/dist/tools/network/McpStdioTool/McpStdioTool.js +1 -1
- package/dist/tools/network/McpStdioTool/McpStdioTool.js.map +1 -1
- package/dist/tools/network/WebSearchTool/WebSearchTool.d.ts +3 -3
- package/dist/tools/network/WebSearchTool/WebSearchTool.d.ts.map +1 -1
- package/dist/tools/network/WebSearchTool/WebSearchTool.js +2 -2
- package/dist/tools/network/WebSearchTool/WebSearchTool.js.map +1 -1
- package/dist/tools/permission-grant-evaluator.d.ts +22 -0
- package/dist/tools/permission-grant-evaluator.d.ts.map +1 -0
- package/dist/tools/permission-grant-evaluator.js +289 -0
- package/dist/tools/permission-grant-evaluator.js.map +1 -0
- package/dist/tools/permission.d.ts.map +1 -1
- package/dist/tools/permission.js +21 -1
- package/dist/tools/permission.js.map +1 -1
- package/dist/tools/query/ArchitectureTool/ArchitectureTool.d.ts +2 -2
- package/dist/tools/query/ArchitectureTool/ArchitectureTool.d.ts.map +1 -1
- package/dist/tools/query/ArchitectureTool/ArchitectureTool.js +1 -1
- package/dist/tools/query/ArchitectureTool/ArchitectureTool.js.map +1 -1
- package/dist/tools/query/CodeReadContextTool/CodeReadContextTool.d.ts +262 -12
- package/dist/tools/query/CodeReadContextTool/CodeReadContextTool.d.ts.map +1 -1
- package/dist/tools/query/CodeReadContextTool/CodeReadContextTool.js +31 -13
- package/dist/tools/query/CodeReadContextTool/CodeReadContextTool.js.map +1 -1
- package/dist/tools/query/CodeSearchRepairTool/CodeSearchRepairTool.d.ts +4 -4
- package/dist/tools/query/CodeSearchRepairTool/CodeSearchRepairTool.d.ts.map +1 -1
- package/dist/tools/query/CodeSearchRepairTool/CodeSearchRepairTool.js +3 -3
- package/dist/tools/query/CodeSearchRepairTool/CodeSearchRepairTool.js.map +1 -1
- package/dist/tools/query/CodeSearchTool/CodeSearchTool.d.ts +4 -4
- package/dist/tools/query/CodeSearchTool/CodeSearchTool.d.ts.map +1 -1
- package/dist/tools/query/CodeSearchTool/CodeSearchTool.js +12 -7
- package/dist/tools/query/CodeSearchTool/CodeSearchTool.js.map +1 -1
- package/dist/tools/query/ConfigTool/ConfigTool.d.ts +3 -3
- package/dist/tools/query/ConfigTool/ConfigTool.d.ts.map +1 -1
- package/dist/tools/query/ConfigTool/ConfigTool.js +17 -29
- package/dist/tools/query/ConfigTool/ConfigTool.js.map +1 -1
- package/dist/tools/query/ConfigTool/prompt.d.ts +1 -1
- package/dist/tools/query/ConfigTool/prompt.d.ts.map +1 -1
- package/dist/tools/query/ConfigTool/prompt.js +1 -1
- package/dist/tools/query/ConfigTool/prompt.js.map +1 -1
- package/dist/tools/query/GoalStateTool/GoalStateTool.d.ts +2 -2
- package/dist/tools/query/GoalStateTool/GoalStateTool.d.ts.map +1 -1
- package/dist/tools/query/GoalStateTool/GoalStateTool.js +1 -1
- package/dist/tools/query/GoalStateTool/GoalStateTool.js.map +1 -1
- package/dist/tools/query/KnowledgeQueryTool/KnowledgeQueryTool.d.ts +2 -2
- package/dist/tools/query/KnowledgeQueryTool/KnowledgeQueryTool.d.ts.map +1 -1
- package/dist/tools/query/KnowledgeQueryTool/KnowledgeQueryTool.js +1 -1
- package/dist/tools/query/KnowledgeQueryTool/KnowledgeQueryTool.js.map +1 -1
- package/dist/tools/query/MemoryRecallTool/MemoryRecallTool.d.ts +10 -10
- package/dist/tools/query/MemoryRecallTool/MemoryRecallTool.d.ts.map +1 -1
- package/dist/tools/query/MemoryRecallTool/MemoryRecallTool.js +1 -1
- package/dist/tools/query/MemoryRecallTool/MemoryRecallTool.js.map +1 -1
- package/dist/tools/query/PluginStateTool/PluginStateTool.d.ts +2 -2
- package/dist/tools/query/PluginStateTool/PluginStateTool.d.ts.map +1 -1
- package/dist/tools/query/PluginStateTool/PluginStateTool.js +11 -7
- package/dist/tools/query/PluginStateTool/PluginStateTool.js.map +1 -1
- package/dist/tools/query/ProgressHistoryTool/ProgressHistoryTool.d.ts +2 -2
- package/dist/tools/query/ProgressHistoryTool/ProgressHistoryTool.d.ts.map +1 -1
- package/dist/tools/query/ProgressHistoryTool/ProgressHistoryTool.js +1 -1
- package/dist/tools/query/ProgressHistoryTool/ProgressHistoryTool.js.map +1 -1
- package/dist/tools/query/SessionHistoryTool/SessionHistoryTool.d.ts +8 -3
- package/dist/tools/query/SessionHistoryTool/SessionHistoryTool.d.ts.map +1 -1
- package/dist/tools/query/SessionHistoryTool/SessionHistoryTool.js +29 -53
- package/dist/tools/query/SessionHistoryTool/SessionHistoryTool.js.map +1 -1
- package/dist/tools/query/SkillSearchTool/SkillSearchTool.d.ts +2 -2
- package/dist/tools/query/SkillSearchTool/SkillSearchTool.d.ts.map +1 -1
- package/dist/tools/query/SkillSearchTool/SkillSearchTool.js +1 -1
- package/dist/tools/query/SkillSearchTool/SkillSearchTool.js.map +1 -1
- package/dist/tools/query/SoilQueryTool/SoilQueryTool.d.ts +8 -8
- package/dist/tools/query/TaskGetTool/TaskGetTool.d.ts +2 -2
- package/dist/tools/query/TaskGetTool/TaskGetTool.d.ts.map +1 -1
- package/dist/tools/query/TaskGetTool/TaskGetTool.js +2 -9
- package/dist/tools/query/TaskGetTool/TaskGetTool.js.map +1 -1
- package/dist/tools/query/TaskListTool/TaskListTool.d.ts +2 -2
- package/dist/tools/query/TaskListTool/TaskListTool.d.ts.map +1 -1
- package/dist/tools/query/TaskListTool/TaskListTool.js +2 -22
- package/dist/tools/query/TaskListTool/TaskListTool.js.map +1 -1
- package/dist/tools/query/ToolSearchTool/ToolSearchTool.d.ts +2 -2
- package/dist/tools/query/ToolSearchTool/ToolSearchTool.d.ts.map +1 -1
- package/dist/tools/query/ToolSearchTool/ToolSearchTool.js +2 -1
- package/dist/tools/query/ToolSearchTool/ToolSearchTool.js.map +1 -1
- package/dist/tools/query/TrustStateTool/TrustStateTool.d.ts +6 -3
- package/dist/tools/query/TrustStateTool/TrustStateTool.d.ts.map +1 -1
- package/dist/tools/query/TrustStateTool/TrustStateTool.js +10 -5
- package/dist/tools/query/TrustStateTool/TrustStateTool.js.map +1 -1
- package/dist/tools/query/runtime-dream-review-tool.d.ts +2 -2
- package/dist/tools/query/runtime-dream-review-tool.d.ts.map +1 -1
- package/dist/tools/query/runtime-dream-review-tool.js +1 -1
- package/dist/tools/query/runtime-dream-review-tool.js.map +1 -1
- package/dist/tools/query/runtime-session-tool-schemas.d.ts +211 -0
- package/dist/tools/query/runtime-session-tool-schemas.d.ts.map +1 -0
- package/dist/tools/query/runtime-session-tool-schemas.js +83 -0
- package/dist/tools/query/runtime-session-tool-schemas.js.map +1 -0
- package/dist/tools/query/runtime-session-tools.d.ts +72 -280
- package/dist/tools/query/runtime-session-tools.d.ts.map +1 -1
- package/dist/tools/query/runtime-session-tools.js +87 -294
- package/dist/tools/query/runtime-session-tools.js.map +1 -1
- package/dist/tools/registry.d.ts +1 -1
- package/dist/tools/registry.d.ts.map +1 -1
- package/dist/tools/registry.js +4 -2
- package/dist/tools/registry.js.map +1 -1
- package/dist/tools/runtime/LongRunningRuntimeTools.d.ts +44 -554
- package/dist/tools/runtime/LongRunningRuntimeTools.d.ts.map +1 -1
- package/dist/tools/runtime/LongRunningRuntimeTools.js +29 -226
- package/dist/tools/runtime/LongRunningRuntimeTools.js.map +1 -1
- package/dist/tools/runtime/RunSpecHandoffTools.d.ts.map +1 -1
- package/dist/tools/runtime/RunSpecHandoffTools.js +13 -12
- package/dist/tools/runtime/RunSpecHandoffTools.js.map +1 -1
- package/dist/tools/runtime/SetupRuntimeControlTools.js +28 -16
- package/dist/tools/runtime/SetupRuntimeControlTools.js.map +1 -1
- package/dist/tools/runtime/long-running-report-render.d.ts +5 -0
- package/dist/tools/runtime/long-running-report-render.d.ts.map +1 -0
- package/dist/tools/runtime/long-running-report-render.js +53 -0
- package/dist/tools/runtime/long-running-report-render.js.map +1 -0
- package/dist/tools/runtime/long-running-runtime-paths.d.ts +8 -0
- package/dist/tools/runtime/long-running-runtime-paths.d.ts.map +1 -0
- package/dist/tools/runtime/long-running-runtime-paths.js +77 -0
- package/dist/tools/runtime/long-running-runtime-paths.js.map +1 -0
- package/dist/tools/runtime/long-running-runtime-schemas.d.ts +515 -0
- package/dist/tools/runtime/long-running-runtime-schemas.d.ts.map +1 -0
- package/dist/tools/runtime/long-running-runtime-schemas.js +92 -0
- package/dist/tools/runtime/long-running-runtime-schemas.js.map +1 -0
- package/dist/tools/schedule/CreateScheduleTool/CreateScheduleTool.d.ts +509 -145
- package/dist/tools/schedule/CreateScheduleTool/CreateScheduleTool.d.ts.map +1 -1
- package/dist/tools/schedule/CreateScheduleTool/CreateScheduleTool.js +14 -14
- package/dist/tools/schedule/CreateScheduleTool/CreateScheduleTool.js.map +1 -1
- package/dist/tools/schedule/GetScheduleTool/GetScheduleTool.d.ts +2 -2
- package/dist/tools/schedule/GetScheduleTool/GetScheduleTool.d.ts.map +1 -1
- package/dist/tools/schedule/GetScheduleTool/GetScheduleTool.js +1 -1
- package/dist/tools/schedule/GetScheduleTool/GetScheduleTool.js.map +1 -1
- package/dist/tools/schedule/ListSchedulesTool/ListSchedulesTool.d.ts +6 -6
- package/dist/tools/schedule/ListSchedulesTool/ListSchedulesTool.d.ts.map +1 -1
- package/dist/tools/schedule/ListSchedulesTool/ListSchedulesTool.js +1 -1
- package/dist/tools/schedule/ListSchedulesTool/ListSchedulesTool.js.map +1 -1
- package/dist/tools/schedule/PauseScheduleTool/PauseScheduleTool.d.ts +2 -2
- package/dist/tools/schedule/PauseScheduleTool/PauseScheduleTool.d.ts.map +1 -1
- package/dist/tools/schedule/PauseScheduleTool/PauseScheduleTool.js +1 -1
- package/dist/tools/schedule/PauseScheduleTool/PauseScheduleTool.js.map +1 -1
- package/dist/tools/schedule/RemoveScheduleTool/RemoveScheduleTool.d.ts +2 -2
- package/dist/tools/schedule/RemoveScheduleTool/RemoveScheduleTool.d.ts.map +1 -1
- package/dist/tools/schedule/RemoveScheduleTool/RemoveScheduleTool.js +1 -1
- package/dist/tools/schedule/RemoveScheduleTool/RemoveScheduleTool.js.map +1 -1
- package/dist/tools/schedule/ResumeScheduleTool/ResumeScheduleTool.d.ts +2 -2
- package/dist/tools/schedule/ResumeScheduleTool/ResumeScheduleTool.d.ts.map +1 -1
- package/dist/tools/schedule/ResumeScheduleTool/ResumeScheduleTool.js +1 -1
- package/dist/tools/schedule/ResumeScheduleTool/ResumeScheduleTool.js.map +1 -1
- package/dist/tools/schedule/RunScheduleTool/RunScheduleTool.d.ts +2 -2
- package/dist/tools/schedule/RunScheduleTool/RunScheduleTool.d.ts.map +1 -1
- package/dist/tools/schedule/RunScheduleTool/RunScheduleTool.js +1 -1
- package/dist/tools/schedule/RunScheduleTool/RunScheduleTool.js.map +1 -1
- package/dist/tools/schedule/UpdateScheduleTool/UpdateScheduleTool.d.ts +594 -106
- package/dist/tools/schedule/UpdateScheduleTool/UpdateScheduleTool.d.ts.map +1 -1
- package/dist/tools/schedule/UpdateScheduleTool/UpdateScheduleTool.js +8 -8
- package/dist/tools/schedule/UpdateScheduleTool/UpdateScheduleTool.js.map +1 -1
- package/dist/tools/schedule/schedule-tool-input-schemas.d.ts +611 -0
- package/dist/tools/schedule/schedule-tool-input-schemas.d.ts.map +1 -0
- package/dist/tools/schedule/schedule-tool-input-schemas.js +152 -0
- package/dist/tools/schedule/schedule-tool-input-schemas.js.map +1 -0
- package/dist/tools/shared/parse-tool-output.d.ts.map +1 -1
- package/dist/tools/shared/parse-tool-output.js +6 -3
- package/dist/tools/shared/parse-tool-output.js.map +1 -1
- package/dist/tools/system/EnvTool/EnvTool.d.ts +6 -6
- package/dist/tools/system/EnvTool/EnvTool.d.ts.map +1 -1
- package/dist/tools/system/EnvTool/EnvTool.js +1 -1
- package/dist/tools/system/EnvTool/EnvTool.js.map +1 -1
- package/dist/tools/system/GitDiffTool/GitDiffTool.d.ts +6 -6
- package/dist/tools/system/GitDiffTool/GitDiffTool.d.ts.map +1 -1
- package/dist/tools/system/GitDiffTool/GitDiffTool.js +1 -1
- package/dist/tools/system/GitDiffTool/GitDiffTool.js.map +1 -1
- package/dist/tools/system/GitLogTool/GitLogTool.d.ts +6 -6
- package/dist/tools/system/GitLogTool/GitLogTool.d.ts.map +1 -1
- package/dist/tools/system/GitLogTool/GitLogTool.js +4 -2
- package/dist/tools/system/GitLogTool/GitLogTool.js.map +1 -1
- package/dist/tools/system/ProcessSessionTool/ProcessSessionTool.d.ts +17 -14
- package/dist/tools/system/ProcessSessionTool/ProcessSessionTool.d.ts.map +1 -1
- package/dist/tools/system/ProcessSessionTool/ProcessSessionTool.js +43 -54
- package/dist/tools/system/ProcessSessionTool/ProcessSessionTool.js.map +1 -1
- package/dist/tools/system/ProcessStatusTool/ProcessStatusTool.d.ts +3 -3
- package/dist/tools/system/ProcessStatusTool/ProcessStatusTool.d.ts.map +1 -1
- package/dist/tools/system/ProcessStatusTool/ProcessStatusTool.js +43 -10
- package/dist/tools/system/ProcessStatusTool/ProcessStatusTool.js.map +1 -1
- package/dist/tools/system/ShellCommandTool/ShellCommandTool.d.ts +2 -2
- package/dist/tools/system/ShellCommandTool/ShellCommandTool.d.ts.map +1 -1
- package/dist/tools/system/ShellCommandTool/ShellCommandTool.js +4 -4
- package/dist/tools/system/ShellCommandTool/ShellCommandTool.js.map +1 -1
- package/dist/tools/system/ShellTool/ShellTool.d.ts +5 -2
- package/dist/tools/system/ShellTool/ShellTool.d.ts.map +1 -1
- package/dist/tools/system/ShellTool/ShellTool.js +11 -4
- package/dist/tools/system/ShellTool/ShellTool.js.map +1 -1
- package/dist/tools/system/ShellTool/command-policy.d.ts +1 -0
- package/dist/tools/system/ShellTool/command-policy.d.ts.map +1 -1
- package/dist/tools/system/ShellTool/command-policy.js +10 -0
- package/dist/tools/system/ShellTool/command-policy.js.map +1 -1
- package/dist/tools/system/ShellTool/prompt.d.ts +1 -1
- package/dist/tools/system/ShellTool/prompt.d.ts.map +1 -1
- package/dist/tools/system/ShellTool/prompt.js +1 -1
- package/dist/tools/system/ShellTool/prompt.js.map +1 -1
- package/dist/tools/system/SleepTool/SleepTool.d.ts +2 -2
- package/dist/tools/system/SleepTool/SleepTool.d.ts.map +1 -1
- package/dist/tools/system/SleepTool/SleepTool.js +1 -1
- package/dist/tools/system/SleepTool/SleepTool.js.map +1 -1
- package/dist/tools/system/TestRunnerTool/TestRunnerTool.d.ts +8 -6
- package/dist/tools/system/TestRunnerTool/TestRunnerTool.d.ts.map +1 -1
- package/dist/tools/system/TestRunnerTool/TestRunnerTool.js +59 -44
- package/dist/tools/system/TestRunnerTool/TestRunnerTool.js.map +1 -1
- package/dist/tools/system/UpdatePlanTool/UpdatePlanTool.d.ts +4 -4
- package/dist/tools/system/UpdatePlanTool/UpdatePlanTool.d.ts.map +1 -1
- package/dist/tools/system/UpdatePlanTool/UpdatePlanTool.js +6 -5
- package/dist/tools/system/UpdatePlanTool/UpdatePlanTool.js.map +1 -1
- package/dist/tools/tool-definition-adapter.d.ts.map +1 -1
- package/dist/tools/tool-definition-adapter.js +189 -20
- package/dist/tools/tool-definition-adapter.js.map +1 -1
- package/dist/tools/types.d.ts +100 -7
- package/dist/tools/types.d.ts.map +1 -1
- package/dist/tools/types.js +26 -8
- package/dist/tools/types.js.map +1 -1
- package/package.json +10 -3
- package/dist/base/state/state-lock.d.ts +0 -17
- package/dist/base/state/state-lock.d.ts.map +0 -1
- package/dist/base/state/state-lock.js +0 -134
- package/dist/base/state/state-lock.js.map +0 -1
- package/dist/base/state/state-manager-goal-state.d.ts +0 -40
- package/dist/base/state/state-manager-goal-state.d.ts.map +0 -1
- package/dist/base/state/state-manager-goal-state.js +0 -235
- package/dist/base/state/state-manager-goal-state.js.map +0 -1
- package/dist/base/state/state-manager-goal-write.d.ts +0 -26
- package/dist/base/state/state-manager-goal-write.d.ts.map +0 -1
- package/dist/base/state/state-manager-goal-write.js +0 -116
- package/dist/base/state/state-manager-goal-write.js.map +0 -1
- package/dist/base/state/state-manager-wal.d.ts +0 -11
- package/dist/base/state/state-manager-wal.d.ts.map +0 -1
- package/dist/base/state/state-manager-wal.js +0 -101
- package/dist/base/state/state-manager-wal.js.map +0 -1
- package/dist/base/state/state-wal.d.ts.map +0 -1
- package/dist/base/state/state-wal.js.map +0 -1
- package/dist/interface/chat/freeform-route-classifier.d.ts +0 -21
- package/dist/interface/chat/freeform-route-classifier.d.ts.map +0 -1
- package/dist/interface/chat/freeform-route-classifier.js +0 -43
- package/dist/interface/chat/freeform-route-classifier.js.map +0 -1
- package/dist/orchestrator/ethics-gate.d.ts +0 -3
- package/dist/orchestrator/ethics-gate.d.ts.map +0 -1
- package/dist/orchestrator/ethics-gate.js +0 -2
- package/dist/orchestrator/ethics-gate.js.map +0 -1
- package/dist/orchestrator/loop/core-loop/capability.d.ts +0 -2
- package/dist/orchestrator/loop/core-loop/capability.d.ts.map +0 -1
- package/dist/orchestrator/loop/core-loop/capability.js +0 -2
- package/dist/orchestrator/loop/core-loop/capability.js.map +0 -1
- package/dist/orchestrator/loop/core-loop/contracts.d.ts +0 -2
- package/dist/orchestrator/loop/core-loop/contracts.d.ts.map +0 -1
- package/dist/orchestrator/loop/core-loop/contracts.js +0 -2
- package/dist/orchestrator/loop/core-loop/contracts.js.map +0 -1
- package/dist/orchestrator/loop/core-loop/control.d.ts +0 -2
- package/dist/orchestrator/loop/core-loop/control.d.ts.map +0 -1
- package/dist/orchestrator/loop/core-loop/control.js +0 -2
- package/dist/orchestrator/loop/core-loop/control.js.map +0 -1
- package/dist/orchestrator/loop/core-loop/decision-engine.d.ts +0 -2
- package/dist/orchestrator/loop/core-loop/decision-engine.d.ts.map +0 -1
- package/dist/orchestrator/loop/core-loop/decision-engine.js +0 -2
- package/dist/orchestrator/loop/core-loop/decision-engine.js.map +0 -1
- package/dist/orchestrator/loop/core-loop/dream-review-checkpoint.d.ts +0 -2
- package/dist/orchestrator/loop/core-loop/dream-review-checkpoint.d.ts.map +0 -1
- package/dist/orchestrator/loop/core-loop/dream-review-checkpoint.js +0 -2
- package/dist/orchestrator/loop/core-loop/dream-review-checkpoint.js.map +0 -1
- package/dist/orchestrator/loop/core-loop/evidence-ledger.d.ts +0 -2
- package/dist/orchestrator/loop/core-loop/evidence-ledger.d.ts.map +0 -1
- package/dist/orchestrator/loop/core-loop/evidence-ledger.js +0 -2
- package/dist/orchestrator/loop/core-loop/evidence-ledger.js.map +0 -1
- package/dist/orchestrator/loop/core-loop/iteration-kernel-knowledge.d.ts +0 -2
- package/dist/orchestrator/loop/core-loop/iteration-kernel-knowledge.d.ts.map +0 -1
- package/dist/orchestrator/loop/core-loop/iteration-kernel-knowledge.js +0 -2
- package/dist/orchestrator/loop/core-loop/iteration-kernel-knowledge.js.map +0 -1
- package/dist/orchestrator/loop/core-loop/iteration-kernel-wait.d.ts +0 -2
- package/dist/orchestrator/loop/core-loop/iteration-kernel-wait.d.ts.map +0 -1
- package/dist/orchestrator/loop/core-loop/iteration-kernel-wait.js +0 -2
- package/dist/orchestrator/loop/core-loop/iteration-kernel-wait.js.map +0 -1
- package/dist/orchestrator/loop/core-loop/iteration-kernel.d.ts +0 -2
- package/dist/orchestrator/loop/core-loop/iteration-kernel.d.ts.map +0 -1
- package/dist/orchestrator/loop/core-loop/iteration-kernel.js +0 -2
- package/dist/orchestrator/loop/core-loop/iteration-kernel.js.map +0 -1
- package/dist/orchestrator/loop/core-loop/learning.d.ts +0 -2
- package/dist/orchestrator/loop/core-loop/learning.d.ts.map +0 -1
- package/dist/orchestrator/loop/core-loop/learning.js +0 -2
- package/dist/orchestrator/loop/core-loop/learning.js.map +0 -1
- package/dist/orchestrator/loop/core-loop/phase-policy.d.ts +0 -2
- package/dist/orchestrator/loop/core-loop/phase-policy.d.ts.map +0 -1
- package/dist/orchestrator/loop/core-loop/phase-policy.js +0 -2
- package/dist/orchestrator/loop/core-loop/phase-policy.js.map +0 -1
- package/dist/orchestrator/loop/core-loop/phase-runtime.d.ts +0 -2
- package/dist/orchestrator/loop/core-loop/phase-runtime.d.ts.map +0 -1
- package/dist/orchestrator/loop/core-loop/phase-runtime.js +0 -2
- package/dist/orchestrator/loop/core-loop/phase-runtime.js.map +0 -1
- package/dist/orchestrator/loop/core-loop/phase-specs.d.ts +0 -2
- package/dist/orchestrator/loop/core-loop/phase-specs.d.ts.map +0 -1
- package/dist/orchestrator/loop/core-loop/phase-specs.js +0 -2
- package/dist/orchestrator/loop/core-loop/phase-specs.js.map +0 -1
- package/dist/orchestrator/loop/core-loop/preparation.d.ts +0 -2
- package/dist/orchestrator/loop/core-loop/preparation.d.ts.map +0 -1
- package/dist/orchestrator/loop/core-loop/preparation.js +0 -2
- package/dist/orchestrator/loop/core-loop/preparation.js.map +0 -1
- package/dist/orchestrator/loop/core-loop/public-research.d.ts +0 -2
- package/dist/orchestrator/loop/core-loop/public-research.d.ts.map +0 -1
- package/dist/orchestrator/loop/core-loop/public-research.js +0 -2
- package/dist/orchestrator/loop/core-loop/public-research.js.map +0 -1
- package/dist/orchestrator/loop/core-loop/task-cycle-stall.d.ts +0 -2
- package/dist/orchestrator/loop/core-loop/task-cycle-stall.d.ts.map +0 -1
- package/dist/orchestrator/loop/core-loop/task-cycle-stall.js +0 -2
- package/dist/orchestrator/loop/core-loop/task-cycle-stall.js.map +0 -1
- package/dist/orchestrator/loop/core-loop/task-cycle-wait.d.ts +0 -2
- package/dist/orchestrator/loop/core-loop/task-cycle-wait.d.ts.map +0 -1
- package/dist/orchestrator/loop/core-loop/task-cycle-wait.js +0 -2
- package/dist/orchestrator/loop/core-loop/task-cycle-wait.js.map +0 -1
- package/dist/orchestrator/loop/core-loop/task-cycle.d.ts +0 -2
- package/dist/orchestrator/loop/core-loop/task-cycle.d.ts.map +0 -1
- package/dist/orchestrator/loop/core-loop/task-cycle.js +0 -2
- package/dist/orchestrator/loop/core-loop/task-cycle.js.map +0 -1
- package/dist/platform/dream/dream-log-store.d.ts +0 -22
- package/dist/platform/dream/dream-log-store.d.ts.map +0 -1
- package/dist/platform/dream/dream-log-store.js +0 -150
- package/dist/platform/dream/dream-log-store.js.map +0 -1
- package/dist/platform/ethics-gate.d.ts +0 -2
- package/dist/platform/ethics-gate.d.ts.map +0 -1
- package/dist/platform/ethics-gate.js +0 -2
- package/dist/platform/ethics-gate.js.map +0 -1
|
@@ -0,0 +1,1352 @@
|
|
|
1
|
+
import { z } from "zod";
|
|
2
|
+
import { GovernedMemoryAllowedUseClassSchema, GovernedMemoryBlockedUseClassSchema, GovernedMemoryCorrectionStateSchema, GovernedMemoryCorrectionEventSchema, GovernedMemoryForbiddenUseClassSchema, GovernedMemoryLifecycleSchema, GovernedMemoryOwnerRefSchema, GovernedMemoryRecordKindSchema, GovernedMemoryRoleSchema, GovernedMemorySensitivitySchema, } from "../platform/profile/governed-memory.js";
|
|
3
|
+
import { expectedLaneForRole, hasRationaleForSource, isForbiddenRequestedUse, isSurfaceProjectableLifecycle, rationaleRefForSource, relationshipPermissionSourceMatches, surfaceMemorySourceMatches, surfaceSourceRefKey, uniqueBlockedUseClasses, uniqueStrings, validateContextSourcesSelected, validateRationaleSourcesSelected, } from "./surface-contract-source-helpers.js";
|
|
4
|
+
export const SurfaceProjectionTargetSchema = z.enum([
|
|
5
|
+
"chat",
|
|
6
|
+
"tui",
|
|
7
|
+
"cli",
|
|
8
|
+
"daemon",
|
|
9
|
+
"gateway",
|
|
10
|
+
"gui",
|
|
11
|
+
"agent_loop",
|
|
12
|
+
"core_loop",
|
|
13
|
+
]);
|
|
14
|
+
export const SurfaceRequestedUseSchema = z.union([
|
|
15
|
+
GovernedMemoryAllowedUseClassSchema,
|
|
16
|
+
GovernedMemoryForbiddenUseClassSchema,
|
|
17
|
+
]);
|
|
18
|
+
export const SurfaceLaneSchema = z.enum([
|
|
19
|
+
"knowledge",
|
|
20
|
+
"work_memory",
|
|
21
|
+
"relationship",
|
|
22
|
+
"boundary",
|
|
23
|
+
"promise",
|
|
24
|
+
"tension",
|
|
25
|
+
"anti_memory",
|
|
26
|
+
"exclusion",
|
|
27
|
+
]);
|
|
28
|
+
export const SurfaceIncludedLaneSchema = z.enum([
|
|
29
|
+
"knowledge",
|
|
30
|
+
"work_memory",
|
|
31
|
+
"relationship",
|
|
32
|
+
"boundary",
|
|
33
|
+
"promise",
|
|
34
|
+
"tension",
|
|
35
|
+
"anti_memory",
|
|
36
|
+
]);
|
|
37
|
+
export const SurfaceGateKindSchema = z.enum([
|
|
38
|
+
"scope",
|
|
39
|
+
"lifecycle",
|
|
40
|
+
"staleness",
|
|
41
|
+
"sensitivity",
|
|
42
|
+
"permission",
|
|
43
|
+
"allowed_use",
|
|
44
|
+
"forbidden_use",
|
|
45
|
+
"projection",
|
|
46
|
+
"audit",
|
|
47
|
+
]);
|
|
48
|
+
export const SURFACE_GATE_ORDER = [
|
|
49
|
+
"scope",
|
|
50
|
+
"lifecycle",
|
|
51
|
+
"staleness",
|
|
52
|
+
"sensitivity",
|
|
53
|
+
"permission",
|
|
54
|
+
"allowed_use",
|
|
55
|
+
"forbidden_use",
|
|
56
|
+
"projection",
|
|
57
|
+
"audit",
|
|
58
|
+
];
|
|
59
|
+
export const SurfaceGateStatusSchema = z.enum(["passed", "blocked", "unknown"]);
|
|
60
|
+
export const SurfaceDependencyKindSchema = z.enum([
|
|
61
|
+
"memory_record",
|
|
62
|
+
"permission_grant",
|
|
63
|
+
"runtime_item",
|
|
64
|
+
"agenda_item",
|
|
65
|
+
"urge_candidate",
|
|
66
|
+
"outcome_decision",
|
|
67
|
+
"expression_decision",
|
|
68
|
+
"memory_write_candidate",
|
|
69
|
+
"session_resume_attempt",
|
|
70
|
+
"audit_trace",
|
|
71
|
+
]);
|
|
72
|
+
export const SurfaceDependencyRefSchema = z.object({
|
|
73
|
+
kind: SurfaceDependencyKindSchema,
|
|
74
|
+
ref: z.string().min(1),
|
|
75
|
+
owning_store_ref: GovernedMemoryOwnerRefSchema.optional(),
|
|
76
|
+
content_state: z.enum(["materialized", "redacted"]).default("materialized"),
|
|
77
|
+
lifecycle: GovernedMemoryLifecycleSchema.optional(),
|
|
78
|
+
correction_state: GovernedMemoryCorrectionStateSchema.optional(),
|
|
79
|
+
superseded_by_memory_id: z.string().min(1).nullable().optional(),
|
|
80
|
+
surface_ref: z.string().min(1).optional(),
|
|
81
|
+
}).strict();
|
|
82
|
+
const SurfaceRedactedDomainFieldsSchema = z.object({
|
|
83
|
+
redaction_ref: z.string().min(1),
|
|
84
|
+
reason: z.enum(["sensitive", "tombstoned", "deleted", "permission_revoked", "scope_excluded"]),
|
|
85
|
+
}).strict();
|
|
86
|
+
export const SurfaceMemorySourceRefSchema = z.object({
|
|
87
|
+
memory_id: z.string().min(1),
|
|
88
|
+
owning_store_ref: GovernedMemoryOwnerRefSchema,
|
|
89
|
+
role: GovernedMemoryRoleSchema,
|
|
90
|
+
record_kind: GovernedMemoryRecordKindSchema,
|
|
91
|
+
domain_fields: z.record(z.unknown()),
|
|
92
|
+
allowed_uses: z.array(GovernedMemoryAllowedUseClassSchema).min(1),
|
|
93
|
+
not_allowed_uses: z.array(GovernedMemoryBlockedUseClassSchema).default([]),
|
|
94
|
+
lifecycle: GovernedMemoryLifecycleSchema,
|
|
95
|
+
correction_state: GovernedMemoryCorrectionStateSchema.default("current"),
|
|
96
|
+
superseded_by_memory_id: z.string().min(1).nullable().default(null),
|
|
97
|
+
sensitivity: GovernedMemorySensitivitySchema,
|
|
98
|
+
content_state: z.enum(["materialized", "redacted"]),
|
|
99
|
+
dependency_ref: SurfaceDependencyRefSchema,
|
|
100
|
+
}).strict().superRefine((source, ctx) => {
|
|
101
|
+
if (source.dependency_ref.kind !== "memory_record") {
|
|
102
|
+
ctx.addIssue({
|
|
103
|
+
code: z.ZodIssueCode.custom,
|
|
104
|
+
path: ["dependency_ref", "kind"],
|
|
105
|
+
message: "Surface memory source refs must depend on a memory_record ref",
|
|
106
|
+
});
|
|
107
|
+
}
|
|
108
|
+
if (source.dependency_ref.ref !== source.memory_id) {
|
|
109
|
+
ctx.addIssue({
|
|
110
|
+
code: z.ZodIssueCode.custom,
|
|
111
|
+
path: ["dependency_ref", "ref"],
|
|
112
|
+
message: "Surface memory source dependency ref must match memory_id",
|
|
113
|
+
});
|
|
114
|
+
}
|
|
115
|
+
if (!source.dependency_ref.owning_store_ref) {
|
|
116
|
+
ctx.addIssue({
|
|
117
|
+
code: z.ZodIssueCode.custom,
|
|
118
|
+
path: ["dependency_ref", "owning_store_ref"],
|
|
119
|
+
message: "Surface memory source dependency owner is required",
|
|
120
|
+
});
|
|
121
|
+
}
|
|
122
|
+
else if (JSON.stringify(source.dependency_ref.owning_store_ref) !== JSON.stringify(source.owning_store_ref)) {
|
|
123
|
+
ctx.addIssue({
|
|
124
|
+
code: z.ZodIssueCode.custom,
|
|
125
|
+
path: ["dependency_ref", "owning_store_ref"],
|
|
126
|
+
message: "Surface memory source dependency owner must match owning_store_ref",
|
|
127
|
+
});
|
|
128
|
+
}
|
|
129
|
+
if (!source.dependency_ref.lifecycle) {
|
|
130
|
+
ctx.addIssue({
|
|
131
|
+
code: z.ZodIssueCode.custom,
|
|
132
|
+
path: ["dependency_ref", "lifecycle"],
|
|
133
|
+
message: "Surface memory source dependency lifecycle is required",
|
|
134
|
+
});
|
|
135
|
+
}
|
|
136
|
+
else if (source.dependency_ref.lifecycle !== source.lifecycle) {
|
|
137
|
+
ctx.addIssue({
|
|
138
|
+
code: z.ZodIssueCode.custom,
|
|
139
|
+
path: ["dependency_ref", "lifecycle"],
|
|
140
|
+
message: "Surface memory source dependency lifecycle must match source lifecycle",
|
|
141
|
+
});
|
|
142
|
+
}
|
|
143
|
+
if (!source.dependency_ref.correction_state) {
|
|
144
|
+
ctx.addIssue({
|
|
145
|
+
code: z.ZodIssueCode.custom,
|
|
146
|
+
path: ["dependency_ref", "correction_state"],
|
|
147
|
+
message: "Surface memory source dependency correction state is required",
|
|
148
|
+
});
|
|
149
|
+
}
|
|
150
|
+
else if (source.dependency_ref.correction_state !== source.correction_state) {
|
|
151
|
+
ctx.addIssue({
|
|
152
|
+
code: z.ZodIssueCode.custom,
|
|
153
|
+
path: ["dependency_ref", "correction_state"],
|
|
154
|
+
message: "Surface memory source dependency correction state must match source correction state",
|
|
155
|
+
});
|
|
156
|
+
}
|
|
157
|
+
if (source.dependency_ref.superseded_by_memory_id !== source.superseded_by_memory_id) {
|
|
158
|
+
ctx.addIssue({
|
|
159
|
+
code: z.ZodIssueCode.custom,
|
|
160
|
+
path: ["dependency_ref", "superseded_by_memory_id"],
|
|
161
|
+
message: "Surface memory source dependency supersession ref must match source supersession ref",
|
|
162
|
+
});
|
|
163
|
+
}
|
|
164
|
+
if (source.dependency_ref.content_state !== source.content_state) {
|
|
165
|
+
ctx.addIssue({
|
|
166
|
+
code: z.ZodIssueCode.custom,
|
|
167
|
+
path: ["dependency_ref", "content_state"],
|
|
168
|
+
message: "Surface memory source dependency content state must match source content state",
|
|
169
|
+
});
|
|
170
|
+
}
|
|
171
|
+
if ((source.lifecycle === "tombstoned" || source.lifecycle === "deleted") && source.content_state !== "redacted") {
|
|
172
|
+
ctx.addIssue({
|
|
173
|
+
code: z.ZodIssueCode.custom,
|
|
174
|
+
path: ["content_state"],
|
|
175
|
+
message: "deleted or tombstoned Surface source refs must be redacted",
|
|
176
|
+
});
|
|
177
|
+
}
|
|
178
|
+
if (source.correction_state === "deleted" && source.content_state !== "redacted") {
|
|
179
|
+
ctx.addIssue({
|
|
180
|
+
code: z.ZodIssueCode.custom,
|
|
181
|
+
path: ["content_state"],
|
|
182
|
+
message: "deleted correction-state Surface source refs must be redacted",
|
|
183
|
+
});
|
|
184
|
+
}
|
|
185
|
+
const usesRedactedContent = source.content_state === "redacted"
|
|
186
|
+
|| source.lifecycle === "tombstoned"
|
|
187
|
+
|| source.lifecycle === "deleted"
|
|
188
|
+
|| source.correction_state === "deleted";
|
|
189
|
+
if (usesRedactedContent && !SurfaceRedactedDomainFieldsSchema.safeParse(source.domain_fields).success) {
|
|
190
|
+
ctx.addIssue({
|
|
191
|
+
code: z.ZodIssueCode.custom,
|
|
192
|
+
path: ["domain_fields"],
|
|
193
|
+
message: "redacted, tombstoned, or deleted Surface source refs must expose only non-content redaction metadata",
|
|
194
|
+
});
|
|
195
|
+
}
|
|
196
|
+
});
|
|
197
|
+
export const RelationshipPermissionSourceRefSchema = z.object({
|
|
198
|
+
memory_id: z.string().min(1),
|
|
199
|
+
owning_store_ref: GovernedMemoryOwnerRefSchema,
|
|
200
|
+
}).strict();
|
|
201
|
+
export const SurfaceGateResultSchema = z.object({
|
|
202
|
+
gate: SurfaceGateKindSchema,
|
|
203
|
+
status: SurfaceGateStatusSchema,
|
|
204
|
+
reason_ref: z.string().min(1).optional(),
|
|
205
|
+
evaluated_at: z.string().datetime(),
|
|
206
|
+
}).strict();
|
|
207
|
+
export const RelationshipPermissionSchema = z.object({
|
|
208
|
+
permission_id: z.string().min(1),
|
|
209
|
+
context_scope: z.string().min(1),
|
|
210
|
+
memory_role_scope: z.array(GovernedMemoryRoleSchema).min(1),
|
|
211
|
+
observation_permission: z.enum(["allowed", "blocked", "unknown"]),
|
|
212
|
+
memory_use_permission: z.enum(["allowed", "blocked", "unknown"]),
|
|
213
|
+
speakability: z.enum(["allowed", "blocked", "ask_first"]),
|
|
214
|
+
proactive_permission: z.enum(["allowed", "blocked", "ask_first"]),
|
|
215
|
+
interruption_tolerance: z.enum(["none", "low", "medium", "high"]),
|
|
216
|
+
autonomy_level: z.enum(["observe_only", "ask_first", "quiet_work", "act_within_scope"]),
|
|
217
|
+
confirmation_requirement: z.enum(["none", "before_speech", "before_action", "before_resume"]),
|
|
218
|
+
emotional_language_boundary: z.enum(["neutral", "warm", "avoid"]),
|
|
219
|
+
preferred_expression_modes: z.array(z.string().min(1)).default([]),
|
|
220
|
+
forbidden_moves: z.array(z.string().min(1)).default([]),
|
|
221
|
+
valid_from: z.string().datetime(),
|
|
222
|
+
valid_to: z.string().datetime().nullable().default(null),
|
|
223
|
+
source_refs: z.array(RelationshipPermissionSourceRefSchema).min(1),
|
|
224
|
+
}).strict();
|
|
225
|
+
const SurfaceIncludedContextSchemaBase = z.object({
|
|
226
|
+
lane: SurfaceLaneSchema,
|
|
227
|
+
source_ref: SurfaceMemorySourceRefSchema,
|
|
228
|
+
use_class: GovernedMemoryAllowedUseClassSchema,
|
|
229
|
+
excerpt: z.string().min(1),
|
|
230
|
+
gates: z.array(SurfaceGateResultSchema).min(1),
|
|
231
|
+
}).strict();
|
|
232
|
+
export const SurfaceIncludedContextSchema = SurfaceIncludedContextSchemaBase.superRefine((context, ctx) => {
|
|
233
|
+
if (context.lane === "exclusion") {
|
|
234
|
+
ctx.addIssue({
|
|
235
|
+
code: z.ZodIssueCode.custom,
|
|
236
|
+
path: ["lane"],
|
|
237
|
+
message: "included Surface context cannot use the Exclusion lane",
|
|
238
|
+
});
|
|
239
|
+
}
|
|
240
|
+
if (context.lane !== expectedLaneForRole(context.source_ref.role)) {
|
|
241
|
+
ctx.addIssue({
|
|
242
|
+
code: z.ZodIssueCode.custom,
|
|
243
|
+
path: ["lane"],
|
|
244
|
+
message: "included Surface lane must match the governed memory role lane",
|
|
245
|
+
});
|
|
246
|
+
}
|
|
247
|
+
if (context.source_ref.role === "seed") {
|
|
248
|
+
ctx.addIssue({
|
|
249
|
+
code: z.ZodIssueCode.custom,
|
|
250
|
+
path: ["source_ref", "role"],
|
|
251
|
+
message: "seed memory cannot be included as Surface context before owner acceptance",
|
|
252
|
+
});
|
|
253
|
+
}
|
|
254
|
+
if (!context.source_ref.allowed_uses.includes(context.use_class)) {
|
|
255
|
+
ctx.addIssue({
|
|
256
|
+
code: z.ZodIssueCode.custom,
|
|
257
|
+
path: ["use_class"],
|
|
258
|
+
message: "included Surface context use_class must be allowed by the source ref",
|
|
259
|
+
});
|
|
260
|
+
}
|
|
261
|
+
if (context.source_ref.content_state === "redacted") {
|
|
262
|
+
ctx.addIssue({
|
|
263
|
+
code: z.ZodIssueCode.custom,
|
|
264
|
+
path: ["excerpt"],
|
|
265
|
+
message: "included Surface context cannot expose redacted source content",
|
|
266
|
+
});
|
|
267
|
+
}
|
|
268
|
+
if (context.source_ref.sensitivity === "sensitive") {
|
|
269
|
+
ctx.addIssue({
|
|
270
|
+
code: z.ZodIssueCode.custom,
|
|
271
|
+
path: ["source_ref", "sensitivity"],
|
|
272
|
+
message: "sensitive source content must be excluded or represented as inhibition, not included directly",
|
|
273
|
+
});
|
|
274
|
+
}
|
|
275
|
+
if (!isSurfaceProjectableLifecycle(context.source_ref.lifecycle)) {
|
|
276
|
+
ctx.addIssue({
|
|
277
|
+
code: z.ZodIssueCode.custom,
|
|
278
|
+
path: ["source_ref", "lifecycle"],
|
|
279
|
+
message: "included Surface context requires active or matured source lifecycle",
|
|
280
|
+
});
|
|
281
|
+
}
|
|
282
|
+
if (context.source_ref.correction_state !== "current" || context.source_ref.superseded_by_memory_id !== null) {
|
|
283
|
+
ctx.addIssue({
|
|
284
|
+
code: z.ZodIssueCode.custom,
|
|
285
|
+
path: ["source_ref", "correction_state"],
|
|
286
|
+
message: "corrected, superseded, retracted, deleted, or replaced Surface sources cannot be included",
|
|
287
|
+
});
|
|
288
|
+
}
|
|
289
|
+
const gateCounts = new Map();
|
|
290
|
+
const gateStatuses = new Map();
|
|
291
|
+
for (const gate of context.gates) {
|
|
292
|
+
gateCounts.set(gate.gate, (gateCounts.get(gate.gate) ?? 0) + 1);
|
|
293
|
+
gateStatuses.set(gate.gate, gate.status);
|
|
294
|
+
}
|
|
295
|
+
const duplicateGate = SURFACE_GATE_ORDER.find((gateName) => (gateCounts.get(gateName) ?? 0) > 1);
|
|
296
|
+
if (duplicateGate) {
|
|
297
|
+
ctx.addIssue({
|
|
298
|
+
code: z.ZodIssueCode.custom,
|
|
299
|
+
path: ["gates"],
|
|
300
|
+
message: `included Surface context must not duplicate ${duplicateGate} gate results`,
|
|
301
|
+
});
|
|
302
|
+
}
|
|
303
|
+
const nonPassedGate = context.gates.find((gate) => gate.status !== "passed");
|
|
304
|
+
if (nonPassedGate) {
|
|
305
|
+
ctx.addIssue({
|
|
306
|
+
code: z.ZodIssueCode.custom,
|
|
307
|
+
path: ["gates"],
|
|
308
|
+
message: `included Surface context cannot include ${nonPassedGate.status} ${nonPassedGate.gate} gate`,
|
|
309
|
+
});
|
|
310
|
+
}
|
|
311
|
+
const missingGate = SURFACE_GATE_ORDER.find((gateName) => gateStatuses.get(gateName) !== "passed");
|
|
312
|
+
if (missingGate) {
|
|
313
|
+
ctx.addIssue({
|
|
314
|
+
code: z.ZodIssueCode.custom,
|
|
315
|
+
path: ["gates"],
|
|
316
|
+
message: `included Surface context requires passed ${missingGate} gate`,
|
|
317
|
+
});
|
|
318
|
+
}
|
|
319
|
+
});
|
|
320
|
+
export const SurfaceExcludedContextSchema = z.object({
|
|
321
|
+
lane: z.literal("exclusion").default("exclusion"),
|
|
322
|
+
source_ref: SurfaceMemorySourceRefSchema,
|
|
323
|
+
requested_use: SurfaceRequestedUseSchema,
|
|
324
|
+
blocked_by: z.array(SurfaceGateResultSchema).min(1),
|
|
325
|
+
inhibition_ref: z.string().min(1).optional(),
|
|
326
|
+
blocked_summary_ref: z.string().min(1).optional(),
|
|
327
|
+
redaction_ref: z.string().min(1).optional(),
|
|
328
|
+
}).strict().superRefine((context, ctx) => {
|
|
329
|
+
if (context.blocked_by.some((gate) => gate.status === "passed")) {
|
|
330
|
+
ctx.addIssue({
|
|
331
|
+
code: z.ZodIssueCode.custom,
|
|
332
|
+
path: ["blocked_by"],
|
|
333
|
+
message: "excluded Surface context must be backed by blocked or unknown gates",
|
|
334
|
+
});
|
|
335
|
+
}
|
|
336
|
+
if (context.source_ref.content_state === "redacted" && !context.redaction_ref) {
|
|
337
|
+
ctx.addIssue({
|
|
338
|
+
code: z.ZodIssueCode.custom,
|
|
339
|
+
path: ["redaction_ref"],
|
|
340
|
+
message: "redacted excluded context must expose only a redaction ref",
|
|
341
|
+
});
|
|
342
|
+
}
|
|
343
|
+
if ((context.source_ref.lifecycle === "tombstoned" || context.source_ref.lifecycle === "deleted") && !context.redaction_ref) {
|
|
344
|
+
ctx.addIssue({
|
|
345
|
+
code: z.ZodIssueCode.custom,
|
|
346
|
+
path: ["redaction_ref"],
|
|
347
|
+
message: "deleted or tombstoned excluded context must expose only a redaction ref",
|
|
348
|
+
});
|
|
349
|
+
}
|
|
350
|
+
});
|
|
351
|
+
export const SurfaceProjectionRationaleEntrySchema = z.object({
|
|
352
|
+
source_ref: SurfaceMemorySourceRefSchema,
|
|
353
|
+
decision: z.enum(["included", "excluded"]),
|
|
354
|
+
gate: SurfaceGateKindSchema,
|
|
355
|
+
reason_ref: z.string().min(1),
|
|
356
|
+
policy_refs: z.array(z.string().min(1)).default([]),
|
|
357
|
+
redaction_ref: z.string().min(1).optional(),
|
|
358
|
+
}).strict().superRefine((entry, ctx) => {
|
|
359
|
+
const redactionRequired = entry.source_ref.content_state === "redacted"
|
|
360
|
+
|| entry.source_ref.lifecycle === "tombstoned"
|
|
361
|
+
|| entry.source_ref.lifecycle === "deleted";
|
|
362
|
+
if (redactionRequired && !entry.redaction_ref) {
|
|
363
|
+
ctx.addIssue({
|
|
364
|
+
code: z.ZodIssueCode.custom,
|
|
365
|
+
path: ["redaction_ref"],
|
|
366
|
+
message: "rationale for redacted or removed sources must use a redaction ref",
|
|
367
|
+
});
|
|
368
|
+
}
|
|
369
|
+
});
|
|
370
|
+
export const SurfaceDerivedRuntimeRefSchema = z.object({
|
|
371
|
+
kind: z.enum([
|
|
372
|
+
"runtime_item",
|
|
373
|
+
"agenda_item",
|
|
374
|
+
"outcome_decision",
|
|
375
|
+
"expression_decision",
|
|
376
|
+
"memory_write_candidate",
|
|
377
|
+
"session_resume_attempt",
|
|
378
|
+
]),
|
|
379
|
+
ref: z.string().min(1),
|
|
380
|
+
related_surface_refs: z.array(z.string().min(1)).min(1),
|
|
381
|
+
related_memory_refs: z.array(z.string().min(1)).default([]),
|
|
382
|
+
permission_check_refs: z.array(z.string().min(1)).default([]),
|
|
383
|
+
staleness_check_refs: z.array(z.string().min(1)).default([]),
|
|
384
|
+
use_class: SurfaceRequestedUseSchema,
|
|
385
|
+
blocked_refs: z.array(SurfaceDependencyRefSchema).default([]),
|
|
386
|
+
audit_refs: z.array(z.string().min(1)).default([]),
|
|
387
|
+
missing_dependency_behavior: z.literal("fail_closed").default("fail_closed"),
|
|
388
|
+
}).strict();
|
|
389
|
+
export const SurfaceProjectionSchema = z.object({
|
|
390
|
+
id: z.string().min(1),
|
|
391
|
+
version: z.number().int().positive().default(1),
|
|
392
|
+
target: SurfaceProjectionTargetSchema,
|
|
393
|
+
scope: z.object({
|
|
394
|
+
kind: z.enum(["conversation", "task", "runtime_item", "inspection", "session_resume"]),
|
|
395
|
+
ref: z.string().min(1),
|
|
396
|
+
}).strict(),
|
|
397
|
+
purpose: z.string().min(1),
|
|
398
|
+
requested_use: SurfaceRequestedUseSchema,
|
|
399
|
+
store_scope: z.literal("selected_refs").default("selected_refs"),
|
|
400
|
+
source_refs: z.array(SurfaceMemorySourceRefSchema).min(1),
|
|
401
|
+
relationship_permissions: z.array(RelationshipPermissionSchema).default([]),
|
|
402
|
+
dependent_refs: z.object({
|
|
403
|
+
runtime_items: z.array(SurfaceDerivedRuntimeRefSchema).default([]),
|
|
404
|
+
agenda_items: z.array(SurfaceDerivedRuntimeRefSchema).default([]),
|
|
405
|
+
outcome_decisions: z.array(SurfaceDerivedRuntimeRefSchema).default([]),
|
|
406
|
+
expression_decisions: z.array(SurfaceDerivedRuntimeRefSchema).default([]),
|
|
407
|
+
memory_write_candidates: z.array(SurfaceDerivedRuntimeRefSchema).default([]),
|
|
408
|
+
session_resume_attempts: z.array(SurfaceDerivedRuntimeRefSchema).default([]),
|
|
409
|
+
}).strict().default({}),
|
|
410
|
+
included_context: z.array(SurfaceIncludedContextSchema).default([]),
|
|
411
|
+
excluded_context: z.array(SurfaceExcludedContextSchema).default([]),
|
|
412
|
+
allowed_runtime_uses: z.array(GovernedMemoryAllowedUseClassSchema).min(1),
|
|
413
|
+
not_allowed_runtime_uses: z.array(GovernedMemoryBlockedUseClassSchema).default([]),
|
|
414
|
+
gate_order: z.array(SurfaceGateKindSchema).default([...SURFACE_GATE_ORDER]),
|
|
415
|
+
staleness_checks: z.array(z.string().min(1)).default([]),
|
|
416
|
+
sensitivity_checks: z.array(z.string().min(1)).default([]),
|
|
417
|
+
rationale_entries: z.array(SurfaceProjectionRationaleEntrySchema).default([]),
|
|
418
|
+
metadata: z.object({
|
|
419
|
+
staleness: z.enum(["fresh", "stale", "unknown"]),
|
|
420
|
+
sensitivity: GovernedMemorySensitivitySchema,
|
|
421
|
+
permission_state: z.enum(["granted", "blocked", "unknown"]),
|
|
422
|
+
invalidation_state: z.enum(["valid", "invalid", "unknown"]),
|
|
423
|
+
audit_refs: z.array(z.string().min(1)).default([]),
|
|
424
|
+
}).strict(),
|
|
425
|
+
created_at: z.string().datetime(),
|
|
426
|
+
expires_at: z.string().datetime().nullable().default(null),
|
|
427
|
+
}).strict().superRefine((projection, ctx) => {
|
|
428
|
+
const selectedSourceKeys = new Set(projection.source_refs.map(surfaceSourceRefKey));
|
|
429
|
+
validateContextSourcesSelected(projection.included_context, selectedSourceKeys, "included_context", ctx);
|
|
430
|
+
validateContextSourcesSelected(projection.excluded_context, selectedSourceKeys, "excluded_context", ctx);
|
|
431
|
+
validateRationaleSourcesSelected(projection.rationale_entries, selectedSourceKeys, ctx);
|
|
432
|
+
if (projection.gate_order.join("\u0000") !== SURFACE_GATE_ORDER.join("\u0000")) {
|
|
433
|
+
ctx.addIssue({
|
|
434
|
+
code: z.ZodIssueCode.custom,
|
|
435
|
+
path: ["gate_order"],
|
|
436
|
+
message: "Surface gates must stay in canonical scope-to-audit order",
|
|
437
|
+
});
|
|
438
|
+
}
|
|
439
|
+
if (projection.included_context.length + projection.excluded_context.length > projection.source_refs.length) {
|
|
440
|
+
ctx.addIssue({
|
|
441
|
+
code: z.ZodIssueCode.custom,
|
|
442
|
+
path: ["source_refs"],
|
|
443
|
+
message: "Surface projection context cannot exceed selected source refs",
|
|
444
|
+
});
|
|
445
|
+
}
|
|
446
|
+
if (projection.included_context.length > 0 && projection.metadata.permission_state !== "granted") {
|
|
447
|
+
ctx.addIssue({
|
|
448
|
+
code: z.ZodIssueCode.custom,
|
|
449
|
+
path: ["metadata", "permission_state"],
|
|
450
|
+
message: "included Surface context requires granted projection permission metadata",
|
|
451
|
+
});
|
|
452
|
+
}
|
|
453
|
+
if (projection.included_context.length > 0 && projection.metadata.staleness !== "fresh") {
|
|
454
|
+
ctx.addIssue({
|
|
455
|
+
code: z.ZodIssueCode.custom,
|
|
456
|
+
path: ["metadata", "staleness"],
|
|
457
|
+
message: "included Surface context requires fresh projection metadata",
|
|
458
|
+
});
|
|
459
|
+
}
|
|
460
|
+
if (projection.included_context.length > 0 && projection.metadata.invalidation_state !== "valid") {
|
|
461
|
+
ctx.addIssue({
|
|
462
|
+
code: z.ZodIssueCode.custom,
|
|
463
|
+
path: ["metadata", "invalidation_state"],
|
|
464
|
+
message: "included Surface context requires valid projection metadata",
|
|
465
|
+
});
|
|
466
|
+
}
|
|
467
|
+
if (projection.included_context.length > 0 && projection.metadata.sensitivity === "sensitive") {
|
|
468
|
+
ctx.addIssue({
|
|
469
|
+
code: z.ZodIssueCode.custom,
|
|
470
|
+
path: ["metadata", "sensitivity"],
|
|
471
|
+
message: "sensitive projection metadata cannot carry included context directly",
|
|
472
|
+
});
|
|
473
|
+
}
|
|
474
|
+
if (projection.included_context.length > 0 && projection.relationship_permissions.length === 0) {
|
|
475
|
+
ctx.addIssue({
|
|
476
|
+
code: z.ZodIssueCode.custom,
|
|
477
|
+
path: ["relationship_permissions"],
|
|
478
|
+
message: "included Surface context requires an explicit relationship permission input",
|
|
479
|
+
});
|
|
480
|
+
}
|
|
481
|
+
if (isForbiddenRequestedUse(projection.requested_use) && projection.included_context.length > 0) {
|
|
482
|
+
ctx.addIssue({
|
|
483
|
+
code: z.ZodIssueCode.custom,
|
|
484
|
+
path: ["requested_use"],
|
|
485
|
+
message: "forbidden requested uses can only produce excluded Surface context",
|
|
486
|
+
});
|
|
487
|
+
}
|
|
488
|
+
if (projection.included_context.length > 0
|
|
489
|
+
&& !projection.allowed_runtime_uses.includes(projection.requested_use)) {
|
|
490
|
+
ctx.addIssue({
|
|
491
|
+
code: z.ZodIssueCode.custom,
|
|
492
|
+
path: ["allowed_runtime_uses"],
|
|
493
|
+
message: "included Surface context requires requested_use to be allowed by the projection",
|
|
494
|
+
});
|
|
495
|
+
}
|
|
496
|
+
for (let index = 0; index < projection.included_context.length; index += 1) {
|
|
497
|
+
const context = projection.included_context[index];
|
|
498
|
+
if (!context) {
|
|
499
|
+
continue;
|
|
500
|
+
}
|
|
501
|
+
if (context.use_class !== projection.requested_use) {
|
|
502
|
+
ctx.addIssue({
|
|
503
|
+
code: z.ZodIssueCode.custom,
|
|
504
|
+
path: ["included_context", index, "use_class"],
|
|
505
|
+
message: "included context use_class must match the Surface requested_use",
|
|
506
|
+
});
|
|
507
|
+
}
|
|
508
|
+
if (!hasRationaleForSource(projection, context.source_ref, "included")) {
|
|
509
|
+
ctx.addIssue({
|
|
510
|
+
code: z.ZodIssueCode.custom,
|
|
511
|
+
path: ["included_context", index, "source_ref"],
|
|
512
|
+
message: "included context requires a projection rationale entry",
|
|
513
|
+
});
|
|
514
|
+
}
|
|
515
|
+
if (projection.not_allowed_runtime_uses.includes(projection.requested_use)
|
|
516
|
+
|| context.source_ref.not_allowed_uses.includes(projection.requested_use)) {
|
|
517
|
+
ctx.addIssue({
|
|
518
|
+
code: z.ZodIssueCode.custom,
|
|
519
|
+
path: ["included_context", index, "source_ref", "not_allowed_uses"],
|
|
520
|
+
message: "forbidden-use policy wins over Surface inclusion",
|
|
521
|
+
});
|
|
522
|
+
}
|
|
523
|
+
const permission = projection.relationship_permissions.find((candidate) => candidate.memory_role_scope.includes(context.source_ref.role)
|
|
524
|
+
&& candidate.source_refs.some((sourceRef) => relationshipPermissionSourceMatches(sourceRef, context.source_ref)));
|
|
525
|
+
if (projection.relationship_permissions.length > 0 && !permission) {
|
|
526
|
+
ctx.addIssue({
|
|
527
|
+
code: z.ZodIssueCode.custom,
|
|
528
|
+
path: ["included_context", index, "source_ref", "role"],
|
|
529
|
+
message: "included context requires relationship permission for its role lane and memory source",
|
|
530
|
+
});
|
|
531
|
+
}
|
|
532
|
+
else if (permission) {
|
|
533
|
+
if (permission.memory_use_permission !== "allowed") {
|
|
534
|
+
ctx.addIssue({
|
|
535
|
+
code: z.ZodIssueCode.custom,
|
|
536
|
+
path: ["relationship_permissions"],
|
|
537
|
+
message: "relationship permission must allow memory use for included context",
|
|
538
|
+
});
|
|
539
|
+
}
|
|
540
|
+
if (context.use_class === "user_facing_reference" && permission.speakability === "blocked") {
|
|
541
|
+
ctx.addIssue({
|
|
542
|
+
code: z.ZodIssueCode.custom,
|
|
543
|
+
path: ["relationship_permissions"],
|
|
544
|
+
message: "relationship permission blocks speaking this memory",
|
|
545
|
+
});
|
|
546
|
+
}
|
|
547
|
+
if (context.use_class === "proactive_action_candidate" && permission.proactive_permission === "blocked") {
|
|
548
|
+
ctx.addIssue({
|
|
549
|
+
code: z.ZodIssueCode.custom,
|
|
550
|
+
path: ["relationship_permissions"],
|
|
551
|
+
message: "relationship permission blocks proactive use of this memory",
|
|
552
|
+
});
|
|
553
|
+
}
|
|
554
|
+
}
|
|
555
|
+
}
|
|
556
|
+
for (let index = 0; index < projection.excluded_context.length; index += 1) {
|
|
557
|
+
const context = projection.excluded_context[index];
|
|
558
|
+
if (context && !hasRationaleForSource(projection, context.source_ref, "excluded")) {
|
|
559
|
+
ctx.addIssue({
|
|
560
|
+
code: z.ZodIssueCode.custom,
|
|
561
|
+
path: ["excluded_context", index, "source_ref"],
|
|
562
|
+
message: "excluded context requires a projection rationale entry",
|
|
563
|
+
});
|
|
564
|
+
}
|
|
565
|
+
}
|
|
566
|
+
for (const [groupName, refs] of Object.entries(projection.dependent_refs)) {
|
|
567
|
+
for (let index = 0; index < refs.length; index += 1) {
|
|
568
|
+
const ref = refs[index];
|
|
569
|
+
if (ref && !ref.related_surface_refs.includes(projection.id)) {
|
|
570
|
+
ctx.addIssue({
|
|
571
|
+
code: z.ZodIssueCode.custom,
|
|
572
|
+
path: ["dependent_refs", groupName, index, "related_surface_refs"],
|
|
573
|
+
message: "Surface-derived runtime refs must point back to the SurfaceProjection they used",
|
|
574
|
+
});
|
|
575
|
+
}
|
|
576
|
+
}
|
|
577
|
+
}
|
|
578
|
+
});
|
|
579
|
+
export const SurfaceRuntimeOperationSchema = z.enum([
|
|
580
|
+
"speech",
|
|
581
|
+
"notification",
|
|
582
|
+
"action",
|
|
583
|
+
"session_resume",
|
|
584
|
+
"surface_update",
|
|
585
|
+
"memory_write",
|
|
586
|
+
]);
|
|
587
|
+
export const SurfaceRuntimeAuthorizationBasisSchema = z.enum([
|
|
588
|
+
"runtime_authority",
|
|
589
|
+
"relationship_permission",
|
|
590
|
+
"memory_only",
|
|
591
|
+
"unknown",
|
|
592
|
+
]);
|
|
593
|
+
export const SurfaceRuntimeAdmissionStatusSchema = z.enum(["admitted", "blocked"]);
|
|
594
|
+
export const SurfaceRuntimeAdmissionReasonSchema = z.enum([
|
|
595
|
+
"admitted",
|
|
596
|
+
"missing_dependency_ref",
|
|
597
|
+
"invalid_surface",
|
|
598
|
+
"stale_surface",
|
|
599
|
+
"permission_blocked",
|
|
600
|
+
"allowed_use_missing",
|
|
601
|
+
"forbidden_use",
|
|
602
|
+
"memory_is_not_authority",
|
|
603
|
+
"runtime_authority_required",
|
|
604
|
+
"authority_unknown",
|
|
605
|
+
]);
|
|
606
|
+
export const SurfaceRuntimeAdmissionRequestSchema = z.object({
|
|
607
|
+
projection: SurfaceProjectionSchema,
|
|
608
|
+
derived_ref: SurfaceDerivedRuntimeRefSchema,
|
|
609
|
+
operation: SurfaceRuntimeOperationSchema,
|
|
610
|
+
authorization_basis: SurfaceRuntimeAuthorizationBasisSchema,
|
|
611
|
+
runtime_authority_ref: z.string().min(1).optional(),
|
|
612
|
+
audit_ref: z.string().min(1).optional(),
|
|
613
|
+
}).strict();
|
|
614
|
+
export const SurfaceRuntimeAdmissionSchema = z.object({
|
|
615
|
+
status: SurfaceRuntimeAdmissionStatusSchema,
|
|
616
|
+
reason: SurfaceRuntimeAdmissionReasonSchema,
|
|
617
|
+
operation: SurfaceRuntimeOperationSchema,
|
|
618
|
+
dependent_ref: z.string().min(1),
|
|
619
|
+
related_surface_refs: z.array(z.string().min(1)),
|
|
620
|
+
related_memory_refs: z.array(z.string().min(1)),
|
|
621
|
+
blocked_refs: z.array(z.string().min(1)).default([]),
|
|
622
|
+
required_rechecks: z.array(SurfaceGateKindSchema).default([]),
|
|
623
|
+
audit_refs: z.array(z.string().min(1)).default([]),
|
|
624
|
+
}).strict().superRefine((admission, ctx) => {
|
|
625
|
+
if (admission.status === "admitted" && admission.reason !== "admitted") {
|
|
626
|
+
ctx.addIssue({
|
|
627
|
+
code: z.ZodIssueCode.custom,
|
|
628
|
+
path: ["reason"],
|
|
629
|
+
message: "admitted Surface runtime admissions must use admitted reason",
|
|
630
|
+
});
|
|
631
|
+
}
|
|
632
|
+
if (admission.status === "blocked" && admission.reason === "admitted") {
|
|
633
|
+
ctx.addIssue({
|
|
634
|
+
code: z.ZodIssueCode.custom,
|
|
635
|
+
path: ["reason"],
|
|
636
|
+
message: "blocked Surface runtime admissions require a blocker reason",
|
|
637
|
+
});
|
|
638
|
+
}
|
|
639
|
+
});
|
|
640
|
+
export function createSurfaceDerivedRuntimeRef(input) {
|
|
641
|
+
return SurfaceDerivedRuntimeRefSchema.parse(input);
|
|
642
|
+
}
|
|
643
|
+
export function attachSurfaceDependencyRef(projectionInput, derivedRefInput) {
|
|
644
|
+
const projection = SurfaceProjectionSchema.parse(projectionInput);
|
|
645
|
+
const derivedRef = SurfaceDerivedRuntimeRefSchema.parse(derivedRefInput);
|
|
646
|
+
const groupName = dependentRefGroupForKind(derivedRef.kind);
|
|
647
|
+
return SurfaceProjectionSchema.parse({
|
|
648
|
+
...projection,
|
|
649
|
+
dependent_refs: {
|
|
650
|
+
...projection.dependent_refs,
|
|
651
|
+
[groupName]: upsertSurfaceDerivedRuntimeRef(projection.dependent_refs[groupName], derivedRef),
|
|
652
|
+
},
|
|
653
|
+
});
|
|
654
|
+
}
|
|
655
|
+
export function evaluateSurfaceRuntimeAdmission(input) {
|
|
656
|
+
const request = SurfaceRuntimeAdmissionRequestSchema.parse(input);
|
|
657
|
+
const missingDependencyRefs = missingRuntimeDependencyRefs(request.projection, request.derived_ref);
|
|
658
|
+
if (missingDependencyRefs.length > 0) {
|
|
659
|
+
return buildSurfaceRuntimeAdmission(request, "blocked", "missing_dependency_ref", missingDependencyRefs);
|
|
660
|
+
}
|
|
661
|
+
if (request.projection.metadata.invalidation_state !== "valid") {
|
|
662
|
+
return buildSurfaceRuntimeAdmission(request, "blocked", "invalid_surface", [request.projection.id]);
|
|
663
|
+
}
|
|
664
|
+
if (request.projection.metadata.staleness !== "fresh") {
|
|
665
|
+
return buildSurfaceRuntimeAdmission(request, "blocked", "stale_surface", [
|
|
666
|
+
request.projection.id,
|
|
667
|
+
`metadata.staleness:${request.projection.metadata.staleness}`,
|
|
668
|
+
]);
|
|
669
|
+
}
|
|
670
|
+
if (request.projection.metadata.permission_state !== "granted") {
|
|
671
|
+
return buildSurfaceRuntimeAdmission(request, "blocked", "permission_blocked", [
|
|
672
|
+
request.projection.id,
|
|
673
|
+
`metadata.permission_state:${request.projection.metadata.permission_state}`,
|
|
674
|
+
]);
|
|
675
|
+
}
|
|
676
|
+
if (!request.projection.allowed_runtime_uses.includes(request.derived_ref.use_class)) {
|
|
677
|
+
return buildSurfaceRuntimeAdmission(request, "blocked", "allowed_use_missing", [request.derived_ref.use_class]);
|
|
678
|
+
}
|
|
679
|
+
if (isForbiddenRequestedUse(request.derived_ref.use_class)
|
|
680
|
+
|| request.projection.not_allowed_runtime_uses.includes(request.derived_ref.use_class)) {
|
|
681
|
+
return buildSurfaceRuntimeAdmission(request, "blocked", "forbidden_use", [
|
|
682
|
+
...request.derived_ref.related_memory_refs,
|
|
683
|
+
...request.derived_ref.blocked_refs.map((ref) => ref.ref),
|
|
684
|
+
]);
|
|
685
|
+
}
|
|
686
|
+
if (request.authorization_basis === "memory_only") {
|
|
687
|
+
return buildSurfaceRuntimeAdmission(request, "blocked", "memory_is_not_authority", request.derived_ref.related_memory_refs);
|
|
688
|
+
}
|
|
689
|
+
if (request.authorization_basis === "unknown") {
|
|
690
|
+
return buildSurfaceRuntimeAdmission(request, "blocked", "authority_unknown", request.derived_ref.related_memory_refs);
|
|
691
|
+
}
|
|
692
|
+
if (request.authorization_basis !== "runtime_authority" && requiresRuntimeAuthority(request.operation)) {
|
|
693
|
+
return buildSurfaceRuntimeAdmission(request, "blocked", "runtime_authority_required", request.derived_ref.related_memory_refs);
|
|
694
|
+
}
|
|
695
|
+
if (request.authorization_basis === "runtime_authority" && !request.runtime_authority_ref) {
|
|
696
|
+
return buildSurfaceRuntimeAdmission(request, "blocked", "runtime_authority_required", request.derived_ref.related_memory_refs);
|
|
697
|
+
}
|
|
698
|
+
return buildSurfaceRuntimeAdmission(request, "admitted", "admitted", []);
|
|
699
|
+
}
|
|
700
|
+
export const SurfaceInspectionViewSchema = z.object({
|
|
701
|
+
surface_id: z.string().min(1),
|
|
702
|
+
version: z.number().int().positive(),
|
|
703
|
+
target: SurfaceProjectionTargetSchema,
|
|
704
|
+
scope: z.object({
|
|
705
|
+
kind: z.enum(["conversation", "task", "runtime_item", "inspection", "session_resume"]),
|
|
706
|
+
ref: z.string().min(1),
|
|
707
|
+
}).strict(),
|
|
708
|
+
source_refs: z.array(SurfaceDependencyRefSchema),
|
|
709
|
+
gate_outcomes: z.array(SurfaceGateResultSchema),
|
|
710
|
+
included_summaries: z.array(z.object({
|
|
711
|
+
lane: SurfaceIncludedLaneSchema,
|
|
712
|
+
memory_id: z.string().min(1),
|
|
713
|
+
record_kind: GovernedMemoryRecordKindSchema,
|
|
714
|
+
use_class: GovernedMemoryAllowedUseClassSchema,
|
|
715
|
+
summary_ref: z.string().min(1),
|
|
716
|
+
}).strict()).default([]),
|
|
717
|
+
excluded_summaries: z.array(z.object({
|
|
718
|
+
lane: z.literal("exclusion"),
|
|
719
|
+
memory_id: z.string().min(1),
|
|
720
|
+
requested_use: SurfaceRequestedUseSchema,
|
|
721
|
+
blocked_by: z.array(SurfaceGateKindSchema).min(1),
|
|
722
|
+
redaction_ref: z.string().min(1).optional(),
|
|
723
|
+
inhibition_ref: z.string().min(1).optional(),
|
|
724
|
+
}).strict()).default([]),
|
|
725
|
+
redacted_audit_refs: z.array(z.string().min(1)).default([]),
|
|
726
|
+
invalidation_state: z.enum(["valid", "invalid", "unknown"]),
|
|
727
|
+
}).strict();
|
|
728
|
+
export function createSurfaceInspectionView(projection, target) {
|
|
729
|
+
return SurfaceInspectionViewSchema.parse({
|
|
730
|
+
surface_id: projection.id,
|
|
731
|
+
version: projection.version,
|
|
732
|
+
target,
|
|
733
|
+
scope: projection.scope,
|
|
734
|
+
source_refs: projection.source_refs.map((source) => source.dependency_ref),
|
|
735
|
+
gate_outcomes: [
|
|
736
|
+
...projection.included_context.flatMap((context) => context.gates),
|
|
737
|
+
...projection.excluded_context.flatMap((context) => context.blocked_by),
|
|
738
|
+
],
|
|
739
|
+
included_summaries: projection.included_context.map((context) => ({
|
|
740
|
+
lane: context.lane,
|
|
741
|
+
memory_id: context.source_ref.memory_id,
|
|
742
|
+
record_kind: context.source_ref.record_kind,
|
|
743
|
+
use_class: context.use_class,
|
|
744
|
+
summary_ref: rationaleRefForSource(projection, context.source_ref, "included"),
|
|
745
|
+
})),
|
|
746
|
+
excluded_summaries: projection.excluded_context.map((context) => ({
|
|
747
|
+
lane: "exclusion",
|
|
748
|
+
memory_id: context.source_ref.memory_id,
|
|
749
|
+
requested_use: context.requested_use,
|
|
750
|
+
blocked_by: context.blocked_by.map((gate) => gate.gate),
|
|
751
|
+
redaction_ref: context.redaction_ref,
|
|
752
|
+
inhibition_ref: context.inhibition_ref,
|
|
753
|
+
})),
|
|
754
|
+
redacted_audit_refs: projection.metadata.audit_refs,
|
|
755
|
+
invalidation_state: projection.metadata.invalidation_state,
|
|
756
|
+
});
|
|
757
|
+
}
|
|
758
|
+
export const SurfaceInspectionAdapterPayloadSchema = z.object({
|
|
759
|
+
target: SurfaceProjectionTargetSchema,
|
|
760
|
+
inspection: SurfaceInspectionViewSchema,
|
|
761
|
+
prompt_dump: z.never().optional(),
|
|
762
|
+
}).strict();
|
|
763
|
+
export function createSurfaceInspectionAdapterPayload(projectionInput, target) {
|
|
764
|
+
const projection = SurfaceProjectionSchema.parse(projectionInput);
|
|
765
|
+
return SurfaceInspectionAdapterPayloadSchema.parse({
|
|
766
|
+
target,
|
|
767
|
+
inspection: createSurfaceInspectionView(projection, target),
|
|
768
|
+
});
|
|
769
|
+
}
|
|
770
|
+
export const SurfaceInvalidationTriggerSchema = z.enum([
|
|
771
|
+
"memory_correction",
|
|
772
|
+
"memory_retraction",
|
|
773
|
+
"memory_supersession",
|
|
774
|
+
"memory_tombstone",
|
|
775
|
+
"memory_deletion",
|
|
776
|
+
"permission_revocation",
|
|
777
|
+
"permission_scope_narrowed",
|
|
778
|
+
"boundary_change",
|
|
779
|
+
"intervention_policy_changed",
|
|
780
|
+
"stale_session",
|
|
781
|
+
"runtime_item_stale",
|
|
782
|
+
"source_redaction",
|
|
783
|
+
"goal_scope_changed",
|
|
784
|
+
"surface_expired",
|
|
785
|
+
]);
|
|
786
|
+
export const SurfaceInvalidationActionSchema = z.enum([
|
|
787
|
+
"hold",
|
|
788
|
+
"expire",
|
|
789
|
+
"reject",
|
|
790
|
+
"regate",
|
|
791
|
+
"redact",
|
|
792
|
+
"withdraw",
|
|
793
|
+
"needs_review",
|
|
794
|
+
]);
|
|
795
|
+
export const SurfaceInvalidationPolicySchema = z.object({
|
|
796
|
+
id: z.string().min(1),
|
|
797
|
+
surface_ref: z.string().min(1),
|
|
798
|
+
source_refs: z.array(SurfaceDependencyRefSchema).min(1),
|
|
799
|
+
triggers: z.array(SurfaceInvalidationTriggerSchema).min(1),
|
|
800
|
+
affected_dependency_policies: z.array(z.object({
|
|
801
|
+
dependency_kind: SurfaceDependencyKindSchema,
|
|
802
|
+
action: SurfaceInvalidationActionSchema,
|
|
803
|
+
}).strict()).min(1),
|
|
804
|
+
missing_dependency_behavior: z.literal("fail_closed").default("fail_closed"),
|
|
805
|
+
contradictory_dependency_behavior: z.literal("fail_closed").default("fail_closed"),
|
|
806
|
+
regeneration_policy: z.object({
|
|
807
|
+
rerun_gates: z.array(SurfaceGateKindSchema).default([...SURFACE_GATE_ORDER]),
|
|
808
|
+
copy_included_context_forward: z.literal(false).default(false),
|
|
809
|
+
ambiguous_trigger_behavior: z.literal("fail_closed").default("fail_closed"),
|
|
810
|
+
}).strict().default({}),
|
|
811
|
+
audit_policy: z.object({
|
|
812
|
+
audit_ref: z.string().min(1),
|
|
813
|
+
redacts_deleted_content: z.boolean().default(true),
|
|
814
|
+
}).strict(),
|
|
815
|
+
}).strict().superRefine((policy, ctx) => {
|
|
816
|
+
const contentRemoval = policy.triggers.some((trigger) => trigger === "memory_tombstone" || trigger === "memory_deletion" || trigger === "source_redaction");
|
|
817
|
+
if (contentRemoval && !policy.audit_policy.redacts_deleted_content) {
|
|
818
|
+
ctx.addIssue({
|
|
819
|
+
code: z.ZodIssueCode.custom,
|
|
820
|
+
path: ["audit_policy", "redacts_deleted_content"],
|
|
821
|
+
message: "content-removal invalidation policies must redact deleted content",
|
|
822
|
+
});
|
|
823
|
+
}
|
|
824
|
+
if (policy.regeneration_policy.rerun_gates.join("\u0000") !== SURFACE_GATE_ORDER.join("\u0000")) {
|
|
825
|
+
ctx.addIssue({
|
|
826
|
+
code: z.ZodIssueCode.custom,
|
|
827
|
+
path: ["regeneration_policy", "rerun_gates"],
|
|
828
|
+
message: "Surface regeneration must rerun the full canonical gate order",
|
|
829
|
+
});
|
|
830
|
+
}
|
|
831
|
+
});
|
|
832
|
+
export const SurfaceInvalidationEventSchema = z.object({
|
|
833
|
+
id: z.string().min(1),
|
|
834
|
+
policy_ref: z.string().min(1),
|
|
835
|
+
surface_ref: z.string().min(1),
|
|
836
|
+
trigger: SurfaceInvalidationTriggerSchema,
|
|
837
|
+
source_ref: SurfaceMemorySourceRefSchema,
|
|
838
|
+
affected_dependencies: z.array(SurfaceDerivedRuntimeRefSchema).min(1),
|
|
839
|
+
required_rechecks: z.array(SurfaceGateKindSchema).min(1),
|
|
840
|
+
action: SurfaceInvalidationActionSchema,
|
|
841
|
+
redaction_ref: z.string().min(1).optional(),
|
|
842
|
+
audit_ref: z.string().min(1),
|
|
843
|
+
occurred_at: z.string().datetime(),
|
|
844
|
+
}).strict().superRefine((event, ctx) => {
|
|
845
|
+
if ((event.trigger === "memory_tombstone" || event.trigger === "memory_deletion" || event.trigger === "source_redaction")
|
|
846
|
+
&& !event.redaction_ref) {
|
|
847
|
+
ctx.addIssue({
|
|
848
|
+
code: z.ZodIssueCode.custom,
|
|
849
|
+
path: ["redaction_ref"],
|
|
850
|
+
message: "content-removal invalidation events must carry a redaction ref",
|
|
851
|
+
});
|
|
852
|
+
}
|
|
853
|
+
if ((event.source_ref.lifecycle === "tombstoned" || event.source_ref.lifecycle === "deleted")
|
|
854
|
+
&& event.source_ref.content_state !== "redacted") {
|
|
855
|
+
ctx.addIssue({
|
|
856
|
+
code: z.ZodIssueCode.custom,
|
|
857
|
+
path: ["source_ref", "content_state"],
|
|
858
|
+
message: "deleted or tombstoned invalidation sources must be redacted",
|
|
859
|
+
});
|
|
860
|
+
}
|
|
861
|
+
for (let index = 0; index < event.affected_dependencies.length; index += 1) {
|
|
862
|
+
const dependency = event.affected_dependencies[index];
|
|
863
|
+
if (dependency && !dependency.related_surface_refs.includes(event.surface_ref)) {
|
|
864
|
+
ctx.addIssue({
|
|
865
|
+
code: z.ZodIssueCode.custom,
|
|
866
|
+
path: ["affected_dependencies", index, "related_surface_refs"],
|
|
867
|
+
message: "affected dependencies must point back to the invalidated SurfaceProjection",
|
|
868
|
+
});
|
|
869
|
+
}
|
|
870
|
+
}
|
|
871
|
+
});
|
|
872
|
+
export const SurfaceMemoryWriteCandidateStatusSchema = z.enum([
|
|
873
|
+
"pending",
|
|
874
|
+
"needs_revalidation",
|
|
875
|
+
"accepted",
|
|
876
|
+
"rejected",
|
|
877
|
+
]);
|
|
878
|
+
export const SurfaceMemoryWriteCandidateSchema = z.object({
|
|
879
|
+
schema_version: z.literal("surface-memory-write-candidate-v1").default("surface-memory-write-candidate-v1"),
|
|
880
|
+
candidate_id: z.string().min(1),
|
|
881
|
+
source_surface_ref: z.string().min(1),
|
|
882
|
+
proposed_owner_ref: GovernedMemoryOwnerRefSchema,
|
|
883
|
+
provenance_refs: z.array(SurfaceDependencyRefSchema).min(1),
|
|
884
|
+
source_dependency_refs: z.array(SurfaceDependencyRefSchema).min(1),
|
|
885
|
+
permission_check_refs: z.array(z.string().min(1)).min(1),
|
|
886
|
+
deletion_check_refs: z.array(z.string().min(1)).min(1),
|
|
887
|
+
source_evidence_check_refs: z.array(z.string().min(1)).min(1),
|
|
888
|
+
status: SurfaceMemoryWriteCandidateStatusSchema.default("pending"),
|
|
889
|
+
content_state: z.enum(["materialized", "redacted"]).default("materialized"),
|
|
890
|
+
redaction_ref: z.string().min(1).optional(),
|
|
891
|
+
audit_refs: z.array(z.string().min(1)).default([]),
|
|
892
|
+
}).strict().superRefine((candidate, ctx) => {
|
|
893
|
+
const removedSource = candidate.source_dependency_refs.find(dependencyContentWasRemoved);
|
|
894
|
+
if (candidate.content_state === "redacted" && !candidate.redaction_ref) {
|
|
895
|
+
ctx.addIssue({
|
|
896
|
+
code: z.ZodIssueCode.custom,
|
|
897
|
+
path: ["redaction_ref"],
|
|
898
|
+
message: "redacted memory-write candidates must carry a redaction ref",
|
|
899
|
+
});
|
|
900
|
+
}
|
|
901
|
+
if (removedSource && candidate.content_state !== "redacted") {
|
|
902
|
+
ctx.addIssue({
|
|
903
|
+
code: z.ZodIssueCode.custom,
|
|
904
|
+
path: ["content_state"],
|
|
905
|
+
message: "memory-write candidates from deleted or tombstoned Surface sources must not retain reconstructable content",
|
|
906
|
+
});
|
|
907
|
+
}
|
|
908
|
+
if (removedSource && candidate.status === "accepted") {
|
|
909
|
+
ctx.addIssue({
|
|
910
|
+
code: z.ZodIssueCode.custom,
|
|
911
|
+
path: ["status"],
|
|
912
|
+
message: "memory-write candidates from deleted or tombstoned Surface sources cannot be accepted",
|
|
913
|
+
});
|
|
914
|
+
}
|
|
915
|
+
});
|
|
916
|
+
export const SurfaceMemoryWriteCandidateFreshCheckKindSchema = z.enum([
|
|
917
|
+
"owner",
|
|
918
|
+
"provenance",
|
|
919
|
+
"permission",
|
|
920
|
+
"deletion",
|
|
921
|
+
"source_evidence",
|
|
922
|
+
]);
|
|
923
|
+
export const SurfaceMemoryWriteCandidateFreshCheckStatusSchema = z.enum(["passed", "failed", "unknown"]);
|
|
924
|
+
export const SurfaceMemoryWriteCandidateFreshCheckSchema = z.object({
|
|
925
|
+
kind: SurfaceMemoryWriteCandidateFreshCheckKindSchema,
|
|
926
|
+
status: SurfaceMemoryWriteCandidateFreshCheckStatusSchema,
|
|
927
|
+
ref: z.string().min(1),
|
|
928
|
+
reason: z.string().min(1),
|
|
929
|
+
evidence_refs: z.array(SurfaceDependencyRefSchema).default([]),
|
|
930
|
+
}).strict();
|
|
931
|
+
const MEMORY_WRITE_REVALIDATION_CHECK_KINDS = [
|
|
932
|
+
"owner",
|
|
933
|
+
"provenance",
|
|
934
|
+
"permission",
|
|
935
|
+
"deletion",
|
|
936
|
+
"source_evidence",
|
|
937
|
+
];
|
|
938
|
+
export const SurfaceMemoryWriteCandidateRevalidationStatusSchema = z.enum([
|
|
939
|
+
"accepted",
|
|
940
|
+
"needs_revalidation",
|
|
941
|
+
"rejected",
|
|
942
|
+
"not_affected",
|
|
943
|
+
]);
|
|
944
|
+
export const SurfaceMemoryWriteCandidateRevalidationResultSchema = z.object({
|
|
945
|
+
candidate: SurfaceMemoryWriteCandidateSchema,
|
|
946
|
+
event_ref: z.string().min(1),
|
|
947
|
+
surface_ref: z.string().min(1),
|
|
948
|
+
status: SurfaceMemoryWriteCandidateRevalidationStatusSchema,
|
|
949
|
+
required_check_kinds: z.array(SurfaceMemoryWriteCandidateFreshCheckKindSchema).min(1),
|
|
950
|
+
missing_check_kinds: z.array(SurfaceMemoryWriteCandidateFreshCheckKindSchema).default([]),
|
|
951
|
+
failed_check_kinds: z.array(SurfaceMemoryWriteCandidateFreshCheckKindSchema).default([]),
|
|
952
|
+
fresh_checks: z.array(SurfaceMemoryWriteCandidateFreshCheckSchema).default([]),
|
|
953
|
+
required_rechecks: z.array(SurfaceGateKindSchema).min(1),
|
|
954
|
+
redaction_ref: z.string().min(1).optional(),
|
|
955
|
+
audit_refs: z.array(z.string().min(1)).default([]),
|
|
956
|
+
occurred_at: z.string().datetime(),
|
|
957
|
+
}).strict().superRefine((result, ctx) => {
|
|
958
|
+
if (result.status === "accepted" && (result.missing_check_kinds.length > 0 || result.failed_check_kinds.length > 0)) {
|
|
959
|
+
ctx.addIssue({
|
|
960
|
+
code: z.ZodIssueCode.custom,
|
|
961
|
+
path: ["status"],
|
|
962
|
+
message: "accepted memory-write candidate revalidation requires all fresh checks to pass",
|
|
963
|
+
});
|
|
964
|
+
}
|
|
965
|
+
if (result.status === "rejected" && result.candidate.content_state === "redacted" && !result.redaction_ref) {
|
|
966
|
+
ctx.addIssue({
|
|
967
|
+
code: z.ZodIssueCode.custom,
|
|
968
|
+
path: ["redaction_ref"],
|
|
969
|
+
message: "rejected redacted memory-write candidate revalidation must carry a redaction ref",
|
|
970
|
+
});
|
|
971
|
+
}
|
|
972
|
+
});
|
|
973
|
+
export function revalidateSurfaceMemoryWriteCandidateAfterInvalidation(input) {
|
|
974
|
+
const candidate = SurfaceMemoryWriteCandidateSchema.parse(input.candidate);
|
|
975
|
+
const event = SurfaceInvalidationEventSchema.parse(input.event);
|
|
976
|
+
const freshChecks = z.array(SurfaceMemoryWriteCandidateFreshCheckSchema).parse(input.fresh_checks ?? []);
|
|
977
|
+
const affected = memoryWriteCandidateAffectedByInvalidation(candidate, event);
|
|
978
|
+
const removedAffectedSource = affected
|
|
979
|
+
&& (triggerRequiresRedaction(event.trigger) || dependencyContentWasRemoved(event.source_ref.dependency_ref));
|
|
980
|
+
const checkKinds = new Set(freshChecks.map((check) => check.kind));
|
|
981
|
+
const missingCheckKinds = MEMORY_WRITE_REVALIDATION_CHECK_KINDS.filter((kind) => !checkKinds.has(kind));
|
|
982
|
+
const failedCheckKinds = freshChecks
|
|
983
|
+
.filter((check) => check.status === "failed")
|
|
984
|
+
.map((check) => check.kind);
|
|
985
|
+
const unknownCheckKinds = freshChecks
|
|
986
|
+
.filter((check) => check.status === "unknown")
|
|
987
|
+
.map((check) => check.kind);
|
|
988
|
+
const unboundCheckKinds = freshChecks
|
|
989
|
+
.filter((check) => check.status === "passed" && !freshCheckBindsToCandidate(candidate, check))
|
|
990
|
+
.map((check) => check.kind);
|
|
991
|
+
const status = !affected
|
|
992
|
+
? "not_affected"
|
|
993
|
+
: removedAffectedSource || failedCheckKinds.length > 0 || unboundCheckKinds.length > 0
|
|
994
|
+
? "rejected"
|
|
995
|
+
: missingCheckKinds.length > 0 || unknownCheckKinds.length > 0
|
|
996
|
+
? "needs_revalidation"
|
|
997
|
+
: "accepted";
|
|
998
|
+
const redactionRef = removedAffectedSource
|
|
999
|
+
? input.redaction_ref ?? event.redaction_ref ?? `redaction:${event.id}:${candidate.candidate_id}`
|
|
1000
|
+
: candidate.redaction_ref;
|
|
1001
|
+
const updatedCandidate = SurfaceMemoryWriteCandidateSchema.parse({
|
|
1002
|
+
...candidate,
|
|
1003
|
+
source_dependency_refs: removedAffectedSource
|
|
1004
|
+
? candidate.source_dependency_refs.map((dependency) => dependencyMatchesInvalidatedSource(dependency, event)
|
|
1005
|
+
? event.source_ref.dependency_ref
|
|
1006
|
+
: dependency)
|
|
1007
|
+
: candidate.source_dependency_refs,
|
|
1008
|
+
status: status === "not_affected" ? candidate.status : status,
|
|
1009
|
+
content_state: removedAffectedSource ? "redacted" : candidate.content_state,
|
|
1010
|
+
redaction_ref: redactionRef,
|
|
1011
|
+
audit_refs: uniqueStrings([
|
|
1012
|
+
...candidate.audit_refs,
|
|
1013
|
+
event.audit_ref,
|
|
1014
|
+
...(input.audit_ref ? [input.audit_ref] : []),
|
|
1015
|
+
]),
|
|
1016
|
+
});
|
|
1017
|
+
return SurfaceMemoryWriteCandidateRevalidationResultSchema.parse({
|
|
1018
|
+
candidate: updatedCandidate,
|
|
1019
|
+
event_ref: event.id,
|
|
1020
|
+
surface_ref: event.surface_ref,
|
|
1021
|
+
status,
|
|
1022
|
+
required_check_kinds: [...MEMORY_WRITE_REVALIDATION_CHECK_KINDS],
|
|
1023
|
+
missing_check_kinds: status === "not_affected" ? [] : missingCheckKinds,
|
|
1024
|
+
failed_check_kinds: status === "not_affected"
|
|
1025
|
+
? []
|
|
1026
|
+
: uniqueStrings([...failedCheckKinds, ...unknownCheckKinds, ...unboundCheckKinds]),
|
|
1027
|
+
fresh_checks: freshChecks,
|
|
1028
|
+
required_rechecks: event.required_rechecks,
|
|
1029
|
+
redaction_ref: redactionRef,
|
|
1030
|
+
audit_refs: updatedCandidate.audit_refs,
|
|
1031
|
+
occurred_at: input.occurred_at,
|
|
1032
|
+
});
|
|
1033
|
+
}
|
|
1034
|
+
export const SurfaceInvalidationRunResultSchema = z.object({
|
|
1035
|
+
projection: SurfaceProjectionSchema,
|
|
1036
|
+
event: SurfaceInvalidationEventSchema,
|
|
1037
|
+
inspection: SurfaceInspectionViewSchema,
|
|
1038
|
+
blocked_admissions: z.array(SurfaceRuntimeAdmissionSchema),
|
|
1039
|
+
}).strict();
|
|
1040
|
+
export function surfaceInvalidationEventsToRuntimeStateRefs(events) {
|
|
1041
|
+
return uniqueStrings(events.map((event) => SurfaceInvalidationEventSchema.parse(event).surface_ref));
|
|
1042
|
+
}
|
|
1043
|
+
export function invalidateSurfaceProjectionFromMemoryCorrection(input) {
|
|
1044
|
+
const projection = SurfaceProjectionSchema.parse(input.projection);
|
|
1045
|
+
const correctionEvent = GovernedMemoryCorrectionEventSchema.parse(input.correction_event);
|
|
1046
|
+
const source = projection.source_refs.find((candidate) => candidate.memory_id === correctionEvent.target_memory_ref);
|
|
1047
|
+
if (!source) {
|
|
1048
|
+
throw new Error(`SurfaceProjection ${projection.id} does not include corrected memory ${correctionEvent.target_memory_ref}`);
|
|
1049
|
+
}
|
|
1050
|
+
const trigger = triggerForMemoryCorrection(correctionEvent);
|
|
1051
|
+
const redactionRef = input.redaction_ref ?? redactionRefForCorrection(correctionEvent, trigger);
|
|
1052
|
+
return invalidateSurfaceProjection({
|
|
1053
|
+
projection,
|
|
1054
|
+
source_ref: source,
|
|
1055
|
+
trigger,
|
|
1056
|
+
occurred_at: input.occurred_at,
|
|
1057
|
+
redaction_ref: redactionRef,
|
|
1058
|
+
affected_dependencies: input.affected_dependencies,
|
|
1059
|
+
audit_ref: input.audit_ref ?? correctionEvent.audit_ref,
|
|
1060
|
+
policy_ref: input.policy_ref ?? correctionEvent.invalidation_ref ?? `surface:${projection.id}:policy:${trigger}`,
|
|
1061
|
+
});
|
|
1062
|
+
}
|
|
1063
|
+
export function invalidateSurfaceProjectionFromPermissionChange(input) {
|
|
1064
|
+
const projection = SurfaceProjectionSchema.parse(input.projection);
|
|
1065
|
+
const sourceRef = SurfaceMemorySourceRefSchema.parse(input.source_ref);
|
|
1066
|
+
return invalidateSurfaceProjection({
|
|
1067
|
+
projection,
|
|
1068
|
+
source_ref: sourceRef,
|
|
1069
|
+
trigger: "permission_revocation",
|
|
1070
|
+
occurred_at: input.occurred_at,
|
|
1071
|
+
affected_dependencies: input.affected_dependencies,
|
|
1072
|
+
audit_ref: input.audit_ref ?? `audit:${sourceRef.memory_id}:permission-revocation`,
|
|
1073
|
+
policy_ref: input.policy_ref ?? `surface:${projection.id}:policy:permission_revocation`,
|
|
1074
|
+
});
|
|
1075
|
+
}
|
|
1076
|
+
function invalidateSurfaceProjection(input) {
|
|
1077
|
+
const sourceRef = SurfaceMemorySourceRefSchema.parse(input.source_ref);
|
|
1078
|
+
const affectedDependencies = resolveAffectedDependencies(input.projection, input.affected_dependencies);
|
|
1079
|
+
const invalidatedProjection = buildInvalidatedSurfaceProjection(input.projection, sourceRef, input.trigger, input.redaction_ref);
|
|
1080
|
+
const event = SurfaceInvalidationEventSchema.parse({
|
|
1081
|
+
id: `surface-invalidation:${input.projection.id}:${input.trigger}:${sourceRef.memory_id}`,
|
|
1082
|
+
policy_ref: input.policy_ref,
|
|
1083
|
+
surface_ref: input.projection.id,
|
|
1084
|
+
trigger: input.trigger,
|
|
1085
|
+
source_ref: redactedSourceForTrigger(sourceRef, input.trigger, input.redaction_ref),
|
|
1086
|
+
affected_dependencies: affectedDependencies,
|
|
1087
|
+
required_rechecks: [...SURFACE_GATE_ORDER],
|
|
1088
|
+
action: actionForInvalidationTrigger(input.trigger),
|
|
1089
|
+
redaction_ref: input.redaction_ref,
|
|
1090
|
+
audit_ref: input.audit_ref,
|
|
1091
|
+
occurred_at: input.occurred_at,
|
|
1092
|
+
});
|
|
1093
|
+
const blockedAdmissions = affectedDependencies.map((dependency) => evaluateSurfaceRuntimeAdmission({
|
|
1094
|
+
projection: invalidatedProjection,
|
|
1095
|
+
derived_ref: dependency,
|
|
1096
|
+
operation: operationForDerivedRuntimeKind(dependency.kind),
|
|
1097
|
+
authorization_basis: "runtime_authority",
|
|
1098
|
+
runtime_authority_ref: `runtime-authority:${dependency.ref}`,
|
|
1099
|
+
audit_ref: input.audit_ref,
|
|
1100
|
+
}));
|
|
1101
|
+
return SurfaceInvalidationRunResultSchema.parse({
|
|
1102
|
+
projection: invalidatedProjection,
|
|
1103
|
+
event,
|
|
1104
|
+
inspection: createSurfaceInspectionView(invalidatedProjection, "daemon"),
|
|
1105
|
+
blocked_admissions: blockedAdmissions,
|
|
1106
|
+
});
|
|
1107
|
+
}
|
|
1108
|
+
function buildInvalidatedSurfaceProjection(projection, sourceRef, trigger, redactionRef) {
|
|
1109
|
+
const affectedSource = redactedSourceForTrigger(sourceRef, trigger, redactionRef);
|
|
1110
|
+
const redactionRequired = triggerRequiresRedaction(trigger);
|
|
1111
|
+
const blockedGate = trigger === "permission_revocation" || trigger === "permission_scope_narrowed"
|
|
1112
|
+
? "permission"
|
|
1113
|
+
: "lifecycle";
|
|
1114
|
+
return SurfaceProjectionSchema.parse({
|
|
1115
|
+
...projection,
|
|
1116
|
+
version: projection.version + 1,
|
|
1117
|
+
source_refs: projection.source_refs.map((candidate) => surfaceMemorySourceMatches(candidate, sourceRef) ? affectedSource : candidate),
|
|
1118
|
+
included_context: [],
|
|
1119
|
+
excluded_context: [{
|
|
1120
|
+
source_ref: affectedSource,
|
|
1121
|
+
requested_use: projection.requested_use,
|
|
1122
|
+
blocked_by: [{
|
|
1123
|
+
gate: blockedGate,
|
|
1124
|
+
status: "blocked",
|
|
1125
|
+
reason_ref: `surface:${projection.id}:${trigger}:${blockedGate}`,
|
|
1126
|
+
evaluated_at: projection.created_at,
|
|
1127
|
+
}],
|
|
1128
|
+
redaction_ref: redactionRequired ? redactionRef : undefined,
|
|
1129
|
+
inhibition_ref: trigger === "permission_revocation" ? `inhibition:${sourceRef.memory_id}:permission` : undefined,
|
|
1130
|
+
blocked_summary_ref: `summary:${projection.id}:${sourceRef.memory_id}:${trigger}`,
|
|
1131
|
+
}],
|
|
1132
|
+
rationale_entries: [{
|
|
1133
|
+
source_ref: affectedSource,
|
|
1134
|
+
decision: "excluded",
|
|
1135
|
+
gate: blockedGate,
|
|
1136
|
+
reason_ref: `rationale:${projection.id}:${sourceRef.memory_id}:${trigger}`,
|
|
1137
|
+
policy_refs: [`policy:${trigger}`],
|
|
1138
|
+
redaction_ref: redactionRequired ? redactionRef : undefined,
|
|
1139
|
+
}],
|
|
1140
|
+
metadata: {
|
|
1141
|
+
...projection.metadata,
|
|
1142
|
+
staleness: "unknown",
|
|
1143
|
+
sensitivity: redactionRequired ? "sensitive" : projection.metadata.sensitivity,
|
|
1144
|
+
permission_state: trigger === "permission_revocation" || trigger === "permission_scope_narrowed"
|
|
1145
|
+
? "blocked"
|
|
1146
|
+
: projection.metadata.permission_state,
|
|
1147
|
+
invalidation_state: "invalid",
|
|
1148
|
+
audit_refs: uniqueStrings([...projection.metadata.audit_refs, `audit:${projection.id}:${trigger}`]),
|
|
1149
|
+
},
|
|
1150
|
+
});
|
|
1151
|
+
}
|
|
1152
|
+
function redactedSourceForTrigger(sourceRef, trigger, redactionRef) {
|
|
1153
|
+
if (!triggerRequiresRedaction(trigger))
|
|
1154
|
+
return sourceRef;
|
|
1155
|
+
if (!redactionRef) {
|
|
1156
|
+
throw new Error(`${trigger} requires a redaction_ref`);
|
|
1157
|
+
}
|
|
1158
|
+
const lifecycle = trigger === "memory_tombstone" ? "tombstoned" : "deleted";
|
|
1159
|
+
const reason = lifecycle === "tombstoned" ? "tombstoned" : "deleted";
|
|
1160
|
+
return SurfaceMemorySourceRefSchema.parse({
|
|
1161
|
+
...sourceRef,
|
|
1162
|
+
domain_fields: {
|
|
1163
|
+
redaction_ref: redactionRef,
|
|
1164
|
+
reason,
|
|
1165
|
+
},
|
|
1166
|
+
allowed_uses: ["never_use_directly"],
|
|
1167
|
+
not_allowed_uses: uniqueBlockedUseClasses([...sourceRef.not_allowed_uses, ...sourceRef.allowed_uses]),
|
|
1168
|
+
lifecycle,
|
|
1169
|
+
correction_state: lifecycle === "deleted" ? "deleted" : sourceRef.correction_state,
|
|
1170
|
+
content_state: "redacted",
|
|
1171
|
+
dependency_ref: {
|
|
1172
|
+
...sourceRef.dependency_ref,
|
|
1173
|
+
content_state: "redacted",
|
|
1174
|
+
lifecycle,
|
|
1175
|
+
correction_state: lifecycle === "deleted" ? "deleted" : sourceRef.correction_state,
|
|
1176
|
+
},
|
|
1177
|
+
});
|
|
1178
|
+
}
|
|
1179
|
+
function triggerRequiresRedaction(trigger) {
|
|
1180
|
+
return trigger === "memory_tombstone" || trigger === "memory_deletion" || trigger === "source_redaction";
|
|
1181
|
+
}
|
|
1182
|
+
function triggerForMemoryCorrection(event) {
|
|
1183
|
+
if (event.action === "delete")
|
|
1184
|
+
return "memory_deletion";
|
|
1185
|
+
if (event.action === "retract")
|
|
1186
|
+
return "memory_retraction";
|
|
1187
|
+
if (event.action === "supersede")
|
|
1188
|
+
return "memory_supersession";
|
|
1189
|
+
return "memory_correction";
|
|
1190
|
+
}
|
|
1191
|
+
function redactionRefForCorrection(event, trigger) {
|
|
1192
|
+
if (!triggerRequiresRedaction(trigger))
|
|
1193
|
+
return undefined;
|
|
1194
|
+
return event.invalidation_ref ? `${event.invalidation_ref}:redaction` : undefined;
|
|
1195
|
+
}
|
|
1196
|
+
function actionForInvalidationTrigger(trigger) {
|
|
1197
|
+
if (triggerRequiresRedaction(trigger))
|
|
1198
|
+
return "redact";
|
|
1199
|
+
if (trigger === "permission_revocation" || trigger === "permission_scope_narrowed")
|
|
1200
|
+
return "regate";
|
|
1201
|
+
if (trigger === "surface_expired")
|
|
1202
|
+
return "expire";
|
|
1203
|
+
return "regate";
|
|
1204
|
+
}
|
|
1205
|
+
function operationForDerivedRuntimeKind(kind) {
|
|
1206
|
+
switch (kind) {
|
|
1207
|
+
case "expression_decision":
|
|
1208
|
+
return "speech";
|
|
1209
|
+
case "session_resume_attempt":
|
|
1210
|
+
return "session_resume";
|
|
1211
|
+
case "memory_write_candidate":
|
|
1212
|
+
return "memory_write";
|
|
1213
|
+
case "agenda_item":
|
|
1214
|
+
case "outcome_decision":
|
|
1215
|
+
case "runtime_item":
|
|
1216
|
+
return "action";
|
|
1217
|
+
}
|
|
1218
|
+
}
|
|
1219
|
+
function dependentRefGroupForKind(kind) {
|
|
1220
|
+
switch (kind) {
|
|
1221
|
+
case "runtime_item":
|
|
1222
|
+
return "runtime_items";
|
|
1223
|
+
case "agenda_item":
|
|
1224
|
+
return "agenda_items";
|
|
1225
|
+
case "outcome_decision":
|
|
1226
|
+
return "outcome_decisions";
|
|
1227
|
+
case "expression_decision":
|
|
1228
|
+
return "expression_decisions";
|
|
1229
|
+
case "memory_write_candidate":
|
|
1230
|
+
return "memory_write_candidates";
|
|
1231
|
+
case "session_resume_attempt":
|
|
1232
|
+
return "session_resume_attempts";
|
|
1233
|
+
}
|
|
1234
|
+
}
|
|
1235
|
+
function upsertSurfaceDerivedRuntimeRef(refs, nextRef) {
|
|
1236
|
+
return [...refs.filter((candidate) => candidate.ref !== nextRef.ref), nextRef];
|
|
1237
|
+
}
|
|
1238
|
+
function missingRuntimeDependencyRefs(projection, derivedRef) {
|
|
1239
|
+
const missing = [];
|
|
1240
|
+
const groupName = dependentRefGroupForKind(derivedRef.kind);
|
|
1241
|
+
const projectionRef = projection.dependent_refs[groupName].find((candidate) => candidate.ref === derivedRef.ref);
|
|
1242
|
+
const selectedMemoryRefs = new Set(projection.source_refs.map((source) => source.memory_id));
|
|
1243
|
+
const selectedPermissionRefs = new Set(projection.relationship_permissions.map((permission) => permission.permission_id));
|
|
1244
|
+
const selectedStalenessRefs = new Set(projection.staleness_checks);
|
|
1245
|
+
const selectedAuditRefs = new Set(projection.metadata.audit_refs);
|
|
1246
|
+
if (!projectionRef)
|
|
1247
|
+
missing.push(`dependent_refs.${groupName}:${derivedRef.ref}`);
|
|
1248
|
+
if (!derivedRef.related_surface_refs.includes(projection.id))
|
|
1249
|
+
missing.push(`related_surface_refs:${projection.id}`);
|
|
1250
|
+
if (derivedRef.related_memory_refs.length === 0)
|
|
1251
|
+
missing.push("related_memory_refs");
|
|
1252
|
+
if (derivedRef.permission_check_refs.length === 0)
|
|
1253
|
+
missing.push("permission_check_refs");
|
|
1254
|
+
if (derivedRef.staleness_check_refs.length === 0)
|
|
1255
|
+
missing.push("staleness_check_refs");
|
|
1256
|
+
if (derivedRef.audit_refs.length === 0)
|
|
1257
|
+
missing.push("audit_refs");
|
|
1258
|
+
for (const ref of derivedRef.related_memory_refs) {
|
|
1259
|
+
if (!selectedMemoryRefs.has(ref))
|
|
1260
|
+
missing.push(`related_memory_refs:${ref}`);
|
|
1261
|
+
}
|
|
1262
|
+
for (const ref of derivedRef.permission_check_refs) {
|
|
1263
|
+
if (!selectedPermissionRefs.has(ref))
|
|
1264
|
+
missing.push(`permission_check_refs:${ref}`);
|
|
1265
|
+
}
|
|
1266
|
+
for (const ref of derivedRef.staleness_check_refs) {
|
|
1267
|
+
if (!selectedStalenessRefs.has(ref))
|
|
1268
|
+
missing.push(`staleness_check_refs:${ref}`);
|
|
1269
|
+
}
|
|
1270
|
+
for (const ref of derivedRef.audit_refs) {
|
|
1271
|
+
if (!selectedAuditRefs.has(ref))
|
|
1272
|
+
missing.push(`audit_refs:${ref}`);
|
|
1273
|
+
}
|
|
1274
|
+
return uniqueStrings(missing);
|
|
1275
|
+
}
|
|
1276
|
+
function memoryWriteCandidateAffectedByInvalidation(candidate, event) {
|
|
1277
|
+
return candidate.source_surface_ref === event.surface_ref
|
|
1278
|
+
|| event.affected_dependencies.some((dependency) => dependency.kind === "memory_write_candidate" && dependency.ref === candidate.candidate_id)
|
|
1279
|
+
|| candidate.source_dependency_refs.some((dependency) => dependencyMatchesInvalidatedSource(dependency, event));
|
|
1280
|
+
}
|
|
1281
|
+
function dependencyMatchesInvalidatedSource(dependency, event) {
|
|
1282
|
+
return dependency.ref === event.source_ref.memory_id
|
|
1283
|
+
|| dependency.ref === event.source_ref.dependency_ref.ref;
|
|
1284
|
+
}
|
|
1285
|
+
function dependencyContentWasRemoved(dependency) {
|
|
1286
|
+
return dependency.content_state === "redacted"
|
|
1287
|
+
|| dependency.lifecycle === "tombstoned"
|
|
1288
|
+
|| dependency.lifecycle === "deleted"
|
|
1289
|
+
|| dependency.correction_state === "deleted";
|
|
1290
|
+
}
|
|
1291
|
+
function freshCheckBindsToCandidate(candidate, check) {
|
|
1292
|
+
if (check.evidence_refs.length === 0)
|
|
1293
|
+
return false;
|
|
1294
|
+
switch (check.kind) {
|
|
1295
|
+
case "owner":
|
|
1296
|
+
return check.ref === ownerRefKey(candidate.proposed_owner_ref)
|
|
1297
|
+
&& check.evidence_refs.some((evidence) => evidence.owning_store_ref
|
|
1298
|
+
? ownerRefsEqual(evidence.owning_store_ref, candidate.proposed_owner_ref)
|
|
1299
|
+
: false);
|
|
1300
|
+
case "provenance":
|
|
1301
|
+
return candidate.provenance_refs.some((dependency) => dependency.ref === check.ref)
|
|
1302
|
+
&& check.evidence_refs.some((evidence) => candidate.provenance_refs.some((dependency) => surfaceDependencyRefsEqual(dependency, evidence)));
|
|
1303
|
+
case "permission":
|
|
1304
|
+
return candidate.permission_check_refs.includes(check.ref)
|
|
1305
|
+
&& check.evidence_refs.some((evidence) => evidence.kind === "permission_grant" && evidence.ref === check.ref);
|
|
1306
|
+
case "deletion":
|
|
1307
|
+
return candidate.deletion_check_refs.includes(check.ref)
|
|
1308
|
+
&& check.evidence_refs.some((evidence) => candidate.source_dependency_refs.some((dependency) => surfaceDependencyRefsEqual(dependency, evidence)));
|
|
1309
|
+
case "source_evidence":
|
|
1310
|
+
return candidate.source_evidence_check_refs.includes(check.ref)
|
|
1311
|
+
&& check.evidence_refs.some((evidence) => candidate.source_dependency_refs.some((dependency) => surfaceDependencyRefsEqual(dependency, evidence)));
|
|
1312
|
+
}
|
|
1313
|
+
}
|
|
1314
|
+
function ownerRefKey(ownerRef) {
|
|
1315
|
+
return `${ownerRef.kind}:${ownerRef.store_ref}:${ownerRef.record_ref}:${ownerRef.schema_version}`;
|
|
1316
|
+
}
|
|
1317
|
+
function ownerRefsEqual(left, right) {
|
|
1318
|
+
return ownerRefKey(left) === ownerRefKey(right);
|
|
1319
|
+
}
|
|
1320
|
+
function surfaceDependencyRefsEqual(left, right) {
|
|
1321
|
+
return left.kind === right.kind && left.ref === right.ref;
|
|
1322
|
+
}
|
|
1323
|
+
function buildSurfaceRuntimeAdmission(request, status, reason, blockedRefs) {
|
|
1324
|
+
return SurfaceRuntimeAdmissionSchema.parse({
|
|
1325
|
+
status,
|
|
1326
|
+
reason,
|
|
1327
|
+
operation: request.operation,
|
|
1328
|
+
dependent_ref: request.derived_ref.ref,
|
|
1329
|
+
related_surface_refs: request.derived_ref.related_surface_refs,
|
|
1330
|
+
related_memory_refs: request.derived_ref.related_memory_refs,
|
|
1331
|
+
blocked_refs: uniqueStrings(blockedRefs),
|
|
1332
|
+
required_rechecks: status === "blocked" ? [...SURFACE_GATE_ORDER] : [],
|
|
1333
|
+
audit_refs: uniqueStrings([
|
|
1334
|
+
...request.derived_ref.audit_refs,
|
|
1335
|
+
...(request.audit_ref ? [request.audit_ref] : []),
|
|
1336
|
+
]),
|
|
1337
|
+
});
|
|
1338
|
+
}
|
|
1339
|
+
function requiresRuntimeAuthority(operation) {
|
|
1340
|
+
return operation === "notification"
|
|
1341
|
+
|| operation === "action"
|
|
1342
|
+
|| operation === "session_resume"
|
|
1343
|
+
|| operation === "surface_update"
|
|
1344
|
+
|| operation === "memory_write";
|
|
1345
|
+
}
|
|
1346
|
+
function resolveAffectedDependencies(projection, affectedDependencies) {
|
|
1347
|
+
const dependencies = affectedDependencies === undefined
|
|
1348
|
+
? Object.values(projection.dependent_refs).flat()
|
|
1349
|
+
: affectedDependencies.map((dependency) => SurfaceDerivedRuntimeRefSchema.parse(dependency));
|
|
1350
|
+
return z.array(SurfaceDerivedRuntimeRefSchema).min(1).parse(dependencies);
|
|
1351
|
+
}
|
|
1352
|
+
//# sourceMappingURL=surface-contracts.js.map
|