Skip to content

feat: add config-bundle CLI commands - #1945

Open
nborges-aws wants to merge 1 commit into
refactorfrom
config-bundle-commands
Open

feat: add config-bundle CLI commands#1945
nborges-aws wants to merge 1 commit into
refactorfrom
config-bundle-commands

Conversation

@nborges-aws

Copy link
Copy Markdown
Contributor

Description

Adds imperative CRUDL and version listing commands for AgentCore evaluation configuration bundles:

  • eval config-bundle create
  • eval config-bundle get
  • eval config-bundle list
  • eval config-bundle update
  • eval config-bundle delete
  • eval config-bundle version list

Summary of changes

  • --components accepts inline JSON, file://<path>, or stdin (-) via SourceResolver.
  • Component input parsed and validated via parseJsonFlagWithSchema utility.
  • get calls the latest-bundle API by default and the version API when optional --version is provided.
  • list returns configuration bundles, while version list returns all versions belonging to one bundle.
  • update requires --id, --components, and --commit-message; --kms-key-arn remains optional. This counteracts the service API docs and smithy models, but is the confirmed validation structure in the service itself
  • Updates fetches the latest bundle version and pass it as the sole parentVersionIds entry, as required by service lineage validation.

Type of Change

  • Bug fix
  • New feature
  • Breaking change
  • Documentation update
  • Other (please describe):

Testing

How have you tested the change?
Manually smoke tested all commands against a configuration bundle in my personal account:

  • Creating a bundle from a components file
  • Listing bundles
  • Getting the latest bundle
  • Getting a specific version
  • Updating components and creating a new version
  • Listing bundle versions
  • Deleting the bundle
  • bun run test (993 pass, 0 fail)

  • I ran npm run test:unit and npm run test:integ

  • I ran npm run typecheck

  • I ran npm run lint

  • If I modified src/assets/, I ran npm run test:update-snapshots and committed the updated snapshots

Checklist

  • I have read the CONTRIBUTING document
  • I have added any necessary tests that prove my fix is effective or my feature works
  • I have updated the documentation accordingly
  • I have added an appropriate example to the documentation to outline the feature, or no new docs are needed
  • My changes generate no new warnings
  • Any dependent changes have been merged and published

By submitting this pull request, I confirm that you can use, modify, copy, and redistribute this contribution, under the
terms of your choice.

@github-actions github-actions Bot added the agentcore-harness-reviewing AgentCore Harness review in progress label Aug 7, 2026
@codecov-commenter

Copy link
Copy Markdown

Codecov Report

❌ Patch coverage is 98.72611% with 4 lines in your changes missing coverage. Please review.
✅ Project coverage is 95.80%. Comparing base (64058e3) to head (7a4527d).

Files with missing lines Patch % Lines
src/handlers/eval/config-bundle/components.ts 95.65% 1 Missing ⚠️
src/handlers/eval/config-bundle/delete/index.tsx 94.44% 1 Missing ⚠️
src/handlers/eval/config-bundle/get/index.tsx 96.29% 1 Missing ⚠️
...handlers/eval/config-bundle/version/list/index.tsx 96.55% 1 Missing ⚠️
Additional details and impacted files
@@             Coverage Diff              @@
##           refactor    #1945      +/-   ##
============================================
+ Coverage     95.74%   95.80%   +0.05%     
============================================
  Files           291      300       +9     
  Lines         16234    16547     +313     
============================================
+ Hits          15544    15853     +309     
- Misses          690      694       +4     

☔ View full report in Codecov by Harness.
📢 Have feedback on the report? Share it here.

🚀 New features to boost your workflow:
  • ❄️ Test Analytics: Detect flaky tests, report on failures, and find test suite problems.
  • 📦 JS Bundle Analysis: Save yourself from yourself by tracking and limiting bundle sizes in JS merges.

@github-actions github-actions Bot removed the agentcore-harness-reviewing AgentCore Harness review in progress label Aug 7, 2026
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.

2 participants