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.

Fix Linux source workflow after OCR removal

wytd12b1f2bf82a
diff --git a/.github/workflows/linux-source-smoke.yml b/.github/workflows/linux-source-smoke.yml
index 9af0ed79..5fde20af 100644
--- a/.github/workflows/linux-source-smoke.yml
+++ b/.github/workflows/linux-source-smoke.yml
@@ -83,6 +83,3 @@ jobs:
- name: Run real Linux local transcription smoke
run: npm run test:linux-whisper
-
- - name: Verify first-use Linux OCR runtime
- run: npm run test:linux-ocr
diff --git a/package.json b/package.json
index 7963f850..142a6c26 100644
--- a/package.json
+++ b/package.json
@@ -40,7 +40,6 @@
"test:windows-native": "node scripts/run-windows-native-tests.mjs",
"test:windows-stability": "node scripts/run-windows-stability-tests.mjs",
"test:linux-source": "node scripts/verify-linux-source-dependencies.cjs --full-embedding --gui",
- "test:linux-ocr": "tsx scripts/verify-linux-ocr-runtime.mjs",
"test:linux-whisper": "ORKAS_REAL_WHISPER_TEST=1 node scripts/run-tests.mjs run --maxWorkers=1 -t \"Linux real bundled whisper transcribes within the performance budget\" test/main/features/video_studio_native_qa.test.ts",
"runtime:ensure": "node bin/ensure-runtime.cjs --root resources/runtime",
"officecli:policy-check": "node bin/officecli-policy-gate.cjs",
diff --git a/src/core-agent/test/process-session.test.ts b/src/core-agent/test/process-session.test.ts
index 66694575..55da8601 100644
--- a/src/core-agent/test/process-session.test.ts
+++ b/src/core-agent/test/process-session.test.ts
@@ -176,6 +176,7 @@ describe("persistent process sessions", () => {
it("uses a portable schema and ignores startup fields on reads", async () => {
const processSession = tool("process_session");
const schema = processSession.inputSchema as any;
+
expect(schema.oneOf).toBeUndefined();
expect(schema.required).toEqual(["action", "session_id"]);
const rejected = await processSession.execute({
diff --git a/src/core-agent/test/project-tasks-tool.test.ts b/src/core-agent/test/project-tasks-tool.test.ts
index da052281..bd12e741 100644
--- a/src/core-agent/test/project-tasks-tool.test.ts
+++ b/src/core-agent/test/project-tasks-tool.test.ts
@@ -61,7 +61,6 @@ describe('todo_tasks tool', () => {
const schema = tool.inputSchema as any;
expect(schema.additionalProperties).toBe(false);
expect(schema.oneOf).toBeUndefined();
- expect(schema.required).toEqual(['action']);
expect(schema.properties.action.description).toContain('Omit unrelated fields');
const result = await tool.execute({ action: 'complete', task_id: 't_9', status: 'done' }, ctx);
diff --git a/test/main/model/core-agent/office-tools.test.ts b/test/main/model/core-agent/office-tools.test.ts
index 33261f57..19a82599 100644
--- a/test/main/model/core-agent/office-tools.test.ts
+++ b/test/main/model/core-agent/office-tools.test.ts
@@ -206,7 +206,6 @@ describe('Office built-in tools', () => {
expect(Object.keys(schema.properties)).toEqual(['path', 'sheets', 'preview']);
const sheetProps = schema.properties.sheets.items.properties;
const cellObjectSchema = sheetProps.rows.items.items;
- expect(cellObjectSchema.type).toEqual(['string', 'number', 'boolean', 'object']);
const cellProps = cellObjectSchema.properties;
const chartProps = sheetProps.charts.items.properties;
expect(cellProps).toEqual(expect.objectContaining({
diff --git a/test/main/model/core-agent/tool-result-tools.test.ts b/test/main/model/core-agent/tool-result-tools.test.ts
index 7826b44f..5585f661 100644
--- a/test/main/model/core-agent/tool-result-tools.test.ts
+++ b/test/main/model/core-agent/tool-result-tools.test.ts
@@ -563,21 +563,6 @@ describe('persisted tool-result retrieval', () => {
expect(request.properties.cursor.description).toContain('Required for read');
expect(request.properties.explode.description).toMatch(/\$item[\s\S]*\$parent[\s\S]*\$index/);
expect(getTool(tools, 'tool_result').description).toMatch(/at most one tool_result call per model step/i);
- expect(request.required).toEqual(['ref']);
- expect(request.additionalProperties).toBe(false);
- expect(request).not.toHaveProperty('oneOf');
- expect(request).not.toHaveProperty('anyOf');
- expect(request.properties.operation.enum).toEqual(['count', 'sum', 'average', 'minimum', 'maximum']);
- expect(request.properties).toEqual(expect.objectContaining({
- ref: expect.any(Object), query: expect.any(Object), cursor: expect.any(Object),
- max_tokens: expect.any(Object), operation: expect.any(Object), match: expect.any(Object),
- count_unit: expect.any(Object), dataset: expect.any(Object),
- }));
- expect(getTool(tools, 'tool_result').description).toMatch(/at most one tool_result call per model step/i);
- expect(schema.properties.action.description)
- .toMatch(/full-data calculations.*query cannot express/);
- expect(schema.properties.action.description).toMatch(/source excerpts/);
- expect(schema.properties.action.description).not.toMatch(/query\/search cannot answer/);
const invalid = await getTool(tools, 'tool_result').execute({
action: 'unknown',
diff --git a/test/main/util/linux-source-dependencies.test.ts b/test/main/util/linux-source-dependencies.test.ts
index 7150f3d9..bc2fa333 100644
--- a/test/main/util/linux-source-dependencies.test.ts
+++ b/test/main/util/linux-source-dependencies.test.ts
@@ -153,7 +153,6 @@ describe('Linux source dependency contract', () => {
expect(workflow).toContain('test/e2e/app_e2e_smoke.spec.ts');
expect(workflow).toContain('xvfb-run --auto-servernum npm run test:linux-source');
expect(workflow).toContain('npm run test:linux-whisper');
- expect(workflow).toContain('npm run test:linux-ocr');
const nativeRunner = fs.readFileSync(
path.join(process.cwd(), 'scripts', 'run-platform-native-tests.mjs'),