@yoonion/mimi-seed-mcp 0.23.4 → 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.
Files changed (288) 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 +18 -28
  55. package/dist/auth/scopes.js +53 -14
  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 +37 -0
  89. package/dist/core/credential-keystore.js +275 -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.d.ts +116 -9
  115. package/dist/gsc/tools.js +101 -17
  116. package/dist/helpers.d.ts +4 -2
  117. package/dist/helpers.js +82 -44
  118. package/dist/i18n/manifest-en.d.ts +6 -0
  119. package/dist/i18n/manifest-en.js +53 -0
  120. package/dist/i18n/tools-en/admob.d.ts +25 -0
  121. package/dist/i18n/tools-en/admob.js +24 -0
  122. package/dist/i18n/tools-en/ai.d.ts +14 -0
  123. package/dist/i18n/tools-en/ai.js +13 -0
  124. package/dist/i18n/tools-en/android.d.ts +14 -0
  125. package/dist/i18n/tools-en/android.js +13 -0
  126. package/dist/i18n/tools-en/appstore.d.ts +240 -0
  127. package/dist/i18n/tools-en/appstore.js +239 -0
  128. package/dist/i18n/tools-en/auth.d.ts +16 -0
  129. package/dist/i18n/tools-en/auth.js +15 -0
  130. package/dist/i18n/tools-en/bigquery.d.ts +16 -0
  131. package/dist/i18n/tools-en/bigquery.js +15 -0
  132. package/dist/i18n/tools-en/billing.d.ts +17 -0
  133. package/dist/i18n/tools-en/billing.js +16 -0
  134. package/dist/i18n/tools-en/checks.d.ts +23 -0
  135. package/dist/i18n/tools-en/checks.js +22 -0
  136. package/dist/i18n/tools-en/ci.d.ts +21 -0
  137. package/dist/i18n/tools-en/ci.js +20 -0
  138. package/dist/i18n/tools-en/drive.d.ts +33 -0
  139. package/dist/i18n/tools-en/drive.js +32 -0
  140. package/dist/i18n/tools-en/facebook.d.ts +14 -0
  141. package/dist/i18n/tools-en/facebook.js +13 -0
  142. package/dist/i18n/tools-en/firebase.d.ts +42 -0
  143. package/dist/i18n/tools-en/firebase.js +41 -0
  144. package/dist/i18n/tools-en/ga4.d.ts +35 -0
  145. package/dist/i18n/tools-en/ga4.js +34 -0
  146. package/dist/i18n/tools-en/googleads.d.ts +15 -0
  147. package/dist/i18n/tools-en/googleads.js +14 -0
  148. package/dist/i18n/tools-en/gsc.d.ts +27 -0
  149. package/dist/i18n/tools-en/gsc.js +26 -0
  150. package/dist/i18n/tools-en/iam.d.ts +15 -0
  151. package/dist/i18n/tools-en/iam.js +14 -0
  152. package/dist/i18n/tools-en/index.d.ts +7 -0
  153. package/dist/i18n/tools-en/index.js +58 -0
  154. package/dist/i18n/tools-en/instagram.d.ts +16 -0
  155. package/dist/i18n/tools-en/instagram.js +15 -0
  156. package/dist/i18n/tools-en/jenkins.d.ts +41 -0
  157. package/dist/i18n/tools-en/jenkins.js +40 -0
  158. package/dist/i18n/tools-en/naver.d.ts +10 -0
  159. package/dist/i18n/tools-en/naver.js +9 -0
  160. package/dist/i18n/tools-en/playstore.d.ts +148 -0
  161. package/dist/i18n/tools-en/playstore.js +147 -0
  162. package/dist/i18n/tools-en/registrar.d.ts +6 -0
  163. package/dist/i18n/tools-en/registrar.js +6 -0
  164. package/dist/i18n/tools-en/threads.d.ts +21 -0
  165. package/dist/i18n/tools-en/threads.js +20 -0
  166. package/dist/i18n/tools-en/tiktok.d.ts +21 -0
  167. package/dist/i18n/tools-en/tiktok.js +20 -0
  168. package/dist/i18n/tools-en/video.d.ts +59 -0
  169. package/dist/i18n/tools-en/video.js +58 -0
  170. package/dist/i18n/tools-en/youtube.d.ts +44 -0
  171. package/dist/i18n/tools-en/youtube.js +43 -0
  172. package/dist/iam/key-files.js +13 -3
  173. package/dist/instagram/api.js +19 -5
  174. package/dist/instagram/config.js +11 -3
  175. package/dist/instagram/setup.js +37 -11
  176. package/dist/jenkins/builds.d.ts +2 -2
  177. package/dist/jenkins/builds.js +70 -30
  178. package/dist/jenkins/config.d.ts +5 -0
  179. package/dist/jenkins/config.js +25 -6
  180. package/dist/jenkins/credentials.js +33 -13
  181. package/dist/jenkins/http.js +6 -3
  182. package/dist/jenkins/jobs.js +19 -5
  183. package/dist/jenkins/messages.js +93 -36
  184. package/dist/lib/cli-args.js +13 -7
  185. package/dist/lib/google-errors.js +31 -9
  186. package/dist/lib/http.js +10 -3
  187. package/dist/lib/json-file.d.ts +15 -0
  188. package/dist/lib/json-file.js +65 -0
  189. package/dist/lib/meta-auth.d.ts +1 -1
  190. package/dist/lib/meta-auth.js +26 -8
  191. package/dist/lib/package-name.js +15 -4
  192. package/dist/lib/package-root.js +1 -1
  193. package/dist/lib/paginate.js +10 -2
  194. package/dist/lib/path-containment.js +22 -6
  195. package/dist/lib/resource-id.js +10 -3
  196. package/dist/lib/store-create-result.js +54 -13
  197. package/dist/lib/text-validators.js +20 -5
  198. package/dist/lib/tool-registrar.d.ts +9 -0
  199. package/dist/lib/tool-registrar.js +33 -14
  200. package/dist/lib/tool-text.d.ts +31 -0
  201. package/dist/lib/tool-text.js +52 -0
  202. package/dist/lib/toolsets.js +13 -3
  203. package/dist/lib/url-path.js +3 -1
  204. package/dist/naver/tools.js +138 -46
  205. package/dist/playstore/data-safety.js +16 -4
  206. package/dist/playstore/errors.js +33 -8
  207. package/dist/playstore/financials.js +83 -35
  208. package/dist/playstore/listing.js +7 -1
  209. package/dist/playstore/messages.js +179 -57
  210. package/dist/playstore/products.js +10 -2
  211. package/dist/playstore/recovery.js +10 -2
  212. package/dist/playstore/releases.js +34 -14
  213. package/dist/playstore/reviews.js +14 -4
  214. package/dist/playstore/statistics.js +3 -1
  215. package/dist/prompts.js +160 -50
  216. package/dist/registers/admob.js +36 -11
  217. package/dist/registers/android.js +25 -9
  218. package/dist/registers/appstore/apps.js +22 -6
  219. package/dist/registers/appstore/customer-reviews.js +7 -1
  220. package/dist/registers/appstore/declarations.js +63 -19
  221. package/dist/registers/appstore/media.js +76 -24
  222. package/dist/registers/appstore/metadata.js +26 -8
  223. package/dist/registers/appstore/products.js +53 -19
  224. package/dist/registers/appstore/review-submission.js +31 -9
  225. package/dist/registers/appstore/testflight.js +82 -24
  226. package/dist/registers/appstore/versions.js +88 -30
  227. package/dist/registers/auth.js +343 -90
  228. package/dist/registers/bigquery.js +54 -14
  229. package/dist/registers/billing.js +18 -4
  230. package/dist/registers/checks.js +20 -5
  231. package/dist/registers/ci.js +60 -20
  232. package/dist/registers/drive.js +18 -7
  233. package/dist/registers/facebook.js +31 -9
  234. package/dist/registers/firebase.js +21 -7
  235. package/dist/registers/googleads.js +23 -6
  236. package/dist/registers/gsc.js +42 -39
  237. package/dist/registers/iam.js +44 -13
  238. package/dist/registers/instagram.js +19 -5
  239. package/dist/registers/jenkins.js +43 -14
  240. package/dist/registers/naver.js +13 -3
  241. package/dist/registers/playstore/financials.d.ts +6 -0
  242. package/dist/registers/playstore/financials.js +48 -0
  243. package/dist/registers/playstore/listing.d.ts +15 -0
  244. package/dist/registers/playstore/listing.js +138 -0
  245. package/dist/registers/playstore/media.d.ts +6 -0
  246. package/dist/registers/playstore/media.js +56 -0
  247. package/dist/registers/playstore/products.d.ts +21 -0
  248. package/dist/registers/playstore/products.js +238 -0
  249. package/dist/registers/playstore/recovery.d.ts +11 -0
  250. package/dist/registers/playstore/recovery.js +105 -0
  251. package/dist/registers/playstore/releases.d.ts +8 -0
  252. package/dist/registers/playstore/releases.js +157 -0
  253. package/dist/registers/playstore/reviews.d.ts +6 -0
  254. package/dist/registers/playstore/reviews.js +43 -0
  255. package/dist/registers/playstore/service-accounts.d.ts +13 -0
  256. package/dist/registers/playstore/service-accounts.js +127 -0
  257. package/dist/registers/playstore/shared.d.ts +12 -0
  258. package/dist/registers/playstore/shared.js +24 -0
  259. package/dist/registers/playstore.d.ts +8 -0
  260. package/dist/registers/playstore.js +28 -734
  261. package/dist/registers/threads.js +28 -8
  262. package/dist/registers/tiktok.js +4 -2
  263. package/dist/registers/video.js +3 -1
  264. package/dist/remote-sync.js +80 -28
  265. package/dist/resources.d.ts +0 -8
  266. package/dist/resources.js +73 -32
  267. package/dist/server.d.ts +2 -0
  268. package/dist/server.js +9 -1
  269. package/dist/social/profile-store.js +36 -12
  270. package/dist/social/setup-cli.js +1 -1
  271. package/dist/threads/api.js +23 -6
  272. package/dist/threads/setup.js +42 -14
  273. package/dist/tiktok-business/api.js +13 -3
  274. package/dist/tiktok-business/auth.js +10 -2
  275. package/dist/tiktok-business/config.js +8 -3
  276. package/dist/tiktok-business/posting.d.ts +6 -0
  277. package/dist/tiktok-business/posting.js +118 -36
  278. package/dist/tiktok-business/setup-cli.js +3 -1
  279. package/dist/tools-cli.js +4 -5
  280. package/dist/video/captions.js +3 -1
  281. package/dist/video/files.js +13 -3
  282. package/dist/video/project.js +65 -21
  283. package/dist/video/providers.js +52 -16
  284. package/dist/video/render.js +71 -22
  285. package/dist/video/research.js +10 -2
  286. package/dist/video/schemas.js +19 -5
  287. package/dist/video/youtube-publish.js +62 -32
  288. package/package.json +1 -1
