@mushi-mushi/cli 0.42.0 → 0.43.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.
- package/dist/{chunk-V7DWBEKB.js → chunk-25P6NAME.js} +3 -3
- package/dist/{chunk-OLIBAHGM.js → chunk-AEXZYEUS.js} +25 -7
- package/dist/{chunk-4XI5RVLM.js → chunk-AKUYV2CR.js} +4 -4
- package/dist/chunk-JQQACG3P.js +10 -0
- package/dist/{chunk-PYATOGEQ.js → chunk-LHSWFJOB.js} +5 -4
- package/dist/{chunk-2ZKX465C.js → chunk-UZQZU5OP.js} +5 -4
- package/dist/chunk-WJ7ZTOF7.js +8 -0
- package/dist/{chunk-2DMHQVRU.js → chunk-X64CFG54.js} +14 -1
- package/dist/{chunk-LGGE3LH7.js → chunk-X6SC4JKO.js} +14 -1
- package/dist/{connect-PSG6WM2J.js → connect-HSL2EUEV.js} +3 -3
- package/dist/{connect-Y2BGZHVK.js → connect-OPWVFSNG.js} +4 -4
- package/dist/{daemon-IY4MKISW.js → daemon-ZQ6WYRLD.js} +4 -4
- package/dist/{endpoint-M662BOJN.js → endpoint-KN5YEANQ.js} +5 -3
- package/dist/{endpoint-MJATXOXM.js → endpoint-XZHMF6EZ.js} +5 -3
- package/dist/index.js +9 -9
- package/dist/init.js +4 -4
- package/dist/{version-NI6ZMIFN.js → version-JUEQJNGV.js} +1 -1
- package/dist/version.d.ts +1 -1
- package/dist/version.js +1 -1
- package/dist/wizard-bin.js +4 -4
- package/package.json +1 -1
- package/dist/chunk-E5FGF7I7.js +0 -10
- package/dist/chunk-LMYPS32J.js +0 -8
|
@@ -9,14 +9,14 @@ import {
|
|
|
9
9
|
requireUuid,
|
|
10
10
|
saveConfig,
|
|
11
11
|
savedSdkKeyFor
|
|
12
|
-
} from "./chunk-
|
|
12
|
+
} from "./chunk-UZQZU5OP.js";
|
|
13
13
|
import {
|
|
14
14
|
MUSHI_MCP_PIN_SPEC
|
|
15
|
-
} from "./chunk-
|
|
15
|
+
} from "./chunk-JQQACG3P.js";
|
|
16
16
|
import {
|
|
17
17
|
assertEndpoint,
|
|
18
18
|
normalizeEndpoint
|
|
19
|
-
} from "./chunk-
|
|
19
|
+
} from "./chunk-X6SC4JKO.js";
|
|
20
20
|
|
|
21
21
|
// src/connect.ts
|
|
22
22
|
import { appendFile, readFile as readFile2, writeFile as writeFile2 } from "fs/promises";
|
|
@@ -8,10 +8,10 @@ import {
|
|
|
8
8
|
requireConfig,
|
|
9
9
|
requireUuid,
|
|
10
10
|
tryLoadWorkerKey
|
|
11
|
-
} from "./chunk-
|
|
11
|
+
} from "./chunk-UZQZU5OP.js";
|
|
12
12
|
import {
|
|
13
13
|
MUSHI_CLI_VERSION
|
|
14
|
-
} from "./chunk-
|
|
14
|
+
} from "./chunk-JQQACG3P.js";
|
|
15
15
|
|
|
16
16
|
// src/worker/daemon.ts
|
|
17
17
|
import { existsSync as existsSync6, readFileSync as readFileSync5 } from "fs";
|
|
@@ -2019,7 +2019,7 @@ function registerWorkCommands(program) {
|
|
|
2019
2019
|
if (opts.repoDir || opts.report || opts.followups || opts.recheck || opts.collapseBacklog) {
|
|
2020
2020
|
throw new MushiCliError("E_INVALID_INPUT", "--daemon takes its lanes and clones from the worker config, not from --repo-dir, --report or --followups.", "mushi worker install");
|
|
2021
2021
|
}
|
|
2022
|
-
const { runDaemon: runDaemon2 } = await import("./daemon-
|
|
2022
|
+
const { runDaemon: runDaemon2 } = await import("./daemon-ZQ6WYRLD.js");
|
|
2023
2023
|
await runDaemon2({ configPath: opts.workerConfig, ...opts.agent !== void 0 ? { agent } : {}, ...opts.anyRepo ? { anyRepo: true } : {} });
|
|
2024
2024
|
return;
|
|
2025
2025
|
}
|
|
@@ -2301,7 +2301,7 @@ async function resolveConflict(t, o) {
|
|
|
2301
2301
|
import { spawn as spawn2 } from "child_process";
|
|
2302
2302
|
import { existsSync as existsSync4 } from "fs";
|
|
2303
2303
|
import { dirname as dirname2, join as join6 } from "path";
|
|
2304
|
-
var UX_PACKAGE = "@mushi-mushi/ux@^0.
|
|
2304
|
+
var UX_PACKAGE = "@mushi-mushi/ux@^0.5.0";
|
|
2305
2305
|
function cmdQuote(arg) {
|
|
2306
2306
|
return /^[\w./:=@-]+$/.test(arg) ? arg : `"${arg.replace(/"/g, '""')}"`;
|
|
2307
2307
|
}
|
|
@@ -2363,7 +2363,9 @@ function freshEyesStdin(t) {
|
|
|
2363
2363
|
sessions: t.sessions,
|
|
2364
2364
|
successText: t.successText,
|
|
2365
2365
|
dryRun: t.dryRun,
|
|
2366
|
-
accounts: t.accounts
|
|
2366
|
+
accounts: t.accounts,
|
|
2367
|
+
// The persona the console picked (ADR 0073); mushi-ux checks it again.
|
|
2368
|
+
...t.persona ? { persona: t.persona } : {}
|
|
2367
2369
|
});
|
|
2368
2370
|
}
|
|
2369
2371
|
function freshEyesEnv(base, sync) {
|
|
@@ -2757,6 +2759,20 @@ function parseHeartbeatAnswer(raw) {
|
|
|
2757
2759
|
bad
|
|
2758
2760
|
};
|
|
2759
2761
|
}
|
|
2762
|
+
var PERSONA_NEEDS = ["screen_reader", "low_vision", "keyboard_only", "reduced_motion", "color_blind", "motor", "plain_language"];
|
|
2763
|
+
function parsePersonaTarget(raw) {
|
|
2764
|
+
if (raw == null) return { ok: true, value: void 0 };
|
|
2765
|
+
const p = raw;
|
|
2766
|
+
const name = plainText(p.name, 60);
|
|
2767
|
+
const brief = plainText(p.brief, 600);
|
|
2768
|
+
if (!name || !brief) return { ok: false, message: "the test claim's persona is not plain text" };
|
|
2769
|
+
if (typeof p.locale !== "string" || p.locale.length > 35 || !/^[a-z]{2,3}(-[A-Za-z0-9]{2,8}){0,3}$/.test(p.locale)) return { ok: false, message: "the test claim's persona language is malformed" };
|
|
2770
|
+
if (p.device !== "desktop" && p.device !== "mobile" && p.device !== "tablet") return { ok: false, message: "the test claim's persona device is malformed" };
|
|
2771
|
+
const needs = Array.isArray(p.needs) ? p.needs : [];
|
|
2772
|
+
if (needs.some((n) => typeof n !== "string" || !PERSONA_NEEDS.includes(n))) return { ok: false, message: "the test claim's persona needs are malformed" };
|
|
2773
|
+
if (typeof p.steps !== "number" || !Number.isInteger(p.steps) || p.steps < 5 || p.steps > 80) return { ok: false, message: "the test claim's persona step cap is not 5 to 80" };
|
|
2774
|
+
return { ok: true, value: { name, brief, locale: p.locale, device: p.device, needs: [...new Set(needs)], steps: p.steps } };
|
|
2775
|
+
}
|
|
2760
2776
|
var RUN_ID_RE = /^[0-9]{8}-[0-9]{6}-[a-z0-9]{4}$/;
|
|
2761
2777
|
var CONTROL_RE = /[\u0000-\u001f\u007f]/;
|
|
2762
2778
|
function plainText(raw, max) {
|
|
@@ -2788,7 +2804,9 @@ function parseFreshEyesTarget(raw) {
|
|
|
2788
2804
|
accounts.push({ email: a.email, password: a.password, name: plainText(a.name, 80) ?? "Test visitor", ...userId ? { userId } : {} });
|
|
2789
2805
|
}
|
|
2790
2806
|
if (accounts.length > t.sessions || t.dryRun && accounts.length) return { ok: false, message: "the test claim carries more accounts than it may use" };
|
|
2791
|
-
|
|
2807
|
+
const persona = parsePersonaTarget(t.persona);
|
|
2808
|
+
if (!persona.ok) return persona;
|
|
2809
|
+
return { ok: true, value: { runId: t.runId, url: url.toString(), goal, sessions: t.sessions, successText, dryRun: t.dryRun, accounts, ...persona.value ? { persona: persona.value } : {} } };
|
|
2792
2810
|
}
|
|
2793
2811
|
function parseClaim(raw) {
|
|
2794
2812
|
if (!raw || typeof raw !== "object" || Array.isArray(raw)) return { ok: false, message: "the claim is not an object" };
|
|
@@ -2994,7 +3012,7 @@ function createDaemon(cfg, deps) {
|
|
|
2994
3012
|
return {
|
|
2995
3013
|
// `takes`: the claim kinds beyond the lanes' modes this daemon runs (a closed list on the server).
|
|
2996
3014
|
// `can`: what this daemon does when the console asks (a closed list on the server).
|
|
2997
|
-
host: { ...deps.host, takes: deps.freshEyes ? ["fresh_eyes"] : [], can: deps.cursorLogin ? ["cursor_login"] : [] },
|
|
3015
|
+
host: { ...deps.host, takes: deps.freshEyes ? ["fresh_eyes", "fresh_eyes_persona"] : [], can: deps.cursorLogin ? ["cursor_login"] : [] },
|
|
2998
3016
|
status: {
|
|
2999
3017
|
state: hostState,
|
|
3000
3018
|
// Which coding agent the lanes run, so the console names its account (not always Cursor).
|
|
@@ -32,10 +32,10 @@ import {
|
|
|
32
32
|
saveConfig,
|
|
33
33
|
savedSdkKeyFor,
|
|
34
34
|
trySaveKeyToKeychain
|
|
35
|
-
} from "./chunk-
|
|
35
|
+
} from "./chunk-LHSWFJOB.js";
|
|
36
36
|
import {
|
|
37
37
|
MUSHI_CLI_VERSION
|
|
38
|
-
} from "./chunk-
|
|
38
|
+
} from "./chunk-WJ7ZTOF7.js";
|
|
39
39
|
import {
|
|
40
40
|
FRAMEWORKS,
|
|
41
41
|
detectFramework,
|
|
@@ -53,7 +53,7 @@ import {
|
|
|
53
53
|
firstEndpoint,
|
|
54
54
|
normalizeEndpoint,
|
|
55
55
|
resolveCloudEndpoint
|
|
56
|
-
} from "./chunk-
|
|
56
|
+
} from "./chunk-X64CFG54.js";
|
|
57
57
|
|
|
58
58
|
// src/init.ts
|
|
59
59
|
import * as p from "@clack/prompts";
|
|
@@ -2194,7 +2194,7 @@ async function maybeOfferConnect(credentials, options, _consoleBase) {
|
|
|
2194
2194
|
if (p.isCancel(answer) || !answer) return;
|
|
2195
2195
|
const endpoint = resolveCloudEndpoint(options.endpoint);
|
|
2196
2196
|
try {
|
|
2197
|
-
const { runConnect } = await import("./connect-
|
|
2197
|
+
const { runConnect } = await import("./connect-HSL2EUEV.js");
|
|
2198
2198
|
const saved = loadConfig();
|
|
2199
2199
|
const result = await runConnect(
|
|
2200
2200
|
{
|
|
@@ -1,10 +1,11 @@
|
|
|
1
1
|
import {
|
|
2
2
|
MUSHI_CLI_VERSION
|
|
3
|
-
} from "./chunk-
|
|
3
|
+
} from "./chunk-WJ7ZTOF7.js";
|
|
4
4
|
import {
|
|
5
5
|
assertEndpoint,
|
|
6
|
-
normalizeEndpoint
|
|
7
|
-
|
|
6
|
+
normalizeEndpoint,
|
|
7
|
+
resolvePublicOrigin
|
|
8
|
+
} from "./chunk-X64CFG54.js";
|
|
8
9
|
|
|
9
10
|
// src/keychain.ts
|
|
10
11
|
import { createRequire } from "module";
|
|
@@ -317,7 +318,7 @@ function describeUnsafeSdkKey(probe, endpoint) {
|
|
|
317
318
|
// src/console-url.ts
|
|
318
319
|
import { existsSync as existsSync2, readFileSync as readFileSync2 } from "fs";
|
|
319
320
|
import { dirname as dirname2, join as join2 } from "path";
|
|
320
|
-
var HOSTED_CONSOLE_BASE =
|
|
321
|
+
var HOSTED_CONSOLE_BASE = `${resolvePublicOrigin()}/mushi-mushi/admin`;
|
|
321
322
|
var LOCAL_ADMIN_URL = "http://localhost:6464";
|
|
322
323
|
var LOCAL_PROBE_MS = 800;
|
|
323
324
|
function normalizeConsoleBase(url) {
|
|
@@ -1,11 +1,12 @@
|
|
|
1
1
|
#!/usr/bin/env node
|
|
2
2
|
import {
|
|
3
3
|
MUSHI_CLI_VERSION
|
|
4
|
-
} from "./chunk-
|
|
4
|
+
} from "./chunk-JQQACG3P.js";
|
|
5
5
|
import {
|
|
6
6
|
CLOUD_API_ENDPOINT,
|
|
7
|
-
normalizeEndpoint
|
|
8
|
-
|
|
7
|
+
normalizeEndpoint,
|
|
8
|
+
resolvePublicOrigin
|
|
9
|
+
} from "./chunk-X6SC4JKO.js";
|
|
9
10
|
|
|
10
11
|
// src/errors.ts
|
|
11
12
|
var EXIT_CODE_MAP = {
|
|
@@ -473,7 +474,7 @@ function tightenWindowsAcl(path, type) {
|
|
|
473
474
|
// src/console-url.ts
|
|
474
475
|
import { existsSync as existsSync2, readFileSync as readFileSync2 } from "fs";
|
|
475
476
|
import { dirname as dirname2, join as join2 } from "path";
|
|
476
|
-
var HOSTED_CONSOLE_BASE =
|
|
477
|
+
var HOSTED_CONSOLE_BASE = `${resolvePublicOrigin()}/mushi-mushi/admin`;
|
|
477
478
|
var LOCAL_ADMIN_URL = "http://localhost:6464";
|
|
478
479
|
var LOCAL_PROBE_MS = 800;
|
|
479
480
|
function normalizeConsoleBase(url) {
|
|
@@ -2,7 +2,19 @@
|
|
|
2
2
|
var TEST_REPORT_TIMEOUT_MS = 1e4;
|
|
3
3
|
var TEST_REPORT_FETCH_TIMEOUT_MS = TEST_REPORT_TIMEOUT_MS;
|
|
4
4
|
var CLOUD_API_ENDPOINT = "https://dxptnwrhwsqckaftyymj.supabase.co/functions/v1/api";
|
|
5
|
-
var
|
|
5
|
+
var DEFAULT_PUBLIC_ORIGIN = "https://kensaur.us";
|
|
6
|
+
function resolvePublicOrigin(raw = process.env.MUSHI_PUBLIC_ORIGIN) {
|
|
7
|
+
const v = raw?.trim();
|
|
8
|
+
if (v) {
|
|
9
|
+
try {
|
|
10
|
+
const u = new URL(v);
|
|
11
|
+
if (u.protocol === "https:" || u.protocol === "http:") return u.origin;
|
|
12
|
+
} catch {
|
|
13
|
+
}
|
|
14
|
+
}
|
|
15
|
+
return DEFAULT_PUBLIC_ORIGIN;
|
|
16
|
+
}
|
|
17
|
+
var CLOUD_MCP_OAUTH_URL = `${resolvePublicOrigin()}/mushi-mushi/hosted-mcp/`;
|
|
6
18
|
function firstEndpoint(...candidates) {
|
|
7
19
|
for (const c of candidates) {
|
|
8
20
|
const v = c?.trim();
|
|
@@ -44,6 +56,7 @@ function normalizeEndpoint(url) {
|
|
|
44
56
|
export {
|
|
45
57
|
TEST_REPORT_FETCH_TIMEOUT_MS,
|
|
46
58
|
CLOUD_API_ENDPOINT,
|
|
59
|
+
resolvePublicOrigin,
|
|
47
60
|
CLOUD_MCP_OAUTH_URL,
|
|
48
61
|
firstEndpoint,
|
|
49
62
|
resolveCloudEndpoint,
|
|
@@ -4,7 +4,19 @@
|
|
|
4
4
|
var TEST_REPORT_TIMEOUT_MS = 1e4;
|
|
5
5
|
var TEST_REPORT_FETCH_TIMEOUT_MS = TEST_REPORT_TIMEOUT_MS;
|
|
6
6
|
var CLOUD_API_ENDPOINT = "https://dxptnwrhwsqckaftyymj.supabase.co/functions/v1/api";
|
|
7
|
-
var
|
|
7
|
+
var DEFAULT_PUBLIC_ORIGIN = "https://kensaur.us";
|
|
8
|
+
function resolvePublicOrigin(raw = process.env.MUSHI_PUBLIC_ORIGIN) {
|
|
9
|
+
const v = raw?.trim();
|
|
10
|
+
if (v) {
|
|
11
|
+
try {
|
|
12
|
+
const u = new URL(v);
|
|
13
|
+
if (u.protocol === "https:" || u.protocol === "http:") return u.origin;
|
|
14
|
+
} catch {
|
|
15
|
+
}
|
|
16
|
+
}
|
|
17
|
+
return DEFAULT_PUBLIC_ORIGIN;
|
|
18
|
+
}
|
|
19
|
+
var CLOUD_MCP_OAUTH_URL = `${resolvePublicOrigin()}/mushi-mushi/hosted-mcp/`;
|
|
8
20
|
function firstEndpoint(...candidates) {
|
|
9
21
|
for (const c of candidates) {
|
|
10
22
|
const v = c?.trim();
|
|
@@ -46,6 +58,7 @@ function normalizeEndpoint(url) {
|
|
|
46
58
|
export {
|
|
47
59
|
TEST_REPORT_FETCH_TIMEOUT_MS,
|
|
48
60
|
CLOUD_API_ENDPOINT,
|
|
61
|
+
resolvePublicOrigin,
|
|
49
62
|
CLOUD_MCP_OAUTH_URL,
|
|
50
63
|
firstEndpoint,
|
|
51
64
|
resolveCloudEndpoint,
|
|
@@ -6,10 +6,10 @@ import {
|
|
|
6
6
|
saveConfig,
|
|
7
7
|
savedSdkKeyFor,
|
|
8
8
|
waitForIngestReady
|
|
9
|
-
} from "./chunk-
|
|
9
|
+
} from "./chunk-LHSWFJOB.js";
|
|
10
10
|
import {
|
|
11
11
|
MUSHI_MCP_PIN_SPEC
|
|
12
|
-
} from "./chunk-
|
|
12
|
+
} from "./chunk-WJ7ZTOF7.js";
|
|
13
13
|
import {
|
|
14
14
|
detectFramework,
|
|
15
15
|
envVarsToWrite,
|
|
@@ -17,7 +17,7 @@ import {
|
|
|
17
17
|
} from "./chunk-AWASJDQI.js";
|
|
18
18
|
import {
|
|
19
19
|
assertEndpoint
|
|
20
|
-
} from "./chunk-
|
|
20
|
+
} from "./chunk-X64CFG54.js";
|
|
21
21
|
|
|
22
22
|
// src/connect.ts
|
|
23
23
|
import { appendFile, readFile as readFile2, writeFile as writeFile2 } from "fs/promises";
|
|
@@ -2,11 +2,11 @@
|
|
|
2
2
|
import {
|
|
3
3
|
resolveSdkEnvKey,
|
|
4
4
|
runConnect
|
|
5
|
-
} from "./chunk-
|
|
5
|
+
} from "./chunk-25P6NAME.js";
|
|
6
6
|
import "./chunk-CG5KPP4S.js";
|
|
7
|
-
import "./chunk-
|
|
8
|
-
import "./chunk-
|
|
9
|
-
import "./chunk-
|
|
7
|
+
import "./chunk-UZQZU5OP.js";
|
|
8
|
+
import "./chunk-JQQACG3P.js";
|
|
9
|
+
import "./chunk-X6SC4JKO.js";
|
|
10
10
|
export {
|
|
11
11
|
resolveSdkEnvKey,
|
|
12
12
|
runConnect
|
|
@@ -12,10 +12,10 @@ import {
|
|
|
12
12
|
runDaemon,
|
|
13
13
|
stopHint,
|
|
14
14
|
workerHostId
|
|
15
|
-
} from "./chunk-
|
|
16
|
-
import "./chunk-
|
|
17
|
-
import "./chunk-
|
|
18
|
-
import "./chunk-
|
|
15
|
+
} from "./chunk-AEXZYEUS.js";
|
|
16
|
+
import "./chunk-UZQZU5OP.js";
|
|
17
|
+
import "./chunk-JQQACG3P.js";
|
|
18
|
+
import "./chunk-X6SC4JKO.js";
|
|
19
19
|
export {
|
|
20
20
|
assertWorkerKey,
|
|
21
21
|
createDaemon,
|
|
@@ -5,8 +5,9 @@ import {
|
|
|
5
5
|
assertEndpoint,
|
|
6
6
|
firstEndpoint,
|
|
7
7
|
normalizeEndpoint,
|
|
8
|
-
resolveCloudEndpoint
|
|
9
|
-
|
|
8
|
+
resolveCloudEndpoint,
|
|
9
|
+
resolvePublicOrigin
|
|
10
|
+
} from "./chunk-X64CFG54.js";
|
|
10
11
|
export {
|
|
11
12
|
CLOUD_API_ENDPOINT,
|
|
12
13
|
CLOUD_MCP_OAUTH_URL,
|
|
@@ -14,5 +15,6 @@ export {
|
|
|
14
15
|
assertEndpoint,
|
|
15
16
|
firstEndpoint,
|
|
16
17
|
normalizeEndpoint,
|
|
17
|
-
resolveCloudEndpoint
|
|
18
|
+
resolveCloudEndpoint,
|
|
19
|
+
resolvePublicOrigin
|
|
18
20
|
};
|
|
@@ -6,8 +6,9 @@ import {
|
|
|
6
6
|
assertEndpoint,
|
|
7
7
|
firstEndpoint,
|
|
8
8
|
normalizeEndpoint,
|
|
9
|
-
resolveCloudEndpoint
|
|
10
|
-
|
|
9
|
+
resolveCloudEndpoint,
|
|
10
|
+
resolvePublicOrigin
|
|
11
|
+
} from "./chunk-X6SC4JKO.js";
|
|
11
12
|
export {
|
|
12
13
|
CLOUD_API_ENDPOINT,
|
|
13
14
|
CLOUD_MCP_OAUTH_URL,
|
|
@@ -15,5 +16,6 @@ export {
|
|
|
15
16
|
assertEndpoint,
|
|
16
17
|
firstEndpoint,
|
|
17
18
|
normalizeEndpoint,
|
|
18
|
-
resolveCloudEndpoint
|
|
19
|
+
resolveCloudEndpoint,
|
|
20
|
+
resolvePublicOrigin
|
|
19
21
|
};
|
package/dist/index.js
CHANGED
|
@@ -28,7 +28,7 @@ import {
|
|
|
28
28
|
sanitizeEndpoint,
|
|
29
29
|
sanitizeProjectId,
|
|
30
30
|
writeMcpServerEntry
|
|
31
|
-
} from "./chunk-
|
|
31
|
+
} from "./chunk-25P6NAME.js";
|
|
32
32
|
import {
|
|
33
33
|
FRAMEWORKS,
|
|
34
34
|
FRAMEWORK_IDS,
|
|
@@ -59,7 +59,7 @@ import {
|
|
|
59
59
|
registerUxCommands,
|
|
60
60
|
registerWorkCommands,
|
|
61
61
|
validateWorkerConfig
|
|
62
|
-
} from "./chunk-
|
|
62
|
+
} from "./chunk-AEXZYEUS.js";
|
|
63
63
|
import {
|
|
64
64
|
CONFIG_PATH,
|
|
65
65
|
MushiCliError,
|
|
@@ -99,11 +99,11 @@ import {
|
|
|
99
99
|
tryLoadKeyFromKeychain,
|
|
100
100
|
trySaveKeyToKeychain,
|
|
101
101
|
trySaveWorkerKey
|
|
102
|
-
} from "./chunk-
|
|
102
|
+
} from "./chunk-UZQZU5OP.js";
|
|
103
103
|
import {
|
|
104
104
|
MUSHI_CLI_VERSION,
|
|
105
105
|
MUSHI_MCP_PIN_SPEC
|
|
106
|
-
} from "./chunk-
|
|
106
|
+
} from "./chunk-JQQACG3P.js";
|
|
107
107
|
import {
|
|
108
108
|
CLOUD_API_ENDPOINT,
|
|
109
109
|
CLOUD_MCP_OAUTH_URL,
|
|
@@ -112,7 +112,7 @@ import {
|
|
|
112
112
|
firstEndpoint,
|
|
113
113
|
normalizeEndpoint,
|
|
114
114
|
resolveCloudEndpoint
|
|
115
|
-
} from "./chunk-
|
|
115
|
+
} from "./chunk-X6SC4JKO.js";
|
|
116
116
|
|
|
117
117
|
// src/index.ts
|
|
118
118
|
import { Command } from "commander";
|
|
@@ -537,7 +537,7 @@ function chooseProjectNonInteractive(projects, preferredName, appFolder = true)
|
|
|
537
537
|
return { kind: "new", name: preferredName };
|
|
538
538
|
}
|
|
539
539
|
async function runLogin(opts = {}) {
|
|
540
|
-
const { CLOUD_API_ENDPOINT: CLOUD_API_ENDPOINT2, resolveCloudEndpoint: resolveCloudEndpoint2 } = await import("./endpoint-
|
|
540
|
+
const { CLOUD_API_ENDPOINT: CLOUD_API_ENDPOINT2, resolveCloudEndpoint: resolveCloudEndpoint2 } = await import("./endpoint-XZHMF6EZ.js");
|
|
541
541
|
const saved = loadConfig().endpoint;
|
|
542
542
|
const endpoint = opts.endpoint ? resolveCloudEndpoint2(opts.endpoint) : saved ? resolveCloudEndpoint2(saved) : CLOUD_API_ENDPOINT2;
|
|
543
543
|
const consoleBase = await resolveConsoleUrl();
|
|
@@ -1639,7 +1639,7 @@ async function checkOnboardingStatus(config, _consoleBase, cwd, doFetch = global
|
|
|
1639
1639
|
}
|
|
1640
1640
|
async function checkVersionDrift(cwd, doFetch) {
|
|
1641
1641
|
const checks = [];
|
|
1642
|
-
const { MUSHI_CLI_VERSION: MUSHI_CLI_VERSION2 } = await import("./version-
|
|
1642
|
+
const { MUSHI_CLI_VERSION: MUSHI_CLI_VERSION2 } = await import("./version-JUEQJNGV.js");
|
|
1643
1643
|
if (MUSHI_CLI_VERSION2 === "0.0.0-dev") return checks;
|
|
1644
1644
|
const parse2 = (v) => {
|
|
1645
1645
|
const m = v.replace(/^[~^]/, "").match(/^(\d+)\.(\d+)\.(\d+)/);
|
|
@@ -2665,7 +2665,7 @@ async function maybeOfferConnect(credentials, options, _consoleBase) {
|
|
|
2665
2665
|
if (p.isCancel(answer) || !answer) return;
|
|
2666
2666
|
const endpoint = resolveCloudEndpoint(options.endpoint);
|
|
2667
2667
|
try {
|
|
2668
|
-
const { runConnect: runConnect2 } = await import("./connect-
|
|
2668
|
+
const { runConnect: runConnect2 } = await import("./connect-OPWVFSNG.js");
|
|
2669
2669
|
const saved = loadConfig();
|
|
2670
2670
|
const result = await runConnect2(
|
|
2671
2671
|
{
|
|
@@ -5622,7 +5622,7 @@ Examples:
|
|
|
5622
5622
|
mushi upgrade --check # CI freshness (no install)
|
|
5623
5623
|
mushi upgrade --self # upgrade the CLI binary itself
|
|
5624
5624
|
mushi upgrade --self --dry-run
|
|
5625
|
-
mushi upgrade --cwd ../
|
|
5625
|
+
mushi upgrade --cwd ../my-app`).action(async (opts) => {
|
|
5626
5626
|
if (opts.self) {
|
|
5627
5627
|
const selfResult = await runSelfUpgrade({ dryRun: opts.dryRun || opts.check });
|
|
5628
5628
|
if (opts.json) {
|
package/dist/init.js
CHANGED
|
@@ -13,12 +13,12 @@ import {
|
|
|
13
13
|
sampleBugSnippet,
|
|
14
14
|
sanitizeSecret,
|
|
15
15
|
snippetTarget
|
|
16
|
-
} from "./chunk-
|
|
16
|
+
} from "./chunk-AKUYV2CR.js";
|
|
17
17
|
import "./chunk-LFP3NPZT.js";
|
|
18
|
-
import "./chunk-
|
|
19
|
-
import "./chunk-
|
|
18
|
+
import "./chunk-LHSWFJOB.js";
|
|
19
|
+
import "./chunk-WJ7ZTOF7.js";
|
|
20
20
|
import "./chunk-AWASJDQI.js";
|
|
21
|
-
import "./chunk-
|
|
21
|
+
import "./chunk-X64CFG54.js";
|
|
22
22
|
export {
|
|
23
23
|
CLI_FRESHNESS_SOURCE,
|
|
24
24
|
applySnippetPlan,
|
package/dist/version.d.ts
CHANGED
|
@@ -14,6 +14,6 @@ declare const MUSHI_CLI_VERSION: string;
|
|
|
14
14
|
* setup refreshes the pin. Synced to packages/mcp/package.json by
|
|
15
15
|
* `scripts/sync-mcp-pin.mjs` — never hand-edit the version.
|
|
16
16
|
*/
|
|
17
|
-
declare const MUSHI_MCP_PIN_SPEC = "@mushi-mushi/mcp@0.
|
|
17
|
+
declare const MUSHI_MCP_PIN_SPEC = "@mushi-mushi/mcp@0.33.0";
|
|
18
18
|
|
|
19
19
|
export { MUSHI_CLI_VERSION, MUSHI_MCP_PIN_SPEC };
|
package/dist/version.js
CHANGED
package/dist/wizard-bin.js
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import {
|
|
2
2
|
runInit
|
|
3
|
-
} from "./chunk-
|
|
3
|
+
} from "./chunk-AKUYV2CR.js";
|
|
4
4
|
import {
|
|
5
5
|
FLAGS_HELP,
|
|
6
6
|
UNKNOWN_COMMAND_EXIT,
|
|
@@ -11,10 +11,10 @@ import {
|
|
|
11
11
|
scaffoldTemplate
|
|
12
12
|
} from "./chunk-4JF7C3MY.js";
|
|
13
13
|
import "./chunk-LFP3NPZT.js";
|
|
14
|
-
import "./chunk-
|
|
15
|
-
import "./chunk-
|
|
14
|
+
import "./chunk-LHSWFJOB.js";
|
|
15
|
+
import "./chunk-WJ7ZTOF7.js";
|
|
16
16
|
import "./chunk-AWASJDQI.js";
|
|
17
|
-
import "./chunk-
|
|
17
|
+
import "./chunk-X64CFG54.js";
|
|
18
18
|
|
|
19
19
|
// src/wizard-bin.ts
|
|
20
20
|
import { spawnSync } from "child_process";
|
package/package.json
CHANGED
package/dist/chunk-E5FGF7I7.js
DELETED