@effected/pnpm-plugin-effect 0.1.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/LICENSE +21 -0
- package/README.md +107 -0
- package/index.d.ts +2 -0
- package/index.js +142 -0
- package/package.json +40 -0
- package/pnpmfile.cjs +584 -0
- package/pnpmfile.mjs +583 -0
- package/tsdoc-metadata.json +11 -0
package/pnpmfile.mjs
ADDED
|
@@ -0,0 +1,583 @@
|
|
|
1
|
+
import { readFileSync } from "node:fs";
|
|
2
|
+
import { join } from "node:path";
|
|
3
|
+
|
|
4
|
+
//#region ../../node_modules/.pnpm/rolldown-pnpm-config@0.3.0_@types+react@19.2.17_ioredis@5.11.1_rolldown@1.1.5/node_modules/rolldown-pnpm-config/runtime/ctx.js
|
|
5
|
+
/**
|
|
6
|
+
* Resolve the consuming repo's root package name. Prefers pnpm's
|
|
7
|
+
* `rootProjectManifest.name`, falling back to reading `package.json` from the
|
|
8
|
+
* workspace/lockfile dir.
|
|
9
|
+
*
|
|
10
|
+
* @internal
|
|
11
|
+
*/
|
|
12
|
+
function resolveRootName(config) {
|
|
13
|
+
const c = config;
|
|
14
|
+
if (c.rootProjectManifest?.name) return c.rootProjectManifest.name;
|
|
15
|
+
const rootDir = c.rootProjectManifestDir ?? c.lockfileDir ?? c.workspaceDir ?? c.dir ?? process.cwd();
|
|
16
|
+
try {
|
|
17
|
+
return JSON.parse(readFileSync(join(rootDir, "package.json"), "utf8")).name;
|
|
18
|
+
} catch {
|
|
19
|
+
return;
|
|
20
|
+
}
|
|
21
|
+
}
|
|
22
|
+
/**
|
|
23
|
+
* Drop packages assigned to the consuming repo from a merged hoist list.
|
|
24
|
+
* Drop packages listed in the per-repo exclusion table (`byRepo`).
|
|
25
|
+
*
|
|
26
|
+
* @param merged - The full merged hoist-pattern list before repo-specific exclusions.
|
|
27
|
+
* @param ctx - Runtime context; `ctx.rootName` is the consuming repo's root `package.json` `name`.
|
|
28
|
+
* @param byRepo Keyed by consuming-repo package.json name; value = hoist patterns dropped in that repo.
|
|
29
|
+
* @internal
|
|
30
|
+
*/
|
|
31
|
+
function excludeByRepo(merged, ctx, byRepo) {
|
|
32
|
+
const exclude = ctx.rootName ? byRepo[ctx.rootName] : void 0;
|
|
33
|
+
if (!exclude || exclude.length === 0) return merged;
|
|
34
|
+
const set = new Set(exclude);
|
|
35
|
+
return merged.filter((p) => !set.has(p));
|
|
36
|
+
}
|
|
37
|
+
|
|
38
|
+
//#endregion
|
|
39
|
+
//#region ../../node_modules/.pnpm/rolldown-pnpm-config@0.3.0_@types+react@19.2.17_ioredis@5.11.1_rolldown@1.1.5/node_modules/rolldown-pnpm-config/runtime/enforcement.js
|
|
40
|
+
/**
|
|
41
|
+
* Thrown when an `error`-enforced field diverges. A zero-dependency plain
|
|
42
|
+
* `Error` subclass (NOT an Effect type) so it survives in the bundled pnpmfile.
|
|
43
|
+
* It is intended to fail the install and must never be swallowed by an install
|
|
44
|
+
* guard — see the note in `runtime/index.ts`.
|
|
45
|
+
*
|
|
46
|
+
* @internal
|
|
47
|
+
*/
|
|
48
|
+
var EnforcementError = class extends Error {
|
|
49
|
+
constructor(message) {
|
|
50
|
+
super(message);
|
|
51
|
+
this.name = "EnforcementError";
|
|
52
|
+
}
|
|
53
|
+
};
|
|
54
|
+
/**
|
|
55
|
+
* Apply enforcement to a strategy result, partitioning its divergences into
|
|
56
|
+
* override and security buckets for the runtime to print. When enforcement is
|
|
57
|
+
* `error` and there is at least one divergence, throws {@link EnforcementError}.
|
|
58
|
+
*
|
|
59
|
+
* @internal
|
|
60
|
+
*/
|
|
61
|
+
function applyEnforcement(field, result, enforcement) {
|
|
62
|
+
const overrides = [];
|
|
63
|
+
const security = [];
|
|
64
|
+
if (result.divergences.length > 0 && enforcement === "error") throw new EnforcementError(`Field "${field}" is enforced (error) but the local config diverges: ${result.divergences.map((d) => d.setting).join(", ")}`);
|
|
65
|
+
if (result.divergences.length > 0 && enforcement === "warn") for (const d of result.divergences) (d.kind === "security" ? security : overrides).push(d);
|
|
66
|
+
return {
|
|
67
|
+
value: result.merged,
|
|
68
|
+
overrides,
|
|
69
|
+
security
|
|
70
|
+
};
|
|
71
|
+
}
|
|
72
|
+
|
|
73
|
+
//#endregion
|
|
74
|
+
//#region ../../node_modules/.pnpm/rolldown-pnpm-config@0.3.0_@types+react@19.2.17_ioredis@5.11.1_rolldown@1.1.5/node_modules/rolldown-pnpm-config/runtime/strategies/arrays.js
|
|
75
|
+
function unionSort(managed, local) {
|
|
76
|
+
const set = new Set(managed);
|
|
77
|
+
for (const item of local ?? []) set.add(item);
|
|
78
|
+
return [...set].sort((a, b) => a.localeCompare(b));
|
|
79
|
+
}
|
|
80
|
+
/**
|
|
81
|
+
* Union + sort string arrays; child entries are added to the managed set. Quiet.
|
|
82
|
+
*
|
|
83
|
+
* @internal
|
|
84
|
+
*/
|
|
85
|
+
const arrayUnion = (base, local) => ({
|
|
86
|
+
merged: unionSort(base ?? [], local),
|
|
87
|
+
divergences: []
|
|
88
|
+
});
|
|
89
|
+
/**
|
|
90
|
+
* Per-axis union of a record of string arrays; drops empty axes. Quiet.
|
|
91
|
+
*
|
|
92
|
+
* @internal
|
|
93
|
+
*/
|
|
94
|
+
const arrayRecordUnion = (base, local) => {
|
|
95
|
+
const managed = base ?? {};
|
|
96
|
+
const child = local ?? {};
|
|
97
|
+
const keys = /* @__PURE__ */ new Set([...Object.keys(managed), ...Object.keys(child)]);
|
|
98
|
+
const result = {};
|
|
99
|
+
for (const key of [...keys].sort((a, b) => a.localeCompare(b))) {
|
|
100
|
+
const merged = unionSort(managed[key] ?? [], child[key]);
|
|
101
|
+
if (merged.length > 0) result[key] = merged;
|
|
102
|
+
}
|
|
103
|
+
return {
|
|
104
|
+
merged: result,
|
|
105
|
+
divergences: []
|
|
106
|
+
};
|
|
107
|
+
};
|
|
108
|
+
|
|
109
|
+
//#endregion
|
|
110
|
+
//#region ../../node_modules/.pnpm/rolldown-pnpm-config@0.3.0_@types+react@19.2.17_ioredis@5.11.1_rolldown@1.1.5/node_modules/rolldown-pnpm-config/runtime/strategies/catalogs.js
|
|
111
|
+
/**
|
|
112
|
+
* Merge each named catalog; child wins per package. Emits override divergences
|
|
113
|
+
* when a local version differs from the managed one.
|
|
114
|
+
*
|
|
115
|
+
* @internal
|
|
116
|
+
*/
|
|
117
|
+
const catalogs = (base, local) => {
|
|
118
|
+
const managed = base ?? {};
|
|
119
|
+
const child = local ?? {};
|
|
120
|
+
const divergences = [];
|
|
121
|
+
const merged = { ...child };
|
|
122
|
+
for (const [name, entries] of Object.entries(managed)) {
|
|
123
|
+
const childCat = child[name] ?? {};
|
|
124
|
+
const out = { ...entries };
|
|
125
|
+
for (const [pkg, childVersion] of Object.entries(childCat)) {
|
|
126
|
+
const managedVersion = entries[pkg];
|
|
127
|
+
if (managedVersion !== void 0 && managedVersion !== childVersion) divergences.push({
|
|
128
|
+
setting: `catalogs.${name}.${pkg}`,
|
|
129
|
+
managedValue: managedVersion,
|
|
130
|
+
localValue: childVersion,
|
|
131
|
+
detail: "Local version overrides the managed version.",
|
|
132
|
+
kind: "override"
|
|
133
|
+
});
|
|
134
|
+
out[pkg] = childVersion;
|
|
135
|
+
}
|
|
136
|
+
merged[name] = out;
|
|
137
|
+
}
|
|
138
|
+
return {
|
|
139
|
+
merged,
|
|
140
|
+
divergences
|
|
141
|
+
};
|
|
142
|
+
};
|
|
143
|
+
|
|
144
|
+
//#endregion
|
|
145
|
+
//#region ../../node_modules/.pnpm/rolldown-pnpm-config@0.3.0_@types+react@19.2.17_ioredis@5.11.1_rolldown@1.1.5/node_modules/rolldown-pnpm-config/runtime/strategies/maps.js
|
|
146
|
+
/**
|
|
147
|
+
* `{...managed, ...child}` — child wins per key. Quiet. Merges two maps,
|
|
148
|
+
* preferring child values.
|
|
149
|
+
*
|
|
150
|
+
* @internal
|
|
151
|
+
*/
|
|
152
|
+
const mapChildWins = (base, local) => {
|
|
153
|
+
const managed = base ?? {};
|
|
154
|
+
const child = local;
|
|
155
|
+
return {
|
|
156
|
+
merged: child ? {
|
|
157
|
+
...managed,
|
|
158
|
+
...child
|
|
159
|
+
} : { ...managed },
|
|
160
|
+
divergences: []
|
|
161
|
+
};
|
|
162
|
+
};
|
|
163
|
+
/**
|
|
164
|
+
* `{...managed, ...child}`; flags enabling a build the managed config blocked.
|
|
165
|
+
* Detects allow-builds loosening.
|
|
166
|
+
*
|
|
167
|
+
* @internal
|
|
168
|
+
*/
|
|
169
|
+
const allowBuilds = (base, local) => {
|
|
170
|
+
const managed = base ?? {};
|
|
171
|
+
const child = local ?? {};
|
|
172
|
+
const divergences = [];
|
|
173
|
+
for (const [pkg, childAllowed] of Object.entries(child)) if (childAllowed === true && managed[pkg] === false) divergences.push({
|
|
174
|
+
setting: `allowBuilds.${pkg}`,
|
|
175
|
+
managedValue: "false",
|
|
176
|
+
localValue: "true",
|
|
177
|
+
detail: `Enables build scripts for "${pkg}" that the managed config blocked.`,
|
|
178
|
+
kind: "security"
|
|
179
|
+
});
|
|
180
|
+
return {
|
|
181
|
+
merged: {
|
|
182
|
+
...managed,
|
|
183
|
+
...child
|
|
184
|
+
},
|
|
185
|
+
divergences
|
|
186
|
+
};
|
|
187
|
+
};
|
|
188
|
+
|
|
189
|
+
//#endregion
|
|
190
|
+
//#region ../../node_modules/.pnpm/rolldown-pnpm-config@0.3.0_@types+react@19.2.17_ioredis@5.11.1_rolldown@1.1.5/node_modules/rolldown-pnpm-config/runtime/strategies/overrides.js
|
|
191
|
+
function mergeMapDetect(prefix, managed, child) {
|
|
192
|
+
const merged = { ...managed };
|
|
193
|
+
const divergences = [];
|
|
194
|
+
for (const [k, childVersion] of Object.entries(child)) {
|
|
195
|
+
const managedVersion = managed[k];
|
|
196
|
+
if (managedVersion !== void 0 && managedVersion !== childVersion) divergences.push({
|
|
197
|
+
setting: `${prefix}.${k}`,
|
|
198
|
+
managedValue: managedVersion,
|
|
199
|
+
localValue: childVersion,
|
|
200
|
+
detail: "Local version overrides the managed version.",
|
|
201
|
+
kind: "override"
|
|
202
|
+
});
|
|
203
|
+
merged[k] = childVersion;
|
|
204
|
+
}
|
|
205
|
+
return {
|
|
206
|
+
merged,
|
|
207
|
+
divergences
|
|
208
|
+
};
|
|
209
|
+
}
|
|
210
|
+
/**
|
|
211
|
+
* Security overrides: child wins per key; any diff → override divergence.
|
|
212
|
+
* Merge overrides, flagging local divergences.
|
|
213
|
+
*
|
|
214
|
+
* @internal
|
|
215
|
+
*/
|
|
216
|
+
const overrides = (base, local) => {
|
|
217
|
+
const { merged, divergences } = mergeMapDetect("overrides", base ?? {}, local ?? {});
|
|
218
|
+
return {
|
|
219
|
+
merged,
|
|
220
|
+
divergences
|
|
221
|
+
};
|
|
222
|
+
};
|
|
223
|
+
/**
|
|
224
|
+
* peerDependencyRules: `allowedVersions` is override-detected; `ignoreMissing`
|
|
225
|
+
* and `allowAny` are unioned + sorted. Merges peer-dependency rules,
|
|
226
|
+
* flagging version overrides.
|
|
227
|
+
*
|
|
228
|
+
* @internal
|
|
229
|
+
*/
|
|
230
|
+
const peerDependencyRules = (base, local) => {
|
|
231
|
+
const managed = base ?? {};
|
|
232
|
+
const child = local ?? {};
|
|
233
|
+
const av = mergeMapDetect("peerDependencyRules.allowedVersions", managed.allowedVersions ?? {}, child.allowedVersions ?? {});
|
|
234
|
+
const union = (s = [], c = []) => [.../* @__PURE__ */ new Set([...s, ...c])].sort((a, b) => a.localeCompare(b));
|
|
235
|
+
return {
|
|
236
|
+
merged: {
|
|
237
|
+
allowedVersions: av.merged,
|
|
238
|
+
ignoreMissing: union(managed.ignoreMissing, child.ignoreMissing),
|
|
239
|
+
allowAny: union(managed.allowAny, child.allowAny)
|
|
240
|
+
},
|
|
241
|
+
divergences: av.divergences
|
|
242
|
+
};
|
|
243
|
+
};
|
|
244
|
+
|
|
245
|
+
//#endregion
|
|
246
|
+
//#region ../../node_modules/.pnpm/rolldown-pnpm-config@0.3.0_@types+react@19.2.17_ioredis@5.11.1_rolldown@1.1.5/node_modules/rolldown-pnpm-config/runtime/strategies/scalar.js
|
|
247
|
+
/**
|
|
248
|
+
* `child ?? base` — quiet (no divergences). Prefer local, fall back to managed.
|
|
249
|
+
*
|
|
250
|
+
* @internal
|
|
251
|
+
*/
|
|
252
|
+
const scalar = (base, local) => ({
|
|
253
|
+
merged: local ?? base,
|
|
254
|
+
divergences: []
|
|
255
|
+
});
|
|
256
|
+
/**
|
|
257
|
+
* `child ?? base`; flags when child disables a managed boolean. The strategy is
|
|
258
|
+
* field-agnostic, so it emits `setting: ""`; the runtime fills the field name.
|
|
259
|
+
* Detects flag loosening.
|
|
260
|
+
*
|
|
261
|
+
* @internal
|
|
262
|
+
*/
|
|
263
|
+
const securityFlag = (base, local) => {
|
|
264
|
+
const merged = local ?? base;
|
|
265
|
+
const divergences = [];
|
|
266
|
+
if (base === true && local === false) divergences.push({
|
|
267
|
+
setting: "",
|
|
268
|
+
managedValue: "true",
|
|
269
|
+
localValue: "false",
|
|
270
|
+
detail: "Disables a security check the managed config enabled.",
|
|
271
|
+
kind: "security"
|
|
272
|
+
});
|
|
273
|
+
return {
|
|
274
|
+
merged,
|
|
275
|
+
divergences
|
|
276
|
+
};
|
|
277
|
+
};
|
|
278
|
+
/**
|
|
279
|
+
* `child ?? base`; flags when child lowers the value. Field-agnostic, so it
|
|
280
|
+
* emits `setting: ""`; the runtime fills the field name. Detects
|
|
281
|
+
* minimum-release-age loosening.
|
|
282
|
+
*
|
|
283
|
+
* @internal
|
|
284
|
+
*/
|
|
285
|
+
const securityMin = (base, local) => {
|
|
286
|
+
const merged = local ?? base;
|
|
287
|
+
const divergences = [];
|
|
288
|
+
if (typeof base === "number" && typeof local === "number" && local < base) divergences.push({
|
|
289
|
+
setting: "",
|
|
290
|
+
managedValue: String(base),
|
|
291
|
+
localValue: String(local),
|
|
292
|
+
detail: `Shortens the release-age quarantine from ${base} to ${local} minutes.`,
|
|
293
|
+
kind: "security"
|
|
294
|
+
});
|
|
295
|
+
return {
|
|
296
|
+
merged,
|
|
297
|
+
divergences
|
|
298
|
+
};
|
|
299
|
+
};
|
|
300
|
+
|
|
301
|
+
//#endregion
|
|
302
|
+
//#region ../../node_modules/.pnpm/rolldown-pnpm-config@0.3.0_@types+react@19.2.17_ioredis@5.11.1_rolldown@1.1.5/node_modules/rolldown-pnpm-config/runtime/strategies/table.js
|
|
303
|
+
/**
|
|
304
|
+
* Built-in strategies keyed by manifest name.
|
|
305
|
+
*
|
|
306
|
+
* @internal
|
|
307
|
+
*/
|
|
308
|
+
const STRATEGY_TABLE = {
|
|
309
|
+
scalar,
|
|
310
|
+
catalogs,
|
|
311
|
+
mapChildWins,
|
|
312
|
+
arrayUnion,
|
|
313
|
+
arrayRecordUnion,
|
|
314
|
+
overrides,
|
|
315
|
+
peerDependencyRules,
|
|
316
|
+
securityFlag,
|
|
317
|
+
securityMin,
|
|
318
|
+
allowBuilds
|
|
319
|
+
};
|
|
320
|
+
|
|
321
|
+
//#endregion
|
|
322
|
+
//#region ../../node_modules/.pnpm/rolldown-pnpm-config@0.3.0_@types+react@19.2.17_ioredis@5.11.1_rolldown@1.1.5/node_modules/rolldown-pnpm-config/runtime/warnings.js
|
|
323
|
+
const WARNING_BOX_WIDTH = 75;
|
|
324
|
+
function pad(line) {
|
|
325
|
+
return `│${line}${" ".repeat(Math.max(0, WARNING_BOX_WIDTH - line.length - 2))}│`;
|
|
326
|
+
}
|
|
327
|
+
/**
|
|
328
|
+
* Format override divergences into a prominent warning box for console output,
|
|
329
|
+
* tagged with the emitting config's `name`. `Divergence.setting` is the
|
|
330
|
+
* already-resolved config path, printed directly.
|
|
331
|
+
*
|
|
332
|
+
* @internal
|
|
333
|
+
*/
|
|
334
|
+
function formatOverrideWarning(divergences, name) {
|
|
335
|
+
if (divergences.length === 0) return "";
|
|
336
|
+
const border = "─".repeat(WARNING_BOX_WIDTH - 2);
|
|
337
|
+
const lines = [];
|
|
338
|
+
lines.push(`┌${border}┐`);
|
|
339
|
+
lines.push(pad(` [${name}]`));
|
|
340
|
+
lines.push(pad(" ⚠️ CATALOG OVERRIDE DETECTED"));
|
|
341
|
+
lines.push(`├${border}┤`);
|
|
342
|
+
lines.push(pad(" The following entries override managed versions:"));
|
|
343
|
+
lines.push(pad(""));
|
|
344
|
+
for (const d of divergences) {
|
|
345
|
+
lines.push(pad(` ${d.setting}`));
|
|
346
|
+
lines.push(pad(` Managed version: ${d.managedValue}`));
|
|
347
|
+
lines.push(pad(` Local override: ${d.localValue}`));
|
|
348
|
+
lines.push(pad(""));
|
|
349
|
+
}
|
|
350
|
+
lines.push(pad(" Local versions will be used. To use the managed defaults, remove"));
|
|
351
|
+
lines.push(pad(" these entries from your pnpm-workspace.yaml."));
|
|
352
|
+
lines.push(`└${border}┘`);
|
|
353
|
+
return lines.join("\n");
|
|
354
|
+
}
|
|
355
|
+
/**
|
|
356
|
+
* Format security-loosening divergences into a prominent box, tagged with the
|
|
357
|
+
* emitting config's `name`.
|
|
358
|
+
*
|
|
359
|
+
* @internal
|
|
360
|
+
*/
|
|
361
|
+
function formatSecurityWarning(divergences, name) {
|
|
362
|
+
if (divergences.length === 0) return "";
|
|
363
|
+
const border = "─".repeat(WARNING_BOX_WIDTH - 2);
|
|
364
|
+
const lines = [];
|
|
365
|
+
lines.push(`┌${border}┐`);
|
|
366
|
+
lines.push(pad(` [${name}]`));
|
|
367
|
+
lines.push(pad(" ⚠️ SECURITY OVERRIDE DETECTED"));
|
|
368
|
+
lines.push(`├${border}┤`);
|
|
369
|
+
lines.push(pad(" The following entries weaken managed security defaults:"));
|
|
370
|
+
lines.push(pad(""));
|
|
371
|
+
for (const d of divergences) {
|
|
372
|
+
lines.push(pad(` ${d.setting}: managed=${d.managedValue} -> local=${d.localValue}`));
|
|
373
|
+
lines.push(pad(` ${d.detail}`));
|
|
374
|
+
lines.push(pad(""));
|
|
375
|
+
}
|
|
376
|
+
lines.push(pad(" Local values will be used. Review these before shipping."));
|
|
377
|
+
lines.push(`└${border}┘`);
|
|
378
|
+
return lines.join("\n");
|
|
379
|
+
}
|
|
380
|
+
|
|
381
|
+
//#endregion
|
|
382
|
+
//#region ../../node_modules/.pnpm/rolldown-pnpm-config@0.3.0_@types+react@19.2.17_ioredis@5.11.1_rolldown@1.1.5/node_modules/rolldown-pnpm-config/runtime.js
|
|
383
|
+
/**
|
|
384
|
+
* Build the pnpm hooks from frozen base data + a field→strategy manifest.
|
|
385
|
+
* Zero dependencies — bundled verbatim into the shipped pnpmfile.
|
|
386
|
+
*
|
|
387
|
+
* @remarks
|
|
388
|
+
* `updateConfig` deliberately has no catch-and-fall-back-to-local guard: an
|
|
389
|
+
* `error`-enforced divergence throws `EnforcementError`, which is meant to
|
|
390
|
+
* propagate and fail the install. If a swallow-guard is ever added here, it MUST
|
|
391
|
+
* rethrow `EnforcementError` (check `err instanceof EnforcementError` /
|
|
392
|
+
* `err.name === "EnforcementError"`) rather than fall back to the local config.
|
|
393
|
+
*
|
|
394
|
+
* @public
|
|
395
|
+
*/
|
|
396
|
+
function createHooks(base, manifest, name) {
|
|
397
|
+
return { updateConfig(config) {
|
|
398
|
+
const ctx = { rootName: resolveRootName(config) };
|
|
399
|
+
const out = { ...config };
|
|
400
|
+
const allOverrides = [];
|
|
401
|
+
const allSecurity = [];
|
|
402
|
+
for (const [field, entry] of Object.entries(manifest)) {
|
|
403
|
+
const strategy = STRATEGY_TABLE[entry.strategy];
|
|
404
|
+
if (!strategy) continue;
|
|
405
|
+
const result = strategy(base[field], config[field], ctx);
|
|
406
|
+
let merged = result.merged;
|
|
407
|
+
const byRepo = entry.options?.excludeByRepo;
|
|
408
|
+
if (byRepo && Array.isArray(merged)) merged = excludeByRepo(merged, ctx, byRepo);
|
|
409
|
+
const named = result.divergences.map((d) => d.setting === "" ? {
|
|
410
|
+
...d,
|
|
411
|
+
setting: field
|
|
412
|
+
} : d);
|
|
413
|
+
const { value, overrides, security } = applyEnforcement(field, {
|
|
414
|
+
merged,
|
|
415
|
+
divergences: named
|
|
416
|
+
}, entry.enforcement);
|
|
417
|
+
allOverrides.push(...overrides);
|
|
418
|
+
allSecurity.push(...security);
|
|
419
|
+
if (value !== void 0 && !(typeof value === "object" && value !== null && Object.keys(value).length === 0)) out[field] = value;
|
|
420
|
+
}
|
|
421
|
+
const ob = formatOverrideWarning(allOverrides, name);
|
|
422
|
+
if (ob) console.warn(ob);
|
|
423
|
+
const sb = formatSecurityWarning(allSecurity, name);
|
|
424
|
+
if (sb) console.warn(sb);
|
|
425
|
+
return out;
|
|
426
|
+
} };
|
|
427
|
+
}
|
|
428
|
+
|
|
429
|
+
//#endregion
|
|
430
|
+
//#region \0rolldown-pnpm-config/virtual/pnpmfile
|
|
431
|
+
const hooks = createHooks({
|
|
432
|
+
"catalogs": {
|
|
433
|
+
"effect": {
|
|
434
|
+
"@effect/ai-anthropic": "4.0.0-beta.98",
|
|
435
|
+
"@effect/ai-openai": "4.0.0-beta.98",
|
|
436
|
+
"@effect/ai-openai-compat": "4.0.0-beta.98",
|
|
437
|
+
"@effect/ai-openrouter": "4.0.0-beta.98",
|
|
438
|
+
"@effect/atom-react": "4.0.0-beta.98",
|
|
439
|
+
"@effect/atom-solid": "4.0.0-beta.98",
|
|
440
|
+
"@effect/atom-vue": "4.0.0-beta.98",
|
|
441
|
+
"@effect/openapi-generator": "4.0.0-beta.98",
|
|
442
|
+
"@effect/opentelemetry": "4.0.0-beta.98",
|
|
443
|
+
"@effect/platform-browser": "4.0.0-beta.98",
|
|
444
|
+
"@effect/platform-bun": "4.0.0-beta.98",
|
|
445
|
+
"@effect/platform-node": "4.0.0-beta.98",
|
|
446
|
+
"@effect/platform-node-shared": "4.0.0-beta.98",
|
|
447
|
+
"@effect/sql-clickhouse": "4.0.0-beta.98",
|
|
448
|
+
"@effect/sql-d1": "4.0.0-beta.98",
|
|
449
|
+
"@effect/sql-libsql": "4.0.0-beta.98",
|
|
450
|
+
"@effect/sql-mssql": "4.0.0-beta.98",
|
|
451
|
+
"@effect/sql-mysql2": "4.0.0-beta.98",
|
|
452
|
+
"@effect/sql-pg": "4.0.0-beta.98",
|
|
453
|
+
"@effect/sql-pglite": "4.0.0-beta.98",
|
|
454
|
+
"@effect/sql-sqlite-bun": "4.0.0-beta.98",
|
|
455
|
+
"@effect/sql-sqlite-do": "4.0.0-beta.98",
|
|
456
|
+
"@effect/sql-sqlite-node": "4.0.0-beta.98",
|
|
457
|
+
"@effect/sql-sqlite-react-native": "4.0.0-beta.98",
|
|
458
|
+
"@effect/sql-sqlite-wasm": "4.0.0-beta.98",
|
|
459
|
+
"@effect/tsgo": "^0.19.0",
|
|
460
|
+
"@effect/vitest": "4.0.0-beta.98",
|
|
461
|
+
"effect": "4.0.0-beta.98"
|
|
462
|
+
},
|
|
463
|
+
"effect3": {
|
|
464
|
+
"@effect/ai": "^0.36.0",
|
|
465
|
+
"@effect/ai-amazon-bedrock": "^0.16.1",
|
|
466
|
+
"@effect/ai-anthropic": "^0.26.0",
|
|
467
|
+
"@effect/ai-google": "^0.15.0",
|
|
468
|
+
"@effect/ai-openai": "^0.40.1",
|
|
469
|
+
"@effect/cli": "^0.75.2",
|
|
470
|
+
"@effect/cluster": "^0.59.0",
|
|
471
|
+
"@effect/experimental": "^0.60.0",
|
|
472
|
+
"@effect/language-service": "^0.86.6",
|
|
473
|
+
"@effect/opentelemetry": "^0.63.0",
|
|
474
|
+
"@effect/platform": "^0.96.2",
|
|
475
|
+
"@effect/platform-browser": "^0.76.0",
|
|
476
|
+
"@effect/platform-bun": "^0.90.0",
|
|
477
|
+
"@effect/platform-node": "^0.107.0",
|
|
478
|
+
"@effect/platform-node-shared": "^0.60.0",
|
|
479
|
+
"@effect/printer": "^0.49.0",
|
|
480
|
+
"@effect/printer-ansi": "^0.49.0",
|
|
481
|
+
"@effect/rpc": "^0.75.1",
|
|
482
|
+
"@effect/sql": "^0.51.1",
|
|
483
|
+
"@effect/sql-clickhouse": "^0.49.0",
|
|
484
|
+
"@effect/sql-d1": "^0.49.0",
|
|
485
|
+
"@effect/sql-drizzle": "^0.50.0",
|
|
486
|
+
"@effect/sql-kysely": "^0.47.0",
|
|
487
|
+
"@effect/sql-libsql": "^0.41.0",
|
|
488
|
+
"@effect/sql-mssql": "^0.52.0",
|
|
489
|
+
"@effect/sql-mysql2": "^0.52.0",
|
|
490
|
+
"@effect/sql-pg": "^0.52.1",
|
|
491
|
+
"@effect/sql-sqlite-bun": "^0.52.0",
|
|
492
|
+
"@effect/sql-sqlite-do": "^0.29.0",
|
|
493
|
+
"@effect/sql-sqlite-node": "^0.52.0",
|
|
494
|
+
"@effect/sql-sqlite-react-native": "^0.54.0",
|
|
495
|
+
"@effect/sql-sqlite-wasm": "^0.52.0",
|
|
496
|
+
"@effect/typeclass": "^0.40.0",
|
|
497
|
+
"@effect/vitest": "^0.29.0",
|
|
498
|
+
"@effect/workflow": "^0.18.2",
|
|
499
|
+
"effect": "^3.21.4"
|
|
500
|
+
},
|
|
501
|
+
"effect3Peers": {
|
|
502
|
+
"@effect/ai": "^0.36.0",
|
|
503
|
+
"@effect/ai-amazon-bedrock": "^0.16.1",
|
|
504
|
+
"@effect/ai-anthropic": "^0.26.0",
|
|
505
|
+
"@effect/ai-google": "^0.15.0",
|
|
506
|
+
"@effect/ai-openai": "^0.40.1",
|
|
507
|
+
"@effect/cli": "^0.75.2",
|
|
508
|
+
"@effect/cluster": "^0.59.0",
|
|
509
|
+
"@effect/experimental": "^0.60.0",
|
|
510
|
+
"@effect/language-service": "^0.86.6",
|
|
511
|
+
"@effect/opentelemetry": "^0.63.0",
|
|
512
|
+
"@effect/platform": "^0.96.0",
|
|
513
|
+
"@effect/platform-browser": "^0.76.0",
|
|
514
|
+
"@effect/platform-bun": "^0.90.0",
|
|
515
|
+
"@effect/platform-node": "^0.107.0",
|
|
516
|
+
"@effect/platform-node-shared": "^0.60.0",
|
|
517
|
+
"@effect/printer": "^0.49.0",
|
|
518
|
+
"@effect/printer-ansi": "^0.49.0",
|
|
519
|
+
"@effect/rpc": "^0.75.1",
|
|
520
|
+
"@effect/sql": "^0.51.0",
|
|
521
|
+
"@effect/sql-clickhouse": "^0.49.0",
|
|
522
|
+
"@effect/sql-d1": "^0.49.0",
|
|
523
|
+
"@effect/sql-drizzle": "^0.50.0",
|
|
524
|
+
"@effect/sql-kysely": "^0.47.0",
|
|
525
|
+
"@effect/sql-libsql": "^0.41.0",
|
|
526
|
+
"@effect/sql-mssql": "^0.52.0",
|
|
527
|
+
"@effect/sql-mysql2": "^0.52.0",
|
|
528
|
+
"@effect/sql-pg": "^0.52.1",
|
|
529
|
+
"@effect/sql-sqlite-bun": "^0.52.0",
|
|
530
|
+
"@effect/sql-sqlite-do": "^0.29.0",
|
|
531
|
+
"@effect/sql-sqlite-node": "^0.52.0",
|
|
532
|
+
"@effect/sql-sqlite-react-native": "^0.54.0",
|
|
533
|
+
"@effect/sql-sqlite-wasm": "^0.52.0",
|
|
534
|
+
"@effect/typeclass": "^0.40.0",
|
|
535
|
+
"@effect/vitest": "^0.29.0",
|
|
536
|
+
"@effect/workflow": "^0.18.2",
|
|
537
|
+
"effect": "^3.21.0"
|
|
538
|
+
},
|
|
539
|
+
"effectPeers": {
|
|
540
|
+
"@effect/ai-anthropic": "4.0.0-beta.98",
|
|
541
|
+
"@effect/ai-openai": "4.0.0-beta.98",
|
|
542
|
+
"@effect/ai-openai-compat": "4.0.0-beta.98",
|
|
543
|
+
"@effect/ai-openrouter": "4.0.0-beta.98",
|
|
544
|
+
"@effect/atom-react": "4.0.0-beta.98",
|
|
545
|
+
"@effect/atom-solid": "4.0.0-beta.98",
|
|
546
|
+
"@effect/atom-vue": "4.0.0-beta.98",
|
|
547
|
+
"@effect/openapi-generator": "4.0.0-beta.98",
|
|
548
|
+
"@effect/opentelemetry": "4.0.0-beta.98",
|
|
549
|
+
"@effect/platform-browser": "4.0.0-beta.98",
|
|
550
|
+
"@effect/platform-bun": "4.0.0-beta.98",
|
|
551
|
+
"@effect/platform-node": "4.0.0-beta.98",
|
|
552
|
+
"@effect/platform-node-shared": "4.0.0-beta.98",
|
|
553
|
+
"@effect/sql-clickhouse": "4.0.0-beta.98",
|
|
554
|
+
"@effect/sql-d1": "4.0.0-beta.98",
|
|
555
|
+
"@effect/sql-libsql": "4.0.0-beta.98",
|
|
556
|
+
"@effect/sql-mssql": "4.0.0-beta.98",
|
|
557
|
+
"@effect/sql-mysql2": "4.0.0-beta.98",
|
|
558
|
+
"@effect/sql-pg": "4.0.0-beta.98",
|
|
559
|
+
"@effect/sql-pglite": "4.0.0-beta.98",
|
|
560
|
+
"@effect/sql-sqlite-bun": "4.0.0-beta.98",
|
|
561
|
+
"@effect/sql-sqlite-do": "4.0.0-beta.98",
|
|
562
|
+
"@effect/sql-sqlite-node": "4.0.0-beta.98",
|
|
563
|
+
"@effect/sql-sqlite-react-native": "4.0.0-beta.98",
|
|
564
|
+
"@effect/sql-sqlite-wasm": "4.0.0-beta.98",
|
|
565
|
+
"@effect/tsgo": "^0.16.2",
|
|
566
|
+
"@effect/vitest": "4.0.0-beta.98",
|
|
567
|
+
"effect": "4.0.0-beta.98"
|
|
568
|
+
}
|
|
569
|
+
},
|
|
570
|
+
"minimumReleaseAgeExclude": ["@effect/tsgo-*"]
|
|
571
|
+
}, {
|
|
572
|
+
"catalogs": {
|
|
573
|
+
"enforcement": "warn",
|
|
574
|
+
"strategy": "catalogs"
|
|
575
|
+
},
|
|
576
|
+
"minimumReleaseAgeExclude": {
|
|
577
|
+
"enforcement": "absent",
|
|
578
|
+
"strategy": "arrayUnion"
|
|
579
|
+
}
|
|
580
|
+
}, "@effected/pnpm-plugin-effect");
|
|
581
|
+
|
|
582
|
+
//#endregion
|
|
583
|
+
export { hooks };
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
// This file is read by tools that parse documentation comments conforming to the TSDoc standard.
|
|
2
|
+
// It should be published with your NPM package. It should not be tracked by Git.
|
|
3
|
+
{
|
|
4
|
+
"tsdocVersion": "0.12",
|
|
5
|
+
"toolPackages": [
|
|
6
|
+
{
|
|
7
|
+
"packageName": "@microsoft/api-extractor",
|
|
8
|
+
"packageVersion": "7.58.9"
|
|
9
|
+
}
|
|
10
|
+
]
|
|
11
|
+
}
|