Skip to content

chore(deps): update pnpm to v11 - #1579

Merged
squiggler-app[bot] merged 1 commit into
mainfrom
renovate/major-11-corepack
Jul 15, 2026
Merged

squiggler-app[bot] merged 1 commit into
mainfrom
renovate/major-11-corepack

Conversation

@squiggler-app

@squiggler-app squiggler-app Bot commented Jul 14, 2026 •

Copy link
Copy Markdown
Contributor

ℹ️ Note

This PR body was truncated due to platform limits.

This PR contains the following updates:

Package Change Age Confidence
pnpm (source) 10.34.5 → 11.13.0 age confidence

Release Notes

pnpm/pnpm (pnpm)

v11.13.0

Compare Source

Minor Changes
  • Added versioning.epics to pnpm-workspace.yaml. An epic ties a group of member packages to a lead package, constraining every member's major version to a band derived from the lead's major: while the lead is on major M, members live in M*100 … M*100+99. Members move independently inside the band (patch, minor, and a major intent that stays in-band); a bump that would carry a member past the band ceiling is rejected until the lead advances its own major. When a release plan takes the lead to a new stable major, every member re-bases to the band floor in the same plan. Membership is matched with pnpm's package selectors — name globs, ./-prefixed directory globs, and !-prefixed negations.

  • Added the team command for managing organization teams and team memberships on the registry, with create, destroy, add, rm, and ls subcommands and support for --otp, --parseable, and --json flags.

  • Added native workspace release management #​12952: the new pnpm change command records change intents as changesets-compatible .changeset/*.md files (pnpm change status shows the pending release plan), and the bare pnpm version -r consumes them — bumping versions across the workspace with dependent propagation through workspace: ranges, fixed groups, a maxBump cap, --filter narrowing, and --dry-run — writing changelogs, and recording consumed intents in a committed ledger that keeps cherry-picks and merge-backs between release branches safe. Packages can be moved onto per-package release lanes with the new pnpm lane <name> --filter <pkg> command and back with pnpm lane main --filter <pkg> (pnpm lane shows the membership), releasing X.Y.Z-lane.N prereleases from the same runs that release stable versions of the packages on the main lane. Configuration lives under the new versioning key of pnpm-workspace.yaml (fixed, ignore, maxBump, lanes, changelog). When two workspace projects publish the same name, intent files, versioning.lanes, and versioning.fixed/ignore may reference a project by its workspace-relative directory path (e.g. "./pnpm/npm/pnpm") — the one additive extension to the changesets format, applied automatically by pnpm change.

    Release changelogs default to registry storage (versioning.changelog.storage): no CHANGELOG.md is committed. Each release's section is composed at publish time and packed into the published tarball on top of the previously published version's changelog, and the consumed change intents are garbage-collected by a later pnpm version -r only once the registry confirms the version is published with its section. Set versioning.changelog.storage: repository to keep committed CHANGELOG.md files instead.

  • Added a new override selector form with an empty range — "pkg@": "<version>" — called a convergence override. It rewrites a dependency edge only when its exact version satisfies the edge's declared range, so compatible consumers converge on one version while incompatible consumers keep their own resolution — now and for any dependent added in the future #​12794.

    overrides:
      "form-data@": 4.0.6

    The value must be an exact version. When a full resolution detects that every declared range also admits a newer version, pnpm warns that the override is stale and names the version to converge on. Previously an empty range in an override selector was undocumented and behaved like a bare (unscoped) override.

