Versions in this module Expand all Collapse all v0 v0.5.0 May 11, 2026 v0.4.0 May 5, 2026 v0.2.0 May 3, 2026 Changes in this version type Finding + CWE string v0.1.0 May 2, 2026 Changes in this version + const ReflectSystemPrompt + func BuildPrompt(concern Concern, files []diff.File, contextLines int) string + func BuildPromptEnhanced(concern Concern, files []diff.File, contextLines int) string + func BuildReflectPrompt(findings []Finding, diffContext string) string + func ChunkFiles(files []diff.File, concern Concern, contextLines int, maxPromptTokens int) [][]diff.File + func EstimateTokens(s string) int + func LookupCWEName(id string) string + func MatchCWE(message, fix string) string + func SystemPrompt(concern Concern) string + type CWEMapping struct + ID string + Keywords []string + Name string + type Concern struct + Name string + Prompt string + func AllConcerns() []Concern + func BuildConcerns(names []string) []Concern + type Finding struct + Concern string + EndLine int + File string + Fix string + Line int + Message string + Reasoning string + Severity Severity + func ApplyReflection(findings []Finding, reflections []ReflectResult) []Finding + func ApplyReflectionWithScore(findings []Finding, reflections []ReflectResult, minScore int) []Finding + func ParseResponse(response string, concernName string) []Finding + type ReflectResult struct + Action string + Index int + Message string + Reason string + Score int + Severity string + func ParseReflectResponse(response string) []ReflectResult + type Severity int + const SeverityCritical + const SeverityHigh + const SeverityInfo + const SeverityLow + const SeverityMedium