mirror of
https://github.com/bilawalsidhu/gods-eye-view.git
synced 2026-11-17 00:32:21 +00:00
Wire Context into the shell
The shell connects the layer store that Context and the omnibar share, installs the click-to-Context bridge and removes both on dispose. Voice sessions hand their command runner to the same store, and the stylesheet imports the Context styles. Co-authored-by: Sameh Khamis <[email protected]>
This commit is contained in:
1 parent
0fe6fd2bb8
commit
c351e66af9
4 files changed
+64
No files matched your search
@@ -1,4 +1,6 @@
|
||||
import { nextTick } from 'vue';
|
||||
import { useOmnibarStore } from '../ui/stores/omnibar.js';
|
||||
import { applicationPinia } from '../ui/vueRuntime.js';
|
||||
import { bindAssistantPanelLayout, bindLayoutDock } from './panelLayout.js';
|
||||
import { bindChatControl } from './chatControl.js';
|
||||
import { bindVoiceMiniPreview } from './voiceMiniPreview.js';
|
||||
@@ -334,5 +336,13 @@ export function createVoiceCommands({
|
||||
if (session.disposed) cleanup();
|
||||
else adapter.bindControls?.();
|
||||
window.__gevVoiceCommands = controls;
|
||||
// The omnibar runs the same actions directly, without a model.
|
||||
const omnibar = useOmnibarStore(applicationPinia());
|
||||
omnibar.connectRunner((name, args) => runner(name, args));
|
||||
session.signal.addEventListener(
|
||||
'abort',
|
||||
() => omnibar.connectRunner(null),
|
||||
{ once: true },
|
||||
);
|
||||
return controls;
|
||||
}
|
||||
Reference in new issue
Block a user