mushi-mushi 1.35.0 → 1.37.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
@@ -4,294 +4,205 @@
4
4
 
5
5
  > **Your AI built it. Mushi Mushi makes it better.**
6
6
 
7
- A user says your app is broken. Mushi Mushi tells you why in plain English and hands the fix to Cursor, Claude Code or Lovable. No Sentry or monitoring needed.
7
+ One place to improve your AI-built app. Mushi Mushi finds what breaks, where people get stuck and what the code needs. Then it hands the fix to Lovable, Cursor or Claude Code, in plain English.
8
8
 
9
9
  ```bash
10
10
  npx mushi-mushi
11
11
  ```
12
12
 
13
- **[See a sample diagnosis →](https://kensaur.us/mushi-mushi/docs/demo/diagnosis)** No signup, nothing to install.
14
-
15
- <sub>`mushi-mushi` is the one package you install: the setup command and the SDK. It adds Mushi Mushi to the app you already have: React, Next.js, Vue, Nuxt, Svelte, SvelteKit, Angular, React Native, Expo, Capacitor, Node or plain JavaScript. [Launcher docs](https://kensaur.us/mushi-mushi/docs/sdks/launcher)</sub>
13
+ Run it in your app's folder. No terminal? [Use Lovable or Bolt instead](https://kensaur.us/mushi-mushi/docs/quickstart/lovable-bolt).
16
14
 
17
15
  [![npm](https://img.shields.io/npm/v/mushi-mushi?color=cb3837&label=mushi-mushi)](https://www.npmjs.com/package/mushi-mushi)
18
16
  [![npm downloads](https://img.shields.io/npm/dm/mushi-mushi?color=cb3837&label=downloads)](https://www.npmjs.com/package/mushi-mushi)
19
17
  [![License](https://img.shields.io/npm/l/mushi-mushi?color=blue)](https://github.com/kensaurus/mushi-mushi/blob/master/LICENSE)
20
18
  [![Provenance](https://img.shields.io/badge/npm-provenance-8957e5?logo=npm)](https://docs.npmjs.com/generating-provenance-statements)
21
- [![Socket](https://socket.dev/api/badge/npm/package/mushi-mushi)](https://socket.dev/npm/package/mushi-mushi)
22
- [![Node](https://img.shields.io/node/v/mushi-mushi?color=339933&logo=node.js)](https://nodejs.org)
23
19
 
24
20
  <a href="https://kensaur.us/mushi-mushi/docs/demo/diagnosis" title="See a sample diagnosis: no signup">
25
- <img src="https://raw.githubusercontent.com/kensaurus/mushi-mushi/master/docs/screenshots/report-detail-dark.png" alt="The Mushi Mushi console's report list: each user report with a plain-English summary, how serious it is and how sure Mushi Mushi is." width="860" />
21
+ <img src="https://raw.githubusercontent.com/kensaurus/mushi-mushi/master/docs/screenshots/sample-diagnosis.png" alt="A Mushi Mushi diagnosis of the report 'Pay now does nothing on my phone': the cause in plain English, why it broke, the two lines of code at fault, the suggested fix and the steps to reproduce." width="860" />
26
22
  </a>
27
23
 
28
- <sub>↑ reports in the Mushi Mushi console, each with a plain-English summary. Click for one full sample diagnosis you can read without signing up.</sub>
24
+ <sub>↑ What you get back when a user writes "Pay now does nothing on my phone". [Read the whole sample](https://kensaur.us/mushi-mushi/docs/demo/diagnosis), no signup.</sub>
29
25
 
30
26
  </div>
31
27
 
32
28
  ---
33
29
 
34
- ## What it does
30
+ ## What happens next
35
31
 
36
- Something in your app feels broken to a user: a button that doesn't react, a page that takes forever, a layout that folds on their phone. Often nothing crashed, so an error tracker stays quiet, and most people just leave.
32
+ 1. **You sign in through your browser.** The command opens a page. You approve it, and Mushi Mushi makes your free project and key. There is nothing to copy.
33
+ 2. **It installs Mushi Mushi and shows you a few lines of code.** Add them to your app (or ask your AI editor to). They show a small report button.
34
+ 3. **Your users tap the button when something is wrong.** They write one sentence. Mushi Mushi adds a screenshot and what the app was doing.
35
+ 4. **You get the cause in plain English, and a fix your AI editor can apply.** Open the report in the [console](https://kensaur.us/mushi-mushi/admin), or ask your editor for it.
37
36
 
38
- Mushi Mushi adds a small report button to your app (or shake-to-report on a phone). The user taps it and writes a note. Mushi Mushi saves a screenshot, the page, what they tapped, and the last console and network events. An AI explains the likely cause in plain English and groups repeat reports, so you see one row per real bug. Your editor gets a ready fix prompt. If you want, an agent opens a draft pull request, and you decide whether it merges.
37
+ The setup adds `mushi-mushi` to your `package.json` and writes your two settings to `.env.local`. It doesn't change your app's code (for a plain JavaScript app it offers to, and asks first). It warns you if `.env.local` is not in `.gitignore`.
39
38
 
40
- Who it's for and where each group starts: [who it's for](https://kensaur.us/mushi-mushi/docs/who-its-for).
39
+ ## What it does
41
40
 
42
- ---
41
+ | | What you get | What it needs |
42
+ | --- | --- | --- |
43
+ | **Fix what breaks** | A report button for your users, and a plain-English diagnosis of each bug with a fix prompt. Repeat reports of one bug become one row. | Nothing extra. |
44
+ | **Smooth user journeys** | A map of how people move through your app: where they leave, get lost or hit a dead end, each with a prompt for your AI editor. | The map from real visits needs nothing extra. A scan of your live site needs a [Firecrawl](https://www.firecrawl.dev) key. |
45
+ | **Clean up the code** | Known security holes in your packages, and [lint rules](#catch-what-ai-tools-leave-behind) that catch empty buttons and fake data. Changes come as pull requests you review. | GitHub connected, for the security check. |
43
46
 
44
- ## Install in one line
47
+ More detail on each: [what it does](https://kensaur.us/mushi-mushi/docs/what-it-does).
45
48
 
46
- ```bash
47
- npx mushi-mushi
48
- ```
49
+ ## Page by page
49
50
 
50
- The wizard signs you in through your browser, detects your framework, installs `mushi-mushi` (React Native and Capacitor get their native package), writes env vars to `.env.local` (with the right prefix for your framework, such as `NEXT_PUBLIC_`, `NUXT_PUBLIC_`, `VITE_`, `EXPO_PUBLIC_`, `REACT_APP_` or `PUBLIC_`, or bare `MUSHI_*` names for servers and bare React Native), prints the snippet to paste into your app, and offers to send a test report. It never overwrites an existing env var and never edits your source.
51
+ Nine pages of the console, recorded on the maker's own apps (glot.it, tsumagoi, Help Her Take Photo, yen-yen and more). Real data, nothing staged; other people's emails and keys are masked. Each page has a longer write-up in the [console guide](https://kensaur.us/mushi-mushi/docs/admin).
51
52
 
52
- ```tsx
53
- // After the wizard runs (React + Vite example, src/main.tsx):
54
- import { MushiProvider } from 'mushi-mushi/react'
53
+ ### Find out what broke
55
54
 
56
- createRoot(document.getElementById('root')!).render(
57
- <MushiProvider config={{
58
- projectId: import.meta.env.VITE_MUSHI_PROJECT_ID,
59
- apiKey: import.meta.env.VITE_MUSHI_API_KEY,
60
- }}>
61
- <App />
62
- </MushiProvider>
63
- )
64
- ```
55
+ **Home: the coffee-length check**
56
+ *Open it when* you just woke up and want to know whether your app survived the night.
57
+ Is the site up, what broke, which pull requests wait for you and what ships next, on one screen per app.
65
58
 
66
- Building in Lovable or Bolt, with no terminal? Paste one script tag through your prompt instead: [Mushi Mushi in Lovable or Bolt](https://kensaur.us/mushi-mushi/docs/quickstart/lovable-bolt).
59
+ <img src="https://raw.githubusercontent.com/kensaurus/mushi-mushi/master/docs/media/tour/dashboard.gif" alt="Home for one app: site status, what needs you, the release train, pages with bugs and who can reach the repo" width="800" />
67
60
 
68
- Your users now have a report button. Reports land in [the console](https://kensaur.us/mushi-mushi/admin), each with a plain-English diagnosis. The free plan covers one app and 100 diagnoses a month, with no card and no AI key of your own ([pricing](https://kensaur.us/mushi-mushi/docs/pricing)).
61
+ **Bugs: every report, already sorted**
62
+ *Open it when* a user wrote “it's broken” and you need to know how bad, how many and where.
63
+ Reports from your users, Sentry and your own checks land in one list. “Fix first” ranks open bugs by severity and by how many people they reached.
69
64
 
70
- Then connect your editor so it can read diagnoses, and ask it: *"Get the latest Mushi Mushi report and fix it."*
65
+ <img src="https://raw.githubusercontent.com/kensaurus/mushi-mushi/master/docs/media/tour/reports.gif" alt="The Bugs list across all apps: severity tiles, Fix first, and reports from users and Sentry with their status" width="800" />
71
66
 
72
- ```bash
73
- npx mushi-mushi setup --ide cursor # or: claude, continue, zed
74
- ```
67
+ **Bug detail: the cause in plain English**
68
+ *Open it when* you don't fully understand the code your AI wrote, and now you need to.
69
+ Each report gets a diagnosis: what the person saw, why it broke, the file at fault, and a fix prompt to paste into Claude Code, Cursor or any MCP client.
75
70
 
76
- For Cursor and Claude Code this writes the hosted server entry: the editor opens a browser sign-in on first use and no key is stored on disk. There is also a one-click button on the [connect page](https://kensaur.us/mushi-mushi/docs/connect).
71
+ <img src="https://raw.githubusercontent.com/kensaurus/mushi-mushi/master/docs/media/tour/report-detail.gif" alt="One bug report: its plain-English classification, the fix prompt for your coding agent, and the evidence behind it" width="800" />
77
72
 
78
- ---
73
+ ### Get it fixed
79
74
 
80
- ## What you get
75
+ **Fixes: what your agent tried**
76
+ *Open it when* you sent a few bugs to an agent and want to know which fixes are safe to merge.
77
+ Every attempt with its pull request, review verdict and CI. Ready ones sit at the top; the ones that stopped say why.
81
78
 
82
- - **A report button.** It renders in a Shadow DOM, so its CSS and yours never mix. Each report carries a screenshot the user can mark up or remove, the page, recent clicks, and the last console and network events. Reports wait offline and send when the connection is back.
83
- - **A diagnosis for each report.** A fast filter drops spam first. Then a second AI pass names the likely cause, how serious it is, how sure it is, and the part of the app involved, in plain English.
84
- - **One row per real bug.** Reports that mean the same thing are merged, even when users word them differently.
85
- - **The fix in your editor.** Over MCP, Cursor or Claude Code reads the diagnosis and a fix prompt with the smallest set of files. Your editor's own model writes the fix, so this part needs no extra AI key.
86
- - **Optional agent fixes.** An agent can open a draft pull request for you to review. On hosted Mushi Mushi the built-in fixer needs no key of your own; Cursor's agents need your Cursor key; or run fixes on your computer with the Mushi Mushi worker. With your own Anthropic key, a second AI reviews each one before it can merge.
79
+ <img src="https://raw.githubusercontent.com/kensaurus/mushi-mushi/master/docs/media/tour/fixes.gif" alt="Fixes: pull requests ready to merge with their review and CI state, then every attempt with its outcome" width="800" />
87
80
 
88
- ---
81
+ **Pipeline: where fixes get stuck**
82
+ *Open it when* bugs go in, but nothing seems to come out the other end.
83
+ Every stage from report to deploy, with stuck items counted and the action for each group (re-run CI, re-run the review, close the PR) right beside it.
89
84
 
90
- ## Who it's for
85
+ <img src="https://raw.githubusercontent.com/kensaurus/mushi-mushi/master/docs/media/tour/pipeline.gif" alt="Pipeline: stage cards from reported to deployed, then the stuck groups with an action button each" width="800" />
91
86
 
92
- - **You build apps with AI, mostly on your own.** You use Lovable, Bolt, Cursor or Claude Code, and you didn't write most of the code by hand. A user's "it's broken" becomes a plain-English cause and a fix prompt.
93
- - **You're a developer and you own your code.** You read the diffs and may run Sentry already. Reports and Sentry errors share one list, and agent pull requests get a second review before they merge.
94
- - **You run a team.** Reports come from the app, Sentry, store reviews and Slack. They share one list, each with a diagnosis, and can go on to Linear, Jira or GitHub Issues.
87
+ **CI runners: why the merge is still waiting**
88
+ *Open it when* a fix is done but its tests haven't run, or your Actions bill jumped.
89
+ Which jobs wait for which machine and for how long, what every machine is running, and how long each job usually takes. On a big screen it uses the whole width.
95
90
 
96
- Each group's pains and where to start: [who it's for](https://kensaur.us/mushi-mushi/docs/who-its-for).
91
+ <img src="https://raw.githubusercontent.com/kensaurus/mushi-mushi/master/docs/media/tour/ci.gif" alt="CI runners: what needs a look, the machines running now, jobs with time left, the queue and job times" width="800" />
97
92
 
98
- ---
93
+ ### Keep it from coming back
99
94
 
100
- ## What else it does
95
+ **Lessons: never the same bug a fourth time**
96
+ *Open it when* you have fixed the same kind of bug twice and you're tired of it.
97
+ Bugs that keep coming back become rules, and your editor reads them over MCP before it writes the next fix.
101
98
 
102
- Most bugs never get reported, so Mushi Mushi can also look for them and check the fixes. Each of these is off until you switch it on, and several need your own key:
99
+ <img src="https://raw.githubusercontent.com/kensaurus/mushi-mushi/master/docs/media/tour/lessons.gif" alt="Lessons: rules learned from repeated bugs, each with how often it was seen and where it came from" width="800" />
103
100
 
104
- - A first-time user test: an AI that has never seen your app tries one goal and files where it got stuck (needs the Mushi Mushi worker on your computer).
105
- - A second AI reviews every agent fix before it merges (needs your own Anthropic key).
106
- - A watch on your live site every hour, and an audit of every page once a week (need your own Firecrawl key).
107
- - A daily check of your lockfiles for known security holes (needs your GitHub repo connected).
108
- - Your GitHub Actions bill explained, and whether a red check was your code or the CI machine (needs your GitHub repo; reading the bill needs a token that can see billing).
109
- - Playbooks such as "make it accessible" that run in rounds of fix pull requests (need your own Cursor key or the worker).
110
- - Low-star App Store and Google Play reviews turned into bug reports.
111
- - Bug reports from your phone through Telegram, Slack or an iPhone shortcut.
101
+ **Checks: is my app OK?**
102
+ *Open it when* you want one answer before you ship.
103
+ Every automatic check in one grid (the full-stack audit, scheduled browser tests, triage grading and more), failing ones first.
112
104
 
113
- What each one solves and needs: [what else it does](https://kensaur.us/mushi-mushi/docs/what-it-does).
105
+ <img src="https://raw.githubusercontent.com/kensaurus/mushi-mushi/master/docs/media/tour/checks.gif" alt="Checks: every automatic check for one app in a grid, failing ones first" width="800" />
114
106
 
115
- ---
107
+ **Connect: Mushi Mushi inside your editor**
108
+ *Open it when* you'd rather ask your editor than open another dashboard.
109
+ Pick your AI client and run one command; your editor can then ask what broke and pull the fix context. The SDK, GitHub and upgrade PRs live here too.
116
110
 
117
- ## Why not just Sentry?
111
+ <img src="https://raw.githubusercontent.com/kensaurus/mushi-mushi/master/docs/media/tour/connect.gif" alt="Connect: pick an AI client, the one-command MCP setup, GitHub, SDK keys and the install snippet" width="800" />
118
112
 
119
- > **Sentry is built around what the code threw, with a User Feedback widget and
120
- > replay alongside. Mushi Mushi starts from what the user reported, ingests Sentry's
121
- > errors too, explains each one in plain English, and hands your agent a fix
122
- > prompt to start from. One queue, with or without Sentry.**
113
+ ## Ask your AI editor to do it
123
114
 
124
- Mushi Mushi catches the bugs that never throw: a button that looks clickable but isn't, a 12-second page load, a layout broken on one phone. It works without Sentry. If you run Sentry, point its alert webhook at Mushi Mushi and the errors land in the same list; merging a Mushi Mushi fix resolves the Sentry issue. Details: [Sentry vs Mushi Mushi](https://kensaur.us/mushi-mushi/docs/compare/sentry-vs-mushi).
115
+ Paste this into Cursor, Claude Code or any AI editor that can run commands:
125
116
 
126
- ---
127
-
128
- ## Integrates with
117
+ ```text
118
+ Add Mushi Mushi to this app. In the project folder, run `npx mushi-mushi --yes`.
119
+ It prints a sign-in link: show it to me and wait while I approve it in my
120
+ browser. Then add the code it prints to the file it names, and tell me which
121
+ file you changed.
122
+ ```
129
123
 
130
- Nothing needs to be ripped out. Bugs come in from the tools you already run, and fixes and status go back out to them.
124
+ Then connect your editor so it can read reports: `npx mushi-mushi setup --ide cursor` (or `claude`). Ask it: *"Get the latest Mushi Mushi report and fix it."* There is also a one-click button on the [connect page](https://kensaur.us/mushi-mushi/docs/connect).
131
125
 
132
- **13 outbound plugins** send reports and status to: Slack, Discord, Microsoft Teams, Linear, Jira, GitHub Issues, PagerDuty, Sentry, Bugsnag, Rollbar, Crashlytics, Zapier and Cursor Cloud agents.
126
+ ## Set it up by hand
133
127
 
134
- **11 inbound adapters** bring alerts from your monitoring into the same list as user reports: Sentry, Datadog, Bugsnag, Rollbar, Firebase Crashlytics, New Relic, Honeycomb, Grafana Loki, AWS CloudWatch, Opsgenie and Firebase Analytics. They ship in [`@mushi-mushi/adapters`](https://www.npmjs.com/package/@mushi-mushi/adapters) for any Node webhook server.
128
+ `npm install mushi-mushi`, then add the import for your framework. Your project ID and key are on the console's **Set up** page.
135
129
 
136
- Editors connect over MCP: Cursor, Claude Code, VS Code, Windsurf, Cline, Claude Desktop, Zed and any other MCP client ([`@mushi-mushi/mcp`](https://www.npmjs.com/package/@mushi-mushi/mcp)).
130
+ | Your app | Install | Import from |
131
+ | --- | --- | --- |
132
+ | React, Next.js, Remix | `mushi-mushi` | `mushi-mushi/react` |
133
+ | Vue, Nuxt | `mushi-mushi` | `mushi-mushi/vue` |
134
+ | Svelte, SvelteKit | `mushi-mushi` | `mushi-mushi/svelte` |
135
+ | Angular 17+ | `mushi-mushi` | `mushi-mushi/angular` |
136
+ | Astro, Solid, plain JavaScript | `mushi-mushi` | `mushi-mushi` |
137
+ | Node (Express, Fastify, Hono) | `mushi-mushi` | `mushi-mushi/node` |
138
+ | React Native, Expo | `@mushi-mushi/react-native` | `@mushi-mushi/react-native` |
139
+ | Capacitor, Ionic | `@mushi-mushi/capacitor` | `@mushi-mushi/capacitor` |
137
140
 
138
- ---
141
+ Step-by-step for each one: [quickstarts](https://kensaur.us/mushi-mushi/docs/quickstart). `mushi-mushi` never installs a framework you don't use.
139
142
 
140
- ## Framework support
143
+ ## Start a new app with it
141
144
 
142
- | Framework | Install | Import from |
143
- | ------------------------------- | ----------------------- | --------------------------------------------- |
144
- | React, Next.js, Create React App, Remix | `mushi-mushi` | `mushi-mushi/react` |
145
- | Vue 3 / Nuxt | `mushi-mushi` | `mushi-mushi/vue` |
146
- | Svelte / SvelteKit | `mushi-mushi` | `mushi-mushi/svelte` |
147
- | Angular 17+ | `mushi-mushi` | `mushi-mushi/angular` |
148
- | Astro, Solid, plain JavaScript | `mushi-mushi` | `mushi-mushi` |
149
- | Node (Express / Fastify / Hono) | `mushi-mushi` | `mushi-mushi/node` (server-side errors), `mushi-mushi/node/express`, `/fastify`, `/hono` |
150
- | React Native / Expo | `@mushi-mushi/react-native` | `@mushi-mushi/react-native` (Metro) |
151
- | Capacitor / Ionic | `@mushi-mushi/capacitor` | `@mushi-mushi/capacitor` (native code registers as a top-level dependency) |
152
- | Flutter / Dart | Git dependency, a preview, not on pub.dev yet ([how](https://github.com/kensaurus/mushi-mushi/tree/master/packages/flutter#install)) |
153
- | iOS native (Swift) | SwiftPM from the repo, a preview, not tagged yet ([how](https://github.com/kensaurus/mushi-mushi/tree/master/packages/ios#install)) |
154
- | Android native (Kotlin/Java) | Build from source, a preview, not on Maven Central yet ([how](https://github.com/kensaurus/mushi-mushi/tree/master/packages/android#install)) |
145
+ To begin from nothing, make a small starter app with Mushi Mushi already in it:
155
146
 
156
- Prefer to skip the wizard? `npm install mushi-mushi` and wire it up by hand. Your framework (React, Vue, Svelte, Angular, Express…) is an optional peer: `mushi-mushi` never installs one you don't use. More entry points: `mushi-mushi/headless`, `mushi-mushi/i18n`, `mushi-mushi/otel`, `mushi-mushi/test-utils` and `mushi-mushi/core` (types).
147
+ ```bash
148
+ npx mushi-mushi --template vue my-app # or: svelte, node
149
+ ```
157
150
 
158
- Already on `@mushi-mushi/react`, `@mushi-mushi/web` or another `@mushi-mushi/*` SDK? It keeps working and keeps getting updates. `mushi-mushi` ships the same code; switch when you like by changing the import path.
151
+ ## Catch what AI tools leave behind
159
152
 
160
- ---
153
+ `mushi-mushi/eslint` adds lint rules for two things AI tools often ship: buttons whose click does nothing, and placeholder data (John Doe, lorem ipsum) left in real pages.
161
154
 
162
- ## How the pipeline works
155
+ ```js
156
+ // eslint.config.js
157
+ import mushi from 'mushi-mushi/eslint'
163
158
 
164
- ```
165
- User taps the report button ──▶ screenshot + page + clicks + console + network
166
- │
167
- ▼
168
- Fast filter ──▶ drops spam and empty reports
169
- │
170
- ▼
171
- Diagnosis ──▶ likely cause, how serious, which part of the app, in plain English
172
- │
173
- ▼
174
- Merge repeats ──▶ reports that mean the same thing become one row
175
- │
176
- ▼
177
- Your editor (MCP) ──▶ reads the diagnosis and the fix prompt
178
- │
179
- ▼
180
- Optional agent ──▶ opens a draft pull request; a second AI reviews it; you merge
159
+ export default [mushi.configs.recommended]
181
160
  ```
182
161
 
183
- The full picture: [how it works](https://github.com/kensaurus/mushi-mushi#how-it-works) and [the architecture](https://kensaur.us/mushi-mushi/docs/concepts/architecture).
162
+ [The rules, with examples](https://kensaur.us/mushi-mushi/docs/sdks/eslint-plugin).
184
163
 
185
- ---
164
+ ## Free to start
186
165
 
187
- ## Other ways to run the wizard
166
+ The free plan covers one app and 100 diagnoses a month, with no card and no AI key of your own. Repeat reports of one bug count once. [Pricing](https://kensaur.us/mushi-mushi/docs/pricing).
188
167
 
189
- ```bash
190
- npx mushi-mushi # this package
191
- npm create mushi-mushi # the same wizard
192
- npx @mushi-mushi/cli init # the same wizard, from the full CLI
193
- ```
168
+ You don't need Sentry or any monitoring tool. If you have one, Mushi Mushi can read its errors too.
194
169
 
195
170
  <details>
196
- <summary><b>Flags for CI, monorepos, and self-hosted</b></summary>
171
+ <summary><b>For developers: flags, CI, self-hosting and the full CLI</b></summary>
197
172
 
198
173
  ```bash
199
- npx mushi-mushi --framework next # skip framework detection
200
- npx mushi-mushi --project-id <project-uuid> --api-key mushi_xxx
201
- npx mushi-mushi --skip-install # print the install command, don't run it
202
- npx mushi-mushi --skip-test-report # don't offer to send a test report
203
- npx mushi-mushi --audit # health-check an existing install instead
204
- npx mushi-mushi --cwd apps/web # run inside a monorepo sub-package
174
+ npx mushi-mushi --framework next # skip framework detection
175
+ npx mushi-mushi --cwd apps/web # run inside a monorepo package
176
+ npx mushi-mushi --skip-install # print the install command instead
177
+ npx mushi-mushi --audit # health-check an existing install
205
178
  npx mushi-mushi --endpoint https://mushi.your-company.com # self-hosted
206
- npx mushi-mushi -y # take the defaults (needed in CI and AI-agent shells)
207
- npx mushi-mushi -v # print version
179
+ npx mushi-mushi -y --project-id <uuid> --api-key mushi_xxx # CI, no prompts
208
180
  npx mushi-mushi --help
209
181
  ```
210
182
 
211
- </details>
183
+ Any other command goes to the full CLI, so `npx mushi-mushi reports list` works. It needs Node 20.19 or newer.
212
184
 
213
- <details>
214
- <summary><b>Troubleshooting</b></summary>
185
+ - [Every flag, troubleshooting and security notes](https://kensaur.us/mushi-mushi/docs/sdks/launcher)
186
+ - [The full CLI](https://kensaur.us/mushi-mushi/docs/sdks/cli) (`npm i -g @mushi-mushi/cli` for a `mushi` command)
187
+ - [Integrations](https://kensaur.us/mushi-mushi/docs/plugins): Sentry, Slack, Linear, Jira, GitHub Issues and more
188
+ - [Self-hosting](https://kensaur.us/mushi-mushi/docs/self-hosting)
189
+ - More entry points: `mushi-mushi/headless`, `/i18n`, `/otel`, `/test-utils`, `/core` (types)
215
190
 
216
- - **Wrong framework detected?** Pass `--framework <id>`. Valid values: `next, react, cra, remix, astro, solid, vue, nuxt, svelte, sveltekit, angular, expo, react-native, capacitor, express, fastify, hono, vanilla`.
217
- - **Monorepo?** `cd` into the package first, or pass `--cwd apps/web`.
218
- - **Stale `npx` cache?** `npm cache clean --force` or `npx mushi-mushi@latest`.
219
- - **Non-interactive terminal (CI)?** Pass `--yes --project-id <project-uuid> --api-key mushi_xxx`. The wizard exits with a clear error instead of hanging.
220
- - **Node version too old?** Requires Node 20.19 or newer. Upgrade at [nodejs.org](https://nodejs.org/).
221
- - **Full stack traces on error?** `DEBUG=mushi npx mushi-mushi`.
191
+ Already on `@mushi-mushi/react`, `@mushi-mushi/web` or another `@mushi-mushi/*` package? It keeps working and keeps getting updates. `mushi-mushi` ships the same code, so you can switch by changing the import path.
222
192
 
223
193
  </details>
224
194
 
225
- <details>
226
- <summary><b>Security notes</b></summary>
227
-
228
- - Credentials passed via `--api-key` are visible to other users on the same machine via `ps -ef`. Use the interactive prompt on shared hosts.
229
- - `~/.config/mushi/config.json` (the credentials cache) is written with mode `0o600` on Unix; legacy `~/.mushirc` auto-migrates on first load.
230
- - The wizard strips CR/LF/NUL from pasted secrets to prevent `.env` injection.
231
- - Prompts validate format: the project ID is a UUID (or `proj_` + 10 or more characters), and the API key starts with `mushi_` or `mush_pk_` followed by 10 or more characters.
232
- - This release ships with [npm provenance](https://docs.npmjs.com/generating-provenance-statements). Verify it with `npm audit signatures`.
233
-
234
- </details>
235
-
236
- <details>
237
- <summary><b>Supply-chain & verification (Socket, Bundlephobia, Snyk)</b></summary>
238
-
239
- `mushi-mushi` is a CLI launcher. It spawns one `npm install` and appends a small multi-line `MUSHI_*` env block to `.env.local` (or `.env` when `.env.local` does not exist). Here's what each scanner shows and why:
240
-
241
- | Scanner | What it shows | What it actually means |
242
- | ------------------ | --------------------------------------------- | -------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- |
243
- | **npm provenance** | Signed by `kensaurus/mushi-mushi @ master` | Cryptographic Sigstore attestation — `npm audit signatures` will verify this build came from this exact commit on this exact CI workflow. |
244
- | **Socket.dev** | Score + a few low-signal alerts | Alerts are expected and benign: `child_process` (used to invoke `npm install` and to forward other commands to `@mushi-mushi/cli`), `process.env` (read `DEBUG`, `npm_config_*`), URL strings (printed in help text). The launcher is `src/index.ts`, about 120 lines; the wizard it runs is `src/init.ts` in `@mushi-mushi/cli`. |
245
- | **Bundlephobia** | EntryPointError | **Expected.** This is a CLI (`bin` only — no `main`/`module`/`exports`), so there is no importable bundle to measure. Bundlephobia only works for libraries you `import`. |
246
- | **Snyk Advisor** | Health score (lower right after publish) | Snyk's crawler often lags by 1–2 weeks for new public packages — score corrects itself once it picks up the actual `package.json` (repository links, downloads, repo activity). |
247
-
248
- If something looks off to you, [open an issue](https://github.com/kensaurus/mushi-mushi/issues). The source is 100% public and the CI build is reproducible.
249
-
250
- </details>
251
-
252
- ---
253
-
254
- ## Power-user CLI
255
-
256
- `mushi-mushi` runs the setup wizard and forwards any other command to `@mushi-mushi/cli` (`npx mushi-mushi reports list` works). For daily use, install the full CLI to get a `mushi` command:
257
-
258
- ```bash
259
- npm i -g @mushi-mushi/cli
260
- mushi reports list
261
- mushi reports show <id>
262
- mushi reports triage <id> --status triaged --severity high
263
- mushi deploy check # post-deploy smoke check
264
- mushi doctor # what is wired up, and the next step when it isn't
265
- ```
266
-
267
- All commands: [`@mushi-mushi/cli`](https://www.npmjs.com/package/@mushi-mushi/cli).
268
-
269
- **Pre-release checks in CI (early).** A GitHub Action runs Mushi Mushi's checks on a pull request, such as API calls that match no endpoint or a status the app claims but never sets. These checks sit behind the `inventory_v2` plan flag. The dead-handler and mock-leak checks also need an ESLint JSON report (`eslint-report`); see the [action's README](https://github.com/kensaurus/mushi-mushi/tree/master/packages/mcp-ci).
270
-
271
- ```yaml
272
- # .github/workflows/mushi-gates.yml
273
- - uses: kensaurus/mushi-mushi/packages/mcp-ci@master
274
- with:
275
- api-key: ${{ secrets.MUSHI_API_KEY }}
276
- project-id: ${{ secrets.MUSHI_PROJECT_ID }}
277
- command: gates # also: propose · discover-api · discovery-status · auth-bootstrap
278
- ```
279
-
280
- Prefer to work from your editor instead of a terminal? `npx mushi-mushi setup --ide cursor` (or `claude`, `continue`, `zed`) connects [`@mushi-mushi/mcp`](https://www.npmjs.com/package/@mushi-mushi/mcp), and the same reads and actions become tools your editor can call. Its README covers a manual config for any other MCP client.
281
-
282
- ---
283
-
284
195
  ## Links
285
196
 
286
- - **[Sample diagnosis](https://kensaur.us/mushi-mushi/docs/demo/diagnosis)**: one bug from report to fix prompt, no signup
287
- - **[Live numbers](https://kensaur.us/mushi-mushi/docs/proof)**: what Mushi Mushi found and fixed on the maker's own apps, with people's reports counted apart from its own checks
288
- - **[GitHub](https://github.com/kensaurus/mushi-mushi)**: source, architecture, self-hosting
289
- - **[Docs](https://kensaur.us/mushi-mushi/docs/)**: quickstarts, concepts, API reference
290
- - **[Report a bug](https://github.com/kensaurus/mushi-mushi/issues)** in Mushi Mushi itself
197
+ - [Docs](https://kensaur.us/mushi-mushi/docs/): quickstarts and guides
198
+ - [Sample diagnosis](https://kensaur.us/mushi-mushi/docs/demo/diagnosis): one bug from report to fix, no signup
199
+ - [Live numbers](https://kensaur.us/mushi-mushi/docs/proof): what Mushi Mushi found and fixed on the maker's own apps
200
+ - [GitHub](https://github.com/kensaurus/mushi-mushi): source code
201
+ - [Report a bug](https://github.com/kensaurus/mushi-mushi/issues) in Mushi Mushi itself
291
202
 
292
203
  ## License
293
204
 
294
- MIT © [Kenji Sakuramoto](https://github.com/kensaurus). Backend packages (`@mushi-mushi/server`, `agents`, `verify`) are [AGPLv3](https://github.com/kensaurus/mushi-mushi/blob/master/packages/server/LICENSE): if you offer a modified server as a service, publish your changes or get a [commercial license](https://github.com/kensaurus/mushi-mushi/blob/master/COMMERCIAL-LICENSE.md).
205
+ MIT © [Kenji Sakuramoto](https://github.com/kensaurus). The server packages are [AGPLv3](https://github.com/kensaurus/mushi-mushi/blob/master/packages/server/LICENSE).
295
206
 
296
207
  ## More apps from the same maker
297
208
 
@@ -305,12 +216,7 @@ MIT © [Kenji Sakuramoto](https://github.com/kensaurus). Backend packages (`@mus
305
216
  | <img src="https://solo-boss.kensaur.us/apple-touch-icon.png" width="28" height="28" alt=""> | [一人社長 Solo Boss](https://solo-boss.kensaur.us/?utm_source=github&utm_medium=readme) | Bookkeeping and tax-filing co-pilot for one-person companies in Japan |
306
217
  | <img src="https://tsumagoi.kensaur.us/apple-touch-icon.png" width="28" height="28" alt=""> | [Tsumagoi Work&Camp 嬬恋牧場](https://tsumagoi.kensaur.us/?utm_source=github&utm_medium=readme) | Coworking camp at 1,444 m — [Instagram](https://www.instagram.com/tsumagoicamp/) · [Facebook](https://www.facebook.com/profile.php?id=61592113053042) · [Maps](https://maps.app.goo.gl/JCNnTfsdQVHCS1FA7) |
307
218
  | <img src="https://github.com/kensaurus.png" width="28" height="28" alt=""> | [kenji skills](https://github.com/kensaurus/skills) | Agent skills and slash commands for Claude Code, Cursor, Codex, and Gemini |
219
+ | <img src="https://raw.githubusercontent.com/kensaurus/lazycow-studio/main/server/brand/icon-192.png" width="28" height="28" alt=""> | [Lazycow Studio](https://github.com/kensaurus/lazycow-studio) | Turns your own footage into reels and books the posts; you only approve. Open source — [npm `lazycow`](https://www.npmjs.com/package/lazycow) · [Connect your AI agent (MCP)](https://github.com/kensaurus/lazycow-studio/blob/main/docs/mcp.md) |
308
220
  | <img src="https://kensaur.us/favicon.svg" width="28" height="28" alt=""> | [kensaur.us](https://kensaur.us/?view=portfolio&utm_source=github&utm_medium=readme) | All apps from the same maker |
309
221
 
310
222
  All apps live under [kensaur.us](https://kensaur.us).
311
-
312
-
313
- <!-- mushi-readme-stats-footer -->
314
- ---
315
-
316
- <sub>Monorepo scale (October 2026): 77 edge functions · 567 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/bin.js CHANGED
@@ -1,85 +1,16 @@
1
1
  #!/usr/bin/env node
2
2
 
3
3
  // src/bin.ts
4
- import { spawnSync } from "child_process";
5
- import { fileURLToPath } from "url";
6
- import { runInit } from "@mushi-mushi/cli/init";
7
- import {
8
- parseArgs,
9
- assertNodeVersion,
10
- FLAGS_HELP
11
- } from "@mushi-mushi/cli/wizard-args";
12
- var VERSION = true ? "1.35.0" : "0.0.0-dev";
13
- var BIN = "mushi-mushi";
14
- var ISSUES_URL = "https://github.com/kensaurus/mushi-mushi/issues";
15
- var HELP = `mushi-mushi \u2014 bug-reporting SDK launcher
4
+ import { runWizardBin } from "@mushi-mushi/cli/wizard-bin";
5
+ var VERSION = true ? "1.37.0" : "0.0.0-dev";
6
+ var USAGE = `mushi-mushi \u2014 bug-reporting SDK launcher
16
7
 
17
8
  Usage:
18
- npx mushi-mushi run the setup wizard (interactive)
19
- npx mushi-mushi --yes same, taking the defaults (required in CI and AI-agent shells)
20
- npx mushi-mushi init same, with optional flags
9
+ npx mushi-mushi run the setup wizard (interactive)
10
+ npx mushi-mushi --yes same, taking the defaults (required in CI and AI-agent shells)
11
+ npx mushi-mushi init same, with optional flags
12
+ npx mushi-mushi --template vue my-app scaffold a starter app (vue | svelte | node)
21
13
 
22
14
  Other commands (setup, status, reports, deploy, test, login, config, ...)
23
- are forwarded to @mushi-mushi/cli, e.g. \`npx mushi-mushi setup --ide cursor\`.
24
-
25
- ${FLAGS_HELP}`;
26
- function forwardToCli(argv) {
27
- const cliBin = fileURLToPath(import.meta.resolve("@mushi-mushi/cli"));
28
- const result = spawnSync(process.execPath, [cliBin, ...argv], { stdio: "inherit" });
29
- if (result.error) {
30
- process.stderr.write(`${BIN}: could not start @mushi-mushi/cli (${result.error.message})
31
- `);
32
- } else if (result.signal) {
33
- process.stderr.write(`${BIN}: @mushi-mushi/cli was stopped by ${result.signal}
34
- `);
35
- }
36
- process.exit(result.status ?? 1);
37
- }
38
- async function main() {
39
- assertNodeVersion(BIN);
40
- const rawArgs = process.argv.slice(2);
41
- const first = rawArgs[0];
42
- if (first !== void 0 && first !== "init" && !first.startsWith("-")) {
43
- forwardToCli(rawArgs);
44
- }
45
- let parsed;
46
- try {
47
- parsed = parseArgs(rawArgs);
48
- } catch (err) {
49
- process.stderr.write(`${err instanceof Error ? err.message : String(err)}
50
- `);
51
- process.exit(1);
52
- }
53
- if (parsed.showHelp) {
54
- process.stdout.write(HELP + "\n");
55
- return;
56
- }
57
- if (parsed.showVersion) {
58
- process.stdout.write(VERSION + "\n");
59
- return;
60
- }
61
- await runInit({
62
- projectId: parsed.projectId,
63
- apiKey: parsed.apiKey,
64
- framework: parsed.framework,
65
- skipInstall: parsed.skipInstall,
66
- yes: parsed.yes,
67
- cwd: parsed.cwd,
68
- endpoint: parsed.endpoint,
69
- sendTestReport: parsed.skipTestReport ? false : void 0,
70
- audit: parsed.audit
71
- });
72
- }
73
- main().catch((err) => {
74
- const message = err instanceof Error ? err.message : String(err);
75
- process.stderr.write(`
76
- ${BIN}: ${message}
77
- `);
78
- if (process.env.DEBUG?.includes("mushi") && err instanceof Error && err.stack) {
79
- process.stderr.write(err.stack + "\n");
80
- }
81
- process.stderr.write(`
82
- If this is a bug, please report it at ${ISSUES_URL}
83
- `);
84
- process.exit(1);
85
- });
15
+ are forwarded to @mushi-mushi/cli, e.g. \`npx mushi-mushi setup --ide cursor\`.`;
16
+ void runWizardBin(process.argv.slice(2), { bin: "mushi-mushi", version: VERSION, usage: USAGE });