@yoonion/mimi-seed-mcp 0.24.0 → 0.25.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/admob/cli.js +34 -5
- package/dist/admob/errors.js +39 -14
- package/dist/ai/client.js +35 -14
- package/dist/ai/notes.js +14 -3
- package/dist/ai/review.js +17 -4
- package/dist/android/keystore-store.js +28 -8
- package/dist/android/keystore.d.ts +17 -2
- package/dist/android/keystore.js +110 -21
- package/dist/android/messages.d.ts +13 -11
- package/dist/android/messages.js +166 -72
- package/dist/android/playstore-sa.js +6 -3
- package/dist/appstore/analytics.js +46 -14
- package/dist/appstore/app-info-policy.js +7 -1
- package/dist/appstore/app-info.js +13 -3
- package/dist/appstore/apps.js +7 -1
- package/dist/appstore/asset-library-write.js +119 -37
- package/dist/appstore/asset-library.js +19 -5
- package/dist/appstore/auth.d.ts +2 -0
- package/dist/appstore/auth.js +31 -5
- package/dist/appstore/client.js +27 -6
- package/dist/appstore/declarations.js +22 -6
- package/dist/appstore/errors.d.ts +1 -1
- package/dist/appstore/errors.js +60 -34
- package/dist/appstore/http.d.ts +6 -0
- package/dist/appstore/http.js +22 -5
- package/dist/appstore/messages.js +86 -28
- package/dist/appstore/previews.js +22 -6
- package/dist/appstore/product-localization.js +10 -2
- package/dist/appstore/product-review.js +29 -10
- package/dist/appstore/products.js +20 -6
- package/dist/appstore/read-response.js +13 -3
- package/dist/appstore/release-target.js +13 -3
- package/dist/appstore/release.js +59 -22
- package/dist/appstore/review-preview.js +17 -6
- package/dist/appstore/review-submission.js +86 -35
- package/dist/appstore/sales.js +96 -44
- package/dist/appstore/screenshots.js +19 -5
- package/dist/appstore/testflight.js +41 -18
- package/dist/appstore/upload-parts.js +12 -3
- package/dist/appstore/versions.js +22 -10
- package/dist/auth/bigquery-auth.js +44 -15
- package/dist/auth/bigquery-setup-cli.js +1 -1
- package/dist/auth/cli.js +4 -2
- package/dist/auth/constants.js +13 -3
- package/dist/auth/drive-auth.d.ts +3 -2
- package/dist/auth/drive-auth.js +47 -17
- package/dist/auth/drive-setup-cli.js +1 -0
- package/dist/auth/errors.d.ts +75 -0
- package/dist/auth/errors.js +190 -86
- package/dist/auth/google-auth.d.ts +3 -1
- package/dist/auth/google-auth.js +39 -27
- package/dist/auth/playstore-auth.d.ts +1 -0
- package/dist/auth/playstore-auth.js +35 -15
- package/dist/auth/scopes.d.ts +11 -29
- package/dist/auth/scopes.js +38 -11
- package/dist/auth/youtube-channel.d.ts +8 -0
- package/dist/auth/youtube-channel.js +11 -3
- package/dist/bigquery/ids.js +19 -5
- package/dist/bigquery/tools.js +24 -8
- package/dist/billing/tools.js +22 -6
- package/dist/checks/appstore-submission.d.ts +1 -1
- package/dist/checks/appstore-submission.js +29 -8
- package/dist/checks/plan.js +169 -62
- package/dist/checks/release-status.js +10 -2
- package/dist/checks/risks.js +230 -63
- package/dist/checks/screenshots.d.ts +4 -4
- package/dist/checks/screenshots.js +63 -22
- package/dist/ci/config.js +8 -5
- package/dist/ci/gitlab.js +3 -1
- package/dist/core/atomic-write.d.ts +5 -2
- package/dist/core/atomic-write.js +8 -4
- package/dist/core/catch-scan.d.ts +17 -0
- package/dist/core/catch-scan.js +111 -0
- package/dist/core/checks/billing.d.ts +5 -0
- package/dist/core/checks/billing.js +36 -5
- package/dist/core/checks/lockfile.js +2 -0
- package/dist/core/checks/release-doctor/fcm.js +1 -0
- package/dist/core/checks/release-doctor/files.d.ts +3 -1
- package/dist/core/checks/release-doctor/files.js +12 -1
- package/dist/core/checks/release-doctor/gradle-apply.js +1 -0
- package/dist/core/checks/release-doctor/ios-xcode.js +22 -3
- package/dist/core/checks/release-doctor/target-sdk.js +1 -1
- package/dist/core/checks/release-doctor/util.d.ts +5 -0
- package/dist/core/checks/release-doctor/util.js +56 -0
- package/dist/core/checks/release-doctor.js +59 -16
- package/dist/core/credential-envelope.d.ts +25 -0
- package/dist/core/credential-envelope.js +66 -0
- package/dist/core/credential-keystore.d.ts +37 -0
- package/dist/core/credential-keystore.js +275 -0
- package/dist/core/credential-read.d.ts +33 -0
- package/dist/core/credential-read.js +112 -0
- package/dist/core/credential-store.d.ts +61 -0
- package/dist/core/credential-store.js +240 -0
- package/dist/core/http-errors.js +1 -0
- package/dist/core/i18n-scan.d.ts +10 -0
- package/dist/core/i18n-scan.js +79 -0
- package/dist/core/json-file.d.ts +30 -0
- package/dist/core/json-file.js +53 -0
- package/dist/core/lang.d.ts +14 -0
- package/dist/core/lang.js +22 -2
- package/dist/core/project-manifest.d.ts +24 -1
- package/dist/core/project-manifest.js +27 -16
- package/dist/drive/tools.js +86 -34
- package/dist/facebook/api.js +3 -1
- package/dist/facebook/config.js +11 -3
- package/dist/facebook/setup.d.ts +2 -0
- package/dist/facebook/setup.js +32 -9
- package/dist/firebase/cli.js +39 -5
- package/dist/firebase/tools.js +36 -10
- package/dist/ga4/cli.js +48 -4
- package/dist/ga4/tools.js +4 -2
- package/dist/googleads/config.js +24 -8
- package/dist/googleads/tools.js +3 -1
- package/dist/gsc/tools.js +10 -2
- package/dist/helpers.d.ts +4 -2
- package/dist/helpers.js +66 -32
- package/dist/i18n/manifest-en.d.ts +6 -0
- package/dist/i18n/manifest-en.js +53 -0
- package/dist/i18n/tools-en/admob.d.ts +25 -0
- package/dist/i18n/tools-en/admob.js +24 -0
- package/dist/i18n/tools-en/ai.d.ts +14 -0
- package/dist/i18n/tools-en/ai.js +13 -0
- package/dist/i18n/tools-en/android.d.ts +14 -0
- package/dist/i18n/tools-en/android.js +13 -0
- package/dist/i18n/tools-en/appstore.d.ts +240 -0
- package/dist/i18n/tools-en/appstore.js +239 -0
- package/dist/i18n/tools-en/auth.d.ts +16 -0
- package/dist/i18n/tools-en/auth.js +15 -0
- package/dist/i18n/tools-en/bigquery.d.ts +16 -0
- package/dist/i18n/tools-en/bigquery.js +15 -0
- package/dist/i18n/tools-en/billing.d.ts +17 -0
- package/dist/i18n/tools-en/billing.js +16 -0
- package/dist/i18n/tools-en/checks.d.ts +23 -0
- package/dist/i18n/tools-en/checks.js +22 -0
- package/dist/i18n/tools-en/ci.d.ts +21 -0
- package/dist/i18n/tools-en/ci.js +20 -0
- package/dist/i18n/tools-en/drive.d.ts +33 -0
- package/dist/i18n/tools-en/drive.js +32 -0
- package/dist/i18n/tools-en/facebook.d.ts +14 -0
- package/dist/i18n/tools-en/facebook.js +13 -0
- package/dist/i18n/tools-en/firebase.d.ts +42 -0
- package/dist/i18n/tools-en/firebase.js +41 -0
- package/dist/i18n/tools-en/ga4.d.ts +35 -0
- package/dist/i18n/tools-en/ga4.js +34 -0
- package/dist/i18n/tools-en/googleads.d.ts +15 -0
- package/dist/i18n/tools-en/googleads.js +14 -0
- package/dist/i18n/tools-en/gsc.d.ts +27 -0
- package/dist/i18n/tools-en/gsc.js +26 -0
- package/dist/i18n/tools-en/iam.d.ts +15 -0
- package/dist/i18n/tools-en/iam.js +14 -0
- package/dist/i18n/tools-en/index.d.ts +7 -0
- package/dist/i18n/tools-en/index.js +58 -0
- package/dist/i18n/tools-en/instagram.d.ts +16 -0
- package/dist/i18n/tools-en/instagram.js +15 -0
- package/dist/i18n/tools-en/jenkins.d.ts +41 -0
- package/dist/i18n/tools-en/jenkins.js +40 -0
- package/dist/i18n/tools-en/naver.d.ts +10 -0
- package/dist/i18n/tools-en/naver.js +9 -0
- package/dist/i18n/tools-en/playstore.d.ts +148 -0
- package/dist/i18n/tools-en/playstore.js +147 -0
- package/dist/i18n/tools-en/registrar.d.ts +6 -0
- package/dist/i18n/tools-en/registrar.js +6 -0
- package/dist/i18n/tools-en/threads.d.ts +21 -0
- package/dist/i18n/tools-en/threads.js +20 -0
- package/dist/i18n/tools-en/tiktok.d.ts +21 -0
- package/dist/i18n/tools-en/tiktok.js +20 -0
- package/dist/i18n/tools-en/video.d.ts +59 -0
- package/dist/i18n/tools-en/video.js +58 -0
- package/dist/i18n/tools-en/youtube.d.ts +44 -0
- package/dist/i18n/tools-en/youtube.js +43 -0
- package/dist/iam/key-files.js +13 -3
- package/dist/instagram/api.js +19 -5
- package/dist/instagram/config.js +11 -3
- package/dist/instagram/setup.js +37 -11
- package/dist/jenkins/builds.d.ts +2 -2
- package/dist/jenkins/builds.js +70 -30
- package/dist/jenkins/config.d.ts +5 -0
- package/dist/jenkins/config.js +25 -6
- package/dist/jenkins/credentials.js +33 -13
- package/dist/jenkins/http.js +6 -3
- package/dist/jenkins/jobs.js +19 -5
- package/dist/jenkins/messages.js +93 -36
- package/dist/lib/cli-args.js +13 -7
- package/dist/lib/google-errors.js +31 -9
- package/dist/lib/http.js +10 -3
- package/dist/lib/json-file.d.ts +15 -0
- package/dist/lib/json-file.js +65 -0
- package/dist/lib/meta-auth.d.ts +1 -1
- package/dist/lib/meta-auth.js +26 -8
- package/dist/lib/package-name.js +15 -4
- package/dist/lib/package-root.js +1 -1
- package/dist/lib/paginate.js +10 -2
- package/dist/lib/path-containment.js +22 -6
- package/dist/lib/resource-id.js +10 -3
- package/dist/lib/store-create-result.js +54 -13
- package/dist/lib/text-validators.js +20 -5
- package/dist/lib/tool-registrar.d.ts +9 -0
- package/dist/lib/tool-registrar.js +33 -14
- package/dist/lib/tool-text.d.ts +31 -0
- package/dist/lib/tool-text.js +52 -0
- package/dist/lib/toolsets.js +13 -3
- package/dist/lib/url-path.js +3 -1
- package/dist/naver/tools.js +138 -46
- package/dist/playstore/data-safety.js +16 -4
- package/dist/playstore/errors.js +33 -8
- package/dist/playstore/financials.js +83 -35
- package/dist/playstore/listing.js +7 -1
- package/dist/playstore/messages.js +179 -57
- package/dist/playstore/products.js +10 -2
- package/dist/playstore/recovery.js +10 -2
- package/dist/playstore/releases.js +34 -14
- package/dist/playstore/reviews.js +14 -4
- package/dist/playstore/statistics.js +3 -1
- package/dist/prompts.js +160 -50
- package/dist/registers/admob.js +36 -11
- package/dist/registers/android.js +25 -9
- package/dist/registers/appstore/apps.js +22 -6
- package/dist/registers/appstore/customer-reviews.js +7 -1
- package/dist/registers/appstore/declarations.js +63 -19
- package/dist/registers/appstore/media.js +76 -24
- package/dist/registers/appstore/metadata.js +26 -8
- package/dist/registers/appstore/products.js +53 -19
- package/dist/registers/appstore/review-submission.js +31 -9
- package/dist/registers/appstore/testflight.js +82 -24
- package/dist/registers/appstore/versions.js +88 -30
- package/dist/registers/auth.js +343 -90
- package/dist/registers/bigquery.js +54 -14
- package/dist/registers/billing.js +18 -4
- package/dist/registers/checks.js +20 -5
- package/dist/registers/ci.js +60 -20
- package/dist/registers/drive.js +18 -7
- package/dist/registers/facebook.js +31 -9
- package/dist/registers/firebase.js +21 -7
- package/dist/registers/googleads.js +23 -6
- package/dist/registers/gsc.js +3 -1
- package/dist/registers/iam.js +44 -13
- package/dist/registers/instagram.js +19 -5
- package/dist/registers/jenkins.js +43 -14
- package/dist/registers/naver.js +13 -3
- package/dist/registers/playstore/financials.d.ts +6 -0
- package/dist/registers/playstore/financials.js +48 -0
- package/dist/registers/playstore/listing.d.ts +15 -0
- package/dist/registers/playstore/listing.js +138 -0
- package/dist/registers/playstore/media.d.ts +6 -0
- package/dist/registers/playstore/media.js +56 -0
- package/dist/registers/playstore/products.d.ts +21 -0
- package/dist/registers/playstore/products.js +238 -0
- package/dist/registers/playstore/recovery.d.ts +11 -0
- package/dist/registers/playstore/recovery.js +105 -0
- package/dist/registers/playstore/releases.d.ts +8 -0
- package/dist/registers/playstore/releases.js +157 -0
- package/dist/registers/playstore/reviews.d.ts +6 -0
- package/dist/registers/playstore/reviews.js +43 -0
- package/dist/registers/playstore/service-accounts.d.ts +13 -0
- package/dist/registers/playstore/service-accounts.js +127 -0
- package/dist/registers/playstore/shared.d.ts +12 -0
- package/dist/registers/playstore/shared.js +24 -0
- package/dist/registers/playstore.d.ts +8 -0
- package/dist/registers/playstore.js +28 -734
- package/dist/registers/threads.js +28 -8
- package/dist/registers/tiktok.js +4 -2
- package/dist/registers/video.js +3 -1
- package/dist/remote-sync.js +80 -28
- package/dist/resources.d.ts +0 -8
- package/dist/resources.js +73 -32
- package/dist/server.d.ts +2 -0
- package/dist/server.js +9 -1
- package/dist/social/profile-store.js +36 -12
- package/dist/social/setup-cli.js +1 -1
- package/dist/threads/api.js +23 -6
- package/dist/threads/setup.js +42 -14
- package/dist/tiktok-business/api.js +13 -3
- package/dist/tiktok-business/auth.js +10 -2
- package/dist/tiktok-business/config.js +8 -3
- package/dist/tiktok-business/posting.d.ts +6 -0
- package/dist/tiktok-business/posting.js +118 -36
- package/dist/tiktok-business/setup-cli.js +3 -1
- package/dist/tools-cli.js +4 -5
- package/dist/video/captions.js +3 -1
- package/dist/video/files.js +13 -3
- package/dist/video/project.js +65 -21
- package/dist/video/providers.js +52 -16
- package/dist/video/render.js +71 -22
- package/dist/video/research.js +10 -2
- package/dist/video/schemas.js +19 -5
- package/dist/video/youtube-publish.js +62 -32
- package/package.json +1 -1
package/dist/bigquery/tools.js
CHANGED
|
@@ -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(
|
|
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(
|
|
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(
|
|
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:
|
|
140
|
-
+ (jobId ? `작업 ID ${jobId} 는 BigQuery 에서 계속 실행 중일 수 있습니다.` : ''),
|
|
156
|
+
note: M().incomplete(Math.round((30_000 + budget) / 1000), jobId),
|
|
141
157
|
}),
|
|
142
158
|
};
|
|
143
159
|
}
|
package/dist/billing/tools.js
CHANGED
|
@@ -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',
|
|
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
|
-
?
|
|
63
|
-
:
|
|
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',
|
|
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: "
|
|
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:
|
|
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:
|
|
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:
|
|
63
|
+
title: A().ambiguous,
|
|
64
|
+
detail: A().ambiguousDetail,
|
|
44
65
|
});
|
|
45
66
|
}
|
|
46
67
|
const { version } = selection;
|
package/dist/checks/plan.js
CHANGED
|
@@ -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
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
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(
|
|
43
|
-
lines.push(
|
|
149
|
+
lines.push(P().directive.join('\n'));
|
|
150
|
+
lines.push(P().planTitle(ctx.platform));
|
|
44
151
|
lines.push('');
|
|
45
|
-
lines.push(
|
|
46
|
-
lines.push(
|
|
152
|
+
lines.push(P().target(ctx.identity));
|
|
153
|
+
lines.push(P().version(ctx.version));
|
|
47
154
|
if (ctx.track)
|
|
48
|
-
lines.push(
|
|
155
|
+
lines.push(P().track(ctx.track));
|
|
49
156
|
lines.push('');
|
|
50
|
-
lines.push(
|
|
157
|
+
lines.push(P().progress(done, pending, blocked));
|
|
51
158
|
if (blocked > 0) {
|
|
52
|
-
lines.push(
|
|
159
|
+
lines.push(P().blockers(blocked));
|
|
53
160
|
}
|
|
54
161
|
lines.push('');
|
|
55
|
-
lines.push(
|
|
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(
|
|
170
|
+
lines.push(P().tool(s.tool));
|
|
64
171
|
}
|
|
65
172
|
lines.push('');
|
|
66
173
|
lines.push('—');
|
|
67
|
-
lines.push(
|
|
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:
|
|
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 =
|
|
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:
|
|
118
|
-
detail:
|
|
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
|
-
?
|
|
126
|
-
:
|
|
127
|
-
detail:
|
|
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:
|
|
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:
|
|
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:
|
|
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:
|
|
157
|
-
detail:
|
|
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:
|
|
163
|
-
detail:
|
|
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:
|
|
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:
|
|
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:
|
|
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:
|
|
206
|
-
detail:
|
|
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:
|
|
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' ?
|
|
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 ?
|
|
238
|
-
detail:
|
|
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:
|
|
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:
|
|
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:
|
|
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:
|
|
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:
|
|
381
|
+
title: P().appSubmit,
|
|
275
382
|
detail: canSubmit
|
|
276
|
-
?
|
|
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
|
});
|
|
@@ -1,15 +1,23 @@
|
|
|
1
1
|
import { resolveAppStoreVersionBuild, selectAppStoreVersionForStatus } from '../appstore/release-target.js';
|
|
2
2
|
import { requirePlayStoreAuth } from '../helpers.js';
|
|
3
3
|
import { listTracks } from '../playstore/tools.js';
|
|
4
|
+
import { catalog } from '#core/lang.js';
|
|
5
|
+
const T = catalog({
|
|
6
|
+
ambiguous: '일치하는 App Store 버전이 여러 개입니다. appStorePlatform을 지정하거나 버전 ID로 appstore_release_status를 호출하세요.',
|
|
7
|
+
incomplete: 'App Store 버전 목록이 불완전하여 대상을 확인할 수 없습니다.',
|
|
8
|
+
}, {
|
|
9
|
+
ambiguous: 'Multiple App Store versions match. Set appStorePlatform, or call appstore_release_status with the version ID.',
|
|
10
|
+
incomplete: 'The App Store version list is incomplete, so the target cannot be determined.',
|
|
11
|
+
});
|
|
4
12
|
async function readAppStoreStatus(appId, version, platform) {
|
|
5
13
|
const selection = await selectAppStoreVersionForStatus(appId, version, platform);
|
|
6
14
|
if (selection.status === 'missing')
|
|
7
15
|
return { found: false };
|
|
8
16
|
if (selection.status === 'ambiguous') {
|
|
9
|
-
return { error:
|
|
17
|
+
return { error: T().ambiguous };
|
|
10
18
|
}
|
|
11
19
|
if (selection.status === 'incomplete') {
|
|
12
|
-
return { error:
|
|
20
|
+
return { error: T().incomplete };
|
|
13
21
|
}
|
|
14
22
|
const selected = selection.version;
|
|
15
23
|
const attachedBuild = await resolveAppStoreVersionBuild(selected);
|