mimi-seed 0.24.0 → 0.25.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.
package/dist/index.js CHANGED
@@ -2,29 +2,40 @@
2
2
  import {
3
3
  CONFIG_LOCATION,
4
4
  CREDENTIALS,
5
+ CREDENTIAL_STORE_ENV,
5
6
  MCP_PKG,
6
7
  absoluteWindowsPathDirs,
7
8
  catalog,
9
+ clearKeyIdMarker,
8
10
  cmdDeploy,
9
11
  cmdSetup,
10
12
  cmdTelemetry,
11
13
  credLabel,
12
14
  credNote,
15
+ credentialFileProblemMessage,
16
+ credentialProblemText,
17
+ credentialStoreReport,
13
18
  deleteConfig,
14
19
  detectAll,
15
20
  detectHints,
16
21
  fetchWithTimeout,
17
22
  findProjectLink,
18
- findProjectManifest,
23
+ forgetFailedDataKeyLookup,
19
24
  getEffectiveConfig,
20
25
  hasAnyProjectSignal,
26
+ isCredentialStoreMode,
21
27
  isLang,
22
28
  isSatisfied,
23
29
  linkProject,
30
+ lookupDataKey,
31
+ lookupProjectManifest,
32
+ macosLoginKeychain,
24
33
  manifestServiceEntries,
25
34
  migrateLegacyJenkins,
35
+ obtainDataKey,
26
36
  readBodyWithTimeout,
27
37
  resolveLang,
38
+ rewriteCredentialFiles,
28
39
  runMcpBin,
29
40
  t,
30
41
  telemetryNotice,
@@ -32,11 +43,12 @@ import {
32
43
  usageRun,
33
44
  version,
34
45
  writeConfig,
46
+ writeCredentialFile,
35
47
  writeSettings
36
- } from "./chunk-OT25DVTW.js";
48
+ } from "./chunk-VDPT3HBY.js";
37
49
 
38
50
  // src/index.ts
39
- import kleur11 from "kleur";
51
+ import kleur12 from "kleur";
40
52
 
41
53
  // src/mcp-client.ts
