Skip to content

feat: add --json and --yes for agents#39

Merged
designcode merged 6 commits intomainfrom
feat/agents-support
Mar 16, 2026
Merged

feat: add --json and --yes for agents#39
designcode merged 6 commits intomainfrom
feat/agents-support

Conversation

@designcode
Copy link
Copy Markdown
Collaborator

@designcode designcode commented Mar 13, 2026

Note

Medium Risk
Touches many CLI commands and their output/exit behavior, including destructive operations now requiring confirmation (or --yes) and new JSON output paths, which could break scripts relying on prior stdout/stderr formatting. CI/test workflow changes are low risk but broaden coverage and may surface new failures.

Overview
Adds first-class automation support to the CLI by introducing --json output across many commands (storage ops, IAM/access keys, whoami, etc.), and wiring specs to expose format/json flags consistently.

Hardens non-interactive execution by adding requireInteractive()/confirm() helpers and requiring confirmation for destructive/interactive flows unless --yes/--force is provided; cp/mv/rm also gain JSON-mode summaries and suppress per-item/progress output.

Updates CI by replacing the PR workflow with a unified CI workflow (build on PR/push, integration tests on push) and adjusts scripts/tests (test vs test:all, expanded unit/integration coverage) to validate new behaviors.

Written by Cursor Bugbot for commit 834d18b. This will update automatically on new commits. Configure here.

@designcode designcode force-pushed the feat/agents-support branch from cc1c3f6 to 7a4751e Compare March 13, 2026 19:15
Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
@designcode designcode force-pushed the feat/agents-support branch from 7a4751e to 834d18b Compare March 16, 2026 09:07
Copy link
Copy Markdown

@cursor cursor bot left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Cursor Bugbot has reviewed your changes and found 1 potential issue.

Fix All in Cursor

Bugbot Autofix prepared a fix for the issue found in the latest run.

  • ✅ Fixed: Duplicate requireInteractive guard inside promptLocations
    • Removed the redundant requireInteractive call from promptLocations so interactive-mode hints remain caller-specific and non-duplicative.

Create PR

Or push these changes by commenting:

@cursor push 1cc758f904
Preview (1cc758f904)
diff --git a/src/utils/locations.ts b/src/utils/locations.ts
--- a/src/utils/locations.ts
+++ b/src/utils/locations.ts
@@ -1,6 +1,5 @@
 import type { BucketLocations } from '@tigrisdata/storage';
 import enquirer from 'enquirer';
-import { requireInteractive } from './interactive.js';
 
 const { prompt } = enquirer;
 
@@ -87,8 +86,6 @@
 }
 
 export async function promptLocations(): Promise<BucketLocations> {
-  requireInteractive('Provide --locations flag');
-
   let locationType: string;
   try {
     ({ locationType } = await prompt<{ locationType: string }>({

This Bugbot Autofix run was free. To enable autofix for future PRs, go to the Cursor dashboard.

@designcode designcode merged commit 676d78e into main Mar 16, 2026
3 checks passed
@designcode designcode deleted the feat/agents-support branch March 16, 2026 14:34
@github-actions
Copy link
Copy Markdown

🎉 This PR is included in version 2.14.0-beta.1 🎉

The release is available on:

Your semantic-release bot 📦🚀

@github-actions
Copy link
Copy Markdown

🎉 This PR is included in version 2.14.0 🎉

The release is available on:

Your semantic-release bot 📦🚀

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants