Skip to content

SP-873: Add single package export command#378

Merged
Zgjim Haziri (ZgjimHaziri) merged 2 commits into
mainfrom
SP-873-single-package-export
Jun 18, 2026
Merged

SP-873: Add single package export command#378
Zgjim Haziri (ZgjimHaziri) merged 2 commits into
mainfrom
SP-873-single-package-export

Conversation

@ZgjimHaziri

@ZgjimHaziri Zgjim Haziri (ZgjimHaziri) commented Jun 15, 2026

Copy link
Copy Markdown
Contributor

Description

Adds config package export, the counterpart of config package import, backed by the new single-package export API (pacman#1997, SP-872).

It exports a package's staging (draft) version in the plain package format (package.json, an optional variables.json, and a nodes/ folder) — the same format config package import consumes, so a package round-trips between teams without conversion. Unlike t2tc package export, it handles exactly one package and does not produce a batch artifact.

  • Default: exports the package unzipped into a <packageKey> directory in the current working directory.
  • --zip: exports it as a single <packageKey>.zip file instead.

Depends on the export API (pacman#1997) being merged and deployed.

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

Made with Cursor

Add `config package export`, the counterpart of `config package import`,
backed by the new single-package export API (pacman#1997). Exports a
package's staging (draft) version in the package format: unzipped into a
<packageKey> directory by default, or as a <packageKey>.zip file with --zip.
Output is written to the current working directory.

Includes-AI-Code: true
Co-authored-by: Cursor <cursoragent@cursor.com>
Resolve modify/delete conflict in the configuration-management tests.
SP-1089 (#374) deleted the per-module unit spec
(tests/commands/configuration-management/module.spec.ts) in favor of an
integration spec. Port the `config package export` handler tests into
tests/integration/commands/configuration-management.spec.ts (driven via
the CLI parser, so the unzipped default asserts zip=false) and accept the
deletion of the old unit spec.

Includes-AI-Code: true
Co-authored-by: Cursor <cursoragent@cursor.com>
@sonarqubecloud

Copy link
Copy Markdown

@ZgjimHaziri Zgjim Haziri (ZgjimHaziri) merged commit 6806328 into main Jun 18, 2026
6 checks passed
@ZgjimHaziri Zgjim Haziri (ZgjimHaziri) deleted the SP-873-single-package-export branch June 18, 2026 12:51
Zgjim Haziri (ZgjimHaziri) added a commit that referenced this pull request Jun 18, 2026
Resolve conflicts after the base PR #378 (SP-873 single package export)
was squash-merged into main. This branch is stacked on SP-873, so it
already contained those changes plus the SP-992 Git capabilities on top.
Every conflict was therefore resolved by keeping this branch's superset
version (single-package-export.service.ts, module.ts, file-service.ts,
the export/file-service unit specs, and config-commands.md).

Also dropped a duplicate "config package export" describe block that the
auto-merge re-added from main in the integration spec (it asserted the
old 2-arg exportPackage signature). The resulting tree is identical to
this branch's pre-merge HEAD; tsc and the full jest suite pass.

Includes-AI-Code: true
Co-authored-by: Cursor <cursoragent@cursor.com>
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.

3 participants