@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,17 +1,19 @@
|
|
|
1
|
-
import type { Config, SecretVault } from '@wrongstack/core';
|
|
1
|
+
import type { Config, SecretVault } from '@wrongstack/core/types';
|
|
2
2
|
import type { ReadlineInputReader } from './input-reader.js';
|
|
3
3
|
import type { TerminalRenderer } from './renderer.js';
|
|
4
4
|
export type FirstRunAuthGateChoice = 'continue' | 'settings' | 'quit';
|
|
5
5
|
export interface FirstRunAuthGateDeps {
|
|
6
6
|
config: Config;
|
|
7
|
-
|
|
7
|
+
/** Active profile settings file; the root config is bootstrap metadata only. */
|
|
8
|
+
profileConfigPath: string;
|
|
8
9
|
vault: SecretVault;
|
|
9
10
|
renderer: TerminalRenderer;
|
|
10
11
|
reader: ReadlineInputReader;
|
|
11
12
|
}
|
|
12
13
|
export declare function hasAnyAuthRecord(deps: {
|
|
13
14
|
config: Config;
|
|
14
|
-
|
|
15
|
+
/** Active profile settings file; the root config is bootstrap metadata only. */
|
|
16
|
+
profileConfigPath: string;
|
|
15
17
|
vault: SecretVault;
|
|
16
18
|
}): Promise<boolean>;
|
|
17
19
|
export declare function promptFirstRunAuthGate(deps: FirstRunAuthGateDeps): Promise<FirstRunAuthGateChoice>;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"first-run-auth-gate.d.ts","sourceRoot":"","sources":["../src/first-run-auth-gate.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,MAAM,EAAE,WAAW,EAAE,MAAM,
|
|
1
|
+
{"version":3,"file":"first-run-auth-gate.d.ts","sourceRoot":"","sources":["../src/first-run-auth-gate.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,MAAM,EAAE,WAAW,EAAE,MAAM,wBAAwB,CAAC;AAElE,OAAO,KAAK,EAAE,mBAAmB,EAAE,MAAM,mBAAmB,CAAC;AAE7D,OAAO,KAAK,EAAE,gBAAgB,EAAE,MAAM,eAAe,CAAC;AAEtD,MAAM,MAAM,sBAAsB,GAAG,UAAU,GAAG,UAAU,GAAG,MAAM,CAAC;AAEtE,MAAM,WAAW,oBAAoB;IACnC,MAAM,EAAE,MAAM,CAAC;IACf,gFAAgF;IAChF,iBAAiB,EAAE,MAAM,CAAC;IAC1B,KAAK,EAAE,WAAW,CAAC;IACnB,QAAQ,EAAE,gBAAgB,CAAC;IAC3B,MAAM,EAAE,mBAAmB,CAAC;CAC7B;AAED,wBAAsB,gBAAgB,CAAC,IAAI,EAAE;IAC3C,MAAM,EAAE,MAAM,CAAC;IACf,gFAAgF;IAChF,iBAAiB,EAAE,MAAM,CAAC;IAC1B,KAAK,EAAE,WAAW,CAAC;CACpB,GAAG,OAAO,CAAC,OAAO,CAAC,CASnB;AAED,wBAAsB,sBAAsB,CAC1C,IAAI,EAAE,oBAAoB,GACzB,OAAO,CAAC,sBAAsB,CAAC,CA0CjC"}
|
package/dist/fleet/host.d.ts
CHANGED
|
@@ -1,6 +1,10 @@
|
|
|
1
|
-
import
|
|
2
|
-
import
|
|
3
|
-
import type
|
|
1
|
+
import { type FallbackProfileManager } from '@wrongstack/core/agent';
|
|
2
|
+
import type { BrainArbiter, ProviderModelStatusTracker } from '@wrongstack/core/coordination';
|
|
3
|
+
import { type AgentFactory, Director } from '@wrongstack/core/coordination';
|
|
4
|
+
import { type Container, EventBus } from '@wrongstack/core/kernel';
|
|
5
|
+
import { type ProviderRegistry, ToolRegistry } from '@wrongstack/core/registry';
|
|
6
|
+
import type { SubagentRunner } from '@wrongstack/core/types';
|
|
7
|
+
import { type Config, type ConfigStore, type ModelsRegistry, type SessionWriter, type SkillLoader, type SubagentConfig, type SystemPromptBuilder, type TaskResult, type TokenCounter } from '@wrongstack/core/types';
|
|
4
8
|
export interface MultiAgentDeps {
|
|
5
9
|
container: Container;
|
|
6
10
|
toolRegistry: ToolRegistry;
|
|
@@ -20,8 +24,10 @@ export interface MultiAgentDeps {
|
|
|
20
24
|
tokenCounter: TokenCounter;
|
|
21
25
|
projectRoot: string;
|
|
22
26
|
cwd: string;
|
|
23
|
-
secretScrubber: import('@wrongstack/core').SecretScrubber;
|
|
24
|
-
|
|
27
|
+
secretScrubber: import('@wrongstack/core/types').SecretScrubber;
|
|
28
|
+
/** Loader used to resolve the roster's per-role skill names. */
|
|
29
|
+
skillLoader?: SkillLoader | undefined;
|
|
30
|
+
renderer?: import('@wrongstack/core/types').Renderer | undefined;
|
|
25
31
|
/** Shared live fallback profile manager from the runtime container. */
|
|
26
32
|
fallbackProfileManager: FallbackProfileManager;
|
|
27
33
|
}
|
|
@@ -128,7 +134,7 @@ export interface MultiAgentHostOptions {
|
|
|
128
134
|
* passes the same writer the host Agent uses so all events land in one
|
|
129
135
|
* JSONL. Optional — when omitted, those events stay in-memory.
|
|
130
136
|
*/
|
|
131
|
-
sessionWriter?: import('@wrongstack/core').SessionWriter | undefined;
|
|
137
|
+
sessionWriter?: import('@wrongstack/core/types').SessionWriter | undefined;
|
|
132
138
|
/**
|
|
133
139
|
* Root session trace ID for correlating subagent storage events with
|
|
134
140
|
* the parent session's trace in observability pipelines.
|
|
@@ -212,6 +218,13 @@ export declare class MultiAgentHost {
|
|
|
212
218
|
* pending promise so concurrent calls for the same subagentId share one spawn.
|
|
213
219
|
* Bounded to 20 entries with LRU eviction to prevent unbounded memory growth. */
|
|
214
220
|
private readonly acpRunnerCache;
|
|
221
|
+
/** Runtime subagent id → stable roster role for task-end learning capture.
|
|
222
|
+
* Bounded with LRU eviction (see LEARNING_ROLES_MAX) — every spawn adds
|
|
223
|
+
* 1–2 entries and a long session would otherwise grow this map without
|
|
224
|
+
* limit, mirroring the acpRunnerCache pattern. */
|
|
225
|
+
private readonly subagentLearningRoles;
|
|
226
|
+
private readonly subagentLearningRolesAccessOrder;
|
|
227
|
+
private static readonly LEARNING_ROLES_MAX;
|
|
215
228
|
private readonly acpRunnerAccessOrder;
|
|
216
229
|
private static readonly ACP_CACHE_MAX;
|
|
217
230
|
/** Adaptive concurrency controller — created in buildDirector() when config has
|
|
@@ -243,7 +256,11 @@ export declare class MultiAgentHost {
|
|
|
243
256
|
* buildDirector() (when a BrainArbiter is available), stopped in
|
|
244
257
|
* dispose(). Also published to the supervisor registry for /supervisor. */
|
|
245
258
|
private fleetSupervisor;
|
|
259
|
+
/** Built-ins plus lazily-resolved project-created roles. */
|
|
260
|
+
private readonly roster;
|
|
246
261
|
constructor(deps: MultiAgentDeps, opts?: MultiAgentHostOptions);
|
|
262
|
+
/** Live roster surface shared by spawn_subagent and the blocking delegate tool. */
|
|
263
|
+
getRoster(): Record<string, SubagentConfig>;
|
|
247
264
|
/**
|
|
248
265
|
* Force the lazy build path to run *now* and return the live Director.
|
|
249
266
|
* Used by the CLI to register the fleet's LLM-callable orchestration
|
|
@@ -282,7 +299,7 @@ export declare class MultiAgentHost {
|
|
|
282
299
|
* has been built. Used by makeSubagentFactory to inject the tool into
|
|
283
300
|
* the filtered tool registry so collab session agents can emit fleet events.
|
|
284
301
|
*/
|
|
285
|
-
getFleetEmitTool(): import('@wrongstack/core').Tool | undefined;
|
|
302
|
+
getFleetEmitTool(): import('@wrongstack/core/types').Tool | undefined;
|
|
286
303
|
/**
|
|
287
304
|
* Build a per-role subagent factory: given a SubagentConfig, construct a
|
|
288
305
|
* fresh, isolated Agent with the role's filtered tools and (when the config
|
|
@@ -292,6 +309,7 @@ export declare class MultiAgentHost {
|
|
|
292
309
|
* specialized, concurrency-safe agent instead of sharing the leader's Context.
|
|
293
310
|
*/
|
|
294
311
|
makeSubagentFactory(config: Config): AgentFactory;
|
|
312
|
+
private resolveSubagentSkillContent;
|
|
295
313
|
private retrieveSubagentMemory;
|
|
296
314
|
/**
|
|
297
315
|
* Build the per-subagent runner.
|
|
@@ -448,6 +466,11 @@ export declare class MultiAgentHost {
|
|
|
448
466
|
* would change ordering semantics for those listeners.
|
|
449
467
|
*/
|
|
450
468
|
private emitLifecycleCompleted;
|
|
469
|
+
/** LRU-bounded insert into `subagentLearningRoles`. Mirrors the
|
|
470
|
+
* acpRunnerCache eviction strategy so a long-lived session cannot
|
|
471
|
+
* grow the map without limit. */
|
|
472
|
+
private recordLearningRole;
|
|
473
|
+
private captureCompletedTaskLearning;
|
|
451
474
|
status(): {
|
|
452
475
|
pending: {
|
|
453
476
|
taskId: string;
|
package/dist/fleet/host.d.ts.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"host.d.ts","sourceRoot":"","sources":["../../src/fleet/host.ts"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"host.d.ts","sourceRoot":"","sources":["../../src/fleet/host.ts"],"names":[],"mappings":"AAcA,OAAO,EAKL,KAAK,sBAAsB,EAC5B,MAAM,wBAAwB,CAAC;AAQhC,OAAO,KAAK,EAAE,YAAY,EAAE,0BAA0B,EAAE,MAAM,+BAA+B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AAC,OAAO,CAAC,CAK/C;IAEK,OAAO,IAAI,OAAO,CAAC,IAAI,CAAC,CAgB7B;IAED;;;;;OAKG;IACH,gBAAgB,IAAI,MAAM,CAKzB;IAED;;;;;;;;OAQG;IACH,gBAAgB,CAAC,CAAC,EAAE,MAAM,GAAG,IAAI,CAahC;IAED;;;;;;OAMG;IACG,OAAO,IAAI,OAAO,CAAC,IAAI,CAAC,CAwC7B;CACF"}
|
package/dist/fleet/routing.d.ts
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import type { SubagentRunner } from '@wrongstack/core';
|
|
2
|
-
import { type Config } from '@wrongstack/core';
|
|
1
|
+
import type { SubagentRunner } from '@wrongstack/core/types';
|
|
2
|
+
import { type Config } from '@wrongstack/core/types';
|
|
3
3
|
import type { MultiAgentHost } from './host.js';
|
|
4
4
|
/**
|
|
5
5
|
* Routing runner — dispatches tasks to standard or ACP runner based on provider.
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"routing.d.ts","sourceRoot":"","sources":["../../src/fleet/routing.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAsB,cAAc,EAAY,MAAM,
|
|
1
|
+
{"version":3,"file":"routing.d.ts","sourceRoot":"","sources":["../../src/fleet/routing.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAsB,cAAc,EAAY,MAAM,wBAAwB,CAAC;AAC3F,OAAO,EAAE,KAAK,MAAM,EAAE,MAAM,wBAAwB,CAAC;AAIrD,OAAO,KAAK,EAAE,cAAc,EAAE,MAAM,WAAW,CAAC;AAChD;;GAEG;AACH,wBAAgB,kBAAkB,CAAC,MAAM,EAAE,MAAM,EAAE,IAAI,EAAE,cAAc,GAAG,cAAc,CAevF"}
|
|
@@ -22,8 +22,9 @@
|
|
|
22
22
|
*
|
|
23
23
|
* @module fleet/status-broadcast
|
|
24
24
|
*/
|
|
25
|
-
import type { EventBus
|
|
26
|
-
import type {
|
|
25
|
+
import type { EventBus } from '@wrongstack/core/kernel';
|
|
26
|
+
import type { Mailbox } from '@wrongstack/core/coordination';
|
|
27
|
+
import type { FleetConfig } from '@wrongstack/core/types';
|
|
27
28
|
export interface FleetStatusBroadcasterOptions {
|
|
28
29
|
/** Host EventBus carrying the re-emitted `subagent.*` lifecycle events. */
|
|
29
30
|
events: EventBus;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"status-broadcast.d.ts","sourceRoot":"","sources":["../../src/fleet/status-broadcast.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;;;;;;;;;;GAuBG;AAEH,OAAO,KAAK,EAAE,QAAQ,EAAE,OAAO,EAAE,MAAM,
|
|
1
|
+
{"version":3,"file":"status-broadcast.d.ts","sourceRoot":"","sources":["../../src/fleet/status-broadcast.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;;;;;;;;;;GAuBG;AAEH,OAAO,KAAK,EAAE,QAAQ,EAAE,MAAM,yBAAyB,CAAC;AACxD,OAAO,KAAK,EAAE,OAAO,EAAE,MAAM,+BAA+B,CAAC;AAC7D,OAAO,KAAK,EAAE,WAAW,EAAE,MAAM,wBAAwB,CAAC;AAE1D,MAAM,WAAW,6BAA6B;IAC5C,2EAA2E;IAC3E,MAAM,EAAE,QAAQ,CAAC;IACjB,yEAAyE;IACzE,cAAc,EAAE,MAAM,OAAO,CAAC;IAC9B,kEAAkE;IAClE,UAAU,EAAE,MAAM,MAAM,CAAC;IACzB,oEAAoE;IACpE,YAAY,CAAC,EAAE,CAAC,CAAC,UAAU,EAAE,MAAM,KAAK,MAAM,GAAG,SAAS,CAAC,GAAG,SAAS,CAAC;IACxE,MAAM,CAAC,EAAE,WAAW,CAAC,kBAAkB,CAAC,GAAG,SAAS,CAAC;CACtD;AAYD,wBAAgB,4BAA4B,CAAC,IAAI,EAAE,6BAA6B,GAAG;IACjF,KAAK,IAAI,IAAI,CAAC;IACd,IAAI,IAAI,IAAI,CAAC;CACd,CAyKA"}
|
|
@@ -10,7 +10,7 @@
|
|
|
10
10
|
*
|
|
11
11
|
* @module fleet/supervisor-registry
|
|
12
12
|
*/
|
|
13
|
-
import type { FleetSupervisor } from '@wrongstack/core';
|
|
13
|
+
import type { FleetSupervisor } from '@wrongstack/core/coordination';
|
|
14
14
|
export declare function setActiveFleetSupervisor(supervisor: FleetSupervisor | null): void;
|
|
15
15
|
export declare function getActiveFleetSupervisor(): FleetSupervisor | null;
|
|
16
16
|
//# sourceMappingURL=supervisor-registry.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"supervisor-registry.d.ts","sourceRoot":"","sources":["../../src/fleet/supervisor-registry.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;GAWG;AAEH,OAAO,KAAK,EAAE,eAAe,EAAE,MAAM,
|
|
1
|
+
{"version":3,"file":"supervisor-registry.d.ts","sourceRoot":"","sources":["../../src/fleet/supervisor-registry.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;GAWG;AAEH,OAAO,KAAK,EAAE,eAAe,EAAE,MAAM,+BAA+B,CAAC;AAIrE,wBAAgB,wBAAwB,CAAC,UAAU,EAAE,eAAe,GAAG,IAAI,GAAG,IAAI,CAEjF;AAED,wBAAgB,wBAAwB,IAAI,eAAe,GAAG,IAAI,CAEjE"}
|
|
@@ -13,7 +13,7 @@
|
|
|
13
13
|
* subagent.spawned / task_started / tool_executed / iteration_summary /
|
|
14
14
|
* task_completed.
|
|
15
15
|
*/
|
|
16
|
-
import type { EventBus } from '@wrongstack/core';
|
|
16
|
+
import type { EventBus } from '@wrongstack/core/kernel';
|
|
17
17
|
export interface FleetAgentState {
|
|
18
18
|
id: string;
|
|
19
19
|
name: string;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"fleet-statusline.d.ts","sourceRoot":"","sources":["../src/fleet-statusline.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;GAcG;AAEH,OAAO,KAAK,EAAE,QAAQ,EAAE,MAAM,
|
|
1
|
+
{"version":3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ACpC,OAAO,CAAC,QAAQ,CAAC,GAAG,CAAe;IACnC,OAAO,CAAC,QAAQ,CAAC,OAAO,CAAC,CAAqB;IAC9C,OAAO,CAAC,QAAQ,CAAC,MAAM,CAAsC;IAC7D,OAAO,CAAC,QAAQ,CAAC,MAAM,CAAyB;IAChD,OAAO,CAAC,MAAM,CAAS;IACvB,OAAO,CAAC,IAAI,CAAK;IACjB,OAAO,CAAC,YAAY,CAA8C;IAClE,OAAO,CAAC,SAAS,CAA+C;IAChE,OAAO,CAAC,aAAa,CAA6B;IAClD,OAAO,CAAC,SAAS,CAAK;IACtB,OAAO,CAAC,QAAQ,CAAC,QAAQ,CAMvB;IAEF,YAAY,IAAI,EAAE,sBAAsB,EAMvC;IAED,kFAAkF;IAClF,KAAK,IAAI,IAAI,CAqEZ;IAED,wDAAwD;IACxD,IAAI,IAAI,IAAI,CAGX;IAED,OAAO,CAAC,KAAK;IAIb,OAAO,CAAC,QAAQ;IAchB,OAAO,CAAC,UAAU;IAuBlB,OAAO,CAAC,aAAa;IAerB,OAAO,CAAC,KAAK;CAWd"}
|
package/dist/goal-host.d.ts
CHANGED
|
@@ -15,7 +15,10 @@
|
|
|
15
15
|
* driven by the autonomous orchestrator + concurrent subagents rather than
|
|
16
16
|
* single-thread turn injection.
|
|
17
17
|
*/
|
|
18
|
-
import { type
|
|
18
|
+
import { type PhaseGraph, type PhaseProgress } from '@wrongstack/core/goal';
|
|
19
|
+
import { type BrainArbiter } from '@wrongstack/core/coordination';
|
|
20
|
+
import { type Config, type TaskNode } from '@wrongstack/core/types';
|
|
21
|
+
import { type EventBus } from '@wrongstack/core/kernel';
|
|
19
22
|
import type { MultiAgentHost } from './multi-agent.js';
|
|
20
23
|
/**
|
|
21
24
|
* Extend/trim the autonomous goal command allowlist from the user's exec
|
package/dist/goal-host.d.ts.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"goal-host.d.ts","sourceRoot":"","sources":["../src/goal-host.ts"],"names":[],"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,OAAO,CAAC;IACpF,6EAA6E;IAC7E,aAAa,EAAE,CACb,OAAO,EAAE,MAAM,EACf,IAAI,EAAE;QACJ,KAAK,EAAE,MAAM,CAAC;QACd,WAAW,CAAC,EAAE,MAAM,CAAC;QACrB,IAAI,CAAC,EAAE,QAAQ,CAAC,MAAM,CAAC,CAAC;QACxB,QAAQ,CAAC,EAAE,QAAQ,CAAC,UAAU,CAAC,CAAC;KACjC,KACE,MAAM,GAAG,IAAI,CAAC;IACnB,mEAAmE;IACnE,eAAe,EAAE,CAAC,MAAM,EAAE,MAAM,KAAK,OAAO,CAAC;IAC7C,wEAAwE;IACxE,UAAU,EAAE,CAAC,MAAM,EAAE,MAAM,GAAG,OAAO,GAAG,OAAO,GAAG,OAAO,EAAE,MAAM,CAAC,EAAE,MAAM,KAAK,OAAO,CAAC,MAAM,CAAC,CAAC;CAChG;AAgBD,wBAAgB,cAAc,CAAC,IAAI,EAAE,YAAY,GAAG,aAAa,CAmkBhE"}
|
package/dist/hooks-wiring.d.ts
CHANGED
|
@@ -1,4 +1,6 @@
|
|
|
1
|
-
import type { AgentExtension
|
|
1
|
+
import type { AgentExtension } from '@wrongstack/core/extension';
|
|
2
|
+
import type { HookRunner } from '@wrongstack/core/hooks';
|
|
3
|
+
import type { UserInputPayload } from '@wrongstack/core/agent';
|
|
2
4
|
/** Raised by the UserPromptSubmit middleware to block a turn before it runs. */
|
|
3
5
|
export declare class HookBlockedError extends Error {
|
|
4
6
|
constructor(reason: string);
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"hooks-wiring.d.ts","sourceRoot":"","sources":["../src/hooks-wiring.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,cAAc,EAAE,UAAU,
|
|
1
|
+
{"version":3,"file":"hooks-wiring.d.ts","sourceRoot":"","sources":["../src/hooks-wiring.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,cAAc,EAAE,MAAM,4BAA4B,CAAC;AACjE,OAAO,KAAK,EAAE,UAAU,EAAE,MAAM,wBAAwB,CAAC;AAEzD,OAAO,KAAK,EAAE,gBAAgB,EAAE,MAAM,wBAAwB,CAAC;AAE/D,gFAAgF;AAChF,qBAAa,gBAAiB,SAAQ,KAAK;IACzC,YAAY,MAAM,EAAE,MAAM,EAGzB;CACF;AAED,UAAU,mBAAmB;IAC3B,IAAI,EAAE,MAAM,CAAC;IACb,OAAO,EAAE,CACP,OAAO,EAAE,gBAAgB,EACzB,IAAI,EAAE,CAAC,CAAC,EAAE,gBAAgB,KAAK,OAAO,CAAC,gBAAgB,CAAC,KACrD,OAAO,CAAC,gBAAgB,CAAC,CAAC;CAChC;AAED;;;;;;GAMG;AACH,wBAAgB,gCAAgC,CAAC,UAAU,EAAE,UAAU,GAAG,mBAAmB,CAiB5F;AAED;;;;;GAKG;AACH,wBAAgB,6BAA6B,CAAC,UAAU,EAAE,UAAU,GAAG,cAAc,CAiBpF"}
|
|
@@ -14,8 +14,8 @@
|
|
|
14
14
|
*
|
|
15
15
|
* @module hq-command-controller
|
|
16
16
|
*/
|
|
17
|
-
import type { HqPublisherCommandResult } from '@wrongstack/core';
|
|
18
|
-
import type { GlobalMailbox } from '@wrongstack/core';
|
|
17
|
+
import type { HqPublisherCommandResult } from '@wrongstack/core/hq';
|
|
18
|
+
import type { GlobalMailbox } from '@wrongstack/core/coordination';
|
|
19
19
|
/**
|
|
20
20
|
* Mutable holder for the command dispatch targets. Each field is populated
|
|
21
21
|
* lazily as the corresponding subsystem comes online (director on
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"hq-command-controller.d.ts","sourceRoot":"","sources":["../src/hq-command-controller.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;;GAeG;AACH,OAAO,KAAK,EAAE,wBAAwB,EAAE,MAAM,
|
|
1
|
+
{"version":3,"file":"hq-command-controller.d.ts","sourceRoot":"","sources":["../src/hq-command-controller.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;;GAeG;AACH,OAAO,KAAK,EAAE,wBAAwB,EAAE,MAAM,qBAAqB,CAAC;AACpE,OAAO,KAAK,EAAE,aAAa,EAAE,MAAM,+BAA+B,CAAC;AAGnE;;;;;GAKG;AACH,MAAM,WAAW,mBAAmB;IAClC,gEAAgE;IAChE,YAAY,CAAC,EAAE,aAAa,CAAC;IAC7B,yFAAyF;IACzF,eAAe,EAAE,MAAM,OAAO,CAAC;IAC/B,uEAAuE;IACvE,cAAc,CAAC,EAAE,CAAC,UAAU,EAAE,MAAM,KAAK,OAAO,GAAG,OAAO,CAAC,OAAO,CAAC,CAAC;IACpE,8EAA8E;IAC9E,SAAS,CAAC,EAAE,MAAM,MAAM,GAAG,OAAO,CAAC,MAAM,CAAC,CAAC;IAC3C,sEAAsE;IACtE,UAAU,CAAC,EAAE,CAAC,IAAI,EAAE,MAAM,EAAE,IAAI,CAAC,EAAE,MAAM,EAAE,aAAa,CAAC,EAAE,MAAM,KAAK,OAAO,CAAC,MAAM,CAAC,CAAC;IACtF,kFAAkF;IAClF,UAAU,EAAE,MAAM,MAAM,CAAC;IACzB,0EAA0E;IAC1E,eAAe,EAAE,MAAM,OAAO,CAAC;CAChC;AAED;;;;;GAKG;AACH,wBAAgB,yBAAyB,CACvC,UAAU,EAAE,mBAAmB,GAC9B,CAAC,OAAO,EAAE;IAAE,SAAS,EAAE,MAAM,CAAC;IAAC,IAAI,EAAE,MAAM,CAAC;IAAC,OAAO,EAAE,OAAO,CAAA;CAAE,KAAK,OAAO,CAAC,wBAAwB,CAAC,CAcvG"}
|
package/dist/hq-publisher.d.ts
CHANGED
|
@@ -1,4 +1,5 @@
|
|
|
1
|
-
import { type CreateHqPublisherOptions
|
|
1
|
+
import { type CreateHqPublisherOptions } from '@wrongstack/core/hq';
|
|
2
|
+
import { type HqPublisher } from '@wrongstack/core/hq';
|
|
2
3
|
type CliHqPublisherOptions = Omit<CreateHqPublisherOptions, 'socketFactory'> & {
|
|
3
4
|
socketFactory?: CreateHqPublisherOptions['socketFactory'];
|
|
4
5
|
};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"hq-publisher.d.ts","sourceRoot":"","sources":["../src/hq-publisher.ts"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"hq-publisher.d.ts","sourceRoot":"","sources":["../src/hq-publisher.ts"],"names":[],"mappings":"AACA,OAAO,EAAE,KAAK,wBAAwB,EAAE,MAAM,qBAAqB,CAAC;AACpE,OAAO,EAAE,KAAK,WAAW,EAAqB,MAAM,qBAAqB,CAAC;AAI1E,KAAK,qBAAqB,GAAG,IAAI,CAAC,wBAAwB,EAAE,eAAe,CAAC,GAAG;IAC7E,aAAa,CAAC,EAAE,wBAAwB,CAAC,eAAe,CAAC,CAAC;CAC3D,CAAC;AAEF,MAAM,WAAW,eAAe;IAC9B,YAAY,IAAI,WAAW,GAAG,SAAS,CAAC;IACxC,IAAI,IAAI,IAAI,CAAC;CACd;AAED,MAAM,WAAW,sBAAuB,SAAQ,qBAAqB;IACnE,SAAS,CAAC,EAAE,CAAC,CAAC,SAAS,EAAE,WAAW,KAAK,IAAI,CAAC,GAAG,SAAS,CAAC;IAC3D,eAAe,CAAC,EAAE,MAAM,GAAG,SAAS,CAAC;CACtC;AAMD,wBAAgB,oBAAoB,CAAC,OAAO,EAAE,qBAAqB,GAAG,WAAW,GAAG,SAAS,CAK5F;AAmBD,wBAAgB,oBAAoB,CAAC,OAAO,EAAE,sBAAsB,GAAG,eAAe,CAsDrF"}
|
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Minimal diagnostic page used only when the packaged HQ SPA assets cannot be found.
|
|
3
|
+
* It intentionally contains no telemetry UI or control-plane implementation.
|
|
4
|
+
*/
|
|
5
|
+
export declare const HQ_RECOVERY_HTML = "<!doctype html>\n<html lang=\"en\">\n<head>\n <meta charset=\"utf-8\">\n <meta name=\"viewport\" content=\"width=device-width,initial-scale=1\">\n <title>WrongStack HQ \u2014 assets unavailable</title>\n <style>\n :root{color-scheme:dark;background:#0c111b;color:#e7edf7;font:16px/1.5 system-ui,sans-serif}\n body{margin:0;min-height:100vh;display:grid;place-items:center;padding:24px;box-sizing:border-box}\n main{max-width:680px;border:1px solid #334155;background:#111827;padding:28px}\n h1{margin-top:0;font-size:1.5rem}code{color:#93c5fd}p{color:#cbd5e1}\n </style>\n</head>\n<body>\n <main data-hq-recovery-shell>\n <h1>HQ frontend assets are unavailable</h1>\n <p>The HQ backend is running, but the packaged React application could not be resolved.</p>\n <p>Rebuild or reinstall <code>@wrongstack/webui-hq</code>, then restart HQ. API routes remain available for diagnostics.</p>\n </main>\n</body>\n</html>";
|
|
6
|
+
/** Backward-compatible public name; now always represents the diagnostic shell. */
|
|
7
|
+
export declare const HQ_HTML = "<!doctype html>\n<html lang=\"en\">\n<head>\n <meta charset=\"utf-8\">\n <meta name=\"viewport\" content=\"width=device-width,initial-scale=1\">\n <title>WrongStack HQ \u2014 assets unavailable</title>\n <style>\n :root{color-scheme:dark;background:#0c111b;color:#e7edf7;font:16px/1.5 system-ui,sans-serif}\n body{margin:0;min-height:100vh;display:grid;place-items:center;padding:24px;box-sizing:border-box}\n main{max-width:680px;border:1px solid #334155;background:#111827;padding:28px}\n h1{margin-top:0;font-size:1.5rem}code{color:#93c5fd}p{color:#cbd5e1}\n </style>\n</head>\n<body>\n <main data-hq-recovery-shell>\n <h1>HQ frontend assets are unavailable</h1>\n <p>The HQ backend is running, but the packaged React application could not be resolved.</p>\n <p>Rebuild or reinstall <code>@wrongstack/webui-hq</code>, then restart HQ. API routes remain available for diagnostics.</p>\n </main>\n</body>\n</html>";
|
|
8
|
+
//# sourceMappingURL=hq-recovery-html.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"hq-recovery-html.d.ts","sourceRoot":"","sources":["../src/hq-recovery-html.ts"],"names":[],"mappings":"AAAA;;;GAGG;AACH,eAAO,MAAM,gBAAgB,m7BAoBrB,CAAC;AAET,mFAAmF;AACnF,eAAO,MAAM,OAAO,m7BAAmB,CAAC"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"audit-actor.d.ts","sourceRoot":"","sources":["../../src/hq-server/audit-actor.ts"],"names":[],"mappings":"AAEA,gFAAgF;AAChF,wBAAgB,iBAAiB,IAAI,MAAM,CAQ1C"}
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
import { type HqAuthFile, type HqSnapshot } from '@wrongstack/core/hq';
|
|
2
|
+
import type { HqRouterMutableAuth } from './types.js';
|
|
3
|
+
export interface HqAuthState {
|
|
4
|
+
mutableAuth: HqRouterMutableAuth;
|
|
5
|
+
apply(next: HqAuthFile): void;
|
|
6
|
+
tokenStats(): NonNullable<HqSnapshot['totals']['tokenStats']>;
|
|
7
|
+
}
|
|
8
|
+
/** Owns the live auth projection, expiry statistics, and reload audit diff. */
|
|
9
|
+
export declare function createHqAuthState(authFile: HqAuthFile, dataDir: string): HqAuthState;
|
|
10
|
+
//# sourceMappingURL=auth-state.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"auth-state.d.ts","sourceRoot":"","sources":["../../src/hq-server/auth-state.ts"],"names":[],"mappings":"AACA,OAAO,EAAE,KAAK,UAAU,EAAE,KAAK,UAAU,EAAgB,MAAM,qBAAqB,CAAC;AACrF,OAAO,KAAK,EAAE,mBAAmB,EAAE,MAAM,YAAY,CAAC;AAItD,MAAM,WAAW,WAAW;IAC1B,WAAW,EAAE,mBAAmB,CAAC;IACjC,KAAK,CAAC,IAAI,EAAE,UAAU,GAAG,IAAI,CAAC;IAC9B,UAAU,IAAI,WAAW,CAAC,UAAU,CAAC,QAAQ,CAAC,CAAC,YAAY,CAAC,CAAC,CAAC;CAC/D;AAMD,+EAA+E;AAC/E,wBAAgB,iBAAiB,CAAC,QAAQ,EAAE,UAAU,EAAE,OAAO,EAAE,MAAM,GAAG,WAAW,CAuDpF"}
|
package/dist/hq-server/auth.d.ts
CHANGED
|
@@ -14,20 +14,8 @@ export interface HqBrowserAuthContext {
|
|
|
14
14
|
}
|
|
15
15
|
export type HqBrowserAuthResult = HqBrowserAuthContext | 'cookie' | undefined;
|
|
16
16
|
/**
|
|
17
|
-
* The
|
|
18
|
-
*
|
|
19
|
-
* The inline `<script>` blocks define the full SPA logic, so `'unsafe-inline'`
|
|
20
|
-
* is required — we cannot use hashes because the HTML template injects
|
|
21
|
-
* variable source (tool-input summarizer, tool-diff viewer) at build time.
|
|
22
|
-
*
|
|
23
|
-
* CSP trade-offs:
|
|
24
|
-
* - `script-src 'unsafe-inline'` — unavoidable given the single-file design;
|
|
25
|
-
* mitigations: the page is served on loopback only, and `connect-src` is
|
|
26
|
-
* locked to `'self'` so an injected inline script cannot exfiltrate data
|
|
27
|
-
* via WebSocket to an attacker-controlled server.
|
|
28
|
-
* - CDN URLs are pinned to specific package@version paths rather than bare
|
|
29
|
-
* origin wildcards, limiting the blast radius if esm.sh is compromised.
|
|
30
|
-
* - `cdn.jsdelivr.net` was previously allowed but is not loaded by HQ.
|
|
17
|
+
* The only featureful frontend is the packaged, same-origin React SPA.
|
|
18
|
+
* The missing-assets recovery document contains inline CSS but no script.
|
|
31
19
|
*/
|
|
32
20
|
export declare function setHqSecurityHeaders(res: http.ServerResponse): void;
|
|
33
21
|
export declare function hasTrustedBrowserOrigin(req: http.IncomingMessage, boundHost?: string, boundPort?: number, trustedPublicOrigins?: ReadonlySet<string>): boolean;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"auth.d.ts","sourceRoot":"","sources":["../../src/hq-server/auth.ts"],"names":[],"mappings":"AAAA;;;;GAIG;AAGH,OAAO,KAAK,KAAK,IAAI,MAAM,WAAW,CAAC;AAKvC,eAAO,MAAM,iBAAiB,eAAe,CAAC;AAC9C,eAAO,MAAM,qBAAqB,QAA0B,CAAC;AAI7D,MAAM,WAAW,oBAAoB;IACnC,IAAI,EAAE,OAAO,CAAC;IACd,KAAK,EAAE,MAAM,CAAC;IACd,EAAE,EAA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EACxB,KAAK,EAAE,MAAM,EACb,MAAM,CAAC,EAAE,OAAO,GACf,IAAI,CAUN;AAED,wBAAgB,oBAAoB,CAAC,GAAG,EAAE,IAAI,CAAC,cAAc,EAAE,MAAM,CAAC,EAAE,OAAO,GAAG,IAAI,CAIrF;AAID,wBAAgB,WAAW,CAAC,IAAI,EAAE,mBAAmB,GAAG,IAAI,IAAI,oBAAoB,CAEnF;AAgCD;;;;;;GAMG;AACH,wBAAgB,oBAAoB,CAAC,MAAM,EAAE,GAAG,CAAC,MAAM,CAAC,EAAE,QAAQ,EAAE,MAAM,GAAG,MAAM,GAAG,SAAS,CAQ9F;AAED,wBAAgB,0BAA0B,CACxC,GAAG,EAAE,IAAI,CAAC,eAAe,EACzB,GAAG,EAAE,GAAG,EACR,WAAW,EAAE;IACX,aAAa,EAAE,GAAG,CAAC,MAAM,CAAC,CAAC;IAC3B,gBAAgB,EAAE,GAAG,CAAC,MAAM,EAAE;QAAE,EAAE,EAAE,MAAM,CAAC;QAAC,YAAY,CAAC,EAAE,MAAM,EAAE,CAAA;KAAE,CAAC,CAAC;IACvE,YAAY,CAAC,EAAE,MAAM,GAAG,SAAS,CAAC;IAClC,YAAY,CAAC,EAAE,MAAM,GAAG,SAAS,CAAC;CACnC,EACD,QAAQ,EAAE,GAAG,CAAC,MAAM,EAAE;IAAE,SAAS,EAAE,MAAM,CAAA;CAAE,CAAC,GAC3C,mBAAmB,CAiCrB"}
|
|
@@ -0,0 +1,22 @@
|
|
|
1
|
+
import { type EnsureHqFirstRunAuthResult } from '@wrongstack/core/hq';
|
|
2
|
+
export interface HqPreflightOptions {
|
|
3
|
+
host?: string;
|
|
4
|
+
port?: number;
|
|
5
|
+
dataDir?: string;
|
|
6
|
+
password?: string;
|
|
7
|
+
tokenTtlMs?: number;
|
|
8
|
+
requireBrowserAuth?: boolean;
|
|
9
|
+
allowInsecureOpen?: boolean;
|
|
10
|
+
}
|
|
11
|
+
export interface HqPreflightResult {
|
|
12
|
+
host: string;
|
|
13
|
+
port: number;
|
|
14
|
+
dataDir: string;
|
|
15
|
+
firstRunAuth: EnsureHqFirstRunAuthResult;
|
|
16
|
+
}
|
|
17
|
+
/** Resolves startup inputs and enforces exposure/auth policy before binding a socket. */
|
|
18
|
+
export declare function prepareHqServerStart(options: HqPreflightOptions, defaults: {
|
|
19
|
+
host: string;
|
|
20
|
+
port: number;
|
|
21
|
+
}): Promise<HqPreflightResult>;
|
|
22
|
+
//# sourceMappingURL=preflight.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"preflight.d.ts","sourceRoot":"","sources":["../../src/hq-server/preflight.ts"],"names":[],"mappings":"AACA,OAAO,EAA2B,KAAK,0BAA0B,EAAE,MAAM,qBAAqB,CAAC;AAG/F,MAAM,WAAW,kBAAkB;IACjC,IAAI,CAAC,EAAE,MAAM,CAAC;IACd,IAAI,CAAC,EAAE,MAAM,CAAC;IACd,OAAO,CAAC,EAAE,MAAM,CAAC;IACjB,QAAQ,CAAC,EAAE,MAAM,CAAC;IAClB,UAAU,CAAC,EAAE,MAAM,CAAC;IACpB,kBAAkB,CAAC,EAAE,OAAO,CAAC;IAC7B,iBAAiB,CAAC,EAAE,OAAO,CAAC;CAC7B;AAED,MAAM,WAAW,iBAAiB;IAChC,IAAI,EAAE,MAAM,CAAC;IACb,IAAI,EAAE,MAAM,CAAC;IACb,OAAO,EAAE,MAAM,CAAC;IAChB,YAAY,EAAE,0BAA0B,CAAC;CAC1C;AAED,yFAAyF;AACzF,wBAAsB,oBAAoB,CACxC,OAAO,EAAE,kBAAkB,EAC3B,QAAQ,EAAE;IAAE,IAAI,EAAE,MAAM,CAAC;IAAC,IAAI,EAAE,MAAM,CAAA;CAAE,GACvC,OAAO,CAAC,iBAAiB,CAAC,CA+C5B"}
|
|
@@ -9,7 +9,11 @@
|
|
|
9
9
|
*/
|
|
10
10
|
import type * as http from 'node:http';
|
|
11
11
|
import { WebSocket } from 'ws';
|
|
12
|
-
import
|
|
12
|
+
import type { TrustBoundary } from '@wrongstack/core/security';
|
|
13
|
+
import { createHqPersistence } from '@wrongstack/core/hq';
|
|
14
|
+
import { type HqSnapshot, HqAlertEngine, HqCommandAuditLog, type HqEventEnvelope, type HqTranscriptEntry } from '@wrongstack/core/hq';
|
|
15
|
+
import { createMailboxHttpRouter } from '@wrongstack/core/coordination';
|
|
16
|
+
import { GlobalMailbox, type MailboxHttpAccessDecision, MailboxHttpRateLimiter } from '@wrongstack/core/coordination';
|
|
13
17
|
import * as HqServerAuth from './auth.js';
|
|
14
18
|
import * as HqServerUtils from './utils.js';
|
|
15
19
|
export declare const setHqSecurityHeaders: typeof HqServerAuth.setHqSecurityHeaders;
|
|
@@ -33,27 +37,14 @@ export declare const agentMessageToEntry: typeof HqServerUtils.agentMessageToEnt
|
|
|
33
37
|
export declare const readLocalSubagentTranscript: typeof HqServerUtils.readLocalSubagentTranscript;
|
|
34
38
|
export declare const lanIPv4Addresses: typeof HqServerUtils.lanIPv4Addresses;
|
|
35
39
|
export declare const hqRuntimeMarkerPath: typeof HqServerUtils.hqRuntimeMarkerPath;
|
|
36
|
-
import type { ConnectedClient, HqSnapshotBroadcaster, ProjectDetail, TranscriptRing } from './types.js';
|
|
40
|
+
import type { ConnectedClient, HqRouterMutableAuth, HqSnapshotBroadcaster, ProjectDetail, TranscriptRing } from './types.js';
|
|
37
41
|
export type { ConnectedClient, HqSnapshotBroadcaster, ProjectDetail, TranscriptRing, };
|
|
38
|
-
export interface HqRouterMutableAuth {
|
|
39
|
-
operatorPolicy: HqRedactionPolicy;
|
|
40
|
-
operatorPolicyOverride: Partial<HqRedactionPolicy> | undefined;
|
|
41
|
-
browserTokens: Set<string>;
|
|
42
|
-
clientTokens: Set<string>;
|
|
43
|
-
browserTokenObjs: Map<string, {
|
|
44
|
-
id: string;
|
|
45
|
-
capabilities?: string[];
|
|
46
|
-
}>;
|
|
47
|
-
clientTokenObjs: Map<string, HqToken>;
|
|
48
|
-
passwordHash?: string | undefined;
|
|
49
|
-
cookieSecret?: string | undefined;
|
|
50
|
-
alertRules: HqAlertRuleConfig | undefined;
|
|
51
|
-
}
|
|
52
42
|
export interface HqRouterMailboxGateway {
|
|
53
43
|
mailbox: GlobalMailbox;
|
|
54
44
|
router: ReturnType<typeof createMailboxHttpRouter>;
|
|
55
45
|
}
|
|
56
46
|
export interface HqRouterDeps {
|
|
47
|
+
trustBoundary: TrustBoundary;
|
|
57
48
|
host: string;
|
|
58
49
|
listeningPort: number;
|
|
59
50
|
trustedPublicOrigins: Set<string>;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"routes.d.ts","sourceRoot":"","sources":["../../src/hq-server/routes.ts"],"names":[],"mappings":"AAAA;;;;;;;;GAQG;AAIH,OAAO,KAAK,KAAK,IAAI,MAAM,WAAW,CAAC;AACvC,OAAO,EAAE,SAAS,EAAE,MAAM,IAAI,CAAC;AAC/B,OAAO,
|
|
1
|
+
{"version":3,"file":"routes.d.ts","sourceRoot":"","sources":["../../src/hq-server/routes.ts"],"names":[],"mappings":"AAAA;;;;;;;;GAQG;AAIH,OAAO,KAAK,KAAK,IAAI,MAAM,WAAW,CAAC;AACvC,OAAO,EAAE,SAAS,EAAE,MAAM,IAAI,CAAC;AAC/B,OAAO,KAAK,EAAE,aAAa,EAAE,MAAM,2BAA2B,CAAC;AAC/D,OAAO,EAA6B,mBAAmB,EAAmM,MAAM,qBAAqB,CAAC;AACtR,OAAO,EAAE,KAAK,UAAU,EAAE,aAAa,EAAoE,iBAAiB,EAAE,KAAK,eAAe,EAAuF,KAAK,iBAAiB,EAAE,MAAM,qBAAqB,CAAC;AAC7R,OAAO,EAAE,uBAAuB,EAAE,MAAM,+BAA+B,CAAC;AACxE,OAAO,EAAE,aAAa,EAAE,KAAK,yBAAyB,EAAE,sBAAsB,EAAqB,MAAM,+BAA+B,CAAC;AAGzI,OAAO,KAAK,YAAY,MAAM,WAAW,CAAC;AAE1C,OAAO,KAAK,aAAa,MAAM,YAAY,CAAC;A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AAQ,CAAC,CAAC,YAAY,CAAC,GAAG,SAAS,CAAC,GAAG,SAAS,CAAC;CACpF;AAID;;;;;;GAMG;AACH,wBAAgB,cAAc,CAAC,IAAI,EAAE,YAAY,GAAG,CAAC,GAAG,EAAE,IAAI,CAAC,eAAe,EAAE,GAAG,EAAE,IAAI,CAAC,cAAc,KAAK,OAAO,CAAC,IAAI,CAAC,CAuPzH"}
|
|
@@ -3,10 +3,18 @@
|
|
|
3
3
|
*
|
|
4
4
|
* @module hq-server/snapshot
|
|
5
5
|
*/
|
|
6
|
-
import type { HqCommandAuditEntry, HqEventEnvelope, HqPersistence, HqSnapshot } from '@wrongstack/core';
|
|
6
|
+
import type { HqCommandAuditEntry, HqEventEnvelope, HqPersistence, HqSnapshot } from '@wrongstack/core/hq';
|
|
7
7
|
import { WebSocket } from 'ws';
|
|
8
8
|
import type { ConnectedClient, HqSnapshotBroadcaster, ProjectDetail } from './types.js';
|
|
9
9
|
export declare const HQ_SNAPSHOT_BROADCAST_DEBOUNCE_MS = 100;
|
|
10
|
+
/**
|
|
11
|
+
* Minimum spacing between disk checkpoints of snapshot.json. Browser broadcasts
|
|
12
|
+
* stay at the 100ms debounce, but the on-disk checkpoint (only used to re-seed a
|
|
13
|
+
* restarted HQ) does not need to be rewritten at broadcast rate. Throttling it
|
|
14
|
+
* stops an idle HQ — running behind active local TUIs/REPLs with nobody viewing
|
|
15
|
+
* the dashboard — from doing a full rebuild + atomic disk write at up to 10 Hz.
|
|
16
|
+
*/
|
|
17
|
+
export declare const HQ_SNAPSHOT_PERSIST_MIN_INTERVAL_MS = 3000;
|
|
10
18
|
export declare function buildSnapshot(clients: Map<WebSocket, ConnectedClient>, options?: {
|
|
11
19
|
tokenStats?: HqSnapshot['totals']['tokenStats'];
|
|
12
20
|
}): HqSnapshot;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"snapshot.d.ts","sourceRoot":"","sources":["../../src/hq-server/snapshot.ts"],"names":[],"mappings":"AAAA;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
+
import type { HqCommand } from '@wrongstack/core/hq';
|
|
2
|
+
import { type TrustBoundary } from '@wrongstack/core/security';
|
|
3
|
+
import type { ConnectedClient } from './types.js';
|
|
4
|
+
export declare function authorizeHqCommand(input: {
|
|
5
|
+
boundary: TrustBoundary;
|
|
6
|
+
command: HqCommand;
|
|
7
|
+
commandId: string;
|
|
8
|
+
enqueuedBy: string;
|
|
9
|
+
authMethod: 'session' | 'bearer-token';
|
|
10
|
+
target: ConnectedClient;
|
|
11
|
+
}): Promise<{
|
|
12
|
+
allowed: boolean;
|
|
13
|
+
reason: string;
|
|
14
|
+
}>;
|
|
15
|
+
//# sourceMappingURL=trust-boundary.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"trust-boundary.d.ts","sourceRoot":"","sources":["../../src/hq-server/trust-boundary.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,SAAS,EAAE,MAAM,qBAAqB,CAAC;AACrD,OAAO,EAA0B,KAAK,aAAa,EAA6B,MAAM,2BAA2B,CAAC;AAClH,OAAO,KAAK,EAAE,eAAe,EAAE,MAAM,YAAY,CAAC;AAElD,wBAAsB,kBAAkB,CAAC,KAAK,EAAE;IAC9C,QAAQ,EAAE,aAAa,CAAC;IACxB,OAAO,EAAE,SAAS,CAAC;IACnB,SAAS,EAAE,MAAM,CAAC;IAClB,UAAU,EAAE,MAAM,CAAC;IACnB,UAAU,EAAE,SAAS,GAAG,cAAc,CAAC;IACvC,MAAM,EAAE,eAAe,CAAC;CACzB,GAAG,OAAO,CAAC;IAAE,OAAO,EAAE,OAAO,CAAC;IAAC,MAAM,EAAE,MAAM,CAAA;CAAE,CAAC,CA6ChD"}
|
|
@@ -4,8 +4,8 @@
|
|
|
4
4
|
* @module hq-server/types
|
|
5
5
|
*/
|
|
6
6
|
import type { WebSocket } from 'ws';
|
|
7
|
-
import type { HqClientCapability, HqClientRecord, HqEventEnvelope, HqFleetSnapshotPayload, HqMailboxSnapshotPayload, HqMcpServerHealth, HqPersistence, HqProjectIdentity, HqProjectRecord, HqQueuedCommand, HqRedactionPolicy, HqSessionSnapshotPayload, HqToken, HqTranscriptEntry } from '@wrongstack/core';
|
|
8
|
-
import type { HqBrowserMessage } from '@wrongstack/core';
|
|
7
|
+
import type { HqClientCapability, HqAlertRuleConfig, HqClientRecord, HqEventEnvelope, HqFleetSnapshotPayload, HqMailboxSnapshotPayload, HqMcpServerHealth, HqPersistence, HqProjectIdentity, HqProjectRecord, HqQueuedCommand, HqRedactionPolicy, HqSessionSnapshotPayload, HqToken, HqTranscriptEntry } from '@wrongstack/core/hq';
|
|
8
|
+
import type { HqBrowserMessage } from '@wrongstack/core/hq';
|
|
9
9
|
export type { HqClientCapability, HqClientRecord, HqEventEnvelope, HqFleetSnapshotPayload, HqMailboxSnapshotPayload, HqMcpServerHealth, HqPersistence, HqProjectIdentity, HqProjectRecord, HqQueuedCommand, HqRedactionPolicy, HqSessionSnapshotPayload, HqToken, HqTranscriptEntry, HqBrowserMessage, };
|
|
10
10
|
export interface TrackedSessionSnapshot {
|
|
11
11
|
payload: HqSessionSnapshotPayload;
|
|
@@ -49,6 +49,20 @@ export interface ConnectedClient {
|
|
|
49
49
|
/** Pending outbound commands (Phase 3 — control plane). */
|
|
50
50
|
commandQueue: HqQueuedCommand[];
|
|
51
51
|
}
|
|
52
|
+
export interface HqRouterMutableAuth {
|
|
53
|
+
operatorPolicy: HqRedactionPolicy;
|
|
54
|
+
operatorPolicyOverride: Partial<HqRedactionPolicy> | undefined;
|
|
55
|
+
browserTokens: Set<string>;
|
|
56
|
+
clientTokens: Set<string>;
|
|
57
|
+
browserTokenObjs: Map<string, {
|
|
58
|
+
id: string;
|
|
59
|
+
capabilities?: string[];
|
|
60
|
+
}>;
|
|
61
|
+
clientTokenObjs: Map<string, HqToken>;
|
|
62
|
+
passwordHash?: string | undefined;
|
|
63
|
+
cookieSecret?: string | undefined;
|
|
64
|
+
alertRules: HqAlertRuleConfig | undefined;
|
|
65
|
+
}
|
|
52
66
|
export interface TranscriptRing {
|
|
53
67
|
entries: HqTranscriptEntry[];
|
|
54
68
|
machineId?: string;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"types.d.ts","sourceRoot":"","sources":["../../src/hq-server/types.ts"],"names":[],"mappings":"AAAA;;;;GAIG;AAEH,OAAO,KAAK,EAAE,SAAS,EAAE,MAAM,IAAI,CAAC;AACpC,OAAO,KAAK,
|
|
1
|
+
{"version":3,"file":"types.d.ts","sourceRoot":"","sources":["../../src/hq-server/types.ts"],"names":[],"mappings":"AAAA;;;;GAIG;AAEH,OAAO,KAAK,EAAE,SAAS,EAAE,MAAM,IAAI,CAAC;AACpC,OAAO,KAAK,EAAE,kBAAkB,EAAE,iBAAiB,EAAE,cAAc,EAAE,eAAe,EAAE,sBAAsB,EAAE,wBAAwB,EAAE,iBAAiB,EAAE,aAAa,EAAE,iBAAiB,EAAE,eAAe,EAAE,eAAe,EAAE,iBAAiB,EAAE,wBAAwB,EAAE,OAAO,EAAE,iBAAiB,EAAE,MAAM,qBAAqB,CAAC;AACpU,OAAO,KAAK,EAAE,gBAAgB,EAAE,MAAM,qBAAqB,CAAC;AAE5D,YAAY,EACV,kBAAkB,EAClB,cAAc,EACd,eAAe,EACf,sBAAsB,EACtB,wBAAwB,EACxB,iBAAiB,EACjB,aAAa,EACb,iBAAiB,EACjB,eAAe,EACf,eAAe,EACf,iBAAiB,EACjB,wBAAwB,EACxB,OAAO,EACP,iBAAiB,EACjB,gBAAgB,GACjB,CAAC;AAIF,MAAM,WAAW,sBAAsB;IACrC,OAAO,EAAE,wBAAwB,CAAC;IAClC,mGAAmG;IACnG,UAAU,EAAE,MAAM,CAAC;CACpB;AAED,MAAM,WAAW,oBAAoB;IACnC,OAAO,EAAE,sBAAsB,CAAC;IAChC,uDAAuD;IACvD,SAAS,CAAC,EAAE,MAAM,CAAC;IACnB,UAAU,EAAE,MAAM,CAAC;CACpB;AAED,MAAM,WAAW,eAAe;IAC9B,E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C,YAAY,CAAC,EAAE,MAAM,EAAE,CAAA;KAAE,CAAC,CAAC;IACvE,eAAe,EAAE,GAAG,CAAC,MAAM,EAAE,OAAO,CAAC,CAAC;IACtC,YAAY,CAAC,EAAE,MAAM,GAAG,SAAS,CAAC;IAClC,YAAY,CAAC,EAAE,MAAM,GAAG,SAAS,CAAC;IAClC,UAAU,EAAE,iBAAiB,GAAG,SAAS,CAAC;CAC3C;AAID,MAAM,WAAW,cAAc;IAC7B,OAAO,EAAE,iBAAiB,EAAE,CAAC;IAC7B,SAAS,CAAC,EAAE,MAAM,CAAC;CACpB;AAID,MAAM,WAAW,qBAAqB;IACpC,iBAAiB,IAAI,MAAM,CAAC;IAC5B,SAAS,IAAI,IAAI,CAAC;IAClB,KAAK,IAAI,IAAI,CAAC;CACf;AAID,MAAM,WAAW,aAAa;IAC5B,WAAW,EAAE,MAAM,CAAC;IACpB,OAAO,EAAE,eAAe,CAAC;IACzB,OAAO,EAAE,SAAS,cAAc,EAAE,CAAC;IACnC,SAAS,EAAE,SAAS,wBAAwB,EAAE,CAAC;CAChD"}
|
|
@@ -4,7 +4,7 @@
|
|
|
4
4
|
* @module hq-server/utils
|
|
5
5
|
*/
|
|
6
6
|
import type * as http from 'node:http';
|
|
7
|
-
import type { HqEventEnvelope, HqPersistence, HqTranscriptEntry } from '@wrongstack/core';
|
|
7
|
+
import type { HqEventEnvelope, HqPersistence, HqTranscriptEntry } from '@wrongstack/core/hq';
|
|
8
8
|
export declare const TRANSCRIPT_RING_MAX = 4000;
|
|
9
9
|
export declare const MAX_TRANSCRIPT_SESSIONS = 400;
|
|
10
10
|
export declare const MAX_AGENT_RINGS = 800;
|