gwj001/arch-lens--packages-code-index-tree-sitter2

@deepseek-ai/dsh-code-index-tree-sitter

tree-sitter provider for the code-index seam: TypeScript/Python/Java entity and import extraction over a workspace

包名
@deepseek-ai/dsh-code-index-tree-sitter
版本
0.1.0-rc.1
许可证
MIT
最近更新
2026年9月7日

安装

此插件尚未提供可验证的 bundle,或兼容性检查未通过。请先阅读仓库说明。 阅读完整 README ↗

@deepseek-ai/dsh-code-index-tree-sitter

tree-sitter provider for the code-index seam: offline, syntax-level TypeScript/Python/Java entity and import extraction over a workspace.

Model Experience

  • Model-visible inputs: none directly — consumers decide what reaches a model request (arch-lens feeds extracted entities/imports into explain prompts).
  • Token effects: none from indexing; extraction is offline AST work.
  • KV-cache effects: none.

Role in the seam

  • Provider of ctx.codeIndex (indexWorkspace(root) → packages with entities/imports/composition/entry files, plus manifest deps).
  • Consumer: @deepseek-ai/dsh-arch-lens-backend (precise graphs and code-grounded explains).

Extraction coverage

LanguageImportsEntitiesCompositionModifiers
TypeScriptimport/import type/namespace/namedclass/interface/enum/type-alias/functionclass → methods/fieldsdecorators
Pythonimport/from x import yclass/functionclass → methodsdecorators
Javaimportclass/interface/enum/recordclass → methods/fields/constructorsannotations

Indexing skips node_modules/dist/build/venv/target/lib and is bounded per package (400 files, 256 KiB per file).

Known Limitations and Deferred Work

  • Syntax-level only; cross-file call resolution is left to consumers via the import graph. No LSP-backed semantic indexing (deliberate: process weight and per-language servers outweigh the value for graph precision).
  • Python manifest dependencies are best-effort ([project].dependencies / poetry lines); Gradle dependencies are not parsed (pom.xml only).