Skip to main content

parse_edit_instructions

Function parse_edit_instructions 

Source
pub fn parse_edit_instructions(text: &str) -> Vec<EditInstruction>
Expand description

Parse EDIT INSTRUCTIONS from a REASON mode response. Looks for patterns like:

§File: TopBar.vue

Edit the avatar section…

§File: App.vue

Import FootBar and add to template…

Also handles numbered list format:

  1. TopBar.vue: change the avatar to use local image
  2. App.vue: import and register FootBar component