@swmansion/argent 0.25.1-next.26 → 0.25.1-next.28
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 +1 -1
- package/dist/installer.mjs +1 -1
- package/dist/tool-server.cjs +32 -8
- package/package.json +1 -1
package/dist/cli-cmds.mjs
CHANGED
|
@@ -21857,7 +21857,7 @@ var _CI_VENDOR_COUNT_FOR_TEST = vendors_default.length;
|
|
|
21857
21857
|
var SESSION_ID2 = randomUUID5();
|
|
21858
21858
|
function readCliVersion() {
|
|
21859
21859
|
if (true) {
|
|
21860
|
-
return "0.25.1-next.
|
|
21860
|
+
return "0.25.1-next.28";
|
|
21861
21861
|
}
|
|
21862
21862
|
return "0.0.0";
|
|
21863
21863
|
}
|
package/dist/installer.mjs
CHANGED
|
@@ -16710,7 +16710,7 @@ var _CI_VENDOR_COUNT_FOR_TEST = vendors_default.length;
|
|
|
16710
16710
|
var SESSION_ID = randomUUID4();
|
|
16711
16711
|
function readCliVersion() {
|
|
16712
16712
|
if (true) {
|
|
16713
|
-
return "0.25.1-next.
|
|
16713
|
+
return "0.25.1-next.28";
|
|
16714
16714
|
}
|
|
16715
16715
|
return "0.0.0";
|
|
16716
16716
|
}
|
package/dist/tool-server.cjs
CHANGED
|
@@ -94704,7 +94704,7 @@ var _CI_VENDOR_COUNT_FOR_TEST = vendors_default.length;
|
|
|
94704
94704
|
var SESSION_ID = (0, import_node_crypto3.randomUUID)();
|
|
94705
94705
|
function readCliVersion() {
|
|
94706
94706
|
if (true) {
|
|
94707
|
-
return "0.25.1-next.
|
|
94707
|
+
return "0.25.1-next.28";
|
|
94708
94708
|
}
|
|
94709
94709
|
return "0.0.0";
|
|
94710
94710
|
}
|
|
@@ -149955,6 +149955,17 @@ Returns { message, stepCount, recorded, savedTo }; \`recorded\`, not the status,
|
|
|
149955
149955
|
error_kind: "validation"
|
|
149956
149956
|
});
|
|
149957
149957
|
}
|
|
149958
|
+
if (isNativeDevtoolsBlockResult(params.command, toolResult)) {
|
|
149959
|
+
throw new FailureError(
|
|
149960
|
+
`${params.command} did not run (${toolResult.status}): ${toolResult.message} \u2014 nothing was recorded, so the take still matches what is on screen; clear the block and call flow-add-step again`,
|
|
149961
|
+
{
|
|
149962
|
+
error_code: FAILURE_CODES.NATIVE_DEVTOOLS_NOT_CONNECTED,
|
|
149963
|
+
failure_stage: "flow_add_step_native_devtools_block",
|
|
149964
|
+
failure_area: "tool_server",
|
|
149965
|
+
error_kind: "not_found"
|
|
149966
|
+
}
|
|
149967
|
+
);
|
|
149968
|
+
}
|
|
149958
149969
|
let waitWarning;
|
|
149959
149970
|
if (params.command === AWAIT_UI_ELEMENT_TOOL_ID) {
|
|
149960
149971
|
if (isUnmetUiWaitResult(params.command, toolResult)) {
|
|
@@ -151715,6 +151726,7 @@ var import_pngjs4 = __toESM(require_png());
|
|
|
151715
151726
|
var import_promises11 = __toESM(require("fs/promises"));
|
|
151716
151727
|
var import_path7 = __toESM(require("path"));
|
|
151717
151728
|
var import_pngjs3 = __toESM(require_png());
|
|
151729
|
+
init_src();
|
|
151718
151730
|
|
|
151719
151731
|
// ../tool-server/src/tools/screenshot-diff/screenshot-diff-ocr.ts
|
|
151720
151732
|
var import_child_process8 = require("child_process");
|
|
@@ -153449,13 +153461,25 @@ async function writeDiffArtifacts(params) {
|
|
|
153449
153461
|
);
|
|
153450
153462
|
}
|
|
153451
153463
|
async function decodePngFile(filePath) {
|
|
153452
|
-
|
|
153453
|
-
|
|
153454
|
-
|
|
153455
|
-
|
|
153456
|
-
|
|
153457
|
-
|
|
153458
|
-
|
|
153464
|
+
try {
|
|
153465
|
+
const buffer = await import_promises11.default.readFile(filePath);
|
|
153466
|
+
const png = import_pngjs3.PNG.sync.read(buffer);
|
|
153467
|
+
return {
|
|
153468
|
+
width: png.width,
|
|
153469
|
+
height: png.height,
|
|
153470
|
+
data: png.data
|
|
153471
|
+
};
|
|
153472
|
+
} catch (err) {
|
|
153473
|
+
throw new FailureError(
|
|
153474
|
+
`Could not read PNG at ${filePath}: ${err instanceof Error ? err.message : String(err)}`,
|
|
153475
|
+
{
|
|
153476
|
+
error_code: FAILURE_CODES.SCREENSHOT_DIFF_INPUT_INVALID,
|
|
153477
|
+
failure_stage: "screenshot_diff_decode_failed",
|
|
153478
|
+
failure_area: "tool_server",
|
|
153479
|
+
error_kind: "validation"
|
|
153480
|
+
}
|
|
153481
|
+
);
|
|
153482
|
+
}
|
|
153459
153483
|
}
|
|
153460
153484
|
async function analyzeScreenshotTextChangesSafely(options) {
|
|
153461
153485
|
try {
|
package/package.json
CHANGED