Versions in this module Expand all Collapse all v0 v0.3.0 May 26, 2026 v0.2.1 May 26, 2026 Changes in this version + func AutoFix(code string, issues []GenIssue) string + func BuildSchemaPrompt(schema *Schema) string + func BuildTestFeedback(result *TestResult, editedFiles []string) string + func DefaultLintCommands() map[string]string + func DefaultTestCommands() map[string]string + func DetectTestCommand(projectDir string) string + func ExtractCodeFromOutput(text string, language string) (string, error) + func ExtractJSONFromOutput(text string) (string, error) + func FilterRelevantOutput(output string, maxChars int) string + func FormatValidation(v *GenValidation) string + func ParseFailedTests(output string, language string) []string + func RepairJSON(broken string) (string, error) + type FieldSpec struct + Description string + Enum []string + MaxLength int + MinLength int + Pattern string + Required bool + Type string + type GenCheck struct + CheckFn func(code, language string) []GenIssue + Language string + Name string + Severity string + type GenIssue struct + AutoFixable bool + Check string + Fix string + Line int + Message string + Severity string + func CheckBalancedDelimiters(code string) []GenIssue + func CheckCompleteness(code string) []GenIssue + func ValidateGo(code string) []GenIssue + func ValidatePython(code string) []GenIssue + func ValidateTypeScript(code string) []GenIssue + type GenValidation struct + Issues []GenIssue + Language string + Score float64 + Valid bool + type GenValidator struct + Checks []GenCheck + func NewGenValidator() *GenValidator + func (gv *GenValidator) Validate(code, language string) *GenValidation + type LintLoop struct + Enabled bool + LintCommands map[string]string + MaxReflections int + func NewLintLoop() *LintLoop + func (ll *LintLoop) BuildReflectedMessage(result *LintResult) string + func (ll *LintLoop) RecordReflection(path string) int + func (ll *LintLoop) ReflectionCount(path string) int + func (ll *LintLoop) Reset() + func (ll *LintLoop) ResetFile(path string) + func (ll *LintLoop) RunLint(path string) (*LintResult, error) + func (ll *LintLoop) ShouldRetry(reflectionCount int) bool + type LintResult struct + Errors []string + ExitCode int + File string + type Schema struct + Examples []string + Fields map[string]FieldSpec + Name string + Pattern *regexp.Regexp + Required []string + Type string + type SchemaValidationError struct + Expected string + Field string + Got string + Message string + type SchemaValidationResult struct + Errors []SchemaValidationError + Extracted interface{} + Valid bool + Warnings []string + type SchemaValidator struct + Schemas map[string]*Schema + func NewSchemaValidator() *SchemaValidator + func (sv *SchemaValidator) Register(name string, schema *Schema) + func (sv *SchemaValidator) Validate(schemaName string, output string) *SchemaValidationResult + func (sv *SchemaValidator) ValidateJSON(output string, schema *Schema) *SchemaValidationResult + type TestLoop struct + Commands map[string]string + Enabled bool + MaxRetries int + Timeout time.Duration + func NewTestLoop() *TestLoop + func (tl *TestLoop) RecordRetry(file string) + func (tl *TestLoop) ResetFile(file string) + func (tl *TestLoop) RetryCount(file string) int + func (tl *TestLoop) RunTests(ctx context.Context, projectDir string) (*TestResult, error) + func (tl *TestLoop) ShouldRetry(file string) bool + type TestResult struct + Duration time.Duration + ExitCode int + FailedTests []string + Output string + Passed bool