Self-evolving Context Database for AI Agents. Unify Agent Memory, Knowledge RAG and Skills.
Python agent-contextagent-memoryagent-pluginsagentic-ragcontext-databasedsh-pluginknowledge-basememorymemory-managementself-evolvingvector-database
fix(parse): import extensionless README files (#3394)
Wu JiaCheng63c878e60efa
diff --git a/openviking/parse/parsers/upload_utils.py b/openviking/parse/parsers/upload_utils.pyindex fdf43ad87..8211d3a3f 100644--- a/openviking/parse/parsers/upload_utils.py+++ b/openviking/parse/parsers/upload_utils.py@@ -23,6 +23,7 @@ logger = get_logger(__name__)# Common text files that have no extension but should be treated as text._EXTENSIONLESS_TEXT_NAMES: Set[str] = {+ "README","LICENSE","LICENCE","MAKEFILE",diff --git a/tests/parse/test_directory_scan.py b/tests/parse/test_directory_scan.pyindex d152f91f2..02fedef52 100644--- a/tests/parse/test_directory_scan.py+++ b/tests/parse/test_directory_scan.py@@ -117,6 +117,16 @@ class TestScanDirectoryTraversal:class TestScanDirectoryClassification:"""Test processable / unsupported classification."""+ def test_processable_includes_extensionless_readme(+ self, tmp_path: Path, registry: ParserRegistry+ ) -> None:+ (tmp_path / "README").write_text("# Project", encoding="utf-8")++ result = scan_directory(tmp_path, registry=registry, strict=True)++ assert [file.rel_path for file in result.processable] == ["README"]+ assert result.unsupported == []+def test_processable_includes_parser_files(self, tmp_tree: Path, registry: ParserRegistry) -> None: