FileParseContext
interfaceinterface FileParseContextContext passed through the FileContentsParser pipeline.
Each parser receives this, transforms it, and returns an updated version.
PROPERTIES
| NAME | TYPE | DESCRIPTION |
|---|---|---|
| filePath | string | Absolute path to the file |
| hunks | ParsedRegion[] | Extracted code regions (only explicit #region blocks) |
| metadata | Record<string, unknown> | Metadata extracted by parsers |
| parsed | string | Transformed content (frontmatter/markers stripped) |
| raw | string | Original file content, never modified |
| regionConfig | Required<Pick<RegionConfig, "startTag" | "endTag">> | Resolved region config from ResolvedConfig.region. Always populated by createInitialContext using defaults if not configured. |