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
|
@@ -0,0 +1,360 @@
|
|
|
1
|
+
import { z } from "zod";
|
|
2
|
+
import { ResidentActivitySchema } from "../../base/types/daemon.js";
|
|
3
|
+
import { type RuntimeStorePaths } from "./runtime-paths.js";
|
|
4
|
+
export declare const ProactiveInterventionOutcomeSchema: z.ZodEnum<["accepted", "ignored", "dismissed", "corrected", "overreach"]>;
|
|
5
|
+
export declare const ProactiveOverreachIndicatorSchema: z.ZodEnum<["too_frequent", "wrong_context", "sensitive", "unwanted_timing"]>;
|
|
6
|
+
export declare const ProactiveInterventionActivityEventSchema: z.ZodObject<{
|
|
7
|
+
schema_version: z.ZodLiteral<"runtime-proactive-intervention-event-v1">;
|
|
8
|
+
event_id: z.ZodString;
|
|
9
|
+
intervention_id: z.ZodString;
|
|
10
|
+
recorded_at: z.ZodString;
|
|
11
|
+
channel: z.ZodDefault<z.ZodEnum<["daemon", "cli", "gateway"]>>;
|
|
12
|
+
} & {
|
|
13
|
+
event_type: z.ZodLiteral<"intervention">;
|
|
14
|
+
activity: z.ZodObject<{
|
|
15
|
+
intervention_id: z.ZodOptional<z.ZodString>;
|
|
16
|
+
kind: z.ZodEnum<["sleep", "suggestion", "negotiation", "curiosity", "dream", "observation", "skipped", "error"]>;
|
|
17
|
+
trigger: z.ZodDefault<z.ZodEnum<["proactive_tick", "schedule", "external"]>>;
|
|
18
|
+
summary: z.ZodString;
|
|
19
|
+
recorded_at: z.ZodString;
|
|
20
|
+
suggestion_title: z.ZodOptional<z.ZodString>;
|
|
21
|
+
goal_id: z.ZodOptional<z.ZodString>;
|
|
22
|
+
}, "strip", z.ZodTypeAny, {
|
|
23
|
+
trigger: "schedule" | "external" | "proactive_tick";
|
|
24
|
+
kind: "error" | "negotiation" | "curiosity" | "observation" | "dream" | "sleep" | "suggestion" | "skipped";
|
|
25
|
+
summary: string;
|
|
26
|
+
recorded_at: string;
|
|
27
|
+
goal_id?: string | undefined;
|
|
28
|
+
intervention_id?: string | undefined;
|
|
29
|
+
suggestion_title?: string | undefined;
|
|
30
|
+
}, {
|
|
31
|
+
kind: "error" | "negotiation" | "curiosity" | "observation" | "dream" | "sleep" | "suggestion" | "skipped";
|
|
32
|
+
summary: string;
|
|
33
|
+
recorded_at: string;
|
|
34
|
+
trigger?: "schedule" | "external" | "proactive_tick" | undefined;
|
|
35
|
+
goal_id?: string | undefined;
|
|
36
|
+
intervention_id?: string | undefined;
|
|
37
|
+
suggestion_title?: string | undefined;
|
|
38
|
+
}>;
|
|
39
|
+
}, "strip", z.ZodTypeAny, {
|
|
40
|
+
schema_version: "runtime-proactive-intervention-event-v1";
|
|
41
|
+
event_type: "intervention";
|
|
42
|
+
intervention_id: string;
|
|
43
|
+
recorded_at: string;
|
|
44
|
+
channel: "gateway" | "cli" | "daemon";
|
|
45
|
+
activity: {
|
|
46
|
+
trigger: "schedule" | "external" | "proactive_tick";
|
|
47
|
+
kind: "error" | "negotiation" | "curiosity" | "observation" | "dream" | "sleep" | "suggestion" | "skipped";
|
|
48
|
+
summary: string;
|
|
49
|
+
recorded_at: string;
|
|
50
|
+
goal_id?: string | undefined;
|
|
51
|
+
intervention_id?: string | undefined;
|
|
52
|
+
suggestion_title?: string | undefined;
|
|
53
|
+
};
|
|
54
|
+
event_id: string;
|
|
55
|
+
}, {
|
|
56
|
+
schema_version: "runtime-proactive-intervention-event-v1";
|
|
57
|
+
event_type: "intervention";
|
|
58
|
+
intervention_id: string;
|
|
59
|
+
recorded_at: string;
|
|
60
|
+
activity: {
|
|
61
|
+
kind: "error" | "negotiation" | "curiosity" | "observation" | "dream" | "sleep" | "suggestion" | "skipped";
|
|
62
|
+
summary: string;
|
|
63
|
+
recorded_at: string;
|
|
64
|
+
trigger?: "schedule" | "external" | "proactive_tick" | undefined;
|
|
65
|
+
goal_id?: string | undefined;
|
|
66
|
+
intervention_id?: string | undefined;
|
|
67
|
+
suggestion_title?: string | undefined;
|
|
68
|
+
};
|
|
69
|
+
event_id: string;
|
|
70
|
+
channel?: "gateway" | "cli" | "daemon" | undefined;
|
|
71
|
+
}>;
|
|
72
|
+
export declare const ProactiveInterventionFeedbackEventSchema: z.ZodObject<{
|
|
73
|
+
schema_version: z.ZodLiteral<"runtime-proactive-intervention-event-v1">;
|
|
74
|
+
event_id: z.ZodString;
|
|
75
|
+
intervention_id: z.ZodString;
|
|
76
|
+
recorded_at: z.ZodString;
|
|
77
|
+
channel: z.ZodDefault<z.ZodEnum<["daemon", "cli", "gateway"]>>;
|
|
78
|
+
} & {
|
|
79
|
+
event_type: z.ZodLiteral<"feedback">;
|
|
80
|
+
outcome: z.ZodEnum<["accepted", "ignored", "dismissed", "corrected", "overreach"]>;
|
|
81
|
+
reason: z.ZodOptional<z.ZodString>;
|
|
82
|
+
overreach_indicators: z.ZodDefault<z.ZodArray<z.ZodEnum<["too_frequent", "wrong_context", "sensitive", "unwanted_timing"]>, "many">>;
|
|
83
|
+
follow_through_success: z.ZodDefault<z.ZodNullable<z.ZodBoolean>>;
|
|
84
|
+
policy_adjustment_recommendation: z.ZodDefault<z.ZodNullable<z.ZodObject<{
|
|
85
|
+
relationship_profile_key: z.ZodString;
|
|
86
|
+
suggested_action: z.ZodEnum<["reduce_frequency", "require_confirmation", "narrow_scope", "avoid_sensitive_context"]>;
|
|
87
|
+
reason: z.ZodString;
|
|
88
|
+
}, "strip", z.ZodTypeAny, {
|
|
89
|
+
reason: string;
|
|
90
|
+
suggested_action: "reduce_frequency" | "require_confirmation" | "narrow_scope" | "avoid_sensitive_context";
|
|
91
|
+
relationship_profile_key: string;
|
|
92
|
+
}, {
|
|
93
|
+
reason: string;
|
|
94
|
+
suggested_action: "reduce_frequency" | "require_confirmation" | "narrow_scope" | "avoid_sensitive_context";
|
|
95
|
+
relationship_profile_key: string;
|
|
96
|
+
}>>>;
|
|
97
|
+
}, "strip", z.ZodTypeAny, {
|
|
98
|
+
schema_version: "runtime-proactive-intervention-event-v1";
|
|
99
|
+
outcome: "accepted" | "corrected" | "dismissed" | "ignored" | "overreach";
|
|
100
|
+
event_type: "feedback";
|
|
101
|
+
intervention_id: string;
|
|
102
|
+
recorded_at: string;
|
|
103
|
+
channel: "gateway" | "cli" | "daemon";
|
|
104
|
+
event_id: string;
|
|
105
|
+
overreach_indicators: ("sensitive" | "too_frequent" | "wrong_context" | "unwanted_timing")[];
|
|
106
|
+
follow_through_success: boolean | null;
|
|
107
|
+
policy_adjustment_recommendation: {
|
|
108
|
+
reason: string;
|
|
109
|
+
suggested_action: "reduce_frequency" | "require_confirmation" | "narrow_scope" | "avoid_sensitive_context";
|
|
110
|
+
relationship_profile_key: string;
|
|
111
|
+
} | null;
|
|
112
|
+
reason?: string | undefined;
|
|
113
|
+
}, {
|
|
114
|
+
schema_version: "runtime-proactive-intervention-event-v1";
|
|
115
|
+
outcome: "accepted" | "corrected" | "dismissed" | "ignored" | "overreach";
|
|
116
|
+
event_type: "feedback";
|
|
117
|
+
intervention_id: string;
|
|
118
|
+
recorded_at: string;
|
|
119
|
+
event_id: string;
|
|
120
|
+
reason?: string | undefined;
|
|
121
|
+
channel?: "gateway" | "cli" | "daemon" | undefined;
|
|
122
|
+
overreach_indicators?: ("sensitive" | "too_frequent" | "wrong_context" | "unwanted_timing")[] | undefined;
|
|
123
|
+
follow_through_success?: boolean | null | undefined;
|
|
124
|
+
policy_adjustment_recommendation?: {
|
|
125
|
+
reason: string;
|
|
126
|
+
suggested_action: "reduce_frequency" | "require_confirmation" | "narrow_scope" | "avoid_sensitive_context";
|
|
127
|
+
relationship_profile_key: string;
|
|
128
|
+
} | null | undefined;
|
|
129
|
+
}>;
|
|
130
|
+
export declare const ProactiveInterventionEventSchema: z.ZodDiscriminatedUnion<"event_type", [z.ZodObject<{
|
|
131
|
+
schema_version: z.ZodLiteral<"runtime-proactive-intervention-event-v1">;
|
|
132
|
+
event_id: z.ZodString;
|
|
133
|
+
intervention_id: z.ZodString;
|
|
134
|
+
recorded_at: z.ZodString;
|
|
135
|
+
channel: z.ZodDefault<z.ZodEnum<["daemon", "cli", "gateway"]>>;
|
|
136
|
+
} & {
|
|
137
|
+
event_type: z.ZodLiteral<"intervention">;
|
|
138
|
+
activity: z.ZodObject<{
|
|
139
|
+
intervention_id: z.ZodOptional<z.ZodString>;
|
|
140
|
+
kind: z.ZodEnum<["sleep", "suggestion", "negotiation", "curiosity", "dream", "observation", "skipped", "error"]>;
|
|
141
|
+
trigger: z.ZodDefault<z.ZodEnum<["proactive_tick", "schedule", "external"]>>;
|
|
142
|
+
summary: z.ZodString;
|
|
143
|
+
recorded_at: z.ZodString;
|
|
144
|
+
suggestion_title: z.ZodOptional<z.ZodString>;
|
|
145
|
+
goal_id: z.ZodOptional<z.ZodString>;
|
|
146
|
+
}, "strip", z.ZodTypeAny, {
|
|
147
|
+
trigger: "schedule" | "external" | "proactive_tick";
|
|
148
|
+
kind: "error" | "negotiation" | "curiosity" | "observation" | "dream" | "sleep" | "suggestion" | "skipped";
|
|
149
|
+
summary: string;
|
|
150
|
+
recorded_at: string;
|
|
151
|
+
goal_id?: string | undefined;
|
|
152
|
+
intervention_id?: string | undefined;
|
|
153
|
+
suggestion_title?: string | undefined;
|
|
154
|
+
}, {
|
|
155
|
+
kind: "error" | "negotiation" | "curiosity" | "observation" | "dream" | "sleep" | "suggestion" | "skipped";
|
|
156
|
+
summary: string;
|
|
157
|
+
recorded_at: string;
|
|
158
|
+
trigger?: "schedule" | "external" | "proactive_tick" | undefined;
|
|
159
|
+
goal_id?: string | undefined;
|
|
160
|
+
intervention_id?: string | undefined;
|
|
161
|
+
suggestion_title?: string | undefined;
|
|
162
|
+
}>;
|
|
163
|
+
}, "strip", z.ZodTypeAny, {
|
|
164
|
+
schema_version: "runtime-proactive-intervention-event-v1";
|
|
165
|
+
event_type: "intervention";
|
|
166
|
+
intervention_id: string;
|
|
167
|
+
recorded_at: string;
|
|
168
|
+
channel: "gateway" | "cli" | "daemon";
|
|
169
|
+
activity: {
|
|
170
|
+
trigger: "schedule" | "external" | "proactive_tick";
|
|
171
|
+
kind: "error" | "negotiation" | "curiosity" | "observation" | "dream" | "sleep" | "suggestion" | "skipped";
|
|
172
|
+
summary: string;
|
|
173
|
+
recorded_at: string;
|
|
174
|
+
goal_id?: string | undefined;
|
|
175
|
+
intervention_id?: string | undefined;
|
|
176
|
+
suggestion_title?: string | undefined;
|
|
177
|
+
};
|
|
178
|
+
event_id: string;
|
|
179
|
+
}, {
|
|
180
|
+
schema_version: "runtime-proactive-intervention-event-v1";
|
|
181
|
+
event_type: "intervention";
|
|
182
|
+
intervention_id: string;
|
|
183
|
+
recorded_at: string;
|
|
184
|
+
activity: {
|
|
185
|
+
kind: "error" | "negotiation" | "curiosity" | "observation" | "dream" | "sleep" | "suggestion" | "skipped";
|
|
186
|
+
summary: string;
|
|
187
|
+
recorded_at: string;
|
|
188
|
+
trigger?: "schedule" | "external" | "proactive_tick" | undefined;
|
|
189
|
+
goal_id?: string | undefined;
|
|
190
|
+
intervention_id?: string | undefined;
|
|
191
|
+
suggestion_title?: string | undefined;
|
|
192
|
+
};
|
|
193
|
+
event_id: string;
|
|
194
|
+
channel?: "gateway" | "cli" | "daemon" | undefined;
|
|
195
|
+
}>, z.ZodObject<{
|
|
196
|
+
schema_version: z.ZodLiteral<"runtime-proactive-intervention-event-v1">;
|
|
197
|
+
event_id: z.ZodString;
|
|
198
|
+
intervention_id: z.ZodString;
|
|
199
|
+
recorded_at: z.ZodString;
|
|
200
|
+
channel: z.ZodDefault<z.ZodEnum<["daemon", "cli", "gateway"]>>;
|
|
201
|
+
} & {
|
|
202
|
+
event_type: z.ZodLiteral<"feedback">;
|
|
203
|
+
outcome: z.ZodEnum<["accepted", "ignored", "dismissed", "corrected", "overreach"]>;
|
|
204
|
+
reason: z.ZodOptional<z.ZodString>;
|
|
205
|
+
overreach_indicators: z.ZodDefault<z.ZodArray<z.ZodEnum<["too_frequent", "wrong_context", "sensitive", "unwanted_timing"]>, "many">>;
|
|
206
|
+
follow_through_success: z.ZodDefault<z.ZodNullable<z.ZodBoolean>>;
|
|
207
|
+
policy_adjustment_recommendation: z.ZodDefault<z.ZodNullable<z.ZodObject<{
|
|
208
|
+
relationship_profile_key: z.ZodString;
|
|
209
|
+
suggested_action: z.ZodEnum<["reduce_frequency", "require_confirmation", "narrow_scope", "avoid_sensitive_context"]>;
|
|
210
|
+
reason: z.ZodString;
|
|
211
|
+
}, "strip", z.ZodTypeAny, {
|
|
212
|
+
reason: string;
|
|
213
|
+
suggested_action: "reduce_frequency" | "require_confirmation" | "narrow_scope" | "avoid_sensitive_context";
|
|
214
|
+
relationship_profile_key: string;
|
|
215
|
+
}, {
|
|
216
|
+
reason: string;
|
|
217
|
+
suggested_action: "reduce_frequency" | "require_confirmation" | "narrow_scope" | "avoid_sensitive_context";
|
|
218
|
+
relationship_profile_key: string;
|
|
219
|
+
}>>>;
|
|
220
|
+
}, "strip", z.ZodTypeAny, {
|
|
221
|
+
schema_version: "runtime-proactive-intervention-event-v1";
|
|
222
|
+
outcome: "accepted" | "corrected" | "dismissed" | "ignored" | "overreach";
|
|
223
|
+
event_type: "feedback";
|
|
224
|
+
intervention_id: string;
|
|
225
|
+
recorded_at: string;
|
|
226
|
+
channel: "gateway" | "cli" | "daemon";
|
|
227
|
+
event_id: string;
|
|
228
|
+
overreach_indicators: ("sensitive" | "too_frequent" | "wrong_context" | "unwanted_timing")[];
|
|
229
|
+
follow_through_success: boolean | null;
|
|
230
|
+
policy_adjustment_recommendation: {
|
|
231
|
+
reason: string;
|
|
232
|
+
suggested_action: "reduce_frequency" | "require_confirmation" | "narrow_scope" | "avoid_sensitive_context";
|
|
233
|
+
relationship_profile_key: string;
|
|
234
|
+
} | null;
|
|
235
|
+
reason?: string | undefined;
|
|
236
|
+
}, {
|
|
237
|
+
schema_version: "runtime-proactive-intervention-event-v1";
|
|
238
|
+
outcome: "accepted" | "corrected" | "dismissed" | "ignored" | "overreach";
|
|
239
|
+
event_type: "feedback";
|
|
240
|
+
intervention_id: string;
|
|
241
|
+
recorded_at: string;
|
|
242
|
+
event_id: string;
|
|
243
|
+
reason?: string | undefined;
|
|
244
|
+
channel?: "gateway" | "cli" | "daemon" | undefined;
|
|
245
|
+
overreach_indicators?: ("sensitive" | "too_frequent" | "wrong_context" | "unwanted_timing")[] | undefined;
|
|
246
|
+
follow_through_success?: boolean | null | undefined;
|
|
247
|
+
policy_adjustment_recommendation?: {
|
|
248
|
+
reason: string;
|
|
249
|
+
suggested_action: "reduce_frequency" | "require_confirmation" | "narrow_scope" | "avoid_sensitive_context";
|
|
250
|
+
relationship_profile_key: string;
|
|
251
|
+
} | null | undefined;
|
|
252
|
+
}>]>;
|
|
253
|
+
export declare const ProactiveInterventionSummarySchema: z.ZodObject<{
|
|
254
|
+
total_interventions: z.ZodNumber;
|
|
255
|
+
pending_count: z.ZodNumber;
|
|
256
|
+
response_count: z.ZodNumber;
|
|
257
|
+
accepted_count: z.ZodNumber;
|
|
258
|
+
ignored_count: z.ZodNumber;
|
|
259
|
+
dismissed_count: z.ZodNumber;
|
|
260
|
+
corrected_count: z.ZodNumber;
|
|
261
|
+
overreach_count: z.ZodNumber;
|
|
262
|
+
response_rate: z.ZodNullable<z.ZodNumber>;
|
|
263
|
+
accepted_rate: z.ZodNullable<z.ZodNumber>;
|
|
264
|
+
ignored_rate: z.ZodNullable<z.ZodNumber>;
|
|
265
|
+
correction_rate: z.ZodNullable<z.ZodNumber>;
|
|
266
|
+
overreach_rate: z.ZodNullable<z.ZodNumber>;
|
|
267
|
+
average_time_to_response_ms: z.ZodNullable<z.ZodNumber>;
|
|
268
|
+
by_kind: z.ZodRecord<z.ZodString, z.ZodNumber>;
|
|
269
|
+
by_channel: z.ZodRecord<z.ZodString, z.ZodNumber>;
|
|
270
|
+
latest_feedback_at: z.ZodNullable<z.ZodString>;
|
|
271
|
+
policy_adjustment_recommendation: z.ZodNullable<z.ZodObject<{
|
|
272
|
+
relationship_profile_key: z.ZodString;
|
|
273
|
+
suggested_action: z.ZodEnum<["reduce_frequency", "require_confirmation", "narrow_scope", "avoid_sensitive_context"]>;
|
|
274
|
+
reason: z.ZodString;
|
|
275
|
+
}, "strip", z.ZodTypeAny, {
|
|
276
|
+
reason: string;
|
|
277
|
+
suggested_action: "reduce_frequency" | "require_confirmation" | "narrow_scope" | "avoid_sensitive_context";
|
|
278
|
+
relationship_profile_key: string;
|
|
279
|
+
}, {
|
|
280
|
+
reason: string;
|
|
281
|
+
suggested_action: "reduce_frequency" | "require_confirmation" | "narrow_scope" | "avoid_sensitive_context";
|
|
282
|
+
relationship_profile_key: string;
|
|
283
|
+
}>>;
|
|
284
|
+
}, "strip", z.ZodTypeAny, {
|
|
285
|
+
policy_adjustment_recommendation: {
|
|
286
|
+
reason: string;
|
|
287
|
+
suggested_action: "reduce_frequency" | "require_confirmation" | "narrow_scope" | "avoid_sensitive_context";
|
|
288
|
+
relationship_profile_key: string;
|
|
289
|
+
} | null;
|
|
290
|
+
total_interventions: number;
|
|
291
|
+
pending_count: number;
|
|
292
|
+
response_count: number;
|
|
293
|
+
accepted_count: number;
|
|
294
|
+
ignored_count: number;
|
|
295
|
+
dismissed_count: number;
|
|
296
|
+
corrected_count: number;
|
|
297
|
+
overreach_count: number;
|
|
298
|
+
response_rate: number | null;
|
|
299
|
+
accepted_rate: number | null;
|
|
300
|
+
ignored_rate: number | null;
|
|
301
|
+
correction_rate: number | null;
|
|
302
|
+
overreach_rate: number | null;
|
|
303
|
+
average_time_to_response_ms: number | null;
|
|
304
|
+
by_kind: Record<string, number>;
|
|
305
|
+
by_channel: Record<string, number>;
|
|
306
|
+
latest_feedback_at: string | null;
|
|
307
|
+
}, {
|
|
308
|
+
policy_adjustment_recommendation: {
|
|
309
|
+
reason: string;
|
|
310
|
+
suggested_action: "reduce_frequency" | "require_confirmation" | "narrow_scope" | "avoid_sensitive_context";
|
|
311
|
+
relationship_profile_key: string;
|
|
312
|
+
} | null;
|
|
313
|
+
total_interventions: number;
|
|
314
|
+
pending_count: number;
|
|
315
|
+
response_count: number;
|
|
316
|
+
accepted_count: number;
|
|
317
|
+
ignored_count: number;
|
|
318
|
+
dismissed_count: number;
|
|
319
|
+
corrected_count: number;
|
|
320
|
+
overreach_count: number;
|
|
321
|
+
response_rate: number | null;
|
|
322
|
+
accepted_rate: number | null;
|
|
323
|
+
ignored_rate: number | null;
|
|
324
|
+
correction_rate: number | null;
|
|
325
|
+
overreach_rate: number | null;
|
|
326
|
+
average_time_to_response_ms: number | null;
|
|
327
|
+
by_kind: Record<string, number>;
|
|
328
|
+
by_channel: Record<string, number>;
|
|
329
|
+
latest_feedback_at: string | null;
|
|
330
|
+
}>;
|
|
331
|
+
export type ProactiveInterventionOutcome = z.infer<typeof ProactiveInterventionOutcomeSchema>;
|
|
332
|
+
export type ProactiveOverreachIndicator = z.infer<typeof ProactiveOverreachIndicatorSchema>;
|
|
333
|
+
export type ProactiveInterventionActivityEvent = z.infer<typeof ProactiveInterventionActivityEventSchema>;
|
|
334
|
+
export type ProactiveInterventionFeedbackEvent = z.infer<typeof ProactiveInterventionFeedbackEventSchema>;
|
|
335
|
+
export type ProactiveInterventionEvent = z.infer<typeof ProactiveInterventionEventSchema>;
|
|
336
|
+
export type ProactiveInterventionSummary = z.infer<typeof ProactiveInterventionSummarySchema>;
|
|
337
|
+
export interface ProactiveFeedbackInput {
|
|
338
|
+
interventionId: string;
|
|
339
|
+
outcome: ProactiveInterventionOutcome;
|
|
340
|
+
reason?: string;
|
|
341
|
+
overreachIndicators?: ProactiveOverreachIndicator[];
|
|
342
|
+
followThroughSuccess?: boolean | null;
|
|
343
|
+
channel?: "daemon" | "cli" | "gateway";
|
|
344
|
+
recordedAt?: string;
|
|
345
|
+
}
|
|
346
|
+
export declare class ProactiveInterventionStore {
|
|
347
|
+
private readonly paths;
|
|
348
|
+
constructor(runtimeRootOrPaths?: string | RuntimeStorePaths);
|
|
349
|
+
ensureReady(): Promise<void>;
|
|
350
|
+
appendIntervention(input: {
|
|
351
|
+
activity: z.infer<typeof ResidentActivitySchema>;
|
|
352
|
+
channel?: "daemon" | "cli" | "gateway";
|
|
353
|
+
}): Promise<ProactiveInterventionActivityEvent>;
|
|
354
|
+
appendFeedback(input: ProactiveFeedbackInput): Promise<ProactiveInterventionFeedbackEvent>;
|
|
355
|
+
append<T extends ProactiveInterventionEvent>(event: T): Promise<T>;
|
|
356
|
+
list(limit?: number): Promise<ProactiveInterventionEvent[]>;
|
|
357
|
+
summarize(): Promise<ProactiveInterventionSummary>;
|
|
358
|
+
}
|
|
359
|
+
export declare function summarizeProactiveInterventions(events: ProactiveInterventionEvent[]): ProactiveInterventionSummary;
|
|
360
|
+
//# sourceMappingURL=proactive-intervention-store.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"proactive-intervention-store.d.ts","sourceRoot":"","sources":["../../../src/runtime/store/proactive-intervention-store.ts"],"names":[],"mappings":"AAEA,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAC;AACxB,OAAO,EAAE,sBAAsB,EAAE,MAAM,4BAA4B,CAAC;AACpE,OAAO,EAEL,KAAK,iBAAiB,EACvB,MAAM,oBAAoB,CAAC;AAE5B,eAAO,MAAM,kCAAkC,2EAM7C,CAAC;AAEH,eAAO,MAAM,iCAAiC,8EAK5C,CAAC;AAUH,eAAO,MAAM,wCAAwC;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;EAGnD,CAAC;AAEH,eAAO,MAAM,wCAAwC;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;EAWnD,CAAC;AAEH,eAAO,MAAM,gCAAgC;;;;;;;;;;;;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,WAAW,IAAI,OAAO,CAAC,IAAI,CAAC;IAI5B,kBAAkB,CAAC,KAAK,EAAE;QAC9B,QAAQ,EAAE,CAAC,CAAC,KAAK,CAAC,OAAO,sBAAsB,CAAC,CAAC;QACjD,OAAO,CAAC,EAAE,QAAQ,GAAG,KAAK,GAAG,SAAS,CAAC;KACxC,GAAG,OAAO,CAAC,kCAAkC,CAAC;IAkBzC,cAAc,CAAC,KAAK,EAAE,sBAAsB,GAAG,OAAO,CAAC,kCAAkC,CAAC;IAsB1F,MAAM,CAAC,CAAC,SAAS,0BAA0B,EAAE,KAAK,EAAE,CAAC,GAAG,OAAO,CAAC,CAAC,CAAC;IAOlE,IAAI,CAAC,KAAK,CAAC,EAAE,MAAM,GAAG,OAAO,CAAC,0BAA0B,EAAE,CAAC;IAgB3D,SAAS,IAAI,OAAO,CAAC,4BAA4B,CAAC;CAGzD;AAED,wBAAgB,+BAA+B,CAAC,MAAM,EAAE,0BAA0B,EAAE,GAAG,4BAA4B,CAwElH"}
|
|
@@ -0,0 +1,252 @@
|
|
|
1
|
+
import * as fsp from "node:fs/promises";
|
|
2
|
+
import { randomUUID } from "node:crypto";
|
|
3
|
+
import { z } from "zod";
|
|
4
|
+
import { ResidentActivitySchema } from "../../base/types/daemon.js";
|
|
5
|
+
import { createRuntimeStorePaths, } from "./runtime-paths.js";
|
|
6
|
+
export const ProactiveInterventionOutcomeSchema = z.enum([
|
|
7
|
+
"accepted",
|
|
8
|
+
"ignored",
|
|
9
|
+
"dismissed",
|
|
10
|
+
"corrected",
|
|
11
|
+
"overreach",
|
|
12
|
+
]);
|
|
13
|
+
export const ProactiveOverreachIndicatorSchema = z.enum([
|
|
14
|
+
"too_frequent",
|
|
15
|
+
"wrong_context",
|
|
16
|
+
"sensitive",
|
|
17
|
+
"unwanted_timing",
|
|
18
|
+
]);
|
|
19
|
+
const ProactiveInterventionBaseEventSchema = z.object({
|
|
20
|
+
schema_version: z.literal("runtime-proactive-intervention-event-v1"),
|
|
21
|
+
event_id: z.string().min(1),
|
|
22
|
+
intervention_id: z.string().min(1),
|
|
23
|
+
recorded_at: z.string().datetime(),
|
|
24
|
+
channel: z.enum(["daemon", "cli", "gateway"]).default("daemon"),
|
|
25
|
+
});
|
|
26
|
+
export const ProactiveInterventionActivityEventSchema = ProactiveInterventionBaseEventSchema.extend({
|
|
27
|
+
event_type: z.literal("intervention"),
|
|
28
|
+
activity: ResidentActivitySchema,
|
|
29
|
+
});
|
|
30
|
+
export const ProactiveInterventionFeedbackEventSchema = ProactiveInterventionBaseEventSchema.extend({
|
|
31
|
+
event_type: z.literal("feedback"),
|
|
32
|
+
outcome: ProactiveInterventionOutcomeSchema,
|
|
33
|
+
reason: z.string().optional(),
|
|
34
|
+
overreach_indicators: z.array(ProactiveOverreachIndicatorSchema).default([]),
|
|
35
|
+
follow_through_success: z.boolean().nullable().default(null),
|
|
36
|
+
policy_adjustment_recommendation: z.object({
|
|
37
|
+
relationship_profile_key: z.string().min(1),
|
|
38
|
+
suggested_action: z.enum(["reduce_frequency", "require_confirmation", "narrow_scope", "avoid_sensitive_context"]),
|
|
39
|
+
reason: z.string().min(1),
|
|
40
|
+
}).nullable().default(null),
|
|
41
|
+
});
|
|
42
|
+
export const ProactiveInterventionEventSchema = z.discriminatedUnion("event_type", [
|
|
43
|
+
ProactiveInterventionActivityEventSchema,
|
|
44
|
+
ProactiveInterventionFeedbackEventSchema,
|
|
45
|
+
]);
|
|
46
|
+
export const ProactiveInterventionSummarySchema = z.object({
|
|
47
|
+
total_interventions: z.number().int().nonnegative(),
|
|
48
|
+
pending_count: z.number().int().nonnegative(),
|
|
49
|
+
response_count: z.number().int().nonnegative(),
|
|
50
|
+
accepted_count: z.number().int().nonnegative(),
|
|
51
|
+
ignored_count: z.number().int().nonnegative(),
|
|
52
|
+
dismissed_count: z.number().int().nonnegative(),
|
|
53
|
+
corrected_count: z.number().int().nonnegative(),
|
|
54
|
+
overreach_count: z.number().int().nonnegative(),
|
|
55
|
+
response_rate: z.number().min(0).max(1).nullable(),
|
|
56
|
+
accepted_rate: z.number().min(0).max(1).nullable(),
|
|
57
|
+
ignored_rate: z.number().min(0).max(1).nullable(),
|
|
58
|
+
correction_rate: z.number().min(0).max(1).nullable(),
|
|
59
|
+
overreach_rate: z.number().min(0).max(1).nullable(),
|
|
60
|
+
average_time_to_response_ms: z.number().nonnegative().nullable(),
|
|
61
|
+
by_kind: z.record(z.number().int().nonnegative()),
|
|
62
|
+
by_channel: z.record(z.number().int().nonnegative()),
|
|
63
|
+
latest_feedback_at: z.string().datetime().nullable(),
|
|
64
|
+
policy_adjustment_recommendation: z.object({
|
|
65
|
+
relationship_profile_key: z.string().min(1),
|
|
66
|
+
suggested_action: z.enum(["reduce_frequency", "require_confirmation", "narrow_scope", "avoid_sensitive_context"]),
|
|
67
|
+
reason: z.string().min(1),
|
|
68
|
+
}).nullable(),
|
|
69
|
+
});
|
|
70
|
+
function eventId(prefix) {
|
|
71
|
+
return `${prefix}-${randomUUID()}`;
|
|
72
|
+
}
|
|
73
|
+
function countRate(count, total) {
|
|
74
|
+
return total > 0 ? count / total : null;
|
|
75
|
+
}
|
|
76
|
+
function recommendationForFeedback(input) {
|
|
77
|
+
if (input.outcome === "overreach") {
|
|
78
|
+
const suggestedAction = input.overreachIndicators.includes("sensitive")
|
|
79
|
+
? "avoid_sensitive_context"
|
|
80
|
+
: input.overreachIndicators.includes("too_frequent")
|
|
81
|
+
? "reduce_frequency"
|
|
82
|
+
: input.overreachIndicators.includes("wrong_context")
|
|
83
|
+
? "narrow_scope"
|
|
84
|
+
: "require_confirmation";
|
|
85
|
+
return {
|
|
86
|
+
relationship_profile_key: "user.intervention.proactivity",
|
|
87
|
+
suggested_action: suggestedAction,
|
|
88
|
+
reason: input.reason ?? `User marked proactive intervention as overreach (${input.overreachIndicators.join(", ") || "unspecified"}).`,
|
|
89
|
+
};
|
|
90
|
+
}
|
|
91
|
+
if (input.outcome === "corrected") {
|
|
92
|
+
return {
|
|
93
|
+
relationship_profile_key: "user.intervention.correction_policy",
|
|
94
|
+
suggested_action: "require_confirmation",
|
|
95
|
+
reason: input.reason ?? "User corrected a proactive intervention.",
|
|
96
|
+
};
|
|
97
|
+
}
|
|
98
|
+
return null;
|
|
99
|
+
}
|
|
100
|
+
export class ProactiveInterventionStore {
|
|
101
|
+
paths;
|
|
102
|
+
constructor(runtimeRootOrPaths) {
|
|
103
|
+
this.paths =
|
|
104
|
+
typeof runtimeRootOrPaths === "string"
|
|
105
|
+
? createRuntimeStorePaths(runtimeRootOrPaths)
|
|
106
|
+
: runtimeRootOrPaths ?? createRuntimeStorePaths();
|
|
107
|
+
}
|
|
108
|
+
async ensureReady() {
|
|
109
|
+
await fsp.mkdir(this.paths.proactiveInterventionsDir, { recursive: true });
|
|
110
|
+
}
|
|
111
|
+
async appendIntervention(input) {
|
|
112
|
+
const activity = ResidentActivitySchema.parse(input.activity);
|
|
113
|
+
const interventionId = activity.intervention_id ?? eventId("proactive-intervention");
|
|
114
|
+
const event = ProactiveInterventionActivityEventSchema.parse({
|
|
115
|
+
schema_version: "runtime-proactive-intervention-event-v1",
|
|
116
|
+
event_id: eventId("proactive-event"),
|
|
117
|
+
intervention_id: interventionId,
|
|
118
|
+
recorded_at: activity.recorded_at,
|
|
119
|
+
channel: input.channel ?? "daemon",
|
|
120
|
+
event_type: "intervention",
|
|
121
|
+
activity: {
|
|
122
|
+
...activity,
|
|
123
|
+
intervention_id: interventionId,
|
|
124
|
+
},
|
|
125
|
+
});
|
|
126
|
+
return this.append(event);
|
|
127
|
+
}
|
|
128
|
+
async appendFeedback(input) {
|
|
129
|
+
const overreachIndicators = input.overreachIndicators ?? [];
|
|
130
|
+
const event = ProactiveInterventionFeedbackEventSchema.parse({
|
|
131
|
+
schema_version: "runtime-proactive-intervention-event-v1",
|
|
132
|
+
event_id: eventId("proactive-event"),
|
|
133
|
+
intervention_id: input.interventionId,
|
|
134
|
+
recorded_at: input.recordedAt ?? new Date().toISOString(),
|
|
135
|
+
channel: input.channel ?? "cli",
|
|
136
|
+
event_type: "feedback",
|
|
137
|
+
outcome: input.outcome,
|
|
138
|
+
reason: input.reason,
|
|
139
|
+
overreach_indicators: overreachIndicators,
|
|
140
|
+
follow_through_success: input.followThroughSuccess ?? null,
|
|
141
|
+
policy_adjustment_recommendation: recommendationForFeedback({
|
|
142
|
+
outcome: input.outcome,
|
|
143
|
+
overreachIndicators,
|
|
144
|
+
reason: input.reason,
|
|
145
|
+
}),
|
|
146
|
+
});
|
|
147
|
+
return this.append(event);
|
|
148
|
+
}
|
|
149
|
+
async append(event) {
|
|
150
|
+
const parsed = ProactiveInterventionEventSchema.parse(event);
|
|
151
|
+
await this.ensureReady();
|
|
152
|
+
await fsp.appendFile(this.paths.proactiveInterventionLedgerPath, `${JSON.stringify(parsed)}\n`, "utf8");
|
|
153
|
+
return parsed;
|
|
154
|
+
}
|
|
155
|
+
async list(limit) {
|
|
156
|
+
const raw = await fsp.readFile(this.paths.proactiveInterventionLedgerPath, "utf8").catch(() => "");
|
|
157
|
+
if (!raw.trim())
|
|
158
|
+
return [];
|
|
159
|
+
const events = [];
|
|
160
|
+
for (const line of raw.split(/\r?\n/)) {
|
|
161
|
+
if (!line.trim())
|
|
162
|
+
continue;
|
|
163
|
+
try {
|
|
164
|
+
events.push(ProactiveInterventionEventSchema.parse(JSON.parse(line)));
|
|
165
|
+
}
|
|
166
|
+
catch {
|
|
167
|
+
// Malformed history should not block operational health surfaces.
|
|
168
|
+
}
|
|
169
|
+
}
|
|
170
|
+
const effectiveLimit = limit ?? events.length;
|
|
171
|
+
return events.slice(Math.max(0, events.length - effectiveLimit));
|
|
172
|
+
}
|
|
173
|
+
async summarize() {
|
|
174
|
+
return summarizeProactiveInterventions(await this.list());
|
|
175
|
+
}
|
|
176
|
+
}
|
|
177
|
+
export function summarizeProactiveInterventions(events) {
|
|
178
|
+
const interventions = events.filter((event) => event.event_type === "intervention");
|
|
179
|
+
const feedbacks = events.filter((event) => event.event_type === "feedback");
|
|
180
|
+
const byKind = {};
|
|
181
|
+
const byChannel = {};
|
|
182
|
+
const interventionsById = new Map(interventions.map((event) => [event.intervention_id, event]));
|
|
183
|
+
const feedbackByIntervention = new Map();
|
|
184
|
+
let accepted = 0;
|
|
185
|
+
let ignored = 0;
|
|
186
|
+
let dismissed = 0;
|
|
187
|
+
let corrected = 0;
|
|
188
|
+
let overreach = 0;
|
|
189
|
+
let latestFeedbackAt = null;
|
|
190
|
+
let responseTimeTotal = 0;
|
|
191
|
+
let responseTimeCount = 0;
|
|
192
|
+
let latestRecommendation = null;
|
|
193
|
+
for (const intervention of interventions) {
|
|
194
|
+
byKind[intervention.activity.kind] = (byKind[intervention.activity.kind] ?? 0) + 1;
|
|
195
|
+
byChannel[intervention.channel] = (byChannel[intervention.channel] ?? 0) + 1;
|
|
196
|
+
}
|
|
197
|
+
for (const feedback of feedbacks) {
|
|
198
|
+
const existing = feedbackByIntervention.get(feedback.intervention_id);
|
|
199
|
+
if (!existing || feedback.recorded_at >= existing.recorded_at) {
|
|
200
|
+
feedbackByIntervention.set(feedback.intervention_id, feedback);
|
|
201
|
+
}
|
|
202
|
+
if (latestFeedbackAt === null || feedback.recorded_at > latestFeedbackAt) {
|
|
203
|
+
latestFeedbackAt = feedback.recorded_at;
|
|
204
|
+
}
|
|
205
|
+
if (feedback.policy_adjustment_recommendation) {
|
|
206
|
+
latestRecommendation = feedback.policy_adjustment_recommendation;
|
|
207
|
+
}
|
|
208
|
+
}
|
|
209
|
+
for (const [interventionId, feedback] of feedbackByIntervention) {
|
|
210
|
+
const intervention = interventionsById.get(interventionId);
|
|
211
|
+
if (!intervention)
|
|
212
|
+
continue;
|
|
213
|
+
if (feedback.outcome === "accepted")
|
|
214
|
+
accepted += 1;
|
|
215
|
+
if (feedback.outcome === "ignored")
|
|
216
|
+
ignored += 1;
|
|
217
|
+
if (feedback.outcome === "dismissed")
|
|
218
|
+
dismissed += 1;
|
|
219
|
+
if (feedback.outcome === "corrected")
|
|
220
|
+
corrected += 1;
|
|
221
|
+
if (feedback.outcome === "overreach")
|
|
222
|
+
overreach += 1;
|
|
223
|
+
const delta = new Date(feedback.recorded_at).getTime() - new Date(intervention.recorded_at).getTime();
|
|
224
|
+
if (Number.isFinite(delta) && delta >= 0) {
|
|
225
|
+
responseTimeTotal += delta;
|
|
226
|
+
responseTimeCount += 1;
|
|
227
|
+
}
|
|
228
|
+
}
|
|
229
|
+
const total = interventions.length;
|
|
230
|
+
const responseCount = [...feedbackByIntervention.keys()].filter((interventionId) => interventionsById.has(interventionId)).length;
|
|
231
|
+
return ProactiveInterventionSummarySchema.parse({
|
|
232
|
+
total_interventions: total,
|
|
233
|
+
pending_count: Math.max(0, total - responseCount),
|
|
234
|
+
response_count: responseCount,
|
|
235
|
+
accepted_count: accepted,
|
|
236
|
+
ignored_count: ignored,
|
|
237
|
+
dismissed_count: dismissed,
|
|
238
|
+
corrected_count: corrected,
|
|
239
|
+
overreach_count: overreach,
|
|
240
|
+
response_rate: countRate(responseCount, total),
|
|
241
|
+
accepted_rate: countRate(accepted, total),
|
|
242
|
+
ignored_rate: countRate(ignored, total),
|
|
243
|
+
correction_rate: countRate(corrected, total),
|
|
244
|
+
overreach_rate: countRate(overreach, total),
|
|
245
|
+
average_time_to_response_ms: responseTimeCount > 0 ? responseTimeTotal / responseTimeCount : null,
|
|
246
|
+
by_kind: byKind,
|
|
247
|
+
by_channel: byChannel,
|
|
248
|
+
latest_feedback_at: latestFeedbackAt,
|
|
249
|
+
policy_adjustment_recommendation: latestRecommendation,
|
|
250
|
+
});
|
|
251
|
+
}
|
|
252
|
+
//# sourceMappingURL=proactive-intervention-store.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"proactive-intervention-store.js","sourceRoot":"","sources":["../../../src/runtime/store/proactive-intervention-store.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,GAAG,MAAM,kBAAkB,CAAC;AACxC,OAAO,EAAE,UAAU,EAAE,MAAM,aAAa,CAAC;AACzC,OAAO,EAAE,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