testdriverai 7.6.0-test.3 → 7.6.0-test.5

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/CHANGELOG.md CHANGED
@@ -1,3 +1,16 @@
1
+ ## 7.6.0-test.5 (2026-03-12)
2
+
3
+ ## 🔧 Maintenance
4
+
5
+ - Update SDK channel configuration [SDK] (274fff79)
6
+
7
+ ## 7.6.0-test.4 (2026-03-12)
8
+
9
+ ## 🔧 Maintenance
10
+
11
+ - Improve release workflow and deployment configuration [SDK] (eeea7649)
12
+ - Add enhanced web analytics tracking for better user insights [SDK] (eeea7649)
13
+
1
14
  ## 7.6.0-test.3 (2026-03-12)
2
15
 
3
16
  ## 🔧 Maintenance
package/agent/index.js CHANGED
@@ -1944,6 +1944,8 @@ ${regression}
1944
1944
  const mapping = {
1945
1945
  "https://api.testdriver.ai": "https://console.testdriver.ai",
1946
1946
  "https://v6.testdriver.ai": "https://console.testdriver.ai",
1947
+ "https://api.canary.testdriver.ai": "https://console.canary.testdriver.ai",
1948
+ "https://api.test.testdriver.ai": "https://console.test.testdriver.ai",
1947
1949
  };
1948
1950
  if (mapping[apiRoot]) return mapping[apiRoot];
1949
1951
  // Local dev: API on localhost:1337 -> Web on localhost:3001
package/channel.json CHANGED
@@ -2,8 +2,8 @@
2
2
  "active": "test",
3
3
  "channels": {
4
4
  "dev": "http://localhost:1337",
5
- "test": "https://test-api-5rtk.onrender.com",
6
- "canary": "https://canary-api-vpnz.onrender.com",
5
+ "test": "https://api.test.testdriver.ai",
6
+ "canary": "https://api.canary.testdriver.ai",
7
7
  "latest": "https://api.testdriver.ai"
8
8
  }
9
9
  }
@@ -12,7 +12,7 @@ const { execSync } = require("child_process");
12
12
  require("dotenv").config();
13
13
 
14
14
  // API configuration
15
- const channelConfig = require("../../../../channel.json");
15
+ const channelConfig = require("../../../channel.json");
16
16
  const API_BASE_URL = process.env.TD_API_ROOT || channelConfig.channels[channelConfig.active];
17
17
  const POLL_INTERVAL = 5000; // 5 seconds
18
18
  const POLL_TIMEOUT = 900000; // 15 minutes
@@ -98,6 +98,12 @@ class Dashcam {
98
98
 
99
99
  if (!apiRoot) return "https://console.testdriver.ai";
100
100
 
101
+ // Subdomain-based environments: api.{env}.testdriver.ai -> console.{env}.testdriver.ai
102
+ const subdomainMatch = apiRoot.match(/^https:\/\/api\.(test|canary)\.testdriver\.ai/);
103
+ if (subdomainMatch) {
104
+ return `https://console.${subdomainMatch[1]}.testdriver.ai`;
105
+ }
106
+
101
107
  // Production: API on render.com or v6 -> Console on testdriver.ai
102
108
  if (
103
109
  apiRoot.includes("api.testdriver.ai") ||
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "testdriverai",
3
- "version": "7.6.0-test.3",
3
+ "version": "7.6.0-test.5",
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",
package/sdk.js CHANGED
@@ -1438,9 +1438,10 @@ class TestDriverSDK {
1438
1438
  }
1439
1439
 
1440
1440
  // Set up environment with API key
1441
+ const channelConfig = require("./channel.json");
1441
1442
  const environment = {
1442
1443
  TD_API_KEY: resolvedApiKey,
1443
- TD_API_ROOT: options.apiRoot || "https://api.testdriver.ai",
1444
+ TD_API_ROOT: options.apiRoot || process.env.TD_API_ROOT || channelConfig.channels[channelConfig.active],
1444
1445
  TD_RESOLUTION: options.resolution || "1366x768",
1445
1446
  TD_ANALYTICS: options.analytics !== false,
1446
1447
  TD_PREVIEW: previewMode,