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 PolishOptions ¶ added in v1.1.0
type PolishOptions struct {
Audience string // target audience for rewrite mode
Progress angela.MultiPassProgress // callback for multi-pass progress (nil = silent)
// Incremental enables section-level re-polish.
// When true the orchestrator compares section hashes with the
// stored polish state and only sends changed sections to the AI.
Incremental bool
// PolishStatePath is the absolute path to polish-state.json.
// Required when Incremental is true.
PolishStatePath string
}
PolishOptions holds optional parameters for PolishDocument.
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, opts ...PolishOptions) (*PolishResult, error)
PolishDocument orchestrates the full document polish workflow: read document, resolve personas, call AI polish, compute diff.