Conversation
There was a problem hiding this comment.
Pull request overview
Enhances the CLI’s linear auth status to produce a richer status report by augmenting the existing auth-status payload with live user/workspace data and resolving a configured default team, while keeping the JSON envelope structure for machine output. This is supported by exposing profile lookup through AuthManager and adding CLI-side report building + tests.
Changes:
- Added
AuthManager.getProfile()(linear-core) and corresponding tests. - Introduced
buildAuthStatusReport()(cli) to combine base auth status with liveviewer/organizationdetails and default-team resolution (including pagination fallback). - Updated
auth statuscommand to output the richer report (JSON envelope preserved; new human rendering) and added CLI tests.
Reviewed changes
Copilot reviewed 5 out of 5 changed files in this pull request and generated 3 comments.
Show a summary per file
| File | Description |
|---|---|
| packages/linear-core/src/auth/session.ts | Adds AuthManager.getProfile() to expose stored profile configuration via the manager. |
| packages/linear-core/tests/session.test.ts | Adds test coverage for AuthManager.getProfile() behavior (default + missing profile). |
| packages/cli/src/auth/status-report.ts | New report builder that enriches auth status with live user/workspace and default team resolution (paginated fallback). |
| packages/cli/src/index.ts | Wires auth status to the new report builder and adds custom human output tables (JSON envelope unchanged). |
| packages/cli/tests/auth-status.test.ts | Adds tests validating report enrichment and fallback behaviors (including pagination). |
💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.
# Conflicts: # packages/cli/src/index.ts
|
🎉 This PR is included in version 1.5.0-alpha.3 🎉 The release is available on: Your semantic-release bot 📦🚀 |
|
🎉 This PR is included in version 1.5.0 🎉 The release is available on: Your semantic-release bot 📦🚀 |
Adds a richer
linear auth statusreport with live user, workspace, and configured default team details while preserving JSON envelope output. Exposes profile lookup throughAuthManagerso the CLI can resolve saved profile settings. The default-team lookup now paginates team results when resolving a configured key, avoiding false nulls in larger workspaces. Validated withpnpm verify.