pulseed 0.5.4 → 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/types/goal-activation.d.ts +14 -2
- package/dist/base/types/goal-activation.d.ts.map +1 -1
- package/dist/base/types/goal-activation.js +4 -0
- package/dist/base/types/goal-activation.js.map +1 -1
- 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-runner-commands.d.ts +6 -0
- package/dist/interface/chat/chat-runner-commands.d.ts.map +1 -1
- package/dist/interface/chat/chat-runner-commands.js +94 -2
- package/dist/interface/chat/chat-runner-commands.js.map +1 -1
- package/dist/interface/chat/chat-runner-event-bridge.d.ts +8 -1
- package/dist/interface/chat/chat-runner-event-bridge.d.ts.map +1 -1
- package/dist/interface/chat/chat-runner-event-bridge.js +69 -3
- package/dist/interface/chat/chat-runner-event-bridge.js.map +1 -1
- package/dist/interface/chat/chat-runner-routes.d.ts.map +1 -1
- package/dist/interface/chat/chat-runner-routes.js +23 -7
- package/dist/interface/chat/chat-runner-routes.js.map +1 -1
- package/dist/interface/chat/chat-runner-support.d.ts +25 -1
- package/dist/interface/chat/chat-runner-support.d.ts.map +1 -1
- package/dist/interface/chat/chat-runner-support.js +66 -12
- package/dist/interface/chat/chat-runner-support.js.map +1 -1
- package/dist/interface/chat/chat-runner.d.ts.map +1 -1
- package/dist/interface/chat/chat-runner.js +38 -8
- package/dist/interface/chat/chat-runner.js.map +1 -1
- package/dist/interface/chat/cross-platform-session.d.ts.map +1 -1
- package/dist/interface/chat/cross-platform-session.js +13 -1
- 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 +20 -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 -1
- package/dist/interface/chat/ingress-router.d.ts.map +1 -1
- package/dist/interface/chat/ingress-router.js +2 -3
- package/dist/interface/chat/ingress-router.js.map +1 -1
- package/dist/interface/chat/tend-command.js +1 -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 +2 -1
- package/dist/interface/cli/commands/daemon-shared.d.ts.map +1 -1
- package/dist/interface/cli/commands/daemon-shared.js +33 -1
- package/dist/interface/cli/commands/daemon-shared.js.map +1 -1
- package/dist/interface/cli/commands/daemon.d.ts.map +1 -1
- package/dist/interface/cli/commands/daemon.js +59 -8
- 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/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 +268 -10
- package/dist/interface/tui/app.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-deps.d.ts +3 -1
- package/dist/interface/tui/entry-deps.d.ts.map +1 -1
- package/dist/interface/tui/entry-deps.js +19 -1
- package/dist/interface/tui/entry-deps.js.map +1 -1
- package/dist/interface/tui/entry.d.ts.map +1 -1
- package/dist/interface/tui/entry.js +4 -2
- package/dist/interface/tui/entry.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 +41 -0
- package/dist/orchestrator/execution/agent-loop/agent-loop-default-profile.js.map +1 -1
- package/dist/orchestrator/execution/agent-loop/chat-agent-loop-runner.d.ts +1 -1
- package/dist/orchestrator/execution/agent-loop/core-loop-control-tools.d.ts +1 -1
- 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 +3 -2
- 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/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 +17 -2
- package/dist/orchestrator/execution/task/task-generation.js.map +1 -1
- package/dist/orchestrator/execution/task/task-lifecycle-runner.d.ts +5 -1
- package/dist/orchestrator/execution/task/task-lifecycle-runner.d.ts.map +1 -1
- package/dist/orchestrator/execution/task/task-lifecycle-runner.js +9 -5
- package/dist/orchestrator/execution/task/task-lifecycle-runner.js.map +1 -1
- package/dist/orchestrator/execution/task/task-lifecycle.d.ts +10 -1
- package/dist/orchestrator/execution/task/task-lifecycle.d.ts.map +1 -1
- package/dist/orchestrator/execution/task/task-lifecycle.js +108 -7
- 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/types/pipeline.d.ts +6 -6
- 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 +46 -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.d.ts +1 -0
- package/dist/orchestrator/loop/core-loop/iteration-kernel.d.ts.map +1 -1
- package/dist/orchestrator/loop/core-loop/iteration-kernel.js +492 -1
- 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 +35 -0
- 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.map +1 -1
- package/dist/orchestrator/loop/core-loop/task-cycle-stall.js +141 -5
- package/dist/orchestrator/loop/core-loop/task-cycle-stall.js.map +1 -1
- package/dist/orchestrator/loop/core-loop/task-cycle.d.ts +4 -0
- package/dist/orchestrator/loop/core-loop/task-cycle.d.ts.map +1 -1
- package/dist/orchestrator/loop/core-loop/task-cycle.js +7 -0
- package/dist/orchestrator/loop/core-loop/task-cycle.js.map +1 -1
- package/dist/orchestrator/loop/core-loop.d.ts +15 -5
- package/dist/orchestrator/loop/core-loop.d.ts.map +1 -1
- package/dist/orchestrator/loop/core-loop.js +283 -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/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 +20 -1
- package/dist/orchestrator/strategy/strategy-manager-base.d.ts.map +1 -1
- package/dist/orchestrator/strategy/strategy-manager-base.js +71 -6
- package/dist/orchestrator/strategy/strategy-manager-base.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-event-workflows.d.ts +6 -6
- package/dist/platform/dream/dream-types.d.ts +91 -91
- 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.d.ts +3 -1
- package/dist/platform/drive/stall-detector.d.ts.map +1 -1
- package/dist/platform/drive/stall-detector.js +40 -1
- 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/types/learning.d.ts +2 -2
- 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/contracts.d.ts +65 -65
- package/dist/platform/soil/importer.d.ts +6 -6
- 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/runner-commands.d.ts +6 -2
- package/dist/runtime/daemon/runner-commands.d.ts.map +1 -1
- package/dist/runtime/daemon/runner-commands.js +237 -1
- 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 +59 -1
- package/dist/runtime/daemon/runner-goal-cycle.js.map +1 -1
- package/dist/runtime/daemon/runner-startup.d.ts.map +1 -1
- package/dist/runtime/daemon/runner-startup.js +12 -2
- package/dist/runtime/daemon/runner-startup.js.map +1 -1
- package/dist/runtime/daemon/runner.d.ts +4 -0
- package/dist/runtime/daemon/runner.d.ts.map +1 -1
- package/dist/runtime/daemon/runner.js +14 -1
- 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/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/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 +4 -1
- package/dist/runtime/executor/goal-worker.d.ts.map +1 -1
- package/dist/runtime/executor/goal-worker.js +5 -1
- package/dist/runtime/executor/goal-worker.js.map +1 -1
- package/dist/runtime/executor/loop-supervisor.d.ts +4 -0
- package/dist/runtime/executor/loop-supervisor.d.ts.map +1 -1
- package/dist/runtime/executor/loop-supervisor.js +35 -6
- 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-execution.d.ts +2 -1
- package/dist/runtime/schedule/engine-execution.d.ts.map +1 -1
- package/dist/runtime/schedule/engine-execution.js +1 -1
- package/dist/runtime/schedule/engine-execution.js.map +1 -1
- package/dist/runtime/schedule/engine-layers.d.ts +2 -1
- package/dist/runtime/schedule/engine-layers.d.ts.map +1 -1
- package/dist/runtime/schedule/engine-layers.js +3 -1
- package/dist/runtime/schedule/engine-layers.js.map +1 -1
- package/dist/runtime/schedule/engine.d.ts +2 -1
- package/dist/runtime/schedule/engine.d.ts.map +1 -1
- package/dist/runtime/schedule/engine.js.map +1 -1
- package/dist/runtime/schedule/history.d.ts +4 -4
- package/dist/runtime/session-registry/registry.d.ts.map +1 -1
- package/dist/runtime/session-registry/registry.js +2 -0
- package/dist/runtime/session-registry/registry.js.map +1 -1
- package/dist/runtime/session-registry/types.d.ts +102 -94
- 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 +70 -24
- 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 +1936 -17
- 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 +224 -14
- package/dist/runtime/types/daemon.d.ts.map +1 -1
- package/dist/runtime/types/daemon.js +27 -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 +97 -54
- package/dist/runtime/types/schedule.d.ts.map +1 -1
- package/dist/runtime/types/schedule.js +10 -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 +1 -1
- package/dist/tools/builtin/exports.d.ts.map +1 -1
- package/dist/tools/builtin/exports.js +1 -1
- package/dist/tools/builtin/exports.js.map +1 -1
- package/dist/tools/builtin/factory.d.ts +5 -0
- package/dist/tools/builtin/factory.d.ts.map +1 -1
- package/dist/tools/builtin/factory.js +18 -2
- package/dist/tools/builtin/factory.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/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/MemoryRecallTool/MemoryRecallTool.d.ts +2 -2
- 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.map +1 -1
- package/dist/tools/query/runtime-session-tools.js +2 -0
- package/dist/tools/query/runtime-session-tools.js.map +1 -1
- package/dist/tools/runtime/LongRunningRuntimeTools.d.ts +103 -103
- package/dist/tools/runtime/LongRunningRuntimeTools.d.ts.map +1 -1
- package/dist/tools/runtime/LongRunningRuntimeTools.js +60 -0
- package/dist/tools/runtime/LongRunningRuntimeTools.js.map +1 -1
- 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/TestRunnerTool/TestRunnerTool.d.ts +4 -4
- package/package.json +2 -1
|
@@ -753,39 +753,6 @@ export declare const DreamLogConfigSchema: z.ZodObject<{
|
|
|
753
753
|
} | undefined;
|
|
754
754
|
}>>;
|
|
755
755
|
}, "strip", z.ZodTypeAny, {
|
|
756
|
-
logCollection: {
|
|
757
|
-
enabled: boolean;
|
|
758
|
-
iterationLoggingEnabled: boolean;
|
|
759
|
-
sessionSummariesEnabled: boolean;
|
|
760
|
-
eventPersistenceEnabled: boolean;
|
|
761
|
-
importanceThreshold: number;
|
|
762
|
-
maxFileSizeBytes: number;
|
|
763
|
-
pruneTargetRatio: number;
|
|
764
|
-
rotationMode: "date" | "size";
|
|
765
|
-
watermarkBehavior: "readonly" | "readwrite";
|
|
766
|
-
};
|
|
767
|
-
analysis: {
|
|
768
|
-
batchSize: number;
|
|
769
|
-
minIterationsForAnalysis: number;
|
|
770
|
-
maxGoalsPerRun: number;
|
|
771
|
-
patternConfidenceThreshold: number;
|
|
772
|
-
lightRecentIterationWindow: number;
|
|
773
|
-
lightTokenBudget: number;
|
|
774
|
-
deepTokenBudget: number;
|
|
775
|
-
};
|
|
776
|
-
activation: {
|
|
777
|
-
verifiedPlannerHintsOnly: boolean;
|
|
778
|
-
semanticWorkingMemory: boolean;
|
|
779
|
-
crossGoalLessons: boolean;
|
|
780
|
-
semanticContext: boolean;
|
|
781
|
-
autoAcquireKnowledge: boolean;
|
|
782
|
-
learnedPatternHints: boolean;
|
|
783
|
-
playbookHints: boolean;
|
|
784
|
-
workflowHints: boolean;
|
|
785
|
-
strategyTemplates: boolean;
|
|
786
|
-
decisionHeuristics: boolean;
|
|
787
|
-
graphTraversal: boolean;
|
|
788
|
-
};
|
|
789
756
|
consolidation: {
|
|
790
757
|
archive: {
|
|
791
758
|
enabled: boolean;
|
|
@@ -843,40 +810,40 @@ export declare const DreamLogConfigSchema: z.ZodObject<{
|
|
|
843
810
|
minAutoRepairConfidence: number;
|
|
844
811
|
};
|
|
845
812
|
};
|
|
813
|
+
logCollection: {
|
|
814
|
+
enabled: boolean;
|
|
815
|
+
iterationLoggingEnabled: boolean;
|
|
816
|
+
sessionSummariesEnabled: boolean;
|
|
817
|
+
eventPersistenceEnabled: boolean;
|
|
818
|
+
importanceThreshold: number;
|
|
819
|
+
maxFileSizeBytes: number;
|
|
820
|
+
pruneTargetRatio: number;
|
|
821
|
+
rotationMode: "date" | "size";
|
|
822
|
+
watermarkBehavior: "readonly" | "readwrite";
|
|
823
|
+
};
|
|
824
|
+
analysis: {
|
|
825
|
+
batchSize: number;
|
|
826
|
+
minIterationsForAnalysis: number;
|
|
827
|
+
maxGoalsPerRun: number;
|
|
828
|
+
patternConfidenceThreshold: number;
|
|
829
|
+
lightRecentIterationWindow: number;
|
|
830
|
+
lightTokenBudget: number;
|
|
831
|
+
deepTokenBudget: number;
|
|
832
|
+
};
|
|
833
|
+
activation: {
|
|
834
|
+
verifiedPlannerHintsOnly: boolean;
|
|
835
|
+
semanticWorkingMemory: boolean;
|
|
836
|
+
crossGoalLessons: boolean;
|
|
837
|
+
semanticContext: boolean;
|
|
838
|
+
autoAcquireKnowledge: boolean;
|
|
839
|
+
learnedPatternHints: boolean;
|
|
840
|
+
playbookHints: boolean;
|
|
841
|
+
workflowHints: boolean;
|
|
842
|
+
strategyTemplates: boolean;
|
|
843
|
+
decisionHeuristics: boolean;
|
|
844
|
+
graphTraversal: boolean;
|
|
845
|
+
};
|
|
846
846
|
}, {
|
|
847
|
-
logCollection?: {
|
|
848
|
-
enabled?: boolean | undefined;
|
|
849
|
-
iterationLoggingEnabled?: boolean | undefined;
|
|
850
|
-
sessionSummariesEnabled?: boolean | undefined;
|
|
851
|
-
eventPersistenceEnabled?: boolean | undefined;
|
|
852
|
-
importanceThreshold?: number | undefined;
|
|
853
|
-
maxFileSizeBytes?: number | undefined;
|
|
854
|
-
pruneTargetRatio?: number | undefined;
|
|
855
|
-
rotationMode?: "date" | "size" | undefined;
|
|
856
|
-
watermarkBehavior?: "readonly" | "readwrite" | undefined;
|
|
857
|
-
} | undefined;
|
|
858
|
-
analysis?: {
|
|
859
|
-
batchSize?: number | undefined;
|
|
860
|
-
minIterationsForAnalysis?: number | undefined;
|
|
861
|
-
maxGoalsPerRun?: number | undefined;
|
|
862
|
-
patternConfidenceThreshold?: number | undefined;
|
|
863
|
-
lightRecentIterationWindow?: number | undefined;
|
|
864
|
-
lightTokenBudget?: number | undefined;
|
|
865
|
-
deepTokenBudget?: number | undefined;
|
|
866
|
-
} | undefined;
|
|
867
|
-
activation?: {
|
|
868
|
-
verifiedPlannerHintsOnly?: boolean | undefined;
|
|
869
|
-
semanticWorkingMemory?: boolean | undefined;
|
|
870
|
-
crossGoalLessons?: boolean | undefined;
|
|
871
|
-
semanticContext?: boolean | undefined;
|
|
872
|
-
autoAcquireKnowledge?: boolean | undefined;
|
|
873
|
-
learnedPatternHints?: boolean | undefined;
|
|
874
|
-
playbookHints?: boolean | undefined;
|
|
875
|
-
workflowHints?: boolean | undefined;
|
|
876
|
-
strategyTemplates?: boolean | undefined;
|
|
877
|
-
decisionHeuristics?: boolean | undefined;
|
|
878
|
-
graphTraversal?: boolean | undefined;
|
|
879
|
-
} | undefined;
|
|
880
847
|
consolidation?: {
|
|
881
848
|
archive?: {
|
|
882
849
|
enabled?: boolean | undefined;
|
|
@@ -934,6 +901,39 @@ export declare const DreamLogConfigSchema: z.ZodObject<{
|
|
|
934
901
|
minAutoRepairConfidence?: number | undefined;
|
|
935
902
|
} | undefined;
|
|
936
903
|
} | undefined;
|
|
904
|
+
logCollection?: {
|
|
905
|
+
enabled?: boolean | undefined;
|
|
906
|
+
iterationLoggingEnabled?: boolean | undefined;
|
|
907
|
+
sessionSummariesEnabled?: boolean | undefined;
|
|
908
|
+
eventPersistenceEnabled?: boolean | undefined;
|
|
909
|
+
importanceThreshold?: number | undefined;
|
|
910
|
+
maxFileSizeBytes?: number | undefined;
|
|
911
|
+
pruneTargetRatio?: number | undefined;
|
|
912
|
+
rotationMode?: "date" | "size" | undefined;
|
|
913
|
+
watermarkBehavior?: "readonly" | "readwrite" | undefined;
|
|
914
|
+
} | undefined;
|
|
915
|
+
analysis?: {
|
|
916
|
+
batchSize?: number | undefined;
|
|
917
|
+
minIterationsForAnalysis?: number | undefined;
|
|
918
|
+
maxGoalsPerRun?: number | undefined;
|
|
919
|
+
patternConfidenceThreshold?: number | undefined;
|
|
920
|
+
lightRecentIterationWindow?: number | undefined;
|
|
921
|
+
lightTokenBudget?: number | undefined;
|
|
922
|
+
deepTokenBudget?: number | undefined;
|
|
923
|
+
} | undefined;
|
|
924
|
+
activation?: {
|
|
925
|
+
verifiedPlannerHintsOnly?: boolean | undefined;
|
|
926
|
+
semanticWorkingMemory?: boolean | undefined;
|
|
927
|
+
crossGoalLessons?: boolean | undefined;
|
|
928
|
+
semanticContext?: boolean | undefined;
|
|
929
|
+
autoAcquireKnowledge?: boolean | undefined;
|
|
930
|
+
learnedPatternHints?: boolean | undefined;
|
|
931
|
+
playbookHints?: boolean | undefined;
|
|
932
|
+
workflowHints?: boolean | undefined;
|
|
933
|
+
strategyTemplates?: boolean | undefined;
|
|
934
|
+
decisionHeuristics?: boolean | undefined;
|
|
935
|
+
graphTraversal?: boolean | undefined;
|
|
936
|
+
} | undefined;
|
|
937
937
|
}>;
|
|
938
938
|
export type DreamLogConfig = z.infer<typeof DreamLogConfigSchema>;
|
|
939
939
|
export declare const DreamPhaseSchema: z.ZodEnum<["A", "B", "C"]>;
|
|
@@ -2062,8 +2062,8 @@ export declare const DreamPatternCandidateSchema: z.ZodObject<{
|
|
|
2062
2062
|
confidence: number;
|
|
2063
2063
|
metadata: Record<string, unknown>;
|
|
2064
2064
|
summary: string;
|
|
2065
|
-
pattern_type: string;
|
|
2066
2065
|
evidence_refs: string[];
|
|
2066
|
+
pattern_type: string;
|
|
2067
2067
|
goal_id?: string | undefined;
|
|
2068
2068
|
}, {
|
|
2069
2069
|
confidence: number;
|
|
@@ -2086,8 +2086,8 @@ export declare const DreamPatternResponseSchema: z.ZodObject<{
|
|
|
2086
2086
|
confidence: number;
|
|
2087
2087
|
metadata: Record<string, unknown>;
|
|
2088
2088
|
summary: string;
|
|
2089
|
-
pattern_type: string;
|
|
2090
2089
|
evidence_refs: string[];
|
|
2090
|
+
pattern_type: string;
|
|
2091
2091
|
goal_id?: string | undefined;
|
|
2092
2092
|
}, {
|
|
2093
2093
|
confidence: number;
|
|
@@ -2102,8 +2102,8 @@ export declare const DreamPatternResponseSchema: z.ZodObject<{
|
|
|
2102
2102
|
confidence: number;
|
|
2103
2103
|
metadata: Record<string, unknown>;
|
|
2104
2104
|
summary: string;
|
|
2105
|
-
pattern_type: string;
|
|
2106
2105
|
evidence_refs: string[];
|
|
2106
|
+
pattern_type: string;
|
|
2107
2107
|
goal_id?: string | undefined;
|
|
2108
2108
|
}[];
|
|
2109
2109
|
}, {
|
|
@@ -2172,9 +2172,9 @@ export declare const ScheduleSuggestionSchema: z.ZodObject<{
|
|
|
2172
2172
|
jitter_factor: number;
|
|
2173
2173
|
} | undefined;
|
|
2174
2174
|
goalId?: string | undefined;
|
|
2175
|
+
decision_reason?: string | undefined;
|
|
2175
2176
|
applied_entry_id?: string | undefined;
|
|
2176
2177
|
decided_at?: string | undefined;
|
|
2177
|
-
decision_reason?: string | undefined;
|
|
2178
2178
|
}, {
|
|
2179
2179
|
type: "cron" | "goal_trigger" | "cleanup" | "dream_cron";
|
|
2180
2180
|
confidence: number;
|
|
@@ -2193,9 +2193,9 @@ export declare const ScheduleSuggestionSchema: z.ZodObject<{
|
|
|
2193
2193
|
jitter_factor?: number | undefined;
|
|
2194
2194
|
} | undefined;
|
|
2195
2195
|
goalId?: string | undefined;
|
|
2196
|
+
decision_reason?: string | undefined;
|
|
2196
2197
|
applied_entry_id?: string | undefined;
|
|
2197
2198
|
decided_at?: string | undefined;
|
|
2198
|
-
decision_reason?: string | undefined;
|
|
2199
2199
|
}>;
|
|
2200
2200
|
export type ScheduleSuggestionInput = z.input<typeof ScheduleSuggestionSchema>;
|
|
2201
2201
|
export type ScheduleSuggestion = z.infer<typeof ScheduleSuggestionSchema>;
|
|
@@ -2256,9 +2256,9 @@ export declare const ScheduleSuggestionFileSchema: z.ZodObject<{
|
|
|
2256
2256
|
jitter_factor: number;
|
|
2257
2257
|
} | undefined;
|
|
2258
2258
|
goalId?: string | undefined;
|
|
2259
|
+
decision_reason?: string | undefined;
|
|
2259
2260
|
applied_entry_id?: string | undefined;
|
|
2260
2261
|
decided_at?: string | undefined;
|
|
2261
|
-
decision_reason?: string | undefined;
|
|
2262
2262
|
}, {
|
|
2263
2263
|
type: "cron" | "goal_trigger" | "cleanup" | "dream_cron";
|
|
2264
2264
|
confidence: number;
|
|
@@ -2277,9 +2277,9 @@ export declare const ScheduleSuggestionFileSchema: z.ZodObject<{
|
|
|
2277
2277
|
jitter_factor?: number | undefined;
|
|
2278
2278
|
} | undefined;
|
|
2279
2279
|
goalId?: string | undefined;
|
|
2280
|
+
decision_reason?: string | undefined;
|
|
2280
2281
|
applied_entry_id?: string | undefined;
|
|
2281
2282
|
decided_at?: string | undefined;
|
|
2282
|
-
decision_reason?: string | undefined;
|
|
2283
2283
|
}>, "many">>;
|
|
2284
2284
|
}, "strip", z.ZodTypeAny, {
|
|
2285
2285
|
generated_at: string;
|
|
@@ -2301,9 +2301,9 @@ export declare const ScheduleSuggestionFileSchema: z.ZodObject<{
|
|
|
2301
2301
|
jitter_factor: number;
|
|
2302
2302
|
} | undefined;
|
|
2303
2303
|
goalId?: string | undefined;
|
|
2304
|
+
decision_reason?: string | undefined;
|
|
2304
2305
|
applied_entry_id?: string | undefined;
|
|
2305
2306
|
decided_at?: string | undefined;
|
|
2306
|
-
decision_reason?: string | undefined;
|
|
2307
2307
|
}[];
|
|
2308
2308
|
}, {
|
|
2309
2309
|
generated_at: string;
|
|
@@ -2325,9 +2325,9 @@ export declare const ScheduleSuggestionFileSchema: z.ZodObject<{
|
|
|
2325
2325
|
jitter_factor?: number | undefined;
|
|
2326
2326
|
} | undefined;
|
|
2327
2327
|
goalId?: string | undefined;
|
|
2328
|
+
decision_reason?: string | undefined;
|
|
2328
2329
|
applied_entry_id?: string | undefined;
|
|
2329
2330
|
decided_at?: string | undefined;
|
|
2330
|
-
decision_reason?: string | undefined;
|
|
2331
2331
|
}[] | undefined;
|
|
2332
2332
|
}>;
|
|
2333
2333
|
export type ScheduleSuggestionFile = z.infer<typeof ScheduleSuggestionFileSchema>;
|
|
@@ -2441,9 +2441,9 @@ export declare const DreamRunReportSchema: z.ZodObject<{
|
|
|
2441
2441
|
jitter_factor: number;
|
|
2442
2442
|
} | undefined;
|
|
2443
2443
|
goalId?: string | undefined;
|
|
2444
|
+
decision_reason?: string | undefined;
|
|
2444
2445
|
applied_entry_id?: string | undefined;
|
|
2445
2446
|
decided_at?: string | undefined;
|
|
2446
|
-
decision_reason?: string | undefined;
|
|
2447
2447
|
}, {
|
|
2448
2448
|
type: "cron" | "goal_trigger" | "cleanup" | "dream_cron";
|
|
2449
2449
|
confidence: number;
|
|
@@ -2462,9 +2462,9 @@ export declare const DreamRunReportSchema: z.ZodObject<{
|
|
|
2462
2462
|
jitter_factor?: number | undefined;
|
|
2463
2463
|
} | undefined;
|
|
2464
2464
|
goalId?: string | undefined;
|
|
2465
|
+
decision_reason?: string | undefined;
|
|
2465
2466
|
applied_entry_id?: string | undefined;
|
|
2466
2467
|
decided_at?: string | undefined;
|
|
2467
|
-
decision_reason?: string | undefined;
|
|
2468
2468
|
}>, "many">>;
|
|
2469
2469
|
}, "strip", z.ZodTypeAny, {
|
|
2470
2470
|
partial: boolean;
|
|
@@ -2491,9 +2491,9 @@ export declare const DreamRunReportSchema: z.ZodObject<{
|
|
|
2491
2491
|
jitter_factor: number;
|
|
2492
2492
|
} | undefined;
|
|
2493
2493
|
goalId?: string | undefined;
|
|
2494
|
+
decision_reason?: string | undefined;
|
|
2494
2495
|
applied_entry_id?: string | undefined;
|
|
2495
2496
|
decided_at?: string | undefined;
|
|
2496
|
-
decision_reason?: string | undefined;
|
|
2497
2497
|
}[];
|
|
2498
2498
|
tier: "light" | "deep";
|
|
2499
2499
|
phasesCompleted: ("A" | "B" | "C")[];
|
|
@@ -2544,9 +2544,9 @@ export declare const DreamRunReportSchema: z.ZodObject<{
|
|
|
2544
2544
|
jitter_factor?: number | undefined;
|
|
2545
2545
|
} | undefined;
|
|
2546
2546
|
goalId?: string | undefined;
|
|
2547
|
+
decision_reason?: string | undefined;
|
|
2547
2548
|
applied_entry_id?: string | undefined;
|
|
2548
2549
|
decided_at?: string | undefined;
|
|
2549
|
-
decision_reason?: string | undefined;
|
|
2550
2550
|
}[] | undefined;
|
|
2551
2551
|
learnedPatterns?: {
|
|
2552
2552
|
type: "observation_accuracy" | "strategy_selection" | "scope_sizing" | "task_generation";
|
|
@@ -2614,16 +2614,16 @@ export declare const DreamActivationArtifactSchema: z.ZodObject<{
|
|
|
2614
2614
|
type: "pattern_hint_pack" | "workflow_hint_pack" | "decision_heuristic_pack" | "verification_recovery_pack" | "semantic_context_pack" | "knowledge_gap_pack";
|
|
2615
2615
|
source: string;
|
|
2616
2616
|
confidence: number;
|
|
2617
|
-
summary: string;
|
|
2618
2617
|
payload: Record<string, unknown>;
|
|
2619
|
-
|
|
2620
|
-
artifact_id: string;
|
|
2618
|
+
summary: string;
|
|
2621
2619
|
scope: {
|
|
2622
2620
|
goal_id?: string | undefined;
|
|
2623
2621
|
strategy_id?: string | undefined;
|
|
2624
2622
|
task_category?: string | undefined;
|
|
2625
2623
|
goal_type?: string | undefined;
|
|
2626
2624
|
};
|
|
2625
|
+
evidence_refs: string[];
|
|
2626
|
+
artifact_id: string;
|
|
2627
2627
|
valid_from: string;
|
|
2628
2628
|
valid_to: string | null;
|
|
2629
2629
|
}, {
|
|
@@ -2634,13 +2634,13 @@ export declare const DreamActivationArtifactSchema: z.ZodObject<{
|
|
|
2634
2634
|
artifact_id: string;
|
|
2635
2635
|
valid_from: string;
|
|
2636
2636
|
payload?: Record<string, unknown> | undefined;
|
|
2637
|
-
evidence_refs?: string[] | undefined;
|
|
2638
2637
|
scope?: {
|
|
2639
2638
|
goal_id?: string | undefined;
|
|
2640
2639
|
strategy_id?: string | undefined;
|
|
2641
2640
|
task_category?: string | undefined;
|
|
2642
2641
|
goal_type?: string | undefined;
|
|
2643
2642
|
} | undefined;
|
|
2643
|
+
evidence_refs?: string[] | undefined;
|
|
2644
2644
|
valid_to?: string | null | undefined;
|
|
2645
2645
|
}>;
|
|
2646
2646
|
export type DreamActivationArtifact = z.infer<typeof DreamActivationArtifactSchema>;
|
|
@@ -2677,16 +2677,16 @@ export declare const DreamActivationArtifactFileSchema: z.ZodObject<{
|
|
|
2677
2677
|
type: "pattern_hint_pack" | "workflow_hint_pack" | "decision_heuristic_pack" | "verification_recovery_pack" | "semantic_context_pack" | "knowledge_gap_pack";
|
|
2678
2678
|
source: string;
|
|
2679
2679
|
confidence: number;
|
|
2680
|
-
summary: string;
|
|
2681
2680
|
payload: Record<string, unknown>;
|
|
2682
|
-
|
|
2683
|
-
artifact_id: string;
|
|
2681
|
+
summary: string;
|
|
2684
2682
|
scope: {
|
|
2685
2683
|
goal_id?: string | undefined;
|
|
2686
2684
|
strategy_id?: string | undefined;
|
|
2687
2685
|
task_category?: string | undefined;
|
|
2688
2686
|
goal_type?: string | undefined;
|
|
2689
2687
|
};
|
|
2688
|
+
evidence_refs: string[];
|
|
2689
|
+
artifact_id: string;
|
|
2690
2690
|
valid_from: string;
|
|
2691
2691
|
valid_to: string | null;
|
|
2692
2692
|
}, {
|
|
@@ -2697,13 +2697,13 @@ export declare const DreamActivationArtifactFileSchema: z.ZodObject<{
|
|
|
2697
2697
|
artifact_id: string;
|
|
2698
2698
|
valid_from: string;
|
|
2699
2699
|
payload?: Record<string, unknown> | undefined;
|
|
2700
|
-
evidence_refs?: string[] | undefined;
|
|
2701
2700
|
scope?: {
|
|
2702
2701
|
goal_id?: string | undefined;
|
|
2703
2702
|
strategy_id?: string | undefined;
|
|
2704
2703
|
task_category?: string | undefined;
|
|
2705
2704
|
goal_type?: string | undefined;
|
|
2706
2705
|
} | undefined;
|
|
2706
|
+
evidence_refs?: string[] | undefined;
|
|
2707
2707
|
valid_to?: string | null | undefined;
|
|
2708
2708
|
}>, "many">>;
|
|
2709
2709
|
}, "strip", z.ZodTypeAny, {
|
|
@@ -2713,16 +2713,16 @@ export declare const DreamActivationArtifactFileSchema: z.ZodObject<{
|
|
|
2713
2713
|
type: "pattern_hint_pack" | "workflow_hint_pack" | "decision_heuristic_pack" | "verification_recovery_pack" | "semantic_context_pack" | "knowledge_gap_pack";
|
|
2714
2714
|
source: string;
|
|
2715
2715
|
confidence: number;
|
|
2716
|
-
summary: string;
|
|
2717
2716
|
payload: Record<string, unknown>;
|
|
2718
|
-
|
|
2719
|
-
artifact_id: string;
|
|
2717
|
+
summary: string;
|
|
2720
2718
|
scope: {
|
|
2721
2719
|
goal_id?: string | undefined;
|
|
2722
2720
|
strategy_id?: string | undefined;
|
|
2723
2721
|
task_category?: string | undefined;
|
|
2724
2722
|
goal_type?: string | undefined;
|
|
2725
2723
|
};
|
|
2724
|
+
evidence_refs: string[];
|
|
2725
|
+
artifact_id: string;
|
|
2726
2726
|
valid_from: string;
|
|
2727
2727
|
valid_to: string | null;
|
|
2728
2728
|
}[];
|
|
@@ -2737,13 +2737,13 @@ export declare const DreamActivationArtifactFileSchema: z.ZodObject<{
|
|
|
2737
2737
|
artifact_id: string;
|
|
2738
2738
|
valid_from: string;
|
|
2739
2739
|
payload?: Record<string, unknown> | undefined;
|
|
2740
|
-
evidence_refs?: string[] | undefined;
|
|
2741
2740
|
scope?: {
|
|
2742
2741
|
goal_id?: string | undefined;
|
|
2743
2742
|
strategy_id?: string | undefined;
|
|
2744
2743
|
task_category?: string | undefined;
|
|
2745
2744
|
goal_type?: string | undefined;
|
|
2746
2745
|
} | undefined;
|
|
2746
|
+
evidence_refs?: string[] | undefined;
|
|
2747
2747
|
valid_to?: string | null | undefined;
|
|
2748
2748
|
}[] | undefined;
|
|
2749
2749
|
}>;
|
|
@@ -0,0 +1,61 @@
|
|
|
1
|
+
export type MetricDirection = "maximize" | "minimize";
|
|
2
|
+
export type MetricTrend = "improving" | "stalled" | "noisy" | "regressing" | "breakthrough";
|
|
3
|
+
export interface MetricObservationSource {
|
|
4
|
+
entry_id: string;
|
|
5
|
+
kind: string;
|
|
6
|
+
summary?: string;
|
|
7
|
+
metric_source?: string;
|
|
8
|
+
artifacts?: Array<{
|
|
9
|
+
label: string;
|
|
10
|
+
path?: string;
|
|
11
|
+
state_relative_path?: string;
|
|
12
|
+
url?: string;
|
|
13
|
+
}>;
|
|
14
|
+
raw_refs?: Array<{
|
|
15
|
+
kind: string;
|
|
16
|
+
id?: string;
|
|
17
|
+
path?: string;
|
|
18
|
+
state_relative_path?: string;
|
|
19
|
+
url?: string;
|
|
20
|
+
}>;
|
|
21
|
+
}
|
|
22
|
+
export interface MetricObservation {
|
|
23
|
+
observed_at: string;
|
|
24
|
+
metric_key: string;
|
|
25
|
+
value: number;
|
|
26
|
+
direction: MetricDirection;
|
|
27
|
+
confidence: number;
|
|
28
|
+
source: MetricObservationSource;
|
|
29
|
+
}
|
|
30
|
+
export interface MetricTrendContext {
|
|
31
|
+
metric_key: string;
|
|
32
|
+
direction: MetricDirection;
|
|
33
|
+
trend: MetricTrend;
|
|
34
|
+
latest_value: number;
|
|
35
|
+
latest_observed_at: string;
|
|
36
|
+
best_value: number;
|
|
37
|
+
best_observed_at: string;
|
|
38
|
+
observation_count: number;
|
|
39
|
+
recent_slope_per_observation: number;
|
|
40
|
+
best_delta: number;
|
|
41
|
+
last_meaningful_improvement_delta: number | null;
|
|
42
|
+
last_breakthrough_delta: number | null;
|
|
43
|
+
time_since_last_meaningful_improvement_ms: number | null;
|
|
44
|
+
improvement_threshold: number;
|
|
45
|
+
breakthrough_threshold: number;
|
|
46
|
+
noise_band: number;
|
|
47
|
+
confidence: number;
|
|
48
|
+
source_refs: MetricObservationSource[];
|
|
49
|
+
summary: string;
|
|
50
|
+
}
|
|
51
|
+
export interface MetricTrendClassificationOptions {
|
|
52
|
+
improvementThreshold?: number;
|
|
53
|
+
breakthroughThreshold?: number;
|
|
54
|
+
noiseBand?: number;
|
|
55
|
+
now?: Date;
|
|
56
|
+
recentWindowSize?: number;
|
|
57
|
+
}
|
|
58
|
+
export declare function classifyMetricTrend(observations: MetricObservation[], options?: MetricTrendClassificationOptions): MetricTrendContext | null;
|
|
59
|
+
export declare function summarizeMetricTrends(observations: MetricObservation[], options?: MetricTrendClassificationOptions): MetricTrendContext[];
|
|
60
|
+
export declare function formatMetricTrendContext(context: MetricTrendContext): string;
|
|
61
|
+
//# sourceMappingURL=metric-history.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"metric-history.d.ts","sourceRoot":"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M,CAAC;IACzB,iBAAiB,EAAE,MAAM,CAAC;IAC1B,4BAA4B,EAAE,MAAM,CAAC;IACrC,UAAU,EAAE,MAAM,CAAC;IACnB,iCAAiC,EAAE,MAAM,GAAG,IAAI,CAAC;IACjD,uBAAuB,EAAE,MAAM,GAAG,IAAI,CAAC;IACvC,yCAAyC,EAAE,MAAM,GAAG,IAAI,CAAC;IACzD,qBAAqB,EAAE,MAAM,CAAC;IAC9B,sBAAsB,EAAE,MAAM,CAAC;IAC/B,UAAU,EAAE,MAAM,CAAC;IACnB,UAAU,EAAE,MAAM,CAAC;IACnB,WAAW,EAAE,uBAAuB,EAAE,CAAC;IACvC,OAAO,EAAE,MAAM,CAAC;CACjB;AAED,MAAM,WAAW,gCAAgC;IAC/C,oBAAoB,CAAC,EAAE,MAAM,CAAC;IAC9B,qBAAqB,CAAC,EAAE,MAAM,CAAC;IAC/B,SAAS,CAAC,EAAE,MAAM,CAAC;IACnB,GAAG,CAAC,EAAE,IAAI,CAAC;IACX,gBAAgB,CAAC,EAAE,MAAM,CAAC;CAC3B;AAOD,wBAAgB,mBAAmB,CACjC,YAAY,EAAE,iBAAiB,EAAE,EACjC,OAAO,GAAE,gCAAqC,GAC7C,kBAAkB,GAAG,IAAI,CAwG3B;AAED,wBAAgB,qBAAqB,CACnC,YAAY,EAAE,iBAAiB,EAAE,EACjC,OAAO,GAAE,gCAAqC,GAC7C,kBAAkB,EAAE,CAWtB;AAED,wBAAgB,wBAAwB,CAAC,OAAO,EAAE,kBAAkB,GAAG,MAAM,CAK5E"}
|
|
@@ -0,0 +1,206 @@
|
|
|
1
|
+
const DEFAULT_IMPROVEMENT_THRESHOLD = 0.01;
|
|
2
|
+
const DEFAULT_BREAKTHROUGH_THRESHOLD = 0.05;
|
|
3
|
+
const DEFAULT_NOISE_BAND = 0.005;
|
|
4
|
+
const DEFAULT_RECENT_WINDOW_SIZE = 5;
|
|
5
|
+
export function classifyMetricTrend(observations, options = {}) {
|
|
6
|
+
const sorted = observations
|
|
7
|
+
.filter((observation) => Number.isFinite(observation.value))
|
|
8
|
+
.sort((left, right) => left.observed_at.localeCompare(right.observed_at));
|
|
9
|
+
if (sorted.length === 0)
|
|
10
|
+
return null;
|
|
11
|
+
const metricKey = sorted[0].metric_key;
|
|
12
|
+
const direction = sorted[0].direction;
|
|
13
|
+
const sameMetric = sorted.filter((observation) => observation.metric_key === metricKey && observation.direction === direction);
|
|
14
|
+
if (sameMetric.length === 0)
|
|
15
|
+
return null;
|
|
16
|
+
const improvementThreshold = options.improvementThreshold ?? DEFAULT_IMPROVEMENT_THRESHOLD;
|
|
17
|
+
const breakthroughThreshold = options.breakthroughThreshold ?? DEFAULT_BREAKTHROUGH_THRESHOLD;
|
|
18
|
+
const noiseBand = options.noiseBand ?? DEFAULT_NOISE_BAND;
|
|
19
|
+
const now = options.now ?? new Date();
|
|
20
|
+
const recentWindowSize = options.recentWindowSize ?? DEFAULT_RECENT_WINDOW_SIZE;
|
|
21
|
+
const normalized = sameMetric.map((observation) => normalizeValue(observation.value, direction));
|
|
22
|
+
const firstNormalized = normalized[0];
|
|
23
|
+
const latest = sameMetric[sameMetric.length - 1];
|
|
24
|
+
const latestNormalized = normalized[normalized.length - 1];
|
|
25
|
+
const bestIndex = indexOfMax(normalized);
|
|
26
|
+
const best = sameMetric[bestIndex];
|
|
27
|
+
const bestNormalized = normalized[bestIndex];
|
|
28
|
+
const previousBestNormalized = normalized.length > 1
|
|
29
|
+
? Math.max(...normalized.slice(0, -1))
|
|
30
|
+
: firstNormalized;
|
|
31
|
+
const latestBestDelta = latestNormalized - previousBestNormalized;
|
|
32
|
+
const latestDeltaFromBest = latestNormalized - bestNormalized;
|
|
33
|
+
const bestDelta = bestNormalized - firstNormalized;
|
|
34
|
+
const recentNormalized = normalized.slice(-recentWindowSize);
|
|
35
|
+
const recentSlope = linearSlope(recentNormalized);
|
|
36
|
+
const minRecent = Math.min(...recentNormalized);
|
|
37
|
+
const maxRecent = Math.max(...recentNormalized);
|
|
38
|
+
const recentRange = maxRecent - minRecent;
|
|
39
|
+
const latestDeltaFromFirst = latestNormalized - firstNormalized;
|
|
40
|
+
const meaningfulDeltas = normalized
|
|
41
|
+
.slice(1)
|
|
42
|
+
.map((value, index) => ({
|
|
43
|
+
delta: value - normalized[index],
|
|
44
|
+
observedAt: sameMetric[index + 1].observed_at,
|
|
45
|
+
observedIndex: index + 1,
|
|
46
|
+
}))
|
|
47
|
+
.filter((entry) => entry.delta >= improvementThreshold);
|
|
48
|
+
const breakthroughDeltas = normalized
|
|
49
|
+
.slice(1)
|
|
50
|
+
.map((value, index) => value - normalized[index])
|
|
51
|
+
.filter((delta) => delta >= breakthroughThreshold);
|
|
52
|
+
const lastMeaningfulImprovement = meaningfulDeltas[meaningfulDeltas.length - 1] ?? null;
|
|
53
|
+
const postImprovementValues = lastMeaningfulImprovement
|
|
54
|
+
? normalized.slice(lastMeaningfulImprovement.observedIndex)
|
|
55
|
+
: normalized;
|
|
56
|
+
const postImprovementRange = postImprovementValues.length > 0
|
|
57
|
+
? Math.max(...postImprovementValues) - Math.min(...postImprovementValues)
|
|
58
|
+
: 0;
|
|
59
|
+
const observationsSinceLastMeaningfulImprovement = lastMeaningfulImprovement
|
|
60
|
+
? (normalized.length - 1) - lastMeaningfulImprovement.observedIndex
|
|
61
|
+
: null;
|
|
62
|
+
const timeSinceLastMeaningfulImprovementMs = lastMeaningfulImprovement
|
|
63
|
+
? Math.max(0, now.getTime() - Date.parse(lastMeaningfulImprovement.observedAt))
|
|
64
|
+
: null;
|
|
65
|
+
const trend = classifyTrend({
|
|
66
|
+
count: sameMetric.length,
|
|
67
|
+
latestBestDelta,
|
|
68
|
+
latestDeltaFromBest,
|
|
69
|
+
latestDeltaFromFirst,
|
|
70
|
+
bestDelta,
|
|
71
|
+
recentSlope,
|
|
72
|
+
recentRange,
|
|
73
|
+
postImprovementRange,
|
|
74
|
+
observationsSinceLastMeaningfulImprovement,
|
|
75
|
+
improvementThreshold,
|
|
76
|
+
breakthroughThreshold,
|
|
77
|
+
noiseBand,
|
|
78
|
+
});
|
|
79
|
+
const confidence = computeConfidence(sameMetric, trend, recentRange, noiseBand);
|
|
80
|
+
const context = {
|
|
81
|
+
metric_key: metricKey,
|
|
82
|
+
direction,
|
|
83
|
+
trend,
|
|
84
|
+
latest_value: latest.value,
|
|
85
|
+
latest_observed_at: latest.observed_at,
|
|
86
|
+
best_value: best.value,
|
|
87
|
+
best_observed_at: best.observed_at,
|
|
88
|
+
observation_count: sameMetric.length,
|
|
89
|
+
recent_slope_per_observation: denormalizeDelta(recentSlope, direction),
|
|
90
|
+
best_delta: denormalizeDelta(bestDelta, direction),
|
|
91
|
+
last_meaningful_improvement_delta: lastMeaningfulImprovement
|
|
92
|
+
? denormalizeDelta(lastMeaningfulImprovement.delta, direction)
|
|
93
|
+
: null,
|
|
94
|
+
last_breakthrough_delta: breakthroughDeltas.length > 0
|
|
95
|
+
? denormalizeDelta(breakthroughDeltas[breakthroughDeltas.length - 1], direction)
|
|
96
|
+
: null,
|
|
97
|
+
time_since_last_meaningful_improvement_ms: timeSinceLastMeaningfulImprovementMs,
|
|
98
|
+
improvement_threshold: denormalizeDelta(improvementThreshold, direction),
|
|
99
|
+
breakthrough_threshold: denormalizeDelta(breakthroughThreshold, direction),
|
|
100
|
+
noise_band: denormalizeDelta(noiseBand, direction),
|
|
101
|
+
confidence,
|
|
102
|
+
source_refs: sameMetric.slice(-recentWindowSize).map((observation) => observation.source),
|
|
103
|
+
summary: buildMetricTrendSummary(metricKey, trend, latest.value, best.value, sameMetric.length),
|
|
104
|
+
};
|
|
105
|
+
return context;
|
|
106
|
+
}
|
|
107
|
+
export function summarizeMetricTrends(observations, options = {}) {
|
|
108
|
+
const groups = new Map();
|
|
109
|
+
for (const observation of observations) {
|
|
110
|
+
const key = `${observation.metric_key}\0${observation.direction}`;
|
|
111
|
+
const existing = groups.get(key) ?? [];
|
|
112
|
+
existing.push(observation);
|
|
113
|
+
groups.set(key, existing);
|
|
114
|
+
}
|
|
115
|
+
return [...groups.values()]
|
|
116
|
+
.map((group) => classifyMetricTrend(group, options))
|
|
117
|
+
.filter((trend) => trend !== null);
|
|
118
|
+
}
|
|
119
|
+
export function formatMetricTrendContext(context) {
|
|
120
|
+
const since = context.time_since_last_meaningful_improvement_ms === null
|
|
121
|
+
? "no meaningful improvement recorded"
|
|
122
|
+
: `${Math.round(context.time_since_last_meaningful_improvement_ms / 60_000)}m since meaningful improvement`;
|
|
123
|
+
return `${context.metric_key} ${context.trend}: latest=${context.latest_value}, best=${context.best_value}, slope=${roundMetric(context.recent_slope_per_observation)}, ${since}`;
|
|
124
|
+
}
|
|
125
|
+
function classifyTrend(input) {
|
|
126
|
+
if (input.count < 2)
|
|
127
|
+
return "noisy";
|
|
128
|
+
if (input.latestBestDelta >= input.breakthroughThreshold)
|
|
129
|
+
return "breakthrough";
|
|
130
|
+
if (input.latestBestDelta >= input.improvementThreshold)
|
|
131
|
+
return "improving";
|
|
132
|
+
if (input.latestDeltaFromBest <= -input.improvementThreshold) {
|
|
133
|
+
return "regressing";
|
|
134
|
+
}
|
|
135
|
+
if (input.observationsSinceLastMeaningfulImprovement !== null
|
|
136
|
+
&& input.observationsSinceLastMeaningfulImprovement >= 2
|
|
137
|
+
&& input.postImprovementRange <= input.noiseBand) {
|
|
138
|
+
return "stalled";
|
|
139
|
+
}
|
|
140
|
+
if (input.latestDeltaFromFirst <= -input.improvementThreshold || input.recentSlope <= -input.improvementThreshold) {
|
|
141
|
+
return "regressing";
|
|
142
|
+
}
|
|
143
|
+
if (input.recentSlope >= input.improvementThreshold) {
|
|
144
|
+
return "improving";
|
|
145
|
+
}
|
|
146
|
+
if (input.recentRange === 0 || input.recentRange <= Number.EPSILON)
|
|
147
|
+
return "stalled";
|
|
148
|
+
if (input.recentRange <= input.noiseBand || Math.abs(input.recentSlope) < input.noiseBand) {
|
|
149
|
+
return input.bestDelta >= input.improvementThreshold ? "stalled" : "noisy";
|
|
150
|
+
}
|
|
151
|
+
if (input.bestDelta < input.improvementThreshold)
|
|
152
|
+
return "stalled";
|
|
153
|
+
return "noisy";
|
|
154
|
+
}
|
|
155
|
+
function computeConfidence(observations, trend, recentRange, noiseBand) {
|
|
156
|
+
const meanObservationConfidence = observations.reduce((sum, observation) => sum + observation.confidence, 0) / observations.length;
|
|
157
|
+
const sampleConfidence = Math.min(1, observations.length / 5);
|
|
158
|
+
const trendConfidence = trend === "noisy"
|
|
159
|
+
? Math.max(0.35, Math.min(0.75, noiseBand / Math.max(recentRange, Number.EPSILON)))
|
|
160
|
+
: 1;
|
|
161
|
+
return clamp01(meanObservationConfidence * sampleConfidence * trendConfidence);
|
|
162
|
+
}
|
|
163
|
+
function normalizeValue(value, direction) {
|
|
164
|
+
return direction === "maximize" ? value : -value;
|
|
165
|
+
}
|
|
166
|
+
function denormalizeDelta(delta, direction) {
|
|
167
|
+
return direction === "maximize" ? delta : -delta;
|
|
168
|
+
}
|
|
169
|
+
function indexOfMax(values) {
|
|
170
|
+
let bestIndex = 0;
|
|
171
|
+
for (let index = 1; index < values.length; index += 1) {
|
|
172
|
+
if (values[index] > values[bestIndex])
|
|
173
|
+
bestIndex = index;
|
|
174
|
+
}
|
|
175
|
+
return bestIndex;
|
|
176
|
+
}
|
|
177
|
+
function linearSlope(values) {
|
|
178
|
+
const n = values.length;
|
|
179
|
+
if (n < 2)
|
|
180
|
+
return 0;
|
|
181
|
+
let sumX = 0;
|
|
182
|
+
let sumY = 0;
|
|
183
|
+
let sumXY = 0;
|
|
184
|
+
let sumXX = 0;
|
|
185
|
+
for (let index = 0; index < n; index += 1) {
|
|
186
|
+
const value = values[index];
|
|
187
|
+
sumX += index;
|
|
188
|
+
sumY += value;
|
|
189
|
+
sumXY += index * value;
|
|
190
|
+
sumXX += index * index;
|
|
191
|
+
}
|
|
192
|
+
const denominator = n * sumXX - sumX * sumX;
|
|
193
|
+
if (denominator === 0)
|
|
194
|
+
return 0;
|
|
195
|
+
return (n * sumXY - sumX * sumY) / denominator;
|
|
196
|
+
}
|
|
197
|
+
function buildMetricTrendSummary(metricKey, trend, latestValue, bestValue, observationCount) {
|
|
198
|
+
return `${metricKey} trend is ${trend} from ${observationCount} observation(s); latest=${latestValue}, best=${bestValue}`;
|
|
199
|
+
}
|
|
200
|
+
function roundMetric(value) {
|
|
201
|
+
return Math.round(value * 1_000_000) / 1_000_000;
|
|
202
|
+
}
|
|
203
|
+
function clamp01(value) {
|
|
204
|
+
return Math.max(0, Math.min(1, value));
|
|
205
|
+
}
|
|
206
|
+
//# sourceMappingURL=metric-history.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"metric-history.js","sourceRoot":"","sources":["../../../src/platform/drive/metric-history.ts"],"names":[],"mappings":"AAoDA,MAAM,6BAA6B,GAAG,IAAI,CAAC;AAC3C,MAAM,8BAA8B,GAAG,IAAI,CAAC;AAC5C,MAAM,kBAAkB,GAAG,KAAK,CAAC;AACjC,MAAM,0BAA0B,GAAG,CAAC,CAAC;AAErC,MAAM,UAAU,mBAAmB,CACjC,YAAiC,EACjC,UAA4C,EAAE;IAE9C,MAAM,MAAM,GAAG,YAAY;SACxB,MAAM,CAAC,CAAC,WAAW,EAAE,EAAE,CAAC,MAAM,CAAC,QAAQ,CAAC,WAAW,CAAC,KAAK,CAAC,CAAC;SAC3D,IAAI,CAAC,CAAC,IAAI,EAAE,KAAK,EAAE,EAAE,CAAC,IAAI,CAAC,WAAW,CAAC,aAAa,CAAC,KAAK,CAAC,WAAW,CAAC,CAAC,CAAC;IAC5E,IAAI,MAAM,CAAC,MAAM,KAAK,CAAC;QAAE,OAAO,IAAI,CAAC;IAErC,MAAM,SAAS,GAAG,MAAM,CAAC,CAAC,CAAE,CAAC,UAAU,CAAC;IACxC,MAAM,SAAS,GAAG,MAAM,CAAC,CAAC,CAAE,CAAC,SAAS,CAAC;IACvC,MAAM,UAAU,GAAG,MAAM,CAAC,MAAM,CAAC,CAAC,WAAW,EAAE,EAAE,CAC/C,WAAW,CAAC,UAAU,KAA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