@@ -1,3 +1,17 @@
1
+ import { catalog } from '#core/lang.js';
2
+ const M = catalog({
3
+ invalid: (label, v) => `BigQuery ${label} 형식이 올바르지 않습니다: ${v}`,
4
+ project: '프로젝트 ID',
5
+ dataset: '데이터셋 ID',
6
+ table: '테이블 ID',
7
+ job: '작업 ID',
8
+ }, {
9
+ invalid: (label, v) => `Invalid BigQuery ${label} format: ${v}`,
10
+ project: 'project ID',
11
+ dataset: 'dataset ID',
12
+ table: 'table ID',
13
+ job: 'job ID',
14
+ });
1
15
  // BigQuery 식별자 검증.
2
16
  //
3
17
  // googleapis 의 BigQuery v2 는 projectId/datasetId/tableId/jobId 를 **예약 확장**(`{+tableId}`)으로
@@ -20,11 +34,11 @@ const TABLE_ID = /^[\p{L}\p{M}\p{N}\p{Pc}\p{Pd}\p{Zs}$]+$/u;
20
34
  const JOB_ID = /^[A-Za-z0-9_-]+$/;
21
35
  function check(value, pattern, label) {
22
36
  if (typeof value !== 'string' || value.length === 0 || value.length > MAX_ID_LENGTH || !pattern.test(value)) {
23
- throw new Error(`BigQuery ${label} 형식이 올바르지 않습니다: ${JSON.stringify(String(value).slice(0, 80))}`);
37
+ throw new Error(M().invalid(M()[label], JSON.stringify(String(value).slice(0, 80))));
24
38
  }
25
39
  return value;
26
40
  }
27
- export const bqProjectId = (v) => check(v, PROJECT_ID, '프로젝트 ID');
28
- export const bqDatasetId = (v) => check(v, DATASET_ID, '데이터셋 ID');
29
- export const bqTableId = (v) => check(v, TABLE_ID, '테이블 ID');
30
- export const bqJobId = (v) => check(v, JOB_ID, '작업 ID');
41
+ export const bqProjectId = (v) => check(v, PROJECT_ID, 'project');
42
+ export const bqDatasetId = (v) => check(v, DATASET_ID, 'dataset');
43
+ export const bqTableId = (v) => check(v, TABLE_ID, 'table');
44
+ export const bqJobId = (v) => check(v, JOB_ID, 'job');
@@ -1,5 +1,25 @@
1
1
  import { google } from '../lib/googleapis-lite.js';
2
2
  import { bqDatasetId, bqJobId, bqProjectId, bqTableId } from './ids.js';
