Skip to content

feat(scripts): extend bundle to support injectable output and version suffix#1389

Merged
jesseturner21 merged 1 commit into
aws:mainfrom
Hweinstock:feat/extend-bundle
May 27, 2026
Merged

feat(scripts): extend bundle to support injectable output and version suffix#1389
jesseturner21 merged 1 commit into
aws:mainfrom
Hweinstock:feat/extend-bundle

Conversation

@Hweinstock
Copy link
Copy Markdown
Contributor

@Hweinstock Hweinstock commented May 27, 2026

Description

We extend scripts/bundle.mjs and the prerelease workflow to support injectable tarball output paths and version suffixes via environment variables (AGENTCORE_TARBALL_OUTPUT, AGENTCORE_TARBALL_VERSION_SUFFIX).

The prerelease workflow now publishes the prerelease artifacts to a static url that includes the commit hash for both repositories.

This allows developers to set a local alias to the static url for easy downloads. The url is currently https://github.com/aws/agentcore-cli/releases/download/prerelease/aws-agentcore-0.15.0-20260526224648.tgz (changes on each commit), but will be https://github.com/aws/agentcore-cli/releases/download/prerelease/agentcore-cli-prerelease.tgz and should auto update on each push to main.

Additionally, the version number describes the commit this was built from (both CDK and CLI) to make sanity checks easier.

Notes

In testing I noticed github is having availability issues causing clone to hang. This will stop the workflow from working in CI.

I tested locally by pointing to a local instance of the CDK repo, and disabling the git pull origin call.

Related Issue

Closes #

Documentation PR

N/A

Type of Change

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

Testing

How have you tested the change?

  • 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 size/s PR size: S label May 27, 2026
@agentcore-devx-automation agentcore-devx-automation Bot added the claude-security-reviewing Claude Code /security-review in progress label May 27, 2026
@github-actions github-actions Bot added agentcore-harness-reviewing AgentCore Harness review in progress and removed agentcore-harness-reviewing AgentCore Harness review in progress labels May 27, 2026
@github-actions
Copy link
Copy Markdown
Contributor

Package Tarball

aws-agentcore-0.15.0.tgz

How to install

gh release download pr-1389-tarball --repo aws/agentcore-cli --pattern "*.tgz" --dir /tmp/pr-tarball
npm install -g /tmp/pr-tarball/aws-agentcore-0.15.0.tgz

@agentcore-devx-automation
Copy link
Copy Markdown
Contributor

Claude Security Review: the review run failed before completing. See the run for details.

@agentcore-devx-automation agentcore-devx-automation Bot removed the claude-security-reviewing Claude Code /security-review in progress label May 27, 2026
@Hweinstock Hweinstock marked this pull request as ready for review May 27, 2026 12:58
@Hweinstock Hweinstock requested a review from a team May 27, 2026 12:58
Copy link
Copy Markdown
Contributor

@jesseturner21 jesseturner21 left a comment

Choose a reason for hiding this comment

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

I love it!

@jesseturner21 jesseturner21 merged commit 32c3c06 into aws:main May 27, 2026
29 of 33 checks passed
@Hweinstock Hweinstock deleted the feat/extend-bundle branch May 27, 2026 13:30
Hweinstock added a commit to Hweinstock/agentcore-cli that referenced this pull request May 27, 2026
Hweinstock added a commit to Hweinstock/agentcore-cli that referenced this pull request May 27, 2026
Hweinstock added a commit to Hweinstock/agentcore-cli that referenced this pull request May 27, 2026
Hweinstock added a commit to Hweinstock/agentcore-cli that referenced this pull request May 27, 2026
Hweinstock added a commit to Hweinstock/agentcore-cli that referenced this pull request May 27, 2026
Hweinstock added a commit to Hweinstock/agentcore-cli that referenced this pull request May 27, 2026
Hweinstock added a commit to Hweinstock/agentcore-cli that referenced this pull request May 27, 2026
Hweinstock added a commit to Hweinstock/agentcore-cli that referenced this pull request May 27, 2026
Hweinstock added a commit to Hweinstock/agentcore-cli that referenced this pull request May 27, 2026
Hweinstock added a commit to Hweinstock/agentcore-cli that referenced this pull request May 27, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

size/s PR size: S

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants