@wrongstack/cli 0.286.0 → 0.289.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 +93 -1
- package/dist/arg-parser.d.ts.map +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/index.d.ts +1 -0
- package/dist/auth-menu/index.d.ts.map +1 -1
- package/dist/auth-menu/oauth-menu.d.ts +11 -0
- package/dist/auth-menu/oauth-menu.d.ts.map +1 -1
- package/dist/auth-menu/openai-codex-oauth.d.ts.map +1 -1
- package/dist/boot/dispatch-webui.d.ts +7 -0
- package/dist/boot/dispatch-webui.d.ts.map +1 -1
- package/dist/boot/launch-menu.d.ts +129 -0
- package/dist/boot/launch-menu.d.ts.map +1 -0
- package/dist/boot/short-circuit-hq.d.ts.map +1 -1
- package/dist/boot/simpleui-full-auto.d.ts +21 -0
- package/dist/boot/simpleui-full-auto.d.ts.map +1 -0
- package/dist/boot/system-prompt-builder.d.ts.map +1 -1
- package/dist/boot/tool-registry.d.ts.map +1 -1
- package/dist/boot/{tui-autophase-wiring.d.ts → tui-goal-wiring.d.ts} +6 -6
- package/dist/boot/tui-goal-wiring.d.ts.map +1 -0
- 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.map +1 -1
- package/dist/boot.d.ts +14 -0
- package/dist/boot.d.ts.map +1 -1
- package/dist/cli-context.d.ts +1 -0
- package/dist/cli-context.d.ts.map +1 -1
- package/dist/cli-entry-point.d.ts +19 -0
- package/dist/cli-entry-point.d.ts.map +1 -1
- package/dist/cli-main.d.ts.map +1 -1
- package/dist/config-doctor.d.ts.map +1 -1
- package/dist/execute-deps.d.ts +15 -1
- package/dist/execute-deps.d.ts.map +1 -1
- package/dist/execution.d.ts +3 -1
- package/dist/execution.d.ts.map +1 -1
- package/dist/fleet/host.d.ts +32 -46
- package/dist/fleet/host.d.ts.map +1 -1
- package/dist/fleet/status-broadcast.d.ts +4 -4
- package/dist/fleet/status-broadcast.d.ts.map +1 -1
- package/dist/{autophase-host.d.ts → goal-host.d.ts} +30 -30
- package/dist/goal-host.d.ts.map +1 -0
- package/dist/hq-server/auth.d.ts +27 -3
- package/dist/hq-server/auth.d.ts.map +1 -1
- package/dist/hq-server/snapshot.d.ts +4 -2
- package/dist/hq-server/snapshot.d.ts.map +1 -1
- package/dist/hq-server/utils.d.ts +9 -2
- package/dist/hq-server/utils.d.ts.map +1 -1
- package/dist/hq-server/ws.d.ts.map +1 -1
- package/dist/hq-server.d.ts +26 -0
- package/dist/hq-server.d.ts.map +1 -1
- package/dist/index.js +9136 -4970
- package/dist/index.js.map +4 -4
- package/dist/input-reader.d.ts +2 -0
- package/dist/input-reader.d.ts.map +1 -1
- package/dist/launch-hints.d.ts +5 -3
- package/dist/launch-hints.d.ts.map +1 -1
- package/dist/next-task-predictor.d.ts.map +1 -1
- package/dist/pre-launch/launch-prompts.d.ts +1 -4
- package/dist/pre-launch/launch-prompts.d.ts.map +1 -1
- package/dist/provider-id.d.ts +13 -0
- package/dist/provider-id.d.ts.map +1 -0
- package/dist/repl.d.ts.map +1 -1
- package/dist/services/project-facts.d.ts.map +1 -1
- package/dist/session-event-wiring.d.ts +8 -1
- package/dist/session-event-wiring.d.ts.map +1 -1
- package/dist/simpleui-dist.d.ts +7 -0
- package/dist/simpleui-dist.d.ts.map +1 -0
- package/dist/slash-commands/clear.d.ts +1 -1
- package/dist/slash-commands/clear.d.ts.map +1 -1
- package/dist/slash-commands/delegate.d.ts +1 -1
- package/dist/slash-commands/fallback.d.ts.map +1 -1
- package/dist/slash-commands/goal-refiner.d.ts +14 -2
- package/dist/slash-commands/goal-refiner.d.ts.map +1 -1
- package/dist/slash-commands/goal.d.ts +9 -0
- package/dist/slash-commands/goal.d.ts.map +1 -1
- package/dist/slash-commands/index.d.ts +33 -14
- package/dist/slash-commands/index.d.ts.map +1 -1
- package/dist/slash-commands/interrupt.d.ts +10 -0
- package/dist/slash-commands/interrupt.d.ts.map +1 -1
- package/dist/slash-commands/memory.d.ts.map +1 -1
- package/dist/slash-commands/mode.d.ts.map +1 -1
- package/dist/slash-commands/provider-status.d.ts +21 -0
- package/dist/slash-commands/provider-status.d.ts.map +1 -0
- package/dist/slash-commands/refiner.d.ts.map +1 -1
- package/dist/slash-commands/settings.d.ts.map +1 -1
- package/dist/slash-commands/spawn-agents.d.ts.map +1 -1
- package/dist/slash-commands/suggest.d.ts.map +1 -1
- package/dist/slash-commands/techstack.d.ts.map +1 -1
- package/dist/slash-commands/telegram-pairing.d.ts +41 -0
- package/dist/slash-commands/telegram-pairing.d.ts.map +1 -0
- package/dist/slash-commands/telegram-settings.d.ts.map +1 -1
- package/dist/slash-commands/telegram-setup.d.ts +13 -5
- package/dist/slash-commands/telegram-setup.d.ts.map +1 -1
- package/dist/slash-commands/tuneup.d.ts +1 -1
- package/dist/slash-commands/worktree.d.ts +1 -1
- package/dist/subcommands/handlers/auth.d.ts.map +1 -1
- package/dist/subcommands/handlers/chronicle.d.ts +4 -0
- package/dist/subcommands/handlers/chronicle.d.ts.map +1 -0
- 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/rewind.d.ts.map +1 -1
- package/dist/subcommands/handlers/update.d.ts +12 -1
- package/dist/subcommands/handlers/update.d.ts.map +1 -1
- package/dist/subcommands/handlers/version-help.d.ts.map +1 -1
- package/dist/subcommands/index.d.ts.map +1 -1
- package/dist/tuneup.d.ts.map +1 -1
- package/dist/update-check.d.ts +13 -2
- package/dist/update-check.d.ts.map +1 -1
- package/dist/webui-server/connection-handler.d.ts +8 -2
- package/dist/webui-server/connection-handler.d.ts.map +1 -1
- package/dist/webui-server/kanban-run-mirror.d.ts +77 -0
- package/dist/webui-server/kanban-run-mirror.d.ts.map +1 -0
- package/dist/webui-server/kanban-supervisor.d.ts +36 -0
- package/dist/webui-server/kanban-supervisor.d.ts.map +1 -0
- package/dist/webui-server/lifecycle.d.ts +6 -2
- package/dist/webui-server/lifecycle.d.ts.map +1 -1
- package/dist/webui-server/message-router.d.ts +8 -2
- package/dist/webui-server/message-router.d.ts.map +1 -1
- package/dist/webui-server/prefs-seeding.d.ts +1 -1
- package/dist/webui-server/prefs-seeding.d.ts.map +1 -1
- package/dist/webui-server/provider-config.d.ts +1 -1
- package/dist/webui-server/session-start-payload.d.ts.map +1 -1
- package/dist/webui-server/session-status-poll.d.ts +2 -0
- package/dist/webui-server/session-status-poll.d.ts.map +1 -1
- package/dist/webui-server/setup-events.d.ts +1 -1
- package/dist/webui-server/setup-events.d.ts.map +1 -1
- package/dist/webui-server/static-serve.d.ts +19 -3
- package/dist/webui-server/static-serve.d.ts.map +1 -1
- package/dist/webui-server/stream-coalescer.d.ts +8 -0
- package/dist/webui-server/stream-coalescer.d.ts.map +1 -1
- package/dist/webui-server/ws-handlers/agent-config.d.ts +31 -2
- package/dist/webui-server/ws-handlers/agent-config.d.ts.map +1 -1
- package/dist/webui-server/ws-handlers/context.d.ts +1 -1
- package/dist/webui-server/ws-handlers/index.d.ts +1 -1
- package/dist/webui-server/ws-handlers/index.d.ts.map +1 -1
- package/dist/webui-server/ws-handlers/kanban.d.ts +12 -0
- package/dist/webui-server/ws-handlers/kanban.d.ts.map +1 -1
- package/dist/webui-server/ws-handlers/prefs.d.ts +2 -0
- package/dist/webui-server/ws-handlers/prefs.d.ts.map +1 -1
- package/dist/webui-server/ws-handlers/providers.d.ts +10 -0
- package/dist/webui-server/ws-handlers/providers.d.ts.map +1 -1
- package/dist/webui-server/ws-handlers/sessions.d.ts.map +1 -1
- package/dist/webui-server/ws-handlers/worklist.d.ts +1 -1
- package/dist/webui-server.d.ts +15 -3
- package/dist/webui-server.d.ts.map +1 -1
- package/dist/wiring/brain-and-orchestration.d.ts +4 -1
- package/dist/wiring/brain-and-orchestration.d.ts.map +1 -1
- package/dist/wiring/codebase-index.d.ts.map +1 -1
- package/dist/wiring/controllers.d.ts +4 -0
- package/dist/wiring/controllers.d.ts.map +1 -1
- package/dist/wiring/plugins.d.ts.map +1 -1
- package/dist/wiring/provider-runtime-setup.d.ts +5 -1
- package/dist/wiring/provider-runtime-setup.d.ts.map +1 -1
- package/dist/wiring/sdd-handlers.d.ts +2 -0
- package/dist/wiring/sdd-handlers.d.ts.map +1 -0
- package/dist/wiring/session.d.ts +17 -0
- package/dist/wiring/session.d.ts.map +1 -1
- package/dist/wiring/slash-commands.d.ts +3 -1
- package/dist/wiring/slash-commands.d.ts.map +1 -1
- package/dist/wiring/super-memory.d.ts.map +1 -1
- package/dist/wiring/tools.d.ts.map +1 -1
- package/package.json +21 -18
- package/dist/autophase-host.d.ts.map +0 -1
- package/dist/boot/tui-autophase-wiring.d.ts.map +0 -1
- package/dist/slash-commands/autophase.d.ts +0 -13
- package/dist/slash-commands/autophase.d.ts.map +0 -1
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"telegram-pairing.d.ts","sourceRoot":"","sources":["../../src/slash-commands/telegram-pairing.ts"],"names":[],"mappings":"AAGA,UAAU,mBAAmB;IAC3B,EAAE,EAAE,MAAM,CAAC;IACX,MAAM,EAAE,OAAO,CAAC;CACjB;AAED,UAAU,mBAAmB;IAC3B,EAAE,EAAE,MAAM,CAAC;IACX,IAAI,EAAE,MAAM,CAAC;CACd;AAED,UAAU,sBAAsB;IAC9B,IAAI,CAAC,EAAE,mBAAmB,GAAG,SAAS,CAAC;IACvC,IAAI,EAAE,mBAAmB,CAAC;CAC3B;AAED,MAAM,WAAW,qBAAqB;IACpC,SAAS,EAAE,MAAM,CAAC;IAClB,OAAO,CAAC,EAAE,sBAAsB,GAAG,SAAS,CAAC;IAC7C,cAAc,CAAC,EAAE,sBAAsB,GAAG,SAAS,CAAC;CACrD;AAOD,MAAM,MAAM,uBAAuB,GAAG,SAAS,GAAG,OAAO,GAAG,YAAY,GAAG,SAAS,GAAG,SAAS,CAAC;AAEjG,MAAM,WAAW,wBAAwB;IACvC,MAAM,EAAE,MAAM,CAAC;IACf,MAAM,EAAE,MAAM,CAAC;IACf,QAAQ,EAAE,uBAAuB,CAAC;IAClC,QAAQ,EAAE,MAAM,CAAC;IACjB,QAAQ,EAAE,OAAO,CAAC;IAClB,OAAO,CAAC,EAAE,OAAO,GAAG,WAAW,GAAG,SAAS,CAAC;CAC7C;AAED,MAAM,MAAM,qBAAqB,GAC7B;IAAE,IAAI,EAAE,QAAQ,CAAA;CAAE,GAClB;IAAE,IAAI,EAAE,SAAS,CAAA;CAAE,GACnB;IAAE,IAAI,EAAE,UAAU,CAAC;IAAC,SAAS,EAAE,wBAAwB,CAAA;CAAE,CAAC;AAa9D,wBAAgB,gCAAgC,CAC9C,OAAO,EAAE,SAAS,qBAAqB,EAAE,GACxC,wBAAwB,EAAE,CA8C5B;AAED,yFAAyF;AACzF,wBAAsB,iCAAiC,CACrD,QAAQ,EAAE,MAAM,GACf,OAAO,CAAC,wBAAwB,EAAE,CAAC,CAcrC;AAED,wBAAgB,+BAA+B,CAC7C,UAAU,EAAE,SAAS,wBAAwB,EAAE,GAC9C,MAAM,CAaR;AAED,wBAAgB,0BAA0B,CACxC,KAAK,EAAE,MAAM,EACb,UAAU,EAAE,SAAS,wBAAwB,EAAE,GAC9C,qBAAqB,CAQvB"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"telegram-settings.d.ts","sourceRoot":"","sources":["../../src/slash-commands/telegram-settings.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,YAAY,EAAE,MAAM,kBAAkB,CAAC;
|
|
1
|
+
{"version":3,"file":"telegram-settings.d.ts","sourceRoot":"","sources":["../../src/slash-commands/telegram-settings.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,YAAY,EAAE,MAAM,kBAAkB,CAAC;AAKrD,OAAO,KAAK,EAAE,mBAAmB,EAAE,MAAM,YAAY,CAAC;AA6BtD,wBAAgB,4BAA4B,CAAC,IAAI,EAAE,mBAAmB,GAAG,YAAY,CAuNpF"}
|
|
@@ -1,11 +1,19 @@
|
|
|
1
1
|
import type { SlashCommand } from '@wrongstack/core';
|
|
2
2
|
import type { SlashCommandContext } from './index.js';
|
|
3
|
+
export type TelegramChatIdClassification = {
|
|
4
|
+
kind: 'private';
|
|
5
|
+
chatId: number;
|
|
6
|
+
} | {
|
|
7
|
+
kind: 'group';
|
|
8
|
+
chatId: number;
|
|
9
|
+
} | {
|
|
10
|
+
kind: 'invalid';
|
|
11
|
+
};
|
|
12
|
+
/** Classify a numeric Telegram ID without making the ID an authorization credential. */
|
|
13
|
+
export declare function classifyTelegramChatId(value: string): TelegramChatIdClassification;
|
|
3
14
|
/**
|
|
4
|
-
* `/telegram-setup` — configure the Telegram plugin
|
|
5
|
-
*
|
|
6
|
-
* Argument-driven (not interactive) so it works identically in the plain
|
|
7
|
-
* REPL and the Ink TUI. The bot token is validated against the Telegram
|
|
8
|
-
* API before being persisted.
|
|
15
|
+
* `/telegram-setup` — configure the Telegram plugin without putting its token
|
|
16
|
+
* in the command line, terminal history, TUI transcript, or plaintext config.
|
|
9
17
|
*/
|
|
10
18
|
export declare function buildTelegramSetupCommand(opts: SlashCommandContext): SlashCommand;
|
|
11
19
|
//# sourceMappingURL=telegram-setup.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"telegram-setup.d.ts","sourceRoot":"","sources":["../../src/slash-commands/telegram-setup.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,YAAY,EAAE,MAAM,kBAAkB,CAAC;AAGrD,OAAO,KAAK,EAAE,mBAAmB,EAAE,MAAM,YAAY,CAAC;
|
|
1
|
+
{"version":3,"file":"telegram-setup.d.ts","sourceRoot":"","sources":["../../src/slash-commands/telegram-setup.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,YAAY,EAAE,MAAM,kBAAkB,CAAC;AAGrD,OAAO,KAAK,EAAE,mBAAmB,EAAE,MAAM,YAAY,CAAC;AA+BtD,MAAM,MAAM,4BAA4B,GACpC;IAAE,IAAI,EAAE,SAAS,CAAC;IAAC,MAAM,EAAE,MAAM,CAAA;CAAE,GACnC;IAAE,IAAI,EAAE,OAAO,CAAC;IAAC,MAAM,EAAE,MAAM,CAAA;CAAE,GACjC;IAAE,IAAI,EAAE,SAAS,CAAA;CAAE,CAAC;AAExB,wFAAwF;AACxF,wBAAgB,sBAAsB,CAAC,KAAK,EAAE,MAAM,GAAG,4BAA4B,CAMlF;AAED;;;GAGG;AACH,wBAAgB,yBAAyB,CAAC,IAAI,EAAE,mBAAmB,GAAG,YAAY,CAmOjF"}
|
|
@@ -7,7 +7,7 @@ import type { SlashCommandContext } from './index.js';
|
|
|
7
7
|
* Where `/doctor` repairs the config JSON, `/tuneup` sweeps the wider setup and
|
|
8
8
|
* suggests the config knobs that make a session faster and more resilient.
|
|
9
9
|
* Report-only by default; `/tuneup fix` applies the safe deterministic subset,
|
|
10
|
-
* `/tuneup fix --power` also enables the autonomy/yolo
|
|
10
|
+
* `/tuneup fix --power` also enables the autonomy/yolo profile (explicit
|
|
11
11
|
* opt-in so a plain tune-up never flips those), and `/tuneup deep` hands the
|
|
12
12
|
* findings to the agent for a project-specific optimization plan.
|
|
13
13
|
*/
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import type { SlashCommand } from '@wrongstack/core';
|
|
2
2
|
import type { SlashCommandContext } from './index.js';
|
|
3
3
|
/**
|
|
4
|
-
* /worktree — inspect and manage the git worktrees
|
|
4
|
+
* /worktree — inspect and manage the git worktrees Goal uses for per-phase
|
|
5
5
|
* isolation. Subcommands: list (default), merge <branch>, prune, clean.
|
|
6
6
|
*/
|
|
7
7
|
export declare function buildWorktreeCommand(opts: SlashCommandContext): SlashCommand;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"auth.d.ts","sourceRoot":"","sources":["../../../src/subcommands/handlers/auth.ts"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"auth.d.ts","sourceRoot":"","sources":["../../../src/subcommands/handlers/auth.ts"],"names":[],"mappings":"AAeA,OAAO,KAAK,EAAE,iBAAiB,EAAE,MAAM,aAAa,CAAC;AAErD,eAAO,MAAM,OAAO,EAAE,iBAyErB,CAAC"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"chronicle.d.ts","sourceRoot":"","sources":["../../../src/subcommands/handlers/chronicle.ts"],"names":[],"mappings":"AAMA,OAAO,KAAK,EAAE,iBAAiB,EAAE,MAAM,aAAa,CAAC;AAOrD,sEAAsE;AACtE,eAAO,MAAM,YAAY,EAAE,iBAyB1B,CAAC"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"hq.d.ts","sourceRoot":"","sources":["../../../src/subcommands/handlers/hq.ts"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"hq.d.ts","sourceRoot":"","sources":["../../../src/subcommands/handlers/hq.ts"],"names":[],"mappings":"AAgCA,OAAO,KAAK,EAAkB,iBAAiB,EAAE,MAAM,aAAa,CAAC;AAOrE,eAAO,MAAM,KAAK,EAAE,iBAoBnB,CAAC"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"mailbox-serve.d.ts","sourceRoot":"","sources":["../../../src/subcommands/handlers/mailbox-serve.ts"],"names":[],"mappings":"AAoFA,OAAO,KAAK,EAAkB,iBAAiB,EAAE,MAAM,aAAa,CAAC;
|
|
1
|
+
{"version":3,"file":"mailbox-serve.d.ts","sourceRoot":"","sources":["../../../src/subcommands/handlers/mailbox-serve.ts"],"names":[],"mappings":"AAoFA,OAAO,KAAK,EAAkB,iBAAiB,EAAE,MAAM,aAAa,CAAC;AAKrE,eAAO,MAAM,eAAe,EAAE,iBAc7B,CAAC"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"rewind.d.ts","sourceRoot":"","sources":["../../../src/subcommands/handlers/rewind.ts"],"names":[],"mappings":"AAQA,OAAO,KAAK,EAAE,iBAAiB,EAAE,MAAM,aAAa,CAAC;AAwCrD,eAAO,MAAM,SAAS,EAAE,
|
|
1
|
+
{"version":3,"file":"rewind.d.ts","sourceRoot":"","sources":["../../../src/subcommands/handlers/rewind.ts"],"names":[],"mappings":"AAQA,OAAO,KAAK,EAAE,iBAAiB,EAAE,MAAM,aAAa,CAAC;AAwCrD,eAAO,MAAM,SAAS,EAAE,iBAgIvB,CAAC"}
|
|
@@ -1,7 +1,18 @@
|
|
|
1
|
-
import type {
|
|
1
|
+
import type { TerminalRenderer } from '../../renderer.js';
|
|
2
|
+
import { type UpdatePackageName } from '../../update-check.js';
|
|
3
|
+
import type { SubcommandDeps, SubcommandHandler } from '../index.js';
|
|
2
4
|
type PackageManager = 'npm' | 'pnpm' | 'yarn' | 'bun';
|
|
5
|
+
export interface UpdateCommandDeps {
|
|
6
|
+
cwd: string;
|
|
7
|
+
userHome: string;
|
|
8
|
+
renderer: Pick<TerminalRenderer, 'write'>;
|
|
9
|
+
flags?: SubcommandDeps['flags'] | undefined;
|
|
10
|
+
}
|
|
3
11
|
/** `wrongstack update` — Update the CLI via the detected global package manager. */
|
|
12
|
+
export declare function runUpdateCommand(args: string[], deps: UpdateCommandDeps): Promise<number>;
|
|
4
13
|
export declare const updateCmd: SubcommandHandler;
|
|
5
14
|
export declare function detectUpdatePackageManager(env?: NodeJS.ProcessEnv, argv?: string[]): PackageManager;
|
|
15
|
+
/** Detect whether the running binary belongs to the umbrella or direct CLI package. */
|
|
16
|
+
export declare function detectUpdatePackageName(argv?: string[]): UpdatePackageName;
|
|
6
17
|
export {};
|
|
7
18
|
//# sourceMappingURL=update.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"update.d.ts","sourceRoot":"","sources":["../../../src/subcommands/handlers/update.ts"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"update.d.ts","sourceRoot":"","sources":["../../../src/subcommands/handlers/update.ts"],"names":[],"mappings":"AAEA,OAAO,KAAK,EAAE,gBAAgB,EAAE,MAAM,mBAAmB,CAAC;AAC1D,OAAO,EAAkB,KAAK,iBAAiB,EAAE,MAAM,uBAAuB,CAAC;AAE/E,OAAO,KAAK,EAAE,cAAc,EAAE,iBAAiB,EAAE,MAAM,aAAa,CAAC;AAErE,KAAK,cAAc,GAAG,KAAK,GAAG,MAAM,GAAG,MAAM,GAAG,KAAK,CAAC;AA0BtD,MAAM,WAAW,iBAAiB;IAChC,GAAG,EAAE,MAAM,CAAC;IACZ,QAAQ,EAAE,MAAM,CAAC;IACjB,QAAQ,EAAE,IAAI,CAAC,gBAAgB,EAAE,OAAO,CAAC,CAAC;IAC1C,KAAK,CAAC,EAAE,cAAc,CAAC,OAAO,CAAC,GAAG,SAAS,CAAC;CAC7C;AAED,oFAAoF;AACpF,wBAAsB,gBAAgB,CAAC,IAAI,EAAE,MAAM,EAAE,EAAE,IAAI,EAAE,iBAAiB,GAAG,OAAO,CAAC,MAAM,CAAC,CAoI/F;AAED,eAAO,MAAM,SAAS,EAAE,iBAAsE,CAAC;AA8E/F,wBAAgB,0BAA0B,CACxC,GAAG,GAAE,MAAM,CAAC,UAAwB,EACpC,IAAI,GAAE,MAAM,EAAiB,GAC5B,cAAc,CA2BhB;AAED,uFAAuF;AACvF,wBAAgB,uBAAuB,CAAC,IAAI,GAAE,MAAM,EAAiB,GAAG,iBAAiB,CAKxF"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"version-help.d.ts","sourceRoot":"","sources":["../../../src/subcommands/handlers/version-help.ts"],"names":[],"mappings":"AAGA,OAAO,KAAK,EAAE,iBAAiB,EAAE,MAAM,aAAa,CAAC;AAErD,eAAO,MAAM,UAAU,EAAE,iBAKxB,CAAC;AAEF,eAAO,MAAM,OAAO,EAAE,
|
|
1
|
+
{"version":3,"file":"version-help.d.ts","sourceRoot":"","sources":["../../../src/subcommands/handlers/version-help.ts"],"names":[],"mappings":"AAGA,OAAO,KAAK,EAAE,iBAAiB,EAAE,MAAM,aAAa,CAAC;AAErD,eAAO,MAAM,UAAU,EAAE,iBAKxB,CAAC;AAEF,eAAO,MAAM,OAAO,EAAE,iBA6DrB,CAAC"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../src/subcommands/index.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EACV,MAAM,EACN,cAAc,EACd,WAAW,EACX,YAAY,EACZ,WAAW,EACX,YAAY,EACZ,WAAW,EACZ,MAAM,kBAAkB,CAAC;AAC1B,OAAO,KAAK,EAAE,mBAAmB,EAAE,MAAM,oBAAoB,CAAC;AAC9D,OAAO,KAAK,EAAE,gBAAgB,EAAE,MAAM,gBAAgB,CAAC;AAEvD,MAAM,MAAM,iBAAiB,GAAG,CAAC,IAAI,EAAE,MAAM,EAAE,EAAE,IAAI,EAAE,cAAc,KAAK,OAAO,CAAC,MAAM,CAAC,CAAC;AAE1F,MAAM,WAAW,cAAc;IAC7B,MAAM,EAAE,MAAM,CAAC;IACf,QAAQ,EAAE,gBAAgB,CAAC;IAC3B,MAAM,EAAE,mBAAmB,CAAC;IAC5B,YAAY,CAAC,EAAE,YAAY,GAAG,SAAS,CAAC;IACxC,WAAW,CAAC,EAAE,WAAW,GAAG,SAAS,CAAC;IACtC,YAAY,CAAC,EAAE,YAAY,GAAG,SAAS,CAAC;IACxC,cAAc,EAAE,cAAc,CAAC;IAC/B,KAAK,EAAE,WAAW,CAAC;IACnB,KAAK,EAAE,WAAW,CAAC;IACnB,GAAG,EAAE,MAAM,CAAC;IACZ,WAAW,EAAE,MAAM,CAAC;IACpB,QAAQ,EAAE,MAAM,CAAC;IACjB;;;;OAIG;IACH,KAAK,CAAC,EAAE,MAAM,CAAC,MAAM,EAAE,MAAM,GAAG,OAAO,CAAC,CAAC;CAC1C;
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../src/subcomm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,CAehE;AAeD,wBAAgB,gBAAgB,CAAC,KAAK,EAAE,WAAW,GAAG,aAAa,EAAE,CAoCpE;AAED,wBAAgB,eAAe,CAAC,KAAK,EAAE,WAAW,GAAG,aAAa,EAAE,CAiBnE;AAID,wBAAgB,UAAU,CAAC,KAAK,EAAE,WAAW,GAAG,aAAa,EAAE,CAmC9D;AASD,wBAAgB,YAAY,CAAC,KAAK,EAAE,WAAW,GAAG,aAAa,EAAE,CAehE;AAID,wBAAgB,aAAa,CAAC,KAAK,EAAE,WAAW,GAAG,aAAa,EAAE,CAwBjE;AAED,+EAA+E;AAC/E,wBAAgB,iBAAiB,CAAC,KAAK,EAAE,WAAW,GAAG,aAAa,EAAE,CAkBrE;AAID,wBAAgB,gBAAgB,CAAC,KAAK,EAAE,WAAW,GAAG,aAAa,EAAE,CA0CpE;AAID,wBAAgB,gBAAgB,CAAC,KAAK,EAAE,WAAW,GAAG,aAAa,EAAE,CA0EpE;AAID,wBAAgB,gBAAgB,CAAC,KAAK,EAAE,WAAW,GAAG,aAAa,EAAE,CAkCpE;AAID,wBAAgB,iBAAiB,CAAC,KAAK,EAAE,WAAW,GAAG,aAAa,EAAE,CAWrE;AAID,oEAAoE;AACpE,wBAAgB,SAAS,CAAC,KAAK,EAAE,WAAW,GAAG,YAAY,CAwB1D;AAED;;;;GAIG;AACH,wBAAgB,eAAe,CAAC,MAAM,EAAE,YAAY,GAAG,MAAM,CAiB5D"}
|
package/dist/update-check.d.ts
CHANGED
|
@@ -5,17 +5,28 @@ export interface UpdateInfo {
|
|
|
5
5
|
checkFailed: boolean;
|
|
6
6
|
}
|
|
7
7
|
type HomeDirFn = () => string;
|
|
8
|
+
export type UpdatePackageName = 'wrongstack' | '@wrongstack/cli';
|
|
8
9
|
/** Cache file path — homeFn is injectable for testing */
|
|
9
10
|
export declare function cachePath(homeFn?: HomeDirFn): string;
|
|
10
11
|
/** Read the current CLI version from package.json */
|
|
11
12
|
export declare function currentVersion(): string;
|
|
13
|
+
/** SemVer comparison — returns true if a > b. Invalid versions are never considered newer. */
|
|
14
|
+
export declare function isNewer(a: string, b: string): boolean;
|
|
12
15
|
/** Fetch latest version from npm registry. Exported for testability and for
|
|
13
16
|
* callers that want to do their own version checks. Throws a structured
|
|
14
17
|
* `FetchError(status, context: { op: 'checkForUpdate', registry: 'npmjs', url })`
|
|
15
18
|
* on non-2xx responses so consumers can branch on the structured shape. */
|
|
16
19
|
export declare function fetchLatestFromNpm(timeoutMs?: number): Promise<string>;
|
|
17
|
-
|
|
18
|
-
export
|
|
20
|
+
export declare function fetchLatestFromNpm(packageName: UpdatePackageName, timeoutMs?: number, signal?: AbortSignal | undefined): Promise<string>;
|
|
21
|
+
export interface CheckForUpdateOptions {
|
|
22
|
+
signal?: AbortSignal | undefined;
|
|
23
|
+
homeFn?: HomeDirFn | undefined;
|
|
24
|
+
packageName?: UpdatePackageName | undefined;
|
|
25
|
+
/** Manual update commands require a live registry result rather than a notification cache hit. */
|
|
26
|
+
forceRefresh?: boolean | undefined;
|
|
27
|
+
}
|
|
28
|
+
/** Return update info — cache-first for notices, fresh registry data for manual updates. */
|
|
29
|
+
export declare function checkForUpdate(signalOrOptions?: AbortSignal | CheckForUpdateOptions | undefined, legacyHomeFn?: HomeDirFn | undefined): Promise<UpdateInfo>;
|
|
19
30
|
/** Return update notification string if available, null otherwise */
|
|
20
31
|
export declare function getUpdateNotification(signal?: AbortSignal | undefined, homeFn?: HomeDirFn | undefined): Promise<string | null>;
|
|
21
32
|
export {};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"update-check.d.ts","sourceRoot":"","sources":["../src/update-check.ts"],"names":[],"mappings":"AAMA,MAAM,WAAW,UAAU;IACzB,OAAO,EAAE,MAAM,CAAC;IAChB,MAAM,EAAE,MAAM,CAAC;IACf,QAAQ,EAAE,OAAO,CAAC;IAClB,WAAW,EAAE,OAAO,CAAC;CACtB;AAED,KAAK,SAAS,GAAG,MAAM,MAAM,CAAC;
|
|
1
|
+
{"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AgDrB;AAED,qEAAqE;AACrE,wBAAsB,qBAAqB,CACzC,MAAM,CAAC,EAAE,WAAW,GAAG,SAAS,EAChC,MAAM,CAAC,EAAE,SAAS,GAAG,SAAS,GAC7B,OAAO,CAAC,MAAM,GAAG,IAAI,CAAC,CAMxB"}
|
|
@@ -12,7 +12,7 @@
|
|
|
12
12
|
*/
|
|
13
13
|
import type { IncomingMessage } from 'node:http';
|
|
14
14
|
import type { Message, Usage } from '@wrongstack/core';
|
|
15
|
-
import type {
|
|
15
|
+
import type { GoalWebSocketHandler, SddBoardWebSocketHandler, SddWizardWebSocketHandler, SpecsWebSocketHandler, TerminalWebSocketHandler, WorktreeWebSocketHandler } from '@wrongstack/webui-server';
|
|
16
16
|
import type { WebSocket } from 'ws';
|
|
17
17
|
import { type PendingConfirm } from './ws-handlers/index.js';
|
|
18
18
|
import type { WSClientMessage, WSServerMessage } from '../webui-server.js';
|
|
@@ -28,7 +28,7 @@ export interface ConnectionHandlerDeps {
|
|
|
28
28
|
publicWsUrl: string | undefined;
|
|
29
29
|
clients: Map<WebSocket, ConnectedClient>;
|
|
30
30
|
currentSessionId: () => string;
|
|
31
|
-
|
|
31
|
+
goalHandler: GoalWebSocketHandler;
|
|
32
32
|
specsHandler: SpecsWebSocketHandler;
|
|
33
33
|
sddBoardHandler: SddBoardWebSocketHandler;
|
|
34
34
|
sddWizardHandler: SddWizardWebSocketHandler | null;
|
|
@@ -53,6 +53,12 @@ export interface ConnectionHandlerDeps {
|
|
|
53
53
|
messages: Message[];
|
|
54
54
|
usage?: Usage | undefined;
|
|
55
55
|
} | null>) | undefined;
|
|
56
|
+
/**
|
|
57
|
+
* Read-only worker transcript snapshot for browser refresh/resume. Async
|
|
58
|
+
* because a resumed process has an empty ring and must read the transcripts
|
|
59
|
+
* back from disk.
|
|
60
|
+
*/
|
|
61
|
+
loadAgentSessions?: (() => Promise<import('@wrongstack/core/coordination').AgentVirtualSession[]>) | undefined;
|
|
56
62
|
needsSetup: boolean;
|
|
57
63
|
}
|
|
58
64
|
export declare function createConnectionHandler(deps: ConnectionHandlerDeps): (ws: WebSocket, req: IncomingMessage) => Promise<void>;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"connection-handler.d.ts","sourceRoot":"","sources":["../../src/webui-server/connection-handler.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;GAWG;AACH,OAAO,KAAK,EAAE,eAAe,EAAE,MAAM,WAAW,CAAC;AACjD,OAAO,KAAK,EAAE,OAAO,EAAE,KAAK,EAAE,MAAM,kBAAkB,CAAC;AACvD,OAAO,KAAK,EACV,
|
|
1
|
+
{"version":3,"file":"connection-handler.d.ts","sourceRoot":"","sources":["../../src/webui-server/connection-handler.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;GAWG;AACH,OAAO,KAAK,EAAE,eAAe,EAAE,MAAM,WAAW,CAAC;AACjD,OAAO,KAAK,EAAE,OAAO,EAAE,KAAK,EAAE,MAAM,kBAAkB,CAAC;AACvD,OAAO,KAAK,EACV,oBAAoB,EACpB,wBAAwB,EACxB,yBAAyB,EACzB,qBAAqB,EACrB,wBAAwB,EACxB,wBAAwB,EACzB,MAAM,0BAA0B,CAAC;AAElC,OAAO,KAAK,EAAE,SAAS,EAAE,MAAM,IAAI,CAAC;AACpC,OAAO,EAA6B,KAAK,cAAc,EAAE,MAAM,wBAAwB,CAAC;AACxF,OAAO,KAAK,EAAE,eAAe,EAAE,eAAe,EAAE,MAAM,oBAAoB,CAAC;AAE3E,MAAM,WAAW,eAAe;IAC9B,EAAE,EAAE,SAAS,CAAC;IACd,SAAS,EAAE,MAAM,GAAG,IAAI,CAAC;CAC1B;AAYD,MAAM,WAAW,qBAAqB;IACpC,IAAI,EAAE,MAAM,CAAC;IACb,OAAO,EAAE,MAAM,CAAC;IAChB,YAAY,EAAE,OAAO,CAAC;IACtB,eAAe,EAAE,MAAM,EAAE,CAAC;IAC1B,WAAW,EAAE,MAAM,GAAG,SAAS,CAAC;IAChC,OAAO,EA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AAiB,CAAC,EACd,CAAC,MAAM,OAAO,CAAC,OAAO,+BAA+B,EAAE,mBAAmB,EAAE,CAAC,CAAC,GAC9E,SAAS,CAAC;IACd,UAAU,EAAE,OAAO,CAAC;CACrB;AAED,wBAAgB,uBAAuB,CACrC,IAAI,EAAE,qBAAqB,GAC1B,CAAC,EAAE,EAAE,SAAS,EAAE,GAAG,EAAE,eAAe,KAAK,OAAO,CAAC,IAAI,CAAC,CAgMxD"}
|
|
@@ -0,0 +1,77 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* KanbanRunMirror — projects live Goal / SDD runs into `@wrongstack/kanban`
|
|
3
|
+
* boards so the kanban view becomes the unified LIVE surface for both engines.
|
|
4
|
+
*
|
|
5
|
+
* It is fed two ways (both in the CLI-hosted webui-server process, the only
|
|
6
|
+
* place with the shared EventBus + both live handlers):
|
|
7
|
+
* - SDD: subscribe to `sdd.board.snapshot` on the shared bus.
|
|
8
|
+
* - Goal: a callback tap on `GoalWebSocketHandler` (that orchestrator
|
|
9
|
+
* does NOT emit PhaseEventMap on the bus), delivering its `buildState()`.
|
|
10
|
+
*
|
|
11
|
+
* Each run maps to ONE kanban board. Linkage lives in board TAGS (not
|
|
12
|
+
* generatedBy, which `syncBoardFromTaskGraph` overwrites):
|
|
13
|
+
* ['sdd', 'run:<runId>', 'graph:<graphId>'] or ['goal', 'graph:<graphId>']
|
|
14
|
+
*
|
|
15
|
+
* Reconcile per tick is a two-pass, both idempotent:
|
|
16
|
+
* 1. `syncBoardFromTaskGraph` — structure + status→column + deps + origin-keyed
|
|
17
|
+
* create/update/archive.
|
|
18
|
+
* 2. targeted, diff-guarded `updateTaskAssignment` overlay for the LIVE subset
|
|
19
|
+
* only (running/completed/failed/cancelled/assigned tasks) so the inspector's
|
|
20
|
+
* AgentRunPanel lights up with the real worker + model — without fabricating
|
|
21
|
+
* phantom assignments or a per-tick event storm.
|
|
22
|
+
*/
|
|
23
|
+
import type { EventBus } from '@wrongstack/core';
|
|
24
|
+
import { type SerializedTaskGraph, type TaskNode } from '@wrongstack/core';
|
|
25
|
+
import type { SddBoardSnapshot } from '@wrongstack/sdd';
|
|
26
|
+
type Engine = 'sdd' | 'goal';
|
|
27
|
+
interface WSServerMessage {
|
|
28
|
+
type: string;
|
|
29
|
+
payload: unknown;
|
|
30
|
+
}
|
|
31
|
+
export interface KanbanRunMirrorDeps {
|
|
32
|
+
projectRoot: string;
|
|
33
|
+
events?: EventBus | undefined;
|
|
34
|
+
broadcast: (msg: WSServerMessage) => void;
|
|
35
|
+
log?: ((msg: string) => void) | undefined;
|
|
36
|
+
}
|
|
37
|
+
/** Loose shape of the Goal `buildState()` projection we consume. */
|
|
38
|
+
interface GoalState {
|
|
39
|
+
title?: string;
|
|
40
|
+
goal?: string;
|
|
41
|
+
phases?: Array<{
|
|
42
|
+
id: string;
|
|
43
|
+
name?: string;
|
|
44
|
+
tasks?: Array<{
|
|
45
|
+
id: string;
|
|
46
|
+
title: string;
|
|
47
|
+
description?: string;
|
|
48
|
+
status: TaskNode['status'];
|
|
49
|
+
priority: TaskNode['priority'];
|
|
50
|
+
type: TaskNode['type'];
|
|
51
|
+
assignee?: string;
|
|
52
|
+
startedAt?: number;
|
|
53
|
+
completedAt?: number;
|
|
54
|
+
}>;
|
|
55
|
+
}>;
|
|
56
|
+
}
|
|
57
|
+
export interface KanbanRunMirror {
|
|
58
|
+
/** Goal tap — the handler's `onBoardState(graphId, state)` callback. */
|
|
59
|
+
onGoalState(graphId: string, state: Record<string, unknown>): void;
|
|
60
|
+
/** Bind a runId to a specific board (used by launch-from-board, phase 4). */
|
|
61
|
+
bind(engine: Engine, key: string, boardId: string): void;
|
|
62
|
+
/**
|
|
63
|
+
* One-shot: the NEXT Goal run whose graphId we haven't seen binds to this
|
|
64
|
+
* board instead of creating a new one. Used by launch-from-board — the graphId
|
|
65
|
+
* is only known after the async build, so we can't `bind()` up front.
|
|
66
|
+
*/
|
|
67
|
+
bindGoalNext(boardId: string): void;
|
|
68
|
+
dispose(): void;
|
|
69
|
+
}
|
|
70
|
+
export declare function createKanbanRunMirror(deps: KanbanRunMirrorDeps): KanbanRunMirror;
|
|
71
|
+
/** Build a serialized TaskGraph from an SDD board snapshot (faithful; runtime in metadata). */
|
|
72
|
+
export declare function buildTaskGraphFromSddSnapshot(snapshot: SddBoardSnapshot): SerializedTaskGraph;
|
|
73
|
+
type GoalPhase = NonNullable<GoalState['phases']>[number];
|
|
74
|
+
/** Build a serialized TaskGraph for one Goal phase (graph.id = RUN graphId; phase scoped via sync phaseId). */
|
|
75
|
+
export declare function buildTaskGraphFromGoalPhase(graphId: string, title: string, phase: GoalPhase): SerializedTaskGraph;
|
|
76
|
+
export {};
|
|
77
|
+
//# sourceMappingURL=kanban-run-mirror.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"kanban-run-mirror.d.ts","sourceRoot":"","sources":["../../src/webui-server/kanban-run-mirror.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;;;;;;;;GAqBG;AAEH,OAAO,KAAK,EAAE,QAAQ,EAAE,MAAM,kBAAkB,CAAC;AACjD,OAAO,EAEL,KAAK,mBAAmB,EAExB,KAAK,QAAQ,EACd,MAAM,kBAAkB,CAAC;AAW1B,OAAO,KAAK,EAAE,gBAAgB,EAAgB,MAAM,iBAAiB,CAAC;AAEtE,KAAK,MAAM,GAAG,KAAK,GAAG,MAAM,CAAC;AAE7B,UAAU,eAAe;IACvB,IAAI,EAAE,MAAM,CAAC;IACb,OAAO,EAAE,OAAO,CAAC;CAClB;AAED,MAAM,WAAW,mBAAmB;IAClC,WAAW,EAAE,MAAM,CAAC;IACpB,MAAM,CAAC,EAAE,QAAQ,GAAG,SAAS,CAAC;IAC9B,SAAS,EAAE,CAAC,GAAG,EAAE,eAAe,KAAK,IAAI,CAAC;IAC1C,GAAG,CAAC,EAAE,CAAC,CAAC,GAAG,EAAE,MAAM,KAAK,IAAI,CAAC,GAAG,SAAS,CAAC;CAC3C;AAED,oEAA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C,CAAC;AAE1D,+GAA+G;AAC/G,wBAAgB,2BAA2B,CACzC,OAAO,EAAE,MAAM,EACf,KAAK,EAAE,MAAM,EACb,KAAK,EAAE,SAAS,GACf,mBAAmB,CAiBrB"}
|
|
@@ -0,0 +1,36 @@
|
|
|
1
|
+
import { type KanbanSupervisorSnapshot } from '@wrongstack/kanban';
|
|
2
|
+
interface DispatchOptions {
|
|
3
|
+
provider?: string | undefined;
|
|
4
|
+
model?: string | undefined;
|
|
5
|
+
fallbackProfile?: string | undefined;
|
|
6
|
+
fallbackModels?: string[] | undefined;
|
|
7
|
+
skills?: string[] | undefined;
|
|
8
|
+
name?: string | undefined;
|
|
9
|
+
onDone?: ((result: {
|
|
10
|
+
status: 'completed' | 'failed';
|
|
11
|
+
result?: string | undefined;
|
|
12
|
+
error?: string | undefined;
|
|
13
|
+
}) => void | Promise<void>) | undefined;
|
|
14
|
+
}
|
|
15
|
+
export interface KanbanSupervisorDeps {
|
|
16
|
+
projectRoot: string;
|
|
17
|
+
broadcast: (message: {
|
|
18
|
+
type: string;
|
|
19
|
+
payload: unknown;
|
|
20
|
+
}) => void;
|
|
21
|
+
dispatchTask?: ((description: string, opts?: DispatchOptions) => Promise<string>) | undefined;
|
|
22
|
+
log?: ((message: string) => void) | undefined;
|
|
23
|
+
}
|
|
24
|
+
export interface KanbanSupervisor {
|
|
25
|
+
getSnapshot(boardId: string): KanbanSupervisorSnapshot | undefined;
|
|
26
|
+
auditNow(boardId?: string): Promise<KanbanSupervisorSnapshot[]>;
|
|
27
|
+
dispose(): void;
|
|
28
|
+
}
|
|
29
|
+
/**
|
|
30
|
+
* Quiet, project-local board custodian. The frequent pass is deterministic and
|
|
31
|
+
* free; an LLM is spawned only when the board explicitly opts into agentic mode
|
|
32
|
+
* and the health snapshot contains an anomaly.
|
|
33
|
+
*/
|
|
34
|
+
export declare function createKanbanSupervisor(deps: KanbanSupervisorDeps): KanbanSupervisor;
|
|
35
|
+
export {};
|
|
36
|
+
//# sourceMapping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B;IAC/B,WAAW,CAAC,OAAO,EAAE,MAAM,GAAG,wBAAwB,GAAG,SAAS,CAAC;IACnE,QAAQ,CAAC,OAAO,CAAC,EAAE,MAAM,GAAG,OAAO,CAAC,wBAAwB,EAAE,CAAC,CAAC;IAChE,OAAO,IAAI,IAAI,CAAC;CACjB;AAaD;;;;GAIG;AACH,wBAAgB,sBAAsB,CAAC,IAAI,EAAE,oBAAoB,GAAG,gBAAgB,CAkNnF"}
|
|
@@ -1,11 +1,11 @@
|
|
|
1
|
-
import { type WebUIInstanceRecord } from '@wrongstack/webui
|
|
1
|
+
import { type SurfaceKind, type WebUIInstanceRecord } from '@wrongstack/webui-server';
|
|
2
2
|
/**
|
|
3
3
|
* PR 7 of Issue #30 (webui-server 8-PR refactor): process lifecycle.
|
|
4
4
|
*
|
|
5
5
|
* Three concerns pulled out of the ~3000-line `runWebUI` body:
|
|
6
6
|
*
|
|
7
7
|
* - `registerWebuiInstance` — record this embedded WebUI in the shared
|
|
8
|
-
* running-instance registry (so `
|
|
8
|
+
* running-instance registry (so `wstack --webui --list` sees it).
|
|
9
9
|
* - `announceWebuiReady` — log the ready banner and pop the browser
|
|
10
10
|
* once the HTTP server is listening.
|
|
11
11
|
* - `createWebuiShutdown` + `registerWebuiSignalHandlers` — the
|
|
@@ -20,6 +20,8 @@ import { type WebUIInstanceRecord } from '@wrongstack/webui/server';
|
|
|
20
20
|
*/
|
|
21
21
|
export interface RegisterWebuiInstanceParams {
|
|
22
22
|
pid: number;
|
|
23
|
+
/** Surface kind — 'webui' or 'simpleui'. */
|
|
24
|
+
surface: SurfaceKind;
|
|
23
25
|
host: string;
|
|
24
26
|
httpPort: number;
|
|
25
27
|
wsPort: number;
|
|
@@ -42,6 +44,8 @@ export interface RegisterWebuiInstanceDeps {
|
|
|
42
44
|
*/
|
|
43
45
|
export declare function registerWebuiInstance(p: RegisterWebuiInstanceParams, deps?: RegisterWebuiInstanceDeps): void;
|
|
44
46
|
export interface AnnounceWebuiReadyParams {
|
|
47
|
+
/** Surface kind — 'webui' or 'simpleui'. */
|
|
48
|
+
surface: SurfaceKind;
|
|
45
49
|
/** The HTTP server (StaticServeHandle.server). */
|
|
46
50
|
server: {
|
|
47
51
|
on: (event: 'listening', cb: () => void) => void;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"lifecycle.d.ts","sourceRoot":"","sources":["../../src/webui-server/lifecycle.ts"],"names":[],"mappings":"AACA,OAAO,EAKL,KAAK,mBAAmB,EACzB,MAAM,0BAA0B,CAAC;AAElC;;;;;;;;;;;;;;;;;;GAkBG;AAIH,MAAM,WAAW,2BAA2B;IAC1C,GAAG,EAAE,MAAM,CAAC;IACZ,IAAI,EAAE,MAAM,CAAC;IACb,QAAQ,EAAE,MAAM,CAAC;IACjB,MAAM,EAAE,MAAM,CAAC;IACf,oEAAoE;IACpE,SAAS,CAAC,EAAE,MAAM,GAAG,SAAS,CAAC;IAC/B,WAAW,EAAE,MAAM,CAAC;IACpB,kDAAkD;IAClD,SAAS,EAAE,MAAM,CAAC;IAClB,qFAAqF;IACrF,eAAe,EAAE,MAAM,GAAG,SAAS,CAAC;CACrC;AAED,MAAM,WAAW,yBAAyB;IACxC,UAAU,CAAC,EAAE,CAAC,MAAM,EAAE,mBAAmB,EAAE,OAAO,CAAC,EAAE,MAAM,KAAK,OAAO,CAAC,IAAI,CAAC,CAAC;CAC/E;AAED;;;;;GAKG;AACH,wBAAgB,qBAAqB,CACnC,CAAC,EAAE,2BAA2B,EAC9B,IAAI,GAAE,yBAA8B,GACnC,IAAI,
|
|
1
|
+
{"version":3,"file":"lifecycle.d.ts","sourceRoot":"","sources":["../../src/webui-server/lifecycle.ts"],"names":[],"mappings":"AACA,OAAO,EAKL,KAAK,WAAW,EAChB,KAAK,mBAAmB,EACzB,MAAM,0BAA0B,CAAC;AAElC;;;;;;;;;;;;;;;;;;GAkBG;AAIH,MAAM,WAAW,2BAA2B;IAC1C,GAAG,EAAE,MAAM,CAAC;IACZ,4CAA4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AAI,CAmBpE;AAID,MAAM,WAAW,sBAAsB;IACrC,8FAA8F;IAC9F,aAAa,EAAE,MAAM,IAAI,CAAC;IAC1B,iDAAiD;IACjD,iBAAiB,EAAE,MAAM,IAAI,CAAC;IAC9B,6DAA6D;IAC7D,YAAY,EAAE,MAAM,IAAI,CAAC;IACzB,yDAAyD;IACzD,eAAe,EAAE,MAAM,IAAI,CAAC;IAC5B,kFAAkF;IAClF,GAAG,EAAE;QAAE,KAAK,EAAE,CAAC,EAAE,CAAC,EAAE,MAAM,IAAI,KAAK,IAAI,CAAA;KAAE,CAAC;IAC1C,sDAAsD;IACtD,GAAG,EAAE,MAAM,CAAC;IACZ,wDAAwD;IACxD,eAAe,EAAE,MAAM,GAAG,SAAS,CAAC;IACpC,2EAA2E;IAC3E,SAAS,EAAE,MAAM,IAAI,CAAC;IACtB,GAAG,CAAC,EAAE,CAAC,GAAG,EAAE,MAAM,KAAK,IAAI,CAAC;IAC5B,KAAK,CAAC,EAAE,CAAC,GAAG,EAAE,MAAM,KAAK,IAAI,CAAC;IAC9B,sEAAsE;IACtE,YAAY,CAAC,EAAE,CAAC,GAAG,EAAE,MAAM,EAAE,OAAO,CAAC,EAAE,MAAM,KAAK,OAAO,CAAC,IAAI,CAAC,CAAC;CACjE;AAED;;;;;;;;;;GAUG;AACH,wBAAgB,mBAAmB,CAAC,GAAG,EAAE,sBAAsB,GAAG,MAAM,IAAI,CA2B3E;AAED;;;;;GAKG;AACH,wBAAgB,2BAA2B,CAAC,QAAQ,EAAE,MAAM,IAAI,GAAG,MAAM,IAAI,CAY5E"}
|
|
@@ -1,4 +1,6 @@
|
|
|
1
|
-
import type {
|
|
1
|
+
import type { KanbanRunMirror } from './kanban-run-mirror.js';
|
|
2
|
+
import type { KanbanSupervisor } from './kanban-supervisor.js';
|
|
3
|
+
import type { GoalWebSocketHandler, DesignContext, PromptsContext, SddBoardWebSocketHandler, SddWizardWebSocketHandler, SkillsContext, SpecsWebSocketHandler, TerminalWebSocketHandler, WorktreeWebSocketHandler } from '@wrongstack/webui-server';
|
|
2
4
|
import type { WebSocket } from 'ws';
|
|
3
5
|
import type { CliWebUIOptions, WSClientMessage, WSServerMessage } from '../webui-server.js';
|
|
4
6
|
import type { ConnectedClient } from './connection-handler.js';
|
|
@@ -27,12 +29,16 @@ export interface MessageRouterDeps {
|
|
|
27
29
|
mailboxCtx: MailboxContext;
|
|
28
30
|
sessionsCtx: SessionsContext;
|
|
29
31
|
connectionCtx: ConnectionContext;
|
|
30
|
-
|
|
32
|
+
goalHandler: GoalWebSocketHandler;
|
|
31
33
|
specsHandler: SpecsWebSocketHandler;
|
|
32
34
|
sddBoardHandler: SddBoardWebSocketHandler;
|
|
33
35
|
sddWizardHandler: SddWizardWebSocketHandler | null;
|
|
34
36
|
worktreeHandler: WorktreeWebSocketHandler;
|
|
35
37
|
terminalHandler: TerminalWebSocketHandler;
|
|
38
|
+
/** Live run↔kanban mirror; used by kanban.run.start to bind a launched run's board. */
|
|
39
|
+
kanbanRunMirror?: KanbanRunMirror | undefined;
|
|
40
|
+
/** Quiet deterministic/agentic Kanban health custodian. */
|
|
41
|
+
kanbanSupervisor?: KanbanSupervisor | undefined;
|
|
36
42
|
}
|
|
37
43
|
export type MessageRouter = (ws: WebSocket, client: ConnectedClient, msg: WSClientMessage) => Promise<void>;
|
|
38
44
|
export declare function createMessageRouter(deps: MessageRouterDeps): MessageRouter;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"message-router.d.ts","sourceRoot":"","sources":["../../src/webui-server/message-router.ts"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"message-router.d.ts","sourceRoot":"","sources":["../../src/webui-server/message-router.ts"],"names":[],"mappings":"AAwBA,OAAO,KAAK,EAAE,eAAe,EAAE,MAAM,wBAAwB,CAAC;AAC9D,OAAO,KAAK,EAAE,gBAAgB,EAAE,MAAM,wBAAwB,CAAC;AAC/D,OAAO,KAAK,EACV,oBAAoB,EACpB,aAAa,EACb,cAAc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,kBAAkB,CAAC;IACnC,QAAQ,EAAE,YAAY,CAAC;IACvB,WAAW,EAAE,eAAe,CAAC;IAC7B,iBAAiB,EAAE,qBAAqB,CAAC;IACzC,QAAQ,EAAE,QAAQ,CAAC;IACnB,UAAU,EAAE,cAAc,CAAC;IAC3B,WAAW,EAAE,eAAe,CAAC;IAC7B,aAAa,EAAE,iBAAiB,CAAC;IAEjC,WAAW,EAAE,oBAAoB,CAAC;IAClC,YAAY,EAAE,qBAAqB,CAAC;IACpC,eAAe,EAAE,wBAAwB,CAAC;IAC1C,gBAAgB,EAAE,yBAAyB,GAAG,IAAI,CAAC;IACnD,eAAe,EAAE,wBAAwB,CAAC;IAC1C,eAAe,EAAE,wBAAwB,CAAC;IAC1C,uFAAuF;IACvF,eAAe,CAAC,EAAE,eAAe,GAAG,SAAS,CAAC;IAC9C,2DAA2D;IAC3D,gBAAgB,CAAC,EAAE,gBAAgB,GAAG,SAAS,CAAC;CACjD;AAED,MAAM,MAAM,aAAa,GAAG,CAC1B,EAAE,EAAE,SAAS,EACb,MAAM,EAAE,eAAe,EACvB,GAAG,EAAE,eAAe,KACjB,OAAO,CAAC,IAAI,CAAC,CAAC;AAEnB,wBAAgB,mBAAmB,CAAC,IAAI,EAAE,iBAAiB,GAAG,aAAa,CAk4B1E"}
|
|
@@ -34,7 +34,7 @@ interface CliWebUIOptions {
|
|
|
34
34
|
} | undefined;
|
|
35
35
|
}
|
|
36
36
|
/** Keys synced between `agent.ctx.meta` and `config.json`. */
|
|
37
|
-
export declare const PREF_KEYS: readonly ['autonomy', 'autonomyDelayMs', 'autoProceedMaxIterations', 'yolo', 'maxIterations', 'chime', 'confirmExit', 'streamFleet', 'nextPrediction', 'fallbackModels', 'fallbackProfiles', 'favoriteModels', 'favoriteModelsOnly', 'modelMatrix', 'fallbackAuto', 'uiLocale', 'enhanceEnabled', 'enhanceDelayMs', 'enhanceLanguage', 'featureMcp', 'featurePlugins', 'featureMemory', 'featureSkills', 'featureModelsRegistry', 'indexOnStart', 'contextAutoCompact', 'contextStrategy', 'contextMode', 'tokenSavingTier', 'maxConcurrent', 'titleAnimation', 'reasoningMode', 'reasoningEffort', 'reasoningPreserve', 'cacheTtl', 'logLevel', 'auditLevel', 'hqEnabled', 'hqUrl', 'hqToken', 'hqRawContent', 'refinerProvider', 'refinerModel', 'thinkingWord', 'statuslineMode', 'animationStyle', 'tgConfigured', 'tgSessionEnd', 'tgDelegate', 'tgLongToolMs', 'breakerEnabled', 'breakerAutoKillResetMs', 'fsAccess', 'debugStream'];
|
|
37
|
+
export declare const PREF_KEYS: readonly ['autonomy', 'autonomyDelayMs', 'autoProceedMaxIterations', 'yolo', 'maxIterations', 'chime', 'confirmExit', 'streamFleet', 'nextPrediction', 'fallbackModels', 'fallbackProfiles', 'favoriteModels', 'favoriteModelsOnly', 'modelMatrix', 'fallbackAuto', 'uiLocale', 'enhanceEnabled', 'enhanceDelayMs', 'enhanceLanguage', 'featureMcp', 'featurePlugins', 'featureMemory', 'featureSkills', 'featureModelsRegistry', 'indexOnStart', 'contextAutoCompact', 'contextStrategy', 'contextMode', 'tokenSavingTier', 'maxConcurrent', 'titleAnimation', 'reasoningMode', 'reasoningEffort', 'reasoningPreserve', 'cacheTtl', 'logLevel', 'auditLevel', 'hqEnabled', 'hqUrl', 'hqToken', 'hqRawContent', 'refinerProvider', 'refinerModel', 'refinerFallbackProfile', 'thinkingWord', 'statuslineMode', 'animationStyle', 'tgConfigured', 'tgSessionEnd', 'tgDelegate', 'tgLongToolMs', 'breakerEnabled', 'breakerAutoKillResetMs', 'fsAccess', 'debugStream', 'chimeraAutoFix', 'chimeraEnabled', 'chimeraProvider', 'chimeraModel', 'chimeraMaxFiles', 'autoReviewEnabled', 'autoReviewProvider', 'autoReviewModel', 'autoReviewFallbackProfile', 'autoReviewFallbackModels', 'autoReviewDebounceMs', 'autoReviewMaxFilesPerBatch', 'autoReviewMaxConcurrentReviews', 'autoReviewCascadeOn', 'pluginsEnabled'];
|
|
38
38
|
type PrefSnapshot = Record<string, unknown>;
|
|
39
39
|
/**
|
|
40
40
|
* One-time startup seed: reads `globalConfigPath` and copies recognised fields
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"prefs-seeding.d.ts","sourceRoot":"","sources":["../../src/webui-server/prefs-seeding.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;;;GAgBG;AAIH,OAAO,KAAK,EAAE,MAAM,EAAE,MAAM,kBAAkB,CAAC;
|
|
1
|
+
{"version":3,"file":"prefs-seeding.d.ts","sourceRoot":"","sources":["../../src/webui-server/prefs-seeding.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;;;GAgBG;AAIH,OAAO,KAAK,EAAE,MAAM,EAAE,MAAM,kBAAkB,CAAC;AAM/C,UAAU,eAAe;IACvB,KAAK,EAAE;QAAE,GAAG,EAAE;YAAE,IAAI,EAAE,MAAM,CAAC,MAAM,EAAE,OAAO,CAAC,CAAA;SAAE,CAAA;KAAE,CAAC;IAClD,gBAAgB,CAAC,EAAE,MAAM,GAAG,SAAS,CAAC;IACtC,SAAS,CAAC,EAAE;QACV,cAAc,CAAC,EAAE,MAAM,EAAE,GAAG,SAAS,CAAC;QACtC,gBAAgB,CAAC,EAAE,MAAM,CAAC,MAAM,EAAE,MAAM,EAAE,CAAC,GAAG,SAAS,CAAC;QACxD,cAAc,CAAC,EAAE,MAAM,EAAE,GAAG,SAAS,CAAC;QACtC,kBAAkB,CAAC,EAAE,OAAO,GAAG,SAAS,CAAC;QACzC,YAAY,CAAC,EAAE,OAAO,GAAG,SAAS,CAAC;QACnC,WAAW,CAAC,EAAE,MAAM,CAAC,aAAa,CAAC,GAAG,SAAS,CAAC;QAChD,QAAQ,CAAC,EAAE,MAAM,GAAG,SAAS,CAAC;KAC/B,GAAG,SAAS,CAAC;CACf;AAYD,8DAA8D;AAC9D,eAAO,MAAM,SAAS,YACpB,UAAU,EACV,iBAAiB,EACjB,0BAA0B,EAC1B,MAAM,EACN,eAAe,EACf,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ZtE"}
|
|
@@ -22,7 +22,7 @@ export { expectDefined, maskedKey, normalizeKeys, nowIso, writeKeysBack, } from
|
|
|
22
22
|
*
|
|
23
23
|
* Note: `writeKeysBack` and `normalizeKeys` (used by
|
|
24
24
|
* the per-handler key ops) are *already* imported from
|
|
25
|
-
* `@wrongstack/webui
|
|
25
|
+
* `@wrongstack/webui-server`. This PR does not move
|
|
26
26
|
* them — they were never inlined in `webui-server.ts`.
|
|
27
27
|
* Per the plan body's update after PR #51, they are
|
|
28
28
|
* not part of this extraction.
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"session-start-payload.d.ts","sourceRoot":"","sources":["../../src/webui-server/session-start-payload.ts"],"names":[],"mappings":"AAYA,OAAO,KAAK,EAAE,OAAO,EAAE,cAAc,EAAE,MAAM,kBAAkB,CAAC;AAGhE,yEAAyE;AACzE,MAAM,WAAW,uBAAuB;IACtC,KAAK,EAAE;QAAE,GAAG,EAAE,OAAO,CAAA;KAAE,CAAC;IACxB,OAAO,EAAE;QAAE,EAAE,EAAE,MAAM,CAAA;KAAE,CAAC;IACxB,cAAc,CAAC,EAAE,cAAc,GAAG,SAAS,CAAC;IAC5C,MAAM,CAAC,EAAE,MAAM,GAAG,SAAS,CAAC;IAC5B,WAAW,CAAC,EAAE,MAAM,GAAG,SAAS,CAAC;CAClC;AAED,MAAM,MAAM,wBAAwB,GAAG,CACrC,SAAS,CAAC,EAAE,MAAM,CAAC,MAAM,EAAE,OAAO,CAAC,EACnC,UAAU,CAAC,EAAE,OAAO,KACjB,OAAO,CAAC,MAAM,CAAC,MAAM,EAAE,OAAO,CAAC,CAAC,CAAC;AAEtC;;;GAGG;AACH,wBAAgB,gCAAgC,CAC9C,IAAI,EAAE,uBAAuB,GAC5B,wBAAwB,
|
|
1
|
+
{"version":3,"file":"session-start-payload.d.ts","sourceRoot":"","sources":["../../src/webui-server/session-start-payload.ts"],"names":[],"mappings":"AAYA,OAAO,KAAK,EAAE,OAAO,EAAE,cAAc,EAAE,MAAM,kBAAkB,CAAC;AAGhE,yEAAyE;AACzE,MAAM,WAAW,uBAAuB;IACtC,KAAK,EAAE;QAAE,GAAG,EAAE,OAAO,CAAA;KAAE,CAAC;IACxB,OAAO,EAAE;QAAE,EAAE,EAAE,MAAM,CAAA;KAAE,CAAC;IACxB,cAAc,CAAC,EAAE,cAAc,GAAG,SAAS,CAAC;IAC5C,MAAM,CAAC,EAAE,MAAM,GAAG,SAAS,CAAC;IAC5B,WAAW,CAAC,EAAE,MAAM,GAAG,SAAS,CAAC;CAClC;AAED,MAAM,MAAM,wBAAwB,GAAG,CACrC,SAAS,CAAC,EAAE,MAAM,CAAC,MAAM,EAAE,OAAO,CAAC,EACnC,UAAU,CAAC,EAAE,OAAO,KACjB,OAAO,CAAC,MAAM,CAAC,MAAM,EAAE,OAAO,CAAC,CAAC,CAAC;AAEtC;;;GAGG;AACH,wBAAgB,gCAAgC,CAC9C,IAAI,EAAE,uBAAuB,GAC5B,wBAAwB,CA+D1B"}
|
|
@@ -1,6 +1,8 @@
|
|
|
1
1
|
export interface SessionStatusPollDeps {
|
|
2
2
|
/** Directory holding session-registry.json (the wstack global root). */
|
|
3
3
|
globalRoot: string;
|
|
4
|
+
/** Canonical project root used before this process appears in the registry. */
|
|
5
|
+
projectRoot?: string | undefined;
|
|
4
6
|
broadcast: (msg: {
|
|
5
7
|
type: string;
|
|
6
8
|
payload: unknown;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"session-status-poll.d.ts","sourceRoot":"","sources":["../../src/webui-server/session-status-poll.ts"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"session-status-poll.d.ts","sourceRoot":"","sources":["../../src/webui-server/session-status-poll.ts"],"names":[],"mappings":"AAiBA,MAAM,WAAW,qBAAqB;IACpC,wEAAwE;IACxE,UAAU,EAAE,MAAM,CAAC;IACnB,+EAA+E;IAC/E,WAAW,CAAC,EAAE,MAAM,GAAG,SAAS,CAAC;IACjC,SAAS,EAAE,CAAC,GAAG,EAAE;QAAE,IAAI,EAAE,MAAM,CAAC;QAAC,OAAO,EAAE,OAAO,CAAA;KAAE,KAAK,IAAI,CAAC;IAC7D,mEAAmE;IACnE,kBAAkB,EAAE,KAAK,CAAC,MAAM,IAAI,CAAC,CAAC;IACtC,uEAAuE;IACvE,gBAAgB,EAAE,CAAC,EAAE,EAAE,MAAM,OAAO,CAAC,IAAI,CAAC,KAAK,IAAI,CAAC;CACrD;AAED,wBAAgB,sBAAsB,CAAC,IAAI,EAAE,qBAAqB,GAAG,IAAI,CA6FxE"}
|
|
@@ -12,7 +12,7 @@
|
|
|
12
12
|
* PR 12 of Issue #30: extracted from `webui-server.ts`.
|
|
13
13
|
*/
|
|
14
14
|
import type { Context, EventBus, JournalEntry, SecretScrubber } from '@wrongstack/core';
|
|
15
|
-
import { createEternalSubscription } from '@wrongstack/webui
|
|
15
|
+
import { createEternalSubscription } from '@wrongstack/webui-server';
|
|
16
16
|
import type { StreamCoalescer } from './stream-coalescer.js';
|
|
17
17
|
import type { PendingConfirm } from './ws-handlers/index.js';
|
|
18
18
|
export interface SetupEventsDeps {
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"setup-events.d.ts","sourceRoot":"","sources":["../../src/webui-server/setup-events.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;GAYG;AACH,OAAO,KAAK,EAAE,OAAO,EAAE,QAAQ,EAAE,YAAY,EAAE,cAAc,EAAE,MAAM,kBAAkB,CAAC;AACxF,OAAO,
|
|
1
|
+
{"version":3,"file":"setup-events.d.ts","sourceRoot":"","sources":["../../src/webui-server/setup-events.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;GAYG;AACH,OAAO,KAAK,EAAE,OAAO,EAAE,QAAQ,EAAE,YAAY,EAAE,cAAc,EAAE,MAAM,kBAAkB,CAAC;AACxF,OAAO,EACL,yBAAyB,EAG1B,MAAM,0BAA0B,CAAC;AAClC,OAAO,KAAK,EAAE,eAAe,EAAE,MAAM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01BnE"}
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import type { Server } from 'node:http';
|
|
2
|
-
import { type CreateHttpServerOptions } from '@wrongstack/webui
|
|
2
|
+
import { type CreateHttpServerOptions } from '@wrongstack/webui-server';
|
|
3
3
|
/**
|
|
4
4
|
* PR 6 of Issue #30 (webui-server 8-PR refactor):
|
|
5
5
|
* dist discovery + HTTP server bring-up.
|
|
@@ -31,8 +31,24 @@ export interface StaticServeOptions {
|
|
|
31
31
|
httpPort: number;
|
|
32
32
|
wsPort: number;
|
|
33
33
|
globalRoot: string;
|
|
34
|
+
/** Explicit frontend build. Omitted for the regular @wrongstack/webui app. */
|
|
35
|
+
distDir?: string | undefined;
|
|
34
36
|
/** Push-on-write hook for `POST /api/fleet/ping` (immediate fleet re-broadcast). */
|
|
35
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;
|
|
36
52
|
/** Public browser-facing WS URL injected into the React app. */
|
|
37
53
|
publicWsUrl?: string | undefined;
|
|
38
54
|
/**
|
|
@@ -55,7 +71,7 @@ export interface StaticServeOptions {
|
|
|
55
71
|
* can exercise the resolution (and stub it) without
|
|
56
72
|
* binding a socket.
|
|
57
73
|
*/
|
|
58
|
-
export declare function resolveDistDir(): string | null;
|
|
74
|
+
export declare function resolveDistDir(explicitDistDir?: string): string | null;
|
|
59
75
|
/**
|
|
60
76
|
* Injectable seams for `startStaticServe`. Both default to
|
|
61
77
|
* the real implementations; tests override them to assert
|
|
@@ -63,7 +79,7 @@ export declare function resolveDistDir(): string | null;
|
|
|
63
79
|
* a real port.
|
|
64
80
|
*/
|
|
65
81
|
export interface StaticServeDeps {
|
|
66
|
-
resolveDist?: () => string | null;
|
|
82
|
+
resolveDist?: (explicitDistDir?: string) => string | null;
|
|
67
83
|
createServer?: (opts: CreateHttpServerOptions) => Server;
|
|
68
84
|
}
|
|
69
85
|
export declare function startStaticServe(opts: StaticServeOptions, deps?: StaticServeDeps): StaticServeHandle | null;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"static-serve.d.ts","sourceRoot":"","sources":["../../src/webui-server/static-serve.ts"],"names":[],"mappings":"AAEA,OAAO,KAAK,EAAE,MAAM,EAAE,MAAM,WAAW,CAAC;AACxC,OAAO,EAAE,KAAK,uBAAuB,EAAoB,MAAM,0BAA0B,CAAC;AAE1F;;;;;;;;;;;;;;;;;;;;;GAqBG;AAEH,MAAM,WAAW,iBAAiB;IAChC,MAAM,EAAE,MAAM,CAAC;IACf,IAAI,EAAE,MAAM,CAAC;CACd;AAED,MAAM,WAAW,kBAAkB;IACjC,IAAI,EAAE,MAAM,CAAC;IACb,QAAQ,EAAE,MAAM,CAAC;IACjB,MAAM,EAAE,MAAM,CAAC;IACf,UAAU,EAAE,MAAM,CAAC;IACnB,oFAAoF;IACpF,WAAW,CAAC,EAAE,CAAC,MAAM,IAAI,CAAC,GAAG,SAAS,CAAC;IACvC,gEAAgE;IAChE,WAAW,CAAC,EAAE,MAAM,GAAG,SAAS,CAAC;IACjC;;;;;OAKG;IACH,QAAQ,CAAC,EAAE,MAAM,GAAG,SAAS,CAAC;IAC9B,+DAA+D;IAC/D,YAAY,CAAC,EAAE,OAAO,GAAG,SAAS,CAAC;CACpC;A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