@swmansion/argent 0.28.1-next.3 → 0.28.1-next.5

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/cli-cmds.mjs CHANGED
@@ -30092,7 +30092,7 @@ var _CI_VENDOR_COUNT_FOR_TEST = vendors_default.length;
30092
30092
  var SESSION_ID2 = randomUUID5();
30093
30093
  function readCliVersion() {
30094
30094
  if (true) {
30095
- return "0.28.1-next.3";
30095
+ return "0.28.1-next.4";
30096
30096
  }
30097
30097
  return "0.0.0";
30098
30098
  }
@@ -16736,7 +16736,7 @@ var _CI_VENDOR_COUNT_FOR_TEST = vendors_default.length;
16736
16736
  var SESSION_ID = randomUUID4();
16737
16737
  function readCliVersion() {
16738
16738
  if (true) {
16739
- return "0.28.1-next.3";
16739
+ return "0.28.1-next.4";
16740
16740
  }
16741
16741
  return "0.0.0";
16742
16742
  }
@@ -94920,7 +94920,7 @@ var _CI_VENDOR_COUNT_FOR_TEST = vendors_default.length;
94920
94920
  var SESSION_ID = (0, import_node_crypto3.randomUUID)();
94921
94921
  function readCliVersion() {
94922
94922
  if (true) {
94923
- return "0.28.1-next.3";
94923
+ return "0.28.1-next.4";
94924
94924
  }
94925
94925
  return "0.0.0";
94926
94926
  }
@@ -133512,7 +133512,7 @@ var zodSchema29 = external_exports.object({
133512
133512
  `Max time to wait for the condition before giving up (default ${DEFAULT_TIMEOUT_MS3}).`
133513
133513
  ),
133514
133514
  pollIntervalMs: external_exports.number().int().min(50).max(5e3).optional().describe(`How often to re-check the tree (default ${DEFAULT_POLL_INTERVAL_MS}).`)
133515
- }).refine((p) => p.condition !== "text" || p.expectedText !== void 0, {
133515
+ }).strict().refine((p) => p.condition !== "text" || p.expectedText !== void 0, {
133516
133516
  message: "condition `text` requires expectedText",
133517
133517
  path: ["expectedText"]
133518
133518
  });
@@ -136989,7 +136989,7 @@ var zodSchema42 = external_exports.object({
136989
136989
  minStableMs: external_exports.number().int().min(0).max(1e4).optional().describe(
136990
136990
  `The screen must hold the same content for at least this long to count as settled (default ${DEFAULT_MIN_STABLE_MS}).`
136991
136991
  )
136992
- });
136992
+ }).strict();
136993
136993
  var capability27 = {
136994
136994
  apple: { simulator: true, device: true },
136995
136995
  appleRemote: { simulator: true },
@@ -155741,7 +155741,7 @@ function formatScreenshotDiffSummary(result) {
155741
155741
  const shownRegions = result.regions.slice(0, MAX_SUMMARY_REGIONS);
155742
155742
  const coordinateSpace = coordinateSpaceForSummary(result.imageSize);
155743
155743
  const lines = ["Screenshot diff summary", "", "Overall:"];
155744
- lines.push(`- status: ${status}`);
155744
+ lines.push(statusLine(status));
155745
155745
  if (result.sizeNormalization) {
155746
155746
  const { baseline, current, comparedAt } = result.sizeNormalization;
155747
155747
  lines.push(
@@ -155802,6 +155802,12 @@ function formatScreenshotDiffSummary(result) {
155802
155802
  }
155803
155803
  return lines.join("\n");
155804
155804
  }
155805
+ function statusLine(status) {
155806
+ return `- status: ${status}`;
155807
+ }
155808
+ function summaryReportsDimensionMismatch(summary) {
155809
+ return summary.split("\n").includes(statusLine("dimension_mismatch"));
155810
+ }
155805
155811
  function screenshotDiffStatus(result) {
155806
155812
  if (result.dimensionMismatch) return "dimension_mismatch";
155807
155813
  if (!Number.isFinite(result.totalPixels) || !Number.isFinite(result.differentPixels) || !Number.isFinite(result.mismatchPercentage)) {
@@ -158998,7 +159004,7 @@ var screenshotDiffTool = {
158998
159004
  id: "screenshot-diff",
158999
159005
  interaction: {
159000
159006
  startedMsg: () => "Comparing screenshots",
159001
- completedMsg: () => "Compared screenshots",
159007
+ completedMsg: ({ result }) => summaryReportsDimensionMismatch(result.summary) ? "Skipped comparison - screenshot dimensions differ" : "Compared screenshots",
159002
159008
  failedMsg: ({ failureSignal: failureSignal2 }) => `Failed to compare screenshots: ${failureSignal2.error_code}`
159003
159009
  },
159004
159010
  description: `Compare two PNG screenshots and return a compact visual-diff summary.
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@swmansion/argent",
3
- "version": "0.28.1-next.3",
3
+ "version": "0.28.1-next.5",
4
4
  "mcpName": "io.github.software-mansion/argent",
5
5
  "description": "MCP server for iOS Simulator and Android Emulator control",
6
6
  "license": "Apache-2.0",