@mushi-mushi/core 1.27.2 → 1.29.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 +4 -1
- package/dist/index.cjs +726 -69
- package/dist/index.cjs.map +1 -1
- package/dist/index.d.cts +553 -8
- package/dist/index.d.ts +553 -8
- package/dist/index.js +689 -70
- package/dist/index.js.map +1 -1
- package/package.json +5 -13
- package/CODE_OF_CONDUCT.md +0 -51
- package/CONTRIBUTING.md +0 -226
- package/SECURITY.md +0 -359
package/README.md
CHANGED
|
@@ -96,6 +96,9 @@ Top-level `MushiConfig` fields (consumed by `@mushi-mushi/web` and framework wra
|
|
|
96
96
|
|-------|---------|----------|
|
|
97
97
|
| `sampleRate` | `1` | Probabilistic gate for **automatic** error reports (`0`–`1`). User-initiated feedback always sends. |
|
|
98
98
|
| `replaySampleRate` | `1` | Probabilistic gate for session replay; decided once at session init. Independent of `sampleRate`. |
|
|
99
|
+
| `replaysOnErrorSampleRate` | `0` | Start a replay buffer on automatic errors when session sample missed. Keep `0` unless you explicitly want rrweb. |
|
|
100
|
+
| `tunnel` | — | Same-origin ingest base (e.g. `/api/mushi-tunnel`). Wins over `apiEndpoint` so browser calls stay first-party. Pagehide uses `fetch` keepalive, then a `{ mushiBeacon, path, headers, body }` envelope because `sendBeacon` cannot set headers. |
|
|
101
|
+
| `ignoreErrors` / `denyUrls` / `allowUrls` | — | Drop **automatic** captures only. Never applied to user widget feedback. |
|
|
99
102
|
| `beforeSend` | — | `(report) => report \| null \| Promise<…>` after built-in PII scrub. Return `null` to drop. |
|
|
100
103
|
| `beforeSendFeedback` | — | Deprecated feedback-only hook; ignored when `beforeSend` is set. |
|
|
101
104
|
|
|
@@ -138,4 +141,4 @@ MIT
|
|
|
138
141
|
<!-- mushi-readme-stats-footer -->
|
|
139
142
|
---
|
|
140
143
|
|
|
141
|
-
<sub>Monorepo scale (July 2026):
|
|
144
|
+
<sub>Monorepo scale (July 2026): 59 edge functions · 374 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>
|