@mushi-mushi/cli 0.26.1 → 0.27.1

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.
@@ -4,15 +4,16 @@ import {
4
4
  requireUuid,
5
5
  saveConfig,
6
6
  waitForIngestReady
7
- } from "./chunk-QOY3DULB.js";
7
+ } from "./chunk-M7CDSRZM.js";
8
8
  import {
9
9
  MUSHI_MCP_PIN_SPEC
10
- } from "./chunk-PCTMFRKN.js";
10
+ } from "./chunk-XLGHUOKY.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-2ZLYNNA3.js";
5
- import "./chunk-6XYPFV23.js";
4
+ } from "./chunk-NNB2NONG.js";
5
+ import "./chunk-DBAEB56N.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
@@ -8,6 +8,7 @@ import {
8
8
  isFrameworkId,
9
9
  readPackageJson
10
10
  } from "./chunk-AIZRI665.js";
11
+ import "./chunk-3RG5ZIWI.js";
11
12
  export {
12
13
  FRAMEWORKS,
13
14
  FRAMEWORK_IDS,
@@ -6,6 +6,7 @@ import {
6
6
  normalizeEndpoint,
7
7
  resolveCloudEndpoint
8
8
  } from "./chunk-LDPFTQLE.js";
9
+ import "./chunk-PDX44BCA.js";
9
10
  export {
10
11
  CLOUD_API_ENDPOINT,
11
12
  TEST_REPORT_FETCH_TIMEOUT_MS,