@swmansion/argent 0.25.1-next.26 → 0.25.1-next.27
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 +21 -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.27";
|
|
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.27";
|
|
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.27";
|
|
94708
94708
|
}
|
|
94709
94709
|
return "0.0.0";
|
|
94710
94710
|
}
|
|
@@ -151715,6 +151715,7 @@ var import_pngjs4 = __toESM(require_png());
|
|
|
151715
151715
|
var import_promises11 = __toESM(require("fs/promises"));
|
|
151716
151716
|
var import_path7 = __toESM(require("path"));
|
|
151717
151717
|
var import_pngjs3 = __toESM(require_png());
|
|
151718
|
+
init_src();
|
|
151718
151719
|
|
|
151719
151720
|
// ../tool-server/src/tools/screenshot-diff/screenshot-diff-ocr.ts
|
|
151720
151721
|
var import_child_process8 = require("child_process");
|
|
@@ -153449,13 +153450,25 @@ async function writeDiffArtifacts(params) {
|
|
|
153449
153450
|
);
|
|
153450
153451
|
}
|
|
153451
153452
|
async function decodePngFile(filePath) {
|
|
153452
|
-
|
|
153453
|
-
|
|
153454
|
-
|
|
153455
|
-
|
|
153456
|
-
|
|
153457
|
-
|
|
153458
|
-
|
|
153453
|
+
try {
|
|
153454
|
+
const buffer = await import_promises11.default.readFile(filePath);
|
|
153455
|
+
const png = import_pngjs3.PNG.sync.read(buffer);
|
|
153456
|
+
return {
|
|
153457
|
+
width: png.width,
|
|
153458
|
+
height: png.height,
|
|
153459
|
+
data: png.data
|
|
153460
|
+
};
|
|
153461
|
+
} catch (err) {
|
|
153462
|
+
throw new FailureError(
|
|
153463
|
+
`Could not read PNG at ${filePath}: ${err instanceof Error ? err.message : String(err)}`,
|
|
153464
|
+
{
|
|
153465
|
+
error_code: FAILURE_CODES.SCREENSHOT_DIFF_INPUT_INVALID,
|
|
153466
|
+
failure_stage: "screenshot_diff_decode_failed",
|
|
153467
|
+
failure_area: "tool_server",
|
|
153468
|
+
error_kind: "validation"
|
|
153469
|
+
}
|
|
153470
|
+
);
|
|
153471
|
+
}
|
|
153459
153472
|
}
|
|
153460
153473
|
async function analyzeScreenshotTextChangesSafely(options) {
|
|
153461
153474
|
try {
|
package/package.json
CHANGED