Consider it done. The open-source AI agent that works out of the box · 想到,就能做到。开源、开箱即用的 AI Agent。
TypeScript agentai-agentai-assistantandroidclaude-codecodexelectroniosllmmacosreact-nativetypescriptwindows
test(desktop): 正式 profile 拒绝必须盯调用点,不能盯 import
Dashe2f115386991
diff --git a/apps/desktop/src/main/__tests__/officialProfileMigrationPolicy.test.ts b/apps/desktop/src/main/__tests__/officialProfileMigrationPolicy.test.tsindex a2106955d7..0c3f1f48fa 100644--- a/apps/desktop/src/main/__tests__/officialProfileMigrationPolicy.test.ts+++ b/apps/desktop/src/main/__tests__/officialProfileMigrationPolicy.test.ts@@ -62,9 +62,11 @@ describe('official profile writer wiring', () => {'utf8',);expect(indexSource).toContain("process.env.XDT_OFFICIAL_SHARED_PROFILE = '1'");- const refuseIdx = migrateSource.indexOf('shouldRefuseOfficialProfileWriterMigration');+ const refuseIdx = migrateSource.indexOf('shouldRefuseOfficialProfileWriterMigration({');+ const prepareIdx = migrateSource.indexOf('prepareBackupDiskSpace(');const backupIdx = migrateSource.indexOf('await backupDb(');expect(refuseIdx).toBeGreaterThan(-1);+ expect(prepareIdx).toBeGreaterThan(refuseIdx);expect(backupIdx).toBeGreaterThan(refuseIdx);});});