@adea-ai/spatial-protocol 0.14.1 → 0.15.1
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/scene-spawn.js +1 -1
- package/dist/telemetry.js +2 -2
- package/package.json +2 -2
- package/src/scene-spawn.ts +1 -1
- package/src/telemetry.ts +2 -2
package/dist/scene-spawn.js
CHANGED
|
@@ -53,7 +53,7 @@ export function readSceneStartPosition(value) {
|
|
|
53
53
|
};
|
|
54
54
|
}
|
|
55
55
|
function configuredAppBase(app) {
|
|
56
|
-
const configured = app === 'world' ? process.env.
|
|
56
|
+
const configured = app === 'world' ? process.env.ADEA_PUBLIC_WORLD_URL : process.env.ADEA_PUBLIC_HQ_URL;
|
|
57
57
|
return configured?.trim() || undefined;
|
|
58
58
|
}
|
|
59
59
|
function isDevelopmentHost(hostname) {
|
package/dist/telemetry.js
CHANGED
|
@@ -58,11 +58,11 @@ export function recordNavigation(url, type, startTime) {
|
|
|
58
58
|
try {
|
|
59
59
|
const navigation = performance.getEntriesByType('navigation')[0];
|
|
60
60
|
recordNavigation(window.location.href, 'navigate', navigation?.startTime ?? 0);
|
|
61
|
-
const endpoint = process.env.
|
|
61
|
+
const endpoint = process.env.ADEA_PUBLIC_SCENE_TELEMETRY_ENDPOINT ||
|
|
62
62
|
(process.env.NODE_ENV === 'production' ? '/api/telemetry/scene-performance' : undefined);
|
|
63
63
|
if (endpoint)
|
|
64
64
|
window.__ADEA_SCENE_TELEMETRY_ENDPOINT__ = endpoint;
|
|
65
|
-
const release = process.env.
|
|
65
|
+
const release = process.env.ADEA_PUBLIC_DEPLOY_GIT_COMMIT_SHA;
|
|
66
66
|
if (release)
|
|
67
67
|
window.__ADEA_RELEASE__ = release;
|
|
68
68
|
}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@adea-ai/spatial-protocol",
|
|
3
|
-
"version": "0.
|
|
3
|
+
"version": "0.15.1",
|
|
4
4
|
"description": "Shell↔engine contract for the Adea spatial view: scene mount manifests, spawn URL helpers, and scene telemetry schemas. Pure types — no rendering, no binaries.",
|
|
5
5
|
"keywords": [
|
|
6
6
|
"manifest",
|
|
@@ -42,6 +42,6 @@
|
|
|
42
42
|
"typecheck": "tsc -p tsconfig.json --noEmit"
|
|
43
43
|
},
|
|
44
44
|
"dependencies": {
|
|
45
|
-
"@adea-ai/asset-manifests": "^0.
|
|
45
|
+
"@adea-ai/asset-manifests": "^0.15.1"
|
|
46
46
|
}
|
|
47
47
|
}
|
package/src/scene-spawn.ts
CHANGED
|
@@ -59,7 +59,7 @@ export function readSceneStartPosition(
|
|
|
59
59
|
|
|
60
60
|
function configuredAppBase(app: SceneApp): string | undefined {
|
|
61
61
|
const configured =
|
|
62
|
-
app === 'world' ? process.env.
|
|
62
|
+
app === 'world' ? process.env.ADEA_PUBLIC_WORLD_URL : process.env.ADEA_PUBLIC_HQ_URL
|
|
63
63
|
return configured?.trim() || undefined
|
|
64
64
|
}
|
|
65
65
|
|
package/src/telemetry.ts
CHANGED
|
@@ -181,10 +181,10 @@ try {
|
|
|
181
181
|
| undefined
|
|
182
182
|
recordNavigation(window.location.href, 'navigate', navigation?.startTime ?? 0)
|
|
183
183
|
const endpoint =
|
|
184
|
-
process.env.
|
|
184
|
+
process.env.ADEA_PUBLIC_SCENE_TELEMETRY_ENDPOINT ||
|
|
185
185
|
(process.env.NODE_ENV === 'production' ? '/api/telemetry/scene-performance' : undefined)
|
|
186
186
|
if (endpoint) window.__ADEA_SCENE_TELEMETRY_ENDPOINT__ = endpoint
|
|
187
|
-
const release = process.env.
|
|
187
|
+
const release = process.env.ADEA_PUBLIC_DEPLOY_GIT_COMMIT_SHA
|
|
188
188
|
if (release) window.__ADEA_RELEASE__ = release
|
|
189
189
|
} catch {
|
|
190
190
|
// Telemetry must never interfere with page initialization.
|