@wrongstack/core 0.284.0 → 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
package/dist/index--Gm41aBJ.d.ts
DELETED
|
@@ -1,671 +0,0 @@
|
|
|
1
|
-
import { s as TextBlock, g as Tool, B as ToolUseBlock, d as Context, D as ToolResultBlock, n as RiskTier, c as Request, e as Response, P as Provider, i as ContentBlock, ay as WrongStackError } from './tool-BNlnIJvo.js';
|
|
2
|
-
import { L as Logger } from './logger-B63L5bTg.js';
|
|
3
|
-
import { B as BuildContext, H as HookRegistry, a as Renderer, P as Pipeline, C as Container } from './pipeline-DGDyIohT.js';
|
|
4
|
-
import { a as PermissionDecision, P as PermissionPolicy } from './permission-ByDKXEcG.js';
|
|
5
|
-
import { ac as ToolDescriptionMode, ad as ToolDescriptionModeConfig, H as HookEvent, ae as ToolResultRenderModeConfig, W as WireFamily, P as ProviderConfig, $ as LoopDetectionConfig } from './config-MRqn1V-u.js';
|
|
6
|
-
import { T as Tracer } from './observability-D-HZN_mF.js';
|
|
7
|
-
import { E as EventBus } from './events-Bgnh43r9.js';
|
|
8
|
-
import { S as SecretScrubber } from './secret-scrubber-3MHDDAtm.js';
|
|
9
|
-
|
|
10
|
-
/**
|
|
11
|
-
* A contributor that injects additional TextBlocks into the system prompt.
|
|
12
|
-
*
|
|
13
|
-
* Contributors are called on every `build()` in registration order.
|
|
14
|
-
* Their output is inserted after the core blocks (identity, tool usage,
|
|
15
|
-
* environment) but before the mode and plan blocks. This lets plugins
|
|
16
|
-
* inject ephemeral context — current state, recent events, plugin-specific
|
|
17
|
-
* instructions — without replacing the entire system prompt builder.
|
|
18
|
-
*
|
|
19
|
-
* @example
|
|
20
|
-
* ```ts
|
|
21
|
-
* api.extensions.registerSystemPromptContributor(async (ctx) => {
|
|
22
|
-
* return [{ type: 'text', text: '## My Plugin Context\n...' }];
|
|
23
|
-
* });
|
|
24
|
-
* ```
|
|
25
|
-
*/
|
|
26
|
-
type SystemPromptContributor = (ctx: BuildContext) => Promise<TextBlock[]>;
|
|
27
|
-
|
|
28
|
-
/**
|
|
29
|
-
* A function that wraps (decorates) an existing tool. Receives the
|
|
30
|
-
* original tool and returns a modified version — typically the same
|
|
31
|
-
* tool with a wrapped `execute` / `executeStream`, or with modified
|
|
32
|
-
* metadata (description, permission).
|
|
33
|
-
*
|
|
34
|
-
* Use `ToolRegistry.wrap()` to apply; the wrapper is called immediately
|
|
35
|
-
* and the result replaces the registered tool. Multiple wraps stack —
|
|
36
|
-
* each wrapper receives the output of the previous.
|
|
37
|
-
*
|
|
38
|
-
* @example
|
|
39
|
-
* ```ts
|
|
40
|
-
* registry.wrap('read', (original) => ({
|
|
41
|
-
* ...original,
|
|
42
|
-
* async execute(input, ctx, opts) {
|
|
43
|
-
* console.log('read called');
|
|
44
|
-
* return original.execute(input, ctx, opts);
|
|
45
|
-
* }
|
|
46
|
-
* }));
|
|
47
|
-
* ```
|
|
48
|
-
*/
|
|
49
|
-
type ToolWrapper = (tool: Tool) => Tool;
|
|
50
|
-
declare class ToolRegistry {
|
|
51
|
-
private readonly tools;
|
|
52
|
-
private readonly descriptionModes;
|
|
53
|
-
/**
|
|
54
|
-
* Set of tool names that are disabled (hidden from list(), get() and all
|
|
55
|
-
* other public accessors). The underlying tool data stays in `_tools` so
|
|
56
|
-
* re-enable is a constant-time operation.
|
|
57
|
-
*/
|
|
58
|
-
private readonly _disabled;
|
|
59
|
-
/** Monotonic version bumped on every registry mutation. */
|
|
60
|
-
private _version;
|
|
61
|
-
/** Cached `list()` result, frozen after build. Invalidated on _version change. */
|
|
62
|
-
private _listSnapshot;
|
|
63
|
-
private _listSnapshotVersion;
|
|
64
|
-
/** Pre-compute tool definition token estimate once at registration time. */
|
|
65
|
-
private _stampDefTokens;
|
|
66
|
-
/** Apply the description mode transform and stamp token estimates. */
|
|
67
|
-
private _prepareForStorage;
|
|
68
|
-
register(tool: Tool, owner?: string): void;
|
|
69
|
-
/**
|
|
70
|
-
* Attempt to register a tool. Returns true if successful, false if a tool
|
|
71
|
-
* with the same name is already registered. Useful in multi-agent or plugin
|
|
72
|
-
* scenarios where duplicate registration may be intentional.
|
|
73
|
-
*/
|
|
74
|
-
tryRegister(tool: Tool, owner?: string): boolean;
|
|
75
|
-
/**
|
|
76
|
-
* Bulk-register multiple tools at once. Each tool that conflicts with an
|
|
77
|
-
* existing registration is silently skipped — use `registerAllOrThrow`
|
|
78
|
-
* if you want it to throw on conflicts.
|
|
79
|
-
*/
|
|
80
|
-
registerAll(tools: Tool[], owner?: string): void;
|
|
81
|
-
/**
|
|
82
|
-
* Bulk-register and throw on the first conflict. Use when you need
|
|
83
|
-
* strict registration (e.g. at boot time).
|
|
84
|
-
*/
|
|
85
|
-
registerAllOrThrow(tools: Tool[], owner?: string): void;
|
|
86
|
-
/**
|
|
87
|
-
* Register a tool as a default. If the tool name is already registered,
|
|
88
|
-
* this is a no-op — the existing registration (from core or another
|
|
89
|
-
* plugin) takes precedence. Use `override` to intentionally replace.
|
|
90
|
-
*/
|
|
91
|
-
registerDefault(tool: Tool, owner?: string): void;
|
|
92
|
-
unregister(name: string): boolean;
|
|
93
|
-
/**
|
|
94
|
-
* Override an existing tool. Throws if the tool is not already registered.
|
|
95
|
-
* Plugins use this to replace built-in tools with custom implementations.
|
|
96
|
-
*/
|
|
97
|
-
override(name: string, tool: Tool, owner?: string): void;
|
|
98
|
-
/**
|
|
99
|
-
* Wrap (decorate) an existing tool. The wrapper receives the current
|
|
100
|
-
* tool and must return a new tool — typically the same tool with a
|
|
101
|
-
* wrapped `execute` or `executeStream`. Throws if the tool is not
|
|
102
|
-
* registered.
|
|
103
|
-
*
|
|
104
|
-
* Multiple wraps stack: each wrapper gets the output of the previous.
|
|
105
|
-
*
|
|
106
|
-
* @example
|
|
107
|
-
* registry.wrap('bash', (t) => ({ ...t, permission: 'confirm' }));
|
|
108
|
-
*/
|
|
109
|
-
wrap(name: string, wrapper: ToolWrapper, owner?: string): void;
|
|
110
|
-
setDescriptionMode(name: string, mode: ToolDescriptionMode): boolean;
|
|
111
|
-
getDescriptionMode(name: string): ToolDescriptionMode;
|
|
112
|
-
applyDescriptionModes(modes?: ToolDescriptionModeConfig): {
|
|
113
|
-
applied: number;
|
|
114
|
-
missing: string[];
|
|
115
|
-
};
|
|
116
|
-
get(name: string): Tool | undefined;
|
|
117
|
-
ownerOf(name: string): string | undefined;
|
|
118
|
-
/**
|
|
119
|
-
* Disable a tool by name. The tool is removed from all public accessors
|
|
120
|
-
* (list(), get(), listByCategory(), listWithOwner()) so it does NOT
|
|
121
|
-
* appear in the system prompt or provider request. The underlying
|
|
122
|
-
* registration is preserved in memory — use `enable()` to restore it.
|
|
123
|
-
*
|
|
124
|
-
* @returns `true` if the tool was found and disabled; `false` if the
|
|
125
|
-
* tool is not registered or is already disabled.
|
|
126
|
-
*/
|
|
127
|
-
disable(name: string): boolean;
|
|
128
|
-
/**
|
|
129
|
-
* Re-enable a previously disabled tool. The tool reappears in all
|
|
130
|
-
* public accessors and will be included in the next system prompt /
|
|
131
|
-
* provider request.
|
|
132
|
-
*
|
|
133
|
-
* @returns `true` if the tool was disabled and is now re-enabled;
|
|
134
|
-
* `false` if the tool was not disabled.
|
|
135
|
-
*/
|
|
136
|
-
enable(name: string): boolean;
|
|
137
|
-
/**
|
|
138
|
-
* Re-enable ALL currently disabled tools at once. Returns the number
|
|
139
|
-
* of tools that were re-enabled.
|
|
140
|
-
*/
|
|
141
|
-
enableAll(): number;
|
|
142
|
-
/**
|
|
143
|
-
* Check whether a tool is currently disabled.
|
|
144
|
-
*/
|
|
145
|
-
isDisabled(name: string): boolean;
|
|
146
|
-
/**
|
|
147
|
-
* Apply a list of tool names to disable. Tools not in the registry
|
|
148
|
-
* are silently ignored so config can reference future tools without
|
|
149
|
-
* error. Returns the number of tools actually disabled.
|
|
150
|
-
*/
|
|
151
|
-
applyDisabled(names: readonly string[]): number;
|
|
152
|
-
/**
|
|
153
|
-
* Return the list of all disabled tool entries (tool + owner). Useful
|
|
154
|
-
* for the /tools slash command to show disabled tools alongside
|
|
155
|
-
* enabled ones.
|
|
156
|
-
*/
|
|
157
|
-
listDisabled(): {
|
|
158
|
-
tool: Tool;
|
|
159
|
-
owner: string;
|
|
160
|
-
}[];
|
|
161
|
-
list(): Tool[];
|
|
162
|
-
/**
|
|
163
|
-
* Group tools by their `category` field. Tools without a category
|
|
164
|
-
* are placed under the key `""` (empty string). Returns a Map of
|
|
165
|
-
* category → tools, sorted by registration order within each category.
|
|
166
|
-
*/
|
|
167
|
-
listByCategory(): Map<string, Tool[]>;
|
|
168
|
-
listWithOwner(): {
|
|
169
|
-
tool: Tool;
|
|
170
|
-
owner: string;
|
|
171
|
-
}[];
|
|
172
|
-
clear(): void;
|
|
173
|
-
/**
|
|
174
|
-
* Return a new ToolRegistry with the same registered tools and owners.
|
|
175
|
-
* Useful for creating filtered copies in multi-agent scenarios.
|
|
176
|
-
*/
|
|
177
|
-
clone(): ToolRegistry;
|
|
178
|
-
}
|
|
179
|
-
|
|
180
|
-
/** Minimal run-state the runner reads. `Context` structurally satisfies it. */
|
|
181
|
-
interface HookRunEnv {
|
|
182
|
-
cwd: string;
|
|
183
|
-
signal?: AbortSignal | undefined;
|
|
184
|
-
}
|
|
185
|
-
interface HookRunnerOptions {
|
|
186
|
-
registry: HookRegistry;
|
|
187
|
-
logger?: Logger | undefined;
|
|
188
|
-
/**
|
|
189
|
-
* When false, ordinary hooks are skipped across every transport;
|
|
190
|
-
* `policy: true` enforcement hooks still run.
|
|
191
|
-
*/
|
|
192
|
-
allowNonPolicy?: boolean | undefined;
|
|
193
|
-
/** @deprecated Use `allowNonPolicy`; retained for API compatibility. */
|
|
194
|
-
allowShell?: boolean | undefined;
|
|
195
|
-
/** Resolves the active session id for the `HookInput` payload. */
|
|
196
|
-
sessionId?: (() => string) | undefined;
|
|
197
|
-
}
|
|
198
|
-
interface PreToolUseResult {
|
|
199
|
-
block?: boolean | undefined;
|
|
200
|
-
reason?: string | undefined;
|
|
201
|
-
/** Present only when a hook replaced the tool input. */
|
|
202
|
-
input?: Record<string, unknown>;
|
|
203
|
-
}
|
|
204
|
-
interface PromptResult {
|
|
205
|
-
block?: boolean | undefined;
|
|
206
|
-
reason?: string | undefined;
|
|
207
|
-
additionalContext?: string | undefined;
|
|
208
|
-
}
|
|
209
|
-
/**
|
|
210
|
-
* Drives the registered hooks at each lifecycle phase. Pure orchestration —
|
|
211
|
-
* the executor / pipeline / agent extension call the matching method and act on
|
|
212
|
-
* the returned decision. Fail-open hooks are skipped on failure; fail-closed
|
|
213
|
-
* policy hooks turn failures into explicit denials without prompting the user.
|
|
214
|
-
*/
|
|
215
|
-
declare class HookRunner {
|
|
216
|
-
private readonly opts;
|
|
217
|
-
private readonly registry;
|
|
218
|
-
constructor(opts: HookRunnerOptions);
|
|
219
|
-
/** Cheap guard so callers can skip building payloads when nothing listens. */
|
|
220
|
-
has(event: HookEvent): boolean;
|
|
221
|
-
preToolUse(toolName: string, toolInput: Record<string, unknown>, env: HookRunEnv): Promise<PreToolUseResult>;
|
|
222
|
-
postToolUse(toolName: string, toolInput: unknown, result: {
|
|
223
|
-
content: string;
|
|
224
|
-
isError: boolean;
|
|
225
|
-
}, env: HookRunEnv): Promise<{
|
|
226
|
-
additionalContext?: string | undefined;
|
|
227
|
-
contextAs?: 'inline' | 'separate';
|
|
228
|
-
}>;
|
|
229
|
-
userPromptSubmit(prompt: string, env: HookRunEnv): Promise<PromptResult>;
|
|
230
|
-
sessionStart(env: HookRunEnv): Promise<{
|
|
231
|
-
additionalContext?: string | undefined;
|
|
232
|
-
}>;
|
|
233
|
-
stop(env: HookRunEnv): Promise<void>;
|
|
234
|
-
private base;
|
|
235
|
-
private matching;
|
|
236
|
-
private invoke;
|
|
237
|
-
private invokeInProcess;
|
|
238
|
-
private failureOutcome;
|
|
239
|
-
private collectContext;
|
|
240
|
-
}
|
|
241
|
-
|
|
242
|
-
/**
|
|
243
|
-
* Output from a single tool execution.
|
|
244
|
-
*/
|
|
245
|
-
interface ToolExecutionOutput {
|
|
246
|
-
result: ToolResultBlock | ToolConfirmPendingResult;
|
|
247
|
-
tool?: Tool | undefined;
|
|
248
|
-
durationMs: number;
|
|
249
|
-
}
|
|
250
|
-
/**
|
|
251
|
-
* Result of running a batch of tools for a single agent iteration.
|
|
252
|
-
*/
|
|
253
|
-
interface ToolBatchResult {
|
|
254
|
-
outputs: ToolExecutionOutput[];
|
|
255
|
-
remainingBudget: number;
|
|
256
|
-
}
|
|
257
|
-
type ConfirmAwaiter = (tool: Tool, input: unknown, toolUseId: string, suggestedPattern: string) => Promise<'yes' | 'no' | 'always' | 'deny'>;
|
|
258
|
-
interface ToolExecutorOptions {
|
|
259
|
-
permissionPolicy: PermissionPolicy;
|
|
260
|
-
secretScrubber: SecretScrubber;
|
|
261
|
-
renderer?: Renderer | undefined;
|
|
262
|
-
/**
|
|
263
|
-
* Optional event bus. When provided, the executor emits `tool.started`
|
|
264
|
-
* before invoking each tool's `execute()`. Closes the observability gap
|
|
265
|
-
* between "model decided to call tool" and "tool finished".
|
|
266
|
-
*/
|
|
267
|
-
events?: EventBus | undefined;
|
|
268
|
-
/**
|
|
269
|
-
* Optional tracer. When provided, every tool execution opens a
|
|
270
|
-
* `tool.<name>` span with attributes for tool name, permission decision,
|
|
271
|
-
* input size, output size, and outcome. Spans are no-op by default.
|
|
272
|
-
*/
|
|
273
|
-
tracer?: Tracer | undefined;
|
|
274
|
-
/**
|
|
275
|
-
* Optional structured logger for production diagnostics. Tool execution logs
|
|
276
|
-
* include correlation IDs and metadata only — never raw tool inputs or output.
|
|
277
|
-
*/
|
|
278
|
-
logger?: Logger | undefined;
|
|
279
|
-
/**
|
|
280
|
-
* Async callback invoked when a tool needs user confirmation.
|
|
281
|
-
* When omitted and confirmation is required, the executor returns a
|
|
282
|
-
* failure result immediately (TUI path). When provided (CLI path),
|
|
283
|
-
* the callback handles the interactive prompt and returns a decision.
|
|
284
|
-
*/
|
|
285
|
-
confirmAwaiter?: ConfirmAwaiter | undefined;
|
|
286
|
-
iterationTimeoutMs?: number | undefined;
|
|
287
|
-
/** Hard upper bound for a single tool call timeout. Defaults to 5 minutes. */
|
|
288
|
-
maxToolTimeoutMs?: number | undefined;
|
|
289
|
-
perIterationOutputCapBytes?: number | undefined;
|
|
290
|
-
/**
|
|
291
|
-
* Optional lifecycle hook runner. When present, `PreToolUse` hooks run
|
|
292
|
-
* before the permission check (and can block the call or rewrite its input)
|
|
293
|
-
* and `PostToolUse` hooks run after the tool returns (and can append context
|
|
294
|
-
* to the result the model sees).
|
|
295
|
-
*/
|
|
296
|
-
hookRunner?: HookRunner | undefined;
|
|
297
|
-
/**
|
|
298
|
-
* Per-tool on-screen result render mode map (`tools.resultRenderMode[name]`).
|
|
299
|
-
* When set, the executor reads this map to decide whether the next
|
|
300
|
-
* `writeToolResult` call should render in `simple` (meta only) or `extend`
|
|
301
|
-
* (full preview) mode. Independent of the LLM-side `descriptionMode`.
|
|
302
|
-
*/
|
|
303
|
-
resultRenderModes?: ToolResultRenderModeConfig | undefined;
|
|
304
|
-
}
|
|
305
|
-
/**
|
|
306
|
-
* Result returned by executeBatch when a tool needs confirmation and
|
|
307
|
-
* no confirmAwaiter is available. The TUI catches this and surfaces a
|
|
308
|
-
* confirmation dialog; once resolved the tool is re-executed.
|
|
309
|
-
* The string tag identifies it as a "pending confirm" result so callers
|
|
310
|
-
* can distinguish it from an error without inspecting content strings.
|
|
311
|
-
*/
|
|
312
|
-
interface ToolConfirmPendingResult {
|
|
313
|
-
type: 'tool_confirm_pending';
|
|
314
|
-
toolUseId: string;
|
|
315
|
-
toolName: string;
|
|
316
|
-
input: unknown;
|
|
317
|
-
suggestedPattern: string;
|
|
318
|
-
decisionSource?: PermissionDecision['source'] | undefined;
|
|
319
|
-
riskTier?: RiskTier | undefined;
|
|
320
|
-
}
|
|
321
|
-
type ToolExecutorStrategy = 'parallel' | 'sequential' | 'smart';
|
|
322
|
-
/**
|
|
323
|
-
* Minimal contract for tool execution.
|
|
324
|
-
*
|
|
325
|
-
* Defined here (in `types/`) so `core/` does not need to import the
|
|
326
|
-
* concrete `ToolExecutor` class from `execution/`. Callers that create
|
|
327
|
-
* the executor (e.g. CLI wiring) implement this interface.
|
|
328
|
-
*
|
|
329
|
-
* Only the methods actually called by `Agent` are included — keeping the
|
|
330
|
-
* interface narrow prevents unnecessary coupling.
|
|
331
|
-
*/
|
|
332
|
-
interface ToolExecutorLike {
|
|
333
|
-
/**
|
|
334
|
-
* Execute a batch of tool uses. The strategy controls whether tools run
|
|
335
|
-
* sequentially, in parallel, or smart (parallel non-mutating + sequential mutating).
|
|
336
|
-
*/
|
|
337
|
-
executeBatch(toolUses: ToolUseBlock[], ctx: Context, strategy: ToolExecutorStrategy): Promise<ToolBatchResult>;
|
|
338
|
-
/**
|
|
339
|
-
* Clear the interactive confirm awaiter so the executor returns
|
|
340
|
-
* `ToolConfirmPendingResult` instead of blocking.
|
|
341
|
-
*/
|
|
342
|
-
clearConfirmAwaiter(): void;
|
|
343
|
-
/**
|
|
344
|
-
* Execute a single tool with timeout and output capping.
|
|
345
|
-
* Used by the agent when it needs to run one tool at a time.
|
|
346
|
-
*
|
|
347
|
-
* Returns the rendered `ToolResultBlock` plus the exact byte count it
|
|
348
|
-
* consumed against the iteration output cap. The caller subtracts
|
|
349
|
-
* `bytes` from the running budget — no second `Buffer.byteLength`
|
|
350
|
-
* walk, and no `JSON.stringify` fallback for structured results.
|
|
351
|
-
*/
|
|
352
|
-
executeTool(tool: Tool, use: ToolUseBlock, ctx: Context, budget: number): Promise<{
|
|
353
|
-
block: ToolResultBlock;
|
|
354
|
-
bytes: number;
|
|
355
|
-
}>;
|
|
356
|
-
}
|
|
357
|
-
|
|
358
|
-
/**
|
|
359
|
-
* Extension points for the Agent lifecycle.
|
|
360
|
-
*
|
|
361
|
-
* Each extension point is a hook that gets called at a specific phase.
|
|
362
|
-
* Extensions are always optional and failures are isolated — a failing
|
|
363
|
-
* extension never aborts the agent run.
|
|
364
|
-
*
|
|
365
|
-
* Plugins register extensions via `PluginAPI.extensions`, not by
|
|
366
|
-
* directly importing this module. The Agent calls the registry in
|
|
367
|
-
* order at each phase.
|
|
368
|
-
*/
|
|
369
|
-
|
|
370
|
-
/**
|
|
371
|
-
* Called before Agent.run() begins the main iteration loop.
|
|
372
|
-
* Returns `false` or throws to prevent the run from starting.
|
|
373
|
-
*/
|
|
374
|
-
type BeforeRunHook = (ctx: Context, input: UserInputPayload) => void | Promise<void>;
|
|
375
|
-
/**
|
|
376
|
-
* Called after Agent.run() completes (or fails/aborts).
|
|
377
|
-
* Receives the final RunResult, always called regardless of outcome.
|
|
378
|
-
*/
|
|
379
|
-
type AfterRunHook = (ctx: Context, result: RunResult) => void | Promise<void>;
|
|
380
|
-
/**
|
|
381
|
-
* Called right before each iteration of the agent loop.
|
|
382
|
-
* The context is live (messages, signal, etc.) and can be inspected.
|
|
383
|
-
* Modifications to ctx (e.g. ctx.messages, ctx.model) take effect
|
|
384
|
-
* for the upcoming iteration.
|
|
385
|
-
*/
|
|
386
|
-
type BeforeIterationHook = (ctx: Context, iterationIndex: number) => void | Promise<void>;
|
|
387
|
-
/**
|
|
388
|
-
* Called after each iteration completes (tool results appended,
|
|
389
|
-
* compaction done, but before the next loop iteration check).
|
|
390
|
-
*/
|
|
391
|
-
type AfterIterationHook = (ctx: Context, iterationIndex: number) => void | Promise<void>;
|
|
392
|
-
/**
|
|
393
|
-
* Called when the agent encounters an error during the provider call
|
|
394
|
-
* or tool execution phase. The hook can return a modified context
|
|
395
|
-
* or signal that recovery should be attempted.
|
|
396
|
-
*
|
|
397
|
-
* Return `{ action: 'retry', model?: string | undefined }` to retry the turn
|
|
398
|
-
* (possibly with a different model).
|
|
399
|
-
* Return `{ action: 'fail' }` to propagate the error.
|
|
400
|
-
* Return `{ action: 'continue' }` to skip and continue the loop.
|
|
401
|
-
*/
|
|
402
|
-
type OnErrorHook = (ctx: Context, err: unknown, phase: 'provider' | 'tool' | 'agent', iterationIndex: number) => {
|
|
403
|
-
action: 'retry';
|
|
404
|
-
model?: string | undefined;
|
|
405
|
-
} | {
|
|
406
|
-
action: 'fail';
|
|
407
|
-
} | {
|
|
408
|
-
action: 'continue';
|
|
409
|
-
} | void | Promise<{
|
|
410
|
-
action: 'retry';
|
|
411
|
-
model?: string | undefined;
|
|
412
|
-
} | {
|
|
413
|
-
action: 'fail';
|
|
414
|
-
} | {
|
|
415
|
-
action: 'continue';
|
|
416
|
-
} | void>;
|
|
417
|
-
/**
|
|
418
|
-
* The default provider runner function signature — what the Agent's
|
|
419
|
-
* built-in provider runner looks like. Extensions that wrap the provider
|
|
420
|
-
* runner receive this as the `inner` parameter they can delegate to.
|
|
421
|
-
*/
|
|
422
|
-
type ProviderRunnerFn = (ctx: Context, request: Request) => Promise<Response>;
|
|
423
|
-
/**
|
|
424
|
-
* Wrap or replace the provider call in the agent loop.
|
|
425
|
-
*
|
|
426
|
-
* The `inner` function is the default provider runner (with retries).
|
|
427
|
-
* The extension can call it, modify the request/response, add caching,
|
|
428
|
-
* or bypass it entirely.
|
|
429
|
-
*/
|
|
430
|
-
type ProviderRunnerWrapper = (ctx: Context, request: Request, inner: ProviderRunnerFn) => Promise<Response>;
|
|
431
|
-
/**
|
|
432
|
-
* Called before a batch of tools is executed. Can modify or reject
|
|
433
|
-
* the tool list. Return the (possibly filtered/modified) tool uses.
|
|
434
|
-
*/
|
|
435
|
-
type BeforeToolExecutionHook = (ctx: Context, toolUses: ToolUseBlock[]) => ToolUseBlock[] | Promise<ToolUseBlock[]>;
|
|
436
|
-
/**
|
|
437
|
-
* Called after a batch of tools has been executed and results
|
|
438
|
-
* are available. The extension can inspect or transform results
|
|
439
|
-
* before they're appended to context.
|
|
440
|
-
*/
|
|
441
|
-
type AfterToolExecutionHook = (ctx: Context, outputs: ToolExecutionOutput[]) => void | Promise<void>;
|
|
442
|
-
/**
|
|
443
|
-
* An extension registered by a plugin or the host application.
|
|
444
|
-
*
|
|
445
|
-
* Every hook is optional — implement only the phases you need.
|
|
446
|
-
* Hooks are called in registration order. A hook failure is
|
|
447
|
-
* caught, logged, and does not prevent subsequent hooks from running.
|
|
448
|
-
*
|
|
449
|
-
* @example
|
|
450
|
-
* ```ts
|
|
451
|
-
* const myExt: AgentExtension = {
|
|
452
|
-
* name: 'my-plugin-ext',
|
|
453
|
-
* beforeIteration: async (ctx, idx) => {
|
|
454
|
-
* console.log('Starting iteration', idx);
|
|
455
|
-
* },
|
|
456
|
-
* };
|
|
457
|
-
* api.extensions.register(myExt);
|
|
458
|
-
* ```
|
|
459
|
-
*/
|
|
460
|
-
interface AgentExtension {
|
|
461
|
-
/** Unique name for this extension. Used in diagnostics and logging. */
|
|
462
|
-
name: string;
|
|
463
|
-
/** Optional owner tag (plugin name or host identifier). */
|
|
464
|
-
owner?: string | undefined;
|
|
465
|
-
beforeRun?: BeforeRunHook | undefined;
|
|
466
|
-
afterRun?: AfterRunHook | undefined;
|
|
467
|
-
beforeIteration?: BeforeIterationHook | undefined;
|
|
468
|
-
afterIteration?: AfterIterationHook | undefined;
|
|
469
|
-
onError?: OnErrorHook | undefined;
|
|
470
|
-
wrapProviderRunner?: ProviderRunnerWrapper | undefined;
|
|
471
|
-
beforeToolExecution?: BeforeToolExecutionHook | undefined;
|
|
472
|
-
afterToolExecution?: AfterToolExecutionHook | undefined;
|
|
473
|
-
}
|
|
474
|
-
|
|
475
|
-
/**
|
|
476
|
-
* ExtensionRegistry — manages AgentExtension registrations.
|
|
477
|
-
*
|
|
478
|
-
* Extensions are called in registration order at each lifecycle phase.
|
|
479
|
-
* Each extension hook failure is caught and logged independently so
|
|
480
|
-
* one bad extension can't take down the agent.
|
|
481
|
-
*/
|
|
482
|
-
|
|
483
|
-
declare class ExtensionRegistry {
|
|
484
|
-
private readonly extensions;
|
|
485
|
-
private readonly promptContributors;
|
|
486
|
-
private log;
|
|
487
|
-
setLogger(log: Logger): void;
|
|
488
|
-
/**
|
|
489
|
-
* Register a system prompt contributor. Returns an unregister function.
|
|
490
|
-
* Contributors are called on every system prompt build in registration
|
|
491
|
-
* order. Their output blocks are inserted after the core environment
|
|
492
|
-
* block, before the mode and plan blocks.
|
|
493
|
-
*/
|
|
494
|
-
registerSystemPromptContributor(c: SystemPromptContributor): () => void;
|
|
495
|
-
/**
|
|
496
|
-
* Build all registered system prompt contributions.
|
|
497
|
-
* Failures are caught and logged — one bad contributor doesn't
|
|
498
|
-
* break the prompt assembly.
|
|
499
|
-
*/
|
|
500
|
-
buildSystemPromptContributions(ctx: Parameters<SystemPromptContributor>[0]): Promise<TextBlock[]>;
|
|
501
|
-
/**
|
|
502
|
-
* Returns the live array of contributors (readonly snapshot for
|
|
503
|
-
* passing to DefaultSystemPromptBuilder at build time).
|
|
504
|
-
*/
|
|
505
|
-
listSystemPromptContributors(): readonly SystemPromptContributor[];
|
|
506
|
-
/**
|
|
507
|
-
* Register an extension. Duplicate names are rejected.
|
|
508
|
-
* Returns an unregister function.
|
|
509
|
-
*/
|
|
510
|
-
register(ext: AgentExtension): () => void;
|
|
511
|
-
/**
|
|
512
|
-
* Register an extension, silently replacing any previous registration
|
|
513
|
-
* with the same name. Use this when overriding a default extension.
|
|
514
|
-
*/
|
|
515
|
-
registerOrReplace(ext: AgentExtension): () => void;
|
|
516
|
-
/**
|
|
517
|
-
* Unregister an extension by name. Returns true if found.
|
|
518
|
-
*/
|
|
519
|
-
unregister(name: string): boolean;
|
|
520
|
-
/**
|
|
521
|
-
* List registered extension names in order.
|
|
522
|
-
*/
|
|
523
|
-
list(): readonly string[];
|
|
524
|
-
/**
|
|
525
|
-
* Check if an extension with the given name is registered.
|
|
526
|
-
*/
|
|
527
|
-
has(name: string): boolean;
|
|
528
|
-
/**
|
|
529
|
-
* Remove all registered extensions and contributors.
|
|
530
|
-
*/
|
|
531
|
-
clear(): void;
|
|
532
|
-
runBeforeRun(...args: Parameters<BeforeRunHook>): Promise<void>;
|
|
533
|
-
runAfterRun(...args: Parameters<AfterRunHook>): Promise<void>;
|
|
534
|
-
runBeforeIteration(...args: Parameters<BeforeIterationHook>): Promise<void>;
|
|
535
|
-
runAfterIteration(...args: Parameters<AfterIterationHook>): Promise<void>;
|
|
536
|
-
/**
|
|
537
|
-
* Run onError hooks in order. The first hook that returns a non-void
|
|
538
|
-
* result wins; subsequent hooks are skipped.
|
|
539
|
-
*/
|
|
540
|
-
runOnError(...args: Parameters<OnErrorHook>): Promise<{
|
|
541
|
-
action: 'retry';
|
|
542
|
-
model?: string | undefined;
|
|
543
|
-
} | {
|
|
544
|
-
action: 'fail';
|
|
545
|
-
} | {
|
|
546
|
-
action: 'continue';
|
|
547
|
-
} | void>;
|
|
548
|
-
/**
|
|
549
|
-
* Build a composed provider runner. Extensions with `wrapProviderRunner`
|
|
550
|
-
* form a middleware-style chain: the innermost extension wraps the
|
|
551
|
-
* default runner, each subsequent wrapper wraps the previous.
|
|
552
|
-
*/
|
|
553
|
-
wrapProviderRunner(inner: ProviderRunnerFn): ProviderRunnerFn;
|
|
554
|
-
runBeforeToolExecution(...args: Parameters<BeforeToolExecutionHook>): Promise<Parameters<BeforeToolExecutionHook>[1]>;
|
|
555
|
-
runAfterToolExecution(...args: Parameters<AfterToolExecutionHook>): Promise<void>;
|
|
556
|
-
}
|
|
557
|
-
|
|
558
|
-
/**
|
|
559
|
-
* Factory for constructing a Provider instance. The `family` field
|
|
560
|
-
* declares the wire protocol so callers can route without inspecting
|
|
561
|
-
* the returned instance. The `type` is the registry key (e.g. a
|
|
562
|
-
* provider's models.dev id or a user-chosen alias).
|
|
563
|
-
*/
|
|
564
|
-
interface ProviderFactory {
|
|
565
|
-
/**
|
|
566
|
-
* Unique identifier used as the registry key. When registered via
|
|
567
|
-
* a plugin, this becomes `cfg.type` in `ProviderRegistry.create(cfg)`.
|
|
568
|
-
*/
|
|
569
|
-
type: string;
|
|
570
|
-
/**
|
|
571
|
-
* Declares the wire protocol family so consumers can route based on
|
|
572
|
-
* capability (e.g. which tool-format converter to use) without
|
|
573
|
-
* instantiating the provider.
|
|
574
|
-
*/
|
|
575
|
-
family: WireFamily;
|
|
576
|
-
create(cfg: ProviderConfig): Provider;
|
|
577
|
-
}
|
|
578
|
-
declare class ProviderRegistry {
|
|
579
|
-
private readonly factories;
|
|
580
|
-
/**
|
|
581
|
-
* Register a provider factory. If a factory with the same type already
|
|
582
|
-
* exists, it is replaced. Use this for both initial registration and
|
|
583
|
-
* runtime overrides (e.g. from plugins or CLI flags).
|
|
584
|
-
*/
|
|
585
|
-
register(f: ProviderFactory): void;
|
|
586
|
-
/**
|
|
587
|
-
* Bulk-register multiple provider factories at once.
|
|
588
|
-
*/
|
|
589
|
-
registerAll(factories: ProviderFactory[]): void;
|
|
590
|
-
/**
|
|
591
|
-
* Override an existing factory. Throws if no factory is registered
|
|
592
|
-
* for the given type. Use this to safely replace a provider at runtime
|
|
593
|
-
* (e.g. in tests or when a plugin provides a custom implementation).
|
|
594
|
-
*/
|
|
595
|
-
override(type: string, f: ProviderFactory): void;
|
|
596
|
-
has(type: string): boolean;
|
|
597
|
-
/**
|
|
598
|
-
* Unregister a provider factory by type. Returns true if a factory was
|
|
599
|
-
* removed, false if none was registered for that type.
|
|
600
|
-
*/
|
|
601
|
-
unregister(type: string): boolean;
|
|
602
|
-
create(cfg: ProviderConfig): Provider;
|
|
603
|
-
list(): string[];
|
|
604
|
-
}
|
|
605
|
-
|
|
606
|
-
/** Default iteration cap. Use 0 or Infinity via config to disable. */
|
|
607
|
-
declare const DEFAULT_MAX_ITERATIONS = 100;
|
|
608
|
-
interface RunResult {
|
|
609
|
-
status: 'done' | 'failed' | 'max_iterations' | 'aborted';
|
|
610
|
-
error?: WrongStackError | undefined;
|
|
611
|
-
finalText?: string | undefined;
|
|
612
|
-
iterations: number;
|
|
613
|
-
delegateSummaries?: Array<{
|
|
614
|
-
summary: string | undefined;
|
|
615
|
-
ok: boolean;
|
|
616
|
-
}>;
|
|
617
|
-
/** Human-readable reason for abort (e.g. "user interrupt", "tool timeout", "stream hang"). */
|
|
618
|
-
abortReason?: string | undefined;
|
|
619
|
-
}
|
|
620
|
-
interface AgentInit {
|
|
621
|
-
container: Container;
|
|
622
|
-
tools: ToolRegistry;
|
|
623
|
-
providers: ProviderRegistry;
|
|
624
|
-
events: EventBus;
|
|
625
|
-
pipelines: AgentPipelines;
|
|
626
|
-
context: Context;
|
|
627
|
-
maxIterations?: number | undefined;
|
|
628
|
-
iterationTimeoutMs?: number | undefined;
|
|
629
|
-
executionStrategy?: 'parallel' | 'sequential' | 'smart' | undefined;
|
|
630
|
-
perIterationOutputCapBytes?: number | undefined;
|
|
631
|
-
autoExtendLimit?: boolean | undefined;
|
|
632
|
-
autonomousContinue?: boolean | undefined;
|
|
633
|
-
confirmAwaiter?: ConfirmAwaiter | undefined;
|
|
634
|
-
permissionPolicy?: PermissionPolicy | undefined;
|
|
635
|
-
tracer?: Tracer | undefined;
|
|
636
|
-
extensions?: ExtensionRegistry | undefined;
|
|
637
|
-
toolExecutor: ToolExecutorLike;
|
|
638
|
-
/** Loop-detector tuning (`tools.loopDetection`). Omitted fields use defaults. */
|
|
639
|
-
loopDetection?: LoopDetectionConfig | undefined;
|
|
640
|
-
}
|
|
641
|
-
/** Fully-resolved loop-detector settings (defaults applied, bounds clamped). */
|
|
642
|
-
interface ResolvedLoopDetectionConfig {
|
|
643
|
-
mode: 'steer-then-cut' | 'cut' | 'off';
|
|
644
|
-
steerThreshold: number;
|
|
645
|
-
cutThreshold: number;
|
|
646
|
-
windowSize: number;
|
|
647
|
-
callRepeatThreshold: number;
|
|
648
|
-
}
|
|
649
|
-
interface AgentPipelines {
|
|
650
|
-
request: Pipeline<Request>;
|
|
651
|
-
response: Pipeline<Response>;
|
|
652
|
-
toolCall: Pipeline<ToolCallPipelinePayload>;
|
|
653
|
-
userInput: Pipeline<UserInputPayload>;
|
|
654
|
-
assistantOutput: Pipeline<TextBlock>;
|
|
655
|
-
contextWindow: Pipeline<Context>;
|
|
656
|
-
}
|
|
657
|
-
interface UserInputPayload {
|
|
658
|
-
content: ContentBlock[];
|
|
659
|
-
text: string;
|
|
660
|
-
ctx: Context;
|
|
661
|
-
}
|
|
662
|
-
type AgentInput = string | ContentBlock[];
|
|
663
|
-
interface ToolCallPipelinePayload {
|
|
664
|
-
toolUse: ToolUseBlock;
|
|
665
|
-
result: ToolResultBlock;
|
|
666
|
-
ctx: Context;
|
|
667
|
-
tool?: Tool | undefined;
|
|
668
|
-
}
|
|
669
|
-
declare function createDefaultPipelines(): AgentPipelines;
|
|
670
|
-
|
|
671
|
-
export { type AgentPipelines as A, type BeforeIterationHook as B, DEFAULT_MAX_ITERATIONS as D, ExtensionRegistry as E, type HookRunEnv as H, type OnErrorHook as O, ProviderRegistry as P, type ResolvedLoopDetectionConfig as R, type SystemPromptContributor as S, type ToolCallPipelinePayload as T, type UserInputPayload as U, type ToolWrapper as a, ToolRegistry as b, type ToolExecutorLike as c, type AgentInit as d, type AgentInput as e, type RunResult as f, type ToolExecutorOptions as g, type ToolExecutorStrategy as h, type ToolBatchResult as i, type AgentExtension as j, type AfterIterationHook as k, type AfterRunHook as l, type AfterToolExecutionHook as m, type BeforeRunHook as n, type BeforeToolExecutionHook as o, HookRunner as p, type HookRunnerOptions as q, type PreToolUseResult as r, type PromptResult as s, type ProviderFactory as t, type ProviderRunnerWrapper as u, createDefaultPipelines as v, type ProviderRunnerFn as w };
|