Consider it done. The open-source AI agent that works out of the box · 想到,就能做到。开源、开箱即用的 AI Agent。
TypeScript agentai-agentai-assistantandroidclaude-codecodexelectroniosllmmacosreact-nativetypescriptwindows
test(desktop): 修正 bridge 代际结构断言匹配多行 return
yanf129263404a6
diff --git a/apps/desktop/src/main/maker-host/__tests__/remoteCcQueryFactory.test.ts b/apps/desktop/src/main/maker-host/__tests__/remoteCcQueryFactory.test.tsindex 6bd470e60a..ef0c8a4301 100644--- a/apps/desktop/src/main/maker-host/__tests__/remoteCcQueryFactory.test.ts+++ b/apps/desktop/src/main/maker-host/__tests__/remoteCcQueryFactory.test.ts@@ -84,7 +84,8 @@ describe('remoteCcQueryFactory cleanup wiring', () => {expect(ensureFn).toBeGreaterThan(-1);const clearIdx = source.indexOf('forcedFreshCcBridgeSessions.clear()', ensureFn);expect(clearIdx).toBeGreaterThan(ensureFn);- const returnIdx = source.indexOf('return { port: cfg.bridge.port', ensureFn);+ // return 是多行对象字面量:匹配其中 port 行的位置。+ const returnIdx = source.indexOf('port: cfg.bridge.port', clearIdx);expect(returnIdx).toBeGreaterThan(clearIdx);});});