@mycadet/credential-executor 0.12.11 → 0.13.0-dev.202610171617.9ea363e
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.
|
@@ -28,10 +28,10 @@ describe("tunnelHostForCloudHost", () => {
|
|
|
28
28
|
|
|
29
29
|
test("maps env-prefixed platform hosts to their env tunnel", () => {
|
|
30
30
|
expect(tunnelHostForCloudHost("staging-cloud.mycadet.ai")).toBe(
|
|
31
|
-
"tunnel
|
|
31
|
+
"staging-tunnel.mycadet.ai",
|
|
32
32
|
);
|
|
33
33
|
expect(tunnelHostForCloudHost("dev-cloud.mycadet.ai")).toBe(
|
|
34
|
-
"tunnel
|
|
34
|
+
"dev-tunnel.mycadet.ai",
|
|
35
35
|
);
|
|
36
36
|
});
|
|
37
37
|
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
/**
|
|
2
2
|
* Map a Cadet Cloud host onto its environment's tunnel host, following the
|
|
3
3
|
* deployment naming convention (`cloud.mycadet.ai` → `tunnel.mycadet.ai`,
|
|
4
|
-
* `{env}-cloud.mycadet.ai` → `
|
|
4
|
+
* `{env}-cloud.mycadet.ai` → `{env}-tunnel.mycadet.ai`). Returns null for
|
|
5
5
|
* hosts outside that convention (localhost, custom domains). Shared by the
|
|
6
6
|
* gateway speech relay and the web live-voice client so the two ends of the
|
|
7
7
|
* cloud-speech transport can't drift.
|
|
@@ -11,7 +11,7 @@ export function tunnelHostForCloudHost(host: string): string | null {
|
|
|
11
11
|
return "tunnel.mycadet.ai";
|
|
12
12
|
}
|
|
13
13
|
const match = /^([a-z0-9-]+)-cloud\.mycadet\.ai$/.exec(host);
|
|
14
|
-
return match ?
|
|
14
|
+
return match ? `${match[1]}-tunnel.mycadet.ai` : null;
|
|
15
15
|
}
|
|
16
16
|
|
|
17
17
|
export function normalizePublicBaseUrl(value: unknown): string | undefined {
|
package/package.json
CHANGED
|
@@ -1,6 +1,10 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@mycadet/credential-executor",
|
|
3
|
-
"version": "0.
|
|
3
|
+
"version": "0.13.0-dev.202610171617.9ea363e",
|
|
4
|
+
"repository": {
|
|
5
|
+
"type": "git",
|
|
6
|
+
"url": "git+https://github.com/vargasjr-dev/mycadet-temp.git"
|
|
7
|
+
},
|
|
4
8
|
"license": "MIT",
|
|
5
9
|
"type": "module",
|
|
6
10
|
"exports": {
|