Skip to content

SP-3322: Add --live option to t2tc package list - #430

Draft
Buqeta (Buqeta) wants to merge 2 commits into
mainfrom
sp-3322
Draft

Buqeta (Buqeta) wants to merge 2 commits into
mainfrom
sp-3322

Conversation

@Buqeta

@Buqeta Buqeta (Buqeta) commented Oct 12, 2026 •

Copy link
Copy Markdown
Contributor

Description

  • New t2tc package list --live. It calls Pacman's new GET /api/core/packages/export/list-live and lists the live state of each project: the package its LIVE pointer targets, the version that branch was set live as, and when.
    • Projects without a LIVE pointer are skipped. LIVE branches that were never deployed are included.
    • If the team doesn't have the live branch pointer feature, Pacman returns the deployed main packages.
  • With --json, each entry carries the usual fields plus branch and liveSince from Pacman. version is the live version. No CLI change was needed for these fields; they pass through as-is.
  • Works with --json, --flavors and --withDependencies. Fails fast when combined with --staging, --branches, --packageKeys, --keysByVersion, --variableValue or --variableType.
  • With --json, live packages go through the same Studio enrichment (spaceId, data models) as the default list.
  • Docs: new "List Live Packages" section. CCM is listed as an available --flavors value.
  • Tests: t2tc-package-list.spec.ts (live text and JSON output, CCM flavor cases) and module.spec.ts (option wiring and incompatible-option checks). 37/37 pass locally, and the type check is clean.

Depends on the Pacman endpoint being deployed before --live can be used against a realm.

Relevant links

Checklist

  • I have self-reviewed this PR
  • I have tested the change and proved that it works in different scenarios
  • I have updated docs if needed

Co-Authored-By: Claude noreply@anthropic.com
Includes-AI-Code: true

Buqeta (Buqeta) and others added 2 commits October 12, 2026 17:24
Co-Authored-By: Claude <noreply@anthropic.com>
Includes-AI-Code: true
Co-Authored-By: Claude <noreply@anthropic.com>
Includes-AI-Code: true
@Buqeta Buqeta (Buqeta) changed the title SP-3322: Document CCM flavor for t2tc package list SP-3322: Add --live option to t2tc package list Oct 13, 2026
@sonarqubecloud

Copy link
Copy Markdown

Quality Gate Failed Quality Gate failed

Failed conditions
1 New Major Issues (required ≤ 0)
1 New Minor Issues (required ≤ 0)

See analysis details on SonarQube Cloud

Catch issues before they fail your Quality Gate with our IDE extension SonarQube for IDE

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