42
54
  var M = catalog(
@@ -287,7 +299,7 @@ async function cmdAuth(args) {
287
299
  if (sub === "threads") return void exitWith(await runMcpBin("mimi-seed-social-auth", ["threads", ...rest]));
288
300
  if (sub === "tiktok") return void exitWith(await runMcpBin("mimi-seed-tiktok-business-auth", rest));
289
301
  if (sub === "ci") {
290
- const { cmdSetup: cmdSetup2 } = await import("./setup-ZZESWJB5.js");
302
+ const { cmdSetup: cmdSetup2 } = await import("./setup-CCB43UTW.js");
291
303
  await cmdSetup2(["--only", "github,gitlab", "--reconnect", "github,gitlab"]);
292
304
  return;
293
305
  }
@@ -400,7 +412,8 @@ async function writeCodexMcpConfig(cfg) {
400
412
  let current;
401
413
  try {
402
414
  current = await fs.readFile(configPath, "utf8");
403
- } catch {
415
+ } catch (error) {
416
+ if (error.code !== "ENOENT") throw error;
404
417
  current = "";
405
418
  }
406
419
  const legacy = current.match(/\[mcp_servers\.mimi-seed\]\s*\n(?:(?!\[)[\s\S])*/);
@@ -744,6 +757,15 @@ function getLatestTag(cwd) {
744
757
  return null;
745
758
  }
746
759
  }
760
+ function isCommitRef(cwd, ref) {
761
+ if (ref.startsWith("-")) return false;
762
+ try {
763
+ git(cwd, ["rev-parse", "--verify", "--quiet", `${ref}^{commit}`]);
764
+ return true;
765
+ } catch {
766
+ return false;
767
+ }
768
+ }
747
769
  function getGitLog(cwd, opts = {}) {
748
770
  const { from, to = "HEAD", limit = 30 } = opts;
749
771
  if (from?.startsWith("-") || to.startsWith("-")) return [];
@@ -845,7 +867,9 @@ async function runDoctor(opts) {
845
867
  const cfg = await getEffectiveConfig();
846
868
  const remote = cfg !== null || await remoteConfigured(cwd);
847
869
  if (!cfg) {
848
- if (remote) r.fail(m.noToken, m.noTokenFix);
870
+ const corrupt = credentialFileProblemMessage("~/.mimi-seed/config.json");
871
+ if (corrupt) r.fail(m.noToken, corrupt);
872
+ else if (remote) r.fail(m.noToken, m.noTokenFix);
849
873
  else r.warn(m.noTokenLocal, m.noTokenLocalDetail);
850
874
  } else {
851
875
  r.ok(m.tokenSaved, `${cfg.prefix}\u2026 (${cfg.createdAt.slice(0, 10)})`);
@@ -876,15 +900,26 @@ async function runDoctor(opts) {
876
900
  const base = credLabel(spec);
877
901
  const note = credNote(spec);
878
902
  const label = note ? `${base} (${note})` : base;
903
+ const fix = d.invalid ? credentialProblemText(d.invalid, spec.fix) : `\u2192 ${spec.fix}`;
879
904
  if (d.present) r.ok(base, d.detail);
880
- else if (isSatisfied(spec, detected)) r.warn(label, t().setup.fallbackWorking);
881
- else if (spec.requirement === "optional") r.warn(`${label}`, `\u2192 ${spec.fix}`);
905
+ else if (isSatisfied(spec, detected)) r.warn(label, d.invalid ? fix : t().setup.fallbackWorking);
906
+ else if (spec.requirement === "optional") r.warn(`${label}`, fix);
882
907
  else if (spec.requirement === "platform" && !platforms.includes(spec.platform)) {
883
- r.warn(label, `${t().setup.neededFor(spec.platform)} \u2192 ${spec.fix}`);
884
- } else r.fail(base, `\u2192 ${spec.fix}`);
885
- }
908
+ r.warn(label, d.invalid ? fix : `${t().setup.neededFor(spec.platform)} \u2192 ${spec.fix}`);
909
+ } else r.fail(base, fix);
910
+ }
911
+ const store = credentialStoreReport();
912
+ const plain = store.files.filter((f) => f.state === "plaintext").length;
913
+ const sealed = store.files.filter((f) => f.state === "encrypted").length;
914
+ if (store.effective === "file") r.ok(m.storeLabel, sealed > 0 ? m.storeEncrypted(sealed) : m.storePlain);
915
+ else if (plain > 0) r.warn(m.storeLabel, m.storePlainLeft(plain));
916
+ else r.ok(m.storeLabel, m.storeEncrypted(sealed));
886
917
  r.text(kleur4.dim(m.credsHint));
887
- const loaded = findProjectManifest(cwd);
918
+ const manifestLookup = lookupProjectManifest(cwd);
919
+ if (manifestLookup.state === "invalid") {
920
+ r.fail(m.manifestInvalid, m.manifestInvalidDetail(manifestLookup.filePath, m.manifestReason[manifestLookup.reason]));
921
+ }
922
+ const loaded = manifestLookup.state === "ok" ? manifestLookup.loaded : null;
888
923
  if (loaded) {
889
924
  const projName = loaded.manifest.displayName ?? loaded.manifest.project ?? m.thisProject;
890
925
  r.section("project", m.requirements(projName));
@@ -1384,12 +1419,14 @@ var SKIP_DIRS = /* @__PURE__ */ new Set([
1384
1419
  ]);
1385
1420
  async function walk(root, maxDepth = 7) {
1386
1421
  const result = [];
1422
+ const unread = [];
1387
1423
  async function visit(dir, depth) {
1388
1424
  if (depth > maxDepth) return;
1389
1425
  let entries;
1390
1426
  try {
1391
1427
  entries = await fs6.readdir(dir, { withFileTypes: true });
1392
1428
  } catch {
1429
+ unread.push(path6.relative(root, dir).replace(/\\/g, "/") || ".");
1393
1430
  return;
1394
1431
  }
1395
1432
  for (const entry of entries) {
@@ -1401,7 +1438,7 @@ async function walk(root, maxDepth = 7) {
1401
1438
  }
1402
1439
  }
1403
1440
  await visit(root, 0);
1404
- return result;
1441
+ return { files: result, unread };
1405
1442
  }
1406
1443
  function parseCatalog(text) {
1407
1444
  const versions = /* @__PURE__ */ new Map();
@@ -1507,7 +1544,13 @@ async function reactNativeIapEvidence(root, manifestFile, manifestText, resolveT
1507
1544
  try {
1508
1545
  manifest = JSON.parse(manifestText);
1509
1546
  } catch {
1510
- return null;
1547
+ if (!manifestText.includes("react-native-iap")) return null;
1548
+ return {
1549
+ file: displayPath(root, manifestFile),
1550
+ module: "com.android.billingclient:billing",
1551
+ expression: "package.json mentions react-native-iap but is not valid JSON; transitive Billing version is unresolved",
1552
+ source: "unresolved"
1553
+ };
1511
1554
  }
1512
1555
  const dependencyGroups = ["dependencies", "devDependencies", "optionalDependencies"].map((key) => manifest[key]).filter((value) => Boolean(value) && typeof value === "object");
1513
1556
  const entries = dependencyGroups.flatMap((group) => Object.entries(group)).filter((entry2) => typeof entry2[1] === "string");
@@ -1741,9 +1784,18 @@ async function checkBillingCompliance(projectPath, now = /* @__PURE__ */ new Dat
1741
1784
  throw new Error(`Android project path does not exist or is not readable: ${root}`);
1742
1785
  }
1743
1786
  if (!rootStat.isDirectory()) throw new Error(`Android project path is not a directory: ${root}`);
1744
- const files = await walk(root);
1787
+ const walked = await walk(root);
1788
+ const unreadPaths = walked.unread;
1745
1789
  const texts = /* @__PURE__ */ new Map();
1746
- for (const file of files) texts.set(file, await fs6.readFile(file, "utf8"));
1790
+ for (const file of walked.files) {
1791
+ try {
1792
+ texts.set(file, await fs6.readFile(file, "utf8"));
1793
+ } catch {
1794
+ unreadPaths.push(path6.relative(root, file).replace(/\\/g, "/"));
1795
+ }
1796
+ }
1797
+ unreadPaths.sort();
1798
+ const files = walked.files.filter((file) => texts.has(file));
1747
1799
  const catalogs = files.filter((file) => path6.basename(file) === "libs.versions.toml").map((file) => ({ file, scope: catalogScope(file), info: parseCatalog(texts.get(file) ?? "") }));
1748
1800
  const variablesByFile = /* @__PURE__ */ new Map();
1749
1801
  for (const [file, text] of texts) {
@@ -1883,12 +1935,19 @@ async function checkBillingCompliance(projectPath, now = /* @__PURE__ */ new Dat
1883
1935
  status = "pass";
1884
1936
  summary = `Billing Library ${detectedVersions.join(", ")} satisfies the current submission policy.`;
1885
1937
  }
1938
+ if (unreadPaths.length > 0) {
1939
+ const listed = unreadPaths.length > 3 ? `${unreadPaths.slice(0, 3).join(", ")}, +${unreadPaths.length - 3}` : unreadPaths.join(", ");
1940
+ if (status === "pass" || status === "not_used") status = "unresolved";
1941
+ summary = `${summary} Some paths could not be read, so a Billing dependency in them was not checked: ${listed}.`;
1942
+ actions.push("Fix the permissions on the unread paths (or narrow the project path to the app) and run the check again.");
1943
+ }
1886
1944
  return {
1887
1945
  projectPath: root,
1888
1946
  checkedAt: now.toISOString(),
1889
1947
  status,
1890
1948
  detectedVersions,
1891
1949
  evidence,
1950
+ unreadPaths,
1892
1951
  policy,
1893
1952
  summary,
1894
1953
  actions,
@@ -1967,6 +2026,47 @@ function packageDir(file) {
1967
2026
  const match = file.replace(/\\/g, "/").match(/^(.*\/node_modules\/(?:@[^/]+\/)?[^/]+)/);
1968
2027
  return match?.[1];
1969
2028
  }
2029
+ function parseJsonWithComments(text) {
2030
+ let out = "";
2031
+ let i = 0;
2032
+ while (i < text.length) {
2033
+ const ch = text[i];
2034
+ if (ch === '"') {
2035
+ let j = i + 1;
2036
+ while (j < text.length && text[j] !== '"') j += text[j] === "\\" ? 2 : 1;
2037
+ out += text.slice(i, j + 1);
2038
+ i = j + 1;
2039
+ } else if (ch === "/" && text[i + 1] === "/") {
2040
+ while (i < text.length && text[i] !== "\n") i++;
2041
+ } else if (ch === "/" && text[i + 1] === "*") {
2042
+ const end = text.indexOf("*/", i + 2);
2043
+ if (end < 0) throw new SyntaxError("Unterminated comment");
2044
+ out += " ";
2045
+ i = end + 2;
2046
+ } else {
2047
+ out += ch;
2048
+ i++;
2049
+ }
2050
+ }
2051
+ let result = "";
2052
+ for (let k = 0; k < out.length; k++) {
2053
+ const ch = out[k];
2054
+ if (ch === '"') {
2055
+ let j = k + 1;
2056
+ while (j < out.length && out[j] !== '"') j += out[j] === "\\" ? 2 : 1;
2057
+ result += out.slice(k, j + 1);
2058
+ k = j;
2059
+ continue;
2060
+ }
2061
+ if (ch === ",") {
2062
+ let j = k + 1;
2063
+ while (j < out.length && /\s/.test(out[j])) j++;
2064
+ if (out[j] === "}" || out[j] === "]") continue;
2065
+ }
2066
+ result += ch;
2067
+ }
2068
+ return JSON.parse(result);
2069
+ }
1970
2070
 
1971
2071
  // ../core/src/checks/release-doctor/fcm.ts
1972
2072
  var FCM_LEGACY_SEND_SOURCE = "https://firebase.google.com/docs/cloud-messaging/send/v1-api";
@@ -2847,7 +2947,8 @@ var UNRESOLVED_CODES = /* @__PURE__ */ new Set([
2847
2947
  "BILLING_UNRESOLVED",
2848
2948
  "IOS_XCODE_UNRESOLVED",
2849
2949
  "IOS_XCODE_MIXED_PINS",
2850
- "IOS_SDK_POLICY_REFRESH_REQUIRED"
2950
+ "IOS_SDK_POLICY_REFRESH_REQUIRED",
2951
+ "SCAN_PATHS_NOT_READ"
2851
2952
  ]);
2852
2953
  async function conventionFiles(root, files, found) {
2853
2954
  const declared = found.map((owner) => ({ ...owner, plugin: true }));
@@ -2888,6 +2989,7 @@ async function conventionFiles(root, files, found) {
2888
2989
  try {
2889
2990
  entries = await fs8.readdir(dir, { withFileTypes: true });
2890
2991
  } catch {
2992
+ incomplete = true;
2891
2993
  return;
2892
2994
  }
2893
2995
  for (const entry of entries) {
@@ -2909,6 +3011,7 @@ async function conventionFiles(root, files, found) {
2909
3011
  const relative = path10.relative(root, absolute).replace(/\\/g, "/");
2910
3012
  return { absolute, relative, text: await fs8.readFile(absolute, "utf8"), sample: owner.sample, demo: owner.demo, convention: true };
2911
3013
  } catch {
3014
+ incomplete = true;
2912
3015
  return void 0;
2913
3016
  }
2914
3017
  };
@@ -2924,6 +3027,7 @@ async function conventionFiles(root, files, found) {
2924
3027
  }
2925
3028
  async function walk2(root, maxSourceFiles = MAX_SOURCE_FILES, maxDepth = 7) {
2926
3029
  const files = [];
3030
+ const unread = [];
2927
3031
  const conventionRoots = [];
2928
3032
  const sourceCandidates = [];
2929
3033
  async function visit(dir, depth, excluded, sample, demo) {
@@ -2932,6 +3036,7 @@ async function walk2(root, maxSourceFiles = MAX_SOURCE_FILES, maxDepth = 7) {
2932
3036
  try {
2933
3037
  entries = await fs8.readdir(dir, { withFileTypes: true });
2934
3038
  } catch {
3039
+ unread.push(path10.relative(root, dir).replace(/\\/g, "/") || ".");
2935
3040
  return;
2936
3041
  }
2937
3042
  const nestedRepository = depth > 0 && entries.some((entry) => entry.name === ".git");
@@ -2958,6 +3063,7 @@ async function walk2(root, maxSourceFiles = MAX_SOURCE_FILES, maxDepth = 7) {
2958
3063
  try {
2959
3064
  files.push({ absolute, relative, text: await fs8.readFile(absolute, "utf8"), sample: sampleHere, demo });
2960
3065
  } catch {
3066
+ unread.push(relative);
2961
3067
  }
2962
3068
  continue;
2963
3069
  }
@@ -2978,7 +3084,8 @@ async function walk2(root, maxSourceFiles = MAX_SOURCE_FILES, maxDepth = 7) {
2978
3084
  files,
2979
3085
  fcmSources: await readFcmSources(prioritized.slice(0, maxSourceFiles)),
2980
3086
  sourceScanTruncated: prioritized.length > maxSourceFiles,
2981
- conventionTruncated: convention.truncated
3087
+ conventionTruncated: convention.truncated,
3088
+ unread: unread.sort()
2982
3089
  };
2983
3090
  }
2984
3091
  async function readFcmSources(candidates) {
@@ -3337,9 +3444,9 @@ function xcodeEvidence(file, raw, version2) {
3337
3444
  function easXcodeEvidence(file) {
3338
3445
  let json;
3339
3446
  try {
3340
- json = JSON.parse(file.text);
3447
+ json = parseJsonWithComments(file.text);
3341
3448
  } catch {
3342
- return [];
3449
+ return [{ file: file.relative, raw: "could not be parsed; its ios.image pins were not read", beta: false, unparsed: true }];
3343
3450
  }
3344
3451
  const build = json?.build;
3345
3452
  if (!build || typeof build !== "object") return [];
@@ -3540,6 +3647,23 @@ function iosXcodeFindings(files, now) {
3540
3647
  }
3541
3648
  }];
3542
3649
  }
3650
+ const unparsed = evidence.filter((row) => row.unparsed);
3651
+ if (unparsed.length > 0) {
3652
+ return [{
3653
+ code: "IOS_XCODE_UNRESOLVED",
3654
+ severity: "info",
3655
+ title: "The Xcode version used for iOS release builds could not be fully resolved",
3656
+ detail: `The pinned Xcode found meets the minimum (Xcode ${minimumXcode}, ${sdk} SDK), but ${describePins(unparsed)}, and a pin there may be older.`,
3657
+ action: `Fix the file so it parses, or confirm the release build uses Xcode ${minimumXcode} or later (run \`xcodebuild -version\` on the build machine).`,
3658
+ file: unparsed[0].file,
3659
+ sourceUrl,
3660
+ ko: {
3661
+ title: "iOS \uB9B4\uB9AC\uC2A4 \uBE4C\uB4DC\uC758 Xcode \uBC84\uC804\uC744 \uBAA8\uB450 \uD655\uC815\uD558\uC9C0 \uBABB\uD568",
3662
+ detail: `\uAC10\uC9C0\uB41C Xcode \uACE0\uC815\uAC12\uC740 \uCD5C\uC18C \uAE30\uC900(Xcode ${minimumXcode}, ${sdk} SDK)\uC744 \uCDA9\uC871\uD558\uC9C0\uB9CC, ${unparsed.map((row) => row.file).join(", ")} \uD30C\uC77C\uC744 \uD574\uC11D\uD558\uC9C0 \uBABB\uD574 \uADF8 \uC548\uC758 \uACE0\uC815\uAC12\uC740 \uD655\uC778\uD558\uC9C0 \uBABB\uD588\uC2B5\uB2C8\uB2E4. \uB354 \uB0AE\uC740 \uBC84\uC804\uC77C \uC218 \uC788\uC2B5\uB2C8\uB2E4.`,
3663
+ action: `\uD30C\uC77C\uC744 \uD574\uC11D \uAC00\uB2A5\uD558\uAC8C \uACE0\uCE58\uAC70\uB098, \uB9B4\uB9AC\uC2A4 \uBE4C\uB4DC\uAC00 Xcode ${minimumXcode} \uC774\uC0C1\uC744 \uC4F0\uB294\uC9C0 \uBE4C\uB4DC \uBA38\uC2E0\uC5D0\uC11C \`xcodebuild -version\`\uC73C\uB85C \uD655\uC778\uD558\uC138\uC694.`
3664
+ }
3665
+ }];
3666
+ }
3543
3667
  const beta = resolved.some((row) => row.beta);
3544
3668
  return [{
3545
3669
  code: "IOS_XCODE_OK",
@@ -4059,7 +4183,7 @@ function targetSdkFindings(gradleFiles, now, supplementalEvidence = [], resolveC
4059
4183
  netScripts.set(entry.file.absolute, file ? { ...entry, file, excluded: void 0 } : entry);
4060
4184
  }
4061
4185
  for (const file of used.values()) if (!netScripts.has(file.absolute)) netScripts.set(file.absolute, { file });
4062
- const netIssues = unreadConventionRoots.map((dir) => `${dir} (a convention build too large to read completely)`);
4186
+ const netIssues = unreadConventionRoots.map((dir) => `${dir} (a convention build that could not be read completely)`);
4063
4187
  for (const { file: script, excluded: scriptExcluded, inherited } of netScripts.values()) {
4064
4188
  const masked = maskStrings(script.text);
4065
4189
  for (const token of tokensOf(script)) {
@@ -4156,6 +4280,9 @@ function targetSdkFindings(gradleFiles, now, supplementalEvidence = [], resolveC
4156
4280
  }
4157
4281
 
4158
4282
  // ../core/src/checks/release-doctor.ts
4283
+ function unreadList(paths) {
4284
+ return paths.length > 3 ? `${paths.slice(0, 3).join(", ")}, +${paths.length - 3}` : paths.join(", ");
4285
+ }
4159
4286
  function billingEvidenceRows(billing) {
4160
4287
  const minimum = billing.policy.minimumSupportedMajor;
4161
4288
  const failing = (row) => minimum !== null && row.version !== void 0 && Number.parseInt(row.version, 10) < minimum;
@@ -4174,6 +4301,7 @@ function billingFinding(billing) {
4174
4301
  const minimum = billing.policy.minimumSupportedMajor;
4175
4302
  const schedule = (major) => billing.policy.knownSchedule.find((row) => row.major === major);
4176
4303
  const status = billing.status;
4304
+ const unreadOnly = status === "unresolved" && billing.unreadPaths.length > 0 && (billing.evidence.length === 0 || billing.policy.scheduleCurrent && billing.evidence.every((row) => Number.isFinite(Number.parseInt(row.version ?? "", 10))));
4177
4305
  const iapTarget = minimum === null ? void 0 : reactNativeIapUpgradeTarget(minimum);
4178
4306
  const iapBelow = minimum !== null && billing.evidence.some((row) => row.wrapper?.name === "react-native-iap" && row.version !== void 0 && Number.parseInt(row.version, 10) < minimum);
4179
4307
  const belowMajors = minimum === null ? [] : [...new Set(billing.detectedVersions.map((version2) => Number.parseInt(version2, 10)).filter((major) => Number.isFinite(major) && major < minimum))].sort((left, right) => left - right);
@@ -4203,35 +4331,59 @@ function billingFinding(billing) {
4203
4331
  ...belowMajors.map((major) => schedule(major) ? `Billing Library ${major}: \uAE30\uBCF8 \uB9C8\uAC10\uC77C ${schedule(major).submissionDeadline}, \uC5F0\uC7A5 \uB9C8\uAC10\uC77C ${schedule(major).extensionDeadline}(Play Console\uC5D0\uC11C \uC5F0\uC7A5\uC744 \uBC1B\uC740 \uACBD\uC6B0\uC5D0\uB9CC).` : `Billing Library ${major}: \uB9C8\uAC10\uC77C\uC774 \uB0B4\uC7A5\uB41C \uACF5\uC2DD \uD45C\uBCF4\uB2E4 \uC774\uB974\uBBC0\uB85C \uC720\uD6A8\uD55C \uC5F0\uC7A5\uC774 \uC788\uB2E4\uACE0 \uAC00\uC815\uD558\uC9C0 \uB9C8\uC138\uC694.`)
4204
4332
  ].filter(Boolean).join(" ")
4205
4333
  },
4206
- unresolved: billing.policy.scheduleCurrent ? {
4207
- title: "Google Play Billing version could not be resolved locally",
4208
- koTitle: "Google Play Billing \uBC84\uC804\uC744 \uB85C\uCEEC\uC5D0\uC11C \uD655\uC815\uD558\uC9C0 \uBABB\uD568",
4209
- koDetail: "Billing \uC758\uC874\uC131\uC740 \uCC3E\uC558\uC9C0\uB9CC \uBC84\uC804\uC744 \uC815\uC801\uC73C\uB85C \uD655\uC815\uD558\uC9C0 \uBABB\uD588\uC2B5\uB2C8\uB2E4.",
4334
+ // Nothing found, or every version resolved: the result is unresolved only because part of the tree was not read.
4335
+ unresolved: unreadOnly ? {
4336
+ title: "Google Play Billing could not be checked in every folder",
4337
+ koTitle: "\uC77C\uBD80 \uD3F4\uB354\uC758 Google Play Billing \uC758\uC874\uC131\uC744 \uD655\uC778\uD558\uC9C0 \uBABB\uD568",
4338
+ koDetail: billing.detectedVersions.length > 0 ? `\uAC10\uC9C0\uB41C Billing Library ${versions}\uC740 \uD604\uC7AC \uC81C\uCD9C \uAE30\uC900\uC744 \uCDA9\uC871\uD558\uC9C0\uB9CC, \uC77D\uC9C0 \uBABB\uD55C \uACBD\uB85C\uAC00 \uC788\uC5B4 \uC804\uCCB4\uB97C \uD655\uC778\uD558\uC9C0 \uBABB\uD588\uC2B5\uB2C8\uB2E4.` : "\uC77D\uC9C0 \uBABB\uD55C \uACBD\uB85C\uAC00 \uC788\uC5B4 Billing \uC758\uC874\uC131 \uC804\uCCB4\uB97C \uD655\uC778\uD558\uC9C0 \uBABB\uD588\uC2B5\uB2C8\uB2E4.",
4210
4339
  action: billing.actions.join(" "),
4211
- koAction: "\uBCF4\uACE0\uB41C Gradle/version catalog \uD45C\uD604\uC2DD\uC744 \uD655\uC778\uD558\uAC70\uB098 \uC120\uC5B8\uB41C IAP \uD328\uD0A4\uC9C0\uB97C \uC124\uCE58\uD55C \uB4A4 \uB2E4\uC2DC \uAC80\uC0AC\uD558\uC138\uC694."
4212
- } : {
4340
+ koAction: "\uC77D\uC9C0 \uBABB\uD55C \uACBD\uB85C\uC758 \uAD8C\uD55C\uC744 \uACE0\uCE58\uAC70\uB098(\uB610\uB294 \uD504\uB85C\uC81D\uD2B8 \uACBD\uB85C\uB97C \uC571\uC73C\uB85C \uC881\uD600) \uB2E4\uC2DC \uAC80\uC0AC\uD558\uC138\uC694."
4341
+ } : !billing.policy.scheduleCurrent ? {
4213
4342
  title: "Google Play Billing policy table needs a refresh",
4214
4343
  koTitle: "Google Play Billing \uC815\uCC45\uD45C \uAC31\uC2E0 \uD544\uC694",
4215
4344
  koDetail: `\uB0B4\uC7A5\uB41C \uACF5\uC2DD \uC77C\uC815\uC740 Billing Library ${billing.policy.latestKnownMajor}\uC5D0\uC11C \uB05D\uB098\uBBC0\uB85C \uD604\uC7AC \uC815\uCC45\uC744 \uCD9C\uCC98\uC5D0\uC11C \uB2E4\uC2DC \uD655\uC778\uD574\uC57C \uD569\uB2C8\uB2E4.`,
4216
4345
  action: billing.actions.join(" "),
4217
4346
  koAction: "\uACF5\uC2DD Billing \uC9C0\uC6D0 \uC911\uB2E8 \uD45C\uB97C \uD655\uC778\uD558\uACE0, \uC774 \uACB0\uACFC\uB97C \uBBFF\uAE30 \uC804\uC5D0 Mimi Seed\uB97C \uC5C5\uB370\uC774\uD2B8\uD558\uC138\uC694."
4347
+ } : {
4348
+ title: "Google Play Billing version could not be resolved locally",
4349
+ koTitle: "Google Play Billing \uBC84\uC804\uC744 \uB85C\uCEEC\uC5D0\uC11C \uD655\uC815\uD558\uC9C0 \uBABB\uD568",
4350
+ koDetail: "Billing \uC758\uC874\uC131\uC740 \uCC3E\uC558\uC9C0\uB9CC \uBC84\uC804\uC744 \uC815\uC801\uC73C\uB85C \uD655\uC815\uD558\uC9C0 \uBABB\uD588\uC2B5\uB2C8\uB2E4.",
4351
+ action: billing.actions.join(" "),
4352
+ koAction: "\uBCF4\uACE0\uB41C Gradle/version catalog \uD45C\uD604\uC2DD\uC744 \uD655\uC778\uD558\uAC70\uB098 \uC120\uC5B8\uB41C IAP \uD328\uD0A4\uC9C0\uB97C \uC124\uCE58\uD55C \uB4A4 \uB2E4\uC2DC \uAC80\uC0AC\uD558\uC138\uC694."
4218
4353
  }
4219
4354
  }[status];
4355
+ const unreadKo = billing.unreadPaths.length === 0 ? "" : unreadOnly ? ` \uC77D\uC9C0 \uBABB\uD55C \uACBD\uB85C: ${unreadList(billing.unreadPaths)}.` : ` \uC77D\uC9C0 \uBABB\uD55C \uACBD\uB85C\uAC00 \uC788\uC5B4 \uADF8 \uC548\uC758 Billing \uC758\uC874\uC131\uC740 \uD655\uC778\uD558\uC9C0 \uBABB\uD588\uC2B5\uB2C8\uB2E4: ${unreadList(billing.unreadPaths)}.`;
4220
4356
  return {
4221
4357
  code: `BILLING_${status.toUpperCase()}`,
4222
4358
  severity: status === "blocker" ? "blocker" : status === "pass" ? "info" : "warning",
4223
4359
  title: copy.title,
4224
- detail: `${billing.summary} Evidence: ${evidence}.`,
4360
+ detail: evidence ? `${billing.summary} Evidence: ${evidence}.` : billing.summary,
4225
4361
  action: copy.action,
4226
4362
  file: billingEvidenceRows(billing)[0]?.file,
4227
4363
  sourceUrl: billing.policy.sourceUrl,
4228
4364
  ko: {
4229
4365
  title: copy.koTitle,
4230
- detail: `${copy.koDetail} \uADFC\uAC70: ${evidence}.`,
4366
+ detail: `${copy.koDetail}${unreadKo}${evidence ? ` \uADFC\uAC70: ${evidence}.` : ""}`,
4231
4367
  action: copy.koAction
4232
4368
  }
4233
4369
  };
4234
4370
  }
4371
+ function unreadFinding(unread) {
4372
+ const listed = unreadList(unread);
4373
+ return {
4374
+ code: "SCAN_PATHS_NOT_READ",
4375
+ severity: "warning",
4376
+ title: "Some folders or files in the project could not be read",
4377
+ detail: `Release Doctor could not read: ${listed}. App modules, Billing dependencies, and Xcode pins inside them are not part of any verdict above.`,
4378
+ action: "Fix the permissions and re-run, or scan the app on its own with --path if those paths do not belong to it.",
4379
+ file: unread[0],
4380
+ ko: {
4381
+ title: "\uD504\uB85C\uC81D\uD2B8\uC758 \uC77C\uBD80 \uD3F4\uB354\uB098 \uD30C\uC77C\uC744 \uC77D\uC9C0 \uBABB\uD568",
4382
+ detail: `Release Doctor\uAC00 \uB2E4\uC74C\uC744 \uC77D\uC9C0 \uBABB\uD588\uC2B5\uB2C8\uB2E4: ${listed}. \uADF8 \uC548\uC758 \uC571 \uBAA8\uB4C8, Billing \uC758\uC874\uC131, Xcode \uACE0\uC815\uAC12\uC740 \uC704 \uD310\uC815\uC5D0 \uB4E4\uC5B4\uAC00\uC9C0 \uC54A\uC558\uC2B5\uB2C8\uB2E4.`,
4383
+ action: "\uAD8C\uD55C\uC744 \uACE0\uCE5C \uB4A4 \uB2E4\uC2DC \uC2E4\uD589\uD558\uAC70\uB098, \uADF8 \uACBD\uB85C\uAC00 \uC571\uACFC \uBB34\uAD00\uD558\uBA74 --path\uB85C \uC571\uB9CC \uB530\uB85C \uAC80\uC0AC\uD558\uC138\uC694."
4384
+ }
4385
+ };
4386
+ }
4235
4387
  async function scanReleaseDoctor(projectPath, now = /* @__PURE__ */ new Date(), options = {}) {
4236
4388
  const maxSourceFiles = options.maxSourceFiles ?? MAX_SOURCE_FILES;
4237
4389
  const root = path13.resolve(projectPath);
@@ -4242,7 +4394,7 @@ async function scanReleaseDoctor(projectPath, now = /* @__PURE__ */ new Date(),
4242
4394
  throw new Error(`Project path does not exist or is not readable: ${root}`);
4243
4395
  }
4244
4396
  if (!stat.isDirectory()) throw new Error(`Project path is not a directory: ${root}`);
4245
- const { files, fcmSources, sourceScanTruncated, conventionTruncated } = await walk2(root, maxSourceFiles);
4397
+ const { files, fcmSources, sourceScanTruncated, conventionTruncated, unread } = await walk2(root, maxSourceFiles);
4246
4398
  const reactNativeCatalog = path13.join(root, "node_modules", "react-native", "gradle", "libs.versions.toml");
4247
4399
  try {
4248
4400
  files.push({
@@ -4460,7 +4612,8 @@ async function scanReleaseDoctor(projectPath, now = /* @__PURE__ */ new Date(),
4460
4612
  });
4461
4613
  }
4462
4614
  const billing = await checkBillingCompliance(root, now);
4463
- if (billing.status !== "not_used") findings.push(billingFinding(billing));
4615
+ const onlyUnread = billing.evidence.length === 0 && unread.length > 0;
4616
+ if (billing.status !== "not_used" && !onlyUnread) findings.push(billingFinding(billing));
4464
4617
  }
4465
4618
  if (detected.ios) {
4466
4619
  if (detected.iosBundleIds.length === 0) {
@@ -4508,6 +4661,7 @@ async function scanReleaseDoctor(projectPath, now = /* @__PURE__ */ new Date(),
4508
4661
  findings.push(...iosXcodeFindings(detected.hasIosAppOutsideDemo ? files.filter((file) => !file.demo) : files, now));
4509
4662
  }
4510
4663
  findings.push(...await fcmFindings(files, detected.hasAppOutsideDemo ? fcmSources.filter((file) => !file.demo) : fcmSources, root, now));
4664
+ if (unread.length > 0) findings.push(unreadFinding(unread));
4511
4665
  const counts = findings.reduce(
4512
4666
  (result, finding) => ({ ...result, [finding.severity]: result[finding.severity] + 1 }),
4513
4667
  { blocker: 0, warning: 0, info: 0 }
@@ -4874,6 +5028,8 @@ ${items}
4874
5028
  recentCommits: (limit) => `\uCD5C\uADFC ${limit}\uAC1C \uCEE4\uBC0B
4875
5029
  `,
4876
5030
  noCommits: "\uCEE4\uBC0B\uC744 \uCC3E\uC744 \uC218 \uC5C6\uC2B5\uB2C8\uB2E4.\n",
5031
+ badRef: (flag, ref) => `${flag} ${ref} \uC740(\uB294) \uC774 \uC800\uC7A5\uC18C\uC758 \uCEE4\uBC0B\uC744 \uAC00\uB9AC\uD0A4\uC9C0 \uC54A\uC2B5\uB2C8\uB2E4 \u2014 \uBE0C\uB79C\uCE58 \xB7 \uD0DC\uADF8 \xB7 \uCEE4\uBC0B \uC774\uB984\uC744 \uD655\uC778\uD558\uC138\uC694.
5032
+ `,
4877
5033
  invalidLimit: (value) => `--limit \uC740 1~10000 \uC0AC\uC774\uC758 \uC815\uC218\uC5EC\uC57C \uD569\uB2C8\uB2E4: ${value || "(\uAC12 \uC5C6\uC74C)"}
4878
5034
  `,
4879
5035
  invalidRef: (ref) => `'-' \uB85C \uC2DC\uC791\uD558\uB294 ref \uB294 \uC4F8 \uC218 \uC5C6\uC2B5\uB2C8\uB2E4 (git \uC635\uC158\uC73C\uB85C \uC77D\uD798): ${ref}
@@ -4933,6 +5089,8 @@ Update now.`,
4933
5089
  recentCommits: (limit) => `Last ${limit} commit(s)
4934
5090
  `,
4935
5091
  noCommits: "No commits found.\n",
5092
+ badRef: (flag, ref) => `${flag} ${ref} does not point to a commit in this repository \u2014 check the branch, tag, or commit name.
5093
+ `,
4936
5094
  invalidLimit: (value) => `--limit must be an integer from 1 to 10000: ${value || "(missing)"}
4937
5095
  `,
4938
5096
  invalidRef: (ref) => `A ref cannot start with '-' (git would read it as an option): ${ref}
@@ -5050,6 +5208,12 @@ async function cmdNotes(argv) {
5050
5208
  process.stdout.write(kleur6.red(M7().notGitRepo));
5051
5209
  process.exit(1);
5052
5210
  }
5211
+ for (const [flag, ref] of [["--from", args.from], ["--to", args.to === "HEAD" ? void 0 : args.to]]) {
5212
+ if (ref !== void 0 && !isCommitRef(cwd, ref)) {
5213
+ process.stdout.write(kleur6.red(M7().badRef(flag, ref)));
5214
+ process.exit(1);
5215
+ }
5216
+ }
5053
5217
  const latestTag = getLatestTag(cwd);
5054
5218
  const fromRef = args.from ?? latestTag ?? void 0;
5055
5219
  process.stdout.write(
@@ -5396,105 +5560,624 @@ async function cmdLang(args) {
5396
5560
  log3(kleur8.green(t().lang.saved(arg)));
5397
5561
  }
5398
5562
 
5399
- // src/cloud.ts
5400
- function exitWith2(code) {
5401
- if (code !== 0) process.exit(code);
5402
- }
5403
- async function cmdFirebase(args) {
5404
- exitWith2(await runMcpBin("mimi-seed-firebase", args));
5405
- }
5406
- async function cmdAdmob(args) {
5407
- exitWith2(await runMcpBin("mimi-seed-admob", args));
5408
- }
5409
- async function cmdGa4(args) {
5410
- exitWith2(await runMcpBin("mimi-seed-ga4", args));
5411
- }
5412
-
5413
- // src/mcp-restart.ts
5414
- import { execFileSync as execFileSync2, execSync } from "child_process";
5563
+ // src/credentials-cmd.ts
5415
5564
  import fs12 from "fs";
5416
5565
  import os3 from "os";
5417
5566
  import path15 from "path";
5567
+ import kleur10 from "kleur";
5568
+ import { spawnSync } from "child_process";
5569
+ import { createInterface as createInterface3 } from "readline/promises";
5570
+
5571
+ // src/help.ts
5418
5572
  import kleur9 from "kleur";
5419
- function log4(msg) {
5420
- process.stdout.write(msg + "\n");
5421
- }
5422
5573
  var M9 = catalog(
5423
5574
  {
5424
- killedPid: (pid) => ` PID ${pid} \uC885\uB8CC`,
5425
- title: (server) => `MCP \uC11C\uBC84 \uC7AC\uC2DC\uC791: ${server}`,
5426
- none: "(\uC5C6\uC74C)",
5427
- notFound: (server) => `'${server}' \uC11C\uBC84\uB97C MCP \uC124\uC815\uC5D0\uC11C \uCC3E\uC9C0 \uBABB\uD588\uC2B5\uB2C8\uB2E4.`,
5428
- searched: (paths) => ` \uCC3E\uC544\uBCF8 \uACF3: ${paths}`,
5429
- noConfig: "(\uC124\uC815 \uC5C6\uC74C)",
5430
- registered: (list) => ` \uB4F1\uB85D\uB41C \uC11C\uBC84: ${list}`,
5431
- httpServer: (server) => `'${server}'\uB294 HTTP/SSE \uC11C\uBC84\uC785\uB2C8\uB2E4. \uD504\uB85C\uC138\uC2A4 \uC7AC\uC2DC\uC791\uC774 \uD544\uC694\uD558\uC9C0 \uC54A\uC2B5\uB2C8\uB2E4.`,
5432
- httpHint: " Claude Code\uC5D0\uC11C /mcp \uB97C \uC2E4\uD589\uD574 \uC5F0\uACB0 \uC0C1\uD0DC\uB97C \uD655\uC778\uD558\uC138\uC694.",
5433
- noMarker: "\uD504\uB85C\uC138\uC2A4 \uC2DD\uBCC4\uC790(\uC2A4\uD06C\uB9BD\uD2B8 \uACBD\uB85C)\uB97C \uCC3E\uC9C0 \uBABB\uD588\uC2B5\uB2C8\uB2E4.",
5434
- configLine: (cfg) => ` \uC124\uC815: ${cfg}`,
5435
- markerLine: (marker) => ` \uC2DD\uBCC4\uC790: ${marker}`,
5436
- noProcess: "\u26A0 \uC2E4\uD589 \uC911\uC778 \uD504\uB85C\uC138\uC2A4\uB97C \uCC3E\uC9C0 \uBABB\uD588\uC2B5\uB2C8\uB2E4.",
5437
- codexNoProcessHint: " Codex\uC758 stdio transport\uAC00 \uC774\uBBF8 \uB2EB\uD614\uC2B5\uB2C8\uB2E4. \uC774 \uBA54\uC2DC\uC9C0\uB9CC\uC73C\uB85C \uC778\uC99D \uC2E4\uD328\uB97C \uB73B\uD558\uC9C0 \uC54A\uC73C\uBA70, \uC774 CLI\uC5D0\uC11C \uD604\uC7AC thread\uC5D0 \uB2E4\uC2DC \uBD99\uC77C \uC218 \uC5C6\uC2B5\uB2C8\uB2E4.",
5438
- codexKilledHint: " \uD604\uC7AC Codex thread\uB294 \uC885\uB8CC\uD55C stdio \uC11C\uBC84\uC5D0 \uB2E4\uC2DC \uBD99\uC744 \uC218 \uC5C6\uC2B5\uB2C8\uB2E4. \uC0C8 thread\uB97C \uC2DC\uC791\uD558\uAC70\uB098 Codex\uB97C \uB2E4\uC2DC \uC5EC\uC138\uC694.",
5439
- codexVerify: " \uD655\uC778: \uC0C8 Codex thread\uC5D0\uC11C mimi_seed_status \uD638\uCD9C",
5440
- claudeNoProcessHint: " \uC774\uBBF8 \uC885\uB8CC\uB410\uAC70\uB098, Claude Code\uAC00 \uC544\uC9C1 \uC11C\uBC84\uB97C \uC2DC\uC791\uD558\uC9C0 \uC54A\uC740 \uC0C1\uD0DC\uC77C \uC218 \uC788\uC2B5\uB2C8\uB2E4.",
5441
- claudeKilledHint: " Claude Code\uAC00 \uB2E4\uC74C \uB3C4\uAD6C \uD638\uCD9C \uC2DC \uC790\uB3D9\uC73C\uB85C \uC7AC\uC5F0\uACB0\uD569\uB2C8\uB2E4.",
5442
- claudeVerify: " \uC5F0\uACB0 \uD655\uC778: Claude Code\uC5D0\uC11C /mcp \uC2E4\uD589",
5443
- genericNoProcessHint: " stdio transport\uAC00 \uC774\uBBF8 \uB2EB\uD614\uC744 \uC218 \uC788\uC2B5\uB2C8\uB2E4. MCP \uD074\uB77C\uC774\uC5B8\uD2B8\uB97C \uB2E4\uC2DC \uC5F4\uC5B4 \uC5F0\uACB0\uD558\uC138\uC694.",
5444
- genericKilledHint: " stdio \uC11C\uBC84\uB294 MCP \uD074\uB77C\uC774\uC5B8\uD2B8\uAC00 \uC18C\uC720\uD569\uB2C8\uB2E4. \uD074\uB77C\uC774\uC5B8\uD2B8\uB97C \uB2E4\uC2DC \uC5F4\uC5B4 \uC5F0\uACB0\uD558\uC138\uC694.",
5445
- genericVerify: " \uC5F0\uACB0 \uD655\uC778: \uC0C8 \uC138\uC158\uC5D0\uC11C mimi_seed_status \uD638\uCD9C",
5446
- unknownWriteOutcome: " \uC9C1\uC804 \uD638\uCD9C\uC774 \uC5C5\uB85C\uB4DC\xB7\uAC8C\uC2DC \uAC19\uC740 \uC4F0\uAE30\uC600\uB2E4\uBA74 \uACB0\uACFC\uAC00 \uBD88\uBA85\uC77C \uC218 \uC788\uC2B5\uB2C8\uB2E4. \uB300\uC0C1 \uC11C\uBE44\uC2A4\uC5D0\uC11C \uC2E4\uC81C \uBC18\uC601 \uC5EC\uBD80\uB97C \uD655\uC778\uD55C \uB4A4 \uC7AC\uC2DC\uB3C4\uD558\uC138\uC694.",
5447
- killed: (server, n) => `\u2713 ${server} \uC885\uB8CC\uB428 (${n}\uAC1C \uD504\uB85C\uC138\uC2A4)`,
5448
- notMimiSeed: (marker) => `'mimi-seed' \uC124\uC815\uC758 \uC2DD\uBCC4\uC790(${marker})\uAC00 mimi-seed MCP \uC11C\uBC84\uB85C \uBCF4\uC774\uC9C0 \uC54A\uC544 \uC544\uBB34\uAC83\uB3C4 \uC885\uB8CC\uD558\uC9C0 \uC54A\uC558\uC2B5\uB2C8\uB2E4. \uC774 \uD3F4\uB354\uC758 .mcp.json \uC744 \uD655\uC778\uD558\uC138\uC694.`,
5449
- tooMany: (n) => `\uC2DD\uBCC4\uC790\uC640 \uB9DE\uB294 \uC11C\uBC84 \uD504\uB85C\uC138\uC2A4\uAC00 ${n}\uAC1C\uB77C \uC544\uBB34\uAC83\uB3C4 \uC885\uB8CC\uD558\uC9C0 \uC54A\uC558\uC2B5\uB2C8\uB2E4 \u2014 \uB108\uBB34 \uB9CE\uC2B5\uB2C8\uB2E4. MCP \uC124\uC815\uC758 args \uB97C \uD655\uC778\uD558\uC138\uC694.`
5575
+ // 명령별 상세 사용법 (SSOT). `mimi-seed <command> --help` 와 overview 가 공유.
5576
+ usage: {
5577
+ telemetry: "mimi-seed telemetry on|off|status \u2014 \uC120\uD0DD\uC801 \uC0AC\uC6A9\uB7C9 \uCE21\uC815. \uAE30\uBCF8 \uAEBC\uC9D0. \uC784\uC758 \uC124\uCE58 ID, \uD504\uB85C\uC81D\uD2B8 \uD574\uC2DC, \uBC84\uC804, OS, \uACB0\uACFC \uCF54\uB4DC\uC640 \uC2E4\uD589\uC2DC\uAC04\uC744 \uC804\uC1A1\uD569\uB2C8\uB2E4. \uAC1C\uC778\uC815\uBCF4 \uC548\uB0B4: https://mimi-seed.pryzm.gg/privacy/sdk-usage . MIMI_SEED_TELEMETRY=0\uC740 \uD56D\uC0C1 \uC804\uC1A1\uC744 \uB055\uB2C8\uB2E4.",
5578
+ init: `${kleur9.bold("mimi-seed init")} \u2014 \uD604\uC7AC \uD504\uB85C\uC81D\uD2B8\uB97C Mimi Seed\uC5D0 \uC5F0\uACB0
5579
+
5580
+ \uC571 \uC790\uB3D9 \uAC10\uC9C0(Expo/Gradle/Info.plist/pbxproj) \u2192 \uBE0C\uB77C\uC6B0\uC800 PAT \uBC1C\uAE09(\uC6D0\uACA9 MCP) \u2192 \uC571 \uB4F1\uB85D
5581
+ + .claude/mimi-seed.md, AGENTS.md, docs/releases.json \uC0DD\uC131/\uD655\uC778.
5582
+
5583
+ \uC635\uC158:
5584
+ --local \uCD94\uAC00\uB85C Google OAuth \uB85C\uADF8\uC778 + \uB85C\uCEEC MCP(\uC2A4\uD1A0\uC5B4 \uC4F0\uAE30 \uB3C4\uAD6C \uC804\uCCB4) \uB4F1\uB85D \uC548\uB0B4`,
5585
+ setup: `${kleur9.bold("mimi-seed setup")} \u2014 \uAC00\uC9C4 \uACC4\uC815\uC744 \uD55C \uBC88\uC5D0 \uC5F0\uACB0 (\uC548\uB0B4\uD615 \uB9C8\uBC95\uC0AC)
5586
+
5587
+ \uC5F0\uACB0 \uC0C1\uD0DC\uB97C \uBA3C\uC800 \uBCF4\uC5EC\uC8FC\uACE0, \uC544\uC9C1 \uC5F0\uACB0\uB418\uC9C0 \uC54A\uC740 \uAC83\uB9CC \uC21C\uC11C\uB300\uB85C \uBB3C\uC5B4\uBCF8\uB2E4.
5588
+ \uAC01 \uD56D\uBAA9\uC5D0\uC11C [?] \uB97C \uB204\uB974\uBA74 "\uADF8 \uD1A0\uD070\uC744 \uC5B4\uB514\uC11C \uC5B4\uB5BB\uAC8C \uBC1C\uAE09\uBC1B\uB294\uC9C0"\uB97C \uC54C\uB824\uC900\uB2E4.
5589
+ \uC774\uBBF8 \uC5F0\uACB0\uB41C \uD56D\uBAA9\uC740 \uAC74\uB108\uB6F0\uBBC0\uB85C, \uC911\uAC04\uC5D0 \uADF8\uB9CC\uB450\uACE0 \uB098\uC911\uC5D0 \uB2E4\uC2DC \uC2E4\uD589\uD574\uB3C4 \uB41C\uB2E4.
5590
+
5591
+ \uC635\uC158:
5592
+ --only <ids> \uC9C0\uC815\uD55C \uC790\uACA9\uC99D\uBA85\uB9CC (\uC27C\uD45C \uAD6C\uBD84: oauth,appstore,jenkins \u2026)
5593
+ --reconnect <ids> \uC774\uBBF8 \uC5F0\uACB0\uB3FC \uC788\uC5B4\uB3C4 \uB2E4\uC2DC \uC124\uC815
5594
+ --platform android,ios \uD50C\uB7AB\uD3FC \uAC15\uC81C \uC9C0\uC815 (\uAE30\uBCF8: \uD504\uB85C\uC81D\uD2B8\uC5D0\uC11C \uC790\uB3D9 \uAC10\uC9C0)
5595
+ --yes, -y \uC544\uBB34\uAC83\uB3C4 \uBB3B\uC9C0 \uC54A\uACE0 \uC0C1\uD0DC\uD45C\uB9CC \uCD9C\uB825
5596
+ --non-interactive \uC704\uC640 \uB3D9\uC77C (CI \uC6A9)
5597
+ --fail-on-missing \uD544\uC218 \uC790\uACA9\uC99D\uBA85\uC774 \uC5C6\uC73C\uBA74 exit 1 (CI \uAC8C\uC774\uD2B8)
5598
+
5599
+ ${kleur9.dim("\uBE44TTY / CI \uD658\uACBD\uC5D0\uC11C\uB294 \uD504\uB86C\uD504\uD2B8 \uC5C6\uC774 \uC0C1\uD0DC\uD45C\uB9CC \uCD9C\uB825\uD55C\uB2E4.")}`,
5600
+ credentials: `${kleur9.bold("mimi-seed credentials")} \u2014 \uC800\uC7A5\uB41C \uC790\uACA9\uC99D\uBA85(~/.mimi-seed) \uC554\uD638\uD654
5601
+
5602
+ mimi-seed credentials status \uC800\uC7A5 \uBAA8\uB4DC, \uD0A4 \uC800\uC7A5\uC18C, \uD30C\uC77C\uBCC4 \uC0C1\uD0DC(\uC554\uD638\uD654 \xB7 \uD3C9\uBB38 \xB7 \uC7A0\uAE40)
5603
+ mimi-seed credentials mode <file|keychain|auto> file: \uD3C9\uBB38(\uAE30\uBCF8) \xB7 keychain: \uD56D\uC0C1 \uC554\uD638\uD654 \xB7 auto: \uAC00\uB2A5\uD558\uBA74 \uC554\uD638\uD654
5604
+ mimi-seed credentials encrypt \uC9C0\uAE08 \uC788\uB294 \uD3C9\uBB38 \uC790\uACA9\uC99D\uBA85\uC744 \uC554\uD638\uD654 (\uC554\uD638\uD654 \uBAA8\uB4DC\uC5D0\uC11C)
5605
+ mimi-seed credentials decrypt \uC554\uD638\uD654\uB41C \uC790\uACA9\uC99D\uBA85\uC744 \uD3C9\uBB38\uC73C\uB85C \uB418\uB3CC\uB9BC (mode file \uB2E4\uC74C\uC5D0)
5606
+
5607
+ --force mode \uB97C \uCF24 \uB54C, \uC61B \uBC84\uC804\uC73C\uB85C \uACE0\uC815\uB41C MCP \uC11C\uBC84 \uB4F1\uB85D\uC774 \uC788\uC5B4\uB3C4 \uC9C4\uD589
5608
+
5609
+ ${kleur9.dim("\uD0A4\uB294 OS \uD0A4 \uC800\uC7A5\uC18C(macOS \uD0A4\uCCB4\uC778 \xB7 Windows DPAPI \xB7 Linux Secret Service)\uC5D0 \uB461\uB2C8\uB2E4. \uD658\uACBD\uBCC0\uC218 MIMI_SEED_CREDENTIAL_STORE \uAC00 settings.json \uBCF4\uB2E4 \uC6B0\uC120\uD569\uB2C8\uB2E4.")}
5610
+ ${kleur9.dim("\uD55C \uBC88 \uC554\uD638\uD654\uD55C \uCEF4\uD4E8\uD130\uB294 mode file \uC744 \uBA85\uC2DC\uD558\uAE30 \uC804\uAE4C\uC9C0 \uD3C9\uBB38\uC73C\uB85C \uB0B4\uB824\uAC00\uC9C0 \uC54A\uC2B5\uB2C8\uB2E4. \uD0A4\uB97C \uC783\uC73C\uBA74(\uD0A4\uCCB4\uC778 \uCD08\uAE30\uD654 \uB4F1) \uAC01 \uC11C\uBE44\uC2A4\uC5D0 \uB2E4\uC2DC \uB85C\uADF8\uC778\uD574\uC57C \uD569\uB2C8\uB2E4.")}`,
5611
+ lang: `${kleur9.bold("mimi-seed lang")} \u2014 CLI \uCD9C\uB825 \uC5B8\uC5B4 (\uD55C\uAD6D\uC5B4 / English)
5612
+
5613
+ mimi-seed lang \uD604\uC7AC \uC5B8\uC5B4 \uD45C\uC2DC
5614
+ mimi-seed lang ko \uD55C\uAD6D\uC5B4 (\uAE30\uBCF8)
5615
+ mimi-seed lang en English
5616
+
5617
+ ${kleur9.dim("~/.mimi-seed/settings.json \uC5D0 \uC800\uC7A5\uB429\uB2C8\uB2E4. \uD658\uACBD\uBCC0\uC218 MIMI_SEED_LANG \uAC00 \uC788\uC73C\uBA74 \uADF8\uAC8C \uC6B0\uC120\uD569\uB2C8\uB2E4.")}
5618
+ ${kleur9.dim("setup \uB9C8\uBC95\uC0AC\uAC00 \uCCAB \uC2E4\uD589 \uB54C \uBB3C\uC5B4\uBCF4\uBBC0\uB85C \uBCF4\uD1B5\uC740 \uC9C1\uC811 \uCE60 \uC77C\uC774 \uC5C6\uC2B5\uB2C8\uB2E4.")}`,
5619
+ status: `${kleur9.bold("mimi-seed status")} \u2014 \uC5F0\uACB0 \uC0C1\uD0DC + \uB4F1\uB85D \uC571 \uBAA9\uB85D. \uC635\uC158 \uC5C6\uC74C.`,
5620
+ doctor: `${kleur9.bold("mimi-seed doctor")} \u2014 \uD658\uACBD \uC9C4\uB2E8 (\uD1A0\uD070\xB7Node\xB7Git\xB7\uD504\uB85C\uC81D\uD2B8\xB7CI)
5621
+
5622
+ \uAE30\uBCF8\uC740 \uC9C4\uB2E8\uB9CC \uD558\uACE0 exit 0. Mimi Seed \uD074\uB77C\uC6B0\uB4DC \uD1A0\uD070\uC740 \uC6D0\uACA9 \uAE30\uB2A5
5623
+ (MIMI_SEED_TOKEN \xB7 MIMI_SEED_WEB_BASE \xB7 .mimi-seed-link.json)\uC744 \uC4F8 \uB54C\uB9CC, App Store Connect \uB294
5624
+ \uD504\uB85C\uC81D\uD2B8\uC5D0 iOS \uC571\uC774 \uC788\uC744 \uB54C\uB9CC \u2717 \uB85C \uBCF8\uB2E4.
5625
+
5626
+ \uC635\uC158:
5627
+ --strict \u2717 \uD56D\uBAA9\uC774 \uD558\uB098\uB77C\uB3C4 \uC788\uC73C\uBA74 exit 1 (\u26A0 \uB294 \uC2E4\uD328\uAC00 \uC544\uB2D8) \u2014 CI \uAC8C\uC774\uD2B8\uC6A9
5628
+ --json \uC0AC\uB78C\uC6A9 \uCD9C\uB825 \uB300\uC2E0 \uC9C4\uB2E8 \uACB0\uACFC\uB97C JSON\uC73C\uB85C \uCD9C\uB825 (ok \uD544\uB4DC \uD3EC\uD568)`,
5629
+ logout: `${kleur9.bold("mimi-seed logout")} \u2014 \uB85C\uCEEC \uC124\uC815(config.json) \uC0AD\uC81C. \uC635\uC158 \uC5C6\uC74C.`,
5630
+ restart: `${kleur9.bold("mimi-seed restart")} \u2014 MCP \uC11C\uBC84 \uD504\uB85C\uC138\uC2A4 \uC7AC\uC2DC\uC791 (\uAE30\uBCF8: mimi-seed)
5631
+
5632
+ mimi-seed restart [server-name]`,
5633
+ notes: `${kleur9.bold("mimi-seed notes")} \u2014 \uB9B4\uB9AC\uC988 \uB178\uD2B8 \uC0DD\uC131 (git log \u2192 AI \u2192 \uB9C8\uCF13 \uC801\uC6A9)
5634
+
5635
+ \uC635\uC158:
5636
+ --from <ref> \uC2DC\uC791 \uCEE4\uBC0B/\uD0DC\uADF8 (\uAE30\uBCF8: \uCD5C\uC2E0 \uD0DC\uADF8)
5637
+ --to <ref> \uB05D \uCEE4\uBC0B (\uAE30\uBCF8: HEAD)
5638
+ --locale ko,en-US \uB300\uC0C1 \uB85C\uCF00\uC77C (\uC27C\uD45C \uAD6C\uBD84)
5639
+ --apply \uC0DD\uC131 \uD6C4 \uC2A4\uD1A0\uC5B4\uC5D0 \uBC14\uB85C \uC801\uC6A9
5640
+ --no-interactive CI \uBAA8\uB4DC (\uD504\uB86C\uD504\uD2B8 \uC5C6\uC74C)
5641
+ --limit <n> \uCD5C\uB300 \uCEE4\uBC0B \uC218 (\uAE30\uBCF8: 30)`,
5642
+ check: `${kleur9.bold("mimi-seed check")} \u2014 \uCD9C\uC2DC \uC804 Readiness \uC810\uAC80
5643
+
5644
+ \uC635\uC158:
5645
+ --app <id> \uC571 ID \uC9C0\uC815
5646
+ --local \uB85C\uADF8\uC778 \uC5C6\uC774 \uD604\uC7AC \uC800\uC7A5\uC18C\uB9CC \uAC80\uC0AC
5647
+ --path <dir> \uB85C\uCEEC \uAC80\uC0AC \uB300\uC0C1 \uACBD\uB85C (\uAE30\uBCF8: \uD604\uC7AC \uD3F4\uB354)
5648
+ --json \uB85C\uCEEC \uAC80\uC0AC \uACB0\uACFC\uB97C JSON\uC73C\uB85C \uCD9C\uB825
5649
+ --fail-on-blocker \uBE14\uB85C\uCEE4 \uC788\uC73C\uBA74 exit 1 (CI\uC6A9)`,
5650
+ review: `${kleur9.bold("mimi-seed review")} \u2014 \uB9AC\uBDF0 \uB2F5\uBCC0 AI \uCD08\uC548 \uC0DD\uC131 \uBC0F Play Store \uAC8C\uC2DC
5651
+
5652
+ \uC635\uC158:
5653
+ --text <\uB0B4\uC6A9> \uB9AC\uBDF0 \uC6D0\uBB38 (\uBBF8\uC785\uB825 \uC2DC \uB300\uD654\uD615 \uD504\uB86C\uD504\uD2B8)
5654
+ --rating <1-5> \uBCC4\uC810
5655
+ --tone <tone> friendly / professional / empathetic / brief (\uAE30\uBCF8: friendly)
5656
+ --language <\uCF54\uB4DC> \uB2F5\uBCC0 \uC5B8\uC5B4 (\uAE30\uBCF8: ko)
5657
+ --app-name <\uC774\uB984> \uC571 \uC774\uB984 (\uB9E5\uB77D\uC6A9)
5658
+ --apply \uB2F5\uBCC0\uC744 Play Store\uC5D0 \uAC8C\uC2DC
5659
+ --review-id <id> \uB9AC\uBDF0 ID (--apply \uC2DC \uD544\uC694)
5660
+ --package-name <p> \uD328\uD0A4\uC9C0\uBA85 (--apply \uC2DC \uD544\uC694)
5661
+ --no-interactive CI \uBAA8\uB4DC`,
5662
+ deploy: `${kleur9.bold("mimi-seed deploy")} \u2014 \uC571 \uC790\uB3D9 \uBC30\uD3EC (CI \uBE4C\uB4DC \u2192 Play Store/App Store)
5663
+
5664
+ \uC635\uC158:
5665
+ --platform android|ios \uBC30\uD3EC \uD50C\uB7AB\uD3FC (\uAE30\uBCF8: android)
5666
+ --app <id> \uBC30\uD3EC\uD560 \uC6D0\uACA9 \uC571 ID (\uC2E4\uC81C \uC2E4\uD589 \uD544\uC218)
5667
+ --version-code <n> \uC2E4\uC81C \uC2A4\uD1A0\uC5B4 \uBE4C\uB4DC \uBC88\uD638 (CI \uC2E4\uD589 \uBC88\uD638 \uC544\uB2D8)
5668
+ --from <ref> \uCEE4\uBC0B \uBC94\uC704 \uC2DC\uC791 (\uB9B4\uB9AC\uC988 \uB178\uD2B8\uC6A9)
5669
+ --to <ref> \uCEE4\uBC0B \uBC94\uC704 \uB05D (\uAE30\uBCF8: HEAD)
5670
+ --language <\uCF54\uB4DC> \uB9B4\uB9AC\uC988 \uB178\uD2B8 \uC5B8\uC5B4 (\uAE30\uBCF8: ko-KR)
5671
+ --dry-run \uB85C\uCEEC \uACC4\uD68D\uB9CC \uCD9C\uB825 (\uB124\uD2B8\uC6CC\uD06C\xB7\uBE4C\uB4DC\xB7\uC4F0\uAE30 \uC5C6\uC74C)
5672
+ --yes, -y CI \uC2E4\uD589\xB7\uC2A4\uD1A0\uC5B4 \uBC30\uD3EC \uBA85\uC2DC\uC801 \uC2B9\uC778 (\uC2E4\uD589 \uD544\uC218)
5673
+ --skip-build CI \uBE4C\uB4DC \uAC74\uB108\uB700 (--version-code \uD544\uC218)
5674
+ --prepare-only \uBE4C\uB4DC\xB7\uBC84\uC804 \uD655\uC778 \uD6C4 \uC6F9 \uAE30\uB85D\uC744 \uC900\uBE44 \uC0C1\uD0DC\uB85C \uB450\uACE0 \uC81C\uCD9C \uC911\uB2E8
5675
+ --resume <runId> \uC900\uBE44\uB41C \uBC30\uD3EC\uB97C CI \uBE4C\uB4DC \uC5C6\uC774 \uC774\uC5B4\uC11C \uC81C\uCD9C
5676
+ --ci jenkins|github|gitlab CI \uAC15\uC81C \uC120\uD0DD (\uAE30\uBCF8: auto)
5677
+ --workflow <file> GitHub workflow \uD30C\uC77C (\uC608: deploy.yml)
5678
+ --ref <branch|tag> CI \uC18C\uC2A4 (\uAE30\uBCF8: main, Jenkins\uB294 \uBE0C\uB79C\uCE58\uB9CC)
5679
+ setup-jenkins / setup-github / setup-gitlab CI \uC124\uC815 \uB300\uD654\uD615 \uB4F1\uB85D`,
5680
+ tools: `${kleur9.bold("mimi-seed tools")} \u2014 \uC0AC\uC6A9\uD560 \uC11C\uBE44\uC2A4 \uACE0\uB974\uAE30
5681
+
5682
+ mimi-seed tools \uC11C\uBE44\uC2A4 \uBAA9\uB85D \uD45C\uC2DC \uBC0F \uB300\uD654\uD615 \uB2E4\uC911 \uC120\uD0DD
5683
+ mimi-seed tools --select ga4,bigquery \uC120\uD0DD\uD55C \uC11C\uBE44\uC2A4\uC640 \uB3C4\uAD6C \uC774\uB984\uC744 JSON\uC73C\uB85C \uCD9C\uB825
5684
+ `,
5685
+ mcp: `${kleur9.bold("mimi-seed mcp")} \u2014 Claude/Codex MCP \uC5F0\uACB0
5686
+
5687
+ \uC11C\uBE0C\uBA85\uB839:
5688
+ mimi-seed mcp \uD604\uC7AC \uC124\uC815 + \uB4F1\uB85D \uC548\uB0B4
5689
+ mimi-seed mcp claude Claude Code \uB4F1\uB85D \uBA85\uB839 \uCD9C\uB825
5690
+ mimi-seed mcp codex Codex \uB4F1\uB85D \uC548\uB0B4
5691
+ mimi-seed mcp codex --write ~/.codex/config.toml\uC5D0 \uC9C1\uC811 \uAE30\uB85D (\u26A0 \uC2E4\uC81C \uD1A0\uD070 \uD3C9\uBB38 \uC800\uC7A5)`
5692
+ },
5693
+ help: `${kleur9.bold("mimi-seed")} \u2014 Claude Code/Codex\uC5D0\uC11C \uC571 \uCD9C\uC2DC \uC6B4\uC601
5694
+
5695
+ ${kleur9.bold("\uBA85\uB839\uC5B4:")}
5696
+ ${kleur9.cyan("mimi-seed init")} \uD604\uC7AC \uD504\uB85C\uC81D\uD2B8\uB97C Mimi Seed\uC5D0 \uC5F0\uACB0
5697
+ ${kleur9.cyan("mimi-seed setup")} \uAC00\uC9C4 \uACC4\uC815\uC744 \uD55C \uBC88\uC5D0 \uC5F0\uACB0 (\uC548\uB0B4\uD615 \uB9C8\uBC95\uC0AC)
5698
+ ${kleur9.cyan("mimi-seed lang")} \uCD9C\uB825 \uC5B8\uC5B4 (ko / en)
5699
+ ${kleur9.cyan("mimi-seed credentials")} \uC800\uC7A5\uB41C \uC790\uACA9\uC99D\uBA85 \uC554\uD638\uD654 (status / mode / encrypt / decrypt)
5700
+ ${kleur9.cyan("mimi-seed status")} \uC5F0\uACB0 \uC0C1\uD0DC + \uB4F1\uB85D \uC571 \uBAA9\uB85D
5701
+ ${kleur9.cyan("mimi-seed auth")} \uC790\uACA9\uC99D\uBA85 \uAC1C\uBCC4 \uC778\uC99D (Google / App Store / Play / Jenkins / CI \u2026)
5702
+ ${kleur9.cyan("mimi-seed firebase")} Firebase \uC571 \uC0DD\uC131\xB7config \uB2E4\uC6B4\uB85C\uB4DC\xB7GA4 \uB9C1\uD06C
5703
+ ${kleur9.cyan("mimi-seed admob")} AdMob \uACC4\uC815\xB7\uC571\xB7\uAD11\uACE0\uB2E8\uC704 \uC870\uD68C \uBC0F \uC0DD\uC131
5704
+ ${kleur9.cyan("mimi-seed ga4")} GA4 property\xB7data stream \uC0DD\uC131\xB7\uC870\uD68C
5705
+ ${kleur9.cyan("mimi-seed tools")} \uC11C\uBE44\uC2A4 \uBAA9\uB85D \uD45C\uC2DC \uBC0F \uB2E4\uC911 \uC120\uD0DD
5706
+ ${kleur9.cyan("mimi-seed doctor")} \uD658\uACBD \uC9C4\uB2E8 (\uD1A0\uD070\xB7Git\xB7\uD504\uB85C\uC81D\uD2B8\xB7CI \uCCB4\uD06C)
5707
+ ${kleur9.cyan("mimi-seed check")} \uCD9C\uC2DC \uC804 Readiness \uC810\uAC80
5708
+ ${kleur9.cyan("mimi-seed telemetry")} \uC120\uD0DD\uC801 \uC0AC\uC6A9\uB7C9 \uCE21\uC815 \uC124\uC815
5709
+ ${kleur9.cyan("mimi-seed notes")} \uB9B4\uB9AC\uC988 \uB178\uD2B8 \uC0DD\uC131 (git log \u2192 AI \u2192 \uB9C8\uCF13 \uC801\uC6A9)
5710
+ ${kleur9.cyan("mimi-seed review")} \uB9AC\uBDF0 \uB2F5\uBCC0 AI \uCD08\uC548 \uC0DD\uC131 \uBC0F Play Store \uAC8C\uC2DC
5711
+ ${kleur9.cyan("mimi-seed deploy")} \uC571 \uC790\uB3D9 \uBC30\uD3EC (CI \u2192 Play Store/App Store)
5712
+ ${kleur9.cyan("mimi-seed mcp")} Claude/Codex MCP \uC5F0\uACB0 \uC548\uB0B4 \uBC0F Codex \uC124\uC815 \uC4F0\uAE30
5713
+ ${kleur9.cyan("mimi-seed restart")} MCP \uC11C\uBC84 \uD504\uB85C\uC138\uC2A4 \uC7AC\uC2DC\uC791 (\uAE30\uBCF8: mimi-seed)
5714
+ ${kleur9.cyan("mimi-seed logout")} \uB85C\uCEEC \uC124\uC815 \uC0AD\uC81C
5715
+ ${kleur9.cyan("mimi-seed --version")} \uC124\uCE58\uB41C CLI \uBC84\uC804 \uCD9C\uB825
5716
+
5717
+ ${kleur9.dim("\uAC01 \uBA85\uB839 \uC0C1\uC138 \uC635\uC158:")} ${kleur9.cyan("mimi-seed <command> --help")}
5718
+
5719
+ ${kleur9.bold("\uD658\uACBD\uBCC0\uC218:")}
5720
+ MIMI_SEED_TOKEN PAT \uD1A0\uD070 (CI/CD \uBB34\uC778\uC99D \uBAA8\uB4DC)
5721
+ MIMI_SEED_WEB_BASE \uC11C\uBC84 \uC8FC\uC18C (\uAE30\uBCF8: https://mimi-seed.pryzm.gg)
5722
+ ANTHROPIC_API_KEY AI \uB178\uD2B8 \uC0DD\uC131 \uD65C\uC131\uD654 (\uC120\uD0DD)
5723
+ MIMI_SEED_LANG \uCD9C\uB825 \uC5B8\uC5B4 \uAC15\uC81C (ko / en) \u2014 settings.json \uBCF4\uB2E4 \uC6B0\uC120
5724
+ MIMI_SEED_GOOGLE_CLIENT_ID / _SECRET
5725
+ \uC9C1\uC811 \uB9CC\uB4E0 Google OAuth \uD074\uB77C\uC774\uC5B8\uD2B8 \uC0AC\uC6A9 (\uBBF8\uC9C0\uC815 \uC2DC \uB85C\uADF8\uC778 \uB54C \uC6F9 \uCF58\uC194\uC5D0\uC11C \uBC1B\uC544\uC634)
5726
+ `
5450
5727
  },
5451
5728
  {
5452
- killedPid: (pid) => ` PID ${pid} killed`,
5453
- title: (server) => `Restarting MCP server: ${server}`,
5454
- none: "(none)",
5455
- registered: (list) => ` Registered servers: ${list}`,
5456
- notFound: (server) => `Could not find the '${server}' server in any MCP config.`,
5457
- searched: (paths) => ` Looked in: ${paths}`,
5458
- noConfig: "(no config found)",
5459
- httpServer: (server) => `'${server}' is an HTTP/SSE server. It does not need a process restart.`,
5460
- httpHint: " Run /mcp in Claude Code to check the connection.",
5461
- noMarker: "Could not find a process marker (script path).",
5462
- configLine: (cfg) => ` Config: ${cfg}`,
5463
- markerLine: (marker) => ` Marker: ${marker}`,
5464
- noProcess: "\u26A0 No running process found.",
5465
- codexNoProcessHint: " The Codex stdio transport is already closed. This message alone does not prove an auth failure, and this CLI cannot reattach the current thread.",
5466
- codexKilledHint: " The current Codex thread cannot reattach to the terminated stdio server. Start a new thread or reopen Codex.",
5467
- codexVerify: " Verify: call mimi_seed_status in a new Codex thread",
5468
- claudeNoProcessHint: " It may have already exited, or Claude Code may not have started the server yet.",
5469
- claudeKilledHint: " Claude Code will reconnect automatically on the next tool call.",
5470
- claudeVerify: " Verify the connection: run /mcp in Claude Code",
5471
- genericNoProcessHint: " The stdio transport may already be closed. Reopen the MCP client to reconnect.",
5472
- genericKilledHint: " The MCP client owns the stdio server. Reopen the client to reconnect.",
5473
- genericVerify: " Verify: call mimi_seed_status in a new session",
5474
- unknownWriteOutcome: " If the previous call was a write such as an upload or publish, its outcome may be unknown. Check the target service before retrying.",
5475
- killed: (server, n) => `\u2713 ${server} killed (${n} process(es))`,
5476
- notMimiSeed: (marker) => `The 'mimi-seed' config's marker (${marker}) does not look like the mimi-seed MCP server, so nothing was killed. Check this folder's .mcp.json.`,
5477
- tooMany: (n) => `${n} server processes match the marker, so nothing was killed \u2014 too many. Check the args in the MCP config.`
5478
- }
5479
- );
5480
- function readJson(filePath) {
5481
- try {
5482
- return JSON.parse(fs12.readFileSync(filePath, "utf8"));
5483
- } catch {
5484
- return {};
5485
- }
5486
- }
5487
- var BUILTIN_MIMI_SEED_SERVER = {
5488
- command: "npx",
5489
- args: ["-y", "@yoonion/mimi-seed-mcp@latest"]
5490
- };
5491
- function detectMcpClient(env = process.env) {
5492
- if (env.CODEX_THREAD_ID || env.CODEX_CI || env.CODEX_INTERNAL_ORIGINATOR_OVERRIDE) return "codex";
5493
- if (env.CLAUDECODE || env.CLAUDE_CODE || env.CLAUDE_CODE_ENTRYPOINT) return "claude-code";
5729
+ usage: {
5730
+ telemetry: "mimi-seed telemetry on|off|status \u2014 optional usage measurement, off by default. Sends a random installation ID, project hash, version, OS, result codes and duration. Privacy: https://mimi-seed.pryzm.gg/privacy/sdk-usage . MIMI_SEED_TELEMETRY=0 always disables transmission.",
5731
+ init: `${kleur9.bold("mimi-seed init")} \u2014 connect the current project to Mimi Seed
5732
+
5733
+ Auto-detects apps (Expo/Gradle/Info.plist/pbxproj) \u2192 issues a PAT in the browser (remote MCP) \u2192 registers the apps
5734
+ + creates/verifies .claude/mimi-seed.md, AGENTS.md, docs/releases.json.
5735
+
5736
+ Options:
5737
+ --local also sign in with Google OAuth and show local MCP (all store write tools) setup`,
5738
+ setup: `${kleur9.bold("mimi-seed setup")} \u2014 connect the accounts you have, in one pass (guided wizard)
5739
+
5740
+ Shows the connection status first, then asks only about what is not connected yet.
5741
+ Press [?] on any item to learn where and how to obtain that token.
5742
+ Already-connected items are skipped, so you can quit halfway and rerun it later.
5743
+
5744
+ Options:
5745
+ --only <ids> only the given credentials (comma-separated: oauth,appstore,jenkins \u2026)
5746
+ --reconnect <ids> set up again even if already connected
5747
+ --platform android,ios force the platforms (default: auto-detected from the project)
5748
+ --yes, -y ask nothing, just print the status table
5749
+ --non-interactive same as above (for CI)
5750
+ --fail-on-missing exit 1 if a required credential is missing (CI gate)
5751
+
5752
+ ${kleur9.dim("In non-TTY / CI environments it prints the status table only, with no prompts.")}`,
5753
+ credentials: `${kleur9.bold("mimi-seed credentials")} \u2014 encrypt the stored credentials (~/.mimi-seed)
5754
+
5755
+ mimi-seed credentials status storage mode, key store, and each file's state (encrypted \xB7 plaintext \xB7 locked)
5756
+ mimi-seed credentials mode <file|keychain|auto> file: plaintext (default) \xB7 keychain: always encrypt \xB7 auto: encrypt when possible
5757
+ mimi-seed credentials encrypt encrypt the plaintext credentials that exist now (in an encrypting mode)
5758
+ mimi-seed credentials decrypt turn encrypted credentials back into plaintext (after mode file)
5759
+
5760
+ --force when turning a mode on, proceed even if an MCP server registration is pinned to an old version
5761
+
5762
+ ${kleur9.dim("The key lives in the OS key store (macOS Keychain \xB7 Windows DPAPI \xB7 Linux Secret Service). MIMI_SEED_CREDENTIAL_STORE wins over settings.json.")}
5763
+ ${kleur9.dim("Once a machine has encrypted, it does not go back to plaintext until you set mode file. If the key is lost (a keychain reset, for example), sign in to each service again.")}`,
5764
+ lang: `${kleur9.bold("mimi-seed lang")} \u2014 CLI output language (\uD55C\uAD6D\uC5B4 / English)
5765
+
5766
+ mimi-seed lang show current language
5767
+ mimi-seed lang ko \uD55C\uAD6D\uC5B4 (default)
5768
+ mimi-seed lang en English
5769
+
5770
+ ${kleur9.dim("Stored in ~/.mimi-seed/settings.json. MIMI_SEED_LANG takes precedence when set.")}
5771
+ ${kleur9.dim("The setup wizard asks on first run, so you rarely need to type this.")}`,
5772
+ status: `${kleur9.bold("mimi-seed status")} \u2014 connection status + registered apps. No options.`,
5773
+ doctor: `${kleur9.bold("mimi-seed doctor")} \u2014 environment check (token \xB7 Node \xB7 Git \xB7 project \xB7 CI)
5774
+
5775
+ By default it only reports and exits 0. The Mimi Seed cloud token is only a \u2717 when remote features
5776
+ are configured (MIMI_SEED_TOKEN \xB7 MIMI_SEED_WEB_BASE \xB7 .mimi-seed-link.json), and App Store Connect
5777
+ only when the project has an iOS app.
5778
+
5779
+ Options:
5780
+ --strict exit 1 if any \u2717 check fails (\u26A0 is not a failure) \u2014 for CI gating
5781
+ --json print the diagnosis as JSON instead of the human-readable report (includes ok)`,
5782
+ logout: `${kleur9.bold("mimi-seed logout")} \u2014 delete the local config (config.json). No options.`,
5783
+ restart: `${kleur9.bold("mimi-seed restart")} \u2014 restart the MCP server process (default: mimi-seed)
5784
+
5785
+ mimi-seed restart [server-name]`,
5786
+ notes: `${kleur9.bold("mimi-seed notes")} \u2014 generate release notes (git log \u2192 AI \u2192 push to stores)
5787
+
5788
+ Options:
5789
+ --from <ref> start commit/tag (default: latest tag)
5790
+ --to <ref> end commit (default: HEAD)
5791
+ --locale ko,en-US target locales (comma-separated)
5792
+ --apply push to the stores right after generating
5793
+ --no-interactive CI mode (no prompts)
5794
+ --limit <n> max commits (default: 30)`,
5795
+ check: `${kleur9.bold("mimi-seed check")} \u2014 pre-release readiness check
5796
+
5797
+ Options:
5798
+ --app <id> app ID
5799
+ --local inspect the current repository without signing in
5800
+ --path <dir> local project path (default: current directory)
5801
+ --json print the local report as JSON
5802
+ --fail-on-blocker exit 1 if a blocker is found (for CI)`,
5803
+ review: `${kleur9.bold("mimi-seed review")} \u2014 draft a review reply with AI and post it to the Play Store
5804
+
5805
+ Options:
5806
+ --text <content> the review text (interactive prompt if omitted)
5807
+ --rating <1-5> star rating
5808
+ --tone <tone> friendly / professional / empathetic / brief (default: friendly)
5809
+ --language <code> reply language (default: ko)
5810
+ --app-name <name> app name (for context)
5811
+ --apply post the reply to the Play Store
5812
+ --review-id <id> review ID (required with --apply)
5813
+ --package-name <p> package name (required with --apply)
5814
+ --no-interactive CI mode`,
5815
+ deploy: `${kleur9.bold("mimi-seed deploy")} \u2014 automated app release (CI build \u2192 Play Store/App Store)
5816
+
5817
+ Options:
5818
+ --platform android|ios target platform (default: android)
5819
+ --app <id> remote app ID (required for execution)
5820
+ --version-code <n> actual store build number (not a CI run ID)
5821
+ --from <ref> commit range start (for release notes)
5822
+ --to <ref> commit range end (default: HEAD)
5823
+ --language <code> release notes language (default: ko-KR)
5824
+ --dry-run print a local plan (no network, builds or writes)
5825
+ --yes, -y explicitly approve CI and store release (required)
5826
+ --skip-build skip the CI build (--version-code required)
5827
+ --prepare-only stop after build/version verification with a ready web record
5828
+ --resume <runId> submit a ready deployment without rebuilding
5829
+ --ci jenkins|github|gitlab force the CI provider (default: auto)
5830
+ --workflow <file> GitHub workflow file (e.g. deploy.yml)
5831
+ --ref <branch|tag> CI source (default: main; Jenkins: branches only)
5832
+ setup-jenkins / setup-github / setup-gitlab interactive CI setup`,
5833
+ tools: `${kleur9.bold("mimi-seed tools")} \u2014 choose services for your task
5834
+
5835
+ mimi-seed tools show the menu and choose multiple services interactively
5836
+ mimi-seed tools --select ga4,bigquery print the selected services and tool names as JSON
5837
+ `,
5838
+ mcp: `${kleur9.bold("mimi-seed mcp")} \u2014 Claude/Codex MCP connection
5839
+
5840
+ Subcommands:
5841
+ mimi-seed mcp current config + setup instructions
5842
+ mimi-seed mcp claude print the Claude Code registration command
5843
+ mimi-seed mcp codex Codex setup instructions
5844
+ mimi-seed mcp codex --write write straight into ~/.codex/config.toml (\u26A0 stores the real token in plain text)`
5845
+ },
5846
+ help: `${kleur9.bold("mimi-seed")} \u2014 app release ops from Claude Code/Codex
5847
+
5848
+ ${kleur9.bold("Commands:")}
5849
+ ${kleur9.cyan("mimi-seed init")} connect the current project to Mimi Seed
5850
+ ${kleur9.cyan("mimi-seed setup")} connect the accounts you have, in one pass (guided wizard)
5851
+ ${kleur9.cyan("mimi-seed lang")} output language (ko / en)
5852
+ ${kleur9.cyan("mimi-seed credentials")} encrypt the stored credentials (status / mode / encrypt / decrypt)
5853
+ ${kleur9.cyan("mimi-seed status")} connection status + registered apps
5854
+ ${kleur9.cyan("mimi-seed auth")} connect credentials one by one (Google / App Store / Play / Jenkins / CI \u2026)
5855
+ ${kleur9.cyan("mimi-seed firebase")} create Firebase apps, download configs, link GA4
5856
+ ${kleur9.cyan("mimi-seed admob")} list and create AdMob accounts, apps, ad units
5857
+ ${kleur9.cyan("mimi-seed ga4")} create and list GA4 properties and data streams
5858
+ ${kleur9.cyan("mimi-seed tools")} list and select multiple services
5859
+ ${kleur9.cyan("mimi-seed doctor")} environment check (token \xB7 Git \xB7 project \xB7 CI)
5860
+ ${kleur9.cyan("mimi-seed check")} pre-release readiness check
5861
+ ${kleur9.cyan("mimi-seed telemetry")} optional usage measurement settings
5862
+ ${kleur9.cyan("mimi-seed notes")} generate release notes (git log \u2192 AI \u2192 push to stores)
5863
+ ${kleur9.cyan("mimi-seed review")} draft a review reply with AI and post it to the Play Store
5864
+ ${kleur9.cyan("mimi-seed deploy")} automated app release (CI \u2192 Play Store/App Store)
5865
+ ${kleur9.cyan("mimi-seed mcp")} Claude/Codex MCP setup instructions and Codex config writing
5866
+ ${kleur9.cyan("mimi-seed restart")} restart the MCP server process (default: mimi-seed)
5867
+ ${kleur9.cyan("mimi-seed logout")} delete the local config
5868
+ ${kleur9.cyan("mimi-seed --version")} print the installed CLI version
5869
+
5870
+ ${kleur9.dim("Per-command options:")} ${kleur9.cyan("mimi-seed <command> --help")}
5871
+
5872
+ ${kleur9.bold("Environment variables:")}
5873
+ MIMI_SEED_TOKEN PAT token (headless CI/CD mode)
5874
+ MIMI_SEED_WEB_BASE server address (default: https://mimi-seed.pryzm.gg)
5875
+ ANTHROPIC_API_KEY enable AI note generation (optional)
5876
+ MIMI_SEED_LANG force the output language (ko / en) \u2014 beats settings.json
5877
+ MIMI_SEED_GOOGLE_CLIENT_ID / _SECRET
5878
+ use your own Google OAuth client (otherwise fetched from the web console at sign-in)
5879
+ `
5880
+ }
5881
+ );
5882
+ function printCommandHelp(cmd) {
5883
+ const usage = M9().usage[cmd];
5884
+ if (!usage) return false;
5885
+ process.stdout.write(usage + "\n");
5886
+ return true;
5887
+ }
5888
+ function printHelp() {
5889
+ process.stdout.write(M9().help + "\n");
5890
+ }
5891
+
5892
+ // src/credentials-cmd.ts
5893
+ var FIRST_ENVELOPE_READER = "0.24.1";
5894
+ var M10 = catalog(
5895
+ {
5896
+ modeLabel: { file: "\uD3C9\uBB38 (file)", keychain: "\uC554\uD638\uD654 (keychain)", auto: "\uAC00\uB2A5\uD558\uBA74 \uC554\uD638\uD654 (auto)" },
5897
+ header: "\uC790\uACA9\uC99D\uBA85 \uC800\uC7A5",
5898
+ configured: (mode, explicit) => `\uC124\uC815: ${mode}${explicit ? "" : " \u2014 \uAE30\uBCF8\uAC12"}`,
5899
+ effective: (mode) => `\uC801\uC6A9: ${mode}`,
5900
+ upgraded: " (\uC774 \uCEF4\uD4E8\uD130\uB294 \uC774\uBBF8 \uC554\uD638\uD654\uB97C \uC2DC\uC791\uD588\uC73C\uBBC0\uB85C \uD3C9\uBB38\uC73C\uB85C \uB0B4\uB824\uAC00\uC9C0 \uC54A\uC2B5\uB2C8\uB2E4)",
5901
+ envWins: (env) => ` (${env} \uD658\uACBD \uBCC0\uC218\uAC00 settings.json \uBCF4\uB2E4 \uC6B0\uC120\uD569\uB2C8\uB2E4)`,
5902
+ store: (backend, state) => `\uD0A4 \uC800\uC7A5\uC18C: ${backend} \u2014 ${state}`,
5903
+ storeState: { ok: "\uC0AC\uC6A9 \uAC00\uB2A5", absent: "\uD0A4 \uC5C6\uC74C(\uCCAB \uC554\uD638\uD654 \uB54C \uB9CC\uB4ED\uB2C8\uB2E4)", unavailable: "\uB2FF\uC9C0 \uBABB\uD568" },
5904
+ counts: (enc, plain, locked, bad) => `\uD30C\uC77C: \uC554\uD638\uD654 ${enc} \xB7 \uD3C9\uBB38 ${plain}${locked ? ` \xB7 \uC7A0\uAE40 ${locked}` : ""}${bad ? ` \xB7 \uC190\uC0C1 ${bad}` : ""}`,
5905
+ lockedLine: (file, reason) => ` \u2717 ${file} \u2014 ${reason}`,
5906
+ plainHint: "\uD3C9\uBB38 \uD30C\uC77C\uC744 \uC9C0\uAE08 \uC554\uD638\uD654\uD558\uB824\uBA74: mimi-seed credentials encrypt",
5907
+ badMode: (v) => `\uC54C \uC218 \uC5C6\uB294 \uBAA8\uB4DC: ${v} \u2014 file, keychain, auto \uC911 \uD558\uB098`,
5908
+ pinned: (where, version2) => `${where} \uC5D0 Mimi Seed MCP \uC11C\uBC84\uAC00 ${version2} \uC73C\uB85C \uACE0\uC815\uB3FC \uC788\uC2B5\uB2C8\uB2E4. \uADF8 \uBC84\uC804\uC740 \uC554\uD638\uD654\uB41C \uC790\uACA9\uC99D\uBA85\uC744 \uC77D\uC9C0 \uBABB\uD569\uB2C8\uB2E4 \u2014 @latest \uB85C \uBC14\uAFB8\uAC70\uB098 0.24.0 \uBCF4\uB2E4 \uB192\uC740 \uBC84\uC804\uC73C\uB85C \uC62C\uB9B0 \uB4A4 \uB2E4\uC2DC \uC2E4\uD589\uD558\uC138\uC694 (\uBB34\uC2DC\uD558\uB824\uBA74 --force).`,
5909
+ envOverrides: (env, value) => `\uC8FC\uC758: ${env}=${value} \uAC00 \uC124\uC815\uB3FC \uC788\uC5B4 \uADF8 \uAC12\uC774 \uC774 \uC124\uC815\uBCF4\uB2E4 \uC6B0\uC120\uD569\uB2C8\uB2E4. \uBC14\uAFBC \uBAA8\uB4DC\uB97C \uC4F0\uB824\uBA74 \uD658\uACBD \uBCC0\uC218\uB97C \uC9C0\uC6B0\uC138\uC694.`,
5910
+ storeNeeded: (backend, why) => `${backend}\uC5D0 \uB2FF\uC9C0 \uBABB\uD574 \uC554\uD638\uD654\uB97C \uCF24 \uC218 \uC5C6\uC2B5\uB2C8\uB2E4: ${why}`,
5911
+ unlockAsk: "\uB85C\uADF8\uC778 \uD0A4\uCCB4\uC778\uC774 \uC7A0\uACA8 \uC788\uC2B5\uB2C8\uB2E4. \uC9C0\uAE08 \uC7A0\uAE08\uC744 \uD574\uC81C\uD560\uAE4C\uC694? \uD0A4\uCCB4\uC778 \uBE44\uBC00\uBC88\uD638(\uBCF4\uD1B5 \uB85C\uADF8\uC778 \uBE44\uBC00\uBC88\uD638)\uB97C \uBB3B\uC2B5\uB2C8\uB2E4. (y/N) ",
5912
+ autoPending: (why) => `\uC9C0\uAE08\uC740 \uD0A4 \uC800\uC7A5\uC18C\uC5D0 \uB2FF\uC9C0 \uBABB\uD574(${why}) \uD0A4 \uC800\uC7A5\uC18C\uAC00 \uC900\uBE44\uB420 \uB54C\uAE4C\uC9C0 \uD3C9\uBB38\uC73C\uB85C \uC800\uC7A5\uB429\uB2C8\uB2E4.`,
5913
+ modeSaved: (mode) => `\uC800\uC7A5 \uBAA8\uB4DC\uB97C ${mode}(\uC73C)\uB85C \uBC14\uAFE8\uC2B5\uB2C8\uB2E4. \uC55E\uC73C\uB85C \uC4F0\uB294 \uC790\uACA9\uC99D\uBA85\uC5D0 \uC801\uC6A9\uB429\uB2C8\uB2E4.`,
5914
+ modeFileNote: "\uC774\uBBF8 \uC554\uD638\uD654\uB41C \uD30C\uC77C\uC740 \uADF8\uB300\uB85C \uB0A8\uACE0, \uD0A4\uAC00 \uC788\uB294 \uD55C \uACC4\uC18D \uC77D\uD799\uB2C8\uB2E4. \uD3C9\uBB38\uC73C\uB85C \uB418\uB3CC\uB9AC\uB824\uBA74: mimi-seed credentials decrypt",
5915
+ encryptNeedsMode: "\uBA3C\uC800 \uC554\uD638\uD654 \uBAA8\uB4DC\uB97C \uCF1C\uC138\uC694: mimi-seed credentials mode keychain (\uB610\uB294 auto)",
5916
+ decryptNeedsMode: "\uBA3C\uC800 \uD3C9\uBB38 \uBAA8\uB4DC\uB85C \uBC14\uAFB8\uC138\uC694: mimi-seed credentials mode file",
5917
+ converted: (n, what) => `${n}\uAC1C \uD30C\uC77C\uC744 ${what}\uD588\uC2B5\uB2C8\uB2E4.`,
5918
+ encryptedWord: "\uC554\uD638\uD654",
5919
+ decryptedWord: "\uD3C9\uBB38\uC73C\uB85C \uB418\uB3CC",
5920
+ nothing: "\uBC14\uAFC0 \uD30C\uC77C\uC774 \uC5C6\uC2B5\uB2C8\uB2E4.",
5921
+ skipped: (file, reason) => ` \uAC74\uB108\uB700: ${file} \u2014 ${reason}`,
5922
+ markerCleared: "\uB0A8\uC740 \uC554\uD638\uD654 \uD30C\uC77C\uC774 \uC5C6\uC5B4 \uC554\uD638\uD654 \uD45C\uC2DD(.data-key.id)\uC744 \uC9C0\uC6E0\uC2B5\uB2C8\uB2E4."
5923
+ },
5924
+ {
5925
+ modeLabel: { file: "plaintext (file)", keychain: "encrypted (keychain)", auto: "encrypted when possible (auto)" },
5926
+ header: "Credential storage",
5927
+ configured: (mode, explicit) => `Configured: ${mode}${explicit ? "" : " \u2014 default"}`,
5928
+ effective: (mode) => `In effect: ${mode}`,
5929
+ upgraded: " (this machine has already encrypted, so it does not go back to plaintext)",
5930
+ envWins: (env) => ` (the ${env} environment variable wins over settings.json)`,
5931
+ store: (backend, state) => `Key store: ${backend} \u2014 ${state}`,
5932
+ storeState: { ok: "available", absent: "no key yet (created on the first encrypted save)", unavailable: "unreachable" },
5933
+ counts: (enc, plain, locked, bad) => `Files: ${enc} encrypted \xB7 ${plain} plaintext${locked ? ` \xB7 ${locked} locked` : ""}${bad ? ` \xB7 ${bad} damaged` : ""}`,
5934
+ lockedLine: (file, reason) => ` \u2717 ${file} \u2014 ${reason}`,
5935
+ plainHint: "To encrypt the plaintext files now: mimi-seed credentials encrypt",
5936
+ badMode: (v) => `Unknown mode: ${v} \u2014 use file, keychain, or auto`,
5937
+ pinned: (where, version2) => `${where} pins the Mimi Seed MCP server to ${version2}, which cannot read encrypted credentials. Change it to @latest or a version newer than 0.24.0, then run this again (--force to ignore).`,
5938
+ envOverrides: (env, value) => `Note: ${env}=${value} is set and wins over this setting. Unset it to use the mode you just chose.`,
5939
+ storeNeeded: (backend, why) => `Cannot turn on encryption: ${backend} could not be reached: ${why}`,
5940
+ unlockAsk: "The login keychain is locked. Unlock it now? You will be asked for the keychain password (usually your login password). (y/N) ",
5941
+ autoPending: (why) => `The key store can't be reached right now (${why}), so credentials stay plaintext until it is.`,
5942
+ modeSaved: (mode) => `Storage mode set to ${mode}. It applies to credentials saved from now on.`,
5943
+ modeFileNote: "Files already encrypted stay encrypted and keep working while the key exists. To turn them back into plaintext: mimi-seed credentials decrypt",
5944
+ encryptNeedsMode: "Turn on an encrypting mode first: mimi-seed credentials mode keychain (or auto)",
5945
+ decryptNeedsMode: "Switch to plaintext mode first: mimi-seed credentials mode file",
5946
+ converted: (n, what) => `${n} file(s) ${what}.`,
5947
+ encryptedWord: "encrypted",
5948
+ decryptedWord: "turned back into plaintext",
5949
+ nothing: "No files to change.",
5950
+ skipped: (file, reason) => ` skipped: ${file} \u2014 ${reason}`,
5951
+ markerCleared: "No encrypted files remain, so the encryption marker (.data-key.id) was removed."
5952
+ }
5953
+ );
5954
+ function log4(msg = "") {
5955
+ process.stdout.write(msg + "\n");
5956
+ }
5957
+ function findOldMcpPins(home = os3.homedir(), cwd = process.cwd(), floor = FIRST_ENVELOPE_READER) {
5958
+ const candidates = [
5959
+ path15.join(home, ".claude.json"),
5960
+ path15.join(home, ".codex", "config.toml"),
5961
+ path15.join(home, ".cursor", "mcp.json"),
5962
+ path15.join(cwd, ".mcp.json")
5963
+ ];
5964
+ const found = [];
5965
+ for (const file of candidates) {
5966
+ let text;
5967
+ try {
5968
+ text = fs12.readFileSync(file, "utf8");
5969
+ } catch {
5970
+ continue;
5971
+ }
5972
+ for (const match of text.matchAll(/@yoonion\/mimi-seed-mcp@([\^~]?)(\d+)(?:\.(\d+))?(?:\.(\d+))?(?![\w.])/g)) {
5973
+ const [, range, major, minor, patch] = match;
5974
+ const caretMajor = range === "^" && major !== "0";
5975
+ const version2 = [major, caretMajor ? "999" : minor ?? "999", range || patch === void 0 ? "999" : patch].join(".");
5976
+ if (compareVersions2(version2, floor) < 0) found.push({ where: file, version: match[0].slice(match[0].lastIndexOf("@") + 1) });
5977
+ }
5978
+ }
5979
+ return found;
5980
+ }
5981
+ function compareVersions2(a, b) {
5982
+ const pa = a.split(/[.-]/).slice(0, 3).map((n) => Number.parseInt(n, 10) || 0);
5983
+ const pb = b.split(/[.-]/).slice(0, 3).map((n) => Number.parseInt(n, 10) || 0);
5984
+ for (let i = 0; i < 3; i++) if (pa[i] !== pb[i]) return pa[i] - pb[i];
5985
+ return 0;
5986
+ }
5987
+ function printStatus() {
5988
+ const m = M10();
5989
+ const report = credentialStoreReport();
5990
+ log4(kleur10.bold(m.header));
5991
+ log4(m.configured(m.modeLabel[report.configured], report.explicit));
5992
+ log4(m.effective(m.modeLabel[report.effective]));
5993
+ if (report.effective !== report.configured) log4(kleur10.dim(m.upgraded));
5994
+ if (process.env[CREDENTIAL_STORE_ENV]?.trim()) log4(kleur10.dim(m.envWins(CREDENTIAL_STORE_ENV)));
5995
+ if (report.effective !== "file" || report.keyId || report.files.some((f) => f.state !== "plaintext")) {
5996
+ const store = lookupDataKey();
5997
+ log4(m.store(store.backend, m.storeState[store.state] + (store.state === "unavailable" ? ` (${store.reason})` : "")));
5998
+ }
5999
+ const count = (state) => report.files.filter((f) => f.state === state).length;
6000
+ log4(m.counts(count("encrypted"), count("plaintext"), count("locked"), count("invalid")));
6001
+ for (const f of report.files) if (f.state === "locked" || f.state === "invalid") log4(kleur10.red(m.lockedLine(f.file, f.reason ?? "")));
6002
+ if (report.effective !== "file" && count("plaintext") > 0) log4(kleur10.dim(m.plainHint));
6003
+ }
6004
+ function fail(message) {
6005
+ log4(kleur10.red(message));
6006
+ process.exit(1);
6007
+ }
6008
+ async function obtainKeyInteractively() {
6009
+ const key = obtainDataKey();
6010
+ if (key.state !== "unavailable" || !key.locked || process.platform !== "darwin" || !process.stdin.isTTY || !process.stdout.isTTY) {
6011
+ return key;
6012
+ }
6013
+ const rl = createInterface3({ input: process.stdin, output: process.stdout });
6014
+ const answer = (await rl.question(M10().unlockAsk)).trim().toLowerCase();
6015
+ rl.close();
6016
+ if (answer !== "y" && answer !== "yes") return key;
6017
+ spawnSync("/usr/bin/security", ["unlock-keychain", macosLoginKeychain()], { stdio: "inherit" });
6018
+ forgetFailedDataKeyLookup();
6019
+ return obtainDataKey();
6020
+ }
6021
+ async function setMode(value, force) {
6022
+ const m = M10();
6023
+ if (!isCredentialStoreMode(value)) fail(m.badMode(value ?? ""));
6024
+ let pending;
6025
+ if (value !== "file") {
6026
+ const pins = force ? [] : findOldMcpPins();
6027
+ if (pins.length > 0) fail(pins.map((pin) => m.pinned(pin.where, pin.version)).join("\n"));
6028
+ const key = await obtainKeyInteractively();
6029
+ if (value === "keychain" && key.state !== "ok") fail(m.storeNeeded(key.backend, key.state === "unavailable" ? key.reason : "no key"));
6030
+ if (value === "auto" && key.state === "unavailable") pending = key.reason;
6031
+ }
6032
+ writeSettings({ credentialStore: value });
6033
+ log4(kleur10.green(m.modeSaved(m.modeLabel[value])));
6034
+ if (pending) log4(kleur10.yellow(m.autoPending(pending)));
6035
+ const env = process.env[CREDENTIAL_STORE_ENV]?.trim().toLowerCase();
6036
+ if (isCredentialStoreMode(env) && env !== value) log4(kleur10.yellow(m.envOverrides(CREDENTIAL_STORE_ENV, env)));
6037
+ if (value === "file") log4(kleur10.dim(m.modeFileNote));
6038
+ else log4(kleur10.dim(m.plainHint));
6039
+ }
6040
+ async function convert(target) {
6041
+ const m = M10();
6042
+ const report = credentialStoreReport();
6043
+ if (target === "encrypted") {
6044
+ if (report.effective === "file") fail(m.encryptNeedsMode);
6045
+ const key = await obtainKeyInteractively();
6046
+ if (key.state !== "ok") fail(m.storeNeeded(key.backend, key.state === "unavailable" ? key.reason : "no key"));
6047
+ } else if (report.effective !== "file") {
6048
+ const env = process.env[CREDENTIAL_STORE_ENV]?.trim().toLowerCase();
6049
+ fail(isCredentialStoreMode(env) && env !== "file" ? m.envOverrides(CREDENTIAL_STORE_ENV, env) : m.decryptNeedsMode);
6050
+ }
6051
+ const result = rewriteCredentialFiles(target, (file, text) => writeCredentialFile(file, text));
6052
+ log4(result.converted.length > 0 ? kleur10.green(m.converted(result.converted.length, target === "encrypted" ? m.encryptedWord : m.decryptedWord)) : m.nothing);
6053
+ for (const s of result.skipped) log4(kleur10.yellow(m.skipped(s.file, s.reason)));
6054
+ if (target === "plaintext" && result.skipped.length === 0 && !credentialStoreReport().files.some((f) => f.state !== "plaintext")) {
6055
+ clearKeyIdMarker();
6056
+ log4(kleur10.dim(m.markerCleared));
6057
+ }
6058
+ if (result.skipped.length > 0) process.exitCode = 1;
6059
+ }
6060
+ async function cmdCredentials(args) {
6061
+ const [sub, ...rest] = args;
6062
+ switch (sub) {
6063
+ case void 0:
6064
+ case "status":
6065
+ printStatus();
6066
+ return;
6067
+ case "mode":
6068
+ await setMode(rest.find((a) => !a.startsWith("-"))?.toLowerCase(), rest.includes("--force"));
6069
+ return;
6070
+ case "encrypt":
6071
+ await convert("encrypted");
6072
+ return;
6073
+ case "decrypt":
6074
+ await convert("plaintext");
6075
+ return;
6076
+ default:
6077
+ printCommandHelp("credentials");
6078
+ if (sub !== "--help" && sub !== "-h") process.exitCode = 1;
6079
+ }
6080
+ }
6081
+
6082
+ // src/cloud.ts
6083
+ function exitWith2(code) {
6084
+ if (code !== 0) process.exit(code);
6085
+ }
6086
+ async function cmdFirebase(args) {
6087
+ exitWith2(await runMcpBin("mimi-seed-firebase", args));
6088
+ }
6089
+ async function cmdAdmob(args) {
6090
+ exitWith2(await runMcpBin("mimi-seed-admob", args));
6091
+ }
6092
+ async function cmdGa4(args) {
6093
+ exitWith2(await runMcpBin("mimi-seed-ga4", args));
6094
+ }
6095
+
6096
+ // src/mcp-restart.ts
6097
+ import { execFileSync as execFileSync2, execSync } from "child_process";
6098
+ import fs13 from "fs";
6099
+ import os4 from "os";
6100
+ import path16 from "path";
6101
+ import kleur11 from "kleur";
6102
+ function log5(msg) {
6103
+ process.stdout.write(msg + "\n");
6104
+ }
6105
+ var M11 = catalog(
6106
+ {
6107
+ killedPid: (pid) => ` PID ${pid} \uC885\uB8CC`,
6108
+ title: (server) => `MCP \uC11C\uBC84 \uC7AC\uC2DC\uC791: ${server}`,
6109
+ none: "(\uC5C6\uC74C)",
6110
+ notFound: (server) => `'${server}' \uC11C\uBC84\uB97C MCP \uC124\uC815\uC5D0\uC11C \uCC3E\uC9C0 \uBABB\uD588\uC2B5\uB2C8\uB2E4.`,
6111
+ searched: (paths) => ` \uCC3E\uC544\uBCF8 \uACF3: ${paths}`,
6112
+ noConfig: "(\uC124\uC815 \uC5C6\uC74C)",
6113
+ registered: (list) => ` \uB4F1\uB85D\uB41C \uC11C\uBC84: ${list}`,
6114
+ httpServer: (server) => `'${server}'\uB294 HTTP/SSE \uC11C\uBC84\uC785\uB2C8\uB2E4. \uD504\uB85C\uC138\uC2A4 \uC7AC\uC2DC\uC791\uC774 \uD544\uC694\uD558\uC9C0 \uC54A\uC2B5\uB2C8\uB2E4.`,
6115
+ httpHint: " Claude Code\uC5D0\uC11C /mcp \uB97C \uC2E4\uD589\uD574 \uC5F0\uACB0 \uC0C1\uD0DC\uB97C \uD655\uC778\uD558\uC138\uC694.",
6116
+ noMarker: "\uD504\uB85C\uC138\uC2A4 \uC2DD\uBCC4\uC790(\uC2A4\uD06C\uB9BD\uD2B8 \uACBD\uB85C)\uB97C \uCC3E\uC9C0 \uBABB\uD588\uC2B5\uB2C8\uB2E4.",
6117
+ configLine: (cfg) => ` \uC124\uC815: ${cfg}`,
6118
+ markerLine: (marker) => ` \uC2DD\uBCC4\uC790: ${marker}`,
6119
+ noProcess: "\u26A0 \uC2E4\uD589 \uC911\uC778 \uD504\uB85C\uC138\uC2A4\uB97C \uCC3E\uC9C0 \uBABB\uD588\uC2B5\uB2C8\uB2E4.",
6120
+ codexNoProcessHint: " Codex\uC758 stdio transport\uAC00 \uC774\uBBF8 \uB2EB\uD614\uC2B5\uB2C8\uB2E4. \uC774 \uBA54\uC2DC\uC9C0\uB9CC\uC73C\uB85C \uC778\uC99D \uC2E4\uD328\uB97C \uB73B\uD558\uC9C0 \uC54A\uC73C\uBA70, \uC774 CLI\uC5D0\uC11C \uD604\uC7AC thread\uC5D0 \uB2E4\uC2DC \uBD99\uC77C \uC218 \uC5C6\uC2B5\uB2C8\uB2E4.",
6121
+ codexKilledHint: " \uD604\uC7AC Codex thread\uB294 \uC885\uB8CC\uD55C stdio \uC11C\uBC84\uC5D0 \uB2E4\uC2DC \uBD99\uC744 \uC218 \uC5C6\uC2B5\uB2C8\uB2E4. \uC0C8 thread\uB97C \uC2DC\uC791\uD558\uAC70\uB098 Codex\uB97C \uB2E4\uC2DC \uC5EC\uC138\uC694.",
6122
+ codexVerify: " \uD655\uC778: \uC0C8 Codex thread\uC5D0\uC11C mimi_seed_status \uD638\uCD9C",
6123
+ claudeNoProcessHint: " \uC774\uBBF8 \uC885\uB8CC\uB410\uAC70\uB098, Claude Code\uAC00 \uC544\uC9C1 \uC11C\uBC84\uB97C \uC2DC\uC791\uD558\uC9C0 \uC54A\uC740 \uC0C1\uD0DC\uC77C \uC218 \uC788\uC2B5\uB2C8\uB2E4.",
6124
+ claudeKilledHint: " Claude Code\uAC00 \uB2E4\uC74C \uB3C4\uAD6C \uD638\uCD9C \uC2DC \uC790\uB3D9\uC73C\uB85C \uC7AC\uC5F0\uACB0\uD569\uB2C8\uB2E4.",
6125
+ claudeVerify: " \uC5F0\uACB0 \uD655\uC778: Claude Code\uC5D0\uC11C /mcp \uC2E4\uD589",
6126
+ genericNoProcessHint: " stdio transport\uAC00 \uC774\uBBF8 \uB2EB\uD614\uC744 \uC218 \uC788\uC2B5\uB2C8\uB2E4. MCP \uD074\uB77C\uC774\uC5B8\uD2B8\uB97C \uB2E4\uC2DC \uC5F4\uC5B4 \uC5F0\uACB0\uD558\uC138\uC694.",
6127
+ genericKilledHint: " stdio \uC11C\uBC84\uB294 MCP \uD074\uB77C\uC774\uC5B8\uD2B8\uAC00 \uC18C\uC720\uD569\uB2C8\uB2E4. \uD074\uB77C\uC774\uC5B8\uD2B8\uB97C \uB2E4\uC2DC \uC5F4\uC5B4 \uC5F0\uACB0\uD558\uC138\uC694.",
6128
+ genericVerify: " \uC5F0\uACB0 \uD655\uC778: \uC0C8 \uC138\uC158\uC5D0\uC11C mimi_seed_status \uD638\uCD9C",
6129
+ unknownWriteOutcome: " \uC9C1\uC804 \uD638\uCD9C\uC774 \uC5C5\uB85C\uB4DC\xB7\uAC8C\uC2DC \uAC19\uC740 \uC4F0\uAE30\uC600\uB2E4\uBA74 \uACB0\uACFC\uAC00 \uBD88\uBA85\uC77C \uC218 \uC788\uC2B5\uB2C8\uB2E4. \uB300\uC0C1 \uC11C\uBE44\uC2A4\uC5D0\uC11C \uC2E4\uC81C \uBC18\uC601 \uC5EC\uBD80\uB97C \uD655\uC778\uD55C \uB4A4 \uC7AC\uC2DC\uB3C4\uD558\uC138\uC694.",
6130
+ killed: (server, n) => `\u2713 ${server} \uC885\uB8CC\uB428 (${n}\uAC1C \uD504\uB85C\uC138\uC2A4)`,
6131
+ notMimiSeed: (marker) => `'mimi-seed' \uC124\uC815\uC758 \uC2DD\uBCC4\uC790(${marker})\uAC00 mimi-seed MCP \uC11C\uBC84\uB85C \uBCF4\uC774\uC9C0 \uC54A\uC544 \uC544\uBB34\uAC83\uB3C4 \uC885\uB8CC\uD558\uC9C0 \uC54A\uC558\uC2B5\uB2C8\uB2E4. \uC774 \uD3F4\uB354\uC758 .mcp.json \uC744 \uD655\uC778\uD558\uC138\uC694.`,
6132
+ tooMany: (n) => `\uC2DD\uBCC4\uC790\uC640 \uB9DE\uB294 \uC11C\uBC84 \uD504\uB85C\uC138\uC2A4\uAC00 ${n}\uAC1C\uB77C \uC544\uBB34\uAC83\uB3C4 \uC885\uB8CC\uD558\uC9C0 \uC54A\uC558\uC2B5\uB2C8\uB2E4 \u2014 \uB108\uBB34 \uB9CE\uC2B5\uB2C8\uB2E4. MCP \uC124\uC815\uC758 args \uB97C \uD655\uC778\uD558\uC138\uC694.`
6133
+ },
6134
+ {
6135
+ killedPid: (pid) => ` PID ${pid} killed`,
6136
+ title: (server) => `Restarting MCP server: ${server}`,
6137
+ none: "(none)",
6138
+ registered: (list) => ` Registered servers: ${list}`,
6139
+ notFound: (server) => `Could not find the '${server}' server in any MCP config.`,
6140
+ searched: (paths) => ` Looked in: ${paths}`,
6141
+ noConfig: "(no config found)",
6142
+ httpServer: (server) => `'${server}' is an HTTP/SSE server. It does not need a process restart.`,
6143
+ httpHint: " Run /mcp in Claude Code to check the connection.",
6144
+ noMarker: "Could not find a process marker (script path).",
6145
+ configLine: (cfg) => ` Config: ${cfg}`,
6146
+ markerLine: (marker) => ` Marker: ${marker}`,
6147
+ noProcess: "\u26A0 No running process found.",
6148
+ codexNoProcessHint: " The Codex stdio transport is already closed. This message alone does not prove an auth failure, and this CLI cannot reattach the current thread.",
6149
+ codexKilledHint: " The current Codex thread cannot reattach to the terminated stdio server. Start a new thread or reopen Codex.",
6150
+ codexVerify: " Verify: call mimi_seed_status in a new Codex thread",
6151
+ claudeNoProcessHint: " It may have already exited, or Claude Code may not have started the server yet.",
6152
+ claudeKilledHint: " Claude Code will reconnect automatically on the next tool call.",
6153
+ claudeVerify: " Verify the connection: run /mcp in Claude Code",
6154
+ genericNoProcessHint: " The stdio transport may already be closed. Reopen the MCP client to reconnect.",
6155
+ genericKilledHint: " The MCP client owns the stdio server. Reopen the client to reconnect.",
6156
+ genericVerify: " Verify: call mimi_seed_status in a new session",
6157
+ unknownWriteOutcome: " If the previous call was a write such as an upload or publish, its outcome may be unknown. Check the target service before retrying.",
6158
+ killed: (server, n) => `\u2713 ${server} killed (${n} process(es))`,
6159
+ notMimiSeed: (marker) => `The 'mimi-seed' config's marker (${marker}) does not look like the mimi-seed MCP server, so nothing was killed. Check this folder's .mcp.json.`,
6160
+ tooMany: (n) => `${n} server processes match the marker, so nothing was killed \u2014 too many. Check the args in the MCP config.`
6161
+ }
6162
+ );
6163
+ function readJson(filePath) {
6164
+ try {
6165
+ return JSON.parse(fs13.readFileSync(filePath, "utf8"));
6166
+ } catch {
6167
+ return {};
6168
+ }
6169
+ }
6170
+ var BUILTIN_MIMI_SEED_SERVER = {
6171
+ command: "npx",
6172
+ args: ["-y", "@yoonion/mimi-seed-mcp@latest"]
6173
+ };
6174
+ function detectMcpClient(env = process.env) {
6175
+ if (env.CODEX_THREAD_ID || env.CODEX_CI || env.CODEX_INTERNAL_ORIGINATOR_OVERRIDE) return "codex";
6176
+ if (env.CLAUDECODE || env.CLAUDE_CODE || env.CLAUDE_CODE_ENTRYPOINT) return "claude-code";
5494
6177
  return "unknown";
5495
6178
  }
5496
6179
  function recoveryMessages(client, killed) {
5497
- const m = M9();
6180
+ const m = M11();
5498
6181
  if (client === "codex") {
5499
6182
  return { hint: killed ? m.codexKilledHint : m.codexNoProcessHint, verify: m.codexVerify };
5500
6183
  }
@@ -5519,8 +6202,8 @@ function collectServers() {
5519
6202
  for (const [name, cfg] of entries) if (!(name in servers)) servers[name] = cfg;
5520
6203
  };
5521
6204
  const projectDir = process.cwd();
5522
- add(readJson(path15.join(projectDir, ".mcp.json")).mcpServers, ".mcp.json");
5523
- const home = readJson(path15.join(os3.homedir(), ".claude.json"));
6205
+ add(readJson(path16.join(projectDir, ".mcp.json")).mcpServers, ".mcp.json");
6206
+ const home = readJson(path16.join(os4.homedir(), ".claude.json"));
5524
6207
  const projects = home.projects;
5525
6208
  add(projects?.[projectDir]?.mcpServers, "~/.claude.json (projects)");
5526
6209
  add(home.mcpServers, "~/.claude.json");
@@ -5695,10 +6378,10 @@ var LOADER_FLAGS_WITH_VALUE = /* @__PURE__ */ new Set([
5695
6378
  function baseName(value) {
5696
6379
  return value.split(/[\\/]/).pop() ?? value;
5697
6380
  }
5698
- var normalizePath = (value) => path15.posix.normalize(value.replace(/\\/g, "/").toLowerCase());
6381
+ var normalizePath = (value) => path16.posix.normalize(value.replace(/\\/g, "/").toLowerCase());
5699
6382
  var programName = (argv0) => baseName(argv0).toLowerCase().replace(WIN_EXE_RE, "");
5700
6383
  var escapeRegExp3 = (value) => value.replace(/[.*+?^${}()|[\]\\]/g, "\\$&");
5701
- var isAbsoluteScript = (value) => path15.posix.isAbsolute(value) || path15.win32.isAbsolute(value);
6384
+ var isAbsoluteScript = (value) => path16.posix.isAbsolute(value) || path16.win32.isAbsolute(value);
5702
6385
  function isSpecificMarker(value) {
5703
6386
  const v = value.trim();
5704
6387
  if (v.length < 4 || !/[a-z]/i.test(v)) return false;
@@ -5721,7 +6404,7 @@ function findProcessMarker(cfg) {
5721
6404
  function candidateMarkers(cfg, cwd = process.cwd()) {
5722
6405
  const primary = findProcessMarker(cfg);
5723
6406
  if (!primary) return [];
5724
- if (SCRIPT_RE.test(primary)) return [isAbsoluteScript(primary) ? primary : path15.resolve(cwd, primary)];
6407
+ if (SCRIPT_RE.test(primary)) return [isAbsoluteScript(primary) ? primary : path16.resolve(cwd, primary)];
5725
6408
  const base = baseName(primary).replace(WIN_EXE_RE, "");
5726
6409
  const packageIndex = runnerPackageIndex(cfg);
5727
6410
  const isRunnerPackage = packageIndex !== null && Array.isArray(cfg.args) && cfg.args[packageIndex] === primary;
@@ -5753,7 +6436,7 @@ function scriptOf(argv, loaderFlags = /* @__PURE__ */ new Set()) {
5753
6436
  }
5754
6437
  function readPackageJsonFile(dir) {
5755
6438
  try {
5756
- const parsed = JSON.parse(fs12.readFileSync(path15.join(dir, "package.json"), "utf8"));
6439
+ const parsed = JSON.parse(fs13.readFileSync(path16.join(dir, "package.json"), "utf8"));
5757
6440
  return parsed && typeof parsed === "object" ? parsed : null;
5758
6441
  } catch {
5759
6442
  return null;
@@ -5776,7 +6459,7 @@ function matchesMarkers(argv, markers, ctx = {}) {
5776
6459
  const absoluteScript = () => {
5777
6460
  if (resolved === void 0) {
5778
6461
  const cwd = isAbsoluteScript(script) ? null : ctx.processCwd?.() ?? null;
5779
- resolved = isAbsoluteScript(script) ? s : cwd ? normalizePath(path15.resolve(cwd, script)) : null;
6462
+ resolved = isAbsoluteScript(script) ? s : cwd ? normalizePath(path16.resolve(cwd, script)) : null;
5780
6463
  }
5781
6464
  return resolved;
5782
6465
  };
@@ -5795,7 +6478,7 @@ function matchesMarkers(argv, markers, ctx = {}) {
5795
6478
  const name = normalizePath(marker.replace(WIN_EXE_RE, "").replace(VERSION_RE, ""));
5796
6479
  const binName = baseName(name);
5797
6480
  if (s === name || baseName(s).replace(/\.(?:[cm]?js|ts|exe|cmd)$/, "").replace(VERSION_RE, "") === binName) return true;
5798
- const original = path15.posix.normalize(script.replace(/\\/g, "/"));
6481
+ const original = path16.posix.normalize(script.replace(/\\/g, "/"));
5799
6482
  const pattern = name.includes("/") ? new RegExp(`/node_modules/${escapeRegExp3(name)}(?=/)`, "i") : new RegExp(`/node_modules/(?:@[^/]+/)?${escapeRegExp3(name)}(?=/)`, "i");
5800
6483
  const m = pattern.exec(`/${original}`);
5801
6484
  if (!m) return false;
@@ -5866,7 +6549,7 @@ function listPosixProcesses() {
5866
6549
  return list;
5867
6550
  }
5868
6551
  function systemExe(...segments) {
5869
- return path15.win32.join(process.env.SystemRoot ?? "C:\\Windows", "System32", ...segments);
6552
+ return path16.win32.join(process.env.SystemRoot ?? "C:\\Windows", "System32", ...segments);
5870
6553
  }
5871
6554
  var WINDOWS_PROCESS_QUERY = "[Console]::OutputEncoding = [Text.Encoding]::UTF8; Get-CimInstance Win32_Process | Select-Object ProcessId, CommandLine | ConvertTo-Json -Compress";
5872
6555
  function parseWindowsProcesses(json) {
@@ -5901,17 +6584,17 @@ function listWindowsProcesses() {
5901
6584
  var MIMI_SEED_PACKAGE = "@yoonion/mimi-seed-mcp";
5902
6585
  function looksLikeMimiSeed(marker, read = readPackageJsonFile) {
5903
6586
  if (SCRIPT_RE.test(marker)) {
5904
- const file = path15.resolve(marker);
5905
- let dir = path15.dirname(file);
6587
+ const file = path16.resolve(marker);
6588
+ let dir = path16.dirname(file);
5906
6589
  for (let depth = 0; depth < 6; depth++) {
5907
6590
  const pkg = read(dir);
5908
6591
  if (pkg) {
5909
6592
  if (pkg.name !== MIMI_SEED_PACKAGE) return false;
5910
- const rest = normalizePath(path15.relative(dir, file));
6593
+ const rest = normalizePath(path16.relative(dir, file));
5911
6594
  const bin = pkg.bin && typeof pkg.bin === "object" ? pkg.bin["mimi-seed-mcp"] : null;
5912
6595
  return rest === "src/index.ts" || rest === normalizePath(typeof bin === "string" ? bin : "dist/index.js");
5913
6596
  }
5914
- const up = path15.dirname(dir);
6597
+ const up = path16.dirname(dir);
5915
6598
  if (up === dir) break;
5916
6599
  dir = up;
5917
6600
  }
@@ -5922,7 +6605,7 @@ function looksLikeMimiSeed(marker, read = readPackageJsonFile) {
5922
6605
  }
5923
6606
  function processCwd(pid) {
5924
6607
  try {
5925
- if (process.platform === "linux") return fs12.readlinkSync(`/proc/${pid}/cwd`);
6608
+ if (process.platform === "linux") return fs13.readlinkSync(`/proc/${pid}/cwd`);
5926
6609
  if (process.platform === "darwin") {
5927
6610
  const out = execFileSync2("/usr/sbin/lsof", ["-a", "-d", "cwd", "-Fn", "-p", String(pid)], { encoding: "utf8", stdio: "pipe" });
5928
6611
  return out.split("\n").find((l) => l.startsWith("n"))?.slice(1) ?? null;
@@ -5943,7 +6626,7 @@ function planKill(processes, markers, {
5943
6626
  }
5944
6627
  function killByMarkers(markers) {
5945
6628
  if (markers.length === 0) return { killed: 0, refused: 0 };
5946
- const isWin = os3.platform() === "win32";
6629
+ const isWin = os4.platform() === "win32";
5947
6630
  const { pids, refused } = planKill(isWin ? listWindowsProcesses() : listPosixProcesses(), markers);
5948
6631
  if (refused) return { killed: 0, refused };
5949
6632
  let killed = 0;
@@ -5951,7 +6634,7 @@ function killByMarkers(markers) {
5951
6634
  try {
5952
6635
  if (isWin) execFileSync2(systemExe("taskkill.exe"), ["/F", "/PID", String(pid)], { stdio: "pipe" });
5953
6636
  else process.kill(pid, "SIGTERM");
5954
- log4(kleur9.dim(M9().killedPid(String(pid))));
6637
+ log5(kleur11.dim(M11().killedPid(String(pid))));
5955
6638
  killed += 1;
5956
6639
  } catch {
5957
6640
  }
@@ -5960,355 +6643,58 @@ function killByMarkers(markers) {
5960
6643
  }
5961
6644
  async function cmdRestart(args) {
5962
6645
  const serverName = args[0] ?? "mimi-seed";
5963
- log4(kleur9.bold(M9().title(serverName)));
5964
- log4("");
6646
+ log5(kleur11.bold(M11().title(serverName)));
6647
+ log5("");
5965
6648
  const { servers, sources } = collectServers();
5966
6649
  const cfg = resolveServerConfig(servers, serverName);
5967
6650
  if (!cfg) {
5968
6651
  const names = Object.keys(servers);
5969
- const available = names.length ? names.join(", ") : M9().none;
5970
- log4(kleur9.red(M9().notFound(serverName)));
5971
- log4(kleur9.dim(M9().searched(sources.length ? sources.join(", ") : M9().noConfig)));
5972
- log4(kleur9.dim(M9().registered(available)));
6652
+ const available = names.length ? names.join(", ") : M11().none;
6653
+ log5(kleur11.red(M11().notFound(serverName)));
6654
+ log5(kleur11.dim(M11().searched(sources.length ? sources.join(", ") : M11().noConfig)));
6655
+ log5(kleur11.dim(M11().registered(available)));
5973
6656
  process.exit(1);
5974
6657
  }
5975
6658
  if (cfg.type === "http" || cfg.type === "sse") {
5976
- log4(kleur9.yellow(M9().httpServer(serverName)));
5977
- log4(kleur9.dim(M9().httpHint));
6659
+ log5(kleur11.yellow(M11().httpServer(serverName)));
6660
+ log5(kleur11.dim(M11().httpHint));
5978
6661
  return;
5979
6662
  }
5980
6663
  const markers = candidateMarkers(cfg);
5981
6664
  const marker = markers[0] ?? null;
5982
6665
  if (!marker) {
5983
- log4(kleur9.yellow(M9().noMarker));
5984
- log4(kleur9.dim(M9().configLine(JSON.stringify(cfg))));
6666
+ log5(kleur11.yellow(M11().noMarker));
6667
+ log5(kleur11.dim(M11().configLine(JSON.stringify(cfg))));
5985
6668
  process.exit(1);
5986
6669
  }
5987
6670
  if (serverName === "mimi-seed" && !markers.every((m) => looksLikeMimiSeed(m))) {
5988
- log4(kleur9.red(M9().notMimiSeed(marker)));
5989
- log4(kleur9.dim(M9().configLine(JSON.stringify(cfg))));
6671
+ log5(kleur11.red(M11().notMimiSeed(marker)));
6672
+ log5(kleur11.dim(M11().configLine(JSON.stringify(cfg))));
5990
6673
  process.exit(1);
5991
6674
  }
5992
- log4(kleur9.dim(M9().markerLine(marker)));
6675
+ log5(kleur11.dim(M11().markerLine(marker)));
5993
6676
  const { killed, refused } = killByMarkers(markers);
5994
6677
  if (refused > 0) {
5995
- log4(kleur9.red(M9().tooMany(refused)));
5996
- log4(kleur9.dim(M9().configLine(JSON.stringify(cfg))));
6678
+ log5(kleur11.red(M11().tooMany(refused)));
6679
+ log5(kleur11.dim(M11().configLine(JSON.stringify(cfg))));
5997
6680
  process.exit(1);
5998
6681
  }
5999
6682
  const recovery = recoveryMessages(detectMcpClient(), killed > 0);
6000
6683
  if (killed === 0) {
6001
- log4(kleur9.yellow(M9().noProcess));
6002
- log4(kleur9.dim(recovery.hint));
6003
- log4(kleur9.yellow(M9().unknownWriteOutcome));
6684
+ log5(kleur11.yellow(M11().noProcess));
6685
+ log5(kleur11.dim(recovery.hint));
6686
+ log5(kleur11.yellow(M11().unknownWriteOutcome));
6004
6687
  } else {
6005
- log4("");
6006
- log4(kleur9.green(M9().killed(serverName, killed)));
6007
- log4(kleur9.dim(recovery.hint));
6008
- }
6009
- log4("");
6010
- log4(kleur9.cyan(recovery.verify));
6011
- }
6012
-
6013
- // src/help.ts
6014
- import kleur10 from "kleur";
6015
- var M10 = catalog(
6016
- {
6017
- // 명령별 상세 사용법 (SSOT). `mimi-seed <command> --help` 와 overview 가 공유.
6018
- usage: {
6019
- telemetry: "mimi-seed telemetry on|off|status \u2014 \uC120\uD0DD\uC801 \uC0AC\uC6A9\uB7C9 \uCE21\uC815. \uAE30\uBCF8 \uAEBC\uC9D0. \uC784\uC758 \uC124\uCE58 ID, \uD504\uB85C\uC81D\uD2B8 \uD574\uC2DC, \uBC84\uC804, OS, \uACB0\uACFC \uCF54\uB4DC\uC640 \uC2E4\uD589\uC2DC\uAC04\uC744 \uC804\uC1A1\uD569\uB2C8\uB2E4. \uAC1C\uC778\uC815\uBCF4 \uC548\uB0B4: https://mimi-seed.pryzm.gg/privacy/sdk-usage . MIMI_SEED_TELEMETRY=0\uC740 \uD56D\uC0C1 \uC804\uC1A1\uC744 \uB055\uB2C8\uB2E4.",
6020
- init: `${kleur10.bold("mimi-seed init")} \u2014 \uD604\uC7AC \uD504\uB85C\uC81D\uD2B8\uB97C Mimi Seed\uC5D0 \uC5F0\uACB0
6021
-
6022
- \uC571 \uC790\uB3D9 \uAC10\uC9C0(Expo/Gradle/Info.plist/pbxproj) \u2192 \uBE0C\uB77C\uC6B0\uC800 PAT \uBC1C\uAE09(\uC6D0\uACA9 MCP) \u2192 \uC571 \uB4F1\uB85D
6023
- + .claude/mimi-seed.md, AGENTS.md, docs/releases.json \uC0DD\uC131/\uD655\uC778.
6024
-
6025
- \uC635\uC158:
6026
- --local \uCD94\uAC00\uB85C Google OAuth \uB85C\uADF8\uC778 + \uB85C\uCEEC MCP(\uC2A4\uD1A0\uC5B4 \uC4F0\uAE30 \uB3C4\uAD6C \uC804\uCCB4) \uB4F1\uB85D \uC548\uB0B4`,
6027
- setup: `${kleur10.bold("mimi-seed setup")} \u2014 \uAC00\uC9C4 \uACC4\uC815\uC744 \uD55C \uBC88\uC5D0 \uC5F0\uACB0 (\uC548\uB0B4\uD615 \uB9C8\uBC95\uC0AC)
6028
-
6029
- \uC5F0\uACB0 \uC0C1\uD0DC\uB97C \uBA3C\uC800 \uBCF4\uC5EC\uC8FC\uACE0, \uC544\uC9C1 \uC5F0\uACB0\uB418\uC9C0 \uC54A\uC740 \uAC83\uB9CC \uC21C\uC11C\uB300\uB85C \uBB3C\uC5B4\uBCF8\uB2E4.
6030
- \uAC01 \uD56D\uBAA9\uC5D0\uC11C [?] \uB97C \uB204\uB974\uBA74 "\uADF8 \uD1A0\uD070\uC744 \uC5B4\uB514\uC11C \uC5B4\uB5BB\uAC8C \uBC1C\uAE09\uBC1B\uB294\uC9C0"\uB97C \uC54C\uB824\uC900\uB2E4.
6031
- \uC774\uBBF8 \uC5F0\uACB0\uB41C \uD56D\uBAA9\uC740 \uAC74\uB108\uB6F0\uBBC0\uB85C, \uC911\uAC04\uC5D0 \uADF8\uB9CC\uB450\uACE0 \uB098\uC911\uC5D0 \uB2E4\uC2DC \uC2E4\uD589\uD574\uB3C4 \uB41C\uB2E4.
6032
-
6033
- \uC635\uC158:
6034
- --only <ids> \uC9C0\uC815\uD55C \uC790\uACA9\uC99D\uBA85\uB9CC (\uC27C\uD45C \uAD6C\uBD84: oauth,appstore,jenkins \u2026)
6035
- --reconnect <ids> \uC774\uBBF8 \uC5F0\uACB0\uB3FC \uC788\uC5B4\uB3C4 \uB2E4\uC2DC \uC124\uC815
6036
- --platform android,ios \uD50C\uB7AB\uD3FC \uAC15\uC81C \uC9C0\uC815 (\uAE30\uBCF8: \uD504\uB85C\uC81D\uD2B8\uC5D0\uC11C \uC790\uB3D9 \uAC10\uC9C0)
6037
- --yes, -y \uC544\uBB34\uAC83\uB3C4 \uBB3B\uC9C0 \uC54A\uACE0 \uC0C1\uD0DC\uD45C\uB9CC \uCD9C\uB825
6038
- --non-interactive \uC704\uC640 \uB3D9\uC77C (CI \uC6A9)
6039
- --fail-on-missing \uD544\uC218 \uC790\uACA9\uC99D\uBA85\uC774 \uC5C6\uC73C\uBA74 exit 1 (CI \uAC8C\uC774\uD2B8)
6040
-
6041
- ${kleur10.dim("\uBE44TTY / CI \uD658\uACBD\uC5D0\uC11C\uB294 \uD504\uB86C\uD504\uD2B8 \uC5C6\uC774 \uC0C1\uD0DC\uD45C\uB9CC \uCD9C\uB825\uD55C\uB2E4.")}`,
6042
- lang: `${kleur10.bold("mimi-seed lang")} \u2014 CLI \uCD9C\uB825 \uC5B8\uC5B4 (\uD55C\uAD6D\uC5B4 / English)
6043
-
6044
- mimi-seed lang \uD604\uC7AC \uC5B8\uC5B4 \uD45C\uC2DC
6045
- mimi-seed lang ko \uD55C\uAD6D\uC5B4 (\uAE30\uBCF8)
6046
- mimi-seed lang en English
6047
-
6048
- ${kleur10.dim("~/.mimi-seed/settings.json \uC5D0 \uC800\uC7A5\uB429\uB2C8\uB2E4. \uD658\uACBD\uBCC0\uC218 MIMI_SEED_LANG \uAC00 \uC788\uC73C\uBA74 \uADF8\uAC8C \uC6B0\uC120\uD569\uB2C8\uB2E4.")}
6049
- ${kleur10.dim("setup \uB9C8\uBC95\uC0AC\uAC00 \uCCAB \uC2E4\uD589 \uB54C \uBB3C\uC5B4\uBCF4\uBBC0\uB85C \uBCF4\uD1B5\uC740 \uC9C1\uC811 \uCE60 \uC77C\uC774 \uC5C6\uC2B5\uB2C8\uB2E4.")}`,
6050
- status: `${kleur10.bold("mimi-seed status")} \u2014 \uC5F0\uACB0 \uC0C1\uD0DC + \uB4F1\uB85D \uC571 \uBAA9\uB85D. \uC635\uC158 \uC5C6\uC74C.`,
6051
- doctor: `${kleur10.bold("mimi-seed doctor")} \u2014 \uD658\uACBD \uC9C4\uB2E8 (\uD1A0\uD070\xB7Node\xB7Git\xB7\uD504\uB85C\uC81D\uD2B8\xB7CI)
6052
-
6053
- \uAE30\uBCF8\uC740 \uC9C4\uB2E8\uB9CC \uD558\uACE0 exit 0. Mimi Seed \uD074\uB77C\uC6B0\uB4DC \uD1A0\uD070\uC740 \uC6D0\uACA9 \uAE30\uB2A5
6054
- (MIMI_SEED_TOKEN \xB7 MIMI_SEED_WEB_BASE \xB7 .mimi-seed-link.json)\uC744 \uC4F8 \uB54C\uB9CC, App Store Connect \uB294
6055
- \uD504\uB85C\uC81D\uD2B8\uC5D0 iOS \uC571\uC774 \uC788\uC744 \uB54C\uB9CC \u2717 \uB85C \uBCF8\uB2E4.
6056
-
6057
- \uC635\uC158:
6058
- --strict \u2717 \uD56D\uBAA9\uC774 \uD558\uB098\uB77C\uB3C4 \uC788\uC73C\uBA74 exit 1 (\u26A0 \uB294 \uC2E4\uD328\uAC00 \uC544\uB2D8) \u2014 CI \uAC8C\uC774\uD2B8\uC6A9
6059
- --json \uC0AC\uB78C\uC6A9 \uCD9C\uB825 \uB300\uC2E0 \uC9C4\uB2E8 \uACB0\uACFC\uB97C JSON\uC73C\uB85C \uCD9C\uB825 (ok \uD544\uB4DC \uD3EC\uD568)`,
6060
- logout: `${kleur10.bold("mimi-seed logout")} \u2014 \uB85C\uCEEC \uC124\uC815(config.json) \uC0AD\uC81C. \uC635\uC158 \uC5C6\uC74C.`,
6061
- restart: `${kleur10.bold("mimi-seed restart")} \u2014 MCP \uC11C\uBC84 \uD504\uB85C\uC138\uC2A4 \uC7AC\uC2DC\uC791 (\uAE30\uBCF8: mimi-seed)
6062
-
6063
- mimi-seed restart [server-name]`,
6064
- notes: `${kleur10.bold("mimi-seed notes")} \u2014 \uB9B4\uB9AC\uC988 \uB178\uD2B8 \uC0DD\uC131 (git log \u2192 AI \u2192 \uB9C8\uCF13 \uC801\uC6A9)
6065
-
6066
- \uC635\uC158:
6067
- --from <ref> \uC2DC\uC791 \uCEE4\uBC0B/\uD0DC\uADF8 (\uAE30\uBCF8: \uCD5C\uC2E0 \uD0DC\uADF8)
6068
- --to <ref> \uB05D \uCEE4\uBC0B (\uAE30\uBCF8: HEAD)
6069
- --locale ko,en-US \uB300\uC0C1 \uB85C\uCF00\uC77C (\uC27C\uD45C \uAD6C\uBD84)
6070
- --apply \uC0DD\uC131 \uD6C4 \uC2A4\uD1A0\uC5B4\uC5D0 \uBC14\uB85C \uC801\uC6A9
6071
- --no-interactive CI \uBAA8\uB4DC (\uD504\uB86C\uD504\uD2B8 \uC5C6\uC74C)
6072
- --limit <n> \uCD5C\uB300 \uCEE4\uBC0B \uC218 (\uAE30\uBCF8: 30)`,
6073
- check: `${kleur10.bold("mimi-seed check")} \u2014 \uCD9C\uC2DC \uC804 Readiness \uC810\uAC80
6074
-
6075
- \uC635\uC158:
6076
- --app <id> \uC571 ID \uC9C0\uC815
6077
- --local \uB85C\uADF8\uC778 \uC5C6\uC774 \uD604\uC7AC \uC800\uC7A5\uC18C\uB9CC \uAC80\uC0AC
6078
- --path <dir> \uB85C\uCEEC \uAC80\uC0AC \uB300\uC0C1 \uACBD\uB85C (\uAE30\uBCF8: \uD604\uC7AC \uD3F4\uB354)
6079
- --json \uB85C\uCEEC \uAC80\uC0AC \uACB0\uACFC\uB97C JSON\uC73C\uB85C \uCD9C\uB825
6080
- --fail-on-blocker \uBE14\uB85C\uCEE4 \uC788\uC73C\uBA74 exit 1 (CI\uC6A9)`,
6081
- review: `${kleur10.bold("mimi-seed review")} \u2014 \uB9AC\uBDF0 \uB2F5\uBCC0 AI \uCD08\uC548 \uC0DD\uC131 \uBC0F Play Store \uAC8C\uC2DC
6082
-
6083
- \uC635\uC158:
6084
- --text <\uB0B4\uC6A9> \uB9AC\uBDF0 \uC6D0\uBB38 (\uBBF8\uC785\uB825 \uC2DC \uB300\uD654\uD615 \uD504\uB86C\uD504\uD2B8)
6085
- --rating <1-5> \uBCC4\uC810
6086
- --tone <tone> friendly / professional / empathetic / brief (\uAE30\uBCF8: friendly)
6087
- --language <\uCF54\uB4DC> \uB2F5\uBCC0 \uC5B8\uC5B4 (\uAE30\uBCF8: ko)
6088
- --app-name <\uC774\uB984> \uC571 \uC774\uB984 (\uB9E5\uB77D\uC6A9)
6089
- --apply \uB2F5\uBCC0\uC744 Play Store\uC5D0 \uAC8C\uC2DC
6090
- --review-id <id> \uB9AC\uBDF0 ID (--apply \uC2DC \uD544\uC694)
6091
- --package-name <p> \uD328\uD0A4\uC9C0\uBA85 (--apply \uC2DC \uD544\uC694)
6092
- --no-interactive CI \uBAA8\uB4DC`,
6093
- deploy: `${kleur10.bold("mimi-seed deploy")} \u2014 \uC571 \uC790\uB3D9 \uBC30\uD3EC (CI \uBE4C\uB4DC \u2192 Play Store/App Store)
6094
-
6095
- \uC635\uC158:
6096
- --platform android|ios \uBC30\uD3EC \uD50C\uB7AB\uD3FC (\uAE30\uBCF8: android)
6097
- --app <id> \uBC30\uD3EC\uD560 \uC6D0\uACA9 \uC571 ID (\uC2E4\uC81C \uC2E4\uD589 \uD544\uC218)
6098
- --version-code <n> \uC2E4\uC81C \uC2A4\uD1A0\uC5B4 \uBE4C\uB4DC \uBC88\uD638 (CI \uC2E4\uD589 \uBC88\uD638 \uC544\uB2D8)
6099
- --from <ref> \uCEE4\uBC0B \uBC94\uC704 \uC2DC\uC791 (\uB9B4\uB9AC\uC988 \uB178\uD2B8\uC6A9)
6100
- --to <ref> \uCEE4\uBC0B \uBC94\uC704 \uB05D (\uAE30\uBCF8: HEAD)
6101
- --language <\uCF54\uB4DC> \uB9B4\uB9AC\uC988 \uB178\uD2B8 \uC5B8\uC5B4 (\uAE30\uBCF8: ko-KR)
6102
- --dry-run \uB85C\uCEEC \uACC4\uD68D\uB9CC \uCD9C\uB825 (\uB124\uD2B8\uC6CC\uD06C\xB7\uBE4C\uB4DC\xB7\uC4F0\uAE30 \uC5C6\uC74C)
6103
- --yes, -y CI \uC2E4\uD589\xB7\uC2A4\uD1A0\uC5B4 \uBC30\uD3EC \uBA85\uC2DC\uC801 \uC2B9\uC778 (\uC2E4\uD589 \uD544\uC218)
6104
- --skip-build CI \uBE4C\uB4DC \uAC74\uB108\uB700 (--version-code \uD544\uC218)
6105
- --prepare-only \uBE4C\uB4DC\xB7\uBC84\uC804 \uD655\uC778 \uD6C4 \uC6F9 \uAE30\uB85D\uC744 \uC900\uBE44 \uC0C1\uD0DC\uB85C \uB450\uACE0 \uC81C\uCD9C \uC911\uB2E8
6106
- --resume <runId> \uC900\uBE44\uB41C \uBC30\uD3EC\uB97C CI \uBE4C\uB4DC \uC5C6\uC774 \uC774\uC5B4\uC11C \uC81C\uCD9C
6107
- --ci jenkins|github|gitlab CI \uAC15\uC81C \uC120\uD0DD (\uAE30\uBCF8: auto)
6108
- --workflow <file> GitHub workflow \uD30C\uC77C (\uC608: deploy.yml)
6109
- --ref <branch|tag> CI \uC18C\uC2A4 (\uAE30\uBCF8: main, Jenkins\uB294 \uBE0C\uB79C\uCE58\uB9CC)
6110
- setup-jenkins / setup-github / setup-gitlab CI \uC124\uC815 \uB300\uD654\uD615 \uB4F1\uB85D`,
6111
- tools: `${kleur10.bold("mimi-seed tools")} \u2014 \uC0AC\uC6A9\uD560 \uC11C\uBE44\uC2A4 \uACE0\uB974\uAE30
6112
-
6113
- mimi-seed tools \uC11C\uBE44\uC2A4 \uBAA9\uB85D \uD45C\uC2DC \uBC0F \uB300\uD654\uD615 \uB2E4\uC911 \uC120\uD0DD
6114
- mimi-seed tools --select ga4,bigquery \uC120\uD0DD\uD55C \uC11C\uBE44\uC2A4\uC640 \uB3C4\uAD6C \uC774\uB984\uC744 JSON\uC73C\uB85C \uCD9C\uB825
6115
- `,
6116
- mcp: `${kleur10.bold("mimi-seed mcp")} \u2014 Claude/Codex MCP \uC5F0\uACB0
6117
-
6118
- \uC11C\uBE0C\uBA85\uB839:
6119
- mimi-seed mcp \uD604\uC7AC \uC124\uC815 + \uB4F1\uB85D \uC548\uB0B4
6120
- mimi-seed mcp claude Claude Code \uB4F1\uB85D \uBA85\uB839 \uCD9C\uB825
6121
- mimi-seed mcp codex Codex \uB4F1\uB85D \uC548\uB0B4
6122
- mimi-seed mcp codex --write ~/.codex/config.toml\uC5D0 \uC9C1\uC811 \uAE30\uB85D (\u26A0 \uC2E4\uC81C \uD1A0\uD070 \uD3C9\uBB38 \uC800\uC7A5)`
6123
- },
6124
- help: `${kleur10.bold("mimi-seed")} \u2014 Claude Code/Codex\uC5D0\uC11C \uC571 \uCD9C\uC2DC \uC6B4\uC601
6125
-
6126
- ${kleur10.bold("\uBA85\uB839\uC5B4:")}
6127
- ${kleur10.cyan("mimi-seed init")} \uD604\uC7AC \uD504\uB85C\uC81D\uD2B8\uB97C Mimi Seed\uC5D0 \uC5F0\uACB0
6128
- ${kleur10.cyan("mimi-seed setup")} \uAC00\uC9C4 \uACC4\uC815\uC744 \uD55C \uBC88\uC5D0 \uC5F0\uACB0 (\uC548\uB0B4\uD615 \uB9C8\uBC95\uC0AC)
6129
- ${kleur10.cyan("mimi-seed lang")} \uCD9C\uB825 \uC5B8\uC5B4 (ko / en)
6130
- ${kleur10.cyan("mimi-seed status")} \uC5F0\uACB0 \uC0C1\uD0DC + \uB4F1\uB85D \uC571 \uBAA9\uB85D
6131
- ${kleur10.cyan("mimi-seed auth")} \uC790\uACA9\uC99D\uBA85 \uAC1C\uBCC4 \uC778\uC99D (Google / App Store / Play / Jenkins / CI \u2026)
6132
- ${kleur10.cyan("mimi-seed firebase")} Firebase \uC571 \uC0DD\uC131\xB7config \uB2E4\uC6B4\uB85C\uB4DC\xB7GA4 \uB9C1\uD06C
6133
- ${kleur10.cyan("mimi-seed admob")} AdMob \uACC4\uC815\xB7\uC571\xB7\uAD11\uACE0\uB2E8\uC704 \uC870\uD68C \uBC0F \uC0DD\uC131
6134
- ${kleur10.cyan("mimi-seed ga4")} GA4 property\xB7data stream \uC0DD\uC131\xB7\uC870\uD68C
6135
- ${kleur10.cyan("mimi-seed tools")} \uC11C\uBE44\uC2A4 \uBAA9\uB85D \uD45C\uC2DC \uBC0F \uB2E4\uC911 \uC120\uD0DD
6136
- ${kleur10.cyan("mimi-seed doctor")} \uD658\uACBD \uC9C4\uB2E8 (\uD1A0\uD070\xB7Git\xB7\uD504\uB85C\uC81D\uD2B8\xB7CI \uCCB4\uD06C)
6137
- ${kleur10.cyan("mimi-seed check")} \uCD9C\uC2DC \uC804 Readiness \uC810\uAC80
6138
- ${kleur10.cyan("mimi-seed telemetry")} \uC120\uD0DD\uC801 \uC0AC\uC6A9\uB7C9 \uCE21\uC815 \uC124\uC815
6139
- ${kleur10.cyan("mimi-seed notes")} \uB9B4\uB9AC\uC988 \uB178\uD2B8 \uC0DD\uC131 (git log \u2192 AI \u2192 \uB9C8\uCF13 \uC801\uC6A9)
6140
- ${kleur10.cyan("mimi-seed review")} \uB9AC\uBDF0 \uB2F5\uBCC0 AI \uCD08\uC548 \uC0DD\uC131 \uBC0F Play Store \uAC8C\uC2DC
6141
- ${kleur10.cyan("mimi-seed deploy")} \uC571 \uC790\uB3D9 \uBC30\uD3EC (CI \u2192 Play Store/App Store)
6142
- ${kleur10.cyan("mimi-seed mcp")} Claude/Codex MCP \uC5F0\uACB0 \uC548\uB0B4 \uBC0F Codex \uC124\uC815 \uC4F0\uAE30
6143
- ${kleur10.cyan("mimi-seed restart")} MCP \uC11C\uBC84 \uD504\uB85C\uC138\uC2A4 \uC7AC\uC2DC\uC791 (\uAE30\uBCF8: mimi-seed)
6144
- ${kleur10.cyan("mimi-seed logout")} \uB85C\uCEEC \uC124\uC815 \uC0AD\uC81C
6145
- ${kleur10.cyan("mimi-seed --version")} \uC124\uCE58\uB41C CLI \uBC84\uC804 \uCD9C\uB825
6146
-
6147
- ${kleur10.dim("\uAC01 \uBA85\uB839 \uC0C1\uC138 \uC635\uC158:")} ${kleur10.cyan("mimi-seed <command> --help")}
6148
-
6149
- ${kleur10.bold("\uD658\uACBD\uBCC0\uC218:")}
6150
- MIMI_SEED_TOKEN PAT \uD1A0\uD070 (CI/CD \uBB34\uC778\uC99D \uBAA8\uB4DC)
6151
- MIMI_SEED_WEB_BASE \uC11C\uBC84 \uC8FC\uC18C (\uAE30\uBCF8: https://mimi-seed.pryzm.gg)
6152
- ANTHROPIC_API_KEY AI \uB178\uD2B8 \uC0DD\uC131 \uD65C\uC131\uD654 (\uC120\uD0DD)
6153
- MIMI_SEED_LANG \uCD9C\uB825 \uC5B8\uC5B4 \uAC15\uC81C (ko / en) \u2014 settings.json \uBCF4\uB2E4 \uC6B0\uC120
6154
- MIMI_SEED_GOOGLE_CLIENT_ID / _SECRET
6155
- \uC9C1\uC811 \uB9CC\uB4E0 Google OAuth \uD074\uB77C\uC774\uC5B8\uD2B8 \uC0AC\uC6A9 (\uBBF8\uC9C0\uC815 \uC2DC \uB85C\uADF8\uC778 \uB54C \uC6F9 \uCF58\uC194\uC5D0\uC11C \uBC1B\uC544\uC634)
6156
- `
6157
- },
6158
- {
6159
- usage: {
6160
- telemetry: "mimi-seed telemetry on|off|status \u2014 optional usage measurement, off by default. Sends a random installation ID, project hash, version, OS, result codes and duration. Privacy: https://mimi-seed.pryzm.gg/privacy/sdk-usage . MIMI_SEED_TELEMETRY=0 always disables transmission.",
6161
- init: `${kleur10.bold("mimi-seed init")} \u2014 connect the current project to Mimi Seed
6162
-
6163
- Auto-detects apps (Expo/Gradle/Info.plist/pbxproj) \u2192 issues a PAT in the browser (remote MCP) \u2192 registers the apps
6164
- + creates/verifies .claude/mimi-seed.md, AGENTS.md, docs/releases.json.
6165
-
6166
- Options:
6167
- --local also sign in with Google OAuth and show local MCP (all store write tools) setup`,
6168
- setup: `${kleur10.bold("mimi-seed setup")} \u2014 connect the accounts you have, in one pass (guided wizard)
6169
-
6170
- Shows the connection status first, then asks only about what is not connected yet.
6171
- Press [?] on any item to learn where and how to obtain that token.
6172
- Already-connected items are skipped, so you can quit halfway and rerun it later.
6173
-
6174
- Options:
6175
- --only <ids> only the given credentials (comma-separated: oauth,appstore,jenkins \u2026)
6176
- --reconnect <ids> set up again even if already connected
6177
- --platform android,ios force the platforms (default: auto-detected from the project)
6178
- --yes, -y ask nothing, just print the status table
6179
- --non-interactive same as above (for CI)
6180
- --fail-on-missing exit 1 if a required credential is missing (CI gate)
6181
-
6182
- ${kleur10.dim("In non-TTY / CI environments it prints the status table only, with no prompts.")}`,
6183
- lang: `${kleur10.bold("mimi-seed lang")} \u2014 CLI output language (\uD55C\uAD6D\uC5B4 / English)
6184
-
6185
- mimi-seed lang show current language
6186
- mimi-seed lang ko \uD55C\uAD6D\uC5B4 (default)
6187
- mimi-seed lang en English
6188
-
6189
- ${kleur10.dim("Stored in ~/.mimi-seed/settings.json. MIMI_SEED_LANG takes precedence when set.")}
6190
- ${kleur10.dim("The setup wizard asks on first run, so you rarely need to type this.")}`,
6191
- status: `${kleur10.bold("mimi-seed status")} \u2014 connection status + registered apps. No options.`,
6192
- doctor: `${kleur10.bold("mimi-seed doctor")} \u2014 environment check (token \xB7 Node \xB7 Git \xB7 project \xB7 CI)
6193
-
6194
- By default it only reports and exits 0. The Mimi Seed cloud token is only a \u2717 when remote features
6195
- are configured (MIMI_SEED_TOKEN \xB7 MIMI_SEED_WEB_BASE \xB7 .mimi-seed-link.json), and App Store Connect
6196
- only when the project has an iOS app.
6197
-
6198
- Options:
6199
- --strict exit 1 if any \u2717 check fails (\u26A0 is not a failure) \u2014 for CI gating
6200
- --json print the diagnosis as JSON instead of the human-readable report (includes ok)`,
6201
- logout: `${kleur10.bold("mimi-seed logout")} \u2014 delete the local config (config.json). No options.`,
6202
- restart: `${kleur10.bold("mimi-seed restart")} \u2014 restart the MCP server process (default: mimi-seed)
6203
-
6204
- mimi-seed restart [server-name]`,
6205
- notes: `${kleur10.bold("mimi-seed notes")} \u2014 generate release notes (git log \u2192 AI \u2192 push to stores)
6206
-
6207
- Options:
6208
- --from <ref> start commit/tag (default: latest tag)
6209
- --to <ref> end commit (default: HEAD)
6210
- --locale ko,en-US target locales (comma-separated)
6211
- --apply push to the stores right after generating
6212
- --no-interactive CI mode (no prompts)
6213
- --limit <n> max commits (default: 30)`,
6214
- check: `${kleur10.bold("mimi-seed check")} \u2014 pre-release readiness check
6215
-
6216
- Options:
6217
- --app <id> app ID
6218
- --local inspect the current repository without signing in
6219
- --path <dir> local project path (default: current directory)
6220
- --json print the local report as JSON
6221
- --fail-on-blocker exit 1 if a blocker is found (for CI)`,
6222
- review: `${kleur10.bold("mimi-seed review")} \u2014 draft a review reply with AI and post it to the Play Store
6223
-
6224
- Options:
6225
- --text <content> the review text (interactive prompt if omitted)
6226
- --rating <1-5> star rating
6227
- --tone <tone> friendly / professional / empathetic / brief (default: friendly)
6228
- --language <code> reply language (default: ko)
6229
- --app-name <name> app name (for context)
6230
- --apply post the reply to the Play Store
6231
- --review-id <id> review ID (required with --apply)
6232
- --package-name <p> package name (required with --apply)
6233
- --no-interactive CI mode`,
6234
- deploy: `${kleur10.bold("mimi-seed deploy")} \u2014 automated app release (CI build \u2192 Play Store/App Store)
6235
-
6236
- Options:
6237
- --platform android|ios target platform (default: android)
6238
- --app <id> remote app ID (required for execution)
6239
- --version-code <n> actual store build number (not a CI run ID)
6240
- --from <ref> commit range start (for release notes)
6241
- --to <ref> commit range end (default: HEAD)
6242
- --language <code> release notes language (default: ko-KR)
6243
- --dry-run print a local plan (no network, builds or writes)
6244
- --yes, -y explicitly approve CI and store release (required)
6245
- --skip-build skip the CI build (--version-code required)
6246
- --prepare-only stop after build/version verification with a ready web record
6247
- --resume <runId> submit a ready deployment without rebuilding
6248
- --ci jenkins|github|gitlab force the CI provider (default: auto)
6249
- --workflow <file> GitHub workflow file (e.g. deploy.yml)
6250
- --ref <branch|tag> CI source (default: main; Jenkins: branches only)
6251
- setup-jenkins / setup-github / setup-gitlab interactive CI setup`,
6252
- tools: `${kleur10.bold("mimi-seed tools")} \u2014 choose services for your task
6253
-
6254
- mimi-seed tools show the menu and choose multiple services interactively
6255
- mimi-seed tools --select ga4,bigquery print the selected services and tool names as JSON
6256
- `,
6257
- mcp: `${kleur10.bold("mimi-seed mcp")} \u2014 Claude/Codex MCP connection
6258
-
6259
- Subcommands:
6260
- mimi-seed mcp current config + setup instructions
6261
- mimi-seed mcp claude print the Claude Code registration command
6262
- mimi-seed mcp codex Codex setup instructions
6263
- mimi-seed mcp codex --write write straight into ~/.codex/config.toml (\u26A0 stores the real token in plain text)`
6264
- },
6265
- help: `${kleur10.bold("mimi-seed")} \u2014 app release ops from Claude Code/Codex
6266
-
6267
- ${kleur10.bold("Commands:")}
6268
- ${kleur10.cyan("mimi-seed init")} connect the current project to Mimi Seed
6269
- ${kleur10.cyan("mimi-seed setup")} connect the accounts you have, in one pass (guided wizard)
6270
- ${kleur10.cyan("mimi-seed lang")} output language (ko / en)
6271
- ${kleur10.cyan("mimi-seed status")} connection status + registered apps
6272
- ${kleur10.cyan("mimi-seed auth")} connect credentials one by one (Google / App Store / Play / Jenkins / CI \u2026)
6273
- ${kleur10.cyan("mimi-seed firebase")} create Firebase apps, download configs, link GA4
6274
- ${kleur10.cyan("mimi-seed admob")} list and create AdMob accounts, apps, ad units
6275
- ${kleur10.cyan("mimi-seed ga4")} create and list GA4 properties and data streams
6276
- ${kleur10.cyan("mimi-seed tools")} list and select multiple services
6277
- ${kleur10.cyan("mimi-seed doctor")} environment check (token \xB7 Git \xB7 project \xB7 CI)
6278
- ${kleur10.cyan("mimi-seed check")} pre-release readiness check
6279
- ${kleur10.cyan("mimi-seed telemetry")} optional usage measurement settings
6280
- ${kleur10.cyan("mimi-seed notes")} generate release notes (git log \u2192 AI \u2192 push to stores)
6281
- ${kleur10.cyan("mimi-seed review")} draft a review reply with AI and post it to the Play Store
6282
- ${kleur10.cyan("mimi-seed deploy")} automated app release (CI \u2192 Play Store/App Store)
6283
- ${kleur10.cyan("mimi-seed mcp")} Claude/Codex MCP setup instructions and Codex config writing
6284
- ${kleur10.cyan("mimi-seed restart")} restart the MCP server process (default: mimi-seed)
6285
- ${kleur10.cyan("mimi-seed logout")} delete the local config
6286
- ${kleur10.cyan("mimi-seed --version")} print the installed CLI version
6287
-
6288
- ${kleur10.dim("Per-command options:")} ${kleur10.cyan("mimi-seed <command> --help")}
6289
-
6290
- ${kleur10.bold("Environment variables:")}
6291
- MIMI_SEED_TOKEN PAT token (headless CI/CD mode)
6292
- MIMI_SEED_WEB_BASE server address (default: https://mimi-seed.pryzm.gg)
6293
- ANTHROPIC_API_KEY enable AI note generation (optional)
6294
- MIMI_SEED_LANG force the output language (ko / en) \u2014 beats settings.json
6295
- MIMI_SEED_GOOGLE_CLIENT_ID / _SECRET
6296
- use your own Google OAuth client (otherwise fetched from the web console at sign-in)
6297
- `
6688
+ log5("");
6689
+ log5(kleur11.green(M11().killed(serverName, killed)));
6690
+ log5(kleur11.dim(recovery.hint));
6298
6691
  }
6299
- );
6300
- function printCommandHelp(cmd) {
6301
- const usage = M10().usage[cmd];
6302
- if (!usage) return false;
6303
- process.stdout.write(usage + "\n");
6304
- return true;
6305
- }
6306
- function printHelp() {
6307
- process.stdout.write(M10().help + "\n");
6692
+ log5("");
6693
+ log5(kleur11.cyan(recovery.verify));
6308
6694
  }
6309
6695
 
6310
6696
  // src/index.ts
6311
- var M11 = catalog(
6697
+ var M12 = catalog(
6312
6698
  {
6313
6699
  notConnected: "\uC5F0\uACB0\uB41C Mimi Seed \uACC4\uC815\uC774 \uC5C6\uC2B5\uB2C8\uB2E4. `mimi-seed init` \uC2E4\uD589.",
6314
6700
  statusTitle: "Mimi Seed \uC5F0\uACB0 \uC0C1\uD0DC",
@@ -6346,65 +6732,65 @@ var M11 = catalog(
6346
6732
  claudeWarn: " \u26A0 This command contains the real token (it stays in your shell history). The token is also stored in ~/.mimi-seed/config.json."
6347
6733
  }
6348
6734
  );
6349
- function log5(msg) {
6735
+ function log6(msg) {
6350
6736
  process.stdout.write(msg + "\n");
6351
6737
  }
6352
6738
  async function cmdStatus() {
6353
6739
  const cfg = await getEffectiveConfig();
6354
6740
  if (!cfg) {
6355
- log5(kleur11.yellow(M11().notConnected));
6741
+ log6(kleur12.yellow(M12().notConnected));
6356
6742
  process.exit(1);
6357
6743
  }
6358
- log5(kleur11.bold(M11().statusTitle));
6359
- log5(M11().statusToken(cfg.prefix, cfg.createdAt.slice(0, 10)));
6360
- log5(M11().statusEndpoint(cfg.endpoint));
6361
- log5("");
6362
- log5(M11().appList);
6744
+ log6(kleur12.bold(M12().statusTitle));
6745
+ log6(M12().statusToken(cfg.prefix, cfg.createdAt.slice(0, 10)));
6746
+ log6(M12().statusEndpoint(cfg.endpoint));
6747
+ log6("");
6748
+ log6(M12().appList);
6363
6749
  const r = await mcpCall(cfg.endpoint, cfg.token, "list_apps", {});
6364
6750
  if (r.isError) {
6365
- log5(kleur11.red(M11().listFailed(r.text)));
6751
+ log6(kleur12.red(M12().listFailed(r.text)));
6366
6752
  process.exit(1);
6367
6753
  }
6368
- for (const line of r.text.split("\n")) log5(" " + line);
6754
+ for (const line of r.text.split("\n")) log6(" " + line);
6369
6755
  }
6370
6756
  async function cmdLogout() {
6371
6757
  await deleteConfig();
6372
- log5(kleur11.green(M11().logoutDone));
6373
- log5(kleur11.dim(M11().logoutRevoke));
6758
+ log6(kleur12.green(M12().logoutDone));
6759
+ log6(kleur12.dim(M12().logoutRevoke));
6374
6760
  }
6375
6761
  async function cmdMcp(args) {
6376
6762
  const target = args[0] ?? "help";
6377
6763
  const cfg = await getEffectiveConfig();
6378
6764
  if (!cfg) {
6379
- log5(kleur11.yellow(M11().notConnected));
6765
+ log6(kleur12.yellow(M12().notConnected));
6380
6766
  process.exit(1);
6381
6767
  }
6382
6768
  if (target === "codex") {
6383
6769
  if (args.includes("--write")) {
6384
6770
  const configPath = await writeCodexMcpConfig(cfg);
6385
- log5(kleur11.green(M11().codexWritten));
6386
- log5(kleur11.dim(` ${configPath}`));
6387
- log5(kleur11.dim(M11().codexWriteWarn));
6388
- log5("");
6389
- log5(M11().codexVerify);
6771
+ log6(kleur12.green(M12().codexWritten));
6772
+ log6(kleur12.dim(` ${configPath}`));
6773
+ log6(kleur12.dim(M12().codexWriteWarn));
6774
+ log6("");
6775
+ log6(M12().codexVerify);
6390
6776
  return;
6391
6777
  }
6392
- log5(kleur11.bold(M11().codexTitle));
6393
- log5("");
6394
- log5(M11().codexAuto);
6395
- log5(kleur11.cyan(" mimi-seed mcp codex --write"));
6396
- log5("");
6397
- log5(M11().codexManual);
6398
- log5(`[mcp_servers.mimi-seed-remote]
6778
+ log6(kleur12.bold(M12().codexTitle));
6779
+ log6("");
6780
+ log6(M12().codexAuto);
6781
+ log6(kleur12.cyan(" mimi-seed mcp codex --write"));
6782
+ log6("");
6783
+ log6(M12().codexManual);
6784
+ log6(`[mcp_servers.mimi-seed-remote]
6399
6785
  url = "${cfg.endpoint}"
6400
6786
  bearer_token_env_var = "MIMI_SEED_TOKEN"
6401
6787
  enabled = true`);
6402
6788
  return;
6403
6789
  }
6404
6790
  if (target === "claude") {
6405
- log5(kleur11.bold(M11().claudeTitle));
6406
- log5(kleur11.cyan(` ${claudeMcpAddCommand(cfg)}`));
6407
- log5(kleur11.dim(M11().claudeWarn));
6791
+ log6(kleur12.bold(M12().claudeTitle));
6792
+ log6(kleur12.cyan(` ${claudeMcpAddCommand(cfg)}`));
6793
+ log6(kleur12.dim(M12().claudeWarn));
6408
6794
  return;
6409
6795
  }
6410
6796
  printMcpSetup(cfg);
@@ -6413,7 +6799,7 @@ async function main() {
6413
6799
  const cmd = process.argv[2];
6414
6800
  const restArgs = process.argv.slice(3);
6415
6801
  if (cmd === "--version" || cmd === "-v" || cmd === "version") {
6416
- log5(version);
6802
+ log6(version);
6417
6803
  return;
6418
6804
  }
6419
6805
  if (cmd && cmd !== "auth" && (restArgs.includes("--help") || restArgs.includes("-h"))) {
@@ -6430,6 +6816,9 @@ async function main() {
6430
6816
  case "lang":
6431
6817
  await cmdLang(restArgs);
6432
6818
  break;
6819
+ case "credentials":
6820
+ await cmdCredentials(restArgs);
6821
+ break;
6433
6822
  case "status":
6434
6823
  await cmdStatus();
6435
6824
  break;
@@ -6481,13 +6870,13 @@ async function main() {
6481
6870
  printHelp();
6482
6871
  break;
6483
6872
  default:
6484
- log5(kleur11.red(t().common.unknownCommand(cmd)));
6873
+ log6(kleur12.red(t().common.unknownCommand(cmd)));
6485
6874
  printHelp();
6486
6875
  process.exit(1);
6487
6876
  }
6488
6877
  } catch (e) {
6489
- log5(kleur11.red(t().common.error(e.message)));
6490
- if (process.env.DEBUG) log5(e.stack ?? "");
6878
+ log6(kleur12.red(t().common.error(e.message)));
6879
+ if (process.env.DEBUG) log6(e.stack ?? "");
6491
6880
  process.exit(1);
6492
6881
  }
6493
6882
  }