@wrongstack/cli 1.0.4 → 1.0.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.
Files changed (26) hide show
  1. package/dist/{acp-AB54FWM2.js → acp-GOQURNC2.js} +9 -6
  2. package/dist/{auth-WDMSNZ3S.js → auth-WBXXIQUO.js} +2 -2
  3. package/dist/boot/short-circuit-desktop.d.ts +1 -0
  4. package/dist/{chunk-ONOT5OJ2.js → chunk-5A5GCSJC.js} +1 -1
  5. package/dist/{chunk-I7V2OYVH.js → chunk-5EA6OTLJ.js} +3 -6
  6. package/dist/{chunk-O4A3HHKD.js → chunk-672UXYL3.js} +2 -2
  7. package/dist/{chunk-U6PGWDMZ.js → chunk-NR7BD73C.js} +2 -2
  8. package/dist/{chunk-3I5ZJXM5.js → chunk-PQZPHGGD.js} +128 -61
  9. package/dist/{chunk-BIWE22O5.js → chunk-QDQPF4PB.js} +5 -5
  10. package/dist/{chunk-VFCJOWJB.js → chunk-VPS2SJW4.js} +4 -5
  11. package/dist/{cli-context-WFC3BNGM.js → cli-context-BYKJDAFF.js} +19 -10
  12. package/dist/{cli-main-GU3YZLMO.js → cli-main-5WZBH3WA.js} +127 -109
  13. package/dist/{execution-RAZDDQFC.js → execution-Z6A26EG6.js} +26 -26
  14. package/dist/{hq-5XHEIIH6.js → hq-V4PHEETW.js} +3 -3
  15. package/dist/hq-server/auth-state.d.ts +6 -0
  16. package/dist/hq-server/auth.d.ts +10 -1
  17. package/dist/hq-server/routes/auth/common.d.ts +34 -0
  18. package/dist/hq-server/routes/auth/password-routes.d.ts +4 -2
  19. package/dist/hq-server/types.d.ts +18 -0
  20. package/dist/{hq-server-CNUTBWTK.js → hq-server-MZ7DV6X7.js} +3 -3
  21. package/dist/index.js +8 -5
  22. package/dist/{mcp-HOMLC4WE.js → mcp-FX7TKPTV.js} +10 -8
  23. package/dist/mcp-serve.d.ts +31 -0
  24. package/dist/{short-circuit-flags-YDMLAQ5R.js → short-circuit-flags-KBTYSJTW.js} +2 -2
  25. package/dist/{subcommands-7N4RIK6H.js → subcommands-DEYSYHIM.js} +2 -2
  26. package/package.json +28 -28
@@ -5,7 +5,7 @@ import {
5
5
  makePromptDelegate,
6
6
  renderAgentsTemplate,
7
7
  renderDiff
8
- } from "./chunk-VFCJOWJB.js";
8
+ } from "./chunk-VPS2SJW4.js";
9
9
  import {
10
10
  theme as theme2
11
11
  } from "./chunk-QD544J2B.js";
@@ -19,24 +19,24 @@ import {
19
19
  } from "./chunk-GPPRNAKW.js";
20
20
  import {
21
21
  subcommands
22
- } from "./chunk-BIWE22O5.js";
22
+ } from "./chunk-QDQPF4PB.js";
23
23
  import {
24
24
  renderDeepHelp,
25
25
  renderFocusedHelp
26
26
  } from "./chunk-JX6KL7OF.js";
27
27
  import {
28
28
  handleHelpVersionShortCircuit
29
- } from "./chunk-U6PGWDMZ.js";
29
+ } from "./chunk-NR7BD73C.js";
30
30
  import {
31
31
  DEFAULT_PORT
32
- } from "./chunk-3I5ZJXM5.js";
32
+ } from "./chunk-PQZPHGGD.js";
33
33
  import "./chunk-HXJYHAR4.js";
34
34
  import {
35
35
  resolveHqPasswordInput
36
36
  } from "./chunk-AUQDGU5D.js";
37
37
  import {
38
38
  normalizeHqPublicOrigin
39
- } from "./chunk-I7V2OYVH.js";
39
+ } from "./chunk-5EA6OTLJ.js";
40
40
  import {
41
41
  parseHqIpAllowlist
42
42
  } from "./chunk-Q7E3BPDU.js";
@@ -47,7 +47,7 @@ import {
47
47
  applyNodeEnvDefault,
48
48
  applySessionShellDefault,
49
49
  runPreflight
50
- } from "./chunk-O4A3HHKD.js";
50
+ } from "./chunk-672UXYL3.js";
51
51
  import "./chunk-6WRKAACA.js";
52
52
  import {
53
53
  CLI_VERSION
@@ -63,7 +63,7 @@ import {
63
63
  runPicker,
64
64
  saveToGlobalConfig,
65
65
  theme
66
- } from "./chunk-ONOT5OJ2.js";
66
+ } from "./chunk-5A5GCSJC.js";
67
67
  import "./chunk-2VMJ3E5Z.js";
68
68
  import "./chunk-B4JLSXZB.js";
69
69
  import {
@@ -714,6 +714,10 @@ function stripDesktopLauncherArgs(argv) {
714
714
  }
715
715
  return out;
716
716
  }
717
+ function selectDesktopLauncherExecutable(execPath, runningUnderBun, nodeOverride) {
718
+ if (!runningUnderBun) return execPath;
719
+ return nodeOverride?.trim() || "node";
720
+ }
717
721
  async function handleDesktopShortCircuit(flags, argv) {
718
722
  if (flags["desktop"] !== true) return null;
719
723
  return launchDesktop(stripDesktopLauncherArgs(argv));
@@ -740,7 +744,12 @@ async function launchDesktop(args) {
740
744
  return 1;
741
745
  }
742
746
  return await new Promise((resolve2) => {
743
- const child = spawn(process.execPath, [launcherPath, ...args], {
747
+ const executable = selectDesktopLauncherExecutable(
748
+ process.execPath,
749
+ typeof globalThis.Bun !== "undefined",
750
+ process.env["NODE"]
751
+ );
752
+ const child = spawn(executable, [launcherPath, ...args], {
744
753
  stdio: "inherit",
745
754
  env: process.env,
746
755
  windowsHide: false
@@ -796,7 +805,7 @@ async function isPortInUse(host, port) {
796
805
  }
797
806
  async function handleHqShortCircuit(flags) {
798
807
  if (flags["hq"] !== true) return null;
799
- const { startHqServer } = await import("./hq-server-CNUTBWTK.js");
808
+ const { startHqServer } = await import("./hq-server-MZ7DV6X7.js");
800
809
  const tunnelRequested = flags["tunnel"] === true;
801
810
  const rawPublicUrl = typeof flags["hq-public-url"] === "string" ? flags["hq-public-url"] : process.env.WRONGSTACK_HQ_PUBLIC_URL;
802
811
  let publicOrigin;
@@ -3223,4 +3232,4 @@ async function initializeCli(argv) {
3223
3232
  export {
3224
3233
  initializeCli
3225
3234
  };
3226
- //# sourceMappingURL=cli-context-WFC3BNGM.js.map
3235
+ //# sourceMappingURL=cli-context-BYKJDAFF.js.map