diff --git a/packages/mcp-apps-renderer/package.json b/packages/mcp-apps-renderer/package.json index 67e6e4e0cb..0c7754517c 100644 --- a/packages/mcp-apps-renderer/package.json +++ b/packages/mcp-apps-renderer/package.json @@ -1,6 +1,6 @@ { "name": "@copilotkit/mcp-apps-renderer", - "version": "1.70.1", + "version": "1.71.0", "private": false, "description": "Framework-agnostic MCP Apps host for CopilotKit - the app<->host protocol (ext-apps AppBridge), sandbox proxy, and shared renderer consumed by the React, Vue, and Angular frontends", "keywords": [ @@ -54,7 +54,7 @@ "test": "vitest run", "test:watch": "vitest", "publint": "publint .", - "attw": "attw --pack . --profile node16 --ignore-rules no-resolution" + "attw": "attw --pack . --profile esm-only --entrypoints . && attw --pack . --profile node16 --exclude-entrypoints ." }, "dependencies": { "@copilotkit/shared": "workspace:*", diff --git a/packages/mcp-apps-renderer/tsdown.config.ts b/packages/mcp-apps-renderer/tsdown.config.ts index 6d9803ad29..5d4008ccc0 100644 --- a/packages/mcp-apps-renderer/tsdown.config.ts +++ b/packages/mcp-apps-renderer/tsdown.config.ts @@ -56,6 +56,10 @@ export default defineConfig([ target: "es2018", outDir: "dist", external: (id: string) => id === "zod" || id.startsWith("zod/"), + // Force a single self-contained bundle (matches a2ui-renderer): without this, + // a sibling chunk emitted next to activity.umd.js would leave the global + // incomplete, and es-check (syntax-only) would not catch it. + codeSplitting: false, outputOptions(options) { options.entryFileNames = "[name].umd.js"; options.globals = { zod: "Zod" }; diff --git a/scripts/release/public-api/manifest.v1.json b/scripts/release/public-api/manifest.v1.json index 595923888e..a1c5b301a0 100644 --- a/scripts/release/public-api/manifest.v1.json +++ b/scripts/release/public-api/manifest.v1.json @@ -1019,7 +1019,7 @@ }, { "name": "@copilotkit/mcp-apps-renderer", - "version": "1.70.1", + "version": "1.71.0", "sourceDirectory": "packages/mcp-apps-renderer", "entrypoints": [ {