feat(indexer): add include_dependencies flag to index full corpus#9
Merged
Conversation
Add a WalkOptions.include_dependencies flag so the indexer can include vendored/build directories (target, node_modules, .venv, etc.) instead of always applying the hardcoded skip-list. Threads the flag through index_codebase_with_language, the do_index_codebase / do_analyze_codebase handlers, and the index_codebase / analyze_codebase tool schemas. Defaults to false (legacy skip behavior preserved). Tests updated. Co-Authored-By: Claude Opus 4.8 <noreply@anthropic.com>
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.
Objectif
Permettre à l'indexeur d'inclure les répertoires vendored/build (
target,node_modules,.venv,__pycache__, etc.) au lieu d'appliquer systématiquement la skip-list codée en dur — nécessaire pour indexer l'intégralité du corpus des 11 repos anthropic-partnership (~6M nœuds vs ~693k par défaut) pour le cerveau/viz Cortex.Changements
src/indexer/walk.rs—WalkOptions { language_filter, include_dependencies }(structCopy) ;should_skip(name, include_dependencies):.gittoujours ignoré, sinon si le flag est vrai → rien n'est ignoré, sinon skip-list historique.src/indexer/mod.rs—index_codebase_with_languagereçoit un 4ᵉ paramètre ; le wrapper passefalse; testtest_include_dependencies_flag.src/main.rs—do_index_codebase+do_analyze_codebaseparsentargs["include_dependencies"](défautfalse).src/tool_schemas.rs— booléeninclude_dependenciesajouté aux schémasindex_codebase+analyze_codebase.false) :corpus_full.rs,graph_accuracy.rs,multilang_integration.rs,zera_hello.rs.Compatibilité
Défaut
false→ comportement historique (skip-list) préservé. Aucune régression de comportement par défaut.Vérification
cargo build --release+cargo test: tout vert (0 échec).🤖 Generated with Claude Code