REA npm workspaces notes (unofficial)
For legal, authorized and educational use only. Only analyze software you own or have written permission to examine. This page is not the official REA documentation.
Quick answer
npm workspaces (root package.json workspaces field) declare monorepo package membership. In REA 6.7.x, treat them as Evidence beside npm lock routes — complementing rea-npm-lockfiles and rea-pnpm-workspace.
Mental model
- Authorize root
package.json(+ lock / packages you hold). - Quote selected workspace globs/paths you actually see.
- Lock pins → rea-npm-lockfiles.
- pnpm/Yarn cousins → rea-pnpm-workspace / rea-yarn-berry when those tools own the tree.
- Do not invent an
npm ls -wsgraph REA never ran.
Minimal path
# authorized root package.json workspaces (+ package-lock.json / tarballs you hold)
# quote selected workspace globs into case notes
# REA archive/npm routes on /absolute/path/artifact --json
# do not invent: rea inspect_npm_workspaces .
Compare
| Artifact | Honest posture |
|---|---|
package.json workspaces | npm workspace membership facts |
| npm lockfiles | rea-npm-lockfiles |
| pnpm-workspace.yaml | rea-pnpm-workspace |
| Cargo workspace cousin | rea-cargo-workspace |
Scope we will not cover
- No inventing
inspect_npm_workspaces/ automatic registry crawlers. - No npm token theft.
- No pirate redistribution of private packages.
- No crack framing for commercial Node/Electron apps.
RepoRead is unofficial. Prefer workspace/lock honesty + DISCLAIMER.md.
FAQ
How is this different from rea-pnpm-workspace?
rea-pnpm-workspace covers pnpm-workspace.yaml. This page zooms on npm package.json workspaces globs beside npm lock routes.
Is there inspect_npm_workspaces in 6.7.0?
Not assumed. Quote workspaces fields you actually open, then use documented npm/lock/archive lanes. Do not invent inspect_npm_workspaces.
Does REA run npm install?
No. Local trees only. No registry credential theft.
Lockfile still matters?
Yes — workspace membership alone does not prove resolved versions. See rea-npm-lockfiles.
npm version checked?
rea-agents 6.7.0 (re-checked 2026-10-24).