mirror of
https://github.com/DeusData/codebase-memory-mcp.git
synced 2026-11-03 08:03:38 +08:00
Language expansion (13 → 25): Add Ruby, C, Bash, Zig, Elixir, Haskell, OCaml, HTML, CSS, YAML, TOML, HCL with tree-sitter grammars and language specs. Restore Erlang and SQL with extraction fixes. CLI install/update/uninstall commands: Auto-detect Claude Code and Codex CLI, register MCP server, install task-specific skills, self-update with SHA-256 verification. Embedded skills (4): exploring, tracing, quality, reference — auto-trigger in Claude Code for graph-first code discovery. Pipeline improvements: Docstring extraction, enrichment pass for params/returns/complexity, graceful context cancellation, improved test detection. 35-language benchmark (BENCHMARK.md): 12 questions × 35 repos, 91.8% overall score, Linux kernel stress test (20K nodes, zero timeouts). Replaces old benchmark artifacts.
36 lines
1.0 KiB
Go
36 lines
1.0 KiB
Go
package lang
|
|
|
|
func init() {
|
|
Register(&LanguageSpec{
|
|
Language: PHP,
|
|
FileExtensions: []string{".php"},
|
|
FunctionNodeTypes: []string{
|
|
"function_static_declaration",
|
|
"anonymous_function",
|
|
"function_definition",
|
|
"arrow_function",
|
|
"method_declaration",
|
|
},
|
|
ClassNodeTypes: []string{
|
|
"trait_declaration",
|
|
"enum_declaration",
|
|
"interface_declaration",
|
|
"class_declaration",
|
|
},
|
|
ModuleNodeTypes: []string{"program"},
|
|
CallNodeTypes: []string{
|
|
"member_call_expression",
|
|
"scoped_call_expression",
|
|
"function_call_expression",
|
|
"nullsafe_member_call_expression",
|
|
},
|
|
|
|
BranchingNodeTypes: []string{"if_statement", "for_statement", "foreach_statement", "while_statement", "switch_statement", "case_statement", "try_statement", "catch_clause"},
|
|
VariableNodeTypes: []string{"expression_statement"},
|
|
AssignmentNodeTypes: []string{"assignment_expression"},
|
|
ThrowNodeTypes: []string{"throw_expression"},
|
|
DecoratorNodeTypes: []string{"attribute_group"},
|
|
EnvAccessFunctions: []string{"getenv", "env"},
|
|
})
|
|
}
|