@mushi-mushi/cli 0.16.0 → 0.17.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.
@@ -0,0 +1,6 @@
1
+ // src/version.ts
2
+ var MUSHI_CLI_VERSION = true ? "0.17.0" : "0.0.0-dev";
3
+
4
+ export {
5
+ MUSHI_CLI_VERSION
6
+ };
package/dist/index.js CHANGED
@@ -598,7 +598,7 @@ function getFrameworkFromPkg(pkg) {
598
598
  }
599
599
 
600
600
  // src/version.ts
601
- var MUSHI_CLI_VERSION = true ? "0.16.0" : "0.0.0-dev";
601
+ var MUSHI_CLI_VERSION = true ? "0.17.0" : "0.0.0-dev";
602
602
 
603
603
  // src/init.ts
604
604
  var ENV_FILES = [".env.local", ".env"];
@@ -2441,7 +2441,7 @@ reports.command("resolve <id>").description("Mark a report as resolved (shorthan
2441
2441
  });
2442
2442
  reports.command("reopen <id>").description("Reopen a resolved or dismissed report").option("--note <text>", "Note explaining the reopen").option("--json", "Machine-readable JSON output").action(async (id, opts) => {
2443
2443
  const config = requireConfig();
2444
- const body = { status: "new" };
2444
+ const body = { status: "reopened" };
2445
2445
  if (opts.note) body["note"] = opts.note;
2446
2446
  const result = await apiCall(`/v1/sync/reports/${id}`, config, {
2447
2447
  method: "PATCH",
@@ -2461,6 +2461,18 @@ reports.command("reopen <id>").description("Reopen a resolved or dismissed repor
2461
2461
  console.log(`\u2713 Reopened report ${id}`);
2462
2462
  }
2463
2463
  });
2464
+ reports.command("verify <id>").description("Mark a fixed report as verified by the reporter (operator shortcut)").option("--note <text>", "Optional audit note").option("--json", "Machine-readable JSON output").action(async (id, opts) => {
2465
+ const config = requireConfig();
2466
+ const body = { status: "verified" };
2467
+ if (opts.note) body["note"] = opts.note;
2468
+ const result = await apiCall(`/v1/sync/reports/${id}`, config, {
2469
+ method: "PATCH",
2470
+ body: JSON.stringify(body)
2471
+ });
2472
+ if (!result.ok) die(result);
2473
+ if (opts.json) console.log(JSON.stringify(result.data, null, 2));
2474
+ else console.log(`\u2713 Verified report ${id}`);
2475
+ });
2464
2476
  reports.command("dismiss <id>").description("Dismiss a report (not a real bug / out of scope)").option("--note <text>", "Reason for dismissal").option("--json", "Machine-readable JSON output").action(async (id, opts) => {
2465
2477
  const config = requireConfig();
2466
2478
  const body = { status: "dismissed" };
@@ -3807,7 +3819,7 @@ Recent runs for story ${storyId.slice(0, 8)}\u2026:
3807
3819
  const consoleUrl = config.consoleUrl ?? "https://app.mushi.ai";
3808
3820
  console.log(`
3809
3821
  Open in console: ${consoleUrl}/qa-coverage?story=${storyId}`);
3810
- console.log(` Tip: run 'mushi config consoleUrl http://localhost:6464' to set your local console URL`);
3822
+ console.log(` Tip: run 'mushi config consoleUrl <url>' to override (e.g. http://localhost:6464 for local dev)`);
3811
3823
  console.log();
3812
3824
  });
3813
3825
  qa.command("run <storyId>").description("Manually trigger a QA story run (fire-and-forget; check results with `mushi qa runs <id>`)").option("--json", "Machine-readable output").action(async (storyId, opts) => {
@@ -3882,14 +3894,11 @@ Examples:
3882
3894
  "Content-Type": "application/json",
3883
3895
  "X-Mushi-Project-Id": projectId
3884
3896
  };
3885
- const jwt = config.jwt ?? null;
3886
3897
  const apiKey = config.apiKey ?? null;
3887
- if (jwt) {
3888
- headers["Authorization"] = `Bearer ${jwt.replace(/[\r\n\0]/g, "")}`;
3889
- } else if (apiKey) {
3898
+ if (apiKey) {
3890
3899
  headers["X-Mushi-Api-Key"] = sanitizeApiKey(apiKey);
3891
3900
  } else {
3892
- process.stderr.write("error: no credentials found. Run `mushi login` first.\n");
3901
+ process.stderr.write("error: no API key found. Run `mushi login` or set MUSHI_API_KEY.\n");
3893
3902
  process.exit(1);
3894
3903
  }
3895
3904
  if (!opts.json) process.stdout.write("Running full-stack audit\u2026 ");
package/dist/init.js CHANGED
@@ -8,7 +8,7 @@ import {
8
8
  } from "./chunk-NYPX5KXR.js";
9
9
  import {
10
10
  MUSHI_CLI_VERSION
11
- } from "./chunk-BCTHNCIY.js";
11
+ } from "./chunk-OTQQZKPK.js";
12
12
 
13
13
  // src/init.ts
14
14
  import * as p from "@clack/prompts";
package/dist/version.js CHANGED
@@ -1,6 +1,6 @@
1
1
  import {
2
2
  MUSHI_CLI_VERSION
3
- } from "./chunk-BCTHNCIY.js";
3
+ } from "./chunk-OTQQZKPK.js";
4
4
  export {
5
5
  MUSHI_CLI_VERSION
6
6
  };
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@mushi-mushi/cli",
3
- "version": "0.16.0",
3
+ "version": "0.17.0",
4
4
  "license": "MIT",
5
5
  "description": "CLI for Mushi Mushi — `mushi init` wizard installs the right SDK for your framework, plus report triage and pipeline health commands",
6
6
  "bin": {
@@ -1,6 +0,0 @@
1
- // src/version.ts
2
- var MUSHI_CLI_VERSION = true ? "0.16.0" : "0.0.0-dev";
3
-
4
- export {
5
- MUSHI_CLI_VERSION
6
- };