@vostride/agent-qa-dashboard 0.1.9 → 0.1.10

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.
@@ -1,4 +1,4 @@
1
- export { f as createRouter, r as readJsonBody, s as startServer } from '../index-CmNQ5PbF.cjs';
1
+ export { f as createRouter, r as readJsonBody, s as startServer } from '../index-qDoSzi3O.cjs';
2
2
  import 'node:http';
3
3
  import '@vostride/agent-qa-core';
4
4
  import '@vostride/agent-qa-mcp';
@@ -1,4 +1,4 @@
1
- export { f as createRouter, r as readJsonBody, s as startServer } from '../index-CmNQ5PbF.js';
1
+ export { f as createRouter, r as readJsonBody, s as startServer } from '../index-qDoSzi3O.js';
2
2
  import 'node:http';
3
3
  import '@vostride/agent-qa-core';
4
4
  import '@vostride/agent-qa-mcp';
@@ -5671,6 +5671,10 @@ var ConfigManager = class {
5671
5671
  // src/execution/appium-manager.ts
5672
5672
  import { request } from "http";
5673
5673
  import { spawn as spawn2 } from "child_process";
5674
+ import {
5675
+ formatAppiumInstallGuidance,
5676
+ resolveAppiumExecutable
5677
+ } from "@vostride/agent-qa-core";
5674
5678
  import treeKill2 from "tree-kill";
5675
5679
  import pc from "picocolors";
5676
5680
  var APPIUM_PREFIX = pc.magenta("[appium]");
@@ -5685,11 +5689,13 @@ var AppiumManager = class {
5685
5689
  anonymousRefCount = 0;
5686
5690
  leases = /* @__PURE__ */ new Map();
5687
5691
  logLevel;
5692
+ appiumResolver;
5688
5693
  constructor(opts) {
5689
5694
  this.port = opts?.port ?? 4723;
5690
5695
  this.startupTimeoutMs = opts?.startupTimeoutMs ?? 3e4;
5691
5696
  this.pollIntervalMs = opts?.pollIntervalMs ?? 500;
5692
5697
  this.logLevel = opts?.logLevel ?? "normal";
5698
+ this.appiumResolver = opts?.appiumResolver ?? resolveAppiumExecutable;
5693
5699
  }
5694
5700
  async acquire() {
5695
5701
  await this.ensureRunning();
@@ -5784,14 +5790,15 @@ var AppiumManager = class {
5784
5790
  });
5785
5791
  }
5786
5792
  async startAndWait() {
5787
- const child = spawn2("appium", ["-p", String(this.port), "--relaxed-security", "--log-no-colors"], {
5793
+ const appium = this.appiumResolver();
5794
+ const child = spawn2(appium.command, ["-p", String(this.port), "--relaxed-security", "--log-no-colors"], {
5788
5795
  stdio: ["ignore", "pipe", "pipe"]
5789
5796
  });
5790
5797
  this.process = child;
5791
5798
  this.managed = true;
5792
5799
  child.on("error", (err) => {
5793
5800
  if (err.code === "ENOENT") {
5794
- console.error(`${APPIUM_PREFIX} Appium not found. Run \`npm install -g appium\` to install it.`);
5801
+ console.error(`${APPIUM_PREFIX} Appium not found. ${formatAppiumInstallGuidance()}`);
5795
5802
  } else {
5796
5803
  console.error(`${APPIUM_PREFIX} Error: ${err.message}`);
5797
5804
  }