Skip to content

feat(catalogs): support workspace protocol catalog entries - #14332

Merged
zkochan merged 15 commits into
mainfrom
vcs
Aug 29, 2026
Merged

zkochan merged 15 commits into
mainfrom
vcs

Conversation

@zkochan

@zkochan zkochan commented Aug 29, 2026 •

Copy link
Copy Markdown
Member

Summary

Adds the generic pnpm behavior needed by Bit-managed pnpm workspaces, without adding a Bit client or VCS command to pnpm:

  • allow workspace: values in default and named catalogs
  • dereference catalog: before converting workspace: when producing exportable package manifests
  • preserve declaration order in published dependencies

All VCS operations live in Bit. A regular workspace is adopted with bit pnpm sync, then uses ordinary bit status, bit snap, bit lane, bit import, and bit export. The earlier experimental Rust pnpm vcs wrapper and its clone/orchestration code have been removed.

Design: pnpm/rfcs#33
Bit implementation: teambit/bit#10675

Validation

  • full repository pre-push gate passed: TypeScript checks, spelling, metadata, Rust formatting, workspace clippy, rustdoc, dylint, typos, and Taplo
  • all 9,587 Rust tests passed
  • 300 config-reader tests passed (1 skipped)
  • 608 Rust config tests passed (1 skipped)

Checklist

  • Draft RFC and Bit implementation are cross-linked.
  • pnpm changes are generic package-manager functionality.
  • No Bit subprocess, VCS command, or orchestration remains in pnpm.

Written by an agent (Codex, GPT-5).

@coderabbitai

coderabbitai Bot commented Aug 29, 2026 •

Copy link
Copy Markdown
Contributor

Important

Approval pending

CodeRabbit has no unresolved comments, but it has not reviewed the latest commit.

Use the checkbox below to review the latest commit. CodeRabbit will approve the changes if it finds no blocking issues.

  • 🔍 Trigger review

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.

@github-actions

github-actions Bot commented Aug 29, 2026 •

Copy link
Copy Markdown
Contributor

Micro-Benchmark Results

Linux

group                                            main                                   pr
-----                                            ----                                   --
lockfile/parse_pnpm_lock                         1.00     11.8±0.04ms    31.7 MB/sec    1.03     12.2±0.04ms    30.6 MB/sec
packument/parse                                  1.08     41.2±0.36µs  1611.9 MB/sec    1.00     38.3±0.12µs  1734.0 MB/sec
tarball/download_dependency                      1.00      4.0±0.08ms  1093.7 KB/sec    1.03      4.1±0.19ms  1059.3 KB/sec
tarball_batch/cold_store_many_medium_tarballs    1.00    186.5±1.05ms 85.8 KElem/sec    1.11   206.5±21.89ms 77.5 KElem/sec
workspace_resolution/hoist_heavy                 1.01    277.7±5.62ms        ? ?/sec    1.00    275.2±2.83ms        ? ?/sec
workspace_sort/chained_projects                  1.00     16.4±0.14ms        ? ?/sec    1.03     16.9±0.08ms        ? ?/sec

@codecov-commenter

codecov-commenter commented Aug 29, 2026 •

Copy link
Copy Markdown

Codecov Report

✅ All modified and coverable lines are covered by tests.
✅ Project coverage is 88.61%. Comparing base (320a8cd) to head (3401f82).
⚠️ Report is 8 commits behind head on main.

Additional details and impacted files
@@            Coverage Diff             @@
##             main   #14332      +/-   ##
==========================================
+ Coverage   88.59%   88.61%   +0.02%     
==========================================
  Files         697      697              
  Lines      123377   123668     +291     
==========================================
+ Hits       109307   109592     +285     
- Misses      14070    14076       +6     

☔ 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.

@github-actions

github-actions Bot commented Aug 29, 2026 •

Copy link
Copy Markdown
Contributor

Integrated-Benchmark Report (Linux)

Commit: 3401f82d5ba8

Regular scenarios report direct and pnpr installs. The peer-heavy resolver scenario compares current Rust, main Rust, and TypeScript pnpm. Bencher consumes pacquet@HEAD and pnpr@HEAD.

The tables below show mean ± σ; Bencher thresholds on the minimum latency, which is far less perturbed by shared-runner contention (noise only adds time).

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

Command Mean [s] Min [s] Max [s] Relative
pacquet@HEAD 2.434 ± 0.137 2.262 2.616 1.72 ± 0.19
pacquet@main 2.344 ± 0.160 2.232 2.644 1.65 ± 0.19
pnpr@HEAD 1.417 ± 0.133 1.286 1.649 1.00
pnpr@main 1.494 ± 0.135 1.291 1.663 1.05 ± 0.14
BENCHMARK_REPORT.json
{
  "results": [
    {
      "command": "pacquet@HEAD",
      "mean": 2.4344359012,
      "stddev": 0.1372466352790868,
      "median": 2.4721397036,
      "user": 1.19187622,
      "system": 1.36562756,
      "min": 2.2616309221,
      "max": 2.6158491451
    },
    {
      "command": "pacquet@main",
      "mean": 2.344205217,
      "stddev": 0.16033703217848239,
      "median": 2.2496522476000003,
      "user": 1.1898525199999999,
      "system": 1.3646958599999999,
      "min": 2.2320272641,
      "max": 2.6442593281
    },
    {
      "command": "pnpr@HEAD",
      "mean": 1.4170911821999996,
      "stddev": 0.13284133065032858,
      "median": 1.3994751621,
      "user": 1.1088735199999997,
      "system": 1.2743594599999999,
      "min": 1.2860903171,
      "max": 1.6493716021
    },
    {
      "command": "pnpr@main",
      "mean": 1.4943753866000002,
      "stddev": 0.13486408109716083,
      "median": 1.5177882986000002,
      "user": 1.08772702,
      "system": 1.2743697599999997,
      "min": 1.2914386131,
      "max": 1.6634618251
    }
  ]
}

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

Command Mean [ms] Min [ms] Max [ms] Relative
pacquet@HEAD 219.8 ± 6.0 213.1 232.7 1.04 ± 0.05
pacquet@main 211.0 ± 7.1 201.1 222.0 1.00
pnpr@HEAD 233.7 ± 9.0 224.0 248.4 1.11 ± 0.06
pnpr@main 234.8 ± 5.7 228.4 245.3 1.11 ± 0.05
BENCHMARK_REPORT.json
{
  "results": [
    {
      "command": "pacquet@HEAD",
      "mean": 0.21975831900000004,
      "stddev": 0.005969262856472834,
      "median": 0.21934534300000003,
      "user": 0.20062197999999998,
      "system": 0.5239295000000002,
      "min": 0.21306524300000002,
      "max": 0.23271160500000002
    },
    {
      "command": "pacquet@main",
      "mean": 0.21097550439999999,
      "stddev": 0.007137371959275409,
      "median": 0.21005247000000002,
      "user": 0.20241018,
      "system": 0.472879,
      "min": 0.20110470700000002,
      "max": 0.221965663
    },
    {
      "command": "pnpr@HEAD",
      "mean": 0.23373160750000005,
      "stddev": 0.00901192009614513,
      "median": 0.2352012805,
      "user": 0.19411147999999998,
      "system": 0.5139603000000001,
      "min": 0.22396612700000001,
      "max": 0.248353492
    },
    {
      "command": "pnpr@main",
      "mean": 0.23477914660000004,
      "stddev": 0.005709332249602949,
      "median": 0.23350751950000004,
      "user": 0.20332767999999996,
      "system": 0.5020969999999999,
      "min": 0.22839545700000002,
      "max": 0.24533491200000002
    }
  ]
}

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

Command Mean [ms] Min [ms] Max [ms] Relative
pacquet@HEAD 5.8 ± 0.3 5.3 7.4 1.00 ± 0.07
pacquet@main 5.8 ± 0.3 5.2 8.6 1.00
pnpr@HEAD 6.2 ± 0.4 5.4 8.5 1.07 ± 0.08
pnpr@main 6.1 ± 0.3 5.3 8.1 1.05 ± 0.08
BENCHMARK_REPORT.json
{
  "results": [
    {
      "command": "pacquet@HEAD",
      "mean": 0.005792922567263429,
      "stddev": 0.00028005283310944236,
      "median": 0.0057852008,
      "user": 0.003265690179028133,
      "system": 0.0025717700255754473,
      "min": 0.0052538148,
      "max": 0.007370160800000001
    },
    {
      "command": "pacquet@main",
      "mean": 0.005774019485649206,
      "stddev": 0.00028840713239092355,
      "median": 0.005777596800000001,
      "user": 0.0034274987243735774,
      "system": 0.0023906667881548964,
      "min": 0.005215803800000001,
      "max": 0.0085777038
    },
    {
      "command": "pnpr@HEAD",
      "mean": 0.006159755990023749,
      "stddev": 0.00036589770599447725,
      "median": 0.006160944800000001,
      "user": 0.0032845573871733936,
      "system": 0.0029177115439429917,
      "min": 0.0053995378000000005,
      "max": 0.0084750708
    },
    {
      "command": "pnpr@main",
      "mean": 0.006077336972169818,
      "stddev": 0.0003284909139304344,
      "median": 0.0060897308,
      "user": 0.0035669364150943384,
      "system": 0.002552422075471699,
      "min": 0.0053191378,
      "max": 0.0081027638
    }
  ]
}

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

Command Mean [ms] Min [ms] Max [ms] Relative
pacquet@HEAD 6.0 ± 0.4 5.2 7.6 1.02 ± 0.09
pacquet@main 6.1 ± 0.4 5.2 9.0 1.04 ± 0.10
pnpr@HEAD 5.9 ± 0.3 5.2 6.8 1.00
pnpr@main 6.0 ± 0.3 5.3 7.1 1.02 ± 0.08
BENCHMARK_REPORT.json
{
  "results": [
    {
      "command": "pacquet@HEAD",
      "mean": 0.005990241953875338,
      "stddev": 0.0004169833537198725,
      "median": 0.005912082420000001,
      "user": 0.003675570135501352,
      "system": 0.0023549547425474253,
      "min": 0.0052222304200000005,
      "max": 0.0076403324200000015
    },
    {
      "command": "pacquet@main",
      "mean": 0.006101093889273742,
      "stddev": 0.000436680083501513,
      "median": 0.00608107492,
      "user": 0.0035660283798882686,
      "system": 0.0025682270949720677,
      "min": 0.005205087420000001,
      "max": 0.00900250342
    },
    {
      "command": "pnpr@HEAD",
      "mean": 0.005894773357158472,
      "stddev": 0.00034018175559139354,
      "median": 0.005838220420000001,
      "user": 0.003274850601092896,
      "system": 0.002657933060109288,
      "min": 0.005200921420000001,
      "max": 0.006806289420000001
    },
    {
      "command": "pnpr@main",
      "mean": 0.006026466784406782,
      "stddev": 0.00027800820113393785,
      "median": 0.006038920420000001,
      "user": 0.0036357120903954747,
      "system": 0.002424619774011301,
      "min": 0.005342546420000001,
      "max": 0.007091694420000001
    }
  ]
}

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

Command Mean [s] Min [s] Max [s] Relative
pacquet@HEAD 2.675 ± 0.012 2.659 2.703 1.69 ± 0.13
pacquet@main 2.662 ± 0.010 2.636 2.672 1.68 ± 0.13
pnpr@HEAD 1.594 ± 0.114 1.424 1.740 1.01 ± 0.11
pnpr@main 1.580 ± 0.120 1.397 1.746 1.00
BENCHMARK_REPORT.json
{
  "results": [
    {
      "command": "pacquet@HEAD",
      "mean": 2.6751881514799996,
      "stddev": 0.012232789375007679,
      "median": 2.67427285018,
      "user": 1.5177263799999998,
      "system": 1.29212448,
      "min": 2.6592365346799998,
      "max": 2.70313722468
    },
    {
      "command": "pacquet@main",
      "mean": 2.66171568878,
      "stddev": 0.010447129797647349,
      "median": 2.66153274418,
      "user": 1.4805341799999998,
      "system": 1.2754657799999998,
      "min": 2.63585869568,
      "max": 2.6720282376799998
    },
    {
      "command": "pnpr@HEAD",
      "mean": 1.5938748018800002,
      "stddev": 0.11386040794013144,
      "median": 1.56312643018,
      "user": 1.04898948,
      "system": 1.3124567800000002,
      "min": 1.42414839268,
      "max": 1.7395674916800001
    },
    {
      "command": "pnpr@main",
      "mean": 1.58003038678,
      "stddev": 0.12046396354904099,
      "median": 1.5739190206800002,
      "user": 1.05084208,
      "system": 1.2318268800000003,
      "min": 1.39672820768,
      "max": 1.7462283446800002
    }
  ]
}

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

Command Mean [ms] Min [ms] Max [ms] Relative
pacquet@HEAD 358.3 ± 19.8 331.0 391.4 1.32 ± 0.08
pacquet@main 351.1 ± 15.1 330.3 370.8 1.30 ± 0.06
pnpr@HEAD 270.9 ± 6.9 261.0 285.4 1.00
pnpr@main 275.1 ± 2.7 271.7 279.4 1.02 ± 0.03
BENCHMARK_REPORT.json
{
  "results": [
    {
      "command": "pacquet@HEAD",
      "mean": 0.35826112574,
      "stddev": 0.01978349909022351,
      "median": 0.35617903404000006,
      "user": 0.41485142,
      "system": 0.63505436,
      "min": 0.33099746904,
      "max": 0.39139400104
    },
    {
      "command": "pacquet@main",
      "mean": 0.35105327734,
      "stddev": 0.015072668660231613,
      "median": 0.35369315054000006,
      "user": 0.39629162000000007,
      "system": 0.63396746,
      "min": 0.33032939704000003,
      "max": 0.37084862004
    },
    {
      "command": "pnpr@HEAD",
      "mean": 0.27085189834,
      "stddev": 0.006936812997864224,
      "median": 0.27173786354,
      "user": 0.18098521999999997,
      "system": 0.51132586,
      "min": 0.26095369604,
      "max": 0.28542791504000004
    },
    {
      "command": "pnpr@main",
      "mean": 0.27508816834000005,
      "stddev": 0.0026689147460128666,
      "median": 0.27507517204,
      "user": 0.18151362,
      "system": 0.53180296,
      "min": 0.27171146404,
      "max": 0.27939572304
    }
  ]
}

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

