Documentation
¶
Overview ¶
Package scaffold implements AI-powered project scaffolding from a cloop plan. It reads the active plan's goal and task list, asks the AI to generate a complete project skeleton (directory tree, stub files, config templates, README), and writes the result to the target output directory.
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type ScaffoldFile ¶
ScaffoldFile represents a single file to be written.
type ScaffoldPlan ¶
type ScaffoldPlan struct {
Dirs []string `json:"dirs"`
Files []ScaffoldFile `json:"files"`
}
ScaffoldPlan is the manifest returned by the AI describing the project skeleton.
func Generate ¶
func Generate(ctx context.Context, prov provider.Provider, model string, plan *pm.Plan, outputDir string, dryRun bool) (*ScaffoldPlan, error)
Generate calls the AI provider to produce a ScaffoldPlan, then writes all directories and files to outputDir (unless dryRun is true, in which case it only returns the plan without writing anything).
Click to show internal directories.
Click to hide internal directories.