Skip to content

Commit d61b7f7

Browse files
committed
Add registry-for-jetbrains.json without codex-acp
Generate a separate registry file for JetBrains IDEs that excludes codex-acp. Both files are uploaded to CDN, but only registry.json is included in GitHub releases.
1 parent 93646f8 commit d61b7f7

File tree

2 files changed

+20
-2
lines changed

2 files changed

+20
-2
lines changed

.github/workflows/build-registry.yml

Lines changed: 5 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -63,11 +63,14 @@ jobs:
6363
run: |
6464
VERSION="v$(date +%Y.%m.%d)-$(git rev-parse --short HEAD)"
6565
66-
# Create versioned release
66+
# Create versioned release (exclude registry-for-jetbrains.json)
6767
gh release create "$VERSION" \
6868
--title "Registry $VERSION" \
6969
--notes "Auto-generated registry index" \
70-
dist/*
70+
dist/registry.json \
71+
dist/agent.schema.json \
72+
dist/registry.schema.json \
73+
dist/*.svg
7174
7275
# Delete old 'latest' tag and release
7376
gh release delete latest --yes --cleanup-tag || true

.github/workflows/build_registry.py

Lines changed: 15 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -586,6 +586,18 @@ def build_registry():
586586
json.dump(registry, f, indent=2)
587587
f.write("\n")
588588

589+
# Write registry-for-jetbrains.json (without codex)
590+
JETBRAINS_EXCLUDE_IDS = {"codex-acp"}
591+
jetbrains_registry = {
592+
"version": REGISTRY_VERSION,
593+
"agents": [a for a in agents if a["id"] not in JETBRAINS_EXCLUDE_IDS],
594+
"extensions": extensions,
595+
}
596+
jetbrains_output_path = dist_dir / "registry-for-jetbrains.json"
597+
with open(jetbrains_output_path, "w") as f:
598+
json.dump(jetbrains_registry, f, indent=2)
599+
f.write("\n")
600+
589601
# Copy icons to dist (for both agents and extensions)
590602
for entry in agents + extensions:
591603
entry_id = entry["id"]
@@ -601,7 +613,10 @@ def build_registry():
601613
schema_dst = dist_dir / schema_file
602614
schema_dst.write_bytes(schema_src.read_bytes())
603615

616+
jetbrains_agent_count = len(jetbrains_registry["agents"])
604617
print(f"\nBuilt dist/ with {len(agents)} agents and {len(extensions)} extensions")
618+
print(f" registry.json: {len(agents)} agents")
619+
print(f" registry-for-jetbrains.json: {jetbrains_agent_count} agents (excluded: {', '.join(JETBRAINS_EXCLUDE_IDS)})")
605620

606621

607622
if __name__ == "__main__":

0 commit comments

Comments
 (0)