Patch Changes
  • A tokenHelper set in the global pnpm auth.ini is no longer rejected as project-level configuration. The guard that blocks tokenHelper from a project .npmrc only treated ~/.npmrc as a trusted source, so a helper written to auth.ini (for example by pnpm config set) failed on every command and could not even be removed with pnpm config delete. A tokenHelper in a workspace or project .npmrc is still rejected.

  • pnpm cache delete now removes a package's metadata from every metadata cache directory (metadata, metadata-full, and metadata-full-filtered), instead of only the one the current resolution mode reads. Previously a package cached under a different mode (e.g. metadata-full-filtered) was left behind. Closes #​12753.

  • Fixed an injected workspace dependency (injectWorkspacePackages: true) incorrectly staying as file: instead of deduping back to link: when an unrelated, ordinary shared dependency resolved to a peer-suffixed variant for the target project's own copy but not for the injected occurrence. See #​10433.

  • pnpm deploy now supports workspaces that use catalogs.

  • Fixed pnpm deploy with a shared lockfile so local file: tarball dependencies keep their package name in the generated deploy lockfile. This prevents warm-store deploys from failing with ERR_PNPM_UNEXPECTED_PKG_CONTENT_IN_STORE when the tarball filename includes the version.

  • Options that follow create, exec, or test appearing as a subcommand of another command are now parsed instead of being silently treated as positional parameters. For example, pnpm team create @&#8203;org:team --registry <url> previously ignored the --registry option and sent the request to the default registry.

  • pnpm add -g, pnpm update -g, pnpm setup, and the self-updater no longer fail with ERR_PNPM_MISSING_TIME when trustPolicy: no-downgrade or resolutionMode: time-based is set in the global config #​12883. The decision to fetch full registry metadata now lives in one place, and the no-downgrade trust policy always requests full metadata (matching the self-updater), since the trust evidence it checks is missing from abbreviated metadata even on registries that include the time field.

  • pnpm list and pnpm why no longer crash with EMFILE: too many open files when a project has a large number of unsaved dependencies (packages present in node_modules but not in the lockfile). The reads of those packages are now concurrency-limited.

  • The published pnpm package no longer declares dependencies or devDependencies. Because the CLI bundles its runtime dependencies into dist/node_modules, those fields are dropped when packing, so npm install of the tarball no longer tries to resolve internal-only packages such as @pnpm/test-ipc-server. Closes #​12955.

  • Fixed pnpm publish --otp and pnpm publish --batch --otp to send the configured OTP to the registry.

  • pnpm publish again sends the package's README to the registry as metadata, so registries can render it on the package page. The readme is always included in the published metadata (matching the npm CLI), while the embed-readme setting continues to control only whether the readme is written into the package.json inside the tarball. This restores the behavior that was lost when publishing became fully native. Closes #​12966.

  • Fixed the dependency status check wrongly reporting "up to date" when a package.json, .pnpmfile.cjs, or patch file was edited in the same second as the previous install, on filesystems that record mtimes at whole-second resolution (for example ext4 with 128-byte inodes). The optimistic repeat-install fast path and verify-deps-before-run compared mtimes strictly, so a same-second edit whose mtime rounded down looked unchanged and re-resolution was skipped. Such a file's whole second is now treated as possibly-modified, falling through to the content check; behavior on sub-second filesystems is unchanged.

  • Retry package metadata requests when a registry or proxy returns 304 Not Modified to an unconditional request, preventing false ERR_PNPM_CACHE_MISSING_AFTER_304 failures pnpm/pnpm#12882.

    If the retry also returns 304, report ERR_PNPM_META_NOT_MODIFIED_WITHOUT_CACHE instead.

  • Fixed pnpm update removing transitive lockfile entries when dedupePeerDependents is disabled and the selected package is absent pnpm/pnpm#12456.

  • Limit modern deploy lockfiles and localized virtual stores to dependencies reachable from the selected dependency groups.

  • A tokenHelper command is now given a 60-second time limit. A helper that hangs (deadlock, stuck I/O) is killed and reported as an error instead of leaving the command waiting forever.

  • Fixed orphaned child processes on Windows when pnpm exits on an error while commands spawned by pnpm exec or pnpm dlx are still running (for example, when one project's command fails during pnpm --recursive exec). The PIDs of these commands are now recorded when they are spawned and their whole process trees are terminated with taskkill on an error exit. Previously the cleanup relied on enumerating the system process list, which is so slow on Windows that the enumeration hit its timeout and the cleanup was silently skipped #​12406.

  • pnpm pack now respects workspace-root .npmignore and .gitignore files when packing workspace packages.

v11.12.0

Compare Source

Minor Changes
  • a897ef7: Custom fetchers exported from a pnpmfile can now delegate by returning a { delegate: <resolution> } envelope: pnpm rewrites the package's resolution to the delegated shape and runs the built-in fetcher on it. This is the portable delegation form that also works in pacquet, where cafs and fetchers cannot be passed to the hook. Related to pnpm/pnpm#11685.
Patch Changes
  • 2b02764: The changed-packages filter (--filter "...[<since>]") no longer allows an option-like <since> value (such as --output=<path>) to be interpreted as a git option — git now rejects it as a bad revision. The repository root is also resolved to the nearest .git entry, so the filter works in a git worktree checked out inside another repository's tree.

  • 43711ce: pnpm outdated no longer checks the registry for dependencies that are resolved from local link:, file:, or workspace: references in the lockfile #​12827.

  • 3c6718b: Fixed a deadlock in peer dependency resolution: pnpm install hung forever when a peer dependency cycle spanned a project's own dependencies and auto-installed peer providers, for example when installing [email protected] #​12921.

  • 252f15e: Fixed peer dependency auto-install picking a version the peer range rejects. In a workspace with several projects, a package declaring a peer dependency with a semver range (for example ^1.0.0) could get the highest version found anywhere in the workspace (for example a 2.0.0 resolved for another project) instead of a version that satisfies the range. Peers are now deduplicated onto the highest preferred version that satisfies the declared range, and when none does, the range is resolved from the registry.

    Also fixed re-resolving with an existing lockfile hoisting a different peer version than a fresh install of the same manifest: root dependencies reused from the lockfile were invisible to peer hoisting, so a peer that a root dependency provides could be bound to another version.

  • a38adda: pnpm self-update <version> now installs the requested pnpm version when it matches the currently running version but is missing from the global self-update directory.

  • 6a85968: pnpm stage list now stops paginating after a fail-safe cap of 1000 pages, so a misbehaving registry cannot keep the command looping forever.

  • eee7c9a: verify-deps-before-run no longer spawns a pnpm install when pnpm is executed in a directory that has no package.json. A mistyped command run outside a project (for example pnpm witch 10 login) used to crash with a confusing error from the spawned install; now it fails with the regular "no package.json found" error.

v11.11.0

Compare Source

Minor Changes
  • 508b8c2: Added the pnpm access command for managing package access and visibility on the registry, supporting listing packages and collaborators, getting and setting package status and MFA requirements, and granting or revoking team access.
Patch Changes
  • c70e33e: Allow allowBuilds entries for git-hosted packages to match by repository URL without pinning the resolved commit hash. This lets trusted git repositories keep running their build scripts after branch updates without approving each new commit, while package-name-only rules still do not approve git-hosted artifacts.
  • 3067e4f: Reduced peak memory usage during cold-cache dependency resolution. The metadata fetch is memoized for the whole resolution phase, and it was retaining each package's raw registry response body (used only to mirror the response to disk) for that entire time. The memoized cache now holds a body-less copy, so the raw body only lives as long as the call that writes the disk mirror. On large graphs that fetch full metadata (e.g. with minimumReleaseAge or trustPolicy enabled) this cuts peak RSS by roughly 30%, back in line with pnpm 10. The resolved lockfile is unchanged.
  • 51300fd: Prevent a crafted pnpm-lock.yaml from writing package content outside the virtual store. A dependency path key whose name reconstructs to a path-traversal sequence (e.g. ../../../tmp/[email protected]) is now rejected by the isolated (virtual-store) linker and the Plug'n'Play resolver map, matching the containment already applied to the hoisted linker. Under the global virtual store, a traversal in the version-derived path segment (e.g. a snapshot version: "../../x") is now rejected at formatGlobalVirtualStorePath, the single point every global-virtual-store slot path funnels through — closing the same escape in the isolated linker, the resolver's dependency-graph builder, and the config-dependency installer.
  • f8058eb: Reject symlinked pnpm-lock.yaml files when reading or writing the env lockfile document.
  • 9318a11: Allow registries and namedRegistries to be configured in the global config.yaml file.
  • 51300fd: Fixed a path traversal vulnerability where a dependency whose manifest name was a scoped path traversal (e.g. @x/../../../<path>) could be written outside node_modules to an attacker-controlled location during pnpm install, even with --ignore-scripts. The isolated linker now validates the package name before using it as a directory name, matching the existing protection in the hoisted linker.
  • 14332f0: Fail instead of silently removing an optional dependency's locked entries from pnpm-lock.yaml when the registry cannot resolve it. Previously, when registry metadata lacked a version that the lockfile already pinned (for example, a mirror that had not synced a recent release yet), pnpm install and pnpm dedupe silently dropped the optional dependency's entries — emptying maps such as the platform binaries of @napi-rs/canvas — so the lockfile differed between machines and frozen installs on other hosts had nothing to link #​12853.
  • fecfe83: Fixed peer dependency resolution with autoInstallPeers when a workspace package depends on a version of a package that a transitive dependency's self-contained closure also provides for itself. The peer providers that are attached to the root project for reuse are no longer peer-resolved a second time in the root context, so packages inside such a closure no longer get their peers bound to the root project's incompatible version #​4993.
  • 5a4daec: ${...} environment-variable placeholders in the httpProxy, httpsProxy, noProxy, proxy, and noproxy settings are no longer expanded when these settings come from a project's pnpm-workspace.yaml. They now receive the same protection already applied to registry, namedRegistries, and pnprServer.
  • d1da02e: pnpm publish no longer prints credentials when the target registry is configured with inline user:pass@ credentials (e.g. registry=https://user:[email protected]/). They are now redacted both from the "publishing to registry" line and from the OIDC (trusted publishing) failure messages.
  • dcfc611: pnpm self-update now honors trustPolicy=no-downgrade. It resolves the target pnpm version against full registry metadata, so it refuses to switch to a version whose supply-chain trust evidence is weaker than an earlier-published one, the same way a regular install does.
  • a8ad82d: Register the pn alias in generated shell completion scripts.
  • 25bd5c3: Fixed standalone installer downgrades from pnpm v12 to v11.
  • 23996e9: pnpm runtime set <name> <version> now validates its arguments: the name must be node, deno, or bun, and the version must not contain a comma. Previously these were interpolated straight into a pnpm add selector, where an unsupported name or a comma (e.g. node 22,is-positive) could be misread as a list of packages or a local directory and install unintended packages or bins.

v11.10.0

Compare Source

Minor Changes
  • e2e3c81: Added the issues command as an alias of bugs, so pnpm issues opens the package's bug tracker URL in the browser.

  • 8491f8e: Added the prefix command which prints the current package prefix directory (or global prefix directory if -g / --global is used).

  • 3425e80: Added an _auth setting for configuring registry authentication as a single structured (URL-keyed) value. It can be set in the global pnpm config (config.yaml) or, for CI, via the pnpm_config__auth environment variable. The env form sidesteps the GitHub Actions / bash / zsh limitation that broke the existing pnpm_config_//host/:_authToken=… form (env var names containing /, :, or . are silently dropped). Closes #​12314.

    The value is keyed by registry URL so each secret is explicitly bound to the host that may receive it. Registry URL keys must use http or https and must not include credentials, query strings, or fragments:

    export pnpm_config__auth='{"https://registry.npmjs.org":{"@&#8203;":{"authToken":"npm-token"},"@&#8203;org":{"authToken":"org-token"}}}'

    The equivalent in the global config.yaml:

    _auth:
      https://registry.npmjs.org:
        "@&#8203;":
          authToken: npm-token
        "@&#8203;org":
          authToken: org-token

    Within each registry URL, @ means registry-wide/default credentials and package scopes like @org bind credentials to that scope on the same host. The only supported credential field is authToken (maps to _authToken / bearer auth); the deprecated basicAuth / username + password forms are intentionally not accepted here.

    Each entry also infers a trusted registry route: @ routes the default registry (and pnpm add <pkg> resolves there), and @org routes that scope. Because the credential and destination host arrive in one trusted value, repo-controlled pnpm-workspace.yaml or project .npmrc cannot redirect the token to a different host. _auth is honored only from the env var and the global config — it is ignored in a project pnpm-workspace.yaml / .npmrc, so repo-controlled config can never supply registry auth. Precedence: CLI flags (--registry, --@&#8203;scope:registry) > pnpm_config__auth > global config.yaml _auth > pnpm-workspace.yaml.

    Both pnpm_config__auth (lowercase, documented form) and PNPM_CONFIG__AUTH (all-caps, the shell convention some CI runners apply) are honored. If both are set, lowercase wins unless it is empty, in which case uppercase is used. The env var wins over the global config.yaml _auth on a conflicting key. tokenHelper is not supported in _auth. Parsing is strict: a malformed value (bad JSON, wrong shape, invalid registry URL or scope, an unsupported credential field) fails fast with an error rather than being silently dropped.

    Pacquet parity note: the pacquet (Rust) port supports the same single credential field as the TS CLI: authToken.

  • a33eeec: pnpm self-update and packageManager version-switching can now install and link pnpm v12 (the Rust port), published with equal content under both the pnpm and @pnpm/exe names on the next-12 dist-tag. Its native binaries ship as @pnpm/exe.<platform>-<arch> packages, which pnpm's built-in installer links directly — no Node.js launcher, so the command pays no Node startup cost. v12 is initialized exactly like @pnpm/exe, including per-platform global-virtual-store hashing. From v12 onward the install converges on the unscoped pnpm package (the Rust exe) — even when updating from the SEA @pnpm/exe build.

  • 1dd12bd: When resolving through a pnpr install-accelerator server, pnpm no longer forwards its own upstream registry credentials in the resolve request. Only the Authorization header identifying the caller to pnpr is sent. The pnpr server now selects upstream credentials from its own route policy (operator-configured upstream credential aliases), so private dependencies resolve through a pnpr-managed alias the caller is authorized to use, rather than by sending the client's registry tokens to the server.

  • 1e81761: Expose web authentication authUrl and doneUrl in JSON error output when OTP is required in a non-interactive terminal #​12724.

Patch Changes
  • 2f389d6: Added the Node.js release team's new signing key (Stewart X Addison, 655F3B5C1FB3FA8D1A0CA6BDE4A7D232B936D2FD) to the embedded Node.js release keys, so runtimes whose SHASUMS256.txt is signed by the new releaser verify successfully.

  • acbdb94: Fixed shell tab completion not suggesting workspaces after the -F alias for --filter option.

  • dcabb78: Fixed pnpm up -r <pkg> bumping unrelated packages that have open semver ranges. Previously, any update mutation nullified the lockfile-derived preferredVersions globally, so packages with ^x.y.z ranges could re-resolve to newer compatible versions even though the user only asked to update a specific package. The install layer now always seeds preferredVersions from the lockfile, and caller-supplied preferred versions (such as the vulnerability penalties of pnpm audit --fix) layer on top of the seed instead of replacing it. The targeted package still bumps: the per-resolve updateRequested flag makes the resolver ignore the target's own lockfile pins.

    Closes #​10662.

  • d539172: Fixed pnpm pack and pnpm publish failing when prepack generates files that are included in the package and postpack cleans them up.

  • be6505a: Hardened global package management:

    • On Windows, removing or updating a global package now also cleans up the node.exe flavor of a bin, so a stale node.exe no longer survives on PATH after uninstall, and a new global install no longer silently overwrites an existing node.exe.
    • pnpm add -g pnpm@<version> (and @pnpm/exe@<version>) is now rejected like the bare pnpm form, pointing to pnpm self-update.
    • Dependency aliases read from a global package's manifest are validated before being joined onto node_modules paths, preventing a tampered manifest from escaping the install directory.
    • Each global install group is created in its own freshly-made directory (no longer reusing a colliding or pre-existing path).
    • Removing or updating a global package no longer unlinks a bin that belongs to a different globally installed package.
  • 25c7388: pnpm now rejects jsr: specifiers whose package name is not a valid npm package name — an empty scope or name (e.g. jsr:@&#8203;scope/), path separators inside the name, or any other shape validate-npm-package-name rejects — with ERR_PNPM_INVALID_JSR_PACKAGE_NAME instead of silently converting them into a malformed @jsr/... npm package name.

  • 25c7388: pnpm now rejects named-registry specifiers (e.g. gh:) whose package name is not a valid npm package name — an empty scope (e.g. gh:@&#8203;/bar), path separators inside the name (e.g. gh:@&#8203;scope/../name), or any other shape validate-npm-package-name rejects — with ERR_PNPM_INVALID_NAMED_REGISTRY_PACKAGE_NAME instead of passing the name through to registry URLs and metadata cache file paths.

  • 96da7c5: node-gyp's gyp_main.py and gyp entrypoints are now packed with the executable bit in the pnpm and @pnpm/exe tarballs. Without it, building native addons from source could fail with a permission error.

  • 99982b9: Sped up resolution and reduced memory use against registries that ignore npm's abbreviated metadata format and always return the full package document (for example, Azure DevOps Artifacts). pnpm now strips such documents down to the abbreviated field set before caching them. Resolution output is unchanged, and registries that honor the abbreviated format (such as the npm registry) pay no extra cost.

  • 11a7fdd: Sped up offline and --prefer-offline resolution on large workspaces (e.g. pnpm dedupe --offline, pnpm install --offline). Package metadata loaded from the local cache is now kept in memory, so each package's metadata is parsed once per command instead of once per dependent that references it.

  • 2c7369d: pnpm pack-app now rejects --entry / pnpm.app.entry and --output-dir / pnpm.app.outputDir values that are absolute paths or escape the project directory via .. (or a symlink that resolves outside it), and refuses to write the produced executable when its target path already exists as a symlink (or other non-regular file). This prevents a repository-controlled package.json from embedding host files (such as an SSH key) into the produced executable, writing build artifacts outside the project, or overwriting an arbitrary file through a committed symlink. The new error codes are ERR_PNPM_PACK_APP_ENTRY_OUTSIDE_PROJECT, ERR_PNPM_PACK_APP_OUTPUT_DIR_OUTSIDE_PROJECT, and ERR_PNPM_PACK_APP_OUTPUT_FILE_NOT_REGULAR.

    When ad-hoc signing macOS targets, pnpm pack-app now runs the system codesign by absolute path and resolves ldid to a location outside the project, so a repository-controlled node_modules/.bin on PATH cannot hijack the signer.

  • ce5d5a5: Relative paths in patchedDependencies are now resolved against the lockfile directory when computing patch file hashes, so running pnpm install from a subdirectory no longer fails with ENOENT looking for the patch file in the wrong location #​12762.

  • ebb4096: pnpm peers no longer reports a conflict for a missing peer dependency that is ignored via pnpm.peerDependencyRules.ignoreMissing.

  • dcabb78: Fixed a prototype-pollution hazard when seeding preferred versions: a dependency named __proto__ in a manifest or in pnpm-lock.yaml could write through Object.prototype (or crash the install) while the preferred-versions map was being built. The maps are now null-prototype objects, so crafted package names land as plain keys.

  • f38e696: Hardened pnpm deploy --force so it refuses unsafe deploy targets such as workspace roots, parent directories, out-of-workspace paths, and symlinked target parents.

  • 806c3ec: pnpm no longer warns about ignored project-level auth settings when PNPM_CONFIG_NPMRC_AUTH_FILE points at the project .npmrc — setting it to that file is an explicit opt-in to trusting it, so auth env variables in it are expanded pnpm/pnpm#12480.

  • 991405e: Restore differential rendering (ansi-diff) to fix duplicated output lines introduced by #​12351.

  • c121235: Fixed the topological order of --filtered commands (pnpm run, pnpm exec, pnpm publish, pnpm pack, pnpm rebuild) when the selected projects depend on each other only transitively through projects that were not selected. Previously such selected projects could run concurrently or in the wrong order; now a project always runs after the selected projects it transitively depends on, while projects without a real dependency relationship still run concurrently. This now also holds for prod-only filters (--filter-prod), which resolve order through the production dependency graph so transitive production dependencies are respected without pulling back the dev dependencies the filter drops, and for selections that mix --filter with --filter-prod #​8335.

  • d539172: pnpm pack and pnpm publish no longer follow a symlinked workspace LICENSE file when injecting it into a package that has no license of its own. Following the symlink could pack bytes from outside the workspace into the published tarball.

  • dcabb78: Fixed pnpm up <pkg> producing a different result than a fresh install of the same manifests would. The resolver now distinguishes updateRequested (true only for packages that match the user's update target) from the broader update flag, and for the targeted package ignores only its own lockfile-derived preferred-version pins — so the target re-resolves exactly as if its lockfile entries were deleted and pnpm install ran. Preferred versions a fresh install applies (manifest pins, versions propagated down the dependency chain, and the vulnerability-avoidance penalties of pnpm audit --fix) stay in effect, so an update never installs duplicate versions that a reinstall from scratch would not reproduce. When a preferred version holds the update target below the newest version its range admits, pnpm now prints a warning explaining that reaching the newer version everywhere requires an override.

  • dcabb78: pnpm update <dep>@&#8203;<version> now prints a warning when <dep> is only present as a transitive dependency: the requested version cannot be applied there (updates resolve the target the way a fresh install would), and the warning recommends adding the version to pnpm.overrides instead, which is the mechanism that does pin transitive dependencies. Closes #​12744.

  • a6c4d5f: When a dependency cannot be found in the registry (404) or the registry has no matching version, and a workspace project with the same name exists only at non-matching versions, the error now reports the available workspace versions (ERR_PNPM_NO_MATCHING_VERSION_INSIDE_WORKSPACE) instead of the raw registry failure pnpm/pnpm#1379. Other registry failures (authorization, network, server errors) still propagate unchanged. The pacquet (Rust) resolver applies the same behavior.

v11.9.0

Compare Source

Minor Changes
  • bae694f: Some registries generate tarballs on-demand and cannot provide an integrity checksum in their package metadata. In that case pnpm now computes the integrity from the downloaded tarball and stores it in the lockfile, so the entry is verifiable on subsequent installs instead of being written without an integrity (which would fail the next install). This also applies to --lockfile-only: the tarball is downloaded so its integrity can be computed. A lockfile entry that is still missing its integrity is rejected as a ERR_PNPM_MISSING_TARBALL_INTEGRITY lockfile verification violation (the install fails closed) rather than being silently re-fetched.
  • 6c35a43: Added --exclude-peers to pnpm sbom. With auto-install-peers (the default), peer dependencies resolve into the lockfile and are otherwise indistinguishable from the package's own dependencies. The flag drops peer dependencies (and any transitive subtree reachable only through them) from the SBOM. CycloneDX 1.7 has no scope or relationship that expresses "consumer-provided peer", so omission is the only spec-clean handling. The flag name matches pnpm list --exclude-peers; note the SBOM flag prunes a peer's exclusive subtree, which is stricter than pnpm list (which only hides leaf peers).
Patch Changes
  • 25a829e: pnpm audit --fix now writes a single combined minimumReleaseAgeExclude entry per package (e.g. [email protected] || 0.21.1) instead of one entry per version, matching the format documented for the setting. Existing per-version entries in pnpm-workspace.yaml are merged into the combined form rather than left as duplicates. Installs that auto-collect immature versions into minimumReleaseAgeExclude now report the same combined entries, so the "Added N entries" message matches what is written to the manifest #​12534.

  • 1cbb5f2: Fixed non-deterministic peer resolution that could add or remove an optional transitive peer — for example @babel/core, reached through styled-jsx — from a package's peer-dependency suffix across otherwise identical installs, churning the lockfile and causing intermittent pnpm dedupe --check failures in CI. When a package's children are resolved by one occurrence (the "owner") and reused by a deeper consumer, whether that consumer inherited the owner's missing peers depended on whether the owner's resolution had finished yet — a race under concurrent resolution. The decision is now a function of the dependency graph's structure rather than resolution-completion order.

  • d577eea: Fixed a Windows flakiness in pnpm dlx where a failed install could surface a spurious EBUSY: resource busy or locked error. The cleanup of a partially-populated dlx cache is now best-effort with retries and no longer masks the original error.

  • ec7cf70: Shortened the pnpm dlx cache path so deep dependency trees no longer overflow Windows' MAX_PATH, which could make a dependency's lifecycle script fail with spawn cmd.exe ENOENT.

  • 05b95ab: Fixed pnpm hanging (and crashing with an unhandled promise rejection) when a non-retryable network error such as SELF_SIGNED_CERT_IN_CHAIN occurs while fetching from a registry. The error is now rejected through the returned promise instead of being thrown inside the detached retry callback.

  • d3f68e2: Fix a pnpm audit performance regression on lockfiles that contain dependency cycles. The reachable-vulnerability pruning added in pnpm 11.5.1 only memoized acyclic subtrees, so any node whose subtree touched a cycle — together with all of its ancestors — was recomputed on every query, making the path walk quadratic. Reachability is now computed once per node using Tarjan's strongly-connected-components algorithm, so cyclic graphs are handled in linear time #​12212.

    The audit path walk also no longer recurses, so a deeply nested dependency graph can no longer overflow the call stack, and the install path to each finding is tracked without per-node copying, keeping memory linear in the graph depth.

  • 322f88f: Fix failed optional dependency updates so they don't rewrite unrelated dependency specs #​11267.

  • 1488db1: When enableGlobalVirtualStore is toggled on for a project that was previously installed without it, stale hoisted symlinks under node_modules/.pnpm/node_modules are now replaced instead of being left pointing at the old per-project virtual store location #​9739.

  • 6545793: Fixed pnpm install --ignore-workspace overwriting the allowBuilds map in pnpm-workspace.yaml. The ignored builds of a package with a build script were auto-populated into allowBuilds even though --ignore-workspace was passed, clobbering committed true/false values with the set this to true or false placeholder #​12469.

  • fbdc0eb: Fixed minimumReleaseAgeExclude and trustPolicyExclude so multiple exact-version entries for the same package behave the same as a single || disjunction entry. Previously only the first matching rule's versions were honored, so a config like [[email protected], [email protected]] could still flag [email protected] as violating minimumReleaseAge, while [[email protected] || 2.5.6] worked as expected #​12463.

  • fa7004b: The in-memory package metadata cache is now populated on the exact-version disk fast path, so repeated resolutions of the same package within one install no longer re-read and re-parse the on-disk metadata. In large monorepos this brings the time for adding a new package down from minutes to seconds. The in-memory cache key now also includes the registry, so a package of the same name served by two different registries in a single install can no longer share a cache slot and resolve the wrong tarball.

  • 0a154b1: Fixed pnpm patch dropping the package name (and leaking internal option fields) when the patched dependency resolves to a single git-hosted version.

  • 4d3fe4b: The pnpr resolver endpoints moved under the reserved /-/pnpr namespace: POST /v1/resolve is now POST /-/pnpr/v0/resolve and POST /v1/verify-lockfile is now POST /-/pnpr/v0/verify-lockfile. The capability handshake at GET /-/pnpr advertises protocol version 0 to match. This keeps every pnpr-proprietary route in npm's reserved namespace, so it can never collide with a package path.

  • 0ec878d: Removing a runtime dependency now removes the matching devEngines.runtime or engines.runtime entry that was materialized from it. Blank runtime selectors are normalized to latest.

  • 17e7f2c: pnpm sbom now emits a CycloneDX issue-tracker external reference for components (and the root) whose package.json declares a bugs URL. Email-only bugs entries are skipped, since the reference requires a URL.

  • a84d2a1: Add @pnpm/resolving.tarball-url, which builds and recognizes the canonical npm tarball URL of a package. It vendors getNpmTarballUrl (previously the external get-npm-tarball-url package) and adds isCanonicalRegistryTarballUrl, the predicate the lockfile writer uses to decide whether a tarball URL is derivable from name+version+registry (and can therefore be omitted from pnpm-lock.yaml).

    Exposing isCanonicalRegistryTarballUrl lets a custom resolver (pnpmfile resolvers) fronting a proxy that serves tarballs on a non-canonical path (e.g. an ephemeral localhost:<port>) rewrite the resolved tarball to the canonical form, so nothing host-specific is persisted to the lockfile. Previously this logic was private to @pnpm/lockfile.utils.

    Two correctness fixes are included while consolidating the logic: the scoped-package unescape now handles uppercase %2F as well as %2f (percent-encoding is case-insensitive), and protocol-insensitive comparison strips only a leading http(s):// scheme instead of splitting on the first :// (which could truncate URLs containing a later ://).

  • 852d537: Lockfile verification no longer reports a registry metadata fetch failure (for example a 403/401 on a private registry, or a network error) as ERR_PNPM_TARBALL_URL_MISMATCH. When the registry can't be reached to verify an entry, the install now aborts with the registry's own fetch error (such as ERR_PNPM_FETCH_403, which already explains the authentication situation) instead of mislabeling a transport failure as lockfile tampering. Registry fetch errors no longer leak basic-auth credentials embedded in the registry URL (https://user:pass@host/) into their message.

v11.8.0

Compare Source

Minor Changes
  • c112b61: Added a --dry-run option to pnpm install. It runs a full dependency resolution and reports what an install would change, but writes nothing to disk (no lockfile, no node_modules) and always exits with code 0. This mirrors the preview semantics of npm install --dry-run #​7340.

  • 179ebc4: pnpm run --no-bail now exits with a non-zero exit code when any of the executed scripts fail, while still running every matched script to completion. This makes the exit-code behavior of --no-bail consistent between recursive and non-recursive runs (recursive runs already failed at the end). Previously, a non-recursive pnpm run --no-bail always exited with code 0, even when a script failed #​8013.

  • 0474a9c: Added support for generating Node.js package maps at node_modules/.package-map.json during isolated and hoisted installs. Added the node-experimental-package-map setting to inject the generated map into pnpm-managed Node.js script environments, and the node-package-map-type setting to choose between standard and loose package maps.

  • dcededc: pnpm sbom now marks components reachable only through devDependencies with CycloneDX scope: "excluded" and the cdx:npm:package:development property. The excluded scope documents "component usage for test and other non-runtime purposes", which matches the semantics of a devDependency; the property is the CycloneDX npm-taxonomy marker emitted by @cyclonedx/cyclonedx-npm, so both modern (scope) and existing (property) consumers are covered. Components reachable at runtime (including installed optionalDependencies) omit scope and default to required.

  • 1495cb0: Added per-package SBOM generation with --out and --split flags. Use --out out/%s.cdx.json to write one SBOM per workspace package to individual files, or --split for NDJSON output to stdout. When --filter selects a single package, the SBOM root component now uses that package's metadata. Workspace inter-dependencies (workspace: protocol) and their transitive dependencies are included. Author, repository, and license fall back to the root manifest when the package doesn't define them.

  • 293921a: feat(view): support searching project manifest upward when package name is omitted

    When running pnpm view without a package name, the command now searches
    upward for the nearest project manifest (package.json, package.yaml, or package.json5) and uses its name field.
    If the manifest exists but lacks a name field, an error is thrown.

    This change also replaces the find-up dependency with empathic for
    improved performance and consistency across workspace tools.

Patch Changes
  • 29ab905: Fixed pnpm update overriding the version range policy of a named catalog whose name parses as a version (e.g. catalog:express4-21). The catalog: reference carries no pinning of its own, so the prefix from the catalog entry (such as ~) is now preserved instead of being widened to ^ #​10321.

  • bee4bf4: Security: validate config dependency names and versions from the env lockfile (pnpm-lock.yaml) before using them to build filesystem paths. A committed lockfile with a traversal-shaped configDependencies name (such as ../../PWNED) or version (such as ../../../PWNED) could previously cause pnpm install to create symlinks or write package files outside node_modules/.pnpm-config and the store. Names must now be valid npm package names and versions must be exact semver versions; the same validation is applied to optional subdependencies of config dependencies, and to the legacy workspace-manifest format before any lockfile is written. See GHSA-qrv3-253h-g69c.

  • 96bdd57: Fix link: workspace protocol switching to file: after pnpm rm is run from inside a workspace package whose target workspace dependency has its own dependencies, when injectWorkspacePackages: true is set. Follow-up to #​10575, which fixed the same symptom for workspace packages without dependencies.

  • 302a2f7: No longer warn about using both packageManager and devEngines.packageManager when the two fields pin the same package manager at the same version with the same integrity hash (e.g. both [email protected]+sha512.…). Previously the hash was stripped from the legacy packageManager field but not from devEngines.packageManager, so even identical specifications looked like a mismatch #​12028.

    The warning still fires on any genuine divergence, and several cases now state the specific reason instead of a single generic message: a different package manager, a different version, or contradictory integrity hashes for the same version.

  • 3f0fb21: Fixed the progress line showing leftover characters from external processes that write to the terminal between progress updates (e.g. an SSH passphrase prompt would leave a fragment like added 0sa':). The interactive reporter now redraws each frame in place, erasing to the end of the display before reprinting, so any such remnants are cleared #​12350.

  • 564619f: Fixed pnpm approve-builds reporting "no packages awaiting approval" when a build-script dependency whose approval was revoked (e.g. after git stash drops the allowBuilds from pnpm-workspace.yaml) is re-added. The revoked packages are now correctly recorded in .modules.yaml so approve-builds can find them. #​12221

  • 3d1fd20: Skip the redundant "target bin directory already contains an exe called node" warning on Windows when the existing node.exe already matches the target (same hard link or identical content) pnpm/pnpm#12203.

  • 1b02b47: Fix macOS Gatekeeper blocking native binaries (.node, .dylib, .so) by removing the com.apple.quarantine extended attribute after importing them from the store.

    When pnpm imports files from its content-addressable store into node_modules, macOS preserves extended attributes, including com.apple.quarantine. If this xattr is present on a store blob (e.g. it was first written under a Gatekeeper-enabled app such as a Git client), it propagates to node_modules, and Gatekeeper blocks the native binary from loading even though pnpm already verified the file's integrity against the lockfile.

    After importing a package, pnpm now strips com.apple.quarantine from its native binaries, matching Homebrew's behaviour of dropping quarantine from verified downloads. The cleanup is macOS-only, runs in a single batched xattr call per package, is restricted to native binaries (other files are untouched), and is non-fatal (it logs a warning on unexpected errors).

    Fixes #​11056

  • 61969fb: Fix pnpm install with optimisticRepeatInstall incorrectly reporting Already up to date when pnpm-lock.yaml changed but project manifests did not. This affected workflows such as checking out or restoring only the lockfile #​12100.

    Also fixes checkDepsStatus to use the correct lockfile path when useGitBranchLockfile is enabled, so the optimistic fast-path and lockfile modification detection work with pnpm-lock.<branch>.yaml files instead of always stat'ing pnpm-lock.yaml. Merge-conflict detection now reads the resolved lockfile name as well, and with mergeGitBranchLockfiles enabled every pnpm-lock.*.yaml is scanned for modifications and conflicts. The git branch is now resolved by reading .git/HEAD directly (no process spawn) and uses the workspace directory rather than process.cwd().

  • 5c12968: Fix recursive updates of transitive dependencies when the update command mixes transitive dependency patterns with direct dependency selectors. For example, pnpm up -r "@&#8203;babel/core" uuid now updates matching transitive @babel/core dependencies even when uuid is a direct dependency selector #​12103.

  • 9d79ba1: Register the pnpm update --no-save flag in the CLI help and option parser.

  • 0474a9c: Fixed pnpm import for Yarn v2 lockfiles when js-yaml v4 is installed.

  • 9e0c375: Fixed pnpm install repeatedly prompting to remove and reinstall node_modules in a workspace package when enableGlobalVirtualStore is enabled. The post-install build step recorded a per-project node_modules/.pnpm virtual store directory in node_modules/.modules.yaml, overwriting the global <storeDir>/links value the install step had written. The next install then detected a virtual-store mismatch (ERR_PNPM_UNEXPECTED_VIRTUAL_STORE). The build step now derives the same global virtual store directory as the install step #​12307.

  • 223d060: Document the --cpu, --os and --libc flags in the output of pnpm install --help. These flags were already supported but were only documented on the website #​12359.

  • [`e85a

✂ Note

PR body was truncated to here.


Configuration

📅 Schedule: (UTC)

  • Branch creation
    • On day 1 of the month, every 12 months (* * 1 */12 *)
  • Automerge
    • At any time (no schedule defined)

🚦 Automerge: Enabled.

♻ Rebasing: Whenever PR is behind base branch, or you tick the rebase/retry checkbox.

🔕 Ignore: Close this PR and you won't be reminded about this update again.


  • If you want to rebase/retry this PR, check this box

This PR has been generated by Mend Renovate using a curated preset maintained by Sanity. View repository job log here


Note

Medium Risk
Major pnpm upgrade affects every install and CI run; the lockfile patch metadata format change could break installs if Corepack or patch resolution behaves differently, though no application source changed.

Overview
Bumps the repo’s pinned package manager from pnpm 10.34.5 to pnpm 11.13.0 via the packageManager field in package.json.

The lockfile is refreshed for pnpm 11’s patchedDependencies representation: the @bynder/compact-view patch entry is now stored as a content hash only (no nested hash/path object), matching how pnpm 11 records patches while the patch file itself is unchanged.

Reviewed by Cursor Bugbot for commit 81e23b3. Bugbot is set up for automated code reviews on this repo. Configure here.

@squiggler-app
squiggler-app Bot requested a review from a team as a code owner July 14, 2026 15:11
@squiggler-app
squiggler-app Bot requested review from juice49 and removed request for a team July 14, 2026 15:11
@squiggler-app
squiggler-app Bot enabled auto-merge (squash) July 14, 2026 15:11
@changeset-bot

changeset-bot Bot commented Jul 14, 2026 •

Copy link
Copy Markdown

⚠️ No Changeset found

Latest commit: 81e23b3

Merging this PR will not cause a version bump for any packages. If these changes should not result in a new version, you're good to go. If these changes should result in a version bump, you need to add a changeset.

This PR includes no changesets

When changesets are added to this PR, you'll see the packages that this PR includes changesets for and the associated semver types

Click here to learn what changesets are, and how to add one.

Click here if you're a maintainer who wants to add a changeset to this PR

@vercel

vercel Bot commented Jul 14, 2026 •

Copy link
Copy Markdown

The latest updates on your projects. Learn more about Vercel for GitHub.

Project Deployment Actions Updated (UTC)
plugins-studio Ready Ready Preview, Comment Jul 15, 2026 9:26pm

Request Review

@squiggler-app
squiggler-app Bot merged commit 0a0e77e into main Jul 15, 2026
14 checks passed
@squiggler-app
squiggler-app Bot deleted the renovate/major-11-corepack branch July 15, 2026 21:33
cursor Bot pushed a commit that referenced this pull request Jul 28, 2026
Replace styled-components and inline style objects with colocated
vanilla-extract stylesheets, using assignInlineVars for dynamic
theme/color values. Builds on the function-component + useDrag
refactor from the ban-react-class-components branch.

fix: address review feedback on drag attach timing and imperative handle

- useDrag: attach the mousedown listener in useLayoutEffect so it exists
  before paint (matches the previous synchronous JSX onMouseDown wiring).
- OrderableDocumentList: give useImperativeHandle a dependency list so a
  new handle object is not installed on every render (the structure pane
  stores the handle in state, so per-render handles could loop).

refactor(color-input): extract shared useDrag hook for picker surfaces

Replace the per-component propsRef/AbortController plumbing in
Alpha/Hue/Saturation/EditableInput with a single useDrag hook. It wires a
native mousedown listener via useEffect and keeps callbacks fresh with
useEffectEvent, so drag events always read the latest props. mousemove and
mouseup listeners attach per-gesture and abort on mouseup or unmount.

fix(color-input): address review feedback on drag listeners

- Keep latest props in a ref so window mousemove listeners registered on
  mousedown see current values (matches class `this.props` behavior).
- Normalize EditableInput value comparisons to avoid number/string mismatch.
- Correct orderable-document-list changeset wording (ref-as-prop, not forwardRef).

Merge origin/main into cursor/ban-react-class-components-ca2a

Resolve color-input conflicts from #1673 (simplify components, remove
CustomPicker HOC). Main kept Alpha/Hue/Saturation/EditableInput as class
components pending a follow-up conversion; this PR is that follow-up:
- Accept ColorWrap.tsx deletion (HOC replaced by ColorInput state).
- Re-apply function-component conversions on top of main's AbortController
  listener cleanup, using useRef instead of createRef.

fix(color-input): simplify components, remove HOC (#1673)
Version Packages (#1668)

Co-authored-by: squiggler-app[bot] <265501495+squiggler-app[bot]@users.noreply.github.com>
chore(deps): dedupe pnpm-lock.yaml (#1671)

Co-authored-by: squiggler-app[bot] <265501495+squiggler-app[bot]@users.noreply.github.com>
Migrate sanity-plugin-workflow styling to vanilla-extract (#1450)

* Migrate sanity-plugin-workflow styling to vanilla-extract

* Keep styled-components catalog:devDependency for peer alignment

After the vanilla-extract migration, the peer can go, but the catalog
devDependency must remain so pnpm resolves the workspace
@sanity/styled-components override (same as google-maps-input).

---------

Co-authored-by: Cursor Agent <[email protected]>
Merge origin/main into cursor/ban-react-class-components-ca2a

Resolve the modify/delete conflict on .oxlintrc.json: main moved shared
lint rules into @sanity/plugin-kit/oxlint (#1565). Accept the deletion
and port the Component/PureComponent/createRef bans into
packages/@sanity/plugin-kit/src/oxlint.ts alongside the existing
createElement/forwardRef restrictions.

Also rewrite OrderableDocumentList to use React 19 ref-as-prop instead
of forwardRef so it complies with main's forwardRef ban, and update
skill docs that still pointed at .oxlintrc.json.

ci: request workflows permission for typegen app token (#935)

Co-authored-by: copilot-swe-agent[bot] <[email protected]>
Co-authored-by: Cody Olsen <[email protected]>
feat(@sanity/plugin-kit)!: remove Studio v2 upgrade and compatibility tooling (#1588)

* feat(@sanity/plugin-kit)!: remove Studio v2 upgrade and compatibility tooling

Drop verify-studio and all verify-package checks that existed to migrate from
or stay compatible with Sanity Studio v2 (incompatible-plugin shim, part:/config:
imports, merged @sanity/* packages, sanity.json parts validation). Package
verification now focuses on current plugin-kit conventions.

* chore(@sanity/plugin-kit): drop unused json5/knip ignores and refresh snapshots

Remove the json5 dependency and readJson5File helper that only served v2
sanity.json parsing, prune stale eslint knip ignoreDependencies, and update
verify-package snapshots after removing v2-upgrade checks.

* fix(@sanity/plugin-kit): address review feedback on path validation and studio detection

Drop the dist-hardcoded path existence check in getPackage entirely: compiled
entry points legitimately don't exist pre-build regardless of outDir, and
verify-package's esmOnly check already bans main/module fields. Also detect
sanity.cli.(js|ts) in findStudioConfig so init/inject refuse cli-config-only
studio directories too.

---------

Co-authored-by: Cursor Agent <[email protected]>
chore(deps): dedupe pnpm-lock.yaml (#1669)

Co-authored-by: squiggler-app[bot] <265501495+squiggler-app[bot]@users.noreply.github.com>
fix(sanity-plugin-markdown): declare @sanity/client as a regular dependency (#1667)

* fix(sanity-plugin-markdown): declare @sanity/client and rxjs as regular deps

Move @sanity/client and rxjs out of inlinedDependencies into dependencies
so they are resolved at runtime instead of bundled into the package.

* chore: update lockfile for sanity-plugin-markdown deps

* fix(sanity-plugin-markdown): declare @sanity/client as a regular dependency

Move @sanity/client from devDependencies to dependencies so tsdown
externalizes it instead of writing it (and transitive rxjs) to
inlinedDependencies. rxjs is not imported by the plugin and is not
needed as a direct dependency once client is externalized.

---------

Co-authored-by: Cursor Agent <[email protected]>
fix(typegen): 🤖 ✨ (#1666)

Co-authored-by: squiggler-app[bot] <265501495+squiggler-app[bot]@users.noreply.github.com>
fix(deps): update dependency @tanstack/react-virtual to ^3.14.7 (#1664)

* fix(deps): update dependency @tanstack/react-virtual to ^3.14.7

* chore(deps): changeset for dependency update

---------

Co-authored-by: squiggler-app[bot] <265501495+squiggler-app[bot]@users.noreply.github.com>
chore(deps): dedupe pnpm-lock.yaml (#1665)

Co-authored-by: squiggler-app[bot] <265501495+squiggler-app[bot]@users.noreply.github.com>
Version Packages (#1663)

Co-authored-by: squiggler-app[bot] <265501495+squiggler-app[bot]@users.noreply.github.com>
feat: add @sanity/block-insert-picker (#1601)

* feat(block-insert-picker): add @sanity/block-insert-picker

Slash-command block-insert picker and markdown input rules for Portable
Text fields, extracted from the sanity-io/www-sanity-io docs Studio
(apps/studio/src/plugins/pte, PR #4003 there parameterized the docs
knowledge out in preparation).

Public API: blockInsertPicker({arrayTypeName, items?, inputRules?,
onItemInserted?}) returning the component for an array type's
components.portableText.plugins, plus the codeFenceRule/blockquoteRule
config factories and fence-language helpers. Items derive from the host
array's members with metadata-driven curation (triggers, keywords,
grouping, rank); inserts resolve member initial values, land as one
undo step, and open for editing.

Ported against sanity 6.5.0 / @portabletext/editor 7.10.7 /
@portabletext/plugin-input-rule 6.0.4 (peer editor ^7.10.7 to match the
input-rule plugin's requirement; editor stays a peer, never bundled).
112 tests ported with the source; test-studio example wired under
Home > Block Insert Picker.

* refactor(block-insert-picker): zero-config detection and reviewed v1 API

Applies the pre-publication design review (DESIGN-REVIEW.md in the
pte-plugin-extraction research):

- blockInsertPicker() now works with zero config: the containing array and
  its members are detected via PortableTextMemberSchemaTypesContext
  (quarantined in memberSchemaTypes.ts); arrayTypeName becomes an escape
  hatch. Peer narrowed to sanity ^5.6 (the context export's floor).
- Text blocks are excluded by resolved type chain, fixing aliased
  {name, type: 'block'} members being offered as object inserts (picker and
  input-rule allow-list both).
- New options: labels (translatable chrome), shortcut, openOnInsert
  (global + per-item), presets (well-known-type triggers/keywords),
  filter (receives the bare query in both modes), resolveItems middleware
  with custom item actions (query cleanup included); onItemInserted renamed
  onInsert, events carry mode/query.
- Presentation matches core: icon fallback chain, upperFirst titles, and
  curated descriptions now win over schema descriptions.
- New exports: BlockInsertPicker, MarkdownInputRules, derivePickerItems,
  filterPickerItems, standardBlockPresets, wellKnownInputRules, PickerMode.
- Input rules resolve blockType through member type chains, so
  wellKnownInputRules serves aliased code-input members.
- Review fixes: host-callback errors surface as toasts instead of unhandled
  rejections; anchor-deletion mid-insert shows a warning toast; positional
  row indices tolerate duplicate item ids; replacement-pattern-safe label
  formatting; screen-reader position announcement is translatable.

Deliberate deviations from the review doc: presets carry no description
(avoids a three-way precedence chain).

* test(block-insert-picker): lift cold-start timeout on first picker popover test

* docs: add @sanity/block-insert-picker to Current Plugins table

* chore: trigger pkg.pr.new preview publish

* refactor(block-insert-picker): address Copilot review comments

- insertPickerItem: spread the resolved initialValue before `_key`/`_type`
  so the generated key and target type always win. Sanity's initial-value
  resolver sets `_type` on object values; the values coincide by
  construction here, but ordering keeps the insert correct regardless.
- openBlockOnInsert: correct the stale rationale comment. The package
  enables the React Compiler, so the old "not active" claim was wrong; the
  point is the empty-dep useCallback keeps a stable reference for consumers.
- blockInsertPicker: fix the comment naming the wrong mouse events. Rows
  select via onClick and highlight via onMouseMove (not onMouseDown /
  onMouseEnter), passing an explicit idx to avoid a not-yet-flushed
  highlightedIndex.

* fix(block-insert-picker): case-insensitive fence language table match; trim README install

- normalizeFenceLanguage now compares the typed token to language-table
  `value`/`aliases` case-insensitively, returning the canonical value
  (casing preserved). Previously a table with mixed-case entries never
  matched and the mapped filename was skipped (Cursor Bugbot, low severity).
  Built-in rules and code-input's lowercase table were unaffected; this
  hardens host-supplied custom tables. Adds a mixed-case-table test.
- README: collapse the three install commands to a single `npm install`
  (no --save), matching @sanity/code-input's install section.

* Potential fix for pull request finding

Co-authored-by: Copilot Autofix powered by AI <[email protected]>

* fix(block-insert-picker): restore bracket notation for process.env access

The Copilot Autofix commit rewrote `process.env['NODE_ENV']` to dot
notation, which fails this repo's type-aware lint: `noPropertyAccessFrom
IndexSignature` (TS4111) requires index-signature properties like
`process.env.NODE_ENV` to be accessed with brackets. Restore the bracket
form so `pnpm lint` passes.

* fix(block-insert-picker): address Cursor Bugbot findings

- inputRules: preserve case for unknown fence tokens (`return token`, not the
  lowercased form) so the "pass through as typed" contract holds — e.g.
  `GraphQL` stays `GraphQL` for wellKnownInputRules' no-table path.
- inputRules: spread host `buildValue` before `_key`/`_type` in createInsertRule
  so a stray `_key`/`_type` can't hijack block identity (mirrors the
  insertPickerItem fix).
- blockInsertPicker: close the picker when a select bails on an in-flight
  insert, so a menu reopened during a slow initial-value resolution can't get
  stuck swallowing Enter.
- blockInsertPicker: key sections on the namespaced raw group instead of the
  display label, so a curated group named like `ungroupedSection` can't collide
  with the null-group section's React key.

Two other Bugbot findings need no change: the text-block exclusion
(`isTextBlockMember`) already mirrors Sanity's own `findBlockType` (walk the
type chain to root, match `name === 'block'`), and the initial-value spread in
insertPickerItem was already reordered in an earlier commit.

---------

Co-authored-by: Copilot Autofix powered by AI <[email protected]>
feat(code-input): export SUPPORTED_LANGUAGES and LANGUAGE_ALIASES (#1600)

Downstream tooling that resolves external language tokens (markdown
fence infostrings, paste/import pipelines) onto code field values has
had to vendor this list and hand-sync it with the Language selector.
Exporting the canonical table (and the alias map) removes the drift.
Version Packages (#1662)

Co-authored-by: squiggler-app[bot] <265501495+squiggler-app[bot]@users.noreply.github.com>
chore(changeset): note npm provenance re-enabled for sanity-plugin-utils (#1661)

Co-authored-by: Cursor Agent <[email protected]>
Version Packages (#1660)

Co-authored-by: squiggler-app[bot] <265501495+squiggler-app[bot]@users.noreply.github.com>
chore(changeset): bump google maps input for css dts cleanup (#1659)

Co-authored-by: copilot-swe-agent[bot] <[email protected]>
chore(deps): dedupe pnpm-lock.yaml (#1658)

Co-authored-by: squiggler-app[bot] <265501495+squiggler-app[bot]@users.noreply.github.com>
fix(deps): update dependency @sanity/client to ^7.24.0 (#1581)

Co-authored-by: squiggler-app[bot] <265501495+squiggler-app[bot]@users.noreply.github.com>
chore(deps): lock file maintenance (#1657)

Co-authored-by: squiggler-app[bot] <265501495+squiggler-app[bot]@users.noreply.github.com>
Version Packages (#1640)

Co-authored-by: squiggler-app[bot] <265501495+squiggler-app[bot]@users.noreply.github.com>
chore(test-studio): use turbo transit for build cache invalidation (#1655)

Replace empty dependsOn with a transit node so sanity build still skips
workspace package builds while Turbo invalidates when dependency source changes.

Co-authored-by: Cursor Agent <[email protected]>
chore(deps): bump pkg-utils, tsdown-config, and vanilla-extract plugins (#1656)

Update catalog entries to @sanity/pkg-utils ^11.0.13,
@sanity/tsdown-config ^0.19.6, and @sanity/vanilla-extract-vite-plugin
^0.2.5. Exclude [email protected] (and platform packages) from
minimumReleaseAge so pnpm update/dedupe can resolve the new transitive
deps, and align turbo/generators tsdown with the workspace catalog.

Co-authored-by: Cursor Agent <[email protected]>
chore(deps): dedupe pnpm-lock.yaml (#1653)

Co-authored-by: squiggler-app[bot] <265501495+squiggler-app[bot]@users.noreply.github.com>
chore: remove @typescript/native-preview (use TypeScript 7 native tsc) (#1650)

* chore: remove @typescript/native-preview now that TypeScript 7 ships native tsc

TypeScript 7.0.2 includes the native compiler as `tsc`, so the preview package
and its `tsgo` binary are no longer needed. VS Code settings now point the
TypeScript 7 extension at the workspace `typescript` install.

* Update settings.json

* Update settings.json

---------

Co-authored-by: Cursor Agent <[email protected]>
chore(deps): lock file maintenance (#1651)

Co-authored-by: squiggler-app[bot] <265501495+squiggler-app[bot]@users.noreply.github.com>
chore(test-studio): stop waiting on dependency builds (#1652)

Co-authored-by: copilot-swe-agent[bot] <[email protected]>
Delete dependencies-GH-1642.md
Migrate to date-fns v4 and official @date-fns/tz, matching sanity core (#1569)
chore(deps): dedupe pnpm-lock.yaml (#1649)

Co-authored-by: squiggler-app[bot] <265501495+squiggler-app[bot]@users.noreply.github.com>
fix(deps): update dependency @sanity/pkg-utils to ^11.0.12 (#1647)

Co-authored-by: squiggler-app[bot] <265501495+squiggler-app[bot]@users.noreply.github.com>
chore(deps): dedupe pnpm-lock.yaml (#1645)

Co-authored-by: squiggler-app[bot] <265501495+squiggler-app[bot]@users.noreply.github.com>
chore(deps): update renovatebot/github-action action to v46.1.20 (#1646)

Co-authored-by: squiggler-app[bot] <265501495+squiggler-app[bot]@users.noreply.github.com>
chore(deps): bump @sanity/vanilla-extract-vite-plugin to ^0.2.4

Drop the Bynder Styles.css.js Vite workaround from the test studio —
0.2.4 keeps the compiler alive under unstable_bundledDev, so plain
*.css.js modules no longer hang processVanillaFile.

fix(deps): update dependency tsdown to ^0.22.12 (#1642)
fix(deps): update dependency styled-components to ^6.4.4 (#1566)
chore(deps): dedupe pnpm-lock.yaml (#1643)

Co-authored-by: squiggler-app[bot] <265501495+squiggler-app[bot]@users.noreply.github.com>
fix(deps): update dependency react-virtuoso to ^4.18.11 (#1641)

* fix(deps): update dependency react-virtuoso to ^4.18.11

* chore(deps): changeset for dependency update

---------

Co-authored-by: squiggler-app[bot] <265501495+squiggler-app[bot]@users.noreply.github.com>
docs(agents): catalog shared deps + enable pnpm catalogMode prefer (#1374)
chore(deps): dedupe pnpm-lock.yaml (#1637)

Co-authored-by: squiggler-app[bot] <265501495+squiggler-app[bot]@users.noreply.github.com>
fix(deps): update dependency react-hook-form to ^7.82.0 (#1639)

* fix(deps): update dependency react-hook-form to ^7.82.0

* chore(deps): changeset for dependency update

---------

Co-authored-by: squiggler-app[bot] <265501495+squiggler-app[bot]@users.noreply.github.com>
chore(deps): update davelosert/vitest-coverage-report-action action to v2.12.2 (#1638)

Co-authored-by: squiggler-app[bot] <265501495+squiggler-app[bot]@users.noreply.github.com>
Version Packages (#1612)

Co-authored-by: squiggler-app[bot] <265501495+squiggler-app[bot]@users.noreply.github.com>
ci: shard Vitest suite (#1584)

* ci: shard vitest suite

* ci: report sharded test coverage

* chore: ignore Vitest blob reports

* ci: require test shards to succeed in aggregate check

---------

Co-authored-by: Cursor Agent <[email protected]>
Co-authored-by: copilot-swe-agent[bot] <[email protected]>
fix(typegen): 🤖 ✨ (#1634)

Co-authored-by: squiggler-app[bot] <265501495+squiggler-app[bot]@users.noreply.github.com>
chore(format): 🤖 ✨ (#1633)

Co-authored-by: squiggler-app[bot] <265501495+squiggler-app[bot]@users.noreply.github.com>
chore(deps): dedupe pnpm-lock.yaml (#1632)

Co-authored-by: squiggler-app[bot] <265501495+squiggler-app[bot]@users.noreply.github.com>
fix(deps): update dependency tsdown to ^0.22.9 (#1622)

* fix(deps): update dependency tsdown to ^0.22.9

* chore(deps): changeset for dependency update

---------

Co-authored-by: squiggler-app[bot] <265501495+squiggler-app[bot]@users.noreply.github.com>
Co-authored-by: copilot-swe-agent[bot] <[email protected]>
fix(assist): keep field group selection while editing AI Assist inputs (#1467)

* fix(assist): keep field group selection while editing AI Assist inputs

The AI Assist instruction inspector renders a nested document form that
reused the host document's pane router. Sanity's document pane mirrors the
router `path` param to programmatic focus, and focus drives the selected
field group. Navigating the instruction form therefore overwrote the host
`path`, re-focused the host document, and reset its field group tab.

Isolate the nested pane's `path` navigation in local state while still
forwarding other params (e.g. selected instruction) to the host router.

Co-authored-by: Cody Olsen <[email protected]>

* test(test-studio): add AI Assist + field groups fixture (SAPP-3970)

Adds an 'AI Assist: Field groups' document type with Content/SEO field
group tabs so the field-group-reset behavior with AI Assist can be
manually reproduced and verified.

Co-authored-by: Cody Olsen <[email protected]>

* refactor(assist): use react-fast-compare for param equality

Addresses PR review: the hand-rolled shallowEqualParams returned a false
positive when two param objects had the same key count but different keys
whose values were undefined (e.g. {foo: undefined} vs {bar: undefined}),
because it never verified the key existed on the other object. Reuse
react-fast-compare (already a plugin dependency, used in _lib/useListeningQuery)
instead of a custom check, and add a regression test.

Co-authored-by: Cody Olsen <[email protected]>

---------

Co-authored-by: Cursor Agent <[email protected]>
Co-authored-by: Cody Olsen <[email protected]>
fix(bynder-input): restore Compact View modal visibility in Studio v6 (#1553)

* fix(bynder-input): restore Compact View modal visibility in Studio v6

Upgrade @bynder/compact-view from 5.1.2 to 5.4.0 and patch its shadow DOM
integration for Sanity Studio v6:

- disableCSSOMInjection on StyleSheetManager so styled-components injects
  CSS into the shadow root instead of leaving empty style tags
- position:fixed + z-index on CompactViewContainer so the portal host
  stacks above Studio UI layers
- widen React peer dependency range to support React 19

Also render BynderModalLayout outside the button flex row.

* fix: unmount bynder layout when not open

* fix(bynder-input): take @bynder/compact-view 5.4.0 as a regular pinned dependency

Implements review feedback on the patch-based approach:
- drop the pnpm patch and the bundling of @bynder/compact-view; pin it
  as a regular dependency instead
- style the Compact View modal host from the plugin with a
  vanilla-extract globalStyle instead of patching Modal.js
- document how to allow the stale react peer range (npm
  --legacy-peer-deps, pnpm peerDependencyRules.allowedVersions) in the
  README, and use the pnpm rule for the workspace itself

* fix(bynder-input): survive Compact View shadow-root re-attachment and fix dev-studio css.js crash

- append a <slot> fallback to Compact View's shadow root while the modal
  is mounted: its attachShadow effect has no cleanup, so when React
  reconnects passive effects on the same host (StrictMode, Activity),
  the second attachShadow() throws and Compact View falls back to the
  host's light DOM, which the slotless shadow tree kept invisible
- work around @bynder/compact-view's Styles.css.js (a plain JS module
  whose name matches vanilla-extract's cssFileFilter and deadlocks the
  compiler under sanity dev's bundled dev mode) in the test studio
- move the container globalStyle to BynderInput.css.ts so it loads with
  the input instead of the lazy modal chunk

* chore(bynder-input): bump changeset to major

Taking @bynder/compact-view as an unbundled regular dependency with a
stale react peer range can fail npm installs without --legacy-peer-deps,
so it's a breaking change.

* chore(bynder-input): widen @bynder/compact-view to ^5.4.0

The exact pin was only needed while the package was patched and
inlined; as a plain regular dependency a caret range is fine.

* chore: merge main and regenerate lockfile

The PR lockfile was generated against a main where
@sanity/vanilla-extract-vite-plugin resolved to 0.2.1; main has since
bumped it to 0.2.2, and the git-merged lockfile on the PR merge ref was
internally inconsistent (ERR_PNPM_LOCKFILE_MISSING_DEPENDENCY in CI).

---------

Co-authored-by: Cursor Agent <[email protected]>
Co-authored-by: Cody Olsen <[email protected]>
fix(deps): update dependency @sanity/tsdown-config to ^0.19.3 (#1598)

* fix(deps): update dependency @sanity/tsdown-config to ^0.19.3

* chore: dedupe lockfile and add release-age excludes for tsdown transitive deps

---------

Co-authored-by: squiggler-app[bot] <265501495+squiggler-app[bot]@users.noreply.github.com>
Co-authored-by: Cody Olsen <[email protected]>
Co-authored-by: copilot-swe-agent[bot] <[email protected]>
chore(deps): dedupe pnpm-lock.yaml (#1631)

Co-authored-by: squiggler-app[bot] <265501495+squiggler-app[bot]@users.noreply.github.com>
fix(deps): update dependency @sanity/vanilla-extract-vite-plugin to ^0.2.2 (#1614)

* fix(deps): update dependency @sanity/vanilla-extract-vite-plugin to ^0.2.2

* chore(deps): exempt yuku-parser from minimum release age for dedupe

---------

Co-authored-by: squiggler-app[bot] <265501495+squiggler-app[bot]@users.noreply.github.com>
Co-authored-by: copilot-swe-agent[bot] <[email protected]>
Move turbo/**/*.hbs oxfmt ignore to root config (#1604)

The turbo generator template ignore is monorepo-specific and should
not ship in the shared @sanity/plugin-kit/oxfmt preset consumed by
standalone plugins.

Co-authored-by: Cursor Agent <[email protected]>
fix(deps): update dependency @sanity/pkg-utils to ^11.0.10 (#1630)

Co-authored-by: squiggler-app[bot] <265501495+squiggler-app[bot]@users.noreply.github.com>
docs(assist): fix README markdown formatting and document English-only image descriptions (#1628)

* fix(@sanity/assist): respect document language when generating image descriptions

Pass the configured translate.document.languageField as languagePath to the
generate-caption task (both the automatic generation triggered on image
change, and the manual 'Generate image description' field action), so
generated alt text/captions are written in the document's language instead
of always defaulting to English.

Fixes https://github.com/sanity-io/plugins/issues/1606

* docs(@sanity/assist): clarify caption generation language limitation

Testing against the live AI Assist backend confirms that the generate-caption
task currently always writes descriptions in English, regardless of the
languagePath sent from the client (this matches Sanity's own documentation,
which states the automatic image description feature is English-only today
and recommends the Transform Agent Action's image-description operation as a
workaround). Update the changeset and README to accurately describe the
change as forward-compatible plumbing rather than a full fix, and point users
at the documented workaround for non-English alt text today.

* refactor(assist): resolve languagePath inside useGenerateCaption

Compute languagePath from config.translate.document.languageField once
inside useGenerateCaption itself (via useAiAssistanceConfig), instead of
requiring every call site to read the config and thread it through as an
argument. This removes the duplicated config lookup from both
ImageContextProvider and generateCaptionsActions, and matches the cleaner
approach used in sanity-io/plugins#1627.

Also documents in translate/types.ts JSDoc that languageField is reused
for image description generation.

* docs(assist): fix README markdown formatting and add known limitations

The README relied on markdown block elements (headings, lists, code
fences, images) interrupting paragraphs without blank lines between
them. GitHub tolerates this, but stricter renderers (e.g. the plugin
listing on sanity.io) join everything into unreadable walls of text
with literal '### Heading' and '- list item' fragments inline.

- Separate all block elements with blank lines throughout
- Add a 'Known limitations' section documenting that image descriptions
  are always generated in English regardless of
  translate.document.languageField (backend limitation, see #1606),
  with Transform Agent Action and translate-after workarounds
- Fix broken links: empty-href heading, HOW-TO-USE pointing at the old
  standalone repo layout, LICENSE pointing at a non-existent file
- Fix broken bold markup in the 'Enabling the AI Assist API' steps and
  the useExampleFieldActions TOC anchor
- Add missing TOC entries (Known limitations, Caveats, Third party
  sub-processors)

Also reverts the languagePath client plumbing from this branch: the
backend ignores it, so the plugin change had no effect. This PR is now
docs-only.

---------

Co-authored-by: Cursor Agent <[email protected]>
chore(deps): dedupe pnpm-lock.yaml (#1619)

Co-authored-by: squiggler-app[bot] <265501495+squiggler-app[bot]@users.noreply.github.com>
chore(deps): update pnpm to v11.13.1 (#1624)

Co-authored-by: squiggler-app[bot] <265501495+squiggler-app[bot]@users.noreply.github.com>
fix(deps): update dependency @sanity/pkg-utils to ^11.0.9 (#1625)

Co-authored-by: squiggler-app[bot] <265501495+squiggler-app[bot]@users.noreply.github.com>
fix(deps): update turbo monorepo to v2.10.5 (#1626)

Co-authored-by: squiggler-app[bot] <265501495+squiggler-app[bot]@users.noreply.github.com>
chore(deps): update dependency knip to ^6.27.0

chore: fix css

fix(deps): update dependency @codemirror/lang-markdown to ^6.5.1 (#1610)

* fix(deps): update dependency @codemirror/lang-markdown to ^6.5.1

* chore(deps): changeset for dependency update

---------

Co-authored-by: squiggler-app[bot] <265501495+squiggler-app[bot]@users.noreply.github.com>
fix(deps): update dependency oxfmt to ^0.59.0 (#1599)

* fix(deps): update dependency oxfmt to ^0.59.0

* chore(deps): changeset for dependency update

---------

Co-authored-by: squiggler-app[bot] <265501495+squiggler-app[bot]@users.noreply.github.com>
fix(deps): update dependency @sanity/pkg-utils to ^11.0.7 (#1594)

Co-authored-by: squiggler-app[bot] <265501495+squiggler-app[bot]@users.noreply.github.com>
Fix TypeGen workflow failure by pinning `@sanity/vanilla-extract-vite-plugin` to 0.1.1 (#1616)

* Initial plan

* fix(typegen): pin vanilla-extract vite plugin to 0.1.1

---------

Co-authored-by: copilot-swe-agent[bot] <[email protected]>
chore(deps): bump tsdown and vanilla-extract

fix(deps): update dependency oxlint to ^1.74.0 (#1603)

* fix(deps): update dependency oxlint to ^1.74.0

* chore(deps): changeset for dependency update

---------

Co-authored-by: squiggler-app[bot] <265501495+squiggler-app[bot]@users.noreply.github.com>
chore(deps): update zizmorcore/zizmor-action action to v0.6.0 (#1609)

Co-authored-by: squiggler-app[bot] <265501495+squiggler-app[bot]@users.noreply.github.com>
chore(deps): lock file maintenance (#1611)

Co-authored-by: squiggler-app[bot] <265501495+squiggler-app[bot]@users.noreply.github.com>
chore(deps): replace @vanilla-extract/vite-plugin with @sanity/vanilla-extract-vite-plugin (#1590)

* chore(deps): replace @vanilla-extract/vite-plugin with @sanity/vanilla-extract-vite-plugin

Swap the vanilla-extract Vite plugin used by the test studio and
@sanity/google-maps-input's vitest config to @sanity/vanilla-extract-vite-plugin,
a Vite 8 rewrite with plugin hook filters and a caching compiler on Vite's
Environment API / ModuleRunner instead of the legacy vite-node. Bump tsdown to
^0.22.8 and @sanity/tsdown-config to ^0.17.0 alongside it.

google-maps-input's vitest.config.ts also needed a small stub plugin: its
dist/bundle.css.js Node/SSR shim matches the upstream cssFileFilter by
filename alone (*.css.js), which made the new plugin try to evaluate it as
real .css.ts source and throw ReferenceError: require is not defined via
ModuleRunner (vite-node tolerated this). The stub renames that module id away
from a .css.js shape before vanillaExtractPlugin() ever sees it.

Documented both the plugin swap and the shim workaround in the
sanity-plugin-best-practices skill and the new-plugin generator templates so
future vanilla-extract plugins get this for free.

* chore(deps): bump @sanity/tsdown-config to ^0.17.1, drop bundle.css.js shim workaround

@sanity/tsdown-config 0.17.1 (via @sanity/vanilla-extract-tsdown-plugin
0.2.1 / @sanity/vanilla-extract-rolldown-plugin 0.1.1) renames the
vanilla-extract Node/SSR compat shim from bundle.css.js to bundle-css.js so
it no longer matches vanillaExtractPlugin()'s cssFileFilter by filename
alone (sanity-io/pkg-utils#3043). That was the root cause of the
require-is-not-defined regression worked around in the previous commit, so
the stub-bundle-css-js-shim plugin is no longer needed.

Rebuilding @sanity/google-maps-input picked up the renamed dist/bundle-css.js
shim and auto-rewrote its package.json ./bundle.css export map (adding a
types condition too). Reverted the vitest.config.ts workaround and the
matching documentation/generator-template changes back to the plain
vanillaExtractPlugin() registration, now noted as a historical gotcha
instead of a live workaround.

* docs(test-studio): note that unstable_bundledDev breaks .css.ts HMR

Document the trade-off discovered while testing the vanilla-extract Vite
plugin swap: with unstable_bundledDev: true, editing a .css.ts file doesn't
hot-reload (a sanity dev restart is required), while plain .ts/.tsx HMR is
unaffected. Comment out the line for a session if fast CSS HMR is needed
(confirmed sub-10ms with it unset).

* docs(styling skill): trim verbose vanilla-extract setup section

The ./bundle.css export map (and its dist/bundle-css.js shim/types) is
generated and kept in sync automatically by @sanity/tsdown-config's
vanillaExtract option, so it doesn't need explaining or a JSON example to
copy. Simplify the vitest.config.ts guidance to why (@sanity/vanilla-extract-
vite-plugin is faster than upstream) without the ModuleRunner/hook-filter/
sanity-build internals. Drop the sanity.cli.ts snippet, since the test studio
already registers the plugin globally in this repo and doesn't need to be
touched per-plugin. Drop the bundle.css.js->bundle-css.js rename history
note, a one-off gotcha now fixed upstream rather than evergreen guidance.

* chore(deps): bump @sanity/tsdown-config to ^0.17.2, @sanity/vanilla-extract-vite-plugin to ^0.1.1

Both are latest-available patch releases (0.17.1 -> 0.17.2 pulls in
@sanity/vanilla-extract-tsdown-plugin 0.2.2 / @sanity/vanilla-extract-
rolldown-plugin 0.1.2; 0.1.0 -> 0.1.1 is the vite plugin's own patch).
tsdown stays at ^0.22.8, already the latest. Benchmarked in the next commit's
message to confirm this doesn't regress anything.

---------

Co-authored-by: Cursor Agent <[email protected]>
Co-authored-by: copilot-swe-agent[bot] <[email protected]>
fix(deps): update dependency @changesets/cli to ^2.31.1 (#1607)

* fix(deps): update dependency @changesets/cli to ^2.31.1

* chore(deps): exempt @changesets/cli and refresh lockfile with dedupe

---------

Co-authored-by: squiggler-app[bot] <265501495+squiggler-app[bot]@users.noreply.github.com>
Co-authored-by: copilot-swe-agent[bot] <[email protected]>
chore(deps): update dependency @vitejs/devtools to ^0.4.1 (#1593)

Co-authored-by: squiggler-app[bot] <265501495+squiggler-app[bot]@users.noreply.github.com>
Version Packages (#1591)
chore(deps): dedupe pnpm-lock.yaml (#1602)

Co-authored-by: squiggler-app[bot] <265501495+squiggler-app[bot]@users.noreply.github.com>
fix(media): use useMediaIndex so Tags panel works on wide viewports (#1592)

The home-rolled useBreakpointIndex returned -1 above 1920px, which
force-hid the Tags panel. Switch Items to @sanity/ui's useMediaIndex,
which includes a min-width catch-all and matches Controls breakpoints.

Co-authored-by: Cursor Agent <[email protected]>
fix(deps): update dependency xstate to ^5.32.5 (#1597)

* fix(deps): update dependency xstate to ^5.32.5

* chore(deps): changeset for dependency update

---------

Co-authored-by: squiggler-app[bot] <265501495+squiggler-app[bot]@users.noreply.github.com>
fix(deps): update dependency tsdown to ^0.22.8 (#1596)

* fix(deps): update dependency tsdown to ^0.22.8

* chore(deps): changeset for dependency update

---------

Co-authored-by: squiggler-app[bot] <265501495+squiggler-app[bot]@users.noreply.github.com>
fix(deps): update dependency @sanity/tsconfig to ^2.2.1 (#1595)

Co-authored-by: squiggler-app[bot] <265501495+squiggler-app[bot]@users.noreply.github.com>
chore(deps): update actions/setup-node action to v7 (#1586)

Co-authored-by: squiggler-app[bot] <265501495+squiggler-app[bot]@users.noreply.github.com>
chore(deps): update pnpm to v11 (#1579)

Co-authored-by: squiggler-app[bot] <265501495+squiggler-app[bot]@users.noreply.github.com>
fix(deps): update dependency nanoid to v6 (#1577)

* fix(deps): update dependency nanoid to v6

* chore(deps): changeset for dependency update

---------

Co-authored-by: squiggler-app[bot] <265501495+squiggler-app[bot]@users.noreply.github.com>
fix(deps): update dependency groq to ^6.5.0 (#1523)

* fix(deps): update dependency groq to ^6.5.0

* chore(deps): changeset for dependency update

---------

Co-authored-by: squiggler-app[bot] <265501495+squiggler-app[bot]@users.noreply.github.com>
Migrate plugin-kit and the monorepo from prettier/eslint to oxfmt/oxlint (#1565)

* Migrate plugin-kit and monorepo formatting from prettier to oxfmt

- Ship the monorepo's oxfmt settings as a @sanity/plugin-kit/oxfmt preset
- Re-export the preset from the root oxfmt.config.ts (replaces .oxfmtrc.json)
- init/inject scaffold oxfmt (config, devDependency, format script) instead
  of prettier; --no-prettier is now --no-oxfmt
- verify-package: replace the duplicate-prettier-config check with a
  monorepo-aware oxfmt check that expects the config at the workspace root
  (or next to package.json outside monorepos) and flags leftover prettier
  configuration with migration instructions

* Migrate plugin-kit and monorepo linting from eslint to oxlint, drop tsc

- Ship the monorepo's oxlint settings as @sanity/plugin-kit/oxlint-config.json
  (type-aware rules, type checking via oxlint-tsgolint, warnings denied); the
  root .oxlintrc.json extends it and keeps only workspace-specific ignores and
  overrides
- init/inject scaffold oxlint (.oxlintrc.json, oxlint + oxlint-tsgolint
  devDependencies, lint script) instead of eslint; --no-eslint is now
  --no-oxlint, and the typescript flag now controls TypeScript scaffolding
  instead of piggybacking on the eslint flag
- verify-package: drop the tsc run (oxlint type-checks as part of linting) and
  the duplicate-eslint-config check; add a monorepo-aware oxlint config check
  with legacy eslint detection; the v2-imports check (eslintImports -> imports)
  now runs a bundled oxlint pass instead of the package's eslint
- pin typescript in dev/test-studio so the sanity peer keeps resolving to the
  catalog version now that plugin-kit no longer pulls eslint/typescript peers

* Pin oxlint imports-check output format so CI matches snapshots

oxlint auto-switches to GitHub annotations format on CI; --format=agent keeps
the compact per-diagnostic output (including help: messages) everywhere

* Ship the oxlint config as @sanity/plugin-kit/oxlint (oxlint.config.ts pattern)

Replaces the oxlint-config.json + .oxlintrc.json extends-by-file-path setup
with a TS config module, mirroring the oxfmt preset: the shared config is
authored in src/oxlint.ts (typed OxlintConfig, built to plain JS in dist), the
root and scaffolded configs are oxlint.config.ts files that re-export or extend
it via defineConfig({extends: [...]})

* Drop the Sanity v2 imports check from verify-package/verify-studio

v2-era imports are no longer linted for; with the bundled oxlint pass gone,
oxlint moves from a runtime dependency of plugin-kit to a dev/peer dependency
(it is only needed by consumers, which the scaffolding already installs)

* Address Bugbot review: opt-out scaffolds must verify, root legacy configs detected

- init/inject with --no-oxfmt/--no-oxlint now write the matching
  sanityPlugin.verifyPackage opt-outs, so the scaffolded build script
  (which runs verify-package) works out of the box
- the oxfmt/oxlint checks now also flag leftover prettier/eslint configs at
  the detected workspace root, not only next to the plugin's package.json

* Scaffold ESM semver-workflow configs so fresh presets pass oxlint

The preset's lint-staged.config.js and commitlint.config.js templates
still used module.exports, but scaffolded plugins are ESM
("type": "module") and the shared oxlint config bans CommonJS via
import/no-commonjs (the old .eslintignore that excluded these files is
gone). A fresh 'init --preset semver-workflow' failed 'oxlint' out of
the box; switch the templates to 'export default' and cover the preset
configs in the inject test.

* Validate package-local oxfmt/oxlint configs that override the workspace root

verify-package treated a valid workspace-root config as sufficient and only
looked at the plugin directory when the root check failed. But oxfmt/oxlint
discover nested configs, so a local oxfmt.config.ts / oxlint.config.ts
overrides the root for that package's files — verify could pass while the
package wasn't actually using the shared plugin-kit settings.

In a monorepo the validators now check the plugin directory first: when a
local config exists it must use the shared preset/config (the error notes it
overrides the root config), and only when no local config exists does the
workspace root config decide the result.

* Flag legacy prettier/eslintConfig keys in the workspace root package.json

The oxfmt/oxlint checks scanned the workspace root for leftover
prettier/eslint config files but only looked at the plugin's own
package.json for the prettier / eslintConfig keys. In monorepos those
keys often live in the root package.json, where they still configure
the whole workspace — verify-package now inspects the root manifest
too and reports them alongside the legacy config files.

* Potential fix for pull request finding

Co-authored-by: Copilot Autofix powered by AI <[email protected]>

* Move oxfmt, oxlint and oxlint-tsgolint to the pnpm catalog

plugin-kit's oxfmt/oxlint peers now reference the default catalog
(catalog:) rather than catalog:peer or explicit ranges: the shared
configs may rely on rules and features that ship in a new minor, so
the peer range must stay in lockstep with the version the monorepo
develops against.

* Mark oxfmt/oxlint as optional peer dependencies of plugin-kit

Unlike @sanity/pkg-utils (a hard requirement, checked unconditionally
by verify-package), the oxfmt/oxlint verify-package checks are
individually opt-outable via sanityPlugin.verifyPackage.oxfmt/oxlint:
false, and plugin-kit's own code only ever imports their types. So a
consumer can legitimately use plugin-kit without oxfmt or oxlint
installed; peerDependenciesMeta now reflects that.

---------

Co-authored-by: Cursor Agent <[email protected]>
Co-authored-by: Copilot Autofix powered by AI <[email protected]>
chore(deps): bump sanity to 6.5.0 and enable unstable_bundledDev (#1589)

* chore(deps): bump sanity to 6.5.0 and enable bundledDev

Align @sanity/client (7.23.2) and @sanity/eventsource (5.0.4) so
unstable_bundledDev can be enabled without EventSource2 crashes in Structure.

* chore(markdown): sync inlined @sanity/client to 7.23.2

* chore(deps): drop client/eventsource overrides after lockfile bump

Keep @sanity/[email protected] and @sanity/[email protected] via the
lockfile after pnpm dedupe; remove the temporary overrides and markdown
changeset.

---------

Co-authored-by: Cursor Agent <[email protected]>
chore(deps): dedupe pnpm-lock.yaml (#1585)

Co-authored-by: squiggler-app[bot] <265501495+squiggler-app[bot]@users.noreply.github.com>
chore(deps): update dependency @vitejs/devtools to ^0.4.0 (#1578)

Co-authored-by: squiggler-app[bot] <265501495+squiggler-app[bot]@users.noreply.github.com>
fix(deps): update dependency @sanity/pkg-utils to ^11.0.3 (#1582)

Co-authored-by: squiggler-app[bot] <265501495+squiggler-app[bot]@users.noreply.github.com>
Remove redundant `dts` option from tsdown configs (#1567)

* Remove redundant dts option from tsdown configs

Since typescript v7 (tsgo) landed, tsdown enables dts generation
automatically (packages declare types, or the resolved tsconfig sets
declaration: true) and rolldown-plugin-dts picks the tsgo generator
whenever the installed typescript major is >= 7. The explicit
dts: {tsgo: true} / dts: true options are therefore no-ops.

Verified: dist output across all 50 packages is byte-identical
before/after this change.

Co-authored-by: Cody Olsen <[email protected]>

* Mention tsconfig declaration fallback in AGENTS.md dts note

Not all packages declare a types field (@repo/generators,
@sanity/form-toolkit); for those, tsdown enables dts generation via
declaration: true inherited from the @sanity/tsconfig presets.

Co-authored-by: Cody Olsen <[email protected]>

---------

Co-authored-by: Cursor Agent <[email protected]>
Co-authored-by: Cody Olsen <[email protected]>
fix(deps): update dependency @sanity/tsdown-config to ^0.14.2 (#1583)

Co-authored-by: squiggler-app[bot] <265501495+squiggler-app[bot]@users.noreply.github.com>
chore: simplify, rely on default options

fix(deps): update build tooling dependencies (#1580)

Co-authored-by: Cursor Agent <[email protected]>
Version Packages (#1572)
chore(deps): dedupe pnpm-lock.yaml (#1575)

Co-authored-by: squiggler-app[bot] <265501495+squiggler-app[bot]@users.noreply.github.com>
fix(deps): update dependency @tanstack/react-virtual to ^3.14.6 (#1573)

* fix(deps): update dependency @tanstack/react-virtual to ^3.14.6

* chore(deps): changeset for dependency update

---------

Co-authored-by: squiggler-app[bot] <265501495+squiggler-app[bot]@users.noreply.github.com>
fix(deps): update dependency @sanity/icons to ^5.1.0 (#1574)

Co-authored-by: squiggler-app[bot] <265501495+squiggler-app[bot]@users.noreply.github.com>
chore(deps): update renovatebot/github-action action to v46.1.19 (#1570)

Co-authored-by: squiggler-app[bot] <265501495+squiggler-app[bot]@users.noreply.github.com>
Prevent Renovate from rewriting pnpm `peer` catalog ranges (#1568)
fix(deps): update tsdown to ^0.22.7 and @sanity/tsdown-config to ^0.14.0 (#1571)
Version Packages (#1563)

Co-authored-by: squiggler-app[bot] <265501495+squiggler-app[bot]@users.noreply.github.com>
Add pnpm `peer` catalog for peer dependency ranges (#1562)

Centralize all external peerDependencies ranges in a named `peer` catalog
in pnpm-workspace.yaml, referenced as `catalog:peer`. Conflicting ranges
resolve to the most-used one: react/react-dom `^19.2` and
styled-components `^6.1` (aligning sanity-plugin-media and
sanity-plugin-mux-input with what Sanity Studio v5+ already requires).

Peers on other workspace packages keep `workspace:^` (or an explicit
range in @sanity/sfcc) so changesets can keep tracking dependents.

Co-authored-by: Cursor Agent <[email protected]>
Version Packages (#1558)

Co-authored-by: squiggler-app[bot] <265501495+squiggler-app[bot]@users.noreply.github.com>
feat: enable React Compiler for media and mux-input (#1560)

* feat: enable React Compiler for media, mux-input and debug-preview-url-secret-plugin

Enables the reactCompiler tsdown option for the last three plugins that
were still built without it. For sanity-plugin-media and
sanity-plugin-mux-input the react peer dependency is tightened to ^19.2
(matching every other plugin) since the compiled output imports
react/compiler-runtime, which requires React 19. Their sanity peer
(^5 || ^6.0.0-0) already mandates React 19.2, so no supported setup is
dropped.

* chore: don't enable React Compiler for debug-preview-url-secret-plugin

This plugin has no React components, so running the build through React
Compiler is a no-op (its dist output is byte-identical with or without
it). Drop the reactCompiler flag, the babel-plugin-react-compiler devDep,
and the changeset; keep the change limited to the two plugins that
actually ship components (media and mux-input).

---------

Co-authored-by: Cursor Agent <[email protected]>
Handle TS7 `@typescript-eslint` config crashes in plugin-kit import validation (#1561)

* Initial plan

* fix(plugin-kit): fallback eslint import check for TS7 parser crash

---------

Co-authored-by: copilot-swe-agent[bot] <[email protected]>
fix(deps): update dependency typescript to v7 (#1531)

* fix(deps): update dependency typescript to v7

* chore(deps): changeset for dependency update

---------

Co-authored-by: squiggler-app[bot] <265501495+squiggler-app[bot]@users.noreply.github.com>
refactor: simplify how the PKG_VERSION is handled in mjux

Version Packages (#1556)

Co-authored-by: squiggler-app[bot] <265501495+squiggler-app[bot]@users.noreply.github.com>
chore(deps): dedupe pnpm-lock.yaml (#1557)

Co-authored-by: squiggler-app[bot] <265501495+squiggler-app[bot]@users.noreply.github.com>
fix(deps): update sanity monorepo to ^6.4.0 (#1555)

Bumps the workspace catalog (@sanity/mutator, @sanity/schema, @sanity/util, @sanity/vision, sanity) and groq in sanity-plugin-media from ^6.3.0 to ^6.4.0.

- mux-input: replace the DocumentPreviewLink render-function workaround with IntentLink passed directly to PreviewCard's as prop, dropping the FIXME cast and the react-compiler lint suppression.
- orderable-document-list: keep using useDocumentVersionInfo (the useDocumentVersions replacement would need the unexported getDocumentVersionInfoFromVersions util) with an oxlint suppression for the new deprecation, and drop a ts-expect-error made obsolete by the 6.4.0 PreviewCard typings.

Co-authored-by: Cursor Agent <[email protected]>
Version Packages (#1527)

Co-authored-by: squiggler-app[bot] <265501495+squiggler-app[bot]@users.noreply.github.com>
feat!: support TypeScript 7 in plugin-kit, require typescript 6.x || 7.x (#1554)

* feat!: support TypeScript 7, require typescript 6.x || 7.x in plugin-kit

* fix: scaffold typescript ^6 in plugin-kit init to avoid @typescript-eslint peer conflict

---------

Co-authored-by: Cursor Agent <[email protected]>
chore(deps): ts doesn't need to be a dep to plugin packages

fix(deps): update turbo monorepo to v2.10.4 (#1543)

Co-authored-by: squiggler-app[bot] <265501495+squiggler-app[bot]@users.noreply.github.com>
chore(deps): dedupe pnpm-lock.yaml (#1552)

Co-authored-by: squiggler-app[bot] <265501495+squiggler-app[bot]@users.noreply.github.com>
fix(deps): update dependency @sanity/tsdown-config to ^0.13.1 (#1551)
fix(deps): update dependency vitest to ^4.1.10 (#1542)

Co-authored-by: squiggler-app[bot] <265501495+squiggler-app[bot]@users.noreply.github.com>
fix(deps): update dependency @uiw/react-codemirror to ^4.25.11 (#1540)

* fix(deps): update dependency @uiw/react-codemirror to ^4.25.11

* chore(deps): changeset for dependency update

---------

Co-authored-by: squiggler-app[bot] <265501495+squiggler-app[bot]@users.noreply.github.com>
fix(deps): update dependency @sanity/pkg-utils to ^11.0.1 (#1550)

Co-authored-by: squiggler-app[bot] <265501495+squiggler-app[bot]@users.noreply.github.com>
chore(deps): dedupe pnpm-lock.yaml (#1549)

Co-authored-by: squiggler-app[bot] <265501495+squiggler-app[bot]@users.noreply.github.com>
fix(deps): update linters (#1548)

* fix(deps): update linters

* chore(deps): changeset for dependency update

---------

Co-authored-by: squiggler-app[bot] <265501495+squiggler-app[bot]@users.noreply.github.com>
fix(deps): update dependency get-it to ^9.1.0 (#1546)

* fix(deps): update dependency get-it to ^9.1.0

* chore(deps): changeset for dependency update

---------

Co-authored-by: squiggler-app[bot] <265501495+squiggler-app[bot]@users.noreply.github.com>
fix(deps): update dependency react-hook-form to ^7.81.0 (#1547)

* fix(deps): update dependency react-hook-form to ^7.81.0

* chore(deps): changeset for dependency update

---------

Co-authored-by: squiggler-app[bot] <265501495+squiggler-app[bot]@users.noreply.github.com>
chore(deps): update dependency knip to ^6.26.0 (#1545)

Co-authored-by: squiggler-app[bot] <265501495+squiggler-app[bot]@users.noreply.github.com>
chore(deps): update dependency @tsconfig/vite-react to ^8.1.1 (#1544)

Co-authored-by: squiggler-app[bot] <265501495+squiggler-app[bot]@users.noreply.github.com>
fix(deps): update dependency iso-639-1 to ^3.1.6 (#1541)

* fix(deps): update dependency iso-639-1 to ^3.1.6

* chore(deps): changeset for dependency update

---------

Co-authored-by: squiggler-app[bot] <265501495+squiggler-app[bot]@users.noreply.github.com>
fix(deps): update dependency @uiw/codemirror-themes to ^4.25.11 (#1539)

* fix(deps): update dependency @uiw/codemirror-themes to ^4.25.11

* chore(deps): changeset for dependency update

---------

Co-authored-by: squiggler-app[bot] <265501495+squiggler-app[bot]@users.noreply.github.com>
fix(deps): update dependency @types/node to ^24.13.3 (#1538)

Co-authored-by: squiggler-app[bot] <265501495+squiggler-app[bot]@users.noreply.github.com>
fix(deps): update dependency @tanstack/react-virtual to ^3.14.5 (#1536)

* fix(deps): update dependency @tanstack/react-virtual to ^3.14.5

* chore(deps): changeset for dependency update

---------

Co-authored-by: squiggler-app[bot] <265501495+squiggler-app[bot]@users.noreply.github.com>
chore(deps): dedupe pnpm-lock.yaml (#1537)

Co-authored-by: squiggler-app[bot] <265501495+squiggler-app[bot]@users.noreply.github.com>
fix(deps): update dependency @tanstack/react-query to ^5.101.2 (#1535)

* fix(deps): update dependency @tanstack/react-query to ^5.101.2

* chore(deps): changeset for dependency update

---------

Co-authored-by: squiggler-app[bot] <265501495+squiggler-app[bot]@users.noreply.github.com>
chore(deps): update pnpm to v10.34.5 (#1533)

Co-authored-by: squiggler-app[bot] <265501495+squiggler-app[bot]@users.noreply.github.com>
fix(deps): update dependency @portabletext/block-tools to ^5.1.11 (#1534)

Co-authored-by: squiggler-app[bot] <265501495+squiggler-app[bot]@users.noreply.github.com>
chore(deps): dedupe pnpm-lock.yaml (#1532)

Co-authored-by: squiggler-app[bot] <265501495+squiggler-app[bot]@users.noreply.github.com>
fix(deps): update dependency tsdown to ^0.22.4 (#1519)

* fix(deps): update dependency tsdown to ^0.22.5

* chore(deps): changeset for dependency update

---------

Co-authored-by: squiggler-app[bot] <265501495+squiggler-app[bot]@users.noreply.github.com>
fix(deps): update dependency @sanity/tsdown-config to ^0.13.0 (#1529)
fix(deps): update dependency @vanilla-extract/vite-plugin to ^5.2.4 (#1517)

Co-authored-by: squiggler-app[bot] <265501495+squiggler-app[bot]@users.noreply.github.com>
fix(deps): update dependency @sanity/pkg-utils to v11 (#1530)
fix(deps): update dependency react-virtuoso to ^4.18.10 (#1518)

* fix(deps): update dependency react-virtuoso to ^4.18.10

* chore(deps): changeset for dependency update

---------

Co-authored-by: squiggler-app[bot] <265501495+squiggler-app[bot]@users.noreply.github.com>
chore(deps): update dependency knip to ^6.25.0 (#1520)

Co-authored-by: squiggler-app[bot] <265501495+squiggler-app[bot]@users.noreply.github.com>
chore(deps): dedupe pnpm-lock.yaml (#1526)

Co-authored-by: squiggler-app[bot] <265501495+squiggler-app[bot]@users.noreply.github.com>
fix(deps): update dependency react-icons to ^5.7.0 (#1486)

* fix(deps): update dependency react-icons to ^5.7.0

* chore(deps): changeset for dependency update

---------

Co-authored-by: squiggler-app[bot] <265501495+squiggler-app[bot]@users.noreply.github.com>
fix(deps): update dependency @sanity/pkg-utils to ^10.9.1 (#1515)

Co-authored-by: squiggler-app[bot] <265501495+squiggler-app[bot]@users.noreply.github.com>
chore(deps): dedupe pnpm-lock.yaml (#1502)

Co-authored-by: squiggler-app[bot] <265501495+squiggler-app[bot]@users.noreply.github.com>
Merge pull request #1524 from sanity-io/actions/format-main

chore(format): 🤖 ✨
fix(deps): update dependency @sanity/tsdown-config to ^0.12.0 (#1521)

Co-authored-by: squiggler-app[bot] <265501495+squiggler-app[bot]@users.noreply.github.com>
fix(deps): update dependency oxfmt to ^0.58.0 (#1522)

Co-authored-by: squiggler-app[bot] <265501495+squiggler-app[bot]@users.noreply.github.com>
fix(deps): update dependency @sanity/ui to ^3.3.5 (#1516)

Co-authored-by: squiggler-app[bot] <265501495+squiggler-app[bot]@users.noreply.github.com>
chore(deps): update renovatebot/github-action action to v46.1.18 (#1505)

Co-authored-by: squiggler-app[bot] <265501495+squiggler-app[bot]@users.noreply.github.com>
fix(typegen): 🤖 ✨ (#1511)

Co-authored-by: squiggler-app[bot] <265501495+squiggler-app[bot]@users.noreply.github.com>
chore: disable automatic issue triage (#1514)

* chore: disable automatic issue triage
Version Packages (#1504)

Co-authored-by: squiggler-app[bot] <265501495+squiggler-app[bot]@users.noreply.github.com>
Merge pull request #1513 from sanity-io/cursor/orderable-intent-repro-1506-bf83

fix(orderable-document-list): scope canHandleIntent to list's own type (#1506)
test(test-studio): reframe issue #1506 repro as regression fixture

Now that canHandleIntent is scoped to the list's own type, update labels
and comments to describe regression verification rather than active repro.

chore: remove repro step, add fix

test(test-studio): add repro case for orderable-document-list issue #1506

Add dedicated schema types and structure section that mirrors the issue
report: a regular document list alongside an orderable list at the same
level. Creating a Page via the global create menu incorrectly routes into
the Team Members orderable list due to canHandleIntent claiming all types.

Includes REPRO.md with step-by-step verification instructions.

Add orderable document list readme (#1508)
fix(deps): update dependency react-rx to ^4.2.3 (#1493)

* fix(deps): update dependency react-rx to ^4.2.3

* chore(deps): changeset for dependency update

---------

Co-authored-by: squiggler-app[bot] <265501495+squiggler-app[bot]@users.noreply.github.com>
fix(deps): update dependency @codemirror/view to ^6.43.5 (#1500)

* fix(deps): update codemirror

* chore(deps): changeset for dependency update

---------

Co-authored-by: squiggler-app[bot] <265501495+squiggler-app[bot]@users.noreply.github.com>
Version Packages (#1496)
chore(deps): update linters (#1499)

Co-authored-by: squiggler-app[bot] <265501495+squiggler-app[bot]@users.noreply.github.com>
fix(@sanity/assist): render instruction preview icons from @sanity/icons v5 (#1503)

The instruction schema's prepare() returns a rendered <Icon symbol> element
for instructions with a custom icon (since the icons v5 lazy-map migration),
but the preview component still rendered props.icon as a component, crashing
the instruction list with 'Element type is invalid ... got: <Icon />'.
Handle both the element and the component (SparklesIcon fallback) shapes.

Also add a README troubleshooting section for MISSING_EXPORT icon build
errors, which come from code importing icons from the @sanity/icons package
root - a pattern removed in v5 (the plugin itself already uses the per-icon
export paths).

Fixes #1495

Co-authored-by: Cursor Agent <[email protected]>
Co-authored-by: Cody Olsen <[email protected]>
fix(deps): update dependency @sanity/ui to ^3.3.1 (#1498)

Co-authored-by: squiggler-app[bot] <265501495+squiggler-app[bot]@users.noreply.github.com>
fix(deps): update dependency @sanity/preview-url-secret to ^4.0.8 (#1492)

Co-authored-by: squiggler-app[bot] <265501495+squiggler-app[bot]@users.noreply.github.com>
fix(deps): update dependency @vis.gl/react-google-maps to ^1.9.0 (#1501)

Co-authored-by: squiggler-app[bot] <265501495+squiggler-app[bot]@users.noreply.github.com>
chore(deps): dedupe pnpm-lock.yaml (#1497)

Co-authored-by: squiggler-app[bot] <265501495+squiggler-app[bot]@users.noreply.github.com>
fix(deps): update dependency xstate to ^5.32.4 (#1494)

* fix(deps): update dependency xstate to ^5.32.4

* chore(deps): changeset for dependency update

---------

Co-authored-by: squiggler-app[bot] <265501495+squiggler-app[bot]@users.noreply.github.com>
Upgrade oxlint-tsgolint to ^0.24.0 and fix new lint findings (#1476)

Co-authored-by: Cursor Agent <[email protected]>
Version Packages (#1489)
refactor: move all plugins and packages to tsdown (#1491)
refactor: move dbeug-live-sync-tags to tsdown (#1490)
Version Packages (#1487)

Co-authored-by: squiggler-app[bot] <265501495+squiggler-app[bot]@users.noreply.github.com>
chore(deps): dedupe pnpm-lock.yaml (#1488)

Co-authored-by: squiggler-app[bot] <265501495+squiggler-app[bot]@users.noreply.github.com>
Remove isolatedDeclarations and collapse to one tsconfig per plugin (#1460)

* Remove isolatedDeclarations and use a single tsconfig per plugin

Drop the @sanity/tsconfig/isolated-declarations preset from the shared
@repo/tsconfig/build.json (now removed) and @repo/package.config, and
delete every per-plugin tsconfig.build.json. @sanity/pkg-utils now builds
declarations from each plugin's single tsconfig.json; dts: 'rolldown' is
kept, so isolated declarations can be re-adopted later by re-adding the
preset.

Co-authored-by: Cody Olsen <[email protected]>

* Scaffold a single tsconfig in the plugin generator

Remove the isolatedDeclarations prompt and the tsconfig.build.json
scaffolding action from both generators, and delete the now-unused
tsconfig.build.json.hbs template.

Co-authored-by: Cody Olsen <[email protected]>

* Drop tsconfig.build.json from plugin-transfer docs

Co-authored-by: Cody Olsen <[email protected]>

* Add changesets for plugins with regenerated declarations

Patch bumps for the 8 published packages whose dist declaration output
(.d.ts and/or .d.ts.map) changed when dts generation moved off
isolatedDeclarations. The differences are cosmetic (quote style, JSDoc
indentation, union member order); runtime JS is unchanged.

* Remove @repo/tsconfig and extend @sanity/tsconfig/strictest directly

With a single tsconfig per plugin the @repo/tsconfig wrapper package no
longer earns its keep. Each plugin now extends @sanity/tsconfig/strictest
directly and sets customConditions: ['development'] inline (temporarily
needed until the planned move to tsdown, which handles dev conditions
differently). Swaps the @repo/tsconfig workspace devDependency for
@sanity/tsconfig (catalog) in all 48 packages and updates the generator
templates and knip config. Built dist output is byte-identical.

* Generate declarations with tsgo

Enable the tsgo pipeline (@typescript/native-preview) in
@repo/package.config, the same engine oxlint's type-check runs on.
tsgo requires inferred exported types to be portable (TS2883), so a few
sites gain explicit annotations: the xstate form machine in
sanity-plugin-dashboard-widget-vercel, the schema test fixtures in
sanity-naive-html-serializer, and the render helper in
sanity-plugin-media's tests. Documents the TS2883 failure mode in
AGENTS.md.

* Add changesets for tsgo-regenerated declarations

Unifies the earlier isolatedDeclarations changesets and adds patch bumps
for the 21 additional published packages whose dist declaration output
changed when dts generation switched to tsgo (cosmetic quote-style and
union-ordering differences only).

* Relax minimumReleaseAge to the pnpm v11 default

Drops the release-age gate from 3 days to pnpm v11's default of 1440
minutes (1 day), unblocking resolution of @vitejs/devtools releases the
test studio tracks closely.

---------

Co-authored-by: Cursor Agent <[email protected]>
Co-authored-by: Cody Olsen <[email protected]>
Version Packages (#1484)

Co-authored-by: squiggler-app[bot] <265501495+squiggler-app[bot]@users.noreply.github.com>
fix(@sanity/assist): open icon picker reliably with lazy-loaded icons (#1485)

Co-authored-by: Cursor Agent <[email protected]>
chore(deps): update dependency @vitejs/devtools to ^0.3.4 (#1479)

* chore(deps): update dependency @vitejs/devtools to ^0.3.4

* chore: dedupe lockfile with pnpm

---------

Co-authored-by: squiggler-app[bot] <265501495+squiggler-app[bot]@users.noreply.github.com>
Co-authored-by: copilot-swe-agent[bot] <[email protected]>
fix(deps): update dependency motion to ^12.42.2 (#1480)

* fix(deps): update dependency motion to ^12.42.2

* chore(deps): changeset for dependency update

* chore: run pnpm dedupe for motion update

---------

Co-authored-by: squiggler-app[bot] <265501495+squiggler-app[bot]@users.noreply.github.com>
Co-authored-by: copilot-swe-agent[bot] <[email protected]>
Version Packages (#1483)

Co-authored-by: squiggler-app[bot] <265501495+squiggler-app[bot]@users.noreply.github.com>
fix(deps): update dependency @vanilla-extract/css to ^1.21.1 (#1477)

Co-authored-by: squiggler-app[bot] <265501495+squiggler-app[bot]@users.noreply.github.com>
Add changesets for plugins using styledComponents tree-shaking upgrade (#1478) (#1481)

Co-authored-by: Cursor Agent <[email protected]>
fix: update icon lazy loading

fix(deps): update dependency @sanity/icons to v5 (#1482)

Co-authored-by: squiggler-app[bot] <265501495+squiggler-app[bot]@users.noreply.github.com>
fix(deps): update dependency @sanity/pkg-utils to ^10.9.0 (#1478)

Co-authored-by: squiggler-app[bot] <265501495+squiggler-app[bot]@users.noreply.github.com>
Version Packages (#1473)

Co-authored-by: squiggler-app[bot] <265501495+squiggler-app[bot]@users.noreply.github.com>
fix(deps): update dependency typescript to v6 (#1474)

* fix(deps): update dependency typescript to v6

* chore(deps): changeset for dependency update

---------

Co-authored-by: squiggler-app[bot] <265501495+squiggler-app[bot]@users.noreply.github.com>
fix(document-internationalization): enable creating language copies for documents in releases (#1475)

* fix(document-internationalization): enable translations for documents in releases

When …
cursor Bot pushed a commit that referenced this pull request Jul 28, 2026
Knip flagged 12 types re-exported from the react-color barrel that nothing
outside the module imports. Keep only the types consumers actually use.

Merge branch 'cursor/ban-react-class-components-ca2a' into cursor/color-input-vanilla-extract-35df

Keep vanilla-extract styling for Alpha/Hue/Saturation/EditableInput;
ban branch still uses styled-components/inline styles for those files.

fix(color-input): convert vendored react-color components to function components

Convert Alpha/Hue/Saturation/EditableInput and centralize drag wiring in a
shared useDrag hook: a native mousedown listener attached in useLayoutEffect,
useEffectEvent so events always read the latest props, and per-gesture
mousemove/mouseup listeners cleaned up via AbortController. EditableInput
clears its pending blur-sync value once the prop catches up with the
displayed value, so blurring can't revert a typed value.

fix(sanity-plugin-media): convert ReduxProvider to a function component

Initialize the redux store once with a lazy useState initializer.

fix(orderable-document-list): convert OrderableDocumentList to a function component

Expose the structure menu actionHandlers via useImperativeHandle and the
React 19 ref-as-prop pattern, with a dependency list so the handle is not
re-created on every render (the pane stores it in state).

feat(plugin-kit): ban Component, PureComponent and createRef imports from react

Class components are not allowed in this repo — only function components.
createRef is only useful in class components; use the useRef hook instead.
Also point skill docs at the shared @sanity/plugin-kit/oxlint config.

chore: drop color-input oxlint override

Leave shared oxlint rules untouched; the vanilla-extract migration does
not need a package-specific no-restricted-imports lock-in.

Merge branch 'cursor/ban-react-class-components-ca2a' into cursor/color-input-vanilla-extract-35df

Resolve stack conflicts: keep vanilla-extract exports (drop EditableInputStyles),
bump @vanilla-extract/css catalog to ^1.21.2 while retaining @vanilla-extract/dynamic,
and regenerate the lockfile. Preserve EditableInput blur-sync fix from the base branch.

Version Packages (#1735)

Co-authored-by: squiggler-app[bot] <265501495+squiggler-app[bot]@users.noreply.github.com>
refactor(color-input): migrate styling to vanilla-extract

Replace styled-components and inline style objects with colocated
vanilla-extract stylesheets, using assignInlineVars for dynamic
theme/color values. Builds on the function-component + useDrag
refactor from the ban-react-class-components branch.

Merge remote-tracking branch 'origin/main' into cursor/ban-react-class-components-ca2a

fix(color-input): clear stale blur-sync value when prop catches up

The prop-sync effect early-returned when the normalized prop matched the
displayed value, leaving a blurValue captured from an older prop in place;
blurring would then restore that older value. Clear it (in a transition to
satisfy the React Compiler EffectSetState rule).

fix(deps): bump @sanity/pkg-utils, @sanity/tsdown-config and vanilla-extract plugins (#1769)

* fix(deps): bump @sanity/pkg-utils, @sanity/tsdown-config and vanilla-extract plugins

- @sanity/pkg-utils ^11.0.16 -> ^11.0.17
- @sanity/tsdown-config ^0.21.1 -> ^0.21.2
- @sanity/vanilla-extract-vite-plugin ^0.2.7 -> ^0.2.8

tsdown (^0.22.14) and @vanilla-extract/css (^1.21.2) were already on the
latest release; refreshing the lockfile picks up the transitive
@sanity/vanilla-extract-{integration,rolldown-plugin,tsdown-plugin} updates.

* fix(deps): public-hoist @vanilla-extract/css so node_modules .css.js files resolve it

`@sanity/vanilla-extract-vite-plugin` filters its transform hook on
/\.css\.(js|cjs|mjs|jsx|ts|tsx)/ with no node_modules exclusion, so it also
compiles `@bynder/compact-view/Styles.css.js` — a plain module exporting a CSS
string for a shadow root, not a vanilla-extract module. That package declares no
dependencies, so the compile only finds `@vanilla-extract/css/adapter` when pnpm
happens to hoist it into the hidden .pnpm/node_modules directory. On Vercel it
did not, failing `sanity build` for dev/test-studio with
"Cannot find module '@vanilla-extract/css/adapter'".

Public-hoisting puts @vanilla-extract/css on the root node_modules resolution
path, which is deterministic regardless of the implicit hoist layout.

---------

Co-authored-by: Cursor Agent <[email protected]>
chore(deps): dedupe pnpm-lock.yaml (#1766)

Co-authored-by: squiggler-app[bot] <265501495+squiggler-app[bot]@users.noreply.github.com>
fix(deps): update dependency @sanity/pkg-utils to ^11.0.16 (#1768)

Co-authored-by: squiggler-app[bot] <265501495+squiggler-app[bot]@users.noreply.github.com>
feat(test-studio): add experimental @sanity/themer tool (#1738)

* feat(test-studio): add experimental @sanity/themer tool

Wire themerTool() into the Home workspace so theme presets and colors
can be previewed live against the plugins kitchen sink.

* chore(test-studio): bump @sanity/themer to 0.2.0

* chore(test-studio): use ^0.2.0 for @sanity/themer

Merge main and widen the themer dependency to a caret range.

* chore: dedupe lockfile to resolve @sanity/client type mismatch

pnpm dedupe collapses the 7.24.0 / 7.25.0 client split that broke
type-aware lint after merging main with themer.

* chore: handle lockfile

* chore(knip): ignore unused catalog entry reports in pnpm-workspace.yaml

The catalogued @sanity/types entry is referenced only by the overrides block
in pnpm-workspace.yaml, which knip does not read, so it was reported as an
unused catalog entry and failed `pnpm knip`.

Co-authored-by: Cursor <[email protected]>

* chore: fix lock

---------

Co-authored-by: Cursor Agent <[email protected]>
fix(deps): update dependency @vanilla-extract/css to ^1.21.2 (#1764)

Co-authored-by: squiggler-app[bot] <265501495+squiggler-app[bot]@users.noreply.github.com>
chore(deps): update renovatebot/github-action action to v46.1.21 (#1763)

Co-authored-by: squiggler-app[bot] <265501495+squiggler-app[bot]@users.noreply.github.com>
fix(deps): update dependency @sanity/ui to ^3.5.0 (#1762)

Co-authored-by: squiggler-app[bot] <265501495+squiggler-app[bot]@users.noreply.github.com>
chore(deps): dedupe pnpm-lock.yaml (#1761)

Co-authored-by: squiggler-app[bot] <265501495+squiggler-app[bot]@users.noreply.github.com>
test(document-internationalization): expand Vitest + Playwright e2e coverage (#1712)
chore(deps): dedupe pnpm-lock.yaml (#1754)

Co-authored-by: squiggler-app[bot] <265501495+squiggler-app[bot]@users.noreply.github.com>
chore(deps): update dependency @playwright/test to ^1.62.0 (#1760)

Co-authored-by: squiggler-app[bot] <265501495+squiggler-app[bot]@users.noreply.github.com>
fix(deps): update turbo monorepo to v2.10.7 (#1759)

Co-authored-by: squiggler-app[bot] <265501495+squiggler-app[bot]@users.noreply.github.com>
fix(deps): update dependency concurrently to ^10.0.4 (#1758)

* fix(deps): update dependency concurrently to ^10.0.4

* chore(deps): changeset for dependency update

---------

Co-authored-by: squiggler-app[bot] <265501495+squiggler-app[bot]@users.noreply.github.com>
fix(deps): update dependency @portabletext/plugin-input-rule to ^6.0.10 (#1757)

* fix(deps): update dependency @portabletext/plugin-input-rule to ^6.0.10

* chore(deps): changeset for dependency update

---------

Co-authored-by: squiggler-app[bot] <265501495+squiggler-app[bot]@users.noreply.github.com>
chore(deps): update dependency @vitejs/devtools to ^0.4.8 (#1756)

Co-authored-by: squiggler-app[bot] <265501495+squiggler-app[bot]@users.noreply.github.com>
chore(deps): update dependency @portabletext/editor to ^7.10.13 (#1755)

Co-authored-by: squiggler-app[bot] <265501495+squiggler-app[bot]@users.noreply.github.com>
chore(deps): lock file maintenance (#1749)

Co-authored-by: squiggler-app[bot] <265501495+squiggler-app[bot]@users.noreply.github.com>
chore: fix lockfile

chore(deps): dedupe pnpm-lock.yaml (#1753)

Co-authored-by: squiggler-app[bot] <265501495+squiggler-app[bot]@users.noreply.github.com>
fix(deps): update dependency @sanity/client to ^7.25.0 (#1747)

Co-authored-by: squiggler-app[bot] <265501495+squiggler-app[bot]@users.noreply.github.com>
fix(deps): update dependency @sanity/ui to ^3.4.5 (#1745)

* fix(deps): update dependency @sanity/ui to ^3.4.5

* fix(knip): remove unused react-is devDependency from media plugin

---------

Co-authored-by: squiggler-app[bot] <265501495+squiggler-app[bot]@users.noreply.github.com>
Co-authored-by: copilot-swe-agent[bot] <[email protected]>
fix(deps): update dependency @mux/mux-player to ^3.13.2 (#1751)

* fix(deps): update dependency @mux/mux-player to ^3.13.2

* chore(deps): changeset for dependency update

---------

Co-authored-by: squiggler-app[bot] <265501495+squiggler-app[bot]@users.noreply.github.com>
chore(deps): dedupe pnpm-lock.yaml (#1748)

Co-authored-by: squiggler-app[bot] <265501495+squiggler-app[bot]@users.noreply.github.com>
fix(deps): update dependency react-hook-form to ^7.83.0 (#1750)

* fix(deps): update dependency react-hook-form to ^7.83.0

* chore(deps): changeset for dependency update

---------

Co-authored-by: squiggler-app[bot] <265501495+squiggler-app[bot]@users.noreply.github.com>
fix(deps): update dependency @mux/mux-player-react to ^3.13.2 (#1752)

* fix(deps): update dependency @mux/mux-player-react to ^3.13.2

* chore(deps): changeset for dependency update

---------

Co-authored-by: squiggler-app[bot] <265501495+squiggler-app[bot]@users.noreply.github.com>
fix(deps): update dependency @sanity/preview-url-secret to ^4.1.2 (#1744)

Co-authored-by: squiggler-app[bot] <265501495+squiggler-app[bot]@users.noreply.github.com>
chore(deps): dedupe pnpm-lock.yaml (#1734)

Co-authored-by: squiggler-app[bot] <265501495+squiggler-app[bot]@users.noreply.github.com>
Delete dependencies-GH-1739.md
fix(deps): update dependency @sanity/color to ^3.0.8 (#1743)

Co-authored-by: squiggler-app[bot] <265501495+squiggler-app[bot]@users.noreply.github.com>
fix(deps): update dependency @sanity/vanilla-extract-vite-plugin to ^0.2.7 (#1746)

Co-authored-by: squiggler-app[bot] <265501495+squiggler-app[bot]@users.noreply.github.com>
fix(deps): update dependency @sanity/tsdown-config to ^0.21.1 (#1742)

Co-authored-by: squiggler-app[bot] <265501495+squiggler-app[bot]@users.noreply.github.com>
fix(deps): update dependency @sanity/pkg-utils to ^11.0.15 (#1741)

Co-authored-by: squiggler-app[bot] <265501495+squiggler-app[bot]@users.noreply.github.com>
chore(deps): update zizmorcore/zizmor-action action to v0.6.1 (#1740)

Co-authored-by: squiggler-app[bot] <265501495+squiggler-app[bot]@users.noreply.github.com>
fix(deps): update dependency tsdown to ^0.22.14 (#1739)

* fix(deps): update dependency tsdown to ^0.22.14

* chore(deps): changeset for dependency update

---------

Co-authored-by: squiggler-app[bot] <265501495+squiggler-app[bot]@users.noreply.github.com>
chore(deps): update actions/cache action to v6 (#1731)

Co-authored-by: squiggler-app[bot] <265501495+squiggler-app[bot]@users.noreply.github.com>
chore(deps): update dependency @playwright/test to ^1.61.1 (#1737)

Co-authored-by: squiggler-app[bot] <265501495+squiggler-app[bot]@users.noreply.github.com>
fix(deps): update dependency @sanity/tsdown-config to ^0.21.0 (#1736)

Co-authored-by: squiggler-app[bot] <265501495+squiggler-app[bot]@users.noreply.github.com>
fix(deps): update dependency @sanity/vanilla-extract-vite-plugin to ^0.2.6 (#1733)

Co-authored-by: squiggler-app[bot] <265501495+squiggler-app[bot]@users.noreply.github.com>
fix(deps): update dependency @sanity/pkg-utils to ^11.0.14 (#1732)

Co-authored-by: squiggler-app[bot] <265501495+squiggler-app[bot]@users.noreply.github.com>
chore(deps): update actions/cache action to v5 (#1730)

Co-authored-by: squiggler-app[bot] <265501495+squiggler-app[bot]@users.noreply.github.com>
fix(deps): update turbo monorepo to v2.10.6 (#1729)

Co-authored-by: squiggler-app[bot] <265501495+squiggler-app[bot]@users.noreply.github.com>
fix(deps): update dependency @tanstack/react-virtual to ^3.14.8 (#1728)

* fix(deps): update dependency @tanstack/react-virtual to ^3.14.8

* chore(deps): changeset for dependency update

---------

Co-authored-by: squiggler-app[bot] <265501495+squiggler-app[bot]@users.noreply.github.com>
chore(deps): update dependency knip to ^6.29.0 (#1727)

Co-authored-by: squiggler-app[bot] <265501495+squiggler-app[bot]@users.noreply.github.com>
chore(deps): update dependency @vitejs/devtools to ^0.4.5 (#1726)

Co-authored-by: squiggler-app[bot] <265501495+squiggler-app[bot]@users.noreply.github.com>
feat: add Playwright smoke e2e with ephemeral datasets (#1710)

* feat: add Playwright smoke e2e for test studio

Set up an e2e workspace with Chromium/Firefox smoke coverage,
storageState studio auth matching sanity-io/sanity, fail-fast
token validation, and a CI workflow that builds and previews
the test studio locally.

* fix(e2e): correct Playwright artifact gitignore paths

Paths in e2e/.gitignore are relative to that directory, so leading
/e2e/… never matched results or playwright-report.

* fix(e2e): require project id and dataset from env vars

Source SANITY_E2E_PROJECT_ID and SANITY_E2E_STUDIO_DATASET from
GitHub repository variables in CI (no hardcoding). Rename the
dataset env to SANITY_E2E_STUDIO_DATASET and map both onto the
test-studio SANITY_STUDIO_* vars when starting webServer.

* fix(e2e): stop knip from loading Playwright config

resolveE2eEnv() requires project id and dataset at config load time;
disable the knip Playwright plugin for the e2e workspace so analysis
does not need CI secrets.

* fix(e2e): drop token fallback and debug browser filter

Require only SANITY_E2E_SESSION_TOKEN for auth, and always run
Chromium and Firefox projects (filter via Playwright UI/CLI instead).

* docs(e2e): document plugins-e2e-testing sandbox project

Note that e2e uses Sanity sandbox org project plugins-e2e-testing
(a1psl692) and update .env.example accordingly.

* ci(e2e): post Sanity-style PR status comment

Add a Playwright summary reporter and update the E2E workflow to
post/refresh a pull request comment with pass/fail/flaky/skipped
counts and a link to the Actions run (HTML report as artifact until
Vercel report hosting lands).

* ci(e2e): deploy Playwright HTML report to Vercel

Host the report on a dedicated Vercel project and link pass/fail
counts in the PR status comment, matching sanity-io/sanity. Document
VERCEL_E2E_REPORT_* secret setup in e2e/README.md.

* feat(e2e): add ephemeral per-browser datasets like sanity-io/sanity

Create pr-*/main-* chromium and firefox datasets in CI, expose matching
studio workspaces, and schedule cleanup for closed PRs / stale main runs.

* fix(e2e): bump Sanity client apiVersion to 2026-07-23

* fix(ci): avoid env context in job-level e2e workflow env

GitHub Actions does not allow `env.*` when evaluating job `env:` maps.
Define dataset names at workflow level with inlined format expressions.

* ci(e2e): run chromium and firefox as a parallel matrix

Split setup / per-browser test / report-merge jobs. Each matrix job gets
its own SANITY_E2E_DATASET and runs playwright --project for that browser.

* fix(e2e): avoid pnpm setup command colliding with dataset script

`pnpm --filter e2e setup` invoked pnpm's built-in `setup`, so ephemeral
datasets were never created. Rename to `create-dataset` and call via
`pnpm run`. Fail the CI step if creation fails.

* ci(e2e): scope pull-requests write to jobs that post comments

Satisfy zizmor excessive-permissions: keep workflow at contents:read
and grant pull-requests:write only on setup/report jobs.

* ci(e2e): deploy studio preview to Vercel like sanity-io/sanity

Add deploy-preview job (vercel pull/build/deploy --prebuilt) with
ephemeral datasets baked in; matrix tests run against the preview URL
instead of a local sanity preview server. Adds vercel CLI as a root
devDependency and dev/test-studio/vercel.json build settings.

* ci(e2e): reuse VERCEL_E2E_REPORT_* secrets for the studio preview

The studio preview deploys with the same Vercel project/token as report
hosting, so only one set of Vercel secrets is required.

* fix(e2e): add SPA fallback rewrite to test-studio vercel.json

The deployed studio 404'd on /chromium and /firefox workspace routes,
so the studio never booted and globalSetup timed out waiting for
/users/me. Rewrite all paths to index.html (filesystem first), same as
sanity-io/sanity's studio deployments.

* fix(e2e): drop studio warm-up from globalSetup

The warm-up existed to pay the local dev-server cold-compile cost once
up front; CI now tests a deployed static studio, and the waitForResponse
race was flaky there. Keep the fast env + auth token preflight.

* feat(e2e): dedicated bare e2e-studio with chromium/firefox workspaces

Add dev/e2e-studio — a minimal studio used only by Playwright e2e:
structure tool, one smoke-test schema type, and per-browser workspaces
on the ephemeral datasets. No monorepo plugins yet; each plugin will be
added together with its e2e tests. Reverts the e2e wiring from
dev/test-studio so it stays a pure development studio.

* fix(e2e): address review feedback

- Create ephemeral datasets as private (tests auth via storageState)
- Add contents:read to the periodic cleanup workflow for checkout
- Strip all leading dashes in sanityIdify
- Fix stale e2e package description and report-hosting docs (shared
  Vercel project, not a dedicated one)

* fix(e2e): keep ephemeral datasets public like sanity-io/sanity

---------

Co-authored-by: Cursor Agent <[email protected]>
Make test-studio typegen idempotent in CI by forcing schema overwrite (#1725)

* Initial plan

* fix(test-studio): force schema extract during typegen

---------

Co-authored-by: copilot-swe-agent[bot] <[email protected]>
chore(deps): dedupe pnpm-lock.yaml (#1724)

Co-authored-by: squiggler-app[bot] <265501495+squiggler-app[bot]@users.noreply.github.com>
Version Packages (#1718)

Co-authored-by: squiggler-app[bot] <265501495+squiggler-app[bot]@users.noreply.github.com>
fix(deps): update dependency @portabletext/plugin-input-rule to ^6.0.8 (#1723)

* fix(deps): update dependency @portabletext/plugin-input-rule to ^6.0.9

* chore(deps): changeset for dependency update

---------

Co-authored-by: squiggler-app[bot] <265501495+squiggler-app[bot]@users.noreply.github.com>
chore(deps): update dependency @types/google.maps to ^3.65.3 (#1722)

Co-authored-by: squiggler-app[bot] <265501495+squiggler-app[bot]@users.noreply.github.com>
chore(deps): update dependency @portabletext/editor to ^7.10.11 (#1721)

Co-authored-by: squiggler-app[bot] <265501495+squiggler-app[bot]@users.noreply.github.com>
Delete .changeset/dependencies-GH-1697.md
Delete .changeset/dependencies-GH-1692.md
fix(deps): update dependency @sanity/icons to ^5.2.1 (#1720)

Co-authored-by: squiggler-app[bot] <265501495+squiggler-app[bot]@users.noreply.github.com>
fix(deps): update dependency oxfmt to ^0.60.0 (#1697)

* fix(deps): update dependency oxfmt to ^0.60.0

* chore(deps): changeset for dependency update

* chore: dedupe lockfile with release age exemptions

* fix: resolve knip unused export errors

---------

Co-authored-by: squiggler-app[bot] <265501495+squiggler-app[bot]@users.noreply.github.com>
Co-authored-by: copilot-swe-agent[bot] <[email protected]>
fix(deps): update dependency @testing-library/jest-dom to v7 (#1679)

Co-authored-by: squiggler-app[bot] <265501495+squiggler-app[bot]@users.noreply.github.com>
fix(deps): update react monorepo to ^19.2.8 (#1692)

* fix(deps): update react monorepo to ^19.2.8

* chore(deps): changeset for dependency update

---------

Co-authored-by: squiggler-app[bot] <265501495+squiggler-app[bot]@users.noreply.github.com>
Co-authored-by: copilot-swe-agent[bot] <[email protected]>
chore(deps): update dependency @vitejs/devtools to ^0.4.3 (#1704)

Co-authored-by: squiggler-app[bot] <265501495+squiggler-app[bot]@users.noreply.github.com>
fix(deps): update dependency @tanstack/react-query to ^5.101.4 (#1706)

* fix(deps): update dependency @tanstack/react-query to ^5.101.4

* chore(deps): changeset for dependency update

---------

Co-authored-by: squiggler-app[bot] <265501495+squiggler-app[bot]@users.noreply.github.com>
feat(plugin-kit)!: require Node.js 24 and bump held-back CLI deps (#1696)

* feat(plugin-kit)!: require Node.js 24 and bump held-back CLI deps

- engines.node: >=20.19 <22 || >=22.12 -> >=24 (plugin-kit CLI only;
  scaffolded/verified plugins keep the wider pkg-utils range)
- concurrently ^9 -> ^10, execa ^9 -> ^10, inquirer ^12 -> ^14 (all
  previously held back by the permissive engine range)
- migrate the choices prompt from the 'list' type (removed in
  inquirer 13) to 'select'

* fix(plugin-kit): report failed dependency install with the intended hint

execa rejects on non-zero exit, so the exitCode check in
installDependencies was unreachable and init surfaced npm/pnpm install
failures as an unhandled CLI error. Pass reject: false so the caller's
'Failed to install dependencies, try manually running `npm install`'
message is shown instead.

* refactor(plugin-kit): replace several deps with Node 24 builtins and local helpers

Drop chalk, get-it, git-remote-origin-url, github-url-to-object, xdg-basedir,
email-validator, p-props and outdent in favor of util.styleText, fetch, execa+git,
and small local helpers. All remaining CLI deps were already at latest.

* fix(plugin-kit): address review feedback on execa, styleText, and outdent

- catch spawn errors in installDependencies and git remote lookup
- join nodemon's files array before styleText (it requires a string)
- only strip spaces/tabs in outdent so under-indented lines keep content

---------

Co-authored-by: Cursor Agent <[email protected]>
fix(deps): upgrade Sanity monorepo to ^6.6.0 (#1717)

* fix(deps): upgrade Sanity monorepo to ^6.6.0

Bump catalog packages (sanity, @sanity/mutator/schema/util/vision) and
sanity-plugin-media's groq dependency. Map TARGET_NOT_FOUND to Sanity's
structure locale key for missing release/variant documents instead of
reusing the not-ready tooltip.

* fix(deps): force-dedupe Sanity monorepo packages to 6.6.0

Override transitive @sanity/types|mutator|schema|util and groq onto the
catalog version so the lockfile cannot keep a second 6.5.x copy (which
breaks media dts emit). Put groq in the catalog and document the upgrade
checklist in AGENTS.md.

---------

Co-authored-by: Cursor Agent <[email protected]>
fix(deps): update dependency @sanity/color to ^3.0.7 (#1716)

Co-authored-by: squiggler-app[bot] <265501495+squiggler-app[bot]@users.noreply.github.com>
feat(test-studio): enable React profiling on Vercel preview builds (#1713)

* feat(test-studio): enable React profiling on Vercel preview builds

Alias react-dom/client to react-dom/profiling when VERCEL_ENV is preview,
matching the Sanity monorepo test-studio setup, so PR deployments can be
profiled without imposing that overhead on production.

* fix(test-studio): disable auto-updates on preview for profiling

Auto-updates vendor builds hardcode react-dom-client.production.js, which
bypasses the react-dom/profiling alias. Turn auto-updates off when
VERCEL_ENV is preview so React DevTools profiling works on PR deployments.

---------

Co-authored-by: Cursor Agent <[email protected]>
fix(deps): update dependency @sanity/preview-url-secret to ^4.1.1 (#1714)

Co-authored-by: squiggler-app[bot] <265501495+squiggler-app[bot]@users.noreply.github.com>
chore(deps): dedupe pnpm-lock.yaml (#1709)

Co-authored-by: squiggler-app[bot] <265501495+squiggler-app[bot]@users.noreply.github.com>
chore(deps): update dependency @portabletext/editor to ^7.10.10 (#1703)

Co-authored-by: squiggler-app[bot] <265501495+squiggler-app[bot]@users.noreply.github.com>
Version Packages (#1708)
fix(deps): update dependency @portabletext/plugin-input-rule to ^6.0.7 (#1705)
Remove @sanity/styled-components override, move back to styled-components (#1693)

* Remove @sanity/styled-components override, move back to styled-components

* test: give first-mount UI tests timeout headroom on slow CI runners

* test: force styled-components speedy CSS injection under jsdom

Match sanity#13675 by setting SC_DISABLE_SPEEDY=false in the root
Vitest config so upstream styled-components keeps CSSOM injection in
tests. Revert the per-test timeout bumps that papered over the same
jsdom stylesheet reparse slowdown.

* chore: refresh PR head after merging main

---------

Co-authored-by: Cursor Agent <[email protected]>
fix(deps): upgrade oxlint and oxlint-tsgolint to latest (#1707)
Merge pull request #1702 from sanity-io/cursor/bump-sanity-ui-f3da
fix(deps): update dependency @portabletext/block-tools to ^5.1.12 (#1688)

Co-authored-by: squiggler-app[bot] <265501495+squiggler-app[bot]@users.noreply.github.com>
fix(deps): update dependency @sanity/ui to ^3.4.3

Bump the catalog range and lockfile to @sanity/ui 3.4.3, and add a
patch changeset for all published plugins that depend on it.

Delete dependencies-GH-1691.md
Version Packages (#1694)
fix(deps): update dependency tsdown to ^0.22.13 (#1691)

* fix(deps): update dependency tsdown to ^0.22.13

* chore(deps): changeset for dependency update

---------

Co-authored-by: squiggler-app[bot] <265501495+squiggler-app[bot]@users.noreply.github.com>
chore(plugin-kit): bump CLI dependencies to latest compatible majors (#1687)

- chalk ^4 -> ^5, concurrently ^8 -> ^9, execa ^5 -> ^9,
  git-remote-origin-url ^3 -> ^4, inquirer ^8 -> ^12, meow ^9 -> ^14,
  p-props ^4 -> ^6, xdg-basedir ^4 -> ^5, nodemon 3.1.0 -> 3.1.14
- drop @types/inquirer and @types/nodemon (both packages ship their own
  types now)
- add the required meow importMeta option, switch to execa's named
  export, use xdg-basedir's named xdgConfig export and
  git-remote-origin-url's options object
- restore classic validate-on-filtered-value prompt semantics, which the
  modern inquirer rewrite changed (fixes accepting scp-style git remote
  URL defaults)
- concurrently 10, execa 10 and inquirer 13+ are held back as they
  require Node versions beyond plugin-kit's supported engine range

Co-authored-by: Cursor Agent <[email protected]>
Version Packages (#1689)

Co-authored-by: squiggler-app[bot] <265501495+squiggler-app[bot]@users.noreply.github.com>
fix(typegen): 🤖 ✨ (#1686)

Co-authored-by: squiggler-app[bot] <265501495+squiggler-app[bot]@users.noreply.github.com>
chore: add per-plugin changesets for latest @sanity/icons and @sanity/ui catalog bumps (#1684)

* chore: add plugin changesets for @sanity/icons and @sanity/ui bumps

* chore: consolidate icons/ui impacted plugin changesets

---------

Co-authored-by: copilot-swe-agent[bot] <[email protected]>
Co-authored-by: Cody Olsen <[email protected]>
chore(deps): dedupe pnpm-lock.yaml (#1678)

Co-authored-by: squiggler-app[bot] <265501495+squiggler-app[bot]@users.noreply.github.com>
fix(deps): update dependency get-it to ^9.2.0 (#1675)

* fix(deps): update dependency get-it to ^9.2.0

* chore(deps): changeset for dependency update

---------

Co-authored-by: squiggler-app[bot] <265501495+squiggler-app[bot]@users.noreply.github.com>
fix(deps): update dependency @sanity/ui to ^3.4.0 (#1677)

Co-authored-by: squiggler-app[bot] <265501495+squiggler-app[bot]@users.noreply.github.com>
Co-authored-by: copilot-swe-agent[bot] <[email protected]>
fix(deps): update dependency @sanity/preview-url-secret to ^4.1.0 (#1680)

Co-authored-by: squiggler-app[bot] <265501495+squiggler-app[bot]@users.noreply.github.com>
fix(deps): update dependency @sanity/icons to ^5.2.0 (#1676)

Co-authored-by: squiggler-app[bot] <265501495+squiggler-app[bot]@users.noreply.github.com>
fix: address review feedback on drag attach timing and imperative handle

- useDrag: attach the mousedown listener in useLayoutEffect so it exists
  before paint (matches the previous synchronous JSX onMouseDown wiring).
- OrderableDocumentList: give useImperativeHandle a dependency list so a
  new handle object is not installed on every render (the structure pane
  stores the handle in state, so per-render handles could loop).

refactor(color-input): extract shared useDrag hook for picker surfaces

Replace the per-component propsRef/AbortController plumbing in
Alpha/Hue/Saturation/EditableInput with a single useDrag hook. It wires a
native mousedown listener via useEffect and keeps callbacks fresh with
useEffectEvent, so drag events always read the latest props. mousemove and
mouseup listeners attach per-gesture and abort on mouseup or unmount.

fix(color-input): address review feedback on drag listeners

- Keep latest props in a ref so window mousemove listeners registered on
  mousedown see current values (matches class `this.props` behavior).
- Normalize EditableInput value comparisons to avoid number/string mismatch.
- Correct orderable-document-list changeset wording (ref-as-prop, not forwardRef).

Merge origin/main into cursor/ban-react-class-components-ca2a

Resolve color-input conflicts from #1673 (simplify components, remove
CustomPicker HOC). Main kept Alpha/Hue/Saturation/EditableInput as class
components pending a follow-up conversion; this PR is that follow-up:
- Accept ColorWrap.tsx deletion (HOC replaced by ColorInput state).
- Re-apply function-component conversions on top of main's AbortController
  listener cleanup, using useRef instead of createRef.

Version Packages (#1674)

Co-authored-by: squiggler-app[bot] <265501495+squiggler-app[bot]@users.noreply.github.com>
fix(color-input): simplify components, remove HOC (#1673)
Version Packages (#1668)

Co-authored-by: squiggler-app[bot] <265501495+squiggler-app[bot]@users.noreply.github.com>
chore(deps): dedupe pnpm-lock.yaml (#1671)

Co-authored-by: squiggler-app[bot] <265501495+squiggler-app[bot]@users.noreply.github.com>
Migrate sanity-plugin-workflow styling to vanilla-extract (#1450)

* Migrate sanity-plugin-workflow styling to vanilla-extract

* Keep styled-components catalog:devDependency for peer alignment

After the vanilla-extract migration, the peer can go, but the catalog
devDependency must remain so pnpm resolves the workspace
@sanity/styled-components override (same as google-maps-input).

---------

Co-authored-by: Cursor Agent <[email protected]>
Merge origin/main into cursor/ban-react-class-components-ca2a

Resolve the modify/delete conflict on .oxlintrc.json: main moved shared
lint rules into @sanity/plugin-kit/oxlint (#1565). Accept the deletion
and port the Component/PureComponent/createRef bans into
packages/@sanity/plugin-kit/src/oxlint.ts alongside the existing
createElement/forwardRef restrictions.

Also rewrite OrderableDocumentList to use React 19 ref-as-prop instead
of forwardRef so it complies with main's forwardRef ban, and update
skill docs that still pointed at .oxlintrc.json.

ci: request workflows permission for typegen app token (#935)

Co-authored-by: copilot-swe-agent[bot] <[email protected]>
Co-authored-by: Cody Olsen <[email protected]>
feat(@sanity/plugin-kit)!: remove Studio v2 upgrade and compatibility tooling (#1588)

* feat(@sanity/plugin-kit)!: remove Studio v2 upgrade and compatibility tooling

Drop verify-studio and all verify-package checks that existed to migrate from
or stay compatible with Sanity Studio v2 (incompatible-plugin shim, part:/config:
imports, merged @sanity/* packages, sanity.json parts validation). Package
verification now focuses on current plugin-kit conventions.

* chore(@sanity/plugin-kit): drop unused json5/knip ignores and refresh snapshots

Remove the json5 dependency and readJson5File helper that only served v2
sanity.json parsing, prune stale eslint knip ignoreDependencies, and update
verify-package snapshots after removing v2-upgrade checks.

* fix(@sanity/plugin-kit): address review feedback on path validation and studio detection

Drop the dist-hardcoded path existence check in getPackage entirely: compiled
entry points legitimately don't exist pre-build regardless of outDir, and
verify-package's esmOnly check already bans main/module fields. Also detect
sanity.cli.(js|ts) in findStudioConfig so init/inject refuse cli-config-only
studio directories too.

---------

Co-authored-by: Cursor Agent <[email protected]>
chore(deps): dedupe pnpm-lock.yaml (#1669)

Co-authored-by: squiggler-app[bot] <265501495+squiggler-app[bot]@users.noreply.github.com>
fix(sanity-plugin-markdown): declare @sanity/client as a regular dependency (#1667)

* fix(sanity-plugin-markdown): declare @sanity/client and rxjs as regular deps

Move @sanity/client and rxjs out of inlinedDependencies into dependencies
so they are resolved at runtime instead of bundled into the package.

* chore: update lockfile for sanity-plugin-markdown deps

* fix(sanity-plugin-markdown): declare @sanity/client as a regular dependency

Move @sanity/client from devDependencies to dependencies so tsdown
externalizes it instead of writing it (and transitive rxjs) to
inlinedDependencies. rxjs is not imported by the plugin and is not
needed as a direct dependency once client is externalized.

---------

Co-authored-by: Cursor Agent <[email protected]>
fix(typegen): 🤖 ✨ (#1666)

Co-authored-by: squiggler-app[bot] <265501495+squiggler-app[bot]@users.noreply.github.com>
fix(deps): update dependency @tanstack/react-virtual to ^3.14.7 (#1664)

* fix(deps): update dependency @tanstack/react-virtual to ^3.14.7

* chore(deps): changeset for dependency update

---------

Co-authored-by: squiggler-app[bot] <265501495+squiggler-app[bot]@users.noreply.github.com>
chore(deps): dedupe pnpm-lock.yaml (#1665)

Co-authored-by: squiggler-app[bot] <265501495+squiggler-app[bot]@users.noreply.github.com>
Version Packages (#1663)

Co-authored-by: squiggler-app[bot] <265501495+squiggler-app[bot]@users.noreply.github.com>
feat: add @sanity/block-insert-picker (#1601)

* feat(block-insert-picker): add @sanity/block-insert-picker

Slash-command block-insert picker and markdown input rules for Portable
Text fields, extracted from the sanity-io/www-sanity-io docs Studio
(apps/studio/src/plugins/pte, PR #4003 there parameterized the docs
knowledge out in preparation).

Public API: blockInsertPicker({arrayTypeName, items?, inputRules?,
onItemInserted?}) returning the component for an array type's
components.portableText.plugins, plus the codeFenceRule/blockquoteRule
config factories and fence-language helpers. Items derive from the host
array's members with metadata-driven curation (triggers, keywords,
grouping, rank); inserts resolve member initial values, land as one
undo step, and open for editing.

Ported against sanity 6.5.0 / @portabletext/editor 7.10.7 /
@portabletext/plugin-input-rule 6.0.4 (peer editor ^7.10.7 to match the
input-rule plugin's requirement; editor stays a peer, never bundled).
112 tests ported with the source; test-studio example wired under
Home > Block Insert Picker.

* refactor(block-insert-picker): zero-config detection and reviewed v1 API

Applies the pre-publication design review (DESIGN-REVIEW.md in the
pte-plugin-extraction research):

- blockInsertPicker() now works with zero config: the containing array and
  its members are detected via PortableTextMemberSchemaTypesContext
  (quarantined in memberSchemaTypes.ts); arrayTypeName becomes an escape
  hatch. Peer narrowed to sanity ^5.6 (the context export's floor).
- Text blocks are excluded by resolved type chain, fixing aliased
  {name, type: 'block'} members being offered as object inserts (picker and
  input-rule allow-list both).
- New options: labels (translatable chrome), shortcut, openOnInsert
  (global + per-item), presets (well-known-type triggers/keywords),
  filter (receives the bare query in both modes), resolveItems middleware
  with custom item actions (query cleanup included); onItemInserted renamed
  onInsert, events carry mode/query.
- Presentation matches core: icon fallback chain, upperFirst titles, and
  curated descriptions now win over schema descriptions.
- New exports: BlockInsertPicker, MarkdownInputRules, derivePickerItems,
  filterPickerItems, standardBlockPresets, wellKnownInputRules, PickerMode.
- Input rules resolve blockType through member type chains, so
  wellKnownInputRules serves aliased code-input members.
- Review fixes: host-callback errors surface as toasts instead of unhandled
  rejections; anchor-deletion mid-insert shows a warning toast; positional
  row indices tolerate duplicate item ids; replacement-pattern-safe label
  formatting; screen-reader position announcement is translatable.

Deliberate deviations from the review doc: presets carry no description
(avoids a three-way precedence chain).

* test(block-insert-picker): lift cold-start timeout on first picker popover test

* docs: add @sanity/block-insert-picker to Current Plugins table

* chore: trigger pkg.pr.new preview publish

* refactor(block-insert-picker): address Copilot review comments

- insertPickerItem: spread the resolved initialValue before `_key`/`_type`
  so the generated key and target type always win. Sanity's initial-value
  resolver sets `_type` on object values; the values coincide by
  construction here, but ordering keeps the insert correct regardless.
- openBlockOnInsert: correct the stale rationale comment. The package
  enables the React Compiler, so the old "not active" claim was wrong; the
  point is the empty-dep useCallback keeps a stable reference for consumers.
- blockInsertPicker: fix the comment naming the wrong mouse events. Rows
  select via onClick and highlight via onMouseMove (not onMouseDown /
  onMouseEnter), passing an explicit idx to avoid a not-yet-flushed
  highlightedIndex.

* fix(block-insert-picker): case-insensitive fence language table match; trim README install

- normalizeFenceLanguage now compares the typed token to language-table
  `value`/`aliases` case-insensitively, returning the canonical value
  (casing preserved). Previously a table with mixed-case entries never
  matched and the mapped filename was skipped (Cursor Bugbot, low severity).
  Built-in rules and code-input's lowercase table were unaffected; this
  hardens host-supplied custom tables. Adds a mixed-case-table test.
- README: collapse the three install commands to a single `npm install`
  (no --save), matching @sanity/code-input's install section.

* Potential fix for pull request finding

Co-authored-by: Copilot Autofix powered by AI <[email protected]>

* fix(block-insert-picker): restore bracket notation for process.env access

The Copilot Autofix commit rewrote `process.env['NODE_ENV']` to dot
notation, which fails this repo's type-aware lint: `noPropertyAccessFrom
IndexSignature` (TS4111) requires index-signature properties like
`process.env.NODE_ENV` to be accessed with brackets. Restore the bracket
form so `pnpm lint` passes.

* fix(block-insert-picker): address Cursor Bugbot findings

- inputRules: preserve case for unknown fence tokens (`return token`, not the
  lowercased form) so the "pass through as typed" contract holds — e.g.
  `GraphQL` stays `GraphQL` for wellKnownInputRules' no-table path.
- inputRules: spread host `buildValue` before `_key`/`_type` in createInsertRule
  so a stray `_key`/`_type` can't hijack block identity (mirrors the
  insertPickerItem fix).
- blockInsertPicker: close the picker when a select bails on an in-flight
  insert, so a menu reopened during a slow initial-value resolution can't get
  stuck swallowing Enter.
- blockInsertPicker: key sections on the namespaced raw group instead of the
  display label, so a curated group named like `ungroupedSection` can't collide
  with the null-group section's React key.

Two other Bugbot findings need no change: the text-block exclusion
(`isTextBlockMember`) already mirrors Sanity's own `findBlockType` (walk the
type chain to root, match `name === 'block'`), and the initial-value spread in
insertPickerItem was already reordered in an earlier commit.

---------

Co-authored-by: Copilot Autofix powered by AI <[email protected]>
feat(code-input): export SUPPORTED_LANGUAGES and LANGUAGE_ALIASES (#1600)

Downstream tooling that resolves external language tokens (markdown
fence infostrings, paste/import pipelines) onto code field values has
had to vendor this list and hand-sync it with the Language selector.
Exporting the canonical table (and the alias map) removes the drift.
Version Packages (#1662)

Co-authored-by: squiggler-app[bot] <265501495+squiggler-app[bot]@users.noreply.github.com>
chore(changeset): note npm provenance re-enabled for sanity-plugin-utils (#1661)

Co-authored-by: Cursor Agent <[email protected]>
Version Packages (#1660)

Co-authored-by: squiggler-app[bot] <265501495+squiggler-app[bot]@users.noreply.github.com>
chore(changeset): bump google maps input for css dts cleanup (#1659)

Co-authored-by: copilot-swe-agent[bot] <[email protected]>
chore(deps): dedupe pnpm-lock.yaml (#1658)

Co-authored-by: squiggler-app[bot] <265501495+squiggler-app[bot]@users.noreply.github.com>
fix(deps): update dependency @sanity/client to ^7.24.0 (#1581)

Co-authored-by: squiggler-app[bot] <265501495+squiggler-app[bot]@users.noreply.github.com>
chore(deps): lock file maintenance (#1657)

Co-authored-by: squiggler-app[bot] <265501495+squiggler-app[bot]@users.noreply.github.com>
Version Packages (#1640)

Co-authored-by: squiggler-app[bot] <265501495+squiggler-app[bot]@users.noreply.github.com>
chore(test-studio): use turbo transit for build cache invalidation (#1655)

Replace empty dependsOn with a transit node so sanity build still skips
workspace package builds while Turbo invalidates when dependency source changes.

Co-authored-by: Cursor Agent <[email protected]>
chore(deps): bump pkg-utils, tsdown-config, and vanilla-extract plugins (#1656)

Update catalog entries to @sanity/pkg-utils ^11.0.13,
@sanity/tsdown-config ^0.19.6, and @sanity/vanilla-extract-vite-plugin
^0.2.5. Exclude [email protected] (and platform packages) from
minimumReleaseAge so pnpm update/dedupe can resolve the new transitive
deps, and align turbo/generators tsdown with the workspace catalog.

Co-authored-by: Cursor Agent <[email protected]>
chore(deps): dedupe pnpm-lock.yaml (#1653)

Co-authored-by: squiggler-app[bot] <265501495+squiggler-app[bot]@users.noreply.github.com>
chore: remove @typescript/native-preview (use TypeScript 7 native tsc) (#1650)

* chore: remove @typescript/native-preview now that TypeScript 7 ships native tsc

TypeScript 7.0.2 includes the native compiler as `tsc`, so the preview package
and its `tsgo` binary are no longer needed. VS Code settings now point the
TypeScript 7 extension at the workspace `typescript` install.

* Update settings.json

* Update settings.json

---------

Co-authored-by: Cursor Agent <[email protected]>
chore(deps): lock file maintenance (#1651)

Co-authored-by: squiggler-app[bot] <265501495+squiggler-app[bot]@users.noreply.github.com>
chore(test-studio): stop waiting on dependency builds (#1652)

Co-authored-by: copilot-swe-agent[bot] <[email protected]>
Delete dependencies-GH-1642.md
Migrate to date-fns v4 and official @date-fns/tz, matching sanity core (#1569)
chore(deps): dedupe pnpm-lock.yaml (#1649)

Co-authored-by: squiggler-app[bot] <265501495+squiggler-app[bot]@users.noreply.github.com>
fix(deps): update dependency @sanity/pkg-utils to ^11.0.12 (#1647)

Co-authored-by: squiggler-app[bot] <265501495+squiggler-app[bot]@users.noreply.github.com>
chore(deps): dedupe pnpm-lock.yaml (#1645)

Co-authored-by: squiggler-app[bot] <265501495+squiggler-app[bot]@users.noreply.github.com>
chore(deps): update renovatebot/github-action action to v46.1.20 (#1646)

Co-authored-by: squiggler-app[bot] <265501495+squiggler-app[bot]@users.noreply.github.com>
chore(deps): bump @sanity/vanilla-extract-vite-plugin to ^0.2.4

Drop the Bynder Styles.css.js Vite workaround from the test studio —
0.2.4 keeps the compiler alive under unstable_bundledDev, so plain
*.css.js modules no longer hang processVanillaFile.

fix(deps): update dependency tsdown to ^0.22.12 (#1642)
fix(deps): update dependency styled-components to ^6.4.4 (#1566)
chore(deps): dedupe pnpm-lock.yaml (#1643)

Co-authored-by: squiggler-app[bot] <265501495+squiggler-app[bot]@users.noreply.github.com>
fix(deps): update dependency react-virtuoso to ^4.18.11 (#1641)

* fix(deps): update dependency react-virtuoso to ^4.18.11

* chore(deps): changeset for dependency update

---------

Co-authored-by: squiggler-app[bot] <265501495+squiggler-app[bot]@users.noreply.github.com>
docs(agents): catalog shared deps + enable pnpm catalogMode prefer (#1374)
chore(deps): dedupe pnpm-lock.yaml (#1637)

Co-authored-by: squiggler-app[bot] <265501495+squiggler-app[bot]@users.noreply.github.com>
fix(deps): update dependency react-hook-form to ^7.82.0 (#1639)

* fix(deps): update dependency react-hook-form to ^7.82.0

* chore(deps): changeset for dependency update

---------

Co-authored-by: squiggler-app[bot] <265501495+squiggler-app[bot]@users.noreply.github.com>
chore(deps): update davelosert/vitest-coverage-report-action action to v2.12.2 (#1638)

Co-authored-by: squiggler-app[bot] <265501495+squiggler-app[bot]@users.noreply.github.com>
Version Packages (#1612)

Co-authored-by: squiggler-app[bot] <265501495+squiggler-app[bot]@users.noreply.github.com>
ci: shard Vitest suite (#1584)

* ci: shard vitest suite

* ci: report sharded test coverage

* chore: ignore Vitest blob reports

* ci: require test shards to succeed in aggregate check

---------

Co-authored-by: Cursor Agent <[email protected]>
Co-authored-by: copilot-swe-agent[bot] <[email protected]>
fix(typegen): 🤖 ✨ (#1634)

Co-authored-by: squiggler-app[bot] <265501495+squiggler-app[bot]@users.noreply.github.com>
chore(format): 🤖 ✨ (#1633)

Co-authored-by: squiggler-app[bot] <265501495+squiggler-app[bot]@users.noreply.github.com>
chore(deps): dedupe pnpm-lock.yaml (#1632)

Co-authored-by: squiggler-app[bot] <265501495+squiggler-app[bot]@users.noreply.github.com>
fix(deps): update dependency tsdown to ^0.22.9 (#1622)

* fix(deps): update dependency tsdown to ^0.22.9

* chore(deps): changeset for dependency update

---------

Co-authored-by: squiggler-app[bot] <265501495+squiggler-app[bot]@users.noreply.github.com>
Co-authored-by: copilot-swe-agent[bot] <[email protected]>
fix(assist): keep field group selection while editing AI Assist inputs (#1467)

* fix(assist): keep field group selection while editing AI Assist inputs

The AI Assist instruction inspector renders a nested document form that
reused the host document's pane router. Sanity's document pane mirrors the
router `path` param to programmatic focus, and focus drives the selected
field group. Navigating the instruction form therefore overwrote the host
`path`, re-focused the host document, and reset its field group tab.

Isolate the nested pane's `path` navigation in local state while still
forwarding other params (e.g. selected instruction) to the host router.

Co-authored-by: Cody Olsen <[email protected]>

* test(test-studio): add AI Assist + field groups fixture (SAPP-3970)

Adds an 'AI Assist: Field groups' document type with Content/SEO field
group tabs so the field-group-reset behavior with AI Assist can be
manually reproduced and verified.

Co-authored-by: Cody Olsen <[email protected]>

* refactor(assist): use react-fast-compare for param equality

Addresses PR review: the hand-rolled shallowEqualParams returned a false
positive when two param objects had the same key count but different keys
whose values were undefined (e.g. {foo: undefined} vs {bar: undefined}),
because it never verified the key existed on the other object. Reuse
react-fast-compare (already a plugin dependency, used in _lib/useListeningQuery)
instead of a custom check, and add a regression test.

Co-authored-by: Cody Olsen <[email protected]>

---------

Co-authored-by: Cursor Agent <[email protected]>
Co-authored-by: Cody Olsen <[email protected]>
fix(bynder-input): restore Compact View modal visibility in Studio v6 (#1553)

* fix(bynder-input): restore Compact View modal visibility in Studio v6

Upgrade @bynder/compact-view from 5.1.2 to 5.4.0 and patch its shadow DOM
integration for Sanity Studio v6:

- disableCSSOMInjection on StyleSheetManager so styled-components injects
  CSS into the shadow root instead of leaving empty style tags
- position:fixed + z-index on CompactViewContainer so the portal host
  stacks above Studio UI layers
- widen React peer dependency range to support React 19

Also render BynderModalLayout outside the button flex row.

* fix: unmount bynder layout when not open

* fix(bynder-input): take @bynder/compact-view 5.4.0 as a regular pinned dependency

Implements review feedback on the patch-based approach:
- drop the pnpm patch and the bundling of @bynder/compact-view; pin it
  as a regular dependency instead
- style the Compact View modal host from the plugin with a
  vanilla-extract globalStyle instead of patching Modal.js
- document how to allow the stale react peer range (npm
  --legacy-peer-deps, pnpm peerDependencyRules.allowedVersions) in the
  README, and use the pnpm rule for the workspace itself

* fix(bynder-input): survive Compact View shadow-root re-attachment and fix dev-studio css.js crash

- append a <slot> fallback to Compact View's shadow root while the modal
  is mounted: its attachShadow effect has no cleanup, so when React
  reconnects passive effects on the same host (StrictMode, Activity),
  the second attachShadow() throws and Compact View falls back to the
  host's light DOM, which the slotless shadow tree kept invisible
- work around @bynder/compact-view's Styles.css.js (a plain JS module
  whose name matches vanilla-extract's cssFileFilter and deadlocks the
  compiler under sanity dev's bundled dev mode) in the test studio
- move the container globalStyle to BynderInput.css.ts so it loads with
  the input instead of the lazy modal chunk

* chore(bynder-input): bump changeset to major

Taking @bynder/compact-view as an unbundled regular dependency with a
stale react peer range can fail npm installs without --legacy-peer-deps,
so it's a breaking change.

* chore(bynder-input): widen @bynder/compact-view to ^5.4.0

The exact pin was only needed while the package was patched and
inlined; as a plain regular dependency a caret range is fine.

* chore: merge main and regenerate lockfile

The PR lockfile was generated against a main where
@sanity/vanilla-extract-vite-plugin resolved to 0.2.1; main has since
bumped it to 0.2.2, and the git-merged lockfile on the PR merge ref was
internally inconsistent (ERR_PNPM_LOCKFILE_MISSING_DEPENDENCY in CI).

---------

Co-authored-by: Cursor Agent <[email protected]>
Co-authored-by: Cody Olsen <[email protected]>
fix(deps): update dependency @sanity/tsdown-config to ^0.19.3 (#1598)

* fix(deps): update dependency @sanity/tsdown-config to ^0.19.3

* chore: dedupe lockfile and add release-age excludes for tsdown transitive deps

---------

Co-authored-by: squiggler-app[bot] <265501495+squiggler-app[bot]@users.noreply.github.com>
Co-authored-by: Cody Olsen <[email protected]>
Co-authored-by: copilot-swe-agent[bot] <[email protected]>
chore(deps): dedupe pnpm-lock.yaml (#1631)

Co-authored-by: squiggler-app[bot] <265501495+squiggler-app[bot]@users.noreply.github.com>
fix(deps): update dependency @sanity/vanilla-extract-vite-plugin to ^0.2.2 (#1614)

* fix(deps): update dependency @sanity/vanilla-extract-vite-plugin to ^0.2.2

* chore(deps): exempt yuku-parser from minimum release age for dedupe

---------

Co-authored-by: squiggler-app[bot] <265501495+squiggler-app[bot]@users.noreply.github.com>
Co-authored-by: copilot-swe-agent[bot] <[email protected]>
Move turbo/**/*.hbs oxfmt ignore to root config (#1604)

The turbo generator template ignore is monorepo-specific and should
not ship in the shared @sanity/plugin-kit/oxfmt preset consumed by
standalone plugins.

Co-authored-by: Cursor Agent <[email protected]>
fix(deps): update dependency @sanity/pkg-utils to ^11.0.10 (#1630)

Co-authored-by: squiggler-app[bot] <265501495+squiggler-app[bot]@users.noreply.github.com>
docs(assist): fix README markdown formatting and document English-only image descriptions (#1628)

* fix(@sanity/assist): respect document language when generating image descriptions

Pass the configured translate.document.languageField as languagePath to the
generate-caption task (both the automatic generation triggered on image
change, and the manual 'Generate image description' field action), so
generated alt text/captions are written in the document's language instead
of always defaulting to English.

Fixes https://github.com/sanity-io/plugins/issues/1606

* docs(@sanity/assist): clarify caption generation language limitation

Testing against the live AI Assist backend confirms that the generate-caption
task currently always writes descriptions in English, regardless of the
languagePath sent from the client (this matches Sanity's own documentation,
which states the automatic image description feature is English-only today
and recommends the Transform Agent Action's image-description operation as a
workaround). Update the changeset and README to accurately describe the
change as forward-compatible plumbing rather than a full fix, and point users
at the documented workaround for non-English alt text today.

* refactor(assist): resolve languagePath inside useGenerateCaption

Compute languagePath from config.translate.document.languageField once
inside useGenerateCaption itself (via useAiAssistanceConfig), instead of
requiring every call site to read the config and thread it through as an
argument. This removes the duplicated config lookup from both
ImageContextProvider and generateCaptionsActions, and matches the cleaner
approach used in sanity-io/plugins#1627.

Also documents in translate/types.ts JSDoc that languageField is reused
for image description generation.

* docs(assist): fix README markdown formatting and add known limitations

The README relied on markdown block elements (headings, lists, code
fences, images) interrupting paragraphs without blank lines between
them. GitHub tolerates this, but stricter renderers (e.g. the plugin
listing on sanity.io) join everything into unreadable walls of text
with literal '### Heading' and '- list item' fragments inline.

- Separate all block elements with blank lines throughout
- Add a 'Known limitations' section documenting that image descriptions
  are always generated in English regardless of
  translate.document.languageField (backend limitation, see #1606),
  with Transform Agent Action and translate-after workarounds
- Fix broken links: empty-href heading, HOW-TO-USE pointing at the old
  standalone repo layout, LICENSE pointing at a non-existent file
- Fix broken bold markup in the 'Enabling the AI Assist API' steps and
  the useExampleFieldActions TOC anchor
- Add missing TOC entries (Known limitations, Caveats, Third party
  sub-processors)

Also reverts the languagePath client plumbing from this branch: the
backend ignores it, so the plugin change had no effect. This PR is now
docs-only.

---------

Co-authored-by: Cursor Agent <[email protected]>
chore(deps): dedupe pnpm-lock.yaml (#1619)

Co-authored-by: squiggler-app[bot] <265501495+squiggler-app[bot]@users.noreply.github.com>
chore(deps): update pnpm to v11.13.1 (#1624)

Co-authored-by: squiggler-app[bot] <265501495+squiggler-app[bot]@users.noreply.github.com>
fix(deps): update dependency @sanity/pkg-utils to ^11.0.9 (#1625)

Co-authored-by: squiggler-app[bot] <265501495+squiggler-app[bot]@users.noreply.github.com>
fix(deps): update turbo monorepo to v2.10.5 (#1626)

Co-authored-by: squiggler-app[bot] <265501495+squiggler-app[bot]@users.noreply.github.com>
chore(deps): update dependency knip to ^6.27.0

chore: fix css

fix(deps): update dependency @codemirror/lang-markdown to ^6.5.1 (#1610)

* fix(deps): update dependency @codemirror/lang-markdown to ^6.5.1

* chore(deps): changeset for dependency update

---------

Co-authored-by: squiggler-app[bot] <265501495+squiggler-app[bot]@users.noreply.github.com>
fix(deps): update dependency oxfmt to ^0.59.0 (#1599)

* fix(deps): update dependency oxfmt to ^0.59.0

* chore(deps): changeset for dependency update

---------

Co-authored-by: squiggler-app[bot] <265501495+squiggler-app[bot]@users.noreply.github.com>
fix(deps): update dependency @sanity/pkg-utils to ^11.0.7 (#1594)

Co-authored-by: squiggler-app[bot] <265501495+squiggler-app[bot]@users.noreply.github.com>
Fix TypeGen workflow failure by pinning `@sanity/vanilla-extract-vite-plugin` to 0.1.1 (#1616)

* Initial plan

* fix(typegen): pin vanilla-extract vite plugin to 0.1.1

---------

Co-authored-by: copilot-swe-agent[bot] <[email protected]>
chore(deps): bump tsdown and vanilla-extract

fix(deps): update dependency oxlint to ^1.74.0 (#1603)

* fix(deps): update dependency oxlint to ^1.74.0

* chore(deps): changeset for dependency update

---------

Co-authored-by: squiggler-app[bot] <265501495+squiggler-app[bot]@users.noreply.github.com>
chore(deps): update zizmorcore/zizmor-action action to v0.6.0 (#1609)

Co-authored-by: squiggler-app[bot] <265501495+squiggler-app[bot]@users.noreply.github.com>
chore(deps): lock file maintenance (#1611)

Co-authored-by: squiggler-app[bot] <265501495+squiggler-app[bot]@users.noreply.github.com>
chore(deps): replace @vanilla-extract/vite-plugin with @sanity/vanilla-extract-vite-plugin (#1590)

* chore(deps): replace @vanilla-extract/vite-plugin with @sanity/vanilla-extract-vite-plugin

Swap the vanilla-extract Vite plugin used by the test studio and
@sanity/google-maps-input's vitest config to @sanity/vanilla-extract-vite-plugin,
a Vite 8 rewrite with plugin hook filters and a caching compiler on Vite's
Environment API / ModuleRunner instead of the legacy vite-node. Bump tsdown to
^0.22.8 and @sanity/tsdown-config to ^0.17.0 alongside it.

google-maps-input's vitest.config.ts also needed a small stub plugin: its
dist/bundle.css.js Node/SSR shim matches the upstream cssFileFilter by
filename alone (*.css.js), which made the new plugin try to evaluate it as
real .css.ts source and throw ReferenceError: require is not defined via
ModuleRunner (vite-node tolerated this). The stub renames that module id away
from a .css.js shape before vanillaExtractPlugin() ever sees it.

Documented both the plugin swap and the shim workaround in the
sanity-plugin-best-practices skill and the new-plugin generator templates so
future vanilla-extract plugins get this for free.

* chore(deps): bump @sanity/tsdown-config to ^0.17.1, drop bundle.css.js shim workaround

@sanity/tsdown-config 0.17.1 (via @sanity/vanilla-extract-tsdown-plugin
0.2.1 / @sanity/vanilla-extract-rolldown-plugin 0.1.1) renames the
vanilla-extract Node/SSR compat shim from bundle.css.js to bundle-css.js so
it no longer matches vanillaExtractPlugin()'s cssFileFilter by filename
alone (sanity-io/pkg-utils#3043). That was the root cause of the
require-is-not-defined regression worked around in the previous commit, so
the stub-bundle-css-js-shim plugin is no longer needed.

Rebuilding @sanity/google-maps-input picked up the renamed dist/bundle-css.js
shim and auto-rewrote its package.json ./bundle.css export map (adding a
types condition too). Reverted the vitest.config.ts workaround and the
matching documentation/generator-template changes back to the plain
vanillaExtractPlugin() registration, now noted as a historical gotcha
instead of a live workaround.

* docs(test-studio): note that unstable_bundledDev breaks .css.ts HMR

Document the trade-off discovered while testing the vanilla-extract Vite
plugin swap: with unstable_bundledDev: true, editing a .css.ts file doesn't
hot-reload (a sanity dev restart is required), while plain .ts/.tsx HMR is
unaffected. Comment out the line for a session if fast CSS HMR is needed
(confirmed sub-10ms with it unset).

* docs(styling skill): trim verbose vanilla-extract setup section

The ./bundle.css export map (and its dist/bundle-css.js shim/types) is
generated and kept in sync automatically by @sanity/tsdown-config's
vanillaExtract option, so it doesn't need explaining or a JSON example to
copy. Simplify the vitest.config.ts guidance to why (@sanity/vanilla-extract-
vite-plugin is faster than upstream) without the ModuleRunner/hook-filter/
sanity-build internals. Drop the sanity.cli.ts snippet, since the test studio
already registers the plugin globally in this repo and doesn't need to be
touched per-plugin. Drop the bundle.css.js->bundle-css.js rename history
note, a one-off gotcha now fixed upstream rather than evergreen guidance.

* chore(deps): bump @sanity/tsdown-config to ^0.17.2, @sanity/vanilla-extract-vite-plugin to ^0.1.1

Both are latest-available patch releases (0.17.1 -> 0.17.2 pulls in
@sanity/vanilla-extract-tsdown-plugin 0.2.2 / @sanity/vanilla-extract-
rolldown-plugin 0.1.2; 0.1.0 -> 0.1.1 is the vite plugin's own patch).
tsdown stays at ^0.22.8, already the latest. Benchmarked in the next commit's
message to confirm this doesn't regress anything.

---------

Co-authored-by: Cursor Agent <[email protected]>
Co-authored-by: copilot-swe-agent[bot] <[email protected]>
fix(deps): update dependency @changesets/cli to ^2.31.1 (#1607)

* fix(deps): update dependency @changesets/cli to ^2.31.1

* chore(deps): exempt @changesets/cli and refresh lockfile with dedupe

---------

Co-authored-by: squiggler-app[bot] <265501495+squiggler-app[bot]@users.noreply.github.com>
Co-authored-by: copilot-swe-agent[bot] <[email protected]>
chore(deps): update dependency @vitejs/devtools to ^0.4.1 (#1593)

Co-authored-by: squiggler-app[bot] <265501495+squiggler-app[bot]@users.noreply.github.com>
Version Packages (#1591)
chore(deps): dedupe pnpm-lock.yaml (#1602)

Co-authored-by: squiggler-app[bot] <265501495+squiggler-app[bot]@users.noreply.github.com>
fix(media): use useMediaIndex so Tags panel works on wide viewports (#1592)

The home-rolled useBreakpointIndex returned -1 above 1920px, which
force-hid the Tags panel. Switch Items to @sanity/ui's useMediaIndex,
which includes a min-width catch-all and matches Controls breakpoints.

Co-authored-by: Cursor Agent <[email protected]>
fix(deps): update dependency xstate to ^5.32.5 (#1597)

* fix(deps): update dependency xstate to ^5.32.5

* chore(deps): changeset for dependency update

---------

Co-authored-by: squiggler-app[bot] <265501495+squiggler-app[bot]@users.noreply.github.com>
fix(deps): update dependency tsdown to ^0.22.8 (#1596)

* fix(deps): update dependency tsdown to ^0.22.8

* chore(deps): changeset for dependency update

---------

Co-authored-by: squiggler-app[bot] <265501495+squiggler-app[bot]@users.noreply.github.com>
fix(deps): update dependency @sanity/tsconfig to ^2.2.1 (#1595)

Co-authored-by: squiggler-app[bot] <265501495+squiggler-app[bot]@users.noreply.github.com>
chore(deps): update actions/setup-node action to v7 (#1586)

Co-authored-by: squiggler-app[bot] <265501495+squiggler-app[bot]@users.noreply.github.com>
chore(deps): update pnpm to v11 (#1579)

Co-authored-by: squiggler-app[bot] <265501495+squiggler-app[bot]@users.noreply.github.com>
fix(deps): update dependency nanoid to v6 (#1577)

* fix(deps): update dependency nanoid to v6

* chore(deps): changeset for dependency update

---------

Co-authored-by: squiggler-app[bot] <265501495+squiggler-app[bot]@users.noreply.github.com>
fix(deps): update dependency groq to ^6.5.0 (#1523)

* fix(deps): update dependency groq to ^6.5.0

* chore(deps): changeset for dependency update

---------

Co-authored-by: squiggler-app[bot] <265501495+squiggler-app[bot]@users.noreply.github.com>
Migrate plugin-kit and the monorepo from prettier/eslint to oxfmt/oxlint (#1565)

* Migrate plugin-kit and monorepo formatting from prettier to oxfmt

- Ship the monorepo's oxfmt settings as a @sanity/plugin-kit/oxfmt preset
- Re-export the preset from the root oxfmt.config.ts (replaces .oxfmtrc.json)
- init/inject scaffold oxfmt (config, devDependency, format script) instead
  of prettier; --no-prettier is now --no-oxfmt
- verify-package: replace the duplicate-prettier-config check with a
  monorepo-aware oxfmt check that expects the config at the workspace root
  (or next to package.json outside monorepos) and flags leftover prettier
  configuration with migration instructions

* Migrate plugin-kit and monorepo linting from eslint to oxlint, drop tsc

- Ship the monorepo's oxlint settings as @sanity/plugin-kit/oxlint-config.json
  (type-aware rules, type checking via oxlint-tsgolint, warnings denied); the
  root .oxlintrc.json extends it and keeps only workspace-specific ignores and
  overrides
- init/inject scaffold oxlint (.oxlintrc.json, oxlint + oxlint-tsgolint
  devDependenc…
cursor Bot pushed a commit that referenced this pull request Jul 28, 2026
… property

Bump alphaCard/previewCard white background to doubled-class specificity so it
beats Card's own background (the old inline style always won); drop the no-op
content property carried over from the styled.div swatch.

fix(color-input): drop unused react-color type re-exports

Knip flagged 12 types re-exported from the react-color barrel that nothing
outside the module imports. Keep only the types consumers actually use.

Merge branch 'cursor/ban-react-class-components-ca2a' into cursor/color-input-vanilla-extract-35df

Keep vanilla-extract styling for Alpha/Hue/Saturation/EditableInput;
ban branch still uses styled-components/inline styles for those files.

fix(color-input): convert vendored react-color components to function components

Convert Alpha/Hue/Saturation/EditableInput and centralize drag wiring in a
shared useDrag hook: a native mousedown listener attached in useLayoutEffect,
useEffectEvent so events always read the latest props, and per-gesture
mousemove/mouseup listeners cleaned up via AbortController. EditableInput
clears its pending blur-sync value once the prop catches up with the
displayed value, so blurring can't revert a typed value.

fix(sanity-plugin-media): convert ReduxProvider to a function component

Initialize the redux store once with a lazy useState initializer.

fix(orderable-document-list): convert OrderableDocumentList to a function component

Expose the structure menu actionHandlers via useImperativeHandle and the
React 19 ref-as-prop pattern, with a dependency list so the handle is not
re-created on every render (the pane stores it in state).

feat(plugin-kit): ban Component, PureComponent and createRef imports from react

Class components are not allowed in this repo — only function components.
createRef is only useful in class components; use the useRef hook instead.
Also point skill docs at the shared @sanity/plugin-kit/oxlint config.

chore: drop color-input oxlint override

Leave shared oxlint rules untouched; the vanilla-extract migration does
not need a package-specific no-restricted-imports lock-in.

Merge branch 'cursor/ban-react-class-components-ca2a' into cursor/color-input-vanilla-extract-35df

Resolve stack conflicts: keep vanilla-extract exports (drop EditableInputStyles),
bump @vanilla-extract/css catalog to ^1.21.2 while retaining @vanilla-extract/dynamic,
and regenerate the lockfile. Preserve EditableInput blur-sync fix from the base branch.

Version Packages (#1735)

Co-authored-by: squiggler-app[bot] <265501495+squiggler-app[bot]@users.noreply.github.com>
refactor(color-input): migrate styling to vanilla-extract

Replace styled-components and inline style objects with colocated
vanilla-extract stylesheets, using assignInlineVars for dynamic
theme/color values. Builds on the function-component + useDrag
refactor from the ban-react-class-components branch.

Merge remote-tracking branch 'origin/main' into cursor/ban-react-class-components-ca2a

fix(color-input): clear stale blur-sync value when prop catches up

The prop-sync effect early-returned when the normalized prop matched the
displayed value, leaving a blurValue captured from an older prop in place;
blurring would then restore that older value. Clear it (in a transition to
satisfy the React Compiler EffectSetState rule).

fix(deps): bump @sanity/pkg-utils, @sanity/tsdown-config and vanilla-extract plugins (#1769)

* fix(deps): bump @sanity/pkg-utils, @sanity/tsdown-config and vanilla-extract plugins

- @sanity/pkg-utils ^11.0.16 -> ^11.0.17
- @sanity/tsdown-config ^0.21.1 -> ^0.21.2
- @sanity/vanilla-extract-vite-plugin ^0.2.7 -> ^0.2.8

tsdown (^0.22.14) and @vanilla-extract/css (^1.21.2) were already on the
latest release; refreshing the lockfile picks up the transitive
@sanity/vanilla-extract-{integration,rolldown-plugin,tsdown-plugin} updates.

* fix(deps): public-hoist @vanilla-extract/css so node_modules .css.js files resolve it

`@sanity/vanilla-extract-vite-plugin` filters its transform hook on
/\.css\.(js|cjs|mjs|jsx|ts|tsx)/ with no node_modules exclusion, so it also
compiles `@bynder/compact-view/Styles.css.js` — a plain module exporting a CSS
string for a shadow root, not a vanilla-extract module. That package declares no
dependencies, so the compile only finds `@vanilla-extract/css/adapter` when pnpm
happens to hoist it into the hidden .pnpm/node_modules directory. On Vercel it
did not, failing `sanity build` for dev/test-studio with
"Cannot find module '@vanilla-extract/css/adapter'".

Public-hoisting puts @vanilla-extract/css on the root node_modules resolution
path, which is deterministic regardless of the implicit hoist layout.

---------

Co-authored-by: Cursor Agent <[email protected]>
chore(deps): dedupe pnpm-lock.yaml (#1766)

Co-authored-by: squiggler-app[bot] <265501495+squiggler-app[bot]@users.noreply.github.com>
fix(deps): update dependency @sanity/pkg-utils to ^11.0.16 (#1768)

Co-authored-by: squiggler-app[bot] <265501495+squiggler-app[bot]@users.noreply.github.com>
feat(test-studio): add experimental @sanity/themer tool (#1738)

* feat(test-studio): add experimental @sanity/themer tool

Wire themerTool() into the Home workspace so theme presets and colors
can be previewed live against the plugins kitchen sink.

* chore(test-studio): bump @sanity/themer to 0.2.0

* chore(test-studio): use ^0.2.0 for @sanity/themer

Merge main and widen the themer dependency to a caret range.

* chore: dedupe lockfile to resolve @sanity/client type mismatch

pnpm dedupe collapses the 7.24.0 / 7.25.0 client split that broke
type-aware lint after merging main with themer.

* chore: handle lockfile

* chore(knip): ignore unused catalog entry reports in pnpm-workspace.yaml

The catalogued @sanity/types entry is referenced only by the overrides block
in pnpm-workspace.yaml, which knip does not read, so it was reported as an
unused catalog entry and failed `pnpm knip`.

Co-authored-by: Cursor <[email protected]>

* chore: fix lock

---------

Co-authored-by: Cursor Agent <[email protected]>
fix(deps): update dependency @vanilla-extract/css to ^1.21.2 (#1764)

Co-authored-by: squiggler-app[bot] <265501495+squiggler-app[bot]@users.noreply.github.com>
chore(deps): update renovatebot/github-action action to v46.1.21 (#1763)

Co-authored-by: squiggler-app[bot] <265501495+squiggler-app[bot]@users.noreply.github.com>
fix(deps): update dependency @sanity/ui to ^3.5.0 (#1762)

Co-authored-by: squiggler-app[bot] <265501495+squiggler-app[bot]@users.noreply.github.com>
chore(deps): dedupe pnpm-lock.yaml (#1761)

Co-authored-by: squiggler-app[bot] <265501495+squiggler-app[bot]@users.noreply.github.com>
test(document-internationalization): expand Vitest + Playwright e2e coverage (#1712)
chore(deps): dedupe pnpm-lock.yaml (#1754)

Co-authored-by: squiggler-app[bot] <265501495+squiggler-app[bot]@users.noreply.github.com>
chore(deps): update dependency @playwright/test to ^1.62.0 (#1760)

Co-authored-by: squiggler-app[bot] <265501495+squiggler-app[bot]@users.noreply.github.com>
fix(deps): update turbo monorepo to v2.10.7 (#1759)

Co-authored-by: squiggler-app[bot] <265501495+squiggler-app[bot]@users.noreply.github.com>
fix(deps): update dependency concurrently to ^10.0.4 (#1758)

* fix(deps): update dependency concurrently to ^10.0.4

* chore(deps): changeset for dependency update

---------

Co-authored-by: squiggler-app[bot] <265501495+squiggler-app[bot]@users.noreply.github.com>
fix(deps): update dependency @portabletext/plugin-input-rule to ^6.0.10 (#1757)

* fix(deps): update dependency @portabletext/plugin-input-rule to ^6.0.10

* chore(deps): changeset for dependency update

---------

Co-authored-by: squiggler-app[bot] <265501495+squiggler-app[bot]@users.noreply.github.com>
chore(deps): update dependency @vitejs/devtools to ^0.4.8 (#1756)

Co-authored-by: squiggler-app[bot] <265501495+squiggler-app[bot]@users.noreply.github.com>
chore(deps): update dependency @portabletext/editor to ^7.10.13 (#1755)

Co-authored-by: squiggler-app[bot] <265501495+squiggler-app[bot]@users.noreply.github.com>
chore(deps): lock file maintenance (#1749)

Co-authored-by: squiggler-app[bot] <265501495+squiggler-app[bot]@users.noreply.github.com>
chore: fix lockfile

chore(deps): dedupe pnpm-lock.yaml (#1753)

Co-authored-by: squiggler-app[bot] <265501495+squiggler-app[bot]@users.noreply.github.com>
fix(deps): update dependency @sanity/client to ^7.25.0 (#1747)

Co-authored-by: squiggler-app[bot] <265501495+squiggler-app[bot]@users.noreply.github.com>
fix(deps): update dependency @sanity/ui to ^3.4.5 (#1745)

* fix(deps): update dependency @sanity/ui to ^3.4.5

* fix(knip): remove unused react-is devDependency from media plugin

---------

Co-authored-by: squiggler-app[bot] <265501495+squiggler-app[bot]@users.noreply.github.com>
Co-authored-by: copilot-swe-agent[bot] <[email protected]>
fix(deps): update dependency @mux/mux-player to ^3.13.2 (#1751)

* fix(deps): update dependency @mux/mux-player to ^3.13.2

* chore(deps): changeset for dependency update

---------

Co-authored-by: squiggler-app[bot] <265501495+squiggler-app[bot]@users.noreply.github.com>
chore(deps): dedupe pnpm-lock.yaml (#1748)

Co-authored-by: squiggler-app[bot] <265501495+squiggler-app[bot]@users.noreply.github.com>
fix(deps): update dependency react-hook-form to ^7.83.0 (#1750)

* fix(deps): update dependency react-hook-form to ^7.83.0

* chore(deps): changeset for dependency update

---------

Co-authored-by: squiggler-app[bot] <265501495+squiggler-app[bot]@users.noreply.github.com>
fix(deps): update dependency @mux/mux-player-react to ^3.13.2 (#1752)

* fix(deps): update dependency @mux/mux-player-react to ^3.13.2

* chore(deps): changeset for dependency update

---------

Co-authored-by: squiggler-app[bot] <265501495+squiggler-app[bot]@users.noreply.github.com>
fix(deps): update dependency @sanity/preview-url-secret to ^4.1.2 (#1744)

Co-authored-by: squiggler-app[bot] <265501495+squiggler-app[bot]@users.noreply.github.com>
chore(deps): dedupe pnpm-lock.yaml (#1734)

Co-authored-by: squiggler-app[bot] <265501495+squiggler-app[bot]@users.noreply.github.com>
Delete dependencies-GH-1739.md
fix(deps): update dependency @sanity/color to ^3.0.8 (#1743)

Co-authored-by: squiggler-app[bot] <265501495+squiggler-app[bot]@users.noreply.github.com>
fix(deps): update dependency @sanity/vanilla-extract-vite-plugin to ^0.2.7 (#1746)

Co-authored-by: squiggler-app[bot] <265501495+squiggler-app[bot]@users.noreply.github.com>
fix(deps): update dependency @sanity/tsdown-config to ^0.21.1 (#1742)

Co-authored-by: squiggler-app[bot] <265501495+squiggler-app[bot]@users.noreply.github.com>
fix(deps): update dependency @sanity/pkg-utils to ^11.0.15 (#1741)

Co-authored-by: squiggler-app[bot] <265501495+squiggler-app[bot]@users.noreply.github.com>
chore(deps): update zizmorcore/zizmor-action action to v0.6.1 (#1740)

Co-authored-by: squiggler-app[bot] <265501495+squiggler-app[bot]@users.noreply.github.com>
fix(deps): update dependency tsdown to ^0.22.14 (#1739)

* fix(deps): update dependency tsdown to ^0.22.14

* chore(deps): changeset for dependency update

---------

Co-authored-by: squiggler-app[bot] <265501495+squiggler-app[bot]@users.noreply.github.com>
chore(deps): update actions/cache action to v6 (#1731)

Co-authored-by: squiggler-app[bot] <265501495+squiggler-app[bot]@users.noreply.github.com>
chore(deps): update dependency @playwright/test to ^1.61.1 (#1737)

Co-authored-by: squiggler-app[bot] <265501495+squiggler-app[bot]@users.noreply.github.com>
fix(deps): update dependency @sanity/tsdown-config to ^0.21.0 (#1736)

Co-authored-by: squiggler-app[bot] <265501495+squiggler-app[bot]@users.noreply.github.com>
fix(deps): update dependency @sanity/vanilla-extract-vite-plugin to ^0.2.6 (#1733)

Co-authored-by: squiggler-app[bot] <265501495+squiggler-app[bot]@users.noreply.github.com>
fix(deps): update dependency @sanity/pkg-utils to ^11.0.14 (#1732)

Co-authored-by: squiggler-app[bot] <265501495+squiggler-app[bot]@users.noreply.github.com>
chore(deps): update actions/cache action to v5 (#1730)

Co-authored-by: squiggler-app[bot] <265501495+squiggler-app[bot]@users.noreply.github.com>
fix(deps): update turbo monorepo to v2.10.6 (#1729)

Co-authored-by: squiggler-app[bot] <265501495+squiggler-app[bot]@users.noreply.github.com>
fix(deps): update dependency @tanstack/react-virtual to ^3.14.8 (#1728)

* fix(deps): update dependency @tanstack/react-virtual to ^3.14.8

* chore(deps): changeset for dependency update

---------

Co-authored-by: squiggler-app[bot] <265501495+squiggler-app[bot]@users.noreply.github.com>
chore(deps): update dependency knip to ^6.29.0 (#1727)

Co-authored-by: squiggler-app[bot] <265501495+squiggler-app[bot]@users.noreply.github.com>
chore(deps): update dependency @vitejs/devtools to ^0.4.5 (#1726)

Co-authored-by: squiggler-app[bot] <265501495+squiggler-app[bot]@users.noreply.github.com>
feat: add Playwright smoke e2e with ephemeral datasets (#1710)

* feat: add Playwright smoke e2e for test studio

Set up an e2e workspace with Chromium/Firefox smoke coverage,
storageState studio auth matching sanity-io/sanity, fail-fast
token validation, and a CI workflow that builds and previews
the test studio locally.

* fix(e2e): correct Playwright artifact gitignore paths

Paths in e2e/.gitignore are relative to that directory, so leading
/e2e/… never matched results or playwright-report.

* fix(e2e): require project id and dataset from env vars

Source SANITY_E2E_PROJECT_ID and SANITY_E2E_STUDIO_DATASET from
GitHub repository variables in CI (no hardcoding). Rename the
dataset env to SANITY_E2E_STUDIO_DATASET and map both onto the
test-studio SANITY_STUDIO_* vars when starting webServer.

* fix(e2e): stop knip from loading Playwright config

resolveE2eEnv() requires project id and dataset at config load time;
disable the knip Playwright plugin for the e2e workspace so analysis
does not need CI secrets.

* fix(e2e): drop token fallback and debug browser filter

Require only SANITY_E2E_SESSION_TOKEN for auth, and always run
Chromium and Firefox projects (filter via Playwright UI/CLI instead).

* docs(e2e): document plugins-e2e-testing sandbox project

Note that e2e uses Sanity sandbox org project plugins-e2e-testing
(a1psl692) and update .env.example accordingly.

* ci(e2e): post Sanity-style PR status comment

Add a Playwright summary reporter and update the E2E workflow to
post/refresh a pull request comment with pass/fail/flaky/skipped
counts and a link to the Actions run (HTML report as artifact until
Vercel report hosting lands).

* ci(e2e): deploy Playwright HTML report to Vercel

Host the report on a dedicated Vercel project and link pass/fail
counts in the PR status comment, matching sanity-io/sanity. Document
VERCEL_E2E_REPORT_* secret setup in e2e/README.md.

* feat(e2e): add ephemeral per-browser datasets like sanity-io/sanity

Create pr-*/main-* chromium and firefox datasets in CI, expose matching
studio workspaces, and schedule cleanup for closed PRs / stale main runs.

* fix(e2e): bump Sanity client apiVersion to 2026-07-23

* fix(ci): avoid env context in job-level e2e workflow env

GitHub Actions does not allow `env.*` when evaluating job `env:` maps.
Define dataset names at workflow level with inlined format expressions.

* ci(e2e): run chromium and firefox as a parallel matrix

Split setup / per-browser test / report-merge jobs. Each matrix job gets
its own SANITY_E2E_DATASET and runs playwright --project for that browser.

* fix(e2e): avoid pnpm setup command colliding with dataset script

`pnpm --filter e2e setup` invoked pnpm's built-in `setup`, so ephemeral
datasets were never created. Rename to `create-dataset` and call via
`pnpm run`. Fail the CI step if creation fails.

* ci(e2e): scope pull-requests write to jobs that post comments

Satisfy zizmor excessive-permissions: keep workflow at contents:read
and grant pull-requests:write only on setup/report jobs.

* ci(e2e): deploy studio preview to Vercel like sanity-io/sanity

Add deploy-preview job (vercel pull/build/deploy --prebuilt) with
ephemeral datasets baked in; matrix tests run against the preview URL
instead of a local sanity preview server. Adds vercel CLI as a root
devDependency and dev/test-studio/vercel.json build settings.

* ci(e2e): reuse VERCEL_E2E_REPORT_* secrets for the studio preview

The studio preview deploys with the same Vercel project/token as report
hosting, so only one set of Vercel secrets is required.

* fix(e2e): add SPA fallback rewrite to test-studio vercel.json

The deployed studio 404'd on /chromium and /firefox workspace routes,
so the studio never booted and globalSetup timed out waiting for
/users/me. Rewrite all paths to index.html (filesystem first), same as
sanity-io/sanity's studio deployments.

* fix(e2e): drop studio warm-up from globalSetup

The warm-up existed to pay the local dev-server cold-compile cost once
up front; CI now tests a deployed static studio, and the waitForResponse
race was flaky there. Keep the fast env + auth token preflight.

* feat(e2e): dedicated bare e2e-studio with chromium/firefox workspaces

Add dev/e2e-studio — a minimal studio used only by Playwright e2e:
structure tool, one smoke-test schema type, and per-browser workspaces
on the ephemeral datasets. No monorepo plugins yet; each plugin will be
added together with its e2e tests. Reverts the e2e wiring from
dev/test-studio so it stays a pure development studio.

* fix(e2e): address review feedback

- Create ephemeral datasets as private (tests auth via storageState)
- Add contents:read to the periodic cleanup workflow for checkout
- Strip all leading dashes in sanityIdify
- Fix stale e2e package description and report-hosting docs (shared
  Vercel project, not a dedicated one)

* fix(e2e): keep ephemeral datasets public like sanity-io/sanity

---------

Co-authored-by: Cursor Agent <[email protected]>
Make test-studio typegen idempotent in CI by forcing schema overwrite (#1725)

* Initial plan

* fix(test-studio): force schema extract during typegen

---------

Co-authored-by: copilot-swe-agent[bot] <[email protected]>
chore(deps): dedupe pnpm-lock.yaml (#1724)

Co-authored-by: squiggler-app[bot] <265501495+squiggler-app[bot]@users.noreply.github.com>
Version Packages (#1718)

Co-authored-by: squiggler-app[bot] <265501495+squiggler-app[bot]@users.noreply.github.com>
fix(deps): update dependency @portabletext/plugin-input-rule to ^6.0.8 (#1723)

* fix(deps): update dependency @portabletext/plugin-input-rule to ^6.0.9

* chore(deps): changeset for dependency update

---------

Co-authored-by: squiggler-app[bot] <265501495+squiggler-app[bot]@users.noreply.github.com>
chore(deps): update dependency @types/google.maps to ^3.65.3 (#1722)

Co-authored-by: squiggler-app[bot] <265501495+squiggler-app[bot]@users.noreply.github.com>
chore(deps): update dependency @portabletext/editor to ^7.10.11 (#1721)

Co-authored-by: squiggler-app[bot] <265501495+squiggler-app[bot]@users.noreply.github.com>
Delete .changeset/dependencies-GH-1697.md
Delete .changeset/dependencies-GH-1692.md
fix(deps): update dependency @sanity/icons to ^5.2.1 (#1720)

Co-authored-by: squiggler-app[bot] <265501495+squiggler-app[bot]@users.noreply.github.com>
fix(deps): update dependency oxfmt to ^0.60.0 (#1697)

* fix(deps): update dependency oxfmt to ^0.60.0

* chore(deps): changeset for dependency update

* chore: dedupe lockfile with release age exemptions

* fix: resolve knip unused export errors

---------

Co-authored-by: squiggler-app[bot] <265501495+squiggler-app[bot]@users.noreply.github.com>
Co-authored-by: copilot-swe-agent[bot] <[email protected]>
fix(deps): update dependency @testing-library/jest-dom to v7 (#1679)

Co-authored-by: squiggler-app[bot] <265501495+squiggler-app[bot]@users.noreply.github.com>
fix(deps): update react monorepo to ^19.2.8 (#1692)

* fix(deps): update react monorepo to ^19.2.8

* chore(deps): changeset for dependency update

---------

Co-authored-by: squiggler-app[bot] <265501495+squiggler-app[bot]@users.noreply.github.com>
Co-authored-by: copilot-swe-agent[bot] <[email protected]>
chore(deps): update dependency @vitejs/devtools to ^0.4.3 (#1704)

Co-authored-by: squiggler-app[bot] <265501495+squiggler-app[bot]@users.noreply.github.com>
fix(deps): update dependency @tanstack/react-query to ^5.101.4 (#1706)

* fix(deps): update dependency @tanstack/react-query to ^5.101.4

* chore(deps): changeset for dependency update

---------

Co-authored-by: squiggler-app[bot] <265501495+squiggler-app[bot]@users.noreply.github.com>
feat(plugin-kit)!: require Node.js 24 and bump held-back CLI deps (#1696)

* feat(plugin-kit)!: require Node.js 24 and bump held-back CLI deps

- engines.node: >=20.19 <22 || >=22.12 -> >=24 (plugin-kit CLI only;
  scaffolded/verified plugins keep the wider pkg-utils range)
- concurrently ^9 -> ^10, execa ^9 -> ^10, inquirer ^12 -> ^14 (all
  previously held back by the permissive engine range)
- migrate the choices prompt from the 'list' type (removed in
  inquirer 13) to 'select'

* fix(plugin-kit): report failed dependency install with the intended hint

execa rejects on non-zero exit, so the exitCode check in
installDependencies was unreachable and init surfaced npm/pnpm install
failures as an unhandled CLI error. Pass reject: false so the caller's
'Failed to install dependencies, try manually running `npm install`'
message is shown instead.

* refactor(plugin-kit): replace several deps with Node 24 builtins and local helpers

Drop chalk, get-it, git-remote-origin-url, github-url-to-object, xdg-basedir,
email-validator, p-props and outdent in favor of util.styleText, fetch, execa+git,
and small local helpers. All remaining CLI deps were already at latest.

* fix(plugin-kit): address review feedback on execa, styleText, and outdent

- catch spawn errors in installDependencies and git remote lookup
- join nodemon's files array before styleText (it requires a string)
- only strip spaces/tabs in outdent so under-indented lines keep content

---------

Co-authored-by: Cursor Agent <[email protected]>
fix(deps): upgrade Sanity monorepo to ^6.6.0 (#1717)

* fix(deps): upgrade Sanity monorepo to ^6.6.0

Bump catalog packages (sanity, @sanity/mutator/schema/util/vision) and
sanity-plugin-media's groq dependency. Map TARGET_NOT_FOUND to Sanity's
structure locale key for missing release/variant documents instead of
reusing the not-ready tooltip.

* fix(deps): force-dedupe Sanity monorepo packages to 6.6.0

Override transitive @sanity/types|mutator|schema|util and groq onto the
catalog version so the lockfile cannot keep a second 6.5.x copy (which
breaks media dts emit). Put groq in the catalog and document the upgrade
checklist in AGENTS.md.

---------

Co-authored-by: Cursor Agent <[email protected]>
fix(deps): update dependency @sanity/color to ^3.0.7 (#1716)

Co-authored-by: squiggler-app[bot] <265501495+squiggler-app[bot]@users.noreply.github.com>
feat(test-studio): enable React profiling on Vercel preview builds (#1713)

* feat(test-studio): enable React profiling on Vercel preview builds

Alias react-dom/client to react-dom/profiling when VERCEL_ENV is preview,
matching the Sanity monorepo test-studio setup, so PR deployments can be
profiled without imposing that overhead on production.

* fix(test-studio): disable auto-updates on preview for profiling

Auto-updates vendor builds hardcode react-dom-client.production.js, which
bypasses the react-dom/profiling alias. Turn auto-updates off when
VERCEL_ENV is preview so React DevTools profiling works on PR deployments.

---------

Co-authored-by: Cursor Agent <[email protected]>
fix(deps): update dependency @sanity/preview-url-secret to ^4.1.1 (#1714)

Co-authored-by: squiggler-app[bot] <265501495+squiggler-app[bot]@users.noreply.github.com>
chore(deps): dedupe pnpm-lock.yaml (#1709)

Co-authored-by: squiggler-app[bot] <265501495+squiggler-app[bot]@users.noreply.github.com>
chore(deps): update dependency @portabletext/editor to ^7.10.10 (#1703)

Co-authored-by: squiggler-app[bot] <265501495+squiggler-app[bot]@users.noreply.github.com>
Version Packages (#1708)
fix(deps): update dependency @portabletext/plugin-input-rule to ^6.0.7 (#1705)
Remove @sanity/styled-components override, move back to styled-components (#1693)

* Remove @sanity/styled-components override, move back to styled-components

* test: give first-mount UI tests timeout headroom on slow CI runners

* test: force styled-components speedy CSS injection under jsdom

Match sanity#13675 by setting SC_DISABLE_SPEEDY=false in the root
Vitest config so upstream styled-components keeps CSSOM injection in
tests. Revert the per-test timeout bumps that papered over the same
jsdom stylesheet reparse slowdown.

* chore: refresh PR head after merging main

---------

Co-authored-by: Cursor Agent <[email protected]>
fix(deps): upgrade oxlint and oxlint-tsgolint to latest (#1707)
Merge pull request #1702 from sanity-io/cursor/bump-sanity-ui-f3da
fix(deps): update dependency @portabletext/block-tools to ^5.1.12 (#1688)

Co-authored-by: squiggler-app[bot] <265501495+squiggler-app[bot]@users.noreply.github.com>
fix(deps): update dependency @sanity/ui to ^3.4.3

Bump the catalog range and lockfile to @sanity/ui 3.4.3, and add a
patch changeset for all published plugins that depend on it.

Delete dependencies-GH-1691.md
Version Packages (#1694)
fix(deps): update dependency tsdown to ^0.22.13 (#1691)

* fix(deps): update dependency tsdown to ^0.22.13

* chore(deps): changeset for dependency update

---------

Co-authored-by: squiggler-app[bot] <265501495+squiggler-app[bot]@users.noreply.github.com>
chore(plugin-kit): bump CLI dependencies to latest compatible majors (#1687)

- chalk ^4 -> ^5, concurrently ^8 -> ^9, execa ^5 -> ^9,
  git-remote-origin-url ^3 -> ^4, inquirer ^8 -> ^12, meow ^9 -> ^14,
  p-props ^4 -> ^6, xdg-basedir ^4 -> ^5, nodemon 3.1.0 -> 3.1.14
- drop @types/inquirer and @types/nodemon (both packages ship their own
  types now)
- add the required meow importMeta option, switch to execa's named
  export, use xdg-basedir's named xdgConfig export and
  git-remote-origin-url's options object
- restore classic validate-on-filtered-value prompt semantics, which the
  modern inquirer rewrite changed (fixes accepting scp-style git remote
  URL defaults)
- concurrently 10, execa 10 and inquirer 13+ are held back as they
  require Node versions beyond plugin-kit's supported engine range

Co-authored-by: Cursor Agent <[email protected]>
Version Packages (#1689)

Co-authored-by: squiggler-app[bot] <265501495+squiggler-app[bot]@users.noreply.github.com>
fix(typegen): 🤖 ✨ (#1686)

Co-authored-by: squiggler-app[bot] <265501495+squiggler-app[bot]@users.noreply.github.com>
chore: add per-plugin changesets for latest @sanity/icons and @sanity/ui catalog bumps (#1684)

* chore: add plugin changesets for @sanity/icons and @sanity/ui bumps

* chore: consolidate icons/ui impacted plugin changesets

---------

Co-authored-by: copilot-swe-agent[bot] <[email protected]>
Co-authored-by: Cody Olsen <[email protected]>
chore(deps): dedupe pnpm-lock.yaml (#1678)

Co-authored-by: squiggler-app[bot] <265501495+squiggler-app[bot]@users.noreply.github.com>
fix(deps): update dependency get-it to ^9.2.0 (#1675)

* fix(deps): update dependency get-it to ^9.2.0

* chore(deps): changeset for dependency update

---------

Co-authored-by: squiggler-app[bot] <265501495+squiggler-app[bot]@users.noreply.github.com>
fix(deps): update dependency @sanity/ui to ^3.4.0 (#1677)

Co-authored-by: squiggler-app[bot] <265501495+squiggler-app[bot]@users.noreply.github.com>
Co-authored-by: copilot-swe-agent[bot] <[email protected]>
fix(deps): update dependency @sanity/preview-url-secret to ^4.1.0 (#1680)

Co-authored-by: squiggler-app[bot] <265501495+squiggler-app[bot]@users.noreply.github.com>
fix(deps): update dependency @sanity/icons to ^5.2.0 (#1676)

Co-authored-by: squiggler-app[bot] <265501495+squiggler-app[bot]@users.noreply.github.com>
fix: address review feedback on drag attach timing and imperative handle

- useDrag: attach the mousedown listener in useLayoutEffect so it exists
  before paint (matches the previous synchronous JSX onMouseDown wiring).
- OrderableDocumentList: give useImperativeHandle a dependency list so a
  new handle object is not installed on every render (the structure pane
  stores the handle in state, so per-render handles could loop).

refactor(color-input): extract shared useDrag hook for picker surfaces

Replace the per-component propsRef/AbortController plumbing in
Alpha/Hue/Saturation/EditableInput with a single useDrag hook. It wires a
native mousedown listener via useEffect and keeps callbacks fresh with
useEffectEvent, so drag events always read the latest props. mousemove and
mouseup listeners attach per-gesture and abort on mouseup or unmount.

fix(color-input): address review feedback on drag listeners

- Keep latest props in a ref so window mousemove listeners registered on
  mousedown see current values (matches class `this.props` behavior).
- Normalize EditableInput value comparisons to avoid number/string mismatch.
- Correct orderable-document-list changeset wording (ref-as-prop, not forwardRef).

Merge origin/main into cursor/ban-react-class-components-ca2a

Resolve color-input conflicts from #1673 (simplify components, remove
CustomPicker HOC). Main kept Alpha/Hue/Saturation/EditableInput as class
components pending a follow-up conversion; this PR is that follow-up:
- Accept ColorWrap.tsx deletion (HOC replaced by ColorInput state).
- Re-apply function-component conversions on top of main's AbortController
  listener cleanup, using useRef instead of createRef.

Version Packages (#1674)

Co-authored-by: squiggler-app[bot] <265501495+squiggler-app[bot]@users.noreply.github.com>
fix(color-input): simplify components, remove HOC (#1673)
Version Packages (#1668)

Co-authored-by: squiggler-app[bot] <265501495+squiggler-app[bot]@users.noreply.github.com>
chore(deps): dedupe pnpm-lock.yaml (#1671)

Co-authored-by: squiggler-app[bot] <265501495+squiggler-app[bot]@users.noreply.github.com>
Migrate sanity-plugin-workflow styling to vanilla-extract (#1450)

* Migrate sanity-plugin-workflow styling to vanilla-extract

* Keep styled-components catalog:devDependency for peer alignment

After the vanilla-extract migration, the peer can go, but the catalog
devDependency must remain so pnpm resolves the workspace
@sanity/styled-components override (same as google-maps-input).

---------

Co-authored-by: Cursor Agent <[email protected]>
Merge origin/main into cursor/ban-react-class-components-ca2a

Resolve the modify/delete conflict on .oxlintrc.json: main moved shared
lint rules into @sanity/plugin-kit/oxlint (#1565). Accept the deletion
and port the Component/PureComponent/createRef bans into
packages/@sanity/plugin-kit/src/oxlint.ts alongside the existing
createElement/forwardRef restrictions.

Also rewrite OrderableDocumentList to use React 19 ref-as-prop instead
of forwardRef so it complies with main's forwardRef ban, and update
skill docs that still pointed at .oxlintrc.json.

ci: request workflows permission for typegen app token (#935)

Co-authored-by: copilot-swe-agent[bot] <[email protected]>
Co-authored-by: Cody Olsen <[email protected]>
feat(@sanity/plugin-kit)!: remove Studio v2 upgrade and compatibility tooling (#1588)

* feat(@sanity/plugin-kit)!: remove Studio v2 upgrade and compatibility tooling

Drop verify-studio and all verify-package checks that existed to migrate from
or stay compatible with Sanity Studio v2 (incompatible-plugin shim, part:/config:
imports, merged @sanity/* packages, sanity.json parts validation). Package
verification now focuses on current plugin-kit conventions.

* chore(@sanity/plugin-kit): drop unused json5/knip ignores and refresh snapshots

Remove the json5 dependency and readJson5File helper that only served v2
sanity.json parsing, prune stale eslint knip ignoreDependencies, and update
verify-package snapshots after removing v2-upgrade checks.

* fix(@sanity/plugin-kit): address review feedback on path validation and studio detection

Drop the dist-hardcoded path existence check in getPackage entirely: compiled
entry points legitimately don't exist pre-build regardless of outDir, and
verify-package's esmOnly check already bans main/module fields. Also detect
sanity.cli.(js|ts) in findStudioConfig so init/inject refuse cli-config-only
studio directories too.

---------

Co-authored-by: Cursor Agent <[email protected]>
chore(deps): dedupe pnpm-lock.yaml (#1669)

Co-authored-by: squiggler-app[bot] <265501495+squiggler-app[bot]@users.noreply.github.com>
fix(sanity-plugin-markdown): declare @sanity/client as a regular dependency (#1667)

* fix(sanity-plugin-markdown): declare @sanity/client and rxjs as regular deps

Move @sanity/client and rxjs out of inlinedDependencies into dependencies
so they are resolved at runtime instead of bundled into the package.

* chore: update lockfile for sanity-plugin-markdown deps

* fix(sanity-plugin-markdown): declare @sanity/client as a regular dependency

Move @sanity/client from devDependencies to dependencies so tsdown
externalizes it instead of writing it (and transitive rxjs) to
inlinedDependencies. rxjs is not imported by the plugin and is not
needed as a direct dependency once client is externalized.

---------

Co-authored-by: Cursor Agent <[email protected]>
fix(typegen): 🤖 ✨ (#1666)

Co-authored-by: squiggler-app[bot] <265501495+squiggler-app[bot]@users.noreply.github.com>
fix(deps): update dependency @tanstack/react-virtual to ^3.14.7 (#1664)

* fix(deps): update dependency @tanstack/react-virtual to ^3.14.7

* chore(deps): changeset for dependency update

---------

Co-authored-by: squiggler-app[bot] <265501495+squiggler-app[bot]@users.noreply.github.com>
chore(deps): dedupe pnpm-lock.yaml (#1665)

Co-authored-by: squiggler-app[bot] <265501495+squiggler-app[bot]@users.noreply.github.com>
Version Packages (#1663)

Co-authored-by: squiggler-app[bot] <265501495+squiggler-app[bot]@users.noreply.github.com>
feat: add @sanity/block-insert-picker (#1601)

* feat(block-insert-picker): add @sanity/block-insert-picker

Slash-command block-insert picker and markdown input rules for Portable
Text fields, extracted from the sanity-io/www-sanity-io docs Studio
(apps/studio/src/plugins/pte, PR #4003 there parameterized the docs
knowledge out in preparation).

Public API: blockInsertPicker({arrayTypeName, items?, inputRules?,
onItemInserted?}) returning the component for an array type's
components.portableText.plugins, plus the codeFenceRule/blockquoteRule
config factories and fence-language helpers. Items derive from the host
array's members with metadata-driven curation (triggers, keywords,
grouping, rank); inserts resolve member initial values, land as one
undo step, and open for editing.

Ported against sanity 6.5.0 / @portabletext/editor 7.10.7 /
@portabletext/plugin-input-rule 6.0.4 (peer editor ^7.10.7 to match the
input-rule plugin's requirement; editor stays a peer, never bundled).
112 tests ported with the source; test-studio example wired under
Home > Block Insert Picker.

* refactor(block-insert-picker): zero-config detection and reviewed v1 API

Applies the pre-publication design review (DESIGN-REVIEW.md in the
pte-plugin-extraction research):

- blockInsertPicker() now works with zero config: the containing array and
  its members are detected via PortableTextMemberSchemaTypesContext
  (quarantined in memberSchemaTypes.ts); arrayTypeName becomes an escape
  hatch. Peer narrowed to sanity ^5.6 (the context export's floor).
- Text blocks are excluded by resolved type chain, fixing aliased
  {name, type: 'block'} members being offered as object inserts (picker and
  input-rule allow-list both).
- New options: labels (translatable chrome), shortcut, openOnInsert
  (global + per-item), presets (well-known-type triggers/keywords),
  filter (receives the bare query in both modes), resolveItems middleware
  with custom item actions (query cleanup included); onItemInserted renamed
  onInsert, events carry mode/query.
- Presentation matches core: icon fallback chain, upperFirst titles, and
  curated descriptions now win over schema descriptions.
- New exports: BlockInsertPicker, MarkdownInputRules, derivePickerItems,
  filterPickerItems, standardBlockPresets, wellKnownInputRules, PickerMode.
- Input rules resolve blockType through member type chains, so
  wellKnownInputRules serves aliased code-input members.
- Review fixes: host-callback errors surface as toasts instead of unhandled
  rejections; anchor-deletion mid-insert shows a warning toast; positional
  row indices tolerate duplicate item ids; replacement-pattern-safe label
  formatting; screen-reader position announcement is translatable.

Deliberate deviations from the review doc: presets carry no description
(avoids a three-way precedence chain).

* test(block-insert-picker): lift cold-start timeout on first picker popover test

* docs: add @sanity/block-insert-picker to Current Plugins table

* chore: trigger pkg.pr.new preview publish

* refactor(block-insert-picker): address Copilot review comments

- insertPickerItem: spread the resolved initialValue before `_key`/`_type`
  so the generated key and target type always win. Sanity's initial-value
  resolver sets `_type` on object values; the values coincide by
  construction here, but ordering keeps the insert correct regardless.
- openBlockOnInsert: correct the stale rationale comment. The package
  enables the React Compiler, so the old "not active" claim was wrong; the
  point is the empty-dep useCallback keeps a stable reference for consumers.
- blockInsertPicker: fix the comment naming the wrong mouse events. Rows
  select via onClick and highlight via onMouseMove (not onMouseDown /
  onMouseEnter), passing an explicit idx to avoid a not-yet-flushed
  highlightedIndex.

* fix(block-insert-picker): case-insensitive fence language table match; trim README install

- normalizeFenceLanguage now compares the typed token to language-table
  `value`/`aliases` case-insensitively, returning the canonical value
  (casing preserved). Previously a table with mixed-case entries never
  matched and the mapped filename was skipped (Cursor Bugbot, low severity).
  Built-in rules and code-input's lowercase table were unaffected; this
  hardens host-supplied custom tables. Adds a mixed-case-table test.
- README: collapse the three install commands to a single `npm install`
  (no --save), matching @sanity/code-input's install section.

* Potential fix for pull request finding

Co-authored-by: Copilot Autofix powered by AI <[email protected]>

* fix(block-insert-picker): restore bracket notation for process.env access

The Copilot Autofix commit rewrote `process.env['NODE_ENV']` to dot
notation, which fails this repo's type-aware lint: `noPropertyAccessFrom
IndexSignature` (TS4111) requires index-signature properties like
`process.env.NODE_ENV` to be accessed with brackets. Restore the bracket
form so `pnpm lint` passes.

* fix(block-insert-picker): address Cursor Bugbot findings

- inputRules: preserve case for unknown fence tokens (`return token`, not the
  lowercased form) so the "pass through as typed" contract holds — e.g.
  `GraphQL` stays `GraphQL` for wellKnownInputRules' no-table path.
- inputRules: spread host `buildValue` before `_key`/`_type` in createInsertRule
  so a stray `_key`/`_type` can't hijack block identity (mirrors the
  insertPickerItem fix).
- blockInsertPicker: close the picker when a select bails on an in-flight
  insert, so a menu reopened during a slow initial-value resolution can't get
  stuck swallowing Enter.
- blockInsertPicker: key sections on the namespaced raw group instead of the
  display label, so a curated group named like `ungroupedSection` can't collide
  with the null-group section's React key.

Two other Bugbot findings need no change: the text-block exclusion
(`isTextBlockMember`) already mirrors Sanity's own `findBlockType` (walk the
type chain to root, match `name === 'block'`), and the initial-value spread in
insertPickerItem was already reordered in an earlier commit.

---------

Co-authored-by: Copilot Autofix powered by AI <[email protected]>
feat(code-input): export SUPPORTED_LANGUAGES and LANGUAGE_ALIASES (#1600)

Downstream tooling that resolves external language tokens (markdown
fence infostrings, paste/import pipelines) onto code field values has
had to vendor this list and hand-sync it with the Language selector.
Exporting the canonical table (and the alias map) removes the drift.
Version Packages (#1662)

Co-authored-by: squiggler-app[bot] <265501495+squiggler-app[bot]@users.noreply.github.com>
chore(changeset): note npm provenance re-enabled for sanity-plugin-utils (#1661)

Co-authored-by: Cursor Agent <[email protected]>
Version Packages (#1660)

Co-authored-by: squiggler-app[bot] <265501495+squiggler-app[bot]@users.noreply.github.com>
chore(changeset): bump google maps input for css dts cleanup (#1659)

Co-authored-by: copilot-swe-agent[bot] <[email protected]>
chore(deps): dedupe pnpm-lock.yaml (#1658)

Co-authored-by: squiggler-app[bot] <265501495+squiggler-app[bot]@users.noreply.github.com>
fix(deps): update dependency @sanity/client to ^7.24.0 (#1581)

Co-authored-by: squiggler-app[bot] <265501495+squiggler-app[bot]@users.noreply.github.com>
chore(deps): lock file maintenance (#1657)

Co-authored-by: squiggler-app[bot] <265501495+squiggler-app[bot]@users.noreply.github.com>
Version Packages (#1640)

Co-authored-by: squiggler-app[bot] <265501495+squiggler-app[bot]@users.noreply.github.com>
chore(test-studio): use turbo transit for build cache invalidation (#1655)

Replace empty dependsOn with a transit node so sanity build still skips
workspace package builds while Turbo invalidates when dependency source changes.

Co-authored-by: Cursor Agent <[email protected]>
chore(deps): bump pkg-utils, tsdown-config, and vanilla-extract plugins (#1656)

Update catalog entries to @sanity/pkg-utils ^11.0.13,
@sanity/tsdown-config ^0.19.6, and @sanity/vanilla-extract-vite-plugin
^0.2.5. Exclude [email protected] (and platform packages) from
minimumReleaseAge so pnpm update/dedupe can resolve the new transitive
deps, and align turbo/generators tsdown with the workspace catalog.

Co-authored-by: Cursor Agent <[email protected]>
chore(deps): dedupe pnpm-lock.yaml (#1653)

Co-authored-by: squiggler-app[bot] <265501495+squiggler-app[bot]@users.noreply.github.com>
chore: remove @typescript/native-preview (use TypeScript 7 native tsc) (#1650)

* chore: remove @typescript/native-preview now that TypeScript 7 ships native tsc

TypeScript 7.0.2 includes the native compiler as `tsc`, so the preview package
and its `tsgo` binary are no longer needed. VS Code settings now point the
TypeScript 7 extension at the workspace `typescript` install.

* Update settings.json

* Update settings.json

---------

Co-authored-by: Cursor Agent <[email protected]>
chore(deps): lock file maintenance (#1651)

Co-authored-by: squiggler-app[bot] <265501495+squiggler-app[bot]@users.noreply.github.com>
chore(test-studio): stop waiting on dependency builds (#1652)

Co-authored-by: copilot-swe-agent[bot] <[email protected]>
Delete dependencies-GH-1642.md
Migrate to date-fns v4 and official @date-fns/tz, matching sanity core (#1569)
chore(deps): dedupe pnpm-lock.yaml (#1649)

Co-authored-by: squiggler-app[bot] <265501495+squiggler-app[bot]@users.noreply.github.com>
fix(deps): update dependency @sanity/pkg-utils to ^11.0.12 (#1647)

Co-authored-by: squiggler-app[bot] <265501495+squiggler-app[bot]@users.noreply.github.com>
chore(deps): dedupe pnpm-lock.yaml (#1645)

Co-authored-by: squiggler-app[bot] <265501495+squiggler-app[bot]@users.noreply.github.com>
chore(deps): update renovatebot/github-action action to v46.1.20 (#1646)

Co-authored-by: squiggler-app[bot] <265501495+squiggler-app[bot]@users.noreply.github.com>
chore(deps): bump @sanity/vanilla-extract-vite-plugin to ^0.2.4

Drop the Bynder Styles.css.js Vite workaround from the test studio —
0.2.4 keeps the compiler alive under unstable_bundledDev, so plain
*.css.js modules no longer hang processVanillaFile.

fix(deps): update dependency tsdown to ^0.22.12 (#1642)
fix(deps): update dependency styled-components to ^6.4.4 (#1566)
chore(deps): dedupe pnpm-lock.yaml (#1643)

Co-authored-by: squiggler-app[bot] <265501495+squiggler-app[bot]@users.noreply.github.com>
fix(deps): update dependency react-virtuoso to ^4.18.11 (#1641)

* fix(deps): update dependency react-virtuoso to ^4.18.11

* chore(deps): changeset for dependency update

---------

Co-authored-by: squiggler-app[bot] <265501495+squiggler-app[bot]@users.noreply.github.com>
docs(agents): catalog shared deps + enable pnpm catalogMode prefer (#1374)
chore(deps): dedupe pnpm-lock.yaml (#1637)

Co-authored-by: squiggler-app[bot] <265501495+squiggler-app[bot]@users.noreply.github.com>
fix(deps): update dependency react-hook-form to ^7.82.0 (#1639)

* fix(deps): update dependency react-hook-form to ^7.82.0

* chore(deps): changeset for dependency update

---------

Co-authored-by: squiggler-app[bot] <265501495+squiggler-app[bot]@users.noreply.github.com>
chore(deps): update davelosert/vitest-coverage-report-action action to v2.12.2 (#1638)

Co-authored-by: squiggler-app[bot] <265501495+squiggler-app[bot]@users.noreply.github.com>
Version Packages (#1612)

Co-authored-by: squiggler-app[bot] <265501495+squiggler-app[bot]@users.noreply.github.com>
ci: shard Vitest suite (#1584)

* ci: shard vitest suite

* ci: report sharded test coverage

* chore: ignore Vitest blob reports

* ci: require test shards to succeed in aggregate check

---------

Co-authored-by: Cursor Agent <[email protected]>
Co-authored-by: copilot-swe-agent[bot] <[email protected]>
fix(typegen): 🤖 ✨ (#1634)

Co-authored-by: squiggler-app[bot] <265501495+squiggler-app[bot]@users.noreply.github.com>
chore(format): 🤖 ✨ (#1633)

Co-authored-by: squiggler-app[bot] <265501495+squiggler-app[bot]@users.noreply.github.com>
chore(deps): dedupe pnpm-lock.yaml (#1632)

Co-authored-by: squiggler-app[bot] <265501495+squiggler-app[bot]@users.noreply.github.com>
fix(deps): update dependency tsdown to ^0.22.9 (#1622)

* fix(deps): update dependency tsdown to ^0.22.9

* chore(deps): changeset for dependency update

---------

Co-authored-by: squiggler-app[bot] <265501495+squiggler-app[bot]@users.noreply.github.com>
Co-authored-by: copilot-swe-agent[bot] <[email protected]>
fix(assist): keep field group selection while editing AI Assist inputs (#1467)

* fix(assist): keep field group selection while editing AI Assist inputs

The AI Assist instruction inspector renders a nested document form that
reused the host document's pane router. Sanity's document pane mirrors the
router `path` param to programmatic focus, and focus drives the selected
field group. Navigating the instruction form therefore overwrote the host
`path`, re-focused the host document, and reset its field group tab.

Isolate the nested pane's `path` navigation in local state while still
forwarding other params (e.g. selected instruction) to the host router.

Co-authored-by: Cody Olsen <[email protected]>

* test(test-studio): add AI Assist + field groups fixture (SAPP-3970)

Adds an 'AI Assist: Field groups' document type with Content/SEO field
group tabs so the field-group-reset behavior with AI Assist can be
manually reproduced and verified.

Co-authored-by: Cody Olsen <[email protected]>

* refactor(assist): use react-fast-compare for param equality

Addresses PR review: the hand-rolled shallowEqualParams returned a false
positive when two param objects had the same key count but different keys
whose values were undefined (e.g. {foo: undefined} vs {bar: undefined}),
because it never verified the key existed on the other object. Reuse
react-fast-compare (already a plugin dependency, used in _lib/useListeningQuery)
instead of a custom check, and add a regression test.

Co-authored-by: Cody Olsen <[email protected]>

---------

Co-authored-by: Cursor Agent <[email protected]>
Co-authored-by: Cody Olsen <[email protected]>
fix(bynder-input): restore Compact View modal visibility in Studio v6 (#1553)

* fix(bynder-input): restore Compact View modal visibility in Studio v6

Upgrade @bynder/compact-view from 5.1.2 to 5.4.0 and patch its shadow DOM
integration for Sanity Studio v6:

- disableCSSOMInjection on StyleSheetManager so styled-components injects
  CSS into the shadow root instead of leaving empty style tags
- position:fixed + z-index on CompactViewContainer so the portal host
  stacks above Studio UI layers
- widen React peer dependency range to support React 19

Also render BynderModalLayout outside the button flex row.

* fix: unmount bynder layout when not open

* fix(bynder-input): take @bynder/compact-view 5.4.0 as a regular pinned dependency

Implements review feedback on the patch-based approach:
- drop the pnpm patch and the bundling of @bynder/compact-view; pin it
  as a regular dependency instead
- style the Compact View modal host from the plugin with a
  vanilla-extract globalStyle instead of patching Modal.js
- document how to allow the stale react peer range (npm
  --legacy-peer-deps, pnpm peerDependencyRules.allowedVersions) in the
  README, and use the pnpm rule for the workspace itself

* fix(bynder-input): survive Compact View shadow-root re-attachment and fix dev-studio css.js crash

- append a <slot> fallback to Compact View's shadow root while the modal
  is mounted: its attachShadow effect has no cleanup, so when React
  reconnects passive effects on the same host (StrictMode, Activity),
  the second attachShadow() throws and Compact View falls back to the
  host's light DOM, which the slotless shadow tree kept invisible
- work around @bynder/compact-view's Styles.css.js (a plain JS module
  whose name matches vanilla-extract's cssFileFilter and deadlocks the
  compiler under sanity dev's bundled dev mode) in the test studio
- move the container globalStyle to BynderInput.css.ts so it loads with
  the input instead of the lazy modal chunk

* chore(bynder-input): bump changeset to major

Taking @bynder/compact-view as an unbundled regular dependency with a
stale react peer range can fail npm installs without --legacy-peer-deps,
so it's a breaking change.

* chore(bynder-input): widen @bynder/compact-view to ^5.4.0

The exact pin was only needed while the package was patched and
inlined; as a plain regular dependency a caret range is fine.

* chore: merge main and regenerate lockfile

The PR lockfile was generated against a main where
@sanity/vanilla-extract-vite-plugin resolved to 0.2.1; main has since
bumped it to 0.2.2, and the git-merged lockfile on the PR merge ref was
internally inconsistent (ERR_PNPM_LOCKFILE_MISSING_DEPENDENCY in CI).

---------

Co-authored-by: Cursor Agent <[email protected]>
Co-authored-by: Cody Olsen <[email protected]>
fix(deps): update dependency @sanity/tsdown-config to ^0.19.3 (#1598)

* fix(deps): update dependency @sanity/tsdown-config to ^0.19.3

* chore: dedupe lockfile and add release-age excludes for tsdown transitive deps

---------

Co-authored-by: squiggler-app[bot] <265501495+squiggler-app[bot]@users.noreply.github.com>
Co-authored-by: Cody Olsen <[email protected]>
Co-authored-by: copilot-swe-agent[bot] <[email protected]>
chore(deps): dedupe pnpm-lock.yaml (#1631)

Co-authored-by: squiggler-app[bot] <265501495+squiggler-app[bot]@users.noreply.github.com>
fix(deps): update dependency @sanity/vanilla-extract-vite-plugin to ^0.2.2 (#1614)

* fix(deps): update dependency @sanity/vanilla-extract-vite-plugin to ^0.2.2

* chore(deps): exempt yuku-parser from minimum release age for dedupe

---------

Co-authored-by: squiggler-app[bot] <265501495+squiggler-app[bot]@users.noreply.github.com>
Co-authored-by: copilot-swe-agent[bot] <[email protected]>
Move turbo/**/*.hbs oxfmt ignore to root config (#1604)

The turbo generator template ignore is monorepo-specific and should
not ship in the shared @sanity/plugin-kit/oxfmt preset consumed by
standalone plugins.

Co-authored-by: Cursor Agent <[email protected]>
fix(deps): update dependency @sanity/pkg-utils to ^11.0.10 (#1630)

Co-authored-by: squiggler-app[bot] <265501495+squiggler-app[bot]@users.noreply.github.com>
docs(assist): fix README markdown formatting and document English-only image descriptions (#1628)

* fix(@sanity/assist): respect document language when generating image descriptions

Pass the configured translate.document.languageField as languagePath to the
generate-caption task (both the automatic generation triggered on image
change, and the manual 'Generate image description' field action), so
generated alt text/captions are written in the document's language instead
of always defaulting to English.

Fixes https://github.com/sanity-io/plugins/issues/1606

* docs(@sanity/assist): clarify caption generation language limitation

Testing against the live AI Assist backend confirms that the generate-caption
task currently always writes descriptions in English, regardless of the
languagePath sent from the client (this matches Sanity's own documentation,
which states the automatic image description feature is English-only today
and recommends the Transform Agent Action's image-description operation as a
workaround). Update the changeset and README to accurately describe the
change as forward-compatible plumbing rather than a full fix, and point users
at the documented workaround for non-English alt text today.

* refactor(assist): resolve languagePath inside useGenerateCaption

Compute languagePath from config.translate.document.languageField once
inside useGenerateCaption itself (via useAiAssistanceConfig), instead of
requiring every call site to read the config and thread it through as an
argument. This removes the duplicated config lookup from both
ImageContextProvider and generateCaptionsActions, and matches the cleaner
approach used in sanity-io/plugins#1627.

Also documents in translate/types.ts JSDoc that languageField is reused
for image description generation.

* docs(assist): fix README markdown formatting and add known limitations

The README relied on markdown block elements (headings, lists, code
fences, images) interrupting paragraphs without blank lines between
them. GitHub tolerates this, but stricter renderers (e.g. the plugin
listing on sanity.io) join everything into unreadable walls of text
with literal '### Heading' and '- list item' fragments inline.

- Separate all block elements with blank lines throughout
- Add a 'Known limitations' section documenting that image descriptions
  are always generated in English regardless of
  translate.document.languageField (backend limitation, see #1606),
  with Transform Agent Action and translate-after workarounds
- Fix broken links: empty-href heading, HOW-TO-USE pointing at the old
  standalone repo layout, LICENSE pointing at a non-existent file
- Fix broken bold markup in the 'Enabling the AI Assist API' steps and
  the useExampleFieldActions TOC anchor
- Add missing TOC entries (Known limitations, Caveats, Third party
  sub-processors)

Also reverts the languagePath client plumbing from this branch: the
backend ignores it, so the plugin change had no effect. This PR is now
docs-only.

---------

Co-authored-by: Cursor Agent <[email protected]>
chore(deps): dedupe pnpm-lock.yaml (#1619)

Co-authored-by: squiggler-app[bot] <265501495+squiggler-app[bot]@users.noreply.github.com>
chore(deps): update pnpm to v11.13.1 (#1624)

Co-authored-by: squiggler-app[bot] <265501495+squiggler-app[bot]@users.noreply.github.com>
fix(deps): update dependency @sanity/pkg-utils to ^11.0.9 (#1625)

Co-authored-by: squiggler-app[bot] <265501495+squiggler-app[bot]@users.noreply.github.com>
fix(deps): update turbo monorepo to v2.10.5 (#1626)

Co-authored-by: squiggler-app[bot] <265501495+squiggler-app[bot]@users.noreply.github.com>
chore(deps): update dependency knip to ^6.27.0

chore: fix css

fix(deps): update dependency @codemirror/lang-markdown to ^6.5.1 (#1610)

* fix(deps): update dependency @codemirror/lang-markdown to ^6.5.1

* chore(deps): changeset for dependency update

---------

Co-authored-by: squiggler-app[bot] <265501495+squiggler-app[bot]@users.noreply.github.com>
fix(deps): update dependency oxfmt to ^0.59.0 (#1599)

* fix(deps): update dependency oxfmt to ^0.59.0

* chore(deps): changeset for dependency update

---------

Co-authored-by: squiggler-app[bot] <265501495+squiggler-app[bot]@users.noreply.github.com>
fix(deps): update dependency @sanity/pkg-utils to ^11.0.7 (#1594)

Co-authored-by: squiggler-app[bot] <265501495+squiggler-app[bot]@users.noreply.github.com>
Fix TypeGen workflow failure by pinning `@sanity/vanilla-extract-vite-plugin` to 0.1.1 (#1616)

* Initial plan

* fix(typegen): pin vanilla-extract vite plugin to 0.1.1

---------

Co-authored-by: copilot-swe-agent[bot] <[email protected]>
chore(deps): bump tsdown and vanilla-extract

fix(deps): update dependency oxlint to ^1.74.0 (#1603)

* fix(deps): update dependency oxlint to ^1.74.0

* chore(deps): changeset for dependency update

---------

Co-authored-by: squiggler-app[bot] <265501495+squiggler-app[bot]@users.noreply.github.com>
chore(deps): update zizmorcore/zizmor-action action to v0.6.0 (#1609)

Co-authored-by: squiggler-app[bot] <265501495+squiggler-app[bot]@users.noreply.github.com>
chore(deps): lock file maintenance (#1611)

Co-authored-by: squiggler-app[bot] <265501495+squiggler-app[bot]@users.noreply.github.com>
chore(deps): replace @vanilla-extract/vite-plugin with @sanity/vanilla-extract-vite-plugin (#1590)

* chore(deps): replace @vanilla-extract/vite-plugin with @sanity/vanilla-extract-vite-plugin

Swap the vanilla-extract Vite plugin used by the test studio and
@sanity/google-maps-input's vitest config to @sanity/vanilla-extract-vite-plugin,
a Vite 8 rewrite with plugin hook filters and a caching compiler on Vite's
Environment API / ModuleRunner instead of the legacy vite-node. Bump tsdown to
^0.22.8 and @sanity/tsdown-config to ^0.17.0 alongside it.

google-maps-input's vitest.config.ts also needed a small stub plugin: its
dist/bundle.css.js Node/SSR shim matches the upstream cssFileFilter by
filename alone (*.css.js), which made the new plugin try to evaluate it as
real .css.ts source and throw ReferenceError: require is not defined via
ModuleRunner (vite-node tolerated this). The stub renames that module id away
from a .css.js shape before vanillaExtractPlugin() ever sees it.

Documented both the plugin swap and the shim workaround in the
sanity-plugin-best-practices skill and the new-plugin generator templates so
future vanilla-extract plugins get this for free.

* chore(deps): bump @sanity/tsdown-config to ^0.17.1, drop bundle.css.js shim workaround

@sanity/tsdown-config 0.17.1 (via @sanity/vanilla-extract-tsdown-plugin
0.2.1 / @sanity/vanilla-extract-rolldown-plugin 0.1.1) renames the
vanilla-extract Node/SSR compat shim from bundle.css.js to bundle-css.js so
it no longer matches vanillaExtractPlugin()'s cssFileFilter by filename
alone (sanity-io/pkg-utils#3043). That was the root cause of the
require-is-not-defined regression worked around in the previous commit, so
the stub-bundle-css-js-shim plugin is no longer needed.

Rebuilding @sanity/google-maps-input picked up the renamed dist/bundle-css.js
shim and auto-rewrote its package.json ./bundle.css export map (adding a
types condition too). Reverted the vitest.config.ts workaround and the
matching documentation/generator-template changes back to the plain
vanillaExtractPlugin() registration, now noted as a historical gotcha
instead of a live workaround.

* docs(test-studio): note that unstable_bundledDev breaks .css.ts HMR

Document the trade-off discovered while testing the vanilla-extract Vite
plugin swap: with unstable_bundledDev: true, editing a .css.ts file doesn't
hot-reload (a sanity dev restart is required), while plain .ts/.tsx HMR is
unaffected. Comment out the line for a session if fast CSS HMR is needed
(confirmed sub-10ms with it unset).

* docs(styling skill): trim verbose vanilla-extract setup section

The ./bundle.css export map (and its dist/bundle-css.js shim/types) is
generated and kept in sync automatically by @sanity/tsdown-config's
vanillaExtract option, so it doesn't need explaining or a JSON example to
copy. Simplify the vitest.config.ts guidance to why (@sanity/vanilla-extract-
vite-plugin is faster than upstream) without the ModuleRunner/hook-filter/
sanity-build internals. Drop the sanity.cli.ts snippet, since the test studio
already registers the plugin globally in this repo and doesn't need to be
touched per-plugin. Drop the bundle.css.js->bundle-css.js rename history
note, a one-off gotcha now fixed upstream rather than evergreen guidance.

* chore(deps): bump @sanity/tsdown-config to ^0.17.2, @sanity/vanilla-extract-vite-plugin to ^0.1.1

Both are latest-available patch releases (0.17.1 -> 0.17.2 pulls in
@sanity/vanilla-extract-tsdown-plugin 0.2.2 / @sanity/vanilla-extract-
rolldown-plugin 0.1.2; 0.1.0 -> 0.1.1 is the vite plugin's own patch).
tsdown stays at ^0.22.8, already the latest. Benchmarked in the next commit's
message to confirm this doesn't regress anything.

---------

Co-authored-by: Cursor Agent <[email protected]>
Co-authored-by: copilot-swe-agent[bot] <[email protected]>
fix(deps): update dependency @changesets/cli to ^2.31.1 (#1607)

* fix(deps): update dependency @changesets/cli to ^2.31.1

* chore(deps): exempt @changesets/cli and refresh lockfile with dedupe

---------

Co-authored-by: squiggler-app[bot] <265501495+squiggler-app[bot]@users.noreply.github.com>
Co-authored-by: copilot-swe-agent[bot] <[email protected]>
chore(deps): update dependency @vitejs/devtools to ^0.4.1 (#1593)

Co-authored-by: squiggler-app[bot] <265501495+squiggler-app[bot]@users.noreply.github.com>
Version Packages (#1591)
chore(deps): dedupe pnpm-lock.yaml (#1602)

Co-authored-by: squiggler-app[bot] <265501495+squiggler-app[bot]@users.noreply.github.com>
fix(media): use useMediaIndex so Tags panel works on wide viewports (#1592)

The home-rolled useBreakpointIndex returned -1 above 1920px, which
force-hid the Tags panel. Switch Items to @sanity/ui's useMediaIndex,
which includes a min-width catch-all and matches Controls breakpoints.

Co-authored-by: Cursor Agent <[email protected]>
fix(deps): update dependency xstate to ^5.32.5 (#1597)

* fix(deps): update dependency xstate to ^5.32.5

* chore(deps): changeset for dependency update

---------

Co-authored-by: squiggler-app[bot] <265501495+squiggler-app[bot]@users.noreply.github.com>
fix(deps): update dependency tsdown to ^0.22.8 (#1596)

* fix(deps): update dependency tsdown to ^0.22.8

* chore(deps): changeset for dependency update

---------

Co-authored-by: squiggler-app[bot] <265501495+squiggler-app[bot]@users.noreply.github.com>
fix(deps): update dependency @sanity/tsconfig to ^2.2.1 (#1595)

Co-authored-by: squiggler-app[bot] <265501495+squiggler-app[bot]@users.noreply.github.com>
chore(deps): update actions/setup-node action to v7 (#1586)

Co-authored-by: squiggler-app[bot] <265501495+squiggler-app[bot]@users.noreply.github.com>
chore(deps): update pnpm to v11 (#1579)

Co-authored-by: squiggler-app[bot] <265501495+squiggler-app[bot]@users.noreply.github.com>
fix(deps): update dependency nanoid to v6 (#1577)

* fix(deps): update dependency nanoid to v6

* chore(deps): changeset for dependency update

---------

Co-authored-by: squiggler-app[bot] <265501495+squiggler-app[bot]@users.noreply.github.com>
fix(deps): update dependency groq to ^6.5.0 (#1523)

* fix(deps): update dependency groq to ^6.5.0

* chore(deps): changeset for dependency update

---------

Co-authored-by: squiggler-app[bot] <265501495+squiggler-app[bot]@users.noreply.github.com>
Migrate plugin-kit and the monorepo from prettier/eslint to oxfmt/oxlint (#1565)

* Migrate plugin-kit and monorepo formatting from prettier to oxfmt

- Ship the monorepo's oxfmt settings as a @sanity/plugin-kit/oxfmt preset
- Re-export the preset from the root oxfmt.config.ts (replaces .oxfmtrc.json)
- init/inject scaffold oxfmt (config, devDependency, format script) instead
  of prettier; --no-prettier is now --no-oxfmt
- verify-package: replace the duplicate-prettier-config check with a
  monorepo-aware oxfmt check that expects the config at the workspace root
  (or next to package.json outside monorepos) and flags leftover prettier
  configuration with migration instructions

* Migrate plugin-kit and monorepo linting from eslint to oxlint, drop tsc

- Ship the monorepo's oxlint settings …
stipsan added a commit that referenced this pull request Sep 29, 2026
…2048)

<!-- CURSOR_AGENT_PR_BODY_BEGIN -->
Puts this repo on the same pnpm version and settings as
[sanity-io/ui](https://github.com/sanity-io/ui) `main`: `packageManager`
`[email protected]`, ui's pnpm settings in `pnpm-workspace.yaml`, ui's CI
setup action (`pnpm/setup@v3`) but with its store cache off, and a
lockfile regenerated with pnpm 12.6.0. The `Dedupe lockfile` workflow
stays, with the one change pnpm 12 needs.

## Builds on #2044, supersedes #2043, #2044 and #1131

- **#2044** (pnpm 12.6.0 + `autoDedupe` + Vercel CLI bump) is the base.
Its commits are cherry-picked with `-x`. #2044's interim
`installCommand` workaround in `dev/e2e-studio/vercel.json`, which it
later removed, is left out, so this PR doesn't touch any Vercel config.
#2044 left CI on `pnpm/action-setup` + `actions/setup-node`; this PR
switches to ui's action.
- **#2043** (Renovate's plain `packageManager` bump) fails `E2E /
deploy-preview`, because `vercel@57` can't parse pnpm 12's lockfile (see
below).
- **#1131** (an early `pnpm/setup@v1` attempt) is covered by the CI
change here.
- **#2018** (lockfile regenerated from scratch) is not superseded: it
re-resolves every dependency, which is out of this PR's scope.

## Changes

| | Before | After |
| --- | --- | --- |
| `packageManager` | `[email protected]` | `[email protected]` (as in ui) |
| `pnpm-workspace.yaml` | | `autoDedupe: true` and
`strictPeerDependencies: false` (as in ui) |
| `.github/actions/setup` | `pnpm/action-setup@v6` +
`actions/setup-node@v7` + `pnpm install` | ui's action (`pnpm/setup@v3`,
`runtime: node@lts`) with `cache: false`, where ui has `cache: true` |
| `.github/workflows/pnpm-if-needed.yml` (`Dedupe lockfile`) | runs
`pnpm dedupe` once | kept; runs `pnpm dedupe` twice |
| `vercel` (root devDependency) | `^57.0.0` | `^60.1.3` |

- **Lockfile:** main's lockfile after #2039, plus this PR's changes as
pnpm 12.6.0 re-applied them. Those changes are the
`packageManagerDependencies` block, the `[email protected]` tree with the
optional-peer suffixes it brings, and `autoDedupe`'s dedupes: the same
`zod` and `gaxios` ones as the pending #2052, plus the peer toggle
described below. No other versions change, and `[email protected]`
stays put. #2039's refresh had already removed the three duplicates the
first revision collapsed.
- **Vercel CLI:** pnpm 12 writes the lockfile as two YAML documents.
`vercel@57`'s bundled `@vercel/build-utils` reads only the first, falls
back to npm, and fails on `workspace:*`, which is #2043's failure.
`58.9.5` is the first CLI that parses it, and every release from
`58.7.0` on ships without npm provenance (still published from GitHub
Actions OIDC). So `trustPolicy: no-downgrade` needs the exact versions
pnpm reports as `ERR_PNPM_TRUST_DOWNGRADE` in `trustPolicyExclude`:
`[email protected]` and 31 `@vercel/*` packages.
- **CI setup:** `pnpm/setup` reads `packageManager`, installs Node LTS,
runs `pnpm install`, and caches pnpm's lockfile-verification verdict
across jobs, which saves the ~28s supply-chain check. `ailf-eval.yml`
passes `runtime: node@lts` instead of `node-version: lts/*`.
`release.yml` keeps `pnpm/action-setup` + `actions/setup-node`, as in
ui.
- **Store cache off, unlike ui** (commit `bddef7a4`). With `cache:
true`, `pnpm/setup` uploads a new ~645 MiB store entry after every job,
even for an unchanged lockfile, because its keys include the run id.
That was 12 entries (7.7 GB) per push here, evicting the Playwright
browser caches the e2e jobs reuse. With it off, test shards spend 16–19s
in setup and nothing afterwards, against 19–23s plus 9–12s of upload
with it on. ui keeps `cache: true` and has the same issue. Revert
`bddef7a4` to match ui.
- **`Dedupe lockfile` workflow kept, adapted for pnpm 12** (commit
`a7e1057f`). On the current lockfile, pnpm 12.6.0's `pnpm dedupe` isn't
idempotent. Each run toggles `@vitejs/devtools` and
`oxc-transform-react` in the peer suffixes of
`plugins/@sanity/debug-preview-url-secret-plugin`'s `sanity` and
`@sanity/tsdown-config` entries, without changing any version. Run once,
as before, the workflow would open a toggle-only PR after every lockfile
change on `main`, and each automerged dedupe PR would trigger the next.
A second run undoes the toggle and keeps real dedupes. An earlier commit
in this branch deleted the workflow; `82810b5e` reverts that.
- **Docs:** AGENTS.md, CONTRIBUTING.md and README.md now require pnpm
v12. AGENTS.md and `e2e/README.md` explain the two-document lockfile and
the Vercel CLI floor; per Copilot's review of #2044, the trust-policy
wording only lists versions that pnpm reports as downgrades. AGENTS.md
also says not to commit lockfile diffs that only flip the peer toggle.

No changeset: no published package's manifest or runtime code changes,
as with the pnpm 11 bump in #1579.

## Merge with main

`main` gained one commit after this branch started: Renovate's lock file
maintenance (#2039, `cb68d65e`). It conflicted only in `pnpm-lock.yaml`.
`main` is merged in rather than rebased, so nothing was force-pushed.
The resolution takes main's lockfile and lets pnpm 12.6.0 re-apply this
PR's changes; `pnpm-workspace.yaml` needed no further changes. #2039's
25 source files merged cleanly.

## What Cody needs to do

- **Add the "🤖 bot" label.** The agent's label tool can't edit PRs in
this repo.
- **Close #2044 and #1131** when this lands. Renovate autocloses #2043.
The pending dedupe PR #2052 is redundant, since its four lines are
already in this lockfile. It merges cleanly with this PR in either
order.
- **Vercel:** nothing to set up. No project, env var or `vercel.json`
changes; only the root `vercel` CLI devDependency moves.
- **Secrets and ruleset:** no new secrets, and the required checks
(`lint`, `build`, `test`, Socket) keep their names.

## Open questions

1. **Vercel CLI trust exclusions.** This is #2044's call, which
overrides the reason #1890 was closed: 32 exact versions without
provenance in `trustPolicyExclude`. Every future `vercel` bump has to
add its own versions, so Renovate's `vercel` PRs will fail their
artifact update until someone does. The alternative is e2e previews that
can't build on pnpm 12.
2. **`strictPeerDependencies: false`** matches ui but is already pnpm's
default; ui carried it over from an old `.npmrc`. Keep it for parity, or
drop it?
3. **Store cache in ui.** ui has the same per-job uploads. Turn its
store cache off too?

## Known pnpm 12.6.0 issue

The peer toggle also shows up locally. A fresh `pnpm install`, or the
implicit install pnpm runs before scripts when `node_modules` looks
stale, flips those two suffixes in `pnpm-lock.yaml`. Frozen installs,
which CI uses, never do. The lockfile before #2039 didn't toggle; main's
refreshed resolutions exposed it, and it happens with `autoDedupe` off
too.

## Not in this PR

- vitest 5, oxfmt (#2047), oxlint (#2049) and the tsdown setup are
sibling PRs. Whichever lands later merges `main` and regenerates the
lockfile.
- ui's `packageExtensions` entry for `@testing-library/jest-dom` belongs
to its vitest 5 setup.
- ui's root `engines.node: ">=22.13"` and macOS test job are Node and
test-matrix changes, not pnpm. Plugins' tooling needs Node ≥ 22.18
anyway (AGENTS.md).
- Plugins-specific pnpm settings that ui doesn't have (`trustPolicy`,
`dedupePeers`, `dedupeDirectDeps`, `publicHoistPattern`) stay.

## Verification

- **Lockfile:** regenerated on `main` at `cb68d65e` by pnpm 12.6.0 run
directly on Node 24.21.0. A cold `pnpm install --frozen-lockfile` passes
the supply-chain check (2,615 entries), and without the Vercel
exclusions it fails with `ERR_PNPM_TRUST_DOWNGRADE`.
- **Dedupe workflow:** from the committed lockfile, from its toggled
state, and from the committed lockfile with #2052's duplicates put back,
two `CI=true pnpm dedupe --config.ignore-scripts=true` runs give,
respectively, no change, no change, and exactly #2052's dedupes. A
single run gives the toggle every time.
- **Local checks on the merged tree:** `pnpm lint`, `pnpm knip`, `pnpm
build` (52/52 tasks) and `pnpm test run` (224 files, 1,391 tests) pass.
- **CI:** everything passes on `bddef7a4`, including `deploy-preview`
(Vercel CLI 60.1.3 detects the lockfile and installs with pnpm 12.6.0)
and e2e on Chromium and Firefox. CI on `a7e1057f`, which only touches
the dedupe workflow and AGENTS.md, is running.
- **zizmor:** `zizmor .github` reports the same findings as on `main` at
every severity.

<!-- CURSOR_AGENT_PR_BODY_END -->

<div><a
href="https://cursor.com/agents/bc-0c45b56b-fd33-55f7-b22c-89bde73748e4?cursor_ref=pr_footer&cursor_cta=open_in_web"><picture><source
media="(prefers-color-scheme: dark)"
srcset="https://cursor.com/assets/images/open-in-web-dark.png"><source
media="(prefers-color-scheme: light)"
srcset="https://cursor.com/assets/images/open-in-web-light.png"><img
alt="Open in Web" width="114" height="28"
src="https://cursor.com/assets/images/open-in-web-dark.png"></picture></a>&nbsp;<a
href="https://cursor.com/background-agent?bcId=bc-0c45b56b-fd33-55f7-b22c-89bde73748e4&cursor_ref=pr_footer&cursor_cta=open_in_cursor"><picture><source
media="(prefers-color-scheme: dark)"
srcset="https://cursor.com/assets/images/open-in-cursor-dark.png"><source
media="(prefers-color-scheme: light)"
srcset="https://cursor.com/assets/images/open-in-cursor-light.png"><img
alt="Open in Cursor" width="131" height="28"
src="https://cursor.com/assets/images/open-in-cursor-dark.png"></picture></a>&nbsp;</div>

---------

Co-authored-by: Cursor Agent <[email protected]>

This branch was successfully deployed

1 active deployment
Preview — 81e23b3c Deployed Jul 15, 2026 by vercel[bot]
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant