@aws/agentcore 1.0.0-preview.16 → 1.0.0-preview.17

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -1,12 +1,12 @@
1
1
  {
2
2
  "name": "@aws/agentcore",
3
- "version": "0.19.0",
3
+ "version": "0.20.2",
4
4
  "lockfileVersion": 3,
5
5
  "requires": true,
6
6
  "packages": {
7
7
  "": {
8
8
  "name": "@aws/agentcore",
9
- "version": "0.19.0",
9
+ "version": "0.20.2",
10
10
  "hasInstallScript": true,
11
11
  "license": "Apache-2.0",
12
12
  "dependencies": {
@@ -28,7 +28,7 @@
28
28
  "@aws-sdk/client-xray": "^3.1003.0",
29
29
  "@aws-sdk/credential-providers": "^3.893.0",
30
30
  "@aws-sdk/region-config-resolver": "^3.972.13",
31
- "@aws/agent-inspector": "0.6.0",
31
+ "@aws/agent-inspector": "0.6.1",
32
32
  "@commander-js/extra-typings": "^14.0.0",
33
33
  "@opentelemetry/api": "^1.9.1",
34
34
  "@opentelemetry/exporter-metrics-otlp-http": "^0.215.0",
@@ -2835,9 +2835,9 @@
2835
2835
  }
2836
2836
  },
2837
2837
  "node_modules/@aws/agent-inspector": {
2838
- "version": "0.6.0",
2839
- "resolved": "https://registry.npmjs.org/@aws/agent-inspector/-/agent-inspector-0.6.0.tgz",
2840
- "integrity": "sha512-WvDies3yLt4ygKRih9a+431pjY8CDTNOR/JpDklq99CVimzDdW2ySd8CTo3pVg8MGl0kJJUFbZNhUr/xUtHTUw==",
2838
+ "version": "0.6.1",
2839
+ "resolved": "https://registry.npmjs.org/@aws/agent-inspector/-/agent-inspector-0.6.1.tgz",
2840
+ "integrity": "sha512-+0KJRZe/mK1qenDOGdnCYZdSAt8jZK4tLb8Bc6vbpQqKc3MsRP2ICh0X9mtSAA6iT2KyG7crprsSXZJ3laEijQ==",
2841
2841
  "license": "Apache-2.0",
2842
2842
  "dependencies": {
2843
2843
  "@ag-ui/core": "^0.0.52",
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@aws/agentcore",
3
- "version": "1.0.0-preview.16",
3
+ "version": "1.0.0-preview.17",
4
4
  "description": "CLI for Amazon Bedrock AgentCore",
5
5
  "license": "Apache-2.0",
6
6
  "repository": {
@@ -51,7 +51,6 @@
51
51
  "build:lib": "tsc -p tsconfig.build.json",
52
52
  "build:cli": "node esbuild.config.mjs",
53
53
  "build:assets": "node scripts/copy-assets.mjs",
54
- "build:preview": "BUILD_PREVIEW=1 node esbuild.config.mjs",
55
54
  "build:harness": "BUILD_HARNESS=1 node esbuild.config.mjs",
56
55
  "cli": "npx tsx src/cli/index.ts",
57
56
  "typecheck": "tsc --noEmit --incremental",
@@ -93,7 +92,7 @@
93
92
  "@aws-sdk/client-xray": "^3.1003.0",
94
93
  "@aws-sdk/credential-providers": "^3.893.0",
95
94
  "@aws-sdk/region-config-resolver": "^3.972.13",
96
- "@aws/agent-inspector": "0.6.0",
95
+ "@aws/agent-inspector": "0.6.1",
97
96
  "@commander-js/extra-typings": "^14.0.0",
98
97
  "@opentelemetry/api": "^1.9.1",
99
98
  "@opentelemetry/exporter-metrics-otlp-http": "^0.215.0",
@@ -19,8 +19,7 @@
19
19
  * AGENTCORE_INSPECTOR_PATH — path to the agent-inspector repo.
20
20
  * Falls back to ../agent-inspector. If found, builds and bundles
21
21
  * the local version instead of the npm-installed one.
22
- * AGENTCORE_TARBALL_OUTPUT — output path (without .tgz) for the GA tarball.
23
- * Preview tarball gets '-preview' appended. Relative to cwd.
22
+ * AGENTCORE_TARBALL_OUTPUT — output path (without .tgz) for the tarball. Relative to cwd.
24
23
  * AGENTCORE_TARBALL_VERSION_SUFFIX — version prerelease suffix (e.g. "abc12-def34").
25
24
  * Defaults to a timestamp if not set.
26
25
  */
@@ -146,14 +145,13 @@ function restoreVersion({ pkgJsonPath, originalVersion }) {
146
145
 
147
146
  /**
148
147
  * If AGENTCORE_TARBALL_OUTPUT is set, return a resolved path using it as base.
149
- * Appends '-preview' suffix for preview builds. Always appends .tgz.
148
+ * Always appends .tgz.
150
149
  */
151
- function resolveTarballPath(tarballPath, { preview = false } = {}) {
150
+ function resolveTarballPath(tarballPath) {
152
151
  const envPath = process.env.AGENTCORE_TARBALL_OUTPUT;
153
152
  if (!envPath) return tarballPath;
154
- const suffix = preview ? '-preview' : '';
155
153
  const base = envPath.replace(/\.tgz$/, '');
156
- return path.resolve(`${base}${suffix}.tgz`);
154
+ return path.resolve(`${base}.tgz`);
157
155
  }
158
156
 
159
157
  // Step 1: Resolve and build CDK constructs
@@ -230,64 +228,18 @@ const cliTarballName = `aws-agentcore-${cliVersionInfo.bumpedVersion}.tgz`;
230
228
  const cliTarballPath = path.join(cliRoot, cliTarballName);
231
229
 
232
230
  if (!fs.existsSync(cliTarballPath)) {
233
- console.error(`ERROR: Expected GA tarball at ${cliTarballPath} but not found.`);
231
+ console.error(`ERROR: Expected tarball at ${cliTarballPath} but not found.`);
234
232
  process.exit(1);
235
233
  }
236
234
 
237
- const gaTarballPath = resolveTarballPath(cliTarballPath);
238
- if (gaTarballPath !== cliTarballPath) {
239
- fs.mkdirSync(path.dirname(gaTarballPath), { recursive: true });
240
- fs.renameSync(cliTarballPath, gaTarballPath);
241
- log(`Renamed tarball to: ${gaTarballPath}`);
242
- }
243
- log(`Done! GA Tarball: ${gaTarballPath}`);
244
- log(`Install with: npm install -g ${gaTarballPath}`);
245
- log('When you run agentcore create, the bundled CDK constructs will be installed automatically.');
246
-
247
- // Step 6: Rebuild CLI with BUILD_PREVIEW=1
248
- log('Rebuilding CLI with BUILD_PREVIEW=1 for preview tarball...');
249
- run('npm', ['run', 'build:cli'], { cwd: cliRoot, env: { ...process.env, BUILD_PREVIEW: '1' } });
250
-
251
- // Step 7: Bump version to preview variant
252
- function bumpPreviewVersion(pkgDir) {
253
- const pkgJsonPath = path.join(pkgDir, 'package.json');
254
- const pkg = JSON.parse(fs.readFileSync(pkgJsonPath, 'utf8'));
255
- const originalVersion = pkg.version;
256
- const baseVersion = originalVersion.split('-')[0];
257
- pkg.version = `${baseVersion}-preview-${versionSuffix}`;
258
- fs.writeFileSync(pkgJsonPath, JSON.stringify(pkg, null, 2) + '\n');
259
- log(`Bumped ${pkg.name} version: ${originalVersion} -> ${pkg.version}`);
260
- return { pkgJsonPath, originalVersion, bumpedVersion: pkg.version };
261
- }
262
-
263
- const previewVersionInfo = bumpPreviewVersion(cliRoot);
264
-
265
- // Step 8: Pack preview tarball
266
- try {
267
- log('Packing CLI preview tarball...');
268
- run('npm', ['pack'], { cwd: cliRoot });
269
- } finally {
270
- restoreVersion(previewVersionInfo);
271
- }
272
-
273
- const previewTarballName = `aws-agentcore-${previewVersionInfo.bumpedVersion}.tgz`;
274
- const previewTarballPath = path.join(cliRoot, previewTarballName);
275
-
276
- if (!fs.existsSync(previewTarballPath)) {
277
- console.error(`ERROR: Expected preview tarball at ${previewTarballPath} but not found.`);
278
- process.exit(1);
279
- }
280
-
281
- const finalPreviewPath = resolveTarballPath(previewTarballPath, { preview: true });
282
- if (finalPreviewPath !== previewTarballPath) {
283
- fs.mkdirSync(path.dirname(finalPreviewPath), { recursive: true });
284
- fs.renameSync(previewTarballPath, finalPreviewPath);
285
- log(`Renamed tarball to: ${finalPreviewPath}`);
235
+ const finalTarballPath = resolveTarballPath(cliTarballPath);
236
+ if (finalTarballPath !== cliTarballPath) {
237
+ fs.mkdirSync(path.dirname(finalTarballPath), { recursive: true });
238
+ fs.renameSync(cliTarballPath, finalTarballPath);
239
+ log(`Renamed tarball to: ${finalTarballPath}`);
286
240
  }
287
241
 
288
242
  // Final output
289
- log(`GA tarball: ${gaTarballPath}`);
290
- log(`Preview tarball: ${finalPreviewPath}`);
291
- log(`Install GA: npm install -g ${gaTarballPath}`);
292
- log(`Install Preview: npm install -g ${finalPreviewPath}`);
243
+ log(`Done! Tarball: ${finalTarballPath}`);
244
+ log(`Install with: npm install -g ${finalTarballPath}`);
293
245
  log('When you run agentcore create, the bundled CDK constructs will be installed automatically.');
@@ -9,10 +9,6 @@
9
9
  # Optional env vars:
10
10
  # AWS_REGION — defaults to us-east-1
11
11
  # CDK_REPO_PATH — local path to CDK constructs repo; if set, builds and uses it as CDK_TARBALL
12
- # BUILD_PREVIEW — set to 1 to build a preview CLI and run the harness e2e tests
13
- # (e2e-tests/harness-*.test.ts). Harness features are gated to preview
14
- # builds; without this they self-skip. The var is read at build time
15
- # (esbuild bakes __PREVIEW__=true) and at test runtime (skip gate).
16
12
  #
17
13
  # Usage:
18
14
  # export E2E_ROLE_ARN=arn:aws:iam::<account>:role/<role>
@@ -20,7 +16,6 @@
20
16
  # ./scripts/run-e2e-local.sh # runs strands-bedrock.test.ts (CI default)
21
17
  # ./scripts/run-e2e-local.sh --all # runs the full e2e suite
22
18
  # ./scripts/run-e2e-local.sh e2e-tests/foo.test.ts # runs a specific test file
23
- # BUILD_PREVIEW=1 ./scripts/run-e2e-local.sh e2e-tests/harness-bedrock.test.ts # runs harness tests
24
19
  #
25
20
  # Prerequisites: aws CLI, node >=20.19, npm, git, uv, jq
26
21