@procedures/pnpm 0.66.0 → 0.68.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/CHANGELOG.md CHANGED
@@ -1,5 +1,38 @@
1
1
  # @procedures/pnpm
2
2
 
3
+ ## 0.68.0
4
+
5
+ ### Patch Changes
6
+
7
+ - Updated dependencies [da6b790]
8
+ - Updated dependencies [500a6cf]
9
+ - @procedures/client@0.68.0
10
+ - @procedures/shell@0.68.0
11
+
12
+ ## 0.67.0
13
+
14
+ ### Minor Changes
15
+
16
+ - 56d7288: Each pnpm procedure declares the same effects: it reads `fs` and `network`, and it writes `fs` and `process`.
17
+
18
+ - Before each command, pnpm reads the configuration of the working folder. Then it installs the config dependencies of the project from the registry, and it loads the `.pnpmfile.cjs` of the project. It can also start the pnpm that the field `packageManager` names. pnpm 10.26 and pnpm 12.18 do these steps for each command, and no flag of pnpm stops the install.
19
+ - These steps are code of the project. So `pnpm.list`, `pnpm.why`, `pnpm.outdated` and `pnpm.store.path` also write `process`, as `pnpm.install` does.
20
+ - A test starts the real `pnpm list` in a project whose `.pnpmfile.cjs` writes a file, and it finds the file.
21
+
22
+ ## Break
23
+
24
+ A host whose capability has no `process` or no `network` refuses each pnpm procedure, also `pnpm.list`, `pnpm.why`, `pnpm.outdated` and `pnpm.store.path`.
25
+
26
+ Migration for the site and each app:
27
+
28
+ 1. Find each host that uses a pnpm procedure with a capability.
29
+ 2. Give that capability `process` and `network`, or use the procedure without a capability. Under a root, the pnpm procedures stay refused.
30
+
31
+ ### Patch Changes
32
+
33
+ - @procedures/client@0.67.0
34
+ - @procedures/shell@0.67.0
35
+
3
36
  ## 0.66.0
4
37
 
5
38
  ### Patch Changes
package/README.md CHANGED
@@ -364,13 +364,14 @@ console.log(`Platform: ${store.platform}`);
364
364
 
365
365
  | Procedure | Input | Output | Effects |
366
366
  |---|---|---|---|
367
- | `pnpm.exec` | `command`, `args` | the result of pnpm | reads fs, writes process |
368
- | `pnpm.list` | `packages`, `depth`, `prod`, `dev` | the result, and `data`: the JSON of `pnpm list --json` | reads fs |
369
- | `pnpm.why` | `packages` (one or more), `depth`, `prod`, `dev` | the result, and `data`: the JSON of `pnpm why --json` | reads fs |
370
- | `pnpm.outdated` | `packages`, `prod`, `dev` | the result, and `data`: the JSON of `pnpm outdated --format json` | reads fs and network |
367
+ | `pnpm.exec` | `command`, `args` | the result of pnpm | reads fs and network, writes fs and process |
368
+ | `pnpm.list` | `packages`, `depth`, `prod`, `dev` | the result, and `data`: the JSON of `pnpm list --json` | reads fs and network, writes fs and process |
369
+ | `pnpm.why` | `packages` (one or more), `depth`, `prod`, `dev` | the result, and `data`: the JSON of `pnpm why --json` | reads fs and network, writes fs and process |
370
+ | `pnpm.outdated` | `packages`, `prod`, `dev` | the result, and `data`: the JSON of `pnpm outdated --format json` | reads fs and network, writes fs and process |
371
371
  | `pnpm.update` | `packages`, `latest`, `prod`, `dev` | the result of pnpm | reads fs and network, writes fs and process |
372
- | `pnpm.pack` | `destination`, `dryRun` | the result, and `data`: the JSON of `pnpm pack --json` | reads fs, writes fs and process |
372
+ | `pnpm.pack` | `destination`, `dryRun` | the result, and `data`: the JSON of `pnpm pack --json` | reads fs and network, writes fs and process |
373
373
 
374
+ - Each pnpm procedure has the same effects, also a procedure that only reads. Before each command, pnpm installs the config dependencies of the project and loads its `.pnpmfile.cjs`. It can also start the pnpm that `packageManager` names. A host without `process` refuses each pnpm procedure.
374
375
  - The result of pnpm has `exitCode`, `stdout`, `stderr`, `success` and `duration`. A failed command does not throw.
375
376
  - `pnpm.exec` puts `--` before the program. pnpm reads no option after it, and no shell reads the arguments.
376
377
  - `pnpm.outdated` gives `success: true` for exit code 1 when the output is JSON. pnpm exits with 1 when a package is outdated.
@@ -1 +1 @@
1
- {"version":3,"file":"module.d.ts","sourceRoot":"","sources":["../src/module.ts"],"names":[],"mappings":"AAAA;;;;;;GAMG;AAGH,OAAO,EAAuE,KAAK,eAAe,EAAE,KAAK,iBAAiB,EAAE,MAAM,oBAAoB,CAAC;AA+SvJ;;;GAGG;AACH,eAAO,MAAM,UAAU,EAAE,eAAoC,CAAC;eAE/C,UAAU;AAEzB;;;;GAIG;AACH,eAAO,MAAM,sBAAsB,EAAE,iBAAiB,CAAC,UAAU,CAAwB,CAAC"}
1
+ {"version":3,"file":"module.d.ts","sourceRoot":"","sources":["../src/module.ts"],"names":[],"mappings":"AAAA;;;;;;GAMG;AAGH,OAAO,EAAqF,KAAK,eAAe,EAAE,KAAK,iBAAiB,EAAE,MAAM,oBAAoB,CAAC;AAyTrK;;;GAGG;AACH,eAAO,MAAM,UAAU,EAAE,eAAoC,CAAC;eAE/C,UAAU;AAEzB;;;;GAIG;AACH,eAAO,MAAM,sBAAsB,EAAE,iBAAiB,CAAC,UAAU,CAAwB,CAAC"}
package/dist/module.js CHANGED
@@ -19,6 +19,15 @@ import { PnpmExecInputSchema, PnpmExecOutputSchema, PnpmListInputSchema, PnpmLis
19
19
  // =============================================================================
20
20
  // Procedures
21
21
  // =============================================================================
22
+ /**
23
+ * These are the effects of each pnpm command, also of a command that only reads, for example
24
+ * `pnpm list`. Before each command, pnpm reads the configuration of the working folder. Then it
25
+ * installs the config dependencies of the project from the registry, and it loads the
26
+ * `.pnpmfile.cjs` of the project. It can also start the pnpm that the field `packageManager` names.
27
+ * These steps are code of the project, so each command writes `process` (rule 12 of
28
+ * CAPABILITIES-2026-10).
29
+ */
30
+ const PNPM_COMMAND = { reads: ["fs", "network"], writes: ["fs", "process"] };
22
31
  const pnpmInstallProcedure = createProcedure()
23
32
  .path(["pnpm", "install"])
24
33
  .input(PnpmInstallInputSchema)
@@ -28,7 +37,7 @@ const pnpmInstallProcedure = createProcedure()
28
37
  calls: ["shell.run"],
29
38
  // pnpm reads the npm registry, rewrites node_modules and the lockfile, and runs the
30
39
  // lifecycle scripts and the pnpmfile of the project
31
- effects: { reads: ["fs", "network"], writes: ["fs", "process"] },
40
+ effects: PNPM_COMMAND,
32
41
  shorts: { cwd: "C", dev: "D", frozen: "F" },
33
42
  output: "json",
34
43
  })
@@ -43,7 +52,7 @@ const pnpmAddProcedure = createProcedure()
43
52
  .meta({
44
53
  description: "Add packages using pnpm",
45
54
  calls: ["shell.run"],
46
- effects: { reads: ["fs", "network"], writes: ["fs", "process"] },
55
+ effects: PNPM_COMMAND,
47
56
  args: ["packages"],
48
57
  shorts: { cwd: "C", dev: "D", global: "g" },
49
58
  output: "json",
@@ -60,7 +69,7 @@ const pnpmRemoveProcedure = createProcedure()
60
69
  description: "Remove packages using pnpm",
61
70
  calls: ["shell.run"],
62
71
  // pnpm resolves the remaining dependencies again, so it can read the npm registry
63
- effects: { reads: ["fs", "network"], writes: ["fs", "process"] },
72
+ effects: PNPM_COMMAND,
64
73
  args: ["packages"],
65
74
  shorts: { cwd: "C", global: "g" },
66
75
  output: "json",
@@ -76,7 +85,7 @@ const pnpmLinkProcedure = createProcedure()
76
85
  .meta({
77
86
  description: "Link packages using pnpm",
78
87
  calls: ["shell.run"],
79
- effects: { reads: ["fs", "network"], writes: ["fs", "process"] },
88
+ effects: PNPM_COMMAND,
80
89
  shorts: { cwd: "C", global: "g" },
81
90
  output: "json",
82
91
  })
@@ -92,7 +101,7 @@ const pnpmRunProcedure = createProcedure()
92
101
  description: "Run package scripts using pnpm",
93
102
  calls: ["shell.run"],
94
103
  // A package script is code of the project: it can do anything
95
- effects: { reads: ["fs"], writes: ["process"] },
104
+ effects: PNPM_COMMAND,
96
105
  args: ["script"],
97
106
  shorts: { cwd: "C" },
98
107
  output: "json",
@@ -108,8 +117,8 @@ const pnpmStorePathProcedure = createProcedure()
108
117
  .meta({
109
118
  description: "Get pnpm store path for snapshot/restore",
110
119
  calls: ["shell.run"],
111
- // `pnpm store path` only reads the configuration of pnpm
112
- effects: { reads: ["fs"], writes: [] },
120
+ // `pnpm store path` reads the configuration of the working folder, as each pnpm command does
121
+ effects: PNPM_COMMAND,
113
122
  args: [],
114
123
  shorts: { cwd: "C" },
115
124
  output: "json",
@@ -129,7 +138,7 @@ const pnpmExecProcedure = createProcedure()
129
138
  description: "Run a program of the dependencies (node_modules/.bin) with pnpm exec",
130
139
  calls: ["shell.run"],
131
140
  // The program is any program of the dependencies: it can do anything, as pnpm.run
132
- effects: { reads: ["fs"], writes: ["process"] },
141
+ effects: PNPM_COMMAND,
133
142
  args: ["command", "args"],
134
143
  shorts: { cwd: "C", recursive: "r" },
135
144
  output: "json",
@@ -144,7 +153,7 @@ const pnpmListProcedure = createProcedure()
144
153
  description: "List the installed packages: data is the JSON of pnpm list --json",
145
154
  calls: ["shell.run"],
146
155
  // It reads package.json, the lockfile and node_modules
147
- effects: { reads: ["fs"], writes: [] },
156
+ effects: PNPM_COMMAND,
148
157
  args: ["packages"],
149
158
  shorts: { cwd: "C", depth: "d", recursive: "r" },
150
159
  output: "json",
@@ -158,7 +167,7 @@ const pnpmWhyProcedure = createProcedure()
158
167
  .meta({
159
168
  description: "Show the packages that depend on a package: data is the JSON of pnpm why --json",
160
169
  calls: ["shell.run"],
161
- effects: { reads: ["fs"], writes: [] },
170
+ effects: PNPM_COMMAND,
162
171
  args: ["packages"],
163
172
  shorts: { cwd: "C", depth: "d", recursive: "r" },
164
173
  output: "json",
@@ -173,7 +182,7 @@ const pnpmOutdatedProcedure = createProcedure()
173
182
  description: "List the outdated packages: data is the JSON of pnpm outdated",
174
183
  calls: ["shell.run"],
175
184
  // pnpm reads the versions of the npm registry
176
- effects: { reads: ["fs", "network"], writes: [] },
185
+ effects: PNPM_COMMAND,
177
186
  args: ["packages"],
178
187
  shorts: { cwd: "C", recursive: "r" },
179
188
  output: "json",
@@ -188,7 +197,7 @@ const pnpmUpdateProcedure = createProcedure()
188
197
  description: "Update packages to their newest versions in the ranges, or with latest to the latest versions",
189
198
  calls: ["shell.run"],
190
199
  // As pnpm.install: the registry, node_modules, the lockfile and the lifecycle scripts
191
- effects: { reads: ["fs", "network"], writes: ["fs", "process"] },
200
+ effects: PNPM_COMMAND,
192
201
  args: ["packages"],
193
202
  shorts: { cwd: "C", latest: "L", recursive: "r" },
194
203
  output: "json",
@@ -204,7 +213,7 @@ const pnpmPackProcedure = createProcedure()
204
213
  calls: ["shell.run"],
205
214
  // It writes the tarball (it replaces a tarball of the same name), and pnpm runs the prepack,
206
215
  // prepare and postpack scripts of the package
207
- effects: { reads: ["fs"], writes: ["fs", "process"] },
216
+ effects: PNPM_COMMAND,
208
217
  args: [],
209
218
  shorts: { cwd: "C", destination: "d", dryRun: "n" },
210
219
  output: "json",
@@ -1 +1 @@
1
- {"version":3,"file":"module.js","sourceRoot":"","sources":["../src/module.ts"],"names":[],"mappings":"AAAA;;;;;;GAMG;AAGH,OAAO,EAAE,aAAa,EAAE,eAAe,EAAqF,MAAM,oBAAoB,CAAC;AACvJ,OAAO,WAAW,MAAM,0BAA0B,CAAC;AACnD,OAAO,EAAE,WAAW,EAAE,OAAO,EAAE,UAAU,EAAE,QAAQ,EAAE,OAAO,EAAE,aAAa,EAAE,MAAM,4BAA4B,CAAC;AAChH,OAAO,EACL,sBAAsB,EACtB,kBAAkB,EAClB,qBAAqB,EACrB,mBAAmB,EACnB,kBAAkB,EAOlB,wBAAwB,EAGxB,uBAAuB,EACvB,yBAAyB,GAC1B,MAAM,YAAY,CAAC;AAEpB,OAAO,EAAE,QAAQ,EAAE,MAAM,2BAA2B,CAAC;AACrD,OAAO,EAAE,QAAQ,EAAE,MAAM,2BAA2B,CAAC;AACrD,OAAO,EAAE,OAAO,EAAE,MAAM,0BAA0B,CAAC;AACnD,OAAO,EAAE,YAAY,EAAE,MAAM,+BAA+B,CAAC;AAC7D,OAAO,EAAE,UAAU,EAAE,MAAM,6BAA6B,CAAC;AACzD,OAAO,EAAE,QAAQ,EAAE,MAAM,2BAA2B,CAAC;AACrD,OAAO,EACL,mBAAmB,EACnB,oBAAoB,EAGpB,mBAAmB,EACnB,oBAAoB,EAGpB,kBAAkB,EAClB,mBAAmB,EAGnB,uBAAuB,EACvB,wBAAwB,EAGxB,qBAAqB,EACrB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F,MAAM,WAAW,GAAsB,aAAa,CAAC,kBAAkB,EAAE;IACrE,oBAAoB;IACpB,gBAAgB;IAChB,mBAAmB;IACnB,iBAAiB;IACjB,gBAAgB;IAChB,sBAAsB;IACtB,iBAAiB;IACjB,iBAAiB;IACjB,gBAAgB;IAChB,qBAAqB;IACrB,mBAAmB;IACnB,iBAAiB;CAClB,CAAC,GAAG,CAAC,UAAU,CAAC,EAAE,CAAC,WAAW,CAAC,CAAC,CAAC;AAEpC;;;GAGG;AACH,MAAM,CAAC,MAAM,UAAU,GAAoB,WAAW,CAAC,MAAM,CAAC;AAE9D,eAAe,UAAU,CAAC;AAE1B;;;;GAIG;AACH,MAAM,CAAC,MAAM,sBAAsB,GAAkC,WAAW,CAAC,QAAQ,CAAC"}
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "$schema": "https://json.schemastore.org/package",
3
3
  "name": "@procedures/pnpm",
4
- "version": "0.66.0",
4
+ "version": "0.68.0",
5
5
  "description": "pnpm commands as typed procedures: install, add, remove, run, exec, list, why, outdated, update, pack and link, with --filter and -r, run with argv and option-injection guards.",
6
6
  "keywords": [
7
7
  "pnpm",
@@ -64,13 +64,13 @@
64
64
  "provenance": true
65
65
  },
66
66
  "dependencies": {
67
- "@procedures/client": "0.66.0",
68
- "@procedures/shell": "0.66.0",
67
+ "@procedures/client": "0.68.0",
68
+ "@procedures/shell": "0.68.0",
69
69
  "zod": "^4.6.5"
70
70
  },
71
71
  "devDependencies": {
72
72
  "@mark1russell7/cue": "^2.1.1",
73
- "@procedures/fs": "0.66.0",
73
+ "@procedures/fs": "0.68.0",
74
74
  "@types/node": "^22.0.0",
75
75
  "typescript": "^7.0.2",
76
76
  "vitest": "^5.0.3"
package/src/module.ts CHANGED
@@ -7,7 +7,7 @@
7
7
  */
8
8
 
9
9
 
10
- import { definePackage, createProcedure, type AnyProcedure, type FsRootRules, type ProcedureModule, type PackageDefinition } from "@procedures/client";
10
+ import { definePackage, createProcedure, type AnyProcedure, type Effects, type FsRootRules, type ProcedureModule, type PackageDefinition } from "@procedures/client";
11
11
  import shellModule from "@procedures/shell/module";
12
12
  import { pnpmInstall, pnpmAdd, pnpmRemove, pnpmLink, pnpmRun, pnpmStorePath } from "./procedures/pnpm/index.js";
13
13
  import {
@@ -66,6 +66,16 @@ import {
66
66
  // Procedures
67
67
  // =============================================================================
68
68
 
69
+ /**
70
+ * These are the effects of each pnpm command, also of a command that only reads, for example
71
+ * `pnpm list`. Before each command, pnpm reads the configuration of the working folder. Then it
72
+ * installs the config dependencies of the project from the registry, and it loads the
73
+ * `.pnpmfile.cjs` of the project. It can also start the pnpm that the field `packageManager` names.
74
+ * These steps are code of the project, so each command writes `process` (rule 12 of
75
+ * CAPABILITIES-2026-10).
76
+ */
77
+ const PNPM_COMMAND: Effects = { reads: ["fs", "network"], writes: ["fs", "process"] };
78
+
69
79
  const pnpmInstallProcedure = createProcedure()
70
80
  .path(["pnpm", "install"])
71
81
  .input(PnpmInstallInputSchema)
@@ -75,7 +85,7 @@ const pnpmInstallProcedure = createProcedure()
75
85
  calls: ["shell.run"],
76
86
  // pnpm reads the npm registry, rewrites node_modules and the lockfile, and runs the
77
87
  // lifecycle scripts and the pnpmfile of the project
78
- effects: { reads: ["fs", "network"], writes: ["fs", "process"] },
88
+ effects: PNPM_COMMAND,
79
89
  shorts: { cwd: "C", dev: "D", frozen: "F" },
80
90
  output: "json",
81
91
  })
@@ -91,7 +101,7 @@ const pnpmAddProcedure = createProcedure()
91
101
  .meta({
92
102
  description: "Add packages using pnpm",
93
103
  calls: ["shell.run"],
94
- effects: { reads: ["fs", "network"], writes: ["fs", "process"] },
104
+ effects: PNPM_COMMAND,
95
105
  args: ["packages"],
96
106
  shorts: { cwd: "C", dev: "D", global: "g" },
97
107
  output: "json",
@@ -109,7 +119,7 @@ const pnpmRemoveProcedure = createProcedure()
109
119
  description: "Remove packages using pnpm",
110
120
  calls: ["shell.run"],
111
121
  // pnpm resolves the remaining dependencies again, so it can read the npm registry
112
- effects: { reads: ["fs", "network"], writes: ["fs", "process"] },
122
+ effects: PNPM_COMMAND,
113
123
  args: ["packages"],
114
124
  shorts: { cwd: "C", global: "g" },
115
125
  output: "json",
@@ -126,7 +136,7 @@ const pnpmLinkProcedure = createProcedure()
126
136
  .meta({
127
137
  description: "Link packages using pnpm",
128
138
  calls: ["shell.run"],
129
- effects: { reads: ["fs", "network"], writes: ["fs", "process"] },
139
+ effects: PNPM_COMMAND,
130
140
  shorts: { cwd: "C", global: "g" },
131
141
  output: "json",
132
142
  })
@@ -143,7 +153,7 @@ const pnpmRunProcedure = createProcedure()
143
153
  description: "Run package scripts using pnpm",
144
154
  calls: ["shell.run"],
145
155
  // A package script is code of the project: it can do anything
146
- effects: { reads: ["fs"], writes: ["process"] },
156
+ effects: PNPM_COMMAND,
147
157
  args: ["script"],
148
158
  shorts: { cwd: "C" },
149
159
  output: "json",
@@ -160,8 +170,8 @@ const pnpmStorePathProcedure = createProcedure()
160
170
  .meta({
161
171
  description: "Get pnpm store path for snapshot/restore",
162
172
  calls: ["shell.run"],
163
- // `pnpm store path` only reads the configuration of pnpm
164
- effects: { reads: ["fs"], writes: [] },
173
+ // `pnpm store path` reads the configuration of the working folder, as each pnpm command does
174
+ effects: PNPM_COMMAND,
165
175
  args: [],
166
176
  shorts: { cwd: "C" },
167
177
  output: "json",
@@ -183,7 +193,7 @@ const pnpmExecProcedure = createProcedure()
183
193
  description: "Run a program of the dependencies (node_modules/.bin) with pnpm exec",
184
194
  calls: ["shell.run"],
185
195
  // The program is any program of the dependencies: it can do anything, as pnpm.run
186
- effects: { reads: ["fs"], writes: ["process"] },
196
+ effects: PNPM_COMMAND,
187
197
  args: ["command", "args"],
188
198
  shorts: { cwd: "C", recursive: "r" },
189
199
  output: "json",
@@ -199,7 +209,7 @@ const pnpmListProcedure = createProcedure()
199
209
  description: "List the installed packages: data is the JSON of pnpm list --json",
200
210
  calls: ["shell.run"],
201
211
  // It reads package.json, the lockfile and node_modules
202
- effects: { reads: ["fs"], writes: [] },
212
+ effects: PNPM_COMMAND,
203
213
  args: ["packages"],
204
214
  shorts: { cwd: "C", depth: "d", recursive: "r" },
205
215
  output: "json",
@@ -214,7 +224,7 @@ const pnpmWhyProcedure = createProcedure()
214
224
  .meta({
215
225
  description: "Show the packages that depend on a package: data is the JSON of pnpm why --json",
216
226
  calls: ["shell.run"],
217
- effects: { reads: ["fs"], writes: [] },
227
+ effects: PNPM_COMMAND,
218
228
  args: ["packages"],
219
229
  shorts: { cwd: "C", depth: "d", recursive: "r" },
220
230
  output: "json",
@@ -230,7 +240,7 @@ const pnpmOutdatedProcedure = createProcedure()
230
240
  description: "List the outdated packages: data is the JSON of pnpm outdated",
231
241
  calls: ["shell.run"],
232
242
  // pnpm reads the versions of the npm registry
233
- effects: { reads: ["fs", "network"], writes: [] },
243
+ effects: PNPM_COMMAND,
234
244
  args: ["packages"],
235
245
  shorts: { cwd: "C", recursive: "r" },
236
246
  output: "json",
@@ -246,7 +256,7 @@ const pnpmUpdateProcedure = createProcedure()
246
256
  description: "Update packages to their newest versions in the ranges, or with latest to the latest versions",
247
257
  calls: ["shell.run"],
248
258
  // As pnpm.install: the registry, node_modules, the lockfile and the lifecycle scripts
249
- effects: { reads: ["fs", "network"], writes: ["fs", "process"] },
259
+ effects: PNPM_COMMAND,
250
260
  args: ["packages"],
251
261
  shorts: { cwd: "C", latest: "L", recursive: "r" },
252
262
  output: "json",
@@ -263,7 +273,7 @@ const pnpmPackProcedure = createProcedure()
263
273
  calls: ["shell.run"],
264
274
  // It writes the tarball (it replaces a tarball of the same name), and pnpm runs the prepack,
265
275
  // prepare and postpack scripts of the package
266
- effects: { reads: ["fs"], writes: ["fs", "process"] },
276
+ effects: PNPM_COMMAND,
267
277
  args: [],
268
278
  shorts: { cwd: "C", destination: "d", dryRun: "n" },
269
279
  output: "json",