@trillboards/edge-sdk 0.2.242 → 0.2.244
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/deploy/windows/build-windows.ps1 +17 -1
- package/deploy/windows/ci/test-private-live-view-staging.ps1 +43 -0
- package/deploy/windows/ci/test-stop-existing-processes.ps1 +58 -0
- package/deploy/windows/e2e/test-headless-principal.ps1 +24 -2
- package/deploy/windows/stage-private-live-view.ps1 +59 -0
- package/deploy/windows/stop-existing.ps1 +6 -5
- package/deploy/windows/stop-local-ai.ps1 +4 -0
- package/dist/CctvLiveViewCoordinator.d.ts +123 -0
- package/dist/CctvLiveViewCoordinator.d.ts.map +1 -0
- package/dist/CctvLiveViewCoordinator.js +393 -0
- package/dist/CctvLiveViewCoordinator.js.map +1 -0
- package/dist/EdgeAgent.js +1 -1
- package/dist/LiveViewControlHttp.d.ts +10 -0
- package/dist/LiveViewControlHttp.d.ts.map +1 -0
- package/dist/LiveViewControlHttp.js +84 -0
- package/dist/LiveViewControlHttp.js.map +1 -0
- package/dist/LiveViewOwnedSenderScope.d.ts +38 -0
- package/dist/LiveViewOwnedSenderScope.d.ts.map +1 -0
- package/dist/LiveViewOwnedSenderScope.js +88 -0
- package/dist/LiveViewOwnedSenderScope.js.map +1 -0
- package/dist/LiveViewProducerSignaling.d.ts +37 -0
- package/dist/LiveViewProducerSignaling.d.ts.map +1 -0
- package/dist/LiveViewProducerSignaling.js +97 -0
- package/dist/LiveViewProducerSignaling.js.map +1 -0
- package/dist/LiveViewRelayBootstrap.d.ts +26 -0
- package/dist/LiveViewRelayBootstrap.d.ts.map +1 -0
- package/dist/LiveViewRelayBootstrap.js +85 -0
- package/dist/LiveViewRelayBootstrap.js.map +1 -0
- package/dist/autoSense.d.ts +5 -0
- package/dist/autoSense.d.ts.map +1 -1
- package/dist/autoSense.js +53 -2
- package/dist/autoSense.js.map +1 -1
- package/dist/diagnose.d.ts +1 -1
- package/dist/diagnose.js +1 -1
- package/dist/index.d.ts +2 -0
- package/dist/index.d.ts.map +1 -1
- package/dist/index.js +6 -1
- package/dist/index.js.map +1 -1
- package/dist/sensingRunMode.d.ts +1 -0
- package/dist/sensingRunMode.d.ts.map +1 -1
- package/dist/sensingRunMode.js.map +1 -1
- package/dist/windowsLiveView.d.ts +57 -0
- package/dist/windowsLiveView.d.ts.map +1 -0
- package/dist/windowsLiveView.js +180 -0
- package/dist/windowsLiveView.js.map +1 -0
- package/package.json +2 -2
|
@@ -0,0 +1,180 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.loadInstalledWindowsLiveViewPlatform = loadInstalledWindowsLiveViewPlatform;
|
|
4
|
+
exports.startWindowsLiveView = startWindowsLiveView;
|
|
5
|
+
const node_crypto_1 = require("node:crypto");
|
|
6
|
+
const node_fs_1 = require("node:fs");
|
|
7
|
+
const node_module_1 = require("node:module");
|
|
8
|
+
const node_path_1 = require("node:path");
|
|
9
|
+
const CctvLiveViewCoordinator_1 = require("./CctvLiveViewCoordinator");
|
|
10
|
+
const LiveViewControlHttp_1 = require("./LiveViewControlHttp");
|
|
11
|
+
const LiveViewProducerSignaling_1 = require("./LiveViewProducerSignaling");
|
|
12
|
+
const LiveViewRelayBootstrap_1 = require("./LiveViewRelayBootstrap");
|
|
13
|
+
const LiveViewOwnedSenderScope_1 = require("./LiveViewOwnedSenderScope");
|
|
14
|
+
/** Only installer-staged payloads at this fixed location are eligible. */
|
|
15
|
+
function loadInstalledWindowsLiveViewPlatform(packageRoot = (0, node_path_1.resolve)(__dirname, '..'), monitoringCapture = () => null, dataDir) {
|
|
16
|
+
const directory = (0, node_path_1.join)((0, node_fs_1.realpathSync)(packageRoot), 'live-view');
|
|
17
|
+
const manifest = (0, node_path_1.join)(directory, 'platform.json');
|
|
18
|
+
if (!(0, node_fs_1.existsSync)(manifest))
|
|
19
|
+
return undefined;
|
|
20
|
+
const entry = (0, node_path_1.join)(directory, 'platform.cjs');
|
|
21
|
+
const invalid = () => { throw new Error('Invalid installed Windows live-view platform.'); };
|
|
22
|
+
if ((0, node_fs_1.realpathSync)(directory) !== directory)
|
|
23
|
+
invalid();
|
|
24
|
+
const manifestStat = (0, node_fs_1.lstatSync)(manifest);
|
|
25
|
+
const entryStat = (0, node_fs_1.lstatSync)(entry);
|
|
26
|
+
if (!manifestStat.isFile() || manifestStat.size > 4096 || !entryStat.isFile() || entryStat.size > 256 * 1024)
|
|
27
|
+
invalid();
|
|
28
|
+
const stamp = JSON.parse((0, node_fs_1.readFileSync)(manifest, 'utf8'));
|
|
29
|
+
if (!stamp || stamp.apiVersion !== 1 || stamp.entrySha256 !== (0, node_crypto_1.createHash)('sha256').update((0, node_fs_1.readFileSync)(entry)).digest('hex'))
|
|
30
|
+
invalid();
|
|
31
|
+
const bundle = (0, node_module_1.createRequire)(__filename)(entry);
|
|
32
|
+
if (typeof bundle?.createPlatform !== 'function')
|
|
33
|
+
throw new Error('Invalid installed Windows live-view platform.');
|
|
34
|
+
const platform = bundle.createPlatform({ monitoringCapture, dataDir });
|
|
35
|
+
if (!platform || typeof platform.clock !== 'function' || typeof platform.select !== 'function' ||
|
|
36
|
+
(platform.controlAllowed !== undefined && typeof platform.controlAllowed !== 'function') ||
|
|
37
|
+
(platform.controlBinding !== undefined && typeof platform.controlBinding !== 'function') ||
|
|
38
|
+
(stamp.scope === 'private-one-camera-field' && typeof platform.controlBinding !== 'function') ||
|
|
39
|
+
(stamp.scope === 'public-product' && (platform.controlBinding !== undefined ||
|
|
40
|
+
typeof platform.controlAllowed !== 'function' || typeof platform.requestScreen !== 'function')) ||
|
|
41
|
+
(platform.requestScreen !== undefined && typeof platform.requestScreen !== 'function') ||
|
|
42
|
+
typeof platform.monitoringState !== 'function' || typeof platform.createOwnedResources !== 'function')
|
|
43
|
+
invalid();
|
|
44
|
+
return platform;
|
|
45
|
+
}
|
|
46
|
+
function startWindowsLiveView(config, platform) {
|
|
47
|
+
const clock = () => platform.clock();
|
|
48
|
+
const routeFor = (current) => {
|
|
49
|
+
// The private adapter owns this decision, including refusal. Never fall
|
|
50
|
+
// back to the monitoring endpoint or credential when its scope is missing.
|
|
51
|
+
if (platform.controlBinding)
|
|
52
|
+
return platform.controlBinding(current);
|
|
53
|
+
const key = current.connector?.key;
|
|
54
|
+
return key && platform.controlAllowed?.(current) !== false ?
|
|
55
|
+
{ apiBaseUrl: current.apiBaseUrl, connectorKey: key } : null;
|
|
56
|
+
};
|
|
57
|
+
const bindingFor = (current, route = platform.controlBinding ? routeFor(current) : undefined) => {
|
|
58
|
+
if (!current.connector?.key || route === null)
|
|
59
|
+
return null;
|
|
60
|
+
const selection = platform.select(current);
|
|
61
|
+
const binding = selection && (0, CctvLiveViewCoordinator_1.resolveLiveViewBinding)(current, selection.screenId, selection.qualification, selection.configurationGeneration);
|
|
62
|
+
return binding && route?.revision ? { ...binding, revision: binding.revision + ':' + route.revision } : binding;
|
|
63
|
+
};
|
|
64
|
+
let timer;
|
|
65
|
+
let closing;
|
|
66
|
+
let polling = false;
|
|
67
|
+
let receiptPending = false;
|
|
68
|
+
const schedule = (delayMs) => {
|
|
69
|
+
clearTimeout(timer);
|
|
70
|
+
timer = setTimeout(() => void poll(), delayMs);
|
|
71
|
+
timer.unref?.();
|
|
72
|
+
};
|
|
73
|
+
const coordinator = new CctvLiveViewCoordinator_1.CctvLiveViewCoordinator({
|
|
74
|
+
producerInstanceId: (0, node_crypto_1.randomUUID)(),
|
|
75
|
+
// Report an exact stop receipt as soon as the camera stream is released, so
|
|
76
|
+
// the API frees the slot within the close bar rather than a poll later.
|
|
77
|
+
// One extra poll per release, never a loop: a poll already in flight was
|
|
78
|
+
// built before the release, so the receipt rides the poll right after it.
|
|
79
|
+
released: () => {
|
|
80
|
+
if (closing)
|
|
81
|
+
return;
|
|
82
|
+
if (polling)
|
|
83
|
+
receiptPending = true;
|
|
84
|
+
else
|
|
85
|
+
schedule(0);
|
|
86
|
+
},
|
|
87
|
+
clock,
|
|
88
|
+
binding: () => bindingFor(config()),
|
|
89
|
+
monitoringState: () => platform.monitoringState(),
|
|
90
|
+
control: async (request, context) => {
|
|
91
|
+
const route = routeFor(config());
|
|
92
|
+
if (!route) {
|
|
93
|
+
throw new Error('Live-view computer authorization is unavailable.');
|
|
94
|
+
}
|
|
95
|
+
const endpoint = (0, LiveViewRelayBootstrap_1.liveViewProducerEndpoint)(route.apiBaseUrl);
|
|
96
|
+
const response = await (0, LiveViewControlHttp_1.createLiveViewJsonPost)(endpoint, clock, { authorization: 'Bearer ' + route.connectorKey })(request, context);
|
|
97
|
+
// The coordinator still validates this grant against its own binding. A
|
|
98
|
+
// screen it is not bound to only moves the NEXT readiness poll's binding.
|
|
99
|
+
const desired = response?.control?.desired;
|
|
100
|
+
if (desired?.action === 'view' && typeof desired.screenId === 'string') {
|
|
101
|
+
try {
|
|
102
|
+
platform.requestScreen?.(desired.screenId);
|
|
103
|
+
}
|
|
104
|
+
catch { /* A refused hint never changes authority. */ }
|
|
105
|
+
}
|
|
106
|
+
return response;
|
|
107
|
+
},
|
|
108
|
+
createScope: (owner, packetAllowed, leaseAllowed, terminalFault) => {
|
|
109
|
+
const current = config();
|
|
110
|
+
const route = routeFor(current);
|
|
111
|
+
const binding = bindingFor(current, route);
|
|
112
|
+
const feed = current.cameras?.find(item => item.screenId === owner.binding.screenId);
|
|
113
|
+
if (!route ||
|
|
114
|
+
!feed?.rtspUrl || binding?.revision !== owner.binding.revision ||
|
|
115
|
+
binding.screenId !== owner.binding.screenId || !leaseAllowed()) {
|
|
116
|
+
throw new Error('Live-view camera or grant changed before startup.');
|
|
117
|
+
}
|
|
118
|
+
const stop = new AbortController();
|
|
119
|
+
const bootstrap = (0, LiveViewRelayBootstrap_1.createLiveViewRelayBootstrap)({
|
|
120
|
+
apiBaseUrl: route.apiBaseUrl, connectorKey: route.connectorKey, sessionId: owner.sessionId,
|
|
121
|
+
producerInstanceId: owner.producerInstanceId, clock, leaseAllowed, signal: stop.signal,
|
|
122
|
+
});
|
|
123
|
+
const signaling = (0, LiveViewProducerSignaling_1.createLiveViewProducerSignaling)({
|
|
124
|
+
apiBaseUrl: route.apiBaseUrl, connectorKey: route.connectorKey, sessionId: owner.sessionId,
|
|
125
|
+
producerInstanceId: owner.producerInstanceId, clock, leaseAllowed, signal: stop.signal,
|
|
126
|
+
});
|
|
127
|
+
const resources = platform.createOwnedResources({
|
|
128
|
+
owner, feed, signaling, leaseAllowed, packetAllowed, terminalFault,
|
|
129
|
+
});
|
|
130
|
+
const { child, sender } = resources;
|
|
131
|
+
return new LiveViewOwnedSenderScope_1.LiveViewOwnedSenderScope(child, {
|
|
132
|
+
async start() {
|
|
133
|
+
const connection = await bootstrap();
|
|
134
|
+
if (stop.signal.aborted || !leaseAllowed())
|
|
135
|
+
throw new Error('Live-view sender lease ended.');
|
|
136
|
+
await sender.start(connection);
|
|
137
|
+
},
|
|
138
|
+
fence() {
|
|
139
|
+
try {
|
|
140
|
+
sender.fence();
|
|
141
|
+
}
|
|
142
|
+
finally {
|
|
143
|
+
stop.abort();
|
|
144
|
+
}
|
|
145
|
+
},
|
|
146
|
+
release: () => sender.release(),
|
|
147
|
+
submitH264: (bytes, timestamp) => sender.submitH264(bytes, timestamp),
|
|
148
|
+
}, leaseAllowed, packetAllowed, () => resources.releaseAdmission());
|
|
149
|
+
},
|
|
150
|
+
});
|
|
151
|
+
const close = () => {
|
|
152
|
+
if (closing)
|
|
153
|
+
return closing;
|
|
154
|
+
clearTimeout(timer);
|
|
155
|
+
closing = coordinator.close();
|
|
156
|
+
return closing;
|
|
157
|
+
};
|
|
158
|
+
async function poll() {
|
|
159
|
+
polling = true;
|
|
160
|
+
try {
|
|
161
|
+
await coordinator.pollNow();
|
|
162
|
+
}
|
|
163
|
+
catch {
|
|
164
|
+
polling = false;
|
|
165
|
+
await close().catch(() => { });
|
|
166
|
+
return;
|
|
167
|
+
}
|
|
168
|
+
polling = false;
|
|
169
|
+
if (closing)
|
|
170
|
+
return;
|
|
171
|
+
const fast = receiptPending;
|
|
172
|
+
receiptPending = false;
|
|
173
|
+
// While a view streams, a stop or a lost viewer reaches the camera within a
|
|
174
|
+
// second rather than two (60 polls a minute, inside the API's 90 per key).
|
|
175
|
+
schedule(fast ? 0 : coordinator.status().activeSessionId ? 1000 : 2000);
|
|
176
|
+
}
|
|
177
|
+
void poll();
|
|
178
|
+
return { close };
|
|
179
|
+
}
|
|
180
|
+
//# sourceMappingURL=windowsLiveView.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"windowsLiveView.js","sourceRoot":"","sources":["../src/windowsLiveView.ts"],"names":[],"mappings":";;AAmEA,oFA8BC;AAED,oDAsHC;AAzND,6CAAqD;AACrD,qCAA4E;AAC5E,6CAA4C;AAC5C,yCAA0C;AAE1C,uEAImC;AACnC,+DAA+D;AAC/D,2EAA8G;AAC9G,qEAAgI;AAChI,yEAA+H;AAqD/H,0EAA0E;AAC1E,SAAgB,oCAAoC,CAClD,WAAW,GAAG,IAAA,mBAAO,EAAC,SAAS,EAAE,IAAI,CAAC,EACtC,oBAA4D,GAAG,EAAE,CAAC,IAAI,EACtE,OAAgB;IAEhB,MAAM,SAAS,GAAG,IAAA,gBAAI,EAAC,IAAA,sBAAY,EAAC,WAAW,CAAC,EAAE,WAAW,CAAC,CAAC;IAC/D,MAAM,QAAQ,GAAG,IAAA,gBAAI,EAAC,SAAS,EAAE,eAAe,CAAC,CAAC;IAClD,IAAI,CAAC,IAAA,oBAAU,EAAC,QAAQ,CAAC;QAAE,OAAO,SAAS,CAAC;IAC5C,MAAM,KAAK,GAAG,IAAA,gBAAI,EAAC,SAAS,EAAE,cAAc,CAAC,CAAC;IAC9C,MAAM,OAAO,GAAG,GAAG,EAAE,GAAG,MAAM,IAAI,KAAK,CAAC,+CAA+C,CAAC,CAAC,CAAC,CAAC,CAAC;IAC5F,IAAI,IAAA,sBAAY,EAAC,SAAS,CAAC,KAAK,SAAS;QAAE,OAAO,EAAE,CAAC;IACrD,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I,OAAO;YAAE,OAAO;QACpB,MAAM,IAAI,GAAG,cAAc,CAAC;QAC5B,cAAc,GAAG,KAAK,CAAC;QACvB,4EAA4E;QAC5E,2EAA2E;QAC3E,QAAQ,CAAC,IAAI,CAAC,CAAC,CAAC,CAAC,CAAC,CAAC,CAAC,WAAW,CAAC,MAAM,EAAE,CAAC,eAAe,CAAC,CAAC,CAAC,IAAI,CAAC,CAAC,CAAC,IAAI,CAAC,CAAC;IAC1E,CAAC;IACD,KAAK,IAAI,EAAE,CAAC;IACZ,OAAO,EAAE,KAAK,EAAE,CAAC;AACnB,CAAC"}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@trillboards/edge-sdk",
|
|
3
|
-
"version": "0.2.
|
|
3
|
+
"version": "0.2.244",
|
|
4
4
|
"description": "Composable cross-platform Edge AI SDK for audience sensing on DOOH/CTV devices",
|
|
5
5
|
"main": "dist/index.js",
|
|
6
6
|
"types": "dist/index.d.ts",
|
|
@@ -29,7 +29,7 @@
|
|
|
29
29
|
},
|
|
30
30
|
"optionalDependencies": {
|
|
31
31
|
"@trillboards/edge-platform-linux": "^0.2.0",
|
|
32
|
-
"@trillboards/edge-platform-rtsp": "^0.2.
|
|
32
|
+
"@trillboards/edge-platform-rtsp": "^0.2.19",
|
|
33
33
|
"@trillboards/edge-platform-windows": "^0.2.0"
|
|
34
34
|
},
|
|
35
35
|
"files": [
|