REA Yarn Berry lock notes (unofficial)
Yarn Berry (Yarn 2+ lines) often ships lockfile + PnP / install-state identity that differs from classic Yarn layouts. In REA 6.7.x, treat those files as Evidence beside JS package routes — complementing rea-yarn-lock, not overwriting it.
Mental model
- Authorize the Berry project export (
yarn.lock,.pnp.cjs/.pnp.data.json, install-state — whatever you hold). - Quote lockfile version/format markers and selected package pins you can read.
- Classic Yarn lock cousin → rea-yarn-lock.
- npm / pnpm / Bun cousins → rea-npm-lockfiles, rea-pnpm-store, rea-bun-lock.
- Packed tarballs / extracted trees → documented npm/archive routes on absolute paths.
- Do not invent a Yarn resolver graph REA never built.
Minimal path
# authorized yarn.lock (+ PnP/install-state / local packages you hold)
# quote Berry format markers + selected pins into case notes
# REA npm/archive routes on /absolute/path/pkg-1.2.3.tgz --json
# do not invent: rea inspect_yarn_berry .
Compare
| Artifact | Honest posture |
|---|---|
| Berry lock / PnP / install-state | Lock / layout facts |
| Yarn lock (general) | rea-yarn-lock |
| npm lock cousin | rea-npm-lockfiles |
| pnpm / Bun cousins | rea-pnpm-store, rea-bun-lock |
Scope we will not cover
- No inventing
inspect_yarn_berry/ automatic registry crawlers. - No Yarn/npm token theft.
- No pirate redistribution of paid packages from a Yarn cache.
- No crack framing for commercial JS apps.
RepoRead is unofficial. Prefer JS lock honesty + DISCLAIMER.md.
FAQ
How is this different from rea-yarn-lock?
rea-yarn-lock covers Yarn lock identity in general. This page emphasizes Berry (Yarn 2+) / PnP-era install identity cues (lockfile format, PnP, install-state) you actually observe — still Evidence, not a Yarn RPC product.
Is there inspect_yarn_berry in 6.7.0?
Not assumed. Quote lock / PnP / install-state files you actually open, then hand JS tarballs/trees to documented npm/archive lanes. Do not invent inspect_yarn_berry.
node_modules vs Plug'n'Play?
Record which layout you were given. PnP without a traditional node_modules is a fact — do not invent extracted packages REA never saw.
Does REA run yarn install or talk to the npm registry?
No. Local trees only. No npm/Yarn token theft.
npm version checked?
rea-agents 6.7.0 (re-checked 2026-10-24).