@wrongstack/cli 1.0.33 → 1.0.36
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/dist/{acp-EDGUWU7N.js → acp-QLU7T5WX.js} +470 -466
- package/dist/{auth-SUHKFFO4.js → auth-AED7RW7D.js} +7 -7
- package/dist/auth-menu/openai-codex-oauth.d.ts +1 -1
- package/dist/auth-menu/panel-provider-edits.d.ts +15 -0
- package/dist/auth-menu/panel-service.d.ts +1 -1
- package/dist/{automation-MCDFCIMV.js → automation-3E3AUPBF.js} +19 -4
- package/dist/boot/governance-evidence-candidate.d.ts +1 -2
- package/dist/boot/system-prompt-builder.d.ts +1 -1
- package/dist/boot/tui-project-spawn.d.ts +0 -1
- package/dist/boot/tui-session-resume-contracts.d.ts +95 -0
- package/dist/boot/tui-session-resume.d.ts +2 -88
- package/dist/boot/tui-settings-read.d.ts +3 -0
- package/dist/{boot-auto-thin-K2DHHYIW.js → boot-auto-thin-AGJ6TAWY.js} +3 -3
- package/dist/boot-launch-choices.d.ts +22 -0
- package/dist/boot-provider-gate.d.ts +28 -0
- package/dist/boot-subcommand-dispatch.d.ts +24 -0
- package/dist/boot.d.ts +1 -1
- package/dist/chimera-cascade-evidence.d.ts +1 -1
- package/dist/{chunk-TI7KLHYX.js → chunk-2CMMWRQH.js} +81 -80
- package/dist/{chunk-4BX2YDTQ.js → chunk-4JMAWKLA.js} +45 -4
- package/dist/{chunk-TWSQTQKR.js → chunk-4R6TVMYA.js} +2 -2
- package/dist/{chunk-HHRYIDOW.js → chunk-ACW64W4M.js} +34 -7
- package/dist/{chunk-5EA6OTLJ.js → chunk-AFOH6CHO.js} +2 -2
- package/dist/{chunk-WHEYHDIE.js → chunk-AKESWZH5.js} +2 -1
- package/dist/{chunk-JHUJUIOH.js → chunk-AT2A7RJZ.js} +4 -16
- package/dist/{chunk-LKFKO4JW.js → chunk-B6EHK772.js} +2 -2
- package/dist/{chunk-U3SS4NRH.js → chunk-BHXAKTBE.js} +1 -1
- package/dist/{chunk-4UWCMBPG.js → chunk-BJH44J7G.js} +3 -3
- package/dist/{chunk-MPQCHBDJ.js → chunk-CJSHS2K7.js} +5 -1
- package/dist/{chunk-RQ4UBKYH.js → chunk-GF7LUWQS.js} +5 -11
- package/dist/{chunk-TXAFIERF.js → chunk-L5NWFP5R.js} +2 -2
- package/dist/{chunk-24C6VVLM.js → chunk-LPGZ3NUF.js} +23 -23
- package/dist/{chunk-UQUYBDMG.js → chunk-M4G5FO7F.js} +1 -1
- package/dist/{chunk-P3GRLV47.js → chunk-NEWXDNF2.js} +212 -145
- package/dist/{chunk-3LEFXLAW.js → chunk-NOZJIN46.js} +36 -37
- package/dist/{chunk-4MDRHMX4.js → chunk-RE73FP2X.js} +4 -27
- package/dist/{chunk-5UZBUV2H.js → chunk-RKU66D2O.js} +6 -4
- package/dist/{chunk-SWOPJHXI.js → chunk-RYTSPBNM.js} +4 -4
- package/dist/{chunk-WTJDSTYD.js → chunk-T5KR6SNO.js} +2 -2
- package/dist/chunk-TGSPCFBT.js +1 -0
- package/dist/{chunk-ZYACRPLN.js → chunk-ULYAI7CP.js} +6 -3
- package/dist/{chunk-HLSHFXTO.js → chunk-WY74MMDB.js} +2 -2
- package/dist/{chunk-PGNERAZL.js → chunk-ZWBI7ORM.js} +3 -3
- package/dist/{cli-context-7HK67B2Z.js → cli-context-I6HJCVCV.js} +1607 -1495
- package/dist/cli-initial-tools.d.ts +54 -0
- package/dist/{cli-main-TQGLKB6D.js → cli-main-X7KD7IOC.js} +38223 -37136
- package/dist/cli-main-boot.d.ts +133 -0
- package/dist/cli-main-orchestration.d.ts +170 -0
- package/dist/cli-main-state.d.ts +19 -0
- package/dist/config-doctor.d.ts +1 -1
- package/dist/{config-transfer-UE37X4B5.js → config-transfer-YPD7HYXH.js} +7 -5
- package/dist/{execution-C2IECWF7.js → execution-M7D4KNBB.js} +171 -132
- package/dist/fleet/host-director-setup.d.ts +41 -0
- package/dist/fleet/host-spawn-types.d.ts +17 -0
- package/dist/fleet/host.d.ts +2 -1
- package/dist/goal-host-prompts.d.ts +5 -0
- package/dist/goal-host-types.d.ts +94 -0
- package/dist/goal-host.d.ts +2 -91
- package/dist/{hq-KBFDKTDD.js → hq-BBLGEEUH.js} +5 -6
- package/dist/hq-server/handle-types.d.ts +1 -1
- package/dist/hq-server/routes/auth-handlers.d.ts +1 -1
- package/dist/hq-server/routes.d.ts +1 -13
- package/dist/hq-server/utils.d.ts +1 -1
- package/dist/{hq-server-AVNKZ2PV.js → hq-server-5TR6NBGS.js} +3 -3
- package/dist/{hq-service-FGB7BY2D.js → hq-service-4Q64WFNT.js} +3 -3
- package/dist/{import-claude-code-AYG24RG2.js → import-claude-code-GHIS2F7Y.js} +3 -3
- package/dist/index.js +5 -5
- package/dist/live-settings-input.d.ts +2 -0
- package/dist/mailbox-bridge-bootstrap.d.ts +1 -4
- package/dist/{mailbox-serve-S536N66F.js → mailbox-serve-DRWJVMYU.js} +2 -2
- package/dist/{modeldiag-NEPTLFZW.js → modeldiag-F3LUF4VJ.js} +3 -3
- package/dist/picker-effort.d.ts +32 -0
- package/dist/picker-model-picker.d.ts +13 -2
- package/dist/picker-provider-list.d.ts +66 -0
- package/dist/picker.d.ts +12 -12
- package/dist/plugin-config.d.ts +6 -0
- package/dist/{plugin-usage-3TZGROK7.js → plugin-usage-EM752WHG.js} +3 -3
- package/dist/{plugins-ITH4SLO6.js → plugins-U6HQFJ7N.js} +4 -4
- package/dist/{providers-models-O75MKLN2.js → providers-models-S3S6VXME.js} +249 -239
- package/dist/repl-suggestions.d.ts +0 -5
- package/dist/{sage-FFKUOCQL.js → sage-BMRDJCDI.js} +9 -5
- package/dist/{sage-sync-ZMTHB477.js → sage-sync-PCWCNEUK.js} +2 -2
- package/dist/{sdd-runtime-PTOSPYI4.js → sdd-runtime-PF72WHLO.js} +3 -20
- package/dist/services/sdd/task-manager.d.ts +1 -12
- package/dist/services/sdd-runtime.d.ts +3 -4
- package/dist/services/statusline-config.d.ts +0 -2
- package/dist/{sessions-config-VE26SB56.js → sessions-config-RQRQDW5Q.js} +2 -2
- package/dist/settings-behavior-sections.d.ts +0 -1
- package/dist/short-circuit-flags-IEV3FEOT.js +10 -0
- package/dist/{skill-suggest-L2EVWB6R.js → skill-suggest-THANK3LV.js} +1 -1
- package/dist/slash-commands/command-context.d.ts +2 -0
- package/dist/slash-commands/doctor.d.ts +0 -9
- package/dist/slash-commands/fallback-chain-view.d.ts +3 -0
- package/dist/slash-commands/fallback-ref-validation.d.ts +34 -0
- package/dist/slash-commands/goal-refiner.d.ts +10 -2
- package/dist/slash-commands/goals.d.ts +6 -0
- package/dist/slash-commands/kanban-task-completion.d.ts +17 -0
- package/dist/slash-commands/mcp.d.ts +0 -1
- package/dist/slash-commands/memory-purge-domain-terms.d.ts +5 -0
- package/dist/slash-commands/nextsteps-mode.d.ts +13 -0
- package/dist/slash-commands/session-live-status.d.ts +21 -0
- package/dist/slash-commands/session.d.ts +1 -1
- package/dist/slash-commands/settings-feature-ui-mutations.d.ts +8 -0
- package/dist/slash-commands/settings-hq-autonomy-mutations.d.ts +8 -0
- package/dist/slash-commands/settings-persist-deps.d.ts +10 -0
- package/dist/slash-commands/settings-runtime-mutations.d.ts +12 -0
- package/dist/slash-commands/shadow.d.ts +0 -1
- package/dist/slash-commands/tool-auto-thin-commands.d.ts +15 -0
- package/dist/{standalone-auto-update-VQC4GYCM.js → standalone-auto-update-QUXOZ4B5.js} +13 -2
- package/dist/subcommands/handlers/acp-agents.d.ts +9 -0
- package/dist/subcommands/handlers/acp-server.d.ts +7 -0
- package/dist/subcommands/handlers/hq.d.ts +0 -1
- package/dist/subcommands/handlers/providers-models-custom.d.ts +33 -0
- package/dist/subcommands/handlers/providers-models-visibility.d.ts +29 -0
- package/dist/subcommands/handlers/skill-suggest.d.ts +0 -2
- package/dist/{subcommands-CLI6QTLU.js → subcommands-75IB23LS.js} +2 -2
- package/dist/{typesafe-NHC322W5.js → typesafe-KW2XHOG3.js} +2 -2
- package/dist/{update-J5WHAFPE.js → update-LHCWAWEZ.js} +3 -3
- package/dist/utils/win32-cmd.d.ts +1 -1
- package/dist/{version-help-ATOKGMTK.js → version-help-JQGRPDJW.js} +2 -2
- package/dist/webui-server/credential-watcher.d.ts +3 -1
- package/dist/webui-server/host-settings.d.ts +17 -0
- package/dist/webui-server/http-bridge.d.ts +32 -0
- package/dist/webui-server/instance-registration.d.ts +19 -0
- package/dist/webui-server/kanban-services.d.ts +9 -0
- package/dist/webui-server/message-router.d.ts +14 -0
- package/dist/webui-server/prefs-seeding.d.ts +1 -2
- package/dist/webui-server/provider-config.d.ts +0 -1
- package/dist/webui-server/provider-plane.d.ts +14 -0
- package/dist/webui-server/session-agents.d.ts +18 -0
- package/dist/webui-server/session-start-live.d.ts +11 -0
- package/dist/webui-server/stream-coalescer.d.ts +1 -1
- package/dist/webui-server/transport.d.ts +12 -0
- package/dist/{webui-server-GQOVLQS3.js → webui-server-CUIFA25W.js} +1472 -1335
- package/dist/webui-session-maintenance.d.ts +16 -0
- package/dist/wiring/brain-and-orchestration.d.ts +1 -1
- package/dist/wiring/cli-slash-commands-setup.d.ts +1 -0
- package/dist/wiring/command-host-state.d.ts +11 -2
- package/dist/wiring/dep-watcher-bridge.d.ts +8 -1
- package/dist/wiring/management-tools.d.ts +9 -1
- package/dist/wiring/session-command-handlers.d.ts +2 -1
- package/dist/worktree-command-host.d.ts +31 -0
- package/package.json +31 -31
- package/dist/chunk-WHOIR577.js +0 -1
- package/dist/short-circuit-flags-D6VAG47Y.js +0 -10
|
@@ -0,0 +1,32 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* HTTP + WebSocket listeners for the CLI-embedded WebUI host: the static
|
|
3
|
+
* frontend (when built), the authenticated WS bridge, the deferred SimpleUI
|
|
4
|
+
* bind, the IPv6 loopback proxy and the ready banner.
|
|
5
|
+
*/
|
|
6
|
+
import type { Server as HttpServer, IncomingMessage } from 'node:http';
|
|
7
|
+
import { type SessionAgentRegistry } from '@wrongstack/webui-server';
|
|
8
|
+
import type { CliWebUIOptions } from '../webui-server-options.js';
|
|
9
|
+
import type { WebuiTransport } from './transport.js';
|
|
10
|
+
export interface WebuiHttpBridgeInput {
|
|
11
|
+
opts: CliWebUIOptions;
|
|
12
|
+
surface: 'webui' | 'simpleui';
|
|
13
|
+
host: string;
|
|
14
|
+
httpPort: number;
|
|
15
|
+
strictPort: boolean;
|
|
16
|
+
globalRoot: string;
|
|
17
|
+
wsToken: string;
|
|
18
|
+
publicUrl: string | undefined;
|
|
19
|
+
publicWsUrl: string | undefined;
|
|
20
|
+
requireToken: boolean;
|
|
21
|
+
getSessionAgents: () => SessionAgentRegistry | undefined;
|
|
22
|
+
onFleetPing: () => void;
|
|
23
|
+
broadcast: WebuiTransport['broadcast'];
|
|
24
|
+
/** The bind advanced past the requested port; called before anything else reads the port. */
|
|
25
|
+
onPortRebound: (port: number) => void;
|
|
26
|
+
}
|
|
27
|
+
export declare function startWebuiHttpBridge(input: WebuiHttpBridgeInput): Promise<{
|
|
28
|
+
httpServer: import("@wrongstack/webui-server").StaticServeHandle | null;
|
|
29
|
+
wss: import("ws").Server<typeof import("ws").WebSocket, typeof IncomingMessage>;
|
|
30
|
+
ipv6LoopbackServer: HttpServer<typeof IncomingMessage, typeof import("node:http").ServerResponse> | null;
|
|
31
|
+
}>;
|
|
32
|
+
//# sourceMappingURL=http-bridge.d.ts.map
|
|
@@ -0,0 +1,19 @@
|
|
|
1
|
+
/** Registers the CLI-embedded WebUI host in the shared instance registry. */
|
|
2
|
+
import type { CliWebUIOptions } from '../webui-server-options.js';
|
|
3
|
+
export interface EmbeddedInstanceRegistrationInput {
|
|
4
|
+
opts: CliWebUIOptions;
|
|
5
|
+
surface: 'webui' | 'simpleui';
|
|
6
|
+
host: string;
|
|
7
|
+
httpPort: number;
|
|
8
|
+
publicUrl: string | undefined;
|
|
9
|
+
registryBaseDir: string;
|
|
10
|
+
wsToken: string;
|
|
11
|
+
currentSessionId: () => string;
|
|
12
|
+
}
|
|
13
|
+
/**
|
|
14
|
+
* Resolves true once the instance is registered. A session child awaits the
|
|
15
|
+
* registration (its parent reads the record to attach); every other host
|
|
16
|
+
* registers in the background and reports success optimistically.
|
|
17
|
+
*/
|
|
18
|
+
export declare function registerEmbeddedWebuiInstance(input: EmbeddedInstanceRegistrationInput): Promise<boolean>;
|
|
19
|
+
//# sourceMappingURL=instance-registration.d.ts.map
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
/** Kanban run mirror + supervisor for the CLI-embedded WebUI host (only when a project root is known). */
|
|
2
|
+
import type { CliWebUIOptions } from '../webui-server-options.js';
|
|
3
|
+
import type { WebuiTransport } from './transport.js';
|
|
4
|
+
export declare function createWebuiKanbanServices(opts: CliWebUIOptions, broadcast: WebuiTransport['broadcast']): {
|
|
5
|
+
kanbanRunMirror: import("./kanban-run-mirror.js").KanbanRunMirror | null;
|
|
6
|
+
kanbanSupervisor: import("./kanban-supervisor.js").KanbanSupervisor | null;
|
|
7
|
+
stopKanbanSupervisorMemoryStats: (() => Promise<void>) | undefined;
|
|
8
|
+
};
|
|
9
|
+
//# sourceMappingURL=kanban-services.d.ts.map
|
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
/** Maps the CLI host's route contexts and domain handlers onto the shared embedded message router. */
|
|
2
|
+
import { createEmbeddedMessageRouter } from '@wrongstack/webui-server';
|
|
3
|
+
import type { CliWebUIOptions } from '../webui-server-options.js';
|
|
4
|
+
import type { createWebuiDomainHandlers } from './domain-handlers.js';
|
|
5
|
+
import type { createWebuiRouteContexts } from './route-contexts.js';
|
|
6
|
+
type EmbeddedRouterOptions = Parameters<typeof createEmbeddedMessageRouter>[0];
|
|
7
|
+
export type CliEmbeddedRouterInput = Pick<EmbeddedRouterOptions, 'trustBoundary' | 'send' | 'sendResult' | 'sessionPayload' | 'currentSessionId' | 'shutdown' | 'onDispose' | 'providerCtx' | 'kanbanHostRoutes'> & {
|
|
8
|
+
opts: CliWebUIOptions;
|
|
9
|
+
routeContexts: ReturnType<typeof createWebuiRouteContexts>;
|
|
10
|
+
domainHandlers: ReturnType<typeof createWebuiDomainHandlers>;
|
|
11
|
+
};
|
|
12
|
+
export declare function createCliEmbeddedMessageRouter(input: CliEmbeddedRouterInput): import("@wrongstack/webui-server").EmbeddedMessageRouter;
|
|
13
|
+
export {};
|
|
14
|
+
//# sourceMappingURL=message-router.d.ts.map
|
|
@@ -1,6 +1,5 @@
|
|
|
1
1
|
import type { ModelBlackoutRule } from '@wrongstack/core/models';
|
|
2
2
|
import type { Config } from '@wrongstack/core/types';
|
|
3
|
-
import { PREF_KEYS } from '@wrongstack/webui-server';
|
|
4
3
|
interface CliWebUIOptions {
|
|
5
4
|
agent: {
|
|
6
5
|
ctx: {
|
|
@@ -35,7 +34,6 @@ interface CliWebUIOptions {
|
|
|
35
34
|
} | undefined;
|
|
36
35
|
}
|
|
37
36
|
type PrefSnapshot = Record<string, unknown>;
|
|
38
|
-
export { PREF_KEYS };
|
|
39
37
|
export declare function seedConfigToMeta(opts: CliWebUIOptions): Promise<void>;
|
|
40
38
|
export interface PrefsSeeding {
|
|
41
39
|
/**
|
|
@@ -51,4 +49,5 @@ export interface PrefsSeeding {
|
|
|
51
49
|
persistPrefs: (payload: PrefSnapshot) => Promise<void>;
|
|
52
50
|
}
|
|
53
51
|
export declare function createPrefsSeeding(opts: CliWebUIOptions): PrefsSeeding;
|
|
52
|
+
export {};
|
|
54
53
|
//# sourceMappingURL=prefs-seeding.d.ts.map
|
|
@@ -1,6 +1,5 @@
|
|
|
1
1
|
import { DefaultSecretVault } from '@wrongstack/core/security';
|
|
2
2
|
import type { ProviderConfig } from '@wrongstack/core/types';
|
|
3
|
-
export { expectDefined, maskedKey, normalizeKeys, nowIso, writeKeysBack, } from '../provider-config-utils.js';
|
|
4
3
|
/**
|
|
5
4
|
* PR 4 of Issue #30 (webui-server 8-PR refactor):
|
|
6
5
|
* provider-config IO.
|
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
/** Provider routes context + credential hot-reload for the CLI-embedded WebUI host. */
|
|
2
|
+
import { type EmbeddedProviderContext } from '@wrongstack/webui-server';
|
|
3
|
+
import type { CliWebUIOptions } from '../webui-server-options.js';
|
|
4
|
+
import type { WebuiTransport } from './transport.js';
|
|
5
|
+
export declare function createEmbeddedProviderPlane(input: {
|
|
6
|
+
opts: CliWebUIOptions;
|
|
7
|
+
profileConfigPath: string;
|
|
8
|
+
send: WebuiTransport['send'];
|
|
9
|
+
broadcast: WebuiTransport['broadcast'];
|
|
10
|
+
}): {
|
|
11
|
+
wsHandlerCtx: EmbeddedProviderContext;
|
|
12
|
+
credentialWatcherClose: (() => void) | undefined;
|
|
13
|
+
};
|
|
14
|
+
//# sourceMappingURL=provider-plane.d.ts.map
|
|
@@ -0,0 +1,18 @@
|
|
|
1
|
+
/** Per-tab agents for the CLI-embedded WebUI host. */
|
|
2
|
+
import type { WebSocket } from 'ws';
|
|
3
|
+
import type { CliWebUIOptions } from '../webui-server-options.js';
|
|
4
|
+
import type { ConnectedClient } from './connection-handler.js';
|
|
5
|
+
/**
|
|
6
|
+
* One Agent per open tab.
|
|
7
|
+
*
|
|
8
|
+
* The embedded host used to hand every tab the same leader Agent, so the
|
|
9
|
+
* second tab to start a run hit `Agent.run()`'s concurrency guard —
|
|
10
|
+
* "already in progress on this instance". Four tabs need four Agents; the
|
|
11
|
+
* registry clones the leader's wiring and gives each session its own
|
|
12
|
+
* `Context`, which is the state a run actually mutates.
|
|
13
|
+
*/
|
|
14
|
+
export declare function createEmbeddedSessionAgents(opts: CliWebUIOptions, clients: Map<WebSocket, ConnectedClient>, abortControllers: Map<string, AbortController>): {
|
|
15
|
+
sessionAgents: import("@wrongstack/webui-server").SessionAgentRegistry;
|
|
16
|
+
isSessionDisplayed: (sessionId: string) => boolean;
|
|
17
|
+
};
|
|
18
|
+
//# sourceMappingURL=session-agents.d.ts.map
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
/** The CLI host's `session.start` payload builder, bound to the live options and per-tab agents. */
|
|
2
|
+
import type { SessionAgentRegistry } from '@wrongstack/webui-server';
|
|
3
|
+
import { type BuildSessionStartPayload, type SessionStartPayloadDeps } from './session-start-payload.js';
|
|
4
|
+
/**
|
|
5
|
+
* The host's builder, reading the live `opts` and the per-tab agent registry.
|
|
6
|
+
* `getSessionAgents` is a forward reference: the registry is built after the
|
|
7
|
+
* builder, so a payload for a background tab still reports that tab's model,
|
|
8
|
+
* mode and context window rather than the leader's.
|
|
9
|
+
*/
|
|
10
|
+
export declare function createLiveSessionStartPayloadBuilder<T extends SessionStartPayloadDeps>(opts: T, getSessionAgents: () => SessionAgentRegistry | undefined): BuildSessionStartPayload;
|
|
11
|
+
//# sourceMappingURL=session-start-live.d.ts.map
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
export { createStreamCoalescer, type StreamCoalescer,
|
|
1
|
+
export { createStreamCoalescer, type StreamCoalescer, } from '@wrongstack/webui-server';
|
|
2
2
|
//# sourceMappingURL=stream-coalescer.d.ts.map
|
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
/** Outbound frame delivery for the CLI-embedded WebUI host: unicast, session-aware broadcast, fan-out. */
|
|
2
|
+
import type { WebSocket } from 'ws';
|
|
3
|
+
import type { ConnectedClient } from './connection-handler.js';
|
|
4
|
+
import type { WSServerMessage } from './contracts.js';
|
|
5
|
+
export interface WebuiTransport {
|
|
6
|
+
send(ws: WebSocket, msg: WSServerMessage): void;
|
|
7
|
+
broadcast(msg: WSServerMessage, targetSessionId?: string): void;
|
|
8
|
+
broadcastEveryone(msg: WSServerMessage): void;
|
|
9
|
+
sendResult(ws: WebSocket, success: boolean, message: string): void;
|
|
10
|
+
}
|
|
11
|
+
export declare function createWebuiTransport(clients: Map<WebSocket, ConnectedClient>): WebuiTransport;
|
|
12
|
+
//# sourceMappingURL=transport.d.ts.map
|