@wrongstack/cli 1.0.32 → 1.0.35
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/data/providers.json +322 -2
- package/dist/{acp-EDGUWU7N.js → acp-T77EAEDB.js} +469 -465
- package/dist/{auth-SUHKFFO4.js → auth-M6LXZTDA.js} +4 -4
- 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/auto-discover-providers-JX346GOM.js +7 -0
- 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-YMAZI3QL.js} +2 -2
- 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-3LEFXLAW.js → chunk-6SIUTX75.js} +36 -36
- package/dist/{chunk-RQ4UBKYH.js → chunk-6Z6C6ZHH.js} +3 -3
- 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-U3SS4NRH.js → chunk-BHXAKTBE.js} +1 -1
- package/dist/{chunk-MPQCHBDJ.js → chunk-CJSHS2K7.js} +5 -1
- package/dist/{chunk-P3GRLV47.js → chunk-GZSKLXYG.js} +208 -141
- package/dist/{chunk-4MDRHMX4.js → chunk-KMU7GF7X.js} +3 -26
- package/dist/{chunk-WXJH4F6K.js → chunk-LDV4ERNV.js} +4 -4
- package/dist/{chunk-LIZXJHZQ.js → chunk-LDXXMPMS.js} +13 -13
- package/dist/{chunk-UQUYBDMG.js → chunk-M4G5FO7F.js} +1 -1
- package/dist/{chunk-CFHWIFXL.js → chunk-PA4VBCXS.js} +25 -33
- package/dist/{chunk-5UZBUV2H.js → chunk-RKU66D2O.js} +6 -4
- package/dist/{chunk-PGNERAZL.js → chunk-RWNI5OWT.js} +2 -2
- package/dist/chunk-TGSPCFBT.js +1 -0
- package/dist/{cli-context-ITHGP2CE.js → cli-context-II57EHD2.js} +1555 -1451
- package/dist/cli-initial-tools.d.ts +54 -0
- package/dist/{cli-main-TQGLKB6D.js → cli-main-YR2WJCPL.js} +38062 -37035
- 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-VOIFY7U4.js} +2 -2
- package/dist/{execution-C2IECWF7.js → execution-IBAZ2EIU.js} +138 -124
- 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-5OIEKB4V.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-DU3ZH3X7.js} +3 -3
- package/dist/{hq-service-FGB7BY2D.js → hq-service-LYZV7EK7.js} +3 -3
- package/dist/index.js +4 -4
- package/dist/live-settings-input.d.ts +2 -0
- package/dist/mailbox-bridge-bootstrap.d.ts +1 -4
- package/dist/{modeldiag-PQILD7TN.js → modeldiag-NEPTLFZW.js} +2 -2
- 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/{providers-models-W57I3QOA.js → providers-models-37DUV2GW.js} +297 -253
- package/dist/repl-suggestions.d.ts +0 -5
- 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/settings-behavior-sections.d.ts +0 -1
- package/dist/short-circuit-flags-EXJBJ5GT.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/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/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-QO7VYTSS.js → subcommands-DTKBXLPU.js} +2 -2
- package/dist/{update-J5WHAFPE.js → update-6OEPAEUV.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/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-6IC3SLZG.js} +1600 -1435
- 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/session-command-handlers.d.ts +2 -1
- package/dist/worktree-command-host.d.ts +31 -0
- package/package.json +30 -30
- package/dist/auto-discover-providers-QIL34K3U.js +0 -7
- package/dist/chunk-WHOIR577.js +0 -1
- package/dist/short-circuit-flags-6LB3EGF7.js +0 -10
|
@@ -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
|