Make Codex 1C context packages self contained
This commit is contained in:
@@ -1708,10 +1708,16 @@ def test_ai_structure_prepare_writes_ai_ready_package(tmp_path: Path):
|
||||
assert (output / "sir_snapshot.json").exists()
|
||||
assert (codex_package / "AGENTS.md").exists()
|
||||
assert (codex_package / "README.md").exists()
|
||||
assert (codex_package / "context" / "CODEX_START_HERE.md").exists()
|
||||
assert (codex_package / "context" / "project-overview.md").exists()
|
||||
assert (codex_package / "indexes" / "codex-navigation.json").exists()
|
||||
assert (codex_package / "indexes" / "objects.json").exists()
|
||||
assert (codex_package / "indexes" / "source-map.json").exists()
|
||||
assert (codex_package / "raw" / "normalized_project.json").exists()
|
||||
assert (codex_package / "source" / "metadata.xml").exists()
|
||||
assert (codex_package / "source" / "Интеграция.bsl").read_text(encoding="utf-8").startswith("Процедура")
|
||||
assert "generated by SFERA for Codex" in (codex_package / "AGENTS.md").read_text(encoding="utf-8")
|
||||
assert "Use `source/`" in (codex_package / "AGENTS.md").read_text(encoding="utf-8")
|
||||
assert "Copy this whole folder into the Codex project" in (codex_package / "README.md").read_text(encoding="utf-8")
|
||||
assert "Treat modules/forms/commands as parts" in (output / "ai_context.md").read_text(encoding="utf-8")
|
||||
|
||||
|
||||
Reference in New Issue
Block a user