@qawolf/cli 1.43.1 → 2.1.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/dist/cli.js CHANGED
@@ -8569,6 +8569,18 @@ var authMessages = {
8569
8569
  success: "Logged out successfully.",
8570
8570
  cancelled: "Logout cancelled."
8571
8571
  },
8572
+ gitHelper: {
8573
+ added: (file) => `Git now uses your QA Wolf sign-in. Added to ${file ?? "your global Git config"}:`,
8574
+ unchanged: "Git already uses your QA Wolf sign-in.",
8575
+ gitMissing: "Git is not installed, so Git setup was skipped.",
8576
+ temporaryInstall: "Git setup was skipped because this CLI runs from a temporary install. Install the CLI globally to clone with your QA Wolf sign-in.",
8577
+ teamApiKeySkipped: "Git setup was skipped because Git cannot use a team API key. Sign in with your browser or a user API key to clone with your QA Wolf sign-in.",
8578
+ failed: (detail) => `Could not set up Git: ${detail}`,
8579
+ removed: (file) => `Removed the QA Wolf Git helper from ${file ?? "your global Git config"}:`,
8580
+ removalFailed: (detail) => `Could not remove the QA Wolf Git helper: ${detail}`,
8581
+ signedOut: "qawolf: run 'qawolf auth login' to use your QA Wolf sign-in with Git.",
8582
+ teamApiKey: "qawolf: Git needs a browser sign-in or a user API key. Run 'qawolf auth login' to use one."
8583
+ },
8572
8584
  errors: authErrorMessages,
8573
8585
  whoami: whoamiMessages
8574
8586
  };
@@ -10095,6 +10107,7 @@ var bigint = /^-?\d+n?$/;
10095
10107
  var integer = /^-?\d+$/;
10096
10108
  var number = /^-?\d+(?:\.\d+)?$/;
10097
10109
  var boolean = /^(?:true|false)$/i;
10110
+ var _undefined = /^undefined$/i;
10098
10111
  var lowercase = /^[^A-Z]*$/;
10099
10112
  var uppercase = /^[^a-z]*$/;
10100
10113
 
@@ -11015,6 +11028,23 @@ var $ZodBigInt = /* @__PURE__ */ $constructor("$ZodBigInt", (inst, def) => {
11015
11028
  return payload;
11016
11029
  };
11017
11030
  });
11031
+ var $ZodUndefined = /* @__PURE__ */ $constructor("$ZodUndefined", (inst, def) => {
11032
+ $ZodType.init(inst, def);
11033
+ inst._zod.pattern = _undefined;
11034
+ inst._zod.values = new Set([undefined]);
11035
+ inst._zod.parse = (payload, _ctx) => {
11036
+ const input = payload.value;
11037
+ if (typeof input === "undefined")
11038
+ return payload;
11039
+ payload.issues.push({
11040
+ expected: "undefined",
11041
+ code: "invalid_type",
11042
+ input,
11043
+ inst
11044
+ });
11045
+ return payload;
11046
+ };
11047
+ });
11018
11048
  var $ZodUnknown = /* @__PURE__ */ $constructor("$ZodUnknown", (inst, def) => {
11019
11049
  $ZodType.init(inst, def);
11020
11050
  inst._zod.parse = (payload) => payload;
@@ -12549,6 +12579,12 @@ function _coercedBigint(Class, params) {
12549
12579
  ...normalizeParams(params)
12550
12580
  });
12551
12581
  }
