pulseed 0.5.4 → 0.6.1
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 +21 -15
- 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/config/identity-loader.d.ts +12 -3
- package/dist/base/config/identity-loader.d.ts.map +1 -1
- package/dist/base/config/identity-loader.js +15 -7
- package/dist/base/config/identity-loader.js.map +1 -1
- 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/grounding/contracts.d.ts +13 -0
- package/dist/grounding/contracts.d.ts.map +1 -1
- package/dist/grounding/providers/knowledge-provider.d.ts.map +1 -1
- package/dist/grounding/providers/knowledge-provider.js +25 -3
- package/dist/grounding/providers/knowledge-provider.js.map +1 -1
- package/dist/grounding/providers/soil-provider.d.ts.map +1 -1
- package/dist/grounding/providers/soil-provider.js +28 -3
- package/dist/grounding/providers/soil-provider.js.map +1 -1
- package/dist/grounding/providers/static-policy-provider.d.ts +3 -1
- package/dist/grounding/providers/static-policy-provider.d.ts.map +1 -1
- package/dist/grounding/providers/static-policy-provider.js +4 -3
- package/dist/grounding/providers/static-policy-provider.js.map +1 -1
- package/dist/index.d.ts +14 -0
- package/dist/index.d.ts.map +1 -1
- package/dist/index.js +8 -0
- package/dist/index.js.map +1 -1
- package/dist/interface/chat/chat-event-state.d.ts.map +1 -1
- package/dist/interface/chat/chat-event-state.js +92 -9
- package/dist/interface/chat/chat-event-state.js.map +1 -1
- package/dist/interface/chat/chat-events.d.ts +15 -1
- package/dist/interface/chat/chat-events.d.ts.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 +11 -1
- package/dist/interface/chat/chat-runner-event-bridge.d.ts.map +1 -1
- package/dist/interface/chat/chat-runner-event-bridge.js +123 -11
- package/dist/interface/chat/chat-runner-event-bridge.js.map +1 -1
- package/dist/interface/chat/chat-runner-routes.d.ts +20 -0
- package/dist/interface/chat/chat-runner-routes.d.ts.map +1 -1
- package/dist/interface/chat/chat-runner-routes.js +99 -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 +64 -10
- 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 +19 -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/freeform-route-classifier.d.ts +21 -0
- package/dist/interface/chat/freeform-route-classifier.d.ts.map +1 -0
- package/dist/interface/chat/freeform-route-classifier.js +42 -0
- package/dist/interface/chat/freeform-route-classifier.js.map +1 -0
- package/dist/interface/chat/grounding.js +1 -1
- package/dist/interface/chat/grounding.js.map +1 -1
- package/dist/interface/chat/ingress-router.d.ts +11 -1
- package/dist/interface/chat/ingress-router.d.ts.map +1 -1
- package/dist/interface/chat/ingress-router.js +21 -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 +28 -4
- package/dist/interface/cli/cli-command-registry.js.map +1 -1
- package/dist/interface/cli/cli-runner.d.ts.map +1 -1
- package/dist/interface/cli/cli-runner.js +4 -1
- package/dist/interface/cli/cli-runner.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 +76 -9
- 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 +14 -3
- package/dist/interface/cli/commands/goal-read.js.map +1 -1
- package/dist/interface/cli/commands/memory.d.ts +3 -0
- package/dist/interface/cli/commands/memory.d.ts.map +1 -0
- package/dist/interface/cli/commands/memory.js +78 -0
- package/dist/interface/cli/commands/memory.js.map +1 -0
- 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/plugin.d.ts.map +1 -1
- package/dist/interface/cli/commands/plugin.js +134 -12
- package/dist/interface/cli/commands/plugin.js.map +1 -1
- package/dist/interface/cli/commands/profile.d.ts +3 -0
- package/dist/interface/cli/commands/profile.d.ts.map +1 -0
- package/dist/interface/cli/commands/profile.js +459 -0
- package/dist/interface/cli/commands/profile.js.map +1 -0
- 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 +506 -2
- package/dist/interface/cli/commands/runtime.js.map +1 -1
- package/dist/interface/cli/commands/setup-wizard.d.ts.map +1 -1
- package/dist/interface/cli/commands/setup-wizard.js +30 -0
- package/dist/interface/cli/commands/setup-wizard.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 +12 -3
- 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 +75 -69
- package/dist/interface/tui/intent-recognizer.js.map +1 -1
- package/dist/orchestrator/execution/agent-loop/agent-loop-context-assembler.d.ts +2 -0
- package/dist/orchestrator/execution/agent-loop/agent-loop-context-assembler.d.ts.map +1 -1
- package/dist/orchestrator/execution/agent-loop/agent-loop-context-assembler.js +1 -0
- package/dist/orchestrator/execution/agent-loop/agent-loop-context-assembler.js.map +1 -1
- package/dist/orchestrator/execution/agent-loop/agent-loop-default-profile.d.ts.map +1 -1
- package/dist/orchestrator/execution/agent-loop/agent-loop-default-profile.js +42 -0
- package/dist/orchestrator/execution/agent-loop/agent-loop-default-profile.js.map +1 -1
- package/dist/orchestrator/execution/agent-loop/agent-loop-events.d.ts +1 -0
- package/dist/orchestrator/execution/agent-loop/agent-loop-events.d.ts.map +1 -1
- package/dist/orchestrator/execution/agent-loop/agent-loop-events.js.map +1 -1
- package/dist/orchestrator/execution/agent-loop/agent-loop-prompts.d.ts.map +1 -1
- package/dist/orchestrator/execution/agent-loop/agent-loop-prompts.js +3 -0
- package/dist/orchestrator/execution/agent-loop/agent-loop-prompts.js.map +1 -1
- package/dist/orchestrator/execution/agent-loop/agent-timeline.d.ts +109 -0
- package/dist/orchestrator/execution/agent-loop/agent-timeline.d.ts.map +1 -0
- package/dist/orchestrator/execution/agent-loop/agent-timeline.js +261 -0
- package/dist/orchestrator/execution/agent-loop/agent-timeline.js.map +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 +1 -0
- 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/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/execution-policy.d.ts +2 -0
- package/dist/orchestrator/execution/agent-loop/execution-policy.d.ts.map +1 -1
- package/dist/orchestrator/execution/agent-loop/execution-policy.js +9 -3
- package/dist/orchestrator/execution/agent-loop/execution-policy.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/self-protection.d.ts +9 -0
- package/dist/orchestrator/execution/agent-loop/self-protection.d.ts.map +1 -0
- package/dist/orchestrator/execution/agent-loop/self-protection.js +74 -0
- package/dist/orchestrator/execution/agent-loop/self-protection.js.map +1 -0
- 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 +386 -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 +1054 -2
- package/dist/orchestrator/loop/core-loop/phase-specs.d.ts.map +1 -1
- package/dist/orchestrator/loop/core-loop/phase-specs.js +205 -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 +31 -2
- 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/corrections/index.d.ts +2 -0
- package/dist/platform/corrections/index.d.ts.map +1 -0
- package/dist/platform/corrections/index.js +2 -0
- package/dist/platform/corrections/index.js.map +1 -0
- package/dist/platform/corrections/memory-correction-ledger.d.ts +656 -0
- package/dist/platform/corrections/memory-correction-ledger.d.ts.map +1 -0
- package/dist/platform/corrections/memory-correction-ledger.js +120 -0
- package/dist/platform/corrections/memory-correction-ledger.js.map +1 -0
- package/dist/platform/corrections/memory-governance.d.ts +118 -0
- package/dist/platform/corrections/memory-governance.d.ts.map +1 -0
- package/dist/platform/corrections/memory-governance.js +32 -0
- package/dist/platform/corrections/memory-governance.js.map +1 -0
- package/dist/platform/corrections/memory-quarantine.d.ts +57 -0
- package/dist/platform/corrections/memory-quarantine.d.ts.map +1 -0
- package/dist/platform/corrections/memory-quarantine.js +42 -0
- package/dist/platform/corrections/memory-quarantine.js.map +1 -0
- package/dist/platform/corrections/user-memory-operations.d.ts +31 -0
- package/dist/platform/corrections/user-memory-operations.d.ts.map +1 -0
- package/dist/platform/corrections/user-memory-operations.js +139 -0
- package/dist/platform/corrections/user-memory-operations.js.map +1 -0
- package/dist/platform/dream/dream-activation.d.ts +1 -1
- package/dist/platform/dream/dream-consolidator.d.ts +5 -0
- package/dist/platform/dream/dream-consolidator.d.ts.map +1 -1
- package/dist/platform/dream/dream-consolidator.js +235 -13
- 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-mutation.d.ts.map +1 -1
- package/dist/platform/dream/dream-soil-mutation.js +10 -0
- package/dist/platform/dream/dream-soil-mutation.js.map +1 -1
- package/dist/platform/dream/dream-types.d.ts +503 -91
- package/dist/platform/dream/dream-types.d.ts.map +1 -1
- package/dist/platform/dream/dream-types.js +3 -0
- package/dist/platform/dream/dream-types.js.map +1 -1
- package/dist/platform/dream/playbook-memory.d.ts +14 -14
- 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/knowledge-manager-agent-memory.d.ts +48 -0
- package/dist/platform/knowledge/knowledge-manager-agent-memory.d.ts.map +1 -1
- package/dist/platform/knowledge/knowledge-manager-agent-memory.js +154 -4
- package/dist/platform/knowledge/knowledge-manager-agent-memory.js.map +1 -1
- package/dist/platform/knowledge/knowledge-manager-lint.d.ts.map +1 -1
- package/dist/platform/knowledge/knowledge-manager-lint.js +98 -4
- package/dist/platform/knowledge/knowledge-manager-lint.js.map +1 -1
- package/dist/platform/knowledge/knowledge-manager.d.ts +41 -2
- package/dist/platform/knowledge/knowledge-manager.d.ts.map +1 -1
- package/dist/platform/knowledge/knowledge-manager.js +45 -5
- package/dist/platform/knowledge/knowledge-manager.js.map +1 -1
- package/dist/platform/knowledge/types/agent-memory.d.ts +1170 -42
- package/dist/platform/knowledge/types/agent-memory.d.ts.map +1 -1
- package/dist/platform/knowledge/types/agent-memory.js +13 -3
- package/dist/platform/knowledge/types/agent-memory.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/profile/proactive-feedback-proposals.d.ts +11 -0
- package/dist/platform/profile/proactive-feedback-proposals.d.ts.map +1 -0
- package/dist/platform/profile/proactive-feedback-proposals.js +106 -0
- package/dist/platform/profile/proactive-feedback-proposals.js.map +1 -0
- package/dist/platform/profile/profile-change-proposal.d.ts +464 -0
- package/dist/platform/profile/profile-change-proposal.d.ts.map +1 -0
- package/dist/platform/profile/profile-change-proposal.js +352 -0
- package/dist/platform/profile/profile-change-proposal.js.map +1 -0
- package/dist/platform/profile/relationship-profile.d.ts +351 -0
- package/dist/platform/profile/relationship-profile.d.ts.map +1 -0
- package/dist/platform/profile/relationship-profile.js +351 -0
- package/dist/platform/profile/relationship-profile.js.map +1 -0
- package/dist/platform/profile/retrieval-context.d.ts +12 -0
- package/dist/platform/profile/retrieval-context.d.ts.map +1 -0
- package/dist/platform/profile/retrieval-context.js +21 -0
- package/dist/platform/profile/retrieval-context.js.map +1 -0
- package/dist/platform/profile/user-md-profile-import.d.ts +73 -0
- package/dist/platform/profile/user-md-profile-import.d.ts.map +1 -0
- package/dist/platform/profile/user-md-profile-import.js +179 -0
- package/dist/platform/profile/user-md-profile-import.js.map +1 -0
- package/dist/platform/soil/content-projections.d.ts.map +1 -1
- package/dist/platform/soil/content-projections.js +17 -7
- package/dist/platform/soil/content-projections.js.map +1 -1
- package/dist/platform/soil/context-compiler.d.ts +16 -1
- package/dist/platform/soil/context-compiler.d.ts.map +1 -1
- package/dist/platform/soil/context-compiler.js +142 -4
- package/dist/platform/soil/context-compiler.js.map +1 -1
- package/dist/platform/soil/contracts.d.ts +749 -89
- package/dist/platform/soil/contracts.d.ts.map +1 -1
- package/dist/platform/soil/contracts.js +22 -0
- package/dist/platform/soil/contracts.js.map +1 -1
- package/dist/platform/soil/ddl.d.ts.map +1 -1
- package/dist/platform/soil/ddl.js +19 -0
- package/dist/platform/soil/ddl.js.map +1 -1
- package/dist/platform/soil/display/materialize.d.ts.map +1 -1
- package/dist/platform/soil/display/materialize.js.map +1 -1
- package/dist/platform/soil/importer.d.ts +12 -12
- package/dist/platform/soil/sqlite-repository-helpers.d.ts +4 -0
- package/dist/platform/soil/sqlite-repository-helpers.d.ts.map +1 -1
- package/dist/platform/soil/sqlite-repository-helpers.js.map +1 -1
- package/dist/platform/soil/sqlite-repository-search.d.ts.map +1 -1
- package/dist/platform/soil/sqlite-repository-search.js +48 -3
- package/dist/platform/soil/sqlite-repository-search.js.map +1 -1
- package/dist/platform/soil/sqlite-repository-storage.d.ts +3 -1
- package/dist/platform/soil/sqlite-repository-storage.d.ts.map +1 -1
- package/dist/platform/soil/sqlite-repository-storage.js +124 -3
- package/dist/platform/soil/sqlite-repository-storage.js.map +1 -1
- package/dist/platform/soil/sqlite-repository.d.ts +10 -1
- package/dist/platform/soil/sqlite-repository.d.ts.map +1 -1
- package/dist/platform/soil/sqlite-repository.js +46 -4
- package/dist/platform/soil/sqlite-repository.js.map +1 -1
- package/dist/platform/soil/types.d.ts +16 -16
- 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/curiosity-engine.d.ts +3 -1
- package/dist/platform/traits/curiosity-engine.d.ts.map +1 -1
- package/dist/platform/traits/curiosity-engine.js +3 -1
- package/dist/platform/traits/curiosity-engine.js.map +1 -1
- package/dist/platform/traits/curiosity-proposals.d.ts +6 -2
- package/dist/platform/traits/curiosity-proposals.d.ts.map +1 -1
- package/dist/platform/traits/curiosity-proposals.js +9 -3
- package/dist/platform/traits/curiosity-proposals.js.map +1 -1
- package/dist/platform/traits/types/curiosity.d.ts +9 -9
- package/dist/platform/traits/types/guardrail.d.ts +6 -6
- package/dist/reflection/evening-catchup.d.ts.map +1 -1
- package/dist/reflection/evening-catchup.js +4 -1
- package/dist/reflection/evening-catchup.js.map +1 -1
- package/dist/reflection/morning-planning.d.ts.map +1 -1
- package/dist/reflection/morning-planning.js +4 -1
- package/dist/reflection/morning-planning.js.map +1 -1
- package/dist/reflection/weekly-review.d.ts.map +1 -1
- package/dist/reflection/weekly-review.js +4 -1
- package/dist/reflection/weekly-review.js.map +1 -1
- 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/maintenance.d.ts.map +1 -1
- package/dist/runtime/daemon/maintenance.js +21 -2
- package/dist/runtime/daemon/maintenance.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-resident-curiosity.d.ts.map +1 -1
- package/dist/runtime/daemon/runner-resident-curiosity.js +5 -1
- package/dist/runtime/daemon/runner-resident-curiosity.js.map +1 -1
- package/dist/runtime/daemon/runner-resident-shared.d.ts +1 -1
- package/dist/runtime/daemon/runner-resident-shared.d.ts.map +1 -1
- package/dist/runtime/daemon/runner-resident-shared.js +16 -0
- package/dist/runtime/daemon/runner-resident-shared.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 +250 -1
- package/dist/runtime/daemon/runtime-ownership.js.map +1 -1
- package/dist/runtime/dream-sidecar-review.d.ts +93 -0
- package/dist/runtime/dream-sidecar-review.d.ts.map +1 -0
- package/dist/runtime/dream-sidecar-review.js +489 -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/gateway/telegram-gateway-adapter.d.ts.map +1 -1
- package/dist/runtime/gateway/telegram-gateway-adapter.js +4 -3
- package/dist/runtime/gateway/telegram-gateway-adapter.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/plugin-loader.d.ts +1 -0
- package/dist/runtime/plugin-loader.d.ts.map +1 -1
- package/dist/runtime/plugin-loader.js +7 -2
- package/dist/runtime/plugin-loader.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 +12 -0
- package/dist/runtime/store/dream-checkpoints.d.ts.map +1 -0
- package/dist/runtime/store/dream-checkpoints.js +18 -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 +6575 -0
- package/dist/runtime/store/evidence-ledger.d.ts.map +1 -0
- package/dist/runtime/store/evidence-ledger.js +1717 -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 +27 -2
- package/dist/runtime/store/index.d.ts.map +1 -1
- package/dist/runtime/store/index.js +14 -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/proactive-intervention-store.d.ts +360 -0
- package/dist/runtime/store/proactive-intervention-store.d.ts.map +1 -0
- package/dist/runtime/store/proactive-intervention-store.js +252 -0
- package/dist/runtime/store/proactive-intervention-store.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 +27 -0
- package/dist/runtime/store/runtime-paths.d.ts.map +1 -1
- package/dist/runtime/store/runtime-paths.js +77 -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 +232 -14
- package/dist/runtime/types/daemon.d.ts.map +1 -1
- package/dist/runtime/types/daemon.js +28 -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/plugin.d.ts.map +1 -1
- package/dist/runtime/types/plugin.js +1 -1
- package/dist/runtime/types/plugin.js.map +1 -1
- package/dist/runtime/types/schedule.d.ts +107 -64
- 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 +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 +5 -0
- package/dist/tools/builtin/factory.d.ts.map +1 -1
- package/dist/tools/builtin/factory.js +20 -3
- package/dist/tools/builtin/factory.js.map +1 -1
- package/dist/tools/execution/MemoryConsolidateTool/MemoryConsolidateTool.d.ts +4 -4
- package/dist/tools/execution/MemoryCorrectionTool/MemoryCorrectionTool.d.ts +76 -0
- package/dist/tools/execution/MemoryCorrectionTool/MemoryCorrectionTool.d.ts.map +1 -0
- package/dist/tools/execution/MemoryCorrectionTool/MemoryCorrectionTool.js +79 -0
- package/dist/tools/execution/MemoryCorrectionTool/MemoryCorrectionTool.js.map +1 -0
- package/dist/tools/execution/MemoryCorrectionTool/constants.d.ts +6 -0
- package/dist/tools/execution/MemoryCorrectionTool/constants.d.ts.map +1 -0
- package/dist/tools/execution/MemoryCorrectionTool/constants.js +6 -0
- package/dist/tools/execution/MemoryCorrectionTool/constants.js.map +1 -0
- package/dist/tools/execution/MemoryCorrectionTool/prompt.d.ts +2 -0
- package/dist/tools/execution/MemoryCorrectionTool/prompt.d.ts.map +1 -0
- package/dist/tools/execution/MemoryCorrectionTool/prompt.js +2 -0
- package/dist/tools/execution/MemoryCorrectionTool/prompt.js.map +1 -0
- package/dist/tools/execution/MemorySaveTool/MemorySaveTool.d.ts +306 -4
- package/dist/tools/execution/MemorySaveTool/MemorySaveTool.d.ts.map +1 -1
- package/dist/tools/execution/MemorySaveTool/MemorySaveTool.js +8 -0
- package/dist/tools/execution/MemorySaveTool/MemorySaveTool.js.map +1 -1
- package/dist/tools/fs/ApplyPatchTool/ApplyPatchTool.d.ts.map +1 -1
- package/dist/tools/fs/ApplyPatchTool/ApplyPatchTool.js +37 -4
- package/dist/tools/fs/ApplyPatchTool/ApplyPatchTool.js.map +1 -1
- package/dist/tools/fs/FileValidationTool/protected-path-policy.d.ts.map +1 -1
- package/dist/tools/fs/FileValidationTool/protected-path-policy.js +12 -0
- package/dist/tools/fs/FileValidationTool/protected-path-policy.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 +18 -6
- package/dist/tools/query/MemoryRecallTool/MemoryRecallTool.d.ts.map +1 -1
- package/dist/tools/query/MemoryRecallTool/MemoryRecallTool.js +12 -0
- package/dist/tools/query/MemoryRecallTool/MemoryRecallTool.js.map +1 -1
- package/dist/tools/query/SoilQueryTool/SoilQueryTool.d.ts +7 -0
- package/dist/tools/query/SoilQueryTool/SoilQueryTool.d.ts.map +1 -1
- package/dist/tools/query/SoilQueryTool/SoilQueryTool.js +20 -0
- package/dist/tools/query/SoilQueryTool/SoilQueryTool.js.map +1 -1
- 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/ShellTool/ShellTool.d.ts.map +1 -1
- package/dist/tools/system/ShellTool/ShellTool.js +1 -1
- package/dist/tools/system/ShellTool/ShellTool.js.map +1 -1
- package/dist/tools/system/ShellTool/command-policy.d.ts +1 -1
- package/dist/tools/system/ShellTool/command-policy.d.ts.map +1 -1
- package/dist/tools/system/ShellTool/command-policy.js +25 -1
- package/dist/tools/system/ShellTool/command-policy.js.map +1 -1
- package/dist/tools/system/TestRunnerTool/TestRunnerTool.d.ts +4 -4
- package/package.json +5 -2
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"metrics.d.ts","sourceRoot":"","sources":["../../../src/tools/kaggle/metrics.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAC;AAExB,eAAO,MAAM,2BAA2B,qCAAmC,CAAC;AAC5E,MAAM,MAAM,qBAAqB,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,2BAA2B,CAAC,CAAC;AAEhF,eAAO,MAAM,mBAAmB
|
|
1
|
+
{"version":3,"file":"metrics.d.ts","sourceRoot":"","sources":["../../../src/tools/kaggle/metrics.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAC;AAExB,eAAO,MAAM,2BAA2B,qCAAmC,CAAC;AAC5E,MAAM,MAAM,qBAAqB,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,2BAA2B,CAAC,CAAC;AAEhF,eAAO,MAAM,2BAA2B,yUAS9B,CAAC;AA+CX,eAAO,MAAM,8BAA8B;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;EAQhC,CAAC;AACZ,MAAM,MAAM,wBAAwB,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,8BAA8B,CAA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;AAED,wBAAgB,kBAAkB,CAAC,KAAK,EAAE,OAAO,GAAG,uBAAuB,CAW1E;AAED,wBAAgB,4BAA4B,CAC1C,KAAK,EAAE,OAAO,EACd,QAAQ,GAAE,kCAAuC,GAChD,uBAAuB,CAuBzB;AAED,wBAAgB,qBAAqB,CAAC,OAAO,EAAE,aAAa,GAAG,MAAM,CAEpE;AAED,wBAAgB,mBAAmB,CAAC,CAAC,EAAE,aAAa,EAAE,CAAC,EAAE,aAAa,GAAG,MAAM,CAE9E;AAED,wBAAgB,yBAAyB,CAAC,OAAO,EAAE,aAAa,GAAG,0BAA0B,CAwD5F"}
|
|
@@ -1,5 +1,112 @@
|
|
|
1
1
|
import { z } from "zod";
|
|
2
2
|
export const KaggleMetricDirectionSchema = z.enum(["maximize", "minimize"]);
|
|
3
|
+
export const KAGGLE_VALIDATION_CHECKLIST = [
|
|
4
|
+
"competition_metric_from_rules",
|
|
5
|
+
"cv_split_strategy_declared",
|
|
6
|
+
"oof_predictions_present_and_leak_checked",
|
|
7
|
+
"target_encoding_and_stacking_are_oof_only",
|
|
8
|
+
"seed_or_fold_stability_recorded",
|
|
9
|
+
"train_test_drift_checked",
|
|
10
|
+
"submission_portfolio_slot_declared",
|
|
11
|
+
"final_report_separates_local_cv_public_lb_private_uncertainty",
|
|
12
|
+
];
|
|
13
|
+
const KaggleValidationCompetitionMetricSchema = z.object({
|
|
14
|
+
name: z.string().min(1),
|
|
15
|
+
direction: KaggleMetricDirectionSchema,
|
|
16
|
+
source: z.enum(["competition_rules", "inferred", "manual"]).default("manual"),
|
|
17
|
+
}).strict();
|
|
18
|
+
const KaggleValidationCvSchema = z.object({
|
|
19
|
+
strategy: z.string().min(1),
|
|
20
|
+
fold_count: z.number().int().positive().optional(),
|
|
21
|
+
repeated_seed_count: z.number().int().positive().optional(),
|
|
22
|
+
stratified: z.boolean().optional(),
|
|
23
|
+
group_aware: z.boolean().optional(),
|
|
24
|
+
time_aware: z.boolean().optional(),
|
|
25
|
+
}).strict();
|
|
26
|
+
const KaggleValidationOofSchema = z.object({
|
|
27
|
+
present: z.boolean(),
|
|
28
|
+
path: z.string().min(1).optional(),
|
|
29
|
+
rows: z.number().int().nonnegative().optional(),
|
|
30
|
+
coverage: z.number().min(0).max(1).optional(),
|
|
31
|
+
leak_checked: z.boolean().optional(),
|
|
32
|
+
}).strict();
|
|
33
|
+
const KaggleValidationLeakChecksSchema = z.object({
|
|
34
|
+
target_encoding_oof_only: z.boolean().optional(),
|
|
35
|
+
stacking_oof_only: z.boolean().optional(),
|
|
36
|
+
train_test_boundary_checked: z.boolean().optional(),
|
|
37
|
+
duplicate_or_id_leak_checked: z.boolean().optional(),
|
|
38
|
+
notes: z.array(z.string().min(1)).default([]),
|
|
39
|
+
}).strict();
|
|
40
|
+
const KaggleValidationStabilitySchema = z.object({
|
|
41
|
+
repeated_seed_count: z.number().int().positive().optional(),
|
|
42
|
+
fold_score_min: z.number().finite().optional(),
|
|
43
|
+
fold_score_max: z.number().finite().optional(),
|
|
44
|
+
seed_score_std: z.number().finite().nonnegative().optional(),
|
|
45
|
+
}).strict();
|
|
46
|
+
const KaggleValidationTrainTestDriftSchema = z.object({
|
|
47
|
+
checked: z.boolean(),
|
|
48
|
+
adversarial_validation_auc: z.number().min(0).max(1).optional(),
|
|
49
|
+
summary: z.string().min(1).optional(),
|
|
50
|
+
}).strict();
|
|
51
|
+
const KaggleValidationPublicLeaderboardSchema = z.object({
|
|
52
|
+
score: z.number().finite().optional(),
|
|
53
|
+
submission_id: z.string().min(1).optional(),
|
|
54
|
+
observed_at: z.string().datetime().optional(),
|
|
55
|
+
notes: z.string().min(1).optional(),
|
|
56
|
+
}).strict();
|
|
57
|
+
export const KaggleValidationContractSchema = z.object({
|
|
58
|
+
competition_metric: KaggleValidationCompetitionMetricSchema.optional(),
|
|
59
|
+
cv: KaggleValidationCvSchema.optional(),
|
|
60
|
+
oof: KaggleValidationOofSchema.optional(),
|
|
61
|
+
leak_checks: KaggleValidationLeakChecksSchema.optional(),
|
|
62
|
+
stability: KaggleValidationStabilitySchema.optional(),
|
|
63
|
+
train_test_drift: KaggleValidationTrainTestDriftSchema.optional(),
|
|
64
|
+
public_leaderboard: KaggleValidationPublicLeaderboardSchema.optional(),
|
|
65
|
+
}).strict();
|
|
66
|
+
export const KaggleLongRunValidationContractSchema = KaggleValidationContractSchema.superRefine((contract, ctx) => {
|
|
67
|
+
if (!contract.competition_metric) {
|
|
68
|
+
ctx.addIssue({ code: z.ZodIssueCode.custom, message: "competition_metric is required before starting a Kaggle long run", path: ["competition_metric"] });
|
|
69
|
+
}
|
|
70
|
+
if (!contract.cv) {
|
|
71
|
+
ctx.addIssue({ code: z.ZodIssueCode.custom, message: "cv split strategy is required before starting a Kaggle long run", path: ["cv"] });
|
|
72
|
+
}
|
|
73
|
+
else if ((contract.cv.fold_count ?? 0) < 2) {
|
|
74
|
+
ctx.addIssue({ code: z.ZodIssueCode.custom, message: "cv.fold_count must declare at least two folds before starting a Kaggle long run", path: ["cv", "fold_count"] });
|
|
75
|
+
}
|
|
76
|
+
if (!contract.oof) {
|
|
77
|
+
ctx.addIssue({ code: z.ZodIssueCode.custom, message: "OOF generation contract is required before starting a Kaggle long run", path: ["oof"] });
|
|
78
|
+
}
|
|
79
|
+
else {
|
|
80
|
+
if (contract.oof.present !== true) {
|
|
81
|
+
ctx.addIssue({ code: z.ZodIssueCode.custom, message: "OOF predictions must be planned before starting a Kaggle long run", path: ["oof", "present"] });
|
|
82
|
+
}
|
|
83
|
+
if (contract.oof.leak_checked !== true) {
|
|
84
|
+
ctx.addIssue({ code: z.ZodIssueCode.custom, message: "OOF leakage check must be required before starting a Kaggle long run", path: ["oof", "leak_checked"] });
|
|
85
|
+
}
|
|
86
|
+
}
|
|
87
|
+
if (!contract.leak_checks) {
|
|
88
|
+
ctx.addIssue({ code: z.ZodIssueCode.custom, message: "leak-check contract is required before starting a Kaggle long run", path: ["leak_checks"] });
|
|
89
|
+
}
|
|
90
|
+
else {
|
|
91
|
+
const requiredChecks = [
|
|
92
|
+
["target_encoding_oof_only", "target encoding must be constrained to OOF-safe transforms"],
|
|
93
|
+
["stacking_oof_only", "stacking must be constrained to OOF-safe transforms"],
|
|
94
|
+
["train_test_boundary_checked", "train/test boundary check must be required"],
|
|
95
|
+
["duplicate_or_id_leak_checked", "duplicate/id leakage check must be required"],
|
|
96
|
+
];
|
|
97
|
+
for (const [key, message] of requiredChecks) {
|
|
98
|
+
if (contract.leak_checks[key] !== true) {
|
|
99
|
+
ctx.addIssue({ code: z.ZodIssueCode.custom, message, path: ["leak_checks", key] });
|
|
100
|
+
}
|
|
101
|
+
}
|
|
102
|
+
}
|
|
103
|
+
if (!contract.train_test_drift) {
|
|
104
|
+
ctx.addIssue({ code: z.ZodIssueCode.custom, message: "train/test drift contract is required before starting a Kaggle long run", path: ["train_test_drift"] });
|
|
105
|
+
}
|
|
106
|
+
else if (contract.train_test_drift.checked !== true) {
|
|
107
|
+
ctx.addIssue({ code: z.ZodIssueCode.custom, message: "train/test drift check must be required before starting a Kaggle long run", path: ["train_test_drift", "checked"] });
|
|
108
|
+
}
|
|
109
|
+
});
|
|
3
110
|
export const KaggleMetricsSchema = z.object({
|
|
4
111
|
experiment_id: z.string().min(1),
|
|
5
112
|
competition: z.string().min(1),
|
|
@@ -18,6 +125,7 @@ export const KaggleMetricsSchema = z.object({
|
|
|
18
125
|
submission: z.string().min(1).optional(),
|
|
19
126
|
log: z.string().min(1),
|
|
20
127
|
}).strict(),
|
|
128
|
+
validation: KaggleValidationContractSchema.optional(),
|
|
21
129
|
}).strict();
|
|
22
130
|
export function metricThresholdHintForDirection(metricName, direction) {
|
|
23
131
|
const operator = direction === "maximize" ? "gte" : "lte";
|
|
@@ -33,7 +141,7 @@ export function metricThresholdHintForDirection(metricName, direction) {
|
|
|
33
141
|
export function parseKaggleMetrics(value) {
|
|
34
142
|
const parsed = KaggleMetricsSchema.safeParse(value);
|
|
35
143
|
if (parsed.success) {
|
|
36
|
-
return { ok: true, metrics: parsed.data };
|
|
144
|
+
return { ok: true, metrics: parsed.data, source_schema: "strict", warnings: [] };
|
|
37
145
|
}
|
|
38
146
|
return {
|
|
39
147
|
ok: false,
|
|
@@ -42,10 +150,311 @@ export function parseKaggleMetrics(value) {
|
|
|
42
150
|
issues: parsed.error.issues.map((issue) => `${issue.path.join(".") || "(root)"}: ${issue.message}`),
|
|
43
151
|
};
|
|
44
152
|
}
|
|
153
|
+
export function parseKaggleMetricsCompatible(value, fallback = {}) {
|
|
154
|
+
const strict = KaggleMetricsSchema.safeParse(value);
|
|
155
|
+
if (strict.success) {
|
|
156
|
+
return { ok: true, metrics: strict.data, source_schema: "strict", warnings: [] };
|
|
157
|
+
}
|
|
158
|
+
const loose = normalizeLooseKaggleMetrics(value, fallback);
|
|
159
|
+
if (loose) {
|
|
160
|
+
const parsed = KaggleMetricsSchema.safeParse(loose.metrics);
|
|
161
|
+
if (parsed.success) {
|
|
162
|
+
return {
|
|
163
|
+
ok: true,
|
|
164
|
+
metrics: parsed.data,
|
|
165
|
+
source_schema: "loose",
|
|
166
|
+
warnings: loose.warnings,
|
|
167
|
+
};
|
|
168
|
+
}
|
|
169
|
+
}
|
|
170
|
+
return {
|
|
171
|
+
ok: false,
|
|
172
|
+
reason: "malformed",
|
|
173
|
+
message: "metrics.json does not match the strict Kaggle metrics schema or supported loose Kaggle metric schema",
|
|
174
|
+
issues: strict.error.issues.map((issue) => `${issue.path.join(".") || "(root)"}: ${issue.message}`),
|
|
175
|
+
};
|
|
176
|
+
}
|
|
45
177
|
export function normalizedMetricScore(metrics) {
|
|
46
178
|
return metrics.direction === "maximize" ? metrics.cv_score : -metrics.cv_score;
|
|
47
179
|
}
|
|
48
180
|
export function compareMetricScores(a, b) {
|
|
49
181
|
return normalizedMetricScore(b) - normalizedMetricScore(a);
|
|
50
182
|
}
|
|
183
|
+
export function summarizeKaggleValidation(metrics) {
|
|
184
|
+
const warnings = [];
|
|
185
|
+
const leakRisks = [];
|
|
186
|
+
const validation = metrics.validation;
|
|
187
|
+
const oofPresent = validation?.oof?.present ?? false;
|
|
188
|
+
const oofLeakChecked = validation?.oof?.leak_checked ?? false;
|
|
189
|
+
const cvStd = metrics.cv_std ?? validation?.stability?.seed_score_std ?? null;
|
|
190
|
+
const publicScore = validation?.public_leaderboard?.score ?? null;
|
|
191
|
+
const publicGap = publicScore === null
|
|
192
|
+
? null
|
|
193
|
+
: normalizedMetricScore(metrics) - (metrics.direction === "maximize" ? publicScore : -publicScore);
|
|
194
|
+
const driftAuc = validation?.train_test_drift?.adversarial_validation_auc;
|
|
195
|
+
const driftChecked = validation?.train_test_drift?.checked ?? false;
|
|
196
|
+
const driftRisk = !driftChecked
|
|
197
|
+
? "unknown"
|
|
198
|
+
: typeof driftAuc === "number" && driftAuc >= 0.65
|
|
199
|
+
? "high"
|
|
200
|
+
: "low";
|
|
201
|
+
if (!oofPresent)
|
|
202
|
+
warnings.push("OOF predictions are missing");
|
|
203
|
+
if (oofPresent && !oofLeakChecked)
|
|
204
|
+
warnings.push("OOF leakage check is missing");
|
|
205
|
+
if (cvStd === null)
|
|
206
|
+
warnings.push("CV stability is missing");
|
|
207
|
+
if (!driftChecked)
|
|
208
|
+
warnings.push("train/test drift check is missing");
|
|
209
|
+
if (publicGap !== null && publicGap > 0.03)
|
|
210
|
+
warnings.push(`public leaderboard trails local CV by ${publicGap}`);
|
|
211
|
+
if (validation?.leak_checks?.target_encoding_oof_only === false)
|
|
212
|
+
leakRisks.push("target_encoding_not_oof_safe");
|
|
213
|
+
if (validation?.leak_checks?.stacking_oof_only === false)
|
|
214
|
+
leakRisks.push("stacking_not_oof_safe");
|
|
215
|
+
if (validation?.leak_checks?.train_test_boundary_checked === false)
|
|
216
|
+
leakRisks.push("train_test_boundary_not_checked");
|
|
217
|
+
if (validation?.leak_checks?.duplicate_or_id_leak_checked === false)
|
|
218
|
+
leakRisks.push("duplicate_or_id_leak_not_checked");
|
|
219
|
+
const robustPenalty = (cvStd ?? 0.04) * 1.5
|
|
220
|
+
+ (!oofPresent ? 0.08 : 0)
|
|
221
|
+
+ (oofPresent && !oofLeakChecked ? 0.04 : 0)
|
|
222
|
+
+ (publicGap !== null && publicGap > 0 ? publicGap * 1.5 : 0)
|
|
223
|
+
+ (driftRisk === "high" ? 0.06 : driftRisk === "unknown" ? 0.02 : 0)
|
|
224
|
+
+ leakRisks.length * 0.08;
|
|
225
|
+
const riskLevel = leakRisks.length > 0 || !oofPresent || (publicGap !== null && publicGap > 0.05) || driftRisk === "high"
|
|
226
|
+
? "high"
|
|
227
|
+
: warnings.length > 0
|
|
228
|
+
? "medium"
|
|
229
|
+
: "low";
|
|
230
|
+
return {
|
|
231
|
+
oof_present: oofPresent,
|
|
232
|
+
oof_leak_checked: oofLeakChecked,
|
|
233
|
+
cv_stability_available: cvStd !== null,
|
|
234
|
+
cv_std: cvStd,
|
|
235
|
+
public_lb_score: publicScore,
|
|
236
|
+
public_lb_gap: publicGap,
|
|
237
|
+
drift_checked: driftChecked,
|
|
238
|
+
drift_risk: driftRisk,
|
|
239
|
+
leak_risks: leakRisks,
|
|
240
|
+
warnings,
|
|
241
|
+
risk_level: riskLevel,
|
|
242
|
+
robust_penalty: robustPenalty,
|
|
243
|
+
};
|
|
244
|
+
}
|
|
245
|
+
function normalizeLooseValidationContract(value, warnings) {
|
|
246
|
+
if (!isRecord(value))
|
|
247
|
+
return undefined;
|
|
248
|
+
const normalized = {};
|
|
249
|
+
const competitionMetric = KaggleValidationCompetitionMetricSchema.strip().safeParse(value["competition_metric"]);
|
|
250
|
+
if (competitionMetric.success) {
|
|
251
|
+
normalized.competition_metric = competitionMetric.data;
|
|
252
|
+
}
|
|
253
|
+
else if ("competition_metric" in value) {
|
|
254
|
+
warnings.push("validation.competition_metric malformed; ignored");
|
|
255
|
+
}
|
|
256
|
+
const cv = KaggleValidationCvSchema.strip().safeParse(value["cv"]);
|
|
257
|
+
if (cv.success) {
|
|
258
|
+
normalized.cv = cv.data;
|
|
259
|
+
}
|
|
260
|
+
else if ("cv" in value) {
|
|
261
|
+
warnings.push("validation.cv malformed; ignored");
|
|
262
|
+
}
|
|
263
|
+
const oof = KaggleValidationOofSchema.strip().safeParse(value["oof"]);
|
|
264
|
+
if (oof.success) {
|
|
265
|
+
normalized.oof = oof.data;
|
|
266
|
+
}
|
|
267
|
+
else if ("oof" in value) {
|
|
268
|
+
warnings.push("validation.oof malformed; ignored");
|
|
269
|
+
}
|
|
270
|
+
const leakChecks = KaggleValidationLeakChecksSchema.strip().safeParse(value["leak_checks"]);
|
|
271
|
+
if (leakChecks.success) {
|
|
272
|
+
normalized.leak_checks = leakChecks.data;
|
|
273
|
+
}
|
|
274
|
+
else if ("leak_checks" in value) {
|
|
275
|
+
warnings.push("validation.leak_checks malformed; ignored");
|
|
276
|
+
}
|
|
277
|
+
const stability = KaggleValidationStabilitySchema.strip().safeParse(value["stability"]);
|
|
278
|
+
if (stability.success) {
|
|
279
|
+
normalized.stability = stability.data;
|
|
280
|
+
}
|
|
281
|
+
else if ("stability" in value) {
|
|
282
|
+
warnings.push("validation.stability malformed; ignored");
|
|
283
|
+
}
|
|
284
|
+
const drift = KaggleValidationTrainTestDriftSchema.strip().safeParse(value["train_test_drift"]);
|
|
285
|
+
if (drift.success) {
|
|
286
|
+
normalized.train_test_drift = drift.data;
|
|
287
|
+
}
|
|
288
|
+
else if ("train_test_drift" in value) {
|
|
289
|
+
warnings.push("validation.train_test_drift malformed; ignored");
|
|
290
|
+
}
|
|
291
|
+
const publicLeaderboard = normalizeLoosePublicLeaderboard(value["public_leaderboard"], warnings);
|
|
292
|
+
if (publicLeaderboard) {
|
|
293
|
+
normalized.public_leaderboard = publicLeaderboard;
|
|
294
|
+
}
|
|
295
|
+
else if ("public_leaderboard" in value) {
|
|
296
|
+
warnings.push("validation.public_leaderboard malformed; ignored");
|
|
297
|
+
}
|
|
298
|
+
return Object.keys(normalized).length > 0 ? normalized : undefined;
|
|
299
|
+
}
|
|
300
|
+
function normalizeLoosePublicLeaderboard(value, warnings) {
|
|
301
|
+
if (!isRecord(value))
|
|
302
|
+
return undefined;
|
|
303
|
+
const score = numberField(value, "score");
|
|
304
|
+
const submissionId = stringField(value, "submission_id");
|
|
305
|
+
const observedAtRaw = stringField(value, "observed_at");
|
|
306
|
+
const observedAt = normalizeDateTime(observedAtRaw ?? undefined);
|
|
307
|
+
const notes = stringField(value, "notes");
|
|
308
|
+
const normalized = {};
|
|
309
|
+
if (score !== null)
|
|
310
|
+
normalized.score = score;
|
|
311
|
+
if (submissionId)
|
|
312
|
+
normalized.submission_id = submissionId;
|
|
313
|
+
if (observedAt)
|
|
314
|
+
normalized.observed_at = observedAt;
|
|
315
|
+
if (observedAtRaw && !observedAt)
|
|
316
|
+
warnings.push("validation.public_leaderboard.observed_at malformed; ignored");
|
|
317
|
+
if (notes)
|
|
318
|
+
normalized.notes = notes;
|
|
319
|
+
return Object.keys(normalized).length > 0 ? normalized : undefined;
|
|
320
|
+
}
|
|
321
|
+
function normalizeLooseKaggleMetrics(value, fallback) {
|
|
322
|
+
if (!isRecord(value))
|
|
323
|
+
return null;
|
|
324
|
+
const allMetrics = isRecord(value["all_metrics"]) ? value["all_metrics"] : null;
|
|
325
|
+
const metricName = stringField(value, "metric_name")
|
|
326
|
+
?? firstNumericMetricName(allMetrics)
|
|
327
|
+
?? (numberField(value, "balanced_accuracy") !== null ? "balanced_accuracy" : null)
|
|
328
|
+
?? (numberField(value, "accuracy") !== null ? "accuracy" : null);
|
|
329
|
+
if (!metricName)
|
|
330
|
+
return null;
|
|
331
|
+
const score = numberField(value, "cv_score")
|
|
332
|
+
?? numberField(value, "metric_value")
|
|
333
|
+
?? numberField(value, "score")
|
|
334
|
+
?? numberField(value, metricName)
|
|
335
|
+
?? numberField(allMetrics, metricName);
|
|
336
|
+
if (score === null)
|
|
337
|
+
return null;
|
|
338
|
+
const experimentId = stringField(value, "experiment_id") ?? fallback.experiment_id;
|
|
339
|
+
const competition = stringField(value, "competition") ?? fallback.competition;
|
|
340
|
+
if (!experimentId || !competition)
|
|
341
|
+
return null;
|
|
342
|
+
const direction = normalizeMetricDirection(stringField(value, "direction") ?? stringField(value, "metric_direction"), metricName);
|
|
343
|
+
const createdAt = normalizeDateTime(stringField(value, "created_at")
|
|
344
|
+
?? stringField(value, "finished_at_utc")
|
|
345
|
+
?? stringField(value, "started_at_utc")
|
|
346
|
+
?? fallback.created_at) ?? new Date().toISOString();
|
|
347
|
+
const logPath = stringFieldFromArtifacts(value, "log")
|
|
348
|
+
?? stringField(value, "train_log")
|
|
349
|
+
?? fallback.log_path
|
|
350
|
+
?? `experiments/${experimentId}/train.log`;
|
|
351
|
+
const artifacts = { log: logPath };
|
|
352
|
+
const submission = stringFieldFromArtifacts(value, "submission")
|
|
353
|
+
?? stringField(value, "submission_file")
|
|
354
|
+
?? fallback.submission_path;
|
|
355
|
+
if (submission)
|
|
356
|
+
artifacts.submission = submission;
|
|
357
|
+
const model = stringFieldFromArtifacts(value, "model")
|
|
358
|
+
?? stringField(value, "model_file")
|
|
359
|
+
?? fallback.model_path;
|
|
360
|
+
if (model)
|
|
361
|
+
artifacts.model = model;
|
|
362
|
+
const warnings = [];
|
|
363
|
+
if (!stringField(value, "competition"))
|
|
364
|
+
warnings.push("competition was supplied by the caller");
|
|
365
|
+
if (!stringField(value, "direction") && !stringField(value, "metric_direction")) {
|
|
366
|
+
warnings.push(`direction inferred as ${direction} for metric ${metricName}`);
|
|
367
|
+
}
|
|
368
|
+
if (numberField(value, "train_rows") === null)
|
|
369
|
+
warnings.push("train_rows missing; normalized to 0");
|
|
370
|
+
if (numberField(value, "valid_rows") === null)
|
|
371
|
+
warnings.push("valid_rows missing; normalized to 0");
|
|
372
|
+
const normalized = {
|
|
373
|
+
experiment_id: experimentId,
|
|
374
|
+
competition,
|
|
375
|
+
metric_name: metricName,
|
|
376
|
+
direction,
|
|
377
|
+
cv_score: score,
|
|
378
|
+
cv_std: numberField(value, "cv_std") ?? stdFromFoldScores(value["fold_scores"]),
|
|
379
|
+
holdout_score: numberField(value, "holdout_score"),
|
|
380
|
+
train_rows: intField(value, "train_rows") ?? 0,
|
|
381
|
+
valid_rows: intField(value, "valid_rows") ?? 0,
|
|
382
|
+
seed: intField(value, "seed") ?? 0,
|
|
383
|
+
created_at: createdAt,
|
|
384
|
+
status: normalizeStatus(stringField(value, "status")),
|
|
385
|
+
artifacts,
|
|
386
|
+
};
|
|
387
|
+
const validation = normalizeLooseValidationContract(value["validation"], warnings);
|
|
388
|
+
if (validation) {
|
|
389
|
+
normalized.validation = validation;
|
|
390
|
+
}
|
|
391
|
+
return {
|
|
392
|
+
metrics: normalized,
|
|
393
|
+
warnings,
|
|
394
|
+
};
|
|
395
|
+
}
|
|
396
|
+
function normalizeMetricDirection(value, metricName) {
|
|
397
|
+
if (value === "maximize" || value === "higher" || value === "higher_is_better" || value === "greater_is_better")
|
|
398
|
+
return "maximize";
|
|
399
|
+
if (value === "minimize" || value === "lower" || value === "lower_is_better" || value === "less_is_better")
|
|
400
|
+
return "minimize";
|
|
401
|
+
return metricName === "rmse" || metricName === "log_loss" ? "minimize" : "maximize";
|
|
402
|
+
}
|
|
403
|
+
function normalizeStatus(value) {
|
|
404
|
+
if (value === "running" || value === "completed" || value === "failed")
|
|
405
|
+
return value;
|
|
406
|
+
if (value === "succeeded" || value === "success" || value === "complete")
|
|
407
|
+
return "completed";
|
|
408
|
+
if (value === "error")
|
|
409
|
+
return "failed";
|
|
410
|
+
return "completed";
|
|
411
|
+
}
|
|
412
|
+
function normalizeDateTime(value) {
|
|
413
|
+
if (!value)
|
|
414
|
+
return null;
|
|
415
|
+
const parsed = Date.parse(value);
|
|
416
|
+
return Number.isFinite(parsed) ? new Date(parsed).toISOString() : null;
|
|
417
|
+
}
|
|
418
|
+
function firstNumericMetricName(value) {
|
|
419
|
+
if (!value)
|
|
420
|
+
return null;
|
|
421
|
+
for (const preferred of ["balanced_accuracy", "accuracy", "macro_f1", "weighted_f1", "log_loss", "rmse"]) {
|
|
422
|
+
if (numberField(value, preferred) !== null)
|
|
423
|
+
return preferred;
|
|
424
|
+
}
|
|
425
|
+
for (const [key, field] of Object.entries(value)) {
|
|
426
|
+
if (typeof field === "number" && Number.isFinite(field))
|
|
427
|
+
return key;
|
|
428
|
+
}
|
|
429
|
+
return null;
|
|
430
|
+
}
|
|
431
|
+
function stdFromFoldScores(value) {
|
|
432
|
+
if (!Array.isArray(value))
|
|
433
|
+
return null;
|
|
434
|
+
const scores = value.filter((item) => typeof item === "number" && Number.isFinite(item));
|
|
435
|
+
if (scores.length < 2)
|
|
436
|
+
return null;
|
|
437
|
+
const mean = scores.reduce((total, item) => total + item, 0) / scores.length;
|
|
438
|
+
const variance = scores.reduce((total, item) => total + (item - mean) ** 2, 0) / (scores.length - 1);
|
|
439
|
+
return Math.sqrt(variance);
|
|
440
|
+
}
|
|
441
|
+
function stringFieldFromArtifacts(value, key) {
|
|
442
|
+
const artifacts = value["artifacts"];
|
|
443
|
+
return isRecord(artifacts) ? stringField(artifacts, key) : null;
|
|
444
|
+
}
|
|
445
|
+
function stringField(value, key) {
|
|
446
|
+
const field = value?.[key];
|
|
447
|
+
return typeof field === "string" && field.trim().length > 0 ? field : null;
|
|
448
|
+
}
|
|
449
|
+
function numberField(value, key) {
|
|
450
|
+
const field = value?.[key];
|
|
451
|
+
return typeof field === "number" && Number.isFinite(field) ? field : null;
|
|
452
|
+
}
|
|
453
|
+
function intField(value, key) {
|
|
454
|
+
const field = numberField(value, key);
|
|
455
|
+
return field !== null && Number.isInteger(field) ? field : null;
|
|
456
|
+
}
|
|
457
|
+
function isRecord(value) {
|
|
458
|
+
return typeof value === "object" && value !== null && !Array.isArray(value);
|
|
459
|
+
}
|
|
51
460
|
//# sourceMappingURL=metrics.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"metrics.js","sourceRoot":"","sources":["../../../src/tools/kaggle/metrics.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAC;AAExB,MAAM,CAAC,MAAM,2BA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O,KAAK,KAAK,QAAQ,IAAI,KAAK,CAAC,IAAI,EAAE,CAAC,MAAM,GAAG,CAAC,CAAC,CAAC,CAAC,KAAK,CAAC,CAAC,CAAC,IAAI,CAAC;AAC7E,CAAC;AAED,SAAS,WAAW,CAAC,KAAqC,EAAE,GAAW;IACrE,MAAM,KAAK,GAAG,KAAK,EAAE,CAAC,GAAG,CAAC,CAAC;IAC3B,OAAO,OAAO,KAAK,KAAK,QAAQ,IAAI,MAAM,CAAC,QAAQ,CAAC,KAAK,CAAC,CAAC,CAAC,CAAC,KAAK,CAAC,CAAC,CAAC,IAAI,CAAC;AAC5E,CAAC;AAED,SAAS,QAAQ,CAAC,KAA8B,EAAE,GAAW;IAC3D,MAAM,KAAK,GAAG,WAAW,CAAC,KAAK,EAAE,GAAG,CAAC,CAAC;IACtC,OAAO,KAAK,KAAK,IAAI,IAAI,MAAM,CAAC,SAAS,CAAC,KAAK,CAAC,CAAC,CAAC,CAAC,KAAK,CAAC,CAAC,CAAC,IAAI,CAAC;AAClE,CAAC;AAED,SAAS,QAAQ,CAAC,KAAc;IAC9B,OAAO,OAAO,KAAK,KAAK,QAAQ,IAAI,KAAK,KAAK,IAAI,IAAI,CAAC,KAAK,CAAC,OAAO,CAAC,KAAK,CAAC,CAAC;AAC9E,CAAC"}
|
package/dist/tools/mutation/ConfigureNotificationRoutingTool/ConfigureNotificationRoutingTool.d.ts
CHANGED
|
@@ -1,5 +1,6 @@
|
|
|
1
1
|
import { z } from "zod";
|
|
2
2
|
import type { ITool, ToolResult, ToolCallContext, PermissionCheckResult, ToolMetadata, ToolDescriptionContext } from "../../types.js";
|
|
3
|
+
import type { ILLMClient } from "../../../base/llm/llm-client.js";
|
|
3
4
|
export declare const ConfigureNotificationRoutingInputSchema: z.ZodObject<{
|
|
4
5
|
instruction: z.ZodString;
|
|
5
6
|
}, "strip", z.ZodTypeAny, {
|
|
@@ -8,7 +9,11 @@ export declare const ConfigureNotificationRoutingInputSchema: z.ZodObject<{
|
|
|
8
9
|
instruction: string;
|
|
9
10
|
}>;
|
|
10
11
|
export type ConfigureNotificationRoutingInput = z.infer<typeof ConfigureNotificationRoutingInputSchema>;
|
|
12
|
+
export interface ConfigureNotificationRoutingToolDeps {
|
|
13
|
+
buildLLMClient?: () => Promise<Pick<ILLMClient, "sendMessage" | "parseJSON">>;
|
|
14
|
+
}
|
|
11
15
|
export declare class ConfigureNotificationRoutingTool implements ITool<ConfigureNotificationRoutingInput, unknown> {
|
|
16
|
+
private readonly deps;
|
|
12
17
|
readonly metadata: ToolMetadata;
|
|
13
18
|
readonly inputSchema: z.ZodObject<{
|
|
14
19
|
instruction: z.ZodString;
|
|
@@ -17,6 +22,7 @@ export declare class ConfigureNotificationRoutingTool implements ITool<Configure
|
|
|
17
22
|
}, {
|
|
18
23
|
instruction: string;
|
|
19
24
|
}>;
|
|
25
|
+
constructor(deps?: ConfigureNotificationRoutingToolDeps);
|
|
20
26
|
description(_context?: ToolDescriptionContext): string;
|
|
21
27
|
call(input: ConfigureNotificationRoutingInput, _context: ToolCallContext): Promise<ToolResult>;
|
|
22
28
|
checkPermissions(_input: ConfigureNotificationRoutingInput, context: ToolCallContext): Promise<PermissionCheckResult>;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"ConfigureNotificationRoutingTool.d.ts","sourceRoot":"","sources":["../../../../src/tools/mutation/ConfigureNotificationRoutingTool/ConfigureNotificationRoutingTool.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAC;AACxB,OAAO,KAAK,EAAE,KAAK,EAAE,UAAU,EAAE,eAAe,EAAE,qBAAqB,EAAE,YAAY,EAAE,sBAAsB,EAAE,MAAM,gBAAgB,CAAC;
|
|
1
|
+
{"version":3,"file":"ConfigureNotificationRoutingTool.d.ts","sourceRoot":"","sources":["../../../../src/tools/mutation/ConfigureNotificationRoutingTool/ConfigureNotificationRoutingTool.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAC;AACxB,OAAO,KAAK,EAAE,KAAK,EAAE,UAAU,EAAE,eAAe,EAAE,qBAAqB,EAAE,YAAY,EAAE,sBAAsB,EAAE,MAAM,gBAAgB,CAAC;AAGtI,OAAO,KAAK,EAAE,UAAU,EAAE,MAAM,iCAAiC,CAAC;AAIlE,eAAO,MAAM,uCAAuC;;;;;;EAElD,CAAC;AACH,MAAM,MAAM,iCAAiC,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,uCAAuC,CAAC,CAAC;AAExG,MAAM,WAAW,oCAAoC;IACnD,cAAc,CAAC,EAAE,MAAM,OAAO,CAAC,IAAI,CAAC,UAAU,EAAE,aAAa,GAAG,WAAW,CAAC,CAAC,CAAC;CAC/E;AAED,qBAAa,gCAAiC,YAAW,KAAK,CAAC,iCAAiC,EAAE,OAAO,CAAC;IAe5F,OAAO,CAAC,QAAQ,CAAC,IAAI;IAdjC,QAAQ,CAAC,QAAQ,EAAE,YAAY,CAW7B;IACF,QAAQ,CAAC,WAAW;;;;;;OAA2C;gBAElC,IAAI,GAAE,oCAAyC;IAE5E,WAAW,CAAC,QAAQ,CAAC,EAAE,sBAAsB,GAAG,MAAM;IAIhD,IAAI,CAAC,KAAK,EAAE,iCAAiC,EAAE,QAAQ,EAAE,eAAe,GAAG,OAAO,CAAC,UAAU,CAAC;IAwB9F,gBAAgB,CAAC,MAAM,EAAE,iCAAiC,EAAE,OAAO,EAAE,eAAe,GAAG,OAAO,CAAC,qBAAqB,CAAC;IAQ3H,iBAAiB,CAAC,MAAM,CAAC,EAAE,iCAAiC,GAAG,OAAO;CAGvE"}
|
package/dist/tools/mutation/ConfigureNotificationRoutingTool/ConfigureNotificationRoutingTool.js
CHANGED
|
@@ -1,11 +1,13 @@
|
|
|
1
1
|
import { z } from "zod";
|
|
2
2
|
import { applyNaturalLanguageNotificationRouting } from "../../../runtime/notification-routing.js";
|
|
3
|
+
import { buildLLMClient } from "../../../base/llm/provider-factory.js";
|
|
3
4
|
import { DESCRIPTION } from "./prompt.js";
|
|
4
5
|
import { TAGS, READ_ONLY, PERMISSION_LEVEL } from "./constants.js";
|
|
5
6
|
export const ConfigureNotificationRoutingInputSchema = z.object({
|
|
6
7
|
instruction: z.string().min(1, "instruction is required"),
|
|
7
8
|
});
|
|
8
9
|
export class ConfigureNotificationRoutingTool {
|
|
10
|
+
deps;
|
|
9
11
|
metadata = {
|
|
10
12
|
name: "configure_notification_routing",
|
|
11
13
|
aliases: ["route_notifications", "configure_reports"],
|
|
@@ -19,17 +21,22 @@ export class ConfigureNotificationRoutingTool {
|
|
|
19
21
|
tags: [...TAGS],
|
|
20
22
|
};
|
|
21
23
|
inputSchema = ConfigureNotificationRoutingInputSchema;
|
|
24
|
+
constructor(deps = {}) {
|
|
25
|
+
this.deps = deps;
|
|
26
|
+
}
|
|
22
27
|
description(_context) {
|
|
23
28
|
return DESCRIPTION;
|
|
24
29
|
}
|
|
25
30
|
async call(input, _context) {
|
|
26
31
|
const startTime = Date.now();
|
|
27
32
|
try {
|
|
28
|
-
const
|
|
33
|
+
const llmClient = await (this.deps.buildLLMClient ?? buildLLMClient)();
|
|
34
|
+
const update = await applyNaturalLanguageNotificationRouting(input.instruction, undefined, { llmClient });
|
|
29
35
|
return {
|
|
30
|
-
success:
|
|
36
|
+
success: update.applied,
|
|
31
37
|
data: update,
|
|
32
38
|
summary: update.summary,
|
|
39
|
+
error: update.applied ? undefined : update.summary,
|
|
33
40
|
durationMs: Date.now() - startTime,
|
|
34
41
|
};
|
|
35
42
|
}
|
package/dist/tools/mutation/ConfigureNotificationRoutingTool/ConfigureNotificationRoutingTool.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"ConfigureNotificationRoutingTool.js","sourceRoot":"","sources":["../../../../src/tools/mutation/ConfigureNotificationRoutingTool/ConfigureNotificationRoutingTool.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAC;AAExB,OAAO,EAAE,uCAAuC,EAAE,MAAM,0CAA0C,CAAC;AACnG,OAAO,EAAE,WAAW,EAAE,MAAM,aAAa,CAAC;AAC1C,OAAO,EAAE,IAAI,EAAE,SAAS,EAAE,gBAAgB,EAAE,MAAM,gBAAgB,CAAC;AAEnE,MAAM,CAAC,MAAM,uCAAuC,GAAG,CAAC,CAAC,MAAM,CAAC;IAC9D,WAAW,EAAE,CAAC,CAAC,MAAM,EAAE,CAAC,GAAG,CAAC,CAAC,EAAE,yBAAyB,CAAC;CAC1D,CAAC,CAAC;
|
|
1
|
+
{"version":3,"file":"ConfigureNotificationRoutingTool.js","sourceRoot":"","sources":["../../../../src/tools/mutation/ConfigureNotificationRoutingTool/ConfigureNotificationRoutingTool.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAC;AAExB,OAAO,EAAE,uCAAuC,EAAE,MAAM,0CAA0C,CAAC;AACnG,OAAO,EAAE,cAAc,EAAE,MAAM,uCAAuC,CAAC;AAEvE,OAAO,EAAE,WAAW,EAAE,MAAM,aAAa,CAAC;AAC1C,OAAO,EAAE,IAAI,EAAE,SAAS,EAAE,gBAAgB,EAAE,MAAM,gBAAgB,CAAC;AAEnE,MAAM,CAAC,MAAM,uCAAuC,GAAG,CAAC,CAAC,MAAM,CAAC;IAC9D,WAAW,EAAE,CAAC,CAAC,MAAM,EAAE,CAAC,GAAG,CAAC,CAAC,EAAE,yBAAyB,CAAC;CAC1D,CAAC,CAAC;AAOH,MAAM,OAAO,gCAAgC;IAed;IAdpB,QAAQ,GAAiB;QAChC,IAAI,EAAE,gCAAgC;QACtC,OAAO,EAAE,CAAC,qBAAqB,EAAE,mBAAmB,CAAC;QACrD,eAAe,EAAE,gBAAgB;QACjC,UAAU,EAAE,SAAS;QACrB,aAAa,EAAE,KAAK;QACpB,WAAW,EAAE,KAAK;QAClB,UAAU,EAAE,KAAK;QACjB,cAAc,EAAE,CAAC;QACjB,cAAc,EAAE,IAAI;QACpB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AAC,MAAyC,EAAE,OAAwB;QACxF,IAAI,OAAO,CAAC,WAAW;YAAE,OAAO,EAAE,MAAM,EAAE,SAAS,EAAE,CAAC;QACtD,OAAO;YACL,MAAM,EAAE,gBAAgB;YACxB,MAAM,EAAE,qEAAqE;SAC9E,CAAC;IACJ,CAAC;IAED,iBAAiB,CAAC,MAA0C;QAC1D,OAAO,KAAK,CAAC;IACf,CAAC;CACF"}
|
|
@@ -71,15 +71,15 @@ export declare const TaskCreateInputSchema: z.ZodObject<{
|
|
|
71
71
|
reversibility: "unknown" | "reversible" | "irreversible";
|
|
72
72
|
task_category: "normal" | "knowledge_acquisition" | "verification" | "observation" | "capability_acquisition";
|
|
73
73
|
goalId: string;
|
|
74
|
-
primaryDimension: string;
|
|
75
74
|
targetDimensions: string[];
|
|
75
|
+
primaryDimension: string;
|
|
76
76
|
intended_direction?: "increase" | "decrease" | "neutral" | undefined;
|
|
77
77
|
strategyId?: string | null | undefined;
|
|
78
78
|
}, {
|
|
79
79
|
work_description: string;
|
|
80
80
|
goalId: string;
|
|
81
|
-
primaryDimension: string;
|
|
82
81
|
targetDimensions: string[];
|
|
82
|
+
primaryDimension: string;
|
|
83
83
|
constraints?: string[] | undefined;
|
|
84
84
|
rationale?: string | undefined;
|
|
85
85
|
approach?: string | undefined;
|
|
@@ -176,15 +176,15 @@ export declare class TaskCreateTool implements ITool<TaskCreateInput, unknown> {
|
|
|
176
176
|
reversibility: "unknown" | "reversible" | "irreversible";
|
|
177
177
|
task_category: "normal" | "knowledge_acquisition" | "verification" | "observation" | "capability_acquisition";
|
|
178
178
|
goalId: string;
|
|
179
|
-
primaryDimension: string;
|
|
180
179
|
targetDimensions: string[];
|
|
180
|
+
primaryDimension: string;
|
|
181
181
|
intended_direction?: "increase" | "decrease" | "neutral" | undefined;
|
|
182
182
|
strategyId?: string | null | undefined;
|
|
183
183
|
}, {
|
|
184
184
|
work_description: string;
|
|
185
185
|
goalId: string;
|
|
186
|
-
primaryDimension: string;
|
|
187
186
|
targetDimensions: string[];
|
|
187
|
+
primaryDimension: string;
|
|
188
188
|
constraints?: string[] | undefined;
|
|
189
189
|
rationale?: string | undefined;
|
|
190
190
|
approach?: string | undefined;
|