Skip to content

feat: suggest next actions#40

Merged
designcode merged 8 commits intomainfrom
feat/next-actions
Mar 18, 2026
Merged

feat: suggest next actions#40
designcode merged 8 commits intomainfrom
feat/next-actions

Conversation

@designcode
Copy link
Copy Markdown
Collaborator

@designcode designcode commented Mar 17, 2026

Note

Medium Risk
Touches CLI-wide error handling and exit codes, which can change scripting/automation behavior and output formats (especially in --json mode). Changes are mostly centralized but applied across many commands, so regressions in exit paths are possible.

Overview
Adds a centralized exit/error system for the CLI. Introduces classifyError + exitWithError to map common error messages to stable exit codes (auth/not-found/rate-limit/network/general), emit structured JSON errors in --json mode, and show suggested remediation commands in TTY runs.

Propagates the new behavior across commands. Replaces many console.error/process.exit(1) call sites with exitWithError, sets a global __TIGRIS_JSON_MODE flag in the CLI core, suppresses printFailure output in JSON mode to avoid mixed output, and adds spec-driven success "Next steps" hints (messages.nextActions) that are also included in JSON success payloads for select commands.

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

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 is OFF. To automatically fix reported issues with cloud agents, enable autofix in the Cursor dashboard.

@designcode designcode merged commit d628663 into main Mar 18, 2026
3 checks passed
@designcode designcode deleted the feat/next-actions branch March 18, 2026 07:43
@github-actions
Copy link
Copy Markdown

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

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