{"_id":"@dreki-gg/pi-ast-grep","name":"@dreki-gg/pi-ast-grep","dist-tags":{"latest":"0.2.0"},"versions":{"0.2.0":{"name":"@dreki-gg/pi-ast-grep","version":"0.2.0","description":"Structural (AST-based) code search and rewrite tool for pi, powered by ast-grep","keywords":["pi-package","pi","ast-grep","refactor","search"],"author":{"name":"Juan Albarran","email":"jalbarrandev@gmail.com"},"license":"MIT","repository":{"type":"git","url":"git+https://github.com/dreki-gg/pi-extensions.git","directory":"packages/ast-grep"},"type":"module","scripts":{"typecheck":"tsc --noEmit","lint":"oxlint extensions","format":"oxfmt --write extensions","format:check":"oxfmt --check extensions"},"pi":{"extensions":["./extensions/ast-grep"]},"devDependencies":{"@types/node":"24","oxfmt":"^0.43.0","oxlint":"^1.58.0","typescript":"^6.0.0"},"peerDependencies":{"@earendil-works/pi-coding-agent":"*","typebox":"*"},"peerDependenciesMeta":{"@earendil-works/pi-coding-agent":{"optional":true},"typebox":{"optional":true}},"gitHead":"3d86538d4bf92279ed000a45ee42dcd71ac11ec6","_id":"@dreki-gg/pi-ast-grep@0.2.0","bugs":{"url":"https://github.com/dreki-gg/pi-extensions/issues"},"homepage":"https://github.com/dreki-gg/pi-extensions#readme","_nodeVersion":"26.5.0","_npmVersion":"11.17.0","dist":{"integrity":"sha512-dPFbQM9JmTVQvxSYtp0+JPNyTosB/y0lb0LxEulPkLWkAGcLHiRaprYSFr00ui5/3+qfLq1VTjWw9T2j46xF0g==","shasum":"5758d615c83bd8609ccad74c99ea3c90cdb59758","tarball":"https://registry.npmjs.org/@dreki-gg/pi-ast-grep/-/pi-ast-grep-0.2.0.tgz","fileCount":3,"unpackedSize":4620,"signatures":[{"keyid":"SHA256:DhQ8wR5APBvFHLF/+Tc+AYvPOdTpcIDqOhxsBHRwC7U","sig":"MEUCIQC0MQh4e4vH7wavYORIfCCBZVI5Oy7nnezBF6W7aJ5j3wIgG1uTi8/qghdq9KRJZlJrNs1NWSP00aKWNFwhGM173/0="}]},"_npmUser":{"name":"jalbarrang","email":"jalbarrandev@gmail.com"},"directories":{},"maintainers":[{"name":"jalbarrang","email":"jalbarrandev@gmail.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages-npm-production","tmp":"tmp/pi-ast-grep_0.2.0_1783716543741_0.08551192617434933"},"_hasShrinkwrap":false}},"time":{"created":"2026-07-10T20:49:03.650Z","0.2.0":"2026-07-10T20:49:03.868Z","modified":"2026-07-10T20:49:04.114Z"},"maintainers":[{"name":"jalbarrang","email":"jalbarrandev@gmail.com"}],"description":"Structural (AST-based) code search and rewrite tool for pi, powered by ast-grep","homepage":"https://github.com/dreki-gg/pi-extensions#readme","keywords":["pi-package","pi","ast-grep","refactor","search"],"repository":{"type":"git","url":"git+https://github.com/dreki-gg/pi-extensions.git","directory":"packages/ast-grep"},"author":{"name":"Juan Albarran","email":"jalbarrandev@gmail.com"},"bugs":{"url":"https://github.com/dreki-gg/pi-extensions/issues"},"license":"MIT","readme":"# @dreki-gg/pi-ast-grep\n\nStructural (AST-based) code search and rewrite tool for [pi](https://github.com/earendil-works/pi-coding-agent), powered by [`ast-grep`](https://ast-grep.github.io/).\n\nRegisters the `ast_grep` tool. Prefer it over text grep when matching code *shape* — call shapes like `console.log($A)`, function/class definitions, imports, or refactors.\n\n## Requirements\n\n`ast-grep` (alias `sg`) must be installed on your `PATH`.\n\n## Parameters\n\n- `pattern` — ast-grep pattern, e.g. `console.log($A)`\n- `lang` — `ts`, `tsx`, `js`, `jsx`, `py`, `go`, `rust`, `java`, …\n- `path` — file or dir to search (default `.`)\n- `rewrite` — replacement pattern\n- `updateAll` — apply the rewrite to disk (default false = dry-run diff)\n","readmeFilename":"README.md","_rev":"1-0c5ad24139f8f55631865064f592469a"}