@yoonion/mimi-seed-mcp 0.24.0 → 0.25.1

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (287) hide show
  1. package/dist/admob/cli.js +34 -5
  2. package/dist/admob/errors.js +39 -14
  3. package/dist/ai/client.js +35 -14
  4. package/dist/ai/notes.js +14 -3
  5. package/dist/ai/review.js +17 -4
  6. package/dist/android/keystore-store.js +28 -8
  7. package/dist/android/keystore.d.ts +17 -2
  8. package/dist/android/keystore.js +110 -21
  9. package/dist/android/messages.d.ts +13 -11
  10. package/dist/android/messages.js +166 -72
  11. package/dist/android/playstore-sa.js +6 -3
  12. package/dist/appstore/analytics.js +46 -14
  13. package/dist/appstore/app-info-policy.js +7 -1
  14. package/dist/appstore/app-info.js +13 -3
  15. package/dist/appstore/apps.js +7 -1
  16. package/dist/appstore/asset-library-write.js +119 -37
  17. package/dist/appstore/asset-library.js +19 -5
  18. package/dist/appstore/auth.d.ts +2 -0
  19. package/dist/appstore/auth.js +31 -5
  20. package/dist/appstore/client.js +27 -6
  21. package/dist/appstore/declarations.js +22 -6
  22. package/dist/appstore/errors.d.ts +1 -1
  23. package/dist/appstore/errors.js +60 -34
  24. package/dist/appstore/http.d.ts +6 -0
  25. package/dist/appstore/http.js +22 -5
  26. package/dist/appstore/messages.js +86 -28
  27. package/dist/appstore/previews.js +22 -6
  28. package/dist/appstore/product-localization.js +10 -2
  29. package/dist/appstore/product-review.js +29 -10
  30. package/dist/appstore/products.js +20 -6
  31. package/dist/appstore/read-response.js +13 -3
  32. package/dist/appstore/release-target.js +13 -3
  33. package/dist/appstore/release.js +59 -22
  34. package/dist/appstore/review-preview.js +17 -6
  35. package/dist/appstore/review-submission.js +86 -35
  36. package/dist/appstore/sales.js +96 -44
  37. package/dist/appstore/screenshots.js +19 -5
  38. package/dist/appstore/testflight.js +41 -18
  39. package/dist/appstore/upload-parts.js +12 -3
  40. package/dist/appstore/versions.js +22 -10
  41. package/dist/auth/bigquery-auth.js +44 -15
  42. package/dist/auth/bigquery-setup-cli.js +1 -1
  43. package/dist/auth/cli.js +4 -2
  44. package/dist/auth/constants.js +13 -3
  45. package/dist/auth/drive-auth.d.ts +3 -2
  46. package/dist/auth/drive-auth.js +47 -17
  47. package/dist/auth/drive-setup-cli.js +1 -0
  48. package/dist/auth/errors.d.ts +75 -0
  49. package/dist/auth/errors.js +190 -86
  50. package/dist/auth/google-auth.d.ts +3 -1
  51. package/dist/auth/google-auth.js +39 -27
  52. package/dist/auth/playstore-auth.d.ts +1 -0
  53. package/dist/auth/playstore-auth.js +35 -15
  54. package/dist/auth/scopes.d.ts +11 -29
  55. package/dist/auth/scopes.js +38 -11
  56. package/dist/auth/youtube-channel.d.ts +8 -0
  57. package/dist/auth/youtube-channel.js +11 -3
  58. package/dist/bigquery/ids.js +19 -5
  59. package/dist/bigquery/tools.js +24 -8
  60. package/dist/billing/tools.js +22 -6
  61. package/dist/checks/appstore-submission.d.ts +1 -1
  62. package/dist/checks/appstore-submission.js +29 -8
  63. package/dist/checks/plan.js +169 -62
  64. package/dist/checks/release-status.js +10 -2
  65. package/dist/checks/risks.js +230 -63
  66. package/dist/checks/screenshots.d.ts +4 -4
  67. package/dist/checks/screenshots.js +63 -22
  68. package/dist/ci/config.js +8 -5
  69. package/dist/ci/gitlab.js +3 -1
  70. package/dist/core/atomic-write.d.ts +5 -2
  71. package/dist/core/atomic-write.js +8 -4
  72. package/dist/core/catch-scan.d.ts +17 -0
  73. package/dist/core/catch-scan.js +111 -0
  74. package/dist/core/checks/billing.d.ts +5 -0
  75. package/dist/core/checks/billing.js +36 -5
  76. package/dist/core/checks/lockfile.js +2 -0
  77. package/dist/core/checks/release-doctor/fcm.js +1 -0
  78. package/dist/core/checks/release-doctor/files.d.ts +3 -1
  79. package/dist/core/checks/release-doctor/files.js +12 -1
  80. package/dist/core/checks/release-doctor/gradle-apply.js +1 -0
  81. package/dist/core/checks/release-doctor/ios-xcode.js +22 -3
  82. package/dist/core/checks/release-doctor/target-sdk.js +1 -1
  83. package/dist/core/checks/release-doctor/util.d.ts +5 -0
  84. package/dist/core/checks/release-doctor/util.js +56 -0
  85. package/dist/core/checks/release-doctor.js +59 -16
  86. package/dist/core/credential-envelope.d.ts +25 -0
  87. package/dist/core/credential-envelope.js +66 -0
  88. package/dist/core/credential-keystore.d.ts +51 -0
  89. package/dist/core/credential-keystore.js +331 -0
  90. package/dist/core/credential-read.d.ts +33 -0
  91. package/dist/core/credential-read.js +112 -0
  92. package/dist/core/credential-store.d.ts +61 -0
  93. package/dist/core/credential-store.js +240 -0
  94. package/dist/core/http-errors.js +1 -0
  95. package/dist/core/i18n-scan.d.ts +10 -0
  96. package/dist/core/i18n-scan.js +79 -0
  97. package/dist/core/json-file.d.ts +30 -0
  98. package/dist/core/json-file.js +53 -0
  99. package/dist/core/lang.d.ts +14 -0
  100. package/dist/core/lang.js +22 -2
  101. package/dist/core/project-manifest.d.ts +24 -1
  102. package/dist/core/project-manifest.js +27 -16
  103. package/dist/drive/tools.js +86 -34
  104. package/dist/facebook/api.js +3 -1
  105. package/dist/facebook/config.js +11 -3
  106. package/dist/facebook/setup.d.ts +2 -0
  107. package/dist/facebook/setup.js +32 -9
  108. package/dist/firebase/cli.js +39 -5
  109. package/dist/firebase/tools.js +36 -10
  110. package/dist/ga4/cli.js +48 -4
  111. package/dist/ga4/tools.js +4 -2
  112. package/dist/googleads/config.js +24 -8
  113. package/dist/googleads/tools.js +3 -1
  114. package/dist/gsc/tools.js +10 -2
  115. package/dist/helpers.d.ts +4 -2
  116. package/dist/helpers.js +66 -32
  117. package/dist/i18n/manifest-en.d.ts +6 -0
  118. package/dist/i18n/manifest-en.js +53 -0
  119. package/dist/i18n/tools-en/admob.d.ts +25 -0
  120. package/dist/i18n/tools-en/admob.js +24 -0
  121. package/dist/i18n/tools-en/ai.d.ts +14 -0
  122. package/dist/i18n/tools-en/ai.js +13 -0
  123. package/dist/i18n/tools-en/android.d.ts +14 -0
  124. package/dist/i18n/tools-en/android.js +13 -0
  125. package/dist/i18n/tools-en/appstore.d.ts +240 -0
  126. package/dist/i18n/tools-en/appstore.js +239 -0
  127. package/dist/i18n/tools-en/auth.d.ts +16 -0
  128. package/dist/i18n/tools-en/auth.js +15 -0
  129. package/dist/i18n/tools-en/bigquery.d.ts +16 -0
  130. package/dist/i18n/tools-en/bigquery.js +15 -0
  131. package/dist/i18n/tools-en/billing.d.ts +17 -0
  132. package/dist/i18n/tools-en/billing.js +16 -0
  133. package/dist/i18n/tools-en/checks.d.ts +23 -0
  134. package/dist/i18n/tools-en/checks.js +22 -0
  135. package/dist/i18n/tools-en/ci.d.ts +21 -0
  136. package/dist/i18n/tools-en/ci.js +20 -0
  137. package/dist/i18n/tools-en/drive.d.ts +33 -0
  138. package/dist/i18n/tools-en/drive.js +32 -0
  139. package/dist/i18n/tools-en/facebook.d.ts +14 -0
  140. package/dist/i18n/tools-en/facebook.js +13 -0
  141. package/dist/i18n/tools-en/firebase.d.ts +42 -0
  142. package/dist/i18n/tools-en/firebase.js +41 -0
  143. package/dist/i18n/tools-en/ga4.d.ts +35 -0
  144. package/dist/i18n/tools-en/ga4.js +34 -0
  145. package/dist/i18n/tools-en/googleads.d.ts +15 -0
  146. package/dist/i18n/tools-en/googleads.js +14 -0
  147. package/dist/i18n/tools-en/gsc.d.ts +27 -0
  148. package/dist/i18n/tools-en/gsc.js +26 -0
  149. package/dist/i18n/tools-en/iam.d.ts +15 -0
  150. package/dist/i18n/tools-en/iam.js +14 -0
  151. package/dist/i18n/tools-en/index.d.ts +7 -0
  152. package/dist/i18n/tools-en/index.js +58 -0
  153. package/dist/i18n/tools-en/instagram.d.ts +16 -0
  154. package/dist/i18n/tools-en/instagram.js +15 -0
  155. package/dist/i18n/tools-en/jenkins.d.ts +41 -0
  156. package/dist/i18n/tools-en/jenkins.js +40 -0
  157. package/dist/i18n/tools-en/naver.d.ts +10 -0
  158. package/dist/i18n/tools-en/naver.js +9 -0
  159. package/dist/i18n/tools-en/playstore.d.ts +148 -0
  160. package/dist/i18n/tools-en/playstore.js +147 -0
  161. package/dist/i18n/tools-en/registrar.d.ts +6 -0
  162. package/dist/i18n/tools-en/registrar.js +6 -0
  163. package/dist/i18n/tools-en/threads.d.ts +21 -0
  164. package/dist/i18n/tools-en/threads.js +20 -0
  165. package/dist/i18n/tools-en/tiktok.d.ts +21 -0
  166. package/dist/i18n/tools-en/tiktok.js +20 -0
  167. package/dist/i18n/tools-en/video.d.ts +59 -0
  168. package/dist/i18n/tools-en/video.js +58 -0
  169. package/dist/i18n/tools-en/youtube.d.ts +44 -0
  170. package/dist/i18n/tools-en/youtube.js +43 -0
  171. package/dist/iam/key-files.js +13 -3
  172. package/dist/instagram/api.js +19 -5
  173. package/dist/instagram/config.js +11 -3
  174. package/dist/instagram/setup.js +37 -11
  175. package/dist/jenkins/builds.d.ts +2 -2
  176. package/dist/jenkins/builds.js +70 -30
  177. package/dist/jenkins/config.d.ts +5 -0
  178. package/dist/jenkins/config.js +25 -6
  179. package/dist/jenkins/credentials.js +33 -13
  180. package/dist/jenkins/http.js +6 -3
  181. package/dist/jenkins/jobs.js +19 -5
  182. package/dist/jenkins/messages.js +93 -36
  183. package/dist/lib/cli-args.js +13 -7
  184. package/dist/lib/google-errors.js +31 -9
  185. package/dist/lib/http.js +10 -3
  186. package/dist/lib/json-file.d.ts +15 -0
  187. package/dist/lib/json-file.js +65 -0
  188. package/dist/lib/meta-auth.d.ts +1 -1
  189. package/dist/lib/meta-auth.js +26 -8
  190. package/dist/lib/package-name.js +15 -4
  191. package/dist/lib/package-root.js +1 -1
  192. package/dist/lib/paginate.js +10 -2
  193. package/dist/lib/path-containment.js +22 -6
  194. package/dist/lib/resource-id.js +10 -3
  195. package/dist/lib/store-create-result.js +54 -13
  196. package/dist/lib/text-validators.js +20 -5
  197. package/dist/lib/tool-registrar.d.ts +9 -0
  198. package/dist/lib/tool-registrar.js +33 -14
  199. package/dist/lib/tool-text.d.ts +31 -0
  200. package/dist/lib/tool-text.js +52 -0
  201. package/dist/lib/toolsets.js +13 -3
  202. package/dist/lib/url-path.js +3 -1
  203. package/dist/naver/tools.js +138 -46
  204. package/dist/playstore/data-safety.js +16 -4
  205. package/dist/playstore/errors.js +33 -8
  206. package/dist/playstore/financials.js +83 -35
  207. package/dist/playstore/listing.js +7 -1
  208. package/dist/playstore/messages.js +179 -57
  209. package/dist/playstore/products.js +10 -2
  210. package/dist/playstore/recovery.js +10 -2
  211. package/dist/playstore/releases.js +34 -14
  212. package/dist/playstore/reviews.js +14 -4
  213. package/dist/playstore/statistics.js +3 -1
  214. package/dist/prompts.js +160 -50
  215. package/dist/registers/admob.js +36 -11
  216. package/dist/registers/android.js +25 -9
  217. package/dist/registers/appstore/apps.js +22 -6
  218. package/dist/registers/appstore/customer-reviews.js +7 -1
  219. package/dist/registers/appstore/declarations.js +63 -19
  220. package/dist/registers/appstore/media.js +76 -24
  221. package/dist/registers/appstore/metadata.js +26 -8
  222. package/dist/registers/appstore/products.js +53 -19
  223. package/dist/registers/appstore/review-submission.js +31 -9
  224. package/dist/registers/appstore/testflight.js +82 -24
  225. package/dist/registers/appstore/versions.js +88 -30
  226. package/dist/registers/auth.js +343 -90
  227. package/dist/registers/bigquery.js +54 -14
  228. package/dist/registers/billing.js +18 -4
  229. package/dist/registers/checks.js +20 -5
  230. package/dist/registers/ci.js +60 -20
  231. package/dist/registers/drive.js +18 -7
  232. package/dist/registers/facebook.js +31 -9
  233. package/dist/registers/firebase.js +21 -7
  234. package/dist/registers/googleads.js +23 -6
  235. package/dist/registers/gsc.js +3 -1
  236. package/dist/registers/iam.js +44 -13
  237. package/dist/registers/instagram.js +19 -5
  238. package/dist/registers/jenkins.js +43 -14
  239. package/dist/registers/naver.js +13 -3
  240. package/dist/registers/playstore/financials.d.ts +6 -0
  241. package/dist/registers/playstore/financials.js +48 -0
  242. package/dist/registers/playstore/listing.d.ts +15 -0
  243. package/dist/registers/playstore/listing.js +138 -0
  244. package/dist/registers/playstore/media.d.ts +6 -0
  245. package/dist/registers/playstore/media.js +56 -0
  246. package/dist/registers/playstore/products.d.ts +21 -0
  247. package/dist/registers/playstore/products.js +238 -0
  248. package/dist/registers/playstore/recovery.d.ts +11 -0
  249. package/dist/registers/playstore/recovery.js +105 -0
  250. package/dist/registers/playstore/releases.d.ts +8 -0
  251. package/dist/registers/playstore/releases.js +157 -0
  252. package/dist/registers/playstore/reviews.d.ts +6 -0
  253. package/dist/registers/playstore/reviews.js +43 -0
  254. package/dist/registers/playstore/service-accounts.d.ts +13 -0
  255. package/dist/registers/playstore/service-accounts.js +127 -0
  256. package/dist/registers/playstore/shared.d.ts +12 -0
  257. package/dist/registers/playstore/shared.js +24 -0
  258. package/dist/registers/playstore.d.ts +8 -0
  259. package/dist/registers/playstore.js +28 -734
  260. package/dist/registers/threads.js +28 -8
  261. package/dist/registers/tiktok.js +4 -2
  262. package/dist/registers/video.js +3 -1
  263. package/dist/remote-sync.js +80 -28
  264. package/dist/resources.d.ts +0 -8
  265. package/dist/resources.js +73 -32
  266. package/dist/server.d.ts +2 -0
  267. package/dist/server.js +9 -1
  268. package/dist/social/profile-store.js +36 -12
  269. package/dist/social/setup-cli.js +1 -1
  270. package/dist/threads/api.js +23 -6
  271. package/dist/threads/setup.js +42 -14
  272. package/dist/tiktok-business/api.js +13 -3
  273. package/dist/tiktok-business/auth.js +10 -2
  274. package/dist/tiktok-business/config.js +8 -3
  275. package/dist/tiktok-business/posting.d.ts +6 -0
  276. package/dist/tiktok-business/posting.js +118 -36
  277. package/dist/tiktok-business/setup-cli.js +3 -1
  278. package/dist/tools-cli.js +4 -5
  279. package/dist/video/captions.js +3 -1
  280. package/dist/video/files.js +13 -3
  281. package/dist/video/project.js +65 -21
  282. package/dist/video/providers.js +52 -16
  283. package/dist/video/render.js +71 -22
  284. package/dist/video/research.js +10 -2
  285. package/dist/video/schemas.js +19 -5
  286. package/dist/video/youtube-publish.js +62 -32
  287. package/package.json +1 -1
