Skip to content

🪢 Open source agent evals & observability: Trace, evaluate, and improve LLM applications with one open platform.

chore(deps): switch to pnpm 12.3 (#17014)

Nimard2e1fd4846f7
diff --git a/.cursor/Dockerfile b/.cursor/Dockerfile
index 53b5e5b972..674791d8d0 100644
--- a/.cursor/Dockerfile
+++ b/.cursor/Dockerfile
@@ -44,7 +44,7 @@ RUN install -m 0755 -d /etc/apt/keyrings \
&& apt-get install -y --no-install-recommends nodejs \
&& npm install --global [email protected] \
&& corepack enable \
- && corepack prepare [email protected] --activate \
+ && corepack prepare [email protected] --activate \
&& rm -rf /var/lib/apt/lists/*
# Cursor Cloud runs Docker inside its own container layer. fuse-overlayfs and
diff --git a/.devcontainer/Dockerfile b/.devcontainer/Dockerfile
index 62fed61a1d..0cb9c01d5c 100644
--- a/.devcontainer/Dockerfile
+++ b/.devcontainer/Dockerfile
@@ -20,7 +20,7 @@ COPY --from=migrate-builder /out/migrate /usr/local/bin/migrate
ARG NODE_USE_ENV_PROXY
RUN npm install --global [email protected] \
&& corepack enable \
- && corepack prepare [email protected] --activate
+ && corepack prepare [email protected] --activate
# Install Clickhouse
RUN curl https://clickhouse.com/ | sh && \
diff --git a/CONTRIBUTING.md b/CONTRIBUTING.md
index 5b61ea41f5..faf89bd2ab 100644
--- a/CONTRIBUTING.md
+++ b/CONTRIBUTING.md
@@ -117,7 +117,7 @@ We built a monorepo using [pnpm](https://pnpm.io/motivation) and [turbo](https:/
Requirements
- Node.js 24 as specified in the [.nvmrc](.nvmrc)
-- Pnpm v.11.22.0
+- pnpm 12.3.1 as specified in `package.json`
- Docker to run the database locally
- Clickhouse client
diff --git a/package.json b/package.json
index dc556edbfc..a392bd67ae 100644
--- a/package.json
+++ b/package.json
@@ -5,7 +5,8 @@
"license": "MIT",
"private": true,
"engines": {
- "node": "24"
+ "node": "24",
+ "pnpm": "12.3.1"
},
"scripts": {
"agents:check": "node scripts/agents/sync-agent-shims.mjs --check --check-paths",
@@ -108,5 +109,5 @@
}
}
},
- "packageManager": "[email protected]"
+ "packageManager": "[email protected]"
}
diff --git a/pnpm-lock.yaml b/pnpm-lock.yaml
index 9184063764..e3a415ad16 100644
--- a/pnpm-lock.yaml
+++ b/pnpm-lock.yaml
@@ -788,7 +788,7 @@ importers:
posthog-js:
specifier: ^1.417.1
+ version: 1.417.1([email protected])
posthog-node:
specifier: ^5.49.1
version: 5.49.1([email protected])
@@ -1041,7 +1041,7 @@ importers:
version: 0.0.52
'@ag-ui/mastra':
specifier: 1.1.1
'@anthropic-ai/tokenizer':
specifier: ^0.0.4
version: 0.0.4
@@ -1248,21 +1248,12 @@ packages:
resolution: {integrity: sha512-U407VvDDwR5qs8TiyN1qY38x87qMWc2n0epw8iA5aa1qwzCKBBDgg3Fkm4JogQf0X4jwNsz8HUbIZrBB56mrpg==}
- '@ag-ui/[email protected]':
- resolution: {integrity: sha512-Xap2alG9Z0/j5kb3x4D7oTpe2sw1dfrC9rgJJr2NZu5vKcm8dzIPNd31mF2B4zS3BKqYIu245yxKPhEtT30MHw==}
-
resolution: {integrity: sha512-Xo0bUaNV56EqylzcrAuhUkQX7et7+SZIrqZZtEByGwEq/I1EHny6ZMkWHLkKR7UNi0FJZwJyhKYmKJS3B2SEgA==}
- '@ag-ui/[email protected]':
- resolution: {integrity: sha512-gho1OWjNE6E3Rl7ZEZ1wr2CEpUHjLFU0FqzCZZk439TicLu+BfLCMkMokB07bMGlRmbJ60hM6LW60iOVauCx+Q==}
-
resolution: {integrity: sha512-6GVDTb1dv2rjap7VVnmXYypDutZi6nrsTcdfxoP6ryDG5ynlXtmmS+FSDAt62JbIMD5CtEE963xNCb6d1iXw9g==}
- '@ag-ui/[email protected]':
- resolution: {integrity: sha512-ifD9NctR4xyPDR58xF9GK1bj/S8oECFkTeDfuYD8tXdbcOstIJ2TOqU2zhiCKnw7Vw+zR9Qv3TbsM9E7Gi9X3Q==}
-
resolution: {integrity: sha512-6j+3msihWB+b6sc1N+6APR6UM57n0ONR+YCfB7e1twCoyuINJ97z3MEYA5YY9SynTLpfJk58+Yk1wxckJL4v6g==}
peerDependencies:
@@ -1274,9 +1265,6 @@ packages:
resolution: {integrity: sha512-+iCGzNUNL50YIoThVmsolWPjG4MJidl+R9k8QAGVwErEfHRtQ64KFyrdpeOXNVuWtM3SViJqPSgFyv7eGVS63A==}
- '@ag-ui/[email protected]':
- resolution: {integrity: sha512-pPENOZt0P6ibH8sCTgq05wLYXi5t3P9B5r/1bWYehXjUxtyOdnukSlWM++SsCIwUXsQdm/b3aBgGjEeTF7RenA==}
-
'@ai-sdk/[email protected]':
resolution: {integrity: sha512-SP3LIpFt/JlK0sGs6E5jvjySvQqu/nqA942PehIGk3PZPJ5SMPsUNg+PYTs84PTUYEg8rr4XqkQOTNFq12zo2w==}
engines: {node: '>=18'}
@@ -12014,41 +12002,19 @@ snapshots:
uuid: 11.1.1
zod: 4.3.6
- '@ag-ui/[email protected]':
- dependencies:
- '@ag-ui/core': 0.0.57
- '@ag-ui/encoder': 0.0.57
- '@ag-ui/proto': 0.0.57
- '@types/uuid': 10.0.0
- compare-versions: 6.1.1
- fast-json-patch: 3.1.1
- rxjs: 7.8.1
- untruncate-json: 0.0.1
- uuid: 11.1.1
- zod: 4.3.6
-
dependencies:
zod: 4.3.6
- '@ag-ui/[email protected]':
- dependencies:
- zod: 4.3.6
-
dependencies:
'@ag-ui/core': 0.0.52
'@ag-ui/proto': 0.0.52
- '@ag-ui/[email protected]':
- dependencies:
- '@ag-ui/core': 0.0.57
- '@ag-ui/proto': 0.0.57
-
dependencies:
'@ag-ui/a2ui-toolkit': 0.0.4
- '@ag-ui/client': 0.0.57
+ '@ag-ui/client': 0.0.52
'@ag-ui/core': 0.0.52
'@ai-sdk/ui-utils': 1.2.11([email protected])
@@ -12063,12 +12029,6 @@ snapshots:
'@bufbuild/protobuf': 2.12.0
'@protobuf-ts/protoc': 2.11.1
- '@ag-ui/[email protected]':
- dependencies:
- '@ag-ui/core': 0.0.57
- '@bufbuild/protobuf': 2.12.0
- '@protobuf-ts/protoc': 2.11.1
-
dependencies:
'@ai-sdk/anthropic': 3.0.62([email protected])
@@ -17691,6 +17651,21 @@ snapshots:
optionalDependencies:
+ dependencies:
+ '@bcoe/v8-coverage': 1.0.2
+ '@vitest/utils': 4.1.10
+ ast-v8-to-istanbul: 1.0.0
+ istanbul-lib-coverage: 3.2.2
+ istanbul-lib-report: 3.0.1
+ istanbul-reports: 3.2.0
+ magicast: 0.5.2
+ obug: 2.1.1
+ std-env: 4.0.0
+ tinyrainbow: 3.1.0
+ optional: true
+
'@vitest/[email protected]':
dependencies:
'@types/chai': 5.2.3
@@ -19351,6 +19326,17 @@ snapshots:
transitivePeerDependencies:
- supports-color
+ dependencies:
+ debug: 3.2.7([email protected])
+ optionalDependencies:
+ eslint-import-resolver-node: 0.3.10([email protected])
+ transitivePeerDependencies:
+ - supports-color
+
dependencies:
debug: 3.2.7([email protected])
@@ -19406,6 +19392,35 @@ snapshots:
- eslint-import-resolver-webpack
- supports-color
+ dependencies:
+ '@rtsao/scc': 1.1.0
+ array-includes: 3.1.9
+ array.prototype.findlastindex: 1.2.6
+ array.prototype.flat: 1.3.3
+ array.prototype.flatmap: 1.3.3
+ debug: 3.2.7([email protected])
+ doctrine: 2.1.0
+ eslint-import-resolver-node: 0.3.10([email protected])
+ hasown: 2.0.4
+ is-core-module: 2.16.2
+ is-glob: 4.0.3
+ minimatch: 3.1.5
+ object.fromentries: 2.0.8
+ object.groupby: 1.0.3
+ object.values: 1.2.1
+ semver: 6.3.1
+ string.prototype.trimend: 1.0.9
+ tsconfig-paths: 3.15.0
+ optionalDependencies:
+ transitivePeerDependencies:
+ - eslint-import-resolver-typescript
+ - eslint-import-resolver-webpack
+ - supports-color
+
dependencies:
aria-query: 5.3.2
@@ -22271,7 +22286,7 @@ snapshots:
picocolors: 1.1.1
source-map-js: 1.2.1
dependencies:
'@posthog/browser-common': 0.5.0
'@posthog/core': 1.48.1
@@ -24117,7 +24132,7 @@ snapshots:
'@opentelemetry/api': 1.9.1
'@types/node': 24.3.0
- '@vitest/coverage-v8': 4.1.10(@vitest/[email protected])([email protected])
+ '@vitest/coverage-v8': 4.1.10([email protected])
jsdom: 26.1.0([email protected])
transitivePeerDependencies:
- msw
diff --git a/pnpm-workspace.yaml b/pnpm-workspace.yaml
index 7df4bab000..4d5075649b 100644
--- a/pnpm-workspace.yaml
+++ b/pnpm-workspace.yaml
@@ -22,6 +22,12 @@ catalog:
typescript: npm:@typescript/typescript6@^6.0.2
# 5 day delay for new dep upgrades to reduce supply chain attack risk
minimumReleaseAge: 7200
+# Reject recent releases whose publishing trust is weaker than earlier versions.
+# Older releases have already passed the five-day quarantine above.
+trustPolicy: no-downgrade
+trustPolicyIgnoreAfter: 7200
+# Keep pnpm itself out of the workspace lockfile's dependency graph.
+pmOnFail: ignore
# the exclusions are temporary so that we can set the 5 day limit without downgrading packages.
# this list is version-specific
# minimumReleaseAgeExclude:
@@ -123,6 +129,15 @@ publicHoistPattern:
- "*prisma*"
- "@aws-sdk/client-s3"
minimumReleaseAgeExclude:
+ # Temporary exact exceptions for the pnpm 12 migration.
+ - '@pnpm/[email protected]'
+ - '@pnpm/[email protected]'
+ - '@pnpm/[email protected]'
+ - '@pnpm/[email protected]'
+ - '@pnpm/[email protected]'
+ - '@pnpm/[email protected]'
+ - '@pnpm/[email protected]'
+ - '@pnpm/[email protected]'
@@ -134,4 +149,5 @@ minimumReleaseAgeExclude:
diff --git a/web/Dockerfile b/web/Dockerfile
index 87597bc791..50b7ecd310 100644
--- a/web/Dockerfile
+++ b/web/Dockerfile
@@ -14,7 +14,7 @@ ENV PATH="$PNPM_HOME:$PATH"
ARG NODE_USE_ENV_PROXY
RUN npm install --global [email protected] \
&& corepack enable \
- && corepack prepare [email protected] --activate
+ && corepack prepare [email protected] --activate
FROM --platform=${TARGETPLATFORM:-linux/amd64} alpine AS runtime-base
# Remove build-only package managers. npm stays here because the runner stage
@@ -55,7 +55,7 @@ COPY --from=pruner /app/out/json/ .
RUN pnpm install --frozen-lockfile
-# pnpm 11 defaults verify-deps-before-run to "install", so every `pnpm run`
+# pnpm can verify dependencies before each `pnpm run`, so every command
# spawned by turbo re-checks node_modules via file mtimes. Cached install
# layers make those mtimes look stale, and the concurrent auto-installs race
# in the hoisting step (ENOENT unlink in node_modules/.pnpm/node_modules).
diff --git a/worker/Dockerfile b/worker/Dockerfile
index 3c67e49356..0910ceb042 100644
--- a/worker/Dockerfile
+++ b/worker/Dockerfile
@@ -14,7 +14,7 @@ ENV PATH="$PNPM_HOME:$PATH"
ARG NODE_USE_ENV_PROXY
RUN npm install --global [email protected] \
&& corepack enable \
- && corepack prepare [email protected] --activate
+ && corepack prepare [email protected] --activate
FROM --platform=${TARGETPLATFORM:-linux/amd64} alpine AS runtime-base
# package managers and build-only CLIs only increase exposure to CVEs -> remove them
@@ -40,7 +40,7 @@ COPY --from=pruner /app/out/json/ .
RUN pnpm install --frozen-lockfile
-# pnpm 11 defaults verify-deps-before-run to "install", so every `pnpm run`
+# pnpm can verify dependencies before each `pnpm run`, so every command
# spawned by turbo re-checks node_modules via file mtimes. Cached install
# layers make those mtimes look stale, and the concurrent auto-installs race
# in the hoisting step (ENOENT unlink in node_modules/.pnpm/node_modules).
@@ -65,8 +65,8 @@ FROM --platform=${TARGETPLATFORM:-linux/amd64} builder AS prod-deps
# we only need the prod + generated prisma client plus .prisma artifacts
# @langfuse/shared still pulls in next-auth transitively, so keep the deploy output
# intact here instead of pruning node_modules in Docker.
-# Scope workspace injection to deploy so regular workspace installs keep source-link semantics.
-RUN pnpm --config.inject-workspace-packages=true --filter worker deploy --prod /prod/worker && \
+# pnpm deploy materializes linked workspace packages into the standalone artifact.
+RUN pnpm --filter worker deploy --prod /prod/worker && \
builder_prisma_client_dir="$(find /app/node_modules/.pnpm -path '*/node_modules/@prisma/client' -type d | head -n 1)" && \
deployed_prisma_client_dir="$(find /prod/worker/node_modules/.pnpm -path '*/node_modules/@prisma/client' -type d | head -n 1)" && \
builder_prisma_runtime_dir="$(dirname "$(dirname "$builder_prisma_client_dir")")/.prisma" && \