mirror of
https://github.com/DeusData/codebase-memory-mcp.git
synced 2026-12-03 04:27:30 +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.
26 lines
891 B
Go
26 lines
891 B
Go
package lang
|
|
|
|
func init() {
|
|
Register(&LanguageSpec{
|
|
Language: Elixir,
|
|
FileExtensions: []string{".ex", ".exs"},
|
|
// Elixir uses "call" for everything (homoiconic), but we only want
|
|
// definition forms (def, defp, defmacro) in FunctionNodeTypes.
|
|
// The pipeline has custom Elixir handling to classify call nodes.
|
|
FunctionNodeTypes: []string{
|
|
"call", // classified by pipeline: def/defp → Function, defmodule → Class
|
|
},
|
|
ClassNodeTypes: []string{}, // handled by custom extraction (defmodule)
|
|
ModuleNodeTypes: []string{"source"},
|
|
CallNodeTypes: []string{"call", "dot"},
|
|
ImportNodeTypes: []string{"call"},
|
|
|
|
BranchingNodeTypes: []string{
|
|
"call", // if/cond/case are macro calls in Elixir
|
|
},
|
|
VariableNodeTypes: []string{"binary_operator"},
|
|
AssignmentNodeTypes: []string{"binary_operator"},
|
|
EnvAccessFunctions: []string{"System.get_env"},
|
|
})
|
|
}
|