@wrongstack/core 0.284.1 → 0.286.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/agent-status-tracker.d.ts +74 -0
- package/dist/agent-status-tracker.d.ts.map +1 -0
- package/dist/autophase/auto-phase-planner.d.ts +79 -0
- package/dist/autophase/auto-phase-planner.d.ts.map +1 -0
- package/dist/autophase/auto-phase-runner.d.ts +79 -0
- package/dist/autophase/auto-phase-runner.d.ts.map +1 -0
- package/dist/autophase/checkpoint.d.ts +49 -0
- package/dist/autophase/checkpoint.d.ts.map +1 -0
- package/dist/autophase/index.d.ts +9 -0
- package/dist/autophase/index.d.ts.map +1 -0
- package/dist/autophase/phase-graph-builder.d.ts +46 -0
- package/dist/autophase/phase-graph-builder.d.ts.map +1 -0
- package/dist/autophase/phase-orchestrator.d.ts +150 -0
- package/dist/autophase/phase-orchestrator.d.ts.map +1 -0
- package/dist/autophase/phase-store.d.ts +29 -0
- package/dist/autophase/phase-store.d.ts.map +1 -0
- package/dist/autophase/types.d.ts +329 -0
- package/dist/autophase/types.d.ts.map +1 -0
- package/dist/boot.d.ts +73 -0
- package/dist/boot.d.ts.map +1 -0
- package/dist/coordination/adaptive-concurrency.d.ts +63 -0
- package/dist/coordination/adaptive-concurrency.d.ts.map +1 -0
- package/dist/coordination/agent-bridge.d.ts +24 -0
- package/dist/coordination/agent-bridge.d.ts.map +1 -0
- package/dist/coordination/agent-monitor.d.ts +129 -0
- package/dist/coordination/agent-monitor.d.ts.map +1 -0
- package/dist/coordination/agent-subagent-runner.d.ts +74 -0
- package/dist/coordination/agent-subagent-runner.d.ts.map +1 -0
- package/dist/coordination/agents/agent-prompts.d.ts +2 -0
- package/dist/coordination/agents/agent-prompts.d.ts.map +1 -0
- package/dist/coordination/agents/index.d.ts +35 -0
- package/dist/coordination/agents/index.d.ts.map +1 -0
- package/dist/coordination/agents/phase1-discovery.d.ts +4 -0
- package/dist/coordination/agents/phase1-discovery.d.ts.map +1 -0
- package/dist/coordination/agents/phase2-planning.d.ts +4 -0
- package/dist/coordination/agents/phase2-planning.d.ts.map +1 -0
- package/dist/coordination/agents/phase3-build.d.ts +4 -0
- package/dist/coordination/agents/phase3-build.d.ts.map +1 -0
- package/dist/coordination/agents/phase3-techstack.d.ts +13 -0
- package/dist/coordination/agents/phase3-techstack.d.ts.map +1 -0
- package/dist/coordination/agents/phase4-verify.d.ts +4 -0
- package/dist/coordination/agents/phase4-verify.d.ts.map +1 -0
- package/dist/coordination/agents/phase5-review.d.ts +4 -0
- package/dist/coordination/agents/phase5-review.d.ts.map +1 -0
- package/dist/coordination/agents/phase6-domain.d.ts +4 -0
- package/dist/coordination/agents/phase6-domain.d.ts.map +1 -0
- package/dist/coordination/agents/phase7-knowledge.d.ts +4 -0
- package/dist/coordination/agents/phase7-knowledge.d.ts.map +1 -0
- package/dist/coordination/agents/phase8-delivery.d.ts +4 -0
- package/dist/coordination/agents/phase8-delivery.d.ts.map +1 -0
- package/dist/coordination/agents/phase9-meta.d.ts +4 -0
- package/dist/coordination/agents/phase9-meta.d.ts.map +1 -0
- package/dist/coordination/agents/types.d.ts +79 -0
- package/dist/coordination/agents/types.d.ts.map +1 -0
- package/dist/coordination/agents.d.ts +8 -0
- package/dist/coordination/agents.d.ts.map +1 -0
- package/dist/coordination/auto-extend.d.ts +46 -0
- package/dist/coordination/auto-extend.d.ts.map +1 -0
- package/dist/coordination/autonomous-brain.d.ts +152 -0
- package/dist/coordination/autonomous-brain.d.ts.map +1 -0
- package/dist/coordination/autonomous-coordinator.d.ts +243 -0
- package/dist/coordination/autonomous-coordinator.d.ts.map +1 -0
- package/dist/coordination/brain-ledger.d.ts +142 -0
- package/dist/coordination/brain-ledger.d.ts.map +1 -0
- package/dist/coordination/brain-monitor.d.ts +103 -0
- package/dist/coordination/brain-monitor.d.ts.map +1 -0
- package/dist/coordination/brain.d.ts +147 -0
- package/dist/coordination/brain.d.ts.map +1 -0
- package/dist/coordination/change-manager.d.ts +151 -0
- package/dist/coordination/change-manager.d.ts.map +1 -0
- package/dist/coordination/checkpoint-wiring.d.ts +61 -0
- package/dist/coordination/checkpoint-wiring.d.ts.map +1 -0
- package/dist/coordination/collab-bus.d.ts +132 -0
- package/dist/coordination/collab-bus.d.ts.map +1 -0
- package/dist/coordination/collab-debug.d.ts +302 -0
- package/dist/coordination/collab-debug.d.ts.map +1 -0
- package/dist/coordination/commit-safety.d.ts +72 -0
- package/dist/coordination/commit-safety.d.ts.map +1 -0
- package/dist/coordination/consensus-protocol.d.ts +106 -0
- package/dist/coordination/consensus-protocol.d.ts.map +1 -0
- package/dist/coordination/coordinator/error-classifier.d.ts +15 -0
- package/dist/coordination/coordinator/error-classifier.d.ts.map +1 -0
- package/dist/coordination/delegate-tool.d.ts +101 -0
- package/dist/coordination/delegate-tool.d.ts.map +1 -0
- package/dist/coordination/dep-watcher-bridge.d.ts +47 -0
- package/dist/coordination/dep-watcher-bridge.d.ts.map +1 -0
- package/dist/coordination/dep-watcher.d.ts +74 -0
- package/dist/coordination/dep-watcher.d.ts.map +1 -0
- package/dist/coordination/director/director-errors.d.ts +29 -0
- package/dist/coordination/director/director-errors.d.ts.map +1 -0
- package/dist/coordination/director-construction.d.ts +90 -0
- package/dist/coordination/director-construction.d.ts.map +1 -0
- package/dist/coordination/director-prompts.d.ts +119 -0
- package/dist/coordination/director-prompts.d.ts.map +1 -0
- package/dist/coordination/director-session.d.ts +68 -0
- package/dist/coordination/director-session.d.ts.map +1 -0
- package/dist/coordination/director-tools.d.ts +65 -0
- package/dist/coordination/director-tools.d.ts.map +1 -0
- package/dist/coordination/director.d.ts +802 -0
- package/dist/coordination/director.d.ts.map +1 -0
- package/dist/coordination/dispatcher.d.ts +82 -0
- package/dist/coordination/dispatcher.d.ts.map +1 -0
- package/dist/coordination/file-author-tracker.d.ts +76 -0
- package/dist/coordination/file-author-tracker.d.ts.map +1 -0
- package/dist/coordination/fleet-bus.d.ts +122 -0
- package/dist/coordination/fleet-bus.d.ts.map +1 -0
- package/dist/coordination/fleet-event-validation.d.ts +10 -0
- package/dist/coordination/fleet-event-validation.d.ts.map +1 -0
- package/dist/coordination/fleet-manager.d.ts +234 -0
- package/dist/coordination/fleet-manager.d.ts.map +1 -0
- package/dist/coordination/fleet-spawn.d.ts +102 -0
- package/dist/coordination/fleet-spawn.d.ts.map +1 -0
- package/dist/coordination/fleet-status-tool.d.ts +36 -0
- package/dist/coordination/fleet-status-tool.d.ts.map +1 -0
- package/dist/coordination/fleet-supervisor.d.ts +157 -0
- package/dist/coordination/fleet-supervisor.d.ts.map +1 -0
- package/dist/coordination/fleet.d.ts +96 -0
- package/dist/coordination/fleet.d.ts.map +1 -0
- package/dist/coordination/global-mailbox.d.ts +295 -0
- package/dist/coordination/global-mailbox.d.ts.map +1 -0
- package/dist/coordination/icoordinator.d.ts +97 -0
- package/dist/coordination/icoordinator.d.ts.map +1 -0
- package/dist/coordination/ifleet-manager.d.ts +177 -0
- package/dist/coordination/ifleet-manager.d.ts.map +1 -0
- package/dist/coordination/in-memory-transport.d.ts +12 -0
- package/dist/coordination/in-memory-transport.d.ts.map +1 -0
- package/dist/coordination/index.d.ts +79 -2587
- package/dist/coordination/index.d.ts.map +1 -0
- package/dist/coordination/index.js +2262 -673
- package/dist/coordination/index.js.map +7 -1
- package/dist/coordination/knowledge-graph.d.ts +229 -0
- package/dist/coordination/knowledge-graph.d.ts.map +1 -0
- package/dist/coordination/large-answer-store.d.ts +61 -0
- package/dist/coordination/large-answer-store.d.ts.map +1 -0
- package/dist/coordination/mail-tools.d.ts +34 -0
- package/dist/coordination/mail-tools.d.ts.map +1 -0
- package/dist/coordination/mailbox-actions.d.ts +67 -0
- package/dist/coordination/mailbox-actions.d.ts.map +1 -0
- package/dist/coordination/mailbox-constants.d.ts +64 -0
- package/dist/coordination/mailbox-constants.d.ts.map +1 -0
- package/dist/coordination/mailbox-events.d.ts +32 -0
- package/dist/coordination/mailbox-events.d.ts.map +1 -0
- package/dist/coordination/mailbox-health.d.ts +131 -0
- package/dist/coordination/mailbox-health.d.ts.map +1 -0
- package/dist/coordination/mailbox-hooks.d.ts +55 -0
- package/dist/coordination/mailbox-hooks.d.ts.map +1 -0
- package/dist/coordination/mailbox-message-codec.d.ts +8 -0
- package/dist/coordination/mailbox-message-codec.d.ts.map +1 -0
- package/dist/coordination/mailbox-tool.d.ts +75 -0
- package/dist/coordination/mailbox-tool.d.ts.map +1 -0
- package/dist/{mailbox-types-BGZWrYTJ.d.ts → coordination/mailbox-types.d.ts} +125 -26
- package/dist/coordination/mailbox-types.d.ts.map +1 -0
- package/dist/coordination/mailbox.d.ts +88 -0
- package/dist/coordination/mailbox.d.ts.map +1 -0
- package/dist/coordination/model-matrix.d.ts +98 -0
- package/dist/coordination/model-matrix.d.ts.map +1 -0
- package/dist/coordination/multi-agent-coordinator.d.ts +202 -0
- package/dist/coordination/multi-agent-coordinator.d.ts.map +1 -0
- package/dist/coordination/null-fleet-bus.d.ts +10 -0
- package/dist/coordination/null-fleet-bus.d.ts.map +1 -0
- package/dist/coordination/package-author-tracker.d.ts +87 -0
- package/dist/coordination/package-author-tracker.d.ts.map +1 -0
- package/dist/coordination/package-outdated-watcher.d.ts +83 -0
- package/dist/coordination/package-outdated-watcher.d.ts.map +1 -0
- package/dist/coordination/single-instance-mailbox.d.ts +154 -0
- package/dist/coordination/single-instance-mailbox.d.ts.map +1 -0
- package/dist/coordination/spawn-budget.d.ts +6 -0
- package/dist/coordination/spawn-budget.d.ts.map +1 -0
- package/dist/coordination/subagent-budget.d.ts +323 -0
- package/dist/coordination/subagent-budget.d.ts.map +1 -0
- package/dist/coordination/subagent-nicknames.d.ts +42 -0
- package/dist/coordination/subagent-nicknames.d.ts.map +1 -0
- package/dist/coordination/subagent-result-tool.d.ts +20 -0
- package/dist/coordination/subagent-result-tool.d.ts.map +1 -0
- package/dist/coordination/task-auctioneer.d.ts +143 -0
- package/dist/coordination/task-auctioneer.d.ts.map +1 -0
- package/dist/coordination/task-dag.d.ts +147 -0
- package/dist/coordination/task-dag.d.ts.map +1 -0
- package/dist/coordination/techstack-mailbox-consumer.d.ts +50 -0
- package/dist/coordination/techstack-mailbox-consumer.d.ts.map +1 -0
- package/dist/coordination/transport.d.ts +2 -0
- package/dist/coordination/transport.d.ts.map +1 -0
- package/dist/coordination/worktree-task-runner.d.ts +45 -0
- package/dist/coordination/worktree-task-runner.d.ts.map +1 -0
- package/dist/core/agent-internals.d.ts +41 -0
- package/dist/core/agent-internals.d.ts.map +1 -0
- package/dist/core/agent-loop.d.ts +18 -0
- package/dist/core/agent-loop.d.ts.map +1 -0
- package/dist/core/agent-response.d.ts +21 -0
- package/dist/core/agent-response.d.ts.map +1 -0
- package/dist/core/agent-tools.d.ts +21 -0
- package/dist/core/agent-tools.d.ts.map +1 -0
- package/dist/core/agent-types.d.ts +95 -0
- package/dist/core/agent-types.d.ts.map +1 -0
- package/dist/core/agent.d.ts +54 -0
- package/dist/core/agent.d.ts.map +1 -0
- package/dist/core/btw.d.ts +40 -0
- package/dist/core/btw.d.ts.map +1 -0
- package/dist/core/context.d.ts +269 -0
- package/dist/core/context.d.ts.map +1 -0
- package/dist/core/continue-intent.d.ts +92 -0
- package/dist/core/continue-intent.d.ts.map +1 -0
- package/dist/core/continue-to-next-iteration.d.ts +96 -0
- package/dist/core/continue-to-next-iteration.d.ts.map +1 -0
- package/dist/core/conversation-state.d.ts +96 -0
- package/dist/core/conversation-state.d.ts.map +1 -0
- package/dist/core/fallback-model.d.ts +94 -0
- package/dist/core/fallback-model.d.ts.map +1 -0
- package/dist/core/fleet-pulse.d.ts +42 -0
- package/dist/core/fleet-pulse.d.ts.map +1 -0
- package/dist/core/input-builder.d.ts +95 -0
- package/dist/core/input-builder.d.ts.map +1 -0
- package/dist/core/instruction-bundle.d.ts +22 -0
- package/dist/core/instruction-bundle.d.ts.map +1 -0
- package/dist/core/iteration-limit.d.ts +35 -0
- package/dist/core/iteration-limit.d.ts.map +1 -0
- package/dist/core/mailbox-loop.d.ts +63 -0
- package/dist/core/mailbox-loop.d.ts.map +1 -0
- package/dist/core/modes/brief.d.ts +2 -0
- package/dist/core/modes/brief.d.ts.map +1 -0
- package/dist/core/modes/default.d.ts +8 -0
- package/dist/core/modes/default.d.ts.map +1 -0
- package/dist/core/modes/teach.d.ts +2 -0
- package/dist/core/modes/teach.d.ts.map +1 -0
- package/dist/core/provider-runner.d.ts +24 -0
- package/dist/core/provider-runner.d.ts.map +1 -0
- package/dist/core/queued-messages.d.ts +55 -0
- package/dist/core/queued-messages.d.ts.map +1 -0
- package/dist/core/run-env.d.ts +49 -0
- package/dist/core/run-env.d.ts.map +1 -0
- package/dist/core/streaming-response-builder.d.ts +78 -0
- package/dist/core/streaming-response-builder.d.ts.map +1 -0
- package/dist/core/system-prompt-builder.d.ts +213 -0
- package/dist/core/system-prompt-builder.d.ts.map +1 -0
- package/dist/defaults/index.d.ts +68 -158
- package/dist/defaults/index.d.ts.map +1 -0
- package/dist/defaults/index.js +2061 -1300
- package/dist/defaults/index.js.map +7 -1
- package/dist/execution/auto-compaction-middleware.d.ts +123 -0
- package/dist/execution/auto-compaction-middleware.d.ts.map +1 -0
- package/dist/execution/autonomous-runner.d.ts +61 -0
- package/dist/execution/autonomous-runner.d.ts.map +1 -0
- package/dist/execution/autonomy-brain.d.ts +151 -0
- package/dist/execution/autonomy-brain.d.ts.map +1 -0
- package/dist/execution/autonomy-prompt-contributor.d.ts +39 -0
- package/dist/execution/autonomy-prompt-contributor.d.ts.map +1 -0
- package/dist/execution/brain-chain.d.ts +53 -0
- package/dist/execution/brain-chain.d.ts.map +1 -0
- package/dist/execution/brain-evaluation.d.ts +66 -0
- package/dist/execution/brain-evaluation.d.ts.map +1 -0
- package/dist/execution/brain-runtime.d.ts +171 -0
- package/dist/execution/brain-runtime.d.ts.map +1 -0
- package/dist/execution/compaction-core.d.ts +103 -0
- package/dist/execution/compaction-core.d.ts.map +1 -0
- package/dist/execution/compactor.d.ts +56 -0
- package/dist/execution/compactor.d.ts.map +1 -0
- package/dist/execution/council-brain.d.ts +79 -0
- package/dist/execution/council-brain.d.ts.map +1 -0
- package/dist/execution/design-color.d.ts +31 -0
- package/dist/execution/design-color.d.ts.map +1 -0
- package/dist/execution/design-detect.d.ts +96 -0
- package/dist/execution/design-detect.d.ts.map +1 -0
- package/dist/execution/design-kit-loader.d.ts +53 -0
- package/dist/execution/design-kit-loader.d.ts.map +1 -0
- package/dist/execution/design-materialize.d.ts +32 -0
- package/dist/execution/design-materialize.d.ts.map +1 -0
- package/dist/execution/design-project-store.d.ts +57 -0
- package/dist/execution/design-project-store.d.ts.map +1 -0
- package/dist/execution/design-verify.d.ts +44 -0
- package/dist/execution/design-verify.d.ts.map +1 -0
- package/dist/execution/error-handler.d.ts +34 -0
- package/dist/execution/error-handler.d.ts.map +1 -0
- package/dist/{parallel-eternal-engine-HUrtePLd.d.ts → execution/eternal-autonomy.d.ts} +22 -225
- package/dist/execution/eternal-autonomy.d.ts.map +1 -0
- package/dist/execution/goal-preamble.d.ts +2 -0
- package/dist/execution/goal-preamble.d.ts.map +1 -0
- package/dist/execution/index.d.ts +25 -180
- package/dist/execution/index.d.ts.map +1 -0
- package/dist/execution/index.js +1748 -490
- package/dist/execution/index.js.map +7 -1
- package/dist/execution/intelligent-compactor.d.ts +85 -0
- package/dist/execution/intelligent-compactor.d.ts.map +1 -0
- package/dist/execution/model-runtime.d.ts +75 -0
- package/dist/execution/model-runtime.d.ts.map +1 -0
- package/dist/execution/parallel-eternal-engine.d.ts +142 -0
- package/dist/execution/parallel-eternal-engine.d.ts.map +1 -0
- package/dist/execution/prompt-enhancer.d.ts +12 -13
- package/dist/execution/prompt-enhancer.d.ts.map +1 -0
- package/dist/execution/prompt-enhancer.js +13 -7
- package/dist/execution/prompt-enhancer.js.map +7 -1
- package/dist/execution/prompt-loader.d.ts +52 -0
- package/dist/execution/prompt-loader.d.ts.map +1 -0
- package/dist/execution/provider-runner-impl.d.ts +14 -0
- package/dist/execution/provider-runner-impl.d.ts.map +1 -0
- package/dist/execution/regex-patterns.d.ts +7 -0
- package/dist/execution/regex-patterns.d.ts.map +1 -0
- package/dist/execution/retry-policy.d.ts +35 -0
- package/dist/execution/retry-policy.d.ts.map +1 -0
- package/dist/execution/selective-compactor.d.ts +94 -0
- package/dist/execution/selective-compactor.d.ts.map +1 -0
- package/dist/execution/skill-loader.d.ts +43 -0
- package/dist/execution/skill-loader.d.ts.map +1 -0
- package/dist/execution/strategy-compactor.d.ts +43 -0
- package/dist/execution/strategy-compactor.d.ts.map +1 -0
- package/dist/execution/tool-executor.d.ts +112 -0
- package/dist/execution/tool-executor.d.ts.map +1 -0
- package/dist/extension/extension-points.d.ts +121 -0
- package/dist/extension/extension-points.d.ts.map +1 -0
- package/dist/extension/index.d.ts +3 -10
- package/dist/extension/index.d.ts.map +1 -0
- package/dist/extension/index.js +59 -5
- package/dist/extension/index.js.map +7 -1
- package/dist/extension/registry.d.ts +86 -0
- package/dist/extension/registry.d.ts.map +1 -0
- package/dist/fleet-notifier.d.ts +28 -0
- package/dist/fleet-notifier.d.ts.map +1 -0
- package/dist/hooks/http-executor.d.ts +11 -0
- package/dist/hooks/http-executor.d.ts.map +1 -0
- package/dist/hooks/index.d.ts +10 -0
- package/dist/hooks/index.d.ts.map +1 -0
- package/dist/hooks/registry.d.ts +71 -0
- package/dist/hooks/registry.d.ts.map +1 -0
- package/dist/hooks/runner.d.ts +65 -0
- package/dist/hooks/runner.d.ts.map +1 -0
- package/dist/hooks/shell-executor.d.ts +33 -0
- package/dist/hooks/shell-executor.d.ts.map +1 -0
- package/dist/hooks/shell-hooks-equal.d.ts +15 -0
- package/dist/hooks/shell-hooks-equal.d.ts.map +1 -0
- package/dist/hq/agent-bridge.d.ts +27 -0
- package/dist/hq/agent-bridge.d.ts.map +1 -0
- package/dist/hq/alerts.d.ts +67 -0
- package/dist/hq/alerts.d.ts.map +1 -0
- package/dist/hq/auth-store.d.ts +179 -0
- package/dist/hq/auth-store.d.ts.map +1 -0
- package/dist/hq/brain-bridge.d.ts +37 -0
- package/dist/hq/brain-bridge.d.ts.map +1 -0
- package/dist/hq/commands.d.ts +122 -0
- package/dist/hq/commands.d.ts.map +1 -0
- package/dist/hq/cost-bridge.d.ts +36 -0
- package/dist/hq/cost-bridge.d.ts.map +1 -0
- package/dist/hq/factory.d.ts +69 -0
- package/dist/hq/factory.d.ts.map +1 -0
- package/dist/hq/fleet-bridge.d.ts +39 -0
- package/dist/hq/fleet-bridge.d.ts.map +1 -0
- package/dist/hq/index.d.ts +18 -816
- package/dist/hq/index.d.ts.map +1 -0
- package/dist/hq/index.js +1043 -192
- package/dist/hq/index.js.map +7 -1
- package/dist/hq/mailbox-mapper.d.ts +27 -0
- package/dist/hq/mailbox-mapper.d.ts.map +1 -0
- package/dist/hq/persistence.d.ts +121 -0
- package/dist/hq/persistence.d.ts.map +1 -0
- package/dist/hq/protocol.d.ts +612 -0
- package/dist/hq/protocol.d.ts.map +1 -0
- package/dist/hq/publisher.d.ts +181 -0
- package/dist/hq/publisher.d.ts.map +1 -0
- package/dist/hq/redaction.d.ts +30 -0
- package/dist/hq/redaction.d.ts.map +1 -0
- package/dist/hq/session-bridge.d.ts +29 -0
- package/dist/hq/session-bridge.d.ts.map +1 -0
- package/dist/hq/tool-bridge.d.ts +41 -0
- package/dist/hq/tool-bridge.d.ts.map +1 -0
- package/dist/hq/transcript-mapper.d.ts +36 -0
- package/dist/hq/transcript-mapper.d.ts.map +1 -0
- package/dist/hq/worktree-bridge.d.ts +34 -0
- package/dist/hq/worktree-bridge.d.ts.map +1 -0
- package/dist/index.d.ts +114 -2872
- package/dist/index.d.ts.map +1 -0
- package/dist/index.js +6104 -2737
- package/dist/index.js.map +7 -1
- package/dist/infrastructure/context-manager.d.ts +92 -0
- package/dist/infrastructure/context-manager.d.ts.map +1 -0
- package/dist/infrastructure/index.d.ts +6 -64
- package/dist/infrastructure/index.d.ts.map +1 -0
- package/dist/infrastructure/index.js +39 -12
- package/dist/infrastructure/index.js.map +7 -1
- package/dist/infrastructure/logger.d.ts +99 -0
- package/dist/infrastructure/logger.d.ts.map +1 -0
- package/dist/infrastructure/mcp-servers.d.ts +83 -0
- package/dist/infrastructure/mcp-servers.d.ts.map +1 -0
- package/dist/{path-resolver-CMS5307d.d.ts → infrastructure/path-resolver.d.ts} +3 -5
- package/dist/infrastructure/path-resolver.d.ts.map +1 -0
- package/dist/infrastructure/token-counter.d.ts +57 -0
- package/dist/infrastructure/token-counter.d.ts.map +1 -0
- package/dist/kernel/container.d.ts +84 -0
- package/dist/kernel/container.d.ts.map +1 -0
- package/dist/{events-Bgnh43r9.d.ts → kernel/events.d.ts} +134 -210
- package/dist/kernel/events.d.ts.map +1 -0
- package/dist/kernel/index.d.ts +6 -107
- package/dist/kernel/index.d.ts.map +1 -0
- package/dist/kernel/index.js +56 -4
- package/dist/kernel/index.js.map +7 -1
- package/dist/kernel/pipeline.d.ts +105 -0
- package/dist/kernel/pipeline.d.ts.map +1 -0
- package/dist/kernel/run-controller.d.ts +55 -0
- package/dist/kernel/run-controller.d.ts.map +1 -0
- package/dist/kernel/tokens.d.ts +53 -0
- package/dist/kernel/tokens.d.ts.map +1 -0
- package/dist/mailbox-attach.d.ts +27 -0
- package/dist/mailbox-attach.d.ts.map +1 -0
- package/dist/middleware/collab-pause.d.ts +73 -0
- package/dist/middleware/collab-pause.d.ts.map +1 -0
- package/dist/models/codex-catalog.d.ts +41 -0
- package/dist/models/codex-catalog.d.ts.map +1 -0
- package/dist/models/index.d.ts +8 -163
- package/dist/models/index.d.ts.map +1 -0
- package/dist/models/index.js +150 -51
- package/dist/models/index.js.map +7 -1
- package/dist/models/llm-selector.d.ts +47 -0
- package/dist/models/llm-selector.d.ts.map +1 -0
- package/dist/models/mode-store.d.ts +22 -0
- package/dist/models/mode-store.d.ts.map +1 -0
- package/dist/models/model-intelligence.d.ts +56 -0
- package/dist/models/model-intelligence.d.ts.map +1 -0
- package/dist/models/model-router.d.ts +100 -0
- package/dist/models/model-router.d.ts.map +1 -0
- package/dist/models/models-registry.d.ts +106 -0
- package/dist/models/models-registry.d.ts.map +1 -0
- package/dist/models/provider-model-resolve.d.ts +69 -0
- package/dist/models/provider-model-resolve.d.ts.map +1 -0
- package/dist/observability/event-bridge.d.ts +10 -0
- package/dist/observability/event-bridge.d.ts.map +1 -0
- package/dist/observability/health.d.ts +18 -0
- package/dist/observability/health.d.ts.map +1 -0
- package/dist/observability/index.d.ts +9 -354
- package/dist/observability/index.d.ts.map +1 -0
- package/dist/observability/index.js +37 -23
- package/dist/observability/index.js.map +7 -1
- package/dist/observability/metrics.d.ts +26 -0
- package/dist/observability/metrics.d.ts.map +1 -0
- package/dist/observability/otel-tracer.d.ts +41 -0
- package/dist/observability/otel-tracer.d.ts.map +1 -0
- package/dist/observability/otlp-metrics.d.ts +111 -0
- package/dist/observability/otlp-metrics.d.ts.map +1 -0
- package/dist/observability/otlp-traces.d.ts +95 -0
- package/dist/observability/otlp-traces.d.ts.map +1 -0
- package/dist/observability/prometheus.d.ts +49 -0
- package/dist/observability/prometheus.d.ts.map +1 -0
- package/dist/observability/tracer.d.ts +9 -0
- package/dist/observability/tracer.d.ts.map +1 -0
- package/dist/plugin/api.d.ts +226 -0
- package/dist/plugin/api.d.ts.map +1 -0
- package/dist/plugin/loader.d.ts +73 -0
- package/dist/plugin/loader.d.ts.map +1 -0
- package/dist/plugins/chimera-plugin.d.ts +37 -0
- package/dist/plugins/chimera-plugin.d.ts.map +1 -0
- package/dist/plugins/prompts-plugin.d.ts +26 -0
- package/dist/plugins/prompts-plugin.d.ts.map +1 -0
- package/dist/plugins/security-plugin.d.ts +19 -0
- package/dist/plugins/security-plugin.d.ts.map +1 -0
- package/dist/plugins/skills-plugin.d.ts +42 -0
- package/dist/plugins/skills-plugin.d.ts.map +1 -0
- package/dist/plugins/sync-plugin.d.ts +22 -0
- package/dist/plugins/sync-plugin.d.ts.map +1 -0
- package/dist/prompts/index.d.ts +3 -0
- package/dist/prompts/index.d.ts.map +1 -0
- package/dist/prompts/prompt-installer.d.ts +50 -0
- package/dist/prompts/prompt-installer.d.ts.map +1 -0
- package/dist/prompts/prompt-manifest-store.d.ts +18 -0
- package/dist/prompts/prompt-manifest-store.d.ts.map +1 -0
- package/dist/registry/provider-registry.d.ts +51 -0
- package/dist/registry/provider-registry.d.ts.map +1 -0
- package/dist/registry/slash-command-registry.d.ts +61 -0
- package/dist/registry/slash-command-registry.d.ts.map +1 -0
- package/dist/registry/tool-registry.d.ts +154 -0
- package/dist/registry/tool-registry.d.ts.map +1 -0
- package/dist/replay/hash.d.ts +31 -0
- package/dist/replay/hash.d.ts.map +1 -0
- package/dist/replay/replay-provider-runner.d.ts +53 -0
- package/dist/replay/replay-provider-runner.d.ts.map +1 -0
- package/dist/{index-CbyuOE5y.d.ts → security/capabilities.d.ts} +31 -34
- package/dist/security/capabilities.d.ts.map +1 -0
- package/dist/security/config-secrets.d.ts +25 -0
- package/dist/security/config-secrets.d.ts.map +1 -0
- package/dist/security/index.d.ts +7 -8
- package/dist/security/index.d.ts.map +1 -0
- package/dist/security/index.js +354 -401
- package/dist/security/index.js.map +7 -1
- package/dist/security/permission-policy-schema.d.ts +77 -0
- package/dist/security/permission-policy-schema.d.ts.map +1 -0
- package/dist/security/permission-policy.d.ts +158 -0
- package/dist/security/permission-policy.d.ts.map +1 -0
- package/dist/security/secret-scrubber.d.ts +14 -0
- package/dist/security/secret-scrubber.d.ts.map +1 -0
- package/dist/security/secret-vault.d.ts +96 -0
- package/dist/security/secret-vault.d.ts.map +1 -0
- package/dist/security/yolo-risk.d.ts +11 -0
- package/dist/security/yolo-risk.d.ts.map +1 -0
- package/dist/{session-registry-Dvg7i_IA.d.ts → session-registry.d.ts} +8 -9
- package/dist/session-registry.d.ts.map +1 -0
- package/dist/skills/foreign-sources.d.ts +59 -0
- package/dist/skills/foreign-sources.d.ts.map +1 -0
- package/dist/skills/frontmatter.d.ts +44 -0
- package/dist/skills/frontmatter.d.ts.map +1 -0
- package/dist/skills/github-fetcher.d.ts +38 -0
- package/dist/skills/github-fetcher.d.ts.map +1 -0
- package/dist/skills/index.d.ts +11 -582
- package/dist/skills/index.d.ts.map +1 -0
- package/dist/skills/index.js +81 -43
- package/dist/skills/index.js.map +7 -1
- package/dist/skills/limits.d.ts +92 -0
- package/dist/skills/limits.d.ts.map +1 -0
- package/dist/skills/manifest-store.d.ts +42 -0
- package/dist/skills/manifest-store.d.ts.map +1 -0
- package/dist/skills/registry/github-direct-adapter.d.ts +17 -0
- package/dist/skills/registry/github-direct-adapter.d.ts.map +1 -0
- package/dist/skills/registry/registry-adapter.d.ts +84 -0
- package/dist/skills/registry/registry-adapter.d.ts.map +1 -0
- package/dist/skills/registry/skills-sh-adapter.d.ts +13 -0
- package/dist/skills/registry/skills-sh-adapter.d.ts.map +1 -0
- package/dist/skills/skill-generator.d.ts +82 -0
- package/dist/skills/skill-generator.d.ts.map +1 -0
- package/dist/skills/skill-installer.d.ts +124 -0
- package/dist/skills/skill-installer.d.ts.map +1 -0
- package/dist/storage/annotations-store.d.ts +118 -0
- package/dist/storage/annotations-store.d.ts.map +1 -0
- package/dist/storage/attachment-store.d.ts +31 -0
- package/dist/storage/attachment-store.d.ts.map +1 -0
- package/dist/storage/cloud-sync.d.ts +44 -0
- package/dist/storage/cloud-sync.d.ts.map +1 -0
- package/dist/storage/completed-work-checkpoint.d.ts +11 -0
- package/dist/storage/completed-work-checkpoint.d.ts.map +1 -0
- package/dist/storage/config-loader.d.ts +114 -0
- package/dist/storage/config-loader.d.ts.map +1 -0
- package/dist/storage/config-migration.d.ts +87 -0
- package/dist/storage/config-migration.d.ts.map +1 -0
- package/dist/storage/config-store.d.ts +22 -0
- package/dist/storage/config-store.d.ts.map +1 -0
- package/dist/{director-state-CMS_bMs4.d.ts → storage/director-state.d.ts} +28 -8
- package/dist/storage/director-state.d.ts.map +1 -0
- package/dist/storage/file-session-writer.d.ts +169 -0
- package/dist/storage/file-session-writer.d.ts.map +1 -0
- package/dist/{goal-store-Datpp-ar.d.ts → storage/goal-store.d.ts} +26 -19
- package/dist/storage/goal-store.d.ts.map +1 -0
- package/dist/storage/index.d.ts +39 -1031
- package/dist/storage/index.d.ts.map +1 -0
- package/dist/storage/index.js +783 -443
- package/dist/storage/index.js.map +7 -1
- package/dist/storage/input-history-store.d.ts +56 -0
- package/dist/storage/input-history-store.d.ts.map +1 -0
- package/dist/storage/memory-backend.d.ts +66 -0
- package/dist/storage/memory-backend.d.ts.map +1 -0
- package/dist/storage/memory-consolidator.d.ts +50 -0
- package/dist/storage/memory-consolidator.d.ts.map +1 -0
- package/dist/storage/memory-graph-backend.d.ts +117 -0
- package/dist/storage/memory-graph-backend.d.ts.map +1 -0
- package/dist/storage/memory-store.d.ts +119 -0
- package/dist/storage/memory-store.d.ts.map +1 -0
- package/dist/storage/plan-store.d.ts +78 -0
- package/dist/storage/plan-store.d.ts.map +1 -0
- package/dist/storage/plan-templates.d.ts +21 -0
- package/dist/storage/plan-templates.d.ts.map +1 -0
- package/dist/storage/prompt-store.d.ts +37 -0
- package/dist/storage/prompt-store.d.ts.map +1 -0
- package/dist/storage/prompt-usage-store.d.ts +29 -0
- package/dist/storage/prompt-usage-store.d.ts.map +1 -0
- package/dist/storage/provider-config-watcher.d.ts +34 -0
- package/dist/storage/provider-config-watcher.d.ts.map +1 -0
- package/dist/storage/queue-store.d.ts +41 -0
- package/dist/storage/queue-store.d.ts.map +1 -0
- package/dist/storage/recovery-lock.d.ts +79 -0
- package/dist/storage/recovery-lock.d.ts.map +1 -0
- package/dist/storage/replay-log-store.d.ts +97 -0
- package/dist/storage/replay-log-store.d.ts.map +1 -0
- package/dist/storage/session-analyzer.d.ts +48 -0
- package/dist/storage/session-analyzer.d.ts.map +1 -0
- package/dist/storage/session-checkpoint-cas.d.ts +37 -0
- package/dist/storage/session-checkpoint-cas.d.ts.map +1 -0
- package/dist/{session-event-bridge-D_z_mBwk.d.ts → storage/session-event-bridge.d.ts} +14 -15
- package/dist/storage/session-event-bridge.d.ts.map +1 -0
- package/dist/storage/session-helpers.d.ts +9 -0
- package/dist/storage/session-helpers.d.ts.map +1 -0
- package/dist/storage/session-id.d.ts +18 -0
- package/dist/storage/session-id.d.ts.map +1 -0
- package/dist/storage/session-reader.d.ts +21 -0
- package/dist/storage/session-reader.d.ts.map +1 -0
- package/dist/storage/session-recovery.d.ts +93 -0
- package/dist/storage/session-recovery.d.ts.map +1 -0
- package/dist/storage/session-resume-validation.d.ts +6 -0
- package/dist/storage/session-resume-validation.d.ts.map +1 -0
- package/dist/storage/session-rewinder.d.ts +21 -0
- package/dist/storage/session-rewinder.d.ts.map +1 -0
- package/dist/storage/session-store.d.ts +219 -0
- package/dist/storage/session-store.d.ts.map +1 -0
- package/dist/storage/session-summary.d.ts +12 -0
- package/dist/storage/session-summary.d.ts.map +1 -0
- package/dist/storage/session-tool-call-ends.d.ts +5 -0
- package/dist/storage/session-tool-call-ends.d.ts.map +1 -0
- package/dist/storage/storage-concurrency.d.ts +2 -0
- package/dist/storage/storage-concurrency.d.ts.map +1 -0
- package/dist/storage/task-store.d.ts +33 -0
- package/dist/storage/task-store.d.ts.map +1 -0
- package/dist/storage/todos-checkpoint.d.ts +39 -0
- package/dist/storage/todos-checkpoint.d.ts.map +1 -0
- package/dist/storage/tool-audit-log.d.ts +141 -0
- package/dist/storage/tool-audit-log.d.ts.map +1 -0
- package/dist/tasking/index.d.ts +3 -124
- package/dist/tasking/index.d.ts.map +1 -0
- package/dist/tasking/index.js +57 -4
- package/dist/tasking/index.js.map +7 -1
- package/dist/tasking/task-store.d.ts +22 -0
- package/dist/tasking/task-store.d.ts.map +1 -0
- package/dist/tasking/task-tracker.d.ts +102 -0
- package/dist/tasking/task-tracker.d.ts.map +1 -0
- package/dist/tools/index.d.ts +2 -59
- package/dist/tools/index.d.ts.map +1 -0
- package/dist/tools/index.js +93 -14
- package/dist/tools/index.js.map +7 -1
- package/dist/tools/mcp-control.d.ts +53 -0
- package/dist/tools/mcp-control.d.ts.map +1 -0
- package/dist/tools/mcp-use.d.ts +24 -0
- package/dist/tools/mcp-use.d.ts.map +1 -0
- package/dist/types/agent-bridge.d.ts +42 -0
- package/dist/types/agent-bridge.d.ts.map +1 -0
- package/dist/types/attachment.d.ts +54 -0
- package/dist/types/attachment.d.ts.map +1 -0
- package/dist/types/autonomy.d.ts +5 -0
- package/dist/types/autonomy.d.ts.map +1 -0
- package/dist/types/blocks.d.ts +76 -0
- package/dist/types/blocks.d.ts.map +1 -0
- package/dist/{compactor-DQLL4HTo.d.ts → types/compactor.d.ts} +5 -7
- package/dist/types/compactor.d.ts.map +1 -0
- package/dist/{config-MRqn1V-u.d.ts → types/config.d.ts} +344 -355
- package/dist/types/config.d.ts.map +1 -0
- package/dist/types/context-evidence.d.ts +68 -0
- package/dist/types/context-evidence.d.ts.map +1 -0
- package/dist/types/context-window.d.ts +35 -0
- package/dist/types/context-window.d.ts.map +1 -0
- package/dist/{default-config-B79_gJYv.d.ts → types/default-config.d.ts} +10 -11
- package/dist/types/default-config.d.ts.map +1 -0
- package/dist/types/design-kit.d.ts +91 -0
- package/dist/types/design-kit.d.ts.map +1 -0
- package/dist/{retry-policy-CQ7KwXJa.d.ts → types/error-handler.d.ts} +5 -12
- package/dist/types/error-handler.d.ts.map +1 -0
- package/dist/types/errors.d.ts +277 -0
- package/dist/types/errors.d.ts.map +1 -0
- package/dist/types/hooks.d.ts +167 -0
- package/dist/types/hooks.d.ts.map +1 -0
- package/dist/types/index.d.ts +40 -244
- package/dist/types/index.d.ts.map +1 -0
- package/dist/types/index.js +101 -12
- package/dist/types/index.js.map +7 -1
- package/dist/{input-reader-E-ffP2ee.d.ts → types/input-reader.d.ts} +3 -4
- package/dist/types/input-reader.d.ts.map +1 -0
- package/dist/{logger-B63L5bTg.d.ts → types/logger.d.ts} +3 -4
- package/dist/types/logger.d.ts.map +1 -0
- package/dist/types/memory.d.ts +89 -0
- package/dist/types/memory.d.ts.map +1 -0
- package/dist/types/messages.d.ts +24 -0
- package/dist/types/messages.d.ts.map +1 -0
- package/dist/types/mode-prompts.d.ts +2 -0
- package/dist/types/mode-prompts.d.ts.map +1 -0
- package/dist/{mode-CZlO9iU1.d.ts → types/mode.d.ts} +6 -7
- package/dist/types/mode.d.ts.map +1 -0
- package/dist/types/models-registry.d.ts +105 -0
- package/dist/types/models-registry.d.ts.map +1 -0
- package/dist/types/multi-agent.d.ts +443 -0
- package/dist/types/multi-agent.d.ts.map +1 -0
- package/dist/{observability-D-HZN_mF.d.ts → types/observability.d.ts} +17 -13
- package/dist/types/observability.d.ts.map +1 -0
- package/dist/{path-resolver-CPRj4bFY.d.ts → types/path-resolver.d.ts} +2 -3
- package/dist/types/path-resolver.d.ts.map +1 -0
- package/dist/{permission-ByDKXEcG.d.ts → types/permission.d.ts} +8 -9
- package/dist/types/permission.d.ts.map +1 -0
- package/dist/types/plugin.d.ts +385 -0
- package/dist/types/plugin.d.ts.map +1 -0
- package/dist/types/prompt-registry.d.ts +81 -0
- package/dist/types/prompt-registry.d.ts.map +1 -0
- package/dist/{prompt-DLd35n4Q.d.ts → types/prompt.d.ts} +14 -15
- package/dist/types/prompt.d.ts.map +1 -0
- package/dist/{provider-runner-ChL-kVg6.d.ts → types/provider-runner.d.ts} +9 -10
- package/dist/types/provider-runner.d.ts.map +1 -0
- package/dist/types/provider.d.ts +387 -0
- package/dist/types/provider.d.ts.map +1 -0
- package/dist/types/renderer.d.ts +23 -0
- package/dist/types/renderer.d.ts.map +1 -0
- package/dist/types/retry-policy.d.ts +7 -0
- package/dist/types/retry-policy.d.ts.map +1 -0
- package/dist/types/secret-scrubber.d.ts +5 -0
- package/dist/types/secret-scrubber.d.ts.map +1 -0
- package/dist/{secret-vault-BAKpgFw_.d.ts → types/secret-vault.d.ts} +13 -7
- package/dist/types/secret-vault.d.ts.map +1 -0
- package/dist/{selector-D8O6B_Rm.d.ts → types/selector.d.ts} +4 -6
- package/dist/types/selector.d.ts.map +1 -0
- package/dist/types/session-reader.d.ts +81 -0
- package/dist/types/session-reader.d.ts.map +1 -0
- package/dist/{session-rewinder-C9HnMkhP.d.ts → types/session-rewinder.d.ts} +5 -6
- package/dist/types/session-rewinder.d.ts.map +1 -0
- package/dist/types/session.d.ts +650 -0
- package/dist/types/session.d.ts.map +1 -0
- package/dist/types/side-effect.d.ts +34 -0
- package/dist/types/side-effect.d.ts.map +1 -0
- package/dist/{skill-DHniprNl.d.ts → types/skill.d.ts} +4 -5
- package/dist/types/skill.d.ts.map +1 -0
- package/dist/types/slash-command.d.ts +59 -0
- package/dist/types/slash-command.d.ts.map +1 -0
- package/dist/types/spec.d.ts +77 -0
- package/dist/types/spec.d.ts.map +1 -0
- package/dist/types/system-prompt-contributor.d.ts +20 -0
- package/dist/types/system-prompt-contributor.d.ts.map +1 -0
- package/dist/types/system-prompt.d.ts +51 -0
- package/dist/types/system-prompt.d.ts.map +1 -0
- package/dist/{task-graph-CH3acNQ7.d.ts → types/task-graph.d.ts} +21 -22
- package/dist/types/task-graph.d.ts.map +1 -0
- package/dist/types/token-counter.d.ts +42 -0
- package/dist/types/token-counter.d.ts.map +1 -0
- package/dist/types/tool-executor.d.ts +133 -0
- package/dist/types/tool-executor.d.ts.map +1 -0
- package/dist/types/tool-markers.d.ts +23 -0
- package/dist/types/tool-markers.d.ts.map +1 -0
- package/dist/types/tool.d.ts +252 -0
- package/dist/types/tool.d.ts.map +1 -0
- package/dist/types/utility-types.d.ts +31 -0
- package/dist/types/utility-types.d.ts.map +1 -0
- package/dist/utils/assert-never.d.ts +14 -0
- package/dist/utils/assert-never.d.ts.map +1 -0
- package/dist/utils/atomic-write.d.ts +12 -0
- package/dist/utils/atomic-write.d.ts.map +1 -0
- package/dist/utils/child-env.d.ts +67 -0
- package/dist/utils/child-env.d.ts.map +1 -0
- package/dist/utils/color.d.ts +20 -0
- package/dist/utils/color.d.ts.map +1 -0
- package/dist/utils/config-json.d.ts +14 -0
- package/dist/utils/config-json.d.ts.map +1 -0
- package/dist/utils/context-evidence.d.ts +47 -0
- package/dist/utils/context-evidence.d.ts.map +1 -0
- package/dist/utils/deep-merge.d.ts +64 -0
- package/dist/utils/deep-merge.d.ts.map +1 -0
- package/dist/utils/diff.d.ts +11 -0
- package/dist/utils/diff.d.ts.map +1 -0
- package/dist/utils/error.d.ts +2 -3
- package/dist/utils/error.d.ts.map +1 -0
- package/dist/utils/error.js +3 -3
- package/dist/utils/error.js.map +7 -1
- package/dist/utils/expect-defined.d.ts +2 -3
- package/dist/utils/expect-defined.d.ts.map +1 -0
- package/dist/utils/expect-defined.js +3 -3
- package/dist/utils/expect-defined.js.map +7 -1
- package/dist/utils/glob-expand.d.ts +10 -0
- package/dist/utils/glob-expand.d.ts.map +1 -0
- package/dist/utils/glob-match.d.ts +4 -0
- package/dist/utils/glob-match.d.ts.map +1 -0
- package/dist/utils/incoming-images.d.ts +39 -0
- package/dist/utils/incoming-images.d.ts.map +1 -0
- package/dist/utils/index.d.ts +38 -920
- package/dist/utils/index.d.ts.map +1 -0
- package/dist/utils/index.js +323 -36
- package/dist/utils/index.js.map +7 -1
- package/dist/utils/instruction-file.d.ts +3 -0
- package/dist/utils/instruction-file.d.ts.map +1 -0
- package/dist/utils/ip-guard.d.ts +34 -0
- package/dist/utils/ip-guard.d.ts.map +1 -0
- package/dist/utils/json-repair.d.ts +23 -0
- package/dist/utils/json-repair.d.ts.map +1 -0
- package/dist/utils/json-schema-validate.d.ts +42 -0
- package/dist/utils/json-schema-validate.d.ts.map +1 -0
- package/dist/utils/lru-cache.d.ts +29 -0
- package/dist/utils/lru-cache.d.ts.map +1 -0
- package/dist/utils/merge-custom-models.d.ts +12 -0
- package/dist/utils/merge-custom-models.d.ts.map +1 -0
- package/dist/utils/merge-models-payload.d.ts +20 -0
- package/dist/utils/merge-models-payload.d.ts.map +1 -0
- package/dist/utils/message-invariants.d.ts +22 -0
- package/dist/utils/message-invariants.d.ts.map +1 -0
- package/dist/utils/newline-normalize.d.ts +5 -0
- package/dist/utils/newline-normalize.d.ts.map +1 -0
- package/dist/utils/regex-guard.d.ts +21 -0
- package/dist/utils/regex-guard.d.ts.map +1 -0
- package/dist/utils/safe-json.d.ts +31 -0
- package/dist/utils/safe-json.d.ts.map +1 -0
- package/dist/utils/session-scoped-path.d.ts +13 -0
- package/dist/utils/session-scoped-path.d.ts.map +1 -0
- package/dist/utils/sleep.d.ts +5 -0
- package/dist/utils/sleep.d.ts.map +1 -0
- package/dist/utils/slug.d.ts +13 -0
- package/dist/utils/slug.d.ts.map +1 -0
- package/dist/utils/string.d.ts +9 -0
- package/dist/utils/string.d.ts.map +1 -0
- package/dist/utils/task-format.d.ts +22 -0
- package/dist/utils/task-format.d.ts.map +1 -0
- package/dist/utils/term.d.ts +133 -0
- package/dist/utils/term.d.ts.map +1 -0
- package/dist/utils/todos-format.d.ts +30 -0
- package/dist/utils/todos-format.d.ts.map +1 -0
- package/dist/utils/token-estimate.d.ts +112 -0
- package/dist/utils/token-estimate.d.ts.map +1 -0
- package/dist/utils/tool-description-mode.d.ts +28 -0
- package/dist/utils/tool-description-mode.d.ts.map +1 -0
- package/dist/utils/tool-output-serializer.d.ts +40 -0
- package/dist/utils/tool-output-serializer.d.ts.map +1 -0
- package/dist/utils/tool-result-render-mode.d.ts +55 -0
- package/dist/utils/tool-result-render-mode.d.ts.map +1 -0
- package/dist/utils/tool-subject.d.ts +5 -0
- package/dist/utils/tool-subject.d.ts.map +1 -0
- package/dist/utils/tool-wire-compact.d.ts +28 -0
- package/dist/utils/tool-wire-compact.d.ts.map +1 -0
- package/dist/utils/ulid.d.ts +11 -0
- package/dist/utils/ulid.d.ts.map +1 -0
- package/dist/{wstack-paths-C3K40Qst.d.ts → utils/wstack-paths.d.ts} +7 -8
- package/dist/utils/wstack-paths.d.ts.map +1 -0
- package/dist/worktree/index.d.ts +2 -0
- package/dist/worktree/index.d.ts.map +1 -0
- package/dist/{worktree-manager-DzwxKE35.d.ts → worktree/worktree-manager.d.ts} +32 -17
- package/dist/worktree/worktree-manager.d.ts.map +1 -0
- package/instructions/agents/browser.md +25 -16
- package/instructions/autonomy/active-mission.md +2 -4
- package/instructions/coordination/subagent-baseline.md +16 -2
- package/instructions/leader-after-task.md +3 -1
- package/instructions/sections/tool/common-patterns.md +7 -1
- package/instructions/sections/tool/delegation-full.md +1 -1
- package/instructions/system.md +47 -0
- package/package.json +4 -5
- package/skills/docker-deploy/SKILL.md +1 -1
- package/skills/node-modern/SKILL.md +2 -2
- package/skills/plugin-author/SKILL.md +9 -16
- package/skills/wrongstack-mailbox/SKILL.md +51 -12
- package/dist/dispatcher-types.d-BBeXBQgS.d.ts +0 -66
- package/dist/global-mailbox-sZwyI6CS.d.ts +0 -959
- package/dist/index--Gm41aBJ.d.ts +0 -671
- package/dist/mcp-servers-DEV4s6Ks.d.ts +0 -259
- package/dist/multi-agent-coordinator-4RCRZKjN.d.ts +0 -1770
- package/dist/null-fleet-bus-CFoNVQEK.d.ts +0 -2127
- package/dist/pipeline-DGDyIohT.d.ts +0 -331
- package/dist/provider-model-resolve-o2hHLs79.d.ts +0 -263
- package/dist/secret-scrubber-3MHDDAtm.d.ts +0 -6
- package/dist/secret-vault-DxohkUBc.d.ts +0 -272
- package/dist/session-reader-7Esxrkpw.d.ts +0 -155
- package/dist/task-format-GX0B1mMC.d.ts +0 -23
- package/dist/todos-checkpoint-FY7PjmMx.d.ts +0 -850
- package/dist/tool-BNlnIJvo.d.ts +0 -2190
- package/dist/tool-executor-CckSCM5E.d.ts +0 -906
|
@@ -0,0 +1,49 @@
|
|
|
1
|
+
import type { HealthRegistry, MetricsSink, MetricsSnapshot } from '../types/observability.js';
|
|
2
|
+
/** TLS options for HTTPS metrics endpoint. */
|
|
3
|
+
export interface MetricsTlsOptions {
|
|
4
|
+
cert: string;
|
|
5
|
+
key: string;
|
|
6
|
+
}
|
|
7
|
+
/**
|
|
8
|
+
* Render a `MetricsSnapshot` as Prometheus text-format bytes. The output
|
|
9
|
+
* always ends with a trailing newline (Prometheus requires it).
|
|
10
|
+
*/
|
|
11
|
+
export declare function renderPrometheus(snapshot: MetricsSnapshot): string;
|
|
12
|
+
/** MIME type Prometheus servers must respond with on /metrics. */
|
|
13
|
+
export declare const PROMETHEUS_CONTENT_TYPE = "text/plain; version=0.0.4; charset=utf-8";
|
|
14
|
+
export interface MetricsServerOptions {
|
|
15
|
+
port: number;
|
|
16
|
+
/** Bind address. Defaults to 127.0.0.1 so we don't accidentally expose metrics publicly. */
|
|
17
|
+
host?: string | undefined;
|
|
18
|
+
sink: MetricsSink;
|
|
19
|
+
/** Path to serve on. Defaults to /metrics. */
|
|
20
|
+
path?: string | undefined;
|
|
21
|
+
/**
|
|
22
|
+
* V2-C: optional health registry. When provided, the server also responds
|
|
23
|
+
* on `/healthz` (configurable via `healthPath`) with a JSON aggregate of
|
|
24
|
+
* every registered health check. K8s probes expect a single HTTP server
|
|
25
|
+
* exposing both `/metrics` and `/healthz`, so we mount them on the same
|
|
26
|
+
* port rather than opening a sibling listener.
|
|
27
|
+
*/
|
|
28
|
+
healthRegistry?: HealthRegistry | undefined;
|
|
29
|
+
/** Path to serve health JSON on. Defaults to /healthz. */
|
|
30
|
+
healthPath?: string | undefined;
|
|
31
|
+
/** Enable HTTPS by providing TLS key/cert. Both required. */
|
|
32
|
+
tls?: MetricsTlsOptions | undefined;
|
|
33
|
+
}
|
|
34
|
+
export interface MetricsServerHandle {
|
|
35
|
+
port: number;
|
|
36
|
+
url: string;
|
|
37
|
+
close(): Promise<void>;
|
|
38
|
+
}
|
|
39
|
+
/**
|
|
40
|
+
* Start an HTTP server that exposes a Prometheus scrape endpoint.
|
|
41
|
+
* Uses node:http directly to avoid pulling a framework into the core graph.
|
|
42
|
+
*
|
|
43
|
+
* Why bind to 127.0.0.1 by default: telemetry endpoints inside an agent
|
|
44
|
+
* process can leak prompt content via metric labels (tool name, error
|
|
45
|
+
* message, etc.). The default keeps that on the loopback interface;
|
|
46
|
+
* operators who want network scraping opt in explicitly with host: '0.0.0.0'.
|
|
47
|
+
*/
|
|
48
|
+
export declare function startMetricsServer(opts: MetricsServerOptions): Promise<MetricsServerHandle>;
|
|
49
|
+
//# sourceMappingURL=prometheus.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"prometheus.d.ts","sourceRoot":"","sources":["../../src/observability/prometheus.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,cAAc,EAAE,WAAW,EAAE,eAAe,EAAE,MAAM,2BAA2B,CAAC;AAG9F,8CAA8C;AAC9C,MAAM,WAAW,iBAAiB;IAChC,IAAI,EAAE,MAAM,CAAC;IACb,GAAG,EAAE,MAAM,CAAC;CACb;AAyCD;;;GAGG;AACH,wBAAgB,gBAAgB,CAAC,QAAQ,EAAE,eAAe,GAAG,MAAM,CA8ClE;AAED,kEAAkE;AAClE,eAAO,MAAM,uBAAuB,6CAA6C,CAAC;AAElF,MAAM,WAAW,oBAAoB;IACnC,IAAI,EAAE,MAAM,CAAC;IACb,4FAA4F;IAC5F,IAAI,CAAC,EAAE,MAAM,GAAG,SAAS,CAAC;IAC1B,IAAI,EAAE,WAAW,CAAC;IAClB,8CAA8C;IAC9C,IAAI,CAAC,EAAE,MAAM,GAAG,SAAS,CAAC;IAC1B;;;;;;OAMG;IACH,cAAc,CAAC,EAAE,cAAc,GAAG,SAAS,CAAC;IAC5C,0DAA0D;IAC1D,UAAU,CAAC,EAAE,MAAM,GAAG,SAAS,CAAC;IAChC,6DAA6D;IAC7D,GAAG,CAAC,EAAE,iBAAiB,GAAG,SAAS,CAAC;CACrC;AAED,MAAM,WAAW,mBAAmB;IAClC,IAAI,EAAE,MAAM,CAAC;IACb,GAAG,EAAE,MAAM,CAAC;IACZ,KAAK,IAAI,OAAO,CAAC,IAAI,CAAC,CAAC;CACxB;AAED;;;;;;;;GAQG;AACH,wBAAsB,kBAAkB,CAAC,IAAI,EAAE,oBAAoB,GAAG,OAAO,CAAC,mBAAmB,CAAC,CA0FjG"}
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
import type { Span, Tracer } from '../types/observability.js';
|
|
2
|
+
/**
|
|
3
|
+
* Default tracer is a noop — zero overhead when observability is not wired up.
|
|
4
|
+
* Replace at runtime with an OpenTelemetry-backed Tracer to enable real spans.
|
|
5
|
+
*/
|
|
6
|
+
export declare class NoopTracer implements Tracer {
|
|
7
|
+
startSpan(): Span;
|
|
8
|
+
}
|
|
9
|
+
//# sourceMappingURL=tracer.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"tracer.d.ts","sourceRoot":"","sources":["../../src/observability/tracer.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,IAAI,EAAE,MAAM,EAAE,MAAM,2BAA2B,CAAC;AAE9D;;;GAGG;AACH,qBAAa,UAAW,YAAW,MAAM;IACvC,SAAS,IAAI,IAAI,CAEhB;CACF"}
|
|
@@ -0,0 +1,226 @@
|
|
|
1
|
+
import type { Mailbox } from '../coordination/mailbox-types.js';
|
|
2
|
+
import { ExtensionRegistry } from '../extension/registry.js';
|
|
3
|
+
import type { HookRegistry } from '../hooks/registry.js';
|
|
4
|
+
import type { Container } from '../kernel/container.js';
|
|
5
|
+
import type { EventBus, EventName, Listener } from '../kernel/events.js';
|
|
6
|
+
import type { ProviderRegistry } from '../registry/provider-registry.js';
|
|
7
|
+
import type { SlashCommandRegistry } from '../registry/slash-command-registry.js';
|
|
8
|
+
import type { ToolRegistry } from '../registry/tool-registry.js';
|
|
9
|
+
import type { Config } from '../types/config.js';
|
|
10
|
+
import type { HookEvent, HookMatcher, InProcessHook } from '../types/hooks.js';
|
|
11
|
+
import type { Logger } from '../types/logger.js';
|
|
12
|
+
import type { ModelsRegistry } from '../types/models-registry.js';
|
|
13
|
+
import type { MCPRegistryView, MetricsSinkView, PluginAPI, PluginCapabilities, PluginDependency, PluginLLM, PluginPipelines, ProviderRegistryView, SessionWriterView, SlashCommandRegistryView, ToolRegistryView } from '../types/plugin.js';
|
|
14
|
+
import type { Provider } from '../types/provider.js';
|
|
15
|
+
import type { SystemPromptContributor } from '../types/system-prompt-contributor.js';
|
|
16
|
+
import type { JSONSchema } from '../types/tool.js';
|
|
17
|
+
export interface PluginAPIInit {
|
|
18
|
+
ownerName: string;
|
|
19
|
+
container: Container;
|
|
20
|
+
events: EventBus;
|
|
21
|
+
/**
|
|
22
|
+
* The agent's concrete pipelines. `DefaultPluginAPI` converts each to a
|
|
23
|
+
* `ReadonlyPipeline` before exposing them to the plugin — plugins can
|
|
24
|
+
* inspect and invoke pipelines but cannot mutate them.
|
|
25
|
+
*/
|
|
26
|
+
pipelines: PluginPipelines;
|
|
27
|
+
toolRegistry: ToolRegistry;
|
|
28
|
+
providerRegistry: ProviderRegistry;
|
|
29
|
+
slashCommandRegistry?: SlashCommandRegistry | undefined;
|
|
30
|
+
mcpRegistry?: MCPRegistryView | undefined;
|
|
31
|
+
/**
|
|
32
|
+
* The agent's extension registry. Plugins register AgentExtension
|
|
33
|
+
* instances here to hook into agent lifecycle events.
|
|
34
|
+
*/
|
|
35
|
+
extensions?: ExtensionRegistry | undefined;
|
|
36
|
+
/**
|
|
37
|
+
* The host's lifecycle hook registry. When provided, `api.registerHook`
|
|
38
|
+
* adds in-process hooks here. When absent, `registerHook` is a noop.
|
|
39
|
+
*/
|
|
40
|
+
hookRegistry?: HookRegistry | undefined;
|
|
41
|
+
/**
|
|
42
|
+
* The active session writer. Plugins append custom events here.
|
|
43
|
+
* When not provided, a noop writer is used.
|
|
44
|
+
*/
|
|
45
|
+
sessionWriter?: SessionWriterView | undefined;
|
|
46
|
+
/**
|
|
47
|
+
* The host's metrics sink. When set, the plugin gets a scoped view
|
|
48
|
+
* that auto-prefixes metric names with `plugin.<pluginName>.`.
|
|
49
|
+
* When not provided, a noop sink is used.
|
|
50
|
+
*/
|
|
51
|
+
metricsSink?: MetricsSinkView | undefined;
|
|
52
|
+
/**
|
|
53
|
+
* The host's models registry (models.dev-backed catalog of providers,
|
|
54
|
+
* models, and per-token pricing). When provided, plugins that need
|
|
55
|
+
* model metadata (cost-tracker, billing reports) can query it instead
|
|
56
|
+
* of relying on bundled tables. Optional — minimal hosts/tests may
|
|
57
|
+
* omit it.
|
|
58
|
+
*/
|
|
59
|
+
modelsRegistry?: ModelsRegistry | undefined;
|
|
60
|
+
/**
|
|
61
|
+
* The host's project-level mailbox. When provided, plugins that publish
|
|
62
|
+
* to other agents (todo-listener, session-recap) can call `api.mailbox.send`.
|
|
63
|
+
* When not provided, those plugins should gracefully no-op.
|
|
64
|
+
*/
|
|
65
|
+
mailbox?: Mailbox | undefined;
|
|
66
|
+
/**
|
|
67
|
+
* LLM wiring for `api.llm`. When provided, `DefaultPluginAPI` exposes a
|
|
68
|
+
* `PluginLLM` that routes completions through the host's provider layer:
|
|
69
|
+
*
|
|
70
|
+
* - `provider` — the host session's live default Provider instance
|
|
71
|
+
* - `model` — the host session's default model id
|
|
72
|
+
* - `createProvider` — optional factory used when a plugin requests a
|
|
73
|
+
* DIFFERENT provider by name (per-call `opts.provider` or the plugin's
|
|
74
|
+
* `config.extensions[<name>].llm.provider`). The CLI host passes an
|
|
75
|
+
* implementation backed by the provider registry + saved provider
|
|
76
|
+
* configs; when absent, `DefaultPluginAPI` falls back to
|
|
77
|
+
* `providerRegistry.create({ ...config.providers[name], type: name })`.
|
|
78
|
+
*
|
|
79
|
+
* Omit entirely on minimal hosts — `api.llm` stays undefined and plugins
|
|
80
|
+
* must guard.
|
|
81
|
+
*/
|
|
82
|
+
llm?: {
|
|
83
|
+
provider: Provider;
|
|
84
|
+
model: string;
|
|
85
|
+
createProvider?: ((name: string, model?: string) => Provider) | undefined;
|
|
86
|
+
} | undefined;
|
|
87
|
+
config: Config;
|
|
88
|
+
/**
|
|
89
|
+
* The host's ConfigStore. Used to wire `api.onConfigChange()`.
|
|
90
|
+
* When not provided, `onConfigChange` is a noop.
|
|
91
|
+
*/
|
|
92
|
+
configStore?: {
|
|
93
|
+
watch(cb: (next: unknown, prev: unknown) => void): () => void;
|
|
94
|
+
};
|
|
95
|
+
log: Logger;
|
|
96
|
+
/**
|
|
97
|
+
* Whether this plugin is first-party ("official"). Set by the host based on
|
|
98
|
+
* the plugin's load source (e.g. shipped in the built-in factory list), NOT
|
|
99
|
+
* self-declared by the plugin. Official plugins may register bare slash
|
|
100
|
+
* command names and override built-ins; external plugins are namespaced.
|
|
101
|
+
* Defaults to false.
|
|
102
|
+
*/
|
|
103
|
+
official?: boolean | undefined;
|
|
104
|
+
/**
|
|
105
|
+
* Declared capabilities of the plugin. Used for capability-based
|
|
106
|
+
* authorization checks (e.g. tool mutation permissions).
|
|
107
|
+
*/
|
|
108
|
+
capabilities?: PluginCapabilities | undefined;
|
|
109
|
+
}
|
|
110
|
+
export declare class DefaultPluginAPI implements PluginAPI {
|
|
111
|
+
readonly container: Container;
|
|
112
|
+
readonly events: EventBus;
|
|
113
|
+
readonly pipelines: PluginPipelines;
|
|
114
|
+
readonly tools: ToolRegistryView;
|
|
115
|
+
readonly providers: ProviderRegistryView;
|
|
116
|
+
readonly mcp: MCPRegistryView;
|
|
117
|
+
readonly slashCommands: SlashCommandRegistryView;
|
|
118
|
+
readonly extensions: ExtensionRegistry;
|
|
119
|
+
readonly session: SessionWriterView;
|
|
120
|
+
readonly metrics: MetricsSinkView;
|
|
121
|
+
readonly config: Config;
|
|
122
|
+
readonly log: Logger;
|
|
123
|
+
readonly modelsRegistry: ModelsRegistry | undefined;
|
|
124
|
+
readonly mailbox: Mailbox | undefined;
|
|
125
|
+
readonly llm: PluginLLM | undefined;
|
|
126
|
+
private readonly configStore;
|
|
127
|
+
private readonly hookRegistry;
|
|
128
|
+
private readonly ownerName;
|
|
129
|
+
private readonly pluginCleanupFns;
|
|
130
|
+
constructor(init: PluginAPIInit);
|
|
131
|
+
onEvent<K extends EventName>(event: K, handler: Listener<K>): () => void;
|
|
132
|
+
onPattern(pattern: string, handler: (event: string, payload: unknown) => void): () => void;
|
|
133
|
+
emitCustom(event: string, payload: unknown): void;
|
|
134
|
+
onConfigChange(handler: (next: Readonly<Config>, prev: Readonly<Config>) => void): () => void;
|
|
135
|
+
/** Called by the plugin loader when uninstalling the plugin. */
|
|
136
|
+
drainCleanup(): void;
|
|
137
|
+
registerSystemPromptContributor(c: SystemPromptContributor): () => void;
|
|
138
|
+
registerHook(event: HookEvent, matcher: HookMatcher | undefined, hook: InProcessHook, options?: import('../types/hooks.js').HookRegistrationOptions | undefined): () => void;
|
|
139
|
+
}
|
|
140
|
+
/**
|
|
141
|
+
* Define a plugin with automatic `apiVersion` injection and optional
|
|
142
|
+
* TypeScript type inference for the plugin options schema.
|
|
143
|
+
*
|
|
144
|
+
* The `options` generic is inferred from the `factory` function's second
|
|
145
|
+
* parameter, so annotating it gives you fully-typed options throughout:
|
|
146
|
+
*
|
|
147
|
+
* @example
|
|
148
|
+
* ```ts
|
|
149
|
+
* import { definePlugin } from '@wrongstack/core';
|
|
150
|
+
*
|
|
151
|
+
* interface MyOptions {
|
|
152
|
+
* threshold: number;
|
|
153
|
+
* enabled: boolean;
|
|
154
|
+
* }
|
|
155
|
+
*
|
|
156
|
+
* const myPlugin = definePlugin(
|
|
157
|
+
* {
|
|
158
|
+
* name: 'my-plugin',
|
|
159
|
+
* version: '0.1.0',
|
|
160
|
+
* description: 'My example plugin',
|
|
161
|
+
* capabilities: { tools: true },
|
|
162
|
+
* configSchema: {
|
|
163
|
+
* type: 'object',
|
|
164
|
+
* properties: {
|
|
165
|
+
* threshold: { type: 'number', default: 100 },
|
|
166
|
+
* enabled: { type: 'boolean', default: true },
|
|
167
|
+
* },
|
|
168
|
+
* },
|
|
169
|
+
* defaultConfig: { threshold: 100, enabled: true },
|
|
170
|
+
* },
|
|
171
|
+
* (api, options) => {
|
|
172
|
+
* // options.threshold is `number` here, not `unknown`
|
|
173
|
+
* api.tools.register({
|
|
174
|
+
* name: 'my-tool',
|
|
175
|
+
* description: `Threshold is ${options.threshold}`,
|
|
176
|
+
* // ...
|
|
177
|
+
* });
|
|
178
|
+
* },
|
|
179
|
+
* );
|
|
180
|
+
*
|
|
181
|
+
* export default myPlugin;
|
|
182
|
+
* ```
|
|
183
|
+
*
|
|
184
|
+
* Plugins that don't need typed options can omit the interface and let
|
|
185
|
+
* TypeScript infer from `defaultConfig`, or omit `defaultConfig` entirely
|
|
186
|
+
* (options will be `undefined` at runtime, accessible via `api.config`):
|
|
187
|
+
*
|
|
188
|
+
* @example
|
|
189
|
+
* ```ts
|
|
190
|
+
* const simplePlugin = definePlugin(
|
|
191
|
+
* { name: 'simple' },
|
|
192
|
+
* (api) => {
|
|
193
|
+
* api.tools.register({ name: 'ping', description: 'Ping the service' });
|
|
194
|
+
* },
|
|
195
|
+
* );
|
|
196
|
+
* ```
|
|
197
|
+
*
|
|
198
|
+
* The `apiVersion` is automatically set to the current `KERNEL_API_VERSION`
|
|
199
|
+
* so plugins are always compatible with the kernel that loaded them.
|
|
200
|
+
* Plugins that need to pin to a specific kernel version can override it
|
|
201
|
+
* in the returned object before exporting.
|
|
202
|
+
*/
|
|
203
|
+
export declare function definePlugin<const TOptions extends Record<string, unknown> | undefined>(metadata: {
|
|
204
|
+
name: string;
|
|
205
|
+
version?: string | undefined;
|
|
206
|
+
description?: string | undefined;
|
|
207
|
+
capabilities?: PluginCapabilities | undefined;
|
|
208
|
+
configSchema?: JSONSchema | undefined;
|
|
209
|
+
defaultConfig?: TOptions | undefined;
|
|
210
|
+
dependsOn?: (string | PluginDependency)[] | undefined;
|
|
211
|
+
optionalDeps?: (string | PluginDependency)[] | undefined;
|
|
212
|
+
conflictsWith?: string[] | undefined;
|
|
213
|
+
}, factory: (api: PluginAPI, options: TOptions) => void | Promise<void>): {
|
|
214
|
+
name: string;
|
|
215
|
+
version?: string | undefined;
|
|
216
|
+
description?: string | undefined;
|
|
217
|
+
apiVersion: string;
|
|
218
|
+
capabilities?: PluginCapabilities | undefined;
|
|
219
|
+
configSchema?: JSONSchema | undefined;
|
|
220
|
+
defaultConfig?: TOptions | undefined;
|
|
221
|
+
dependsOn?: (string | PluginDependency)[] | undefined;
|
|
222
|
+
optionalDeps?: (string | PluginDependency)[] | undefined;
|
|
223
|
+
conflictsWith?: string[] | undefined;
|
|
224
|
+
setup: (api: PluginAPI) => void | Promise<void>;
|
|
225
|
+
};
|
|
226
|
+
//# sourceMappingURL=api.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"api.d.ts","sourceRoot":"","sources":["../../src/plugin/api.ts"],"names":[],"mappings":"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"}
|
|
@@ -0,0 +1,73 @@
|
|
|
1
|
+
import type { Logger } from '../types/logger.js';
|
|
2
|
+
import type { Plugin, PluginAPI } from '../types/plugin.js';
|
|
3
|
+
/**
|
|
4
|
+
* Stable plugin API contract version. This is intentionally independent of
|
|
5
|
+
* the package version: bump only when the surface visible to plugins
|
|
6
|
+
* (PluginAPI, types/plugin) changes in a way that breaks existing setup
|
|
7
|
+
* functions. Plugins declare `apiVersion: "^1.0"` to opt into this contract.
|
|
8
|
+
*
|
|
9
|
+
* 0.1.9: additive — `FleetSpawnBudgetError|FleetCostCapError` plus `FLEET_ROSTER` and the
|
|
10
|
+
* pre-built fleet agent configs (Audit Log, Bug Hunter, Refactor Planner,
|
|
11
|
+
* Security Scanner) now exported from `@wrongstack/core`.
|
|
12
|
+
* 0.1.10: additive — extended-thinking stream events, core subpath
|
|
13
|
+
* exports, tool output size chips on `tool.executed`. Plugin contract
|
|
14
|
+
* unchanged otherwise; 0.1.x range still loads cleanly.
|
|
15
|
+
*
|
|
16
|
+
* Note: the package shipped as 0.2.0, but the *plugin contract* didn't
|
|
17
|
+
* change in a breaking way — `SubagentError`, `subagent.tool_executed`,
|
|
18
|
+
* `transcriptPath`, `planTool`, `delegate`, `runText`, and Director
|
|
19
|
+
* sessionWriter are all additive to the surface. We deliberately keep
|
|
20
|
+
* the kernel API at 0.1.10 so plugins pinning `apiVersion: "^0.1"`
|
|
21
|
+
* keep loading. Bump to 1.0 when we stabilize and want the freedom to
|
|
22
|
+
* remove deprecated surfaces.
|
|
23
|
+
*/
|
|
24
|
+
export declare const KERNEL_API_VERSION = "0.1.10";
|
|
25
|
+
export interface LoadPluginsOptions {
|
|
26
|
+
apiFactory: (plugin: Plugin) => PluginAPI;
|
|
27
|
+
log: Logger;
|
|
28
|
+
kernelApiVersion?: string | undefined;
|
|
29
|
+
/**
|
|
30
|
+
* Per-plugin options keyed by plugin name. When a plugin declares
|
|
31
|
+
* `configSchema`, the loader validates `pluginOptions[plugin.name]`
|
|
32
|
+
* against it before calling `setup`. Pass `Config.plugins` shaped
|
|
33
|
+
* `{ [name]: { options } }` or any flat record.
|
|
34
|
+
*/
|
|
35
|
+
pluginOptions?: Record<string, unknown>;
|
|
36
|
+
/**
|
|
37
|
+
* When true, the loader throws a PluginError if a plugin calls an API
|
|
38
|
+
* method that contradicts its declared `capabilities` — instead of
|
|
39
|
+
* just logging a warning. Use in CI/strict deployments to enforce
|
|
40
|
+
* manifest honesty. Default: false (log-only, backward-compatible).
|
|
41
|
+
*/
|
|
42
|
+
enforceCapabilities?: boolean | undefined;
|
|
43
|
+
/**
|
|
44
|
+
* Timeout in milliseconds for each plugin's `setup()` call. If the
|
|
45
|
+
* plugin's setup exceeds this deadline it is treated as a failure
|
|
46
|
+
* and the plugin is not loaded. Default: 30 000 ms.
|
|
47
|
+
*/
|
|
48
|
+
setupTimeoutMs?: number | undefined;
|
|
49
|
+
/**
|
|
50
|
+
* Timeout in milliseconds for each plugin's `teardown()` call. If the
|
|
51
|
+
* plugin's teardown exceeds this deadline it is treated as a best-effort
|
|
52
|
+
* failure (logged but not propagated). Default: 10 000 ms.
|
|
53
|
+
*/
|
|
54
|
+
teardownTimeoutMs?: number | undefined;
|
|
55
|
+
}
|
|
56
|
+
export declare function loadPlugins(plugins: Plugin[], opts: LoadPluginsOptions): Promise<{
|
|
57
|
+
loaded: Plugin[];
|
|
58
|
+
failed: {
|
|
59
|
+
plugin: Plugin;
|
|
60
|
+
err: unknown;
|
|
61
|
+
}[];
|
|
62
|
+
}>;
|
|
63
|
+
/**
|
|
64
|
+
* Tear down loaded plugins in reverse-dependency order. `teardown()` is
|
|
65
|
+
* best-effort: errors are caught and logged so a single misbehaving plugin
|
|
66
|
+
* can't abort the host shutdown sequence.
|
|
67
|
+
*
|
|
68
|
+
* Pass the result of a prior `loadPlugins(...)` call's `loaded` array, plus
|
|
69
|
+
* the original `LoadPluginsOptions` so the same `apiFactory` (and the same
|
|
70
|
+
* PluginAPI surface the plugin saw during `setup`) is used for `teardown`.
|
|
71
|
+
*/
|
|
72
|
+
export declare function unloadPlugins(loadedPlugins: Plugin[], opts: LoadPluginsOptions): Promise<void>;
|
|
73
|
+
//# sourceMappingURL=loader.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"loader.d.ts","sourceRoot":"","sources":["../../src/plugin/loader.ts"],"names":[],"mappings":"AACA,OAAO,KAAK,EAAE,MAAM,EAAE,MAAM,oBAAoB,CAAC;AACjD,OAAO,KAAK,EAAE,MAAM,EAAE,SAAS,EAAoB,MAAM,oBAAoB,CAAC;AAS9E;;;;;;;;;;;;;;;;;;;;GAoBG;AACH,eAAO,MAAM,kBAAkB,WAAW,CAAC;AAE3C,MAAM,WAAW,kBAAkB;IACjC,UAAU,EAAE,CAAC,MAAM,EAAE,MAAM,KAAK,SAAS,CAAC;IAC1C,GAAG,EAAE,MAAM,CAAC;IACZ,gBAAgB,CAAC,EAAE,MAAM,GAAG,SAAS,CAAC;IACtC;;;;;OAKG;IACH,aAAa,CAAC,EAAE,MAAM,CAAC,MAAM,EAAE,OAAO,CAAC,CAAC;IACxC;;;;;OAKG;IACH,mBAAmB,CAAC,EAAE,OAAO,GAAG,SAAS,CAAC;IAC1C;;;;OAIG;IACH,cAAc,CAAC,EAAE,MAAM,GAAG,SAAS,CAAC;IACpC;;;;OAIG;IACH,iBAAiB,CAAC,EAAE,MAAM,GAAG,SAAS,CAAC;CACxC;AAoHD,wBAAsB,WAAW,CAC/B,OAAO,EAAE,MAAM,EAAE,EACjB,IAAI,EAAE,kBAAkB,GACvB,OAAO,CAAC;IAAE,MAAM,EAAE,MAAM,EAAE,CAAC;IAAC,MAAM,EAAE;QAAE,MAAM,EAAE,MAAM,CAAC;QAAC,GAAG,EAAE,OAAO,CAAA;KAAE,EAAE,CAAA;CAAE,CAAC,CAwG3E;AAED;;;;;;;;GAQG;AACH,wBAAsB,aAAa,CACjC,aAAa,EAAE,MAAM,EAAE,EACvB,IAAI,EAAE,kBAAkB,GACvB,OAAO,CAAC,IAAI,CAAC,CAmCf"}
|
|
@@ -0,0 +1,37 @@
|
|
|
1
|
+
import type { Plugin } from '../types/plugin.js';
|
|
2
|
+
interface ChimeraConfig {
|
|
3
|
+
enabled?: boolean | undefined;
|
|
4
|
+
provider?: string | undefined;
|
|
5
|
+
model?: string | undefined;
|
|
6
|
+
maxFiles?: number | undefined;
|
|
7
|
+
/**
|
|
8
|
+
* @deprecated Removed. The subagent's `Request.maxTokens` now defaults to
|
|
9
|
+
* the provider's `capabilities.maxOutput`, so Chimera reports can run up
|
|
10
|
+
* to the selected model's native ceiling. Kept on the config interface as an `unknown` sink
|
|
11
|
+
* so old config files don't crash — but it's no longer read.
|
|
12
|
+
*/
|
|
13
|
+
maxTokens?: unknown;
|
|
14
|
+
}
|
|
15
|
+
export interface ResolvedChimeraConfig {
|
|
16
|
+
enabled: boolean;
|
|
17
|
+
provider: string;
|
|
18
|
+
model: string;
|
|
19
|
+
maxFiles: number;
|
|
20
|
+
}
|
|
21
|
+
export declare function resolveChimeraConfig(cfg: ChimeraConfig, sessionProvider: string, sessionModel: string): ResolvedChimeraConfig;
|
|
22
|
+
export interface ChimeraReviewNeededPayload {
|
|
23
|
+
/** Resolved chimera config */
|
|
24
|
+
config: ResolvedChimeraConfig;
|
|
25
|
+
/** Project root for git operations */
|
|
26
|
+
cwd: string;
|
|
27
|
+
/** Changed files with their contents */
|
|
28
|
+
files: Array<{
|
|
29
|
+
path: string;
|
|
30
|
+
status: 'added' | 'modified';
|
|
31
|
+
content: string;
|
|
32
|
+
}>;
|
|
33
|
+
}
|
|
34
|
+
export declare const CHIMERA_REVIEW_PROMPT: string;
|
|
35
|
+
export declare function createChimeraPlugin(): Plugin;
|
|
36
|
+
export {};
|
|
37
|
+
//# sourceMappingURL=chimera-plugin.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"chimera-plugin.d.ts","sourceRoot":"","sources":["../../src/plugins/chimera-plugin.ts"],"names":[],"mappings":"AAGA,OAAO,KAAK,EAAE,MAAM,EAAE,MAAM,oBAAoB,CAAC;AAQjD,UAAU,aAAa;IACrB,OAAO,CAAC,EAAE,OAAO,GAAG,SAAS,CAAC;IAC9B,QAAQ,CAAC,EAAE,MAAM,GAAG,SAAS,CAAC;IAC9B,KAAK,CAAC,EAAE,MAAM,GAAG,SAAS,CAAC;IAC3B,QAAQ,CAAC,EAAE,MAAM,GAAG,SAAS,CAAC;IAC9B;;;;;OAKG;IACH,SAAS,CAAC,EAAE,OAAO,CAAC;CACrB;AAED,MAAM,WAAW,qBAAqB;IACpC,OAAO,EAAE,OAAO,CAAC;IACjB,QAAQ,EAAE,MAAM,CAAC;IACjB,KAAK,EAAE,MAAM,CAAC;IACd,QAAQ,EAAE,MAAM,CAAC;CAClB;AAID,wBAAgB,oBAAoB,CAClC,GAAG,EAAE,aAAa,EAClB,eAAe,EAAE,MAAM,EACvB,YAAY,EAAE,MAAM,GACnB,qBAAqB,CAOvB;AAKD,MAAM,WAAW,0BAA0B;IACzC,8BAA8B;IAC9B,MAAM,EAAE,qBAAqB,CAAC;IAC9B,sCAAsC;IACtC,GAAG,EAAE,MAAM,CAAC;IACZ,wCAAwC;IACxC,KAAK,EAAE,KAAK,CAAC;QAAE,IAAI,EAAE,MAAM,CAAC;QAAC,MAAM,EAAE,OAAO,GAAG,UAAU,CAAC;QAAC,OAAO,EAAE,MAAM,CAAA;KAAE,CAAC,CAAC;CAC/E;AAKD,eAAO,MAAM,qBAAqB,QAAsD,CAAC;AA+GzF,wBAAgB,mBAAmB,IAAI,MAAM,CA2G5C"}
|
|
@@ -0,0 +1,26 @@
|
|
|
1
|
+
import { DefaultPromptStore } from '../storage/prompt-store.js';
|
|
2
|
+
import { PromptUsageStore } from '../storage/prompt-usage-store.js';
|
|
3
|
+
import type { PromptLoader } from '../types/prompt.js';
|
|
4
|
+
import type { WstackPaths } from '../utils/wstack-paths.js';
|
|
5
|
+
import type { Plugin } from '../types/plugin.js';
|
|
6
|
+
interface PromptsPluginOptions {
|
|
7
|
+
store?: DefaultPromptStore | undefined;
|
|
8
|
+
loader?: PromptLoader | undefined;
|
|
9
|
+
usage?: PromptUsageStore | undefined;
|
|
10
|
+
paths?: WstackPaths | undefined;
|
|
11
|
+
}
|
|
12
|
+
/**
|
|
13
|
+
* PromptsPlugin — built-in prompt library.
|
|
14
|
+
*
|
|
15
|
+
* Registers three slash commands:
|
|
16
|
+
* - `/prompts` manage your library (list/view/add/edit/delete/favorite/extend)
|
|
17
|
+
* - `/prompt` search the merged library (builtin + user + project) and insert
|
|
18
|
+
* - `/prompt-gen` AI-guided authoring of a new high-quality prompt
|
|
19
|
+
*
|
|
20
|
+
* Active by default for all WrongStack sessions. The host injects a
|
|
21
|
+
* `PromptLoader` (cross-layer read + copy-on-write) via `config.promptLoader`;
|
|
22
|
+
* without one the commands degrade to the writable user store only.
|
|
23
|
+
*/
|
|
24
|
+
export declare function createPromptsPlugin(opts?: PromptsPluginOptions): Plugin;
|
|
25
|
+
export {};
|
|
26
|
+
//# sourceMappingURL=prompts-plugin.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"prompts-plugin.d.ts","sourceRoot":"","sources":["../../src/plugins/prompts-plugin.ts"],"names":[],"mappings":"AAGA,OAAO,EAAE,kBAAkB,EAAsB,MAAM,4BAA4B,CAAC;AACpF,OAAO,EAAE,gBAAgB,EAAE,MAAM,kCAAkC,CAAC;AACpE,OAAO,KAAK,EAAe,YAAY,EAAkB,MAAM,oBAAoB,CAAC;AACpF,OAAO,KAAK,EAAE,WAAW,EAAE,MAAM,0BAA0B,CAAC;AAM5D,OAAO,KAAK,EAAE,MAAM,EAAE,MAAM,oBAAoB,CAAC;AAGjD,UAAU,oBAAoB;IAC5B,KAAK,CAAC,EAAE,kBAAkB,GAAG,SAAS,CAAC;IACvC,MAAM,CAAC,EAAE,YAAY,GAAG,SAAS,CAAC;IAClC,KAAK,CAAC,EAAE,gBAAgB,GAAG,SAAS,CAAC;IACrC,KAAK,CAAC,EAAE,WAAW,GAAG,SAAS,CAAC;CACjC;AAED;;;;;;;;;;;GAWG;AACH,wBAAgB,mBAAmB,CAAC,IAAI,CAAC,EAAE,oBAAoB,GAAG,MAAM,CA8CvE"}
|
|
@@ -0,0 +1,19 @@
|
|
|
1
|
+
import type { Plugin } from '../types/plugin.js';
|
|
2
|
+
/**
|
|
3
|
+
* SecurityPlugin — automated security scanning back-end.
|
|
4
|
+
*
|
|
5
|
+
* Exposes the LLM-powered `defaultOrchestrator` programmatically. The
|
|
6
|
+
* synchronous TUI surface is owned by the CLI built-in
|
|
7
|
+
* `packages/cli/src/slash-commands/security.ts` (`/security audit-deps |
|
|
8
|
+
* scan | redact-test | help`), which intentionally does NOT invoke the
|
|
9
|
+
* orchestrator — slash commands run on a sync surface and a full scan
|
|
10
|
+
* takes minutes. To run a real scan, dispatch a subagent from the TUI
|
|
11
|
+
* (`/security scan` prints the dispatch instructions).
|
|
12
|
+
*
|
|
13
|
+
* Do NOT register a `/security` slash command here — it would shadow the
|
|
14
|
+
* CLI built-in and leave users staring at a silent prompt while an
|
|
15
|
+
* LLM scan hangs in the background. The `createSecuritySlashCommand`
|
|
16
|
+
* factory remains exported for programmatic/test use only.
|
|
17
|
+
*/
|
|
18
|
+
export declare function createSecurityPlugin(): Plugin;
|
|
19
|
+
//# sourceMappingURL=security-plugin.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"security-plugin.d.ts","sourceRoot":"","sources":["../../src/plugins/security-plugin.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,MAAM,EAAE,MAAM,oBAAoB,CAAC;AAEjD;;;;;;;;;;;;;;;GAeG;AACH,wBAAgB,oBAAoB,IAAI,MAAM,CAsB7C"}
|
|
@@ -0,0 +1,42 @@
|
|
|
1
|
+
import type { SlashCommand } from '../index.js';
|
|
2
|
+
import type { SkillRegistryAdapter } from '../skills/registry/registry-adapter.js';
|
|
3
|
+
import type { Plugin } from '../types/plugin.js';
|
|
4
|
+
import type { SkillLoader } from '../types/skill.js';
|
|
5
|
+
interface SkillsPluginOptions {
|
|
6
|
+
skillLoader?: SkillLoader | undefined;
|
|
7
|
+
/**
|
|
8
|
+
* Registry adapters. When unset the plugin wires the github-direct adapter
|
|
9
|
+
* (for `user/repo` installs) plus a skills.sh adapter pointed at
|
|
10
|
+
* `config.skills.registryUrl` (default {@link DEFAULT_SKILLS_SH_URL}).
|
|
11
|
+
*/
|
|
12
|
+
registryAdapters?: SkillRegistryAdapter[] | undefined;
|
|
13
|
+
}
|
|
14
|
+
/**
|
|
15
|
+
* SkillsPlugin — skill library + installer + authoring toolkit.
|
|
16
|
+
*
|
|
17
|
+
* Registers `/skill`, `/skill-gen`, `/skill-search`, `/skill-install`,
|
|
18
|
+
* `/skill-import`, `/skill-update`, `/skill-uninstall`. First-party ("official")
|
|
19
|
+
* plugin, so the commands keep their bare names. Needs a `SkillLoader` (injected
|
|
20
|
+
* by the host via `config.skillLoader`); without one the commands report that
|
|
21
|
+
* and no-op.
|
|
22
|
+
*/
|
|
23
|
+
export declare function createSkillsPlugin(opts?: SkillsPluginOptions): Plugin;
|
|
24
|
+
export declare function buildSkillCommand(skillLoader?: SkillLoader): SlashCommand;
|
|
25
|
+
export declare function buildSkillGeneratorCommand(skillLoader?: SkillLoader): SlashCommand;
|
|
26
|
+
export declare function buildSkillSearchCommand(_skillLoader: SkillLoader | undefined, registryAdapters: SkillRegistryAdapter[]): SlashCommand;
|
|
27
|
+
export declare function buildSkillInstallCommand(skillLoader?: SkillLoader, registryAdapters?: SkillRegistryAdapter[]): SlashCommand;
|
|
28
|
+
/**
|
|
29
|
+
* Resolve a `--from <tool>` source directory for `/skill-import`. Returns the
|
|
30
|
+
* project-level dir (`<project>/.<tool>/<subdir>`) or user-level (`~/.<tool>/<subdir>`
|
|
31
|
+
* when `global`), or `undefined` for an unknown tool id. Exported for testing.
|
|
32
|
+
*/
|
|
33
|
+
export declare function resolveImportSourceDir(tool: string, opts: {
|
|
34
|
+
global: boolean;
|
|
35
|
+
projectRoot: string;
|
|
36
|
+
homeDir?: string;
|
|
37
|
+
}): string | undefined;
|
|
38
|
+
export declare function buildSkillImportCommand(skillLoader?: SkillLoader): SlashCommand;
|
|
39
|
+
export declare function buildSkillUpdateCommand(skillLoader?: SkillLoader, registryAdapters?: SkillRegistryAdapter[]): SlashCommand;
|
|
40
|
+
export declare function buildSkillUninstallCommand(skillLoader?: SkillLoader): SlashCommand;
|
|
41
|
+
export {};
|
|
42
|
+
//# sourceMappingURL=skills-plugin.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"skills-plugin.d.ts","sourceRoot":"","sources":["../../src/plugins/skills-plugin.ts"],"names":[],"mappings":"AAEA,OAAO,KAAK,EAAW,YAAY,EAAE,MAAM,aAAa,CAAC;AAGzD,OAAO,KAAK,EAAE,oBAAoB,EAAE,MAAM,wCAAwC,CAAC;AAcnF,OAAO,KAAK,EAAE,MAAM,EAAE,MAAM,oBAAoB,CAAC;AACjD,OAAO,KAAK,EAAE,WAAW,EAAE,MAAM,mBAAmB,CAAC;AAKrD,UAAU,mBAAmB;IAC3B,WAAW,CAAC,EAAE,WAAW,GAAG,SAAS,CAAC;IACtC;;;;OAIG;IACH,gBAAgB,CAAC,EAAE,oBAAoB,EAAE,GAAG,SAAS,CAAC;CACvD;AAED;;;;;;;;GAQG;AACH,wBAAgB,kBAAkB,CAAC,IAAI,CAAC,EAAE,mBAAmB,GAAG,MAAM,CAqDrE;AAkBD,wBAAgB,iBAAiB,CAAC,WAAW,CAAC,EAAE,WAAW,GAAG,YAAY,CAsBzE;AAED,wBAAgB,0BAA0B,CAAC,WAAW,CAAC,EAAE,WAAW,GAAG,YAAY,CA4IlF;AA2HD,wBAAgB,uBAAuB,CACrC,YAAY,EAAE,WAAW,GAAG,SAAS,EACrC,gBAAgB,EAAE,oBAAoB,EAAE,GACvC,YAAY,CAyEd;AAED,wBAAgB,wBAAwB,CACtC,WAAW,CAAC,EAAE,WAAW,EACzB,gBAAgB,CAAC,EAAE,oBAAoB,EAAE,GACxC,YAAY,CAoDd;AAQD;;;;GAIG;AACH,wBAAgB,sBAAsB,CACpC,IAAI,EAAE,MAAM,EACZ,IAAI,EAAE;IAAE,MAAM,EAAE,OAAO,CAAC;IAAC,WAAW,EAAE,MAAM,CAAC;IAAC,OAAO,CAAC,EAAE,MAAM,CAAA;CAAE,GAC/D,MAAM,GAAG,SAAS,CAKpB;AAED,wBAAgB,uBAAuB,CAAC,WAAW,CAAC,EAAE,WAAW,GAAG,YAAY,CAoE/E;AAED,wBAAgB,uBAAuB,CACrC,WAAW,CAAC,EAAE,WAAW,EACzB,gBAAgB,CAAC,EAAE,oBAAoB,EAAE,GACxC,YAAY,CAkDd;AAED,wBAAgB,0BAA0B,CAAC,WAAW,CAAC,EAAE,WAAW,GAAG,YAAY,CAgDlF"}
|
|
@@ -0,0 +1,22 @@
|
|
|
1
|
+
import type { Plugin } from '../types/plugin.js';
|
|
2
|
+
import type { WstackPaths } from '../utils/wstack-paths.js';
|
|
3
|
+
import type { ConfigStore } from '../types/config.js';
|
|
4
|
+
interface SyncPluginOptions {
|
|
5
|
+
paths?: WstackPaths | undefined;
|
|
6
|
+
configStore?: ConfigStore | undefined;
|
|
7
|
+
/** Secret vault for encrypting the GitHub token before persisting to disk. */
|
|
8
|
+
vault?: {
|
|
9
|
+
encrypt(plaintext: string): string;
|
|
10
|
+
decrypt?(value: string): string;
|
|
11
|
+
};
|
|
12
|
+
}
|
|
13
|
+
/**
|
|
14
|
+
* SyncPlugin — GitHub-backed cloud sync for WrongStack user data.
|
|
15
|
+
*
|
|
16
|
+
* Registers `/sync` slash command. Users can push/pull their prompts,
|
|
17
|
+
* skills, settings, memory, and history to a private GitHub repo.
|
|
18
|
+
* Active by default; configure once with `/sync enable owner/repo TOKEN`.
|
|
19
|
+
*/
|
|
20
|
+
export declare function createSyncPlugin(opts?: SyncPluginOptions): Plugin;
|
|
21
|
+
export {};
|
|
22
|
+
//# sourceMappingURL=sync-plugin.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"sync-plugin.d.ts","sourceRoot":"","sources":["../../src/plugins/sync-plugin.ts"],"names":[],"mappings":"AAEA,OAAO,KAAK,EAAE,MAAM,EAAE,MAAM,oBAAoB,CAAC;AAIjD,OAAO,KAAK,EAAE,WAAW,EAAE,MAAM,0BAA0B,CAAC;AAC5D,OAAO,KAAK,EAAE,WAAW,EAAE,MAAM,oBAAoB,CAAC;AAEtD,UAAU,iBAAiB;IACzB,KAAK,CAAC,EAAE,WAAW,GAAG,SAAS,CAAC;IAChC,WAAW,CAAC,EAAE,WAAW,GAAG,SAAS,CAAC;IACtC,8EAA8E;IAC9E,KAAK,CAAC,EAAE;QAAE,OAAO,CAAC,SAAS,EAAE,MAAM,GAAG,MAAM,CAAC;QAAC,OAAO,CAAC,CAAC,KAAK,EAAE,MAAM,GAAG,MAAM,CAAA;KAAE,CAAC;CACjF;AAED;;;;;;GAMG;AACH,wBAAgB,gBAAgB,CAAC,IAAI,CAAC,EAAE,iBAAiB,GAAG,MAAM,CAqDjE"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../src/prompts/index.ts"],"names":[],"mappings":"AAAA,OAAO,EACL,KAAK,WAAW,EAChB,eAAe,EACf,KAAK,sBAAsB,EAC3B,KAAK,gBAAgB,GACtB,MAAM,uBAAuB,CAAC;AAC/B,OAAO,EAAE,mBAAmB,EAAE,MAAM,4BAA4B,CAAC"}
|
|
@@ -0,0 +1,50 @@
|
|
|
1
|
+
import { type PromptRegistryManifest, type RegistryDiff } from '../types/prompt-registry.js';
|
|
2
|
+
/**
|
|
3
|
+
* Fetch a JSON document. Injectable so the installer is testable without
|
|
4
|
+
* network access. Defaults to the global `fetch`.
|
|
5
|
+
*/
|
|
6
|
+
export type JsonFetcher = (url: string) => Promise<unknown>;
|
|
7
|
+
export interface PromptPullResult {
|
|
8
|
+
manifest: PromptRegistryManifest;
|
|
9
|
+
diff: RegistryDiff;
|
|
10
|
+
/** Always true for the stub — pull never writes anything yet. */
|
|
11
|
+
dryRun: true;
|
|
12
|
+
}
|
|
13
|
+
export interface PromptInstallerOptions {
|
|
14
|
+
fetcher?: JsonFetcher | undefined;
|
|
15
|
+
}
|
|
16
|
+
/**
|
|
17
|
+
* PromptInstaller — registry sync GROUNDWORK (stub).
|
|
18
|
+
*
|
|
19
|
+
* `pull()` fetches and validates a remote manifest and computes the checksum
|
|
20
|
+
* diff against the prompts the caller already has — but writes NOTHING. The
|
|
21
|
+
* actual download/write is the documented extension point (`install`), left
|
|
22
|
+
* unimplemented so the sync surface can land incrementally and be reviewed
|
|
23
|
+
* before it can touch the user's prompt store.
|
|
24
|
+
*
|
|
25
|
+
* Mirrors `SkillInstaller`. For a GitHub-backed hub, the contract is a repo
|
|
26
|
+
* with a top-level `registry.json` (a `PromptRegistryManifest`) plus
|
|
27
|
+
* `prompts/<slug>.json` bodies — the same shape the bundled dataset emits.
|
|
28
|
+
*/
|
|
29
|
+
export declare class PromptInstaller {
|
|
30
|
+
private readonly fetcher;
|
|
31
|
+
constructor(opts?: PromptInstallerOptions);
|
|
32
|
+
/**
|
|
33
|
+
* Fetch + validate a manifest and report what a sync WOULD change. Read-only.
|
|
34
|
+
* @param manifestUrl URL to the registry's `registry.json`.
|
|
35
|
+
* @param local The prompts the caller already has (slug + checksum).
|
|
36
|
+
*/
|
|
37
|
+
pull(manifestUrl: string, local: {
|
|
38
|
+
slug: string;
|
|
39
|
+
checksum?: string | undefined;
|
|
40
|
+
}[]): Promise<PromptPullResult>;
|
|
41
|
+
/**
|
|
42
|
+
* EXTENSION POINT (not yet wired): download the prompt bodies for the given
|
|
43
|
+
* registry refs and write them into the user layer as `source:'synced'`,
|
|
44
|
+
* recording each in the installed-prompts manifest. Intentionally unimplemented
|
|
45
|
+
* — pulling real content over the network is gated behind a future change so
|
|
46
|
+
* the format/diff path can ship and be reviewed first.
|
|
47
|
+
*/
|
|
48
|
+
install(): Promise<never>;
|
|
49
|
+
}
|
|
50
|
+
//# sourceMappingURL=prompt-installer.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"prompt-installer.d.ts","sourceRoot":"","sources":["../../src/prompts/prompt-installer.ts"],"names":[],"mappings":"AAAA,OAAO,EAEL,KAAK,sBAAsB,EAC3B,KAAK,YAAY,EAElB,MAAM,6BAA6B,CAAC;AAGrC;;;GAGG;AACH,MAAM,MAAM,WAAW,GAAG,CAAC,GAAG,EAAE,MAAM,KAAK,OAAO,CAAC,OAAO,CAAC,CAAC;AAc5D,MAAM,WAAW,gBAAgB;IAC/B,QAAQ,EAAE,sBAAsB,CAAC;IACjC,IAAI,EAAE,YAAY,CAAC;IACnB,iEAAiE;IACjE,MAAM,EAAE,IAAI,CAAC;CACd;AAED,MAAM,WAAW,sBAAsB;IACrC,OAAO,CAAC,EAAE,WAAW,GAAG,SAAS,CAAC;CACnC;AAED;;;;;;;;;;;;GAYG;AACH,qBAAa,eAAe;IAC1B,OAAO,CAAC,QAAQ,CAAC,OAAO,CAAc;IAEtC,YAAY,IAAI,GAAE,sBAA2B,EAE5C;IAED;;;;OAIG;IACG,IAAI,CACR,WAAW,EAAE,MAAM,EACnB,KAAK,EAAE;QAAE,IAAI,EAAE,MAAM,CAAC;QAAC,QAAQ,CAAC,EAAE,MAAM,GAAG,SAAS,CAAA;KAAE,EAAE,GACvD,OAAO,CAAC,gBAAgB,CAAC,CAW3B;IAED;;;;;;OAMG;IACG,OAAO,IAAI,OAAO,CAAC,KAAK,CAAC,CAK9B;CACF"}
|
|
@@ -0,0 +1,18 @@
|
|
|
1
|
+
import type { InstalledPromptEntry, PromptManifestData } from '../types/prompt-registry.js';
|
|
2
|
+
/**
|
|
3
|
+
* Tracks prompts pulled from a remote registry, persisted to
|
|
4
|
+
* `~/.wrongstack/installed-prompts.json`. Mirrors `SkillManifestStore`. The
|
|
5
|
+
* manifest is the source of truth for "what have I synced and at what version",
|
|
6
|
+
* enabling a future `pull --favorites` / update flow.
|
|
7
|
+
*/
|
|
8
|
+
export declare class PromptManifestStore {
|
|
9
|
+
private readonly manifestPath;
|
|
10
|
+
constructor(manifestPath: string);
|
|
11
|
+
load(): Promise<PromptManifestData>;
|
|
12
|
+
save(data: PromptManifestData): Promise<void>;
|
|
13
|
+
/** Upsert one entry keyed by slug. */
|
|
14
|
+
record(entry: InstalledPromptEntry): Promise<void>;
|
|
15
|
+
remove(slug: string): Promise<boolean>;
|
|
16
|
+
list(): Promise<InstalledPromptEntry[]>;
|
|
17
|
+
}
|
|
18
|
+
//# sourceMappingURL=prompt-manifest-store.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"prompt-manifest-store.d.ts","sourceRoot":"","sources":["../../src/prompts/prompt-manifest-store.ts"],"names":[],"mappings":"AAEA,OAAO,KAAK,EAAE,oBAAoB,EAAE,kBAAkB,EAAE,MAAM,6BAA6B,CAAC;AAG5F;;;;;GAKG;AACH,qBAAa,mBAAmB;IAClB,OAAO,CAAC,QAAQ,CAAC,YAAY;IAAzC,YAA6B,YAAY,EAAE,MAAM,EAAI;IAE/C,IAAI,IAAI,OAAO,CAAC,kBAAkB,CAAC,CAUxC;IAEK,IAAI,CAAC,IAAI,EAAE,kBAAkB,GAAG,OAAO,CAAC,IAAI,CAAC,CAGlD;IAED,sCAAsC;IAChC,MAAM,CAAC,KAAK,EAAE,oBAAoB,GAAG,OAAO,CAAC,IAAI,CAAC,CAMvD;IAEK,MAAM,CAAC,IAAI,EAAE,MAAM,GAAG,OAAO,CAAC,OAAO,CAAC,CAM3C;IAEK,IAAI,IAAI,OAAO,CAAC,oBAAoB,EAAE,CAAC,CAE5C;CACF"}
|