mirror of
https://github.com/DeusData/codebase-memory-mcp.git
synced 2026-11-03 08:03:38 +08:00
Major changes: - Store router: per-project SQLite databases with automatic migration - Pipeline enrichment: community detection, inheritance, decorators, read/write tracking, test detection, type usage, exception flows, configuration relationships - Update checker: lightweight GitHub release check on startup, injects update_available into first tool response - Language support: enhanced extraction for C++, C#, Go, Java, JavaScript, Lua, PHP, Python, Rust, Scala, TSX, TypeScript - Cypher executor: improved query execution with better aggregation and pattern matching - HTTP link detection: cross-service HTTP call inference - CLI mode: extended with --raw flag, human-friendly summaries for all tools - Search: sort_by support, exclude_labels, glob matching improvements - AST debug tool for parser development
27 lines
1.1 KiB
Go
27 lines
1.1 KiB
Go
package lang
|
|
|
|
func init() {
|
|
Register(&LanguageSpec{
|
|
Language: JavaScript,
|
|
FileExtensions: []string{".js", ".jsx"},
|
|
FunctionNodeTypes: []string{
|
|
"function_declaration",
|
|
"generator_function_declaration",
|
|
"function_expression",
|
|
"arrow_function",
|
|
"method_definition",
|
|
},
|
|
ClassNodeTypes: []string{"class_declaration", "class"},
|
|
ModuleNodeTypes: []string{"program"},
|
|
CallNodeTypes: []string{"call_expression"},
|
|
ImportNodeTypes: []string{"import_statement", "lexical_declaration", "export_statement"},
|
|
ImportFromTypes: []string{"import_statement", "lexical_declaration", "export_statement"},
|
|
|
|
BranchingNodeTypes: []string{"if_statement", "for_statement", "for_in_statement", "while_statement", "switch_statement", "case_clause", "try_statement", "catch_clause"},
|
|
VariableNodeTypes: []string{"lexical_declaration", "variable_declaration"},
|
|
AssignmentNodeTypes: []string{"assignment_expression", "augmented_assignment_expression"},
|
|
ThrowNodeTypes: []string{"throw_statement"},
|
|
EnvAccessMemberPatterns: []string{"process.env"},
|
|
})
|
|
}
|