- FileSystemStorage now uses clean hardcoded paths - Noun vectors: entities/nouns/hnsw (was: nouns/) - Verb vectors: entities/verbs/hnsw (was: verbs/) - Noun metadata: entities/nouns/metadata - Verb metadata: entities/verbs/metadata - Removed dual read/write backward compatibility code - Removed mergeStatistics method (no longer needed) - Added deprecation stubs for other adapters (to be migrated in v4.7.3) This fixes VFS bug where verb vector files were written to wrong directory. Workshop team: Delete brainy-data folder and reimport with v4.7.2.
34 lines
835 B
TypeScript
34 lines
835 B
TypeScript
/**
|
|
* DEPRECATED (v4.7.2): Backward compatibility stubs
|
|
* TODO: Remove in v4.7.3 after migrating s3CompatibleStorage
|
|
*/
|
|
|
|
export class StorageCompatibilityLayer {
|
|
static logMigrationEvent(event: string, details?: any): void {
|
|
// No-op
|
|
}
|
|
|
|
static async migrateIfNeeded(storagePath: string): Promise<void> {
|
|
// No-op
|
|
}
|
|
}
|
|
|
|
export interface StoragePaths {
|
|
nouns: string
|
|
verbs: string
|
|
metadata: string
|
|
index: string
|
|
system: string
|
|
statistics: string
|
|
}
|
|
|
|
export function getDefaultStoragePaths(basePath: string): StoragePaths {
|
|
return {
|
|
nouns: `${basePath}/entities/nouns/hnsw`,
|
|
verbs: `${basePath}/entities/verbs/hnsw`,
|
|
metadata: `${basePath}/entities/nouns/metadata`,
|
|
index: `${basePath}/indexes`,
|
|
system: `${basePath}/_system`,
|
|
statistics: `${basePath}/_system/statistics.json`
|
|
}
|
|
}
|