@wrongstack/core 0.284.1 → 0.286.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 +129 -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 +152 -0
- package/dist/coordination/autonomous-brain.d.ts.map +1 -0
- package/dist/coordination/autonomous-coordinator.d.ts +243 -0
- package/dist/coordination/autonomous-coordinator.d.ts.map +1 -0
- package/dist/coordination/brain-ledger.d.ts +142 -0
- package/dist/coordination/brain-ledger.d.ts.map +1 -0
- package/dist/coordination/brain-monitor.d.ts +103 -0
- package/dist/coordination/brain-monitor.d.ts.map +1 -0
- package/dist/coordination/brain.d.ts +147 -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 +295 -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 +79 -2587
- package/dist/coordination/index.d.ts.map +1 -0
- package/dist/coordination/index.js +2262 -673
- package/dist/coordination/index.js.map +7 -1
- package/dist/coordination/knowledge-graph.d.ts +229 -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 +67 -0
- package/dist/coordination/mailbox-actions.d.ts.map +1 -0
- package/dist/coordination/mailbox-constants.d.ts +64 -0
- package/dist/coordination/mailbox-constants.d.ts.map +1 -0
- package/dist/coordination/mailbox-events.d.ts +32 -0
- package/dist/coordination/mailbox-events.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-message-codec.d.ts +8 -0
- package/dist/coordination/mailbox-message-codec.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} +125 -26
- package/dist/coordination/mailbox-types.d.ts.map +1 -0
- package/dist/coordination/mailbox.d.ts +88 -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 +2061 -1300
- 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 +61 -0
- package/dist/execution/autonomous-runner.d.ts.map +1 -0
- package/dist/execution/autonomy-brain.d.ts +151 -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/brain-chain.d.ts +53 -0
- package/dist/execution/brain-chain.d.ts.map +1 -0
- package/dist/execution/brain-evaluation.d.ts +66 -0
- package/dist/execution/brain-evaluation.d.ts.map +1 -0
- package/dist/execution/brain-runtime.d.ts +171 -0
- package/dist/execution/brain-runtime.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/council-brain.d.ts +79 -0
- package/dist/execution/council-brain.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} +22 -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 +25 -180
- package/dist/execution/index.d.ts.map +1 -0
- package/dist/execution/index.js +1748 -490
- 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 +142 -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 +179 -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 +69 -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 +1043 -192
- 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 +612 -0
- package/dist/hq/protocol.d.ts.map +1 -0
- package/dist/hq/publisher.d.ts +181 -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 +114 -2872
- package/dist/index.d.ts.map +1 -0
- package/dist/index.js +6104 -2737
- 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} +134 -210
- 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 +37 -23
- 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/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 +7 -8
- package/dist/security/index.d.ts.map +1 -0
- package/dist/security/index.js +354 -401
- package/dist/security/index.js.map +7 -1
- package/dist/security/permission-policy-schema.d.ts +77 -0
- package/dist/security/permission-policy-schema.d.ts.map +1 -0
- package/dist/security/permission-policy.d.ts +158 -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 +96 -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 +114 -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 +783 -443
- 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 +41 -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 +219 -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} +344 -355
- 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 +101 -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 +443 -0
- package/dist/types/multi-agent.d.ts.map +1 -0
- package/dist/{observability-D-HZN_mF.d.ts → types/observability.d.ts} +17 -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 +252 -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/incoming-images.d.ts +39 -0
- package/dist/utils/incoming-images.d.ts.map +1 -0
- package/dist/utils/index.d.ts +38 -920
- package/dist/utils/index.d.ts.map +1 -0
- package/dist/utils/index.js +323 -36
- 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} +32 -17
- package/dist/worktree/worktree-manager.d.ts.map +1 -0
- package/instructions/agents/browser.md +25 -16
- package/instructions/autonomy/active-mission.md +2 -4
- package/instructions/coordination/subagent-baseline.md +16 -2
- package/instructions/leader-after-task.md +3 -1
- package/instructions/sections/tool/common-patterns.md +7 -1
- package/instructions/sections/tool/delegation-full.md +1 -1
- package/instructions/system.md +47 -0
- package/package.json +4 -5
- package/skills/docker-deploy/SKILL.md +1 -1
- package/skills/node-modern/SKILL.md +2 -2
- package/skills/plugin-author/SKILL.md +9 -16
- package/skills/wrongstack-mailbox/SKILL.md +51 -12
- 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
|
@@ -1,331 +0,0 @@
|
|
|
1
|
-
import { g as Tool, s as TextBlock, i as ContentBlock } from './tool-BNlnIJvo.js';
|
|
2
|
-
import { a as MailboxAgentStatus } from './mailbox-types-BGZWrYTJ.js';
|
|
3
|
-
import { H as HookEvent, f as HookMatcher, I as InProcessHook, g as HookRegistrationOptions, S as ShellHook, h as HttpHook, C as ConfiguredHook, i as HookEntry, T as ToolResultRenderMode } from './config-MRqn1V-u.js';
|
|
4
|
-
|
|
5
|
-
/** Model capabilities relevant to prompt composition. */
|
|
6
|
-
interface ModelCapabilities {
|
|
7
|
-
maxContextTokens: number;
|
|
8
|
-
supportsTools: boolean;
|
|
9
|
-
supportsVision: boolean;
|
|
10
|
-
supportsReasoning: boolean;
|
|
11
|
-
}
|
|
12
|
-
interface BuildContext {
|
|
13
|
-
cwd: string;
|
|
14
|
-
projectRoot: string;
|
|
15
|
-
tools: Tool[];
|
|
16
|
-
/** Provider id (e.g. "anthropic", "minimax-coding-plan"). */
|
|
17
|
-
provider?: string | undefined;
|
|
18
|
-
/** Model id (e.g. "configured-model", "MiniMax-M2.7"). */
|
|
19
|
-
model?: string | undefined;
|
|
20
|
-
/**
|
|
21
|
-
* True when the prompt is being built for a SUBAGENT, not the host
|
|
22
|
-
* agent. Subagents are scoped to a single task — they should NOT see
|
|
23
|
-
* the host's strategic plan board (which is anchoring the host across
|
|
24
|
-
* turns, not steering individual subtasks). The plan-injection
|
|
25
|
-
* layer short-circuits when this flag is set.
|
|
26
|
-
*/
|
|
27
|
-
subagent?: boolean | undefined;
|
|
28
|
-
/**
|
|
29
|
-
* List of currently online agents in the shared mailbox system.
|
|
30
|
-
* Includes agents from all sessions (TUI, WebUI, CLI) in the same project.
|
|
31
|
-
*/
|
|
32
|
-
onlineAgents?: MailboxAgentStatus[] | undefined;
|
|
33
|
-
}
|
|
34
|
-
/**
|
|
35
|
-
* Stability regions for the system prompt.
|
|
36
|
-
*
|
|
37
|
-
* `core` and `session` form the provider-cache prefix and must remain byte-for-byte
|
|
38
|
-
* stable after the first request in a session. `volatile` is appended at request
|
|
39
|
-
* time and may change between turns without rewriting that prefix.
|
|
40
|
-
*/
|
|
41
|
-
interface SystemPromptRegions {
|
|
42
|
-
readonly core: readonly TextBlock[];
|
|
43
|
-
readonly session: readonly TextBlock[];
|
|
44
|
-
readonly volatile: readonly TextBlock[];
|
|
45
|
-
}
|
|
46
|
-
declare function flattenSystemPromptRegions(regions: SystemPromptRegions): TextBlock[];
|
|
47
|
-
interface SystemPromptBuilder {
|
|
48
|
-
build(ctx: BuildContext): Promise<TextBlock[]>;
|
|
49
|
-
/** Region-aware build used by hosts that enforce prompt-prefix stability. */
|
|
50
|
-
buildRegions?(ctx: BuildContext): Promise<SystemPromptRegions>;
|
|
51
|
-
}
|
|
52
|
-
|
|
53
|
-
interface LoadConfiguredHooksOptions {
|
|
54
|
-
/** Load only trusted hooks that remain active under `--no-hooks`. */
|
|
55
|
-
policyOnly?: boolean | undefined;
|
|
56
|
-
}
|
|
57
|
-
/**
|
|
58
|
-
* Registry of lifecycle hooks (both in-process and shell). One instance is
|
|
59
|
-
* shared per session: the boot path loads `config.hooks` as shell entries and
|
|
60
|
-
* plugins add in-process entries via `PluginAPI.registerHook`. The
|
|
61
|
-
* `HookRunner` reads from it at each lifecycle phase.
|
|
62
|
-
*/
|
|
63
|
-
declare class HookRegistry {
|
|
64
|
-
private readonly entries;
|
|
65
|
-
/** Register an in-process hook. Returns an unsubscribe function. */
|
|
66
|
-
registerInProcess(event: HookEvent, matcher: HookMatcher | undefined, hook: InProcessHook, owner?: string | undefined, options?: HookRegistrationOptions): () => void;
|
|
67
|
-
/**
|
|
68
|
-
* Register a single shell hook. The hook is owned by the runtime (no plugin
|
|
69
|
-
* name) — it survives plugin uninstalls. Returns an unsubscribe function.
|
|
70
|
-
*/
|
|
71
|
-
registerShell(event: HookEvent, hook: ShellHook): () => void;
|
|
72
|
-
/** Register a native HTTP hook. */
|
|
73
|
-
registerHttp(event: HookEvent, hook: HttpHook): () => void;
|
|
74
|
-
/** Bulk-load command/HTTP hooks from a `config.hooks` map. */
|
|
75
|
-
loadShellHooks(hooks: Partial<Record<HookEvent, ConfiguredHook[]>> | undefined, options?: LoadConfiguredHooksOptions): void;
|
|
76
|
-
/**
|
|
77
|
-
* Atomically replace the shell-hook set: drop every currently-registered
|
|
78
|
-
* shell entry, then load the supplied `config.hooks` map. In-process
|
|
79
|
-
* hooks (and their plugin owners) are untouched — only shell entries
|
|
80
|
-
* are touched, because they are the only entries sourced from
|
|
81
|
-
* `config.hooks`.
|
|
82
|
-
*
|
|
83
|
-
* Designed for hot-reload via `ConfigStore.watch`: when the operator
|
|
84
|
-
* edits `config.json` and the store fires its watcher, the CLI calls
|
|
85
|
-
* this with the new `config.hooks` value. Idempotent — calling twice
|
|
86
|
-
* with the same map yields the same registry state (callers should still
|
|
87
|
-
* guard at the change-detection layer to avoid wasted work).
|
|
88
|
-
*/
|
|
89
|
-
replaceShellHooks(hooks: Partial<Record<HookEvent, ConfiguredHook[]>> | undefined, options?: LoadConfiguredHooksOptions): void;
|
|
90
|
-
/** All entries registered for an event, in registration order. */
|
|
91
|
-
list(event: HookEvent): readonly HookEntry[];
|
|
92
|
-
/** True when any entry is registered for the event. */
|
|
93
|
-
has(event: HookEvent): boolean;
|
|
94
|
-
/** Every entry currently registered (across all events). */
|
|
95
|
-
all(): readonly HookEntry[];
|
|
96
|
-
/**
|
|
97
|
-
* Drop every in-process hook whose `owner` matches. Used by the plugin
|
|
98
|
-
* loader during teardown as a belt-and-braces backstop for the per-call
|
|
99
|
-
* unsubscribe functions pushed onto `pluginCleanupFns` — if a plugin
|
|
100
|
-
* `setup()` throws partway through after registering some hooks, the
|
|
101
|
-
* remaining unsubscribes may never run, and the registry would otherwise
|
|
102
|
-
* hold dangling references to a torn-down plugin's closures.
|
|
103
|
-
*
|
|
104
|
-
* Returns the number of hooks actually removed (useful for tests).
|
|
105
|
-
* Shell hooks are owned by the runtime, not a plugin, so they're never
|
|
106
|
-
* drained by owner.
|
|
107
|
-
*/
|
|
108
|
-
drainByOwner(owner: string): number;
|
|
109
|
-
/** Count of in-process hooks currently registered by `owner`. */
|
|
110
|
-
countByOwner(owner: string): number;
|
|
111
|
-
/** Drop every registered hook (used in teardown / tests). */
|
|
112
|
-
clear(): void;
|
|
113
|
-
private remove;
|
|
114
|
-
}
|
|
115
|
-
/**
|
|
116
|
-
* Does a hook matcher apply to a tool name? `*` (or empty) matches everything;
|
|
117
|
-
* otherwise the matcher is a case-insensitive pipe-delimited list of exact
|
|
118
|
-
* tool names (`"edit|write"`). Non-tool events pass `undefined` and always match.
|
|
119
|
-
*/
|
|
120
|
-
declare function hookMatcherMatches(matcher: HookMatcher, toolName: string | undefined): boolean;
|
|
121
|
-
|
|
122
|
-
interface Renderer {
|
|
123
|
-
write(text: string | TextBlock): void;
|
|
124
|
-
writeLine(text?: string): void;
|
|
125
|
-
writeBlock(block: ContentBlock): void;
|
|
126
|
-
writeToolCall(name: string, input: unknown): void;
|
|
127
|
-
writeToolResult(name: string, content: unknown, isError: boolean): void;
|
|
128
|
-
writeDiff(unifiedDiff: string): void;
|
|
129
|
-
writeWarning(text: string): void;
|
|
130
|
-
writeError(text: string): void;
|
|
131
|
-
writeInfo(text: string): void;
|
|
132
|
-
clear(): void;
|
|
133
|
-
/**
|
|
134
|
-
* Hint the renderer how to display the next {@link writeToolResult} for
|
|
135
|
-
* `name`. The renderer stores the mode and applies it on the next
|
|
136
|
-
* `writeToolResult` call. A no-op for renderers that do not implement
|
|
137
|
-
* per-tool on-screen rendering (the default).
|
|
138
|
-
*/
|
|
139
|
-
setResultRenderMode?(name: string, mode: ToolResultRenderMode): void;
|
|
140
|
-
}
|
|
141
|
-
|
|
142
|
-
/**
|
|
143
|
-
* Container — dependency injection with explicit bind / override / decorate.
|
|
144
|
-
*
|
|
145
|
-
* Invariants:
|
|
146
|
-
* bind() — throws if token already bound
|
|
147
|
-
* override() — throws if nothing to replace
|
|
148
|
-
* decorate() — stacks; cached value cleared on register
|
|
149
|
-
*/
|
|
150
|
-
type Token<T> = symbol & {
|
|
151
|
-
readonly __type?: T;
|
|
152
|
-
};
|
|
153
|
-
type Factory<T> = (c: Container) => T;
|
|
154
|
-
type Decorator<T> = (inner: T, c: Container) => T;
|
|
155
|
-
interface BindOptions {
|
|
156
|
-
singleton?: boolean | undefined;
|
|
157
|
-
owner?: string | undefined;
|
|
158
|
-
}
|
|
159
|
-
declare class Container {
|
|
160
|
-
private readonly entries;
|
|
161
|
-
/**
|
|
162
|
-
* Tokens currently mid-resolve. Tracked so we can detect circular
|
|
163
|
-
* dependencies (A → B → A) and throw a structured error instead of
|
|
164
|
-
* overflowing the call stack with "Maximum call stack size exceeded".
|
|
165
|
-
*
|
|
166
|
-
* Not a memoization cache — the per-entry `cache` field is the source
|
|
167
|
-
* of truth for "have I built this before?". This set only lives for
|
|
168
|
-
* the duration of a single resolve call.
|
|
169
|
-
*/
|
|
170
|
-
private readonly resolving;
|
|
171
|
-
bind<T>(token: Token<T>, factory: Factory<T>, opts?: BindOptions): void;
|
|
172
|
-
override<T>(token: Token<T>, factory: Factory<T>, opts?: BindOptions): void;
|
|
173
|
-
decorate<T>(token: Token<T>, decorator: Decorator<T>, owner?: string): void;
|
|
174
|
-
resolve<T>(token: Token<T>): T;
|
|
175
|
-
/**
|
|
176
|
-
* Build a human-readable description of the dependency cycle that
|
|
177
|
-
* caused the resolution to re-enter. Lists the tokens in the order
|
|
178
|
-
* they were entered, then appends the re-entered token to close the
|
|
179
|
-
* loop. Falls back to a generic message if the resolving set is
|
|
180
|
-
* somehow empty (shouldn't happen, but defensive).
|
|
181
|
-
*/
|
|
182
|
-
private describeCycle;
|
|
183
|
-
has<T>(token: Token<T>): boolean;
|
|
184
|
-
/**
|
|
185
|
-
* Resolve a token if it is bound, otherwise return undefined.
|
|
186
|
-
* Unlike `resolve()`, this does not throw if the token is unbound.
|
|
187
|
-
*
|
|
188
|
-
* Single map lookup — `has()` + `resolve()` would walk the entries
|
|
189
|
-
* map twice. The bound check is folded into the resolve path so a
|
|
190
|
-
* non-existent token can never enter the `resolving` cycle-detection
|
|
191
|
-
* set.
|
|
192
|
-
*/
|
|
193
|
-
safeResolve<T>(token: Token<T>): T | undefined;
|
|
194
|
-
ownerOf<T>(token: Token<T>): string | undefined;
|
|
195
|
-
/**
|
|
196
|
-
* Remove a token's binding (along with any decorators stacked on it).
|
|
197
|
-
* Returns true if the token existed. Use this to withdraw temporary
|
|
198
|
-
* bindings installed by a short-lived run or plugin — without it, the
|
|
199
|
-
* entry persists in the map forever.
|
|
200
|
-
*/
|
|
201
|
-
unbind<T>(token: Token<T>): boolean;
|
|
202
|
-
/**
|
|
203
|
-
* Drop every binding. Intended for tests and short-lived CLI invocations
|
|
204
|
-
* that rebuild the container from scratch. Production code should prefer
|
|
205
|
-
* `unbind` on the specific tokens it owns.
|
|
206
|
-
*/
|
|
207
|
-
clear(): void;
|
|
208
|
-
list(): Array<{
|
|
209
|
-
token: symbol;
|
|
210
|
-
owner: string;
|
|
211
|
-
}>;
|
|
212
|
-
/**
|
|
213
|
-
* Inspect a binding's full shape, including decorator count and whether
|
|
214
|
-
* a singleton value is cached. Returns null if the token is unbound.
|
|
215
|
-
* Decorator and factory function references are not exposed — only counts
|
|
216
|
-
* and metadata, to keep internal state hidden.
|
|
217
|
-
*/
|
|
218
|
-
inspect<T>(token: Token<T>): {
|
|
219
|
-
owner: string;
|
|
220
|
-
singleton: boolean;
|
|
221
|
-
decoratorCount: number;
|
|
222
|
-
cached: boolean;
|
|
223
|
-
} | null;
|
|
224
|
-
}
|
|
225
|
-
|
|
226
|
-
/**
|
|
227
|
-
* Pipeline — Koa-style middleware chain with named middleware
|
|
228
|
-
* and position-aware insertion. Generic over input type T.
|
|
229
|
-
*/
|
|
230
|
-
type NextFn<T> = (value: T) => Promise<T>;
|
|
231
|
-
type MiddlewareHandler<T> = (value: T, next: NextFn<T>) => Promise<T>;
|
|
232
|
-
/**
|
|
233
|
-
* Called when a middleware crashes (throws or rejects). Used by the
|
|
234
|
-
* Pipeline's error boundary to log the offender without aborting the run.
|
|
235
|
-
*
|
|
236
|
-
* Return `'rethrow'` to propagate the error (default for core middleware),
|
|
237
|
-
* or `'swallow'` to abort descent into the crashing middleware: its caller's
|
|
238
|
-
* `await next()` resolves with the value that was about to flow into the
|
|
239
|
-
* crashed middleware. The crashed middleware AND every middleware after it in
|
|
240
|
-
* the chain are skipped (they never run); UPSTREAM middleware, already paused
|
|
241
|
-
* at their own `await next()`, resume their post-`next()` work normally. It
|
|
242
|
-
* does NOT continue at the next sibling middleware. Plugin middleware should
|
|
243
|
-
* usually be swallowed so one bad plugin can't kill an agent run.
|
|
244
|
-
*/
|
|
245
|
-
type PipelineErrorPolicy = 'rethrow' | 'swallow';
|
|
246
|
-
interface PipelineErrorEvent {
|
|
247
|
-
middleware: string;
|
|
248
|
-
owner?: string | undefined;
|
|
249
|
-
err: unknown;
|
|
250
|
-
}
|
|
251
|
-
type PipelineErrorHandler = (ev: PipelineErrorEvent) => PipelineErrorPolicy | Promise<PipelineErrorPolicy>;
|
|
252
|
-
interface Middleware<T> {
|
|
253
|
-
name: string;
|
|
254
|
-
handler: MiddlewareHandler<T>;
|
|
255
|
-
owner?: string | undefined;
|
|
256
|
-
}
|
|
257
|
-
interface PipelineOptions {
|
|
258
|
-
/** When true and the target middleware is not found, operations silently no-op instead of throwing. */
|
|
259
|
-
optional?: boolean | undefined;
|
|
260
|
-
}
|
|
261
|
-
/**
|
|
262
|
-
* Read-only view of a pipeline. Returned to consumers (plugins, hooks)
|
|
263
|
-
* so they can inspect but not mutate the chain.
|
|
264
|
-
*/
|
|
265
|
-
interface ReadonlyPipeline<T> {
|
|
266
|
-
readonly size: number;
|
|
267
|
-
list(): readonly string[];
|
|
268
|
-
run(input: T): Promise<T>;
|
|
269
|
-
}
|
|
270
|
-
declare class Pipeline<T> {
|
|
271
|
-
private readonly chain;
|
|
272
|
-
private errorHandler?;
|
|
273
|
-
/**
|
|
274
|
-
* Optional operational logger. When set, the `swallow` error-boundary path
|
|
275
|
-
* emits a structured warning so a swallowed middleware crash is never
|
|
276
|
-
* completely silent (P2 #7, before-release.md). Without a logger, the
|
|
277
|
-
* swallow path still works but the crash is invisible — host code should
|
|
278
|
-
* always wire one.
|
|
279
|
-
*/
|
|
280
|
-
private logger?;
|
|
281
|
-
/**
|
|
282
|
-
* Install an error boundary. When a middleware throws or rejects, the
|
|
283
|
-
* handler is called and decides whether to swallow (continue with the
|
|
284
|
-
* pre-handler value) or rethrow. Without a handler, errors propagate.
|
|
285
|
-
*
|
|
286
|
-
* Wire one per pipeline at boot — the host CLI typically installs a
|
|
287
|
-
* single boundary that logs to the operational log and emits a
|
|
288
|
-
* `pipeline.error` event for /diag.
|
|
289
|
-
*/
|
|
290
|
-
setErrorHandler(handler: PipelineErrorHandler | undefined): this;
|
|
291
|
-
/**
|
|
292
|
-
* Set the operational logger used by the swallow error-boundary path.
|
|
293
|
-
* Without this, a swallowed middleware crash is completely silent.
|
|
294
|
-
*/
|
|
295
|
-
setLogger(logger: {
|
|
296
|
-
warn: (msg: string, ctx?: unknown) => void | undefined;
|
|
297
|
-
} | undefined): this;
|
|
298
|
-
use(mw: Middleware<T> | Middleware<unknown>): this;
|
|
299
|
-
prepend(mw: Middleware<T>): this;
|
|
300
|
-
/**
|
|
301
|
-
* Insert middleware at an explicit index. Out-of-range indices are clamped.
|
|
302
|
-
* Use this when insertBefore/insertAfter are insufficient (e.g. to place
|
|
303
|
-
* a middleware at a known position regardless of named targets).
|
|
304
|
-
*/
|
|
305
|
-
insertAt(index: number, mw: Middleware<T>): this;
|
|
306
|
-
/**
|
|
307
|
-
* Insert mw immediately before the first occurrence of target.
|
|
308
|
-
* If called multiple times with the same target, each call inserts
|
|
309
|
-
* before the target's current position — so after insertBefore('B', X)
|
|
310
|
-
* then insertBefore('B', Y), the order is Y → X → B.
|
|
311
|
-
*/
|
|
312
|
-
insertBefore(target: string, mw: Middleware<T>, opts?: PipelineOptions): this;
|
|
313
|
-
/**
|
|
314
|
-
* Insert mw immediately after the first occurrence of target.
|
|
315
|
-
* If called multiple times with the same target, each call inserts
|
|
316
|
-
* after the target's current position — so after insertAfter('B', X)
|
|
317
|
-
* then insertAfter('B', Y), the order is B → X → Y.
|
|
318
|
-
*/
|
|
319
|
-
insertAfter(target: string, mw: Middleware<T>, opts?: PipelineOptions): this;
|
|
320
|
-
replace(target: string, mw: Middleware<T>, opts?: PipelineOptions): this;
|
|
321
|
-
remove(name: string, opts?: PipelineOptions): this;
|
|
322
|
-
list(): readonly string[];
|
|
323
|
-
size(): number;
|
|
324
|
-
/** Return a read-only view suitable for passing to plugins. */
|
|
325
|
-
asReadonly(): ReadonlyPipeline<T>;
|
|
326
|
-
run(input: T): Promise<T>;
|
|
327
|
-
private indexOf;
|
|
328
|
-
private ensureUnique;
|
|
329
|
-
}
|
|
330
|
-
|
|
331
|
-
export { type BuildContext as B, Container as C, type Decorator as D, type Factory as F, HookRegistry as H, type MiddlewareHandler as M, type NextFn as N, Pipeline as P, type ReadonlyPipeline as R, type SystemPromptBuilder as S, type Token as T, type Renderer as a, type Middleware as b, type ModelCapabilities as c, type SystemPromptRegions as d, type BindOptions as e, type PipelineOptions as f, flattenSystemPromptRegions as g, hookMatcherMatches as h };
|
|
@@ -1,263 +0,0 @@
|
|
|
1
|
-
import { P as Provider, M as Message } from './tool-BNlnIJvo.js';
|
|
2
|
-
import { M as MessageSelector, S as SelectorResult } from './selector-D8O6B_Rm.js';
|
|
3
|
-
import { M as ModeStore, a as ModeConfig, b as Mode } from './mode-CZlO9iU1.js';
|
|
4
|
-
import { M as ModelsRegistry, c as ModelsDevPayload, d as ResolvedProvider, R as ResolvedModel, W as WireFamily, e as ModelsDevModel } from './config-MRqn1V-u.js';
|
|
5
|
-
|
|
6
|
-
/**
|
|
7
|
-
* Offline **floor** for the ChatGPT "Sign in with ChatGPT" (`openai-codex`)
|
|
8
|
-
* models, mirroring what the official Codex CLI / ChatGPT model picker shows.
|
|
9
|
-
*
|
|
10
|
-
* Source-of-truth precedence (live path wins):
|
|
11
|
-
* 1. The curated overlay `packages/cli/data/providers.json` — provider
|
|
12
|
-
* `openai-codex` — which is **synced from raw GitHub** + cached + bundled
|
|
13
|
-
* offline by `DefaultModelsRegistry` (overlayUrl/overlayFile). Editing that
|
|
14
|
-
* JSON and pushing updates every client without a code release; this is the
|
|
15
|
-
* authoritative list whenever the registry overlay is wired (the CLI path).
|
|
16
|
-
* 2. This hardcoded table — the last-resort floor used where no overlay is
|
|
17
|
-
* available (a standalone registry without the bundled file) and by the CLI
|
|
18
|
-
* auth-menu login flow, which needs a synchronous id list.
|
|
19
|
-
*
|
|
20
|
-
* Keep this in lockstep with the `openai-codex` block in `providers.json`; the
|
|
21
|
-
* drift-guard test `packages/cli/tests/codex-catalog-overlay-sync.test.ts`
|
|
22
|
-
* asserts they agree.
|
|
23
|
-
*
|
|
24
|
-
* Layer note: this lives in `core` (not the CLI auth-menu) so the model-list
|
|
25
|
-
* resolver can read it without `core` depending on `cli`. The CLI's
|
|
26
|
-
* `FALLBACK_CODEX_MODELS` is derived from this list.
|
|
27
|
-
*/
|
|
28
|
-
interface CodexModelMeta {
|
|
29
|
-
/** The wire id sent to the backend and stored in config (e.g. `gpt-5.5`). */
|
|
30
|
-
id: string;
|
|
31
|
-
/** Human-readable display name shown in pickers. */
|
|
32
|
-
name: string;
|
|
33
|
-
/** One-line capability blurb, matching the official Codex picker copy. */
|
|
34
|
-
description: string;
|
|
35
|
-
/** The recommended / latest model — tagged "(current)" in the official UI. */
|
|
36
|
-
current?: boolean;
|
|
37
|
-
}
|
|
38
|
-
/**
|
|
39
|
-
* Current ChatGPT sign-in models, newest first. The first entry is the
|
|
40
|
-
* recommended default (`current`). Order is significant: callers that need a
|
|
41
|
-
* default model id use `CODEX_MODELS[0]`.
|
|
42
|
-
*/
|
|
43
|
-
declare const CODEX_MODELS: ReadonlyArray<CodexModelMeta>;
|
|
44
|
-
/** Look up the canonical metadata for a Codex model id, or `undefined`. */
|
|
45
|
-
declare function codexModelMeta(id: string): CodexModelMeta | undefined;
|
|
46
|
-
|
|
47
|
-
interface LLMSelectorOptions {
|
|
48
|
-
/** Provider used for the selector LLM call. Required. */
|
|
49
|
-
provider: Provider;
|
|
50
|
-
/** Model for the selector. Defaults to the provider's default model. */
|
|
51
|
-
model?: string | undefined;
|
|
52
|
-
/**
|
|
53
|
-
* Maximum tokens to keep in context (target budget).
|
|
54
|
-
* Selector will aim to keep total content below this.
|
|
55
|
-
*/
|
|
56
|
-
maxContextTokens?: number | undefined;
|
|
57
|
-
/**
|
|
58
|
-
* Prompt instructing the selector how to behave.
|
|
59
|
-
* Should guide the LLM on importance tiers and output format.
|
|
60
|
-
*/
|
|
61
|
-
systemPrompt?: string | undefined;
|
|
62
|
-
/**
|
|
63
|
-
* Maximum output tokens for the selector LLM call.
|
|
64
|
-
* Controls both the JSON response budget and the token reservation for the
|
|
65
|
-
* history text budget calculation (default: 1024).
|
|
66
|
-
*/
|
|
67
|
-
maxOutputTokens?: number | undefined;
|
|
68
|
-
}
|
|
69
|
-
/**
|
|
70
|
-
* LLM-powered message selector. Calls a sub-LLM to analyze the
|
|
71
|
-
* message history and produce a keep/collapse plan — more surgical
|
|
72
|
-
* than fixed-window rules.
|
|
73
|
-
*/
|
|
74
|
-
declare class LLMSelector implements MessageSelector {
|
|
75
|
-
private readonly provider;
|
|
76
|
-
private readonly model;
|
|
77
|
-
private readonly maxContextTokens;
|
|
78
|
-
private readonly systemPrompt;
|
|
79
|
-
private readonly maxOutputTokens;
|
|
80
|
-
constructor(opts: LLMSelectorOptions);
|
|
81
|
-
select(messages: Message[], maxToKeep: number): Promise<SelectorResult>;
|
|
82
|
-
private fallbackSelect;
|
|
83
|
-
/**
|
|
84
|
-
* Parse and validate the raw LLM output into a SelectorResult.
|
|
85
|
-
* Falls back to recency-based selection if the LLM output is malformed,
|
|
86
|
-
* out-of-bounds, or internally inconsistent.
|
|
87
|
-
*/
|
|
88
|
-
private parseSelectorOutput;
|
|
89
|
-
}
|
|
90
|
-
|
|
91
|
-
declare class DefaultModeStore implements ModeStore {
|
|
92
|
-
private activeModeId;
|
|
93
|
-
private modes;
|
|
94
|
-
private configDir;
|
|
95
|
-
constructor(config: ModeConfig);
|
|
96
|
-
getActiveMode(): Promise<Mode | null>;
|
|
97
|
-
setActiveMode(modeId: string | null): Promise<void>;
|
|
98
|
-
listModes(): Promise<Mode[]>;
|
|
99
|
-
getMode(modeId: string): Promise<Mode | null>;
|
|
100
|
-
addMode(mode: Mode): Promise<void>;
|
|
101
|
-
removeMode(modeId: string): Promise<void>;
|
|
102
|
-
private loadActiveMode;
|
|
103
|
-
private saveActiveMode;
|
|
104
|
-
}
|
|
105
|
-
interface ModeLoaderOptions {
|
|
106
|
-
projectModesDir?: string | undefined;
|
|
107
|
-
userModesDir?: string | undefined;
|
|
108
|
-
}
|
|
109
|
-
declare function loadProjectModes(modesDir: string): Promise<Mode[]>;
|
|
110
|
-
declare function loadUserModes(modesDir: string): Promise<Mode[]>;
|
|
111
|
-
|
|
112
|
-
interface DefaultModelsRegistryOptions {
|
|
113
|
-
cacheFile: string;
|
|
114
|
-
url?: string | undefined;
|
|
115
|
-
ttlSeconds?: number | undefined;
|
|
116
|
-
fetchImpl?: typeof fetch | undefined;
|
|
117
|
-
/** Pre-seeded payload — useful for offline scenarios and tests. */
|
|
118
|
-
seed?: ModelsDevPayload | undefined;
|
|
119
|
-
/**
|
|
120
|
-
* Maximum age in seconds for stale cache fallback when network fails.
|
|
121
|
-
* Defaults to 7 days. Set to `Infinity` for full offline resilience
|
|
122
|
-
* (risk: deprecated models, wrong pricing). Set to `0` to disable
|
|
123
|
-
* stale fallback entirely.
|
|
124
|
-
*/
|
|
125
|
-
maxStaleAgeSeconds?: number | undefined;
|
|
126
|
-
/**
|
|
127
|
-
* Timeout in milliseconds for the models.dev network fetch. When exceeded,
|
|
128
|
-
* the fetch is aborted and cache/stale fallback is used instead.
|
|
129
|
-
* Defaults to 15 seconds. Set to `0` to disable (infinite wait).
|
|
130
|
-
*/
|
|
131
|
-
refreshTimeoutMs?: number | undefined;
|
|
132
|
-
/**
|
|
133
|
-
* Curated override payload deep-merged ON TOP of the models.dev base via
|
|
134
|
-
* `mergeModelsPayload` — adds providers/models the base lacks and overrides
|
|
135
|
-
* fields it gets wrong. Resolution order (first non-empty wins): this
|
|
136
|
-
* in-memory `overlay` → `overlayUrl` (fetched, cached) → `overlayFile`
|
|
137
|
-
* (bundled, read from disk). A missing/broken overlay degrades to `{}` and
|
|
138
|
-
* never throws, so the base alone still works.
|
|
139
|
-
*/
|
|
140
|
-
overlay?: ModelsDevPayload | undefined;
|
|
141
|
-
/** GitHub-raw (or any) URL serving the curated overlay `providers.json`. */
|
|
142
|
-
overlayUrl?: string | undefined;
|
|
143
|
-
/** Path to the bundled overlay `providers.json` (offline floor). */
|
|
144
|
-
overlayFile?: string | undefined;
|
|
145
|
-
/** Cache file for the fetched `overlayUrl`. Defaults next to `cacheFile`. */
|
|
146
|
-
overlayCacheFile?: string | undefined;
|
|
147
|
-
}
|
|
148
|
-
declare function classifyFamily(npm: string | undefined): WireFamily;
|
|
149
|
-
declare class DefaultModelsRegistry implements ModelsRegistry {
|
|
150
|
-
/** Merged (base + overlay) payload — what every reader sees. */
|
|
151
|
-
private payload?;
|
|
152
|
-
/** Memoised overlay payload (in-memory / fetched / file). */
|
|
153
|
-
private overlayPayload?;
|
|
154
|
-
/**
|
|
155
|
-
* Extra providers injected at runtime via `mergeOverlay()` — e.g. an
|
|
156
|
-
* openai-compatible server (omniroute, LiteLLM, …) auto-discovered from its
|
|
157
|
-
* `/v1/models` endpoint at boot. Applied LAST (on top of base + curated
|
|
158
|
-
* overlay) and re-applied across `refresh()` so the discovered catalog
|
|
159
|
-
* survives a models.dev refetch.
|
|
160
|
-
*/
|
|
161
|
-
private extraOverlay?;
|
|
162
|
-
private fetchedAt?;
|
|
163
|
-
private readonly cacheFile;
|
|
164
|
-
private readonly url;
|
|
165
|
-
private readonly ttlMs;
|
|
166
|
-
private readonly fetchImpl;
|
|
167
|
-
private readonly seed?;
|
|
168
|
-
private readonly maxStaleAgeMs;
|
|
169
|
-
private readonly refreshTimeoutMs;
|
|
170
|
-
private readonly overlay?;
|
|
171
|
-
private readonly overlayUrl?;
|
|
172
|
-
private readonly overlayFile?;
|
|
173
|
-
private readonly overlayCacheFile?;
|
|
174
|
-
constructor(opts: DefaultModelsRegistryOptions);
|
|
175
|
-
load(opts?: {
|
|
176
|
-
force?: boolean | undefined;
|
|
177
|
-
}): Promise<ModelsDevPayload>;
|
|
178
|
-
/**
|
|
179
|
-
* Merge an additional provider payload on top of the resolved catalog. Used
|
|
180
|
-
* for runtime-discovered openai-compatible providers. Remembered so it is
|
|
181
|
-
* re-applied across `refresh()`. A no-op for an empty payload.
|
|
182
|
-
*/
|
|
183
|
-
mergeOverlay(payload: ModelsDevPayload): void;
|
|
184
|
-
private withExtraOverlay;
|
|
185
|
-
/**
|
|
186
|
-
* Load the models.dev base payload: fresh cache → network → stale cache.
|
|
187
|
-
* On total failure, degrade to `{}` (so a non-empty overlay still drives
|
|
188
|
-
* the catalog) rather than throwing — unless there's no curated overlay to
|
|
189
|
-
* fall back on, in which case the original error propagates so pure-
|
|
190
|
-
* models.dev setups still surface the problem.
|
|
191
|
-
*/
|
|
192
|
-
private loadBase;
|
|
193
|
-
/** Fetch + cache the models.dev base. Throws on failure (used by `refresh`). */
|
|
194
|
-
private refreshBase;
|
|
195
|
-
/**
|
|
196
|
-
* Resolve the curated overlay, memoised. Order: in-memory `overlay` →
|
|
197
|
-
* fetched `overlayUrl` (cached, same TTL/stale rules) → `overlayFile` on
|
|
198
|
-
* disk. Never throws — a missing/broken overlay yields `{}`.
|
|
199
|
-
*/
|
|
200
|
-
private loadOverlay;
|
|
201
|
-
private loadOverlayFromUrl;
|
|
202
|
-
private readOverlayFile;
|
|
203
|
-
refresh(): Promise<ModelsDevPayload>;
|
|
204
|
-
listProviders(): Promise<ResolvedProvider[]>;
|
|
205
|
-
getProvider(id: string): Promise<ResolvedProvider | undefined>;
|
|
206
|
-
getModel(providerId: string, modelId: string): Promise<ResolvedModel | undefined>;
|
|
207
|
-
suggestModel(providerId: string): Promise<string | undefined>;
|
|
208
|
-
ageSeconds(): Promise<number>;
|
|
209
|
-
private resolveProvider;
|
|
210
|
-
private isFresh;
|
|
211
|
-
private isWithinMaxStaleAge;
|
|
212
|
-
private readCacheAt;
|
|
213
|
-
/** Used by `wstack models refresh` to expose where the cache lives. */
|
|
214
|
-
cacheLocation(): string;
|
|
215
|
-
}
|
|
216
|
-
|
|
217
|
-
/**
|
|
218
|
-
* A model descriptor shaped for the WebUI `provider.models` message. All
|
|
219
|
-
* metadata fields are optional because OAuth / subscription providers that
|
|
220
|
-
* models.dev doesn't list contribute only a bare id.
|
|
221
|
-
*/
|
|
222
|
-
interface ProviderModelDescriptor {
|
|
223
|
-
id: string;
|
|
224
|
-
name: string;
|
|
225
|
-
/** One-line capability blurb, when known (e.g. the Codex subscription models). */
|
|
226
|
-
description?: string | undefined;
|
|
227
|
-
releaseDate?: string | undefined;
|
|
228
|
-
contextWindow?: number | undefined;
|
|
229
|
-
inputCost?: number | undefined;
|
|
230
|
-
outputCost?: number | undefined;
|
|
231
|
-
capabilities: string[];
|
|
232
|
-
}
|
|
233
|
-
/** Map a models.dev catalog model to the WebUI descriptor shape. */
|
|
234
|
-
declare function describeCatalogModel(m: ModelsDevModel): ProviderModelDescriptor;
|
|
235
|
-
/**
|
|
236
|
-
* Resolve the model list to offer for a provider, merging a saved-config
|
|
237
|
-
* allowlist with optional models.dev catalog metadata.
|
|
238
|
-
*
|
|
239
|
-
* Priority:
|
|
240
|
-
* 1. The saved `models` allowlist is authoritative. This is the only source
|
|
241
|
-
* for OAuth / subscription / custom providers that models.dev does not
|
|
242
|
-
* list — `github-copilot`, `anthropic-oauth`, `openai-codex`,
|
|
243
|
-
* `zai-coding-plan`, etc. Each id is enriched with catalog metadata when a
|
|
244
|
-
* same-id catalog model exists, otherwise returned as a bare `{id, name}`.
|
|
245
|
-
* 2. Otherwise the full catalog model list (standard API-key providers with no
|
|
246
|
-
* saved allowlist).
|
|
247
|
-
* 3. Otherwise an empty list — *never* an error. A provider the user saved
|
|
248
|
-
* that is neither in the catalog nor carries an allowlist simply has no
|
|
249
|
-
* suggestions yet; callers must not raise a toast for that case (doing so
|
|
250
|
-
* produced the "not found in catalog" notification flood when the WebUI
|
|
251
|
-
* model switcher lazy-loaded every saved provider).
|
|
252
|
-
*/
|
|
253
|
-
declare function resolveProviderModelList(savedModels: string[] | undefined, catalog: ResolvedProvider | undefined,
|
|
254
|
-
/**
|
|
255
|
-
* Provider id / wire family the list is being resolved for. Lets the
|
|
256
|
-
* resolver fall back to a known offline catalog (currently the ChatGPT
|
|
257
|
-
* `openai-codex` models) when the saved allowlist is empty AND the
|
|
258
|
-
* models.dev catalog is unavailable — so deleting the models from config
|
|
259
|
-
* never leaves the provider showing zero models.
|
|
260
|
-
*/
|
|
261
|
-
providerHint?: string | undefined): ProviderModelDescriptor[];
|
|
262
|
-
|
|
263
|
-
export { CODEX_MODELS as C, DefaultModeStore as D, LLMSelector as L, type ModeLoaderOptions as M, type ProviderModelDescriptor as P, type CodexModelMeta as a, DefaultModelsRegistry as b, type DefaultModelsRegistryOptions as c, type LLMSelectorOptions as d, classifyFamily as e, codexModelMeta as f, describeCatalogModel as g, loadUserModes as h, loadProjectModes as l, resolveProviderModelList as r };
|