@mushi-mushi/cli 0.26.1 → 0.27.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 +25 -0
- package/SECURITY.md +49 -0
- package/dist/chunk-3RG5ZIWI.js +10 -0
- package/dist/{chunk-2ZLYNNA3.js → chunk-7JZUKNN5.js} +207 -9
- package/dist/chunk-LFZ5ZIBI.js +8 -0
- package/dist/chunk-MXD5UNMP.js +10 -0
- package/dist/chunk-PDX44BCA.js +11 -0
- package/dist/{chunk-QOY3DULB.js → chunk-TZL3F3GT.js} +125 -7
- package/dist/{connect-PXLW4D64.js → connect-FAXWVFG2.js} +8 -4
- package/dist/{connect-2LCLLN7R.js → connect-QHVFH77E.js} +3 -2
- package/dist/detect.js +1 -0
- package/dist/{endpoint-DGS73AVM.js → endpoint-TEBF4IH6.js} +1 -0
- package/dist/index.js +557 -165
- package/dist/init.js +75 -5
- package/dist/{snippet-inject-NDAPEL2T.js → snippet-inject-7ABYE57O.js} +2 -0
- package/dist/{snippet-inject-LPRWTQDE.js → snippet-inject-CCXILWYZ.js} +1 -0
- package/dist/{version-5DCYWDRK.js → version-F3ZOPM5F.js} +2 -1
- package/dist/version.d.ts +1 -1
- package/dist/version.js +2 -1
- package/dist/wizard-args.js +1 -0
- package/package.json +4 -1
- package/dist/chunk-6XYPFV23.js +0 -10
- package/dist/chunk-PCTMFRKN.js +0 -8
|
@@ -4,15 +4,16 @@ import {
|
|
|
4
4
|
requireUuid,
|
|
5
5
|
saveConfig,
|
|
6
6
|
waitForIngestReady
|
|
7
|
-
} from "./chunk-
|
|
7
|
+
} from "./chunk-TZL3F3GT.js";
|
|
8
8
|
import {
|
|
9
9
|
MUSHI_MCP_PIN_SPEC
|
|
10
|
-
} from "./chunk-
|
|
10
|
+
} from "./chunk-LFZ5ZIBI.js";
|
|
11
11
|
import {
|
|
12
12
|
detectFramework,
|
|
13
13
|
envVarsToWrite,
|
|
14
14
|
readPackageJson
|
|
15
15
|
} from "./chunk-AIZRI665.js";
|
|
16
|
+
import "./chunk-3RG5ZIWI.js";
|
|
16
17
|
|
|
17
18
|
// src/connect.ts
|
|
18
19
|
import { appendFile, readFile as readFile2, writeFile as writeFile2 } from "fs/promises";
|
|
@@ -54,7 +55,7 @@ function buildMcpServerBlock(opts) {
|
|
|
54
55
|
env: {
|
|
55
56
|
MUSHI_API_ENDPOINT: opts.endpoint,
|
|
56
57
|
MUSHI_PROJECT_ID: opts.projectId,
|
|
57
|
-
MUSHI_API_KEY: opts.apiKey,
|
|
58
|
+
MUSHI_API_KEY: opts.inlineKey ? opts.apiKey : "${MUSHI_API_KEY}",
|
|
58
59
|
MUSHI_FEATURES: DEFAULT_MUSHI_FEATURES
|
|
59
60
|
}
|
|
60
61
|
};
|
|
@@ -155,11 +156,14 @@ async function runConnect(opts, baseConfig = {}) {
|
|
|
155
156
|
const serverBlock = buildMcpServerBlock({
|
|
156
157
|
endpoint,
|
|
157
158
|
projectId,
|
|
158
|
-
apiKey: opts.apiKey
|
|
159
|
+
apiKey: opts.apiKey,
|
|
160
|
+
inlineKey: false
|
|
161
|
+
// use ${MUSHI_API_KEY} placeholder; caller must export the key
|
|
159
162
|
});
|
|
160
163
|
await writeMcpServerEntry({ configPath: mcpPath, serverName, serverBlock });
|
|
161
164
|
await ensureMcpJsonGitignored(cwd, messages);
|
|
162
165
|
messages.push(`\u2713 Wired ${mcpPath} \u2014 restart Cursor and run "list mushi tools"`);
|
|
166
|
+
messages.push(` Set MUSHI_API_KEY="${opts.apiKey}" in your shell / .env.local before restarting the IDE.`);
|
|
163
167
|
}
|
|
164
168
|
let heartbeat = null;
|
|
165
169
|
if (opts.wait) {
|
|
@@ -1,9 +1,10 @@
|
|
|
1
1
|
#!/usr/bin/env node
|
|
2
2
|
import {
|
|
3
3
|
runConnect
|
|
4
|
-
} from "./chunk-
|
|
5
|
-
import "./chunk-
|
|
4
|
+
} from "./chunk-7JZUKNN5.js";
|
|
5
|
+
import "./chunk-MXD5UNMP.js";
|
|
6
6
|
import "./chunk-LDPFTQLE.js";
|
|
7
|
+
import "./chunk-PDX44BCA.js";
|
|
7
8
|
export {
|
|
8
9
|
runConnect
|
|
9
10
|
};
|
package/dist/detect.js
CHANGED