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.

933 B
Raw Blame
import { readFileSync } from 'node:fs';
import { resolve } from 'node:path';
import { describe, expect, it } from 'vitest';

const modulesDir = resolve(__dirname, '../../src/renderer/modules');

describe('open-source core error observability boundary', () => {
  it('keeps resolved IPC failures on the durable local log boundary', () => {
    const ipcSource = readFileSync(resolve(__dirname, '../../src/main/ipc/index.ts'), 'utf8');
    expect(ipcSource).toContain('logInvokeResultFailure(channel, result)');
    expect(ipcSource).toMatch(/result\.ok === false[\s\S]*logInvokeResultFailure\(channel, result\)/);
  });

  it('does not ship internal renderer telemetry error reporters', () => {
    for (const name of ['search.js', 'agents.js', 'skills.js', 'marketplace.js']) {
      const source = readFileSync(resolve(modulesDir, name), 'utf8');
      expect(source).not.toContain(['Monitor', 'error('].join('.'));
    }
  });
});