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,8 +1,10 @@
|
|
|
1
|
-
import { type SoilMutationInput, type SoilPageMember } from "./contracts.js";
|
|
1
|
+
import { type SoilMutationInput, type SoilPageMember, type SoilRecordOutcomeKind } from "./contracts.js";
|
|
2
2
|
import { type SqliteDatabase } from "./sqlite-repository-helpers.js";
|
|
3
3
|
export declare function initializeSoilSqlite(db: SqliteDatabase): void;
|
|
4
4
|
export declare function initializeReadonlySoilSqlite(db: SqliteDatabase): void;
|
|
5
5
|
export declare function applySoilMutation(db: SqliteDatabase, input: SoilMutationInput): void;
|
|
6
|
+
export declare function recordSoilUsage(db: SqliteDatabase, recordIds: string[], usedAt: string): void;
|
|
7
|
+
export declare function recordSoilOutcome(db: SqliteDatabase, recordIds: string[], outcome: SoilRecordOutcomeKind, occurredAt: string): void;
|
|
6
8
|
export declare function replaceSoilPageMembers(db: SqliteDatabase, pageId: string, members: SoilPageMember[]): void;
|
|
7
9
|
export declare function loadOpenEmbeddingReindexRecordIds(db: SqliteDatabase): string[];
|
|
8
10
|
//# sourceMappingURL=sqlite-repository-storage.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"sqlite-repository-storage.d.ts","sourceRoot":"","sources":["../../../src/platform/soil/sqlite-repository-storage.ts"],"names":[],"mappings":"AAEA,OAAO,
|
|
1
|
+
{"version":3,"file":"sqlite-repository-storage.d.ts","sourceRoot":"","sources":["../../../src/platform/soil/sqlite-repository-storage.ts"],"names":[],"mappings":"AAEA,OAAO,EAKL,KAAK,iBAAiB,EACtB,KAAK,cAAc,EACnB,KAAK,qBAAqB,EAC3B,MAAM,gBAAgB,CAAC;AACxB,OAAO,EAKL,KAAK,cAAc,EAEpB,MAAM,gCAAgC,CAAC;AAExC,wBAAgB,oBAAoB,CAAC,EAAE,EAAE,cAAc,GAAG,IAAI,CAK7D;AAED,wBAAgB,4BAA4B,CAAC,EAAE,EAAE,cAAc,GAAG,IAAI,CAErE;AAmBD,wBAAgB,iBAAiB,CAAC,EAAE,EAAE,cAAc,EAAE,KAAK,EAAE,iBAAiB,GAAG,IAAI,CA8QpF;AAED,wBAAgB,eAAe,CAAC,EAAE,EAAE,cAAc,EAAE,SAAS,EAAE,MAAM,EAAE,EAAE,MAAM,EAAE,MAAM,GAAG,IAAI,CAkB7F;AAED,wBAAgB,iBAAiB,CAC/B,EAAE,EAAE,cAAc,EAClB,SAAS,EAAE,MAAM,EAAE,EACnB,OAAO,EAAE,qBAAqB,EAC9B,UAAU,EAAE,MAAM,GACjB,IAAI,CAqBN;AAED,wBAAgB,sBAAsB,CAAC,EAAE,EAAE,cAAc,EAAE,MAAM,EAAE,MAAM,EAAE,OAAO,EAAE,cAAc,EAAE,GAAG,IAAI,CAY1G;AAED,wBAAgB,iCAAiC,CAAC,EAAE,EAAE,cAAc,GAAG,MAAM,EAAE,CAY9E"}
|
|
@@ -1,15 +1,30 @@
|
|
|
1
1
|
import { randomUUID } from "node:crypto";
|
|
2
2
|
import { SOIL_SCHEMA_SQL } from "./ddl.js";
|
|
3
|
-
import { SoilEmbeddingSchema, SoilMutationSchema, SoilPageMemberSchema, } from "./contracts.js";
|
|
3
|
+
import { SoilEmbeddingSchema, SoilMutationSchema, SoilPageMemberSchema, SoilCorrectionEntrySchema, } from "./contracts.js";
|
|
4
4
|
import { encodeEmbedding, parseJsonArray, parseReindexRecordIds, serializeJson, unique, } from "./sqlite-repository-helpers.js";
|
|
5
5
|
export function initializeSoilSqlite(db) {
|
|
6
6
|
db.pragma("journal_mode = WAL");
|
|
7
7
|
db.pragma("foreign_keys = ON");
|
|
8
8
|
db.exec(SOIL_SCHEMA_SQL);
|
|
9
|
+
ensureSoilRecordUsageColumns(db);
|
|
9
10
|
}
|
|
10
11
|
export function initializeReadonlySoilSqlite(db) {
|
|
11
12
|
db.pragma("query_only = ON");
|
|
12
13
|
}
|
|
14
|
+
function ensureSoilRecordUsageColumns(db) {
|
|
15
|
+
const columns = new Set(db.prepare("PRAGMA table_info(soil_records)").all().map((column) => column.name));
|
|
16
|
+
const additions = [
|
|
17
|
+
["last_used_at", "TEXT"],
|
|
18
|
+
["use_count", "INTEGER NOT NULL DEFAULT 0 CHECK (use_count >= 0)"],
|
|
19
|
+
["validated_count", "INTEGER NOT NULL DEFAULT 0 CHECK (validated_count >= 0)"],
|
|
20
|
+
["negative_outcome_count", "INTEGER NOT NULL DEFAULT 0 CHECK (negative_outcome_count >= 0)"],
|
|
21
|
+
];
|
|
22
|
+
for (const [column, definition] of additions) {
|
|
23
|
+
if (!columns.has(column)) {
|
|
24
|
+
db.prepare(`ALTER TABLE soil_records ADD COLUMN ${column} ${definition}`).run();
|
|
25
|
+
}
|
|
26
|
+
}
|
|
27
|
+
}
|
|
13
28
|
export function applySoilMutation(db, input) {
|
|
14
29
|
const mutation = SoilMutationSchema.parse(input);
|
|
15
30
|
const contentMutatedRecordIds = new Set();
|
|
@@ -27,12 +42,14 @@ export function applySoilMutation(db, input) {
|
|
|
27
42
|
record_id, record_key, version, record_type, soil_id, title, summary, canonical_text,
|
|
28
43
|
goal_id, task_id, status, confidence, importance, source_reliability,
|
|
29
44
|
valid_from, valid_to, supersedes_record_id, is_active, source_type, source_id,
|
|
30
|
-
metadata_json,
|
|
45
|
+
metadata_json, last_used_at, use_count, validated_count, negative_outcome_count,
|
|
46
|
+
created_at, updated_at
|
|
31
47
|
) VALUES (
|
|
32
48
|
@record_id, @record_key, @version, @record_type, @soil_id, @title, @summary, @canonical_text,
|
|
33
49
|
@goal_id, @task_id, @status, @confidence, @importance, @source_reliability,
|
|
34
50
|
@valid_from, @valid_to, @supersedes_record_id, @is_active, @source_type, @source_id,
|
|
35
|
-
@metadata_json, @
|
|
51
|
+
@metadata_json, @last_used_at, @use_count, @validated_count, @negative_outcome_count,
|
|
52
|
+
@created_at, @updated_at
|
|
36
53
|
)
|
|
37
54
|
ON CONFLICT(record_id) DO UPDATE SET
|
|
38
55
|
record_key = excluded.record_key,
|
|
@@ -55,12 +72,25 @@ export function applySoilMutation(db, input) {
|
|
|
55
72
|
source_type = excluded.source_type,
|
|
56
73
|
source_id = excluded.source_id,
|
|
57
74
|
metadata_json = excluded.metadata_json,
|
|
75
|
+
last_used_at = CASE
|
|
76
|
+
WHEN soil_records.last_used_at IS NULL THEN excluded.last_used_at
|
|
77
|
+
WHEN excluded.last_used_at IS NULL THEN soil_records.last_used_at
|
|
78
|
+
WHEN excluded.last_used_at > soil_records.last_used_at THEN excluded.last_used_at
|
|
79
|
+
ELSE soil_records.last_used_at
|
|
80
|
+
END,
|
|
81
|
+
use_count = MAX(soil_records.use_count, excluded.use_count),
|
|
82
|
+
validated_count = MAX(soil_records.validated_count, excluded.validated_count),
|
|
83
|
+
negative_outcome_count = MAX(soil_records.negative_outcome_count, excluded.negative_outcome_count),
|
|
58
84
|
created_at = excluded.created_at,
|
|
59
85
|
updated_at = excluded.updated_at
|
|
60
86
|
`).run({
|
|
61
87
|
...record,
|
|
62
88
|
is_active: record.is_active ? 1 : 0,
|
|
63
89
|
metadata_json: serializeJson(record.metadata_json),
|
|
90
|
+
last_used_at: record.last_used_at,
|
|
91
|
+
use_count: record.use_count,
|
|
92
|
+
validated_count: record.validated_count,
|
|
93
|
+
negative_outcome_count: record.negative_outcome_count,
|
|
64
94
|
});
|
|
65
95
|
contentMutatedRecordIds.add(record.record_id);
|
|
66
96
|
}
|
|
@@ -175,6 +205,54 @@ export function applySoilMutation(db, input) {
|
|
|
175
205
|
}
|
|
176
206
|
}
|
|
177
207
|
}
|
|
208
|
+
for (const correction of mutation.corrections) {
|
|
209
|
+
const parsed = SoilCorrectionEntrySchema.parse(correction);
|
|
210
|
+
db.prepare(`
|
|
211
|
+
INSERT INTO soil_corrections (
|
|
212
|
+
correction_id, target_ref_json, correction_kind, replacement_ref_json,
|
|
213
|
+
actor, reason, created_at, provenance_json, audit_json
|
|
214
|
+
) VALUES (
|
|
215
|
+
@correction_id, @target_ref_json, @correction_kind, @replacement_ref_json,
|
|
216
|
+
@actor, @reason, @created_at, @provenance_json, @audit_json
|
|
217
|
+
)
|
|
218
|
+
ON CONFLICT(correction_id) DO UPDATE SET
|
|
219
|
+
target_ref_json = excluded.target_ref_json,
|
|
220
|
+
correction_kind = excluded.correction_kind,
|
|
221
|
+
replacement_ref_json = excluded.replacement_ref_json,
|
|
222
|
+
actor = excluded.actor,
|
|
223
|
+
reason = excluded.reason,
|
|
224
|
+
created_at = excluded.created_at,
|
|
225
|
+
provenance_json = excluded.provenance_json,
|
|
226
|
+
audit_json = excluded.audit_json
|
|
227
|
+
`).run({
|
|
228
|
+
correction_id: parsed.correction_id,
|
|
229
|
+
target_ref_json: serializeJson(parsed.target_ref),
|
|
230
|
+
correction_kind: parsed.correction_kind,
|
|
231
|
+
replacement_ref_json: parsed.replacement_ref ? serializeJson(parsed.replacement_ref) : null,
|
|
232
|
+
actor: parsed.actor,
|
|
233
|
+
reason: parsed.reason,
|
|
234
|
+
created_at: parsed.created_at,
|
|
235
|
+
provenance_json: serializeJson(parsed.provenance),
|
|
236
|
+
audit_json: serializeJson(parsed.audit),
|
|
237
|
+
});
|
|
238
|
+
if (parsed.audit.status !== "active") {
|
|
239
|
+
continue;
|
|
240
|
+
}
|
|
241
|
+
db.prepare(`
|
|
242
|
+
UPDATE soil_records
|
|
243
|
+
SET status = ?, is_active = 0, updated_at = ?
|
|
244
|
+
WHERE record_id = ?
|
|
245
|
+
`).run(parsed.correction_kind, parsed.created_at, parsed.target_ref.id);
|
|
246
|
+
contentMutatedRecordIds.add(parsed.target_ref.id);
|
|
247
|
+
if (parsed.replacement_ref?.kind === "soil_record") {
|
|
248
|
+
db.prepare(`
|
|
249
|
+
UPDATE soil_records
|
|
250
|
+
SET supersedes_record_id = COALESCE(supersedes_record_id, ?)
|
|
251
|
+
WHERE record_id = ?
|
|
252
|
+
`).run(parsed.target_ref.id, parsed.replacement_ref.id);
|
|
253
|
+
contentMutatedRecordIds.add(parsed.replacement_ref.id);
|
|
254
|
+
}
|
|
255
|
+
}
|
|
178
256
|
syncSoilFts(db, unique([...contentMutatedRecordIds]));
|
|
179
257
|
const fullyEmbeddedRecordIds = new Set(unique([...embeddedRecordIds]).filter((recordId) => recordHasCompleteEmbeddingMutation(db, recordId, embeddedChunkIds)));
|
|
180
258
|
completeOpenEmbeddingJobs(db, fullyEmbeddedRecordIds);
|
|
@@ -192,6 +270,49 @@ export function applySoilMutation(db, input) {
|
|
|
192
270
|
});
|
|
193
271
|
tx();
|
|
194
272
|
}
|
|
273
|
+
export function recordSoilUsage(db, recordIds, usedAt) {
|
|
274
|
+
const ids = unique(recordIds);
|
|
275
|
+
if (ids.length === 0)
|
|
276
|
+
return;
|
|
277
|
+
const tx = db.transaction(() => {
|
|
278
|
+
for (const recordId of ids) {
|
|
279
|
+
db.prepare(`
|
|
280
|
+
UPDATE soil_records
|
|
281
|
+
SET
|
|
282
|
+
last_used_at = CASE
|
|
283
|
+
WHEN last_used_at IS NULL OR ? > last_used_at THEN ?
|
|
284
|
+
ELSE last_used_at
|
|
285
|
+
END,
|
|
286
|
+
use_count = use_count + 1
|
|
287
|
+
WHERE record_id = ?
|
|
288
|
+
`).run(usedAt, usedAt, recordId);
|
|
289
|
+
}
|
|
290
|
+
});
|
|
291
|
+
tx();
|
|
292
|
+
}
|
|
293
|
+
export function recordSoilOutcome(db, recordIds, outcome, occurredAt) {
|
|
294
|
+
const ids = unique(recordIds);
|
|
295
|
+
if (ids.length === 0)
|
|
296
|
+
return;
|
|
297
|
+
const validatedIncrement = outcome === "validated" ? 1 : 0;
|
|
298
|
+
const negativeIncrement = outcome === "negative" ? 1 : 0;
|
|
299
|
+
const tx = db.transaction(() => {
|
|
300
|
+
for (const recordId of ids) {
|
|
301
|
+
db.prepare(`
|
|
302
|
+
UPDATE soil_records
|
|
303
|
+
SET
|
|
304
|
+
validated_count = validated_count + ?,
|
|
305
|
+
negative_outcome_count = negative_outcome_count + ?,
|
|
306
|
+
updated_at = CASE
|
|
307
|
+
WHEN ? > updated_at THEN ?
|
|
308
|
+
ELSE updated_at
|
|
309
|
+
END
|
|
310
|
+
WHERE record_id = ?
|
|
311
|
+
`).run(validatedIncrement, negativeIncrement, occurredAt, occurredAt, recordId);
|
|
312
|
+
}
|
|
313
|
+
});
|
|
314
|
+
tx();
|
|
315
|
+
}
|
|
195
316
|
export function replaceSoilPageMembers(db, pageId, members) {
|
|
196
317
|
const parsed = members.map((member) => SoilPageMemberSchema.parse({ ...member, page_id: pageId }));
|
|
197
318
|
const tx = db.transaction(() => {
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"sqlite-repository-storage.js","sourceRoot":"","sources":["../../../src/platform/soil/sqlite-repository-storage.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,UAAU,EAAE,MAAM,aAAa,CAAC;AACzC,OAAO,EAAE,eAAe,EAAE,MAAM,UAAU,CAAC;AAC3C,OAAO,EACL,mBAAmB,EACnB,kBAAkB,EAClB,oBAAoB,
|
|
1
|
+
{"version":3,"file":"sqlite-repository-storage.js","sourceRoot":"","sources":["../../../src/platform/soil/sqlite-repository-storage.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,UAAU,EAAE,MAAM,aAAa,CAAC;AACzC,OAAO,EAAE,eAAe,EAAE,MAAM,UAAU,CAAC;AAC3C,OAAO,EACL,mBAAmB,EACnB,kBAAkB,EAClB,oBAAoB,EACpB,yBAAyB,GAI1B,MAAM,gBAAgB,CAAC;AACxB,OAAO,EACL,eAAe,EACf,cAAc,EACd,qBAAqB,EACrB,aAAa,EAEb,MAAM,GACP,MAAM,gCAAgC,CAAC;AAExC,MAAM,UAAU,oBAAoB,CAAC,EAAkB;IACrD,E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idate, type SoilMutationInput, type SoilPage, type SoilPageMember, type SoilRecord, type SoilRecordFilterInput, type SoilRepository, type SoilSearchRequestInput, type SoilSearchResult } from "./contracts.js";
|
|
2
|
+
import { type SoilCandidate, type SoilCorrectionEntry, type SoilMutationInput, type SoilPage, type SoilPageMember, type SoilRecord, type SoilRecordFilterInput, type SoilRecordOutcomeKind, type SoilRepository, type SoilSearchRequestInput, type SoilSearchResult } from "./contracts.js";
|
|
3
3
|
export declare class SqliteSoilRepository implements SoilRepository {
|
|
4
4
|
private readonly db;
|
|
5
5
|
readonly dbPath: string;
|
|
6
|
+
private readonly writable;
|
|
6
7
|
private constructor();
|
|
7
8
|
static create(configInput?: SoilConfigInput): Promise<SqliteSoilRepository>;
|
|
8
9
|
static openExisting(configInput?: SoilConfigInput): Promise<SqliteSoilRepository | null>;
|
|
@@ -10,6 +11,14 @@ export declare class SqliteSoilRepository implements SoilRepository {
|
|
|
10
11
|
applyMutation(input: SoilMutationInput): Promise<void>;
|
|
11
12
|
loadRecords(input?: SoilRecordFilterInput): Promise<SoilRecord[]>;
|
|
12
13
|
queueReindex(recordIds: string[], reason: string): Promise<void>;
|
|
14
|
+
recordUsage(recordIds: string[], input?: {
|
|
15
|
+
used_at?: string;
|
|
16
|
+
}): Promise<void>;
|
|
17
|
+
recordOutcome(recordIds: string[], input: {
|
|
18
|
+
outcome: SoilRecordOutcomeKind;
|
|
19
|
+
occurred_at?: string;
|
|
20
|
+
}): Promise<void>;
|
|
21
|
+
loadCorrections(recordIds?: string[]): Promise<SoilCorrectionEntry[]>;
|
|
13
22
|
upsertPages(pages: SoilPage[]): Promise<void>;
|
|
14
23
|
replacePageMembers(pageId: string, members: SoilPageMember[]): Promise<void>;
|
|
15
24
|
lookupDirect(input: SoilSearchRequestInput): Promise<SoilSearchResult>;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"sqlite-repository.d.ts","sourceRoot":"","sources":["../../../src/platform/soil/sqlite-repository.ts"],"names":[],"mappings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import { fuseCandidates, toPage, toPageMember, toRecord, unique } from "./sqlite-repository-helpers.js";
|
|
8
8
|
import { buildRecordFilterSql, lookupDirectCandidates, searchDenseCandidates, searchLexicalCandidates, shouldRunDenseSearch, } from "./sqlite-repository-search.js";
|
|
9
|
-
import { applySoilMutation, initializeReadonlySoilSqlite, initializeSoilSqlite, loadOpenEmbeddingReindexRecordIds, replaceSoilPageMembers, } from "./sqlite-repository-storage.js";
|
|
9
|
+
import { applySoilMutation, initializeReadonlySoilSqlite, initializeSoilSqlite, loadOpenEmbeddingReindexRecordIds, recordSoilOutcome, recordSoilUsage, replaceSoilPageMembers, } from "./sqlite-repository-storage.js";
|
|
10
10
|
export class SqliteSoilRepository {
|
|
11
11
|
db;
|
|
12
12
|
dbPath;
|
|
13
|
-
|
|
13
|
+
writable;
|
|
14
|
+
constructor(db, dbPath, writable) {
|
|
14
15
|
this.db = db;
|
|
15
16
|
this.dbPath = dbPath;
|
|
17
|
+
this.writable = writable;
|
|
16
18
|
}
|
|
17
19
|
static async create(configInput = {}) {
|
|
18
20
|
const rootDir = resolveSoilRootDir(configInput.rootDir);
|
|
@@ -20,7 +22,7 @@ export class SqliteSoilRepository {
|
|
|
20
22
|
await fsp.mkdir(path.dirname(indexPath), { recursive: true });
|
|
21
23
|
const db = new Database(indexPath);
|
|
22
24
|
initializeSoilSqlite(db);
|
|
23
|
-
return new SqliteSoilRepository(db, indexPath);
|
|
25
|
+
return new SqliteSoilRepository(db, indexPath, true);
|
|
24
26
|
}
|
|
25
27
|
static async openExisting(configInput = {}) {
|
|
26
28
|
const rootDir = resolveSoilRootDir(configInput.rootDir);
|
|
@@ -31,9 +33,16 @@ export class SqliteSoilRepository {
|
|
|
31
33
|
catch {
|
|
32
34
|
return null;
|
|
33
35
|
}
|
|
36
|
+
const migrationDb = new Database(indexPath);
|
|
37
|
+
try {
|
|
38
|
+
initializeSoilSqlite(migrationDb);
|
|
39
|
+
}
|
|
40
|
+
finally {
|
|
41
|
+
migrationDb.close();
|
|
42
|
+
}
|
|
34
43
|
const db = new Database(indexPath, { readonly: true, fileMustExist: true });
|
|
35
44
|
initializeReadonlySoilSqlite(db);
|
|
36
|
-
return new SqliteSoilRepository(db, indexPath);
|
|
45
|
+
return new SqliteSoilRepository(db, indexPath, false);
|
|
37
46
|
}
|
|
38
47
|
close() {
|
|
39
48
|
this.db.close();
|
|
@@ -63,6 +72,39 @@ export class SqliteSoilRepository {
|
|
|
63
72
|
) VALUES (?, ?, ?, ?, ?, ?)
|
|
64
73
|
`).run(randomUUID(), "embedding", reason, "pending", JSON.stringify({ record_ids: ids }), new Date().toISOString());
|
|
65
74
|
}
|
|
75
|
+
async recordUsage(recordIds, input = {}) {
|
|
76
|
+
if (!this.writable)
|
|
77
|
+
return;
|
|
78
|
+
recordSoilUsage(this.db, recordIds, input.used_at ?? new Date().toISOString());
|
|
79
|
+
}
|
|
80
|
+
async recordOutcome(recordIds, input) {
|
|
81
|
+
if (!this.writable)
|
|
82
|
+
return;
|
|
83
|
+
recordSoilOutcome(this.db, recordIds, input.outcome, input.occurred_at ?? new Date().toISOString());
|
|
84
|
+
}
|
|
85
|
+
async loadCorrections(recordIds = []) {
|
|
86
|
+
const ids = unique(recordIds);
|
|
87
|
+
const rows = this.db.prepare(`
|
|
88
|
+
SELECT *
|
|
89
|
+
FROM soil_corrections
|
|
90
|
+
${ids.length > 0 ? `WHERE json_extract(target_ref_json, '$.id') IN (${ids.map(() => "?").join(", ")})` : ""}
|
|
91
|
+
ORDER BY created_at, correction_id
|
|
92
|
+
`).all(...ids);
|
|
93
|
+
return rows.map((row) => ({
|
|
94
|
+
schema_version: "memory-correction-entry-v1",
|
|
95
|
+
correction_id: row.correction_id,
|
|
96
|
+
target_ref: JSON.parse(row.target_ref_json),
|
|
97
|
+
correction_kind: row.correction_kind,
|
|
98
|
+
replacement_ref: row.replacement_ref_json
|
|
99
|
+
? JSON.parse(row.replacement_ref_json)
|
|
100
|
+
: null,
|
|
101
|
+
actor: row.actor,
|
|
102
|
+
reason: row.reason,
|
|
103
|
+
created_at: row.created_at,
|
|
104
|
+
provenance: JSON.parse(row.provenance_json),
|
|
105
|
+
audit: JSON.parse(row.audit_json),
|
|
106
|
+
}));
|
|
107
|
+
}
|
|
66
108
|
async upsertPages(pages) {
|
|
67
109
|
await this.applyMutation({ pages });
|
|
68
110
|
}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"sqlite-repository.js","sourceRoot":"","sources":["../../../src/platform/soil/sqlite-repository.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,GAAG,MAAM,kBAAkB,CAAC;AACxC,OAAO,KAAK,IAAI,MAAM,WAAW,CAAC;AAClC,OAAO,EAAE,UAAU,EAAE,MAAM,aAAa,CAAC;AACzC,OAAO,QAAQ,MAAM,gBAAgB,CAAC;AACtC,OAAO,EAAE,6BAA6B,EAAE,kBAAkB,EAAwB,MAAM,aAAa,CAAC;AACtG,OAAO,EACL,sBAAsB,EACtB,uBAAuB,
|
|
1
|
+
{"version":3,"file":"sqlite-repository.js","sourceRoot":"","sources":["../../../src/platform/soil/sqlite-repository.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,GAAG,MAAM,kBAAkB,CAAC;AACxC,OAAO,KAAK,IAAI,MAAM,WAAW,CAAC;AAClC,OAAO,EAAE,UAAU,EAAE,MAAM,aAAa,CAAC;AACzC,OAAO,QAAQ,MAAM,gBAAgB,CAAC;AACtC,OAAO,EAAE,6BAA6B,EAAE,kBAAkB,EAAwB,MAAM,aAAa,CAAC;AACtG,OAAO,EACL,sBAAsB,EACtB,uBAAuB,GAYxB,MAAM,gBAAgB,CAAC;AACxB,OAAO,EAAE,cAAc,EAAE,MAAM,EAAE,YAAY,EAAE,QAAQ,EAAqF,MAAM,EAAE,MAAM,gCAAgC,CAAC;AAC3L,OAAO,EACL,oBAAoB,EACpB,sBAAsB,EACtB,qBAAqB,EACrB,uBAAuB,EACvB,oBAAoB,GACrB,MAAM,+BAA+B,CAAC;AACvC,OAAO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CAAC,GAAG,CAAC,GAAG,EAAE,CAAC,GAAG,CAAC,CAAC,IAAI,CAAC,IAAI,CAAC;;KAElD,CAAC,CAAC,GAAG,CAAC,GAAG,GAAG,CAAwB,CAAC;QACtC,OAAO,IAAI,CAAC,GAAG,CAAC,CAAC,GAAG,EAAE,EAAE,CAAC,YAAY,CAAC,GAAG,CAAC,CAAC,CAAC;IAC9C,CAAC;CAEF"}
|
|
@@ -26,7 +26,7 @@ export declare const SoilSourceRefSchema: z.ZodObject<{
|
|
|
26
26
|
committed_at: z.ZodOptional<z.ZodEffects<z.ZodEffects<z.ZodString, string, string>, string, unknown>>;
|
|
27
27
|
reliability: z.ZodOptional<z.ZodEnum<["high", "medium", "low"]>>;
|
|
28
28
|
}, "strip", z.ZodTypeAny, {
|
|
29
|
-
source_type: "web" | "runtime_json" | "controlled_md" | "soil_md" | "manual_overlay" | "tool_output"
|
|
29
|
+
source_type: "web" | "log" | "runtime_json" | "controlled_md" | "soil_md" | "manual_overlay" | "tool_output";
|
|
30
30
|
source_path: string;
|
|
31
31
|
reliability?: "low" | "high" | "medium" | undefined;
|
|
32
32
|
source_id?: string | undefined;
|
|
@@ -36,7 +36,7 @@ export declare const SoilSourceRefSchema: z.ZodObject<{
|
|
|
36
36
|
fetched_at?: string | undefined;
|
|
37
37
|
committed_at?: string | undefined;
|
|
38
38
|
}, {
|
|
39
|
-
source_type: "web" | "runtime_json" | "controlled_md" | "soil_md" | "manual_overlay" | "tool_output"
|
|
39
|
+
source_type: "web" | "log" | "runtime_json" | "controlled_md" | "soil_md" | "manual_overlay" | "tool_output";
|
|
40
40
|
source_path: string;
|
|
41
41
|
reliability?: "low" | "high" | "medium" | undefined;
|
|
42
42
|
source_id?: string | undefined;
|
|
@@ -102,18 +102,18 @@ export declare const SoilManualOverlaySchema: z.ZodObject<{
|
|
|
102
102
|
created_at?: string | undefined;
|
|
103
103
|
updated_at?: string | undefined;
|
|
104
104
|
notes?: string | undefined;
|
|
105
|
+
target_ref?: string | undefined;
|
|
105
106
|
overlay_id?: string | undefined;
|
|
106
107
|
author?: string | undefined;
|
|
107
|
-
target_ref?: string | undefined;
|
|
108
108
|
}, {
|
|
109
109
|
status?: "candidate" | "superseded" | "rejected" | "confirmed" | undefined;
|
|
110
110
|
created_at?: unknown;
|
|
111
111
|
updated_at?: unknown;
|
|
112
112
|
notes?: string | undefined;
|
|
113
113
|
enabled?: boolean | undefined;
|
|
114
|
+
target_ref?: string | undefined;
|
|
114
115
|
overlay_id?: string | undefined;
|
|
115
116
|
author?: string | undefined;
|
|
116
|
-
target_ref?: string | undefined;
|
|
117
117
|
}>;
|
|
118
118
|
export type SoilManualOverlay = z.infer<typeof SoilManualOverlaySchema>;
|
|
119
119
|
export declare const SoilPageFrontmatterSchema: z.ZodObject<{
|
|
@@ -138,7 +138,7 @@ export declare const SoilPageFrontmatterSchema: z.ZodObject<{
|
|
|
138
138
|
committed_at: z.ZodOptional<z.ZodEffects<z.ZodEffects<z.ZodString, string, string>, string, unknown>>;
|
|
139
139
|
reliability: z.ZodOptional<z.ZodEnum<["high", "medium", "low"]>>;
|
|
140
140
|
}, "strip", z.ZodTypeAny, {
|
|
141
|
-
source_type: "web" | "runtime_json" | "controlled_md" | "soil_md" | "manual_overlay" | "tool_output"
|
|
141
|
+
source_type: "web" | "log" | "runtime_json" | "controlled_md" | "soil_md" | "manual_overlay" | "tool_output";
|
|
142
142
|
source_path: string;
|
|
143
143
|
reliability?: "low" | "high" | "medium" | undefined;
|
|
144
144
|
source_id?: string | undefined;
|
|
@@ -148,7 +148,7 @@ export declare const SoilPageFrontmatterSchema: z.ZodObject<{
|
|
|
148
148
|
fetched_at?: string | undefined;
|
|
149
149
|
committed_at?: string | undefined;
|
|
150
150
|
}, {
|
|
151
|
-
source_type: "web" | "runtime_json" | "controlled_md" | "soil_md" | "manual_overlay" | "tool_output"
|
|
151
|
+
source_type: "web" | "log" | "runtime_json" | "controlled_md" | "soil_md" | "manual_overlay" | "tool_output";
|
|
152
152
|
source_path: string;
|
|
153
153
|
reliability?: "low" | "high" | "medium" | undefined;
|
|
154
154
|
source_id?: string | undefined;
|
|
@@ -211,18 +211,18 @@ export declare const SoilPageFrontmatterSchema: z.ZodObject<{
|
|
|
211
211
|
created_at?: string | undefined;
|
|
212
212
|
updated_at?: string | undefined;
|
|
213
213
|
notes?: string | undefined;
|
|
214
|
+
target_ref?: string | undefined;
|
|
214
215
|
overlay_id?: string | undefined;
|
|
215
216
|
author?: string | undefined;
|
|
216
|
-
target_ref?: string | undefined;
|
|
217
217
|
}, {
|
|
218
218
|
status?: "candidate" | "superseded" | "rejected" | "confirmed" | undefined;
|
|
219
219
|
created_at?: unknown;
|
|
220
220
|
updated_at?: unknown;
|
|
221
221
|
notes?: string | undefined;
|
|
222
222
|
enabled?: boolean | undefined;
|
|
223
|
+
target_ref?: string | undefined;
|
|
223
224
|
overlay_id?: string | undefined;
|
|
224
225
|
author?: string | undefined;
|
|
225
|
-
target_ref?: string | undefined;
|
|
226
226
|
}>>;
|
|
227
227
|
goal_id: z.ZodOptional<z.ZodString>;
|
|
228
228
|
task_id: z.ZodOptional<z.ZodString>;
|
|
@@ -266,7 +266,7 @@ export declare const SoilPageFrontmatterSchema: z.ZodObject<{
|
|
|
266
266
|
committed_at: z.ZodOptional<z.ZodEffects<z.ZodEffects<z.ZodString, string, string>, string, unknown>>;
|
|
267
267
|
reliability: z.ZodOptional<z.ZodEnum<["high", "medium", "low"]>>;
|
|
268
268
|
}, "strip", z.ZodTypeAny, {
|
|
269
|
-
source_type: "web" | "runtime_json" | "controlled_md" | "soil_md" | "manual_overlay" | "tool_output"
|
|
269
|
+
source_type: "web" | "log" | "runtime_json" | "controlled_md" | "soil_md" | "manual_overlay" | "tool_output";
|
|
270
270
|
source_path: string;
|
|
271
271
|
reliability?: "low" | "high" | "medium" | undefined;
|
|
272
272
|
source_id?: string | undefined;
|
|
@@ -276,7 +276,7 @@ export declare const SoilPageFrontmatterSchema: z.ZodObject<{
|
|
|
276
276
|
fetched_at?: string | undefined;
|
|
277
277
|
committed_at?: string | undefined;
|
|
278
278
|
}, {
|
|
279
|
-
source_type: "web" | "runtime_json" | "controlled_md" | "soil_md" | "manual_overlay" | "tool_output"
|
|
279
|
+
source_type: "web" | "log" | "runtime_json" | "controlled_md" | "soil_md" | "manual_overlay" | "tool_output";
|
|
280
280
|
source_path: string;
|
|
281
281
|
reliability?: "low" | "high" | "medium" | undefined;
|
|
282
282
|
source_id?: string | undefined;
|
|
@@ -339,18 +339,18 @@ export declare const SoilPageFrontmatterSchema: z.ZodObject<{
|
|
|
339
339
|
created_at?: string | undefined;
|
|
340
340
|
updated_at?: string | undefined;
|
|
341
341
|
notes?: string | undefined;
|
|
342
|
+
target_ref?: string | undefined;
|
|
342
343
|
overlay_id?: string | undefined;
|
|
343
344
|
author?: string | undefined;
|
|
344
|
-
target_ref?: string | undefined;
|
|
345
345
|
}, {
|
|
346
346
|
status?: "candidate" | "superseded" | "rejected" | "confirmed" | undefined;
|
|
347
347
|
created_at?: unknown;
|
|
348
348
|
updated_at?: unknown;
|
|
349
349
|
notes?: string | undefined;
|
|
350
350
|
enabled?: boolean | undefined;
|
|
351
|
+
target_ref?: string | undefined;
|
|
351
352
|
overlay_id?: string | undefined;
|
|
352
353
|
author?: string | undefined;
|
|
353
|
-
target_ref?: string | undefined;
|
|
354
354
|
}>>;
|
|
355
355
|
goal_id: z.ZodOptional<z.ZodString>;
|
|
356
356
|
task_id: z.ZodOptional<z.ZodString>;
|
|
@@ -394,7 +394,7 @@ export declare const SoilPageFrontmatterSchema: z.ZodObject<{
|
|
|
394
394
|
committed_at: z.ZodOptional<z.ZodEffects<z.ZodEffects<z.ZodString, string, string>, string, unknown>>;
|
|
395
395
|
reliability: z.ZodOptional<z.ZodEnum<["high", "medium", "low"]>>;
|
|
396
396
|
}, "strip", z.ZodTypeAny, {
|
|
397
|
-
source_type: "web" | "runtime_json" | "controlled_md" | "soil_md" | "manual_overlay" | "tool_output"
|
|
397
|
+
source_type: "web" | "log" | "runtime_json" | "controlled_md" | "soil_md" | "manual_overlay" | "tool_output";
|
|
398
398
|
source_path: string;
|
|
399
399
|
reliability?: "low" | "high" | "medium" | undefined;
|
|
400
400
|
source_id?: string | undefined;
|
|
@@ -404,7 +404,7 @@ export declare const SoilPageFrontmatterSchema: z.ZodObject<{
|
|
|
404
404
|
fetched_at?: string | undefined;
|
|
405
405
|
committed_at?: string | undefined;
|
|
406
406
|
}, {
|
|
407
|
-
source_type: "web" | "runtime_json" | "controlled_md" | "soil_md" | "manual_overlay" | "tool_output"
|
|
407
|
+
source_type: "web" | "log" | "runtime_json" | "controlled_md" | "soil_md" | "manual_overlay" | "tool_output";
|
|
408
408
|
source_path: string;
|
|
409
409
|
reliability?: "low" | "high" | "medium" | undefined;
|
|
410
410
|
source_id?: string | undefined;
|
|
@@ -467,18 +467,18 @@ export declare const SoilPageFrontmatterSchema: z.ZodObject<{
|
|
|
467
467
|
created_at?: string | undefined;
|
|
468
468
|
updated_at?: string | undefined;
|
|
469
469
|
notes?: string | undefined;
|
|
470
|
+
target_ref?: string | undefined;
|
|
470
471
|
overlay_id?: string | undefined;
|
|
471
472
|
author?: string | undefined;
|
|
472
|
-
target_ref?: string | undefined;
|
|
473
473
|
}, {
|
|
474
474
|
status?: "candidate" | "superseded" | "rejected" | "confirmed" | undefined;
|
|
475
475
|
created_at?: unknown;
|
|
476
476
|
updated_at?: unknown;
|
|
477
477
|
notes?: string | undefined;
|
|
478
478
|
enabled?: boolean | undefined;
|
|
479
|
+
target_ref?: string | undefined;
|
|
479
480
|
overlay_id?: string | undefined;
|
|
480
481
|
author?: string | undefined;
|
|
481
|
-
target_ref?: string | undefined;
|
|
482
482
|
}>>;
|
|
483
483
|
goal_id: z.ZodOptional<z.ZodString>;
|
|
484
484
|
task_id: z.ZodOptional<z.ZodString>;
|
|
@@ -0,0 +1,57 @@
|
|
|
1
|
+
import type { Goal, GoalFinalizationPolicy } from "../../base/types/goal.js";
|
|
2
|
+
export type DeadlineFinalizationMode = "no_deadline" | "exploration" | "consolidation" | "finalization" | "missed_deadline";
|
|
3
|
+
export interface DeadlineFinalizationArtifact {
|
|
4
|
+
id?: string;
|
|
5
|
+
label: string;
|
|
6
|
+
kind?: string;
|
|
7
|
+
summary?: string;
|
|
8
|
+
path?: string;
|
|
9
|
+
state_relative_path?: string;
|
|
10
|
+
url?: string;
|
|
11
|
+
occurred_at?: string;
|
|
12
|
+
source: "runtime_evidence_ledger" | "policy" | "none";
|
|
13
|
+
}
|
|
14
|
+
export interface DeadlineFinalizationAction {
|
|
15
|
+
id: string;
|
|
16
|
+
label: string;
|
|
17
|
+
tool_name?: string;
|
|
18
|
+
payload_ref?: string;
|
|
19
|
+
approval_required: true;
|
|
20
|
+
}
|
|
21
|
+
export interface DeadlineFinalizationPlan {
|
|
22
|
+
deliverable_contract: string | null;
|
|
23
|
+
best_artifact_selection: GoalFinalizationPolicy["best_artifact_selection"];
|
|
24
|
+
best_artifact: DeadlineFinalizationArtifact | null;
|
|
25
|
+
reproducibility_manifest: DeadlineReproducibilityManifestPreflight;
|
|
26
|
+
verification_steps: string[];
|
|
27
|
+
approval_required_actions: DeadlineFinalizationAction[];
|
|
28
|
+
handoff_required: boolean;
|
|
29
|
+
}
|
|
30
|
+
export interface DeadlineReproducibilityManifestPreflight {
|
|
31
|
+
required: boolean;
|
|
32
|
+
status: "not_required" | "required_missing" | "ready";
|
|
33
|
+
manifest_id?: string;
|
|
34
|
+
reason: string;
|
|
35
|
+
}
|
|
36
|
+
export interface DeadlineFinalizationStatus {
|
|
37
|
+
mode: DeadlineFinalizationMode;
|
|
38
|
+
deadline: string | null;
|
|
39
|
+
evaluated_at: string;
|
|
40
|
+
remaining_ms: number | null;
|
|
41
|
+
reserved_finalization_ms: number;
|
|
42
|
+
remaining_exploration_ms: number | null;
|
|
43
|
+
consolidation_buffer_ms: number;
|
|
44
|
+
finalization_plan: DeadlineFinalizationPlan | null;
|
|
45
|
+
reason: string;
|
|
46
|
+
}
|
|
47
|
+
export interface BuildDeadlineFinalizationStatusInput {
|
|
48
|
+
goal: Goal;
|
|
49
|
+
now?: Date;
|
|
50
|
+
bestArtifact?: DeadlineFinalizationArtifact | null;
|
|
51
|
+
reproducibilityManifestId?: string | null;
|
|
52
|
+
}
|
|
53
|
+
export declare const DEFAULT_FINALIZATION_POLICY: GoalFinalizationPolicy;
|
|
54
|
+
export declare function normalizeFinalizationPolicy(policy: Goal["finalization_policy"] | null | undefined): GoalFinalizationPolicy;
|
|
55
|
+
export declare function buildDeadlineFinalizationStatus(input: BuildDeadlineFinalizationStatusInput): DeadlineFinalizationStatus;
|
|
56
|
+
export declare function shouldStopExplorationForFinalization(status: DeadlineFinalizationStatus): boolean;
|
|
57
|
+
//# sourceMappingURL=deadline-finalization.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"deadline-finalization.d.ts","sourceRoot":"","sources":["../../../src/platform/time/deadline-finalization.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EACV,IAAI,EAEJ,sBAAsB,EACvB,MAAM,0BAA0B,CAAC;AAElC,MAAM,MAAM,wBAAwB,GAChC,aAAa,GACb,aAAa,GACb,eAAe,GACf,cAAc,GACd,iBAAiB,CAAC;AAEtB,MAAM,WAAW,4BAA4B;IAC3C,EAAE,CAAC,EAAE,MAAM,CAAC;IACZ,KAAK,EAAE,MAAM,CAAC;IACd,IAAI,CAAC,EAAE,MAAM,CAAC;IACd,OAAO,CAAC,EAAE,MAAM,CAAC;IACjB,IAAI,CAAC,EAAE,MAAM,CAAC;IACd,mBAAmB,CAAC,EAAE,MAAM,CAAC;IAC7B,GAAG,CAAC,EAAE,MAAM,CAAC;IACb,WAAW,CAAC,EAAE,MAAM,CAAC;IACrB,MAAM,EAAE,yBAAyB,GAAG,QAAQ,GAAG,MAAM,CAAC;CACvD;AAED,MAAM,WAAW,0BAA0B;IACzC,EAAE,EAAE,MAAM,CAAC;IACX,KAAK,EAAE,MAAM,CAAC;IACd,SAAS,CAA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