@swmansion/argent 0.33.1-next.21 → 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 +29 -9
- 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
|
}
|
|
@@ -133748,7 +133748,15 @@ function resolveRunnerProjectPath() {
|
|
|
133748
133748
|
}
|
|
133749
133749
|
);
|
|
133750
133750
|
}
|
|
133751
|
-
var FINGERPRINT_NOISE = /* @__PURE__ */ new Set([
|
|
133751
|
+
var FINGERPRINT_NOISE = /* @__PURE__ */ new Set([
|
|
133752
|
+
"xcuserdata",
|
|
133753
|
+
"DerivedData",
|
|
133754
|
+
"build",
|
|
133755
|
+
"Build",
|
|
133756
|
+
".build",
|
|
133757
|
+
".swiftpm",
|
|
133758
|
+
".DS_Store"
|
|
133759
|
+
]);
|
|
133752
133760
|
async function fingerprintRunnerSources(projectPath) {
|
|
133753
133761
|
const root = path27.dirname(projectPath);
|
|
133754
133762
|
const hash2 = (0, import_node_crypto9.createHash)("sha256");
|
|
@@ -133797,8 +133805,11 @@ async function removeBuildSharedByAllTeams(currentTeamId) {
|
|
|
133797
133805
|
entries.filter((entry) => entry !== currentTeamId && !TEAM_DIRECTORY_RE.test(entry)).map((entry) => fsp.rm(path27.join(root, entry), { recursive: true, force: true }))
|
|
133798
133806
|
);
|
|
133799
133807
|
}
|
|
133808
|
+
function runnerProductsDir(derivedDataPath) {
|
|
133809
|
+
return path27.join(derivedDataPath, "Build", "Products");
|
|
133810
|
+
}
|
|
133800
133811
|
function findBaseXctestrun(derivedDataPath) {
|
|
133801
|
-
const productsDir =
|
|
133812
|
+
const productsDir = runnerProductsDir(derivedDataPath);
|
|
133802
133813
|
if (!fs31.existsSync(productsDir)) {
|
|
133803
133814
|
return null;
|
|
133804
133815
|
}
|
|
@@ -133844,6 +133855,18 @@ function runnerBuildStaticArgs(projectPath, config2) {
|
|
|
133844
133855
|
`DEVELOPMENT_TEAM=${config2.teamId}`
|
|
133845
133856
|
];
|
|
133846
133857
|
}
|
|
133858
|
+
function runnerBuildLocationArgs(derivedDataPath) {
|
|
133859
|
+
const root = path27.resolve(derivedDataPath);
|
|
133860
|
+
const intermediatesDir = path27.join(root, "Build", "Intermediates.noindex");
|
|
133861
|
+
return [
|
|
133862
|
+
"-derivedDataPath",
|
|
133863
|
+
derivedDataPath,
|
|
133864
|
+
`SYMROOT=${runnerProductsDir(root)}`,
|
|
133865
|
+
`OBJROOT=${intermediatesDir}`,
|
|
133866
|
+
// Set from the same preference, and OBJROOT does not move it.
|
|
133867
|
+
`SHARED_PRECOMPS_DIR=${path27.join(intermediatesDir, "PrecompiledHeaders")}`
|
|
133868
|
+
];
|
|
133869
|
+
}
|
|
133847
133870
|
function computeRunnerCacheKey(sourcesHash, xcodeVersion, staticArgs) {
|
|
133848
133871
|
return (0, import_node_crypto9.createHash)("sha256").update([sourcesHash, xcodeVersion, ...staticArgs].join("\n")).digest("hex").slice(0, 16);
|
|
133849
133872
|
}
|
|
@@ -133857,9 +133880,7 @@ var EXPIRY_RE = /<key>ExpirationDate<\/key>\s*<date>([^<]+)<\/date>/;
|
|
|
133857
133880
|
var PROFILE_RENEWAL_MARGIN_MS = 60 * 60 * 1e3;
|
|
133858
133881
|
async function readRunnerExpiryDate(derivedDataPath) {
|
|
133859
133882
|
const file2 = path27.join(
|
|
133860
|
-
derivedDataPath,
|
|
133861
|
-
"Build",
|
|
133862
|
-
"Products",
|
|
133883
|
+
runnerProductsDir(derivedDataPath),
|
|
133863
133884
|
"Debug-iphoneos",
|
|
133864
133885
|
"ArgentRunnerUITests-Runner.app",
|
|
133865
133886
|
"embedded.mobileprovision"
|
|
@@ -133920,8 +133941,7 @@ async function buildRunnerArtifact(derivedDataPath, staticArgs, destinationUdid,
|
|
|
133920
133941
|
"-destination",
|
|
133921
133942
|
// A concrete UDID lets automatic signing register that device on the profile.
|
|
133922
133943
|
destinationUdid ? `platform=iOS,id=${destinationUdid}` : "generic/platform=iOS",
|
|
133923
|
-
|
|
133924
|
-
derivedDataPath
|
|
133944
|
+
...runnerBuildLocationArgs(derivedDataPath)
|
|
133925
133945
|
];
|
|
133926
133946
|
try {
|
|
133927
133947
|
await execFileAsync18("xcodebuild", args, {
|
|
@@ -133954,7 +133974,7 @@ ${xcodebuildFailureSummary(output2)}`,
|
|
|
133954
133974
|
if (!built) {
|
|
133955
133975
|
throw withFailureSignal(
|
|
133956
133976
|
new Error(
|
|
133957
|
-
`xcodebuild reported success but no iphoneos .xctestrun was found under ${derivedDataPath}
|
|
133977
|
+
`xcodebuild reported success but no iphoneos .xctestrun was found under ${runnerProductsDir(derivedDataPath)}.`
|
|
133958
133978
|
),
|
|
133959
133979
|
{
|
|
133960
133980
|
error_code: FAILURE_CODES.IOS_DEVICE_RUNNER_NOT_READY,
|
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",
|