mushi-mushi 0.5.0 → 0.5.2
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/CODE_OF_CONDUCT.md +51 -0
- package/CONTRIBUTING.md +122 -0
- package/README.md +198 -48
- package/SECURITY.md +50 -0
- package/dist/index.js +1 -1
- package/package.json +7 -4
|
@@ -0,0 +1,51 @@
|
|
|
1
|
+
<!--
|
|
2
|
+
AUTO-SYNCED from repo root by scripts/sync-community-files.mjs.
|
|
3
|
+
Do not edit here — edit the canonical file at the repository root and
|
|
4
|
+
re-run `node scripts/sync-community-files.mjs` (pre-commit hook does this
|
|
5
|
+
automatically).
|
|
6
|
+
-->
|
|
7
|
+
|
|
8
|
+
# Contributor Covenant Code of Conduct
|
|
9
|
+
|
|
10
|
+
## Our Pledge
|
|
11
|
+
|
|
12
|
+
We as members, contributors, and leaders pledge to make participation in our
|
|
13
|
+
community a harassment-free experience for everyone, regardless of age, body
|
|
14
|
+
size, visible or invisible disability, ethnicity, sex characteristics, gender
|
|
15
|
+
identity and expression, level of experience, education, socio-economic status,
|
|
16
|
+
nationality, personal appearance, race, caste, color, religion, or sexual
|
|
17
|
+
identity and orientation.
|
|
18
|
+
|
|
19
|
+
We pledge to act and interact in ways that contribute to an open, welcoming,
|
|
20
|
+
diverse, inclusive, and healthy community.
|
|
21
|
+
|
|
22
|
+
## Our Standards
|
|
23
|
+
|
|
24
|
+
Examples of behavior that contributes to a positive environment:
|
|
25
|
+
|
|
26
|
+
- Using welcoming and inclusive language
|
|
27
|
+
- Being respectful of differing viewpoints and experiences
|
|
28
|
+
- Gracefully accepting constructive criticism
|
|
29
|
+
- Focusing on what is best for the community
|
|
30
|
+
- Showing empathy towards other community members
|
|
31
|
+
|
|
32
|
+
Examples of unacceptable behavior:
|
|
33
|
+
|
|
34
|
+
- The use of sexualized language or imagery, and sexual attention or advances of any kind
|
|
35
|
+
- Trolling, insulting or derogatory comments, and personal or political attacks
|
|
36
|
+
- Public or private harassment
|
|
37
|
+
- Publishing others' private information without explicit permission
|
|
38
|
+
- Other conduct which could reasonably be considered inappropriate in a professional setting
|
|
39
|
+
|
|
40
|
+
## Enforcement
|
|
41
|
+
|
|
42
|
+
Instances of abusive, harassing, or otherwise unacceptable behavior may be
|
|
43
|
+
reported to the project team at **security@mushimushi.dev**.
|
|
44
|
+
|
|
45
|
+
All complaints will be reviewed and investigated promptly and fairly.
|
|
46
|
+
|
|
47
|
+
## Attribution
|
|
48
|
+
|
|
49
|
+
This Code of Conduct is adapted from the [Contributor Covenant](https://www.contributor-covenant.org/),
|
|
50
|
+
version 2.1, available at
|
|
51
|
+
https://www.contributor-covenant.org/version/2/1/code_of_conduct.html.
|
package/CONTRIBUTING.md
ADDED
|
@@ -0,0 +1,122 @@
|
|
|
1
|
+
<!--
|
|
2
|
+
AUTO-SYNCED from repo root by scripts/sync-community-files.mjs.
|
|
3
|
+
Do not edit here — edit the canonical file at the repository root and
|
|
4
|
+
re-run `node scripts/sync-community-files.mjs` (pre-commit hook does this
|
|
5
|
+
automatically).
|
|
6
|
+
-->
|
|
7
|
+
|
|
8
|
+
# Contributing to Mushi Mushi
|
|
9
|
+
|
|
10
|
+
Thanks for wanting to help. Here's everything you need to get started.
|
|
11
|
+
|
|
12
|
+
## Prerequisites
|
|
13
|
+
|
|
14
|
+
- **Node.js >= 22** (see `.node-version`)
|
|
15
|
+
- **pnpm >= 10** — install with `corepack enable`
|
|
16
|
+
|
|
17
|
+
## Setup
|
|
18
|
+
|
|
19
|
+
```bash
|
|
20
|
+
git clone https://github.com/kensaurus/mushi-mushi.git
|
|
21
|
+
cd mushi-mushi
|
|
22
|
+
pnpm install
|
|
23
|
+
pnpm build
|
|
24
|
+
```
|
|
25
|
+
|
|
26
|
+
## Development
|
|
27
|
+
|
|
28
|
+
```bash
|
|
29
|
+
pnpm dev # Start all dev servers (admin on :6464)
|
|
30
|
+
pnpm test # Run Vitest across all packages
|
|
31
|
+
pnpm typecheck # TypeScript checks
|
|
32
|
+
pnpm lint # ESLint
|
|
33
|
+
pnpm format # Prettier
|
|
34
|
+
```
|
|
35
|
+
|
|
36
|
+
### Working on a single package
|
|
37
|
+
|
|
38
|
+
```bash
|
|
39
|
+
cd packages/core
|
|
40
|
+
pnpm dev # Watch mode
|
|
41
|
+
pnpm test # Tests for this package only
|
|
42
|
+
```
|
|
43
|
+
|
|
44
|
+
## Project Structure
|
|
45
|
+
|
|
46
|
+
```
|
|
47
|
+
packages/
|
|
48
|
+
core/ Types, API client, offline queue (MIT)
|
|
49
|
+
web/ Browser SDK — widget, capture (MIT)
|
|
50
|
+
react/ React bindings (MIT)
|
|
51
|
+
vue/ Vue 3 plugin (MIT)
|
|
52
|
+
svelte/ Svelte SDK (MIT)
|
|
53
|
+
angular/ Angular SDK (MIT)
|
|
54
|
+
react-native/ React Native SDK (MIT)
|
|
55
|
+
cli/ CLI tool (MIT)
|
|
56
|
+
mcp/ MCP server for coding agents (MIT)
|
|
57
|
+
server/ Supabase Edge Functions (BSL)
|
|
58
|
+
agents/ Agentic fix pipeline (BSL)
|
|
59
|
+
verify/ Fix verification (BSL)
|
|
60
|
+
apps/
|
|
61
|
+
admin/ Admin dashboard (React + Tailwind)
|
|
62
|
+
docs/ Documentation site (planned)
|
|
63
|
+
tooling/
|
|
64
|
+
eslint-config/ Shared ESLint flat config
|
|
65
|
+
tsconfig/ Shared TypeScript configs
|
|
66
|
+
```
|
|
67
|
+
|
|
68
|
+
## Making Changes
|
|
69
|
+
|
|
70
|
+
1. Create a feature branch from `master`
|
|
71
|
+
2. Make your changes
|
|
72
|
+
3. Add tests for new functionality
|
|
73
|
+
4. Run `pnpm typecheck && pnpm lint && pnpm test` to verify
|
|
74
|
+
5. Create a changeset if your change affects published packages:
|
|
75
|
+
```bash
|
|
76
|
+
pnpm changeset
|
|
77
|
+
```
|
|
78
|
+
6. Open a pull request
|
|
79
|
+
|
|
80
|
+
## Changesets
|
|
81
|
+
|
|
82
|
+
We use [Changesets](https://github.com/changesets/changesets) for versioning. If your PR modifies a published package (`core`, `web`, `react`, `vue`, `svelte`, `angular`, `react-native`, `cli`, `mcp`), add a changeset:
|
|
83
|
+
|
|
84
|
+
```bash
|
|
85
|
+
pnpm changeset
|
|
86
|
+
```
|
|
87
|
+
|
|
88
|
+
Select the affected packages, the semver bump type, and write a summary. The changeset file gets committed with your PR.
|
|
89
|
+
|
|
90
|
+
## Code Style
|
|
91
|
+
|
|
92
|
+
- **TypeScript strict mode** — no `any` unless absolutely necessary
|
|
93
|
+
- **Prettier** formats everything — run `pnpm format` before committing
|
|
94
|
+
- **ESLint** catches bugs — `pnpm lint` must pass
|
|
95
|
+
- **No default exports** in library packages — use named exports
|
|
96
|
+
- **Dual ESM/CJS** builds via tsup for all SDK packages
|
|
97
|
+
|
|
98
|
+
## Commit Messages
|
|
99
|
+
|
|
100
|
+
Use conventional commits:
|
|
101
|
+
|
|
102
|
+
```
|
|
103
|
+
feat(core): add batch report submission
|
|
104
|
+
fix(web): prevent widget from opening during screenshot
|
|
105
|
+
docs(react): update provider usage example
|
|
106
|
+
chore: bump dependencies
|
|
107
|
+
```
|
|
108
|
+
|
|
109
|
+
## Tests
|
|
110
|
+
|
|
111
|
+
- **Framework:** Vitest
|
|
112
|
+
- **Location:** Co-located with source (`src/foo.test.ts`)
|
|
113
|
+
- **Coverage:** Required for `core`, `web`, `react` — encouraged for all packages
|
|
114
|
+
|
|
115
|
+
## License
|
|
116
|
+
|
|
117
|
+
- SDK packages are MIT — your contributions will be MIT-licensed
|
|
118
|
+
- Server/agents/verify are BSL 1.1 — contributions to those packages fall under BSL
|
|
119
|
+
|
|
120
|
+
## Questions?
|
|
121
|
+
|
|
122
|
+
Open an issue or start a discussion. We're happy to help.
|
package/README.md
CHANGED
|
@@ -1,90 +1,240 @@
|
|
|
1
|
-
|
|
1
|
+
<div align="center">
|
|
2
2
|
|
|
3
|
-
|
|
3
|
+
# mushi-mushi 🐛
|
|
4
|
+
|
|
5
|
+
**Ship a shake-to-report button. Get AI-classified, deduped, ready-to-fix bug reports.**
|
|
6
|
+
|
|
7
|
+
One `npx` command. Works with React, Next.js, Vue, Nuxt, Svelte, SvelteKit, Angular, React Native, Expo, Capacitor, and vanilla JS.
|
|
8
|
+
|
|
9
|
+
[](https://www.npmjs.com/package/mushi-mushi)
|
|
10
|
+
[](https://www.npmjs.com/package/mushi-mushi)
|
|
11
|
+
[](https://github.com/kensaurus/mushi-mushi/blob/master/LICENSE)
|
|
12
|
+
[](https://docs.npmjs.com/generating-provenance-statements)
|
|
13
|
+
[](https://nodejs.org)
|
|
14
|
+
|
|
15
|
+
<a href="https://kensaur.us/mushi-mushi/" title="Open the live admin demo">
|
|
16
|
+
<img src="https://raw.githubusercontent.com/kensaurus/mushi-mushi/master/docs/screenshots/report-detail-dark.png" alt="A real user-felt bug inside the Mushi admin — Plan / Do / Check / Act PDCA receipt across the top, the original user description, LLM classification (Confusing UX · Medium · 78% confidence · component = Dashboard/HeroCTA), environment + performance metrics, and a one-click Dispatch-fix CTA." width="860" />
|
|
17
|
+
</a>
|
|
18
|
+
|
|
19
|
+
<sub>↑ a real user report, fully classified and ready to dispatch as a GitHub PR · <a href="https://kensaur.us/mushi-mushi/">open the live demo</a></sub>
|
|
20
|
+
|
|
21
|
+
</div>
|
|
22
|
+
|
|
23
|
+
---
|
|
24
|
+
|
|
25
|
+
## Install in one line
|
|
4
26
|
|
|
5
27
|
```bash
|
|
6
28
|
npx mushi-mushi
|
|
7
29
|
```
|
|
8
30
|
|
|
9
|
-
|
|
31
|
+
The wizard detects your framework, installs the right SDK, writes env vars to `.env.local` (with the right prefix — `NEXT_PUBLIC_`, `NUXT_PUBLIC_`, or `VITE_`), and prints the snippet to paste into your app. **Non-destructive**: never overwrites existing env vars, never edits your source.
|
|
32
|
+
|
|
33
|
+
```tsx
|
|
34
|
+
// After the wizard runs (React example):
|
|
35
|
+
import { MushiProvider } from '@mushi-mushi/react'
|
|
36
|
+
|
|
37
|
+
export function App({ children }) {
|
|
38
|
+
return (
|
|
39
|
+
<MushiProvider config={{ projectId: 'proj_xxx', apiKey: 'mushi_xxx' }}>
|
|
40
|
+
{children}
|
|
41
|
+
</MushiProvider>
|
|
42
|
+
)
|
|
43
|
+
}
|
|
44
|
+
```
|
|
45
|
+
|
|
46
|
+
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.
|
|
47
|
+
|
|
48
|
+
---
|
|
49
|
+
|
|
50
|
+
## What you get
|
|
51
|
+
|
|
52
|
+
- **🐛 Shake-to-report widget** — Shadow-DOM, zero CSS conflicts. Ships with screenshot, console ring, network ring, route + intent capture, and an offline queue.
|
|
53
|
+
- **🧠 AI-classified reports** — 2-stage pipeline (Haiku fast-filter → Sonnet deep + vision + RAG) tags each report with category, severity, confidence, and the component path.
|
|
54
|
+
- **🪞 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.
|
|
55
|
+
- **🤖 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).
|
|
56
|
+
- **📬 Wires into your existing stack** — Sentry breadcrumbs, Slack Block Kit, Jira OAuth sync, Linear issues, PagerDuty escalations, Langfuse traces, GitHub PRs.
|
|
57
|
+
- **🧑💻 Agent-native via MCP** — Cursor, Claude Code, Copilot, and any MCP client can read, triage, and dispatch fixes through the same JSON-RPC surface.
|
|
58
|
+
|
|
59
|
+
---
|
|
60
|
+
|
|
61
|
+
## Who it's for
|
|
62
|
+
|
|
63
|
+
| You are… | …and this helps because |
|
|
64
|
+
| --------------------------------------------------- | --------------------------------------------------------------------------------------------------------------------------------------------- |
|
|
65
|
+
| **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". |
|
|
66
|
+
| **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. |
|
|
67
|
+
| **An AI-native team** already using Cursor / Claude | MCP tools expose the whole loop to your agent. `get_recent_reports`, `classify`, `dispatch_fix` — the same primitives your teammates use. |
|
|
68
|
+
| **An enterprise** needing SOC 2 + residency | Region-pinned data (US / EU / JP / SELF), SAML SSO, audit-log ingest, DSAR workflow, HMAC-signed plugin webhooks. |
|
|
69
|
+
|
|
70
|
+
---
|
|
71
|
+
|
|
72
|
+
## Mushi vs your existing stack
|
|
73
|
+
|
|
74
|
+
Mushi is a **companion** to Sentry/Datadog, not a replacement. It sees the bugs your crash tracker can't.
|
|
75
|
+
|
|
76
|
+
| Scenario | Sentry / Datadog | **Mushi Mushi** |
|
|
77
|
+
| ---------------------------------------- | :--------------: | :-------------: |
|
|
78
|
+
| Unhandled JS exception | ✅ | ✅ |
|
|
79
|
+
| Button that *looks* clickable but isn't | — | ✅ |
|
|
80
|
+
| 12-second page load, no error thrown | — | ✅ |
|
|
81
|
+
| User can't find the settings panel | — | ✅ |
|
|
82
|
+
| Layout broken on iPad Safari only | — | ✅ |
|
|
83
|
+
| Form submits but data doesn't save | ~ | ✅ |
|
|
84
|
+
| Feature silently regressed last deploy | ~ | ✅ |
|
|
85
|
+
| LLM-classified + deduped queue | — | ✅ |
|
|
86
|
+
| One-click AI fix → draft GitHub PR | — | ✅ |
|
|
87
|
+
|
|
88
|
+
> Already have Sentry? Mushi writes breadcrumbs into your existing Sentry session so you can jump from a crash to the user's own words in one click.
|
|
89
|
+
|
|
90
|
+
---
|
|
91
|
+
|
|
92
|
+
## Integrates with
|
|
93
|
+
|
|
94
|
+
<table>
|
|
95
|
+
<tr>
|
|
96
|
+
<td align="center" width="110"><b>GitHub</b><br/><sub>Auto-draft PRs<br/>+ Checks API</sub></td>
|
|
97
|
+
<td align="center" width="110"><b>Sentry</b><br/><sub>Breadcrumb bridge<br/>+ session link</sub></td>
|
|
98
|
+
<td align="center" width="110"><b>Slack</b><br/><sub>Block Kit<br/>+ /mushi cmd</sub></td>
|
|
99
|
+
<td align="center" width="110"><b>Jira</b><br/><sub>OAuth 3LO<br/>bidir sync</sub></td>
|
|
100
|
+
<td align="center" width="110"><b>Linear</b><br/><sub>Issue create<br/>+ status sync</sub></td>
|
|
101
|
+
</tr>
|
|
102
|
+
<tr>
|
|
103
|
+
<td align="center" width="110"><b>PagerDuty</b><br/><sub>Severity-scoped<br/>escalation</sub></td>
|
|
104
|
+
<td align="center" width="110"><b>Langfuse</b><br/><sub>LLM trace<br/>deeplinks</sub></td>
|
|
105
|
+
<td align="center" width="110"><b>Cursor</b><br/><sub>via MCP<br/>server</sub></td>
|
|
106
|
+
<td align="center" width="110"><b>Claude Code</b><br/><sub>via MCP<br/>server</sub></td>
|
|
107
|
+
<td align="center" width="110"><b>Zapier</b><br/><sub>Generic<br/>webhook fan-out</sub></td>
|
|
108
|
+
</tr>
|
|
109
|
+
</table>
|
|
110
|
+
|
|
111
|
+
Plus first-class adapters for Datadog, New Relic, Honeycomb, and Grafana alerts via [`@mushi-mushi/adapters`](https://www.npmjs.com/package/@mushi-mushi/adapters).
|
|
112
|
+
|
|
113
|
+
---
|
|
114
|
+
|
|
115
|
+
## Framework support
|
|
116
|
+
|
|
117
|
+
| Framework | Install after wizard (automatic) |
|
|
118
|
+
| ------------------- | ------------------------------------------- |
|
|
119
|
+
| React | `@mushi-mushi/react` |
|
|
120
|
+
| Next.js | `@mushi-mushi/react` |
|
|
121
|
+
| Vue 3 / Nuxt | `@mushi-mushi/vue` + `@mushi-mushi/web` |
|
|
122
|
+
| Svelte / SvelteKit | `@mushi-mushi/svelte` + `@mushi-mushi/web` |
|
|
123
|
+
| Angular 17+ | `@mushi-mushi/angular` + `@mushi-mushi/web` |
|
|
124
|
+
| React Native / Expo | `@mushi-mushi/react-native` |
|
|
125
|
+
| Capacitor / Ionic | `@mushi-mushi/capacitor` |
|
|
126
|
+
| Vanilla JS | `@mushi-mushi/web` |
|
|
127
|
+
|
|
128
|
+
Prefer to skip the wizard? `npm i @mushi-mushi/react` (or your framework's package) and wire it up by hand.
|
|
129
|
+
|
|
130
|
+
---
|
|
131
|
+
|
|
132
|
+
## How the pipeline works
|
|
133
|
+
|
|
134
|
+
```
|
|
135
|
+
User hits widget ──▶ screenshot + console + network + intent
|
|
136
|
+
│
|
|
137
|
+
▼
|
|
138
|
+
Fast-filter (Haiku) ──▶ drops spam, keeps signal
|
|
139
|
+
│
|
|
140
|
+
▼
|
|
141
|
+
Deep classify (Sonnet + vision + RAG) ──▶ category, severity, component
|
|
142
|
+
│
|
|
143
|
+
▼
|
|
144
|
+
Dedup (pgvector) ──▶ groups repeat reports by meaning
|
|
145
|
+
│
|
|
146
|
+
▼
|
|
147
|
+
Judge (weekly) ──▶ scores classifier, retrains prompts
|
|
148
|
+
│
|
|
149
|
+
▼
|
|
150
|
+
"Dispatch fix" ──▶ agent opens a GitHub PR with Playwright replay + visual diff
|
|
151
|
+
```
|
|
152
|
+
|
|
153
|
+
See the full architecture in the [root README](https://github.com/kensaurus/mushi-mushi#architecture).
|
|
10
154
|
|
|
11
|
-
|
|
155
|
+
---
|
|
12
156
|
|
|
13
|
-
|
|
14
|
-
2. **Picks the right SDK** — installs `@mushi-mushi/react`, `@mushi-mushi/vue`, `@mushi-mushi/svelte`, `@mushi-mushi/angular`, `@mushi-mushi/react-native`, `@mushi-mushi/capacitor`, or `@mushi-mushi/web` depending on what you're using.
|
|
15
|
-
3. **Detects your package manager** — uses `pnpm`, `npm`, `yarn`, or `bun` based on your lockfile.
|
|
16
|
-
4. **Writes env vars** — `MUSHI_PROJECT_ID` and `MUSHI_API_KEY` go into `.env.local` with the right framework prefix (`NEXT_PUBLIC_`, `NUXT_PUBLIC_`, or `VITE_`).
|
|
17
|
-
5. **Warns about `.gitignore`** — never commits secrets if `.env.local` isn't ignored.
|
|
18
|
-
6. **Prints the integration snippet** — framework-specific provider/init code you can paste straight in.
|
|
19
|
-
7. **Sends a test report** (opt-in) — so you see your first classified bug in the console without leaving the wizard.
|
|
157
|
+
## 30-second quick start
|
|
20
158
|
|
|
21
|
-
|
|
159
|
+
```bash
|
|
160
|
+
# 1. Drop the wizard in (or one of the equivalents below)
|
|
161
|
+
npx mushi-mushi
|
|
162
|
+
|
|
163
|
+
# equivalents:
|
|
164
|
+
npm create mushi-mushi
|
|
165
|
+
npx @mushi-mushi/cli init
|
|
166
|
+
```
|
|
22
167
|
|
|
23
|
-
|
|
168
|
+
<details>
|
|
169
|
+
<summary><b>Flags for CI, monorepos, and self-hosted</b></summary>
|
|
24
170
|
|
|
25
171
|
```bash
|
|
26
172
|
npx mushi-mushi --framework next # skip framework detection
|
|
27
173
|
npx mushi-mushi --project-id proj_xxx --api-key mushi_xxx
|
|
28
|
-
npx mushi-mushi --skip-install # print install command
|
|
174
|
+
npx mushi-mushi --skip-install # print the install command, don't run it
|
|
29
175
|
npx mushi-mushi --skip-test-report # don't offer to send a test report
|
|
30
|
-
npx mushi-mushi --cwd apps/web # run
|
|
31
|
-
npx mushi-mushi --endpoint https://mushi.your-company.com
|
|
32
|
-
npx mushi-mushi -y # accept the detected framework
|
|
176
|
+
npx mushi-mushi --cwd apps/web # run inside a monorepo sub-package
|
|
177
|
+
npx mushi-mushi --endpoint https://mushi.your-company.com # self-hosted
|
|
178
|
+
npx mushi-mushi -y # accept the detected framework
|
|
33
179
|
npx mushi-mushi -v # print version
|
|
34
180
|
npx mushi-mushi --help
|
|
35
181
|
```
|
|
36
182
|
|
|
37
|
-
|
|
183
|
+
</details>
|
|
38
184
|
|
|
39
|
-
|
|
185
|
+
<details>
|
|
186
|
+
<summary><b>Troubleshooting</b></summary>
|
|
40
187
|
|
|
41
|
-
|
|
42
|
-
| ------------------- | ------------------------------------------ |
|
|
43
|
-
| React | `@mushi-mushi/react` |
|
|
44
|
-
| Next.js | `@mushi-mushi/react` |
|
|
45
|
-
| Vue 3 / Nuxt | `@mushi-mushi/vue` + `@mushi-mushi/web` |
|
|
46
|
-
| Svelte / SvelteKit | `@mushi-mushi/svelte` + `@mushi-mushi/web` |
|
|
47
|
-
| Angular | `@mushi-mushi/angular` + `@mushi-mushi/web`|
|
|
48
|
-
| React Native / Expo | `@mushi-mushi/react-native` |
|
|
49
|
-
| Capacitor / Ionic | `@mushi-mushi/capacitor` |
|
|
50
|
-
| Vanilla JS | `@mushi-mushi/web` |
|
|
51
|
-
|
|
52
|
-
## Troubleshooting
|
|
53
|
-
|
|
54
|
-
- **Wrong framework detected?** Pass `--framework <id>`. Valid: `next, react, vue, nuxt, svelte, sveltekit, angular, expo, react-native, capacitor, vanilla`.
|
|
188
|
+
- **Wrong framework detected?** Pass `--framework <id>`. Valid values: `next, react, vue, nuxt, svelte, sveltekit, angular, expo, react-native, capacitor, vanilla`.
|
|
55
189
|
- **Monorepo?** `cd` into the package first, or pass `--cwd apps/web`.
|
|
56
190
|
- **Stale `npx` cache?** `npm cache clean --force` or `npx mushi-mushi@latest`.
|
|
57
|
-
- **Non-interactive terminal (CI)?** Pass `--yes --project-id proj_xxx --api-key mushi_xxx`. The wizard exits with a clear error
|
|
191
|
+
- **Non-interactive terminal (CI)?** Pass `--yes --project-id proj_xxx --api-key mushi_xxx`. The wizard exits with a clear error instead of hanging.
|
|
58
192
|
- **Node version too old?** Requires Node ≥ 18. Upgrade at [nodejs.org](https://nodejs.org/).
|
|
59
|
-
- **
|
|
193
|
+
- **Full stack traces on error?** `DEBUG=mushi npx mushi-mushi`.
|
|
194
|
+
|
|
195
|
+
</details>
|
|
60
196
|
|
|
61
|
-
|
|
197
|
+
<details>
|
|
198
|
+
<summary><b>Security notes</b></summary>
|
|
62
199
|
|
|
63
|
-
- Credentials
|
|
64
|
-
- `~/.mushirc` (the
|
|
200
|
+
- Credentials passed via `--api-key` are visible to other users on the same machine via `ps -ef`. Use the interactive prompt on shared hosts.
|
|
201
|
+
- `~/.mushirc` (the credentials cache) is written with mode `0o600` on Unix; the CLI also tightens the permissions of any existing file on first load.
|
|
65
202
|
- The wizard rejects pasted secrets containing CR/LF/NUL to prevent `.env` injection.
|
|
66
|
-
- All prompts validate
|
|
203
|
+
- All prompts validate format: `proj_[A-Za-z0-9_-]{10,}` and `mushi_[A-Za-z0-9_-]{10,}`.
|
|
204
|
+
- This release ships with [npm provenance](https://docs.npmjs.com/generating-provenance-statements) — verify with `npm audit signatures`.
|
|
67
205
|
|
|
68
|
-
|
|
206
|
+
</details>
|
|
69
207
|
|
|
70
|
-
|
|
208
|
+
---
|
|
209
|
+
|
|
210
|
+
## Power-user CLI
|
|
211
|
+
|
|
212
|
+
`mushi-mushi` is just the setup wizard. For day-to-day triage install the full CLI:
|
|
71
213
|
|
|
72
214
|
```bash
|
|
73
215
|
npm i -g @mushi-mushi/cli
|
|
74
216
|
mushi reports list
|
|
75
217
|
mushi reports show <id>
|
|
76
218
|
mushi reports triage <id> --status acknowledged --severity high
|
|
77
|
-
mushi
|
|
78
|
-
mushi
|
|
219
|
+
mushi deploy check # post-deploy smoke check
|
|
220
|
+
mushi status # live pipeline health
|
|
221
|
+
```
|
|
222
|
+
|
|
223
|
+
Or skip the CLI entirely and drive it from your AI agent via [`@mushi-mushi/mcp`](https://www.npmjs.com/package/@mushi-mushi/mcp):
|
|
224
|
+
|
|
225
|
+
```json
|
|
226
|
+
{ "mcpServers": { "mushi": { "command": "npx", "args": ["-y", "@mushi-mushi/mcp"] } } }
|
|
79
227
|
```
|
|
80
228
|
|
|
229
|
+
---
|
|
230
|
+
|
|
81
231
|
## Links
|
|
82
232
|
|
|
83
|
-
- 🌐 [
|
|
84
|
-
- 📦 [GitHub](https://github.com/kensaurus/mushi-mushi)
|
|
85
|
-
- 📚 [Docs](https://github.com/kensaurus/mushi-mushi#readme)
|
|
86
|
-
- 🐛 [Report a bug](https://github.com/kensaurus/mushi-mushi/issues)
|
|
233
|
+
- 🌐 **[Live admin demo](https://kensaur.us/mushi-mushi/)** — click around a real dataset
|
|
234
|
+
- 📦 **[GitHub](https://github.com/kensaurus/mushi-mushi)** — source, architecture, self-hosting
|
|
235
|
+
- 📚 **[Docs](https://github.com/kensaurus/mushi-mushi#readme)** — quickstart, concepts, API reference
|
|
236
|
+
- 🐛 **[Report a bug](https://github.com/kensaurus/mushi-mushi/issues)** — eat your own dogfood
|
|
87
237
|
|
|
88
238
|
## License
|
|
89
239
|
|
|
90
|
-
MIT
|
|
240
|
+
MIT © [Kenji Sakuramoto](https://github.com/kensaurus). Backend packages (`@mushi-mushi/server`, `agents`, `verify`) are [BSL 1.1](https://github.com/kensaurus/mushi-mushi/blob/master/packages/server/LICENSE) — converts to Apache 2.0 on April 15, 2029.
|
package/SECURITY.md
ADDED
|
@@ -0,0 +1,50 @@
|
|
|
1
|
+
<!--
|
|
2
|
+
AUTO-SYNCED from repo root by scripts/sync-community-files.mjs.
|
|
3
|
+
Do not edit here — edit the canonical file at the repository root and
|
|
4
|
+
re-run `node scripts/sync-community-files.mjs` (pre-commit hook does this
|
|
5
|
+
automatically).
|
|
6
|
+
-->
|
|
7
|
+
|
|
8
|
+
# Security Policy
|
|
9
|
+
|
|
10
|
+
## Supported Versions
|
|
11
|
+
|
|
12
|
+
| Version | Supported |
|
|
13
|
+
|---------|-----------|
|
|
14
|
+
| 0.x | Yes |
|
|
15
|
+
|
|
16
|
+
## Reporting a Vulnerability
|
|
17
|
+
|
|
18
|
+
If you discover a security vulnerability, please report it responsibly.
|
|
19
|
+
|
|
20
|
+
**Do NOT open a public GitHub issue.**
|
|
21
|
+
|
|
22
|
+
Instead, email: **security@mushimushi.dev**
|
|
23
|
+
|
|
24
|
+
Include:
|
|
25
|
+
- Description of the vulnerability
|
|
26
|
+
- Steps to reproduce
|
|
27
|
+
- Impact assessment
|
|
28
|
+
- Suggested fix (if any)
|
|
29
|
+
|
|
30
|
+
We will acknowledge receipt within 48 hours and aim to release a patch within 7 days for critical issues.
|
|
31
|
+
|
|
32
|
+
## Scope
|
|
33
|
+
|
|
34
|
+
- All `@mushi-mushi/*` npm packages
|
|
35
|
+
- Supabase Edge Functions (server-side)
|
|
36
|
+
- Admin console application
|
|
37
|
+
- CLI tool
|
|
38
|
+
|
|
39
|
+
## Out of Scope
|
|
40
|
+
|
|
41
|
+
- Self-hosted deployments configured by the user
|
|
42
|
+
- Third-party integrations (Jira, Linear, PagerDuty)
|
|
43
|
+
- Vulnerabilities requiring physical access
|
|
44
|
+
|
|
45
|
+
## Security Best Practices for Users
|
|
46
|
+
|
|
47
|
+
- **Never commit your API keys** — use environment variables
|
|
48
|
+
- **Rotate API keys** regularly via the admin console
|
|
49
|
+
- **Enable SSO** for team projects (Enterprise tier)
|
|
50
|
+
- **Review audit logs** periodically for suspicious activity
|
package/dist/index.js
CHANGED
|
@@ -3,7 +3,7 @@
|
|
|
3
3
|
// src/index.ts
|
|
4
4
|
import { runInit } from "@mushi-mushi/cli/init";
|
|
5
5
|
import { FRAMEWORK_IDS, isFrameworkId } from "@mushi-mushi/cli/detect";
|
|
6
|
-
var VERSION = true ? "0.5.
|
|
6
|
+
var VERSION = true ? "0.5.2" : "0.0.0-dev";
|
|
7
7
|
var MIN_NODE_MAJOR = 18;
|
|
8
8
|
var ISSUES_URL = "https://github.com/kensaurus/mushi-mushi/issues";
|
|
9
9
|
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.5.
|
|
3
|
+
"version": "0.5.2",
|
|
4
4
|
"license": "MIT",
|
|
5
|
-
"description": "
|
|
5
|
+
"description": "Ship a shake-to-report button and get AI-classified, deduped, ready-to-fix bug reports — one `npx mushi-mushi` command for React, Next.js, Vue, Nuxt, Svelte, SvelteKit, Angular, React Native, Expo, Capacitor, and vanilla JS. Companion to Sentry: catches the user-felt bugs crash trackers can't see. Wires into GitHub, Slack, Jira, Linear, PagerDuty, Langfuse, and any MCP-compatible AI agent (Cursor, Claude Code, Copilot).",
|
|
6
6
|
"bin": {
|
|
7
7
|
"mushi-mushi": "./dist/index.js"
|
|
8
8
|
},
|
|
9
9
|
"dependencies": {
|
|
10
|
-
"@mushi-mushi/cli": "^0.5.
|
|
10
|
+
"@mushi-mushi/cli": "^0.5.1"
|
|
11
11
|
},
|
|
12
12
|
"devDependencies": {
|
|
13
13
|
"@types/node": "^22.15.3",
|
|
@@ -38,7 +38,10 @@
|
|
|
38
38
|
"files": [
|
|
39
39
|
"dist",
|
|
40
40
|
"README.md",
|
|
41
|
-
"LICENSE"
|
|
41
|
+
"LICENSE",
|
|
42
|
+
"CONTRIBUTING.md",
|
|
43
|
+
"CODE_OF_CONDUCT.md",
|
|
44
|
+
"SECURITY.md"
|
|
42
45
|
],
|
|
43
46
|
"sideEffects": false,
|
|
44
47
|
"keywords": [
|