@swmansion/argent 0.33.1-next.22 → 0.33.1-next.23
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 +69 -26
- package/dist/installer.mjs +1 -1
- package/dist/tool-server.cjs +1 -1
- package/package.json +1 -1
package/dist/cli-cmds.mjs
CHANGED
|
@@ -36069,7 +36069,7 @@ var _CI_VENDOR_COUNT_FOR_TEST = vendors_default.length;
|
|
|
36069
36069
|
var SESSION_ID2 = randomUUID5();
|
|
36070
36070
|
function readCliVersion() {
|
|
36071
36071
|
if (true) {
|
|
36072
|
-
return "0.33.1-next.
|
|
36072
|
+
return "0.33.1-next.23";
|
|
36073
36073
|
}
|
|
36074
36074
|
return "0.0.0";
|
|
36075
36075
|
}
|
|
@@ -37180,8 +37180,10 @@ Subcommands:
|
|
|
37180
37180
|
run <test|test.yaml|dir> Run a saved e2e test by name, a YAML file by path,
|
|
37181
37181
|
or every test in a directory, and report pass/fail
|
|
37182
37182
|
(exit reflects result)
|
|
37183
|
-
list
|
|
37184
|
-
.argent/flows (legacy); notes go to stderr
|
|
37183
|
+
list [--json] List runnable YAML paths in .argent/e2e and
|
|
37184
|
+
.argent/flows (legacy); notes go to stderr.
|
|
37185
|
+
--json prints { "e2eTests": [...] } instead, with
|
|
37186
|
+
path, name, legacy and shadowedBy per entry
|
|
37185
37187
|
|
|
37186
37188
|
Options (run):
|
|
37187
37189
|
--device <id> Device id to run against (auto-detected when omitted)
|
|
@@ -37223,6 +37225,7 @@ var RUN_OPTIONS = {
|
|
|
37223
37225
|
"platform": { kind: "value" },
|
|
37224
37226
|
"output": { kind: "value" }
|
|
37225
37227
|
};
|
|
37228
|
+
var LIST_OPTIONS = { json: { kind: "boolean" } };
|
|
37226
37229
|
function parseRunArgs(argv) {
|
|
37227
37230
|
let parsed;
|
|
37228
37231
|
try {
|
|
@@ -37895,43 +37898,84 @@ async function e2e(argv, options) {
|
|
|
37895
37898
|
await printHelp();
|
|
37896
37899
|
return;
|
|
37897
37900
|
}
|
|
37901
|
+
const flagGiven = (flag) => rest.some((tok) => tok === flag || tok.startsWith(`${flag}=`));
|
|
37898
37902
|
if (sub === "list") {
|
|
37899
|
-
|
|
37900
|
-
|
|
37901
|
-
|
|
37903
|
+
if (rest.includes("--help") || rest.includes("-h")) {
|
|
37904
|
+
await printHelp();
|
|
37905
|
+
return;
|
|
37906
|
+
}
|
|
37907
|
+
let json3;
|
|
37908
|
+
try {
|
|
37909
|
+
const parsed = parseCommandArgs(rest, LIST_OPTIONS);
|
|
37910
|
+
if (parsed.positionals.length > 0) {
|
|
37911
|
+
throw new UsageError(
|
|
37912
|
+
`unexpected argument ${JSON.stringify(parsed.positionals[0])}; e2e list takes no arguments`
|
|
37913
|
+
);
|
|
37914
|
+
}
|
|
37915
|
+
json3 = parsed.options.json === true;
|
|
37916
|
+
} catch (err) {
|
|
37917
|
+
if (!(err instanceof UsageError)) throw err;
|
|
37918
|
+
console.error(
|
|
37919
|
+
flagGiven("--json") ? JSON.stringify(errorRecord(err.message)) : `Error: ${err.message}
|
|
37920
|
+
Run \`argent e2e --help\`.`
|
|
37921
|
+
);
|
|
37922
|
+
return exitAfterFlush(2);
|
|
37923
|
+
}
|
|
37924
|
+
const listFail = (message) => {
|
|
37925
|
+
console.error(json3 ? JSON.stringify(errorRecord(message)) : message);
|
|
37926
|
+
return exitAfterFlush(2);
|
|
37927
|
+
};
|
|
37928
|
+
const entries = [];
|
|
37902
37929
|
const byName = /* @__PURE__ */ new Map();
|
|
37903
37930
|
let anyDir = false;
|
|
37904
37931
|
for (const dir of E2E_DIRS) {
|
|
37905
37932
|
let rels;
|
|
37906
37933
|
try {
|
|
37907
37934
|
rels = (await collectRunnableFlowPaths(path17.join(process.cwd(), dir))).sort();
|
|
37908
|
-
} catch {
|
|
37909
|
-
|
|
37935
|
+
} catch (err) {
|
|
37936
|
+
const code = err.code;
|
|
37937
|
+
if (code === "ENOENT" || code === "ENOTDIR") continue;
|
|
37938
|
+
return listFail(`Could not read e2e test directory: ${dir}`);
|
|
37910
37939
|
}
|
|
37911
37940
|
anyDir = true;
|
|
37912
37941
|
for (const rel of rels) {
|
|
37913
37942
|
const shown = path17.join(dir, rel);
|
|
37914
37943
|
const name = path17.dirname(rel) === "." ? path17.basename(rel, ".yaml") : void 0;
|
|
37915
|
-
const
|
|
37916
|
-
if (name !== void 0 &&
|
|
37917
|
-
|
|
37918
|
-
|
|
37919
|
-
|
|
37920
|
-
|
|
37921
|
-
|
|
37922
|
-
|
|
37923
|
-
|
|
37924
|
-
|
|
37925
|
-
|
|
37926
|
-
|
|
37927
|
-
);
|
|
37944
|
+
const shadowedBy = name === void 0 ? void 0 : byName.get(name);
|
|
37945
|
+
if (name !== void 0 && shadowedBy === void 0) byName.set(name, shown);
|
|
37946
|
+
entries.push({
|
|
37947
|
+
path: shown,
|
|
37948
|
+
...name !== void 0 && { name },
|
|
37949
|
+
legacy: dir !== E2E_DIR,
|
|
37950
|
+
...shadowedBy !== void 0 && { shadowedBy }
|
|
37951
|
+
});
|
|
37952
|
+
}
|
|
37953
|
+
}
|
|
37954
|
+
if (json3) {
|
|
37955
|
+
const doc = { e2eTests: entries, ...!anyDir && { warning: "no-e2e-directory" } };
|
|
37956
|
+
console.log(JSON.stringify(doc, null, 2));
|
|
37957
|
+
return;
|
|
37928
37958
|
}
|
|
37929
37959
|
if (!anyDir) {
|
|
37930
|
-
console.
|
|
37931
|
-
|
|
37960
|
+
console.error(
|
|
37961
|
+
`warning: no ${E2E_DIRS.join(" or ")} directory in the current working directory`
|
|
37962
|
+
);
|
|
37963
|
+
} else if (entries.length === 0)
|
|
37964
|
+
console.error(`No e2e tests found in ${E2E_DIRS.join(" or ")}`);
|
|
37932
37965
|
else {
|
|
37933
|
-
console.log(
|
|
37934
|
-
for (const
|
|
37966
|
+
console.log(entries.map((entry) => entry.path).join("\n"));
|
|
37967
|
+
for (const entry of entries) {
|
|
37968
|
+
if (entry.shadowedBy !== void 0)
|
|
37969
|
+
console.error(
|
|
37970
|
+
`warning: ${entry.path} is shadowed by ${entry.shadowedBy} when run by name`
|
|
37971
|
+
);
|
|
37972
|
+
}
|
|
37973
|
+
const legacyCount = entries.filter((entry) => entry.legacy).length;
|
|
37974
|
+
if (legacyCount > 0) {
|
|
37975
|
+
console.error(
|
|
37976
|
+
`note: ${legacyCount} test${legacyCount === 1 ? "" : "s"} listed from .argent/flows (legacy); move ${legacyCount === 1 ? "it" : "them"} to .argent/e2e`
|
|
37977
|
+
);
|
|
37978
|
+
}
|
|
37935
37979
|
}
|
|
37936
37980
|
return;
|
|
37937
37981
|
}
|
|
@@ -37939,7 +37983,6 @@ async function e2e(argv, options) {
|
|
|
37939
37983
|
console.error(`Unknown e2e subcommand "${sub}". Run \`argent e2e --help\`.`);
|
|
37940
37984
|
return exitAfterFlush(2);
|
|
37941
37985
|
}
|
|
37942
|
-
const flagGiven = (flag) => rest.some((tok) => tok === flag || tok.startsWith(`${flag}=`));
|
|
37943
37986
|
const jsonStream = flagGiven("--json-stream");
|
|
37944
37987
|
const json2 = !jsonStream && flagGiven("--json");
|
|
37945
37988
|
if (rest.includes("--help") || rest.includes("-h")) {
|
package/dist/installer.mjs
CHANGED
|
@@ -16986,7 +16986,7 @@ var _CI_VENDOR_COUNT_FOR_TEST = vendors_default.length;
|
|
|
16986
16986
|
var SESSION_ID = randomUUID4();
|
|
16987
16987
|
function readCliVersion() {
|
|
16988
16988
|
if (true) {
|
|
16989
|
-
return "0.33.1-next.
|
|
16989
|
+
return "0.33.1-next.23";
|
|
16990
16990
|
}
|
|
16991
16991
|
return "0.0.0";
|
|
16992
16992
|
}
|
package/dist/tool-server.cjs
CHANGED
|
@@ -101278,7 +101278,7 @@ var _CI_VENDOR_COUNT_FOR_TEST = vendors_default.length;
|
|
|
101278
101278
|
var SESSION_ID = (0, import_node_crypto3.randomUUID)();
|
|
101279
101279
|
function readCliVersion() {
|
|
101280
101280
|
if (true) {
|
|
101281
|
-
return "0.33.1-next.
|
|
101281
|
+
return "0.33.1-next.23";
|
|
101282
101282
|
}
|
|
101283
101283
|
return "0.0.0";
|
|
101284
101284
|
}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@swmansion/argent",
|
|
3
|
-
"version": "0.33.1-next.
|
|
3
|
+
"version": "0.33.1-next.23",
|
|
4
4
|
"mcpName": "io.github.software-mansion/argent",
|
|
5
5
|
"description": "MCP server for iOS Simulator, Android Emulator, Chromium app and Mac app control",
|
|
6
6
|
"license": "Apache-2.0",
|