12582
+ function _undefined2(Class, params) {
12583
+ return new Class({
12584
+ type: "undefined",
12585
+ ...normalizeParams(params)
12586
+ });
12587
+ }
12552
12588
  function _unknown(Class) {
12553
12589
  return new Class({
12554
12590
  type: "unknown"
@@ -14178,6 +14214,14 @@ var ZodBigInt = /* @__PURE__ */ $constructor("ZodBigInt", (inst, def) => {
14178
14214
  inst.maxValue = bag.maximum ?? null;
14179
14215
  inst.format = bag.format ?? null;
14180
14216
  });
14217
+ var ZodUndefined = /* @__PURE__ */ $constructor("ZodUndefined", (inst, def) => {
14218
+ $ZodUndefined.init(inst, def);
14219
+ ZodType.init(inst, def);
14220
+ inst._zod.processJSONSchema = (ctx, json, params) => undefinedProcessor(inst, ctx, json, params);
14221
+ });
14222
+ function _undefined3(params) {
14223
+ return _undefined2(ZodUndefined, params);
14224
+ }
14181
14225
  var ZodUnknown = /* @__PURE__ */ $constructor("ZodUnknown", (inst, def) => {
14182
14226
  $ZodUnknown.init(inst, def);
14183
14227
  ZodType.init(inst, def);
@@ -23538,7 +23582,7 @@ function startUpdateCheck(deps) {
23538
23582
  // package.json
23539
23583
  var package_default = {
23540
23584
  name: "@qawolf/cli",
23541
- version: "1.43.1",
23585
+ version: "2.1.0",
23542
23586
  description: "Run and manage QA Wolf flows from the terminal, CI, or an AI agent",
23543
23587
  keywords: [
23544
23588
  "automation",
@@ -23612,8 +23656,8 @@ var package_default = {
23612
23656
  "@oxc-node/core": "0.1.0",
23613
23657
  "@qawolf/api-contracts": "0.91.0",
23614
23658
  "@qawolf/emails": "1.1.1",
23615
- "@qawolf/flow-targets": "1.0.0",
23616
- "@qawolf/flows": "0.1.4",
23659
+ "@qawolf/flow-targets": "2.0.0",
23660
+ "@qawolf/flows": "0.3.0",
23617
23661
  "@qawolf/testkit": "1.2.1",
23618
23662
  commander: "14.0.3",
23619
23663
  "env-paths": "4.0.0",
@@ -23645,7 +23689,7 @@ var package_default = {
23645
23689
  webdriverio: "9.27.1"
23646
23690
  },
23647
23691
  engines: {
23648
- node: ">=20.19.0"
23692
+ node: ">=24.14.1"
23649
23693
  },
23650
23694
  packageManager: "bun@1.4.2"
23651
23695
  };
@@ -24326,6 +24370,399 @@ function registerAgentCommand(program, signals) {
24326
24370
  registerAgentGetCommand(agent, signals);
24327
24371
  }
24328
24372
 
24373
+ // src/commands/auth/gitCredential.ts
24374
+ import { text as text2 } from "node:stream/consumers";
24375
+
24376
+ // src/domains/gitCredential/credentialKind.ts
24377
+ var teamApiKeyPrefix = "qawolf_";
24378
+ function isTeamApiKey(credential) {
24379
+ return credential.key.startsWith(teamApiKeyPrefix);
24380
+ }
24381
+
24382
+ // src/domains/gitCredential/answerCredentialRequest.ts
24383
+ var gitUsername = "qawolf";
24384
+ var millisecondsPerSecond = 1000;
24385
+ function readAttributes(input) {
24386
+ return new Map(input.split(`
24387
+ `).filter((line) => line.includes("=")).map((line) => [
24388
+ line.slice(0, line.indexOf("=")),
24389
+ line.slice(line.indexOf("=") + 1)
24390
+ ]));
24391
+ }
24392
+ function isRequestForHost({
24393
+ attributes,
24394
+ hostUrl
24395
+ }) {
24396
+ const host = new URL(hostUrl);
24397
+ return attributes.get("protocol") === host.protocol.replace(/:$/, "") && attributes.get("host") === host.host;
24398
+ }
24399
+ async function answerCredentialRequest({
24400
+ hostUrl,
24401
+ operation,
24402
+ readRequest,
24403
+ resolveCredential
24404
+ }) {
24405
+ if (operation !== "get")
24406
+ return { status: "not-a-lookup" };
24407
+ const attributes = readAttributes(await readRequest());
24408
+ if (!isRequestForHost({ attributes, hostUrl })) {
24409
+ return { status: "other-host" };
24410
+ }
24411
+ const credential = await resolveCredential();
24412
+ if (!credential)
24413
+ return { status: "signed-out" };
24414
+ if (isTeamApiKey(credential)) {
24415
+ return { status: "team-api-key" };
24416
+ }
24417
+ const expiresAtMs = credential.source === "browser" ? readAccessTokenExpiry(credential.key) : undefined;
24418
+ const lines = [
24419
+ `username=${gitUsername}`,
24420
+ `password=${credential.key}`,
24421
+ ...expiresAtMs === undefined ? [] : [
24422
+ `password_expiry_utc=${Math.floor(expiresAtMs / millisecondsPerSecond)}`
24423
+ ]
24424
+ ];
24425
+ return {
24426
+ output: lines.map((line) => `${line}
24427
+ `).join(""),
24428
+ status: "answered"
24429
+ };
24430
+ }
24431
+ // src/domains/gitCredential/helperCommand.ts
24432
+ var helperSubcommand = "auth git-credential";
24433
+ var temporaryInstallPath = /[\\/](?:_npx|bunx-[^\\/]*)[\\/]/;
24434
+ function quoteForShell(value) {
24435
+ return `'${value.replaceAll("'", `'\\''`)}'`;
24436
+ }
24437
+ function resolveHelperCommand(invocation) {
24438
+ if (invocation.compiled) {
24439
+ return {
24440
+ command: `!${quoteForShell(invocation.execPath)} ${helperSubcommand}`,
24441
+ status: "ready"
24442
+ };
24443
+ }
24444
+ const { scriptPath } = invocation;
24445
+ if (scriptPath === undefined || temporaryInstallPath.test(scriptPath)) {
24446
+ return { status: "temporary-install" };
24447
+ }
24448
+ return {
24449
+ command: `!${quoteForShell(invocation.execPath)} ${quoteForShell(scriptPath)} ${helperSubcommand}`,
24450
+ status: "ready"
24451
+ };
24452
+ }
24453
+ function isCliHelperEntry(entry) {
24454
+ return entry.startsWith("!") && entry.endsWith(` ${helperSubcommand}`);
24455
+ }
24456
+ function defaultCliInvocation() {
24457
+ return {
24458
+ compiled: process.env.QAWOLF_COMPILED === "true",
24459
+ execPath: process.execPath,
24460
+ scriptPath: process.argv[1]
24461
+ };
24462
+ }
24463
+
24464
+ // src/domains/gitCredential/helperEntries.ts
24465
+ var keyNotFoundExitCode = 1;
24466
+ var valueNotFoundExitCode = 5;
24467
+ var cliEntryPattern = "^(!.* auth git-credential)?$";
24468
+ var helperListReset = "";
24469
+ function isCliEntry(entry) {
24470
+ return entry === helperListReset || isCliHelperEntry(entry);
24471
+ }
24472
+ function helperKey(hostUrl) {
24473
+ return `credential.${hostUrl}.helper`;
24474
+ }
24475
+ function failure(result) {
24476
+ return {
24477
+ detail: result.stderr.trim() || `git exited with ${result.exitCode}`,
24478
+ status: "failed"
24479
+ };
24480
+ }
24481
+ function runGitConfig({
24482
+ args,
24483
+ deps
24484
+ }) {
24485
+ return deps.spawn("git", ["config", "--global", ...args], {
24486
+ platform: deps.platform
24487
+ });
24488
+ }
24489
+ async function readHelperEntries({
24490
+ deps,
24491
+ hostUrl
24492
+ }) {
24493
+ const result = await runGitConfig({
24494
+ args: ["--show-origin", "--null", "--get-all", helperKey(hostUrl)],
24495
+ deps
24496
+ });
24497
+ if (result.exitCode < 0)
24498
+ return { status: "git-missing" };
24499
+ if (result.exitCode === keyNotFoundExitCode) {
24500
+ return { entries: [], file: undefined, status: "read" };
24501
+ }
24502
+ if (result.exitCode !== 0)
24503
+ return failure(result);
24504
+ const fields = result.stdout.split("\x00");
24505
+ const origins = fields.filter((_field, index) => index % 2 === 0);
24506
+ const values = fields.filter((_field, index) => index % 2 === 1);
24507
+ const [firstOrigin] = origins;
24508
+ return {
24509
+ entries: values,
24510
+ file: firstOrigin?.replace(/^file:/, ""),
24511
+ status: "read"
24512
+ };
24513
+ }
24514
+ async function addEntry({
24515
+ deps,
24516
+ entry,
24517
+ hostUrl
24518
+ }) {
24519
+ const result = await runGitConfig({
24520
+ args: ["--add", helperKey(hostUrl), entry],
24521
+ deps
24522
+ });
24523
+ return result.exitCode === 0 ? undefined : failure(result);
24524
+ }
24525
+ async function unsetCliEntries({
24526
+ deps,
24527
+ hostUrl
24528
+ }) {
24529
+ const result = await runGitConfig({
24530
+ args: ["--unset-all", helperKey(hostUrl), cliEntryPattern],
24531
+ deps
24532
+ });
24533
+ if (result.exitCode === 0 || result.exitCode === valueNotFoundExitCode) {
24534
+ return;
24535
+ }
24536
+ return failure(result);
24537
+ }
24538
+
24539
+ // src/domains/gitCredential/gitConfig.ts
24540
+ function describeLines({
24541
+ entries,
24542
+ hostUrl
24543
+ }) {
24544
+ return [
24545
+ `[credential "${hostUrl}"]`,
24546
+ ...entries.map((entry) => ` helper = ${entry}`)
24547
+ ].join(`
24548
+ `);
24549
+ }
24550
+ function hasSameEntries({
24551
+ actual,
24552
+ expected
24553
+ }) {
24554
+ return actual.length === expected.length && actual.every((entry, index) => entry === expected[index]);
24555
+ }
24556
+ function isInPlace({
24557
+ cliEntries,
24558
+ entries
24559
+ }) {
24560
+ return hasSameEntries({
24561
+ actual: entries.filter(isCliEntry),
24562
+ expected: cliEntries
24563
+ }) && hasSameEntries({
24564
+ actual: entries.slice(-cliEntries.length),
24565
+ expected: cliEntries
24566
+ });
24567
+ }
24568
+ async function setUpGitCredentialHelper({
24569
+ credential,
24570
+ deps,
24571
+ helperCommand,
24572
+ hostUrl
24573
+ }) {
24574
+ if (isTeamApiKey(credential)) {
24575
+ return {
24576
+ removal: await removeGitCredentialHelper({ deps, hostUrl }),
24577
+ status: "team-api-key"
24578
+ };
24579
+ }
24580
+ if (helperCommand.status === "temporary-install")
24581
+ return helperCommand;
24582
+ const current = await readHelperEntries({ deps, hostUrl });
24583
+ if (current.status !== "read")
24584
+ return current;
24585
+ const cliEntries = [helperListReset, helperCommand.command];
24586
+ const lines = describeLines({ entries: cliEntries, hostUrl });
24587
+ if (isInPlace({ cliEntries, entries: current.entries })) {
24588
+ return { file: current.file, lines, status: "unchanged" };
24589
+ }
24590
+ const writeFailure = await unsetCliEntries({ deps, hostUrl }) ?? await addEntry({ deps, entry: helperListReset, hostUrl }) ?? await addEntry({ deps, entry: helperCommand.command, hostUrl });
24591
+ if (writeFailure)
24592
+ return writeFailure;
24593
+ const after = await readHelperEntries({ deps, hostUrl });
24594
+ return {
24595
+ file: after.status === "read" ? after.file : undefined,
24596
+ lines,
24597
+ status: "added"
24598
+ };
24599
+ }
24600
+ async function removeGitCredentialHelper({
24601
+ deps,
24602
+ hostUrl
24603
+ }) {
24604
+ const current = await readHelperEntries({ deps, hostUrl });
24605
+ if (current.status !== "read")
24606
+ return current;
24607
+ if (!current.entries.some(isCliHelperEntry))
24608
+ return { status: "none" };
24609
+ const unsetFailure = await unsetCliEntries({ deps, hostUrl });
24610
+ if (unsetFailure)
24611
+ return unsetFailure;
24612
+ return {
24613
+ file: current.file,
24614
+ lines: describeLines({
24615
+ entries: current.entries.filter(isCliEntry),
24616
+ hostUrl
24617
+ }),
24618
+ status: "removed"
24619
+ };
24620
+ }
24621
+ // src/commands/auth/gitCredential.ts
24622
+ function defaultGitCredentialDeps() {
24623
+ return {
24624
+ hostUrl: resolveHostUrl(process.env),
24625
+ readRequest: () => text2(process.stdin),
24626
+ resolveCredential: () => resolveApiKey(getConfigDir(), makeDefaultFs()),
24627
+ writeError: (message) => process.stderr.write(message),
24628
+ writeOutput: (output) => process.stdout.write(output)
24629
+ };
24630
+ }
24631
+ async function handleGitCredential({
24632
+ deps,
24633
+ operation
24634
+ }) {
24635
+ const answer = await answerCredentialRequest({
24636
+ hostUrl: deps.hostUrl,
24637
+ operation,
24638
+ readRequest: deps.readRequest,
24639
+ resolveCredential: deps.resolveCredential
24640
+ });
24641
+ if (answer.status === "answered")
24642
+ deps.writeOutput(answer.output);
24643
+ if (answer.status === "signed-out") {
24644
+ deps.writeError(`${authMessages.gitHelper.signedOut}
24645
+ `);
24646
+ }
24647
+ if (answer.status === "team-api-key") {
24648
+ deps.writeError(`${authMessages.gitHelper.teamApiKey}
24649
+ `);
24650
+ }
24651
+ }
24652
+
24653
+ // src/shell/spawn.ts
24654
+ import { spawn } from "node:child_process";
24655
+
24656
+ // src/core/cmdEscape.ts
24657
+ var metaChars = /([()\][%!^"`<>&|;, *?])/g;
24658
+ function escapeCommand(command) {
24659
+ return command.replace(metaChars, "^$1");
24660
+ }
24661
+ function escapeArgument(arg) {
24662
+ const escaped = arg.replace(/(?=(\\+?)?)\1"/g, "$1$1\\\"").replace(/(?=(\\+?)?)\1$/, "$1$1");
24663
+ return `"${escaped}"`.replace(metaChars, "^$1").replace(metaChars, "^$1");
24664
+ }
24665
+
24666
+ // src/shell/spawn.ts
24667
+ function buildSpawnCommand(cmd, args, platform, env) {
24668
+ const options = {};
24669
+ if (env)
24670
+ options.env = env;
24671
+ if (platform !== "win32" || !/\.(cmd|bat)$/i.test(cmd)) {
24672
+ return { cmd, args, options };
24673
+ }
24674
+ const line = [escapeCommand(cmd), ...args.map(escapeArgument)].join(" ");
24675
+ return {
24676
+ cmd: process.env["ComSpec"] ?? "cmd.exe",
24677
+ args: ["/d", "/s", "/c", `"${line}"`],
24678
+ options: { ...options, windowsVerbatimArguments: true }
24679
+ };
24680
+ }
24681
+ var defaultSpawn = (cmd, args, opts) => new Promise((resolve) => {
24682
+ const env = opts.env ? { ...process.env, ...opts.env } : undefined;
24683
+ const built = buildSpawnCommand(cmd, args, opts.platform, env);
24684
+ const child = spawn(built.cmd, built.args, built.options);
24685
+ let stdout = "";
24686
+ let stderr = "";
24687
+ child.stdout?.on("data", (chunk) => {
24688
+ stdout += String(chunk);
24689
+ });
24690
+ child.stderr?.on("data", (chunk) => {
24691
+ stderr += String(chunk);
24692
+ });
24693
+ if (opts?.stdin !== undefined) {
24694
+ child.stdin?.write(opts.stdin);
24695
+ child.stdin?.end();
24696
+ }
24697
+ child.on("error", (err) => resolve({ exitCode: -1, stdout, stderr: stderr || err.message }));
24698
+ child.on("close", (code) => resolve({ exitCode: code ?? -1, stdout, stderr }));
24699
+ });
24700
+
24701
+ // src/commands/auth/gitHelperSetup.ts
24702
+ var defaultGitConfigDeps = {
24703
+ platform: process.platform,
24704
+ spawn: defaultSpawn
24705
+ };
24706
+ function reportSetup({ result, ui }) {
24707
+ switch (result.status) {
24708
+ case "added":
24709
+ ui.info(authMessages.gitHelper.added(result.file));
24710
+ ui.note(result.lines);
24711
+ return;
24712
+ case "unchanged":
24713
+ ui.info(authMessages.gitHelper.unchanged);
24714
+ return;
24715
+ case "git-missing":
24716
+ ui.info(authMessages.gitHelper.gitMissing);
24717
+ return;
24718
+ case "temporary-install":
24719
+ ui.warn(authMessages.gitHelper.temporaryInstall);
24720
+ return;
24721
+ case "team-api-key":
24722
+ ui.warn(authMessages.gitHelper.teamApiKeySkipped);
24723
+ reportRemoval({ result: result.removal, ui });
24724
+ return;
24725
+ case "failed":
24726
+ ui.warn(authMessages.gitHelper.failed(result.detail));
24727
+ return;
24728
+ }
24729
+ }
24730
+ function reportRemoval({
24731
+ result,
24732
+ ui
24733
+ }) {
24734
+ if (result.status === "removed") {
24735
+ ui.info(authMessages.gitHelper.removed(result.file));
24736
+ ui.note(result.lines);
24737
+ }
24738
+ if (result.status === "failed") {
24739
+ ui.warn(authMessages.gitHelper.removalFailed(result.detail));
24740
+ }
24741
+ }
24742
+ async function configureGitCredentialHelper({
24743
+ credential,
24744
+ ctx
24745
+ }) {
24746
+ reportSetup({
24747
+ result: await setUpGitCredentialHelper({
24748
+ credential,
24749
+ deps: defaultGitConfigDeps,
24750
+ helperCommand: resolveHelperCommand(defaultCliInvocation()),
24751
+ hostUrl: ctx.apiBaseUrl
24752
+ }),
24753
+ ui: ctx.ui
24754
+ });
24755
+ }
24756
+ async function unconfigureGitCredentialHelper(ctx) {
24757
+ reportRemoval({
24758
+ result: await removeGitCredentialHelper({
24759
+ deps: defaultGitConfigDeps,
24760
+ hostUrl: ctx.apiBaseUrl
24761
+ }),
24762
+ ui: ctx.ui
24763
+ });
24764
+ }
24765
+
24329
24766
  // src/commands/auth/loginApiKey.ts
24330
24767
  async function loginWithApiKey(ctx) {
24331
24768
  const result = await ctx.ui.password(authMessages.promptApiKey, "Set QAWOLF_API_KEY to authenticate in non-interactive environments.");
@@ -24471,54 +24908,6 @@ async function openBrowser(url, deps) {
24471
24908
  return Promise.race([launched, deps.sleep(launchTimeoutMs).then(() => true)]);
24472
24909
  }
24473
24910
 
24474
- // src/shell/spawn.ts
24475
- import { spawn } from "node:child_process";
24476
-
24477
- // src/core/cmdEscape.ts
24478
- var metaChars = /([()\][%!^"`<>&|;, *?])/g;
24479
- function escapeCommand(command) {
24480
- return command.replace(metaChars, "^$1");
24481
- }
24482
- function escapeArgument(arg) {
24483
- const escaped = arg.replace(/(?=(\\+?)?)\1"/g, "$1$1\\\"").replace(/(?=(\\+?)?)\1$/, "$1$1");
24484
- return `"${escaped}"`.replace(metaChars, "^$1").replace(metaChars, "^$1");
24485
- }
24486
-
24487
- // src/shell/spawn.ts
24488
- function buildSpawnCommand(cmd, args, platform, env) {
24489
- const options = {};
24490
- if (env)
24491
- options.env = env;
24492
- if (platform !== "win32" || !/\.(cmd|bat)$/i.test(cmd)) {
24493
- return { cmd, args, options };
24494
- }
24495
- const line = [escapeCommand(cmd), ...args.map(escapeArgument)].join(" ");
24496
- return {
24497
- cmd: process.env["ComSpec"] ?? "cmd.exe",
24498
- args: ["/d", "/s", "/c", `"${line}"`],
24499
- options: { ...options, windowsVerbatimArguments: true }
24500
- };
24501
- }
24502
- var defaultSpawn = (cmd, args, opts) => new Promise((resolve) => {
24503
- const env = opts.env ? { ...process.env, ...opts.env } : undefined;
24504
- const built = buildSpawnCommand(cmd, args, opts.platform, env);
24505
- const child = spawn(built.cmd, built.args, built.options);
24506
- let stdout = "";
24507
- let stderr = "";
24508
- child.stdout?.on("data", (chunk) => {
24509
- stdout += String(chunk);
24510
- });
24511
- child.stderr?.on("data", (chunk) => {
24512
- stderr += String(chunk);
24513
- });
24514
- if (opts?.stdin !== undefined) {
24515
- child.stdin?.write(opts.stdin);
24516
- child.stdin?.end();
24517
- }
24518
- child.on("error", (err) => resolve({ exitCode: -1, stdout, stderr: stderr || err.message }));
24519
- child.on("close", (code) => resolve({ exitCode: code ?? -1, stdout, stderr }));
24520
- });
24521
-
24522
24911
  // src/shell/platform/getAuthConfig.ts
24523
24912
  var timeoutMs5 = 1e4;
24524
24913
  var authConfigBody = object({
@@ -24904,6 +25293,18 @@ async function loginWithDevice(ctx, deps = {}) {
24904
25293
 
24905
25294
  // src/commands/auth/login.ts
24906
25295
  var browserMethod = "browser";
25296
+ async function configureGitAfterSignIn({
25297
+ ctx,
25298
+ deps,
25299
+ result
25300
+ }) {
25301
+ const resolveApiKey2 = deps.resolveApiKey ?? resolveApiKey;
25302
+ const credential = result === undefined ? await resolveApiKey2(ctx.configDir, ctx.fs) : undefined;
25303
+ if (credential) {
25304
+ await (deps.configureGitCredentialHelper ?? configureGitCredentialHelper)({ credential, ctx });
25305
+ }
25306
+ return result;
25307
+ }
24907
25308
  async function handleLogin(ctx, deps = {}) {
24908
25309
  if (ctx.ui.mode !== "human") {
24909
25310
  ctx.ui.error(authMessages.login.nonInteractive);
@@ -24915,7 +25316,7 @@ async function handleLogin(ctx, deps = {}) {
24915
25316
  const reauth = await ctx.ui.confirm(authMessages.login.reAuthPrompt);
24916
25317
  if (!reauth.ok || !reauth.value) {
24917
25318
  ctx.ui.info(authMessages.alreadyConfigured);
24918
- return;
25319
+ return configureGitAfterSignIn({ ctx, deps, result: undefined });
24919
25320
  }
24920
25321
  }
24921
25322
  ctx.ui.gap();
@@ -24937,12 +25338,20 @@ async function handleLogin(ctx, deps = {}) {
24937
25338
  return;
24938
25339
  }
24939
25340
  if (method.value !== browserMethod) {
24940
- return (deps.loginWithApiKey ?? loginWithApiKey)(ctx);
25341
+ return configureGitAfterSignIn({
25342
+ ctx,
25343
+ deps,
25344
+ result: await (deps.loginWithApiKey ?? loginWithApiKey)(ctx)
25345
+ });
24941
25346
  }
24942
25347
  if (existing && existing.source !== "browser") {
24943
25348
  ctx.ui.warn(existing.source === "env" ? authMessages.login.apiKeyPrecedence.env : authMessages.login.apiKeyPrecedence.stored);
24944
25349
  }
24945
- return (deps.loginWithDevice ?? loginWithDevice)(ctx);
25350
+ return configureGitAfterSignIn({
25351
+ ctx,
25352
+ deps,
25353
+ result: await (deps.loginWithDevice ?? loginWithDevice)(ctx)
25354
+ });
24946
25355
  }
24947
25356
 
24948
25357
  // src/domains/auth/store/deleteTokens.ts
@@ -24979,11 +25388,13 @@ async function handleLogout(ctx, deps = {}) {
24979
25388
  const hasStoredCredentials2 = deps.hasStoredCredentials ?? hasStoredCredentials;
24980
25389
  const deleteApiKey2 = deps.deleteApiKey ?? deleteApiKey;
24981
25390
  const deleteTokens2 = deps.deleteTokens ?? deleteTokens;
25391
+ const unconfigureGitCredentialHelper2 = deps.unconfigureGitCredentialHelper ?? unconfigureGitCredentialHelper;
24982
25392
  const env = deps.env ?? process.env;
24983
25393
  const envKey = env["QAWOLF_API_KEY"]?.trim();
24984
25394
  const stored = await hasStoredCredentials2(ctx.configDir, ctx.fs);
24985
25395
  if (!envKey && !stored) {
24986
25396
  ctx.ui.info(authMessages.logout.notAuthenticated);
25397
+ await unconfigureGitCredentialHelper2(ctx);
24987
25398
  return;
24988
25399
  }
24989
25400
  if (envKey) {
@@ -25009,6 +25420,7 @@ async function handleLogout(ctx, deps = {}) {
25009
25420
  }
25010
25421
  }
25011
25422
  ], () => authMessages.logout.credentialsRemoved);
25423
+ await unconfigureGitCredentialHelper2(ctx);
25012
25424
  if (ctx.ui.mode === "human") {
25013
25425
  ctx.ui.outro(authMessages.logout.success);
25014
25426
  } else {
@@ -25180,6 +25592,12 @@ function registerAuthCommand(program, signals) {
25180
25592
  declareCommandKind(auth.command("logout"), "local").description("Remove stored credentials").action(withContext(signals, handleLogout));
25181
25593
  declareCommandKind(auth.command("switch"), "local").description("Choose which workspace to work in").action(withContext(signals, handleSwitchWorkspace));
25182
25594
  declareCommandKind(auth.command("whoami"), "read").description("Show authentication status").action(withContext(signals, handleWhoami));
25595
+ declareCommandKind(auth.command("git-credential", { hidden: true }).argument("<operation>"), "read").description("Answer a Git credential request for the QA Wolf host").action(async (operation) => {
25596
+ await handleGitCredential({
25597
+ deps: defaultGitCredentialDeps(),
25598
+ operation
25599
+ });
25600
+ });
25183
25601
  }
25184
25602
 
25185
25603
  // node_modules/@qawolf/flow-targets/dist/presets/android/androidPixel2Android14.js
@@ -25192,16 +25610,6 @@ var androidPixel2Android14Target = {
25192
25610
  schemaVersion: 1
25193
25611
  };
25194
25612
 
25195
- // node_modules/@qawolf/flow-targets/dist/presets/android/androidPixel9.js
25196
- var androidPixel9Target = {
25197
- meta: {
25198
- androidVersion: "34",
25199
- deviceModel: "Pixel 9"
25200
- },
25201
- platform: "android",
25202
- schemaVersion: 1
25203
- };
25204
-
25205
25613
  // node_modules/@qawolf/flow-targets/dist/presets/android/androidPixel9Android14.js
25206
25614
  var androidPixel9Android14Target = {
25207
25615
  meta: {
@@ -25232,11 +25640,11 @@ var androidPixel9Android16Target = {
25232
25640
  schemaVersion: 1
25233
25641
  };
25234
25642
 
25235
- // node_modules/@qawolf/flow-targets/dist/presets/android/androidPixel.js
25236
- var androidPixelTarget = {
25643
+ // node_modules/@qawolf/flow-targets/dist/presets/android/androidPixel9Android17.js
25644
+ var androidPixel9Android17Target = {
25237
25645
  meta: {
25238
- androidVersion: "34",
25239
- deviceModel: "Pixel 2"
25646
+ androidVersion: "37",
25647
+ deviceModel: "Pixel 9"
25240
25648
  },
25241
25649
  platform: "android",
25242
25650
  schemaVersion: 1
@@ -25252,49 +25660,142 @@ var androidPixelTabletAndroid14Target = {
25252
25660
  schemaVersion: 1
25253
25661
  };
25254
25662
 
25255
- // node_modules/@qawolf/flow-targets/dist/presets/android/androidTablet.js
25256
- var androidTabletTarget = {
25663
+ // node_modules/@qawolf/flow-targets/dist/presets/android/androidPixelTabletAndroid17.js
25664
+ var androidPixelTabletAndroid17Target = {
25257
25665
  meta: {
25258
- androidVersion: "34",
25666
+ androidVersion: "37",
25259
25667
  deviceModel: "Pixel Tablet"
25260
25668
  },
25261
25669
  platform: "android",
25262
25670
  schemaVersion: 1
25263
25671
  };
25264
25672
 
25265
- // node_modules/@qawolf/flow-targets/dist/presets/ios/allowlistedIphone.js
25266
- var allowlistedIphoneTarget = {
25673
+ // node_modules/@qawolf/flow-targets/dist/presets/android/anyPhoneAndroid36.js
25674
+ var anyPhoneAndroid36Target = {
25267
25675
  meta: {
25268
- deviceModel: "iPhone 15",
25269
- iosVersion: "26",
25270
- targetDevices: "Allowlisted Device"
25676
+ androidVersion: "36",
25677
+ deviceModel: "Any Phone"
25678
+ },
25679
+ platform: "android",
25680
+ schemaVersion: 1
25681
+ };
25682
+
25683
+ // node_modules/@qawolf/flow-targets/dist/presets/android/anyPhoneAndroid37.js
25684
+ var anyPhoneAndroid37Target = {
25685
+ meta: {
25686
+ androidVersion: "37",
25687
+ deviceModel: "Any Phone"
25688
+ },
25689
+ platform: "android",
25690
+ schemaVersion: 1
25691
+ };
25692
+
25693
+ // node_modules/@qawolf/flow-targets/dist/presets/android/anyTabletAndroid37.js
25694
+ var anyTabletAndroid37Target = {
25695
+ meta: {
25696
+ androidVersion: "37",
25697
+ deviceModel: "Any Tablet"
25698
+ },
25699
+ platform: "android",
25700
+ schemaVersion: 1
25701
+ };
25702
+
25703
+ // node_modules/@qawolf/flow-targets/dist/presets/android/latestPhone.js
25704
+ var latestPhoneTarget = {
25705
+ meta: {
25706
+ androidVersion: "37",
25707
+ deviceModel: "Any Phone"
25708
+ },
25709
+ platform: "android",
25710
+ schemaVersion: 1
25711
+ };
25712
+
25713
+ // node_modules/@qawolf/flow-targets/dist/presets/android/latestTablet.js
25714
+ var latestTabletTarget = {
25715
+ meta: {
25716
+ androidVersion: "37",
25717
+ deviceModel: "Any Tablet"
25718
+ },
25719
+ platform: "android",
25720
+ schemaVersion: 1
25721
+ };
25722
+
25723
+ // node_modules/@qawolf/flow-targets/dist/presets/android/samsungGalaxyA17Android16.js
25724
+ var samsungGalaxyA17Android16Target = {
25725
+ meta: {
25726
+ androidVersion: "36",
25727
+ deviceModel: "Samsung Galaxy A17"
25728
+ },
25729
+ platform: "android",
25730
+ schemaVersion: 1
25731
+ };
25732
+
25733
+ // node_modules/@qawolf/flow-targets/dist/presets/android/samsungGalaxyA37Android16.js
25734
+ var samsungGalaxyA37Android16Target = {
25735
+ meta: {
25736
+ androidVersion: "36",
25737
+ deviceModel: "Samsung Galaxy A37"
25738
+ },
25739
+ platform: "android",
25740
+ schemaVersion: 1
25741
+ };
25742
+
25743
+ // node_modules/@qawolf/flow-targets/dist/presets/cli/basic.js
25744
+ var cliBasicTarget = {
25745
+ platform: "cli",
25746
+ schemaVersion: 1
25747
+ };
25748
+
25749
+ // node_modules/@qawolf/flow-targets/dist/presets/ios/anyIpadIos26.js
25750
+ var anyIpadIos26Target = {
25751
+ meta: {
25752
+ deviceModel: "Any iPad",
25753
+ iosVersion: "26"
25271
25754
  },
25272
25755
  platform: "ios",
25273
25756
  schemaVersion: 1
25274
25757
  };
25275
25758
 
25276
- // node_modules/@qawolf/flow-targets/dist/presets/ios/appleIdEnabledIpad.js
25277
- var appleIdEnabledIpadTarget = {
25759
+ // node_modules/@qawolf/flow-targets/dist/presets/ios/anyIphoneIos17.js
25760
+ var anyIphoneIos17Target = {
25278
25761
  meta: {
25279
- appleId: true,
25280
- deviceModel: "iPad 11",
25762
+ deviceModel: "Any iPhone",
25763
+ iosVersion: "17"
25764
+ },
25765
+ platform: "ios",
25766
+ schemaVersion: 1
25767
+ };
25768
+
25769
+ // node_modules/@qawolf/flow-targets/dist/presets/ios/anyIphoneIos18.js
25770
+ var anyIphoneIos18Target = {
25771
+ meta: {
25772
+ deviceModel: "Any iPhone",
25281
25773
  iosVersion: "18"
25282
25774
  },
25283
25775
  platform: "ios",
25284
25776
  schemaVersion: 1
25285
25777
  };
25286
25778
 
25287
- // node_modules/@qawolf/flow-targets/dist/presets/ios/appleIdEnabledIphone.js
25288
- var appleIdEnabledIphoneTarget = {
25779
+ // node_modules/@qawolf/flow-targets/dist/presets/ios/anyIphoneIos26.js
25780
+ var anyIphoneIos26Target = {
25289
25781
  meta: {
25290
- appleId: true,
25291
- deviceModel: "iPhone 15",
25782
+ deviceModel: "Any iPhone",
25292
25783
  iosVersion: "26"
25293
25784
  },
25294
25785
  platform: "ios",
25295
25786
  schemaVersion: 1
25296
25787
  };
25297
25788
 
25789
+ // node_modules/@qawolf/flow-targets/dist/presets/ios/anyIphoneIos27.js
25790
+ var anyIphoneIos27Target = {
25791
+ meta: {
25792
+ deviceModel: "Any iPhone",
25793
+ iosVersion: "27"
25794
+ },
25795
+ platform: "ios",
25796
+ schemaVersion: 1
25797
+ };
25798
+
25298
25799
  // node_modules/@qawolf/flow-targets/dist/presets/ios/ipad11ios18.js
25299
25800
  var ipad11ios18Target = {
25300
25801
  meta: {
@@ -25326,16 +25827,6 @@ var ipad11ios26Target = {
25326
25827
  schemaVersion: 1
25327
25828
  };
25328
25829
 
25329
- // node_modules/@qawolf/flow-targets/dist/presets/ios/ipad.js
25330
- var ipadTarget = {
25331
- meta: {
25332
- deviceModel: "iPad 11",
25333
- iosVersion: "18"
25334
- },
25335
- platform: "ios",
25336
- schemaVersion: 1
25337
- };
25338
-
25339
25830
  // node_modules/@qawolf/flow-targets/dist/presets/ios/iphone15ios17.js
25340
25831
  var iphone15ios17Target = {
25341
25832
  meta: {
@@ -25399,6 +25890,26 @@ var iphone15ios26PrivateTarget = {
25399
25890
  schemaVersion: 1
25400
25891
  };
25401
25892
 
25893
+ // node_modules/@qawolf/flow-targets/dist/presets/ios/iphone16ios26.js
25894
+ var iphone16ios26Target = {
25895
+ meta: {
25896
+ deviceModel: "iPhone 16",
25897
+ iosVersion: "26"
25898
+ },
25899
+ platform: "ios",
25900
+ schemaVersion: 1
25901
+ };
25902
+
25903
+ // node_modules/@qawolf/flow-targets/dist/presets/ios/iphone16ios27.js
25904
+ var iphone16ios27Target = {
25905
+ meta: {
25906
+ deviceModel: "iPhone 16",
25907
+ iosVersion: "27"
25908
+ },
25909
+ platform: "ios",
25910
+ schemaVersion: 1
25911
+ };
25912
+
25402
25913
  // node_modules/@qawolf/flow-targets/dist/presets/ios/iphone17ios26.js
25403
25914
  var iphone17ios26Target = {
25404
25915
  meta: {
@@ -25409,10 +25920,61 @@ var iphone17ios26Target = {
25409
25920
  schemaVersion: 1
25410
25921
  };
25411
25922
 
25412
- // node_modules/@qawolf/flow-targets/dist/presets/web/basic.js
25413
- var webBasicTarget = {
25414
- meta: "legacy",
25415
- platform: "web",
25923
+ // node_modules/@qawolf/flow-targets/dist/presets/ios/iphone17ios27.js
25924
+ var iphone17ios27Target = {
25925
+ meta: {
25926
+ deviceModel: "iPhone 17",
25927
+ iosVersion: "27"
25928
+ },
25929
+ platform: "ios",
25930
+ schemaVersion: 1
25931
+ };
25932
+
25933
+ // node_modules/@qawolf/flow-targets/dist/presets/ios/latestIpad.js
25934
+ var latestIpadTarget = {
25935
+ meta: {
25936
+ deviceModel: "Any iPad",
25937
+ iosVersion: "26"
25938
+ },
25939
+ platform: "ios",
25940
+ schemaVersion: 1
25941
+ };
25942
+
25943
+ // node_modules/@qawolf/flow-targets/dist/presets/ios/latestIphone.js
25944
+ var latestIphoneTarget = {
25945
+ meta: {
25946
+ deviceModel: "Any iPhone",
25947
+ iosVersion: "26"
25948
+ },
25949
+ platform: "ios",
25950
+ schemaVersion: 1
25951
+ };
25952
+
25953
+ // node_modules/@qawolf/flow-targets/dist/presets/mac/anyMac26.js
25954
+ var anyMac26Target = {
25955
+ meta: {
25956
+ macVersion: "26"
25957
+ },
25958
+ platform: "mac",
25959
+ schemaVersion: 1
25960
+ };
25961
+
25962
+ // node_modules/@qawolf/flow-targets/dist/presets/mac/anyMac26Private.js
25963
+ var anyMac26PrivateTarget = {
25964
+ meta: {
25965
+ macVersion: "26",
25966
+ targetDevices: "Team Dedicated Device"
25967
+ },
25968
+ platform: "mac",
25969
+ schemaVersion: 1
25970
+ };
25971
+
25972
+ // node_modules/@qawolf/flow-targets/dist/presets/mac/latestMac.js
25973
+ var latestMacTarget = {
25974
+ meta: {
25975
+ macVersion: "26"
25976
+ },
25977
+ platform: "mac",
25416
25978
  schemaVersion: 1
25417
25979
  };
25418
25980
 
@@ -25498,37 +26060,104 @@ var webSafariWithGpuTarget = {
25498
26060
  schemaVersion: 1
25499
26061
  };
25500
26062
 
26063
+ // node_modules/@qawolf/flow-targets/dist/presets/windows/windows11Desktop.js
26064
+ var windows11DesktopTarget = {
26065
+ meta: {
26066
+ windowsVersion: "11"
26067
+ },
26068
+ platform: "windows",
26069
+ schemaVersion: 1
26070
+ };
26071
+
26072
+ // node_modules/@qawolf/flow-targets/dist/presets/windows/windows11DesktopPrivate.js
26073
+ var windows11DesktopPrivateTarget = {
26074
+ meta: {
26075
+ targetDevices: "Team Dedicated Device",
26076
+ windowsVersion: "11"
26077
+ },
26078
+ platform: "windows",
26079
+ schemaVersion: 1
26080
+ };
26081
+
25501
26082
  // node_modules/@qawolf/flow-targets/dist/presets/index.js
25502
26083
  var androidPresetLiteralRaw = [
26084
+ "Android - Any Phone (Android 16 | Emulator)",
26085
+ "Android - Any Phone (Android 17 | Emulator)",
26086
+ "Android - Any Phone (Latest | Emulator)",
26087
+ "Android - Any Tablet (Android 17 | Emulator)",
26088
+ "Android - Any Tablet (Latest | Emulator)",
26089
+ "Android - Google Pixel 2 (Android 14 | Emulator)",
26090
+ "Android - Google Pixel 9 (Android 14 | Emulator)",
26091
+ "Android - Google Pixel 9 (Android 15 | Emulator)",
26092
+ "Android - Google Pixel 9 (Android 16 | Emulator)",
26093
+ "Android - Google Pixel 9 (Android 17 | Emulator)",
26094
+ "Android - Google Pixel Tablet (Android 14 | Emulator)",
26095
+ "Android - Google Pixel Tablet (Android 17 | Emulator)",
25503
26096
  "Android - Pixel",
25504
26097
  "Android - Pixel 2 (Android 14)",
25505
26098
  "Android - Pixel 9",
25506
26099
  "Android - Pixel 9 (Android 14)",
25507
26100
  "Android - Pixel 9 (Android 15)",
25508
26101
  "Android - Pixel 9 (Android 16)",
26102
+ "Android - Pixel 9 (Android 17)",
25509
26103
  "Android - Pixel Tablet (Android 14)",
25510
- "Android - Tablet"
26104
+ "Android - Pixel Tablet (Android 17)",
26105
+ "Android - Samsung Galaxy A17 (Android 16)",
26106
+ "Android - Samsung Galaxy A37 (Android 16)",
26107
+ "Android - Tablet",
26108
+ "Android 36 - Any Phone",
26109
+ "Android 37 - Any Phone",
26110
+ "Android 37 - Any Tablet",
26111
+ "Latest Android (Phone)",
26112
+ "Latest Android (Tablet)"
25511
26113
  ];
25512
- var androidPresetLiteralSchema = _enum(androidPresetLiteralRaw);
26114
+ var androidPresetLiteralSchema = literal(androidPresetLiteralRaw);
26115
+ var cliPresetLiteralRaw = ["Basic"];
26116
+ var cliPresetLiteralSchema = literal(cliPresetLiteralRaw);
25513
26117
  var iosPresetLiteralRaw = [
25514
26118
  "iOS - Allowlisted iPhone",
26119
+ "iOS - Any iPad (iOS 26)",
26120
+ "iOS - Any iPad (Latest)",
26121
+ "iOS - Any iPhone (iOS 18)",
26122
+ "iOS - Any iPhone (iOS 26)",
26123
+ "iOS - Any iPhone (iOS 27)",
26124
+ "iOS - Any iPhone (Latest)",
25515
26125
  "iOS - Apple ID Enabled iPad",
25516
26126
  "iOS - Apple ID Enabled iPhone",
25517
26127
  "iOS - iPad",
25518
26128
  "iOS - iPad 11 (iOS 18)",
26129
+ "iOS - iPad 11 (iOS 18 | Apple ID)",
25519
26130
  "iOS - iPad 11 (iOS 18) (Apple ID)",
25520
26131
  "iOS - iPad 11 (iOS 26)",
25521
26132
  "iOS - iPhone 15 (iOS 17)",
25522
26133
  "iOS - iPhone 15 (iOS 18)",
25523
26134
  "iOS - iPhone 15 (iOS 26)",
26135
+ "iOS - iPhone 15 (iOS 26 | Allowlisted)",
26136
+ "iOS - iPhone 15 (iOS 26 | Apple ID)",
26137
+ "iOS - iPhone 15 (iOS 26 | Private)",
25524
26138
  "iOS - iPhone 15 (iOS 26) (Apple ID)",
25525
26139
  "iOS - iPhone 15 (iOS 26) (allowlisted)",
25526
26140
  "iOS - iPhone 15 (iOS 26) (private)",
25527
- "iOS - iPhone 17 (iOS 26)"
26141
+ "iOS - iPhone 16 (iOS 26)",
26142
+ "iOS - iPhone 16 (iOS 27)",
26143
+ "iOS - iPhone 17 (iOS 26)",
26144
+ "iOS - iPhone 17 (iOS 27)",
26145
+ "iOS 17 - Any iPhone",
26146
+ "iOS 18 - Any iPhone",
26147
+ "iOS 26 - Any iPad",
26148
+ "iOS 26 - Any iPhone",
26149
+ "iOS 27 - Any iPhone",
26150
+ "Latest iOS (iPad)",
26151
+ "Latest iOS (iPhone)"
26152
+ ];
26153
+ var iosPresetLiteralSchema = literal(iosPresetLiteralRaw);
26154
+ var macPresetLiteralRaw = [
26155
+ "macOS - Any Mac (Latest)",
26156
+ "macOS - Any Mac (macOS 26)",
26157
+ "macOS - Any Mac (macOS 26 | Private)"
25528
26158
  ];
25529
- var iosPresetLiteralSchema = _enum(iosPresetLiteralRaw);
26159
+ var macPresetLiteralSchema = literal(macPresetLiteralRaw);
25530
26160
  var webPresetLiteralRaw = [
25531
- "Basic",
25532
26161
  "Electron",
25533
26162
  "Web - Chrome",
25534
26163
  "Web - Chrome (GPU)",
@@ -25537,43 +26166,68 @@ var webPresetLiteralRaw = [
25537
26166
  "Web - Safari",
25538
26167
  "Web - Safari (GPU)"
25539
26168
  ];
25540
- var webPresetLiteralSchema = _enum(webPresetLiteralRaw);
26169
+ var webPresetLiteralSchema = literal(webPresetLiteralRaw);
26170
+ var windowsPresetLiteralRaw = [
26171
+ "Windows 11 - Desktop",
26172
+ "Windows 11 - Desktop (private)"
26173
+ ];
26174
+ var windowsPresetLiteralSchema = literal(windowsPresetLiteralRaw);
25541
26175
  var presetLiteralsSchema = union([
25542
26176
  androidPresetLiteralSchema,
26177
+ cliPresetLiteralSchema,
25543
26178
  iosPresetLiteralSchema,
25544
- webPresetLiteralSchema
26179
+ macPresetLiteralSchema,
26180
+ webPresetLiteralSchema,
26181
+ windowsPresetLiteralSchema
25545
26182
  ]);
25546
26183
  var presetTargetMap = {
25547
- "Android - Pixel": androidPixelTarget,
25548
- "Android - Pixel 2 (Android 14)": androidPixel2Android14Target,
25549
- "Android - Pixel 9": androidPixel9Target,
25550
- "Android - Pixel 9 (Android 14)": androidPixel9Android14Target,
25551
- "Android - Pixel 9 (Android 15)": androidPixel9Android15Target,
25552
- "Android - Pixel 9 (Android 16)": androidPixel9Android16Target,
25553
- "Android - Pixel Tablet (Android 14)": androidPixelTabletAndroid14Target,
25554
- "Android - Tablet": androidTabletTarget,
25555
- Basic: webBasicTarget,
26184
+ "Android - Any Phone (Android 16 | Emulator)": anyPhoneAndroid36Target,
26185
+ "Android - Any Phone (Android 17 | Emulator)": anyPhoneAndroid37Target,
26186
+ "Android - Any Phone (Latest | Emulator)": latestPhoneTarget,
26187
+ "Android - Any Tablet (Android 17 | Emulator)": anyTabletAndroid37Target,
26188
+ "Android - Any Tablet (Latest | Emulator)": latestTabletTarget,
26189
+ "Android - Google Pixel 2 (Android 14 | Emulator)": androidPixel2Android14Target,
26190
+ "Android - Google Pixel 9 (Android 14 | Emulator)": androidPixel9Android14Target,
26191
+ "Android - Google Pixel 9 (Android 15 | Emulator)": androidPixel9Android15Target,
26192
+ "Android - Google Pixel 9 (Android 16 | Emulator)": androidPixel9Android16Target,
26193
+ "Android - Google Pixel 9 (Android 17 | Emulator)": androidPixel9Android17Target,
26194
+ "Android - Google Pixel Tablet (Android 14 | Emulator)": androidPixelTabletAndroid14Target,
26195
+ "Android - Google Pixel Tablet (Android 17 | Emulator)": androidPixelTabletAndroid17Target,
26196
+ "Android - Samsung Galaxy A17 (Android 16)": samsungGalaxyA17Android16Target,
26197
+ "Android - Samsung Galaxy A37 (Android 16)": samsungGalaxyA37Android16Target,
26198
+ Basic: cliBasicTarget,
25556
26199
  Electron: webElectronTarget,
25557
- "iOS - Allowlisted iPhone": allowlistedIphoneTarget,
25558
- "iOS - Apple ID Enabled iPad": appleIdEnabledIpadTarget,
25559
- "iOS - Apple ID Enabled iPhone": appleIdEnabledIphoneTarget,
25560
- "iOS - iPad": ipadTarget,
26200
+ "iOS 17 - Any iPhone": anyIphoneIos17Target,
26201
+ "iOS - Any iPad (iOS 26)": anyIpadIos26Target,
26202
+ "iOS - Any iPad (Latest)": latestIpadTarget,
26203
+ "iOS - Any iPhone (iOS 18)": anyIphoneIos18Target,
26204
+ "iOS - Any iPhone (iOS 26)": anyIphoneIos26Target,
26205
+ "iOS - Any iPhone (iOS 27)": anyIphoneIos27Target,
26206
+ "iOS - Any iPhone (Latest)": latestIphoneTarget,
25561
26207
  "iOS - iPad 11 (iOS 18)": ipad11ios18Target,
25562
- "iOS - iPad 11 (iOS 18) (Apple ID)": ipad11ios18AppleIdTarget,
26208
+ "iOS - iPad 11 (iOS 18 | Apple ID)": ipad11ios18AppleIdTarget,
25563
26209
  "iOS - iPad 11 (iOS 26)": ipad11ios26Target,
25564
26210
  "iOS - iPhone 15 (iOS 17)": iphone15ios17Target,
25565
26211
  "iOS - iPhone 15 (iOS 18)": iphone15ios18Target,
25566
26212
  "iOS - iPhone 15 (iOS 26)": iphone15ios26Target,
25567
- "iOS - iPhone 15 (iOS 26) (allowlisted)": iphone15ios26AllowlistedTarget,
25568
- "iOS - iPhone 15 (iOS 26) (Apple ID)": iphone15ios26AppleIdTarget,
25569
- "iOS - iPhone 15 (iOS 26) (private)": iphone15ios26PrivateTarget,
26213
+ "iOS - iPhone 15 (iOS 26 | Allowlisted)": iphone15ios26AllowlistedTarget,
26214
+ "iOS - iPhone 15 (iOS 26 | Apple ID)": iphone15ios26AppleIdTarget,
26215
+ "iOS - iPhone 15 (iOS 26 | Private)": iphone15ios26PrivateTarget,
26216
+ "iOS - iPhone 16 (iOS 26)": iphone16ios26Target,
26217
+ "iOS - iPhone 16 (iOS 27)": iphone16ios27Target,
25570
26218
  "iOS - iPhone 17 (iOS 26)": iphone17ios26Target,
26219
+ "iOS - iPhone 17 (iOS 27)": iphone17ios27Target,
26220
+ "macOS - Any Mac (Latest)": latestMacTarget,
26221
+ "macOS - Any Mac (macOS 26)": anyMac26Target,
26222
+ "macOS - Any Mac (macOS 26 | Private)": anyMac26PrivateTarget,
25571
26223
  "Web - Chrome": webChromeTarget,
25572
26224
  "Web - Chrome (GPU)": webChromeWithGpuTarget,
25573
26225
  "Web - Firefox": webFirefoxTarget,
25574
26226
  "Web - Firefox (GPU)": webFirefoxWithGpuTarget,
25575
26227
  "Web - Safari": webSafariTarget,
25576
- "Web - Safari (GPU)": webSafariWithGpuTarget
26228
+ "Web - Safari (GPU)": webSafariWithGpuTarget,
26229
+ "Windows 11 - Desktop": windows11DesktopTarget,
26230
+ "Windows 11 - Desktop (private)": windows11DesktopPrivateTarget
25577
26231
  };
25578
26232
 
25579
26233
  // node_modules/@qawolf/flow-targets/dist/schemas/shared/screenDimensions.js
@@ -25582,25 +26236,50 @@ var screenDimensions = {
25582
26236
  "iPhone 15": { screenHeight: 2556, screenWidth: 1179 },
25583
26237
  "iPhone 15 Plus": { screenHeight: 2796, screenWidth: 1290 },
25584
26238
  "iPhone 15 Pro Max": { screenHeight: 2868, screenWidth: 1320 },
26239
+ "iPhone 16": { screenHeight: 2556, screenWidth: 1179 },
25585
26240
  "iPhone 16 Plus": { screenHeight: 2796, screenWidth: 1290 },
25586
26241
  "iPhone 17": { screenHeight: 2622, screenWidth: 1206 },
25587
26242
  "Pixel 2": { screenHeight: 1920, screenWidth: 1080 },
25588
26243
  "Pixel 9": { screenHeight: 2424, screenWidth: 1080 },
25589
26244
  "Pixel Tablet": { screenHeight: 1600, screenWidth: 2560 },
25590
- playwright_default: { screenHeight: 804, screenWidth: 1288 }
26245
+ playwright_default: { screenHeight: 804, screenWidth: 1288 },
26246
+ "Samsung Galaxy A17": { screenHeight: 2340, screenWidth: 1080 },
26247
+ "Samsung Galaxy A37": { screenHeight: 2340, screenWidth: 1080 }
25591
26248
  };
25592
26249
 
25593
26250
  // node_modules/@qawolf/flow-targets/dist/schemas/shared/platforms.js
25594
- var platformsSchema = _enum(["web", "android", "ios"]);
26251
+ var platformsSchema = literal([
26252
+ "web",
26253
+ "android",
26254
+ "ios",
26255
+ "cli",
26256
+ "windows",
26257
+ "mac"
26258
+ ]);
25595
26259
 
25596
26260
  // node_modules/@qawolf/flow-targets/dist/schemas/shared/runnerNames.js
25597
- var runnerNamesSchema = _enum([
25598
- "node20Basic",
25599
- "classic",
25600
- "node20GpuWithPlaywright",
25601
- "node20WithPlaywright",
25602
- "node20WithAndroid",
25603
- "node20WithIos"
26261
+ var legacyRunnerNameByFamily = {
26262
+ android: "node20WithAndroid",
26263
+ basic: "node20Basic",
26264
+ ios: "node20WithIos",
26265
+ mac: "node24WithMac",
26266
+ playwright: "node20WithPlaywright",
26267
+ playwrightGpu: "node20GpuWithPlaywright",
26268
+ windows: "node24WithWindows"
26269
+ };
26270
+ var runnerNameSchemaForFamily = (family) => union([
26271
+ literal(family),
26272
+ literal(legacyRunnerNameByFamily[family]).transform(() => family)
26273
+ ]);
26274
+ var runnerNamesSchema = union([
26275
+ literal("classic"),
26276
+ runnerNameSchemaForFamily("basic"),
26277
+ runnerNameSchemaForFamily("playwrightGpu"),
26278
+ runnerNameSchemaForFamily("android"),
26279
+ runnerNameSchemaForFamily("ios"),
26280
+ runnerNameSchemaForFamily("playwright"),
26281
+ runnerNameSchemaForFamily("windows"),
26282
+ runnerNameSchemaForFamily("mac")
25604
26283
  ]);
25605
26284
 
25606
26285
  // node_modules/@qawolf/flow-targets/dist/schemas/shared/baseSchemas.js
@@ -25612,76 +26291,158 @@ var baseOutputSchema = baseInputSchema.extend({
25612
26291
  runnerName: runnerNamesSchema
25613
26292
  });
25614
26293
 
26294
+ // node_modules/@qawolf/flow-targets/dist/schemas/android/v1/supportedTargetDevicesSchema.js
26295
+ var supportedTargetDevicesInputSchema = literal([
26296
+ "Any Device",
26297
+ "Team Dedicated Device"
26298
+ ]);
26299
+ var supportedTargetDevicesOutputSchema = literal([
26300
+ "anyDevice",
26301
+ "teamDedicatedDevice"
26302
+ ]);
26303
+ var supportedTargetDevicesSchema = codec(supportedTargetDevicesInputSchema, supportedTargetDevicesOutputSchema, {
26304
+ decode(targetDevices) {
26305
+ switch (targetDevices) {
26306
+ case "Any Device":
26307
+ return "anyDevice";
26308
+ case "Team Dedicated Device":
26309
+ return "teamDedicatedDevice";
26310
+ default:
26311
+ throw Error(`Unsupported target devices: ${targetDevices}`);
26312
+ }
26313
+ },
26314
+ encode(targetDevices) {
26315
+ switch (targetDevices) {
26316
+ case "anyDevice":
26317
+ return "Any Device";
26318
+ case "teamDedicatedDevice":
26319
+ return "Team Dedicated Device";
26320
+ default:
26321
+ throw Error(`Unsupported target devices: ${targetDevices}`);
26322
+ }
26323
+ }
26324
+ });
26325
+
26326
+ // node_modules/@qawolf/flow-targets/dist/schemas/android/v1/input.js
26327
+ var supportedVersionsSchema = literal(["34", "35", "36", "37"]);
26328
+ var sharedMetaInputSchema = object({
26329
+ deviceUdid: _undefined3().optional(),
26330
+ targetDevices: literal("Any Device").default("Any Device")
26331
+ });
26332
+ var realPhoneMetaInputSchema = object({
26333
+ deviceUdid: string2().optional(),
26334
+ targetDevices: supportedTargetDevicesInputSchema.default("Any Device")
26335
+ });
26336
+ var androidMetaInputSchema = discriminatedUnion("deviceModel", [
26337
+ sharedMetaInputSchema.extend({
26338
+ androidVersion: literal("34"),
26339
+ deviceModel: literal("Pixel 2")
26340
+ }),
26341
+ sharedMetaInputSchema.extend({
26342
+ androidVersion: literal(["34", "37"]),
26343
+ deviceModel: literal("Pixel Tablet")
26344
+ }),
26345
+ sharedMetaInputSchema.extend({
26346
+ androidVersion: literal(["34", "35", "36", "37"]),
26347
+ deviceModel: literal("Pixel 9")
26348
+ }),
26349
+ realPhoneMetaInputSchema.extend({
26350
+ androidVersion: literal("36"),
26351
+ deviceModel: literal("Samsung Galaxy A17")
26352
+ }),
26353
+ realPhoneMetaInputSchema.extend({
26354
+ androidVersion: literal("36"),
26355
+ deviceModel: literal("Samsung Galaxy A37")
26356
+ }),
26357
+ sharedMetaInputSchema.extend({
26358
+ androidVersion: literal(["34", "35", "36", "37"]),
26359
+ deviceModel: literal("Any Phone")
26360
+ }),
26361
+ sharedMetaInputSchema.extend({
26362
+ androidVersion: literal(["34", "37"]),
26363
+ deviceModel: literal("Any Tablet")
26364
+ })
26365
+ ]);
26366
+ var androidTargetInputSchema = baseInputSchema.extend({
26367
+ meta: androidMetaInputSchema,
26368
+ platform: literal("android"),
26369
+ schemaVersion: literal(1)
26370
+ });
26371
+
25615
26372
  // node_modules/@qawolf/flow-targets/dist/schemas/android/v1/supportedModelsSchema.js
25616
- var supportedModelsInputSchema = _enum([
26373
+ var supportedModelsInputSchema = literal([
25617
26374
  "Pixel 2",
25618
26375
  "Pixel Tablet",
25619
- "Pixel 9"
26376
+ "Pixel 9",
26377
+ "Samsung Galaxy A17",
26378
+ "Samsung Galaxy A37",
26379
+ "Any Phone",
26380
+ "Any Tablet"
25620
26381
  ]);
25621
- var supportedModelsOutputSchema = _enum([
26382
+ var supportedModelsOutputSchema = literal([
25622
26383
  "pixel_2",
25623
26384
  "pixel_tablet",
25624
- "pixel_9"
26385
+ "pixel_9",
26386
+ "sm_a176u1",
26387
+ "sm_a376u1",
26388
+ "any_phone",
26389
+ "any_tablet"
25625
26390
  ]);
25626
26391
  var supportedModelsSchema = codec(supportedModelsInputSchema, supportedModelsOutputSchema, {
25627
26392
  decode(deviceModel) {
25628
26393
  switch (deviceModel) {
26394
+ case "Any Phone":
26395
+ return "any_phone";
26396
+ case "Any Tablet":
26397
+ return "any_tablet";
25629
26398
  case "Pixel 2":
25630
26399
  return "pixel_2";
25631
26400
  case "Pixel 9":
25632
26401
  return "pixel_9";
25633
26402
  case "Pixel Tablet":
25634
26403
  return "pixel_tablet";
26404
+ case "Samsung Galaxy A17":
26405
+ return "sm_a176u1";
26406
+ case "Samsung Galaxy A37":
26407
+ return "sm_a376u1";
25635
26408
  default:
25636
26409
  throw Error(`Unsupported device model: ${deviceModel}`);
25637
26410
  }
25638
26411
  },
25639
26412
  encode(deviceModel) {
25640
26413
  switch (deviceModel) {
26414
+ case "any_phone":
26415
+ return "Any Phone";
26416
+ case "any_tablet":
26417
+ return "Any Tablet";
25641
26418
  case "pixel_2":
25642
26419
  return "Pixel 2";
25643
26420
  case "pixel_9":
25644
26421
  return "Pixel 9";
25645
26422
  case "pixel_tablet":
25646
26423
  return "Pixel Tablet";
26424
+ case "sm_a176u1":
26425
+ return "Samsung Galaxy A17";
26426
+ case "sm_a376u1":
26427
+ return "Samsung Galaxy A37";
25647
26428
  default:
25648
26429
  throw Error(`Unsupported device model: ${deviceModel}`);
25649
26430
  }
25650
26431
  }
25651
26432
  });
25652
26433
 
25653
- // node_modules/@qawolf/flow-targets/dist/schemas/android/v1/input.js
25654
- var supportedVersionsSchema = _enum(["34", "35", "36"]);
25655
- var androidMetaInputSchema = discriminatedUnion("deviceModel", [
25656
- object({
25657
- androidVersion: supportedVersionsSchema.extract(["34"]),
25658
- deviceModel: supportedModelsInputSchema.extract(["Pixel 2"])
25659
- }),
25660
- object({
25661
- androidVersion: supportedVersionsSchema.extract(["34"]),
25662
- deviceModel: supportedModelsInputSchema.extract(["Pixel Tablet"])
25663
- }),
25664
- object({
25665
- androidVersion: supportedVersionsSchema.extract(["34", "35", "36"]),
25666
- deviceModel: supportedModelsInputSchema.extract(["Pixel 9"])
25667
- })
25668
- ]);
25669
- var androidTargetInputSchema = baseInputSchema.extend({
25670
- meta: androidMetaInputSchema,
25671
- platform: platformsSchema.extract(["android"]),
25672
- schemaVersion: literal(1)
25673
- });
25674
-
25675
26434
  // node_modules/@qawolf/flow-targets/dist/schemas/android/v1/output.js
25676
26435
  var androidTargetOutputSchema = baseOutputSchema.extend({
25677
26436
  ...androidTargetInputSchema.shape,
25678
26437
  meta: object({
25679
26438
  androidVersion: supportedVersionsSchema,
25680
26439
  deviceModel: supportedModelsOutputSchema,
25681
- screenHeight: number2(),
25682
- screenWidth: number2()
26440
+ deviceUdid: string2().optional(),
26441
+ screenHeight: number2().optional(),
26442
+ screenWidth: number2().optional(),
26443
+ targetDevices: supportedTargetDevicesOutputSchema.optional()
25683
26444
  }),
25684
- runnerName: runnerNamesSchema.extract(["node20WithAndroid"])
26445
+ runnerName: runnerNameSchemaForFamily("android")
25685
26446
  });
25686
26447
 
25687
26448
  // node_modules/@qawolf/flow-targets/dist/schemas/android/v1/index.js
@@ -25692,9 +26453,10 @@ var androidExecutionTargetSchema = codec(androidTargetInputSchema, androidTarget
25692
26453
  meta: {
25693
26454
  ...value.meta,
25694
26455
  deviceModel: supportedModelsSchema.decode(value.meta.deviceModel),
25695
- ...screenDimensions[value.meta.deviceModel]
26456
+ ...screenDimensions[value.meta.deviceModel],
26457
+ targetDevices: supportedTargetDevicesSchema.decode(value.meta.targetDevices)
25696
26458
  },
25697
- runnerName: "node20WithAndroid"
26459
+ runnerName: "android"
25698
26460
  };
25699
26461
  },
25700
26462
  encode(value) {
@@ -25702,7 +26464,8 @@ var androidExecutionTargetSchema = codec(androidTargetInputSchema, androidTarget
25702
26464
  ...value,
25703
26465
  meta: {
25704
26466
  ...value.meta,
25705
- deviceModel: supportedModelsSchema.encode(value.meta.deviceModel)
26467
+ deviceModel: supportedModelsSchema.encode(value.meta.deviceModel),
26468
+ targetDevices: supportedTargetDevicesSchema.encode(value.meta.targetDevices ?? "anyDevice")
25706
26469
  }
25707
26470
  });
25708
26471
  }
@@ -25713,26 +26476,161 @@ var androidExecutionTargetInputSchema = discriminatedUnion("schemaVersion", [and
25713
26476
  var androidExecutionTargetOutputSchema = discriminatedUnion("schemaVersion", [androidTargetOutputSchema]);
25714
26477
  var androidExecutionTargetSchema2 = discriminatedUnion("schemaVersion", [androidExecutionTargetSchema]);
25715
26478
 
26479
+ // node_modules/@qawolf/flow-targets/dist/schemas/cli/v1/input.js
26480
+ var cliTargetInputSchema = baseInputSchema.extend({
26481
+ platform: literal("cli"),
26482
+ schemaVersion: literal(1)
26483
+ });
26484
+
26485
+ // node_modules/@qawolf/flow-targets/dist/schemas/cli/v1/cliRunnerNames.js
26486
+ var cliRunnerNamesSchema = runnerNameSchemaForFamily("basic");
26487
+
26488
+ // node_modules/@qawolf/flow-targets/dist/schemas/cli/v1/output.js
26489
+ var cliTargetOutputSchema = baseOutputSchema.extend({
26490
+ platform: literal("cli"),
26491
+ runnerName: cliRunnerNamesSchema,
26492
+ schemaVersion: literal(1)
26493
+ });
26494
+
26495
+ // node_modules/@qawolf/flow-targets/dist/schemas/cli/v1/index.js
26496
+ var cliExecutionTargetSchema = codec(cliTargetInputSchema, cliTargetOutputSchema, {
26497
+ decode(value) {
26498
+ return {
26499
+ ...value,
26500
+ runnerName: "basic"
26501
+ };
26502
+ },
26503
+ encode(value) {
26504
+ return cliTargetInputSchema.parse(value);
26505
+ }
26506
+ });
26507
+
26508
+ // node_modules/@qawolf/flow-targets/dist/schemas/cli/index.js
26509
+ var cliExecutionTargetInputSchema = discriminatedUnion("schemaVersion", [cliTargetInputSchema]);
26510
+ var cliExecutionTargetOutputSchema = discriminatedUnion("schemaVersion", [cliTargetOutputSchema]);
26511
+ var cliExecutionTargetSchema2 = discriminatedUnion("schemaVersion", [
26512
+ cliExecutionTargetSchema
26513
+ ]);
26514
+
26515
+ // node_modules/@qawolf/flow-targets/dist/schemas/ios/v1/supportedTargetDevicesSchema.js
26516
+ var supportedTargetDevicesInputSchema2 = literal([
26517
+ "Any Device",
26518
+ "Allowlisted Device",
26519
+ "Team Dedicated Device"
26520
+ ]);
26521
+ var supportedTargetDevicesOutputSchema2 = literal([
26522
+ "anyDevice",
26523
+ "allowlistedDevice",
26524
+ "teamDedicatedDevice"
26525
+ ]);
26526
+ var supportedTargetDevicesSchema2 = codec(supportedTargetDevicesInputSchema2, supportedTargetDevicesOutputSchema2, {
26527
+ decode(targetDevices) {
26528
+ switch (targetDevices) {
26529
+ case "Allowlisted Device":
26530
+ return "allowlistedDevice";
26531
+ case "Any Device":
26532
+ return "anyDevice";
26533
+ case "Team Dedicated Device":
26534
+ return "teamDedicatedDevice";
26535
+ default:
26536
+ throw Error(`Unsupported target devices: ${targetDevices}`);
26537
+ }
26538
+ },
26539
+ encode(targetDevices) {
26540
+ switch (targetDevices) {
26541
+ case "allowlistedDevice":
26542
+ return "Allowlisted Device";
26543
+ case "anyDevice":
26544
+ return "Any Device";
26545
+ case "teamDedicatedDevice":
26546
+ return "Team Dedicated Device";
26547
+ default:
26548
+ throw Error(`Unsupported target devices: ${targetDevices}`);
26549
+ }
26550
+ }
26551
+ });
26552
+
26553
+ // node_modules/@qawolf/flow-targets/dist/schemas/ios/v1/input.js
26554
+ var supportedVersionsInputSchema = literal(["17", "18", "26", "27"]);
26555
+ var baseMetaInputSchema = object({
26556
+ appleId: union([email2(), boolean2()]).optional(),
26557
+ deviceUdid: string2().optional(),
26558
+ targetDevices: supportedTargetDevicesInputSchema2.default("Any Device")
26559
+ });
26560
+ var iosMetaInputSchema = discriminatedUnion("deviceModel", [
26561
+ baseMetaInputSchema.extend({
26562
+ deviceModel: literal("iPhone 15"),
26563
+ iosVersion: literal(["17", "18", "26", "27"])
26564
+ }),
26565
+ baseMetaInputSchema.extend({
26566
+ deviceModel: literal("iPhone 15 Plus"),
26567
+ iosVersion: literal(["17", "27"])
26568
+ }),
26569
+ baseMetaInputSchema.extend({
26570
+ deviceModel: literal("iPhone 15 Pro Max"),
26571
+ iosVersion: literal(["17", "27"])
26572
+ }),
26573
+ baseMetaInputSchema.extend({
26574
+ deviceModel: literal("iPhone 16"),
26575
+ iosVersion: literal(["26", "27"])
26576
+ }),
26577
+ baseMetaInputSchema.extend({
26578
+ deviceModel: literal("iPhone 16 Plus"),
26579
+ iosVersion: literal(["26", "27"])
26580
+ }),
26581
+ baseMetaInputSchema.extend({
26582
+ deviceModel: literal("iPhone 17"),
26583
+ iosVersion: literal(["26", "27"])
26584
+ }),
26585
+ baseMetaInputSchema.extend({
26586
+ deviceModel: literal("iPad 11"),
26587
+ iosVersion: literal(["18", "26", "27"])
26588
+ }),
26589
+ baseMetaInputSchema.extend({
26590
+ deviceModel: literal("Any iPhone"),
26591
+ iosVersion: literal(["17", "18", "26", "27"])
26592
+ }),
26593
+ baseMetaInputSchema.extend({
26594
+ deviceModel: literal("Any iPad"),
26595
+ iosVersion: literal(["17", "18", "26", "27"])
26596
+ })
26597
+ ]);
26598
+ var iosTargetInputSchema = baseInputSchema.extend({
26599
+ meta: iosMetaInputSchema,
26600
+ platform: literal("ios"),
26601
+ schemaVersion: literal(1)
26602
+ });
26603
+
25716
26604
  // node_modules/@qawolf/flow-targets/dist/schemas/ios/v1/supportedModelsSchema.js
25717
- var supportedModelsInputSchema2 = _enum([
26605
+ var supportedModelsInputSchema2 = literal([
25718
26606
  "iPhone 15",
25719
26607
  "iPhone 15 Plus",
25720
26608
  "iPhone 15 Pro Max",
26609
+ "iPhone 16",
25721
26610
  "iPhone 16 Plus",
25722
26611
  "iPhone 17",
25723
- "iPad 11"
26612
+ "iPad 11",
26613
+ "Any iPhone",
26614
+ "Any iPad"
25724
26615
  ]);
25725
- var supportedModelsOutputSchema2 = _enum([
26616
+ var supportedModelsOutputSchema2 = literal([
25726
26617
  "iphone15_4",
25727
26618
  "iphone15_5",
25728
26619
  "iphone16_2",
26620
+ "iphone17_3",
25729
26621
  "iphone17_4",
25730
26622
  "iphone18_3",
25731
- "ipad15_7"
26623
+ "ipad15_7",
26624
+ "any_iphone",
26625
+ "any_ipad"
25732
26626
  ]);
25733
26627
  var supportedModelsSchema2 = codec(supportedModelsInputSchema2, supportedModelsOutputSchema2, {
25734
26628
  decode(deviceModel) {
25735
26629
  switch (deviceModel) {
26630
+ case "Any iPad":
26631
+ return "any_ipad";
26632
+ case "Any iPhone":
26633
+ return "any_iphone";
25736
26634
  case "iPad 11":
25737
26635
  return "ipad15_7";
25738
26636
  case "iPhone 15":
@@ -25741,6 +26639,8 @@ var supportedModelsSchema2 = codec(supportedModelsInputSchema2, supportedModelsO
25741
26639
  return "iphone15_5";
25742
26640
  case "iPhone 15 Pro Max":
25743
26641
  return "iphone16_2";
26642
+ case "iPhone 16":
26643
+ return "iphone17_3";
25744
26644
  case "iPhone 16 Plus":
25745
26645
  return "iphone17_4";
25746
26646
  case "iPhone 17":
@@ -25751,6 +26651,10 @@ var supportedModelsSchema2 = codec(supportedModelsInputSchema2, supportedModelsO
25751
26651
  },
25752
26652
  encode(value) {
25753
26653
  switch (value) {
26654
+ case "any_ipad":
26655
+ return "Any iPad";
26656
+ case "any_iphone":
26657
+ return "Any iPhone";
25754
26658
  case "ipad15_7":
25755
26659
  return "iPad 11";
25756
26660
  case "iphone15_4":
@@ -25759,6 +26663,8 @@ var supportedModelsSchema2 = codec(supportedModelsInputSchema2, supportedModelsO
25759
26663
  return "iPhone 15 Plus";
25760
26664
  case "iphone16_2":
25761
26665
  return "iPhone 15 Pro Max";
26666
+ case "iphone17_3":
26667
+ return "iPhone 16";
25762
26668
  case "iphone17_4":
25763
26669
  return "iPhone 16 Plus";
25764
26670
  case "iphone18_3":
@@ -25769,22 +26675,67 @@ var supportedModelsSchema2 = codec(supportedModelsInputSchema2, supportedModelsO
25769
26675
  }
25770
26676
  });
25771
26677
 
25772
- // node_modules/@qawolf/flow-targets/dist/schemas/ios/v1/supportedTargetDevicesSchema.js
25773
- var supportedTargetDevicesInputSchema = _enum([
26678
+ // node_modules/@qawolf/flow-targets/dist/schemas/ios/v1/output.js
26679
+ var iosTargetOutputSchema = baseOutputSchema.extend({
26680
+ ...iosTargetInputSchema.shape,
26681
+ meta: object({
26682
+ appleId: union([email2(), boolean2()]).optional(),
26683
+ deviceModel: supportedModelsOutputSchema2,
26684
+ deviceUdid: string2().optional(),
26685
+ iosVersion: supportedVersionsInputSchema,
26686
+ screenHeight: number2().optional(),
26687
+ screenWidth: number2().optional(),
26688
+ targetDevices: supportedTargetDevicesOutputSchema2
26689
+ }),
26690
+ runnerName: runnerNameSchemaForFamily("ios")
26691
+ });
26692
+
26693
+ // node_modules/@qawolf/flow-targets/dist/schemas/ios/v1/index.js
26694
+ var iosExecutionTargetSchema = codec(iosTargetInputSchema, iosTargetOutputSchema, {
26695
+ decode(value) {
26696
+ return {
26697
+ ...value,
26698
+ meta: {
26699
+ ...value.meta,
26700
+ appleId: value.meta.appleId || undefined,
26701
+ deviceModel: supportedModelsSchema2.decode(value.meta.deviceModel),
26702
+ ...screenDimensions[value.meta.deviceModel],
26703
+ targetDevices: supportedTargetDevicesSchema2.decode(value.meta.targetDevices)
26704
+ },
26705
+ runnerName: "ios"
26706
+ };
26707
+ },
26708
+ encode(value) {
26709
+ return iosTargetInputSchema.parse({
26710
+ ...value,
26711
+ meta: {
26712
+ ...value.meta,
26713
+ deviceModel: supportedModelsSchema2.encode(value.meta.deviceModel),
26714
+ targetDevices: supportedTargetDevicesSchema2.encode(value.meta.targetDevices)
26715
+ }
26716
+ });
26717
+ }
26718
+ });
26719
+
26720
+ // node_modules/@qawolf/flow-targets/dist/schemas/ios/index.js
26721
+ var iosExecutionTargetInputSchema = discriminatedUnion("schemaVersion", [iosTargetInputSchema]);
26722
+ var iosExecutionTargetOutputSchema = discriminatedUnion("schemaVersion", [iosTargetOutputSchema]);
26723
+ var iosExecutionTargetSchema2 = discriminatedUnion("schemaVersion", [
26724
+ iosExecutionTargetSchema
26725
+ ]);
26726
+
26727
+ // node_modules/@qawolf/flow-targets/dist/schemas/shared/desktopTargetDevicesSchema.js
26728
+ var supportedTargetDevicesInputSchema3 = literal([
25774
26729
  "Any Device",
25775
- "Allowlisted Device",
25776
26730
  "Team Dedicated Device"
25777
26731
  ]);
25778
- var supportedTargetDevicesOutputSchema = _enum([
26732
+ var supportedTargetDevicesOutputSchema3 = literal([
25779
26733
  "anyDevice",
25780
- "allowlistedDevice",
25781
26734
  "teamDedicatedDevice"
25782
26735
  ]);
25783
- var supportedTargetDevicesSchema = codec(supportedTargetDevicesInputSchema, supportedTargetDevicesOutputSchema, {
26736
+ var supportedTargetDevicesSchema3 = codec(supportedTargetDevicesInputSchema3, supportedTargetDevicesOutputSchema3, {
25784
26737
  decode(targetDevices) {
25785
26738
  switch (targetDevices) {
25786
- case "Allowlisted Device":
25787
- return "allowlistedDevice";
25788
26739
  case "Any Device":
25789
26740
  return "anyDevice";
25790
26741
  case "Team Dedicated Device":
@@ -25795,8 +26746,6 @@ var supportedTargetDevicesSchema = codec(supportedTargetDevicesInputSchema, supp
25795
26746
  },
25796
26747
  encode(targetDevices) {
25797
26748
  switch (targetDevices) {
25798
- case "allowlistedDevice":
25799
- return "Allowlisted Device";
25800
26749
  case "anyDevice":
25801
26750
  return "Any Device";
25802
26751
  case "teamDedicatedDevice":
@@ -25807,96 +26756,67 @@ var supportedTargetDevicesSchema = codec(supportedTargetDevicesInputSchema, supp
25807
26756
  }
25808
26757
  });
25809
26758
 
25810
- // node_modules/@qawolf/flow-targets/dist/schemas/ios/v1/input.js
25811
- var supportedVersionsInputSchema = _enum(["17", "18", "26"]);
25812
- var baseMetaInputSchema = object({
25813
- appleId: union([email2(), boolean2()]).optional(),
25814
- deviceUdid: string2().optional(),
25815
- targetDevices: supportedTargetDevicesInputSchema.default("Any Device")
26759
+ // node_modules/@qawolf/flow-targets/dist/schemas/mac/v1/input.js
26760
+ var supportedVersionsSchema2 = literal(["26"]);
26761
+ var macMetaInputSchema = object({
26762
+ macVersion: supportedVersionsSchema2,
26763
+ targetDevices: supportedTargetDevicesInputSchema3.default("Any Device")
25816
26764
  });
25817
- var iosMetaInputSchema = discriminatedUnion("deviceModel", [
25818
- baseMetaInputSchema.extend({
25819
- deviceModel: supportedModelsInputSchema2.extract(["iPhone 15"]),
25820
- iosVersion: supportedVersionsInputSchema.extract(["17", "18", "26"])
25821
- }),
25822
- baseMetaInputSchema.extend({
25823
- deviceModel: supportedModelsInputSchema2.extract(["iPhone 15 Plus"]),
25824
- iosVersion: supportedVersionsInputSchema.extract(["17"])
25825
- }),
25826
- baseMetaInputSchema.extend({
25827
- deviceModel: supportedModelsInputSchema2.extract(["iPhone 15 Pro Max"]),
25828
- iosVersion: supportedVersionsInputSchema.extract(["17"])
25829
- }),
25830
- baseMetaInputSchema.extend({
25831
- deviceModel: supportedModelsInputSchema2.extract(["iPhone 16 Plus"]),
25832
- iosVersion: supportedVersionsInputSchema.extract(["26"])
25833
- }),
25834
- baseMetaInputSchema.extend({
25835
- deviceModel: supportedModelsInputSchema2.extract(["iPhone 17"]),
25836
- iosVersion: supportedVersionsInputSchema.extract(["26"])
25837
- }),
25838
- baseMetaInputSchema.extend({
25839
- deviceModel: supportedModelsInputSchema2.extract(["iPad 11"]),
25840
- iosVersion: supportedVersionsInputSchema.extract(["18", "26"])
25841
- })
25842
- ]);
25843
- var iosTargetInputSchema = baseInputSchema.extend({
25844
- meta: iosMetaInputSchema,
25845
- platform: platformsSchema.extract(["ios"]),
26765
+ var macTargetInputSchema = baseInputSchema.extend({
26766
+ meta: macMetaInputSchema,
26767
+ platform: literal("mac"),
25846
26768
  schemaVersion: literal(1)
25847
26769
  });
25848
26770
 
25849
- // node_modules/@qawolf/flow-targets/dist/schemas/ios/v1/output.js
25850
- var iosTargetOutputSchema = baseOutputSchema.extend({
25851
- ...iosTargetInputSchema.shape,
26771
+ // node_modules/@qawolf/flow-targets/dist/schemas/mac/v1/output.js
26772
+ var macTargetOutputSchema = baseOutputSchema.extend({
26773
+ ...macTargetInputSchema.shape,
25852
26774
  meta: object({
25853
- appleId: union([email2(), boolean2()]).optional(),
25854
- deviceModel: supportedModelsOutputSchema2,
25855
- deviceUdid: string2().optional(),
25856
- iosVersion: supportedVersionsInputSchema,
26775
+ macVersion: supportedVersionsSchema2,
25857
26776
  screenHeight: number2(),
25858
26777
  screenWidth: number2(),
25859
- targetDevices: supportedTargetDevicesOutputSchema
26778
+ targetDevices: supportedTargetDevicesOutputSchema3
25860
26779
  }),
25861
- runnerName: runnerNamesSchema.extract(["node20WithIos"])
26780
+ runnerName: runnerNameSchemaForFamily("mac")
25862
26781
  });
25863
26782
 
25864
- // node_modules/@qawolf/flow-targets/dist/schemas/ios/v1/index.js
25865
- var iosExecutionTargetSchema = codec(iosTargetInputSchema, iosTargetOutputSchema, {
26783
+ // node_modules/@qawolf/flow-targets/dist/schemas/mac/v1/index.js
26784
+ var macDesktopDimensions = {
26785
+ screenHeight: 1080,
26786
+ screenWidth: 1920
26787
+ };
26788
+ var macExecutionTargetSchema = codec(macTargetInputSchema, macTargetOutputSchema, {
25866
26789
  decode(value) {
25867
26790
  return {
25868
26791
  ...value,
25869
26792
  meta: {
25870
26793
  ...value.meta,
25871
- appleId: value.meta.appleId || undefined,
25872
- deviceModel: supportedModelsSchema2.decode(value.meta.deviceModel),
25873
- ...screenDimensions[value.meta.deviceModel],
25874
- targetDevices: supportedTargetDevicesSchema.decode(value.meta.targetDevices)
26794
+ ...macDesktopDimensions,
26795
+ targetDevices: supportedTargetDevicesSchema3.decode(value.meta.targetDevices)
25875
26796
  },
25876
- runnerName: "node20WithIos"
26797
+ runnerName: "mac"
25877
26798
  };
25878
26799
  },
25879
26800
  encode(value) {
25880
- return iosTargetInputSchema.parse({
26801
+ return macTargetInputSchema.parse({
25881
26802
  ...value,
25882
26803
  meta: {
25883
26804
  ...value.meta,
25884
- deviceModel: supportedModelsSchema2.encode(value.meta.deviceModel),
25885
- targetDevices: supportedTargetDevicesSchema.encode(value.meta.targetDevices)
26805
+ targetDevices: supportedTargetDevicesSchema3.encode(value.meta.targetDevices)
25886
26806
  }
25887
26807
  });
25888
26808
  }
25889
26809
  });
25890
26810
 
25891
- // node_modules/@qawolf/flow-targets/dist/schemas/ios/index.js
25892
- var iosExecutionTargetInputSchema = discriminatedUnion("schemaVersion", [iosTargetInputSchema]);
25893
- var iosExecutionTargetOutputSchema = discriminatedUnion("schemaVersion", [iosTargetOutputSchema]);
25894
- var iosExecutionTargetSchema2 = discriminatedUnion("schemaVersion", [
25895
- iosExecutionTargetSchema
26811
+ // node_modules/@qawolf/flow-targets/dist/schemas/mac/index.js
26812
+ var macExecutionTargetInputSchema = discriminatedUnion("schemaVersion", [macTargetInputSchema]);
26813
+ var macExecutionTargetOutputSchema = discriminatedUnion("schemaVersion", [macTargetOutputSchema]);
26814
+ var macExecutionTargetSchema2 = discriminatedUnion("schemaVersion", [
26815
+ macExecutionTargetSchema
25896
26816
  ]);
25897
26817
 
25898
26818
  // node_modules/@qawolf/flow-targets/dist/schemas/web/v1/input.js
25899
- var supportedBrowserNamesSchema = _enum(["chrome", "firefox", "safari"]);
26819
+ var supportedBrowserNamesSchema = literal(["chrome", "firefox", "safari"]);
25900
26820
  var defaultScreenDimensions = {
25901
26821
  height: 804,
25902
26822
  width: 1288
@@ -25930,8 +26850,8 @@ var browserInfoSchema = union([
25930
26850
  ]);
25931
26851
  var webMetaSchema = union([browserInfoSchema, electronInfoSchema]);
25932
26852
  var webTargetInputSchema = baseInputSchema.extend({
25933
- meta: union([webMetaSchema, literal("legacy")]),
25934
- platform: platformsSchema.extract(["web"]),
26853
+ meta: webMetaSchema,
26854
+ platform: literal("web"),
25935
26855
  schemaVersion: literal(1)
25936
26856
  });
25937
26857
  function getWebBrowserInfo(meta) {
@@ -25943,10 +26863,9 @@ function getWebBrowserInfo(meta) {
25943
26863
  }
25944
26864
 
25945
26865
  // node_modules/@qawolf/flow-targets/dist/schemas/web/v1/webRunnerNames.js
25946
- var webRunnerNamesSchema = runnerNamesSchema.extract([
25947
- "node20Basic",
25948
- "node20WithPlaywright",
25949
- "node20GpuWithPlaywright"
26866
+ var webRunnerNamesSchema = union([
26867
+ runnerNameSchemaForFamily("playwright"),
26868
+ runnerNameSchemaForFamily("playwrightGpu")
25950
26869
  ]);
25951
26870
 
25952
26871
  // node_modules/@qawolf/flow-targets/dist/schemas/web/v1/output.js
@@ -25964,8 +26883,7 @@ var webOutputMetaSchema = union([
25964
26883
  object({
25965
26884
  gpuEnabled: literal(false),
25966
26885
  kind: literal("electron")
25967
- }),
25968
- literal("legacy")
26886
+ })
25969
26887
  ]);
25970
26888
  var webTargetOutputSchema = baseOutputSchema.extend({
25971
26889
  meta: webOutputMetaSchema,
@@ -25977,23 +26895,12 @@ var webTargetOutputSchema = baseOutputSchema.extend({
25977
26895
  // node_modules/@qawolf/flow-targets/dist/schemas/web/v1/index.js
25978
26896
  var webExecutionTargetSchema = codec(webTargetInputSchema, webTargetOutputSchema, {
25979
26897
  decode(value) {
25980
- const runnerName = value.meta === "legacy" ? "node20Basic" : value.meta.gpuEnabled ? "node20GpuWithPlaywright" : "node20WithPlaywright";
25981
- let meta;
25982
- if (value.meta === "legacy")
25983
- meta = value.meta;
25984
- else if (value.meta.kind === "electron") {
25985
- meta = {
25986
- gpuEnabled: false,
25987
- kind: "electron"
25988
- };
25989
- } else {
25990
- const browserInfo = getWebBrowserInfo(value.meta);
25991
- meta = {
25992
- defaultBrowser: browserInfo,
25993
- gpuEnabled: value.meta.gpuEnabled,
25994
- kind: "browser"
25995
- };
25996
- }
26898
+ const runnerName = value.meta.gpuEnabled ? "playwrightGpu" : "playwright";
26899
+ const meta = value.meta.kind === "electron" ? { gpuEnabled: false, kind: "electron" } : {
26900
+ defaultBrowser: getWebBrowserInfo(value.meta),
26901
+ gpuEnabled: value.meta.gpuEnabled,
26902
+ kind: "browser"
26903
+ };
25997
26904
  return {
25998
26905
  ...value,
25999
26906
  meta,
@@ -26012,26 +26919,130 @@ var webExecutionTargetSchema2 = discriminatedUnion("schemaVersion", [
26012
26919
  webExecutionTargetSchema
26013
26920
  ]);
26014
26921
 
26922
+ // node_modules/@qawolf/flow-targets/dist/schemas/windows/v1/input.js
26923
+ var supportedVersionsSchema3 = literal(["11"]);
26924
+ var windowsMetaInputSchema = object({
26925
+ targetDevices: supportedTargetDevicesInputSchema3.default("Any Device"),
26926
+ windowsVersion: supportedVersionsSchema3
26927
+ });
26928
+ var windowsTargetInputSchema = baseInputSchema.extend({
26929
+ meta: windowsMetaInputSchema,
26930
+ platform: literal("windows"),
26931
+ schemaVersion: literal(1)
26932
+ });
26933
+
26934
+ // node_modules/@qawolf/flow-targets/dist/schemas/windows/v1/output.js
26935
+ var windowsTargetOutputSchema = baseOutputSchema.extend({
26936
+ ...windowsTargetInputSchema.shape,
26937
+ meta: object({
26938
+ screenHeight: number2(),
26939
+ screenWidth: number2(),
26940
+ targetDevices: supportedTargetDevicesOutputSchema3.optional(),
26941
+ windowsVersion: supportedVersionsSchema3
26942
+ }),
26943
+ runnerName: runnerNameSchemaForFamily("windows")
26944
+ });
26945
+
26946
+ // node_modules/@qawolf/flow-targets/dist/schemas/windows/v1/index.js
26947
+ var windowsDesktopDimensions = {
26948
+ screenHeight: 1080,
26949
+ screenWidth: 1920
26950
+ };
26951
+ var windowsExecutionTargetSchema = codec(windowsTargetInputSchema, windowsTargetOutputSchema, {
26952
+ decode(value) {
26953
+ return {
26954
+ ...value,
26955
+ meta: {
26956
+ ...value.meta,
26957
+ ...windowsDesktopDimensions,
26958
+ targetDevices: supportedTargetDevicesSchema3.decode(value.meta.targetDevices)
26959
+ },
26960
+ runnerName: "windows"
26961
+ };
26962
+ },
26963
+ encode(value) {
26964
+ return windowsTargetInputSchema.parse({
26965
+ ...value,
26966
+ meta: {
26967
+ ...value.meta,
26968
+ targetDevices: supportedTargetDevicesSchema3.encode(value.meta.targetDevices ?? "anyDevice")
26969
+ }
26970
+ });
26971
+ }
26972
+ });
26973
+
26974
+ // node_modules/@qawolf/flow-targets/dist/schemas/windows/index.js
26975
+ var windowsExecutionTargetInputSchema = discriminatedUnion("schemaVersion", [windowsTargetInputSchema]);
26976
+ var windowsExecutionTargetOutputSchema = discriminatedUnion("schemaVersion", [windowsTargetOutputSchema]);
26977
+ var windowsExecutionTargetSchema2 = discriminatedUnion("schemaVersion", [windowsExecutionTargetSchema]);
26015
26978
  // node_modules/@qawolf/flow-targets/dist/schemas/index.js
26016
26979
  var executionTargetInputSchema = discriminatedUnion("platform", [
26017
26980
  androidExecutionTargetInputSchema,
26981
+ cliExecutionTargetInputSchema,
26018
26982
  iosExecutionTargetInputSchema,
26019
- webExecutionTargetInputSchema
26983
+ macExecutionTargetInputSchema,
26984
+ webExecutionTargetInputSchema,
26985
+ windowsExecutionTargetInputSchema
26020
26986
  ]);
26021
26987
  var executionTargetOutputSchema = discriminatedUnion("platform", [
26022
26988
  androidExecutionTargetOutputSchema,
26989
+ cliExecutionTargetOutputSchema,
26023
26990
  iosExecutionTargetOutputSchema,
26024
- webExecutionTargetOutputSchema
26991
+ macExecutionTargetOutputSchema,
26992
+ webExecutionTargetOutputSchema,
26993
+ windowsExecutionTargetOutputSchema
26025
26994
  ]);
26026
26995
  var executionTargetSchema = discriminatedUnion("platform", [
26027
26996
  androidExecutionTargetSchema2,
26997
+ cliExecutionTargetSchema2,
26028
26998
  iosExecutionTargetSchema2,
26029
- webExecutionTargetSchema2
26999
+ macExecutionTargetSchema2,
27000
+ webExecutionTargetSchema2,
27001
+ windowsExecutionTargetSchema2
26030
27002
  ]);
26031
27003
 
27004
+ // node_modules/@qawolf/flow-targets/dist/defaults.js
27005
+ var defaultWebPreset = "Web - Chrome";
27006
+ // node_modules/@qawolf/flow-targets/dist/lifecycle/renamedPresets.js
27007
+ var renamedPresets = {
27008
+ "Android 36 - Any Phone": "Android - Any Phone (Android 16 | Emulator)",
27009
+ "Android 37 - Any Phone": "Android - Any Phone (Android 17 | Emulator)",
27010
+ "Android 37 - Any Tablet": "Android - Any Tablet (Android 17 | Emulator)",
27011
+ "Android - Pixel": "Android - Google Pixel 2 (Android 14 | Emulator)",
27012
+ "Android - Pixel 2 (Android 14)": "Android - Google Pixel 2 (Android 14 | Emulator)",
27013
+ "Android - Pixel 9": "Android - Google Pixel 9 (Android 14 | Emulator)",
27014
+ "Android - Pixel 9 (Android 14)": "Android - Google Pixel 9 (Android 14 | Emulator)",
27015
+ "Android - Pixel 9 (Android 15)": "Android - Google Pixel 9 (Android 15 | Emulator)",
27016
+ "Android - Pixel 9 (Android 16)": "Android - Google Pixel 9 (Android 16 | Emulator)",
27017
+ "Android - Pixel 9 (Android 17)": "Android - Google Pixel 9 (Android 17 | Emulator)",
27018
+ "Android - Pixel Tablet (Android 14)": "Android - Google Pixel Tablet (Android 14 | Emulator)",
27019
+ "Android - Pixel Tablet (Android 17)": "Android - Google Pixel Tablet (Android 17 | Emulator)",
27020
+ "Android - Tablet": "Android - Google Pixel Tablet (Android 14 | Emulator)",
27021
+ "iOS 18 - Any iPhone": "iOS - Any iPhone (iOS 18)",
27022
+ "iOS 26 - Any iPad": "iOS - Any iPad (iOS 26)",
27023
+ "iOS 26 - Any iPhone": "iOS - Any iPhone (iOS 26)",
27024
+ "iOS 27 - Any iPhone": "iOS - Any iPhone (iOS 27)",
27025
+ "iOS - Allowlisted iPhone": "iOS - iPhone 15 (iOS 26 | Allowlisted)",
27026
+ "iOS - Apple ID Enabled iPad": "iOS - iPad 11 (iOS 18 | Apple ID)",
27027
+ "iOS - Apple ID Enabled iPhone": "iOS - iPhone 15 (iOS 26 | Apple ID)",
27028
+ "iOS - iPad": "iOS - iPad 11 (iOS 26)",
27029
+ "iOS - iPad 11 (iOS 18) (Apple ID)": "iOS - iPad 11 (iOS 18 | Apple ID)",
27030
+ "iOS - iPhone 15 (iOS 26) (allowlisted)": "iOS - iPhone 15 (iOS 26 | Allowlisted)",
27031
+ "iOS - iPhone 15 (iOS 26) (Apple ID)": "iOS - iPhone 15 (iOS 26 | Apple ID)",
27032
+ "iOS - iPhone 15 (iOS 26) (private)": "iOS - iPhone 15 (iOS 26 | Private)",
27033
+ "Latest Android (Phone)": "Android - Any Phone (Latest | Emulator)",
27034
+ "Latest Android (Tablet)": "Android - Any Tablet (Latest | Emulator)",
27035
+ "Latest iOS (iPad)": "iOS - Any iPad (Latest)",
27036
+ "Latest iOS (iPhone)": "iOS - Any iPhone (Latest)"
27037
+ };
27038
+ var resolvePresetLiteral = (name) => Object.hasOwn(renamedPresets, name) ? renamedPresets[name] : name;
27039
+
26032
27040
  // node_modules/@qawolf/flow-targets/dist/parseExecutionTarget.js
26033
27041
  var isPresetLiteral = (input) => presetLiteralsSchema.safeParse(input).success;
26034
- var parseExecutionTarget = (input) => executionTargetSchema.decode(isPresetLiteral(input) ? presetTargetMap[input] : input);
27042
+ var parseExecutionTarget = (input) => executionTargetSchema.decode(isPresetLiteral(input) ? presetTargetMap[resolvePresetLiteral(input)] : input);
27043
+ // node_modules/@qawolf/flow-targets/dist/schemas/android/v1/deviceMode.js
27044
+ var realDeviceModels = new Set(["sm_a176u1", "sm_a376u1"]);
27045
+ var getAndroidDeviceMode = (deviceModel) => realDeviceModels.has(deviceModel) ? "real" : "emulator";
26035
27046
  // node_modules/@qawolf/flow-targets/dist/index.js
26036
27047
  var presetLiteralOrAdHocTargetSchema = union([
26037
27048
  presetLiteralsSchema,
@@ -26039,8 +27050,16 @@ var presetLiteralOrAdHocTargetSchema = union([
26039
27050
  ]);
26040
27051
 
26041
27052
  // src/core/androidTargets.ts
27053
+ var avdDeviceIdByModel = {
27054
+ any_phone: "pixel_9",
27055
+ any_tablet: "pixel_tablet"
27056
+ };
27057
+ function avdDeviceId(deviceModel) {
27058
+ return avdDeviceIdByModel[deviceModel] ?? deviceModel;
27059
+ }
26042
27060
  function makeAvdName(deviceModel, androidVersion) {
26043
- return `qawolf_${deviceModel.toLowerCase().replace(/ /g, "_")}_api${androidVersion}`;
27061
+ const device = avdDeviceId(deviceModel).toLowerCase().replace(/ /g, "_");
27062
+ return `qawolf_${device}_api${androidVersion}`;
26044
27063
  }
26045
27064
  function avdNameForTarget(target) {
26046
27065
  let parsed;
@@ -26052,6 +27071,8 @@ function avdNameForTarget(target) {
26052
27071
  if (parsed.platform !== "android")
26053
27072
  return;
26054
27073
  const { deviceModel, androidVersion } = parsed.meta;
27074
+ if (getAndroidDeviceMode(deviceModel) === "real")
27075
+ return;
26055
27076
  return makeAvdName(deviceModel, androidVersion);
26056
27077
  }
26057
27078
  var avdArchByNodeArch = {
@@ -26064,7 +27085,8 @@ function buildSystemImage(androidVersion, arch) {
26064
27085
  throw new Error(`Unsupported host architecture for Android AVD: ${arch}`);
26065
27086
  }
26066
27087
  const imageType = Number(androidVersion) >= 36 ? "google_apis" : "google_apis_playstore";
26067
- return `system-images;android-${androidVersion};${imageType};${archStr}`;
27088
+ const platformId = Number(androidVersion) >= 37 ? `${androidVersion}.0` : androidVersion;
27089
+ return `system-images;android-${platformId};${imageType};${archStr}`;
26068
27090
  }
26069
27091
 
26070
27092
  // src/core/batchMap.ts
@@ -26468,7 +27490,7 @@ function playwrightCliInvocation(args) {
26468
27490
  }
26469
27491
 
26470
27492
  // src/generated/dependencyVersions.ts
26471
- var flowsVersion = "0.1.4";
27493
+ var flowsVersion = "0.3.0";
26472
27494
  var playwrightVersion = "1.62.0";
26473
27495
  var emailsVersion = "1.1.1";
26474
27496
  var testkitVersion = "1.2.1";
@@ -27585,8 +28607,9 @@ function classifyTarget(target) {
27585
28607
  } catch {
27586
28608
  return { kind: "unrecognized" };
27587
28609
  }
27588
- if (parsed.platform === "android")
27589
- return { kind: "android" };
28610
+ if (parsed.platform === "android") {
28611
+ return getAndroidDeviceMode(parsed.meta.deviceModel) === "real" ? { kind: "unsupported" } : { kind: "android" };
28612
+ }
27590
28613
  if (parsed.platform === "ios")
27591
28614
  return { kind: "ios" };
27592
28615
  if (parsed.platform !== "web")
@@ -35078,12 +36101,7 @@ async function doInit(flowPath, timeout, fs, depsRoot) {
35078
36101
  if (typeof mod.configureFlowRuntime !== "function")
35079
36102
  throw new Error(`@qawolf/flows _runner at ${runnerPath} does not export configureFlowRuntime`);
35080
36103
  await mod.configureFlowRuntime({
35081
- target: {
35082
- platform: "web",
35083
- schemaVersion: 1,
35084
- runnerName: "node20WithPlaywright",
35085
- meta: "legacy"
35086
- },
36104
+ target: parseExecutionTarget(defaultWebPreset),
35087
36105
  webExpectAttributes: { defaultExpectTimeoutMs: timeout }
35088
36106
  });
35089
36107
  }
@@ -36609,7 +37627,7 @@ function buildAvdSpecs(targets, arch) {
36609
37627
  seen.set(avdName, {
36610
37628
  avdName,
36611
37629
  systemImage: buildSystemImage(androidVersion, arch),
36612
- deviceId: deviceModel
37630
+ deviceId: avdDeviceId(deviceModel)
36613
37631
  });
36614
37632
  }
36615
37633
  return [...seen.values()];
@@ -40769,4 +41787,4 @@ createProgram({ signals }).parseAsync().catch(() => {
40769
41787
  process.exitCode = 1;
40770
41788
  }).finally(() => exitWhenIdle(typeof process.exitCode === "number" ? process.exitCode : 0));
40771
41789
 
40772
- //# debugId=C44573E11BF850C064756E2164756E21
41790
+ //# debugId=FFFD1A9214AB797D64756E2164756E21