commit_msg

package
v0.0.64 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Jul 15, 2026 License: MIT Imports: 16 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Generate

func Generate(dir string, options GenerateOptions) (string, error)

func RunGenCommitMsg

func RunGenCommitMsg(args []string) error

Types

type CommitMsg added in v0.0.9

type CommitMsg struct {
	Title       string `json:"title"`
	Description string `json:"description"`
}

func SanitizeOrError added in v0.0.63

func SanitizeOrError(raw string) (CommitMsg, error)

SanitizeOrError runs Sanitize and returns an error when the message is rejected.

type GenerateOptions

type GenerateOptions struct {
	Model             string
	AgentRunner       string
	AgentRunnerBinary string
	AgentEnv          map[string]string
	Logger            Logger
}

type Logger

type Logger interface {
	Log(msg string)
	Error(msg string)
}

type SanitizeResult added in v0.0.63

type SanitizeResult struct {
	Msg      CommitMsg
	Changes  []string
	Rejected bool
	Reason   string
}

SanitizeResult is the structured outcome of post-parse commit message sanitization.

func Sanitize added in v0.0.63

func Sanitize(raw string) SanitizeResult

Sanitize applies post-parse anti-pattern cleanup to agent commit-message text. On success returns a usable CommitMsg. On unusable garbage returns Rejected=true.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL