@@ -14,7 +14,8 @@ const FAST_COMMANDS = new Map([
|
||||
['privacy mode', 'sleep'], ['repeat that', 'repeat'], ['dictate this', 'dictate'],
|
||||
['look at my screen', 'screen'], ['use the computer', 'computer'], ['take the wheel', 'computer'],
|
||||
['switch to compose', 'compose'], ['switch to imagine', 'imagine'], ['switch to files', 'files'],
|
||||
['switch to computer', 'computer'],
|
||||
['switch to computer', 'computer'], ['use the camera', 'camera'], ['use my webcam', 'camera'],
|
||||
['allow the camera', 'camera'],
|
||||
]);
|
||||
|
||||
export function fastCommand(text) { return FAST_COMMANDS.get(String(text || '').trim().toLowerCase()) || null; }
|
||||
@@ -206,6 +207,7 @@ export class VoiceLoop extends EventEmitter {
|
||||
if (command === 'cancel' || command === 'sleep') { this.daemon?.cancel?.(); if (command === 'sleep') await this.daemon?.sleep?.(); return; }
|
||||
if (command === 'repeat') { this.daemon?.say?.(this.daemon?.lastReply || 'There is nothing to repeat.'); return; }
|
||||
if (command === 'computer') { this.daemon?.computerGrant?.(false); return; }
|
||||
if (command === 'camera') { this.daemon?.webcamGrant?.(); return; }
|
||||
if (command === 'dictate') { this.emit('dictate'); return; }
|
||||
if (command === 'screen') { await this.daemon?.ask?.('What is on my screen?'); return; }
|
||||
await this.daemon?.ask?.(text);
|
||||
|
||||
Reference in New Issue
Block a user