feat(tools): add ast-grep tools for AST-aware code search and transformation

- Add ast_grep_search for pattern-based code search (25 languages)
- Add ast_grep_replace for AST-aware code rewriting with dry-run
- Add ast_grep_analyze for in-memory code analysis (NAPI)
- Add ast_grep_transform for in-memory code transformation
- Add ast_grep_languages to list supported languages
This commit is contained in:
YeonGyu-Kim
2025-12-04 22:40:25 +09:00
parent dc119bc1ed
commit eac197581c
9 changed files with 563 additions and 0 deletions
+23
View File
@@ -0,0 +1,23 @@
import {
ast_grep_search,
ast_grep_replace,
ast_grep_languages,
ast_grep_analyze,
ast_grep_transform,
} from "./tools"
export const builtinTools = {
ast_grep_search,
ast_grep_replace,
ast_grep_languages,
ast_grep_analyze,
ast_grep_transform,
}
export {
ast_grep_search,
ast_grep_replace,
ast_grep_languages,
ast_grep_analyze,
ast_grep_transform,
}