@wrongstack/cli 1.1.4 → 1.1.6
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-MZ5MQBFN.js → acp-CZBSFQB7.js} +6 -5
- package/dist/acp-leader/acp-leader-confirm.d.ts +2 -0
- package/dist/acp-leader/acp-leader-host-binding.d.ts +1 -0
- package/dist/acp-leader/acp-leader-host.d.ts +9 -0
- package/dist/acp-leader/acp-leader-picker.d.ts +6 -3
- package/dist/acp-leader/acp-leader-provider.d.ts +10 -0
- package/dist/acp-leader/acp-leader-skills.d.ts +5 -0
- package/dist/acp-leader/acp-leader-stream.d.ts +9 -0
- package/dist/{auth-IHQS6AFW.js → auth-2ZG5DBHS.js} +4 -4
- package/dist/boot/launch-menu-arrow.d.ts +20 -0
- package/dist/boot/launch-menu-types.d.ts +36 -0
- package/dist/boot/launch-menu.d.ts +1 -57
- package/dist/boot/tui-session-resume-rollback.d.ts +31 -0
- package/dist/{boot-auto-thin-7D4OVEWA.js → boot-auto-thin-N2CIGTXE.js} +3 -3
- package/dist/{chunk-TZPKOS5G.js → chunk-2XQ6SRKG.js} +2 -2
- package/dist/{chunk-3EXRPTAU.js → chunk-5TQ65PXQ.js} +17 -17
- package/dist/{chunk-VAQXOZKP.js → chunk-AJM4EFCM.js} +139 -136
- package/dist/{chunk-C2BBH4S4.js → chunk-E3MJFAFR.js} +2 -2
- package/dist/{chunk-COGI7EQU.js → chunk-EAATL6FL.js} +713 -21
- package/dist/{chunk-AWRZWPJ3.js → chunk-FWUIKCCO.js} +152 -123
- package/dist/{chunk-TAE3EGBM.js → chunk-H5DCQFUI.js} +5 -5
- package/dist/{chunk-BIGSVBPI.js → chunk-KNYIEQAY.js} +64 -61
- package/dist/chunk-LYWOV4OX.js +252 -0
- package/dist/{chunk-75OLD563.js → chunk-M7PSENGF.js} +3 -1
- package/dist/{chunk-I5LJLKA3.js → chunk-MKMM5RIW.js} +12 -5
- package/dist/{chunk-ZF4HRR5F.js → chunk-P7MEEUGT.js} +275 -250
- package/dist/chunk-PGC44T7N.js +255 -0
- package/dist/chunk-QLYPIJ7X.js +258 -0
- package/dist/{chunk-JKTJSLUT.js → chunk-QRWXHGLB.js} +242 -18
- package/dist/chunk-RN5CFAVQ.js +292 -0
- package/dist/{chunk-WDXNBYGD.js → chunk-TDP7CZGE.js} +6 -1
- package/dist/{chunk-6VPWQ4TG.js → chunk-UROB7MK5.js} +2 -1
- package/dist/{chunk-IJLIAPCW.js → chunk-VPSAKGLK.js} +47 -47
- package/dist/{chunk-2LTHDKZX.js → chunk-W7X23HI6.js} +18 -18
- package/dist/{chunk-GKGWPFW2.js → chunk-X4DEQLAZ.js} +1 -1
- package/dist/{cli-context-E44HQ4ZO.js → cli-context-6KS3HV5R.js} +247 -236
- package/dist/{cli-main-OT63I2FX.js → cli-main-NF3YGDME.js} +1779 -1494
- package/dist/cli-main-boot.d.ts +1 -1
- package/dist/config-doctor-known-keys.d.ts +33 -0
- package/dist/config-doctor.d.ts +2 -47
- package/dist/config-history-support.d.ts +36 -0
- package/dist/config-history.d.ts +1 -1
- package/dist/{config-transfer-Y7XJMJRN.js → config-transfer-B4GOZTFC.js} +2 -2
- package/dist/{execution-OK34CJKJ.js → execution-RVDUXLNT.js} +6522 -6426
- package/dist/execution-tui.d.ts +30 -0
- package/dist/fleet/acp-wrongstack-bridge.d.ts +11 -3
- package/dist/fleet/host-acp.d.ts +3 -0
- package/dist/fleet/wrongforge-client.d.ts +116 -0
- package/dist/fleet/wrongforge-gateway.d.ts +20 -0
- package/dist/fleet/wrongforge-info.d.ts +32 -0
- package/dist/fleet/wrongforge-quota.d.ts +10 -0
- package/dist/fleet/wrongforge-runner.d.ts +37 -0
- package/dist/fleet/wrongforge-runtime.d.ts +10 -0
- package/dist/{hq-JD5AZVMG.js → hq-V2M4IYCI.js} +320 -306
- package/dist/hq-server/login-attempt-store.d.ts +2 -0
- package/dist/hq-server/sweeps.d.ts +28 -0
- package/dist/{hq-server-BI23EPM7.js → hq-server-QM7EIVGJ.js} +3 -3
- package/dist/index.js +5 -5
- package/dist/mcp-22CFBX4H.js +236 -0
- package/dist/mcp-serve.d.ts +0 -63
- package/dist/{modeldiag-HDIKG37X.js → modeldiag-5PBB777J.js} +4 -4
- package/dist/{per-subcommand-help-4GYSCMLU.js → per-subcommand-help-MQGERD4E.js} +2 -2
- package/dist/plugin-llm-command.d.ts +9 -0
- package/dist/{plugin-usage-TYF5HY4K.js → plugin-usage-UWKYMNQU.js} +3 -3
- package/dist/{plugins-XGAXDLPT.js → plugins-VP7JQH47.js} +4 -4
- package/dist/{sdd-runtime-6MFUXWJK.js → sdd-runtime-HIJ4Z5TF.js} +2 -2
- package/dist/services/sdd/state.d.ts +2 -0
- package/dist/session-event-wiring-types.d.ts +62 -0
- package/dist/session-event-wiring.d.ts +2 -52
- package/dist/{sessions-config-SJVQXCIE.js → sessions-config-7MK742OW.js} +2 -2
- package/dist/short-circuit-flags-276OLPIN.js +11 -0
- package/dist/slash-commands/command-context-fleet.d.ts +187 -0
- package/dist/slash-commands/command-context-sdd-goal.d.ts +102 -0
- package/dist/slash-commands/command-context.d.ts +3 -282
- package/dist/slash-commands/project-switch-interactive.d.ts +11 -0
- package/dist/slash-commands/setmodel-helpers.d.ts +36 -0
- package/dist/subcommands/handlers/hq-token.d.ts +3 -0
- package/dist/subcommands/handlers/hq.d.ts +0 -21
- package/dist/subcommands/handlers/per-subcommand-help-operations.d.ts +8 -0
- package/dist/subcommands/handlers/tools-cli-args.d.ts +57 -0
- package/dist/subcommands/handlers/tools-cli.d.ts +5 -0
- package/dist/subcommands/handlers/tools-serve.d.ts +4 -0
- package/dist/{subcommands-YADUV7IJ.js → subcommands-SKJPUJ7N.js} +2 -2
- package/dist/tool-gateway-http.d.ts +30 -0
- package/dist/tool-gateway.d.ts +185 -0
- package/dist/tools-cli-44MLIUQO.js +509 -0
- package/dist/tools-serve-TRCET2M7.js +102 -0
- package/dist/{tools-skills-55QVTMSK.js → tools-skills-WDTMCE46.js} +7 -2
- package/dist/tuneup-runtime-checks.d.ts +7 -0
- package/dist/tuneup-types.d.ts +118 -0
- package/dist/tuneup.d.ts +3 -122
- package/dist/{typesafe-YBEADNAH.js → typesafe-QLSMFU7J.js} +1 -1
- package/dist/{version-help-RBZC5GZZ.js → version-help-X6CC4CFY.js} +2 -2
- package/dist/{webui-server-CB64CFDG.js → webui-server-6I6QOECV.js} +44 -6
- package/dist/wiring/provider-runtime-setup.d.ts +3 -1
- package/dist/wiring/session-runtime.d.ts +1 -1
- package/dist/wrongforge-gateway-UOFBK56J.js +92 -0
- package/dist/wrongforge-leader/wrongforge-leader-gateway.d.ts +9 -0
- package/dist/wrongforge-leader/wrongforge-leader-picker.d.ts +12 -0
- package/dist/wrongforge-leader/wrongforge-leader-provider.d.ts +56 -0
- package/package.json +1 -1
- package/dist/mcp-W7A5HUXV.js +0 -560
- package/dist/short-circuit-flags-QEXUS3BY.js +0 -11
|
@@ -32,52 +32,6 @@ function clearSuggestions() {
|
|
|
32
32
|
sharedAutoSuggestions = [];
|
|
33
33
|
}
|
|
34
34
|
|
|
35
|
-
// src/tui-thinking-word.ts
|
|
36
|
-
var DEFAULT_TUI_THINKING_WORD = "thinking";
|
|
37
|
-
var MAX_TUI_THINKING_WORD_LENGTH = 16;
|
|
38
|
-
function normalizeTuiThinkingWord(value) {
|
|
39
|
-
if (typeof value !== "string") return DEFAULT_TUI_THINKING_WORD;
|
|
40
|
-
const word = value.trim();
|
|
41
|
-
if (word.length === 0 || word.length > MAX_TUI_THINKING_WORD_LENGTH) {
|
|
42
|
-
return DEFAULT_TUI_THINKING_WORD;
|
|
43
|
-
}
|
|
44
|
-
if (!/^[\p{L}\p{N}_-]+$/u.test(word)) return DEFAULT_TUI_THINKING_WORD;
|
|
45
|
-
return word;
|
|
46
|
-
}
|
|
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
|
-
|
|
81
35
|
// src/hq-fleet-control.ts
|
|
82
36
|
import {
|
|
83
37
|
areSubagentsAllowedForSession,
|
|
@@ -141,6 +95,52 @@ function createHqFleetControl(getDirector, defaultSessionId, scope) {
|
|
|
141
95
|
};
|
|
142
96
|
}
|
|
143
97
|
|
|
98
|
+
// src/tui-thinking-word.ts
|
|
99
|
+
var DEFAULT_TUI_THINKING_WORD = "thinking";
|
|
100
|
+
var MAX_TUI_THINKING_WORD_LENGTH = 16;
|
|
101
|
+
function normalizeTuiThinkingWord(value) {
|
|
102
|
+
if (typeof value !== "string") return DEFAULT_TUI_THINKING_WORD;
|
|
103
|
+
const word = value.trim();
|
|
104
|
+
if (word.length === 0 || word.length > MAX_TUI_THINKING_WORD_LENGTH) {
|
|
105
|
+
return DEFAULT_TUI_THINKING_WORD;
|
|
106
|
+
}
|
|
107
|
+
if (!/^[\p{L}\p{N}_-]+$/u.test(word)) return DEFAULT_TUI_THINKING_WORD;
|
|
108
|
+
return word;
|
|
109
|
+
}
|
|
110
|
+
|
|
111
|
+
// src/services/run-git.ts
|
|
112
|
+
import { spawn } from "node:child_process";
|
|
113
|
+
import { toErrorMessage } from "@wrongstack/core/utils";
|
|
114
|
+
async function runGit(args, cwd, env) {
|
|
115
|
+
try {
|
|
116
|
+
return await new Promise((resolve, reject) => {
|
|
117
|
+
const child = spawn("git", args, {
|
|
118
|
+
cwd,
|
|
119
|
+
...env ? { env: { ...process.env, ...env } } : {},
|
|
120
|
+
stdio: ["ignore", "pipe", "pipe"],
|
|
121
|
+
signal: AbortSignal.timeout(3e4),
|
|
122
|
+
windowsHide: true
|
|
123
|
+
});
|
|
124
|
+
let stdout = "";
|
|
125
|
+
let stderr = "";
|
|
126
|
+
child.stdout?.setEncoding("utf8");
|
|
127
|
+
child.stderr?.setEncoding("utf8");
|
|
128
|
+
child.stdout?.on("data", (d) => {
|
|
129
|
+
stdout += d;
|
|
130
|
+
});
|
|
131
|
+
child.stderr?.on("data", (d) => {
|
|
132
|
+
stderr += d;
|
|
133
|
+
});
|
|
134
|
+
child.on("error", (err) => {
|
|
135
|
+
reject(new Error(`Failed to run git: ${err.message}`));
|
|
136
|
+
});
|
|
137
|
+
child.on("close", (code) => resolve({ stdout, stderr, code: code ?? 1 }));
|
|
138
|
+
});
|
|
139
|
+
} catch (err) {
|
|
140
|
+
throw new Error(toErrorMessage(err));
|
|
141
|
+
}
|
|
142
|
+
}
|
|
143
|
+
|
|
144
144
|
export {
|
|
145
145
|
resolveExecutionMode,
|
|
146
146
|
setSuggestions,
|
|
@@ -156,4 +156,4 @@ export {
|
|
|
156
156
|
spawnHqAgent,
|
|
157
157
|
createHqFleetControl
|
|
158
158
|
};
|
|
159
|
-
//# sourceMappingURL=chunk-
|
|
159
|
+
//# sourceMappingURL=chunk-VPSAKGLK.js.map
|
|
@@ -3,40 +3,40 @@
|
|
|
3
3
|
var loaders = {
|
|
4
4
|
automation: async () => (await import("./automation-O7ZRZSFS.js")).automationCmd,
|
|
5
5
|
sandbox: async () => (await import("./sandbox-EZQ76MNY.js")).sandboxCmd,
|
|
6
|
-
acp: async () => (await import("./acp-
|
|
6
|
+
acp: async () => (await import("./acp-CZBSFQB7.js")).acpCmd,
|
|
7
7
|
init: async () => (await import("./init-5PLABNLR.js")).initCmd,
|
|
8
|
-
auth: async () => (await import("./auth-
|
|
8
|
+
auth: async () => (await import("./auth-2ZG5DBHS.js")).authCmd,
|
|
9
9
|
update: async () => (await import("./update-54W7GUS5.js")).updateCmd,
|
|
10
10
|
remote: async () => (await import("./remote-AKKRJEHK.js")).remoteCmd,
|
|
11
|
-
sessions: async () => (await import("./sessions-config-
|
|
12
|
-
config: async () => (await import("./sessions-config-
|
|
13
|
-
"config-export": async () => (await import("./config-transfer-
|
|
14
|
-
"config-import": async () => (await import("./config-transfer-
|
|
11
|
+
sessions: async () => (await import("./sessions-config-7MK742OW.js")).sessionsCmd,
|
|
12
|
+
config: async () => (await import("./sessions-config-7MK742OW.js")).configCmd,
|
|
13
|
+
"config-export": async () => (await import("./config-transfer-B4GOZTFC.js")).configExportCmd,
|
|
14
|
+
"config-import": async () => (await import("./config-transfer-B4GOZTFC.js")).configImportCmd,
|
|
15
15
|
rewind: async () => (await import("./rewind-GAUXWSTU.js")).rewindCmd,
|
|
16
16
|
replay: async () => (await import("./replay-URJFMQCU.js")).replayCmd,
|
|
17
17
|
audit: async () => (await import("./audit-NH7NUKBV.js")).auditCmd,
|
|
18
|
-
tools: async () => (await import("./tools-skills-
|
|
19
|
-
skills: async () => (await import("./tools-skills-
|
|
18
|
+
tools: async () => (await import("./tools-skills-WDTMCE46.js")).toolsCmd,
|
|
19
|
+
skills: async () => (await import("./tools-skills-WDTMCE46.js")).skillsCmd,
|
|
20
20
|
"skill-suggest": async () => (await import("./skill-suggest-LZV2TIPQ.js")).skillSuggestCmd,
|
|
21
|
-
typesafe: async () => (await import("./typesafe-
|
|
21
|
+
typesafe: async () => (await import("./typesafe-QLSMFU7J.js")).typesafeCmd,
|
|
22
22
|
providers: async () => (await import("./providers-models-CDI5GVBX.js")).providersCmd,
|
|
23
23
|
models: async () => (await import("./providers-models-CDI5GVBX.js")).modelsCmd,
|
|
24
|
-
mcp: async () => (await import("./mcp-
|
|
25
|
-
plugin: async () => (await import("./plugin-usage-
|
|
26
|
-
plugins: async () => (await import("./plugin-usage-
|
|
24
|
+
mcp: async () => (await import("./mcp-22CFBX4H.js")).mcpCmd,
|
|
25
|
+
plugin: async () => (await import("./plugin-usage-UWKYMNQU.js")).pluginCmd,
|
|
26
|
+
plugins: async () => (await import("./plugin-usage-UWKYMNQU.js")).pluginCmd,
|
|
27
27
|
diag: async () => (await import("./diag-doctor-5SVYK2DR.js")).diagCmd,
|
|
28
28
|
doctor: async () => (await import("./diag-doctor-5SVYK2DR.js")).doctorCmd,
|
|
29
29
|
"proxy-status": async () => (await import("./diag-doctor-5SVYK2DR.js")).proxyCmd,
|
|
30
30
|
export: async () => (await import("./export-W27PTU6Y.js")).exportCmd,
|
|
31
|
-
usage: async () => (await import("./plugin-usage-
|
|
32
|
-
version: async () => (await import("./version-help-
|
|
33
|
-
help: async () => (await import("./version-help-
|
|
31
|
+
usage: async () => (await import("./plugin-usage-UWKYMNQU.js")).usageCmd,
|
|
32
|
+
version: async () => (await import("./version-help-X6CC4CFY.js")).versionCmd,
|
|
33
|
+
help: async () => (await import("./version-help-X6CC4CFY.js")).helpCmd,
|
|
34
34
|
projects: async () => (await import("./projects-FWRJHW3S.js")).projectsCmd,
|
|
35
|
-
modeldiag: async () => (await import("./modeldiag-
|
|
35
|
+
modeldiag: async () => (await import("./modeldiag-5PBB777J.js")).modeldiagCmd,
|
|
36
36
|
quick: async () => (await import("./quick-NPC3N3ZX.js")).quickCmd,
|
|
37
37
|
bench: async () => (await import("./bench-NDYES33Y.js")).benchCmd,
|
|
38
38
|
chronicle: async () => (await import("./chronicle-WBK3TJRB.js")).chronicleCmd,
|
|
39
|
-
hq: async () => (await import("./hq-
|
|
39
|
+
hq: async () => (await import("./hq-V2M4IYCI.js")).hqCmd,
|
|
40
40
|
mailbox: async () => (await import("./mailbox-serve-MMQCHOHI.js")).mailboxServeCmd,
|
|
41
41
|
permissions: async () => (await import("./permissions-6YJ64W65.js")).permissionsCmd,
|
|
42
42
|
project: async () => (await import("./project-V5KNTLV4.js")).projectCmd,
|
|
@@ -58,4 +58,4 @@ export {
|
|
|
58
58
|
subcommands,
|
|
59
59
|
subcommandNames
|
|
60
60
|
};
|
|
61
|
-
//# sourceMappingURL=chunk-
|
|
61
|
+
//# sourceMappingURL=chunk-W7X23HI6.js.map
|