Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func EngineConfigFromApp ¶
func EngineConfigFromApp(cfg *config.Config) decision.EngineConfig
EngineConfigFromApp builds an EngineConfig from the app config. Falls back to DefaultConfig() if all thresholds are zero. This happens when PersistentPreRunE is skipped (e.g. hook subprocess) and Viper defaults were not applied. A user intentionally setting all thresholds to 0 is not a supported use case — Viper defaults (60/35/15) always apply when config loads.
func ReviewCorpus ¶
func ReviewCorpus(ctx context.Context, provider domain.AIProvider, reader domain.CorpusReader, cfg *config.Config, styleGuide map[string]interface{}) (*angela.ReviewReport, int, error)
ReviewCorpus orchestrates the full corpus review workflow: prepare summaries, call AI review.
Types ¶
type EvaluateCommitResult ¶
type EvaluateCommitResult struct {
Decision *decision.DecisionResult
CommitInfo *domain.CommitInfo
}
EvaluateCommitResult bundles the decision result with commit metadata needed for display.
func EvaluateCommit ¶
func EvaluateCommit(store domain.LoreStore, cfg *config.Config, ref string, adapter domain.GitAdapter) (*EvaluateCommitResult, error)
EvaluateCommit sets up the decision engine and evaluates a commit.
type PolishResult ¶
type PolishResult struct {
Original string
Polished string
Diff []angela.DiffHunk
Meta domain.DocMeta
Filename string
}
PolishResult holds the output of a polish orchestration.
func PolishDocument ¶
func PolishDocument(ctx context.Context, provider domain.AIProvider, cfg *config.Config, docsDir string, filename string) (*PolishResult, error)
PolishDocument orchestrates the full document polish workflow: read document, resolve personas, call AI polish, compute diff.