Skip to content

fix: route metadata through toolkit-lib#1747

Open
mrgrain wants to merge 2 commits into
mainfrom
mrgrain/metadata
Open

fix: route metadata through toolkit-lib#1747
mrgrain wants to merge 2 commits into
mainfrom
mrgrain/metadata

Conversation

@mrgrain

@mrgrain mrgrain commented Jul 22, 2026

Copy link
Copy Markdown
Contributor

The cdk metadata command now delegates synthesis and single-stack selection to the existing toolkit-lib Toolkit.list() action instead of maintaining a separate legacy selection path. This keeps the CLI thin while preserving the command's YAML and --json output.

CliIoHost listeners can now override an effective message action, allowing the structured list result to remain tagged as metadata; matching and telemetry continue to use the originally emitted action. Focused IO snapshots protect both output formats and listener tests cover emitted-versus-effective action behavior.

Validation: yarn compile, yarn eslint, and focused Jest coverage for the metadata command, CliIoHost, and IoHostRecorder (90 tests).

Checklist

  • Unit tests added/updated
  • Integration tests added/updated (not required; no AWS interaction changed)
  • No manual edits to generated files
  • This change contains a major version upgrade for a dependency and I confirm all breaking changes are addressed
    • Release notes for the new version: N/A

By submitting this pull request, I confirm that my contribution is made under the terms of the Apache-2.0 license

@github-actions

Copy link
Copy Markdown
Contributor

Dependency Review

✅ No vulnerabilities or license issues or OpenSSF Scorecard issues found.

Scanned Files

None

@aws-cdk-automation
aws-cdk-automation requested a review from a team July 22, 2026 13:50
@github-actions github-actions Bot added the p2 label Jul 22, 2026
@mrgrain mrgrain changed the title refactor(aws-cdk): route metadata through toolkit-lib fixc(aws-cdk): route metadata through toolkit-lib Jul 22, 2026
@mrgrain mrgrain changed the title fixc(aws-cdk): route metadata through toolkit-lib fix: route metadata through toolkit-lib Jul 22, 2026
@mrgrain
mrgrain force-pushed the mrgrain/metadata branch from 31a472d to 146d937 Compare July 22, 2026 13:53
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant