@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,50 @@
|
|
|
1
|
+
import { type PromptRegistryManifest, type RegistryDiff } from '../types/prompt-registry.js';
|
|
2
|
+
/**
|
|
3
|
+
* Fetch a JSON document. Injectable so the installer is testable without
|
|
4
|
+
* network access. Defaults to the global `fetch`.
|
|
5
|
+
*/
|
|
6
|
+
export type JsonFetcher = (url: string) => Promise<unknown>;
|
|
7
|
+
export interface PromptPullResult {
|
|
8
|
+
manifest: PromptRegistryManifest;
|
|
9
|
+
diff: RegistryDiff;
|
|
10
|
+
/** Always true for the stub — pull never writes anything yet. */
|
|
11
|
+
dryRun: true;
|
|
12
|
+
}
|
|
13
|
+
export interface PromptInstallerOptions {
|
|
14
|
+
fetcher?: JsonFetcher | undefined;
|
|
15
|
+
}
|
|
16
|
+
/**
|
|
17
|
+
* PromptInstaller — registry sync GROUNDWORK (stub).
|
|
18
|
+
*
|
|
19
|
+
* `pull()` fetches and validates a remote manifest and computes the checksum
|
|
20
|
+
* diff against the prompts the caller already has — but writes NOTHING. The
|
|
21
|
+
* actual download/write is the documented extension point (`install`), left
|
|
22
|
+
* unimplemented so the sync surface can land incrementally and be reviewed
|
|
23
|
+
* before it can touch the user's prompt store.
|
|
24
|
+
*
|
|
25
|
+
* Mirrors `SkillInstaller`. For a GitHub-backed hub, the contract is a repo
|
|
26
|
+
* with a top-level `registry.json` (a `PromptRegistryManifest`) plus
|
|
27
|
+
* `prompts/<slug>.json` bodies — the same shape the bundled dataset emits.
|
|
28
|
+
*/
|
|
29
|
+
export declare class PromptInstaller {
|
|
30
|
+
private readonly fetcher;
|
|
31
|
+
constructor(opts?: PromptInstallerOptions);
|
|
32
|
+
/**
|
|
33
|
+
* Fetch + validate a manifest and report what a sync WOULD change. Read-only.
|
|
34
|
+
* @param manifestUrl URL to the registry's `registry.json`.
|
|
35
|
+
* @param local The prompts the caller already has (slug + checksum).
|
|
36
|
+
*/
|
|
37
|
+
pull(manifestUrl: string, local: {
|
|
38
|
+
slug: string;
|
|
39
|
+
checksum?: string | undefined;
|
|
40
|
+
}[]): Promise<PromptPullResult>;
|
|
41
|
+
/**
|
|
42
|
+
* EXTENSION POINT (not yet wired): download the prompt bodies for the given
|
|
43
|
+
* registry refs and write them into the user layer as `source:'synced'`,
|
|
44
|
+
* recording each in the installed-prompts manifest. Intentionally unimplemented
|
|
45
|
+
* — pulling real content over the network is gated behind a future change so
|
|
46
|
+
* the format/diff path can ship and be reviewed first.
|
|
47
|
+
*/
|
|
48
|
+
install(): Promise<never>;
|
|
49
|
+
}
|
|
50
|
+
//# sourceMappingURL=prompt-installer.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"prompt-installer.d.ts","sourceRoot":"","sources":["../../src/prompts/prompt-installer.ts"],"names":[],"mappings":"AAAA,OAAO,EAEL,KAAK,sBAAsB,EAC3B,KAAK,YAAY,EAElB,MAAM,6BAA6B,CAAC;AAGrC;;;GAGG;AACH,MAAM,MAAM,WAAW,GAAG,CAAC,GAAG,EAAE,MAAM,KAAK,OAAO,CAAC,OAAO,CAAC,CAAC;AAc5D,MAAM,WAAW,gBAAgB;IAC/B,QAAQ,EAAE,sBAAsB,CAAC;IACjC,IAAI,EAAE,YAAY,CAAC;IACnB,iEAAiE;IACjE,MAAM,EAAE,IAAI,CAAC;CACd;AAED,MAAM,WAAW,sBAAsB;IACrC,OAAO,CAAC,EAAE,WAAW,GAAG,SAAS,CAAC;CACnC;AAED;;;;;;;;;;;;GAYG;AACH,qBAAa,eAAe;IAC1B,OAAO,CAAC,QAAQ,CAAC,OAAO,CAAc;IAEtC,YAAY,IAAI,GAAE,sBAA2B,EAE5C;IAED;;;;OAIG;IACG,IAAI,CACR,WAAW,EAAE,MAAM,EACnB,KAAK,EAAE;QAAE,IAAI,EAAE,MAAM,CAAC;QAAC,QAAQ,CAAC,EAAE,MAAM,GAAG,SAAS,CAAA;KAAE,EAAE,GACvD,OAAO,CAAC,gBAAgB,CAAC,CAW3B;IAED;;;;;;OAMG;IACG,OAAO,IAAI,OAAO,CAAC,KAAK,CAAC,CAK9B;CACF"}
|
|
@@ -0,0 +1,18 @@
|
|
|
1
|
+
import type { InstalledPromptEntry, PromptManifestData } from '../types/prompt-registry.js';
|
|
2
|
+
/**
|
|
3
|
+
* Tracks prompts pulled from a remote registry, persisted to
|
|
4
|
+
* `~/.wrongstack/installed-prompts.json`. Mirrors `SkillManifestStore`. The
|
|
5
|
+
* manifest is the source of truth for "what have I synced and at what version",
|
|
6
|
+
* enabling a future `pull --favorites` / update flow.
|
|
7
|
+
*/
|
|
8
|
+
export declare class PromptManifestStore {
|
|
9
|
+
private readonly manifestPath;
|
|
10
|
+
constructor(manifestPath: string);
|
|
11
|
+
load(): Promise<PromptManifestData>;
|
|
12
|
+
save(data: PromptManifestData): Promise<void>;
|
|
13
|
+
/** Upsert one entry keyed by slug. */
|
|
14
|
+
record(entry: InstalledPromptEntry): Promise<void>;
|
|
15
|
+
remove(slug: string): Promise<boolean>;
|
|
16
|
+
list(): Promise<InstalledPromptEntry[]>;
|
|
17
|
+
}
|
|
18
|
+
//# sourceMappingURL=prompt-manifest-store.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"prompt-manifest-store.d.ts","sourceRoot":"","sources":["../../src/prompts/prompt-manifest-store.ts"],"names":[],"mappings":"AAEA,OAAO,KAAK,EAAE,oBAAoB,EAAE,kBAAkB,EAAE,MAAM,6BAA6B,CAAC;AAG5F;;;;;GAKG;AACH,qBAAa,mBAAmB;IAClB,OAAO,CAAC,QAAQ,CAAC,YAAY;IAAzC,YAA6B,YAAY,EAAE,MAAM,EAAI;IAE/C,IAAI,IAAI,OAAO,CAAC,kBAAkB,CAAC,CAUxC;IAEK,IAAI,CAAC,IAAI,EAAE,kBAAkB,GAAG,OAAO,CAAC,IAAI,CAAC,CAGlD;IAED,sCAAsC;IAChC,MAAM,CAAC,KAAK,EAAE,oBAAoB,GAAG,OAAO,CAAC,IAAI,CAAC,CAMvD;IAEK,MAAM,CAAC,IAAI,EAAE,MAAM,GAAG,OAAO,CAAC,OAAO,CAAC,CAM3C;IAEK,IAAI,IAAI,OAAO,CAAC,oBAAoB,EAAE,CAAC,CAE5C;CACF"}
|
|
@@ -0,0 +1,51 @@
|
|
|
1
|
+
import type { ProviderConfig } from '../types/config.js';
|
|
2
|
+
import type { WireFamily } from '../types/models-registry.js';
|
|
3
|
+
import type { Provider } from '../types/provider.js';
|
|
4
|
+
/**
|
|
5
|
+
* Factory for constructing a Provider instance. The `family` field
|
|
6
|
+
* declares the wire protocol so callers can route without inspecting
|
|
7
|
+
* the returned instance. The `type` is the registry key (e.g. a
|
|
8
|
+
* provider's models.dev id or a user-chosen alias).
|
|
9
|
+
*/
|
|
10
|
+
export interface ProviderFactory {
|
|
11
|
+
/**
|
|
12
|
+
* Unique identifier used as the registry key. When registered via
|
|
13
|
+
* a plugin, this becomes `cfg.type` in `ProviderRegistry.create(cfg)`.
|
|
14
|
+
*/
|
|
15
|
+
type: string;
|
|
16
|
+
/**
|
|
17
|
+
* Declares the wire protocol family so consumers can route based on
|
|
18
|
+
* capability (e.g. which tool-format converter to use) without
|
|
19
|
+
* instantiating the provider.
|
|
20
|
+
*/
|
|
21
|
+
family: WireFamily;
|
|
22
|
+
create(cfg: ProviderConfig): Provider;
|
|
23
|
+
}
|
|
24
|
+
export declare class ProviderRegistry {
|
|
25
|
+
private readonly factories;
|
|
26
|
+
/**
|
|
27
|
+
* Register a provider factory. If a factory with the same type already
|
|
28
|
+
* exists, it is replaced. Use this for both initial registration and
|
|
29
|
+
* runtime overrides (e.g. from plugins or CLI flags).
|
|
30
|
+
*/
|
|
31
|
+
register(f: ProviderFactory): void;
|
|
32
|
+
/**
|
|
33
|
+
* Bulk-register multiple provider factories at once.
|
|
34
|
+
*/
|
|
35
|
+
registerAll(factories: ProviderFactory[]): void;
|
|
36
|
+
/**
|
|
37
|
+
* Override an existing factory. Throws if no factory is registered
|
|
38
|
+
* for the given type. Use this to safely replace a provider at runtime
|
|
39
|
+
* (e.g. in tests or when a plugin provides a custom implementation).
|
|
40
|
+
*/
|
|
41
|
+
override(type: string, f: ProviderFactory): void;
|
|
42
|
+
has(type: string): boolean;
|
|
43
|
+
/**
|
|
44
|
+
* Unregister a provider factory by type. Returns true if a factory was
|
|
45
|
+
* removed, false if none was registered for that type.
|
|
46
|
+
*/
|
|
47
|
+
unregister(type: string): boolean;
|
|
48
|
+
create(cfg: ProviderConfig): Provider;
|
|
49
|
+
list(): string[];
|
|
50
|
+
}
|
|
51
|
+
//# sourceMappingURL=provider-registry.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"provider-registry.d.ts","sourceRoot":"","sources":["../../src/registry/provider-registry.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,cAAc,EAAE,MAAM,oBAAoB,CAAC;AACzD,OAAO,KAAK,EAAE,UAAU,EAAE,MAAM,6BAA6B,CAAC;AAC9D,OAAO,KAAK,EAAE,QAAQ,EAAE,MAAM,sBAAsB,CAAC;AAErD;;;;;GAKG;AACH,MAAM,WAAW,eAAe;IAC9B;;;OAGG;IACH,IAAI,EAAE,MAAM,CAAC;IACb;;;;OAIG;IACH,MAAM,EAAE,UAAU,CAAC;IACnB,MAAM,CAAC,GAAG,EAAE,cAAc,GAAG,QAAQ,CAAC;CACvC;AAED,qBAAa,gBAAgB;IAC3B,OAAO,CAAC,QAAQ,CAAC,SAAS,CAAsC;IAEhE;;;;OAIG;IACH,QAAQ,CAAC,CAAC,EAAE,eAAe,GAAG,IAAI,CAEjC;IAED;;OAEG;IACH,WAAW,CAAC,SAAS,EAAE,eAAe,EAAE,GAAG,IAAI,CAE9C;IAED;;;;OAIG;IACH,QAAQ,CAAC,IAAI,EAAE,MAAM,EAAE,CAAC,EAAE,eAAe,GAAG,IAAI,CAK/C;IAED,GAAG,CAAC,IAAI,EAAE,MAAM,GAAG,OAAO,CAEzB;IAED;;;OAGG;IACH,UAAU,CAAC,IAAI,EAAE,MAAM,GAAG,OAAO,CAEhC;IAED,MAAM,CAAC,GAAG,EAAE,cAAc,GAAG,QAAQ,CAQpC;IAED,IAAI,IAAI,MAAM,EAAE,CAEf;CACF"}
|
|
@@ -0,0 +1,61 @@
|
|
|
1
|
+
import type { Context } from '../core/context.js';
|
|
2
|
+
import type { SlashCommand } from '../types/slash-command.js';
|
|
3
|
+
/**
|
|
4
|
+
* A slash command registered with the CLI or available to plugins.
|
|
5
|
+
* Plugins receive a view of the registry via PluginAPI.slashCommands.
|
|
6
|
+
*
|
|
7
|
+
* Commands registered by plugins use a namespaced name: `pluginName:commandName`.
|
|
8
|
+
* This prevents collisions with built-in commands and other plugins.
|
|
9
|
+
*/
|
|
10
|
+
export type { SlashCommand };
|
|
11
|
+
export declare class SlashCommandRegistry {
|
|
12
|
+
private readonly cmds;
|
|
13
|
+
/**
|
|
14
|
+
* Register a command.
|
|
15
|
+
*
|
|
16
|
+
* Trust tiers, by `owner` and `opts.official`:
|
|
17
|
+
*
|
|
18
|
+
* - **Built-ins** (`owner === 'core'`) and **official plugins**
|
|
19
|
+
* (`opts.official === true`, set by the host only for first-party plugins
|
|
20
|
+
* loaded from the built-in factory list) claim the **bare** command name
|
|
21
|
+
* (`/prompts`). They may override one another — last write wins — so an
|
|
22
|
+
* official plugin can replace a built-in. Official plugins are *also*
|
|
23
|
+
* reachable under their `owner:name` namespace.
|
|
24
|
+
* - **External plugins** (any other `owner`) are isolated under the
|
|
25
|
+
* `owner:name` namespace: invocable only as `/owner:cmd`, never by bare
|
|
26
|
+
* name, and unable to shadow or override a built-in or official command.
|
|
27
|
+
*
|
|
28
|
+
* Officiality is supplied by the host based on the plugin's load source, not
|
|
29
|
+
* self-declared by the plugin — an external plugin cannot name itself into
|
|
30
|
+
* the official tier.
|
|
31
|
+
*/
|
|
32
|
+
register(cmd: SlashCommand, owner?: string, opts?: {
|
|
33
|
+
official?: boolean | undefined;
|
|
34
|
+
}): void;
|
|
35
|
+
unregister(name: string): boolean;
|
|
36
|
+
/**
|
|
37
|
+
* Bulk-register multiple slash commands at once.
|
|
38
|
+
*/
|
|
39
|
+
registerAll(cmds: SlashCommand[], owner?: string): void;
|
|
40
|
+
get(name: string): SlashCommand | undefined;
|
|
41
|
+
ownerOf(name: string): string | undefined;
|
|
42
|
+
list(): SlashCommand[];
|
|
43
|
+
listWithOwner(): Array<{
|
|
44
|
+
cmd: SlashCommand;
|
|
45
|
+
owner: string;
|
|
46
|
+
fullName: string;
|
|
47
|
+
}>;
|
|
48
|
+
/**
|
|
49
|
+
* Parse a slash command line. Accepts both:
|
|
50
|
+
* `/cmd args` → builtin command (owner=core)
|
|
51
|
+
* `/pluginName:cmd args` → plugin command
|
|
52
|
+
* The command name is split at the first `:` if the prefix matches a known owner.
|
|
53
|
+
*/
|
|
54
|
+
dispatch(line: string, ctx: Context): Promise<{
|
|
55
|
+
exit?: boolean | undefined;
|
|
56
|
+
message?: string | undefined;
|
|
57
|
+
runText?: string | undefined;
|
|
58
|
+
metadata?: Record<string, unknown>;
|
|
59
|
+
} | null>;
|
|
60
|
+
}
|
|
61
|
+
//# sourceMappingURL=slash-command-registry.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"slash-command-registry.d.ts","sourceRoot":"","sources":["../../src/registry/slash-command-registry.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,OAAO,EAAE,MAAM,oBAAoB,CAAC;AAClD,OAAO,KAAK,EAAE,YAAY,EAAE,MAAM,2BAA2B,CAAC;AAE9D;;;;;;GAMG;AACH,YAAY,EAAE,YAAY,EAAE,CAAC;AAG7B,qBAAa,oBAAoB;IAC/B,OAAO,CAAC,QAAQ,CAAC,IAAI,CAA8E;IAEnG;;;;;;;;;;;;;;;;;;OAkBG;IACH,QAAQ,CAAC,GAAG,EAAE,YAAY,EAAE,KAAK,SAAS,EAAE,IAAI,CAAC,EAAE;QAAE,QAAQ,CAAC,EAAE,OAAO,GAAG,SAAS,CAAA;KAAE,GAAG,IAAI,CAkC3F;IAED,UAAU,CAAC,IAAI,EAAE,MAAM,GAAG,OAAO,CAUhC;IAED;;OAEG;IACH,WAAW,CAAC,IAAI,EAAE,YAAY,EAAE,EAAE,KAAK,SAAS,GAAG,IAAI,CAEtD;IAED,GAAG,CAAC,IAAI,EAAE,MAAM,GAAG,YAAY,GAAG,SAAS,CAE1C;IAED,OAAO,CAAC,IAAI,EAAE,MAAM,GAAG,MAAM,GAAG,SAAS,CAExC;IAED,IAAI,IAAI,YAAY,EAAE,CAUrB;IAED,aAAa,IAAI,KAAK,CAAC;QAAE,GAAG,EAAE,YAAY,CAAC;QAAC,KAAK,EAAE,MAAM,CAAC;QAAC,QAAQ,EAAE,MAAM,CAAA;KAAE,CAAC,CAU7E;IAED;;;;;OAKG;IACG,QAAQ,CACZ,IAAI,EAAE,MAAM,EACZ,GAAG,EAAE,OAAO,GACX,OAAO,CAAC;QAAE,IAAI,CAAC,EAAE,OAAO,GAAG,SAAS,CAAC;QAAC,OAAO,CAAC,EAAE,MAAM,GAAG,SAAS,CAAC;QAAC,OAAO,CAAC,EAAE,MAAM,GAAG,SAAS,CAAC;QAAC,QAAQ,CAAC,EAAE,MAAM,CAAC,MAAM,EAAE,OAAO,CAAC,CAAA;KAAE,GAAG,IAAI,CAAC,CAqChJ;CACF"}
|
|
@@ -0,0 +1,154 @@
|
|
|
1
|
+
import type { ToolDescriptionMode, ToolDescriptionModeConfig } from '../types/config.js';
|
|
2
|
+
import type { Tool } from '../types/tool.js';
|
|
3
|
+
/**
|
|
4
|
+
* A function that wraps (decorates) an existing tool. Receives the
|
|
5
|
+
* original tool and returns a modified version — typically the same
|
|
6
|
+
* tool with a wrapped `execute` / `executeStream`, or with modified
|
|
7
|
+
* metadata (description, permission).
|
|
8
|
+
*
|
|
9
|
+
* Use `ToolRegistry.wrap()` to apply; the wrapper is called immediately
|
|
10
|
+
* and the result replaces the registered tool. Multiple wraps stack —
|
|
11
|
+
* each wrapper receives the output of the previous.
|
|
12
|
+
*
|
|
13
|
+
* @example
|
|
14
|
+
* ```ts
|
|
15
|
+
* registry.wrap('read', (original) => ({
|
|
16
|
+
* ...original,
|
|
17
|
+
* async execute(input, ctx, opts) {
|
|
18
|
+
* console.log('read called');
|
|
19
|
+
* return original.execute(input, ctx, opts);
|
|
20
|
+
* }
|
|
21
|
+
* }));
|
|
22
|
+
* ```
|
|
23
|
+
*/
|
|
24
|
+
export type ToolWrapper = (tool: Tool) => Tool;
|
|
25
|
+
export declare class ToolRegistry {
|
|
26
|
+
private readonly tools;
|
|
27
|
+
private readonly descriptionModes;
|
|
28
|
+
/**
|
|
29
|
+
* Set of tool names that are disabled (hidden from list(), get() and all
|
|
30
|
+
* other public accessors). The underlying tool data stays in `_tools` so
|
|
31
|
+
* re-enable is a constant-time operation.
|
|
32
|
+
*/
|
|
33
|
+
private readonly _disabled;
|
|
34
|
+
/** Monotonic version bumped on every registry mutation. */
|
|
35
|
+
private _version;
|
|
36
|
+
/** Cached `list()` result, frozen after build. Invalidated on _version change. */
|
|
37
|
+
private _listSnapshot;
|
|
38
|
+
private _listSnapshotVersion;
|
|
39
|
+
/** Pre-compute tool definition token estimate once at registration time. */
|
|
40
|
+
private _stampDefTokens;
|
|
41
|
+
/** Apply the description mode transform and stamp token estimates. */
|
|
42
|
+
private _prepareForStorage;
|
|
43
|
+
register(tool: Tool, owner?: string): void;
|
|
44
|
+
/**
|
|
45
|
+
* Attempt to register a tool. Returns true if successful, false if a tool
|
|
46
|
+
* with the same name is already registered. Useful in multi-agent or plugin
|
|
47
|
+
* scenarios where duplicate registration may be intentional.
|
|
48
|
+
*/
|
|
49
|
+
tryRegister(tool: Tool, owner?: string): boolean;
|
|
50
|
+
/**
|
|
51
|
+
* Bulk-register multiple tools at once. Each tool that conflicts with an
|
|
52
|
+
* existing registration is silently skipped — use `registerAllOrThrow`
|
|
53
|
+
* if you want it to throw on conflicts.
|
|
54
|
+
*/
|
|
55
|
+
registerAll(tools: Tool[], owner?: string): void;
|
|
56
|
+
/**
|
|
57
|
+
* Bulk-register and throw on the first conflict. Use when you need
|
|
58
|
+
* strict registration (e.g. at boot time).
|
|
59
|
+
*/
|
|
60
|
+
registerAllOrThrow(tools: Tool[], owner?: string): void;
|
|
61
|
+
/**
|
|
62
|
+
* Register a tool as a default. If the tool name is already registered,
|
|
63
|
+
* this is a no-op — the existing registration (from core or another
|
|
64
|
+
* plugin) takes precedence. Use `override` to intentionally replace.
|
|
65
|
+
*/
|
|
66
|
+
registerDefault(tool: Tool, owner?: string): void;
|
|
67
|
+
unregister(name: string): boolean;
|
|
68
|
+
/**
|
|
69
|
+
* Override an existing tool. Throws if the tool is not already registered.
|
|
70
|
+
* Plugins use this to replace built-in tools with custom implementations.
|
|
71
|
+
*/
|
|
72
|
+
override(name: string, tool: Tool, owner?: string): void;
|
|
73
|
+
/**
|
|
74
|
+
* Wrap (decorate) an existing tool. The wrapper receives the current
|
|
75
|
+
* tool and must return a new tool — typically the same tool with a
|
|
76
|
+
* wrapped `execute` or `executeStream`. Throws if the tool is not
|
|
77
|
+
* registered.
|
|
78
|
+
*
|
|
79
|
+
* Multiple wraps stack: each wrapper gets the output of the previous.
|
|
80
|
+
*
|
|
81
|
+
* @example
|
|
82
|
+
* registry.wrap('bash', (t) => ({ ...t, permission: 'confirm' }));
|
|
83
|
+
*/
|
|
84
|
+
wrap(name: string, wrapper: ToolWrapper, owner?: string): void;
|
|
85
|
+
setDescriptionMode(name: string, mode: ToolDescriptionMode): boolean;
|
|
86
|
+
getDescriptionMode(name: string): ToolDescriptionMode;
|
|
87
|
+
applyDescriptionModes(modes?: ToolDescriptionModeConfig): {
|
|
88
|
+
applied: number;
|
|
89
|
+
missing: string[];
|
|
90
|
+
};
|
|
91
|
+
get(name: string): Tool | undefined;
|
|
92
|
+
ownerOf(name: string): string | undefined;
|
|
93
|
+
/**
|
|
94
|
+
* Disable a tool by name. The tool is removed from all public accessors
|
|
95
|
+
* (list(), get(), listByCategory(), listWithOwner()) so it does NOT
|
|
96
|
+
* appear in the system prompt or provider request. The underlying
|
|
97
|
+
* registration is preserved in memory — use `enable()` to restore it.
|
|
98
|
+
*
|
|
99
|
+
* @returns `true` if the tool was found and disabled; `false` if the
|
|
100
|
+
* tool is not registered or is already disabled.
|
|
101
|
+
*/
|
|
102
|
+
disable(name: string): boolean;
|
|
103
|
+
/**
|
|
104
|
+
* Re-enable a previously disabled tool. The tool reappears in all
|
|
105
|
+
* public accessors and will be included in the next system prompt /
|
|
106
|
+
* provider request.
|
|
107
|
+
*
|
|
108
|
+
* @returns `true` if the tool was disabled and is now re-enabled;
|
|
109
|
+
* `false` if the tool was not disabled.
|
|
110
|
+
*/
|
|
111
|
+
enable(name: string): boolean;
|
|
112
|
+
/**
|
|
113
|
+
* Re-enable ALL currently disabled tools at once. Returns the number
|
|
114
|
+
* of tools that were re-enabled.
|
|
115
|
+
*/
|
|
116
|
+
enableAll(): number;
|
|
117
|
+
/**
|
|
118
|
+
* Check whether a tool is currently disabled.
|
|
119
|
+
*/
|
|
120
|
+
isDisabled(name: string): boolean;
|
|
121
|
+
/**
|
|
122
|
+
* Apply a list of tool names to disable. Tools not in the registry
|
|
123
|
+
* are silently ignored so config can reference future tools without
|
|
124
|
+
* error. Returns the number of tools actually disabled.
|
|
125
|
+
*/
|
|
126
|
+
applyDisabled(names: readonly string[]): number;
|
|
127
|
+
/**
|
|
128
|
+
* Return the list of all disabled tool entries (tool + owner). Useful
|
|
129
|
+
* for the /tools slash command to show disabled tools alongside
|
|
130
|
+
* enabled ones.
|
|
131
|
+
*/
|
|
132
|
+
listDisabled(): {
|
|
133
|
+
tool: Tool;
|
|
134
|
+
owner: string;
|
|
135
|
+
}[];
|
|
136
|
+
list(): Tool[];
|
|
137
|
+
/**
|
|
138
|
+
* Group tools by their `category` field. Tools without a category
|
|
139
|
+
* are placed under the key `""` (empty string). Returns a Map of
|
|
140
|
+
* category → tools, sorted by registration order within each category.
|
|
141
|
+
*/
|
|
142
|
+
listByCategory(): Map<string, Tool[]>;
|
|
143
|
+
listWithOwner(): {
|
|
144
|
+
tool: Tool;
|
|
145
|
+
owner: string;
|
|
146
|
+
}[];
|
|
147
|
+
clear(): void;
|
|
148
|
+
/**
|
|
149
|
+
* Return a new ToolRegistry with the same registered tools and owners.
|
|
150
|
+
* Useful for creating filtered copies in multi-agent scenarios.
|
|
151
|
+
*/
|
|
152
|
+
clone(): ToolRegistry;
|
|
153
|
+
}
|
|
154
|
+
//# sourceMappingURL=tool-registry.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"tool-registry.d.ts","sourceRoot":"","sources":["../../src/registry/tool-registry.ts"],"names":[],"mappings":"AACA,OAAO,KAAK,EAAE,mBAAmB,EAAE,yBAAyB,EAAE,MAAM,oBAAoB,CAAC;AACzF,OAAO,KAAK,EAAE,IAAI,EAAE,MAAM,kBAAkB,CAAC;AAO7C;;;;;;;;;;;;;;;;;;;;GAoBG;AACH,MAAM,MAAM,WAAW,GAAG,CAAC,IAAI,EAAE,IAAI,KAAK,IAAI,CAAC;AAE/C,qBAAa,YAAY;IACvB,OAAO,CAAC,QAAQ,CAAC,KAAK,CAAoD;IAC1E,OAAO,CAAC,QAAQ,CAAC,gBAAgB,CAA0C;IAC3E;;;;OAIG;IACH,OAAO,CAAC,QAAQ,CAAC,SAAS,CAAqB;IAC/C,2DAA2D;IAC3D,OAAO,CAAC,QAAQ,CAAK;IACrB,kFAAkF;IAClF,OAAO,CAAC,aAAa,CAA8B;IACnD,OAAO,CAAC,oBAAoB,CAAM;IAElC,4EAA4E;IAC5E,OAAO,CAAC,eAAe;IAMvB,sEAAsE;IACtE,OAAO,CAAC,kBAAkB;IAK1B,QAAQ,CAAC,IAAI,EAAE,IAAI,EAAE,KAAK,SAAS,GAAG,IAAI,CAyBzC;IAED;;;;OAIG;IACH,WAAW,CAAC,IAAI,EAAE,IAAI,EAAE,KAAK,SAAS,GAAG,OAAO,CAY/C;IAED;;;;OAIG;IACH,WAAW,CAAC,KAAK,EAAE,IAAI,EAAE,EAAE,KAAK,SAAS,GAAG,IAAI,CAE/C;IAED;;;OAGG;IACH,kBAAkB,CAAC,KAAK,EAAE,IAAI,EAAE,EAAE,KAAK,SAAS,GAAG,IAAI,CAEtD;IAED;;;;OAIG;IACH,eAAe,CAAC,IAAI,EAAE,IAAI,EAAE,KAAK,SAAS,GAAG,IAAI,CAMhD;IAED,UAAU,CAAC,IAAI,EAAE,MAAM,GAAG,OAAO,CAIhC;IAED;;;OAGG;IACH,QAAQ,CAAC,IAAI,EAAE,MAAM,EAAE,IAAI,EAAE,IAAI,EAAE,KAAK,SAAS,GAAG,IAAI,CAavD;IAED;;;;;;;;;;OAUG;IACH,IAAI,CAAC,IAAI,EAAE,MAAM,EAAE,OAAO,EAAE,WAAW,EAAE,KAAK,SAAS,GAAG,IAAI,CAiB7D;IAED,kBAAkB,CAAC,IAAI,EAAE,MAAM,EAAE,IAAI,EAAE,mBAAmB,GAAG,OAAO,CAkBnE;IAED,kBAAkB,CAAC,IAAI,EAAE,MAAM,GAAG,mBAAmB,CAEpD;IAED,qBAAqB,CACnB,KAAK,GAAE,yBAA8B,GACpC;QAAE,OAAO,EAAE,MAAM,CAAC;QAAC,OAAO,EAAE,MAAM,EAAE,CAAA;KAAE,CAexC;IAED,GAAG,CAAC,IAAI,EAAE,MAAM,GAAG,IAAI,GAAG,SAAS,CAGlC;IAED,OAAO,CAAC,IAAI,EAAE,MAAM,GAAG,MAAM,GAAG,SAAS,CAExC;IAID;;;;;;;;OAQG;IACH,OAAO,CAAC,IAAI,EAAE,MAAM,GAAG,OAAO,CAK7B;IAED;;;;;;;OAOG;IACH,MAAM,CAAC,IAAI,EAAE,MAAM,GAAG,OAAO,CAK5B;IAED;;;OAGG;IACH,SAAS,IAAI,MAAM,CAMlB;IAED;;OAEG;IACH,UAAU,CAAC,IAAI,EAAE,MAAM,GAAG,OAAO,CAEhC;IAED;;;;OAIG;IACH,aAAa,CAAC,KAAK,EAAE,SAAS,MAAM,EAAE,GAAG,MAAM,CAM9C;IAED;;;;OAIG;IACH,YAAY,IAAI;QAAE,IAAI,EAAE,IAAI,CAAC;QAAC,KAAK,EAAE,MAAM,CAAA;KAAE,EAAE,CAO9C;IAED,IAAI,IAAI,IAAI,EAAE,CAUb;IAED;;;;OAIG;IACH,cAAc,IAAI,GAAG,CAAC,MAAM,EAAE,IAAI,EAAE,CAAC,CAapC;IAED,aAAa,IAAI;QAAE,IAAI,EAAE,IAAI,CAAC;QAAC,KAAK,EAAE,MAAM,CAAA;KAAE,EAAE,CAI/C;IAED,KAAK,IAAI,IAAI,CAKZ;IAED;;;OAGG;IACH,KAAK,IAAI,YAAY,CAiBpB;CACF"}
|
|
@@ -0,0 +1,31 @@
|
|
|
1
|
+
import type { Request } from '../types/provider.js';
|
|
2
|
+
/**
|
|
3
|
+
* Idea #2 from IDEAS.md — Deterministic Replay.
|
|
4
|
+
*
|
|
5
|
+
* The hash function is the foundation of replay: given a `Request`,
|
|
6
|
+
* produce a stable identifier so a recorded `Response` can be looked
|
|
7
|
+
* up later when we want to "re-run" the same agent loop without
|
|
8
|
+
* burning API credits.
|
|
9
|
+
*
|
|
10
|
+
* Stability rules:
|
|
11
|
+
*
|
|
12
|
+
* - All object keys are sorted recursively before stringification.
|
|
13
|
+
* Without this, two semantically identical requests that differ
|
|
14
|
+
* only in key insertion order would produce different hashes.
|
|
15
|
+
* - We hash ONLY the fields that affect the response: `model`,
|
|
16
|
+
* `system`, `messages`, `tools`, `maxTokens`, and the four
|
|
17
|
+
* sampling knobs (`temperature`, `topP`, `stopSequences`,
|
|
18
|
+
* `toolChoice`). Anything else on the `Request` (metadata,
|
|
19
|
+
* future extensions) is ignored so replay stays forward-compat.
|
|
20
|
+
* - We serialize to JSON. The `ContentBlock` and `Message` shapes
|
|
21
|
+
* are pure data; this works as long as no `undefined` values
|
|
22
|
+
* sneak in (those get dropped by `JSON.stringify`, which is
|
|
23
|
+
* fine — the structural diff is what matters).
|
|
24
|
+
*
|
|
25
|
+
* The SHA-256 output is hex-encoded and prefixed with the algorithm
|
|
26
|
+
* tag so a future migration to a different hash (e.g. blake3) is
|
|
27
|
+
* trivial to detect.
|
|
28
|
+
*/
|
|
29
|
+
export declare function stableStringify(value: unknown): string;
|
|
30
|
+
export declare function hashRequest(request: Request): string;
|
|
31
|
+
//# sourceMappingURL=hash.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"hash.d.ts","sourceRoot":"","sources":["../../src/replay/hash.ts"],"names":[],"mappings":"AACA,OAAO,KAAK,EAAE,OAAO,EAAE,MAAM,sBAAsB,CAAC;AAEpD;;;;;;;;;;;;;;;;;;;;;;;;;;GA0BG;AACH,wBAAgB,eAAe,CAAC,KAAK,EAAE,OAAO,GAAG,MAAM,CAEtD;AAeD,wBAAgB,WAAW,CAAC,OAAO,EAAE,OAAO,GAAG,MAAM,CAgBpD"}
|
|
@@ -0,0 +1,53 @@
|
|
|
1
|
+
import type { ReplayLogStore } from '../storage/replay-log-store.js';
|
|
2
|
+
import type { ProviderRunner, RunProviderOptions } from '../types/provider-runner.js';
|
|
3
|
+
import type { Response } from '../types/provider.js';
|
|
4
|
+
/**
|
|
5
|
+
* ReplayProviderRunner — idea #2 from IDEAS.md.
|
|
6
|
+
*
|
|
7
|
+
* A drop-in `ProviderRunner` that wraps an inner runner and either
|
|
8
|
+
* - records every (request, response) pair it observes (mode: 'record'),
|
|
9
|
+
* - serves a recorded response when the request hash matches (mode: 'replay'),
|
|
10
|
+
* - or does both: serve when present, record when not (mode: 'auto').
|
|
11
|
+
*
|
|
12
|
+
* Bind to `TOKENS.ProviderRunner` to completely replace the default
|
|
13
|
+
* runner. Or use `AgentExtension.wrapProviderRunner` to chain in
|
|
14
|
+
* alongside other extensions.
|
|
15
|
+
*
|
|
16
|
+
* Mode semantics:
|
|
17
|
+
* - 'record' is the production mode. Every real API call is
|
|
18
|
+
* persisted; the user can later `wstack replay <sessionId>` to
|
|
19
|
+
* re-run with frozen responses.
|
|
20
|
+
* - 'replay' is the debugging mode. The agent loop runs normally
|
|
21
|
+
* (same permissions, same tool dispatch) but every LLM call
|
|
22
|
+
* comes from the recorded log. If a request hash is not in the
|
|
23
|
+
* log, we throw — the user is expected to either rebuild the
|
|
24
|
+
* session or fall back to record mode.
|
|
25
|
+
* - 'auto' is the warm-start mode for development. The first time
|
|
26
|
+
* a particular request is seen, it's recorded; the next time
|
|
27
|
+
* the same request is made, the recorded response is served.
|
|
28
|
+
* This is the cheapest path to a deterministic test harness.
|
|
29
|
+
*/
|
|
30
|
+
export type ReplayMode = 'record' | 'replay' | 'auto';
|
|
31
|
+
export interface ReplayProviderRunnerOptions {
|
|
32
|
+
log: ReplayLogStore;
|
|
33
|
+
sessionId: string;
|
|
34
|
+
mode: ReplayMode;
|
|
35
|
+
/**
|
|
36
|
+
* Optional logger — receives a debug line on every replay hit
|
|
37
|
+
* ("served cached response for hash sha256:…") and a warn on
|
|
38
|
+
* every miss in 'replay' mode (the throw that follows is the
|
|
39
|
+
* real signal, but the warn helps when the throw is caught
|
|
40
|
+
* upstream).
|
|
41
|
+
*/
|
|
42
|
+
logger?: {
|
|
43
|
+
debug?: ((msg: string) => void) | undefined;
|
|
44
|
+
warn?: ((msg: string) => void) | undefined;
|
|
45
|
+
} | undefined;
|
|
46
|
+
}
|
|
47
|
+
export declare class ReplayProviderRunner implements ProviderRunner {
|
|
48
|
+
private readonly inner;
|
|
49
|
+
private readonly opts;
|
|
50
|
+
constructor(inner: ProviderRunner, opts: ReplayProviderRunnerOptions);
|
|
51
|
+
run(runOpts: RunProviderOptions): Promise<Response>;
|
|
52
|
+
}
|
|
53
|
+
//# sourceMappingURL=replay-provider-runner.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"replay-provider-runner.d.ts","sourceRoot":"","sources":["../../src/replay/replay-provider-runner.ts"],"names":[],"mappings":"AACA,OAAO,KAAK,EAAE,cAAc,EAAE,MAAM,gCAAgC,CAAC;AACrE,OAAO,KAAK,EAAE,cAAc,EAAE,kBAAkB,EAAE,MAAM,6BAA6B,CAAC;AACtF,OAAO,KAAK,EAAE,QAAQ,EAAE,MAAM,sBAAsB,CAAC;AAErD;;;;;;;;;;;;;;;;;;;;;;;;;GAyBG;AACH,MAAM,MAAM,UAAU,GAAG,QAAQ,GAAG,QAAQ,GAAG,MAAM,CAAC;AAEtD,MAAM,WAAW,2BAA2B;IAC1C,GAAG,EAAE,cAAc,CAAC;IACpB,SAAS,EAAE,MAAM,CAAC;IAClB,IAAI,EAAE,UAAU,CAAC;IACjB;;;;;;OAMG;IACH,MAAM,CAAC,EACH;QACE,KAAK,CAAC,EAAE,CAAC,CAAC,GAAG,EAAE,MAAM,KAAK,IAAI,CAAC,GAAG,SAAS,CAAC;QAC5C,IAAI,CAAC,EAAE,CAAC,CAAC,GAAG,EAAE,MAAM,KAAK,IAAI,CAAC,GAAG,SAAS,CAAC;KAC5C,GACD,SAAS,CAAC;CACf;AAED,qBAAa,oBAAqB,YAAW,cAAc;IAEvD,OAAO,CAAC,QAAQ,CAAC,KAAK;IACtB,OAAO,CAAC,QAAQ,CAAC,IAAI;IAFvB,YACmB,KAAK,EAAE,cAAc,EACrB,IAAI,EAAE,2BAA2B,EAChD;IAEE,GAAG,CAAC,OAAO,EAAE,kBAAkB,GAAG,OAAO,CAAC,QAAQ,CAAC,CAmCxD;CACF"}
|
|
@@ -1,5 +1,3 @@
|
|
|
1
|
-
import './secret-vault-DxohkUBc.js';
|
|
2
|
-
|
|
3
1
|
/**
|
|
4
2
|
* Well-known tool capabilities used for authorization decisions.
|
|
5
3
|
*
|
|
@@ -11,61 +9,61 @@ import './secret-vault-DxohkUBc.js';
|
|
|
11
9
|
* - Subagent guards and future policies should primarily key off capabilities.
|
|
12
10
|
* - Name-based denylists are legacy and will be phased down.
|
|
13
11
|
*/
|
|
14
|
-
declare const ToolCapabilities: {
|
|
12
|
+
export declare const ToolCapabilities: {
|
|
15
13
|
/** Can execute arbitrary commands in the user's shell (the `bash` tool). */
|
|
16
|
-
readonly SHELL_ARBITRARY:
|
|
14
|
+
readonly SHELL_ARBITRARY: 'shell.arbitrary';
|
|
17
15
|
/** Can execute a restricted set of commands (the `exec` tool). */
|
|
18
|
-
readonly SHELL_RESTRICTED:
|
|
16
|
+
readonly SHELL_RESTRICTED: 'shell.restricted';
|
|
19
17
|
/** Can run a restricted project formatter/linter-style command. */
|
|
20
|
-
readonly SHELL_EXEC:
|
|
18
|
+
readonly SHELL_EXEC: 'shell.exec';
|
|
21
19
|
/** Can read files inside the project (and possibly outside via symlinks if not guarded). */
|
|
22
|
-
readonly FS_READ:
|
|
20
|
+
readonly FS_READ: 'fs.read';
|
|
23
21
|
/** Can write / modify / delete files inside the project. */
|
|
24
|
-
readonly FS_WRITE:
|
|
22
|
+
readonly FS_WRITE: 'fs.write';
|
|
25
23
|
/** Can write files outside the current project root (very high risk). */
|
|
26
|
-
readonly FS_WRITE_OUTSIDE_PROJECT:
|
|
24
|
+
readonly FS_WRITE_OUTSIDE_PROJECT: 'fs.write.outside-project';
|
|
27
25
|
/** Can perform outbound network requests. */
|
|
28
|
-
readonly NET_OUTBOUND:
|
|
26
|
+
readonly NET_OUTBOUND: 'net.outbound';
|
|
29
27
|
/** Can mutate in-memory session todos only. */
|
|
30
|
-
readonly SESSION_TODO:
|
|
28
|
+
readonly SESSION_TODO: 'session.todo';
|
|
31
29
|
/** Can mutate in-memory session mode only. */
|
|
32
|
-
readonly SESSION_MODE:
|
|
30
|
+
readonly SESSION_MODE: 'session.mode';
|
|
33
31
|
/** Can inspect registered tool metadata. */
|
|
34
|
-
readonly TOOL_META:
|
|
32
|
+
readonly TOOL_META: 'tool.meta';
|
|
35
33
|
/** Can invoke arbitrary registered tools through a meta-tool. */
|
|
36
|
-
readonly TOOL_MUTATE_ANY:
|
|
34
|
+
readonly TOOL_MUTATE_ANY: 'tool.mutate.any';
|
|
37
35
|
/** Can read persistent memory. */
|
|
38
|
-
readonly MEMORY_READ:
|
|
36
|
+
readonly MEMORY_READ: 'memory.read';
|
|
39
37
|
/** Can write persistent memory. */
|
|
40
|
-
readonly MEMORY_WRITE:
|
|
38
|
+
readonly MEMORY_WRITE: 'memory.write';
|
|
41
39
|
/** Can delete persistent memory. */
|
|
42
|
-
readonly MEMORY_DELETE:
|
|
40
|
+
readonly MEMORY_DELETE: 'memory.delete';
|
|
43
41
|
/** Proxies tools from external MCP servers (unknown capability). */
|
|
44
|
-
readonly MCP_PROXY:
|
|
42
|
+
readonly MCP_PROXY: 'mcp.proxy';
|
|
45
43
|
/** Can spawn or manage subagents / multi-agent tasks. */
|
|
46
|
-
readonly SUBAGENT_SPAWN:
|
|
44
|
+
readonly SUBAGENT_SPAWN: 'subagent.spawn';
|
|
47
45
|
/** Can inspect fleet/subagent coordination state without mutating it. */
|
|
48
|
-
readonly COORDINATION_FLEET_READ:
|
|
46
|
+
readonly COORDINATION_FLEET_READ: 'coordination.fleet.read';
|
|
49
47
|
/** Can publish attributed, schema-checked events onto the fleet bus. */
|
|
50
|
-
readonly COORDINATION_FLEET_EMIT:
|
|
48
|
+
readonly COORDINATION_FLEET_EMIT: 'coordination.fleet.emit';
|
|
51
49
|
/** Can submit a task-local structured result to the parent Director. */
|
|
52
|
-
readonly COORDINATION_RESULT_SUBMIT:
|
|
50
|
+
readonly COORDINATION_RESULT_SUBMIT: 'coordination.result.submit';
|
|
53
51
|
/** Can read or write inter-agent mailbox messages. */
|
|
54
|
-
readonly COORDINATION_MAIL:
|
|
52
|
+
readonly COORDINATION_MAIL: 'coordination.mail';
|
|
55
53
|
/** Can schedule, inspect, or cancel in-session cron jobs. */
|
|
56
|
-
readonly COORDINATION_CRON:
|
|
54
|
+
readonly COORDINATION_CRON: 'coordination.cron';
|
|
57
55
|
/** Can mutate global or session configuration / trust state. */
|
|
58
|
-
readonly CONFIG_MUTATE:
|
|
56
|
+
readonly CONFIG_MUTATE: 'config.mutate';
|
|
59
57
|
/** Can install packages or run package managers with side effects. */
|
|
60
|
-
readonly PACKAGE_INSTALL:
|
|
58
|
+
readonly PACKAGE_INSTALL: 'package.install';
|
|
61
59
|
};
|
|
62
|
-
type ToolCapability = (typeof ToolCapabilities)[keyof typeof ToolCapabilities];
|
|
60
|
+
export type ToolCapability = (typeof ToolCapabilities)[keyof typeof ToolCapabilities];
|
|
63
61
|
/**
|
|
64
62
|
* Set of capabilities that are considered dangerous for subagents by default.
|
|
65
63
|
* Subagents should not receive these capabilities unless the leader explicitly
|
|
66
64
|
* allows the specific tool at spawn time.
|
|
67
65
|
*/
|
|
68
|
-
declare const DANGEROUS_FOR_SUBAGENTS: readonly ToolCapability[];
|
|
66
|
+
export declare const DANGEROUS_FOR_SUBAGENTS: readonly ToolCapability[];
|
|
69
67
|
/**
|
|
70
68
|
* Wide capability allowlist for subagents that the user has authorized to act
|
|
71
69
|
* with full developer power (the CLI fleet host applies this to any subagent
|
|
@@ -84,26 +82,25 @@ declare const DANGEROUS_FOR_SUBAGENTS: readonly ToolCapability[];
|
|
|
84
82
|
* - `subagent.spawn` — recursive delegation (the baseline prompt forbids it).
|
|
85
83
|
* - `config.mutate` — rewriting trust/config is privilege escalation, not work.
|
|
86
84
|
*/
|
|
87
|
-
declare const WIDE_SUBAGENT_CAPABILITIES: readonly ToolCapability[];
|
|
85
|
+
export declare const WIDE_SUBAGENT_CAPABILITIES: readonly ToolCapability[];
|
|
88
86
|
/**
|
|
89
87
|
* Check if a tool (or its capabilities array) includes any dangerous capability
|
|
90
88
|
* for subagent execution.
|
|
91
89
|
*/
|
|
92
|
-
declare function hasDangerousCapabilityForSubagents(toolOrCaps: {
|
|
90
|
+
export declare function hasDangerousCapabilityForSubagents(toolOrCaps: {
|
|
93
91
|
capabilities?: readonly string[] | undefined;
|
|
94
92
|
} | readonly string[] | undefined): boolean;
|
|
95
93
|
/**
|
|
96
94
|
* Check if a tool declares a specific capability (or any of the provided ones).
|
|
97
95
|
*/
|
|
98
|
-
declare function hasCapability(toolOrCaps: {
|
|
96
|
+
export declare function hasCapability(toolOrCaps: {
|
|
99
97
|
capabilities?: readonly string[] | undefined;
|
|
100
98
|
} | readonly string[] | undefined, capability: ToolCapability | ToolCapability[]): boolean;
|
|
101
99
|
/**
|
|
102
100
|
* Returns the intersection of a tool's capabilities with the dangerous set.
|
|
103
101
|
* Useful for logging and audit trails.
|
|
104
102
|
*/
|
|
105
|
-
declare function getDangerousCapabilities(toolOrCaps: {
|
|
103
|
+
export declare function getDangerousCapabilities(toolOrCaps: {
|
|
106
104
|
capabilities?: readonly string[] | undefined;
|
|
107
105
|
} | readonly string[] | undefined): ToolCapability[];
|
|
108
|
-
|
|
109
|
-
export { DANGEROUS_FOR_SUBAGENTS as D, ToolCapabilities as T, WIDE_SUBAGENT_CAPABILITIES as W, type ToolCapability as a, hasDangerousCapabilityForSubagents as b, getDangerousCapabilities as g, hasCapability as h };
|
|
106
|
+
//# sourceMappingURL=capabilities.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"capabilities.d.ts","sourceRoot":"","sources":["../../src/security/capabilities.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;GAUG;AACH,eAAO,MAAM,gBAAgB;IAC3B,4EAA4E;aAC5E,eAAe,EAAE,iBAAiB;IAElC,kEAAkE;aAClE,gBAAgB,EAAE,kBAAkB;IAEpC,mEAAmE;aACnE,UAAU,EAAE,YAAY;IAExB,4FAA4F;aAC5F,OAAO,EAAE,SAAS;IAElB,4DAA4D;aAC5D,QAAQ,EAAE,UAAU;IAEpB,yEAAyE;aACzE,wBAAwB,EAAE,0BAA0B;IAEpD,6CAA6C;aAC7C,YAAY,EAAE,cAAc;IAE5B,+CAA+C;aAC/C,YAAY,EAAE,cAAc;IAE5B,8CAA8C;aAC9C,YAAY,EAAE,cAAc;IAE5B,4CAA4C;aAC5C,SAAS,EAAE,WAAW;IAEtB,iEAAiE;aACjE,eAAe,EAAE,iBAAiB;IAElC,kCAAkC;aAClC,WAAW,EAAE,aAAa;IAE1B,mCAAmC;aACnC,YAAY,EAAE,cAAc;IAE5B,oCAAoC;aACpC,aAAa,EAAE,eAAe;IAE9B,oEAAoE;aACpE,SAAS,EAAE,WAAW;IAEtB,yDAAyD;aACzD,cAAc,EAAE,gBAAgB;IAEhC,yEAAyE;aACzE,uBAAuB,EAAE,yBAAyB;IAElD,wEAAwE;aACxE,uBAAuB,EAAE,yBAAyB;IAElD,wEAAwE;aACxE,0BAA0B,EAAE,4BAA4B;IAExD,sDAAsD;aACtD,iBAAiB,EAAE,mBAAmB;IAEtC,6DAA6D;aAC7D,iBAAiB,EAAE,mBAAmB;IAEtC,gEAAgE;aAChE,aAAa,EAAE,eAAe;IAE9B,sEAAsE;aACtE,eAAe,EAAE,iBAAiB;CAC1B,CAAC;AAEX,MAAM,MAAM,cAAc,GAAG,CAAC,OAAO,gBAAgB,CAAC,CAAC,MAAM,OAAO,gBAAgB,CAAC,CAAC;AAEtF;;;;GAIG;AACH,eAAO,MAAM,uBAAuB,EAAE,SAAS,cAAc,EAa5D,CAAC;AAEF;;;;;;;;;;;;;;;;;GAiBG;AACH,eAAO,MAAM,0BAA0B,EAAE,SAAS,cAAc,EAe/D,CAAC;AAEF;;;GAGG;AACH,wBAAgB,kCAAkC,CAChD,UAAU,EAAE;IAAE,YAAY,CAAC,EAAE,SAAS,MAAM,EAAE,GAAG,SAAS,CAAA;CAAE,GAAG,SAAS,MAAM,EAAE,GAAG,SAAS,GAC3F,OAAO,CAKT;AAED;;GAEG;AACH,wBAAgB,aAAa,CAC3B,UAAU,EAAE;IAAE,YAAY,CAAC,EAAE,SAAS,MAAM,EAAE,GAAG,SAAS,CAAA;CAAE,GAAG,SAAS,MAAM,EAAE,GAAG,SAAS,EAC5F,UAAU,EAAE,cAAc,GAAG,cAAc,EAAE,GAC5C,OAAO,CAMT;AAED;;;GAGG;AACH,wBAAgB,wBAAwB,CACtC,UAAU,EAAE;IAAE,YAAY,CAAC,EAAE,SAAS,MAAM,EAAE,GAAG,SAAS,CAAA;CAAE,GAAG,SAAS,MAAM,EAAE,GAAG,SAAS,GAC3F,cAAc,EAAE,CAOlB"}
|
|
@@ -0,0 +1,25 @@
|
|
|
1
|
+
import type { SecretVault } from '../types/secret-vault.js';
|
|
2
|
+
/**
|
|
3
|
+
* Config-walking secret helpers, split out of secret-vault.ts so that
|
|
4
|
+
* consumers which only need the walk logic (config loader, provider-config
|
|
5
|
+
* watcher) don't pull the AES-GCM vault implementation — and its node:crypto
|
|
6
|
+
* imports — into their bundle chunk. Everything here operates purely through
|
|
7
|
+
* the `SecretVault` interface.
|
|
8
|
+
*/
|
|
9
|
+
/**
|
|
10
|
+
* Walk a Config-shaped object and decrypt any apiKey-like fields in place,
|
|
11
|
+
* returning a new object. Used by the config loader so the rest of the
|
|
12
|
+
* system never has to know about the wire format.
|
|
13
|
+
*
|
|
14
|
+
* @param warn — callback for decryption warnings. Defaults to `console.warn`
|
|
15
|
+
* for backward compatibility; pass `logger.warn` when a structured logger
|
|
16
|
+
* is available (preferred in long-running/server contexts).
|
|
17
|
+
*/
|
|
18
|
+
export declare function decryptConfigSecrets<T>(cfg: T, vault: SecretVault, opts?: {
|
|
19
|
+
warn?: (msg: string) => void;
|
|
20
|
+
}): T;
|
|
21
|
+
export declare function encryptConfigSecrets<T>(cfg: T, vault: SecretVault, _opts?: {
|
|
22
|
+
warn?: (msg: string) => void;
|
|
23
|
+
}): T;
|
|
24
|
+
export declare function isSecretField(name: string): boolean;
|
|
25
|
+
//# sourceMappingURL=config-secrets.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"config-secrets.d.ts","sourceRoot":"","sources":["../../src/security/config-secrets.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,WAAW,EAAE,MAAM,0BAA0B,CAAC;AAE5D;;;;;;GAMG;AAEH;;;;;;;;GAQG;AACH,wBAAgB,oBAAoB,CAAC,CAAC,EACpC,GAAG,EAAE,CAAC,EACN,KAAK,EAAE,WAAW,EAClB,IAAI,CAAC,EAAE;IAAE,IAAI,CAAC,EAAE,CAAC,GAAG,EAAE,MAAM,KAAK,IAAI,CAAA;CAAE,GACtC,CAAC,CAeH;AAED,wBAAgB,oBAAoB,CAAC,CAAC,EACpC,GAAG,EAAE,CAAC,EACN,KAAK,EAAE,WAAW,EAClB,KAAK,CAAC,EAAE;IAAE,IAAI,CAAC,EAAE,CAAC,GAAG,EAAE,MAAM,KAAK,IAAI,CAAA;CAAE,GACvC,CAAC,CAEH;AAmCD,wBAAgB,aAAa,CAAC,IAAI,EAAE,MAAM,GAAG,OAAO,CAInD"}
|
package/dist/security/index.d.ts
CHANGED
|
@@ -1,8 +1,6 @@
|
|
|
1
|
-
export {
|
|
2
|
-
export {
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
import '../logger-B63L5bTg.js';
|
|
8
|
-
import '../secret-vault-BAKpgFw_.js';
|
|
1
|
+
export { DefaultSecretScrubber } from './secret-scrubber.js';
|
|
2
|
+
export { DefaultSecretVault, type SecretVaultOptions, rewriteConfigEncrypted, migratePlaintextSecrets, rotateConfigKeys, } from './secret-vault.js';
|
|
3
|
+
export { decryptConfigSecrets, encryptConfigSecrets, isSecretField } from './config-secrets.js';
|
|
4
|
+
export { DefaultPermissionPolicy, AutoApprovePermissionPolicy, type PermissionPolicyOptions, } from './permission-policy.js';
|
|
5
|
+
export { ToolCapabilities, DANGEROUS_FOR_SUBAGENTS, type ToolCapability, hasDangerousCapabilityForSubagents, hasCapability, getDangerousCapabilities, } from './capabilities.js';
|
|
6
|
+
//# sourceMappingURL=index.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../src/security/index.ts"],"names":[],"mappings":"AACA,OAAO,EAAE,qBAAqB,EAAE,MAAM,sBAAsB,CAAC;AAC7D,OAAO,EACL,kBAAkB,EAClB,KAAK,kBAAkB,EACvB,sBAAsB,EACtB,uBAAuB,EACvB,gBAAgB,GACjB,MAAM,mBAAmB,CAAC;AAC3B,OAAO,EAAE,oBAAoB,EAAE,oBAAoB,EAAE,aAAa,EAAE,MAAM,qBAAqB,CAAC;AAChG,OAAO,EACL,uBAAuB,EACvB,2BAA2B,EAC3B,KAAK,uBAAuB,GAC7B,MAAM,wBAAwB,CAAC;AAEhC,OAAO,EACL,gBAAgB,EAChB,uBAAuB,EACvB,KAAK,cAAc,EACnB,kCAAkC,EAClC,aAAa,EACb,wBAAwB,GACzB,MAAM,mBAAmB,CAAC"}
|