mirror of
https://github.com/DeusData/codebase-memory-mcp.git
synced 2026-10-27 06:53:11 +08:00
Performance & quality: - Transaction wrapping (Querier interface, single tx per index run) - Composite indexes on edges table for faster traversals - Cypher WHERE push-down (=, CONTAINS, STARTS WITH → SQL) - golangci-lint with 25 linters, zero violations - 11 benchmarks for pipeline, search, and BFS Incremental indexing: - Content-hash based file change detection - Dependency-aware two-level invalidation (changed + dependents) - Stale file cleanup for deleted files Async boundary detection: - Project-wide env var URL scanner (Dockerfile, YAML, .tf, .sh, .env, TOML, properties files) with 3-layer secret exclusion - Env var default extraction in constant propagation (getEnv, os.environ.get, process.env with ||/?? fallback) - ASYNC_CALLS edge type for Cloud Tasks, Pub/Sub, SQS/SNS, RabbitMQ, Kafka dispatch patterns, separate from synchronous HTTP_CALLS - Tool descriptions updated with all edge types Other improvements: - Type inference for method dispatch resolution - Interface implementation detection (IMPLEMENTS edges) - Improved tool descriptions for discoverability
21 lines
565 B
Go
21 lines
565 B
Go
package lang
|
|
|
|
func init() {
|
|
Register(&LanguageSpec{
|
|
Language: Java,
|
|
FileExtensions: []string{".java"},
|
|
FunctionNodeTypes: []string{"method_declaration", "constructor_declaration"},
|
|
ClassNodeTypes: []string{
|
|
"class_declaration",
|
|
"interface_declaration",
|
|
"enum_declaration",
|
|
"annotation_type_declaration",
|
|
"record_declaration",
|
|
},
|
|
ModuleNodeTypes: []string{"program"},
|
|
CallNodeTypes: []string{"method_invocation"},
|
|
ImportNodeTypes: []string{"import_declaration"},
|
|
ImportFromTypes: []string{"import_declaration"},
|
|
})
|
|
}
|