Command Mean [s] Min [s] Max [s] Relative
pacquet@HEAD 1.824 ± 0.014 1.801 1.842 6.72 ± 0.09
pacquet@main 1.811 ± 0.011 1.790 1.825 6.67 ± 0.08
pnpr@HEAD 0.271 ± 0.003 0.268 0.276 1.00
pnpr@main 0.273 ± 0.005 0.267 0.282 1.01 ± 0.02
BENCHMARK_REPORT.json
{
  "results": [
    {
      "command": "pacquet@HEAD",
      "mean": 1.8242902879999996,
      "stddev": 0.013816239131349106,
      "median": 1.8280823183,
      "user": 0.6412696,
      "system": 0.71457546,
      "min": 1.8006661268,
      "max": 1.8419862108
    },
    {
      "command": "pacquet@main",
      "mean": 1.8106248414,
      "stddev": 0.01132306724771703,
      "median": 1.8132577658,
      "user": 0.6304092000000001,
      "system": 0.7217384599999999,
      "min": 1.7898599238,
      "max": 1.8248684867999998
    },
    {
      "command": "pnpr@HEAD",
      "mean": 0.2713261647,
      "stddev": 0.0027533136243278232,
      "median": 0.2706943018,
      "user": 0.18589680000000003,
      "system": 0.52358876,
      "min": 0.26835251480000005,
      "max": 0.27619990180000004
    },
    {
      "command": "pnpr@main",
      "mean": 0.2733802212,
      "stddev": 0.004695099735923528,
      "median": 0.27456275280000003,
      "user": 0.18648990000000001,
      "system": 0.52396356,
      "min": 0.26731780380000003,
      "max": 0.28155545680000005
    }
  ]
}

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

Command Mean [ms] Min [ms] Max [ms] Relative
pacquet@HEAD 204.8 ± 12.1 185.7 224.7 2.12 ± 0.13
pacquet@main 217.8 ± 22.2 182.4 257.5 2.25 ± 0.23
pnpr@HEAD 97.1 ± 1.7 93.3 100.1 1.00 ± 0.03
pnpr@main 96.8 ± 2.0 93.3 101.2 1.00
BENCHMARK_REPORT.json
{
  "results": [
    {
      "command": "pacquet@HEAD",
      "mean": 0.2047664171723077,
      "stddev": 0.012144772722093532,
      "median": 0.20433574848,
      "user": 0.15636311230769231,
      "system": 0.052872741538461526,
      "min": 0.18566747248,
      "max": 0.22474851348
    },
    {
      "command": "pacquet@main",
      "mean": 0.21784992723,
      "stddev": 0.022230000318365962,
      "median": 0.21978408548,
      "user": 0.15679225333333333,
      "system": 0.05794377999999999,
      "min": 0.18244048448,
      "max": 0.25754277348
    },
    {
      "command": "pnpr@HEAD",
      "mean": 0.09711185834206897,
      "stddev": 0.0017426084124482096,
      "median": 0.09687490748,
      "user": 0.030638316551724148,
      "system": 0.00933219724137931,
      "min": 0.09331400348,
      "max": 0.10007336148
    },
    {
      "command": "pnpr@main",
      "mean": 0.09681043434206899,
      "stddev": 0.001979851938647537,
      "median": 0.09578494448,
      "user": 0.028995247586206904,
      "system": 0.01032950206896552,
      "min": 0.09334766648,
      "max": 0.10116010848
    }
  ]
}

Scenario: Isolated linker: peer-heavy resolve, hot cache, offline

Command Mean [ms] Min [ms] Max [ms] Relative
pacquet@HEAD 502.8 ± 91.5 422.5 720.1 1.00
pacquet@main 503.9 ± 44.9 439.2 576.1 1.00 ± 0.20
pnpm@HEAD 2938.2 ± 73.4 2832.8 3078.7 5.84 ± 1.07
BENCHMARK_REPORT.json
{
  "results": [
    {
      "command": "pacquet@HEAD",
      "mean": 0.5027748583133334,
      "stddev": 0.0915249424102169,
      "median": 0.48921253098,
      "user": 0.45664998,
      "system": 0.1062485622222222,
      "min": 0.42248292398,
      "max": 0.72010278798
    },
    {
      "command": "pacquet@main",
      "mean": 0.5039250810911112,
      "stddev": 0.04486904141188301,
      "median": 0.48297583198,
      "user": 0.46527831333333336,
      "system": 0.10749789555555556,
      "min": 0.43922893198,
      "max": 0.5761088119800001
    },
    {
      "command": "pnpm@HEAD",
      "mean": 2.9381645579799995,
      "stddev": 0.07341050889320629,
      "median": 2.9453951189799996,
      "user": 4.555213868888888,
      "system": 0.26684200666666663,
      "min": 2.83280620598,
      "max": 3.07873913198
    }
  ]
}

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

Command Mean [s] Min [s] Max [s] Relative
pacquet@HEAD 4.350 ± 0.086 4.279 4.533 1.26 ± 0.05
pacquet@main 4.349 ± 0.066 4.287 4.513 1.26 ± 0.04
pnpr@HEAD 3.444 ± 0.105 3.346 3.653 1.00
pnpr@main 3.455 ± 0.095 3.362 3.671 1.00 ± 0.04
BENCHMARK_REPORT.json
{
  "results": [
    {
      "command": "pacquet@HEAD",
      "mean": 4.350069834259999,
      "stddev": 0.08575102129420209,
      "median": 4.30748069126,
      "user": 1.3629563599999999,
      "system": 1.48328688,
      "min": 4.279281576760001,
      "max": 4.53255345376
    },
    {
      "command": "pacquet@main",
      "mean": 4.34855294536,
      "stddev": 0.06578774697009168,
      "median": 4.325518580260001,
      "user": 1.27730786,
      "system": 1.4584124799999998,
      "min": 4.28705746576,
      "max": 4.513311502760001
    },
    {
      "command": "pnpr@HEAD",
      "mean": 3.44439470266,
      "stddev": 0.10530283683038238,
      "median": 3.41368503676,
      "user": 1.22028326,
      "system": 1.31670918,
      "min": 3.34563994476,
      "max": 3.6527031427599996
    },
    {
      "command": "pnpr@main",
      "mean": 3.4552249562599995,
      "stddev": 0.09487122617159825,
      "median": 3.43301186376,
      "user": 1.22214066,
      "system": 1.3569269800000001,
      "min": 3.36238108576,
      "max": 3.67082830776
    }
  ]
}

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

Same install as the isolated fresh-restore hot/hot scenario, into the shared virtual store — the layout pnpm 12 installs into by default. Comparable to that scenario head-to-head.

