SIGN IN SIGN UP

feat(mcp): structured tool outputs and delete mode (#4)

* docs(tools): clarify delete and CLI alternatives

* feat(edit): add mode "delete" shorthand

* feat(mcp): structured outputs via outputSchema

Tools return structuredContent matching the declared outputSchema:

- read_anchored: total_lines + anchored_text
- edit_anchored: total_lines + affected_lines + unified-diff block
  with " "/"-"/"+" prefixes, anchored per line, and 3 lines of context
- write_to_file: total_lines + Myers-added runs only (unchanged lines
  retain prior anchors)

EditResult gains an operation discriminant, a nullable originalRange,
and a pre-edit snapshot consumed by buildDiff.
J
Jonathan Yang committed
ed69fb2f9a1b3414e0d4dd9b7def763fc04f15e6
Parent: 3607ec7
Committed by GitHub <noreply@github.com> on 5/5/2026, 7:43:40 PM