@mushi-mushi/cli 0.38.0 → 0.40.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.
Files changed (51) hide show
  1. package/dist/{chunk-AIZRI665.js → chunk-AWASJDQI.js} +62 -33
  2. package/dist/{chunk-KOBEOGNF.js → chunk-CG5KPP4S.js} +62 -33
  3. package/dist/chunk-CNJIN4ST.js +10 -0
  4. package/dist/{chunk-QZMSGTVZ.js → chunk-ETFORW35.js} +1 -1
  5. package/dist/chunk-FA5LABKE.js +2279 -0
  6. package/dist/chunk-JWG2QI3W.js +8 -0
  7. package/dist/{chunk-JXAH3XKH.js → chunk-PGLH5XP2.js} +3 -3
  8. package/dist/chunk-TNTSV54C.js +160 -0
  9. package/dist/{chunk-V3DR4WLG.js → chunk-UV4DMSQH.js} +1 -1
  10. package/dist/{chunk-BUCMB4NS.js → chunk-WXICRZIU.js} +4 -4
  11. package/dist/{connect-M2IGP63E.js → connect-BSMHOKUQ.js} +4 -4
  12. package/dist/{connect-OTHJSNHC.js → connect-NKWXYGN7.js} +4 -4
  13. package/dist/{daemon-VYXTQ5TG.js → daemon-6SCU35YF.js} +3 -3
  14. package/dist/{detect-WZT5X6LP.js → detect-SOXPECZ3.js} +5 -1
  15. package/dist/detect.d.ts +17 -1
  16. package/dist/detect.js +5 -1
  17. package/dist/index.js +130 -62
  18. package/dist/init.js +11 -2264
  19. package/dist/{snippet-inject-NDAPEL2T.js → snippet-inject-AVGVHTUJ.js} +3 -2
  20. package/dist/{snippet-inject-LPRWTQDE.js → snippet-inject-ETGBPDYB.js} +3 -2
  21. package/dist/{version-ULUVAZ3V.js → version-SLVFYTAI.js} +1 -1
  22. package/dist/version.d.ts +1 -1
  23. package/dist/version.js +1 -1
  24. package/dist/wizard-args.d.ts +35 -1
  25. package/dist/wizard-args.js +14 -95
  26. package/dist/wizard-bin.d.ts +32 -0
  27. package/dist/wizard-bin.js +106 -0
  28. package/package.json +8 -1
  29. package/templates/node/.env.example +4 -0
  30. package/templates/node/README.md +12 -0
  31. package/templates/node/gitignore +6 -0
  32. package/templates/node/package.json +15 -0
  33. package/templates/node/src/server.mjs +38 -0
  34. package/templates/svelte/.env.example +4 -0
  35. package/templates/svelte/README.md +10 -0
  36. package/templates/svelte/gitignore +6 -0
  37. package/templates/svelte/index.html +12 -0
  38. package/templates/svelte/package.json +20 -0
  39. package/templates/svelte/src/App.svelte +20 -0
  40. package/templates/svelte/src/main.ts +12 -0
  41. package/templates/svelte/vite.config.ts +6 -0
  42. package/templates/vue/.env.example +4 -0
  43. package/templates/vue/README.md +10 -0
  44. package/templates/vue/gitignore +6 -0
  45. package/templates/vue/index.html +12 -0
  46. package/templates/vue/package.json +20 -0
  47. package/templates/vue/src/App.vue +22 -0
  48. package/templates/vue/src/main.ts +12 -0
  49. package/templates/vue/vite.config.ts +6 -0
  50. package/dist/chunk-DJNAPA4D.js +0 -10
  51. package/dist/chunk-M5LN4ZWQ.js +0 -8
