testdriverai 7.6.0-test.2 → 7.6.0-test.4
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 +13 -0
- package/agent/index.js +2 -0
- package/channel.json +2 -2
- package/interfaces/cli/commands/init.js +1 -1
- package/lib/core/Dashcam.js +6 -0
- package/package.json +1 -1
- package/sdk.js +2 -1
package/CHANGELOG.md
CHANGED
|
@@ -1,3 +1,16 @@
|
|
|
1
|
+
## 7.6.0-test.4 (2026-03-12)
|
|
2
|
+
|
|
3
|
+
## 🔧 Maintenance
|
|
4
|
+
|
|
5
|
+
- Improve release workflow and deployment configuration [SDK] (eeea7649)
|
|
6
|
+
- Add enhanced web analytics tracking for better user insights [SDK] (eeea7649)
|
|
7
|
+
|
|
8
|
+
## 7.6.0-test.3 (2026-03-12)
|
|
9
|
+
|
|
10
|
+
## 🔧 Maintenance
|
|
11
|
+
|
|
12
|
+
- Improve release workflow automation and package promotion process [bb6be95]
|
|
13
|
+
|
|
1
14
|
## 7.6.0-test.2 (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://
|
|
6
|
-
"canary": "https://
|
|
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("
|
|
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
|
package/lib/core/Dashcam.js
CHANGED
|
@@ -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
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 ||
|
|
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,
|