@swmansion/argent 0.34.0 → 0.34.1-next.0
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/bin/argent-android-devtools-0.4.0.apk +0 -0
- package/bin/darwin/argent-macos-helper +0 -0
- package/bin/darwin/ax-service +0 -0
- package/bin/darwin/tvos-ax-service +0 -0
- package/bin/darwin/tvos-hid-daemon +0 -0
- package/bin/network-inspector/network-inspector.jar +0 -0
- package/bin/tcp/ax-service +0 -0
- package/dist/cli-cmds.mjs +53 -39
- package/dist/installer.mjs +1 -1
- package/dist/tool-server.cjs +1 -1
- package/dylibs/libArgentInjectionBootstrap.dylib +0 -0
- package/dylibs/libKeyboardPatch.dylib +0 -0
- package/dylibs/libNativeDevtoolsIos.dylib +0 -0
- package/dylibs/macos/libArgentInjectionBootstrap.dylib +0 -0
- package/dylibs/macos/libNativeDevtoolsMacos.dylib +0 -0
- package/dylibs/tcp/libArgentInjectionBootstrap.dylib +0 -0
- package/dylibs/tcp/libKeyboardPatch.dylib +0 -0
- package/dylibs/tcp/libNativeDevtoolsIos.dylib +0 -0
- package/dylibs/tvos/libArgentInjectionBootstrap.dylib +0 -0
- package/dylibs/tvos/libKeyboardPatch.dylib +0 -0
- package/dylibs/tvos/libNativeDevtoolsIos.dylib +0 -0
- package/package.json +1 -1
|
Binary file
|
|
Binary file
|
package/bin/darwin/ax-service
CHANGED
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
package/bin/tcp/ax-service
CHANGED
|
Binary file
|
package/dist/cli-cmds.mjs
CHANGED
|
@@ -36072,7 +36072,7 @@ var _CI_VENDOR_COUNT_FOR_TEST = vendors_default.length;
|
|
|
36072
36072
|
var SESSION_ID2 = randomUUID5();
|
|
36073
36073
|
function readCliVersion() {
|
|
36074
36074
|
if (true) {
|
|
36075
|
-
return "0.34.0";
|
|
36075
|
+
return "0.34.1-next.0";
|
|
36076
36076
|
}
|
|
36077
36077
|
return "0.0.0";
|
|
36078
36078
|
}
|
|
@@ -37147,11 +37147,12 @@ A directory run prints only the steps that need attention (each failure, each
|
|
|
37147
37147
|
warning, and each script step's output), then its outcome. After the last test
|
|
37148
37148
|
it lists every failed test with its reason and a command that re-runs that test
|
|
37149
37149
|
alone, then a final summary; --recursive walks subdirectories too
|
|
37150
|
-
(dot-directories
|
|
37151
|
-
keeps the batch running, as does one the
|
|
37152
|
-
file, or a device it cannot resolve. A
|
|
37153
|
-
does not mark as validation, or a
|
|
37154
|
-
counts the remaining tests
|
|
37150
|
+
(__baselines__, node_modules and dot-directories other than .argent are
|
|
37151
|
+
skipped). A test that fails its steps keeps the batch running, as does one the
|
|
37152
|
+
server rejects up front \u2014 an invalid file, or a device it cannot resolve. A
|
|
37153
|
+
transport failure, a rejection the server does not mark as validation, or a
|
|
37154
|
+
reply that is not a report stops the batch and counts the remaining tests
|
|
37155
|
+
skipped.
|
|
37155
37156
|
|
|
37156
37157
|
A test can declare a \`requires:\` block (platform, runtimeKind) that names the
|
|
37157
37158
|
targets it supports. A directory run skips each test whose requirements the
|
|
@@ -37183,10 +37184,12 @@ Subcommands:
|
|
|
37183
37184
|
run <test|test.yaml|dir> Run a saved e2e test by name, a YAML file by path,
|
|
37184
37185
|
or every test in a directory, and report pass/fail
|
|
37185
37186
|
(exit reflects result)
|
|
37186
|
-
list [--json]
|
|
37187
|
-
|
|
37187
|
+
list [dir] [-r] [--json] List runnable YAML paths in dir (-r: also in its
|
|
37188
|
+
subdirectories), or in .argent/e2e and
|
|
37189
|
+
.argent/flows (legacy) with notes on stderr.
|
|
37188
37190
|
--json prints { "e2eTests": [...] } instead, with
|
|
37189
|
-
path, name, legacy and shadowedBy
|
|
37191
|
+
path per entry, plus name, legacy and shadowedBy
|
|
37192
|
+
when no dir is given
|
|
37190
37193
|
|
|
37191
37194
|
Options (run):
|
|
37192
37195
|
--device <id> Device id to run against (auto-detected when omitted)
|
|
@@ -37228,7 +37231,10 @@ var RUN_OPTIONS = {
|
|
|
37228
37231
|
"platform": { kind: "value" },
|
|
37229
37232
|
"output": { kind: "value" }
|
|
37230
37233
|
};
|
|
37231
|
-
var LIST_OPTIONS = {
|
|
37234
|
+
var LIST_OPTIONS = {
|
|
37235
|
+
json: { kind: "boolean" },
|
|
37236
|
+
recursive: { kind: "boolean", alias: "r" }
|
|
37237
|
+
};
|
|
37232
37238
|
function parseRunArgs(argv) {
|
|
37233
37239
|
let parsed;
|
|
37234
37240
|
try {
|
|
@@ -37383,8 +37389,11 @@ function shellQuoteArg(arg) {
|
|
|
37383
37389
|
if (SHELL_SAFE_ARG.test(arg)) return arg;
|
|
37384
37390
|
return `'${arg.replaceAll("'", "'\\''")}'`;
|
|
37385
37391
|
}
|
|
37392
|
+
function optionSafePath(p) {
|
|
37393
|
+
return p.startsWith("-") ? `.${path17.sep}${p}` : p;
|
|
37394
|
+
}
|
|
37386
37395
|
function rerunCommand(flowPath, rel, projectRoot, args) {
|
|
37387
|
-
const pathArg = (p) => shellQuoteArg(
|
|
37396
|
+
const pathArg = (p) => shellQuoteArg(optionSafePath(p));
|
|
37388
37397
|
const fromCwd = path17.relative(projectRoot, flowPath);
|
|
37389
37398
|
const shown = path17.isAbsolute(fromCwd) || fromCwd.split(/[\\/]+/).includes("..") ? flowPath : fromCwd;
|
|
37390
37399
|
const parts = ["argent e2e run", pathArg(shown)];
|
|
@@ -37581,24 +37590,6 @@ async function isRunnableFlowFile(filePath) {
|
|
|
37581
37590
|
return false;
|
|
37582
37591
|
}
|
|
37583
37592
|
}
|
|
37584
|
-
async function collectRunnableFlowPaths(dir, relDir = "") {
|
|
37585
|
-
const found = [];
|
|
37586
|
-
const entries = await fsp.readdir(dir, { withFileTypes: true });
|
|
37587
|
-
for (const entry of entries) {
|
|
37588
|
-
const rel = relDir ? path17.join(relDir, entry.name) : entry.name;
|
|
37589
|
-
if (entry.isDirectory()) {
|
|
37590
|
-
if (entry.name === "__baselines__") continue;
|
|
37591
|
-
found.push(
|
|
37592
|
-
...await collectRunnableFlowPaths(path17.join(dir, entry.name), rel).catch(() => [])
|
|
37593
|
-
);
|
|
37594
|
-
continue;
|
|
37595
|
-
}
|
|
37596
|
-
if (!entry.name.endsWith(".yaml")) continue;
|
|
37597
|
-
if (!SAFE_FLOW_NAME.test(path17.basename(entry.name, ".yaml"))) continue;
|
|
37598
|
-
if (await isRunnableFlowFile(path17.join(dir, entry.name))) found.push(rel);
|
|
37599
|
-
}
|
|
37600
|
-
return found;
|
|
37601
|
-
}
|
|
37602
37593
|
async function resolveFlowRef(ref, projectRoot) {
|
|
37603
37594
|
if (!SAFE_FLOW_NAME.test(ref)) return { suppliedPath: ref, fromName: false };
|
|
37604
37595
|
const picked = await resolveE2eFile(projectRoot, ref);
|
|
@@ -37634,7 +37625,7 @@ async function collectFlowFiles(dir, recursive2) {
|
|
|
37634
37625
|
for (const entry of await fsp.readdir(current, { withFileTypes: true })) {
|
|
37635
37626
|
const entryRel = rel ? path17.join(rel, entry.name) : entry.name;
|
|
37636
37627
|
if (entry.isDirectory()) {
|
|
37637
|
-
if (recursive2 &&
|
|
37628
|
+
if (recursive2 && entry.name !== "__baselines__" && entry.name !== "node_modules" && (entry.name === ".argent" || !entry.name.startsWith("."))) {
|
|
37638
37629
|
await walk(path17.join(current, entry.name), entryRel).catch(() => {
|
|
37639
37630
|
});
|
|
37640
37631
|
}
|
|
@@ -37908,14 +37899,22 @@ async function e2e(argv, options) {
|
|
|
37908
37899
|
return;
|
|
37909
37900
|
}
|
|
37910
37901
|
let json3;
|
|
37902
|
+
let listDir;
|
|
37903
|
+
let recursive2;
|
|
37911
37904
|
try {
|
|
37912
37905
|
const parsed = parseCommandArgs(rest, LIST_OPTIONS);
|
|
37913
|
-
if (parsed.positionals.length >
|
|
37906
|
+
if (parsed.positionals.length > 1) {
|
|
37914
37907
|
throw new UsageError(
|
|
37915
|
-
`unexpected argument ${JSON.stringify(parsed.positionals[
|
|
37908
|
+
`unexpected argument ${JSON.stringify(parsed.positionals[1])}; e2e list takes at most one directory path`
|
|
37916
37909
|
);
|
|
37917
37910
|
}
|
|
37918
37911
|
json3 = parsed.options.json === true;
|
|
37912
|
+
listDir = parsed.positionals[0];
|
|
37913
|
+
if (listDir === "") throw new UsageError("e2e list requires a non-empty directory path");
|
|
37914
|
+
recursive2 = parsed.options.recursive === true;
|
|
37915
|
+
if (recursive2 && listDir === void 0) {
|
|
37916
|
+
throw new UsageError("e2e list --recursive requires a directory path");
|
|
37917
|
+
}
|
|
37919
37918
|
} catch (err) {
|
|
37920
37919
|
if (!(err instanceof UsageError)) throw err;
|
|
37921
37920
|
console.error(
|
|
@@ -37928,21 +37927,34 @@ Run \`argent e2e --help\`.`
|
|
|
37928
37927
|
console.error(json3 ? JSON.stringify(errorRecord(message)) : message);
|
|
37929
37928
|
return exitAfterFlush(2);
|
|
37930
37929
|
};
|
|
37930
|
+
if (listDir?.split(/[\\/]+/).includes("..")) {
|
|
37931
|
+
return listFail(
|
|
37932
|
+
`E2E test directory must not contain ".." segments - they are collapsed without following symlinks, so the path can name a different directory than the one your shell opens: ${listDir}
|
|
37933
|
+
Pass the fully resolved path to the directory.`
|
|
37934
|
+
);
|
|
37935
|
+
}
|
|
37931
37936
|
const entries = [];
|
|
37932
37937
|
const byName = /* @__PURE__ */ new Map();
|
|
37933
37938
|
let anyDir = false;
|
|
37934
|
-
|
|
37939
|
+
const dirs = listDir === void 0 ? E2E_DIRS : [listDir];
|
|
37940
|
+
for (const dir of dirs) {
|
|
37935
37941
|
let rels;
|
|
37936
37942
|
try {
|
|
37937
|
-
rels =
|
|
37943
|
+
rels = await collectFlowFiles(path17.resolve(dir), listDir === void 0 || recursive2);
|
|
37938
37944
|
} catch (err) {
|
|
37939
37945
|
const code = err.code;
|
|
37940
|
-
if (code === "ENOENT" || code === "ENOTDIR") continue;
|
|
37941
|
-
return listFail(
|
|
37946
|
+
if (listDir === void 0 && (code === "ENOENT" || code === "ENOTDIR")) continue;
|
|
37947
|
+
return listFail(
|
|
37948
|
+
code === "ENOENT" ? `E2E test directory not found: ${dir}` : code === "ENOTDIR" ? `E2E test path is not a directory: ${dir}` : `Could not read e2e test directory: ${dir}`
|
|
37949
|
+
);
|
|
37942
37950
|
}
|
|
37943
37951
|
anyDir = true;
|
|
37944
37952
|
for (const rel of rels) {
|
|
37945
37953
|
const shown = path17.join(dir, rel);
|
|
37954
|
+
if (listDir !== void 0) {
|
|
37955
|
+
entries.push({ path: optionSafePath(shown) });
|
|
37956
|
+
continue;
|
|
37957
|
+
}
|
|
37946
37958
|
const name = path17.dirname(rel) === "." ? path17.basename(rel, ".yaml") : void 0;
|
|
37947
37959
|
const shadowedBy = name === void 0 ? void 0 : byName.get(name);
|
|
37948
37960
|
if (name !== void 0 && shadowedBy === void 0) byName.set(name, shown);
|
|
@@ -37963,9 +37975,11 @@ Run \`argent e2e --help\`.`
|
|
|
37963
37975
|
console.error(
|
|
37964
37976
|
`warning: no ${E2E_DIRS.join(" or ")} directory in the current working directory`
|
|
37965
37977
|
);
|
|
37966
|
-
} else if (entries.length === 0)
|
|
37967
|
-
console.error(
|
|
37968
|
-
|
|
37978
|
+
} else if (entries.length === 0) {
|
|
37979
|
+
console.error(
|
|
37980
|
+
`No e2e tests found in ${listDir ?? E2E_DIRS.join(" or ")}` + (listDir === void 0 || recursive2 ? "" : "\nPass -r/--recursive to include subdirectories.")
|
|
37981
|
+
);
|
|
37982
|
+
} else {
|
|
37969
37983
|
console.log(entries.map((entry) => entry.path).join("\n"));
|
|
37970
37984
|
for (const entry of entries) {
|
|
37971
37985
|
if (entry.shadowedBy !== void 0)
|
package/dist/installer.mjs
CHANGED
|
@@ -16989,7 +16989,7 @@ var _CI_VENDOR_COUNT_FOR_TEST = vendors_default.length;
|
|
|
16989
16989
|
var SESSION_ID = randomUUID4();
|
|
16990
16990
|
function readCliVersion() {
|
|
16991
16991
|
if (true) {
|
|
16992
|
-
return "0.34.0";
|
|
16992
|
+
return "0.34.1-next.0";
|
|
16993
16993
|
}
|
|
16994
16994
|
return "0.0.0";
|
|
16995
16995
|
}
|
package/dist/tool-server.cjs
CHANGED
|
@@ -101281,7 +101281,7 @@ var _CI_VENDOR_COUNT_FOR_TEST = vendors_default.length;
|
|
|
101281
101281
|
var SESSION_ID = (0, import_node_crypto3.randomUUID)();
|
|
101282
101282
|
function readCliVersion() {
|
|
101283
101283
|
if (true) {
|
|
101284
|
-
return "0.34.0";
|
|
101284
|
+
return "0.34.1-next.0";
|
|
101285
101285
|
}
|
|
101286
101286
|
return "0.0.0";
|
|
101287
101287
|
}
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
package/package.json
CHANGED