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
21 lines
793 B
TypeScript
21 lines
793 B
TypeScript
/**
|
|
* Utility functions for tracking and managing field names in JSON documents
|
|
*/
|
|
/**
|
|
* Extracts field names from a JSON document
|
|
* @param jsonObject The JSON object to extract field names from
|
|
* @param options Configuration options
|
|
* @returns An array of field paths (e.g., "user.name", "addresses[0].city")
|
|
*/
|
|
export declare function extractFieldNamesFromJson(jsonObject: any, options?: {
|
|
maxDepth?: number;
|
|
currentDepth?: number;
|
|
currentPath?: string;
|
|
fieldNames?: Set<string>;
|
|
}): string[];
|
|
/**
|
|
* Maps field names to standard field names based on common patterns
|
|
* @param fieldName The field name to map
|
|
* @returns The standard field name if a match is found, or null if no match
|
|
*/
|
|
export declare function mapToStandardField(fieldName: string): string | null;
|