mushi-mushi 0.8.8 → 0.8.10
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 +31 -23
- package/dist/index.js +1 -1
- package/package.json +2 -2
package/README.md
CHANGED
|
@@ -10,6 +10,13 @@ Plain-English diagnosis + a paste-ready fix, right inside Cursor and Claude Code
|
|
|
10
10
|
|
|
11
11
|
One `npx` command. Works with React, Next.js, Vue, Nuxt, Svelte, SvelteKit, Angular, React Native, Expo, Capacitor, and vanilla JS.
|
|
12
12
|
|
|
13
|
+
```bash
|
|
14
|
+
npx mushi-mushi # the setup wizard
|
|
15
|
+
npx mushi-mushi setup --ide cursor # then connect your editor (any other command goes to @mushi-mushi/cli)
|
|
16
|
+
```
|
|
17
|
+
|
|
18
|
+
[Launcher docs](https://kensaur.us/mushi-mushi/docs/sdks/launcher)
|
|
19
|
+
|
|
13
20
|
[](https://www.npmjs.com/package/mushi-mushi)
|
|
14
21
|
[](https://www.npmjs.com/package/mushi-mushi)
|
|
15
22
|
[](https://github.com/kensaurus/mushi-mushi/blob/master/LICENSE)
|
|
@@ -43,19 +50,20 @@ Founders, PMs, designers: see the [plain-language overview in the GitHub README]
|
|
|
43
50
|
npx mushi-mushi
|
|
44
51
|
```
|
|
45
52
|
|
|
46
|
-
The wizard detects your framework, installs the right SDK, writes env vars to `.env.local` (with the right prefix
|
|
53
|
+
The wizard detects your framework, installs the right SDK, 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), and prints the snippet to paste into your app. **Non-destructive**: never overwrites existing env vars, never edits your source.
|
|
47
54
|
|
|
48
55
|
```tsx
|
|
49
|
-
// After the wizard runs (React example):
|
|
50
|
-
import { MushiProvider } from '@mushi-mushi/react'
|
|
51
|
-
|
|
52
|
-
|
|
53
|
-
|
|
54
|
-
|
|
55
|
-
|
|
56
|
-
|
|
57
|
-
|
|
58
|
-
|
|
56
|
+
// After the wizard runs (React + Vite example, src/main.tsx):
|
|
57
|
+
import { MushiProvider } from '@mushi-mushi/react'
|
|
58
|
+
|
|
59
|
+
createRoot(document.getElementById('root')!).render(
|
|
60
|
+
<MushiProvider config={{
|
|
61
|
+
projectId: import.meta.env.VITE_MUSHI_PROJECT_ID,
|
|
62
|
+
apiKey: import.meta.env.VITE_MUSHI_API_KEY,
|
|
63
|
+
}}>
|
|
64
|
+
<App />
|
|
65
|
+
</MushiProvider>
|
|
66
|
+
)
|
|
59
67
|
```
|
|
60
68
|
|
|
61
69
|
That's it. Your users now have a shake-to-report button (or a floating widget). Reports land in [your admin console](https://kensaur.us/mushi-mushi/), classified by an LLM within seconds.
|
|
@@ -64,11 +72,11 @@ That's it. Your users now have a shake-to-report button (or a floating widget).
|
|
|
64
72
|
|
|
65
73
|
## What you get
|
|
66
74
|
|
|
67
|
-
- **
|
|
75
|
+
- **Bug report widget** — Shadow-DOM, zero CSS conflicts. Ships with screenshot, console ring, network ring, route + intent capture, and an offline queue.
|
|
68
76
|
- **AI-classified reports** — 2-stage pipeline (Haiku fast-filter → Sonnet deep + vision + RAG) tags each report with category, severity, confidence, and the component path. Stage 2 streams partial results to the admin UI as tokens arrive.
|
|
69
77
|
- **Dedup by meaning, not by string** — pgvector knowledge graph collapses duplicate reports across users, routes, and deploys so your queue isn't a noise storm.
|
|
70
78
|
- **Bidirectional inventory (v2)** — opt in to `capture: { discoverInventory: true }` and the SDK quietly observes routes, `data-testid`s, and outbound API paths in production. Claude drafts an `inventory.yaml` of user stories + pages + actions for you to accept — most teams will never hand-author one.
|
|
71
|
-
- **
|
|
79
|
+
- **Pre-release checks (v2)** — the ESLint rules `mushi-mushi/no-dead-handler` and `mushi-mushi/no-mock-leak` catch empty handlers and leftover mock data; the [Mushi Mushi CI Gate Action](https://github.com/kensaurus/mushi-mushi/tree/master/packages/mcp-ci) runs the server-side gates (API contract, status claims, orphan endpoints, unknown calls) on a PR and fails the step when one fails.
|
|
72
80
|
- **Spec-traced fixes (v2.10)** — every dispatched fix carries the inventory `Action` it's meant to repair, the `expected_outcome` contract is rendered into the LLM prompt, a deterministic `validateAgainstSpec` gate fires before the PR opens, and a targeted synthetic probe runs the moment the PR lands.
|
|
73
81
|
- **One-click "Dispatch fix"** — agentic orchestrator opens a GitHub PR with a screenshot diff and a Playwright replay. Sandbox-pluggable (`e2b`, `modal`, `cloudflare`, or your own).
|
|
74
82
|
- **Standards-first integrator** — W3C `traceparent` end-to-end, Standard Webhooks signing on every outbound delivery, RFC-draft `Idempotency-Key` middleware, OAuth 2.0 Dynamic Client Registration, OTLP/HTTP+JSON BYOK exporter. You bring your own observability stack — Mushi never marks up tokens.
|
|
@@ -82,7 +90,7 @@ That's it. Your users now have a shake-to-report button (or a floating widget).
|
|
|
82
90
|
| --------------------------------------------------- | ------------------------------------------------------------------------------------------------------------------------------------------- |
|
|
83
91
|
| **A solo dev / small team** shipping a consumer app | You already have Sentry for crashes — but users drop off over _friction_, not exceptions. Mushi captures "this button doesn't do anything". |
|
|
84
92
|
| **A PM or designer** living in the admin | Triage, severity, component ownership, and PR status — all in one dark-mode console. No reading stack traces. |
|
|
85
|
-
| **An AI-native team** already using Cursor / Claude | MCP tools expose the whole loop to your agent. `get_recent_reports`, `
|
|
93
|
+
| **An AI-native team** already using Cursor / Claude | MCP tools expose the whole loop to your agent. `get_recent_reports`, `triage_issue`, `dispatch_fix` — the same primitives your teammates use. |
|
|
86
94
|
| **An enterprise** needing SOC 2 + residency | Region-pinned data (US / EU / JP / SELF), SAML SSO, audit-log ingest, DSAR workflow, HMAC-signed plugin webhooks. |
|
|
87
95
|
|
|
88
96
|
---
|
|
@@ -208,7 +216,7 @@ npx @mushi-mushi/cli init
|
|
|
208
216
|
|
|
209
217
|
```bash
|
|
210
218
|
npx mushi-mushi --framework next # skip framework detection
|
|
211
|
-
npx mushi-mushi --project-id
|
|
219
|
+
npx mushi-mushi --project-id <project-uuid> --api-key mushi_xxx
|
|
212
220
|
npx mushi-mushi --skip-install # print the install command, don't run it
|
|
213
221
|
npx mushi-mushi --skip-test-report # don't offer to send a test report
|
|
214
222
|
npx mushi-mushi --cwd apps/web # run inside a monorepo sub-package
|
|
@@ -223,11 +231,11 @@ npx mushi-mushi --help
|
|
|
223
231
|
<details>
|
|
224
232
|
<summary><b>Troubleshooting</b></summary>
|
|
225
233
|
|
|
226
|
-
- **Wrong framework detected?** Pass `--framework <id>`. Valid values: `next, react, vue, nuxt, svelte, sveltekit, angular, expo, react-native, capacitor, vanilla`.
|
|
234
|
+
- **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`.
|
|
227
235
|
- **Monorepo?** `cd` into the package first, or pass `--cwd apps/web`.
|
|
228
236
|
- **Stale `npx` cache?** `npm cache clean --force` or `npx mushi-mushi@latest`.
|
|
229
|
-
- **Non-interactive terminal (CI)?** Pass `--yes --project-id
|
|
230
|
-
- **Node version too old?** Requires Node
|
|
237
|
+
- **Non-interactive terminal (CI)?** Pass `--yes --project-id <project-uuid> --api-key mushi_xxx`. The wizard exits with a clear error instead of hanging.
|
|
238
|
+
- **Node version too old?** Requires Node 20.19 or newer. Upgrade at [nodejs.org](https://nodejs.org/).
|
|
231
239
|
- **Full stack traces on error?** `DEBUG=mushi npx mushi-mushi`.
|
|
232
240
|
|
|
233
241
|
</details>
|
|
@@ -237,8 +245,8 @@ npx mushi-mushi --help
|
|
|
237
245
|
|
|
238
246
|
- Credentials passed via `--api-key` are visible to other users on the same machine via `ps -ef`. Use the interactive prompt on shared hosts.
|
|
239
247
|
- `~/.config/mushi/config.json` (the credentials cache) is written with mode `0o600` on Unix; legacy `~/.mushirc` auto-migrates on first load.
|
|
240
|
-
- The wizard
|
|
241
|
-
-
|
|
248
|
+
- The wizard strips CR/LF/NUL from pasted secrets to prevent `.env` injection.
|
|
249
|
+
- 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.
|
|
242
250
|
- This release ships with [npm provenance](https://docs.npmjs.com/generating-provenance-statements) — verify with `npm audit signatures`.
|
|
243
251
|
|
|
244
252
|
</details>
|
|
@@ -251,7 +259,7 @@ Mushi is a CLI launcher — it spawns one `npm install` and appends a small mult
|
|
|
251
259
|
| Scanner | What it shows | What it actually means |
|
|
252
260
|
| ------------------ | --------------------------------------------- | -------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- |
|
|
253
261
|
| **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. |
|
|
254
|
-
| **Socket.dev** | Score + a few low-signal alerts | Alerts are expected and benign: `child_process
|
|
262
|
+
| **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`. |
|
|
255
263
|
| **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`. |
|
|
256
264
|
| **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). |
|
|
257
265
|
|
|
@@ -263,7 +271,7 @@ If something looks off to you, [open an issue](https://github.com/kensaurus/mush
|
|
|
263
271
|
|
|
264
272
|
## Power-user CLI
|
|
265
273
|
|
|
266
|
-
`mushi-mushi`
|
|
274
|
+
`mushi-mushi` runs the setup wizard and forwards any other command to `@mushi-mushi/cli` (`npx mushi-mushi reports list` works). For day-to-day triage, install the full CLI to get a `mushi` command:
|
|
267
275
|
|
|
268
276
|
```bash
|
|
269
277
|
npm i -g @mushi-mushi/cli
|
|
@@ -326,4 +334,4 @@ All apps live under [kensaur.us](https://kensaur.us).
|
|
|
326
334
|
<!-- mushi-readme-stats-footer -->
|
|
327
335
|
---
|
|
328
336
|
|
|
329
|
-
<sub>Monorepo scale (July 2026):
|
|
337
|
+
<sub>Monorepo scale (July 2026): 76 edge functions · 509 SQL migrations · 13 outbound plugins · 11 inbound adapters · 19 pipeline agents. Canonical counts: <a href="https://github.com/kensaurus/mushi-mushi/blob/master/docs/stats.md">docs/stats.md</a> · <code>pnpm docs-stats</code></sub>
|
package/dist/index.js
CHANGED
|
@@ -9,7 +9,7 @@ import {
|
|
|
9
9
|
assertNodeVersion,
|
|
10
10
|
FLAGS_HELP
|
|
11
11
|
} from "@mushi-mushi/cli/wizard-args";
|
|
12
|
-
var VERSION = true ? "0.8.
|
|
12
|
+
var VERSION = true ? "0.8.10" : "0.0.0-dev";
|
|
13
13
|
var BIN = "mushi-mushi";
|
|
14
14
|
var ISSUES_URL = "https://github.com/kensaurus/mushi-mushi/issues";
|
|
15
15
|
var HELP = `mushi-mushi \u2014 bug-reporting SDK launcher
|
package/package.json
CHANGED
|
@@ -1,13 +1,13 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "mushi-mushi",
|
|
3
|
-
"version": "0.8.
|
|
3
|
+
"version": "0.8.10",
|
|
4
4
|
"license": "MIT",
|
|
5
5
|
"description": "One command adds a bug report widget to any app. The bug mediator for AI-built apps: plain-English diagnosis + a ready fix, in your editor.",
|
|
6
6
|
"bin": {
|
|
7
7
|
"mushi-mushi": "./dist/index.js"
|
|
8
8
|
},
|
|
9
9
|
"dependencies": {
|
|
10
|
-
"@mushi-mushi/cli": "^0.
|
|
10
|
+
"@mushi-mushi/cli": "^0.34.1"
|
|
11
11
|
},
|
|
12
12
|
"devDependencies": {
|
|
13
13
|
"@types/node": "^22.20.0",
|