Skip to content

armgit / Orkas

Public Imported from GitHub
0

Orkas is an open-source (MIT), local-first AI team for your desktop: a Commander turns your goal into to-dos and coordinates 16 built-in specialist agents plus Claude Code, Codex, OpenCode, OpenClaw and Hermes, with projects, scheduled automations and connectors. Free app for macOS & Windows; built-in models or your own keys.

1.2 KB
Raw Blame
#!/usr/bin/env node
'use strict';

const { app, BrowserWindow } = require('electron');

const timeout = setTimeout(() => {
  console.error('[linux-electron-smoke] timed out waiting for Electron');
  app.exit(1);
}, 30_000);

app.disableHardwareAcceleration();
app.whenReady().then(async () => {
  const window = new BrowserWindow({
    show: false,
    webPreferences: {
      contextIsolation: true,
      nodeIntegration: false,
      sandbox: true,
    },
  });
  try {
    await window.loadURL('data:text/html;charset=utf-8,%3Cbody%3Eorkas-linux-smoke%3C%2Fbody%3E');
    const text = await window.webContents.executeJavaScript('document.body.textContent');
    if (text !== 'orkas-linux-smoke') throw new Error('hidden BrowserWindow did not render expected content');
    console.log('[linux-electron-smoke] Electron app and hidden BrowserWindow are ready');
    clearTimeout(timeout);
    window.destroy();
    app.quit();
  } catch (err) {
    clearTimeout(timeout);
    window.destroy();
    console.error(`[linux-electron-smoke] failed: ${err.message}`);
    app.exit(1);
  }
}).catch((err) => {
  clearTimeout(timeout);
  console.error(`[linux-electron-smoke] failed: ${err.message}`);
  app.exit(1);
});