@capagents/forgeqe 2.3.11 → 2.3.12

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/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@capagents/forgeqe",
3
- "version": "2.3.11",
3
+ "version": "2.3.12",
4
4
  "description": "ForgeQE: a browser agent CLI that runs goals and test cases in local Chrome or Chromium, or BrowserStack and TestMu AI/LambdaTest when configured, and turns passing runs into tests in your repo",
5
5
  "license": "SEE LICENSE IN LICENSE",
6
6
  "repository": {
@@ -15,6 +15,7 @@ from __future__ import annotations
15
15
  import json
16
16
  import os
17
17
  import re
18
+ import shutil
18
19
  import subprocess
19
20
  import xml.etree.ElementTree as ET
20
21
  from pathlib import Path
@@ -303,7 +304,8 @@ def run_maestro(
303
304
  out_dir.mkdir(parents=True, exist_ok=True)
304
305
  junit = out_dir / "maestro-junit.xml"
305
306
  debug = out_dir / "maestro-debug"
306
- args = [*command, *(["--device", device] if device else []), "test", "--format", "junit", "--output", str(junit), "--debug-output", str(debug), *flows]
307
+ resolved = shutil.which(command[0]) or command[0]
308
+ args = [resolved, *command[1:], *(["--device", device] if device else []), "test", "--format", "junit", "--output", str(junit), "--debug-output", str(debug), *flows]
307
309
  try:
308
310
  proc = run(args, env=dict(env), capture_output=True, text=True, timeout=timeout, shell=False)
309
311
  except FileNotFoundError: