chore: recovery checkpoint - v3.0 API successfully recovered
CRITICAL CHECKPOINT - DO NOT PUSH TO GITHUB Recovery Status: - Successfully recovered brainy.ts from compiled JavaScript - All core v3.0 API methods functional (add, get, update, delete, relate, find, etc.) - Neural subsystem intact (562KB embedded patterns, NLP working) - Augmentation pipeline operational (20+ augmentations) - HNSW clustering system complete - Triple Intelligence compiled (needs constructor fix) - Test suite validates functionality Changes preserved: - 898 files with changes from last 3 days - 144,475 insertions - All augmentation improvements - All test coverage enhancements - Complete v3.0 feature set This is a LOCAL checkpoint only - contains recovered work after corruption incident. Created backup in .backups/brainy-full-20250910-151314.tar.gz Branch: recovery-checkpoint-20250910-151433 Date: Wed Sep 10 03:18:04 PM PDT 2025
This commit is contained in:
parent
f65455fb22
commit
8ff382ca3b
895 changed files with 143654 additions and 28268 deletions
55
.recovery-workspace/dist-backup-20250910-141917/augmentations/storageAugmentation.d.ts
vendored
Normal file
55
.recovery-workspace/dist-backup-20250910-141917/augmentations/storageAugmentation.d.ts
vendored
Normal file
|
|
@ -0,0 +1,55 @@
|
|||
/**
|
||||
* Storage Augmentation Base Classes
|
||||
*
|
||||
* Unifies storage adapters and augmentations into a single system.
|
||||
* All storage backends are now augmentations for consistency and extensibility.
|
||||
*/
|
||||
import { BaseAugmentation, BrainyAugmentation, AugmentationContext } from './brainyAugmentation.js';
|
||||
import { StorageAdapter } from '../coreTypes.js';
|
||||
/**
|
||||
* Base class for all storage augmentations
|
||||
* Provides the storage adapter to the brain during initialization
|
||||
*/
|
||||
export declare abstract class StorageAugmentation extends BaseAugmentation implements BrainyAugmentation {
|
||||
readonly timing: "replace";
|
||||
readonly metadata: "none";
|
||||
operations: ("storage")[];
|
||||
readonly priority = 100;
|
||||
protected storageAdapter: StorageAdapter | null;
|
||||
constructor(config?: any);
|
||||
/**
|
||||
* Provide the storage adapter before full initialization
|
||||
* This is called during the storage resolution phase
|
||||
*/
|
||||
abstract provideStorage(): Promise<StorageAdapter>;
|
||||
/**
|
||||
* Initialize the augmentation with context
|
||||
* Called after storage has been resolved
|
||||
*/
|
||||
initialize(context: AugmentationContext): Promise<void>;
|
||||
/**
|
||||
* Execute storage operations
|
||||
* For storage augmentations, this replaces the default storage
|
||||
*/
|
||||
execute<T = any>(operation: string, params: any, next: () => Promise<T>): Promise<T>;
|
||||
/**
|
||||
* Shutdown and cleanup
|
||||
*/
|
||||
shutdown(): Promise<void>;
|
||||
}
|
||||
/**
|
||||
* Dynamic storage augmentation that wraps any storage adapter
|
||||
* Used for backward compatibility and zero-config
|
||||
*/
|
||||
export declare class DynamicStorageAugmentation extends StorageAugmentation {
|
||||
private adapter;
|
||||
readonly name = "dynamic-storage";
|
||||
constructor(adapter: StorageAdapter);
|
||||
provideStorage(): Promise<StorageAdapter>;
|
||||
protected onInitialize(): Promise<void>;
|
||||
}
|
||||
/**
|
||||
* Create a storage augmentation from configuration
|
||||
* Maintains backward compatibility with existing storage config
|
||||
*/
|
||||
export declare function createStorageAugmentationFromConfig(config: any): Promise<StorageAugmentation | null>;
|
||||
Loading…
Add table
Add a link
Reference in a new issue