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 +115 -209
- package/dist/bin.js +9 -78
- package/dist/eslint.cjs +1767 -0
- package/dist/eslint.d.cts +76 -0
- package/dist/eslint.d.ts +76 -0
- package/dist/eslint.js +1740 -0
- package/package.json +23 -5
package/README.md
CHANGED
|
@@ -4,294 +4,205 @@
|
|
|
4
4
|
|
|
5
5
|
> **Your AI built it. Mushi Mushi makes it better.**
|
|
6
6
|
|
|
7
|
-
|
|
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
|
-
|
|
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
|
[](https://www.npmjs.com/package/mushi-mushi)
|
|
18
16
|
[](https://www.npmjs.com/package/mushi-mushi)
|
|
19
17
|
[](https://github.com/kensaurus/mushi-mushi/blob/master/LICENSE)
|
|
20
18
|
[](https://docs.npmjs.com/generating-provenance-statements)
|
|
21
|
-
[](https://socket.dev/npm/package/mushi-mushi)
|
|
22
|
-
[](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/
|
|
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>↑
|
|
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
|
|
30
|
+
## What happens next
|
|
35
31
|
|
|
36
|
-
|
|
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
|
-
|
|
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
|
-
|
|
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
|
-
|
|
47
|
+
More detail on each: [what it does](https://kensaur.us/mushi-mushi/docs/what-it-does).
|
|
45
48
|
|
|
46
|
-
|
|
47
|
-
npx mushi-mushi
|
|
48
|
-
```
|
|
49
|
+
## Page by page
|
|
49
50
|
|
|
50
|
-
|
|
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
|
-
|
|
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
|
-
|
|
57
|
-
|
|
58
|
-
|
|
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
|
-
|
|
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
|
-
|
|
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
|
-
|
|
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
|
-
|
|
73
|
-
|
|
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
|
-
|
|
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
|
-
|
|
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
|
-
-
|
|
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
|
-
|
|
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
|
-
|
|
93
|
-
|
|
94
|
-
|
|
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
|
-
|
|
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
|
-
|
|
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
|
-
|
|
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
|
-
|
|
105
|
-
|
|
106
|
-
|
|
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
|
-
|
|
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
|
-
|
|
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
|
-
|
|
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
|
-
|
|
115
|
+
Paste this into Cursor, Claude Code or any AI editor that can run commands:
|
|
125
116
|
|
|
126
|
-
|
|
127
|
-
|
|
128
|
-
|
|
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
|
-
|
|
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
|
-
|
|
126
|
+
## Set it up by hand
|
|
133
127
|
|
|
134
|
-
|
|
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
|
-
|
|
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
|
-
##
|
|
143
|
+
## Start a new app with it
|
|
141
144
|
|
|
142
|
-
|
|
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
|
-
|
|
147
|
+
```bash
|
|
148
|
+
npx mushi-mushi --template vue my-app # or: svelte, node
|
|
149
|
+
```
|
|
157
150
|
|
|
158
|
-
|
|
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
|
-
|
|
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
|
|
162
|
+
[The rules, with examples](https://kensaur.us/mushi-mushi/docs/sdks/eslint-plugin).
|
|
184
163
|
|
|
185
|
-
|
|
164
|
+
## Free to start
|
|
186
165
|
|
|
187
|
-
|
|
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
|
-
|
|
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>
|
|
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
|
|
200
|
-
npx mushi-mushi --
|
|
201
|
-
npx mushi-mushi --skip-install
|
|
202
|
-
npx mushi-mushi --
|
|
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
|
|
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
|
-
|
|
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
|
-
|
|
214
|
-
|
|
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
|
-
-
|
|
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
|
-
-
|
|
287
|
-
-
|
|
288
|
-
-
|
|
289
|
-
-
|
|
290
|
-
-
|
|
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).
|
|
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 {
|
|
5
|
-
|
|
6
|
-
|
|
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
|
|
19
|
-
npx mushi-mushi --yes
|
|
20
|
-
npx mushi-mushi init
|
|
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 });
|