@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.
- package/dist/{index-CmNQ5PbF.d.cts → index-qDoSzi3O.d.cts} +3 -1
- package/dist/{index-CmNQ5PbF.d.ts → index-qDoSzi3O.d.ts} +3 -1
- package/dist/index.cjs +36 -32
- package/dist/index.cjs.map +1 -1
- package/dist/index.d.cts +2 -2
- package/dist/index.d.ts +2 -2
- package/dist/index.js +9 -2
- package/dist/index.js.map +1 -1
- package/dist/server/index.cjs +36 -32
- package/dist/server/index.cjs.map +1 -1
- package/dist/server/index.d.cts +1 -1
- package/dist/server/index.d.ts +1 -1
- package/dist/server/index.js +9 -2
- package/dist/server/index.js.map +1 -1
- package/package.json +7 -7
package/dist/server/index.d.cts
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
export { f as createRouter, r as readJsonBody, s as startServer } from '../index-
|
|
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';
|
package/dist/server/index.d.ts
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
export { f as createRouter, r as readJsonBody, s as startServer } from '../index-
|
|
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';
|
package/dist/server/index.js
CHANGED
|
@@ -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
|
|
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.
|
|
5801
|
+
console.error(`${APPIUM_PREFIX} Appium not found. ${formatAppiumInstallGuidance()}`);
|
|
5795
5802
|
} else {
|
|
5796
5803
|
console.error(`${APPIUM_PREFIX} Error: ${err.message}`);
|
|
5797
5804
|
}
|