Skip to content

Composio powers 1000+ toolkits, tool search, context management, authentication, and a sandboxed workbench to help you build AI agents that turn intent into action.

fix(e2e): pack core's workspace dependency in the openai-zod4 fixture (#4097)

Alberto Schiabelb9a715e055dc
diff --git a/ts/e2e-tests/runtimes/node/openai-zod4-compat/README.md b/ts/e2e-tests/runtimes/node/openai-zod4-compat/README.md
index c8a1ecebd..2f989a416 100644
--- a/ts/e2e-tests/runtimes/node/openai-zod4-compat/README.md
+++ b/ts/e2e-tests/runtimes/node/openai-zod4-compat/README.md
@@ -26,9 +26,17 @@ fixtures/
└── tsconfig.json # Strict consumer compiler settings
```
-The setup phase packs both Composio packages, installs them with explicit
+The setup phase packs the Composio packages, installs them with explicit
OpenAI 7 and Zod 4 versions, and typechecks without `skipLibCheck`.
+`@composio/json-schema-to-zod` is packed alongside `@composio/core` and
+`@composio/openai` even though the fixture never imports it directly. `pnpm
+pack` rewrites `@composio/core`'s `workspace:*` dependency on it to the exact
+workspace version, so installing the core tarball alone makes npm fetch that
+version from the registry. On a release branch the workspace version is the
+one about to be published and does not exist yet, which fails the install.
+Packing it locally keeps the fixture resolvable before publication.
+
## Setup
The runtime phase constructs clients with fake keys and never makes a network
diff --git a/ts/e2e-tests/runtimes/node/openai-zod4-compat/fixtures/package.json b/ts/e2e-tests/runtimes/node/openai-zod4-compat/fixtures/package.json
index 3895c441f..7aae61fc0 100644
--- a/ts/e2e-tests/runtimes/node/openai-zod4-compat/fixtures/package.json
+++ b/ts/e2e-tests/runtimes/node/openai-zod4-compat/fixtures/package.json
@@ -2,7 +2,7 @@
"private": true,
"type": "module",
"scripts": {
- "install:composio": "pnpm --dir /app/ts/packages/core pack --pack-destination \"$PWD\" --silent >/dev/null && pnpm --dir /app/ts/packages/providers/openai pack --pack-destination \"$PWD\" --silent >/dev/null && npm install --ignore-scripts --package-lock=false ./composio-core-*.tgz ./composio-openai-*.tgz",
+ "install:composio": "pnpm --dir /app/ts/packages/json-schema-to-zod pack --pack-destination \"$PWD\" --silent >/dev/null && pnpm --dir /app/ts/packages/core pack --pack-destination \"$PWD\" --silent >/dev/null && pnpm --dir /app/ts/packages/providers/openai pack --pack-destination \"$PWD\" --silent >/dev/null && npm install --ignore-scripts --package-lock=false ./composio-json-schema-to-zod-*.tgz ./composio-core-*.tgz ./composio-openai-*.tgz",
"typecheck": "tsc --noEmit && echo openai v7 compatibility typecheck passed"
},
"dependencies": {