Command Mean [ms] Min [ms] Max [ms] Relative
pacquet@HEAD 152.5 ± 4.9 144.5 162.3 1.01 ± 0.04
pacquet@main 150.7 ± 3.0 146.3 156.3 1.00
pnpr@HEAD 166.2 ± 3.8 160.8 175.7 1.10 ± 0.03
pnpr@main 173.0 ± 3.8 166.2 180.1 1.15 ± 0.03
BENCHMARK_REPORT.json
{
  "results": [
    {
      "command": "pacquet@HEAD",
      "mean": 0.15248400085294117,
      "stddev": 0.004934170414406563,
      "median": 0.1508518435,
      "user": 0.19510761647058825,
      "system": 0.1801904823529412,
      "min": 0.1444878365,
      "max": 0.1622519775
    },
    {
      "command": "pacquet@main",
      "mean": 0.15067535567647058,
      "stddev": 0.003012035929223337,
      "median": 0.1497769285,
      "user": 0.18647861647058822,
      "system": 0.18923442352941178,
      "min": 0.1463323545,
      "max": 0.1562669905
    },
    {
      "command": "pnpr@HEAD",
      "mean": 0.16624952531250003,
      "stddev": 0.003812565102904591,
      "median": 0.165486353,
      "user": 0.19602700249999996,
      "system": 0.18138622499999998,
      "min": 0.1608459325,
      "max": 0.1757107695
    },
    {
      "command": "pnpr@main",
      "mean": 0.1729663690625,
      "stddev": 0.003846192823166858,
      "median": 0.17309749200000002,
      "user": 0.20286156499999997,
      "system": 0.18964578750000002,
      "min": 0.1662414525,
      "max": 0.1801054745
    }
  ]
}

@github-actions

github-actions Bot commented Aug 29, 2026 •

Copy link
Copy Markdown
Contributor

🐰 Bencher Report

Projectpnpm's project
Branchpr/14332
Testbedpacquet
Click to view all benchmark results
BenchmarkLatencyBenchmark Result
milliseconds (ms)
(Result Δ%)
Upper Boundary
milliseconds (ms)
(Limit %)
gvs-linker.fresh-restore.hot-cache.hot-store📈 view plot
🚷 view threshold
144.49 ms
(-8.26%)Baseline: 157.50 ms
188.99 ms
(76.45%)
isolated-linker.fresh-install.cold-cache.cold-store📈 view plot
🚷 view threshold
2,659.24 ms
(-1.51%)Baseline: 2,699.99 ms
3,239.98 ms
(82.08%)
isolated-linker.fresh-install.cold-cache.hot-store📈 view plot
🚷 view threshold
1,800.67 ms
(-1.40%)Baseline: 1,826.17 ms
2,191.41 ms
(82.17%)
isolated-linker.fresh-install.hot-cache.hot-store📈 view plot
🚷 view threshold
331.00 ms
(-7.33%)Baseline: 357.20 ms
428.64 ms
(77.22%)
isolated-linker.fresh-resolve.hot-cache.offline📈 view plot
🚷 view threshold
185.67 ms
(-9.74%)Baseline: 205.70 ms
246.83 ms
(75.22%)
isolated-linker.fresh-restore.cold-cache.cold-store📈 view plot
🚷 view threshold
2,261.63 ms
(-3.96%)Baseline: 2,354.98 ms
2,825.98 ms
(80.03%)
isolated-linker.fresh-restore.cold-cache.cold-store.cold-pnpr📈 view plot
🚷 view threshold
4,279.28 ms
(-2.21%)Baseline: 4,375.87 ms
5,251.05 ms
(81.49%)
isolated-linker.fresh-restore.hot-cache.hot-store📈 view plot
🚷 view threshold
213.07 ms
(-6.80%)Baseline: 228.62 ms
274.34 ms
(77.66%)
isolated-linker.peer-heavy-resolve.hot-cache.offline📈 view plot
🚷 view threshold
422.48 ms
(-16.05%)Baseline: 503.26 ms
603.92 ms
(69.96%)
isolated-linker.repeat-install.cold-cache.hot-store📈 view plot
🚷 view threshold
5.22 ms
(-13.34%)Baseline: 6.03 ms
7.23 ms
(72.22%)
isolated-linker.repeat-install.hot-cache.hot-store📈 view plot
🚷 view threshold
5.25 ms
(-12.53%)Baseline: 6.01 ms
7.21 ms
(72.89%)
🐰 View full continuous benchmarking report in Bencher

@github-actions

github-actions Bot commented Aug 29, 2026 •

Copy link
Copy Markdown
Contributor

🐰 Bencher Report

Projectpnpm's project
Branchpr/14332
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)
gvs-linker.fresh-restore.hot-cache.hot-store📈 view plot
⚠️ NO THRESHOLD
160.85 ms
isolated-linker.fresh-install.cold-cache.cold-store📈 view plot
⚠️ NO THRESHOLD
1,424.15 ms
isolated-linker.fresh-install.cold-cache.hot-store📈 view plot
⚠️ NO THRESHOLD
268.35 ms
isolated-linker.fresh-install.hot-cache.hot-store📈 view plot
⚠️ NO THRESHOLD
260.95 ms
isolated-linker.fresh-resolve.hot-cache.offline📈 view plot
⚠️ NO THRESHOLD
93.31 ms
isolated-linker.fresh-restore.cold-cache.cold-store📈 view plot
⚠️ NO THRESHOLD
1,286.09 ms
isolated-linker.fresh-restore.cold-cache.cold-store.cold-pnpr📈 view plot
⚠️ NO THRESHOLD
3,345.64 ms
isolated-linker.fresh-restore.hot-cache.hot-store📈 view plot
⚠️ NO THRESHOLD
223.97 ms
isolated-linker.repeat-install.cold-cache.hot-store📈 view plot
⚠️ NO THRESHOLD
5.20 ms
isolated-linker.repeat-install.hot-cache.hot-store📈 view plot
⚠️ NO THRESHOLD
5.40 ms
🐰 View full continuous benchmarking report in Bencher

@zkochan zkochan changed the title feat(cli): add Bit-backed workspace VCS feat(catalogs): support workspace protocol catalog entries Aug 29, 2026
@zkochan
zkochan marked this pull request as ready for review August 29, 2026 22:14
Copilot AI lite review requested due to automatic review settings August 29, 2026 22:14

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

PR Summary by Qodo

Support workspace protocol entries in catalogs

✨ Enhancement 🧪 Tests ⚙️ Configuration changes 🕐 20-40 Minutes

Grey Divider

AI Description

• Allow default and named catalogs to resolve dependencies through workspace protocol specifiers.
• Resolve catalogs before workspace specifiers when generating registry-ready package manifests.
• Preserve opaque workspace VCS metadata and add cross-version regression coverage.
Diagram

graph TD
  A["Package manifest"] --> C["Catalog resolver"] --> D["Install resolver"] --> E["Local workspace"]
  B["Workspace YAML"] --> C
  C --> F["Export converter"] --> G["Registry manifest"]
  B --> H["Config reader"]
Loading
High-Level Assessment

The current separation is appropriate: catalog resolution remains generic, workspace conversion stays in the context-aware install and publish layers, and VCS metadata remains opaque rather than introducing Bit-specific behavior. Resolving workspace entries during workspace YAML parsing was considered but would couple configuration loading to project-specific dependency resolution and duplicate downstream logic.

Files changed (14) +181 / -77

Enhancement (4) +14 / -48
lib.rsPermit workspace protocol catalog values +1/-21

Permit workspace protocol catalog values

• Removes the Rust resolver's workspace-protocol misconfiguration error so catalog lookups can return workspace specifiers. Link and file protocols remain rejected.

pnpm/crates/catalogs-resolver/src/lib.rs

create.rsDereference catalogs before workspace conversion +11/-8

Dereference catalogs before workspace conversion

• Reorders Rust publish dependency conversion to resolve catalog entries before workspace and JSR protocols. This allows catalog-backed workspace ranges to become registry-compatible installed versions for regular and peer dependencies.

