@swmansion/argent 0.27.1-next.13 → 0.27.1-next.14

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.
Binary file
Binary file
Binary file
Binary file
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.13";
21919
+ return "0.27.1-next.14";
21920
21920
  }
21921
21921
  return "0.0.0";
21922
21922
  }
@@ -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.13";
16733
+ return "0.27.1-next.14";
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.13";
94817
+ return "0.27.1-next.14";
94818
94818
  }
94819
94819
  return "0.0.0";
94820
94820
  }
@@ -156880,12 +156880,29 @@ async function execSteps(state3, steps, scope) {
156880
156880
  startedAt -= state3.hoistedBootMs;
156881
156881
  state3.hoistedBootMs = void 0;
156882
156882
  }
156883
+ if (JSON.stringify(step).includes(SECRET_PLACEHOLDER_MARKER)) state3.secretTyped = true;
156883
156884
  const report = await execLeafStep(state3, step, index, scope);
156884
156885
  if (report.status !== "skip") report.durationMs = Date.now() - startedAt;
156886
+ if ((report.status === "fail" || report.status === "error") && !report.artifacts) {
156887
+ const screen = await captureFailureScreen(state3);
156888
+ if (screen) report.artifacts = { screen };
156889
+ }
156885
156890
  pushReport(state3, report);
156886
156891
  if (report.status === "fail" || report.status === "error") state3.stopped = true;
156887
156892
  }
156888
156893
  }
156894
+ async function captureFailureScreen(state3) {
156895
+ if (!state3.device || state3.signal?.aborted || state3.secretTyped) return void 0;
156896
+ try {
156897
+ const shot = await invokeOnDevice(deviceEnv(state3), "screenshot", {
156898
+ scale: 1,
156899
+ includeImageInContext: false
156900
+ });
156901
+ return shot.image;
156902
+ } catch {
156903
+ return void 0;
156904
+ }
156905
+ }
156889
156906
  function reportBlockSkipped(state3, steps, scope, reason) {
156890
156907
  for (const step of steps) {
156891
156908
  pushReport(state3, {
Binary file
Binary file
Binary file
Binary file
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@swmansion/argent",
3
- "version": "0.27.1-next.13",
3
+ "version": "0.27.1-next.14",
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",