From 420120cc0f257f0f5ec50c8a9a96794b433e930c Mon Sep 17 00:00:00 2001 From: "github-actions[bot]" Date: Fri, 4 Sep 2026 21:59:29 +0000 Subject: [PATCH 1/2] chore(release): v1.0.0-rc.1 --- package.json | 2 +- src/assets/cdk/package.json | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/package.json b/package.json index 318b68886..db239b23c 100644 --- a/package.json +++ b/package.json @@ -1,6 +1,6 @@ { "name": "@aws/agentcore", - "version": "0.28.1", + "version": "1.0.0-rc.1", "repository": { "type": "git", "url": "https://github.com/aws/agentcore-cli.git" diff --git a/src/assets/cdk/package.json b/src/assets/cdk/package.json index d297178c2..8fc72c2de 100644 --- a/src/assets/cdk/package.json +++ b/src/assets/cdk/package.json @@ -23,7 +23,7 @@ "typescript": "~5.9.3" }, "dependencies": { - "@aws/agentcore-cdk": "0.1.0-alpha.51", + "@aws/agentcore-cdk": "0.1.0-alpha.52", "aws-cdk-lib": "~2.266.0", "constructs": "~10.7.0" } From 873eea7fe84cbd4da0de67c5182f79208ed87ba8 Mon Sep 17 00:00:00 2001 From: Trirmadura J Ariyawansa Date: Fri, 4 Sep 2026 18:10:47 -0400 Subject: [PATCH 2/2] fix(update): assert against the active dist-tag, not a hardcoded "latest" (#2243) The update handler was changed to pick the npm dist-tag from the local prerelease (rc/preview/latest), but two assertions in update.test.ts still hardcoded "latest", so CI on 1.0.0-rc.1 fails: the handler installs @aws/agentcore@rc while the tests expect @aws/agentcore@latest. Route both assertions through distTag() so the test tracks whichever tag the current version resolves to. --- src/handlers/update/update.test.ts | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/handlers/update/update.test.ts b/src/handlers/update/update.test.ts index 5be838a57..a3a610d6c 100644 --- a/src/handlers/update/update.test.ts +++ b/src/handlers/update/update.test.ts @@ -28,7 +28,7 @@ describe("fetchLatestVersion", () => { new Response(JSON.stringify({ version: "9.9.9" }), { status: 200 }), ); expect(await fetchLatestVersion()).toBe("9.9.9"); - expect(fetchSpy).toHaveBeenCalledWith("https://registry.npmjs.org/@aws/agentcore/latest"); + expect(fetchSpy).toHaveBeenCalledWith(`https://registry.npmjs.org/@aws/agentcore/${distTag()}`); }); test("throws a NetworkingError when the registry responds non-OK", async () => { @@ -90,7 +90,7 @@ describe("handleUpdate", () => { const result = await handleUpdate(false, { runner: okRunner }); expect(result.status).toBe("updated"); expect(okRunner).toHaveBeenCalledWith( - ["npm", "install", "-g", "@aws/agentcore@latest"], + ["npm", "install", "-g", `@aws/agentcore@${distTag()}`], expect.objectContaining({ cwd: expect.any(String) }), ); });