pnpm/crates/exportable-manifest/src/create.rs

resolveFromCatalog.tsAllow workspace catalog values in pnpm v11 +0/-17

Allow workspace catalog values in pnpm v11

• Removes the TypeScript resolver's workspace-protocol rejection while retaining recursive catalog, link, and file validation.

pnpm11/catalogs/resolver/src/resolveFromCatalog.ts

index.tsReorder pnpm v11 publish converters +2/-2

Reorder pnpm v11 publish converters

• Runs catalog replacement before workspace replacement for regular and peer dependencies. Catalog-backed workspace values can therefore be converted into publishable registry ranges.

pnpm11/releasing/exportable-manifest/src/index.ts

Tests (7) +150 / -26
tests.rsVerify Rust workspace catalog resolution +8/-15

Verify Rust workspace catalog resolution

• Replaces the rejection assertion with coverage confirming that a named catalog returns its workspace specifier.

pnpm/crates/catalogs-resolver/src/tests.rs

catalog.rsExercise local-to-registry catalog switching +56/-0

Exercise local-to-registry catalog switching

• Adds an end-to-end install test that switches a catalog entry from a local workspace package to a registry version. It verifies installed versions, lockfile resolution, and preservation of the manifest's catalog declaration.

pnpm/crates/cli/tests/suite/catalog.rs

global.rsIsolate global shim test configuration +1/-0

Isolate global shim test configuration

• Prevents ambient pnpm configuration from affecting global shim dispatch coverage.

pnpm/crates/cli/tests/suite/global.rs

tests.rsCover VCS workspace metadata parsing +12/-0

Cover VCS workspace metadata parsing

• Extends workspace YAML fixtures to verify nested VCS metadata is retained and removed by workspace-only field clearing.

pnpm/crates/config/src/workspace_yaml/tests.rs

tests.rsTest catalog-backed workspace publishing +20/-0

Test catalog-backed workspace publishing

• Confirms a catalog entry containing 'workspace:^' is exported as a caret range using the installed package version.

pnpm/crates/exportable-manifest/src/create/tests.rs

resolveFromCatalog.test.tsVerify pnpm v11 workspace catalog resolution +11/-11

Verify pnpm v11 workspace catalog resolution

• Adds successful workspace catalog resolution coverage and removes the obsolete misconfiguration expectation.

pnpm11/catalogs/resolver/test/resolveFromCatalog.test.ts

index.test.tsTest pnpm v11 workspace catalog exports +42/-0

Test pnpm v11 workspace catalog exports

• Adds an integration test proving a catalog-backed workspace dependency publishes with the installed package's caret range.

pnpm11/releasing/exportable-manifest/test/index.test.ts

Documentation (2) +11 / -3
workspace-protocol-catalogs.mdDeclare workspace catalog protocol releases +8/-0

Declare workspace catalog protocol releases

• Adds minor release entries for the catalog resolver, exportable-manifest package, pnpm, and pacquet. Documents support for workspace dependencies resolved through catalogs.

.changeset/workspace-protocol-catalogs.md

checkDepsStatus.tsAlign local-spec documentation with catalog support +3/-3

Align local-spec documentation with catalog support

• Updates dependency-status comments to reflect that catalog resolvers now reject only link and file protocols, not workspace values.

pnpm11/deps/status/src/checkDepsStatus.ts

Other (1) +6 / -0
workspace_yaml.rsRecognize opaque workspace VCS metadata +6/-0

Recognize opaque workspace VCS metadata

• Adds a raw JSON value for durable workspace VCS identity so all commands recognize and display it. The field is cleared with other workspace-only settings and cannot leak from global configuration.

pnpm/crates/config/src/workspace_yaml.rs

@greptile-apps

greptile-apps Bot commented Aug 29, 2026 •

Copy link
Copy Markdown
Contributor

Confidence Score: 5/5

The PR appears safe to merge.

No blocking failure remains; both previously reported peer workspace conversion issues are fixed in the TypeScript and Rust implementations with matching regression coverage.

Reviews (7): Last reviewed commit: "revert(config): remove workspace metadat..." | Re-trigger Greptile

@qodo-code-review

qodo-code-review Bot commented Aug 29, 2026 •

Copy link
Copy Markdown

Code Review by Qodo

🐞 Bugs (0) 📘 Rule violations (1) 📜 Skill insights (0)

Grey Divider


Action required

1. Pinned workspaces reject metadata ✓ Resolved 🐞 Bug ≡ Correctness
Description
The added test calls serde_saphyr::from_str directly, so it never exercises
load_at/collect_key_issues, which classifies the new opaque vcs block as unrecognized. When
the running pnpm matches the workspace's pinned version, ordinary commands then fail with
ERR_PNPM_UNRECOGNIZED_WORKSPACE_SETTINGS, so this metadata is not actually tolerated.
Code

pnpm/crates/config/src/workspace_yaml/tests.rs[R208-209]

+vcs:
+  1: metadata
Relevance

●●● Strong

Recent accepted precedent requires full workspace-loader regression coverage for unknown YAML keys;
direct deserialization misses strict unrecognized-key errors.

PR-#14046

ⓘ Recommendations generated based on similar findings in past PRs

Evidence
The changed fixture only invokes direct deserialization. The real loader subsequently calls
collect_key_issues, which adds every unknown top-level key to unrecognized; command setup passes
those issues to reporting in strict mode, where an unrecognized key is an error, and the existing
integration test demonstrates that this path exits with ERR_PNPM_UNRECOGNIZED_WORKSPACE_SETTINGS.

pnpm/crates/config/src/workspace_yaml/tests.rs[199-212]
pnpm/crates/config/src/workspace_yaml.rs[1608-1623]
pnpm/crates/config/src/workspace_yaml.rs[1691-1708]
pnpm/crates/cli/src/cli_args/config_warnings.rs[103-127]
pnpm/crates/cli/src/cli_args/pre_command.rs[295-300]
pnpm/crates/cli/tests/suite/workspace_settings_check.rs[27-42]

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

## Issue description
Opaque top-level `vcs` metadata is successfully deserialized but is subsequently reported as an unrecognized setting, which becomes a fatal error in a workspace pinned to the running pnpm version.

## Issue Context
The regression test bypasses `WorkspaceSettings::load_at`, so it does not cover key-issue collection or CLI enforcement. Keep `vcs` opaque rather than deserializing it into a JSON-shaped type, but explicitly exempt this owner-metadata key from unrecognized-setting reporting and add pinned-command coverage.

## Fix Focus Areas
- pnpm/crates/config/src/workspace_yaml.rs[1695-1708]
- pnpm/crates/config/src/workspace_yaml/tests.rs[199-212]
- pnpm/crates/cli/tests/suite/workspace_settings_check.rs[27-42]

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


2. Alias peer ranges corrupted ✓ Resolved 🐞 Bug ≡ Correctness
Description
workspace_peer_uses_alias_or_path/workspacePeerUsesAliasOrPath rejects aliases whose valid
semver selector contains whitespace or ||, causing a peer such as workspace:plugh@>=1 <3 to take
the generic range-rewriter path and become malformed, such as 2.0.0plugh@>=1 <3, instead of
npm:plugh@>=1 <3. Publishing through the Rust or TypeScript pnpm exportable-manifest path can
therefore emit an invalid or incorrect peer dependency for a supported workspace alias form.
Code

