@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
@@ -45,6 +45,39 @@ function normalizeTuiThinkingWord(value) {
45
45
  return word;
46
46
  }
47
47
 
48
+ // src/services/run-git.ts
49
+ import { spawn } from "node:child_process";
50
+ import { toErrorMessage } from "@wrongstack/core/utils";
51
+ async function runGit(args, cwd, env) {
52
+ try {
53
+ return await new Promise((resolve, reject) => {
54
+ const child = spawn("git", args, {
55
+ cwd,
56
+ ...env ? { env: { ...process.env, ...env } } : {},
57
+ stdio: ["ignore", "pipe", "pipe"],
58
+ signal: AbortSignal.timeout(3e4),
59
+ windowsHide: true
60
+ });
61
+ let stdout = "";
62
+ let stderr = "";
63
+ child.stdout?.setEncoding("utf8");
64
+ child.stderr?.setEncoding("utf8");
65
+ child.stdout?.on("data", (d) => {
66
+ stdout += d;
67
+ });
68
+ child.stderr?.on("data", (d) => {
69
+ stderr += d;
70
+ });
71
+ child.on("error", (err) => {
72
+ reject(new Error(`Failed to run git: ${err.message}`));
73
+ });
74
+ child.on("close", (code) => resolve({ stdout, stderr, code: code ?? 1 }));
75
+ });
76
+ } catch (err) {
77
+ throw new Error(toErrorMessage(err));
78
+ }
79
+ }
80
+
48
81
  // src/hq-fleet-control.ts
49
82
  import {
50
83
  areSubagentsAllowedForSession,
@@ -109,39 +142,6 @@ function createHqFleetControl(getDirector, defaultSessionId, scope) {
109
142
  };
110
143
  }
111
144
 
112
- // src/services/run-git.ts
113
- import { spawn } from "node:child_process";
114
- import { toErrorMessage } from "@wrongstack/core/utils";
115
- async function runGit(args, cwd, env) {
116
- try {
117
- return await new Promise((resolve, reject) => {
118
- const child = spawn("git", args, {
119
- cwd,
120
- ...env ? { env: { ...process.env, ...env } } : {},
121
- stdio: ["ignore", "pipe", "pipe"],
122
- signal: AbortSignal.timeout(3e4),
123
- windowsHide: true
124
- });
125
- let stdout = "";
126
- let stderr = "";
127
- child.stdout?.setEncoding("utf8");
128
- child.stderr?.setEncoding("utf8");
129
- child.stdout?.on("data", (d) => {
130
- stdout += d;
131
- });
132
- child.stderr?.on("data", (d) => {
133
- stderr += d;
134
- });
135
- child.on("error", (err) => {
136
- reject(new Error(`Failed to run git: ${err.message}`));
137
- });
138
- child.on("close", (code) => resolve({ stdout, stderr, code: code ?? 1 }));
139
- });
140
- } catch (err) {
141
- throw new Error(toErrorMessage(err));
142
- }
143
- }
144
-
145
145
  export {
146
146
  resolveExecutionMode,
147
147
  setSuggestions,
@@ -151,10 +151,10 @@ export {
151
151
  clearSuggestions,
152
152
  MAX_TUI_THINKING_WORD_LENGTH,
153
153
  normalizeTuiThinkingWord,
154
+ runGit,
154
155
  killHqSessionFleet,
155
156
  terminateHqAgent,
156
157
  spawnHqAgent,
157
- createHqFleetControl,
158
- runGit
158
+ createHqFleetControl
159
159
  };
160
- //# sourceMappingURL=chunk-3LEFXLAW.js.map
160
+ //# sourceMappingURL=chunk-6SIUTX75.js.map
@@ -24,7 +24,7 @@ import {
24
24
  sanitizeApiError,
25
25
  truncateHqSummary,
26
26
  writeInvalidBody
27
- } from "./chunk-5EA6OTLJ.js";
27
+ } from "./chunk-AFOH6CHO.js";
28
28
  import {
29
29
  createHqIpAllowlist
30
30
  } from "./chunk-Q7E3BPDU.js";
