This PR adds the am instrument subcommand. It leverages tree-sitter to edit files in a project and add instrumentation annotations in a codebase.
In order to make this work, issues in Typescript queries were detected so the PR also fixes ts queries. Also, a slight refactoring (DRY) was applied on the codebase in general to reuse the project tree-walking code everywhere
Description
This PR adds the
am instrument
subcommand. It leverages tree-sitter to edit files in a project and add instrumentation annotations in a codebase.In order to make this work, issues in Typescript queries were detected so the PR also fixes ts queries. Also, a slight refactoring (DRY) was applied on the codebase in general to reuse the project tree-walking code everywhere
Checklist