Documentation
¶
Overview ¶
Package generate renders the one managed agent guidance region from canonical operation metadata. It owns no workflow semantics of its own: commands come from the operation registry, and everything else is one shared prose template.
Index ¶
Constants ¶
const GuidanceFile = "AGENTS.md"
GuidanceFile is the only managed generation target. It is an allowlist of one: cleanup and refresh refuse every other name rather than deleting by pattern.
Variables ¶
This section is empty.
Functions ¶
func Clean ¶
Clean removes one managed file, and only when the file is nothing but a managed region whose declared hash still identifies its bytes. A file holding user text, or one whose managed bytes were edited, is left untouched: cleanup deletes proven managed content, never a guess.
func Destination ¶
Destination resolves one managed target inside the project. It refuses traversal, absolute names, and any symlink on the resolved path, so a generated file can never be written or removed outside the selected project.
Types ¶
type Guidance ¶
Guidance is one rendered managed region. Hash identifies Body exactly, so a consumer can prove freshness without re-rendering and a hand edit is visible.