@wrongstack/cli 1.0.33 → 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.
Files changed (121) hide show
  1. package/dist/{acp-EDGUWU7N.js → acp-T77EAEDB.js} +469 -465
  2. package/dist/{auth-SUHKFFO4.js → auth-M6LXZTDA.js} +4 -4
  3. package/dist/auth-menu/openai-codex-oauth.d.ts +1 -1
  4. package/dist/auth-menu/panel-provider-edits.d.ts +15 -0
  5. package/dist/auth-menu/panel-service.d.ts +1 -1
  6. package/dist/boot/governance-evidence-candidate.d.ts +1 -2
  7. package/dist/boot/system-prompt-builder.d.ts +1 -1
  8. package/dist/boot/tui-project-spawn.d.ts +0 -1
  9. package/dist/boot/tui-session-resume-contracts.d.ts +95 -0
  10. package/dist/boot/tui-session-resume.d.ts +2 -88
  11. package/dist/boot/tui-settings-read.d.ts +3 -0
  12. package/dist/{boot-auto-thin-K2DHHYIW.js → boot-auto-thin-YMAZI3QL.js} +2 -2
  13. package/dist/boot-launch-choices.d.ts +22 -0
  14. package/dist/boot-provider-gate.d.ts +28 -0
  15. package/dist/boot-subcommand-dispatch.d.ts +24 -0
  16. package/dist/boot.d.ts +1 -1
  17. package/dist/chimera-cascade-evidence.d.ts +1 -1
  18. package/dist/{chunk-TI7KLHYX.js → chunk-2CMMWRQH.js} +81 -80
  19. package/dist/{chunk-3LEFXLAW.js → chunk-6SIUTX75.js} +36 -36
  20. package/dist/{chunk-RQ4UBKYH.js → chunk-6Z6C6ZHH.js} +3 -3
  21. package/dist/{chunk-5EA6OTLJ.js → chunk-AFOH6CHO.js} +2 -2
  22. package/dist/{chunk-WHEYHDIE.js → chunk-AKESWZH5.js} +2 -1
  23. package/dist/{chunk-JHUJUIOH.js → chunk-AT2A7RJZ.js} +4 -16
  24. package/dist/{chunk-U3SS4NRH.js → chunk-BHXAKTBE.js} +1 -1
  25. package/dist/{chunk-MPQCHBDJ.js → chunk-CJSHS2K7.js} +5 -1
  26. package/dist/{chunk-P3GRLV47.js → chunk-GZSKLXYG.js} +208 -141
  27. package/dist/{chunk-4MDRHMX4.js → chunk-KMU7GF7X.js} +3 -26
  28. package/dist/{chunk-SWOPJHXI.js → chunk-LDV4ERNV.js} +4 -4
  29. package/dist/{chunk-24C6VVLM.js → chunk-LDXXMPMS.js} +12 -12
  30. package/dist/{chunk-UQUYBDMG.js → chunk-M4G5FO7F.js} +1 -1
  31. package/dist/{chunk-5UZBUV2H.js → chunk-RKU66D2O.js} +6 -4
  32. package/dist/{chunk-PGNERAZL.js → chunk-RWNI5OWT.js} +2 -2
  33. package/dist/chunk-TGSPCFBT.js +1 -0
  34. package/dist/{cli-context-7HK67B2Z.js → cli-context-II57EHD2.js} +1554 -1450
  35. package/dist/cli-initial-tools.d.ts +54 -0
  36. package/dist/{cli-main-TQGLKB6D.js → cli-main-YR2WJCPL.js} +38062 -37035
  37. package/dist/cli-main-boot.d.ts +133 -0
  38. package/dist/cli-main-orchestration.d.ts +170 -0
  39. package/dist/cli-main-state.d.ts +19 -0
  40. package/dist/config-doctor.d.ts +1 -1
  41. package/dist/{config-transfer-UE37X4B5.js → config-transfer-VOIFY7U4.js} +2 -2
  42. package/dist/{execution-C2IECWF7.js → execution-IBAZ2EIU.js} +138 -124
  43. package/dist/fleet/host-director-setup.d.ts +41 -0
  44. package/dist/fleet/host-spawn-types.d.ts +17 -0
  45. package/dist/fleet/host.d.ts +2 -1
  46. package/dist/goal-host-prompts.d.ts +5 -0
  47. package/dist/goal-host-types.d.ts +94 -0
  48. package/dist/goal-host.d.ts +2 -91
  49. package/dist/{hq-KBFDKTDD.js → hq-5OIEKB4V.js} +5 -6
  50. package/dist/hq-server/handle-types.d.ts +1 -1
  51. package/dist/hq-server/routes/auth-handlers.d.ts +1 -1
  52. package/dist/hq-server/routes.d.ts +1 -13
  53. package/dist/hq-server/utils.d.ts +1 -1
  54. package/dist/{hq-server-AVNKZ2PV.js → hq-server-DU3ZH3X7.js} +3 -3
  55. package/dist/{hq-service-FGB7BY2D.js → hq-service-LYZV7EK7.js} +3 -3
  56. package/dist/index.js +4 -4
  57. package/dist/live-settings-input.d.ts +2 -0
  58. package/dist/mailbox-bridge-bootstrap.d.ts +1 -4
  59. package/dist/picker-effort.d.ts +32 -0
  60. package/dist/picker-model-picker.d.ts +13 -2
  61. package/dist/picker-provider-list.d.ts +66 -0
  62. package/dist/picker.d.ts +12 -12
  63. package/dist/{providers-models-O75MKLN2.js → providers-models-37DUV2GW.js} +247 -237
  64. package/dist/repl-suggestions.d.ts +0 -5
  65. package/dist/{sdd-runtime-PTOSPYI4.js → sdd-runtime-PF72WHLO.js} +3 -20
  66. package/dist/services/sdd/task-manager.d.ts +1 -12
  67. package/dist/services/sdd-runtime.d.ts +3 -4
  68. package/dist/services/statusline-config.d.ts +0 -2
  69. package/dist/settings-behavior-sections.d.ts +0 -1
  70. package/dist/short-circuit-flags-EXJBJ5GT.js +10 -0
  71. package/dist/{skill-suggest-L2EVWB6R.js → skill-suggest-THANK3LV.js} +1 -1
  72. package/dist/slash-commands/command-context.d.ts +2 -0
  73. package/dist/slash-commands/fallback-chain-view.d.ts +3 -0
  74. package/dist/slash-commands/fallback-ref-validation.d.ts +34 -0
  75. package/dist/slash-commands/goal-refiner.d.ts +10 -2
  76. package/dist/slash-commands/goals.d.ts +6 -0
  77. package/dist/slash-commands/kanban-task-completion.d.ts +17 -0
  78. package/dist/slash-commands/mcp.d.ts +0 -1
  79. package/dist/slash-commands/memory-purge-domain-terms.d.ts +5 -0
  80. package/dist/slash-commands/nextsteps-mode.d.ts +13 -0
  81. package/dist/slash-commands/session-live-status.d.ts +21 -0
  82. package/dist/slash-commands/session.d.ts +1 -1
  83. package/dist/slash-commands/settings-feature-ui-mutations.d.ts +8 -0
  84. package/dist/slash-commands/settings-hq-autonomy-mutations.d.ts +8 -0
  85. package/dist/slash-commands/settings-persist-deps.d.ts +10 -0
  86. package/dist/slash-commands/settings-runtime-mutations.d.ts +12 -0
  87. package/dist/slash-commands/shadow.d.ts +0 -1
  88. package/dist/slash-commands/tool-auto-thin-commands.d.ts +15 -0
  89. package/dist/subcommands/handlers/acp-agents.d.ts +9 -0
  90. package/dist/subcommands/handlers/acp-server.d.ts +7 -0
  91. package/dist/subcommands/handlers/hq.d.ts +0 -1
  92. package/dist/subcommands/handlers/providers-models-custom.d.ts +33 -0
  93. package/dist/subcommands/handlers/providers-models-visibility.d.ts +29 -0
  94. package/dist/subcommands/handlers/skill-suggest.d.ts +0 -2
  95. package/dist/{subcommands-CLI6QTLU.js → subcommands-DTKBXLPU.js} +2 -2
  96. package/dist/{update-J5WHAFPE.js → update-6OEPAEUV.js} +3 -3
  97. package/dist/utils/win32-cmd.d.ts +1 -1
  98. package/dist/{version-help-ATOKGMTK.js → version-help-JQGRPDJW.js} +2 -2
  99. package/dist/webui-server/host-settings.d.ts +17 -0
  100. package/dist/webui-server/http-bridge.d.ts +32 -0
  101. package/dist/webui-server/instance-registration.d.ts +19 -0
  102. package/dist/webui-server/kanban-services.d.ts +9 -0
  103. package/dist/webui-server/message-router.d.ts +14 -0
  104. package/dist/webui-server/prefs-seeding.d.ts +1 -2
  105. package/dist/webui-server/provider-config.d.ts +0 -1
  106. package/dist/webui-server/provider-plane.d.ts +14 -0
  107. package/dist/webui-server/session-agents.d.ts +18 -0
  108. package/dist/webui-server/session-start-live.d.ts +11 -0
  109. package/dist/webui-server/stream-coalescer.d.ts +1 -1
  110. package/dist/webui-server/transport.d.ts +12 -0
  111. package/dist/{webui-server-GQOVLQS3.js → webui-server-6IC3SLZG.js} +1600 -1435
  112. package/dist/webui-session-maintenance.d.ts +16 -0
  113. package/dist/wiring/brain-and-orchestration.d.ts +1 -1
  114. package/dist/wiring/cli-slash-commands-setup.d.ts +1 -0
  115. package/dist/wiring/command-host-state.d.ts +11 -2
  116. package/dist/wiring/dep-watcher-bridge.d.ts +8 -1
  117. package/dist/wiring/session-command-handlers.d.ts +2 -1
  118. package/dist/worktree-command-host.d.ts +31 -0
  119. package/package.json +30 -30
  120. package/dist/chunk-WHOIR577.js +0 -1
  121. package/dist/short-circuit-flags-D6VAG47Y.js +0 -10
@@ -0,0 +1,16 @@
1
+ import { scheduleOwnerlessEmptySessionCleanup } from '@wrongstack/webui-server';
2
+ interface SetupWebuiSessionMaintenanceInput {
3
+ opts: import('./webui-server-options.js').CliWebUIOptions;
4
+ broadcastEveryone: (msg: import('./webui-server/contracts.js').WSServerMessage) => void;
5
+ getForegroundSession: () => import('@wrongstack/core/types').SessionWriter;
6
+ clients: Map<import('ws').default, import('./webui-server/connection-handler.js').ConnectedClient>;
7
+ abortControllers: Map<string, AbortController>;
8
+ }
9
+ export declare function setupWebuiSessionMaintenance({ opts, broadcastEveryone, getForegroundSession, clients, abortControllers, }: SetupWebuiSessionMaintenanceInput): {
10
+ stopEmptySessionCleanup: {
11
+ runNow: ReturnType<typeof scheduleOwnerlessEmptySessionCleanup>['runNow'];
12
+ dispose: () => Promise<void>;
13
+ } | null;
14
+ };
15
+ export {};
16
+ //# sourceMappingURL=webui-session-maintenance.d.ts.map
@@ -9,7 +9,7 @@ type AnyObj = any;
9
9
  * and the TUI Brain panel. `describe` fields are static wiring facts surfaced
