@testdriverai/agent 7.8.0-test.69 → 7.8.0-test.71
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/agent/lib/sandbox.js
CHANGED
|
@@ -733,7 +733,7 @@ const createSandbox = function (emitter, analytics, sessionInstance) {
|
|
|
733
733
|
var self = this;
|
|
734
734
|
if (reply.agent && this._sessionChannel) {
|
|
735
735
|
logger.log('Waiting for runner agent to signal readiness (direct connection)...');
|
|
736
|
-
var readyTimeout =
|
|
736
|
+
var readyTimeout = 60000 * 5;
|
|
737
737
|
await new Promise(function (resolve, reject) {
|
|
738
738
|
var resolved = false;
|
|
739
739
|
var waitStart = Date.now();
|
|
@@ -1294,7 +1294,8 @@ const createSandbox = function (emitter, analytics, sessionInstance) {
|
|
|
1294
1294
|
"Write-Host '=== Done ==='",
|
|
1295
1295
|
],
|
|
1296
1296
|
});
|
|
1297
|
-
const
|
|
1297
|
+
const { randomUUID } = require('crypto');
|
|
1298
|
+
const tmpFile = join(tmpdir(), 'td-provision-' + randomUUID() + '.json');
|
|
1298
1299
|
writeFileSync(tmpFile, paramsJson);
|
|
1299
1300
|
|
|
1300
1301
|
try {
|
package/lib/init-project.js
CHANGED
|
@@ -324,11 +324,9 @@ jobs:
|
|
|
324
324
|
[
|
|
325
325
|
"--yes",
|
|
326
326
|
"add-mcp",
|
|
327
|
+
"testdriverai",
|
|
328
|
+
"-n",
|
|
327
329
|
"testdriver",
|
|
328
|
-
"--command",
|
|
329
|
-
"npx -p testdriverai testdriverai-mcp",
|
|
330
|
-
"--env",
|
|
331
|
-
"TD_API_KEY",
|
|
332
330
|
],
|
|
333
331
|
{
|
|
334
332
|
cwd: targetDir,
|
|
@@ -340,10 +338,10 @@ jobs:
|
|
|
340
338
|
if (addMcpResult.status === 0) {
|
|
341
339
|
progress("✓ MCP configured via add-mcp");
|
|
342
340
|
} else if (addMcpResult.status !== null) {
|
|
343
|
-
progress("⚠ MCP setup skipped or failed - you can run 'npx add-mcp
|
|
341
|
+
progress("⚠ MCP setup skipped or failed - you can run 'npx add-mcp testdriverai' later");
|
|
344
342
|
}
|
|
345
343
|
} catch (err) {
|
|
346
|
-
progress("⚠ Could not run add-mcp - you can run 'npx add-mcp
|
|
344
|
+
progress("⚠ Could not run add-mcp - you can run 'npx add-mcp testdriverai' later");
|
|
347
345
|
}
|
|
348
346
|
}
|
|
349
347
|
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { describe, expect, it } from "vitest";
|
|
2
2
|
import { TestDriver } from "../lib/vitest/hooks.mjs";
|
|
3
|
-
import { getDefaults } from "
|
|
3
|
+
import { getDefaults } from "../examples/config.mjs";
|
|
4
4
|
|
|
5
5
|
describe("Exec Log Streaming", () => {
|
|
6
6
|
it("should stream exec logs every second for 20 seconds", async (context) => {
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@testdriverai/agent",
|
|
3
|
-
"version": "7.8.0-test.
|
|
3
|
+
"version": "7.8.0-test.71",
|
|
4
4
|
"description": "Next generation autonomous AI agent for end-to-end testing of web & desktop",
|
|
5
5
|
"main": "sdk.js",
|
|
6
6
|
"types": "sdk.d.ts",
|
|
@@ -116,6 +116,7 @@
|
|
|
116
116
|
},
|
|
117
117
|
"overrides": {
|
|
118
118
|
"glob": "^11.0.1",
|
|
119
|
+
"obug": "2.1.0",
|
|
119
120
|
"rimraf": "^5.0.10"
|
|
120
121
|
},
|
|
121
122
|
"peerDependencies": {
|