@swmansion/argent 0.27.1-next.16 → 0.27.1-next.17

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
@@ -21916,7 +21916,7 @@ var _CI_VENDOR_COUNT_FOR_TEST = vendors_default.length;
21916
21916
  var SESSION_ID2 = randomUUID5();
21917
21917
  function readCliVersion() {
21918
21918
  if (true) {
21919
- return "0.27.1-next.16";
21919
+ return "0.27.1-next.17";
21920
21920
  }
21921
21921
  return "0.0.0";
21922
21922
  }
@@ -23282,6 +23282,7 @@ Options (run):
23282
23282
  auto-detection (ios never picks a remote simulator)
23283
23283
  --update-baselines Write/refresh screenshot baselines instead of diffing
23284
23284
  --output <dir> Also write failed snapshot images (baseline/current/diff)
23285
+ and failed-step screenshots (step-<n>-screen.png)
23285
23286
  under <dir>/<flow>/ \u2014 a stable path for CI artifact
23286
23287
  upload; a directory run keys nested flows as
23287
23288
  <dir>/<subdir>/<flow>/. A different flow file with the
@@ -23557,23 +23558,34 @@ async function exportFailureArtifacts(report, outputDir, flowPath, ctx) {
23557
23558
  return;
23558
23559
  }
23559
23560
  let dir = null;
23561
+ let n2 = 0;
23560
23562
  for (const s of report.steps) {
23561
- if (s.kind !== "snapshot" || s.status !== "fail" || !s.artifacts) continue;
23562
- const key = s.snapshotKey ?? keyFromBaselinePath(s.artifacts);
23563
- if (!key || !SAFE_ARTIFACT_NAME.test(key)) continue;
23564
- const { result } = await materializeArtifacts(s.artifacts, ctx);
23565
- s.artifacts = result;
23566
- for (const [role, value] of Object.entries(s.artifacts)) {
23563
+ if (s.kind !== "echo") n2++;
23564
+ if (!s.artifacts) continue;
23565
+ let artifacts;
23566
+ let fileName;
23567
+ if (s.kind === "snapshot" && s.status === "fail") {
23568
+ const key = s.snapshotKey ?? keyFromBaselinePath(s.artifacts);
23569
+ if (!key || !SAFE_ARTIFACT_NAME.test(key)) continue;
23570
+ artifacts = s.artifacts;
23571
+ const remote = s.snapshotRemote === true ? "-remote" : "";
23572
+ fileName = (role) => `${key}${remote}-${role}.png`;
23573
+ } else if ((s.status === "fail" || s.status === "error") && s.artifacts.screen != null) {
23574
+ artifacts = { screen: s.artifacts.screen };
23575
+ fileName = () => `step-${n2}-screen.png`;
23576
+ } else {
23577
+ continue;
23578
+ }
23579
+ const { result } = await materializeArtifacts(artifacts, ctx);
23580
+ Object.assign(s.artifacts, result);
23581
+ for (const [role, value] of Object.entries(result)) {
23567
23582
  if (typeof value !== "string") continue;
23568
23583
  if (dir === null) {
23569
23584
  const dirName = await claimExportDirName(outputDir, flowPath, stem);
23570
23585
  if (dirName === null) return;
23571
23586
  dir = path14.join(outputDir, dirName);
23572
23587
  }
23573
- const dest = path14.join(
23574
- dir,
23575
- `${key}${s.snapshotRemote === true ? "-remote" : ""}-${role}.png`
23576
- );
23588
+ const dest = path14.join(dir, fileName(role));
23577
23589
  const rel = path14.relative(outputDir, dest);
23578
23590
  if (rel.startsWith("..") || path14.isAbsolute(rel)) continue;
23579
23591
  try {
@@ -16730,7 +16730,7 @@ var _CI_VENDOR_COUNT_FOR_TEST = vendors_default.length;
16730
16730
  var SESSION_ID = randomUUID4();
16731
16731
  function readCliVersion() {
16732
16732
  if (true) {
16733
- return "0.27.1-next.16";
16733
+ return "0.27.1-next.17";
16734
16734
  }
16735
16735
  return "0.0.0";
16736
16736
  }
@@ -94814,7 +94814,7 @@ var _CI_VENDOR_COUNT_FOR_TEST = vendors_default.length;
94814
94814
  var SESSION_ID = (0, import_node_crypto3.randomUUID)();
94815
94815
  function readCliVersion() {
94816
94816
  if (true) {
94817
- return "0.27.1-next.16";
94817
+ return "0.27.1-next.17";
94818
94818
  }
94819
94819
  return "0.0.0";
94820
94820
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@swmansion/argent",
3
- "version": "0.27.1-next.16",
3
+ "version": "0.27.1-next.17",
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",