10
10
  * in `/brain status`.
11
11
  */
12
- interface BrainRuntimeSettings {
12
+ export interface BrainRuntimeSettings {
13
13
  maxAutoRisk: BrainAutoRisk;
14
14
  /** 'headless' = never block on a human; terminal policy resolves escalations. */
15
15
  mode: BrainEscalationMode;
@@ -85,6 +85,7 @@ export declare function setupCliSlashCommands(params: {
85
85
  };
86
86
  mcpRegistry: SE['mcpRegistry'];
87
87
  setYoloMode: SE['onYolo'];
88
+ setYoloPlusMode: SE['onYoloPlus'];
88
89
  setYoloConfirm: SE['onYoloConfirm'];
89
90
  getNextPredict: SE['getNextPredict'];
90
91
  setNextPredict: SE['setNextPredict'];
@@ -3,7 +3,7 @@ import { type BrainArbiter, type Director } from '@wrongstack/core/coordination'
3
3
  import type { EventBus } from '@wrongstack/core/kernel';
4
4
  import { type DestructiveKind } from '@wrongstack/core/security';
5
5
  import type { StatuslineDensities, StatuslineLines, StatuslineOrder } from '@wrongstack/core/statusline';
6
- import { type Config, type SessionWriter } from '@wrongstack/core/types';
6
+ import { type Config, type ConfigStore, type SessionWriter } from '@wrongstack/core/types';
7
7
  import type { WstackPaths } from '@wrongstack/core/utils';
8
8
  import { SddRunRegistry } from '@wrongstack/sdd';
9
9
  import type { HqCommandController } from '../hq-command-controller.js';
@@ -31,6 +31,8 @@ interface CommandHostStateInput {
31
31
  permissionPolicy: {
32
32
  setYolo?(enabled: boolean): void;
33
33
  getYolo?(): boolean;
34
+ setYoloPlus?(enabled: boolean): void;
35
+ getYoloPlus?(): boolean;
34
36
  setYoloConfirmKinds?(kinds: Iterable<DestructiveKind>): void;
35
37
  getYoloConfirmKinds?(): ReadonlySet<DestructiveKind>;
36
38
  };
@@ -43,6 +45,12 @@ interface CommandHostStateInput {
43
45
  * value keep overriding the switch the user just flipped.
44
46
  */
45
47
  contextMeta?: Record<string, unknown> | undefined;
48
+ /**
49
+ * The live config store subagent policies read YOLO+ from. `setConfig` only
50
+ * swaps the host's own config object, so a toggle that skipped the store
51
+ * would leave every subagent refusing what the leader now runs.
52
+ */
53
+ configStore?: Pick<ConfigStore, 'get' | 'update'> | undefined;
46
54
  }
47
55
  export declare function setupCommandHostState(input: CommandHostStateInput): Promise<{
48
56
  fleetStreamController: import("./controllers.js").FleetStreamController;
@@ -155,7 +163,7 @@ export declare function setupCommandHostState(input: CommandHostStateInput): Pro
155
163
  onPanelOpen: {
156
164
  current: ((action: string) => boolean) | null;
157
165
  };
158
- goalHost: import("../goal-host.js").GoalHostHooks;
166
+ goalHost: import("../goal-host-types.js").GoalHostHooks;
159
167
  coordinatorController: {
160
168
  onCoordinatorStart?: ((goal?: string) => void) | undefined;
161
169
  onCoordinatorStop?: (() => void) | undefined;
@@ -190,6 +198,7 @@ export declare function setupCommandHostState(input: CommandHostStateInput): Pro
190
198
  } | null>) | undefined;
191
199
  };
192
200
  setYoloMode: (enabled?: boolean) => boolean;
201
+ setYoloPlusMode: (enabled?: boolean) => boolean;
193
202
  setYoloConfirm: (update?: {
194
203
  kind: DestructiveKind;
195
204
  confirm: boolean;
@@ -16,7 +16,14 @@ interface SetupDepWatcherBridgeDeps {
16
16
  teardownHandlers: Array<() => void>;
17
17
  }
18
18
  interface SetupDepWatcherBridgeResult {
19
- /** Parsed dep-watcher config fragment (or undefined when absent/disabled). */
19
+ /**
20
+ * Parsed dep-watcher config fragment — the RAW host config, or undefined when
21
+ * the namespace is absent.
22
+ *
23
+ * `undefined` does NOT mean "off": the gate below defaults to enabled, so an
24
+ * absent block starts the bridge. Only an explicit `enabled: false` opts out.
25
+ * (Behaviour change 2026-10-05.)
26
+ */
20
27
  dwCfg: Record<string, unknown> | undefined;
21
28
  }
22
29
  export declare function setupDepWatcherBridge(deps: SetupDepWatcherBridgeDeps): SetupDepWatcherBridgeResult;
@@ -7,7 +7,7 @@ import type { MultiAgentHost } from '../multi-agent.js';
7
7
  import type { SessionStats } from '../session-stats.js';
8
8
  import type { BuiltinSlashCommandDeps } from './slash-commands.js';
9
9
  type SlashCommandDeps = BuiltinSlashCommandDeps;
10
- type SessionCommandHandlers = Pick<SlashCommandDeps, 'onPlugin' | 'onContextLimit' | 'onMcp' | 'mcpRegistry' | 'mcpStatus' | 'onYolo' | 'onYoloConfirm' | 'onNextPredict' | 'onSuggestions' | 'onExit' | 'onBeforeExit' | 'onClear' | 'onNewSession' | 'onDiag' | 'onStats' | 'generateCommitMessage' | 'onDispatchClassify'>;
10
+ type SessionCommandHandlers = Pick<SlashCommandDeps, 'onPlugin' | 'onContextLimit' | 'onMcp' | 'mcpRegistry' | 'mcpStatus' | 'onYolo' | 'onYoloPlus' | 'onYoloConfirm' | 'onNextPredict' | 'onSuggestions' | 'onExit' | 'onBeforeExit' | 'onClear' | 'onNewSession' | 'onDiag' | 'onStats' | 'generateCommitMessage' | 'onDispatchClassify'>;
11
11
  interface ErrorRecord {
12
12
  ts: string;
13
13
  phase: string;
@@ -30,6 +30,7 @@ interface SessionCommandHandlersInput {
30
30
  setEventMaxContext: (tokens: number) => void;
31
31
  mcpRegistry: MCPRegistry;
32
32
  onYolo: NonNullable<SlashCommandDeps['onYolo']>;
33
+ onYoloPlus?: SlashCommandDeps['onYoloPlus'];
33
34
  onYoloConfirm: SlashCommandDeps['onYoloConfirm'];
34
35
  getNextPredict: () => boolean;
35
36
  setNextPredict: (enabled: boolean) => void;
@@ -0,0 +1,31 @@
1
+ /**
2
+ * Host side of `/worktree` (list | merge | prune | clean) for the CLI/TUI.
3
+ *
4
+ * Merge and clean go through {@link WorktreeManager} — the same code the WebUI
5
+ * worktree panel uses — so both surfaces share its rollback, identity fallback
6
+ * and conflict detection. Clean force-removes checkouts, so it refuses while
7
+ * anything could be working in one:
8
+ * - a managed worktree a run in this process still owns (tracked from the
9
+ * `worktree.*` events every WorktreeManager here emits: Goal, fleet, SDD);
10
+ * - a Goal run in any process (the Goal run lease is held for the sweep, so
11
+ * a run cannot start mid-clean either);
12
+ * - a live SDD run in any process (the SDD board liveness guard).
13
+ */
14
+ import type { EventBus } from '@wrongstack/core/kernel';
15
+ export type WorktreeAction = 'list' | 'merge' | 'prune' | 'clean';
16
+ export interface WorktreeCommandHostDeps {
17
+ projectRoot: string;
18
+ events: EventBus;
19
+ /** True while this process's Goal run is planning or running. */
20
+ isGoalRunActive: () => boolean;
21
+ /** Acquire the project's Goal run lease; throws when another run holds it. */
22
+ acquireGoalRunLease: (ownerId: string) => Promise<() => Promise<void>>;
23
+ /** SDD board snapshot dir — enables the cross-process SDD liveness guard. */
24
+ sddBoardsDir?: string | undefined;
25
+ }
26
+ export interface WorktreeCommandHost {
27
+ onWorktree: (action: WorktreeAction, target?: string) => Promise<string>;
28
+ dispose: () => void;
29
+ }
30
+ export declare function createWorktreeCommandHost(deps: WorktreeCommandHostDeps): WorktreeCommandHost;
31
+ //# sourceMappingURL=worktree-command-host.d.ts.map
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@wrongstack/cli",
3
- "version": "1.0.33",
3
+ "version": "1.0.35",
4
4
  "license": "MIT",
5
5
  "description": "WrongStack CLI — terminal AI coding agent with provider catalog from models.dev. Provides `wrongstack` and `wstack` binaries.",
6
6
  "keywords": [
@@ -41,42 +41,42 @@
41
41
  "data"
42
42
  ],
43
43
  "dependencies": {
44
- "@wrongstack/acp": "1.0.33",
45
- "@wrongstack/bench": "1.0.33",
46
- "@wrongstack/core": "1.0.33",
47
- "@wrongstack/kanban": "1.0.33",
48
- "@wrongstack/mcp": "1.0.33",
49
- "@wrongstack/persistence": "1.0.33",
50
- "@wrongstack/plug-lsp": "1.0.33",
51
- "@wrongstack/plugins": "1.0.33",
52
- "@wrongstack/primitives": "1.0.33",
53
- "@wrongstack/providers": "1.0.33",
54
- "@wrongstack/requirement-intake": "1.0.33",
55
- "@wrongstack/runtime": "1.0.33",
56
- "@wrongstack/sage": "1.0.33",
57
- "@wrongstack/sage-mcp": "1.0.33",
58
- "@wrongstack/sdd": "1.0.33",
59
- "@wrongstack/security-scanner": "1.0.33",
60
- "@wrongstack/simpleui": "1.0.33",
61
- "@wrongstack/techstack": "1.0.33",
62
- "@wrongstack/telegram": "1.0.33",
63
- "@wrongstack/tools": "1.0.33",
64
- "@wrongstack/tui": "1.0.33",
65
- "@wrongstack/vector-memory": "1.0.33",
66
- "@wrongstack/webui": "1.0.33",
67
- "@wrongstack/webui-hq": "1.0.33",
68
- "@wrongstack/webui-protocol": "1.0.33",
69
- "@wrongstack/webui-server": "1.0.33",
70
- "@wrongstack/wrongtrace": "1.0.33",
44
+ "@wrongstack/acp": "1.0.35",
45
+ "@wrongstack/bench": "1.0.35",
46
+ "@wrongstack/core": "1.0.35",
47
+ "@wrongstack/kanban": "1.0.35",
48
+ "@wrongstack/mcp": "1.0.35",
49
+ "@wrongstack/persistence": "1.0.35",
50
+ "@wrongstack/plug-lsp": "1.0.35",
51
+ "@wrongstack/plugins": "1.0.35",
52
+ "@wrongstack/primitives": "1.0.35",
53
+ "@wrongstack/providers": "1.0.35",
54
+ "@wrongstack/requirement-intake": "1.0.35",
55
+ "@wrongstack/runtime": "1.0.35",
56
+ "@wrongstack/sage": "1.0.35",
57
+ "@wrongstack/sage-mcp": "1.0.35",
58
+ "@wrongstack/sdd": "1.0.35",
59
+ "@wrongstack/security-scanner": "1.0.35",
60
+ "@wrongstack/simpleui": "1.0.35",
61
+ "@wrongstack/techstack": "1.0.35",
62
+ "@wrongstack/telegram": "1.0.35",
63
+ "@wrongstack/tools": "1.0.35",
64
+ "@wrongstack/tui": "1.0.35",
65
+ "@wrongstack/vector-memory": "1.0.35",
66
+ "@wrongstack/webui": "1.0.35",
67
+ "@wrongstack/webui-hq": "1.0.35",
68
+ "@wrongstack/webui-protocol": "1.0.35",
69
+ "@wrongstack/webui-server": "1.0.35",
70
+ "@wrongstack/wrongtrace": "1.0.35",
71
71
  "ws": "^8.21.3"
72
72
  },
73
73
  "optionalDependencies": {
74
- "@wrongstack/desktop": "1.0.33"
74
+ "@wrongstack/desktop": "1.0.35"
75
75
  },
76
76
  "devDependencies": {
77
77
  "@types/node": "^26.5.1",
78
78
  "@types/ws": "^8.18.1",
79
- "@wrongstack/governance": "1.0.33",
79
+ "@wrongstack/governance": "1.0.35",
80
80
  "jsdom": "^30.0.1",
81
81
  "typescript": "^7.0.2"
82
82
  },
@@ -1 +0,0 @@
1
- //# sourceMappingURL=chunk-WHOIR577.js.map
@@ -1,10 +0,0 @@
1
- import {
2
- handleHelpVersionShortCircuit
3
- } from "./chunk-SWOPJHXI.js";
4
- import "./chunk-MPQCHBDJ.js";
5
- import "./chunk-WHEYHDIE.js";
6
- import "./chunk-F5DCFAKI.js";
7
- export {
8
- handleHelpVersionShortCircuit
9
- };
10
- //# sourceMappingURL=short-circuit-flags-D6VAG47Y.js.map