Skip to content

LargeFileIndex

reference
1 min readUpdated

Kind: Interface

Source: atloria-monorepo/packages/doc-automation/src/v2/types/stage-02.types.ts

LargeFileIndex - Detailed index for lazy loading from large files (>500KB)

Instead of loading full content of large files (which would overflow context), we create an index that enables on-demand loading of specific sections. This supports the iterative deep loading mechanism.

Properties

PropertyType
filePathstring
fileSizenumber
lineCountnumber
tokenEstimatenumber
overview`{
purpose: string; // What this file is for
primaryExports: string[]; // Main exports
imports: string[]; // Key imports
isAutoGenerated: boolean; // Detected auto-generated file

}| |entities|Array<{ name: string; type: string; // FUNCTION, CLASS, etc. startLine: number; endLine: number; signature: string; // Quick reference summary: string; // Brief description hasNeverTruncatePatterns: boolean; // Contains critical patterns }>| |sections|Array<{ startLine: number; endLine: number; summary: string; // What this section does entities: string[]; // Entity names in this section }>| |criticalExtracts|Array<{ entityName: string; reason: 'validation' | 'error_messages' | 'permissions' | 'state_machine'; content: string; // Full source code }>` |

Was this page helpful?

Download as PDF