feat(desktop): add safe data directory migration (#1433)

This commit is contained in:
程序员阿江-Relakkes
2026-10-04 00:39:20 +08:00
committed by GitHub
parent c144148d20
commit 795ff9d4df
101 changed files with 5024 additions and 226 deletions
@@ -8,6 +8,15 @@ type Check = {
const rootDir = process.cwd()
const checks: Check[] = [
{
title: 'Data directory relocation metadata and legacy attachment aliases',
command: ['bun', 'test', './src/utils/storageMigrationMetadata.test.ts', './src/utils/storageRelocations.test.ts'],
},
{
title: 'Desktop data migration journal recovery and credential namespace copy',
command: ['bun', 'run', 'test', '--', '--run', 'electron/services/dataMigration.test.ts', 'electron/services/migrationCredentials.test.ts'],
cwd: 'desktop',
},
{
title: 'Agent Teams plan sidecar compatibility and approval recovery',
command: ['bun', 'test', './src/utils/swarm/teamPlanStore.test.ts', './src/server/services/teamPlanService.test.ts'],