@wrongstack/cli 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/README.md +4 -4
- package/dist/acp-registry-cache.d.ts +33 -0
- package/dist/acp-registry-cache.d.ts.map +1 -0
- package/dist/acp-server-agent.d.ts +66 -0
- package/dist/acp-server-agent.d.ts.map +1 -0
- package/dist/arg-parser.d.ts +41 -0
- package/dist/arg-parser.d.ts.map +1 -0
- package/dist/auth-menu/add-provider.d.ts +15 -0
- package/dist/auth-menu/add-provider.d.ts.map +1 -0
- package/dist/auth-menu/anthropic-oauth.d.ts +43 -0
- package/dist/auth-menu/anthropic-oauth.d.ts.map +1 -0
- package/dist/auth-menu/auth-menu-audit.d.ts +175 -0
- package/dist/auth-menu/auth-menu-audit.d.ts.map +1 -0
- package/dist/auth-menu/direct.d.ts +15 -0
- package/dist/auth-menu/direct.d.ts.map +1 -0
- package/dist/auth-menu/github-copilot-oauth.d.ts +73 -0
- package/dist/auth-menu/github-copilot-oauth.d.ts.map +1 -0
- package/dist/auth-menu/helpers.d.ts +7 -0
- package/dist/auth-menu/helpers.d.ts.map +1 -0
- package/dist/auth-menu/index.d.ts +8 -0
- package/dist/auth-menu/index.d.ts.map +1 -0
- package/dist/auth-menu/local-presets.d.ts +36 -0
- package/dist/auth-menu/local-presets.d.ts.map +1 -0
- package/dist/auth-menu/local.d.ts +138 -0
- package/dist/auth-menu/local.d.ts.map +1 -0
- package/dist/auth-menu/oauth-menu.d.ts +10 -0
- package/dist/auth-menu/oauth-menu.d.ts.map +1 -0
- package/dist/auth-menu/openai-codex-oauth.d.ts +167 -0
- package/dist/auth-menu/openai-codex-oauth.d.ts.map +1 -0
- package/dist/auth-menu/panel-service.d.ts +32 -0
- package/dist/auth-menu/panel-service.d.ts.map +1 -0
- package/dist/auth-menu/provider-menu.d.ts +7 -0
- package/dist/auth-menu/provider-menu.d.ts.map +1 -0
- package/dist/auth-menu/shared.d.ts +32 -0
- package/dist/auth-menu/shared.d.ts.map +1 -0
- package/dist/auth-menu/top-menu.d.ts +11 -0
- package/dist/auth-menu/top-menu.d.ts.map +1 -0
- package/dist/auth-menu/types.d.ts +42 -0
- package/dist/auth-menu/types.d.ts.map +1 -0
- package/dist/auth-menu.d.ts +7 -0
- package/dist/auth-menu.d.ts.map +1 -0
- package/dist/autophase-host.d.ts +103 -0
- package/dist/autophase-host.d.ts.map +1 -0
- package/dist/boot/auto-discover-providers.d.ts +20 -0
- package/dist/boot/auto-discover-providers.d.ts.map +1 -0
- package/dist/boot/brain-decision-log.d.ts +38 -0
- package/dist/boot/brain-decision-log.d.ts.map +1 -0
- package/dist/boot/container-wiring.d.ts +34 -0
- package/dist/boot/container-wiring.d.ts.map +1 -0
- package/dist/boot/dispatch-singleshot.d.ts +35 -0
- package/dist/boot/dispatch-singleshot.d.ts.map +1 -0
- package/dist/boot/dispatch-webui.d.ts +87 -0
- package/dist/boot/dispatch-webui.d.ts.map +1 -0
- package/dist/boot/event-wiring.d.ts +22 -0
- package/dist/boot/event-wiring.d.ts.map +1 -0
- package/dist/boot/short-circuit-desktop.d.ts +3 -0
- package/dist/boot/short-circuit-desktop.d.ts.map +1 -0
- package/dist/boot/short-circuit-flags.d.ts +9 -0
- package/dist/boot/short-circuit-flags.d.ts.map +1 -0
- package/dist/boot/short-circuit-hq.d.ts +16 -0
- package/dist/boot/short-circuit-hq.d.ts.map +1 -0
- package/dist/boot/system-prompt-builder.d.ts +91 -0
- package/dist/boot/system-prompt-builder.d.ts.map +1 -0
- package/dist/boot/system-prompt.d.ts +66 -0
- package/dist/boot/system-prompt.d.ts.map +1 -0
- package/dist/boot/tool-registry.d.ts +42 -0
- package/dist/boot/tool-registry.d.ts.map +1 -0
- package/dist/boot/tui-autophase-wiring.d.ts +23 -0
- package/dist/boot/tui-autophase-wiring.d.ts.map +1 -0
- package/dist/boot/tui-coordinator-setup.d.ts +38 -0
- package/dist/boot/tui-coordinator-setup.d.ts.map +1 -0
- package/dist/boot/tui-debug-stream.d.ts +18 -0
- package/dist/boot/tui-debug-stream.d.ts.map +1 -0
- package/dist/boot/tui-live-sessions.d.ts +39 -0
- package/dist/boot/tui-live-sessions.d.ts.map +1 -0
- package/dist/boot/tui-project-picker-callback.d.ts +30 -0
- package/dist/boot/tui-project-picker-callback.d.ts.map +1 -0
- package/dist/boot/tui-project-spawn.d.ts +19 -0
- package/dist/boot/tui-project-spawn.d.ts.map +1 -0
- package/dist/boot/tui-project-switch.d.ts +26 -0
- package/dist/boot/tui-project-switch.d.ts.map +1 -0
- package/dist/boot/tui-runtime-state.d.ts +83 -0
- package/dist/boot/tui-runtime-state.d.ts.map +1 -0
- package/dist/boot/tui-sdd-callback.d.ts +20 -0
- package/dist/boot/tui-sdd-callback.d.ts.map +1 -0
- package/dist/boot/tui-session-resume.d.ts +21 -0
- package/dist/boot/tui-session-resume.d.ts.map +1 -0
- package/dist/boot/tui-settings-adapter.d.ts +24 -0
- package/dist/boot/tui-settings-adapter.d.ts.map +1 -0
- package/dist/boot-config.d.ts +26 -0
- package/dist/boot-config.d.ts.map +1 -0
- package/dist/boot.d.ts +30 -0
- package/dist/boot.d.ts.map +1 -0
- package/dist/brain-menu/panel-service.d.ts +15 -0
- package/dist/brain-menu/panel-service.d.ts.map +1 -0
- package/dist/cli-bundled-prompts.d.ts +12 -0
- package/dist/cli-bundled-prompts.d.ts.map +1 -0
- package/dist/cli-bundled-skills.d.ts +13 -0
- package/dist/cli-bundled-skills.d.ts.map +1 -0
- package/dist/cli-context.d.ts +30 -0
- package/dist/cli-context.d.ts.map +1 -0
- package/dist/cli-entry-point.d.ts +2 -0
- package/dist/cli-entry-point.d.ts.map +1 -0
- package/dist/cli-eternal-flag.d.ts +68 -0
- package/dist/cli-eternal-flag.d.ts.map +1 -0
- package/dist/cli-main.d.ts +13 -0
- package/dist/cli-main.d.ts.map +1 -0
- package/dist/cli-recovery-prompt.d.ts +19 -0
- package/dist/cli-recovery-prompt.d.ts.map +1 -0
- package/dist/cli-update-notice.d.ts +3 -0
- package/dist/cli-update-notice.d.ts.map +1 -0
- package/dist/config-doctor.d.ts +39 -0
- package/dist/config-doctor.d.ts.map +1 -0
- package/dist/config-history.d.ts +54 -0
- package/dist/config-history.d.ts.map +1 -0
- package/dist/context-limit.d.ts +51 -0
- package/dist/context-limit.d.ts.map +1 -0
- package/dist/context-overflow-diagnostic.d.ts +3 -0
- package/dist/context-overflow-diagnostic.d.ts.map +1 -0
- package/dist/diff-renderer.d.ts +2 -0
- package/dist/diff-renderer.d.ts.map +1 -0
- package/dist/execute-deps.d.ts +254 -0
- package/dist/execute-deps.d.ts.map +1 -0
- package/dist/execution.d.ts +102 -0
- package/dist/execution.d.ts.map +1 -0
- package/dist/first-run-auth-gate.d.ts +18 -0
- package/dist/first-run-auth-gate.d.ts.map +1 -0
- package/dist/fleet/host.d.ts +533 -0
- package/dist/fleet/host.d.ts.map +1 -0
- package/dist/fleet/routing.d.ts +8 -0
- package/dist/fleet/routing.d.ts.map +1 -0
- package/dist/fleet/status-broadcast.d.ts +42 -0
- package/dist/fleet/status-broadcast.d.ts.map +1 -0
- package/dist/fleet/supervisor-registry.d.ts +16 -0
- package/dist/fleet/supervisor-registry.d.ts.map +1 -0
- package/dist/fleet-statusline.d.ts +71 -0
- package/dist/fleet-statusline.d.ts.map +1 -0
- package/dist/hooks-wiring.d.ts +26 -0
- package/dist/hooks-wiring.d.ts.map +1 -0
- package/dist/hq-command-controller.d.ts +52 -0
- package/dist/hq-command-controller.d.ts.map +1 -0
- package/dist/hq-dashboard-html.d.ts +2 -0
- package/dist/hq-dashboard-html.d.ts.map +1 -0
- package/dist/hq-publisher.d.ts +16 -0
- package/dist/hq-publisher.d.ts.map +1 -0
- package/dist/hq-server/auth.d.ts +37 -0
- package/dist/hq-server/auth.d.ts.map +1 -0
- package/dist/hq-server/snapshot.d.ts +14 -0
- package/dist/hq-server/snapshot.d.ts.map +1 -0
- package/dist/hq-server/types.d.ts +67 -0
- package/dist/hq-server/types.d.ts.map +1 -0
- package/dist/hq-server/utils.d.ts +63 -0
- package/dist/hq-server/utils.d.ts.map +1 -0
- package/dist/hq-server/ws.d.ts +14 -0
- package/dist/hq-server/ws.d.ts.map +1 -0
- package/dist/hq-server.d.ts +60 -0
- package/dist/hq-server.d.ts.map +1 -0
- package/dist/hq-static-serve.d.ts +26 -0
- package/dist/hq-static-serve.d.ts.map +1 -0
- package/dist/index.d.ts +3 -5
- package/dist/index.d.ts.map +1 -0
- package/dist/index.js +10474 -5429
- package/dist/index.js.map +7 -1
- package/dist/input-reader.d.ts +45 -0
- package/dist/input-reader.d.ts.map +1 -0
- package/dist/launch-hints.d.ts +46 -0
- package/dist/launch-hints.d.ts.map +1 -0
- package/dist/mailbox-bridge-bootstrap.d.ts +85 -0
- package/dist/mailbox-bridge-bootstrap.d.ts.map +1 -0
- package/dist/mcp-serve.d.ts +21 -0
- package/dist/mcp-serve.d.ts.map +1 -0
- package/dist/multi-agent.d.ts +4 -0
- package/dist/multi-agent.d.ts.map +1 -0
- package/dist/next-task-predictor.d.ts +45 -0
- package/dist/next-task-predictor.d.ts.map +1 -0
- package/dist/permission-prompt.d.ts +11 -0
- package/dist/permission-prompt.d.ts.map +1 -0
- package/dist/picker.d.ts +86 -0
- package/dist/picker.d.ts.map +1 -0
- package/dist/plugin-api-factory.d.ts +3 -0
- package/dist/plugin-api-factory.d.ts.map +1 -0
- package/dist/plugin-management.d.ts +43 -0
- package/dist/plugin-management.d.ts.map +1 -0
- package/dist/pre-launch/indexing-question.d.ts +28 -0
- package/dist/pre-launch/indexing-question.d.ts.map +1 -0
- package/dist/pre-launch/launch-prompts.d.ts +52 -0
- package/dist/pre-launch/launch-prompts.d.ts.map +1 -0
- package/dist/pre-launch/project-check.d.ts +25 -0
- package/dist/pre-launch/project-check.d.ts.map +1 -0
- package/dist/pre-launch.d.ts +4 -0
- package/dist/pre-launch.d.ts.map +1 -0
- package/dist/preflight.d.ts +58 -0
- package/dist/preflight.d.ts.map +1 -0
- package/dist/project-picker.d.ts +56 -0
- package/dist/project-picker.d.ts.map +1 -0
- package/dist/provider-config-utils.d.ts +58 -0
- package/dist/provider-config-utils.d.ts.map +1 -0
- package/dist/provider-helpers.d.ts +53 -0
- package/dist/provider-helpers.d.ts.map +1 -0
- package/dist/renderer.d.ts +76 -0
- package/dist/renderer.d.ts.map +1 -0
- package/dist/repl.d.ts +164 -0
- package/dist/repl.d.ts.map +1 -0
- package/dist/services/project-facts.d.ts +17 -0
- package/dist/services/project-facts.d.ts.map +1 -0
- package/dist/session-event-wiring.d.ts +48 -0
- package/dist/session-event-wiring.d.ts.map +1 -0
- package/dist/session-stats.d.ts +38 -0
- package/dist/session-stats.d.ts.map +1 -0
- package/dist/settings-menu.d.ts +87 -0
- package/dist/settings-menu.d.ts.map +1 -0
- package/dist/shutdown-cleanup.d.ts +44 -0
- package/dist/shutdown-cleanup.d.ts.map +1 -0
- package/dist/slash-commands/acp.d.ts +23 -0
- package/dist/slash-commands/acp.d.ts.map +1 -0
- package/dist/slash-commands/agents.d.ts +18 -0
- package/dist/slash-commands/agents.d.ts.map +1 -0
- package/dist/slash-commands/audit.d.ts +11 -0
- package/dist/slash-commands/audit.d.ts.map +1 -0
- package/dist/slash-commands/auth.d.ts +20 -0
- package/dist/slash-commands/auth.d.ts.map +1 -0
- package/dist/slash-commands/autonomy.d.ts +5 -0
- package/dist/slash-commands/autonomy.d.ts.map +1 -0
- package/dist/slash-commands/autophase.d.ts +13 -0
- package/dist/slash-commands/autophase.d.ts.map +1 -0
- package/dist/slash-commands/brain.d.ts +4 -0
- package/dist/slash-commands/brain.d.ts.map +1 -0
- package/dist/slash-commands/btw.d.ts +13 -0
- package/dist/slash-commands/btw.d.ts.map +1 -0
- package/dist/slash-commands/clear.d.ts +4 -0
- package/dist/slash-commands/clear.d.ts.map +1 -0
- package/dist/slash-commands/codebase-reindex.d.ts +11 -0
- package/dist/slash-commands/codebase-reindex.d.ts.map +1 -0
- package/dist/slash-commands/collab.d.ts +26 -0
- package/dist/slash-commands/collab.d.ts.map +1 -0
- package/dist/slash-commands/commit-llm.d.ts +41 -0
- package/dist/slash-commands/commit-llm.d.ts.map +1 -0
- package/dist/slash-commands/compact.d.ts +4 -0
- package/dist/slash-commands/compact.d.ts.map +1 -0
- package/dist/slash-commands/context.d.ts +4 -0
- package/dist/slash-commands/context.d.ts.map +1 -0
- package/dist/slash-commands/coordinator.d.ts +4 -0
- package/dist/slash-commands/coordinator.d.ts.map +1 -0
- package/dist/slash-commands/delegate.d.ts +17 -0
- package/dist/slash-commands/delegate.d.ts.map +1 -0
- package/dist/slash-commands/design.d.ts +16 -0
- package/dist/slash-commands/design.d.ts.map +1 -0
- package/dist/slash-commands/dev.d.ts +9 -0
- package/dist/slash-commands/dev.d.ts.map +1 -0
- package/dist/slash-commands/diag-stats.d.ts +5 -0
- package/dist/slash-commands/diag-stats.d.ts.map +1 -0
- package/dist/slash-commands/dispatch-llm.d.ts +12 -0
- package/dist/slash-commands/dispatch-llm.d.ts.map +1 -0
- package/dist/slash-commands/doctor.d.ts +13 -0
- package/dist/slash-commands/doctor.d.ts.map +1 -0
- package/dist/slash-commands/enhance.d.ts +13 -0
- package/dist/slash-commands/enhance.d.ts.map +1 -0
- package/dist/slash-commands/ensemble.d.ts +17 -0
- package/dist/slash-commands/ensemble.d.ts.map +1 -0
- package/dist/slash-commands/f-keys.d.ts +18 -0
- package/dist/slash-commands/f-keys.d.ts.map +1 -0
- package/dist/slash-commands/fallback.d.ts +20 -0
- package/dist/slash-commands/fallback.d.ts.map +1 -0
- package/dist/slash-commands/fix-classifier.d.ts +28 -0
- package/dist/slash-commands/fix-classifier.d.ts.map +1 -0
- package/dist/slash-commands/fix.d.ts +4 -0
- package/dist/slash-commands/fix.d.ts.map +1 -0
- package/dist/slash-commands/fleet.d.ts +20 -0
- package/dist/slash-commands/fleet.d.ts.map +1 -0
- package/dist/slash-commands/git.d.ts +16 -0
- package/dist/slash-commands/git.d.ts.map +1 -0
- package/dist/slash-commands/gitid.d.ts +22 -0
- package/dist/slash-commands/gitid.d.ts.map +1 -0
- package/dist/slash-commands/goal-refiner.d.ts +80 -0
- package/dist/slash-commands/goal-refiner.d.ts.map +1 -0
- package/dist/slash-commands/goal.d.ts +4 -0
- package/dist/slash-commands/goal.d.ts.map +1 -0
- package/dist/slash-commands/health.d.ts +4 -0
- package/dist/slash-commands/health.d.ts.map +1 -0
- package/dist/slash-commands/help.d.ts +4 -0
- package/dist/slash-commands/help.d.ts.map +1 -0
- package/dist/slash-commands/helpers.d.ts +33 -0
- package/dist/slash-commands/helpers.d.ts.map +1 -0
- package/dist/slash-commands/hq.d.ts +4 -0
- package/dist/slash-commands/hq.d.ts.map +1 -0
- package/dist/slash-commands/index.d.ts +543 -0
- package/dist/slash-commands/index.d.ts.map +1 -0
- package/dist/slash-commands/init.d.ts +4 -0
- package/dist/slash-commands/init.d.ts.map +1 -0
- package/dist/slash-commands/interrupt.d.ts +15 -0
- package/dist/slash-commands/interrupt.d.ts.map +1 -0
- package/dist/slash-commands/kanban.d.ts +4 -0
- package/dist/slash-commands/kanban.d.ts.map +1 -0
- package/dist/slash-commands/mailbox-demo.d.ts +19 -0
- package/dist/slash-commands/mailbox-demo.d.ts.map +1 -0
- package/dist/slash-commands/mailbox-serve.d.ts +20 -0
- package/dist/slash-commands/mailbox-serve.d.ts.map +1 -0
- package/dist/slash-commands/mailbox.d.ts +28 -0
- package/dist/slash-commands/mailbox.d.ts.map +1 -0
- package/dist/slash-commands/mcp-utils.d.ts +24 -0
- package/dist/slash-commands/mcp-utils.d.ts.map +1 -0
- package/dist/slash-commands/mcp.d.ts +27 -0
- package/dist/slash-commands/mcp.d.ts.map +1 -0
- package/dist/slash-commands/memory.d.ts +4 -0
- package/dist/slash-commands/memory.d.ts.map +1 -0
- package/dist/slash-commands/metrics.d.ts +4 -0
- package/dist/slash-commands/metrics.d.ts.map +1 -0
- package/dist/slash-commands/mode.d.ts +6 -0
- package/dist/slash-commands/mode.d.ts.map +1 -0
- package/dist/slash-commands/modelcaps.d.ts +4 -0
- package/dist/slash-commands/modelcaps.d.ts.map +1 -0
- package/dist/slash-commands/models.d.ts +23 -0
- package/dist/slash-commands/models.d.ts.map +1 -0
- package/dist/slash-commands/mouse.d.ts +14 -0
- package/dist/slash-commands/mouse.d.ts.map +1 -0
- package/dist/slash-commands/next.d.ts +21 -0
- package/dist/slash-commands/next.d.ts.map +1 -0
- package/dist/slash-commands/plan.d.ts +4 -0
- package/dist/slash-commands/plan.d.ts.map +1 -0
- package/dist/slash-commands/plugin.d.ts +4 -0
- package/dist/slash-commands/plugin.d.ts.map +1 -0
- package/dist/slash-commands/project-utils.d.ts +51 -0
- package/dist/slash-commands/project-utils.d.ts.map +1 -0
- package/dist/slash-commands/project.d.ts +4 -0
- package/dist/slash-commands/project.d.ts.map +1 -0
- package/dist/slash-commands/prune.d.ts +4 -0
- package/dist/slash-commands/prune.d.ts.map +1 -0
- package/dist/slash-commands/refiner.d.ts +15 -0
- package/dist/slash-commands/refiner.d.ts.map +1 -0
- package/dist/slash-commands/review.d.ts +4 -0
- package/dist/slash-commands/review.d.ts.map +1 -0
- package/dist/slash-commands/sdd/project-context.d.ts +7 -0
- package/dist/slash-commands/sdd/project-context.d.ts.map +1 -0
- package/dist/slash-commands/sdd/rendering.d.ts +2 -0
- package/dist/slash-commands/sdd/rendering.d.ts.map +1 -0
- package/dist/slash-commands/sdd/spec-detection.d.ts +21 -0
- package/dist/slash-commands/sdd/spec-detection.d.ts.map +1 -0
- package/dist/slash-commands/sdd/state.d.ts +40 -0
- package/dist/slash-commands/sdd/state.d.ts.map +1 -0
- package/dist/slash-commands/sdd/task-manager.d.ts +37 -0
- package/dist/slash-commands/sdd/task-manager.d.ts.map +1 -0
- package/dist/slash-commands/sdd.d.ts +15 -0
- package/dist/slash-commands/sdd.d.ts.map +1 -0
- package/dist/slash-commands/security.d.ts +4 -0
- package/dist/slash-commands/security.d.ts.map +1 -0
- package/dist/slash-commands/session.d.ts +7 -0
- package/dist/slash-commands/session.d.ts.map +1 -0
- package/dist/slash-commands/setmodel.d.ts +20 -0
- package/dist/slash-commands/setmodel.d.ts.map +1 -0
- package/dist/slash-commands/settings.d.ts +12 -0
- package/dist/slash-commands/settings.d.ts.map +1 -0
- package/dist/slash-commands/shadow.d.ts +28 -0
- package/dist/slash-commands/shadow.d.ts.map +1 -0
- package/dist/slash-commands/slash-deep-help.d.ts +51 -0
- package/dist/slash-commands/slash-deep-help.d.ts.map +1 -0
- package/dist/slash-commands/spawn-agents.d.ts +6 -0
- package/dist/slash-commands/spawn-agents.d.ts.map +1 -0
- package/dist/slash-commands/statusline.d.ts +67 -0
- package/dist/slash-commands/statusline.d.ts.map +1 -0
- package/dist/slash-commands/suggest.d.ts +4 -0
- package/dist/slash-commands/suggest.d.ts.map +1 -0
- package/dist/slash-commands/suggestion-store.d.ts +29 -0
- package/dist/slash-commands/suggestion-store.d.ts.map +1 -0
- package/dist/slash-commands/supervisor.d.ts +18 -0
- package/dist/slash-commands/supervisor.d.ts.map +1 -0
- package/dist/slash-commands/surfaces.d.ts +4 -0
- package/dist/slash-commands/surfaces.d.ts.map +1 -0
- package/dist/slash-commands/tasks.d.ts +4 -0
- package/dist/slash-commands/tasks.d.ts.map +1 -0
- package/dist/slash-commands/techstack.d.ts +4 -0
- package/dist/slash-commands/techstack.d.ts.map +1 -0
- package/dist/slash-commands/telegram-settings.d.ts +4 -0
- package/dist/slash-commands/telegram-settings.d.ts.map +1 -0
- package/dist/slash-commands/telegram-setup.d.ts +11 -0
- package/dist/slash-commands/telegram-setup.d.ts.map +1 -0
- package/dist/slash-commands/todos.d.ts +4 -0
- package/dist/slash-commands/todos.d.ts.map +1 -0
- package/dist/slash-commands/tool.d.ts +4 -0
- package/dist/slash-commands/tool.d.ts.map +1 -0
- package/dist/slash-commands/tools.d.ts +4 -0
- package/dist/slash-commands/tools.d.ts.map +1 -0
- package/dist/slash-commands/tuneup.d.ts +15 -0
- package/dist/slash-commands/tuneup.d.ts.map +1 -0
- package/dist/slash-commands/working-dir.d.ts +14 -0
- package/dist/slash-commands/working-dir.d.ts.map +1 -0
- package/dist/slash-commands/worktree.d.ts +8 -0
- package/dist/slash-commands/worktree.d.ts.map +1 -0
- package/dist/slash-commands/yolo.d.ts +4 -0
- package/dist/slash-commands/yolo.d.ts.map +1 -0
- package/dist/spinner.d.ts +44 -0
- package/dist/spinner.d.ts.map +1 -0
- package/dist/subcommands/handlers/acp.d.ts +15 -0
- package/dist/subcommands/handlers/acp.d.ts.map +1 -0
- package/dist/subcommands/handlers/audit.d.ts +12 -0
- package/dist/subcommands/handlers/audit.d.ts.map +1 -0
- package/dist/subcommands/handlers/auth-local-help.d.ts +69 -0
- package/dist/subcommands/handlers/auth-local-help.d.ts.map +1 -0
- package/dist/subcommands/handlers/auth.d.ts +3 -0
- package/dist/subcommands/handlers/auth.d.ts.map +1 -0
- package/dist/subcommands/handlers/bench-run-help.d.ts +145 -0
- package/dist/subcommands/handlers/bench-run-help.d.ts.map +1 -0
- package/dist/subcommands/handlers/bench.d.ts +13 -0
- package/dist/subcommands/handlers/bench.d.ts.map +1 -0
- package/dist/subcommands/handlers/config-history.d.ts +10 -0
- package/dist/subcommands/handlers/config-history.d.ts.map +1 -0
- package/dist/subcommands/handlers/diag-doctor.d.ts +4 -0
- package/dist/subcommands/handlers/diag-doctor.d.ts.map +1 -0
- package/dist/subcommands/handlers/export.d.ts +3 -0
- package/dist/subcommands/handlers/export.d.ts.map +1 -0
- package/dist/subcommands/handlers/helpers.d.ts +2 -0
- package/dist/subcommands/handlers/helpers.d.ts.map +1 -0
- package/dist/subcommands/handlers/hq.d.ts +3 -0
- package/dist/subcommands/handlers/hq.d.ts.map +1 -0
- package/dist/subcommands/handlers/init.d.ts +7 -0
- package/dist/subcommands/handlers/init.d.ts.map +1 -0
- package/dist/subcommands/handlers/mailbox-serve.d.ts +3 -0
- package/dist/subcommands/handlers/mailbox-serve.d.ts.map +1 -0
- package/dist/subcommands/handlers/mcp.d.ts +3 -0
- package/dist/subcommands/handlers/mcp.d.ts.map +1 -0
- package/dist/subcommands/handlers/modeldiag.d.ts +3 -0
- package/dist/subcommands/handlers/modeldiag.d.ts.map +1 -0
- package/dist/subcommands/handlers/models-add-help.d.ts +142 -0
- package/dist/subcommands/handlers/models-add-help.d.ts.map +1 -0
- package/dist/subcommands/handlers/per-subcommand-help.d.ts +136 -0
- package/dist/subcommands/handlers/per-subcommand-help.d.ts.map +1 -0
- package/dist/subcommands/handlers/plugin-usage.d.ts +4 -0
- package/dist/subcommands/handlers/plugin-usage.d.ts.map +1 -0
- package/dist/subcommands/handlers/projects.d.ts +3 -0
- package/dist/subcommands/handlers/projects.d.ts.map +1 -0
- package/dist/subcommands/handlers/providers-models.d.ts +4 -0
- package/dist/subcommands/handlers/providers-models.d.ts.map +1 -0
- package/dist/subcommands/handlers/quick.d.ts +14 -0
- package/dist/subcommands/handlers/quick.d.ts.map +1 -0
- package/dist/subcommands/handlers/replay.d.ts +12 -0
- package/dist/subcommands/handlers/replay.d.ts.map +1 -0
- package/dist/subcommands/handlers/rewind.d.ts +3 -0
- package/dist/subcommands/handlers/rewind.d.ts.map +1 -0
- package/dist/subcommands/handlers/sessions-config.d.ts +4 -0
- package/dist/subcommands/handlers/sessions-config.d.ts.map +1 -0
- package/dist/subcommands/handlers/sessions-fleet.d.ts +15 -0
- package/dist/subcommands/handlers/sessions-fleet.d.ts.map +1 -0
- package/dist/subcommands/handlers/tools-skills.d.ts +4 -0
- package/dist/subcommands/handlers/tools-skills.d.ts.map +1 -0
- package/dist/subcommands/handlers/update.d.ts +7 -0
- package/dist/subcommands/handlers/update.d.ts.map +1 -0
- package/dist/subcommands/handlers/version-help.d.ts +4 -0
- package/dist/subcommands/handlers/version-help.d.ts.map +1 -0
- package/dist/subcommands/index.d.ts +26 -0
- package/dist/subcommands/index.d.ts.map +1 -0
- package/dist/theme.d.ts +12 -0
- package/dist/theme.d.ts.map +1 -0
- package/dist/tui-thinking-word.d.ts +5 -0
- package/dist/tui-thinking-word.d.ts.map +1 -0
- package/dist/tuneup.d.ts +162 -0
- package/dist/tuneup.d.ts.map +1 -0
- package/dist/update-check.d.ts +22 -0
- package/dist/update-check.d.ts.map +1 -0
- package/dist/utils/delay-format.d.ts +5 -0
- package/dist/utils/delay-format.d.ts.map +1 -0
- package/dist/utils/win32-cmd.d.ts +7 -0
- package/dist/utils/win32-cmd.d.ts.map +1 -0
- package/dist/utils.d.ts +58 -0
- package/dist/utils.d.ts.map +1 -0
- package/dist/version.d.ts +4 -0
- package/dist/version.d.ts.map +1 -0
- package/dist/webui-server/client-registration.d.ts +41 -0
- package/dist/webui-server/client-registration.d.ts.map +1 -0
- package/dist/webui-server/connection-handler.d.ts +59 -0
- package/dist/webui-server/connection-handler.d.ts.map +1 -0
- package/dist/webui-server/context-breakdown.d.ts +57 -0
- package/dist/webui-server/context-breakdown.d.ts.map +1 -0
- package/dist/webui-server/cost-helpers.d.ts +29 -0
- package/dist/webui-server/cost-helpers.d.ts.map +1 -0
- package/dist/webui-server/lifecycle.d.ts +108 -0
- package/dist/webui-server/lifecycle.d.ts.map +1 -0
- package/dist/webui-server/logger-shim.d.ts +10 -0
- package/dist/webui-server/logger-shim.d.ts.map +1 -0
- package/dist/webui-server/message-router.d.ts +39 -0
- package/dist/webui-server/message-router.d.ts.map +1 -0
- package/dist/webui-server/prefs-seeding.d.ts +57 -0
- package/dist/webui-server/prefs-seeding.d.ts.map +1 -0
- package/dist/webui-server/provider-config.d.ts +61 -0
- package/dist/webui-server/provider-config.d.ts.map +1 -0
- package/dist/webui-server/session-start-payload.d.ts +20 -0
- package/dist/webui-server/session-start-payload.d.ts.map +1 -0
- package/dist/webui-server/session-status-poll.d.ts +14 -0
- package/dist/webui-server/session-status-poll.d.ts.map +1 -0
- package/dist/webui-server/setup-events.d.ts +45 -0
- package/dist/webui-server/setup-events.d.ts.map +1 -0
- package/dist/webui-server/static-serve.d.ts +70 -0
- package/dist/webui-server/static-serve.d.ts.map +1 -0
- package/dist/webui-server/stream-coalescer.d.ts +41 -0
- package/dist/webui-server/stream-coalescer.d.ts.map +1 -0
- package/dist/webui-server/ws-handlers/agent-config.d.ts +47 -0
- package/dist/webui-server/ws-handlers/agent-config.d.ts.map +1 -0
- package/dist/webui-server/ws-handlers/brain.d.ts +43 -0
- package/dist/webui-server/ws-handlers/brain.d.ts.map +1 -0
- package/dist/webui-server/ws-handlers/connection.d.ts +57 -0
- package/dist/webui-server/ws-handlers/connection.d.ts.map +1 -0
- package/dist/webui-server/ws-handlers/context.d.ts +55 -0
- package/dist/webui-server/ws-handlers/context.d.ts.map +1 -0
- package/dist/webui-server/ws-handlers/index.d.ts +60 -0
- package/dist/webui-server/ws-handlers/index.d.ts.map +1 -0
- package/dist/webui-server/ws-handlers/introspection.d.ts +35 -0
- package/dist/webui-server/ws-handlers/introspection.d.ts.map +1 -0
- package/dist/webui-server/ws-handlers/kanban.d.ts +41 -0
- package/dist/webui-server/ws-handlers/kanban.d.ts.map +1 -0
- package/dist/webui-server/ws-handlers/mailbox.d.ts +60 -0
- package/dist/webui-server/ws-handlers/mailbox.d.ts.map +1 -0
- package/dist/webui-server/ws-handlers/oauth.d.ts +16 -0
- package/dist/webui-server/ws-handlers/oauth.d.ts.map +1 -0
- package/dist/webui-server/ws-handlers/prefs.d.ts +32 -0
- package/dist/webui-server/ws-handlers/prefs.d.ts.map +1 -0
- package/dist/webui-server/ws-handlers/process.d.ts +6 -0
- package/dist/webui-server/ws-handlers/process.d.ts.map +1 -0
- package/dist/webui-server/ws-handlers/projects.d.ts +44 -0
- package/dist/webui-server/ws-handlers/projects.d.ts.map +1 -0
- package/dist/webui-server/ws-handlers/providers.d.ts +36 -0
- package/dist/webui-server/ws-handlers/providers.d.ts.map +1 -0
- package/dist/webui-server/ws-handlers/sessions.d.ts +38 -0
- package/dist/webui-server/ws-handlers/sessions.d.ts.map +1 -0
- package/dist/webui-server/ws-handlers/worklist.d.ts +49 -0
- package/dist/webui-server/ws-handlers/worklist.d.ts.map +1 -0
- package/dist/webui-server.d.ts +165 -0
- package/dist/webui-server.d.ts.map +1 -0
- package/dist/wiring/brain-and-orchestration.d.ts +81 -0
- package/dist/wiring/brain-and-orchestration.d.ts.map +1 -0
- package/dist/wiring/codebase-index.d.ts +33 -0
- package/dist/wiring/codebase-index.d.ts.map +1 -0
- package/dist/wiring/controllers.d.ts +51 -0
- package/dist/wiring/controllers.d.ts.map +1 -0
- package/dist/wiring/dep-watcher.d.ts +23 -0
- package/dist/wiring/dep-watcher.d.ts.map +1 -0
- package/dist/wiring/design-studio.d.ts +17 -0
- package/dist/wiring/design-studio.d.ts.map +1 -0
- package/dist/wiring/director-setup.d.ts +51 -0
- package/dist/wiring/director-setup.d.ts.map +1 -0
- package/dist/wiring/hq-telemetry.d.ts +44 -0
- package/dist/wiring/hq-telemetry.d.ts.map +1 -0
- package/dist/wiring/lifecycle-plugins.d.ts +61 -0
- package/dist/wiring/lifecycle-plugins.d.ts.map +1 -0
- package/dist/wiring/mailbox-bridge-bootstrap.d.ts +53 -0
- package/dist/wiring/mailbox-bridge-bootstrap.d.ts.map +1 -0
- package/dist/wiring/metrics.d.ts +40 -0
- package/dist/wiring/metrics.d.ts.map +1 -0
- package/dist/wiring/pipeline.d.ts +96 -0
- package/dist/wiring/pipeline.d.ts.map +1 -0
- package/dist/wiring/plugins.d.ts +109 -0
- package/dist/wiring/plugins.d.ts.map +1 -0
- package/dist/wiring/provider-runtime-setup.d.ts +47 -0
- package/dist/wiring/provider-runtime-setup.d.ts.map +1 -0
- package/dist/wiring/provider-runtime.d.ts +57 -0
- package/dist/wiring/provider-runtime.d.ts.map +1 -0
- package/dist/wiring/provider.d.ts +13 -0
- package/dist/wiring/provider.d.ts.map +1 -0
- package/dist/wiring/replay.d.ts +32 -0
- package/dist/wiring/replay.d.ts.map +1 -0
- package/dist/wiring/session.d.ts +58 -0
- package/dist/wiring/session.d.ts.map +1 -0
- package/dist/wiring/slash-commands.d.ts +76 -0
- package/dist/wiring/slash-commands.d.ts.map +1 -0
- package/dist/wiring/super-memory.d.ts +9 -0
- package/dist/wiring/super-memory.d.ts.map +1 -0
- package/dist/wiring/to-execute-deps.d.ts +11 -0
- package/dist/wiring/to-execute-deps.d.ts.map +1 -0
- package/dist/wiring/tools.d.ts +41 -0
- package/dist/wiring/tools.d.ts.map +1 -0
- package/package.json +20 -20
|
@@ -0,0 +1,40 @@
|
|
|
1
|
+
import { type EventBus, type HealthRegistry, type MetricsRuntimeStatus, type MetricsServerHandle, type MetricsSink, type WstackPaths } from '@wrongstack/core';
|
|
2
|
+
import type { MCPRegistry, MCPServerOperationalHealth } from '@wrongstack/mcp';
|
|
3
|
+
export interface MetricsWiringDeps {
|
|
4
|
+
flags: Record<string, unknown>;
|
|
5
|
+
wpaths: WstackPaths;
|
|
6
|
+
events: EventBus;
|
|
7
|
+
logger: {
|
|
8
|
+
info(msg: string): void;
|
|
9
|
+
warn(msg: string): void;
|
|
10
|
+
};
|
|
11
|
+
config: {
|
|
12
|
+
provider: string;
|
|
13
|
+
model: string;
|
|
14
|
+
};
|
|
15
|
+
}
|
|
16
|
+
export interface MetricsWiringResult {
|
|
17
|
+
metricsSink: MetricsSink | undefined;
|
|
18
|
+
healthRegistry: HealthRegistry | undefined;
|
|
19
|
+
metricsServerHandle: MetricsServerHandle | undefined;
|
|
20
|
+
metricsStatus: MetricsRuntimeStatus;
|
|
21
|
+
}
|
|
22
|
+
type McpHealthSource = Pick<MCPRegistry, 'describe'> & {
|
|
23
|
+
operationalHealth?: (() => MCPServerOperationalHealth[]) | undefined;
|
|
24
|
+
};
|
|
25
|
+
type McpMetricsSource = Pick<MCPRegistry, 'onOperation' | 'operationalHealth'>;
|
|
26
|
+
/**
|
|
27
|
+
* Attach an MCP lifecycle check after the registry has started its configured
|
|
28
|
+
* servers. Details intentionally contain counts only: server names, commands,
|
|
29
|
+
* URLs, and authentication configuration never enter `/health` or `/healthz`.
|
|
30
|
+
*/
|
|
31
|
+
export declare function registerMcpHealthCheck(healthRegistry: HealthRegistry | undefined, mcpRegistry: McpHealthSource): void;
|
|
32
|
+
/**
|
|
33
|
+
* Bridge detailed registry telemetry into bounded-cardinality metrics. Server
|
|
34
|
+
* names, reasons, commands, URLs, tool names, and arguments are never labels.
|
|
35
|
+
*/
|
|
36
|
+
export declare function registerMcpMetrics(metricsSink: MetricsSink | undefined, mcpRegistry: McpMetricsSource): () => void;
|
|
37
|
+
export declare function registerMcpObservability(healthRegistry: HealthRegistry | undefined, metricsSink: MetricsSink | undefined, mcpRegistry: McpHealthSource & McpMetricsSource): () => void;
|
|
38
|
+
export declare function setupMetrics(params: MetricsWiringDeps): MetricsWiringResult;
|
|
39
|
+
export {};
|
|
40
|
+
//# sourceMappingURL=metrics.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"metrics.d.ts","sourceRoot":"","sources":["../../src/wiring/metrics.ts"],"names":[],"mappings":"AAGA,OAAO,EAEL,KAAK,QAAQ,EACb,KAAK,cAAc,EAEnB,KAAK,oBAAoB,EACzB,KAAK,mBAAmB,EACxB,KAAK,WAAW,EAEhB,KAAK,WAAW,EAEjB,MAAM,kBAAkB,CAAC;AAE1B,OAAO,KAAK,EAGV,WAAW,EACX,0BAA0B,EAC3B,MAAM,iBAAiB,CAAC;AAEzB,MAAM,WAAW,iBAAiB;IAChC,KAAK,EAAE,MAAM,CAAC,MAAM,EAAE,OAAO,CAAC,CAAC;IAC/B,MAAM,EAAE,WAAW,CAAC;IACpB,MAAM,EAAE,QAAQ,CAAC;IACjB,MAAM,EAAE;QAAE,IAAI,CAAC,GAAG,EAAE,MAAM,GAAG,IAAI,CAAC;QAAC,IAAI,CAAC,GAAG,EAAE,MAAM,GAAG,IAAI,CAAA;KAAE,CAAC;IAC7D,MAAM,EAAE;QAAE,QAAQ,EAAE,MAAM,CAAC;QAAC,KAAK,EAAE,MAAM,CAAA;KAAE,CAAC;CAC7C;AAED,MAAM,WAAW,mBAAmB;IAClC,WAAW,EAAE,WAAW,GAAG,SAAS,CAAC;IACrC,cAAc,EAAE,cAAc,GAAG,SAAS,CAAC;IAC3C,mBAAmB,EAAE,mBAAmB,GAAG,SAAS,CAAC;IACrD,aAAa,EAAE,oBAAoB,CAAC;CACrC;AAID,KAAK,eAAe,GAAG,IAAI,CAAC,WAAW,EAAE,UAAU,CAAC,GAAG;IACrD,iBAAiB,CAAC,EAAE,CAAC,MAAM,0BAA0B,EAAE,CAAC,GAAG,SAAS,CAAC;CACtE,CAAC;AAEF,KAAK,gBAAgB,GAAG,IAAI,CAAC,WAAW,EAAE,aAAa,GAAG,mBAAmB,CAAC,CAAC;AAU/E;;;;GAIG;AACH,wBAAgB,sBAAsB,CACpC,cAAc,EAAE,cAAc,GAAG,SAAS,EAC1C,WAAW,EAAE,eAAe,GAC3B,IAAI,CAsDN;AAED;;;GAGG;AACH,wBAAgB,kBAAkB,CAChC,WAAW,EAAE,WAAW,GAAG,SAAS,EACpC,WAAW,EAAE,gBAAgB,GAC5B,MAAM,IAAI,CA8BZ;AAED,wBAAgB,wBAAwB,CACtC,cAAc,EAAE,cAAc,GAAG,SAAS,EAC1C,WAAW,EAAE,WAAW,GAAG,SAAS,EACpC,WAAW,EAAE,eAAe,GAAG,gBAAgB,GAC9C,MAAM,IAAI,CAGZ;AAkCD,wBAAgB,YAAY,CAAC,MAAM,EAAE,iBAAiB,GAAG,mBAAmB,CAiG3E"}
|
|
@@ -0,0 +1,96 @@
|
|
|
1
|
+
import { Agent, type AgentPipelines, AutoCompactionMiddleware, type Config, type Context, type EventBus, type Logger, type ModelsRegistry, type Provider, type ProviderRegistry, type SessionEventBridge, type ToolRegistry } from '@wrongstack/core';
|
|
2
|
+
type CompactionDriver = ConstructorParameters<typeof AutoCompactionMiddleware>[0];
|
|
3
|
+
export declare function setupPipelines(params: {
|
|
4
|
+
events: EventBus;
|
|
5
|
+
logger: Logger;
|
|
6
|
+
/**
|
|
7
|
+
* Optional request overrides applied on every outgoing request. Used by the
|
|
8
|
+
* model-runtime middleware to map shared reasoning/cache settings into the
|
|
9
|
+
* provider `Request`, gated by the active model's capabilities.
|
|
10
|
+
*/
|
|
11
|
+
modelRuntime?: {
|
|
12
|
+
getSettings(): import('@wrongstack/core').ModelRuntimeConfig | undefined;
|
|
13
|
+
getReasoningConfig(): import('@wrongstack/core').ReasoningConfig | undefined;
|
|
14
|
+
getCapabilities?(): import('@wrongstack/core').Capabilities | undefined;
|
|
15
|
+
onWarning?: ((message: string) => void) | undefined;
|
|
16
|
+
} | undefined;
|
|
17
|
+
}): AgentPipelines;
|
|
18
|
+
export declare function setupCompaction(params: {
|
|
19
|
+
compactor: CompactionDriver;
|
|
20
|
+
events: EventBus;
|
|
21
|
+
modelsRegistry: ModelsRegistry;
|
|
22
|
+
context: Context;
|
|
23
|
+
config: {
|
|
24
|
+
provider?: string | undefined;
|
|
25
|
+
model?: string | undefined;
|
|
26
|
+
providers?: import('@wrongstack/core').Config['providers'] | undefined;
|
|
27
|
+
context: {
|
|
28
|
+
mode?: import('@wrongstack/core').ContextWindowModeId | undefined;
|
|
29
|
+
autoCompact?: boolean | undefined;
|
|
30
|
+
warnThreshold: number;
|
|
31
|
+
softThreshold: number;
|
|
32
|
+
hardThreshold: number;
|
|
33
|
+
preserveK?: number | undefined;
|
|
34
|
+
eliseThreshold?: number | undefined;
|
|
35
|
+
effectiveMaxContext?: number | undefined;
|
|
36
|
+
};
|
|
37
|
+
/** Slice that may contain session.auditLevel (for future richer logging). */
|
|
38
|
+
session?: {
|
|
39
|
+
auditLevel?: 'minimal' | 'standard' | 'full' | undefined;
|
|
40
|
+
} | undefined;
|
|
41
|
+
};
|
|
42
|
+
provider: Provider;
|
|
43
|
+
pipelines: AgentPipelines;
|
|
44
|
+
/** Full config object (preferred) so we can reliably read session.auditLevel. */
|
|
45
|
+
fullConfig?: {
|
|
46
|
+
session?: {
|
|
47
|
+
auditLevel?: 'minimal' | 'standard' | 'full' | undefined;
|
|
48
|
+
} | undefined;
|
|
49
|
+
} | undefined;
|
|
50
|
+
/** Real SessionWriter (used if no pre-created bridge is passed). */
|
|
51
|
+
sessionWriter?: import('@wrongstack/core').SessionWriter | undefined;
|
|
52
|
+
/** Pre-created SessionEventBridge (preferred for sharing across error + compaction + future events). */
|
|
53
|
+
sessionBridge?: SessionEventBridge | undefined;
|
|
54
|
+
}): Promise<{
|
|
55
|
+
effectiveMaxContext: number;
|
|
56
|
+
autoCompactor: AutoCompactionMiddleware | undefined;
|
|
57
|
+
/** The bridge the auto-compactor writes through. Surfaced so the host can
|
|
58
|
+
* apply a live `auditLevel` change (TUI `/settings`) via setAuditLevel(). */
|
|
59
|
+
sessionBridge: SessionEventBridge | undefined;
|
|
60
|
+
}>;
|
|
61
|
+
export declare function createAgent(params: {
|
|
62
|
+
container: import('@wrongstack/core').Container;
|
|
63
|
+
tools: ToolRegistry;
|
|
64
|
+
providers: ProviderRegistry;
|
|
65
|
+
events: EventBus;
|
|
66
|
+
pipelines: AgentPipelines;
|
|
67
|
+
context: Context;
|
|
68
|
+
config: {
|
|
69
|
+
tools: {
|
|
70
|
+
maxIterations: number;
|
|
71
|
+
iterationTimeoutMs: number;
|
|
72
|
+
/** Hard upper bound for a single tool call timeout. Defaults to 5 minutes. */
|
|
73
|
+
maxToolTimeoutMs?: number | undefined;
|
|
74
|
+
defaultExecutionStrategy: 'parallel' | 'sequential' | 'smart';
|
|
75
|
+
perIterationOutputCapBytes: number;
|
|
76
|
+
loopDetection?: import('@wrongstack/core').LoopDetectionConfig | undefined;
|
|
77
|
+
};
|
|
78
|
+
};
|
|
79
|
+
confirmAwaiter: import('@wrongstack/core').AgentInit['confirmAwaiter'];
|
|
80
|
+
permissionPolicy?: import('@wrongstack/core').PermissionPolicy | undefined;
|
|
81
|
+
tracer?: import('@wrongstack/core').Tracer | undefined;
|
|
82
|
+
/** Optional lifecycle hook runner — wired into the tool executor (PreToolUse/PostToolUse). */
|
|
83
|
+
hookRunner?: import('@wrongstack/core').HookRunner | undefined;
|
|
84
|
+
/**
|
|
85
|
+
* Full Config object, used for `features.mailboxBridge` gating and
|
|
86
|
+
* forwarded to `bootstrapMailboxBridgeAtStartup`. Optional — when
|
|
87
|
+
* omitted, the bootstrap defaults to 'auto' (i.e. always run).
|
|
88
|
+
* Tests can pass a stub with just `{ features: { mailboxBridge: 'off' } }`
|
|
89
|
+
* to skip the bridge entirely without touching the host config.
|
|
90
|
+
*/
|
|
91
|
+
fullConfig?: Pick<Config, 'features'> | undefined;
|
|
92
|
+
/** Surface label for the bootstrap log breadcrumb. */
|
|
93
|
+
source?: 'cli' | 'webui' | 'eternal' | undefined;
|
|
94
|
+
}): Agent;
|
|
95
|
+
export {};
|
|
96
|
+
//# sourceMappingURL=pipeline.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"pipeline.d.ts","sourceRoot":"","sources":["../../src/wiring/pipeline.ts"],"names":[],"mappings":"AAAA,OAAO,EACL,KAAK,EACL,KAAK,cAAc,EAEnB,wBAAwB,EACxB,KAAK,MAAM,EACX,KAAK,OAAO,EAGZ,KAAK,QAAQ,EAEb,KAAK,MAAM,EACX,KAAK,cAAc,EACnB,KAAK,QAAQ,EACb,KAAK,gBAAgB,EAGrB,KAAK,kBAAkB,EAEvB,KAAK,YAAY,EAClB,MAAM,kBAAkB,CAAC;AAK1B,KAAK,gBAAgB,GAAG,qBAAqB,CAAC,OAAO,wBAAwB,CAAC,CAAC,CAAC,CAAC,CAAC;AAElF,wBAAgB,cAAc,CAAC,MAAM,EAAE;IACrC,MAAM,EAAE,QAAQ,CAAC;IACjB,MAAM,EAAE,MAAM,CAAC;IACf;;;;OAIG;IACH,YAAY,CAAC,EAAE;QACb,WAAW,IAAI,OAAO,kBAAkB,EAAE,kBAAkB,GAAG,SAAS,CAAC;QACzE,kBAAkB,IAAI,OAAO,kBAAkB,EAAE,eAAe,GAAG,SAAS,CAAC;QAC7E,eAAe,CAAC,IAAI,OAAO,kBAAkB,EAAE,YAAY,GAAG,SAAS,CAAC;QACxE,SAAS,CAAC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UAAU,GAAG,SAAS,CAAC;IAC/D;;;;;;OAMG;IACH,UAAU,CAAC,EAAE,IAAI,CAAC,MAAM,EAAE,UAAU,CAAC,GAAG,SAAS,CAAC;IAClD,sDAAsD;IACtD,MAAM,CAAC,EAAE,KAAK,GAAG,OAAO,GAAG,SAAS,GAAG,SAAS,CAAC;CAClD,GAAG,KAAK,CA4DR"}
|
|
@@ -0,0 +1,109 @@
|
|
|
1
|
+
import type { AgentPipelines, Config, ConfigStore, Container, EventBus, ExtensionRegistry, HealthRegistry, Logger, MetricsSinkView, MetricsRuntimeStatus, ModelsRegistry, Plugin, PromptLoader, ProviderRegistry, SessionWriter, SkillLoader, SlashCommandRegistry, ToolRegistry } from '@wrongstack/core';
|
|
2
|
+
import type { MCPRegistry } from '@wrongstack/mcp';
|
|
3
|
+
export declare const DEPRECATED_PLUGIN_NAMES: Record<string, string>;
|
|
4
|
+
export declare const BUILTIN_PLUGIN_CONFIG_NAMES: Set<string>;
|
|
5
|
+
/** Test helper: reset the dedupe set between test cases. */
|
|
6
|
+
export declare function _resetDeprecatedWarningsForTests(): void;
|
|
7
|
+
/**
|
|
8
|
+
* If `name` is in `DEPRECATED_PLUGIN_NAMES`, log a one-shot `warn`
|
|
9
|
+
* describing the migration target and return true (caller should
|
|
10
|
+
* skip the plugin). If the name is deprecated but already warned
|
|
11
|
+
* about, return true WITHOUT logging again — the caller still needs
|
|
12
|
+
* to know to skip the plugin. For unknown names, return false.
|
|
13
|
+
*/
|
|
14
|
+
export declare function warnIfDeprecatedPluginName(name: string, log: Logger): boolean;
|
|
15
|
+
/**
|
|
16
|
+
* Normalize a plugin spec (either a short name like `'web-search'` or a
|
|
17
|
+
* fully-qualified import path like `'@wrongstack/plugins/web-search'`)
|
|
18
|
+
* to its bare plugin name. Used to look the spec up in
|
|
19
|
+
* `DEPRECATED_PLUGIN_NAMES` regardless of how the user spelled it.
|
|
20
|
+
*
|
|
21
|
+
* Returns null if the spec is not a string we can normalize (e.g.
|
|
22
|
+
* relative paths, file URLs).
|
|
23
|
+
*/
|
|
24
|
+
export declare function pluginNameFromSpec(spec: string): string | null;
|
|
25
|
+
export declare function builtinPluginNameFromSpec(spec: string): string | null;
|
|
26
|
+
export interface PluginsWiringDeps {
|
|
27
|
+
config: Config;
|
|
28
|
+
container: Container;
|
|
29
|
+
events: EventBus;
|
|
30
|
+
pipelines: AgentPipelines;
|
|
31
|
+
toolRegistry: ToolRegistry;
|
|
32
|
+
providerRegistry: ProviderRegistry;
|
|
33
|
+
slashCommandRegistry: SlashCommandRegistry;
|
|
34
|
+
mcpRegistry: MCPRegistry;
|
|
35
|
+
log: Logger;
|
|
36
|
+
agent: {
|
|
37
|
+
extensions?: ExtensionRegistry | undefined;
|
|
38
|
+
};
|
|
39
|
+
/** Lifecycle hook registry — injected so plugins can register in-process hooks. */
|
|
40
|
+
hookRegistry?: import('@wrongstack/core').HookRegistry | undefined;
|
|
41
|
+
sessionWriter: SessionWriter;
|
|
42
|
+
metricsSink?: MetricsSinkView | undefined;
|
|
43
|
+
metricsStatus?: MetricsRuntimeStatus | undefined;
|
|
44
|
+
/**
|
|
45
|
+
* Models registry (models.dev-backed catalog of providers, models, and
|
|
46
|
+
* per-token pricing). Forwarded to plugins that need model metadata
|
|
47
|
+
* (cost-tracker, billing reports). Optional — minimal hosts may omit.
|
|
48
|
+
*/
|
|
49
|
+
modelsRegistry?: ModelsRegistry | undefined;
|
|
50
|
+
/**
|
|
51
|
+
* Project-level mailbox (GlobalMailbox). Forwarded to plugins that
|
|
52
|
+
* publish to other agents (todo-listener, session-recap). Optional —
|
|
53
|
+
* minimal hosts (tests, the LSP server) may omit.
|
|
54
|
+
*/
|
|
55
|
+
mailbox?: import('@wrongstack/core').Mailbox | undefined;
|
|
56
|
+
/**
|
|
57
|
+
* LLM wiring for `api.llm` — the host session's live provider, its
|
|
58
|
+
* default model, and a factory for named-provider overrides. Optional —
|
|
59
|
+
* minimal hosts omit it and plugins see `api.llm === undefined`.
|
|
60
|
+
*/
|
|
61
|
+
llm?: {
|
|
62
|
+
provider: import('@wrongstack/core').Provider;
|
|
63
|
+
model: string;
|
|
64
|
+
createProvider?: ((name: string, model?: string) => import('@wrongstack/core').Provider) | undefined;
|
|
65
|
+
} | undefined;
|
|
66
|
+
/** Health registry — injected so the observability built-in can run /health. */
|
|
67
|
+
healthRegistry?: HealthRegistry | undefined;
|
|
68
|
+
/** Skill loader — injected so the skills built-in can list/read skills. */
|
|
69
|
+
skillLoader?: SkillLoader | undefined;
|
|
70
|
+
/** Prompt loader — injected so the prompts built-in can list/search/save prompts. */
|
|
71
|
+
promptLoader?: PromptLoader | undefined;
|
|
72
|
+
configStore: ConfigStore;
|
|
73
|
+
/** Secret vault — injected so sync plugin can encrypt the GitHub token. */
|
|
74
|
+
vault?: {
|
|
75
|
+
encrypt(plaintext: string): string;
|
|
76
|
+
decrypt?(value: string): string;
|
|
77
|
+
};
|
|
78
|
+
/** Resolved WstackPaths — injected so built-in plugins can init stores. */
|
|
79
|
+
paths?: {
|
|
80
|
+
globalRoot: string;
|
|
81
|
+
globalConfig: string;
|
|
82
|
+
globalSkills: string;
|
|
83
|
+
globalPrompts: string;
|
|
84
|
+
globalMemory: string;
|
|
85
|
+
historyFile: string;
|
|
86
|
+
syncConfig: string;
|
|
87
|
+
/**
|
|
88
|
+
* Per-project root (`~/.wrongstack/projects/<slug>/`). Plugins that
|
|
89
|
+
* need project-scoped state (todo-tracker, etc.) should put their
|
|
90
|
+
* files here so they follow the same lifecycle as goals/SDD
|
|
91
|
+
* boards/tasks.
|
|
92
|
+
*/
|
|
93
|
+
projectDir?: string;
|
|
94
|
+
/** Per-project goal.json path. Useful as a sibling anchor. */
|
|
95
|
+
projectGoal?: string;
|
|
96
|
+
};
|
|
97
|
+
}
|
|
98
|
+
/**
|
|
99
|
+
* Built-in plugins loaded automatically for every WrongStack session.
|
|
100
|
+
* Lazy (dynamic import) so they don't bloat consumers who never use them.
|
|
101
|
+
*
|
|
102
|
+
* Disable a built-in by adding `{ name: 'wstack-prompts', enabled: false }`
|
|
103
|
+
* to config.plugins.
|
|
104
|
+
*
|
|
105
|
+
* Override for tests by mocking this module's `BUILTIN_PLUGIN_FACTORIES`.
|
|
106
|
+
*/
|
|
107
|
+
export declare const BUILTIN_PLUGIN_FACTORIES: (() => Promise<Plugin>)[];
|
|
108
|
+
export declare function setupPlugins(params: PluginsWiringDeps): Promise<void>;
|
|
109
|
+
//# sourceMappingURL=plugins.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"plugins.d.ts","sourceRoot":"","sources":["../../src/wiring/plugins.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EACV,cAAc,EACd,MAAM,EACN,WAAW,EACX,SAAS,EACT,QAAQ,EACR,iBAAiB,EACjB,cAAc,EACd,MAAM,EACN,eAAe,EACf,oBAAoB,EACpB,cAAc,EACd,MAAM,EACN,YAAY,EACZ,gBAAgB,EAChB,aAAa,EACb,WAAW,EACX,oBAAoB,EACpB,YAAY,EACb,MAAM,kBAAkB,CAAC;AAG1B,OAAO,KAAK,EAAE,WAAW,EAAE,MAAM,iBAAiB,CAAC;AAoBnD,eAAO,MAAM,uBAAuB,EAAE,MAAM,CAAC,MAAM,EAAE,MAAM,CAG1D,CAAC;AAaF,eAAO,MAAM,2BAA2B,aAItC,CAAC;AAEH,4DAA4D;AAC5D,wBAAgB,gCAAgC,IAAI,IAAI,CAEvD;AAED;;;;;;GAMG;AACH,wBAAgB,0BAA0B,CAAC,IAAI,EAAE,MAAM,EAAE,GAAG,EAAE,MAAM,GAAG,OAAO,CAO7E;AAED;;;;;;;;GAQG;AACH,wBAAgB,kBAAkB,CAAC,IAAI,EAAE,MAAM,GAAG,MAAM,GAAG,IAAI,CAS9D;AAED,wBAAgB,yBAAyB,CAAC,IAAI,EAAE,MAAM,GAAG,MAAM,GAAG,IAAI,CAMrE;AAED,MAAM,WAAW,iBAAiB;IAChC,MAAM,EAAE,MAAM,CAAC;IACf,SAAS,EAAE,S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AC,SAAS,EAAE,MAAM,GAAG,MAAM,CAAC;QAAC,OAAO,CAAC,CAAC,KAAK,EAAE,MAAM,GAAG,MAAM,CAAA;KAAE,CAAC;IAChF,2EAA2E;IAC3E,KAAK,CAAC,EAAE;QACN,UAAU,EAAE,MAAM,CAAC;QACnB,YAAY,EAAE,MAAM,CAAC;QACrB,YAAY,EAAE,MAAM,CAAC;QACrB,aAAa,EAAE,MAAM,CAAC;QACtB,YAAY,EAAE,MAAM,CAAC;QACrB,WAAW,EAAE,MAAM,CAAC;QACpB,UAAU,EAAE,MAAM,CAAC;QACnB;;;;;WAKG;QACH,UAAU,CAAC,EAAE,MAAM,CAAC;QACpB,8DAA8D;QAC9D,WAAW,CAAC,EAAE,MAAM,CAAC;KACtB,CAAC;CACH;AAED;;;;;;;;GAQG;AACH,eAAO,MAAM,wBAAwB,EAAE,CAAC,MAAM,OAAO,CAAC,MAAM,CAAC,CAAC,EAyF7D,CAAC;AAEF,wBAAsB,YAAY,CAAC,MAAM,EAAE,iBAAiB,GAAG,OAAO,CAAC,IAAI,CAAC,CA0L3E"}
|
|
@@ -0,0 +1,47 @@
|
|
|
1
|
+
import { type Config, type EventBus, type Logger, type Provider, type ProviderConfig, type ProviderRegistry, type SecretVault, type WstackPaths } from '@wrongstack/core';
|
|
2
|
+
type AnyObj = any;
|
|
3
|
+
export interface ProviderRuntimeDeps {
|
|
4
|
+
config: Config;
|
|
5
|
+
/** Called whenever the function patches config, so the caller stays in sync. */
|
|
6
|
+
onConfigUpdate: (config: Config) => void;
|
|
7
|
+
configStore: AnyObj;
|
|
8
|
+
providerRegistry: ProviderRegistry;
|
|
9
|
+
agent: AnyObj;
|
|
10
|
+
memoryStore: AnyObj;
|
|
11
|
+
refreshMaxContext: (providerId: string, modelId: string, cfg?: ProviderConfig) => Promise<void>;
|
|
12
|
+
refreshActiveReasoningConfig: (providerId: string, modelId: string) => Promise<void>;
|
|
13
|
+
wpaths: WstackPaths;
|
|
14
|
+
vault: SecretVault;
|
|
15
|
+
logger: Logger;
|
|
16
|
+
teardownHandlers: (() => void)[];
|
|
17
|
+
context: AnyObj;
|
|
18
|
+
events: EventBus;
|
|
19
|
+
resolveProviderCfgRuntime: (config: Config, providerId: string) => {
|
|
20
|
+
cfg: ProviderConfig;
|
|
21
|
+
};
|
|
22
|
+
buildProviderForIdRuntime: (opts: {
|
|
23
|
+
config: Config;
|
|
24
|
+
providerRegistry: ProviderRegistry;
|
|
25
|
+
}, providerId: string) => Provider;
|
|
26
|
+
}
|
|
27
|
+
export interface ProviderRuntimeResult {
|
|
28
|
+
resolveProviderCfg: (providerId: string) => {
|
|
29
|
+
cfg: ProviderConfig;
|
|
30
|
+
};
|
|
31
|
+
buildProviderForId: (providerId: string) => Provider;
|
|
32
|
+
refreshMaxContextFor: (providerId: string, modelId: string) => Promise<void>;
|
|
33
|
+
refreshRuntimeModelStateFor: (providerId: string, modelId: string) => Promise<void>;
|
|
34
|
+
switchProviderAndModel: (providerId: string, modelId: string) => Promise<string | null>;
|
|
35
|
+
}
|
|
36
|
+
/**
|
|
37
|
+
* Wire runtime provider-config helpers, fallback model extension,
|
|
38
|
+
* memory consolidation, the provider/model switch callback, and
|
|
39
|
+
* the credential hot-reload watcher.
|
|
40
|
+
*
|
|
41
|
+
* Uses `onConfigUpdate` to propagate config patches back to the caller,
|
|
42
|
+
* avoiding the desync that a bare `{ current: Config }` ref would cause
|
|
43
|
+
* when the caller also mutates `config` directly.
|
|
44
|
+
*/
|
|
45
|
+
export declare function setupProviderRuntime(deps: ProviderRuntimeDeps): ProviderRuntimeResult;
|
|
46
|
+
export {};
|
|
47
|
+
//# sourceMappingURL=provider-runtime-setup.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"provider-runtime-setup.d.ts","sourceRoot":"","sources":["../../src/wiring/provider-runtime-setup.ts"],"names":[],"mappings":"AAAA,OAAO,EACL,KAAK,MAAM,EAEX,KAAK,QAAQ,EACb,KAAK,MAAM,EACX,KAAK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;KAAE,CAAC;IACpE,kBAAkB,EAAE,CAAC,UAAU,EAAE,MAAM,KAAK,QAAQ,CAAC;IACrD,oBAAoB,EAAE,CAAC,UAAU,EAAE,MAAM,EAAE,OAAO,EAAE,MAAM,KAAK,OAAO,CAAC,IAAI,CAAC,CAAC;IAC7E,2BAA2B,EAAE,CAAC,UAAU,EAAE,MAAM,EAAE,OAAO,EAAE,MAAM,KAAK,OAAO,CAAC,IAAI,CAAC,CAAC;IACpF,sBAAsB,EAAE,CAAC,UAAU,EAAE,MAAM,EAAE,OAAO,EAAE,MAAM,KAAK,OAAO,CAAC,MAAM,GAAG,IAAI,CAAC,CAAC;CACzF;AAED;;;;;;;;GAQG;AACH,wBAAgB,oBAAoB,CAAC,IAAI,EAAE,mBAAmB,GAAG,qBAAqB,CA+HrF"}
|
|
@@ -0,0 +1,57 @@
|
|
|
1
|
+
import type { Config, Provider, ProviderConfig } from '@wrongstack/core';
|
|
2
|
+
import type { ProviderRegistry } from '@wrongstack/core';
|
|
3
|
+
/**
|
|
4
|
+
* Resolve the user-visible providerId into a runtime cfg + a factory type
|
|
5
|
+
* for catalog lookups. Single source of truth for how a saved-config
|
|
6
|
+
* provider (with an explicit `type` and/or `family`) maps onto the wire
|
|
7
|
+
* protocol + the user's chosen id.
|
|
8
|
+
*
|
|
9
|
+
* Bug-fix history: previously this collapsed `savedCfg.type` into the
|
|
10
|
+
* returned `resolvedProviderId`, so any call to `buildProviderForId('minimax-coding-plan')`
|
|
11
|
+
* (where the saved config has `type: 'anthropic'`) produced a Provider
|
|
12
|
+
* with `id === 'anthropic'` instead of `'minimax-coding-plan'`. After any
|
|
13
|
+
* `switchProviderAndModel` / fallback / session-resume call, `ctx.provider.id`
|
|
14
|
+
* stopped matching the user's chosen provider id — exactly the drift
|
|
15
|
+
* reported in issue #16.
|
|
16
|
+
*
|
|
17
|
+
* The fix matches the startup path in `wiring/provider.ts`: keep
|
|
18
|
+
* `cfg.type === providerId` so the resulting Provider's `id` is the
|
|
19
|
+
* user's chosen id. Catalog resolution (factory lookup, maxContext
|
|
20
|
+
* catalog lookup) separately resolves the alias via the saved config's
|
|
21
|
+
* `type` or `family`:
|
|
22
|
+
* - providerRegistry.has(...) is keyed by `factoryType` (the wire family).
|
|
23
|
+
* - resolveRuntimeMaxContext(...) resolves the alias internally — see
|
|
24
|
+
* `packages/cli/src/context-limit.ts:100-106`.
|
|
25
|
+
*
|
|
26
|
+
* We pass `providerId` (the user-visible id) to both, and let them resolve.
|
|
27
|
+
*/
|
|
28
|
+
export interface ResolvedProviderCfg {
|
|
29
|
+
/**
|
|
30
|
+
* `cfg` passed to either `providerRegistry.create(cfg)` or
|
|
31
|
+
* `makeProviderFromConfig(id, cfg)`. `cfg.type === providerId` so the
|
|
32
|
+
* resulting Provider's `id` is the user's chosen id.
|
|
33
|
+
*/
|
|
34
|
+
cfg: ProviderConfig;
|
|
35
|
+
/**
|
|
36
|
+
* Factory type used for the `providerRegistry.has(...)` lookup. Equal
|
|
37
|
+
* to `savedCfg.type ?? providerId`. For a saved-config alias like
|
|
38
|
+
* `minimax-coding-plan` with `type: 'anthropic'`, this is `'anthropic'`
|
|
39
|
+
* so the catalog factory lookup succeeds; for a plain catalog entry,
|
|
40
|
+
* this equals `providerId`.
|
|
41
|
+
*/
|
|
42
|
+
factoryType: string;
|
|
43
|
+
}
|
|
44
|
+
export declare function resolveProviderCfg(config: Pick<Config, 'providers' | 'apiKey' | 'baseUrl'>, providerId: string): ResolvedProviderCfg;
|
|
45
|
+
/**
|
|
46
|
+
* Construct a credential-resolved Provider for a provider id, WITHOUT
|
|
47
|
+
* persisting anything. Shared by the `/model` switch and the fallback
|
|
48
|
+
* extension. The returned Provider's `id` is always the user-visible
|
|
49
|
+
* `providerId`, regardless of whether the saved config has an explicit
|
|
50
|
+
* `type` (OAuth / subscription / saved-config alias) or not (plain
|
|
51
|
+
* catalog entry).
|
|
52
|
+
*/
|
|
53
|
+
export declare function buildProviderForId(args: {
|
|
54
|
+
config: Pick<Config, 'providers' | 'apiKey' | 'baseUrl' | 'features'>;
|
|
55
|
+
providerRegistry: ProviderRegistry;
|
|
56
|
+
}, providerId: string): Provider;
|
|
57
|
+
//# sourceMappingURL=provider-runtime.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"provider-runtime.d.ts","sourceRoot":"","sources":["../../src/wiring/provider-runtime.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,MAAM,EAAE,QAAQ,EAAE,cAAc,EAAE,MAAM,kBAAkB,CAAC;AACzE,OAAO,KAAK,EAAE,gBAAgB,EAAE,MAAM,kBAAkB,CAAC;AAGzD;;;;;;;;;;;;;;;;;;;;;;;;GAwBG;AACH,MAAM,WAAW,mBAAmB;IAClC;;;;OAIG;IACH,GAAG,EAAE,cAAc,CAAC;IACpB;;;;;;OAMG;IACH,WAAW,EAAE,MAAM,CAAC;CACrB;AAED,wBAAgB,kBAAkB,CAChC,MAAM,EAAE,IAAI,CAAC,MAAM,EAAE,WAAW,GAAG,QAAQ,GAAG,SAAS,CAAC,EACxD,UAAU,EAAE,MAAM,GACjB,mBAAmB,CAYrB;AAED;;;;;;;GAOG;AACH,wBAAgB,kBAAkB,CAChC,IAAI,EAAE;IACJ,MAAM,EAAE,IAAI,CAAC,MAAM,EAAE,WAAW,GAAG,QAAQ,GAAG,SAAS,GAAG,UAAU,CAAC,CAAC;IACtE,gBAAgB,EAAE,gBAAgB,CAAC;CACpC,EACD,UAAU,EAAE,MAAM,GACjB,QAAQ,CAMV"}
|
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
import type { ResolvedProvider } from '@wrongstack/core';
|
|
2
|
+
import { type Config, type Logger, type ModelsRegistry, ProviderRegistry } from '@wrongstack/core';
|
|
3
|
+
export interface ProviderSetupResult {
|
|
4
|
+
resolvedProvider: ResolvedProvider | undefined;
|
|
5
|
+
provider: ReturnType<ProviderRegistry['create']>;
|
|
6
|
+
providerRegistry: ProviderRegistry;
|
|
7
|
+
}
|
|
8
|
+
export declare function setupProvider(params: {
|
|
9
|
+
config: Config;
|
|
10
|
+
modelsRegistry: ModelsRegistry;
|
|
11
|
+
logger: Logger;
|
|
12
|
+
}): Promise<ProviderSetupResult>;
|
|
13
|
+
//# sourceMappingURL=provider.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"provider.d.ts","sourceRoot":"","sources":["../../src/wiring/provider.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,gBAAgB,EAAE,MAAM,kBAAkB,CAAC;AACzD,OAAO,EAEL,KAAK,MAAM,EACX,KAAK,MAAM,EACX,KAAK,cAAc,EACnB,gBAAgB,EACjB,MAAM,kBAAkB,CAAC;AAQ1B,MAAM,WAAW,mBAAmB;IAClC,gBAAgB,EAAE,gBAAgB,GAAG,SAAS,CAAC;IAC/C,QAAQ,EAAE,UAAU,CAAC,gBAAgB,CAAC,QAAQ,CAAC,CAAC,CAAC;IACjD,gBAAgB,EAAE,gBAAgB,CAAC;CACpC;AAED,wBAAsB,aAAa,CAAC,MAAM,EAAE;IAC1C,MAAM,EAAE,MAAM,CAAC;IACf,cAAc,EAAE,cAAc,CAAC;IAC/B,MAAM,EAAE,MAAM,CAAC;CAChB,GAAG,OAAO,CAAC,mBAAmB,CAAC,CA+I/B"}
|
|
@@ -0,0 +1,32 @@
|
|
|
1
|
+
import { type Container, type Logger, type ReplayMode, type WstackPaths } from '@wrongstack/core';
|
|
2
|
+
/**
|
|
3
|
+
* Bind a `ReplayProviderRunner` into the container under
|
|
4
|
+
* `TOKENS.ProviderRunner`. The agent picks this up at construction
|
|
5
|
+
* time and uses the wrapped runner for every LLM call.
|
|
6
|
+
*
|
|
7
|
+
* Three modes are exposed via the `mode` parameter:
|
|
8
|
+
*
|
|
9
|
+
* - 'record' — every real API call is persisted. Used in
|
|
10
|
+
* production-like runs to build a replay log that can later
|
|
11
|
+
* be re-exercised in dev / CI.
|
|
12
|
+
* - 'replay' — only the log is consulted. The inner runner is
|
|
13
|
+
* never called. Useful for deterministic regression tests
|
|
14
|
+
* and offline debugging.
|
|
15
|
+
* - 'auto' — record on miss, serve on hit. This is the
|
|
16
|
+
* "warm start" mode for dev iterations: the first time a
|
|
17
|
+
* particular request is seen, it is recorded; subsequent
|
|
18
|
+
* identical requests are served from the log.
|
|
19
|
+
*
|
|
20
|
+
* The log lives next to the session JSONL via
|
|
21
|
+
* `sessionScopedPath(projectSessions, sessionId, '.replay.jsonl')`,
|
|
22
|
+
* colocated with annotations and audit sidecars.
|
|
23
|
+
*/
|
|
24
|
+
export interface BindReplayOptions {
|
|
25
|
+
container: Container;
|
|
26
|
+
wpaths: WstackPaths;
|
|
27
|
+
sessionId: string;
|
|
28
|
+
mode: ReplayMode;
|
|
29
|
+
logger?: Logger | undefined;
|
|
30
|
+
}
|
|
31
|
+
export declare function bindReplayToContainer(opts: BindReplayOptions): void;
|
|
32
|
+
//# sourceMappingURL=replay.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"replay.d.ts","sourceRoot":"","sources":["../../src/wiring/replay.ts"],"names":[],"mappings":"AAAA,OAAO,EACL,KAAK,SAAS,EACd,KAAK,MAAM,EAGX,KAAK,UAAU,EAIf,KAAK,WAAW,EACjB,MAAM,kBAAkB,CAAC;AAE1B;;;;;;;;;;;;;;;;;;;;;GAqBG;AACH,MAAM,WAAW,iBAAiB;IAChC,SAAS,EAAE,SAAS,CAAC;IACrB,MAAM,EAAE,WAAW,CAAC;IACpB,SAAS,EAAE,MAAM,CAAC;IAClB,IAAI,EAAE,UAAU,CAAC;IACjB,MAAM,CAAC,EAAE,MAAM,GAAG,SAAS,CAAC;CAC7B;AAED,wBAAgB,qBAAqB,CAAC,IAAI,EAAE,iBAAiB,GAAG,IAAI,CA+BnE"}
|
|
@@ -0,0 +1,58 @@
|
|
|
1
|
+
import { type AbandonedSession, Context, DefaultAttachmentStore, QueueStore, RecoveryLock, type SessionStore, type SessionWriter, type WstackPaths } from '@wrongstack/core';
|
|
2
|
+
export interface SessionResult {
|
|
3
|
+
session: SessionWriter;
|
|
4
|
+
sessionRef: {
|
|
5
|
+
current?: SessionWriter | undefined;
|
|
6
|
+
};
|
|
7
|
+
/** 32-char hex trace ID for correlating storage events with agent iterations. */
|
|
8
|
+
traceId: string;
|
|
9
|
+
context: Context;
|
|
10
|
+
restoredMessages: import('@wrongstack/core').Message[];
|
|
11
|
+
attachments: DefaultAttachmentStore;
|
|
12
|
+
recoveryLock: RecoveryLock;
|
|
13
|
+
queueStore: QueueStore;
|
|
14
|
+
planPath: string;
|
|
15
|
+
detachTodosCheckpoint: () => void;
|
|
16
|
+
/** Director state checkpoint from the prior run — null if this is not a resume. */
|
|
17
|
+
priorFleetState?: import('@wrongstack/core').DirectorStateSnapshot | undefined;
|
|
18
|
+
/** Tool execution records from the prior session (tool_call_end JSONL events). */
|
|
19
|
+
restoredToolCalls: Array<{
|
|
20
|
+
name: string;
|
|
21
|
+
id: string;
|
|
22
|
+
durationMs: number;
|
|
23
|
+
ok: boolean;
|
|
24
|
+
outputBytes?: number | undefined;
|
|
25
|
+
outputTokens?: number | undefined;
|
|
26
|
+
outputLines?: number | undefined;
|
|
27
|
+
}>;
|
|
28
|
+
}
|
|
29
|
+
export declare function setupSession(params: {
|
|
30
|
+
config: {
|
|
31
|
+
model: string;
|
|
32
|
+
provider: string;
|
|
33
|
+
features?: {
|
|
34
|
+
allowOutsideProjectRoot?: boolean | undefined;
|
|
35
|
+
};
|
|
36
|
+
tools?: {
|
|
37
|
+
restrictToProjectRoot?: boolean | undefined;
|
|
38
|
+
} | undefined;
|
|
39
|
+
};
|
|
40
|
+
wpaths: WstackPaths;
|
|
41
|
+
projectRoot: string;
|
|
42
|
+
cwd: string;
|
|
43
|
+
sessionStore: SessionStore;
|
|
44
|
+
systemPrompt: import('@wrongstack/core').TextBlock[];
|
|
45
|
+
provider: import('@wrongstack/core').Provider;
|
|
46
|
+
tokenCounter: import('@wrongstack/core').TokenCounter;
|
|
47
|
+
renderer: {
|
|
48
|
+
writeInfo(msg: string): void;
|
|
49
|
+
writeError(msg: string): void;
|
|
50
|
+
};
|
|
51
|
+
flags: Record<string, unknown>;
|
|
52
|
+
onRecovery: (abandoned: AbandonedSession, autoRecover: boolean) => Promise<'resume' | 'delete' | 'skip'>;
|
|
53
|
+
/** Optional EventBus for emitting storage.* events from todo/queue/task stores. */
|
|
54
|
+
events?: import('@wrongstack/core').EventBus;
|
|
55
|
+
/** Logger for structured storage warnings. */
|
|
56
|
+
logger?: import('@wrongstack/core').Logger | undefined;
|
|
57
|
+
}): Promise<SessionResult>;
|
|
58
|
+
//# sourceMappingURL=session.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"session.d.ts","sourceRoot":"","sources":["../../src/wiring/session.ts"],"names":[],"mappings":"AAGA,OAAO,EAGL,KAAK,gBAAgB,EAErB,OAAO,EAEP,sBAAsB,EAKtB,UAAU,EACV,YAAY,EACZ,KAAK,YAAY,EACjB,KAAK,aAAa,EAClB,KAAK,WAAW,EACjB,MAAM,kBAAkB,CAAC;AAC1B,MAAM,WAAW,aAAa;IAC5B,OAAO,EAAE,aAAa,CAAC;IACvB,UAAU,EAAE;QAAE,OAAO,CAAC,EAAE,aAAa,GAAG,SAAS,CAAA;KAAE,CAAC;IACpD,iFAAiF;IACjF,OAAO,EAAE,MAAM,CAAC;IAChB,OAAO,EAAE,OAAO,CAAC;IACjB,gBAAgB,EAAE,OAAO,kBAAkB,EAAE,OAAO,EAAE,CAAC;IACvD,WAAW,EAAE,sBAAsB,CAAC;IACpC,YAAY,EAAE,YAAY,CAAC;IAC3B,UAAU,EAAE,UAAU,CAAC;IACvB,QAAQ,EAAE,MAAM,CAAC;IACjB,qBAAqB,EAAE,MAAM,IAAI,CAAC;IAClC,mFAAmF;IACnF,eAAe,CAAC,EAAE,OAAO,kBAAkB,EAAE,qBAAqB,GAAG,SAAS,CAAC;IAC/E,kFAAkF;IAClF,iBAAiB,EAAE,K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,mFAAmF;IACnF,MAAM,CAAC,EAAE,OAAO,kBAAkB,EAAE,QAAQ,CAAC;IAC7C,8CAA8C;IAC9C,MAAM,CAAC,EAAE,OAAO,kBAAkB,EAAE,MAAM,GAAG,SAAS,CAAC;CACxD,GAAG,OAAO,CAAC,aAAa,CAAC,CAmNzB"}
|
|
@@ -0,0 +1,76 @@
|
|
|
1
|
+
import type { CompactReport, ConfigStore, Context, EventBus, HealthRegistry, InputReader, MemoryStore, MetricsSink, ModeStore, Provider, Renderer, SessionStore, SkillLoader, SlashCommandRegistry, TokenCounter, ToolRegistry, WstackPaths } from '@wrongstack/core';
|
|
2
|
+
import type { MultiAgentHost } from '../multi-agent.js';
|
|
3
|
+
import type { StatuslineConfig } from '../slash-commands/statusline.js';
|
|
4
|
+
export interface SlashCommandsDeps {
|
|
5
|
+
slashRegistry: SlashCommandRegistry;
|
|
6
|
+
toolRegistry: ToolRegistry;
|
|
7
|
+
paths: WstackPaths;
|
|
8
|
+
sessionStore: SessionStore;
|
|
9
|
+
skillLoader: SkillLoader | undefined;
|
|
10
|
+
tokenCounter: TokenCounter;
|
|
11
|
+
renderer: Renderer;
|
|
12
|
+
reader: InputReader;
|
|
13
|
+
events: EventBus;
|
|
14
|
+
memoryStore: MemoryStore;
|
|
15
|
+
context: Context;
|
|
16
|
+
cwd: string;
|
|
17
|
+
projectRoot: string;
|
|
18
|
+
metricsSink: MetricsSink | undefined;
|
|
19
|
+
healthRegistry: HealthRegistry | undefined;
|
|
20
|
+
planPath: string;
|
|
21
|
+
modeStore: ModeStore;
|
|
22
|
+
provider: Provider;
|
|
23
|
+
model: string;
|
|
24
|
+
multiAgentHost: MultiAgentHost;
|
|
25
|
+
fleetStreamController: {
|
|
26
|
+
enabled: boolean;
|
|
27
|
+
setEnabled(enabled: boolean): void;
|
|
28
|
+
mode: import('@wrongstack/core').FleetChatVerbosity;
|
|
29
|
+
setMode(mode: import('@wrongstack/core').FleetChatVerbosity): void;
|
|
30
|
+
};
|
|
31
|
+
/** Controller for the agents monitor overlay (optional). */
|
|
32
|
+
agentsMonitorController?: {
|
|
33
|
+
visible: boolean;
|
|
34
|
+
setVisible: (visible: boolean) => void;
|
|
35
|
+
};
|
|
36
|
+
/** Tracks the active Shadow Agent subagent id. Set after spawn; cleared on terminate. */
|
|
37
|
+
shadowController?: {
|
|
38
|
+
activeId: string | null;
|
|
39
|
+
register(id: string): void;
|
|
40
|
+
clear(): void;
|
|
41
|
+
getDefaults?: (() => {
|
|
42
|
+
intervalMs?: number;
|
|
43
|
+
provider?: string;
|
|
44
|
+
model?: string;
|
|
45
|
+
}) | undefined;
|
|
46
|
+
setDefaults?: ((defaults: {
|
|
47
|
+
intervalMs?: number;
|
|
48
|
+
provider?: string;
|
|
49
|
+
model?: string;
|
|
50
|
+
}) => void) | undefined;
|
|
51
|
+
};
|
|
52
|
+
/** Agent Monitor Service — subagent conversation tracking and HQ streaming. */
|
|
53
|
+
agentMonitor?: import('@wrongstack/core/coordination').AgentMonitorService | undefined;
|
|
54
|
+
compactor: {
|
|
55
|
+
compact(ctx: Context, opts?: {
|
|
56
|
+
aggressive?: boolean | undefined;
|
|
57
|
+
}): Promise<CompactReport>;
|
|
58
|
+
};
|
|
59
|
+
configStore: ConfigStore;
|
|
60
|
+
/** Called by /clear after wiping the session on disk — tells the TUI to reset its UI state. */
|
|
61
|
+
onNewSession?: (() => Promise<void>) | undefined;
|
|
62
|
+
/**
|
|
63
|
+
* Mutable ref for opening a TUI panel by dispatching its action type.
|
|
64
|
+
* The slash commands call `onPanelOpen.current(action)` to open panels.
|
|
65
|
+
* The TUI sets `onPanelOpen.current` to its actual dispatch function on mount.
|
|
66
|
+
*/
|
|
67
|
+
onPanelOpen: {
|
|
68
|
+
current: ((action: string) => boolean) | null;
|
|
69
|
+
};
|
|
70
|
+
}
|
|
71
|
+
export interface StatuslineConfigDeps {
|
|
72
|
+
get(): Promise<StatuslineConfig>;
|
|
73
|
+
set(cfg: StatuslineConfig): Promise<void>;
|
|
74
|
+
}
|
|
75
|
+
export declare function setupSlashCommands(params: SlashCommandsDeps): Promise<void>;
|
|
76
|
+
//# sourceMappingURL=slash-commands.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"slash-commands.d.ts","sourceRoot":"","sources":["../../src/wiring/slash-commands.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EACV,aAAa,EACb,WAAW,EACX,OAAO,EACP,QAAQ,EACR,cAAc,EACd,WAAW,EACX,WAAW,EACX,WAAW,EACX,SAAS,EACT,QAAQ,EACR,QAAQ,EACR,YAAY,EACZ,WAAW,EACX,oBAAoB,EACpB,YAAY,EACZ,YAAY,EACZ,WAAW,EACZ,MAAM,kBAAkB,CAAC;AAC1B,OAAO,KAAK,EAAE,cAAc,EAAE,MAAM,mBAAmB,CAAC;AAExD,OAAO,KAAK,EAAE,gBAAgB,EAAuB,MAAM,iCAAiC,CAAC;AAG7F,MAAM,WAAW,iBAAiB;IAChC,aAAa,EAAE,oBAAoB,CAAC;IACpC,YAAY,EAAE,YAAY,CAAC;IAC3B,KAAK,EAAE,WAAW,CAAC;IACnB,YAAY,EAAE,YAAY,CAAC;IAC3B,WAAW,EAAE,WAAW,GAAG,SAAS,CAAC;IACrC,YAAY,EAAE,YAAY,CAAC;IAC3B,QAAQ,EAAE,QAAQ,CAAC;IACnB,MAAM,EAAE,WAAW,CAAC;IACpB,MAAM,EAAE,QAAQ,CAAC;IACjB,WAAW,EAAE,WAAW,CAAC;IACzB,OAAO,EAAE,OAAO,CAAC;IACjB,GAAG,EAAE,MAAM,CAAC;IACZ,WAAW,EAAE,MAAM,CAAC;IACpB,WAAW,EAAE,WAAW,GAAG,SAAS,CAAC;IACrC,cAAc,EAAE,cAAc,GAAG,SAAS,CAAC;IAC3C,QAAQ,EAAE,MAAM,CAAC;IACjB,SAAS,EAAE,SAAS,CAAC;IACrB,QAAQ,EAAE,QAAQ,CAAC;IACnB,KAAK,EAAE,MAAM,CAAC;IACd,cAAc,EA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,WAAW,EAAE,WAAW,CAAC;IACzB,+FAA+F;IAC/F,YAAY,CAAC,EAAE,CAAC,MAAM,OAAO,CAAC,IAAI,CAAC,CAAC,GAAG,SAAS,CAAC;IACjD;;;;OAIG;IACH,WAAW,EAAE;QAAE,OAAO,EAAE,CAAC,CAAC,MAAM,EAAE,MAAM,KAAK,OAAO,CAAC,GAAG,IAAI,CAAA;KAAE,CAAC;CAChE;AAED,MAAM,WAAW,oBAAoB;IACnC,GAAG,IAAI,OAAO,CAAC,gBAAgB,CAAC,CAAC;IACjC,GAAG,CAAC,GAAG,EAAE,gBAAgB,GAAG,OAAO,CAAC,IAAI,CAAC,CAAC;CAC3C;AAED,wBAAsB,kBAAkB,CAAC,MAAM,EAAE,iBAAiB,GAAG,OAAO,CAAC,IAAI,CAAC,CAqIjF"}
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
import type { AgentPipelines, Config, Logger, MemoryStore } from '@wrongstack/core';
|
|
2
|
+
export interface SuperMemoryWiringDeps {
|
|
3
|
+
config: Config;
|
|
4
|
+
pipelines: AgentPipelines;
|
|
5
|
+
memoryStore: MemoryStore | undefined;
|
|
6
|
+
logger: Logger;
|
|
7
|
+
}
|
|
8
|
+
export declare function setupSuperMemory(deps: SuperMemoryWiringDeps): () => Promise<void>;
|
|
9
|
+
//# sourceMappingURL=super-memory.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"super-memory.d.ts","sourceRoot":"","sources":["../../src/wiring/super-memory.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,cAAc,EAAE,MAAM,EAAE,MAAM,EAAE,WAAW,EAAE,MAAM,kBAAkB,CAAC;AAOpF,MAAM,WAAW,qBAAqB;IACpC,MAAM,EAAE,MAAM,CAAC;IACf,SAAS,EAAE,cAAc,CAAC;IAC1B,WAAW,EAAE,WAAW,GAAG,SAAS,CAAC;IACrC,MAAM,EAAE,MAAM,CAAC;CAChB;AAED,wBAAgB,gBAAgB,CAAC,IAAI,EAAE,qBAAqB,GAAG,MAAM,OAAO,CAAC,IAAI,CAAC,CA0CjF"}
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Typed boundary between CLI wiring and the execution phase.
|
|
3
|
+
*
|
|
4
|
+
* `cli-main` deliberately constructs the already-grouped ExecuteDeps shape:
|
|
5
|
+
* keeping that shape visible at the composition root makes missing subsystem
|
|
6
|
+
* dependencies obvious. This helper gives the assembly a separately testable
|
|
7
|
+
* boundary without the previous mutable 80-field WireContext or unsafe casts.
|
|
8
|
+
*/
|
|
9
|
+
import type { ExecuteDeps } from '../execute-deps.js';
|
|
10
|
+
export declare function toExecuteDeps(deps: ExecuteDeps): ExecuteDeps;
|
|
11
|
+
//# sourceMappingURL=to-execute-deps.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"to-execute-deps.d.ts","sourceRoot":"","sources":["../../src/wiring/to-execute-deps.ts"],"names":[],"mappings":"AAAA;;;;;;;GAOG;AACH,OAAO,KAAK,EAAE,WAAW,EAAE,MAAM,oBAAoB,CAAC;AAEtD,wBAAgB,aAAa,CAAC,IAAI,EAAE,WAAW,GAAG,WAAW,CAE5D"}
|