@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.
- 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/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-SWOPJHXI.js → chunk-LDV4ERNV.js} +4 -4
- package/dist/{chunk-24C6VVLM.js → chunk-LDXXMPMS.js} +12 -12
- package/dist/{chunk-UQUYBDMG.js → chunk-M4G5FO7F.js} +1 -1
- 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-7HK67B2Z.js → cli-context-II57EHD2.js} +1554 -1450
- 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/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-O75MKLN2.js → providers-models-37DUV2GW.js} +247 -237
- 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-CLI6QTLU.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/chunk-WHOIR577.js +0 -1
- 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-
|
|
160
|
+
//# sourceMappingURL=chunk-6SIUTX75.js.map
|
|
@@ -24,7 +24,7 @@ import {
|
|
|
24
24
|
sanitizeApiError,
|
|
25
25
|
truncateHqSummary,
|
|
26
26
|
writeInvalidBody
|
|
27
|
-
} from "./chunk-
|
|
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-
|
|
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-
|
|
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
|
|
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-
|
|
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-
|
|
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-
|
|
409
|
+
//# sourceMappingURL=chunk-AT2A7RJZ.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-
|
|
314
|
+
//# sourceMappingURL=chunk-CJSHS2K7.js.map
|