3
+ import { catalog } from '#core/lang.js';
4
+ const M = catalog({
5
+ multiStatement: 'bigquery_run_query 는 단일 SELECT 문만 실행한다 — 여러 문장(스크립트)은 허용하지 않음. ' +
6
+ 'CREATE TEMP FUNCTION …; SELECT … 처럼 임시 함수를 앞에 두는 스크립트도 거부된다 — 식을 쿼리 안에 인라인하거나 BigQuery 콘솔에서 실행할 것.',
7
+ notSelect: (first) => `bigquery_run_query 는 읽기 전용이다 — SELECT / WITH / FROM(파이프 문법) 으로 시작하는 쿼리만 허용 (받은 문장: ${first ?? '(비어 있음)'}). ` +
8
+ 'DML/DDL 은 BigQuery 콘솔이나 bq CLI 에서 직접 실행할 것.',
9
+ dryRunNotSelect: (type) => `bigquery_run_query 는 읽기 전용(SELECT)만 실행합니다 — 이 쿼리의 문장 유형: ${type}. `
10
+ + '데이터를 바꾸는 쿼리는 BigQuery 콘솔이나 bq CLI 에서 직접 실행하세요.',
11
+ incomplete: (sec, jobId) => `쿼리가 ${sec}초 안에 끝나지 않았습니다 — rows 는 비어 있으며 결과가 아닙니다. `
12
+ + (jobId ? `작업 ID ${jobId} 는 BigQuery 에서 계속 실행 중일 수 있습니다.` : ''),
13
+ }, {
14
+ multiStatement: 'bigquery_run_query runs a single SELECT statement only — multiple statements (scripts) are not allowed. ' +
15
+ 'Scripts that put a temporary function first, such as CREATE TEMP FUNCTION …; SELECT …, are also rejected — inline the expression in the query or run it in the BigQuery console.',
16
+ notSelect: (first) => `bigquery_run_query is read-only — only queries that start with SELECT / WITH / FROM (pipe syntax) are allowed (received statement: ${first ?? '(empty)'}). ` +
17
+ 'Run DML/DDL directly in the BigQuery console or the bq CLI.',
18
+ dryRunNotSelect: (type) => `bigquery_run_query runs read-only (SELECT) queries only — this query's statement type: ${type}. `
19
+ + 'Run queries that change data directly in the BigQuery console or the bq CLI.',
20
+ incomplete: (sec, jobId) => `The query did not finish within ${sec} seconds — rows is empty and is not the result. `
21
+ + (jobId ? `Job ID ${jobId} may still be running in BigQuery.` : ''),
22
+ });
3
23
  const bq = () => google.bigquery('v2');
4
24
  // ─── 읽기 전용 가드 ───
5
25
  //
@@ -51,14 +71,12 @@ function stripSqlNoise(sql) {
51
71
  export function assertSelectOnlyQuery(query) {
52
72
  const body = stripSqlNoise(query).trim().replace(/;\s*$/, '').trim();
53
73
  if (body.includes(';')) {
54
- throw new Error('bigquery_run_query 는 단일 SELECT 문만 실행한다 — 여러 문장(스크립트)은 허용하지 않음. ' +
55
- 'CREATE TEMP FUNCTION …; SELECT … 처럼 임시 함수를 앞에 두는 스크립트도 거부된다 — 식을 쿼리 안에 인라인하거나 BigQuery 콘솔에서 실행할 것.');
74
+ throw new Error(M().multiStatement);
56
75
  }
57
76
  const first = /^[(\s]*([a-z_]+)/i.exec(body)?.[1]?.toUpperCase();
58
77
  // FROM 은 파이프 문법(FROM t |> WHERE … |> SELECT …) 의 시작이다 — 파이프 연산자는 전부 조회용이다.
59
78
  if (first !== 'SELECT' && first !== 'WITH' && first !== 'FROM') {
60
- throw new Error(`bigquery_run_query 는 읽기 전용이다 — SELECT / WITH / FROM(파이프 문법) 으로 시작하는 쿼리만 허용 (받은 문장: ${first ?? '(비어 있음)'}). ` +
61
- 'DML/DDL 은 BigQuery 콘솔이나 bq CLI 에서 직접 실행할 것.');
79
+ throw new Error(M().notSelect(first));
62
80
  }
63
81
  }
64
82
  // ─── 쿼리 실행 ───
@@ -90,8 +108,7 @@ export async function assertSelectOnly(auth, projectId, query) {
90
108
  });
91
109
  const statementType = res.data.statistics?.query?.statementType ?? 'UNKNOWN';
92
110
  if (statementType !== 'SELECT') {
93
- throw new ReadOnlyQueryError(`bigquery_run_query 는 읽기 전용(SELECT)만 실행합니다 — 이 쿼리의 문장 유형: ${statementType}. `
94
- + '데이터를 바꾸는 쿼리는 BigQuery 콘솔이나 bq CLI 에서 직접 실행하세요.');
111
+ throw new ReadOnlyQueryError(M().dryRunNotSelect(statementType));
95
112
  }
96
113
  }
97
114
  export async function runQuery(auth, projectId, query, maxResults = 1000, options = {}) {
@@ -136,8 +153,7 @@ export async function runQuery(auth, projectId, query, maxResults = 1000, option
136
153
  rows,
137
154
  ...(incomplete && {
138
155
  jobId: jobId ?? null,
139
- note: `쿼리가 ${Math.round((30_000 + budget) / 1000)}초 안에 끝나지 않았습니다 — rows 는 비어 있으며 결과가 아닙니다. `
140
- + (jobId ? `작업 ID ${jobId} 는 BigQuery 에서 계속 실행 중일 수 있습니다.` : ''),
156
+ note: M().incomplete(Math.round((30_000 + budget) / 1000), jobId),
141
157
  }),
142
158
  };
143
159
  }
@@ -1,5 +1,21 @@
1
1
  import { google } from '../lib/googleapis-lite.js';
2
2
  import { resourceName, resourceSegment } from '../lib/resource-id.js';
3
+ import { catalog } from '#core/lang.js';
4
+ const M = catalog({
5
+ billingAccountId: '결제 계정 ID',
6
+ gcpProjectId: 'GCP 프로젝트 ID',
7
+ blaze: (account) => `Blaze — 결제 계정 ${account} 연결됨. Cloud Functions/Run 배포 가능.`,
8
+ spark: 'Spark — 결제 계정 미연결. Cloud Functions 등 유료 서비스 배포 불가.',
9
+ lastPeriod: '(직전 기간 금액)',
10
+ unspecified: '(미지정)',
11
+ }, {
12
+ billingAccountId: 'billing account ID',
13
+ gcpProjectId: 'GCP project ID',
14
+ blaze: (account) => `Blaze — billing account ${account} linked. Cloud Functions/Run can be deployed.`,
15
+ spark: 'Spark — no billing account linked. Paid services such as Cloud Functions cannot be deployed.',
16
+ lastPeriod: '(last period amount)',
17
+ unspecified: '(unspecified)',
18
+ });
3
19
  /**
4
20
  * Cloud Billing + Billing Budgets 래퍼.
5
21
  *
@@ -42,7 +58,7 @@ function quotaHeaders(quotaProjectId) {
42
58
  }
43
59
  /** `01F1F4-FD007B-2973A7` / `billingAccounts/01F1F4-...` 어느 형태로 줘도 정규화. */
