plandiff

package
v0.0.3 Latest Latest
Warning

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

Go to latest
Published: Sep 27, 2026 License: MIT Imports: 6 Imported by: 0

Documentation

Overview

Package plandiff provides AI-narrated comparison of plan snapshots. It wraps the structural diff computed by pkg/pm and asks the AI provider to generate a plain-English narrative explaining what the changes mean for the project direction.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Narrate

func Narrate(ctx context.Context, p provider.Provider, model string, input NarrateInput) (string, error)

Narrate calls the AI provider to produce a 1-2 paragraph plain-English explanation of what the plan changes mean for the project direction. model may be empty (provider uses its default).

Types

type NarrateInput

type NarrateInput struct {
	Snap1 *pm.Snapshot
	Snap2 *pm.Snapshot
	Diff  pm.PlanDiff
}

NarrateInput holds everything needed to generate an AI narrative for a diff.

Jump to

Keyboard shortcuts

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