@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
@@ -0,0 +1,20 @@
1
+ {
2
+ "name": "mushi-vue-app",
3
+ "private": true,
4
+ "version": "0.0.1",
5
+ "type": "module",
6
+ "scripts": {
7
+ "dev": "vite",
8
+ "build": "vite build",
9
+ "preview": "vite preview"
10
+ },
11
+ "dependencies": {
12
+ "mushi-mushi": "^1.35.0",
13
+ "vue": "^3.5.0"
14
+ },
15
+ "devDependencies": {
16
+ "@vitejs/plugin-vue": "^6.0.0",
17
+ "typescript": "^5.9.0",
18
+ "vite": "^7.0.0"
19
+ }
20
+ }
@@ -0,0 +1,22 @@
1
+ <script setup lang="ts">
2
+ function throwDemoError(): void {
3
+ throw new Error('Demo error — check your Mushi dashboard for the report')
4
+ }
5
+ </script>
6
+
7
+ <template>
8
+ <main style="font-family: system-ui; padding: 2rem; max-width: 40rem; margin: 0 auto">
9
+ <h1>Mushi Mushi + Vue 3</h1>
10
+ <p>
11
+ The Mushi widget is mounted. Shake your phone (mobile) or use the floating
12
+ button to file a bug report — or trigger a demo error:
13
+ </p>
14
+ <button @click="throwDemoError">Throw a demo error</button>
15
+ <p>
16
+ Reports land in your
17
+ <a href="https://kensaur.us/mushi-mushi/admin" target="_blank" rel="noreferrer">
18
+ Mushi console</a
19
+ >, diagnosed in plain English.
20
+ </p>
21
+ </main>
22
+ </template>
@@ -0,0 +1,12 @@
1
+ import { createApp } from 'vue'
2
+ import { MushiPlugin } from 'mushi-mushi/vue'
3
+ import App from './App.vue'
4
+
5
+ const app = createApp(App)
6
+
7
+ app.use(MushiPlugin, {
8
+ projectId: import.meta.env.VITE_MUSHI_PROJECT_ID,
9
+ apiKey: import.meta.env.VITE_MUSHI_API_KEY,
10
+ })
11
+
12
+ app.mount('#app')
@@ -0,0 +1,6 @@
1
+ import { defineConfig } from 'vite'
2
+ import vue from '@vitejs/plugin-vue'
3
+
4
+ export default defineConfig({
5
+ plugins: [vue()],
6
+ })
@@ -1,10 +0,0 @@
1
- #!/usr/bin/env node
2
-
3
- // src/version.ts
4
- var MUSHI_CLI_VERSION = true ? "0.38.0" : "0.0.0-dev";
5
- var MUSHI_MCP_PIN_SPEC = "@mushi-mushi/mcp@0.31.0";
6
-
7
- export {
8
- MUSHI_CLI_VERSION,
9
- MUSHI_MCP_PIN_SPEC
10
- };
@@ -1,8 +0,0 @@
1
- // src/version.ts
2
- var MUSHI_CLI_VERSION = true ? "0.38.0" : "0.0.0-dev";
3
- var MUSHI_MCP_PIN_SPEC = "@mushi-mushi/mcp@0.31.0";
4
-
5
- export {
6
- MUSHI_CLI_VERSION,
7
- MUSHI_MCP_PIN_SPEC
8
- };