@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,153 @@
|
|
|
1
|
+
import type { Context } from '../core/context.js';
|
|
2
|
+
import type { InputReader } from '../types/input-reader.js';
|
|
3
|
+
import type { PermissionDecision, PermissionPolicy } from '../types/permission.js';
|
|
4
|
+
import type { Tool } from '../types/tool.js';
|
|
5
|
+
export interface PermissionPolicyOptions {
|
|
6
|
+
trustFile: string;
|
|
7
|
+
yolo?: boolean | undefined;
|
|
8
|
+
/**
|
|
9
|
+
* @deprecated Kept for CLI compatibility only. YOLO now auto-approves
|
|
10
|
+
* every non-denied tool call, including destructive-classified calls.
|
|
11
|
+
*/
|
|
12
|
+
yoloDestructive?: boolean | undefined;
|
|
13
|
+
/** @deprecated Use `yoloDestructive`. */
|
|
14
|
+
forceAllYolo?: boolean | undefined;
|
|
15
|
+
/**
|
|
16
|
+
* @deprecated Destructive confirmation is disabled in YOLO mode.
|
|
17
|
+
* Kept for compatibility with older callers.
|
|
18
|
+
*/
|
|
19
|
+
confirmDestructive?: boolean | undefined;
|
|
20
|
+
promptDelegate?: (tool: Tool, input: unknown, suggestedPattern: string) => Promise<'yes' | 'no' | 'always' | 'deny'>;
|
|
21
|
+
inputReader?: InputReader | undefined;
|
|
22
|
+
}
|
|
23
|
+
export declare class DefaultPermissionPolicy implements PermissionPolicy {
|
|
24
|
+
private policy;
|
|
25
|
+
private loaded;
|
|
26
|
+
private readonly trustFile;
|
|
27
|
+
private yolo;
|
|
28
|
+
private yoloDestructive;
|
|
29
|
+
/** Deprecated compatibility flag; no longer gates YOLO calls. */
|
|
30
|
+
private confirmDestructive;
|
|
31
|
+
/**
|
|
32
|
+
* Session-scoped "soft deny" map. When the user presses 'n' (block once),
|
|
33
|
+
* the tool+pattern is added here. If the LLM retries in the same session,
|
|
34
|
+
* we return deny directly without asking again.
|
|
35
|
+
*
|
|
36
|
+
* Cleared on reload() since reload = fresh trust file snapshot.
|
|
37
|
+
*/
|
|
38
|
+
private sessionDenied;
|
|
39
|
+
/**
|
|
40
|
+
* Session-scoped one-shot "soft trust" map. When the user presses 'y', the
|
|
41
|
+
* tool+pattern is added here so the immediate confirm re-run can proceed.
|
|
42
|
+
* The entry is consumed on first use; future calls must ask again unless the
|
|
43
|
+
* user chose persistent trust.
|
|
44
|
+
*
|
|
45
|
+
* Cleared on reload().
|
|
46
|
+
*/
|
|
47
|
+
private sessionAllowed;
|
|
48
|
+
/**
|
|
49
|
+
* Interactive prompt delegate. When set, `evaluate()` calls it to get a
|
|
50
|
+
* user decision synchronously (CLI REPL path). When cleared (TUI / WebUI),
|
|
51
|
+
* `evaluate()` returns `confirm` so the caller can emit
|
|
52
|
+
* `tool.confirm_needed` for the UI layer to handle.
|
|
53
|
+
*
|
|
54
|
+
* Mutable so the host can switch from CLI-prompt to event-driven
|
|
55
|
+
* confirmation at runtime (e.g. when `--goal` forces TUI mode after
|
|
56
|
+
* the agent was already constructed).
|
|
57
|
+
*/
|
|
58
|
+
private promptDelegate?;
|
|
59
|
+
/** Pre-compiled wildcard patterns — rebuilt on reload for O(1) lookup. */
|
|
60
|
+
private wildcardEntries;
|
|
61
|
+
/**
|
|
62
|
+
* Evaluate-result cache. Keyed by `tool.name::subject` so repeated calls
|
|
63
|
+
* with the same tool+input skip namespace matching, subject computation,
|
|
64
|
+
* and pattern matching (matchAny).
|
|
65
|
+
*
|
|
66
|
+
* Cleared on any state change (reload, trust, deny, yolo toggle) because
|
|
67
|
+
* the result depends on the full policy state. The write-tool smart-bypass
|
|
68
|
+
* (step 7 in `evaluate()`) is not cached since `ctx.hasRead()` changes
|
|
69
|
+
* dynamically within a session.
|
|
70
|
+
*
|
|
71
|
+
* P3 #17 (before-release.md): capped at 500 entries via LRU eviction. An
|
|
72
|
+
* iteration that evaluates thousands of unique tool+subject combinations
|
|
73
|
+
* (e.g. repeated `tool-help` or `bash` with different commands) can grow
|
|
74
|
+
* the cache without bound. 500 is far more than any single iteration needs;
|
|
75
|
+
* the LRU evicts the least-recently-used entries first.
|
|
76
|
+
*/
|
|
77
|
+
private _evalCache;
|
|
78
|
+
constructor(opts: PermissionPolicyOptions);
|
|
79
|
+
/**
|
|
80
|
+
* Replace (or clear) the interactive prompt delegate at runtime.
|
|
81
|
+
* Used by the CLI to switch from inline prompts (REPL) to event-driven
|
|
82
|
+
* confirmation (TUI) when the run mode is determined after the policy
|
|
83
|
+
* was constructed (e.g. `--goal` auto-flipping to TUI).
|
|
84
|
+
*/
|
|
85
|
+
setPromptDelegate(delegate: PermissionPolicyOptions['promptDelegate']): void;
|
|
86
|
+
/** Toggle YOLO (auto-approve) mode at runtime. */
|
|
87
|
+
setYolo(enabled: boolean): void;
|
|
88
|
+
/** Check whether YOLO mode is currently active. */
|
|
89
|
+
getYolo(): boolean;
|
|
90
|
+
/** Toggle the destructive YOLO override at runtime. */
|
|
91
|
+
setYoloDestructive(enabled: boolean): void;
|
|
92
|
+
/** Check whether the destructive YOLO override is active. */
|
|
93
|
+
getYoloDestructive(): boolean;
|
|
94
|
+
/** Toggle deprecated destructive confirmation compatibility flag. */
|
|
95
|
+
setConfirmDestructive(enabled: boolean): void;
|
|
96
|
+
/** Check deprecated destructive confirmation compatibility flag. */
|
|
97
|
+
getConfirmDestructive(): boolean;
|
|
98
|
+
reload(): Promise<void>;
|
|
99
|
+
evaluate(tool: Tool, input: unknown, ctx: Context): Promise<PermissionDecision>;
|
|
100
|
+
private isSensitiveReadCall;
|
|
101
|
+
trust(rule: {
|
|
102
|
+
tool: string;
|
|
103
|
+
pattern: string;
|
|
104
|
+
}): Promise<void>;
|
|
105
|
+
/** Persist a deny rule — this tool+pattern pair is permanently blocked. */
|
|
106
|
+
deny(rule: {
|
|
107
|
+
tool: string;
|
|
108
|
+
pattern: string;
|
|
109
|
+
}): Promise<void>;
|
|
110
|
+
/** Block this tool+pattern for the rest of this session (no trust file). */
|
|
111
|
+
denyOnce(rule: {
|
|
112
|
+
tool: string;
|
|
113
|
+
pattern: string;
|
|
114
|
+
}): void;
|
|
115
|
+
/** Auto-approve this tool+pattern once (no trust file). */
|
|
116
|
+
allowOnce(rule: {
|
|
117
|
+
tool: string;
|
|
118
|
+
pattern: string;
|
|
119
|
+
}): void;
|
|
120
|
+
private findNamespaceEntry;
|
|
121
|
+
}
|
|
122
|
+
/**
|
|
123
|
+
* Auto-approving PermissionPolicy used for subagents. Subagents run
|
|
124
|
+
* non-interactively under a director — they cannot answer permission
|
|
125
|
+
* prompts, so a non-YOLO policy on the leader would silently hang the
|
|
126
|
+
* delegated run on the first sensitive tool call. The user already
|
|
127
|
+
* authorized the delegation when they invoked the leader; subagents
|
|
128
|
+
* inherit that authorization automatically.
|
|
129
|
+
*
|
|
130
|
+
* Tool defaults of `permission: 'deny'` are still honored (this is a
|
|
131
|
+
* subagent capability override, not a deny-bypass).
|
|
132
|
+
*
|
|
133
|
+
* 2026-06+: Primary decision is now based on declared `Tool.capabilities`
|
|
134
|
+
* (capability allowlist / denylist model). The legacy name-based DENY set
|
|
135
|
+
* is kept only for backward compatibility with tools that have not yet
|
|
136
|
+
* declared capabilities.
|
|
137
|
+
*
|
|
138
|
+
* 2026-06-13+: Switched to allowlist-by-default. Only tools with explicitly
|
|
139
|
+
* allowed capabilities are auto-approved. Everything else is denied.
|
|
140
|
+
* Default allowed: fs.read, net.outbound (read-only, safe operations).
|
|
141
|
+
*/
|
|
142
|
+
export declare class AutoApprovePermissionPolicy implements PermissionPolicy {
|
|
143
|
+
private readonly allowedCapabilities;
|
|
144
|
+
constructor(allowedCapabilities?: readonly string[]);
|
|
145
|
+
private static isMcpTool;
|
|
146
|
+
evaluate(tool: Tool): Promise<PermissionDecision>;
|
|
147
|
+
trust(): Promise<void>;
|
|
148
|
+
deny(): Promise<void>;
|
|
149
|
+
denyOnce(): void;
|
|
150
|
+
allowOnce(): void;
|
|
151
|
+
reload(): Promise<void>;
|
|
152
|
+
}
|
|
153
|
+
//# sourceMappingURL=permission-policy.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"permission-policy.d.ts","sourceRoot":"","sources":["../../src/security/permission-policy.ts"],"names":[],"mappings":"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"}
|
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
import type { SecretScrubber } from '../types/secret-scrubber.js';
|
|
2
|
+
export declare class DefaultSecretScrubber implements SecretScrubber {
|
|
3
|
+
scrub(text: string): string;
|
|
4
|
+
private scrubOne;
|
|
5
|
+
/**
|
|
6
|
+
* Recursively scrub every string value in an object/array graph. Secrets can
|
|
7
|
+
* appear under any key — a URL query param, an `authorization` header, an
|
|
8
|
+
* arbitrarily-named nested field — so we don't gate recursion on key names.
|
|
9
|
+
* The per-string `scrub()` fast-path (anchor pre-scan) keeps this cheap: any
|
|
10
|
+
* value without a credential anchor returns immediately without regex work.
|
|
11
|
+
*/
|
|
12
|
+
scrubObject<T>(obj: T): T;
|
|
13
|
+
}
|
|
14
|
+
//# sourceMappingURL=secret-scrubber.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"secret-scrubber.d.ts","sourceRoot":"","sources":["../../src/security/secret-scrubber.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,cAAc,EAAE,MAAM,6BAA6B,CAAC;AA4LlE,qBAAa,qBAAsB,YAAW,cAAc;IAC1D,KAAK,CAAC,IAAI,EAAE,MAAM,GAAG,MAAM,CA6C1B;IAED,OAAO,CAAC,QAAQ;IA8BhB;;;;;;OAMG;IACH,WAAW,CAAC,CAAC,EAAE,GAAG,EAAE,CAAC,GAAG,CAAC,CAexB;CACF"}
|
|
@@ -0,0 +1,87 @@
|
|
|
1
|
+
import type { Logger } from '../types/logger.js';
|
|
2
|
+
import type { RotatableSecretVault, SecretVault } from '../types/secret-vault.js';
|
|
3
|
+
export interface SecretVaultOptions {
|
|
4
|
+
/** Absolute path to the key file. Created with mode 0o600 if missing. */
|
|
5
|
+
keyFile: string;
|
|
6
|
+
}
|
|
7
|
+
/**
|
|
8
|
+
* Default vault: AES-256-GCM with a key stored at `keyFile` (mode 0o600).
|
|
9
|
+
* The key is loaded lazily on first encrypt/decrypt; if it does not exist,
|
|
10
|
+
* a fresh one is generated. Decryption of plaintext values is a no-op so
|
|
11
|
+
* legacy configs continue to work.
|
|
12
|
+
*
|
|
13
|
+
* Key file format:
|
|
14
|
+
* - Legacy (v1): exactly 32 raw bytes
|
|
15
|
+
* - Versioned (v2+): 4-byte magic `WSKV` + 1-byte version + 32-byte key (37 bytes)
|
|
16
|
+
*
|
|
17
|
+
* Encrypted value format: `enc:v<N>:<iv>:<tag>:<ciphertext>` where N is the
|
|
18
|
+
* key version. After rotation, encrypt() emits the new version prefix.
|
|
19
|
+
*/
|
|
20
|
+
export declare class DefaultSecretVault implements RotatableSecretVault {
|
|
21
|
+
private readonly keyFile;
|
|
22
|
+
private key?;
|
|
23
|
+
private _keyVersion;
|
|
24
|
+
constructor(opts: SecretVaultOptions);
|
|
25
|
+
/** Current key version. Starts at 1; incremented by rotateKey(). */
|
|
26
|
+
get keyVersion(): number;
|
|
27
|
+
isEncrypted(value: string): boolean;
|
|
28
|
+
encrypt(plaintext: string): string;
|
|
29
|
+
decrypt(value: string): string;
|
|
30
|
+
/**
|
|
31
|
+
* Generate a new encryption key, write it to disk, and increment the key version.
|
|
32
|
+
* After rotation, encrypt() emits the new version prefix (e.g. enc:v2:).
|
|
33
|
+
* The caller must re-encrypt existing config values (see rotateConfigKeys()).
|
|
34
|
+
*/
|
|
35
|
+
rotateKey(): {
|
|
36
|
+
oldVersion: number;
|
|
37
|
+
newVersion: number;
|
|
38
|
+
};
|
|
39
|
+
/**
|
|
40
|
+
* If WRONGSTACK_VAULT_PASSPHRASE is set but the key on disk is still stored
|
|
41
|
+
* unwrapped (legacy v1 / versioned v2), re-write it in passphrase-wrapped (v3)
|
|
42
|
+
* form. The data key is preserved, so all existing ciphertext keeps
|
|
43
|
+
* decrypting. Best-effort: a write failure leaves the working unwrapped file
|
|
44
|
+
* in place and is not fatal to load.
|
|
45
|
+
*/
|
|
46
|
+
private migrateToWrappedIfPassphrase;
|
|
47
|
+
private loadOrCreateKey;
|
|
48
|
+
}
|
|
49
|
+
export { decryptConfigSecrets, encryptConfigSecrets, isSecretField } from './config-secrets.js';
|
|
50
|
+
/**
|
|
51
|
+
* Re-write `~/.wrongstack/config.json` (or any path) with all secret-bearing
|
|
52
|
+
* fields encrypted. Used by the `wstack auth` subcommand.
|
|
53
|
+
*/
|
|
54
|
+
export declare function rewriteConfigEncrypted(configPath: string, vault: SecretVault, patch?: Record<string, unknown>): Promise<void>;
|
|
55
|
+
/**
|
|
56
|
+
* Scan a config file on disk for plaintext secret-bearing fields and
|
|
57
|
+
* rewrite the file with them encrypted in place. Returns a count of how
|
|
58
|
+
* many fields were migrated. Idempotent — calling on a fully-encrypted
|
|
59
|
+
* file is a no-op and writes nothing. Used by the CLI on every boot so
|
|
60
|
+
* users who had plaintext keys before the vault landed are upgraded
|
|
61
|
+
* transparently.
|
|
62
|
+
*/
|
|
63
|
+
export declare function migratePlaintextSecrets(configPath: string, vault: SecretVault, logger?: Pick<Logger, 'warn'>): Promise<{
|
|
64
|
+
migrated: number;
|
|
65
|
+
file: string;
|
|
66
|
+
}>;
|
|
67
|
+
/**
|
|
68
|
+
* Rotate the vault's encryption key and re-encrypt all secret-bearing
|
|
69
|
+
* fields in a config file. This is the atomic key rotation operation:
|
|
70
|
+
*
|
|
71
|
+
* 1. Read the config file
|
|
72
|
+
* 2. Decrypt all encrypted values with the old key
|
|
73
|
+
* 3. Generate a new key (vault.rotateKey())
|
|
74
|
+
* 4. Re-encrypt all values with the new key (new version prefix)
|
|
75
|
+
* 5. Write the config file atomically
|
|
76
|
+
*
|
|
77
|
+
* Returns the number of fields re-encrypted and the version transition.
|
|
78
|
+
* If the config file doesn't exist or has no encrypted fields, returns
|
|
79
|
+
* { rotated: 0 } without modifying the key.
|
|
80
|
+
*/
|
|
81
|
+
export declare function rotateConfigKeys(configPath: string, vault: RotatableSecretVault, logger?: Pick<Logger, 'warn' | 'info'>): Promise<{
|
|
82
|
+
rotated: number;
|
|
83
|
+
oldVersion: number;
|
|
84
|
+
newVersion: number;
|
|
85
|
+
file: string;
|
|
86
|
+
}>;
|
|
87
|
+
//# sourceMappingURL=secret-vault.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"secret-vault.d.ts","sourceRoot":"","sources":["../../src/security/secret-vault.ts"],"names":[],"mappings":"AAIA,OAAO,KAAK,EAAE,MAAM,EAAE,MAAM,oBAAoB,CAAC;AACjD,OAAO,KAAK,EAAE,oBAAoB,EAAE,WAAW,EAAE,MAAM,0BAA0B,CAAC;AASlF,MAAM,WAAW,kBAAkB;IACjC,yEAAyE;IACzE,OAAO,EAAE,MAAM,CAAC;CACjB;AA+ID;;;;;;;;;;;;GAYG;AACH,qBAAa,kBAAmB,YAAW,oBAAoB;IAC7D,OAAO,CAAC,QAAQ,CAAC,OAAO,CAAS;IACjC,OAAO,CAAC,GAAG,CAAC,CAAqB;IACjC,OAAO,CAAC,WAAW,CAAa;IAEhC,YAAY,IAAI,EAAE,kBAAkB,EAEnC;IAED,oEAAoE;IACpE,IAAI,UAAU,IAAI,MAAM,CAIvB;IAED,WAAW,CAAC,KAAK,EAAE,MAAM,GAAG,OAAO,CAElC;IAED,OAAO,CAAC,SAAS,EAAE,MAAM,GAAG,MAAM,CASjC;IAED,OAAO,CAAC,KAAK,EAAE,MAAM,GAAG,MAAM,CAuC7B;IAED;;;;OAIG;IACH,SAAS,IAAI;QAAE,UAAU,EAAE,MAAM,CAAC;QAAC,UAAU,EAAE,MAAM,CAAA;KAAE,CAwBtD;IAED;;;;;;OAMG;IACH,OAAO,CAAC,4BAA4B;IAapC,OAAO,CAAC,eAAe;CAoIxB;AAMD,OAAO,EAAE,oBAAoB,EAAE,oBAAoB,EAAE,aAAa,EAAE,MAAM,qBAAqB,CAAC;AAEhG;;;GAGG;AACH,wBAAsB,sBAAsB,CAC1C,UAAU,EAAE,MAAM,EAClB,KAAK,EAAE,WAAW,EAClB,KAAK,CAAC,EAAE,MAAM,CAAC,MAAM,EAAE,OAAO,CAAC,GAC9B,OAAO,CAAC,IAAI,CAAC,CAcf;AAED;;;;;;;GAOG;AACH,wBAAsB,uBAAuB,CAC3C,UAAU,EAAE,MAAM,EAClB,KAAK,EAAE,WAAW,EAClB,MAAM,CAAC,EAAE,IAAI,CAAC,MAAM,EAAE,MAAM,CAAC,GAC5B,OAAO,CAAC;IAAE,QAAQ,EAAE,MAAM,CAAC;IAAC,IAAI,EAAE,MAAM,CAAA;CAAE,CAAC,CAuB7C;AAED;;;;;;;;;;;;;GAaG;AACH,wBAAsB,gBAAgB,CACpC,UAAU,EAAE,MAAM,EAClB,KAAK,EAAE,oBAAoB,EAC3B,MAAM,CAAC,EAAE,IAAI,CAAC,MAAM,EAAE,MAAM,GAAG,MAAM,CAAC,GACrC,OAAO,CAAC;IAAE,OAAO,EAAE,MAAM,CAAC;IAAC,UAAU,EAAE,MAAM,CAAC;IAAC,UAAU,EAAE,MAAM,CAAC;IAAC,IAAI,EAAE,MAAM,CAAA;CAAE,CAAC,CA2DpF"}
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
export declare function getInputString(input: unknown, key: string): string | undefined;
|
|
2
|
+
export declare function pathLooksInsideProject(rawPath: string, projectRoot: string | undefined): boolean;
|
|
3
|
+
/**
|
|
4
|
+
* Best-effort detection of a *catastrophic* shell command — system-/disk-/
|
|
5
|
+
* home-wide, effectively irreversible destruction. `projectRoot` is accepted
|
|
6
|
+
* for signature stability but is intentionally unused: catastrophic targets are
|
|
7
|
+
* absolute (filesystem root, a drive root, the home directory, a system
|
|
8
|
+
* directory) and so are independent of where the project lives.
|
|
9
|
+
*/
|
|
10
|
+
export declare function isClearlyDestructiveBashCommand(command: string, projectRoot: string | undefined): boolean;
|
|
11
|
+
//# sourceMappingURL=yolo-risk.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"yolo-risk.d.ts","sourceRoot":"","sources":["../../src/security/yolo-risk.ts"],"names":[],"mappings":"AA+CA,wBAAgB,cAAc,CAAC,KAAK,EAAE,OAAO,EAAE,GAAG,EAAE,MAAM,GAAG,MAAM,GAAG,SAAS,CAI9E;AAED,wBAAgB,sBAAsB,CAAC,OAAO,EAAE,MAAM,EAAE,WAAW,EAAE,MAAM,GAAG,SAAS,GAAG,OAAO,CAShG;AAsND;;;;;;GAMG;AACH,wBAAgB,+BAA+B,CAC7C,OAAO,EAAE,MAAM,EACf,WAAW,EAAE,MAAM,GAAG,SAAS,GAC9B,OAAO,CAWT"}
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
/** Live status of a single agent within a session. */
|
|
2
|
-
type AgentLiveStatus = 'idle' | 'running' | 'streaming' | 'waiting_user' | 'error';
|
|
3
|
-
interface AgentEntry {
|
|
2
|
+
export type AgentLiveStatus = 'idle' | 'running' | 'streaming' | 'waiting_user' | 'error';
|
|
3
|
+
export interface AgentEntry {
|
|
4
4
|
/** Unique agent id (ULID or UUID). */
|
|
5
5
|
id: string;
|
|
6
6
|
/** Human-readable label (e.g. "leader", "bug-hunter #1"). */
|
|
@@ -33,8 +33,8 @@ interface AgentEntry {
|
|
|
33
33
|
/** UTC ISO timestamp of last activity. */
|
|
34
34
|
lastActivityAt: string;
|
|
35
35
|
}
|
|
36
|
-
type SessionLiveStatus = 'active' | 'idle' | 'closing' | 'stale';
|
|
37
|
-
interface SessionRegistryEntry {
|
|
36
|
+
export type SessionLiveStatus = 'active' | 'idle' | 'closing' | 'stale' | 'lost';
|
|
37
|
+
export interface SessionRegistryEntry {
|
|
38
38
|
sessionId: string;
|
|
39
39
|
projectSlug: string;
|
|
40
40
|
projectRoot: string;
|
|
@@ -58,7 +58,7 @@ interface SessionRegistryEntry {
|
|
|
58
58
|
agentCount: number;
|
|
59
59
|
agents: AgentEntry[];
|
|
60
60
|
}
|
|
61
|
-
declare class SessionRegistry {
|
|
61
|
+
export declare class SessionRegistry {
|
|
62
62
|
private readonly filePath;
|
|
63
63
|
private heartbeatTimer;
|
|
64
64
|
private currentSessionId;
|
|
@@ -123,7 +123,6 @@ declare class SessionRegistry {
|
|
|
123
123
|
private writeAtomicFile;
|
|
124
124
|
private pruneStaleTempFiles;
|
|
125
125
|
}
|
|
126
|
-
declare function getSessionRegistry(globalRoot?: string): SessionRegistry;
|
|
127
|
-
declare function hasSessionRegistry(): boolean;
|
|
128
|
-
|
|
129
|
-
export { type AgentEntry as A, type SessionLiveStatus as S, type AgentLiveStatus as a, SessionRegistry as b, type SessionRegistryEntry as c, getSessionRegistry as g, hasSessionRegistry as h };
|
|
126
|
+
export declare function getSessionRegistry(globalRoot?: string): SessionRegistry;
|
|
127
|
+
export declare function hasSessionRegistry(): boolean;
|
|
128
|
+
//# sourceMappingURL=session-registry.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"session-registry.d.ts","sourceRoot":"","sources":["../src/session-registry.ts"],"names":[],"mappings":"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"}
|
|
@@ -0,0 +1,59 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Well-known foreign coding-agent skill directories. All follow the
|
|
3
|
+
* agentskills.io `SKILL.md` format, so the same loader reads them — this just
|
|
4
|
+
* tells it WHERE each agent keeps them.
|
|
5
|
+
*
|
|
6
|
+
* Claude is handled separately by the loader (`claude-project` / `claude-user`
|
|
7
|
+
* sources); this list covers the OTHER agents. Every tool here stores skills
|
|
8
|
+
* under `~/.<tool>/skills` (+ `<project>/.<tool>/skills`).
|
|
9
|
+
*
|
|
10
|
+
* Dirs that don't exist are skipped gracefully, so listing many is cheap.
|
|
11
|
+
*
|
|
12
|
+
* NOTE: Cursor previously used a non-standard `skills-cursor` subdir. As of the
|
|
13
|
+
* 2026-07 alignment with the broader skills.sh / antfu-skills-cli / vercel-labs
|
|
14
|
+
* ecosystem, Cursor uses the standard `skills` subdir like everyone else.
|
|
15
|
+
* (`skills-cursor` was WrongStack-only and meant real Cursor skills were never
|
|
16
|
+
* discovered — see docs/skills.md.)
|
|
17
|
+
*/
|
|
18
|
+
export interface ForeignSkillTool {
|
|
19
|
+
/** Tool id — also the directory name segment (`~/.<id>/…`). */
|
|
20
|
+
id: string;
|
|
21
|
+
/** Skills subdirectory name under `~/.<id>/`. */
|
|
22
|
+
subdir: string;
|
|
23
|
+
}
|
|
24
|
+
export declare const FOREIGN_SKILL_TOOLS: readonly ForeignSkillTool[];
|
|
25
|
+
/** Result of resolving a `foreignSources` config option. */
|
|
26
|
+
export interface ResolvedForeignTools {
|
|
27
|
+
/** Tool ids that will be scanned (subset of {@link FOREIGN_SKILL_TOOLS}). */
|
|
28
|
+
ids: string[];
|
|
29
|
+
/** Tool ids the user asked for that aren't known — likely typos (e.g. `corser`). */
|
|
30
|
+
unknownIds: string[];
|
|
31
|
+
}
|
|
32
|
+
/**
|
|
33
|
+
* Resolve the `config.skills.foreignSources` option into the list of tool ids
|
|
34
|
+
* to scan. Kept for backward compatibility (returns only `ids`).
|
|
35
|
+
* - `false` → none
|
|
36
|
+
* - `string[]` → only those ids (unknown ids silently dropped — see
|
|
37
|
+
* {@link resolveForeignToolIdsWithWarnings} to surface them)
|
|
38
|
+
* - `true` / `undefined` → all well-known tools
|
|
39
|
+
*/
|
|
40
|
+
export declare function resolveForeignToolIds(opt: boolean | string[] | undefined): string[];
|
|
41
|
+
/**
|
|
42
|
+
* Like {@link resolveForeignToolIds}, but also returns tool ids the caller asked
|
|
43
|
+
* for that don't match any known agent. Callers that want to warn the user
|
|
44
|
+
* about a likely typo (e.g. `foreignSources: ["corser"]`) should prefer this.
|
|
45
|
+
*
|
|
46
|
+
* - `false` → none
|
|
47
|
+
* - `string[]` → known ids included, unknown ones returned in `unknownIds`
|
|
48
|
+
* - `true` / `undefined` → all well-known tools (no unknowns possible)
|
|
49
|
+
*/
|
|
50
|
+
export declare function resolveForeignToolIdsWithWarnings(opt: boolean | string[] | undefined): ResolvedForeignTools;
|
|
51
|
+
/**
|
|
52
|
+
* Security tier bucket for a registry skill's `securityScore` (0–100).
|
|
53
|
+
* Mirrors the ags (agentskill-sh/ags) thresholds: skills below 30 need
|
|
54
|
+
* explicit confirmation before install.
|
|
55
|
+
*/
|
|
56
|
+
export type SkillSecurityTier = 'low' | 'medium' | 'high';
|
|
57
|
+
/** Classify a 0–100 security score into a tier. 0/undefined → unknown → `low`. */
|
|
58
|
+
export declare function securityScoreToTier(score: number | undefined | null): SkillSecurityTier;
|
|
59
|
+
//# sourceMappingURL=foreign-sources.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"foreign-sources.d.ts","sourceRoot":"","sources":["../../src/skills/foreign-sources.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;;;GAgBG;AACH,MAAM,WAAW,gBAAgB;IAC/B,+DAA+D;IAC/D,EAAE,EAAE,MAAM,CAAC;IACX,iDAAiD;IACjD,MAAM,EAAE,MAAM,CAAC;CAChB;AAED,eAAO,MAAM,mBAAmB,EAAE,SAAS,gBAAgB,EAQ1D,CAAC;AAKF,4DAA4D;AAC5D,MAAM,WAAW,oBAAoB;IACnC,6EAA6E;IAC7E,GAAG,EAAE,MAAM,EAAE,CAAC;IACd,oFAAoF;IACpF,UAAU,EAAE,MAAM,EAAE,CAAC;CACtB;AAED;;;;;;;GAOG;AACH,wBAAgB,qBAAqB,CAAC,GAAG,EAAE,OAAO,GAAG,MAAM,EAAE,GAAG,SAAS,GAAG,MAAM,EAAE,CAEnF;AAED;;;;;;;;GAQG;AACH,wBAAgB,iCAAiC,CAC/C,GAAG,EAAE,OAAO,GAAG,MAAM,EAAE,GAAG,SAAS,GAClC,oBAAoB,CAYtB;AAED;;;;GAIG;AACH,MAAM,MAAM,iBAAiB,GAAG,KAAK,GAAG,QAAQ,GAAG,MAAM,CAAC;AAE1D,kFAAkF;AAClF,wBAAgB,mBAAmB,CAAC,KAAK,EAAE,MAAM,GAAG,SAAS,GAAG,IAAI,GAAG,iBAAiB,CAKvF"}
|
|
@@ -0,0 +1,44 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Shared SKILL.md frontmatter parser + agentskills.io name validation.
|
|
3
|
+
*
|
|
4
|
+
* The SKILL.md format (https://agentskills.io/specification) is YAML
|
|
5
|
+
* frontmatter between `---` markers followed by a Markdown body. This parser is
|
|
6
|
+
* intentionally minimal — it handles the fields skills actually use, with YAML
|
|
7
|
+
* block scalars (`|` / `>`) for multi-line values and an indented map for
|
|
8
|
+
* `metadata`. It is NOT a general YAML parser; skill files are trusted markdown.
|
|
9
|
+
*/
|
|
10
|
+
export interface ParsedSkillFrontmatter {
|
|
11
|
+
name?: string | undefined;
|
|
12
|
+
description?: string | undefined;
|
|
13
|
+
/** WrongStack extension; informational only. */
|
|
14
|
+
version?: string | undefined;
|
|
15
|
+
license?: string | undefined;
|
|
16
|
+
compatibility?: string | undefined;
|
|
17
|
+
metadata?: Record<string, string> | undefined;
|
|
18
|
+
/** `allowed-tools` (spec, experimental) → split on whitespace. */
|
|
19
|
+
allowedTools?: string[] | undefined;
|
|
20
|
+
}
|
|
21
|
+
/**
|
|
22
|
+
* Parse the YAML frontmatter block from a raw SKILL.md file. Returns `{}` when
|
|
23
|
+
* there is no (or unclosed) frontmatter — callers treat that as "skip".
|
|
24
|
+
*
|
|
25
|
+
* Line endings are normalized first: CRLF (and lone CR) would otherwise leave a
|
|
26
|
+
* trailing `\r` on each line, and since `.` / `$` don't match `\r`, the
|
|
27
|
+
* `key: value` regex would fail on every line and silently drop the whole
|
|
28
|
+
* frontmatter. Real skill files are frequently CRLF (Windows / some editors).
|
|
29
|
+
*/
|
|
30
|
+
export declare function parseSkillFrontmatter(raw: string): ParsedSkillFrontmatter;
|
|
31
|
+
/** Strip leading YAML frontmatter (`---\n…\n---`) from a SKILL.md file. */
|
|
32
|
+
export declare function stripFrontmatter(raw: string): string;
|
|
33
|
+
/** True when `name` matches the agentskills.io name format (chars + length only). */
|
|
34
|
+
export declare function isValidSkillNameFormat(name: string): boolean;
|
|
35
|
+
/**
|
|
36
|
+
* Validate a skill `name` against the agentskills.io spec:
|
|
37
|
+
* 1-64 chars; lowercase letters, digits, and single hyphens only; no
|
|
38
|
+
* leading/trailing/consecutive hyphens. Pass the parent directory name to also
|
|
39
|
+
* enforce the "name must match the parent directory" rule.
|
|
40
|
+
*
|
|
41
|
+
* Returns a list of human-readable violations (empty = valid).
|
|
42
|
+
*/
|
|
43
|
+
export declare function validateSkillName(name: string, parentDirName?: string): string[];
|
|
44
|
+
//# sourceMappingURL=frontmatter.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"frontmatter.d.ts","sourceRoot":"","sources":["../../src/skills/frontmatter.ts"],"names":[],"mappings":"AAAA;;;;;;;;GAQG;AACH,MAAM,WAAW,sBAAsB;IACrC,IAAI,CAAC,EAAE,MAAM,GAAG,SAAS,CAAC;IAC1B,WAAW,CAAC,EAAE,MAAM,GAAG,SAAS,CAAC;IACjC,gDAAgD;IAChD,OAAO,CAAC,EAAE,MAAM,GAAG,SAAS,CAAC;IAC7B,OAAO,CAAC,EAAE,MAAM,GAAG,SAAS,CAAC;IAC7B,aAAa,CAAC,EAAE,MAAM,GAAG,SAAS,CAAC;IACnC,QAAQ,CAAC,EAAE,MAAM,CAAC,MAAM,EAAE,MAAM,CAAC,GAAG,SAAS,CAAC;IAC9C,kEAAkE;IAClE,YAAY,CAAC,EAAE,MAAM,EAAE,GAAG,SAAS,CAAC;CACrC;AAKD;;;;;;;;GAQG;AACH,wBAAgB,qBAAqB,CAAC,GAAG,EAAE,MAAM,GAAG,sBAAsB,CAMzE;AAED,2EAA2E;AAC3E,wBAAgB,gBAAgB,CAAC,GAAG,EAAE,MAAM,GAAG,MAAM,CAQpD;AAqFD,qFAAqF;AACrF,wBAAgB,sBAAsB,CAAC,IAAI,EAAE,MAAM,GAAG,OAAO,CAE5D;AAED;;;;;;;GAOG;AACH,wBAAgB,iBAAiB,CAAC,IAAI,EAAE,MAAM,EAAE,aAAa,CAAC,EAAE,MAAM,GAAG,MAAM,EAAE,CAiBhF"}
|
|
@@ -0,0 +1,38 @@
|
|
|
1
|
+
export interface ParsedRef {
|
|
2
|
+
owner: string;
|
|
3
|
+
repo: string;
|
|
4
|
+
ref: string;
|
|
5
|
+
}
|
|
6
|
+
/**
|
|
7
|
+
* Parse a skill reference string.
|
|
8
|
+
* Formats: `user/repo` (default ref: main), `user/repo@ref`
|
|
9
|
+
*/
|
|
10
|
+
export declare function parseSkillRef(input: string): ParsedRef;
|
|
11
|
+
export interface DownloadResult {
|
|
12
|
+
/** Temp directory containing the extracted repo. Caller must clean up. */
|
|
13
|
+
tempDir: string;
|
|
14
|
+
}
|
|
15
|
+
/**
|
|
16
|
+
* Resolve a GitHub auth token, if one is configured.
|
|
17
|
+
*
|
|
18
|
+
* Order: `WRONGSTACK_GITHUB_TOKEN` (WrongStack-specific override) → `GITHUB_TOKEN`
|
|
19
|
+
* → `GH_TOKEN` (the gh CLI convention). Returns `undefined` when none are set,
|
|
20
|
+
* which means only public repos can be fetched.
|
|
21
|
+
*
|
|
22
|
+
* Exposed for testing and for the installer's user-facing messaging (so it can
|
|
23
|
+
* say "set GITHUB_TOKEN to install private repos" rather than just "403").
|
|
24
|
+
*/
|
|
25
|
+
export declare function resolveGitHubToken(env?: NodeJS.ProcessEnv): string | undefined;
|
|
26
|
+
/**
|
|
27
|
+
* Download and extract a GitHub repository tarball.
|
|
28
|
+
*
|
|
29
|
+
* Auth: reads `WRONGSTACK_GITHUB_TOKEN` / `GITHUB_TOKEN` / `GH_TOKEN` (in that
|
|
30
|
+
* order). Without a token only public repos work; with one, private repos the
|
|
31
|
+
* token can read also work, and the API rate limit is the authenticated
|
|
32
|
+
* (much higher) limit instead of the anonymous 60/hour.
|
|
33
|
+
*
|
|
34
|
+
* Returns the path to a temp directory with the extracted contents. The caller
|
|
35
|
+
* must remove it (the installer does this in a `finally`).
|
|
36
|
+
*/
|
|
37
|
+
export declare function downloadGitHubTarball(parsed: ParsedRef): Promise<DownloadResult>;
|
|
38
|
+
//# sourceMappingURL=github-fetcher.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"github-fetcher.d.ts","sourceRoot":"","sources":["../../src/skills/github-fetcher.ts"],"names":[],"mappings":"AAUA,MAAM,WAAW,SAAS;IACxB,KAAK,EAAE,MAAM,CAAC;IACd,IAAI,EAAE,MAAM,CAAC;IACb,GAAG,EAAE,MAAM,CAAC;CACb;AAED;;;GAGG;AACH,wBAAgB,aAAa,CAAC,KAAK,EAAE,MAAM,GAAG,SAAS,CAyBtD;AAED,MAAM,WAAW,cAAc;IAC7B,0EAA0E;IAC1E,OAAO,EAAE,MAAM,CAAC;CACjB;AAED;;;;;;;;;GASG;AACH,wBAAgB,kBAAkB,CAAC,GAAG,GAAE,MAAM,CAAC,UAAwB,GAAG,MAAM,GAAG,SAAS,CAK3F;AAED;;;;;;;;;;GAUG;AACH,wBAAsB,qBAAqB,CAAC,MAAM,EAAE,SAAS,GAAG,OAAO,CAAC,cAAc,CAAC,CAuHtF"}
|