@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.
- package/dist/{acp-AB54FWM2.js → acp-GOQURNC2.js} +9 -6
- package/dist/{auth-WDMSNZ3S.js → auth-WBXXIQUO.js} +2 -2
- package/dist/boot/short-circuit-desktop.d.ts +1 -0
- package/dist/{chunk-ONOT5OJ2.js → chunk-5A5GCSJC.js} +1 -1
- package/dist/{chunk-I7V2OYVH.js → chunk-5EA6OTLJ.js} +3 -6
- package/dist/{chunk-O4A3HHKD.js → chunk-672UXYL3.js} +2 -2
- package/dist/{chunk-U6PGWDMZ.js → chunk-NR7BD73C.js} +2 -2
- package/dist/{chunk-3I5ZJXM5.js → chunk-PQZPHGGD.js} +128 -61
- package/dist/{chunk-BIWE22O5.js → chunk-QDQPF4PB.js} +5 -5
- package/dist/{chunk-VFCJOWJB.js → chunk-VPS2SJW4.js} +4 -5
- package/dist/{cli-context-WFC3BNGM.js → cli-context-BYKJDAFF.js} +19 -10
- package/dist/{cli-main-GU3YZLMO.js → cli-main-5WZBH3WA.js} +127 -109
- package/dist/{execution-RAZDDQFC.js → execution-Z6A26EG6.js} +26 -26
- package/dist/{hq-5XHEIIH6.js → hq-V4PHEETW.js} +3 -3
- package/dist/hq-server/auth-state.d.ts +6 -0
- package/dist/hq-server/auth.d.ts +10 -1
- package/dist/hq-server/routes/auth/common.d.ts +34 -0
- package/dist/hq-server/routes/auth/password-routes.d.ts +4 -2
- package/dist/hq-server/types.d.ts +18 -0
- package/dist/{hq-server-CNUTBWTK.js → hq-server-MZ7DV6X7.js} +3 -3
- package/dist/index.js +8 -5
- package/dist/{mcp-HOMLC4WE.js → mcp-FX7TKPTV.js} +10 -8
- package/dist/mcp-serve.d.ts +31 -0
- package/dist/{short-circuit-flags-YDMLAQ5R.js → short-circuit-flags-KBTYSJTW.js} +2 -2
- package/dist/{subcommands-7N4RIK6H.js → subcommands-DEYSYHIM.js} +2 -2
- package/package.json +28 -28
|
@@ -5,7 +5,7 @@ import {
|
|
|
5
5
|
makePromptDelegate,
|
|
6
6
|
renderAgentsTemplate,
|
|
7
7
|
renderDiff
|
|
8
|
-
} from "./chunk-
|
|
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-
|
|
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-
|
|
29
|
+
} from "./chunk-NR7BD73C.js";
|
|
30
30
|
import {
|
|
31
31
|
DEFAULT_PORT
|
|
32
|
-
} from "./chunk-
|
|
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-
|
|
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-
|
|
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-
|
|
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
|
|
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-
|
|
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-
|
|
3235
|
+
//# sourceMappingURL=cli-context-BYKJDAFF.js.map
|