Run daemon on packaged Bare runtime
This commit is contained in:
+2
-1
@@ -75,7 +75,7 @@ export class JarvisDaemon extends EventEmitter {
|
||||
async close() { clearInterval(this._idleTimer); clearInterval(this._telemetryTimer); this.computerRevoke(); this.recovery.save({ state: 'ARMED', mode: this.mode }); await this.voiceLoop?.stop?.(); await this.harness.close(); }
|
||||
}
|
||||
|
||||
if (import.meta.url === `file://${process.argv[1]}`) {
|
||||
export async function startDaemon() {
|
||||
const daemon = new JarvisDaemon();
|
||||
daemon.startVoice().catch((error) => console.error(`jarvisd: voice unavailable: ${error.message}`));
|
||||
import('./dbus-service.js').then(({ serveOnSessionBus }) => serveOnSessionBus(daemon)).catch((error) => {
|
||||
@@ -84,4 +84,5 @@ if (import.meta.url === `file://${process.argv[1]}`) {
|
||||
});
|
||||
process.on('SIGINT', () => daemon.close().finally(() => process.exit(0)));
|
||||
console.log('jarvisd ready; QVAC inference remains GPU-gated');
|
||||
return daemon;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user