pabal-store-api-mcp 1.3.16 → 1.3.18
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/src/index.js
CHANGED
|
@@ -210,7 +210,7 @@ registerToolWithInfo("aso-push", {
|
|
|
210
210
|
.int()
|
|
211
211
|
.positive()
|
|
212
212
|
.optional()
|
|
213
|
-
.describe("Google Play image locale batch size
|
|
213
|
+
.describe("Google Play image locale batch size (default: 1 when uploadImages=true, replacing screenshots per locale while preserving videos)"),
|
|
214
214
|
dryRun: z
|
|
215
215
|
.boolean()
|
|
216
216
|
.optional()
|
|
@@ -534,7 +534,11 @@ export class GooglePlayClient {
|
|
|
534
534
|
auth: session.auth,
|
|
535
535
|
packageName: session.packageName,
|
|
536
536
|
editId: session.editId,
|
|
537
|
-
}
|
|
537
|
+
},
|
|
538
|
+
// Google Play deletes an edit after a successful commit. Retrying this
|
|
539
|
+
// non-idempotent request can surface a false "This Edit has been deleted"
|
|
540
|
+
// failure when the first attempt actually committed.
|
|
541
|
+
{ retry: false });
|
|
538
542
|
return { data: response.data };
|
|
539
543
|
}
|
|
540
544
|
async getAppDetails(session) {
|
|
@@ -6,6 +6,7 @@ import { AppStoreService } from "../../core/services/app-store-service.js";
|
|
|
6
6
|
import { GooglePlayService } from "../../core/services/google-play-service.js";
|
|
7
7
|
import { formatPushResult } from "../../core/helpers/formatters.js";
|
|
8
8
|
const DEFAULT_IMAGE_UPLOAD_TIMEOUT_MS = 10 * 60 * 1000;
|
|
9
|
+
const DEFAULT_IMAGE_LOCALE_BATCH_SIZE = 1;
|
|
9
10
|
const appResolutionService = new AppResolutionService();
|
|
10
11
|
const appStoreService = new AppStoreService();
|
|
11
12
|
const googlePlayService = new GooglePlayService();
|
|
@@ -13,6 +14,8 @@ export async function handleAsoPush(options) {
|
|
|
13
14
|
const { store = "both", uploadImages = false, locales, dryRun = false, } = options;
|
|
14
15
|
const imageUploadTimeoutMs = options.imageUploadTimeoutMs ??
|
|
15
16
|
(uploadImages ? DEFAULT_IMAGE_UPLOAD_TIMEOUT_MS : undefined);
|
|
17
|
+
const imageLocaleBatchSize = options.imageLocaleBatchSize ??
|
|
18
|
+
(uploadImages ? DEFAULT_IMAGE_LOCALE_BATCH_SIZE : undefined);
|
|
16
19
|
const resolved = appResolutionService.resolve({
|
|
17
20
|
slug: options.app,
|
|
18
21
|
packageName: options.packageName,
|
|
@@ -37,13 +40,16 @@ export async function handleAsoPush(options) {
|
|
|
37
40
|
if (bundleId)
|
|
38
41
|
console.error(`[MCP] Bundle ID: ${bundleId}`);
|
|
39
42
|
console.error(`[MCP] Upload Images: ${uploadImages ? "Yes" : "No"}`);
|
|
43
|
+
if (uploadImages) {
|
|
44
|
+
console.error(`[MCP] Image Upload Mode: overwrite screenshots only (videos preserved)`);
|
|
45
|
+
}
|
|
40
46
|
if (locales?.length)
|
|
41
47
|
console.error(`[MCP] Locales: ${locales.join(", ")}`);
|
|
42
48
|
if (imageUploadTimeoutMs) {
|
|
43
49
|
console.error(`[MCP] Image Upload Timeout: ${imageUploadTimeoutMs}ms`);
|
|
44
50
|
}
|
|
45
|
-
if (
|
|
46
|
-
console.error(`[MCP] Image Locale Batch Size: ${
|
|
51
|
+
if (imageLocaleBatchSize) {
|
|
52
|
+
console.error(`[MCP] Image Locale Batch Size: ${imageLocaleBatchSize}`);
|
|
47
53
|
}
|
|
48
54
|
console.error(`[MCP] Mode: ${dryRun ? "Dry run" : "Actual push"}`);
|
|
49
55
|
let config;
|
|
@@ -129,7 +135,9 @@ export async function handleAsoPush(options) {
|
|
|
129
135
|
content: [
|
|
130
136
|
{
|
|
131
137
|
type: "text",
|
|
132
|
-
text: `📋 Dry run - Data that would be pushed:\n${JSON.stringify(configData, null, 2)}
|
|
138
|
+
text: `📋 Dry run - Data that would be pushed:\n${JSON.stringify(configData, null, 2)}${uploadImages
|
|
139
|
+
? "\n\nImage upload mode: overwrite screenshots only; videos/app previews are preserved."
|
|
140
|
+
: ""}`,
|
|
133
141
|
},
|
|
134
142
|
],
|
|
135
143
|
};
|
|
@@ -149,7 +157,7 @@ export async function handleAsoPush(options) {
|
|
|
149
157
|
uploadImages,
|
|
150
158
|
locales,
|
|
151
159
|
imageUploadTimeoutMs,
|
|
152
|
-
imageLocaleBatchSize
|
|
160
|
+
imageLocaleBatchSize,
|
|
153
161
|
slug,
|
|
154
162
|
});
|
|
155
163
|
results.push(formatPushResult("Google Play", result));
|