Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
9 changes: 9 additions & 0 deletions integrations/catalog.json
Original file line number Diff line number Diff line change
Expand Up @@ -299,6 +299,15 @@
"author": "spec-kit-core",
"repository": "https://github.com/github/spec-kit",
"tags": ["cli", "skills", "z-ai"]
},
"zed": {
"id": "zed",
"name": "Zed",
"version": "1.0.0",
"description": "Zed editor skills-based integration",
"author": "spec-kit-core",
"repository": "https://github.com/github/spec-kit",
"tags": ["ide", "skills"]
}
}
}
23 changes: 23 additions & 0 deletions tests/integrations/test_registry.py
Original file line number Diff line number Diff line change
Expand Up @@ -244,3 +244,26 @@ def test_safe_integrations_have_disjoint_manifests(
f"{initial} and {additional} are declared multi-install safe but both manage "
f"these files: {sorted(initial_files & additional_files)}"
)


class TestCatalogParity:
"""The discovery catalog must list every registered integration."""

def test_every_registered_integration_is_in_catalog(self):
"""``integrations/catalog.json`` must cover every registry key.

The catalog is the discovery manifest; an integration that is
registered, registrar-aligned and registry-tested but missing from
the catalog is undiscoverable through it. ``generic`` is exempt —
it is the no-fixed-directory fallback, not a catalogued agent.
"""
from pathlib import Path

repo_root = Path(__file__).resolve().parents[2]
catalog = json.loads(
(repo_root / "integrations" / "catalog.json").read_text(encoding="utf-8")
)
catalogued = set(catalog["integrations"])
registered = set(INTEGRATION_REGISTRY) - {"generic"}
missing = sorted(registered - catalogued)
assert not missing, f"integrations missing from catalog.json: {missing}"
Loading