Consider it done. The open-source AI agent that works out of the box · 想到,就能做到。开源、开箱即用的 AI Agent。
TypeScript agentai-agentai-assistantandroidclaude-codecodexelectroniosllmmacosreact-nativetypescriptwindows
test(skillhub): match nested projection paths with the same realpath primitive as the scanner
Zhang Yunjin276f786134d0
diff --git a/apps/desktop/src/main/skillhub/__tests__/scanner.test.ts b/apps/desktop/src/main/skillhub/__tests__/scanner.test.tsindex 74a51a93a9..9a374b18ce 100644--- a/apps/desktop/src/main/skillhub/__tests__/scanner.test.ts+++ b/apps/desktop/src/main/skillhub/__tests__/scanner.test.ts@@ -111,11 +111,16 @@ describe('scanAllSkills', () => {const result = await scanAllSkills({}, maker);expect(result.skills).toHaveLength(1);+ // The projection reports fs.realpathSync(skillDir). On Windows runners TEMP+ // can be an 8.3 short name (RUNNER~1); fs.realpathSync keeps that form while+ // fs.realpathSync.native expands it, so the expected value must use the+ // same primitive as the implementation. mdPath is echoed from the Maker+ // payload, so it is asserted against the input path.expect(result.skills[0]).toMatchObject({name: 'nested',description: 'Nested skill',- absolutePath: fs.realpathSync.native(skillDir),- mdPath: path.join(fs.realpathSync.native(skillDir), 'SKILL.md'),+ absolutePath: fs.realpathSync(skillDir),+ mdPath: path.join(skillDir, 'SKILL.md'),});});