Skip to content

feat: add scaffolders commands for the public Scaffolder API - #237

Merged
jeff-schnitter merged 1 commit into
mainfrom
aw/scaffolders-commands
Aug 19, 2026
Merged

feat: add scaffolders commands for the public Scaffolder API#237
jeff-schnitter merged 1 commit into
mainfrom
aw/scaffolders-commands

Conversation

@akwirick

Copy link
Copy Markdown
Contributor

Adds cortex scaffolders commands against the new public Scaffolder template API (/api/v1/scaffolders, brain-backend CD-390 / PRs #16730/#16731/#16732):

Command Endpoint Notes
scaffolders list GET /api/v1/scaffolders paginated; table/CSV output supported
scaffolders get -t <tagOrId> GET /api/v1/scaffolders/{tagOrId} --yaml for YAML output
scaffolders create -f <file> POST /api/v1/scaffolders upsert-by-tag; JSON or YAML input
scaffolders update -t <tagOrId> -f <file> PUT /api/v1/scaffolders/{tagOrId} full replace; 404 if missing
scaffolders delete -t <tagOrId> DELETE /api/v1/scaffolders/{tagOrId} soft delete

Notes:

  • The API is gated server-side by the workflows.enablePublicScaffolderApi feature flag (403 with a help@cortex.io pointer when off), so tests/test_scaffolders.py skips when the tenant doesn't have it enabled.
  • The CRUD test also skips if create fails, since template creation validates the fixture repo through the tenant's git integration; the fixture repo/org in data/import/scaffolders/ may need to be pointed at a real template repo for the test tenant.

Session: 7c802bc6 · Worktree: cli/primary

🤖 Generated with Claude Code

Adds `cortex scaffolders list|get|create|update|delete` against
/api/v1/scaffolders. The API is flag-gated server-side, so the tests
skip when the tenant returns 403.

Co-Authored-By: Claude Fable 5 <noreply@anthropic.com>
@jeff-schnitter
jeff-schnitter merged commit 443a16b into main Aug 19, 2026
4 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants