Skip to content

Self-evolving Context Database for AI Agents. Unify Agent Memory, Knowledge RAG and Skills.

feat(parse): add support for .inl file extension (#1176)

yepper80c17a09584c
diff --git a/openviking/parse/parsers/constants.py b/openviking/parse/parsers/constants.py
index 51ae55b35..3377d78f3 100644
--- a/openviking/parse/parsers/constants.py
+++ b/openviking/parse/parsers/constants.py
@@ -101,6 +101,7 @@ CODE_EXTENSIONS = {
".c",
".h",
".hpp",
+ ".inl",
".cs",
".js",
".ts",
diff --git a/tests/parse/test_directory_scan.py b/tests/parse/test_directory_scan.py
index 72781d2d6..1dc25c001 100644
--- a/tests/parse/test_directory_scan.py
+++ b/tests/parse/test_directory_scan.py
@@ -36,6 +36,7 @@ def tmp_tree(tmp_path: Path) -> Path:
# text (code/config, no dedicated parser or text parser only): .py, .yaml
(tmp_path / "main.py").write_text("print(1)", encoding="utf-8")
(tmp_path / "engine.cc").write_text("int main() { return 0; }", encoding="utf-8")
+ (tmp_path / "inline.inl").write_text("inline impl", encoding="utf-8")
(tmp_path / "config.yaml").write_text("key: value", encoding="utf-8")
# unsupported: unknown extension
@@ -138,6 +139,7 @@ class TestScanDirectoryClassification:
processable_rel = [f.rel_path for f in result.processable]
assert "main.py" in processable_rel
assert "engine.cc" in processable_rel
+ assert "inline.inl" in processable_rel
assert "config.yaml" in processable_rel
assert "src/app.py" in processable_rel