@wrongstack/cli 0.292.1 → 0.295.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 +7 -5
- package/data/providers.json +346 -17
- 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 -3
- 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 -2
- 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 +18 -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 -14
- package/dist/execute-deps.d.ts.map +1 -1
- package/dist/execution.d.ts +24 -4
- 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.d.ts +7 -16
- 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 +26384 -33604
- 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 -11
- 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-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 +3 -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 +14 -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 -597
- 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/acp.d.ts.map +1 -1
- 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 +3 -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.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 -7
- 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 -7
- 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
|
@@ -1,20 +1,9 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
* calls on `listening` (and again after a project switch): it clears the
|
|
7
|
-
* shared `eventUnsubscribers` list and re-arms every subscription, pushing
|
|
8
|
-
* each disposer back onto that list so teardown/re-arm stays centralized in
|
|
9
|
-
* the caller. Fleet-concurrency gauge state lives here too — it is only ever
|
|
10
|
-
* read and mutated by these subscriptions.
|
|
11
|
-
*
|
|
12
|
-
* PR 12 of Issue #30: extracted from `webui-server.ts`.
|
|
13
|
-
*/
|
|
14
|
-
import type { Context, EventBus, JournalEntry, SecretScrubber } from '@wrongstack/core';
|
|
15
|
-
import { createEternalSubscription } from '@wrongstack/webui-server';
|
|
1
|
+
import type { Context } from '@wrongstack/core/agent';
|
|
2
|
+
import type { EventBus } from '@wrongstack/core/kernel';
|
|
3
|
+
import type { JournalEntry } from '@wrongstack/core/goal';
|
|
4
|
+
import type { SecretScrubber } from '@wrongstack/core/types';
|
|
5
|
+
import { createEternalSubscription, type PendingConfirm } from '@wrongstack/webui-server';
|
|
16
6
|
import type { StreamCoalescer } from './stream-coalescer.js';
|
|
17
|
-
import type { PendingConfirm } from './ws-handlers/index.js';
|
|
18
7
|
export interface SetupEventsDeps {
|
|
19
8
|
events: EventBus;
|
|
20
9
|
agent: {
|
|
@@ -36,10 +25,11 @@ export interface SetupEventsDeps {
|
|
|
36
25
|
flushAllStreamBuffers: StreamCoalescer['flushAllStreamBuffers'];
|
|
37
26
|
pendingConfirms: Map<string, PendingConfirm>;
|
|
38
27
|
secretScrubber: SecretScrubber;
|
|
39
|
-
/** Live clients getter for the shared eternal-iteration subscription. */
|
|
40
28
|
getClients: Parameters<typeof createEternalSubscription>[2];
|
|
41
|
-
/** Shared disposer list — the caller also pushes non-event disposers here. */
|
|
42
29
|
eventUnsubscribers: Array<() => void>;
|
|
30
|
+
globalConfigPath?: string | undefined;
|
|
31
|
+
onFleetBroadcaster?: ((fn: () => Promise<void>) => void) | undefined;
|
|
43
32
|
}
|
|
33
|
+
/** CLI adapter around the canonical EventBus→WebSocket subscription graph. */
|
|
44
34
|
export declare function createSetupEvents(deps: SetupEventsDeps): () => void;
|
|
45
35
|
//# sourceMappingURL=setup-events.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"setup-events.d.ts","sourceRoot":"","sources":["../../src/webui-server/setup-events.ts"],"names":[],"mappings":"AAAA
|
|
1
|
+
{"version":3,"file":"setup-events.d.ts","sourceRoot":"","sources":["../../src/webui-server/setup-events.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,OAAO,EAAE,MAAM,wBAAwB,CAAC;AACtD,OAAO,KAAK,E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AC,OAAO,yBAAyB,CAAC,CAAC,CAAC,CAAC,CAAC;IAC5D,kBAAkB,EAAE,KAAK,CAAC,MAAM,IAAI,CAAC,CAAC;IACtC,gBAAgB,CAAC,EAAE,MAAM,GAAG,SAAS,CAAC;IACtC,kBAAkB,CAAC,EAAE,CAAC,CAAC,EAAE,EAAE,MAAM,OAAO,CAAC,IAAI,CAAC,KAAK,IAAI,CAAC,GAAG,SAAS,CAAC;CACtE;AAED,8EAA8E;AAC9E,wBAAgB,iBAAiB,CAAC,IAAI,EAAE,eAAe,GAAG,MAAM,IAAI,CA6EnE"}
|
|
@@ -1,86 +1,2 @@
|
|
|
1
|
-
|
|
2
|
-
import { type CreateHttpServerOptions } from '@wrongstack/webui-server';
|
|
3
|
-
/**
|
|
4
|
-
* PR 6 of Issue #30 (webui-server 8-PR refactor):
|
|
5
|
-
* dist discovery + HTTP server bring-up.
|
|
6
|
-
*
|
|
7
|
-
* Before this PR, the `runWebUI` body inlined five lines
|
|
8
|
-
* that resolved the webui package's `dist` directory via
|
|
9
|
-
* `createRequire(import.meta.url)` and handed the path to
|
|
10
|
-
* `createHttpServer`. If the webui package wasn't built,
|
|
11
|
-
* the inline try/catch silently degraded to WS-only.
|
|
12
|
-
*
|
|
13
|
-
* After this PR, the dist-resolution lives in
|
|
14
|
-
* `webui-server/static-serve.ts` and the only thing
|
|
15
|
-
* `runWebUI` does is call `startStaticServe({ host,
|
|
16
|
-
* httpPort, wsPort, globalRoot })`. The function returns
|
|
17
|
-
* the listening `Server` and its real `port` (the OS
|
|
18
|
-
* may reassign if the requested port was in use), or
|
|
19
|
-
* `null` when the webui package is unbuilt.
|
|
20
|
-
*
|
|
21
|
-
* The try/catch around the require resolution stays
|
|
22
|
-
* inside this module so the runWebUI body does not have
|
|
23
|
-
* to think about webui's build state at all.
|
|
24
|
-
*/
|
|
25
|
-
export interface StaticServeHandle {
|
|
26
|
-
server: Server;
|
|
27
|
-
port: number;
|
|
28
|
-
}
|
|
29
|
-
export interface StaticServeOptions {
|
|
30
|
-
host: string;
|
|
31
|
-
httpPort: number;
|
|
32
|
-
wsPort: number;
|
|
33
|
-
globalRoot: string;
|
|
34
|
-
/** Explicit frontend build. Omitted for the regular @wrongstack/webui app. */
|
|
35
|
-
distDir?: string | undefined;
|
|
36
|
-
/** Push-on-write hook for `POST /api/fleet/ping` (immediate fleet re-broadcast). */
|
|
37
|
-
onFleetPing?: (() => void) | undefined;
|
|
38
|
-
/** TechStack HTTP job events projected to the embedded WebSocket server. */
|
|
39
|
-
onTechStackEvent?: ((event: import('@wrongstack/webui-server').WSServerMessage) => void) | undefined;
|
|
40
|
-
/**
|
|
41
|
-
* Live provider access for TechStack's LLM research stage. Omitting it
|
|
42
|
-
* leaves `analyze` deterministic — so this must be threaded here as well as
|
|
43
|
-
* in the standalone `start-webui` server, or the CLI-hosted WebUI silently
|
|
44
|
-
* loses LLM analysis while the standalone one has it.
|
|
45
|
-
*/
|
|
46
|
-
getLlm?: (() => {
|
|
47
|
-
provider: import('@wrongstack/core').Provider;
|
|
48
|
-
model: string;
|
|
49
|
-
} | undefined) | undefined;
|
|
50
|
-
/** Active target project root for TechStack and CodeMap APIs. */
|
|
51
|
-
projectRoot?: string | undefined;
|
|
52
|
-
/** Public browser-facing WS URL injected into the React app. */
|
|
53
|
-
publicWsUrl?: string | undefined;
|
|
54
|
-
/**
|
|
55
|
-
* Shared auth token for `/ws-auth` and `/api/*` endpoints. Required for
|
|
56
|
-
* the cookie-based auth flow: the frontend extracts this from the URL,
|
|
57
|
-
* calls `/ws-auth?token=...` to get an HttpOnly cookie, then uses the
|
|
58
|
-
* cookie for subsequent WS upgrades (closing C-598 query-string exposure).
|
|
59
|
-
*/
|
|
60
|
-
apiToken?: string | undefined;
|
|
61
|
-
/** Force token auth even when the server binds to loopback. */
|
|
62
|
-
requireToken?: boolean | undefined;
|
|
63
|
-
}
|
|
64
|
-
/**
|
|
65
|
-
* Resolve the webui package's built `dist` directory.
|
|
66
|
-
*
|
|
67
|
-
* Returns the absolute path, or `null` if the package's
|
|
68
|
-
* server entry can't be resolved (webui not built). This
|
|
69
|
-
* is the one piece of `startStaticServe` that touches the
|
|
70
|
-
* module tree, so it lives behind its own function: tests
|
|
71
|
-
* can exercise the resolution (and stub it) without
|
|
72
|
-
* binding a socket.
|
|
73
|
-
*/
|
|
74
|
-
export declare function resolveDistDir(explicitDistDir?: string): string | null;
|
|
75
|
-
/**
|
|
76
|
-
* Injectable seams for `startStaticServe`. Both default to
|
|
77
|
-
* the real implementations; tests override them to assert
|
|
78
|
-
* the wiring without resolving the webui package or binding
|
|
79
|
-
* a real port.
|
|
80
|
-
*/
|
|
81
|
-
export interface StaticServeDeps {
|
|
82
|
-
resolveDist?: (explicitDistDir?: string) => string | null;
|
|
83
|
-
createServer?: (opts: CreateHttpServerOptions) => Server;
|
|
84
|
-
}
|
|
85
|
-
export declare function startStaticServe(opts: StaticServeOptions, deps?: StaticServeDeps): StaticServeHandle | null;
|
|
1
|
+
export { ensureDistDir, resolveDistDir, startStaticServe, type EnsureDistDeps, type ResolveDistOptions, type StaticServeDeps, type StaticServeHandle, type StaticServeOptions, } from '@wrongstack/webui-server';
|
|
86
2
|
//# sourceMappingURL=static-serve.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"static-serve.d.ts","sourceRoot":"","sources":["../../src/webui-server/static-serve.ts"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"static-serve.d.ts","sourceRoot":"","sources":["../../src/webui-server/static-serve.ts"],"names":[],"mappings":"AAAA,OAAO,EACL,aAAa,EACb,cAAc,EACd,gBAAgB,EAChB,KAAK,cAAc,EACnB,KAAK,kBAAkB,EACvB,KAAK,eAAe,EACpB,KAAK,iBAAiB,EACtB,KAAK,kBAAkB,GACxB,MAAM,0BAA0B,CAAC"}
|
|
@@ -1,49 +1,2 @@
|
|
|
1
|
-
|
|
2
|
-
* Server-side stream coalescing for the CLI WebUI bridge.
|
|
3
|
-
*
|
|
4
|
-
* Coalesces high-volume live events (provider text/thinking deltas, tool
|
|
5
|
-
* progress) before they hit every connected browser tab. The frontend also
|
|
6
|
-
* coalesces per animation frame, but without this layer long streams still
|
|
7
|
-
* create one WebSocket message per provider token/tool progress event.
|
|
8
|
-
*
|
|
9
|
-
* PR 9 of Issue #30: extracted from `webui-server.ts`.
|
|
10
|
-
*/
|
|
11
|
-
export interface StreamCoalescerDeps {
|
|
12
|
-
/** Send a message to every connected client (webui-server's `broadcast`). */
|
|
13
|
-
broadcast: (msg: {
|
|
14
|
-
type: string;
|
|
15
|
-
payload: unknown;
|
|
16
|
-
}) => void;
|
|
17
|
-
/** Stamp a payload with the live session id (webui-server's `sessionPayload`). */
|
|
18
|
-
sessionPayload: <T extends Record<string, unknown>>(payload: T) => T & {
|
|
19
|
-
sessionId: string;
|
|
20
|
-
};
|
|
21
|
-
}
|
|
22
|
-
export interface ToolProgressPayload {
|
|
23
|
-
sessionId?: string | undefined;
|
|
24
|
-
traceId?: string | undefined;
|
|
25
|
-
agentId?: string | undefined;
|
|
26
|
-
agentName?: string | undefined;
|
|
27
|
-
id: string;
|
|
28
|
-
name: string;
|
|
29
|
-
event: {
|
|
30
|
-
type?: string | undefined;
|
|
31
|
-
text?: string | undefined;
|
|
32
|
-
data?: Record<string, unknown> | undefined;
|
|
33
|
-
path?: string | undefined;
|
|
34
|
-
operation?: 'write' | 'edit' | 'delete' | 'rename' | undefined;
|
|
35
|
-
line?: number | undefined;
|
|
36
|
-
endLine?: number | undefined;
|
|
37
|
-
};
|
|
38
|
-
}
|
|
39
|
-
export interface StreamCoalescer {
|
|
40
|
-
queueTextDelta(text: string, sessionId?: string | undefined): void;
|
|
41
|
-
queueThinkingDelta(text: string, sessionId?: string | undefined): void;
|
|
42
|
-
queueToolProgress(payload: ToolProgressPayload): void;
|
|
43
|
-
/** Flush a pending thinking buffer (text deltas interleave with thinking). */
|
|
44
|
-
flushThinkingDelta(): void;
|
|
45
|
-
/** Flush every pending buffer — call at iteration boundaries and shutdown. */
|
|
46
|
-
flushAllStreamBuffers(): void;
|
|
47
|
-
}
|
|
48
|
-
export declare function createStreamCoalescer(deps: StreamCoalescerDeps): StreamCoalescer;
|
|
1
|
+
export { createStreamCoalescer, type StreamCoalescer, type StreamCoalescerDeps, type ToolProgressPayload, } from '@wrongstack/webui-server';
|
|
49
2
|
//# sourceMappingURL=stream-coalescer.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"stream-coalescer.d.ts","sourceRoot":"","sources":["../../src/webui-server/stream-coalescer.ts"],"names":[],"mappings":"AAAA
|
|
1
|
+
{"version":3,"file":"stream-coalescer.d.ts","sourceRoot":"","sources":["../../src/webui-server/stream-coalescer.ts"],"names":[],"mappings":"AAAA,OAAO,EACL,qBAAqB,EACrB,KAAK,eAAe,EACpB,KAAK,mBAAmB,EACxB,KAAK,mBAAmB,GACzB,MAAM,0BAA0B,CAAC"}
|
package/dist/webui-server.d.ts
CHANGED
|
@@ -1,13 +1,14 @@
|
|
|
1
|
-
import type { Agent
|
|
1
|
+
import type { Agent } from '@wrongstack/core/agent';
|
|
2
|
+
import type { BrainArbiter } from '@wrongstack/core/coordination';
|
|
3
|
+
import type { BrainAutoRisk } from '@wrongstack/core/execution';
|
|
4
|
+
import type { EventBus } from '@wrongstack/core/kernel';
|
|
5
|
+
import type { MemoryPort, ModelsRegistry, ModeStore, PromptLoader, SkillLoader } from '@wrongstack/core/types';
|
|
6
|
+
import type { SessionStore, SessionWriter } from '@wrongstack/core/types';
|
|
7
|
+
import { type TrustBoundary } from '@wrongstack/core/security';
|
|
2
8
|
import type { MCPRegistry } from '@wrongstack/mcp';
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
}
|
|
7
|
-
export interface WSClientMessage {
|
|
8
|
-
type: string;
|
|
9
|
-
payload?: unknown | undefined;
|
|
10
|
-
}
|
|
9
|
+
import type { WSClientMessage as EmbeddedWSClientMessage, WSServerMessage as EmbeddedWSServerMessage } from './webui-server/contracts.js';
|
|
10
|
+
export type WSClientMessage = EmbeddedWSClientMessage;
|
|
11
|
+
export type WSServerMessage = EmbeddedWSServerMessage;
|
|
11
12
|
/**
|
|
12
13
|
* CLI-shaped webui options. Distinct from the standalone
|
|
13
14
|
* `WebUIOptions` exported by `@wrongstack/webui-server` (which is the
|
|
@@ -21,11 +22,13 @@ export interface WSClientMessage {
|
|
|
21
22
|
* was a real source of confusion when reading this file).
|
|
22
23
|
*/
|
|
23
24
|
export interface CliWebUIOptions {
|
|
25
|
+
/** Policy authority for privileged WebUI actions. */
|
|
26
|
+
trustBoundary?: TrustBoundary | undefined;
|
|
24
27
|
agent: Agent;
|
|
25
28
|
events: EventBus;
|
|
26
29
|
statusTracker?: import('@wrongstack/core/coordination').ProviderModelStatusTracker | undefined;
|
|
27
30
|
session: SessionWriter;
|
|
28
|
-
/**
|
|
31
|
+
/** HTTP port (WS shares it — single-port design). Defaults to 3456. */
|
|
29
32
|
port?: number | undefined;
|
|
30
33
|
/** Host/interface to bind HTTP and WS servers. Defaults to 127.0.0.1. */
|
|
31
34
|
host?: string | undefined;
|
|
@@ -46,7 +49,7 @@ export interface CliWebUIOptions {
|
|
|
46
49
|
/** Project root — recorded in the running-instance registry. */
|
|
47
50
|
projectRoot?: string | undefined;
|
|
48
51
|
/** Full app config, used for HQ client publishing settings. */
|
|
49
|
-
appConfig?: import('@wrongstack/core').Config | undefined;
|
|
52
|
+
appConfig?: import('@wrongstack/core/types').Config | undefined;
|
|
50
53
|
/** Pop the browser open to the served URL once the frontend is ready. */
|
|
51
54
|
open?: boolean | undefined;
|
|
52
55
|
/** Read-only worker transcript snapshot used for F5/reconnect replay. */
|
|
@@ -85,7 +88,7 @@ export interface CliWebUIOptions {
|
|
|
85
88
|
* through REPL/TUI or the `--eternal` flag (the WebUI has no slash
|
|
86
89
|
* command dispatch surface yet).
|
|
87
90
|
*/
|
|
88
|
-
subscribeEternalIteration?: ((fn: (entry: import('@wrongstack/core').JournalEntry) => void) => () => void) | undefined;
|
|
91
|
+
subscribeEternalIteration?: ((fn: (entry: import('@wrongstack/core/goal').JournalEntry) => void) => () => void) | undefined;
|
|
89
92
|
/** Callback to invoke when the WebUI is shut down by a client request. */
|
|
90
93
|
onExit?: (() => void) | undefined;
|
|
91
94
|
/**
|
|
@@ -100,7 +103,7 @@ export interface CliWebUIOptions {
|
|
|
100
103
|
* When present, the WebUI exposes the "New SDD Project" wizard, which runs the
|
|
101
104
|
* same multi-agent fleet as `/sdd execute`. Omitted → wizard is unavailable.
|
|
102
105
|
*/
|
|
103
|
-
sddSubagentFactory?: import('@wrongstack/core').AgentFactory | undefined;
|
|
106
|
+
sddSubagentFactory?: import('@wrongstack/core/coordination').AgentFactory | undefined;
|
|
104
107
|
/** Session store — enables session.resume and session.delete from the WebUI. */
|
|
105
108
|
sessionStore?: SessionStore | undefined;
|
|
106
109
|
/** Host Brain arbiter (same instance bound at TOKENS.BrainArbiter). */
|
|
@@ -108,12 +111,12 @@ export interface CliWebUIOptions {
|
|
|
108
111
|
/** Host brain settings — the SAME object /brain mutates (shared ceiling + mode). */
|
|
109
112
|
brainSettings?: {
|
|
110
113
|
maxAutoRisk: BrainAutoRisk;
|
|
111
|
-
mode?: import('@wrongstack/core').BrainEscalationMode | undefined;
|
|
114
|
+
mode?: import('@wrongstack/core/coordination').BrainEscalationMode | undefined;
|
|
112
115
|
poolLabels?: string[] | undefined;
|
|
113
116
|
councilLabels?: string[] | undefined;
|
|
114
117
|
} | undefined;
|
|
115
118
|
/** Live-editable Brain config owner (brain.config.get/set handlers). */
|
|
116
|
-
brainRuntime?: import('@wrongstack/core').BrainRuntime | undefined;
|
|
119
|
+
brainRuntime?: import('@wrongstack/core/execution').BrainRuntime | undefined;
|
|
117
120
|
/** Read the host's rolling brain decision log (newest last, ≤20 entries). */
|
|
118
121
|
getBrainLog?: (() => Array<{
|
|
119
122
|
at: number;
|
|
@@ -133,8 +136,8 @@ export interface CliWebUIOptions {
|
|
|
133
136
|
* the session that is now actually being written.
|
|
134
137
|
*/
|
|
135
138
|
onSessionSwapped?: ((newSessionId: string) => void) | undefined;
|
|
136
|
-
/** Memory store — enables the Memory panel + chat `/memory` (memory.list) and the structured memory.
|
|
137
|
-
memoryStore?:
|
|
139
|
+
/** Memory store — enables the Memory panel + chat `/memory` (memory.list) and the structured memory.sage.* operations. */
|
|
140
|
+
memoryStore?: MemoryPort | undefined;
|
|
138
141
|
/** Skill loader — enables the SkillsPanel (skills.list). */
|
|
139
142
|
skillLoader?: SkillLoader | undefined;
|
|
140
143
|
/** Prompt loader — enables the prompt library (prompts.list/search/content/favorite/create). */
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"webui-server.d.ts","sourceRoot":"","sources":["../src/webui-server.ts"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"webui-server.d.ts","sourceRoot":"","sources":["../src/webui-server.ts"],"names":[],"mappings":"AAiDA,OAAO,KAAK,EAAE,KAAK,EAAW,MAAM,wBAAwB,CAAC;AAC7D,OAAO,KAAK,EAAE,YAAY,EAAE,MAAM,+BAA+B,CAAC;AAClE,OAAO,KAAK,EAAE,aAAa,EAAE,MAAM,4BAA4B,CAAC;AAChE,OAAO,KAAK,EAAE,QAAQ,EAAE,MAAM,yBAAyB,CAAC;AACxD,OAAO,KAAK,EAAE,UAAU,EAAE,cAAc,EAAE,SAAS,EAAE,YAAY,EAAkB,WAAW,EAAE,MAAM,wBAAwB,CAAC;AAC/H,OAAO,KAAK,EAAE,YAAY,EAAE,aAAa,EAAE,MAAM,wBAAwB,CAAC;AAK1E,OAAO,EAAoC,KAAK,aAAa,EAAE,MAAM,2BAA2B,CAAC;AAGjG,OAAO,KAAK,EAAE,WAAW,EAAE,MAAM,iBAAiB,CAAC;AAkCnD,OAAO,KAAK,EACV,eAAe,IAAI,uBAAuB,EAC1C,eAAe,IAAI,uBAAuB,EAC3C,MAAM,6BAA6B,CAAC;AACrC,MAAM,MAAM,eAAe,GAAG,uBAAuB,CAAC;AACtD,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AC,OAAO,EAAE,OAAO,KAAK,IAAI,CAAC,GAAG,SAAS,CAAC;IACxD,8EAA8E;IAC9E,gBAAgB,CAAC,EACb,CAAC,CACC,WAAW,EAAE,MAAM,EACnB,IAAI,CAAC,EAAE;QACL,QAAQ,CAAC,EAAE,MAAM,GAAG,SAAS,CAAC;QAC9B,KAAK,CAAC,EAAE,MAAM,GAAG,SAAS,CAAC;QAC3B,cAAc,CAAC,EAAE,MAAM,EAAE,GAAG,SAAS,CAAC;QACtC,eAAe,CAAC,EAAE,MAAM,GAAG,SAAS,CAAC;QACrC,MAAM,CAAC,EAAE,MAAM,EAAE,GAAG,SAAS,CAAC;QAC9B,KAAK,CAAC,EAAE,MAAM,EAAE,GAAG,SAAS,CAAC;QAC7B,IAAI,CAAC,EAAE,MAAM,GAAG,SAAS,CAAC;QAC1B,mBAAmB,CAAC,EAAE,SAAS,MAAM,EAAE,GAAG,SAAS,CAAC;QACpD,MAAM,CAAC,EACH,CAAC,CAAC,MAAM,EAAE;YACR,MAAM,EAAE,WAAW,GAAG,QAAQ,CAAC;YAC/B,MAAM,CAAC,EAAE,MAAM,GAAG,SAAS,CAAC;YAC5B,KAAK,CAAC,EAAE,MAAM,GAAG,SAAS,CAAC;SAC5B,KAAK,IAAI,GAAG,OAAO,CAAC,IAAI,CAAC,CAAC,GAC3B,SAAS,CAAC;KACf,KACE,OAAO,CAAC,MAAM,CAAC,CAAC,GACrB,SAAS,CAAC;CACf;AAKD,wBAAsB,QAAQ,CAAC,IAAI,EAAE,eAAe,GAAG,OAAO,CAAC,IAAI,CAAC,CAk+BnE"}
|
|
@@ -1,4 +1,7 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import { BrainDecisionQueue, type BrainEscalationMode, ObservableBrainArbiter } from '@wrongstack/core/coordination';
|
|
2
|
+
import { type BrainAutoRisk, type BrainRuntime } from '@wrongstack/core/execution';
|
|
3
|
+
import { type ToolRegistry } from '@wrongstack/core/registry';
|
|
4
|
+
import { type Config, type Provider, type SecretVault, type SessionWriter } from '@wrongstack/core/types';
|
|
2
5
|
import { MultiAgentHost } from '../multi-agent.js';
|
|
3
6
|
type AnyObj = any;
|
|
4
7
|
/**
|
|
@@ -32,6 +35,7 @@ export interface BrainOrchestrationDeps {
|
|
|
32
35
|
modelsRegistry: AnyObj;
|
|
33
36
|
promptBuilder: AnyObj;
|
|
34
37
|
tokenCounter: AnyObj;
|
|
38
|
+
skillLoader: import('@wrongstack/core/types').SkillLoader | undefined;
|
|
35
39
|
projectRoot: string;
|
|
36
40
|
cwd: string;
|
|
37
41
|
wpaths: AnyObj;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"brain-and-orchestration.d.ts","sourceRoot":"","sources":["../../src/wiring/brain-and-orchestration.ts"],"names":[],"mappings":"AACA,OAAO,
|
|
1
|
+
{"version":3,"file":"brain-and-orchestration.d.ts","sourceRoot":"","sources":["../../src/wiring/brain-and-orchestration.ts"],"names":[],"mappings":"AACA,OAAO,EAEL,kBAAkB,EAClB,KAAK,mBAAmB,EAKxB,sBAAsB,EAEvB,MAAM,+BAA+B,CAAC;AACvC,OAAO,EACL,KAAK,aAAa,EAClB,KAAK,YAAY,EAGlB,MAAM,4BAA4B,CAAC;AAEpC,OAAO,EAAE,KAAK,YAAY,EAAE,MAAM,2BAA2B,CAAC;AAE9D,OAAO,EACL,KAAK,MAAM,EACX,KAAK,QAAQ,EACb,KAAK,WAAW,EAChB,KAAK,aAAa,EACnB,MAAM,wBAAwB,CAAC;AAEhC,OAAO,EAAE,cAAc,EAAE,MAAM,mBAAmB,CAAC;AAUnD,KAAK,MAAM,GAAG,GAAG,CAAC;AAElB;;;;GAIG;AACH,MAAM,WAAW,oBAAoB;IACnC,WAAW,EAAE,aAAa,CAAC;IAC3B,iFAAiF;IACjF,IAAI,EAAE,mBAAmB,CAAC;IAC1B,yFAAyF;IACzF,QAAQ,CAAC,UAAU,EAAE,MAAM,EAAE,CAAC;IAC9B,oEAAoE;IACpE,QAAQ,CAAC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,UAAU,EAAE,MAAM,CAAC;IACnB,uFAAuF;IACvF,MAAM,CAAC,EAAE,MAAM,GAAG,SAAS,CAAC;IAC5B,6DAA6D;IAC7D,aAAa,CAAC,EAAE,OAAO,+BAA+B,EAAE,0BAA0B,GAAG,SAAS,CAAC;CAChG;AAED,MAAM,WAAW,wBAAwB;IACvC,KAAK,EAAE,sBAAsB,CAAC;IAC9B,QAAQ,EAAE,MAAM,EAAE,CAAC;IACnB,aAAa,EAAE,oBAAoB,CAAC;IACpC,2EAA2E;IAC3E,YAAY,EAAE,YAAY,CAAC;IAC3B,UAAU,EAAE,kBAAkB,CAAC;IAC/B,cAAc,EAAE,cAAc,CAAC;IAC/B,gBAAgB,EAAE,MAAM,CAAC;IACzB,cAAc,EAAE;QAAE,UAAU,CAAC,EAAE,MAAM,CAAC;QAAC,QAAQ,CAAC,EAAE,MAAM,CAAC;QAAC,KAAK,CAAC,EAAE,MAAM,CAAA;KAAE,CAAC;CAC5E;AAED;;;;;;;;GAQG;AACH,wBAAgB,0BAA0B,CAAC,IAAI,EAAE,sBAAsB,GAAG,wBAAwB,CAgVjG"}
|
|
@@ -15,7 +15,8 @@
|
|
|
15
15
|
* serializes every run on one mutex (the SQLite writer is synchronous, so
|
|
16
16
|
* concurrent runs would risk `SQLITE_BUSY`) and debounces per file.
|
|
17
17
|
*/
|
|
18
|
-
import type { AgentPipelines, Context
|
|
18
|
+
import type { AgentPipelines, Context } from '@wrongstack/core/agent';
|
|
19
|
+
import type { IndexingConfig, Logger } from '@wrongstack/core/types';
|
|
19
20
|
export interface CodebaseIndexingDeps {
|
|
20
21
|
config: {
|
|
21
22
|
indexing?: IndexingConfig | undefined;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"codebase-index.d.ts","sourceRoot":"","sources":["../../src/wiring/codebase-index.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;;;GAgBG;AAIH,OAAO,KAAK,
|
|
1
|
+
{"version":3,"file":"codebase-index.d.ts","sourceRoot":"","sources":["../../src/wiring/codebase-index.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;;;GAgBG;AAIH,OAAO,KAAK,EAAE,cAAc,EAAE,OAAO,EAAE,MAAM,wBAAwB,CAAC;AACtE,OAAO,KAAK,EAAE,cAAc,EAAE,MAAM,EAAE,MAAM,wBAAwB,CAAC;AA8BrE,MAAM,WAAW,oBAAoB;IACnC,MAAM,EAAE;QAAE,QAAQ,CAAC,EAAE,cAAc,GAAG,SAAS,CAAA;KAAE,CAAC;IAClD,OAAO,EAAE,OAAO,CAAC;IACjB,SAAS,EAAE,cAAc,CAAC;IAC1B,WAAW,EAAE,MAAM,CAAC;IACpB,MAAM,EAAE,MAAM,CAAC;CAChB;AAED;;;GAGG;AACH,wBAAsB,qBAAqB,CAAC,IAAI,EAAE,oBAAoB,GAAG,OAAO,CAAC,MAAM,IAAI,CAAC,CAqG3F"}
|
|
@@ -0,0 +1,16 @@
|
|
|
1
|
+
/** Terminal and tool-execution adapters used by the slash-command host. */
|
|
2
|
+
import { type Agent } from '@wrongstack/core/agent';
|
|
3
|
+
import { type ToolRegistry } from '@wrongstack/core/registry';
|
|
4
|
+
import type { ReadlineInputReader } from '../input-reader.js';
|
|
5
|
+
import type { BuiltinSlashCommandDeps } from './slash-commands.js';
|
|
6
|
+
type SlashCommandDeps = BuiltinSlashCommandDeps;
|
|
7
|
+
export declare function createCommandHostAdapters(input: {
|
|
8
|
+
agent: Agent;
|
|
9
|
+
toolRegistry: ToolRegistry;
|
|
10
|
+
interruptController: {
|
|
11
|
+
confirmSlash?: ((question: string, defaultYes: boolean) => Promise<boolean | null>) | undefined;
|
|
12
|
+
};
|
|
13
|
+
reader: ReadlineInputReader;
|
|
14
|
+
}): Pick<SlashCommandDeps, 'executeTool' | 'confirm'>;
|
|
15
|
+
export {};
|
|
16
|
+
//# sourceMappingURL=command-host-adapters.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"command-host-adapters.d.ts","sourceRoot":"","sources":["../../src/wiring/command-host-adapters.ts"],"names":[],"mappings":"AAAA,2EAA2E;AAC3E,OAAO,EAAE,KAAK,KAAK,EAAE,MAAM,wBAAwB,CAAC;AAEpD,OAAO,EAAE,KAAK,YAAY,EAAE,MAAM,2BAA2B,CAAC;AAC9D,OAAO,KAAK,EAAE,mBAAmB,EAAE,MAAM,oBAAoB,CAAC;AAC9D,OAAO,KAAK,EAAE,uBAAuB,EAAE,MAAM,qBAAqB,CAAC;AAEnE,KAAK,gBAAgB,GAAG,uBAAuB,CAAC;AAEhD,wBAAgB,yBAAyB,CAAC,KAAK,EAAE;IAC/C,KAAK,EAAE,KAAK,CAAC;IACb,YAAY,EAAE,YAAY,CAAC;IAC3B,mBAAmB,EAAE;QACnB,YAAY,CAAC,EACT,CAAC,CAAC,QAAQ,EAAE,MAAM,EAAE,UAAU,EAAE,OAAO,KAAK,OAAO,CAAC,OAAO,GAAG,IAAI,CAAC,CAAC,GACpE,SAAS,CAAC;KACf,CAAC;IACF,MAAM,EAAE,mBAAmB,CAAC;CAC7B,GAAG,IAAI,CAAC,gBAAgB,EAAE,aAAa,GAAG,SAAS,CAAC,CA4CpD"}
|
|
@@ -0,0 +1,86 @@
|
|
|
1
|
+
/** Mutable command-host state created after the runtime fleet is available. */
|
|
2
|
+
import { type Config, type SessionWriter } from '@wrongstack/core/types';
|
|
3
|
+
import { type BrainArbiter, type Director } from '@wrongstack/core/coordination';
|
|
4
|
+
import { type EventBus } from '@wrongstack/core/kernel';
|
|
5
|
+
import { type WstackPaths } from '@wrongstack/core/utils';
|
|
6
|
+
import { SddRunRegistry } from '@wrongstack/sdd';
|
|
7
|
+
import type { HqCommandController } from '../hq-command-controller.js';
|
|
8
|
+
import type { MultiAgentHost } from '../multi-agent.js';
|
|
9
|
+
import type { ReadlineInputReader } from '../input-reader.js';
|
|
10
|
+
import type { TerminalRenderer } from '../renderer.js';
|
|
11
|
+
export interface CommandHostStateInput {
|
|
12
|
+
getConfig: () => Config;
|
|
13
|
+
setConfig: (config: Config) => void;
|
|
14
|
+
getDirector: () => Director | null;
|
|
15
|
+
hqCommandController: HqCommandController;
|
|
16
|
+
multiAgentHost: MultiAgentHost;
|
|
17
|
+
events: EventBus;
|
|
18
|
+
sessionRef: {
|
|
19
|
+
current: SessionWriter | undefined;
|
|
20
|
+
};
|
|
21
|
+
session: SessionWriter;
|
|
22
|
+
paths: WstackPaths;
|
|
23
|
+
projectRoot: string;
|
|
24
|
+
brain: BrainArbiter | undefined;
|
|
25
|
+
renderer: TerminalRenderer;
|
|
26
|
+
reader: ReadlineInputReader;
|
|
27
|
+
permissionPolicy: {
|
|
28
|
+
setYolo?(enabled: boolean): void;
|
|
29
|
+
getYolo?(): boolean;
|
|
30
|
+
};
|
|
31
|
+
}
|
|
32
|
+
export declare function setupCommandHostState(input: CommandHostStateInput): Promise<{
|
|
33
|
+
fleetStreamController: import("./controllers.js").FleetStreamController;
|
|
34
|
+
interruptController: import("./controllers.js").InterruptController;
|
|
35
|
+
enhanceController: import("./controllers.js").EnhanceController;
|
|
36
|
+
statuslineConfigDeps: import("./controllers.js").StatuslineConfigDeps;
|
|
37
|
+
statuslineHiddenItems: ("auto_proceed" | "autonomy" | "brain" | "breaker" | "cache" | "context" | "cost" | "cpu" | "debug_stream" | "elapsed" | "enhance" | "eternal_stage" | "fleet" | "fleet_agents" | "git" | "goal" | "hint" | "index" | "mailbox" | "mode" | "model" | "next_steps" | "plan" | "processes" | "project" | "queue" | "sage" | "sessions" | "state" | "tasks" | "todos" | "token_saving" | "tokens" | "tools" | "version" | "working_dir" | "yolo")[];
|
|
38
|
+
getCurrentHiddenItems: () => ("auto_proceed" | "autonomy" | "brain" | "breaker" | "cache" | "context" | "cost" | "cpu" | "debug_stream" | "elapsed" | "enhance" | "eternal_stage" | "fleet" | "fleet_agents" | "git" | "goal" | "hint" | "index" | "mailbox" | "mode" | "model" | "next_steps" | "plan" | "processes" | "project" | "queue" | "sage" | "sessions" | "state" | "tasks" | "todos" | "token_saving" | "tokens" | "tools" | "version" | "working_dir" | "yolo")[];
|
|
39
|
+
setStatuslineHiddenItems: (items: ("auto_proceed" | "autonomy" | "brain" | "breaker" | "cache" | "context" | "cost" | "cpu" | "debug_stream" | "elapsed" | "enhance" | "eternal_stage" | "fleet" | "fleet_agents" | "git" | "goal" | "hint" | "index" | "mailbox" | "mode" | "model" | "next_steps" | "plan" | "processes" | "project" | "queue" | "sage" | "sessions" | "state" | "tasks" | "todos" | "token_saving" | "tokens" | "tools" | "version" | "working_dir" | "yolo")[]) => void;
|
|
40
|
+
saveStatuslineHiddenItems: (items: ("auto_proceed" | "autonomy" | "brain" | "breaker" | "cache" | "context" | "cost" | "cpu" | "debug_stream" | "elapsed" | "enhance" | "eternal_stage" | "fleet" | "fleet_agents" | "git" | "goal" | "hint" | "index" | "mailbox" | "mode" | "model" | "next_steps" | "plan" | "processes" | "project" | "queue" | "sage" | "sessions" | "state" | "tasks" | "todos" | "token_saving" | "tokens" | "tools" | "version" | "working_dir" | "yolo")[]) => Promise<void>;
|
|
41
|
+
agentsMonitorController: import("./controllers.js").AgentsMonitorController;
|
|
42
|
+
onPanelOpen: {
|
|
43
|
+
current: ((action: string) => boolean) | null;
|
|
44
|
+
};
|
|
45
|
+
goalHost: import("../goal-host.js").GoalHostHooks;
|
|
46
|
+
coordinatorController: {
|
|
47
|
+
onCoordinatorStart?: ((goal?: string) => void) | undefined;
|
|
48
|
+
onCoordinatorStop?: (() => void) | undefined;
|
|
49
|
+
onCoordinatorTasks?: (() => Promise<Array<{
|
|
50
|
+
id: string;
|
|
51
|
+
title: string;
|
|
52
|
+
priority: string;
|
|
53
|
+
tags: string[];
|
|
54
|
+
}> | null>) | undefined;
|
|
55
|
+
onCoordinatorClaim?: ((taskId: string) => Promise<string | null | {
|
|
56
|
+
description: string;
|
|
57
|
+
}>) | undefined;
|
|
58
|
+
onCoordinatorComplete?: ((taskId: string, result?: string) => Promise<string | null>) | undefined;
|
|
59
|
+
onCoordinatorFail?: ((taskId: string, error: string) => Promise<string | null>) | undefined;
|
|
60
|
+
onCoordinatorStatus?: (() => Promise<{
|
|
61
|
+
goals: {
|
|
62
|
+
total: number;
|
|
63
|
+
done: number;
|
|
64
|
+
pending: number;
|
|
65
|
+
failed: number;
|
|
66
|
+
};
|
|
67
|
+
dag: {
|
|
68
|
+
running: number;
|
|
69
|
+
ready: number;
|
|
70
|
+
done: number;
|
|
71
|
+
failed: number;
|
|
72
|
+
};
|
|
73
|
+
auction: {
|
|
74
|
+
pending: number;
|
|
75
|
+
inProgress: number;
|
|
76
|
+
};
|
|
77
|
+
} | null>) | undefined;
|
|
78
|
+
};
|
|
79
|
+
setYoloMode: (enabled?: boolean) => boolean;
|
|
80
|
+
secretInputController: {
|
|
81
|
+
readSecret: (prompt: string) => Promise<string>;
|
|
82
|
+
readText: (prompt: string) => Promise<string>;
|
|
83
|
+
};
|
|
84
|
+
sddRunRegistry: SddRunRegistry;
|
|
85
|
+
}>;
|
|
86
|
+
//# sourceMappingURL=command-host-state.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"command-host-state.d.ts","sourceRoot":"","sources":["../../src/wiring/command-host-state.ts"],"names":[],"mappings":"AAAA,+EAA+E;AAC/E,OAAO,EAAc,KAAK,MAAM,EAAE,KAAK,aAAa,EAAE,MAAM,wBAAwB,CAAC;AACrF,OAAO,EAAE,KAAK,YAAY,EAAE,KAAK,QAAQ,EAAE,MAAM,+BAA+B,CAAC;AAEjF,OAAO,EAAE,KAAK,QAAQ,EAAE,MAAM,yBAAyB,CAAC;AAExD,OAAO,EAAE,KAAK,WAAW,EAAE,MAAM,wBAAwB,CAAC;AAC1D,OAAO,EAAE,cAAc,EAAE,MAAM,iBAAiB,CAAC;AAEjD,OAAO,KAAK,EAAE,mBAAmB,EAAE,MAAM,6BAA6B,CAAC;AACvE,OAAO,KAAK,EAAE,cAAc,EAAE,MAAM,mBAAmB,CAAC;AACxD,OAAO,KAAK,EAAE,mBAAmB,EAAE,MAAM,oBAAoB,CAAC;AAC9D,OAAO,KAAK,EAAE,gBAAgB,EAAE,MAAM,gBAAgB,CAAC;AAgBvD,MAAM,WAAW,qBAAqB;IACpC,SAAS,EAAE,MAAM,MAAM,CAAC;IACxB,SAAS,EAAE,CAAC,MAAM,EAAE,MAAM,KAAK,IAAI,CAAC;IACpC,WAAW,EAAE,MAAM,QAAQ,GAAG,IAAI,CAAC;IACnC,mBAAmB,EAAE,mBAAmB,CAAC;IACzC,cAAc,EAAE,cAAc,CAAC;IAC/B,MAAM,EAAE,QAAQ,CAAC;IACjB,UAAU,EAAE;QAAE,OAAO,EAAE,aAAa,GAAG,SAAS,CAAA;KAAE,CAAC;IACnD,OAAO,EAAE,aAAa,CAAC;IACvB,KAAK,EAAE,WAAW,CAAC;IACnB,WAAW,EAAE,MAAM,CAAC;IACpB,KAAK,EAAE,YAAY,GAAG,SAAS,CAAC;IAChC,QAAQ,EAAE,gBAAgB,CAAC;IAC3B,MAAM,EAAE,mBAAmB,CAAC;IAC5B,gBAAgB,EAAE;QAAE,OAAO,CAAC,CAAC,OAAO,EAAE,OAAO,GAAG,IAAI,CAAC;QAAC,OAAO,CAAC,IAAI,OAAO,CAAA;KAAE,CAAC;CAC7E;AAED,wBAAsB,qBAAqB,CAAC,KAAK,EAAE,qBAAqB;;;;;;;;;;;iBAwBxC,CAAC,CAAC,MAAM,EAAE,MAAM,KAAK,OAAO,CAAC,GAAG,IAAI;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;4BAYnC,OAAO,KAAG,OAAO;;6BASzB,MAAM;2BACR,MAAM;;;GA6B5B"}
|
|
@@ -7,14 +7,11 @@
|
|
|
7
7
|
* Step 2 of the cli-main/ExecutionDeps refactor plan:
|
|
8
8
|
* docs/plans/cli-main-executiondeps-refactor.md
|
|
9
9
|
*/
|
|
10
|
-
import type { Config
|
|
11
|
-
import type {
|
|
12
|
-
import {
|
|
10
|
+
import type { Config } from '@wrongstack/core/types';
|
|
11
|
+
import type { FleetChatVerbosity } from '@wrongstack/core/types';
|
|
12
|
+
import type { StatuslineConfigKey } from '../services/statusline-config.js';
|
|
13
|
+
import { type StatuslineConfig } from '../services/statusline-config.js';
|
|
13
14
|
export interface FleetStreamController {
|
|
14
|
-
/** @deprecated Mirror of `mode !== 'off'` — kept for boolean-only callers. */
|
|
15
|
-
enabled: boolean;
|
|
16
|
-
/** @deprecated Maps to `setMode(enabled ? 'full' : 'off')`. */
|
|
17
|
-
setEnabled(enabled: boolean): void;
|
|
18
15
|
/** Fleet-chat verbosity streamed into the main chat: off | full. */
|
|
19
16
|
mode: FleetChatVerbosity;
|
|
20
17
|
setMode(mode: FleetChatVerbosity): void;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"controllers.d.ts","sourceRoot":"","sources":["../../src/wiring/controllers.ts"],"names":[],"mappings":"AAAA;;;;;;;;GAQG;AAEH,OAAO,KAAK,EAAE,MAAM,EAAE,kBAAkB,EAAE,MAAM,
|
|
1
|
+
{"version":3,"file":"controllers.d.ts","sourceRoot":"","sources":["../../src/wiring/controllers.ts"],"names":[],"mappings":"AAAA;;;;;;;;GAQG;AAEH,OAAO,KAAK,EAAE,MAAM,EAAE,MAAM,wBAAwB,CAAC;AACrD,OAAO,KAAK,EAAE,kBAAkB,EAAE,MAAM,wBAAwB,CAAC;AACjE,OAAO,KAAK,EAAE,mBAAmB,EAAE,MAAM,kCAAkC,CAAC;AAC5E,OAAO,EAML,KAAK,gBAAgB,EACtB,MAAM,kCAAkC,CAAC;AAI1C,MAAM,WAAW,qBAAqB;IACpC,oEAAoE;IACpE,IAAI,EAAE,kBAAkB,CAAC;IACzB,OAAO,CAAC,IAAI,EAAE,kBAAkB,GAAG,IAAI,CAAC;CACzC;AAED,wBAAgB,2BAA2B,CAAC,WAAW,GAAE,kBAA0B,GAAG,qBAAqB,CAO1G;AAID,MAAM,WAAW,mBAAmB;IAClC,WAAW,EAAE,MAAM,OAAO,CAAC;IAC3B,u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E,CAAC,KAAK,EAAE,mBAAmB,EAAE,KAAK,OAAO,CAAC,IAAI,CAAC,CAAC;CAClE,CAAC,CAkBD"}
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { type EventBus } from '@wrongstack/core';
|
|
2
|
-
import type { DefaultLogger } from '@wrongstack/core';
|
|
1
|
+
import { type EventBus } from '@wrongstack/core/kernel';
|
|
2
|
+
import type { DefaultLogger } from '@wrongstack/core/infrastructure';
|
|
3
3
|
import type { MultiAgentHost } from '../multi-agent.js';
|
|
4
4
|
export interface SetupDepWatcherConsumersDeps {
|
|
5
5
|
dwCfg: Record<string, unknown> | undefined;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"dep-watcher.d.ts","sourceRoot":"","sources":["../../src/wiring/dep-watcher.ts"],"names":[],"mappings":"AACA,OAAO,
|
|
1
|
+
{"version":3,"file":"dep-watcher.d.ts","sourceRoot":"","sources":["../../src/wiring/dep-watcher.ts"],"names":[],"mappings":"AACA,OAAO,EAAE,KAAK,QAAQ,EAAE,MAAM,yBAAyB,CAAC;AAGxD,OAAO,KAAK,EAAE,aAAa,EAAE,MAAM,iCAAiC,CAAC;AACrE,OAAO,KAAK,EAAE,cAAc,EAAE,MAAM,mBAAmB,CAAC;AAExD,MAAM,WAAW,4BAA4B;IAC3C,KAAK,EAAE,MAAM,CAAC,MAAM,EAAE,OAAO,CAAC,GAAG,SAAS,CAAC;IAC3C,UAAU,EAAE,MAAM,CAAC;IACnB,WAAW,EAAE,MAAM,CAAC;IACpB,MAAM,EAAE,QAAQ,CAAC;IACjB,cAAc,EAAE,cAAc,CAAC;IAC/B,SAAS,EAAE,MAAM,CAAC;IAClB,MAAM,EAAE,aAAa,CAAC;IACtB,gBAAgB,EAAE,CAAC,MAAM,IAAI,CAAC,EAAE,CAAC;IACjC,WAAW,EAAE,MAAM,CAAC;CACrB;AAED;;;;;;GAMG;AACH,wBAAgB,wBAAwB,CAAC,IAAI,EAAE,4BAA4B,GAAG,IAAI,CAqFjF"}
|
|
@@ -6,7 +6,7 @@
|
|
|
6
6
|
* and `/design` is registered with the slash registry; this only installs the
|
|
7
7
|
* per-turn detection + kit-menu-injection middleware, which needs a live Context.
|
|
8
8
|
*/
|
|
9
|
-
import type { AgentPipelines, Context } from '@wrongstack/core';
|
|
9
|
+
import type { AgentPipelines, Context } from '@wrongstack/core/agent';
|
|
10
10
|
export interface InstallDesignStudioDeps {
|
|
11
11
|
pipelines: AgentPipelines;
|
|
12
12
|
context: Context;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"design-studio.d.ts","sourceRoot":"","sources":["../../src/wiring/design-studio.ts"],"names":[],"mappings":"AAAA;;;;;;;GAOG;AAEH,OAAO,KAAK,EAAE,cAAc,EAAE,OAAO,EAAE,MAAM,
|
|
1
|
+
{"version":3,"file":"design-studio.d.ts","sourceRoot":"","sources":["../../src/wiring/design-studio.ts"],"names":[],"mappings":"AAAA;;;;;;;GAOG;AAEH,OAAO,KAAK,EAAE,cAAc,EAAE,OAAO,EAAE,MAAM,wBAAwB,CAAC;AAGtE,MAAM,WAAW,uBAAuB;IACtC,SAAS,EAAE,cAAc,CAAC;IAC1B,OAAO,EAAE,OAAO,CAAC;IACjB,+EAA+E;IAC/E,OAAO,CAAC,EAAE,OAAO,GAAG,SAAS,CAAC;CAC/B;AAED,wBAAgB,mBAAmB,CAAC,IAAI,EAAE,uBAAuB,GAAG,IAAI,CAMvE"}
|
|
@@ -1,12 +1,15 @@
|
|
|
1
|
-
import { type AutonomyStage, type Config, type
|
|
1
|
+
import { type AutonomyStage, type Config, type SessionWriter } from '@wrongstack/core/types';
|
|
2
|
+
import { type Director } from '@wrongstack/core/coordination';
|
|
3
|
+
import { type EventBus } from '@wrongstack/core/kernel';
|
|
4
|
+
import { type EternalAutonomyEngine, type ParallelEternalEngine } from '@wrongstack/core/execution';
|
|
2
5
|
import { type AgentMonitorService } from '@wrongstack/core/coordination';
|
|
3
|
-
import type { WstackPaths } from '@wrongstack/core';
|
|
6
|
+
import type { WstackPaths } from '@wrongstack/core/utils';
|
|
4
7
|
/**
|
|
5
8
|
* Persistent ref for autonomy mode — set once here, read elsewhere via
|
|
6
9
|
* `autonomyModeRef.current`. Matches the shape created in cli-main.ts.
|
|
7
10
|
*/
|
|
8
11
|
export interface AutonomyModeRef {
|
|
9
|
-
current: import('../
|
|
12
|
+
current: import('../services/autonomy-mode.js').AutonomyMode;
|
|
10
13
|
}
|
|
11
14
|
export interface DirectorAutonomyDeps {
|
|
12
15
|
flags: Record<string, string | boolean>;
|
|
@@ -20,13 +23,13 @@ export interface DirectorAutonomyResult {
|
|
|
20
23
|
director: Director | null;
|
|
21
24
|
directorMode: boolean;
|
|
22
25
|
maxConcurrent: number | undefined;
|
|
23
|
-
autonomyMode: import('../
|
|
26
|
+
autonomyMode: import('../services/autonomy-mode.js').AutonomyMode;
|
|
24
27
|
nextPredictEnabled: boolean;
|
|
25
28
|
currentSuggestions: string[];
|
|
26
29
|
eternalEngine: EternalAutonomyEngine | null;
|
|
27
30
|
parallelEngine: ParallelEternalEngine | null;
|
|
28
|
-
eternalListeners: Set<(entry: import('@wrongstack/core').JournalEntry) => void>;
|
|
29
|
-
broadcastEternalIteration: (entry: import('@wrongstack/core').JournalEntry) => void;
|
|
31
|
+
eternalListeners: Set<(entry: import('@wrongstack/core/goal').JournalEntry) => void>;
|
|
32
|
+
broadcastEternalIteration: (entry: import('@wrongstack/core/goal').JournalEntry) => void;
|
|
30
33
|
stageListeners: Set<(stage: AutonomyStage) => void>;
|
|
31
34
|
broadcastAutonomyStage: (stage: AutonomyStage) => void;
|
|
32
35
|
fleetRoot: string | undefined;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"director-setup.d.ts","sourceRoot":"","sources":["../../src/wiring/director-setup.ts"],"names":[],"mappings":"AACA,OAAO,
|
|
1
|
+
{"version":3,"file":"director-setup.d.ts","sourceRoot":"","sources":["../../src/wiring/director-setup.ts"],"names":[],"mappings":"AAC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