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 +72 -231
- 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 +21 -3
package/README.md
CHANGED
|
@@ -4,294 +4,141 @@
|
|
|
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
|
|
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
|
-
|
|
47
|
-
|
|
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
|
|
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
|
-
|
|
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
|
-
|
|
57
|
-
|
|
58
|
-
|
|
59
|
-
|
|
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
|
-
|
|
47
|
+
More detail on each: [what it does](https://kensaur.us/mushi-mushi/docs/what-it-does).
|
|
67
48
|
|
|
68
|
-
|
|
49
|
+
## Ask your AI editor to do it
|
|
69
50
|
|
|
70
|
-
|
|
51
|
+
Paste this into Cursor, Claude Code or any AI editor that can run commands:
|
|
71
52
|
|
|
72
|
-
```
|
|
73
|
-
|
|
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
|
-
|
|
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
|
-
##
|
|
62
|
+
## Set it up by hand
|
|
91
63
|
|
|
92
|
-
|
|
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
|
-
|
|
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
|
-
##
|
|
79
|
+
## Start a new app with it
|
|
141
80
|
|
|
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)) |
|
|
81
|
+
To begin from nothing, make a small starter app with Mushi Mushi already in it:
|
|
155
82
|
|
|
156
|
-
|
|
83
|
+
```bash
|
|
84
|
+
npx mushi-mushi --template vue my-app # or: svelte, node
|
|
85
|
+
```
|
|
157
86
|
|
|
158
|
-
|
|
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
|
-
|
|
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
|
|
98
|
+
[The rules, with examples](https://kensaur.us/mushi-mushi/docs/sdks/eslint-plugin).
|
|
184
99
|
|
|
185
|
-
|
|
100
|
+
## Free to start
|
|
186
101
|
|
|
187
|
-
|
|
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
|
-
|
|
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>
|
|
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
|
|
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
|
|
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
|
|
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
|
-
|
|
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
|
-
|
|
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
|
-
|
|
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
|
-
-
|
|
287
|
-
-
|
|
288
|
-
-
|
|
289
|
-
-
|
|
290
|
-
-
|
|
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).
|
|
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 {
|
|
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.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
|
|
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 });
|