mimi-seed 0.2.4 → 0.2.6

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.
Files changed (3) hide show
  1. package/LICENSE +75 -0
  2. package/dist/index.js +209 -68
  3. package/package.json +4 -2
package/LICENSE ADDED
@@ -0,0 +1,75 @@
1
+ # PolyForm Noncommercial License 1.0.0
2
+
3
+ <https://polyformproject.org/licenses/noncommercial/1.0.0>
4
+
5
+ Required Notice: Copyright 2026 Pryzm GG (https://mimi-seed.pryzm.gg)
6
+
7
+ ## Acceptance
8
+
9
+ In order to get any license under these terms, you must agree to them as both strict obligations and conditions to all your licenses.
10
+
11
+ ## Copyright License
12
+
13
+ The licensor grants you a copyright license for the software to do everything you might do with the software that would otherwise infringe the licensor's copyright in it for any permitted purpose. However, you may only distribute the software according to [Distribution License](#distribution-license) and make changes or new works based on the software according to [Changes and New Works License](#changes-and-new-works-license).
14
+
15
+ ## Distribution License
16
+
17
+ The licensor grants you an additional copyright license to distribute copies of the software. Your license to distribute covers distributing the software with changes and new works permitted by [Changes and New Works License](#changes-and-new-works-license).
18
+
19
+ ## Notices
20
+
21
+ You must ensure that anyone who gets a copy of any part of the software from you also gets a copy of these terms or the URL for them above, as well as copies of any plain-text lines beginning with `Required Notice:` that the licensor provided with the software. For example:
22
+
23
+ > Required Notice: Copyright Yoyodyne, Inc. (http://example.com)
24
+
25
+ ## Changes and New Works License
26
+
27
+ The licensor grants you an additional copyright license to make changes and new works based on the software for any permitted purpose.
28
+
29
+ ## Patent License
30
+
31
+ The licensor grants you a patent license for the software that covers patent claims the licensor can license, or becomes able to license, that you would infringe by using the software.
32
+
33
+ ## Noncommercial Purposes
34
+
35
+ Any noncommercial purpose is a permitted purpose.
36
+
37
+ ## Personal Uses
38
+
39
+ Personal use for research, experiment, and testing for the benefit of public knowledge, personal study, private entertainment, hobby projects, amateur pursuits, or religious observance, without any anticipated commercial application, is use for a permitted purpose.
40
+
41
+ ## Noncommercial Organizations
42
+
43
+ Use by any charitable organization, educational institution, public research organization, public safety or health organization, environmental protection organization, or government institution is use for a permitted purpose regardless of the source of funding or obligations resulting from the funding.
44
+
45
+ ## Fair Use
46
+
47
+ You may have "fair use" rights for the software under the law. These terms do not limit them.
48
+
49
+ ## No Other Rights
50
+
51
+ These terms do not allow you to sublicense or transfer any of your licenses to anyone else, or prevent the licensor from granting licenses to anyone else. These terms do not imply any other licenses.
52
+
53
+ ## Patent Defense
54
+
55
+ If you make any written claim that the software infringes or contributes to infringement of any patent, your patent license for the software granted under these terms ends immediately. If your company makes such a claim, your patent license ends immediately for work on behalf of your company.
56
+
57
+ ## Violations
58
+
59
+ The first time you are notified in writing that you have violated any of these terms, or done anything with the software not covered by your licenses, your licenses can nonetheless continue if you come into full compliance with these terms, and take practical steps to correct past violations, within 32 days of receiving notice. Otherwise, all your licenses end immediately.
60
+
61
+ ## No Liability
62
+
63
+ ***As far as the law allows, the software comes as is, without any warranty or condition, and the licensor will not be liable to you for any damages arising out of these terms or the use or nature of the software, under any kind of legal claim.***
64
+
65
+ ## Definitions
66
+
67
+ The **licensor** is the individual or entity offering these terms, and the **software** is the software the licensor makes available under these terms.
68
+
69
+ **You** refers to the individual or entity agreeing to these terms.
70
+
71
+ **Your company** is any legal entity, sole proprietorship, or other kind of organization that you work for, plus all organizations that have control over, are under the control of, or are under common control with that organization. **Control** means ownership of substantially all the assets of an entity, or the power to direct its management and policies by vote, contract, or otherwise. Control can be direct or indirect.
72
+
73
+ **Your licenses** are all the licenses granted to you for the software under these terms.
74
+
75
+ **Use** means anything you do with the software requiring one of your licenses.
package/dist/index.js CHANGED
@@ -4,8 +4,10 @@ import {
4
4
  } from "./chunk-Q5YGYAFK.js";
5
5
 
6
6
  // src/index.ts
7
- import os2 from "os";
8
- import kleur7 from "kleur";
7
+ import os3 from "os";
8
+ import fs4 from "fs";
9
+ import path4 from "path";
10
+ import kleur8 from "kleur";
9
11
  import open from "open";
10
12
 
11
13
  // src/detect.ts
@@ -979,7 +981,7 @@ async function promptJenkinsSetup() {
979
981
  const rl = readline.createInterface({ input: process.stdin, output: process.stdout });
980
982
  const ask = (q) => new Promise((resolve) => rl.question(q, (a) => resolve(a.trim())));
981
983
  log2(kleur6.bold("Jenkins \uC124\uC815"));
982
- const url = await ask(" Jenkins URL (\uC608: http://192.168.30.16:8080): ");
984
+ const url = await ask(" Jenkins URL (\uC608: http://your-jenkins.example.com:8080): ");
983
985
  const user = await ask(" Jenkins \uC0AC\uC6A9\uC790\uBA85 (\uC608: admin): ");
984
986
  const token = await ask(" Jenkins API Token: ");
985
987
  const jobAndroid = await ask(" Android Job \uC774\uB984 (\uC608: my-app-android): ");
@@ -1094,62 +1096,160 @@ async function cmdDeploy(argv) {
1094
1096
  log2(kleur6.dim(" https://play.google.com/console/developers"));
1095
1097
  }
1096
1098
 
1099
+ // src/mcp-restart.ts
1100
+ import { execSync as execSync2 } from "child_process";
1101
+ import fs3 from "fs";
1102
+ import os2 from "os";
1103
+ import path3 from "path";
1104
+ import kleur7 from "kleur";
1105
+ function log3(msg) {
1106
+ process.stdout.write(msg + "\n");
1107
+ }
1108
+ function readClaudeJson() {
1109
+ const p = path3.join(os2.homedir(), ".claude.json");
1110
+ try {
1111
+ return JSON.parse(fs3.readFileSync(p, "utf8"));
1112
+ } catch {
1113
+ return {};
1114
+ }
1115
+ }
1116
+ function findProcessMarker(cfg) {
1117
+ const args = cfg.args;
1118
+ if (!args) return null;
1119
+ const fileArg = args.find((a) => a.endsWith(".ts") || a.endsWith(".js"));
1120
+ if (fileArg) return fileArg;
1121
+ const pkgArg = args.find((a) => (a.includes("@") || a.includes("-")) && !a.startsWith("-") && a !== "-y");
1122
+ if (pkgArg) return pkgArg;
1123
+ const meaningful = args.filter((a) => !a.startsWith("-") && a !== "/c" && a !== "npx" && a !== "cmd");
1124
+ return meaningful.at(-1) ?? null;
1125
+ }
1126
+ function killByMarker(marker) {
1127
+ const isWin = os2.platform() === "win32";
1128
+ if (isWin) {
1129
+ const escaped = marker.replace(/\\/g, "\\\\").replace(/'/g, "\\'");
1130
+ let pids = [];
1131
+ try {
1132
+ const out = execSync2(
1133
+ `powershell -NoProfile -Command "Get-WmiObject Win32_Process | Where-Object { $_.CommandLine -like '*${escaped}*' } | Select-Object -ExpandProperty ProcessId"`,
1134
+ { encoding: "utf8", stdio: ["pipe", "pipe", "pipe"] }
1135
+ ).trim();
1136
+ pids = out.split(/\r?\n/).map((s) => s.trim()).filter(Boolean);
1137
+ } catch {
1138
+ return { killed: 0 };
1139
+ }
1140
+ let killed = 0;
1141
+ for (const pid of pids) {
1142
+ try {
1143
+ execSync2(`taskkill /F /PID ${pid}`, { stdio: "pipe" });
1144
+ log3(kleur7.dim(` PID ${pid} \uC885\uB8CC`));
1145
+ killed++;
1146
+ } catch {
1147
+ }
1148
+ }
1149
+ return { killed };
1150
+ } else {
1151
+ try {
1152
+ execSync2(`pkill -f "${marker}"`, { stdio: "pipe" });
1153
+ return { killed: 1 };
1154
+ } catch {
1155
+ return { killed: 0 };
1156
+ }
1157
+ }
1158
+ }
1159
+ async function cmdRestart(args) {
1160
+ const serverName = args[0] ?? "mimi-seed";
1161
+ log3(kleur7.bold(`MCP \uC11C\uBC84 \uC7AC\uC2DC\uC791: ${serverName}`));
1162
+ log3("");
1163
+ const d = readClaudeJson();
1164
+ const servers = d.mcpServers;
1165
+ const cfg = servers?.[serverName];
1166
+ if (!cfg) {
1167
+ const available = servers ? Object.keys(servers).join(", ") : "(\uC5C6\uC74C)";
1168
+ log3(kleur7.red(`'${serverName}' \uC11C\uBC84\uB97C ~/.claude/.claude.json\uC5D0\uC11C \uCC3E\uC9C0 \uBABB\uD588\uC2B5\uB2C8\uB2E4.`));
1169
+ log3(kleur7.dim(` \uB4F1\uB85D\uB41C \uC11C\uBC84: ${available}`));
1170
+ process.exit(1);
1171
+ }
1172
+ if (cfg.type === "http" || cfg.type === "sse") {
1173
+ log3(kleur7.yellow(`'${serverName}'\uB294 HTTP/SSE \uC11C\uBC84\uC785\uB2C8\uB2E4. \uD504\uB85C\uC138\uC2A4 \uC7AC\uC2DC\uC791\uC774 \uD544\uC694\uD558\uC9C0 \uC54A\uC2B5\uB2C8\uB2E4.`));
1174
+ log3(kleur7.dim(" Claude Code\uC5D0\uC11C /mcp \uB97C \uC2E4\uD589\uD574 \uC5F0\uACB0 \uC0C1\uD0DC\uB97C \uD655\uC778\uD558\uC138\uC694."));
1175
+ return;
1176
+ }
1177
+ const marker = findProcessMarker(cfg);
1178
+ if (!marker) {
1179
+ log3(kleur7.yellow("\uD504\uB85C\uC138\uC2A4 \uC2DD\uBCC4\uC790(\uC2A4\uD06C\uB9BD\uD2B8 \uACBD\uB85C)\uB97C \uCC3E\uC9C0 \uBABB\uD588\uC2B5\uB2C8\uB2E4."));
1180
+ log3(kleur7.dim(` \uC124\uC815: ${JSON.stringify(cfg)}`));
1181
+ process.exit(1);
1182
+ }
1183
+ log3(kleur7.dim(` \uC2DD\uBCC4\uC790: ${marker}`));
1184
+ const { killed } = killByMarker(marker);
1185
+ if (killed === 0) {
1186
+ log3(kleur7.yellow("\u26A0 \uC2E4\uD589 \uC911\uC778 \uD504\uB85C\uC138\uC2A4\uB97C \uCC3E\uC9C0 \uBABB\uD588\uC2B5\uB2C8\uB2E4."));
1187
+ log3(kleur7.dim(" \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."));
1188
+ } else {
1189
+ log3("");
1190
+ log3(kleur7.green(`\u2713 ${serverName} \uC885\uB8CC\uB428 (${killed}\uAC1C \uD504\uB85C\uC138\uC2A4)`));
1191
+ log3(kleur7.dim(" Claude Code\uAC00 \uB2E4\uC74C \uB3C4\uAD6C \uD638\uCD9C \uC2DC \uC790\uB3D9\uC73C\uB85C \uC7AC\uC5F0\uACB0\uD569\uB2C8\uB2E4."));
1192
+ }
1193
+ log3("");
1194
+ log3(kleur7.cyan(" \uC5F0\uACB0 \uD655\uC778: Claude Code\uC5D0\uC11C /mcp \uC2E4\uD589"));
1195
+ }
1196
+
1097
1197
  // src/index.ts
1098
1198
  var DEFAULT_WEB_BASE = process.env.MIMI_SEED_WEB_BASE ?? "https://mimi-seed.pryzm.gg";
1099
1199
  var DEFAULT_MCP_ENDPOINT = `${DEFAULT_WEB_BASE}/api/mcp`;
1100
- function log3(msg) {
1200
+ function log4(msg) {
1101
1201
  process.stdout.write(msg + "\n");
1102
1202
  }
1103
1203
  async function cmdInit() {
1104
1204
  const cwd = process.cwd();
1105
- log3(kleur7.bold("Mimi Seed CLI \u2014 init"));
1106
- log3(kleur7.dim(cwd));
1107
- log3("");
1205
+ log4(kleur8.bold("Mimi Seed CLI \u2014 init"));
1206
+ log4(kleur8.dim(cwd));
1207
+ log4("");
1108
1208
  if (!await hasAnyProjectSignal(cwd)) {
1109
- log3(kleur7.yellow("\u26A0 package.json / app.json / android / ios \uB97C \uCC3E\uC9C0 \uBABB\uD588\uC2B5\uB2C8\uB2E4. \uADF8\uB798\uB3C4 \uC9C4\uD589\uD569\uB2C8\uB2E4."));
1209
+ log4(kleur8.yellow("\u26A0 package.json / app.json / android / ios \uB97C \uCC3E\uC9C0 \uBABB\uD588\uC2B5\uB2C8\uB2E4. \uADF8\uB798\uB3C4 \uC9C4\uD589\uD569\uB2C8\uB2E4."));
1110
1210
  }
1111
- log3("\u{1F50D} \uC571 \uAC10\uC9C0 \uC911...");
1211
+ log4("\u{1F50D} \uC571 \uAC10\uC9C0 \uC911...");
1112
1212
  const hints = await detectHints(cwd);
1113
1213
  if (hints.length === 0) {
1114
- log3(kleur7.yellow("\uAC10\uC9C0\uB41C \uC571 \uC5C6\uC74C. \uC6F9\uC5D0\uC11C \uC218\uB3D9 \uB4F1\uB85D \uAC00\uB2A5."));
1214
+ log4(kleur8.yellow("\uAC10\uC9C0\uB41C \uC571 \uC5C6\uC74C. \uC6F9\uC5D0\uC11C \uC218\uB3D9 \uB4F1\uB85D \uAC00\uB2A5."));
1115
1215
  } else {
1116
1216
  for (const h of hints) {
1117
1217
  const tag = [h.packageName && `android:${h.packageName}`, h.bundleId && `ios:${h.bundleId}`].filter(Boolean).join(" ");
1118
- log3(` \u2022 ${h.name ?? "(\uC774\uB984 \uBBF8\uC0C1)"} ${kleur7.dim(tag)}`);
1218
+ log4(` \u2022 ${h.name ?? "(\uC774\uB984 \uBBF8\uC0C1)"} ${kleur8.dim(tag)}`);
1119
1219
  }
1120
1220
  }
1121
- log3("");
1221
+ log4("");
1122
1222
  if (process.env.MIMI_SEED_TOKEN) {
1123
1223
  const cfg2 = await getEffectiveConfig();
1124
1224
  if (cfg2 && hints.length > 0) {
1125
- log3(kleur7.dim("CI \uBAA8\uB4DC: MIMI_SEED_TOKEN \uC0AC\uC6A9"));
1225
+ log4(kleur8.dim("CI \uBAA8\uB4DC: MIMI_SEED_TOKEN \uC0AC\uC6A9"));
1126
1226
  const payload = hints.map((h) => ({ name: h.name, packageName: h.packageName, bundleId: h.bundleId }));
1127
1227
  const result = await mcpCall(cfg2.endpoint, cfg2.token, "sync_apps", { hints: payload });
1128
1228
  if (result.isError) {
1129
- log3(kleur7.red("\uB4F1\uB85D \uC2E4\uD328: " + result.text));
1229
+ log4(kleur8.red("\uB4F1\uB85D \uC2E4\uD328: " + result.text));
1130
1230
  } else {
1131
- for (const line of result.text.split("\n")) log3(" " + line);
1231
+ for (const line of result.text.split("\n")) log4(" " + line);
1132
1232
  }
1133
1233
  }
1134
- log3(kleur7.bold("\u2713 \uC644\uB8CC (CI \uBAA8\uB4DC)"));
1234
+ log4(kleur8.bold("\u2713 \uC644\uB8CC (CI \uBAA8\uB4DC)"));
1135
1235
  return;
1136
1236
  }
1137
- log3("\u{1F510} \uBE0C\uB77C\uC6B0\uC800\uC5D0\uC11C \uB85C\uADF8\uC778 \uB300\uAE30...");
1138
- const hostName = os2.hostname().slice(0, 32);
1237
+ log4("\u{1F510} \uBE0C\uB77C\uC6B0\uC800\uC5D0\uC11C \uB85C\uADF8\uC778 \uB300\uAE30...");
1238
+ const hostName = os3.hostname().slice(0, 32);
1139
1239
  const name = `cli-${hostName}`;
1140
1240
  const { port, promise } = await awaitHandshake(5 * 60 * 1e3);
1141
1241
  const callback = `http://127.0.0.1:${port}/cb`;
1142
1242
  const connectUrl = `${DEFAULT_WEB_BASE}/cli/connect?callback=${encodeURIComponent(callback)}&name=${encodeURIComponent(name)}`;
1143
- log3(kleur7.dim(` ${connectUrl}`));
1243
+ log4(kleur8.dim(` ${connectUrl}`));
1144
1244
  await open(connectUrl);
1145
1245
  let handshake;
1146
1246
  try {
1147
1247
  handshake = await promise;
1148
1248
  } catch (e) {
1149
- log3(kleur7.red("\uC5F0\uACB0 \uC2E4\uD328: " + e.message));
1249
+ log4(kleur8.red("\uC5F0\uACB0 \uC2E4\uD328: " + e.message));
1150
1250
  process.exit(1);
1151
1251
  }
1152
- log3(kleur7.green("\u2713 \uD1A0\uD070 \uC218\uC2E0"));
1252
+ log4(kleur8.green("\u2713 \uD1A0\uD070 \uC218\uC2E0"));
1153
1253
  const cfg = {
1154
1254
  token: handshake.token,
1155
1255
  prefix: handshake.prefix,
@@ -1158,30 +1258,67 @@ async function cmdInit() {
1158
1258
  createdAt: (/* @__PURE__ */ new Date()).toISOString()
1159
1259
  };
1160
1260
  await writeConfig(cfg);
1161
- log3(kleur7.dim(` \uC800\uC7A5\uB428: ${CONFIG_LOCATION}`));
1162
- log3("");
1261
+ log4(kleur8.dim(` \uC800\uC7A5\uB428: ${CONFIG_LOCATION}`));
1262
+ log4("");
1163
1263
  if (hints.length > 0) {
1164
- log3("\u{1F504} \uC571 \uB4F1\uB85D \uC911...");
1264
+ log4("\u{1F504} \uC571 \uB4F1\uB85D \uC911...");
1165
1265
  const payload = hints.map((h) => ({ name: h.name, packageName: h.packageName, bundleId: h.bundleId }));
1166
1266
  const result = await mcpCall(cfg.endpoint, cfg.token, "sync_apps", { hints: payload });
1167
1267
  if (result.isError) {
1168
- log3(kleur7.red("\uB4F1\uB85D \uC2E4\uD328: " + result.text));
1268
+ log4(kleur8.red("\uB4F1\uB85D \uC2E4\uD328: " + result.text));
1169
1269
  } else {
1170
- for (const line of result.text.split("\n")) log3(" " + line);
1270
+ for (const line of result.text.split("\n")) log4(" " + line);
1171
1271
  }
1172
- log3("");
1173
- }
1174
- log3(kleur7.bold("\u2713 \uC900\uBE44 \uC644\uB8CC."));
1175
- log3("");
1176
- log3("Claude Code\uC5D0\uC11C \uC774\uB807\uAC8C \uBB3C\uC5B4\uBCF4\uC138\uC694:");
1177
- log3(kleur7.cyan(' "\uB0B4 \uC571 \uCD9C\uC2DC \uC900\uBE44\uB410\uC5B4?"'));
1178
- log3(kleur7.cyan(' "\uB9B4\uB9AC\uC988 \uB178\uD2B8 \uC368\uC918"'));
1179
- log3(kleur7.cyan(' "\uB4F1\uB85D\uB41C \uC571 \uBAA9\uB85D \uBCF4\uC5EC\uC918"'));
1180
- log3("");
1181
- log3(`\uB300\uC2DC\uBCF4\uB4DC: ${kleur7.underline(DEFAULT_WEB_BASE + "/apps")}`);
1182
- log3("");
1183
- log3(
1184
- kleur7.dim(
1272
+ log4("");
1273
+ }
1274
+ const claudeDir = path4.join(cwd, ".claude");
1275
+ const agentMdPath = path4.join(claudeDir, "mimi-seed.md");
1276
+ if (!fs4.existsSync(agentMdPath)) {
1277
+ fs4.mkdirSync(claudeDir, { recursive: true });
1278
+ const appLines = hints.flatMap((h) => {
1279
+ const parts = [
1280
+ h.name && ` name: ${h.name}`,
1281
+ h.packageName && ` packageName: ${h.packageName}`,
1282
+ h.bundleId && ` bundleId: ${h.bundleId}`
1283
+ ].filter(Boolean);
1284
+ return parts;
1285
+ });
1286
+ const agentMd = [
1287
+ "# Mimi Seed Agent",
1288
+ "",
1289
+ "Mimi Seed MCP\uAC00 \uC774 \uD504\uB85C\uC81D\uD2B8\uC5D0 \uC5F0\uACB0\uB418\uC5B4 \uC788\uC2B5\uB2C8\uB2E4.",
1290
+ "Google Play \xB7 App Store \xB7 Firebase \xB7 AdMob\uC744 \uB3C4\uAD6C\uB85C \uC9C1\uC811 \uC81C\uC5B4\uD569\uB2C8\uB2E4.",
1291
+ "",
1292
+ "## \uCD9C\uC2DC \uC694\uCCAD \uCC98\uB9AC \uC21C\uC11C",
1293
+ "",
1294
+ "1. \uD56D\uC0C1 `playstore_check_submission_risks` / `appstore_check_submission_risks` \uB85C \uBE14\uB85C\uCEE4 \uBA3C\uC800 \uD655\uC778",
1295
+ "2. \uB9B4\uB9AC\uC988 \uB178\uD2B8: `generate_release_notes_from_commits` \u2192 \uC0AC\uC6A9\uC790 \uD655\uC778 \uD6C4 \uC801\uC6A9",
1296
+ "3. \uC2A4\uD1A0\uC5B4 **\uC4F0\uAE30** \uC791\uC5C5(submit, apply, reply)\uC740 \uBC18\uB4DC\uC2DC \uC0AC\uC6A9\uC790 \uBA85\uC2DC \uB3D9\uC758 \uD6C4 \uC2E4\uD589",
1297
+ "4. \uC644\uB8CC \uD6C4 \uACB0\uACFC \uC694\uC57D \uC81C\uACF5",
1298
+ "",
1299
+ "## \uC571 \uC815\uBCF4",
1300
+ ...appLines.length > 0 ? appLines : [" (mimi-seed status \uB85C \uD655\uC778)"],
1301
+ "",
1302
+ "## \uC2AC\uB798\uC2DC \uCEE4\uB9E8\uB4DC",
1303
+ "",
1304
+ "- `/mimi-seed:deploy` \u2014 \uC804\uCCB4 \uCD9C\uC2DC \uD30C\uC774\uD504\uB77C\uC778",
1305
+ "- `/mimi-seed:health` \u2014 \uC5F0\uACB0 \uC0C1\uD0DC \uBE60\uB978 \uD655\uC778",
1306
+ "- `/mimi-seed:review-inbox` \u2014 \uBBF8\uB2F5\uBCC0 \uB9AC\uBDF0 \uB2F5\uBCC0"
1307
+ ].join("\n");
1308
+ fs4.writeFileSync(agentMdPath, agentMd, { mode: 420 });
1309
+ log4(kleur8.dim(` \uC5D0\uC774\uC804\uD2B8 \uC124\uC815: .claude/mimi-seed.md`));
1310
+ }
1311
+ log4(kleur8.bold("\u2713 \uC900\uBE44 \uC644\uB8CC."));
1312
+ log4("");
1313
+ log4("Claude Code\uC5D0\uC11C \uC774\uB807\uAC8C \uBB3C\uC5B4\uBCF4\uC138\uC694:");
1314
+ log4(kleur8.cyan(' "\uB0B4 \uC571 \uCD9C\uC2DC \uC900\uBE44\uB410\uC5B4?"'));
1315
+ log4(kleur8.cyan(' "\uB9B4\uB9AC\uC988 \uB178\uD2B8 \uC368\uC918"'));
1316
+ log4(kleur8.cyan(' "\uB4F1\uB85D\uB41C \uC571 \uBAA9\uB85D \uBCF4\uC5EC\uC918"'));
1317
+ log4("");
1318
+ log4(`\uB300\uC2DC\uBCF4\uB4DC: ${kleur8.underline(DEFAULT_WEB_BASE + "/apps")}`);
1319
+ log4("");
1320
+ log4(
1321
+ kleur8.dim(
1185
1322
  `Claude Code MCP \uB4F1\uB85D:
1186
1323
  claude mcp add --transport http mimi-seed ${DEFAULT_MCP_ENDPOINT} \\
1187
1324
  --header "Authorization: Bearer ${cfg.prefix}..."`
@@ -1191,41 +1328,42 @@ async function cmdInit() {
1191
1328
  async function cmdStatus() {
1192
1329
  const cfg = await getEffectiveConfig();
1193
1330
  if (!cfg) {
1194
- log3(kleur7.yellow("\uC5F0\uACB0\uB41C Mimi Seed \uACC4\uC815\uC774 \uC5C6\uC2B5\uB2C8\uB2E4. `mimi-seed init` \uC2E4\uD589."));
1331
+ log4(kleur8.yellow("\uC5F0\uACB0\uB41C Mimi Seed \uACC4\uC815\uC774 \uC5C6\uC2B5\uB2C8\uB2E4. `mimi-seed init` \uC2E4\uD589."));
1195
1332
  process.exit(1);
1196
1333
  }
1197
- log3(kleur7.bold("Mimi Seed \uC5F0\uACB0 \uC0C1\uD0DC"));
1198
- log3(` \uD1A0\uD070: ${cfg.prefix}\u2026 (${cfg.createdAt.slice(0, 10)})`);
1199
- log3(` \uC5D4\uB4DC\uD3EC\uC778\uD2B8: ${cfg.endpoint}`);
1200
- log3("");
1201
- log3("\u{1F4CB} \uC571 \uBAA9\uB85D:");
1334
+ log4(kleur8.bold("Mimi Seed \uC5F0\uACB0 \uC0C1\uD0DC"));
1335
+ log4(` \uD1A0\uD070: ${cfg.prefix}\u2026 (${cfg.createdAt.slice(0, 10)})`);
1336
+ log4(` \uC5D4\uB4DC\uD3EC\uC778\uD2B8: ${cfg.endpoint}`);
1337
+ log4("");
1338
+ log4("\u{1F4CB} \uC571 \uBAA9\uB85D:");
1202
1339
  const r = await mcpCall(cfg.endpoint, cfg.token, "list_apps", {});
1203
1340
  if (r.isError) {
1204
- log3(kleur7.red("\uC870\uD68C \uC2E4\uD328: " + r.text));
1341
+ log4(kleur8.red("\uC870\uD68C \uC2E4\uD328: " + r.text));
1205
1342
  process.exit(1);
1206
1343
  }
1207
- for (const line of r.text.split("\n")) log3(" " + line);
1344
+ for (const line of r.text.split("\n")) log4(" " + line);
1208
1345
  }
1209
1346
  async function cmdLogout() {
1210
1347
  await deleteConfig();
1211
- log3(kleur7.green("\u2713 \uB85C\uCEEC \uC124\uC815 \uC0AD\uC81C \uC644\uB8CC."));
1212
- log3(kleur7.dim("\uC6F9\uC5D0\uC11C \uD1A0\uD070 \uD574\uC9C0: /workspace/api-tokens"));
1348
+ log4(kleur8.green("\u2713 \uB85C\uCEEC \uC124\uC815 \uC0AD\uC81C \uC644\uB8CC."));
1349
+ log4(kleur8.dim("\uC6F9\uC5D0\uC11C \uD1A0\uD070 \uD574\uC9C0: /workspace/api-tokens"));
1213
1350
  }
1214
1351
  function printHelp() {
1215
- log3(`${kleur7.bold("mimi-seed")} \u2014 Claude Code\uC5D0\uC11C \uC571 \uCD9C\uC2DC \uC6B4\uC601
1352
+ log4(`${kleur8.bold("mimi-seed")} \u2014 Claude Code\uC5D0\uC11C \uC571 \uCD9C\uC2DC \uC6B4\uC601
1216
1353
 
1217
- ${kleur7.bold("\uBA85\uB839\uC5B4:")}
1218
- ${kleur7.cyan("mimi-seed init")} \uD604\uC7AC \uD504\uB85C\uC81D\uD2B8\uB97C Mimi Seed\uC5D0 \uC5F0\uACB0
1219
- ${kleur7.cyan("mimi-seed status")} \uC5F0\uACB0 \uC0C1\uD0DC + \uB4F1\uB85D \uC571 \uBAA9\uB85D
1220
- ${kleur7.cyan("mimi-seed auth")} Google OAuth \uC778\uC99D (Firebase/AdMob/Play). 'mimi-seed auth --help'
1221
- ${kleur7.cyan("mimi-seed doctor")} \uD658\uACBD \uC9C4\uB2E8 (\uD1A0\uD070\xB7Git\xB7\uD504\uB85C\uC81D\uD2B8\xB7CI \uCCB4\uD06C)
1222
- ${kleur7.cyan("mimi-seed check")} \uCD9C\uC2DC \uC804 Readiness \uC810\uAC80
1223
- ${kleur7.cyan("mimi-seed notes")} \uB9B4\uB9AC\uC988 \uB178\uD2B8 \uC0DD\uC131 (git log \u2192 AI \u2192 \uB9C8\uCF13 \uC801\uC6A9)
1224
- ${kleur7.cyan("mimi-seed review")} \uB9AC\uBDF0 \uB2F5\uBCC0 AI \uCD08\uC548 \uC0DD\uC131 \uBC0F Play Store \uAC8C\uC2DC
1225
- ${kleur7.cyan("mimi-seed deploy")} \uC571 \uC790\uB3D9 \uBC30\uD3EC (Jenkins \u2192 Play Store/App Store)
1226
- ${kleur7.cyan("mimi-seed logout")} \uB85C\uCEEC \uC124\uC815 \uC0AD\uC81C
1354
+ ${kleur8.bold("\uBA85\uB839\uC5B4:")}
1355
+ ${kleur8.cyan("mimi-seed init")} \uD604\uC7AC \uD504\uB85C\uC81D\uD2B8\uB97C Mimi Seed\uC5D0 \uC5F0\uACB0
1356
+ ${kleur8.cyan("mimi-seed status")} \uC5F0\uACB0 \uC0C1\uD0DC + \uB4F1\uB85D \uC571 \uBAA9\uB85D
1357
+ ${kleur8.cyan("mimi-seed auth")} Google OAuth \uC778\uC99D (Firebase/AdMob/Play). 'mimi-seed auth --help'
1358
+ ${kleur8.cyan("mimi-seed doctor")} \uD658\uACBD \uC9C4\uB2E8 (\uD1A0\uD070\xB7Git\xB7\uD504\uB85C\uC81D\uD2B8\xB7CI \uCCB4\uD06C)
1359
+ ${kleur8.cyan("mimi-seed check")} \uCD9C\uC2DC \uC804 Readiness \uC810\uAC80
1360
+ ${kleur8.cyan("mimi-seed notes")} \uB9B4\uB9AC\uC988 \uB178\uD2B8 \uC0DD\uC131 (git log \u2192 AI \u2192 \uB9C8\uCF13 \uC801\uC6A9)
1361
+ ${kleur8.cyan("mimi-seed review")} \uB9AC\uBDF0 \uB2F5\uBCC0 AI \uCD08\uC548 \uC0DD\uC131 \uBC0F Play Store \uAC8C\uC2DC
1362
+ ${kleur8.cyan("mimi-seed deploy")} \uC571 \uC790\uB3D9 \uBC30\uD3EC (Jenkins \u2192 Play Store/App Store)
1363
+ ${kleur8.cyan("mimi-seed restart")} MCP \uC11C\uBC84 \uD504\uB85C\uC138\uC2A4 \uC7AC\uC2DC\uC791 (\uAE30\uBCF8: mimi-seed)
1364
+ ${kleur8.cyan("mimi-seed logout")} \uB85C\uCEEC \uC124\uC815 \uC0AD\uC81C
1227
1365
 
1228
- ${kleur7.bold("mimi-seed notes \uC635\uC158:")}
1366
+ ${kleur8.bold("mimi-seed notes \uC635\uC158:")}
1229
1367
  --from <ref> \uC2DC\uC791 \uCEE4\uBC0B/\uD0DC\uADF8 (\uAE30\uBCF8: \uCD5C\uC2E0 \uD0DC\uADF8)
1230
1368
  --to <ref> \uB05D \uCEE4\uBC0B (\uAE30\uBCF8: HEAD)
1231
1369
  --locale ko,en-US \uB300\uC0C1 \uB85C\uCF00\uC77C (\uC27C\uD45C \uAD6C\uBD84)
@@ -1233,11 +1371,11 @@ ${kleur7.bold("mimi-seed notes \uC635\uC158:")}
1233
1371
  --no-interactive CI \uBAA8\uB4DC (\uD504\uB86C\uD504\uD2B8 \uC5C6\uC74C)
1234
1372
  --limit <n> \uCD5C\uB300 \uCEE4\uBC0B \uC218 (\uAE30\uBCF8: 30)
1235
1373
 
1236
- ${kleur7.bold("mimi-seed check \uC635\uC158:")}
1374
+ ${kleur8.bold("mimi-seed check \uC635\uC158:")}
1237
1375
  --app <id> \uC571 ID \uC9C0\uC815
1238
1376
  --fail-on-blocker \uBE14\uB85C\uCEE4 \uC788\uC73C\uBA74 exit 1 (CI\uC6A9)
1239
1377
 
1240
- ${kleur7.bold("mimi-seed review \uC635\uC158:")}
1378
+ ${kleur8.bold("mimi-seed review \uC635\uC158:")}
1241
1379
  --text <\uB0B4\uC6A9> \uB9AC\uBDF0 \uC6D0\uBB38 (\uBBF8\uC785\uB825 \uC2DC \uB300\uD654\uD615 \uD504\uB86C\uD504\uD2B8)
1242
1380
  --rating <1-5> \uBCC4\uC810
1243
1381
  --tone <tone> friendly / professional / empathetic / brief (\uAE30\uBCF8: friendly)
@@ -1248,7 +1386,7 @@ ${kleur7.bold("mimi-seed review \uC635\uC158:")}
1248
1386
  --package-name <p> \uD328\uD0A4\uC9C0\uBA85 (--apply \uC2DC \uD544\uC694)
1249
1387
  --no-interactive CI \uBAA8\uB4DC
1250
1388
 
1251
- ${kleur7.bold("mimi-seed deploy \uC635\uC158:")}
1389
+ ${kleur8.bold("mimi-seed deploy \uC635\uC158:")}
1252
1390
  --platform android|ios \uBC30\uD3EC \uD50C\uB7AB\uD3FC (\uAE30\uBCF8: android)
1253
1391
  --app <id> \uC571 ID \uC9C0\uC815
1254
1392
  --version-code <n> \uBE4C\uB4DC \uBC88\uD638 \uC9C1\uC811 \uC9C0\uC815 (--skip-build \uC640 \uD568\uAED8)
@@ -1259,7 +1397,7 @@ ${kleur7.bold("mimi-seed deploy \uC635\uC158:")}
1259
1397
  --skip-build Jenkins \uBE4C\uB4DC \uAC74\uB108\uB700 (--version-code \uD544\uC218)
1260
1398
  setup-jenkins Jenkins \uC124\uC815 \uB300\uD654\uD615 \uB4F1\uB85D
1261
1399
 
1262
- ${kleur7.bold("\uD658\uACBD\uBCC0\uC218:")}
1400
+ ${kleur8.bold("\uD658\uACBD\uBCC0\uC218:")}
1263
1401
  MIMI_SEED_TOKEN PAT \uD1A0\uD070 (CI/CD \uBB34\uC778\uC99D \uBAA8\uB4DC)
1264
1402
  MIMI_SEED_WEB_BASE \uC11C\uBC84 \uC8FC\uC18C (\uAE30\uBCF8: https://mimi-seed.pryzm.gg)
1265
1403
  ANTHROPIC_API_KEY AI \uB178\uD2B8 \uC0DD\uC131 \uD65C\uC131\uD654 (\uC120\uD0DD)
@@ -1294,6 +1432,9 @@ async function main() {
1294
1432
  case "deploy":
1295
1433
  await cmdDeploy(restArgs);
1296
1434
  break;
1435
+ case "restart":
1436
+ await cmdRestart(restArgs);
1437
+ break;
1297
1438
  case "logout":
1298
1439
  await cmdLogout();
1299
1440
  break;
@@ -1303,13 +1444,13 @@ async function main() {
1303
1444
  printHelp();
1304
1445
  break;
1305
1446
  default:
1306
- log3(kleur7.red(`\uC54C \uC218 \uC5C6\uB294 \uBA85\uB839: ${cmd}`));
1447
+ log4(kleur8.red(`\uC54C \uC218 \uC5C6\uB294 \uBA85\uB839: ${cmd}`));
1307
1448
  printHelp();
1308
1449
  process.exit(1);
1309
1450
  }
1310
1451
  } catch (e) {
1311
- log3(kleur7.red(`\uC624\uB958: ${e.message}`));
1312
- if (process.env.DEBUG) log3(e.stack ?? "");
1452
+ log4(kleur8.red(`\uC624\uB958: ${e.message}`));
1453
+ if (process.env.DEBUG) log4(e.stack ?? "");
1313
1454
  process.exit(1);
1314
1455
  }
1315
1456
  }
package/package.json CHANGED
@@ -1,13 +1,15 @@
1
1
  {
2
2
  "name": "mimi-seed",
3
- "version": "0.2.4",
3
+ "version": "0.2.6",
4
4
  "description": "Mimi Seed CLI — Claude Code에서 앱 출시 운영을 관리합니다.",
5
5
  "bin": {
6
6
  "mimi-seed": "dist/index.js"
7
7
  },
8
8
  "type": "module",
9
+ "license": "PolyForm-Noncommercial-1.0.0",
9
10
  "files": [
10
- "dist"
11
+ "dist",
12
+ "LICENSE"
11
13
  ],
12
14
  "scripts": {
13
15
  "build": "tsup",