Documentation
¶
Overview ¶
Package generate orchestrates the codebase-to-vault pipeline: scan, parse, normalize, compute metrics, render, and write.
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func Generate ¶
func Generate(ctx context.Context, opts models.GenerateOptions) (models.GenerationSummary, error)
Generate runs the full repository-to-vault pipeline and returns a structured summary of the generated topic.
func GenerateWithObserver ¶
func GenerateWithObserver(ctx context.Context, opts models.GenerateOptions, observer Observer) (models.GenerationSummary, error)
GenerateWithObserver runs the full pipeline and emits structured events to the provided observer while returning the final summary.
Types ¶
type Event ¶
type Event struct {
Kind EventKind `json:"kind"`
Stage string `json:"stage"`
Completed int `json:"completed,omitempty"`
DurationMillis int64 `json:"durationMillis,omitempty"`
Error string `json:"error,omitempty"`
Fields map[string]any `json:"fields,omitempty"`
Total int `json:"total,omitempty"`
}
Event reports structured progress from the generate pipeline.
type ObserverFunc ¶
ObserverFunc adapts a function into an Observer.
func (ObserverFunc) ObserveGenerateEvent ¶
func (fn ObserverFunc) ObserveGenerateEvent(ctx context.Context, event Event)
ObserveGenerateEvent implements Observer.
Click to show internal directories.
Click to hide internal directories.