Commit 588a63f
feat: add agent branch support to CLI (#66)
* feat: add agent branch support to CLI (#56)
Add support for working with agent branches, allowing users to list
branches, and pull/push from specific branches instead of only main.
New commands:
- `elevenlabs agents branches list --agent <id>` with --include-archived
- `elevenlabs agents pull --agent <id> --branch <name_or_id>`
- `elevenlabs agents push --agent <id> --branch <name_or_id>`
Branch identification accepts both human-readable names and IDs
(auto-detected by agtbrch_ prefix). --branch requires --agent since
branch names are per-agent.
Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
* feat: add persistent branch config storage for CI/CD workflows
Branch configs are now stored as separate files in agent_configs/ and
tracked in agents.json under a `branches` map per agent, enabling
git-based version control and CI/CD pipelines.
New features:
- `pull --all-branches`: fetch all branches as separate config files
- `pull --branch <name>`: now persistently stores branch config
- `push`: auto-pushes all registered branch configs alongside main
- `init`: updated next-steps with branch workflow guidance
Schema: agents.json entries now support an optional `branches` map:
{ "staging": { "config": "agent_configs/Agent.staging.json",
"branch_id": "agtbrch_xxx", "version_id": "ver_xxx" } }
Fully backward compatible - agents without branches work unchanged.
Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
* fix: address code review findings
- Fix variable shadowing: rename inner agentId to currentAgentId in
push-impl.ts loop body to avoid confusion with the parameter
- Fix dry-run: restructure push-impl.ts so --dry-run previews branch
pushes instead of skipping them (previously dead code)
- Fix React key: use branch.id instead of array index in BranchesListView
Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
* docs: add branch support documentation to README
- Add branch support to features list
- Show branch config files in directory structure
- Document branch commands (branches list, --branch, --all-branches)
- Add Branch Workflows section with CI/CD pipeline example
- Document agents.json branches schema
Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
* fix: address bugs in agent branch support
- Fall back to non-UI codepath for --all-branches (UI view doesn't
support it, was silently ignored)
- Auto-push registered branch configs in PushView UI mode (previously
only worked with --no-ui)
- Fix main branch duplication in pullAllBranches when branch_id is
unset on the agent entry (fall back to name="main" check)
- Move dry-run check before client init and branch resolution in
push-impl so --dry-run doesn't make network calls
- Remove redundant resolveBranchId call in PullView (resolve once in
initial effect, pass through to processNextAgent)
- Include archived branches when resolving branch names so resolution
doesn't silently fail for archived branches
Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
---------
Co-authored-by: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
Co-authored-by: Boris Starkov <boris.starkow@gmail.com>1 parent 58f1554 commit 588a63f
File tree
16 files changed
+1055
-32
lines changed- src
- __tests__
- agents
- commands
- ui
16 files changed
+1055
-32
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
15 | 15 | | |
16 | 16 | | |
17 | 17 | | |
| 18 | + | |
18 | 19 | | |
19 | 20 | | |
20 | 21 | | |
| |||
102 | 103 | | |
103 | 104 | | |
104 | 105 | | |
105 | | - | |
| 106 | + | |
106 | 107 | | |
107 | 108 | | |
108 | 109 | | |
| 110 | + | |
| 111 | + | |
109 | 112 | | |
110 | 113 | | |
111 | 114 | | |
| |||
158 | 161 | | |
159 | 162 | | |
160 | 163 | | |
161 | | - | |
162 | | - | |
| 164 | + | |
| 165 | + | |
| 166 | + | |
| 167 | + | |
| 168 | + | |
| 169 | + | |
| 170 | + | |
| 171 | + | |
163 | 172 | | |
164 | 173 | | |
165 | 174 | | |
| |||
173 | 182 | | |
174 | 183 | | |
175 | 184 | | |
| 185 | + | |
| 186 | + | |
| 187 | + | |
| 188 | + | |
| 189 | + | |
| 190 | + | |
176 | 191 | | |
177 | 192 | | |
178 | 193 | | |
| |||
339 | 354 | | |
340 | 355 | | |
341 | 356 | | |
| 357 | + | |
| 358 | + | |
| 359 | + | |
| 360 | + | |
| 361 | + | |
| 362 | + | |
| 363 | + | |
| 364 | + | |
| 365 | + | |
| 366 | + | |
| 367 | + | |
| 368 | + | |
| 369 | + | |
| 370 | + | |
| 371 | + | |
| 372 | + | |
| 373 | + | |
| 374 | + | |
| 375 | + | |
| 376 | + | |
| 377 | + | |
| 378 | + | |
| 379 | + | |
| 380 | + | |
| 381 | + | |
| 382 | + | |
| 383 | + | |
| 384 | + | |
| 385 | + | |
| 386 | + | |
| 387 | + | |
| 388 | + | |
| 389 | + | |
| 390 | + | |
| 391 | + | |
| 392 | + | |
| 393 | + | |
| 394 | + | |
| 395 | + | |
| 396 | + | |
| 397 | + | |
| 398 | + | |
| 399 | + | |
| 400 | + | |
| 401 | + | |
| 402 | + | |
342 | 403 | | |
343 | 404 | | |
344 | 405 | | |
345 | 406 | | |
346 | 407 | | |
347 | 408 | | |
348 | | - | |
| 409 | + | |
349 | 410 | | |
350 | 411 | | |
351 | 412 | | |
| |||
0 commit comments