edsger 0.35.2 → 0.35.3
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.
|
@@ -53,8 +53,25 @@ export const generateAppStoreAssets = async (options, config
|
|
|
53
53
|
if (!aiResult) {
|
|
54
54
|
throw new Error('No results received from AI');
|
|
55
55
|
}
|
|
56
|
-
const
|
|
56
|
+
const rawListings = (aiResult.listings ||
|
|
57
57
|
{});
|
|
58
|
+
// Enforce Apple field limits on AI-generated content
|
|
59
|
+
const listings = {};
|
|
60
|
+
for (const [loc, listing] of Object.entries(rawListings)) {
|
|
61
|
+
listings[loc] = {
|
|
62
|
+
...listing,
|
|
63
|
+
app_name: listing.app_name?.slice(0, 30) ?? '',
|
|
64
|
+
subtitle: listing.subtitle?.slice(0, 30),
|
|
65
|
+
promotional_text: listing.promotional_text?.slice(0, 170),
|
|
66
|
+
short_description: listing.short_description?.slice(0, 80),
|
|
67
|
+
description: listing.description?.slice(0, 4000) ?? '',
|
|
68
|
+
keywords: listing.keywords
|
|
69
|
+
? listing.keywords.length > 100
|
|
70
|
+
? listing.keywords.slice(0, 100).replace(/,[^,]*$/, '')
|
|
71
|
+
: listing.keywords
|
|
72
|
+
: undefined,
|
|
73
|
+
};
|
|
74
|
+
}
|
|
58
75
|
const screenshotSpecs = (aiResult.screenshots || []);
|
|
59
76
|
logInfo(`AI generated: ${Object.keys(listings).length} locale(s), ${screenshotSpecs.length} screenshot spec(s)`);
|
|
60
77
|
// Ensure store configs exist
|