@qawolf/cli 1.4.1 → 1.4.2

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.
Files changed (2) hide show
  1. package/dist/cli.js +17 -11
  2. package/package.json +1 -1
package/dist/cli.js CHANGED
@@ -173683,7 +173683,7 @@ function registerAuthCommand(program2, signals) {
173683
173683
  // package.json
173684
173684
  var package_default = {
173685
173685
  name: "@qawolf/cli",
173686
- version: "1.4.1",
173686
+ version: "1.4.2",
173687
173687
  description: "Run and manage QA Wolf flows from the terminal, CI, or an AI agent",
173688
173688
  keywords: [
173689
173689
  "automation",
@@ -180507,12 +180507,18 @@ function createRunnerDeps(signals, depsRoot) {
180507
180507
  };
180508
180508
  }
180509
180509
 
180510
+ // src/shell/importFromPath.ts
180511
+ import { pathToFileURL } from "node:url";
180512
+ function importFromPath(absPath) {
180513
+ return import(pathToFileURL(absPath).href);
180514
+ }
180515
+
180510
180516
  // src/domains/runner/runWebFlowDeps.ts
180511
180517
  async function defaultRunWebFlowDeps(envDir = process.cwd(), signals) {
180512
180518
  let playwright;
180513
180519
  try {
180514
180520
  const playwrightPath = resolveFromEnvDir(envDir, "playwright");
180515
- playwright = await import(playwrightPath);
180521
+ playwright = await importFromPath(playwrightPath);
180516
180522
  } catch (err) {
180517
180523
  throw new Error(runnerMessages.playwrightLoadFailed(envDir, errorMessage(err)), {
180518
180524
  cause: err
@@ -180770,10 +180776,10 @@ function notAvailableLocally(name) {
180770
180776
  async function loadSdkDeps(cwd) {
180771
180777
  const testkitDir = join31(cwd, "node_modules", "@qawolf", "testkit");
180772
180778
  try {
180773
- const clientMod = await import(resolveFromEnvDir(cwd, "@qawolf/testkit/client"));
180779
+ const clientMod = await importFromPath(resolveFromEnvDir(cwd, "@qawolf/testkit/client"));
180774
180780
  if (typeof clientMod.createTestkitClient !== "function")
180775
180781
  throw new Error("createTestkitClient is not a function");
180776
- const scopeMod = await import(join31(testkitDir, "dist", "clientScope.js"));
180782
+ const scopeMod = await importFromPath(join31(testkitDir, "dist", "clientScope.js"));
180777
180783
  if (typeof scopeMod.configureTestkitClient !== "function")
180778
180784
  throw new Error("configureTestkitClient is not a function");
180779
180785
  return {
@@ -180810,7 +180816,7 @@ function resolveDepsRoot(args) {
180810
180816
  async function loadSdkDeps2(cwd) {
180811
180817
  try {
180812
180818
  const emailsPath = resolveFromEnvDir(cwd, "@qawolf/emails");
180813
- return await import(emailsPath);
180819
+ return await importFromPath(emailsPath);
180814
180820
  } catch (err) {
180815
180821
  throw new Error(packageLoadFailed("@qawolf/emails", cwd, errorMessage(err)), { cause: err });
180816
180822
  }
@@ -181497,7 +181503,7 @@ function createAndroidLaunchContext({
181497
181503
 
181498
181504
  // src/domains/runner/loadFlowDefault.ts
181499
181505
  import path11 from "node:path";
181500
- import { pathToFileURL } from "node:url";
181506
+ import { pathToFileURL as pathToFileURL2 } from "node:url";
181501
181507
 
181502
181508
  // src/shell/resolver/detectRuntimeCapabilities.ts
181503
181509
  import nodeModule2 from "node:module";
@@ -181698,7 +181704,7 @@ async function importBundledFlow(flowPath, code, fs9) {
181698
181704
  const tempPath = path11.join(path11.dirname(flowPath), `.${path11.basename(flowPath)}.qawolf-bundle.mjs`);
181699
181705
  await fs9.writeFile(tempPath, code);
181700
181706
  try {
181701
- return await importDefaultExport(pathToFileURL(tempPath).href, flowPath);
181707
+ return await importDefaultExport(pathToFileURL2(tempPath).href, flowPath);
181702
181708
  } finally {
181703
181709
  await fs9.rm(tempPath, { force: true });
181704
181710
  }
@@ -181712,7 +181718,7 @@ async function loadFlowDefault(args) {
181712
181718
  } = args;
181713
181719
  if (bundleFlow === undefined) {
181714
181720
  await registerFlowLoader();
181715
- return importDefaultExport(pathToFileURL(flowPath).href, flowPath);
181721
+ return importDefaultExport(pathToFileURL2(flowPath).href, flowPath);
181716
181722
  }
181717
181723
  const code = await bundleFlow(flowPath, depsRoot);
181718
181724
  return importBundledFlow(flowPath, code, fs9);
@@ -181889,7 +181895,7 @@ import path17 from "node:path";
181889
181895
 
181890
181896
  // src/domains/runner/initFlowRuntime.ts
181891
181897
  import path13 from "node:path";
181892
- import { pathToFileURL as pathToFileURL2 } from "node:url";
181898
+ import { pathToFileURL as pathToFileURL3 } from "node:url";
181893
181899
  async function runnerPathInDir(dir, fs9) {
181894
181900
  const pkgPath = path13.join(dir, "node_modules", "@qawolf", "flows", "package.json");
181895
181901
  try {
@@ -181930,7 +181936,7 @@ async function doInit(flowPath, timeout, fs9, depsRoot) {
181930
181936
  } else {
181931
181937
  runnerPath = await findFlowsRunnerPath(flowPath, fs9);
181932
181938
  }
181933
- const mod = await import(pathToFileURL2(runnerPath).href);
181939
+ const mod = await import(pathToFileURL3(runnerPath).href);
181934
181940
  if (typeof mod.configureFlowRuntime !== "function")
181935
181941
  throw new Error(`@qawolf/flows _runner at ${runnerPath} does not export configureFlowRuntime`);
181936
181942
  await mod.configureFlowRuntime({
@@ -183739,4 +183745,4 @@ createProgram({ signals }).parseAsync().catch(() => {
183739
183745
  process.exitCode = 1;
183740
183746
  }).finally(() => flushAndExit(typeof process.exitCode === "number" ? process.exitCode : 0));
183741
183747
 
183742
- //# debugId=1DBB4BA7A5B3EA9D64756E2164756E21
183748
+ //# debugId=393CFE300FA7E35C64756E2164756E21
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@qawolf/cli",
3
- "version": "1.4.1",
3
+ "version": "1.4.2",
4
4
  "description": "Run and manage QA Wolf flows from the terminal, CI, or an AI agent",
5
5
  "keywords": [
6
6
  "automation",