mushi-mushi 0.7.16 → 0.7.17
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/dist/index.js +16 -5
- package/package.json +2 -2
package/dist/index.js
CHANGED
|
@@ -1,9 +1,11 @@
|
|
|
1
1
|
#!/usr/bin/env node
|
|
2
2
|
|
|
3
3
|
// src/index.ts
|
|
4
|
+
import { spawnSync } from "child_process";
|
|
5
|
+
import { fileURLToPath } from "url";
|
|
4
6
|
import { runInit } from "@mushi-mushi/cli/init";
|
|
5
7
|
import { FRAMEWORK_IDS, isFrameworkId } from "@mushi-mushi/cli/detect";
|
|
6
|
-
var VERSION = true ? "0.7.
|
|
8
|
+
var VERSION = true ? "0.7.17" : "0.0.0-dev";
|
|
7
9
|
var MIN_NODE_MAJOR = 20;
|
|
8
10
|
var ISSUES_URL = "https://github.com/kensaurus/mushi-mushi/issues";
|
|
9
11
|
var HELP = `mushi-mushi \u2014 bug-reporting SDK launcher
|
|
@@ -24,12 +26,16 @@ Flags (forwarded to \`mushi init\`):
|
|
|
24
26
|
-v, --version print the launcher version and exit
|
|
25
27
|
-h, --help show this help
|
|
26
28
|
|
|
27
|
-
Other commands (status, reports, deploy, test, login, config,
|
|
28
|
-
|
|
29
|
-
\`mushi <command>\`.
|
|
29
|
+
Other commands (setup, status, reports, deploy, test, login, config, ...)
|
|
30
|
+
are forwarded to @mushi-mushi/cli, e.g. \`npx mushi-mushi setup --ide cursor\`.
|
|
30
31
|
|
|
31
32
|
Docs: https://github.com/kensaurus/mushi-mushi
|
|
32
33
|
Console: https://kensaur.us/mushi-mushi/`;
|
|
34
|
+
function forwardToCli(argv) {
|
|
35
|
+
const cliBin = fileURLToPath(import.meta.resolve("@mushi-mushi/cli"));
|
|
36
|
+
const result = spawnSync(process.execPath, [cliBin, ...argv], { stdio: "inherit" });
|
|
37
|
+
process.exit(result.status ?? 1);
|
|
38
|
+
}
|
|
33
39
|
function parseArgs(argv) {
|
|
34
40
|
const args = argv[0] === "init" ? argv.slice(1) : argv;
|
|
35
41
|
const out = { showHelp: false, showVersion: false };
|
|
@@ -98,9 +104,14 @@ Upgrade Node (https://nodejs.org/) and try again.
|
|
|
98
104
|
}
|
|
99
105
|
async function main() {
|
|
100
106
|
assertNodeVersion();
|
|
107
|
+
const rawArgs = process.argv.slice(2);
|
|
108
|
+
const first = rawArgs[0];
|
|
109
|
+
if (first !== void 0 && first !== "init" && !first.startsWith("-")) {
|
|
110
|
+
forwardToCli(rawArgs);
|
|
111
|
+
}
|
|
101
112
|
let parsed;
|
|
102
113
|
try {
|
|
103
|
-
parsed = parseArgs(
|
|
114
|
+
parsed = parseArgs(rawArgs);
|
|
104
115
|
} catch (err) {
|
|
105
116
|
process.stderr.write(`${err instanceof Error ? err.message : String(err)}
|
|
106
117
|
`);
|
package/package.json
CHANGED
|
@@ -1,13 +1,13 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "mushi-mushi",
|
|
3
|
-
"version": "0.7.
|
|
3
|
+
"version": "0.7.17",
|
|
4
4
|
"license": "MIT",
|
|
5
5
|
"description": "Ship a shake-to-report button and get AI-classified, deduped, ready-to-fix bug reports — one `npx mushi-mushi` command for React, Next.js, Vue, Nuxt, Svelte, SvelteKit, Angular, React Native, Expo, Capacitor, and vanilla JS. Companion to Sentry: catches the user-felt bugs crash trackers can't see. Wires into GitHub, Slack, Jira, Linear, PagerDuty, Langfuse, and any MCP-compatible AI agent (Cursor, Claude Code, Copilot).",
|
|
6
6
|
"bin": {
|
|
7
7
|
"mushi-mushi": "./dist/index.js"
|
|
8
8
|
},
|
|
9
9
|
"dependencies": {
|
|
10
|
-
"@mushi-mushi/cli": "^0.
|
|
10
|
+
"@mushi-mushi/cli": "^0.25.0"
|
|
11
11
|
},
|
|
12
12
|
"devDependencies": {
|
|
13
13
|
"@types/node": "^22.20.0",
|