feat: repoint template commands to crewAIInc-fde org (#6394)

Point `crewai template list`/`template add` at the crewAIInc-fde GitHub
org so the FDE template_* repos are listed and installed instead of the
crewAIInc ones.

Co-authored-by: Cursor <cursoragent@cursor.com>
Co-authored-by: Lorenze Jay <63378463+lorenzejay@users.noreply.github.com>
This commit is contained in:
Daniel Barreto
2026-06-30 15:32:54 -03:00
committed by GitHub
parent c157199065
commit ba855bae2b
2 changed files with 3 additions and 3 deletions

View File

@@ -17,7 +17,7 @@ from crewai_cli.command import BaseCommand
logger = logging.getLogger(__name__)
console = Console()
GITHUB_ORG = "crewAIInc"
GITHUB_ORG = "crewAIInc-fde"
TEMPLATE_PREFIX = "template_"
GITHUB_API_BASE = "https://api.github.com"
@@ -218,7 +218,7 @@ class TemplateCommand(BaseCommand):
def _extract_zip(self, zip_bytes: bytes, dest: str) -> None:
"""Extract a GitHub zipball into dest, stripping the top-level directory."""
with zipfile.ZipFile(io.BytesIO(zip_bytes)) as zf:
# GitHub zipballs have a single top-level dir like 'crewAIInc-template_xxx-<sha>/'
# GitHub zipballs have a single top-level dir like 'crewAIInc-fde-template_xxx-<sha>/'
members = zf.namelist()
if not members:
click.secho("Downloaded archive is empty.", fg="red")

View File

@@ -24,7 +24,7 @@ SAMPLE_REPOS = [
]
def _make_zipball(files: dict[str, str], top_dir: str = "crewAIInc-template_test-abc123") -> bytes:
def _make_zipball(files: dict[str, str], top_dir: str = "crewAIInc-fde-template_test-abc123") -> bytes:
"""Create an in-memory zipball mimicking GitHub's format."""
buf = io.BytesIO()
with zipfile.ZipFile(buf, "w") as zf: