Skip to content

feat: ai-agent quickstart and json-first output#36

Merged
abhiramkast merged 2 commits into
mainfrom
feat/ai-agent-launch
May 22, 2026
Merged

feat: ai-agent quickstart and json-first output#36
abhiramkast merged 2 commits into
mainfrom
feat/ai-agent-launch

Conversation

@abhiramkast

Copy link
Copy Markdown
Contributor

Summary

Prep work for opening the CLI up to AI-agent driven use. Makes every command JSON-parseable and tightens error output.

What changed

  • Non-interactive signuplinq signup --email X --code Y --name "Z" for fully scriptable signup. Non-TTY context exits cleanly with the next-command hint instead of hanging on inquirer.
  • One error helperbail() + throwHttpError() replace ~27 raw-error catch blocks. SDK throws and hand-rolled fetch errors flow through the same shape.
  • JSON-first output--json honored on success AND error for every data/action command. Validation errors emit JSON too. whoami --json carries orgId, partnerId, accountLabel. doctor --json returns structured per-check results.
  • Blue Number rename — "Phone" / "phone number" → "Blue Number" across every user-facing label.
  • linq tokens show — print the saved token (with --copy).

Test plan

  • npm run build clean
  • npm test — 172/172 passing
  • Manual smoke: logout, login --token, send message, webhooks listen end-to-end, tokens create + list + delete safety guard

- Non-interactive signup: linq signup --email X --code Y --name "Z"
- One error helper (bail + throwHttpError) replaces ~27 raw-error catch blocks
- --json honored on success AND error for every data/action command
- whoami --json carries orgId, partnerId, accountLabel
- doctor --json returns structured per-check results
- Blue Number rename across user-facing labels
- linq tokens show command (with --copy)
@abhiramkast
abhiramkast requested a review from jflayhart as a code owner May 22, 2026 22:50
@abhiramkast
abhiramkast merged commit 58edcc8 into main May 22, 2026
4 checks passed
@abhiramkast
abhiramkast deleted the feat/ai-agent-launch branch May 22, 2026 23:01
@jflayhart

Copy link
Copy Markdown
Collaborator

🎉 This PR is included in version 2.3.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

Labels

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants