Skip to content

feat(release): unify the TypeScript, Rust and pnpr release flows on pnpm's native versioning - #12949

Merged
zkochan merged 14 commits into
mainfrom
release-process
Jul 13, 2026
Merged

zkochan merged 14 commits into
mainfrom
release-process

Conversation

@zkochan

@zkochan zkochan commented Jul 11, 2026 •

Copy link
Copy Markdown
Member

Summary

Closes #12947.

Merges the three release flows — the TypeScript CLI, the Rust CLI + @pnpm/napi, and pnpr — into a single flow driven by pnpm's native workspace versioning (#12953), replacing the @changesets/cli dependency. Because the native engine keys package identity on the workspace directory, the repo now models the reality directly: one published pnpm package on two lines.

  1. The Rust CLI wrapper is pnpm, on an alpha lane. The wrapper at pnpm/npm/pnpm publishes as pnpm (the v12 line) alongside the TypeScript CLI at pnpm11/pnpm (v11) — two workspace projects sharing the published name, disambiguated by directory. Release config lives under the new versioning key of pnpm-workspace.yaml:

    • versioning.lanes puts the Rust CLI, @pnpm/napi, and @pnpm/pnpr on the alpha lane, so each pnpm version -r that consumes one of their intents cuts an X.Y.Z-alpha.N prerelease (published under next), while the TypeScript CLI keeps releasing stable on the main lane. This replaces the hand-rolled continuePrereleases step.
    • versioning.fixed keeps the Rust CLI and @pnpm/napi at one shared version.
    • versioning.ignore freezes @pnpm/logger — it is a workspace package consumed through its published ^1100.0.0 catalog range as a catalog: peer (kept that way so Jest loads the published CJS-bole logger; see the bole note in the catalog), which the engine would otherwise reject as an internal range that must use workspace:. It is bumped out of band.
  2. The native ledger replaces .changeset-released. pnpm version -r records consumed intents in the committed .changeset/ledger.yaml (per-package, directory-keyed), which is what keeps cherry-picks and merge-backs between release branches safe. The whole .changeset-released/ directory and the ledger/prerelease machinery in bump.ts are gone — bump.ts is now just pnpm version -r followed by syncRustVersions (which mirrors the bumped wrapper versions into PNPM_VERSION in defaults.rs and the pnpr crate's Cargo.toml/Cargo.lock, so the release builds report the committed versions).

  3. --filter=pnpm is qualified by directory. With two workspace projects named pnpm, a bare name filter is ambiguous, so every build/release script that meant "the TypeScript CLI" now uses pnpm{pnpm11/pnpm} (name ∩ directory) — in the root scripts, the meta-updater's generated test scripts, bundle-deps.ts, artifacts/exe, and the CI workflows. The meta-updater excludes the Rust wrappers by directory (not name, which now collides), and changesets targeting the TypeScript CLI reference it as ./pnpm11/pnpm — the one additive extension to the changesets format, documented in AGENTS.md.

  4. One release.yml releases everything. A plan job reads the committed versions, asks npm which are unpublished, and gates each product's jobs; the Rust jobs verify the committed versions and build --locked. All products publish via trusted publishing (no more pnpm stage publish/approve). @changesets/cli, .changeset/config.json, and the standalone pacquet-release-to-npm.yml / pnpr-release-to-npm.yml workflows are removed.

Note on the lockfile (#12958)

pnpm-lock.yaml is committed regenerated from scratch. An incremental pnpm install --lockfile-only after the @changesets/cli removal tripped a pacquet incremental-resolver bug (#12958) that rewrote @yarnpkg/[email protected]([email protected]) — a peer-context variant the CLI depends on — to an empty {}, which then broke the CLI bundle build. A from-scratch resolve produces the correct result; the bug is filed separately and is not caused by this PR.

Operational prerequisite (npm settings, before the first unified release)

Re-point the trusted-publisher bindings to release.yml (environment release) for: @pnpm/exe.<target> ×8, @pnpm/napi + @pnpm/napi.<target> ×8 (currently bound to pacquet-release-to-npm.yml), and @pnpm/pnpr + @pnpm/pnpr.<target> ×8 (currently bound to pnpr-release-to-npm.yml). pnpm and @pnpm/exe are already bound to release.yml.

Verified

Rehearsed with pacquet 12.0.0-alpha.9 (the pinned release package manager, which ships change/lane/version -r):

  • pnpm change status / pnpm version -r produce, from the pending intents: pnpm 11.12.0 → 11.13.0 (TypeScript, main lane) and pnpm 12.0.0-alpha.8 → 12.0.0-alpha.9 (Rust, alpha lane) with @pnpm/napi in lockstep — no ambiguity or duplicate-identity errors. The ledger keys both by directory ([email protected] → pnpm11/pnpm, [email protected] → pnpm/npm/pnpm); the Rust-CLI intent is retained on the lane; a second version -r is a clean no-op.
  • pnpm bump's syncRustVersions mirrors alpha.9 into defaults.rs. 30/30 bump.ts tests pass.
  • pnpm install (from scratch), --frozen-lockfile, compile-only, and lint (spellcheck + meta-updater --test + eslint) all pass; the two pnpm-named projects coexist and @pnpm/jest-config's pnpm: workspace:* resolves to the stable v11.

Squash Commit Body

Merge the three release flows (TypeScript, Rust CLI + @pnpm/napi, pnpr)
into a single flow driven by pnpm's native workspace versioning
(pnpm/pnpm#12953), dropping the @changesets/cli dependency (Closes
pnpm/pnpm#12947).

The native engine keys package identity on the workspace directory, so
the Rust CLI wrapper is named pnpm (the v12 line at pnpm/npm/pnpm) and
shares the published name with the TypeScript CLI at pnpm11/pnpm.
Release configuration moves from .changeset/config.json to the
versioning key of pnpm-workspace.yaml: versioning.lanes puts the Rust
CLI, @pnpm/napi, and @pnpm/pnpr on an alpha lane (X.Y.Z-alpha.N
prereleases published under next) while the TypeScript CLI releases
stable on the main lane; versioning.fixed keeps the Rust CLI and
@pnpm/napi at one shared version; versioning.ignore freezes
@pnpm/logger, which is consumed as a catalog: peer the engine would
otherwise reject as an internal range.

Lanes replace the hand-rolled prerelease continuation, and the
committed .changeset/ledger.yaml replaces the .changeset-released
directory as the cherry-pick-safe record of consumed intents. bump.ts
drops both and is now just pnpm version -r plus syncRustVersions, which
mirrors the bumped wrapper versions into defaults.rs and the pnpr crate
version.

Because two workspace projects are named pnpm, name-based --filter=pnpm
is qualified by directory (pnpm{pnpm11/pnpm}) across the build and
release scripts, the meta-updater excludes the Rust wrappers by
directory, and changesets targeting the TypeScript CLI reference it as
./pnpm11/pnpm. release.yml's plan job gates per-product publish jobs on
which committed versions are unpublished; everything publishes via
trusted publishing. @changesets/cli, .changeset/config.json, and the
standalone pacquet/pnpr release workflows are removed; their npm
trusted-publisher bindings must be re-pointed at release.yml before the
first unified release.

pnpm-lock.yaml is regenerated from scratch: an incremental
--lockfile-only resolve after the @changesets/cli removal hit a pacquet
incremental-resolver bug (pnpm/pnpm#12958) that emptied a peer-context
snapshot the CLI depends on and broke the bundle build. A from-scratch
resolve is correct; the bug is filed separately.

Checklist

  • Added a changeset (the TypeScript feature changesets already exist; this PR is release infrastructure). Release-infra changes to scripts, workflows, and config do not publish a package.
  • Added or updated tests (bump.ts tests rewritten for the native flow).
  • Updated the documentation (AGENTS.md changesets guidance rewritten for pnpm change / directory refs / lanes).

Written by an agent (Claude Code, claude-opus-4-8[1m]).

Summary by CodeRabbit

  • New Features

    • Added the team command for managing teams and memberships, with OTP, parseable, and JSON output support.
    • Improved native package handling for pnpm and pnpr across supported platforms.
  • Bug Fixes

    • Corrected option parsing after create, exec, and test subcommands.
    • Prevented installation failures when platform-specific binaries are unavailable during monorepo checkout.
  • Release Updates

    • Updated pnpm to 12.0.0-alpha.9 and pnpr to 0.1.0-alpha.0.
    • Unified release handling for CLI, native packages, and Docker images.

Copilot AI review requested due to automatic review settings July 11, 2026 23:09

Copilot AI left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Copilot was unable to review this pull request because the user who requested the review has reached their quota limit.

Comment thread .github/workflows/release.yml Fixed
Comment thread .github/workflows/release.yml Fixed
@coderabbitai

coderabbitai Bot commented Jul 11, 2026 •

Copy link
Copy Markdown
Contributor

Review Change Stack

Note

Reviews paused

It looks like this branch is under active development. To avoid overwhelming you with review comments due to an influx of new commits, CodeRabbit has automatically paused this review. You can configure this behavior by changing the reviews.auto_review.auto_pause_after_reviewed_commits setting.

Use the following commands to manage reviews:

  • @coderabbitai resume to resume automatic reviews.
  • @coderabbitai review to trigger a single review.

Use the checkboxes below for quick actions:

  • ▶️ Resume reviews
  • 🔍 Trigger review
📝 Walkthrough

Walkthrough

The PR integrates Rust wrapper packages into workspace versioning, adds checkout-safe install guards, synchronizes released versions into Rust sources, and replaces manual product release workflows with a unified tag-driven pipeline for pnpm, pacquet, and pnpr.

Changes

Unified native release

Layer / File(s) Summary
Workspace wrappers and checkout guards
.changeset/*, AGENTS.md, pnpm-workspace.yaml, .meta-updater/*, pnpm/npm/*, pnpr/npm/*, package.json
Rust wrapper packages are added to workspace and Changesets configuration, private manifests are converted to publishable manifests, and install scripts skip native setup when platform dependencies are absent.
Changeset bump and Rust version synchronization
pnpm11/__utils__/scripts/src/bump.ts, pnpm11/__utils__/scripts/test/bump.ts, pnpm/crates/config/src/defaults.rs, pnpr/crates/pnpr/Cargo.toml, package.json
Release versioning now runs recursively, mirrors wrapper versions into Rust sources, and tests repository discovery and targeted version replacement.
Release planning and product publishing
.github/workflows/create-release-pr.yml, .github/workflows/release.yml, .github/workflows/*-release-to-npm.yml, pnpr/docker/README.md, .github/workflows/ecosystem-e2e.yml
Release PR summaries derive per-product version changes, while tag-triggered jobs build and publish Rust and pnpr artifacts, GitHub releases, and Docker images; manual release workflows are removed.

Estimated code review effort: 5 (Critical) | ~90+ minutes

Possibly related issues

Possibly related PRs

  • pnpm/pnpm#12907 — Directly overlaps the removed pacquet manual release workflow.
  • pnpm/pnpm#12619 — Directly overlaps the removed pnpr release workflow and replacement Docker job.
  • pnpm/pnpm#12798 — Directly overlaps generated signing-key changesets in create-release-pr.yml.

Suggested labels: product: pnpm@11, product: pacquet, product: pnpr

Suggested reviewers: copilot, qodo-free-for-open-source-projects

✨ Finishing Touches
🧪 Generate unit tests (beta)
  • Create PR with unit tests
  • Commit unit tests in branch release-process

Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out.

❤️ Share

Comment @coderabbitai help to get the list of available commands.

@qodo-code-review

Copy link
Copy Markdown

PR Summary by Qodo

Unify TypeScript, Rust, and pnpr releases under a single Changesets flow

✨ Enhancement ⚙️ Configuration changes 🧪 Tests 📝 Documentation 🕐 40+ Minutes

Grey Divider

AI Description

• Make Rust wrapper packages Changesets-managed workspace packages with committed versions.
• Add a plan-driven unified release workflow that conditionally publishes TS, Rust, and pnpr.
• Extend pnpm bump to continue prereleases and sync Rust source versions from wrappers.
Diagram

graph TD
  A["create-release-pr.yml"] --> B["pnpm bump"] --> C[("Committed versions")] --> D["release.yml plan"]
  D --> E["TS publish"] --> H{{"npm + GitHub + GHCR"}}
  D --> F["Rust publish"] --> H
  D --> G["pnpr publish + Docker"] --> H

  subgraph Legend
    direction LR
    _wf["Workflow/job"] ~~~ _ver[("Version state")] ~~~ _ext{{"External"}}
  end
Loading
High-Level Assessment

The following are alternative approaches to this PR:

1. Keep separate workflows, share scripts
  • ➕ Lower immediate risk; fewer moving parts change at once
  • ➕ Avoids a central plan job becoming a single point of failure
  • ➖ Still duplicates logic across workflows
  • ➖ Trusted-publisher bindings remain fragmented; harder operationally
  • ➖ Doesn’t fully solve cross-product coordination/resume semantics
2. Use Changesets “pre mode” for Rust prereleases
  • ➕ Leverages a built-in prerelease mechanism instead of custom continuation logic
  • ➖ Pre mode is workspace-global; conflicts with stable TS releases from same branch
  • ➖ Operational complexity switching modes and ensuring consistent state
3. Dedicated release orchestrator script (single CLI entrypoint)
  • ➕ Version planning and publishing logic can be tested locally more easily
  • ➕ Less YAML logic; clearer code flow
  • ➖ More bespoke code to maintain
  • ➖ Still needs workflow wiring and per-product credentials/trusted publishing

Recommendation: Current approach is the best trade-off: it centralizes publish decisions in release.yml (plan + conditional jobs), keeps versions committed and reproducible, and removes the Rust staging/approval workflow in favor of the existing tag-driven governance. The custom prerelease continuation/sync in pnpm bump is justified given Changesets pre mode constraints in a mixed stable+prerelease monorepo.

Files changed (21) +1005 / -19

Enhancement (4) +148 / -5
generate-packages.mjsStrip 'private' when generating publishable @pnpm/napi artifacts +2/-0

Strip 'private' when generating publishable @pnpm/napi artifacts

• Ensures the generated publishable wrapper manifest removes the in-repo 'private' flag after optionalDependencies are patched in. Keeps the committed wrapper safe for workspace installs while producing a valid published package.

pnpm/npm/napi/scripts/generate-packages.mjs

generate-packages.mjsRewrite pacquet manifest into publishable pnpm wrapper +11/-4

Rewrite pacquet manifest into publishable pnpm wrapper

• Updates the generator to rewrite the committed 'pacquet' wrapper into a publishable 'pnpm' manifest by changing the name, removing 'private', and adding per-target optionalDependencies. Keeps '@pnpm/exe' wrapper generation consistent with the rewritten wrapper.

pnpm/npm/pnpm/scripts/generate-packages.mjs

bump.tsExtend pnpm bump to continue prereleases and sync Rust versions +133/-1

Extend pnpm bump to continue prereleases and sync Rust versions

• Fixes repo root detection by locating the nearest '.changeset' directory (restoring correct ledger behavior after the pnpm11 restructure). Adds prerelease continuation for Rust wrapper versions and syncs wrapper versions into Rust sources (defaults.rs, pnpr Cargo.toml, Cargo.lock) after 'changeset version'.

pnpm11/utils/scripts/src/bump.ts

generate-packages.mjsStrip 'private' when generating publishable pnpr wrapper artifacts +2/-0

Strip 'private' when generating publishable pnpr wrapper artifacts

• Removes the committed 'private' field during manifest generation so the published wrapper is public. Keeps version/optionalDependencies propagation intact for per-platform package generation.

pnpr/npm/pnpr/scripts/generate-packages.mjs

Bug fix (3) +43 / -0
index.tsExclude Rust wrapper manifests from meta-updater normalization +13/-0

Exclude Rust wrapper manifests from meta-updater normalization

• Adds a Rust-wrapper allowlist ('pacquet', '@pnpm/napi', '@pnpm/pnpr') so meta-updater rules do not rewrite their versions/deps. Prevents version normalization from clobbering wrapper versions that are now Changesets-managed.

.meta-updater/src/index.ts

install.jsNo-op wrapper preinstall in monorepo checkouts +15/-0

No-op wrapper preinstall in monorepo checkouts

• Adds a guard to skip preinstall relinking when the committed manifest has no optionalDependencies (i.e., the dev/workspace checkout). Prevents failures when platform packages are not generated locally.

pnpm/npm/pnpm/install.js

install.jsNo-op pnpr wrapper preinstall in monorepo checkouts +15/-0

No-op pnpr wrapper preinstall in monorepo checkouts

• Adds a guard to skip preinstall relinking when optionalDependencies are absent in the committed manifest (workspace checkout). Prevents install-time failures before platform packages are generated.

pnpr/npm/pnpr/install.js

Tests (1) +142 / -0
bump.tsAdd tests for repo root detection, prerelease continuation, and Rust sync +142/-0

Add tests for repo root detection, prerelease continuation, and Rust sync

• Adds coverage for 'findRepoRoot', prerelease snapshot/continuation behavior, and Rust version syncing into source files. Includes negative tests to ensure missing version sites fail fast.

pnpm11/utils/scripts/test/bump.ts

Documentation (4) +26 / -3
rust-wrapper-dev-checkout-guard.mdAdd changeset for Rust wrapper dev-checkout install guard +5/-0

Add changeset for Rust wrapper dev-checkout install guard

• Adds a patch changeset for 'pacquet' documenting that the wrapper install script no-ops in a monorepo checkout. This becomes part of release notes when the wrapper is versioned by Changesets.

.changeset/rust-wrapper-dev-checkout-guard.md

AGENTS.mdDocument Changesets usage for Rust products +11/-1

Document Changesets usage for Rust products

• Removes the TypeScript-only framing and adds guidance for creating changesets that target Rust wrapper packages. Clarifies that 'pnpm' in changesets refers to the TypeScript CLI and should not be used for Rust-only changes.

AGENTS.md

README.mdPoint pnpr Docker release docs at unified release workflow +2/-2

Point pnpr Docker release docs at unified release workflow

• Updates documentation to reference the 'docker-pnpr' job in the unified 'release.yml' workflow. Keeps the verification description aligned with the new pipeline.

pnpr/docker/README.md

CHANGELOG.mdAdd initial pnpr wrapper changelog for Changesets releases +8/-0

Add initial pnpr wrapper changelog for Changesets releases

• Introduces a hand-written changelog starting at '0.1.0' describing the switch to Changesets versioning and the dev-checkout install behavior. Establishes a real semver history for the wrapper package.

pnpr/npm/pnpr/CHANGELOG.md

Other (9) +646 / -11
config.jsonAdd a Changesets fixed group for pacquet and @pnpm/napi +1/-0

Add a Changesets fixed group for pacquet and @pnpm/napi

• Configures Changesets to version 'pacquet' and '@pnpm/napi' in lockstep via a fixed group. This matches the existing release coupling between the Rust CLI wrapper and the NAPI addon wrapper.

.changeset/config.json

create-release-pr.ymlCompose multi-product release PR titles/bodies +27/-3

Compose multi-product release PR titles/bodies

• Changes the release PR workflow to build a commit/PR subject that lists only products whose versions changed vs the target branch. Updates the PR body to reflect the unified flow and that tagging a released product triggers publishing.

.github/workflows/create-release-pr.yml

release.ymlUnify releases under one workflow with a registry-aware plan job +603/-1

Unify releases under one workflow with a registry-aware plan job

• Introduces a 'plan' job that reads committed versions and queries npm to determine which products need publishing, gating downstream jobs. Adds Rust and pnpr build/publish pipelines (including pnpr Docker publishing) and switches Rust publishing to trusted publishing with reproducible '--locked' builds and version verification.

.github/workflows/release.yml

pnpm-workspace.yamlAdd Rust wrapper packages to the workspace +3/-0

Add Rust wrapper packages to the workspace

• Adds 'pnpm/npm/pnpm', 'pnpm/npm/napi', and 'pnpr/npm/pnpr' as workspace packages. Enables Changesets and workspace tooling to treat wrapper manifests as first-class packages with committed versions.

pnpm-workspace.yaml

defaults.rsTreat PNPM_VERSION as synced-from-wrapper source of truth +4/-4

Treat PNPM_VERSION as synced-from-wrapper source of truth

• Updates the embedded Rust CLI version constant and documents that 'pnpm bump' keeps it aligned with the npm wrapper version. Release workflow now verifies the constant matches instead of patching it during publishing.

pnpm/crates/config/src/defaults.rs

package.jsonMake @pnpm/napi a private, versioned workspace wrapper +2/-1

Make @pnpm/napi a private, versioned workspace wrapper

• Marks the wrapper as 'private' in-repo and sets a committed prerelease version. This allows Changesets to bump it while ensuring workspace recursive publishes don’t ship placeholder artifacts.

pnpm/npm/napi/package.json

package.jsonRename in-repo Rust wrapper to pacquet and commit version +3/-1

Rename in-repo Rust wrapper to pacquet and commit version

• Renames the workspace package to 'pacquet', marks it 'private', and commits its prerelease version. Avoids name collisions with the TypeScript 'pnpm' package in name-keyed tooling while keeping published name rewriting as a release-time concern.

pnpm/npm/pnpm/package.json

Cargo.tomlBump pnpr crate version to 0.1.0 semver line +1/-1

Bump pnpr crate version to 0.1.0 semver line

• Moves the pnpr crate off the old 0.0.x line to '0.1.0', aligning with the new Changesets-driven wrapper versioning. Supports reproducible builds where the committed crate version is verified by the release workflow.

pnpr/crates/pnpr/Cargo.toml

package.jsonMake @pnpm/pnpr a private, versioned workspace wrapper +2/-0

Make @pnpm/pnpr a private, versioned workspace wrapper

• Marks the wrapper 'private' in-repo and commits version '0.1.0'. Enables Changesets to manage its version while avoiding accidental publishing from workspace recursive release steps.

pnpr/npm/pnpr/package.json

@github-actions

github-actions Bot commented Jul 11, 2026 •

Copy link
Copy Markdown
Contributor

Micro-Benchmark Results

Linux

group                          main                                   pr
-----                          ----                                   --
lockfile/parse_pnpm_lock       1.00     21.1±0.74ms    17.8 MB/sec    1.01     21.2±1.98ms    17.7 MB/sec
packument/parse                1.00     80.9±2.21µs   819.5 MB/sec    1.00     81.3±0.94µs   815.8 MB/sec
tarball/download_dependency    1.06      4.6±0.18ms   945.5 KB/sec    1.00      4.3±0.11ms  1003.5 KB/sec

@qodo-code-review

qodo-code-review Bot commented Jul 11, 2026 •

Copy link
Copy Markdown

Code Review by Qodo

🐞 Bugs (4) 📘 Rule violations (1) 📎 Requirement gaps (1) 📜 Skill insights (0)

Context used
✅ Compliance rules (platform): 18 rules

Grey Divider


Action required

1. Ambiguous pnpm filter ✗ Dismissed 🐞 Bug ≡ Correctness
Description
.github/workflows/ecosystem-e2e.yml runs pnpm --filter 'pnpm' run compile, but the workspace
contains two projects named pnpm, so the selector can target both and cause unintended
multi-package execution (and potentially a missing-script failure on the Rust wrapper). This should
be directory-qualified to unambiguously build the TypeScript CLI bundle.
Code

.github/workflows/ecosystem-e2e.yml[50]

+          pnpm --filter 'pnpm' run compile
Evidence
The workflow uses a name-only filter, and the repo now has two workspace packages with the same
name: pnpm, so the selector can match both.

.github/workflows/ecosystem-e2e.yml[47-51]
pnpm11/pnpm/package.json[1-4]
pnpm/npm/pnpm/package.json[1-6]

Agent prompt
The issue below was found during a code review. Follow the provided context and guidance below and implement a solution

## Issue description
The ecosystem E2E workflow selects packages by `--filter 'pnpm'`, but there are now two workspace projects named `pnpm` (TS CLI and Rust wrapper). This makes the compile step ambiguous and may run against the wrong package(s).

## Issue Context
Both `pnpm11/pnpm` and `pnpm/npm/pnpm` declare `"name": "pnpm"`. The workflow step is intended to build the TypeScript CLI bundle under `pnpm11/pnpm/dist`.

## Fix Focus Areas
- .github/workflows/ecosystem-e2e.yml[50-50]

## Suggested fix
Change the command to a directory-qualified filter, e.g.:
- `pnpm --filter 'pnpm{pnpm11/pnpm}' run compile`, or
- `pnpm --filter './pnpm11/pnpm' run compile`

ⓘ Copy this prompt and use it to remediate the issue with your preferred AI generation tools


2. replaceInFile() calls missing trailing comma ✗ Dismissed 📘 Rule violation ⚙ Maintainability
Description
Multi-line function calls in both bump.ts and its Jest test omit a trailing comma after the last
argument, violating the required trailing-comma style for multi-line TypeScript constructs. This
affects multi-line replaceInFile(...) usages in the script and fs.writeFileSync(...) usages in
the test.
Code

pnpm11/utils/scripts/src/bump.ts[R40-55]

+  replaceInFile(
+    path.join(repoRoot, 'pnpm/crates/config/src/defaults.rs'),
+    /(pub const PNPM_VERSION: &str = )"[^"]*"/,
+    `$1"${pnpmVersion}"`
+  )
+  const pnprVersion = readManifestVersion(path.join(repoRoot, PNPR_WRAPPER_MANIFEST))
+  replaceInFile(
+    path.join(repoRoot, 'pnpr/crates/pnpr/Cargo.toml'),
+    /^(version\s*=\s*)"[^"]*"/m,
+    `$1"${pnprVersion}"`
+  )
+  replaceInFile(
+    path.join(repoRoot, 'Cargo.lock'),
+    /(\[\[package\]\]\nname = "pnpr"\nversion = )"[^"]*"/,
+    `$1"${pnprVersion}"`
+  )
Evidence
The checklist mandates trailing commas in multi-line TypeScript argument lists. In bump.ts, the
replaceInFile( calls span multiple lines but the final argument line (e.g., the template string
replacement) is not followed by a comma before the closing ), and in the Jest test the
fs.writeFileSync( invocations are similarly multi-line with the last argument lacking a trailing
comma before ), demonstrating the style violation in both locations.

Rule 713434: Require trailing commas in TypeScript collections and multi-line constructs
pnpm11/utils/scripts/src/bump.ts[40-55]
pnpm11/utils/scripts/test/bump.ts[44-56]

Agent prompt
The issue below was found during a code review. Follow the provided context and guidance below and implement a solution

## Issue description
Multi-line argument lists in TypeScript must include a trailing comma after the last argument to match the project's style and keep diffs stable.

## Issue Context
Several `replaceInFile(` invocations in `bump.ts` span multiple lines but the last argument does not end with a comma, and the test setup contains multi-line `fs.writeFileSync(` calls that also omit the trailing comma after the final argument.

## Fix Focus Areas
- pnpm11/__utils__/scripts/src/bump.ts[40-55]
- pnpm11/__utils__/scripts/test/bump.ts[44-56]

ⓘ Copy this prompt and use it to remediate the issue with your preferred AI generation tools


3. Historical prerelease comment added ✓ Resolved 📘 Rule violation ⚙ Maintainability
Description
A new comment references a historical/retired versioning scheme (retired date-based 0.0.0-<date>).
This violates the rule requiring comments to describe current behavior rather than historical
implementations.
Code

pnpm11/utils/scripts/src/bump.ts[R140-143]

+// Matches `<X.Y.Z>-<tag>.<N>` prerelease versions with a named tag (`alpha`,
+// `beta`, `rc.`..). Deliberately does not match all-numeric suffixes like the
+// retired date-based `0.0.0-<date>` scheme — those have no line to continue.
+const PRERELEASE_VERSION_RE = /^(\d+\.\d+\.\d+)-([A-Z][0-9A-Z-]*)\.(\d+)$/i
Evidence
The compliance rule forbids comments that reference prior or retired implementations. The added
comment explicitly calls out a "retired date-based 0.0.0-<date> scheme", which is historical
framing.

Rule 772199: Comments must describe current behavior, not historical implementations
pnpm11/utils/scripts/src/bump.ts[140-143]

Agent prompt
The issue below was found during a code review. Follow the provided context and guidance below and implement a solution

## Issue description
A comment was added that explains behavior in terms of a historical/retired scheme, which is disallowed.

## Issue Context
The intent (not matching all-numeric prerelease suffixes) is useful, but it should be phrased as a statement about what the current regex matches/doesn't match, without framing it as "retired" or referring to past implementations.

## Fix Focus Areas
- pnpm11/__utils__/scripts/src/bump.ts[140-143]

ⓘ Copy this prompt and use it to remediate the issue with your preferred AI generation tools


View more (1)
4. snapshotPrereleases declared before usage ✓ Resolved 📘 Rule violation ⚙ Maintainability
Description
In bump.ts, several exported function declarations appear before their first usage in the same
file. This violates the required declaration order and makes local navigation harder (even though
hoisting makes it work).
Code

pnpm11/utils/scripts/src/bump.ts[R145-157]

+export function snapshotPrereleases (
+  repoRoot: string,
+  manifestPaths: readonly string[]
+): Map<string, PrereleaseLine> {
+  const snapshot = new Map<string, PrereleaseLine>()
+  for (const manifestPath of manifestPaths) {
+    const version = readManifestVersion(path.join(repoRoot, manifestPath))
+    const match = PRERELEASE_VERSION_RE.exec(version)
+    if (match === null) continue
+    snapshot.set(manifestPath, { base: match[1], tag: match[2], n: Number(match[3]) })
+  }
+  return snapshot
+}
Evidence
The rule requires function declarations to appear after at least one call site in the same file.
snapshotPrereleases is declared at lines 145-157, but its first usage is later inside main() at
line 272 (and similar for continuePrereleases, syncRustVersions, and findRepoRoot).

Rule 713432: Declare TypeScript functions only after their first usage
pnpm11/utils/scripts/src/bump.ts[145-157]
pnpm11/utils/scripts/src/bump.ts[255-297]

Agent prompt
The issue below was found during a code review. Follow the provided context and guidance below and implement a solution

## Issue description
Compliance rule requires top-level/exported TypeScript function declarations to appear only after their first usage in the same file. In `pnpm11/__utils__/scripts/src/bump.ts`, `snapshotPrereleases` (and the other newly-added exported helpers) are declared before `main()` uses them.

## Issue Context
The file relies on hoisting, so runtime behavior is fine, but the repo's compliance rule requires the opposite ordering.

## Fix Focus Areas
- pnpm11/__utils__/scripts/src/bump.ts[145-241]
- pnpm11/__utils__/scripts/src/bump.ts[255-297]

ⓘ Copy this prompt and use it to remediate the issue with your preferred AI generation tools



Remediation recommended

5. Wrapper exclusion breaks after rename 🐞 Bug ☼ Reliability ⭐ New
Description
.meta-updater skips Rust wrapper packages only when manifest.name is
pacquet/@pnpm/napi/@pnpm/pnpr, but pnpm/npm/pnpm/scripts/generate-packages.mjs rewrites the
Rust wrapper’s name to pnpm for publishing. If pn update-manifests (which runs meta-updater) is
executed after package generation, the generated wrapper will be normalized as the TypeScript CLI
and have TypeScript-only fields injected (e.g. publishConfig.tag, repository.directory,
files/dist), corrupting the generated wrapper manifest.
Code

.meta-updater/src/index.ts[R81-83]

+        if (manifest.name && RUST_WRAPPER_PKGS.has(manifest.name)) {
+          return manifest
+        }
Evidence
The PR adds a name-based skip in meta-updater for Rust wrappers, but the Rust wrapper packaging
script mutates the wrapper’s name to pnpm. Meta-updater has a dedicated `manifest.name ===
'pnpm' branch that rewrites publishConfig/repo/files, and pn update-manifests` runs
meta-updater—so running generation then update-manifests will rewrite the generated wrapper manifest
incorrectly.

.meta-updater/src/index.ts[24-33]
.meta-updater/src/index.ts[77-86]
pnpm/npm/pnpm/scripts/generate-packages.mjs[87-101]
package.json[4-6]
package.json[21-26]
.meta-updater/src/index.ts[425-479]

Agent prompt
The issue below was found during a code review. Follow the provided context and guidance below and implement a solution

## Issue description
The meta-updater’s Rust-wrapper exclusion is based on `manifest.name`, but the Rust wrapper’s publish step rewrites `pacquet` to `pnpm`. After that rewrite, meta-updater will no longer recognize the wrapper as “Rust wrapper” and may apply TypeScript CLI normalization.

## Issue Context
- `pnpm/npm/pnpm/scripts/generate-packages.mjs` rewrites the wrapper manifest name to `pnpm` and deletes `private`.
- `pn update-manifests` runs meta-updater and is commonly invoked after other repo scripts.
- Meta-updater has explicit logic for `manifest.name === 'pnpm'` that sets TypeScript-CLI-specific fields.

## Fix Focus Areas
- .meta-updater/src/index.ts[24-33]
- .meta-updater/src/index.ts[77-86]

## Suggested fix
Change the exclusion condition to be directory- (or repo.directory-) based rather than name-based, so it remains correct before and after publish-time rewrites. For example, skip when `dir` is (or is under) `pnpm/npm/pnpm`, `pnpm/npm/napi`, or `pnpr/npm/pnpr` using the existing `isSubdir()` helper and `workspaceDir` to compute absolute paths; optionally keep the name-based set as a secondary check.

ⓘ Copy this prompt and use it to remediate the issue with your preferred AI generation tools


6. Changeset omits pnpm package ✓ Resolved 📘 Rule violation § Compliance
Description
Modified changeset front-matter no longer declares a bump for pnpm, using ./pnpm11/pnpm instead.
This violates the requirement to explicitly include pnpm in changeset package lists and may break
tooling that expects package-name keys.
Code

.changeset/escape-args-only-as-command.md[R1-4]

---
"@pnpm/cli.parse-cli-args": patch
-"pnpm": patch
+"./pnpm11/pnpm": patch
---
Evidence
The checklist requires each added/modified changeset to contain an explicit entry for the pnpm
package with a valid bump type. The shown changesets list ./pnpm11/pnpm instead, so pnpm is not
explicitly declared in the front-matter.

Rule 713436: Explicitly declare pnpm package and correct bump type in changesets
.changeset/escape-args-only-as-command.md[1-4]
.changeset/implement-team-command.md[1-4]
.changeset/native-monorepo-versioning-core.md[1-8]

Agent prompt
The issue below was found during a code review. Follow the provided context and guidance below and implement a solution

## Issue description
Changeset files were changed to use `./pnpm11/pnpm` instead of explicitly listing the `pnpm` package, conflicting with the compliance requirement that changesets include a `pnpm` entry.

## Issue Context
This PR appears to be introducing directory-qualified identifiers to disambiguate two workspace packages that publish as `pnpm`. If this is intentional and required, consider updating the changeset authoring/output so `pnpm` is still explicitly represented without ambiguity (e.g., by renaming the Rust wrapper workspace package and rewriting the published name at release time).

## Fix Focus Areas
- .changeset/escape-args-only-as-command.md[1-4]
- .changeset/implement-team-command.md[1-4]
- .changeset/native-monorepo-versioning-core.md[1-8]

ⓘ Copy this prompt and use it to remediate the issue with your preferred AI generation tools


7. Checkout blocked by permissions 🐞 Bug ☼ Reliability
Description
publish-rust and publish-pnpr set job-level permissions to only id-token: write but still run
actions/checkout, which can remove contents: read from GITHUB_TOKEN and cause checkout to fail
depending on repo/token defaults. This would block the new unified Rust/pnpr publish flow at the
start of those jobs.
Code

.github/workflows/release.yml[R340-353]

+  publish-rust:
+    name: Publish pnpm (Rust) and @pnpm/napi to npm
+    runs-on: ubuntu-latest
+    environment: release
+    permissions:
+      # Required for npm trusted publishing and provenance attestations via OIDC.
+      id-token: write
+    needs:
+      - plan
+      - build-rust
+    steps:
+      - uses: actions/checkout@9c091bb21b7c1c1d1991bb908d89e4e9dddfe3e0 # v7.0.0
+        with:
+          persist-credentials: false
Evidence
The publish jobs run actions/checkout but omit contents: read in their job-level permissions,
while the corresponding build jobs include contents: read, showing an inconsistency that can
prevent checkout when permissions are enforced strictly.

.github/workflows/release.yml[340-353]
.github/workflows/release.yml[560-574]
.github/workflows/release.yml[195-202]
.github/workflows/release.yml[448-454]

Agent prompt
The issue below was found during a code review. Follow the provided context and guidance below and implement a solution

### Issue description
The `publish-rust` and `publish-pnpr` jobs define job-level `permissions` with only `id-token: write` but still use `actions/checkout`. Because job permissions override defaults, these jobs may not have `contents: read`, and checkout (and any git/content reads) can fail.

### Issue Context
Other jobs in the same workflow that run `actions/checkout` explicitly include `contents: read`, indicating that this workflow expects to pin permissions per job.

### Fix Focus Areas
- .github/workflows/release.yml[340-354]
- .github/workflows/release.yml[560-574]

### Expected change
For both jobs, update:
```yaml
permissions:
 id-token: write
```
to:
```yaml
permissions:
 contents: read
 id-token: write
```

ⓘ Copy this prompt and use it to remediate the issue with your preferred AI generation tools


View more (3)
8. Unsafe rust artifact extraction 🐞 Bug ⛨ Security
Description
In .github/workflows/release.yml, the Rust and pnpr publish jobs extract downloaded .zip/.tar.gz
artifacts into the repo/workspace using unzip/tar without validating archive entry paths or
rejecting symlinks. If an artifact is malformed or tampered (even within the same workflow run), it
can overwrite workspace files and affect what gets packaged and published to npm.
Code

.github/workflows/release.yml[R358-374]

+      - name: Extract archives
+        # Every archive holds a binary named `pnpm` / `pnpm.exe` at its root
+        # (see the Archive Binary steps), so extracting them all into the same
+        # directory would clobber one target with another. Extract each into a
+        # scratch dir and move the binary out under its target-qualified name,
+        # which is what generate-packages.mjs reads.
+        run: |
+          for archive in pnpm-*.zip; do
+            rm -rf extract && mkdir extract
+            unzip -q "$archive" -d extract
+            mv extract/pnpm.exe "${archive%.zip}.exe"
+          done
+          for archive in pnpm-*.tar.gz; do
+            rm -rf extract && mkdir extract
+            tar -xzf "$archive" -C extract
+            mv extract/pnpm "${archive%.tar.gz}"
+          done
Evidence
The workflow’s publish steps for Rust and pnpr use unzip and tar to expand archives directly
into local/workspace directories without any checks on entry names/types, which leaves them
vulnerable to path traversal and symlink-based overwrite during extraction. This concern is
explicitly highlighted in REVIEW_GUIDE.md as a security focus area for attacker-controlled
archives (traversal/symlink risks), and the same workflow provides a contrasting hardened approach
in the docker-pnpr job (staging extraction, checksum verification, rejecting symlinks, and moving
only expected files), demonstrating that safer patterns are already in use elsewhere but not applied
to the npm publish paths.

.github/workflows/release.yml[358-374]
.github/workflows/release.yml[657-669]
REVIEW_GUIDE.md[30-55]
.github/workflows/release.yml[580-587]

Agent prompt
The issue below was found during a code review. Follow the provided context and guidance below and implement a solution

## Issue description
The `publish-rust` and `publish-pnpr` jobs extract release artifacts using `unzip`/`tar` into local/workspace directories without validating archive entry paths or rejecting symlinks, allowing a malformed/tampered archive to overwrite files in the repo workspace and potentially influence what gets packaged/published to npm.

## Issue Context
`REVIEW_GUIDE.md` explicitly calls out archive extraction, path traversal, and symlink handling as security review focus areas and treats tarballs/archives as potentially attacker-controlled inputs. This workflow already demonstrates a hardened extraction/staging pattern in `docker-pnpr` (extract into a throwaway staging directory, verify checksums, reject symlinks, and move only expected files), but the npm publish paths for Rust and pnpr do not currently apply those safety properties.

## Fix Focus Areas
- .github/workflows/release.yml[358-374]
- .github/workflows/release.yml[580-587]

ⓘ Copy this prompt and use it to remediate the issue with your preferred AI generation tools


9. Trusted publishing lacks prerequisite guard 📎 Requirement gap ☼ Reliability
Description
release.yml now publishes Rust and pnpr packages exclusively via npm trusted publishing (OIDC)
with no fallback or preflight guard. This violates the operational prerequisite to ensure publisher
bindings are repointed before relying on unified publishing, risking failed releases if bindings are
not yet updated.
Code

.github/workflows/release.yml[R331-401]

+  publish-rust:
+    name: Publish pnpm (Rust) and @pnpm/napi to npm
+    runs-on: ubuntu-latest
+    environment: release
+    permissions:
+      # Required for npm trusted publishing and provenance attestations via OIDC.
+      id-token: write
+    needs:
+      - plan
+      - build-rust
+    steps:
+      - uses: actions/checkout@9c091bb21b7c1c1d1991bb908d89e4e9dddfe3e0 # v7.0.0
+        with:
+          persist-credentials: false
+
+      - name: Install pnpm and Node
+        uses: pnpm/setup@77cf06832101b3ac8c65caaf76a21643936d07a4
+        with:
+          runtime: node@22
+          install: false
+
+      - name: Download Artifacts
+        uses: actions/download-artifact@3e5f45b2cfb9172054b4087a40e8e0b5a5461e7c # v8.0.1
+        with:
+          pattern: binaries-rust-*
+          merge-multiple: true
+
+      - name: Extract archives
+        # Every archive holds a binary named `pnpm` / `pnpm.exe` at its root
+        # (see the Archive Binary steps), so extracting them all into the same
+        # directory would clobber one target with another. Extract each into a
+        # scratch dir and move the binary out under its target-qualified name,
+        # which is what generate-packages.mjs reads.
+        run: |
+          for archive in pnpm-*.zip; do
+            rm -rf extract && mkdir extract
+            unzip -q "$archive" -d extract
+            mv extract/pnpm.exe "${archive%.zip}.exe"
+          done
+          for archive in pnpm-*.tar.gz; do
+            rm -rf extract && mkdir extract
+            tar -xzf "$archive" -C extract
+            mv extract/pnpm "${archive%.tar.gz}"
+          done
+
+      - name: Generate npm packages
+        # Rewrites the committed private `pacquet` wrapper into the publishable
+        # `pnpm` manifest and generates the per-platform packages.
+        run: |
+          node pnpm/npm/pnpm/scripts/generate-packages.mjs
+          node pnpm/npm/napi/scripts/generate-packages.mjs
+          cat pnpm/npm/pnpm/package.json
+          cat pnpm/npm/napi/package.json
+          for package in pnpm/npm/pacquet-* pnpm/npm/napi.*; do cat $package/package.json ; echo ; done
+
+      # Everything publishes via trusted publishing: the `pnpm` / `@pnpm/exe`
+      # trusted publishers are bound to this workflow file (they are shared
+      # with the TypeScript release job above), and the natives' and
+      # `@pnpm/napi`'s publishers are bound here too. Publishing the natives
+      # first keeps the wrappers' exact-version optionalDependencies
+      # installable the moment each wrapper goes live, and the `pnpm` wrapper
+      # goes last because the plan job uses it as the "release completed"
+      # gate. The trailing slash publishes the directory; the build dirs
+      # `pacquet-*` are published as `@pnpm/exe.<target>`.
+      - name: Publish (trusted publishing)
+        env:
+          TAG: ${{ needs.plan.outputs.rust_tag }}
+        run: |
+          for package in pnpm/npm/pacquet-* pnpm/npm/napi.* pnpm/npm/napi pnpm/npm/pnpm-exe pnpm/npm/pnpm; do
+            pnpm publish "$package/" --tag "$TAG" --access public --provenance --no-git-checks
+          done
Evidence
The rule requires ensuring npm trusted publisher bindings are repointed before depending on unified
publishing. The publish-rust job is configured for OIDC-only publishing (id-token: write) and
uses pnpm publish ... --provenance without any static token fallback or explicit preflight
verification of the external npm binding state.

Operational prerequisite: npm trusted publisher bindings are repointed to release.yml before removing legacy workflows
.github/workflows/release.yml[331-401]

Agent prompt
The issue below was found during a code review. Follow the provided context and guidance below and implement a solution

## Issue description
The unified release workflow publishes Rust/pnpr via trusted publishing only, but there is no in-workflow preflight/guard that verifies npm trusted publisher bindings are already repointed to `release.yml`.

## Issue Context
The compliance requirement is to ensure trusted publisher bindings are repointed before removing reliance on legacy workflows. Since bindings are external npm state, the workflow should either (a) include a preflight check/explicit gating signal, or (b) temporarily keep a fallback publishing mechanism until the repointing is verified.

## Fix Focus Areas
- .github/workflows/release.yml[331-401]

ⓘ Copy this prompt and use it to remediate the issue with your preferred AI generation tools


10. readOwnManifest duplicated installers 📘 Rule violation ⚙ Maintainability
Description
The PR introduces the same readOwnManifest() helper in both pnpm and pnpr wrapper install
scripts. This duplicates logic across packages instead of extracting a shared helper or documenting
why sharing is not feasible.
Code

pnpm/npm/pnpm/install.js[R149-155]

+function readOwnManifest () {
+  try {
+    return JSON.parse(fs.readFileSync(path.join(ownDir, 'package.json'), 'utf8'))
+  } catch {
+    return {}
+  }
+}
Evidence
The compliance rule requires avoiding duplicated reimplementations by extracting shared modules when
behavior is identical. The new readOwnManifest() helper is implemented twice with the same logic
in two different wrapper installers.

Rule 713439: Avoid reimplementing existing functionality; extract and reuse shared modules
pnpm/npm/pnpm/install.js[149-155]
pnpr/npm/pnpr/install.js[152-158]

Agent prompt
The issue below was found during a code review. Follow the provided context and guidance below and implement a solution

## Issue description
Identical helper logic (`readOwnManifest()`) was added in two different install scripts, creating duplicated implementation.

## Issue Context
These scripts are very similar and now share identical JSON read/parse logic. If a shared helper module cannot be used due to packaging/runtime constraints of install scripts, add an explicit comment explaining that constraint; otherwise, extract a shared helper and import it from both scripts.

## Fix Focus Areas
- pnpm/npm/pnpm/install.js[149-155]
- pnpr/npm/pnpr/install.js[152-158]

ⓘ Copy this prompt and use it to remediate the issue with your preferred AI generation tools



Informational

11. Manifest array bypass ✓ Resolved 🐞 Bug ☼ Reliability
Description
The new readOwnManifest() treats JSON arrays as valid “objects”, so a malformed-but-parseable
package.json like [] would pass validation and then make optionalDependencies appear missing,
silently skipping setup() instead of erroring. This weakens the intended “corrupt published
package must fail loudly” behavior (same pattern in the pnpr installer).
Code

pnpm/npm/pnpm/install.js[R160-162]

+  if (typeof manifest !== 'object' || manifest == null) {
+    throw new Error(`Expected ${manifestPath} to contain a JSON object`)
+  }
Evidence
setup() uses missing optionalDependencies as the dev-checkout signal, and the new validator
doesn’t exclude arrays, so arrays can incorrectly hit the no-op path; pnpr has identical logic.

pnpm/npm/pnpm/install.js[49-55]
pnpm/npm/pnpm/install.js[152-163]
pnpr/npm/pnpr/install.js[46-52]
pnpr/npm/pnpr/install.js[155-166]

Agent prompt
The issue below was found during a code review. Follow the provided context and guidance below and implement a solution

## Issue description
`readOwnManifest()` validates with `typeof manifest === 'object'`, which accepts arrays. An array manifest makes `optionalDependencies` undefined and triggers the dev-checkout no-op path, silently skipping setup instead of surfacing corruption.

## Issue Context
`setup()` returns early when `readOwnManifest().optionalDependencies == null`. The comment states read/parse failures should be treated as corruption, but arrays bypass the check.

## Fix Focus Areas
- pnpm/npm/pnpm/install.js[160-162]
- pnpr/npm/pnpr/install.js[163-165]

## Suggested fix
Tighten validation to require a non-null, non-array object, e.g.:
```js
if (typeof manifest !== 'object' || manifest == null || Array.isArray(manifest)) {
 throw new Error(`Expected ${manifestPath} to contain a JSON object`)
}
```
Apply the same change to both installers.

ⓘ Copy this prompt and use it to remediate the issue with your preferred AI generation tools


12. Non-literal pnpr version check 🐞 Bug ☼ Reliability
Description
The pnpr build job verifies Cargo.toml’s version with grep -E using the version string as a regex,
so . and other regex metacharacters in semver are not matched literally. This weakens the intended
guarantee that the committed version exactly matches what the release build uses.
Code

.github/workflows/release.yml[R501-510]

+      - name: Verify the committed version
+        # `pnpr --version` reads CARGO_PKG_VERSION via clap's derive `version`
+        # attribute; `pnpm bump` keeps the crate version in sync with the npm
+        # wrapper's version. Verify instead of patching so the binary is
+        # reproducible from the tagged sources.
+        shell: bash
+        env:
+          VERSION: ${{ needs.plan.outputs.pnpr_version }}
+        run: grep -E "^version\s*=\s*\"$VERSION\"" pnpr/crates/pnpr/Cargo.toml
+
Evidence
The workflow embeds $VERSION inside an ERE; semver contains . which is a wildcard in ERE, so the
check is not strictly literal. This is visible directly in the Verify the committed version step
for pnpr.

.github/workflows/release.yml[501-510]

Agent prompt
The issue below was found during a code review. Follow the provided context and guidance below and implement a solution

### Issue description
The pnpr version verification uses `grep -E` with an unescaped `$VERSION`, so it is not a strict literal equality check.

### Issue Context
The intention of this step is to fail the release if the committed version drifted; it should be an exact match.

### Fix Focus Areas
- .github/workflows/release.yml[501-510]

ⓘ Copy this prompt and use it to remediate the issue with your preferred AI generation tools


Grey Divider

Qodo Logo

Comment thread pnpm11/__utils__/scripts/src/bump.ts Resolved
Comment thread pnpm11/__utils__/scripts/src/bump.ts Resolved
@qodo-code-review

qodo-code-review Bot commented Jul 11, 2026 •

Copy link
Copy Markdown

PR Code Suggestions ✨

Latest suggestions up to cc38b18

Warning

/improve is deprecated. Use /agentic_review instead (removal date not yet scheduled).

CategorySuggestion                                                                                                                                    Impact
Possible issue
Publish completion gates last

Split the publication of native packages and their wrappers, making the wrapper
publication jobs depend on all other release steps. This ensures the npm
completion markers are published only when everything else has succeeded.

.github/workflows/release.yml [108-633]

-TS_NEEDS=$(needs_release "pnpm@$TS_VERSION")
-RUST_NEEDS=$(needs_release "pnpm@$RUST_VERSION")
-PNPR_NEEDS=$(needs_release "@pnpm/pnpr@$PNPR_VERSION")
-...
-publish-rust:
+publish-rust-natives:
   ...
   run: |
-    for package in pnpm/npm/pacquet-* pnpm/npm/napi.* pnpm/npm/napi pnpm/npm/pnpm-exe pnpm/npm/pnpm; do
+    for package in pnpm/npm/pacquet-* pnpm/npm/napi.* pnpm/npm/napi pnpm/npm/pnpm-exe; do
       pnpm publish "$package/" --tag "$TAG" --access public --provenance --no-git-checks
     done
-...
+
 github-release-rust:
   ...
   needs:
     - plan
     - build-rust
-    - publish-rust
-...
-publish-pnpr:
+    - publish-rust-natives
+
+publish-rust:
+  needs:
+    - plan
+    - github-release-rust
+  ...
+  run: pnpm publish "pnpm/npm/pnpm/" --tag "$TAG" --access public --provenance --no-git-checks
+
+publish-pnpr-natives:
   ...
   run: |
-    for package in pnpr/npm/pnpr-* pnpr/npm/pnpr; do
+    for package in pnpr/npm/pnpr-*; do
       pnpm publish "$package/" --tag "$TAG" --access public --provenance --no-git-checks
     done
-...
+
 docker-pnpr:
   ...
   needs:
     - plan
     - build-pnpr
-    - publish-pnpr
+    - publish-pnpr-natives
 
+publish-pnpr:
+  needs:
+    - plan
+    - docker-pnpr
+  ...
+  run: pnpm publish "pnpr/npm/pnpr/" --tag "$TAG" --access public --provenance --no-git-checks
+

[To ensure code accuracy, apply this suggestion manually]

Suggestion importance[1-10]: 9

__

Why: This fixes a critical flaw in the retry mechanism where a partial release failure would permanently skip subsequent steps (like Docker images or GitHub releases) on reruns because the completion marker package was published too early.

High
Restore the intended CLI dependency

Update the package manifest to use an unambiguous workspace reference for pnpm
to prevent it from resolving to the new Rust wrapper, and regenerate the
lockfile.

pnpm-lock.yaml [1246]

-version: link:../../../pnpm/npm/pnpm
+version: link:../../pnpm
  • Apply / Chat
Suggestion importance[1-10]: 7

__

Why: Catching an unintended workspace resolution change due to a potential package name collision is insightful, though the fix must be applied in the package.json rather than editing the lockfile directly.

Medium
General
Prepare version updates before writing

Refactor syncRustVersions to prepare all file content replacements in memory
before performing any writes, ensuring atomicity.

pnpm11/utils/scripts/src/bump.ts [38-56]

 export function syncRustVersions (repoRoot: string): void {
   const pnpmVersion = readManifestVersion(path.join(repoRoot, RUST_CLI_WRAPPER_MANIFEST))
-  replaceInFile(
-    path.join(repoRoot, 'pnpm/crates/config/src/defaults.rs'),
-    /(pub const PNPM_VERSION: &str = )"[^"]*"/,
-    `$1"${pnpmVersion}"`
-  )
   const pnprVersion = readManifestVersion(path.join(repoRoot, PNPR_WRAPPER_MANIFEST))
-  replaceInFile(
-    path.join(repoRoot, 'pnpr/crates/pnpr/Cargo.toml'),
-    /^(version\s*=\s*)"[^"]*"/m,
-    `$1"${pnprVersion}"`
-  )
-  replaceInFile(
-    path.join(repoRoot, 'Cargo.lock'),
-    /(\[\[package\]\]\nname = "pnpr"\nversion = )"[^"]*"/,
-    `$1"${pnprVersion}"`
-  )
+  const updates = [
+    prepareReplacement(
+      path.join(repoRoot, 'pnpm/crates/config/src/defaults.rs'),
+      /(pub const PNPM_VERSION: &str = )"[^"]*"/,
+      `$1"${pnpmVersion}"`
+    ),
+    prepareReplacement(
+      path.join(repoRoot, 'pnpr/crates/pnpr/Cargo.toml'),
+      /^(version\s*=\s*)"[^"]*"/m,
+      `$1"${pnprVersion}"`
+    ),
+    prepareReplacement(
+      path.join(repoRoot, 'Cargo.lock'),
+      /(\[\[package\]\]\nname = "pnpr"\nversion = )"[^"]*"/,
+      `$1"${pnprVersion}"`
+    ),
+  ]
+  for (const update of updates) {
+    fs.writeFileSync(update.file, update.content)
+  }
 }
 
+function prepareReplacement (
+  file: string,
+  pattern: RegExp,
+  replacement: string
+): { file: string, content: string } {
+  const content = fs.readFileSync(file, 'utf8')
+  const matches = content.match(new RegExp(pattern.source, pattern.flags.includes('g') ? pattern.flags : `${pattern.flags}g`))
+  if (matches?.length !== 1) {
+    throw new Error(`Expected exactly one match for ${pattern} in ${file}`)
+  }
+  return { file, content: content.replace(pattern, replacement) }
+}
+
  • Apply / Chat
Suggestion importance[1-10]: 3

__

Why: While atomicity in the version replacement process improves script robustness, it is a marginal improvement for a developer-facing script since failures leave the Git working tree in a state that can easily be reset.

Low
  • More

Previous suggestions

Suggestions up to commit 1164f89
CategorySuggestion                                                                                                                                    Impact
Possible issue
Make Rust publishing safely resumable

Make the Rust package publishing step idempotent by checking if each package
version is already published before running pnpm publish.

.github/workflows/release.yml [418-421]

 run: |
+  publish_if_missing() {
+    package="$1"
+    name=$(jq -r .name "$package/package.json")
+    version=$(jq -r .version "$package/package.json")
+    if out=$(cd "${RUNNER_TEMP:-/tmp}" && npm view "$name@$version" version 2>&1); then
+      echo "Skipping already published $name@$version"
+    elif echo "$out" | grep -q 'E404'; then
+      pnpm publish "$package/" --tag "$TAG" --access public --provenance --no-git-checks
+    else
+      echo "::error::npm view $name@$version failed: $out"
+      exit 1
+    fi
+  }
+
   for package in pnpm/npm/pacquet-* pnpm/npm/napi.* pnpm/npm/napi pnpm/npm/pnpm-exe pnpm/npm/pnpm; do
-    pnpm publish "$package/" --tag "$TAG" --access public --provenance --no-git-checks
+    publish_if_missing "$package"
   done
Suggestion importance[1-10]: 9

__

Why: This fixes a critical bug where partial publishing failures would cause retries to fail when republishing already-published packages, fulfilling the PR's intended resumability.

High
Make registry publishing safely resumable

Make the pnpr package publishing step idempotent by checking if each package
version is already published before running pnpm publish.

.github/workflows/release.yml [623-626]

 run: |
+  publish_if_missing() {
+    package="$1"
+    name=$(jq -r .name "$package/package.json")
+    version=$(jq -r .version "$package/package.json")
+    if out=$(cd "${RUNNER_TEMP:-/tmp}" && npm view "$name@$version" version 2>&1); then
+      echo "Skipping already published $name@$version"
+    elif echo "$out" | grep -q 'E404'; then
+      pnpm publish "$package/" --tag "$TAG" --access public --provenance --no-git-checks
+    else
+      echo "::error::npm view $name@$version failed: $out"
+      exit 1
+    fi
+  }
+
   for package in pnpr/npm/pnpr-* pnpr/npm/pnpr; do
-    pnpm publish "$package/" --tag "$TAG" --access public --provenance --no-git-checks
+    publish_if_missing "$package"
   done
Suggestion importance[1-10]: 9

__

Why: This fixes a critical bug where partial publishing failures would cause retries to fail when republishing already-published packages, fulfilling the PR's intended resumability.

High
Target the correct lockfile package

Parse Cargo.lock as TOML to accurately update the pnpr package version instead
of relying on a regex.

pnpm11/utils/scripts/src/bump.ts [51-55]

-replaceInFile(
+updateWorkspacePackageVersion(
   path.join(repoRoot, 'Cargo.lock'),
-  /(\[\[package\]\]\nname = "pnpr"\nversion = )"[^"]*"/,
-  `$1"${pnprVersion}"`
+  'pnpr',
+  pnprVersion
 )
Suggestion importance[1-10]: 4

__

Why: While parsing the TOML is safer, using a regex is usually sufficient for a specific internal tool, and introducing a TOML parser might be an over-engineering in this context.

Low
Suggestions up to commit 86f14bb
CategorySuggestion                                                                                                                                    Impact
Possible issue
Extract each archive separately

Use a shell loop to extract zip archives one by one. Avoid passing a wildcard
directly to unzip to prevent extraction errors when multiple zip files exist.

.github/workflows/release.yml [587-590]

-- name: Unzip
-  uses: montudor/action-zip@0852c26906e00f8a315c704958823928d8018b28 # v1.0.0
-  with:
-    args: unzip -qq *.zip -d .
+- name: Extract zip archives
+  run: |
+    for archive in pnpr-*.zip; do
+      unzip -q "$archive" -d .
+    done
Suggestion importance[1-10]: 9

__

Why: Using unzip *.zip fails when the wildcard expands to multiple archives, which will break the CI pipeline; extracting them sequentially in a loop correctly resolves this issue.

High
Publish completion markers last

Publish the npm gate package (@pnpm/pnpr) only after the Docker image is
successfully published. Split the npm publishing job to ensure proper completion
tracking across the entire workflow.

.github/workflows/release.yml [109-625]

-pnpr=$(needs_release "@pnpm/pnpr@$PNPR_VERSION")
-...
-publish-pnpr:
+publish-pnpr-natives:
   ...
+  run: |
+    for package in pnpr/npm/pnpr-*; do
+      pnpm publish "$package/" --tag "$TAG" --access public --provenance --no-git-checks
+    done
+
 docker-pnpr:
   needs:
     - plan
     - build-pnpr
-    - publish-pnpr
+    - publish-pnpr-natives
+  ...
 
+publish-pnpr:
+  needs:
+    - plan
+    - publish-pnpr-natives
+    - docker-pnpr
+  ...
+  run: pnpm publish pnpr/npm/pnpr/ --tag "$TAG" --access public --provenance --no-git-checks
+
Suggestion importance[1-10]: 9

__

Why: Publishing the gate package (@pnpm/pnpr) before the Docker image completes prevents retrying the Docker job upon failure, as the plan step would falsely detect the entire release as completed.

High
Fail on unreadable package manifests

Remove the try...catch block around the manifest reading and parsing to allow
errors to propagate. This ensures that installations fail visibly if the
package.json is missing or corrupted.

pnpm/npm/pnpm/install.js [149-155]

 function readOwnManifest () {
-  try {
-    return JSON.parse(fs.readFileSync(path.join(ownDir, 'package.json'), 'utf8'))
-  } catch {
-    return {}
-  }
+  return JSON.parse(fs.readFileSync(path.join(ownDir, 'package.json'), 'utf8'))
 }
Suggestion importance[1-10]: 7

__

Why: Swallowing file reading and parsing errors could mask genuine issues, leading to silent installation failures instead of exposing corrupted manifests.

Medium
Suggestions up to commit 3f5e0e0
CategorySuggestion                                                                                                                                    Impact
Possible issue
Do not mask install corruption

Remove the try-catch block in readOwnManifest() so that read or parse errors
throw explicitly instead of returning an empty object.

pnpm/npm/pnpm/install.js [149-155]

 function readOwnManifest () {
-  try {
-    return JSON.parse(fs.readFileSync(path.join(ownDir, 'package.json'), 'utf8'))
-  } catch {
-    return {}
-  }
+  return JSON.parse(fs.readFileSync(path.join(ownDir, 'package.json'), 'utf8'))
 }
Suggestion importance[1-10]: 7

__

Why: The suggestion correctly points out that swallowing all exceptions during package.json parsing could mask genuine corruption issues, leading to silent failures instead of failing the installation explicitly.

Medium
Suggestions up to commit a4ca85b
CategorySuggestion                                                                                                                                    Impact
Security
Harden artifact extraction

Replace the third-party unzip action and raw tar extraction with a validated
script that extracts to a scratch directory.

.github/workflows/release.yml [585-591]

-- name: Unzip
-  uses: montudor/action-zip@0852c26906e00f8a315c704958823928d8018b28 # v1.0.0
-  with:
-    args: unzip -qq *.zip -d .
+- name: Extract archives
+  run: |
+    for archive in pnpr-*.zip; do
+      expected="${archive%.zip}.exe"
+      rm -rf extract && mkdir extract
+      if [ "$(unzip -Z1 "$archive")" != "$expected" ]; then
+        echo "::error::Unexpected contents in $archive"
+        exit 1
+      fi
+      unzip -q "$archive" -d extract
+      test -f "extract/$expected" && test ! -L "extract/$expected"
+      mv "extract/$expected" "$expected"
+    done
+    for archive in pnpr-*.tar.gz; do
+      expected="${archive%.tar.gz}"
+      rm -rf extract && mkdir extract
+      if [ "$(tar -tzf "$archive")" != "$expected" ]; then
+        echo "::error::Unexpected contents in $archive"
+        exit 1
+      fi
+      tar -xzf "$archive" -C extract --no-same-owner
+      test -f "extract/$expected" && test ! -L "extract/$expected"
+      mv "extract/$expected" "$expected"
+    done
 
-- name: Extract tarballs
-  run: ls *.gz | xargs -i tar xf {}
-
Suggestion importance[1-10]: 6

__

Why: Improves consistency and security by replacing a third-party unzip action with validated manual extraction into a safe scratch directory.

Low
Validate release archive contents

Validate the contents of zip and tar archives before extraction to ensure they
contain exactly the expected binary.

.github/workflows/release.yml [372-381]

 for archive in pnpm-*.zip; do
   rm -rf extract && mkdir extract
+  if [ "$(unzip -Z1 "$archive")" != "pnpm.exe" ]; then
+    echo "::error::Unexpected contents in $archive"
+    exit 1
+  fi
   unzip -q "$archive" -d extract
   mv extract/pnpm.exe "${archive%.zip}.exe"
 done
 for archive in pnpm-*.tar.gz; do
   rm -rf extract && mkdir extract
-  tar -xzf "$archive" -C extract
+  if [ "$(tar -tzf "$archive")" != "pnpm" ]; then
+    echo "::error::Unexpected contents in $archive"
+    exit 1
+  fi
+  tar -xzf "$archive" -C extract --no-same-owner
+  test -f extract/pnpm && test ! -L extract/pnpm
   mv extract/pnpm "${archive%.tar.gz}"
 done
Suggestion importance[1-10]: 5

__

Why: Enhances workflow security by validating artifact contents against path traversal, though the risk is low since the artifacts are generated in the same workflow.

Low
Prevent tar path traversal

Verify the file list of each musl tarball before extraction to prevent potential
path traversal vulnerabilities.

.github/workflows/release.yml [668-671]

 for f in pnpr-linux-*-musl.tar.gz; do
+  expected="${f%.tar.gz}"
+  if [ "$(tar -tzf "$f")" != "$expected" ]; then
+    echo "::error::Unexpected contents in $f"
+    exit 1
+  fi
   tar -xzf "$f" -C extracted --no-same-owner
 done
 ( cd extracted && sha256sum -c ../pnpr-linux-x64-musl.sha256 ../pnpr-linux-arm64-musl.sha256 )
Suggestion importance[1-10]: 5

__

Why: Adds a defense-in-depth check against path traversal during tar extraction, ensuring only the expected binary is unpacked.

Low
Suggestions up to commit 99cb017
CategorySuggestion                                                                                                                                    Impact
General
Support CRLF line endings in Cargo.lock parsing

Update the Cargo.lock replacement regex to support \r\n line endings.

pnpm11/utils/scripts/src/bump.ts [199-203]

 replaceInFile(
   path.join(repoRoot, 'Cargo.lock'),
-  /(\[\[package\]\]\nname = "pnpr"\nversion = )"[^"]*"/,
+  /(\[\[package\]\]\r?\nname = "pnpr"\r?\nversion = )"[^"]*"/,
   `$1"${pnprVersion}"`
 )
Suggestion importance[1-10]: 7

__

Why: Supporting both CRLF and LF line endings prevents local script execution errors on Windows environments.

Medium
Add formatted JSON write with newline

Use JSON.stringify with indentation and add a trailing newline when saving the
manifest.

pnpm/npm/pnpm/scripts/generate-packages.mjs [101]

-fs.writeFileSync(MANIFEST_PATH, JSON.stringify(rootManifest));
+fs.writeFileSync(MANIFEST_PATH, `${JSON.stringify(rootManifest, null, 2)}\n`);
Suggestion importance[1-10]: 4

__

Why: Formatting the JSON with indentation and a trailing newline ensures consistency with standard conventions and improves readability.

Low
Pretty-print and newline JSON

Format the written JSON output with indentation and a trailing newline.

pnpr/npm/pnpr/scripts/generate-packages.mjs [87]

-fs.writeFileSync(manifestPath, content);
+const formatted = `${JSON.stringify(manifestData, null, 2)}\n`;
+fs.writeFileSync(manifestPath, formatted);
Suggestion importance[1-10]: 4

__

Why: Pretty-printing the JSON and adding a trailing newline aligns with best practices and improves code readability.

Low

@greptile-apps

greptile-apps Bot commented Jul 11, 2026 •

Copy link
Copy Markdown
Contributor

Confidence Score: 5/5

Safe to merge. The release infrastructure changes are well-reasoned, thoroughly commented, and the key invariants (registry-outage detection, version consistency between Rust CLI and NAPI addon, trusted publishing throughout) are all correctly implemented.

No defects found in the changed paths. The plan job correctly guards against a registry outage being misread as a pending release. The syncRustVersions function throws on a missing version site rather than silently no-opping. The dev-checkout guard in install.js correctly distinguishes a corrupt published package from the monorepo case. Tests cover the new bump.ts logic well.

No files require special attention.

Reviews (7): Last reviewed commit: "fix(release): revert the Rust CLI wrappe..." | Re-trigger Greptile

Comment thread .github/workflows/release.yml Resolved

@coderabbitai coderabbitai Bot left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Actionable comments posted: 1

🤖 Prompt for all review comments with AI agents
Verify each finding against current code. Fix only still-valid issues, skip the
rest with a brief reason, keep changes minimal, and validate.

Inline comments:
In @.github/workflows/release.yml:
- Around line 594-606: Compute and expose a pnpr_tag output in the plan job’s
decide step using the same stable-versus-prerelease logic as RUST_TAG, then
update publish-pnpr to consume that plan output instead of hardcoding the latest
npm tag. Preserve latest for stable releases and use the appropriate prerelease
tag otherwise.
🪄 Autofix (Beta)

Fix all unresolved CodeRabbit comments on this PR:

  • Push a commit to this branch (recommended)
  • Create a new PR with the fixes

ℹ️ Review info
⚙️ Run configuration

Configuration used: Path: .coderabbit.yaml

Review profile: CHILL

Plan: Pro Plus

Run ID: bd181257-3935-4d50-8c9a-1e169d71be38

📥 Commits

Reviewing files that changed from the base of the PR and between 3e01bc5 and 99cb017.

⛔ Files ignored due to path filters (2)
  • Cargo.lock is excluded by !**/*.lock, !Cargo.lock
  • pnpr/npm/pnpr/CHANGELOG.md is excluded by !**/CHANGELOG.md
📒 Files selected for processing (22)
  • .changeset/config.json
  • .changeset/rust-wrapper-dev-checkout-guard.md
  • .github/workflows/create-release-pr.yml
  • .github/workflows/pacquet-release-to-npm.yml
  • .github/workflows/pnpr-release-to-npm.yml
  • .github/workflows/release.yml
  • .meta-updater/src/index.ts
  • AGENTS.md
  • pnpm-workspace.yaml
  • pnpm/crates/config/src/defaults.rs
  • pnpm/npm/napi/package.json
  • pnpm/npm/napi/scripts/generate-packages.mjs
  • pnpm/npm/pnpm/install.js
  • pnpm/npm/pnpm/package.json
  • pnpm/npm/pnpm/scripts/generate-packages.mjs
  • pnpm11/__utils__/scripts/src/bump.ts
  • pnpm11/__utils__/scripts/test/bump.ts
  • pnpr/crates/pnpr/Cargo.toml
  • pnpr/docker/README.md
  • pnpr/npm/pnpr/install.js
  • pnpr/npm/pnpr/package.json
  • pnpr/npm/pnpr/scripts/generate-packages.mjs
💤 Files with no reviewable changes (2)
  • .github/workflows/pacquet-release-to-npm.yml
  • .github/workflows/pnpr-release-to-npm.yml

Comment thread .github/workflows/release.yml Resolved
@codecov-commenter

codecov-commenter commented Jul 11, 2026 •

Copy link
Copy Markdown

Codecov Report

✅ All modified and coverable lines are covered by tests.
✅ Project coverage is 85.59%. Comparing base (3e01bc5) to head (3f5e0e0).
⚠️ Report is 2 commits behind head on main.

Additional details and impacted files
@@            Coverage Diff             @@
##             main   #12949      +/-   ##
==========================================
+ Coverage   85.57%   85.59%   +0.02%     
==========================================
  Files         475      475              
  Lines       74718    74829     +111     
==========================================
+ Hits        63940    64050     +110     
- Misses      10778    10779       +1     

☔ View full report in Codecov by Harness.
📢 Have feedback on the report? Share it here.

🚀 New features to boost your workflow:
  • ❄️ Test Analytics: Detect flaky tests, report on failures, and find test suite problems.
  • 📦 JS Bundle Analysis: Save yourself from yourself by tracking and limiting bundle sizes in JS merges.

zkochan added a commit that referenced this pull request Jul 11, 2026
The publish-pnpr job hardcoded --tag latest, so a pnpr prerelease (which
pnpm bump can produce via the prerelease continuation) would have moved
npm's latest dist-tag while docker-pnpr correctly withheld the latest
image tag. The plan job now derives pnpr_tag (latest, or next for
prereleases) the same way it derives rust_tag.

Reported by greptile and coderabbit on #12949.

Co-Authored-By: Claude Fable 5 <[email protected]>
zkochan added a commit that referenced this pull request Jul 11, 2026
GitHub Actions caches are writable by any workflow running on the
default branch, so restoring a cache into a release build lets a
poisoned cache entry inject code into the published, attested binaries.
Release builds are infrequent enough that a cold build is an acceptable
price for closing that path.

Flagged by zizmor (cache-poisoning) on #12949.

Co-Authored-By: Claude Fable 5 <[email protected]>
zkochan added a commit that referenced this pull request Jul 11, 2026
…mp.ts

Declare main above the helpers it calls, per the repo convention that
functions are declared after they are used. Also rephrase the prerelease
regex comment to describe what the pattern matches today instead of
referencing a historical versioning scheme.

Reported by qodo on #12949.

Co-Authored-By: Claude Fable 5 <[email protected]>
Copilot AI review requested due to automatic review settings July 11, 2026 23:46

Copilot AI left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Copilot was unable to review this pull request because the user who requested the review has reached their quota limit.

@github-actions github-actions Bot added the reviewed: coderabbit CodeRabbit submitted an approving review label Jul 11, 2026
@qodo-code-review

Copy link
Copy Markdown

Code review by qodo was updated up to the latest commit a4ca85b

@github-actions

github-actions Bot commented Jul 12, 2026 •

Copy link
Copy Markdown
Contributor

Integrated-Benchmark Report (Linux)

Commit: 989529581a87

Each scenario reports direct installs and pnpr installs. Bencher consumes pacquet@HEAD and pnpr@HEAD.

Scenario: Isolated linker: fresh restore, cold cache + cold store

Command Mean [s] Min [s] Max [s] Relative
pacquet@HEAD 3.941 ± 0.131 3.788 4.197 1.82 ± 0.10
pacquet@main 3.861 ± 0.178 3.659 4.100 1.78 ± 0.12
pnpr@HEAD 2.177 ± 0.085 2.053 2.330 1.00 ± 0.06
pnpr@main 2.169 ± 0.102 2.019 2.325 1.00
BENCHMARK_REPORT.json
{
  "results": [
    {
      "command": "pacquet@HEAD",
      "mean": 3.9409424574600003,
      "stddev": 0.1314822858640816,
      "median": 3.9147537256600002,
      "user": 3.6059097799999997,
      "system": 3.49795194,
      "min": 3.7879718591600002,
      "max": 4.196872207159999,
      "times": [
        4.00553629916,
        4.00388173916,
        3.7879718591600002,
        3.8866299461600002,
        3.9428775051600002,
        3.80567282716,
        3.8594040511600003,
        3.83800660116,
        4.196872207159999,
        4.08257153916
      ]
    },
    {
      "command": "pacquet@main",
      "mean": 3.86149675086,
      "stddev": 0.17755887757984545,
      "median": 3.7820354866600003,
      "user": 3.60108988,
      "system": 3.4848765400000006,
      "min": 3.65898649216,
      "max": 4.100448290159999,
      "times": [
        3.8233180471600003,
        4.08352667116,
        3.73999999816,
        4.01462188816,
        3.65898649216,
        3.72372308316,
        4.100448290159999,
        3.68718583316,
        3.7407529261600003,
        4.0424042791599994
      ]
    },
    {
      "command": "pnpr@HEAD",
      "mean": 2.17705781156,
      "stddev": 0.08536959076760815,
      "median": 2.1834071336600003,
      "user": 2.6822507800000004,
      "system": 3.1181915399999998,
      "min": 2.05279351716,
      "max": 2.3304605461600003,
      "times": [
        2.2414427851600003,
        2.25676244016,
        2.1111003261600003,
        2.08348478216,
        2.17203210216,
        2.05279351716,
        2.19795771416,
        2.3304605461600003,
        2.19478216516,
        2.12976173716
      ]
    },
    {
      "command": "pnpr@main",
      "mean": 2.1692885527600003,
      "stddev": 0.1016137175450251,
      "median": 2.14158870116,
      "user": 2.7098584800000003,
      "system": 3.1299465399999997,
      "min": 2.01945414516,
      "max": 2.32451991816,
      "times": [
        2.16319806716,
        2.32451991816,
        2.10660609516,
        2.27969893016,
        2.01945414516,
        2.1503123201600003,
        2.13286508216,
        2.1243063861600002,
        2.30796949516,
        2.08395508816
      ]
    }
  ]
}

Scenario: Isolated linker: fresh restore, hot cache + hot store

Command Mean [ms] Min [ms] Max [ms] Relative
pacquet@HEAD 695.5 ± 12.6 680.5 717.1 1.02 ± 0.07
pacquet@main 684.1 ± 42.9 651.4 798.1 1.00
pnpr@HEAD 769.1 ± 104.1 714.7 1042.4 1.12 ± 0.17
pnpr@main 750.6 ± 10.8 730.3 768.1 1.10 ± 0.07
BENCHMARK_REPORT.json
{
  "results": [
    {
      "command": "pacquet@HEAD",
      "mean": 0.69554847252,
      "stddev": 0.012616717058773376,
      "median": 0.69591748972,
      "user": 0.4021877,
      "system": 1.3932109,
      "min": 0.68047134972,
      "max": 0.71711028472,
      "times": [
        0.69601558972,
        0.70440174572,
        0.69581938972,
        0.68776834272,
        0.71711028472,
        0.69681184572,
        0.68047134972,
        0.71175378372,
        0.68426084772,
        0.68107154572
      ]
    },
    {
      "command": "pacquet@main",
      "mean": 0.68410930632,
      "stddev": 0.042905098511340105,
      "median": 0.66554475622,
      "user": 0.40181680000000003,
      "system": 1.3575411,
      "min": 0.65141464872,
      "max": 0.79812670972,
      "times": [
        0.66210777672,
        0.66070605672,
        0.69976468372,
        0.66602592472,
        0.65141464872,
        0.68891232872,
        0.79812670972,
        0.66176163272,
        0.68720971372,
        0.66506358772
      ]
    },
    {
      "command": "pnpr@HEAD",
      "mean": 0.76909854162,
      "stddev": 0.10410065636903428,
      "median": 0.72567411322,
      "user": 0.4214544,
      "system": 1.3875125000000001,
      "min": 0.71466082472,
      "max": 1.04242611072,
      "times": [
        0.73871089472,
        0.84984800372,
        0.71986779272,
        0.72056200472,
        0.72486532972,
        0.73868648872,
        0.71466082472,
        0.71487506972,
        0.72648289672,
        1.04242611072
      ]
    },
    {
      "command": "pnpr@main",
      "mean": 0.7505696441199999,
      "stddev": 0.010821893788356723,
      "median": 0.75183691622,
      "user": 0.41528829999999994,
      "system": 1.4114046999999998,
      "min": 0.73027994872,
      "max": 0.76809923172,
      "times": [
        0.75837028172,
        0.74829098372,
        0.75154587172,
        0.73661352472,
        0.76809923172,
        0.73027994872,
        0.74908924672,
        0.75212796072,
        0.75857763572,
        0.75270175572
      ]
    }
  ]
}

Scenario: Isolated linker: fresh install, cold cache + cold store

Command Mean [s] Min [s] Max [s] Relative
pacquet@HEAD 4.438 ± 0.039 4.375 4.496 2.00 ± 0.13
pacquet@main 4.441 ± 0.042 4.377 4.524 2.00 ± 0.13
pnpr@HEAD 2.222 ± 0.141 2.038 2.453 1.00
pnpr@main 2.256 ± 0.154 2.088 2.465 1.02 ± 0.09
BENCHMARK_REPORT.json
{
  "results": [
    {
      "command": "pacquet@HEAD",
      "mean": 4.438148248999999,
      "stddev": 0.03860126944621971,
      "median": 4.4461217358,
      "user": 3.8966542000000004,
      "system": 3.5345337199999998,
      "min": 4.3745781583,
      "max": 4.4964190243,
      "times": [
        4.4196376773,
        4.4755131203,
        4.4964190243,
        4.4336746643,
        4.4472595463,
        4.3795295873,
        4.4449839253,
        4.3745781583,
        4.4484222333,
        4.4614645533
      ]
    },
    {
      "command": "pacquet@main",
      "mean": 4.4412438628,
      "stddev": 0.042187324300497125,
      "median": 4.4389408083,
      "user": 3.8712542,
      "system": 3.4933557199999994,
      "min": 4.3772322643,
      "max": 4.5237001453,
      "times": [
        4.4613096013,
        4.4569784873,
        4.4070680803,
        4.4291176863,
        4.4195090933,
        4.4082718383,
        4.5237001453,
        4.3772322643,
        4.4804875013,
        4.4487639303
      ]
    },
    {
      "command": "pnpr@HEAD",
      "mean": 2.2216576719,
      "stddev": 0.14053681323774259,
      "median": 2.2255750702999997,
      "user": 2.541674,
      "system": 3.054225919999999,
      "min": 2.0380132453,
      "max": 2.4525039813,
      "times": [
        2.2260534963,
        2.1372138392999998,
        2.3431996203,
        2.3828843743,
        2.0380132453,
        2.0598605063,
        2.2250966442999998,
        2.4525039813,
        2.2547466893,
        2.0970043223
      ]
    },
    {
      "command": "pnpr@main",
      "mean": 2.2563452118000002,
      "stddev": 0.15440835081150941,
      "median": 2.2348552103,
      "user": 2.5177267,
      "system": 3.00937842,
      "min": 2.0875835103,
      "max": 2.4647249343,
      "times": [
        2.4367189993,
        2.1310066543,
        2.0964248013,
        2.3656585293,
        2.4084341443,
        2.1663159233,
        2.1031901242999997,
        2.4647249343,
        2.3033944973,
        2.0875835103
      ]
    }
  ]
}

Scenario: Isolated linker: fresh install, hot cache + hot store

Command Mean [s] Min [s] Max [s] Relative
pacquet@HEAD 1.434 ± 0.016 1.411 1.468 2.10 ± 0.05
pacquet@main 1.435 ± 0.043 1.399 1.548 2.10 ± 0.07
pnpr@HEAD 0.718 ± 0.099 0.670 0.995 1.05 ± 0.15
pnpr@main 0.683 ± 0.013 0.668 0.704 1.00
BENCHMARK_REPORT.json
{
  "results": [
    {
      "command": "pacquet@HEAD",
      "mean": 1.43367542084,
      "stddev": 0.01622955763618019,
      "median": 1.43365786114,
      "user": 1.3845561199999998,
      "system": 1.76805664,
      "min": 1.41126590614,
      "max": 1.46801741314,
      "times": [
        1.43447446314,
        1.43284125914,
        1.44801061714,
        1.41126590614,
        1.46801741314,
        1.41463919414,
        1.43570533314,
        1.43015344514,
        1.42422693214,
        1.43741964514
      ]
    },
    {
      "command": "pacquet@main",
      "mean": 1.4352910887399999,
      "stddev": 0.04255229025268935,
      "median": 1.42363317764,
      "user": 1.3696598199999996,
      "system": 1.7547142400000002,
      "min": 1.39943463714,
      "max": 1.54767336214,
      "times": [
        1.44117538114,
        1.54767336214,
        1.39943463714,
        1.42171320214,
        1.40849982714,
        1.4255531531399999,
        1.42168237114,
        1.40342180014,
        1.44742810014,
        1.43632905314
      ]
    },
    {
      "command": "pnpr@HEAD",
      "mean": 0.71790350444,
      "stddev": 0.09877124896623414,
      "median": 0.68576032764,
      "user": 0.3541933199999999,
      "system": 1.30723834,
      "min": 0.66957274414,
      "max": 0.9949061181400001,
      "times": [
        0.67166575214,
        0.66957274414,
        0.67374095014,
        0.9949061181400001,
        0.72365952014,
        0.68751621414,
        0.68400444114,
        0.67552402914,
        0.70410270714,
        0.6943425681400001
      ]
    },
    {
      "command": "pnpr@main",
      "mean": 0.68311860754,
      "stddev": 0.012547341665338132,
      "median": 0.67791956764,
      "user": 0.36586132000000005,
      "system": 1.3013141400000001,
      "min": 0.66783151314,
      "max": 0.70434336714,
      "times": [
        0.67711994114,
        0.66783151314,
        0.67371986514,
        0.67412938114,
        0.6813237761400001,
        0.67742476414,
        0.70434336714,
        0.69800580414,
        0.69887329214,
        0.67841437114
      ]
    }
  ]
}

Scenario: Isolated linker: fresh install, cold cache + hot store

Command Mean [s] Min [s] Max [s] Relative
pacquet@HEAD 3.142 ± 0.034 3.093 3.208 4.60 ± 0.09
pacquet@main 3.115 ± 0.042 3.070 3.215 4.56 ± 0.09
pnpr@HEAD 0.684 ± 0.010 0.668 0.702 1.00
pnpr@main 0.741 ± 0.062 0.710 0.918 1.08 ± 0.09
BENCHMARK_REPORT.json
{
  "results": [
    {
      "command": "pacquet@HEAD",
      "mean": 3.1423406695200002,
      "stddev": 0.034112940249583425,
      "median": 3.14140452672,
      "user": 1.86262346,
      "system": 2.03901876,
      "min": 3.09335470672,
      "max": 3.20803151372,
      "times": [
        3.13251333972,
        3.15529190172,
        3.17085323872,
        3.1585205857200003,
        3.1502957137200003,
        3.13036345772,
        3.12591950572,
        3.09335470672,
        3.20803151372,
        3.09826273172
      ]
    },
    {
      "command": "pacquet@main",
      "mean": 3.11478118112,
      "stddev": 0.041524156335098275,
      "median": 3.11362465972,
      "user": 1.8157046600000002,
      "system": 2.01875076,
      "min": 3.07046668072,
      "max": 3.21534292072,
      "times": [
        3.1148528307200003,
        3.11239648872,
        3.12635325472,
        3.11956893272,
        3.07046668072,
        3.08006008072,
        3.07094191872,
        3.11124192272,
        3.21534292072,
        3.1265867807200003
      ]
    },
    {
      "command": "pnpr@HEAD",
      "mean": 0.68380833512,
      "stddev": 0.010251484439603933,
      "median": 0.68058242872,
      "user": 0.35061316,
      "system": 1.3261776599999997,
      "min": 0.6678024287200001,
      "max": 0.7020512077200001,
      "times": [
        0.67793955072,
        0.67786031272,
        0.68999196572,
        0.67749690372,
        0.6972236097200001,
        0.7020512077200001,
        0.68114760372,
        0.6678024287200001,
        0.68001725372,
        0.68655251472
      ]
    },
    {
      "command": "pnpr@main",
      "mean": 0.7412919874200001,
      "stddev": 0.0621589936924562,
      "median": 0.72141696872,
      "user": 0.35727986,
      "system": 1.3700801599999999,
      "min": 0.7099631147200001,
      "max": 0.91751150672,
      "times": [
        0.72722489372,
        0.7099631147200001,
        0.71875312372,
        0.72091883272,
        0.72946198472,
        0.7193902427200001,
        0.72686223772,
        0.7214960017200001,
        0.72133793572,
        0.91751150672
      ]
    }
  ]
}

Scenario: Isolated linker: fresh resolve, hot cache, offline

Command Mean [ms] Min [ms] Max [ms] Relative
pacquet@HEAD 669.7 ± 12.5 653.9 689.9 6.20 ± 0.12
pacquet@main 672.7 ± 11.3 658.4 695.1 6.23 ± 0.11
pnpr@HEAD 108.6 ± 1.8 106.8 114.7 1.01 ± 0.02
pnpr@main 108.0 ± 0.7 106.9 110.6 1.00
BENCHMARK_REPORT.json
{
  "results": [
    {
      "command": "pacquet@HEAD",
      "mean": 0.66969777778,
      "stddev": 0.01251362708455056,
      "median": 0.6679583012800001,
      "user": 0.6360430799999998,
      "system": 0.15683202,
      "min": 0.65394312578,
      "max": 0.68994492578,
      "times": [
        0.68994492578,
        0.66913825278,
        0.65756783478,
        0.6839448447800001,
        0.66416378078,
        0.6667783497800001,
        0.67122376378,
        0.68353183178,
        0.65394312578,
        0.65674106778
      ]
    },
    {
      "command": "pacquet@main",
      "mean": 0.67269660748,
      "stddev": 0.011315457441460088,
      "median": 0.67143023428,
      "user": 0.63939118,
      "system": 0.15426282,
      "min": 0.6584405157800001,
      "max": 0.69514278578,
      "times": [
        0.66041067278,
        0.66930514478,
        0.68367848578,
        0.66528983578,
        0.69514278578,
        0.67355532378,
        0.6781963627800001,
        0.66541524878,
        0.6584405157800001,
        0.67753169878
      ]
    },
    {
      "command": "pnpr@HEAD",
      "mean": 0.10856259337999999,
      "stddev": 0.0017771048498065832,
      "median": 0.10795412878,
      "user": 0.02827173999999999,
      "system": 0.0206846,
      "min": 0.10680941178,
      "max": 0.11474682178,
      "times": [
        0.10993812078,
        0.10798289078000001,
        0.10795412878,
        0.10749581078,
        0.10866933478,
        0.10731290778,
        0.10766413478,
        0.10839974078,
        0.10744348278,
        0.10770448178,
        0.10755810778,
        0.10800796878,
        0.10801612378,
        0.11474682178,
        0.11155866078,
        0.10738123078,
        0.10930187378,
        0.11171173078,
        0.10769256278,
        0.10744343778,
        0.10788468178,
        0.10934940178,
        0.10680941178,
        0.10834594478,
        0.10769184178
      ]
    },
    {
      "command": "pnpr@main",
      "mean": 0.10799209978,
      "stddev": 0.0007469826169622904,
      "median": 0.10778221078,
      "user": 0.02945894,
      "system": 0.01902516,
      "min": 0.10687555578,
      "max": 0.11059918978,
      "times": [
        0.10841737878,
        0.10738237278,
        0.10764427278,
        0.10741095578,
        0.10951597378,
        0.10687555578,
        0.10795274978,
        0.10779144778,
        0.10764494078,
        0.11059918978,
        0.10841146078,
        0.10771712978,
        0.10794967378,
        0.10778131878,
        0.10778221078,
        0.10819035378,
        0.10840058678,
        0.10754923578,
        0.10735049278,
        0.10791474178,
        0.10768543978,
        0.10776993878,
        0.10817834878,
        0.10743956978,
        0.10844715478
      ]
    }
  ]
}

Scenario: Isolated linker: fresh restore, cold cache + cold store + cold pnpr

Command Mean [s] Min [s] Max [s] Relative
pacquet@HEAD 6.780 ± 0.087 6.631 6.938 1.34 ± 0.03
pacquet@main 6.790 ± 0.148 6.565 7.108 1.34 ± 0.04
pnpr@HEAD 5.145 ± 0.063 5.060 5.253 1.02 ± 0.02
pnpr@main 5.064 ± 0.089 4.956 5.206 1.00
BENCHMARK_REPORT.json
{
  "results": [
    {
      "command": "pacquet@HEAD",
      "mean": 6.7795623105,
      "stddev": 0.08747380161528004,
      "median": 6.777111237,
      "user": 3.83061978,
      "system": 3.76762304,
      "min": 6.63050555,
      "max": 6.937709783,
      "times": [
        6.63050555,
        6.679110388,
        6.758104514,
        6.751648829,
        6.815775221,
        6.937709783,
        6.817622883,
        6.859409437,
        6.74961854,
        6.79611796
      ]
    },
    {
      "command": "pacquet@main",
      "mean": 6.7898240857,
      "stddev": 0.1478248045079195,
      "median": 6.7903315045,
      "user": 3.88971218,
      "system": 3.8175022400000005,
      "min": 6.565372846,
      "max": 7.108255088,
      "times": [
        6.565372846,
        6.775604374,
        6.844260526,
        6.63727398,
        6.73415925,
        7.108255088,
        6.819722096,
        6.721158432,
        6.88737563,
        6.805058635
      ]
    },
    {
      "command": "pnpr@HEAD",
      "mean": 5.145482059400001,
      "stddev": 0.06266948227619519,
      "median": 5.1284214304999995,
      "user": 2.8468338799999997,
      "system": 3.35443194,
      "min": 5.059606644,
      "max": 5.253204551,
      "times": [
        5.059606644,
        5.147326853,
        5.109516008,
        5.091617425,
        5.211939191,
        5.209605111,
        5.253204551,
        5.102331931,
        5.106969014,
        5.162703866
      ]
    },
    {
      "command": "pnpr@main",
      "mean": 5.0640780453,
      "stddev": 0.08859953063202773,
      "median": 5.05405496,
      "user": 2.83141178,
      "system": 3.3285826399999996,
      "min": 4.955826757,
      "max": 5.206139342,
      "times": [
        5.00159817,
        5.049970767,
        4.955826757,
        5.125859491,
        5.163613074,
        4.987935316,
        5.206139342,
        5.130774603,
        4.96092378,
        5.058139153
      ]
    }
  ]
}

@github-actions

github-actions Bot commented Jul 12, 2026 •

Copy link
Copy Markdown
Contributor

🐰 Bencher Report

Branchpr/12949
Testbedpacquet
Click to view all benchmark results
BenchmarkLatencyBenchmark Result
milliseconds (ms)
(Result Δ%)
Upper Boundary
milliseconds (ms)
(Limit %)
isolated-linker.fresh-install.cold-cache.cold-store📈 view plot
🚷 view threshold
4,438.15 ms
(+3.22%)Baseline: 4,299.58 ms
5,159.50 ms
(86.02%)
isolated-linker.fresh-install.cold-cache.hot-store📈 view plot
🚷 view threshold
3,142.34 ms
(+3.01%)Baseline: 3,050.48 ms
3,660.57 ms
(85.84%)
isolated-linker.fresh-install.hot-cache.hot-store📈 view plot
🚷 view threshold
1,433.68 ms
(+3.64%)Baseline: 1,383.27 ms
1,659.93 ms
(86.37%)
isolated-linker.fresh-resolve.hot-cache.offline📈 view plot
🚷 view threshold
669.70 ms
(+3.45%)Baseline: 647.38 ms
776.86 ms
(86.21%)
isolated-linker.fresh-restore.cold-cache.cold-store📈 view plot
🚷 view threshold
3,940.94 ms
(-2.36%)Baseline: 4,036.06 ms
4,843.27 ms
(81.37%)
isolated-linker.fresh-restore.cold-cache.cold-store.cold-pnpr📈 view plot
🚷 view threshold
6,779.56 ms
(-7.44%)Baseline: 7,324.58 ms
8,789.50 ms
(77.13%)
isolated-linker.fresh-restore.hot-cache.hot-store📈 view plot
🚷 view threshold
695.55 ms
(+4.82%)Baseline: 663.58 ms
796.29 ms
(87.35%)
🐰 View full continuous benchmarking report in Bencher

@github-actions

github-actions Bot commented Jul 12, 2026 •

Copy link
Copy Markdown
Contributor

🐰 Bencher Report

Branchpr/12949
Testbedpnpr

⚠️ WARNING: No Threshold found!

Without a Threshold, no Alerts will ever be generated.

Click here to create a new Threshold
For more information, see the Threshold documentation.
To only post results if a Threshold exists, set the --ci-only-thresholds flag.

Click to view all benchmark results
BenchmarkLatencymilliseconds (ms)
isolated-linker.fresh-install.cold-cache.cold-store📈 view plot
⚠️ NO THRESHOLD
2,221.66 ms
isolated-linker.fresh-install.cold-cache.hot-store📈 view plot
⚠️ NO THRESHOLD
683.81 ms
isolated-linker.fresh-install.hot-cache.hot-store📈 view plot
⚠️ NO THRESHOLD
717.90 ms
isolated-linker.fresh-resolve.hot-cache.offline📈 view plot
⚠️ NO THRESHOLD
108.56 ms
isolated-linker.fresh-restore.cold-cache.cold-store📈 view plot
⚠️ NO THRESHOLD
2,177.06 ms
isolated-linker.fresh-restore.cold-cache.cold-store.cold-pnpr📈 view plot
⚠️ NO THRESHOLD
5,145.48 ms
isolated-linker.fresh-restore.hot-cache.hot-store📈 view plot
⚠️ NO THRESHOLD
769.10 ms
🐰 View full continuous benchmarking report in Bencher

Copilot AI review requested due to automatic review settings July 12, 2026 08:40

Copilot AI left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Copilot was unable to review this pull request because the user who requested the review has reached their quota limit.

@qodo-code-review

Copy link
Copy Markdown

Code review by qodo was updated up to the latest commit 3f5e0e0

k-taro56 added a commit to arkorlab/fine-tuning that referenced this pull request Jul 14, 2026
… (ENG-923)

pnpm 11.12.0 and 11.13.0 publish their per-platform npm packages
(@pnpm/linux-x64, @pnpm/macos-arm64, @pnpm/win-x64, ...) without the
native pnpm binary (~1.9 kB metadata-only tarballs). pnpm/action-setup
with standalone: true resolves @pnpm/exe, whose preinstall (setup.js)
finds no platform binary and silently leaves the 34-byte placeholder,
so every CI job dies at actions/setup-node with:

  @pnpm/exe/pnpm: 1: This: not found

11.11.0 is the last release whose platform packages contain the binary.
Root cause is upstream pnpm/pnpm#12955 (release-flow regression from
pnpm/pnpm#12949); no fixed release exists yet, so pin to 11.11.0.

Updated packageManager (hash via corepack), ci.yaml (comments + pnpm-11
matrix corepack prepare + regression-guard note), build.yaml, AGENTS.md,
and scaffold.ts.
k-taro56 added a commit to arkorlab/fine-tuning that referenced this pull request Jul 16, 2026
pnpm 11.12.0 and 11.13.0 published their per-platform npm packages
(@pnpm/linux-x64, @pnpm/macos-arm64, @pnpm/win-x64, ...) without the
native binary (~1.9 kB metadata-only tarballs), so pnpm/action-setup
--standalone left @pnpm/exe's 34-byte placeholder in place and every
CI job died at actions/setup-node with:

  @pnpm/exe/pnpm: 1: This: not found

Upstream fixed this in 11.13.1 (pnpm/pnpm#12955; release-flow
regression from pnpm/pnpm#12949): the 11.13.1 platform packages ship
the binary again (verified: @pnpm/[email protected] links a 146 MB pnpm and
runs). Bump straight to 11.13.1 rather than the interim 11.11.0 pin.

Updated packageManager (hash via corepack), ci.yaml (comments + pnpm-11
matrix corepack prepare + a note not to pin 11.12.0/11.13.0), build.yaml,
AGENTS.md, and scaffold.ts.
@qodo-code-review qodo-code-review Bot mentioned this pull request Aug 3, 2026
2 tasks done
@qodo-code-review qodo-code-review Bot mentioned this pull request Aug 15, 2026
4 of 5 tasks
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.

Unify the TypeScript, Rust CLI/napi, and pnpr release flows under changesets

4 participants