feat: migrate lib/repo-map from ast-grep to agent-analyzer#9
Merged
Conversation
Reconstructed from full commit history. Groups changes into 6 releases (v0.0.1 through v0.4.0) covering the initial lib/ seed, CI/hooks setup, agent-knowledge submodule, binary resolver, git collector, template fixes, and the ANALYZER_MIN_VERSION v0.3.0 bump.
Remove 2717 lines of dead code (runner.js, queries/, concurrency.js,
usage-analyzer.js) that wrapped ast-grep. Replace with the agent-analyzer
path that auto-downloads the binary on first use.
- index.js: calls binary.runAnalyzerAsync(['repo-intel', init|update])
- installer.js: checks agent-analyzer availability, no ast-grep detection
- converter.js: translates repo-intel.json format to repo-map.json format
- updater.js: stripped to checkStaleness() + git helpers only (490 → 95 lines)
- Deleted: runner.js (1364 lines), queries/ (355 lines), concurrency.js (29 lines),
usage-analyzer.js (407 lines)
- API compat: checkAstGrepInstalled() kept as alias for checkInstalled()
|
Warning You have reached your daily quota limit. Please wait up to 24 hours and I will start processing your requests again! |
|
You have reached your Codex usage limits for code reviews. You can see your limits in the Codex usage dashboard. |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary
runner.js(1364),usage-analyzer.js(407),updater.jsdead paths (462),queries/(355),concurrency.js(29)index.js: usesbinary.runAnalyzerAsync(['repo-intel', 'init|update'])- no more ast-grep shell callsinstaller.js: checks agent-analyzer availability (auto-downloads on first use)converter.js: new file translatingrepo-intel.json→repo-map.jsonformat for backward compatupdater.js: stripped tocheckStaleness()+ git helpers only (490 → 95 lines)checkAstGrepInstalled()kept as compat alias forcheckInstalled()-docs-patterns.jscallers unaffectedWhen this merges, the agent-core sync will propagate to all consumer plugins (next-task, perf, audit-project, etc.), removing the dead ast-grep code from their
lib/repo-map/copies.Test plan
node -e "require('./lib/repo-map')"passesnode -e "require('./lib')"passes