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
|
@@ -1,19 +1,31 @@
|
|
|
1
1
|
import { loadProviderConfig } from "../../base/llm/provider-config.js";
|
|
2
|
-
import { extractPromptedToolCalls } from "../../orchestrator/execution/agent-loop/prompted-tool-protocol.js";
|
|
3
|
-
import { verifyChatAction } from "./chat-verifier.js";
|
|
4
2
|
import { collectGitDiffArtifact, formatToolActivity, } from "./chat-runner-support.js";
|
|
5
|
-
import {
|
|
3
|
+
import { AgentLoopSessionStateCatalog } from "../../orchestrator/execution/agent-loop/agent-loop-session-db-store.js";
|
|
4
|
+
import { resolveExecutionPolicy, } from "../../orchestrator/execution/agent-loop/execution-policy.js";
|
|
6
5
|
import { createGatewaySetupStatusProvider } from "./gateway-setup-status.js";
|
|
7
6
|
import { renderSystemPromptWithTurnContext, } from "./turn-context.js";
|
|
8
7
|
import { buildChatModelRequest } from "./model-request-builder.js";
|
|
9
|
-
import {
|
|
10
|
-
import {
|
|
8
|
+
import { gateRuntimeEvidenceBoundFinalAnswer, mayRequireRuntimeEvidenceGate, } from "./runtime-evidence-gate.js";
|
|
9
|
+
import { createDiscordAdapterPlanDialogue, createTelegramConfirmWriteDialogue, } from "./setup-dialogue.js";
|
|
11
10
|
import { createOperationProgressItem } from "./operation-progress.js";
|
|
12
|
-
import {
|
|
13
|
-
import {
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
const MAX_TOOL_LOOPS =
|
|
11
|
+
import { addUsageCounter, hasUsage, normalizeUsageCounter, usageFromLLMResponse, zeroUsageCounter, } from "./chat-usage.js";
|
|
12
|
+
import { extractPromptedToolCalls, } from "../../orchestrator/execution/agent-loop/prompted-tool-protocol.js";
|
|
13
|
+
import { formatTelegramConfigProgressDetail, formatTelegramConfigureGuidance, } from "./telegram-setup-guidance.js";
|
|
14
|
+
export { buildTelegramSetupGuidanceData, formatTelegramConfigureGuidance, } from "./telegram-setup-guidance.js";
|
|
15
|
+
const MAX_TOOL_LOOPS = 24;
|
|
16
|
+
const GATEWAY_LOOP_WARNING_REPEAT_LIMIT = 2;
|
|
17
|
+
const GATEWAY_LOOP_BLOCK_REPEAT_LIMIT = 4;
|
|
18
|
+
const GATEWAY_POLL_WARNING_REPEAT_LIMIT = 3;
|
|
19
|
+
const GATEWAY_POLL_BLOCK_REPEAT_LIMIT = 6;
|
|
20
|
+
const GATEWAY_UNAVAILABLE_TOOL_GUIDANCE_LIMIT = 3;
|
|
21
|
+
class ToolLoopTerminalError extends Error {
|
|
22
|
+
code;
|
|
23
|
+
constructor(code, message) {
|
|
24
|
+
super(message);
|
|
25
|
+
this.code = code;
|
|
26
|
+
this.name = "ToolLoopTerminalError";
|
|
27
|
+
}
|
|
28
|
+
}
|
|
17
29
|
export async function executeRuntimeControlRoute(host, route, runtimeControlContext, cwd, start) {
|
|
18
30
|
if (!host.deps.runtimeControlService) {
|
|
19
31
|
return {
|
|
@@ -45,94 +57,64 @@ export async function executeRuntimeControlRoute(host, route, runtimeControlCont
|
|
|
45
57
|
elapsed_ms: Date.now() - start,
|
|
46
58
|
};
|
|
47
59
|
}
|
|
48
|
-
export
|
|
49
|
-
|
|
50
|
-
|
|
51
|
-
|
|
52
|
-
|
|
53
|
-
|
|
54
|
-
|
|
55
|
-
|
|
56
|
-
|
|
57
|
-
|
|
58
|
-
|
|
59
|
-
|
|
60
|
-
|
|
61
|
-
|
|
62
|
-
createdAt: route.draft.created_at,
|
|
63
|
-
updatedAt: route.draft.updated_at,
|
|
64
|
-
});
|
|
65
|
-
host.eventBridge.emitCheckpoint("RunSpec confirmation pending", `${route.draft.id} is awaiting confirmation.`, eventContext, "route");
|
|
66
|
-
return persistDirectRouteResult(host, output, eventContext, assistantBuffer, history, start);
|
|
67
|
-
}
|
|
68
|
-
export function formatBlockedRuntimeControlRoute(route) {
|
|
69
|
-
if (route.reason === "runtime_control_unclassified") {
|
|
60
|
+
export function formatBlockedRuntimeControlRoute(route, options = {}) {
|
|
61
|
+
if (options.mode === "diagnostic") {
|
|
62
|
+
if (route.reason === "runtime_control_unclassified") {
|
|
63
|
+
return [
|
|
64
|
+
"Runtime control was explicitly requested, but PulSeed could not derive a typed runtime-control operation from this turn.",
|
|
65
|
+
"The operation was not executed, and PulSeed will not fall back to shell tools for daemon or gateway lifecycle control.",
|
|
66
|
+
].join("\n");
|
|
67
|
+
}
|
|
68
|
+
if (route.reason === "runtime_control_disallowed") {
|
|
69
|
+
return [
|
|
70
|
+
`Runtime control ${route.intent?.kind ?? "operation"} was recognized, but this chat surface is not authorized for runtime-control lifecycle actions.`,
|
|
71
|
+
"The operation was not executed, and PulSeed will not fall back to shell tools for daemon or gateway lifecycle control.",
|
|
72
|
+
].join("\n");
|
|
73
|
+
}
|
|
70
74
|
return [
|
|
71
|
-
|
|
75
|
+
`Runtime control ${route.intent?.kind ?? "operation"} was recognized, but the runtime-control service is not available in this chat surface.`,
|
|
72
76
|
"The operation was not executed, and PulSeed will not fall back to shell tools for daemon or gateway lifecycle control.",
|
|
73
77
|
].join("\n");
|
|
74
78
|
}
|
|
79
|
+
if (route.reason === "runtime_control_unclassified") {
|
|
80
|
+
return [
|
|
81
|
+
"I recognized this as a request to inspect or control PulSeed, but I could not identify a supported safe action from this turn.",
|
|
82
|
+
"Nothing was executed, and PulSeed will not use shell commands as a workaround.",
|
|
83
|
+
"Use an authorized management channel if you need a live status check or runtime action.",
|
|
84
|
+
].join("\n");
|
|
85
|
+
}
|
|
75
86
|
if (route.reason === "runtime_control_disallowed") {
|
|
76
87
|
return [
|
|
77
|
-
|
|
78
|
-
"
|
|
88
|
+
"This chat is not authorized to inspect or control PulSeed's running state.",
|
|
89
|
+
"Nothing was executed, and PulSeed will not use shell commands as a workaround.",
|
|
90
|
+
"Use an authorized management channel if you need a live status check or runtime action.",
|
|
79
91
|
].join("\n");
|
|
80
92
|
}
|
|
81
93
|
return [
|
|
82
|
-
|
|
83
|
-
"
|
|
94
|
+
"This chat cannot reach PulSeed's authorized management service right now.",
|
|
95
|
+
"Nothing was executed, and PulSeed will not use shell commands as a workaround.",
|
|
96
|
+
"Use an authorized management channel if you need a live status check or runtime action.",
|
|
84
97
|
].join("\n");
|
|
85
98
|
}
|
|
86
99
|
export async function executeConfigureRoute(host, route, eventContext, assistantBuffer, history, start) {
|
|
87
100
|
if (route.kind !== "configure") {
|
|
88
101
|
throw new Error(`executeConfigureRoute received route kind ${route.kind}`);
|
|
89
102
|
}
|
|
90
|
-
const output = await formatConfigureGuidance(host, route.
|
|
91
|
-
return persistDirectRouteResult(host, output, eventContext, assistantBuffer, history, start);
|
|
92
|
-
}
|
|
93
|
-
export async function executeClarifyRoute(host, _route, eventContext, assistantBuffer, history, start) {
|
|
94
|
-
const output = [
|
|
95
|
-
"I need one more detail before taking action.",
|
|
96
|
-
"",
|
|
97
|
-
"Tell me whether you want setup guidance, a configuration flow, or a code/test change.",
|
|
98
|
-
].join("\n");
|
|
103
|
+
const output = await formatConfigureGuidance(host, route.configureTarget, host.getSetupSecretIntake(), host.getTurnLanguageHint(), eventContext);
|
|
99
104
|
return persistDirectRouteResult(host, output, eventContext, assistantBuffer, history, start);
|
|
100
105
|
}
|
|
101
|
-
export async function executeAssistRoute(host, params) {
|
|
102
|
-
if (!host.deps.llmClient) {
|
|
103
|
-
return persistDirectRouteResult(host, "I can answer this as guidance, but no language model is configured for read-only chat.", params.eventContext, params.assistantBuffer, params.history, params.start);
|
|
104
|
-
}
|
|
105
|
-
host.eventBridge.emitCheckpoint("Read-only assist selected", "The message will be answered without coding-agent execution.", params.eventContext, "route");
|
|
106
|
-
const modelRequest = buildChatModelRequest({
|
|
107
|
-
purpose: "ordinary_chat",
|
|
108
|
-
turnContext: params.turnContext,
|
|
109
|
-
systemPrompt: [
|
|
110
|
-
params.turnContext.modelVisible.instructions.systemPrompt || buildStaticSystemPrompt(host.getProviderConfigBaseDir()),
|
|
111
|
-
"Answer read-only. Provide concise operational guidance. Do not ask to edit files or run commands unless the user explicitly asks for execution.",
|
|
112
|
-
sameLanguageResponseInstruction(host.getTurnLanguageHint()),
|
|
113
|
-
].join(" "),
|
|
114
|
-
maxTokens: 1000,
|
|
115
|
-
temperature: 0,
|
|
116
|
-
});
|
|
117
|
-
const response = await sendLLMMessage(host, host.deps.llmClient, modelRequest.messages, {
|
|
118
|
-
...modelRequest.options,
|
|
119
|
-
}, params.assistantBuffer, params.eventContext);
|
|
120
|
-
const usage = usageFromLLMResponse(response);
|
|
121
|
-
if (hasUsage(usage))
|
|
122
|
-
params.history.recordUsage("assist", usage);
|
|
123
|
-
return persistDirectRouteResult(host, params.assistantBuffer.text || response.content || "(no response)", params.eventContext, params.assistantBuffer, params.history, params.start);
|
|
124
|
-
}
|
|
125
106
|
export async function executeAgentLoopRoute(host, params) {
|
|
126
107
|
const { resumeOnly, assistantBuffer, eventContext, history, gitRoot, activeAbortSignal, start, } = params;
|
|
127
108
|
const turnContext = params.turnContext;
|
|
128
109
|
const runtimeContext = turnContext.hostOnly.runtime.runtimeControlContext;
|
|
129
110
|
try {
|
|
130
|
-
const
|
|
131
|
-
|
|
111
|
+
const resumeStateResult = resumeOnly ? await loadResumableAgentLoopState(host) : null;
|
|
112
|
+
const resumeState = resumeStateResult?.kind === "loaded" ? resumeStateResult.state : null;
|
|
113
|
+
if (resumeOnly && resumeStateResult?.kind !== "loaded") {
|
|
132
114
|
const elapsed_ms = Date.now() - start;
|
|
133
|
-
const output = await host.eventBridge.emitLifecycleErrorEventWithFallback("
|
|
134
|
-
code: "resume_state_missing",
|
|
135
|
-
stoppedReason: "resume_state_missing",
|
|
115
|
+
const output = await host.eventBridge.emitLifecycleErrorEventWithFallback(resumeStateResult?.message ?? "I could not find a chat that can safely continue.", assistantBuffer.text, eventContext, {
|
|
116
|
+
code: resumeStateResult?.code ?? "resume_state_missing",
|
|
117
|
+
stoppedReason: resumeStateResult?.code ?? "resume_state_missing",
|
|
136
118
|
}, host.deps.llmClient);
|
|
137
119
|
host.eventBridge.emitLifecycleEndEvent("error", elapsed_ms, eventContext, false);
|
|
138
120
|
return {
|
|
@@ -141,19 +123,30 @@ export async function executeAgentLoopRoute(host, params) {
|
|
|
141
123
|
elapsed_ms,
|
|
142
124
|
};
|
|
143
125
|
}
|
|
144
|
-
host.eventBridge.emitCheckpoint(resumeOnly ? "Session resumed" : "Agent loop started", resumeOnly
|
|
145
|
-
? "Resumable agent-loop state is loaded."
|
|
146
|
-
: "The agent loop can now inspect, plan, edit, or verify with visible tool activity.", eventContext, "execution");
|
|
147
126
|
host.eventBridge.emitActivity("lifecycle", "Calling model...", eventContext, "lifecycle:model");
|
|
148
127
|
const result = await host.deps.chatAgentLoopRunner.execute({
|
|
149
128
|
message: turnContext.modelVisible.prompts.basePrompt,
|
|
150
129
|
cwd: turnContext.hostOnly.execution.executionCwd,
|
|
151
130
|
goalId: turnContext.hostOnly.execution.goalId,
|
|
152
131
|
history: turnContext.modelVisible.conversation.priorTurns,
|
|
153
|
-
eventSink: host.eventBridge.createAgentLoopEventSink(eventContext
|
|
132
|
+
eventSink: host.eventBridge.createAgentLoopEventSink(eventContext, assistantBuffer, {
|
|
133
|
+
streamFinalCandidate: () => true,
|
|
134
|
+
}),
|
|
154
135
|
approvalFn: agentLoopApprovalFn(host, runtimeContext),
|
|
155
136
|
toolCallContext: {
|
|
156
137
|
executionPolicy: turnContext.hostOnly.execution.executionPolicy,
|
|
138
|
+
...(host.deps.permissionGrantContext?.sessionId
|
|
139
|
+
? { sessionId: host.deps.permissionGrantContext.sessionId }
|
|
140
|
+
: host.getConversationSessionId()
|
|
141
|
+
? { sessionId: host.getConversationSessionId() }
|
|
142
|
+
: {}),
|
|
143
|
+
runId: turnContext.modelVisible.turn.runId,
|
|
144
|
+
turnId: turnContext.modelVisible.turn.turnId,
|
|
145
|
+
...(host.deps.permissionGrantContext?.projectId ? { projectId: host.deps.permissionGrantContext.projectId } : {}),
|
|
146
|
+
...(host.deps.permissionGrantStore ? { permissionGrantStore: host.deps.permissionGrantStore } : {}),
|
|
147
|
+
...(host.deps.permissionWaitPlanStore ? { permissionWaitPlanStore: host.deps.permissionWaitPlanStore } : {}),
|
|
148
|
+
...(host.deps.capabilityVerificationStore ? { capabilityVerificationStore: host.deps.capabilityVerificationStore } : {}),
|
|
149
|
+
...(host.deps.capabilityExecutionResolver ? { capabilityExecutionResolver: host.deps.capabilityExecutionResolver } : {}),
|
|
157
150
|
...(host.getConversationSessionId() ? { conversationSessionId: host.getConversationSessionId() } : {}),
|
|
158
151
|
providerConfigBaseDir: host.getProviderConfigBaseDir(),
|
|
159
152
|
setupSecretIntake: host.getSetupSecretIntake(),
|
|
@@ -171,7 +164,7 @@ export async function executeAgentLoopRoute(host, params) {
|
|
|
171
164
|
runtimeControlAllowed: turnContext.modelVisible.runtime.runtimeControlAllowed,
|
|
172
165
|
runtimeControlApprovalMode: turnContext.modelVisible.runtime.approvalMode,
|
|
173
166
|
},
|
|
174
|
-
...(host.
|
|
167
|
+
...(host.getNativeAgentLoopSessionId() ? { resumeSessionId: host.getNativeAgentLoopSessionId() } : {}),
|
|
175
168
|
...(resumeState ? { resumeState } : {}),
|
|
176
169
|
...(resumeOnly ? { resumeOnly: true } : {}),
|
|
177
170
|
systemPrompt: renderSystemPromptWithTurnContext(turnContext.modelVisible.instructions.agentLoopSystemPrompt, turnContext.modelVisible),
|
|
@@ -181,11 +174,30 @@ export async function executeAgentLoopRoute(host, params) {
|
|
|
181
174
|
const agentLoopUsage = result.agentLoop?.usage
|
|
182
175
|
? normalizeUsageCounter(result.agentLoop.usage)
|
|
183
176
|
: zeroUsageCounter();
|
|
177
|
+
if (result.agentLoop) {
|
|
178
|
+
history.setAgentLoopSessionIdentity({
|
|
179
|
+
sessionId: result.agentLoop.sessionId,
|
|
180
|
+
traceId: result.agentLoop.traceId,
|
|
181
|
+
});
|
|
182
|
+
}
|
|
184
183
|
if (hasUsage(agentLoopUsage)) {
|
|
185
184
|
history.recordUsage("agentloop", agentLoopUsage);
|
|
186
185
|
}
|
|
186
|
+
if (result.output && shouldGateRuntimeEvidenceForTurn(turnContext)) {
|
|
187
|
+
const gate = await gateRuntimeEvidenceBoundFinalAnswer({
|
|
188
|
+
turnContext,
|
|
189
|
+
assistantOutput: result.output,
|
|
190
|
+
hasRuntimeEvidence: host.eventBridge.hasRuntimeEvidenceForTurn(eventContext),
|
|
191
|
+
runtimeEvidenceRefs: host.eventBridge.getRuntimeEvidenceRefsForTurn(eventContext),
|
|
192
|
+
llmClient: host.deps.runtimeEvidenceGateClient ?? host.deps.llmClient,
|
|
193
|
+
});
|
|
194
|
+
if (gate.blocked) {
|
|
195
|
+
host.eventBridge.emitCheckpoint("Runtime evidence required", gate.reason ?? "The final answer made an unverified runtime or workspace claim.", eventContext, "runtime-evidence");
|
|
196
|
+
}
|
|
197
|
+
result.output = gate.output;
|
|
198
|
+
}
|
|
187
199
|
if (result.output) {
|
|
188
|
-
host.eventBridge.
|
|
200
|
+
host.eventBridge.pushAssistantSnapshot(result.output, assistantBuffer, eventContext);
|
|
189
201
|
}
|
|
190
202
|
if (result.success) {
|
|
191
203
|
const diffArtifact = await collectGitDiffArtifact(gitRoot);
|
|
@@ -193,8 +205,6 @@ export async function executeAgentLoopRoute(host, params) {
|
|
|
193
205
|
host.eventBridge.emitDiffArtifact(diffArtifact, eventContext);
|
|
194
206
|
}
|
|
195
207
|
await history.appendAssistantMessage(result.output);
|
|
196
|
-
host.eventBridge.emitCheckpoint("Response ready", "The agent-loop response has been persisted for this turn.", eventContext, "complete");
|
|
197
|
-
host.eventBridge.emitActivity("lifecycle", "Finalizing response...", eventContext, "lifecycle:finalizing");
|
|
198
208
|
host.eventBridge.emitEvent({
|
|
199
209
|
type: "assistant_final",
|
|
200
210
|
text: result.output,
|
|
@@ -228,10 +238,18 @@ export async function executeAgentLoopRoute(host, params) {
|
|
|
228
238
|
};
|
|
229
239
|
}
|
|
230
240
|
}
|
|
231
|
-
export async function
|
|
241
|
+
export async function executeGatewayModelLoopRoute(host, params) {
|
|
232
242
|
try {
|
|
233
|
-
|
|
234
|
-
const toolResult = await executeWithTools(host, params.turnContext, params.eventContext, params.assistantBuffer, params.systemPrompt, params.executionGoalId, params.runtimeControlContext, params.start
|
|
243
|
+
const shouldGateEvidence = shouldGateRuntimeEvidenceForTurn(params.turnContext);
|
|
244
|
+
const toolResult = await executeWithTools(host, params.turnContext, params.eventContext, params.assistantBuffer, params.systemPrompt, params.executionGoalId, params.runtimeControlContext, params.start, {
|
|
245
|
+
tools: host.deps.registry?.listAll() ?? [],
|
|
246
|
+
streamFinalText: true,
|
|
247
|
+
holdAssistantDelta: shouldGateEvidence
|
|
248
|
+
? (candidate) => mayRequireRuntimeEvidenceGate(candidate)
|
|
249
|
+
: undefined,
|
|
250
|
+
abortSignal: params.activeAbortSignal,
|
|
251
|
+
timeoutMs: params.timeoutMs,
|
|
252
|
+
});
|
|
235
253
|
const elapsed_ms = Date.now() - params.start;
|
|
236
254
|
if (hasUsage(toolResult.usage)) {
|
|
237
255
|
params.history.recordUsage("execution", toolResult.usage);
|
|
@@ -240,21 +258,42 @@ export async function executeToolLoopRoute(host, params) {
|
|
|
240
258
|
if (diffArtifact) {
|
|
241
259
|
host.eventBridge.emitDiffArtifact(diffArtifact, params.eventContext);
|
|
242
260
|
}
|
|
243
|
-
|
|
244
|
-
|
|
245
|
-
|
|
261
|
+
let output = toolResult.output;
|
|
262
|
+
if (shouldGateEvidence) {
|
|
263
|
+
const gate = await gateRuntimeEvidenceBoundFinalAnswer({
|
|
264
|
+
turnContext: params.turnContext,
|
|
265
|
+
assistantOutput: output,
|
|
266
|
+
hasRuntimeEvidence: host.eventBridge.hasRuntimeEvidenceForTurn(params.eventContext),
|
|
267
|
+
runtimeEvidenceRefs: host.eventBridge.getRuntimeEvidenceRefsForTurn(params.eventContext),
|
|
268
|
+
llmClient: host.deps.runtimeEvidenceGateClient ?? host.deps.llmClient,
|
|
269
|
+
});
|
|
270
|
+
if (gate.blocked) {
|
|
271
|
+
host.eventBridge.emitCheckpoint("Runtime evidence required", gate.reason ?? "The final answer made an unverified runtime or workspace claim.", params.eventContext, "runtime-evidence");
|
|
272
|
+
}
|
|
273
|
+
output = gate.output;
|
|
274
|
+
}
|
|
275
|
+
if (!params.assistantBuffer.text) {
|
|
276
|
+
host.eventBridge.pushAssistantDelta(output, params.assistantBuffer, params.eventContext);
|
|
277
|
+
}
|
|
278
|
+
else {
|
|
279
|
+
host.eventBridge.pushAssistantSnapshot(output, params.assistantBuffer, params.eventContext);
|
|
280
|
+
}
|
|
281
|
+
await params.history.appendAssistantMessage(output);
|
|
246
282
|
host.eventBridge.emitEvent({
|
|
247
283
|
type: "assistant_final",
|
|
248
|
-
text:
|
|
284
|
+
text: output,
|
|
249
285
|
persisted: true,
|
|
250
286
|
...host.eventBridge.eventBase(params.eventContext),
|
|
251
287
|
});
|
|
252
288
|
host.eventBridge.emitLifecycleEndEvent("completed", elapsed_ms, params.eventContext, true);
|
|
253
|
-
return { success: true, output
|
|
289
|
+
return { success: true, output, elapsed_ms };
|
|
254
290
|
}
|
|
255
291
|
catch (err) {
|
|
256
292
|
const message = err instanceof Error ? err.message : String(err);
|
|
257
|
-
const
|
|
293
|
+
const evidence = err instanceof ToolLoopTerminalError
|
|
294
|
+
? toolLoopTerminalEvidence(err)
|
|
295
|
+
: {};
|
|
296
|
+
const output = await host.eventBridge.emitLifecycleErrorEventWithFallback(message, params.assistantBuffer.text, params.eventContext, evidence, host.deps.llmClient);
|
|
258
297
|
host.eventBridge.emitLifecycleEndEvent("error", Date.now() - params.start, params.eventContext, false);
|
|
259
298
|
return {
|
|
260
299
|
success: false,
|
|
@@ -263,134 +302,114 @@ export async function executeToolLoopRoute(host, params) {
|
|
|
263
302
|
};
|
|
264
303
|
}
|
|
265
304
|
}
|
|
266
|
-
export
|
|
267
|
-
const
|
|
268
|
-
|
|
269
|
-
|
|
270
|
-
|
|
271
|
-
|
|
272
|
-
|
|
273
|
-
system_prompt: renderSystemPromptWithTurnContext(params.turnContext.modelVisible.instructions.systemPrompt, params.turnContext.modelVisible),
|
|
274
|
-
} : {}),
|
|
275
|
-
};
|
|
276
|
-
const resolvedTimeoutMs = task.timeout_ms ?? DEFAULT_TIMEOUT_MS;
|
|
277
|
-
host.eventBridge.emitCheckpoint("Adapter started", "The configured adapter has the current prompt and project context.", params.eventContext, "execution");
|
|
278
|
-
host.eventBridge.emitActivity("lifecycle", "Calling adapter...", params.eventContext, "lifecycle:adapter");
|
|
279
|
-
const adapterPromise = host.deps.adapter.execute(task);
|
|
280
|
-
const timeoutPromise = new Promise((_, reject) => setTimeout(() => reject(new Error(`Chat adapter timed out after ${resolvedTimeoutMs}ms`)), resolvedTimeoutMs));
|
|
281
|
-
let result;
|
|
282
|
-
try {
|
|
283
|
-
result = await Promise.race([adapterPromise, timeoutPromise]);
|
|
305
|
+
export function resolveGatewayToolScopes(context = {}) {
|
|
306
|
+
const scopes = new Set([
|
|
307
|
+
"read_workspace",
|
|
308
|
+
"request_approval",
|
|
309
|
+
]);
|
|
310
|
+
if (context.runtimeControlAllowed === true && context.runtimeControlApprovalMode !== "disallowed") {
|
|
311
|
+
scopes.add("authorized_runtime_control");
|
|
284
312
|
}
|
|
285
|
-
|
|
286
|
-
|
|
287
|
-
|
|
288
|
-
|
|
289
|
-
|
|
290
|
-
|
|
291
|
-
|
|
292
|
-
|
|
293
|
-
|
|
294
|
-
|
|
313
|
+
return scopes;
|
|
314
|
+
}
|
|
315
|
+
export function selectGatewayModelLoopTools(tools, context = {}) {
|
|
316
|
+
const scopes = resolveGatewayToolScopes(context);
|
|
317
|
+
return tools.filter((tool) => isGatewayToolInScope(tool, scopes, context));
|
|
318
|
+
}
|
|
319
|
+
function isGatewayToolInScope(tool, scopes, context) {
|
|
320
|
+
if (tool.metadata.tags.includes("gateway:never"))
|
|
321
|
+
return false;
|
|
322
|
+
switch (tool.metadata.gatewayExposure ?? "never") {
|
|
323
|
+
case "default_safe":
|
|
324
|
+
return scopes.has("read_workspace")
|
|
325
|
+
&& tool.metadata.isReadOnly
|
|
326
|
+
&& tool.metadata.permissionLevel === "read_only"
|
|
327
|
+
&& !tool.metadata.isDestructive;
|
|
328
|
+
case "approval_required":
|
|
329
|
+
return hasApprovedGatewayActionForTool(tool.metadata.name, context) && !tool.metadata.isReadOnly;
|
|
330
|
+
case "runtime_control":
|
|
331
|
+
return scopes.has("authorized_runtime_control");
|
|
332
|
+
case "never":
|
|
333
|
+
return false;
|
|
295
334
|
}
|
|
296
|
-
|
|
297
|
-
|
|
298
|
-
|
|
299
|
-
const
|
|
300
|
-
|
|
301
|
-
|
|
302
|
-
|
|
303
|
-
|
|
304
|
-
|
|
305
|
-
|
|
306
|
-
|
|
307
|
-
|
|
308
|
-
|
|
309
|
-
|
|
310
|
-
|
|
311
|
-
|
|
312
|
-
|
|
313
|
-
|
|
314
|
-
|
|
315
|
-
|
|
316
|
-
|
|
317
|
-
|
|
318
|
-
result = await host.deps.adapter.execute(retryTask);
|
|
319
|
-
verification = await verifyChatAction(params.gitRoot, host.deps.toolExecutor, { force: true });
|
|
320
|
-
}
|
|
321
|
-
if (!verification.passed) {
|
|
322
|
-
const finalDiffArtifact = await collectGitDiffArtifact(params.gitRoot);
|
|
323
|
-
if (finalDiffArtifact) {
|
|
324
|
-
host.eventBridge.emitDiffArtifact(finalDiffArtifact, params.eventContext);
|
|
325
|
-
}
|
|
326
|
-
host.eventBridge.emitCheckpoint("Verification failed", `Checks are still failing after ${MAX_VERIFY_RETRIES} retries.`, params.eventContext, "verification");
|
|
327
|
-
const failureOutput = await host.eventBridge.emitLifecycleErrorEventWithFallback(`Changes applied but tests are still failing after ${MAX_VERIFY_RETRIES} retries.`, params.assistantBuffer.text, params.eventContext, {
|
|
328
|
-
code: "verification_failed",
|
|
329
|
-
signals: [{ kind: "verification", status: "failed" }],
|
|
330
|
-
}, host.deps.llmClient);
|
|
331
|
-
host.eventBridge.emitLifecycleEndEvent("error", Date.now() - params.start, params.eventContext, false);
|
|
332
|
-
return {
|
|
333
|
-
success: false,
|
|
334
|
-
output: `${failureOutput}\n\nTest output:\n${verification.testOutput ?? verification.errors.join("\n")}`.trim(),
|
|
335
|
-
elapsed_ms: Date.now() - params.start,
|
|
336
|
-
};
|
|
337
|
-
}
|
|
338
|
-
const finalDiffArtifact = await collectGitDiffArtifact(params.gitRoot);
|
|
339
|
-
if (finalDiffArtifact) {
|
|
340
|
-
host.eventBridge.emitDiffArtifact(finalDiffArtifact, params.eventContext);
|
|
335
|
+
}
|
|
336
|
+
function initialGatewayToolScopeContext(runtimeControlContext, turnContext) {
|
|
337
|
+
const turnRuntimeContext = turnContext.hostOnly.runtime.runtimeControlContext;
|
|
338
|
+
const runtimeControlApprovalMode = runtimeControlContext?.approvalMode
|
|
339
|
+
?? turnRuntimeContext?.approvalMode
|
|
340
|
+
?? turnContext.modelVisible.runtime.approvalMode;
|
|
341
|
+
const runtimeControlAllowed = runtimeControlContext?.allowed
|
|
342
|
+
?? turnRuntimeContext?.allowed
|
|
343
|
+
?? turnContext.modelVisible.runtime.runtimeControlAllowed;
|
|
344
|
+
return {
|
|
345
|
+
runtimeControlAllowed,
|
|
346
|
+
runtimeControlApprovalMode,
|
|
347
|
+
};
|
|
348
|
+
}
|
|
349
|
+
function hasApprovedGatewayActionForTool(toolName, context) {
|
|
350
|
+
const approvedActions = context.approvedGatewayActions ?? [];
|
|
351
|
+
if (approvedActions.length === 0)
|
|
352
|
+
return false;
|
|
353
|
+
const normalizedToolName = normalizeGatewayToolName(toolName);
|
|
354
|
+
for (const action of approvedActions) {
|
|
355
|
+
if (action.normalizedToolName === normalizedToolName) {
|
|
356
|
+
return true;
|
|
341
357
|
}
|
|
342
|
-
host.eventBridge.emitCheckpoint("Verification passed", "Changed files passed the configured chat verification.", params.eventContext, "verification");
|
|
343
358
|
}
|
|
344
|
-
|
|
345
|
-
|
|
346
|
-
|
|
347
|
-
|
|
348
|
-
|
|
349
|
-
type: "assistant_final",
|
|
350
|
-
text: result.output,
|
|
351
|
-
persisted: true,
|
|
352
|
-
...host.eventBridge.eventBase(params.eventContext),
|
|
353
|
-
});
|
|
354
|
-
host.eventBridge.emitLifecycleEndEvent("completed", elapsed_ms, params.eventContext, true);
|
|
355
|
-
}
|
|
356
|
-
else {
|
|
357
|
-
const partialText = params.assistantBuffer.text !== result.output ? params.assistantBuffer.text : "";
|
|
358
|
-
result.output = await host.eventBridge.emitLifecycleErrorEventWithFallback(result.output || result.error || "Unknown error", partialText, params.eventContext, {
|
|
359
|
-
stoppedReason: result.stopped_reason,
|
|
360
|
-
signals: [{
|
|
361
|
-
kind: "adapter",
|
|
362
|
-
adapterType: host.deps.adapter.adapterType,
|
|
363
|
-
stoppedReason: result.stopped_reason,
|
|
364
|
-
}],
|
|
365
|
-
}, host.deps.llmClient);
|
|
366
|
-
host.eventBridge.emitLifecycleEndEvent("error", elapsed_ms, params.eventContext, false);
|
|
359
|
+
return false;
|
|
360
|
+
}
|
|
361
|
+
function selectDirectModelLoopTools(tools, turnContext, runtimeControlContext, scopeContext) {
|
|
362
|
+
if (!isGatewaySurfaceTurn(turnContext, runtimeControlContext)) {
|
|
363
|
+
return tools;
|
|
367
364
|
}
|
|
368
|
-
return
|
|
369
|
-
|
|
370
|
-
|
|
371
|
-
|
|
372
|
-
};
|
|
365
|
+
return selectGatewayModelLoopTools(tools, scopeContext);
|
|
366
|
+
}
|
|
367
|
+
function isGatewaySurfaceTurn(turnContext, runtimeControlContext) {
|
|
368
|
+
return (runtimeControlContext?.replyTarget?.surface ?? turnContext.modelVisible.runtime.replyTarget?.surface) === "gateway";
|
|
373
369
|
}
|
|
374
|
-
async function executeWithTools(host, turnContext, eventContext, assistantBuffer, systemPrompt, goalId, runtimeControlContext, start
|
|
370
|
+
async function executeWithTools(host, turnContext, eventContext, assistantBuffer, systemPrompt, goalId, runtimeControlContext, start, options = {
|
|
371
|
+
tools: host.deps.registry?.listAll() ?? [],
|
|
372
|
+
streamFinalText: true,
|
|
373
|
+
}) {
|
|
375
374
|
const llmClient = host.deps.llmClient;
|
|
375
|
+
if (!llmClient) {
|
|
376
|
+
throw new ToolLoopTerminalError("model_request_aborted", "Gateway model/tool loop cannot run because no language model client is configured.");
|
|
377
|
+
}
|
|
376
378
|
const supportsNativeToolCalling = llmClient.supportsToolCalling?.() !== false;
|
|
379
|
+
const gatewayScopeContext = initialGatewayToolScopeContext(runtimeControlContext ?? null, turnContext);
|
|
380
|
+
const isGatewaySurface = isGatewaySurfaceTurn(turnContext, runtimeControlContext ?? null);
|
|
381
|
+
const currentVisibleTools = () => selectDirectModelLoopTools(options.tools, turnContext, runtimeControlContext ?? null, gatewayScopeContext);
|
|
382
|
+
const initialVisibleTools = currentVisibleTools();
|
|
377
383
|
const initialModelRequest = buildChatModelRequest({
|
|
378
384
|
purpose: "tool_call",
|
|
379
385
|
turnContext,
|
|
380
386
|
systemPrompt,
|
|
381
|
-
availableTools:
|
|
387
|
+
availableTools: initialVisibleTools,
|
|
382
388
|
activatedTools: host.activatedTools,
|
|
383
389
|
supportsNativeToolCalling,
|
|
384
390
|
});
|
|
385
391
|
const messages = [...initialModelRequest.messages];
|
|
386
|
-
const
|
|
392
|
+
const startedAt = start ?? Date.now();
|
|
393
|
+
const deadlineAt = options.timeoutMs ? startedAt + options.timeoutMs : null;
|
|
394
|
+
if (isGatewaySurface && !supportsNativeToolCalling && initialVisibleTools.length > 0) {
|
|
395
|
+
throw new ToolLoopTerminalError("policy_blocked", "Gateway tools require a model provider with native tool-calling support. The current provider cannot preserve structured tool transcripts on this gateway surface.");
|
|
396
|
+
}
|
|
397
|
+
const toolCallContext = await buildToolCallContext(host, goalId, runtimeControlContext, start, turnContext, {
|
|
398
|
+
abortSignal: options.abortSignal,
|
|
399
|
+
timeoutMs: remainingTimeoutMs(deadlineAt),
|
|
400
|
+
});
|
|
387
401
|
const usage = zeroUsageCounter();
|
|
402
|
+
let previousToolCycleFingerprint = null;
|
|
403
|
+
let repeatedToolCycleCount = 0;
|
|
404
|
+
const unavailableToolAttempts = new Map();
|
|
388
405
|
for (let loop = 0; loop < MAX_TOOL_LOOPS; loop++) {
|
|
406
|
+
throwIfAbortedOrTimedOut(options.abortSignal, deadlineAt, "model_request");
|
|
407
|
+
const visibleTools = currentVisibleTools();
|
|
389
408
|
const modelRequest = buildChatModelRequest({
|
|
390
409
|
purpose: "tool_call",
|
|
391
410
|
turnContext,
|
|
392
411
|
systemPrompt,
|
|
393
|
-
availableTools:
|
|
412
|
+
availableTools: visibleTools,
|
|
394
413
|
activatedTools: host.activatedTools,
|
|
395
414
|
supportsNativeToolCalling,
|
|
396
415
|
messages,
|
|
@@ -398,40 +417,44 @@ async function executeWithTools(host, turnContext, eventContext, assistantBuffer
|
|
|
398
417
|
let response;
|
|
399
418
|
try {
|
|
400
419
|
host.eventBridge.emitActivity("lifecycle", "Calling model...", eventContext, "lifecycle:model");
|
|
401
|
-
response = await sendLLMMessage(host, llmClient, modelRequest.messages,
|
|
420
|
+
response = await withAbortAndTimeout((execution) => sendLLMMessage(host, llmClient, modelRequest.messages, {
|
|
421
|
+
...modelRequest.options,
|
|
422
|
+
abortSignal: execution.abortSignal,
|
|
423
|
+
...(execution.timeoutMs !== undefined ? { timeoutMs: execution.timeoutMs } : {}),
|
|
424
|
+
}, assistantBuffer, eventContext, {
|
|
425
|
+
emitAssistantDeltas: options.streamFinalText && supportsNativeToolCalling,
|
|
426
|
+
holdAssistantDelta: options.holdAssistantDelta,
|
|
427
|
+
}), options.abortSignal, remainingTimeoutMs(deadlineAt), "model_request");
|
|
402
428
|
}
|
|
403
429
|
catch (err) {
|
|
430
|
+
if (err instanceof ToolLoopTerminalError)
|
|
431
|
+
throw err;
|
|
432
|
+
const interruption = terminalModelInterruptionFromError(err);
|
|
433
|
+
if (interruption)
|
|
434
|
+
throw interruption;
|
|
404
435
|
console.error("[chat-runner] executeWithTools error:", err);
|
|
405
436
|
const hint = err instanceof Error ? `: ${err.message}` : "";
|
|
406
437
|
throw new Error(`Sorry, I encountered an error processing your request${hint}.`);
|
|
407
438
|
}
|
|
408
439
|
addUsageCounter(usage, usageFromLLMResponse(response));
|
|
409
|
-
const
|
|
410
|
-
|
|
411
|
-
|
|
412
|
-
|
|
413
|
-
:
|
|
414
|
-
|
|
415
|
-
|
|
416
|
-
|
|
417
|
-
}).map((call) => ({
|
|
418
|
-
id: call.id,
|
|
419
|
-
type: "function",
|
|
420
|
-
function: {
|
|
421
|
-
name: call.name,
|
|
422
|
-
arguments: JSON.stringify(call.input ?? {}),
|
|
423
|
-
},
|
|
424
|
-
}));
|
|
425
|
-
if (!supportsNativeToolCalling && toolCalls.length > 0) {
|
|
426
|
-
assistantBuffer.text = "";
|
|
427
|
-
}
|
|
440
|
+
const nativeToolCalls = response.tool_calls?.length ? response.tool_calls : [];
|
|
441
|
+
const promptedToolCalls = !supportsNativeToolCalling && visibleTools.length > 0
|
|
442
|
+
? extractPromptedToolCalls({
|
|
443
|
+
content: response.content,
|
|
444
|
+
tools: modelRequest.toolDefinitions,
|
|
445
|
+
}).map(promptedToolCallToLLMToolCall)
|
|
446
|
+
: [];
|
|
447
|
+
const toolCalls = nativeToolCalls.length > 0 ? nativeToolCalls : promptedToolCalls;
|
|
428
448
|
if (toolCalls.length === 0) {
|
|
429
449
|
return {
|
|
430
|
-
output:
|
|
450
|
+
output: response.content || assistantBuffer.text || "(no response)",
|
|
431
451
|
usage,
|
|
432
452
|
};
|
|
433
453
|
}
|
|
434
|
-
messages.push(
|
|
454
|
+
messages.push(supportsNativeToolCalling
|
|
455
|
+
? { role: "assistant", content: response.content || "", tool_calls: toolCalls }
|
|
456
|
+
: { role: "assistant", content: `Calling ${toolCalls.map((call) => call.function.name).join(", ")}` });
|
|
457
|
+
const toolCycleResults = [];
|
|
435
458
|
for (const tc of toolCalls) {
|
|
436
459
|
let args = {};
|
|
437
460
|
try {
|
|
@@ -440,26 +463,474 @@ async function executeWithTools(host, turnContext, eventContext, assistantBuffer
|
|
|
440
463
|
catch {
|
|
441
464
|
// ignore parse errors, use empty args
|
|
442
465
|
}
|
|
443
|
-
const
|
|
444
|
-
|
|
466
|
+
const visibleToolsForCall = currentVisibleTools();
|
|
467
|
+
const resolvedTool = resolveGatewayToolCallName(tc.function.name, visibleToolsForCall);
|
|
468
|
+
if (!resolvedTool.allowed) {
|
|
469
|
+
const allowedToolNames = new Set(visibleToolsForCall.map((tool) => tool.metadata.name));
|
|
470
|
+
const unavailable = classifyUnavailableGatewayTool(tc.function.name, host.deps.registry?.listAll() ?? [], allowedToolNames);
|
|
471
|
+
const summary = formatUnavailableGatewayToolSummary(unavailable);
|
|
472
|
+
host.eventBridge.emitActivity("tool", formatToolActivity("Failed", tc.function.name, summary), eventContext, tc.id);
|
|
473
|
+
host.eventBridge.emitEvent({
|
|
474
|
+
type: "tool_end",
|
|
475
|
+
toolCallId: tc.id,
|
|
476
|
+
toolName: tc.function.name,
|
|
477
|
+
success: false,
|
|
478
|
+
summary,
|
|
479
|
+
durationMs: 0,
|
|
480
|
+
...host.eventBridge.eventBase(eventContext),
|
|
481
|
+
});
|
|
482
|
+
if (!unavailable.recoverable) {
|
|
483
|
+
throw new ToolLoopTerminalError(unavailable.code, summary);
|
|
484
|
+
}
|
|
485
|
+
const toolResult = JSON.stringify({
|
|
486
|
+
error: "unavailable_tool",
|
|
487
|
+
denial_class: unavailable.denialClass,
|
|
488
|
+
requested_tool: tc.function.name,
|
|
489
|
+
message: summary,
|
|
490
|
+
});
|
|
491
|
+
messages.push({
|
|
492
|
+
role: "tool",
|
|
493
|
+
tool_call_id: tc.id,
|
|
494
|
+
name: tc.function.name,
|
|
495
|
+
content: toolResult,
|
|
496
|
+
});
|
|
497
|
+
const attemptKey = unavailable.normalizedName;
|
|
498
|
+
const attemptCount = (unavailableToolAttempts.get(attemptKey) ?? 0) + 1;
|
|
499
|
+
unavailableToolAttempts.set(attemptKey, attemptCount);
|
|
500
|
+
if (attemptCount >= GATEWAY_UNAVAILABLE_TOOL_GUIDANCE_LIMIT) {
|
|
501
|
+
messages.push({
|
|
502
|
+
role: "user",
|
|
503
|
+
content: `The tool "${tc.function.name}" is unavailable in this gateway scope after ${attemptCount} attempts. Stop retrying that missing tool and answer without it.`,
|
|
504
|
+
});
|
|
505
|
+
}
|
|
506
|
+
toolCycleResults.push({
|
|
507
|
+
name: tc.function.name,
|
|
508
|
+
args,
|
|
509
|
+
result: toolResult,
|
|
510
|
+
unavailableClass: unavailable.denialClass,
|
|
511
|
+
polling: false,
|
|
512
|
+
});
|
|
513
|
+
continue;
|
|
514
|
+
}
|
|
515
|
+
throwIfAbortedOrTimedOut(options.abortSignal, deadlineAt, "tool_call");
|
|
516
|
+
const executableTool = findGatewayVisibleTool(resolvedTool.name, visibleToolsForCall);
|
|
517
|
+
if (!executableTool) {
|
|
518
|
+
throw new ToolLoopTerminalError("policy_blocked", `Tool ${tc.function.name} is blocked by host gateway policy.`);
|
|
519
|
+
}
|
|
520
|
+
const approvalBindingFailure = isGatewaySurface
|
|
521
|
+
? gatewayApprovalBindingFailure(executableTool, args, gatewayScopeContext)
|
|
522
|
+
: null;
|
|
523
|
+
if (approvalBindingFailure) {
|
|
524
|
+
host.eventBridge.emitActivity("tool", formatToolActivity("Failed", executableTool.metadata.name, approvalBindingFailure), eventContext, tc.id);
|
|
525
|
+
host.eventBridge.emitEvent({
|
|
526
|
+
type: "tool_end",
|
|
527
|
+
toolCallId: tc.id,
|
|
528
|
+
toolName: executableTool.metadata.name,
|
|
529
|
+
success: false,
|
|
530
|
+
summary: approvalBindingFailure,
|
|
531
|
+
durationMs: 0,
|
|
532
|
+
...(executableTool.metadata.activityCategory ? { activityCategory: executableTool.metadata.activityCategory } : {}),
|
|
533
|
+
...host.eventBridge.eventBase(eventContext),
|
|
534
|
+
});
|
|
535
|
+
throw new ToolLoopTerminalError("policy_blocked", approvalBindingFailure);
|
|
536
|
+
}
|
|
537
|
+
const toolResult = await withAbortAndTimeout((execution) => dispatchToolCall(host, tc.id, resolvedTool.name, args, {
|
|
538
|
+
...toolCallContext,
|
|
539
|
+
abortSignal: execution.abortSignal,
|
|
540
|
+
...(execution.timeoutMs !== undefined ? { timeoutMs: execution.timeoutMs } : {}),
|
|
541
|
+
callId: tc.id,
|
|
542
|
+
}, eventContext), options.abortSignal, remainingTimeoutMs(deadlineAt), "tool_call");
|
|
543
|
+
if (resolvedTool.name === "tool_search") {
|
|
445
544
|
activateToolSearchResults(host.activatedTools, toolResult);
|
|
446
545
|
}
|
|
447
|
-
|
|
546
|
+
applyGatewayApprovalScopeFromToolResult(resolvedTool.name, toolResult, gatewayScopeContext);
|
|
547
|
+
toolCycleResults.push({
|
|
548
|
+
name: resolvedTool.name,
|
|
549
|
+
args,
|
|
550
|
+
result: toolResult,
|
|
551
|
+
polling: isPollingGatewayTool(resolvedTool.name),
|
|
552
|
+
});
|
|
553
|
+
messages.push({
|
|
554
|
+
role: "tool",
|
|
555
|
+
tool_call_id: tc.id,
|
|
556
|
+
name: resolvedTool.name,
|
|
557
|
+
content: toolResult,
|
|
558
|
+
});
|
|
559
|
+
}
|
|
560
|
+
const toolCycleFingerprint = stableToolCycleFingerprint(toolCycleResults);
|
|
561
|
+
if (toolCycleFingerprint === previousToolCycleFingerprint) {
|
|
562
|
+
repeatedToolCycleCount++;
|
|
563
|
+
const limit = toolCycleResults.some((item) => item.polling)
|
|
564
|
+
? GATEWAY_POLL_BLOCK_REPEAT_LIMIT
|
|
565
|
+
: GATEWAY_LOOP_BLOCK_REPEAT_LIMIT;
|
|
566
|
+
const warningLimit = toolCycleResults.some((item) => item.polling)
|
|
567
|
+
? GATEWAY_POLL_WARNING_REPEAT_LIMIT
|
|
568
|
+
: GATEWAY_LOOP_WARNING_REPEAT_LIMIT;
|
|
569
|
+
if (repeatedToolCycleCount === warningLimit - 1) {
|
|
570
|
+
messages.push({
|
|
571
|
+
role: "user",
|
|
572
|
+
content: "The last gateway tool cycle repeated with identical arguments and identical output. If this is not making progress, stop retrying and answer from the available evidence.",
|
|
573
|
+
});
|
|
574
|
+
}
|
|
575
|
+
if (repeatedToolCycleCount >= limit - 1) {
|
|
576
|
+
throw new ToolLoopTerminalError("stalled_tool_loop", "The gateway model/tool loop repeated the same tool call and received the same result without making progress.");
|
|
577
|
+
}
|
|
578
|
+
}
|
|
579
|
+
else {
|
|
580
|
+
previousToolCycleFingerprint = toolCycleFingerprint;
|
|
581
|
+
repeatedToolCycleCount = 0;
|
|
582
|
+
}
|
|
583
|
+
}
|
|
584
|
+
throw new ToolLoopTerminalError("tool_loop_exhausted", `The gateway model/tool loop reached the maximum of ${MAX_TOOL_LOOPS} tool iterations without a final assistant answer.`);
|
|
585
|
+
}
|
|
586
|
+
function applyGatewayApprovalScopeFromToolResult(toolName, toolResult, scopeContext) {
|
|
587
|
+
if (toolName !== "ask-human")
|
|
588
|
+
return;
|
|
589
|
+
let parsed;
|
|
590
|
+
try {
|
|
591
|
+
parsed = JSON.parse(toolResult);
|
|
592
|
+
}
|
|
593
|
+
catch {
|
|
594
|
+
return;
|
|
595
|
+
}
|
|
596
|
+
if (!parsed || typeof parsed !== "object" || Array.isArray(parsed))
|
|
597
|
+
return;
|
|
598
|
+
const record = parsed;
|
|
599
|
+
if (record["answer"] !== "approved")
|
|
600
|
+
return;
|
|
601
|
+
if (record["approval_scope"] !== "write"
|
|
602
|
+
&& record["approval_scope"] !== "execute"
|
|
603
|
+
&& record["approval_scope"] !== "durable_run") {
|
|
604
|
+
return;
|
|
605
|
+
}
|
|
606
|
+
const target = parseGatewayApprovalTarget(record["approval_target"]);
|
|
607
|
+
if (!target)
|
|
608
|
+
return;
|
|
609
|
+
const approvedAction = approvedGatewayActionFromTarget(target);
|
|
610
|
+
if (!approvedAction)
|
|
611
|
+
return;
|
|
612
|
+
scopeContext.approvedGatewayActions = [
|
|
613
|
+
...(scopeContext.approvedGatewayActions ?? []),
|
|
614
|
+
approvedAction,
|
|
615
|
+
];
|
|
616
|
+
}
|
|
617
|
+
function parseGatewayApprovalTarget(value) {
|
|
618
|
+
if (!value || typeof value !== "object" || Array.isArray(value))
|
|
619
|
+
return null;
|
|
620
|
+
const record = value;
|
|
621
|
+
const toolName = typeof record["tool_name"] === "string" ? record["tool_name"].trim() : "";
|
|
622
|
+
if (!toolName)
|
|
623
|
+
return null;
|
|
624
|
+
const action = typeof record["action"] === "string" ? record["action"].trim() : "";
|
|
625
|
+
const args = isRecord(record["arguments"]) ? record["arguments"] : undefined;
|
|
626
|
+
return {
|
|
627
|
+
tool_name: toolName,
|
|
628
|
+
...(action ? { action } : {}),
|
|
629
|
+
...(args ? { arguments: args } : {}),
|
|
630
|
+
};
|
|
631
|
+
}
|
|
632
|
+
function approvedGatewayActionFromTarget(target) {
|
|
633
|
+
if (!target.arguments)
|
|
634
|
+
return null;
|
|
635
|
+
const toolName = target.tool_name.trim();
|
|
636
|
+
if (!toolName)
|
|
637
|
+
return null;
|
|
638
|
+
return {
|
|
639
|
+
toolName,
|
|
640
|
+
normalizedToolName: normalizeGatewayToolName(toolName),
|
|
641
|
+
...(target.action ? { action: target.action } : {}),
|
|
642
|
+
argsFingerprint: stableJsonFingerprint(target.arguments),
|
|
643
|
+
};
|
|
644
|
+
}
|
|
645
|
+
function terminalModelInterruptionFromError(err) {
|
|
646
|
+
const message = err instanceof Error ? err.message : String(err);
|
|
647
|
+
const normalized = message.toLowerCase();
|
|
648
|
+
if (normalized.includes("abort") || normalized.includes("cancel")) {
|
|
649
|
+
return new ToolLoopTerminalError("model_request_aborted", message);
|
|
650
|
+
}
|
|
651
|
+
if (normalized.includes("timeout") || normalized.includes("timed out")) {
|
|
652
|
+
return new ToolLoopTerminalError("model_request_timeout", message);
|
|
653
|
+
}
|
|
654
|
+
return null;
|
|
655
|
+
}
|
|
656
|
+
function resolveGatewayToolCallName(requestedName, tools) {
|
|
657
|
+
const trimmed = requestedName.trim();
|
|
658
|
+
if (!trimmed)
|
|
659
|
+
return { allowed: false };
|
|
660
|
+
if (tools.some((tool) => tool.metadata.name === trimmed)) {
|
|
661
|
+
return { allowed: true, name: trimmed };
|
|
662
|
+
}
|
|
663
|
+
const normalized = normalizeGatewayToolName(trimmed);
|
|
664
|
+
const matches = tools
|
|
665
|
+
.map((tool) => tool.metadata.name)
|
|
666
|
+
.filter((name) => normalizeGatewayToolName(name) === normalized);
|
|
667
|
+
return matches.length === 1 ? { allowed: true, name: matches[0] } : { allowed: false };
|
|
668
|
+
}
|
|
669
|
+
function findGatewayVisibleTool(requestedName, tools) {
|
|
670
|
+
const trimmed = requestedName.trim();
|
|
671
|
+
if (!trimmed)
|
|
672
|
+
return null;
|
|
673
|
+
const direct = tools.find((tool) => tool.metadata.name === trimmed);
|
|
674
|
+
if (direct)
|
|
675
|
+
return direct;
|
|
676
|
+
const normalized = normalizeGatewayToolName(trimmed);
|
|
677
|
+
return tools.find((tool) => normalizeGatewayToolName(tool.metadata.name) === normalized) ?? null;
|
|
678
|
+
}
|
|
679
|
+
function gatewayApprovalBindingFailure(tool, args, context) {
|
|
680
|
+
if (tool.metadata.gatewayExposure !== "approval_required")
|
|
681
|
+
return null;
|
|
682
|
+
if (tool.metadata.isReadOnly)
|
|
683
|
+
return null;
|
|
684
|
+
const normalizedToolName = normalizeGatewayToolName(tool.metadata.name);
|
|
685
|
+
const approvedActions = (context.approvedGatewayActions ?? [])
|
|
686
|
+
.filter((action) => action.normalizedToolName === normalizedToolName);
|
|
687
|
+
if (approvedActions.length === 0) {
|
|
688
|
+
return `Tool ${tool.metadata.name} requires explicit approval for this exact request before it can run on this gateway surface.`;
|
|
689
|
+
}
|
|
690
|
+
const argsFingerprint = stableJsonFingerprint(args);
|
|
691
|
+
if (approvedActions.some((action) => action.argsFingerprint === argsFingerprint)) {
|
|
692
|
+
return null;
|
|
693
|
+
}
|
|
694
|
+
return `Tool ${tool.metadata.name} was approved only for a different request. The current arguments do not match the approved approval_target.arguments.`;
|
|
695
|
+
}
|
|
696
|
+
function classifyUnavailableGatewayTool(requestedName, registeredTools, allowedToolNames) {
|
|
697
|
+
const normalizedName = normalizeGatewayToolName(requestedName);
|
|
698
|
+
const knownTool = registeredTools.find((tool) => normalizeGatewayToolName(tool.metadata.name) === normalizedName
|
|
699
|
+
|| tool.metadata.aliases.some((alias) => normalizeGatewayToolName(alias) === normalizedName));
|
|
700
|
+
if (!knownTool) {
|
|
701
|
+
return {
|
|
702
|
+
denialClass: "unknown_tool",
|
|
703
|
+
normalizedName,
|
|
704
|
+
code: "policy_blocked",
|
|
705
|
+
recoverable: true,
|
|
706
|
+
requestedName,
|
|
707
|
+
};
|
|
708
|
+
}
|
|
709
|
+
if (allowedToolNames.has(knownTool.metadata.name)) {
|
|
710
|
+
return {
|
|
711
|
+
denialClass: "unknown_tool",
|
|
712
|
+
normalizedName,
|
|
713
|
+
code: "policy_blocked",
|
|
714
|
+
recoverable: true,
|
|
715
|
+
requestedName,
|
|
716
|
+
};
|
|
717
|
+
}
|
|
718
|
+
if (knownTool.metadata.gatewayExposure === "runtime_control") {
|
|
719
|
+
return {
|
|
720
|
+
denialClass: "runtime_control_unauthorized",
|
|
721
|
+
normalizedName,
|
|
722
|
+
code: "policy_blocked",
|
|
723
|
+
recoverable: false,
|
|
724
|
+
requestedName,
|
|
725
|
+
};
|
|
726
|
+
}
|
|
727
|
+
if (knownTool.metadata.permissionLevel === "write_local"
|
|
728
|
+
|| knownTool.metadata.permissionLevel === "write_remote"
|
|
729
|
+
|| knownTool.metadata.permissionLevel === "execute"
|
|
730
|
+
|| knownTool.metadata.isDestructive) {
|
|
731
|
+
return {
|
|
732
|
+
denialClass: "approval_required",
|
|
733
|
+
normalizedName,
|
|
734
|
+
code: "policy_blocked",
|
|
735
|
+
recoverable: false,
|
|
736
|
+
requestedName,
|
|
737
|
+
};
|
|
738
|
+
}
|
|
739
|
+
const recoverable = knownTool.metadata.isReadOnly && knownTool.metadata.permissionLevel === "read_only";
|
|
740
|
+
return {
|
|
741
|
+
denialClass: recoverable ? "known_not_exposed" : "host_policy_denied",
|
|
742
|
+
normalizedName,
|
|
743
|
+
code: "policy_blocked",
|
|
744
|
+
recoverable,
|
|
745
|
+
requestedName,
|
|
746
|
+
};
|
|
747
|
+
}
|
|
748
|
+
function formatUnavailableGatewayToolSummary(input) {
|
|
749
|
+
switch (input.denialClass) {
|
|
750
|
+
case "unknown_tool":
|
|
751
|
+
return `Tool ${input.requestedName} is not available in this gateway scope. Use another available tool or answer without it.`;
|
|
752
|
+
case "known_not_exposed":
|
|
753
|
+
return `Tool ${input.requestedName} exists but is not exposed on this gateway surface. Use another available tool or answer without it.`;
|
|
754
|
+
case "approval_required":
|
|
755
|
+
return `Tool ${input.requestedName} requires explicit approval or a narrower setup state before it can be exposed on this gateway surface.`;
|
|
756
|
+
case "runtime_control_unauthorized":
|
|
757
|
+
return `Tool ${input.requestedName} requires runtime-control authorization and is not available for this gateway turn.`;
|
|
758
|
+
case "host_policy_denied":
|
|
759
|
+
return `Tool ${input.requestedName} is blocked by host gateway policy.`;
|
|
760
|
+
}
|
|
761
|
+
}
|
|
762
|
+
function promptedToolCallToLLMToolCall(call) {
|
|
763
|
+
return {
|
|
764
|
+
id: call.id,
|
|
765
|
+
type: "function",
|
|
766
|
+
function: {
|
|
767
|
+
name: call.name,
|
|
768
|
+
arguments: JSON.stringify(call.input ?? {}),
|
|
769
|
+
},
|
|
770
|
+
};
|
|
771
|
+
}
|
|
772
|
+
function normalizeGatewayToolName(name) {
|
|
773
|
+
return name.trim().toLowerCase().replace(/[.\-\s]+/g, "_");
|
|
774
|
+
}
|
|
775
|
+
function isPollingGatewayTool(name) {
|
|
776
|
+
return name.includes("observe")
|
|
777
|
+
|| name.includes("status")
|
|
778
|
+
|| name.includes("poll")
|
|
779
|
+
|| name === "process_session_read"
|
|
780
|
+
|| name === "process_status";
|
|
781
|
+
}
|
|
782
|
+
function remainingTimeoutMs(deadlineAt) {
|
|
783
|
+
if (deadlineAt === null)
|
|
784
|
+
return undefined;
|
|
785
|
+
return Math.max(0, deadlineAt - Date.now());
|
|
786
|
+
}
|
|
787
|
+
function throwIfAbortedOrTimedOut(abortSignal, deadlineAt, phase) {
|
|
788
|
+
if (abortSignal?.aborted) {
|
|
789
|
+
throw new ToolLoopTerminalError(phase === "model_request" ? "model_request_aborted" : "tool_call_aborted", phase === "model_request"
|
|
790
|
+
? "The gateway model request was aborted before it completed."
|
|
791
|
+
: "The gateway tool call was aborted before it completed.");
|
|
792
|
+
}
|
|
793
|
+
const remaining = remainingTimeoutMs(deadlineAt);
|
|
794
|
+
if (remaining !== undefined && remaining <= 0) {
|
|
795
|
+
throw new ToolLoopTerminalError(phase === "model_request" ? "model_request_timeout" : "tool_call_timeout", phase === "model_request"
|
|
796
|
+
? "The gateway model request timed out before it completed."
|
|
797
|
+
: "The gateway tool call timed out before it completed.");
|
|
798
|
+
}
|
|
799
|
+
}
|
|
800
|
+
async function withAbortAndTimeout(operation, abortSignal, timeoutMs, phase) {
|
|
801
|
+
throwIfAbortedOrTimedOut(abortSignal, timeoutMs === undefined ? null : Date.now() + timeoutMs, phase);
|
|
802
|
+
const controller = new AbortController();
|
|
803
|
+
let timeout;
|
|
804
|
+
let abortHandler;
|
|
805
|
+
const racers = [];
|
|
806
|
+
if (timeoutMs !== undefined) {
|
|
807
|
+
racers.push(new Promise((_, reject) => {
|
|
808
|
+
timeout = setTimeout(() => {
|
|
809
|
+
const err = new ToolLoopTerminalError(phase === "model_request" ? "model_request_timeout" : "tool_call_timeout", phase === "model_request"
|
|
810
|
+
? "The gateway model request timed out before it completed."
|
|
811
|
+
: "The gateway tool call timed out before it completed.");
|
|
812
|
+
reject(err);
|
|
813
|
+
abortController(controller, err);
|
|
814
|
+
}, timeoutMs);
|
|
815
|
+
}));
|
|
816
|
+
}
|
|
817
|
+
if (abortSignal) {
|
|
818
|
+
racers.push(new Promise((_, reject) => {
|
|
819
|
+
if (abortSignal.aborted) {
|
|
820
|
+
const err = new ToolLoopTerminalError(phase === "model_request" ? "model_request_aborted" : "tool_call_aborted", phase === "model_request"
|
|
821
|
+
? "The gateway model request was aborted before it completed."
|
|
822
|
+
: "The gateway tool call was aborted before it completed.");
|
|
823
|
+
reject(err);
|
|
824
|
+
abortController(controller, err);
|
|
825
|
+
return;
|
|
826
|
+
}
|
|
827
|
+
abortHandler = () => {
|
|
828
|
+
const err = new ToolLoopTerminalError(phase === "model_request" ? "model_request_aborted" : "tool_call_aborted", phase === "model_request"
|
|
829
|
+
? "The gateway model request was aborted before it completed."
|
|
830
|
+
: "The gateway tool call was aborted before it completed.");
|
|
831
|
+
reject(err);
|
|
832
|
+
abortController(controller, err);
|
|
833
|
+
};
|
|
834
|
+
abortSignal.addEventListener("abort", abortHandler, { once: true });
|
|
835
|
+
}));
|
|
836
|
+
}
|
|
837
|
+
const operationPromise = operation({
|
|
838
|
+
abortSignal: controller.signal,
|
|
839
|
+
...(timeoutMs !== undefined ? { timeoutMs } : {}),
|
|
840
|
+
});
|
|
841
|
+
racers.unshift(operationPromise);
|
|
842
|
+
try {
|
|
843
|
+
return await Promise.race(racers);
|
|
844
|
+
}
|
|
845
|
+
finally {
|
|
846
|
+
if (timeout)
|
|
847
|
+
clearTimeout(timeout);
|
|
848
|
+
if (abortSignal && abortHandler) {
|
|
849
|
+
abortSignal.removeEventListener("abort", abortHandler);
|
|
448
850
|
}
|
|
449
851
|
}
|
|
450
|
-
|
|
852
|
+
}
|
|
853
|
+
function abortController(controller, reason) {
|
|
854
|
+
if (controller.signal.aborted)
|
|
855
|
+
return;
|
|
856
|
+
controller.abort(reason);
|
|
857
|
+
}
|
|
858
|
+
function stableToolCycleFingerprint(results) {
|
|
859
|
+
return JSON.stringify(results.map((item) => ({
|
|
860
|
+
name: item.name,
|
|
861
|
+
args: stableJsonValue(item.args),
|
|
862
|
+
result: item.result,
|
|
863
|
+
unavailableClass: item.unavailableClass ?? null,
|
|
864
|
+
})));
|
|
865
|
+
}
|
|
866
|
+
function stableJsonFingerprint(value) {
|
|
867
|
+
return JSON.stringify(stableJsonValue(value));
|
|
868
|
+
}
|
|
869
|
+
function stableJsonValue(value) {
|
|
870
|
+
if (Array.isArray(value))
|
|
871
|
+
return value.map(stableJsonValue);
|
|
872
|
+
if (!value || typeof value !== "object")
|
|
873
|
+
return value;
|
|
874
|
+
return Object.fromEntries(Object.entries(value)
|
|
875
|
+
.sort(([left], [right]) => left.localeCompare(right))
|
|
876
|
+
.map(([key, entry]) => [key, stableJsonValue(entry)]));
|
|
877
|
+
}
|
|
878
|
+
function isRecord(value) {
|
|
879
|
+
return Boolean(value) && typeof value === "object" && !Array.isArray(value);
|
|
880
|
+
}
|
|
881
|
+
function toolLoopTerminalEvidence(error) {
|
|
882
|
+
if (error.code === "approval_denied" || error.code === "policy_blocked") {
|
|
883
|
+
return {
|
|
884
|
+
code: error.code,
|
|
885
|
+
stoppedReason: error.code,
|
|
886
|
+
signals: [{
|
|
887
|
+
kind: "approval",
|
|
888
|
+
status: error.code === "approval_denied" ? "denied" : "blocked",
|
|
889
|
+
code: error.code,
|
|
890
|
+
}],
|
|
891
|
+
};
|
|
892
|
+
}
|
|
893
|
+
const isInterruption = error.code === "model_request_timeout"
|
|
894
|
+
|| error.code === "model_request_aborted"
|
|
895
|
+
|| error.code === "tool_call_timeout"
|
|
896
|
+
|| error.code === "tool_call_aborted";
|
|
897
|
+
const stoppedReason = error.code === "model_request_aborted" || error.code === "tool_call_aborted"
|
|
898
|
+
? "aborted"
|
|
899
|
+
: isInterruption
|
|
900
|
+
? "timeout"
|
|
901
|
+
: "stalled_tool_loop";
|
|
902
|
+
if (isInterruption) {
|
|
903
|
+
return {
|
|
904
|
+
code: error.code,
|
|
905
|
+
stoppedReason: error.code,
|
|
906
|
+
signals: [{
|
|
907
|
+
kind: "runtime",
|
|
908
|
+
stoppedReason,
|
|
909
|
+
code: error.code,
|
|
910
|
+
}],
|
|
911
|
+
};
|
|
912
|
+
}
|
|
451
913
|
return {
|
|
452
|
-
|
|
453
|
-
|
|
914
|
+
code: error.code,
|
|
915
|
+
stoppedReason: error.code,
|
|
916
|
+
signals: [{
|
|
917
|
+
kind: "runtime",
|
|
918
|
+
operationState: "daemon_loop",
|
|
919
|
+
stoppedReason,
|
|
920
|
+
code: error.code,
|
|
921
|
+
}],
|
|
454
922
|
};
|
|
455
923
|
}
|
|
924
|
+
function shouldGateRuntimeEvidenceForTurn(turnContext) {
|
|
925
|
+
return turnContext.modelVisible.tools.selectedRoute === "gateway_model_loop"
|
|
926
|
+
&& turnContext.modelVisible.runtime.replyTarget?.surface === "gateway";
|
|
927
|
+
}
|
|
456
928
|
async function persistDirectRouteResult(host, output, eventContext, assistantBuffer, history, start) {
|
|
457
929
|
const elapsed_ms = Date.now() - start;
|
|
458
930
|
if (!assistantBuffer.text) {
|
|
459
931
|
host.eventBridge.pushAssistantDelta(output, assistantBuffer, eventContext);
|
|
460
932
|
}
|
|
461
933
|
await history.appendAssistantMessage(output);
|
|
462
|
-
host.eventBridge.emitActivity("lifecycle", "Finalizing response...", eventContext, "lifecycle:finalizing");
|
|
463
934
|
host.eventBridge.emitEvent({
|
|
464
935
|
type: "assistant_final",
|
|
465
936
|
text: output,
|
|
@@ -535,7 +1006,7 @@ async function formatConfigureGuidance(host, target, setupSecretIntake = null, l
|
|
|
535
1006
|
pending_write: telegramSecret !== undefined,
|
|
536
1007
|
},
|
|
537
1008
|
}), eventContext);
|
|
538
|
-
return formatTelegramConfigureGuidance(status, suppliedTelegramToken, telegramSecret !== undefined
|
|
1009
|
+
return formatTelegramConfigureGuidance(status, suppliedTelegramToken, telegramSecret !== undefined);
|
|
539
1010
|
}
|
|
540
1011
|
if (target === "gateway") {
|
|
541
1012
|
const discordSecret = setupSecretIntake?.suppliedSecrets.find((secret) => secret.kind === "discord_bot_token");
|
|
@@ -571,142 +1042,6 @@ async function formatConfigureGuidance(host, target, setupSecretIntake = null, l
|
|
|
571
1042
|
"Use `pulseed setup` for the main wizard, `pulseed gateway setup` for chat channels, or the channel-specific setup command when available.",
|
|
572
1043
|
].join("\n");
|
|
573
1044
|
}
|
|
574
|
-
function formatTelegramConfigProgressDetail(status) {
|
|
575
|
-
if (!status.config.exists)
|
|
576
|
-
return "Config file does not exist yet.";
|
|
577
|
-
if (!status.config.hasBotToken)
|
|
578
|
-
return "Config file exists, but no bot token is configured.";
|
|
579
|
-
if (!status.config.hasHomeChat)
|
|
580
|
-
return "Bot token is configured, but no home chat is set.";
|
|
581
|
-
return "Bot token and home chat are configured.";
|
|
582
|
-
}
|
|
583
|
-
export function formatTelegramConfigureGuidance(status, suppliedTelegramToken, pendingActionCreated, languageHint) {
|
|
584
|
-
const guidance = buildTelegramSetupGuidanceData(status, suppliedTelegramToken, pendingActionCreated);
|
|
585
|
-
const renderJa = shouldRenderJapanese(languageHint);
|
|
586
|
-
const lines = [
|
|
587
|
-
"Telegram gateway status",
|
|
588
|
-
"",
|
|
589
|
-
guidance.daemon.running
|
|
590
|
-
? renderJa
|
|
591
|
-
? `- Daemon: port ${guidance.daemon.port} で起動中です。gateway load state は ${guidance.gateway.load_state} です。`
|
|
592
|
-
: `- Daemon: running on port ${guidance.daemon.port}; gateway load state is ${guidance.gateway.load_state}.`
|
|
593
|
-
: renderJa
|
|
594
|
-
? `- Daemon: port ${guidance.daemon.port} で応答していません。`
|
|
595
|
-
: `- Daemon: not responding on port ${guidance.daemon.port}.`,
|
|
596
|
-
];
|
|
597
|
-
if (guidance.state === "unconfigured") {
|
|
598
|
-
lines.push(renderJa ? "- Telegram: まだ設定されていません。" : "- Telegram: not configured.", "", "Recommended command path:", "```sh", ...guidance.command_tokens.recommended_path, "```", "", renderJa
|
|
599
|
-
? "@BotFather で bot を作成または開き、`pulseed telegram setup` で token を入力してください。"
|
|
600
|
-
: "Create or open a bot with @BotFather, then enter the token in `pulseed telegram setup`.");
|
|
601
|
-
}
|
|
602
|
-
else if (guidance.state === "partially_configured") {
|
|
603
|
-
lines.push(renderJa
|
|
604
|
-
? "- Telegram config: bot token は設定済みですが、home chat が未設定です。"
|
|
605
|
-
: "- Telegram config: bot token is configured, but no home chat is set.", renderJa
|
|
606
|
-
? `- Gateway loaded in daemon: ${guidance.gateway.load_state} です。`
|
|
607
|
-
: "- Gateway loaded in daemon: unknown from chat status.", "", "Next step:", renderJa
|
|
608
|
-
? `- PulSeed の返信先にしたい Telegram chat から bot に \`${guidance.command_tokens.set_home}\` を送ってください。`
|
|
609
|
-
: `- Send \`${guidance.command_tokens.set_home}\` to the Telegram bot from the chat that should receive PulSeed replies.`, renderJa
|
|
610
|
-
? "- その後 `pulseed daemon status` で gateway を確認してください。"
|
|
611
|
-
: "- Then run `pulseed daemon status` to verify the gateway.");
|
|
612
|
-
}
|
|
613
|
-
else {
|
|
614
|
-
lines.push(renderJa ? "- Telegram config: 設定済みです。" : "- Telegram config: configured.", guidance.config.has_home_chat
|
|
615
|
-
? renderJa ? "- Home chat: 設定済みです。" : "- Home chat: configured."
|
|
616
|
-
: renderJa
|
|
617
|
-
? `- Home chat: 未設定です。この bot が特定 chat に返信する必要がある場合は \`${guidance.command_tokens.set_home}\` を送ってください。`
|
|
618
|
-
: `- Home chat: not set; send \`${guidance.command_tokens.set_home}\` if this bot should reply into a specific chat.`, renderJa
|
|
619
|
-
? `- Gateway loaded in daemon: ${guidance.gateway.load_state} です。`
|
|
620
|
-
: `- Gateway loaded in daemon: ${guidance.gateway.load_state}.`, "", "Verification:", renderJa ? "- Telegram bot にメッセージを送ってください。" : "- Send a message to the Telegram bot.", renderJa ? "- 配信されない場合は `pulseed daemon status` を実行してください。" : "- Run `pulseed daemon status` if delivery does not work.");
|
|
621
|
-
}
|
|
622
|
-
lines.push("", guidance.pending_write.exists
|
|
623
|
-
? guidance.pending_write.replaces_existing_secret
|
|
624
|
-
? renderJa
|
|
625
|
-
? `この turn で Telegram bot token を受け取り、chat history と activity には redacted のまま保持しました。confirm すると既存の configured token を置き換えます。approval-gated config write を依頼するには \`${guidance.command_tokens.confirm_write}\` または自然文で承認してください。`
|
|
626
|
-
: `I received a Telegram bot token in this turn and kept it redacted from chat history and activity. Confirming will replace the existing configured token. Reply \`${guidance.command_tokens.confirm_write}\` or approve in natural language to request an approval-gated config write.`
|
|
627
|
-
: renderJa
|
|
628
|
-
? `この turn で Telegram bot token を受け取り、chat history と activity には redacted のまま保持しました。approval-gated config write を依頼するには \`${guidance.command_tokens.confirm_write}\` または自然文で承認してください。`
|
|
629
|
-
: `I received a Telegram bot token in this turn and kept it redacted from chat history and activity. Reply \`${guidance.command_tokens.confirm_write}\` or approve in natural language to request an approval-gated config write.`
|
|
630
|
-
: suppliedTelegramToken
|
|
631
|
-
? renderJa
|
|
632
|
-
? "この turn で Telegram bot token を受け取り、chat history と activity には redacted のまま保持しましたが、setup action は準備できませんでした。"
|
|
633
|
-
: "I received a Telegram bot token in this turn and kept it redacted from chat history and activity, but no setup action could be prepared."
|
|
634
|
-
: renderJa
|
|
635
|
-
? "chat-assisted setup を使う場合は、ここに token を貼ってください。PulSeed は history から redaction し、config 書き込み前に approval-gated confirmation を準備します。"
|
|
636
|
-
: "If you prefer chat-assisted setup, paste the token here; PulSeed will redact it from history and prepare an approval-gated confirmation before writing config.");
|
|
637
|
-
if (!guidance.daemon.running && guidance.state !== "unconfigured") {
|
|
638
|
-
lines.push("", renderJa
|
|
639
|
-
? "config は daemon を起動または再起動するまで反映されません。"
|
|
640
|
-
: "The config will not take effect until the daemon is started or restarted.");
|
|
641
|
-
}
|
|
642
|
-
else if (guidance.daemon.running && guidance.state !== "unconfigured") {
|
|
643
|
-
lines.push("", renderJa
|
|
644
|
-
? "chat-assisted setup で Telegram config を追加または変更した場合は、承認済み write 後に PulSeed が internal gateway refresh を要求します。"
|
|
645
|
-
: "If Telegram was configured or changed through chat-assisted setup, PulSeed will request an internal gateway refresh after the approved write.", renderJa
|
|
646
|
-
? "PulSeed chat setup 以外で config を変更した場合、配信が最新 gateway config を拾わなければ `pulseed daemon restart` を実行してください。"
|
|
647
|
-
: "For config changes made outside PulSeed chat setup, run `pulseed daemon restart` if delivery does not pick up the updated gateway config.");
|
|
648
|
-
}
|
|
649
|
-
return lines.join("\n");
|
|
650
|
-
}
|
|
651
|
-
export function buildTelegramSetupGuidanceData(status, suppliedTelegramToken, pendingActionCreated) {
|
|
652
|
-
const nextAction = status.state === "unconfigured"
|
|
653
|
-
? {
|
|
654
|
-
kind: "configure_bot_token",
|
|
655
|
-
required: true,
|
|
656
|
-
description: "Configure a Telegram bot token before gateway delivery can work.",
|
|
657
|
-
}
|
|
658
|
-
: !status.config.hasHomeChat
|
|
659
|
-
? {
|
|
660
|
-
kind: "send_sethome",
|
|
661
|
-
required: true,
|
|
662
|
-
description: "Send /sethome from the Telegram chat that should receive PulSeed replies.",
|
|
663
|
-
}
|
|
664
|
-
: {
|
|
665
|
-
kind: "verify_delivery",
|
|
666
|
-
required: false,
|
|
667
|
-
description: "Send a Telegram message and inspect daemon status if delivery fails.",
|
|
668
|
-
};
|
|
669
|
-
return {
|
|
670
|
-
channel: "telegram",
|
|
671
|
-
state: status.state,
|
|
672
|
-
config_path: status.configPath,
|
|
673
|
-
daemon: { running: status.daemon.running, port: status.daemon.port },
|
|
674
|
-
gateway: { load_state: status.gateway.loadState },
|
|
675
|
-
config: {
|
|
676
|
-
exists: status.config.exists,
|
|
677
|
-
has_bot_token: status.config.hasBotToken,
|
|
678
|
-
has_home_chat: status.config.hasHomeChat,
|
|
679
|
-
allow_all: status.config.allowAll,
|
|
680
|
-
allowed_user_count: status.config.allowedUserCount,
|
|
681
|
-
runtime_control_allowed_user_count: status.config.runtimeControlAllowedUserCount,
|
|
682
|
-
identity_key_configured: status.config.identityKeyConfigured,
|
|
683
|
-
},
|
|
684
|
-
next_action: nextAction,
|
|
685
|
-
command_tokens: {
|
|
686
|
-
recommended_path: ["pulseed telegram setup", "pulseed gateway setup", "pulseed daemon start", "pulseed daemon status"],
|
|
687
|
-
confirm_write: SETUP_WRITE_CONFIRM_COMMAND,
|
|
688
|
-
set_home: "/sethome",
|
|
689
|
-
},
|
|
690
|
-
safety: {
|
|
691
|
-
writes_config: false,
|
|
692
|
-
writes_secret: false,
|
|
693
|
-
requires_approval_before_write: true,
|
|
694
|
-
shell_fallback_allowed: false,
|
|
695
|
-
access_closed_by_default: !status.config.allowAll && status.config.allowedUserCount === 0,
|
|
696
|
-
},
|
|
697
|
-
pending_write: {
|
|
698
|
-
exists: pendingActionCreated,
|
|
699
|
-
state: pendingActionCreated ? "confirm_write" : "none",
|
|
700
|
-
replaces_existing_secret: pendingActionCreated && status.config.hasBotToken,
|
|
701
|
-
secret_kind: pendingActionCreated ? "telegram_bot_token" : null,
|
|
702
|
-
},
|
|
703
|
-
redaction: {
|
|
704
|
-
raw_secret_in_summary: false,
|
|
705
|
-
raw_secret_in_data: false,
|
|
706
|
-
redaction_marker_present: suppliedTelegramToken,
|
|
707
|
-
},
|
|
708
|
-
};
|
|
709
|
-
}
|
|
710
1045
|
async function dispatchToolCall(host, toolCallId, name, args, context, eventContext) {
|
|
711
1046
|
if (!host.deps.registry) {
|
|
712
1047
|
host.eventBridge.emitActivity("tool", formatToolActivity("Failed", name, "No tool registry configured"), eventContext, toolCallId);
|
|
@@ -803,7 +1138,7 @@ async function dispatchToolCall(host, toolCallId, name, args, context, eventCont
|
|
|
803
1138
|
...(activityCategory ? { activityCategory } : {}),
|
|
804
1139
|
...host.eventBridge.eventBase(eventContext),
|
|
805
1140
|
});
|
|
806
|
-
|
|
1141
|
+
throw new ToolLoopTerminalError("approval_denied", `Tool ${name} not approved: ${permResult.reason}`);
|
|
807
1142
|
}
|
|
808
1143
|
}
|
|
809
1144
|
host.eventBridge.emitEvent({
|
|
@@ -840,10 +1175,21 @@ async function dispatchToolCall(host, toolCallId, name, args, context, eventCont
|
|
|
840
1175
|
...(activityCategory ? { activityCategory } : {}),
|
|
841
1176
|
...host.eventBridge.eventBase(eventContext),
|
|
842
1177
|
});
|
|
1178
|
+
const terminalToolFailure = terminalToolFailureFromResult(name, tool, result);
|
|
1179
|
+
if (terminalToolFailure) {
|
|
1180
|
+
throw terminalToolFailure;
|
|
1181
|
+
}
|
|
843
1182
|
return result.data != null ? JSON.stringify(result.data) : (result.summary ?? "(no result)");
|
|
844
1183
|
}
|
|
845
1184
|
catch (err) {
|
|
1185
|
+
if (err instanceof ToolLoopTerminalError) {
|
|
1186
|
+
throw err;
|
|
1187
|
+
}
|
|
846
1188
|
const message = err instanceof Error ? err.message : String(err);
|
|
1189
|
+
const terminalInterruption = terminalToolInterruptionFromMessage(message);
|
|
1190
|
+
if (terminalInterruption) {
|
|
1191
|
+
throw terminalInterruption;
|
|
1192
|
+
}
|
|
847
1193
|
const durationMs = Date.now() - startTime;
|
|
848
1194
|
host.deps.onToolEnd?.(name, { success: false, summary: message, durationMs });
|
|
849
1195
|
host.eventBridge.emitActivity("tool", formatToolActivity("Failed", name, message), eventContext, toolCallId);
|
|
@@ -860,27 +1206,69 @@ async function dispatchToolCall(host, toolCallId, name, args, context, eventCont
|
|
|
860
1206
|
return JSON.stringify({ error: `Tool ${name} failed: ${message}` });
|
|
861
1207
|
}
|
|
862
1208
|
}
|
|
863
|
-
|
|
1209
|
+
function terminalToolInterruptionFromMessage(message) {
|
|
1210
|
+
const normalized = message.toLowerCase();
|
|
1211
|
+
if (normalized.includes("abort") || normalized.includes("cancel")) {
|
|
1212
|
+
return new ToolLoopTerminalError("tool_call_aborted", message);
|
|
1213
|
+
}
|
|
1214
|
+
if (normalized.includes("timeout") || normalized.includes("timed out")) {
|
|
1215
|
+
return new ToolLoopTerminalError("tool_call_timeout", message);
|
|
1216
|
+
}
|
|
1217
|
+
return null;
|
|
1218
|
+
}
|
|
1219
|
+
function terminalToolFailureFromResult(name, tool, result) {
|
|
1220
|
+
if (result.success)
|
|
1221
|
+
return null;
|
|
1222
|
+
const reason = result.execution?.reason;
|
|
1223
|
+
if (reason === "approval_denied") {
|
|
1224
|
+
return new ToolLoopTerminalError("approval_denied", result.execution?.message ?? result.error ?? result.summary ?? `Tool ${name} was denied by approval policy.`);
|
|
1225
|
+
}
|
|
1226
|
+
if (reason === "policy_blocked"
|
|
1227
|
+
&& (tool.metadata.permissionLevel !== "read_only" || tool.metadata.isDestructive)) {
|
|
1228
|
+
return new ToolLoopTerminalError("policy_blocked", result.execution?.message ?? result.error ?? result.summary ?? `Tool ${name} was blocked by policy.`);
|
|
1229
|
+
}
|
|
1230
|
+
return null;
|
|
1231
|
+
}
|
|
1232
|
+
async function sendLLMMessage(host, llmClient, messages, options, assistantBuffer, eventContext, behavior = {}) {
|
|
1233
|
+
const emitAssistantDeltas = behavior.emitAssistantDeltas ?? true;
|
|
864
1234
|
let streamed = false;
|
|
1235
|
+
let emitted = false;
|
|
1236
|
+
let heldDelta = "";
|
|
1237
|
+
const pushDeltaIfAllowed = (delta) => {
|
|
1238
|
+
if (!emitAssistantDeltas)
|
|
1239
|
+
return;
|
|
1240
|
+
const nextDelta = `${heldDelta}${delta}`;
|
|
1241
|
+
const candidate = `${assistantBuffer.text}${nextDelta}`;
|
|
1242
|
+
if (behavior.holdAssistantDelta?.(candidate)) {
|
|
1243
|
+
heldDelta = nextDelta;
|
|
1244
|
+
return;
|
|
1245
|
+
}
|
|
1246
|
+
heldDelta = "";
|
|
1247
|
+
emitted = true;
|
|
1248
|
+
host.eventBridge.pushAssistantDelta(nextDelta, assistantBuffer, eventContext);
|
|
1249
|
+
};
|
|
865
1250
|
if (llmClient.sendMessageStream) {
|
|
866
1251
|
const response = await llmClient.sendMessageStream(messages, options, {
|
|
867
1252
|
onTextDelta: (delta) => {
|
|
868
1253
|
streamed = true;
|
|
869
|
-
|
|
1254
|
+
pushDeltaIfAllowed(delta);
|
|
870
1255
|
},
|
|
871
1256
|
});
|
|
872
|
-
if (!streamed && response.content) {
|
|
1257
|
+
if (emitAssistantDeltas && !streamed && response.content) {
|
|
1258
|
+
pushDeltaIfAllowed(response.content);
|
|
1259
|
+
}
|
|
1260
|
+
if (emitAssistantDeltas && !emitted && response.content && !behavior.holdAssistantDelta?.(response.content)) {
|
|
873
1261
|
host.eventBridge.pushAssistantDelta(response.content, assistantBuffer, eventContext);
|
|
874
1262
|
}
|
|
875
1263
|
return response;
|
|
876
1264
|
}
|
|
877
1265
|
const response = await llmClient.sendMessage(messages, options);
|
|
878
|
-
if (response.content) {
|
|
879
|
-
|
|
1266
|
+
if (emitAssistantDeltas && response.content) {
|
|
1267
|
+
pushDeltaIfAllowed(response.content);
|
|
880
1268
|
}
|
|
881
1269
|
return response;
|
|
882
1270
|
}
|
|
883
|
-
async function buildToolCallContext(host, goalId = host.deps.goalId, runtimeControlContext, start, turnContext) {
|
|
1271
|
+
async function buildToolCallContext(host, goalId = host.deps.goalId, runtimeControlContext, start, turnContext, execution) {
|
|
884
1272
|
const executionPolicy = turnContext?.hostOnly.execution.executionPolicy ?? await host.getSessionExecutionPolicy();
|
|
885
1273
|
const runtimeContext = turnContext?.hostOnly.runtime.runtimeControlContext ?? runtimeControlContext;
|
|
886
1274
|
return {
|
|
@@ -890,6 +1278,20 @@ async function buildToolCallContext(host, goalId = host.deps.goalId, runtimeCont
|
|
|
890
1278
|
preApproved: false,
|
|
891
1279
|
approvalFn: agentLoopApprovalFn(host, runtimeContext),
|
|
892
1280
|
executionPolicy,
|
|
1281
|
+
...(host.deps.permissionGrantContext?.sessionId
|
|
1282
|
+
? { sessionId: host.deps.permissionGrantContext.sessionId }
|
|
1283
|
+
: host.getConversationSessionId()
|
|
1284
|
+
? { sessionId: host.getConversationSessionId() }
|
|
1285
|
+
: {}),
|
|
1286
|
+
...(turnContext?.modelVisible.turn.runId ? { runId: turnContext.modelVisible.turn.runId } : {}),
|
|
1287
|
+
...(turnContext?.modelVisible.turn.turnId ? { turnId: turnContext.modelVisible.turn.turnId } : {}),
|
|
1288
|
+
...(host.deps.permissionGrantContext?.projectId ? { projectId: host.deps.permissionGrantContext.projectId } : {}),
|
|
1289
|
+
...(host.deps.permissionGrantStore ? { permissionGrantStore: host.deps.permissionGrantStore } : {}),
|
|
1290
|
+
...(host.deps.permissionWaitPlanStore ? { permissionWaitPlanStore: host.deps.permissionWaitPlanStore } : {}),
|
|
1291
|
+
...(host.deps.capabilityVerificationStore ? { capabilityVerificationStore: host.deps.capabilityVerificationStore } : {}),
|
|
1292
|
+
...(host.deps.capabilityExecutionResolver ? { capabilityExecutionResolver: host.deps.capabilityExecutionResolver } : {}),
|
|
1293
|
+
...(execution?.abortSignal ? { abortSignal: execution.abortSignal } : {}),
|
|
1294
|
+
...(execution?.timeoutMs !== undefined ? { timeoutMs: execution.timeoutMs } : {}),
|
|
893
1295
|
...(host.getConversationSessionId() ? { conversationSessionId: host.getConversationSessionId() } : {}),
|
|
894
1296
|
providerConfigBaseDir: host.getProviderConfigBaseDir(),
|
|
895
1297
|
setupSecretIntake: host.getSetupSecretIntake(),
|
|
@@ -923,32 +1325,42 @@ function agentLoopApprovalFn(host, runtimeControlContext) {
|
|
|
923
1325
|
};
|
|
924
1326
|
}
|
|
925
1327
|
async function loadResumableAgentLoopState(host) {
|
|
926
|
-
|
|
927
|
-
|
|
928
|
-
|
|
929
|
-
|
|
930
|
-
|
|
931
|
-
|
|
932
|
-
|
|
933
|
-
|
|
934
|
-
|
|
935
|
-
|
|
936
|
-
|
|
937
|
-
|
|
1328
|
+
const sessionId = host.getNativeAgentLoopSessionId();
|
|
1329
|
+
if (!sessionId) {
|
|
1330
|
+
return {
|
|
1331
|
+
kind: "blocked",
|
|
1332
|
+
code: "resume_state_missing",
|
|
1333
|
+
message: formatMissingResumableChatStateMessage(),
|
|
1334
|
+
};
|
|
1335
|
+
}
|
|
1336
|
+
const state = await new AgentLoopSessionStateCatalog(host.getProviderConfigBaseDir()).load(sessionId);
|
|
1337
|
+
if (!state) {
|
|
1338
|
+
return {
|
|
1339
|
+
kind: "blocked",
|
|
1340
|
+
code: "resume_state_missing",
|
|
1341
|
+
message: formatMissingResumableChatStateMessage(),
|
|
1342
|
+
};
|
|
1343
|
+
}
|
|
1344
|
+
if (state.status !== "running") {
|
|
1345
|
+
return {
|
|
1346
|
+
kind: "blocked",
|
|
1347
|
+
code: "resume_state_not_resumable",
|
|
1348
|
+
message: formatNonResumableAgentLoopStateMessage(state.status),
|
|
1349
|
+
};
|
|
1350
|
+
}
|
|
1351
|
+
return { kind: "loaded", state };
|
|
938
1352
|
}
|
|
939
|
-
function
|
|
940
|
-
|
|
941
|
-
|
|
942
|
-
|
|
943
|
-
|
|
944
|
-
|
|
945
|
-
|
|
946
|
-
|
|
947
|
-
|
|
948
|
-
|
|
949
|
-
|
|
950
|
-
&& Array.isArray(candidate["calledTools"])
|
|
951
|
-
&& typeof candidate["status"] === "string";
|
|
1353
|
+
function formatMissingResumableChatStateMessage() {
|
|
1354
|
+
return "I could not find a chat that can safely continue.";
|
|
1355
|
+
}
|
|
1356
|
+
function formatNonResumableAgentLoopStateMessage(status) {
|
|
1357
|
+
if (status === "failed") {
|
|
1358
|
+
return "The saved chat work stopped before it could safely continue; inspect what was running or start a new attempt.";
|
|
1359
|
+
}
|
|
1360
|
+
if (status === "completed") {
|
|
1361
|
+
return "The saved chat work already completed; inspect what finished or start a new attempt.";
|
|
1362
|
+
}
|
|
1363
|
+
return "The saved chat work is not in a state PulSeed can safely continue; inspect what was running or start a new attempt.";
|
|
952
1364
|
}
|
|
953
1365
|
function activateToolSearchResults(activatedTools, toolResult) {
|
|
954
1366
|
try {
|
|
@@ -966,38 +1378,15 @@ function activateToolSearchResults(activatedTools, toolResult) {
|
|
|
966
1378
|
// Non-JSON result or unexpected shape — ignore
|
|
967
1379
|
}
|
|
968
1380
|
}
|
|
969
|
-
function
|
|
970
|
-
return { inputTokens: 0, outputTokens: 0, totalTokens: 0 };
|
|
971
|
-
}
|
|
972
|
-
function normalizeUsageCounter(usage) {
|
|
973
|
-
const inputTokens = Number.isFinite(usage.inputTokens) ? Math.max(0, Math.floor(usage.inputTokens)) : 0;
|
|
974
|
-
const outputTokens = Number.isFinite(usage.outputTokens) ? Math.max(0, Math.floor(usage.outputTokens)) : 0;
|
|
975
|
-
const totalTokens = Number.isFinite(usage.totalTokens)
|
|
976
|
-
? Math.max(0, Math.floor(usage.totalTokens))
|
|
977
|
-
: inputTokens + outputTokens;
|
|
978
|
-
return { inputTokens, outputTokens, totalTokens };
|
|
979
|
-
}
|
|
980
|
-
function usageFromLLMResponse(response) {
|
|
981
|
-
const inputTokens = response.usage?.input_tokens ?? 0;
|
|
982
|
-
const outputTokens = response.usage?.output_tokens ?? 0;
|
|
983
|
-
return {
|
|
984
|
-
inputTokens,
|
|
985
|
-
outputTokens,
|
|
986
|
-
totalTokens: inputTokens + outputTokens,
|
|
987
|
-
};
|
|
988
|
-
}
|
|
989
|
-
function addUsageCounter(target, delta) {
|
|
990
|
-
const normalizedDelta = normalizeUsageCounter(delta);
|
|
991
|
-
target.inputTokens += normalizedDelta.inputTokens;
|
|
992
|
-
target.outputTokens += normalizedDelta.outputTokens;
|
|
993
|
-
target.totalTokens += normalizedDelta.totalTokens;
|
|
994
|
-
}
|
|
995
|
-
function hasUsage(usage) {
|
|
996
|
-
return usage.totalTokens > 0 || usage.inputTokens > 0 || usage.outputTokens > 0;
|
|
997
|
-
}
|
|
998
|
-
export async function resolveSessionExecutionPolicy(currentPolicy, sessionCwd) {
|
|
1381
|
+
export async function resolveSessionExecutionPolicy(currentPolicy, sessionCwd, defaultExecutionSecurity) {
|
|
999
1382
|
if (currentPolicy)
|
|
1000
1383
|
return currentPolicy;
|
|
1384
|
+
if (defaultExecutionSecurity) {
|
|
1385
|
+
return resolveExecutionPolicy({
|
|
1386
|
+
workspaceRoot: sessionCwd ?? process.cwd(),
|
|
1387
|
+
security: defaultExecutionSecurity,
|
|
1388
|
+
});
|
|
1389
|
+
}
|
|
1001
1390
|
const config = await loadProviderConfig({ saveMigration: false });
|
|
1002
1391
|
return resolveExecutionPolicy({
|
|
1003
1392
|
workspaceRoot: sessionCwd ?? process.cwd(),
|