@pofky/asc-mcp 1.11.2 → 1.12.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/README.md +19 -14
- package/USER_GUIDE.md +27 -23
- package/dist/client.d.ts +9 -0
- package/dist/client.d.ts.map +1 -1
- package/dist/client.js +18 -2
- package/dist/client.js.map +1 -1
- package/dist/errors.d.ts.map +1 -1
- package/dist/errors.js +8 -2
- package/dist/errors.js.map +1 -1
- package/dist/gate.js +1 -1
- package/dist/gate.js.map +1 -1
- package/dist/image-size.d.ts +6 -0
- package/dist/image-size.d.ts.map +1 -0
- package/dist/image-size.js +36 -0
- package/dist/image-size.js.map +1 -0
- package/dist/index.d.ts.map +1 -1
- package/dist/index.js +68 -11
- package/dist/index.js.map +1 -1
- package/dist/instructions.d.ts.map +1 -1
- package/dist/instructions.js +2 -1
- package/dist/instructions.js.map +1 -1
- package/dist/tool-meta.d.ts +5 -0
- package/dist/tool-meta.d.ts.map +1 -1
- package/dist/tool-meta.js +6 -1
- package/dist/tool-meta.js.map +1 -1
- package/dist/tools/age-rating.d.ts +14 -3
- package/dist/tools/age-rating.d.ts.map +1 -1
- package/dist/tools/age-rating.js +84 -11
- package/dist/tools/age-rating.js.map +1 -1
- package/dist/tools/app-details.d.ts.map +1 -1
- package/dist/tools/app-details.js +20 -2
- package/dist/tools/app-details.js.map +1 -1
- package/dist/tools/builds.d.ts +1 -0
- package/dist/tools/builds.d.ts.map +1 -1
- package/dist/tools/builds.js +13 -5
- package/dist/tools/builds.js.map +1 -1
- package/dist/tools/bundle-id.d.ts +30 -0
- package/dist/tools/bundle-id.d.ts.map +1 -0
- package/dist/tools/bundle-id.js +96 -0
- package/dist/tools/bundle-id.js.map +1 -0
- package/dist/tools/guide.d.ts.map +1 -1
- package/dist/tools/guide.js +9 -5
- package/dist/tools/guide.js.map +1 -1
- package/dist/tools/local-build.d.ts +8 -0
- package/dist/tools/local-build.d.ts.map +1 -1
- package/dist/tools/local-build.js +55 -8
- package/dist/tools/local-build.js.map +1 -1
- package/dist/tools/screenshots.d.ts +12 -1
- package/dist/tools/screenshots.d.ts.map +1 -1
- package/dist/tools/screenshots.js +104 -3
- package/dist/tools/screenshots.js.map +1 -1
- package/dist/tools/signing.d.ts +2 -0
- package/dist/tools/signing.d.ts.map +1 -1
- package/dist/tools/signing.js +49 -4
- package/dist/tools/signing.js.map +1 -1
- package/dist/tools/submission.d.ts.map +1 -1
- package/dist/tools/submission.js +20 -1
- package/dist/tools/submission.js.map +1 -1
- package/dist/tools/testflight-setup.d.ts +52 -0
- package/dist/tools/testflight-setup.d.ts.map +1 -0
- package/dist/tools/testflight-setup.js +198 -0
- package/dist/tools/testflight-setup.js.map +1 -0
- package/dist/tools/testflight.d.ts +0 -1
- package/dist/tools/testflight.d.ts.map +1 -1
- package/dist/tools/testflight.js +49 -3
- package/dist/tools/testflight.js.map +1 -1
- package/package.json +12 -3
package/dist/tools/age-rating.js
CHANGED
|
@@ -1,8 +1,36 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.AGE_RATING_SCALE = void 0;
|
|
4
|
+
exports.describeRating = describeRating;
|
|
3
5
|
exports.setAgeRating = setAgeRating;
|
|
6
|
+
const client_js_1 = require("../client.js");
|
|
4
7
|
const gate_js_1 = require("../gate.js");
|
|
5
8
|
const app_info_js_1 = require("../app-info.js");
|
|
9
|
+
/**
|
|
10
|
+
* Apple's current scale is 4+, 9+, 13+, 16+, 18+ (introduced with the 2025
|
|
11
|
+
* overhaul; the old 12+ and 17+ tiers are gone). Sources:
|
|
12
|
+
* https://developer.apple.com/help/app-store-connect/reference/app-information/age-ratings-values-and-definitions
|
|
13
|
+
* https://developer.apple.com/documentation/appstoreconnectapi/ageratingdeclaration
|
|
14
|
+
* Apple's API reference pages are script-rendered, so the read-back below is
|
|
15
|
+
* best effort: it reports appInfo.appStoreAgeRating only when Apple returns it.
|
|
16
|
+
*/
|
|
17
|
+
exports.AGE_RATING_SCALE = "4+/9+/13+/16+/18+";
|
|
18
|
+
/**
|
|
19
|
+
* The API still reports some brackets by their pre-July-2025 enum names (seen on a new app on
|
|
20
|
+
* 15 Nov 2026: SEVENTEEN_PLUS). Apple moved 12+ to 13+ and 17+ to 18+ in that change.
|
|
21
|
+
*/
|
|
22
|
+
const LEGACY_BRACKET = { TWELVE_PLUS: "13+", SEVENTEEN_PLUS: "18+" };
|
|
23
|
+
const BRACKET = {
|
|
24
|
+
FOUR_PLUS: "4+", NINE_PLUS: "9+", THIRTEEN_PLUS: "13+", SIXTEEN_PLUS: "16+", EIGHTEEN_PLUS: "18+",
|
|
25
|
+
};
|
|
26
|
+
/** "SEVENTEEN_PLUS" -> "18+ (Apple's API reports it as SEVENTEEN_PLUS, the pre-2025 name)". */
|
|
27
|
+
function describeRating(raw) {
|
|
28
|
+
if (BRACKET[raw])
|
|
29
|
+
return `${BRACKET[raw]} (${raw})`;
|
|
30
|
+
if (LEGACY_BRACKET[raw])
|
|
31
|
+
return `${LEGACY_BRACKET[raw]} (Apple's API reports it as ${raw}, the pre-2025 name)`;
|
|
32
|
+
return raw;
|
|
33
|
+
}
|
|
6
34
|
/**
|
|
7
35
|
* Content-frequency declarations (NONE | INFREQUENT_OR_MILD | FREQUENT_OR_INTENSE).
|
|
8
36
|
* These drive Apple's computed age rating. Anything you don't set keeps its
|
|
@@ -34,7 +62,15 @@ const BOOLEAN_KEYS = new Set([
|
|
|
34
62
|
"advertising",
|
|
35
63
|
"parentalControls",
|
|
36
64
|
"ageAssurance",
|
|
65
|
+
// Required by Apple since late 2026: a PATCH without it 409s with
|
|
66
|
+
// "You must provide a value for the attribute 'socialMedia'" (seen 15 Nov 2026).
|
|
67
|
+
"socialMedia",
|
|
37
68
|
]);
|
|
69
|
+
/**
|
|
70
|
+
* Boolean declarations Apple asks only in some cases (socialMediaAgeRestricted
|
|
71
|
+
* follows socialMedia: true). Accepted from the caller, never defaulted.
|
|
72
|
+
*/
|
|
73
|
+
const OPTIONAL_BOOLEAN_KEYS = new Set(["socialMediaAgeRestricted"]);
|
|
38
74
|
/** Override/meta keys: never defaulted, kept at their current value. */
|
|
39
75
|
const KEEP_KEYS = new Set([
|
|
40
76
|
// ageRatingOverride (V1) is deprecated and conflicts with V2; never echo it.
|
|
@@ -42,6 +78,7 @@ const KEEP_KEYS = new Set([
|
|
|
42
78
|
"koreaAgeRatingOverride",
|
|
43
79
|
"kidsAgeBand",
|
|
44
80
|
"developerAgeRatingInfoUrl",
|
|
81
|
+
"gracRatingClassificationNumber",
|
|
45
82
|
]);
|
|
46
83
|
const FREQUENCY_VALUES = new Set([
|
|
47
84
|
"NONE",
|
|
@@ -52,8 +89,8 @@ const FREQUENCY_VALUES = new Set([
|
|
|
52
89
|
]);
|
|
53
90
|
/**
|
|
54
91
|
* Set the app's age-rating declarations. Apple computes the final rating (4+,
|
|
55
|
-
* 9+,
|
|
56
|
-
* topics: { medicalOrTreatmentInformation: "INFREQUENT_OR_MILD" } ->
|
|
92
|
+
* 9+, 13+, 16+, 18+) from these. Example for a wellness app that mentions health
|
|
93
|
+
* topics: { medicalOrTreatmentInformation: "INFREQUENT_OR_MILD" } -> 13+.
|
|
57
94
|
*/
|
|
58
95
|
async function setAgeRating(client, args, tier) {
|
|
59
96
|
const gate = (0, gate_js_1.requirePro)(tier, "Setting the age rating", "set_age_rating");
|
|
@@ -71,7 +108,7 @@ async function setAgeRating(client, args, tier) {
|
|
|
71
108
|
}
|
|
72
109
|
attributes[key] = v;
|
|
73
110
|
}
|
|
74
|
-
else if (BOOLEAN_KEYS.has(key)) {
|
|
111
|
+
else if (BOOLEAN_KEYS.has(key) || OPTIONAL_BOOLEAN_KEYS.has(key)) {
|
|
75
112
|
attributes[key] = value === true || value === "true";
|
|
76
113
|
}
|
|
77
114
|
else {
|
|
@@ -120,13 +157,49 @@ async function setAgeRating(client, args, tier) {
|
|
|
120
157
|
}
|
|
121
158
|
}
|
|
122
159
|
Object.assign(full, attributes);
|
|
123
|
-
|
|
124
|
-
|
|
125
|
-
|
|
126
|
-
const
|
|
127
|
-
|
|
128
|
-
|
|
129
|
-
|
|
130
|
-
|
|
160
|
+
// A fresh app has no frequency answer at all. Then every key the caller did
|
|
161
|
+
// not pass is filed as NONE/false, which is an answer nobody gave.
|
|
162
|
+
const freshApp = [...FREQUENCY_KEYS].every((k) => current[k] === undefined || current[k] === null);
|
|
163
|
+
const defaulted = Object.keys(full).filter((k) => !(k in attributes) && (FREQUENCY_KEYS.has(k) || BOOLEAN_KEYS.has(k)) && (current[k] === undefined || current[k] === null));
|
|
164
|
+
try {
|
|
165
|
+
await client.patch(`/v1/ageRatingDeclarations/${ardId}`, {
|
|
166
|
+
data: { type: "ageRatingDeclarations", id: ardId, attributes: full },
|
|
167
|
+
});
|
|
168
|
+
}
|
|
169
|
+
catch (err) {
|
|
170
|
+
// Apple adds questions without notice; name the new one instead of blaming a value.
|
|
171
|
+
const missing = err instanceof client_js_1.ASCAPIError && err.status === 409 ? /provide a value for the attribute '([A-Za-z]+)'/.exec(err.message)?.[1] : undefined;
|
|
172
|
+
if (missing) {
|
|
173
|
+
return (`Nothing was written: Apple now requires an age-rating answer this tool does not know yet, '${missing}'. ` +
|
|
174
|
+
"Next: the AI reports it as an asc-mcp bug (the key list in src/tools/age-rating.ts needs it); the human can answer it in App Store Connect > the app > App Information > Age Rating meanwhile.");
|
|
175
|
+
}
|
|
176
|
+
throw err;
|
|
177
|
+
}
|
|
178
|
+
const line = (k) => `- ${k} = ${full[k]}${k in attributes ? "" : defaulted.includes(k) ? " (default written, you did not pass it)" : " (kept current value)"}`;
|
|
179
|
+
let out = `Age-rating declarations written (${Object.keys(full).length} values, Apple needs the full set):\n` +
|
|
180
|
+
Object.keys(full).map(line).join("\n");
|
|
181
|
+
if (freshApp && Object.keys(attributes).length < FREQUENCY_KEYS.size + BOOLEAN_KEYS.size) {
|
|
182
|
+
out +=
|
|
183
|
+
`\n\nWarning: this app had no age-rating answers yet, and ${defaulted.length} declaration(s) were filed as NONE or false because you did not pass them. ` +
|
|
184
|
+
"The human confirms each of those is true for the app. If one is not, the AI calls set_age_rating again with the real value.";
|
|
185
|
+
}
|
|
186
|
+
// Read back what Apple computed, when the API exposes it.
|
|
187
|
+
let computed = null;
|
|
188
|
+
try {
|
|
189
|
+
const back = await client.get(`/v1/appInfos/${appInfo.id}`, {
|
|
190
|
+
"fields[appInfos]": "appStoreAgeRating",
|
|
191
|
+
});
|
|
192
|
+
const d = Array.isArray(back.data) ? back.data[0] : back.data;
|
|
193
|
+
const r = d?.attributes?.appStoreAgeRating;
|
|
194
|
+
if (typeof r === "string" && r)
|
|
195
|
+
computed = r;
|
|
196
|
+
}
|
|
197
|
+
catch {
|
|
198
|
+
/* not exposed for this key or app: say so below */
|
|
199
|
+
}
|
|
200
|
+
out += computed
|
|
201
|
+
? `\n\nApple's computed rating: ${describeRating(computed)} (scale ${exports.AGE_RATING_SCALE}).`
|
|
202
|
+
: `\n\nApple's API did not return the computed rating (scale ${exports.AGE_RATING_SCALE}). The human reads it in App Store Connect > the app > App Information > Age Rating before submitting.`;
|
|
203
|
+
return out;
|
|
131
204
|
}
|
|
132
205
|
//# sourceMappingURL=age-rating.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"age-rating.js","sourceRoot":"","sources":["../../src/tools/age-rating.ts"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"age-rating.js","sourceRoot":"","sources":["../../src/tools/age-rating.ts"],"names":[],"mappings":";;;AAyBA,wCAIC;AA0ED,oCAoHC;AA3ND,4CAA2D;AAE3D,wCAAwC;AACxC,gDAA8F;AAE9F;;;;;;;GAOG;AACU,QAAA,gBAAgB,GAAG,mBAAmB,CAAC;AAEpD;;;GAGG;AACH,MAAM,cAAc,GAA2B,EAAE,WAAW,EAAE,KAAK,EAAE,cAAc,EAAE,KAAK,EAAE,CAAC;AAC7F,MAAM,OAAO,GAA2B;IACtC,SAAS,EAAE,IAAI,EA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AAM,MAAM,CAAC,GAAG,CAA0B,gBAAgB,OAAO,CAAC,EAAE,EAAE,EAAE;YACnF,kBAAkB,EAAE,mBAAmB;SACxC,CAAC,CAAC;QACH,MAAM,CAAC,GAAG,KAAK,CAAC,OAAO,CAAC,IAAI,CAAC,IAAI,CAAC,CAAC,CAAC,CAAC,IAAI,CAAC,IAAI,CAAC,CAAC,CAAC,CAAC,CAAC,CAAC,IAAI,CAAC,IAAI,CAAC;QAC9D,MAAM,CAAC,GAAG,CAAC,EAAE,UAAU,EAAE,iBAAiB,CAAC;QAC3C,IAAI,OAAO,CAAC,KAAK,QAAQ,IAAI,CAAC;YAAE,QAAQ,GAAG,CAAC,CAAC;IAC/C,CAAC;IAAC,MAAM,CAAC;QACP,mDAAmD;IACrD,CAAC;IACD,GAAG,IAAI,QAAQ;QACb,CAAC,CAAC,gCAAgC,cAAc,CAAC,QAAQ,CAAC,WAAW,wBAAgB,IAAI;QACzF,CAAC,CAAC,6DAA6D,wBAAgB,wGAAwG,CAAC;IAC1L,OAAO,GAAG,CAAC;AACb,CAAC"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"app-details.d.ts","sourceRoot":"","sources":["../../src/tools/app-details.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,SAAS,EAAE,MAAM,cAAc,CAAC;
|
|
1
|
+
{"version":3,"file":"app-details.d.ts","sourceRoot":"","sources":["../../src/tools/app-details.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,SAAS,EAAE,MAAM,cAAc,CAAC;AA4B9C,eAAO,MAAM,oBAAoB;;;;;;;;;;;;;CAehC,CAAC;AAEF,wBAAsB,UAAU,CAC9B,MAAM,EAAE,SAAS,EACjB,IAAI,EAAE;IAAE,MAAM,EAAE,MAAM,CAAA;CAAE,GACvB,OAAO,CAAC,MAAM,CAAC,CAgEjB"}
|
|
@@ -4,7 +4,7 @@ exports.appDetailsDefinition = void 0;
|
|
|
4
4
|
exports.appDetails = appDetails;
|
|
5
5
|
exports.appDetailsDefinition = {
|
|
6
6
|
name: "app_details",
|
|
7
|
-
description: "Get detailed information about an app
|
|
7
|
+
description: "Get detailed information about an app: recent versions with release state and copyright, and the newest version's App Review contact.",
|
|
8
8
|
inputSchema: {
|
|
9
9
|
type: "object",
|
|
10
10
|
properties: {
|
|
@@ -25,7 +25,7 @@ async function appDetails(client, args) {
|
|
|
25
25
|
: appResponse.data;
|
|
26
26
|
// Fetch latest versions
|
|
27
27
|
const versionsResponse = await client.get(`/v1/apps/${args.app_id}/appStoreVersions`, {
|
|
28
|
-
"fields[appStoreVersions]": "versionString,platform,appStoreState,createdDate,releaseType,earliestReleaseDate",
|
|
28
|
+
"fields[appStoreVersions]": "versionString,platform,appStoreState,createdDate,releaseType,earliestReleaseDate,copyright",
|
|
29
29
|
limit: "5",
|
|
30
30
|
});
|
|
31
31
|
const versions = Array.isArray(versionsResponse.data)
|
|
@@ -45,6 +45,24 @@ async function appDetails(client, args) {
|
|
|
45
45
|
result += ` - created ${v.attributes.createdDate.split("T")[0]}`;
|
|
46
46
|
}
|
|
47
47
|
result += "\n";
|
|
48
|
+
result += ` - Copyright: ${v.attributes.copyright || "not set"}\n`;
|
|
49
|
+
}
|
|
50
|
+
// The newest version's App Review contact, so a second app can reuse the account's real answers (found shipping a test app).
|
|
51
|
+
const newest = versions[0];
|
|
52
|
+
try {
|
|
53
|
+
const detail = await client.get(`/v1/appStoreVersions/${newest.id}/appStoreReviewDetail`);
|
|
54
|
+
const d = (Array.isArray(detail.data) ? detail.data[0] : detail.data)?.attributes;
|
|
55
|
+
if (d) {
|
|
56
|
+
const name = [d.contactFirstName, d.contactLastName].filter(Boolean).join(" ");
|
|
57
|
+
result += `\n### App Review contact (v${newest.attributes.versionString})\n\n`;
|
|
58
|
+
result += `- **Name**: ${name || "not set"}\n`;
|
|
59
|
+
result += `- **Phone**: ${d.contactPhone || "not set"}\n`;
|
|
60
|
+
result += `- **Email**: ${d.contactEmail || "not set"}\n`;
|
|
61
|
+
result += `- **Demo account required**: ${d.demoAccountRequired === true ? "yes" : d.demoAccountRequired === false ? "no" : "not set"}\n`;
|
|
62
|
+
}
|
|
63
|
+
}
|
|
64
|
+
catch {
|
|
65
|
+
result += `\n### App Review contact (v${newest.attributes.versionString})\n\nNot set yet (set_review_contact writes it).\n`;
|
|
48
66
|
}
|
|
49
67
|
}
|
|
50
68
|
else {
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"app-details.js","sourceRoot":"","sources":["../../src/tools/app-details.ts"],"names":[],"mappings":";;;
|
|
1
|
+
{"version":3,"file":"app-details.js","sourceRoot":"","sources":["../../src/tools/app-details.ts"],"names":[],"mappings":";;;AA6CA,gCAmEC;AApFY,QAAA,oBAAoB,GAAG;IAClC,IAAI,EAAE,aAAa;IACnB,WAAW,EACT,uIAAuI;IACzI,WAAW,EAAE;QACX,IAAI,EAAE,QAAiB;QACvB,UAAU,EAAE;YACV,MAAM,EAAE;gBACN,IAAI,EAAE,QAAQ;gBACd,WAAW,EACT,0EAA0E;aAC7E;SACF;QACD,QAAQ,EAAE,CAAC,QAAQ,CAAC;KACrB;CACF,CAAC;AAEK,KAAK,UAAU,UAAU,CAC9B,MAAiB,EACjB,IAAwB;IAExB,MAAM,WAAW,GAAG,MAAM,MAAM,CAAC,GAAG,CAClC,YAAY,IAAI,CAAC,MAAM,EAAE,EACzB;QACE,cAAc,EAAE,0DAA0D;KAC3E,CACF,CAAC;IAEF,MAAM,GAAG,GAAG,KAAK,CAAC,OAAO,CAAC,WAAW,CAAC,IAAI,CAAC;QACzC,CAAC,CAAC,WAAW,CAAC,IAAI,CAAC,CAAC,CAAC;QACrB,CAAC,CAAC,WAAW,CAAC,IAAI,CAAC;IAErB,wBAAwB;IACxB,MAAM,gBAAgB,GAAG,MAAM,MAAM,CAAC,GAAG,CACvC,YAAY,IAAI,CAAC,MAAM,mBAAmB,EAC1C;QACE,0BAA0B,EACxB,4FAA4F;QAC9F,KAAK,EAAE,GAAG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2B;QACvC,QAAQ,EAAE,UAAU;QACpB,kBAAkB,EAAE,oBAAoB;QACxC,2BAA2B,EAAE,mBAAmB;QAChD,SAAS,EAAE,WAAW;QACtB,cAAc,EAAE,gBAAgB;QAChC,iBAAiB,EAAE,mBAAmB;QACtC,qBAAqB,EAAE,uBAAuB;QAC9C,gBAAgB,EAAE,kBAAkB;QACpC,yBAAyB,EAAE,2BAA2B;QACtD,sBAAsB,EAAE,wBAAwB;QAChD,uBAAuB,EAAE,yBAAyB;QAClD,wBAAwB,EAAE,0BAA0B;QACpD,gBAAgB,EAAE,kBAAkB;QACpC,cAAc,EAAE,gBAAgB;QAChC,QAAQ,EAAE,UAAU;QACpB,yBAAyB,EAAE,2BAA2B;QACtD,6BAA6B,EAAE,+BAA+B;QAC9D,kBAAkB,EAAE,oBAAoB;KACzC,CAAC;IACF,OAAO,QAAQ,CAAC,KAAK,CAAC,IAAI,KAAK,CAAC;AAClC,CAAC"}
|
package/dist/tools/builds.d.ts
CHANGED
|
@@ -12,6 +12,7 @@ export declare function listBuilds(client: ASCClient, args: {
|
|
|
12
12
|
*/
|
|
13
13
|
export declare function waitForBuild(client: ASCClient, args: {
|
|
14
14
|
app_id: string;
|
|
15
|
+
build_number?: string;
|
|
15
16
|
max_wait_seconds?: number;
|
|
16
17
|
poll_seconds?: number;
|
|
17
18
|
}, tier: Tier): Promise<string>;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"builds.d.ts","sourceRoot":"","sources":["../../src/tools/builds.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,SAAS,EAAE,MAAM,cAAc,CAAC;AAC9C,OAAO,KAAK,EAAE,IAAI,EAAE,MAAM,aAAa,CAAC;AAgBxC,iEAAiE;AACjE,wBAAsB,UAAU,CAC9B,MAAM,EAAE,SAAS,EACjB,IAAI,EAAE;IAAE,MAAM,EAAE,MAAM,CAAC;IAAC,KAAK,CAAC,EAAE,MAAM,CAAA;CAAE,EACxC,IAAI,EAAE,IAAI,GACT,OAAO,CAAC,MAAM,CAAC,CA6BjB;AAED;;;;GAIG;AACH,wBAAsB,YAAY,CAChC,MAAM,EAAE,SAAS,EACjB,IAAI,EAAE;IAAE,MAAM,EAAE,MAAM,CAAC;IAAC,gBAAgB,CAAC,EAAE,MAAM,CAAC;IAAC,YAAY,CAAC,EAAE,MAAM,CAAA;CAAE,
|
|
1
|
+
{"version":3,"file":"builds.d.ts","sourceRoot":"","sources":["../../src/tools/builds.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,SAAS,EAAE,MAAM,cAAc,CAAC;AAC9C,OAAO,KAAK,EAAE,IAAI,EAAE,MAAM,aAAa,CAAC;AAgBxC,iEAAiE;AACjE,wBAAsB,UAAU,CAC9B,MAAM,EAAE,SAAS,EACjB,IAAI,EAAE;IAAE,MAAM,EAAE,MAAM,CAAC;IAAC,KAAK,CAAC,EAAE,MAAM,CAAA;CAAE,EACxC,IAAI,EAAE,IAAI,GACT,OAAO,CAAC,MAAM,CAAC,CA6BjB;AAED;;;;GAIG;AACH,wBAAsB,YAAY,CAChC,MAAM,EAAE,SAAS,EACjB,IAAI,EAAE;IAAE,MAAM,EAAE,MAAM,CAAC;IAAC,YAAY,CAAC,EAAE,MAAM,CAAC;IAAC,gBAAgB,CAAC,EAAE,MAAM,CAAC;IAAC,YAAY,CAAC,EAAE,MAAM,CAAA;CAAE,EACjG,IAAI,EAAE,IAAI,GACT,OAAO,CAAC,MAAM,CAAC,CAkDjB;AAED;;;GAGG;AACH,wBAAsB,WAAW,CAC/B,MAAM,EAAE,SAAS,EACjB,IAAI,EAAE;IAAE,MAAM,EAAE,MAAM,CAAC;IAAC,QAAQ,CAAC,EAAE,MAAM,CAAC;IAAC,QAAQ,CAAC,EAAE,MAAM,CAAA;CAAE,EAC9D,IAAI,EAAE,IAAI,GACT,OAAO,CAAC,MAAM,CAAC,CA6CjB"}
|
package/dist/tools/builds.js
CHANGED
|
@@ -43,6 +43,9 @@ async function listBuilds(client, args, tier) {
|
|
|
43
43
|
*/
|
|
44
44
|
async function waitForBuild(client, args, tier) {
|
|
45
45
|
const gate = (0, gate_js_1.requirePro)(tier, "Waiting for a build", "wait_for_build");
|
|
46
|
+
const wanted = args.build_number?.trim();
|
|
47
|
+
if (wanted !== undefined && !/^\d+(\.\d+){0,2}$/.test(wanted))
|
|
48
|
+
return "Error: build_number is the CFBundleVersion, digits and up to two dots (for example 2 or 1.0.3).";
|
|
46
49
|
if (gate)
|
|
47
50
|
return gate;
|
|
48
51
|
if (args.max_wait_seconds !== undefined && !(args.max_wait_seconds > 0))
|
|
@@ -57,16 +60,21 @@ async function waitForBuild(client, args, tier) {
|
|
|
57
60
|
sort: "-uploadedDate",
|
|
58
61
|
"fields[builds]": "version,processingState",
|
|
59
62
|
limit: "1",
|
|
63
|
+
...(wanted ? { "filter[version]": wanted } : {}),
|
|
60
64
|
});
|
|
61
|
-
const builds = Array.isArray(res.data) ? res.data : [res.data];
|
|
65
|
+
const builds = Array.isArray(res.data) ? res.data : res.data ? [res.data] : [];
|
|
62
66
|
const newest = builds[0];
|
|
63
67
|
if (!newest) {
|
|
64
|
-
last = "no builds yet";
|
|
68
|
+
last = wanted ? `build ${wanted} not listed yet` : "no builds yet";
|
|
65
69
|
}
|
|
66
70
|
else {
|
|
67
71
|
last = `${newest.attributes.version}: ${newest.attributes.processingState}`;
|
|
68
72
|
if (newest.attributes.processingState === "VALID") {
|
|
69
|
-
|
|
73
|
+
if (wanted)
|
|
74
|
+
return `Build ${newest.attributes.version} is VALID and ready [${newest.id}]. Attach it with attach_build, build_id ${newest.id}.`;
|
|
75
|
+
return (`Newest listed build ${newest.attributes.version} is VALID [${newest.id}]. ` +
|
|
76
|
+
"Apple lists a new upload only a few minutes after it is sent, so if you just ran upload_binary this can be an older build: " +
|
|
77
|
+
"the AI calls wait_for_build again with build_number set to the uploaded CFBundleVersion. Otherwise attach it with attach_build, build_id " + newest.id + ".");
|
|
70
78
|
}
|
|
71
79
|
if (newest.attributes.processingState === "FAILED" || newest.attributes.processingState === "INVALID") {
|
|
72
80
|
return (`Build ${newest.attributes.version} processing ${newest.attributes.processingState}: Apple rejected this binary, so it cannot be attached or submitted. ` +
|
|
@@ -77,8 +85,8 @@ async function waitForBuild(client, args, tier) {
|
|
|
77
85
|
await new Promise((r) => setTimeout(r, poll));
|
|
78
86
|
}
|
|
79
87
|
return (`Timed out after ${Math.round(maxWait / 1000)}s waiting for a VALID build. Last seen: ${last}. ` +
|
|
80
|
-
(last === "no builds yet"
|
|
81
|
-
?
|
|
88
|
+
(last === "no builds yet" || last.endsWith("not listed yet")
|
|
89
|
+
? `Apple has no ${wanted ? `build ${wanted}` : "build"} for this app, so the upload did not reach Apple or is not listed yet. The AI calls list_builds once; if it is still missing, the AI runs upload_binary again.`
|
|
82
90
|
: "Apple is still processing it (this can take over 30 minutes). The AI calls wait_for_build again, or list_builds to check once."));
|
|
83
91
|
}
|
|
84
92
|
/**
|
package/dist/tools/builds.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"builds.js","sourceRoot":"","sources":["../../src/tools/builds.ts"],"names":[],"mappings":";;AAkBA,gCAiCC;AAOD,
|
|
1
|
+
{"version":3,"file":"builds.js","sourceRoot":"","sources":["../../src/tools/builds.ts"],"names":[],"mappings":";;AAkBA,gCAiCC;AAOD,oCAsDC;AAMD,kCAiDC;AArKD,wCAAwC;AACxC,gDAAqD;AAcrD,iEAAiE;AAC1D,KAAK,UAAU,UAAU,CAC9B,MAAiB,EACjB,IAAwC,EACxC,IAAU;IAEV,MAAM,IAAI,GAAG,IAAA,oBAAU,EAAC,IAAI,EAAE,gBAAgB,EAAE,aAAa,CAAC,CAAC;IAC/D,IAAI,IAAI;QAAE,OAAO,IAAI,CAAC;IAEtB,MAAM,GAAG,GAAG,MAAM,MAAM,CAAC,GAAG,CAAa,YAAY,EAAE;QACrD,aAAa,EAAE,IAAI,CAAC,MAAM;QAC1B,IAAI,EAAE,eAAe;QACrB,gBAAgB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CClient } from "../client.js";
|
|
2
|
+
import type { Tier } from "../types.js";
|
|
3
|
+
interface BundleIdAttrs {
|
|
4
|
+
identifier: string;
|
|
5
|
+
name: string;
|
|
6
|
+
platform: string;
|
|
7
|
+
}
|
|
8
|
+
export interface RegisterBundleIdArgs {
|
|
9
|
+
/** Reverse-DNS explicit id, e.g. app.example.ios. Wildcards are not accepted. */
|
|
10
|
+
identifier: string;
|
|
11
|
+
/** Name shown in the Developer portal. Apple allows letters, digits and spaces only. */
|
|
12
|
+
name: string;
|
|
13
|
+
platform?: "IOS" | "MAC_OS" | "UNIVERSAL";
|
|
14
|
+
confirm?: boolean;
|
|
15
|
+
}
|
|
16
|
+
/** Find an explicit bundle id by exact identifier (Apple's filter also matches prefixes). */
|
|
17
|
+
export declare function findBundleId(client: ASCClient, identifier: string): Promise<{
|
|
18
|
+
id: string;
|
|
19
|
+
attributes: BundleIdAttrs;
|
|
20
|
+
} | undefined>;
|
|
21
|
+
/**
|
|
22
|
+
* Register an explicit bundle id (App ID) in the Developer portal through
|
|
23
|
+
* POST /v1/bundleIds, so a new app has an identifier before its app record
|
|
24
|
+
* and its App Store provisioning profile. Idempotent: an id that exists is
|
|
25
|
+
* returned, never an error. In-App Purchase is on by default for an explicit
|
|
26
|
+
* id, so no capability call is made.
|
|
27
|
+
*/
|
|
28
|
+
export declare function registerBundleId(client: ASCClient, args: RegisterBundleIdArgs, tier: Tier): Promise<string>;
|
|
29
|
+
export {};
|
|
30
|
+
//# sourceMappingURL=bundle-id.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"bundle-id.d.ts","sourceRoot":"","sources":["../../src/tools/bundle-id.ts"],"names":[],"mappings":"AAAA,OAAO,EAAe,KAAK,SAAS,EAAE,MAAM,cAAc,CAAC;AAC3D,OAAO,KAAK,EAAE,IAAI,EAAE,MAAM,aAAa,CAAC;AAGxC,UAAU,aAAa;IACrB,UAAU,EAAE,MAAM,CAAC;IACnB,IAAI,EAAE,MAAM,CAAC;IACb,QAAQ,EAAE,MAAM,CAAC;CAClB;AAED,MAAM,WAAW,oBAAoB;IACnC,iFAAiF;IACjF,UAAU,EAAE,MAAM,CAAC;IACnB,wFAAwF;IACxF,IAAI,EAAE,MAAM,CAAC;IACb,QAAQ,CAAC,EAAE,KAAK,GAAG,QAAQ,GAAG,WAAW,CAAC;IAC1C,OAAO,CAAC,EAAE,OAAO,CAAC;CACnB;AAOD,6FAA6F;AAC7F,wBAAsB,YAAY,CAChC,MAAM,EAAE,SAAS,EACjB,UAAU,EAAE,MAAM,GACjB,OAAO,CAAC;IAAE,EAAE,EAAE,MAAM,CAAC;IAAC,UAAU,EAAE,aAAa,CAAA;CAAE,GAAG,SAAS,CAAC,CAQhE;AAED;;;;;;GAMG;AACH,wBAAsB,gBAAgB,CACpC,MAAM,EAAE,SAAS,EACjB,IAAI,EAAE,oBAAoB,EAC1B,IAAI,EAAE,IAAI,GACT,OAAO,CAAC,MAAM,CAAC,CA+CjB"}
|
|
@@ -0,0 +1,96 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.findBundleId = findBundleId;
|
|
4
|
+
exports.registerBundleId = registerBundleId;
|
|
5
|
+
const client_js_1 = require("../client.js");
|
|
6
|
+
const gate_js_1 = require("../gate.js");
|
|
7
|
+
// Apple: an explicit App ID is reverse-DNS, letters digits hyphen and dot.
|
|
8
|
+
const IDENTIFIER_RE = /^[A-Za-z0-9-]+(\.[A-Za-z0-9-]+)+$/;
|
|
9
|
+
// Apple rejects punctuation in the portal name.
|
|
10
|
+
const NAME_RE = /^[A-Za-z0-9 ]+$/;
|
|
11
|
+
/** Find an explicit bundle id by exact identifier (Apple's filter also matches prefixes). */
|
|
12
|
+
async function findBundleId(client, identifier) {
|
|
13
|
+
const res = await client.getAll("/v1/bundleIds", {
|
|
14
|
+
"filter[identifier]": identifier,
|
|
15
|
+
"fields[bundleIds]": "identifier,name,platform",
|
|
16
|
+
limit: "200",
|
|
17
|
+
});
|
|
18
|
+
const rows = (Array.isArray(res.data) ? res.data : [res.data]).filter(Boolean);
|
|
19
|
+
return rows.find((r) => r.attributes.identifier === identifier);
|
|
20
|
+
}
|
|
21
|
+
/**
|
|
22
|
+
* Register an explicit bundle id (App ID) in the Developer portal through
|
|
23
|
+
* POST /v1/bundleIds, so a new app has an identifier before its app record
|
|
24
|
+
* and its App Store provisioning profile. Idempotent: an id that exists is
|
|
25
|
+
* returned, never an error. In-App Purchase is on by default for an explicit
|
|
26
|
+
* id, so no capability call is made.
|
|
27
|
+
*/
|
|
28
|
+
async function registerBundleId(client, args, tier) {
|
|
29
|
+
const gate = (0, gate_js_1.requirePro)(tier, "Registering a bundle id", "register_bundle_id");
|
|
30
|
+
if (gate)
|
|
31
|
+
return gate;
|
|
32
|
+
const identifier = args.identifier.trim();
|
|
33
|
+
const name = args.name.trim();
|
|
34
|
+
const platform = args.platform ?? "IOS";
|
|
35
|
+
if (!IDENTIFIER_RE.test(identifier)) {
|
|
36
|
+
return `"${identifier}" is not an explicit bundle id (reverse-DNS such as app.example.ios; no wildcard). Nothing was registered. The AI calls register_bundle_id again with a valid identifier.`;
|
|
37
|
+
}
|
|
38
|
+
if (!NAME_RE.test(name)) {
|
|
39
|
+
return `Name "${name}" has characters Apple rejects (letters, digits and spaces only). Nothing was registered. The AI calls register_bundle_id again with a plain name.`;
|
|
40
|
+
}
|
|
41
|
+
const existing = await findBundleId(client, identifier);
|
|
42
|
+
if (existing) {
|
|
43
|
+
return (`Bundle id ${identifier} is already registered (resource id ${existing.id}, name "${existing.attributes.name}", platform ${existing.attributes.platform}). Nothing was changed.\n` +
|
|
44
|
+
`Next: the human creates the app record in App Store Connect (Apps > + > pick this bundle id; the API cannot), then the AI calls list_apps and setup_app_store_signing.`);
|
|
45
|
+
}
|
|
46
|
+
if (!args.confirm) {
|
|
47
|
+
return (`Bundle id ${identifier} is not on this Apple Developer account. Whether another Apple developer account already owns it is only known when Apple creates it, because bundle ids are unique across all accounts. ` +
|
|
48
|
+
`Confirming registers ${identifier} ("${name}", ${platform}) on your account. ` +
|
|
49
|
+
`An identifier can be deleted in the Developer portal until a build is uploaded under it, but never reused after that. Nothing was changed. ` +
|
|
50
|
+
`The AI calls register_bundle_id again with the same arguments and confirm: true.`);
|
|
51
|
+
}
|
|
52
|
+
let res;
|
|
53
|
+
try {
|
|
54
|
+
res = await client.post("/v1/bundleIds", {
|
|
55
|
+
data: { type: "bundleIds", attributes: { identifier, name, platform } },
|
|
56
|
+
});
|
|
57
|
+
}
|
|
58
|
+
catch (err) {
|
|
59
|
+
if (err instanceof client_js_1.ASCAPIError && err.status === 409 && /not available/i.test(err.body)) {
|
|
60
|
+
return identifierTaken(client, identifier);
|
|
61
|
+
}
|
|
62
|
+
throw err;
|
|
63
|
+
}
|
|
64
|
+
const created = res && !Array.isArray(res.data) ? res.data : undefined;
|
|
65
|
+
return (`Registered bundle id ${identifier} ("${name}", ${platform})${created ? `, resource id ${created.id}` : ""}. In-App Purchase is on by default.\n` +
|
|
66
|
+
`Next: the human creates the app record in App Store Connect (Apps > + > pick this bundle id; the API cannot). Then the AI calls list_apps for the app_id and setup_app_store_signing.`);
|
|
67
|
+
}
|
|
68
|
+
/** Longest shared reverse-DNS prefix (whole labels) of the ids, or "" when they share none. */
|
|
69
|
+
function commonPrefix(ids) {
|
|
70
|
+
if (ids.length === 0)
|
|
71
|
+
return "";
|
|
72
|
+
const parts = ids.map((i) => i.split("."));
|
|
73
|
+
const first = parts[0];
|
|
74
|
+
let n = 0;
|
|
75
|
+
while (n < first.length - 1 && parts.every((p) => p.length > n + 1 && p[n] === first[n]))
|
|
76
|
+
n++;
|
|
77
|
+
return first.slice(0, n).join(".");
|
|
78
|
+
}
|
|
79
|
+
/** Reply for Apple's 409 "identifier is not available": another account owns it. Nothing was registered. */
|
|
80
|
+
async function identifierTaken(client, identifier) {
|
|
81
|
+
let pattern = "";
|
|
82
|
+
try {
|
|
83
|
+
const res = await client.getAll("/v1/bundleIds", { "fields[bundleIds]": "identifier", limit: "200" });
|
|
84
|
+
const rows = (Array.isArray(res.data) ? res.data : [res.data]).filter(Boolean);
|
|
85
|
+
const prefix = commonPrefix(rows.map((r) => r.attributes.identifier).filter((i) => !i.includes("*")));
|
|
86
|
+
if (prefix)
|
|
87
|
+
pattern = ` Your account's existing apps share the prefix ${prefix}, so ${prefix}.<appname> is a likely free choice.`;
|
|
88
|
+
}
|
|
89
|
+
catch {
|
|
90
|
+
// The suggestion is a convenience; the refusal stands without it.
|
|
91
|
+
}
|
|
92
|
+
return (`Another Apple developer account already owns the identifier ${identifier} (bundle ids are unique across all accounts, so it can be free here and still taken). Nothing was registered.` +
|
|
93
|
+
`${pattern} Pick a different reverse-DNS id under a domain or prefix you own. The app's Xcode project bundle id, the StoreKit configuration and any in-app purchase product ids built from it must follow the new id.\n` +
|
|
94
|
+
`Next: the AI asks the human to choose the new bundle id, then calls register_bundle_id again with it (and confirm: true once they agree).`);
|
|
95
|
+
}
|
|
96
|
+
//# sourceMappingURL=bundle-id.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"bundle-id.js","sourceRoot":"","sources":["../../src/tools/bundle-id.ts"],"names":[],"mappings":";;AAyBA,oCAWC;AASD,4CAmDC;AAhGD,4CAA2D;AAE3D,wCAAwC;AAiBxC,2EAA2E;AAC3E,MAAM,aAAa,GAAG,mCAAmC,CAAC;AAC1D,gDAAgD;AAChD,MAAM,OAAO,GAAG,iBAAiB,CAAC;AAElC,6FAA6F;AACtF,KAAK,UAAU,YAAY,CAChC,MAAiB,EACjB,UAAkB;IAElB,MAAM,GAAG,GAAG,MAAM,MAAM,CAAC,MAAM,CAAgB,eAAe,EAAE;QAC9D,oBAAoB,EAAE,UAAU;QAChC,mBAAmB,EAAE,0BAA0B;QAC/C,KAAK,EAAE,KAAK;KACb,CAAC,CAAC;IACH,MAAM,IAAI,GAAG,CAAC,KAAK,CAAC,OAAO,CAAC,GAAG,CAAC,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C,CAAC;IACpI,CAAC;IAAC,MAAM,CAAC;QACP,kEAAkE;IACpE,CAAC;IACD,OAAO,CACL,+DAA+D,UAAU,+GAA+G;QACxL,GAAG,OAAO,8MAA8M;QACxN,2IAA2I,CAC5I,CAAC;AACJ,CAAC"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"guide.d.ts","sourceRoot":"","sources":["../../src/tools/guide.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;GAYG;AAEH,MAAM,MAAM,UAAU,GAClB,UAAU,GACV,OAAO,GACP,WAAW,GACX,QAAQ,GACR,aAAa,GACb,KAAK,GACL,eAAe,GACf,SAAS,GACT,YAAY,GACZ,QAAQ,GACR,aAAa,CAAC;AAElB,MAAM,WAAW,SAAS;IACxB,KAAK,CAAC,EAAE,UAAU,CAAC;CACpB;AAED,UAAU,IAAI;IACZ,KAAK,EAAE,MAAM,CAAC;IACd,IAAI,EAAE,MAAM,CAAC;IACb,kHAAkH;IAClH,KAAK,EAAE,MAAM,EAAE,CAAC;IAChB,2FAA2F;IAC3F,MAAM,EAAE,MAAM,EAAE,CAAC;CAClB;AAED,QAAA,MAAM,KAAK,EAAE,MAAM,CAAC,OAAO,CAAC,UAAU,EAAE,UAAU,GAAG,aAAa,CAAC,EAAE,IAAI,
|
|
1
|
+
{"version":3,"file":"guide.d.ts","sourceRoot":"","sources":["../../src/tools/guide.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;GAYG;AAEH,MAAM,MAAM,UAAU,GAClB,UAAU,GACV,OAAO,GACP,WAAW,GACX,QAAQ,GACR,aAAa,GACb,KAAK,GACL,eAAe,GACf,SAAS,GACT,YAAY,GACZ,QAAQ,GACR,aAAa,CAAC;AAElB,MAAM,WAAW,SAAS;IACxB,KAAK,CAAC,EAAE,UAAU,CAAC;CACpB;AAED,UAAU,IAAI;IACZ,KAAK,EAAE,MAAM,CAAC;IACd,IAAI,EAAE,MAAM,CAAC;IACb,kHAAkH;IAClH,KAAK,EAAE,MAAM,EAAE,CAAC;IAChB,2FAA2F;IAC3F,MAAM,EAAE,MAAM,EAAE,CAAC;CAClB;AAED,QAAA,MAAM,KAAK,EAAE,MAAM,CAAC,OAAO,CAAC,UAAU,EAAE,UAAU,GAAG,aAAa,CAAC,EAAE,IAAI,CA+JxE,CAAC;AAEF,QAAA,MAAM,WAAW,EAAE;IAAE,IAAI,EAAE,MAAM,CAAC;IAAC,GAAG,EAAE,MAAM,CAAC;IAAC,SAAS,EAAE,MAAM,CAAA;CAAE,EAoDlE,CAAC;AAEF,iBAAS,UAAU,CAAC,CAAC,EAAE,IAAI,GAAG,MAAM,CAcnC;AAED,iBAAS,cAAc,IAAI,MAAM,CAuBhC;AAED,iBAAS,iBAAiB,IAAI,MAAM,CAUnC;AAED,wBAAsB,QAAQ,CAAC,IAAI,EAAE,SAAS,GAAG,OAAO,CAAC,MAAM,CAAC,CAO/D;AAED,+EAA+E;AAC/E,OAAO,EAAE,KAAK,EAAE,WAAW,EAAE,UAAU,EAAE,cAAc,EAAE,iBAAiB,EAAE,CAAC"}
|
package/dist/tools/guide.js
CHANGED
|
@@ -38,6 +38,7 @@ const FLOWS = {
|
|
|
38
38
|
title: "Ship an app's FIRST release (1.0)",
|
|
39
39
|
when: "Brand-new app, never been on the store. The hardest flow because of first-time-only Apple constraints.",
|
|
40
40
|
steps: [
|
|
41
|
+
"`register_bundle_id` - registers the explicit bundle id in the Developer account (idempotent; confirm:true to create). The app record's bundle id picker only lists registered ids.",
|
|
41
42
|
"MANUAL: the app RECORD must already exist. `POST /v1/apps` is forbidden for API keys, so create the app (name, bundle ID, SKU, primary language) once in App Store Connect > Apps > +. App Groups are portal-only too.",
|
|
42
43
|
"`list_apps` to get the numeric app_id.",
|
|
43
44
|
"Build + upload a binary so a build exists to attach (see topic:binary), or upload via Xcode/Transporter. Then `wait_for_build` until VALID.",
|
|
@@ -142,20 +143,23 @@ const FLOWS = {
|
|
|
142
143
|
when: "Getting a build to testers before App Review.",
|
|
143
144
|
steps: [
|
|
144
145
|
"Upload a build (topic:binary), `wait_for_build` to VALID.",
|
|
145
|
-
"`list_beta_groups` to find
|
|
146
|
-
"`
|
|
147
|
-
"`
|
|
146
|
+
"`list_beta_groups` to find a group. None yet: `create_beta_group` (internal: true for your own team, false for outside testers; idempotent by name; confirm:true to create).",
|
|
147
|
+
"Add testers with `invite_beta_tester` (confirm:true). External group: any email + name, Apple sends the TestFlight invite. Internal group: the email of an App Store Connect user on the account; the tool checks it against the account's users first (needs an Admin key).",
|
|
148
|
+
"`set_beta_test_info` - feedback email, description, marketing and privacy URLs, What to Test for the build, Beta App Review contact. Every value comes from the human; without confirm:true it previews.",
|
|
149
|
+
"`assign_build_to_group` - newest VALID build by default (not needed for a group created with has_access_to_all_builds).",
|
|
148
150
|
],
|
|
149
151
|
manual: [
|
|
150
|
-
"Beta App Review (
|
|
152
|
+
"Beta App Review (external groups' first build) is submitted from the TestFlight tab of the ASC website once the test information above is set.",
|
|
153
|
+
"Export compliance for a build that uses encryption, if Apple asks, is answered in the ASC website.",
|
|
151
154
|
],
|
|
152
155
|
},
|
|
153
156
|
binary: {
|
|
154
157
|
title: "Build, sign, and upload the binary",
|
|
155
158
|
when: "You need a build on App Store Connect and want to do it from the agent.",
|
|
156
159
|
steps: [
|
|
160
|
+
"`register_bundle_id` - for a brand-new app, register its explicit bundle id first (idempotent; confirm:true to create). The app record and the profile both need it.",
|
|
157
161
|
"MANUAL: an Apple Distribution certificate must already exist in your login keychain. Certificate creation and cloud signing are not available to least-privilege API keys.",
|
|
158
|
-
"`setup_app_store_signing` - downloads the app's IOS_APP_STORE provisioning profiles (app + extensions), installs them, and writes a manual-signing ExportOptions.plist. This sidesteps the cloud-signing permission most API keys lack.",
|
|
162
|
+
"`setup_app_store_signing` - downloads the app's IOS_APP_STORE provisioning profiles (app + extensions), installs them (a new app with none gets one created from the account's distribution certificates with confirm:true), and writes a manual-signing ExportOptions.plist. This sidesteps the cloud-signing permission most API keys lack.",
|
|
159
163
|
"`build_and_archive` - xcodebuild archive + export using that ExportOptions.plist. Requires Xcode on this Mac. Give it the .xcodeproj/.xcworkspace, scheme, and the generated plist.",
|
|
160
164
|
"`upload_binary` confirm:true - uploads the .ipa via altool with your API key.",
|
|
161
165
|
"`wait_for_build` until the build is VALID, then `attach_build`.",
|
package/dist/tools/guide.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"guide.js","sourceRoot":"","sources":["../../src/tools/guide.ts"],"names":[],"mappings":";AAAA;;;;;;;;;;;;GAYG;;;
|
|
1
|
+
{"version":3,"file":"guide.js","sourceRoot":"","sources":["../../src/tools/guide.ts"],"names":[],"mappings":";AAAA;;;;;;;;;;;;GAYG;;;AAwSH,4BAOC;AAG4B,gCAAU;AAAE,wCAAc;AAAE,8CAAiB;AAtR1E,MAAM,KAAK,GAAkE;IAC3E,KAAK,EAAE;QACL,KAAK,EAAE,gBAAgB;QACvB,IAAI,EAAE,yCAAyC;QAC/C,KAAK,EAAE;YACL,uLAAuL;YACvL,uNAAuN;YACvN,6aAA6a;YAC7a,2PAA2P;YAC3P,sEAAsE;SACvE;QACD,MAAM,EAAE;YACN,6KAA6K;YAC7K,ygBAAygB;SAC1gB;KACF;IAED,WAAW,EAAE;QACX,KAAK,EAAE,mCAAmC;QAC1C,IAAI,EAAE,wGAAwG;QAC9G,KAAK,EAAE;YACL,qLAAqL;YACrL,wNAAwN;YACxN,wCAAwC;YACxC,6IAA6I;YAC7I,8IAA8I;YAC9I,uJAAuJ;YACvJ,4QAA4Q;YAC5Q,+IAA+I;YAC/I,8IAA8I;YAC9I,yGAAyG;YACzG,iDAAiD;YACjD,6IAA6I;YAC7I,uJAAuJ;YACvJ,+IAA+I;YAC/I,qKAAqK;YACrK,2LAA2L;YAC3L,4WAA4W;YAC5W,uIAAuI;YACvI,wHAAwH;SACzH;QACD,MAAM,EAAE;YACN,wEAAwE;YACxE,+FAA+F;YAC/F,2FAA2F;YAC3F,yGAAyG;YACzG,mEAAmE;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EAAE,CAAC,OAAO,CAAC,CAAC,IAAI,UAAU,CAAC,CAAC,GAAG,iBAAiB,CAAC,CAAC,SAAS,EAAE,CAClE,CAAC,IAAI,CAAC,MAAM,CAAC,CAAC;IACf,OAAO,CACL,4CAA4C;QAC5C,wFAAwF;QACxF,+HAA+H;QAC/H,IAAI,CACL,CAAC;AACJ,CAAC;AAEM,KAAK,UAAU,QAAQ,CAAC,IAAe;IAC5C,MAAM,KAAK,GAAG,IAAI,CAAC,KAAK,IAAI,UAAU,CAAC;IACvC,IAAI,KAAK,KAAK,UAAU;QAAE,OAAO,cAAc,EAAE,CAAC;IAClD,IAAI,KAAK,KAAK,aAAa;QAAE,OAAO,iBAAiB,EAAE,CAAC;IACxD,MAAM,IAAI,GAAG,KAAK,CAAC,KAAK,CAAC,CAAC;IAC1B,IAAI,CAAC,IAAI;QAAE,OAAO,gCAAgC,KAAK,gCAAgC,MAAM,CAAC,IAAI,CAAC,KAAK,CAAC,CAAC,IAAI,CAAC,IAAI,CAAC,qBAAqB,cAAc,EAAE,EAAE,CAAC;IAC5J,OAAO,UAAU,CAAC,IAAI,CAAC,CAAC;AAC1B,CAAC"}
|
|
@@ -10,6 +10,14 @@ export declare function buildAndArchive(args: {
|
|
|
10
10
|
workspace?: boolean;
|
|
11
11
|
configuration?: string;
|
|
12
12
|
output_dir?: string;
|
|
13
|
+
/**
|
|
14
|
+
* Command to run before archiving, as an argument array (no shell), for
|
|
15
|
+
* example ["xcodegen", "generate"] or ["tuist", "generate", "--no-open"].
|
|
16
|
+
* Runs in the project's folder. Generated projects must be regenerated
|
|
17
|
+
* after any project.yml or Project.swift change, or xcodebuild builds a
|
|
18
|
+
* stale project.
|
|
19
|
+
*/
|
|
20
|
+
pre_build_command?: string[];
|
|
13
21
|
}, tier: Tier): Promise<string>;
|
|
14
22
|
/**
|
|
15
23
|
* Upload a signed .ipa to App Store Connect via xcrun altool, authenticating
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"local-build.d.ts","sourceRoot":"","sources":["../../src/tools/local-build.ts"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"local-build.d.ts","sourceRoot":"","sources":["../../src/tools/local-build.ts"],"names":[],"mappings":"AAIA,OAAO,KAAK,EAAE,IAAI,EAAE,MAAM,aAAa,CAAC;AA0CxC;;;GAGG;AACH,wBAAsB,eAAe,CACnC,IAAI,EAAE;IACJ,YAAY,EAAE,MAAM,CAAC;IACrB,MAAM,EAAE,MAAM,CAAC;IACf,oBAAoB,EAAE,MAAM,CAAC;IAC7B,SAAS,CAAC,EAAE,OAAO,CAAC;IACpB,aAAa,CAAC,EAAE,MAAM,CAAC;IACvB,UAAU,CAAC,EAAE,MAAM,CAAC;IACpB;;;;;;OAMG;IACH,iBAAiB,CAAC,EAAE,MAAM,EAAE,CAAC;CAC9B,EACD,IAAI,EAAE,IAAI,GACT,OAAO,CAAC,MAAM,CAAC,CA0FjB;AAED;;;GAGG;AACH,wBAAsB,YAAY,CAChC,MAAM,EAAE;IAAE,KAAK,EAAE,MAAM,CAAC;IAAC,QAAQ,EAAE,MAAM,CAAA;CAAE,EAC3C,IAAI,EAAE;IAAE,QAAQ,EAAE,MAAM,CAAC;IAAC,QAAQ,CAAC,EAAE,MAAM,CAAC;IAAC,OAAO,CAAC,EAAE,OAAO,CAAA;CAAE,EAChE,IAAI,EAAE,IAAI,GACT,OAAO,CAAC,MAAM,CAAC,CAoCjB"}
|