pabal-resource-mcp 1.5.6 → 1.5.7

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.
@@ -3823,7 +3823,9 @@ var localizeScreenshotsInputSchema = z7.object({
3823
3823
  "Specific target locales to translate to. If not provided, all supported locales from the product will be used."
3824
3824
  ),
3825
3825
  deviceTypes: z7.array(z7.enum(["phone", "tablet"])).optional().default(["phone", "tablet"]).describe("Device types to process (default: both phone and tablet)"),
3826
- dryRun: z7.boolean().optional().default(false).describe("Preview mode - shows what would be translated without actually translating"),
3826
+ dryRun: z7.boolean().optional().default(false).describe(
3827
+ "Preview mode - shows what would be translated without actually translating"
3828
+ ),
3827
3829
  skipExisting: z7.boolean().optional().default(true).describe("Skip translation if target file already exists (default: true)"),
3828
3830
  screenshotNumbers: z7.union([
3829
3831
  z7.array(z7.number().int().positive()),
@@ -3917,12 +3919,8 @@ function getTargetLocales(allLocales, primaryLocale, requestedTargets) {
3917
3919
  }
3918
3920
  localesToProcess = validTargets;
3919
3921
  }
3920
- const {
3921
- translatableLocales,
3922
- localeMapping,
3923
- skippedLocales,
3924
- groupedLocales
3925
- } = prepareLocalesForTranslation(localesToProcess, primaryLocale);
3922
+ localesToProcess = localesToProcess.filter((l) => l !== primaryLocale);
3923
+ const { translatableLocales, localeMapping, skippedLocales, groupedLocales } = prepareLocalesForTranslation(localesToProcess, primaryLocale);
3926
3924
  return {
3927
3925
  targets: translatableLocales,
3928
3926
  skippedLocales,
@@ -4082,9 +4080,15 @@ ${screenshotsDir2}/${primaryLocale}/tablet/1.png, 2.png, ...`
4082
4080
  ]
4083
4081
  };
4084
4082
  }
4085
- const phoneCount = filteredScreenshots.filter((s) => s.type === "phone").length;
4086
- const tabletCount = filteredScreenshots.filter((s) => s.type === "tablet").length;
4087
- results.push(`\u{1F4F8} Source screenshots: ${phoneCount} phone, ${tabletCount} tablet`);
4083
+ const phoneCount = filteredScreenshots.filter(
4084
+ (s) => s.type === "phone"
4085
+ ).length;
4086
+ const tabletCount = filteredScreenshots.filter(
4087
+ (s) => s.type === "tablet"
4088
+ ).length;
4089
+ results.push(
4090
+ `\u{1F4F8} Source screenshots: ${phoneCount} phone, ${tabletCount} tablet`
4091
+ );
4088
4092
  const tasks = buildTranslationTasks(
4089
4093
  appInfo.slug,
4090
4094
  filteredScreenshots,
@@ -4173,7 +4177,9 @@ ${screenshotsDir2}/${primaryLocale}/tablet/1.png, 2.png, ...`
4173
4177
  results.push(` - ${path11.basename(err.path)}: ${err.error}`);
4174
4178
  }
4175
4179
  if (translationResult.errors.length > 5) {
4176
- results.push(` ... and ${translationResult.errors.length - 5} more errors`);
4180
+ results.push(
4181
+ ` ... and ${translationResult.errors.length - 5} more errors`
4182
+ );
4177
4183
  }
4178
4184
  }
4179
4185
  if (translationResult.successful > 0) {
@@ -4192,7 +4198,9 @@ ${screenshotsDir2}/${primaryLocale}/tablet/1.png, 2.png, ...`
4192
4198
  }
4193
4199
  const resizeResult = await batchValidateAndResize(resizePairs);
4194
4200
  if (resizeResult.resized > 0) {
4195
- results.push(` \u{1F527} Resized ${resizeResult.resized} images to match source dimensions`);
4201
+ results.push(
4202
+ ` \u{1F527} Resized ${resizeResult.resized} images to match source dimensions`
4203
+ );
4196
4204
  } else {
4197
4205
  results.push(` \u2705 All image dimensions match source`);
4198
4206
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "pabal-resource-mcp",
3
- "version": "1.5.6",
3
+ "version": "1.5.7",
4
4
  "type": "module",
5
5
  "description": "MCP server for ASO data management with shared types and utilities",
6
6
  "author": "skyu",