pulseed 0.6.0 → 0.6.2
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 +19 -17
- package/dist/adapters/types/a2a.d.ts +24 -24
- package/dist/base/config/global-config.d.ts +4 -4
- 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/state/state-manager-goal-write.d.ts +1 -1
- package/dist/base/state/state-manager-goal-write.d.ts.map +1 -1
- package/dist/base/state/state-manager.d.ts +2 -6
- package/dist/base/state/state-manager.d.ts.map +1 -1
- package/dist/base/state/state-manager.js.map +1 -1
- package/dist/base/state/state-write-fence.d.ts +7 -0
- package/dist/base/state/state-write-fence.d.ts.map +1 -0
- package/dist/base/state/state-write-fence.js +2 -0
- package/dist/base/state/state-write-fence.js.map +1 -0
- package/dist/base/types/companion.d.ts +2 -0
- package/dist/base/types/companion.d.ts.map +1 -0
- package/dist/base/types/companion.js +2 -0
- package/dist/base/types/companion.js.map +1 -0
- package/dist/base/types/index.d.ts +1 -0
- package/dist/base/types/index.d.ts.map +1 -1
- package/dist/base/types/index.js +1 -0
- package/dist/base/types/index.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 +12 -2
- package/dist/index.d.ts.map +1 -1
- package/dist/index.js +6 -1
- package/dist/index.js.map +1 -1
- package/dist/interface/chat/chat-event-state.d.ts +2 -0
- package/dist/interface/chat/chat-event-state.d.ts.map +1 -1
- package/dist/interface/chat/chat-event-state.js +110 -10
- package/dist/interface/chat/chat-event-state.js.map +1 -1
- package/dist/interface/chat/chat-events.d.ts +23 -1
- package/dist/interface/chat/chat-events.d.ts.map +1 -1
- package/dist/interface/chat/chat-history.d.ts +4739 -1
- package/dist/interface/chat/chat-history.d.ts.map +1 -1
- package/dist/interface/chat/chat-history.js +40 -2
- package/dist/interface/chat/chat-history.js.map +1 -1
- package/dist/interface/chat/chat-runner-commands.d.ts +2 -32
- package/dist/interface/chat/chat-runner-commands.d.ts.map +1 -1
- package/dist/interface/chat/chat-runner-commands.js +2 -2
- package/dist/interface/chat/chat-runner-commands.js.map +1 -1
- package/dist/interface/chat/chat-runner-contracts.d.ts +152 -0
- package/dist/interface/chat/chat-runner-contracts.d.ts.map +1 -0
- package/dist/interface/chat/chat-runner-contracts.js +2 -0
- package/dist/interface/chat/chat-runner-contracts.js.map +1 -0
- package/dist/interface/chat/chat-runner-event-bridge.d.ts +11 -2
- package/dist/interface/chat/chat-runner-event-bridge.d.ts.map +1 -1
- package/dist/interface/chat/chat-runner-event-bridge.js +127 -16
- package/dist/interface/chat/chat-runner-event-bridge.js.map +1 -1
- package/dist/interface/chat/chat-runner-routes.d.ts +86 -12
- package/dist/interface/chat/chat-runner-routes.d.ts.map +1 -1
- package/dist/interface/chat/chat-runner-routes.js +385 -17
- package/dist/interface/chat/chat-runner-routes.js.map +1 -1
- package/dist/interface/chat/chat-runner-runtime.d.ts +1 -1
- package/dist/interface/chat/chat-runner-runtime.d.ts.map +1 -1
- package/dist/interface/chat/chat-runner-runtime.js +4 -0
- package/dist/interface/chat/chat-runner-runtime.js.map +1 -1
- package/dist/interface/chat/chat-runner.d.ts +10 -71
- package/dist/interface/chat/chat-runner.d.ts.map +1 -1
- package/dist/interface/chat/chat-runner.js +425 -56
- package/dist/interface/chat/chat-runner.js.map +1 -1
- package/dist/interface/chat/chat-session-store.d.ts +2 -0
- package/dist/interface/chat/chat-session-store.d.ts.map +1 -1
- package/dist/interface/chat/chat-session-store.js +3 -6
- package/dist/interface/chat/chat-session-store.js.map +1 -1
- package/dist/interface/chat/cross-platform-session-global.d.ts +2 -1
- package/dist/interface/chat/cross-platform-session-global.d.ts.map +1 -1
- package/dist/interface/chat/cross-platform-session-global.js +4 -10
- package/dist/interface/chat/cross-platform-session-global.js.map +1 -1
- package/dist/interface/chat/cross-platform-session.d.ts +30 -1
- package/dist/interface/chat/cross-platform-session.d.ts.map +1 -1
- package/dist/interface/chat/cross-platform-session.js +418 -51
- package/dist/interface/chat/cross-platform-session.js.map +1 -1
- package/dist/interface/chat/event-subscriber.js +2 -2
- package/dist/interface/chat/event-subscriber.js.map +1 -1
- package/dist/interface/chat/failure-recovery.js +1 -1
- 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 +43 -0
- package/dist/interface/chat/freeform-route-classifier.js.map +1 -0
- package/dist/interface/chat/gateway-setup-status.d.ts +33 -0
- package/dist/interface/chat/gateway-setup-status.d.ts.map +1 -0
- package/dist/interface/chat/gateway-setup-status.js +44 -0
- package/dist/interface/chat/gateway-setup-status.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 +31 -0
- package/dist/interface/chat/ingress-router.d.ts.map +1 -1
- package/dist/interface/chat/ingress-router.js +163 -7
- package/dist/interface/chat/ingress-router.js.map +1 -1
- package/dist/interface/chat/operation-progress.d.ts +17 -0
- package/dist/interface/chat/operation-progress.d.ts.map +1 -0
- package/dist/interface/chat/operation-progress.js +29 -0
- package/dist/interface/chat/operation-progress.js.map +1 -0
- package/dist/interface/chat/setup-config-write.d.ts +27 -0
- package/dist/interface/chat/setup-config-write.d.ts.map +1 -0
- package/dist/interface/chat/setup-config-write.js +79 -0
- package/dist/interface/chat/setup-config-write.js.map +1 -0
- package/dist/interface/chat/setup-dialogue.d.ts +199 -0
- package/dist/interface/chat/setup-dialogue.d.ts.map +1 -0
- package/dist/interface/chat/setup-dialogue.js +97 -0
- package/dist/interface/chat/setup-dialogue.js.map +1 -0
- package/dist/interface/chat/setup-secret-intake.d.ts +68 -0
- package/dist/interface/chat/setup-secret-intake.d.ts.map +1 -0
- package/dist/interface/chat/setup-secret-intake.js +84 -0
- package/dist/interface/chat/setup-secret-intake.js.map +1 -0
- package/dist/interface/chat/turn-language.d.ts +23 -0
- package/dist/interface/chat/turn-language.d.ts.map +1 -0
- package/dist/interface/chat/turn-language.js +46 -0
- package/dist/interface/chat/turn-language.js.map +1 -0
- package/dist/interface/cli/cli-command-registry.d.ts +1 -1
- package/dist/interface/cli/cli-command-registry.d.ts.map +1 -1
- package/dist/interface/cli/cli-command-registry.js +9 -1
- 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 +5 -2
- package/dist/interface/cli/cli-runner.js.map +1 -1
- package/dist/interface/cli/commands/daemon.d.ts.map +1 -1
- package/dist/interface/cli/commands/daemon.js +20 -1
- 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 +4 -0
- 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/operator-binding-status.d.ts +59 -0
- package/dist/interface/cli/commands/operator-binding-status.d.ts.map +1 -0
- package/dist/interface/cli/commands/operator-binding-status.js +257 -0
- package/dist/interface/cli/commands/operator-binding-status.js.map +1 -0
- 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 +2 -2
- package/dist/interface/cli/commands/run.d.ts.map +1 -1
- package/dist/interface/cli/commands/run.js.map +1 -1
- package/dist/interface/cli/commands/runtime.d.ts.map +1 -1
- package/dist/interface/cli/commands/runtime.js +108 -2
- package/dist/interface/cli/commands/runtime.js.map +1 -1
- package/dist/interface/cli/commands/setup/steps-gateway.js +14 -3
- package/dist/interface/cli/commands/setup/steps-gateway.js.map +1 -1
- package/dist/interface/cli/commands/setup-wizard.d.ts +31 -0
- package/dist/interface/cli/commands/setup-wizard.d.ts.map +1 -1
- package/dist/interface/cli/commands/setup-wizard.js +118 -0
- package/dist/interface/cli/commands/setup-wizard.js.map +1 -1
- package/dist/interface/cli/commands/telegram.d.ts.map +1 -1
- package/dist/interface/cli/commands/telegram.js +27 -3
- package/dist/interface/cli/commands/telegram.js.map +1 -1
- package/dist/interface/cli/setup.d.ts +3 -3
- package/dist/interface/cli/setup.d.ts.map +1 -1
- package/dist/interface/cli/setup.js +3 -2
- package/dist/interface/cli/setup.js.map +1 -1
- package/dist/interface/cli/utils/loop-runner.d.ts +1 -1
- package/dist/interface/cli/utils/loop-runner.d.ts.map +1 -1
- package/dist/interface/cli/utils.d.ts.map +1 -1
- package/dist/interface/cli/utils.js +5 -3
- package/dist/interface/cli/utils.js.map +1 -1
- package/dist/interface/tui/actions.d.ts.map +1 -1
- package/dist/interface/tui/actions.js +14 -6
- package/dist/interface/tui/actions.js.map +1 -1
- package/dist/interface/tui/app.d.ts +1 -7
- package/dist/interface/tui/app.d.ts.map +1 -1
- package/dist/interface/tui/app.js +71 -120
- package/dist/interface/tui/app.js.map +1 -1
- package/dist/interface/tui/chat-surface.d.ts +1 -0
- package/dist/interface/tui/chat-surface.d.ts.map +1 -1
- package/dist/interface/tui/chat-surface.js +15 -0
- package/dist/interface/tui/chat-surface.js.map +1 -1
- package/dist/interface/tui/entry-approval.js +2 -2
- package/dist/interface/tui/entry-approval.js.map +1 -1
- package/dist/interface/tui/entry-deps.d.ts +1 -1
- package/dist/interface/tui/entry-deps.d.ts.map +1 -1
- package/dist/interface/tui/entry-deps.js +54 -8
- package/dist/interface/tui/entry-deps.js.map +1 -1
- package/dist/interface/tui/input-action.d.ts +49 -0
- package/dist/interface/tui/input-action.d.ts.map +1 -0
- package/dist/interface/tui/input-action.js +46 -0
- package/dist/interface/tui/input-action.js.map +1 -0
- package/dist/interface/tui/intent-recognizer.js +1 -1
- package/dist/interface/tui/markdown-renderer.d.ts.map +1 -1
- package/dist/interface/tui/markdown-renderer.js +4 -1
- package/dist/interface/tui/markdown-renderer.js.map +1 -1
- package/dist/interface/tui/use-loop.d.ts +1 -1
- package/dist/interface/tui/use-loop.d.ts.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 +15 -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 +4 -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-loop-result.d.ts +17 -0
- package/dist/orchestrator/execution/agent-loop/agent-loop-result.d.ts.map +1 -1
- package/dist/orchestrator/execution/agent-loop/agent-loop-tool-output.d.ts +3 -0
- package/dist/orchestrator/execution/agent-loop/agent-loop-tool-output.d.ts.map +1 -1
- package/dist/orchestrator/execution/agent-loop/agent-loop-tool-runtime.d.ts +1 -0
- package/dist/orchestrator/execution/agent-loop/agent-loop-tool-runtime.d.ts.map +1 -1
- package/dist/orchestrator/execution/agent-loop/agent-loop-tool-runtime.js +20 -3
- package/dist/orchestrator/execution/agent-loop/agent-loop-tool-runtime.js.map +1 -1
- package/dist/orchestrator/execution/agent-loop/agent-loop-trace-store.d.ts.map +1 -1
- package/dist/orchestrator/execution/agent-loop/agent-loop-trace-store.js +5 -3
- package/dist/orchestrator/execution/agent-loop/agent-loop-trace-store.js.map +1 -1
- package/dist/orchestrator/execution/agent-loop/agent-timeline.d.ts +111 -0
- package/dist/orchestrator/execution/agent-loop/agent-timeline.d.ts.map +1 -0
- package/dist/orchestrator/execution/agent-loop/agent-timeline.js +249 -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 +39 -25
- 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.map +1 -1
- package/dist/orchestrator/execution/agent-loop/chat-agent-loop-runner.js +20 -4
- package/dist/orchestrator/execution/agent-loop/chat-agent-loop-runner.js.map +1 -1
- package/dist/orchestrator/execution/agent-loop/core-loop-control-tools.d.ts +1 -51
- 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 -239
- package/dist/orchestrator/execution/agent-loop/core-loop-control-tools.js.map +1 -1
- package/dist/orchestrator/execution/agent-loop/durable-loop-control-tools.d.ts +60 -0
- package/dist/orchestrator/execution/agent-loop/durable-loop-control-tools.d.ts.map +1 -0
- package/dist/orchestrator/execution/agent-loop/durable-loop-control-tools.js +244 -0
- package/dist/orchestrator/execution/agent-loop/durable-loop-control-tools.js.map +1 -0
- 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/index.d.ts +1 -1
- package/dist/orchestrator/execution/agent-loop/index.d.ts.map +1 -1
- package/dist/orchestrator/execution/agent-loop/index.js +1 -1
- package/dist/orchestrator/execution/agent-loop/index.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/task/task-generation.d.ts +50 -2
- package/dist/orchestrator/execution/task/task-generation.d.ts.map +1 -1
- package/dist/orchestrator/execution/task/task-generation.js +19 -1
- package/dist/orchestrator/execution/task/task-generation.js.map +1 -1
- package/dist/orchestrator/execution/task/task-lifecycle.js +8 -11
- package/dist/orchestrator/execution/task/task-lifecycle.js.map +1 -1
- package/dist/orchestrator/execution/task/task-prompt-builder.d.ts.map +1 -1
- package/dist/orchestrator/execution/task/task-prompt-builder.js +9 -0
- package/dist/orchestrator/execution/task/task-prompt-builder.js.map +1 -1
- package/dist/orchestrator/execution/types/task-group.d.ts +68 -4
- package/dist/orchestrator/execution/types/task-group.d.ts.map +1 -1
- package/dist/orchestrator/execution/types/task.d.ts +100 -2
- package/dist/orchestrator/execution/types/task.d.ts.map +1 -1
- package/dist/orchestrator/execution/types/task.js +10 -0
- package/dist/orchestrator/execution/types/task.js.map +1 -1
- package/dist/orchestrator/goal/goal-decomposer.d.ts.map +1 -1
- package/dist/orchestrator/goal/goal-decomposer.js +2 -1
- package/dist/orchestrator/goal/goal-decomposer.js.map +1 -1
- package/dist/orchestrator/goal/goal-negotiator.d.ts.map +1 -1
- package/dist/orchestrator/goal/goal-negotiator.js +5 -2
- package/dist/orchestrator/goal/goal-negotiator.js.map +1 -1
- package/dist/orchestrator/goal/goal-suggest.d.ts +6 -6
- package/dist/orchestrator/goal/goal-validation.d.ts +4 -5
- package/dist/orchestrator/goal/goal-validation.d.ts.map +1 -1
- package/dist/orchestrator/goal/goal-validation.js +11 -17
- package/dist/orchestrator/goal/goal-validation.js.map +1 -1
- package/dist/orchestrator/goal/negotiator-prompts.d.ts.map +1 -1
- package/dist/orchestrator/goal/negotiator-prompts.js +8 -4
- package/dist/orchestrator/goal/negotiator-prompts.js.map +1 -1
- package/dist/orchestrator/goal/negotiator-steps.d.ts.map +1 -1
- package/dist/orchestrator/goal/negotiator-steps.js +7 -11
- package/dist/orchestrator/goal/negotiator-steps.js.map +1 -1
- package/dist/orchestrator/goal/types/goal-refiner.d.ts +6 -6
- package/dist/orchestrator/goal/types/goal.d.ts +161 -0
- package/dist/orchestrator/goal/types/goal.d.ts.map +1 -1
- package/dist/orchestrator/goal/types/goal.js +8 -0
- package/dist/orchestrator/goal/types/goal.js.map +1 -1
- package/dist/orchestrator/goal/types/negotiation.d.ts +120 -6
- package/dist/orchestrator/goal/types/negotiation.d.ts.map +1 -1
- package/dist/orchestrator/goal/types/negotiation.js +3 -0
- package/dist/orchestrator/goal/types/negotiation.js.map +1 -1
- package/dist/orchestrator/goal/types/suggest.d.ts +6 -6
- package/dist/orchestrator/loop/checkpoint-manager-loop.d.ts +1 -1
- package/dist/orchestrator/loop/checkpoint-manager-loop.d.ts.map +1 -1
- package/dist/orchestrator/loop/core-loop/capability.d.ts +1 -21
- package/dist/orchestrator/loop/core-loop/capability.d.ts.map +1 -1
- package/dist/orchestrator/loop/core-loop/capability.js +1 -150
- package/dist/orchestrator/loop/core-loop/capability.js.map +1 -1
- package/dist/orchestrator/loop/core-loop/contracts.d.ts +1 -318
- package/dist/orchestrator/loop/core-loop/contracts.d.ts.map +1 -1
- package/dist/orchestrator/loop/core-loop/contracts.js +1 -39
- package/dist/orchestrator/loop/core-loop/contracts.js.map +1 -1
- package/dist/orchestrator/loop/core-loop/control.d.ts +1 -26
- package/dist/orchestrator/loop/core-loop/control.d.ts.map +1 -1
- package/dist/orchestrator/loop/core-loop/control.js +1 -71
- package/dist/orchestrator/loop/core-loop/control.js.map +1 -1
- package/dist/orchestrator/loop/core-loop/decision-engine.d.ts +1 -78
- package/dist/orchestrator/loop/core-loop/decision-engine.d.ts.map +1 -1
- package/dist/orchestrator/loop/core-loop/decision-engine.js +1 -144
- package/dist/orchestrator/loop/core-loop/decision-engine.js.map +1 -1
- package/dist/orchestrator/loop/core-loop/dream-review-checkpoint.d.ts +1 -47
- package/dist/orchestrator/loop/core-loop/dream-review-checkpoint.d.ts.map +1 -1
- package/dist/orchestrator/loop/core-loop/dream-review-checkpoint.js +1 -376
- package/dist/orchestrator/loop/core-loop/dream-review-checkpoint.js.map +1 -1
- package/dist/orchestrator/loop/core-loop/evidence-ledger.d.ts +1 -21
- package/dist/orchestrator/loop/core-loop/evidence-ledger.d.ts.map +1 -1
- package/dist/orchestrator/loop/core-loop/evidence-ledger.js +1 -35
- package/dist/orchestrator/loop/core-loop/evidence-ledger.js.map +1 -1
- package/dist/orchestrator/loop/core-loop/iteration-kernel-knowledge.d.ts +1 -6
- package/dist/orchestrator/loop/core-loop/iteration-kernel-knowledge.d.ts.map +1 -1
- package/dist/orchestrator/loop/core-loop/iteration-kernel-knowledge.js +1 -42
- package/dist/orchestrator/loop/core-loop/iteration-kernel-knowledge.js.map +1 -1
- package/dist/orchestrator/loop/core-loop/iteration-kernel-wait.d.ts +1 -13
- package/dist/orchestrator/loop/core-loop/iteration-kernel-wait.d.ts.map +1 -1
- package/dist/orchestrator/loop/core-loop/iteration-kernel-wait.js +1 -40
- package/dist/orchestrator/loop/core-loop/iteration-kernel-wait.js.map +1 -1
- package/dist/orchestrator/loop/core-loop/iteration-kernel.d.ts +1 -36
- package/dist/orchestrator/loop/core-loop/iteration-kernel.d.ts.map +1 -1
- package/dist/orchestrator/loop/core-loop/iteration-kernel.js +1 -834
- package/dist/orchestrator/loop/core-loop/iteration-kernel.js.map +1 -1
- package/dist/orchestrator/loop/core-loop/learning.d.ts +1 -30
- package/dist/orchestrator/loop/core-loop/learning.d.ts.map +1 -1
- package/dist/orchestrator/loop/core-loop/learning.js +1 -91
- package/dist/orchestrator/loop/core-loop/learning.js.map +1 -1
- package/dist/orchestrator/loop/core-loop/phase-policy.d.ts +1 -19
- package/dist/orchestrator/loop/core-loop/phase-policy.d.ts.map +1 -1
- package/dist/orchestrator/loop/core-loop/phase-policy.js +1 -157
- package/dist/orchestrator/loop/core-loop/phase-policy.js.map +1 -1
- package/dist/orchestrator/loop/core-loop/phase-runtime.d.ts +1 -30
- package/dist/orchestrator/loop/core-loop/phase-runtime.d.ts.map +1 -1
- package/dist/orchestrator/loop/core-loop/phase-runtime.js +1 -102
- package/dist/orchestrator/loop/core-loop/phase-runtime.js.map +1 -1
- package/dist/orchestrator/loop/core-loop/phase-specs.d.ts +1 -1183
- package/dist/orchestrator/loop/core-loop/phase-specs.d.ts.map +1 -1
- package/dist/orchestrator/loop/core-loop/phase-specs.js +1 -341
- package/dist/orchestrator/loop/core-loop/phase-specs.js.map +1 -1
- package/dist/orchestrator/loop/core-loop/preparation.d.ts +1 -58
- package/dist/orchestrator/loop/core-loop/preparation.d.ts.map +1 -1
- package/dist/orchestrator/loop/core-loop/preparation.js +1 -367
- package/dist/orchestrator/loop/core-loop/preparation.js.map +1 -1
- package/dist/orchestrator/loop/core-loop/public-research.d.ts +1 -31
- package/dist/orchestrator/loop/core-loop/public-research.d.ts.map +1 -1
- package/dist/orchestrator/loop/core-loop/public-research.js +1 -111
- package/dist/orchestrator/loop/core-loop/public-research.js.map +1 -1
- package/dist/orchestrator/loop/core-loop/task-cycle-stall.d.ts +1 -8
- package/dist/orchestrator/loop/core-loop/task-cycle-stall.d.ts.map +1 -1
- package/dist/orchestrator/loop/core-loop/task-cycle-stall.js +1 -432
- package/dist/orchestrator/loop/core-loop/task-cycle-stall.js.map +1 -1
- package/dist/orchestrator/loop/core-loop/task-cycle-wait.d.ts +1 -10
- package/dist/orchestrator/loop/core-loop/task-cycle-wait.d.ts.map +1 -1
- package/dist/orchestrator/loop/core-loop/task-cycle-wait.js +1 -175
- package/dist/orchestrator/loop/core-loop/task-cycle-wait.js.map +1 -1
- package/dist/orchestrator/loop/core-loop/task-cycle.d.ts +1 -40
- package/dist/orchestrator/loop/core-loop/task-cycle.d.ts.map +1 -1
- package/dist/orchestrator/loop/core-loop/task-cycle.js +1 -407
- package/dist/orchestrator/loop/core-loop/task-cycle.js.map +1 -1
- package/dist/orchestrator/loop/core-loop.d.ts +1 -85
- package/dist/orchestrator/loop/core-loop.d.ts.map +1 -1
- package/dist/orchestrator/loop/core-loop.js +3 -625
- package/dist/orchestrator/loop/core-loop.js.map +1 -1
- package/dist/orchestrator/loop/durable-loop/capability.d.ts +22 -0
- package/dist/orchestrator/loop/durable-loop/capability.d.ts.map +1 -0
- package/dist/orchestrator/loop/durable-loop/capability.js +151 -0
- package/dist/orchestrator/loop/durable-loop/capability.js.map +1 -0
- package/dist/orchestrator/loop/durable-loop/contracts.d.ts +319 -0
- package/dist/orchestrator/loop/durable-loop/contracts.d.ts.map +1 -0
- package/dist/orchestrator/loop/durable-loop/contracts.js +40 -0
- package/dist/orchestrator/loop/durable-loop/contracts.js.map +1 -0
- package/dist/orchestrator/loop/durable-loop/control.d.ts +27 -0
- package/dist/orchestrator/loop/durable-loop/control.d.ts.map +1 -0
- package/dist/orchestrator/loop/durable-loop/control.js +72 -0
- package/dist/orchestrator/loop/durable-loop/control.js.map +1 -0
- package/dist/orchestrator/loop/durable-loop/decision-engine.d.ts +79 -0
- package/dist/orchestrator/loop/durable-loop/decision-engine.d.ts.map +1 -0
- package/dist/orchestrator/loop/durable-loop/decision-engine.js +145 -0
- package/dist/orchestrator/loop/durable-loop/decision-engine.js.map +1 -0
- package/dist/orchestrator/loop/durable-loop/dream-review-checkpoint.d.ts +48 -0
- package/dist/orchestrator/loop/durable-loop/dream-review-checkpoint.d.ts.map +1 -0
- package/dist/orchestrator/loop/durable-loop/dream-review-checkpoint.js +386 -0
- package/dist/orchestrator/loop/durable-loop/dream-review-checkpoint.js.map +1 -0
- package/dist/orchestrator/loop/durable-loop/evidence-ledger.d.ts +22 -0
- package/dist/orchestrator/loop/durable-loop/evidence-ledger.d.ts.map +1 -0
- package/dist/orchestrator/loop/durable-loop/evidence-ledger.js +36 -0
- package/dist/orchestrator/loop/durable-loop/evidence-ledger.js.map +1 -0
- package/dist/orchestrator/loop/durable-loop/iteration-kernel-knowledge.d.ts +7 -0
- package/dist/orchestrator/loop/durable-loop/iteration-kernel-knowledge.d.ts.map +1 -0
- package/dist/orchestrator/loop/durable-loop/iteration-kernel-knowledge.js +43 -0
- package/dist/orchestrator/loop/durable-loop/iteration-kernel-knowledge.js.map +1 -0
- package/dist/orchestrator/loop/durable-loop/iteration-kernel-wait.d.ts +14 -0
- package/dist/orchestrator/loop/durable-loop/iteration-kernel-wait.d.ts.map +1 -0
- package/dist/orchestrator/loop/durable-loop/iteration-kernel-wait.js +41 -0
- package/dist/orchestrator/loop/durable-loop/iteration-kernel-wait.js.map +1 -0
- package/dist/orchestrator/loop/durable-loop/iteration-kernel.d.ts +37 -0
- package/dist/orchestrator/loop/durable-loop/iteration-kernel.d.ts.map +1 -0
- package/dist/orchestrator/loop/durable-loop/iteration-kernel.js +835 -0
- package/dist/orchestrator/loop/durable-loop/iteration-kernel.js.map +1 -0
- package/dist/orchestrator/loop/durable-loop/learning.d.ts +31 -0
- package/dist/orchestrator/loop/durable-loop/learning.d.ts.map +1 -0
- package/dist/orchestrator/loop/durable-loop/learning.js +92 -0
- package/dist/orchestrator/loop/durable-loop/learning.js.map +1 -0
- package/dist/orchestrator/loop/durable-loop/phase-policy.d.ts +20 -0
- package/dist/orchestrator/loop/durable-loop/phase-policy.d.ts.map +1 -0
- package/dist/orchestrator/loop/durable-loop/phase-policy.js +158 -0
- package/dist/orchestrator/loop/durable-loop/phase-policy.js.map +1 -0
- package/dist/orchestrator/loop/durable-loop/phase-runtime.d.ts +31 -0
- package/dist/orchestrator/loop/durable-loop/phase-runtime.d.ts.map +1 -0
- package/dist/orchestrator/loop/durable-loop/phase-runtime.js +103 -0
- package/dist/orchestrator/loop/durable-loop/phase-runtime.js.map +1 -0
- package/dist/orchestrator/loop/durable-loop/phase-specs.d.ts +1269 -0
- package/dist/orchestrator/loop/durable-loop/phase-specs.d.ts.map +1 -0
- package/dist/orchestrator/loop/durable-loop/phase-specs.js +349 -0
- package/dist/orchestrator/loop/durable-loop/phase-specs.js.map +1 -0
- package/dist/orchestrator/loop/durable-loop/preparation.d.ts +59 -0
- package/dist/orchestrator/loop/durable-loop/preparation.d.ts.map +1 -0
- package/dist/orchestrator/loop/durable-loop/preparation.js +368 -0
- package/dist/orchestrator/loop/durable-loop/preparation.js.map +1 -0
- package/dist/orchestrator/loop/durable-loop/public-research.d.ts +32 -0
- package/dist/orchestrator/loop/durable-loop/public-research.d.ts.map +1 -0
- package/dist/orchestrator/loop/durable-loop/public-research.js +112 -0
- package/dist/orchestrator/loop/durable-loop/public-research.js.map +1 -0
- package/dist/orchestrator/loop/durable-loop/task-cycle-stall.d.ts +9 -0
- package/dist/orchestrator/loop/durable-loop/task-cycle-stall.d.ts.map +1 -0
- package/dist/orchestrator/loop/durable-loop/task-cycle-stall.js +464 -0
- package/dist/orchestrator/loop/durable-loop/task-cycle-stall.js.map +1 -0
- package/dist/orchestrator/loop/durable-loop/task-cycle-wait.d.ts +11 -0
- package/dist/orchestrator/loop/durable-loop/task-cycle-wait.d.ts.map +1 -0
- package/dist/orchestrator/loop/durable-loop/task-cycle-wait.js +176 -0
- package/dist/orchestrator/loop/durable-loop/task-cycle-wait.js.map +1 -0
- package/dist/orchestrator/loop/durable-loop/task-cycle.d.ts +41 -0
- package/dist/orchestrator/loop/durable-loop/task-cycle.d.ts.map +1 -0
- package/dist/orchestrator/loop/durable-loop/task-cycle.js +430 -0
- package/dist/orchestrator/loop/durable-loop/task-cycle.js.map +1 -0
- package/dist/orchestrator/loop/durable-loop.d.ts +92 -0
- package/dist/orchestrator/loop/durable-loop.d.ts.map +1 -0
- package/dist/orchestrator/loop/durable-loop.js +631 -0
- package/dist/orchestrator/loop/durable-loop.js.map +1 -0
- package/dist/orchestrator/loop/loop-report-helper.d.ts +1 -1
- package/dist/orchestrator/loop/loop-report-helper.d.ts.map +1 -1
- package/dist/orchestrator/loop/loop-result-types.d.ts +1 -1
- package/dist/orchestrator/loop/loop-result-types.d.ts.map +1 -1
- package/dist/orchestrator/loop/parallel-dispatch.d.ts +2 -2
- package/dist/orchestrator/loop/parallel-dispatch.d.ts.map +1 -1
- package/dist/orchestrator/loop/post-loop-hooks.d.ts +1 -1
- package/dist/orchestrator/loop/post-loop-hooks.d.ts.map +1 -1
- package/dist/orchestrator/loop/run-policy.d.ts +1 -1
- package/dist/orchestrator/loop/run-policy.d.ts.map +1 -1
- package/dist/orchestrator/loop/tree-loop-runner.d.ts +1 -1
- package/dist/orchestrator/loop/tree-loop-runner.d.ts.map +1 -1
- package/dist/orchestrator/loop/tree-loop-runner.js +1 -1
- package/dist/orchestrator/loop/tree-loop-runner.js.map +1 -1
- package/dist/orchestrator/strategy/divergent-exploration.d.ts +2 -1
- package/dist/orchestrator/strategy/divergent-exploration.d.ts.map +1 -1
- package/dist/orchestrator/strategy/divergent-exploration.js +119 -36
- package/dist/orchestrator/strategy/divergent-exploration.js.map +1 -1
- package/dist/orchestrator/strategy/strategy-helpers.d.ts +86 -4
- package/dist/orchestrator/strategy/strategy-helpers.d.ts.map +1 -1
- package/dist/orchestrator/strategy/strategy-manager-base.d.ts +6 -2
- package/dist/orchestrator/strategy/strategy-manager-base.d.ts.map +1 -1
- package/dist/orchestrator/strategy/strategy-manager-base.js +71 -18
- package/dist/orchestrator/strategy/strategy-manager-base.js.map +1 -1
- package/dist/orchestrator/strategy/types/strategy.d.ts +450 -14
- package/dist/orchestrator/strategy/types/strategy.d.ts.map +1 -1
- package/dist/orchestrator/strategy/types/strategy.js +30 -0
- package/dist/orchestrator/strategy/types/strategy.js.map +1 -1
- package/dist/platform/code-search/contracts.d.ts +3 -0
- package/dist/platform/code-search/contracts.d.ts.map +1 -1
- package/dist/platform/code-search/contracts.js.map +1 -1
- package/dist/platform/code-search/indexes/indexer.d.ts.map +1 -1
- package/dist/platform/code-search/indexes/indexer.js +3 -0
- package/dist/platform/code-search/indexes/indexer.js.map +1 -1
- package/dist/platform/code-search/indexes/semantic-index.d.ts.map +1 -1
- package/dist/platform/code-search/indexes/semantic-index.js +3 -0
- package/dist/platform/code-search/indexes/semantic-index.js.map +1 -1
- package/dist/platform/code-search/orchestrator.d.ts.map +1 -1
- package/dist/platform/code-search/orchestrator.js +14 -3
- package/dist/platform/code-search/orchestrator.js.map +1 -1
- package/dist/platform/code-search/query-planner.d.ts.map +1 -1
- package/dist/platform/code-search/query-planner.js +1 -17
- package/dist/platform/code-search/query-planner.js.map +1 -1
- package/dist/platform/code-search/reranker.d.ts +5 -1
- package/dist/platform/code-search/reranker.d.ts.map +1 -1
- package/dist/platform/code-search/reranker.js +9 -5
- package/dist/platform/code-search/reranker.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 +161 -1
- package/dist/platform/dream/dream-activation.d.ts.map +1 -1
- package/dist/platform/dream/dream-activation.js +63 -14
- package/dist/platform/dream/dream-activation.js.map +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 +2 -2
- 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 +430 -18
- 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 +17 -17
- package/dist/platform/drive/stall-detector/repetitive.d.ts.map +1 -1
- package/dist/platform/drive/stall-detector/repetitive.js +50 -5
- package/dist/platform/drive/stall-detector/repetitive.js.map +1 -1
- package/dist/platform/drive/stall-detector.d.ts +19 -0
- package/dist/platform/drive/stall-detector.d.ts.map +1 -1
- package/dist/platform/drive/stall-detector.js.map +1 -1
- package/dist/platform/drive/types/stall.d.ts +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/transfer/knowledge-transfer-apply.d.ts.map +1 -1
- package/dist/platform/knowledge/transfer/knowledge-transfer-apply.js +7 -3
- package/dist/platform/knowledge/transfer/knowledge-transfer-apply.js.map +1 -1
- package/dist/platform/knowledge/types/agent-memory.d.ts +1176 -48
- 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/embedding.d.ts +4 -4
- package/dist/platform/knowledge/types/knowledge.d.ts +53 -0
- package/dist/platform/knowledge/types/knowledge.d.ts.map +1 -1
- package/dist/platform/knowledge/types/knowledge.js +15 -0
- package/dist/platform/knowledge/types/knowledge.js.map +1 -1
- package/dist/platform/knowledge/types/memory-lifecycle.d.ts +2 -2
- package/dist/platform/observation/capability-detector/types.d.ts +4 -4
- package/dist/platform/observation/context-provider/collector.d.ts +2 -0
- package/dist/platform/observation/context-provider/collector.d.ts.map +1 -1
- package/dist/platform/observation/context-provider/collector.js +27 -2
- package/dist/platform/observation/context-provider/collector.js.map +1 -1
- package/dist/platform/observation/context-provider.d.ts +4 -0
- package/dist/platform/observation/context-provider.d.ts.map +1 -1
- package/dist/platform/observation/context-provider.js.map +1 -1
- package/dist/platform/observation/engine/observe-datasource-stage.d.ts +3 -2
- package/dist/platform/observation/engine/observe-datasource-stage.d.ts.map +1 -1
- package/dist/platform/observation/engine/observe-datasource-stage.js +2 -2
- package/dist/platform/observation/engine/observe-datasource-stage.js.map +1 -1
- package/dist/platform/observation/observation-apply.d.ts +1 -1
- package/dist/platform/observation/observation-apply.d.ts.map +1 -1
- package/dist/platform/observation/observation-apply.js +3 -3
- package/dist/platform/observation/observation-apply.js.map +1 -1
- package/dist/platform/observation/observation-datasource.d.ts +2 -2
- package/dist/platform/observation/observation-datasource.d.ts.map +1 -1
- package/dist/platform/observation/observation-datasource.js +13 -7
- package/dist/platform/observation/observation-datasource.js.map +1 -1
- package/dist/platform/observation/observation-engine.d.ts +1 -1
- package/dist/platform/observation/observation-engine.d.ts.map +1 -1
- package/dist/platform/observation/observation-engine.js +8 -6
- package/dist/platform/observation/observation-engine.js.map +1 -1
- package/dist/platform/observation/types/capability.d.ts +16 -16
- package/dist/platform/observation/workspace-context.d.ts +8 -1
- package/dist/platform/observation/workspace-context.d.ts.map +1 -1
- package/dist/platform/observation/workspace-context.js +35 -14
- package/dist/platform/observation/workspace-context.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 +766 -106
- 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 +6 -6
- 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/traits/curiosity-engine.d.ts +5 -6
- 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 +8 -2
- package/dist/platform/traits/curiosity-proposals.d.ts.map +1 -1
- package/dist/platform/traits/curiosity-proposals.js +45 -20
- package/dist/platform/traits/curiosity-proposals.js.map +1 -1
- package/dist/platform/traits/curiosity-transfer.d.ts +9 -5
- package/dist/platform/traits/curiosity-transfer.d.ts.map +1 -1
- package/dist/platform/traits/curiosity-transfer.js +4 -1
- package/dist/platform/traits/curiosity-transfer.js.map +1 -1
- package/dist/platform/traits/ethics-gate.d.ts +16 -17
- package/dist/platform/traits/ethics-gate.d.ts.map +1 -1
- package/dist/platform/traits/ethics-gate.js +83 -47
- package/dist/platform/traits/ethics-gate.js.map +1 -1
- package/dist/platform/traits/ethics-rules.d.ts +4 -6
- package/dist/platform/traits/ethics-rules.d.ts.map +1 -1
- package/dist/platform/traits/ethics-rules.js +19 -261
- package/dist/platform/traits/ethics-rules.js.map +1 -1
- package/dist/platform/traits/types/curiosity.d.ts +157 -10
- package/dist/platform/traits/types/curiosity.d.ts.map +1 -1
- package/dist/platform/traits/types/curiosity.js +10 -0
- package/dist/platform/traits/types/curiosity.js.map +1 -1
- package/dist/platform/traits/types/guardrail.d.ts +6 -6
- package/dist/prompt/purposes/curiosity.d.ts +4 -4
- 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/runtime/approval-broker.d.ts +33 -0
- package/dist/runtime/approval-broker.d.ts.map +1 -1
- package/dist/runtime/approval-broker.js +155 -17
- package/dist/runtime/approval-broker.js.map +1 -1
- package/dist/runtime/companion-policy.d.ts +27 -0
- package/dist/runtime/companion-policy.d.ts.map +1 -0
- package/dist/runtime/companion-policy.js +135 -0
- package/dist/runtime/companion-policy.js.map +1 -0
- package/dist/runtime/confirmation-decision.d.ts +2 -2
- package/dist/runtime/control/daemon-runtime-control-executor.d.ts +0 -6
- package/dist/runtime/control/daemon-runtime-control-executor.d.ts.map +1 -1
- package/dist/runtime/control/daemon-runtime-control-executor.js +1 -1
- package/dist/runtime/control/daemon-runtime-control-executor.js.map +1 -1
- package/dist/runtime/control/index.d.ts +6 -3
- package/dist/runtime/control/index.d.ts.map +1 -1
- package/dist/runtime/control/index.js +2 -1
- package/dist/runtime/control/index.js.map +1 -1
- package/dist/runtime/control/runtime-control-intent.d.ts +16 -1
- package/dist/runtime/control/runtime-control-intent.d.ts.map +1 -1
- package/dist/runtime/control/runtime-control-intent.js +26 -13
- package/dist/runtime/control/runtime-control-intent.js.map +1 -1
- package/dist/runtime/control/runtime-control-service.d.ts +1 -1
- package/dist/runtime/control/runtime-control-service.d.ts.map +1 -1
- package/dist/runtime/control/runtime-control-service.js +29 -64
- package/dist/runtime/control/runtime-control-service.js.map +1 -1
- package/dist/runtime/control/runtime-target-resolver.d.ts +39 -0
- package/dist/runtime/control/runtime-target-resolver.d.ts.map +1 -0
- package/dist/runtime/control/runtime-target-resolver.js +112 -0
- package/dist/runtime/control/runtime-target-resolver.js.map +1 -0
- package/dist/runtime/conversational-approval-decision.d.ts +29 -0
- package/dist/runtime/conversational-approval-decision.d.ts.map +1 -0
- package/dist/runtime/conversational-approval-decision.js +92 -0
- package/dist/runtime/conversational-approval-decision.js.map +1 -0
- package/dist/runtime/daemon/client.d.ts +1 -4
- package/dist/runtime/daemon/client.d.ts.map +1 -1
- package/dist/runtime/daemon/client.js +0 -3
- package/dist/runtime/daemon/client.js.map +1 -1
- package/dist/runtime/daemon/control-contracts.d.ts +7 -0
- package/dist/runtime/daemon/control-contracts.d.ts.map +1 -0
- package/dist/runtime/daemon/control-contracts.js +2 -0
- package/dist/runtime/daemon/control-contracts.js.map +1 -0
- 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-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.js +1 -1
- package/dist/runtime/daemon/runner-startup.js.map +1 -1
- package/dist/runtime/daemon/runner.d.ts +1 -1
- package/dist/runtime/daemon/runner.d.ts.map +1 -1
- package/dist/runtime/daemon/runtime-ownership.d.ts.map +1 -1
- package/dist/runtime/daemon/runtime-ownership.js +2 -0
- package/dist/runtime/daemon/runtime-ownership.js.map +1 -1
- package/dist/runtime/dream-sidecar-review.d.ts +2 -1
- package/dist/runtime/dream-sidecar-review.d.ts.map +1 -1
- package/dist/runtime/dream-sidecar-review.js +49 -55
- package/dist/runtime/dream-sidecar-review.js.map +1 -1
- package/dist/runtime/executor/goal-worker.d.ts +3 -3
- package/dist/runtime/executor/goal-worker.d.ts.map +1 -1
- package/dist/runtime/executor/loop-supervisor.d.ts +2 -2
- package/dist/runtime/executor/loop-supervisor.d.ts.map +1 -1
- package/dist/runtime/executor/loop-supervisor.js +2 -2
- package/dist/runtime/executor/loop-supervisor.js.map +1 -1
- package/dist/runtime/gateway/channel-adapter.d.ts +19 -0
- package/dist/runtime/gateway/channel-adapter.d.ts.map +1 -1
- package/dist/runtime/gateway/channel-policy.d.ts +1 -0
- package/dist/runtime/gateway/channel-policy.d.ts.map +1 -1
- package/dist/runtime/gateway/channel-policy.js +6 -4
- package/dist/runtime/gateway/channel-policy.js.map +1 -1
- package/dist/runtime/gateway/chat-event-rendering.d.ts +34 -0
- package/dist/runtime/gateway/chat-event-rendering.d.ts.map +1 -0
- package/dist/runtime/gateway/chat-event-rendering.js +61 -0
- package/dist/runtime/gateway/chat-event-rendering.js.map +1 -0
- package/dist/runtime/gateway/chat-session-dispatch.d.ts +2 -13
- package/dist/runtime/gateway/chat-session-dispatch.d.ts.map +1 -1
- package/dist/runtime/gateway/chat-session-dispatch.js +6 -3
- package/dist/runtime/gateway/chat-session-dispatch.js.map +1 -1
- package/dist/runtime/gateway/chat-session-port.d.ts +25 -0
- package/dist/runtime/gateway/chat-session-port.d.ts.map +1 -0
- package/dist/runtime/gateway/chat-session-port.js +20 -0
- package/dist/runtime/gateway/chat-session-port.js.map +1 -0
- package/dist/runtime/gateway/discord-gateway-adapter.d.ts +3 -1
- package/dist/runtime/gateway/discord-gateway-adapter.d.ts.map +1 -1
- package/dist/runtime/gateway/discord-gateway-adapter.js +34 -2
- package/dist/runtime/gateway/discord-gateway-adapter.js.map +1 -1
- package/dist/runtime/gateway/index.d.ts +2 -0
- package/dist/runtime/gateway/index.d.ts.map +1 -1
- package/dist/runtime/gateway/index.js +1 -0
- package/dist/runtime/gateway/index.js.map +1 -1
- package/dist/runtime/gateway/ingress-gateway.d.ts.map +1 -1
- package/dist/runtime/gateway/ingress-gateway.js +1 -0
- package/dist/runtime/gateway/ingress-gateway.js.map +1 -1
- package/dist/runtime/gateway/signal-gateway-adapter.d.ts +2 -1
- package/dist/runtime/gateway/signal-gateway-adapter.d.ts.map +1 -1
- package/dist/runtime/gateway/signal-gateway-adapter.js +13 -3
- package/dist/runtime/gateway/signal-gateway-adapter.js.map +1 -1
- package/dist/runtime/gateway/slack-channel-adapter.d.ts +2 -1
- package/dist/runtime/gateway/slack-channel-adapter.d.ts.map +1 -1
- package/dist/runtime/gateway/slack-channel-adapter.js +6 -2
- package/dist/runtime/gateway/slack-channel-adapter.js.map +1 -1
- package/dist/runtime/gateway/telegram-gateway-adapter.d.ts +9 -2
- package/dist/runtime/gateway/telegram-gateway-adapter.d.ts.map +1 -1
- package/dist/runtime/gateway/telegram-gateway-adapter.js +142 -13
- package/dist/runtime/gateway/telegram-gateway-adapter.js.map +1 -1
- package/dist/runtime/gateway/typing-indicator.d.ts +11 -0
- package/dist/runtime/gateway/typing-indicator.d.ts.map +1 -0
- package/dist/runtime/gateway/typing-indicator.js +68 -0
- package/dist/runtime/gateway/typing-indicator.js.map +1 -0
- package/dist/runtime/gateway/whatsapp-gateway-adapter.d.ts +2 -1
- package/dist/runtime/gateway/whatsapp-gateway-adapter.d.ts.map +1 -1
- package/dist/runtime/gateway/whatsapp-gateway-adapter.js +22 -8
- package/dist/runtime/gateway/whatsapp-gateway-adapter.js.map +1 -1
- package/dist/runtime/gateway/ws-channel-adapter.d.ts.map +1 -1
- package/dist/runtime/gateway/ws-channel-adapter.js +1 -0
- package/dist/runtime/gateway/ws-channel-adapter.js.map +1 -1
- package/dist/runtime/interactive-automation/failure-classifier.d.ts +0 -1
- package/dist/runtime/interactive-automation/failure-classifier.d.ts.map +1 -1
- package/dist/runtime/interactive-automation/failure-classifier.js +0 -19
- package/dist/runtime/interactive-automation/failure-classifier.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 +30 -1
- package/dist/runtime/interactive-automation/providers/manus-browser.js.map +1 -1
- package/dist/runtime/logger.d.ts.map +1 -1
- package/dist/runtime/logger.js +5 -2
- package/dist/runtime/logger.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 +9 -4
- package/dist/runtime/plugin-loader.js.map +1 -1
- package/dist/runtime/run-spec/derive.d.ts +24 -24
- package/dist/runtime/run-spec/derive.d.ts.map +1 -1
- package/dist/runtime/run-spec/derive.js +6 -0
- package/dist/runtime/run-spec/derive.js.map +1 -1
- package/dist/runtime/run-spec/handoff.d.ts +74 -0
- package/dist/runtime/run-spec/handoff.d.ts.map +1 -0
- package/dist/runtime/run-spec/handoff.js +496 -0
- package/dist/runtime/run-spec/handoff.js.map +1 -0
- package/dist/runtime/run-spec/index.d.ts +2 -0
- package/dist/runtime/run-spec/index.d.ts.map +1 -1
- package/dist/runtime/run-spec/index.js +2 -0
- package/dist/runtime/run-spec/index.js.map +1 -1
- package/dist/runtime/run-spec/pending-dialogue-arbiter.d.ts +25 -0
- package/dist/runtime/run-spec/pending-dialogue-arbiter.d.ts.map +1 -0
- package/dist/runtime/run-spec/pending-dialogue-arbiter.js +81 -0
- package/dist/runtime/run-spec/pending-dialogue-arbiter.js.map +1 -0
- package/dist/runtime/run-spec/types.d.ts +91 -42
- package/dist/runtime/run-spec/types.d.ts.map +1 -1
- package/dist/runtime/run-spec/types.js +7 -0
- package/dist/runtime/run-spec/types.js.map +1 -1
- package/dist/runtime/schedule/engine-execution.js +2 -35
- package/dist/runtime/schedule/engine-execution.js.map +1 -1
- package/dist/runtime/schedule/history.d.ts +2 -2
- package/dist/runtime/schedule/presets.d.ts +4 -4
- package/dist/runtime/schedule/source.d.ts +1 -1
- package/dist/runtime/session-registry/registry.d.ts.map +1 -1
- package/dist/runtime/session-registry/registry.js +27 -2
- package/dist/runtime/session-registry/registry.js.map +1 -1
- package/dist/runtime/session-registry/types.d.ts +120 -112
- package/dist/runtime/session-registry/types.d.ts.map +1 -1
- package/dist/runtime/session-registry/types.js +1 -0
- package/dist/runtime/session-registry/types.js.map +1 -1
- package/dist/runtime/store/artifact-retention.d.ts +11 -6
- package/dist/runtime/store/artifact-retention.d.ts.map +1 -1
- package/dist/runtime/store/artifact-retention.js +0 -13
- package/dist/runtime/store/artifact-retention.js.map +1 -1
- 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 +8 -8
- package/dist/runtime/store/dream-checkpoints.d.ts +4 -1
- package/dist/runtime/store/dream-checkpoints.d.ts.map +1 -1
- package/dist/runtime/store/dream-checkpoints.js +2 -0
- package/dist/runtime/store/dream-checkpoints.js.map +1 -1
- package/dist/runtime/store/evaluator-results.d.ts +1 -1
- package/dist/runtime/store/evaluator-results.d.ts.map +1 -1
- package/dist/runtime/store/evidence-ledger.d.ts +57 -5118
- package/dist/runtime/store/evidence-ledger.d.ts.map +1 -1
- package/dist/runtime/store/evidence-ledger.js +676 -497
- package/dist/runtime/store/evidence-ledger.js.map +1 -1
- package/dist/runtime/store/evidence-types.d.ts +6378 -0
- package/dist/runtime/store/evidence-types.d.ts.map +1 -0
- package/dist/runtime/store/evidence-types.js +459 -0
- package/dist/runtime/store/evidence-types.js.map +1 -0
- package/dist/runtime/store/experiment-queue-store.d.ts +109 -109
- package/dist/runtime/store/experiment-queue-store.d.ts.map +1 -1
- package/dist/runtime/store/experiment-queue-store.js +1 -1
- package/dist/runtime/store/experiment-queue-store.js.map +1 -1
- package/dist/runtime/store/index.d.ts +6 -4
- package/dist/runtime/store/index.d.ts.map +1 -1
- package/dist/runtime/store/index.js +3 -2
- package/dist/runtime/store/index.js.map +1 -1
- package/dist/runtime/store/metric-history.d.ts +1 -1
- package/dist/runtime/store/metric-history.d.ts.map +1 -1
- package/dist/runtime/store/operator-handoff-store.d.ts +12 -12
- package/dist/runtime/store/postmortem-report.d.ts +38 -38
- package/dist/runtime/store/postmortem-report.js.map +1 -1
- 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 +27 -27
- package/dist/runtime/store/reproducibility-manifest.d.ts.map +1 -1
- package/dist/runtime/store/reproducibility-manifest.js.map +1 -1
- package/dist/runtime/store/research-evidence.d.ts +1 -1
- package/dist/runtime/store/research-evidence.d.ts.map +1 -1
- package/dist/runtime/store/runtime-operation-schemas.d.ts +46 -46
- package/dist/runtime/store/runtime-paths.d.ts +2 -0
- package/dist/runtime/store/runtime-paths.d.ts.map +1 -1
- package/dist/runtime/store/runtime-paths.js +4 -0
- package/dist/runtime/store/runtime-paths.js.map +1 -1
- package/dist/runtime/store/runtime-schemas.d.ts +73 -12
- package/dist/runtime/store/runtime-schemas.d.ts.map +1 -1
- package/dist/runtime/store/runtime-schemas.js +9 -0
- package/dist/runtime/store/runtime-schemas.js.map +1 -1
- package/dist/runtime/types/companion.d.ts +394 -0
- package/dist/runtime/types/companion.d.ts.map +1 -0
- package/dist/runtime/types/companion.js +87 -0
- package/dist/runtime/types/companion.js.map +1 -0
- package/dist/runtime/types/daemon.d.ts +11 -3
- package/dist/runtime/types/daemon.d.ts.map +1 -1
- package/dist/runtime/types/daemon.js +1 -0
- package/dist/runtime/types/daemon.js.map +1 -1
- package/dist/runtime/types/hook.d.ts +12 -12
- 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 +42 -42
- package/dist/tools/builtin/exports.d.ts +3 -0
- package/dist/tools/builtin/exports.d.ts.map +1 -1
- package/dist/tools/builtin/exports.js +3 -0
- package/dist/tools/builtin/exports.js.map +1 -1
- package/dist/tools/builtin/factory.d.ts +10 -1
- package/dist/tools/builtin/factory.d.ts.map +1 -1
- package/dist/tools/builtin/factory.js +20 -2
- 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/executor.d.ts.map +1 -1
- package/dist/tools/executor.js +8 -6
- package/dist/tools/executor.js.map +1 -1
- package/dist/tools/fs/ApplyPatchTool/ApplyPatchTool.d.ts.map +1 -1
- package/dist/tools/fs/ApplyPatchTool/ApplyPatchTool.js +38 -4
- package/dist/tools/fs/ApplyPatchTool/ApplyPatchTool.js.map +1 -1
- package/dist/tools/fs/FileEditTool/FileEditTool.d.ts.map +1 -1
- package/dist/tools/fs/FileEditTool/FileEditTool.js +1 -0
- package/dist/tools/fs/FileEditTool/FileEditTool.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/fs/FileWriteTool/FileWriteTool.d.ts.map +1 -1
- package/dist/tools/fs/FileWriteTool/FileWriteTool.js +1 -0
- package/dist/tools/fs/FileWriteTool/FileWriteTool.js.map +1 -1
- package/dist/tools/fs/GlobTool/GlobTool.d.ts.map +1 -1
- package/dist/tools/fs/GlobTool/GlobTool.js +1 -0
- package/dist/tools/fs/GlobTool/GlobTool.js.map +1 -1
- package/dist/tools/fs/GrepTool/GrepTool.d.ts.map +1 -1
- package/dist/tools/fs/GrepTool/GrepTool.js +1 -0
- package/dist/tools/fs/GrepTool/GrepTool.js.map +1 -1
- package/dist/tools/fs/JsonQueryTool/JsonQueryTool.d.ts.map +1 -1
- package/dist/tools/fs/JsonQueryTool/JsonQueryTool.js +1 -0
- package/dist/tools/fs/JsonQueryTool/JsonQueryTool.js.map +1 -1
- package/dist/tools/fs/ListDirTool/ListDirTool.d.ts.map +1 -1
- package/dist/tools/fs/ListDirTool/ListDirTool.js +1 -0
- package/dist/tools/fs/ListDirTool/ListDirTool.js.map +1 -1
- package/dist/tools/fs/ReadTool/ReadTool.d.ts.map +1 -1
- package/dist/tools/fs/ReadTool/ReadTool.js +1 -0
- package/dist/tools/fs/ReadTool/ReadTool.js.map +1 -1
- package/dist/tools/kaggle/KaggleSubmissionTools.d.ts +4 -4
- package/dist/tools/kaggle/metrics.d.ts +4 -4
- package/dist/tools/mutation/TaskCreateTool/TaskCreateTool.d.ts +4 -4
- package/dist/tools/mutation/TaskUpdateTool/TaskUpdateTool.d.ts +4 -4
- package/dist/tools/network/GitHubCliTool/GitHubCliTool.d.ts +8 -8
- package/dist/tools/network/HttpFetchTool/HttpFetchTool.d.ts.map +1 -1
- package/dist/tools/network/HttpFetchTool/HttpFetchTool.js +1 -0
- package/dist/tools/network/HttpFetchTool/HttpFetchTool.js.map +1 -1
- package/dist/tools/network/WebSearchTool/WebSearchTool.d.ts.map +1 -1
- package/dist/tools/network/WebSearchTool/WebSearchTool.js +1 -0
- package/dist/tools/network/WebSearchTool/WebSearchTool.js.map +1 -1
- package/dist/tools/query/ArchitectureTool/ArchitectureTool.js +3 -3
- package/dist/tools/query/ArchitectureTool/ArchitectureTool.js.map +1 -1
- package/dist/tools/query/CodeReadContextTool/CodeReadContextTool.d.ts +20 -20
- package/dist/tools/query/CodeReadContextTool/CodeReadContextTool.d.ts.map +1 -1
- package/dist/tools/query/CodeReadContextTool/CodeReadContextTool.js +1 -0
- package/dist/tools/query/CodeReadContextTool/CodeReadContextTool.js.map +1 -1
- package/dist/tools/query/CodeSearchRepairTool/CodeSearchRepairTool.d.ts.map +1 -1
- package/dist/tools/query/CodeSearchRepairTool/CodeSearchRepairTool.js +1 -0
- package/dist/tools/query/CodeSearchRepairTool/CodeSearchRepairTool.js.map +1 -1
- package/dist/tools/query/CodeSearchTool/CodeSearchTool.d.ts.map +1 -1
- package/dist/tools/query/CodeSearchTool/CodeSearchTool.js +1 -0
- package/dist/tools/query/CodeSearchTool/CodeSearchTool.js.map +1 -1
- package/dist/tools/query/KnowledgeQueryTool/KnowledgeQueryTool.d.ts.map +1 -1
- package/dist/tools/query/KnowledgeQueryTool/KnowledgeQueryTool.js +1 -0
- package/dist/tools/query/KnowledgeQueryTool/KnowledgeQueryTool.js.map +1 -1
- package/dist/tools/query/MemoryRecallTool/MemoryRecallTool.d.ts +16 -4
- 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/SkillSearchTool/SkillSearchTool.d.ts.map +1 -1
- package/dist/tools/query/SkillSearchTool/SkillSearchTool.js +1 -0
- package/dist/tools/query/SkillSearchTool/SkillSearchTool.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/ToolSearchTool/ToolSearchTool.d.ts.map +1 -1
- package/dist/tools/query/ToolSearchTool/ToolSearchTool.js +1 -0
- package/dist/tools/query/ToolSearchTool/ToolSearchTool.js.map +1 -1
- package/dist/tools/runtime/LongRunningRuntimeTools.d.ts +32 -32
- package/dist/tools/runtime/RunSpecHandoffTools.d.ts +12 -0
- package/dist/tools/runtime/RunSpecHandoffTools.d.ts.map +1 -0
- package/dist/tools/runtime/RunSpecHandoffTools.js +224 -0
- package/dist/tools/runtime/RunSpecHandoffTools.js.map +1 -0
- package/dist/tools/runtime/SetupRuntimeControlTools.d.ts +11 -0
- package/dist/tools/runtime/SetupRuntimeControlTools.d.ts.map +1 -0
- package/dist/tools/runtime/SetupRuntimeControlTools.js +463 -0
- package/dist/tools/runtime/SetupRuntimeControlTools.js.map +1 -0
- package/dist/tools/schedule/CreateScheduleTool/CreateScheduleTool.d.ts +28 -28
- package/dist/tools/schedule/UpdateScheduleTool/UpdateScheduleTool.d.ts +32 -32
- package/dist/tools/system/GitDiffTool/GitDiffTool.d.ts.map +1 -1
- package/dist/tools/system/GitDiffTool/GitDiffTool.js +1 -0
- package/dist/tools/system/GitDiffTool/GitDiffTool.js.map +1 -1
- package/dist/tools/system/GitLogTool/GitLogTool.d.ts.map +1 -1
- package/dist/tools/system/GitLogTool/GitLogTool.js +1 -0
- package/dist/tools/system/GitLogTool/GitLogTool.js.map +1 -1
- package/dist/tools/system/ShellTool/ShellTool.d.ts.map +1 -1
- package/dist/tools/system/ShellTool/ShellTool.js +2 -1
- package/dist/tools/system/ShellTool/ShellTool.js.map +1 -1
- package/dist/tools/system/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.map +1 -1
- package/dist/tools/system/TestRunnerTool/TestRunnerTool.js +1 -0
- package/dist/tools/system/TestRunnerTool/TestRunnerTool.js.map +1 -1
- package/dist/tools/system/UpdatePlanTool/UpdatePlanTool.d.ts.map +1 -1
- package/dist/tools/system/UpdatePlanTool/UpdatePlanTool.js +1 -0
- package/dist/tools/system/UpdatePlanTool/UpdatePlanTool.js.map +1 -1
- package/dist/tools/types.d.ts +62 -2
- package/dist/tools/types.d.ts.map +1 -1
- package/dist/tools/types.js +25 -0
- package/dist/tools/types.js.map +1 -1
- package/package.json +4 -2
- package/dist/interface/tui/approval-overlay.d.ts +0 -8
- package/dist/interface/tui/approval-overlay.d.ts.map +0 -1
- package/dist/interface/tui/approval-overlay.js +0 -21
- package/dist/interface/tui/approval-overlay.js.map +0 -1
|
@@ -1,319 +1,2 @@
|
|
|
1
|
-
|
|
2
|
-
import type { IterationBudget } from "../iteration-budget.js";
|
|
3
|
-
import type { Logger } from "../../../runtime/logger.js";
|
|
4
|
-
import type { StrategyTemplateRegistry } from "../../strategy/strategy-template-registry.js";
|
|
5
|
-
import type { TrustManager } from "../../../platform/traits/trust-manager.js";
|
|
6
|
-
import type { KnowledgeTransfer } from "../../../platform/knowledge/transfer/knowledge-transfer.js";
|
|
7
|
-
import type { CrossGoalPortfolio } from "../../strategy/cross-goal-portfolio.js";
|
|
8
|
-
import type { GoalTreeManager } from "../../goal/goal-tree-manager.js";
|
|
9
|
-
import type { StateAggregator } from "../../goal/state-aggregator.js";
|
|
10
|
-
import type { TreeLoopOrchestrator } from "../../goal/tree-loop-orchestrator.js";
|
|
11
|
-
import type { StateManager } from "../../../base/state/state-manager.js";
|
|
12
|
-
import type { ObservationEngine } from "../../../platform/observation/observation-engine.js";
|
|
13
|
-
import type { TaskLifecycle } from "../../execution/task/task-lifecycle.js";
|
|
14
|
-
import type { SatisficingJudge } from "../../../platform/drive/satisficing-judge.js";
|
|
15
|
-
import type { StallDetector } from "../../../platform/drive/stall-detector.js";
|
|
16
|
-
import type { StrategyManager } from "../../strategy/strategy-manager.js";
|
|
17
|
-
import type { DriveSystem } from "../../../platform/drive/drive-system.js";
|
|
18
|
-
import type { AdapterRegistry } from "../../execution/adapter-layer.js";
|
|
19
|
-
import type { KnowledgeManager } from "../../../platform/knowledge/knowledge-manager.js";
|
|
20
|
-
import type { CapabilityDetector } from "../../../platform/observation/capability-detector.js";
|
|
21
|
-
import type { PortfolioManager } from "../../strategy/portfolio-manager.js";
|
|
22
|
-
import type { GoalDependencyGraph } from "../../goal/goal-dependency-graph.js";
|
|
23
|
-
import type { LearningPipeline } from "../../../platform/knowledge/learning/learning-pipeline.js";
|
|
24
|
-
import type { DriveScoreAdapter, MemoryLifecycleManager } from "../../../platform/knowledge/memory/memory-lifecycle.js";
|
|
25
|
-
import type { ParallelExecutor } from "../../execution/parallel-executor.js";
|
|
26
|
-
import type { GoalRefiner } from "../../goal/goal-refiner.js";
|
|
27
|
-
import type { Goal } from "../../../base/types/goal.js";
|
|
28
|
-
import type { GapVector } from "../../../base/types/gap.js";
|
|
29
|
-
import type { DriveContext, DriveScore } from "../../../base/types/drive.js";
|
|
30
|
-
import type { VerificationFileDiff } from "../../../base/types/task.js";
|
|
31
|
-
import type { ToolExecutor } from "../../../tools/executor.js";
|
|
32
|
-
import type { ToolRegistry } from "../../../tools/registry.js";
|
|
33
|
-
import type { CorePhaseRunner } from "../../execution/agent-loop/core-phase-runner.js";
|
|
34
|
-
import type { CorePhasePolicyRegistry } from "./phase-policy.js";
|
|
35
|
-
import type { CoreDecisionEngine } from "./decision-engine.js";
|
|
36
|
-
import type { RuntimeEvidenceLedgerPort } from "../../../runtime/store/evidence-ledger.js";
|
|
37
|
-
import type { RuntimeBudgetLimitInput, RuntimeBudgetStore } from "../../../runtime/store/budget-store.js";
|
|
38
|
-
import type { RuntimeOperatorHandoffStore } from "../../../runtime/store/operator-handoff-store.js";
|
|
39
|
-
import type { RuntimePostmortemReportStore } from "../../../runtime/store/postmortem-report.js";
|
|
40
|
-
import type { DeadlineFinalizationStatus } from "../../../platform/time/deadline-finalization.js";
|
|
41
|
-
import type { ExecutionModeState } from "../../../platform/time/execution-mode.js";
|
|
42
|
-
export type { LoopIterationResult, LoopResult, } from "../loop-result-types.js";
|
|
43
|
-
export { makeEmptyIterationResult } from "../loop-result-types.js";
|
|
44
|
-
export interface GapCalculatorModule {
|
|
45
|
-
calculateGapVector: (goalId: string, dimensions: Goal["dimensions"], globalUncertaintyWeight?: number) => GapVector;
|
|
46
|
-
aggregateGaps: (childGaps: number[], method?: "max" | "weighted_avg" | "sum", weights?: number[]) => number;
|
|
47
|
-
}
|
|
48
|
-
export interface DriveScorerModule {
|
|
49
|
-
scoreAllDimensions: (gapVector: GapVector, context: DriveContext, config?: unknown) => DriveScore[];
|
|
50
|
-
rankDimensions: (scores: DriveScore[]) => DriveScore[];
|
|
51
|
-
}
|
|
52
|
-
export interface ExecutionSummaryParams {
|
|
53
|
-
goalId: string;
|
|
54
|
-
loopIndex: number;
|
|
55
|
-
observation: {
|
|
56
|
-
dimensionName: string;
|
|
57
|
-
progress: number;
|
|
58
|
-
confidence: number;
|
|
59
|
-
}[];
|
|
60
|
-
gapAggregate: number;
|
|
61
|
-
taskResult: {
|
|
62
|
-
taskId: string;
|
|
63
|
-
action: string;
|
|
64
|
-
dimension: string;
|
|
65
|
-
verificationDiffs?: VerificationFileDiff[];
|
|
66
|
-
} | null;
|
|
67
|
-
stallDetected: boolean;
|
|
68
|
-
pivotOccurred: boolean;
|
|
69
|
-
elapsedMs: number;
|
|
70
|
-
waitStatus?: {
|
|
71
|
-
strategyId?: string;
|
|
72
|
-
status: string;
|
|
73
|
-
details?: string;
|
|
74
|
-
approvalId?: string;
|
|
75
|
-
observeOnly?: boolean;
|
|
76
|
-
suppressed?: boolean;
|
|
77
|
-
expired?: boolean;
|
|
78
|
-
skipReason?: string;
|
|
79
|
-
};
|
|
80
|
-
finalizationStatus?: DeadlineFinalizationStatus;
|
|
81
|
-
executionMode?: ExecutionModeState;
|
|
82
|
-
}
|
|
83
|
-
export interface ReportingEngine {
|
|
84
|
-
generateExecutionSummary(params: ExecutionSummaryParams): unknown;
|
|
85
|
-
saveReport(report: unknown): void;
|
|
86
|
-
}
|
|
87
|
-
export interface WaitApprovalBroker {
|
|
88
|
-
requestApproval(goalId: string, task: {
|
|
89
|
-
id: string;
|
|
90
|
-
description: string;
|
|
91
|
-
action: string;
|
|
92
|
-
}, timeoutMs?: number, approvalId?: string): Promise<boolean>;
|
|
93
|
-
}
|
|
94
|
-
/**
|
|
95
|
-
* LoopConfig with all required fields resolved (except iterationBudget which remains optional).
|
|
96
|
-
* Used as the internal config type throughout CoreLoop and its sub-modules.
|
|
97
|
-
*/
|
|
98
|
-
export type LoopRunPolicyMode = "bounded" | "resident";
|
|
99
|
-
export interface LoopRunPolicy {
|
|
100
|
-
mode: LoopRunPolicyMode;
|
|
101
|
-
maxIterations: number | null;
|
|
102
|
-
}
|
|
103
|
-
export type LoopRunPolicyInput = LoopRunPolicyMode | Partial<LoopRunPolicy>;
|
|
104
|
-
export type ResolvedLoopConfig = Required<Omit<LoopConfig, "iterationBudget" | "runPolicy" | "maxIterations" | "runtimeBudget">> & Pick<LoopConfig, "iterationBudget" | "runtimeBudget"> & {
|
|
105
|
-
maxIterations: number | null;
|
|
106
|
-
runPolicy?: LoopRunPolicy;
|
|
107
|
-
};
|
|
108
|
-
export interface RuntimeBudgetConfig {
|
|
109
|
-
budgetId?: string;
|
|
110
|
-
title?: string;
|
|
111
|
-
limits?: RuntimeBudgetLimitInput[];
|
|
112
|
-
}
|
|
113
|
-
export interface LoopConfig {
|
|
114
|
-
maxIterations?: number | null;
|
|
115
|
-
/**
|
|
116
|
-
* Bounded runs use maxIterations as a lifecycle cap. Resident runs use
|
|
117
|
-
* iteration count only as telemetry/checkpoint metadata and continue until
|
|
118
|
-
* completion, stall, explicit stop/pause, error policy, or another lifecycle
|
|
119
|
-
* controller stops them.
|
|
120
|
-
*/
|
|
121
|
-
runPolicy?: LoopRunPolicyInput;
|
|
122
|
-
maxConsecutiveErrors?: number;
|
|
123
|
-
delayBetweenLoopsMs?: number;
|
|
124
|
-
adapterType?: string;
|
|
125
|
-
treeMode?: boolean;
|
|
126
|
-
multiGoalMode?: boolean;
|
|
127
|
-
goalIds?: string[];
|
|
128
|
-
/**
|
|
129
|
-
* Minimum number of iterations to run before the loop can exit on completion.
|
|
130
|
-
* Default: 1 (at least one full task cycle always runs before declaring complete).
|
|
131
|
-
* Setting to 2 forces two full iterations even if the goal is already satisfied after iteration 1.
|
|
132
|
-
*/
|
|
133
|
-
minIterations?: number;
|
|
134
|
-
/**
|
|
135
|
-
* Whether to automatically archive a completed goal at the end of run().
|
|
136
|
-
* Default: false — archiving is an irreversible action and should be triggered explicitly
|
|
137
|
-
* (e.g. via `pulseed goal archive <id>` CLI command or by setting this flag intentionally).
|
|
138
|
-
*/
|
|
139
|
-
autoArchive?: boolean;
|
|
140
|
-
/**
|
|
141
|
-
* When true, suppress loop-level persistence side effects: checkpoint writes,
|
|
142
|
-
* final goal status updates, and archive operations.
|
|
143
|
-
*/
|
|
144
|
-
dryRun?: boolean;
|
|
145
|
-
/**
|
|
146
|
-
* Maximum number of consecutive iterations that can be skipped due to no state change
|
|
147
|
-
* (Pillar 2: State Diff + Loop Skip). After this many consecutive skips, the full loop
|
|
148
|
-
* runs regardless so stall detection can fire. Default: 5.
|
|
149
|
-
*/
|
|
150
|
-
maxConsecutiveSkips?: number;
|
|
151
|
-
/**
|
|
152
|
-
* When true (default), automatically decompose an abstract goal into sub-goals
|
|
153
|
-
* using TreeLoopOrchestrator.ensureGoalRefined() before the first iteration.
|
|
154
|
-
* Set to false to disable auto-decomposition.
|
|
155
|
-
*/
|
|
156
|
-
autoDecompose?: boolean;
|
|
157
|
-
/**
|
|
158
|
-
* Shared iteration budget for parent-child agent trees.
|
|
159
|
-
* When set, all iterations (including child node iterations in tree mode) consume
|
|
160
|
-
* from this budget. Prevents runaway recursion across hierarchical agent invocations.
|
|
161
|
-
* If not set, maxIterations acts as the sole upper bound.
|
|
162
|
-
*/
|
|
163
|
-
iterationBudget?: IterationBudget;
|
|
164
|
-
/**
|
|
165
|
-
* Optional durable runtime budget governance for long-running goal/run work.
|
|
166
|
-
* When omitted, bounded runs get an iteration budget record derived from maxIterations
|
|
167
|
-
* if a RuntimeBudgetStore is available.
|
|
168
|
-
*/
|
|
169
|
-
runtimeBudget?: RuntimeBudgetConfig;
|
|
170
|
-
/**
|
|
171
|
-
* When true (default), automatically consolidate agent memory when a goal completes
|
|
172
|
-
* and raw entry count exceeds consolidationRawThreshold.
|
|
173
|
-
*/
|
|
174
|
-
autoConsolidateOnComplete?: boolean;
|
|
175
|
-
/**
|
|
176
|
-
* Minimum number of raw agent memory entries required to trigger auto-consolidation.
|
|
177
|
-
* Default: 20.
|
|
178
|
-
*/
|
|
179
|
-
consolidationRawThreshold?: number;
|
|
180
|
-
}
|
|
181
|
-
export type { GoalRunActivationContext } from "../../../base/types/goal-activation.js";
|
|
182
|
-
/** Deps needed for observation phase */
|
|
183
|
-
export interface ObservationDeps {
|
|
184
|
-
observationEngine: ObservationEngine;
|
|
185
|
-
stateManager: StateManager;
|
|
186
|
-
}
|
|
187
|
-
/** Deps needed for tree iteration */
|
|
188
|
-
export interface TreeDeps {
|
|
189
|
-
stateManager: StateManager;
|
|
190
|
-
treeLoopOrchestrator?: TreeLoopOrchestrator;
|
|
191
|
-
satisficingJudge: SatisficingJudge;
|
|
192
|
-
goalRefiner?: GoalRefiner;
|
|
193
|
-
goalTreeManager?: GoalTreeManager;
|
|
194
|
-
stateAggregator?: StateAggregator;
|
|
195
|
-
}
|
|
196
|
-
/** Deps needed for stall detection and recovery */
|
|
197
|
-
export interface StallDeps {
|
|
198
|
-
stallDetector: StallDetector;
|
|
199
|
-
strategyManager: StrategyManager;
|
|
200
|
-
knowledgeManager?: KnowledgeManager;
|
|
201
|
-
learningPipeline?: LearningPipeline;
|
|
202
|
-
goalRefiner?: GoalRefiner;
|
|
203
|
-
}
|
|
204
|
-
/** Deps needed for task execution cycle */
|
|
205
|
-
export interface TaskCycleDeps {
|
|
206
|
-
taskLifecycle: TaskLifecycle;
|
|
207
|
-
adapterRegistry: AdapterRegistry;
|
|
208
|
-
portfolioManager?: PortfolioManager;
|
|
209
|
-
knowledgeManager?: KnowledgeManager;
|
|
210
|
-
contextProvider?: (goalId: string, dimensionName: string) => Promise<string>;
|
|
211
|
-
}
|
|
212
|
-
export interface CoreLoopDeps extends ObservationDeps, TreeDeps, StallDeps, TaskCycleDeps {
|
|
213
|
-
gapCalculator: GapCalculatorModule;
|
|
214
|
-
driveScorer: DriveScorerModule;
|
|
215
|
-
reportingEngine: ReportingEngine;
|
|
216
|
-
driveSystem: DriveSystem;
|
|
217
|
-
capabilityDetector?: CapabilityDetector;
|
|
218
|
-
curiosityEngine?: CuriosityEngine;
|
|
219
|
-
goalDependencyGraph?: GoalDependencyGraph;
|
|
220
|
-
crossGoalPortfolio?: CrossGoalPortfolio;
|
|
221
|
-
knowledgeTransfer?: KnowledgeTransfer;
|
|
222
|
-
memoryLifecycleManager?: MemoryLifecycleManager;
|
|
223
|
-
/**
|
|
224
|
-
* Optional adapter that bridges DriveScorer output to MemoryLifecycleManager.
|
|
225
|
-
* When provided, CoreLoop calls adapter.update(driveScores) after each drive
|
|
226
|
-
* scoring step so MemoryLifecycleManager can use live dissatisfaction values
|
|
227
|
-
* for compression delay and relevance scoring.
|
|
228
|
-
*
|
|
229
|
-
* Typical setup (in CLIRunner):
|
|
230
|
-
* const adapter = new DriveScoreAdapter();
|
|
231
|
-
* const mlm = new MemoryLifecycleManager(baseDir, llm, config, emb, vec, adapter);
|
|
232
|
-
* const loop = new CoreLoop({ ..., memoryLifecycleManager: mlm, driveScoreAdapter: adapter });
|
|
233
|
-
*/
|
|
234
|
-
driveScoreAdapter?: DriveScoreAdapter;
|
|
235
|
-
/**
|
|
236
|
-
* Optional TrustManager for including per-adapter trust balance in reward logs.
|
|
237
|
-
* When provided, CoreLoop reads the balance for the configured adapterType and
|
|
238
|
-
* includes it in logRewardComputation calls (PULSEED_REWARD_LOG=1).
|
|
239
|
-
*/
|
|
240
|
-
trustManager?: TrustManager;
|
|
241
|
-
/**
|
|
242
|
-
* Optional ParallelExecutor for TaskGroup execution (M15 Phase 2).
|
|
243
|
-
* When provided, tasks evaluated as "large" complexity will be decomposed
|
|
244
|
-
* into a TaskGroup and executed in parallel waves.
|
|
245
|
-
* If not provided, all tasks fall through to the normal single-task flow.
|
|
246
|
-
*/
|
|
247
|
-
parallelExecutor?: ParallelExecutor;
|
|
248
|
-
/**
|
|
249
|
-
* Optional factory function to generate a TaskGroup for a large task.
|
|
250
|
-
* Provided as a callback so the caller owns the llmClient dependency.
|
|
251
|
-
* If not provided (or returns null), the normal single-task flow is used.
|
|
252
|
-
*/
|
|
253
|
-
generateTaskGroupFn?: (context: {
|
|
254
|
-
goalDescription: string;
|
|
255
|
-
targetDimension: string;
|
|
256
|
-
currentState: string;
|
|
257
|
-
gap: number;
|
|
258
|
-
availableAdapters: string[];
|
|
259
|
-
contextBlock?: string;
|
|
260
|
-
}) => Promise<import("../../../base/types/index.js").TaskGroup | null>;
|
|
261
|
-
logger?: Logger;
|
|
262
|
-
/**
|
|
263
|
-
* Optional progress callback. Called at key phases during each iteration so
|
|
264
|
-
* callers (e.g. CLIRunner) can print user-friendly progress lines.
|
|
265
|
-
*/
|
|
266
|
-
onProgress?: (event: ProgressEvent) => void;
|
|
267
|
-
/**
|
|
268
|
-
* Optional StrategyTemplateRegistry. When provided, CoreLoop wires it into
|
|
269
|
-
* StrategyManager so that strategies completing with effectiveness_score >= 0.5
|
|
270
|
-
* are automatically registered as reusable templates.
|
|
271
|
-
*/
|
|
272
|
-
strategyTemplateRegistry?: StrategyTemplateRegistry;
|
|
273
|
-
/** Optional HookManager for lifecycle hook events. */
|
|
274
|
-
hookManager?: import("../../../runtime/hook-manager.js").HookManager;
|
|
275
|
-
/** Optional ToolExecutor for direct tool-based operations (observation, verification, knowledge). */
|
|
276
|
-
toolExecutor?: ToolExecutor;
|
|
277
|
-
/** Optional ToolRegistry for context-aware tool assembly. */
|
|
278
|
-
toolRegistry?: ToolRegistry;
|
|
279
|
-
/** Optional durable evidence ledger for long-running autonomous work review/resume. */
|
|
280
|
-
evidenceLedger?: RuntimeEvidenceLedgerPort;
|
|
281
|
-
/** Optional durable budget store for long-running goal/run budget governance. */
|
|
282
|
-
runtimeBudgetStore?: RuntimeBudgetStore;
|
|
283
|
-
/** Optional durable operator handoff store for deadline, budget, and approval gates. */
|
|
284
|
-
operatorHandoffStore?: RuntimeOperatorHandoffStore;
|
|
285
|
-
/** Optional durable postmortem report store for terminal and paused long-running runs. */
|
|
286
|
-
postmortemReportStore?: RuntimePostmortemReportStore;
|
|
287
|
-
/** Optional bounded agentloop runner for core phases. */
|
|
288
|
-
corePhaseRunner?: CorePhaseRunner;
|
|
289
|
-
/** Optional live approval broker for wait/resume approvals. */
|
|
290
|
-
waitApprovalBroker?: WaitApprovalBroker;
|
|
291
|
-
/** Optional policy registry for core phase runtime. */
|
|
292
|
-
corePhasePolicyRegistry?: CorePhasePolicyRegistry;
|
|
293
|
-
/** Optional deterministic decision engine for iteration/run control. */
|
|
294
|
-
coreDecisionEngine?: CoreDecisionEngine;
|
|
295
|
-
}
|
|
296
|
-
export type ProgressPhase = "Observing..." | "Generating task..." | "Executing task..." | "Verifying result..." | "Skipped" | "Skipped (no state change)";
|
|
297
|
-
export interface ProgressEvent {
|
|
298
|
-
/** 1-based iteration number */
|
|
299
|
-
iteration: number;
|
|
300
|
-
/** Maximum iterations configured */
|
|
301
|
-
maxIterations: number | null;
|
|
302
|
-
/** Current phase label */
|
|
303
|
-
phase: ProgressPhase;
|
|
304
|
-
/** Gap aggregate from latest gap calculation (undefined before first gap calc) */
|
|
305
|
-
gap?: number;
|
|
306
|
-
/** Average confidence across gap dimensions (undefined before first gap calc) */
|
|
307
|
-
confidence?: number;
|
|
308
|
-
/** Short description of the task being executed (undefined outside execute phase) */
|
|
309
|
-
taskDescription?: string;
|
|
310
|
-
/** Reason this iteration was skipped (undefined when not skipped) */
|
|
311
|
-
skipReason?: string;
|
|
312
|
-
}
|
|
313
|
-
/**
|
|
314
|
-
* Build DriveContext from goal state.
|
|
315
|
-
* For each dimension, compute hours since last update.
|
|
316
|
-
* Deadline comes from goal.deadline if set.
|
|
317
|
-
*/
|
|
318
|
-
export declare function buildDriveContext(goal: Goal): DriveContext;
|
|
1
|
+
export * from "../durable-loop/contracts.js";
|
|
319
2
|
//# sourceMappingURL=contracts.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"contracts.d.ts","sourceRoot":"","sources":["../../../../src/orchestrator/loop/core-loop/contracts.ts"],"names":[],"mappings":"AAAA,
|
|
1
|
+
{"version":3,"file":"contracts.d.ts","sourceRoot":"","sources":["../../../../src/orchestrator/loop/core-loop/contracts.ts"],"names":[],"mappings":"AAAA,cAAc,8BAA8B,CAAC"}
|
|
@@ -1,40 +1,2 @@
|
|
|
1
|
-
export
|
|
2
|
-
// ─── Helpers ───
|
|
3
|
-
/**
|
|
4
|
-
* Build DriveContext from goal state.
|
|
5
|
-
* For each dimension, compute hours since last update.
|
|
6
|
-
* Deadline comes from goal.deadline if set.
|
|
7
|
-
*/
|
|
8
|
-
export function buildDriveContext(goal) {
|
|
9
|
-
const timeSinceLastAttempt = {};
|
|
10
|
-
const deadlines = {};
|
|
11
|
-
const opportunities = {};
|
|
12
|
-
const now = Date.now();
|
|
13
|
-
const deadlineTime = goal.deadline ? new Date(goal.deadline).getTime() : null;
|
|
14
|
-
for (const dim of goal.dimensions) {
|
|
15
|
-
// Calculate hours since last update
|
|
16
|
-
if (dim.last_updated) {
|
|
17
|
-
const lastUpdated = new Date(dim.last_updated).getTime();
|
|
18
|
-
timeSinceLastAttempt[dim.name] = (now - lastUpdated) / (1000 * 60 * 60);
|
|
19
|
-
}
|
|
20
|
-
else {
|
|
21
|
-
// No previous attempt — use a large number to indicate high staleness
|
|
22
|
-
timeSinceLastAttempt[dim.name] = 168; // 1 week default
|
|
23
|
-
}
|
|
24
|
-
// Deadline: compute hours remaining from goal.deadline
|
|
25
|
-
if (deadlineTime !== null) {
|
|
26
|
-
const hoursRemaining = (deadlineTime - now) / (1000 * 60 * 60);
|
|
27
|
-
deadlines[dim.name] = hoursRemaining;
|
|
28
|
-
}
|
|
29
|
-
else {
|
|
30
|
-
deadlines[dim.name] = null;
|
|
31
|
-
}
|
|
32
|
-
}
|
|
33
|
-
return {
|
|
34
|
-
time_since_last_attempt: timeSinceLastAttempt,
|
|
35
|
-
deadlines,
|
|
36
|
-
opportunities,
|
|
37
|
-
pacing: {},
|
|
38
|
-
};
|
|
39
|
-
}
|
|
1
|
+
export * from "../durable-loop/contracts.js";
|
|
40
2
|
//# sourceMappingURL=contracts.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"contracts.js","sourceRoot":"","sources":["../../../../src/orchestrator/loop/core-loop/contracts.ts"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"contracts.js","sourceRoot":"","sources":["../../../../src/orchestrator/loop/core-loop/contracts.ts"],"names":[],"mappings":"AAAA,cAAc,8BAA8B,CAAC"}
|
|
@@ -1,27 +1,2 @@
|
|
|
1
|
-
|
|
2
|
-
import type { StateDiffCalculator, IterationSnapshot } from "../state-diff.js";
|
|
3
|
-
import type { ResolvedLoopConfig, LoopIterationResult, CoreLoopDeps } from "./contracts.js";
|
|
4
|
-
import type { Goal } from "../../../base/types/goal.js";
|
|
5
|
-
export interface StateDiffState {
|
|
6
|
-
previousSnapshot: IterationSnapshot | null;
|
|
7
|
-
consecutiveSkips: number;
|
|
8
|
-
}
|
|
9
|
-
/**
|
|
10
|
-
* Runs the state diff check for a loop iteration.
|
|
11
|
-
*
|
|
12
|
-
* Returns an object indicating whether to skip the rest of the iteration.
|
|
13
|
-
* When `shouldSkip` is true, `result` has been fully populated with skip info
|
|
14
|
-
* and the caller should return it immediately.
|
|
15
|
-
* When `shouldSkip` is false, the loop should continue normally.
|
|
16
|
-
*/
|
|
17
|
-
export declare function runStateDiffCheck(stateDiff: StateDiffCalculator, stateDiffStateMap: Map<string, StateDiffState>, goalId: string, goal: Goal, loopIndex: number, config: ResolvedLoopConfig, deps: CoreLoopDeps, result: LoopIterationResult, startTime: number, logger?: Logger): Promise<{
|
|
18
|
-
shouldSkip: boolean;
|
|
19
|
-
}>;
|
|
20
|
-
/**
|
|
21
|
-
* Attempts to run the iteration in parallel (TaskGroup mode).
|
|
22
|
-
*
|
|
23
|
-
* Returns `true` if the parallel path was taken (caller should return result),
|
|
24
|
-
* `false` if parallel was skipped/unavailable (fall through to normal task cycle).
|
|
25
|
-
*/
|
|
26
|
-
export declare function tryParallelExecution(goalId: string, goal: Goal, gapAggregate: number, result: LoopIterationResult, startTime: number, deps: CoreLoopDeps, loopIndex: number, logger?: Logger): Promise<boolean>;
|
|
1
|
+
export * from "../durable-loop/control.js";
|
|
27
2
|
//# sourceMappingURL=control.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"control.d.ts","sourceRoot":"","sources":["../../../../src/orchestrator/loop/core-loop/control.ts"],"names":[],"mappings":"AAAA,
|
|
1
|
+
{"version":3,"file":"control.d.ts","sourceRoot":"","sources":["../../../../src/orchestrator/loop/core-loop/control.ts"],"names":[],"mappings":"AAAA,cAAc,4BAA4B,CAAC"}
|
|
@@ -1,72 +1,2 @@
|
|
|
1
|
-
|
|
2
|
-
import { generateLoopReport } from "../loop-report-helper.js";
|
|
3
|
-
/**
|
|
4
|
-
* Runs the state diff check for a loop iteration.
|
|
5
|
-
*
|
|
6
|
-
* Returns an object indicating whether to skip the rest of the iteration.
|
|
7
|
-
* When `shouldSkip` is true, `result` has been fully populated with skip info
|
|
8
|
-
* and the caller should return it immediately.
|
|
9
|
-
* When `shouldSkip` is false, the loop should continue normally.
|
|
10
|
-
*/
|
|
11
|
-
export async function runStateDiffCheck(stateDiff, stateDiffStateMap, goalId, goal, loopIndex, config, deps, result, startTime, logger) {
|
|
12
|
-
const diffState = stateDiffStateMap.get(goalId) ?? { previousSnapshot: null, consecutiveSkips: 0 };
|
|
13
|
-
const snapshot = stateDiff.buildSnapshot(goal, loopIndex);
|
|
14
|
-
const diff = stateDiff.compare(diffState.previousSnapshot, snapshot);
|
|
15
|
-
diffState.previousSnapshot = snapshot;
|
|
16
|
-
if (!diff.hasChange && diffState.consecutiveSkips < config.maxConsecutiveSkips) {
|
|
17
|
-
diffState.consecutiveSkips++;
|
|
18
|
-
stateDiffStateMap.set(goalId, diffState);
|
|
19
|
-
logger?.info(`[CoreLoop] iteration ${loopIndex} skipped: no state change detected ` +
|
|
20
|
-
`(consecutiveSkips=${diffState.consecutiveSkips}/${config.maxConsecutiveSkips})`, { goalId });
|
|
21
|
-
result.skipped = true;
|
|
22
|
-
result.skipReason = "no_state_change";
|
|
23
|
-
deps.onProgress?.({
|
|
24
|
-
iteration: loopIndex + 1,
|
|
25
|
-
maxIterations: config.maxIterations,
|
|
26
|
-
phase: "Skipped",
|
|
27
|
-
skipReason: result.skipReason,
|
|
28
|
-
});
|
|
29
|
-
// Carry forward completion status from the already-loaded goal so a
|
|
30
|
-
// completed goal is not forced through 5 more iterations.
|
|
31
|
-
const goalState = await deps.stateManager.loadGoal(goalId);
|
|
32
|
-
if (goalState?.status === "completed") {
|
|
33
|
-
result.completionJudgment.is_complete = true;
|
|
34
|
-
}
|
|
35
|
-
deps.onProgress?.({
|
|
36
|
-
iteration: loopIndex + 1,
|
|
37
|
-
maxIterations: config.maxIterations,
|
|
38
|
-
phase: "Skipped (no state change)",
|
|
39
|
-
});
|
|
40
|
-
result.elapsedMs = Date.now() - startTime;
|
|
41
|
-
return { shouldSkip: true };
|
|
42
|
-
}
|
|
43
|
-
// Reset skip counter — full loop is running
|
|
44
|
-
diffState.consecutiveSkips = 0;
|
|
45
|
-
stateDiffStateMap.set(goalId, diffState);
|
|
46
|
-
if (!diff.hasChange) {
|
|
47
|
-
logger?.info(`[CoreLoop] max consecutive skips reached (${config.maxConsecutiveSkips}), ` +
|
|
48
|
-
"forcing full iteration for stall detection", { goalId });
|
|
49
|
-
}
|
|
50
|
-
return { shouldSkip: false };
|
|
51
|
-
}
|
|
52
|
-
// ─── Parallel execution check ───
|
|
53
|
-
/**
|
|
54
|
-
* Attempts to run the iteration in parallel (TaskGroup mode).
|
|
55
|
-
*
|
|
56
|
-
* Returns `true` if the parallel path was taken (caller should return result),
|
|
57
|
-
* `false` if parallel was skipped/unavailable (fall through to normal task cycle).
|
|
58
|
-
*/
|
|
59
|
-
export async function tryParallelExecution(goalId, goal, gapAggregate, result, startTime, deps, loopIndex, logger) {
|
|
60
|
-
if (!deps.parallelExecutor || !deps.generateTaskGroupFn) {
|
|
61
|
-
return false;
|
|
62
|
-
}
|
|
63
|
-
const parallelResult = await tryRunParallel(goalId, goal, gapAggregate, result, startTime, deps, logger);
|
|
64
|
-
if (parallelResult !== null) {
|
|
65
|
-
// Parallel path completed — skip normal task cycle
|
|
66
|
-
await generateLoopReport(goalId, loopIndex, result, goal, deps.reportingEngine, logger);
|
|
67
|
-
result.elapsedMs = Date.now() - startTime;
|
|
68
|
-
return true;
|
|
69
|
-
}
|
|
70
|
-
return false;
|
|
71
|
-
}
|
|
1
|
+
export * from "../durable-loop/control.js";
|
|
72
2
|
//# sourceMappingURL=control.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"control.js","sourceRoot":"","sources":["../../../../src/orchestrator/loop/core-loop/control.ts"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"control.js","sourceRoot":"","sources":["../../../../src/orchestrator/loop/core-loop/control.ts"],"names":[],"mappings":"AAAA,cAAc,4BAA4B,CAAC"}
|
|
@@ -1,79 +1,2 @@
|
|
|
1
|
-
|
|
2
|
-
import type { KnowledgeRefreshEvidence, ReplanningOptions } from "./phase-specs.js";
|
|
3
|
-
export interface CoreLoopRunCounters {
|
|
4
|
-
consecutiveErrors: number;
|
|
5
|
-
consecutiveDenied: number;
|
|
6
|
-
consecutiveEscalations: number;
|
|
7
|
-
}
|
|
8
|
-
export interface CoreLoopRunDecision {
|
|
9
|
-
counters: CoreLoopRunCounters;
|
|
10
|
-
shouldStop: boolean;
|
|
11
|
-
finalStatus?: LoopResult["finalStatus"];
|
|
12
|
-
}
|
|
13
|
-
export interface KnowledgeAcquisitionDecision {
|
|
14
|
-
shouldAcquire: boolean;
|
|
15
|
-
question?: string;
|
|
16
|
-
}
|
|
17
|
-
export interface TaskGenerationHintsDecision {
|
|
18
|
-
targetDimensionOverride?: string;
|
|
19
|
-
knowledgeContextPrefix?: string;
|
|
20
|
-
}
|
|
21
|
-
export interface StallActionHintsDecision {
|
|
22
|
-
recommendedAction?: "continue" | "refine" | "pivot";
|
|
23
|
-
}
|
|
24
|
-
export declare class CoreDecisionEngine {
|
|
25
|
-
shouldRunStallInvestigation(result: LoopIterationResult): boolean;
|
|
26
|
-
shouldRunReplanningOptions(input: {
|
|
27
|
-
skipTaskGeneration: boolean;
|
|
28
|
-
taskCycleBlocked: boolean;
|
|
29
|
-
gapAggregate: number;
|
|
30
|
-
}): boolean;
|
|
31
|
-
shouldRunVerificationEvidence(result: LoopIterationResult): boolean;
|
|
32
|
-
evaluateKnowledgeAcquisition(input: {
|
|
33
|
-
phase?: {
|
|
34
|
-
status: "skipped" | "completed" | "low_confidence" | "failed";
|
|
35
|
-
output?: KnowledgeRefreshEvidence;
|
|
36
|
-
} | null;
|
|
37
|
-
hasKnowledgeManager: boolean;
|
|
38
|
-
hasToolExecutor: boolean;
|
|
39
|
-
}): KnowledgeAcquisitionDecision;
|
|
40
|
-
shouldPreferReplanningContext(input: {
|
|
41
|
-
phase?: {
|
|
42
|
-
status: "skipped" | "completed" | "low_confidence" | "failed";
|
|
43
|
-
output?: ReplanningOptions;
|
|
44
|
-
} | null;
|
|
45
|
-
}): boolean;
|
|
46
|
-
buildTaskGenerationHints(input: {
|
|
47
|
-
phase?: {
|
|
48
|
-
status: "skipped" | "completed" | "low_confidence" | "failed";
|
|
49
|
-
output?: ReplanningOptions;
|
|
50
|
-
} | null;
|
|
51
|
-
goalDimensions: string[];
|
|
52
|
-
}): TaskGenerationHintsDecision;
|
|
53
|
-
buildStallActionHints(input: {
|
|
54
|
-
phase?: {
|
|
55
|
-
status: "skipped" | "completed" | "low_confidence" | "failed";
|
|
56
|
-
output?: ReplanningOptions;
|
|
57
|
-
} | null;
|
|
58
|
-
}): StallActionHintsDecision;
|
|
59
|
-
buildNextIterationDirective(input: {
|
|
60
|
-
knowledgeRefreshPhase?: {
|
|
61
|
-
status: "skipped" | "completed" | "low_confidence" | "failed";
|
|
62
|
-
output?: KnowledgeRefreshEvidence;
|
|
63
|
-
} | null;
|
|
64
|
-
replanningPhase?: {
|
|
65
|
-
status: "skipped" | "completed" | "low_confidence" | "failed";
|
|
66
|
-
output?: ReplanningOptions;
|
|
67
|
-
} | null;
|
|
68
|
-
goalDimensions: string[];
|
|
69
|
-
fallbackFocusDimension?: string;
|
|
70
|
-
}): NextIterationDirective | undefined;
|
|
71
|
-
evaluateRunDecision(input: {
|
|
72
|
-
iterationResult: LoopIterationResult;
|
|
73
|
-
loopIndex: number;
|
|
74
|
-
minIterations: number;
|
|
75
|
-
maxConsecutiveErrors: number;
|
|
76
|
-
counters: CoreLoopRunCounters;
|
|
77
|
-
}): CoreLoopRunDecision;
|
|
78
|
-
}
|
|
1
|
+
export * from "../durable-loop/decision-engine.js";
|
|
79
2
|
//# sourceMappingURL=decision-engine.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"decision-engine.d.ts","sourceRoot":"","sources":["../../../../src/orchestrator/loop/core-loop/decision-engine.ts"],"names":[],"mappings":"AAAA,
|
|
1
|
+
{"version":3,"file":"decision-engine.d.ts","sourceRoot":"","sources":["../../../../src/orchestrator/loop/core-loop/decision-engine.ts"],"names":[],"mappings":"AAAA,cAAc,oCAAoC,CAAC"}
|