mirror of
https://github.com/bilawalsidhu/gods-eye-view.git
synced 2026-11-19 01:32:19 +00:00
Merge main through #1495 into the renderer seam
Brings in radio country coverage (#1206), the restored format scope (#1527), the zoom-out guard (#1522), voice geometry and OSM places (#846) and paired traffic flow density (#1495). What main added that reached Cesium or the viewer now goes through the renderer: - The zoom-out guard reads the Cesium camera controller's own input, so it moves into the adapter (src/render/cesium/zoomOutGuard.js). The application installs it through the scene's viewer hooks, and a scene whose renderer gives no guard starts without one. - OSM places draws its points as a draw set, clamped to the ground. - The voice area actions read the view box and the view centre from the camera port. - The voice workflow harness is test support, named as such where the recent-imagery doubles are.
This commit is contained in:
commit
fd42fc0afd
136 files changed
+17399
-1120
No files matched your search
@@ -909,6 +909,42 @@ test('Radio handoff waits for response.done so later multi-intent tools execute
|
||||
]);
|
||||
});
|
||||
|
||||
test('Realtime gives analyst siblings one authority group and a newer response a new group', async () => {
|
||||
const groups = [];
|
||||
const ui = createTestVoiceUi();
|
||||
const controller = new GevRealtimeController({
|
||||
ui,
|
||||
runner: async (name, _args, options) => {
|
||||
groups.push([name, options.authorityGroup]);
|
||||
return { ok: true, action: name, count: 0, items: [] };
|
||||
},
|
||||
});
|
||||
controller.debugLog = () => {};
|
||||
controller.sendVisualContextIfUseful = async () => false;
|
||||
controller.dc = { readyState: 'open', send() {}, close() {} };
|
||||
const event = (payload) => ({ data: JSON.stringify(payload) });
|
||||
for (const [responseId, callId] of [
|
||||
['response-1', 'analyst-a'],
|
||||
['response-1', 'analyst-b'],
|
||||
['response-2', 'analyst-c'],
|
||||
]) {
|
||||
await controller.handleRealtimeEvent(
|
||||
event({
|
||||
type: 'response.function_call_arguments.done',
|
||||
response_id: responseId,
|
||||
call_id: callId,
|
||||
name: 'analyst_query',
|
||||
arguments: '{"layers":["flights"],"scope":{"kind":"anywhere"}}',
|
||||
}),
|
||||
);
|
||||
}
|
||||
assert.deepEqual(groups, [
|
||||
['analyst_query', 'response-1'],
|
||||
['analyst_query', 'response-1'],
|
||||
['analyst_query', 'response-2'],
|
||||
]);
|
||||
});
|
||||
|
||||
test('Radio playback failure leaves voice connected and speaks a correction', async () => {
|
||||
const sent = [];
|
||||
const order = [];
|
||||
|
||||
Reference in new issue
Block a user