@mushi-mushi/cli 0.37.1 → 0.38.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/README.md CHANGED
@@ -1,6 +1,6 @@
1
1
  # @mushi-mushi/cli
2
2
 
3
- > **Your AI wrote it. Mushi Mushi tells you why it broke.**
3
+ > **Your AI built it. Mushi Mushi makes it better.**
4
4
 
5
5
  The `mushi` command for [Mushi Mushi](https://github.com/kensaurus/mushi-mushi). Install the SDK in your app, connect your editor, then read bugs, dispatch fixes and merge them without leaving the terminal.
6
6
 
@@ -9,10 +9,10 @@ import {
9
9
  requireUuid,
10
10
  saveConfig,
11
11
  savedSdkKeyFor
12
- } from "./chunk-P6DI2XN7.js";
12
+ } from "./chunk-QZMSGTVZ.js";
13
13
  import {
14
14
  MUSHI_MCP_PIN_SPEC
15
- } from "./chunk-GZ2WEGNU.js";
15
+ } from "./chunk-DJNAPA4D.js";
16
16
  import {
17
17
  assertEndpoint,
18
18
  normalizeEndpoint
@@ -0,0 +1,10 @@
1
+ #!/usr/bin/env node
2
+
3
+ // src/version.ts
4
+ var MUSHI_CLI_VERSION = true ? "0.38.0" : "0.0.0-dev";
5
+ var MUSHI_MCP_PIN_SPEC = "@mushi-mushi/mcp@0.31.0";
6
+
7
+ export {
8
+ MUSHI_CLI_VERSION,
9
+ MUSHI_MCP_PIN_SPEC
10
+ };
@@ -8,10 +8,10 @@ import {
8
8
  requireConfig,
9
9
  requireUuid,
10
10
  tryLoadWorkerKey
11
- } from "./chunk-P6DI2XN7.js";
11
+ } from "./chunk-QZMSGTVZ.js";
12
12
  import {
13
13
  MUSHI_CLI_VERSION
14
- } from "./chunk-GZ2WEGNU.js";
14
+ } from "./chunk-DJNAPA4D.js";
15
15
 
16
16
  // src/worker/daemon.ts
17
17
  import { existsSync as existsSync6, readFileSync as readFileSync5 } from "fs";
@@ -1510,10 +1510,17 @@ async function commitWithHooks(wt, args, log) {
1510
1510
  try {
1511
1511
  await git(wt, ["commit", ...args]);
1512
1512
  } catch (err) {
1513
- if (!(err instanceof Error) || !isMissingModuleFailure(err.message)) throw err;
1514
- log(" commit: a hook could not find a package; installing dependencies and committing again");
1515
- await installDeps(wt, log);
1513
+ if (!(err instanceof Error)) throw err;
1514
+ if (isMissingModuleFailure(err.message)) {
1515
+ log(" commit: a hook could not find a package; installing dependencies and committing again");
1516
+ await installDeps(wt, log);
1517
+ await git(wt, ["commit", ...args]);
1518
+ return;
1519
+ }
1520
+ if (!/hook steps failed:|husky - pre-commit|pre-commit hook/i.test(err.message)) throw err;
1521
+ log(` commit: a pre-commit hook failed (${err.message.replace(/^git commit failed: /, "").slice(0, 200)}); running the hooks once more on the same change`);
1516
1522
  await git(wt, ["commit", ...args]);
1523
+ log(" commit: the hooks passed the second time, so the first failure was this machine, not the change");
1517
1524
  }
1518
1525
  }
1519
1526
  function isHookRejection(message) {
@@ -1606,7 +1613,7 @@ function registerWorkCommands(program) {
1606
1613
  if (opts.repoDir || opts.report || opts.followups || opts.recheck) {
1607
1614
  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");
1608
1615
  }
1609
- const { runDaemon: runDaemon2 } = await import("./daemon-WUYNF5E5.js");
1616
+ const { runDaemon: runDaemon2 } = await import("./daemon-VYXTQ5TG.js");
1610
1617
  await runDaemon2({ configPath: opts.workerConfig, ...opts.agent !== void 0 ? { agent } : {}, ...opts.anyRepo ? { anyRepo: true } : {} });
1611
1618
  return;
1612
1619
  }
@@ -0,0 +1,8 @@
1
+ // src/version.ts
2
+ var MUSHI_CLI_VERSION = true ? "0.38.0" : "0.0.0-dev";
3
+ var MUSHI_MCP_PIN_SPEC = "@mushi-mushi/mcp@0.31.0";
4
+
5
+ export {
6
+ MUSHI_CLI_VERSION,
7
+ MUSHI_MCP_PIN_SPEC
8
+ };
@@ -1,7 +1,7 @@
1
1
  #!/usr/bin/env node
2
2
  import {
3
3
  MUSHI_CLI_VERSION
4
- } from "./chunk-GZ2WEGNU.js";
4
+ } from "./chunk-DJNAPA4D.js";
5
5
  import {
6
6
  CLOUD_API_ENDPOINT,
7
7
  normalizeEndpoint
@@ -1,6 +1,6 @@
1
1
  import {
2
2
  MUSHI_CLI_VERSION
3
- } from "./chunk-IMASP6GK.js";
3
+ } from "./chunk-M5LN4ZWQ.js";
4
4
  import {
5
5
  assertEndpoint,
6
6
  normalizeEndpoint
@@ -6,10 +6,10 @@ import {
6
6
  saveConfig,
7
7
  savedSdkKeyFor,
8
8
  waitForIngestReady
9
- } from "./chunk-GGIRTNKP.js";
9
+ } from "./chunk-V3DR4WLG.js";
10
10
  import {
11
11
  MUSHI_MCP_PIN_SPEC
12
- } from "./chunk-IMASP6GK.js";
12
+ } from "./chunk-M5LN4ZWQ.js";
13
13
  import {
14
14
  detectFramework,
15
15
  envVarsToWrite,
@@ -2,10 +2,10 @@
2
2
  import {
3
3
  resolveSdkEnvKey,
4
4
  runConnect
5
- } from "./chunk-STITR7EL.js";
5
+ } from "./chunk-BUCMB4NS.js";
6
6
  import "./chunk-KOBEOGNF.js";
7
- import "./chunk-P6DI2XN7.js";
8
- import "./chunk-GZ2WEGNU.js";
7
+ import "./chunk-QZMSGTVZ.js";
8
+ import "./chunk-DJNAPA4D.js";
9
9
  import "./chunk-LGGE3LH7.js";
10
10
  export {
11
11
  resolveSdkEnvKey,
@@ -10,9 +10,9 @@ import {
10
10
  readWorkerKey,
11
11
  runDaemon,
12
12
  workerHostId
13
- } from "./chunk-SP55DHLD.js";
14
- import "./chunk-P6DI2XN7.js";
15
- import "./chunk-GZ2WEGNU.js";
13
+ } from "./chunk-JXAH3XKH.js";
14
+ import "./chunk-QZMSGTVZ.js";
15
+ import "./chunk-DJNAPA4D.js";
16
16
  import "./chunk-LGGE3LH7.js";
