@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/index.d.cts
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { D as DashboardDatabase } from './index-
|
|
2
|
-
export { A as AppiumManager, C as ConfigManager, L as LiveExecutionEvent, R as RunRow, S as StepRow, T as TestFileInfo, a as TestFileManager, b as TestRunHandle, c as TestRunner, d as TestValidationError, e as TestValidationResult, f as createRouter, r as readJsonBody, s as startServer } from './index-
|
|
1
|
+
import { D as DashboardDatabase } from './index-qDoSzi3O.cjs';
|
|
2
|
+
export { A as AppiumManager, C as ConfigManager, L as LiveExecutionEvent, R as RunRow, S as StepRow, T as TestFileInfo, a as TestFileManager, b as TestRunHandle, c as TestRunner, d as TestValidationError, e as TestValidationResult, f as createRouter, r as readJsonBody, s as startServer } from './index-qDoSzi3O.cjs';
|
|
3
3
|
import { Reporter, SecretRedactor, SuiteDefinition, RunArtifactReporterContext, SuiteSummary, TestDefinition, StepResult, TestResult, RunSummary, HookResultEvent } from '@vostride/agent-qa-core';
|
|
4
4
|
import 'node:http';
|
|
5
5
|
import '@vostride/agent-qa-mcp';
|
package/dist/index.d.ts
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { D as DashboardDatabase } from './index-
|
|
2
|
-
export { A as AppiumManager, C as ConfigManager, L as LiveExecutionEvent, R as RunRow, S as StepRow, T as TestFileInfo, a as TestFileManager, b as TestRunHandle, c as TestRunner, d as TestValidationError, e as TestValidationResult, f as createRouter, r as readJsonBody, s as startServer } from './index-
|
|
1
|
+
import { D as DashboardDatabase } from './index-qDoSzi3O.js';
|
|
2
|
+
export { A as AppiumManager, C as ConfigManager, L as LiveExecutionEvent, R as RunRow, S as StepRow, T as TestFileInfo, a as TestFileManager, b as TestRunHandle, c as TestRunner, d as TestValidationError, e as TestValidationResult, f as createRouter, r as readJsonBody, s as startServer } from './index-qDoSzi3O.js';
|
|
3
3
|
import { Reporter, SecretRedactor, SuiteDefinition, RunArtifactReporterContext, SuiteSummary, TestDefinition, StepResult, TestResult, RunSummary, HookResultEvent } from '@vostride/agent-qa-core';
|
|
4
4
|
import 'node:http';
|
|
5
5
|
import '@vostride/agent-qa-mcp';
|
package/dist/index.js
CHANGED
|
@@ -8276,6 +8276,10 @@ var ConfigManager = class {
|
|
|
8276
8276
|
// src/execution/appium-manager.ts
|
|
8277
8277
|
import { request } from "http";
|
|
8278
8278
|
import { spawn as spawn2 } from "child_process";
|
|
8279
|
+
import {
|
|
8280
|
+
formatAppiumInstallGuidance,
|
|
8281
|
+
resolveAppiumExecutable
|
|
8282
|
+
} from "@vostride/agent-qa-core";
|
|
8279
8283
|
import treeKill2 from "tree-kill";
|
|
8280
8284
|
import pc from "picocolors";
|
|
8281
8285
|
var APPIUM_PREFIX = pc.magenta("[appium]");
|
|
@@ -8290,11 +8294,13 @@ var AppiumManager = class {
|
|
|
8290
8294
|
anonymousRefCount = 0;
|
|
8291
8295
|
leases = /* @__PURE__ */ new Map();
|
|
8292
8296
|
logLevel;
|
|
8297
|
+
appiumResolver;
|
|
8293
8298
|
constructor(opts) {
|
|
8294
8299
|
this.port = opts?.port ?? 4723;
|
|
8295
8300
|
this.startupTimeoutMs = opts?.startupTimeoutMs ?? 3e4;
|
|
8296
8301
|
this.pollIntervalMs = opts?.pollIntervalMs ?? 500;
|
|
8297
8302
|
this.logLevel = opts?.logLevel ?? "normal";
|
|
8303
|
+
this.appiumResolver = opts?.appiumResolver ?? resolveAppiumExecutable;
|
|
8298
8304
|
}
|
|
8299
8305
|
async acquire() {
|
|
8300
8306
|
await this.ensureRunning();
|
|
@@ -8389,14 +8395,15 @@ var AppiumManager = class {
|
|
|
8389
8395
|
});
|
|
8390
8396
|
}
|
|
8391
8397
|
async startAndWait() {
|
|
8392
|
-
const
|
|
8398
|
+
const appium = this.appiumResolver();
|
|
8399
|
+
const child = spawn2(appium.command, ["-p", String(this.port), "--relaxed-security", "--log-no-colors"], {
|
|
8393
8400
|
stdio: ["ignore", "pipe", "pipe"]
|
|
8394
8401
|
});
|
|
8395
8402
|
this.process = child;
|
|
8396
8403
|
this.managed = true;
|
|
8397
8404
|
child.on("error", (err) => {
|
|
8398
8405
|
if (err.code === "ENOENT") {
|
|
8399
|
-
console.error(`${APPIUM_PREFIX} Appium not found.
|
|
8406
|
+
console.error(`${APPIUM_PREFIX} Appium not found. ${formatAppiumInstallGuidance()}`);
|
|
8400
8407
|
} else {
|
|
8401
8408
|
console.error(`${APPIUM_PREFIX} Error: ${err.message}`);
|
|
8402
8409
|
}
|