cleanupUnusedCatalogs: true linkWorkspacePackages: true preferWorkspacePackages: true blockExoticSubdeps: true trustPolicy: 'no-downgrade' minimumReleaseAge: 1440 minimumReleaseAgeExclude: # octane adapter upgrade: published less than 24 hours ago - 'octane@0.12.1' - '@octanejs/testing-library@0.1.62' - 'kiira@0.6.0' # root dev dependency (TS7-native engine); freshly published - 'kiira-core@0.6.0' # transitive dependency of kiira@0.6.0 # Working closely with the aimock team; the e2e suite often needs fresh # releases of this test-only mock as it tracks provider SDK changes. - '@copilotkit/aimock' # Reactor JS SDK; the example app needs the current 3.x client. - '@reactor-team/js-sdk' # fal WMA client for H3 Max Director in the media example. - '@fal-ai/client' # Build-time devDep; 0.6.0 is the release carrying the dts-5/Vite-8 fix # (TanStack/config#403) this toolchain migration depends on. - '@tanstack/vite-config@0.6.0' # @tanstack/ai-octane's framework peer + its testing library. Octane # publishes these two in lockstep — @octanejs/testing-library pins an exact # `octane` peer — so they must be excluded together or neither resolves. # Octane releases roughly daily, so the newest pair is essentially always # inside the 24h window. - 'octane@0.1.17' - '@octanejs/testing-library@0.1.14' # Remix 3 RC and its @remix-run/* subpackages. Peer of @tanstack/ai-remix. # Fresh RCs fail the 24h age gate, including nested @remix-run packages. - 'remix' - '@remix-run/assert' - '@remix-run/assets' - '@remix-run/async-context-middleware' - '@remix-run/auth' - '@remix-run/auth-middleware' - '@remix-run/cli' - '@remix-run/compression-middleware' - '@remix-run/cookie' - '@remix-run/cop-middleware' - '@remix-run/cors-middleware' - '@remix-run/csrf-middleware' - '@remix-run/data-schema' - '@remix-run/data-table' - '@remix-run/data-table-mysql' - '@remix-run/data-table-postgres' - '@remix-run/data-table-sqlite' - '@remix-run/fetch-proxy' - '@remix-run/fetch-router' - '@remix-run/file-storage' - '@remix-run/file-storage-s3' - '@remix-run/form-data-middleware' - '@remix-run/form-data-parser' - '@remix-run/fs' - '@remix-run/headers' - '@remix-run/html-template' - '@remix-run/lazy-file' - '@remix-run/logger-middleware' - '@remix-run/method-override-middleware' - '@remix-run/mime' - '@remix-run/multipart-parser' - '@remix-run/node-fetch-server' - '@remix-run/node-hmr' - '@remix-run/node-tsx' - '@remix-run/render-middleware' - '@remix-run/response' - '@remix-run/route-pattern' - '@remix-run/session' - '@remix-run/session-middleware' - '@remix-run/session-storage-memcache' - '@remix-run/session-storage-redis' - '@remix-run/spa' - '@remix-run/static-middleware' - '@remix-run/tar-parser' - '@remix-run/terminal' - '@remix-run/test' - '@remix-run/ui' - '@remix-run/ui-hmr' trustPolicyExclude: - 'chokidar@4.0.3' # existing transitive from sass/nitro; latest v4 with v5 available - 'semver@5.7.2' # existing Babel/jscodeshift transitive; latest v5, released years ago - 'semver@6.3.1' # existing Babel transitive; latest v6, released years ago - 'undici-types@6.21.0' # existing @types/node transitive via happy-dom/vitest, types-only # pnpm v11 dropped support for these fields in package.json — they must live # here. See https://github.com/pnpm/pnpm/releases/tag/v11.0.0. overrides: abbrev: ^5.0.0 # @angular/build@22.2.4 pulls @inquirer/core@12.0.6, which depends on # @inquirer/type@4.2.1. That version is not on npm (latest is 4.2.0). '@inquirer/type': 4.2.0 # TypeScript 7's `typescript` package no longer ships the JS Compiler API # (`ts.sys`, `ts.createProgram`, etc.). These framework tools embed that API, # have no TS7 fallback, and don't declare `typescript` themselves — so they # resolve the root-hoisted TS7 and crash. Inject the API-complete 6.0.2 shim # into their own node_modules so they resolve it before walking up to root. packageExtensions: '@sveltejs/package': dependencies: typescript: 'npm:@typescript/typescript6@6.0.2' svelte-check: dependencies: typescript: 'npm:@typescript/typescript6@6.0.2' vue-tsc: dependencies: typescript: 'npm:@typescript/typescript6@6.0.2' # knip drives the TS JS API, which TS7 dropped. Inject the 6.0.2 shim into # its node_modules so it resolves it instead of the root-hoisted TS7. knip's # peer range already caps at `<7`. (kiira 0.6.0 type-checks with the project's # native TS7 compiler directly, so it no longer needs the shim.) knip: dependencies: typescript: 'npm:@typescript/typescript6@6.0.2' # typedoc (pnpm generate-docs, via @tanstack/typedoc-config) imports the # TypeScript JS Compiler API at module load (`ts.SyntaxKind`). TS7 dropped # that API. typedoc 0.28.x supports TS 5–6 only (TS7 support is unreleased, # TypeStrong/typedoc#3098). Inject the 6.0.2 shim into both packages so # typedoc's typescript peer resolves the shim from its parent instead of # walking up to the root-hoisted TS7. typedoc: dependencies: typescript: 'npm:@typescript/typescript6@6.0.2' '@tanstack/typedoc-config': dependencies: typescript: 'npm:@typescript/typescript6@6.0.2' # @analogjs/vite-plugin-angular (ai-angular's vitest transform) declares no # typescript, so it grabs the root-hoisted TS7 and calls JS-API functions # (ts.createIncrementalCompilerHost) that TS7 dropped. Angular 22 peers # typescript >=6.0 <6.1, so pin the real 6.0.2 package (same pin as # ai-angular), not the TS7 root and not the @typescript/typescript6 alias. '@analogjs/vite-plugin-angular': dependencies: typescript: 6.0.2 # Keep @types/bun out of pnpm's shared virtual store (node_modules/.pnpm/node_modules). # @types/bun (a devDep of @tanstack/ai-isolate-quickjs-bun) globally augments Node/DOM # types — notably it redeclares `fetch` with `init: RequestInit | BunFetchRequestInit`, # dropping the DOM `preconnect` member. When it's hoisted into the shared store, the # phantom `import "bun"` type statements inside unrelated deps (srvx, crossws in the # nitro/SSR stack) resolve to it, leaking that augmentation into example apps' `tsc` # runs and breaking their `typeof fetch` usage. Excluding it from the shared store # keeps it resolvable only by its direct dependent (which links it in its own # node_modules), so the Bun types stay scoped to the package that needs them. hoistPattern: - '*' - '!@types/bun' patchedDependencies: '@changesets/assemble-release-plan@6.0.9': patches/@changesets__assemble-release-plan@6.0.9.patch quickjs-bun@0.1.2: patches/quickjs-bun@0.1.2.patch packages: - 'packages/*' - 'packages/ai-code-mode/models-eval' - 'examples/*' - 'examples/react/*' - 'testing/*' - 'evals/harbor' - 'codemods' - 'tools/*' allowBuilds: # Vite + every transitive bundler-step needs the platform-specific binary. esbuild: true # @google/genai (used by @tanstack/ai-gemini in CI) loads files generated by # protobufjs's postinstall. Its own `preinstall` is a no-op echo and # `prepare` only runs when developing the SDK from a git checkout, so it # has no runtime effect on consumers. protobufjs: true # Expo/Metro reaches this through msgpackr and can use the native extractor. msgpackr-extract: true # Everything below is reachable only from dev scripts (wrangler dev, # examples/ts-code-mode-web), is a perf optimisation with a working JS # fallback, or has a no-op postinstall — none are required for `pnpm test:ci` # to pass. Flip to true case-by-case if a future change relies on the script. '@openrouter/sdk': false '@parcel/watcher': false isolated-vm: false nx: false puppeteer: false sharp: false unrs-resolver: false workerd: false '@google/genai': false lmdb: true # dockerode (@tanstack/ai-sandbox-docker) pulls these only for SSH-based # Docker connections; the local-socket path the provider uses has a working # JS fallback, so their native builds are not required. cpu-features: false ssh2: false # Prisma and better-sqlite3 are peer-resolution artifacts only — no workspace # package depends on them, so nothing imports the generated client or the # native addon and their build scripts have nothing to produce for us. '@prisma/client': false '@prisma/engines': false prisma: false better-sqlite3: false # @tanstack/ai-computer-local needs only the types. Its tests use a fake # robot, so nothing loads the native addon that this script downloads. '@jitsi/robotjs': false