@mushi-mushi/web 1.31.1 → 1.31.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/README.md CHANGED
@@ -2,81 +2,48 @@
2
2
 
3
3
  > **Your AI wrote it. Mushi tells you why it broke.**
4
4
 
5
- Framework-agnostic browser SDK for [Mushi Mushi](https://www.npmjs.com/package/mushi-mushi) — an embeddable bug-reporting widget that captures a screenshot, the route, the user's note, and the last few seconds of console + network activity, then hands you a plain-English diagnosis in your editor. Renders inside a Shadow DOM, so your CSS never leaks in or out.
5
+ A bug widget for any website. When a user reports a problem, it sends a screenshot, the route, their note and the last console and network events to [Mushi Mushi](https://github.com/kensaurus/mushi-mushi). Mushi explains the cause in plain English and hands your editor a fix. It renders in a Shadow DOM, so your CSS and the widget's never mix.
6
6
 
7
- > **One-command setup:** `npx mushi-mushi` installs this package for vanilla-JS apps (or alongside a framework SDK).
8
- >
9
- > **Framework SDKs:** [`@mushi-mushi/react`](https://npmjs.com/package/@mushi-mushi/react) (Next.js / React) · [`@mushi-mushi/vue`](https://npmjs.com/package/@mushi-mushi/vue) · [`@mushi-mushi/svelte`](https://npmjs.com/package/@mushi-mushi/svelte) · [`@mushi-mushi/angular`](https://npmjs.com/package/@mushi-mushi/angular) · [`@mushi-mushi/react-native`](https://npmjs.com/package/@mushi-mushi/react-native) · [`@mushi-mushi/capacitor`](https://npmjs.com/package/@mushi-mushi/capacitor)
10
-
11
- ## Install
12
-
13
- ```bash
14
- npm install @mushi-mushi/web
15
- # or: npx mushi-mushi
7
+ ```mermaid
8
+ flowchart LR
9
+ A["User taps the widget"] --> B["Mushi diagnoses the bug"] --> C["Fix lands in your editor"]
16
10
  ```
17
11
 
18
12
  ## Quick start
19
13
 
20
- ```typescript
21
- import { Mushi } from '@mushi-mushi/web';
22
-
23
- Mushi.init({
24
- projectId: '00000000-0000-0000-0000-000000000000', // UUID from Admin → Projects
25
- apiKey: 'mushi_xxx', // report:write key from Setup → Verify (not Settings → BYOK)
26
- widget: { position: 'bottom-right', theme: 'auto' },
27
- capture: { console: true, network: true, screenshot: 'on-report' },
28
- });
14
+ ```bash
15
+ npx mushi-mushi # wizard: picks the right SDK, installs it, writes env vars
16
+ # or: npm install @mushi-mushi/web
29
17
  ```
30
18
 
31
- That's the whole integration. A floating 🐛 launcher appears; a report is one click away.
32
-
33
- ### Same-origin tunnel (ad blockers)
34
-
35
- Point ingest at a first-party proxy — the same pattern as Sentry `tunnel`.
36
- Host APIs must allowlist host + project + `/v1/` (empty project list → 503).
19
+ ```ts
20
+ import { Mushi } from '@mushi-mushi/web';
37
21
 
38
- ```typescript
39
22
  Mushi.init({
40
- projectId: '00000000-0000-0000-0000-000000000000',
41
- apiKey: 'mushi_xxx',
42
- tunnel: '/api/mushi-tunnel',
43
- // Published SDKs that ignore `tunnel` still honor apiEndpoint:
44
- apiEndpoint: '/api/mushi-tunnel',
45
- ignoreErrors: ['ResizeObserver loop', /^Script error\.?$/],
46
- denyUrls: [/chrome-extension:/i],
47
- replaysOnErrorSampleRate: 0,
23
+ projectId: '00000000-0000-0000-0000-000000000000', // from the console's Projects page
24
+ apiKey: 'mushi_xxx', // report:write key from Setup → Verify
48
25
  });
49
26
  ```
50
27
 
51
- `ignoreErrors` / `denyUrls` apply to **automatic** captures only. User widget
52
- feedback always sends. Pagehide uses `fetch({ keepalive: true })`, then a
53
- same-origin `sendBeacon` envelope the tunnel unwraps.
54
-
55
- ## Runtime config
56
-
57
- With `runtimeConfig: 'auto'` (default), the SDK fetches console settings from
58
- `GET /v1/sdk/config` and merges them over your init — so you can tune the widget
59
- from **Projects → SDK install** without rebuilding. Host-wired values (banner
60
- trigger, capture flags) win over console defaults.
28
+ A launcher appears in the corner. That is the whole integration. On React, Vue, Svelte, Angular, React Native or Capacitor, use the framework package instead: [`react`](https://npmjs.com/package/@mushi-mushi/react) · [`vue`](https://npmjs.com/package/@mushi-mushi/vue) · [`svelte`](https://npmjs.com/package/@mushi-mushi/svelte) · [`angular`](https://npmjs.com/package/@mushi-mushi/angular) · [`react-native`](https://npmjs.com/package/@mushi-mushi/react-native) · [`capacitor`](https://npmjs.com/package/@mushi-mushi/capacitor).
61
29
 
62
- → [Runtime config docs](https://kensaur.us/mushi-mushi/docs/concepts/runtime-config) ·
63
- maintainer deep-dive: [SDK_RUNTIME_CONFIG.md](https://github.com/kensaurus/mushi-mushi/blob/master/docs/SDK_RUNTIME_CONFIG.md)
30
+ ## What's inside
64
31
 
65
- ## Features
32
+ | | |
33
+ | --- | --- |
34
+ | **Report screen** | A free-text note, an optional type, a screenshot the reporter can mark up or remove. Reporters see your replies and fix status under **Your reports**. |
35
+ | **Capture** | Screenshot, console, network, Web Vitals, and a timeline of routes and clicks before the report. |
36
+ | **Offline** | Reports queue in IndexedDB and send when the connection is back. An on-device spam filter and rate limit run first. |
37
+ | **Privacy** | A built-in PII scrubber, selector masking for screenshots, and opt-in session replay. |
38
+ | **Stays out of the way** | Zero-size host with `pointer-events: none`, keyboard-first, respects reduced motion. |
39
+ | **Runtime config** | Change the widget from the console without a deploy. Values you set in code win. |
40
+ | **Size** | CI caps the core bundle at 89.5 KB gzipped (105 KB uncompressed). Screenshot markup and the Your reports views load only when used. |
66
41
 
67
- - One-screen report: free text first, optional type chips, one attachments row, Send. Reporters see their reports, plain-English statuses, developer replies, and "Fixed in v1.4 — does it work now?" in **Your reports**.
68
- - Shadow-DOM widget with CSS isolation, host-adaptive theming (CSS tokens), light/dark, keyboard-first (`Esc` / `⌘+Enter`, focus trap), and `prefers-reduced-motion`.
69
- - Screenshot, console ring buffer, network (fetch interceptor), Web Vitals, and a repro timeline of routes + clicks.
70
- - IndexedDB offline queue with auto-sync, on-device spam pre-filter, client-side rate limiting, and a payload-size guard that degrades instead of wedging the queue.
71
- - Host element is zero-sized with `pointer-events: none`; only visible controls opt back in. Verify with `Mushi.diagnose()`.
72
- - Selector-level screenshot masking/blocking, a one-tap "Remove screenshot" control, and a built-in PII scrubber.
42
+ ## Recipes
73
43
 
74
- ## Trigger modes
44
+ **Use your own button** instead of the launcher. Other modes: `auto`, `edge-tab`, `banner`, `manual`, `hidden` ([trigger modes](https://kensaur.us/mushi-mushi/docs/concepts/trigger-modes)).
75
45
 
76
- Choose where and when the launcher shows — `auto`, `edge-tab`, `attach` (bring your own button), `manual`, or `hidden` — plus viewport-aware `smartHide`, route/selector suppression, and `anchor` CSS that tracks your app shell's tab bars or mini-players.
77
-
78
- ```typescript
79
- // Bring your own launcher — Mushi injects no UI of its own.
46
+ ```ts
80
47
  const mushi = Mushi.init({
81
48
  projectId: 'proj_xxx',
82
49
  apiKey: 'mushi_xxx',
@@ -85,256 +52,80 @@ const mushi = Mushi.init({
85
52
  mushi.attachTo('#support-menu-feedback');
86
53
  ```
87
54
 
88
- → Full posture matrix in [Trigger modes](https://kensaur.us/mushi-mushi/docs/concepts/trigger-modes). Coherent defaults via [SDK presets](https://kensaur.us/mushi-mushi/docs/sdks/presets) (`production-calm` / `beta-loud` / `internal-debug` / `manual-only`).
89
-
90
- <details>
91
- <summary><b>Proactive triggers</b> — open the widget on rage clicks, long tasks, or API cascades</summary>
55
+ **Ask for a report when users get stuck** (rage clicks, long tasks, failing API calls). Session limits and cooldowns are always on.
92
56
 
93
- ```typescript
94
- Mushi.init({
95
- projectId: 'proj_xxx',
96
- apiKey: 'mushi_xxx',
97
- proactive: {
98
- rageClick: true,
99
- longTask: true,
100
- apiCascade: true,
101
- errorBoundary: true, // catch global error / unhandledrejection
102
- cooldown: { maxProactivePerSession: 2, dismissCooldownHours: 24, suppressAfterDismissals: 3 },
103
- },
104
- });
57
+ ```ts
58
+ Mushi.init({ projectId: 'proj_xxx', apiKey: 'mushi_xxx', proactive: { rageClick: true, longTask: true, apiCascade: true } });
105
59
  ```
106
60
 
107
- Each trigger respects its config flag (set `rageClick: false` to disable). Fatigue prevention (session limits, cooldowns, permanent suppression) is always on.
108
- </details>
109
-
110
- <details>
111
- <summary><b>Privacy &amp; screenshot redaction</b></summary>
61
+ **Keep private data out of screenshots.** Masked elements are painted over; blocked ones are removed.
112
62
 
113
- ```typescript
63
+ ```ts
114
64
  Mushi.init({
115
65
  projectId: 'proj_xxx',
116
66
  apiKey: 'mushi_xxx',
117
- privacy: {
118
- maskSelectors: ['[data-private]', 'input'], // painted over before serialisation
119
- blockSelectors: ['[data-payment]', '[data-auth-token]'], // removed entirely
120
- allowUserRemoveScreenshot: true, // one-tap "Remove screenshot" in panel
121
- },
67
+ privacy: { maskSelectors: ['input'], blockSelectors: ['[data-payment]'], allowUserRemoveScreenshot: true },
122
68
  });
123
69
  ```
124
70
 
125
- The report screen renders the attached screenshot as a thumbnail (tap to enlarge) with a **Remove** control and a configurable privacy caption (`widget.screenshotSensitiveHint`). A "Mark up" overlay lets reporters highlight / blur / arrow before submitting.
126
- </details>
127
-
128
- <details>
129
- <summary><b>Session replay</b> — opt-in rolling buffer attached on submit</summary>
130
-
131
- ```bash
132
- npm install rrweb # only for replay: 'rrweb' — your app installs it
133
- ```
71
+ **Record a session replay** of the moments before a report. Install `rrweb` in your app and pass your own import, so your bundler can split it into a lazy chunk ([coexisting with Sentry Replay](https://kensaur.us/mushi-mushi/docs/sdks/sentry-replay-coexistence)).
134
72
 
135
- ```typescript
136
- Mushi.init({
137
- projectId: 'proj_xxx',
138
- apiKey: 'mushi_xxx',
139
- capture: {
140
- // 'rrweb' — full DOM replay (every text node and input masked)
141
- // 'lite' — dependency-free, records clicks only
142
- // 'sentry'— reuse an installed @sentry/replay session
143
- // 'off' — default
144
- replay: 'rrweb',
145
- // Hand the SDK your own import of rrweb.
146
- rrweb: () => import('rrweb'),
147
- },
148
- });
73
+ ```ts
74
+ Mushi.init({ projectId: 'proj_xxx', apiKey: 'mushi_xxx', capture: { replay: 'rrweb', rrweb: () => import('rrweb') } });
149
75
  ```
150
76
 
151
- `replay: 'rrweb'` needs `rrweb` in your app (`npm install rrweb`). It is an optional peer dependency, so apps that don't record replay don't download it.
152
-
153
- `rrweb: () => import('rrweb')` is what makes `'rrweb'` mode work in a bundled app. The SDK cannot import rrweb itself: a published package's `import('rrweb')` is invisible to your bundler, so rrweb never reaches your build. An import written in your code is one your bundler sees, and it code-splits rrweb into its own chunk that loads only for sessions sampled into replay. Without the loader the SDK tries a global `rrweb` (the UMD build from a `<script>` tag), then a bare `import('rrweb')` (which resolves only under an import map); if neither works, it records clicks only (`'lite'`) and warns once in the console. The `rrweb` option ships in `@mushi-mushi/web` 1.29.
77
+ **Send through your own domain** so ad blockers don't drop reports. Your proxy must allow only your host, project and `/v1/` paths.
154
78
 
155
- Records continuously from init (so you capture the moments *before* the report), trimmed to a rolling window. Already on Sentry Replay? See [coexistence](https://kensaur.us/mushi-mushi/docs/sdks/sentry-replay-coexistence).
156
- </details>
79
+ ```ts
80
+ Mushi.init({ projectId: 'proj_xxx', apiKey: 'mushi_xxx', tunnel: '/api/mushi-tunnel', ignoreErrors: ['ResizeObserver loop'] });
81
+ ```
157
82
 
158
- <details>
159
- <summary><b>Power-user APIs</b> — identify, tags, breadcrumbs, structured exception capture</summary>
83
+ **Tag users and report caught errors.** Breadcrumbs, tags and any active Sentry scope are attached for you.
160
84
 
161
- ```typescript
85
+ ```ts
162
86
  const mushi = Mushi.init({ projectId: 'proj_xxx', apiKey: 'mushi_xxx' });
163
-
164
87
  mushi.identify('usr_42', { email: 'aya@example.com', segment: 'beta' });
165
- mushi.setTags({ plan: 'pro', region: 'apac' });
166
- mushi.addBreadcrumb({ category: 'custom', level: 'info', message: 'cart.checkout_started', data: { itemCount: 3 } });
167
88
 
168
89
  try {
169
90
  await runCheckout();
170
91
  } catch (err) {
171
- // Normalises any throw, attaches breadcrumbs + sticky tags + Sentry context.
172
92
  mushi.captureException(err, { severity: 'high', tags: { surface: 'checkout' } });
173
93
  }
174
94
  ```
175
95
 
176
- `installAutoBreadcrumbs()` ships route changes, `console.error/warn`, and `[data-testid]` clicks for free. PII is scrubbed before anything leaves the browser. Auto-detects `@sentry/browser` v7–v9 and captures the active scope into `MushiReport.sentryContext`, with deep-links both ways.
177
- </details>
178
-
179
- <details>
180
- <summary><b>Two-way replies &amp; Rewards</b> — let reporters follow up and earn points, no login</summary>
181
-
182
- The widget's "Your reports" tab lets reporters see team replies and respond, signed via HMAC against the public API key (no auth user required): `mushi.listMyReports()`, `mushi.listMyComments(id)`, `mushi.replyToReport(id, text)`. Call `mushi.identify()` and add a `rewards` block to track activity, tiers, and points. See [Rewards & contributor identity](https://kensaur.us/mushi-mushi/docs/concepts/rewards).
183
- </details>
184
-
185
- <details>
186
- <summary><b>Product analytics</b> — <code>track()</code>, funnels, paths and people in the same console</summary>
187
-
188
- ```typescript
189
- const mushi = Mushi.init({
190
- projectId: 'proj_xxx',
191
- apiKey: 'mushi_xxx',
192
- // Optional. Defaults: enabled, consent 'implied', DNT/GPC respected, sampleRate 1.
193
- analytics: { consent: 'required' },
194
- });
96
+ **Track product events** for funnels and paths in the same console. Do Not Track and Global Privacy Control are respected.
195
97
 
196
- mushi.setConsent('granted'); // only needed with consent: 'required'
197
- mushi.track('checkout_started', { plan: 'pro' }); // snake_case names, flat properties
198
- mushi.identify('usr_42'); // stitches earlier anonymous events to the person
98
+ ```ts
99
+ const mushi = Mushi.init({ projectId: 'proj_xxx', apiKey: 'mushi_xxx', analytics: { consent: 'required' } });
100
+ mushi.setConsent('granted');
101
+ mushi.track('checkout_started', { plan: 'pro' });
199
102
  ```
200
103
 
201
- Events batch to `POST /v1/sdk/events` (20 per batch or every 5 s, flushed on `pagehide`, spilled to `localStorage` when offline). Names must match `^[a-z][a-z0-9_]{1,63}$`; properties are flat `string | number | boolean | null`, PII-looking keys (`email`, `phone`, `token`, …) are dropped, and string values run through the PII scrubber. `analytics.enabled: false` turns it off; `navigator.doNotTrack` / Global Privacy Control are honoured by default. The console's **Users & Funnels** page reads the same events; retention defaults to 90 days per project.
202
- </details>
203
-
204
- <details>
205
- <summary><b>Runtime control &amp; self-noise filters</b> — imperative APIs and CSP-safe defaults</summary>
206
-
207
- ```typescript
208
- const mushi = Mushi.init({
209
- projectId: 'proj_xxx',
210
- apiKey: 'mushi_xxx',
211
- // 'auto' (default) skips the runtime-config fetch on localhost endpoints;
212
- // pass `true` to force everywhere, `false` to disable entirely.
213
- runtimeConfig: 'auto',
214
- capture: { network: true, ignoreUrls: [/\/api\/internal\//] },
215
- proactive: { apiCascade: { enabled: true, ignoreUrls: ['https://feature-flags.example.com'] } },
216
- });
104
+ **Check the install.** Safe to call before `Mushi.init()`; reports endpoint, CSP and widget health.
217
105
 
218
- mushi.show();
219
- mushi.hide();
220
- mushi.setTrigger('manual'); // switch posture at runtime
221
- mushi.openWith('bug'); // open the report screen with the Bug type picked
222
- mushi.attachTo('#support-menu'); // bind the launcher to your element
106
+ ```ts
107
+ const health = await Mushi.diagnose(); // { apiEndpointReachable, cspAllowsEndpoint, widgetMounted, widgetHostPointerSafe, ... }
223
108
  ```
224
109
 
225
- Internal Mushi requests are tagged `X-Mushi-Internal` and excluded from network capture + `apiCascade`, so an unconfigured CSP or a flaky local Supabase stack can never make Mushi report on Mushi. For advanced composition, `createProactiveManager()` and `setupProactiveTriggers()` are exported so you can wire friction detection into your own UI.
226
- </details>
227
-
228
- <details>
229
- <summary><b>Repro timeline</b> — <code>setScreen()</code> and the "what happened before" trail</summary>
110
+ **Name the current screen** for the "what happened before" timeline.
230
111
 
231
- ```typescript
112
+ ```ts
232
113
  const mushi = Mushi.init({ /* ... */ });
233
114
  mushi.setScreen({ name: 'Chat', route: '/chat', feature: 'roleplay' });
234
115
  ```
235
116
 
236
- The SDK auto-records route changes (`pushState` / `popstate` / `hashchange`), clicks (with selector + text snippet), and screen events into a 120-entry ring buffer, shipped as `MushiReport.timeline`. The admin renders it as a chronological "what happened before the report" card.
237
- </details>
238
-
239
- <details>
240
- <summary><b>Rich banner layout</b> — <code>trigger: 'banner'</code> with remote-driven copy</summary>
241
-
242
- ```typescript
243
- Mushi.init({
244
- projectId: 'proj_xxx',
245
- apiKey: 'mushi_xxx',
246
- widget: {
247
- trigger: 'banner',
248
- bannerConfig: {
249
- variant: 'brand', // 'neon' | 'brand' | 'subtle'
250
- position: 'top',
251
- message: 'Mushi is in beta — spotted something off? Tell us.',
252
- label: 'Beta', // pill before the message; `false` hides it
253
- bugCta: '🐛 Report a bug',
254
- featureCta: true,
255
- links: [{ label: 'My submissions', href: 'https://app.example.com/feedback' }],
256
- },
257
- },
258
- });
259
- ```
260
-
261
- All banner text renders via `textContent` (never HTML), so CMS-sourced copy can't inject markup. `message` and `label` can also be driven remotely per project from the dashboard runtime config — change copy without a deploy.
262
- </details>
117
+ **Match your brand.** The widget uses your page's font and light/dark colors. Override any token in CSS ([all tokens](https://github.com/kensaurus/mushi-mushi/blob/master/packages/web/src/styles.ts)):
263
118
 
264
- <details>
265
- <summary><b>Passive inventory discovery</b> — opt-in, PII-free route observations</summary>
266
-
267
- ```typescript
268
- Mushi.init({
269
- projectId: 'proj_xxx',
270
- apiKey: 'mushi_xxx',
271
- capture: {
272
- discoverInventory: {
273
- enabled: true,
274
- throttleMs: 60_000,
275
- routeTemplates: ['/practice/[id]', '/lessons/[slug]'],
276
- },
277
- },
278
- });
279
- ```
280
-
281
- Ships throttled, PII-free observations (route template, page title, `[data-testid]` values, recent fetch paths, query-param **keys** only, hashed user/session id) to `POST /v1/sdk/discovery`. The server aggregates them and drafts a first-pass `inventory.yaml` you can accept in **/inventory ▸ Discovery**. See [Inventory & gates](https://kensaur.us/mushi-mushi/docs/concepts/inventory-and-gates).
282
- </details>
283
-
284
- ## Host pass-through contract
285
-
286
- Mushi never blocks your app's UI. The host element (`#mushi-mushi-widget`) is `position: fixed`, zero-sized, with `pointer-events: none` — only the visible controls opt back into `pointer-events: auto` inside the Shadow DOM. In native WebView shells (iOS WKWebView, some Android Chromium builds) where `pointer-events: none` isn't always honoured on fixed overlays, use `hideOnSelector` or `Mushi.hide()` during fullscreen flows. Verify at runtime:
287
-
288
- ```typescript
289
- const health = await Mushi.diagnose();
290
- console.assert(health.widgetHostPointerSafe, 'Mushi host is blocking UI!');
291
- ```
292
-
293
- ## Health check
294
-
295
- ```typescript
296
- const health = await Mushi.diagnose();
297
- // → { apiEndpointReachable, cspAllowsEndpoint, widgetMounted, widgetHostPointerSafe, ... }
298
- ```
299
-
300
- Runs **before** `Mushi.init()` too — call it from a debug console or installer wizard to surface CSP / endpoint problems with zero risk of booting the widget.
301
-
302
- ## Test utilities
303
-
304
- Deterministic Playwright / jsdom helpers, published as a separate entry-point so production bundles pay nothing for them:
305
-
306
- ```ts
307
- import { triggerBug, openReport, waitForQueueDrain, expectMushiReady } from '@mushi-mushi/web/test-utils';
119
+ ```css
120
+ #mushi-mushi-widget { --mushi-accent: #b8860b; --mushi-accent-fg: #000; --mushi-font: Georgia, serif; }
308
121
  ```
309
122
 
310
- Every helper no-ops when `Mushi.getInstance()` returns `null`, so cloud-vs-local conditional-wiring tests don't need a branch.
311
-
312
- ## Known limitations
123
+ Screenshots cannot capture cross-origin iframes or tainted `<canvas>` elements, and strict CSP can block them. Playwright and jsdom helpers live in `@mushi-mushi/web/test-utils`, which production bundles never load.
313
124
 
314
- Screenshot capture uses canvas / SVG `foreignObject` serialization — it does not work with cross-origin iframes, tainted `<canvas>` elements, or pages with strict CSP. Best-effort on single-origin SPAs.
125
+ ## Learn more
315
126
 
316
- ## Bundle size
317
-
318
- ~7 KB brotli, enforced at 89.5 KB gzipped (105 KB uncompressed) in CI. Requires `@mushi-mushi/core` (installed automatically, not bundled inline). The widget looks like part of your app by default: your page's font, system light/dark colours, and an accent taken from `widget.accent`, then your `--mushi-accent`, `accent-color` or `<meta name="theme-color">` (ignored when it would vanish against the panel). Every colour is a CSS token you can set on `:root` or `#mushi-mushi-widget`, and CSS wins over JS config:
319
-
320
- ```css
321
- #mushi-mushi-widget {
322
- --mushi-accent: #b8860b; /* Send button, focus ring */
323
- --mushi-accent-fg: #000; /* text on the accent */
324
- --mushi-font: Georgia, serif; /* default: inherit */
325
- --mushi-bg: Canvas; --mushi-fg: CanvasText;
326
- /* also: --mushi-muted, --mushi-surface, --mushi-border, --mushi-success,
327
- --mushi-error, --mushi-radius, --mushi-shadow, --mushi-font-size */
328
- }
329
- ```
330
-
331
- Styles live in [`src/styles.ts`](./src/styles.ts).
127
+ [Web SDK reference](https://kensaur.us/mushi-mushi/docs/sdks/web) · [Runtime config](https://kensaur.us/mushi-mushi/docs/concepts/runtime-config) · [Presets](https://kensaur.us/mushi-mushi/docs/sdks/presets) · [Analytics](https://kensaur.us/mushi-mushi/docs/sdks/analytics) · [Rewards and replies](https://kensaur.us/mushi-mushi/docs/concepts/rewards)
332
128
 
333
129
  ## License
334
130
 
335
131
  MIT
336
-
337
- <!-- mushi-readme-stats-footer -->
338
- ---
339
-
340
- <sub>Monorepo scale (July 2026): 64 edge functions · 410 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.cjs CHANGED
@@ -5742,6 +5742,7 @@ async function loadRrweb(loader) {
5742
5742
  try {
5743
5743
  const specifier = globalThis.__MUSHI_RRWEB_SPECIFIER__ || RRWEB_SPECIFIER;
5744
5744
  rrwebModule = asRrweb(await import(
5745
+ /* webpackIgnore: true */
5745
5746
  /* @vite-ignore */
5746
5747
  specifier
5747
5748
  ));
@@ -6286,7 +6287,7 @@ function createProactiveManager(config = {}) {
6286
6287
 
6287
6288
  // src/version.ts
6288
6289
  var MUSHI_SDK_PACKAGE = "@mushi-mushi/web";
6289
- var MUSHI_SDK_VERSION = "1.31.1" ;
6290
+ var MUSHI_SDK_VERSION = "1.31.2" ;
6290
6291
  function resolveReportAppVersion(config, environment) {
6291
6292
  if (config.appVersion) return config.appVersion;
6292
6293
  const vercelId = config.integrations?.vercel?.analyticsId;