@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 @@
|
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../src/utils/index.ts"],"names":[],"mappings":"AAAA,cAAc,mBAAmB,CAAC;AAClC,cAAc,mBAAmB,CAAC;AAClC,cAAc,gBAAgB,CAAC;AAC/B,cAAc,YAAY,CAAC;AAC3B,cAAc,kBAAkB,CAAC;AACjC,OAAO,EACL,0BAA0B,EAC1B,4BAA4B,EAC5B,0BAA0B,EAC1B,yBAAyB,EACzB,+BAA+B,EAC/B,KAAK,wBAAwB,EAC7B,KAAK,6BAA6B,EAClC,2BAA2B,EAC3B,6BAA6B,EAC7B,wBAAwB,EACxB,wBAAwB,EACxB,oBAAoB,EACpB,4BAA4B,GAC7B,MAAM,uBAAuB,CAAC;AAC/B,OAAO,EACL,KAAK,gBAAgB,EACrB,SAAS,EACT,oBAAoB,EACpB,gBAAgB,GACjB,MAAM,iBAAiB,CAAC;AACzB,cAAc,WAAW,CAAC;AAC1B,YAAY,EAAE,cAAc,EAAE,sBAAsB,EAAE,MAAM,uBAAuB,CAAC;AACpF,OAAO,EAAE,cAAc,EAAE,MAAM,YAAY,CAAC;AAC5C,cAAc,qBAAqB,CAAC;AACpC,OAAO,EAAE,UAAU,EAAE,MAAM,kBAAkB,CAAC;AAC9C,cAAc,iBAAiB,CAAC;AAChC,OAAO,EAAE,oBAAoB,EAAE,UAAU,EAAE,aAAa,EAAE,aAAa,EAAE,MAAM,eAAe,CAAC;AAC/F,OAAO,EAAE,qBAAqB,EAAE,MAAM,kBAAkB,CAAC;AACzD,OAAO,EACL,KAAK,cAAc,EACnB,KAAK,eAAe,EACpB,KAAK,gBAAgB,EACrB,mBAAmB,EACnB,qBAAqB,GACtB,MAAM,2BAA2B,CAAC;AACnC,OAAO,EAAE,oBAAoB,EAAE,MAAM,0BAA0B,CAAC;AAChE,OAAO,EAAE,kBAAkB,EAAE,MAAM,2BAA2B,CAAC;AAC/D,OAAO,EACL,KAAK,mBAAmB,EACxB,KAAK,mBAAmB,EACxB,sBAAsB,GACvB,MAAM,yBAAyB,CAAC;AACjC,cAAc,wBAAwB,CAAC;AACvC,OAAO,EAAE,KAAK,WAAW,EAAE,KAAK,aAAa,EAAE,gBAAgB,EAAE,MAAM,kBAAkB,CAAC;AAC1F,cAAc,gBAAgB,CAAC;AAC/B,OAAO,EAAE,iBAAiB,EAAE,MAAM,0BAA0B,CAAC;AAC7D,OAAO,EAAE,OAAO,EAAE,MAAM,WAAW,CAAC;AACpC,OAAO,EAAE,IAAI,EAAE,MAAM,EAAE,MAAM,WAAW,CAAC;AACzC,cAAc,YAAY,CAAC;AAC3B,cAAc,aAAa,CAAC;AAC5B,cAAc,kBAAkB,CAAC;AACjC,cAAc,WAAW,CAAC;AAC1B,cAAc,mBAAmB,CAAC;AAClC,cAAc,mBAAmB,CAAC;AAClC,OAAO,EACL,oBAAoB,EACpB,qBAAqB,EACrB,qBAAqB,EACrB,+BAA+B,EAC/B,kBAAkB,EAClB,qBAAqB,EACrB,uBAAuB,EACvB,wBAAwB,EACxB,mBAAmB,EACnB,KAAK,qBAAqB,EAC1B,iBAAiB,EACjB,gBAAgB,GACjB,MAAM,qBAAqB,CAAC;AAC7B,OAAO,EACL,0BAA0B,EAC1B,KAAK,2BAA2B,GACjC,MAAM,6BAA6B,CAAC;AACrC,OAAO,EACL,6BAA6B,EAC7B,8BAA8B,EAC9B,yBAAyB,EACzB,sBAAsB,EACtB,4BAA4B,EAC5B,0BAA0B,EAC1B,sBAAsB,EACtB,uBAAuB,EACvB,KAAK,2BAA2B,GACjC,MAAM,4BAA4B,CAAC;AACpC,OAAO,EACL,+BAA+B,EAC/B,0BAA0B,EAC1B,uBAAuB,EACvB,6BAA6B,EAC7B,2BAA2B,EAC3B,uBAAuB,EACvB,KAAK,gCAAgC,GACtC,MAAM,8BAA8B,CAAC;AACtC,OAAO,EACL,KAAK,mCAAmC,EACxC,KAAK,yBAAyB,EAC9B,yBAAyB,EACzB,4BAA4B,EAC5B,KAAK,sBAAsB,GAC5B,MAAM,wBAAwB,CAAC;AAChC,cAAc,mBAAmB,CAAC"}
|
package/dist/utils/index.js
CHANGED
|
@@ -1,11 +1,3 @@
|
|
|
1
|
-
import { randomBytes, createHash } from 'crypto';
|
|
2
|
-
import * as fs from 'fs/promises';
|
|
3
|
-
import * as path4 from 'path';
|
|
4
|
-
import { isAbsolute, resolve } from 'path';
|
|
5
|
-
import * as dns from 'dns/promises';
|
|
6
|
-
import * as net from 'net';
|
|
7
|
-
import * as os from 'os';
|
|
8
|
-
|
|
9
1
|
// src/utils/assert-never.ts
|
|
10
2
|
function assertNever(x, message) {
|
|
11
3
|
const err = new Error(
|
|
@@ -15,11 +7,68 @@ function assertNever(x, message) {
|
|
|
15
7
|
throw err;
|
|
16
8
|
}
|
|
17
9
|
|
|
10
|
+
// src/utils/atomic-write.ts
|
|
11
|
+
import { randomBytes } from "node:crypto";
|
|
12
|
+
import * as fs from "node:fs/promises";
|
|
13
|
+
import * as path from "node:path";
|
|
14
|
+
|
|
18
15
|
// src/types/errors.ts
|
|
19
16
|
var ERROR_CODES = {
|
|
17
|
+
// Provider
|
|
18
|
+
PROVIDER_RATE_LIMITED: "PROVIDER_RATE_LIMITED",
|
|
19
|
+
PROVIDER_AUTH_FAILED: "PROVIDER_AUTH_FAILED",
|
|
20
|
+
PROVIDER_OVERLOADED: "PROVIDER_OVERLOADED",
|
|
21
|
+
PROVIDER_INVALID_REQUEST: "PROVIDER_INVALID_REQUEST",
|
|
22
|
+
PROVIDER_SERVER_ERROR: "PROVIDER_SERVER_ERROR",
|
|
23
|
+
PROVIDER_NETWORK_ERROR: "PROVIDER_NETWORK_ERROR",
|
|
24
|
+
PROVIDER_CONTEXT_OVERFLOW: "PROVIDER_CONTEXT_OVERFLOW",
|
|
25
|
+
// Tool
|
|
26
|
+
TOOL_NOT_FOUND: "TOOL_NOT_FOUND",
|
|
27
|
+
TOOL_PERMISSION_DENIED: "TOOL_PERMISSION_DENIED",
|
|
28
|
+
TOOL_EXECUTION_FAILED: "TOOL_EXECUTION_FAILED",
|
|
29
|
+
TOOL_TIMEOUT: "TOOL_TIMEOUT",
|
|
30
|
+
TOOL_INPUT_INVALID: "TOOL_INPUT_INVALID",
|
|
31
|
+
// Config
|
|
32
|
+
CONFIG_INVALID: "CONFIG_INVALID",
|
|
33
|
+
CONFIG_NOT_FOUND: "CONFIG_NOT_FOUND",
|
|
34
|
+
CONFIG_PARSE_FAILED: "CONFIG_PARSE_FAILED",
|
|
35
|
+
CONFIG_MIGRATION_NEEDED: "CONFIG_MIGRATION_NEEDED",
|
|
36
|
+
// Plugin
|
|
37
|
+
PLUGIN_LOAD_FAILED: "PLUGIN_LOAD_FAILED",
|
|
38
|
+
PLUGIN_API_MISMATCH: "PLUGIN_API_MISMATCH",
|
|
39
|
+
PLUGIN_MISSING_DEPENDENCY: "PLUGIN_MISSING_DEPENDENCY",
|
|
40
|
+
// Agent
|
|
41
|
+
AGENT_ITERATION_LIMIT: "AGENT_ITERATION_LIMIT",
|
|
42
|
+
AGENT_CONTEXT_OVERFLOW: "AGENT_CONTEXT_OVERFLOW",
|
|
43
|
+
AGENT_ABORTED: "AGENT_ABORTED",
|
|
44
|
+
AGENT_RUN_FAILED: "AGENT_RUN_FAILED",
|
|
45
|
+
// Session
|
|
46
|
+
SESSION_NOT_FOUND: "SESSION_NOT_FOUND",
|
|
47
|
+
SESSION_CORRUPTED: "SESSION_CORRUPTED",
|
|
48
|
+
SESSION_WRITE_FAILED: "SESSION_WRITE_FAILED",
|
|
49
|
+
// Container / Registry
|
|
50
|
+
CONTAINER_TOKEN_ALREADY_BOUND: "CONTAINER_TOKEN_ALREADY_BOUND",
|
|
51
|
+
CONTAINER_TOKEN_NOT_BOUND: "CONTAINER_TOKEN_NOT_BOUND",
|
|
52
|
+
CONTAINER_CIRCULAR_DEPENDENCY: "CONTAINER_CIRCULAR_DEPENDENCY",
|
|
53
|
+
REGISTRY_DUPLICATE: "REGISTRY_DUPLICATE",
|
|
54
|
+
REGISTRY_NOT_FOUND: "REGISTRY_NOT_FOUND",
|
|
55
|
+
REGISTRY_INVALID: "REGISTRY_INVALID",
|
|
20
56
|
// File system
|
|
21
57
|
FS_READ_FAILED: "FS_READ_FAILED",
|
|
22
|
-
|
|
58
|
+
FS_WRITE_FAILED: "FS_WRITE_FAILED",
|
|
59
|
+
FS_MKDIR_FAILED: "FS_MKDIR_FAILED",
|
|
60
|
+
FS_DELETE_FAILED: "FS_DELETE_FAILED",
|
|
61
|
+
FS_ATOMIC_WRITE_FAILED: "FS_ATOMIC_WRITE_FAILED",
|
|
62
|
+
// SDD (Spec-Driven Development)
|
|
63
|
+
SDD_VALIDATION_FAILED: "SDD_VALIDATION_FAILED",
|
|
64
|
+
SDD_PARSE_FAILED: "SDD_PARSE_FAILED",
|
|
65
|
+
SDD_INVALID_STATE: "SDD_INVALID_STATE",
|
|
66
|
+
SDD_NOT_READY: "SDD_NOT_READY",
|
|
67
|
+
// General
|
|
68
|
+
VALIDATION_ERROR: "VALIDATION_ERROR",
|
|
69
|
+
PARSE_FAILED: "PARSE_FAILED",
|
|
70
|
+
UNKNOWN: "UNKNOWN"
|
|
71
|
+
};
|
|
23
72
|
var WrongStackError = class extends Error {
|
|
24
73
|
code;
|
|
25
74
|
subsystem;
|
|
@@ -67,9 +116,9 @@ var FsError = class extends WrongStackError {
|
|
|
67
116
|
|
|
68
117
|
// src/utils/atomic-write.ts
|
|
69
118
|
async function atomicWrite(targetPath, content, opts = {}) {
|
|
70
|
-
const dir =
|
|
119
|
+
const dir = path.dirname(targetPath);
|
|
71
120
|
await fs.mkdir(dir, { recursive: true });
|
|
72
|
-
const tmp =
|
|
121
|
+
const tmp = path.join(dir, `.${path.basename(targetPath)}.${randomBytes(6).toString("hex")}.tmp`);
|
|
73
122
|
try {
|
|
74
123
|
if (typeof content === "string") {
|
|
75
124
|
await fs.writeFile(tmp, content, { flag: "wx", encoding: opts.encoding ?? "utf8" });
|
|
@@ -114,9 +163,9 @@ async function ensureDir(dir) {
|
|
|
114
163
|
await fs.mkdir(dir, { recursive: true });
|
|
115
164
|
}
|
|
116
165
|
async function withFileLock(targetPath, fn, opts = {}) {
|
|
117
|
-
const dir =
|
|
166
|
+
const dir = path.dirname(targetPath);
|
|
118
167
|
await fs.mkdir(dir, { recursive: true });
|
|
119
|
-
const lockPath =
|
|
168
|
+
const lockPath = path.join(dir, `.${path.basename(targetPath)}.lock`);
|
|
120
169
|
const timeoutMs = opts.timeoutMs ?? 5e3;
|
|
121
170
|
const staleMs = opts.staleMs ?? 3e4;
|
|
122
171
|
const started = Date.now();
|
|
@@ -264,6 +313,15 @@ function sanitizeNodeOptions(value) {
|
|
|
264
313
|
}
|
|
265
314
|
return kept.join(" ");
|
|
266
315
|
}
|
|
316
|
+
var gitIdentity = null;
|
|
317
|
+
function configureChildEnvGitIdentity(identity) {
|
|
318
|
+
const name = identity?.name?.trim();
|
|
319
|
+
const email = identity?.email?.trim();
|
|
320
|
+
gitIdentity = name || email ? { name: name || void 0, email: email || void 0 } : null;
|
|
321
|
+
}
|
|
322
|
+
function getChildEnvGitIdentity() {
|
|
323
|
+
return gitIdentity;
|
|
324
|
+
}
|
|
267
325
|
function buildChildEnv(optsOrSessionId) {
|
|
268
326
|
const opts = typeof optsOrSessionId === "string" ? { sessionId: optsOrSessionId } : optsOrSessionId ?? {};
|
|
269
327
|
const hasOwn = Object.hasOwn(process.env, "WRONGSTACK_CHILD_ENV_PASSTHROUGH");
|
|
@@ -303,6 +361,16 @@ function buildChildEnv(optsOrSessionId) {
|
|
|
303
361
|
out[k] = v;
|
|
304
362
|
}
|
|
305
363
|
}
|
|
364
|
+
if (gitIdentity) {
|
|
365
|
+
if (gitIdentity.name) {
|
|
366
|
+
out["GIT_AUTHOR_NAME"] = gitIdentity.name;
|
|
367
|
+
out["GIT_COMMITTER_NAME"] = gitIdentity.name;
|
|
368
|
+
}
|
|
369
|
+
if (gitIdentity.email) {
|
|
370
|
+
out["GIT_AUTHOR_EMAIL"] = gitIdentity.email;
|
|
371
|
+
out["GIT_COMMITTER_EMAIL"] = gitIdentity.email;
|
|
372
|
+
}
|
|
373
|
+
}
|
|
306
374
|
if (opts.extra) {
|
|
307
375
|
Object.assign(out, opts.extra);
|
|
308
376
|
}
|
|
@@ -406,9 +474,12 @@ var color = {
|
|
|
406
474
|
function stripAnsi(s) {
|
|
407
475
|
return s.replace(/\x1b\[[0-9;]*[A-Za-z]/g, "");
|
|
408
476
|
}
|
|
477
|
+
|
|
478
|
+
// src/utils/config-json.ts
|
|
479
|
+
import * as fs2 from "node:fs/promises";
|
|
409
480
|
async function readJsonObjectFile(filePath) {
|
|
410
481
|
try {
|
|
411
|
-
const parsed = JSON.parse(await
|
|
482
|
+
const parsed = JSON.parse(await fs2.readFile(filePath, "utf8"));
|
|
412
483
|
return isJsonObject(parsed) ? parsed : {};
|
|
413
484
|
} catch {
|
|
414
485
|
return {};
|
|
@@ -416,7 +487,7 @@ async function readJsonObjectFile(filePath) {
|
|
|
416
487
|
}
|
|
417
488
|
async function jsonObjectFileExists(filePath) {
|
|
418
489
|
try {
|
|
419
|
-
await
|
|
490
|
+
await fs2.access(filePath);
|
|
420
491
|
return true;
|
|
421
492
|
} catch {
|
|
422
493
|
return false;
|
|
@@ -509,6 +580,9 @@ function ensureJsonParent(root, path5) {
|
|
|
509
580
|
}
|
|
510
581
|
return current;
|
|
511
582
|
}
|
|
583
|
+
|
|
584
|
+
// src/utils/context-evidence.ts
|
|
585
|
+
import * as path2 from "node:path";
|
|
512
586
|
var MAX_TOOL_CALLS = 80;
|
|
513
587
|
var MAX_FACTS = 40;
|
|
514
588
|
var MAX_ERRORS = 20;
|
|
@@ -549,6 +623,7 @@ function recordToolOutputEvidence(ctx, input) {
|
|
|
549
623
|
const errors = extractErrors(input.content);
|
|
550
624
|
const summary = summarizeToolOutput(input.toolName, input.input, input.content, {
|
|
551
625
|
files,
|
|
626
|
+
symbols,
|
|
552
627
|
errors,
|
|
553
628
|
ok: input.ok
|
|
554
629
|
});
|
|
@@ -663,6 +738,7 @@ function ensureEvidence(ctx) {
|
|
|
663
738
|
return ctx.contextEvidence;
|
|
664
739
|
}
|
|
665
740
|
var MAX_COMPLETED_WORK = 50;
|
|
741
|
+
var LEDGER_BLOCK_ITEMS = 20;
|
|
666
742
|
var COMPLETED_WORK_LEDGER_MARKER = "[completed_work_ledger]";
|
|
667
743
|
function recordCompletedWorkEvidence(ctx, input) {
|
|
668
744
|
const state = ensureEvidence(ctx);
|
|
@@ -683,7 +759,7 @@ function recordCompletedWorkEvidence(ctx, input) {
|
|
|
683
759
|
return entry;
|
|
684
760
|
}
|
|
685
761
|
function formatCompletedWorkLedger(items) {
|
|
686
|
-
const lines = items.slice(-
|
|
762
|
+
const lines = items.slice(-LEDGER_BLOCK_ITEMS).map(
|
|
687
763
|
(item) => `- [${item.source}] ${item.summary}${item.evidence ? ` (evidence: ${item.evidence})` : ""}`
|
|
688
764
|
);
|
|
689
765
|
return `${COMPLETED_WORK_LEDGER_MARKER}
|
|
@@ -746,10 +822,10 @@ function addPath(ctx, out, raw) {
|
|
|
746
822
|
if (!clean || clean.length > 260) return;
|
|
747
823
|
let normalized = clean.replace(/\\/g, "/");
|
|
748
824
|
try {
|
|
749
|
-
const abs =
|
|
825
|
+
const abs = path2.isAbsolute(clean) ? path2.resolve(clean) : null;
|
|
750
826
|
if (abs) {
|
|
751
|
-
const rel =
|
|
752
|
-
if (!rel.startsWith("..") && !
|
|
827
|
+
const rel = path2.relative(ctx.projectRoot, abs);
|
|
828
|
+
if (!rel.startsWith("..") && !path2.isAbsolute(rel)) {
|
|
753
829
|
normalized = rel.replace(/\\/g, "/");
|
|
754
830
|
}
|
|
755
831
|
}
|
|
@@ -867,7 +943,7 @@ function implicitFactFor(metadata) {
|
|
|
867
943
|
function metadataReferencedByText(metadata, haystack) {
|
|
868
944
|
for (const file of metadata.files) {
|
|
869
945
|
const f = file.toLowerCase();
|
|
870
|
-
const base =
|
|
946
|
+
const base = path2.basename(file).toLowerCase();
|
|
871
947
|
if (f && haystack.includes(f)) return true;
|
|
872
948
|
if (base && haystack.includes(base)) return true;
|
|
873
949
|
}
|
|
@@ -1106,6 +1182,10 @@ function expectDefined(value, label) {
|
|
|
1106
1182
|
}
|
|
1107
1183
|
return value;
|
|
1108
1184
|
}
|
|
1185
|
+
|
|
1186
|
+
// src/utils/glob-expand.ts
|
|
1187
|
+
import * as fsp from "node:fs/promises";
|
|
1188
|
+
import { isAbsolute as isAbsolute2, resolve as resolve2 } from "node:path";
|
|
1109
1189
|
var GLOB_CHARS = /* @__PURE__ */ new Set(["*", "?", "["]);
|
|
1110
1190
|
var IS_WINDOWS = process.platform === "win32";
|
|
1111
1191
|
var SEP = IS_WINDOWS ? "\\" : "/";
|
|
@@ -1165,13 +1245,13 @@ function baseDir(pat) {
|
|
|
1165
1245
|
async function expandGlob(pattern) {
|
|
1166
1246
|
if (!isGlob(pattern)) return [pattern];
|
|
1167
1247
|
const results = /* @__PURE__ */ new Set();
|
|
1168
|
-
const abs =
|
|
1248
|
+
const abs = isAbsolute2(pattern);
|
|
1169
1249
|
const base = abs ? baseDir(pattern) : baseDir(pattern);
|
|
1170
1250
|
const relPat = base === "." ? pattern : pattern.slice(base.length + 1);
|
|
1171
1251
|
async function walk2(dir, pat) {
|
|
1172
1252
|
let entries;
|
|
1173
1253
|
try {
|
|
1174
|
-
entries = await
|
|
1254
|
+
entries = await fsp.readdir(dir);
|
|
1175
1255
|
} catch {
|
|
1176
1256
|
return;
|
|
1177
1257
|
}
|
|
@@ -1181,7 +1261,7 @@ async function expandGlob(pattern) {
|
|
|
1181
1261
|
for (const e of entries) {
|
|
1182
1262
|
if (re.test(e)) {
|
|
1183
1263
|
const full = `${dir}${SEP}${e}`;
|
|
1184
|
-
results.add(abs ?
|
|
1264
|
+
results.add(abs ? resolve2(full) : full);
|
|
1185
1265
|
}
|
|
1186
1266
|
}
|
|
1187
1267
|
return;
|
|
@@ -1193,7 +1273,7 @@ async function expandGlob(pattern) {
|
|
|
1193
1273
|
for (const e of entries) {
|
|
1194
1274
|
const full = `${dir}${SEP}${e}`;
|
|
1195
1275
|
try {
|
|
1196
|
-
const stat3 = await
|
|
1276
|
+
const stat3 = await fsp.stat(full);
|
|
1197
1277
|
if (stat3.isDirectory()) await walk2(full, rest);
|
|
1198
1278
|
} catch {
|
|
1199
1279
|
}
|
|
@@ -1203,7 +1283,7 @@ async function expandGlob(pattern) {
|
|
|
1203
1283
|
for (const e of entries) {
|
|
1204
1284
|
if (re.test(e)) {
|
|
1205
1285
|
const full = `${dir}${SEP}${e}`;
|
|
1206
|
-
results.add(abs ?
|
|
1286
|
+
results.add(abs ? resolve2(full) : full);
|
|
1207
1287
|
}
|
|
1208
1288
|
}
|
|
1209
1289
|
} else {
|
|
@@ -1211,7 +1291,7 @@ async function expandGlob(pattern) {
|
|
|
1211
1291
|
if (entries.includes(seg)) {
|
|
1212
1292
|
const full = `${dir}${SEP}${seg}`;
|
|
1213
1293
|
try {
|
|
1214
|
-
const stat3 = await
|
|
1294
|
+
const stat3 = await fsp.stat(full);
|
|
1215
1295
|
if (stat3.isDirectory()) await walk2(full, rest);
|
|
1216
1296
|
} catch {
|
|
1217
1297
|
}
|
|
@@ -1303,6 +1383,10 @@ function matchGlob(pattern, input) {
|
|
|
1303
1383
|
function matchAny(patterns, input) {
|
|
1304
1384
|
return patterns.some((p) => matchGlob(p, input));
|
|
1305
1385
|
}
|
|
1386
|
+
|
|
1387
|
+
// src/utils/ip-guard.ts
|
|
1388
|
+
import * as dns from "node:dns/promises";
|
|
1389
|
+
import * as net from "node:net";
|
|
1306
1390
|
function isPrivateIPv4(addr) {
|
|
1307
1391
|
const parts = addr.split(".").map((p) => Number.parseInt(p, 10));
|
|
1308
1392
|
if (parts.length !== 4 || parts.some((n) => Number.isNaN(n) || n < 0 || n > 255)) {
|
|
@@ -2022,13 +2106,16 @@ function stripSingleLineComments(s) {
|
|
|
2022
2106
|
}
|
|
2023
2107
|
return chars.join("");
|
|
2024
2108
|
}
|
|
2109
|
+
|
|
2110
|
+
// src/utils/session-scoped-path.ts
|
|
2111
|
+
import * as path3 from "node:path";
|
|
2025
2112
|
function sessionScopedPath(dir, sessionId, suffix) {
|
|
2026
2113
|
if (!sessionId || sessionId.includes("\\") || sessionId.includes("..")) {
|
|
2027
2114
|
throw invalid(sessionId);
|
|
2028
2115
|
}
|
|
2029
|
-
const resolved =
|
|
2030
|
-
const rel =
|
|
2031
|
-
if (rel.startsWith("..") ||
|
|
2116
|
+
const resolved = path3.resolve(dir, `${sessionId}${suffix}`);
|
|
2117
|
+
const rel = path3.relative(path3.resolve(dir), resolved);
|
|
2118
|
+
if (rel.startsWith("..") || path3.isAbsolute(rel)) {
|
|
2032
2119
|
throw invalid(sessionId);
|
|
2033
2120
|
}
|
|
2034
2121
|
return resolved;
|
|
@@ -2046,6 +2133,9 @@ function invalid(sessionId) {
|
|
|
2046
2133
|
function slugify(name, fallback = "prompt", maxLen = 64) {
|
|
2047
2134
|
return name.toLowerCase().replace(/[^a-z0-9]+/g, "-").replace(/^-+|-+$/g, "").slice(0, maxLen).replace(/-+$/g, "") || fallback;
|
|
2048
2135
|
}
|
|
2136
|
+
|
|
2137
|
+
// src/utils/ulid.ts
|
|
2138
|
+
import { randomBytes as randomBytes2 } from "node:crypto";
|
|
2049
2139
|
var ENCODING = "0123456789ABCDEFGHJKMNPQRSTVWXYZ";
|
|
2050
2140
|
var ENCODING_LEN = ENCODING.length;
|
|
2051
2141
|
var TIME_LEN = 10;
|
|
@@ -2061,7 +2151,7 @@ function encodeTime(now, len) {
|
|
|
2061
2151
|
return str;
|
|
2062
2152
|
}
|
|
2063
2153
|
function encodeRandom(len) {
|
|
2064
|
-
const bytes =
|
|
2154
|
+
const bytes = randomBytes2(len);
|
|
2065
2155
|
let str = "";
|
|
2066
2156
|
for (let i = 0; i < len; i++) {
|
|
2067
2157
|
str += ENCODING[bytes[i] % ENCODING_LEN];
|
|
@@ -3325,6 +3415,11 @@ function applyToolResultRenderModes(registry, modes) {
|
|
|
3325
3415
|
}
|
|
3326
3416
|
return { applied, missing };
|
|
3327
3417
|
}
|
|
3418
|
+
|
|
3419
|
+
// src/utils/wstack-paths.ts
|
|
3420
|
+
import { createHash } from "node:crypto";
|
|
3421
|
+
import * as os from "node:os";
|
|
3422
|
+
import * as path4 from "node:path";
|
|
3328
3423
|
function projectHash(absRoot) {
|
|
3329
3424
|
return createHash("sha256").update(path4.resolve(absRoot)).digest("hex").slice(0, 12);
|
|
3330
3425
|
}
|
|
@@ -3395,7 +3490,121 @@ function resolveWstackPaths(opts) {
|
|
|
3395
3490
|
projectStatus: (projectHash2) => path4.join(globalRoot, "projects", projectHash2, "status.json")
|
|
3396
3491
|
};
|
|
3397
3492
|
}
|
|
3398
|
-
|
|
3399
|
-
|
|
3493
|
+
export {
|
|
3494
|
+
COMPLETED_WORK_LEDGER_MARKER,
|
|
3495
|
+
DEFAULT_TOOL_DESCRIPTION_MODE,
|
|
3496
|
+
DEFAULT_TOOL_RESULT_RENDER_MODE,
|
|
3497
|
+
FORBIDDEN_PROTO_KEYS,
|
|
3498
|
+
applyToolDescriptionModeToTool,
|
|
3499
|
+
applyToolDescriptionModes,
|
|
3500
|
+
applyToolResultRenderModes,
|
|
3501
|
+
assertNever,
|
|
3502
|
+
assertNotPrivateHost,
|
|
3503
|
+
atomicWrite,
|
|
3504
|
+
buildChildEnv,
|
|
3505
|
+
buildCompletedWorkLedgerBlock,
|
|
3506
|
+
buildContextEvidenceDigest,
|
|
3507
|
+
coerceAgainstSchema,
|
|
3508
|
+
color,
|
|
3509
|
+
compactSchemaDescriptions,
|
|
3510
|
+
compactToolDefinitionForWire,
|
|
3511
|
+
compileGlob,
|
|
3512
|
+
compileUserRegex,
|
|
3513
|
+
completePartialObject,
|
|
3514
|
+
computeMessageTokens,
|
|
3515
|
+
computeTaskItemProgress,
|
|
3516
|
+
configureChildEnvGitIdentity,
|
|
3517
|
+
createContextEvidenceState,
|
|
3518
|
+
createToolOutputSerializer,
|
|
3519
|
+
deepMerge,
|
|
3520
|
+
detectNewlineStyle,
|
|
3521
|
+
ensureDir,
|
|
3522
|
+
escapeGlobSubject,
|
|
3523
|
+
estimateMessageTokens,
|
|
3524
|
+
estimateRequestTokens,
|
|
3525
|
+
estimateRequestTokensCalibrated,
|
|
3526
|
+
estimateTextTokens,
|
|
3527
|
+
estimateToolDefTokens,
|
|
3528
|
+
estimateToolInputTokens,
|
|
3529
|
+
estimateToolResultTokens,
|
|
3530
|
+
expandGlob,
|
|
3531
|
+
expandIPv6,
|
|
3532
|
+
expectDefined,
|
|
3533
|
+
formatCompletedWorkLedger,
|
|
3534
|
+
formatTaskList,
|
|
3535
|
+
formatTaskProgress,
|
|
3536
|
+
formatTodosList,
|
|
3537
|
+
getCalibrationState,
|
|
3538
|
+
getChildEnvGitIdentity,
|
|
3539
|
+
getJsonPath,
|
|
3540
|
+
getTermSize,
|
|
3541
|
+
getToolDescriptionMode,
|
|
3542
|
+
getToolResultRenderMode,
|
|
3543
|
+
hasOpenTodos,
|
|
3544
|
+
isInteractive,
|
|
3545
|
+
isJsonObject,
|
|
3546
|
+
isPathSubjectKey,
|
|
3547
|
+
isPrimitiveArray,
|
|
3548
|
+
isPrivateIPv4,
|
|
3549
|
+
isPrivateIPv6,
|
|
3550
|
+
isStdinTTY,
|
|
3551
|
+
isStdoutTTY,
|
|
3552
|
+
isUlid,
|
|
3553
|
+
jsonObjectFileExists,
|
|
3554
|
+
markAssistantReferencedEvidence,
|
|
3555
|
+
matchAny,
|
|
3556
|
+
matchGlob,
|
|
3557
|
+
mergeCustomModelDefs,
|
|
3558
|
+
mergeModelsPayload,
|
|
3559
|
+
normalizePathSubject,
|
|
3560
|
+
normalizeToLf,
|
|
3561
|
+
normalizeToolDescriptionMode,
|
|
3562
|
+
normalizeToolResultRenderMode,
|
|
3563
|
+
onResize,
|
|
3564
|
+
projectHash,
|
|
3565
|
+
projectSlug,
|
|
3566
|
+
readJsonObjectFile,
|
|
3567
|
+
recordActualUsage,
|
|
3568
|
+
recordCompletedWorkEvidence,
|
|
3569
|
+
recordToolOutputEvidence,
|
|
3570
|
+
recordUserIntentEvidence,
|
|
3571
|
+
removeJsonPath,
|
|
3572
|
+
removeJsonPathInFile,
|
|
3573
|
+
repairToolUseAdjacency,
|
|
3574
|
+
repeatedReadPressure,
|
|
3575
|
+
resetCalibration,
|
|
3576
|
+
resolveToolDescriptionMode,
|
|
3577
|
+
resolveToolResultRenderMode,
|
|
3578
|
+
resolveWstackPaths,
|
|
3579
|
+
safeParse,
|
|
3580
|
+
safeStringify,
|
|
3581
|
+
sanitizeJsonString,
|
|
3582
|
+
sanitizeNodeOptions,
|
|
3583
|
+
sessionScopedPath,
|
|
3584
|
+
setJsonPath,
|
|
3585
|
+
setJsonPathInFile,
|
|
3586
|
+
setOutputLineGuard,
|
|
3587
|
+
setRawMode,
|
|
3588
|
+
setToolDescriptionMode,
|
|
3589
|
+
setToolResultRenderMode,
|
|
3590
|
+
simplifyToolDescription,
|
|
3591
|
+
sleep,
|
|
3592
|
+
slugify,
|
|
3593
|
+
stripAnsi,
|
|
3594
|
+
stripCodeFences,
|
|
3595
|
+
subjectForToolInput,
|
|
3596
|
+
syncCompletedWorkLedgerBlock,
|
|
3597
|
+
toErrorMessage,
|
|
3598
|
+
toStyle,
|
|
3599
|
+
truncate,
|
|
3600
|
+
ulid,
|
|
3601
|
+
unifiedDiff,
|
|
3602
|
+
updateJsonObjectFile,
|
|
3603
|
+
validateAgainstSchema,
|
|
3604
|
+
withFileLock,
|
|
3605
|
+
writeErr,
|
|
3606
|
+
writeJsonObjectFile,
|
|
3607
|
+
writeOut,
|
|
3608
|
+
wstackGlobalRoot
|
|
3609
|
+
};
|
|
3400
3610
|
//# sourceMappingURL=index.js.map
|
|
3401
|
-
//# sourceMappingURL=index.js.map
|