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:
@@ -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,
|
||||
}
|
||||
Reference in New Issue
Block a user