@wrongstack/core 0.284.1 → 0.285.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/agent-status-tracker.d.ts +74 -0
- package/dist/agent-status-tracker.d.ts.map +1 -0
- package/dist/autophase/auto-phase-planner.d.ts +79 -0
- package/dist/autophase/auto-phase-planner.d.ts.map +1 -0
- package/dist/autophase/auto-phase-runner.d.ts +79 -0
- package/dist/autophase/auto-phase-runner.d.ts.map +1 -0
- package/dist/autophase/checkpoint.d.ts +49 -0
- package/dist/autophase/checkpoint.d.ts.map +1 -0
- package/dist/autophase/index.d.ts +9 -0
- package/dist/autophase/index.d.ts.map +1 -0
- package/dist/autophase/phase-graph-builder.d.ts +46 -0
- package/dist/autophase/phase-graph-builder.d.ts.map +1 -0
- package/dist/autophase/phase-orchestrator.d.ts +150 -0
- package/dist/autophase/phase-orchestrator.d.ts.map +1 -0
- package/dist/autophase/phase-store.d.ts +29 -0
- package/dist/autophase/phase-store.d.ts.map +1 -0
- package/dist/autophase/types.d.ts +329 -0
- package/dist/autophase/types.d.ts.map +1 -0
- package/dist/boot.d.ts +73 -0
- package/dist/boot.d.ts.map +1 -0
- package/dist/coordination/adaptive-concurrency.d.ts +63 -0
- package/dist/coordination/adaptive-concurrency.d.ts.map +1 -0
- package/dist/coordination/agent-bridge.d.ts +24 -0
- package/dist/coordination/agent-bridge.d.ts.map +1 -0
- package/dist/coordination/agent-monitor.d.ts +100 -0
- package/dist/coordination/agent-monitor.d.ts.map +1 -0
- package/dist/coordination/agent-subagent-runner.d.ts +74 -0
- package/dist/coordination/agent-subagent-runner.d.ts.map +1 -0
- package/dist/coordination/agents/agent-prompts.d.ts +2 -0
- package/dist/coordination/agents/agent-prompts.d.ts.map +1 -0
- package/dist/coordination/agents/index.d.ts +35 -0
- package/dist/coordination/agents/index.d.ts.map +1 -0
- package/dist/coordination/agents/phase1-discovery.d.ts +4 -0
- package/dist/coordination/agents/phase1-discovery.d.ts.map +1 -0
- package/dist/coordination/agents/phase2-planning.d.ts +4 -0
- package/dist/coordination/agents/phase2-planning.d.ts.map +1 -0
- package/dist/coordination/agents/phase3-build.d.ts +4 -0
- package/dist/coordination/agents/phase3-build.d.ts.map +1 -0
- package/dist/coordination/agents/phase3-techstack.d.ts +13 -0
- package/dist/coordination/agents/phase3-techstack.d.ts.map +1 -0
- package/dist/coordination/agents/phase4-verify.d.ts +4 -0
- package/dist/coordination/agents/phase4-verify.d.ts.map +1 -0
- package/dist/coordination/agents/phase5-review.d.ts +4 -0
- package/dist/coordination/agents/phase5-review.d.ts.map +1 -0
- package/dist/coordination/agents/phase6-domain.d.ts +4 -0
- package/dist/coordination/agents/phase6-domain.d.ts.map +1 -0
- package/dist/coordination/agents/phase7-knowledge.d.ts +4 -0
- package/dist/coordination/agents/phase7-knowledge.d.ts.map +1 -0
- package/dist/coordination/agents/phase8-delivery.d.ts +4 -0
- package/dist/coordination/agents/phase8-delivery.d.ts.map +1 -0
- package/dist/coordination/agents/phase9-meta.d.ts +4 -0
- package/dist/coordination/agents/phase9-meta.d.ts.map +1 -0
- package/dist/coordination/agents/types.d.ts +79 -0
- package/dist/coordination/agents/types.d.ts.map +1 -0
- package/dist/coordination/agents.d.ts +8 -0
- package/dist/coordination/agents.d.ts.map +1 -0
- package/dist/coordination/auto-extend.d.ts +46 -0
- package/dist/coordination/auto-extend.d.ts.map +1 -0
- package/dist/coordination/autonomous-brain.d.ts +154 -0
- package/dist/coordination/autonomous-brain.d.ts.map +1 -0
- package/dist/coordination/autonomous-coordinator.d.ts +239 -0
- package/dist/coordination/autonomous-coordinator.d.ts.map +1 -0
- package/dist/coordination/brain-monitor.d.ts +74 -0
- package/dist/coordination/brain-monitor.d.ts.map +1 -0
- package/dist/coordination/brain.d.ts +104 -0
- package/dist/coordination/brain.d.ts.map +1 -0
- package/dist/coordination/change-manager.d.ts +151 -0
- package/dist/coordination/change-manager.d.ts.map +1 -0
- package/dist/coordination/checkpoint-wiring.d.ts +61 -0
- package/dist/coordination/checkpoint-wiring.d.ts.map +1 -0
- package/dist/coordination/collab-bus.d.ts +132 -0
- package/dist/coordination/collab-bus.d.ts.map +1 -0
- package/dist/coordination/collab-debug.d.ts +302 -0
- package/dist/coordination/collab-debug.d.ts.map +1 -0
- package/dist/coordination/commit-safety.d.ts +72 -0
- package/dist/coordination/commit-safety.d.ts.map +1 -0
- package/dist/coordination/consensus-protocol.d.ts +106 -0
- package/dist/coordination/consensus-protocol.d.ts.map +1 -0
- package/dist/coordination/coordinator/error-classifier.d.ts +15 -0
- package/dist/coordination/coordinator/error-classifier.d.ts.map +1 -0
- package/dist/coordination/delegate-tool.d.ts +101 -0
- package/dist/coordination/delegate-tool.d.ts.map +1 -0
- package/dist/coordination/dep-watcher-bridge.d.ts +47 -0
- package/dist/coordination/dep-watcher-bridge.d.ts.map +1 -0
- package/dist/coordination/dep-watcher.d.ts +74 -0
- package/dist/coordination/dep-watcher.d.ts.map +1 -0
- package/dist/coordination/director/director-errors.d.ts +29 -0
- package/dist/coordination/director/director-errors.d.ts.map +1 -0
- package/dist/coordination/director-construction.d.ts +90 -0
- package/dist/coordination/director-construction.d.ts.map +1 -0
- package/dist/coordination/director-prompts.d.ts +119 -0
- package/dist/coordination/director-prompts.d.ts.map +1 -0
- package/dist/coordination/director-session.d.ts +68 -0
- package/dist/coordination/director-session.d.ts.map +1 -0
- package/dist/coordination/director-tools.d.ts +65 -0
- package/dist/coordination/director-tools.d.ts.map +1 -0
- package/dist/coordination/director.d.ts +802 -0
- package/dist/coordination/director.d.ts.map +1 -0
- package/dist/coordination/dispatcher.d.ts +82 -0
- package/dist/coordination/dispatcher.d.ts.map +1 -0
- package/dist/coordination/file-author-tracker.d.ts +76 -0
- package/dist/coordination/file-author-tracker.d.ts.map +1 -0
- package/dist/coordination/fleet-bus.d.ts +122 -0
- package/dist/coordination/fleet-bus.d.ts.map +1 -0
- package/dist/coordination/fleet-event-validation.d.ts +10 -0
- package/dist/coordination/fleet-event-validation.d.ts.map +1 -0
- package/dist/coordination/fleet-manager.d.ts +234 -0
- package/dist/coordination/fleet-manager.d.ts.map +1 -0
- package/dist/coordination/fleet-spawn.d.ts +102 -0
- package/dist/coordination/fleet-spawn.d.ts.map +1 -0
- package/dist/coordination/fleet-status-tool.d.ts +36 -0
- package/dist/coordination/fleet-status-tool.d.ts.map +1 -0
- package/dist/coordination/fleet-supervisor.d.ts +157 -0
- package/dist/coordination/fleet-supervisor.d.ts.map +1 -0
- package/dist/coordination/fleet.d.ts +96 -0
- package/dist/coordination/fleet.d.ts.map +1 -0
- package/dist/coordination/global-mailbox.d.ts +234 -0
- package/dist/coordination/global-mailbox.d.ts.map +1 -0
- package/dist/coordination/icoordinator.d.ts +97 -0
- package/dist/coordination/icoordinator.d.ts.map +1 -0
- package/dist/coordination/ifleet-manager.d.ts +177 -0
- package/dist/coordination/ifleet-manager.d.ts.map +1 -0
- package/dist/coordination/in-memory-transport.d.ts +12 -0
- package/dist/coordination/in-memory-transport.d.ts.map +1 -0
- package/dist/coordination/index.d.ts +78 -2587
- package/dist/coordination/index.d.ts.map +1 -0
- package/dist/coordination/index.js +739 -254
- package/dist/coordination/index.js.map +7 -1
- package/dist/coordination/knowledge-graph.d.ts +217 -0
- package/dist/coordination/knowledge-graph.d.ts.map +1 -0
- package/dist/coordination/large-answer-store.d.ts +61 -0
- package/dist/coordination/large-answer-store.d.ts.map +1 -0
- package/dist/coordination/mail-tools.d.ts +34 -0
- package/dist/coordination/mail-tools.d.ts.map +1 -0
- package/dist/coordination/mailbox-actions.d.ts +68 -0
- package/dist/coordination/mailbox-actions.d.ts.map +1 -0
- package/dist/coordination/mailbox-health.d.ts +131 -0
- package/dist/coordination/mailbox-health.d.ts.map +1 -0
- package/dist/coordination/mailbox-hooks.d.ts +55 -0
- package/dist/coordination/mailbox-hooks.d.ts.map +1 -0
- package/dist/coordination/mailbox-tool.d.ts +75 -0
- package/dist/coordination/mailbox-tool.d.ts.map +1 -0
- package/dist/{mailbox-types-BGZWrYTJ.d.ts → coordination/mailbox-types.d.ts} +37 -22
- package/dist/coordination/mailbox-types.d.ts.map +1 -0
- package/dist/coordination/mailbox.d.ts +69 -0
- package/dist/coordination/mailbox.d.ts.map +1 -0
- package/dist/coordination/model-matrix.d.ts +98 -0
- package/dist/coordination/model-matrix.d.ts.map +1 -0
- package/dist/coordination/multi-agent-coordinator.d.ts +202 -0
- package/dist/coordination/multi-agent-coordinator.d.ts.map +1 -0
- package/dist/coordination/null-fleet-bus.d.ts +10 -0
- package/dist/coordination/null-fleet-bus.d.ts.map +1 -0
- package/dist/coordination/package-author-tracker.d.ts +87 -0
- package/dist/coordination/package-author-tracker.d.ts.map +1 -0
- package/dist/coordination/package-outdated-watcher.d.ts +83 -0
- package/dist/coordination/package-outdated-watcher.d.ts.map +1 -0
- package/dist/coordination/single-instance-mailbox.d.ts +154 -0
- package/dist/coordination/single-instance-mailbox.d.ts.map +1 -0
- package/dist/coordination/spawn-budget.d.ts +6 -0
- package/dist/coordination/spawn-budget.d.ts.map +1 -0
- package/dist/coordination/subagent-budget.d.ts +323 -0
- package/dist/coordination/subagent-budget.d.ts.map +1 -0
- package/dist/coordination/subagent-nicknames.d.ts +42 -0
- package/dist/coordination/subagent-nicknames.d.ts.map +1 -0
- package/dist/coordination/subagent-result-tool.d.ts +20 -0
- package/dist/coordination/subagent-result-tool.d.ts.map +1 -0
- package/dist/coordination/task-auctioneer.d.ts +143 -0
- package/dist/coordination/task-auctioneer.d.ts.map +1 -0
- package/dist/coordination/task-dag.d.ts +147 -0
- package/dist/coordination/task-dag.d.ts.map +1 -0
- package/dist/coordination/techstack-mailbox-consumer.d.ts +50 -0
- package/dist/coordination/techstack-mailbox-consumer.d.ts.map +1 -0
- package/dist/coordination/transport.d.ts +2 -0
- package/dist/coordination/transport.d.ts.map +1 -0
- package/dist/coordination/worktree-task-runner.d.ts +45 -0
- package/dist/coordination/worktree-task-runner.d.ts.map +1 -0
- package/dist/core/agent-internals.d.ts +41 -0
- package/dist/core/agent-internals.d.ts.map +1 -0
- package/dist/core/agent-loop.d.ts +18 -0
- package/dist/core/agent-loop.d.ts.map +1 -0
- package/dist/core/agent-response.d.ts +21 -0
- package/dist/core/agent-response.d.ts.map +1 -0
- package/dist/core/agent-tools.d.ts +21 -0
- package/dist/core/agent-tools.d.ts.map +1 -0
- package/dist/core/agent-types.d.ts +95 -0
- package/dist/core/agent-types.d.ts.map +1 -0
- package/dist/core/agent.d.ts +54 -0
- package/dist/core/agent.d.ts.map +1 -0
- package/dist/core/btw.d.ts +40 -0
- package/dist/core/btw.d.ts.map +1 -0
- package/dist/core/context.d.ts +269 -0
- package/dist/core/context.d.ts.map +1 -0
- package/dist/core/continue-intent.d.ts +92 -0
- package/dist/core/continue-intent.d.ts.map +1 -0
- package/dist/core/continue-to-next-iteration.d.ts +96 -0
- package/dist/core/continue-to-next-iteration.d.ts.map +1 -0
- package/dist/core/conversation-state.d.ts +96 -0
- package/dist/core/conversation-state.d.ts.map +1 -0
- package/dist/core/fallback-model.d.ts +94 -0
- package/dist/core/fallback-model.d.ts.map +1 -0
- package/dist/core/fleet-pulse.d.ts +42 -0
- package/dist/core/fleet-pulse.d.ts.map +1 -0
- package/dist/core/input-builder.d.ts +95 -0
- package/dist/core/input-builder.d.ts.map +1 -0
- package/dist/core/instruction-bundle.d.ts +22 -0
- package/dist/core/instruction-bundle.d.ts.map +1 -0
- package/dist/core/iteration-limit.d.ts +35 -0
- package/dist/core/iteration-limit.d.ts.map +1 -0
- package/dist/core/mailbox-loop.d.ts +63 -0
- package/dist/core/mailbox-loop.d.ts.map +1 -0
- package/dist/core/modes/brief.d.ts +2 -0
- package/dist/core/modes/brief.d.ts.map +1 -0
- package/dist/core/modes/default.d.ts +8 -0
- package/dist/core/modes/default.d.ts.map +1 -0
- package/dist/core/modes/teach.d.ts +2 -0
- package/dist/core/modes/teach.d.ts.map +1 -0
- package/dist/core/provider-runner.d.ts +24 -0
- package/dist/core/provider-runner.d.ts.map +1 -0
- package/dist/core/queued-messages.d.ts +55 -0
- package/dist/core/queued-messages.d.ts.map +1 -0
- package/dist/core/run-env.d.ts +49 -0
- package/dist/core/run-env.d.ts.map +1 -0
- package/dist/core/streaming-response-builder.d.ts +78 -0
- package/dist/core/streaming-response-builder.d.ts.map +1 -0
- package/dist/core/system-prompt-builder.d.ts +213 -0
- package/dist/core/system-prompt-builder.d.ts.map +1 -0
- package/dist/defaults/index.d.ts +68 -158
- package/dist/defaults/index.d.ts.map +1 -0
- package/dist/defaults/index.js +1257 -819
- package/dist/defaults/index.js.map +7 -1
- package/dist/execution/auto-compaction-middleware.d.ts +123 -0
- package/dist/execution/auto-compaction-middleware.d.ts.map +1 -0
- package/dist/execution/autonomous-runner.d.ts +55 -0
- package/dist/execution/autonomous-runner.d.ts.map +1 -0
- package/dist/execution/autonomy-brain.d.ts +90 -0
- package/dist/execution/autonomy-brain.d.ts.map +1 -0
- package/dist/execution/autonomy-prompt-contributor.d.ts +39 -0
- package/dist/execution/autonomy-prompt-contributor.d.ts.map +1 -0
- package/dist/execution/compaction-core.d.ts +103 -0
- package/dist/execution/compaction-core.d.ts.map +1 -0
- package/dist/execution/compactor.d.ts +56 -0
- package/dist/execution/compactor.d.ts.map +1 -0
- package/dist/execution/design-color.d.ts +31 -0
- package/dist/execution/design-color.d.ts.map +1 -0
- package/dist/execution/design-detect.d.ts +96 -0
- package/dist/execution/design-detect.d.ts.map +1 -0
- package/dist/execution/design-kit-loader.d.ts +53 -0
- package/dist/execution/design-kit-loader.d.ts.map +1 -0
- package/dist/execution/design-materialize.d.ts +32 -0
- package/dist/execution/design-materialize.d.ts.map +1 -0
- package/dist/execution/design-project-store.d.ts +57 -0
- package/dist/execution/design-project-store.d.ts.map +1 -0
- package/dist/execution/design-verify.d.ts +44 -0
- package/dist/execution/design-verify.d.ts.map +1 -0
- package/dist/execution/error-handler.d.ts +34 -0
- package/dist/execution/error-handler.d.ts.map +1 -0
- package/dist/{parallel-eternal-engine-HUrtePLd.d.ts → execution/eternal-autonomy.d.ts} +10 -225
- package/dist/execution/eternal-autonomy.d.ts.map +1 -0
- package/dist/execution/goal-preamble.d.ts +2 -0
- package/dist/execution/goal-preamble.d.ts.map +1 -0
- package/dist/execution/index.d.ts +21 -180
- package/dist/execution/index.d.ts.map +1 -0
- package/dist/execution/index.js +465 -180
- package/dist/execution/index.js.map +7 -1
- package/dist/execution/intelligent-compactor.d.ts +85 -0
- package/dist/execution/intelligent-compactor.d.ts.map +1 -0
- package/dist/execution/model-runtime.d.ts +75 -0
- package/dist/execution/model-runtime.d.ts.map +1 -0
- package/dist/execution/parallel-eternal-engine.d.ts +130 -0
- package/dist/execution/parallel-eternal-engine.d.ts.map +1 -0
- package/dist/execution/prompt-enhancer.d.ts +12 -13
- package/dist/execution/prompt-enhancer.d.ts.map +1 -0
- package/dist/execution/prompt-enhancer.js +13 -7
- package/dist/execution/prompt-enhancer.js.map +7 -1
- package/dist/execution/prompt-loader.d.ts +52 -0
- package/dist/execution/prompt-loader.d.ts.map +1 -0
- package/dist/execution/provider-runner-impl.d.ts +14 -0
- package/dist/execution/provider-runner-impl.d.ts.map +1 -0
- package/dist/execution/regex-patterns.d.ts +7 -0
- package/dist/execution/regex-patterns.d.ts.map +1 -0
- package/dist/execution/retry-policy.d.ts +35 -0
- package/dist/execution/retry-policy.d.ts.map +1 -0
- package/dist/execution/selective-compactor.d.ts +94 -0
- package/dist/execution/selective-compactor.d.ts.map +1 -0
- package/dist/execution/skill-loader.d.ts +43 -0
- package/dist/execution/skill-loader.d.ts.map +1 -0
- package/dist/execution/strategy-compactor.d.ts +43 -0
- package/dist/execution/strategy-compactor.d.ts.map +1 -0
- package/dist/execution/tool-executor.d.ts +112 -0
- package/dist/execution/tool-executor.d.ts.map +1 -0
- package/dist/extension/extension-points.d.ts +121 -0
- package/dist/extension/extension-points.d.ts.map +1 -0
- package/dist/extension/index.d.ts +3 -10
- package/dist/extension/index.d.ts.map +1 -0
- package/dist/extension/index.js +59 -5
- package/dist/extension/index.js.map +7 -1
- package/dist/extension/registry.d.ts +86 -0
- package/dist/extension/registry.d.ts.map +1 -0
- package/dist/fleet-notifier.d.ts +28 -0
- package/dist/fleet-notifier.d.ts.map +1 -0
- package/dist/hooks/http-executor.d.ts +11 -0
- package/dist/hooks/http-executor.d.ts.map +1 -0
- package/dist/hooks/index.d.ts +10 -0
- package/dist/hooks/index.d.ts.map +1 -0
- package/dist/hooks/registry.d.ts +71 -0
- package/dist/hooks/registry.d.ts.map +1 -0
- package/dist/hooks/runner.d.ts +65 -0
- package/dist/hooks/runner.d.ts.map +1 -0
- package/dist/hooks/shell-executor.d.ts +33 -0
- package/dist/hooks/shell-executor.d.ts.map +1 -0
- package/dist/hooks/shell-hooks-equal.d.ts +15 -0
- package/dist/hooks/shell-hooks-equal.d.ts.map +1 -0
- package/dist/hq/agent-bridge.d.ts +27 -0
- package/dist/hq/agent-bridge.d.ts.map +1 -0
- package/dist/hq/alerts.d.ts +67 -0
- package/dist/hq/alerts.d.ts.map +1 -0
- package/dist/hq/auth-store.d.ts +161 -0
- package/dist/hq/auth-store.d.ts.map +1 -0
- package/dist/hq/brain-bridge.d.ts +37 -0
- package/dist/hq/brain-bridge.d.ts.map +1 -0
- package/dist/hq/commands.d.ts +122 -0
- package/dist/hq/commands.d.ts.map +1 -0
- package/dist/hq/cost-bridge.d.ts +36 -0
- package/dist/hq/cost-bridge.d.ts.map +1 -0
- package/dist/hq/factory.d.ts +66 -0
- package/dist/hq/factory.d.ts.map +1 -0
- package/dist/hq/fleet-bridge.d.ts +39 -0
- package/dist/hq/fleet-bridge.d.ts.map +1 -0
- package/dist/hq/index.d.ts +18 -816
- package/dist/hq/index.d.ts.map +1 -0
- package/dist/hq/index.js +417 -122
- package/dist/hq/index.js.map +7 -1
- package/dist/hq/mailbox-mapper.d.ts +27 -0
- package/dist/hq/mailbox-mapper.d.ts.map +1 -0
- package/dist/hq/persistence.d.ts +121 -0
- package/dist/hq/persistence.d.ts.map +1 -0
- package/dist/hq/protocol.d.ts +560 -0
- package/dist/hq/protocol.d.ts.map +1 -0
- package/dist/hq/publisher.d.ts +177 -0
- package/dist/hq/publisher.d.ts.map +1 -0
- package/dist/hq/redaction.d.ts +30 -0
- package/dist/hq/redaction.d.ts.map +1 -0
- package/dist/hq/session-bridge.d.ts +29 -0
- package/dist/hq/session-bridge.d.ts.map +1 -0
- package/dist/hq/tool-bridge.d.ts +41 -0
- package/dist/hq/tool-bridge.d.ts.map +1 -0
- package/dist/hq/transcript-mapper.d.ts +36 -0
- package/dist/hq/transcript-mapper.d.ts.map +1 -0
- package/dist/hq/worktree-bridge.d.ts +34 -0
- package/dist/hq/worktree-bridge.d.ts.map +1 -0
- package/dist/index.d.ts +108 -2872
- package/dist/index.d.ts.map +1 -0
- package/dist/index.js +2724 -1344
- package/dist/index.js.map +7 -1
- package/dist/infrastructure/context-manager.d.ts +92 -0
- package/dist/infrastructure/context-manager.d.ts.map +1 -0
- package/dist/infrastructure/index.d.ts +6 -64
- package/dist/infrastructure/index.d.ts.map +1 -0
- package/dist/infrastructure/index.js +39 -12
- package/dist/infrastructure/index.js.map +7 -1
- package/dist/infrastructure/logger.d.ts +99 -0
- package/dist/infrastructure/logger.d.ts.map +1 -0
- package/dist/infrastructure/mcp-servers.d.ts +83 -0
- package/dist/infrastructure/mcp-servers.d.ts.map +1 -0
- package/dist/{path-resolver-CMS5307d.d.ts → infrastructure/path-resolver.d.ts} +3 -5
- package/dist/infrastructure/path-resolver.d.ts.map +1 -0
- package/dist/infrastructure/token-counter.d.ts +57 -0
- package/dist/infrastructure/token-counter.d.ts.map +1 -0
- package/dist/kernel/container.d.ts +84 -0
- package/dist/kernel/container.d.ts.map +1 -0
- package/dist/{events-Bgnh43r9.d.ts → kernel/events.d.ts} +112 -206
- package/dist/kernel/events.d.ts.map +1 -0
- package/dist/kernel/index.d.ts +6 -107
- package/dist/kernel/index.d.ts.map +1 -0
- package/dist/kernel/index.js +56 -4
- package/dist/kernel/index.js.map +7 -1
- package/dist/kernel/pipeline.d.ts +105 -0
- package/dist/kernel/pipeline.d.ts.map +1 -0
- package/dist/kernel/run-controller.d.ts +55 -0
- package/dist/kernel/run-controller.d.ts.map +1 -0
- package/dist/kernel/tokens.d.ts +53 -0
- package/dist/kernel/tokens.d.ts.map +1 -0
- package/dist/mailbox-attach.d.ts +27 -0
- package/dist/mailbox-attach.d.ts.map +1 -0
- package/dist/middleware/collab-pause.d.ts +73 -0
- package/dist/middleware/collab-pause.d.ts.map +1 -0
- package/dist/models/codex-catalog.d.ts +41 -0
- package/dist/models/codex-catalog.d.ts.map +1 -0
- package/dist/models/index.d.ts +8 -163
- package/dist/models/index.d.ts.map +1 -0
- package/dist/models/index.js +150 -51
- package/dist/models/index.js.map +7 -1
- package/dist/models/llm-selector.d.ts +47 -0
- package/dist/models/llm-selector.d.ts.map +1 -0
- package/dist/models/mode-store.d.ts +22 -0
- package/dist/models/mode-store.d.ts.map +1 -0
- package/dist/models/model-intelligence.d.ts +56 -0
- package/dist/models/model-intelligence.d.ts.map +1 -0
- package/dist/models/model-router.d.ts +100 -0
- package/dist/models/model-router.d.ts.map +1 -0
- package/dist/models/models-registry.d.ts +106 -0
- package/dist/models/models-registry.d.ts.map +1 -0
- package/dist/models/provider-model-resolve.d.ts +69 -0
- package/dist/models/provider-model-resolve.d.ts.map +1 -0
- package/dist/observability/event-bridge.d.ts +10 -0
- package/dist/observability/event-bridge.d.ts.map +1 -0
- package/dist/observability/health.d.ts +18 -0
- package/dist/observability/health.d.ts.map +1 -0
- package/dist/observability/index.d.ts +9 -354
- package/dist/observability/index.d.ts.map +1 -0
- package/dist/observability/index.js +21 -8
- package/dist/observability/index.js.map +7 -1
- package/dist/observability/metrics.d.ts +26 -0
- package/dist/observability/metrics.d.ts.map +1 -0
- package/dist/observability/otel-tracer.d.ts +41 -0
- package/dist/observability/otel-tracer.d.ts.map +1 -0
- package/dist/observability/otlp-metrics.d.ts +111 -0
- package/dist/observability/otlp-metrics.d.ts.map +1 -0
- package/dist/observability/otlp-traces.d.ts +95 -0
- package/dist/observability/otlp-traces.d.ts.map +1 -0
- package/dist/observability/prometheus.d.ts +49 -0
- package/dist/observability/prometheus.d.ts.map +1 -0
- package/dist/observability/tracer.d.ts +9 -0
- package/dist/observability/tracer.d.ts.map +1 -0
- package/dist/plugin/api.d.ts +226 -0
- package/dist/plugin/api.d.ts.map +1 -0
- package/dist/plugin/loader.d.ts +73 -0
- package/dist/plugin/loader.d.ts.map +1 -0
- package/dist/plugins/chimera-plugin.d.ts +37 -0
- package/dist/plugins/chimera-plugin.d.ts.map +1 -0
- package/dist/plugins/git-plugin.d.ts +15 -0
- package/dist/plugins/git-plugin.d.ts.map +1 -0
- package/dist/plugins/observability-plugin.d.ts +19 -0
- package/dist/plugins/observability-plugin.d.ts.map +1 -0
- package/dist/plugins/plan-plugin.d.ts +16 -0
- package/dist/plugins/plan-plugin.d.ts.map +1 -0
- package/dist/plugins/prompts-plugin.d.ts +26 -0
- package/dist/plugins/prompts-plugin.d.ts.map +1 -0
- package/dist/plugins/security-plugin.d.ts +19 -0
- package/dist/plugins/security-plugin.d.ts.map +1 -0
- package/dist/plugins/skills-plugin.d.ts +42 -0
- package/dist/plugins/skills-plugin.d.ts.map +1 -0
- package/dist/plugins/sync-plugin.d.ts +22 -0
- package/dist/plugins/sync-plugin.d.ts.map +1 -0
- package/dist/prompts/index.d.ts +3 -0
- package/dist/prompts/index.d.ts.map +1 -0
- package/dist/prompts/prompt-installer.d.ts +50 -0
- package/dist/prompts/prompt-installer.d.ts.map +1 -0
- package/dist/prompts/prompt-manifest-store.d.ts +18 -0
- package/dist/prompts/prompt-manifest-store.d.ts.map +1 -0
- package/dist/registry/provider-registry.d.ts +51 -0
- package/dist/registry/provider-registry.d.ts.map +1 -0
- package/dist/registry/slash-command-registry.d.ts +61 -0
- package/dist/registry/slash-command-registry.d.ts.map +1 -0
- package/dist/registry/tool-registry.d.ts +154 -0
- package/dist/registry/tool-registry.d.ts.map +1 -0
- package/dist/replay/hash.d.ts +31 -0
- package/dist/replay/hash.d.ts.map +1 -0
- package/dist/replay/replay-provider-runner.d.ts +53 -0
- package/dist/replay/replay-provider-runner.d.ts.map +1 -0
- package/dist/{index-CbyuOE5y.d.ts → security/capabilities.d.ts} +31 -34
- package/dist/security/capabilities.d.ts.map +1 -0
- package/dist/security/config-secrets.d.ts +25 -0
- package/dist/security/config-secrets.d.ts.map +1 -0
- package/dist/security/index.d.ts +6 -8
- package/dist/security/index.d.ts.map +1 -0
- package/dist/security/index.js +102 -381
- package/dist/security/index.js.map +7 -1
- package/dist/security/permission-policy.d.ts +153 -0
- package/dist/security/permission-policy.d.ts.map +1 -0
- package/dist/security/secret-scrubber.d.ts +14 -0
- package/dist/security/secret-scrubber.d.ts.map +1 -0
- package/dist/security/secret-vault.d.ts +87 -0
- package/dist/security/secret-vault.d.ts.map +1 -0
- package/dist/security/yolo-risk.d.ts +11 -0
- package/dist/security/yolo-risk.d.ts.map +1 -0
- package/dist/{session-registry-Dvg7i_IA.d.ts → session-registry.d.ts} +8 -9
- package/dist/session-registry.d.ts.map +1 -0
- package/dist/skills/foreign-sources.d.ts +59 -0
- package/dist/skills/foreign-sources.d.ts.map +1 -0
- package/dist/skills/frontmatter.d.ts +44 -0
- package/dist/skills/frontmatter.d.ts.map +1 -0
- package/dist/skills/github-fetcher.d.ts +38 -0
- package/dist/skills/github-fetcher.d.ts.map +1 -0
- package/dist/skills/index.d.ts +11 -582
- package/dist/skills/index.d.ts.map +1 -0
- package/dist/skills/index.js +81 -43
- package/dist/skills/index.js.map +7 -1
- package/dist/skills/limits.d.ts +92 -0
- package/dist/skills/limits.d.ts.map +1 -0
- package/dist/skills/manifest-store.d.ts +42 -0
- package/dist/skills/manifest-store.d.ts.map +1 -0
- package/dist/skills/registry/github-direct-adapter.d.ts +17 -0
- package/dist/skills/registry/github-direct-adapter.d.ts.map +1 -0
- package/dist/skills/registry/registry-adapter.d.ts +84 -0
- package/dist/skills/registry/registry-adapter.d.ts.map +1 -0
- package/dist/skills/registry/skills-sh-adapter.d.ts +13 -0
- package/dist/skills/registry/skills-sh-adapter.d.ts.map +1 -0
- package/dist/skills/skill-generator.d.ts +82 -0
- package/dist/skills/skill-generator.d.ts.map +1 -0
- package/dist/skills/skill-installer.d.ts +124 -0
- package/dist/skills/skill-installer.d.ts.map +1 -0
- package/dist/storage/annotations-store.d.ts +118 -0
- package/dist/storage/annotations-store.d.ts.map +1 -0
- package/dist/storage/attachment-store.d.ts +31 -0
- package/dist/storage/attachment-store.d.ts.map +1 -0
- package/dist/storage/cloud-sync.d.ts +44 -0
- package/dist/storage/cloud-sync.d.ts.map +1 -0
- package/dist/storage/completed-work-checkpoint.d.ts +11 -0
- package/dist/storage/completed-work-checkpoint.d.ts.map +1 -0
- package/dist/storage/config-loader.d.ts +104 -0
- package/dist/storage/config-loader.d.ts.map +1 -0
- package/dist/storage/config-migration.d.ts +87 -0
- package/dist/storage/config-migration.d.ts.map +1 -0
- package/dist/storage/config-store.d.ts +22 -0
- package/dist/storage/config-store.d.ts.map +1 -0
- package/dist/{director-state-CMS_bMs4.d.ts → storage/director-state.d.ts} +28 -8
- package/dist/storage/director-state.d.ts.map +1 -0
- package/dist/storage/file-session-writer.d.ts +169 -0
- package/dist/storage/file-session-writer.d.ts.map +1 -0
- package/dist/{goal-store-Datpp-ar.d.ts → storage/goal-store.d.ts} +26 -19
- package/dist/storage/goal-store.d.ts.map +1 -0
- package/dist/storage/index.d.ts +39 -1031
- package/dist/storage/index.d.ts.map +1 -0
- package/dist/storage/index.js +655 -300
- package/dist/storage/index.js.map +7 -1
- package/dist/storage/input-history-store.d.ts +56 -0
- package/dist/storage/input-history-store.d.ts.map +1 -0
- package/dist/storage/memory-backend.d.ts +66 -0
- package/dist/storage/memory-backend.d.ts.map +1 -0
- package/dist/storage/memory-consolidator.d.ts +50 -0
- package/dist/storage/memory-consolidator.d.ts.map +1 -0
- package/dist/storage/memory-graph-backend.d.ts +117 -0
- package/dist/storage/memory-graph-backend.d.ts.map +1 -0
- package/dist/storage/memory-store.d.ts +119 -0
- package/dist/storage/memory-store.d.ts.map +1 -0
- package/dist/storage/plan-store.d.ts +78 -0
- package/dist/storage/plan-store.d.ts.map +1 -0
- package/dist/storage/plan-templates.d.ts +21 -0
- package/dist/storage/plan-templates.d.ts.map +1 -0
- package/dist/storage/prompt-store.d.ts +37 -0
- package/dist/storage/prompt-store.d.ts.map +1 -0
- package/dist/storage/prompt-usage-store.d.ts +29 -0
- package/dist/storage/prompt-usage-store.d.ts.map +1 -0
- package/dist/storage/provider-config-watcher.d.ts +34 -0
- package/dist/storage/provider-config-watcher.d.ts.map +1 -0
- package/dist/storage/queue-store.d.ts +37 -0
- package/dist/storage/queue-store.d.ts.map +1 -0
- package/dist/storage/recovery-lock.d.ts +79 -0
- package/dist/storage/recovery-lock.d.ts.map +1 -0
- package/dist/storage/replay-log-store.d.ts +97 -0
- package/dist/storage/replay-log-store.d.ts.map +1 -0
- package/dist/storage/session-analyzer.d.ts +48 -0
- package/dist/storage/session-analyzer.d.ts.map +1 -0
- package/dist/storage/session-checkpoint-cas.d.ts +37 -0
- package/dist/storage/session-checkpoint-cas.d.ts.map +1 -0
- package/dist/{session-event-bridge-D_z_mBwk.d.ts → storage/session-event-bridge.d.ts} +14 -15
- package/dist/storage/session-event-bridge.d.ts.map +1 -0
- package/dist/storage/session-helpers.d.ts +9 -0
- package/dist/storage/session-helpers.d.ts.map +1 -0
- package/dist/storage/session-id.d.ts +18 -0
- package/dist/storage/session-id.d.ts.map +1 -0
- package/dist/storage/session-reader.d.ts +21 -0
- package/dist/storage/session-reader.d.ts.map +1 -0
- package/dist/storage/session-recovery.d.ts +93 -0
- package/dist/storage/session-recovery.d.ts.map +1 -0
- package/dist/storage/session-resume-validation.d.ts +6 -0
- package/dist/storage/session-resume-validation.d.ts.map +1 -0
- package/dist/storage/session-rewinder.d.ts +21 -0
- package/dist/storage/session-rewinder.d.ts.map +1 -0
- package/dist/storage/session-store.d.ts +210 -0
- package/dist/storage/session-store.d.ts.map +1 -0
- package/dist/storage/session-summary.d.ts +12 -0
- package/dist/storage/session-summary.d.ts.map +1 -0
- package/dist/storage/session-tool-call-ends.d.ts +5 -0
- package/dist/storage/session-tool-call-ends.d.ts.map +1 -0
- package/dist/storage/storage-concurrency.d.ts +2 -0
- package/dist/storage/storage-concurrency.d.ts.map +1 -0
- package/dist/storage/task-store.d.ts +33 -0
- package/dist/storage/task-store.d.ts.map +1 -0
- package/dist/storage/todos-checkpoint.d.ts +39 -0
- package/dist/storage/todos-checkpoint.d.ts.map +1 -0
- package/dist/storage/tool-audit-log.d.ts +141 -0
- package/dist/storage/tool-audit-log.d.ts.map +1 -0
- package/dist/tasking/index.d.ts +3 -124
- package/dist/tasking/index.d.ts.map +1 -0
- package/dist/tasking/index.js +57 -4
- package/dist/tasking/index.js.map +7 -1
- package/dist/tasking/task-store.d.ts +22 -0
- package/dist/tasking/task-store.d.ts.map +1 -0
- package/dist/tasking/task-tracker.d.ts +102 -0
- package/dist/tasking/task-tracker.d.ts.map +1 -0
- package/dist/tools/index.d.ts +2 -59
- package/dist/tools/index.d.ts.map +1 -0
- package/dist/tools/index.js +93 -14
- package/dist/tools/index.js.map +7 -1
- package/dist/tools/mcp-control.d.ts +53 -0
- package/dist/tools/mcp-control.d.ts.map +1 -0
- package/dist/tools/mcp-use.d.ts +24 -0
- package/dist/tools/mcp-use.d.ts.map +1 -0
- package/dist/types/agent-bridge.d.ts +42 -0
- package/dist/types/agent-bridge.d.ts.map +1 -0
- package/dist/types/attachment.d.ts +54 -0
- package/dist/types/attachment.d.ts.map +1 -0
- package/dist/types/autonomy.d.ts +5 -0
- package/dist/types/autonomy.d.ts.map +1 -0
- package/dist/types/blocks.d.ts +76 -0
- package/dist/types/blocks.d.ts.map +1 -0
- package/dist/{compactor-DQLL4HTo.d.ts → types/compactor.d.ts} +5 -7
- package/dist/types/compactor.d.ts.map +1 -0
- package/dist/{config-MRqn1V-u.d.ts → types/config.d.ts} +135 -354
- package/dist/types/config.d.ts.map +1 -0
- package/dist/types/context-evidence.d.ts +68 -0
- package/dist/types/context-evidence.d.ts.map +1 -0
- package/dist/types/context-window.d.ts +35 -0
- package/dist/types/context-window.d.ts.map +1 -0
- package/dist/{default-config-B79_gJYv.d.ts → types/default-config.d.ts} +10 -11
- package/dist/types/default-config.d.ts.map +1 -0
- package/dist/types/design-kit.d.ts +91 -0
- package/dist/types/design-kit.d.ts.map +1 -0
- package/dist/{retry-policy-CQ7KwXJa.d.ts → types/error-handler.d.ts} +5 -12
- package/dist/types/error-handler.d.ts.map +1 -0
- package/dist/types/errors.d.ts +277 -0
- package/dist/types/errors.d.ts.map +1 -0
- package/dist/types/hooks.d.ts +167 -0
- package/dist/types/hooks.d.ts.map +1 -0
- package/dist/types/index.d.ts +40 -244
- package/dist/types/index.d.ts.map +1 -0
- package/dist/types/index.js +90 -12
- package/dist/types/index.js.map +7 -1
- package/dist/{input-reader-E-ffP2ee.d.ts → types/input-reader.d.ts} +3 -4
- package/dist/types/input-reader.d.ts.map +1 -0
- package/dist/{logger-B63L5bTg.d.ts → types/logger.d.ts} +3 -4
- package/dist/types/logger.d.ts.map +1 -0
- package/dist/types/memory.d.ts +89 -0
- package/dist/types/memory.d.ts.map +1 -0
- package/dist/types/messages.d.ts +24 -0
- package/dist/types/messages.d.ts.map +1 -0
- package/dist/types/mode-prompts.d.ts +2 -0
- package/dist/types/mode-prompts.d.ts.map +1 -0
- package/dist/{mode-CZlO9iU1.d.ts → types/mode.d.ts} +6 -7
- package/dist/types/mode.d.ts.map +1 -0
- package/dist/types/models-registry.d.ts +105 -0
- package/dist/types/models-registry.d.ts.map +1 -0
- package/dist/types/multi-agent.d.ts +435 -0
- package/dist/types/multi-agent.d.ts.map +1 -0
- package/dist/{observability-D-HZN_mF.d.ts → types/observability.d.ts} +12 -13
- package/dist/types/observability.d.ts.map +1 -0
- package/dist/{path-resolver-CPRj4bFY.d.ts → types/path-resolver.d.ts} +2 -3
- package/dist/types/path-resolver.d.ts.map +1 -0
- package/dist/{permission-ByDKXEcG.d.ts → types/permission.d.ts} +8 -9
- package/dist/types/permission.d.ts.map +1 -0
- package/dist/types/plugin.d.ts +385 -0
- package/dist/types/plugin.d.ts.map +1 -0
- package/dist/types/prompt-registry.d.ts +81 -0
- package/dist/types/prompt-registry.d.ts.map +1 -0
- package/dist/{prompt-DLd35n4Q.d.ts → types/prompt.d.ts} +14 -15
- package/dist/types/prompt.d.ts.map +1 -0
- package/dist/{provider-runner-ChL-kVg6.d.ts → types/provider-runner.d.ts} +9 -10
- package/dist/types/provider-runner.d.ts.map +1 -0
- package/dist/types/provider.d.ts +387 -0
- package/dist/types/provider.d.ts.map +1 -0
- package/dist/types/renderer.d.ts +23 -0
- package/dist/types/renderer.d.ts.map +1 -0
- package/dist/types/retry-policy.d.ts +7 -0
- package/dist/types/retry-policy.d.ts.map +1 -0
- package/dist/types/secret-scrubber.d.ts +5 -0
- package/dist/types/secret-scrubber.d.ts.map +1 -0
- package/dist/{secret-vault-BAKpgFw_.d.ts → types/secret-vault.d.ts} +13 -7
- package/dist/types/secret-vault.d.ts.map +1 -0
- package/dist/{selector-D8O6B_Rm.d.ts → types/selector.d.ts} +4 -6
- package/dist/types/selector.d.ts.map +1 -0
- package/dist/types/session-reader.d.ts +81 -0
- package/dist/types/session-reader.d.ts.map +1 -0
- package/dist/{session-rewinder-C9HnMkhP.d.ts → types/session-rewinder.d.ts} +5 -6
- package/dist/types/session-rewinder.d.ts.map +1 -0
- package/dist/types/session.d.ts +650 -0
- package/dist/types/session.d.ts.map +1 -0
- package/dist/types/side-effect.d.ts +34 -0
- package/dist/types/side-effect.d.ts.map +1 -0
- package/dist/{skill-DHniprNl.d.ts → types/skill.d.ts} +4 -5
- package/dist/types/skill.d.ts.map +1 -0
- package/dist/types/slash-command.d.ts +59 -0
- package/dist/types/slash-command.d.ts.map +1 -0
- package/dist/types/spec.d.ts +77 -0
- package/dist/types/spec.d.ts.map +1 -0
- package/dist/types/system-prompt-contributor.d.ts +20 -0
- package/dist/types/system-prompt-contributor.d.ts.map +1 -0
- package/dist/types/system-prompt.d.ts +51 -0
- package/dist/types/system-prompt.d.ts.map +1 -0
- package/dist/{task-graph-CH3acNQ7.d.ts → types/task-graph.d.ts} +21 -22
- package/dist/types/task-graph.d.ts.map +1 -0
- package/dist/types/token-counter.d.ts +42 -0
- package/dist/types/token-counter.d.ts.map +1 -0
- package/dist/types/tool-executor.d.ts +133 -0
- package/dist/types/tool-executor.d.ts.map +1 -0
- package/dist/types/tool-markers.d.ts +23 -0
- package/dist/types/tool-markers.d.ts.map +1 -0
- package/dist/types/tool.d.ts +245 -0
- package/dist/types/tool.d.ts.map +1 -0
- package/dist/types/utility-types.d.ts +31 -0
- package/dist/types/utility-types.d.ts.map +1 -0
- package/dist/utils/assert-never.d.ts +14 -0
- package/dist/utils/assert-never.d.ts.map +1 -0
- package/dist/utils/atomic-write.d.ts +12 -0
- package/dist/utils/atomic-write.d.ts.map +1 -0
- package/dist/utils/child-env.d.ts +67 -0
- package/dist/utils/child-env.d.ts.map +1 -0
- package/dist/utils/color.d.ts +20 -0
- package/dist/utils/color.d.ts.map +1 -0
- package/dist/utils/config-json.d.ts +14 -0
- package/dist/utils/config-json.d.ts.map +1 -0
- package/dist/utils/context-evidence.d.ts +47 -0
- package/dist/utils/context-evidence.d.ts.map +1 -0
- package/dist/utils/deep-merge.d.ts +64 -0
- package/dist/utils/deep-merge.d.ts.map +1 -0
- package/dist/utils/diff.d.ts +11 -0
- package/dist/utils/diff.d.ts.map +1 -0
- package/dist/utils/error.d.ts +2 -3
- package/dist/utils/error.d.ts.map +1 -0
- package/dist/utils/error.js +3 -3
- package/dist/utils/error.js.map +7 -1
- package/dist/utils/expect-defined.d.ts +2 -3
- package/dist/utils/expect-defined.d.ts.map +1 -0
- package/dist/utils/expect-defined.js +3 -3
- package/dist/utils/expect-defined.js.map +7 -1
- package/dist/utils/glob-expand.d.ts +10 -0
- package/dist/utils/glob-expand.d.ts.map +1 -0
- package/dist/utils/glob-match.d.ts +4 -0
- package/dist/utils/glob-match.d.ts.map +1 -0
- package/dist/utils/index.d.ts +37 -920
- package/dist/utils/index.d.ts.map +1 -0
- package/dist/utils/index.js +242 -33
- package/dist/utils/index.js.map +7 -1
- package/dist/utils/instruction-file.d.ts +3 -0
- package/dist/utils/instruction-file.d.ts.map +1 -0
- package/dist/utils/ip-guard.d.ts +34 -0
- package/dist/utils/ip-guard.d.ts.map +1 -0
- package/dist/utils/json-repair.d.ts +23 -0
- package/dist/utils/json-repair.d.ts.map +1 -0
- package/dist/utils/json-schema-validate.d.ts +42 -0
- package/dist/utils/json-schema-validate.d.ts.map +1 -0
- package/dist/utils/lru-cache.d.ts +29 -0
- package/dist/utils/lru-cache.d.ts.map +1 -0
- package/dist/utils/merge-custom-models.d.ts +12 -0
- package/dist/utils/merge-custom-models.d.ts.map +1 -0
- package/dist/utils/merge-models-payload.d.ts +20 -0
- package/dist/utils/merge-models-payload.d.ts.map +1 -0
- package/dist/utils/message-invariants.d.ts +22 -0
- package/dist/utils/message-invariants.d.ts.map +1 -0
- package/dist/utils/newline-normalize.d.ts +5 -0
- package/dist/utils/newline-normalize.d.ts.map +1 -0
- package/dist/utils/regex-guard.d.ts +21 -0
- package/dist/utils/regex-guard.d.ts.map +1 -0
- package/dist/utils/safe-json.d.ts +31 -0
- package/dist/utils/safe-json.d.ts.map +1 -0
- package/dist/utils/session-scoped-path.d.ts +13 -0
- package/dist/utils/session-scoped-path.d.ts.map +1 -0
- package/dist/utils/sleep.d.ts +5 -0
- package/dist/utils/sleep.d.ts.map +1 -0
- package/dist/utils/slug.d.ts +13 -0
- package/dist/utils/slug.d.ts.map +1 -0
- package/dist/utils/string.d.ts +9 -0
- package/dist/utils/string.d.ts.map +1 -0
- package/dist/utils/task-format.d.ts +22 -0
- package/dist/utils/task-format.d.ts.map +1 -0
- package/dist/utils/term.d.ts +133 -0
- package/dist/utils/term.d.ts.map +1 -0
- package/dist/utils/todos-format.d.ts +30 -0
- package/dist/utils/todos-format.d.ts.map +1 -0
- package/dist/utils/token-estimate.d.ts +112 -0
- package/dist/utils/token-estimate.d.ts.map +1 -0
- package/dist/utils/tool-description-mode.d.ts +28 -0
- package/dist/utils/tool-description-mode.d.ts.map +1 -0
- package/dist/utils/tool-output-serializer.d.ts +40 -0
- package/dist/utils/tool-output-serializer.d.ts.map +1 -0
- package/dist/utils/tool-result-render-mode.d.ts +55 -0
- package/dist/utils/tool-result-render-mode.d.ts.map +1 -0
- package/dist/utils/tool-subject.d.ts +5 -0
- package/dist/utils/tool-subject.d.ts.map +1 -0
- package/dist/utils/tool-wire-compact.d.ts +28 -0
- package/dist/utils/tool-wire-compact.d.ts.map +1 -0
- package/dist/utils/ulid.d.ts +11 -0
- package/dist/utils/ulid.d.ts.map +1 -0
- package/dist/{wstack-paths-C3K40Qst.d.ts → utils/wstack-paths.d.ts} +7 -8
- package/dist/utils/wstack-paths.d.ts.map +1 -0
- package/dist/worktree/index.d.ts +2 -0
- package/dist/worktree/index.d.ts.map +1 -0
- package/dist/{worktree-manager-DzwxKE35.d.ts → worktree/worktree-manager.d.ts} +19 -13
- package/dist/worktree/worktree-manager.d.ts.map +1 -0
- package/instructions/autonomy/active-mission.md +2 -4
- package/instructions/sections/tool/delegation-full.md +1 -1
- package/package.json +4 -5
- package/skills/node-modern/SKILL.md +2 -2
- package/skills/plugin-author/SKILL.md +9 -16
- package/dist/dispatcher-types.d-BBeXBQgS.d.ts +0 -66
- package/dist/global-mailbox-sZwyI6CS.d.ts +0 -959
- package/dist/index--Gm41aBJ.d.ts +0 -671
- package/dist/mcp-servers-DEV4s6Ks.d.ts +0 -259
- package/dist/multi-agent-coordinator-4RCRZKjN.d.ts +0 -1770
- package/dist/null-fleet-bus-CFoNVQEK.d.ts +0 -2127
- package/dist/pipeline-DGDyIohT.d.ts +0 -331
- package/dist/provider-model-resolve-o2hHLs79.d.ts +0 -263
- package/dist/secret-scrubber-3MHDDAtm.d.ts +0 -6
- package/dist/secret-vault-DxohkUBc.d.ts +0 -272
- package/dist/session-reader-7Esxrkpw.d.ts +0 -155
- package/dist/task-format-GX0B1mMC.d.ts +0 -23
- package/dist/todos-checkpoint-FY7PjmMx.d.ts +0 -850
- package/dist/tool-BNlnIJvo.d.ts +0 -2190
- package/dist/tool-executor-CckSCM5E.d.ts +0 -906
|
@@ -0,0 +1,269 @@
|
|
|
1
|
+
import type { TextBlock } from '../types/blocks.js';
|
|
2
|
+
import type { Message } from '../types/messages.js';
|
|
3
|
+
import type { Provider, Usage } from '../types/provider.js';
|
|
4
|
+
import type { SessionWriter } from '../types/session.js';
|
|
5
|
+
import type { ContextEvidenceState } from '../types/context-evidence.js';
|
|
6
|
+
import type { TokenCounter } from '../types/token-counter.js';
|
|
7
|
+
import type { Tool } from '../types/tool.js';
|
|
8
|
+
import { ConversationState } from './conversation-state.js';
|
|
9
|
+
import type { RunEnv } from './run-env.js';
|
|
10
|
+
export interface TodoItem {
|
|
11
|
+
id: string;
|
|
12
|
+
content: string;
|
|
13
|
+
status: 'pending' | 'in_progress' | 'completed';
|
|
14
|
+
activeForm?: string | undefined;
|
|
15
|
+
/** When promoted from a plan item, stores the plan item's id. */
|
|
16
|
+
promotedFromPlan?: string | undefined;
|
|
17
|
+
/** When promoted from a task, stores the task's id. */
|
|
18
|
+
promotedFromTask?: string | undefined;
|
|
19
|
+
}
|
|
20
|
+
export interface RunOptions {
|
|
21
|
+
signal?: AbortSignal | undefined;
|
|
22
|
+
model?: string | undefined;
|
|
23
|
+
executionStrategy?: 'parallel' | 'sequential' | 'smart' | undefined;
|
|
24
|
+
maxIterations?: number | undefined;
|
|
25
|
+
/**
|
|
26
|
+
* Enable autonomous continue for this specific run. When true, the agent
|
|
27
|
+
* loop re-runs on `[continue]`/`[next step]`/`[proceed]` markers or
|
|
28
|
+
* `continue_to_next_iteration()` tool calls instead of returning.
|
|
29
|
+
* Overrides `AgentInit.autonomousContinue` for this call only.
|
|
30
|
+
*/
|
|
31
|
+
autonomousContinue?: boolean | undefined;
|
|
32
|
+
}
|
|
33
|
+
export interface ContextInit {
|
|
34
|
+
systemPrompt: TextBlock[];
|
|
35
|
+
provider: Provider;
|
|
36
|
+
session: SessionWriter;
|
|
37
|
+
signal: AbortSignal;
|
|
38
|
+
tokenCounter: TokenCounter;
|
|
39
|
+
cwd: string;
|
|
40
|
+
projectRoot: string;
|
|
41
|
+
/** Mutable working directory. Defaults to `cwd`. Must stay within `projectRoot`. */
|
|
42
|
+
workingDir?: string | undefined;
|
|
43
|
+
/**
|
|
44
|
+
* When false, file tools and `setWorkingDir()` are confined to `projectRoot`.
|
|
45
|
+
* Defaults to `false` (restrictive) when omitted so directly-constructed
|
|
46
|
+
* contexts (tests, embedded callers) keep the safe behavior; the runtime
|
|
47
|
+
* passes the config-derived value (default `true` — permissive) explicitly.
|
|
48
|
+
*/
|
|
49
|
+
allowOutsideProjectRoot?: boolean | undefined;
|
|
50
|
+
model: string;
|
|
51
|
+
tools?: Tool[] | undefined;
|
|
52
|
+
/** Agent id performing this run (e.g. 'leader', 'executor', 'tech-stack'). */
|
|
53
|
+
agentId?: string | undefined;
|
|
54
|
+
/** Human-readable agent name. */
|
|
55
|
+
agentName?: string | undefined;
|
|
56
|
+
/**
|
|
57
|
+
* Session-level trace ID for correlating storage events with agent
|
|
58
|
+
* iterations in observability pipelines. Stored on the SessionWriter
|
|
59
|
+
* so that storage operations can emit it in `storage.*` events.
|
|
60
|
+
* When set, the Context constructor propagates it to
|
|
61
|
+
* `session.traceId` automatically.
|
|
62
|
+
*/
|
|
63
|
+
traceId?: string | undefined;
|
|
64
|
+
}
|
|
65
|
+
/**
|
|
66
|
+
* L1-A: `Context` is the live agent-run object. Its read-only environment
|
|
67
|
+
* shape is exposed by the `RunEnv` interface (every field below the
|
|
68
|
+
* conversation state) and its mutable shape by `ConversationState` (the
|
|
69
|
+
* `state` accessor). New code should declare the narrower type at its
|
|
70
|
+
* parameter — pass `ctx` for it. Existing tools that accept `Context`
|
|
71
|
+
* still work because `Context` structurally satisfies both.
|
|
72
|
+
*
|
|
73
|
+
* The single source of truth for the project directory is `projectRoot`.
|
|
74
|
+
* All tools (read/write/bash/exec) resolve paths relative to this.
|
|
75
|
+
* Sessions, config, memory, and logs are also stored under this root.
|
|
76
|
+
*
|
|
77
|
+
* There IS a mutable `workingDir` (separate from `projectRoot`) that can be
|
|
78
|
+
* changed at runtime via `setWorkingDir()`. It starts as `cwd` and allows
|
|
79
|
+
* the agent and user to navigate within the project without spawning a new
|
|
80
|
+
* process. All changes must stay inside `projectRoot`.
|
|
81
|
+
*/
|
|
82
|
+
export declare class Context implements RunEnv {
|
|
83
|
+
messages: Message[];
|
|
84
|
+
todos: TodoItem[];
|
|
85
|
+
/**
|
|
86
|
+
* Files whose content the **user / model has explicitly seen** via the
|
|
87
|
+
* `read` tool (or an edit's auto-read, which surfaces the content to the
|
|
88
|
+
* model). This is the set the permission policy's write-smart-bypass
|
|
89
|
+
* (step 7) checks — writing a file the model has already read is treated
|
|
90
|
+
* as "no new content to approve". It must NEVER contain files only touched
|
|
91
|
+
* by `edit`/`write`, otherwise the model could repeatedly overwrite a file
|
|
92
|
+
* whose content the user never saw (P1 #1, before-release.md).
|
|
93
|
+
*
|
|
94
|
+
* Tool-driven mutations record via `writtenFiles` + `recordRead(..., 'write')`
|
|
95
|
+
* so mtime tracking still works without widening the bypass.
|
|
96
|
+
*/
|
|
97
|
+
readFiles: Set<string>;
|
|
98
|
+
/**
|
|
99
|
+
* Files written by `edit`/`write` in this session. Tracked for observability
|
|
100
|
+
* and to keep `readFiles` (the permission-bypass source of truth) clean.
|
|
101
|
+
* `recordRead(path, mtime, 'write')` adds here instead of `readFiles`.
|
|
102
|
+
*/
|
|
103
|
+
writtenFiles: Set<string>;
|
|
104
|
+
fileMtimes: Map<string, number>;
|
|
105
|
+
/**
|
|
106
|
+
* sha-256 (hex) of file content at the last recorded read/write, when the
|
|
107
|
+
* recording tool had the content in hand. Used by `edit` as the authoritative
|
|
108
|
+
* staleness arbiter: mtime comparison has a 2 s tolerance window on Windows
|
|
109
|
+
* (FAT/NTFS granularity) during which an external modification is invisible,
|
|
110
|
+
* and conversely a bare `touch` bumps mtime without changing content. Hash
|
|
111
|
+
* equality resolves both cases exactly. Entries are dropped whenever a
|
|
112
|
+
* hash-less `recordRead` observes a *different* mtime (content may have
|
|
113
|
+
* changed under us — fall back to the mtime heuristic rather than trust a
|
|
114
|
+
* stale hash).
|
|
115
|
+
*/
|
|
116
|
+
fileHashes: Map<string, string>;
|
|
117
|
+
/**
|
|
118
|
+
* Structured side-effect records accumulated during the current run
|
|
119
|
+
* (P2 #5). Populated by `recordSideEffect()` — read by /diag for an
|
|
120
|
+
* in-memory audit trail without parsing the JSONL file. Cleared by
|
|
121
|
+
* `clearFileTracking()` alongside read/written-file tracking.
|
|
122
|
+
*/
|
|
123
|
+
sideEffects: import('../types/side-effect.js').SideEffect[];
|
|
124
|
+
contextEvidence: ContextEvidenceState;
|
|
125
|
+
systemPrompt: TextBlock[];
|
|
126
|
+
provider: Provider;
|
|
127
|
+
session: SessionWriter;
|
|
128
|
+
signal: AbortSignal;
|
|
129
|
+
tokenCounter: TokenCounter;
|
|
130
|
+
cwd: string;
|
|
131
|
+
projectRoot: string;
|
|
132
|
+
/** Mutable working directory — starts as `cwd`. Change via `setWorkingDir()`. */
|
|
133
|
+
workingDir: string;
|
|
134
|
+
/**
|
|
135
|
+
* When true, file tools (via `_util.ts`) and `setWorkingDir()` reject paths
|
|
136
|
+
* outside `projectRoot`. When false, those boundary checks are bypassed so
|
|
137
|
+
* tools may reach paths outside the project (still gated by permission
|
|
138
|
+
* tiers). Mutable so `/settings` can toggle it live on the running session.
|
|
139
|
+
*/
|
|
140
|
+
allowOutsideProjectRoot: boolean;
|
|
141
|
+
model: string;
|
|
142
|
+
tools: Tool[];
|
|
143
|
+
meta: Record<string, unknown>;
|
|
144
|
+
/** Agent id performing this run (e.g. 'leader', 'executor'). */
|
|
145
|
+
agentId: string;
|
|
146
|
+
/** Human-readable agent name. */
|
|
147
|
+
agentName: string;
|
|
148
|
+
/**
|
|
149
|
+
* Session-level trace ID for correlating storage events with agent
|
|
150
|
+
* iterations. Stored here and also propagated to `session.traceId`
|
|
151
|
+
* so storage operations can include it in `storage.*` events.
|
|
152
|
+
*/
|
|
153
|
+
traceId: string | undefined;
|
|
154
|
+
/** Callbacks fired when `setWorkingDir()` changes the working directory. */
|
|
155
|
+
private _onWorkingDirChanged;
|
|
156
|
+
/**
|
|
157
|
+
* Set to true when the conversation gains new tool_use or tool_result
|
|
158
|
+
* blocks — the only time repairToolUseAdjacency() can find new issues.
|
|
159
|
+
* buildAndRunRequestPipeline() checks this flag to skip an O(n) scan
|
|
160
|
+
* on iterations where no tool content was added (pure text responses).
|
|
161
|
+
*/
|
|
162
|
+
toolAdjacencyDirty: boolean;
|
|
163
|
+
/**
|
|
164
|
+
* H1: pre-computed total-request token estimate from the most recent
|
|
165
|
+
* `estimateRequestTokens()` call in the agent loop's pre-flight step.
|
|
166
|
+
* The middleware that decides when to compact, the `emitContextPct`
|
|
167
|
+
* helper that drives the live context-fill bar, and the pre-flight
|
|
168
|
+
* itself all need this number; previously each one walked the same
|
|
169
|
+
* messages/system/tools arrays independently. Stashing it here lets
|
|
170
|
+
* the three call sites share a single compute per iteration.
|
|
171
|
+
*
|
|
172
|
+
* The value is the **uncalibrated** total. Callers that want the
|
|
173
|
+
* calibrated number apply the per-(provider,model) ratio themselves.
|
|
174
|
+
*/
|
|
175
|
+
lastRequestTokens: number | undefined;
|
|
176
|
+
constructor(init: ContextInit);
|
|
177
|
+
/**
|
|
178
|
+
* Observable wrapper over the mutable conversation state. Lazy so
|
|
179
|
+
* subsystems that don't subscribe pay nothing. Mutations made directly
|
|
180
|
+
* on `ctx.messages` / `ctx.todos` are still visible through this
|
|
181
|
+
* wrapper's read API (it holds a reference, not a copy) but only
|
|
182
|
+
* mutations that go through `state.appendMessage()` etc. fire
|
|
183
|
+
* `onChange`. New code should prefer the wrapper API.
|
|
184
|
+
*/
|
|
185
|
+
private _state;
|
|
186
|
+
get state(): ConversationState;
|
|
187
|
+
/**
|
|
188
|
+
* Register a teardown hook tied to the current run's abort signal.
|
|
189
|
+
* Hooks registered before a run starts are stored and fired when the
|
|
190
|
+
* next run ends; there is no immediate fire when no run is active.
|
|
191
|
+
*
|
|
192
|
+
* **Scope:** these hooks fire on the **whole agent run's** abort, not on
|
|
193
|
+
* an individual tool call. For per-tool teardown of resources owned by
|
|
194
|
+
* the tool author (child processes, handles), prefer `Tool.cleanup` —
|
|
195
|
+
* see its JSDoc for the full rule.
|
|
196
|
+
*/
|
|
197
|
+
private abortHooks;
|
|
198
|
+
registerAbortHook(fn: () => void | Promise<void>): () => void;
|
|
199
|
+
drainAbortHooks(): Promise<void>;
|
|
200
|
+
/**
|
|
201
|
+
* Record that a file's content was seen / mtime was observed.
|
|
202
|
+
*
|
|
203
|
+
* `source` controls which tracking set is populated — and therefore whether
|
|
204
|
+
* the permission policy's write-smart-bypass (step 7) will auto-approve a
|
|
205
|
+
* subsequent `write` to this path:
|
|
206
|
+
*
|
|
207
|
+
* - `'user'` (default): the model/user saw the content (via `read`, or an
|
|
208
|
+
* edit's auto-read that surfaced it). Adds to `readFiles` → bypass applies.
|
|
209
|
+
* - `'write'`: a tool wrote the file (`edit`/`write`) and is recording the
|
|
210
|
+
* new mtime so subsequent edits detect external modification. Adds to
|
|
211
|
+
* `writtenFiles` only — the bypass does NOT apply, because the user never
|
|
212
|
+
* approved the new content (P1 #1, before-release.md).
|
|
213
|
+
*
|
|
214
|
+
* `fileMtimes` is updated in both cases so mtime-based staleness checks work.
|
|
215
|
+
*
|
|
216
|
+
* `contentHash` (sha-256 hex of the exact content seen) is optional so
|
|
217
|
+
* existing callers keep working. When provided it is stored in `fileHashes`
|
|
218
|
+
* and becomes the authoritative staleness arbiter for later edits. When
|
|
219
|
+
* omitted, a previously stored hash survives only if the observed mtime is
|
|
220
|
+
* unchanged — a different mtime with no fresh hash means the content may
|
|
221
|
+
* have changed, so the stale hash is dropped and staleness checks fall back
|
|
222
|
+
* to mtime comparison.
|
|
223
|
+
*/
|
|
224
|
+
recordRead(absPath: string, mtimeMs: number, source?: 'user' | 'write', contentHash?: string): void;
|
|
225
|
+
/** Clear accumulated file-read metadata after compaction or at boundaries
|
|
226
|
+
* where stale read history could cause tools to skip legitimate re-reads.
|
|
227
|
+
* The agent re-populates this naturally on the next file access. */
|
|
228
|
+
clearFileTracking(): void;
|
|
229
|
+
/**
|
|
230
|
+
* Record a structured side effect for the audit trail (P2 #5).
|
|
231
|
+
* Called by tools that perform non-filesystem mutations (bash, install,
|
|
232
|
+
* fetch) so /diag and session replay can show what the agent did beyond
|
|
233
|
+
* file edits.
|
|
234
|
+
*
|
|
235
|
+
* Unlike recordFileChange(), this does NOT support undo — it is purely
|
|
236
|
+
* for observability and audit. The event is appended to the session
|
|
237
|
+
* JSONL fire-and-forget; errors are swallowed so recording never blocks
|
|
238
|
+
* tool execution.
|
|
239
|
+
*/
|
|
240
|
+
recordSideEffect(sideEffect: import('../types/side-effect.js').SideEffect): void;
|
|
241
|
+
/**
|
|
242
|
+
* True if the model/user has explicitly seen this file's content via `read`
|
|
243
|
+
* (or an edit auto-read). Tool-only writes (`source: 'write'`) do NOT count
|
|
244
|
+
* — this is the source of truth for the permission policy's write bypass.
|
|
245
|
+
*/
|
|
246
|
+
hasRead(absPath: string): boolean;
|
|
247
|
+
/** True if `edit`/`write` wrote this file in the current session. */
|
|
248
|
+
hasWritten(absPath: string): boolean;
|
|
249
|
+
lastReadMtime(absPath: string): number | undefined;
|
|
250
|
+
/** sha-256 (hex) of the content at the last recorded read/write, if the
|
|
251
|
+
* recording tool supplied one. See `fileHashes` for drop semantics. */
|
|
252
|
+
lastReadHash(absPath: string): string | undefined;
|
|
253
|
+
/**
|
|
254
|
+
* Change the working directory for path resolution. Resolves relative paths
|
|
255
|
+
* against `projectRoot` and validates the result is within the project root.
|
|
256
|
+
* Fires all registered `onWorkingDirChanged` callbacks.
|
|
257
|
+
* Returns the resolved absolute path.
|
|
258
|
+
*/
|
|
259
|
+
setWorkingDir(dir: string): string;
|
|
260
|
+
/**
|
|
261
|
+
* Register a callback that fires when the working directory changes.
|
|
262
|
+
* Returns an unsubscribe function. Callbacks are fired synchronously
|
|
263
|
+
* inside `setWorkingDir()` — errors in callbacks are swallowed so one
|
|
264
|
+
* bad listener doesn't prevent others from executing.
|
|
265
|
+
*/
|
|
266
|
+
onWorkingDirChanged(cb: (newDir: string, oldDir: string) => void): () => void;
|
|
267
|
+
usage(): Usage;
|
|
268
|
+
}
|
|
269
|
+
//# sourceMappingURL=context.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"context.d.ts","sourceRoot":"","sources":["../../src/core/context.ts"],"names":[],"mappings":"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"}
|
|
@@ -0,0 +1,92 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Continue-intent detection + continuation resolution.
|
|
3
|
+
*
|
|
4
|
+
* ## Problem
|
|
5
|
+
*
|
|
6
|
+
* Users frequently type a bare "continue" (or "devam", "go on", "keep going")
|
|
7
|
+
* to nudge the agent forward without supplying any new instruction. On its own
|
|
8
|
+
* that word carries no information about *what* to continue — the model has to
|
|
9
|
+
* re-derive "what was next" from history, which drifts as the context window is
|
|
10
|
+
* compacted. Left unanchored, a run of "continue … continue … continue" turns
|
|
11
|
+
* into an ever-vaguer manual loop: the model repeats work, declares completion
|
|
12
|
+
* prematurely, or wanders.
|
|
13
|
+
*
|
|
14
|
+
* ## Approach
|
|
15
|
+
*
|
|
16
|
+
* A bare "continue" is not new information — it points at an *existing* goal.
|
|
17
|
+
* So instead of asking the model to remember a hidden per-message marker, we
|
|
18
|
+
* resolve the continuation against the state we already keep:
|
|
19
|
+
*
|
|
20
|
+
* 1. **Open todos** — the strongest, most durable anchor. Survives context
|
|
21
|
+
* compaction (todos are re-injected each turn) and goal.json persistence.
|
|
22
|
+
* "continue" = resume the next open todo.
|
|
23
|
+
* 2. **Parsed `<nextsteps>` suggestions** — the menu surfaced after the last
|
|
24
|
+
* completed turn (already extracted and stored by the surface's
|
|
25
|
+
* suggestion store). "continue" = do suggestion #1.
|
|
26
|
+
* 3. **Open continuation** — no explicit task is queued, but the user still
|
|
27
|
+
* wants work to proceed. We inject an instruction that tells the model to
|
|
28
|
+
* pick the single most valuable next step itself and carry it out — while
|
|
29
|
+
* explicitly forbidding fabricated busywork. This is what keeps "continue"
|
|
30
|
+
* from ever dead-ending.
|
|
31
|
+
*
|
|
32
|
+
* This module is pure and surface-agnostic: detection takes the raw string,
|
|
33
|
+
* resolution takes already-collected data (todos + parsed suggestion strings).
|
|
34
|
+
* The REPL and TUI wire it in at the point where a user message becomes an
|
|
35
|
+
* agent run, *before* prompt refinement — a bare "continue" has nothing
|
|
36
|
+
* meaningful to refine, and refining it would only add latency and drift.
|
|
37
|
+
*
|
|
38
|
+
* The three triggers of the same continuation machinery — the user typing
|
|
39
|
+
* "continue", the model emitting the `[continue]` marker (see
|
|
40
|
+
* {@link parseContinueDirective}), and an autonomy tick — all ultimately want
|
|
41
|
+
* the same thing: advance the plan. This module is the manual-trigger path.
|
|
42
|
+
*/
|
|
43
|
+
import type { TodoItem } from './context.js';
|
|
44
|
+
/**
|
|
45
|
+
* True when `raw` is a bare "continue"-style nudge and nothing else.
|
|
46
|
+
*
|
|
47
|
+
* Strict by construction: the message must normalize to exactly one of
|
|
48
|
+
* {@link CONTINUE_PHRASES}. Anything with additional substance ("continue but
|
|
49
|
+
* skip tests", "go on to the next file and commit") normalizes to a string
|
|
50
|
+
* outside the set and returns false, so it is handled as an ordinary message.
|
|
51
|
+
*/
|
|
52
|
+
export declare function detectContinueIntent(raw: string): boolean;
|
|
53
|
+
/**
|
|
54
|
+
* Where the resolved continuation came from:
|
|
55
|
+
* - `todo` — resumed the next open todo (strongest anchor)
|
|
56
|
+
* - `suggestion` — took the top parsed `<nextsteps>` suggestion
|
|
57
|
+
* - `open` — no explicit task queued; model self-determines the step
|
|
58
|
+
*/
|
|
59
|
+
export type ContinuationSource = 'todo' | 'suggestion' | 'open';
|
|
60
|
+
export interface ContinuationInput {
|
|
61
|
+
/** Live todo list (`ctx.todos`). */
|
|
62
|
+
todos?: readonly TodoItem[] | undefined;
|
|
63
|
+
/** Already-parsed `<nextsteps>` suggestion strings from the surface store. */
|
|
64
|
+
suggestions?: readonly string[] | undefined;
|
|
65
|
+
}
|
|
66
|
+
export interface ResolvedContinuation {
|
|
67
|
+
source: ContinuationSource;
|
|
68
|
+
/**
|
|
69
|
+
* The concrete instruction injected as the next user turn in place of the
|
|
70
|
+
* bare "continue". Written for the model, not the human.
|
|
71
|
+
*/
|
|
72
|
+
text: string;
|
|
73
|
+
/**
|
|
74
|
+
* Short one-line label for the surface to echo (dim) so the human sees what
|
|
75
|
+
* "continue" resolved to without the full injected paragraph.
|
|
76
|
+
*/
|
|
77
|
+
label: string;
|
|
78
|
+
}
|
|
79
|
+
/**
|
|
80
|
+
* Resolve what a bare "continue" should do, given the current run state.
|
|
81
|
+
*
|
|
82
|
+
* The ladder — first match wins:
|
|
83
|
+
* 1. an open todo (in-progress preferred, else the first pending),
|
|
84
|
+
* 2. the top stored suggestion,
|
|
85
|
+
* 3. an open continuation that never dead-ends.
|
|
86
|
+
*
|
|
87
|
+
* Always returns a usable {@link ResolvedContinuation}; the `open` branch is
|
|
88
|
+
* the guaranteed fallback so "continue" keeps work moving even with no todos
|
|
89
|
+
* and no suggestions.
|
|
90
|
+
*/
|
|
91
|
+
export declare function resolveContinuation(input: ContinuationInput): ResolvedContinuation;
|
|
92
|
+
//# sourceMappingURL=continue-intent.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"continue-intent.d.ts","sourceRoot":"","sources":["../../src/core/continue-intent.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;GAyCG;AAGH,OAAO,KAAK,EAAE,QAAQ,EAAE,MAAM,cAAc,CAAC;AA8H7C;;;;;;;GAOG;AACH,wBAAgB,oBAAoB,CAAC,GAAG,EAAE,MAAM,GAAG,OAAO,CASzD;AAID;;;;;GAKG;AACH,MAAM,MAAM,kBAAkB,GAAG,MAAM,GAAG,YAAY,GAAG,MAAM,CAAC;AAEhE,MAAM,WAAW,iBAAiB;IAChC,oCAAoC;IACpC,KAAK,CAAC,EAAE,SAAS,QAAQ,EAAE,GAAG,SAAS,CAAC;IACxC,8EAA8E;IAC9E,WAAW,CAAC,EAAE,SAAS,MAAM,EAAE,GAAG,SAAS,CAAC;CAC7C;AAED,MAAM,WAAW,oBAAoB;IACnC,MAAM,EAAE,kBAAkB,CAAC;IAC3B;;;OAGG;IACH,IAAI,EAAE,MAAM,CAAC;IACb;;;OAGG;IACH,KAAK,EAAE,MAAM,CAAC;CACf;AAQD;;;;;;;;;;;GAWG;AACH,wBAAgB,mBAAmB,CAAC,KAAK,EAAE,iBAAiB,GAAG,oBAAoB,CAgDlF"}
|
|
@@ -0,0 +1,96 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* L1-E: Autonomous continue — model-driven self-iteration continuation.
|
|
3
|
+
*
|
|
4
|
+
* In autonomous mode the model can signal "keep going without waiting for
|
|
5
|
+
* user input" by either:
|
|
6
|
+
*
|
|
7
|
+
* 1. **Tool call** — call `continue_to_next_iteration()` with no args.
|
|
8
|
+
* The tool returns `{ continue: true }` and sets
|
|
9
|
+
* `ctx.meta._autonomousContinue = true`. The agent loop detects this
|
|
10
|
+
* flag and re-runs the iteration instead of returning.
|
|
11
|
+
*
|
|
12
|
+
* 2. **Text marker** — include one of the below markers on its own line
|
|
13
|
+
* in the final text output (no tool call required):
|
|
14
|
+
*
|
|
15
|
+
* - `[continue]` — same as calling the tool; next iteration
|
|
16
|
+
* - `[next step]` — synonym for `[continue]`
|
|
17
|
+
* - `[proceed]` — synonym for `[continue]`
|
|
18
|
+
* - `[done]` — stop iterating; return to caller
|
|
19
|
+
*
|
|
20
|
+
* The parser matches `^\s*(?:\[continue\]|\[next step\]|\[proceed\]|\[done\])\s*$`
|
|
21
|
+
* so the marker must occupy its own line (possibly indented).
|
|
22
|
+
*
|
|
23
|
+
* Text markers are checked in `processResponse()` BEFORE the loop exit
|
|
24
|
+
* condition, so the model can emit `[continue]` as part of its final text
|
|
25
|
+
* block and the loop re-runs seamlessly.
|
|
26
|
+
*
|
|
27
|
+
* The `_autonomousContinue` flag lives in `ctx.meta` — it is cleared at
|
|
28
|
+
* the start of each iteration so a stale flag from a prior run cannot
|
|
29
|
+
* cause spurious continuation.
|
|
30
|
+
*
|
|
31
|
+
* @example
|
|
32
|
+
* ```typescript
|
|
33
|
+
* // Enable autonomous continuation on the Agent
|
|
34
|
+
* const agent = new Agent({
|
|
35
|
+
* // ... other options
|
|
36
|
+
* autonomousContinue: true, // enable text-marker parsing
|
|
37
|
+
* });
|
|
38
|
+
*
|
|
39
|
+
* // The model can now end a response with:
|
|
40
|
+
* // [continue]
|
|
41
|
+
* // and the agent will immediately start the next iteration without
|
|
42
|
+
* // returning to the caller.
|
|
43
|
+
* ```
|
|
44
|
+
*/
|
|
45
|
+
import type { Context } from './context.js';
|
|
46
|
+
import type { Tool } from '../types/tool.js';
|
|
47
|
+
/**
|
|
48
|
+
* Directive emitted by the model to control the autonomous loop.
|
|
49
|
+
*
|
|
50
|
+
* `continue` — halt the current agent.run() and signal to the outer
|
|
51
|
+
* runner (e.g. AutonomousRunner) that it should re-invoke
|
|
52
|
+
* agent.run() immediately with a fresh continuation prompt.
|
|
53
|
+
*
|
|
54
|
+
* `stop` — halt and signal the outer runner to NOT continue.
|
|
55
|
+
* The agent.run() returns `{ status: 'done' }` as normal.
|
|
56
|
+
*
|
|
57
|
+
* `none` — no directive present; outer runner uses its own
|
|
58
|
+
* `doneCondition` to decide.
|
|
59
|
+
*/
|
|
60
|
+
export type ContinueDirective = 'continue' | 'stop' | 'none';
|
|
61
|
+
/**
|
|
62
|
+
* Parse a `ContinueDirective` from raw assistant text.
|
|
63
|
+
*
|
|
64
|
+
* Matches markers on their own line (with optional leading/trailing
|
|
65
|
+
* whitespace). Case-insensitive. Returns `'none'` when no marker found.
|
|
66
|
+
*
|
|
67
|
+
* The marker must be on its own line to avoid false positives — e.g.
|
|
68
|
+
* "remember to use [continue] in your next email" does NOT trigger it.
|
|
69
|
+
*/
|
|
70
|
+
export declare function parseContinueDirective(text: string): ContinueDirective;
|
|
71
|
+
/**
|
|
72
|
+
* Set the autonomous continue flag in the context.
|
|
73
|
+
* Called by `makeContinueToNextIterationTool` when the model invokes it.
|
|
74
|
+
*/
|
|
75
|
+
export declare function setAutonomousContinue(ctx: Context): void;
|
|
76
|
+
/**
|
|
77
|
+
* Clear the autonomous continue flag at the start of each iteration.
|
|
78
|
+
* Called from `Agent.run()` before the loop body.
|
|
79
|
+
*/
|
|
80
|
+
export declare function clearAutonomousContinue(ctx: Context): void;
|
|
81
|
+
/**
|
|
82
|
+
* Read and clear the autonomous continue flag in one call.
|
|
83
|
+
* Returns `true` if the flag was set; `false` otherwise.
|
|
84
|
+
*/
|
|
85
|
+
export declare function consumeAutonomousContinue(ctx: Context): boolean;
|
|
86
|
+
/**
|
|
87
|
+
* Built-in tool that lets the model explicitly request the next iteration.
|
|
88
|
+
*
|
|
89
|
+
* When called, the agent loop detects the flag and re-runs instead of
|
|
90
|
+
* returning to the caller. This is the explicit counterpart to the
|
|
91
|
+
* `[continue]` text marker.
|
|
92
|
+
*
|
|
93
|
+
* The tool has no side effects and returns `{ continue: true }`.
|
|
94
|
+
*/
|
|
95
|
+
export declare function makeContinueToNextIterationTool(): Tool;
|
|
96
|
+
//# sourceMappingURL=continue-to-next-iteration.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"continue-to-next-iteration.d.ts","sourceRoot":"","sources":["../../src/core/continue-to-next-iteration.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;GA2CG;AACH,OAAO,KAAK,EAAE,OAAO,EAAE,MAAM,cAAc,CAAC;AAE5C,OAAO,KAAK,EAAE,IAAI,EAAE,MAAM,kBAAkB,CAAC;AAE7C;;;;;;;;;;;;GAYG;AACH,MAAM,MAAM,iBAAiB,GAAG,UAAU,GAAG,MAAM,GAAG,MAAM,CAAC;AAE7D;;;;;;;;GAQG;AACH,wBAAgB,sBAAsB,CAAC,IAAI,EAAE,MAAM,GAAG,iBAAiB,CAqCtE;AAaD;;;GAGG;AACH,wBAAgB,qBAAqB,CAAC,GAAG,EAAE,OAAO,GAAG,IAAI,CAExD;AAED;;;GAGG;AACH,wBAAgB,uBAAuB,CAAC,GAAG,EAAE,OAAO,GAAG,IAAI,CAE1D;AAED;;;GAGG;AACH,wBAAgB,yBAAyB,CAAC,GAAG,EAAE,OAAO,GAAG,OAAO,CAI/D;AAED;;;;;;;;GAQG;AACH,wBAAgB,+BAA+B,IAAI,IAAI,CAqBtD"}
|
|
@@ -0,0 +1,96 @@
|
|
|
1
|
+
import type { ContentBlock } from '../types/blocks.js';
|
|
2
|
+
import type { Message } from '../types/messages.js';
|
|
3
|
+
import type { Context, TodoItem } from './context.js';
|
|
4
|
+
/**
|
|
5
|
+
* Observable wrapper for mutable conversation state. Production code should
|
|
6
|
+
* mutate messages, todos, and meta through this API so subscribers see a
|
|
7
|
+
* deterministic change stream. The underlying Context arrays are still
|
|
8
|
+
* exposed for read compatibility and legacy tests.
|
|
9
|
+
*
|
|
10
|
+
* L1-A invariant: direct mutations of `ctx.messages` / `ctx.todos` bypass
|
|
11
|
+
* the observer layer. Prefer `ctx.state.appendMessage()` etc. to keep
|
|
12
|
+
* subscribers in sync. The compatibility arrays exist so existing code
|
|
13
|
+
* that reads `ctx.messages` directly still works — they are NOT safe for
|
|
14
|
+
* external writes.
|
|
15
|
+
*/
|
|
16
|
+
export type StateChange = {
|
|
17
|
+
kind: 'message_appended';
|
|
18
|
+
message: Message;
|
|
19
|
+
} | {
|
|
20
|
+
kind: 'messages_replaced';
|
|
21
|
+
messages: readonly Message[];
|
|
22
|
+
} | {
|
|
23
|
+
kind: 'message_updated';
|
|
24
|
+
index: number;
|
|
25
|
+
message: Message;
|
|
26
|
+
} | {
|
|
27
|
+
kind: 'todos_replaced';
|
|
28
|
+
todos: readonly TodoItem[];
|
|
29
|
+
} | {
|
|
30
|
+
kind: 'meta_set';
|
|
31
|
+
key: string;
|
|
32
|
+
value: unknown;
|
|
33
|
+
} | {
|
|
34
|
+
kind: 'meta_deleted';
|
|
35
|
+
key: string;
|
|
36
|
+
} | {
|
|
37
|
+
kind: 'meta_cleared';
|
|
38
|
+
};
|
|
39
|
+
export type StateChangeHandler = (change: StateChange, state: ConversationState) => void;
|
|
40
|
+
export interface ReadonlyConversationState {
|
|
41
|
+
readonly messages: readonly Message[];
|
|
42
|
+
readonly todos: readonly TodoItem[];
|
|
43
|
+
readonly meta: Readonly<Record<string, unknown>>;
|
|
44
|
+
}
|
|
45
|
+
export declare class ConversationState {
|
|
46
|
+
private readonly ctx;
|
|
47
|
+
private readonly listeners;
|
|
48
|
+
private _revision;
|
|
49
|
+
constructor(ctx: Context);
|
|
50
|
+
get messages(): readonly Message[];
|
|
51
|
+
get todos(): readonly TodoItem[];
|
|
52
|
+
get meta(): Readonly<Record<string, unknown>>;
|
|
53
|
+
/** Monotonic mutation counter for consumers that need to detect rewrites. */
|
|
54
|
+
get revision(): number;
|
|
55
|
+
/**
|
|
56
|
+
* Cheap immutable snapshot. Useful for tests and for compaction passes
|
|
57
|
+
* that need a stable view across an async boundary.
|
|
58
|
+
*
|
|
59
|
+
* Uses shallow-freeze instead of deep-freeze: only the wrapper object
|
|
60
|
+
* and the three content arrays are frozen. Individual message/todo
|
|
61
|
+
* objects are NOT recursively frozen — they are reconstructed via
|
|
62
|
+
* spread copies and are immutable by convention. This cuts the freeze
|
|
63
|
+
* count from O(n·m·d) (n=messages, m=content blocks, d=depth) to O(1).
|
|
64
|
+
*/
|
|
65
|
+
snapshot(): ReadonlyConversationState;
|
|
66
|
+
appendMessage(message: Message): void;
|
|
67
|
+
/**
|
|
68
|
+
* Append a content block to the trailing user message's content array.
|
|
69
|
+
* Mutates only that one message (a single indexed assignment) — avoids
|
|
70
|
+
* the O(n) array copy + token-cache re-walk that `replaceMessages()`
|
|
71
|
+
* would do for a single-message edit. Used by the agent loop to fold
|
|
72
|
+
* btw-notes / queued-mailbox blocks into the conversation.
|
|
73
|
+
*
|
|
74
|
+
* The block is folded only into a *user* message (preserves
|
|
75
|
+
* user/assistant alternation between tool batches). Returns false when
|
|
76
|
+
* there is no trailing user message to fold into — callers should
|
|
77
|
+
* `appendMessage({ role: 'user', content: [block] })` instead.
|
|
78
|
+
*/
|
|
79
|
+
appendBlockToLastUserMessage(block: ContentBlock): boolean;
|
|
80
|
+
replaceMessages(messages: Message[]): void;
|
|
81
|
+
replaceTodos(todos: TodoItem[]): void;
|
|
82
|
+
setMeta(key: string, value: unknown): void;
|
|
83
|
+
deleteMeta(key: string): void;
|
|
84
|
+
clearMeta(): void;
|
|
85
|
+
/**
|
|
86
|
+
* Subscribe to mutations that go through this wrapper. Direct mutations of
|
|
87
|
+
* the compatibility arrays are intentionally not observed.
|
|
88
|
+
*/
|
|
89
|
+
onChange(listener: StateChangeHandler): () => void;
|
|
90
|
+
private emit;
|
|
91
|
+
}
|
|
92
|
+
/**
|
|
93
|
+
* Convenience constructor. The wrapper holds a reference, not a copy.
|
|
94
|
+
*/
|
|
95
|
+
export declare function wrapAsState(ctx: Context): ConversationState;
|
|
96
|
+
//# sourceMappingURL=conversation-state.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"conversation-state.d.ts","sourceRoot":"","sources":["../../src/core/conversation-state.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,YAAY,EAAE,MAAM,oBAAoB,CAAC;AACvD,OAAO,KAAK,EAAE,OAAO,EAAE,MAAM,sBAAsB,CAAC;AAEpD,OAAO,KAAK,EAAE,OAAO,EAAE,QAAQ,EAAE,MAAM,cAAc,CAAC;AAEtD;;;;;;;;;;;GAWG;AACH,MAAM,MAAM,WAAW,GACnB;IAAE,IAAI,EAAE,kBAAkB,CAAC;IAAC,OAAO,EAAE,OAAO,CAAA;CAAE,GAC9C;IAAE,IAAI,EAAE,mBAAmB,CAAC;IAAC,QAAQ,EAAE,SAAS,OAAO,EAAE,CAAA;CAAE,GAC3D;IAAE,IAAI,EAAE,iBAAiB,CAAC;IAAC,KAAK,EAAE,MAAM,CAAC;IAAC,OAAO,EAAE,OAAO,CAAA;CAAE,GAC5D;IAAE,IAAI,EAAE,gBAAgB,CAAC;IAAC,KAAK,EAAE,SAAS,QAAQ,EAAE,CAAA;CAAE,GACtD;IAAE,IAAI,EAAE,UAAU,CAAC;IAAC,GAAG,EAAE,MAAM,CAAC;IAAC,KAAK,EAAE,OAAO,CAAA;CAAE,GACjD;IAAE,IAAI,EAAE,cAAc,CAAC;IAAC,GAAG,EAAE,MAAM,CAAA;CAAE,GACrC;IAAE,IAAI,EAAE,cAAc,CAAA;CAAE,CAAC;AAE7B,MAAM,MAAM,kBAAkB,GAAG,CAAC,MAAM,EAAE,WAAW,EAAE,KAAK,EAAE,iBAAiB,KAAK,IAAI,CAAC;AAEzF,MAAM,WAAW,yBAAyB;IACxC,QAAQ,CAAC,QAAQ,EAAE,SAAS,OAAO,EAAE,CAAC;IACtC,QAAQ,CAAC,KAAK,EAAE,SAAS,QAAQ,EAAE,CAAC;IACpC,QAAQ,CAAC,IAAI,EAAE,QAAQ,CAAC,MAAM,CAAC,MAAM,EAAE,OAAO,CAAC,CAAC,CAAC;CAClD;AAED,qBAAa,iBAAiB;IAC5B,OAAO,CAAC,QAAQ,CAAC,GAAG,CAAU;IAC9B,OAAO,CAAC,QAAQ,CAAC,SAAS,CAAiC;IAC3D,OAAO,CAAC,SAAS,CAAK;IAEtB,YAAY,GAAG,EAAE,OAAO,EAEvB;IAED,IAAI,QAAQ,IAAI,SAAS,OAAO,EAAE,CAEjC;IAED,IAAI,KAAK,IAAI,SAAS,QAAQ,EAAE,CAE/B;IAED,IAAI,IAAI,IAAI,QAAQ,CAAC,MAAM,CAAC,MAAM,EAAE,OAAO,CAAC,CAAC,CAE5C;IAED,6EAA6E;IAC7E,IAAI,QAAQ,IAAI,MAAM,CAErB;IAED;;;;;;;;;OASG;IACH,QAAQ,IAAI,yBAAyB,CAUpC;IAED,aAAa,CAAC,OAAO,EAAE,OAAO,GAAG,IAAI,CASpC;IAED;;;;;;;;;;;OAWG;IACH,4BAA4B,CAAC,KAAK,EAAE,YAAY,GAAG,OAAO,CAiBzD;IAED,eAAe,CAAC,QAAQ,EAAE,OAAO,EAAE,GAAG,IAAI,CAiDzC;IAED,YAAY,CAAC,KAAK,EAAE,QAAQ,EAAE,GAAG,IAAI,CAUpC;IAED,OAAO,CAAC,GAAG,EAAE,MAAM,EAAE,KAAK,EAAE,OAAO,GAAG,IAAI,CAGzC;IAED,UAAU,CAAC,GAAG,EAAE,MAAM,GAAG,IAAI,CAI5B;IAED,SAAS,IAAI,IAAI,CAKhB;IAED;;;OAGG;IACH,QAAQ,CAAC,QAAQ,EAAE,kBAAkB,GAAG,MAAM,IAAI,CAGjD;IAED,OAAO,CAAC,IAAI;CAWb;AAED;;GAEG;AACH,wBAAgB,WAAW,CAAC,GAAG,EAAE,OAAO,GAAG,iBAAiB,CAE3D"}
|