@@ -2890,7 +2890,7 @@ async function handleApiAgentMessages(req, res, match, agentMessages) {
2890
2890
  async function handleApiSystemUpdate(res) {
2891
2891
  const [{ checkForUpdate }, { detectUpdatePackageName }] = await Promise.all([
2892
2892
  import("./update-check-VLVT4IV2.js"),
2893
- import("./update-J5WHAFPE.js")
2893
+ import("./update-6OEPAEUV.js")
2894
2894
  ]);
2895
2895
  const packageName = detectUpdatePackageName();
2896
2896
  const info = await checkForUpdate({ packageName });
@@ -5367,4 +5367,4 @@ export {
5367
5367
  startHqServer,
5368
5368
  HqInsecureExposureError2 as HqInsecureExposureError
5369
5369
  };
5370
- //# sourceMappingURL=chunk-RQ4UBKYH.js.map
5370
+ //# sourceMappingURL=chunk-6Z6C6ZHH.js.map
@@ -17,7 +17,7 @@ import * as os2 from "node:os";
17
17
  import * as path from "node:path";
18
18
  import { resolveHqDataDir } from "@wrongstack/core/hq";
19
19
  import { isSafeSessionId as coreIsSafeSessionId } from "@wrongstack/core/utils";
20
- import { sanitizeApiError, scrubErrorDetail } from "@wrongstack/core/security";
20
+ import { sanitizeApiError } from "@wrongstack/core/security";
21
21
  var TRANSCRIPT_RING_MAX = 4e3;
22
22
  var MAX_TRANSCRIPT_SESSIONS = 400;
23
23
  var MAX_AGENT_RINGS = 800;
@@ -236,4 +236,4 @@ export {
236
236
  recordTimeseriesSignal,
237
237
  sanitizeApiError
238
238
  };
239
- //# sourceMappingURL=chunk-5EA6OTLJ.js.map
239
+ //# sourceMappingURL=chunk-AFOH6CHO.js.map
@@ -93,6 +93,7 @@ var helpCmd = async (_args, deps) => {
93
93
  ...section("Tools & permissions", [
94
94
  ["--yolo | --no-yolo", "Auto-approve on or off (gated destructive kinds still ask)"],
95
95
  ["--yolo-destructive", "Let YOLO run every destructive kind you may un-gate"],
96
+ ["--yolo-plus", "YOLO+: never ask for anything (explicit deny rules still refuse)"],
96
97
  ["--restricted", "Untrusted repo: no shell/network/MCP tools, stay in project, no YOLO"],
97
98
  ["--safe-mode", "Troubleshoot: no 3rd-party plugins, hooks, MCP, skills, overrides"],
98
99
  ["--only-tools <a,b,...>", "Expose only these tools (trailing * = prefix: mcp__gh__*)"],
@@ -156,4 +157,4 @@ export {
156
157
  versionCmd,
157
158
  helpCmd
158
159
  };
159
- //# sourceMappingURL=chunk-WHEYHDIE.js.map
160
+ //# sourceMappingURL=chunk-AKESWZH5.js.map
@@ -1,4 +1,7 @@
1
1
 
2
+ // src/services/sdd/project-context.ts
3
+ import { gatherProjectContext } from "@wrongstack/sdd";
4
+
2
5
  // src/services/sdd/state.ts
3
6
  import {
4
7
  SpecVersioning
@@ -85,7 +88,6 @@ function getSessionState(ctx) {
85
88
  }
86
89
 
87
90
  // src/services/sdd/project-context.ts
88
- import { gatherProjectContext } from "@wrongstack/sdd";
89
91
  function getActiveBuilder() {
90
92
  return sddState.getBuilder();
91
93
  }
@@ -375,17 +377,6 @@ function matchTaskNode(nodes, query) {
375
377
  const q = trimmed.toLowerCase();
376
378
  return nodes.find((n) => n.title.toLowerCase().includes(q) || q.includes(n.title.toLowerCase())) ?? null;
377
379
  }
378
- function markTaskCompleted(taskTitle) {
379
- const tracker = sddState.getTaskTracker();
380
- if (!tracker) return false;
381
- const nodes = tracker.getAllNodes({ status: ["pending", "in_progress"] });
382
- const match = nodes.find(
383
- (n) => n.title.toLowerCase().includes(taskTitle.toLowerCase()) || taskTitle.toLowerCase().includes(n.title.toLowerCase())
384
- );
385
- if (!match) return false;
386
- tracker.updateNodeStatus(match.id, "completed");
387
- return true;
388
- }
389
380
  function getTaskGraphId() {
390
381
  return sddState.getTaskGraphId();
391
382
  }
@@ -394,7 +385,6 @@ function getTaskTrackerExport() {
394
385
  }
395
386
 
396
387
  export {
397
- SDDState,
398
388
  sddState,
399
389
  getSessionState,
400
390
  getActiveBuilder,
@@ -402,7 +392,6 @@ export {
402
392
  getActiveSDDPhase,
403
393
  findSpec,
404
394
  gatherProjectContext,
405
- isExplanatoryText,
406
395
  trySaveSpecFromAIOutput,
407
396
  trySaveImplementationPlan,
408
397
  autoDetectTaskCompletion,
@@ -414,8 +403,7 @@ export {
414
403
  renderTaskListWithProgress,
415
404
  getCurrentExecutingContext,
416
405
  matchTaskNode,
417
- markTaskCompleted,
418
406
  getTaskGraphId,
419
407
  getTaskTrackerExport
420
408
  };
421
- //# sourceMappingURL=chunk-JHUJUIOH.js.map
409
+ //# sourceMappingURL=chunk-AT2A7RJZ.js.map
@@ -7,4 +7,4 @@ import {
7
7
  export {
8
8
  buildWin32CmdShimInvocation
9
9
  };
10
- //# sourceMappingURL=chunk-U3SS4NRH.js.map
10
+ //# sourceMappingURL=chunk-BHXAKTBE.js.map
@@ -3,6 +3,7 @@
3
3
  var BOOLEAN_FLAGS = /* @__PURE__ */ new Set([
4
4
  "yolo",
5
5
  "no-yolo",
6
+ "yolo-plus",
6
7
  "yolo-destructive",
7
8
  "confirm-destructive",
8
9
  "force-all-yolo",
@@ -107,6 +108,9 @@ var BOOLEAN_FLAGS = /* @__PURE__ */ new Set([
107
108
  "all-models",
108
109
  "plan",
109
110
  "json",
111
+ // `wstack modeldiag eval [role] --quick`: as a value flag it swallowed the
112
+ // role (`eval --quick coder` ran a full all-category eval, not a quick one).
113
+ "quick",
110
114
  // Destructive-preview switch (`wstack chronicle prune --dry-run`). It is
111
115
  // boolean at every call site, and leaving it out let it consume the next
112
116
  // positional — on a command whose whole purpose is to NOT delete.
@@ -307,4 +311,4 @@ export {
307
311
  parseAuthFlags,
308
312
  parseSpawnFlags
309
313
  };
310
- //# sourceMappingURL=chunk-MPQCHBDJ.js.map
314
+ //# sourceMappingURL=chunk-CJSHS2K7.js.map