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
37 changes: 24 additions & 13 deletions .github/workflows/build_registry.py
Original file line number Diff line number Diff line change
Expand Up @@ -556,35 +556,41 @@ def build_registry(dry_run: bool = False):
if not agents:
print("\nWarning: No agents found")

JETBRAINS_EXCLUDE_IDS = {"codex-acp", "claude-acp", "junie"}
jetbrains_agent_count = len([a for a in agents if a["id"] not in JETBRAINS_EXCLUDE_IDS])
# Agents excluded from registry.json (default registry)
DEFAULT_EXCLUDE_IDS = {"github-copilot"}
# Agents excluded from registry-for-jetbrains.json
JETBRAINS_EXCLUDE_IDS = {"codex-acp", "claude-acp", "junie", "github-copilot-cli"}

default_agents = [a for a in agents if a["id"] not in DEFAULT_EXCLUDE_IDS]
jetbrains_agents = [a for a in agents if a["id"] not in JETBRAINS_EXCLUDE_IDS]

if dry_run:
print(f"\nDry run: validated {len(agents)} agents successfully")
print(f" registry.json would contain {len(agents)} agents")
excluded = ", ".join(JETBRAINS_EXCLUDE_IDS)
print(
f" registry.json would contain {len(default_agents)} agents"
f" (excluded: {', '.join(sorted(DEFAULT_EXCLUDE_IDS))})"
)
print(
f" registry-for-jetbrains.json would contain "
f"{jetbrains_agent_count} agents (excluded: {excluded})"
f"{len(jetbrains_agents)} agents (excluded: {', '.join(sorted(JETBRAINS_EXCLUDE_IDS))})"
)
return

registry = {"version": REGISTRY_VERSION, "agents": agents, "extensions": []}

# Create dist directory
dist_dir = registry_dir / "dist"
dist_dir.mkdir(exist_ok=True)

# Write registry.json
registry = {"version": REGISTRY_VERSION, "agents": default_agents, "extensions": []}
output_path = dist_dir / "registry.json"
with open(output_path, "w") as f:
json.dump(registry, f, indent=2)
f.write("\n")

# Write registry-for-jetbrains.json (without codex and claude)
# Write registry-for-jetbrains.json
jetbrains_registry = {
"version": REGISTRY_VERSION,
"agents": [a for a in agents if a["id"] not in JETBRAINS_EXCLUDE_IDS],
"agents": jetbrains_agents,
}
jetbrains_output_path = dist_dir / "registry-for-jetbrains.json"
with open(jetbrains_output_path, "w") as f:
Expand All @@ -606,10 +612,15 @@ def build_registry(dry_run: bool = False):
schema_dst = dist_dir / schema_file
schema_dst.write_bytes(schema_src.read_bytes())

print(f"\nBuilt dist/ with {len(agents)} agents")
print(f" registry.json: {len(agents)} agents")
excluded = ", ".join(JETBRAINS_EXCLUDE_IDS)
print(f" registry-for-jetbrains.json: {jetbrains_agent_count} agents (excluded: {excluded})")
print(f"\nBuilt dist/ with {len(agents)} total agents")
print(
f" registry.json: {len(default_agents)} agents"
f" (excluded: {', '.join(sorted(DEFAULT_EXCLUDE_IDS))})"
)
print(
f" registry-for-jetbrains.json: {len(jetbrains_agents)} agents"
f" (excluded: {', '.join(sorted(JETBRAINS_EXCLUDE_IDS))})"
)


if __name__ == "__main__":
Expand Down
19 changes: 19 additions & 0 deletions github-copilot-cli/agent.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,19 @@
{
"id": "github-copilot-cli",
"name": "GitHub Copilot",
"version": "0.0.420",
"description": "GitHub's AI pair programmer",
"repository": "https://github.com/github/copilot-cli",
"authors": [
"Microsoft"
],
"license": "proprietary",
"distribution": {
"npx": {
"package": "@github/copilot@0.0.420",
"args": [
"--acp"
]
}
}
}
5 changes: 5 additions & 0 deletions github-copilot-cli/icon.svg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.