Skip to content

feat(cli): show plan and add-ons in whoami command#1260

Merged
thebiglabasky merged 3 commits intomainfrom
herve/AI-70/whoami-plan-info
Mar 17, 2026
Merged

feat(cli): show plan and add-ons in whoami command#1260
thebiglabasky merged 3 commits intomainfrom
herve/AI-70/whoami-plan-info

Conversation

@thebiglabasky
Copy link
Contributor

Summary

  • Extends the Account interface with plan, planDisplayName, and addons fields
  • Updates whoami command to display the plan name and any active add-on tiers

Example output:

You are currently on account "Acme Corp" (abc123) as John.
Plan: Team
Add-ons: Communicate Starter, Resolve Hobby

Dependencies

  • Requires monorepo PR #935 to be merged first — that PR adds plan, planDisplayName, and addons to the GET /v1/accounts/me response.
  • Backwards compatible — if the backend hasn't been updated yet, the new fields are simply absent and the output remains unchanged.

Resolves AI-70

Test plan

  • Run npx checkly whoami against an account with a plan → verify plan line appears
  • Run against an account with add-ons → verify add-ons line appears
  • Run against an older backend without the new fields → verify no crash, original output unchanged

🤖 Generated with Claude Code

thebiglabasky and others added 2 commits March 16, 2026 22:11
Display planDisplayName and addon tier display names in the whoami
output. Requires the backend PR #935 which adds these fields to the
GET /v1/accounts/me response.

Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
accountId: config.get('accountId'),
})
expect(stdout).toContain(config.get('accountName'))
expect(stdout).toContain('Plan:')
Copy link
Contributor Author

Choose a reason for hiding this comment

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

You always will have a plan.
Some accounts won't have any add-on (recently added, incremental backfill)

Copy link
Contributor

@MichaelHogers MichaelHogers left a comment

Choose a reason for hiding this comment

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

💯

@thebiglabasky thebiglabasky enabled auto-merge (squash) March 17, 2026 14:53
@thebiglabasky thebiglabasky merged commit 76d4ac2 into main Mar 17, 2026
3 of 4 checks passed
@thebiglabasky thebiglabasky deleted the herve/AI-70/whoami-plan-info branch March 17, 2026 15:02
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.

2 participants