17
17
  export {
18
18
  assertWorkerKey,
package/dist/index.js CHANGED
@@ -22,7 +22,7 @@ import {
22
22
  sanitizeEndpoint,
23
23
  sanitizeProjectId,
24
24
  writeMcpServerEntry
25
- } from "./chunk-STITR7EL.js";
25
+ } from "./chunk-BUCMB4NS.js";
26
26
  import {
27
27
  FRAMEWORKS,
28
28
  detectFramework,
@@ -50,7 +50,7 @@ import {
50
50
  registerUxCommands,
51
51
  registerWorkCommands,
52
52
  validateWorkerConfig
53
- } from "./chunk-SP55DHLD.js";
53
+ } from "./chunk-JXAH3XKH.js";
54
54
  import {
55
55
  CONFIG_PATH,
56
56
  MushiCliError,
@@ -89,11 +89,11 @@ import {
89
89
  tryLoadKeyFromKeychain,
90
90
  trySaveKeyToKeychain,
91
91
  trySaveWorkerKey
92
- } from "./chunk-P6DI2XN7.js";
92
+ } from "./chunk-QZMSGTVZ.js";
93
93
  import {
94
94
  MUSHI_CLI_VERSION,
95
95
  MUSHI_MCP_PIN_SPEC
96
- } from "./chunk-GZ2WEGNU.js";
96
+ } from "./chunk-DJNAPA4D.js";
97
97
  import {
98
98
  CLOUD_API_ENDPOINT,
99
99
  CLOUD_MCP_OAUTH_URL,
@@ -1609,7 +1609,7 @@ async function checkOnboardingStatus(config, _consoleBase, cwd, doFetch = global
1609
1609
  }
1610
1610
  async function checkVersionDrift(cwd, doFetch) {
1611
1611
  const checks = [];
1612
- const { MUSHI_CLI_VERSION: MUSHI_CLI_VERSION2 } = await import("./version-JSSHATRX.js");
1612
+ const { MUSHI_CLI_VERSION: MUSHI_CLI_VERSION2 } = await import("./version-ULUVAZ3V.js");
1613
1613
  if (MUSHI_CLI_VERSION2 === "0.0.0-dev") return checks;
1614
1614
  const parse2 = (v) => {
1615
1615
  const m = v.replace(/^[~^]/, "").match(/^(\d+)\.(\d+)\.(\d+)/);
@@ -2582,7 +2582,7 @@ async function maybeOfferConnect(credentials, options, _consoleBase) {
2582
2582
  if (p.isCancel(answer) || !answer) return;
2583
2583
  const endpoint = resolveCloudEndpoint(options.endpoint);
2584
2584
  try {
2585
- const { runConnect: runConnect2 } = await import("./connect-YO4W7TAV.js");
2585
+ const { runConnect: runConnect2 } = await import("./connect-OTHJSNHC.js");
2586
2586
  const saved = loadConfig();
2587
2587
  const result = await runConnect2(
2588
2588
  {
@@ -7809,8 +7809,8 @@ function toHex(c) {
7809
7809
  function num(token, scale) {
7810
7810
  const t = token.trim();
7811
7811
  if (t === "none") return 0;
7812
- const pct2 = /^(-?[\d.]+)%$/.exec(t);
7813
- if (pct2) return Number(pct2[1]) / 100 * scale;
7812
+ const pct3 = /^(-?[\d.]+)%$/.exec(t);
7813
+ if (pct3) return Number(pct3[1]) / 100 * scale;
7814
7814
  const deg = /^(-?[\d.]+)(deg|turn|rad|grad)?$/.exec(t);
7815
7815
  if (!deg) return null;
7816
7816
  const v = Number(deg[1]);
@@ -10262,6 +10262,143 @@ function registerCodeHealthCommands(program2) {
10262
10262
  });
10263
10263
  }
10264
10264
 
10265
+ // src/commands/journeys.ts
10266
+ var JOURNEY_KINDS = [
10267
+ "broken",
10268
+ "dead_end",
10269
+ "high_exit",
10270
+ "loop",
10271
+ "reload",
10272
+ "duplicate_page",
10273
+ "route_variant",
10274
+ "duplicate_title",
10275
+ "orphan",
10276
+ "deep_page",
10277
+ "unvisited"
10278
+ ];
10279
+ var DAY_OPTIONS = ["7", "30", "90"];
10280
+ function safeBlock(text2) {
10281
+ return String(text2 ?? "").replace(/[\u0000-\u0009\u000b-\u001f\u007f]+/g, " ").trim();
10282
+ }
10283
+ function pct(n) {
10284
+ return n == null ? "\u2014" : `${Math.round(n * 100)}%`;
10285
+ }
10286
+ function renderJourneys(data, findings, opts) {
10287
+ const { stats, score, flows } = data.map;
10288
+ const lines = [
10289
+ `Journeys \xB7 last ${data.days} days \xB7 score ${score}/100`,
10290
+ `${stats.sessions} session(s) \xB7 ${stats.pageViews} page view(s) \xB7 ${stats.pages} page(s) \xB7 ${stats.avgPagesPerSession ?? "\u2014"} pages/session \xB7 bounce ${pct(stats.bounceRate)}${stats.sampled ? " (newest visits sampled)" : ""}`
10291
+ ];
10292
+ if (data.mapScan) {
10293
+ lines.push(`Site scan: ${data.mapScan.pageCount} page(s) of ${oneLine(data.mapScan.baseUrl, 80)}, ${fmtDate(data.mapScan.finishedAt ?? data.mapScan.createdAt)}`);
10294
+ } else {
10295
+ lines.push("No site scan yet. Run: mushi journeys scan");
10296
+ }
10297
+ if (data.scan?.status === "running") lines.push("A scan is running; it usually takes a few minutes.");
10298
+ else if (data.scan?.status === "failed" && data.scan.error) lines.push(`The last scan failed: ${oneLine(data.scan.error, 160)}`);
10299
+ if (flows.length > 0) {
10300
+ lines.push("", "Common paths:");
10301
+ for (const f of flows.slice(0, 5)) lines.push(` ${f.sessions}\xD7 ${f.pages.map((p5) => oneLine(p5, 60)).join(" \u2192 ")}`);
10302
+ }
10303
+ lines.push("");
10304
+ if (findings.length === 0) {
10305
+ lines.push(opts.kind ? `No ${opts.kind} findings.` : "No findings: nothing in the map gets in people's way.");
10306
+ return lines;
10307
+ }
10308
+ lines.push(opts.kind ? `${findings.length} ${opts.kind} finding(s):` : `${findings.length} finding(s):`);
10309
+ for (const f of findings) {
10310
+ lines.push(` ${f.severity.toUpperCase().padEnd(6)} ${oneLine(f.title, 110)} [${f.kind}]`);
10311
+ if (f.pages.length > 0) lines.push(` Pages: ${f.pages.slice(0, 5).map((p5) => oneLine(p5, 60)).join(", ")}${f.pages.length > 5 ? ", \u2026" : ""}`);
10312
+ lines.push(` Fix: ${oneLine(f.suggestion, 160)}`);
10313
+ if (opts.prompts) {
10314
+ lines.push(" Prompt:");
10315
+ for (const l of safeBlock(f.prompt).split("\n")) lines.push(` ${l}`);
10316
+ }
10317
+ }
10318
+ if (!opts.prompts) lines.push("", "Add --prompts for a ready prompt per finding to paste into your coding agent.");
10319
+ return lines;
10320
+ }
10321
+ function registerJourneysCommands(program2) {
10322
+ const journeys = program2.command("journeys").description("Where people get stuck in your app, with a fix prompt per finding (Journey optimizer)").option("--project-id <id>", "Project ID (defaults to the configured project)").option("--days <n>", "Window of visits: 7, 30 or 90", "30").option("--kind <kind>", `Only findings of one kind (${JOURNEY_KINDS.join(", ")})`).option("--prompts", "Print each finding's prompt for a coding agent").option("--json", "Machine-readable JSON output (the whole map)").addHelpText("after", `
10323
+ Examples:
10324
+ mushi journeys
10325
+ mushi journeys --days 90 --kind dead_end --prompts
10326
+ mushi journeys scan --url https://example.com
10327
+ mushi journeys record --hours 24 --sample 0.1`).action(async (opts) => {
10328
+ if (!DAY_OPTIONS.includes(opts.days)) throw new MushiCliError("E_INVALID_INPUT", "--days must be 7, 30 or 90");
10329
+ if (opts.kind && !JOURNEY_KINDS.includes(opts.kind)) {
10330
+ throw new MushiCliError("E_INVALID_INPUT", `--kind must be one of ${JOURNEY_KINDS.join(", ")}`);
10331
+ }
10332
+ const config = requireConfig();
10333
+ const projectId2 = resolveProjectId(opts.projectId, config.projectId);
10334
+ const result = await apiCall(`/v1/admin/projects/${encodeURIComponent(projectId2)}/journeys?days=${opts.days}`, config);
10335
+ if (!result.ok) die(result);
10336
+ const data = result.data;
10337
+ const findings = opts.kind ? data.map.findings.filter((f) => f.kind === opts.kind) : data.map.findings;
10338
+ if (outputIsJson(opts.json)) {
10339
+ console.log(JSON.stringify({ ...data, map: { ...data.map, findings } }, null, 2));
10340
+ return;
10341
+ }
10342
+ for (const line of renderJourneys(data, findings, opts)) console.log(line);
10343
+ });
10344
+ journeys.command("scan").description("Scan the live site (up to 40 pages, no LLM) so the map knows its links; at most once every 10 minutes").option("--project-id <id>", "Project ID (defaults to the configured project)").option("--url <url>", "The site's public https:// address (defaults to the one Mushi Mushi already knows)").option("--json", "Machine-readable JSON output").action(async (opts) => {
10345
+ const config = requireConfig();
10346
+ const projectId2 = resolveProjectId(opts.projectId, config.projectId);
10347
+ const result = await apiCall(`/v1/admin/projects/${encodeURIComponent(projectId2)}/journeys/scan`, config, {
10348
+ method: "POST",
10349
+ body: JSON.stringify(opts.url ? { base_url: opts.url } : {})
10350
+ });
10351
+ if (!result.ok) die(result);
10352
+ if (outputIsJson(opts.json)) {
10353
+ console.log(JSON.stringify(result.data, null, 2));
10354
+ return;
10355
+ }
10356
+ const s = result.data.scan;
10357
+ console.log(`Scan started for ${oneLine(s.baseUrl, 100)} [${s.id}].`);
10358
+ console.log("It usually takes a few minutes. Then run: mushi journeys");
10359
+ });
10360
+ journeys.command("record").description("Open, extend or stop the visit recording window for apps whose SDK uses trackSessions: 'on-demand'").option("--project-id <id>", "Project ID (defaults to the configured project)").option("--hours <n>", `Record for this many hours from now (1-${RECORDING_MAX_HOURS}); 0 stops`).option("--sample <rate>", "Share of visitors to record, above 0 and at most 1 (0.1 = one in ten; unset keeps the current share)").option("--stop", "Stop recording now (same as --hours 0)").option("--json", "Machine-readable JSON output").addHelpText("after", `
10361
+ Examples:
10362
+ mushi journeys record --hours 24 --sample 0.1
10363
+ mushi journeys record --stop`).action(async (opts) => {
10364
+ const body = recordingBody(opts);
10365
+ const config = requireConfig();
10366
+ const projectId2 = resolveProjectId(opts.projectId, config.projectId);
10367
+ const result = await apiCall(
10368
+ `/v1/admin/projects/${encodeURIComponent(projectId2)}/journeys/recording`,
10369
+ config,
10370
+ { method: "PUT", body: JSON.stringify(body) }
10371
+ );
10372
+ if (!result.ok) die(result);
10373
+ if (outputIsJson(opts.json)) {
10374
+ console.log(JSON.stringify(result.data, null, 2));
10375
+ return;
10376
+ }
10377
+ const r = result.data.recording;
10378
+ if (!r.until) {
10379
+ console.log("Recording is off. Apps with trackSessions: 'on-demand' send no visits until you open a new window.");
10380
+ return;
10381
+ }
10382
+ console.log(`Recording ${Math.round(r.sampleRate * 100)}% of visitors until ${fmtDate(r.until)}.`);
10383
+ console.log("Only apps whose SDK uses trackSessions: 'on-demand' wait for this window. Read the results with: mushi journeys");
10384
+ });
10385
+ }
10386
+ var RECORDING_MAX_HOURS = 168;
10387
+ function recordingBody(opts) {
10388
+ if (opts.stop && opts.hours !== void 0) throw new MushiCliError("E_INVALID_INPUT", "Pass --hours or --stop, not both.");
10389
+ if (!opts.stop && opts.hours === void 0) {
10390
+ throw new MushiCliError("E_INVALID_INPUT", "Pass --hours <n> to record, or --stop.", "e.g. mushi journeys record --hours 24 --sample 0.1");
10391
+ }
10392
+ const hours = opts.stop ? 0 : Number(opts.hours);
10393
+ if (!Number.isInteger(hours) || hours < 0 || hours > RECORDING_MAX_HOURS) {
10394
+ throw new MushiCliError("E_INVALID_INPUT", `--hours must be a whole number from 0 to ${RECORDING_MAX_HOURS}`);
10395
+ }
10396
+ if (opts.sample === void 0) return { hours };
10397
+ const rate = Number(opts.sample);
10398
+ if (!(rate > 0 && rate <= 1)) throw new MushiCliError("E_INVALID_INPUT", "--sample must be above 0 and at most 1 (0.1 = one visitor in ten)");
10399
+ return { hours, sample_rate: rate };
10400
+ }
10401
+
10265
10402
  // src/commands/releases.ts
10266
10403
  import { readFileSync as readFileSync6 } from "fs";
10267
10404
  var DRAFT_TIMEOUT_MS = 12e4;
@@ -12176,7 +12313,7 @@ function formatDuration(s) {
12176
12313
  if (s < 90 * 60) return `${Math.round(s / 60)} min`;
12177
12314
  return `${Math.round(s / 3600 * 10) / 10} h`;
12178
12315
  }
12179
- function pct(n) {
12316
+ function pct2(n) {
12180
12317
  return typeof n === "number" && Number.isFinite(n) ? `${Math.round(n * 100)}%` : "\u2014";
12181
12318
  }
12182
12319
  function runsOnLabel(r) {
@@ -12214,7 +12351,7 @@ function renderCompare(data, opts = {}) {
12214
12351
  const repo = `${row.repo}${v === "public" ? " (public)" : v === "private" ? " (private)" : ""}`;
12215
12352
  const cost = row.costBasis === "github_public_free" ? "free" : row.costBasis === "github_larger_unpriced" ? "unpriced" : formatMoney(row.monthCost, row.currency);
12216
12353
  lines.push(
12217
- `${pad2(repo, 36)} ${pad2(runsOnLabel(row), 44)} ${String(row.jobs ?? 0).padStart(5)} ${formatDuration(row.queueP95s).padStart(9)} ${formatDuration(row.runP50s).padStart(8)} ${pct(row.prPassRate).padStart(8)} ${String(row.billedMinutes ?? 0).padStart(7)} ${cost.padStart(13)}`
12354
+ `${pad2(repo, 36)} ${pad2(runsOnLabel(row), 44)} ${String(row.jobs ?? 0).padStart(5)} ${formatDuration(row.queueP95s).padStart(9)} ${formatDuration(row.runP50s).padStart(8)} ${pct2(row.prPassRate).padStart(8)} ${String(row.billedMinutes ?? 0).padStart(7)} ${cost.padStart(13)}`
12218
12355
  );
12219
12356
  }
12220
12357
  if (rows.length > (opts.maxRows ?? 40)) lines.push(` \u2026 ${rows.length - (opts.maxRows ?? 40)} more (use --json)`);
@@ -12222,7 +12359,7 @@ function renderCompare(data, opts = {}) {
12222
12359
  if (machines.length > 0) {
12223
12360
  lines.push("", "Your machines (busy time counts parallel jobs once; electricity is the extra draw under load, your figures):");
12224
12361
  for (const m of machines) {
12225
- lines.push(` ${m.name}${m.online === false ? " (offline)" : ""}: busy ${m.busyHours ?? 0} h (${pct(m.busyShare)}) \xB7 electricity ${formatMoney(m.monthEnergyCost, m.currency)}/month \xB7 wear ${formatMoney(m.monthWearCost, m.currency)}/month \xB7 wait p95 ${formatDuration(m.queueP95s)}`);
12362
+ lines.push(` ${m.name}${m.online === false ? " (offline)" : ""}: busy ${m.busyHours ?? 0} h (${pct2(m.busyShare)}) \xB7 electricity ${formatMoney(m.monthEnergyCost, m.currency)}/month \xB7 wear ${formatMoney(m.monthWearCost, m.currency)}/month \xB7 wait p95 ${formatDuration(m.queueP95s)}`);
12226
12363
  }
12227
12364
  }
12228
12365
  const measured = (data.speed ?? []).filter((s) => s.factor != null);
@@ -13779,6 +13916,7 @@ registerPortfolioCommands(program);
13779
13916
  registerConnectorsCommands(program);
13780
13917
  registerFunnelCommands(program);
13781
13918
  registerCodeHealthCommands(program);
13919
+ registerJourneysCommands(program);
13782
13920
  registerReleasesCommands(program);
13783
13921
  registerSentryCommands(program);
13784
13922
  registerOutboxCommands(program);
package/dist/init.js CHANGED
@@ -25,10 +25,10 @@ import {
25
25
  saveConfig,
26
26
  savedSdkKeyFor,
27
27
  trySaveKeyToKeychain
28
- } from "./chunk-GGIRTNKP.js";
28
+ } from "./chunk-V3DR4WLG.js";
29
29
  import {
30
30
  MUSHI_CLI_VERSION
31
- } from "./chunk-IMASP6GK.js";
31
+ } from "./chunk-M5LN4ZWQ.js";
32
32
  import {
33
33
  FRAMEWORKS,
34
34
  detectFramework,
@@ -2127,7 +2127,7 @@ async function maybeOfferConnect(credentials, options, _consoleBase) {
2127
2127
  if (p.isCancel(answer) || !answer) return;
2128
2128
  const endpoint = resolveCloudEndpoint(options.endpoint);
2129
2129
  try {
2130
- const { runConnect } = await import("./connect-224IWYXE.js");
2130
+ const { runConnect } = await import("./connect-M2IGP63E.js");
2131
2131
  const saved = loadConfig();
2132
2132
  const result = await runConnect(
2133
2133
  {
@@ -2,7 +2,7 @@
2
2
  import {
3
3
  MUSHI_CLI_VERSION,
4
4
  MUSHI_MCP_PIN_SPEC
5
- } from "./chunk-GZ2WEGNU.js";
5
+ } from "./chunk-DJNAPA4D.js";
6
6
  export {
7
7
  MUSHI_CLI_VERSION,
8
8
  MUSHI_MCP_PIN_SPEC
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.30.7";
17
+ declare const MUSHI_MCP_PIN_SPEC = "@mushi-mushi/mcp@0.31.0";
18
18
 
19
19
  export { MUSHI_CLI_VERSION, MUSHI_MCP_PIN_SPEC };
package/dist/version.js CHANGED
@@ -1,7 +1,7 @@
1
1
  import {
2
2
  MUSHI_CLI_VERSION,
3
3
  MUSHI_MCP_PIN_SPEC
4
- } from "./chunk-IMASP6GK.js";
4
+ } from "./chunk-M5LN4ZWQ.js";
5
5
  export {
6
6
  MUSHI_CLI_VERSION,
7
7
  MUSHI_MCP_PIN_SPEC
package/package.json CHANGED
@@ -1,8 +1,8 @@
1
1
  {
2
2
  "name": "@mushi-mushi/cli",
3
- "version": "0.37.1",
3
+ "version": "0.38.0",
4
4
  "license": "MIT",
5
- "description": "Mushi Mushi CLI: SDK setup, MCP wiring, triage. Bug fixing for AI-built apps: plain-English diagnosis + a ready fix, in your editor.",
5
+ "description": "Mushi Mushi CLI: SDK setup, MCP wiring, triage. One place to improve AI-built apps: fix bugs, smooth user journeys and clean up the code.",
6
6
  "bin": {
7
7
  "mushi": "./dist/index.js"
8
8
  },
@@ -1,10 +0,0 @@
1
- #!/usr/bin/env node
2
-
3
- // src/version.ts
4
- var MUSHI_CLI_VERSION = true ? "0.37.1" : "0.0.0-dev";
5
- var MUSHI_MCP_PIN_SPEC = "@mushi-mushi/mcp@0.30.7";
6
-
7
- export {
8
- MUSHI_CLI_VERSION,
9
- MUSHI_MCP_PIN_SPEC
10
- };
@@ -1,8 +0,0 @@
1
- // src/version.ts
2
- var MUSHI_CLI_VERSION = true ? "0.37.1" : "0.0.0-dev";
3
- var MUSHI_MCP_PIN_SPEC = "@mushi-mushi/mcp@0.30.7";
4
-
5
- export {
6
- MUSHI_CLI_VERSION,
7
- MUSHI_MCP_PIN_SPEC
8
- };