Consider it done. The open-source AI agent that works out of the box · 想到,就能做到。开源、开箱即用的 AI Agent。
TypeScript agentai-agentai-assistantandroidclaude-codecodexelectroniosllmmacosreact-nativetypescriptwindows
test(desktop): tolerate multiline remote query params
JiangJiahao6918a08fb07d
diff --git a/apps/desktop/src/main/maker-host/__tests__/remoteCcQueryFactory.test.ts b/apps/desktop/src/main/maker-host/__tests__/remoteCcQueryFactory.test.tsindex 757973cb53..6bf574b36b 100644--- a/apps/desktop/src/main/maker-host/__tests__/remoteCcQueryFactory.test.ts+++ b/apps/desktop/src/main/maker-host/__tests__/remoteCcQueryFactory.test.ts@@ -59,8 +59,17 @@ describe('remoteCcQueryFactory cleanup wiring', () => {// 验收实锤回归:factory 必须把 maker-core 透传的 vendorOptions 交给// buildCcRemoteHttpMcpServers — worker 首次创建时 DB 标记未写, 现场// 查库会 fail-closed 掉 send_to_lead。- const destructure = source.indexOf('startParams, vendorOptions, onApprovalRequest');- expect(destructure).toBeGreaterThan(-1);+ const destructureStart = source.indexOf('remoteCcQueryFactory: async ({');+ const destructureEnd = source.indexOf('}) => {', destructureStart);+ expect(destructureStart).toBeGreaterThan(-1);+ expect(destructureEnd).toBeGreaterThan(destructureStart);+ const destructure = source.slice(destructureStart, destructureEnd);+ const startParams = destructure.indexOf('startParams,');+ const vendorOptions = destructure.indexOf('vendorOptions,');+ const approvalRequest = destructure.indexOf('onApprovalRequest,');+ expect(startParams).toBeGreaterThan(-1);+ expect(vendorOptions).toBeGreaterThan(startParams);+ expect(approvalRequest).toBeGreaterThan(vendorOptions);const buildArgs = source.indexOf("workingDir: typeof startParams.cwd === 'string' ? startParams.cwd : '',");expect(buildArgs).toBeGreaterThan(-1);const passDown = source.indexOf('vendorOptions,', buildArgs);