Skip to content

chore: bundle local "agent inspector" build#1529

Merged
avi-alpert merged 1 commit into
aws:mainfrom
avi-alpert:aalpert/bundle-inspector
Jun 11, 2026
Merged

chore: bundle local "agent inspector" build#1529
avi-alpert merged 1 commit into
aws:mainfrom
avi-alpert:aalpert/bundle-inspector

Conversation

@avi-alpert

@avi-alpert avi-alpert commented Jun 11, 2026

Copy link
Copy Markdown
Contributor

Description

The bundle script (which generates a tarball for local testing purposes) does not pull in a local copy of agent inspector, like it does with the CDK package.

This PR adds a check for agent-inspector existing in sibling directory, and if it is there, it builds it and pulls in the artifacts into the generated tarball.

Related Issue

Closes #

Documentation PR

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.

@avi-alpert avi-alpert requested a review from a team June 11, 2026 17:50
@avi-alpert avi-alpert changed the title script: bundle agent inspector script: bundle local "agent inspector" build Jun 11, 2026
@github-actions github-actions Bot added size/s PR size: S agentcore-harness-reviewing AgentCore Harness review in progress labels Jun 11, 2026
@agentcore-devx-automation agentcore-devx-automation Bot added the claude-security-reviewing Claude Code /security-review in progress label Jun 11, 2026
@github-actions

Copy link
Copy Markdown
Contributor

Package Tarball

aws-agentcore-0.19.0.tgz

How to install

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

@agentcore-devx-automation

Copy link
Copy Markdown
Contributor

Claude Security Review: no high-confidence findings. (run)

@agentcore-devx-automation agentcore-devx-automation Bot removed the claude-security-reviewing Claude Code /security-review in progress label Jun 11, 2026

@agentcore-cli-automation agentcore-cli-automation left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

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

Looks good to merge. The change mirrors the existing AGENTCORE_CDK_PATH pattern (env var → sibling → fallback) and writes the locally-built dist-assets/ into dist/agent-inspector/ before npm pack, which is exactly the directory resolveUIDistDir() in src/cli/operations/dev/web-ui/web-server.ts resolves at runtime for a bundled CLI. Ordering (Step 3.5 between CLI build and CLI pack) is correct, and dist/ is already covered by the package's files glob, so the replaced assets ship in the tarball. No tests or telemetry needed for a dev-only bundle script.

@github-actions github-actions Bot removed the agentcore-harness-reviewing AgentCore Harness review in progress label Jun 11, 2026
@avi-alpert avi-alpert changed the title script: bundle local "agent inspector" build chore: bundle local "agent inspector" build Jun 11, 2026

@jariy17 jariy17 left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

LGTM to me

@avi-alpert avi-alpert merged commit 2166bd8 into aws:main Jun 11, 2026
33 of 36 checks passed
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.

3 participants