44
60
  export function normalizeBillingAccount(input) {
45
- return resourceName(input, 'billingAccounts', '결제 계정 ID');
61
+ return resourceName(input, 'billingAccounts', M().billingAccountId);
46
62
  }
47
63
  export async function getBillingInfo(auth, projectId, quotaProjectId = projectId) {
48
64
  // 기본은 조회 대상 프로젝트를 quota 주체로 쓰되, Spark 프로젝트처럼 유료 API를
@@ -59,8 +75,8 @@ export async function getBillingInfo(auth, projectId, quotaProjectId = projectId
59
75
  billingEnabled: enabled,
60
76
  billingAccountName: account,
61
77
  verdict: enabled
62
- ? `Blaze — 결제 계정 ${account} 연결됨. Cloud Functions/Run 배포 가능.`
63
- : 'Spark — 결제 계정 미연결. Cloud Functions 등 유료 서비스 배포 불가.',
78
+ ? M().blaze(account)
79
+ : M().spark,
64
80
  };
65
81
  }
66
82
  /**
@@ -100,8 +116,8 @@ export async function listBudgets(auth, billingAccount, quotaProjectId) {
100
116
  amount: b.amount?.specifiedAmount
101
117
  ? `${b.amount.specifiedAmount.units ?? '0'} ${b.amount.specifiedAmount.currencyCode ?? ''}`.trim()
102
118
  : b.amount?.lastPeriodAmount
103
- ? '(직전 기간 금액)'
104
- : '(미지정)',
119
+ ? M().lastPeriod
120
+ : M().unspecified,
105
121
  projects: b.budgetFilter?.projects ?? [],
106
122
  thresholds: (b.thresholdRules ?? []).map((t) => t.thresholdPercent),
107
123
  }));
@@ -117,7 +133,7 @@ export async function createBudget(auth, input) {
117
133
  budgetFilter: {
118
134
  // projects 는 `projects/<번호 또는 ID>` 형태를 받는다.
119
135
  ...(input.projectIds?.length
120
- ? { projects: input.projectIds.map((p) => resourceName(p, 'projects', 'GCP 프로젝트 ID')) }
136
+ ? { projects: input.projectIds.map((p) => resourceName(p, 'projects', M().gcpProjectId)) }
121
137
  : {}),
122
138
  },
123
139
  amount: {
@@ -4,7 +4,7 @@ export declare function checkAppStoreSubmission(appId: string, opts?: {
4
4
  versionString?: string;
5
5
  policy?: AppStorePolicy;
6
6
  }): Promise<{
7
- status: "error" | "missing" | "ambiguous" | "incomplete";
7
+ status: "missing" | "error" | "ambiguous" | "incomplete";
8
8
  readiness: {
9
9
  target: {
10
10
  store: "playstore";
@@ -1,6 +1,27 @@
1
1
  import { resolveAppStoreVersionBuild, selectEditableAppStoreVersion } from '../appstore/release-target.js';
2
2
  import { appStoreBuildRisk, checkAppStoreVersionRisks } from './risks.js';
3
3
  import { releaseReadiness } from './release-readiness.js';
4
+ import { catalog } from '#core/lang.js';
5
+ /** Version-selection risks — returned to the caller agent, so they follow the user's language. */
6
+ const A = catalog({
7
+ lookupFailed: '조회 실패 — 편집 가능한 버전 목록',
8
+ lookupFailedDetail: (cause) => `이 항목은 위험 분석에서 제외됨. 원인: ${cause}`,
9
+ targetUnverified: '대상 버전을 점검할 수 없음',
10
+ targetUnverifiedDetail: '대상 앱의 편집 가능한 버전 목록에서 요청한 버전을 확인하세요.',
11
+ noEditable: '편집 가능한 버전 없음',
12
+ noEditableDetail: 'App Store Connect에서 새 버전을 만드세요.',
13
+ ambiguous: '편집 가능한 버전을 하나로 확인할 수 없음',
14
+ ambiguousDetail: 'App Store Connect에서 대상 플랫폼과 편집 상태를 확인한 뒤 해당 versionId로 다시 점검하세요.',
15
+ }, {
16
+ lookupFailed: 'Lookup failed — editable version list',
17
+ lookupFailedDetail: (cause) => `This item is excluded from the risk analysis. Cause: ${cause}`,
18
+ targetUnverified: 'Cannot check the target version',
19
+ targetUnverifiedDetail: 'Check the requested version in the target app\'s list of editable versions.',
20
+ noEditable: 'No editable version',
21
+ noEditableDetail: 'Create a new version in App Store Connect.',
22
+ ambiguous: 'Cannot identify a single editable version',
23
+ ambiguousDetail: 'Check the target platform and edit state in App Store Connect, then check again with that versionId.',
24
+ });
4
25
  export async function checkAppStoreSubmission(appId, opts = {}) {
5
26
  const { versionId, versionString, policy } = opts;
6
27
  const target = { store: 'appstore', appId, versionId, versionString };
@@ -15,8 +36,8 @@ export async function checkAppStoreSubmission(appId, opts = {}) {
15
36
  return unverified('error', {
16
37
  level: 'warning',
17
38
  code: 'API_ERROR_VERSIONS',
18
- title: '조회 실패 — 편집 가능한 버전 목록',
19
- detail: `이 항목은 위험 분석에서 제외됨. 원인: ${error instanceof Error ? error.message : String(error)}`,
39
+ title: A().lookupFailed,
40
+ detail: A().lookupFailedDetail(error instanceof Error ? error.message : String(error)),
20
41
  });
21
42
  }
22
43
  if (selection.status === 'missing') {
@@ -24,14 +45,14 @@ export async function checkAppStoreSubmission(appId, opts = {}) {
24
45
  ? {
25
46
  level: 'blocker',
26
47
  code: 'TARGET_VERSION_UNVERIFIED',
27
- title: '대상 버전을 점검할 수 없음',
28
- detail: '대상 앱의 편집 가능한 버전 목록에서 요청한 버전을 확인하세요.',
48
+ title: A().targetUnverified,
49
+ detail: A().targetUnverifiedDetail,
29
50
  }
30
51
  : {
31
52
  level: 'blocker',
32
53
  code: 'NO_EDITABLE_VERSION',
33
- title: '편집 가능한 버전 없음',
34
- detail: 'App Store Connect에서 새 버전을 만드세요.',
54
+ title: A().noEditable,
55
+ detail: A().noEditableDetail,
35
56
  fixUrl: 'https://appstoreconnect.apple.com',
36
57
  });
37
58
  }
@@ -39,8 +60,8 @@ export async function checkAppStoreSubmission(appId, opts = {}) {
39
60
  return unverified(selection.status, {
40
61
  level: 'warning',
41
62
  code: selection.status === 'incomplete' ? 'API_ERROR_VERSIONS_INCOMPLETE' : 'API_ERROR_VERSIONS_AMBIGUOUS',
42
- title: '편집 가능한 버전을 하나로 확인할 수 없음',
43
- detail: 'App Store Connect에서 대상 플랫폼과 편집 상태를 확인한 뒤 해당 versionId로 다시 점검하세요.',
63
+ title: A().ambiguous,
64
+ detail: A().ambiguousDetail,
44
65
  });
45
66
  }
46
67
  const { version } = selection;
@@ -8,21 +8,128 @@
8
8
  import { publisher, withEdit } from '../playstore/tools.js';
9
9
  import { checkAppStoreSubmission } from './appstore-submission.js';
10
10
  import { checkPlayStoreRisksInEdit, findPlayTargetReleases } from './risks.js';
11
+ import { catalog } from '#core/lang.js';
11
12
  import { blocksReleaseSubmission, isRiskCheckIncomplete, releaseReadiness } from './release-readiness.js';
12
- const TODO_DIRECTIVE = [
13
- '📋 [AI 지시 — 호출자 에이전트 전용]',
14
- '',
15
- '이 응답은 배포 플랜입니다. 다음 절차를 반드시 따르세요:',
16
- '',
17
- '1. 아래 체크리스트의 미완료(◻︎) 항목을 TodoWrite 도구로 사용자에게 먼저 보여주세요.',
18
- '2. 사용자가 진행에 명시적으로 동의하기 전엔 ⚠️ 비가역 도구를 호출하지 마세요',
19
- ' (playstore_submit_release status=completed, playstore_promote_release status=completed,',
20
- ' appstore_submit_for_review).',
21
- '3. 한 단계 끝날 때마다 TodoWrite로 해당 항목을 completed로 표시하세요.',
22
- '4. 요청 범위에 들어간 미완료 항목만 실행하세요. ⛔ 항목은 원인을 보고하고 중단하세요.',
23
- '5. 비가역 작업의 미리보기를 먼저 보여주고 명시 승인 후 같은 인자로 확정하세요.',
24
- '',
25
- ].join('\n');
13
+ /** Plan text — the directive and checklist the caller agent follows, so it follows the user's language. Read at call time. */
14
+ const P = catalog({
15
+ directive: [
16
+ '📋 [AI 지시 — 호출자 에이전트 전용]',
17
+ '',
18
+ '이 응답은 배포 플랜입니다. 다음 절차를 반드시 따르세요:',
19
+ '',
20
+ '1. 아래 체크리스트의 미완료(◻︎) 항목을 TodoWrite 도구로 사용자에게 먼저 보여주세요.',
21
+ '2. 사용자가 진행에 명시적으로 동의하기 전엔 ⚠️ 비가역 도구를 호출하지 마세요',
22
+ ' (playstore_submit_release status=completed, playstore_promote_release status=completed,',
23
+ ' appstore_submit_for_review).',
24
+ '3. 한 단계 끝날 때마다 TodoWrite로 해당 항목을 completed로 표시하세요.',
25
+ '4. 요청 범위에 들어간 미완료 항목만 실행하세요. ⛔ 항목은 원인을 보고하고 중단하세요.',
26
+ '5. 비가역 작업의 미리보기를 먼저 보여주고 명시 승인 후 같은 인자로 확정하세요.',
27
+ '',
28
+ ],
29
+ planTitle: (platform) => `🎯 ${platform} 배포 플랜`,
30
+ target: (identity) => ` 대상: ${identity}`,
31
+ version: (version) => ` 버전: ${version}`,
32
+ track: (track) => ` 트랙: ${track}`,
33
+ progress: (done, pending, blocked) => ` 진행률: ☑︎ ${done} ◻︎ ${pending} ⛔ ${blocked}`,
34
+ blockers: (n) => ` ⚠️ 블로커 ${n}건 — 먼저 해결해야 제출 가능`,
35
+ checklist: '체크리스트 (TodoWrite로 사용자에게 제시):',
36
+ irreversible: ' ⚠️ 비가역',
37
+ tool: (tool) => ` 도구: ${tool}`,
38
+ footer: 'TodoWrite로 위 미완료 항목을 등록한 후, 사용자 확인을 받고 도구를 단계별로 호출하세요.',
39
+ playAuthOk: 'Google Play 인증 + 트랙 조회 성공',
40
+ playAuthFailed: 'Google Play 인증 또는 트랙 조회 실패',
41
+ buildArrived: (track, versionCode) => `${track} 트랙에 versionCode ${versionCode} 도착 확인`,
42
+ releaseStatus: (status) => `현재 release status: ${status}`,
43
+ noVersionCode: (track, versionCode) => `${track} 트랙에 versionCode ${versionCode} 없음`,
44
+ noRelease: (track) => `${track} 트랙에 release 없음`,
45
+ uploadFirst: 'Gradle / Fastlane / Play Console 업로드를 먼저 완료하세요.',
46
+ ambiguousRelease: (track, versionCode) => `${track} 트랙에 versionCode ${versionCode}와 일치하는 릴리스가 여러 개 있음`,
47
+ playRisksPassed: '제출 위험 점검 통과 (블로커 0)',
48
+ riskSummary: (n, blockers, warnings, incomplete) => `제출 위험 ${n}건 (블로커 ${blockers} / 경고 ${warnings})${incomplete ? ' · 점검 미완료' : ''}`,
49
+ fixAndRecheck: '아래 항목을 수정한 뒤 다시 점검하세요.',
50
+ playNotes: (language) => `릴리즈 노트 등록/갱신 (${language})`,
51
+ playNotesDetail: 'AI 노트 초안 + 사용자 확인 후 적용',
52
+ alreadyCompleted: (track) => `${track} 트랙의 대상 릴리스가 이미 completed 상태임`,
53
+ playSubmit: (track) => `${track} 트랙 release status 변경 (draft → completed)`,
54
+ playSubmitDetail: '⚠️ 비가역에 가까움. 사용자 명시 동의 필수.',
55
+ afterBlockers: '블로커 해결 후 가능',
56
+ appAuthFailed: 'App Store 인증 또는 버전 조회 실패',
57
+ appAmbiguous: 'App Store 버전 대상을 하나로 확정할 수 없음',
58
+ appAmbiguousDetail: '대상 플랫폼과 버전을 확인하고 해당 versionId로 다시 점검하세요.',
59
+ versionFound: (version, state) => `편집 가능한 버전 발견 (${version}, state=${state})`,
60
+ noBuildAttached: '버전에 빌드 미연결',
61
+ buildAttached: '버전에 빌드 연결됨',
62
+ noEditableVersionNamed: (version) => `편집 가능한 ${version} 버전 없음`,
63
+ noEditableVersion: '편집 가능한 버전 없음',
64
+ noEditableVersionDetail: '대상 앱과 버전이 일치하며 편집 가능한지 App Store Connect에서 확인하세요.',
65
+ riskCheckIncomplete: '제출 위험 점검 미완료',
66
+ checkTargetVersion: '대상 버전을 확인하세요.',
67
+ appRisksPassed: '메타데이터·스크린샷·정책 위험 점검 통과',
68
+ appNotes: "What's New (릴리즈 노트) 등록/갱신",
69
+ appNotesDetail: '버전별 로컬라이제이션마다 입력',
70
+ reviewText: 'Promotional Text / Description / Keywords 검토',
71
+ appSubmit: '심사 제출 (reviewSubmissions v2)',
72
+ appSubmitDetail: '⚠️ 비가역. 제출 후 메타/빌드 변경 불가 (REJECTED 시 재편집).',
73
+ }, {
74
+ directive: [
75
+ '📋 [AI directive — for the calling agent only]',
76
+ '',
77
+ 'This response is a release plan. You must follow these steps:',
78
+ '',
79
+ '1. First show the user the incomplete (◻︎) items of the checklist below with the TodoWrite tool.',
80
+ '2. Do not call a ⚠️ irreversible tool before the user explicitly agrees to proceed',
81
+ ' (playstore_submit_release status=completed, playstore_promote_release status=completed,',
82
+ ' appstore_submit_for_review).',
83
+ '3. Each time a step finishes, mark its item completed with TodoWrite.',
84
+ '4. Run only the incomplete items within the requested scope. For a ⛔ item, report the cause and stop.',
85
+ '5. Show the preview of an irreversible operation first, and confirm it with the same arguments only after explicit approval.',
86
+ '',
87
+ ],
88
+ planTitle: (platform) => `🎯 ${platform} release plan`,
89
+ target: (identity) => ` Target: ${identity}`,
90
+ version: (version) => ` Version: ${version}`,
91
+ track: (track) => ` Track: ${track}`,
92
+ progress: (done, pending, blocked) => ` Progress: ☑︎ ${done} ◻︎ ${pending} ⛔ ${blocked}`,
93
+ blockers: (n) => ` ⚠️ ${n} blocker(s) — must be resolved before submission`,
94
+ checklist: 'Checklist (present it to the user with TodoWrite):',
95
+ irreversible: ' ⚠️ irreversible',
96
+ tool: (tool) => ` Tool: ${tool}`,
97
+ footer: 'Register the incomplete items above with TodoWrite, get the user\'s confirmation, then call the tools step by step.',
98
+ playAuthOk: 'Google Play authentication + track lookup succeeded',
99
+ playAuthFailed: 'Google Play authentication or track lookup failed',
100
+ buildArrived: (track, versionCode) => `versionCode ${versionCode} confirmed on the ${track} track`,
101
+ releaseStatus: (status) => `Current release status: ${status}`,
102
+ noVersionCode: (track, versionCode) => `No versionCode ${versionCode} on the ${track} track`,
103
+ noRelease: (track) => `No release on the ${track} track`,
104
+ uploadFirst: 'Complete the Gradle / Fastlane / Play Console upload first.',
105
+ ambiguousRelease: (track, versionCode) => `Multiple releases on the ${track} track match versionCode ${versionCode}`,
106
+ playRisksPassed: 'Submission risk check passed (0 blockers)',
107
+ riskSummary: (n, blockers, warnings, incomplete) => `${n} submission risk(s) (blockers ${blockers} / warnings ${warnings})${incomplete ? ' · check incomplete' : ''}`,
108
+ fixAndRecheck: 'Fix the items below, then check again.',
109
+ playNotes: (language) => `Add/update release notes (${language})`,
110
+ playNotesDetail: 'AI notes draft + apply after user confirmation',
111
+ alreadyCompleted: (track) => `The target release on the ${track} track is already completed`,
112
+ playSubmit: (track) => `Change ${track} track release status (draft → completed)`,
113
+ playSubmitDetail: '⚠️ Close to irreversible. Requires the user\'s explicit approval.',
114
+ afterBlockers: 'Possible after the blockers are resolved',
115
+ appAuthFailed: 'App Store authentication or version lookup failed',
116
+ appAmbiguous: 'Cannot narrow the App Store version target to one',
117
+ appAmbiguousDetail: 'Check the target platform and version, then check again with that versionId.',
118
+ versionFound: (version, state) => `Editable version found (${version}, state=${state})`,
119
+ noBuildAttached: 'No build attached to the version',
120
+ buildAttached: 'Build attached to the version',
121
+ noEditableVersionNamed: (version) => `No editable ${version} version`,
122
+ noEditableVersion: 'No editable version',
123
+ noEditableVersionDetail: 'Check in App Store Connect that the target app and version match and are editable.',
124
+ riskCheckIncomplete: 'Submission risk check incomplete',
125
+ checkTargetVersion: 'Check the target version.',
126
+ appRisksPassed: 'Metadata, screenshot, and policy risk check passed',
127
+ appNotes: "Add/update What's New (release notes)",
128
+ appNotesDetail: 'Enter it for each version localization',
129
+ reviewText: 'Review Promotional Text / Description / Keywords',
130
+ appSubmit: 'Submit for review (reviewSubmissions v2)',
131
+ appSubmitDetail: '⚠️ Irreversible. Metadata/build cannot change after submission (re-edit if REJECTED).',
132
+ });
26
133
  function fmtState(s) {
27
134
  return s === 'done' ? '☑︎' : s === 'blocked' ? '⛔' : '◻︎';
28
135
  }
@@ -39,32 +146,32 @@ function renderPlan(ctx, steps) {
39
146
  const pending = steps.filter((s) => s.state === 'pending').length;
40
147
  const done = steps.filter((s) => s.state === 'done').length;
41
148
  const lines = [];
42
- lines.push(TODO_DIRECTIVE);
43
- lines.push(`🎯 ${ctx.platform} 배포 플랜`);
149
+ lines.push(P().directive.join('\n'));
150
+ lines.push(P().planTitle(ctx.platform));
44
151
  lines.push('');
45
- lines.push(` 대상: ${ctx.identity}`);
46
- lines.push(` 버전: ${ctx.version}`);
152
+ lines.push(P().target(ctx.identity));
153
+ lines.push(P().version(ctx.version));
47
154
  if (ctx.track)
48
- lines.push(` 트랙: ${ctx.track}`);
155
+ lines.push(P().track(ctx.track));
49
156
  lines.push('');
50
- lines.push(` 진행률: ☑︎ ${done} ◻︎ ${pending} ⛔ ${blocked}`);
157
+ lines.push(P().progress(done, pending, blocked));
51
158
  if (blocked > 0) {
52
- lines.push(` ⚠️ 블로커 ${blocked}건 — 먼저 해결해야 제출 가능`);
159
+ lines.push(P().blockers(blocked));
53
160
  }
54
161
  lines.push('');
55
- lines.push('체크리스트 (TodoWrite로 사용자에게 제시):');
162
+ lines.push(P().checklist);
56
163
  lines.push('');
57
164
  for (const s of steps) {
58
- const irr = s.irreversible ? ' ⚠️ 비가역' : '';
165
+ const irr = s.irreversible ? P().irreversible : '';
59
166
  lines.push(`${fmtState(s.state)} ${s.title}${irr}`);
60
167
  if (s.detail)
61
168
  lines.push(` ${s.detail}`);
62
169
  if (s.tool)
63
- lines.push(` 도구: ${s.tool}`);
170
+ lines.push(P().tool(s.tool));
64
171
  }
65
172
  lines.push('');
66
173
  lines.push('—');
67
- lines.push('TodoWrite로 위 미완료 항목을 등록한 후, 사용자 확인을 받고 도구를 단계별로 호출하세요.');
174
+ lines.push(P().footer);
68
175
  return lines.join('\n');
69
176
  }
70
177
  // ─── Play Store ──────────────────────────────────────────────────────
@@ -91,11 +198,11 @@ export async function buildPlayStoreReleasePlan(opts) {
91
198
  const risks = await checkPlayStoreRisksInEdit(auth, packageName, editId, language, target, tracks);
92
199
  return { trackInfo, target, risks };
93
200
  });
