feat(voice): add reusable geometry actions

- turn named places and mapped landmarks into reusable bounded areas
- count loaded records inside resolved, drawn and annotated geometry
- find recent imagery for an area, the view or the pointer snapshot
- keep osm place search behind an operator-configured overpass endpoint
- preserve cancellation, ownership and follow-up memory across every action
- cover geometry, provider lifecycle, cache isolation and voice routing
This commit is contained in:
manjunath22466 committed 2026-10-03 10:23:38 +05:30
1 parent 01979bba1e
commit b234d7b427
84 files changed
+14262 -1681

No files matched your search

+45
View File
@@ -920,6 +920,51 @@ 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 = {
root: {
dataset: {},
classList: { remove() {} },
querySelectorAll: () => [],
},
status: { textContent: '' },
detail: { textContent: '', title: '' },
errorDetail: { textContent: '' },
};
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 = [];