Skip to content
Source
Sign inSign up
TanStack/ai
Open History to see the last commit

pnpm-workspace.yaml

198 lines8.2 KB

1cleanupUnusedCatalogs: true
2linkWorkspacePackages: true
3preferWorkspacePackages: true
4blockExoticSubdeps: true
5trustPolicy: 'no-downgrade'
6minimumReleaseAge: 1440
7minimumReleaseAgeExclude:
8 # octane adapter upgrade: published less than 24 hours ago
9 - 'octane@0.12.1'
10 - '@octanejs/testing-library@0.1.62'
11 - 'kiira@0.6.0' # root dev dependency (TS7-native engine); freshly published
12 - 'kiira-core@0.6.0' # transitive dependency of kiira@0.6.0
13 # Working closely with the aimock team; the e2e suite often needs fresh
14 # releases of this test-only mock as it tracks provider SDK changes.
15 - '@copilotkit/aimock'
16 # Reactor JS SDK; the example app needs the current 3.x client.
17 - '@reactor-team/js-sdk'
18 # fal WMA client for H3 Max Director in the media example.
19 - '@fal-ai/client'
20 # Build-time devDep; 0.6.0 is the release carrying the dts-5/Vite-8 fix
21 # (TanStack/config#403) this toolchain migration depends on.
22 - '@tanstack/vite-config@0.6.0'
23 # @tanstack/ai-octane's framework peer + its testing library. Octane
24 # publishes these two in lockstep — @octanejs/testing-library pins an exact
25 # `octane` peer — so they must be excluded together or neither resolves.
26 # Octane releases roughly daily, so the newest pair is essentially always
27 # inside the 24h window.
28 - 'octane@0.1.17'
29 - '@octanejs/testing-library@0.1.14'
30 # Remix 3 RC and its @remix-run/* subpackages. Peer of @tanstack/ai-remix.
31 # Fresh RCs fail the 24h age gate, including nested @remix-run packages.
32 - 'remix'
33 - '@remix-run/assert'
34 - '@remix-run/assets'
35 - '@remix-run/async-context-middleware'
36 - '@remix-run/auth'
37 - '@remix-run/auth-middleware'
38 - '@remix-run/cli'
39 - '@remix-run/compression-middleware'
40 - '@remix-run/cookie'
41 - '@remix-run/cop-middleware'
42 - '@remix-run/cors-middleware'
43 - '@remix-run/csrf-middleware'
44 - '@remix-run/data-schema'
45 - '@remix-run/data-table'
46 - '@remix-run/data-table-mysql'
47 - '@remix-run/data-table-postgres'
48 - '@remix-run/data-table-sqlite'
49 - '@remix-run/fetch-proxy'
50 - '@remix-run/fetch-router'
51 - '@remix-run/file-storage'
52 - '@remix-run/file-storage-s3'
53 - '@remix-run/form-data-middleware'
54 - '@remix-run/form-data-parser'
55 - '@remix-run/fs'
56 - '@remix-run/headers'
57 - '@remix-run/html-template'
58 - '@remix-run/lazy-file'
59 - '@remix-run/logger-middleware'
60 - '@remix-run/method-override-middleware'
61 - '@remix-run/mime'
62 - '@remix-run/multipart-parser'
63 - '@remix-run/node-fetch-server'
64 - '@remix-run/node-hmr'
65 - '@remix-run/node-tsx'
66 - '@remix-run/render-middleware'
67 - '@remix-run/response'
68 - '@remix-run/route-pattern'
69 - '@remix-run/session'
70 - '@remix-run/session-middleware'
71 - '@remix-run/session-storage-memcache'
72 - '@remix-run/session-storage-redis'
73 - '@remix-run/spa'
74 - '@remix-run/static-middleware'
75 - '@remix-run/tar-parser'
76 - '@remix-run/terminal'
77 - '@remix-run/test'
78 - '@remix-run/ui'
79 - '@remix-run/ui-hmr'
80​
81trustPolicyExclude:
82 - 'chokidar@4.0.3' # existing transitive from sass/nitro; latest v4 with v5 available
83 - 'semver@5.7.2' # existing Babel/jscodeshift transitive; latest v5, released years ago
84 - 'semver@6.3.1' # existing Babel transitive; latest v6, released years ago
85 - 'undici-types@6.21.0' # existing @types/node transitive via happy-dom/vitest, types-only
86​
87# pnpm v11 dropped support for these fields in package.json — they must live
88# here. See https://github.com/pnpm/pnpm/releases/tag/v11.0.0.
89overrides:
90 abbrev: ^3.0.0
91​
92# TypeScript 7's `typescript` package no longer ships the JS Compiler API
93# (`ts.sys`, `ts.createProgram`, etc.). These framework tools embed that API,
94# have no TS7 fallback, and don't declare `typescript` themselves — so they
95# resolve the root-hoisted TS7 and crash. Inject the API-complete 6.0.2 shim
96# into their own node_modules so they resolve it before walking up to root.
97packageExtensions:
98 '@sveltejs/package':
99 dependencies:
100 typescript: 'npm:@typescript/typescript6@6.0.2'
101 svelte-check:
102 dependencies:
103 typescript: 'npm:@typescript/typescript6@6.0.2'
104 vue-tsc:
105 dependencies:
106 typescript: 'npm:@typescript/typescript6@6.0.2'
107 # knip drives the TS JS API, which TS7 dropped. Inject the 6.0.2 shim into
108 # its node_modules so it resolves it instead of the root-hoisted TS7. knip's
109 # peer range already caps at `<7`. (kiira 0.6.0 type-checks with the project's
110 # native TS7 compiler directly, so it no longer needs the shim.)
111 knip:
112 dependencies:
113 typescript: 'npm:@typescript/typescript6@6.0.2'
114 # typedoc (pnpm generate-docs, via @tanstack/typedoc-config) imports the
115 # TypeScript JS Compiler API at module load (`ts.SyntaxKind`). TS7 dropped
116 # that API. typedoc 0.28.x supports TS 5–6 only (TS7 support is unreleased,
117 # TypeStrong/typedoc#3098). Inject the 6.0.2 shim into both packages so
118 # typedoc's typescript peer resolves the shim from its parent instead of
119 # walking up to the root-hoisted TS7.
120 typedoc:
121 dependencies:
122 typescript: 'npm:@typescript/typescript6@6.0.2'
123 '@tanstack/typedoc-config':
124 dependencies:
125 typescript: 'npm:@typescript/typescript6@6.0.2'
126 # @analogjs/vite-plugin-angular (ai-angular's vitest transform) declares no
127 # typescript, so it grabs the root-hoisted TS7 and calls JS-API functions
128 # (ts.createIncrementalCompilerHost) that TS7 dropped. Angular also can't run
129 # on TS7 at all, so pin it to 5.9.3 (ai-angular's own version, Angular-
130 # supported) rather than the 6.0.2 shim.
131 '@analogjs/vite-plugin-angular':
132 dependencies:
133 typescript: 5.9.3
134​
135# Keep @types/bun out of pnpm's shared virtual store (node_modules/.pnpm/node_modules).
136# @types/bun (a devDep of @tanstack/ai-isolate-quickjs-bun) globally augments Node/DOM
137# types — notably it redeclares `fetch` with `init: RequestInit | BunFetchRequestInit`,
138# dropping the DOM `preconnect` member. When it's hoisted into the shared store, the
139# phantom `import "bun"` type statements inside unrelated deps (srvx, crossws in the
140# nitro/SSR stack) resolve to it, leaking that augmentation into example apps' `tsc`
141# runs and breaking their `typeof fetch` usage. Excluding it from the shared store
142# keeps it resolvable only by its direct dependent (which links it in its own
143# node_modules), so the Bun types stay scoped to the package that needs them.
144hoistPattern:
145 - '*'
146 - '!@types/bun'
147​
148patchedDependencies:
149 '@changesets/assemble-release-plan@6.0.9': patches/@changesets__assemble-release-plan@6.0.9.patch
150​
151packages:
152 - 'packages/*'
153 - 'packages/ai-code-mode/models-eval'
154 - 'examples/*'
155 - 'examples/react/*'
156 - 'testing/*'
157 - 'codemods'
158 - 'tools/*'
159​
160allowBuilds:
161 # Vite + every transitive bundler-step needs the platform-specific binary.
162 esbuild: true
163 # @google/genai (used by @tanstack/ai-gemini in CI) loads files generated by
164 # protobufjs's postinstall. Its own `preinstall` is a no-op echo and
165 # `prepare` only runs when developing the SDK from a git checkout, so it
166 # has no runtime effect on consumers.
167 protobufjs: true
168 # Expo/Metro reaches this through msgpackr and can use the native extractor.
169 msgpackr-extract: true
170 # Everything below is reachable only from dev scripts (wrangler dev,
171 # examples/ts-code-mode-web), is a perf optimisation with a working JS
172 # fallback, or has a no-op postinstall — none are required for `pnpm test:ci`
173 # to pass. Flip to true case-by-case if a future change relies on the script.
174 '@openrouter/sdk': false
175 '@parcel/watcher': false
176 isolated-vm: false
177 nx: false
178 puppeteer: false
179 sharp: false
180 unrs-resolver: false
181 workerd: false
182 '@google/genai': false
183 lmdb: true
184 # dockerode (@tanstack/ai-sandbox-docker) pulls these only for SSH-based
185 # Docker connections; the local-socket path the provider uses has a working
186 # JS fallback, so their native builds are not required.
187 cpu-features: false
188 ssh2: false
189 # Prisma and better-sqlite3 are peer-resolution artifacts only — no workspace
190 # package depends on them, so nothing imports the generated client or the
191 # native addon and their build scripts have nothing to produce for us.
192 '@prisma/client': false
193 '@prisma/engines': false
194 prisma: false
195 better-sqlite3: false
196 # @tanstack/ai-computer-local needs only the types. Its tests use a fake
197 # robot, so nothing loads the native addon that this script downloads.
198 '@jitsi/robotjs': false