2025-08-26 12:32:21 -07:00
|
|
|
/**
|
2025-10-27 12:23:00 -07:00
|
|
|
* DEPRECATED (v4.7.2): Backward compatibility stubs
|
|
|
|
|
* TODO: Remove in v4.7.3 after migrating s3CompatibleStorage
|
2025-08-26 12:32:21 -07:00
|
|
|
*/
|
|
|
|
|
|
|
|
|
|
export class StorageCompatibilityLayer {
|
2025-09-11 16:23:32 -07:00
|
|
|
static logMigrationEvent(event: string, details?: any): void {
|
2025-10-27 12:23:00 -07:00
|
|
|
// No-op
|
2025-08-26 12:32:21 -07:00
|
|
|
}
|
2025-10-27 12:23:00 -07:00
|
|
|
|
2025-09-11 16:23:32 -07:00
|
|
|
static async migrateIfNeeded(storagePath: string): Promise<void> {
|
2025-10-27 12:23:00 -07:00
|
|
|
// No-op
|
2025-08-26 12:32:21 -07:00
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
|
2025-09-11 16:23:32 -07:00
|
|
|
export interface StoragePaths {
|
|
|
|
|
nouns: string
|
|
|
|
|
verbs: string
|
|
|
|
|
metadata: string
|
|
|
|
|
index: string
|
|
|
|
|
system: string
|
|
|
|
|
statistics: string
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
export function getDefaultStoragePaths(basePath: string): StoragePaths {
|
|
|
|
|
return {
|
2025-10-27 12:23:00 -07:00
|
|
|
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`
|
2025-08-26 12:32:21 -07:00
|
|
|
}
|
2025-10-27 12:23:00 -07:00
|
|
|
}
|