@wrongstack/cli 0.293.0 → 0.295.1
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 +7 -5
- package/dist/acp-registry-cache.d.ts +1 -1
- package/dist/acp-registry-cache.d.ts.map +1 -1
- package/dist/acp-server-agent.d.ts +2 -1
- package/dist/acp-server-agent.d.ts.map +1 -1
- package/dist/arg-parser.d.ts +1 -1
- package/dist/arg-parser.d.ts.map +1 -1
- package/dist/auth-menu/add-provider.d.ts +1 -1
- package/dist/auth-menu/add-provider.d.ts.map +1 -1
- package/dist/auth-menu/anthropic-oauth.d.ts.map +1 -1
- package/dist/auth-menu/auth-menu-audit.d.ts +1 -1
- package/dist/auth-menu/auth-menu-audit.d.ts.map +1 -1
- package/dist/auth-menu/direct.d.ts +1 -1
- package/dist/auth-menu/direct.d.ts.map +1 -1
- package/dist/auth-menu/github-copilot-oauth.d.ts.map +1 -1
- package/dist/auth-menu/helpers.d.ts +1 -1
- package/dist/auth-menu/helpers.d.ts.map +1 -1
- package/dist/auth-menu/local-presets.d.ts +2 -35
- package/dist/auth-menu/local-presets.d.ts.map +1 -1
- package/dist/auth-menu/local.d.ts +1 -1
- package/dist/auth-menu/local.d.ts.map +1 -1
- package/dist/auth-menu/loopback-server.d.ts +76 -0
- package/dist/auth-menu/loopback-server.d.ts.map +1 -0
- package/dist/auth-menu/openai-codex-oauth.d.ts +7 -22
- package/dist/auth-menu/openai-codex-oauth.d.ts.map +1 -1
- package/dist/auth-menu/panel-service.d.ts +1 -3
- package/dist/auth-menu/panel-service.d.ts.map +1 -1
- package/dist/auth-menu/shared.d.ts +1 -1
- package/dist/auth-menu/shared.d.ts.map +1 -1
- package/dist/auth-menu/types.d.ts +1 -2
- package/dist/auth-menu/types.d.ts.map +1 -1
- package/dist/boot/auto-discover-providers.d.ts +2 -2
- package/dist/boot/auto-discover-providers.d.ts.map +1 -1
- package/dist/boot/container-wiring.d.ts +3 -1
- package/dist/boot/container-wiring.d.ts.map +1 -1
- package/dist/boot/dispatch-singleshot.d.ts +2 -1
- package/dist/boot/dispatch-singleshot.d.ts.map +1 -1
- package/dist/boot/dispatch-tui.d.ts +4 -0
- package/dist/boot/dispatch-tui.d.ts.map +1 -0
- package/dist/boot/dispatch-webui.d.ts +13 -8
- package/dist/boot/dispatch-webui.d.ts.map +1 -1
- package/dist/boot/event-wiring.d.ts +1 -1
- package/dist/boot/event-wiring.d.ts.map +1 -1
- package/dist/boot/execution-mode.d.ts +10 -0
- package/dist/boot/execution-mode.d.ts.map +1 -0
- package/dist/boot/launch-menu.d.ts +1 -1
- package/dist/boot/launch-menu.d.ts.map +1 -1
- package/dist/boot/short-circuit-hq.d.ts.map +1 -1
- package/dist/boot/simpleui-full-auto.d.ts +1 -1
- package/dist/boot/simpleui-full-auto.d.ts.map +1 -1
- package/dist/boot/system-prompt-builder.d.ts +2 -2
- package/dist/boot/system-prompt-builder.d.ts.map +1 -1
- package/dist/boot/system-prompt.d.ts +3 -2
- package/dist/boot/system-prompt.d.ts.map +1 -1
- package/dist/boot/tool-registry.d.ts +7 -10
- package/dist/boot/tool-registry.d.ts.map +1 -1
- package/dist/boot/tui-coordinator-setup.d.ts +4 -2
- package/dist/boot/tui-coordinator-setup.d.ts.map +1 -1
- package/dist/boot/tui-goal-wiring.d.ts +1 -1
- package/dist/boot/tui-goal-wiring.d.ts.map +1 -1
- package/dist/boot/tui-live-sessions.d.ts +2 -2
- package/dist/boot/tui-project-picker-callback.d.ts +1 -1
- package/dist/boot/tui-project-picker-callback.d.ts.map +1 -1
- package/dist/boot/tui-project-switch.d.ts +7 -5
- package/dist/boot/tui-project-switch.d.ts.map +1 -1
- package/dist/boot/tui-runtime-state.d.ts +4 -1
- package/dist/boot/tui-runtime-state.d.ts.map +1 -1
- package/dist/boot/tui-sdd-callback.d.ts +2 -2
- package/dist/boot/tui-session-resume.d.ts +3 -1
- package/dist/boot/tui-session-resume.d.ts.map +1 -1
- package/dist/boot/tui-settings-adapter.d.ts +3 -1
- package/dist/boot/tui-settings-adapter.d.ts.map +1 -1
- package/dist/boot-config.d.ts +3 -1
- package/dist/boot-config.d.ts.map +1 -1
- package/dist/boot.d.ts +3 -1
- package/dist/boot.d.ts.map +1 -1
- package/dist/brain-menu/panel-service.d.ts +1 -1
- package/dist/brain-menu/panel-service.d.ts.map +1 -1
- package/dist/cli-context.d.ts +2 -1
- package/dist/cli-context.d.ts.map +1 -1
- package/dist/cli-entry-point.d.ts +20 -0
- package/dist/cli-entry-point.d.ts.map +1 -1
- package/dist/cli-eternal-flag.d.ts +6 -3
- package/dist/cli-eternal-flag.d.ts.map +1 -1
- package/dist/cli-main.d.ts +0 -9
- package/dist/cli-main.d.ts.map +1 -1
- package/dist/cli-recovery-prompt.d.ts +1 -1
- package/dist/cli-recovery-prompt.d.ts.map +1 -1
- package/dist/config-doctor.d.ts +2 -2
- package/dist/config-doctor.d.ts.map +1 -1
- package/dist/config-history.d.ts +3 -3
- package/dist/config-history.d.ts.map +1 -1
- package/dist/context-limit.d.ts +1 -1
- package/dist/context-limit.d.ts.map +1 -1
- package/dist/context-overflow-diagnostic.d.ts +1 -1
- package/dist/context-overflow-diagnostic.d.ts.map +1 -1
- package/dist/execute-deps.d.ts +23 -12
- package/dist/execute-deps.d.ts.map +1 -1
- package/dist/execution.d.ts +23 -1
- package/dist/execution.d.ts.map +1 -1
- package/dist/first-run-auth-gate.d.ts +5 -3
- package/dist/first-run-auth-gate.d.ts.map +1 -1
- package/dist/fleet/host.d.ts +30 -7
- package/dist/fleet/host.d.ts.map +1 -1
- package/dist/fleet/routing.d.ts +2 -2
- package/dist/fleet/routing.d.ts.map +1 -1
- package/dist/fleet/status-broadcast.d.ts +3 -2
- package/dist/fleet/status-broadcast.d.ts.map +1 -1
- package/dist/fleet/supervisor-registry.d.ts +1 -1
- package/dist/fleet/supervisor-registry.d.ts.map +1 -1
- package/dist/fleet-statusline.d.ts +1 -1
- package/dist/fleet-statusline.d.ts.map +1 -1
- package/dist/goal-host.d.ts +4 -1
- package/dist/goal-host.d.ts.map +1 -1
- package/dist/hooks-wiring.d.ts +3 -1
- package/dist/hooks-wiring.d.ts.map +1 -1
- package/dist/hq-command-controller.d.ts +2 -2
- package/dist/hq-command-controller.d.ts.map +1 -1
- package/dist/hq-publisher.d.ts +2 -1
- package/dist/hq-publisher.d.ts.map +1 -1
- package/dist/hq-recovery-html.d.ts +8 -0
- package/dist/hq-recovery-html.d.ts.map +1 -0
- package/dist/hq-server/audit-actor.d.ts +3 -0
- package/dist/hq-server/audit-actor.d.ts.map +1 -0
- package/dist/hq-server/auth-state.d.ts +10 -0
- package/dist/hq-server/auth-state.d.ts.map +1 -0
- package/dist/hq-server/auth.d.ts +2 -14
- package/dist/hq-server/auth.d.ts.map +1 -1
- package/dist/hq-server/preflight.d.ts +22 -0
- package/dist/hq-server/preflight.d.ts.map +1 -0
- package/dist/hq-server/routes/system-handlers.d.ts +16 -0
- package/dist/hq-server/routes/system-handlers.d.ts.map +1 -0
- package/dist/hq-server/routes.d.ts +8 -17
- package/dist/hq-server/routes.d.ts.map +1 -1
- package/dist/hq-server/snapshot.d.ts +9 -1
- package/dist/hq-server/snapshot.d.ts.map +1 -1
- package/dist/hq-server/trust-boundary.d.ts +15 -0
- package/dist/hq-server/trust-boundary.d.ts.map +1 -0
- package/dist/hq-server/types.d.ts +16 -2
- package/dist/hq-server/types.d.ts.map +1 -1
- package/dist/hq-server/utils.d.ts +1 -1
- package/dist/hq-server/utils.d.ts.map +1 -1
- package/dist/hq-server/ws.d.ts +1 -1
- package/dist/hq-server/ws.d.ts.map +1 -1
- package/dist/hq-server.d.ts +5 -10
- package/dist/hq-server.d.ts.map +1 -1
- package/dist/hq-static-serve.d.ts +4 -4
- package/dist/hq-static-serve.d.ts.map +1 -1
- package/dist/index.js +26158 -32987
- package/dist/index.js.map +4 -4
- package/dist/input-reader.d.ts +1 -1
- package/dist/input-reader.d.ts.map +1 -1
- package/dist/kanban-hq-sync.d.ts +8 -0
- package/dist/kanban-hq-sync.d.ts.map +1 -0
- package/dist/mailbox-bridge-bootstrap.d.ts +20 -0
- package/dist/mailbox-bridge-bootstrap.d.ts.map +1 -1
- package/dist/mcp-serve.d.ts +3 -1
- package/dist/mcp-serve.d.ts.map +1 -1
- package/dist/next-task-predictor.d.ts +2 -2
- package/dist/next-task-predictor.d.ts.map +1 -1
- package/dist/permission-prompt.d.ts +1 -1
- package/dist/permission-prompt.d.ts.map +1 -1
- package/dist/picker.d.ts +1 -1
- package/dist/picker.d.ts.map +1 -1
- package/dist/plugin-api-factory.d.ts +1 -1
- package/dist/plugin-api-factory.d.ts.map +1 -1
- package/dist/plugin-management.d.ts +10 -9
- package/dist/plugin-management.d.ts.map +1 -1
- package/dist/preflight.d.ts +1 -1
- package/dist/preflight.d.ts.map +1 -1
- package/dist/profile-config-path.d.ts +2 -1
- package/dist/profile-config-path.d.ts.map +1 -1
- package/dist/project-picker.d.ts +1 -1
- package/dist/project-picker.d.ts.map +1 -1
- package/dist/provider-config-utils.d.ts +2 -2
- package/dist/provider-config-utils.d.ts.map +1 -1
- package/dist/provider-helpers.d.ts +1 -1
- package/dist/provider-helpers.d.ts.map +1 -1
- package/dist/renderer.d.ts +23 -11
- package/dist/renderer.d.ts.map +1 -1
- package/dist/repl.d.ts +11 -9
- package/dist/repl.d.ts.map +1 -1
- package/dist/services/autonomy-mode.d.ts +3 -0
- package/dist/services/autonomy-mode.d.ts.map +1 -0
- package/dist/services/commit-message.d.ts +41 -0
- package/dist/services/commit-message.d.ts.map +1 -0
- package/dist/services/dispatch-classifier.d.ts +12 -0
- package/dist/services/dispatch-classifier.d.ts.map +1 -0
- package/dist/services/mcp-management.d.ts +24 -0
- package/dist/services/mcp-management.d.ts.map +1 -0
- package/dist/services/project-facts.d.ts.map +1 -1
- package/dist/services/project-manifest.d.ts +53 -0
- package/dist/services/project-manifest.d.ts.map +1 -0
- package/dist/services/sdd/project-context.d.ts.map +1 -0
- package/dist/services/sdd/spec-detection.d.ts.map +1 -0
- package/dist/{slash-commands → services}/sdd/state.d.ts +2 -2
- package/dist/services/sdd/state.d.ts.map +1 -0
- package/dist/{slash-commands → services}/sdd/task-manager.d.ts +1 -1
- package/dist/services/sdd/task-manager.d.ts.map +1 -0
- package/dist/services/sdd-runtime.d.ts +5 -0
- package/dist/services/sdd-runtime.d.ts.map +1 -0
- package/dist/services/statusline-config.d.ts +10 -0
- package/dist/services/statusline-config.d.ts.map +1 -0
- package/dist/services/suggestion-store.d.ts +36 -0
- package/dist/services/suggestion-store.d.ts.map +1 -0
- package/dist/session-event-wiring.d.ts +6 -2
- package/dist/session-event-wiring.d.ts.map +1 -1
- package/dist/session-stats.d.ts +2 -1
- package/dist/session-stats.d.ts.map +1 -1
- package/dist/settings-menu.d.ts +2 -4
- package/dist/settings-menu.d.ts.map +1 -1
- package/dist/simpleui-dist.d.ts +16 -0
- package/dist/simpleui-dist.d.ts.map +1 -1
- package/dist/slash-commands/acp.d.ts +2 -2
- package/dist/slash-commands/acp.d.ts.map +1 -1
- package/dist/slash-commands/agent-improve.d.ts +15 -0
- package/dist/slash-commands/agent-improve.d.ts.map +1 -0
- package/dist/slash-commands/agents.d.ts +2 -16
- package/dist/slash-commands/agents.d.ts.map +1 -1
- package/dist/slash-commands/audit.d.ts +2 -2
- package/dist/slash-commands/audit.d.ts.map +1 -1
- package/dist/slash-commands/auth.d.ts +2 -2
- package/dist/slash-commands/auth.d.ts.map +1 -1
- package/dist/slash-commands/autonomy.d.ts +3 -3
- package/dist/slash-commands/autonomy.d.ts.map +1 -1
- package/dist/slash-commands/brain.d.ts +2 -2
- package/dist/slash-commands/brain.d.ts.map +1 -1
- package/dist/slash-commands/btw.d.ts +2 -2
- package/dist/slash-commands/btw.d.ts.map +1 -1
- package/dist/slash-commands/clear.d.ts +2 -2
- package/dist/slash-commands/clear.d.ts.map +1 -1
- package/dist/slash-commands/codebase-reindex.d.ts +2 -2
- package/dist/slash-commands/codebase-reindex.d.ts.map +1 -1
- package/dist/slash-commands/collab.d.ts +2 -2
- package/dist/slash-commands/collab.d.ts.map +1 -1
- package/dist/slash-commands/command-context.d.ts +604 -0
- package/dist/slash-commands/command-context.d.ts.map +1 -0
- package/dist/slash-commands/commit-llm.d.ts +2 -40
- package/dist/slash-commands/commit-llm.d.ts.map +1 -1
- package/dist/slash-commands/compact.d.ts +2 -2
- package/dist/slash-commands/compact.d.ts.map +1 -1
- package/dist/slash-commands/context.d.ts +2 -2
- package/dist/slash-commands/context.d.ts.map +1 -1
- package/dist/slash-commands/coordinator.d.ts +2 -2
- package/dist/slash-commands/coordinator.d.ts.map +1 -1
- package/dist/slash-commands/delegate.d.ts +2 -2
- package/dist/slash-commands/delegate.d.ts.map +1 -1
- package/dist/slash-commands/design.d.ts +2 -2
- package/dist/slash-commands/design.d.ts.map +1 -1
- package/dist/slash-commands/dev.d.ts +2 -2
- package/dist/slash-commands/dev.d.ts.map +1 -1
- package/dist/slash-commands/diag-stats.d.ts +2 -2
- package/dist/slash-commands/diag-stats.d.ts.map +1 -1
- package/dist/slash-commands/dispatch-llm.d.ts +2 -11
- package/dist/slash-commands/dispatch-llm.d.ts.map +1 -1
- package/dist/slash-commands/doctor.d.ts +2 -2
- package/dist/slash-commands/doctor.d.ts.map +1 -1
- package/dist/slash-commands/enhance.d.ts +2 -2
- package/dist/slash-commands/enhance.d.ts.map +1 -1
- package/dist/slash-commands/ensemble.d.ts +2 -2
- package/dist/slash-commands/ensemble.d.ts.map +1 -1
- package/dist/slash-commands/f-keys.d.ts +2 -2
- package/dist/slash-commands/f-keys.d.ts.map +1 -1
- package/dist/slash-commands/fallback.d.ts +2 -2
- package/dist/slash-commands/fallback.d.ts.map +1 -1
- package/dist/slash-commands/fix.d.ts +2 -2
- package/dist/slash-commands/fix.d.ts.map +1 -1
- package/dist/slash-commands/fleet.d.ts +2 -2
- package/dist/slash-commands/fleet.d.ts.map +1 -1
- package/dist/slash-commands/git.d.ts +2 -2
- package/dist/slash-commands/git.d.ts.map +1 -1
- package/dist/slash-commands/gitid.d.ts +2 -2
- package/dist/slash-commands/gitid.d.ts.map +1 -1
- package/dist/slash-commands/goal-refiner.d.ts +2 -1
- package/dist/slash-commands/goal-refiner.d.ts.map +1 -1
- package/dist/slash-commands/goal.d.ts +2 -2
- package/dist/slash-commands/goal.d.ts.map +1 -1
- package/dist/slash-commands/health.d.ts +2 -2
- package/dist/slash-commands/health.d.ts.map +1 -1
- package/dist/slash-commands/help.d.ts +2 -2
- package/dist/slash-commands/help.d.ts.map +1 -1
- package/dist/slash-commands/helpers.d.ts +1 -1
- package/dist/slash-commands/helpers.d.ts.map +1 -1
- package/dist/slash-commands/hq.d.ts +2 -2
- package/dist/slash-commands/hq.d.ts.map +1 -1
- package/dist/slash-commands/index.d.ts +5 -593
- package/dist/slash-commands/index.d.ts.map +1 -1
- package/dist/slash-commands/init.d.ts +2 -2
- package/dist/slash-commands/init.d.ts.map +1 -1
- package/dist/slash-commands/interrupt.d.ts +2 -2
- package/dist/slash-commands/interrupt.d.ts.map +1 -1
- package/dist/slash-commands/kanban.d.ts +2 -2
- package/dist/slash-commands/kanban.d.ts.map +1 -1
- package/dist/slash-commands/mailbox-demo.d.ts +2 -2
- package/dist/slash-commands/mailbox-demo.d.ts.map +1 -1
- package/dist/slash-commands/mailbox-serve.d.ts +2 -2
- package/dist/slash-commands/mailbox-serve.d.ts.map +1 -1
- package/dist/slash-commands/mailbox.d.ts +4 -4
- package/dist/slash-commands/mailbox.d.ts.map +1 -1
- package/dist/slash-commands/mcp-utils.d.ts +2 -23
- package/dist/slash-commands/mcp-utils.d.ts.map +1 -1
- package/dist/slash-commands/mcp.d.ts +4 -4
- package/dist/slash-commands/mcp.d.ts.map +1 -1
- package/dist/slash-commands/memory.d.ts +2 -2
- package/dist/slash-commands/memory.d.ts.map +1 -1
- package/dist/slash-commands/metrics.d.ts +2 -2
- package/dist/slash-commands/metrics.d.ts.map +1 -1
- package/dist/slash-commands/mode.d.ts +2 -2
- package/dist/slash-commands/mode.d.ts.map +1 -1
- package/dist/slash-commands/modelcaps.d.ts +2 -2
- package/dist/slash-commands/modelcaps.d.ts.map +1 -1
- package/dist/slash-commands/models.d.ts +2 -2
- package/dist/slash-commands/models.d.ts.map +1 -1
- package/dist/slash-commands/mouse.d.ts +2 -2
- package/dist/slash-commands/mouse.d.ts.map +1 -1
- package/dist/slash-commands/next.d.ts +2 -2
- package/dist/slash-commands/next.d.ts.map +1 -1
- package/dist/slash-commands/plan.d.ts +2 -2
- package/dist/slash-commands/plan.d.ts.map +1 -1
- package/dist/slash-commands/plugin.d.ts +2 -2
- package/dist/slash-commands/plugin.d.ts.map +1 -1
- package/dist/slash-commands/profile.d.ts +2 -2
- package/dist/slash-commands/profile.d.ts.map +1 -1
- package/dist/slash-commands/project-utils.d.ts +2 -50
- package/dist/slash-commands/project-utils.d.ts.map +1 -1
- package/dist/slash-commands/project.d.ts +2 -2
- package/dist/slash-commands/project.d.ts.map +1 -1
- package/dist/slash-commands/provider-status.d.ts +1 -1
- package/dist/slash-commands/provider-status.d.ts.map +1 -1
- package/dist/slash-commands/prune.d.ts +2 -2
- package/dist/slash-commands/prune.d.ts.map +1 -1
- package/dist/slash-commands/refiner.d.ts +2 -2
- package/dist/slash-commands/refiner.d.ts.map +1 -1
- package/dist/slash-commands/review.d.ts +2 -2
- package/dist/slash-commands/review.d.ts.map +1 -1
- package/dist/slash-commands/sdd.d.ts +7 -7
- package/dist/slash-commands/sdd.d.ts.map +1 -1
- package/dist/slash-commands/security.d.ts +11 -2
- package/dist/slash-commands/security.d.ts.map +1 -1
- package/dist/slash-commands/session.d.ts +2 -2
- package/dist/slash-commands/session.d.ts.map +1 -1
- package/dist/slash-commands/setmodel.d.ts +2 -2
- package/dist/slash-commands/setmodel.d.ts.map +1 -1
- package/dist/slash-commands/settings.d.ts +2 -2
- package/dist/slash-commands/settings.d.ts.map +1 -1
- package/dist/slash-commands/shadow.d.ts +2 -13
- package/dist/slash-commands/shadow.d.ts.map +1 -1
- package/dist/slash-commands/spawn-agents.d.ts +2 -2
- package/dist/slash-commands/spawn-agents.d.ts.map +1 -1
- package/dist/slash-commands/statusline.d.ts +3 -45
- package/dist/slash-commands/statusline.d.ts.map +1 -1
- package/dist/slash-commands/suggest.d.ts +2 -2
- package/dist/slash-commands/suggest.d.ts.map +1 -1
- package/dist/slash-commands/suggestion-store.d.ts +2 -35
- package/dist/slash-commands/suggestion-store.d.ts.map +1 -1
- package/dist/slash-commands/supervisor.d.ts +2 -2
- package/dist/slash-commands/supervisor.d.ts.map +1 -1
- package/dist/slash-commands/surfaces.d.ts +1 -1
- package/dist/slash-commands/surfaces.d.ts.map +1 -1
- package/dist/slash-commands/tasks.d.ts +2 -2
- package/dist/slash-commands/tasks.d.ts.map +1 -1
- package/dist/slash-commands/techstack.d.ts +2 -2
- package/dist/slash-commands/techstack.d.ts.map +1 -1
- package/dist/slash-commands/telegram-settings.d.ts +2 -2
- package/dist/slash-commands/telegram-settings.d.ts.map +1 -1
- package/dist/slash-commands/telegram-setup.d.ts +2 -2
- package/dist/slash-commands/telegram-setup.d.ts.map +1 -1
- package/dist/slash-commands/todos.d.ts +2 -2
- package/dist/slash-commands/todos.d.ts.map +1 -1
- package/dist/slash-commands/tool.d.ts +2 -2
- package/dist/slash-commands/tool.d.ts.map +1 -1
- package/dist/slash-commands/tools.d.ts +2 -2
- package/dist/slash-commands/tools.d.ts.map +1 -1
- package/dist/slash-commands/tuneup.d.ts +2 -2
- package/dist/slash-commands/tuneup.d.ts.map +1 -1
- package/dist/slash-commands/working-dir.d.ts +2 -2
- package/dist/slash-commands/working-dir.d.ts.map +1 -1
- package/dist/slash-commands/worktree.d.ts +2 -2
- package/dist/slash-commands/worktree.d.ts.map +1 -1
- package/dist/slash-commands/yolo.d.ts +2 -2
- package/dist/slash-commands/yolo.d.ts.map +1 -1
- package/dist/subcommands/contracts.d.ts +23 -0
- package/dist/subcommands/contracts.d.ts.map +1 -0
- package/dist/subcommands/handlers/audit.d.ts.map +1 -1
- package/dist/subcommands/handlers/auth.d.ts.map +1 -1
- package/dist/subcommands/handlers/chronicle.d.ts.map +1 -1
- package/dist/subcommands/handlers/export.d.ts.map +1 -1
- package/dist/subcommands/handlers/hq.d.ts +1 -11
- package/dist/subcommands/handlers/hq.d.ts.map +1 -1
- package/dist/subcommands/handlers/mailbox-serve.d.ts.map +1 -1
- package/dist/subcommands/handlers/modeldiag.d.ts.map +1 -1
- package/dist/subcommands/handlers/per-subcommand-help.d.ts.map +1 -1
- package/dist/subcommands/handlers/permissions.d.ts +1 -1
- package/dist/subcommands/handlers/permissions.d.ts.map +1 -1
- package/dist/subcommands/handlers/project.d.ts +3 -0
- package/dist/subcommands/handlers/project.d.ts.map +1 -0
- package/dist/subcommands/handlers/providers-models.d.ts.map +1 -1
- package/dist/subcommands/handlers/replay.d.ts.map +1 -1
- package/dist/subcommands/handlers/rewind.d.ts.map +1 -1
- package/dist/subcommands/handlers/version-help.d.ts.map +1 -1
- package/dist/subcommands/index.d.ts +2 -24
- package/dist/subcommands/index.d.ts.map +1 -1
- package/dist/tuneup.d.ts +1 -1
- package/dist/tuneup.d.ts.map +1 -1
- package/dist/update-check.d.ts.map +1 -1
- package/dist/webui-server/client-registration.d.ts +2 -21
- package/dist/webui-server/client-registration.d.ts.map +1 -1
- package/dist/webui-server/connection-handler.d.ts +4 -27
- package/dist/webui-server/connection-handler.d.ts.map +1 -1
- package/dist/webui-server/context-breakdown.d.ts +1 -56
- package/dist/webui-server/context-breakdown.d.ts.map +1 -1
- package/dist/webui-server/contracts.d.ts +15 -0
- package/dist/webui-server/contracts.d.ts.map +1 -0
- package/dist/webui-server/cost-helpers.d.ts +1 -28
- package/dist/webui-server/cost-helpers.d.ts.map +1 -1
- package/dist/webui-server/kanban-host-adapter.d.ts +25 -0
- package/dist/webui-server/kanban-host-adapter.d.ts.map +1 -0
- package/dist/webui-server/kanban-run-mirror.d.ts +1 -76
- package/dist/webui-server/kanban-run-mirror.d.ts.map +1 -1
- package/dist/webui-server/kanban-supervisor.d.ts +1 -47
- package/dist/webui-server/kanban-supervisor.d.ts.map +1 -1
- package/dist/webui-server/lifecycle.d.ts +2 -111
- package/dist/webui-server/lifecycle.d.ts.map +1 -1
- package/dist/webui-server/logger-shim.d.ts +1 -1
- package/dist/webui-server/logger-shim.d.ts.map +1 -1
- package/dist/webui-server/prefs-seeding.d.ts +6 -42
- package/dist/webui-server/prefs-seeding.d.ts.map +1 -1
- package/dist/webui-server/privileged-actions.d.ts +14 -0
- package/dist/webui-server/privileged-actions.d.ts.map +1 -0
- package/dist/webui-server/session-start-payload.d.ts +2 -1
- package/dist/webui-server/session-start-payload.d.ts.map +1 -1
- package/dist/webui-server/setup-events.d.ts +8 -18
- package/dist/webui-server/setup-events.d.ts.map +1 -1
- package/dist/webui-server/static-serve.d.ts +1 -85
- package/dist/webui-server/static-serve.d.ts.map +1 -1
- package/dist/webui-server/stream-coalescer.d.ts +1 -48
- package/dist/webui-server/stream-coalescer.d.ts.map +1 -1
- package/dist/webui-server/terminal-log-view.d.ts +30 -0
- package/dist/webui-server/terminal-log-view.d.ts.map +1 -0
- package/dist/webui-server.d.ts +20 -17
- package/dist/webui-server.d.ts.map +1 -1
- package/dist/wiring/brain-and-orchestration.d.ts +5 -1
- package/dist/wiring/brain-and-orchestration.d.ts.map +1 -1
- package/dist/wiring/codebase-index.d.ts +2 -1
- package/dist/wiring/codebase-index.d.ts.map +1 -1
- package/dist/wiring/command-host-adapters.d.ts +16 -0
- package/dist/wiring/command-host-adapters.d.ts.map +1 -0
- package/dist/wiring/command-host-state.d.ts +86 -0
- package/dist/wiring/command-host-state.d.ts.map +1 -0
- package/dist/wiring/controllers.d.ts +4 -3
- package/dist/wiring/controllers.d.ts.map +1 -1
- package/dist/wiring/dep-watcher.d.ts +2 -2
- package/dist/wiring/dep-watcher.d.ts.map +1 -1
- package/dist/wiring/design-studio.d.ts +1 -1
- package/dist/wiring/design-studio.d.ts.map +1 -1
- package/dist/wiring/director-setup.d.ts +9 -6
- package/dist/wiring/director-setup.d.ts.map +1 -1
- package/dist/wiring/eternal-command-handlers.d.ts +37 -0
- package/dist/wiring/eternal-command-handlers.d.ts.map +1 -0
- package/dist/wiring/fleet-command-handlers.d.ts +16 -0
- package/dist/wiring/fleet-command-handlers.d.ts.map +1 -0
- package/dist/wiring/hq-telemetry.d.ts +4 -1
- package/dist/wiring/hq-telemetry.d.ts.map +1 -1
- package/dist/wiring/lifecycle-plugins.d.ts +9 -1
- package/dist/wiring/lifecycle-plugins.d.ts.map +1 -1
- package/dist/wiring/mailbox-bridge-bootstrap.d.ts +1 -1
- package/dist/wiring/mailbox-bridge-bootstrap.d.ts.map +1 -1
- package/dist/wiring/metrics.d.ts +4 -1
- package/dist/wiring/metrics.d.ts.map +1 -1
- package/dist/wiring/pipeline.d.ts +18 -13
- package/dist/wiring/pipeline.d.ts.map +1 -1
- package/dist/wiring/plugins.d.ts +16 -8
- package/dist/wiring/plugins.d.ts.map +1 -1
- package/dist/wiring/provider-runtime-setup.d.ts +6 -1
- package/dist/wiring/provider-runtime-setup.d.ts.map +1 -1
- package/dist/wiring/provider-runtime.d.ts +2 -2
- package/dist/wiring/provider-runtime.d.ts.map +1 -1
- package/dist/wiring/provider-status.d.ts +16 -0
- package/dist/wiring/provider-status.d.ts.map +1 -0
- package/dist/wiring/provider-utility-tools.d.ts +25 -0
- package/dist/wiring/provider-utility-tools.d.ts.map +1 -0
- package/dist/wiring/provider.d.ts +3 -2
- package/dist/wiring/provider.d.ts.map +1 -1
- package/dist/wiring/replay.d.ts +4 -1
- package/dist/wiring/replay.d.ts.map +1 -1
- package/dist/wiring/runtime-controller-deps.d.ts +41 -0
- package/dist/wiring/runtime-controller-deps.d.ts.map +1 -0
- package/dist/wiring/runtime-dispatch-state.d.ts +35 -0
- package/dist/wiring/runtime-dispatch-state.d.ts.map +1 -0
- package/dist/wiring/runtime-lifecycle-deps.d.ts +39 -0
- package/dist/wiring/runtime-lifecycle-deps.d.ts.map +1 -0
- package/dist/wiring/runtime-picker-deps.d.ts +22 -0
- package/dist/wiring/runtime-picker-deps.d.ts.map +1 -0
- package/dist/wiring/sage.d.ts +19 -0
- package/dist/wiring/sage.d.ts.map +1 -0
- package/dist/wiring/sdd-handlers.d.ts.map +1 -1
- package/dist/wiring/security-command.d.ts +11 -0
- package/dist/wiring/security-command.d.ts.map +1 -0
- package/dist/wiring/session-command-handlers.d.ts +55 -0
- package/dist/wiring/session-command-handlers.d.ts.map +1 -0
- package/dist/wiring/session.d.ts +13 -9
- package/dist/wiring/session.d.ts.map +1 -1
- package/dist/wiring/slash-commands.d.ts +14 -5
- package/dist/wiring/slash-commands.d.ts.map +1 -1
- package/dist/wiring/tools.d.ts +9 -20
- package/dist/wiring/tools.d.ts.map +1 -1
- package/package.json +23 -22
- package/dist/hq-dashboard-html.d.ts +0 -2
- package/dist/hq-dashboard-html.d.ts.map +0 -1
- package/dist/slash-commands/sdd/project-context.d.ts.map +0 -1
- package/dist/slash-commands/sdd/spec-detection.d.ts.map +0 -1
- package/dist/slash-commands/sdd/state.d.ts.map +0 -1
- package/dist/slash-commands/sdd/task-manager.d.ts.map +0 -1
- package/dist/webui-server/message-router.d.ts +0 -63
- package/dist/webui-server/message-router.d.ts.map +0 -1
- package/dist/webui-server/session-status-poll.d.ts +0 -16
- package/dist/webui-server/session-status-poll.d.ts.map +0 -1
- package/dist/webui-server/ws-handlers/agent-config.d.ts +0 -76
- package/dist/webui-server/ws-handlers/agent-config.d.ts.map +0 -1
- package/dist/webui-server/ws-handlers/brain.d.ts +0 -43
- package/dist/webui-server/ws-handlers/brain.d.ts.map +0 -1
- package/dist/webui-server/ws-handlers/connection.d.ts +0 -58
- package/dist/webui-server/ws-handlers/connection.d.ts.map +0 -1
- package/dist/webui-server/ws-handlers/context.d.ts +0 -55
- package/dist/webui-server/ws-handlers/context.d.ts.map +0 -1
- package/dist/webui-server/ws-handlers/index.d.ts +0 -60
- package/dist/webui-server/ws-handlers/index.d.ts.map +0 -1
- package/dist/webui-server/ws-handlers/introspection.d.ts +0 -35
- package/dist/webui-server/ws-handlers/introspection.d.ts.map +0 -1
- package/dist/webui-server/ws-handlers/kanban.d.ts +0 -66
- package/dist/webui-server/ws-handlers/kanban.d.ts.map +0 -1
- package/dist/webui-server/ws-handlers/mailbox.d.ts +0 -60
- package/dist/webui-server/ws-handlers/mailbox.d.ts.map +0 -1
- package/dist/webui-server/ws-handlers/oauth.d.ts +0 -16
- package/dist/webui-server/ws-handlers/oauth.d.ts.map +0 -1
- package/dist/webui-server/ws-handlers/prefs.d.ts +0 -34
- package/dist/webui-server/ws-handlers/prefs.d.ts.map +0 -1
- package/dist/webui-server/ws-handlers/process.d.ts +0 -6
- package/dist/webui-server/ws-handlers/process.d.ts.map +0 -1
- package/dist/webui-server/ws-handlers/projects.d.ts +0 -44
- package/dist/webui-server/ws-handlers/projects.d.ts.map +0 -1
- package/dist/webui-server/ws-handlers/providers.d.ts +0 -46
- package/dist/webui-server/ws-handlers/providers.d.ts.map +0 -1
- package/dist/webui-server/ws-handlers/sessions.d.ts +0 -38
- package/dist/webui-server/ws-handlers/sessions.d.ts.map +0 -1
- package/dist/webui-server/ws-handlers/worklist.d.ts +0 -49
- package/dist/webui-server/ws-handlers/worklist.d.ts.map +0 -1
- package/dist/wiring/super-memory.d.ts +0 -11
- package/dist/wiring/super-memory.d.ts.map +0 -1
- /package/dist/{slash-commands → services}/sdd/project-context.d.ts +0 -0
- /package/dist/{slash-commands → services}/sdd/spec-detection.d.ts +0 -0
|
@@ -0,0 +1,35 @@
|
|
|
1
|
+
/** Final runtime preparation before a CLI surface is dispatched. */
|
|
2
|
+
import type { Agent, Context } from '@wrongstack/core/agent';
|
|
3
|
+
import type { Config, MemoryPort } from '@wrongstack/core/types';
|
|
4
|
+
import type { ConfigStore } from '@wrongstack/core/types';
|
|
5
|
+
import type { EventBus } from '@wrongstack/core/kernel';
|
|
6
|
+
import type { ToolRegistry } from '@wrongstack/core/registry';
|
|
7
|
+
import type { PluginPickerItem, ToolPickerItem } from '../execute-deps.js';
|
|
8
|
+
import { setupSage } from './sage.js';
|
|
9
|
+
export interface RuntimeDispatchStateInput {
|
|
10
|
+
getConfig: () => Config;
|
|
11
|
+
setConfig: (config: Config) => void;
|
|
12
|
+
configStore: ConfigStore;
|
|
13
|
+
profileConfigPath: string;
|
|
14
|
+
pipelines: Parameters<typeof setupSage>[0]['pipelines'];
|
|
15
|
+
memoryStore: MemoryPort;
|
|
16
|
+
logger: Parameters<typeof setupSage>[0]['logger'];
|
|
17
|
+
events: EventBus;
|
|
18
|
+
agent: Agent;
|
|
19
|
+
context: Context;
|
|
20
|
+
projectRoot: string;
|
|
21
|
+
toolRegistry: ToolRegistry;
|
|
22
|
+
flags: Record<string, string | boolean>;
|
|
23
|
+
onEvent: (event: string, handler: (payload: unknown) => void) => void;
|
|
24
|
+
}
|
|
25
|
+
export declare function prepareRuntimeDispatch(input: RuntimeDispatchStateInput): Promise<{
|
|
26
|
+
runSageSessionHygiene: () => Promise<void>;
|
|
27
|
+
getPluginItems: () => PluginPickerItem[];
|
|
28
|
+
togglePlugin: (name: string) => Promise<{
|
|
29
|
+
items: PluginPickerItem[];
|
|
30
|
+
message: string | undefined;
|
|
31
|
+
error: string | undefined;
|
|
32
|
+
}>;
|
|
33
|
+
getToolItems: () => ToolPickerItem[];
|
|
34
|
+
}>;
|
|
35
|
+
//# sourceMappingURL=runtime-dispatch-state.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"runtime-dispatch-state.d.ts","sourceRoot":"","sources":["../../src/wiring/runtime-dispatch-state.ts"],"names":[],"mappings":"AAAA,oEAAoE;AACpE,OAAO,KAAK,EAAE,KAAK,EAAE,OAAO,EAAE,MAAM,wBAAwB,CAAC;AAC7D,OAAO,KAAK,EAAE,MAAM,EAAE,UAAU,EAAE,MAAM,wBAAwB,CAAC;AACjE,OAAO,KAAK,EAAE,WAAW,EAAE,MAAM,wBAAwB,CAAC;AAC1D,OAAO,KAAK,EAAE,QAAQ,EAAE,MAAM,yBAAyB,CAAC;AAExD,OAAO,KAAK,EAAE,YAAY,EAAE,MAAM,2BAA2B,CAAC;AAC9D,OAAO,KAAK,EAAE,gBAAgB,EAAE,cAAc,EAAE,MAAM,oBAAoB,CAAC;AAI3E,OAAO,EAAE,SAAS,EAAE,MAAM,WAAW,CAAC;AAEtC,MAAM,WAAW,yBAAyB;IACxC,SAAS,EAAE,MAAM,MAAM,CAAC;IACxB,SAAS,EAAE,CAAC,MAAM,EAAE,MAAM,KAAK,IAAI,CAAC;IACpC,WAAW,EAAE,WAAW,CAAC;IACzB,iBAAiB,EAAE,MAAM,CAAC;IAC1B,SAAS,EAAE,UAAU,CAAC,OAAO,SAAS,CAAC,CAAC,CAAC,CAAC,CAAC,WAAW,CAAC,CAAC;IACxD,WAAW,EAAE,UAAU,CAAC;IACxB,MAAM,EAAE,UAAU,CAAC,OAAO,SAAS,CAAC,CAAC,CAAC,CAAC,CAAC,QAAQ,CAAC,CAAC;IAClD,MAAM,EAAE,QAAQ,CAAC;IACjB,KAAK,EAAE,KAAK,CAAC;IACb,OAAO,EAAE,OAAO,CAAC;IACjB,WAAW,EAAE,MAAM,CAAC;IACpB,YAAY,EAAE,YAAY,CAAC;IAC3B,KAAK,EAAE,MAAM,CAAC,MAAM,EAAE,MAAM,GAAG,OAAO,CAAC,CAAC;IACxC,OAAO,EAAE,CAAC,KAAK,EAAE,MAAM,EAAE,OAAO,EAAE,CAAC,OAAO,EAAE,OAAO,KAAK,IAAI,KAAK,IAAI,CAAC;CACvE;AAED,wBAAsB,sBAAsB,CAAC,KAAK,EAAE,yBAAyB;;0BAkBhD,gBAAgB,EAAE;yBAgBX,MAAM;;;;;wBAqBf,cAAc,EAAE;GA4B1C"}
|
|
@@ -0,0 +1,39 @@
|
|
|
1
|
+
/** Runtime lifecycle callbacks shared by CLI execution surfaces. */
|
|
2
|
+
import type { AutonomyStage, Config } from '@wrongstack/core/types';
|
|
3
|
+
import type { JournalEntry } from '@wrongstack/core/goal';
|
|
4
|
+
import type { Context } from '@wrongstack/core/agent';
|
|
5
|
+
import type { EternalAutonomyEngine, ParallelEternalEngine } from '@wrongstack/core/execution';
|
|
6
|
+
import type { EventBus } from '@wrongstack/core/kernel';
|
|
7
|
+
import type { SddRunRegistry } from '@wrongstack/sdd';
|
|
8
|
+
import type { LifecycleDeps } from '../execute-deps.js';
|
|
9
|
+
import type { SessionStats } from '../session-stats.js';
|
|
10
|
+
export interface RuntimeLifecycleDepsInput {
|
|
11
|
+
getConfig: () => Config;
|
|
12
|
+
context: Context;
|
|
13
|
+
getCurrentSuggestions: () => string[];
|
|
14
|
+
setCurrentSuggestions: (suggestions: string[]) => void;
|
|
15
|
+
getEternalEngine: () => EternalAutonomyEngine | null;
|
|
16
|
+
getParallelEngine: () => ParallelEternalEngine | null;
|
|
17
|
+
sddRunRegistry: SddRunRegistry;
|
|
18
|
+
projectRoot: string;
|
|
19
|
+
paths: {
|
|
20
|
+
projectSpecs: string;
|
|
21
|
+
projectTaskGraphs: string;
|
|
22
|
+
projectSddSession: string;
|
|
23
|
+
projectSddBoards: string;
|
|
24
|
+
};
|
|
25
|
+
eternalListeners: Set<(entry: JournalEntry) => void>;
|
|
26
|
+
stageListeners: Set<(stage: AutonomyStage) => void>;
|
|
27
|
+
runSageSessionHygiene: () => Promise<void>;
|
|
28
|
+
pluginHost?: {
|
|
29
|
+
dispose(): Promise<void>;
|
|
30
|
+
} | undefined;
|
|
31
|
+
teardownHandlers: Array<() => void>;
|
|
32
|
+
stats: SessionStats;
|
|
33
|
+
events: EventBus;
|
|
34
|
+
logger: {
|
|
35
|
+
warn(message: string, fields?: Record<string, unknown>): void;
|
|
36
|
+
};
|
|
37
|
+
}
|
|
38
|
+
export declare function createRuntimeLifecycleDeps(input: RuntimeLifecycleDepsInput): LifecycleDeps;
|
|
39
|
+
//# sourceMappingURL=runtime-lifecycle-deps.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"runtime-lifecycle-deps.d.ts","sour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AI,CAAC,CAAC;IACpD,qBAAqB,EAAE,MAAM,OAAO,CAAC,IAAI,CAAC,CAAC;IAC3C,UAAU,CAAC,EAAE;QAAE,OAAO,IAAI,OAAO,CAAC,IAAI,CAAC,CAAA;KAAE,GAAG,SAAS,CAAC;IACtD,gBAAgB,EAAE,KAAK,CAAC,MAAM,IAAI,CAAC,CAAC;IACpC,KAAK,EAAE,YAAY,CAAC;IACpB,MAAM,EAAE,QAAQ,CAAC;IACjB,MAAM,EAAE;QAAE,IAAI,CAAC,OAAO,EAAE,MAAM,EAAE,MAAM,CAAC,EAAE,MAAM,CAAC,MAAM,EAAE,OAAO,CAAC,GAAG,IAAI,CAAA;KAAE,CAAC;CAC3E;AAED,wBAAgB,0BAA0B,CAAC,KAAK,EAAE,yBAAyB,GAAG,aAAa,CAqD1F"}
|
|
@@ -0,0 +1,22 @@
|
|
|
1
|
+
import type { Config } from '@wrongstack/core/types';
|
|
2
|
+
import type { ConfigStore } from '@wrongstack/core/types';
|
|
3
|
+
import type { ToolRegistry } from '@wrongstack/core/registry';
|
|
4
|
+
import type { MCPRegistry } from '@wrongstack/mcp';
|
|
5
|
+
import type { PickerDeps, PluginPickerItem, ToolPickerItem } from '../execute-deps.js';
|
|
6
|
+
export interface RuntimePickerDepsInput {
|
|
7
|
+
getConfig: () => Config;
|
|
8
|
+
setConfig: (config: Config) => void;
|
|
9
|
+
profileConfigPath: string;
|
|
10
|
+
mcpRegistry: MCPRegistry;
|
|
11
|
+
toolRegistry: ToolRegistry;
|
|
12
|
+
configStore: Pick<ConfigStore, 'update'>;
|
|
13
|
+
getPluginItems: () => PluginPickerItem[];
|
|
14
|
+
togglePlugin: NonNullable<PickerDeps['onPluginToggle']>;
|
|
15
|
+
getToolItems: () => ToolPickerItem[];
|
|
16
|
+
brain: PickerDeps['brain'];
|
|
17
|
+
brainSettings: PickerDeps['brainSettings'];
|
|
18
|
+
brainRuntime: PickerDeps['brainRuntime'];
|
|
19
|
+
getBrainLog: NonNullable<PickerDeps['getBrainLog']>;
|
|
20
|
+
}
|
|
21
|
+
export declare function createRuntimePickerDeps(input: RuntimePickerDepsInput): PickerDeps;
|
|
22
|
+
//# sourceMappingURL=runtime-picker-deps.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"runtime-picker-deps.d.ts","sourceRoot":"","sources":["../../src/wiring/runtime-picker-deps.ts"],"names":[],"mappings":"AAQA,OAAO,KAAK,EAAE,MAAM,EAAE,MAAM,wBAAwB,CAAC;AACrD,OAAO,KAAK,EAAE,WAAW,EAAE,MAAM,wBAAwB,CAAC;AAC1D,OAAO,KAAK,EAAE,YAAY,EAAE,MAAM,2BAA2B,CAAC;AAC9D,OAAO,KAAK,EAAE,WAAW,EAAE,MAAM,iBAAiB,CAAC;AACnD,OAAO,KAAK,EAAE,UAAU,EAAE,gBAAgB,EAAE,cAAc,EAAE,MAAM,oBAAoB,CAAC;AAGvF,MAAM,WAAW,sBAAsB;IACrC,SAAS,EAAE,MAAM,MAAM,CAAC;IACxB,SAAS,EAAE,CAAC,MAAM,EAAE,MAAM,KAAK,IAAI,CAAC;IACpC,iBAAiB,EAAE,MAAM,CAAC;IAC1B,WAAW,EAAE,WAAW,CAAC;IACzB,YAAY,EAAE,YAAY,CAAC;IAC3B,WAAW,EAAE,IAAI,CAAC,WAAW,EAAE,QAAQ,CAAC,CAAC;IACzC,cAAc,EAAE,MAAM,gBAAgB,EAAE,CAAC;IACzC,YAAY,EAAE,WAAW,CAAC,UAAU,CAAC,gBAAgB,CAAC,CAAC,CAAC;IACxD,YAAY,EAAE,MAAM,cAAc,EAAE,CAAC;IACrC,KAAK,EAAE,UAAU,CAAC,OAAO,CAAC,CAAC;IAC3B,aAAa,EAAE,UAAU,CAAC,eAAe,CAAC,CAAC;IAC3C,YAAY,EAAE,UAAU,CAAC,cAAc,CAAC,CAAC;IACzC,WAAW,EAAE,WAAW,CAAC,UAAU,CAAC,aAAa,CAAC,CAAC,CAAC;CACrD;AAED,wBAAgB,uBAAuB,CAAC,KAAK,EAAE,sBAAsB,GAAG,UAAU,CAiIjF"}
|
|
@@ -0,0 +1,19 @@
|
|
|
1
|
+
import type { AgentPipelines } from '@wrongstack/core/agent';
|
|
2
|
+
import type { Config, Logger, MemoryPort } from '@wrongstack/core/types';
|
|
3
|
+
import type { EventBus } from '@wrongstack/core/kernel';
|
|
4
|
+
export interface SageWiringDeps {
|
|
5
|
+
config: Config;
|
|
6
|
+
pipelines: AgentPipelines;
|
|
7
|
+
memoryStore: MemoryPort | undefined;
|
|
8
|
+
logger: Logger;
|
|
9
|
+
events: EventBus;
|
|
10
|
+
getSessionId?: (() => string | undefined) | undefined;
|
|
11
|
+
}
|
|
12
|
+
/**
|
|
13
|
+
* Test-only: reset the auto-hygiene throttle so the next teardown always
|
|
14
|
+
* runs hygiene. Used by the regression test to verify the throttle skips
|
|
15
|
+
* on the second call within the interval.
|
|
16
|
+
*/
|
|
17
|
+
export declare function _resetAutoHygieneThrottleForTesting(): void;
|
|
18
|
+
export declare function setupSage(deps: SageWiringDeps): () => Promise<void>;
|
|
19
|
+
//# sourceMappingURL=sage.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"sage.d.ts","sourceRoot":"","sources":["../../src/wiring/sage.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,cAAc,EAAE,MAAM,wBAAwB,CAAC;AAC7D,OAAO,KAAK,EAAE,MAAM,EAAE,MAAM,EAAE,UAAU,EAAE,MAAM,wBAAwB,CAAC;AACzE,OAAO,KAAK,EAAE,QAAQ,EAAE,MAAM,yBAAyB,CAAC;AASxD,MAAM,WAAW,cAAc;IAC7B,MAAM,EAAE,MAAM,CAAC;IACf,SAAS,EAAE,cAAc,CAAC;IAC1B,WAAW,EAAE,UAAU,GAAG,SAAS,CAAC;IACpC,MAAM,EAAE,MAAM,CAAC;IACf,MAAM,EAAE,QAAQ,CAAC;IACjB,YAAY,CAAC,EAAE,CAAC,MAAM,MAAM,GAAG,SAAS,CAAC,GAAG,SAAS,CAAC;CACvD;AAaD;;;;GAIG;AACH,wBAAgB,mCAAmC,IAAI,IAAI,CAE1D;AAED,wBAAgB,SAAS,CAAC,IAAI,EAAE,cAAc,GAAG,MAAM,OAAO,CAAC,IAAI,CAAC,CA8EnE"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"sdd-handlers.d.ts","sourceRoot":"","sources":["../../src/wiring/sdd-handlers.ts"],"names":[],"mappings":"AAyBA,wBAAgB,iBAAiB,CAAC,IAAI,EAAE,MAAM,CAAC,MAAM,EAAE,GAAG,CAAC,GAAG,MAAM,CAAC,MAAM,EAAE,CAAC,GAAG,IAAI,EAAE,KAAK,EAAE,KAAK,OAAO,CAAC,
|
|
1
|
+
{"version":3,"file":"sdd-handlers.d.ts","sourceRoot":"","sources":["../../src/wiring/sdd-handlers.ts"],"names":[],"mappings":"AAyBA,wBAAgB,iBAAiB,CAAC,IAAI,EAAE,MAAM,CAAC,MAAM,EAAE,GAAG,CAAC,GAAG,MAAM,CAAC,MAAM,EAAE,CAAC,GAAG,IAAI,EAAE,KAAK,EAAE,KAAK,OAAO,CAAC,CAmO1G"}
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
import type { Provider, SlashCommand } from '@wrongstack/core/types';
|
|
2
|
+
export interface SecurityCommandHost {
|
|
3
|
+
cwd: string;
|
|
4
|
+
projectRoot: string;
|
|
5
|
+
llmProvider?: Provider | undefined;
|
|
6
|
+
llmModel?: string | undefined;
|
|
7
|
+
}
|
|
8
|
+
export type SecurityBackendCommand = Pick<SlashCommand, 'run'>;
|
|
9
|
+
/** CLI-owned adapter over the package-owned security command implementation. */
|
|
10
|
+
export declare function createCliSecurityCommand(host: SecurityCommandHost, backend?: SecurityBackendCommand): SlashCommand;
|
|
11
|
+
//# sourceMappingURL=security-command.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"security-command.d.ts","sourceRoot":"","sources":["../../src/wiring/security-command.ts"],"names":[],"mappings":"AACA,OAAO,KAAK,EAAE,QAAQ,EAAE,YAAY,EAAE,MAAM,wBAAwB,CAAC;AAGrE,MAAM,WAAW,mBAAmB;IAClC,GAAG,EAAE,MAAM,CAAC;IACZ,WAAW,EAAE,MAAM,CAAC;IACpB,WAAW,CAAC,EAAE,QAAQ,GAAG,SAAS,CAAC;IACnC,QAAQ,CAAC,EAAE,MAAM,GAAG,SAAS,CAAC;CAC/B;AAED,MAAM,MAAM,sBAAsB,GAAG,IAAI,CAAC,YAAY,EAAE,KAAK,CAAC,CAAC;AA6B/D,gFAAgF;AAChF,wBAAgB,wBAAwB,CACtC,IAAI,EAAE,mBAAmB,EACzB,OAAO,GAAE,sBAAqD,GAC7D,YAAY,CAqDd"}
|
|
@@ -0,0 +1,55 @@
|
|
|
1
|
+
import type { Config, TokenCounter } from '@wrongstack/core/types';
|
|
2
|
+
import type { ConfigStore } from '@wrongstack/core/types';
|
|
3
|
+
import type { Context } from '@wrongstack/core/agent';
|
|
4
|
+
import type { EventBus } from '@wrongstack/core/kernel';
|
|
5
|
+
import type { ToolRegistry } from '@wrongstack/core/registry';
|
|
6
|
+
import type { MCPRegistry } from '@wrongstack/mcp';
|
|
7
|
+
import type { MultiAgentHost } from '../multi-agent.js';
|
|
8
|
+
import type { SessionStats } from '../session-stats.js';
|
|
9
|
+
import type { BuiltinSlashCommandDeps } from './slash-commands.js';
|
|
10
|
+
type SlashCommandDeps = BuiltinSlashCommandDeps;
|
|
11
|
+
export type SessionCommandHandlers = Pick<SlashCommandDeps, 'onPlugin' | 'onContextLimit' | 'onMcp' | 'mcpRegistry' | 'mcpStatus' | 'onYolo' | 'onNextPredict' | 'onSuggestions' | 'onExit' | 'onBeforeExit' | 'onClear' | 'onNewSession' | 'onDiag' | 'onStats' | 'generateCommitMessage' | 'onDispatchClassify'>;
|
|
12
|
+
interface ErrorRecord {
|
|
13
|
+
ts: string;
|
|
14
|
+
phase: string;
|
|
15
|
+
code: string;
|
|
16
|
+
message: string;
|
|
17
|
+
}
|
|
18
|
+
export interface SessionCommandHandlersInput {
|
|
19
|
+
getConfig: () => Config;
|
|
20
|
+
setConfig: (config: Config) => void;
|
|
21
|
+
configStore: ConfigStore;
|
|
22
|
+
profileConfigPath: string;
|
|
23
|
+
context: Context;
|
|
24
|
+
effectiveMaxContext: {
|
|
25
|
+
current: number;
|
|
26
|
+
};
|
|
27
|
+
autoCompactor?: {
|
|
28
|
+
setMaxContext(tokens: number): void;
|
|
29
|
+
} | undefined;
|
|
30
|
+
events: EventBus;
|
|
31
|
+
setEventMaxContext: (tokens: number) => void;
|
|
32
|
+
mcpRegistry: MCPRegistry;
|
|
33
|
+
onYolo: NonNullable<SlashCommandDeps['onYolo']>;
|
|
34
|
+
getNextPredict: () => boolean;
|
|
35
|
+
setNextPredict: (enabled: boolean) => void;
|
|
36
|
+
getCurrentSuggestions: () => string[];
|
|
37
|
+
setCurrentSuggestions: (suggestions: string[]) => void;
|
|
38
|
+
teardownHandlers: Array<() => void>;
|
|
39
|
+
multiAgentHost: MultiAgentHost;
|
|
40
|
+
pluginHost?: {
|
|
41
|
+
dispose(): Promise<void>;
|
|
42
|
+
} | undefined;
|
|
43
|
+
logger: {
|
|
44
|
+
warn(message: string): void;
|
|
45
|
+
};
|
|
46
|
+
projectRoot: string;
|
|
47
|
+
flags: Record<string, string | boolean>;
|
|
48
|
+
tokenCounter: TokenCounter;
|
|
49
|
+
errorRing: ErrorRecord[];
|
|
50
|
+
toolRegistry: ToolRegistry;
|
|
51
|
+
stats: SessionStats;
|
|
52
|
+
}
|
|
53
|
+
export declare function createSessionCommandHandlers(input: SessionCommandHandlersInput): SessionCommandHandlers;
|
|
54
|
+
export {};
|
|
55
|
+
//# sourceMappingURL=session-command-handlers.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"session-command-handlers.d.ts","sourceRoot":"","sources":["../../src/wiring/session-command-handlers.ts"],"names":[],"mappings":"AAIA,OAA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ueStore, RecoveryLock } from '@wrongstack/core/storage';
|
|
3
|
+
import { type SessionStore, type SessionWriter } from '@wrongstack/core/types';
|
|
4
|
+
import { Context } from '@wrongstack/core/agent';
|
|
5
|
+
import { type WstackPaths } from '@wrongstack/core/utils';
|
|
2
6
|
export interface SessionResult {
|
|
3
7
|
session: SessionWriter;
|
|
4
8
|
sessionRef: {
|
|
@@ -7,14 +11,14 @@ export interface SessionResult {
|
|
|
7
11
|
/** 32-char hex trace ID for correlating storage events with agent iterations. */
|
|
8
12
|
traceId: string;
|
|
9
13
|
context: Context;
|
|
10
|
-
restoredMessages: import('@wrongstack/core').Message[];
|
|
14
|
+
restoredMessages: import('@wrongstack/core/types').Message[];
|
|
11
15
|
attachments: DefaultAttachmentStore;
|
|
12
16
|
recoveryLock: RecoveryLock;
|
|
13
17
|
queueStore: QueueStore;
|
|
14
18
|
planPath: string;
|
|
15
19
|
detachTodosCheckpoint: () => void;
|
|
16
20
|
/** Director state checkpoint from the prior run — null if this is not a resume. */
|
|
17
|
-
priorFleetState?: import('@wrongstack/core').DirectorStateSnapshot | undefined;
|
|
21
|
+
priorFleetState?: import('@wrongstack/core/storage').DirectorStateSnapshot | undefined;
|
|
18
22
|
/** Tool execution records from the prior session (tool_call_end JSONL events). */
|
|
19
23
|
restoredToolCalls: Array<{
|
|
20
24
|
name: string;
|
|
@@ -31,7 +35,7 @@ export interface SessionResult {
|
|
|
31
35
|
* interleaved audit markers (mode/compaction/checkpoint/skill/…) — matching
|
|
32
36
|
* the in-session resume picker instead of meta-only tool chips.
|
|
33
37
|
*/
|
|
34
|
-
restoredEvents: import('@wrongstack/core').SessionEvent[];
|
|
38
|
+
restoredEvents: import('@wrongstack/core/types').SessionEvent[];
|
|
35
39
|
/**
|
|
36
40
|
* Model/provider recorded in the resumed session. Undefined when not
|
|
37
41
|
* resuming. The boot path applies these via switchProviderAndModel once the
|
|
@@ -58,9 +62,9 @@ export declare function setupSession(params: {
|
|
|
58
62
|
projectRoot: string;
|
|
59
63
|
cwd: string;
|
|
60
64
|
sessionStore: SessionStore;
|
|
61
|
-
systemPrompt: import('@wrongstack/core').TextBlock[];
|
|
62
|
-
provider: import('@wrongstack/core').Provider;
|
|
63
|
-
tokenCounter: import('@wrongstack/core').TokenCounter;
|
|
65
|
+
systemPrompt: import('@wrongstack/core/types').TextBlock[];
|
|
66
|
+
provider: import('@wrongstack/core/types').Provider;
|
|
67
|
+
tokenCounter: import('@wrongstack/core/types').TokenCounter;
|
|
64
68
|
renderer: {
|
|
65
69
|
writeInfo(msg: string): void;
|
|
66
70
|
writeError(msg: string): void;
|
|
@@ -68,8 +72,8 @@ export declare function setupSession(params: {
|
|
|
68
72
|
flags: Record<string, unknown>;
|
|
69
73
|
onRecovery: (abandoned: AbandonedSession, autoRecover: boolean) => Promise<'resume' | 'delete' | 'skip'>;
|
|
70
74
|
/** Optional EventBus for emitting storage.* events from todo/queue/task stores. */
|
|
71
|
-
events?: import('@wrongstack/core').EventBus;
|
|
75
|
+
events?: import('@wrongstack/core/kernel').EventBus;
|
|
72
76
|
/** Logger for structured storage warnings. */
|
|
73
|
-
logger?: import('@wrongstack/core').Logger | undefined;
|
|
77
|
+
logger?: import('@wrongstack/core/types').Logger | undefined;
|
|
74
78
|
}): Promise<SessionResult>;
|
|
75
79
|
//# sourceMappingURL=session.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"session.d.ts","sourceRoot":"","sources":["../../src/wiring/session.ts"],"names":[],"mappings":"AAEA,OAAO,
|
|
1
|
+
{"version":3,"file":"session.d.ts","sourceRoot":"","sources":["../../src/wiring/session.ts"],"names":[],"mappings":"AAEA,OAAO,KAAK,EAAE,gBAAgB,EAAE,MAAM,0BAA0B,CAAC;AACjE,OAAO,EAAyB,sBAAsB,EAAoD,UAAU,EAAE,YAAY,EAAE,MAAM,0BAA0B,CAAC;AACrK,OAAO,EAA8B,KAAK,YAAY,EAAE,KAAK,aAAa,EAAE,MAAM,wBAAwB,CAAC;AAC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QAAQ,EAAE,MAAM,CAAC;QACjB,QAAQ,CAAC,EAAE;YAAE,uBAAuB,CAAC,EAAE,OAAO,GAAG,SAAS,CAAA;SAAE,CAAC;QAC7D,KAAK,CAAC,EAAE;YAAE,qBAAqB,CAAC,EAAE,OAAO,GAAG,SAAS,CAAA;SAAE,GAAG,SAAS,CAAC;KACrE,CAAC;IACF,MAAM,EAAE,WAAW,CAAC;IACpB,WAAW,EAAE,MAAM,CAAC;IACpB,GAAG,EAAE,MAAM,CAAC;IACZ,YAAY,EAAE,YAAY,CAAC;IAC3B,YAAY,EAAE,OAAO,wBAAwB,EAAE,SAAS,EAAE,CAAC;IAC3D,QAAQ,EAAE,OAAO,wBAAwB,EAAE,QAAQ,CAAC;IACpD,YAAY,EAAE,OAAO,wBAAwB,EAAE,YAAY,CAAC;IAC5D,QAAQ,EAAE;QAAE,SAAS,CAAC,GAAG,EAAE,MAAM,GAAG,IAAI,CAAC;QAAC,UAAU,CAAC,GAAG,EAAE,MAAM,GAAG,IAAI,CAAA;KAAE,CAAC;IAC1E,KAAK,EAAE,MAAM,CAAC,MAAM,EAAE,OAAO,CAAC,CAAC;IAC/B,UAAU,EAAE,CACV,SAAS,EAAE,gBAAgB,EAC3B,WAAW,EAAE,OAAO,KACjB,OAAO,CAAC,QAAQ,GAAG,QAAQ,GAAG,MAAM,CAAC,CAAC;IAC3C,mFAAmF;IACnF,MAAM,CAAC,EAAE,OAAO,yBAAyB,EAAE,QAAQ,CAAC;IACpD,8CAA8C;IAC9C,MAAM,CAAC,EAAE,OAAO,wBAAwB,EAAE,MAAM,GAAG,SAAS,CAAC;CAC9D,GAAG,OAAO,CAAC,aAAa,CAAC,CAoPzB"}
|
|
@@ -1,6 +1,15 @@
|
|
|
1
|
-
import type { CompactReport,
|
|
1
|
+
import type { CompactReport, HealthRegistry, InputReader, MemoryPort, MetricsSink, ModeStore, Provider, Renderer, SecretVault, SkillLoader, TokenCounter } from '@wrongstack/core/types';
|
|
2
|
+
import type { WstackPaths } from '@wrongstack/core/utils';
|
|
3
|
+
import type { ConfigStore, SessionStore } from '@wrongstack/core/types';
|
|
4
|
+
import type { Context } from '@wrongstack/core/agent';
|
|
5
|
+
import type { EventBus } from '@wrongstack/core/kernel';
|
|
6
|
+
import type { SlashCommandRegistry, ToolRegistry } from '@wrongstack/core/registry';
|
|
2
7
|
import type { MultiAgentHost } from '../multi-agent.js';
|
|
3
|
-
import type
|
|
8
|
+
import { type StatuslineConfig } from '../services/statusline-config.js';
|
|
9
|
+
import { buildBuiltinSlashCommands } from '../slash-commands/index.js';
|
|
10
|
+
export type BuiltinSlashCommandDeps = Parameters<typeof buildBuiltinSlashCommands>[0];
|
|
11
|
+
/** Canonical bridge into the slash-command catalog for non-command hosts. */
|
|
12
|
+
export declare function buildCommandHostSlashCommands(deps: BuiltinSlashCommandDeps): ReturnType<typeof buildBuiltinSlashCommands>;
|
|
4
13
|
export interface SlashCommandsDeps {
|
|
5
14
|
slashRegistry: SlashCommandRegistry;
|
|
6
15
|
toolRegistry: ToolRegistry;
|
|
@@ -13,7 +22,7 @@ export interface SlashCommandsDeps {
|
|
|
13
22
|
readSecret: (prompt: string) => Promise<string>;
|
|
14
23
|
vault: SecretVault;
|
|
15
24
|
events: EventBus;
|
|
16
|
-
memoryStore:
|
|
25
|
+
memoryStore: MemoryPort;
|
|
17
26
|
context: Context;
|
|
18
27
|
cwd: string;
|
|
19
28
|
projectRoot: string;
|
|
@@ -25,8 +34,8 @@ export interface SlashCommandsDeps {
|
|
|
25
34
|
model: string;
|
|
26
35
|
multiAgentHost: MultiAgentHost;
|
|
27
36
|
fleetStreamController: {
|
|
28
|
-
mode: import('@wrongstack/core').FleetChatVerbosity;
|
|
29
|
-
setMode(mode: import('@wrongstack/core').FleetChatVerbosity): void;
|
|
37
|
+
mode: import('@wrongstack/core/types').FleetChatVerbosity;
|
|
38
|
+
setMode(mode: import('@wrongstack/core/types').FleetChatVerbosity): void;
|
|
30
39
|
};
|
|
31
40
|
/** Controller for the agents monitor overlay (optional). */
|
|
32
41
|
agentsMonitorController?: {
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"slash-commands.d.ts","sourceRoot":"","sources":["../../src/wiring/slash-commands.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,
|
|
1
|
+
{"version":3,"file":"slash-commands.d.ts","sourceRoot":"","sources":["../../src/wiring/slash-commands.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,aAAa,EAAE,cAAc,EAAE,WAAW,EAAE,UAAU,EAAE,WAAW,EAAE,SAAS,EAAE,QAAQ,EAAE,QAAQ,EAAE,WAAW,EAAE,WAAW,EAAE,YAAY,EAAE,MAAM,wBAAwB,CAAC;AACzL,OAAO,KAAK,EAAE,WAAW,EAAE,MAAM,wBAAwB,CAAC;AAC1D,OAAO,KAAK,EAAE,WAAW,EAAE,YAAY,EAAE,MAAM,wBAAwB,CAAC;AACxE,OAAO,KAAK,EAAE,OAAO,EAAE,MAAM,wBAAwB,CAAC;AACtD,OAAO,KAAK,EAAE,QAAQ,EAAE,MAAM,yBAAyB,CAAC;AACxD,OAAO,KAAK,EAAE,oBAAoB,EAAE,YAAY,EAAE,MAAM,2BAA2B,CAAC;AACpF,OAAO,KAAK,EAAE,cAAc,EAAE,MAAM,mBAAmB,CAAC;AACxD,OAAO,EAIL,KAAK,gBAAgB,EAGtB,MAAM,kCAAkC,CAAC;AAC1C,OAAO,EAAE,yBAAyB,EAAE,MAAM,4BAA4B,CAAC;AAEvE,MAAM,MAAM,uBAAuB,GAAG,UAAU,CAAC,OAAO,yBAAyB,CAAC,CAAC,CAAC,CAAC,CAAC;AAEtF,6EAA6E;AAC7E,wBAAgB,6BAA6B,CAC3C,IAAI,EAAE,uBAAuB,GAC5B,UAAU,CAAC,OAAO,yBAAyB,CAAC,CAE9C;AAED,MAAM,WAAW,iBAAiB;IAChC,aAAa,EAAE,oBAAoB,CAAC;IACpC,YAAY,EAAE,YAAY,CAAC;IAC3B,KAAK,EAAE,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type { Config, MemoryPort } from '@wrongstack/core/types';
|
|
3
|
+
import { type WstackPaths } from '@wrongstack/core/utils';
|
|
4
|
+
import { type DefaultModelsRegistry, DefaultModeStore } from '@wrongstack/core/models';
|
|
5
|
+
import { DefaultSkillLoader } from '@wrongstack/core/execution';
|
|
6
|
+
import { DefaultSystemPromptBuilder } from '@wrongstack/core/agent';
|
|
7
|
+
import type { ToolRegistry } from '@wrongstack/core/registry';
|
|
3
8
|
export interface ToolsWiringDeps {
|
|
4
9
|
config: Config;
|
|
5
10
|
toolRegistry: ToolRegistry;
|
|
6
11
|
modelsRegistry: DefaultModelsRegistry;
|
|
7
|
-
memoryStore:
|
|
12
|
+
memoryStore: MemoryPort;
|
|
8
13
|
wpaths: WstackPaths;
|
|
9
14
|
projectRoot: string;
|
|
10
15
|
cwd: string;
|
|
@@ -19,23 +24,7 @@ export interface ToolsWiringResult {
|
|
|
19
24
|
promptBuilder: DefaultSystemPromptBuilder;
|
|
20
25
|
modeStore: DefaultModeStore;
|
|
21
26
|
skillLoader: DefaultSkillLoader | undefined;
|
|
22
|
-
memoryStore:
|
|
27
|
+
memoryStore: MemoryPort;
|
|
23
28
|
}
|
|
24
|
-
/**
|
|
25
|
-
* Returns the tools to register, filtered from `allTools` by tier.
|
|
26
|
-
*
|
|
27
|
-
* | Tier | Tools returned |
|
|
28
|
-
* |-------------|---------------------------------------------|
|
|
29
|
-
* | 'off' | allTools (no filtering) |
|
|
30
|
-
* | 'minimal' | TIER1 tools only |
|
|
31
|
-
* | 'light' | TIER1 tools only (guidance differs only) |
|
|
32
|
-
* | 'medium' | TIER1 + TIER2 tools |
|
|
33
|
-
* | 'aggressive'| TIER1 + TIER2 (minus task) + TIER3 (minus setWorkingDir) |
|
|
34
|
-
*
|
|
35
|
-
* Memory tools (remember, forget, searchMemory, relatedMemory) are NOT
|
|
36
|
-
* included here — they are registered conditionally in setupTools() based
|
|
37
|
-
* on `config.features.memory`.
|
|
38
|
-
*/
|
|
39
|
-
export declare function getToolsForTier(tier: ConcreteTokenSavingTier, allTools: Tool[]): Tool[];
|
|
40
29
|
export declare function setupTools(params: ToolsWiringDeps): Promise<ToolsWiringResult>;
|
|
41
30
|
//# sourceMappingURL=tools.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"tools.d.ts","sourceRoot":"","sources":["../../src/wiring/tools.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,SAAS,EAAE,
|
|
1
|
+
{"version":3,"file":"tools.d.ts","sourceRoot":"","sources":["../../src/wiring/tools.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,SAAS,EAAE,MAAM,wBAAwB,CAAC;AACxD,OAAO,KAAK,EAAE,MAAM,EAAE,UAAU,EAAE,MAAM,wBAAwB,CAAC;AACjE,OAAO,EAAgC,KAAK,WAAW,EAAE,MAAM,wBAAwB,CAAC;AAGxF,OAAO,EAAE,KAAK,qBAAqB,EAAE,gBAAgB,EAAE,MAAM,yBAAyB,CAAC;AACvF,OAAO,EAAE,kBAAkB,EAAE,MAAM,4BAA4B,CAAC;AAChE,OAAO,EAAE,0BAA0B,EAAE,MAAM,wBAAwB,CAAC;AAGpE,OAAO,KAAK,EAAE,YAAY,EAAE,MAAM,2BAA2B,CAAC;AAK9D,MAAM,WAAW,eAAe;IAC9B,MAAM,EAAE,MAAM,CAAC;IACf,YAAY,EAAE,YAAY,CAAC;IAC3B,cAAc,EAAE,qBAAqB,CAAC;IACtC,WAAW,EAAE,UAAU,CAAC;IACxB,MAAM,EAAE,WAAW,CAAC;IACpB,WAAW,EAAE,MAAM,CAAC;IACpB,GAAG,EAAE,MAAM,CAAC;IACZ,SAAS,EAAE;QAAE,OAAO,CAAC,CAAC,EAAE,GAAG,EAAE,OAAO,GAAG,CAAC,CAAC;QAAC,GAAG,CAAC,GAAG,EAAE,OAAO,GAAG,OAAO,CAAA;KAAE,CAAC;CACxE;AAED,MAAM,WAAW,iBAAiB;IAChC,YAAY,EAAE,YAAY,CAAC;IAC3B,YAAY,EAAE,OAAO,CAAC,SAAS,EAAE,CAAC,CAAC;IACnC,aAAa,EAAE,0BAA0B,CAAC;IAC1C,SAAS,EAAE,gBAAgB,CAAC;IAC5B,WAAW,EAAE,kBAAkB,GAAG,SAAS,CAAC;IAC5C,WAAW,EAAE,UAAU,CAAC;CACzB;AAED,wBAAsB,UAAU,CAAC,MAAM,EAAE,eAAe,GAAG,OAAO,CAAC,iBAAiB,CAAC,CA2FpF"}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@wrongstack/cli",
|
|
3
|
-
"version": "0.
|
|
3
|
+
"version": "0.295.1",
|
|
4
4
|
"license": "MIT",
|
|
5
5
|
"description": "WrongStack CLI — terminal AI coding agent with provider catalog from models.dev. Provides `wrongstack` and `wstack` binaries.",
|
|
6
6
|
"keywords": [
|
|
@@ -41,28 +41,29 @@
|
|
|
41
41
|
],
|
|
42
42
|
"dependencies": {
|
|
43
43
|
"ws": "^8.21.1",
|
|
44
|
-
"@wrongstack/
|
|
45
|
-
"@wrongstack/
|
|
46
|
-
"@wrongstack/mcp": "0.
|
|
47
|
-
"@wrongstack/
|
|
48
|
-
"@wrongstack/
|
|
49
|
-
"@wrongstack/kanban": "0.
|
|
50
|
-
"@wrongstack/
|
|
51
|
-
"@wrongstack/
|
|
52
|
-
"@wrongstack/
|
|
53
|
-
"@wrongstack/
|
|
54
|
-
"@wrongstack/
|
|
55
|
-
"@wrongstack/
|
|
56
|
-
"@wrongstack/
|
|
57
|
-
"@wrongstack/techstack": "0.
|
|
58
|
-
"@wrongstack/
|
|
59
|
-
"@wrongstack/
|
|
60
|
-
"@wrongstack/
|
|
61
|
-
"@wrongstack/
|
|
62
|
-
"@wrongstack/
|
|
44
|
+
"@wrongstack/core": "0.295.1",
|
|
45
|
+
"@wrongstack/bench": "0.295.1",
|
|
46
|
+
"@wrongstack/mcp": "0.295.1",
|
|
47
|
+
"@wrongstack/plug-lsp": "0.295.1",
|
|
48
|
+
"@wrongstack/acp": "0.295.1",
|
|
49
|
+
"@wrongstack/kanban": "0.295.1",
|
|
50
|
+
"@wrongstack/runtime": "0.295.1",
|
|
51
|
+
"@wrongstack/providers": "0.295.1",
|
|
52
|
+
"@wrongstack/plugins": "0.295.1",
|
|
53
|
+
"@wrongstack/simpleui": "0.295.1",
|
|
54
|
+
"@wrongstack/sdd": "0.295.1",
|
|
55
|
+
"@wrongstack/security-scanner": "0.295.1",
|
|
56
|
+
"@wrongstack/sage": "0.295.1",
|
|
57
|
+
"@wrongstack/techstack": "0.295.1",
|
|
58
|
+
"@wrongstack/tools": "0.295.1",
|
|
59
|
+
"@wrongstack/telegram": "0.295.1",
|
|
60
|
+
"@wrongstack/tui": "0.295.1",
|
|
61
|
+
"@wrongstack/webui-hq": "0.295.1",
|
|
62
|
+
"@wrongstack/webui": "0.295.1",
|
|
63
|
+
"@wrongstack/webui-server": "0.295.1"
|
|
63
64
|
},
|
|
64
65
|
"optionalDependencies": {
|
|
65
|
-
"@wrongstack/desktop": "0.
|
|
66
|
+
"@wrongstack/desktop": "0.295.0"
|
|
66
67
|
},
|
|
67
68
|
"devDependencies": {
|
|
68
69
|
"@types/node": "^26.1.1",
|
|
@@ -74,7 +75,7 @@
|
|
|
74
75
|
"access": "public"
|
|
75
76
|
},
|
|
76
77
|
"scripts": {
|
|
77
|
-
"build": "node ../../scripts/build-package.mjs",
|
|
78
|
+
"build": "node ../../scripts/build.mjs --target @wrongstack/webui-hq --skip-if-workspace-build && node ../../scripts/build-package.mjs",
|
|
78
79
|
"typecheck": "pnpm --filter @wrongstack/tools run build && pnpm --filter @wrongstack/tui run build && tsc --noEmit",
|
|
79
80
|
"test:hqdash": "vitest run --config vitest.hqdash.config.ts",
|
|
80
81
|
"clean": "node -e \"require('node:fs').rmSync('dist',{recursive:true,force:true})\""
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"hq-dashboard-html.d.ts","sourceRoot":"","sources":["../src/hq-dashboard-html.ts"],"names":[],"mappings":"AA4vEA,eAAO,MAAM,OAAO,EAAE,MAGyC,CAAC"}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"project-context.d.ts","sourceRoot":"","sources":["../../../src/slash-commands/sdd/project-context.ts"],"names":[],"mappings":"AAEA,OAAO,KAAK,EAAE,aAAa,EAAE,WAAW,EAAkB,SAAS,EAAE,MAAM,iBAAiB,CAAC;AAG7F,wBAAgB,gBAAgB,IAAI,aAAa,GAAG,IAAI,CAEvD;AAED,wBAAgB,mBAAmB,IAAI,MAAM,GAAG,IAAI,CAEnD;AAED,wBAAgB,iBAAiB,IAAI,WAAW,GAAG,IAAI,CAEtD;AAED,wBAAsB,QAAQ,CAAC,KAAK,EAAE,SAAS,EAAE,SAAS,EAAE,MAAM,4DAWjE;AAED,wBAAsB,oBAAoB,CAAC,WAAW,EAAE,MAAM,GAAG,OAAO,CAAC,MAAM,CAAC,CAyC/E"}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"spec-detection.d.ts","sourceRoot":"","sources":["../../../src/slash-commands/sdd/spec-detection.ts"],"names":[],"mappings":"AAEA;;;GAGG;AACH,wBAAgB,iBAAiB,CAAC,IAAI,EAAE,MAAM,GAAG,OAAO,CAkBvD;AAED;;;GAGG;AACH,wBAAsB,uBAAuB,CAAC,QAAQ,EAAE,MAAM,GAAG,OAAO,CAAC,OAAO,CAAC,CAOhF;AAED;;;GAGG;AACH,wBAAgB,yBAAyB,CAAC,QAAQ,EAAE,MAAM,GAAG,OAAO,CA4BnE;AAED;;;GAGG;AACH,wBAAgB,wBAAwB,CAAC,QAAQ,EAAE,MAAM,GAAG,MAAM,CAgFjE"}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"state.d.ts","sourceRoot":"","sources":["../../../src/slash-commands/sdd/state.ts"],"names":[],"mappings":"AAAA,OAAO,EACL,KAAK,aAAa,EAClB,KAAK,WAAW,EAChB,KA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CAAA;CAAE,EACnE,KAAK,EAAE,CAAC,EAAE,EACV,KAAK,EAAE,MAAM,GACZ,CAAC,GAAG,IAAI,CAaV;AAED,wBAAgB,iBAAiB,CAAC,SAAS,EAAE,MAAM,GAAG,OAAO,CAY5D;AAED,wBAAgB,cAAc,IAAI,MAAM,GAAG,IAAI,CAE9C;AACD,wBAAgB,oBAAoB,IAAI,WAAW,GAAG,IAAI,CAEzD"}
|
|
@@ -1,63 +0,0 @@
|
|
|
1
|
-
/**
|
|
2
|
-
* WebSocket message router for the CLI WebUI bridge.
|
|
3
|
-
*
|
|
4
|
-
* A declarative route table keyed by `WSClientMessage['type']`, replacing
|
|
5
|
-
* the former 112-case switch statement. Each route is a closure that calls
|
|
6
|
-
* the matching `handleXxx(ctx, ws, ...)` from the shared ws-handlers groups
|
|
7
|
-
* (or, for file/mcp/skills/prompts/design/shell, the handlers shared with
|
|
8
|
-
* the standalone `@wrongstack/webui-server`). Prefix-based message types
|
|
9
|
-
* (`goal.*`, `specs.*`, `sdd.board.*`, `sdd.spec.*`/`sdd.run.*`,
|
|
10
|
-
* `worktree.*`) fall through to their dedicated handler instance instead of
|
|
11
|
-
* a route-table entry.
|
|
12
|
-
*
|
|
13
|
-
* `createMessageRouter(deps)` receives every per-group context object
|
|
14
|
-
* already constructed by the caller (`webui-server.ts`) — it does not build
|
|
15
|
-
* any wiring itself, only routes.
|
|
16
|
-
*
|
|
17
|
-
* PR 15 of Issue #30: extracted from `webui-server.ts`.
|
|
18
|
-
*/
|
|
19
|
-
import type { DesignContext, GoalWebSocketHandler, PromptsContext, SddBoardWebSocketHandler, SddWizardWebSocketHandler, SkillsContext, SpecsWebSocketHandler, TerminalWebSocketHandler, WorktreeWebSocketHandler } from '@wrongstack/webui-server';
|
|
20
|
-
import type { WebSocket } from 'ws';
|
|
21
|
-
import type { CliWebUIOptions, WSClientMessage, WSServerMessage } from '../webui-server.js';
|
|
22
|
-
import type { ConnectedClient } from './connection-handler.js';
|
|
23
|
-
import type { KanbanRunMirror } from './kanban-run-mirror.js';
|
|
24
|
-
import type { KanbanSupervisor } from './kanban-supervisor.js';
|
|
25
|
-
import type { AgentConfigContext, BrainHandlerContext, ConnectionContext, ContextHandlerContext, IntrospectionContext, MailboxContext, PrefsContext, ProjectsContext, SessionsContext, WorklistContext, WsCommon, WsHandlerContext } from './ws-handlers/index.js';
|
|
26
|
-
export interface MessageRouterDeps {
|
|
27
|
-
opts: CliWebUIOptions;
|
|
28
|
-
send: (ws: WebSocket, msg: WSServerMessage) => void;
|
|
29
|
-
sendResult: (ws: WebSocket, success: boolean, message: string) => void;
|
|
30
|
-
sessionPayload: <T extends Record<string, unknown>>(payload: T) => T & {
|
|
31
|
-
sessionId: string;
|
|
32
|
-
};
|
|
33
|
-
currentSessionId: () => string;
|
|
34
|
-
shutdown: () => void;
|
|
35
|
-
wsHandlerCtx: WsHandlerContext;
|
|
36
|
-
brainCtx: BrainHandlerContext;
|
|
37
|
-
introspectionCtx: IntrospectionContext;
|
|
38
|
-
skillsCtx: SkillsContext;
|
|
39
|
-
promptsCtx: PromptsContext;
|
|
40
|
-
designCtx: DesignContext;
|
|
41
|
-
worklistCtx: WorklistContext;
|
|
42
|
-
agentConfigCtx: AgentConfigContext;
|
|
43
|
-
prefsCtx: PrefsContext;
|
|
44
|
-
projectsCtx: ProjectsContext;
|
|
45
|
-
contextHandlerCtx: ContextHandlerContext;
|
|
46
|
-
wsCommon: WsCommon;
|
|
47
|
-
mailboxCtx: MailboxContext;
|
|
48
|
-
sessionsCtx: SessionsContext;
|
|
49
|
-
connectionCtx: ConnectionContext;
|
|
50
|
-
goalHandler: GoalWebSocketHandler;
|
|
51
|
-
specsHandler: SpecsWebSocketHandler;
|
|
52
|
-
sddBoardHandler: SddBoardWebSocketHandler;
|
|
53
|
-
sddWizardHandler: SddWizardWebSocketHandler | null;
|
|
54
|
-
worktreeHandler: WorktreeWebSocketHandler;
|
|
55
|
-
terminalHandler: TerminalWebSocketHandler;
|
|
56
|
-
/** Live run↔kanban mirror; used by kanban.run.start to bind a launched run's board. */
|
|
57
|
-
kanbanRunMirror?: KanbanRunMirror | undefined;
|
|
58
|
-
/** Quiet deterministic/agentic Kanban health custodian. */
|
|
59
|
-
kanbanSupervisor?: KanbanSupervisor | undefined;
|
|
60
|
-
}
|
|
61
|
-
export type MessageRouter = (ws: WebSocket, client: ConnectedClient, msg: WSClientMessage) => Promise<void>;
|
|
62
|
-
export declare function createMessageRouter(deps: MessageRouterDeps): MessageRouter;
|
|
63
|
-
//# sourceMappingURL=message-router.d.ts.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"message-router.d.ts","sourceRoot":"","sources":["../../src/webui-server/message-router.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;;;;GAiBG;AAOH,OAAO,KAAK,EACV,aAAa,EACb,oBAAoB,EACpB,cAAc,EACd,wBAAwB,EACxB,yBAAyB,EACzB,aAAa,EACb,qBAAqB,EACrB,wBAAwB,EACxB,wBAAwB,EACzB,MAAM,0BAA0B,CAAC;AA4DlC,OAAO,KAAK,EAAE,SAAS,EAAE,MAAM,IAAI,CAAC;AACpC,OAAO,KAAK,EAAE,eAAe,EAAE,eAAe,EAAE,eAAe,EAAE,MAAM,oBAAoB,CAAC;AAC5F,OAAO,KAAK,EAAE,eAAe,EAAE,MAAM,yBAAyB,CAAC;AAC/D,OAAO,KAAK,EAAE,eAAe,EAAE,MAAM,wBAAwB,CAAC;AAC9D,OAAO,KAAK,EAAE,gBAAgB,EAAE,MAAM,wBAAwB,CAAC;AAE/D,OAAO,KAAK,EACV,kBAAkB,EAClB,mBAAmB,EACnB,iBAAiB,EACjB,qBAAqB,EACrB,oBAAoB,EACpB,cAAc,EACd,YAAY,EACZ,eAAe,EACf,eAAe,EACf,eAAe,EACf,QAAQ,EACR,gBAAgB,EACjB,MAAM,wBAAwB,CAAC;AAoFhC,MAAM,WAAW,iBAAiB;IAChC,IAAI,EAAE,eAAe,CAAC;IACtB,IAAI,EAA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AS,CAAC;CACjD;AAED,MAAM,MAAM,aAAa,GAAG,CAC1B,EAAE,EAAE,SAAS,EACb,MAAM,EAAE,eAAe,EACvB,GAAG,EAAE,eAAe,KACjB,OAAO,CAAC,IAAI,CAAC,CAAC;AAEnB,wBAAgB,mBAAmB,CAAC,IAAI,EAAE,iBAAiB,GAAG,aAAa,CA67B1E"}
|
|
@@ -1,16 +0,0 @@
|
|
|
1
|
-
export interface SessionStatusPollDeps {
|
|
2
|
-
/** Directory holding session-registry.json (the wstack global root). */
|
|
3
|
-
globalRoot: string;
|
|
4
|
-
/** Canonical project root used before this process appears in the registry. */
|
|
5
|
-
projectRoot?: string | undefined;
|
|
6
|
-
broadcast: (msg: {
|
|
7
|
-
type: string;
|
|
8
|
-
payload: unknown;
|
|
9
|
-
}) => void;
|
|
10
|
-
/** Shared disposer list — poll interval + fs watcher land here. */
|
|
11
|
-
eventUnsubscribers: Array<() => void>;
|
|
12
|
-
/** Receives the broadcaster so `/api/fleet/ping` can push-on-write. */
|
|
13
|
-
onBroadcastReady: (fn: () => Promise<void>) => void;
|
|
14
|
-
}
|
|
15
|
-
export declare function startSessionStatusPoll(deps: SessionStatusPollDeps): void;
|
|
16
|
-
//# sourceMappingURL=session-status-poll.d.ts.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"session-status-poll.d.ts","sourceRoot":"","sources":["../../src/webui-server/session-status-poll.ts"],"names":[],"mappings":"AAiBA,MAAM,WAAW,qBAAqB;IACpC,wEAAwE;IACxE,UAAU,EAAE,MAAM,CAAC;IACnB,+EAA+E;IAC/E,WAAW,CAAC,EAAE,MAAM,GAAG,SAAS,CAAC;IACjC,SAAS,EAAE,CAAC,GAAG,EAAE;QAAE,IAAI,EAAE,MAAM,CAAC;QAAC,OAAO,EAAE,OAAO,CAAA;KAAE,KAAK,IAAI,CAAC;IAC7D,mEAAmE;IACnE,kBAAkB,EAAE,KAAK,CAAC,MAAM,IAAI,CAAC,CAAC;IACtC,uEAAuE;IACvE,gBAAgB,EAAE,CAAC,EAAE,EAAE,MAAM,OAAO,CAAC,IAAI,CAAC,KAAK,IAAI,CAAC;CACrD;AAED,wBAAgB,sBAAsB,CAAC,IAAI,EAAE,qBAAqB,GAAG,IAAI,CA6FxE"}
|