Coevolution extension

This commit is contained in:
2026-04-29 01:19:59 +02:00
parent 88afdc09fd
commit 991c34ce52
17 changed files with 764 additions and 4 deletions

View File

@@ -65,3 +65,20 @@ def test_content_extractor_ignores_unindexed_and_missing_paths(tmp_path):
)
assert chunks == []
def test_content_extractor_chunks_provider_related_config(tmp_path):
repo = tmp_path / "repo"
repo.mkdir()
(repo / ".env.example").write_text("OPENROUTER_API_KEY=\n", encoding="utf-8")
chunks = ContentExtractor().extract(
repo,
[
fact(1, "credential_config", "OpenRouter API key", ".env.example"),
],
)
assert len(chunks) == 1
assert chunks[0].path == ".env.example"
assert "OPENROUTER_API_KEY" in chunks[0].text