@@ -2,6 +2,26 @@ import fs from 'node:fs';
2
2
  import path from 'node:path';
3
3
  import os from 'node:os';
4
4
  import { writeCredentialJson } from '#core/atomic-write.js';
5
+ import { assertCredentialFileReadable } from '../lib/json-file.js';
6
+ import { catalog } from '#core/lang.js';
7
+ import { readCredentialFileSync } from '#core/credential-read.js';
8
+ const M = catalog({
9
+ missing: [
10
+ '❌ Google Ads 설정이 없어.',
11
+ '',
12
+ 'googleads_save_config 도구로 먼저 설정해줘:',
13
+ ' - developerToken: Google Ads 콘솔 → 관리자 → API 센터에서 발급',
14
+ ' - customerId: Google Ads 계정 ID (예: 123-456-7890)',
15
+ ],
16
+ }, {
17
+ missing: [
18
+ '❌ No Google Ads settings.',
19
+ '',
20
+ 'Set them up first with the googleads_save_config tool:',
21
+ ' - developerToken: issued in Google Ads console → Admin → API Center',
22
+ ' - customerId: Google Ads account ID (e.g. 123-456-7890)',
23
+ ],
24
+ });
5
25
  const CONFIG_DIR = path.join(os.homedir(), '.mimi-seed');
