Skip to main content

update_managed_section

Function update_managed_section 

Source
pub fn update_managed_section(
    content: &str,
    ctx: &TemplateContext,
) -> Result<String>
Expand description

Update the managed section in an existing AGENTS.md.

Handles both current (edict:managed-*) and legacy (botbox:managed-*) markers, always writing back with current markers. This enables automatic migration of AGENTS.md files from botbox-era projects on the next edict sync.