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.

Adapt synced tests for open root

wyt096d410546c4
diff --git a/test/main/features/skills.test.ts b/test/main/features/skills.test.ts
index 1d717aad..679cb7df 100644
--- a/test/main/features/skills.test.ts
+++ b/test/main/features/skills.test.ts
@@ -798,30 +798,24 @@ describe('skills › listSkills', () => {
expect(found?.default_install).toBe(true);
});
- it('updates marketplace skill display name in dev without renaming install dir', async () => {
- const prevDevtools = process.env.ORKAS_DEVTOOLS;
- process.env.ORKAS_DEVTOOLS = '1';
- try {
- const dir = path.join(builtinSkillsDir(), 'platform-excel');
- fs.mkdirSync(dir, { recursive: true });
- fs.writeFileSync(path.join(dir, 'SKILL.md'),
- '---\nname: "Old platform skill"\ndescription: "platform"\n---\n\nUse when editing spreadsheets.\n');
+ it('keeps marketplace skill metadata read-only in the open build', async () => {
+ const dir = path.join(builtinSkillsDir(), 'platform-excel');
+ fs.mkdirSync(dir, { recursive: true });
+ fs.writeFileSync(path.join(dir, 'SKILL.md'),
+ '---\nname: "Old platform skill"\ndescription: "platform"\n---\n\nUse when editing spreadsheets.\n');
- const s = await loadSkills();
- const result = await s.applySkillMetadataForEdit('platform-excel', { name: 'Excel / XLSX' });
-
- expect(result.ok).toBe(true);
- expect(result.skillId).toBe('platform-excel');
- expect(fs.existsSync(dir)).toBe(true);
- expect(fs.existsSync(path.join(builtinSkillsDir(), 'Excel / XLSX'))).toBe(false);
- const after = fs.readFileSync(path.join(dir, 'SKILL.md'), 'utf8');
- expect(s.parseSkillFrontmatter(after).name).toBe('Excel / XLSX');
- expect((await s.listSkills()).find((x) => x.id === 'platform-excel')?.name)
- .toBe('Excel / XLSX');
- } finally {
- if (prevDevtools === undefined) delete process.env.ORKAS_DEVTOOLS;
- else process.env.ORKAS_DEVTOOLS = prevDevtools;
- }
+ const s = await loadSkills();
+ const result = await s.applySkillMetadataForEdit('platform-excel', { name: 'Excel / XLSX' });
+
+ expect(result.ok).toBe(false);
+ expect(result.skillId).toBe('platform-excel');
+ expect(result.written).toBe(false);
+ expect(fs.existsSync(dir)).toBe(true);
+ expect(fs.existsSync(path.join(builtinSkillsDir(), 'Excel / XLSX'))).toBe(false);
+ const after = fs.readFileSync(path.join(dir, 'SKILL.md'), 'utf8');
+ expect(s.parseSkillFrontmatter(after).name).toBe('Old platform skill');
+ expect((await s.listSkills()).find((x) => x.id === 'platform-excel')?.name)
+ .toBe('Old platform skill');
});
it('cache-only invalidator picks up marketplace file rewrites', async () => {
diff --git a/test/main/features/video_media_skill_scripts.test.ts b/test/main/features/video_media_skill_scripts.test.ts
index 1a38d81e..a0738ad4 100644
--- a/test/main/features/video_media_skill_scripts.test.ts
+++ b/test/main/features/video_media_skill_scripts.test.ts
@@ -6,7 +6,7 @@ import { spawnSync } from 'node:child_process';
import { describe, expect, it } from 'vitest';
function pcDir() {
- return path.basename(process.cwd()) === 'PC'
+ return fs.existsSync(path.join(process.cwd(), 'bin', 'run-skill.cjs'))
? process.cwd()
: path.resolve(process.cwd(), 'PC');
}
@@ -31,6 +31,7 @@ function runSkill(
extraEnv: Record<string, string> = {},
) {
const dir = pcDir();
+ const workspaceRoot = path.join(os.tmpdir(), 'orkas-video-skill-workspace');
return spawnSync(
process.execPath,
[path.join(dir, 'bin', 'run-skill.cjs'), skillId, script, '--', ...args],
@@ -41,7 +42,7 @@ function runSkill(
...process.env,
ORKAS_PC_DIR: dir,
ORKAS_RUN_SKILL_DIR: skillDir(skillId),
- ORKAS_WORKSPACE_ROOT: path.dirname(dir),
+ ORKAS_WORKSPACE_ROOT: workspaceRoot,
...extraEnv,
},
},
diff --git a/test/renderer/new-chat-home.test.ts b/test/renderer/new-chat-home.test.ts
index 7e63ecc4..b41510de 100644
--- a/test/renderer/new-chat-home.test.ts
+++ b/test/renderer/new-chat-home.test.ts
@@ -30,10 +30,10 @@ describe('new chat home surface', () => {
expect(newChatScenarioOrder(html)).toEqual([
'data',
'video',
+ 'ui_design',
'seo_geo',
'office',
'rnd',
- 'education',
]);
expect(html).not.toContain('data-scenario="ecommerce"');
expect(html).not.toContain('data-scenario="creation"');