pnpm/crates/exportable-manifest/src/replace.rs[R169-171]

+    workspace_spec.rfind('@').is_some_and(|index| index > 0)
+        && !workspace_spec.chars().any(char::is_whitespace)
+        && !workspace_spec.contains("||")
Relevance

●●● Strong

Clear correctness bug corrupts supported alias ranges; recent repository history accepts semver and
cross-stack behavior fixes.

PR-#14114
PR-#14295

ⓘ Recommendations generated based on similar findings in past PRs

Evidence
The shared workspace parser captures everything after the alias separator verbatim as the version,
and the resolver sends non-sentinel versions to semver, demonstrating that compound selectors
containing whitespace or unions are supported. The new predicate nevertheless excludes whitespace
and ||; when it returns false, the peer fallback regex matches only the empty workspace: prefix
because there is no leading comparator/version, then prepends the installed version to the untouched
alias text, while the regular replaceWorkspaceProtocol converter already correctly emits
npm:<alias>@<range>.

pnpm/crates/workspace-spec/src/lib.rs[13-17]
pnpm/crates/workspace-spec/src/lib.rs[29-31]
pnpm/crates/exportable-manifest/src/replace.rs[67-111]
pnpm/crates/exportable-manifest/src/replace.rs[129-158]
pnpm11/workspace/spec-parser/src/index.ts[1-16]
pnpm11/workspace/range-resolver/src/index.ts[3-11]
pnpm11/releasing/exportable-manifest/src/index.ts[175-203]
pnpm11/releasing/exportable-manifest/src/index.ts[215-233]

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

## Issue description
Valid workspace aliases with compound semver selectors are misclassified and corrupted during peer dependency export in both the Rust and TypeScript pnpm publish paths.

## Issue Context
`WorkspaceSpec` and the shared workspace-spec grammar capture the alias selector verbatim, and the workspace range resolver accepts arbitrary semver ranges, including whitespace and `||`. Alias detection should follow the workspace grammar and distinguish the alias portion rather than reject characters that are valid within its version selector.

## Fix Focus Areas
- pnpm/crates/exportable-manifest/src/replace.rs[162-172]
- pnpm/crates/exportable-manifest/src/create/tests.rs[143-178]
- pnpm11/releasing/exportable-manifest/src/index.ts[211-240]
- pnpm11/releasing/exportable-manifest/test/index.test.ts[353-412]

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



Remediation recommended

3. Global vcs warning diverges ✓ Resolved 📘 Rule violation ⌂ Architecture
Description
Rust's warn_about_dropped_keys now silently accepts and drops a global vcs key in config.yaml,
even though the exemption is intended only for opaque ownership metadata in pnpm-workspace.yaml.
TypeScript pnpm still reports vcs as unknown in global config, creating an undocumented
user-visible warning difference and hiding misplaced or mistyped settings.
Code

pnpm/crates/config/src/workspace_yaml.rs[R1428-1429]

+            if key == SCHEMA_DIRECTIVE_KEY || OPAQUE_WORKSPACE_MANIFEST_KEYS.contains(&key.as_str())
+            {
Relevance

●●● Strong

Recent accepted precedent explicitly requires Rust and TypeScript user-visible config behavior
parity; this finding identifies the same divergence.

PR-#13945

ⓘ Recommendations generated based on similar findings in past PRs

Evidence
Rule 713428 covers user-visible config warnings. Rust's load_global reads config.yaml, clears
workspace-only fields, and calls warn_about_dropped_keys, which now skips vcs at lines 1428-1429
before constructing the global file's unrecognized-key warning; by contrast, TypeScript's global
YAML loop at lines 335-350 exempts only $schema, and its opaque-key exemption is scoped to the
workspace-manifest loop. This confirms that suppressing vcs globally is not required for parity,
while the PR description documents only workspace metadata and does not identify a global-config
divergence.

Rule 713428: Keep pnpm TypeScript and pacquet Rust user-visible behavior changes in sync
pnpm/crates/config/src/workspace_yaml.rs[1403-1414]
pnpm/crates/config/src/workspace_yaml.rs[1423-1431]
pnpm11/config/reader/src/index.ts[335-350]
pnpm/crates/config/src/workspace_yaml.rs[1324-1349]
pnpm/crates/config/src/workspace_yaml.rs[1403-1469]
pnpm11/config/reader/src/index.ts[515-554]

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 opaque workspace-metadata exemption was also applied to Rust's global-config warning path, causing `vcs` in `config.yaml` to be silently accepted and dropped even though TypeScript pnpm does not exempt it there.

## Issue Context
`vcs` is workspace-owner metadata, not a global pnpm setting. Apply the opaque-key exemption only while collecting workspace-manifest key issues; global config should continue warning about keys it cannot consume. Add coverage ensuring that global `config.yaml` reports `vcs` consistently in both stacks.

## Fix Focus Areas
- pnpm/crates/config/src/workspace_yaml.rs[1414-1454]
- pnpm/crates/config/src/workspace_yaml.rs[1694-1715]
- pnpm11/config/reader/src/index.ts[335-350]

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


4. replaceWorkspaceProtocolPeerDependency has four parameters ✓ Resolved 📘 Rule violation ⚙ Maintainability
Description
The modified TypeScript function still takes four positional parameters: depName, depSpec,
dir, and modulesDir. Rule 713433 requires modified TypeScript functions to use at most three
parameters or consolidate them into an options object.
Code

pnpm11/releasing/exportable-manifest/src/index.ts[212]

+  const workspaceSpec = WorkspaceSpec.parse(depSpec)
Relevance

●●● Strong

Recent matching precedents accept refactoring four-parameter TypeScript helpers into options
objects.

PR-#14259
PR-#13464
PR-#13901

ⓘ Recommendations generated based on similar findings in past PRs

Evidence
Rule 713433 applies to every modified TypeScript function. The changed implementation belongs to a
function whose declaration has four positional parameters, and the new path-handling branch directly
uses all four.

Rule 713433: Limit TypeScript functions to three parameters or fewer
pnpm11/releasing/exportable-manifest/src/index.ts[207-220]

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

## Issue description
`replaceWorkspaceProtocolPeerDependency` is modified by this PR but retains four positional parameters, exceeding the three-parameter limit.

## Issue Context
Keep `depName` and `depSpec` positional if desired, and combine `dir` and optional `modulesDir` into a typed options object. Update converter wiring and all direct call sites accordingly.

## Fix Focus Areas
- pnpm11/releasing/exportable-manifest/src/index.ts[207-220]

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


5. Whitespace classification diverges across stacks ✓ Resolved 📘 Rule violation ⌂ Architecture
Description
The TypeScript helper rejects only a literal space while the mirrored Rust helper rejects every
Unicode whitespace character. A catalog peer spec such as workspace:[email protected]\t therefore takes
different conversion paths and produces different publish behavior in pnpm and pacquet.
Code

pnpm11/releasing/exportable-manifest/src/index.ts[240]

+  return workspaceSpec.lastIndexOf('@') > 0 && !workspaceSpec.includes(' ') && !workspaceSpec.includes('||')
Relevance

●●● Strong

Direct Rust/TypeScript parity mismatch in user-visible conversion; recent history accepts
cross-stack consistency fixes.

PR-#14295
PR-#14140

ⓘ Recommendations generated based on similar findings in past PRs

Evidence
Compliance rule 713428 requires matching user-visible behavior across the TypeScript and Rust
implementations. The new TypeScript predicate at line 240 excludes only U+0020, whereas the mirrored
Rust predicate uses char::is_whitespace at
pnpm/crates/exportable-manifest/src/replace.rs[169-171], so identical manifest input is classified
differently.

Rule 713428: Keep pnpm TypeScript and pacquet Rust user-visible behavior changes in sync
pnpm11/releasing/exportable-manifest/src/index.ts[236-240]
pnpm/crates/exportable-manifest/src/replace.rs[162-171]

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 new TypeScript and Rust alias/path classifiers disagree on whitespace: TypeScript checks only `includes(' ')`, while Rust uses `char::is_whitespace`. This can route the same workspace peer spec through different publish conversions.

## Issue Context
Keep pnpm and pacquet behavior identical. Prefer each stack's existing workspace-spec parser over parallel ad-hoc syntax tests, and add equivalent regression coverage for whitespace-bearing input.

## Fix Focus Areas
- pnpm11/releasing/exportable-manifest/src/index.ts[236-240]
- pnpm/crates/exportable-manifest/src/replace.rs[162-171]
- pnpm11/releasing/exportable-manifest/test/index.test.ts[360-412]
- pnpm/crates/exportable-manifest/src/create/tests.rs[143-176]

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


View medium (3)
6. vcs comment names removed command ⊘ Outdated 📘 Rule violation ⚙ Maintainability
Description
The new comment says a VCS command and workspace-manifest reader validate the schema, but this
branch contains no pnpm VCS command or vcs schema validator and the field is deliberately stored
as an opaque JSON value. This documents a removed implementation rather than current behavior.
Code

pnpm/crates/config/src/workspace_yaml.rs[R566-568]

+    /// Durable VCS workspace identity. The VCS command and workspace-manifest
+    /// reader validate its schema; config carries the raw structural value so
+    /// it is recognized by every command and shown by `pnpm config get/list`.
Relevance

●●● Strong

Recent config precedent accepts rewriting comments to describe current behavior and remove stale
implementation references.

PR-#14285

ⓘ Recommendations generated based on similar findings in past PRs

Evidence
Rule 772199 requires changed comments to describe current behavior and forbids references to removed
implementations. Repository search finds the added comment as the only Rust reference to a `VCS
command, while the declared type is an unvalidated Option<serde_json::Value>`.

Rule 772199: Comments must describe current behavior, not historical implementations
pnpm/crates/config/src/workspace_yaml.rs[566-570]

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

## Issue description
Rewrite the `vcs` field comment so it describes the current contract rather than claiming removed pnpm components validate the schema.

## Issue Context
The PR removes pnpm's experimental VCS command and stores this value opaquely as `serde_json::Value`. If Bit validates the schema externally, identify it as the external owner rather than a pnpm command or reader.

## Fix Focus Areas
- pnpm/crates/config/src/workspace_yaml.rs[566-569]

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


7. vcs lacks TypeScript parity ⊘ Outdated 📘 Rule violation ⌂ Architecture
Description
Rust now recognizes vcs workspace metadata and exposes it through pnpm config get/list, but
TypeScript pnpm has no matching workspace-manifest/config setting and the PR description does not
call out the pending port. The same workspace file therefore has different user-visible config
behavior between pnpm and pacquet.
Code

pnpm/crates/config/src/workspace_yaml.rs[R566-570]

+    /// Durable VCS workspace identity. The VCS command and workspace-manifest
+    /// reader validate its schema; config carries the raw structural value so
+    /// it is recognized by every command and shown by `pnpm config get/list`.
+    /// Like packages and catalogs, it is never inherited from global config.
+    pub vcs: Option<serde_json::Value>,
Relevance

●●● Strong

Recent precedent accepts findings requiring Rust/TypeScript parity for new user-visible
configuration behavior.

PR-#13945

ⓘ Recommendations generated based on similar findings in past PRs

Evidence
Rule 713428 requires every one-stack user-visible config or manifest behavior change to be mirrored
or explicitly called out. The added Rust field promises recognition by every command and visibility
in config get/list, while the TypeScript WorkspaceManifest and its exhaustive known-key list
contain catalog and catalogs but no vcs; configToRecord only emits fields present in merged
config and explicitly-set keys.

Rule 713428: Keep pnpm TypeScript and pacquet Rust user-visible behavior changes in sync
pnpm/crates/config/src/workspace_yaml.rs[566-570]
pnpm11/workspace/workspace-manifest-reader/src/index.ts[21-36]
pnpm11/config/reader/src/unknownSettings.ts[13-46]
pnpm11/config/commands/src/configToRecord.ts[29-45]

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 Rust config stack recognizes and exposes the workspace-only `vcs` value, while the TypeScript config stack does not. Implement equivalent TypeScript handling, or explicitly document the pending TypeScript port as a known divergence in the PR description.

## Issue Context
TypeScript currently omits `vcs` from `WorkspaceManifest` and from the known workspace setting keys used by config handling. Merely parsing the raw YAML object does not place this field in the merged config shown by `config get/list`.

## Fix Focus Areas
- pnpm/crates/config/src/workspace_yaml.rs[566-570]
- pnpm11/workspace/workspace-manifest-reader/src/index.ts[21-36]
- pnpm11/config/reader/src/unknownSettings.ts[13-46]

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


8. Opaque YAML becomes rejectable ⊘ Outdated 🐞 Bug ≡ Correctness
Description
Typing the newly recognized vcs block as serde_json::Value rejects valid YAML mappings with
non-string keys (for example, vcs: {1: metadata}), because JSON objects require string keys. Since
this key was previously unknown and ignored, such metadata now makes load_at return ParseYaml,
preventing pacquet commands from loading the workspace.
Code

pnpm/crates/config/src/workspace_yaml.rs[570]

+    pub vcs: Option<serde_json::Value>,
Relevance

●●● Strong

Recent workspace YAML precedent accepts fixes for Serde failures that reject otherwise valid
configuration shapes.

PR-#14285

ⓘ Recommendations generated based on similar findings in past PRs

Evidence
WorkspaceSettings deliberately does not deny unknown fields, and its regression test documents
that unmodeled workspace keys must deserialize successfully. The changed line now forces vcs
through serde_json::Value; the whole file is deserialized at once and any type error is propagated
as ParseYaml, so a YAML mapping that cannot be represented as a JSON object changes from tolerated
to fatal.

pnpm/crates/config/src/workspace_yaml.rs[272-297]
pnpm/crates/config/src/workspace_yaml.rs[566-570]
pnpm/crates/config/src/workspace_yaml.rs[1621-1624]
pnpm/crates/config/src/workspace_yaml/tests.rs[199-214]

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 new opaque `vcs` field is deserialized as `serde_json::Value`, so valid YAML structures that JSON cannot represent now fail parsing instead of being tolerated.

## Issue Context
`vcs` is intentionally opaque workspace-owner metadata and was previously ignored as an unknown key. Preserve YAML-compatible values (or use a custom tolerant representation/deserializer) while retaining the intended config get/list behavior, and add coverage for a non-string mapping key.

## Fix Focus Areas
- pnpm/crates/config/src/workspace_yaml.rs[566-570]
- pnpm/crates/config/src/workspace_yaml.rs[1621-1624]
- pnpm/crates/config/src/workspace_yaml/tests.rs[199-214]

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



Informational

9. Converter parameter lacks trailing comma 📘 Rule violation ⚙ Maintainability ⭐ New
Description
The modified multi-line converter type and both expanded converter function signatures leave their
final parameters without trailing commas. This violates the required TypeScript trailing-comma style
and creates noisier future diffs.
Code

pnpm11/releasing/exportable-manifest/src/index.ts[120]

+  context: PublishDependencyConverterContext
Relevance

● Weak

Trailing-comma nits in this exact file/pattern consistently rejected by team (multiple recent PRs,
incl. same file).

PR-#13751
PR-#14140
PR-#12864
PR-#14234
PR-#14223

ⓘ Recommendations generated based on similar findings in past PRs

Evidence
Rule 713434 requires the last parameter in each multi-line TypeScript parameter list to have a
trailing comma. The changed converter type ends at context without a comma, and the changed
replaceWorkspaceProtocol and replaceWorkspaceProtocolPeerDependency signatures likewise end
their destructured context parameters without commas.

Rule 713434: Require trailing commas in TypeScript collections and multi-line constructs
pnpm11/releasing/exportable-manifest/src/index.ts[117-121]
pnpm11/releasing/exportable-manifest/src/index.ts[180-184]
pnpm11/releasing/exportable-manifest/src/index.ts[215-219]

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 modified multi-line TypeScript parameter lists do not end their final parameters with trailing commas.

## Issue Context
PR Compliance ID 713434 requires trailing commas in multi-line TypeScript constructs where items appear on separate lines. Apply the same correction to the converter type and both expanded function signatures.

## Fix Focus Areas
- pnpm11/releasing/exportable-manifest/src/index.ts[120-120]
- pnpm11/releasing/exportable-manifest/src/index.ts[180-184]
- pnpm11/releasing/exportable-manifest/src/index.ts[215-219]

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


Grey Divider

Context sources
✅ Compliance rules (platform): 27 rules
Review mode: ⚖️ Balanced

Grey Divider

Tip of the day
💡 Did you know, you can group findings by type and pick your Finding display, from Minimal to Full

More tips ↗ | Customize Qodo ↗ | Qodo docs ↗

Grey Divider

Qodo Logo

@qodo-code-review

Copy link
Copy Markdown

PR Code Suggestions ✨

Warning

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

No code suggestions found for the PR.

Copilot AI review requested due to automatic review settings August 29, 2026 22:21

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.

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 a97d88a

@qodo-code-review

Copy link
Copy Markdown

PR Code Suggestions ✨

Warning

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

No code suggestions found for the PR.

greptile-apps[bot]
greptile-apps Bot previously approved these changes Aug 29, 2026
Copilot AI review requested due to automatic review settings August 29, 2026 22:45
@greptile-apps
greptile-apps Bot dismissed their stale review August 29, 2026 22:45

Dismissed because a newer commit was pushed; Greptile will re-review the current head.

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.

@zkochan

zkochan commented Aug 29, 2026

Copy link
Copy Markdown
Member Author

Addressed the two findings from the latest Qodo pass in 1aa9174e2e:

  • scoped the opaque vcs exemption to pnpm-workspace.yaml; global config.yaml continues to report it as unrecognized in both pnpm v11 and Rust, with parity coverage
  • changed the publish converter contract to pass { dir, modulesDir } as one context argument, so the modified peer converter and the rest of the converter pipeline use at most three parameters

Validation: all 608 Rust config tests passed, the focused pnpm v11 global-config and catalog-export tests passed, and the full pre-push gate passed.


Written by an agent (Codex, GPT-5).

greptile-apps[bot]
greptile-apps Bot previously approved these changes Aug 29, 2026
@qodo-code-review

Copy link
Copy Markdown

Code review by qodo was updated up to the latest commit 1aa9174

@qodo-code-review

Copy link
Copy Markdown

PR Code Suggestions ✨

Warning

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

No code suggestions found for the PR.

Copilot AI review requested due to automatic review settings August 29, 2026 23:16
@greptile-apps
greptile-apps Bot dismissed their stale review August 29, 2026 23:16

Dismissed because a newer commit was pushed; Greptile will re-review the current head.

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

qodo-code-review Bot commented Aug 29, 2026 •

Copy link
Copy Markdown

No code changes since the last review — review skipped

Qodo Logo

@qodo-code-review

Copy link
Copy Markdown

PR Code Suggestions ✨

Warning

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

No code suggestions found for the PR.

@zkochan
zkochan merged commit 789c2d9 into main Aug 29, 2026
39 checks passed
@zkochan
zkochan deleted the vcs branch August 29, 2026 23:54
zkochan added a commit that referenced this pull request Sep 24, 2026
#15591)

The workspace project graph read a dependency's specifier as written, so a
`catalog:` specifier never produced an edge, even when the catalog entry was
`workspace:*` (supported since #14332). `pnpm -r run` then ran the
dependent in parallel with its dependency, and `--filter <pkg>...` did not
select the dependency.

Both project graph builders now dereference a `catalog:` specifier through the
workspace catalogs before classifying it, so the entry behaves exactly as if
it were written in the manifest: `workspace:` entries, version ranges matched
under `linkWorkspacePackages`, and local paths all resolve.

v11: `createProjectsGraph` takes a `catalogs` option. `pnpm`'s main dispatch,
`filterProjectsBySelectorObjectsFromDir`, and the recursive install pass the
configured catalogs through.

v12: `CreateProjectsGraphOptions` gains `catalogs: Option<WorkspaceCatalogs>`
(catalogs plus the workspace directory). A local-path entry is re-anchored
from the workspace directory to the importer with `CatalogAnchor::Reanchor`,
as the resolver does. The recursive selection, the pipeline graph and the
install-time cycle check pass the configured catalogs. A misconfigured
catalog reference still contributes no edge; install reports that error.

Closes #15587
u9g pushed a commit to u9g/pnpm that referenced this pull request Sep 25, 2026
pnpm#15591)

The workspace project graph read a dependency's specifier as written, so a
`catalog:` specifier never produced an edge, even when the catalog entry was
`workspace:*` (supported since pnpm#14332). `pnpm -r run` then ran the
dependent in parallel with its dependency, and `--filter <pkg>...` did not
select the dependency.

Both project graph builders now dereference a `catalog:` specifier through the
workspace catalogs before classifying it, so the entry behaves exactly as if
it were written in the manifest: `workspace:` entries, version ranges matched
under `linkWorkspacePackages`, and local paths all resolve.

v11: `createProjectsGraph` takes a `catalogs` option. `pnpm`'s main dispatch,
`filterProjectsBySelectorObjectsFromDir`, and the recursive install pass the
configured catalogs through.

v12: `CreateProjectsGraphOptions` gains `catalogs: Option<WorkspaceCatalogs>`
(catalogs plus the workspace directory). A local-path entry is re-anchored
from the workspace directory to the importer with `CatalogAnchor::Reanchor`,
as the resolver does. The recursive selection, the pipeline graph and the
install-time cycle check pass the configured catalogs. A misconfigured
catalog reference still contributes no edge; install reports that error.

Closes pnpm#15587
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants