4runr-os 1.3.8 → 1.3.9
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/ui/v3/config/gateway.d.ts +9 -3
- package/dist/ui/v3/config/gateway.d.ts.map +1 -1
- package/dist/ui/v3/config/gateway.js +9 -3
- package/dist/ui/v3/config/gateway.js.map +1 -1
- package/dist/ui/v3/v1Adapters/runs.d.ts.map +1 -1
- package/dist/ui/v3/v1Adapters/runs.js +4 -1
- package/dist/ui/v3/v1Adapters/runs.js.map +1 -1
- package/package.json +1 -1
|
@@ -4,7 +4,10 @@
|
|
|
4
4
|
* Single source of truth for the platform Gateway endpoint.
|
|
5
5
|
* This is the only place the endpoint URL should be defined.
|
|
6
6
|
*
|
|
7
|
-
* DEFAULT_GATEWAY_URL = http://
|
|
7
|
+
* DEFAULT_GATEWAY_URL = http://172.31.29.99:3001
|
|
8
|
+
*
|
|
9
|
+
* Uses private EC2 IP because CLI may run in different network namespace.
|
|
10
|
+
* 127.0.0.1 inside CLI ≠ host 127.0.0.1 (expected behavior, not a bug).
|
|
8
11
|
*
|
|
9
12
|
* This is the only Gateway location the OS ever attempts.
|
|
10
13
|
* No discovery, no scanning, no user input, no "connect <url>" UX.
|
|
@@ -14,14 +17,17 @@
|
|
|
14
17
|
/**
|
|
15
18
|
* The canonical Gateway URL.
|
|
16
19
|
* This is the only Gateway location the OS ever attempts.
|
|
20
|
+
*
|
|
21
|
+
* Uses private EC2 IP (172.31.29.99) because CLI may run in isolated
|
|
22
|
+
* network namespace where localhost doesn't resolve to the Gateway host.
|
|
17
23
|
*/
|
|
18
|
-
export declare const DEFAULT_GATEWAY_URL = "http://
|
|
24
|
+
export declare const DEFAULT_GATEWAY_URL = "http://172.31.29.99:3001";
|
|
19
25
|
/**
|
|
20
26
|
* Resolve the Gateway URL.
|
|
21
27
|
*
|
|
22
28
|
* Priority:
|
|
23
29
|
* 1. GATEWAY_URL environment variable (if set - allows override for development)
|
|
24
|
-
* 2. DEFAULT_GATEWAY_URL (http://
|
|
30
|
+
* 2. DEFAULT_GATEWAY_URL (http://172.31.29.99:3001)
|
|
25
31
|
*
|
|
26
32
|
* No other logic anywhere.
|
|
27
33
|
* UI code must never read env vars directly.
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"gateway.d.ts","sourceRoot":"","sources":["../../../../src/ui/v3/config/gateway.ts"],"names":[],"mappings":"AAAA
|
|
1
|
+
{"version":3,"file":"gateway.d.ts","sourceRoot":"","sources":["../../../../src/ui/v3/config/gateway.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;;GAeG;AAEH;;;;;;GAMG;AACH,eAAO,MAAM,mBAAmB,6BAA6B,CAAC;AAE9D;;;;;;;;;;GAUG;AACH,wBAAgB,iBAAiB,IAAI,MAAM,CAE1C;AAGD,wBAAgB,2BAA2B,IAAI,MAAM,CAEpD"}
|
|
@@ -4,7 +4,10 @@
|
|
|
4
4
|
* Single source of truth for the platform Gateway endpoint.
|
|
5
5
|
* This is the only place the endpoint URL should be defined.
|
|
6
6
|
*
|
|
7
|
-
* DEFAULT_GATEWAY_URL = http://
|
|
7
|
+
* DEFAULT_GATEWAY_URL = http://172.31.29.99:3001
|
|
8
|
+
*
|
|
9
|
+
* Uses private EC2 IP because CLI may run in different network namespace.
|
|
10
|
+
* 127.0.0.1 inside CLI ≠ host 127.0.0.1 (expected behavior, not a bug).
|
|
8
11
|
*
|
|
9
12
|
* This is the only Gateway location the OS ever attempts.
|
|
10
13
|
* No discovery, no scanning, no user input, no "connect <url>" UX.
|
|
@@ -14,14 +17,17 @@
|
|
|
14
17
|
/**
|
|
15
18
|
* The canonical Gateway URL.
|
|
16
19
|
* This is the only Gateway location the OS ever attempts.
|
|
20
|
+
*
|
|
21
|
+
* Uses private EC2 IP (172.31.29.99) because CLI may run in isolated
|
|
22
|
+
* network namespace where localhost doesn't resolve to the Gateway host.
|
|
17
23
|
*/
|
|
18
|
-
export const DEFAULT_GATEWAY_URL = "http://
|
|
24
|
+
export const DEFAULT_GATEWAY_URL = "http://172.31.29.99:3001";
|
|
19
25
|
/**
|
|
20
26
|
* Resolve the Gateway URL.
|
|
21
27
|
*
|
|
22
28
|
* Priority:
|
|
23
29
|
* 1. GATEWAY_URL environment variable (if set - allows override for development)
|
|
24
|
-
* 2. DEFAULT_GATEWAY_URL (http://
|
|
30
|
+
* 2. DEFAULT_GATEWAY_URL (http://172.31.29.99:3001)
|
|
25
31
|
*
|
|
26
32
|
* No other logic anywhere.
|
|
27
33
|
* UI code must never read env vars directly.
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"gateway.js","sourceRoot":"","sources":["../../../../src/ui/v3/config/gateway.ts"],"names":[],"mappings":"AAAA
|
|
1
|
+
{"version":3,"file":"gateway.js","sourceRoot":"","sources":["../../../../src/ui/v3/config/gateway.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;;GAeG;AAEH;;;;;;GAMG;AACH,MAAM,CAAC,MAAM,mBAAmB,GAAG,0BAA0B,CAAC;AAE9D;;;;;;;;;;GAUG;AACH,MAAM,UAAU,iBAAiB;IAC/B,OAAO,OAAO,CAAC,GAAG,CAAC,WAAW,IAAI,mBAAmB,CAAC;AACxD,CAAC;AAED,6CAA6C;AAC7C,MAAM,UAAU,2BAA2B;IACzC,OAAO,iBAAiB,EAAE,CAAC;AAC7B,CAAC"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"runs.d.ts","sourceRoot":"","sources":["../../../../src/ui/v3/v1Adapters/runs.ts"],"names":[],"mappings":"AAAA;;;;;;;GAOG;AAGH,OAAO,KAAK,EAAE,GAAG,EAAE,QAAQ,EAAE,MAAM,4BAA4B,CAAC;
|
|
1
|
+
{"version":3,"file":"runs.d.ts","sourceRoot":"","sources":["../../../../src/ui/v3/v1Adapters/runs.ts"],"names":[],"mappings":"AAAA;;;;;;;GAOG;AAGH,OAAO,KAAK,EAAE,GAAG,EAAE,QAAQ,EAA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}
|
|
8
8
|
*/
|
|
9
9
|
import { GatewayClient } from '../../../gateway-client.js';
|
|
10
|
+
import { resolveGatewayUrl } from '../config/gateway.js';
|
|
10
11
|
/**
|
|
11
12
|
* Create GatewayClient instance
|
|
12
13
|
* Returns null if URL is not provided and not in environment
|
|
14
|
+
* Section 6.2: Uses canonical gateway URL resolution
|
|
13
15
|
*/
|
|
14
16
|
function createClient(gatewayUrl) {
|
|
15
|
-
|
|
17
|
+
// Section 6.2: Use canonical gateway URL resolution
|
|
18
|
+
const url = gatewayUrl || resolveGatewayUrl();
|
|
16
19
|
try {
|
|
17
20
|
return new GatewayClient({ gatewayUrl: url });
|
|
18
21
|
}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"runs.js","sourceRoot":"","sources":["../../../../src/ui/v3/v1Adapters/runs.ts"],"names":[],"mappings":"AAAA;;;;;;;GAOG;AAEH,OAAO,EAAE,aAAa,EAAE,MAAM,4BAA4B,CAAC;
|
|
1
|
+
{"version":3,"file":"runs.js","sourceRoot":"","sources":["../../../../src/ui/v3/v1Adapters/runs.ts"],"names":[],"mappings":"AAAA;;;;;;;GAOG;AAEH,OAAO,EAAE,aAAa,EAAE,MAAM,4BAA4B,CAAC;AAE3D,OAAO,EAAE,iBAAiB,EAAE,MAAM,sBAAsB,CAAC;AAEzD;;;;GAIG;AACH,SAAS,YAAY,CAAC,UAAmB;IACvC,oDAAoD;IACpD,MAAM,GAAG,GAAG,UAAU,IAAI,iBAAiB,EAAE,CAAC;IAC9C,IAAI,CAAC;QACH,OAAO,IAAI,aAAa,CAAC,EAAE,UAAU,EAAE,GAAG,EAAE,CAAC,CAAC;IAChD,CAAC;IAAC,OAAO,KAAK,EAAE,CAAC;QACf,OAAO,IAAI,CAAC;IACd,CAAC;AACH,CAAC;AAED;;GAEG;AACH,MAAM,CAAC,KAAK,UAAU,QAAQ,CAC5B,OAAe,EACf,KAAgB;IAKhB,IAAI,CAAC;QACH,MAAM,MAAM,GAAG,YAAY,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