94
- steps.push({ state: 'done', title: 'Google Play 인증 + 트랙 조회 성공' });
201
+ steps.push({ state: 'done', title: P().playAuthOk });
95
202
  }
96
203
  catch (e) {
97
204
  const detail = e instanceof Error ? e.message : String(e);
98
- const title = 'Google Play 인증 또는 트랙 조회 실패';
205
+ const title = P().playAuthFailed;
99
206
  steps.push({
100
207
  state: 'blocked',
101
208
  title,
@@ -114,24 +221,24 @@ export async function buildPlayStoreReleasePlan(opts) {
114
221
  if (trackInfo.matchCount === 1) {
115
222
  steps.push({
116
223
  state: 'done',
117
- title: `${track} 트랙에 versionCode ${trackInfo.selectedVersionCode} 도착 확인`,
118
- detail: `현재 release status: ${trackInfo.releaseStatus ?? 'unknown'}`,
224
+ title: P().buildArrived(track, trackInfo.selectedVersionCode),
225
+ detail: P().releaseStatus(trackInfo.releaseStatus ?? 'unknown'),
119
226
  });
120
227
  }
121
228
  else if (trackInfo.matchCount === 0) {
122
229
  steps.push({
123
230
  state: 'blocked',
124
231
  title: versionCode
125
- ? `${track} 트랙에 versionCode ${versionCode} 없음`
126
- : `${track} 트랙에 release 없음`,
127
- detail: 'Gradle / Fastlane / Play Console 업로드를 먼저 완료하세요.',
232
+ ? P().noVersionCode(track, versionCode)
233
+ : P().noRelease(track),
234
+ detail: P().uploadFirst,
128
235
  tool: 'playstore_list_tracks',
129
236
  });
130
237
  }
131
238
  else {
132
239
  steps.push({
133
240
  state: 'blocked',
134
- title: `${track} 트랙에 versionCode ${trackInfo.selectedVersionCode}와 일치하는 릴리스가 여러 개 있음`,
241
+ title: P().ambiguousRelease(track, trackInfo.selectedVersionCode),
135
242
  tool: 'playstore_list_tracks',
136
243
  });
137
244
  }
@@ -139,7 +246,7 @@ export async function buildPlayStoreReleasePlan(opts) {
139
246
  if (risks.length === 0) {
140
247
  steps.push({
141
248
  state: 'done',
142
- title: '제출 위험 점검 통과 (블로커 0)',
249
+ title: P().playRisksPassed,
143
250
  });
144
251
  }
145
252
  else {
@@ -147,33 +254,33 @@ export async function buildPlayStoreReleasePlan(opts) {
147
254
  const warnings = risks.filter((r) => r.level === 'warning');
148
255
  steps.push({
149
256
  state: risks.some(blocksReleaseSubmission) ? 'blocked' : 'pending',
150
- title: `제출 위험 ${risks.length}건 (블로커 ${blockers.length} / 경고 ${warnings.length})${risks.some(isRiskCheckIncomplete) ? ' · 점검 미완료' : ''}`,
151
- detail: '아래 항목을 수정한 뒤 다시 점검하세요.',
257
+ title: P().riskSummary(risks.length, blockers.length, warnings.length, risks.some(isRiskCheckIncomplete)),
258
+ detail: P().fixAndRecheck,
152
259
  });
153
260
  steps.push(...risksToSteps(blockers, 'playstore_update_listing'));
154
261
  steps.push(...risksToSteps(warnings, 'playstore_update_listing'));
155
262
  }
156
- const readiness = releaseReadiness({ store: 'playstore', packageName, track, versionCode: target?.versionCode }, target ? risks : [{ level: 'blocker', code: 'TARGET_BUILD_NOT_FOUND', title: `${track} 트랙에 release 없음`,
157
- detail: 'Gradle / Fastlane / Play Console 업로드를 먼저 완료하세요.' }, ...risks], trackInfo.matchCount === 1);
263
+ const readiness = releaseReadiness({ store: 'playstore', packageName, track, versionCode: target?.versionCode }, target ? risks : [{ level: 'blocker', code: 'TARGET_BUILD_NOT_FOUND', title: P().noRelease(track),
264
+ detail: P().uploadFirst }, ...risks], trackInfo.matchCount === 1);
158
265
  const { canSubmit } = readiness;
159
266
  // 4) 릴리즈 노트
160
267
  steps.push({
161
268
  state: canSubmit ? 'pending' : 'blocked',
162
- title: `릴리즈 노트 등록/갱신 (${language})`,
163
- detail: 'AI 노트 초안 + 사용자 확인 후 적용',
269
+ title: P().playNotes(language),
270
+ detail: P().playNotesDetail,
164
271
  tool: target ? `playstore_update_release_notes (track=${track}, versionCode=${target.versionCode})` : undefined,
165
272
  });
166
273
  // A completed release can coexist with a rollout. Submitting it again could replace that rollout.
167
274
  if (trackInfo.matchCount === 1 && trackInfo.releaseStatus === 'completed') {
168
- steps.push({ state: 'done', title: `${track} 트랙의 대상 릴리스가 이미 completed 상태임` });
275
+ steps.push({ state: 'done', title: P().alreadyCompleted(track) });
169
276
  }
170
277
  else {
171
278
  steps.push({
172
279
  state: canSubmit ? 'pending' : 'blocked',
173
- title: `${track} 트랙 release status 변경 (draft → completed)`,
280
+ title: P().playSubmit(track),
174
281
  detail: canSubmit
175
- ? '⚠️ 비가역에 가까움. 사용자 명시 동의 필수.'
176
- : '블로커 해결 후 가능',
282
+ ? P().playSubmitDetail
283
+ : P().afterBlockers,
177
284
  tool: target ? `playstore_submit_release (track=${track}, versionCode=${target.versionCode})` : undefined,
178
285
  irreversible: true,
179
286
  });
@@ -193,7 +300,7 @@ export async function buildAppStoreReleasePlan(opts) {
193
300
  if (inspection.status === 'error') {
194
301
  steps.push({
195
302
  state: 'blocked',
196
- title: 'App Store 인증 또는 버전 조회 실패',
303
+ title: P().appAuthFailed,
197
304
  detail: readiness.risks[0].detail,
198
305
  tool: 'mimi_seed_auth_status',
199
306
  });
@@ -202,8 +309,8 @@ export async function buildAppStoreReleasePlan(opts) {
202
309
  if (inspection.status === 'ambiguous' || inspection.status === 'incomplete') {
203
310
  steps.push({
204
311
  state: 'blocked',
205
- title: 'App Store 버전 대상을 하나로 확정할 수 없음',
206
- detail: '대상 플랫폼과 버전을 확인하고 해당 versionId로 다시 점검하세요.',
312
+ title: P().appAmbiguous,
313
+ detail: P().appAmbiguousDetail,
207
314
  tool: 'appstore_list_versions',
208
315
  });
209
316
  return { text: renderPlan(context, steps), readiness };
@@ -217,40 +324,40 @@ export async function buildAppStoreReleasePlan(opts) {
217
324
  context.version = `${version.versionString ?? version.id} / ${version.platform}`;
218
325
  steps.push({
219
326
  state: 'done',
220
- title: `편집 가능한 버전 발견 (${version.versionString ?? version.id}, state=${version.state})`,
327
+ title: P().versionFound(version.versionString ?? version.id, version.state),
221
328
  });
222
329
  if (buildRisk) {
223
330
  steps.push({
224
331
  state: 'blocked',
225
- title: buildRisk.code === 'NO_BUILD' ? '버전에 빌드 미연결' : buildRisk.title,
332
+ title: buildRisk.code === 'NO_BUILD' ? P().noBuildAttached : buildRisk.title,
226
333
  detail: buildRisk.detail,
227
334
  tool: 'appstore_list_builds',
228
335
  });
229
336
  }
230
337
  else {
231
- steps.push({ state: 'done', title: '버전에 빌드 연결됨' });
338
+ steps.push({ state: 'done', title: P().buildAttached });
232
339
  }
233
340
  }
234
341
  else {
235
342
  steps.push({
236
343
  state: 'blocked',
237
- title: versionString ? `편집 가능한 ${versionString} 버전 없음` : '편집 가능한 버전 없음',
238
- detail: '대상 앱과 버전이 일치하며 편집 가능한지 App Store Connect에서 확인하세요.',
344
+ title: versionString ? P().noEditableVersionNamed(versionString) : P().noEditableVersion,
345
+ detail: P().noEditableVersionDetail,
239
346
  });
240
347
  }
241
348
  if (!versionId) {
242
- steps.push({ state: 'blocked', title: '제출 위험 점검 미완료', detail: '대상 버전을 확인하세요.' });
349
+ steps.push({ state: 'blocked', title: P().riskCheckIncomplete, detail: P().checkTargetVersion });
243
350
  }
244
351
  else if (risks.length === 0) {
245
- steps.push({ state: 'done', title: '메타데이터·스크린샷·정책 위험 점검 통과' });
352
+ steps.push({ state: 'done', title: P().appRisksPassed });
246
353
  }
247
354
  else {
248
355
  const blockers = risks.filter((r) => r.level === 'blocker');
249
356
  const warnings = risks.filter((r) => r.level === 'warning');
250
357
  steps.push({
251
358
  state: risks.some(blocksReleaseSubmission) ? 'blocked' : 'pending',
252
- title: `제출 위험 ${risks.length}건 (블로커 ${blockers.length} / 경고 ${warnings.length})${risks.some(isRiskCheckIncomplete) ? ' · 점검 미완료' : ''}`,
253
- detail: '아래 항목을 수정한 뒤 다시 점검하세요.',
359
+ title: P().riskSummary(risks.length, blockers.length, warnings.length, risks.some(isRiskCheckIncomplete)),
360
+ detail: P().fixAndRecheck,
254
361
  });
255
362
  steps.push(...risksToSteps(blockers, 'appstore_update_localization'));
256
363
  steps.push(...risksToSteps(warnings, 'appstore_update_localization'));
@@ -259,22 +366,22 @@ export async function buildAppStoreReleasePlan(opts) {
259
366
  // 3) What's New / promotional text / reviewer notes
260
367
  steps.push({
261
368
  state: canSubmit ? 'pending' : 'blocked',
262
- title: "What's New (릴리즈 노트) 등록/갱신",
263
- detail: '버전별 로컬라이제이션마다 입력',
369
+ title: P().appNotes,
370
+ detail: P().appNotesDetail,
264
371
  tool: versionId ? `appstore_update_whats_new (versionId=${versionId})` : undefined,
265
372
  });
266
373
  steps.push({
267
374
  state: canSubmit ? 'pending' : 'blocked',
268
- title: 'Promotional Text / Description / Keywords 검토',
375
+ title: P().reviewText,
269
376
  tool: 'appstore_update_localization',
270
377
  });
271
378
  // 4) 제출
272
379
  steps.push({
273
380
  state: canSubmit ? 'pending' : 'blocked',
274
- title: '심사 제출 (reviewSubmissions v2)',
381
+ title: P().appSubmit,
275
382
  detail: canSubmit
276
- ? '⚠️ 비가역. 제출 후 메타/빌드 변경 불가 (REJECTED 시 재편집).'
277
- : '블로커 해결 후 가능',
383
+ ? P().appSubmitDetail
384
+ : P().afterBlockers,
278
385
  tool: versionId ? `appstore_submit_for_review (versionId=${versionId})` : 'appstore_submit_for_review',
279
386
  irreversible: true,
280
387
  });