create-mushi-mushi 0.6.11 → 0.6.13

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/LICENSE CHANGED
@@ -1,6 +1,6 @@
1
1
  MIT License
2
2
 
3
- Copyright (c) 2026 Kenji Sakuramoto / Kensaurus 合同会社
3
+ Copyright (c) 2026 kensaurus LLC
4
4
 
5
5
  Permission is hereby granted, free of charge, to any person obtaining a copy
6
6
  of this software and associated documentation files (the "Software"), to deal
package/README.md CHANGED
@@ -1,11 +1,15 @@
1
1
  # create-mushi-mushi
2
2
 
3
- > **Your AI wrote it. Mushi tells you why it broke.**
3
+ > **Your AI wrote it. Mushi Mushi tells you why it broke.**
4
4
 
5
- Add Mushi to the app you already have in one command, or scaffold a Vue, Svelte
6
- or Node starter with `--template`.
5
+ Adds [Mushi Mushi](https://github.com/kensaurus/mushi-mushi) to the app you
6
+ already have, so when a user says something is broken you get the likely cause
7
+ in plain English and a fix prompt for your AI editor. One command finds your
8
+ framework, installs the right SDK and writes your keys. It can also start a
9
+ small Vue, Svelte or Node app with Mushi Mushi already in it (`--template`).
7
10
 
8
- > One-line setup for the [Mushi Mushi](https://github.com/kensaurus/mushi-mushi) bug-reporting SDK: a user's report arrives as a plain-English diagnosis and a paste-ready fix in your editor.
11
+ You need Node.js 20 or newer and a free Mushi Mushi account (the wizard opens
12
+ a browser sign-in).
9
13
 
10
14
  ```bash
11
15
  npm create mushi-mushi
@@ -19,19 +23,19 @@ Docs: [the setup wizard](https://kensaur.us/mushi-mushi/docs/sdks/launcher) (sam
19
23
 
20
24
  ## What it does
21
25
 
22
- 1. **Detects your framework** — Next.js, Nuxt, SvelteKit, Angular, Expo, Capacitor, plain React/Vue/Svelte, or vanilla JS.
23
- 2. **Picks the right SDK** — `@mushi-mushi/react`, `@mushi-mushi/vue`, `@mushi-mushi/svelte`, `@mushi-mushi/angular`, `@mushi-mushi/react-native`, `@mushi-mushi/capacitor`, or `@mushi-mushi/web`.
24
- 3. **Detects your package manager** — uses `npm`, `pnpm`, `yarn`, or `bun` based on your lockfile.
25
- 4. **Writes env vars** — framework-prefixed keys (e.g. `VITE_MUSHI_PROJECT_ID` / `NEXT_PUBLIC_MUSHI_API_KEY`) land in `.env.local`.
26
- 5. **Warns about `.gitignore`** — won't ship secrets if your env file isn't ignored.
27
- 6. **Prints the provider snippet** — framework-specific code to paste in.
28
- 7. **Sends a test report** (opt-in) — closes the loop so you see your first classified bug immediately.
26
+ 1. **Finds your framework:** Next.js, React (Vite or Create React App), Remix, Astro, Solid, Vue, Nuxt, Svelte, SvelteKit, Angular, Expo, React Native, Capacitor, Express, Fastify, Hono, or plain JavaScript.
27
+ 2. **Picks the right SDK:** `@mushi-mushi/react`, `@mushi-mushi/vue`, `@mushi-mushi/svelte`, `@mushi-mushi/angular`, `@mushi-mushi/react-native`, `@mushi-mushi/capacitor` or `@mushi-mushi/web` for apps, and `@mushi-mushi/node` for Express, Fastify and Hono servers.
28
+ 3. **Uses your package manager:** `npm`, `pnpm`, `yarn` or `bun`, based on your lockfile.
29
+ 4. **Writes your keys:** into `.env.local` (or your existing `.env`), with the prefix your framework needs, for example `VITE_MUSHI_PROJECT_ID` or `NEXT_PUBLIC_MUSHI_API_KEY`. Servers, Remix and bare React Native get plain `MUSHI_PROJECT_ID` and `MUSHI_API_KEY`.
30
+ 5. **Checks `.gitignore`:** warns you if that env file is not ignored, so you don't commit it.
31
+ 6. **Prints the setup code** for your framework, ready to paste.
32
+ 7. **Offers to send a test report** at the end, so you see your first diagnosed bug right away.
29
33
 
30
- By default it wires Mushi into an **existing** project, so run it from that project's root. To start from nothing, use a starter template instead.
34
+ By default it wires Mushi Mushi into an **existing** project, so run it from that project's root. To start from nothing, use a starter template instead.
31
35
 
32
36
  ## Starter templates
33
37
 
34
- `--template` scaffolds a minimal starter app with Mushi already wired, instead of running the wizard:
38
+ `--template` scaffolds a minimal starter app with Mushi Mushi already wired, instead of running the wizard:
35
39
 
36
40
  ```bash
37
41
  npm create mushi-mushi -- --template vue # into ./mushi-vue-app
@@ -55,10 +59,12 @@ npm create mushi-mushi -- --framework next
55
59
  npm create mushi-mushi -- --project-id <project-uuid> --api-key mushi_xxx
56
60
  npm create mushi-mushi -- --skip-install
57
61
  npm create mushi-mushi -- --skip-test-report
62
+ npm create mushi-mushi -- --audit # health-check an existing install instead
58
63
  npm create mushi-mushi -- --cwd apps/web
59
64
  npm create mushi-mushi -- --endpoint https://mushi.your-company.com
60
65
  npm create mushi-mushi -- --template vue [dir]
61
66
  npm create mushi-mushi -- -y
67
+ npm create mushi-mushi -- --version
62
68
  npm create mushi-mushi -- --help
63
69
  ```
64
70
 
@@ -74,9 +80,9 @@ npx @mushi-mushi/cli init # scoped name
74
80
  ## Troubleshooting
75
81
 
76
82
  - **Wrong framework detected?** Pass `--framework <id>` explicitly. Valid IDs: `next, react, cra, remix, astro, solid, vue, nuxt, svelte, sveltekit, angular, expo, react-native, capacitor, express, fastify, hono, vanilla`.
77
- - **Running in a monorepo?** `cd` into the package you want Mushi in first, or pass `--cwd apps/web`.
83
+ - **Running in a monorepo?** `cd` into the package you want Mushi Mushi in first, or pass `--cwd apps/web`.
78
84
  - **`npx` cache serving an old version?** Run `npm cache clean --force` or `npx mushi-mushi@latest`.
79
- - **Non-interactive (CI)?** Pass all of `--yes`, `--project-id`, and `--api-key`. The wizard exits with a clear error otherwise.
85
+ - **Non-interactive shell (CI, or an AI agent's terminal)?** Pass `--yes`. The wizard then prints the sign-in URL (no browser opens) and picks the project by your app's name. On CI with no one to sign in, also pass `--project-id` and `--api-key`.
80
86
  - **Key pasted with quotes/whitespace?** The wizard strips them, then checks the format: the API key starts with `mushi_` or `mush_pk_` followed by 10 or more characters, and the project ID is a UUID (or `proj_` followed by 10 or more characters).
81
87
 
82
88
  ## Security
@@ -100,4 +106,4 @@ MIT
100
106
  <!-- mushi-readme-stats-footer -->
101
107
  ---
102
108
 
103
- <sub>Monorepo scale (July 2026): 77 edge functions · 527 SQL migrations · 13 outbound plugins · 11 inbound adapters · 19 pipeline agents. Canonical counts: <a href="https://github.com/kensaurus/mushi-mushi/blob/master/docs/stats.md">docs/stats.md</a> · <code>pnpm docs-stats</code></sub>
109
+ <sub>Monorepo scale (July 2026): 77 edge functions · 550 SQL migrations · 13 outbound plugins · 11 inbound adapters · 19 pipeline agents. Canonical counts: <a href="https://github.com/kensaurus/mushi-mushi/blob/master/docs/stats.md">docs/stats.md</a> · <code>pnpm docs-stats</code></sub>
package/dist/index.js CHANGED
@@ -10,7 +10,7 @@ import {
10
10
  assertNodeVersion,
11
11
  FLAGS_HELP
12
12
  } from "@mushi-mushi/cli/wizard-args";
13
- var VERSION = true ? "0.6.11" : "0.0.0-dev";
13
+ var VERSION = true ? "0.6.13" : "0.0.0-dev";
14
14
  var BIN = "create-mushi-mushi";
15
15
  var ISSUES_URL = "https://github.com/kensaurus/mushi-mushi/issues";
16
16
  var TEMPLATE_IDS = ["vue", "svelte", "node"];
package/package.json CHANGED
@@ -1,13 +1,13 @@
1
1
  {
2
2
  "name": "create-mushi-mushi",
3
- "version": "0.6.11",
3
+ "version": "0.6.13",
4
4
  "license": "MIT",
5
5
  "description": "Run `npm create mushi-mushi` to add the Mushi Mushi bug-reporting SDK to your existing project — the wizard auto-detects your framework (React, Vue, Svelte, Angular, React Native, Expo, Capacitor) and installs the right package.",
6
6
  "bin": {
7
7
  "create-mushi-mushi": "./dist/index.js"
8
8
  },
9
9
  "dependencies": {
10
- "@mushi-mushi/cli": "^0.35.0"
10
+ "@mushi-mushi/cli": "^0.36.0"
11
11
  },
12
12
  "devDependencies": {
13
13
  "@types/node": "^22.20.0",