pulseed 0.5.3 → 0.6.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +13 -9
- package/dist/adapters/datasources/artifact-metric-datasource.d.ts +18 -0
- package/dist/adapters/datasources/artifact-metric-datasource.d.ts.map +1 -0
- package/dist/adapters/datasources/artifact-metric-datasource.js +592 -0
- package/dist/adapters/datasources/artifact-metric-datasource.js.map +1 -0
- package/dist/adapters/types/mcp.d.ts +6 -6
- package/dist/base/state/state-manager-goal-state.d.ts +40 -0
- package/dist/base/state/state-manager-goal-state.d.ts.map +1 -0
- package/dist/base/state/state-manager-goal-state.js +235 -0
- package/dist/base/state/state-manager-goal-state.js.map +1 -0
- package/dist/base/state/state-manager.d.ts +0 -5
- package/dist/base/state/state-manager.d.ts.map +1 -1
- package/dist/base/state/state-manager.js +27 -273
- package/dist/base/state/state-manager.js.map +1 -1
- package/dist/base/types/goal-activation.d.ts +37 -0
- package/dist/base/types/goal-activation.d.ts.map +1 -0
- package/dist/base/types/goal-activation.js +13 -0
- package/dist/base/types/goal-activation.js.map +1 -0
- package/dist/index.d.ts +6 -0
- package/dist/index.d.ts.map +1 -1
- package/dist/index.js +4 -0
- package/dist/index.js.map +1 -1
- package/dist/interface/chat/chat-history.d.ts +129 -0
- package/dist/interface/chat/chat-history.d.ts.map +1 -1
- package/dist/interface/chat/chat-history.js +135 -0
- package/dist/interface/chat/chat-history.js.map +1 -1
- package/dist/interface/chat/chat-runner-command-helpers.d.ts +50 -0
- package/dist/interface/chat/chat-runner-command-helpers.d.ts.map +1 -0
- package/dist/interface/chat/chat-runner-command-helpers.js +189 -0
- package/dist/interface/chat/chat-runner-command-helpers.js.map +1 -0
- package/dist/interface/chat/chat-runner-commands.d.ts +82 -0
- package/dist/interface/chat/chat-runner-commands.d.ts.map +1 -0
- package/dist/interface/chat/chat-runner-commands.js +906 -0
- package/dist/interface/chat/chat-runner-commands.js.map +1 -0
- package/dist/interface/chat/chat-runner-event-bridge.d.ts +60 -0
- package/dist/interface/chat/chat-runner-event-bridge.d.ts.map +1 -0
- package/dist/interface/chat/chat-runner-event-bridge.js +377 -0
- package/dist/interface/chat/chat-runner-event-bridge.js.map +1 -0
- package/dist/interface/chat/chat-runner-routes.d.ts +67 -0
- package/dist/interface/chat/chat-runner-routes.d.ts.map +1 -0
- package/dist/interface/chat/chat-runner-routes.js +610 -0
- package/dist/interface/chat/chat-runner-routes.js.map +1 -0
- package/dist/interface/chat/chat-runner-runtime.d.ts +37 -0
- package/dist/interface/chat/chat-runner-runtime.d.ts.map +1 -0
- package/dist/interface/chat/chat-runner-runtime.js +236 -0
- package/dist/interface/chat/chat-runner-runtime.js.map +1 -0
- package/dist/interface/chat/chat-runner-state.d.ts +20 -0
- package/dist/interface/chat/chat-runner-state.d.ts.map +1 -0
- package/dist/interface/chat/chat-runner-state.js +157 -0
- package/dist/interface/chat/chat-runner-state.js.map +1 -0
- package/dist/interface/chat/chat-runner-support.d.ts +39 -0
- package/dist/interface/chat/chat-runner-support.d.ts.map +1 -0
- package/dist/interface/chat/chat-runner-support.js +170 -0
- package/dist/interface/chat/chat-runner-support.js.map +1 -0
- package/dist/interface/chat/chat-runner.d.ts +10 -153
- package/dist/interface/chat/chat-runner.d.ts.map +1 -1
- package/dist/interface/chat/chat-runner.js +330 -2643
- package/dist/interface/chat/chat-runner.js.map +1 -1
- package/dist/interface/chat/chat-session-store.d.ts +32 -0
- package/dist/interface/chat/chat-session-store.d.ts.map +1 -1
- package/dist/interface/chat/chat-session-store.js +100 -10
- package/dist/interface/chat/chat-session-store.js.map +1 -1
- package/dist/interface/chat/cross-platform-session.d.ts.map +1 -1
- package/dist/interface/chat/cross-platform-session.js +15 -6
- 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 +61 -0
- package/dist/interface/chat/event-subscriber.js.map +1 -1
- package/dist/interface/chat/failure-recovery.d.ts +43 -1
- package/dist/interface/chat/failure-recovery.d.ts.map +1 -1
- package/dist/interface/chat/failure-recovery.js +259 -89
- package/dist/interface/chat/failure-recovery.js.map +1 -1
- package/dist/interface/chat/ingress-router.d.ts +2 -26
- package/dist/interface/chat/ingress-router.d.ts.map +1 -1
- package/dist/interface/chat/ingress-router.js +14 -88
- package/dist/interface/chat/ingress-router.js.map +1 -1
- package/dist/interface/chat/tend-command.d.ts.map +1 -1
- package/dist/interface/chat/tend-command.js +3 -0
- package/dist/interface/chat/tend-command.js.map +1 -1
- package/dist/interface/cli/cli-command-registry.d.ts.map +1 -1
- package/dist/interface/cli/cli-command-registry.js +19 -3
- package/dist/interface/cli/cli-command-registry.js.map +1 -1
- package/dist/interface/cli/commands/daemon-shared.d.ts +33 -0
- package/dist/interface/cli/commands/daemon-shared.d.ts.map +1 -0
- package/dist/interface/cli/commands/daemon-shared.js +152 -0
- package/dist/interface/cli/commands/daemon-shared.js.map +1 -0
- package/dist/interface/cli/commands/daemon.d.ts +2 -2
- package/dist/interface/cli/commands/daemon.d.ts.map +1 -1
- package/dist/interface/cli/commands/daemon.js +62 -127
- package/dist/interface/cli/commands/daemon.js.map +1 -1
- package/dist/interface/cli/commands/goal-read.d.ts.map +1 -1
- package/dist/interface/cli/commands/goal-read.js +10 -3
- package/dist/interface/cli/commands/goal-read.js.map +1 -1
- package/dist/interface/cli/commands/notify.d.ts.map +1 -1
- package/dist/interface/cli/commands/notify.js +7 -1
- package/dist/interface/cli/commands/notify.js.map +1 -1
- package/dist/interface/cli/commands/run.d.ts.map +1 -1
- package/dist/interface/cli/commands/run.js +29 -0
- package/dist/interface/cli/commands/run.js.map +1 -1
- package/dist/interface/cli/commands/runtime.d.ts +1 -1
- package/dist/interface/cli/commands/runtime.d.ts.map +1 -1
- package/dist/interface/cli/commands/runtime.js +407 -2
- package/dist/interface/cli/commands/runtime.js.map +1 -1
- package/dist/interface/cli/commands/schedule/history.d.ts.map +1 -1
- package/dist/interface/cli/commands/schedule/history.js +5 -1
- package/dist/interface/cli/commands/schedule/history.js.map +1 -1
- package/dist/interface/cli/commands/schedule.js +34 -4
- package/dist/interface/cli/commands/schedule.js.map +1 -1
- package/dist/interface/cli/data-source-bootstrap.d.ts.map +1 -1
- package/dist/interface/cli/data-source-bootstrap.js +25 -12
- package/dist/interface/cli/data-source-bootstrap.js.map +1 -1
- package/dist/interface/cli/setup.d.ts.map +1 -1
- package/dist/interface/cli/setup.js +14 -0
- package/dist/interface/cli/setup.js.map +1 -1
- package/dist/interface/cli/utils/loop-runner.d.ts.map +1 -1
- package/dist/interface/cli/utils/loop-runner.js +2 -1
- 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 +8 -1
- package/dist/interface/cli/utils.js.map +1 -1
- package/dist/interface/tui/app.d.ts +4 -1
- package/dist/interface/tui/app.d.ts.map +1 -1
- package/dist/interface/tui/app.js +282 -11
- package/dist/interface/tui/app.js.map +1 -1
- package/dist/interface/tui/chat/suggestions.d.ts.map +1 -1
- package/dist/interface/tui/chat/suggestions.js +118 -4
- package/dist/interface/tui/chat/suggestions.js.map +1 -1
- package/dist/interface/tui/chat-surface.d.ts +2 -0
- package/dist/interface/tui/chat-surface.d.ts.map +1 -1
- package/dist/interface/tui/chat-surface.js +3 -0
- package/dist/interface/tui/chat-surface.js.map +1 -1
- package/dist/interface/tui/dashboard.d.ts +37 -1
- package/dist/interface/tui/dashboard.d.ts.map +1 -1
- package/dist/interface/tui/dashboard.js +264 -1
- package/dist/interface/tui/dashboard.js.map +1 -1
- package/dist/interface/tui/entry-approval.d.ts +8 -0
- package/dist/interface/tui/entry-approval.d.ts.map +1 -0
- package/dist/interface/tui/entry-approval.js +59 -0
- package/dist/interface/tui/entry-approval.js.map +1 -0
- package/dist/interface/tui/entry-daemon.d.ts +12 -0
- package/dist/interface/tui/entry-daemon.d.ts.map +1 -0
- package/dist/interface/tui/entry-daemon.js +74 -0
- package/dist/interface/tui/entry-daemon.js.map +1 -0
- package/dist/interface/tui/entry-deps.d.ts +24 -0
- package/dist/interface/tui/entry-deps.d.ts.map +1 -0
- package/dist/interface/tui/entry-deps.js +427 -0
- package/dist/interface/tui/entry-deps.js.map +1 -0
- package/dist/interface/tui/entry.d.ts +2 -4
- package/dist/interface/tui/entry.d.ts.map +1 -1
- package/dist/interface/tui/entry.js +11 -556
- package/dist/interface/tui/entry.js.map +1 -1
- package/dist/interface/tui/fullscreen-chat-render.d.ts +127 -0
- package/dist/interface/tui/fullscreen-chat-render.d.ts.map +1 -0
- package/dist/interface/tui/fullscreen-chat-render.js +667 -0
- package/dist/interface/tui/fullscreen-chat-render.js.map +1 -0
- package/dist/interface/tui/fullscreen-chat.d.ts +2 -111
- package/dist/interface/tui/fullscreen-chat.d.ts.map +1 -1
- package/dist/interface/tui/fullscreen-chat.js +4 -663
- 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 +8 -3
- package/dist/interface/tui/intent-recognizer.d.ts.map +1 -1
- package/dist/interface/tui/intent-recognizer.js +74 -68
- package/dist/interface/tui/intent-recognizer.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 +49 -0
- package/dist/orchestrator/execution/agent-loop/agent-loop-default-profile.js.map +1 -1
- package/dist/orchestrator/execution/agent-loop/agent-loop-tool-router.d.ts.map +1 -1
- package/dist/orchestrator/execution/agent-loop/agent-loop-tool-router.js +2 -1
- package/dist/orchestrator/execution/agent-loop/agent-loop-tool-router.js.map +1 -1
- package/dist/orchestrator/execution/agent-loop/agent-loop-tool-runtime.d.ts +2 -0
- package/dist/orchestrator/execution/agent-loop/agent-loop-tool-runtime.d.ts.map +1 -1
- package/dist/orchestrator/execution/agent-loop/agent-loop-tool-runtime.js +31 -0
- package/dist/orchestrator/execution/agent-loop/agent-loop-tool-runtime.js.map +1 -1
- package/dist/orchestrator/execution/agent-loop/agent-loop-turn-context.d.ts +1 -0
- package/dist/orchestrator/execution/agent-loop/agent-loop-turn-context.d.ts.map +1 -1
- package/dist/orchestrator/execution/agent-loop/agent-loop-turn-context.js.map +1 -1
- package/dist/orchestrator/execution/agent-loop/bounded-agent-loop-runner.d.ts +1 -0
- 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 +36 -2
- package/dist/orchestrator/execution/agent-loop/bounded-agent-loop-runner.js.map +1 -1
- package/dist/orchestrator/execution/agent-loop/chat-agent-loop-runner.d.ts +1 -1
- 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 +2 -1
- package/dist/orchestrator/execution/agent-loop/chat-agent-loop-runner.js.map +1 -1
- package/dist/orchestrator/execution/agent-loop/core-loop-control-tools.d.ts +19 -0
- package/dist/orchestrator/execution/agent-loop/core-loop-control-tools.d.ts.map +1 -1
- package/dist/orchestrator/execution/agent-loop/core-loop-control-tools.js +165 -14
- package/dist/orchestrator/execution/agent-loop/core-loop-control-tools.js.map +1 -1
- package/dist/orchestrator/execution/agent-loop/core-phase-runner.d.ts +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 +10 -1
- package/dist/orchestrator/execution/agent-loop/core-phase-runner.js.map +1 -1
- package/dist/orchestrator/execution/agent-loop/kaggle-training-benchmark.d.ts +2 -0
- package/dist/orchestrator/execution/agent-loop/kaggle-training-benchmark.d.ts.map +1 -1
- package/dist/orchestrator/execution/agent-loop/kaggle-training-benchmark.js +4 -0
- package/dist/orchestrator/execution/agent-loop/kaggle-training-benchmark.js.map +1 -1
- package/dist/orchestrator/execution/agent-loop/task-agent-loop-result.d.ts +8 -8
- package/dist/orchestrator/execution/reflection-generator.d.ts +1 -0
- package/dist/orchestrator/execution/reflection-generator.d.ts.map +1 -1
- package/dist/orchestrator/execution/reflection-generator.js +10 -1
- package/dist/orchestrator/execution/reflection-generator.js.map +1 -1
- package/dist/orchestrator/execution/task/task-context-enricher.d.ts +2 -0
- package/dist/orchestrator/execution/task/task-context-enricher.d.ts.map +1 -1
- package/dist/orchestrator/execution/task/task-context-enricher.js +9 -4
- package/dist/orchestrator/execution/task/task-context-enricher.js.map +1 -1
- package/dist/orchestrator/execution/task/task-execution-helpers-internal.d.ts +5 -0
- package/dist/orchestrator/execution/task/task-execution-helpers-internal.d.ts.map +1 -0
- package/dist/orchestrator/execution/task/task-execution-helpers-internal.js +6 -0
- package/dist/orchestrator/execution/task/task-execution-helpers-internal.js.map +1 -0
- package/dist/orchestrator/execution/task/task-generation.d.ts +3 -1
- package/dist/orchestrator/execution/task/task-generation.d.ts.map +1 -1
- package/dist/orchestrator/execution/task/task-generation.js +25 -5
- package/dist/orchestrator/execution/task/task-generation.js.map +1 -1
- package/dist/orchestrator/execution/task/task-lifecycle-runner.d.ts +77 -0
- package/dist/orchestrator/execution/task/task-lifecycle-runner.d.ts.map +1 -0
- package/dist/orchestrator/execution/task/task-lifecycle-runner.js +188 -0
- package/dist/orchestrator/execution/task/task-lifecycle-runner.js.map +1 -0
- package/dist/orchestrator/execution/task/task-lifecycle.d.ts +17 -8
- package/dist/orchestrator/execution/task/task-lifecycle.d.ts.map +1 -1
- package/dist/orchestrator/execution/task/task-lifecycle.js +144 -187
- package/dist/orchestrator/execution/task/task-lifecycle.js.map +1 -1
- package/dist/orchestrator/execution/task/task-prompt-builder.d.ts +2 -1
- package/dist/orchestrator/execution/task/task-prompt-builder.d.ts.map +1 -1
- package/dist/orchestrator/execution/task/task-prompt-builder.js +4 -2
- package/dist/orchestrator/execution/task/task-prompt-builder.js.map +1 -1
- package/dist/orchestrator/execution/task/task-verifier-internal.d.ts +2 -0
- package/dist/orchestrator/execution/task/task-verifier-internal.d.ts.map +1 -0
- package/dist/orchestrator/execution/task/task-verifier-internal.js +2 -0
- package/dist/orchestrator/execution/task/task-verifier-internal.js.map +1 -0
- package/dist/orchestrator/execution/types/pipeline.d.ts +6 -6
- package/dist/orchestrator/goal/goal-negotiator.d.ts.map +1 -1
- package/dist/orchestrator/goal/goal-negotiator.js +23 -3
- package/dist/orchestrator/goal/goal-negotiator.js.map +1 -1
- package/dist/orchestrator/goal/types/goal.d.ts +282 -0
- package/dist/orchestrator/goal/types/goal.d.ts.map +1 -1
- package/dist/orchestrator/goal/types/goal.js +20 -0
- package/dist/orchestrator/goal/types/goal.js.map +1 -1
- package/dist/orchestrator/loop/core-loop/contracts.d.ts +47 -3
- package/dist/orchestrator/loop/core-loop/contracts.d.ts.map +1 -1
- package/dist/orchestrator/loop/core-loop/contracts.js.map +1 -1
- package/dist/orchestrator/loop/core-loop/decision-engine.d.ts.map +1 -1
- package/dist/orchestrator/loop/core-loop/decision-engine.js +4 -0
- package/dist/orchestrator/loop/core-loop/decision-engine.js.map +1 -1
- package/dist/orchestrator/loop/core-loop/dream-review-checkpoint.d.ts +48 -0
- package/dist/orchestrator/loop/core-loop/dream-review-checkpoint.d.ts.map +1 -0
- package/dist/orchestrator/loop/core-loop/dream-review-checkpoint.js +377 -0
- package/dist/orchestrator/loop/core-loop/dream-review-checkpoint.js.map +1 -0
- package/dist/orchestrator/loop/core-loop/evidence-ledger.js +1 -1
- package/dist/orchestrator/loop/core-loop/evidence-ledger.js.map +1 -1
- package/dist/orchestrator/loop/core-loop/iteration-kernel-knowledge.d.ts +7 -0
- package/dist/orchestrator/loop/core-loop/iteration-kernel-knowledge.d.ts.map +1 -0
- package/dist/orchestrator/loop/core-loop/iteration-kernel-knowledge.js +43 -0
- package/dist/orchestrator/loop/core-loop/iteration-kernel-knowledge.js.map +1 -0
- package/dist/orchestrator/loop/core-loop/iteration-kernel-wait.d.ts +14 -0
- package/dist/orchestrator/loop/core-loop/iteration-kernel-wait.d.ts.map +1 -0
- package/dist/orchestrator/loop/core-loop/iteration-kernel-wait.js +41 -0
- package/dist/orchestrator/loop/core-loop/iteration-kernel-wait.js.map +1 -0
- package/dist/orchestrator/loop/core-loop/iteration-kernel.d.ts +4 -2
- package/dist/orchestrator/loop/core-loop/iteration-kernel.d.ts.map +1 -1
- package/dist/orchestrator/loop/core-loop/iteration-kernel.js +507 -87
- package/dist/orchestrator/loop/core-loop/iteration-kernel.js.map +1 -1
- package/dist/orchestrator/loop/core-loop/phase-policy.d.ts.map +1 -1
- package/dist/orchestrator/loop/core-loop/phase-policy.js +40 -5
- package/dist/orchestrator/loop/core-loop/phase-policy.js.map +1 -1
- package/dist/orchestrator/loop/core-loop/phase-runtime.d.ts +2 -0
- package/dist/orchestrator/loop/core-loop/phase-runtime.d.ts.map +1 -1
- package/dist/orchestrator/loop/core-loop/phase-runtime.js +43 -2
- package/dist/orchestrator/loop/core-loop/phase-runtime.js.map +1 -1
- package/dist/orchestrator/loop/core-loop/phase-specs.d.ts +969 -2
- package/dist/orchestrator/loop/core-loop/phase-specs.d.ts.map +1 -1
- package/dist/orchestrator/loop/core-loop/phase-specs.js +198 -0
- package/dist/orchestrator/loop/core-loop/phase-specs.js.map +1 -1
- package/dist/orchestrator/loop/core-loop/public-research.d.ts +32 -0
- package/dist/orchestrator/loop/core-loop/public-research.d.ts.map +1 -0
- package/dist/orchestrator/loop/core-loop/public-research.js +112 -0
- package/dist/orchestrator/loop/core-loop/public-research.js.map +1 -0
- package/dist/orchestrator/loop/core-loop/task-cycle-stall.d.ts +9 -0
- package/dist/orchestrator/loop/core-loop/task-cycle-stall.d.ts.map +1 -0
- package/dist/orchestrator/loop/core-loop/task-cycle-stall.js +433 -0
- package/dist/orchestrator/loop/core-loop/task-cycle-stall.js.map +1 -0
- package/dist/orchestrator/loop/core-loop/task-cycle-wait.d.ts +11 -0
- package/dist/orchestrator/loop/core-loop/task-cycle-wait.d.ts.map +1 -0
- package/dist/orchestrator/loop/core-loop/task-cycle-wait.js +176 -0
- package/dist/orchestrator/loop/core-loop/task-cycle-wait.js.map +1 -0
- package/dist/orchestrator/loop/core-loop/task-cycle.d.ts +7 -15
- package/dist/orchestrator/loop/core-loop/task-cycle.d.ts.map +1 -1
- package/dist/orchestrator/loop/core-loop/task-cycle.js +17 -444
- package/dist/orchestrator/loop/core-loop/task-cycle.js.map +1 -1
- package/dist/orchestrator/loop/core-loop.d.ts +18 -5
- package/dist/orchestrator/loop/core-loop.d.ts.map +1 -1
- package/dist/orchestrator/loop/core-loop.js +287 -17
- package/dist/orchestrator/loop/core-loop.js.map +1 -1
- package/dist/orchestrator/loop/loop-report-helper.d.ts.map +1 -1
- package/dist/orchestrator/loop/loop-report-helper.js +4 -0
- package/dist/orchestrator/loop/loop-report-helper.js.map +1 -1
- package/dist/orchestrator/loop/loop-result-types.d.ts +20 -1
- package/dist/orchestrator/loop/loop-result-types.d.ts.map +1 -1
- package/dist/orchestrator/loop/loop-result-types.js.map +1 -1
- package/dist/orchestrator/loop/post-loop-hooks.d.ts +1 -0
- package/dist/orchestrator/loop/post-loop-hooks.d.ts.map +1 -1
- package/dist/orchestrator/loop/post-loop-hooks.js +34 -1
- package/dist/orchestrator/loop/post-loop-hooks.js.map +1 -1
- package/dist/orchestrator/loop/run-policy.d.ts +10 -0
- package/dist/orchestrator/loop/run-policy.d.ts.map +1 -0
- package/dist/orchestrator/loop/run-policy.js +30 -0
- package/dist/orchestrator/loop/run-policy.js.map +1 -0
- package/dist/orchestrator/strategy/divergent-exploration.d.ts +37 -0
- package/dist/orchestrator/strategy/divergent-exploration.d.ts.map +1 -0
- package/dist/orchestrator/strategy/divergent-exploration.js +324 -0
- package/dist/orchestrator/strategy/divergent-exploration.js.map +1 -0
- package/dist/orchestrator/strategy/portfolio-manager.d.ts +3 -2
- package/dist/orchestrator/strategy/portfolio-manager.d.ts.map +1 -1
- package/dist/orchestrator/strategy/portfolio-manager.js +16 -11
- package/dist/orchestrator/strategy/portfolio-manager.js.map +1 -1
- package/dist/orchestrator/strategy/portfolio-rebalance.d.ts +1 -1
- package/dist/orchestrator/strategy/portfolio-rebalance.d.ts.map +1 -1
- package/dist/orchestrator/strategy/portfolio-rebalance.js +31 -9
- package/dist/orchestrator/strategy/portfolio-rebalance.js.map +1 -1
- package/dist/orchestrator/strategy/strategy-helpers.d.ts +108 -0
- package/dist/orchestrator/strategy/strategy-helpers.d.ts.map +1 -1
- package/dist/orchestrator/strategy/strategy-helpers.js +34 -2
- package/dist/orchestrator/strategy/strategy-helpers.js.map +1 -1
- package/dist/orchestrator/strategy/strategy-manager-base.d.ts +31 -2
- package/dist/orchestrator/strategy/strategy-manager-base.d.ts.map +1 -1
- package/dist/orchestrator/strategy/strategy-manager-base.js +93 -12
- package/dist/orchestrator/strategy/strategy-manager-base.js.map +1 -1
- package/dist/orchestrator/strategy/strategy-manager.d.ts +1 -11
- package/dist/orchestrator/strategy/strategy-manager.d.ts.map +1 -1
- package/dist/orchestrator/strategy/strategy-manager.js +78 -19
- package/dist/orchestrator/strategy/strategy-manager.js.map +1 -1
- package/dist/orchestrator/strategy/types/cross-portfolio.d.ts +2 -2
- package/dist/orchestrator/strategy/types/strategy.d.ts +364 -0
- package/dist/orchestrator/strategy/types/strategy.d.ts.map +1 -1
- package/dist/orchestrator/strategy/types/strategy.js +43 -0
- package/dist/orchestrator/strategy/types/strategy.js.map +1 -1
- package/dist/platform/dream/dream-activation.d.ts +1 -1
- package/dist/platform/dream/dream-consolidator/fs-metrics.d.ts +18 -0
- package/dist/platform/dream/dream-consolidator/fs-metrics.d.ts.map +1 -0
- package/dist/platform/dream/dream-consolidator/fs-metrics.js +130 -0
- package/dist/platform/dream/dream-consolidator/fs-metrics.js.map +1 -0
- package/dist/platform/dream/dream-consolidator.d.ts +4 -14
- package/dist/platform/dream/dream-consolidator.d.ts.map +1 -1
- package/dist/platform/dream/dream-consolidator.js +46 -166
- package/dist/platform/dream/dream-consolidator.js.map +1 -1
- package/dist/platform/dream/dream-event-workflows.d.ts +6 -6
- package/dist/platform/dream/dream-soil-sync.d.ts +1 -0
- package/dist/platform/dream/dream-soil-sync.d.ts.map +1 -1
- package/dist/platform/dream/dream-soil-sync.js +8 -1
- package/dist/platform/dream/dream-soil-sync.js.map +1 -1
- package/dist/platform/dream/dream-types.d.ts +94 -89
- package/dist/platform/dream/dream-types.d.ts.map +1 -1
- package/dist/platform/dream/dream-types.js +1 -0
- package/dist/platform/dream/dream-types.js.map +1 -1
- package/dist/platform/dream/playbook-memory.d.ts +4 -4
- package/dist/platform/drive/metric-history.d.ts +61 -0
- package/dist/platform/drive/metric-history.d.ts.map +1 -0
- package/dist/platform/drive/metric-history.js +206 -0
- package/dist/platform/drive/metric-history.js.map +1 -0
- package/dist/platform/drive/progress-predictor.d.ts +7 -0
- package/dist/platform/drive/progress-predictor.d.ts.map +1 -1
- package/dist/platform/drive/progress-predictor.js +23 -0
- package/dist/platform/drive/progress-predictor.js.map +1 -1
- package/dist/platform/drive/stall-detector/analysis.d.ts +5 -0
- package/dist/platform/drive/stall-detector/analysis.d.ts.map +1 -0
- package/dist/platform/drive/stall-detector/analysis.js +55 -0
- package/dist/platform/drive/stall-detector/analysis.js.map +1 -0
- package/dist/platform/drive/stall-detector/repetitive.d.ts +3 -0
- package/dist/platform/drive/stall-detector/repetitive.d.ts.map +1 -0
- package/dist/platform/drive/stall-detector/repetitive.js +72 -0
- package/dist/platform/drive/stall-detector/repetitive.js.map +1 -0
- package/dist/platform/drive/stall-detector/thresholds.d.ts +10 -0
- package/dist/platform/drive/stall-detector/thresholds.d.ts.map +1 -0
- package/dist/platform/drive/stall-detector/thresholds.js +61 -0
- package/dist/platform/drive/stall-detector/thresholds.js.map +1 -0
- package/dist/platform/drive/stall-detector.d.ts +5 -21
- package/dist/platform/drive/stall-detector.d.ts.map +1 -1
- package/dist/platform/drive/stall-detector.js +47 -201
- package/dist/platform/drive/stall-detector.js.map +1 -1
- package/dist/platform/drive/types/satisficing.d.ts +2 -2
- package/dist/platform/drive/types/stall.d.ts +4 -0
- package/dist/platform/drive/types/stall.d.ts.map +1 -1
- package/dist/platform/drive/types/stall.js +1 -0
- package/dist/platform/drive/types/stall.js.map +1 -1
- package/dist/platform/knowledge/knowledge-manager-agent-memory.d.ts +55 -0
- package/dist/platform/knowledge/knowledge-manager-agent-memory.d.ts.map +1 -0
- package/dist/platform/knowledge/knowledge-manager-agent-memory.js +232 -0
- package/dist/platform/knowledge/knowledge-manager-agent-memory.js.map +1 -0
- package/dist/platform/knowledge/knowledge-manager-internals.d.ts +10 -0
- package/dist/platform/knowledge/knowledge-manager-internals.d.ts.map +1 -0
- package/dist/platform/knowledge/knowledge-manager-internals.js +43 -0
- package/dist/platform/knowledge/knowledge-manager-internals.js.map +1 -0
- package/dist/platform/knowledge/knowledge-manager-store.d.ts +13 -0
- package/dist/platform/knowledge/knowledge-manager-store.d.ts.map +1 -0
- package/dist/platform/knowledge/knowledge-manager-store.js +67 -0
- package/dist/platform/knowledge/knowledge-manager-store.js.map +1 -0
- package/dist/platform/knowledge/knowledge-manager.d.ts +6 -2
- package/dist/platform/knowledge/knowledge-manager.d.ts.map +1 -1
- package/dist/platform/knowledge/knowledge-manager.js +43 -344
- package/dist/platform/knowledge/knowledge-manager.js.map +1 -1
- package/dist/platform/knowledge/memory/memory-lifecycle-storage.d.ts +4 -0
- package/dist/platform/knowledge/memory/memory-lifecycle-storage.d.ts.map +1 -0
- package/dist/platform/knowledge/memory/memory-lifecycle-storage.js +106 -0
- package/dist/platform/knowledge/memory/memory-lifecycle-storage.js.map +1 -0
- package/dist/platform/knowledge/memory/memory-lifecycle.d.ts.map +1 -1
- package/dist/platform/knowledge/memory/memory-lifecycle.js +6 -112
- package/dist/platform/knowledge/memory/memory-lifecycle.js.map +1 -1
- package/dist/platform/knowledge/types/learning.d.ts +2 -2
- package/dist/platform/observation/capability-detector/prompts.d.ts +18 -0
- package/dist/platform/observation/capability-detector/prompts.d.ts.map +1 -0
- package/dist/platform/observation/capability-detector/prompts.js +80 -0
- package/dist/platform/observation/capability-detector/prompts.js.map +1 -0
- package/dist/platform/observation/capability-detector/recommendations.d.ts +5 -0
- package/dist/platform/observation/capability-detector/recommendations.d.ts.map +1 -0
- package/dist/platform/observation/capability-detector/recommendations.js +76 -0
- package/dist/platform/observation/capability-detector/recommendations.js.map +1 -0
- package/dist/platform/observation/capability-detector/types.d.ts +112 -0
- package/dist/platform/observation/capability-detector/types.d.ts.map +1 -0
- package/dist/platform/observation/capability-detector/types.js +75 -0
- package/dist/platform/observation/capability-detector/types.js.map +1 -0
- package/dist/platform/observation/capability-detector.d.ts +4 -9
- package/dist/platform/observation/capability-detector.d.ts.map +1 -1
- package/dist/platform/observation/capability-detector.js +12 -212
- package/dist/platform/observation/capability-detector.js.map +1 -1
- package/dist/platform/observation/context-provider/collector.d.ts +13 -0
- package/dist/platform/observation/context-provider/collector.d.ts.map +1 -0
- package/dist/platform/observation/context-provider/collector.js +259 -0
- package/dist/platform/observation/context-provider/collector.js.map +1 -0
- package/dist/platform/observation/context-provider/search-terms.d.ts +2 -0
- package/dist/platform/observation/context-provider/search-terms.d.ts.map +1 -0
- package/dist/platform/observation/context-provider/search-terms.js +24 -0
- package/dist/platform/observation/context-provider/search-terms.js.map +1 -0
- package/dist/platform/observation/context-provider/shared.d.ts +17 -0
- package/dist/platform/observation/context-provider/shared.d.ts.map +1 -0
- package/dist/platform/observation/context-provider/shared.js +87 -0
- package/dist/platform/observation/context-provider/shared.js.map +1 -0
- package/dist/platform/observation/context-provider.d.ts +3 -28
- package/dist/platform/observation/context-provider.d.ts.map +1 -1
- package/dist/platform/observation/context-provider.js +7 -395
- package/dist/platform/observation/context-provider.js.map +1 -1
- package/dist/platform/observation/data-source-adapter.d.ts +1 -0
- package/dist/platform/observation/data-source-adapter.d.ts.map +1 -1
- package/dist/platform/observation/data-source-adapter.js.map +1 -1
- package/dist/platform/observation/observation-datasource.d.ts.map +1 -1
- package/dist/platform/observation/observation-datasource.js +2 -0
- package/dist/platform/observation/observation-datasource.js.map +1 -1
- package/dist/platform/observation/types/data-source.d.ts +153 -9
- package/dist/platform/observation/types/data-source.d.ts.map +1 -1
- package/dist/platform/observation/types/data-source.js +13 -1
- package/dist/platform/observation/types/data-source.js.map +1 -1
- package/dist/platform/soil/compiled-memory-projections.d.ts +2 -0
- package/dist/platform/soil/compiled-memory-projections.d.ts.map +1 -1
- package/dist/platform/soil/compiled-memory-projections.js +59 -0
- package/dist/platform/soil/compiled-memory-projections.js.map +1 -1
- package/dist/platform/soil/contracts.d.ts +67 -67
- package/dist/platform/soil/importer.d.ts +6 -6
- package/dist/platform/soil/retriever.d.ts +25 -0
- package/dist/platform/soil/retriever.d.ts.map +1 -1
- package/dist/platform/soil/retriever.js +94 -5
- package/dist/platform/soil/retriever.js.map +1 -1
- package/dist/platform/soil/sqlite-repository-helpers.d.ts +80 -0
- package/dist/platform/soil/sqlite-repository-helpers.d.ts.map +1 -0
- package/dist/platform/soil/sqlite-repository-helpers.js +143 -0
- package/dist/platform/soil/sqlite-repository-helpers.js.map +1 -0
- package/dist/platform/soil/sqlite-repository-search.d.ts +8 -0
- package/dist/platform/soil/sqlite-repository-search.d.ts.map +1 -0
- package/dist/platform/soil/sqlite-repository-search.js +367 -0
- package/dist/platform/soil/sqlite-repository-search.js.map +1 -0
- package/dist/platform/soil/sqlite-repository-storage.d.ts +8 -0
- package/dist/platform/soil/sqlite-repository-storage.d.ts.map +1 -0
- package/dist/platform/soil/sqlite-repository-storage.js +278 -0
- package/dist/platform/soil/sqlite-repository-storage.js.map +1 -0
- package/dist/platform/soil/sqlite-repository.d.ts +1 -4
- package/dist/platform/soil/sqlite-repository.d.ts.map +1 -1
- package/dist/platform/soil/sqlite-repository.js +26 -820
- package/dist/platform/soil/sqlite-repository.js.map +1 -1
- package/dist/platform/soil/types.d.ts +8 -8
- package/dist/platform/time/deadline-finalization.d.ts +57 -0
- package/dist/platform/time/deadline-finalization.d.ts.map +1 -0
- package/dist/platform/time/deadline-finalization.js +136 -0
- package/dist/platform/time/deadline-finalization.js.map +1 -0
- package/dist/platform/time/execution-mode.d.ts +29 -0
- package/dist/platform/time/execution-mode.d.ts.map +1 -0
- package/dist/platform/time/execution-mode.js +84 -0
- package/dist/platform/time/execution-mode.js.map +1 -0
- package/dist/platform/traits/types/curiosity.d.ts +9 -9
- package/dist/platform/traits/types/guardrail.d.ts +6 -6
- package/dist/reporting/report-formatters.d.ts.map +1 -1
- package/dist/reporting/report-formatters.js +67 -2
- package/dist/reporting/report-formatters.js.map +1 -1
- package/dist/reporting/reporting-engine.d.ts.map +1 -1
- package/dist/reporting/reporting-engine.js +3 -1
- package/dist/reporting/reporting-engine.js.map +1 -1
- package/dist/reporting/reporting-types.d.ts +4 -0
- package/dist/reporting/reporting-types.d.ts.map +1 -1
- package/dist/reporting/types/report.d.ts +59 -0
- package/dist/reporting/types/report.d.ts.map +1 -1
- package/dist/reporting/types/report.js +9 -0
- package/dist/reporting/types/report.js.map +1 -1
- package/dist/runtime/command-dispatcher.d.ts +2 -0
- package/dist/runtime/command-dispatcher.d.ts.map +1 -1
- package/dist/runtime/command-dispatcher.js +16 -0
- package/dist/runtime/command-dispatcher.js.map +1 -1
- package/dist/runtime/confirmation-decision.d.ts +94 -0
- package/dist/runtime/confirmation-decision.d.ts.map +1 -0
- package/dist/runtime/confirmation-decision.js +109 -0
- package/dist/runtime/confirmation-decision.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 +31 -1
- package/dist/runtime/control/daemon-runtime-control-executor.js.map +1 -1
- package/dist/runtime/control/runtime-control-intent.d.ts +9 -1
- package/dist/runtime/control/runtime-control-intent.d.ts.map +1 -1
- package/dist/runtime/control/runtime-control-intent.js +82 -16
- package/dist/runtime/control/runtime-control-intent.js.map +1 -1
- package/dist/runtime/control/runtime-control-service.d.ts +35 -1
- package/dist/runtime/control/runtime-control-service.d.ts.map +1 -1
- package/dist/runtime/control/runtime-control-service.js +285 -5
- package/dist/runtime/control/runtime-control-service.js.map +1 -1
- package/dist/runtime/daemon/client.d.ts +12 -0
- package/dist/runtime/daemon/client.d.ts.map +1 -1
- package/dist/runtime/daemon/client.js +9 -0
- package/dist/runtime/daemon/client.js.map +1 -1
- package/dist/runtime/daemon/index.d.ts +1 -1
- package/dist/runtime/daemon/index.d.ts.map +1 -1
- package/dist/runtime/daemon/index.js +1 -1
- package/dist/runtime/daemon/index.js.map +1 -1
- package/dist/runtime/daemon/maintenance.d.ts +2 -10
- package/dist/runtime/daemon/maintenance.d.ts.map +1 -1
- package/dist/runtime/daemon/maintenance.js +14 -45
- package/dist/runtime/daemon/maintenance.js.map +1 -1
- package/dist/runtime/daemon/runner-bootstrap.d.ts +25 -0
- package/dist/runtime/daemon/runner-bootstrap.d.ts.map +1 -0
- package/dist/runtime/daemon/runner-bootstrap.js +77 -0
- package/dist/runtime/daemon/runner-bootstrap.js.map +1 -0
- package/dist/runtime/daemon/runner-commands.d.ts +13 -9
- package/dist/runtime/daemon/runner-commands.d.ts.map +1 -1
- package/dist/runtime/daemon/runner-commands.js +272 -21
- 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 +62 -6
- package/dist/runtime/daemon/runner-goal-cycle.js.map +1 -1
- package/dist/runtime/daemon/runner-resident-curiosity.d.ts +12 -0
- package/dist/runtime/daemon/runner-resident-curiosity.d.ts.map +1 -0
- package/dist/runtime/daemon/runner-resident-curiosity.js +155 -0
- package/dist/runtime/daemon/runner-resident-curiosity.js.map +1 -0
- package/dist/runtime/daemon/runner-resident-dream.d.ts +20 -0
- package/dist/runtime/daemon/runner-resident-dream.d.ts.map +1 -0
- package/dist/runtime/daemon/runner-resident-dream.js +148 -0
- package/dist/runtime/daemon/runner-resident-dream.js.map +1 -0
- package/dist/runtime/daemon/runner-resident-proactive.d.ts +4 -0
- package/dist/runtime/daemon/runner-resident-proactive.d.ts.map +1 -0
- package/dist/runtime/daemon/runner-resident-proactive.js +113 -0
- package/dist/runtime/daemon/runner-resident-proactive.js.map +1 -0
- package/dist/runtime/daemon/runner-resident-shared.d.ts +40 -0
- package/dist/runtime/daemon/runner-resident-shared.d.ts.map +1 -0
- package/dist/runtime/daemon/runner-resident-shared.js +101 -0
- package/dist/runtime/daemon/runner-resident-shared.js.map +1 -0
- package/dist/runtime/daemon/runner-resident.d.ts +4 -68
- package/dist/runtime/daemon/runner-resident.d.ts.map +1 -1
- package/dist/runtime/daemon/runner-resident.js +4 -506
- package/dist/runtime/daemon/runner-resident.js.map +1 -1
- package/dist/runtime/daemon/runner-runtime.d.ts +12 -0
- package/dist/runtime/daemon/runner-runtime.d.ts.map +1 -0
- package/dist/runtime/daemon/runner-runtime.js +43 -0
- package/dist/runtime/daemon/runner-runtime.js.map +1 -0
- package/dist/runtime/daemon/runner-startup.d.ts.map +1 -1
- package/dist/runtime/daemon/runner-startup.js +15 -6
- package/dist/runtime/daemon/runner-startup.js.map +1 -1
- package/dist/runtime/daemon/runner.d.ts +14 -23
- package/dist/runtime/daemon/runner.d.ts.map +1 -1
- package/dist/runtime/daemon/runner.js +40 -110
- package/dist/runtime/daemon/runner.js.map +1 -1
- package/dist/runtime/daemon/runtime-ownership.d.ts +9 -0
- package/dist/runtime/daemon/runtime-ownership.d.ts.map +1 -1
- package/dist/runtime/daemon/runtime-ownership.js +248 -1
- package/dist/runtime/daemon/runtime-ownership.js.map +1 -1
- package/dist/runtime/daemon/wait-deadline-resolver.d.ts +5 -2
- package/dist/runtime/daemon/wait-deadline-resolver.d.ts.map +1 -1
- package/dist/runtime/daemon/wait-deadline-resolver.js +55 -35
- package/dist/runtime/daemon/wait-deadline-resolver.js.map +1 -1
- package/dist/runtime/dream-sidecar-review.d.ts +92 -0
- package/dist/runtime/dream-sidecar-review.d.ts.map +1 -0
- package/dist/runtime/dream-sidecar-review.js +495 -0
- package/dist/runtime/dream-sidecar-review.js.map +1 -0
- package/dist/runtime/event/dispatcher.d.ts +0 -2
- package/dist/runtime/event/dispatcher.d.ts.map +1 -1
- package/dist/runtime/event/dispatcher.js +0 -4
- package/dist/runtime/event/dispatcher.js.map +1 -1
- package/dist/runtime/event/server-command-handler.d.ts +2 -4
- package/dist/runtime/event/server-command-handler.d.ts.map +1 -1
- package/dist/runtime/event/server-command-handler.js +36 -6
- package/dist/runtime/event/server-command-handler.js.map +1 -1
- package/dist/runtime/event/server-snapshot-reader.d.ts +15 -1
- package/dist/runtime/event/server-snapshot-reader.d.ts.map +1 -1
- package/dist/runtime/event/server-snapshot-reader.js +66 -2
- package/dist/runtime/event/server-snapshot-reader.js.map +1 -1
- package/dist/runtime/event/server-types.d.ts +7 -0
- package/dist/runtime/event/server-types.d.ts.map +1 -1
- package/dist/runtime/event/server.d.ts +5 -0
- package/dist/runtime/event/server.d.ts.map +1 -1
- package/dist/runtime/event/server.js +43 -11
- package/dist/runtime/event/server.js.map +1 -1
- package/dist/runtime/evidence-answer.d.ts +41 -0
- package/dist/runtime/evidence-answer.d.ts.map +1 -0
- package/dist/runtime/evidence-answer.js +366 -0
- package/dist/runtime/evidence-answer.js.map +1 -0
- package/dist/runtime/executor/goal-worker.d.ts +6 -2
- package/dist/runtime/executor/goal-worker.d.ts.map +1 -1
- package/dist/runtime/executor/goal-worker.js +7 -2
- package/dist/runtime/executor/goal-worker.js.map +1 -1
- package/dist/runtime/executor/loop-supervisor.d.ts +7 -0
- package/dist/runtime/executor/loop-supervisor.d.ts.map +1 -1
- package/dist/runtime/executor/loop-supervisor.js +72 -17
- package/dist/runtime/executor/loop-supervisor.js.map +1 -1
- package/dist/runtime/guardrails/backpressure-controller.d.ts +32 -0
- package/dist/runtime/guardrails/backpressure-controller.d.ts.map +1 -0
- package/dist/runtime/guardrails/backpressure-controller.js +88 -0
- package/dist/runtime/guardrails/backpressure-controller.js.map +1 -0
- package/dist/runtime/guardrails/circuit-breaker.d.ts +32 -0
- package/dist/runtime/guardrails/circuit-breaker.d.ts.map +1 -0
- package/dist/runtime/guardrails/circuit-breaker.js +88 -0
- package/dist/runtime/guardrails/circuit-breaker.js.map +1 -0
- package/dist/runtime/guardrails/guardrail-store.d.ts +23 -0
- package/dist/runtime/guardrails/guardrail-store.d.ts.map +1 -0
- package/dist/runtime/guardrails/guardrail-store.js +95 -0
- package/dist/runtime/guardrails/guardrail-store.js.map +1 -0
- package/dist/runtime/guardrails/index.d.ts +4 -0
- package/dist/runtime/guardrails/index.d.ts.map +1 -0
- package/dist/runtime/guardrails/index.js +4 -0
- package/dist/runtime/guardrails/index.js.map +1 -0
- package/dist/runtime/interactive-automation/browser-session-store.d.ts +43 -0
- package/dist/runtime/interactive-automation/browser-session-store.d.ts.map +1 -0
- package/dist/runtime/interactive-automation/browser-session-store.js +104 -0
- package/dist/runtime/interactive-automation/browser-session-store.js.map +1 -0
- package/dist/runtime/interactive-automation/failure-classifier.d.ts +12 -0
- package/dist/runtime/interactive-automation/failure-classifier.d.ts.map +1 -0
- package/dist/runtime/interactive-automation/failure-classifier.js +50 -0
- package/dist/runtime/interactive-automation/failure-classifier.js.map +1 -0
- package/dist/runtime/interactive-automation/index.d.ts +2 -0
- package/dist/runtime/interactive-automation/index.d.ts.map +1 -1
- package/dist/runtime/interactive-automation/index.js +2 -0
- package/dist/runtime/interactive-automation/index.js.map +1 -1
- package/dist/runtime/interactive-automation/providers/manus-browser.d.ts.map +1 -1
- package/dist/runtime/interactive-automation/providers/manus-browser.js +17 -1
- package/dist/runtime/interactive-automation/providers/manus-browser.js.map +1 -1
- package/dist/runtime/interactive-automation/types.d.ts +4 -0
- package/dist/runtime/interactive-automation/types.d.ts.map +1 -1
- package/dist/runtime/interactive-automation/types.js.map +1 -1
- package/dist/runtime/notification-routing.d.ts +45 -2
- package/dist/runtime/notification-routing.d.ts.map +1 -1
- package/dist/runtime/notification-routing.js +196 -79
- package/dist/runtime/notification-routing.js.map +1 -1
- package/dist/runtime/run-spec/confirmation.d.ts +34 -0
- package/dist/runtime/run-spec/confirmation.d.ts.map +1 -0
- package/dist/runtime/run-spec/confirmation.js +176 -0
- package/dist/runtime/run-spec/confirmation.js.map +1 -0
- package/dist/runtime/run-spec/derive.d.ts +284 -0
- package/dist/runtime/run-spec/derive.d.ts.map +1 -0
- package/dist/runtime/run-spec/derive.js +379 -0
- package/dist/runtime/run-spec/derive.js.map +1 -0
- package/dist/runtime/run-spec/index.d.ts +5 -0
- package/dist/runtime/run-spec/index.d.ts.map +1 -0
- package/dist/runtime/run-spec/index.js +5 -0
- package/dist/runtime/run-spec/index.js.map +1 -0
- package/dist/runtime/run-spec/store.d.ts +11 -0
- package/dist/runtime/run-spec/store.d.ts.map +1 -0
- package/dist/runtime/run-spec/store.js +36 -0
- package/dist/runtime/run-spec/store.js.map +1 -0
- package/dist/runtime/run-spec/types.d.ts +495 -0
- package/dist/runtime/run-spec/types.d.ts.map +1 -0
- package/dist/runtime/run-spec/types.js +87 -0
- package/dist/runtime/run-spec/types.js.map +1 -0
- package/dist/runtime/schedule/engine-cron-reflection.d.ts +31 -0
- package/dist/runtime/schedule/engine-cron-reflection.d.ts.map +1 -0
- package/dist/runtime/schedule/engine-cron-reflection.js +229 -0
- package/dist/runtime/schedule/engine-cron-reflection.js.map +1 -0
- package/dist/runtime/schedule/engine-execution.d.ts +48 -0
- package/dist/runtime/schedule/engine-execution.d.ts.map +1 -0
- package/dist/runtime/schedule/engine-execution.js +424 -0
- package/dist/runtime/schedule/engine-execution.js.map +1 -0
- package/dist/runtime/schedule/engine-heartbeat.d.ts +5 -0
- package/dist/runtime/schedule/engine-heartbeat.d.ts.map +1 -0
- package/dist/runtime/schedule/engine-heartbeat.js +104 -0
- package/dist/runtime/schedule/engine-heartbeat.js.map +1 -0
- 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 +15 -229
- package/dist/runtime/schedule/engine-layers.js.map +1 -1
- package/dist/runtime/schedule/engine-mutations.d.ts +37 -0
- package/dist/runtime/schedule/engine-mutations.d.ts.map +1 -0
- package/dist/runtime/schedule/engine-mutations.js +263 -0
- package/dist/runtime/schedule/engine-mutations.js.map +1 -0
- package/dist/runtime/schedule/engine.d.ts +13 -39
- package/dist/runtime/schedule/engine.d.ts.map +1 -1
- package/dist/runtime/schedule/engine.js +65 -810
- package/dist/runtime/schedule/engine.js.map +1 -1
- package/dist/runtime/schedule/history.d.ts +20 -4
- package/dist/runtime/schedule/history.d.ts.map +1 -1
- package/dist/runtime/schedule/history.js +8 -0
- package/dist/runtime/schedule/history.js.map +1 -1
- package/dist/runtime/schedule/index.d.ts +1 -0
- package/dist/runtime/schedule/index.d.ts.map +1 -1
- package/dist/runtime/schedule/index.js +1 -0
- package/dist/runtime/schedule/index.js.map +1 -1
- package/dist/runtime/schedule/legacy-cron-migration.d.ts +9 -0
- package/dist/runtime/schedule/legacy-cron-migration.d.ts.map +1 -0
- package/dist/runtime/schedule/legacy-cron-migration.js +89 -0
- package/dist/runtime/schedule/legacy-cron-migration.js.map +1 -0
- package/dist/runtime/schedule/wait-projection.d.ts +6 -0
- package/dist/runtime/schedule/wait-projection.d.ts.map +1 -0
- package/dist/runtime/schedule/wait-projection.js +102 -0
- package/dist/runtime/schedule/wait-projection.js.map +1 -0
- package/dist/runtime/session-registry/registry-helpers.d.ts +34 -0
- package/dist/runtime/session-registry/registry-helpers.d.ts.map +1 -0
- package/dist/runtime/session-registry/registry-helpers.js +241 -0
- package/dist/runtime/session-registry/registry-helpers.js.map +1 -0
- package/dist/runtime/session-registry/registry.d.ts.map +1 -1
- package/dist/runtime/session-registry/registry.js +16 -243
- package/dist/runtime/session-registry/registry.js.map +1 -1
- package/dist/runtime/session-registry/types.d.ts +138 -130
- package/dist/runtime/session-registry/types.d.ts.map +1 -1
- package/dist/runtime/session-registry/types.js +2 -0
- package/dist/runtime/session-registry/types.js.map +1 -1
- package/dist/runtime/store/artifact-retention.d.ts +44 -0
- package/dist/runtime/store/artifact-retention.d.ts.map +1 -0
- package/dist/runtime/store/artifact-retention.js +263 -0
- package/dist/runtime/store/artifact-retention.js.map +1 -0
- package/dist/runtime/store/background-run-store.d.ts +1 -0
- package/dist/runtime/store/background-run-store.d.ts.map +1 -1
- package/dist/runtime/store/background-run-store.js +1 -0
- package/dist/runtime/store/background-run-store.js.map +1 -1
- package/dist/runtime/store/budget-store.d.ts +442 -0
- package/dist/runtime/store/budget-store.d.ts.map +1 -0
- package/dist/runtime/store/budget-store.js +318 -0
- package/dist/runtime/store/budget-store.js.map +1 -0
- package/dist/runtime/store/dream-checkpoints.d.ts +9 -0
- package/dist/runtime/store/dream-checkpoints.d.ts.map +1 -0
- package/dist/runtime/store/dream-checkpoints.js +16 -0
- package/dist/runtime/store/dream-checkpoints.js.map +1 -0
- package/dist/runtime/store/evaluator-results.d.ts +97 -0
- package/dist/runtime/store/evaluator-results.d.ts.map +1 -0
- package/dist/runtime/store/evaluator-results.js +355 -0
- package/dist/runtime/store/evaluator-results.js.map +1 -0
- package/dist/runtime/store/evidence-ledger.d.ts +5298 -0
- package/dist/runtime/store/evidence-ledger.d.ts.map +1 -0
- package/dist/runtime/store/evidence-ledger.js +1452 -0
- package/dist/runtime/store/evidence-ledger.js.map +1 -0
- package/dist/runtime/store/experiment-queue-store.d.ts +1164 -0
- package/dist/runtime/store/experiment-queue-store.d.ts.map +1 -0
- package/dist/runtime/store/experiment-queue-store.js +341 -0
- package/dist/runtime/store/experiment-queue-store.js.map +1 -0
- package/dist/runtime/store/health-store.d.ts.map +1 -1
- package/dist/runtime/store/health-store.js +6 -0
- package/dist/runtime/store/health-store.js.map +1 -1
- package/dist/runtime/store/index.d.ts +25 -2
- package/dist/runtime/store/index.d.ts.map +1 -1
- package/dist/runtime/store/index.js +13 -1
- package/dist/runtime/store/index.js.map +1 -1
- package/dist/runtime/store/metric-history.d.ts +10 -0
- package/dist/runtime/store/metric-history.d.ts.map +1 -0
- package/dist/runtime/store/metric-history.js +56 -0
- package/dist/runtime/store/metric-history.js.map +1 -0
- package/dist/runtime/store/operator-handoff-store.d.ts +179 -0
- package/dist/runtime/store/operator-handoff-store.d.ts.map +1 -0
- package/dist/runtime/store/operator-handoff-store.js +120 -0
- package/dist/runtime/store/operator-handoff-store.js.map +1 -0
- package/dist/runtime/store/postmortem-report.d.ts +485 -0
- package/dist/runtime/store/postmortem-report.d.ts.map +1 -0
- package/dist/runtime/store/postmortem-report.js +561 -0
- package/dist/runtime/store/postmortem-report.js.map +1 -0
- package/dist/runtime/store/reproducibility-manifest.d.ts +565 -0
- package/dist/runtime/store/reproducibility-manifest.d.ts.map +1 -0
- package/dist/runtime/store/reproducibility-manifest.js +392 -0
- package/dist/runtime/store/reproducibility-manifest.js.map +1 -0
- package/dist/runtime/store/research-evidence.d.ts +8 -0
- package/dist/runtime/store/research-evidence.d.ts.map +1 -0
- package/dist/runtime/store/research-evidence.js +15 -0
- package/dist/runtime/store/research-evidence.js.map +1 -0
- package/dist/runtime/store/runtime-operation-schemas.d.ts +80 -34
- package/dist/runtime/store/runtime-operation-schemas.d.ts.map +1 -1
- package/dist/runtime/store/runtime-operation-schemas.js +16 -1
- package/dist/runtime/store/runtime-operation-schemas.js.map +1 -1
- package/dist/runtime/store/runtime-paths.d.ts +25 -0
- package/dist/runtime/store/runtime-paths.d.ts.map +1 -1
- package/dist/runtime/store/runtime-paths.js +73 -0
- package/dist/runtime/store/runtime-paths.js.map +1 -1
- package/dist/runtime/store/runtime-schemas.d.ts +1934 -15
- package/dist/runtime/store/runtime-schemas.d.ts.map +1 -1
- package/dist/runtime/store/runtime-schemas.js +201 -0
- package/dist/runtime/store/runtime-schemas.js.map +1 -1
- package/dist/runtime/store/safe-pause-store.d.ts +28 -0
- package/dist/runtime/store/safe-pause-store.d.ts.map +1 -0
- package/dist/runtime/store/safe-pause-store.js +103 -0
- package/dist/runtime/store/safe-pause-store.js.map +1 -0
- package/dist/runtime/types/daemon.d.ts +234 -14
- package/dist/runtime/types/daemon.d.ts.map +1 -1
- package/dist/runtime/types/daemon.js +29 -2
- package/dist/runtime/types/daemon.js.map +1 -1
- package/dist/runtime/types/envelope.d.ts +10 -10
- package/dist/runtime/types/hook.d.ts +9 -9
- package/dist/runtime/types/notification.d.ts +6 -6
- package/dist/runtime/types/plugin.d.ts +2 -2
- package/dist/runtime/types/schedule.d.ts +162 -54
- package/dist/runtime/types/schedule.d.ts.map +1 -1
- package/dist/runtime/types/schedule.js +15 -1
- package/dist/runtime/types/schedule.js.map +1 -1
- package/dist/runtime/types/trigger.d.ts +2 -2
- package/dist/tools/automation/InteractiveAutomationTools.d.ts +10 -0
- package/dist/tools/automation/InteractiveAutomationTools.d.ts.map +1 -1
- package/dist/tools/automation/InteractiveAutomationTools.js +139 -8
- package/dist/tools/automation/InteractiveAutomationTools.js.map +1 -1
- package/dist/tools/builtin/exports.d.ts +2 -1
- package/dist/tools/builtin/exports.d.ts.map +1 -1
- package/dist/tools/builtin/exports.js +2 -1
- package/dist/tools/builtin/exports.js.map +1 -1
- package/dist/tools/builtin/factory.d.ts +7 -0
- package/dist/tools/builtin/factory.d.ts.map +1 -1
- package/dist/tools/builtin/factory.js +26 -3
- package/dist/tools/builtin/factory.js.map +1 -1
- package/dist/tools/fs/FileValidationTool/protected-path-policy.d.ts +1 -0
- package/dist/tools/fs/FileValidationTool/protected-path-policy.d.ts.map +1 -1
- package/dist/tools/fs/FileValidationTool/protected-path-policy.js +17 -4
- package/dist/tools/fs/FileValidationTool/protected-path-policy.js.map +1 -1
- package/dist/tools/fs/ListDirTool/ListDirTool.js +1 -1
- package/dist/tools/fs/ListDirTool/ListDirTool.js.map +1 -1
- package/dist/tools/kaggle/KaggleExperimentTools.d.ts +792 -8
- package/dist/tools/kaggle/KaggleExperimentTools.d.ts.map +1 -1
- package/dist/tools/kaggle/KaggleExperimentTools.js +284 -19
- package/dist/tools/kaggle/KaggleExperimentTools.js.map +1 -1
- package/dist/tools/kaggle/KaggleSubmissionTools.d.ts +18 -12
- package/dist/tools/kaggle/KaggleSubmissionTools.d.ts.map +1 -1
- package/dist/tools/kaggle/KaggleSubmissionTools.js +23 -4
- package/dist/tools/kaggle/KaggleSubmissionTools.js.map +1 -1
- package/dist/tools/kaggle/KaggleWorkspacePrepareTool.d.ts +28 -9
- package/dist/tools/kaggle/KaggleWorkspacePrepareTool.d.ts.map +1 -1
- package/dist/tools/kaggle/KaggleWorkspacePrepareTool.js +182 -4
- package/dist/tools/kaggle/KaggleWorkspacePrepareTool.js.map +1 -1
- package/dist/tools/kaggle/index.d.ts +1 -1
- package/dist/tools/kaggle/index.d.ts.map +1 -1
- package/dist/tools/kaggle/index.js +1 -1
- package/dist/tools/kaggle/index.js.map +1 -1
- package/dist/tools/kaggle/metrics.d.ts +845 -4
- package/dist/tools/kaggle/metrics.d.ts.map +1 -1
- package/dist/tools/kaggle/metrics.js +410 -1
- package/dist/tools/kaggle/metrics.js.map +1 -1
- package/dist/tools/kaggle/paths.d.ts.map +1 -1
- package/dist/tools/kaggle/paths.js +6 -0
- package/dist/tools/kaggle/paths.js.map +1 -1
- package/dist/tools/mutation/ConfigureNotificationRoutingTool/ConfigureNotificationRoutingTool.d.ts +6 -0
- package/dist/tools/mutation/ConfigureNotificationRoutingTool/ConfigureNotificationRoutingTool.d.ts.map +1 -1
- package/dist/tools/mutation/ConfigureNotificationRoutingTool/ConfigureNotificationRoutingTool.js +9 -2
- package/dist/tools/mutation/ConfigureNotificationRoutingTool/ConfigureNotificationRoutingTool.js.map +1 -1
- package/dist/tools/mutation/TaskCreateTool/TaskCreateTool.d.ts +4 -4
- package/dist/tools/network/McpStdioTool/McpStdioTool.d.ts +4 -4
- package/dist/tools/query/CodeSearchRepairTool/CodeSearchRepairTool.d.ts.map +1 -1
- package/dist/tools/query/CodeSearchRepairTool/CodeSearchRepairTool.js +23 -2
- package/dist/tools/query/CodeSearchRepairTool/CodeSearchRepairTool.js.map +1 -1
- package/dist/tools/query/CodeSearchTool/CodeSearchTool.d.ts.map +1 -1
- package/dist/tools/query/CodeSearchTool/CodeSearchTool.js +24 -2
- package/dist/tools/query/CodeSearchTool/CodeSearchTool.js.map +1 -1
- package/dist/tools/query/MemoryRecallTool/MemoryRecallTool.d.ts +2 -2
- package/dist/tools/query/SoilQueryTool/SoilQueryTool.d.ts.map +1 -1
- package/dist/tools/query/SoilQueryTool/SoilQueryTool.js +43 -9
- package/dist/tools/query/SoilQueryTool/SoilQueryTool.js.map +1 -1
- package/dist/tools/query/code-search-root.d.ts +8 -0
- package/dist/tools/query/code-search-root.d.ts.map +1 -0
- package/dist/tools/query/code-search-root.js +41 -0
- package/dist/tools/query/code-search-root.js.map +1 -0
- package/dist/tools/query/runtime-dream-review-tool.d.ts +34 -0
- package/dist/tools/query/runtime-dream-review-tool.d.ts.map +1 -0
- package/dist/tools/query/runtime-dream-review-tool.js +62 -0
- package/dist/tools/query/runtime-dream-review-tool.js.map +1 -0
- package/dist/tools/query/runtime-session-tools.d.ts +560 -0
- package/dist/tools/query/runtime-session-tools.d.ts.map +1 -0
- package/dist/tools/query/runtime-session-tools.js +1017 -0
- package/dist/tools/query/runtime-session-tools.js.map +1 -0
- package/dist/tools/runtime/LongRunningRuntimeTools.d.ts +821 -0
- package/dist/tools/runtime/LongRunningRuntimeTools.d.ts.map +1 -0
- package/dist/tools/runtime/LongRunningRuntimeTools.js +905 -0
- package/dist/tools/runtime/LongRunningRuntimeTools.js.map +1 -0
- package/dist/tools/schedule/CreateScheduleTool/CreateScheduleTool.d.ts +62 -32
- package/dist/tools/schedule/CreateScheduleTool/CreateScheduleTool.d.ts.map +1 -1
- package/dist/tools/schedule/UpdateScheduleTool/UpdateScheduleTool.d.ts +78 -44
- package/dist/tools/schedule/UpdateScheduleTool/UpdateScheduleTool.d.ts.map +1 -1
- package/dist/tools/system/ProcessSessionTool/ProcessSessionTool.d.ts +1 -0
- package/dist/tools/system/ProcessSessionTool/ProcessSessionTool.d.ts.map +1 -1
- package/dist/tools/system/ProcessSessionTool/ProcessSessionTool.js +11 -0
- package/dist/tools/system/ProcessSessionTool/ProcessSessionTool.js.map +1 -1
- package/dist/tools/system/ShellTool/ShellTool.d.ts.map +1 -1
- package/dist/tools/system/ShellTool/ShellTool.js +2 -1
- package/dist/tools/system/ShellTool/ShellTool.js.map +1 -1
- package/dist/tools/system/TestRunnerTool/TestRunnerTool.d.ts +4 -4
- package/dist/tools/types.d.ts +2 -0
- package/dist/tools/types.d.ts.map +1 -1
- package/dist/tools/types.js.map +1 -1
- package/package.json +2 -1
- package/dist/base/types/cron.d.ts +0 -2
- package/dist/base/types/cron.d.ts.map +0 -1
- package/dist/base/types/cron.js +0 -3
- package/dist/base/types/cron.js.map +0 -1
- package/dist/runtime/cron-scheduler.d.ts +0 -13
- package/dist/runtime/cron-scheduler.d.ts.map +0 -1
- package/dist/runtime/cron-scheduler.js +0 -90
- package/dist/runtime/cron-scheduler.js.map +0 -1
- package/dist/runtime/types/cron.d.ts +0 -59
- package/dist/runtime/types/cron.d.ts.map +0 -1
- package/dist/runtime/types/cron.js +0 -13
- package/dist/runtime/types/cron.js.map +0 -1
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { z } from "zod";
|
|
2
|
-
export declare const DaemonConfigSchema: z.ZodObject<{
|
|
2
|
+
export declare const DaemonConfigSchema: z.ZodEffects<z.ZodObject<{
|
|
3
3
|
runtime_journal_v2: z.ZodDefault<z.ZodBoolean>;
|
|
4
4
|
check_interval_ms: z.ZodDefault<z.ZodNumber>;
|
|
5
5
|
pid_file: z.ZodDefault<z.ZodString>;
|
|
@@ -74,6 +74,16 @@ export declare const DaemonConfigSchema: z.ZodObject<{
|
|
|
74
74
|
} | undefined;
|
|
75
75
|
}>>;
|
|
76
76
|
proactive_mode: z.ZodDefault<z.ZodBoolean>;
|
|
77
|
+
run_policy: z.ZodDefault<z.ZodObject<{
|
|
78
|
+
mode: z.ZodDefault<z.ZodEnum<["bounded", "resident"]>>;
|
|
79
|
+
max_iterations: z.ZodDefault<z.ZodNullable<z.ZodNumber>>;
|
|
80
|
+
}, "strip", z.ZodTypeAny, {
|
|
81
|
+
mode: "bounded" | "resident";
|
|
82
|
+
max_iterations: number | null;
|
|
83
|
+
}, {
|
|
84
|
+
mode?: "bounded" | "resident" | undefined;
|
|
85
|
+
max_iterations?: number | null | undefined;
|
|
86
|
+
}>>;
|
|
77
87
|
proactive_interval_ms: z.ZodDefault<z.ZodNumber>;
|
|
78
88
|
goal_review_interval_ms: z.ZodDefault<z.ZodNumber>;
|
|
79
89
|
adaptive_sleep: z.ZodDefault<z.ZodObject<{
|
|
@@ -99,6 +109,11 @@ export declare const DaemonConfigSchema: z.ZodObject<{
|
|
|
99
109
|
night_multiplier?: number | undefined;
|
|
100
110
|
}>>;
|
|
101
111
|
}, "strip", z.ZodTypeAny, {
|
|
112
|
+
run_policy: {
|
|
113
|
+
mode: "bounded" | "resident";
|
|
114
|
+
max_iterations: number | null;
|
|
115
|
+
};
|
|
116
|
+
iterations_per_cycle: number;
|
|
102
117
|
runtime_journal_v2: boolean;
|
|
103
118
|
check_interval_ms: number;
|
|
104
119
|
pid_file: string;
|
|
@@ -113,7 +128,6 @@ export declare const DaemonConfigSchema: z.ZodObject<{
|
|
|
113
128
|
retry_delay_ms: number;
|
|
114
129
|
graceful_shutdown_timeout_ms?: number | undefined;
|
|
115
130
|
};
|
|
116
|
-
iterations_per_cycle: number;
|
|
117
131
|
max_concurrent_goals: number;
|
|
118
132
|
event_server_port: number;
|
|
119
133
|
gateway: {
|
|
@@ -140,6 +154,11 @@ export declare const DaemonConfigSchema: z.ZodObject<{
|
|
|
140
154
|
workspace_path?: string | undefined;
|
|
141
155
|
goal_intervals?: Record<string, number> | undefined;
|
|
142
156
|
}, {
|
|
157
|
+
run_policy?: {
|
|
158
|
+
mode?: "bounded" | "resident" | undefined;
|
|
159
|
+
max_iterations?: number | null | undefined;
|
|
160
|
+
} | undefined;
|
|
161
|
+
iterations_per_cycle?: number | undefined;
|
|
143
162
|
runtime_journal_v2?: boolean | undefined;
|
|
144
163
|
check_interval_ms?: number | undefined;
|
|
145
164
|
pid_file?: string | undefined;
|
|
@@ -157,7 +176,6 @@ export declare const DaemonConfigSchema: z.ZodObject<{
|
|
|
157
176
|
graceful_shutdown_timeout_ms?: number | undefined;
|
|
158
177
|
} | undefined;
|
|
159
178
|
goal_intervals?: Record<string, number> | undefined;
|
|
160
|
-
iterations_per_cycle?: number | undefined;
|
|
161
179
|
max_concurrent_goals?: number | undefined;
|
|
162
180
|
event_server_port?: number | undefined;
|
|
163
181
|
gateway?: {
|
|
@@ -180,7 +198,52 @@ export declare const DaemonConfigSchema: z.ZodObject<{
|
|
|
180
198
|
night_end_hour?: number | undefined;
|
|
181
199
|
night_multiplier?: number | undefined;
|
|
182
200
|
} | undefined;
|
|
183
|
-
}
|
|
201
|
+
}>, {
|
|
202
|
+
run_policy: {
|
|
203
|
+
mode: "bounded" | "resident";
|
|
204
|
+
max_iterations: number | null;
|
|
205
|
+
};
|
|
206
|
+
iterations_per_cycle: number;
|
|
207
|
+
runtime_journal_v2: boolean;
|
|
208
|
+
check_interval_ms: number;
|
|
209
|
+
pid_file: string;
|
|
210
|
+
log_dir: string;
|
|
211
|
+
log_rotation: {
|
|
212
|
+
max_size_mb: number;
|
|
213
|
+
max_files: number;
|
|
214
|
+
};
|
|
215
|
+
crash_recovery: {
|
|
216
|
+
enabled: boolean;
|
|
217
|
+
max_retries: number;
|
|
218
|
+
retry_delay_ms: number;
|
|
219
|
+
graceful_shutdown_timeout_ms?: number | undefined;
|
|
220
|
+
};
|
|
221
|
+
max_concurrent_goals: number;
|
|
222
|
+
event_server_port: number;
|
|
223
|
+
gateway: {
|
|
224
|
+
slack: {
|
|
225
|
+
path: string;
|
|
226
|
+
enabled: boolean;
|
|
227
|
+
channel_goal_map: Record<string, string>;
|
|
228
|
+
signing_secret?: string | undefined;
|
|
229
|
+
bot_token?: string | undefined;
|
|
230
|
+
};
|
|
231
|
+
};
|
|
232
|
+
proactive_mode: boolean;
|
|
233
|
+
proactive_interval_ms: number;
|
|
234
|
+
goal_review_interval_ms: number;
|
|
235
|
+
adaptive_sleep: {
|
|
236
|
+
enabled: boolean;
|
|
237
|
+
min_interval_ms: number;
|
|
238
|
+
max_interval_ms: number;
|
|
239
|
+
night_start_hour: number;
|
|
240
|
+
night_end_hour: number;
|
|
241
|
+
night_multiplier: number;
|
|
242
|
+
};
|
|
243
|
+
runtime_root?: string | undefined;
|
|
244
|
+
workspace_path?: string | undefined;
|
|
245
|
+
goal_intervals?: Record<string, number> | undefined;
|
|
246
|
+
}, unknown>;
|
|
184
247
|
export type DaemonConfig = z.infer<typeof DaemonConfigSchema>;
|
|
185
248
|
export declare const ResidentActivitySchema: z.ZodObject<{
|
|
186
249
|
kind: z.ZodEnum<["sleep", "suggestion", "negotiation", "curiosity", "dream", "observation", "skipped", "error"]>;
|
|
@@ -191,13 +254,13 @@ export declare const ResidentActivitySchema: z.ZodObject<{
|
|
|
191
254
|
goal_id: z.ZodOptional<z.ZodString>;
|
|
192
255
|
}, "strip", z.ZodTypeAny, {
|
|
193
256
|
trigger: "schedule" | "external" | "proactive_tick";
|
|
194
|
-
kind: "error" | "negotiation" | "curiosity" | "observation" | "
|
|
257
|
+
kind: "error" | "negotiation" | "curiosity" | "observation" | "dream" | "sleep" | "suggestion" | "skipped";
|
|
195
258
|
summary: string;
|
|
196
259
|
recorded_at: string;
|
|
197
260
|
goal_id?: string | undefined;
|
|
198
261
|
suggestion_title?: string | undefined;
|
|
199
262
|
}, {
|
|
200
|
-
kind: "error" | "negotiation" | "curiosity" | "observation" | "
|
|
263
|
+
kind: "error" | "negotiation" | "curiosity" | "observation" | "dream" | "sleep" | "suggestion" | "skipped";
|
|
201
264
|
summary: string;
|
|
202
265
|
recorded_at: string;
|
|
203
266
|
trigger?: "schedule" | "external" | "proactive_tick" | undefined;
|
|
@@ -226,13 +289,13 @@ export declare const DaemonStateSchema: z.ZodObject<{
|
|
|
226
289
|
goal_id: z.ZodOptional<z.ZodString>;
|
|
227
290
|
}, "strip", z.ZodTypeAny, {
|
|
228
291
|
trigger: "schedule" | "external" | "proactive_tick";
|
|
229
|
-
kind: "error" | "negotiation" | "curiosity" | "observation" | "
|
|
292
|
+
kind: "error" | "negotiation" | "curiosity" | "observation" | "dream" | "sleep" | "suggestion" | "skipped";
|
|
230
293
|
summary: string;
|
|
231
294
|
recorded_at: string;
|
|
232
295
|
goal_id?: string | undefined;
|
|
233
296
|
suggestion_title?: string | undefined;
|
|
234
297
|
}, {
|
|
235
|
-
kind: "error" | "negotiation" | "curiosity" | "observation" | "
|
|
298
|
+
kind: "error" | "negotiation" | "curiosity" | "observation" | "dream" | "sleep" | "suggestion" | "skipped";
|
|
236
299
|
summary: string;
|
|
237
300
|
recorded_at: string;
|
|
238
301
|
trigger?: "schedule" | "external" | "proactive_tick" | undefined;
|
|
@@ -246,6 +309,8 @@ export declare const DaemonStateSchema: z.ZodObject<{
|
|
|
246
309
|
wait_until: z.ZodString;
|
|
247
310
|
wait_reason: z.ZodString;
|
|
248
311
|
approval_pending: z.ZodOptional<z.ZodBoolean>;
|
|
312
|
+
activation_kind: z.ZodOptional<z.ZodEnum<["wait_resume"]>>;
|
|
313
|
+
internal_schedule: z.ZodOptional<z.ZodBoolean>;
|
|
249
314
|
}, "strip", z.ZodTypeAny, {
|
|
250
315
|
goal_id: string;
|
|
251
316
|
strategy_id: string;
|
|
@@ -253,6 +318,8 @@ export declare const DaemonStateSchema: z.ZodObject<{
|
|
|
253
318
|
wait_until: string;
|
|
254
319
|
next_observe_at: string;
|
|
255
320
|
approval_pending?: boolean | undefined;
|
|
321
|
+
activation_kind?: "wait_resume" | undefined;
|
|
322
|
+
internal_schedule?: boolean | undefined;
|
|
256
323
|
}, {
|
|
257
324
|
goal_id: string;
|
|
258
325
|
strategy_id: string;
|
|
@@ -260,24 +327,123 @@ export declare const DaemonStateSchema: z.ZodObject<{
|
|
|
260
327
|
wait_until: string;
|
|
261
328
|
next_observe_at: string;
|
|
262
329
|
approval_pending?: boolean | undefined;
|
|
330
|
+
activation_kind?: "wait_resume" | undefined;
|
|
331
|
+
internal_schedule?: boolean | undefined;
|
|
263
332
|
}>, "many">>;
|
|
264
333
|
next_observe_at: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
265
334
|
last_observe_at: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
266
335
|
last_wait_reason: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
267
336
|
approval_pending_count: z.ZodOptional<z.ZodNumber>;
|
|
337
|
+
safe_pause_goals: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodObject<{
|
|
338
|
+
schema_version: z.ZodLiteral<"runtime-safe-pause-v1">;
|
|
339
|
+
goal_id: z.ZodString;
|
|
340
|
+
state: z.ZodEnum<["running", "pause_requested", "paused", "resumed", "emergency_stopped", "completed"]>;
|
|
341
|
+
requested_at: z.ZodOptional<z.ZodString>;
|
|
342
|
+
paused_at: z.ZodOptional<z.ZodString>;
|
|
343
|
+
resumed_at: z.ZodOptional<z.ZodString>;
|
|
344
|
+
completed_at: z.ZodOptional<z.ZodString>;
|
|
345
|
+
updated_at: z.ZodString;
|
|
346
|
+
requested_by: z.ZodOptional<z.ZodString>;
|
|
347
|
+
reason: z.ZodOptional<z.ZodString>;
|
|
348
|
+
checkpoint: z.ZodOptional<z.ZodObject<{
|
|
349
|
+
checkpoint_id: z.ZodString;
|
|
350
|
+
checkpointed_at: z.ZodString;
|
|
351
|
+
reason: z.ZodOptional<z.ZodString>;
|
|
352
|
+
active_goals: z.ZodArray<z.ZodString, "many">;
|
|
353
|
+
queued_goal_ids: z.ZodArray<z.ZodString, "many">;
|
|
354
|
+
current_mode: z.ZodNullable<z.ZodString>;
|
|
355
|
+
candidate_evidence_refs: z.ZodArray<z.ZodString, "many">;
|
|
356
|
+
artifact_refs: z.ZodArray<z.ZodString, "many">;
|
|
357
|
+
next_action: z.ZodNullable<z.ZodString>;
|
|
358
|
+
supervisor_state_ref: z.ZodNullable<z.ZodString>;
|
|
359
|
+
background_run_ids: z.ZodArray<z.ZodString, "many">;
|
|
360
|
+
}, "strip", z.ZodTypeAny, {
|
|
361
|
+
artifact_refs: string[];
|
|
362
|
+
checkpoint_id: string;
|
|
363
|
+
checkpointed_at: string;
|
|
364
|
+
active_goals: string[];
|
|
365
|
+
queued_goal_ids: string[];
|
|
366
|
+
current_mode: string | null;
|
|
367
|
+
candidate_evidence_refs: string[];
|
|
368
|
+
next_action: string | null;
|
|
369
|
+
supervisor_state_ref: string | null;
|
|
370
|
+
background_run_ids: string[];
|
|
371
|
+
reason?: string | undefined;
|
|
372
|
+
}, {
|
|
373
|
+
artifact_refs: string[];
|
|
374
|
+
checkpoint_id: string;
|
|
375
|
+
checkpointed_at: string;
|
|
376
|
+
active_goals: string[];
|
|
377
|
+
queued_goal_ids: string[];
|
|
378
|
+
current_mode: string | null;
|
|
379
|
+
candidate_evidence_refs: string[];
|
|
380
|
+
next_action: string | null;
|
|
381
|
+
supervisor_state_ref: string | null;
|
|
382
|
+
background_run_ids: string[];
|
|
383
|
+
reason?: string | undefined;
|
|
384
|
+
}>>;
|
|
385
|
+
}, "strip", z.ZodTypeAny, {
|
|
386
|
+
updated_at: string;
|
|
387
|
+
goal_id: string;
|
|
388
|
+
schema_version: "runtime-safe-pause-v1";
|
|
389
|
+
state: "running" | "completed" | "paused" | "pause_requested" | "resumed" | "emergency_stopped";
|
|
390
|
+
completed_at?: string | undefined;
|
|
391
|
+
reason?: string | undefined;
|
|
392
|
+
requested_at?: string | undefined;
|
|
393
|
+
paused_at?: string | undefined;
|
|
394
|
+
resumed_at?: string | undefined;
|
|
395
|
+
requested_by?: string | undefined;
|
|
396
|
+
checkpoint?: {
|
|
397
|
+
artifact_refs: string[];
|
|
398
|
+
checkpoint_id: string;
|
|
399
|
+
checkpointed_at: string;
|
|
400
|
+
active_goals: string[];
|
|
401
|
+
queued_goal_ids: string[];
|
|
402
|
+
current_mode: string | null;
|
|
403
|
+
candidate_evidence_refs: string[];
|
|
404
|
+
next_action: string | null;
|
|
405
|
+
supervisor_state_ref: string | null;
|
|
406
|
+
background_run_ids: string[];
|
|
407
|
+
reason?: string | undefined;
|
|
408
|
+
} | undefined;
|
|
409
|
+
}, {
|
|
410
|
+
updated_at: string;
|
|
411
|
+
goal_id: string;
|
|
412
|
+
schema_version: "runtime-safe-pause-v1";
|
|
413
|
+
state: "running" | "completed" | "paused" | "pause_requested" | "resumed" | "emergency_stopped";
|
|
414
|
+
completed_at?: string | undefined;
|
|
415
|
+
reason?: string | undefined;
|
|
416
|
+
requested_at?: string | undefined;
|
|
417
|
+
paused_at?: string | undefined;
|
|
418
|
+
resumed_at?: string | undefined;
|
|
419
|
+
requested_by?: string | undefined;
|
|
420
|
+
checkpoint?: {
|
|
421
|
+
artifact_refs: string[];
|
|
422
|
+
checkpoint_id: string;
|
|
423
|
+
checkpointed_at: string;
|
|
424
|
+
active_goals: string[];
|
|
425
|
+
queued_goal_ids: string[];
|
|
426
|
+
current_mode: string | null;
|
|
427
|
+
candidate_evidence_refs: string[];
|
|
428
|
+
next_action: string | null;
|
|
429
|
+
supervisor_state_ref: string | null;
|
|
430
|
+
background_run_ids: string[];
|
|
431
|
+
reason?: string | undefined;
|
|
432
|
+
} | undefined;
|
|
433
|
+
}>>>;
|
|
268
434
|
}, "strip", z.ZodTypeAny, {
|
|
269
435
|
status: "running" | "idle" | "stopping" | "stopped" | "crashed";
|
|
270
436
|
started_at: string;
|
|
437
|
+
last_error: string | null;
|
|
438
|
+
active_goals: string[];
|
|
271
439
|
pid: number;
|
|
272
440
|
last_loop_at: string | null;
|
|
273
441
|
loop_count: number;
|
|
274
|
-
active_goals: string[];
|
|
275
442
|
crash_count: number;
|
|
276
|
-
last_error: string | null;
|
|
277
443
|
last_resident_at: string | null;
|
|
278
444
|
resident_activity: {
|
|
279
445
|
trigger: "schedule" | "external" | "proactive_tick";
|
|
280
|
-
kind: "error" | "negotiation" | "curiosity" | "observation" | "
|
|
446
|
+
kind: "error" | "negotiation" | "curiosity" | "observation" | "dream" | "sleep" | "suggestion" | "skipped";
|
|
281
447
|
summary: string;
|
|
282
448
|
recorded_at: string;
|
|
283
449
|
goal_id?: string | undefined;
|
|
@@ -293,25 +459,52 @@ export declare const DaemonStateSchema: z.ZodObject<{
|
|
|
293
459
|
wait_until: string;
|
|
294
460
|
next_observe_at: string;
|
|
295
461
|
approval_pending?: boolean | undefined;
|
|
462
|
+
activation_kind?: "wait_resume" | undefined;
|
|
463
|
+
internal_schedule?: boolean | undefined;
|
|
296
464
|
}[] | undefined;
|
|
297
465
|
last_observe_at?: string | null | undefined;
|
|
298
466
|
last_wait_reason?: string | null | undefined;
|
|
299
467
|
approval_pending_count?: number | undefined;
|
|
468
|
+
safe_pause_goals?: Record<string, {
|
|
469
|
+
updated_at: string;
|
|
470
|
+
goal_id: string;
|
|
471
|
+
schema_version: "runtime-safe-pause-v1";
|
|
472
|
+
state: "running" | "completed" | "paused" | "pause_requested" | "resumed" | "emergency_stopped";
|
|
473
|
+
completed_at?: string | undefined;
|
|
474
|
+
reason?: string | undefined;
|
|
475
|
+
requested_at?: string | undefined;
|
|
476
|
+
paused_at?: string | undefined;
|
|
477
|
+
resumed_at?: string | undefined;
|
|
478
|
+
requested_by?: string | undefined;
|
|
479
|
+
checkpoint?: {
|
|
480
|
+
artifact_refs: string[];
|
|
481
|
+
checkpoint_id: string;
|
|
482
|
+
checkpointed_at: string;
|
|
483
|
+
active_goals: string[];
|
|
484
|
+
queued_goal_ids: string[];
|
|
485
|
+
current_mode: string | null;
|
|
486
|
+
candidate_evidence_refs: string[];
|
|
487
|
+
next_action: string | null;
|
|
488
|
+
supervisor_state_ref: string | null;
|
|
489
|
+
background_run_ids: string[];
|
|
490
|
+
reason?: string | undefined;
|
|
491
|
+
} | undefined;
|
|
492
|
+
}> | undefined;
|
|
300
493
|
}, {
|
|
301
494
|
status: "running" | "idle" | "stopping" | "stopped" | "crashed";
|
|
302
495
|
started_at: string;
|
|
496
|
+
active_goals: string[];
|
|
303
497
|
pid: number;
|
|
304
498
|
last_loop_at: string | null;
|
|
305
499
|
loop_count: number;
|
|
306
|
-
active_goals: string[];
|
|
307
500
|
next_observe_at?: string | null | undefined;
|
|
501
|
+
last_error?: string | null | undefined;
|
|
308
502
|
runtime_root?: string | undefined;
|
|
309
503
|
crash_count?: number | undefined;
|
|
310
|
-
last_error?: string | null | undefined;
|
|
311
504
|
interrupted_goals?: string[] | undefined;
|
|
312
505
|
last_resident_at?: string | null | undefined;
|
|
313
506
|
resident_activity?: {
|
|
314
|
-
kind: "error" | "negotiation" | "curiosity" | "observation" | "
|
|
507
|
+
kind: "error" | "negotiation" | "curiosity" | "observation" | "dream" | "sleep" | "suggestion" | "skipped";
|
|
315
508
|
summary: string;
|
|
316
509
|
recorded_at: string;
|
|
317
510
|
trigger?: "schedule" | "external" | "proactive_tick" | undefined;
|
|
@@ -325,10 +518,37 @@ export declare const DaemonStateSchema: z.ZodObject<{
|
|
|
325
518
|
wait_until: string;
|
|
326
519
|
next_observe_at: string;
|
|
327
520
|
approval_pending?: boolean | undefined;
|
|
521
|
+
activation_kind?: "wait_resume" | undefined;
|
|
522
|
+
internal_schedule?: boolean | undefined;
|
|
328
523
|
}[] | undefined;
|
|
329
524
|
last_observe_at?: string | null | undefined;
|
|
330
525
|
last_wait_reason?: string | null | undefined;
|
|
331
526
|
approval_pending_count?: number | undefined;
|
|
527
|
+
safe_pause_goals?: Record<string, {
|
|
528
|
+
updated_at: string;
|
|
529
|
+
goal_id: string;
|
|
530
|
+
schema_version: "runtime-safe-pause-v1";
|
|
531
|
+
state: "running" | "completed" | "paused" | "pause_requested" | "resumed" | "emergency_stopped";
|
|
532
|
+
completed_at?: string | undefined;
|
|
533
|
+
reason?: string | undefined;
|
|
534
|
+
requested_at?: string | undefined;
|
|
535
|
+
paused_at?: string | undefined;
|
|
536
|
+
resumed_at?: string | undefined;
|
|
537
|
+
requested_by?: string | undefined;
|
|
538
|
+
checkpoint?: {
|
|
539
|
+
artifact_refs: string[];
|
|
540
|
+
checkpoint_id: string;
|
|
541
|
+
checkpointed_at: string;
|
|
542
|
+
active_goals: string[];
|
|
543
|
+
queued_goal_ids: string[];
|
|
544
|
+
current_mode: string | null;
|
|
545
|
+
candidate_evidence_refs: string[];
|
|
546
|
+
next_action: string | null;
|
|
547
|
+
supervisor_state_ref: string | null;
|
|
548
|
+
background_run_ids: string[];
|
|
549
|
+
reason?: string | undefined;
|
|
550
|
+
} | undefined;
|
|
551
|
+
}> | undefined;
|
|
332
552
|
}>;
|
|
333
553
|
export type DaemonState = z.infer<typeof DaemonStateSchema>;
|
|
334
554
|
export declare const PIDInfoSchema: z.ZodObject<{
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"daemon.d.ts","sourceRoot":"","sources":["../../../src/runtime/types/daemon.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAC;
|
|
1
|
+
{"version":3,"file":"daemon.d.ts","sourceRoot":"","sources":["../../../src/runtime/types/daemon.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAC;AA0ExB,eAAO,MAAM,kBAAkB;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;WAAqE,CAAC;AACrG,MAAM,MAAM,YAAY,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,kBAAkB,CAAC,CAAC;AAE9D,eAAO,MAAM,sBAAsB;;;;;;;;;;;;;;;;;;;;;EAOjC,CAAC;AACH,MAAM,MAAM,gBAAgB,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,sBAAsB,CAAC,CAAC;AAGtE,eAAO,MAAM,iBAAiB;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;EA4B5B,CAAC;AACH,MAAM,MAAM,WAAW,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,iBAAiB,CAAC,CAAC;AAG5D,eAAO,MAAM,aAAa;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;EAcxB,CAAC;AACH,MAAM,MAAM,OAAO,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,aAAa,CAAC,CAAC"}
|
|
@@ -1,7 +1,26 @@
|
|
|
1
1
|
import { z } from "zod";
|
|
2
|
+
import { RuntimeSafePauseRecordSchema } from "../store/runtime-schemas.js";
|
|
2
3
|
const PID_EPOCH_ISO = "1970-01-01T00:00:00.000Z";
|
|
4
|
+
function applyLegacyDaemonRunPolicy(raw) {
|
|
5
|
+
if (raw === null || typeof raw !== "object" || Array.isArray(raw)) {
|
|
6
|
+
return raw;
|
|
7
|
+
}
|
|
8
|
+
const input = raw;
|
|
9
|
+
if (Object.prototype.hasOwnProperty.call(input, "run_policy")
|
|
10
|
+
|| !Object.prototype.hasOwnProperty.call(input, "iterations_per_cycle")) {
|
|
11
|
+
return raw;
|
|
12
|
+
}
|
|
13
|
+
const iterationsPerCycle = input.iterations_per_cycle;
|
|
14
|
+
if (typeof iterationsPerCycle !== "number" || !Number.isInteger(iterationsPerCycle) || iterationsPerCycle <= 0) {
|
|
15
|
+
return raw;
|
|
16
|
+
}
|
|
17
|
+
return {
|
|
18
|
+
...input,
|
|
19
|
+
run_policy: { mode: "bounded", max_iterations: iterationsPerCycle },
|
|
20
|
+
};
|
|
21
|
+
}
|
|
3
22
|
// Daemon configuration
|
|
4
|
-
|
|
23
|
+
const DaemonConfigObjectSchema = z.object({
|
|
5
24
|
// Deprecated compatibility flag. Durable runtime recovery is always enabled.
|
|
6
25
|
runtime_journal_v2: z.boolean().default(true),
|
|
7
26
|
check_interval_ms: z.number().int().positive().default(300_000), // 5 min default
|
|
@@ -20,7 +39,7 @@ export const DaemonConfigSchema = z.object({
|
|
|
20
39
|
graceful_shutdown_timeout_ms: z.number().int().positive().optional(),
|
|
21
40
|
}).default({}),
|
|
22
41
|
goal_intervals: z.record(z.string(), z.number().int().positive()).optional(), // goal_id -> interval_ms override
|
|
23
|
-
iterations_per_cycle: z.number().int().positive().default(10), //
|
|
42
|
+
iterations_per_cycle: z.number().int().positive().default(10), // telemetry window in resident mode; bounded fallback cap
|
|
24
43
|
max_concurrent_goals: z.number().int().positive().default(4), // max goals the supervisor may execute at once
|
|
25
44
|
event_server_port: z.number().int().nonnegative().default(41700), // EventServer HTTP port (0 = OS-assigned, safe for tests)
|
|
26
45
|
gateway: z.object({
|
|
@@ -33,6 +52,10 @@ export const DaemonConfigSchema = z.object({
|
|
|
33
52
|
}).default({}),
|
|
34
53
|
}).default({}),
|
|
35
54
|
proactive_mode: z.boolean().default(false),
|
|
55
|
+
run_policy: z.object({
|
|
56
|
+
mode: z.enum(["bounded", "resident"]).default("resident"),
|
|
57
|
+
max_iterations: z.number().int().positive().nullable().default(null),
|
|
58
|
+
}).default({}),
|
|
36
59
|
proactive_interval_ms: z.number().default(3_600_000), // 1 hour minimum between proactive ticks
|
|
37
60
|
goal_review_interval_ms: z.number().int().nonnegative().default(7 * 24 * 60 * 60 * 1000), // weekly goal review cadence
|
|
38
61
|
adaptive_sleep: z.object({
|
|
@@ -44,6 +67,7 @@ export const DaemonConfigSchema = z.object({
|
|
|
44
67
|
night_multiplier: z.number().default(2.0), // 2x interval at night
|
|
45
68
|
}).default({}),
|
|
46
69
|
});
|
|
70
|
+
export const DaemonConfigSchema = z.preprocess(applyLegacyDaemonRunPolicy, DaemonConfigObjectSchema);
|
|
47
71
|
export const ResidentActivitySchema = z.object({
|
|
48
72
|
kind: z.enum(["sleep", "suggestion", "negotiation", "curiosity", "dream", "observation", "skipped", "error"]),
|
|
49
73
|
trigger: z.enum(["proactive_tick", "schedule", "external"]).default("proactive_tick"),
|
|
@@ -73,11 +97,14 @@ export const DaemonStateSchema = z.object({
|
|
|
73
97
|
wait_until: z.string(),
|
|
74
98
|
wait_reason: z.string(),
|
|
75
99
|
approval_pending: z.boolean().optional(),
|
|
100
|
+
activation_kind: z.enum(["wait_resume"]).optional(),
|
|
101
|
+
internal_schedule: z.boolean().optional(),
|
|
76
102
|
})).optional(),
|
|
77
103
|
next_observe_at: z.string().nullable().optional(),
|
|
78
104
|
last_observe_at: z.string().datetime().nullable().optional(),
|
|
79
105
|
last_wait_reason: z.string().nullable().optional(),
|
|
80
106
|
approval_pending_count: z.number().int().nonnegative().optional(),
|
|
107
|
+
safe_pause_goals: z.record(RuntimeSafePauseRecordSchema).optional(),
|
|
81
108
|
});
|
|
82
109
|
// PID file info
|
|
83
110
|
export const PIDInfoSchema = z.object({
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"daemon.js","sourceRoot":"","sources":["../../../src/runtime/types/daemon.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAC;
|
|
1
|
+
{"version":3,"file":"daemon.js","sourceRoot":"","sources":["../../../src/runtime/types/daemon.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAC;AACxB,OAAO,EAAE,4BAA4B,EAAE,MAAM,6BAA6B,CAAC;AAE3E,MAAM,aAAa,GAAG,0BAA0B,CAAC;AAEjD,SAAS,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E;IAChC,UAAU,EAAE,CAAC,CAAC,MAAM,EAAE,CAAC,QAAQ,EAAE,CAAC,OAAO,CAAC,aAAa,CAAC;IACxD,kBAAkB,EAAE,CAAC,CAAC,MAAM,EAAE,CAAC,QAAQ,EAAE,CAAC,QAAQ,EAAE;IACpD,qGAAqG;IACrG,SAAS,EAAE,CAAC,CAAC,MAAM,EAAE,CAAC,GAAG,EAAE,CAAC,QAAQ,EAAE,CAAC,QAAQ,EAAE;IACjD,gBAAgB,EAAE,CAAC,CAAC,MAAM,EAAE,CAAC,QAAQ,EAAE,CAAC,QAAQ,EAAE;IAClD,gEAAgE;IAChE,YAAY,EAAE,CAAC,CAAC,MAAM,EAAE,CAAC,GAAG,EAAE,CAAC,QAAQ,EAAE,CAAC,QAAQ,EAAE;IACpD,mBAAmB,EAAE,CAAC,CAAC,MAAM,EAAE,CAAC,QAAQ,EAAE,CAAC,QAAQ,EAAE;IACrD,qEAAqE;IACrE,WAAW,EAAE,CAAC,CAAC,MAAM,EAAE,CAAC,GAAG,EAAE,CAAC,QAAQ,EAAE,CAAC,QAAQ,EAAE;IACnD,OAAO,EAAE,CAAC,CAAC,MAAM,EAAE,CAAC,QAAQ,EAAE;CAC/B,CAAC,CAAC"}
|
|
@@ -38,38 +38,38 @@ export declare const EnvelopeSchema: z.ZodObject<{
|
|
|
38
38
|
roles?: string[] | undefined;
|
|
39
39
|
}>>;
|
|
40
40
|
}, "strip", z.ZodTypeAny, {
|
|
41
|
-
type: "
|
|
41
|
+
type: "event" | "command";
|
|
42
42
|
source: string;
|
|
43
43
|
name: string;
|
|
44
44
|
id: string;
|
|
45
45
|
created_at: number;
|
|
46
46
|
priority: "low" | "high" | "normal" | "critical";
|
|
47
47
|
goal_id?: string | undefined;
|
|
48
|
+
correlation_id?: string | undefined;
|
|
49
|
+
dedupe_key?: string | undefined;
|
|
50
|
+
payload?: unknown;
|
|
51
|
+
ttl_ms?: number | undefined;
|
|
48
52
|
auth?: {
|
|
49
53
|
principal: string;
|
|
50
54
|
roles?: string[] | undefined;
|
|
51
55
|
} | undefined;
|
|
52
|
-
payload?: unknown;
|
|
53
|
-
correlation_id?: string | undefined;
|
|
54
|
-
dedupe_key?: string | undefined;
|
|
55
|
-
ttl_ms?: number | undefined;
|
|
56
56
|
reply_channel_id?: string | undefined;
|
|
57
57
|
}, {
|
|
58
|
-
type: "
|
|
58
|
+
type: "event" | "command";
|
|
59
59
|
source: string;
|
|
60
60
|
name: string;
|
|
61
61
|
id: string;
|
|
62
62
|
created_at: number;
|
|
63
63
|
priority: "low" | "high" | "normal" | "critical";
|
|
64
64
|
goal_id?: string | undefined;
|
|
65
|
+
correlation_id?: string | undefined;
|
|
66
|
+
dedupe_key?: string | undefined;
|
|
67
|
+
payload?: unknown;
|
|
68
|
+
ttl_ms?: number | undefined;
|
|
65
69
|
auth?: {
|
|
66
70
|
principal: string;
|
|
67
71
|
roles?: string[] | undefined;
|
|
68
72
|
} | undefined;
|
|
69
|
-
payload?: unknown;
|
|
70
|
-
correlation_id?: string | undefined;
|
|
71
|
-
dedupe_key?: string | undefined;
|
|
72
|
-
ttl_ms?: number | undefined;
|
|
73
73
|
reply_channel_id?: string | undefined;
|
|
74
74
|
}>;
|
|
75
75
|
export type Envelope = z.infer<typeof EnvelopeSchema>;
|
|
@@ -21,16 +21,16 @@ export declare const HookConfigSchema: z.ZodObject<{
|
|
|
21
21
|
}>>;
|
|
22
22
|
}, "strip", z.ZodTypeAny, {
|
|
23
23
|
type: "webhook" | "shell";
|
|
24
|
+
event: "PreObserve" | "PostObserve" | "PreTaskCreate" | "PostTaskCreate" | "PreExecute" | "PostExecute" | "GoalStateChange" | "LoopCycleStart" | "LoopCycleEnd" | "ReflectionComplete" | "StallDetected";
|
|
24
25
|
enabled: boolean;
|
|
25
26
|
timeout_ms: number;
|
|
26
|
-
event: "PreObserve" | "PostObserve" | "PreTaskCreate" | "PostTaskCreate" | "PreExecute" | "PostExecute" | "GoalStateChange" | "LoopCycleStart" | "LoopCycleEnd" | "ReflectionComplete" | "StallDetected";
|
|
27
27
|
filter?: {
|
|
28
28
|
goal_id?: string | undefined;
|
|
29
29
|
dimension?: string | undefined;
|
|
30
30
|
} | undefined;
|
|
31
|
+
command?: string | undefined;
|
|
31
32
|
url?: string | undefined;
|
|
32
33
|
headers?: Record<string, string> | undefined;
|
|
33
|
-
command?: string | undefined;
|
|
34
34
|
}, {
|
|
35
35
|
type: "webhook" | "shell";
|
|
36
36
|
event: "PreObserve" | "PostObserve" | "PreTaskCreate" | "PostTaskCreate" | "PreExecute" | "PostExecute" | "GoalStateChange" | "LoopCycleStart" | "LoopCycleEnd" | "ReflectionComplete" | "StallDetected";
|
|
@@ -38,11 +38,11 @@ export declare const HookConfigSchema: z.ZodObject<{
|
|
|
38
38
|
goal_id?: string | undefined;
|
|
39
39
|
dimension?: string | undefined;
|
|
40
40
|
} | undefined;
|
|
41
|
+
command?: string | undefined;
|
|
41
42
|
enabled?: boolean | undefined;
|
|
42
43
|
url?: string | undefined;
|
|
43
44
|
headers?: Record<string, string> | undefined;
|
|
44
45
|
timeout_ms?: number | undefined;
|
|
45
|
-
command?: string | undefined;
|
|
46
46
|
}>;
|
|
47
47
|
export type HookConfig = z.infer<typeof HookConfigSchema>;
|
|
48
48
|
export declare const HooksConfigSchema: z.ZodObject<{
|
|
@@ -66,16 +66,16 @@ export declare const HooksConfigSchema: z.ZodObject<{
|
|
|
66
66
|
}>>;
|
|
67
67
|
}, "strip", z.ZodTypeAny, {
|
|
68
68
|
type: "webhook" | "shell";
|
|
69
|
+
event: "PreObserve" | "PostObserve" | "PreTaskCreate" | "PostTaskCreate" | "PreExecute" | "PostExecute" | "GoalStateChange" | "LoopCycleStart" | "LoopCycleEnd" | "ReflectionComplete" | "StallDetected";
|
|
69
70
|
enabled: boolean;
|
|
70
71
|
timeout_ms: number;
|
|
71
|
-
event: "PreObserve" | "PostObserve" | "PreTaskCreate" | "PostTaskCreate" | "PreExecute" | "PostExecute" | "GoalStateChange" | "LoopCycleStart" | "LoopCycleEnd" | "ReflectionComplete" | "StallDetected";
|
|
72
72
|
filter?: {
|
|
73
73
|
goal_id?: string | undefined;
|
|
74
74
|
dimension?: string | undefined;
|
|
75
75
|
} | undefined;
|
|
76
|
+
command?: string | undefined;
|
|
76
77
|
url?: string | undefined;
|
|
77
78
|
headers?: Record<string, string> | undefined;
|
|
78
|
-
command?: string | undefined;
|
|
79
79
|
}, {
|
|
80
80
|
type: "webhook" | "shell";
|
|
81
81
|
event: "PreObserve" | "PostObserve" | "PreTaskCreate" | "PostTaskCreate" | "PreExecute" | "PostExecute" | "GoalStateChange" | "LoopCycleStart" | "LoopCycleEnd" | "ReflectionComplete" | "StallDetected";
|
|
@@ -83,25 +83,25 @@ export declare const HooksConfigSchema: z.ZodObject<{
|
|
|
83
83
|
goal_id?: string | undefined;
|
|
84
84
|
dimension?: string | undefined;
|
|
85
85
|
} | undefined;
|
|
86
|
+
command?: string | undefined;
|
|
86
87
|
enabled?: boolean | undefined;
|
|
87
88
|
url?: string | undefined;
|
|
88
89
|
headers?: Record<string, string> | undefined;
|
|
89
90
|
timeout_ms?: number | undefined;
|
|
90
|
-
command?: string | undefined;
|
|
91
91
|
}>, "many">>;
|
|
92
92
|
}, "strip", z.ZodTypeAny, {
|
|
93
93
|
hooks: {
|
|
94
94
|
type: "webhook" | "shell";
|
|
95
|
+
event: "PreObserve" | "PostObserve" | "PreTaskCreate" | "PostTaskCreate" | "PreExecute" | "PostExecute" | "GoalStateChange" | "LoopCycleStart" | "LoopCycleEnd" | "ReflectionComplete" | "StallDetected";
|
|
95
96
|
enabled: boolean;
|
|
96
97
|
timeout_ms: number;
|
|
97
|
-
event: "PreObserve" | "PostObserve" | "PreTaskCreate" | "PostTaskCreate" | "PreExecute" | "PostExecute" | "GoalStateChange" | "LoopCycleStart" | "LoopCycleEnd" | "ReflectionComplete" | "StallDetected";
|
|
98
98
|
filter?: {
|
|
99
99
|
goal_id?: string | undefined;
|
|
100
100
|
dimension?: string | undefined;
|
|
101
101
|
} | undefined;
|
|
102
|
+
command?: string | undefined;
|
|
102
103
|
url?: string | undefined;
|
|
103
104
|
headers?: Record<string, string> | undefined;
|
|
104
|
-
command?: string | undefined;
|
|
105
105
|
}[];
|
|
106
106
|
}, {
|
|
107
107
|
hooks?: {
|
|
@@ -111,11 +111,11 @@ export declare const HooksConfigSchema: z.ZodObject<{
|
|
|
111
111
|
goal_id?: string | undefined;
|
|
112
112
|
dimension?: string | undefined;
|
|
113
113
|
} | undefined;
|
|
114
|
+
command?: string | undefined;
|
|
114
115
|
enabled?: boolean | undefined;
|
|
115
116
|
url?: string | undefined;
|
|
116
117
|
headers?: Record<string, string> | undefined;
|
|
117
118
|
timeout_ms?: number | undefined;
|
|
118
|
-
command?: string | undefined;
|
|
119
119
|
}[] | undefined;
|
|
120
120
|
}>;
|
|
121
121
|
export type HooksConfig = z.infer<typeof HooksConfigSchema>;
|