@mushi-mushi/cli 0.10.0 → 0.11.1

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/init.js CHANGED
@@ -5,10 +5,10 @@ import {
5
5
  envVarsToWrite,
6
6
  installCommand,
7
7
  readPackageJson
8
- } from "./chunk-XHD3H54W.js";
8
+ } from "./chunk-NYPX5KXR.js";
9
9
  import {
10
10
  MUSHI_CLI_VERSION
11
- } from "./chunk-GHDS4VGP.js";
11
+ } from "./chunk-EXLNHPSC.js";
12
12
 
13
13
  // src/init.ts
14
14
  import * as p from "@clack/prompts";
@@ -323,7 +323,7 @@ function ensureInteractiveOrBailOut(options) {
323
323
  );
324
324
  if (hasAllFlags) return;
325
325
  process.stderr.write(
326
- "mushi-mushi: non-interactive terminal detected.\nPass all of --yes (or --framework), --project-id, and --api-key to run unattended.\nExample: npx mushi-mushi --yes --project-id xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx --api-key mushi_xxx\nYour project ID is the UUID shown in the Projects page of the Mushi admin console.\n"
326
+ "mushi-mushi: non-interactive terminal detected.\nPass all of --yes (or --framework), --project-id, and --api-key to run unattended.\nExample: npx mushi-mushi --yes --project-id <uuid-from-console> --api-key mushi_xxx\nYour project ID is the UUID shown in the Projects page of the Mushi admin console.\n"
327
327
  );
328
328
  process.exit(1);
329
329
  }
@@ -357,9 +357,9 @@ async function collectCredentials(options) {
357
357
  const existing = loadConfig();
358
358
  const rawProjectId = options.projectId ?? existing.projectId ?? await promptText({
359
359
  message: "Project ID",
360
- placeholder: "xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx",
360
+ placeholder: "e.g. bdafa28d-b153-482f-bd4f-42981f3fd3a4",
361
361
  hint: "Where to find it: https://kensaur.us/mushi-mushi/projects \u2192 click your project \u2192 copy the UUID below the project name.",
362
- validate: (v) => PROJECT_ID_PATTERN.test(v) ? void 0 : "Expected a UUID (xxxxxxxx-xxxx-...) \u2014 copy it from the Mushi admin console Projects page."
362
+ validate: (v) => PROJECT_ID_PATTERN.test(v.trim()) ? void 0 : "Expected a UUID (e.g. bdafa28d-b153-482f-bd4f-42981f3fd3a4) \u2014 copy it from the Mushi admin console Projects page."
363
363
  });
364
364
  const rawApiKey = options.apiKey ?? existing.apiKey ?? await promptText({
365
365
  message: "API key",
@@ -371,8 +371,7 @@ async function collectCredentials(options) {
371
371
  const apiKey = sanitizeSecret(rawApiKey);
372
372
  if (!PROJECT_ID_PATTERN.test(projectId)) {
373
373
  throw new Error(
374
- `Invalid project ID. Got: ${redact(projectId)}
375
- Expected a UUID (e.g. 542b34e0-019e-41fe-b900-7b637717bb86) \u2014 copy it from the Projects page in the Mushi console at https://kensaur.us/mushi-mushi/projects`
374
+ `Invalid project ID. Expected a UUID (e.g. bdafa28d-b153-482f-bd4f-42981f3fd3a4) or the proj_* prefixed form. Got: ${redact(projectId)} \u2014 copy it from the Projects page in the Mushi console at https://kensaur.us/mushi-mushi/projects`
376
375
  );
377
376
  }
378
377
  if (!API_KEY_PATTERN.test(apiKey)) {
package/dist/version.js CHANGED
@@ -1,6 +1,6 @@
1
1
  import {
2
2
  MUSHI_CLI_VERSION
3
- } from "./chunk-GHDS4VGP.js";
3
+ } from "./chunk-EXLNHPSC.js";
4
4
  export {
5
5
  MUSHI_CLI_VERSION
6
6
  };
package/package.json CHANGED
@@ -1,22 +1,28 @@
1
1
  {
2
2
  "name": "@mushi-mushi/cli",
3
- "version": "0.10.0",
3
+ "version": "0.11.1",
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": {
7
7
  "mushi": "./dist/index.js"
8
8
  },
9
+ "scripts": {
10
+ "build": "tsup",
11
+ "lint": "eslint src/",
12
+ "test": "vitest run",
13
+ "typecheck": "tsc --noEmit"
14
+ },
9
15
  "dependencies": {
10
16
  "@clack/prompts": "^1.3.0",
11
17
  "commander": "^14.0.3"
12
18
  },
13
19
  "devDependencies": {
20
+ "@mushi-mushi/eslint-config": "workspace:*",
14
21
  "@types/node": "^22.19.17",
15
22
  "eslint": "^10.3.0",
16
23
  "tsup": "^8.5.1",
17
24
  "typescript": "^6.0.3",
18
- "vitest": "^4.1.5",
19
- "@mushi-mushi/eslint-config": "0.0.0"
25
+ "vitest": "^4.1.5"
20
26
  },
21
27
  "author": "Kenji Sakuramoto",
22
28
  "repository": {
@@ -103,11 +109,5 @@
103
109
  "type": "module",
104
110
  "engines": {
105
111
  "node": ">=20"
106
- },
107
- "scripts": {
108
- "build": "tsup",
109
- "lint": "eslint src/",
110
- "test": "vitest run",
111
- "typecheck": "tsc --noEmit"
112
112
  }
113
- }
113
+ }
@@ -1,6 +0,0 @@
1
- // src/version.ts
2
- var MUSHI_CLI_VERSION = true ? "0.10.0" : "0.0.0-dev";
3
-
4
- export {
5
- MUSHI_CLI_VERSION
6
- };