mimi-seed 0.24.0 → 0.25.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/dist/index.js CHANGED
@@ -2,29 +2,38 @@
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,
19
23
  getEffectiveConfig,
20
24
  hasAnyProjectSignal,
25
+ isCredentialStoreMode,
21
26
  isLang,
22
27
  isSatisfied,
23
28
  linkProject,
29
+ lookupDataKey,
30
+ lookupProjectManifest,
24
31
  manifestServiceEntries,
25
32
  migrateLegacyJenkins,
33
+ obtainDataKey,
26
34
  readBodyWithTimeout,
27
35
  resolveLang,
36
+ rewriteCredentialFiles,
28
37
  runMcpBin,
29
38
  t,
30
39
  telemetryNotice,
@@ -32,11 +41,12 @@ import {
32
41
  usageRun,
33
42
  version,
34
43
  writeConfig,
44
+ writeCredentialFile,
35
45
  writeSettings
36
- } from "./chunk-OT25DVTW.js";
46
+ } from "./chunk-O5ME56F2.js";
37
47
 
38
48
  // src/index.ts
39
- import kleur11 from "kleur";
49
+ import kleur12 from "kleur";
40
50
 
41
51
  // src/mcp-client.ts
42
52
  var M = catalog(
@@ -287,7 +297,7 @@ async function cmdAuth(args) {
287
297
  if (sub === "threads") return void exitWith(await runMcpBin("mimi-seed-social-auth", ["threads", ...rest]));
288
298
  if (sub === "tiktok") return void exitWith(await runMcpBin("mimi-seed-tiktok-business-auth", rest));
289
299
  if (sub === "ci") {
290
- const { cmdSetup: cmdSetup2 } = await import("./setup-ZZESWJB5.js");
300
+ const { cmdSetup: cmdSetup2 } = await import("./setup-CLE2VPLN.js");
291
301
  await cmdSetup2(["--only", "github,gitlab", "--reconnect", "github,gitlab"]);
292
302
  return;
293
303
  }
@@ -400,7 +410,8 @@ async function writeCodexMcpConfig(cfg) {
400
410
  let current;
401
411
  try {
402
412
  current = await fs.readFile(configPath, "utf8");
403
- } catch {
413
+ } catch (error) {
414
+ if (error.code !== "ENOENT") throw error;
404
415
  current = "";
405
416
  }
406
417
  const legacy = current.match(/\[mcp_servers\.mimi-seed\]\s*\n(?:(?!\[)[\s\S])*/);
@@ -744,6 +755,15 @@ function getLatestTag(cwd) {
744
755
  return null;
745
756
  }
746
757
  }
758
+ function isCommitRef(cwd, ref) {
759
+ if (ref.startsWith("-")) return false;
760
+ try {
761
+ git(cwd, ["rev-parse", "--verify", "--quiet", `${ref}^{commit}`]);
762
+ return true;
763
+ } catch {
764
+ return false;
765
+ }
766
+ }
747
767
  function getGitLog(cwd, opts = {}) {
748
768
  const { from, to = "HEAD", limit = 30 } = opts;
749
769
  if (from?.startsWith("-") || to.startsWith("-")) return [];
@@ -845,7 +865,9 @@ async function runDoctor(opts) {
845
865
  const cfg = await getEffectiveConfig();
846
866
  const remote = cfg !== null || await remoteConfigured(cwd);
847
867
  if (!cfg) {
848
- if (remote) r.fail(m.noToken, m.noTokenFix);
868
+ const corrupt = credentialFileProblemMessage("~/.mimi-seed/config.json");
869
+ if (corrupt) r.fail(m.noToken, corrupt);
870
+ else if (remote) r.fail(m.noToken, m.noTokenFix);
849
871
  else r.warn(m.noTokenLocal, m.noTokenLocalDetail);
850
872
  } else {
851
873
  r.ok(m.tokenSaved, `${cfg.prefix}\u2026 (${cfg.createdAt.slice(0, 10)})`);
@@ -876,15 +898,26 @@ async function runDoctor(opts) {
876
898
  const base = credLabel(spec);
877
899
  const note = credNote(spec);
878
900
  const label = note ? `${base} (${note})` : base;
901
+ const fix = d.invalid ? credentialProblemText(d.invalid, spec.fix) : `\u2192 ${spec.fix}`;
879
902
  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}`);
903
+ else if (isSatisfied(spec, detected)) r.warn(label, d.invalid ? fix : t().setup.fallbackWorking);
904
+ else if (spec.requirement === "optional") r.warn(`${label}`, fix);
882
905
  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
- }
906
+ r.warn(label, d.invalid ? fix : `${t().setup.neededFor(spec.platform)} \u2192 ${spec.fix}`);
907
+ } else r.fail(base, fix);
908
+ }
909
+ const store = credentialStoreReport();
910
+ const plain = store.files.filter((f) => f.state === "plaintext").length;
911
+ const sealed = store.files.filter((f) => f.state === "encrypted").length;
912
+ if (store.effective === "file") r.ok(m.storeLabel, sealed > 0 ? m.storeEncrypted(sealed) : m.storePlain);
913
+ else if (plain > 0) r.warn(m.storeLabel, m.storePlainLeft(plain));
914
+ else r.ok(m.storeLabel, m.storeEncrypted(sealed));
886
915
  r.text(kleur4.dim(m.credsHint));
887
- const loaded = findProjectManifest(cwd);
916
+ const manifestLookup = lookupProjectManifest(cwd);
917
+ if (manifestLookup.state === "invalid") {
918
+ r.fail(m.manifestInvalid, m.manifestInvalidDetail(manifestLookup.filePath, m.manifestReason[manifestLookup.reason]));
919
+ }
920
+ const loaded = manifestLookup.state === "ok" ? manifestLookup.loaded : null;
888
921
  if (loaded) {
889
922
  const projName = loaded.manifest.displayName ?? loaded.manifest.project ?? m.thisProject;
890
923
  r.section("project", m.requirements(projName));
@@ -1384,12 +1417,14 @@ var SKIP_DIRS = /* @__PURE__ */ new Set([
1384
1417
  ]);
1385
1418
  async function walk(root, maxDepth = 7) {
1386
1419
  const result = [];
1420
+ const unread = [];
1387
1421
  async function visit(dir, depth) {
1388
1422
  if (depth > maxDepth) return;
1389
1423
  let entries;
1390
1424
  try {
1391
1425
  entries = await fs6.readdir(dir, { withFileTypes: true });
1392
1426
  } catch {
1427
+ unread.push(path6.relative(root, dir).replace(/\\/g, "/") || ".");
1393
1428
  return;
1394
1429
  }
1395
1430
  for (const entry of entries) {
@@ -1401,7 +1436,7 @@ async function walk(root, maxDepth = 7) {
1401
1436
  }
1402
1437
  }
1403
1438
  await visit(root, 0);
1404
- return result;
1439
+ return { files: result, unread };
1405
1440
  }
1406
1441
  function parseCatalog(text) {
1407
1442
  const versions = /* @__PURE__ */ new Map();
@@ -1507,7 +1542,13 @@ async function reactNativeIapEvidence(root, manifestFile, manifestText, resolveT
1507
1542
  try {
1508
1543
  manifest = JSON.parse(manifestText);
1509
1544
  } catch {
1510
- return null;
1545
+ if (!manifestText.includes("react-native-iap")) return null;
1546
+ return {
1547
+ file: displayPath(root, manifestFile),
1548
+ module: "com.android.billingclient:billing",
1549
+ expression: "package.json mentions react-native-iap but is not valid JSON; transitive Billing version is unresolved",
1550
+ source: "unresolved"
1551
+ };
1511
1552
  }
1512
1553
  const dependencyGroups = ["dependencies", "devDependencies", "optionalDependencies"].map((key) => manifest[key]).filter((value) => Boolean(value) && typeof value === "object");
1513
1554
  const entries = dependencyGroups.flatMap((group) => Object.entries(group)).filter((entry2) => typeof entry2[1] === "string");
@@ -1741,9 +1782,18 @@ async function checkBillingCompliance(projectPath, now = /* @__PURE__ */ new Dat
1741
1782
  throw new Error(`Android project path does not exist or is not readable: ${root}`);
1742
1783
  }
1743
1784
  if (!rootStat.isDirectory()) throw new Error(`Android project path is not a directory: ${root}`);
1744
- const files = await walk(root);
1785
+ const walked = await walk(root);
1786
+ const unreadPaths = walked.unread;
1745
1787
  const texts = /* @__PURE__ */ new Map();
1746
- for (const file of files) texts.set(file, await fs6.readFile(file, "utf8"));
1788
+ for (const file of walked.files) {
1789
+ try {
1790
+ texts.set(file, await fs6.readFile(file, "utf8"));
1791
+ } catch {
1792
+ unreadPaths.push(path6.relative(root, file).replace(/\\/g, "/"));
1793
+ }
1794
+ }
1795
+ unreadPaths.sort();
1796
+ const files = walked.files.filter((file) => texts.has(file));
1747
1797
  const catalogs = files.filter((file) => path6.basename(file) === "libs.versions.toml").map((file) => ({ file, scope: catalogScope(file), info: parseCatalog(texts.get(file) ?? "") }));
1748
1798
  const variablesByFile = /* @__PURE__ */ new Map();
1749
1799
  for (const [file, text] of texts) {
@@ -1883,12 +1933,19 @@ async function checkBillingCompliance(projectPath, now = /* @__PURE__ */ new Dat
1883
1933
  status = "pass";
1884
1934
  summary = `Billing Library ${detectedVersions.join(", ")} satisfies the current submission policy.`;
1885
1935
  }
1936
+ if (unreadPaths.length > 0) {
1937
+ const listed = unreadPaths.length > 3 ? `${unreadPaths.slice(0, 3).join(", ")}, +${unreadPaths.length - 3}` : unreadPaths.join(", ");
1938
+ if (status === "pass" || status === "not_used") status = "unresolved";
1939
+ summary = `${summary} Some paths could not be read, so a Billing dependency in them was not checked: ${listed}.`;
1940
+ actions.push("Fix the permissions on the unread paths (or narrow the project path to the app) and run the check again.");
1941
+ }
1886
1942
  return {
1887
1943
  projectPath: root,
1888
1944
  checkedAt: now.toISOString(),
1889
1945
  status,
1890
1946
  detectedVersions,
1891
1947
  evidence,
1948
+ unreadPaths,
1892
1949
  policy,
1893
1950
  summary,
1894
1951
  actions,
@@ -1967,6 +2024,47 @@ function packageDir(file) {
1967
2024
  const match = file.replace(/\\/g, "/").match(/^(.*\/node_modules\/(?:@[^/]+\/)?[^/]+)/);
1968
2025
  return match?.[1];
1969
2026
  }
2027
+ function parseJsonWithComments(text) {
2028
+ let out = "";
2029
+ let i = 0;
2030
+ while (i < text.length) {
2031
+ const ch = text[i];
2032
+ if (ch === '"') {
2033
+ let j = i + 1;
2034
+ while (j < text.length && text[j] !== '"') j += text[j] === "\\" ? 2 : 1;
2035
+ out += text.slice(i, j + 1);
2036
+ i = j + 1;
2037
+ } else if (ch === "/" && text[i + 1] === "/") {
2038
+ while (i < text.length && text[i] !== "\n") i++;
2039
+ } else if (ch === "/" && text[i + 1] === "*") {
2040
+ const end = text.indexOf("*/", i + 2);
2041
+ if (end < 0) throw new SyntaxError("Unterminated comment");
2042
+ out += " ";
2043
+ i = end + 2;
2044
+ } else {
2045
+ out += ch;
2046
+ i++;
2047
+ }
2048
+ }
2049
+ let result = "";
2050
+ for (let k = 0; k < out.length; k++) {
2051
+ const ch = out[k];
2052
+ if (ch === '"') {
2053
+ let j = k + 1;
2054
+ while (j < out.length && out[j] !== '"') j += out[j] === "\\" ? 2 : 1;
2055
+ result += out.slice(k, j + 1);
2056
+ k = j;
2057
+ continue;
2058
+ }
2059
+ if (ch === ",") {
2060
+ let j = k + 1;
2061
+ while (j < out.length && /\s/.test(out[j])) j++;
2062
+ if (out[j] === "}" || out[j] === "]") continue;
2063
+ }
2064
+ result += ch;
2065
+ }
2066
+ return JSON.parse(result);
2067
+ }
1970
2068
 
1971
2069
  // ../core/src/checks/release-doctor/fcm.ts
1972
2070
  var FCM_LEGACY_SEND_SOURCE = "https://firebase.google.com/docs/cloud-messaging/send/v1-api";
@@ -2847,7 +2945,8 @@ var UNRESOLVED_CODES = /* @__PURE__ */ new Set([
2847
2945
  "BILLING_UNRESOLVED",
2848
2946
  "IOS_XCODE_UNRESOLVED",
2849
2947
  "IOS_XCODE_MIXED_PINS",
2850
- "IOS_SDK_POLICY_REFRESH_REQUIRED"
2948
+ "IOS_SDK_POLICY_REFRESH_REQUIRED",
2949
+ "SCAN_PATHS_NOT_READ"
2851
2950
  ]);
2852
2951
  async function conventionFiles(root, files, found) {
2853
2952
  const declared = found.map((owner) => ({ ...owner, plugin: true }));
@@ -2888,6 +2987,7 @@ async function conventionFiles(root, files, found) {
2888
2987
  try {
2889
2988
  entries = await fs8.readdir(dir, { withFileTypes: true });
2890
2989
  } catch {
2990
+ incomplete = true;
2891
2991
  return;
2892
2992
  }
2893
2993
  for (const entry of entries) {
@@ -2909,6 +3009,7 @@ async function conventionFiles(root, files, found) {
2909
3009
  const relative = path10.relative(root, absolute).replace(/\\/g, "/");
2910
3010
  return { absolute, relative, text: await fs8.readFile(absolute, "utf8"), sample: owner.sample, demo: owner.demo, convention: true };
2911
3011
  } catch {
3012
+ incomplete = true;
2912
3013
  return void 0;
2913
3014
  }
2914
3015
  };
@@ -2924,6 +3025,7 @@ async function conventionFiles(root, files, found) {
2924
3025
  }
2925
3026
  async function walk2(root, maxSourceFiles = MAX_SOURCE_FILES, maxDepth = 7) {
2926
3027
  const files = [];
3028
+ const unread = [];
2927
3029
  const conventionRoots = [];
2928
3030
  const sourceCandidates = [];
2929
3031
  async function visit(dir, depth, excluded, sample, demo) {
@@ -2932,6 +3034,7 @@ async function walk2(root, maxSourceFiles = MAX_SOURCE_FILES, maxDepth = 7) {
2932
3034
  try {
2933
3035
  entries = await fs8.readdir(dir, { withFileTypes: true });
2934
3036
  } catch {
3037
+ unread.push(path10.relative(root, dir).replace(/\\/g, "/") || ".");
2935
3038
  return;
2936
3039
  }
2937
3040
  const nestedRepository = depth > 0 && entries.some((entry) => entry.name === ".git");
@@ -2958,6 +3061,7 @@ async function walk2(root, maxSourceFiles = MAX_SOURCE_FILES, maxDepth = 7) {
2958
3061
  try {
2959
3062
  files.push({ absolute, relative, text: await fs8.readFile(absolute, "utf8"), sample: sampleHere, demo });
2960
3063
  } catch {
3064
+ unread.push(relative);
2961
3065
  }
2962
3066
  continue;
2963
3067
  }
@@ -2978,7 +3082,8 @@ async function walk2(root, maxSourceFiles = MAX_SOURCE_FILES, maxDepth = 7) {
2978
3082
  files,
2979
3083
  fcmSources: await readFcmSources(prioritized.slice(0, maxSourceFiles)),
2980
3084
  sourceScanTruncated: prioritized.length > maxSourceFiles,
2981
- conventionTruncated: convention.truncated
3085
+ conventionTruncated: convention.truncated,
3086
+ unread: unread.sort()
2982
3087
  };
2983
3088
  }
2984
3089
  async function readFcmSources(candidates) {
@@ -3337,9 +3442,9 @@ function xcodeEvidence(file, raw, version2) {
3337
3442
  function easXcodeEvidence(file) {
3338
3443
  let json;
3339
3444
  try {
3340
- json = JSON.parse(file.text);
3445
+ json = parseJsonWithComments(file.text);
3341
3446
  } catch {
3342
- return [];
3447
+ return [{ file: file.relative, raw: "could not be parsed; its ios.image pins were not read", beta: false, unparsed: true }];
3343
3448
  }
3344
3449
  const build = json?.build;
3345
3450
  if (!build || typeof build !== "object") return [];
@@ -3540,6 +3645,23 @@ function iosXcodeFindings(files, now) {
3540
3645
  }
3541
3646
  }];
3542
3647
  }
3648
+ const unparsed = evidence.filter((row) => row.unparsed);
3649
+ if (unparsed.length > 0) {
3650
+ return [{
3651
+ code: "IOS_XCODE_UNRESOLVED",
3652
+ severity: "info",
3653
+ title: "The Xcode version used for iOS release builds could not be fully resolved",
3654
+ detail: `The pinned Xcode found meets the minimum (Xcode ${minimumXcode}, ${sdk} SDK), but ${describePins(unparsed)}, and a pin there may be older.`,
3655
+ action: `Fix the file so it parses, or confirm the release build uses Xcode ${minimumXcode} or later (run \`xcodebuild -version\` on the build machine).`,
3656
+ file: unparsed[0].file,
3657
+ sourceUrl,
3658
+ ko: {
3659
+ title: "iOS \uB9B4\uB9AC\uC2A4 \uBE4C\uB4DC\uC758 Xcode \uBC84\uC804\uC744 \uBAA8\uB450 \uD655\uC815\uD558\uC9C0 \uBABB\uD568",
3660
+ 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.`,
3661
+ 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.`
3662
+ }
3663
+ }];
3664
+ }
3543
3665
  const beta = resolved.some((row) => row.beta);
3544
3666
  return [{
3545
3667
  code: "IOS_XCODE_OK",
@@ -4059,7 +4181,7 @@ function targetSdkFindings(gradleFiles, now, supplementalEvidence = [], resolveC
4059
4181
  netScripts.set(entry.file.absolute, file ? { ...entry, file, excluded: void 0 } : entry);
4060
4182
  }
4061
4183
  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)`);
4184
+ const netIssues = unreadConventionRoots.map((dir) => `${dir} (a convention build that could not be read completely)`);
4063
4185
  for (const { file: script, excluded: scriptExcluded, inherited } of netScripts.values()) {
4064
4186
  const masked = maskStrings(script.text);
4065
4187
  for (const token of tokensOf(script)) {
@@ -4156,6 +4278,9 @@ function targetSdkFindings(gradleFiles, now, supplementalEvidence = [], resolveC
4156
4278
  }
4157
4279
 
4158
4280
  // ../core/src/checks/release-doctor.ts
4281
+ function unreadList(paths) {
4282
+ return paths.length > 3 ? `${paths.slice(0, 3).join(", ")}, +${paths.length - 3}` : paths.join(", ");
4283
+ }
4159
4284
  function billingEvidenceRows(billing) {
4160
4285
  const minimum = billing.policy.minimumSupportedMajor;
4161
4286
  const failing = (row) => minimum !== null && row.version !== void 0 && Number.parseInt(row.version, 10) < minimum;
@@ -4174,6 +4299,7 @@ function billingFinding(billing) {
4174
4299
  const minimum = billing.policy.minimumSupportedMajor;
4175
4300
  const schedule = (major) => billing.policy.knownSchedule.find((row) => row.major === major);
4176
4301
  const status = billing.status;
4302
+ 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
4303
  const iapTarget = minimum === null ? void 0 : reactNativeIapUpgradeTarget(minimum);
4178
4304
  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
4305
  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 +4329,59 @@ function billingFinding(billing) {
4203
4329
  ...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
4330
  ].filter(Boolean).join(" ")
4205
4331
  },
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.",
4332
+ // Nothing found, or every version resolved: the result is unresolved only because part of the tree was not read.
4333
+ unresolved: unreadOnly ? {
4334
+ title: "Google Play Billing could not be checked in every folder",
4335
+ koTitle: "\uC77C\uBD80 \uD3F4\uB354\uC758 Google Play Billing \uC758\uC874\uC131\uC744 \uD655\uC778\uD558\uC9C0 \uBABB\uD568",
4336
+ 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
4337
  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
- } : {
4338
+ 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."
4339
+ } : !billing.policy.scheduleCurrent ? {
4213
4340
  title: "Google Play Billing policy table needs a refresh",
4214
4341
  koTitle: "Google Play Billing \uC815\uCC45\uD45C \uAC31\uC2E0 \uD544\uC694",
4215
4342
  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
4343
  action: billing.actions.join(" "),
4217
4344
  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."
4345
+ } : {
4346
+ title: "Google Play Billing version could not be resolved locally",
4347
+ koTitle: "Google Play Billing \uBC84\uC804\uC744 \uB85C\uCEEC\uC5D0\uC11C \uD655\uC815\uD558\uC9C0 \uBABB\uD568",
4348
+ 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.",
4349
+ action: billing.actions.join(" "),
4350
+ 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
4351
  }
4219
4352
  }[status];
4353
+ 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
4354
  return {
4221
4355
  code: `BILLING_${status.toUpperCase()}`,
4222
4356
  severity: status === "blocker" ? "blocker" : status === "pass" ? "info" : "warning",
4223
4357
  title: copy.title,
4224
- detail: `${billing.summary} Evidence: ${evidence}.`,
4358
+ detail: evidence ? `${billing.summary} Evidence: ${evidence}.` : billing.summary,
4225
4359
  action: copy.action,
4226
4360
  file: billingEvidenceRows(billing)[0]?.file,
4227
4361
  sourceUrl: billing.policy.sourceUrl,
4228
4362
  ko: {
4229
4363
  title: copy.koTitle,
4230
- detail: `${copy.koDetail} \uADFC\uAC70: ${evidence}.`,
4364
+ detail: `${copy.koDetail}${unreadKo}${evidence ? ` \uADFC\uAC70: ${evidence}.` : ""}`,
4231
4365
  action: copy.koAction
4232
4366
  }
4233
4367
  };
4234
4368
  }
4369
+ function unreadFinding(unread) {
4370
+ const listed = unreadList(unread);
4371
+ return {
4372
+ code: "SCAN_PATHS_NOT_READ",
4373
+ severity: "warning",
4374
+ title: "Some folders or files in the project could not be read",
4375
+ detail: `Release Doctor could not read: ${listed}. App modules, Billing dependencies, and Xcode pins inside them are not part of any verdict above.`,
4376
+ action: "Fix the permissions and re-run, or scan the app on its own with --path if those paths do not belong to it.",
4377
+ file: unread[0],
4378
+ ko: {
4379
+ title: "\uD504\uB85C\uC81D\uD2B8\uC758 \uC77C\uBD80 \uD3F4\uB354\uB098 \uD30C\uC77C\uC744 \uC77D\uC9C0 \uBABB\uD568",
4380
+ 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.`,
4381
+ 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."
4382
+ }
4383
+ };
4384
+ }
4235
4385
  async function scanReleaseDoctor(projectPath, now = /* @__PURE__ */ new Date(), options = {}) {
4236
4386
  const maxSourceFiles = options.maxSourceFiles ?? MAX_SOURCE_FILES;
4237
4387
  const root = path13.resolve(projectPath);
@@ -4242,7 +4392,7 @@ async function scanReleaseDoctor(projectPath, now = /* @__PURE__ */ new Date(),
4242
4392
  throw new Error(`Project path does not exist or is not readable: ${root}`);
4243
4393
  }
4244
4394
  if (!stat.isDirectory()) throw new Error(`Project path is not a directory: ${root}`);
4245
- const { files, fcmSources, sourceScanTruncated, conventionTruncated } = await walk2(root, maxSourceFiles);
4395
+ const { files, fcmSources, sourceScanTruncated, conventionTruncated, unread } = await walk2(root, maxSourceFiles);
4246
4396
  const reactNativeCatalog = path13.join(root, "node_modules", "react-native", "gradle", "libs.versions.toml");
4247
4397
  try {
4248
4398
  files.push({
@@ -4460,7 +4610,8 @@ async function scanReleaseDoctor(projectPath, now = /* @__PURE__ */ new Date(),
4460
4610
  });
4461
4611
  }
4462
4612
  const billing = await checkBillingCompliance(root, now);
4463
- if (billing.status !== "not_used") findings.push(billingFinding(billing));
4613
+ const onlyUnread = billing.evidence.length === 0 && unread.length > 0;
4614
+ if (billing.status !== "not_used" && !onlyUnread) findings.push(billingFinding(billing));
4464
4615
  }
4465
4616
  if (detected.ios) {
4466
4617
  if (detected.iosBundleIds.length === 0) {
@@ -4508,6 +4659,7 @@ async function scanReleaseDoctor(projectPath, now = /* @__PURE__ */ new Date(),
4508
4659
  findings.push(...iosXcodeFindings(detected.hasIosAppOutsideDemo ? files.filter((file) => !file.demo) : files, now));
4509
4660
  }
4510
4661
  findings.push(...await fcmFindings(files, detected.hasAppOutsideDemo ? fcmSources.filter((file) => !file.demo) : fcmSources, root, now));
4662
+ if (unread.length > 0) findings.push(unreadFinding(unread));
4511
4663
  const counts = findings.reduce(
4512
4664
  (result, finding) => ({ ...result, [finding.severity]: result[finding.severity] + 1 }),
4513
4665
  { blocker: 0, warning: 0, info: 0 }
@@ -4874,6 +5026,8 @@ ${items}
4874
5026
  recentCommits: (limit) => `\uCD5C\uADFC ${limit}\uAC1C \uCEE4\uBC0B
4875
5027
  `,
4876
5028
  noCommits: "\uCEE4\uBC0B\uC744 \uCC3E\uC744 \uC218 \uC5C6\uC2B5\uB2C8\uB2E4.\n",
5029
+ 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.
5030
+ `,
4877
5031
  invalidLimit: (value) => `--limit \uC740 1~10000 \uC0AC\uC774\uC758 \uC815\uC218\uC5EC\uC57C \uD569\uB2C8\uB2E4: ${value || "(\uAC12 \uC5C6\uC74C)"}
4878
5032
  `,
4879
5033
  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 +5087,8 @@ Update now.`,
4933
5087
  recentCommits: (limit) => `Last ${limit} commit(s)
4934
5088
  `,
4935
5089
  noCommits: "No commits found.\n",
5090
+ badRef: (flag, ref) => `${flag} ${ref} does not point to a commit in this repository \u2014 check the branch, tag, or commit name.
5091
+ `,
4936
5092
  invalidLimit: (value) => `--limit must be an integer from 1 to 10000: ${value || "(missing)"}
4937
5093
  `,
4938
5094
  invalidRef: (ref) => `A ref cannot start with '-' (git would read it as an option): ${ref}
@@ -5050,6 +5206,12 @@ async function cmdNotes(argv) {
5050
5206
  process.stdout.write(kleur6.red(M7().notGitRepo));
5051
5207
  process.exit(1);
5052
5208
  }
5209
+ for (const [flag, ref] of [["--from", args.from], ["--to", args.to === "HEAD" ? void 0 : args.to]]) {
5210
+ if (ref !== void 0 && !isCommitRef(cwd, ref)) {
5211
+ process.stdout.write(kleur6.red(M7().badRef(flag, ref)));
5212
+ process.exit(1);
5213
+ }
5214
+ }
5053
5215
  const latestTag = getLatestTag(cwd);
5054
5216
  const fromRef = args.from ?? latestTag ?? void 0;
5055
5217
  process.stdout.write(
@@ -5396,105 +5558,604 @@ async function cmdLang(args) {
5396
5558
  log3(kleur8.green(t().lang.saved(arg)));
5397
5559
  }
5398
5560
 
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";
5561
+ // src/credentials-cmd.ts
5415
5562
  import fs12 from "fs";
5416
5563
  import os3 from "os";
5417
5564
  import path15 from "path";
5565
+ import kleur10 from "kleur";
5566
+
5567
+ // src/help.ts
5418
5568
  import kleur9 from "kleur";
5419
- function log4(msg) {
5420
- process.stdout.write(msg + "\n");
5421
- }
5422
5569
  var M9 = catalog(
5423
5570
  {
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.`
5571
+ // 명령별 상세 사용법 (SSOT). `mimi-seed <command> --help` 와 overview 가 공유.
5572
+ usage: {
5573
+ 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.",
5574
+ init: `${kleur9.bold("mimi-seed init")} \u2014 \uD604\uC7AC \uD504\uB85C\uC81D\uD2B8\uB97C Mimi Seed\uC5D0 \uC5F0\uACB0
5575
+
5576
+ \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
5577
+ + .claude/mimi-seed.md, AGENTS.md, docs/releases.json \uC0DD\uC131/\uD655\uC778.
5578
+
5579
+ \uC635\uC158:
5580
+ --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`,
5581
+ setup: `${kleur9.bold("mimi-seed setup")} \u2014 \uAC00\uC9C4 \uACC4\uC815\uC744 \uD55C \uBC88\uC5D0 \uC5F0\uACB0 (\uC548\uB0B4\uD615 \uB9C8\uBC95\uC0AC)
5582
+
5583
+ \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.
5584
+ \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.
5585
+ \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.
5586
+
5587
+ \uC635\uC158:
5588
+ --only <ids> \uC9C0\uC815\uD55C \uC790\uACA9\uC99D\uBA85\uB9CC (\uC27C\uD45C \uAD6C\uBD84: oauth,appstore,jenkins \u2026)
5589
+ --reconnect <ids> \uC774\uBBF8 \uC5F0\uACB0\uB3FC \uC788\uC5B4\uB3C4 \uB2E4\uC2DC \uC124\uC815
5590
+ --platform android,ios \uD50C\uB7AB\uD3FC \uAC15\uC81C \uC9C0\uC815 (\uAE30\uBCF8: \uD504\uB85C\uC81D\uD2B8\uC5D0\uC11C \uC790\uB3D9 \uAC10\uC9C0)
5591
+ --yes, -y \uC544\uBB34\uAC83\uB3C4 \uBB3B\uC9C0 \uC54A\uACE0 \uC0C1\uD0DC\uD45C\uB9CC \uCD9C\uB825
5592
+ --non-interactive \uC704\uC640 \uB3D9\uC77C (CI \uC6A9)
5593
+ --fail-on-missing \uD544\uC218 \uC790\uACA9\uC99D\uBA85\uC774 \uC5C6\uC73C\uBA74 exit 1 (CI \uAC8C\uC774\uD2B8)
5594
+
5595
+ ${kleur9.dim("\uBE44TTY / CI \uD658\uACBD\uC5D0\uC11C\uB294 \uD504\uB86C\uD504\uD2B8 \uC5C6\uC774 \uC0C1\uD0DC\uD45C\uB9CC \uCD9C\uB825\uD55C\uB2E4.")}`,
5596
+ credentials: `${kleur9.bold("mimi-seed credentials")} \u2014 \uC800\uC7A5\uB41C \uC790\uACA9\uC99D\uBA85(~/.mimi-seed) \uC554\uD638\uD654
5597
+
5598
+ 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)
5599
+ 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
5600
+ 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)
5601
+ 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)
5602
+
5603
+ --force mode \uB97C \uCF24 \uB54C, \uC61B \uBC84\uC804\uC73C\uB85C \uACE0\uC815\uB41C MCP \uC11C\uBC84 \uB4F1\uB85D\uC774 \uC788\uC5B4\uB3C4 \uC9C4\uD589
5604
+
5605
+ ${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.")}
5606
+ ${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.")}`,
5607
+ lang: `${kleur9.bold("mimi-seed lang")} \u2014 CLI \uCD9C\uB825 \uC5B8\uC5B4 (\uD55C\uAD6D\uC5B4 / English)
5608
+
5609
+ mimi-seed lang \uD604\uC7AC \uC5B8\uC5B4 \uD45C\uC2DC
5610
+ mimi-seed lang ko \uD55C\uAD6D\uC5B4 (\uAE30\uBCF8)
5611
+ mimi-seed lang en English
5612
+
5613
+ ${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.")}
5614
+ ${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.")}`,
5615
+ status: `${kleur9.bold("mimi-seed status")} \u2014 \uC5F0\uACB0 \uC0C1\uD0DC + \uB4F1\uB85D \uC571 \uBAA9\uB85D. \uC635\uC158 \uC5C6\uC74C.`,
5616
+ doctor: `${kleur9.bold("mimi-seed doctor")} \u2014 \uD658\uACBD \uC9C4\uB2E8 (\uD1A0\uD070\xB7Node\xB7Git\xB7\uD504\uB85C\uC81D\uD2B8\xB7CI)
5617
+
5618
+ \uAE30\uBCF8\uC740 \uC9C4\uB2E8\uB9CC \uD558\uACE0 exit 0. Mimi Seed \uD074\uB77C\uC6B0\uB4DC \uD1A0\uD070\uC740 \uC6D0\uACA9 \uAE30\uB2A5
5619
+ (MIMI_SEED_TOKEN \xB7 MIMI_SEED_WEB_BASE \xB7 .mimi-seed-link.json)\uC744 \uC4F8 \uB54C\uB9CC, App Store Connect \uB294
5620
+ \uD504\uB85C\uC81D\uD2B8\uC5D0 iOS \uC571\uC774 \uC788\uC744 \uB54C\uB9CC \u2717 \uB85C \uBCF8\uB2E4.
5621
+
5622
+ \uC635\uC158:
5623
+ --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
5624
+ --json \uC0AC\uB78C\uC6A9 \uCD9C\uB825 \uB300\uC2E0 \uC9C4\uB2E8 \uACB0\uACFC\uB97C JSON\uC73C\uB85C \uCD9C\uB825 (ok \uD544\uB4DC \uD3EC\uD568)`,
5625
+ logout: `${kleur9.bold("mimi-seed logout")} \u2014 \uB85C\uCEEC \uC124\uC815(config.json) \uC0AD\uC81C. \uC635\uC158 \uC5C6\uC74C.`,
5626
+ restart: `${kleur9.bold("mimi-seed restart")} \u2014 MCP \uC11C\uBC84 \uD504\uB85C\uC138\uC2A4 \uC7AC\uC2DC\uC791 (\uAE30\uBCF8: mimi-seed)
5627
+
5628
+ mimi-seed restart [server-name]`,
5629
+ notes: `${kleur9.bold("mimi-seed notes")} \u2014 \uB9B4\uB9AC\uC988 \uB178\uD2B8 \uC0DD\uC131 (git log \u2192 AI \u2192 \uB9C8\uCF13 \uC801\uC6A9)
5630
+
5631
+ \uC635\uC158:
5632
+ --from <ref> \uC2DC\uC791 \uCEE4\uBC0B/\uD0DC\uADF8 (\uAE30\uBCF8: \uCD5C\uC2E0 \uD0DC\uADF8)
5633
+ --to <ref> \uB05D \uCEE4\uBC0B (\uAE30\uBCF8: HEAD)
5634
+ --locale ko,en-US \uB300\uC0C1 \uB85C\uCF00\uC77C (\uC27C\uD45C \uAD6C\uBD84)
5635
+ --apply \uC0DD\uC131 \uD6C4 \uC2A4\uD1A0\uC5B4\uC5D0 \uBC14\uB85C \uC801\uC6A9
5636
+ --no-interactive CI \uBAA8\uB4DC (\uD504\uB86C\uD504\uD2B8 \uC5C6\uC74C)
5637
+ --limit <n> \uCD5C\uB300 \uCEE4\uBC0B \uC218 (\uAE30\uBCF8: 30)`,
5638
+ check: `${kleur9.bold("mimi-seed check")} \u2014 \uCD9C\uC2DC \uC804 Readiness \uC810\uAC80
5639
+
5640
+ \uC635\uC158:
5641
+ --app <id> \uC571 ID \uC9C0\uC815
5642
+ --local \uB85C\uADF8\uC778 \uC5C6\uC774 \uD604\uC7AC \uC800\uC7A5\uC18C\uB9CC \uAC80\uC0AC
5643
+ --path <dir> \uB85C\uCEEC \uAC80\uC0AC \uB300\uC0C1 \uACBD\uB85C (\uAE30\uBCF8: \uD604\uC7AC \uD3F4\uB354)
5644
+ --json \uB85C\uCEEC \uAC80\uC0AC \uACB0\uACFC\uB97C JSON\uC73C\uB85C \uCD9C\uB825
5645
+ --fail-on-blocker \uBE14\uB85C\uCEE4 \uC788\uC73C\uBA74 exit 1 (CI\uC6A9)`,
5646
+ review: `${kleur9.bold("mimi-seed review")} \u2014 \uB9AC\uBDF0 \uB2F5\uBCC0 AI \uCD08\uC548 \uC0DD\uC131 \uBC0F Play Store \uAC8C\uC2DC
5647
+
5648
+ \uC635\uC158:
5649
+ --text <\uB0B4\uC6A9> \uB9AC\uBDF0 \uC6D0\uBB38 (\uBBF8\uC785\uB825 \uC2DC \uB300\uD654\uD615 \uD504\uB86C\uD504\uD2B8)
5650
+ --rating <1-5> \uBCC4\uC810
5651
+ --tone <tone> friendly / professional / empathetic / brief (\uAE30\uBCF8: friendly)
5652
+ --language <\uCF54\uB4DC> \uB2F5\uBCC0 \uC5B8\uC5B4 (\uAE30\uBCF8: ko)
5653
+ --app-name <\uC774\uB984> \uC571 \uC774\uB984 (\uB9E5\uB77D\uC6A9)
5654
+ --apply \uB2F5\uBCC0\uC744 Play Store\uC5D0 \uAC8C\uC2DC
5655
+ --review-id <id> \uB9AC\uBDF0 ID (--apply \uC2DC \uD544\uC694)
5656
+ --package-name <p> \uD328\uD0A4\uC9C0\uBA85 (--apply \uC2DC \uD544\uC694)
5657
+ --no-interactive CI \uBAA8\uB4DC`,
5658
+ deploy: `${kleur9.bold("mimi-seed deploy")} \u2014 \uC571 \uC790\uB3D9 \uBC30\uD3EC (CI \uBE4C\uB4DC \u2192 Play Store/App Store)
5659
+
5660
+ \uC635\uC158:
5661
+ --platform android|ios \uBC30\uD3EC \uD50C\uB7AB\uD3FC (\uAE30\uBCF8: android)
5662
+ --app <id> \uBC30\uD3EC\uD560 \uC6D0\uACA9 \uC571 ID (\uC2E4\uC81C \uC2E4\uD589 \uD544\uC218)
5663
+ --version-code <n> \uC2E4\uC81C \uC2A4\uD1A0\uC5B4 \uBE4C\uB4DC \uBC88\uD638 (CI \uC2E4\uD589 \uBC88\uD638 \uC544\uB2D8)
5664
+ --from <ref> \uCEE4\uBC0B \uBC94\uC704 \uC2DC\uC791 (\uB9B4\uB9AC\uC988 \uB178\uD2B8\uC6A9)
5665
+ --to <ref> \uCEE4\uBC0B \uBC94\uC704 \uB05D (\uAE30\uBCF8: HEAD)
5666
+ --language <\uCF54\uB4DC> \uB9B4\uB9AC\uC988 \uB178\uD2B8 \uC5B8\uC5B4 (\uAE30\uBCF8: ko-KR)
5667
+ --dry-run \uB85C\uCEEC \uACC4\uD68D\uB9CC \uCD9C\uB825 (\uB124\uD2B8\uC6CC\uD06C\xB7\uBE4C\uB4DC\xB7\uC4F0\uAE30 \uC5C6\uC74C)
5668
+ --yes, -y CI \uC2E4\uD589\xB7\uC2A4\uD1A0\uC5B4 \uBC30\uD3EC \uBA85\uC2DC\uC801 \uC2B9\uC778 (\uC2E4\uD589 \uD544\uC218)
5669
+ --skip-build CI \uBE4C\uB4DC \uAC74\uB108\uB700 (--version-code \uD544\uC218)
5670
+ --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
5671
+ --resume <runId> \uC900\uBE44\uB41C \uBC30\uD3EC\uB97C CI \uBE4C\uB4DC \uC5C6\uC774 \uC774\uC5B4\uC11C \uC81C\uCD9C
5672
+ --ci jenkins|github|gitlab CI \uAC15\uC81C \uC120\uD0DD (\uAE30\uBCF8: auto)
5673
+ --workflow <file> GitHub workflow \uD30C\uC77C (\uC608: deploy.yml)
5674
+ --ref <branch|tag> CI \uC18C\uC2A4 (\uAE30\uBCF8: main, Jenkins\uB294 \uBE0C\uB79C\uCE58\uB9CC)
5675
+ setup-jenkins / setup-github / setup-gitlab CI \uC124\uC815 \uB300\uD654\uD615 \uB4F1\uB85D`,
5676
+ tools: `${kleur9.bold("mimi-seed tools")} \u2014 \uC0AC\uC6A9\uD560 \uC11C\uBE44\uC2A4 \uACE0\uB974\uAE30
5677
+
5678
+ mimi-seed tools \uC11C\uBE44\uC2A4 \uBAA9\uB85D \uD45C\uC2DC \uBC0F \uB300\uD654\uD615 \uB2E4\uC911 \uC120\uD0DD
5679
+ mimi-seed tools --select ga4,bigquery \uC120\uD0DD\uD55C \uC11C\uBE44\uC2A4\uC640 \uB3C4\uAD6C \uC774\uB984\uC744 JSON\uC73C\uB85C \uCD9C\uB825
5680
+ `,
5681
+ mcp: `${kleur9.bold("mimi-seed mcp")} \u2014 Claude/Codex MCP \uC5F0\uACB0
5682
+
5683
+ \uC11C\uBE0C\uBA85\uB839:
5684
+ mimi-seed mcp \uD604\uC7AC \uC124\uC815 + \uB4F1\uB85D \uC548\uB0B4
5685
+ mimi-seed mcp claude Claude Code \uB4F1\uB85D \uBA85\uB839 \uCD9C\uB825
5686
+ mimi-seed mcp codex Codex \uB4F1\uB85D \uC548\uB0B4
5687
+ mimi-seed mcp codex --write ~/.codex/config.toml\uC5D0 \uC9C1\uC811 \uAE30\uB85D (\u26A0 \uC2E4\uC81C \uD1A0\uD070 \uD3C9\uBB38 \uC800\uC7A5)`
5688
+ },
5689
+ help: `${kleur9.bold("mimi-seed")} \u2014 Claude Code/Codex\uC5D0\uC11C \uC571 \uCD9C\uC2DC \uC6B4\uC601
5690
+
5691
+ ${kleur9.bold("\uBA85\uB839\uC5B4:")}
5692
+ ${kleur9.cyan("mimi-seed init")} \uD604\uC7AC \uD504\uB85C\uC81D\uD2B8\uB97C Mimi Seed\uC5D0 \uC5F0\uACB0
5693
+ ${kleur9.cyan("mimi-seed setup")} \uAC00\uC9C4 \uACC4\uC815\uC744 \uD55C \uBC88\uC5D0 \uC5F0\uACB0 (\uC548\uB0B4\uD615 \uB9C8\uBC95\uC0AC)
5694
+ ${kleur9.cyan("mimi-seed lang")} \uCD9C\uB825 \uC5B8\uC5B4 (ko / en)
5695
+ ${kleur9.cyan("mimi-seed credentials")} \uC800\uC7A5\uB41C \uC790\uACA9\uC99D\uBA85 \uC554\uD638\uD654 (status / mode / encrypt / decrypt)
5696
+ ${kleur9.cyan("mimi-seed status")} \uC5F0\uACB0 \uC0C1\uD0DC + \uB4F1\uB85D \uC571 \uBAA9\uB85D
5697
+ ${kleur9.cyan("mimi-seed auth")} \uC790\uACA9\uC99D\uBA85 \uAC1C\uBCC4 \uC778\uC99D (Google / App Store / Play / Jenkins / CI \u2026)
5698
+ ${kleur9.cyan("mimi-seed firebase")} Firebase \uC571 \uC0DD\uC131\xB7config \uB2E4\uC6B4\uB85C\uB4DC\xB7GA4 \uB9C1\uD06C
5699
+ ${kleur9.cyan("mimi-seed admob")} AdMob \uACC4\uC815\xB7\uC571\xB7\uAD11\uACE0\uB2E8\uC704 \uC870\uD68C \uBC0F \uC0DD\uC131
5700
+ ${kleur9.cyan("mimi-seed ga4")} GA4 property\xB7data stream \uC0DD\uC131\xB7\uC870\uD68C
5701
+ ${kleur9.cyan("mimi-seed tools")} \uC11C\uBE44\uC2A4 \uBAA9\uB85D \uD45C\uC2DC \uBC0F \uB2E4\uC911 \uC120\uD0DD
5702
+ ${kleur9.cyan("mimi-seed doctor")} \uD658\uACBD \uC9C4\uB2E8 (\uD1A0\uD070\xB7Git\xB7\uD504\uB85C\uC81D\uD2B8\xB7CI \uCCB4\uD06C)
5703
+ ${kleur9.cyan("mimi-seed check")} \uCD9C\uC2DC \uC804 Readiness \uC810\uAC80
5704
+ ${kleur9.cyan("mimi-seed telemetry")} \uC120\uD0DD\uC801 \uC0AC\uC6A9\uB7C9 \uCE21\uC815 \uC124\uC815
5705
+ ${kleur9.cyan("mimi-seed notes")} \uB9B4\uB9AC\uC988 \uB178\uD2B8 \uC0DD\uC131 (git log \u2192 AI \u2192 \uB9C8\uCF13 \uC801\uC6A9)
5706
+ ${kleur9.cyan("mimi-seed review")} \uB9AC\uBDF0 \uB2F5\uBCC0 AI \uCD08\uC548 \uC0DD\uC131 \uBC0F Play Store \uAC8C\uC2DC
5707
+ ${kleur9.cyan("mimi-seed deploy")} \uC571 \uC790\uB3D9 \uBC30\uD3EC (CI \u2192 Play Store/App Store)
5708
+ ${kleur9.cyan("mimi-seed mcp")} Claude/Codex MCP \uC5F0\uACB0 \uC548\uB0B4 \uBC0F Codex \uC124\uC815 \uC4F0\uAE30
5709
+ ${kleur9.cyan("mimi-seed restart")} MCP \uC11C\uBC84 \uD504\uB85C\uC138\uC2A4 \uC7AC\uC2DC\uC791 (\uAE30\uBCF8: mimi-seed)
5710
+ ${kleur9.cyan("mimi-seed logout")} \uB85C\uCEEC \uC124\uC815 \uC0AD\uC81C
5711
+ ${kleur9.cyan("mimi-seed --version")} \uC124\uCE58\uB41C CLI \uBC84\uC804 \uCD9C\uB825
5712
+
5713
+ ${kleur9.dim("\uAC01 \uBA85\uB839 \uC0C1\uC138 \uC635\uC158:")} ${kleur9.cyan("mimi-seed <command> --help")}
5714
+
5715
+ ${kleur9.bold("\uD658\uACBD\uBCC0\uC218:")}
5716
+ MIMI_SEED_TOKEN PAT \uD1A0\uD070 (CI/CD \uBB34\uC778\uC99D \uBAA8\uB4DC)
5717
+ MIMI_SEED_WEB_BASE \uC11C\uBC84 \uC8FC\uC18C (\uAE30\uBCF8: https://mimi-seed.pryzm.gg)
5718
+ ANTHROPIC_API_KEY AI \uB178\uD2B8 \uC0DD\uC131 \uD65C\uC131\uD654 (\uC120\uD0DD)
5719
+ MIMI_SEED_LANG \uCD9C\uB825 \uC5B8\uC5B4 \uAC15\uC81C (ko / en) \u2014 settings.json \uBCF4\uB2E4 \uC6B0\uC120
5720
+ MIMI_SEED_GOOGLE_CLIENT_ID / _SECRET
5721
+ \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)
5722
+ `
5450
5723
  },
5451
5724
  {
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";
5725
+ usage: {
5726
+ 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.",
5727
+ init: `${kleur9.bold("mimi-seed init")} \u2014 connect the current project to Mimi Seed
5728
+
5729
+ Auto-detects apps (Expo/Gradle/Info.plist/pbxproj) \u2192 issues a PAT in the browser (remote MCP) \u2192 registers the apps
5730
+ + creates/verifies .claude/mimi-seed.md, AGENTS.md, docs/releases.json.
5731
+
5732
+ Options:
5733
+ --local also sign in with Google OAuth and show local MCP (all store write tools) setup`,
5734
+ setup: `${kleur9.bold("mimi-seed setup")} \u2014 connect the accounts you have, in one pass (guided wizard)
5735
+
5736
+ Shows the connection status first, then asks only about what is not connected yet.
5737
+ Press [?] on any item to learn where and how to obtain that token.
5738
+ Already-connected items are skipped, so you can quit halfway and rerun it later.
5739
+
5740
+ Options:
5741
+ --only <ids> only the given credentials (comma-separated: oauth,appstore,jenkins \u2026)
5742
+ --reconnect <ids> set up again even if already connected
5743
+ --platform android,ios force the platforms (default: auto-detected from the project)
5744
+ --yes, -y ask nothing, just print the status table
5745
+ --non-interactive same as above (for CI)
5746
+ --fail-on-missing exit 1 if a required credential is missing (CI gate)
5747
+
5748
+ ${kleur9.dim("In non-TTY / CI environments it prints the status table only, with no prompts.")}`,
5749
+ credentials: `${kleur9.bold("mimi-seed credentials")} \u2014 encrypt the stored credentials (~/.mimi-seed)
5750
+
5751
+ mimi-seed credentials status storage mode, key store, and each file's state (encrypted \xB7 plaintext \xB7 locked)
5752
+ mimi-seed credentials mode <file|keychain|auto> file: plaintext (default) \xB7 keychain: always encrypt \xB7 auto: encrypt when possible
5753
+ mimi-seed credentials encrypt encrypt the plaintext credentials that exist now (in an encrypting mode)
5754
+ mimi-seed credentials decrypt turn encrypted credentials back into plaintext (after mode file)
5755
+
5756
+ --force when turning a mode on, proceed even if an MCP server registration is pinned to an old version
5757
+
5758
+ ${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.")}
5759
+ ${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.")}`,
5760
+ lang: `${kleur9.bold("mimi-seed lang")} \u2014 CLI output language (\uD55C\uAD6D\uC5B4 / English)
5761
+
5762
+ mimi-seed lang show current language
5763
+ mimi-seed lang ko \uD55C\uAD6D\uC5B4 (default)
5764
+ mimi-seed lang en English
5765
+
5766
+ ${kleur9.dim("Stored in ~/.mimi-seed/settings.json. MIMI_SEED_LANG takes precedence when set.")}
5767
+ ${kleur9.dim("The setup wizard asks on first run, so you rarely need to type this.")}`,
5768
+ status: `${kleur9.bold("mimi-seed status")} \u2014 connection status + registered apps. No options.`,
5769
+ doctor: `${kleur9.bold("mimi-seed doctor")} \u2014 environment check (token \xB7 Node \xB7 Git \xB7 project \xB7 CI)
5770
+
5771
+ By default it only reports and exits 0. The Mimi Seed cloud token is only a \u2717 when remote features
5772
+ are configured (MIMI_SEED_TOKEN \xB7 MIMI_SEED_WEB_BASE \xB7 .mimi-seed-link.json), and App Store Connect
5773
+ only when the project has an iOS app.
5774
+
5775
+ Options:
5776
+ --strict exit 1 if any \u2717 check fails (\u26A0 is not a failure) \u2014 for CI gating
5777
+ --json print the diagnosis as JSON instead of the human-readable report (includes ok)`,
5778
+ logout: `${kleur9.bold("mimi-seed logout")} \u2014 delete the local config (config.json). No options.`,
5779
+ restart: `${kleur9.bold("mimi-seed restart")} \u2014 restart the MCP server process (default: mimi-seed)
5780
+
5781
+ mimi-seed restart [server-name]`,
5782
+ notes: `${kleur9.bold("mimi-seed notes")} \u2014 generate release notes (git log \u2192 AI \u2192 push to stores)
5783
+
5784
+ Options:
5785
+ --from <ref> start commit/tag (default: latest tag)
5786
+ --to <ref> end commit (default: HEAD)
5787
+ --locale ko,en-US target locales (comma-separated)
5788
+ --apply push to the stores right after generating
5789
+ --no-interactive CI mode (no prompts)
5790
+ --limit <n> max commits (default: 30)`,
5791
+ check: `${kleur9.bold("mimi-seed check")} \u2014 pre-release readiness check
5792
+
5793
+ Options:
5794
+ --app <id> app ID
5795
+ --local inspect the current repository without signing in
5796
+ --path <dir> local project path (default: current directory)
5797
+ --json print the local report as JSON
5798
+ --fail-on-blocker exit 1 if a blocker is found (for CI)`,
5799
+ review: `${kleur9.bold("mimi-seed review")} \u2014 draft a review reply with AI and post it to the Play Store
5800
+
5801
+ Options:
5802
+ --text <content> the review text (interactive prompt if omitted)
5803
+ --rating <1-5> star rating
5804
+ --tone <tone> friendly / professional / empathetic / brief (default: friendly)
5805
+ --language <code> reply language (default: ko)
5806
+ --app-name <name> app name (for context)
5807
+ --apply post the reply to the Play Store
5808
+ --review-id <id> review ID (required with --apply)
5809
+ --package-name <p> package name (required with --apply)
5810
+ --no-interactive CI mode`,
5811
+ deploy: `${kleur9.bold("mimi-seed deploy")} \u2014 automated app release (CI build \u2192 Play Store/App Store)
5812
+
5813
+ Options:
5814
+ --platform android|ios target platform (default: android)
5815
+ --app <id> remote app ID (required for execution)
5816
+ --version-code <n> actual store build number (not a CI run ID)
5817
+ --from <ref> commit range start (for release notes)
5818
+ --to <ref> commit range end (default: HEAD)
5819
+ --language <code> release notes language (default: ko-KR)
5820
+ --dry-run print a local plan (no network, builds or writes)
5821
+ --yes, -y explicitly approve CI and store release (required)
5822
+ --skip-build skip the CI build (--version-code required)
5823
+ --prepare-only stop after build/version verification with a ready web record
5824
+ --resume <runId> submit a ready deployment without rebuilding
5825
+ --ci jenkins|github|gitlab force the CI provider (default: auto)
5826
+ --workflow <file> GitHub workflow file (e.g. deploy.yml)
5827
+ --ref <branch|tag> CI source (default: main; Jenkins: branches only)
5828
+ setup-jenkins / setup-github / setup-gitlab interactive CI setup`,
5829
+ tools: `${kleur9.bold("mimi-seed tools")} \u2014 choose services for your task
5830
+
5831
+ mimi-seed tools show the menu and choose multiple services interactively
5832
+ mimi-seed tools --select ga4,bigquery print the selected services and tool names as JSON
5833
+ `,
5834
+ mcp: `${kleur9.bold("mimi-seed mcp")} \u2014 Claude/Codex MCP connection
5835
+
5836
+ Subcommands:
5837
+ mimi-seed mcp current config + setup instructions
5838
+ mimi-seed mcp claude print the Claude Code registration command
5839
+ mimi-seed mcp codex Codex setup instructions
5840
+ mimi-seed mcp codex --write write straight into ~/.codex/config.toml (\u26A0 stores the real token in plain text)`
5841
+ },
5842
+ help: `${kleur9.bold("mimi-seed")} \u2014 app release ops from Claude Code/Codex
5843
+
5844
+ ${kleur9.bold("Commands:")}
5845
+ ${kleur9.cyan("mimi-seed init")} connect the current project to Mimi Seed
5846
+ ${kleur9.cyan("mimi-seed setup")} connect the accounts you have, in one pass (guided wizard)
5847
+ ${kleur9.cyan("mimi-seed lang")} output language (ko / en)
5848
+ ${kleur9.cyan("mimi-seed credentials")} encrypt the stored credentials (status / mode / encrypt / decrypt)
5849
+ ${kleur9.cyan("mimi-seed status")} connection status + registered apps
5850
+ ${kleur9.cyan("mimi-seed auth")} connect credentials one by one (Google / App Store / Play / Jenkins / CI \u2026)
5851
+ ${kleur9.cyan("mimi-seed firebase")} create Firebase apps, download configs, link GA4
5852
+ ${kleur9.cyan("mimi-seed admob")} list and create AdMob accounts, apps, ad units
5853
+ ${kleur9.cyan("mimi-seed ga4")} create and list GA4 properties and data streams
5854
+ ${kleur9.cyan("mimi-seed tools")} list and select multiple services
5855
+ ${kleur9.cyan("mimi-seed doctor")} environment check (token \xB7 Git \xB7 project \xB7 CI)
5856
+ ${kleur9.cyan("mimi-seed check")} pre-release readiness check
5857
+ ${kleur9.cyan("mimi-seed telemetry")} optional usage measurement settings
5858
+ ${kleur9.cyan("mimi-seed notes")} generate release notes (git log \u2192 AI \u2192 push to stores)
5859
+ ${kleur9.cyan("mimi-seed review")} draft a review reply with AI and post it to the Play Store
5860
+ ${kleur9.cyan("mimi-seed deploy")} automated app release (CI \u2192 Play Store/App Store)
5861
+ ${kleur9.cyan("mimi-seed mcp")} Claude/Codex MCP setup instructions and Codex config writing
5862
+ ${kleur9.cyan("mimi-seed restart")} restart the MCP server process (default: mimi-seed)
5863
+ ${kleur9.cyan("mimi-seed logout")} delete the local config
5864
+ ${kleur9.cyan("mimi-seed --version")} print the installed CLI version
5865
+
5866
+ ${kleur9.dim("Per-command options:")} ${kleur9.cyan("mimi-seed <command> --help")}
5867
+
5868
+ ${kleur9.bold("Environment variables:")}
5869
+ MIMI_SEED_TOKEN PAT token (headless CI/CD mode)
5870
+ MIMI_SEED_WEB_BASE server address (default: https://mimi-seed.pryzm.gg)
5871
+ ANTHROPIC_API_KEY enable AI note generation (optional)
5872
+ MIMI_SEED_LANG force the output language (ko / en) \u2014 beats settings.json
5873
+ MIMI_SEED_GOOGLE_CLIENT_ID / _SECRET
5874
+ use your own Google OAuth client (otherwise fetched from the web console at sign-in)
5875
+ `
5876
+ }
5877
+ );
5878
+ function printCommandHelp(cmd) {
5879
+ const usage = M9().usage[cmd];
5880
+ if (!usage) return false;
5881
+ process.stdout.write(usage + "\n");
5882
+ return true;
5883
+ }
5884
+ function printHelp() {
5885
+ process.stdout.write(M9().help + "\n");
5886
+ }
5887
+
5888
+ // src/credentials-cmd.ts
5889
+ var FIRST_ENVELOPE_READER = "0.24.1";
5890
+ var M10 = catalog(
5891
+ {
5892
+ modeLabel: { file: "\uD3C9\uBB38 (file)", keychain: "\uC554\uD638\uD654 (keychain)", auto: "\uAC00\uB2A5\uD558\uBA74 \uC554\uD638\uD654 (auto)" },
5893
+ header: "\uC790\uACA9\uC99D\uBA85 \uC800\uC7A5",
5894
+ configured: (mode, explicit) => `\uC124\uC815: ${mode}${explicit ? "" : " \u2014 \uAE30\uBCF8\uAC12"}`,
5895
+ effective: (mode) => `\uC801\uC6A9: ${mode}`,
5896
+ 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)",
5897
+ envWins: (env) => ` (${env} \uD658\uACBD \uBCC0\uC218\uAC00 settings.json \uBCF4\uB2E4 \uC6B0\uC120\uD569\uB2C8\uB2E4)`,
5898
+ store: (backend, state) => `\uD0A4 \uC800\uC7A5\uC18C: ${backend} \u2014 ${state}`,
5899
+ storeState: { ok: "\uC0AC\uC6A9 \uAC00\uB2A5", absent: "\uD0A4 \uC5C6\uC74C(\uCCAB \uC554\uD638\uD654 \uB54C \uB9CC\uB4ED\uB2C8\uB2E4)", unavailable: "\uB2FF\uC9C0 \uBABB\uD568" },
5900
+ 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}` : ""}`,
5901
+ lockedLine: (file, reason) => ` \u2717 ${file} \u2014 ${reason}`,
5902
+ plainHint: "\uD3C9\uBB38 \uD30C\uC77C\uC744 \uC9C0\uAE08 \uC554\uD638\uD654\uD558\uB824\uBA74: mimi-seed credentials encrypt",
5903
+ badMode: (v) => `\uC54C \uC218 \uC5C6\uB294 \uBAA8\uB4DC: ${v} \u2014 file, keychain, auto \uC911 \uD558\uB098`,
5904
+ 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).`,
5905
+ 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.`,
5906
+ storeNeeded: (backend, why) => `${backend}\uC5D0 \uB2FF\uC9C0 \uBABB\uD574 \uC554\uD638\uD654\uB97C \uCF24 \uC218 \uC5C6\uC2B5\uB2C8\uB2E4: ${why}`,
5907
+ 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.`,
5908
+ 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",
5909
+ encryptNeedsMode: "\uBA3C\uC800 \uC554\uD638\uD654 \uBAA8\uB4DC\uB97C \uCF1C\uC138\uC694: mimi-seed credentials mode keychain (\uB610\uB294 auto)",
5910
+ decryptNeedsMode: "\uBA3C\uC800 \uD3C9\uBB38 \uBAA8\uB4DC\uB85C \uBC14\uAFB8\uC138\uC694: mimi-seed credentials mode file",
5911
+ converted: (n, what) => `${n}\uAC1C \uD30C\uC77C\uC744 ${what}\uD588\uC2B5\uB2C8\uB2E4.`,
5912
+ encryptedWord: "\uC554\uD638\uD654",
5913
+ decryptedWord: "\uD3C9\uBB38\uC73C\uB85C \uB418\uB3CC",
5914
+ nothing: "\uBC14\uAFC0 \uD30C\uC77C\uC774 \uC5C6\uC2B5\uB2C8\uB2E4.",
5915
+ skipped: (file, reason) => ` \uAC74\uB108\uB700: ${file} \u2014 ${reason}`,
5916
+ 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."
5917
+ },
5918
+ {
5919
+ modeLabel: { file: "plaintext (file)", keychain: "encrypted (keychain)", auto: "encrypted when possible (auto)" },
5920
+ header: "Credential storage",
5921
+ configured: (mode, explicit) => `Configured: ${mode}${explicit ? "" : " \u2014 default"}`,
5922
+ effective: (mode) => `In effect: ${mode}`,
5923
+ upgraded: " (this machine has already encrypted, so it does not go back to plaintext)",
5924
+ envWins: (env) => ` (the ${env} environment variable wins over settings.json)`,
5925
+ store: (backend, state) => `Key store: ${backend} \u2014 ${state}`,
5926
+ storeState: { ok: "available", absent: "no key yet (created on the first encrypted save)", unavailable: "unreachable" },
5927
+ counts: (enc, plain, locked, bad) => `Files: ${enc} encrypted \xB7 ${plain} plaintext${locked ? ` \xB7 ${locked} locked` : ""}${bad ? ` \xB7 ${bad} damaged` : ""}`,
5928
+ lockedLine: (file, reason) => ` \u2717 ${file} \u2014 ${reason}`,
5929
+ plainHint: "To encrypt the plaintext files now: mimi-seed credentials encrypt",
5930
+ badMode: (v) => `Unknown mode: ${v} \u2014 use file, keychain, or auto`,
5931
+ 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).`,
5932
+ envOverrides: (env, value) => `Note: ${env}=${value} is set and wins over this setting. Unset it to use the mode you just chose.`,
5933
+ storeNeeded: (backend, why) => `Cannot turn on encryption: ${backend} could not be reached: ${why}`,
5934
+ modeSaved: (mode) => `Storage mode set to ${mode}. It applies to credentials saved from now on.`,
5935
+ modeFileNote: "Files already encrypted stay encrypted and keep working while the key exists. To turn them back into plaintext: mimi-seed credentials decrypt",
5936
+ encryptNeedsMode: "Turn on an encrypting mode first: mimi-seed credentials mode keychain (or auto)",
5937
+ decryptNeedsMode: "Switch to plaintext mode first: mimi-seed credentials mode file",
5938
+ converted: (n, what) => `${n} file(s) ${what}.`,
5939
+ encryptedWord: "encrypted",
5940
+ decryptedWord: "turned back into plaintext",
5941
+ nothing: "No files to change.",
5942
+ skipped: (file, reason) => ` skipped: ${file} \u2014 ${reason}`,
5943
+ markerCleared: "No encrypted files remain, so the encryption marker (.data-key.id) was removed."
5944
+ }
5945
+ );
5946
+ function log4(msg = "") {
5947
+ process.stdout.write(msg + "\n");
5948
+ }
5949
+ function findOldMcpPins(home = os3.homedir(), cwd = process.cwd(), floor = FIRST_ENVELOPE_READER) {
5950
+ const candidates = [
5951
+ path15.join(home, ".claude.json"),
5952
+ path15.join(home, ".codex", "config.toml"),
5953
+ path15.join(home, ".cursor", "mcp.json"),
5954
+ path15.join(cwd, ".mcp.json")
5955
+ ];
5956
+ const found = [];
5957
+ for (const file of candidates) {
5958
+ let text;
5959
+ try {
5960
+ text = fs12.readFileSync(file, "utf8");
5961
+ } catch {
5962
+ continue;
5963
+ }
5964
+ for (const match of text.matchAll(/@yoonion\/mimi-seed-mcp@([\^~]?)(\d+)(?:\.(\d+))?(?:\.(\d+))?(?![\w.])/g)) {
5965
+ const [, range, major, minor, patch] = match;
5966
+ const caretMajor = range === "^" && major !== "0";
5967
+ const version2 = [major, caretMajor ? "999" : minor ?? "999", range || patch === void 0 ? "999" : patch].join(".");
5968
+ if (compareVersions2(version2, floor) < 0) found.push({ where: file, version: match[0].slice(match[0].lastIndexOf("@") + 1) });
5969
+ }
5970
+ }
5971
+ return found;
5972
+ }
5973
+ function compareVersions2(a, b) {
5974
+ const pa = a.split(/[.-]/).slice(0, 3).map((n) => Number.parseInt(n, 10) || 0);
5975
+ const pb = b.split(/[.-]/).slice(0, 3).map((n) => Number.parseInt(n, 10) || 0);
5976
+ for (let i = 0; i < 3; i++) if (pa[i] !== pb[i]) return pa[i] - pb[i];
5977
+ return 0;
5978
+ }
5979
+ function printStatus() {
5980
+ const m = M10();
5981
+ const report = credentialStoreReport();
5982
+ log4(kleur10.bold(m.header));
5983
+ log4(m.configured(m.modeLabel[report.configured], report.explicit));
5984
+ log4(m.effective(m.modeLabel[report.effective]));
5985
+ if (report.effective !== report.configured) log4(kleur10.dim(m.upgraded));
5986
+ if (process.env[CREDENTIAL_STORE_ENV]?.trim()) log4(kleur10.dim(m.envWins(CREDENTIAL_STORE_ENV)));
5987
+ if (report.effective !== "file" || report.keyId || report.files.some((f) => f.state !== "plaintext")) {
5988
+ const store = lookupDataKey();
5989
+ log4(m.store(store.backend, m.storeState[store.state] + (store.state === "unavailable" ? ` (${store.reason})` : "")));
5990
+ }
5991
+ const count = (state) => report.files.filter((f) => f.state === state).length;
5992
+ log4(m.counts(count("encrypted"), count("plaintext"), count("locked"), count("invalid")));
5993
+ for (const f of report.files) if (f.state === "locked" || f.state === "invalid") log4(kleur10.red(m.lockedLine(f.file, f.reason ?? "")));
5994
+ if (report.effective !== "file" && count("plaintext") > 0) log4(kleur10.dim(m.plainHint));
5995
+ }
5996
+ function fail(message) {
5997
+ log4(kleur10.red(message));
5998
+ process.exit(1);
5999
+ }
6000
+ function setMode(value, force) {
6001
+ const m = M10();
6002
+ if (!isCredentialStoreMode(value)) fail(m.badMode(value ?? ""));
6003
+ if (value !== "file") {
6004
+ const pins = force ? [] : findOldMcpPins();
6005
+ if (pins.length > 0) fail(pins.map((pin) => m.pinned(pin.where, pin.version)).join("\n"));
6006
+ if (value === "keychain") {
6007
+ const key = obtainDataKey();
6008
+ if (key.state !== "ok") fail(m.storeNeeded(key.backend, key.state === "unavailable" ? key.reason : "no key"));
6009
+ }
6010
+ }
6011
+ writeSettings({ credentialStore: value });
6012
+ log4(kleur10.green(m.modeSaved(m.modeLabel[value])));
6013
+ const env = process.env[CREDENTIAL_STORE_ENV]?.trim().toLowerCase();
6014
+ if (isCredentialStoreMode(env) && env !== value) log4(kleur10.yellow(m.envOverrides(CREDENTIAL_STORE_ENV, env)));
6015
+ if (value === "file") log4(kleur10.dim(m.modeFileNote));
6016
+ else log4(kleur10.dim(m.plainHint));
6017
+ }
6018
+ function convert(target) {
6019
+ const m = M10();
6020
+ const report = credentialStoreReport();
6021
+ if (target === "encrypted") {
6022
+ if (report.effective === "file") fail(m.encryptNeedsMode);
6023
+ const key = obtainDataKey();
6024
+ if (key.state !== "ok") fail(m.storeNeeded(key.backend, key.state === "unavailable" ? key.reason : "no key"));
6025
+ } else if (report.effective !== "file") {
6026
+ const env = process.env[CREDENTIAL_STORE_ENV]?.trim().toLowerCase();
6027
+ fail(isCredentialStoreMode(env) && env !== "file" ? m.envOverrides(CREDENTIAL_STORE_ENV, env) : m.decryptNeedsMode);
6028
+ }
6029
+ const result = rewriteCredentialFiles(target, (file, text) => writeCredentialFile(file, text));
6030
+ log4(result.converted.length > 0 ? kleur10.green(m.converted(result.converted.length, target === "encrypted" ? m.encryptedWord : m.decryptedWord)) : m.nothing);
6031
+ for (const s of result.skipped) log4(kleur10.yellow(m.skipped(s.file, s.reason)));
6032
+ if (target === "plaintext" && result.skipped.length === 0 && !credentialStoreReport().files.some((f) => f.state !== "plaintext")) {
6033
+ clearKeyIdMarker();
6034
+ log4(kleur10.dim(m.markerCleared));
6035
+ }
6036
+ if (result.skipped.length > 0) process.exitCode = 1;
6037
+ }
6038
+ async function cmdCredentials(args) {
6039
+ const [sub, ...rest] = args;
6040
+ switch (sub) {
6041
+ case void 0:
6042
+ case "status":
6043
+ printStatus();
6044
+ return;
6045
+ case "mode":
6046
+ setMode(rest.find((a) => !a.startsWith("-"))?.toLowerCase(), rest.includes("--force"));
6047
+ return;
6048
+ case "encrypt":
6049
+ convert("encrypted");
6050
+ return;
6051
+ case "decrypt":
6052
+ convert("plaintext");
6053
+ return;
6054
+ default:
6055
+ printCommandHelp("credentials");
6056
+ if (sub !== "--help" && sub !== "-h") process.exitCode = 1;
6057
+ }
6058
+ }
6059
+
6060
+ // src/cloud.ts
6061
+ function exitWith2(code) {
6062
+ if (code !== 0) process.exit(code);
6063
+ }
6064
+ async function cmdFirebase(args) {
6065
+ exitWith2(await runMcpBin("mimi-seed-firebase", args));
6066
+ }
6067
+ async function cmdAdmob(args) {
6068
+ exitWith2(await runMcpBin("mimi-seed-admob", args));
6069
+ }
6070
+ async function cmdGa4(args) {
6071
+ exitWith2(await runMcpBin("mimi-seed-ga4", args));
6072
+ }
6073
+
6074
+ // src/mcp-restart.ts
6075
+ import { execFileSync as execFileSync2, execSync } from "child_process";
6076
+ import fs13 from "fs";
6077
+ import os4 from "os";
6078
+ import path16 from "path";
6079
+ import kleur11 from "kleur";
6080
+ function log5(msg) {
6081
+ process.stdout.write(msg + "\n");
6082
+ }
6083
+ var M11 = catalog(
6084
+ {
6085
+ killedPid: (pid) => ` PID ${pid} \uC885\uB8CC`,
6086
+ title: (server) => `MCP \uC11C\uBC84 \uC7AC\uC2DC\uC791: ${server}`,
6087
+ none: "(\uC5C6\uC74C)",
6088
+ notFound: (server) => `'${server}' \uC11C\uBC84\uB97C MCP \uC124\uC815\uC5D0\uC11C \uCC3E\uC9C0 \uBABB\uD588\uC2B5\uB2C8\uB2E4.`,
6089
+ searched: (paths) => ` \uCC3E\uC544\uBCF8 \uACF3: ${paths}`,
6090
+ noConfig: "(\uC124\uC815 \uC5C6\uC74C)",
6091
+ registered: (list) => ` \uB4F1\uB85D\uB41C \uC11C\uBC84: ${list}`,
6092
+ 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.`,
6093
+ httpHint: " Claude Code\uC5D0\uC11C /mcp \uB97C \uC2E4\uD589\uD574 \uC5F0\uACB0 \uC0C1\uD0DC\uB97C \uD655\uC778\uD558\uC138\uC694.",
6094
+ noMarker: "\uD504\uB85C\uC138\uC2A4 \uC2DD\uBCC4\uC790(\uC2A4\uD06C\uB9BD\uD2B8 \uACBD\uB85C)\uB97C \uCC3E\uC9C0 \uBABB\uD588\uC2B5\uB2C8\uB2E4.",
6095
+ configLine: (cfg) => ` \uC124\uC815: ${cfg}`,
6096
+ markerLine: (marker) => ` \uC2DD\uBCC4\uC790: ${marker}`,
6097
+ noProcess: "\u26A0 \uC2E4\uD589 \uC911\uC778 \uD504\uB85C\uC138\uC2A4\uB97C \uCC3E\uC9C0 \uBABB\uD588\uC2B5\uB2C8\uB2E4.",
6098
+ 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.",
6099
+ 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.",
6100
+ codexVerify: " \uD655\uC778: \uC0C8 Codex thread\uC5D0\uC11C mimi_seed_status \uD638\uCD9C",
6101
+ 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.",
6102
+ claudeKilledHint: " Claude Code\uAC00 \uB2E4\uC74C \uB3C4\uAD6C \uD638\uCD9C \uC2DC \uC790\uB3D9\uC73C\uB85C \uC7AC\uC5F0\uACB0\uD569\uB2C8\uB2E4.",
6103
+ claudeVerify: " \uC5F0\uACB0 \uD655\uC778: Claude Code\uC5D0\uC11C /mcp \uC2E4\uD589",
6104
+ 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.",
6105
+ 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.",
6106
+ genericVerify: " \uC5F0\uACB0 \uD655\uC778: \uC0C8 \uC138\uC158\uC5D0\uC11C mimi_seed_status \uD638\uCD9C",
6107
+ 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.",
6108
+ killed: (server, n) => `\u2713 ${server} \uC885\uB8CC\uB428 (${n}\uAC1C \uD504\uB85C\uC138\uC2A4)`,
6109
+ 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.`,
6110
+ 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.`
6111
+ },
6112
+ {
6113
+ killedPid: (pid) => ` PID ${pid} killed`,
6114
+ title: (server) => `Restarting MCP server: ${server}`,
6115
+ none: "(none)",
6116
+ registered: (list) => ` Registered servers: ${list}`,
6117
+ notFound: (server) => `Could not find the '${server}' server in any MCP config.`,
6118
+ searched: (paths) => ` Looked in: ${paths}`,
6119
+ noConfig: "(no config found)",
6120
+ httpServer: (server) => `'${server}' is an HTTP/SSE server. It does not need a process restart.`,
6121
+ httpHint: " Run /mcp in Claude Code to check the connection.",
6122
+ noMarker: "Could not find a process marker (script path).",
6123
+ configLine: (cfg) => ` Config: ${cfg}`,
6124
+ markerLine: (marker) => ` Marker: ${marker}`,
6125
+ noProcess: "\u26A0 No running process found.",
6126
+ 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.",
6127
+ codexKilledHint: " The current Codex thread cannot reattach to the terminated stdio server. Start a new thread or reopen Codex.",
6128
+ codexVerify: " Verify: call mimi_seed_status in a new Codex thread",
6129
+ claudeNoProcessHint: " It may have already exited, or Claude Code may not have started the server yet.",
6130
+ claudeKilledHint: " Claude Code will reconnect automatically on the next tool call.",
6131
+ claudeVerify: " Verify the connection: run /mcp in Claude Code",
6132
+ genericNoProcessHint: " The stdio transport may already be closed. Reopen the MCP client to reconnect.",
6133
+ genericKilledHint: " The MCP client owns the stdio server. Reopen the client to reconnect.",
6134
+ genericVerify: " Verify: call mimi_seed_status in a new session",
6135
+ 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.",
6136
+ killed: (server, n) => `\u2713 ${server} killed (${n} process(es))`,
6137
+ 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.`,
6138
+ tooMany: (n) => `${n} server processes match the marker, so nothing was killed \u2014 too many. Check the args in the MCP config.`
6139
+ }
6140
+ );
6141
+ function readJson(filePath) {
6142
+ try {
6143
+ return JSON.parse(fs13.readFileSync(filePath, "utf8"));
6144
+ } catch {
6145
+ return {};
6146
+ }
6147
+ }
6148
+ var BUILTIN_MIMI_SEED_SERVER = {
6149
+ command: "npx",
6150
+ args: ["-y", "@yoonion/mimi-seed-mcp@latest"]
6151
+ };
6152
+ function detectMcpClient(env = process.env) {
6153
+ if (env.CODEX_THREAD_ID || env.CODEX_CI || env.CODEX_INTERNAL_ORIGINATOR_OVERRIDE) return "codex";
6154
+ if (env.CLAUDECODE || env.CLAUDE_CODE || env.CLAUDE_CODE_ENTRYPOINT) return "claude-code";
5494
6155
  return "unknown";
5495
6156
  }
5496
6157
  function recoveryMessages(client, killed) {
5497
- const m = M9();
6158
+ const m = M11();
5498
6159
  if (client === "codex") {
5499
6160
  return { hint: killed ? m.codexKilledHint : m.codexNoProcessHint, verify: m.codexVerify };
5500
6161
  }
@@ -5519,8 +6180,8 @@ function collectServers() {
5519
6180
  for (const [name, cfg] of entries) if (!(name in servers)) servers[name] = cfg;
5520
6181
  };
5521
6182
  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"));
6183
+ add(readJson(path16.join(projectDir, ".mcp.json")).mcpServers, ".mcp.json");
6184
+ const home = readJson(path16.join(os4.homedir(), ".claude.json"));
5524
6185
  const projects = home.projects;
5525
6186
  add(projects?.[projectDir]?.mcpServers, "~/.claude.json (projects)");
5526
6187
  add(home.mcpServers, "~/.claude.json");
@@ -5695,10 +6356,10 @@ var LOADER_FLAGS_WITH_VALUE = /* @__PURE__ */ new Set([
5695
6356
  function baseName(value) {
5696
6357
  return value.split(/[\\/]/).pop() ?? value;
5697
6358
  }
5698
- var normalizePath = (value) => path15.posix.normalize(value.replace(/\\/g, "/").toLowerCase());
6359
+ var normalizePath = (value) => path16.posix.normalize(value.replace(/\\/g, "/").toLowerCase());
5699
6360
  var programName = (argv0) => baseName(argv0).toLowerCase().replace(WIN_EXE_RE, "");
5700
6361
  var escapeRegExp3 = (value) => value.replace(/[.*+?^${}()|[\]\\]/g, "\\$&");
5701
- var isAbsoluteScript = (value) => path15.posix.isAbsolute(value) || path15.win32.isAbsolute(value);
6362
+ var isAbsoluteScript = (value) => path16.posix.isAbsolute(value) || path16.win32.isAbsolute(value);
5702
6363
  function isSpecificMarker(value) {
5703
6364
  const v = value.trim();
5704
6365
  if (v.length < 4 || !/[a-z]/i.test(v)) return false;
@@ -5721,7 +6382,7 @@ function findProcessMarker(cfg) {
5721
6382
  function candidateMarkers(cfg, cwd = process.cwd()) {
5722
6383
  const primary = findProcessMarker(cfg);
5723
6384
  if (!primary) return [];
5724
- if (SCRIPT_RE.test(primary)) return [isAbsoluteScript(primary) ? primary : path15.resolve(cwd, primary)];
6385
+ if (SCRIPT_RE.test(primary)) return [isAbsoluteScript(primary) ? primary : path16.resolve(cwd, primary)];
5725
6386
  const base = baseName(primary).replace(WIN_EXE_RE, "");
5726
6387
  const packageIndex = runnerPackageIndex(cfg);
5727
6388
  const isRunnerPackage = packageIndex !== null && Array.isArray(cfg.args) && cfg.args[packageIndex] === primary;
@@ -5753,7 +6414,7 @@ function scriptOf(argv, loaderFlags = /* @__PURE__ */ new Set()) {
5753
6414
  }
5754
6415
  function readPackageJsonFile(dir) {
5755
6416
  try {
5756
- const parsed = JSON.parse(fs12.readFileSync(path15.join(dir, "package.json"), "utf8"));
6417
+ const parsed = JSON.parse(fs13.readFileSync(path16.join(dir, "package.json"), "utf8"));
5757
6418
  return parsed && typeof parsed === "object" ? parsed : null;
5758
6419
  } catch {
5759
6420
  return null;
@@ -5776,7 +6437,7 @@ function matchesMarkers(argv, markers, ctx = {}) {
5776
6437
  const absoluteScript = () => {
5777
6438
  if (resolved === void 0) {
5778
6439
  const cwd = isAbsoluteScript(script) ? null : ctx.processCwd?.() ?? null;
5779
- resolved = isAbsoluteScript(script) ? s : cwd ? normalizePath(path15.resolve(cwd, script)) : null;
6440
+ resolved = isAbsoluteScript(script) ? s : cwd ? normalizePath(path16.resolve(cwd, script)) : null;
5780
6441
  }
5781
6442
  return resolved;
5782
6443
  };
@@ -5795,7 +6456,7 @@ function matchesMarkers(argv, markers, ctx = {}) {
5795
6456
  const name = normalizePath(marker.replace(WIN_EXE_RE, "").replace(VERSION_RE, ""));
5796
6457
  const binName = baseName(name);
5797
6458
  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, "/"));
6459
+ const original = path16.posix.normalize(script.replace(/\\/g, "/"));
5799
6460
  const pattern = name.includes("/") ? new RegExp(`/node_modules/${escapeRegExp3(name)}(?=/)`, "i") : new RegExp(`/node_modules/(?:@[^/]+/)?${escapeRegExp3(name)}(?=/)`, "i");
5800
6461
  const m = pattern.exec(`/${original}`);
5801
6462
  if (!m) return false;
@@ -5866,7 +6527,7 @@ function listPosixProcesses() {
5866
6527
  return list;
5867
6528
  }
5868
6529
  function systemExe(...segments) {
5869
- return path15.win32.join(process.env.SystemRoot ?? "C:\\Windows", "System32", ...segments);
6530
+ return path16.win32.join(process.env.SystemRoot ?? "C:\\Windows", "System32", ...segments);
5870
6531
  }
5871
6532
  var WINDOWS_PROCESS_QUERY = "[Console]::OutputEncoding = [Text.Encoding]::UTF8; Get-CimInstance Win32_Process | Select-Object ProcessId, CommandLine | ConvertTo-Json -Compress";
5872
6533
  function parseWindowsProcesses(json) {
@@ -5901,17 +6562,17 @@ function listWindowsProcesses() {
5901
6562
  var MIMI_SEED_PACKAGE = "@yoonion/mimi-seed-mcp";
5902
6563
  function looksLikeMimiSeed(marker, read = readPackageJsonFile) {
5903
6564
  if (SCRIPT_RE.test(marker)) {
5904
- const file = path15.resolve(marker);
5905
- let dir = path15.dirname(file);
6565
+ const file = path16.resolve(marker);
6566
+ let dir = path16.dirname(file);
5906
6567
  for (let depth = 0; depth < 6; depth++) {
5907
6568
  const pkg = read(dir);
5908
6569
  if (pkg) {
5909
6570
  if (pkg.name !== MIMI_SEED_PACKAGE) return false;
5910
- const rest = normalizePath(path15.relative(dir, file));
6571
+ const rest = normalizePath(path16.relative(dir, file));
5911
6572
  const bin = pkg.bin && typeof pkg.bin === "object" ? pkg.bin["mimi-seed-mcp"] : null;
5912
6573
  return rest === "src/index.ts" || rest === normalizePath(typeof bin === "string" ? bin : "dist/index.js");
5913
6574
  }
5914
- const up = path15.dirname(dir);
6575
+ const up = path16.dirname(dir);
5915
6576
  if (up === dir) break;
5916
6577
  dir = up;
5917
6578
  }
@@ -5922,7 +6583,7 @@ function looksLikeMimiSeed(marker, read = readPackageJsonFile) {
5922
6583
  }
5923
6584
  function processCwd(pid) {
5924
6585
  try {
5925
- if (process.platform === "linux") return fs12.readlinkSync(`/proc/${pid}/cwd`);
6586
+ if (process.platform === "linux") return fs13.readlinkSync(`/proc/${pid}/cwd`);
5926
6587
  if (process.platform === "darwin") {
5927
6588
  const out = execFileSync2("/usr/sbin/lsof", ["-a", "-d", "cwd", "-Fn", "-p", String(pid)], { encoding: "utf8", stdio: "pipe" });
5928
6589
  return out.split("\n").find((l) => l.startsWith("n"))?.slice(1) ?? null;
@@ -5943,7 +6604,7 @@ function planKill(processes, markers, {
5943
6604
  }
5944
6605
  function killByMarkers(markers) {
5945
6606
  if (markers.length === 0) return { killed: 0, refused: 0 };
5946
- const isWin = os3.platform() === "win32";
6607
+ const isWin = os4.platform() === "win32";
5947
6608
  const { pids, refused } = planKill(isWin ? listWindowsProcesses() : listPosixProcesses(), markers);
5948
6609
  if (refused) return { killed: 0, refused };
5949
6610
  let killed = 0;
@@ -5951,7 +6612,7 @@ function killByMarkers(markers) {
5951
6612
  try {
5952
6613
  if (isWin) execFileSync2(systemExe("taskkill.exe"), ["/F", "/PID", String(pid)], { stdio: "pipe" });
5953
6614
  else process.kill(pid, "SIGTERM");
5954
- log4(kleur9.dim(M9().killedPid(String(pid))));
6615
+ log5(kleur11.dim(M11().killedPid(String(pid))));
5955
6616
  killed += 1;
5956
6617
  } catch {
5957
6618
  }
@@ -5960,355 +6621,58 @@ function killByMarkers(markers) {
5960
6621
  }
5961
6622
  async function cmdRestart(args) {
5962
6623
  const serverName = args[0] ?? "mimi-seed";
5963
- log4(kleur9.bold(M9().title(serverName)));
5964
- log4("");
6624
+ log5(kleur11.bold(M11().title(serverName)));
6625
+ log5("");
5965
6626
  const { servers, sources } = collectServers();
5966
6627
  const cfg = resolveServerConfig(servers, serverName);
5967
6628
  if (!cfg) {
5968
6629
  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)));
6630
+ const available = names.length ? names.join(", ") : M11().none;
6631
+ log5(kleur11.red(M11().notFound(serverName)));
6632
+ log5(kleur11.dim(M11().searched(sources.length ? sources.join(", ") : M11().noConfig)));
6633
+ log5(kleur11.dim(M11().registered(available)));
5973
6634
  process.exit(1);
5974
6635
  }
5975
6636
  if (cfg.type === "http" || cfg.type === "sse") {
5976
- log4(kleur9.yellow(M9().httpServer(serverName)));
5977
- log4(kleur9.dim(M9().httpHint));
6637
+ log5(kleur11.yellow(M11().httpServer(serverName)));
6638
+ log5(kleur11.dim(M11().httpHint));
5978
6639
  return;
5979
6640
  }
5980
6641
  const markers = candidateMarkers(cfg);
5981
6642
  const marker = markers[0] ?? null;
5982
6643
  if (!marker) {
5983
- log4(kleur9.yellow(M9().noMarker));
5984
- log4(kleur9.dim(M9().configLine(JSON.stringify(cfg))));
6644
+ log5(kleur11.yellow(M11().noMarker));
6645
+ log5(kleur11.dim(M11().configLine(JSON.stringify(cfg))));
5985
6646
  process.exit(1);
5986
6647
  }
5987
6648
  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))));
6649
+ log5(kleur11.red(M11().notMimiSeed(marker)));
6650
+ log5(kleur11.dim(M11().configLine(JSON.stringify(cfg))));
5990
6651
  process.exit(1);
5991
6652
  }
5992
- log4(kleur9.dim(M9().markerLine(marker)));
6653
+ log5(kleur11.dim(M11().markerLine(marker)));
5993
6654
  const { killed, refused } = killByMarkers(markers);
5994
6655
  if (refused > 0) {
5995
- log4(kleur9.red(M9().tooMany(refused)));
5996
- log4(kleur9.dim(M9().configLine(JSON.stringify(cfg))));
6656
+ log5(kleur11.red(M11().tooMany(refused)));
6657
+ log5(kleur11.dim(M11().configLine(JSON.stringify(cfg))));
5997
6658
  process.exit(1);
5998
6659
  }
5999
6660
  const recovery = recoveryMessages(detectMcpClient(), killed > 0);
6000
6661
  if (killed === 0) {
6001
- log4(kleur9.yellow(M9().noProcess));
6002
- log4(kleur9.dim(recovery.hint));
6003
- log4(kleur9.yellow(M9().unknownWriteOutcome));
6662
+ log5(kleur11.yellow(M11().noProcess));
6663
+ log5(kleur11.dim(recovery.hint));
6664
+ log5(kleur11.yellow(M11().unknownWriteOutcome));
6004
6665
  } 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
- `
6666
+ log5("");
6667
+ log5(kleur11.green(M11().killed(serverName, killed)));
6668
+ log5(kleur11.dim(recovery.hint));
6298
6669
  }
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");
6670
+ log5("");
6671
+ log5(kleur11.cyan(recovery.verify));
6308
6672
  }
6309
6673
 
6310
6674
  // src/index.ts
6311
- var M11 = catalog(
6675
+ var M12 = catalog(
6312
6676
  {
6313
6677
  notConnected: "\uC5F0\uACB0\uB41C Mimi Seed \uACC4\uC815\uC774 \uC5C6\uC2B5\uB2C8\uB2E4. `mimi-seed init` \uC2E4\uD589.",
6314
6678
  statusTitle: "Mimi Seed \uC5F0\uACB0 \uC0C1\uD0DC",
@@ -6346,65 +6710,65 @@ var M11 = catalog(
6346
6710
  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
6711
  }
6348
6712
  );
6349
- function log5(msg) {
6713
+ function log6(msg) {
6350
6714
  process.stdout.write(msg + "\n");
6351
6715
  }
6352
6716
  async function cmdStatus() {
6353
6717
  const cfg = await getEffectiveConfig();
6354
6718
  if (!cfg) {
6355
- log5(kleur11.yellow(M11().notConnected));
6719
+ log6(kleur12.yellow(M12().notConnected));
6356
6720
  process.exit(1);
6357
6721
  }
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);
6722
+ log6(kleur12.bold(M12().statusTitle));
6723
+ log6(M12().statusToken(cfg.prefix, cfg.createdAt.slice(0, 10)));
6724
+ log6(M12().statusEndpoint(cfg.endpoint));
6725
+ log6("");
6726
+ log6(M12().appList);
6363
6727
  const r = await mcpCall(cfg.endpoint, cfg.token, "list_apps", {});
6364
6728
  if (r.isError) {
6365
- log5(kleur11.red(M11().listFailed(r.text)));
6729
+ log6(kleur12.red(M12().listFailed(r.text)));
6366
6730
  process.exit(1);
6367
6731
  }
6368
- for (const line of r.text.split("\n")) log5(" " + line);
6732
+ for (const line of r.text.split("\n")) log6(" " + line);
6369
6733
  }
6370
6734
  async function cmdLogout() {
6371
6735
  await deleteConfig();
6372
- log5(kleur11.green(M11().logoutDone));
6373
- log5(kleur11.dim(M11().logoutRevoke));
6736
+ log6(kleur12.green(M12().logoutDone));
6737
+ log6(kleur12.dim(M12().logoutRevoke));
6374
6738
  }
6375
6739
  async function cmdMcp(args) {
6376
6740
  const target = args[0] ?? "help";
6377
6741
  const cfg = await getEffectiveConfig();
6378
6742
  if (!cfg) {
6379
- log5(kleur11.yellow(M11().notConnected));
6743
+ log6(kleur12.yellow(M12().notConnected));
6380
6744
  process.exit(1);
6381
6745
  }
6382
6746
  if (target === "codex") {
6383
6747
  if (args.includes("--write")) {
6384
6748
  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);
6749
+ log6(kleur12.green(M12().codexWritten));
6750
+ log6(kleur12.dim(` ${configPath}`));
6751
+ log6(kleur12.dim(M12().codexWriteWarn));
6752
+ log6("");
6753
+ log6(M12().codexVerify);
6390
6754
  return;
6391
6755
  }
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]
6756
+ log6(kleur12.bold(M12().codexTitle));
6757
+ log6("");
6758
+ log6(M12().codexAuto);
6759
+ log6(kleur12.cyan(" mimi-seed mcp codex --write"));
6760
+ log6("");
6761
+ log6(M12().codexManual);
6762
+ log6(`[mcp_servers.mimi-seed-remote]
6399
6763
  url = "${cfg.endpoint}"
6400
6764
  bearer_token_env_var = "MIMI_SEED_TOKEN"
6401
6765
  enabled = true`);
6402
6766
  return;
6403
6767
  }
6404
6768
  if (target === "claude") {
6405
- log5(kleur11.bold(M11().claudeTitle));
6406
- log5(kleur11.cyan(` ${claudeMcpAddCommand(cfg)}`));
6407
- log5(kleur11.dim(M11().claudeWarn));
6769
+ log6(kleur12.bold(M12().claudeTitle));
6770
+ log6(kleur12.cyan(` ${claudeMcpAddCommand(cfg)}`));
6771
+ log6(kleur12.dim(M12().claudeWarn));
6408
6772
  return;
6409
6773
  }
6410
6774
  printMcpSetup(cfg);
@@ -6413,7 +6777,7 @@ async function main() {
6413
6777
  const cmd = process.argv[2];
6414
6778
  const restArgs = process.argv.slice(3);
6415
6779
  if (cmd === "--version" || cmd === "-v" || cmd === "version") {
6416
- log5(version);
6780
+ log6(version);
6417
6781
  return;
6418
6782
  }
6419
6783
  if (cmd && cmd !== "auth" && (restArgs.includes("--help") || restArgs.includes("-h"))) {
@@ -6430,6 +6794,9 @@ async function main() {
6430
6794
  case "lang":
6431
6795
  await cmdLang(restArgs);
6432
6796
  break;
6797
+ case "credentials":
6798
+ await cmdCredentials(restArgs);
6799
+ break;
6433
6800
  case "status":
6434
6801
  await cmdStatus();
6435
6802
  break;
@@ -6481,13 +6848,13 @@ async function main() {
6481
6848
  printHelp();
6482
6849
  break;
6483
6850
  default:
6484
- log5(kleur11.red(t().common.unknownCommand(cmd)));
6851
+ log6(kleur12.red(t().common.unknownCommand(cmd)));
6485
6852
  printHelp();
6486
6853
  process.exit(1);
6487
6854
  }
6488
6855
  } catch (e) {
6489
- log5(kleur11.red(t().common.error(e.message)));
6490
- if (process.env.DEBUG) log5(e.stack ?? "");
6856
+ log6(kleur12.red(t().common.error(e.message)));
6857
+ if (process.env.DEBUG) log6(e.stack ?? "");
6491
6858
  process.exit(1);
6492
6859
  }
6493
6860
  }