feat(cli,core): dev refs CLI, callee normalization, token efficiency docs#28
Merged
Merged
Conversation
- New `dev refs <name>` command: callees, callers, --depends-on, --json - Normalize callee file paths: dist/ → src/, .d.ts → .ts, absolute → relative - Fix indexer passing empty exclude array (was bypassing scanner defaults) Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
- Add dev refs to CLI commands section with usage examples - Document graph caching (dependency-graph.json) in MCP tools section - Update dev_refs description to mention dependsOn parameter - Update agent prompts (bug-investigator, plan-reviewer, research-planner, quick-scout) to reference dependsOn for dependency chain tracing Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
- Validate --direction with Commander .choices() (rejects invalid values) - Use cached dependency graph for --depends-on (loadOrBuildGraph) - Pass excludePatterns/languages from config (parity with search command) - Use replaceAll for dist/ normalization (handles nested paths) - Note indexer.close() not needed in catch (process.exit cleans up) Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
1d2a1fe to
f118cb6
Compare
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
dev refs <name>CLI command — find callers/callees from the terminal with--direction,--depends-on,--jsondist/→src/,.d.ts→.ts, absolute → relative. Fixes hot paths showing build output instead of source files.Test plan
dev refs "isTestFile"shows callers + calleesdev maphot paths showpackages/logger/src/types.tsnotdist/types.d.ts🤖 Generated with Claude Code