6
26
  const CONFIG_PATH = path.join(CONFIG_DIR, 'google-ads.json');
7
27
  /**
@@ -31,7 +51,7 @@ export function loadConfig() {
31
51
  if (!fs.existsSync(CONFIG_PATH))
32
52
  return null;
33
53
  try {
34
- const cfg = JSON.parse(fs.readFileSync(CONFIG_PATH, 'utf-8'));
54
+ const cfg = JSON.parse(readCredentialFileSync(CONFIG_PATH));
35
55
  // 읽기 시점에도 정규화 — 하이픈 포함 값이 손으로 적히거나 구버전이 쓴 경우에도
36
56
  // URL/login-customer-id 헤더가 항상 숫자만 포함하도록 보장 (write 경로 의존 제거).
37
57
  const customerId = readCustomerId(cfg.customerId);
@@ -45,19 +65,15 @@ export function loadConfig() {
45
65
  return { ...cfg, developerToken: cfg.developerToken, customerId, loginCustomerId };
46
66
  }
47
67
  catch {
68
+ // 읽을 수 없으면 '미설정' — 깨진 파일은 requireConfig · mimi_seed_status 가 json-file 로 따로 진단한다
48
69
  return null;
49
70
  }
50
71
  }
51
72
  export function requireConfig() {
52
73
  const cfg = loadConfig();
53
74
  if (!cfg) {
54
- throw new Error([
55
- '❌ Google Ads 설정이 없어.',
56
- '',
57
- 'googleads_save_config 도구로 먼저 설정해줘:',
58
- ' - developerToken: Google Ads 콘솔 → 관리자 → API 센터에서 발급',
59
- ' - customerId: Google Ads 계정 ID (예: 123-456-7890)',
60
- ].join('\n'));
75
+ assertCredentialFileReadable(CONFIG_PATH, 'googleads_save_config');
76
+ throw new Error(M().missing.join('\n'));
61
77
  }
62
78
  return cfg;
63
79
  }
@@ -1,6 +1,8 @@
1
1
  import { fetchWithTimeout } from '../lib/http.js';
2
2
  import { googleAdsError } from './errors.js';
3
3
  import { encodePathSegment } from '../lib/url-path.js';
4
+ import { catalog } from '#core/lang.js';
5
+ const M = catalog({ noToken: 'OAuth 토큰을 가져올 수 없음. 재인증 필요.' }, { noToken: 'Could not get an OAuth token. Reauthentication required.' });
4
6
  // Google Ads API는 ~13개월 주기로 sunset (항상 최신 3개 major만 유지).
5
7
  // v24 = 2026-06 기준 현행 major. 새 major 출시 시 갱신 필요.
6
8
  // https://developers.google.com/google-ads/api/docs/sunset-dates
@@ -33,7 +35,7 @@ function validateDateRange(range) {
33
35
  async function getAccessToken(auth) {
34
36
  const token = await auth.getAccessToken();
35
37
  if (!token.token)
36
- throw new Error('OAuth 토큰을 가져올 수 없음. 재인증 필요.');
38
+ throw new Error(M().noToken);
37
39
  return token.token;
38
40
  }
39
41
  function buildHeaders(accessToken, cfg) {
package/dist/gsc/tools.js CHANGED
@@ -1,5 +1,13 @@
1
1
  import { google } from '../lib/googleapis-lite.js';
2
2
  import { notDotSegment } from '../lib/resource-id.js';
3
+ import { catalog } from '#core/lang.js';
4
+ const M = catalog({
5
+ dateOrder: 'startDate는 endDate 이전 또는 같은 날짜여야 해.',
6
+ startRow: 'startRow는 dimensions로 분해한 조회에만 사용할 수 있어.',
7
+ }, {
8
+ dateOrder: 'startDate must be on or before endDate.',
9
+ startRow: 'startRow can be used only for queries broken down by dimensions.',
10
+ });
3
11
  /**
4
12
  * Google Search Console (Webmasters) API v1 래퍼.
5
13
  *
@@ -65,11 +73,11 @@ async function querySearchAnalytics(auth, siteUrl, requestBody) {
65
73
  export async function searchAnalytics(auth, siteUrl, params) {
66
74
  const { startDate, endDate, startRow = 0, rowLimit = 1000, type = 'web', filters, summaryOnly, includeTotals } = params;
67
75
  if (startDate > endDate)
68
- throw new Error('startDate는 endDate 이전 또는 같은 날짜여야 해.');
76
+ throw new Error(M().dateOrder);
69
77
  const dimensions = params.dimensions?.split(',').map((value) => value.trim()).filter(Boolean) ?? [];
70
78
  const reportDimensions = summaryOnly ? [] : dimensions;
71
79
  if (startRow > 0 && reportDimensions.length === 0 && !summaryOnly) {
72
- throw new Error('startRow는 dimensions로 분해한 조회에만 사용할 수 있어.');
80
+ throw new Error(M().startRow);
73
81
  }
74
82
  const property = notDotSegment(siteUrl, 'siteUrl');
75
83
  const period = { startDate, endDate };
package/dist/helpers.d.ts CHANGED
@@ -10,8 +10,10 @@ export { ensureFreshAccessToken };
10
10
  * 스코프 배열을 넘기면 그중 하나만 부여되어 있어도 통과한다.
11
11
  */
