@wrongstack/core 0.284.1 → 0.285.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/agent-status-tracker.d.ts +74 -0
- package/dist/agent-status-tracker.d.ts.map +1 -0
- package/dist/autophase/auto-phase-planner.d.ts +79 -0
- package/dist/autophase/auto-phase-planner.d.ts.map +1 -0
- package/dist/autophase/auto-phase-runner.d.ts +79 -0
- package/dist/autophase/auto-phase-runner.d.ts.map +1 -0
- package/dist/autophase/checkpoint.d.ts +49 -0
- package/dist/autophase/checkpoint.d.ts.map +1 -0
- package/dist/autophase/index.d.ts +9 -0
- package/dist/autophase/index.d.ts.map +1 -0
- package/dist/autophase/phase-graph-builder.d.ts +46 -0
- package/dist/autophase/phase-graph-builder.d.ts.map +1 -0
- package/dist/autophase/phase-orchestrator.d.ts +150 -0
- package/dist/autophase/phase-orchestrator.d.ts.map +1 -0
- package/dist/autophase/phase-store.d.ts +29 -0
- package/dist/autophase/phase-store.d.ts.map +1 -0
- package/dist/autophase/types.d.ts +329 -0
- package/dist/autophase/types.d.ts.map +1 -0
- package/dist/boot.d.ts +73 -0
- package/dist/boot.d.ts.map +1 -0
- package/dist/coordination/adaptive-concurrency.d.ts +63 -0
- package/dist/coordination/adaptive-concurrency.d.ts.map +1 -0
- package/dist/coordination/agent-bridge.d.ts +24 -0
- package/dist/coordination/agent-bridge.d.ts.map +1 -0
- package/dist/coordination/agent-monitor.d.ts +100 -0
- package/dist/coordination/agent-monitor.d.ts.map +1 -0
- package/dist/coordination/agent-subagent-runner.d.ts +74 -0
- package/dist/coordination/agent-subagent-runner.d.ts.map +1 -0
- package/dist/coordination/agents/agent-prompts.d.ts +2 -0
- package/dist/coordination/agents/agent-prompts.d.ts.map +1 -0
- package/dist/coordination/agents/index.d.ts +35 -0
- package/dist/coordination/agents/index.d.ts.map +1 -0
- package/dist/coordination/agents/phase1-discovery.d.ts +4 -0
- package/dist/coordination/agents/phase1-discovery.d.ts.map +1 -0
- package/dist/coordination/agents/phase2-planning.d.ts +4 -0
- package/dist/coordination/agents/phase2-planning.d.ts.map +1 -0
- package/dist/coordination/agents/phase3-build.d.ts +4 -0
- package/dist/coordination/agents/phase3-build.d.ts.map +1 -0
- package/dist/coordination/agents/phase3-techstack.d.ts +13 -0
- package/dist/coordination/agents/phase3-techstack.d.ts.map +1 -0
- package/dist/coordination/agents/phase4-verify.d.ts +4 -0
- package/dist/coordination/agents/phase4-verify.d.ts.map +1 -0
- package/dist/coordination/agents/phase5-review.d.ts +4 -0
- package/dist/coordination/agents/phase5-review.d.ts.map +1 -0
- package/dist/coordination/agents/phase6-domain.d.ts +4 -0
- package/dist/coordination/agents/phase6-domain.d.ts.map +1 -0
- package/dist/coordination/agents/phase7-knowledge.d.ts +4 -0
- package/dist/coordination/agents/phase7-knowledge.d.ts.map +1 -0
- package/dist/coordination/agents/phase8-delivery.d.ts +4 -0
- package/dist/coordination/agents/phase8-delivery.d.ts.map +1 -0
- package/dist/coordination/agents/phase9-meta.d.ts +4 -0
- package/dist/coordination/agents/phase9-meta.d.ts.map +1 -0
- package/dist/coordination/agents/types.d.ts +79 -0
- package/dist/coordination/agents/types.d.ts.map +1 -0
- package/dist/coordination/agents.d.ts +8 -0
- package/dist/coordination/agents.d.ts.map +1 -0
- package/dist/coordination/auto-extend.d.ts +46 -0
- package/dist/coordination/auto-extend.d.ts.map +1 -0
- package/dist/coordination/autonomous-brain.d.ts +154 -0
- package/dist/coordination/autonomous-brain.d.ts.map +1 -0
- package/dist/coordination/autonomous-coordinator.d.ts +239 -0
- package/dist/coordination/autonomous-coordinator.d.ts.map +1 -0
- package/dist/coordination/brain-monitor.d.ts +74 -0
- package/dist/coordination/brain-monitor.d.ts.map +1 -0
- package/dist/coordination/brain.d.ts +104 -0
- package/dist/coordination/brain.d.ts.map +1 -0
- package/dist/coordination/change-manager.d.ts +151 -0
- package/dist/coordination/change-manager.d.ts.map +1 -0
- package/dist/coordination/checkpoint-wiring.d.ts +61 -0
- package/dist/coordination/checkpoint-wiring.d.ts.map +1 -0
- package/dist/coordination/collab-bus.d.ts +132 -0
- package/dist/coordination/collab-bus.d.ts.map +1 -0
- package/dist/coordination/collab-debug.d.ts +302 -0
- package/dist/coordination/collab-debug.d.ts.map +1 -0
- package/dist/coordination/commit-safety.d.ts +72 -0
- package/dist/coordination/commit-safety.d.ts.map +1 -0
- package/dist/coordination/consensus-protocol.d.ts +106 -0
- package/dist/coordination/consensus-protocol.d.ts.map +1 -0
- package/dist/coordination/coordinator/error-classifier.d.ts +15 -0
- package/dist/coordination/coordinator/error-classifier.d.ts.map +1 -0
- package/dist/coordination/delegate-tool.d.ts +101 -0
- package/dist/coordination/delegate-tool.d.ts.map +1 -0
- package/dist/coordination/dep-watcher-bridge.d.ts +47 -0
- package/dist/coordination/dep-watcher-bridge.d.ts.map +1 -0
- package/dist/coordination/dep-watcher.d.ts +74 -0
- package/dist/coordination/dep-watcher.d.ts.map +1 -0
- package/dist/coordination/director/director-errors.d.ts +29 -0
- package/dist/coordination/director/director-errors.d.ts.map +1 -0
- package/dist/coordination/director-construction.d.ts +90 -0
- package/dist/coordination/director-construction.d.ts.map +1 -0
- package/dist/coordination/director-prompts.d.ts +119 -0
- package/dist/coordination/director-prompts.d.ts.map +1 -0
- package/dist/coordination/director-session.d.ts +68 -0
- package/dist/coordination/director-session.d.ts.map +1 -0
- package/dist/coordination/director-tools.d.ts +65 -0
- package/dist/coordination/director-tools.d.ts.map +1 -0
- package/dist/coordination/director.d.ts +802 -0
- package/dist/coordination/director.d.ts.map +1 -0
- package/dist/coordination/dispatcher.d.ts +82 -0
- package/dist/coordination/dispatcher.d.ts.map +1 -0
- package/dist/coordination/file-author-tracker.d.ts +76 -0
- package/dist/coordination/file-author-tracker.d.ts.map +1 -0
- package/dist/coordination/fleet-bus.d.ts +122 -0
- package/dist/coordination/fleet-bus.d.ts.map +1 -0
- package/dist/coordination/fleet-event-validation.d.ts +10 -0
- package/dist/coordination/fleet-event-validation.d.ts.map +1 -0
- package/dist/coordination/fleet-manager.d.ts +234 -0
- package/dist/coordination/fleet-manager.d.ts.map +1 -0
- package/dist/coordination/fleet-spawn.d.ts +102 -0
- package/dist/coordination/fleet-spawn.d.ts.map +1 -0
- package/dist/coordination/fleet-status-tool.d.ts +36 -0
- package/dist/coordination/fleet-status-tool.d.ts.map +1 -0
- package/dist/coordination/fleet-supervisor.d.ts +157 -0
- package/dist/coordination/fleet-supervisor.d.ts.map +1 -0
- package/dist/coordination/fleet.d.ts +96 -0
- package/dist/coordination/fleet.d.ts.map +1 -0
- package/dist/coordination/global-mailbox.d.ts +234 -0
- package/dist/coordination/global-mailbox.d.ts.map +1 -0
- package/dist/coordination/icoordinator.d.ts +97 -0
- package/dist/coordination/icoordinator.d.ts.map +1 -0
- package/dist/coordination/ifleet-manager.d.ts +177 -0
- package/dist/coordination/ifleet-manager.d.ts.map +1 -0
- package/dist/coordination/in-memory-transport.d.ts +12 -0
- package/dist/coordination/in-memory-transport.d.ts.map +1 -0
- package/dist/coordination/index.d.ts +78 -2587
- package/dist/coordination/index.d.ts.map +1 -0
- package/dist/coordination/index.js +739 -254
- package/dist/coordination/index.js.map +7 -1
- package/dist/coordination/knowledge-graph.d.ts +217 -0
- package/dist/coordination/knowledge-graph.d.ts.map +1 -0
- package/dist/coordination/large-answer-store.d.ts +61 -0
- package/dist/coordination/large-answer-store.d.ts.map +1 -0
- package/dist/coordination/mail-tools.d.ts +34 -0
- package/dist/coordination/mail-tools.d.ts.map +1 -0
- package/dist/coordination/mailbox-actions.d.ts +68 -0
- package/dist/coordination/mailbox-actions.d.ts.map +1 -0
- package/dist/coordination/mailbox-health.d.ts +131 -0
- package/dist/coordination/mailbox-health.d.ts.map +1 -0
- package/dist/coordination/mailbox-hooks.d.ts +55 -0
- package/dist/coordination/mailbox-hooks.d.ts.map +1 -0
- package/dist/coordination/mailbox-tool.d.ts +75 -0
- package/dist/coordination/mailbox-tool.d.ts.map +1 -0
- package/dist/{mailbox-types-BGZWrYTJ.d.ts → coordination/mailbox-types.d.ts} +37 -22
- package/dist/coordination/mailbox-types.d.ts.map +1 -0
- package/dist/coordination/mailbox.d.ts +69 -0
- package/dist/coordination/mailbox.d.ts.map +1 -0
- package/dist/coordination/model-matrix.d.ts +98 -0
- package/dist/coordination/model-matrix.d.ts.map +1 -0
- package/dist/coordination/multi-agent-coordinator.d.ts +202 -0
- package/dist/coordination/multi-agent-coordinator.d.ts.map +1 -0
- package/dist/coordination/null-fleet-bus.d.ts +10 -0
- package/dist/coordination/null-fleet-bus.d.ts.map +1 -0
- package/dist/coordination/package-author-tracker.d.ts +87 -0
- package/dist/coordination/package-author-tracker.d.ts.map +1 -0
- package/dist/coordination/package-outdated-watcher.d.ts +83 -0
- package/dist/coordination/package-outdated-watcher.d.ts.map +1 -0
- package/dist/coordination/single-instance-mailbox.d.ts +154 -0
- package/dist/coordination/single-instance-mailbox.d.ts.map +1 -0
- package/dist/coordination/spawn-budget.d.ts +6 -0
- package/dist/coordination/spawn-budget.d.ts.map +1 -0
- package/dist/coordination/subagent-budget.d.ts +323 -0
- package/dist/coordination/subagent-budget.d.ts.map +1 -0
- package/dist/coordination/subagent-nicknames.d.ts +42 -0
- package/dist/coordination/subagent-nicknames.d.ts.map +1 -0
- package/dist/coordination/subagent-result-tool.d.ts +20 -0
- package/dist/coordination/subagent-result-tool.d.ts.map +1 -0
- package/dist/coordination/task-auctioneer.d.ts +143 -0
- package/dist/coordination/task-auctioneer.d.ts.map +1 -0
- package/dist/coordination/task-dag.d.ts +147 -0
- package/dist/coordination/task-dag.d.ts.map +1 -0
- package/dist/coordination/techstack-mailbox-consumer.d.ts +50 -0
- package/dist/coordination/techstack-mailbox-consumer.d.ts.map +1 -0
- package/dist/coordination/transport.d.ts +2 -0
- package/dist/coordination/transport.d.ts.map +1 -0
- package/dist/coordination/worktree-task-runner.d.ts +45 -0
- package/dist/coordination/worktree-task-runner.d.ts.map +1 -0
- package/dist/core/agent-internals.d.ts +41 -0
- package/dist/core/agent-internals.d.ts.map +1 -0
- package/dist/core/agent-loop.d.ts +18 -0
- package/dist/core/agent-loop.d.ts.map +1 -0
- package/dist/core/agent-response.d.ts +21 -0
- package/dist/core/agent-response.d.ts.map +1 -0
- package/dist/core/agent-tools.d.ts +21 -0
- package/dist/core/agent-tools.d.ts.map +1 -0
- package/dist/core/agent-types.d.ts +95 -0
- package/dist/core/agent-types.d.ts.map +1 -0
- package/dist/core/agent.d.ts +54 -0
- package/dist/core/agent.d.ts.map +1 -0
- package/dist/core/btw.d.ts +40 -0
- package/dist/core/btw.d.ts.map +1 -0
- package/dist/core/context.d.ts +269 -0
- package/dist/core/context.d.ts.map +1 -0
- package/dist/core/continue-intent.d.ts +92 -0
- package/dist/core/continue-intent.d.ts.map +1 -0
- package/dist/core/continue-to-next-iteration.d.ts +96 -0
- package/dist/core/continue-to-next-iteration.d.ts.map +1 -0
- package/dist/core/conversation-state.d.ts +96 -0
- package/dist/core/conversation-state.d.ts.map +1 -0
- package/dist/core/fallback-model.d.ts +94 -0
- package/dist/core/fallback-model.d.ts.map +1 -0
- package/dist/core/fleet-pulse.d.ts +42 -0
- package/dist/core/fleet-pulse.d.ts.map +1 -0
- package/dist/core/input-builder.d.ts +95 -0
- package/dist/core/input-builder.d.ts.map +1 -0
- package/dist/core/instruction-bundle.d.ts +22 -0
- package/dist/core/instruction-bundle.d.ts.map +1 -0
- package/dist/core/iteration-limit.d.ts +35 -0
- package/dist/core/iteration-limit.d.ts.map +1 -0
- package/dist/core/mailbox-loop.d.ts +63 -0
- package/dist/core/mailbox-loop.d.ts.map +1 -0
- package/dist/core/modes/brief.d.ts +2 -0
- package/dist/core/modes/brief.d.ts.map +1 -0
- package/dist/core/modes/default.d.ts +8 -0
- package/dist/core/modes/default.d.ts.map +1 -0
- package/dist/core/modes/teach.d.ts +2 -0
- package/dist/core/modes/teach.d.ts.map +1 -0
- package/dist/core/provider-runner.d.ts +24 -0
- package/dist/core/provider-runner.d.ts.map +1 -0
- package/dist/core/queued-messages.d.ts +55 -0
- package/dist/core/queued-messages.d.ts.map +1 -0
- package/dist/core/run-env.d.ts +49 -0
- package/dist/core/run-env.d.ts.map +1 -0
- package/dist/core/streaming-response-builder.d.ts +78 -0
- package/dist/core/streaming-response-builder.d.ts.map +1 -0
- package/dist/core/system-prompt-builder.d.ts +213 -0
- package/dist/core/system-prompt-builder.d.ts.map +1 -0
- package/dist/defaults/index.d.ts +68 -158
- package/dist/defaults/index.d.ts.map +1 -0
- package/dist/defaults/index.js +1257 -819
- package/dist/defaults/index.js.map +7 -1
- package/dist/execution/auto-compaction-middleware.d.ts +123 -0
- package/dist/execution/auto-compaction-middleware.d.ts.map +1 -0
- package/dist/execution/autonomous-runner.d.ts +55 -0
- package/dist/execution/autonomous-runner.d.ts.map +1 -0
- package/dist/execution/autonomy-brain.d.ts +90 -0
- package/dist/execution/autonomy-brain.d.ts.map +1 -0
- package/dist/execution/autonomy-prompt-contributor.d.ts +39 -0
- package/dist/execution/autonomy-prompt-contributor.d.ts.map +1 -0
- package/dist/execution/compaction-core.d.ts +103 -0
- package/dist/execution/compaction-core.d.ts.map +1 -0
- package/dist/execution/compactor.d.ts +56 -0
- package/dist/execution/compactor.d.ts.map +1 -0
- package/dist/execution/design-color.d.ts +31 -0
- package/dist/execution/design-color.d.ts.map +1 -0
- package/dist/execution/design-detect.d.ts +96 -0
- package/dist/execution/design-detect.d.ts.map +1 -0
- package/dist/execution/design-kit-loader.d.ts +53 -0
- package/dist/execution/design-kit-loader.d.ts.map +1 -0
- package/dist/execution/design-materialize.d.ts +32 -0
- package/dist/execution/design-materialize.d.ts.map +1 -0
- package/dist/execution/design-project-store.d.ts +57 -0
- package/dist/execution/design-project-store.d.ts.map +1 -0
- package/dist/execution/design-verify.d.ts +44 -0
- package/dist/execution/design-verify.d.ts.map +1 -0
- package/dist/execution/error-handler.d.ts +34 -0
- package/dist/execution/error-handler.d.ts.map +1 -0
- package/dist/{parallel-eternal-engine-HUrtePLd.d.ts → execution/eternal-autonomy.d.ts} +10 -225
- package/dist/execution/eternal-autonomy.d.ts.map +1 -0
- package/dist/execution/goal-preamble.d.ts +2 -0
- package/dist/execution/goal-preamble.d.ts.map +1 -0
- package/dist/execution/index.d.ts +21 -180
- package/dist/execution/index.d.ts.map +1 -0
- package/dist/execution/index.js +465 -180
- package/dist/execution/index.js.map +7 -1
- package/dist/execution/intelligent-compactor.d.ts +85 -0
- package/dist/execution/intelligent-compactor.d.ts.map +1 -0
- package/dist/execution/model-runtime.d.ts +75 -0
- package/dist/execution/model-runtime.d.ts.map +1 -0
- package/dist/execution/parallel-eternal-engine.d.ts +130 -0
- package/dist/execution/parallel-eternal-engine.d.ts.map +1 -0
- package/dist/execution/prompt-enhancer.d.ts +12 -13
- package/dist/execution/prompt-enhancer.d.ts.map +1 -0
- package/dist/execution/prompt-enhancer.js +13 -7
- package/dist/execution/prompt-enhancer.js.map +7 -1
- package/dist/execution/prompt-loader.d.ts +52 -0
- package/dist/execution/prompt-loader.d.ts.map +1 -0
- package/dist/execution/provider-runner-impl.d.ts +14 -0
- package/dist/execution/provider-runner-impl.d.ts.map +1 -0
- package/dist/execution/regex-patterns.d.ts +7 -0
- package/dist/execution/regex-patterns.d.ts.map +1 -0
- package/dist/execution/retry-policy.d.ts +35 -0
- package/dist/execution/retry-policy.d.ts.map +1 -0
- package/dist/execution/selective-compactor.d.ts +94 -0
- package/dist/execution/selective-compactor.d.ts.map +1 -0
- package/dist/execution/skill-loader.d.ts +43 -0
- package/dist/execution/skill-loader.d.ts.map +1 -0
- package/dist/execution/strategy-compactor.d.ts +43 -0
- package/dist/execution/strategy-compactor.d.ts.map +1 -0
- package/dist/execution/tool-executor.d.ts +112 -0
- package/dist/execution/tool-executor.d.ts.map +1 -0
- package/dist/extension/extension-points.d.ts +121 -0
- package/dist/extension/extension-points.d.ts.map +1 -0
- package/dist/extension/index.d.ts +3 -10
- package/dist/extension/index.d.ts.map +1 -0
- package/dist/extension/index.js +59 -5
- package/dist/extension/index.js.map +7 -1
- package/dist/extension/registry.d.ts +86 -0
- package/dist/extension/registry.d.ts.map +1 -0
- package/dist/fleet-notifier.d.ts +28 -0
- package/dist/fleet-notifier.d.ts.map +1 -0
- package/dist/hooks/http-executor.d.ts +11 -0
- package/dist/hooks/http-executor.d.ts.map +1 -0
- package/dist/hooks/index.d.ts +10 -0
- package/dist/hooks/index.d.ts.map +1 -0
- package/dist/hooks/registry.d.ts +71 -0
- package/dist/hooks/registry.d.ts.map +1 -0
- package/dist/hooks/runner.d.ts +65 -0
- package/dist/hooks/runner.d.ts.map +1 -0
- package/dist/hooks/shell-executor.d.ts +33 -0
- package/dist/hooks/shell-executor.d.ts.map +1 -0
- package/dist/hooks/shell-hooks-equal.d.ts +15 -0
- package/dist/hooks/shell-hooks-equal.d.ts.map +1 -0
- package/dist/hq/agent-bridge.d.ts +27 -0
- package/dist/hq/agent-bridge.d.ts.map +1 -0
- package/dist/hq/alerts.d.ts +67 -0
- package/dist/hq/alerts.d.ts.map +1 -0
- package/dist/hq/auth-store.d.ts +161 -0
- package/dist/hq/auth-store.d.ts.map +1 -0
- package/dist/hq/brain-bridge.d.ts +37 -0
- package/dist/hq/brain-bridge.d.ts.map +1 -0
- package/dist/hq/commands.d.ts +122 -0
- package/dist/hq/commands.d.ts.map +1 -0
- package/dist/hq/cost-bridge.d.ts +36 -0
- package/dist/hq/cost-bridge.d.ts.map +1 -0
- package/dist/hq/factory.d.ts +66 -0
- package/dist/hq/factory.d.ts.map +1 -0
- package/dist/hq/fleet-bridge.d.ts +39 -0
- package/dist/hq/fleet-bridge.d.ts.map +1 -0
- package/dist/hq/index.d.ts +18 -816
- package/dist/hq/index.d.ts.map +1 -0
- package/dist/hq/index.js +417 -122
- package/dist/hq/index.js.map +7 -1
- package/dist/hq/mailbox-mapper.d.ts +27 -0
- package/dist/hq/mailbox-mapper.d.ts.map +1 -0
- package/dist/hq/persistence.d.ts +121 -0
- package/dist/hq/persistence.d.ts.map +1 -0
- package/dist/hq/protocol.d.ts +560 -0
- package/dist/hq/protocol.d.ts.map +1 -0
- package/dist/hq/publisher.d.ts +177 -0
- package/dist/hq/publisher.d.ts.map +1 -0
- package/dist/hq/redaction.d.ts +30 -0
- package/dist/hq/redaction.d.ts.map +1 -0
- package/dist/hq/session-bridge.d.ts +29 -0
- package/dist/hq/session-bridge.d.ts.map +1 -0
- package/dist/hq/tool-bridge.d.ts +41 -0
- package/dist/hq/tool-bridge.d.ts.map +1 -0
- package/dist/hq/transcript-mapper.d.ts +36 -0
- package/dist/hq/transcript-mapper.d.ts.map +1 -0
- package/dist/hq/worktree-bridge.d.ts +34 -0
- package/dist/hq/worktree-bridge.d.ts.map +1 -0
- package/dist/index.d.ts +108 -2872
- package/dist/index.d.ts.map +1 -0
- package/dist/index.js +2724 -1344
- package/dist/index.js.map +7 -1
- package/dist/infrastructure/context-manager.d.ts +92 -0
- package/dist/infrastructure/context-manager.d.ts.map +1 -0
- package/dist/infrastructure/index.d.ts +6 -64
- package/dist/infrastructure/index.d.ts.map +1 -0
- package/dist/infrastructure/index.js +39 -12
- package/dist/infrastructure/index.js.map +7 -1
- package/dist/infrastructure/logger.d.ts +99 -0
- package/dist/infrastructure/logger.d.ts.map +1 -0
- package/dist/infrastructure/mcp-servers.d.ts +83 -0
- package/dist/infrastructure/mcp-servers.d.ts.map +1 -0
- package/dist/{path-resolver-CMS5307d.d.ts → infrastructure/path-resolver.d.ts} +3 -5
- package/dist/infrastructure/path-resolver.d.ts.map +1 -0
- package/dist/infrastructure/token-counter.d.ts +57 -0
- package/dist/infrastructure/token-counter.d.ts.map +1 -0
- package/dist/kernel/container.d.ts +84 -0
- package/dist/kernel/container.d.ts.map +1 -0
- package/dist/{events-Bgnh43r9.d.ts → kernel/events.d.ts} +112 -206
- package/dist/kernel/events.d.ts.map +1 -0
- package/dist/kernel/index.d.ts +6 -107
- package/dist/kernel/index.d.ts.map +1 -0
- package/dist/kernel/index.js +56 -4
- package/dist/kernel/index.js.map +7 -1
- package/dist/kernel/pipeline.d.ts +105 -0
- package/dist/kernel/pipeline.d.ts.map +1 -0
- package/dist/kernel/run-controller.d.ts +55 -0
- package/dist/kernel/run-controller.d.ts.map +1 -0
- package/dist/kernel/tokens.d.ts +53 -0
- package/dist/kernel/tokens.d.ts.map +1 -0
- package/dist/mailbox-attach.d.ts +27 -0
- package/dist/mailbox-attach.d.ts.map +1 -0
- package/dist/middleware/collab-pause.d.ts +73 -0
- package/dist/middleware/collab-pause.d.ts.map +1 -0
- package/dist/models/codex-catalog.d.ts +41 -0
- package/dist/models/codex-catalog.d.ts.map +1 -0
- package/dist/models/index.d.ts +8 -163
- package/dist/models/index.d.ts.map +1 -0
- package/dist/models/index.js +150 -51
- package/dist/models/index.js.map +7 -1
- package/dist/models/llm-selector.d.ts +47 -0
- package/dist/models/llm-selector.d.ts.map +1 -0
- package/dist/models/mode-store.d.ts +22 -0
- package/dist/models/mode-store.d.ts.map +1 -0
- package/dist/models/model-intelligence.d.ts +56 -0
- package/dist/models/model-intelligence.d.ts.map +1 -0
- package/dist/models/model-router.d.ts +100 -0
- package/dist/models/model-router.d.ts.map +1 -0
- package/dist/models/models-registry.d.ts +106 -0
- package/dist/models/models-registry.d.ts.map +1 -0
- package/dist/models/provider-model-resolve.d.ts +69 -0
- package/dist/models/provider-model-resolve.d.ts.map +1 -0
- package/dist/observability/event-bridge.d.ts +10 -0
- package/dist/observability/event-bridge.d.ts.map +1 -0
- package/dist/observability/health.d.ts +18 -0
- package/dist/observability/health.d.ts.map +1 -0
- package/dist/observability/index.d.ts +9 -354
- package/dist/observability/index.d.ts.map +1 -0
- package/dist/observability/index.js +21 -8
- package/dist/observability/index.js.map +7 -1
- package/dist/observability/metrics.d.ts +26 -0
- package/dist/observability/metrics.d.ts.map +1 -0
- package/dist/observability/otel-tracer.d.ts +41 -0
- package/dist/observability/otel-tracer.d.ts.map +1 -0
- package/dist/observability/otlp-metrics.d.ts +111 -0
- package/dist/observability/otlp-metrics.d.ts.map +1 -0
- package/dist/observability/otlp-traces.d.ts +95 -0
- package/dist/observability/otlp-traces.d.ts.map +1 -0
- package/dist/observability/prometheus.d.ts +49 -0
- package/dist/observability/prometheus.d.ts.map +1 -0
- package/dist/observability/tracer.d.ts +9 -0
- package/dist/observability/tracer.d.ts.map +1 -0
- package/dist/plugin/api.d.ts +226 -0
- package/dist/plugin/api.d.ts.map +1 -0
- package/dist/plugin/loader.d.ts +73 -0
- package/dist/plugin/loader.d.ts.map +1 -0
- package/dist/plugins/chimera-plugin.d.ts +37 -0
- package/dist/plugins/chimera-plugin.d.ts.map +1 -0
- package/dist/plugins/git-plugin.d.ts +15 -0
- package/dist/plugins/git-plugin.d.ts.map +1 -0
- package/dist/plugins/observability-plugin.d.ts +19 -0
- package/dist/plugins/observability-plugin.d.ts.map +1 -0
- package/dist/plugins/plan-plugin.d.ts +16 -0
- package/dist/plugins/plan-plugin.d.ts.map +1 -0
- package/dist/plugins/prompts-plugin.d.ts +26 -0
- package/dist/plugins/prompts-plugin.d.ts.map +1 -0
- package/dist/plugins/security-plugin.d.ts +19 -0
- package/dist/plugins/security-plugin.d.ts.map +1 -0
- package/dist/plugins/skills-plugin.d.ts +42 -0
- package/dist/plugins/skills-plugin.d.ts.map +1 -0
- package/dist/plugins/sync-plugin.d.ts +22 -0
- package/dist/plugins/sync-plugin.d.ts.map +1 -0
- package/dist/prompts/index.d.ts +3 -0
- package/dist/prompts/index.d.ts.map +1 -0
- package/dist/prompts/prompt-installer.d.ts +50 -0
- package/dist/prompts/prompt-installer.d.ts.map +1 -0
- package/dist/prompts/prompt-manifest-store.d.ts +18 -0
- package/dist/prompts/prompt-manifest-store.d.ts.map +1 -0
- package/dist/registry/provider-registry.d.ts +51 -0
- package/dist/registry/provider-registry.d.ts.map +1 -0
- package/dist/registry/slash-command-registry.d.ts +61 -0
- package/dist/registry/slash-command-registry.d.ts.map +1 -0
- package/dist/registry/tool-registry.d.ts +154 -0
- package/dist/registry/tool-registry.d.ts.map +1 -0
- package/dist/replay/hash.d.ts +31 -0
- package/dist/replay/hash.d.ts.map +1 -0
- package/dist/replay/replay-provider-runner.d.ts +53 -0
- package/dist/replay/replay-provider-runner.d.ts.map +1 -0
- package/dist/{index-CbyuOE5y.d.ts → security/capabilities.d.ts} +31 -34
- package/dist/security/capabilities.d.ts.map +1 -0
- package/dist/security/config-secrets.d.ts +25 -0
- package/dist/security/config-secrets.d.ts.map +1 -0
- package/dist/security/index.d.ts +6 -8
- package/dist/security/index.d.ts.map +1 -0
- package/dist/security/index.js +102 -381
- package/dist/security/index.js.map +7 -1
- package/dist/security/permission-policy.d.ts +153 -0
- package/dist/security/permission-policy.d.ts.map +1 -0
- package/dist/security/secret-scrubber.d.ts +14 -0
- package/dist/security/secret-scrubber.d.ts.map +1 -0
- package/dist/security/secret-vault.d.ts +87 -0
- package/dist/security/secret-vault.d.ts.map +1 -0
- package/dist/security/yolo-risk.d.ts +11 -0
- package/dist/security/yolo-risk.d.ts.map +1 -0
- package/dist/{session-registry-Dvg7i_IA.d.ts → session-registry.d.ts} +8 -9
- package/dist/session-registry.d.ts.map +1 -0
- package/dist/skills/foreign-sources.d.ts +59 -0
- package/dist/skills/foreign-sources.d.ts.map +1 -0
- package/dist/skills/frontmatter.d.ts +44 -0
- package/dist/skills/frontmatter.d.ts.map +1 -0
- package/dist/skills/github-fetcher.d.ts +38 -0
- package/dist/skills/github-fetcher.d.ts.map +1 -0
- package/dist/skills/index.d.ts +11 -582
- package/dist/skills/index.d.ts.map +1 -0
- package/dist/skills/index.js +81 -43
- package/dist/skills/index.js.map +7 -1
- package/dist/skills/limits.d.ts +92 -0
- package/dist/skills/limits.d.ts.map +1 -0
- package/dist/skills/manifest-store.d.ts +42 -0
- package/dist/skills/manifest-store.d.ts.map +1 -0
- package/dist/skills/registry/github-direct-adapter.d.ts +17 -0
- package/dist/skills/registry/github-direct-adapter.d.ts.map +1 -0
- package/dist/skills/registry/registry-adapter.d.ts +84 -0
- package/dist/skills/registry/registry-adapter.d.ts.map +1 -0
- package/dist/skills/registry/skills-sh-adapter.d.ts +13 -0
- package/dist/skills/registry/skills-sh-adapter.d.ts.map +1 -0
- package/dist/skills/skill-generator.d.ts +82 -0
- package/dist/skills/skill-generator.d.ts.map +1 -0
- package/dist/skills/skill-installer.d.ts +124 -0
- package/dist/skills/skill-installer.d.ts.map +1 -0
- package/dist/storage/annotations-store.d.ts +118 -0
- package/dist/storage/annotations-store.d.ts.map +1 -0
- package/dist/storage/attachment-store.d.ts +31 -0
- package/dist/storage/attachment-store.d.ts.map +1 -0
- package/dist/storage/cloud-sync.d.ts +44 -0
- package/dist/storage/cloud-sync.d.ts.map +1 -0
- package/dist/storage/completed-work-checkpoint.d.ts +11 -0
- package/dist/storage/completed-work-checkpoint.d.ts.map +1 -0
- package/dist/storage/config-loader.d.ts +104 -0
- package/dist/storage/config-loader.d.ts.map +1 -0
- package/dist/storage/config-migration.d.ts +87 -0
- package/dist/storage/config-migration.d.ts.map +1 -0
- package/dist/storage/config-store.d.ts +22 -0
- package/dist/storage/config-store.d.ts.map +1 -0
- package/dist/{director-state-CMS_bMs4.d.ts → storage/director-state.d.ts} +28 -8
- package/dist/storage/director-state.d.ts.map +1 -0
- package/dist/storage/file-session-writer.d.ts +169 -0
- package/dist/storage/file-session-writer.d.ts.map +1 -0
- package/dist/{goal-store-Datpp-ar.d.ts → storage/goal-store.d.ts} +26 -19
- package/dist/storage/goal-store.d.ts.map +1 -0
- package/dist/storage/index.d.ts +39 -1031
- package/dist/storage/index.d.ts.map +1 -0
- package/dist/storage/index.js +655 -300
- package/dist/storage/index.js.map +7 -1
- package/dist/storage/input-history-store.d.ts +56 -0
- package/dist/storage/input-history-store.d.ts.map +1 -0
- package/dist/storage/memory-backend.d.ts +66 -0
- package/dist/storage/memory-backend.d.ts.map +1 -0
- package/dist/storage/memory-consolidator.d.ts +50 -0
- package/dist/storage/memory-consolidator.d.ts.map +1 -0
- package/dist/storage/memory-graph-backend.d.ts +117 -0
- package/dist/storage/memory-graph-backend.d.ts.map +1 -0
- package/dist/storage/memory-store.d.ts +119 -0
- package/dist/storage/memory-store.d.ts.map +1 -0
- package/dist/storage/plan-store.d.ts +78 -0
- package/dist/storage/plan-store.d.ts.map +1 -0
- package/dist/storage/plan-templates.d.ts +21 -0
- package/dist/storage/plan-templates.d.ts.map +1 -0
- package/dist/storage/prompt-store.d.ts +37 -0
- package/dist/storage/prompt-store.d.ts.map +1 -0
- package/dist/storage/prompt-usage-store.d.ts +29 -0
- package/dist/storage/prompt-usage-store.d.ts.map +1 -0
- package/dist/storage/provider-config-watcher.d.ts +34 -0
- package/dist/storage/provider-config-watcher.d.ts.map +1 -0
- package/dist/storage/queue-store.d.ts +37 -0
- package/dist/storage/queue-store.d.ts.map +1 -0
- package/dist/storage/recovery-lock.d.ts +79 -0
- package/dist/storage/recovery-lock.d.ts.map +1 -0
- package/dist/storage/replay-log-store.d.ts +97 -0
- package/dist/storage/replay-log-store.d.ts.map +1 -0
- package/dist/storage/session-analyzer.d.ts +48 -0
- package/dist/storage/session-analyzer.d.ts.map +1 -0
- package/dist/storage/session-checkpoint-cas.d.ts +37 -0
- package/dist/storage/session-checkpoint-cas.d.ts.map +1 -0
- package/dist/{session-event-bridge-D_z_mBwk.d.ts → storage/session-event-bridge.d.ts} +14 -15
- package/dist/storage/session-event-bridge.d.ts.map +1 -0
- package/dist/storage/session-helpers.d.ts +9 -0
- package/dist/storage/session-helpers.d.ts.map +1 -0
- package/dist/storage/session-id.d.ts +18 -0
- package/dist/storage/session-id.d.ts.map +1 -0
- package/dist/storage/session-reader.d.ts +21 -0
- package/dist/storage/session-reader.d.ts.map +1 -0
- package/dist/storage/session-recovery.d.ts +93 -0
- package/dist/storage/session-recovery.d.ts.map +1 -0
- package/dist/storage/session-resume-validation.d.ts +6 -0
- package/dist/storage/session-resume-validation.d.ts.map +1 -0
- package/dist/storage/session-rewinder.d.ts +21 -0
- package/dist/storage/session-rewinder.d.ts.map +1 -0
- package/dist/storage/session-store.d.ts +210 -0
- package/dist/storage/session-store.d.ts.map +1 -0
- package/dist/storage/session-summary.d.ts +12 -0
- package/dist/storage/session-summary.d.ts.map +1 -0
- package/dist/storage/session-tool-call-ends.d.ts +5 -0
- package/dist/storage/session-tool-call-ends.d.ts.map +1 -0
- package/dist/storage/storage-concurrency.d.ts +2 -0
- package/dist/storage/storage-concurrency.d.ts.map +1 -0
- package/dist/storage/task-store.d.ts +33 -0
- package/dist/storage/task-store.d.ts.map +1 -0
- package/dist/storage/todos-checkpoint.d.ts +39 -0
- package/dist/storage/todos-checkpoint.d.ts.map +1 -0
- package/dist/storage/tool-audit-log.d.ts +141 -0
- package/dist/storage/tool-audit-log.d.ts.map +1 -0
- package/dist/tasking/index.d.ts +3 -124
- package/dist/tasking/index.d.ts.map +1 -0
- package/dist/tasking/index.js +57 -4
- package/dist/tasking/index.js.map +7 -1
- package/dist/tasking/task-store.d.ts +22 -0
- package/dist/tasking/task-store.d.ts.map +1 -0
- package/dist/tasking/task-tracker.d.ts +102 -0
- package/dist/tasking/task-tracker.d.ts.map +1 -0
- package/dist/tools/index.d.ts +2 -59
- package/dist/tools/index.d.ts.map +1 -0
- package/dist/tools/index.js +93 -14
- package/dist/tools/index.js.map +7 -1
- package/dist/tools/mcp-control.d.ts +53 -0
- package/dist/tools/mcp-control.d.ts.map +1 -0
- package/dist/tools/mcp-use.d.ts +24 -0
- package/dist/tools/mcp-use.d.ts.map +1 -0
- package/dist/types/agent-bridge.d.ts +42 -0
- package/dist/types/agent-bridge.d.ts.map +1 -0
- package/dist/types/attachment.d.ts +54 -0
- package/dist/types/attachment.d.ts.map +1 -0
- package/dist/types/autonomy.d.ts +5 -0
- package/dist/types/autonomy.d.ts.map +1 -0
- package/dist/types/blocks.d.ts +76 -0
- package/dist/types/blocks.d.ts.map +1 -0
- package/dist/{compactor-DQLL4HTo.d.ts → types/compactor.d.ts} +5 -7
- package/dist/types/compactor.d.ts.map +1 -0
- package/dist/{config-MRqn1V-u.d.ts → types/config.d.ts} +135 -354
- package/dist/types/config.d.ts.map +1 -0
- package/dist/types/context-evidence.d.ts +68 -0
- package/dist/types/context-evidence.d.ts.map +1 -0
- package/dist/types/context-window.d.ts +35 -0
- package/dist/types/context-window.d.ts.map +1 -0
- package/dist/{default-config-B79_gJYv.d.ts → types/default-config.d.ts} +10 -11
- package/dist/types/default-config.d.ts.map +1 -0
- package/dist/types/design-kit.d.ts +91 -0
- package/dist/types/design-kit.d.ts.map +1 -0
- package/dist/{retry-policy-CQ7KwXJa.d.ts → types/error-handler.d.ts} +5 -12
- package/dist/types/error-handler.d.ts.map +1 -0
- package/dist/types/errors.d.ts +277 -0
- package/dist/types/errors.d.ts.map +1 -0
- package/dist/types/hooks.d.ts +167 -0
- package/dist/types/hooks.d.ts.map +1 -0
- package/dist/types/index.d.ts +40 -244
- package/dist/types/index.d.ts.map +1 -0
- package/dist/types/index.js +90 -12
- package/dist/types/index.js.map +7 -1
- package/dist/{input-reader-E-ffP2ee.d.ts → types/input-reader.d.ts} +3 -4
- package/dist/types/input-reader.d.ts.map +1 -0
- package/dist/{logger-B63L5bTg.d.ts → types/logger.d.ts} +3 -4
- package/dist/types/logger.d.ts.map +1 -0
- package/dist/types/memory.d.ts +89 -0
- package/dist/types/memory.d.ts.map +1 -0
- package/dist/types/messages.d.ts +24 -0
- package/dist/types/messages.d.ts.map +1 -0
- package/dist/types/mode-prompts.d.ts +2 -0
- package/dist/types/mode-prompts.d.ts.map +1 -0
- package/dist/{mode-CZlO9iU1.d.ts → types/mode.d.ts} +6 -7
- package/dist/types/mode.d.ts.map +1 -0
- package/dist/types/models-registry.d.ts +105 -0
- package/dist/types/models-registry.d.ts.map +1 -0
- package/dist/types/multi-agent.d.ts +435 -0
- package/dist/types/multi-agent.d.ts.map +1 -0
- package/dist/{observability-D-HZN_mF.d.ts → types/observability.d.ts} +12 -13
- package/dist/types/observability.d.ts.map +1 -0
- package/dist/{path-resolver-CPRj4bFY.d.ts → types/path-resolver.d.ts} +2 -3
- package/dist/types/path-resolver.d.ts.map +1 -0
- package/dist/{permission-ByDKXEcG.d.ts → types/permission.d.ts} +8 -9
- package/dist/types/permission.d.ts.map +1 -0
- package/dist/types/plugin.d.ts +385 -0
- package/dist/types/plugin.d.ts.map +1 -0
- package/dist/types/prompt-registry.d.ts +81 -0
- package/dist/types/prompt-registry.d.ts.map +1 -0
- package/dist/{prompt-DLd35n4Q.d.ts → types/prompt.d.ts} +14 -15
- package/dist/types/prompt.d.ts.map +1 -0
- package/dist/{provider-runner-ChL-kVg6.d.ts → types/provider-runner.d.ts} +9 -10
- package/dist/types/provider-runner.d.ts.map +1 -0
- package/dist/types/provider.d.ts +387 -0
- package/dist/types/provider.d.ts.map +1 -0
- package/dist/types/renderer.d.ts +23 -0
- package/dist/types/renderer.d.ts.map +1 -0
- package/dist/types/retry-policy.d.ts +7 -0
- package/dist/types/retry-policy.d.ts.map +1 -0
- package/dist/types/secret-scrubber.d.ts +5 -0
- package/dist/types/secret-scrubber.d.ts.map +1 -0
- package/dist/{secret-vault-BAKpgFw_.d.ts → types/secret-vault.d.ts} +13 -7
- package/dist/types/secret-vault.d.ts.map +1 -0
- package/dist/{selector-D8O6B_Rm.d.ts → types/selector.d.ts} +4 -6
- package/dist/types/selector.d.ts.map +1 -0
- package/dist/types/session-reader.d.ts +81 -0
- package/dist/types/session-reader.d.ts.map +1 -0
- package/dist/{session-rewinder-C9HnMkhP.d.ts → types/session-rewinder.d.ts} +5 -6
- package/dist/types/session-rewinder.d.ts.map +1 -0
- package/dist/types/session.d.ts +650 -0
- package/dist/types/session.d.ts.map +1 -0
- package/dist/types/side-effect.d.ts +34 -0
- package/dist/types/side-effect.d.ts.map +1 -0
- package/dist/{skill-DHniprNl.d.ts → types/skill.d.ts} +4 -5
- package/dist/types/skill.d.ts.map +1 -0
- package/dist/types/slash-command.d.ts +59 -0
- package/dist/types/slash-command.d.ts.map +1 -0
- package/dist/types/spec.d.ts +77 -0
- package/dist/types/spec.d.ts.map +1 -0
- package/dist/types/system-prompt-contributor.d.ts +20 -0
- package/dist/types/system-prompt-contributor.d.ts.map +1 -0
- package/dist/types/system-prompt.d.ts +51 -0
- package/dist/types/system-prompt.d.ts.map +1 -0
- package/dist/{task-graph-CH3acNQ7.d.ts → types/task-graph.d.ts} +21 -22
- package/dist/types/task-graph.d.ts.map +1 -0
- package/dist/types/token-counter.d.ts +42 -0
- package/dist/types/token-counter.d.ts.map +1 -0
- package/dist/types/tool-executor.d.ts +133 -0
- package/dist/types/tool-executor.d.ts.map +1 -0
- package/dist/types/tool-markers.d.ts +23 -0
- package/dist/types/tool-markers.d.ts.map +1 -0
- package/dist/types/tool.d.ts +245 -0
- package/dist/types/tool.d.ts.map +1 -0
- package/dist/types/utility-types.d.ts +31 -0
- package/dist/types/utility-types.d.ts.map +1 -0
- package/dist/utils/assert-never.d.ts +14 -0
- package/dist/utils/assert-never.d.ts.map +1 -0
- package/dist/utils/atomic-write.d.ts +12 -0
- package/dist/utils/atomic-write.d.ts.map +1 -0
- package/dist/utils/child-env.d.ts +67 -0
- package/dist/utils/child-env.d.ts.map +1 -0
- package/dist/utils/color.d.ts +20 -0
- package/dist/utils/color.d.ts.map +1 -0
- package/dist/utils/config-json.d.ts +14 -0
- package/dist/utils/config-json.d.ts.map +1 -0
- package/dist/utils/context-evidence.d.ts +47 -0
- package/dist/utils/context-evidence.d.ts.map +1 -0
- package/dist/utils/deep-merge.d.ts +64 -0
- package/dist/utils/deep-merge.d.ts.map +1 -0
- package/dist/utils/diff.d.ts +11 -0
- package/dist/utils/diff.d.ts.map +1 -0
- package/dist/utils/error.d.ts +2 -3
- package/dist/utils/error.d.ts.map +1 -0
- package/dist/utils/error.js +3 -3
- package/dist/utils/error.js.map +7 -1
- package/dist/utils/expect-defined.d.ts +2 -3
- package/dist/utils/expect-defined.d.ts.map +1 -0
- package/dist/utils/expect-defined.js +3 -3
- package/dist/utils/expect-defined.js.map +7 -1
- package/dist/utils/glob-expand.d.ts +10 -0
- package/dist/utils/glob-expand.d.ts.map +1 -0
- package/dist/utils/glob-match.d.ts +4 -0
- package/dist/utils/glob-match.d.ts.map +1 -0
- package/dist/utils/index.d.ts +37 -920
- package/dist/utils/index.d.ts.map +1 -0
- package/dist/utils/index.js +242 -33
- package/dist/utils/index.js.map +7 -1
- package/dist/utils/instruction-file.d.ts +3 -0
- package/dist/utils/instruction-file.d.ts.map +1 -0
- package/dist/utils/ip-guard.d.ts +34 -0
- package/dist/utils/ip-guard.d.ts.map +1 -0
- package/dist/utils/json-repair.d.ts +23 -0
- package/dist/utils/json-repair.d.ts.map +1 -0
- package/dist/utils/json-schema-validate.d.ts +42 -0
- package/dist/utils/json-schema-validate.d.ts.map +1 -0
- package/dist/utils/lru-cache.d.ts +29 -0
- package/dist/utils/lru-cache.d.ts.map +1 -0
- package/dist/utils/merge-custom-models.d.ts +12 -0
- package/dist/utils/merge-custom-models.d.ts.map +1 -0
- package/dist/utils/merge-models-payload.d.ts +20 -0
- package/dist/utils/merge-models-payload.d.ts.map +1 -0
- package/dist/utils/message-invariants.d.ts +22 -0
- package/dist/utils/message-invariants.d.ts.map +1 -0
- package/dist/utils/newline-normalize.d.ts +5 -0
- package/dist/utils/newline-normalize.d.ts.map +1 -0
- package/dist/utils/regex-guard.d.ts +21 -0
- package/dist/utils/regex-guard.d.ts.map +1 -0
- package/dist/utils/safe-json.d.ts +31 -0
- package/dist/utils/safe-json.d.ts.map +1 -0
- package/dist/utils/session-scoped-path.d.ts +13 -0
- package/dist/utils/session-scoped-path.d.ts.map +1 -0
- package/dist/utils/sleep.d.ts +5 -0
- package/dist/utils/sleep.d.ts.map +1 -0
- package/dist/utils/slug.d.ts +13 -0
- package/dist/utils/slug.d.ts.map +1 -0
- package/dist/utils/string.d.ts +9 -0
- package/dist/utils/string.d.ts.map +1 -0
- package/dist/utils/task-format.d.ts +22 -0
- package/dist/utils/task-format.d.ts.map +1 -0
- package/dist/utils/term.d.ts +133 -0
- package/dist/utils/term.d.ts.map +1 -0
- package/dist/utils/todos-format.d.ts +30 -0
- package/dist/utils/todos-format.d.ts.map +1 -0
- package/dist/utils/token-estimate.d.ts +112 -0
- package/dist/utils/token-estimate.d.ts.map +1 -0
- package/dist/utils/tool-description-mode.d.ts +28 -0
- package/dist/utils/tool-description-mode.d.ts.map +1 -0
- package/dist/utils/tool-output-serializer.d.ts +40 -0
- package/dist/utils/tool-output-serializer.d.ts.map +1 -0
- package/dist/utils/tool-result-render-mode.d.ts +55 -0
- package/dist/utils/tool-result-render-mode.d.ts.map +1 -0
- package/dist/utils/tool-subject.d.ts +5 -0
- package/dist/utils/tool-subject.d.ts.map +1 -0
- package/dist/utils/tool-wire-compact.d.ts +28 -0
- package/dist/utils/tool-wire-compact.d.ts.map +1 -0
- package/dist/utils/ulid.d.ts +11 -0
- package/dist/utils/ulid.d.ts.map +1 -0
- package/dist/{wstack-paths-C3K40Qst.d.ts → utils/wstack-paths.d.ts} +7 -8
- package/dist/utils/wstack-paths.d.ts.map +1 -0
- package/dist/worktree/index.d.ts +2 -0
- package/dist/worktree/index.d.ts.map +1 -0
- package/dist/{worktree-manager-DzwxKE35.d.ts → worktree/worktree-manager.d.ts} +19 -13
- package/dist/worktree/worktree-manager.d.ts.map +1 -0
- package/instructions/autonomy/active-mission.md +2 -4
- package/instructions/sections/tool/delegation-full.md +1 -1
- package/package.json +4 -5
- package/skills/node-modern/SKILL.md +2 -2
- package/skills/plugin-author/SKILL.md +9 -16
- package/dist/dispatcher-types.d-BBeXBQgS.d.ts +0 -66
- package/dist/global-mailbox-sZwyI6CS.d.ts +0 -959
- package/dist/index--Gm41aBJ.d.ts +0 -671
- package/dist/mcp-servers-DEV4s6Ks.d.ts +0 -259
- package/dist/multi-agent-coordinator-4RCRZKjN.d.ts +0 -1770
- package/dist/null-fleet-bus-CFoNVQEK.d.ts +0 -2127
- package/dist/pipeline-DGDyIohT.d.ts +0 -331
- package/dist/provider-model-resolve-o2hHLs79.d.ts +0 -263
- package/dist/secret-scrubber-3MHDDAtm.d.ts +0 -6
- package/dist/secret-vault-DxohkUBc.d.ts +0 -272
- package/dist/session-reader-7Esxrkpw.d.ts +0 -155
- package/dist/task-format-GX0B1mMC.d.ts +0 -23
- package/dist/todos-checkpoint-FY7PjmMx.d.ts +0 -850
- package/dist/tool-BNlnIJvo.d.ts +0 -2190
- package/dist/tool-executor-CckSCM5E.d.ts +0 -906
|
@@ -0,0 +1,167 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Lifecycle hook types — the pure, serializable contract shared by the config
|
|
3
|
+
* layer, the in-process plugin API, and the shell-hook executor.
|
|
4
|
+
*
|
|
5
|
+
* These types intentionally avoid referencing the live `Context` (which lives
|
|
6
|
+
* in `core/`, a higher layer) so `types/config.ts` can import them without
|
|
7
|
+
* creating a layering cycle. The runtime pieces (`hooks/registry`,
|
|
8
|
+
* `hooks/runner`, `hooks/shell-executor`) translate live run state into the
|
|
9
|
+
* serializable `HookInput` below.
|
|
10
|
+
*/
|
|
11
|
+
/** Lifecycle phases a hook can subscribe to. */
|
|
12
|
+
export type HookEvent = 'PreToolUse' | 'PostToolUse' | 'UserPromptSubmit' | 'SessionStart' | 'Stop';
|
|
13
|
+
/**
|
|
14
|
+
* Tool-name matcher for `PreToolUse`/`PostToolUse` hooks. A pipe-delimited
|
|
15
|
+
* list of exact tool names, or `*` for all tools. Examples: `"Bash"`,
|
|
16
|
+
* `"edit|write"`, `"*"`. Ignored (treated as `*`) for non-tool events.
|
|
17
|
+
*/
|
|
18
|
+
export type HookMatcher = string;
|
|
19
|
+
/** What to do when a hook crashes, times out, or returns malformed output. */
|
|
20
|
+
export type HookFailurePolicy = 'open' | 'closed';
|
|
21
|
+
/**
|
|
22
|
+
* PreToolUse hooks run in two phases. Mutators compose first; validators then
|
|
23
|
+
* inspect the final arguments and may no longer rewrite them.
|
|
24
|
+
*/
|
|
25
|
+
export type PreToolUseStage = 'mutate' | 'validate';
|
|
26
|
+
/** Per-registration runtime controls shared by every hook transport. */
|
|
27
|
+
export interface HookRegistrationOptions {
|
|
28
|
+
/** Stable name used in logs and model-visible fail-closed errors. */
|
|
29
|
+
name?: string | undefined;
|
|
30
|
+
/** Per-invocation deadline in milliseconds (default 5000). */
|
|
31
|
+
timeoutMs?: number | undefined;
|
|
32
|
+
/** `open` skips a failed hook; `closed` converts failure to a denial. */
|
|
33
|
+
failurePolicy?: HookFailurePolicy | undefined;
|
|
34
|
+
/** PreToolUse phase. Legacy registrations default to `mutate`. */
|
|
35
|
+
stage?: PreToolUseStage | undefined;
|
|
36
|
+
/**
|
|
37
|
+
* Trusted enforcement hook. Policy hooks remain active under `--no-hooks`;
|
|
38
|
+
* ordinary automation hooks do not.
|
|
39
|
+
*/
|
|
40
|
+
policy?: boolean | undefined;
|
|
41
|
+
}
|
|
42
|
+
/** Deadline/cancellation context passed to in-process hooks. */
|
|
43
|
+
export interface HookInvocationContext {
|
|
44
|
+
signal: AbortSignal;
|
|
45
|
+
/** Absolute Unix epoch deadline in milliseconds. */
|
|
46
|
+
deadlineAt: number;
|
|
47
|
+
}
|
|
48
|
+
/**
|
|
49
|
+
* The JSON payload handed to a hook. For shell hooks this is serialized to
|
|
50
|
+
* stdin; for in-process hooks it is passed as the sole argument. Kept flat and
|
|
51
|
+
* serializable so both transports see the same shape.
|
|
52
|
+
*/
|
|
53
|
+
export interface HookInput {
|
|
54
|
+
event: HookEvent;
|
|
55
|
+
/** Present for PreToolUse / PostToolUse. */
|
|
56
|
+
toolName?: string | undefined;
|
|
57
|
+
/** Tool arguments (PreToolUse / PostToolUse). */
|
|
58
|
+
toolInput?: unknown | undefined;
|
|
59
|
+
/** Tool result preview (PostToolUse only). */
|
|
60
|
+
toolResult?: {
|
|
61
|
+
content: string;
|
|
62
|
+
isError: boolean;
|
|
63
|
+
};
|
|
64
|
+
/** The submitted user text (UserPromptSubmit only). */
|
|
65
|
+
prompt?: string | undefined;
|
|
66
|
+
/** Absolute working directory of the session. */
|
|
67
|
+
cwd: string;
|
|
68
|
+
/** Active session id, when known. */
|
|
69
|
+
sessionId?: string | undefined;
|
|
70
|
+
}
|
|
71
|
+
/**
|
|
72
|
+
* What a hook returns. Every field is optional — an empty object (or a hook
|
|
73
|
+
* that returns nothing) is a no-op "allow".
|
|
74
|
+
*/
|
|
75
|
+
export interface HookOutcome {
|
|
76
|
+
/**
|
|
77
|
+
* `block` stops the action (PreToolUse → tool not run; UserPromptSubmit →
|
|
78
|
+
* turn short-circuited). `allow` is the explicit no-op. Omitted = allow.
|
|
79
|
+
*/
|
|
80
|
+
decision?: 'block' | 'allow' | undefined;
|
|
81
|
+
/** Human-readable reason, surfaced to the model when blocking. */
|
|
82
|
+
reason?: string | undefined;
|
|
83
|
+
/**
|
|
84
|
+
* PreToolUse only: replacement tool arguments. The executor swaps these in
|
|
85
|
+
* and RE-VALIDATES them against the tool's input schema before running.
|
|
86
|
+
*/
|
|
87
|
+
modifiedInput?: Record<string, unknown>;
|
|
88
|
+
/**
|
|
89
|
+
* Extra context to fold back to the model — appended to the tool_result
|
|
90
|
+
* (PostToolUse), the user message (UserPromptSubmit), or the system preamble
|
|
91
|
+
* (SessionStart).
|
|
92
|
+
*/
|
|
93
|
+
additionalContext?: string | undefined;
|
|
94
|
+
/**
|
|
95
|
+
* Where the additionalContext should appear. `inline` (default) appends it
|
|
96
|
+
* to the tool_result / user message content so it renders as part of that
|
|
97
|
+
* block. `separate` appends it as a new user message, keeping plugin notices
|
|
98
|
+
* visually separated from the actual tool output.
|
|
99
|
+
*/
|
|
100
|
+
contextAs?: 'inline' | 'separate' | undefined;
|
|
101
|
+
}
|
|
102
|
+
/**
|
|
103
|
+
* Preferred, mutually-exclusive PreToolUse result. `allow` means only that
|
|
104
|
+
* this hook has no objection; it never bypasses the core permission policy.
|
|
105
|
+
*/
|
|
106
|
+
export type PreToolUseOutcome = {
|
|
107
|
+
additionalContext?: string | undefined;
|
|
108
|
+
contextAs?: 'inline' | 'separate' | undefined;
|
|
109
|
+
} & ({
|
|
110
|
+
action: 'allow';
|
|
111
|
+
} | {
|
|
112
|
+
action: 'deny';
|
|
113
|
+
reason: string;
|
|
114
|
+
} | {
|
|
115
|
+
action: 'mutate';
|
|
116
|
+
input: Record<string, unknown>;
|
|
117
|
+
reason?: string | undefined;
|
|
118
|
+
});
|
|
119
|
+
/** New and legacy hook outputs accepted at the transport boundary. */
|
|
120
|
+
export type AnyHookOutcome = HookOutcome | PreToolUseOutcome;
|
|
121
|
+
/** An in-process hook function (registered via the plugin API). */
|
|
122
|
+
export type InProcessHook = (input: HookInput, runtime: HookInvocationContext) => AnyHookOutcome | void | Promise<AnyHookOutcome | void>;
|
|
123
|
+
interface ConfiguredHookBase extends HookRegistrationOptions {
|
|
124
|
+
/** Tool-name matcher (defaults to `*`). */
|
|
125
|
+
matcher?: HookMatcher | undefined;
|
|
126
|
+
}
|
|
127
|
+
/**
|
|
128
|
+
* A shell-command hook (declared in `config.hooks`). Claude-compatible: the
|
|
129
|
+
* `HookInput` JSON is written to the command's stdin; a JSON `HookOutcome` may
|
|
130
|
+
* be printed to stdout, and exit code 2 forces `decision: 'block'`.
|
|
131
|
+
*/
|
|
132
|
+
export interface ShellHook extends ConfiguredHookBase {
|
|
133
|
+
type?: 'command' | undefined;
|
|
134
|
+
/** Command line run via the platform shell. */
|
|
135
|
+
command: string;
|
|
136
|
+
}
|
|
137
|
+
/** Native HTTP hook. The HookInput JSON is POSTed and JSON output is parsed. */
|
|
138
|
+
export interface HttpHook extends ConfiguredHookBase {
|
|
139
|
+
type: 'http';
|
|
140
|
+
url: string;
|
|
141
|
+
headers?: Record<string, string> | undefined;
|
|
142
|
+
}
|
|
143
|
+
export type ConfiguredHook = ShellHook | HttpHook;
|
|
144
|
+
interface HookEntryBase {
|
|
145
|
+
event: HookEvent;
|
|
146
|
+
matcher: HookMatcher;
|
|
147
|
+
name: string;
|
|
148
|
+
timeoutMs?: number | undefined;
|
|
149
|
+
failurePolicy: HookFailurePolicy;
|
|
150
|
+
stage: PreToolUseStage;
|
|
151
|
+
policy: boolean;
|
|
152
|
+
}
|
|
153
|
+
/** A registered hook entry, discriminated by transport. */
|
|
154
|
+
export type HookEntry = (HookEntryBase & {
|
|
155
|
+
kind: 'inprocess';
|
|
156
|
+
hook: InProcessHook;
|
|
157
|
+
owner?: string | undefined;
|
|
158
|
+
}) | (HookEntryBase & {
|
|
159
|
+
kind: 'shell';
|
|
160
|
+
command: string;
|
|
161
|
+
}) | (HookEntryBase & {
|
|
162
|
+
kind: 'http';
|
|
163
|
+
url: string;
|
|
164
|
+
headers?: Record<string, string> | undefined;
|
|
165
|
+
});
|
|
166
|
+
export {};
|
|
167
|
+
//# sourceMappingURL=hooks.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"hooks.d.ts","sourceRoot":"","sources":["../../src/types/hooks.ts"],"names":[],"mappings":"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"}
|
package/dist/types/index.d.ts
CHANGED
|
@@ -1,244 +1,40 @@
|
|
|
1
|
-
export
|
|
2
|
-
export
|
|
3
|
-
export
|
|
4
|
-
export
|
|
5
|
-
export
|
|
6
|
-
export
|
|
7
|
-
export {
|
|
8
|
-
export
|
|
9
|
-
export
|
|
10
|
-
export
|
|
11
|
-
|
|
12
|
-
export
|
|
13
|
-
|
|
14
|
-
export
|
|
15
|
-
export
|
|
16
|
-
export
|
|
17
|
-
export
|
|
18
|
-
export
|
|
19
|
-
export
|
|
20
|
-
export
|
|
21
|
-
export
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
*
|
|
31
|
-
*
|
|
32
|
-
*
|
|
33
|
-
*
|
|
34
|
-
*
|
|
35
|
-
*
|
|
36
|
-
*
|
|
37
|
-
*
|
|
38
|
-
*
|
|
39
|
-
|
|
40
|
-
|
|
41
|
-
interface PromptRegistryRef {
|
|
42
|
-
id: string;
|
|
43
|
-
slug: string;
|
|
44
|
-
title: string;
|
|
45
|
-
description: string;
|
|
46
|
-
category: PromptCategory;
|
|
47
|
-
tags: string[];
|
|
48
|
-
/** sha256 of the prompt content — drives the update diff. */
|
|
49
|
-
checksum: string;
|
|
50
|
-
version?: string | undefined;
|
|
51
|
-
license?: string | undefined;
|
|
52
|
-
/** Optional direct URL to the full prompt JSON. */
|
|
53
|
-
url?: string | undefined;
|
|
54
|
-
}
|
|
55
|
-
interface PromptRegistryManifest {
|
|
56
|
-
registryVersion: 1;
|
|
57
|
-
/** Where this manifest came from (hub URL or `owner/repo`). */
|
|
58
|
-
source: string;
|
|
59
|
-
generatedAt: string;
|
|
60
|
-
prompts: PromptRegistryRef[];
|
|
61
|
-
}
|
|
62
|
-
/** One entry recorded in `~/.wrongstack/installed-prompts.json`. */
|
|
63
|
-
interface InstalledPromptEntry {
|
|
64
|
-
slug: string;
|
|
65
|
-
/** The registry/source this prompt was pulled from. */
|
|
66
|
-
source: string;
|
|
67
|
-
/** The ref pinned at install (tag/branch/commit or manifest version). */
|
|
68
|
-
ref: string;
|
|
69
|
-
checksum: string;
|
|
70
|
-
/** True once the prompt body has actually been written locally. */
|
|
71
|
-
synced: boolean;
|
|
72
|
-
installedAt: string;
|
|
73
|
-
}
|
|
74
|
-
interface PromptManifestData {
|
|
75
|
-
version: 1;
|
|
76
|
-
entries: InstalledPromptEntry[];
|
|
77
|
-
}
|
|
78
|
-
/** Result of validating an untrusted manifest. */
|
|
79
|
-
type ManifestValidation = {
|
|
80
|
-
ok: true;
|
|
81
|
-
manifest: PromptRegistryManifest;
|
|
82
|
-
} | {
|
|
83
|
-
ok: false;
|
|
84
|
-
errors: string[];
|
|
85
|
-
};
|
|
86
|
-
/**
|
|
87
|
-
* Structurally validate an untrusted registry manifest. Treats the manifest as
|
|
88
|
-
* DATA, not instructions: enforces slug charset, checksum format, and field
|
|
89
|
-
* lengths so a malicious hub can't smuggle oversized or malformed entries into
|
|
90
|
-
* the local store. Does NOT fetch prompt bodies.
|
|
91
|
-
*/
|
|
92
|
-
declare function validateRegistryManifest(raw: unknown): ManifestValidation;
|
|
93
|
-
interface RegistryDiff {
|
|
94
|
-
/** Slugs present in the manifest but not locally. */
|
|
95
|
-
added: PromptRegistryRef[];
|
|
96
|
-
/** Slugs present locally but whose checksum differs in the manifest. */
|
|
97
|
-
updated: PromptRegistryRef[];
|
|
98
|
-
/** Slugs present locally and identical in the manifest. */
|
|
99
|
-
unchanged: PromptRegistryRef[];
|
|
100
|
-
}
|
|
101
|
-
/**
|
|
102
|
-
* Compute what a pull WOULD change, by slug+checksum, against the prompts the
|
|
103
|
-
* caller already has. Pure — no I/O, no writes.
|
|
104
|
-
*/
|
|
105
|
-
declare function diffRegistry(local: {
|
|
106
|
-
slug: string;
|
|
107
|
-
checksum?: string | undefined;
|
|
108
|
-
}[], manifest: PromptRegistryManifest): RegistryDiff;
|
|
109
|
-
|
|
110
|
-
/**
|
|
111
|
-
* Sentinel keys provider adapters use to wrap tool-call arguments that could
|
|
112
|
-
* not be parsed into a proper JSON object. Single source of truth — the core
|
|
113
|
-
* tool executor (which DETECTS these markers to surface a friendly error)
|
|
114
|
-
* defines them here, and the providers package (which PRODUCES them when
|
|
115
|
-
* wrapping) imports from `@wrongstack/core`.
|
|
116
|
-
*
|
|
117
|
-
* P3 #14 (before-release.md): the list was duplicated in tool-executor.ts with
|
|
118
|
-
* a "Keep this list in sync" comment — a manual rule that will eventually be
|
|
119
|
-
* forgotten. Centralizing it removes the sync burden.
|
|
120
|
-
*
|
|
121
|
-
* Layering note: this lives in core (not providers) because the dependency
|
|
122
|
-
* direction is providers → core, not the reverse. Putting it in providers
|
|
123
|
-
* would force core into a forbidden upward dependency.
|
|
124
|
-
*
|
|
125
|
-
* Current markers:
|
|
126
|
-
* - `__raw` — produced by `parseToolInput` (Anthropic / shared)
|
|
127
|
-
* - `__raw_arguments` — produced by `contentFromOpenAI` (OpenAI / compatible)
|
|
128
|
-
* - `_raw` — produced by the streaming response builder's
|
|
129
|
-
* `safeJsonOrRaw` (legacy fallback)
|
|
130
|
-
*/
|
|
131
|
-
declare const MALFORMED_ARG_MARKERS: readonly ["__raw", "__raw_arguments", "_raw"];
|
|
132
|
-
|
|
133
|
-
type SpecStatus = 'draft' | 'review' | 'approved' | 'implemented' | 'deprecated';
|
|
134
|
-
type SpecSectionType = 'overview' | 'requirements' | 'architecture' | 'api' | 'data' | 'security' | 'acceptance';
|
|
135
|
-
interface SpecSection {
|
|
136
|
-
type: SpecSectionType;
|
|
137
|
-
title: string;
|
|
138
|
-
content: string;
|
|
139
|
-
level: number;
|
|
140
|
-
children?: SpecSection[] | undefined;
|
|
141
|
-
}
|
|
142
|
-
interface SpecRequirement {
|
|
143
|
-
id: string;
|
|
144
|
-
type: 'functional' | 'non-functional' | 'security' | 'performance' | 'ux';
|
|
145
|
-
priority: 'critical' | 'high' | 'medium' | 'low';
|
|
146
|
-
description: string;
|
|
147
|
-
acceptanceCriteria: string[];
|
|
148
|
-
blockedBy?: string[] | undefined;
|
|
149
|
-
implements?: string[] | undefined;
|
|
150
|
-
}
|
|
151
|
-
interface SpecApiEndpoint {
|
|
152
|
-
method: 'GET' | 'POST' | 'PUT' | 'DELETE' | 'PATCH';
|
|
153
|
-
path: string;
|
|
154
|
-
description: string;
|
|
155
|
-
request?: Record<string, unknown>;
|
|
156
|
-
response?: Record<string, unknown>;
|
|
157
|
-
auth?: boolean | undefined;
|
|
158
|
-
}
|
|
159
|
-
interface Specification {
|
|
160
|
-
id: string;
|
|
161
|
-
title: string;
|
|
162
|
-
version: string;
|
|
163
|
-
status: SpecStatus;
|
|
164
|
-
overview: string;
|
|
165
|
-
sections: SpecSection[];
|
|
166
|
-
requirements: SpecRequirement[];
|
|
167
|
-
apiEndpoints?: SpecApiEndpoint[] | undefined;
|
|
168
|
-
dependencies?: string[] | undefined;
|
|
169
|
-
createdAt: number;
|
|
170
|
-
updatedAt: number;
|
|
171
|
-
metadata?: Record<string, unknown>;
|
|
172
|
-
}
|
|
173
|
-
interface SpecAnalysis {
|
|
174
|
-
specId: string;
|
|
175
|
-
completeness: number;
|
|
176
|
-
coverage: {
|
|
177
|
-
requirements: number;
|
|
178
|
-
apiEndpoints: number;
|
|
179
|
-
edgeCases: number;
|
|
180
|
-
errorHandling: number;
|
|
181
|
-
};
|
|
182
|
-
gaps: string[];
|
|
183
|
-
risks: {
|
|
184
|
-
requirement: string;
|
|
185
|
-
risk: string;
|
|
186
|
-
severity: 'high' | 'medium' | 'low';
|
|
187
|
-
}[];
|
|
188
|
-
suggestions: string[];
|
|
189
|
-
}
|
|
190
|
-
interface SpecValidationResult {
|
|
191
|
-
valid: boolean;
|
|
192
|
-
errors: {
|
|
193
|
-
path: string;
|
|
194
|
-
message: string;
|
|
195
|
-
}[];
|
|
196
|
-
warnings: {
|
|
197
|
-
path: string;
|
|
198
|
-
message: string;
|
|
199
|
-
}[];
|
|
200
|
-
}
|
|
201
|
-
interface SpecTemplate {
|
|
202
|
-
id: string;
|
|
203
|
-
name: string;
|
|
204
|
-
description: string;
|
|
205
|
-
sections: Omit<SpecSection, 'content'>[];
|
|
206
|
-
defaultRequirements: Omit<SpecRequirement, 'id' | 'description'>[];
|
|
207
|
-
}
|
|
208
|
-
declare const DEFAULT_SPEC_TEMPLATE: SpecTemplate;
|
|
209
|
-
|
|
210
|
-
/** Union of serial and parallel autonomy engine stage types (from EternalAutonomyEngine / ParallelEternalEngine). */
|
|
211
|
-
type AutonomyStage = IterationStage | ParallelIterationStage;
|
|
212
|
-
|
|
213
|
-
/**
|
|
214
|
-
* Shared type-level utilities used across WrongStack packages.
|
|
215
|
-
*
|
|
216
|
-
* These are pure type helpers with no runtime footprint. They solve
|
|
217
|
-
* recurring TypeScript pattern problems that the standard library
|
|
218
|
-
* types (Pick, Omit, Partial, etc.) don't handle well — particularly
|
|
219
|
-
* around discriminated unions and distribution.
|
|
220
|
-
*/
|
|
221
|
-
/**
|
|
222
|
-
* Distributive version of the built-in {@link Omit}.
|
|
223
|
-
*
|
|
224
|
-
* **Why this exists:** The standard `Omit<T, K>` is defined as
|
|
225
|
-
* `Pick<T, Exclude<keyof T, K>>`. When `T` is a discriminated union,
|
|
226
|
-
* `keyof T` returns the *intersection* of all members' keys — not
|
|
227
|
-
* what you want. `Omit<{ a: 1 } | { b: 2 }, 'id'>` collapses to `{}`.
|
|
228
|
-
*
|
|
229
|
-
* `DistributiveOmit` forces distribution over each union member via
|
|
230
|
-
* a conditional type (`T extends unknown`), yielding the expected
|
|
231
|
-
* result: `Omit<{ a: 1 }, 'id'> | Omit<{ b: 2 }, 'id'>`.
|
|
232
|
-
*
|
|
233
|
-
* @example
|
|
234
|
-
* ```ts
|
|
235
|
-
* type Entry = { id: number; kind: 'user'; text: string }
|
|
236
|
-
* | { id: number; kind: 'tool'; name: string };
|
|
237
|
-
*
|
|
238
|
-
* type Broken = Omit<Entry, 'id'>; // {}
|
|
239
|
-
* type Working = DistributiveOmit<Entry, 'id'>; // { kind: 'user'; text } | { kind: 'tool'; name }
|
|
240
|
-
* ```
|
|
241
|
-
*/
|
|
242
|
-
type DistributiveOmit<T, K extends string | number | symbol> = T extends unknown ? Omit<T, K> : never;
|
|
243
|
-
|
|
244
|
-
export { type AutonomyStage, DEFAULT_SPEC_TEMPLATE, type DistributiveOmit, type InstalledPromptEntry, MALFORMED_ARG_MARKERS, type ManifestValidation, PromptCategory, type PromptManifestData, type PromptRegistryManifest, type PromptRegistryRef, type RegistryDiff, type SpecAnalysis, type SpecApiEndpoint, type SpecRequirement, type SpecSection, type SpecSectionType, type SpecStatus, type SpecTemplate, type SpecValidationResult, type Specification, diffRegistry, validateRegistryManifest };
|
|
1
|
+
export * from './blocks.js';
|
|
2
|
+
export * from './messages.js';
|
|
3
|
+
export * from './tool.js';
|
|
4
|
+
export * from './tool-markers.js';
|
|
5
|
+
export * from './side-effect.js';
|
|
6
|
+
export * from './provider.js';
|
|
7
|
+
export { StreamHangError } from './provider.js';
|
|
8
|
+
export * from './provider-runner.js';
|
|
9
|
+
export * from './config.js';
|
|
10
|
+
export * from './hooks.js';
|
|
11
|
+
export type { Compactor, CompactReport } from './compactor.js';
|
|
12
|
+
export * from './permission.js';
|
|
13
|
+
export * from './session.js';
|
|
14
|
+
export * from './session-rewinder.js';
|
|
15
|
+
export * from './attachment.js';
|
|
16
|
+
export * from './default-config.js';
|
|
17
|
+
export * from './memory.js';
|
|
18
|
+
export * from './skill.js';
|
|
19
|
+
export * from './prompt.js';
|
|
20
|
+
export * from './prompt-registry.js';
|
|
21
|
+
export * from './design-kit.js';
|
|
22
|
+
export * from './system-prompt.js';
|
|
23
|
+
export * from './renderer.js';
|
|
24
|
+
export * from './input-reader.js';
|
|
25
|
+
export * from './plugin.js';
|
|
26
|
+
export * from './errors.js';
|
|
27
|
+
export * from './models-registry.js';
|
|
28
|
+
export * from './mode.js';
|
|
29
|
+
export * from './context-window.js';
|
|
30
|
+
export * from './context-evidence.js';
|
|
31
|
+
export * from './multi-agent.js';
|
|
32
|
+
export * from './spec.js';
|
|
33
|
+
export * from './task-graph.js';
|
|
34
|
+
export * from './slash-command.js';
|
|
35
|
+
export * from './observability.js';
|
|
36
|
+
export * from './system-prompt-contributor.js';
|
|
37
|
+
export * from '../storage/session-reader.js';
|
|
38
|
+
export * from './autonomy.js';
|
|
39
|
+
export * from './utility-types.js';
|
|
40
|
+
//# sourceMappingURL=index.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../src/types/index.ts"],"names":[],"mappings":"AAAA,cAAc,aAAa,CAAC;AAC5B,cAAc,eAAe,CAAC;AAC9B,cAAc,WAAW,CAAC;AAC1B,cAAc,mBAAmB,CAAC;AAClC,cAAc,kBAAkB,CAAC;AACjC,cAAc,eAAe,CAAC;AAC9B,OAAO,EAAE,eAAe,EAAE,MAAM,eAAe,CAAC;AAChD,cAAc,sBAAsB,CAAC;AACrC,cAAc,aAAa,CAAC;AAC5B,cAAc,YAAY,CAAC;AAC3B,YAAY,EAAE,SAAS,EAAE,aAAa,EAAE,MAAM,gBAAgB,CAAC;AAC/D,cAAc,iBAAiB,CAAC;AAChC,cAAc,cAAc,CAAC;AAC7B,cAAc,uBAAuB,CAAC;AACtC,cAAc,iBAAiB,CAAC;AAChC,cAAc,qBAAqB,CAAC;AACpC,cAAc,aAAa,CAAC;AAC5B,cAAc,YAAY,CAAC;AAC3B,cAAc,aAAa,CAAC;AAC5B,cAAc,sBAAsB,CAAC;AACrC,cAAc,iBAAiB,CAAC;AAChC,cAAc,oBAAoB,CAAC;AACnC,cAAc,eAAe,CAAC;AAC9B,cAAc,mBAAmB,CAAC;AAClC,cAAc,aAAa,CAAC;AAC5B,cAAc,aAAa,CAAC;AAC5B,cAAc,sBAAsB,CAAC;AACrC,cAAc,WAAW,CAAC;AAC1B,cAAc,qBAAqB,CAAC;AACpC,cAAc,uBAAuB,CAAC;AACtC,cAAc,kBAAkB,CAAC;AACjC,cAAc,WAAW,CAAC;AAC1B,cAAc,iBAAiB,CAAC;AAChC,cAAc,oBAAoB,CAAC;AACnC,cAAc,oBAAoB,CAAC;AACnC,cAAc,gCAAgC,CAAC;AAC/C,cAAc,8BAA8B,CAAC;AAC7C,cAAc,eAAe,CAAC;AAC9B,cAAc,oBAAoB,CAAC"}
|
package/dist/types/index.js
CHANGED
|
@@ -1,8 +1,3 @@
|
|
|
1
|
-
import * as path2 from 'path';
|
|
2
|
-
import { readFileSync, statSync } from 'fs';
|
|
3
|
-
import { fileURLToPath } from 'url';
|
|
4
|
-
import * as fs from 'fs/promises';
|
|
5
|
-
|
|
6
1
|
// src/types/blocks.ts
|
|
7
2
|
function isTextBlock(b) {
|
|
8
3
|
return b.type === "text";
|
|
@@ -38,7 +33,7 @@ function toErrorMessage(err) {
|
|
|
38
33
|
// src/utils/expect-defined.ts
|
|
39
34
|
function expectDefined(value, label) {
|
|
40
35
|
if (value === null || value === void 0) {
|
|
41
|
-
const err = new Error("Expected value to be defined");
|
|
36
|
+
const err = new Error(label ? `Expected ${label} to be defined` : "Expected value to be defined");
|
|
42
37
|
err.name = "ExpectDefinedError";
|
|
43
38
|
throw err;
|
|
44
39
|
}
|
|
@@ -80,13 +75,16 @@ function compileUserRegex(pattern, flags) {
|
|
|
80
75
|
};
|
|
81
76
|
}
|
|
82
77
|
}
|
|
78
|
+
|
|
79
|
+
// src/utils/session-scoped-path.ts
|
|
80
|
+
import * as path from "node:path";
|
|
83
81
|
function sessionScopedPath(dir, sessionId, suffix) {
|
|
84
82
|
if (!sessionId || sessionId.includes("\\") || sessionId.includes("..")) {
|
|
85
83
|
throw invalid(sessionId);
|
|
86
84
|
}
|
|
87
|
-
const resolved =
|
|
88
|
-
const rel =
|
|
89
|
-
if (rel.startsWith("..") ||
|
|
85
|
+
const resolved = path.resolve(dir, `${sessionId}${suffix}`);
|
|
86
|
+
const rel = path.relative(path.resolve(dir), resolved);
|
|
87
|
+
if (rel.startsWith("..") || path.isAbsolute(rel)) {
|
|
90
88
|
throw invalid(sessionId);
|
|
91
89
|
}
|
|
92
90
|
return resolved;
|
|
@@ -738,6 +736,11 @@ function isDesignStack(v) {
|
|
|
738
736
|
function flattenSystemPromptRegions(regions) {
|
|
739
737
|
return [...regions.core, ...regions.session, ...regions.volatile];
|
|
740
738
|
}
|
|
739
|
+
|
|
740
|
+
// src/types/mode-prompts.ts
|
|
741
|
+
import { readFileSync, statSync } from "node:fs";
|
|
742
|
+
import * as path2 from "node:path";
|
|
743
|
+
import { fileURLToPath } from "node:url";
|
|
741
744
|
function modePrompt(id) {
|
|
742
745
|
for (const dir of modePromptDirCandidates()) {
|
|
743
746
|
try {
|
|
@@ -1139,6 +1142,9 @@ function deserializeTaskGraph(input) {
|
|
|
1139
1142
|
}
|
|
1140
1143
|
return { ...input, nodes };
|
|
1141
1144
|
}
|
|
1145
|
+
|
|
1146
|
+
// src/storage/session-reader.ts
|
|
1147
|
+
import * as fs from "node:fs/promises";
|
|
1142
1148
|
var DefaultSessionReader = class _DefaultSessionReader {
|
|
1143
1149
|
store;
|
|
1144
1150
|
eventCache = /* @__PURE__ */ new Map();
|
|
@@ -1476,6 +1482,8 @@ function renderMarkdown(meta, events) {
|
|
|
1476
1482
|
lines.push("");
|
|
1477
1483
|
break;
|
|
1478
1484
|
}
|
|
1485
|
+
default:
|
|
1486
|
+
break;
|
|
1479
1487
|
}
|
|
1480
1488
|
}
|
|
1481
1489
|
return lines.join("\n");
|
|
@@ -1509,11 +1517,81 @@ function renderPlainText(meta, events) {
|
|
|
1509
1517
|
case "error":
|
|
1510
1518
|
lines.push(`[${e.ts}] ERROR (${e.phase}): ${e.message}`);
|
|
1511
1519
|
break;
|
|
1520
|
+
default:
|
|
1521
|
+
break;
|
|
1512
1522
|
}
|
|
1513
1523
|
}
|
|
1514
1524
|
return lines.join("\n");
|
|
1515
1525
|
}
|
|
1516
|
-
|
|
1517
|
-
|
|
1526
|
+
export {
|
|
1527
|
+
AgentError,
|
|
1528
|
+
BUILTIN_PROMPT_CATEGORIES,
|
|
1529
|
+
CONTEXT_WINDOW_MODES,
|
|
1530
|
+
ConfigError,
|
|
1531
|
+
DEFAULT_AUTONOMY_CONFIG,
|
|
1532
|
+
DEFAULT_CIRCUIT_BREAKER_CONFIG,
|
|
1533
|
+
DEFAULT_CONTEXT_CONFIG,
|
|
1534
|
+
DEFAULT_CONTEXT_WINDOW_MODE_ID,
|
|
1535
|
+
DEFAULT_MODES,
|
|
1536
|
+
DEFAULT_SESSION_LOGGING_CONFIG,
|
|
1537
|
+
DEFAULT_SESSION_PRUNE_DAYS,
|
|
1538
|
+
DEFAULT_SPEC_TEMPLATE,
|
|
1539
|
+
DEFAULT_TOOLS_CONFIG,
|
|
1540
|
+
DEFAULT_TUI_THINKING_WORD,
|
|
1541
|
+
DESIGN_STACKS,
|
|
1542
|
+
DefaultSessionReader,
|
|
1543
|
+
ERROR_CODES,
|
|
1544
|
+
FetchError,
|
|
1545
|
+
FsError,
|
|
1546
|
+
MALFORMED_ARG_MARKERS,
|
|
1547
|
+
MAX_TUI_THINKING_WORD_LENGTH,
|
|
1548
|
+
MEMORY_TYPE_LABELS,
|
|
1549
|
+
PROMPT_CATEGORY_LABELS,
|
|
1550
|
+
ParseError,
|
|
1551
|
+
PluginError,
|
|
1552
|
+
ProviderError,
|
|
1553
|
+
SddError,
|
|
1554
|
+
SessionError,
|
|
1555
|
+
StreamHangError,
|
|
1556
|
+
ToolError,
|
|
1557
|
+
ToolErrorCategory,
|
|
1558
|
+
ToolValidationError,
|
|
1559
|
+
WrongStackError,
|
|
1560
|
+
classifyProviderError,
|
|
1561
|
+
computeTaskProgress,
|
|
1562
|
+
deserializeTaskGraph,
|
|
1563
|
+
diffRegistry,
|
|
1564
|
+
effectiveInputTokens,
|
|
1565
|
+
findCriticalPath,
|
|
1566
|
+
flattenSystemPromptRegions,
|
|
1567
|
+
formatContextWindowModeList,
|
|
1568
|
+
getContextWindowMode,
|
|
1569
|
+
isAgentError,
|
|
1570
|
+
isBuiltinCategory,
|
|
1571
|
+
isConfigError,
|
|
1572
|
+
isContextWindowModeId,
|
|
1573
|
+
isDesignStack,
|
|
1574
|
+
isFetchError,
|
|
1575
|
+
isFsError,
|
|
1576
|
+
isImageBlock,
|
|
1577
|
+
isParseError,
|
|
1578
|
+
isPluginError,
|
|
1579
|
+
isRetryableKind,
|
|
1580
|
+
isSddError,
|
|
1581
|
+
isSessionError,
|
|
1582
|
+
isTextBlock,
|
|
1583
|
+
isToolError,
|
|
1584
|
+
isToolResultBlock,
|
|
1585
|
+
isToolUseBlock,
|
|
1586
|
+
isToolValidationError,
|
|
1587
|
+
isWrongStackError,
|
|
1588
|
+
listContextWindowModes,
|
|
1589
|
+
normalizeTokenSavingTier,
|
|
1590
|
+
normalizeTuiThinkingWord,
|
|
1591
|
+
resolveContextWindowPolicy,
|
|
1592
|
+
serializeTaskGraph,
|
|
1593
|
+
toWrongStackError,
|
|
1594
|
+
topologicalSort,
|
|
1595
|
+
validateRegistryManifest
|
|
1596
|
+
};
|
|
1518
1597
|
//# sourceMappingURL=index.js.map
|
|
1519
|
-
//# sourceMappingURL=index.js.map
|