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
|
@@ -12,10 +12,58 @@ const COMMANDS = [
|
|
|
12
12
|
description: "Stop the running loop",
|
|
13
13
|
type: "command",
|
|
14
14
|
},
|
|
15
|
+
{
|
|
16
|
+
name: "/clear",
|
|
17
|
+
aliases: [],
|
|
18
|
+
description: "Clear visible chat messages",
|
|
19
|
+
type: "command",
|
|
20
|
+
},
|
|
21
|
+
{
|
|
22
|
+
name: "/sessions",
|
|
23
|
+
aliases: [],
|
|
24
|
+
description: "List saved runtime sessions",
|
|
25
|
+
type: "command",
|
|
26
|
+
},
|
|
27
|
+
{
|
|
28
|
+
name: "/history",
|
|
29
|
+
aliases: [],
|
|
30
|
+
description: "Show saved chat history",
|
|
31
|
+
type: "command",
|
|
32
|
+
},
|
|
33
|
+
{
|
|
34
|
+
name: "/title",
|
|
35
|
+
aliases: [],
|
|
36
|
+
description: "Rename the current session",
|
|
37
|
+
type: "command",
|
|
38
|
+
},
|
|
39
|
+
{
|
|
40
|
+
name: "/resume",
|
|
41
|
+
aliases: [],
|
|
42
|
+
description: "Resume a saved session",
|
|
43
|
+
type: "command",
|
|
44
|
+
},
|
|
45
|
+
{
|
|
46
|
+
name: "/cleanup",
|
|
47
|
+
aliases: [],
|
|
48
|
+
description: "Clean up stale chat sessions",
|
|
49
|
+
type: "command",
|
|
50
|
+
},
|
|
51
|
+
{
|
|
52
|
+
name: "/compact",
|
|
53
|
+
aliases: [],
|
|
54
|
+
description: "Compact older chat context",
|
|
55
|
+
type: "command",
|
|
56
|
+
},
|
|
57
|
+
{
|
|
58
|
+
name: "/context",
|
|
59
|
+
aliases: ["/working-memory"],
|
|
60
|
+
description: "Show working context",
|
|
61
|
+
type: "command",
|
|
62
|
+
},
|
|
15
63
|
{
|
|
16
64
|
name: "/status",
|
|
17
65
|
aliases: [],
|
|
18
|
-
description: "Show
|
|
66
|
+
description: "Show goal and runtime status",
|
|
19
67
|
type: "command",
|
|
20
68
|
},
|
|
21
69
|
{
|
|
@@ -30,30 +78,96 @@ const COMMANDS = [
|
|
|
30
78
|
description: "List all goals",
|
|
31
79
|
type: "command",
|
|
32
80
|
},
|
|
81
|
+
{
|
|
82
|
+
name: "/tasks",
|
|
83
|
+
aliases: [],
|
|
84
|
+
description: "List tasks for a goal",
|
|
85
|
+
type: "command",
|
|
86
|
+
},
|
|
87
|
+
{
|
|
88
|
+
name: "/task",
|
|
89
|
+
aliases: [],
|
|
90
|
+
description: "Show one task",
|
|
91
|
+
type: "command",
|
|
92
|
+
},
|
|
93
|
+
{
|
|
94
|
+
name: "/track",
|
|
95
|
+
aliases: [],
|
|
96
|
+
description: "Promote this chat to a goal",
|
|
97
|
+
type: "command",
|
|
98
|
+
},
|
|
99
|
+
{
|
|
100
|
+
name: "/tend",
|
|
101
|
+
aliases: [],
|
|
102
|
+
description: "Start daemon-backed work from chat",
|
|
103
|
+
type: "command",
|
|
104
|
+
},
|
|
33
105
|
{
|
|
34
106
|
name: "/help",
|
|
35
|
-
aliases: ["?"],
|
|
107
|
+
aliases: ["?", "/?"],
|
|
36
108
|
description: "Show help overlay",
|
|
37
109
|
type: "command",
|
|
38
110
|
},
|
|
39
111
|
{
|
|
40
112
|
name: "/dashboard",
|
|
41
|
-
aliases: [],
|
|
113
|
+
aliases: ["/d"],
|
|
42
114
|
description: "Toggle dashboard sidebar",
|
|
43
115
|
type: "command",
|
|
44
116
|
},
|
|
45
117
|
{
|
|
46
118
|
name: "/settings",
|
|
47
|
-
aliases: [
|
|
119
|
+
aliases: [],
|
|
48
120
|
description: "View and toggle config",
|
|
49
121
|
type: "command",
|
|
50
122
|
},
|
|
123
|
+
{
|
|
124
|
+
name: "/config",
|
|
125
|
+
aliases: [],
|
|
126
|
+
description: "Show provider configuration",
|
|
127
|
+
type: "command",
|
|
128
|
+
},
|
|
129
|
+
{
|
|
130
|
+
name: "/model",
|
|
131
|
+
aliases: [],
|
|
132
|
+
description: "Show active model",
|
|
133
|
+
type: "command",
|
|
134
|
+
},
|
|
51
135
|
{
|
|
52
136
|
name: "/permissions",
|
|
53
137
|
aliases: [],
|
|
54
138
|
description: "Show or update execution policy",
|
|
55
139
|
type: "command",
|
|
56
140
|
},
|
|
141
|
+
{
|
|
142
|
+
name: "/plugins",
|
|
143
|
+
aliases: [],
|
|
144
|
+
description: "List installed plugins",
|
|
145
|
+
type: "command",
|
|
146
|
+
},
|
|
147
|
+
{
|
|
148
|
+
name: "/usage",
|
|
149
|
+
aliases: [],
|
|
150
|
+
description: "Show usage summary",
|
|
151
|
+
type: "command",
|
|
152
|
+
},
|
|
153
|
+
{
|
|
154
|
+
name: "/review",
|
|
155
|
+
aliases: [],
|
|
156
|
+
description: "Show diff and verification context",
|
|
157
|
+
type: "command",
|
|
158
|
+
},
|
|
159
|
+
{
|
|
160
|
+
name: "/fork",
|
|
161
|
+
aliases: [],
|
|
162
|
+
description: "Fork the current chat session",
|
|
163
|
+
type: "command",
|
|
164
|
+
},
|
|
165
|
+
{
|
|
166
|
+
name: "/undo",
|
|
167
|
+
aliases: [],
|
|
168
|
+
description: "Remove the latest chat turn",
|
|
169
|
+
type: "command",
|
|
170
|
+
},
|
|
57
171
|
];
|
|
58
172
|
const GOAL_ARG_COMMANDS = ["/run ", "/start "];
|
|
59
173
|
function isExactCommandMatch(input) {
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"suggestions.js","sourceRoot":"","sources":["../../../../src/interface/tui/chat/suggestions.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,WAAW,EAAE,UAAU,EAAE,MAAM,aAAa,CAAC;AAStD,MAAM,QAAQ,GAAiB;IAC7B;QACE,IAAI,EAAE,MAAM;QACZ,OAAO,EAAE,CAAC,QAAQ,CAAC;QACnB,WAAW,EAAE,qBAAqB;QAClC,IAAI,EAAE,SAAS;KAChB;IACD;QACE,IAAI,EAAE,OAAO;QACb,OAAO,EAAE,CAAC,OAAO,CAAC;QAClB,WAAW,EAAE,uBAAuB;QACpC,IAAI,EAAE,SAAS;KAChB;IACD;QACE,IAAI,EAAE,SAAS;QACf,OAAO,EAAE,EAAE;QACX,WAAW,EAAE,
|
|
1
|
+
{"version":3,"file":"suggestions.js","sourceRoot":"","sources":["../../../../src/interface/tui/chat/suggestions.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,WAAW,EAAE,UAAU,EAAE,MAAM,aAAa,CAAC;AAStD,MAAM,QAAQ,GAAiB;IAC7B;QACE,IAAI,EAAE,MAAM;QACZ,OAAO,EAAE,CAAC,QAAQ,CAAC;QACnB,WAAW,EAAE,qBAAqB;QAClC,IAAI,EAAE,SAAS;KAChB;IACD;QACE,IAAI,EAAE,OAAO;QACb,OAAO,EAAE,CAAC,OAAO,CAAC;QAClB,WAAW,EAAE,uBAAuB;QACpC,IAAI,EAAE,SAAS;KAChB;IACD;QACE,IAAI,EAAE,QAAQ;QACd,OAAO,EAAE,EAAE;QACX,WAAW,EAAE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GAAG,CAAC,CAAC,CAAC,CAAC,UAAU,CAAC,KAAK,EAAE,CAAC,CAAC,KAAK,CAAC,CAAC,CAAC,CAAC,CAAC,CAAC,CAAC,UAAU,CAAC,KAAK,EAAE,CAAC,CAAC,CACzE,CAAC;QACF,MAAM,SAAS,GAAG,WAAW,CAAC,MAAM,CAClC,CAAC,IAAI,EAAE,CAAC,EAAE,EAAE,CAAC,CAAC,CAAC,KAAK,IAAI,IAAI,CAAC,IAAI,KAAK,IAAI,IAAI,CAAC,GAAG,IAAI,CAAC,CAAC,CAAC,CAAC,CAAC,CAAC,CAAC,CAAC,IAAI,CAAC,EACnE,IAAI,CACL,CAAC;QACF,MAAM,IAAI,GACR,SAAS,KAAK,IAAI,IAAI,CAAC,SAAS,KAAK,IAAI,IAAI,SAAS,IAAI,SAAS,CAAC;YAClE,CAAC,CAAC,SAAS;YACX,CAAC,CAAC,SAAS,CAAC;QAEhB,IAAI,IAAI,KAAK,IAAI,EAAE,CAAC;YAClB,MAAM,CAAC,IAAI,CAAC,EAAE,GAAG,EAAE,KAAK,EAAE,IAAI,EAAE,CAAC,CAAC;QACpC,CAAC;IACH,CAAC;IAED,MAAM,CAAC,IAAI,CAAC,CAAC,CAAC,EAAE,CAAC,EAAE,EAAE,CAAC,CAAC,CAAC,KAAK,GAAG,CAAC,CAAC,KAAK,CAAC,CAAC;IACzC,OAAO,MAAM,CAAC,KAAK,CAAC,CAAC,EAAE,CAAC,CAAC,CAAC,GAAG,CAAC,CAAC,CAAC,EAAE,EAAE,CAAC,CAAC,CAAC,GAAG,CAAC,CAAC;AAC9C,CAAC"}
|
|
@@ -4,6 +4,7 @@ import type { CrossPlatformIngressMessage } from "../chat/cross-platform-session
|
|
|
4
4
|
export interface TuiChatSurface {
|
|
5
5
|
onEvent?: ChatEventHandler;
|
|
6
6
|
startSession(cwd: string): void;
|
|
7
|
+
getConversationId?(): string;
|
|
7
8
|
execute(input: string, cwd: string): Promise<ChatRunResult>;
|
|
8
9
|
interruptAndRedirect(input: string, cwd: string): Promise<ChatRunResult>;
|
|
9
10
|
executeIngressMessage(ingress: CrossPlatformIngressMessage, cwd: string): Promise<ChatRunResult>;
|
|
@@ -15,6 +16,7 @@ export declare class SharedManagerTuiChatSurface implements TuiChatSurface {
|
|
|
15
16
|
private readonly manager;
|
|
16
17
|
constructor(deps: ChatRunnerDeps);
|
|
17
18
|
startSession(cwd: string): void;
|
|
19
|
+
getConversationId(): string;
|
|
18
20
|
execute(input: string, cwd: string): Promise<ChatRunResult>;
|
|
19
21
|
interruptAndRedirect(input: string, cwd: string): Promise<ChatRunResult>;
|
|
20
22
|
executeIngressMessage(ingress: CrossPlatformIngressMessage, cwd: string): Promise<ChatRunResult>;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"chat-surface.d.ts","sourceRoot":"","sources":["../../../src/interface/tui/chat-surface.ts"],"names":[],"mappings":"AACA,OAAO,KAAK,EAAE,gBAAgB,EAAE,MAAM,wBAAwB,CAAC;AAC/D,OAAO,KAAK,EAAE,aAAa,EAAE,cAAc,EAAE,MAAM,wBAAwB,CAAC;AAE5E,OAAO,KAAK,EAAE,2BAA2B,EAAE,MAAM,mCAAmC,CAAC;AAErF,MAAM,WAAW,cAAc;IAC7B,OAAO,CAAC,EAAE,gBAAgB,CAAC;IAC3B,YAAY,CAAC,GAAG,EAAE,MAAM,GAAG,IAAI,CAAC;IAChC,OAAO,CAAC,KAAK,EAAE,MAAM,EAAE,GAAG,EAAE,MAAM,GAAG,OAAO,CAAC,aAAa,CAAC,CAAC;IAC5D,oBAAoB,CAAC,KAAK,EAAE,MAAM,EAAE,GAAG,EAAE,MAAM,GAAG,OAAO,CAAC,aAAa,CAAC,CAAC;IACzE,qBAAqB,CAAC,OAAO,EAAE,2BAA2B,EAAE,GAAG,EAAE,MAAM,GAAG,OAAO,CAAC,aAAa,CAAC,CAAC;CAClG;AAED,qBAAa,2BAA4B,YAAW,cAAc;IAChE,OAAO,EAAE,gBAAgB,GAAG,SA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AC;CAClG;AAED,qBAAa,2BAA4B,YAAW,cAAc;IAChE,OAAO,EAAE,gBAAgB,GAAG,SAAS,CAAa;IAElD,OAAO,CAAC,QAAQ,CAAC,cAAc,CAAgB;IAC/C,OAAO,CAAC,UAAU,CAAuB;IACzC,OAAO,CAAC,QAAQ,CAAC,OAAO,CAAkC;gBAE9C,IAAI,EAAE,cAAc;IAIhC,YAAY,CAAC,GAAG,EAAE,MAAM,GAAG,IAAI;IAI/B,iBAAiB,IAAI,MAAM;IAI3B,OAAO,CAAC,KAAK,EAAE,MAAM,EAAE,GAAG,EAAE,MAAM,GAAG,OAAO,CAAC,aAAa,CAAC;IAqB3D,oBAAoB,CAAC,KAAK,EAAE,MAAM,EAAE,GAAG,EAAE,MAAM,GAAG,OAAO,CAAC,aAAa,CAAC;IAYxE,qBAAqB,CAAC,OAAO,EAAE,2BAA2B,EAAE,GAAG,EAAE,MAAM,GAAG,OAAO,CAAC,aAAa,CAAC;CAwBjG"}
|
|
@@ -11,6 +11,9 @@ export class SharedManagerTuiChatSurface {
|
|
|
11
11
|
startSession(cwd) {
|
|
12
12
|
this.sessionCwd = cwd;
|
|
13
13
|
}
|
|
14
|
+
getConversationId() {
|
|
15
|
+
return this.conversationId;
|
|
16
|
+
}
|
|
14
17
|
execute(input, cwd) {
|
|
15
18
|
const effectiveCwd = this.sessionCwd ?? cwd;
|
|
16
19
|
return this.manager.execute(input, {
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"chat-surface.js","sourceRoot":"","sources":["../../../src/interface/tui/chat-surface.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,UAAU,EAAE,MAAM,aAAa,CAAC;AAGzC,OAAO,EAAE,+BAA+B,EAAE,MAAM,mCAAmC,CAAC;
|
|
1
|
+
{"version":3,"file":"chat-surface.js","sourceRoot":"","sources":["../../../src/interface/tui/chat-surface.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,UAAU,EAAE,MAAM,aAAa,CAAC;AAGzC,O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ry/types.js";
|
|
3
|
+
import type { RuntimeEvidenceSummary } from "../../runtime/store/evidence-ledger.js";
|
|
4
|
+
import type { RuntimeHealthSnapshot } from "../../runtime/store/runtime-schemas.js";
|
|
2
5
|
interface DashboardProps {
|
|
3
6
|
state: LoopState;
|
|
4
7
|
maxIterations?: number;
|
|
8
|
+
runtimeSessions?: RuntimeSessionRegistrySnapshot | null;
|
|
9
|
+
runtimeHealth?: RuntimeHealthSnapshot | null;
|
|
10
|
+
evidenceSummaries?: RuntimeEvidenceSummaryByRun;
|
|
5
11
|
}
|
|
12
|
+
export type WorkDashboardRowKind = "session" | "run";
|
|
13
|
+
export type WorkDashboardRowGroup = "active" | "recent";
|
|
14
|
+
export interface WorkDashboardRow {
|
|
15
|
+
kind: WorkDashboardRowKind;
|
|
16
|
+
group: WorkDashboardRowGroup;
|
|
17
|
+
id: string;
|
|
18
|
+
title: string;
|
|
19
|
+
status: string;
|
|
20
|
+
summary: string;
|
|
21
|
+
updatedAt: string | null;
|
|
22
|
+
workspace: string | null;
|
|
23
|
+
attention: boolean;
|
|
24
|
+
stale: boolean;
|
|
25
|
+
}
|
|
26
|
+
export type RuntimeEvidenceSummaryByRun = Record<string, RuntimeEvidenceSummary>;
|
|
27
|
+
export interface OperatorConsoleModel {
|
|
28
|
+
selectedId: string;
|
|
29
|
+
selectedTitle: string;
|
|
30
|
+
lifecycle: string;
|
|
31
|
+
liveness: string;
|
|
32
|
+
usefulProgress: string;
|
|
33
|
+
currentMode: string;
|
|
34
|
+
latestEvents: string[];
|
|
35
|
+
artifacts: string[];
|
|
36
|
+
metrics: string[];
|
|
37
|
+
blockers: string[];
|
|
38
|
+
controls: string[];
|
|
39
|
+
}
|
|
40
|
+
export declare function buildOperatorConsoleModel(snapshot: RuntimeSessionRegistrySnapshot | null | undefined, health: RuntimeHealthSnapshot | null | undefined, evidenceSummaries?: RuntimeEvidenceSummaryByRun, now?: Date): OperatorConsoleModel | null;
|
|
41
|
+
export declare function buildWorkDashboardRows(snapshot: RuntimeSessionRegistrySnapshot | null | undefined, now?: Date, evidenceSummaries?: RuntimeEvidenceSummaryByRun): WorkDashboardRow[];
|
|
6
42
|
export declare function statusLabel(status: string): string;
|
|
7
|
-
export declare function Dashboard({ state }: DashboardProps): import("react/jsx-runtime").JSX.Element;
|
|
43
|
+
export declare function Dashboard({ state, runtimeSessions, runtimeHealth, evidenceSummaries }: DashboardProps): import("react/jsx-runtime").JSX.Element;
|
|
8
44
|
export {};
|
|
9
45
|
//# sourceMappingURL=dashboard.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"dashboard.d.ts","sourceRoot":"","sources":["../../../src/interface/tui/dashboard.tsx"],"names":[],"mappings":"AAGA,OAAO,KAAK,EAAE,SAAS,EAAqB,MAAM,eAAe,CAAC;
|
|
1
|
+
{"version":3,"file":"dashboard.d.ts","sourceRoot":"","sources":["../../../src/interface/tui/dashboard.tsx"],"names":[],"mappings":"AAGA,OAAO,KAAK,EAAE,SAAS,EAAqB,MAAM,eAAe,CAAC;AAElE,OAAO,KAAK,EAGV,8BAA8B,EAC/B,MAAM,yCAAyC,CAAC;AACjD,OAAO,KAAK,EAAE,sBAAsB,EAAE,MAAM,wCAAwC,CAAC;AACrF,OAAO,KAAK,EAAE,qBAAqB,EAAE,MAAM,wCAAwC,CAAC;AAEpF,UAAU,cAAc;IACtB,KAAK,EAAE,SAAS,CAAC;IACjB,aAAa,CAAC,EAAE,MAAM,CAAC;IACvB,eAAe,CAAC,EAAE,8BAA8B,GAAG,IAAI,CAAC;IACxD,aAAa,CAAC,EAAE,qBAAqB,GAAG,IAAI,CAAC;IAC7C,iBAAiB,CAAC,EAAE,2BAA2B,CAAC;CACjD;AAMD,MAAM,MAAM,oBAAoB,GAAG,SAAS,GAAG,KAAK,CAAC;AACrD,MAAM,MAAM,qBAAqB,GAAG,QAAQ,GAAG,QAAQ,CAAC;AAExD,MAAM,WAAW,gBAAgB;IAC/B,IAAI,EAAE,oBAAoB,CAAC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AAS,CAAC,EAAE,KAAK,EAAE,eAAe,EAAE,aAAa,EAAE,iBAAiB,EAAE,EAAE,cAAc,2CA0GrG"}
|
|
@@ -3,11 +3,250 @@ import { Box, Text } from "ink";
|
|
|
3
3
|
import { CheckerboardSpinner } from "./checkerboard-spinner.js";
|
|
4
4
|
import { theme, statusColor, progressColor } from "./theme.js";
|
|
5
5
|
const BAR_WIDTH = 20;
|
|
6
|
+
const CURRENT_STALE_MS = 60 * 60 * 1000;
|
|
7
|
+
const RECENT_WINDOW_MS = 7 * 24 * 60 * 60 * 1000;
|
|
6
8
|
function renderBar(progress) {
|
|
7
9
|
const filled = Math.round((Math.min(100, Math.max(0, progress)) / 100) * BAR_WIDTH);
|
|
8
10
|
const empty = BAR_WIDTH - filled;
|
|
9
11
|
return "█".repeat(filled) + "░".repeat(empty);
|
|
10
12
|
}
|
|
13
|
+
function timestampMs(value) {
|
|
14
|
+
if (!value)
|
|
15
|
+
return null;
|
|
16
|
+
const parsed = Date.parse(value);
|
|
17
|
+
return Number.isNaN(parsed) ? null : parsed;
|
|
18
|
+
}
|
|
19
|
+
function latestSessionTime(session) {
|
|
20
|
+
return session.last_event_at ?? session.updated_at ?? session.created_at;
|
|
21
|
+
}
|
|
22
|
+
function latestRunTime(run) {
|
|
23
|
+
return run.completed_at ?? run.updated_at ?? run.started_at ?? run.created_at;
|
|
24
|
+
}
|
|
25
|
+
function isStaleCurrent(updatedAt, now) {
|
|
26
|
+
const ms = timestampMs(updatedAt);
|
|
27
|
+
if (ms === null)
|
|
28
|
+
return true;
|
|
29
|
+
return now.getTime() - ms > CURRENT_STALE_MS;
|
|
30
|
+
}
|
|
31
|
+
function isRecent(updatedAt, now) {
|
|
32
|
+
const ms = timestampMs(updatedAt);
|
|
33
|
+
if (ms === null)
|
|
34
|
+
return false;
|
|
35
|
+
return now.getTime() - ms <= RECENT_WINDOW_MS;
|
|
36
|
+
}
|
|
37
|
+
function sessionAttention(session, stale) {
|
|
38
|
+
return stale
|
|
39
|
+
|| session.status === "lost"
|
|
40
|
+
|| session.status === "unknown";
|
|
41
|
+
}
|
|
42
|
+
function summaryHasOpenApproval(summary) {
|
|
43
|
+
return Boolean(summary?.evaluator_summary.approval_required_actions.some((action) => action.status === "approval_required" || action.status === "blocked"));
|
|
44
|
+
}
|
|
45
|
+
function summaryHasStructuredBlocker(summary) {
|
|
46
|
+
if (!summary)
|
|
47
|
+
return false;
|
|
48
|
+
return Boolean(summary.evaluator_summary.gap && summary.evaluator_summary.gap.kind !== "none")
|
|
49
|
+
|| summary.evaluator_summary.observations.some((observation) => observation.status === "blocked" || observation.validation?.status === "blocked")
|
|
50
|
+
|| summary.recent_failed_attempts.length > 0
|
|
51
|
+
|| summary.failed_lineages.length > 0;
|
|
52
|
+
}
|
|
53
|
+
function runAttention(run, summary) {
|
|
54
|
+
return run.status === "failed"
|
|
55
|
+
|| run.status === "timed_out"
|
|
56
|
+
|| run.status === "lost"
|
|
57
|
+
|| run.status === "unknown"
|
|
58
|
+
|| summaryHasOpenApproval(summary)
|
|
59
|
+
|| summaryHasStructuredBlocker(summary);
|
|
60
|
+
}
|
|
61
|
+
function runLifecycle(run, row, summary) {
|
|
62
|
+
if (row.stale)
|
|
63
|
+
return "stale";
|
|
64
|
+
if (!run)
|
|
65
|
+
return row.status;
|
|
66
|
+
if (summaryHasOpenApproval(summary))
|
|
67
|
+
return "approval-required";
|
|
68
|
+
if (summaryHasStructuredBlocker(summary))
|
|
69
|
+
return "blocked";
|
|
70
|
+
if (run.status === "succeeded")
|
|
71
|
+
return "completed";
|
|
72
|
+
if (run.status === "failed" || run.status === "timed_out" || run.status === "lost" || run.status === "unknown")
|
|
73
|
+
return "failed";
|
|
74
|
+
return run.status;
|
|
75
|
+
}
|
|
76
|
+
function summarizeLiveness(row, health) {
|
|
77
|
+
const longRunning = health?.long_running;
|
|
78
|
+
if (!longRunning) {
|
|
79
|
+
if (row.stale)
|
|
80
|
+
return "stale catalog heartbeat";
|
|
81
|
+
return row.group === "active" ? "catalog current" : "not active";
|
|
82
|
+
}
|
|
83
|
+
const process = longRunning.signals.process.status;
|
|
84
|
+
const logFreshness = longRunning.signals.log_freshness.status;
|
|
85
|
+
const selected = row.stale ? "stale catalog heartbeat" : row.group === "active" ? "catalog current" : "not active";
|
|
86
|
+
return `${selected}; daemon aggregate ${process}; logs ${logFreshness}; ${longRunning.summary}`;
|
|
87
|
+
}
|
|
88
|
+
function summarizeUsefulProgress(summary, health) {
|
|
89
|
+
const trend = summary?.metric_trends[0];
|
|
90
|
+
if (trend) {
|
|
91
|
+
return `${trend.metric_key} ${trend.trend}; latest ${trend.latest_value}; best ${trend.best_value}`;
|
|
92
|
+
}
|
|
93
|
+
const metricProgress = health?.long_running?.signals.metric_progress;
|
|
94
|
+
if (metricProgress && metricProgress.status !== "unknown") {
|
|
95
|
+
const metric = metricProgress.metric_name ? `${metricProgress.metric_name} ` : "";
|
|
96
|
+
const values = typeof metricProgress.current_value === "number"
|
|
97
|
+
? ` current ${metricProgress.current_value}`
|
|
98
|
+
: "";
|
|
99
|
+
return `no selected metric progress evidence; daemon aggregate ${metric}${metricProgress.status}${values}`.trim();
|
|
100
|
+
}
|
|
101
|
+
return "no selected metric progress evidence";
|
|
102
|
+
}
|
|
103
|
+
function summarizeMode(summary) {
|
|
104
|
+
const phase = summary?.evaluator_summary.budgets.find((budget) => budget.phase)?.phase;
|
|
105
|
+
if (phase)
|
|
106
|
+
return phase;
|
|
107
|
+
const portfolio = summary?.candidate_selection_summary.final_portfolio;
|
|
108
|
+
if (portfolio && (portfolio.safe || portfolio.aggressive || portfolio.diverse))
|
|
109
|
+
return "finalization";
|
|
110
|
+
if (summary?.candidate_selection_summary.robust_best
|
|
111
|
+
|| summary?.candidate_selection_summary.raw_best
|
|
112
|
+
|| (summary?.recommended_candidate_portfolio.length ?? 0) > 0) {
|
|
113
|
+
return "consolidation";
|
|
114
|
+
}
|
|
115
|
+
if (summary?.latest_strategy
|
|
116
|
+
|| (summary?.dream_checkpoints.length ?? 0) > 0
|
|
117
|
+
|| (summary?.divergent_exploration.length ?? 0) > 0) {
|
|
118
|
+
return "exploration";
|
|
119
|
+
}
|
|
120
|
+
return "unknown";
|
|
121
|
+
}
|
|
122
|
+
function summarizeMetrics(summary) {
|
|
123
|
+
if (!summary)
|
|
124
|
+
return ["No metric evidence yet."];
|
|
125
|
+
const trends = summary.metric_trends.slice(0, 3).map((trend) => `${trend.metric_key}: latest ${trend.latest_value}, best ${trend.best_value}, ${trend.trend}`);
|
|
126
|
+
if (trends.length > 0)
|
|
127
|
+
return trends;
|
|
128
|
+
const bestMetric = summary.best_evidence?.metrics.find((metric) => typeof metric.value === "number");
|
|
129
|
+
return bestMetric ? [`${bestMetric.label}: ${bestMetric.value}`] : ["No metric evidence yet."];
|
|
130
|
+
}
|
|
131
|
+
function summarizeArtifacts(run, summary) {
|
|
132
|
+
const artifacts = [
|
|
133
|
+
...(run?.artifacts ?? []).map((artifact) => `${artifact.label}: ${artifact.path ?? artifact.url ?? artifact.kind}`),
|
|
134
|
+
...(summary?.artifact_retention.cleanup_plan.actions ?? []).map((artifact) => `${artifact.label}: ${artifact.path ?? artifact.state_relative_path ?? artifact.url ?? artifact.kind}`),
|
|
135
|
+
...(summary?.recent_entries ?? []).flatMap((entry) => entry.artifacts.map((artifact) => `${artifact.label}: ${artifact.path ?? artifact.state_relative_path ?? artifact.url ?? artifact.kind}`)),
|
|
136
|
+
];
|
|
137
|
+
return [...new Set(artifacts)].slice(0, 4);
|
|
138
|
+
}
|
|
139
|
+
function summarizeEvents(run, summary) {
|
|
140
|
+
const events = [
|
|
141
|
+
...(run?.summary ? [run.summary] : []),
|
|
142
|
+
...(run?.error ? [run.error] : []),
|
|
143
|
+
...(summary?.recent_entries ?? []).map((entry) => entry.summary ?? `${entry.kind} ${entry.outcome}`),
|
|
144
|
+
];
|
|
145
|
+
return events.filter(Boolean).slice(0, 4);
|
|
146
|
+
}
|
|
147
|
+
function summarizeBlockers(row, run, summary) {
|
|
148
|
+
const blockers = [];
|
|
149
|
+
if (row.attention)
|
|
150
|
+
blockers.push(row.status === "stale" ? "stale catalog state" : row.summary);
|
|
151
|
+
if (run?.error
|
|
152
|
+
&& (row.attention || run.status === "failed" || run.status === "timed_out" || run.status === "lost" || run.status === "unknown")) {
|
|
153
|
+
blockers.push(run.error);
|
|
154
|
+
}
|
|
155
|
+
blockers.push(...(summary?.evaluator_summary.approval_required_actions ?? []).map((action) => action.label));
|
|
156
|
+
if (summary?.evaluator_summary.gap && summary.evaluator_summary.gap.kind !== "none") {
|
|
157
|
+
blockers.push(summary.evaluator_summary.gap.summary);
|
|
158
|
+
}
|
|
159
|
+
return [...new Set(blockers.filter(Boolean))].slice(0, 4);
|
|
160
|
+
}
|
|
161
|
+
function findRelatedRun(snapshot, row) {
|
|
162
|
+
if (row.kind === "run")
|
|
163
|
+
return snapshot.background_runs.find((run) => run.id === row.id) ?? null;
|
|
164
|
+
return snapshot.background_runs.find((run) => run.child_session_id === row.id || run.parent_session_id === row.id || run.process_session_id === row.id) ?? null;
|
|
165
|
+
}
|
|
166
|
+
export function buildOperatorConsoleModel(snapshot, health, evidenceSummaries = {}, now = new Date()) {
|
|
167
|
+
const rows = buildWorkDashboardRows(snapshot, now, evidenceSummaries);
|
|
168
|
+
if (!snapshot || rows.length === 0)
|
|
169
|
+
return null;
|
|
170
|
+
const selected = rows.find((row) => row.attention) ?? rows.find((row) => row.group === "active") ?? rows[0];
|
|
171
|
+
const run = findRelatedRun(snapshot, selected);
|
|
172
|
+
const summary = run ? evidenceSummaries[run.id] : undefined;
|
|
173
|
+
const artifacts = summarizeArtifacts(run, summary);
|
|
174
|
+
const latestEvents = summarizeEvents(run, summary);
|
|
175
|
+
const blockers = summarizeBlockers(selected, run, summary);
|
|
176
|
+
return {
|
|
177
|
+
selectedId: selected.id,
|
|
178
|
+
selectedTitle: selected.title,
|
|
179
|
+
lifecycle: runLifecycle(run, selected, summary),
|
|
180
|
+
liveness: summarizeLiveness(selected, health),
|
|
181
|
+
usefulProgress: summarizeUsefulProgress(summary, health),
|
|
182
|
+
currentMode: summarizeMode(summary),
|
|
183
|
+
latestEvents: latestEvents.length > 0 ? latestEvents : ["No recent events or logs found."],
|
|
184
|
+
artifacts: artifacts.length > 0 ? artifacts : ["No produced artifacts found."],
|
|
185
|
+
metrics: summarizeMetrics(summary),
|
|
186
|
+
blockers: blockers.length > 0 ? blockers : ["No blockers detected."],
|
|
187
|
+
controls: [
|
|
188
|
+
"inspect/pause/resume/finalize: available from natural-language chat when the selected run has a typed runtime bridge",
|
|
189
|
+
"finalize/external actions: approval-gated; submit/publish/secret/production/destructive actions are not executed automatically",
|
|
190
|
+
],
|
|
191
|
+
};
|
|
192
|
+
}
|
|
193
|
+
function compact(value, fallback) {
|
|
194
|
+
const trimmed = value?.trim();
|
|
195
|
+
return trimmed ? trimmed : fallback;
|
|
196
|
+
}
|
|
197
|
+
export function buildWorkDashboardRows(snapshot, now = new Date(), evidenceSummaries = {}) {
|
|
198
|
+
if (!snapshot)
|
|
199
|
+
return [];
|
|
200
|
+
const rows = [];
|
|
201
|
+
for (const session of snapshot.sessions) {
|
|
202
|
+
const updatedAt = latestSessionTime(session);
|
|
203
|
+
const stale = isStaleCurrent(updatedAt, now);
|
|
204
|
+
const activeState = (session.status === "active" || session.status === "idle") && !stale;
|
|
205
|
+
const recentState = !activeState && isRecent(updatedAt, now);
|
|
206
|
+
if (!activeState && !recentState)
|
|
207
|
+
continue;
|
|
208
|
+
rows.push({
|
|
209
|
+
kind: "session",
|
|
210
|
+
group: activeState ? "active" : "recent",
|
|
211
|
+
id: session.id,
|
|
212
|
+
title: compact(session.title, session.id),
|
|
213
|
+
status: stale ? "stale" : session.status,
|
|
214
|
+
summary: session.attachable ? "attachable runtime session" : "runtime session",
|
|
215
|
+
updatedAt,
|
|
216
|
+
workspace: session.workspace,
|
|
217
|
+
attention: sessionAttention(session, stale),
|
|
218
|
+
stale,
|
|
219
|
+
});
|
|
220
|
+
}
|
|
221
|
+
for (const run of snapshot.background_runs) {
|
|
222
|
+
const updatedAt = latestRunTime(run);
|
|
223
|
+
const stale = isStaleCurrent(updatedAt, now);
|
|
224
|
+
const activeState = (run.status === "queued" || run.status === "running") && !stale;
|
|
225
|
+
const terminalState = ["succeeded", "failed", "timed_out", "cancelled", "lost", "unknown"].includes(run.status);
|
|
226
|
+
const recentState = !activeState && (terminalState || stale) && isRecent(updatedAt, now);
|
|
227
|
+
if (!activeState && !recentState)
|
|
228
|
+
continue;
|
|
229
|
+
rows.push({
|
|
230
|
+
kind: "run",
|
|
231
|
+
group: activeState ? "active" : "recent",
|
|
232
|
+
id: run.id,
|
|
233
|
+
title: compact(run.title, run.id),
|
|
234
|
+
status: stale ? "stale" : run.status,
|
|
235
|
+
summary: compact(run.error ?? run.summary, run.kind),
|
|
236
|
+
updatedAt,
|
|
237
|
+
workspace: run.workspace,
|
|
238
|
+
attention: runAttention(run, evidenceSummaries[run.id]) || stale,
|
|
239
|
+
stale,
|
|
240
|
+
});
|
|
241
|
+
}
|
|
242
|
+
return rows.sort((a, b) => {
|
|
243
|
+
if (a.group !== b.group)
|
|
244
|
+
return a.group === "active" ? -1 : 1;
|
|
245
|
+
if (a.attention !== b.attention)
|
|
246
|
+
return a.attention ? -1 : 1;
|
|
247
|
+
return (timestampMs(b.updatedAt) ?? 0) - (timestampMs(a.updatedAt) ?? 0);
|
|
248
|
+
});
|
|
249
|
+
}
|
|
11
250
|
export function statusLabel(status) {
|
|
12
251
|
switch (status) {
|
|
13
252
|
case "idle": return "Idle";
|
|
@@ -38,7 +277,31 @@ function DimensionRow({ dim }) {
|
|
|
38
277
|
const color = progressColor(dim.progress);
|
|
39
278
|
return (_jsxs(Box, { children: [_jsxs(Text, { children: [label, " "] }), _jsx(Text, { color: color, children: bar }), _jsxs(Text, { children: [" ", pct] })] }));
|
|
40
279
|
}
|
|
41
|
-
|
|
280
|
+
function formatUpdated(value) {
|
|
281
|
+
if (!value)
|
|
282
|
+
return "unknown";
|
|
283
|
+
return value.replace("T", " ").replace(/\.\d{3}Z$/, "Z");
|
|
284
|
+
}
|
|
285
|
+
function WorkRow({ row }) {
|
|
286
|
+
const marker = row.attention ? "!" : row.group === "active" ? ">" : "-";
|
|
287
|
+
const color = row.attention ? theme.warning : row.group === "active" ? theme.success : theme.text;
|
|
288
|
+
return (_jsxs(Box, { flexDirection: "column", marginBottom: 1, children: [_jsxs(Text, { color: color, children: [marker, " ", row.title, " ", _jsxs(Text, { dimColor: true, children: ["(", row.kind, ":", row.id, ")"] })] }), _jsxs(Text, { children: [_jsxs(Text, { dimColor: true, children: [" ", row.group, " / "] }), _jsx(Text, { color: color, children: row.status }), _jsxs(Text, { dimColor: true, children: [" / updated ", formatUpdated(row.updatedAt)] })] }), _jsxs(Text, { dimColor: true, children: [" ", row.summary] }), row.workspace && _jsxs(Text, { dimColor: true, children: [" ", row.workspace] })] }));
|
|
289
|
+
}
|
|
290
|
+
function WorkDashboard({ rows }) {
|
|
291
|
+
const activeRows = rows.filter((row) => row.group === "active");
|
|
292
|
+
const recentRows = rows.filter((row) => row.group === "recent").slice(0, 6);
|
|
293
|
+
const attentionRows = rows.filter((row) => row.attention);
|
|
294
|
+
return (_jsxs(Box, { flexDirection: "column", paddingX: 1, paddingY: 1, overflow: "hidden", children: [_jsx(Text, { bold: true, color: theme.brand, children: "Work Dashboard" }), _jsxs(Text, { dimColor: true, children: ["Active ", activeRows.length, " Recent ", recentRows.length, " Attention ", attentionRows.length] }), _jsx(Text, { children: " " }), attentionRows.length > 0 && (_jsxs(_Fragment, { children: [_jsx(Text, { color: theme.warning, children: "Attention needed" }), attentionRows.slice(0, 4).map((row) => _jsx(WorkRow, { row: row }, `${row.kind}:${row.id}`))] })), _jsx(Text, { color: theme.success, children: "Active work" }), activeRows.length === 0 ? (_jsx(Text, { dimColor: true, children: " No active background work." })) : (activeRows.slice(0, 6).map((row) => _jsx(WorkRow, { row: row }, `${row.kind}:${row.id}`))), _jsx(Text, { children: " " }), _jsx(Text, { dimColor: true, children: "Recent work" }), recentRows.length === 0 ? (_jsx(Text, { dimColor: true, children: " No recent background work." })) : (recentRows.map((row) => _jsx(WorkRow, { row: row }, `${row.kind}:${row.id}`)))] }));
|
|
295
|
+
}
|
|
296
|
+
function OperatorConsole({ model }) {
|
|
297
|
+
return (_jsxs(Box, { flexDirection: "column", marginTop: 1, children: [_jsx(Text, { bold: true, color: theme.brand, children: "Operator Console" }), _jsxs(Text, { children: [_jsx(Text, { color: theme.success, children: model.selectedTitle }), _jsxs(Text, { dimColor: true, children: [" ", model.selectedId] })] }), _jsxs(Text, { children: [_jsx(Text, { dimColor: true, children: "Lifecycle " }), _jsx(Text, { color: model.lifecycle === "failed" || model.lifecycle === "blocked" || model.lifecycle === "approval-required" ? theme.warning : theme.text, children: model.lifecycle })] }), _jsxs(Text, { children: [_jsx(Text, { dimColor: true, children: "Liveness " }), _jsx(Text, { children: model.liveness })] }), _jsxs(Text, { children: [_jsx(Text, { dimColor: true, children: "Useful progress " }), _jsx(Text, { children: model.usefulProgress })] }), _jsxs(Text, { children: [_jsx(Text, { dimColor: true, children: "Mode " }), _jsx(Text, { children: model.currentMode })] }), _jsx(Text, { color: theme.warning, children: "Blockers" }), model.blockers.slice(0, 3).map((line, index) => _jsxs(Text, { dimColor: true, children: [" ", line] }, `blocker-${index}`)), _jsx(Text, { dimColor: true, children: "Metrics" }), model.metrics.slice(0, 3).map((line, index) => _jsxs(Text, { dimColor: true, children: [" ", line] }, `metric-${index}`)), _jsx(Text, { dimColor: true, children: "Recent events" }), model.latestEvents.slice(0, 3).map((line, index) => _jsxs(Text, { dimColor: true, children: [" ", line] }, `event-${index}`)), _jsx(Text, { dimColor: true, children: "Artifacts" }), model.artifacts.slice(0, 3).map((line, index) => _jsxs(Text, { dimColor: true, children: [" ", line] }, `artifact-${index}`)), _jsx(Text, { dimColor: true, children: "Controls" }), model.controls.map((line, index) => _jsxs(Text, { dimColor: true, children: [" ", line] }, `control-${index}`))] }));
|
|
298
|
+
}
|
|
299
|
+
export function Dashboard({ state, runtimeSessions, runtimeHealth, evidenceSummaries }) {
|
|
300
|
+
const workRows = buildWorkDashboardRows(runtimeSessions, new Date(), evidenceSummaries);
|
|
301
|
+
const operatorConsole = buildOperatorConsoleModel(runtimeSessions, runtimeHealth, evidenceSummaries);
|
|
302
|
+
if (workRows.length > 0) {
|
|
303
|
+
return (_jsxs(Box, { flexDirection: "column", overflow: "hidden", children: [_jsx(WorkDashboard, { rows: workRows }), operatorConsole && _jsx(OperatorConsole, { model: operatorConsole })] }));
|
|
304
|
+
}
|
|
42
305
|
if (state.status === "idle") {
|
|
43
306
|
return (_jsxs(Box, { flexDirection: "column", paddingX: 1, paddingY: 1, overflow: "hidden", children: [_jsx(Text, { bold: true, color: theme.brand, children: "\uD83C\uDFAF PULSEED" }), _jsx(Text, { children: " " }), _jsx(Text, { color: theme.warning, children: "No active goals." }), _jsx(Text, { children: " " }), _jsx(Text, { dimColor: true, children: "Get started:" }), _jsxs(Text, { children: [" 1. Type a goal: ", _jsx(Text, { color: theme.userPrefix, children: "\"improve test coverage to 90%\"" })] }), _jsxs(Text, { children: [" 2. Then type: ", _jsx(Text, { color: theme.command, children: "/run" })] }), _jsx(Text, { children: " 3. PulSeed will decompose and execute automatically." }), _jsx(Text, { children: " " }), _jsxs(Text, { dimColor: true, children: ["Type ", _jsx(Text, { color: theme.text, children: "/help" }), " for all commands."] })] }));
|
|
44
307
|
}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"dashboard.js","sourceRoot":"","sources":["../../../src/interface/tui/dashboard.tsx"],"names":[],"mappings":";AACA,OAAO,EAAE,GAAG,EAAE,IAAI,EAAE,MAAM,KAAK,CAAC;AAChC,OAAO,EAAE,mBAAmB,EAAE,MAAM,2BAA2B,CAAC;AAEhE,OAAO,EAAE,KAAK,EAAE,WAAW,EAAE,aAAa,EAAE,MAAM,YAAY,CAAC;AAO/D,MAAM,SAAS,GAAG,EAAE,CAAC;AAErB,SAAS,SAAS,CAAC,QAAgB;IACj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AS,IAAQ,CAC1D,IACG,CACP,CAAC;AACJ,CAAC"}
|
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
import type { Task } from "../../base/types/task.js";
|
|
2
|
+
import type { ApprovalRequest } from "./app.js";
|
|
3
|
+
export declare function createApprovalQueue(): {
|
|
4
|
+
enqueueApproval: (task: Task) => Promise<boolean>;
|
|
5
|
+
setRequestApproval(fn: (req: ApprovalRequest) => void): void;
|
|
6
|
+
};
|
|
7
|
+
export declare function createChatToolApprovalTask(description: string): Task;
|
|
8
|
+
//# sourceMappingURL=entry-approval.d.ts.map
|