Skip to main content

Module context

Module context 

Source

Structs§

CommitContext
Full context for commit message generation.
FileContext
File content with truncation metadata.

Enums§

TruncationMode
Truncation strategy applied to a file.

Functions§

detect_sensitive_content
Detect if the diff or changed files contain sensitive content.
detect_sensitive_findings
Return structured findings for sensitive content matches.
detect_sensitive_report
Return the full sensitive report for the provided diff.
extract_changed_file_paths
Extract changed file paths from a unified diff.
filter_diff
Filter a unified diff, removing file sections that match skip patterns. Reuses the existing SKIP_PATTERNS (lock files, binaries, minified, generated).
gather_context
Gather full context for commit message generation.
get_file_contents
Read file contents for changed files with a total character budget.
should_skip
Check if a file should be skipped for context reading.