mushi-mushi 1.35.0 → 1.36.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,141 @@
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
35
-
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.
37
-
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.
39
-
40
- Who it's for and where each group starts: [who it's for](https://kensaur.us/mushi-mushi/docs/who-its-for).
41
-
42
- ---
43
-
44
- ## Install in one line
30
+ ## What happens next
45
31
 
46
- ```bash
47
- npx mushi-mushi
48
- ```
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.
49
36
 
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.
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`.
51
38
 
52
- ```tsx
53
- // After the wizard runs (React + Vite example, src/main.tsx):
54
- import { MushiProvider } from 'mushi-mushi/react'
39
+ ## What it does
55
40
 
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
- ```
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. |
65
46
 
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).
47
+ More detail on each: [what it does](https://kensaur.us/mushi-mushi/docs/what-it-does).
67
48
 
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)).
49
+ ## Ask your AI editor to do it
69
50
 
70
- Then connect your editor so it can read diagnoses, and ask it: *"Get the latest Mushi Mushi report and fix it."*
51
+ Paste this into Cursor, Claude Code or any AI editor that can run commands:
71
52
 
72
- ```bash
73
- npx mushi-mushi setup --ide cursor # or: claude, continue, zed
53
+ ```text
54
+ Add Mushi Mushi to this app. In the project folder, run `npx mushi-mushi --yes`.
55
+ It prints a sign-in link: show it to me and wait while I approve it in my
56
+ browser. Then add the code it prints to the file it names, and tell me which
57
+ file you changed.
74
58
  ```
75
59
 
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).
77
-
78
- ---
79
-
80
- ## What you get
81
-
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.
87
-
88
- ---
60
+ 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).
89
61
 
90
- ## Who it's for
62
+ ## Set it up by hand
91
63
 
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.
64
+ `npm install mushi-mushi`, then add the import for your framework. Your project ID and key are on the console's **Set up** page.
95
65
 
96
- Each group's pains and where to start: [who it's for](https://kensaur.us/mushi-mushi/docs/who-its-for).
66
+ | Your app | Install | Import from |
67
+ | --- | --- | --- |
68
+ | React, Next.js, Remix | `mushi-mushi` | `mushi-mushi/react` |
69
+ | Vue, Nuxt | `mushi-mushi` | `mushi-mushi/vue` |
70
+ | Svelte, SvelteKit | `mushi-mushi` | `mushi-mushi/svelte` |
71
+ | Angular 17+ | `mushi-mushi` | `mushi-mushi/angular` |
72
+ | Astro, Solid, plain JavaScript | `mushi-mushi` | `mushi-mushi` |
73
+ | Node (Express, Fastify, Hono) | `mushi-mushi` | `mushi-mushi/node` |
74
+ | React Native, Expo | `@mushi-mushi/react-native` | `@mushi-mushi/react-native` |
75
+ | Capacitor, Ionic | `@mushi-mushi/capacitor` | `@mushi-mushi/capacitor` |
97
76
 
98
- ---
99
-
100
- ## What else it does
101
-
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:
103
-
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.
112
-
113
- What each one solves and needs: [what else it does](https://kensaur.us/mushi-mushi/docs/what-it-does).
114
-
115
- ---
116
-
117
- ## Why not just Sentry?
118
-
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.**
123
-
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).
125
-
126
- ---
127
-
128
- ## Integrates with
129
-
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.
131
-
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.
133
-
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.
135
-
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)).
137
-
138
- ---
77
+ 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
78
 
140
- ## Framework support
79
+ ## Start a new app with it
141
80
 
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)) |
81
+ To begin from nothing, make a small starter app with Mushi Mushi already in it:
155
82
 
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).
83
+ ```bash
84
+ npx mushi-mushi --template vue my-app # or: svelte, node
85
+ ```
157
86
 
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.
87
+ ## Catch what AI tools leave behind
159
88
 
160
- ---
89
+ `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
90
 
162
- ## How the pipeline works
91
+ ```js
92
+ // eslint.config.js
93
+ import mushi from 'mushi-mushi/eslint'
163
94
 
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
95
+ export default [mushi.configs.recommended]
181
96
  ```
182
97
 
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).
98
+ [The rules, with examples](https://kensaur.us/mushi-mushi/docs/sdks/eslint-plugin).
184
99
 
185
- ---
100
+ ## Free to start
186
101
 
187
- ## Other ways to run the wizard
102
+ 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
103
 
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
- ```
104
+ You don't need Sentry or any monitoring tool. If you have one, Mushi Mushi can read its errors too.
194
105
 
195
106
  <details>
196
- <summary><b>Flags for CI, monorepos, and self-hosted</b></summary>
107
+ <summary><b>For developers: flags, CI, self-hosting and the full CLI</b></summary>
197
108
 
198
109
  ```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
110
+ npx mushi-mushi --framework next # skip framework detection
111
+ npx mushi-mushi --cwd apps/web # run inside a monorepo package
112
+ npx mushi-mushi --skip-install # print the install command instead
113
+ npx mushi-mushi --audit # health-check an existing install
205
114
  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
115
+ npx mushi-mushi -y --project-id <uuid> --api-key mushi_xxx # CI, no prompts
208
116
  npx mushi-mushi --help
209
117
  ```
210
118
 
211
- </details>
212
-
213
- <details>
214
- <summary><b>Troubleshooting</b></summary>
215
-
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`.
119
+ Any other command goes to the full CLI, so `npx mushi-mushi reports list` works. It needs Node 20.19 or newer.
222
120
 
223
- </details>
121
+ - [Every flag, troubleshooting and security notes](https://kensaur.us/mushi-mushi/docs/sdks/launcher)
122
+ - [The full CLI](https://kensaur.us/mushi-mushi/docs/sdks/cli) (`npm i -g @mushi-mushi/cli` for a `mushi` command)
123
+ - [Integrations](https://kensaur.us/mushi-mushi/docs/plugins): Sentry, Slack, Linear, Jira, GitHub Issues and more
124
+ - [Self-hosting](https://kensaur.us/mushi-mushi/docs/self-hosting)
125
+ - More entry points: `mushi-mushi/headless`, `/i18n`, `/otel`, `/test-utils`, `/core` (types)
224
126
 
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`.
127
+ 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.
233
128
 
234
129
  </details>
235
130
 
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
131
  ## Links
285
132
 
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
133
+ - [Docs](https://kensaur.us/mushi-mushi/docs/): quickstarts and guides
134
+ - [Sample diagnosis](https://kensaur.us/mushi-mushi/docs/demo/diagnosis): one bug from report to fix, no signup
135
+ - [Live numbers](https://kensaur.us/mushi-mushi/docs/proof): what Mushi Mushi found and fixed on the maker's own apps
136
+ - [GitHub](https://github.com/kensaurus/mushi-mushi): source code
137
+ - [Report a bug](https://github.com/kensaurus/mushi-mushi/issues) in Mushi Mushi itself
291
138
 
292
139
  ## License
293
140
 
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).
141
+ MIT © [Kenji Sakuramoto](https://github.com/kensaurus). The server packages are [AGPLv3](https://github.com/kensaurus/mushi-mushi/blob/master/packages/server/LICENSE).
295
142
 
296
143
  ## More apps from the same maker
297
144
 
@@ -308,9 +155,3 @@ MIT © [Kenji Sakuramoto](https://github.com/kensaurus). Backend packages (`@mus
308
155
  | <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
156
 
310
157
  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.36.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 });