Skip to content

feat(cli): add linear cli v2 foundations#2

Merged
dubscode merged 2 commits intomainfrom
codex/feat-linear-cli-v2-foundation
Mar 20, 2026
Merged

feat(cli): add linear cli v2 foundations#2
dubscode merged 2 commits intomainfrom
codex/feat-linear-cli-v2-foundation

Conversation

@dubscode
Copy link
Contributor

Summary

  • add the v2 foundation across core, CLI, and TUI
  • expand entity and model support with customers, customer-needs, milestones, project and initiative updates, notifications, and richer issue records
  • add workflow commands like doctor, my-work, triage, updates, and project status
  • add shared query flags, richer human-readable output, and stronger test coverage
  • upgrade the TUI issues experience with persistent navigation and a detail pane

Testing

  • pnpm verify

Notes

  • JSON-oriented automation output remains compatible while the human-facing CLI and TUI experience move toward the v2 design
  • this lands the v2 foundation and a large first implementation pass; interactive create/update prompting and a fuller dashboard-style TUI are still follow-up work

Expand core Linear entity coverage, add workflow commands and shared query flags, and upgrade the TUI and human-readable output for the v2 experience.
Copilot AI review requested due to automatic review settings March 20, 2026 04:01
Copy link

Copilot AI left a comment

Choose a reason for hiding this comment

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

Pull request overview

Adds “v2 foundation” capabilities across linear-core, CLI, and TUI: expanded entity support, shared query/presentation flags, richer human output, and a revamped TUI issues layout.

Changes:

  • Expanded LinearGateway + SDK typings/models to cover customers, customer needs, milestones, project/initiative updates, and notifications (plus richer IssueRecord).
  • Introduced shared CLI query plumbing (global options + local filtering/sorting + view/fields output shaping) and added workflow commands (doctor, my-work, triage, updates, project status).
  • Updated TUI layout (persistent navigation + details pane) and adjusted tests accordingly.

Reviewed changes

Copilot reviewed 17 out of 17 changed files in this pull request and generated 4 comments.

Show a summary per file
File Description
packages/tui/tests/app.test.tsx Updates assertions to reflect new navigation/details UI copy.
packages/tui/src/screens/IssuesScreen.tsx Splits issues list and selected-issue details into side-by-side panes.
packages/tui/src/components/Layout.tsx Adds persistent navigation sidebar and relocates key hints/status.
packages/linear-core/tests/v2-gateway.test.ts Adds gateway-level tests for new v2 entities and enriched issue fields.
packages/linear-core/src/types/public.ts Extends entity union and introduces shared list/query typing (view/fields/sort/filter).
packages/linear-core/src/entities/sdk-types.ts Extends SdkLinearClient surface + related SDK type aliases.
packages/linear-core/src/entities/models.ts Expands records for enriched issues and new entities (customers, milestones, updates, notifications).
packages/linear-core/src/entities/linear-gateway.ts Implements new list/get/create/update/delete methods and enriched issue mapping.
packages/cli/tests/output.test.ts Adds coverage for --view detail + --fields rendering behavior.
packages/cli/tests/options.test.ts Adds coverage for parsing shared global v2 query/presentation options.
packages/cli/tests/help.test.ts Updates expectations for new v2 commands/entities appearing in help output.
packages/cli/src/utils/guards.ts Extends numeric guard to parse numeric strings.
packages/cli/src/runtime/query.ts Adds local filtering/sorting and “page draining” collection helper.
packages/cli/src/runtime/options.ts Adds shared global query/presentation options parsing.
packages/cli/src/index.ts Wires new commands, applies shared query/filter behavior, adds workflow commands.
packages/cli/src/help/root-help.ts Updates root/issues help text with v2 workflows and flags.
packages/cli/src/formatters/output.ts Adds --view detail and --fields support for human-readable output.

💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.

Tighten local page collection, fix project matching for customer needs and related filters, and ensure my-work resolves the authenticated viewer before filtering.
@dubscode dubscode merged commit 854d165 into main Mar 20, 2026
2 checks passed
@dubscode dubscode deleted the codex/feat-linear-cli-v2-foundation branch March 20, 2026 04:28
github-actions bot pushed a commit that referenced this pull request Mar 20, 2026
# [1.5.0-alpha.2](v1.5.0-alpha.1...v1.5.0-alpha.2) (2026-03-20)

### Features

* **cli:** add linear cli v2 foundations ([#2](#2)) ([854d165](854d165))
@github-actions
Copy link

🎉 This PR is included in version 1.5.0-alpha.2 🎉

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