Files
pi-config/extensions/pi-lsp-extension/.ralph/scratchpad.md

790 B

Ralph Scratchpad

Preset: feature Task: specs/structural-search-rewrite.md


Committer — Iteration 4

Committed: 6fe71f1

feat: add structural code search and rewrite tools

7 files changed, 1414 insertions:

  • src/tree-sitter/pattern-compiler.ts — metavar placeholder encoding, language wrappers
  • src/tree-sitter/search-engine.ts — recursive AST matcher, file collection
  • src/tree-sitter/rewrite-engine.ts — capture substitution, bottom-up application
  • src/tools/code-search.ts — search tool wrapper
  • src/tools/code-rewrite.ts — rewrite tool wrapper with dry-run
  • src/index.ts — tool registration
  • test-structural-search.ts — 52 tests

Status: DONE

All spec requirements met. 52 tests passing, tsc clean. Feature complete.