process_file_includes

Function process_file_includes 

Source
pub fn process_file_includes(
    request: &mut PlanRequest,
) -> Result<FileIncludeResult, String>
Expand description

Process @file directives in a PlanRequest

This function scans all task specs for @file(path) syntax and replaces them with the file contents. Files are tracked for deletion after successful plan execution.

§Syntax

  • @file(/path/to/file.md) - Include file content, delete after success
  • @file(/path/to/file.md, keep) - Include file content, keep the file

§Example

{
  "tasks": [{
    "name": "My Task",
    "spec": "@file(/tmp/task-description.md)"
  }]
}