Skip to content

feat(agents): expand AR CLI surface#8237

Draft
VaibhavAcharya wants to merge 4 commits intomainfrom
feat/agents-cli-revamp
Draft

feat(agents): expand AR CLI surface#8237
VaibhavAcharya wants to merge 4 commits intomainfrom
feat/agents-cli-revamp

Conversation

@VaibhavAcharya
Copy link
Copy Markdown
Contributor

Summary

Expands netlify agents to use the full agent_runners API surface. Adds 7 new commands, extends create/list/show/stop with new flags, centralizes the API calls into a typed api.ts module, and replaces the static model whitelist with a live fetch from /api/v1/ai-gateway/providers.

New commands: follow-up, open, diff, pr, commit, publish, revert, archive, redeploy. New flags on existing commands: --watch, --session, --mode, --from-deploy, --parent, --dev-server-image, --attach, --branch/--user/--title/--since/--until/--page/--per-page/--account, --ndjson, --yes. Smarter defaults (local git branch detection, dirty/unpushed warnings) and renderer upgrades (hierarchical sessions, token + credit usage, conditional action hints, append-only watch ticker).

Test plan

  • npm run lint, npm run typecheck, npx prettier --check src/commands/agents/ — all clean
  • All 14 commands exercised end-to-end against the live API on a test site
  • Real diffs, file attachments (S3 upload), follow-up sessions, redeploy, archive, revert, publish all verified
  • Error paths verified for fake model IDs, invalid dates, missing files, no-repo PR/commit attempts
  • No new tests added in this PR — existing integration tests rely on stubbed responses; new tests deserve a follow-up

@coderabbitai
Copy link
Copy Markdown
Contributor

coderabbitai Bot commented May 7, 2026

Important

Review skipped

Draft detected.

Please check the settings in the CodeRabbit UI or the .coderabbit.yaml file in this repository. To trigger a single review, invoke the @coderabbitai review command.

⚙️ Run configuration

Configuration used: Organization UI

Review profile: CHILL

Plan: Pro

Run ID: 4066a551-cfce-4c96-bb5c-1e483a7ecf7d

You can disable this status message by setting the reviews.review_status to false in the CodeRabbit configuration file.

Use the checkbox below for a quick retry:

  • 🔍 Trigger review
✨ Finishing Touches
🧪 Generate unit tests (beta)
  • Create PR with unit tests
  • Commit unit tests in branch feat/agents-cli-revamp

Comment @coderabbitai help to get the list of available commands and usage tips.

@github-actions
Copy link
Copy Markdown

github-actions Bot commented May 7, 2026

📊 Benchmark results

Comparing with 07fa4d1

  • Dependency count: 1,061 (no change)
  • Package size: 357 MB (no change)
  • Number of ts-expect-error directives: 355 (no change)

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.

1 participant