@wrongstack/cli 0.316.1 → 0.317.0

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.
@@ -13,7 +13,7 @@ import {
13
13
  runOAuthLoginKind,
14
14
  runOAuthLoginMenu,
15
15
  validateFamily
16
- } from "./chunk-32MTOI2I.js";
16
+ } from "./chunk-YX6KUIDF.js";
17
17
  import {
18
18
  restoreFlags
19
19
  } from "./chunk-CSAPOCBP.js";
@@ -23,7 +23,7 @@ import {
23
23
  } from "./chunk-2VMJ3E5Z.js";
24
24
  import {
25
25
  parseAuthFlags
26
- } from "./chunk-T642Q732.js";
26
+ } from "./chunk-L6ZNCTRJ.js";
27
27
  import "./chunk-B4JLSXZB.js";
28
28
  import "./chunk-VUVOMXWP.js";
29
29
  import {
@@ -596,4 +596,4 @@ async function runAuthRemove(deps, providerId) {
596
596
  export {
597
597
  authCmd
598
598
  };
599
- //# sourceMappingURL=auth-GZ5A5OF5.js.map
599
+ //# sourceMappingURL=auth-3OSF6BMU.js.map
@@ -2843,8 +2843,8 @@ async function handleApiAgentMessages(req, res, match, agentMessages) {
2843
2843
  // src/hq-server/routes/system-handlers.ts
2844
2844
  async function handleApiSystemUpdate(res) {
2845
2845
  const [{ checkForUpdate }, { detectUpdatePackageName }] = await Promise.all([
2846
- import("./update-check-LICQNYFK.js"),
2847
- import("./update-XKARO3CY.js")
2846
+ import("./update-check-PKSMSMD6.js"),
2847
+ import("./update-K45CS6SS.js")
2848
2848
  ]);
2849
2849
  const packageName = detectUpdatePackageName();
2850
2850
  const info = await checkForUpdate({ packageName });
@@ -4914,4 +4914,4 @@ export {
4914
4914
  startHqServer,
4915
4915
  HqInsecureExposureError2 as HqInsecureExposureError
4916
4916
  };
4917
- //# sourceMappingURL=chunk-NZZOYLQ7.js.map
4917
+ //# sourceMappingURL=chunk-7JBKXVMK.js.map
@@ -3,7 +3,7 @@ import {
3
3
  } from "./chunk-U3SS4NRH.js";
4
4
  import {
5
5
  checkForUpdate
6
- } from "./chunk-NV3JDK4F.js";
6
+ } from "./chunk-YLQEGYV4.js";
7
7
 
8
8
  // src/subcommands/handlers/update.ts
9
9
  import { spawn } from "node:child_process";
@@ -383,4 +383,4 @@ export {
383
383
  detectUpdatePackageManager,
384
384
  detectUpdatePackageName
385
385
  };
386
- //# sourceMappingURL=chunk-VXCCBI2W.js.map
386
+ //# sourceMappingURL=chunk-DE7BZDNK.js.map
@@ -215,31 +215,20 @@ function parseSpawnFlags(input) {
215
215
  };
216
216
  while (rest.length > 0) {
217
217
  let m;
218
- m = consume(/^--provider=(\S+)\s*/);
218
+ m = consume(/^(?:--provider|-p)[=\s]+(\S+)\s*/);
219
219
  if (m) opts.provider = m[1];
220
220
  else {
221
- m = consume(/^--model=(\S+)\s*/);
221
+ m = consume(/^(?:--model|-m)[=\s]+(\S+)\s*/);
222
222
  if (m) opts.model = m[1];
223
223
  else {
224
- m = consume(/^--name=("([^"]+)"|(\S+))\s*/);
225
- if (m) opts.name = m[2] ?? m[3];
224
+ m = consume(/^(?:--name|-n)[=\s]+(?:"([^"]+)"|'([^']+)'|(\S+))\s*/);
225
+ if (m) opts.name = m[1] ?? m[2] ?? m[3];
226
226
  else {
227
- m = consume(/^--tools=(\S+)\s*/);
228
- if (m)
229
- opts.tools = m[1]?.split(",").map((t) => t.trim()).filter(Boolean);
230
- else {
231
- m = consume(/^-p\s+(\S+)\s*/);
232
- if (m) opts.provider = m[1];
233
- else {
234
- m = consume(/^-m\s+(\S+)\s*/);
235
- if (m) opts.model = m[1];
236
- else {
237
- m = consume(/^-n\s+("([^"]+)"|(\S+))\s*/);
238
- if (m) opts.name = m[2] ?? m[3];
239
- else break;
240
- }
241
- }
242
- }
227
+ m = consume(/^(?:--tools|-t)[=\s]+(?:"([^"]+)"|'([^']+)'|(\S+))\s*/);
228
+ if (m) {
229
+ const rawTools = m[1] ?? m[2] ?? m[3] ?? "";
230
+ opts.tools = rawTools.split(",").map((t) => t.trim()).filter(Boolean);
231
+ } else break;
243
232
  }
244
233
  }
245
234
  }
@@ -1075,4 +1064,4 @@ export {
1075
1064
  runLiveProviderPicker,
1076
1065
  runPicker
1077
1066
  };
1078
- //# sourceMappingURL=chunk-T642Q732.js.map
1067
+ //# sourceMappingURL=chunk-L6ZNCTRJ.js.map
@@ -5,7 +5,7 @@ import { createRequire } from "node:module";
5
5
  import * as os from "node:os";
6
6
  import * as path from "node:path";
7
7
  import { FetchError } from "@wrongstack/core/types";
8
- import { resolveWstackPaths } from "@wrongstack/core/utils";
8
+ import { atomicWrite, ensureDir, resolveWstackPaths } from "@wrongstack/core/utils";
9
9
  var defaultHomeDir = () => os.homedir();
10
10
  function npmRegistryUrl(packageName) {
11
11
  return `https://registry.npmjs.org/${encodeURIComponent(packageName)}/latest`;
@@ -87,9 +87,9 @@ async function readCache(homeFn = defaultHomeDir, packageName = "wrongstack") {
87
87
  }
88
88
  async function writeCache(entry, homeFn = defaultHomeDir) {
89
89
  try {
90
- const dir = path.dirname(cachePath(homeFn));
91
- await fs.mkdir(dir, { recursive: true });
92
- await fs.writeFile(cachePath(homeFn), JSON.stringify(entry, null, 2), "utf8");
90
+ const file = cachePath(homeFn);
91
+ await ensureDir(path.dirname(file));
92
+ await atomicWrite(file, JSON.stringify(entry, null, 2));
93
93
  } catch {
94
94
  }
95
95
  }
@@ -173,4 +173,4 @@ export {
173
173
  checkForUpdate,
174
174
  getUpdateNotification
175
175
  };
176
- //# sourceMappingURL=chunk-NV3JDK4F.js.map
176
+ //# sourceMappingURL=chunk-YLQEGYV4.js.map
@@ -1,7 +1,7 @@
1
1
  import {
2
2
  LOCAL_LLM_PRESETS,
3
3
  runLiveProviderPicker
4
- } from "./chunk-T642Q732.js";
4
+ } from "./chunk-L6ZNCTRJ.js";
5
5
  import {
6
6
  openBrowser,
7
7
  runCodexOAuthLogin,
@@ -1374,4 +1374,4 @@ export {
1374
1374
  addCustomProvider,
1375
1375
  addKeyForProvider
1376
1376
  };
1377
- //# sourceMappingURL=chunk-32MTOI2I.js.map
1377
+ //# sourceMappingURL=chunk-YX6KUIDF.js.map
@@ -75,7 +75,7 @@ import {
75
75
  } from "./chunk-U3SS4NRH.js";
76
76
  import {
77
77
  checkForUpdate
78
- } from "./chunk-NV3JDK4F.js";
78
+ } from "./chunk-YLQEGYV4.js";
79
79
  import {
80
80
  CLI_VERSION
81
81
  } from "./chunk-XJXDOF63.js";
@@ -96,11 +96,11 @@ import {
96
96
  runClaudeOAuthLogin,
97
97
  runCopilotOAuthLogin,
98
98
  validateFamily
99
- } from "./chunk-32MTOI2I.js";
99
+ } from "./chunk-YX6KUIDF.js";
100
100
  import {
101
101
  LOCAL_LLM_PRESETS,
102
102
  parseSpawnFlags
103
- } from "./chunk-T642Q732.js";
103
+ } from "./chunk-L6ZNCTRJ.js";
104
104
  import {
105
105
  appendHistory
106
106
  } from "./chunk-B4JLSXZB.js";
@@ -36618,4 +36618,4 @@ export {
36618
36618
  CLI_VERSION,
36619
36619
  runInteractive
36620
36620
  };
36621
- //# sourceMappingURL=cli-main-IEAM6SK7.js.map
36621
+ //# sourceMappingURL=cli-main-CGTBIS4C.js.map
@@ -51,7 +51,7 @@ var hqCmd = async (args, deps) => {
51
51
  return 1;
52
52
  };
53
53
  async function startServer(deps) {
54
- const { startHqServer } = await import("./hq-server-OH3SPSE2.js");
54
+ const { startHqServer } = await import("./hq-server-OARPUSQJ.js");
55
55
  const dataDir = resolveDataDir(deps);
56
56
  const flags = deps.flags ?? {};
57
57
  const host = typeof flags["host"] === "string" ? flags["host"] : HQ_CLI_DEFAULT_HOST;
@@ -709,4 +709,4 @@ export {
709
709
  hqCmd,
710
710
  resolveAuditActor
711
711
  };
712
- //# sourceMappingURL=hq-NDTJRRX3.js.map
712
+ //# sourceMappingURL=hq-3GWBFLON.js.map
@@ -10,7 +10,7 @@ import {
10
10
  readLocalSubagentTranscript,
11
11
  sanitizeApiError,
12
12
  startHqServer
13
- } from "./chunk-NZZOYLQ7.js";
13
+ } from "./chunk-7JBKXVMK.js";
14
14
  import "./chunk-HXJYHAR4.js";
15
15
  import "./chunk-Q5GTM25S.js";
16
16
  import "./chunk-7OCVIDC7.js";
@@ -27,4 +27,4 @@ export {
27
27
  sanitizeApiError,
28
28
  startHqServer
29
29
  };
30
- //# sourceMappingURL=hq-server-OH3SPSE2.js.map
30
+ //# sourceMappingURL=hq-server-OARPUSQJ.js.map
package/dist/index.js CHANGED
@@ -23,12 +23,12 @@ import {
23
23
  } from "./chunk-52C7PD2H.js";
24
24
  import {
25
25
  runUpdateCommand
26
- } from "./chunk-VXCCBI2W.js";
26
+ } from "./chunk-DE7BZDNK.js";
27
27
  import "./chunk-U3SS4NRH.js";
28
- import "./chunk-NV3JDK4F.js";
28
+ import "./chunk-YLQEGYV4.js";
29
29
  import {
30
30
  DEFAULT_PORT
31
- } from "./chunk-NZZOYLQ7.js";
31
+ } from "./chunk-7JBKXVMK.js";
32
32
  import "./chunk-HXJYHAR4.js";
33
33
  import "./chunk-Q5GTM25S.js";
34
34
  import {
@@ -45,7 +45,7 @@ import {
45
45
  parseArgs,
46
46
  runPicker,
47
47
  saveToGlobalConfig
48
- } from "./chunk-T642Q732.js";
48
+ } from "./chunk-L6ZNCTRJ.js";
49
49
  import "./chunk-B4JLSXZB.js";
50
50
  import {
51
51
  isKeylessLocalProvider,
@@ -1867,8 +1867,8 @@ var subcommandsWithFocusedHelp = Object.keys(helpTable);
1867
1867
  var loaders = {
1868
1868
  acp: async () => (await import("./acp-CEQINXWB.js")).acpCmd,
1869
1869
  init: async () => (await import("./init-4JQSG66Q.js")).initCmd,
1870
- auth: async () => (await import("./auth-GZ5A5OF5.js")).authCmd,
1871
- update: async () => (await import("./update-XKARO3CY.js")).updateCmd,
1870
+ auth: async () => (await import("./auth-3OSF6BMU.js")).authCmd,
1871
+ update: async () => (await import("./update-K45CS6SS.js")).updateCmd,
1872
1872
  sessions: async () => (await import("./sessions-config-P2LK2L32.js")).sessionsCmd,
1873
1873
  config: async () => (await import("./sessions-config-P2LK2L32.js")).configCmd,
1874
1874
  rewind: async () => (await import("./rewind-2FFNOOKS.js")).rewindCmd,
@@ -1893,7 +1893,7 @@ var loaders = {
1893
1893
  quick: async () => (await import("./quick-XLYLZX4B.js")).quickCmd,
1894
1894
  bench: async () => (await import("./bench-XYG56AMO.js")).benchCmd,
1895
1895
  chronicle: async () => (await import("./chronicle-6EPPMUC5.js")).chronicleCmd,
1896
- hq: async () => (await import("./hq-NDTJRRX3.js")).hqCmd,
1896
+ hq: async () => (await import("./hq-3GWBFLON.js")).hqCmd,
1897
1897
  mailbox: async () => (await import("./mailbox-serve-VKQIRCCB.js")).mailboxServeCmd,
1898
1898
  permissions: async () => (await import("./permissions-2PWBL4YU.js")).permissionsCmd,
1899
1899
  project: async () => (await import("./project-BLQ3ALVL.js")).projectCmd,
@@ -1972,7 +1972,7 @@ async function isPortInUse(host, port) {
1972
1972
  }
1973
1973
  async function handleHqShortCircuit(flags) {
1974
1974
  if (flags["hq"] !== true) return null;
1975
- const { startHqServer } = await import("./hq-server-OH3SPSE2.js");
1975
+ const { startHqServer } = await import("./hq-server-OARPUSQJ.js");
1976
1976
  const tunnelRequested = flags["tunnel"] === true;
1977
1977
  const host = typeof flags["host"] === "string" ? flags["host"] : tunnelRequested ? "127.0.0.1" : HQ_CLI_DEFAULT_HOST2;
1978
1978
  if (tunnelRequested && !isLoopbackHost(host)) {
@@ -4224,7 +4224,7 @@ async function printUpdateNotice(initialUpdateInfo) {
4224
4224
  const ac = new AbortController();
4225
4225
  const timer = setTimeout(() => ac.abort(), 2e3);
4226
4226
  try {
4227
- const { checkForUpdate } = await import("./update-check-LICQNYFK.js");
4227
+ const { checkForUpdate } = await import("./update-check-PKSMSMD6.js");
4228
4228
  info = await checkForUpdate(ac.signal);
4229
4229
  } catch {
4230
4230
  } finally {
@@ -4444,7 +4444,7 @@ async function initializeCli(argv) {
4444
4444
  async function main(argv) {
4445
4445
  const cliCtx = await initializeCli(argv);
4446
4446
  if (typeof cliCtx === "number") return cliCtx;
4447
- const { runInteractive } = await import("./cli-main-IEAM6SK7.js");
4447
+ const { runInteractive } = await import("./cli-main-CGTBIS4C.js");
4448
4448
  return runInteractive(cliCtx);
4449
4449
  }
4450
4450
 
@@ -3,9 +3,9 @@ import {
3
3
  detectUpdatePackageName,
4
4
  runUpdateCommand,
5
5
  updateCmd
6
- } from "./chunk-VXCCBI2W.js";
6
+ } from "./chunk-DE7BZDNK.js";
7
7
  import "./chunk-U3SS4NRH.js";
8
- import "./chunk-NV3JDK4F.js";
8
+ import "./chunk-YLQEGYV4.js";
9
9
  import "./chunk-7OCVIDC7.js";
10
10
  export {
11
11
  detectUpdatePackageManager,
@@ -13,4 +13,4 @@ export {
13
13
  runUpdateCommand,
14
14
  updateCmd
15
15
  };
16
- //# sourceMappingURL=update-XKARO3CY.js.map
16
+ //# sourceMappingURL=update-K45CS6SS.js.map
@@ -5,7 +5,7 @@ import {
5
5
  fetchLatestFromNpm,
6
6
  getUpdateNotification,
7
7
  isNewer
8
- } from "./chunk-NV3JDK4F.js";
8
+ } from "./chunk-YLQEGYV4.js";
9
9
  import "./chunk-7OCVIDC7.js";
10
10
  export {
11
11
  cachePath,
@@ -15,4 +15,4 @@ export {
15
15
  getUpdateNotification,
16
16
  isNewer
17
17
  };
18
- //# sourceMappingURL=update-check-LICQNYFK.js.map
18
+ //# sourceMappingURL=update-check-PKSMSMD6.js.map
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@wrongstack/cli",
3
- "version": "0.316.1",
3
+ "version": "0.317.0",
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,36 +41,36 @@
41
41
  "data"
42
42
  ],
43
43
  "dependencies": {
44
- "ws": "^8.21.3",
45
- "@wrongstack/core": "0.316.1",
46
- "@wrongstack/mcp": "0.316.1",
47
- "@wrongstack/bench": "0.316.1",
48
- "@wrongstack/acp": "0.316.1",
49
- "@wrongstack/persistence": "0.316.1",
50
- "@wrongstack/plug-lsp": "0.316.1",
51
- "@wrongstack/kanban": "0.316.1",
52
- "@wrongstack/providers": "0.316.1",
53
- "@wrongstack/runtime": "0.316.1",
54
- "@wrongstack/primitives": "0.316.1",
55
- "@wrongstack/sage": "0.316.1",
56
- "@wrongstack/sdd": "0.316.1",
57
- "@wrongstack/plugins": "0.316.1",
58
- "@wrongstack/requirement-intake": "0.316.1",
59
- "@wrongstack/security-scanner": "0.316.1",
60
- "@wrongstack/tools": "0.316.1",
61
- "@wrongstack/telegram": "0.316.1",
62
- "@wrongstack/simpleui": "0.316.1",
63
- "@wrongstack/vector-memory": "0.316.1",
64
- "@wrongstack/webui": "0.316.1",
65
- "@wrongstack/webui-protocol": "0.316.1",
66
- "@wrongstack/webui-server": "0.316.1",
67
- "@wrongstack/techstack": "0.316.1",
68
- "@wrongstack/tui": "0.316.1",
69
- "@wrongstack/wrongtrace": "0.316.1",
70
- "@wrongstack/webui-hq": "0.316.1"
44
+ "@wrongstack/acp": "0.317.0",
45
+ "@wrongstack/bench": "0.317.0",
46
+ "@wrongstack/core": "0.317.0",
47
+ "@wrongstack/primitives": "0.317.0",
48
+ "@wrongstack/kanban": "0.317.0",
49
+ "@wrongstack/mcp": "0.317.0",
50
+ "@wrongstack/persistence": "0.317.0",
51
+ "@wrongstack/plug-lsp": "0.317.0",
52
+ "@wrongstack/plugins": "0.317.0",
53
+ "@wrongstack/providers": "0.317.0",
54
+ "@wrongstack/requirement-intake": "0.317.0",
55
+ "@wrongstack/runtime": "0.317.0",
56
+ "@wrongstack/sage": "0.317.0",
57
+ "@wrongstack/sdd": "0.317.0",
58
+ "@wrongstack/security-scanner": "0.317.0",
59
+ "@wrongstack/simpleui": "0.317.0",
60
+ "@wrongstack/techstack": "0.317.0",
61
+ "@wrongstack/telegram": "0.317.0",
62
+ "@wrongstack/tools": "0.317.0",
63
+ "@wrongstack/tui": "0.317.0",
64
+ "@wrongstack/vector-memory": "0.317.0",
65
+ "@wrongstack/webui": "0.317.0",
66
+ "@wrongstack/webui-hq": "0.317.0",
67
+ "@wrongstack/webui-protocol": "0.317.0",
68
+ "@wrongstack/wrongtrace": "0.317.0",
69
+ "@wrongstack/webui-server": "0.317.0",
70
+ "ws": "^8.21.3"
71
71
  },
72
72
  "optionalDependencies": {
73
- "@wrongstack/desktop": "0.316.1"
73
+ "@wrongstack/desktop": "0.317.0"
74
74
  },
75
75
  "devDependencies": {
76
76
  "@types/node": "^26.2.0",