pulseed 0.6.5 → 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 +2 -248
- 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 +65 -6
- package/dist/base/config/global-config.d.ts.map +1 -1
- package/dist/base/config/global-config.js +73 -24
- 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 +2 -0
- package/dist/base/utils/paths.d.ts.map +1 -1
- package/dist/base/utils/paths.js +6 -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/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 -9
- package/dist/interface/chat/chat-runner-commands.d.ts.map +1 -1
- package/dist/interface/chat/chat-runner-commands.js +112 -254
- 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 +4 -7
- package/dist/interface/cli/commands/daemon-shared.d.ts.map +1 -1
- package/dist/interface/cli/commands/daemon-shared.js +46 -52
- 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 +155 -111
- 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 +2 -1
- package/dist/interface/cli/commands/doctor.d.ts.map +1 -1
- package/dist/interface/cli/commands/doctor.js +172 -80
- 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 +3 -0
- 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 +1 -0
- 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-result.d.ts +6 -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 +0 -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 +47 -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.d.ts +22 -19
- 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 +18 -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.map +1 -1
- package/dist/orchestrator/execution/agent-loop/task-agent-loop-result.js +3 -0
- 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 +180 -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 +49 -3
- package/dist/orchestrator/execution/task/task-artifact-contract.js.map +1 -1
- package/dist/orchestrator/execution/task/task-diff-capture.d.ts +1 -0
- package/dist/orchestrator/execution/task/task-diff-capture.d.ts.map +1 -1
- package/dist/orchestrator/execution/task/task-diff-capture.js +92 -3
- 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-executor.js +6 -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 -205
- package/dist/orchestrator/execution/task/task-generation.d.ts.map +1 -1
- package/dist/orchestrator/execution/task/task-generation.js +72 -87
- 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 +34 -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 +34 -84
- package/dist/orchestrator/execution/task/task-lifecycle.js.map +1 -1
- package/dist/orchestrator/execution/task/task-outcome-ledger.d.ts +1 -1
- package/dist/orchestrator/execution/task/task-outcome-ledger.d.ts.map +1 -1
- package/dist/orchestrator/execution/task/task-outcome-ledger.js +7 -73
- 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 +37 -19
- 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 +50 -44
- package/dist/orchestrator/execution/task/task-verifier-rules.js.map +1 -1
- package/dist/orchestrator/execution/task/task-verifier-types.d.ts +1 -1
- 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 +98 -258
- 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 +5 -0
- package/dist/orchestrator/execution/types/task-group.d.ts.map +1 -1
- package/dist/orchestrator/execution/types/task.d.ts +11 -0
- package/dist/orchestrator/execution/types/task.d.ts.map +1 -1
- package/dist/orchestrator/execution/types/task.js +2 -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/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 +67 -57
- 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/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 +1 -1
- 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 +4 -4
- 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 +194 -194
- 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 +414 -385
- 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/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 +20 -16
- 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 +10 -132
- package/dist/reporting/reporting-engine.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 +49 -1
- package/dist/runtime/control/runtime-control-service.d.ts.map +1 -1
- package/dist/runtime/control/runtime-control-service.js +916 -19
- 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 +1 -0
- package/dist/runtime/daemon/browser-backpressure-policy.d.ts.map +1 -1
- package/dist/runtime/daemon/browser-backpressure-policy.js +7 -8
- package/dist/runtime/daemon/browser-backpressure-policy.js.map +1 -1
- package/dist/runtime/daemon/client.d.ts +1 -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 +20 -19
- package/dist/runtime/daemon/runner.js.map +1 -1
- package/dist/runtime/daemon/runtime-ownership.d.ts +1 -0
- package/dist/runtime/daemon/runtime-ownership.d.ts.map +1 -1
- package/dist/runtime/daemon/runtime-ownership.js +41 -48
- 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 +10 -2
- package/dist/runtime/event/server-snapshot-reader.d.ts.map +1 -1
- package/dist/runtime/event/server-snapshot-reader.js +95 -64
- 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 +4 -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-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/runtime-auth-handoff-store.d.ts +9 -4
- package/dist/runtime/interactive-automation/runtime-auth-handoff-store.d.ts.map +1 -1
- package/dist/runtime/interactive-automation/runtime-auth-handoff-store.js +82 -9
- package/dist/runtime/interactive-automation/runtime-auth-handoff-store.js.map +1 -1
- 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 +43 -39
- 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 +768 -749
- 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 +19 -14
- 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 +623 -34
- package/dist/runtime/store/runtime-operation-schemas.d.ts.map +1 -1
- package/dist/runtime/store/runtime-operation-schemas.js +62 -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 -17
- package/dist/runtime/store/runtime-paths.d.ts.map +1 -1
- package/dist/runtime/store/runtime-paths.js +10 -61
- package/dist/runtime/store/runtime-paths.js.map +1 -1
- package/dist/runtime/store/runtime-schemas.d.ts +647 -194
- package/dist/runtime/store/runtime-schemas.d.ts.map +1 -1
- package/dist/runtime/store/runtime-schemas.js +72 -38
- 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 +30 -28
- 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 +2090 -2
- 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 +59 -219
- package/dist/tools/automation/InteractiveAutomationTools.d.ts.map +1 -1
- package/dist/tools/automation/InteractiveAutomationTools.js +5 -117
- 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 +4 -2
- package/dist/tools/builtin/factory.d.ts.map +1 -1
- package/dist/tools/builtin/factory.js +4 -2
- 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 +28 -28
- 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 +14 -320
- 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 +7 -1
- package/dist/tools/kaggle/KaggleSubmissionTools.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/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 +8 -8
- package/dist/tools/mutation/TaskUpdateTool/TaskUpdateTool.d.ts.map +1 -1
- package/dist/tools/mutation/TaskUpdateTool/TaskUpdateTool.js +10 -7
- 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 +38 -548
- 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 +2 -2
- 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 +2 -2
- 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 +3 -3
- 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 +5 -2
- package/dist/tools/system/ShellTool/ShellTool.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 +98 -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 +9 -2
- 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
|
@@ -2,34 +2,60 @@ import { randomUUID } from "node:crypto";
|
|
|
2
2
|
import { createRuntimeSessionRegistry, } from "../session-registry/index.js";
|
|
3
3
|
import { RuntimeEvidenceLedger } from "../store/evidence-ledger.js";
|
|
4
4
|
import { RuntimeOperationStore } from "../store/runtime-operation-store.js";
|
|
5
|
+
import { AttentionStateStore } from "../store/attention-state-store.js";
|
|
5
6
|
import { RuntimeOperatorHandoffStore } from "../store/operator-handoff-store.js";
|
|
6
7
|
import { BrowserSessionStore, RuntimeAuthHandoffStore } from "../interactive-automation/index.js";
|
|
7
8
|
import { breakerKey, GuardrailStore } from "../guardrails/index.js";
|
|
9
|
+
import { assembleCompanionStateReducerInput, deriveRuntimeItemControlPolicy, deriveCompanionStateSnapshot, } from "../companion-state-reducer.js";
|
|
10
|
+
import { buildRuntimeEventHighWatermark, runtimeItemFromAuthHandoff, runtimeItemFromBackgroundRun, runtimeItemFromBrowserSession, runtimeItemFromGuardrailBreaker, runtimeItemsFromBackpressureSnapshot, } from "../store/runtime-operation-companion.js";
|
|
8
11
|
import { resolveRuntimeTarget } from "./runtime-target-resolver.js";
|
|
12
|
+
import { actorKey, formatPermissionGrantAudit, formatPermissionGrantSummary, hasPermissionGrantSelectionContext, nextPermissionCapabilities, permissionGrantMatchesRequest, replacementGrantInput, } from "./runtime-control-permission-grants.js";
|
|
13
|
+
const DEACTIVATES_COMPANION_CONTROL = {
|
|
14
|
+
leave_quiet_mode: "enter_quiet_mode",
|
|
15
|
+
resume_proactivity: "pause_proactivity",
|
|
16
|
+
resume_companion: "suspend_companion",
|
|
17
|
+
};
|
|
9
18
|
export class RuntimeControlService {
|
|
10
19
|
operationStore;
|
|
11
20
|
sessionRegistry;
|
|
12
21
|
evidenceLedger;
|
|
13
22
|
operatorHandoffStore;
|
|
23
|
+
permissionGrantStore;
|
|
14
24
|
authHandoffStore;
|
|
15
25
|
browserSessionStore;
|
|
16
26
|
guardrailStore;
|
|
27
|
+
attentionStore;
|
|
17
28
|
executor;
|
|
18
29
|
now;
|
|
19
30
|
constructor(options = {}) {
|
|
20
|
-
|
|
31
|
+
const runtimeRoot = options.runtimeRoot ?? options.operationStore?.runtimeRootDir();
|
|
32
|
+
const controlDbOptions = options.stateManager
|
|
33
|
+
? { controlBaseDir: options.stateManager.getBaseDir() }
|
|
34
|
+
: options.operationStore?.runtimeControlDbOptions();
|
|
35
|
+
this.operationStore = options.operationStore ?? new RuntimeOperationStore(runtimeRoot, controlDbOptions);
|
|
21
36
|
this.sessionRegistry = options.sessionRegistry ?? (options.stateManager
|
|
22
37
|
? createRuntimeSessionRegistry({ stateManager: options.stateManager })
|
|
23
38
|
: undefined);
|
|
24
|
-
this.evidenceLedger = options.evidenceLedger ?? (
|
|
25
|
-
this.operatorHandoffStore = options.operatorHandoffStore ?? (
|
|
26
|
-
this.
|
|
27
|
-
this.
|
|
28
|
-
this.
|
|
39
|
+
this.evidenceLedger = options.evidenceLedger ?? (runtimeRoot ? new RuntimeEvidenceLedger(runtimeRoot) : undefined);
|
|
40
|
+
this.operatorHandoffStore = options.operatorHandoffStore ?? (runtimeRoot ? new RuntimeOperatorHandoffStore(runtimeRoot, controlDbOptions) : undefined);
|
|
41
|
+
this.permissionGrantStore = options.permissionGrantStore;
|
|
42
|
+
this.authHandoffStore = options.authHandoffStore ?? new RuntimeAuthHandoffStore(runtimeRoot, controlDbOptions);
|
|
43
|
+
this.browserSessionStore = options.browserSessionStore ?? new BrowserSessionStore(runtimeRoot, controlDbOptions);
|
|
44
|
+
this.guardrailStore = options.guardrailStore ?? new GuardrailStore(runtimeRoot, controlDbOptions);
|
|
45
|
+
this.attentionStore = options.attentionStore ?? (runtimeRoot ? new AttentionStateStore(runtimeRoot, controlDbOptions) : undefined);
|
|
29
46
|
this.executor = options.executor;
|
|
30
47
|
this.now = options.now ?? (() => new Date());
|
|
31
48
|
}
|
|
32
49
|
async request(request) {
|
|
50
|
+
if (isCompanionWideControlKind(request.intent.kind)) {
|
|
51
|
+
return this.handleCompanionWideControl(request);
|
|
52
|
+
}
|
|
53
|
+
if (isSessionControlKind(request.intent.kind)) {
|
|
54
|
+
return this.handleSessionControl(request);
|
|
55
|
+
}
|
|
56
|
+
if (isPermissionControlKind(request.intent.kind)) {
|
|
57
|
+
return this.handlePermissionControl(request);
|
|
58
|
+
}
|
|
33
59
|
if (isRunControlKind(request.intent.kind)) {
|
|
34
60
|
return this.handleRunControl(request);
|
|
35
61
|
}
|
|
@@ -85,6 +111,396 @@ export class RuntimeControlService {
|
|
|
85
111
|
const result = await this.applyAutomationControl(request);
|
|
86
112
|
return this.recordAutomationOperation(request, result.success ? "verified" : "blocked", result.success, result.message);
|
|
87
113
|
}
|
|
114
|
+
async assembleCompanionStateInput(request = {}) {
|
|
115
|
+
const currentTime = request.currentTime ?? this.nowIso();
|
|
116
|
+
const collectedRuntimeItems = await this.collectRuntimeItems(currentTime);
|
|
117
|
+
const runtimeEvents = await this.operationStore.listRuntimeEvents();
|
|
118
|
+
const projectedControls = request.globalControls
|
|
119
|
+
? null
|
|
120
|
+
: await this.projectGlobalControlState(collectedRuntimeItems);
|
|
121
|
+
const globalControls = request.globalControls ?? projectedControls?.controls ?? [];
|
|
122
|
+
const activeControls = request.globalControls
|
|
123
|
+
? globalControls.filter((entry) => entry.state === "active").map((entry) => entry.control)
|
|
124
|
+
: projectedControls?.activeControls ?? [];
|
|
125
|
+
const runtimeItems = applyCompanionControlState(collectedRuntimeItems, globalControls, activeControls);
|
|
126
|
+
return assembleCompanionStateReducerInput({
|
|
127
|
+
runtime_items: runtimeItems,
|
|
128
|
+
recent_runtime_events: runtimeEvents,
|
|
129
|
+
active_surface_ref: request.activeSurfaceRef ?? null,
|
|
130
|
+
surface_invalidation_events: request.surfaceInvalidationEvents ?? [],
|
|
131
|
+
global_control_state_ref: request.globalControlStateRef ?? projectedControls?.stateRef ?? null,
|
|
132
|
+
global_controls: globalControls,
|
|
133
|
+
control_overlays: request.controlOverlays ?? [],
|
|
134
|
+
pre_suspend_mode: request.preSuspendMode ?? null,
|
|
135
|
+
user_activity_refs: request.userActivityRefs ?? [],
|
|
136
|
+
feedback_refs: request.feedbackRefs ?? [],
|
|
137
|
+
safety_context_refs: request.safetyContextRefs ?? [],
|
|
138
|
+
event_high_watermark: request.eventHighWatermark
|
|
139
|
+
?? buildRuntimeEventHighWatermark(runtimeEvents, `runtime-event-high-watermark:${currentTime}`),
|
|
140
|
+
current_time: currentTime,
|
|
141
|
+
});
|
|
142
|
+
}
|
|
143
|
+
async recomputeCompanionState(request = {}) {
|
|
144
|
+
const input = await this.assembleCompanionStateInput(request);
|
|
145
|
+
return {
|
|
146
|
+
input,
|
|
147
|
+
snapshot: deriveCompanionStateSnapshot(input),
|
|
148
|
+
};
|
|
149
|
+
}
|
|
150
|
+
inspectCompanionState(request) {
|
|
151
|
+
return this.request({ ...request, intent: { kind: "inspect_companion_state", reason: request.reason } });
|
|
152
|
+
}
|
|
153
|
+
setCompanionControl(request) {
|
|
154
|
+
return this.request({ ...request, intent: { kind: request.control, reason: request.reason } });
|
|
155
|
+
}
|
|
156
|
+
inspectSession(request) {
|
|
157
|
+
return this.request({ ...request, intent: { kind: "inspect_session", reason: request.reason, target: targetFromRunRequest(request) } });
|
|
158
|
+
}
|
|
159
|
+
summarizeSessionWithoutResuming(request) {
|
|
160
|
+
return this.request({
|
|
161
|
+
...request,
|
|
162
|
+
intent: { kind: "summarize_session_without_resuming", reason: request.reason, target: targetFromRunRequest(request) },
|
|
163
|
+
});
|
|
164
|
+
}
|
|
165
|
+
async handleCompanionWideControl(request) {
|
|
166
|
+
const runtimeItemsBeforeControl = await this.collectRuntimeItems(this.nowIso());
|
|
167
|
+
const initial = await this.createInitialOperation(request);
|
|
168
|
+
const control = request.intent.kind;
|
|
169
|
+
const affectedRefs = affectedRuntimeRefsForControl(control, runtimeItemsBeforeControl);
|
|
170
|
+
if (request.intent.kind === "inspect_companion_state") {
|
|
171
|
+
const current = await this.recomputeCompanionState({
|
|
172
|
+
activeSurfaceRef: null,
|
|
173
|
+
currentTime: this.nowIso(),
|
|
174
|
+
});
|
|
175
|
+
const inspection = buildCompanionStateInspection(current.input.runtime_items, current.snapshot);
|
|
176
|
+
const inspected = await this.update(initial, "verified", {
|
|
177
|
+
ok: true,
|
|
178
|
+
message: formatCompanionStateSummary(current.snapshot, inspection),
|
|
179
|
+
companionStateInspection: inspection,
|
|
180
|
+
});
|
|
181
|
+
return this.toResult(inspected);
|
|
182
|
+
}
|
|
183
|
+
const quietWorkStop = control === "stop_all_quiet_work"
|
|
184
|
+
? await this.stopActiveQuietWork(initial, runtimeItemsBeforeControl, request)
|
|
185
|
+
: null;
|
|
186
|
+
const agendaSuppression = isDurableAgendaSuppressionControl(control) && this.attentionStore
|
|
187
|
+
? await this.attentionStore.suppressAgendaForControl({
|
|
188
|
+
control,
|
|
189
|
+
reason: request.intent.reason,
|
|
190
|
+
now: this.nowIso(),
|
|
191
|
+
auditRef: { kind: "audit_trace", id: `runtime-control-operation:${initial.operation_id}` },
|
|
192
|
+
})
|
|
193
|
+
: null;
|
|
194
|
+
const verified = await this.update(initial, "verified", {
|
|
195
|
+
ok: quietWorkStop?.ok ?? true,
|
|
196
|
+
message: [
|
|
197
|
+
formatCompanionControlApplied(control, affectedRefs),
|
|
198
|
+
quietWorkStop?.message,
|
|
199
|
+
agendaSuppression && agendaSuppression.suppressed_count > 0
|
|
200
|
+
? `Durable attention agenda suppressed ${agendaSuppression.suppressed_count} item(s); held items will not flush automatically.`
|
|
201
|
+
: null,
|
|
202
|
+
].filter((part) => Boolean(part)).join(" "),
|
|
203
|
+
affectedRuntimeRefs: affectedRefs,
|
|
204
|
+
});
|
|
205
|
+
return this.toResult(verified);
|
|
206
|
+
}
|
|
207
|
+
async stopActiveQuietWork(parentOperation, runtimeItems, request) {
|
|
208
|
+
const quietItems = runtimeItems
|
|
209
|
+
.filter(activeRuntimeItem)
|
|
210
|
+
.filter(quietWorkRuntimeItem);
|
|
211
|
+
if (quietItems.length === 0) {
|
|
212
|
+
return {
|
|
213
|
+
ok: true,
|
|
214
|
+
message: "No active quiet work needed an interruption request.",
|
|
215
|
+
results: [],
|
|
216
|
+
};
|
|
217
|
+
}
|
|
218
|
+
const results = [];
|
|
219
|
+
for (const item of quietItems) {
|
|
220
|
+
results.push(await this.stopQuietWorkItem(parentOperation, item, request));
|
|
221
|
+
}
|
|
222
|
+
const sentCount = results.filter((result) => result.ok).length;
|
|
223
|
+
const nonExecutionCount = results.filter((result) => !result.ok).length;
|
|
224
|
+
const pieces = [
|
|
225
|
+
sentCount > 0 ? `Typed pause request sent for ${sentCount} active quiet run(s).` : null,
|
|
226
|
+
nonExecutionCount > 0 ? `${nonExecutionCount} affected quiet item(s) recorded typed non-execution state.` : null,
|
|
227
|
+
].filter((piece) => Boolean(piece));
|
|
228
|
+
return {
|
|
229
|
+
ok: nonExecutionCount === 0,
|
|
230
|
+
message: pieces.join(" "),
|
|
231
|
+
results,
|
|
232
|
+
};
|
|
233
|
+
}
|
|
234
|
+
async stopQuietWorkItem(parentOperation, item, request) {
|
|
235
|
+
let operation = await this.createQuietWorkPauseOperation(parentOperation, item, request);
|
|
236
|
+
if (!operation.target?.run_id || !operation.target.goal_id) {
|
|
237
|
+
operation = await this.update(operation, "blocked", {
|
|
238
|
+
ok: false,
|
|
239
|
+
message: `Quiet-work item ${item.item_id} was held but not paused because it has no typed goal/runtime bridge.`,
|
|
240
|
+
});
|
|
241
|
+
await this.appendControlEvidence(operation);
|
|
242
|
+
return quietWorkStopResult(item.item_id, operation);
|
|
243
|
+
}
|
|
244
|
+
const approved = await this.approveIfRequired(operation, request.approvalFn);
|
|
245
|
+
if (!approved.ok) {
|
|
246
|
+
const saved = approved.result.operationId
|
|
247
|
+
? await this.operationStore.load(approved.result.operationId)
|
|
248
|
+
: null;
|
|
249
|
+
operation = saved ?? operation;
|
|
250
|
+
await this.appendControlEvidence(operation);
|
|
251
|
+
return quietWorkStopResult(item.item_id, operation);
|
|
252
|
+
}
|
|
253
|
+
// The parent companion-wide control is the explicit user command; these child
|
|
254
|
+
// operations still pass the normal pause_run approval gate before daemon I/O.
|
|
255
|
+
operation = approved.operation;
|
|
256
|
+
if (!this.executor) {
|
|
257
|
+
const runId = operation.target?.run_id ?? item.item_id;
|
|
258
|
+
operation = await this.update(operation, "blocked", {
|
|
259
|
+
ok: false,
|
|
260
|
+
message: `Quiet-work run ${runId} was held but not paused because no runtime control executor is configured.`,
|
|
261
|
+
});
|
|
262
|
+
await this.appendControlEvidence(operation);
|
|
263
|
+
return quietWorkStopResult(item.item_id, operation);
|
|
264
|
+
}
|
|
265
|
+
const acknowledged = await this.acknowledge(operation);
|
|
266
|
+
const executed = await this.executeAcknowledgedOperation(acknowledged, request);
|
|
267
|
+
const executedOperation = executed.operationId
|
|
268
|
+
? await this.operationStore.load(executed.operationId)
|
|
269
|
+
: null;
|
|
270
|
+
const saved = executedOperation ?? acknowledged;
|
|
271
|
+
await this.appendControlEvidence(saved);
|
|
272
|
+
return quietWorkStopResult(item.item_id, saved);
|
|
273
|
+
}
|
|
274
|
+
createQuietWorkPauseOperation(parentOperation, item, request) {
|
|
275
|
+
const requestedAt = this.nowIso();
|
|
276
|
+
const target = quietWorkPauseTarget(item);
|
|
277
|
+
return this.operationStore.save({
|
|
278
|
+
operation_id: randomUUID(),
|
|
279
|
+
kind: "pause_run",
|
|
280
|
+
state: "pending",
|
|
281
|
+
requested_at: requestedAt,
|
|
282
|
+
updated_at: requestedAt,
|
|
283
|
+
requested_by: request.requestedBy ?? { surface: "chat" },
|
|
284
|
+
reply_target: normalizeReplyTarget(request.replyTarget ?? { surface: "chat" }),
|
|
285
|
+
reason: `Parent stop_all_quiet_work ${parentOperation.operation_id}: ${request.intent.reason}`,
|
|
286
|
+
expected_health: expectedHealthFor("pause_run"),
|
|
287
|
+
...(target ? { target } : {}),
|
|
288
|
+
});
|
|
289
|
+
}
|
|
290
|
+
async handleSessionControl(request) {
|
|
291
|
+
const initial = await this.createInitialOperation(request);
|
|
292
|
+
if (!this.sessionRegistry) {
|
|
293
|
+
const blocked = await this.update(initial, "blocked", {
|
|
294
|
+
ok: false,
|
|
295
|
+
message: "Runtime session catalog is not available for session control.",
|
|
296
|
+
});
|
|
297
|
+
return this.toResult(blocked);
|
|
298
|
+
}
|
|
299
|
+
const sessionId = request.intent.target?.sessionId;
|
|
300
|
+
if (!sessionId) {
|
|
301
|
+
const blocked = await this.update(initial, "blocked", {
|
|
302
|
+
ok: false,
|
|
303
|
+
message: `${request.intent.kind} requires an explicit session id; refusing to fall back to latest session.`,
|
|
304
|
+
});
|
|
305
|
+
return this.toResult(blocked);
|
|
306
|
+
}
|
|
307
|
+
const snapshot = await this.sessionRegistry.snapshot();
|
|
308
|
+
const session = snapshot.sessions.find((candidate) => candidate.id === sessionId);
|
|
309
|
+
if (!session) {
|
|
310
|
+
const blocked = await this.update(initial, "blocked", {
|
|
311
|
+
ok: false,
|
|
312
|
+
message: `Runtime session ${sessionId} was not found; refusing to fall back to latest session.`,
|
|
313
|
+
resumeOutcome: "resume_rejected_stale",
|
|
314
|
+
});
|
|
315
|
+
return this.toResult(blocked);
|
|
316
|
+
}
|
|
317
|
+
const verified = await this.update(initial, "verified", {
|
|
318
|
+
ok: true,
|
|
319
|
+
message: request.intent.kind === "summarize_session_without_resuming"
|
|
320
|
+
? formatSessionSummaryOnly(session)
|
|
321
|
+
: formatSessionInspection(session),
|
|
322
|
+
resumeOutcome: request.intent.kind === "summarize_session_without_resuming" ? "summary_only" : "inspect_only",
|
|
323
|
+
});
|
|
324
|
+
return this.toResult(verified);
|
|
325
|
+
}
|
|
326
|
+
async handlePermissionControl(request) {
|
|
327
|
+
const initial = await this.createInitialOperation(request);
|
|
328
|
+
if (!this.permissionGrantStore) {
|
|
329
|
+
const blocked = await this.update(initial, "blocked", {
|
|
330
|
+
ok: false,
|
|
331
|
+
message: "PermissionGrant control is unavailable because the permission grant store is not configured.",
|
|
332
|
+
});
|
|
333
|
+
return this.toResult(blocked);
|
|
334
|
+
}
|
|
335
|
+
switch (request.intent.kind) {
|
|
336
|
+
case "inspect_permission_boundary": {
|
|
337
|
+
const grants = await this.matchPermissionGrants(request, { activeOnly: true });
|
|
338
|
+
const inspected = await this.update(initial, "verified", {
|
|
339
|
+
ok: true,
|
|
340
|
+
message: formatPermissionGrantSummary(grants),
|
|
341
|
+
});
|
|
342
|
+
return this.toResult(inspected);
|
|
343
|
+
}
|
|
344
|
+
case "audit_permission_check": {
|
|
345
|
+
const grants = await this.matchPermissionGrants(request, { activeOnly: false });
|
|
346
|
+
const audited = await this.update(initial, "verified", {
|
|
347
|
+
ok: true,
|
|
348
|
+
message: formatPermissionGrantAudit(grants),
|
|
349
|
+
});
|
|
350
|
+
return this.toResult(audited);
|
|
351
|
+
}
|
|
352
|
+
case "revoke_permission": {
|
|
353
|
+
const selected = await this.selectSinglePermissionGrant(request);
|
|
354
|
+
if (!selected.ok) {
|
|
355
|
+
const blocked = await this.update(initial, "blocked", { ok: false, message: selected.message });
|
|
356
|
+
return this.toResult(blocked);
|
|
357
|
+
}
|
|
358
|
+
const revoked = await this.permissionGrantStore.revoke(selected.grant.grant_id, {
|
|
359
|
+
revoked_by: actorKey(request.requestedBy),
|
|
360
|
+
reason: request.intent.reason,
|
|
361
|
+
audit_refs: [`runtime-control:${initial.operation_id}`],
|
|
362
|
+
});
|
|
363
|
+
const updated = await this.update(initial, revoked ? "verified" : "blocked", {
|
|
364
|
+
ok: Boolean(revoked),
|
|
365
|
+
message: revoked
|
|
366
|
+
? `Revoked PermissionGrant ${revoked.grant_id}. Future covered actions will ask again or block according to policy.`
|
|
367
|
+
: `PermissionGrant ${selected.grant.grant_id} could not be revoked.`,
|
|
368
|
+
});
|
|
369
|
+
return this.toResult(updated);
|
|
370
|
+
}
|
|
371
|
+
case "narrow_permission":
|
|
372
|
+
case "extend_permission": {
|
|
373
|
+
const selected = await this.selectSinglePermissionGrant(request);
|
|
374
|
+
if (!selected.ok) {
|
|
375
|
+
const blocked = await this.update(initial, "blocked", { ok: false, message: selected.message });
|
|
376
|
+
return this.toResult(blocked);
|
|
377
|
+
}
|
|
378
|
+
if (request.intent.kind === "extend_permission" && (request.intent.permissionCapabilities?.length ?? 0) === 0) {
|
|
379
|
+
const blocked = await this.update(initial, "blocked", {
|
|
380
|
+
ok: false,
|
|
381
|
+
message: "extend_permission requires at least one explicit grant capability.",
|
|
382
|
+
});
|
|
383
|
+
return this.toResult(blocked);
|
|
384
|
+
}
|
|
385
|
+
const capabilities = nextPermissionCapabilities(selected.grant, request.intent.permissionCapabilities, request.intent.kind);
|
|
386
|
+
if (capabilities.length === 0) {
|
|
387
|
+
const blocked = await this.update(initial, "blocked", {
|
|
388
|
+
ok: false,
|
|
389
|
+
message: `${request.intent.kind} requires at least one explicit grant capability.`,
|
|
390
|
+
});
|
|
391
|
+
return this.toResult(blocked);
|
|
392
|
+
}
|
|
393
|
+
const approval = request.intent.kind === "extend_permission"
|
|
394
|
+
? await this.approveIfRequired(initial, request.approvalFn)
|
|
395
|
+
: { ok: true, operation: initial };
|
|
396
|
+
if (!approval.ok)
|
|
397
|
+
return approval.result;
|
|
398
|
+
const replacementInput = replacementGrantInput(selected.grant, capabilities, request, approval.operation.operation_id);
|
|
399
|
+
const superseded = await this.permissionGrantStore.supersede(selected.grant.grant_id, replacementInput, {
|
|
400
|
+
audit_refs: [`runtime-control:${approval.operation.operation_id}`],
|
|
401
|
+
});
|
|
402
|
+
const activated = superseded
|
|
403
|
+
? await this.permissionGrantStore.activate(superseded.replacement.grant_id, {
|
|
404
|
+
audit_refs: [`runtime-control:${approval.operation.operation_id}`],
|
|
405
|
+
})
|
|
406
|
+
: null;
|
|
407
|
+
const updated = await this.update(approval.operation, activated ? "verified" : "blocked", {
|
|
408
|
+
ok: Boolean(activated),
|
|
409
|
+
message: activated
|
|
410
|
+
? `Updated PermissionGrant ${selected.grant.grant_id}; replacement ${activated.grant_id} allows ${activated.capabilities.join(", ")}.`
|
|
411
|
+
: `PermissionGrant ${selected.grant.grant_id} could not be updated.`,
|
|
412
|
+
});
|
|
413
|
+
return this.toResult(updated);
|
|
414
|
+
}
|
|
415
|
+
}
|
|
416
|
+
const blocked = await this.update(initial, "blocked", {
|
|
417
|
+
ok: false,
|
|
418
|
+
message: `Unsupported permission control operation: ${request.intent.kind}`,
|
|
419
|
+
});
|
|
420
|
+
return this.toResult(blocked);
|
|
421
|
+
}
|
|
422
|
+
async collectRuntimeItems(currentTime) {
|
|
423
|
+
const items = [
|
|
424
|
+
...await this.operationStore.listRuntimeItems(),
|
|
425
|
+
];
|
|
426
|
+
if (this.attentionStore) {
|
|
427
|
+
items.push(...await this.attentionStore.listRuntimeItems(currentTime));
|
|
428
|
+
}
|
|
429
|
+
if (this.sessionRegistry) {
|
|
430
|
+
const snapshot = await this.sessionRegistry.snapshot();
|
|
431
|
+
items.push(...snapshot.background_runs.map((run) => runtimeItemFromBackgroundRun(run, currentTime)));
|
|
432
|
+
}
|
|
433
|
+
items.push(...(await this.authHandoffStore.list()).map((handoff) => runtimeItemFromAuthHandoff(handoff, currentTime)));
|
|
434
|
+
items.push(...(await this.browserSessionStore.list()).map((session) => runtimeItemFromBrowserSession(session, currentTime)));
|
|
435
|
+
items.push(...(await this.guardrailStore.listBreakers()).map(runtimeItemFromGuardrailBreaker));
|
|
436
|
+
const backpressure = await this.guardrailStore.loadBackpressureSnapshot();
|
|
437
|
+
if (backpressure) {
|
|
438
|
+
items.push(...runtimeItemsFromBackpressureSnapshot(backpressure, currentTime));
|
|
439
|
+
}
|
|
440
|
+
return items;
|
|
441
|
+
}
|
|
442
|
+
async projectGlobalControlState(runtimeItems) {
|
|
443
|
+
const operations = [
|
|
444
|
+
...await this.operationStore.listCompleted(),
|
|
445
|
+
...await this.operationStore.listPending(),
|
|
446
|
+
]
|
|
447
|
+
.filter((operation) => isCompanionWideControlKind(operation.kind))
|
|
448
|
+
.filter((operation) => operation.kind !== "inspect_companion_state")
|
|
449
|
+
.filter((operation) => operation.state === "verified")
|
|
450
|
+
.sort((left, right) => left.updated_at.localeCompare(right.updated_at));
|
|
451
|
+
if (operations.length === 0) {
|
|
452
|
+
return { stateRef: null, controls: [], activeControls: [] };
|
|
453
|
+
}
|
|
454
|
+
const byControl = new Map();
|
|
455
|
+
for (const operation of operations) {
|
|
456
|
+
const control = operation.kind;
|
|
457
|
+
const affectedRefs = operation.result?.affected_runtime_refs
|
|
458
|
+
?? affectedRuntimeRefsForControl(control, runtimeItems);
|
|
459
|
+
const deactivated = DEACTIVATES_COMPANION_CONTROL[control];
|
|
460
|
+
if (deactivated) {
|
|
461
|
+
const previous = byControl.get(deactivated);
|
|
462
|
+
const preservedAffectedRefs = uniqueStrings([
|
|
463
|
+
...(previous?.affected_runtime_refs ?? []),
|
|
464
|
+
...affectedRefs,
|
|
465
|
+
]);
|
|
466
|
+
const preservedAuditRefs = uniqueStrings([
|
|
467
|
+
...(previous?.audit_refs ?? []),
|
|
468
|
+
`runtime-control-operation:${operation.operation_id}`,
|
|
469
|
+
]);
|
|
470
|
+
byControl.set(deactivated, companionControlEntry({
|
|
471
|
+
control: deactivated,
|
|
472
|
+
state: "inactive",
|
|
473
|
+
operation,
|
|
474
|
+
affectedRefs: preservedAffectedRefs,
|
|
475
|
+
auditRefs: preservedAuditRefs,
|
|
476
|
+
}));
|
|
477
|
+
byControl.set(control, companionControlEntry({
|
|
478
|
+
control,
|
|
479
|
+
state: "inactive",
|
|
480
|
+
operation,
|
|
481
|
+
affectedRefs,
|
|
482
|
+
}));
|
|
483
|
+
continue;
|
|
484
|
+
}
|
|
485
|
+
const existing = byControl.get(control);
|
|
486
|
+
if (existing?.state === "inactive" && existing.updated_at >= operation.updated_at) {
|
|
487
|
+
continue;
|
|
488
|
+
}
|
|
489
|
+
byControl.set(control, companionControlEntry({
|
|
490
|
+
control,
|
|
491
|
+
state: oneShotCompanionControls().has(control) ? "inactive" : "active",
|
|
492
|
+
operation,
|
|
493
|
+
affectedRefs,
|
|
494
|
+
}));
|
|
495
|
+
}
|
|
496
|
+
const latest = operations[operations.length - 1];
|
|
497
|
+
const controls = [...byControl.values()].sort((left, right) => left.updated_at.localeCompare(right.updated_at));
|
|
498
|
+
return {
|
|
499
|
+
stateRef: `global-control-state:${latest.operation_id}:${encodeURIComponent(latest.updated_at)}`,
|
|
500
|
+
controls,
|
|
501
|
+
activeControls: controls.filter((entry) => entry.state === "active").map((entry) => entry.control),
|
|
502
|
+
};
|
|
503
|
+
}
|
|
88
504
|
async handleRunControl(request) {
|
|
89
505
|
const initial = await this.createInitialOperation(request);
|
|
90
506
|
if (initial.state === "blocked")
|
|
@@ -106,10 +522,23 @@ export class RuntimeControlService {
|
|
|
106
522
|
const blocked = await this.update(initial, "blocked", {
|
|
107
523
|
ok: false,
|
|
108
524
|
message: `Runtime control ${request.intent.kind} is blocked: selected run ${initial.target?.run_id ?? "unknown"} has no typed goal/runtime bridge yet.`,
|
|
525
|
+
...(request.intent.kind === "resume_run" ? { resumeOutcome: "resume_rejected_safety" } : {}),
|
|
109
526
|
});
|
|
110
527
|
await this.appendControlEvidence(blocked);
|
|
111
528
|
return this.toResult(blocked);
|
|
112
529
|
}
|
|
530
|
+
if (request.intent.kind === "resume_run") {
|
|
531
|
+
const resumeDecision = await this.decideRunResume(initial);
|
|
532
|
+
if (resumeDecision.outcome !== "resume_allowed") {
|
|
533
|
+
const blocked = await this.update(initial, "blocked", {
|
|
534
|
+
ok: false,
|
|
535
|
+
message: resumeDecision.message,
|
|
536
|
+
resumeOutcome: resumeDecision.outcome,
|
|
537
|
+
});
|
|
538
|
+
await this.appendControlEvidence(blocked);
|
|
539
|
+
return this.toResult(blocked);
|
|
540
|
+
}
|
|
541
|
+
}
|
|
113
542
|
const approved = await this.approveIfRequired(initial, request.approvalFn);
|
|
114
543
|
if (!approved.ok)
|
|
115
544
|
return approved.result;
|
|
@@ -122,6 +551,76 @@ export class RuntimeControlService {
|
|
|
122
551
|
}
|
|
123
552
|
return result;
|
|
124
553
|
}
|
|
554
|
+
async decideRunResume(operation) {
|
|
555
|
+
if (!this.sessionRegistry || !operation.target?.run_id) {
|
|
556
|
+
return {
|
|
557
|
+
outcome: "resume_rejected_safety",
|
|
558
|
+
message: "Resume is blocked because runtime session evidence is unavailable.",
|
|
559
|
+
};
|
|
560
|
+
}
|
|
561
|
+
const snapshot = await this.sessionRegistry.snapshot();
|
|
562
|
+
const run = snapshot.background_runs.find((candidate) => candidate.id === operation.target?.run_id);
|
|
563
|
+
if (!run) {
|
|
564
|
+
return {
|
|
565
|
+
outcome: "resume_rejected_stale",
|
|
566
|
+
message: `Runtime run ${operation.target.run_id} was not found; refusing to fall back to latest run.`,
|
|
567
|
+
};
|
|
568
|
+
}
|
|
569
|
+
if (run.status !== "running" && run.status !== "queued") {
|
|
570
|
+
return {
|
|
571
|
+
outcome: "resume_requires_regrounding",
|
|
572
|
+
message: `Runtime run ${run.id} is ${run.status}; resume requires explicit re-grounding or inspect/summary first.`,
|
|
573
|
+
};
|
|
574
|
+
}
|
|
575
|
+
const runtimeItems = await this.collectRuntimeItems(this.nowIso());
|
|
576
|
+
const projectedControls = await this.projectGlobalControlState(runtimeItems);
|
|
577
|
+
const controlledItems = applyCompanionControlState(runtimeItems, projectedControls.controls, projectedControls.activeControls);
|
|
578
|
+
const runtimeItem = controlledItems.find((item) => item.item_id === `background-run:${run.id}`);
|
|
579
|
+
if (!runtimeItem) {
|
|
580
|
+
return {
|
|
581
|
+
outcome: "resume_rejected_stale",
|
|
582
|
+
message: `Runtime run ${run.id} has no RuntimeItem projection; refusing to fall back to latest run.`,
|
|
583
|
+
};
|
|
584
|
+
}
|
|
585
|
+
if (runtimeItem.control_policy.forbidden_controls.includes("resume_item")) {
|
|
586
|
+
return resumeBlockedByRuntimeItemPolicy(run.id, runtimeItem);
|
|
587
|
+
}
|
|
588
|
+
return {
|
|
589
|
+
outcome: "resume_allowed",
|
|
590
|
+
message: `Runtime run ${run.id} is current for resume admission.`,
|
|
591
|
+
};
|
|
592
|
+
}
|
|
593
|
+
async matchPermissionGrants(request, options) {
|
|
594
|
+
if (!this.permissionGrantStore)
|
|
595
|
+
return [];
|
|
596
|
+
const grants = options.activeOnly
|
|
597
|
+
? await this.permissionGrantStore.listActive()
|
|
598
|
+
: await this.permissionGrantStore.list();
|
|
599
|
+
const grantId = request.intent.target?.grantId;
|
|
600
|
+
if (grantId) {
|
|
601
|
+
const exact = grants.filter((grant) => grant.grant_id === grantId);
|
|
602
|
+
if (!hasPermissionGrantSelectionContext(request))
|
|
603
|
+
return exact;
|
|
604
|
+
return exact.filter((grant) => permissionGrantMatchesRequest(grant, request));
|
|
605
|
+
}
|
|
606
|
+
const contextual = grants.filter((grant) => permissionGrantMatchesRequest(grant, request));
|
|
607
|
+
if (contextual.length > 0)
|
|
608
|
+
return contextual;
|
|
609
|
+
return hasPermissionGrantSelectionContext(request) ? [] : grants;
|
|
610
|
+
}
|
|
611
|
+
async selectSinglePermissionGrant(request) {
|
|
612
|
+
const grants = await this.matchPermissionGrants(request, { activeOnly: true });
|
|
613
|
+
if (grants.length === 0) {
|
|
614
|
+
return { ok: false, message: "No active PermissionGrant matches this chat/runtime context." };
|
|
615
|
+
}
|
|
616
|
+
if (grants.length > 1 && !request.intent.target?.grantId) {
|
|
617
|
+
return {
|
|
618
|
+
ok: false,
|
|
619
|
+
message: `Multiple active PermissionGrants match this context. Specify one grant id: ${grants.map((grant) => grant.grant_id).join(", ")}`,
|
|
620
|
+
};
|
|
621
|
+
}
|
|
622
|
+
return { ok: true, grant: grants[0] };
|
|
623
|
+
}
|
|
125
624
|
async createInitialOperation(request) {
|
|
126
625
|
const target = await this.resolveTarget(request);
|
|
127
626
|
if (!target.ok) {
|
|
@@ -129,6 +628,7 @@ export class RuntimeControlService {
|
|
|
129
628
|
}
|
|
130
629
|
const requestedAt = this.nowIso();
|
|
131
630
|
const risk = riskForIntent(request.intent);
|
|
631
|
+
const directTarget = directTargetFromIntent(request.intent);
|
|
132
632
|
const operation = {
|
|
133
633
|
operation_id: randomUUID(),
|
|
134
634
|
kind: request.intent.kind,
|
|
@@ -147,7 +647,9 @@ export class RuntimeControlService {
|
|
|
147
647
|
...(target.goalId ? { goal_id: target.goalId } : {}),
|
|
148
648
|
},
|
|
149
649
|
}
|
|
150
|
-
:
|
|
650
|
+
: directTarget
|
|
651
|
+
? { target: directTarget }
|
|
652
|
+
: {}),
|
|
151
653
|
...(risk ? { risk } : {}),
|
|
152
654
|
};
|
|
153
655
|
return this.operationStore.save(operation);
|
|
@@ -477,6 +979,8 @@ export class RuntimeControlService {
|
|
|
477
979
|
message: operation.result?.message ?? ackMessage(operation.kind),
|
|
478
980
|
operationId: operation.operation_id,
|
|
479
981
|
state: operation.state,
|
|
982
|
+
...(operation.result?.resume_outcome ? { resumeOutcome: operation.result.resume_outcome } : {}),
|
|
983
|
+
...(operation.result?.companion_state_inspection ? { companionStateInspection: operation.result.companion_state_inspection } : {}),
|
|
480
984
|
};
|
|
481
985
|
}
|
|
482
986
|
async update(operation, state, result) {
|
|
@@ -484,7 +988,14 @@ export class RuntimeControlService {
|
|
|
484
988
|
...operation,
|
|
485
989
|
state,
|
|
486
990
|
updated_at: this.nowIso(),
|
|
487
|
-
result
|
|
991
|
+
result: {
|
|
992
|
+
...operation.result,
|
|
993
|
+
ok: result.ok,
|
|
994
|
+
message: result.message,
|
|
995
|
+
...(result.resumeOutcome ? { resume_outcome: result.resumeOutcome } : {}),
|
|
996
|
+
...(result.companionStateInspection ? { companion_state_inspection: result.companionStateInspection } : {}),
|
|
997
|
+
...(result.affectedRuntimeRefs ? { affected_runtime_refs: result.affectedRuntimeRefs } : {}),
|
|
998
|
+
},
|
|
488
999
|
};
|
|
489
1000
|
return this.operationStore.save(updated);
|
|
490
1001
|
}
|
|
@@ -501,6 +1012,29 @@ export function isExecutableRuntimeControlKind(kind) {
|
|
|
501
1012
|
|| kind === "resume_run"
|
|
502
1013
|
|| kind === "cancel_run";
|
|
503
1014
|
}
|
|
1015
|
+
function isPermissionControlKind(kind) {
|
|
1016
|
+
return kind === "inspect_permission_boundary"
|
|
1017
|
+
|| kind === "revoke_permission"
|
|
1018
|
+
|| kind === "narrow_permission"
|
|
1019
|
+
|| kind === "extend_permission"
|
|
1020
|
+
|| kind === "audit_permission_check";
|
|
1021
|
+
}
|
|
1022
|
+
function isCompanionWideControlKind(kind) {
|
|
1023
|
+
return kind === "inspect_companion_state"
|
|
1024
|
+
|| kind === "enter_quiet_mode"
|
|
1025
|
+
|| kind === "leave_quiet_mode"
|
|
1026
|
+
|| kind === "pause_proactivity"
|
|
1027
|
+
|| kind === "resume_proactivity"
|
|
1028
|
+
|| kind === "suspend_companion"
|
|
1029
|
+
|| kind === "resume_companion"
|
|
1030
|
+
|| kind === "stop_all_quiet_work"
|
|
1031
|
+
|| kind === "stop_all_watches"
|
|
1032
|
+
|| kind === "suppress_nonessential_agenda"
|
|
1033
|
+
|| kind === "require_confirmation_for_proactivity";
|
|
1034
|
+
}
|
|
1035
|
+
function isSessionControlKind(kind) {
|
|
1036
|
+
return kind === "inspect_session" || kind === "summarize_session_without_resuming";
|
|
1037
|
+
}
|
|
504
1038
|
function isRunControlKind(kind) {
|
|
505
1039
|
return kind === "inspect_run" || kind === "pause_run" || kind === "resume_run" || kind === "cancel_run" || kind === "finalize_run";
|
|
506
1040
|
}
|
|
@@ -512,7 +1046,8 @@ function requiresApproval(kind) {
|
|
|
512
1046
|
|| kind === "pause_run"
|
|
513
1047
|
|| kind === "resume_run"
|
|
514
1048
|
|| kind === "cancel_run"
|
|
515
|
-
|| kind === "finalize_run"
|
|
1049
|
+
|| kind === "finalize_run"
|
|
1050
|
+
|| kind === "extend_permission";
|
|
516
1051
|
}
|
|
517
1052
|
function normalizeReplyTarget(target) {
|
|
518
1053
|
return {
|
|
@@ -551,25 +1086,61 @@ function isPastIso(value) {
|
|
|
551
1086
|
function ackMessage(kind) {
|
|
552
1087
|
switch (kind) {
|
|
553
1088
|
case "restart_gateway":
|
|
554
|
-
return "
|
|
1089
|
+
return "Gateway restart has started. A result will be returned to this conversation after recovery.";
|
|
555
1090
|
case "restart_daemon":
|
|
556
|
-
return "PulSeed daemon
|
|
1091
|
+
return "PulSeed daemon restart has started. A result will be returned to this conversation after recovery.";
|
|
557
1092
|
case "reload_config":
|
|
558
|
-
return "
|
|
1093
|
+
return "Runtime configuration reload has started.";
|
|
559
1094
|
case "self_update":
|
|
560
|
-
return "PulSeed
|
|
1095
|
+
return "PulSeed self-update preparation has started. Changes will be reviewed before execution.";
|
|
561
1096
|
case "inspect_run":
|
|
562
|
-
return "
|
|
1097
|
+
return "Runtime run status was inspected.";
|
|
563
1098
|
case "pause_run":
|
|
564
|
-
return "
|
|
1099
|
+
return "Runtime run safe pause was requested.";
|
|
565
1100
|
case "resume_run":
|
|
566
|
-
return "
|
|
1101
|
+
return "Runtime run resume was requested.";
|
|
567
1102
|
case "cancel_run":
|
|
568
|
-
return "
|
|
1103
|
+
return "Runtime run cancellation was requested.";
|
|
569
1104
|
case "finalize_run":
|
|
570
|
-
return "
|
|
1105
|
+
return "Runtime run finalization proposal will be created.";
|
|
1106
|
+
case "inspect_permission_boundary":
|
|
1107
|
+
return "Active permission boundary was inspected.";
|
|
1108
|
+
case "revoke_permission":
|
|
1109
|
+
return "Permission grant revocation was recorded.";
|
|
1110
|
+
case "narrow_permission":
|
|
1111
|
+
return "Permission grant narrowing was recorded.";
|
|
1112
|
+
case "extend_permission":
|
|
1113
|
+
return "Permission grant extension was recorded.";
|
|
1114
|
+
case "audit_permission_check":
|
|
1115
|
+
return "Permission grant audit was inspected.";
|
|
1116
|
+
case "inspect_companion_state":
|
|
1117
|
+
return "Companion state was inspected.";
|
|
1118
|
+
case "enter_quiet_mode":
|
|
1119
|
+
return "Quiet mode was enabled.";
|
|
1120
|
+
case "leave_quiet_mode":
|
|
1121
|
+
return "Quiet mode was disabled. Held items were not resumed automatically.";
|
|
1122
|
+
case "pause_proactivity":
|
|
1123
|
+
return "Proactivity pause was enabled.";
|
|
1124
|
+
case "resume_proactivity":
|
|
1125
|
+
return "Proactivity pause was disabled. Held items require re-evaluation.";
|
|
1126
|
+
case "suspend_companion":
|
|
1127
|
+
return "Companion suspend was enabled.";
|
|
1128
|
+
case "resume_companion":
|
|
1129
|
+
return "Companion suspend was disabled. Held items were not resumed automatically.";
|
|
1130
|
+
case "stop_all_quiet_work":
|
|
1131
|
+
return "Quiet-work stop request was recorded.";
|
|
1132
|
+
case "stop_all_watches":
|
|
1133
|
+
return "Watch stop request was recorded.";
|
|
1134
|
+
case "suppress_nonessential_agenda":
|
|
1135
|
+
return "Nonessential agenda suppression was recorded.";
|
|
1136
|
+
case "require_confirmation_for_proactivity":
|
|
1137
|
+
return "Confirmation was required for proactivity.";
|
|
1138
|
+
case "inspect_session":
|
|
1139
|
+
return "Runtime session was inspected.";
|
|
1140
|
+
case "summarize_session_without_resuming":
|
|
1141
|
+
return "Runtime session was summarized without resuming.";
|
|
571
1142
|
case "automation_control":
|
|
572
|
-
return "
|
|
1143
|
+
return "Runtime automation control was recorded.";
|
|
573
1144
|
}
|
|
574
1145
|
}
|
|
575
1146
|
function targetFromRunRequest(request) {
|
|
@@ -580,6 +1151,16 @@ function targetFromRunRequest(request) {
|
|
|
580
1151
|
...(request.sessionId ? { sessionId: request.sessionId } : {}),
|
|
581
1152
|
};
|
|
582
1153
|
}
|
|
1154
|
+
function directTargetFromIntent(intent) {
|
|
1155
|
+
const target = intent.target;
|
|
1156
|
+
if (!target?.runId && !target?.sessionId && !target?.grantId)
|
|
1157
|
+
return undefined;
|
|
1158
|
+
return {
|
|
1159
|
+
...(target.runId ? { run_id: target.runId } : {}),
|
|
1160
|
+
...(target.sessionId ? { session_id: target.sessionId } : {}),
|
|
1161
|
+
...(target.grantId ? { grant_id: target.grantId } : {}),
|
|
1162
|
+
};
|
|
1163
|
+
}
|
|
583
1164
|
function riskForIntent(intent) {
|
|
584
1165
|
if (intent.kind !== "finalize_run")
|
|
585
1166
|
return null;
|
|
@@ -592,4 +1173,320 @@ function riskForIntent(intent) {
|
|
|
592
1173
|
function blocked(message) {
|
|
593
1174
|
return { ok: false, result: { success: false, message, state: "blocked" } };
|
|
594
1175
|
}
|
|
1176
|
+
function applyCompanionControlState(runtimeItems, globalControls, activeControls) {
|
|
1177
|
+
const inactiveHeldControlRefs = globalControls.filter((entry) => (entry.state === "inactive"
|
|
1178
|
+
&& controlRequiresReadmissionAfterLift(entry.control)
|
|
1179
|
+
&& entry.affected_runtime_refs.length > 0));
|
|
1180
|
+
if (activeControls.length === 0 && inactiveHeldControlRefs.length === 0)
|
|
1181
|
+
return runtimeItems;
|
|
1182
|
+
const globalControlRefs = globalControls
|
|
1183
|
+
.filter((entry) => entry.state === "active" || inactiveHeldControlRefs.includes(entry))
|
|
1184
|
+
.map((entry) => entry.source_ref);
|
|
1185
|
+
return runtimeItems.map((item) => {
|
|
1186
|
+
const heldByControls = activeControls.filter((control) => controlHoldsRuntimeItem(control, item));
|
|
1187
|
+
const historicallyHeldByControls = inactiveHeldControlRefs
|
|
1188
|
+
.filter((entry) => entry.affected_runtime_refs.includes(item.item_id))
|
|
1189
|
+
.map((entry) => entry.control);
|
|
1190
|
+
const rejectedByControls = activeControls.filter((control) => controlRejectsRuntimeItem(control, item));
|
|
1191
|
+
if (heldByControls.length === 0 && historicallyHeldByControls.length === 0 && rejectedByControls.length === 0) {
|
|
1192
|
+
return item;
|
|
1193
|
+
}
|
|
1194
|
+
const controlled = {
|
|
1195
|
+
...item,
|
|
1196
|
+
companion_control_state: {
|
|
1197
|
+
active_controls: uniqueControls([
|
|
1198
|
+
...item.companion_control_state.active_controls,
|
|
1199
|
+
...activeControls,
|
|
1200
|
+
]),
|
|
1201
|
+
global_control_refs: uniqueStrings([
|
|
1202
|
+
...item.companion_control_state.global_control_refs,
|
|
1203
|
+
...globalControlRefs,
|
|
1204
|
+
]),
|
|
1205
|
+
held_by_controls: uniqueControls([
|
|
1206
|
+
...item.companion_control_state.held_by_controls,
|
|
1207
|
+
...heldByControls,
|
|
1208
|
+
...historicallyHeldByControls,
|
|
1209
|
+
]),
|
|
1210
|
+
rejected_by_controls: uniqueControls([
|
|
1211
|
+
...item.companion_control_state.rejected_by_controls,
|
|
1212
|
+
...rejectedByControls,
|
|
1213
|
+
]),
|
|
1214
|
+
reason: "companion-wide global controls applied at runtime admission boundary",
|
|
1215
|
+
},
|
|
1216
|
+
};
|
|
1217
|
+
return {
|
|
1218
|
+
...controlled,
|
|
1219
|
+
control_policy: deriveRuntimeItemControlPolicy(controlled),
|
|
1220
|
+
};
|
|
1221
|
+
});
|
|
1222
|
+
}
|
|
1223
|
+
function companionControlEntry(input) {
|
|
1224
|
+
return {
|
|
1225
|
+
control: input.control,
|
|
1226
|
+
state: input.state,
|
|
1227
|
+
source_ref: `runtime-control:${input.operation.operation_id}`,
|
|
1228
|
+
updated_at: input.operation.updated_at,
|
|
1229
|
+
reason: input.operation.reason,
|
|
1230
|
+
changed_by: input.operation.requested_by,
|
|
1231
|
+
affected_runtime_refs: input.affectedRefs,
|
|
1232
|
+
audit_refs: input.auditRefs ?? [`runtime-control-operation:${input.operation.operation_id}`],
|
|
1233
|
+
};
|
|
1234
|
+
}
|
|
1235
|
+
function oneShotCompanionControls() {
|
|
1236
|
+
return new Set([
|
|
1237
|
+
"leave_quiet_mode",
|
|
1238
|
+
"resume_proactivity",
|
|
1239
|
+
"resume_companion",
|
|
1240
|
+
]);
|
|
1241
|
+
}
|
|
1242
|
+
function controlRequiresReadmissionAfterLift(control) {
|
|
1243
|
+
return control === "enter_quiet_mode"
|
|
1244
|
+
|| control === "pause_proactivity"
|
|
1245
|
+
|| control === "suspend_companion"
|
|
1246
|
+
|| control === "stop_all_quiet_work"
|
|
1247
|
+
|| control === "stop_all_watches"
|
|
1248
|
+
|| control === "suppress_nonessential_agenda"
|
|
1249
|
+
|| control === "require_confirmation_for_proactivity";
|
|
1250
|
+
}
|
|
1251
|
+
function isDurableAgendaSuppressionControl(control) {
|
|
1252
|
+
return control === "stop_all_quiet_work"
|
|
1253
|
+
|| control === "stop_all_watches"
|
|
1254
|
+
|| control === "suppress_nonessential_agenda";
|
|
1255
|
+
}
|
|
1256
|
+
function affectedRuntimeRefsForControl(control, runtimeItems) {
|
|
1257
|
+
return runtimeItems
|
|
1258
|
+
.filter((item) => activeRuntimeItem(item))
|
|
1259
|
+
.filter((item) => {
|
|
1260
|
+
if (control === "suspend_companion" || control === "resume_companion")
|
|
1261
|
+
return true;
|
|
1262
|
+
if (control === "stop_all_quiet_work")
|
|
1263
|
+
return quietWorkRuntimeItem(item);
|
|
1264
|
+
if (control === "stop_all_watches")
|
|
1265
|
+
return item.type === "watch";
|
|
1266
|
+
if (control === "suppress_nonessential_agenda")
|
|
1267
|
+
return agendaRuntimeItem(item);
|
|
1268
|
+
if (control === "enter_quiet_mode" || control === "pause_proactivity")
|
|
1269
|
+
return agentOriginAdmissionItem(item);
|
|
1270
|
+
if (control === "require_confirmation_for_proactivity")
|
|
1271
|
+
return agentOriginAdmissionItem(item);
|
|
1272
|
+
return false;
|
|
1273
|
+
})
|
|
1274
|
+
.map((item) => item.item_id);
|
|
1275
|
+
}
|
|
1276
|
+
function controlHoldsRuntimeItem(control, item) {
|
|
1277
|
+
if (!activeRuntimeItem(item))
|
|
1278
|
+
return false;
|
|
1279
|
+
if (control === "suspend_companion")
|
|
1280
|
+
return true;
|
|
1281
|
+
if (control === "stop_all_quiet_work")
|
|
1282
|
+
return quietWorkRuntimeItem(item);
|
|
1283
|
+
if (control === "stop_all_watches")
|
|
1284
|
+
return item.type === "watch";
|
|
1285
|
+
if (control === "suppress_nonessential_agenda")
|
|
1286
|
+
return agendaRuntimeItem(item);
|
|
1287
|
+
return false;
|
|
1288
|
+
}
|
|
1289
|
+
function controlRejectsRuntimeItem(control, item) {
|
|
1290
|
+
if (!activeRuntimeItem(item))
|
|
1291
|
+
return false;
|
|
1292
|
+
if (control === "suspend_companion")
|
|
1293
|
+
return true;
|
|
1294
|
+
if (control === "enter_quiet_mode" || control === "pause_proactivity")
|
|
1295
|
+
return agentOriginAdmissionItem(item);
|
|
1296
|
+
return false;
|
|
1297
|
+
}
|
|
1298
|
+
function activeRuntimeItem(item) {
|
|
1299
|
+
return item.status === "running"
|
|
1300
|
+
|| item.status === "pending"
|
|
1301
|
+
|| item.status === "paused"
|
|
1302
|
+
|| item.status === "active"
|
|
1303
|
+
|| item.status === "mature";
|
|
1304
|
+
}
|
|
1305
|
+
function quietWorkRuntimeItem(item) {
|
|
1306
|
+
if (item.source === "runtime-operation-store")
|
|
1307
|
+
return false;
|
|
1308
|
+
return item.type === "run" || item.type === "task" || item.type === "diff_proposal";
|
|
1309
|
+
}
|
|
1310
|
+
function quietWorkPauseTarget(item) {
|
|
1311
|
+
const runId = backgroundRunIdFromRuntimeItem(item);
|
|
1312
|
+
const sessionId = item.related_session_refs[0];
|
|
1313
|
+
const goalId = item.related_goal_refs[0];
|
|
1314
|
+
const target = {
|
|
1315
|
+
...(runId ? { run_id: runId } : {}),
|
|
1316
|
+
...(sessionId ? { session_id: sessionId } : {}),
|
|
1317
|
+
...(goalId ? { goal_id: goalId } : {}),
|
|
1318
|
+
};
|
|
1319
|
+
return Object.keys(target).length > 0 ? target : null;
|
|
1320
|
+
}
|
|
1321
|
+
function backgroundRunIdFromRuntimeItem(item) {
|
|
1322
|
+
const prefix = "background-run:";
|
|
1323
|
+
if (!item.item_id.startsWith(prefix))
|
|
1324
|
+
return null;
|
|
1325
|
+
return item.item_id.slice(prefix.length);
|
|
1326
|
+
}
|
|
1327
|
+
function quietWorkStopResult(itemRef, operation) {
|
|
1328
|
+
return {
|
|
1329
|
+
itemRef,
|
|
1330
|
+
operationId: operation.operation_id,
|
|
1331
|
+
state: operation.state,
|
|
1332
|
+
ok: operation.result?.ok ?? false,
|
|
1333
|
+
};
|
|
1334
|
+
}
|
|
1335
|
+
function agendaRuntimeItem(item) {
|
|
1336
|
+
return item.type === "urge_candidate" || item.type === "agent_agenda_item";
|
|
1337
|
+
}
|
|
1338
|
+
function agentOriginAdmissionItem(item) {
|
|
1339
|
+
return agendaRuntimeItem(item)
|
|
1340
|
+
|| item.type === "surface_projection"
|
|
1341
|
+
|| item.authority.speakable
|
|
1342
|
+
|| item.authority.can_create_urge
|
|
1343
|
+
|| item.authority.can_write_memory
|
|
1344
|
+
|| item.authority.can_update_surface
|
|
1345
|
+
|| item.authority.can_delegate_work;
|
|
1346
|
+
}
|
|
1347
|
+
function buildCompanionStateInspection(runtimeItems, snapshot) {
|
|
1348
|
+
const inspectedItems = runtimeItems
|
|
1349
|
+
.filter((item) => (item.authority.inspectable
|
|
1350
|
+
&& item.visibility_policy.inspectable
|
|
1351
|
+
&& item.control_policy.allowed_controls.includes("inspect_item")))
|
|
1352
|
+
.filter((item) => companionInspectionItem(item, snapshot))
|
|
1353
|
+
.map((item) => ({
|
|
1354
|
+
ref: item.item_id,
|
|
1355
|
+
type: item.type,
|
|
1356
|
+
status: item.status,
|
|
1357
|
+
posture: item.posture,
|
|
1358
|
+
visibility_display: item.visibility_policy.display,
|
|
1359
|
+
inspectable: item.visibility_policy.inspectable,
|
|
1360
|
+
auditable: item.visibility_policy.auditable,
|
|
1361
|
+
authority_scope: item.authority.approval_scope,
|
|
1362
|
+
authority: {
|
|
1363
|
+
resumable: item.authority.resumable,
|
|
1364
|
+
actionable: item.authority.actionable,
|
|
1365
|
+
speakable: item.authority.speakable,
|
|
1366
|
+
can_create_urge: item.authority.can_create_urge,
|
|
1367
|
+
can_update_surface: item.authority.can_update_surface,
|
|
1368
|
+
can_write_memory: item.authority.can_write_memory,
|
|
1369
|
+
can_delegate_work: item.authority.can_delegate_work,
|
|
1370
|
+
requires_confirmation: item.authority.requires_confirmation,
|
|
1371
|
+
},
|
|
1372
|
+
staleness_outcomes: Object.fromEntries(Object.entries(item.staleness).map(([dimension, value]) => [dimension, value.outcome])),
|
|
1373
|
+
allowed_controls: item.control_policy.allowed_controls,
|
|
1374
|
+
repair_options: item.control_policy.repair_options,
|
|
1375
|
+
audit_trace_refs: item.audit_trace_refs,
|
|
1376
|
+
}));
|
|
1377
|
+
const allRuntimeItemRefs = new Set(runtimeItems.map((item) => item.item_id));
|
|
1378
|
+
const inspectableRuntimeItemRefs = new Set(inspectedItems.map((item) => item.ref));
|
|
1379
|
+
const inspectableSnapshotRefs = (refs) => refs.filter((candidate) => (!allRuntimeItemRefs.has(candidate) || inspectableRuntimeItemRefs.has(candidate)));
|
|
1380
|
+
return {
|
|
1381
|
+
snapshot_id: snapshot.snapshot_id,
|
|
1382
|
+
mode: snapshot.mode,
|
|
1383
|
+
inspected_at: snapshot.computed_at,
|
|
1384
|
+
active_controls: snapshot.control_overlays,
|
|
1385
|
+
active_refs: inspectableSnapshotRefs(snapshot.active_refs),
|
|
1386
|
+
held_runtime_refs: inspectableSnapshotRefs(snapshot.held_runtime_refs),
|
|
1387
|
+
blocked_refs: inspectableSnapshotRefs(snapshot.blocked_refs),
|
|
1388
|
+
hidden_refs: inspectedItems
|
|
1389
|
+
.filter((item) => item.visibility_display !== "normal")
|
|
1390
|
+
.map((item) => item.ref),
|
|
1391
|
+
non_executable_refs: inspectedItems
|
|
1392
|
+
.filter((item) => !runtimeItemGrantsExecution(item.authority))
|
|
1393
|
+
.map((item) => item.ref),
|
|
1394
|
+
repairable_refs: inspectedItems
|
|
1395
|
+
.filter((item) => item.repair_options.length > 0)
|
|
1396
|
+
.map((item) => item.ref),
|
|
1397
|
+
runtime_items: inspectedItems,
|
|
1398
|
+
};
|
|
1399
|
+
}
|
|
1400
|
+
function companionInspectionItem(item, snapshot) {
|
|
1401
|
+
return item.visibility_policy.display !== "normal"
|
|
1402
|
+
|| snapshot.held_runtime_refs.includes(item.item_id)
|
|
1403
|
+
|| snapshot.blocked_refs.includes(item.item_id)
|
|
1404
|
+
|| !runtimeItemGrantsExecution(item.authority)
|
|
1405
|
+
|| item.control_policy.repair_options.length > 0
|
|
1406
|
+
|| Object.values(item.staleness).some((dimension) => dimension.outcome !== "current");
|
|
1407
|
+
}
|
|
1408
|
+
function runtimeItemGrantsExecution(authority) {
|
|
1409
|
+
return authority.resumable
|
|
1410
|
+
|| authority.actionable
|
|
1411
|
+
|| authority.speakable
|
|
1412
|
+
|| authority.can_create_urge
|
|
1413
|
+
|| authority.can_update_surface
|
|
1414
|
+
|| authority.can_write_memory
|
|
1415
|
+
|| authority.can_delegate_work;
|
|
1416
|
+
}
|
|
1417
|
+
function formatCompanionStateSummary(snapshot, inspection) {
|
|
1418
|
+
return [
|
|
1419
|
+
`CompanionState ${snapshot.snapshot_id}: mode=${snapshot.mode}.`,
|
|
1420
|
+
`active_controls=${snapshot.control_overlays.length > 0 ? snapshot.control_overlays.join(", ") : "none"}.`,
|
|
1421
|
+
`active_refs=${snapshot.active_refs.length}.`,
|
|
1422
|
+
`held_refs=${snapshot.held_runtime_refs.length}.`,
|
|
1423
|
+
`blocked_refs=${snapshot.blocked_refs.length}.`,
|
|
1424
|
+
inspection ? `hidden_items=${inspection.hidden_refs.length}.` : null,
|
|
1425
|
+
inspection ? `non_executable_items=${inspection.non_executable_refs.length}.` : null,
|
|
1426
|
+
inspection ? `repairable_items=${inspection.repairable_refs.length}.` : null,
|
|
1427
|
+
].filter((part) => Boolean(part)).join(" ");
|
|
1428
|
+
}
|
|
1429
|
+
function formatCompanionControlApplied(control, affectedRefs) {
|
|
1430
|
+
const suffix = affectedRefs.length > 0
|
|
1431
|
+
? ` Affected runtime items: ${affectedRefs.join(", ")}.`
|
|
1432
|
+
: " No currently active runtime items were affected.";
|
|
1433
|
+
if (control === "leave_quiet_mode" || control === "resume_proactivity" || control === "resume_companion") {
|
|
1434
|
+
return `${control} recorded. Held, stale, or suppressed runtime items were not resumed automatically.${suffix}`;
|
|
1435
|
+
}
|
|
1436
|
+
return `${control} recorded as companion-wide global control.${suffix}`;
|
|
1437
|
+
}
|
|
1438
|
+
function formatSessionInspection(session) {
|
|
1439
|
+
return [
|
|
1440
|
+
`Runtime session ${session.id}: ${session.status}.`,
|
|
1441
|
+
`Kind: ${session.kind}.`,
|
|
1442
|
+
session.title ? `Title: ${session.title}.` : null,
|
|
1443
|
+
`Inspectable: true.`,
|
|
1444
|
+
`Resumable: ${session.resumable ? "requires runtime admission" : "false"}.`,
|
|
1445
|
+
`Updated: ${session.updated_at ?? "unknown"}.`,
|
|
1446
|
+
].filter((line) => Boolean(line)).join(" ");
|
|
1447
|
+
}
|
|
1448
|
+
function formatSessionSummaryOnly(session) {
|
|
1449
|
+
return [
|
|
1450
|
+
`Runtime session ${session.id} summary-only view: ${session.status}.`,
|
|
1451
|
+
session.title ? `Title: ${session.title}.` : null,
|
|
1452
|
+
`No action, speech, memory write, Surface refresh, or side-effect authority was granted.`,
|
|
1453
|
+
].filter((line) => Boolean(line)).join(" ");
|
|
1454
|
+
}
|
|
1455
|
+
function resumeBlockedByRuntimeItemPolicy(runId, item) {
|
|
1456
|
+
if (item.companion_control_state.held_by_controls.includes("suspend_companion")
|
|
1457
|
+
|| item.companion_control_state.rejected_by_controls.includes("suspend_companion")) {
|
|
1458
|
+
return {
|
|
1459
|
+
outcome: "resume_rejected_safety",
|
|
1460
|
+
message: `Runtime run ${runId} cannot resume while companion suspend state requires explicit re-admission.`,
|
|
1461
|
+
};
|
|
1462
|
+
}
|
|
1463
|
+
if (item.companion_control_state.held_by_controls.length > 0 || item.companion_control_state.rejected_by_controls.length > 0) {
|
|
1464
|
+
return {
|
|
1465
|
+
outcome: "resume_requires_regrounding",
|
|
1466
|
+
message: `Runtime run ${runId} is held by companion-wide controls and requires re-grounding before resume.`,
|
|
1467
|
+
};
|
|
1468
|
+
}
|
|
1469
|
+
if (item.staleness.permission.outcome !== "current") {
|
|
1470
|
+
return {
|
|
1471
|
+
outcome: "resume_rejected_permission",
|
|
1472
|
+
message: `Runtime run ${runId} cannot resume because permission state is ${item.staleness.permission.outcome}.`,
|
|
1473
|
+
};
|
|
1474
|
+
}
|
|
1475
|
+
if (item.staleness.surface.outcome !== "current") {
|
|
1476
|
+
return {
|
|
1477
|
+
outcome: "resume_rejected_surface",
|
|
1478
|
+
message: `Runtime run ${runId} cannot resume because Surface state is ${item.staleness.surface.outcome}.`,
|
|
1479
|
+
};
|
|
1480
|
+
}
|
|
1481
|
+
return {
|
|
1482
|
+
outcome: "resume_requires_regrounding",
|
|
1483
|
+
message: `Runtime run ${runId} is not allowed by runtime item control policy: ${item.control_policy.reason}.`,
|
|
1484
|
+
};
|
|
1485
|
+
}
|
|
1486
|
+
function uniqueControls(controls) {
|
|
1487
|
+
return [...new Set(controls)];
|
|
1488
|
+
}
|
|
1489
|
+
function uniqueStrings(values) {
|
|
1490
|
+
return [...new Set(values)];
|
|
1491
|
+
}
|
|
595
1492
|
//# sourceMappingURL=runtime-control-service.js.map
|