refactor: remove legacy kb compatibility
Drops the .kb/kb.db migration path, legacy backup filename handling, and backward-compat test suites. Renames internal kbDir identifiers to fusionDir and hasKbProject/isValidKbProject to their fusion equivalents. - Remove needsCentralMigration, autoMigrateToCentral, and the "needs-migration" FirstRunState; checkAndMigrate and KB_SKIP_MIGRATION env var are gone - Remove LEGACY_BACKUP_DIR and canonicalizeBackupDir; listBackups no longer matches kb-* filenames - Delete backward-compat.test.ts and store-backward-compat.test.ts; update remaining tests to new 3-state first-run model Co-Authored-By: Claude Opus 4.7 (1M context) <noreply@anthropic.com>
This commit is contained in:
@@ -3737,7 +3737,7 @@ export function createApiRoutes(store: TaskStore, options?: ServerOptions): Rout
|
||||
const { store: scopedStore } = await getProjectContext(req);
|
||||
const { createBackupManager } = await import("@fusion/core");
|
||||
const settings = await scopedStore.getSettings();
|
||||
const manager = createBackupManager(scopedStore["fusionDir"], settings);
|
||||
const manager = createBackupManager(scopedStore.getFusionDir(), settings);
|
||||
const backups = await manager.listBackups();
|
||||
|
||||
// Calculate total size
|
||||
@@ -3765,7 +3765,7 @@ export function createApiRoutes(store: TaskStore, options?: ServerOptions): Rout
|
||||
const { store: scopedStore } = await getProjectContext(req);
|
||||
const { runBackupCommand } = await import("@fusion/core");
|
||||
const settings = await scopedStore.getSettings();
|
||||
const result = await runBackupCommand(scopedStore["fusionDir"], settings);
|
||||
const result = await runBackupCommand(scopedStore.getFusionDir(), settings);
|
||||
|
||||
if (result.success) {
|
||||
res.json({
|
||||
|
||||
Reference in New Issue
Block a user