@@ -28,11 +28,12 @@ var FRAMEWORKS = {
28
28
  next: {
29
29
  id: "next",
30
30
  label: "Next.js",
31
- packageName: "@mushi-mushi/react",
31
+ packageName: "mushi-mushi",
32
+ importPath: "mushi-mushi/react",
32
33
  needsWebPackage: false,
33
34
  snippet: () => `// app/providers.tsx (or pages/_app.tsx for /pages router)
34
35
  'use client'
35
- import { MushiProvider } from '@mushi-mushi/react'
36
+ import { MushiProvider } from 'mushi-mushi/react'
36
37
 
37
38
  export function Providers({ children }: { children: React.ReactNode }) {
38
39
  return (
@@ -48,10 +49,11 @@ export function Providers({ children }: { children: React.ReactNode }) {
48
49
  react: {
49
50
  id: "react",
50
51
  label: "React",
51
- packageName: "@mushi-mushi/react",
52
+ packageName: "mushi-mushi",
53
+ importPath: "mushi-mushi/react",
52
54
  needsWebPackage: false,
53
55
  snippet: () => `// src/main.tsx
54
- import { MushiProvider } from '@mushi-mushi/react'
56
+ import { MushiProvider } from 'mushi-mushi/react'
55
57
 
56
58
  createRoot(document.getElementById('root')!).render(
57
59
  <MushiProvider config={{
@@ -65,11 +67,12 @@ createRoot(document.getElementById('root')!).render(
65
67
  cra: {
66
68
  id: "cra",
67
69
  label: "Create React App",
68
- packageName: "@mushi-mushi/react",
70
+ packageName: "mushi-mushi",
71
+ importPath: "mushi-mushi/react",
69
72
  needsWebPackage: false,
70
73
  // CRA inlines only REACT_APP_*-prefixed vars into process.env at build time.
71
74
  snippet: () => `// src/index.tsx
72
- import { MushiProvider } from '@mushi-mushi/react'
75
+ import { MushiProvider } from 'mushi-mushi/react'
73
76
 
74
77
  root.render(
75
78
  <MushiProvider config={{
@@ -83,12 +86,13 @@ root.render(
83
86
  remix: {
84
87
  id: "remix",
85
88
  label: "Remix",
86
- packageName: "@mushi-mushi/react",
89
+ packageName: "mushi-mushi",
90
+ importPath: "mushi-mushi/react",
87
91
  needsWebPackage: false,
88
92
  // Remix doesn't inline client env. Expose public values at runtime via the
89
93
  // root loader + window.ENV (works on both the classic compiler and Vite).
90
94
  snippet: () => `// app/root.tsx
91
- import { MushiProvider } from '@mushi-mushi/react'
95
+ import { MushiProvider } from 'mushi-mushi/react'
92
96
  import { useLoaderData } from '@remix-run/react'
93
97
 
94
98
  export async function loader() {
@@ -115,14 +119,15 @@ export default function App() {
115
119
  astro: {
116
120
  id: "astro",
117
121
  label: "Astro",
118
- packageName: "@mushi-mushi/web",
122
+ packageName: "mushi-mushi",
123
+ importPath: "mushi-mushi",
119
124
  needsWebPackage: false,
120
125
  // Astro exposes only PUBLIC_*-prefixed vars to client code (Vite-based).
121
126
  snippet: () => `---
122
127
  // src/layouts/Layout.astro (add this <script> once, e.g. in your base layout)
123
128
  ---
124
129
  <script>
125
- import { Mushi } from '@mushi-mushi/web'
130
+ import { Mushi } from 'mushi-mushi'
126
131
  Mushi.init({
127
132
  projectId: import.meta.env.PUBLIC_MUSHI_PROJECT_ID,
128
133
  apiKey: import.meta.env.PUBLIC_MUSHI_API_KEY,
@@ -132,12 +137,13 @@ export default function App() {
132
137
  solid: {
133
138
  id: "solid",
134
139
  label: "Solid",
135
- packageName: "@mushi-mushi/web",
140
+ packageName: "mushi-mushi",
141
+ importPath: "mushi-mushi",
136
142
  needsWebPackage: false,
137
143
  // Solid / SolidStart are Vite-based → VITE_*-prefixed client env.
138
144
  snippet: () => `// src/index.tsx (or src/app.tsx for SolidStart)
139
145
  import { onMount } from 'solid-js'
140
- import { Mushi } from '@mushi-mushi/web'
146
+ import { Mushi } from 'mushi-mushi'
141
147
 
142
148
  onMount(() => {
143
149
  Mushi.init({
@@ -149,10 +155,11 @@ onMount(() => {
149
155
  vue: {
150
156
  id: "vue",
151
157
  label: "Vue 3",
152
- packageName: "@mushi-mushi/vue",
158
+ packageName: "mushi-mushi",
159
+ importPath: "mushi-mushi/vue",
153
160
  needsWebPackage: false,
154
161
  snippet: () => `// src/main.ts
155
- import { MushiPlugin } from '@mushi-mushi/vue'
162
+ import { MushiPlugin } from 'mushi-mushi/vue'
156
163
 
157
164
  app.use(MushiPlugin, {
158
165
  projectId: import.meta.env.VITE_MUSHI_PROJECT_ID,
@@ -162,10 +169,11 @@ app.use(MushiPlugin, {
162
169
  nuxt: {
163
170
  id: "nuxt",
164
171
  label: "Nuxt",
165
- packageName: "@mushi-mushi/vue",
172
+ packageName: "mushi-mushi",
173
+ importPath: "mushi-mushi/vue",
166
174
  needsWebPackage: false,
167
175
  snippet: () => `// plugins/mushi.client.ts
168
- import { MushiPlugin } from '@mushi-mushi/vue'
176
+ import { MushiPlugin } from 'mushi-mushi/vue'
169
177
 
170
178
  export default defineNuxtPlugin((nuxtApp) => {
171
179
  nuxtApp.vueApp.use(MushiPlugin, {
@@ -177,10 +185,11 @@ export default defineNuxtPlugin((nuxtApp) => {
177
185
  svelte: {
178
186
  id: "svelte",
179
187
  label: "Svelte",
180
- packageName: "@mushi-mushi/svelte",
188
+ packageName: "mushi-mushi",
189
+ importPath: "mushi-mushi/svelte",
181
190
  needsWebPackage: false,
182
191
  snippet: () => `// src/main.ts
183
- import { initMushi } from '@mushi-mushi/svelte'
192
+ import { initMushi } from 'mushi-mushi/svelte'
184
193
 
185
194
  initMushi({
186
195
  projectId: import.meta.env.VITE_MUSHI_PROJECT_ID,
@@ -190,14 +199,15 @@ initMushi({
190
199
  sveltekit: {
191
200
  id: "sveltekit",
192
201
  label: "SvelteKit",
193
- packageName: "@mushi-mushi/svelte",
202
+ packageName: "mushi-mushi",
203
+ importPath: "mushi-mushi/svelte",
194
204
  needsWebPackage: false,
195
205
  snippet: () => `// src/routes/+layout.svelte
196
206
  <script>
197
207
  import { onMount } from 'svelte'
198
208
 
199
209
  onMount(async () => {
200
- const { initMushi } = await import('@mushi-mushi/svelte')
210
+ const { initMushi } = await import('mushi-mushi/svelte')
201
211
  initMushi({
202
212
  projectId: import.meta.env.VITE_MUSHI_PROJECT_ID,
203
213
  apiKey: import.meta.env.VITE_MUSHI_API_KEY,
@@ -208,10 +218,11 @@ initMushi({
208
218
  angular: {
209
219
  id: "angular",
210
220
  label: "Angular",
211
- packageName: "@mushi-mushi/angular",
221
+ packageName: "mushi-mushi",
222
+ importPath: "mushi-mushi/angular",
212
223
  needsWebPackage: false,
213
224
  snippet: () => `// src/main.ts
214
- import { provideMushi } from '@mushi-mushi/angular'
225
+ import { provideMushi } from 'mushi-mushi/angular'
215
226
 
216
227
  bootstrapApplication(AppComponent, {
217
228
  providers: [
@@ -226,6 +237,7 @@ bootstrapApplication(AppComponent, {
226
237
  id: "expo",
227
238
  label: "Expo",
228
239
  packageName: "@mushi-mushi/react-native",
240
+ importPath: "@mushi-mushi/react-native",
229
241
  needsWebPackage: false,
230
242
  snippet: () => `// App.tsx
231
243
  import { MushiProvider } from '@mushi-mushi/react-native'
@@ -245,6 +257,7 @@ export default function App() {
245
257
  id: "react-native",
246
258
  label: "React Native",
247
259
  packageName: "@mushi-mushi/react-native",
260
+ importPath: "@mushi-mushi/react-native",
248
261
  needsWebPackage: false,
249
262
  snippet: () => `// App.tsx
250
263
  import { MushiProvider } from '@mushi-mushi/react-native'
@@ -264,6 +277,7 @@ export default function App() {
264
277
  id: "capacitor",
265
278
  label: "Capacitor (Ionic)",
266
279
  packageName: "@mushi-mushi/capacitor",
280
+ importPath: "@mushi-mushi/capacitor",
267
281
  needsWebPackage: false,
268
282
  /* The Capacitor plugin's public API is `Mushi.configure(...)`, not
269
283
  * `Mushi.init(...)` — see packages/capacitor/src/definitions.ts. We
@@ -282,11 +296,12 @@ await Mushi.configure({
282
296
  express: {
283
297
  id: "express",
284
298
  label: "Express",
285
- packageName: "@mushi-mushi/node",
299
+ packageName: "mushi-mushi",
300
+ importPath: "mushi-mushi/node",
286
301
  needsWebPackage: false,
287
302
  snippet: () => `// src/instrument.ts \u2014 load with: node --import ./dist/instrument.js
288
- import { MushiNodeClient, attachUnhandledHook } from '@mushi-mushi/node'
289
- import { mushiExpressErrorHandler } from '@mushi-mushi/node/express'
303
+ import { MushiNodeClient, attachUnhandledHook } from 'mushi-mushi/node'
304
+ import { mushiExpressErrorHandler } from 'mushi-mushi/node/express'
290
305
  import type { Express } from 'express'
291
306
 
292
307
  export const mushi = new MushiNodeClient({
@@ -303,11 +318,12 @@ export function attachMushi(app: Express) {
303
318
  fastify: {
304
319
  id: "fastify",
305
320
  label: "Fastify",
306
- packageName: "@mushi-mushi/node",
321
+ packageName: "mushi-mushi",
322
+ importPath: "mushi-mushi/node",
307
323
  needsWebPackage: false,
308
324
  snippet: () => `// src/instrument.ts \u2014 load with: node --import ./dist/instrument.js
309
- import { MushiNodeClient, attachUnhandledHook } from '@mushi-mushi/node'
310
- import { mushiFastifyPlugin } from '@mushi-mushi/node/fastify'
325
+ import { MushiNodeClient, attachUnhandledHook } from 'mushi-mushi/node'
326
+ import { mushiFastifyPlugin } from 'mushi-mushi/node/fastify'
311
327
  import Fastify from 'fastify'
312
328
 
313
329
  export const mushi = new MushiNodeClient({
@@ -323,11 +339,12 @@ mushiFastifyPlugin(app, { client: mushi })`
323
339
  hono: {
324
340
  id: "hono",
325
341
  label: "Hono",
326
- packageName: "@mushi-mushi/node",
342
+ packageName: "mushi-mushi",
343
+ importPath: "mushi-mushi/node",
327
344
  needsWebPackage: false,
328
345
  snippet: () => `// src/instrument.ts \u2014 load with: node --import ./dist/instrument.js
329
- import { MushiNodeClient, attachUnhandledHook } from '@mushi-mushi/node'
330
- import { mushiHonoErrorHandler } from '@mushi-mushi/node/hono'
346
+ import { MushiNodeClient, attachUnhandledHook } from 'mushi-mushi/node'
347
+ import { mushiHonoErrorHandler } from 'mushi-mushi/node/hono'
331
348
  import { Hono } from 'hono'
332
349
 
333
350
  export const mushi = new MushiNodeClient({
@@ -347,10 +364,11 @@ app.onError(
347
364
  vanilla: {
348
365
  id: "vanilla",
349
366
  label: "Vanilla JS / unknown",
350
- packageName: "@mushi-mushi/web",
367
+ packageName: "mushi-mushi",
368
+ importPath: "mushi-mushi",
351
369
  needsWebPackage: false,
352
370
  snippet: () => `// Anywhere in your client bundle
353
- import { Mushi } from '@mushi-mushi/web'
371
+ import { Mushi } from 'mushi-mushi'
354
372
 
355
373
  Mushi.init({
356
374
  projectId: import.meta.env.VITE_MUSHI_PROJECT_ID,
@@ -358,6 +376,15 @@ Mushi.init({
358
376
  })`
359
377
  }
360
378
  };
379
+ var UMBRELLA_PACKAGE = "mushi-mushi";
380
+ function isMushiSdkPackage(name) {
381
+ return name === UMBRELLA_PACKAGE || name.startsWith("@mushi-mushi/");
382
+ }
383
+ function isLauncherOnly(name, spec) {
384
+ if (name !== UMBRELLA_PACKAGE || !spec) return false;
385
+ const m = /^[\^~>=<\sv]*(\d+)\./.exec(spec);
386
+ return m ? Number(m[1]) === 0 : false;
387
+ }
361
388
  function readPackageJson(cwd) {
362
389
  const path = join(cwd, "package.json");
363
390
  if (!existsSync(path)) return null;
@@ -465,6 +492,8 @@ export {
465
492
  FRAMEWORK_IDS,
466
493
  isFrameworkId,
467
494
  FRAMEWORKS,
495
+ isMushiSdkPackage,
496
+ isLauncherOnly,
468
497
  readPackageJson,
469
498
  detectFramework,
470
499
  detectPackageManager,
@@ -30,11 +30,12 @@ var FRAMEWORKS = {
30
30
  next: {
31
31
  id: "next",
32
32
  label: "Next.js",
33
- packageName: "@mushi-mushi/react",
33
+ packageName: "mushi-mushi",
34
+ importPath: "mushi-mushi/react",
34
35
  needsWebPackage: false,
35
36
  snippet: () => `// app/providers.tsx (or pages/_app.tsx for /pages router)
36
37
  'use client'
37
- import { MushiProvider } from '@mushi-mushi/react'
38
+ import { MushiProvider } from 'mushi-mushi/react'
38
39
 
39
40
  export function Providers({ children }: { children: React.ReactNode }) {
40
41
  return (
@@ -50,10 +51,11 @@ export function Providers({ children }: { children: React.ReactNode }) {
50
51
  react: {
51
52
  id: "react",
52
53
  label: "React",
53
- packageName: "@mushi-mushi/react",
54
+ packageName: "mushi-mushi",
55
+ importPath: "mushi-mushi/react",
54
56
  needsWebPackage: false,
55
57
  snippet: () => `// src/main.tsx
56
- import { MushiProvider } from '@mushi-mushi/react'
58
+ import { MushiProvider } from 'mushi-mushi/react'
57
59
 
58
60
  createRoot(document.getElementById('root')!).render(
59
61
  <MushiProvider config={{
@@ -67,11 +69,12 @@ createRoot(document.getElementById('root')!).render(
67
69
  cra: {
68
70
  id: "cra",
69
71
  label: "Create React App",
70
- packageName: "@mushi-mushi/react",
72
+ packageName: "mushi-mushi",
73
+ importPath: "mushi-mushi/react",
71
74
  needsWebPackage: false,
72
75
  // CRA inlines only REACT_APP_*-prefixed vars into process.env at build time.
73
76
  snippet: () => `// src/index.tsx
74
- import { MushiProvider } from '@mushi-mushi/react'
77
+ import { MushiProvider } from 'mushi-mushi/react'
75
78
 
76
79
  root.render(
77
80
  <MushiProvider config={{
@@ -85,12 +88,13 @@ root.render(
85
88
  remix: {
86
89
  id: "remix",
87
90
  label: "Remix",
88
- packageName: "@mushi-mushi/react",
91
+ packageName: "mushi-mushi",
92
+ importPath: "mushi-mushi/react",
89
93
  needsWebPackage: false,
90
94
  // Remix doesn't inline client env. Expose public values at runtime via the
91
95
  // root loader + window.ENV (works on both the classic compiler and Vite).
92
96
  snippet: () => `// app/root.tsx
93
- import { MushiProvider } from '@mushi-mushi/react'
97
+ import { MushiProvider } from 'mushi-mushi/react'
94
98
  import { useLoaderData } from '@remix-run/react'
95
99
 
96
100
  export async function loader() {
@@ -117,14 +121,15 @@ export default function App() {
117
121
  astro: {
118
122
  id: "astro",
119
123
  label: "Astro",
120
- packageName: "@mushi-mushi/web",
124
+ packageName: "mushi-mushi",
125
+ importPath: "mushi-mushi",
121
126
  needsWebPackage: false,
122
127
  // Astro exposes only PUBLIC_*-prefixed vars to client code (Vite-based).
123
128
  snippet: () => `---
124
129
  // src/layouts/Layout.astro (add this <script> once, e.g. in your base layout)
125
130
  ---
126
131
  <script>
127
- import { Mushi } from '@mushi-mushi/web'
132
+ import { Mushi } from 'mushi-mushi'
128
133
  Mushi.init({
129
134
  projectId: import.meta.env.PUBLIC_MUSHI_PROJECT_ID,
130
135
  apiKey: import.meta.env.PUBLIC_MUSHI_API_KEY,
@@ -134,12 +139,13 @@ export default function App() {
134
139
  solid: {
135
140
  id: "solid",
136
141
  label: "Solid",
137
- packageName: "@mushi-mushi/web",
142
+ packageName: "mushi-mushi",
143
+ importPath: "mushi-mushi",
138
144
  needsWebPackage: false,
139
145
  // Solid / SolidStart are Vite-based → VITE_*-prefixed client env.
140
146
  snippet: () => `// src/index.tsx (or src/app.tsx for SolidStart)
141
147
  import { onMount } from 'solid-js'
142
- import { Mushi } from '@mushi-mushi/web'
148
+ import { Mushi } from 'mushi-mushi'
143
149
 
144
150
  onMount(() => {
145
151
  Mushi.init({
@@ -151,10 +157,11 @@ onMount(() => {
151
157
  vue: {
152
158
  id: "vue",
153
159
  label: "Vue 3",
154
- packageName: "@mushi-mushi/vue",
160
+ packageName: "mushi-mushi",
161
+ importPath: "mushi-mushi/vue",
155
162
  needsWebPackage: false,
156
163
  snippet: () => `// src/main.ts
157
- import { MushiPlugin } from '@mushi-mushi/vue'
164
+ import { MushiPlugin } from 'mushi-mushi/vue'
158
165
 
159
166
  app.use(MushiPlugin, {
160
167
  projectId: import.meta.env.VITE_MUSHI_PROJECT_ID,
@@ -164,10 +171,11 @@ app.use(MushiPlugin, {
164
171
  nuxt: {
165
172
  id: "nuxt",
166
173
  label: "Nuxt",
167
- packageName: "@mushi-mushi/vue",
174
+ packageName: "mushi-mushi",
175
+ importPath: "mushi-mushi/vue",
168
176
  needsWebPackage: false,
169
177
  snippet: () => `// plugins/mushi.client.ts
170
- import { MushiPlugin } from '@mushi-mushi/vue'
178
+ import { MushiPlugin } from 'mushi-mushi/vue'
171
179
 
172
180
  export default defineNuxtPlugin((nuxtApp) => {
173
181
  nuxtApp.vueApp.use(MushiPlugin, {
@@ -179,10 +187,11 @@ export default defineNuxtPlugin((nuxtApp) => {
179
187
  svelte: {
180
188
  id: "svelte",
181
189
  label: "Svelte",
182
- packageName: "@mushi-mushi/svelte",
190
+ packageName: "mushi-mushi",
191
+ importPath: "mushi-mushi/svelte",
183
192
  needsWebPackage: false,
184
193
  snippet: () => `// src/main.ts
185
- import { initMushi } from '@mushi-mushi/svelte'
194
+ import { initMushi } from 'mushi-mushi/svelte'
186
195
 
187
196
  initMushi({
188
197
  projectId: import.meta.env.VITE_MUSHI_PROJECT_ID,
@@ -192,14 +201,15 @@ initMushi({
192
201
  sveltekit: {
193
202
  id: "sveltekit",
194
203
  label: "SvelteKit",
195
- packageName: "@mushi-mushi/svelte",
204
+ packageName: "mushi-mushi",
205
+ importPath: "mushi-mushi/svelte",
196
206
  needsWebPackage: false,
197
207
  snippet: () => `// src/routes/+layout.svelte
198
208
  <script>
199
209
  import { onMount } from 'svelte'
200
210
 
201
211
  onMount(async () => {
202
- const { initMushi } = await import('@mushi-mushi/svelte')
212
+ const { initMushi } = await import('mushi-mushi/svelte')
203
213
  initMushi({
204
214
  projectId: import.meta.env.VITE_MUSHI_PROJECT_ID,
205
215
  apiKey: import.meta.env.VITE_MUSHI_API_KEY,
@@ -210,10 +220,11 @@ initMushi({
210
220
  angular: {
211
221
  id: "angular",
212
222
  label: "Angular",
213
- packageName: "@mushi-mushi/angular",
223
+ packageName: "mushi-mushi",
224
+ importPath: "mushi-mushi/angular",
214
225
  needsWebPackage: false,
215
226
  snippet: () => `// src/main.ts
216
- import { provideMushi } from '@mushi-mushi/angular'
227
+ import { provideMushi } from 'mushi-mushi/angular'
217
228
 
218
229
  bootstrapApplication(AppComponent, {
219
230
  providers: [
@@ -228,6 +239,7 @@ bootstrapApplication(AppComponent, {
228
239
  id: "expo",
229
240
  label: "Expo",
230
241
  packageName: "@mushi-mushi/react-native",
242
+ importPath: "@mushi-mushi/react-native",
231
243
  needsWebPackage: false,
232
244
  snippet: () => `// App.tsx
233
245
  import { MushiProvider } from '@mushi-mushi/react-native'
@@ -247,6 +259,7 @@ export default function App() {
247
259
  id: "react-native",
248
260
  label: "React Native",
249
261
  packageName: "@mushi-mushi/react-native",
262
+ importPath: "@mushi-mushi/react-native",
250
263
  needsWebPackage: false,
251
264
  snippet: () => `// App.tsx
252
265
  import { MushiProvider } from '@mushi-mushi/react-native'
@@ -266,6 +279,7 @@ export default function App() {
266
279
  id: "capacitor",
267
280
  label: "Capacitor (Ionic)",
268
281
  packageName: "@mushi-mushi/capacitor",
282
+ importPath: "@mushi-mushi/capacitor",
269
283
  needsWebPackage: false,
270
284
  /* The Capacitor plugin's public API is `Mushi.configure(...)`, not
271
285
  * `Mushi.init(...)` — see packages/capacitor/src/definitions.ts. We
@@ -284,11 +298,12 @@ await Mushi.configure({
284
298
  express: {
285
299
  id: "express",
286
300
  label: "Express",
287
- packageName: "@mushi-mushi/node",
301
+ packageName: "mushi-mushi",
302
+ importPath: "mushi-mushi/node",
288
303
  needsWebPackage: false,
289
304
  snippet: () => `// src/instrument.ts \u2014 load with: node --import ./dist/instrument.js
290
- import { MushiNodeClient, attachUnhandledHook } from '@mushi-mushi/node'
291
- import { mushiExpressErrorHandler } from '@mushi-mushi/node/express'
305
+ import { MushiNodeClient, attachUnhandledHook } from 'mushi-mushi/node'
306
+ import { mushiExpressErrorHandler } from 'mushi-mushi/node/express'
292
307
  import type { Express } from 'express'
293
308
 
294
309
  export const mushi = new MushiNodeClient({
@@ -305,11 +320,12 @@ export function attachMushi(app: Express) {
305
320
  fastify: {
306
321
  id: "fastify",
307
322
  label: "Fastify",
308
- packageName: "@mushi-mushi/node",
323
+ packageName: "mushi-mushi",
324
+ importPath: "mushi-mushi/node",
309
325
  needsWebPackage: false,
310
326
  snippet: () => `// src/instrument.ts \u2014 load with: node --import ./dist/instrument.js
311
- import { MushiNodeClient, attachUnhandledHook } from '@mushi-mushi/node'
312
- import { mushiFastifyPlugin } from '@mushi-mushi/node/fastify'
327
+ import { MushiNodeClient, attachUnhandledHook } from 'mushi-mushi/node'
328
+ import { mushiFastifyPlugin } from 'mushi-mushi/node/fastify'
313
329
  import Fastify from 'fastify'
314
330
 
315
331
  export const mushi = new MushiNodeClient({
@@ -325,11 +341,12 @@ mushiFastifyPlugin(app, { client: mushi })`
325
341
  hono: {
326
342
  id: "hono",
327
343
  label: "Hono",
328
- packageName: "@mushi-mushi/node",
344
+ packageName: "mushi-mushi",
345
+ importPath: "mushi-mushi/node",
329
346
  needsWebPackage: false,
330
347
  snippet: () => `// src/instrument.ts \u2014 load with: node --import ./dist/instrument.js
331
- import { MushiNodeClient, attachUnhandledHook } from '@mushi-mushi/node'
332
- import { mushiHonoErrorHandler } from '@mushi-mushi/node/hono'
348
+ import { MushiNodeClient, attachUnhandledHook } from 'mushi-mushi/node'
349
+ import { mushiHonoErrorHandler } from 'mushi-mushi/node/hono'
333
350
  import { Hono } from 'hono'
334
351
 
335
352
  export const mushi = new MushiNodeClient({
@@ -349,10 +366,11 @@ app.onError(
349
366
  vanilla: {
350
367
  id: "vanilla",
351
368
  label: "Vanilla JS / unknown",
352
- packageName: "@mushi-mushi/web",
369
+ packageName: "mushi-mushi",
370
+ importPath: "mushi-mushi",
353
371
  needsWebPackage: false,
354
372
  snippet: () => `// Anywhere in your client bundle
355
- import { Mushi } from '@mushi-mushi/web'
373
+ import { Mushi } from 'mushi-mushi'
356
374
 
357
375
  Mushi.init({
358
376
  projectId: import.meta.env.VITE_MUSHI_PROJECT_ID,
@@ -360,6 +378,15 @@ Mushi.init({
360
378
  })`
361
379
  }
362
380
  };
381
+ var UMBRELLA_PACKAGE = "mushi-mushi";
382
+ function isMushiSdkPackage(name) {
383
+ return name === UMBRELLA_PACKAGE || name.startsWith("@mushi-mushi/");
384
+ }
385
+ function isLauncherOnly(name, spec) {
386
+ if (name !== UMBRELLA_PACKAGE || !spec) return false;
387
+ const m = /^[\^~>=<\sv]*(\d+)\./.exec(spec);
388
+ return m ? Number(m[1]) === 0 : false;
389
+ }
363
390
  function readPackageJson(cwd) {
364
391
  const path = join(cwd, "package.json");
365
392
  if (!existsSync(path)) return null;
@@ -467,6 +494,8 @@ export {
467
494
  FRAMEWORK_IDS,
468
495
  isFrameworkId,
469
496
  FRAMEWORKS,
497
+ isMushiSdkPackage,
498
+ isLauncherOnly,
470
499
  readPackageJson,
471
500
  detectFramework,
472
501
  detectPackageManager,
@@ -0,0 +1,10 @@
1
+ #!/usr/bin/env node
2
+
3
+ // src/version.ts
4
+ var MUSHI_CLI_VERSION = true ? "0.40.0" : "0.0.0-dev";
5
+ var MUSHI_MCP_PIN_SPEC = "@mushi-mushi/mcp@0.31.2";
6
+
7
+ export {
8
+ MUSHI_CLI_VERSION,
9
+ MUSHI_MCP_PIN_SPEC
10
+ };
@@ -1,7 +1,7 @@
1
1
  #!/usr/bin/env node
2
2
  import {
3
3
  MUSHI_CLI_VERSION
4
- } from "./chunk-DJNAPA4D.js";
4
+ } from "./chunk-CNJIN4ST.js";
5
5
  import {
6
6
  CLOUD_API_ENDPOINT,
7
7
  normalizeEndpoint