12
12
  export declare function requireAuth(requiredScope?: string | readonly string[], profile?: string): Promise<import("google-auth-library").OAuth2Client>;
13
- export declare const PLAY_AUTH_HINT: string;
14
- export declare const APPSTORE_AUTH_HINT: string;
13
+ /** Google Play 인증이 없을 때의 안내 (현재 언어). */
14
+ export declare const playAuthHint: () => string;
15
+ /** App Store Connect 인증이 없을 때의 안내 (현재 언어). */
16
+ export declare const appStoreAuthHint: () => string;
15
17
  /**
16
18
  * Google Play 인증 — 서비스 계정 JSON 우선, 없으면 OAuth 클라이언트로 폴백.
17
19
  *
package/dist/helpers.js CHANGED
@@ -1,7 +1,10 @@
1
1
  import { getAuthenticatedClient, ensureFreshAccessToken } from './auth/google-auth.js';
2
2
  import { domainsForScope, isPreTrackingScope } from './auth/scopes.js';
3
3
  import { getServiceAccountClient, getServiceAccountJson } from './auth/playstore-auth.js';
4
- import { getAppStoreCredentials } from './appstore/auth.js';
4
+ import { appStoreCredentialsPath, getAppStoreCredentials } from './appstore/auth.js';
5
+ import { authText } from './auth/errors.js';
6
+ import { assertCredentialFileReadable } from './lib/json-file.js';
7
+ import { catalog } from '#core/lang.js';
5
8
  export { ensureFreshAccessToken };
6
9
  const REAUTH_CMD = ' npx -y @yoonion/mimi-seed-mcp mimi-seed-auth';
7
10
  function formatAuthError(p, profile, scopes = []) {
@@ -17,7 +20,7 @@ function formatAuthError(p, profile, scopes = []) {
17
20
  return [
18
21
  `❌ [${p.code}] ${p.message}`,
19
22
  p.hint ? `→ ${p.hint}` : '',
20
- ...(p.needsReauth ? ['', '터미널에서 재로그인:', reauthCommand] : []),
23
+ ...(p.needsReauth ? ['', authText().reloginInTerminal, reauthCommand] : []),
21
24
  ]
22
25
  .filter((l) => l !== '')
23
26
  .join('\n');
@@ -43,8 +46,7 @@ function assertStoredScope(scopes, scopeStr, profile) {
43
46
  return;
44
47
  throw new Error(formatAuthError({
45
48
  code: 'INSUFFICIENT_SCOPE',
46
- message: `이 도구는 추가 권한이 필요해 (${scopes.join(' 또는 ')}). 현재 로그인에 그 권한이 없어.`,
47
- hint: '아래 명령으로 로그인하면 기존 권한을 유지하면서 필요한 권한을 추가할 수 있어.',
49
+ ...authText().insufficientScope(scopes),
48
50
  retriable: false,
49
51
  needsReauth: true,
50
52
  }, profile, scopes));
@@ -68,8 +70,7 @@ export async function requireAuth(requiredScope, profile) {
68
70
  if (!client) {
69
71
  throw new Error(formatAuthError({
70
72
  code: 'UNAUTHENTICATED',
71
- message: 'Google 계정이 연결되지 않았어.',
72
- hint: 'mimi-seed-auth 로 로그인하세요.',
73
+ ...H().googleNotConnected,
73
74
  retriable: false,
74
75
  needsReauth: true,
75
76
  }, profile, scopes));
@@ -78,27 +79,58 @@ export async function requireAuth(requiredScope, profile) {
78
79
  assertStoredScope(scopes, result.tokens.scope, profile);
79
80
  return client;
80
81
  }
81
- export const PLAY_AUTH_HINT = [
82
- '❌ Google Play 인증이 없어.',
83
- '',
84
- '가장 쉬운 방법 — Google 로그인 (androidpublisher 권한 포함):',
85
- REAUTH_CMD,
86
- '',
87
- '또는 서버/헤드리스 환경이면 서비스 계정 JSON 등록:',
88
- ' npx -y @yoonion/mimi-seed-mcp mimi-seed-playstore-auth',
89
- '',
90
- '그 다음에 다시 물어봐줘.',
91
- ].join('\n');
92
- export const APPSTORE_AUTH_HINT = [
93
- '❌ App Store Connect 인증이 설정되지 않았어.',
94
- '',
95
- '터미널에서 이것만 실행하면 돼:',
96
- '',
97
- ' npx -y @yoonion/mimi-seed-mcp mimi-seed-appstore-auth',
98
- '',
99
- 'Issuer ID, Key ID, .p8 파일 경로를 입력하면 저장 완료.',
100
- '그 다음에 다시 물어봐줘.',
101
- ].join('\n');
82
+ /** 인증 안내 — LLM 이 사용자에게 전하는 복구 절차라 언어를 따른다 (호출 시점에 언어를 읽는다). */
83
+ const H = catalog({
84
+ googleNotConnected: { message: 'Google 계정이 연결되지 않았어.', hint: 'mimi-seed-auth 로 로그인하세요.' },
85
+ play: [
86
+ '❌ Google Play 인증이 없어.',
87
+ '',
88
+ '가장 쉬운 방법 — Google 로그인 (androidpublisher 권한 포함):',
89
+ REAUTH_CMD,
90
+ '',
91
+ '또는 서버/헤드리스 환경이면 서비스 계정 JSON 등록:',
92
+ ' npx -y @yoonion/mimi-seed-mcp mimi-seed-playstore-auth',
93
+ '',
94
+ '그 다음에 다시 물어봐줘.',
95
+ ],
96
+ appstore: [
97
+ '❌ App Store Connect 인증이 설정되지 않았어.',
98
+ '',
99
+ '터미널에서 이것만 실행하면 돼:',
100
+ '',
101
+ ' npx -y @yoonion/mimi-seed-mcp mimi-seed-appstore-auth',
102
+ '',
103
+ 'Issuer ID, Key ID, .p8 파일 경로를 입력하면 저장 완료.',
104
+ '그 다음에 다시 물어봐줘.',
105
+ ],
106
+ }, {
107
+ googleNotConnected: { message: 'No Google account is connected.', hint: 'Log in with mimi-seed-auth.' },
108
+ play: [
109
+ '❌ No Google Play authentication.',
110
+ '',
111
+ 'Easiest — Google login (includes the androidpublisher permission):',
112
+ REAUTH_CMD,
113
+ '',
114
+ 'Or, on a server/headless environment, register a service account JSON:',
115
+ ' npx -y @yoonion/mimi-seed-mcp mimi-seed-playstore-auth',
116
+ '',
117
+ 'Then ask again.',
118
+ ],
119
+ appstore: [
120
+ '❌ App Store Connect authentication is not set up.',
121
+ '',
122
+ 'Run just this in a terminal:',
123
+ '',
124
+ ' npx -y @yoonion/mimi-seed-mcp mimi-seed-appstore-auth',
125
+ '',
126
+ 'Enter the Issuer ID, Key ID, and .p8 file path to save it.',
127
+ 'Then ask again.',
128
+ ],
129
+ });
130
+ /** Google Play 인증이 없을 때의 안내 (현재 언어). */
131
+ export const playAuthHint = () => H().play.join('\n');
132
+ /** App Store Connect 인증이 없을 때의 안내 (현재 언어). */
133
+ export const appStoreAuthHint = () => H().appstore.join('\n');
102
134
  /**
103
135
  * Google Play 인증 — 서비스 계정 JSON 우선, 없으면 OAuth 클라이언트로 폴백.
104
136
  *
@@ -114,12 +146,12 @@ export async function requirePlayStoreAuth(packageName, requiredScope) {
114
146
  // 재로그인 안내 대신 googleapis 의 raw invalid_grant 가 그대로 노출된다.
115
147
  const result = await ensureFreshAccessToken();
116
148
  if (result.status === 'unauthenticated')
117
- throw new Error(PLAY_AUTH_HINT);
149
+ throw new Error(playAuthHint());
118
150
  if (result.status === 'expired_refresh_failed')
119
151
  throw new Error(formatAuthError(result.error));
120
152
  const oauth = getAuthenticatedClient();
121
153
  if (!oauth)
122
- throw new Error(PLAY_AUTH_HINT);
154
+ throw new Error(playAuthHint());
123
155
  // OAuth 폴백일 때만 스코프 pre-flight — SA JWT 는 자체 scopes 로 토큰을 받으므로
124
156
  // (getServiceAccountClient 가 reporting 스코프를 이미 싣는다) 해당 없음.
125
157
  assertStoredScope(requiredScope ? [requiredScope] : [], result.tokens.scope);
@@ -128,12 +160,14 @@ export async function requirePlayStoreAuth(packageName, requiredScope) {
128
160
  export function requireServiceAccountJson(packageName) {
129
161
  const json = getServiceAccountJson(packageName);
130
162
  if (!json)
131
- throw new Error(PLAY_AUTH_HINT);
163
+ throw new Error(playAuthHint());
132
164
  return json;
133
165
  }
134
166
  export function requireAppStoreCreds() {
135
167
  const creds = getAppStoreCredentials();
136
- if (!creds)
137
- throw new Error(APPSTORE_AUTH_HINT);
168
+ if (!creds) {
169
+ assertCredentialFileReadable(appStoreCredentialsPath(), 'npx -y @yoonion/mimi-seed-mcp mimi-seed-appstore-auth');
170
+ throw new Error(appStoreAuthHint());
171
+ }
138
172
  return creds;
139
173
  }
@@ -0,0 +1,6 @@
1
+ /**
2
+ * tool-manifest.json 도메인 메타데이터(label · credential · summary)의 영어 — 키는 한국어 원문.
3
+ * `mimi-seed://tools/catalog` 리소스가 영어 모드일 때 쓴다 (resources.ts). manifest 가 원본(SSOT)이라 거기는 그대로 두고
4
+ * 여기서만 옮긴다. 원문을 고치면 output-i18n.test.ts 가 "번역 없음"으로 실패한다.
5
+ */
6
+ export declare const MANIFEST_TEXT_EN: Readonly<Record<string, string>>;
@@ -0,0 +1,53 @@
1
+ /**
2
+ * tool-manifest.json 도메인 메타데이터(label · credential · summary)의 영어 — 키는 한국어 원문.
3
+ * `mimi-seed://tools/catalog` 리소스가 영어 모드일 때 쓴다 (resources.ts). manifest 가 원본(SSOT)이라 거기는 그대로 두고
4
+ * 여기서만 옮긴다. 원문을 고치면 output-i18n.test.ts 가 "번역 없음"으로 실패한다.
5
+ */
6
+ export const MANIFEST_TEXT_EN = {
7
+ '앱·광고 단위 생성, 오늘 수익·기간 리포트': "Create apps and ad units; today's earnings and period reports",
8
+ 'AI 생성': 'AI generation',
9
+ 'ANTHROPIC_API_KEY 환경변수': 'ANTHROPIC_API_KEY environment variable',
10
+ '커밋 기반 릴리스 노트·리뷰 답변 초안 생성': 'Draft release notes from commits and review replies',
11
+ 'Android 서명': 'Android signing',
12
+ '없음 (로컬 파일 작업)': 'None (local file operations)',
13
+ 'keystore 생성·서명 설정·Jenkins 로 Play SA 업로드': 'Generate a keystore, set up signing, upload the Play SA to Jenkins',
14
+ 'ASC API 키 (mimi-seed auth appstore)': 'ASC API key (mimi-seed auth appstore)',
15
+ "버전·빌드 attach·What's New·스크린샷·IAP 심사 메타데이터·심사 제출·매출/재무·주간 인사이트": "Versions, build attach, What's New, screenshots, IAP review metadata, review submission, sales/finance, weekly insights",
16
+ '연결/진단': 'Connections/diagnostics',
17
+ '없음 (이것이 셋업 도구)': 'None (these are the setup tools)',
18
+ '전체 연결 상태 스캔(mimi_seed_status)·OAuth 시작·원격 크리덴셜 동기화': 'Scan all connection status (mimi_seed_status), start OAuth, sync remote credentials',
19
+ 'Google OAuth (또는 BigQuery 서비스 계정)': 'Google OAuth (or a BigQuery service account)',
20
+ '쿼리 실행·데이터셋/테이블/스키마 조회': 'Run queries; list datasets/tables/schemas',
21
+ '결제 상태(Blaze 여부)·비용 범위(공용 계정 판별)·예산 알림': 'Billing status (Blaze or not), cost scope (shared-account check), budget alerts',
22
+ '출시 점검': 'Release checks',
23
+ '점검 대상 스토어의 자격증명': 'Credentials of the store being checked',
24
+ '제출 전 위험·Billing 정책 점검·스크린샷 규격 검증·릴리스 상태': 'Pre-submission risks, Billing policy checks, screenshot spec validation, release status',
25
+ 'GitHub/GitLab 토큰 (mimi-seed auth ci)': 'GitHub/GitLab token (mimi-seed auth ci)',
26
+ '워크플로 조회·빌드 트리거/상태/취소 — Jenkins 빌드는 대상 아님': 'List workflows; trigger/check/cancel builds — Jenkins builds are not covered',
27
+ 'Facebook 페이지 토큰 (mimi-seed auth facebook)': 'Facebook Page token (mimi-seed auth facebook)',
28
+ '페이지 텍스트/사진/링크 포스팅': 'Post text/photos/links to a Page',
29
+ '프로젝트/앱 생성·설정 파일 다운로드·서비스 활성화·Remote Config 운영 현황': 'Create projects/apps, download config files, enable services, Remote Config overview',
30
+ '계정/속성·데이터 스트림·BigQuery export 링크 관리, 리포트 실행': 'Manage accounts/properties, data streams, BigQuery export links; run reports',
31
+ 'Google Ads 설정 (mimi-seed auth googleads, adwords 스코프)': 'Google Ads config (mimi-seed auth googleads, adwords scope)',
32
+ '캠페인 목록·캠페인/UAC 리포트': 'List campaigns; campaign/UAC reports',
33
+ 'URL 검사·검색 성과 분석·사이트맵 제출': 'URL inspection, search performance analysis, sitemap submission',
34
+ '없음 (IndexNow 키 파일)': 'None (IndexNow key file)',
35
+ 'Yeti 크롤러 관점 색인 점검·IndexNow URL 제출': 'Indexability checks from the Yeti crawler, IndexNow URL submission',
36
+ '서비스 계정 생성·키 발급·IAM 정책 바인딩': 'Create service accounts, issue keys, bind IAM policies',
37
+ 'Instagram 토큰 (mimi-seed auth instagram)': 'Instagram token (mimi-seed auth instagram)',
38
+ '사진·캐러셀·릴스 포스팅': 'Post photos, carousels, Reels',
39
+ 'Jenkins URL + API 토큰 (mimi-seed auth jenkins)': 'Jenkins URL + API token (mimi-seed auth jenkins)',
40
+ '크리덴셜·keystore 업로드·잡 생성/수정·빌드 실행(request_id 로 로컬 중복 방지, confirm 필요)·큐/빌드 상태 조회': 'Upload credentials/keystore, create/update jobs, run builds (local dedup by request_id, confirm required), check queue/build status',
41
+ 'Google OAuth (CI/헤드리스는 Play 서비스 계정)': 'Google OAuth (Play service account for CI/headless)',
42
+ '리스팅·트랙 릴리스·이미지·리뷰 답변·통계·서비스 계정 등록·재무 리포트': 'Listings, track releases, images, review replies, statistics, service account registration, financial reports',
43
+ 'Threads 토큰 (mimi-seed auth threads)': 'Threads token (mimi-seed auth threads)',
44
+ '텍스트/이미지/영상 포스팅·토큰 갱신': 'Post text/images/videos; refresh the token',
45
+ 'Organic API 계정 진단·게시 전 검증·공개 영상 게시·상태·중복 방지 감사 로그': 'Organic API account diagnostics, pre-publish validation, public video publishing, status, duplicate-prevention audit log',
46
+ '영상 제작': 'Video production',
47
+ '기능별 API 키 + Google OAuth(YouTube 게시) + FFmpeg': 'Per-feature API keys + Google OAuth (YouTube publishing) + FFmpeg',
48
+ 'story 스토리보드·영상 리서치/제작·YouTube 업로드와 공개 상태 관리': 'story storyboards, video research/production, YouTube upload and privacy management',
49
+ 'Google OAuth (youtube 또는 youtube_analytics 권한)': 'Google OAuth (youtube or youtube_analytics permission)',
50
+ '인증 채널·업로드 영상·YouTube Analytics 기간 리포트 읽기': 'Read the authenticated channel, uploaded videos, YouTube Analytics period reports',
51
+ 'Drive 서비스 계정 (또는 Google OAuth drive.file)': 'Drive service account (or Google OAuth drive.file)',
52
+ '폴더 생성·파일 업로드·내용 교체·이름 변경/이동·휴지통·목록 조회': 'Create folders, upload files, replace content, rename/move, trash, list',
53
+ };
@@ -0,0 +1,25 @@
1
+ /** admob 도구 · 파라미터 설명의 영어 — 키는 한국어 원문 (lib/tool-text.ts). 원문을 고치면 키도 고친다. */
2
+ declare const _default: {
3
+ 'AdMob \uACC4\uC815 \uBAA9\uB85D \uC870\uD68C': string;
4
+ 'AdMob\uC5D0 \uB4F1\uB85D\uB41C \uC571 \uBAA9\uB85D': string;
5
+ 'AdMob \uACC4\uC815 ID (\uC608: accounts/pub-XXXX)': string;
6
+ 'AdMob \uAD11\uACE0 \uB2E8\uC704 \uBAA9\uB85D': string;
7
+ 'AdMob \uACC4\uC815 ID': string;
8
+ '\uC624\uB298 AdMob \uC218\uC775 \uC694\uC57D': string;
9
+ 'AdMob \uC218\uC775 \uB9AC\uD3EC\uD2B8 (\uAE30\uAC04 \uC9C0\uC815)': string;
10
+ '\uC2DC\uC791 \uC5F0\uB3C4': string;
11
+ '\uC2DC\uC791 \uC6D4 (1-12)': string;
12
+ '\uC2DC\uC791 \uC77C': string;
13
+ '\uC885\uB8CC \uC5F0\uB3C4': string;
14
+ '\uC885\uB8CC \uC6D4 (1-12)': string;
15
+ '\uC885\uB8CC \uC77C': string;
16
+ 'AdMob\uC5D0 \uC0C8 \uC571 \uB4F1\uB85D (v1beta \u2014 Limited Access). appStoreId \uB97C \uC8FC\uBA74 \uC2A4\uD1A0\uC5B4 \uAC8C\uC2DC \uC571\uACFC \uB9C1\uD06C(Android=\uD328\uD0A4\uC9C0\uBA85, iOS=App Store \uC22B\uC790 ID), \uC5C6\uC73C\uBA74 manual(unlinked) \uC571.': string;
17
+ 플랫폼: string;
18
+ '\uC571 \uC774\uB984': string;
19
+ '\uC2A4\uD1A0\uC5B4 \uB9C1\uD06C\uC6A9 ID \u2014 Android\uB294 \uD328\uD0A4\uC9C0\uBA85(com.x.y), iOS\uB294 App Store \uC22B\uC790 ID': string;
20
+ 'AdMob \uAD11\uACE0 \uB2E8\uC704 \uC0DD\uC131 (v1beta \u2014 Limited Access)': string;
21
+ 'AdMob \uC571 ID': string;
22
+ '\uAD11\uACE0 \uB2E8\uC704 \uC774\uB984': string;
23
+ '\uAD11\uACE0 \uD615\uC2DD': string;
24
+ };
25
+ export default _default;
@@ -0,0 +1,24 @@
1
+ /** admob 도구 · 파라미터 설명의 영어 — 키는 한국어 원문 (lib/tool-text.ts). 원문을 고치면 키도 고친다. */
2
+ export default {
3
+ 'AdMob 계정 목록 조회': 'List AdMob accounts',
4
+ 'AdMob에 등록된 앱 목록': 'List apps registered in AdMob',
5
+ 'AdMob 계정 ID (예: accounts/pub-XXXX)': 'AdMob account ID (e.g. accounts/pub-XXXX)',
6
+ 'AdMob 광고 단위 목록': 'List AdMob ad units',
7
+ 'AdMob 계정 ID': 'AdMob account ID',
8
+ '오늘 AdMob 수익 요약': 'Today\'s AdMob earnings summary',
9
+ 'AdMob 수익 리포트 (기간 지정)': 'AdMob earnings report (for a date range)',
10
+ '시작 연도': 'Start year',
11
+ '시작 월 (1-12)': 'Start month (1-12)',
12
+ '시작 일': 'Start day',
13
+ '종료 연도': 'End year',
14
+ '종료 월 (1-12)': 'End month (1-12)',
15
+ '종료 일': 'End day',
16
+ 'AdMob에 새 앱 등록 (v1beta — Limited Access). appStoreId 를 주면 스토어 게시 앱과 링크(Android=패키지명, iOS=App Store 숫자 ID), 없으면 manual(unlinked) 앱.': 'Registers a new app in AdMob (v1beta — Limited Access). With appStoreId, links it to the published store app (Android = package name, iOS = numeric App Store ID); without it, creates a manual (unlinked) app.',
17
+ '플랫폼': 'Platform',
18
+ '앱 이름': 'App name',
19
+ '스토어 링크용 ID — Android는 패키지명(com.x.y), iOS는 App Store 숫자 ID': 'ID for the store link — package name (com.x.y) for Android, numeric App Store ID for iOS',
20
+ 'AdMob 광고 단위 생성 (v1beta — Limited Access)': 'Create an AdMob ad unit (v1beta — Limited Access)',
21
+ 'AdMob 앱 ID': 'AdMob app ID',
22
+ '광고 단위 이름': 'Ad unit name',
23
+ '광고 형식': 'Ad format',
24
+ };
@@ -0,0 +1,14 @@
1
+ /** ai 도구 · 파라미터 설명의 영어 — 키는 한국어 원문 (lib/tool-text.ts). 원문을 고치면 키도 고친다. */
2
+ declare const _default: {
3
+ 'git \uCEE4\uBC0B \uB0B4\uC5ED\uC744 \uBC1B\uC544 Claude AI\uB85C \uC571 \uC2A4\uD1A0\uC5B4\uC6A9 \uB9B4\uB9AC\uC988 \uB178\uD2B8\uB97C \uC0DD\uC131\uD569\uB2C8\uB2E4. 3\uAC00\uC9C0 \uD1A4(\uAC04\uACB0/\uC0C1\uC138/\uB9C8\uCF00\uD305)\uACFC \uB2E4\uAD6D\uC5B4 \uBC84\uC804\uC744 \uB3D9\uC2DC\uC5D0 \uC0DD\uC131\uD569\uB2C8\uB2E4. ANTHROPIC_API_KEY \uD658\uACBD\uBCC0\uC218\uAC00 \uD544\uC694\uD569\uB2C8\uB2E4. commits: [{ message, author?, date? }] \uD615\uD0DC\uB85C \uC804\uB2EC\uD558\uC138\uC694. locales: \uB2E4\uAD6D\uC5B4 \uC0DD\uC131\uD560 \uB85C\uCF00\uC77C \uBC30\uC5F4 (\uC608: ["ko", "en-US", "ja"]) \uCD08\uC548\uC744 \uBC18\uD658\uD569\uB2C8\uB2E4. \uC801\uC6A9 \uC694\uCCAD\uC740 \uB300\uC0C1 \uC2A4\uD1A0\uC5B4\uC640 \uBC84\uC804, \uBB38\uC548\uC744 \uD655\uC778\uD558\uACE0 \uC2B9\uC778\uBC1B\uC740 \uB4A4 \uCC98\uB9AC\uD569\uB2C8\uB2E4.': string;
4
+ 'git \uCEE4\uBC0B \uBC30\uC5F4': string;
5
+ '\uC571 \uC774\uB984 (\uD504\uB86C\uD504\uD2B8 \uB9E5\uB77D\uC6A9)': string;
6
+ '\uB2E4\uAD6D\uC5B4 \uB85C\uCF00\uC77C \uBAA9\uB85D (\uC608: ["ko", "en-US", "ja"])': string;
7
+ 'Play Store / App Store \uB9AC\uBDF0\uC5D0 \uB300\uD55C AI \uB2F5\uBCC0 \uCD08\uC548\uC744 \uC0DD\uC131\uD569\uB2C8\uB2E4. ANTHROPIC_API_KEY \uD658\uACBD\uBCC0\uC218\uAC00 \uD544\uC694\uD569\uB2C8\uB2E4. tone: friendly(\uCE5C\uADFC) / professional(\uC815\uC911) / empathetic(\uACF5\uAC10) / brief(\uAC04\uACB0) \u2014 \uAE30\uBCF8: friendly language: ko / en / ja / zh \uB4F1 \u2014 \uAE30\uBCF8: ko \u26A0 \uC0DD\uC131\uB41C \uB2F5\uBCC0\uC740 \uCD08\uC548\uC785\uB2C8\uB2E4. \uAC8C\uC2DC \uC804 \uBC18\uB4DC\uC2DC \uAC80\uD1A0\uD558\uC138\uC694. \uAC8C\uC2DC \uC694\uCCAD\uC740 \uD574\uB2F9 \uB9AC\uBDF0\uAC00 \uC18D\uD55C \uC2A4\uD1A0\uC5B4\uC5D0\uC11C \uBBF8\uB9AC\uBCF4\uAE30\uC640 \uBA85\uC2DC \uC2B9\uC778\uC744 \uAC70\uCCD0 \uCC98\uB9AC\uD569\uB2C8\uB2E4.': string;
8
+ '\uB9AC\uBDF0 \uC6D0\uBB38': string;
9
+ '\uBCC4\uC810 (1~5)': string;
10
+ '\uB2F5\uBCC0 \uD1A4': string;
11
+ '\uB2F5\uBCC0 \uC5B8\uC5B4 \uCF54\uB4DC (\uAE30\uBCF8: ko)': string;
12
+ '\uAC1C\uBC1C\uC790/\uD300 \uC774\uB984': string;
13
+ };
14
+ export default _default;
@@ -0,0 +1,13 @@
1
+ /** ai 도구 · 파라미터 설명의 영어 — 키는 한국어 원문 (lib/tool-text.ts). 원문을 고치면 키도 고친다. */
2
+ export default {
3
+ 'git 커밋 내역을 받아 Claude AI로 앱 스토어용 릴리즈 노트를 생성합니다. 3가지 톤(간결/상세/마케팅)과 다국어 버전을 동시에 생성합니다. ANTHROPIC_API_KEY 환경변수가 필요합니다. commits: [{ message, author?, date? }] 형태로 전달하세요. locales: 다국어 생성할 로케일 배열 (예: ["ko", "en-US", "ja"]) 초안을 반환합니다. 적용 요청은 대상 스토어와 버전, 문안을 확인하고 승인받은 뒤 처리합니다.': 'Takes git commit history and generates app store release notes with Claude AI. Generates 3 tones (concise/detailed/marketing) and multilingual versions at once. Requires the ANTHROPIC_API_KEY environment variable. Pass commits as [{ message, author?, date? }]. locales: array of locales to generate (e.g. ["ko", "en-US", "ja"]). Returns a draft. A request to apply it is handled only after confirming the target store, version, and text and getting approval.',
4
+ 'git 커밋 배열': 'Array of git commits',
5
+ '앱 이름 (프롬프트 맥락용)': 'App name (for prompt context)',
6
+ '다국어 로케일 목록 (예: ["ko", "en-US", "ja"])': 'List of locales (e.g. ["ko", "en-US", "ja"])',
7
+ 'Play Store / App Store 리뷰에 대한 AI 답변 초안을 생성합니다. ANTHROPIC_API_KEY 환경변수가 필요합니다. tone: friendly(친근) / professional(정중) / empathetic(공감) / brief(간결) — 기본: friendly language: ko / en / ja / zh 등 — 기본: ko ⚠ 생성된 답변은 초안입니다. 게시 전 반드시 검토하세요. 게시 요청은 해당 리뷰가 속한 스토어에서 미리보기와 명시 승인을 거쳐 처리합니다.': 'Generates an AI draft reply to a Play Store / App Store review. Requires the ANTHROPIC_API_KEY environment variable. tone: friendly / professional (polite) / empathetic / brief — default: friendly. language: ko / en / ja / zh, etc. — default: ko. ⚠ The generated reply is a draft. You must review it before posting. A request to post is handled through the store the review belongs to, with a preview and explicit approval.',
8
+ '리뷰 원문': 'Original review text',
9
+ '별점 (1~5)': 'Star rating (1-5)',
10
+ '답변 톤': 'Reply tone',
11
+ '답변 언어 코드 (기본: ko)': 'Reply language code (default: ko)',
12
+ '개발자/팀 이름': 'Developer/team name',
13
+ };
@@ -0,0 +1,14 @@
1
+ /** android 도구 · 파라미터 설명의 영어 — 키는 한국어 원문 (lib/tool-text.ts). 원문을 고치면 키도 고친다. */
2
+ declare const _default: {
3
+ '\u2B50 Android \uC571 \uC11C\uBA85/\uBE4C\uB4DC \uC124\uC815\uC744 \uC2DC\uC791\uD560 \uB54C \uAC00\uC7A5 \uBA3C\uC800 \uD638\uCD9C\uD558\uC138\uC694. Play Console \uC5C5\uB85C\uB4DC \uC774\uB825\uC744 \uD655\uC778\uD574 \uC2E0\uADDC \uC571\uC778\uC9C0 \uAE30\uC874 \uC571\uC778\uC9C0 \uD310\uBCC4\uD558\uACE0, Jenkins credential \uB4F1\uB85D\uACFC Play Store SA \uC5F0\uACB0\uAE4C\uC9C0 \uB2E8\uACC4\uBCC4 \uC561\uC158 \uD50C\uB79C\uC744 \uBC18\uD658\uD569\uB2C8\uB2E4. "Jenkins\uC5D0 keystore \uB4F1\uB85D\uD574\uC918", "Android \uBE4C\uB4DC \uC124\uC815 \uD574\uC918", "\uC11C\uBA85 \uD0A4 \uC124\uC815" \uC694\uCCAD \uC2DC \uC774 \uB3C4\uAD6C\uB97C \uBA3C\uC800 \uD638\uCD9C\uD558\uC138\uC694.': string;
4
+ 'GCP \uD504\uB85C\uC81D\uD2B8 ID (SA \uC0DD\uC131 \uC2DC \uD544\uC694, \uC120\uD0DD)': string;
5
+ '\uC0C8 Android upload keystore (.jks)\uB97C \uC790\uB3D9 \uC0DD\uC131\uD569\uB2C8\uB2E4. Java JDK\uC758 keytool\uC774 \uC124\uCE58\uB3FC \uC788\uC5B4\uC57C \uD569\uB2C8\uB2E4. keystore \uC640 \uBE44\uBC00\uBC88\uD638\uB294 ~/.mimi-seed/keystores/<\uC571>-<\uC2DC\uAC01>/ \uC5D0 0600 \uD30C\uC77C\uB85C \uC800\uC7A5\uB418\uACE0 \uC751\uB2F5\uC5D0\uB294 \uACBD\uB85C\uB9CC \uB098\uC635\uB2C8\uB2E4. \uADF8 \uACBD\uB85C\uB97C jenkins_upload_keystore(keystore_path) \uC640 jenkins_create_credential(secret_file, secret_field) \uC5D0 \uB118\uACA8 Jenkins\uC5D0 \uB4F1\uB85D\uD558\uC138\uC694.': string;
6
+ '\uC571 \uC774\uB984 \u2014 keystore dname CN\uC5D0 \uC0AC\uC6A9 (\uC608: MyApp)': string;
7
+ '\uC870\uC9C1\uBA85 \u2014 dname O (\uC0DD\uB7B5 \uC2DC app_name)': string;
8
+ '\uAD6D\uAC00 \uCF54\uB4DC (\uAE30\uBCF8: KR)': string;
9
+ 'setup_playstore_connection\uC73C\uB85C \uC0DD\uC131\uD55C Play Store \uC11C\uBE44\uC2A4 \uACC4\uC815 JSON\uC744 Jenkins Secret File credential\uB85C \uC5C5\uB85C\uB4DC\uD569\uB2C8\uB2E4. ~/.mimi-seed/play-service-accounts/{package_name}.json \uC744 \uC77D\uC5B4 base64\uB85C \uBCC0\uD658 \uD6C4 \uB4F1\uB85D\uD569\uB2C8\uB2E4. iam_create_key \uB85C \uB9C9 \uBC1C\uAE09\uD55C \uD0A4\uB97C \uC62C\uB9AC\uB824\uBA74 service_account_json_path \uC5D0 \uADF8 \uACBD\uB85C(~/.mimi-seed/keys/ \uC548)\uB97C \uB118\uAE30\uC138\uC694. setup_playstore_connection \uC2E4\uD589 \uD6C4 \uBC18\uB4DC\uC2DC \uC774 \uB3C4\uAD6C\uB97C \uD638\uCD9C\uD558\uC138\uC694. \uC0C8 id \uB294 \uBC14\uB85C \uC0DD\uC131\uD55C\uB2E4. \uAC19\uC740 id \uAC00 \uC774\uBBF8 \uC788\uC73C\uBA74 \uAE30\uC874 SA JSON \uC744 \uB418\uB3CC\uB9B4 \uC218 \uC5C6\uAC8C \uAD50\uCCB4\uD558\uBBC0\uB85C confirm \uC0DD\uB7B5/false \uBA74 \uC544\uBB34\uAC83\uB3C4 \uBC14\uAFB8\uC9C0 \uC54A\uACE0 "\uC774\uBBF8 \uC874\uC7AC" dry-run \uB9CC \uBC18\uD658 \u2014 \uC0AC\uC6A9\uC790 \uC2B9\uC778 \uD6C4 confirm: true \uB85C \uC7AC\uD638\uCD9C.': string;
10
+ 'Jenkins Credential ID (\uC0DD\uB7B5 \uC2DC "<\uC571>-playstore-sa")': string;
11
+ '\uC120\uD0DD \u2014 iam_create_key \uAC00 \uC800\uC7A5\uD55C \uD0A4 \uD30C\uC77C \uC808\uB300\uACBD\uB85C (~/.mimi-seed/keys/ \uC548\uB9CC \uD5C8\uC6A9). \uC0DD\uB7B5\uD558\uBA74 \uD328\uD0A4\uC9C0\uBCC4 \uB4F1\uB85D SA \uC0AC\uC6A9': string;
12
+ '\uAC19\uC740 id \uAC00 \uC774\uBBF8 \uC788\uC744 \uB54C\uB9CC \uD544\uC694. true \uBA74 \uAE30\uC874 SA JSON \uC744 \uAD50\uCCB4': string;
13
+ };
14
+ export default _default;
@@ -0,0 +1,13 @@
1
+ /** android 도구 · 파라미터 설명의 영어 — 키는 한국어 원문 (lib/tool-text.ts). 원문을 고치면 키도 고친다. */
2
+ export default {
3
+ '⭐ Android 앱 서명/빌드 설정을 시작할 때 가장 먼저 호출하세요. Play Console 업로드 이력을 확인해 신규 앱인지 기존 앱인지 판별하고, Jenkins credential 등록과 Play Store SA 연결까지 단계별 액션 플랜을 반환합니다. "Jenkins에 keystore 등록해줘", "Android 빌드 설정 해줘", "서명 키 설정" 요청 시 이 도구를 먼저 호출하세요.': '⭐ Call this first when starting Android app signing/build setup. Checks the Play Console upload history to determine whether the app is new or existing, and returns a step-by-step action plan through Jenkins credential registration and Play Store SA linking. Call this tool first for requests like "register the keystore in Jenkins", "set up the Android build", or "set up the signing key".',
4
+ 'GCP 프로젝트 ID (SA 생성 시 필요, 선택)': 'GCP project ID (needed to create an SA, optional)',
5
+ '새 Android upload keystore (.jks)를 자동 생성합니다. Java JDK의 keytool이 설치돼 있어야 합니다. keystore 와 비밀번호는 ~/.mimi-seed/keystores/<앱>-<시각>/ 에 0600 파일로 저장되고 응답에는 경로만 나옵니다. 그 경로를 jenkins_upload_keystore(keystore_path) 와 jenkins_create_credential(secret_file, secret_field) 에 넘겨 Jenkins에 등록하세요.': 'Automatically generate a new Android upload keystore (.jks). Requires the Java JDK keytool to be installed. The keystore and passwords are saved as 0600 files under ~/.mimi-seed/keystores/<app>-<timestamp>/ and the response contains only the path. Pass that path to jenkins_upload_keystore(keystore_path) and jenkins_create_credential(secret_file, secret_field) to register it in Jenkins.',
6
+ '앱 이름 — keystore dname CN에 사용 (예: MyApp)': 'App name — used for the keystore dname CN (e.g. MyApp)',
7
+ '조직명 — dname O (생략 시 app_name)': 'Organization name — dname O (when omitted, app_name)',
8
+ '국가 코드 (기본: KR)': 'Country code (default: KR)',
9
+ 'setup_playstore_connection으로 생성한 Play Store 서비스 계정 JSON을 Jenkins Secret File credential로 업로드합니다. ~/.mimi-seed/play-service-accounts/{package_name}.json 을 읽어 base64로 변환 후 등록합니다. iam_create_key 로 막 발급한 키를 올리려면 service_account_json_path 에 그 경로(~/.mimi-seed/keys/ 안)를 넘기세요. setup_playstore_connection 실행 후 반드시 이 도구를 호출하세요. 새 id 는 바로 생성한다. 같은 id 가 이미 있으면 기존 SA JSON 을 되돌릴 수 없게 교체하므로 confirm 생략/false 면 아무것도 바꾸지 않고 "이미 존재" dry-run 만 반환 — 사용자 승인 후 confirm: true 로 재호출.': 'Upload the Play Store service account JSON created by setup_playstore_connection to Jenkins as a Secret File credential. Reads ~/.mimi-seed/play-service-accounts/{package_name}.json, converts it to base64, and registers it. To upload a key just issued by iam_create_key, pass its path (inside ~/.mimi-seed/keys/) in service_account_json_path. You must call this tool after running setup_playstore_connection. A new id is created immediately. If the same id already exists, the existing SA JSON is irreversibly replaced, so when confirm is omitted/false nothing is changed and only an "already exists" dry-run is returned — call again with confirm: true after the user approves.',
10
+ 'Jenkins Credential ID (생략 시 "<앱>-playstore-sa")': 'Jenkins Credential ID (when omitted, "<app>-playstore-sa")',
11
+ '선택 — iam_create_key 가 저장한 키 파일 절대경로 (~/.mimi-seed/keys/ 안만 허용). 생략하면 패키지별 등록 SA 사용': 'Optional — absolute path of a key file saved by iam_create_key (only inside ~/.mimi-seed/keys/ is allowed). When omitted, the per-package registered SA is used',
12
+ '같은 id 가 이미 있을 때만 필요. true 면 기존 SA JSON 을 교체': 'Needed only when the same id already exists. true replaces the existing SA JSON',
13
+ };