Documentation
¶
Overview ¶
Package load extracts index content from context files and handles load-gate logic during session startup.
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func ExtractIndex ¶
ExtractIndex returns the content between INDEX:START and INDEX:END markers within a context file.
Parameters:
- content: full file content to search
Returns:
- string: trimmed index content, or empty string if markers are not found or improperly ordered
func WriteOversizeFlag ¶
func WriteOversizeFlag( contextDir string, totalTokens int, perFile []entity.FileTokenEntry, )
WriteOversizeFlag writes an injection-oversize flag file when the total injected tokens exceed the configured threshold. The flag file is read by check-context-size to emit an oversize warning.
Parameters:
- contextDir: absolute path to the .context/ directory
- totalTokens: total injected token count
- perFile: per-file token breakdown for diagnostics
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.