Skip to content

feat: make CLI agent-compatible with improved non-interactive support#115

Merged
belopash merged 3 commits intodevelopfrom
agentic-improve
Apr 17, 2026
Merged

feat: make CLI agent-compatible with improved non-interactive support#115
belopash merged 3 commits intodevelopfrom
agentic-improve

Conversation

@belopash
Copy link
Copy Markdown
Contributor

  • Add --help examples to all 15 commands that were missing them
  • Fix actionable error messages with concrete example invocations
  • Fix typo --allow--manifest-override (double dash) in deploy
  • Add missing --allow-postgres-deletion flag to deploy command
  • Fix init to fail fast when --template is missing in non-interactive mode
  • Fix logs pagination to auto-fetch all pages in non-interactive mode
  • Add interactive squid selection prompt to view command
  • Add --json flag to list command for machine-parseable output
  • Clean up --json output in view/list to strip manifest, packageJson, metrics
  • Add structured success output (squid, deploy_id, duration) to deploy/remove/restart
  • Improve --interactive flag description for clarity

- Add --help examples to all 15 commands that were missing them
- Fix actionable error messages with concrete example invocations
- Fix typo --allow--manifest-override (double dash) in deploy
- Add missing --allow-postgres-deletion flag to deploy command
- Fix init to fail fast when --template is missing in non-interactive mode
- Fix logs pagination to auto-fetch all pages in non-interactive mode
- Add interactive squid selection prompt to view command
- Add --json flag to list command for machine-parseable output
- Clean up --json output in view/list to strip manifest, packageJson, metrics
- Add structured success output (squid, deploy_id, duration) to deploy/remove/restart
- Improve --interactive flag description for clarity

Made-with: Cursor
@belopash belopash requested a review from mo4islona April 14, 2026 13:52
…ommands

Bugs:
- secrets/set: make `value` arg optional so stdin path is reachable
- logs: fix --follow exclusive referencing nonexistent flag `fromDate` → `since`
- view: guard processor progress against division by zero when totalBlocks=0
- deploy: fix typo "the they" in static help string

Dead code:
- deploy: remove commented-out example() line and stub isUrl "Not implemented" branch; drop stale FIXME comment
- restart: remove self-aliased unused import
- tags/add, tags/remove: remove unused formatSquidReference import
- explorer: remove debug:true, commented-out screen options and disableMouse call, duplicate static hidden declaration
- secrets/set: remove stale TODO comment
- prod: remove stale TODO comment

Inconsistencies:
- secrets/list, secrets/set, secrets/remove: replace raw Flags.string org with SqdFlags.org
- secrets/list: replace for...in with Object.entries
- secrets/remove: use logSuccess instead of plain log
- tags/remove: fix arg description "New tag to assign" → "Tag to remove"
- list: print "No squids found" instead of silently exiting when result is empty
- gateways/list: change .map() to .forEach() since return values were discarded
- remove: use formatSquidReference for squid result line instead of manual string

Safety / UX:
- whoami: mask all but last 4 chars of token
- run: pass error.message instead of Error object to this.error()
- init: re-throw Dockerfile removal errors that are not ENOENT
- auth: correct --key description URL to https://cloud.sqd.dev

Made-with: Cursor
@belopash belopash merged commit 2f8b5a1 into develop Apr 17, 2026
3 checks passed
@belopash belopash deleted the agentic-improve branch April 17, 2026 07:40
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