@mushi-mushi/core 1.33.4 → 1.33.6

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/LICENSE CHANGED
@@ -1,6 +1,6 @@
1
1
  MIT License
2
2
 
3
- Copyright (c) 2026 Kenji Sakuramoto / Kensaurus 合同会社
3
+ Copyright (c) 2026 kensaurus LLC
4
4
 
5
5
  Permission is hereby granted, free of charge, to any person obtaining a copy
6
6
  of this software and associated documentation files (the "Software"), to deal
package/README.md CHANGED
@@ -1,6 +1,6 @@
1
1
  # @mushi-mushi/core
2
2
 
3
- > **Your AI wrote it. Mushi tells you why it broke.**
3
+ > **Your AI wrote it. Mushi Mushi tells you why it broke.**
4
4
 
5
5
  The shared types, API client and utilities under every [Mushi Mushi](https://github.com/kensaurus/mushi-mushi) SDK.
6
6
 
@@ -20,9 +20,11 @@ const env = captureEnvironment(); // viewport, user agent, connection, page timi
20
20
 
21
21
  Docs: [Core SDK reference](https://kensaur.us/mushi-mushi/docs/sdks/core)
22
22
 
23
+ Mushi Mushi is built first for people who make apps with AI, mostly on their own. Developers who own their code and teams with bug reports in many places use it too: [who it's for](https://kensaur.us/mushi-mushi/docs/who-its-for).
24
+
23
25
  ```mermaid
24
26
  flowchart LR
25
- A["Framework SDK<br/>react, vue, web…"] --> B["@mushi-mushi/core<br/>types · API client · queue"] --> C["Mushi API"]
27
+ A["Framework SDK<br/>react, vue, web…"] --> B["@mushi-mushi/core<br/>types · API client · queue"] --> C["Mushi Mushi API"]
26
28
  ```
27
29
 
28
30
  ## What's inside
@@ -30,7 +32,7 @@ flowchart LR
30
32
  | Piece | What it does |
31
33
  | --- | --- |
32
34
  | Types | `MushiConfig`, `MushiReport`, `MushiEnvironment` and every shared interface |
33
- | API client (`createApiClient`) | Fetch with retry and backoff. Tags its own requests with `X-Mushi-Internal` so SDKs never report on Mushi |
35
+ | API client (`createApiClient`) | Fetch with retry and backoff. Tags its own requests with `X-Mushi-Internal` so SDKs never report on Mushi Mushi |
34
36
  | Pre-filter (`createPreFilter`) | On-device spam and gibberish filter, before anything is sent |
35
37
  | Offline queue (`createOfflineQueue`) | IndexedDB queue that syncs on reconnect |
36
38
  | Environment (`captureEnvironment`) | Viewport, user agent and client hints, connection, accessibility preferences, page-load timing |
package/dist/index.cjs CHANGED
@@ -2322,6 +2322,20 @@ var MUSHI_EVENTS = {
2322
2322
  // app (not a dev server) that got a diagnosis (_shared/activation.ts).
2323
2323
  activated: { surface: "server", required: ["project_id"] },
2324
2324
  fix_merged: { surface: "server", required: ["project_id"] },
2325
+ // New-user path, once per project each (dedup key '<event>:<project id>',
2326
+ // _shared/funnel-steps.ts; docs/plan-simplicity-2026-10.md Phase 0).
2327
+ // sdk_seen_*: the first SDK check-in from a dev machine / from a live site
2328
+ // or store app. first_real_report: the first end-user report from a
2329
+ // deployed app (activation.ts isActivationCandidate), stricter than
2330
+ // first_report_received, which also counts a test bug from localhost.
2331
+ // first_diagnosis_viewed: the first diagnosis a person saw in the console
2332
+ // (today the first-run sample diagnosis, the setup step diagnosis_viewed).
2333
+ sdk_seen_localhost: { surface: "server", required: ["project_id", "origin_kind"] },
2334
+ sdk_seen_live: { surface: "server", required: ["project_id", "origin_kind"] },
2335
+ first_real_report: { surface: "server", required: ["project_id", "report_id"] },
2336
+ first_diagnosis_viewed: { surface: "server", required: ["project_id"] },
2337
+ first_fix_dispatched: { surface: "server", required: ["project_id", "report_id"] },
2338
+ first_fix_merged: { surface: "server", required: ["project_id", "report_id"] },
2325
2339
  upgrade_completed: { surface: "server", required: ["project_id", "plan"] },
2326
2340
  repo_digest_created: { surface: "server", required: ["project_id"] },
2327
2341
  repo_diagram_generated: { surface: "server", required: ["project_id"] },