@savvy-web/pnpm-plugin-silk 0.38.0 → 0.40.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/index.js CHANGED
@@ -1,7 +1,10 @@
1
1
  //#region \0rolldown-pnpm-config/virtual/catalogs
2
2
  const catalogs = /* @__PURE__ */ new Map([
3
3
  ["build", /* @__PURE__ */ new Map([
4
- ["@rsbuild/core", "^2.2.6"],
4
+ ["@microsoft/api-extractor", "^7.59.1"],
5
+ ["@microsoft/tsdoc", "~0.16.0"],
6
+ ["@microsoft/tsdoc-config", "~0.18.2"],
7
+ ["@rsbuild/core", "^2.2.7"],
5
8
  ["@tsdown/css", "^0.23.0"],
6
9
  ["@tsdown/exe", "^0.23.0"],
7
10
  ["@types/bun", "^1.4.2"],
@@ -10,12 +13,15 @@ const catalogs = /* @__PURE__ */ new Map([
10
13
  ["@types/react-dom", "^19.3.0"],
11
14
  ["react", "^19.3.0"],
12
15
  ["react-dom", "^19.3.0"],
13
- ["rolldown", "^1.2.8"],
16
+ ["rolldown", "^1.2.9"],
14
17
  ["tsdown", "^0.23.0"],
15
18
  ["tsx", "^4.23.13"],
16
19
  ["typescript", "^7.0.2"]
17
20
  ])],
18
21
  ["build:peers", /* @__PURE__ */ new Map([
22
+ ["@microsoft/api-extractor", "^7.59.0"],
23
+ ["@microsoft/tsdoc", "~0.16.0"],
24
+ ["@microsoft/tsdoc-config", "~0.18.0"],
19
25
  ["@rsbuild/core", "^2.2.0"],
20
26
  ["@tsdown/css", "^0.23.0"],
21
27
  ["@tsdown/exe", "^0.23.0"],
@@ -38,7 +44,7 @@ const catalogs = /* @__PURE__ */ new Map([
38
44
  ["@types/react-dom", "^19.3.0"],
39
45
  ["react", "^19.3.0"],
40
46
  ["react-dom", "^19.3.0"],
41
- ["rspress-plugin-mermaid", "^1.0.1"],
47
+ ["rspress-plugin-mermaid", "^1.0.2"],
42
48
  ["typescript", "^7.0.2"],
43
49
  ["vite", "^8.3.0"],
44
50
  ["vitepress", "^2.0.0-alpha.20"]
@@ -51,13 +57,13 @@ const catalogs = /* @__PURE__ */ new Map([
51
57
  ["@types/react-dom", "^19.3.0"],
52
58
  ["react", "^19.3.0"],
53
59
  ["react-dom", "^19.3.0"],
54
- ["rspress-plugin-mermaid", "^1.0.1"],
60
+ ["rspress-plugin-mermaid", "^1.0.2"],
55
61
  ["typescript", "^7.0.0"],
56
62
  ["vite", "^8.3.0"],
57
63
  ["vitepress", "^2.0.0-alpha.20"]
58
64
  ])],
59
65
  ["lint", /* @__PURE__ */ new Map([
60
- ["@biomejs/biome", "2.5.13"],
66
+ ["@biomejs/biome", "2.5.14"],
61
67
  ["@changesets/cli", "^3.0.3"],
62
68
  ["@commitlint/cli", "^21.2.2"],
63
69
  ["@commitlint/config-conventional", "^21.2.2"],
@@ -68,7 +74,7 @@ const catalogs = /* @__PURE__ */ new Map([
68
74
  ["turbo", "^2.10.13"]
69
75
  ])],
70
76
  ["lint:peers", /* @__PURE__ */ new Map([
71
- ["@biomejs/biome", "2.5.13"],
77
+ ["@biomejs/biome", "2.5.14"],
72
78
  ["@changesets/cli", "^3.0.3"],
73
79
  ["@commitlint/cli", "^21.2.2"],
74
80
  ["@commitlint/config-conventional", "^21.2.2"],
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@savvy-web/pnpm-plugin-silk",
3
- "version": "0.38.0",
3
+ "version": "0.40.0",
4
4
  "private": false,
5
5
  "description": "pnpm config dependency for centralized catalog management across the Silk ecosystem.",
6
6
  "keywords": [
package/pnpmfile.mjs CHANGED
@@ -1,7 +1,7 @@
1
1
  import { readFileSync } from "node:fs";
2
2
  import { join } from "node:path";
3
3
 
4
- //#region ../../node_modules/.pnpm/rolldown-pnpm-config@0.7.17_@effected+jsonc@0.11.0_effect@4.0.0-rc.115__@types+react@19.3.0_redis@6.2.1_rolldown@1.2.8/node_modules/rolldown-pnpm-config/runtime/ctx.js
4
+ //#region ../../node_modules/.pnpm/rolldown-pnpm-config@0.7.17_@effected+jsonc@0.11.0_effect@4.0.0-rc.115__@types+react@19.3.0_redis@6.2.1_rolldown@1.2.9/node_modules/rolldown-pnpm-config/runtime/ctx.js
5
5
  /**
6
6
  * Resolve the consuming repo's root package name. Prefers pnpm's
7
7
  * `rootProjectManifest.name`, falling back to reading `package.json` from the
@@ -36,7 +36,7 @@ function excludeByRepo(merged, ctx, byRepo) {
36
36
  }
37
37
 
38
38
  //#endregion
39
- //#region ../../node_modules/.pnpm/rolldown-pnpm-config@0.7.17_@effected+jsonc@0.11.0_effect@4.0.0-rc.115__@types+react@19.3.0_redis@6.2.1_rolldown@1.2.8/node_modules/rolldown-pnpm-config/runtime/enforcement.js
39
+ //#region ../../node_modules/.pnpm/rolldown-pnpm-config@0.7.17_@effected+jsonc@0.11.0_effect@4.0.0-rc.115__@types+react@19.3.0_redis@6.2.1_rolldown@1.2.9/node_modules/rolldown-pnpm-config/runtime/enforcement.js
40
40
  /**
41
41
  * Thrown when an `error`-enforced field diverges. A zero-dependency plain
42
42
  * `Error` subclass (NOT an Effect type) so it survives in the bundled pnpmfile.
@@ -71,7 +71,7 @@ function applyEnforcement(field, result, enforcement) {
71
71
  }
72
72
 
73
73
  //#endregion
74
- //#region ../../node_modules/.pnpm/rolldown-pnpm-config@0.7.17_@effected+jsonc@0.11.0_effect@4.0.0-rc.115__@types+react@19.3.0_redis@6.2.1_rolldown@1.2.8/node_modules/rolldown-pnpm-config/runtime/strategies/arrays.js
74
+ //#region ../../node_modules/.pnpm/rolldown-pnpm-config@0.7.17_@effected+jsonc@0.11.0_effect@4.0.0-rc.115__@types+react@19.3.0_redis@6.2.1_rolldown@1.2.9/node_modules/rolldown-pnpm-config/runtime/strategies/arrays.js
75
75
  function unionSort(managed, local) {
76
76
  const set = new Set(managed);
77
77
  for (const item of local ?? []) set.add(item);
@@ -107,7 +107,7 @@ const arrayRecordUnion = (base, local) => {
107
107
  };
108
108
 
109
109
  //#endregion
110
- //#region ../../node_modules/.pnpm/rolldown-pnpm-config@0.7.17_@effected+jsonc@0.11.0_effect@4.0.0-rc.115__@types+react@19.3.0_redis@6.2.1_rolldown@1.2.8/node_modules/rolldown-pnpm-config/runtime/strategies/catalogs.js
110
+ //#region ../../node_modules/.pnpm/rolldown-pnpm-config@0.7.17_@effected+jsonc@0.11.0_effect@4.0.0-rc.115__@types+react@19.3.0_redis@6.2.1_rolldown@1.2.9/node_modules/rolldown-pnpm-config/runtime/strategies/catalogs.js
111
111
  /**
112
112
  * Merge each named catalog; child wins per package. Emits override divergences
113
113
  * when a local version differs from the managed one.
@@ -142,7 +142,7 @@ const catalogs = (base, local) => {
142
142
  };
143
143
 
144
144
  //#endregion
145
- //#region ../../node_modules/.pnpm/rolldown-pnpm-config@0.7.17_@effected+jsonc@0.11.0_effect@4.0.0-rc.115__@types+react@19.3.0_redis@6.2.1_rolldown@1.2.8/node_modules/rolldown-pnpm-config/runtime/strategies/maps.js
145
+ //#region ../../node_modules/.pnpm/rolldown-pnpm-config@0.7.17_@effected+jsonc@0.11.0_effect@4.0.0-rc.115__@types+react@19.3.0_redis@6.2.1_rolldown@1.2.9/node_modules/rolldown-pnpm-config/runtime/strategies/maps.js
146
146
  /**
147
147
  * `{...managed, ...child}` — child wins per key. Quiet. Merges two maps,
148
148
  * preferring child values.
@@ -187,7 +187,7 @@ const allowBuilds = (base, local) => {
187
187
  };
188
188
 
189
189
  //#endregion
190
- //#region ../../node_modules/.pnpm/rolldown-pnpm-config@0.7.17_@effected+jsonc@0.11.0_effect@4.0.0-rc.115__@types+react@19.3.0_redis@6.2.1_rolldown@1.2.8/node_modules/rolldown-pnpm-config/runtime/strategies/overrides.js
190
+ //#region ../../node_modules/.pnpm/rolldown-pnpm-config@0.7.17_@effected+jsonc@0.11.0_effect@4.0.0-rc.115__@types+react@19.3.0_redis@6.2.1_rolldown@1.2.9/node_modules/rolldown-pnpm-config/runtime/strategies/overrides.js
191
191
  function mergeMapDetect(prefix, managed, child) {
192
192
  const merged = { ...managed };
193
193
  const divergences = [];
@@ -243,7 +243,7 @@ const peerDependencyRules = (base, local) => {
243
243
  };
244
244
 
245
245
  //#endregion
246
- //#region ../../node_modules/.pnpm/rolldown-pnpm-config@0.7.17_@effected+jsonc@0.11.0_effect@4.0.0-rc.115__@types+react@19.3.0_redis@6.2.1_rolldown@1.2.8/node_modules/rolldown-pnpm-config/runtime/strategies/scalar.js
246
+ //#region ../../node_modules/.pnpm/rolldown-pnpm-config@0.7.17_@effected+jsonc@0.11.0_effect@4.0.0-rc.115__@types+react@19.3.0_redis@6.2.1_rolldown@1.2.9/node_modules/rolldown-pnpm-config/runtime/strategies/scalar.js
247
247
  /**
248
248
  * `child ?? base` — quiet (no divergences). Prefer local, fall back to managed.
249
249
  *
@@ -299,7 +299,7 @@ const securityMin = (base, local) => {
299
299
  };
300
300
 
301
301
  //#endregion
302
- //#region ../../node_modules/.pnpm/rolldown-pnpm-config@0.7.17_@effected+jsonc@0.11.0_effect@4.0.0-rc.115__@types+react@19.3.0_redis@6.2.1_rolldown@1.2.8/node_modules/rolldown-pnpm-config/runtime/strategies/table.js
302
+ //#region ../../node_modules/.pnpm/rolldown-pnpm-config@0.7.17_@effected+jsonc@0.11.0_effect@4.0.0-rc.115__@types+react@19.3.0_redis@6.2.1_rolldown@1.2.9/node_modules/rolldown-pnpm-config/runtime/strategies/table.js
303
303
  /**
304
304
  * Built-in strategies keyed by manifest name.
305
305
  *
@@ -319,7 +319,7 @@ const STRATEGY_TABLE = {
319
319
  };
320
320
 
321
321
  //#endregion
322
- //#region ../../node_modules/.pnpm/rolldown-pnpm-config@0.7.17_@effected+jsonc@0.11.0_effect@4.0.0-rc.115__@types+react@19.3.0_redis@6.2.1_rolldown@1.2.8/node_modules/rolldown-pnpm-config/runtime/warnings.js
322
+ //#region ../../node_modules/.pnpm/rolldown-pnpm-config@0.7.17_@effected+jsonc@0.11.0_effect@4.0.0-rc.115__@types+react@19.3.0_redis@6.2.1_rolldown@1.2.9/node_modules/rolldown-pnpm-config/runtime/warnings.js
323
323
  const WARNING_BOX_WIDTH = 75;
324
324
  function pad(line) {
325
325
  return `│${line}${" ".repeat(Math.max(0, WARNING_BOX_WIDTH - line.length - 2))}│`;
@@ -379,7 +379,7 @@ function formatSecurityWarning(divergences, name) {
379
379
  }
380
380
 
381
381
  //#endregion
382
- //#region ../../node_modules/.pnpm/rolldown-pnpm-config@0.7.17_@effected+jsonc@0.11.0_effect@4.0.0-rc.115__@types+react@19.3.0_redis@6.2.1_rolldown@1.2.8/node_modules/rolldown-pnpm-config/runtime.js
382
+ //#region ../../node_modules/.pnpm/rolldown-pnpm-config@0.7.17_@effected+jsonc@0.11.0_effect@4.0.0-rc.115__@types+react@19.3.0_redis@6.2.1_rolldown@1.2.9/node_modules/rolldown-pnpm-config/runtime.js
383
383
  /**
384
384
  * Build the pnpm hooks from frozen base data + a field→strategy manifest.
385
385
  * Zero dependencies — bundled verbatim into the shipped pnpmfile.
@@ -447,7 +447,10 @@ const hooks = createHooks({
447
447
  "blockExoticSubdeps": true,
448
448
  "catalogs": {
449
449
  "build": {
450
- "@rsbuild/core": "^2.2.6",
450
+ "@microsoft/api-extractor": "^7.59.1",
451
+ "@microsoft/tsdoc": "~0.16.0",
452
+ "@microsoft/tsdoc-config": "~0.18.2",
453
+ "@rsbuild/core": "^2.2.7",
451
454
  "@tsdown/css": "^0.23.0",
452
455
  "@tsdown/exe": "^0.23.0",
453
456
  "@types/bun": "^1.4.2",
@@ -456,12 +459,15 @@ const hooks = createHooks({
456
459
  "@types/react-dom": "^19.3.0",
457
460
  "react": "^19.3.0",
458
461
  "react-dom": "^19.3.0",
459
- "rolldown": "^1.2.8",
462
+ "rolldown": "^1.2.9",
460
463
  "tsdown": "^0.23.0",
461
464
  "tsx": "^4.23.13",
462
465
  "typescript": "^7.0.2"
463
466
  },
464
467
  "build:peers": {
468
+ "@microsoft/api-extractor": "^7.59.0",
469
+ "@microsoft/tsdoc": "~0.16.0",
470
+ "@microsoft/tsdoc-config": "~0.18.0",
465
471
  "@rsbuild/core": "^2.2.0",
466
472
  "@tsdown/css": "^0.23.0",
467
473
  "@tsdown/exe": "^0.23.0",
@@ -484,7 +490,7 @@ const hooks = createHooks({
484
490
  "@types/react-dom": "^19.3.0",
485
491
  "react": "^19.3.0",
486
492
  "react-dom": "^19.3.0",
487
- "rspress-plugin-mermaid": "^1.0.1",
493
+ "rspress-plugin-mermaid": "^1.0.2",
488
494
  "typescript": "^7.0.2",
489
495
  "vite": "^8.3.0",
490
496
  "vitepress": "^2.0.0-alpha.20"
@@ -497,13 +503,13 @@ const hooks = createHooks({
497
503
  "@types/react-dom": "^19.3.0",
498
504
  "react": "^19.3.0",
499
505
  "react-dom": "^19.3.0",
500
- "rspress-plugin-mermaid": "^1.0.1",
506
+ "rspress-plugin-mermaid": "^1.0.2",
501
507
  "typescript": "^7.0.0",
502
508
  "vite": "^8.3.0",
503
509
  "vitepress": "^2.0.0-alpha.20"
504
510
  },
505
511
  "lint": {
506
- "@biomejs/biome": "2.5.13",
512
+ "@biomejs/biome": "2.5.14",
507
513
  "@changesets/cli": "^3.0.3",
508
514
  "@commitlint/cli": "^21.2.2",
509
515
  "@commitlint/config-conventional": "^21.2.2",
@@ -514,7 +520,7 @@ const hooks = createHooks({
514
520
  "turbo": "^2.10.13"
515
521
  },
516
522
  "lint:peers": {
517
- "@biomejs/biome": "2.5.13",
523
+ "@biomejs/biome": "2.5.14",
518
524
  "@changesets/cli": "^3.0.3",
519
525
  "@commitlint/cli": "^21.2.2",
520
526
  "@commitlint/config-conventional": "^21.2.2",
@@ -598,14 +604,7 @@ const hooks = createHooks({
598
604
  },
599
605
  "peerDependencyRules": { "allowedVersions": {
600
606
  "@effect/vitest>vitest": "^5.0.1",
601
- "@typescript-eslint/project-service>typescript": "^6.0.0",
602
- "@typescript-eslint/tsconfig-utils>typescript": "^6.0.0",
603
- "@typescript-eslint/typescript-estree>typescript": "^6.0.0",
604
- "@typescript-eslint/util>typescript": "^6.0.0",
605
- "@typescript-eslint/utils>typescript": "^6.0.0",
606
- "eslint-plugin-tsdoc>typescript": "^6.0.0",
607
- "ink-tab>ink": "^7.0.0",
608
- "tsdown>typescript": "^5.0.0 || ^6.0.0 || ^7.0.0"
607
+ "ink-tab>ink": "^7.0.0"
609
608
  } },
610
609
  "publicHoistPattern": [
611
610
  "@changesets/cli",
@@ -618,8 +617,6 @@ const hooks = createHooks({
618
617
  "@types/react",
619
618
  "@types/react-dom",
620
619
  "@typescript/native-preview",
621
- "@vitest-agent/cli",
622
- "@vitest-agent/mcp",
623
620
  "@vitest/coverage-istanbul",
624
621
  "@vitest/coverage-v8",
625
622
  "husky",
package/pnpmfile.cjs DELETED
@@ -1,685 +0,0 @@
1
- Object.defineProperty(exports, Symbol.toStringTag, { value: 'Module' });
2
- let node_fs = require("node:fs");
3
- let node_path = require("node:path");
4
-
5
- //#region ../../node_modules/.pnpm/rolldown-pnpm-config@0.7.17_@effected+jsonc@0.11.0_effect@4.0.0-rc.115__@types+react@19.3.0_redis@6.2.1_rolldown@1.2.8/node_modules/rolldown-pnpm-config/runtime/ctx.js
6
- /**
7
- * Resolve the consuming repo's root package name. Prefers pnpm's
8
- * `rootProjectManifest.name`, falling back to reading `package.json` from the
9
- * workspace/lockfile dir.
10
- *
11
- * @internal
12
- */
13
- function resolveRootName(config) {
14
- const c = config;
15
- if (c.rootProjectManifest?.name) return c.rootProjectManifest.name;
16
- const rootDir = c.rootProjectManifestDir ?? c.lockfileDir ?? c.workspaceDir ?? c.dir ?? process.cwd();
17
- try {
18
- return JSON.parse((0, node_fs.readFileSync)((0, node_path.join)(rootDir, "package.json"), "utf8")).name;
19
- } catch {
20
- return;
21
- }
22
- }
23
- /**
24
- * Drop packages assigned to the consuming repo from a merged hoist list.
25
- * Drop packages listed in the per-repo exclusion table (`byRepo`).
26
- *
27
- * @param merged - The full merged hoist-pattern list before repo-specific exclusions.
28
- * @param ctx - Runtime context; `ctx.rootName` is the consuming repo's root `package.json` `name`.
29
- * @param byRepo Keyed by consuming-repo package.json name; value = hoist patterns dropped in that repo.
30
- * @internal
31
- */
32
- function excludeByRepo(merged, ctx, byRepo) {
33
- const exclude = ctx.rootName ? byRepo[ctx.rootName] : void 0;
34
- if (!exclude || exclude.length === 0) return merged;
35
- const set = new Set(exclude);
36
- return merged.filter((p) => !set.has(p));
37
- }
38
-
39
- //#endregion
40
- //#region ../../node_modules/.pnpm/rolldown-pnpm-config@0.7.17_@effected+jsonc@0.11.0_effect@4.0.0-rc.115__@types+react@19.3.0_redis@6.2.1_rolldown@1.2.8/node_modules/rolldown-pnpm-config/runtime/enforcement.js
41
- /**
42
- * Thrown when an `error`-enforced field diverges. A zero-dependency plain
43
- * `Error` subclass (NOT an Effect type) so it survives in the bundled pnpmfile.
44
- * It is intended to fail the install and must never be swallowed by an install
45
- * guard — see the note in `runtime/index.ts`.
46
- *
47
- * @internal
48
- */
49
- var EnforcementError = class extends Error {
50
- constructor(message) {
51
- super(message);
52
- this.name = "EnforcementError";
53
- }
54
- };
55
- /**
56
- * Apply enforcement to a strategy result, partitioning its divergences into
57
- * override and security buckets for the runtime to print. When enforcement is
58
- * `error` and there is at least one divergence, throws {@link EnforcementError}.
59
- *
60
- * @internal
61
- */
62
- function applyEnforcement(field, result, enforcement) {
63
- const overrides = [];
64
- const security = [];
65
- 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(", ")}`);
66
- if (result.divergences.length > 0 && enforcement === "warn") for (const d of result.divergences) (d.kind === "security" ? security : overrides).push(d);
67
- return {
68
- value: result.merged,
69
- overrides,
70
- security
71
- };
72
- }
73
-
74
- //#endregion
75
- //#region ../../node_modules/.pnpm/rolldown-pnpm-config@0.7.17_@effected+jsonc@0.11.0_effect@4.0.0-rc.115__@types+react@19.3.0_redis@6.2.1_rolldown@1.2.8/node_modules/rolldown-pnpm-config/runtime/strategies/arrays.js
76
- function unionSort(managed, local) {
77
- const set = new Set(managed);
78
- for (const item of local ?? []) set.add(item);
79
- return [...set].sort((a, b) => a.localeCompare(b));
80
- }
81
- /**
82
- * Union + sort string arrays; child entries are added to the managed set. Quiet.
83
- *
84
- * @internal
85
- */
86
- const arrayUnion = (base, local) => ({
87
- merged: unionSort(base ?? [], local),
88
- divergences: []
89
- });
90
- /**
91
- * Per-axis union of a record of string arrays; drops empty axes. Quiet.
92
- *
93
- * @internal
94
- */
95
- const arrayRecordUnion = (base, local) => {
96
- const managed = base ?? {};
97
- const child = local ?? {};
98
- const keys = /* @__PURE__ */ new Set([...Object.keys(managed), ...Object.keys(child)]);
99
- const result = {};
100
- for (const key of [...keys].sort((a, b) => a.localeCompare(b))) {
101
- const merged = unionSort(managed[key] ?? [], child[key]);
102
- if (merged.length > 0) result[key] = merged;
103
- }
104
- return {
105
- merged: result,
106
- divergences: []
107
- };
108
- };
109
-
110
- //#endregion
111
- //#region ../../node_modules/.pnpm/rolldown-pnpm-config@0.7.17_@effected+jsonc@0.11.0_effect@4.0.0-rc.115__@types+react@19.3.0_redis@6.2.1_rolldown@1.2.8/node_modules/rolldown-pnpm-config/runtime/strategies/catalogs.js
112
- /**
113
- * Merge each named catalog; child wins per package. Emits override divergences
114
- * when a local version differs from the managed one.
115
- *
116
- * @internal
117
- */
118
- const catalogs = (base, local) => {
119
- const managed = base ?? {};
120
- const child = local ?? {};
121
- const divergences = [];
122
- const merged = { ...child };
123
- for (const [name, entries] of Object.entries(managed)) {
124
- const childCat = child[name] ?? {};
125
- const out = { ...entries };
126
- for (const [pkg, childVersion] of Object.entries(childCat)) {
127
- const managedVersion = entries[pkg];
128
- if (managedVersion !== void 0 && managedVersion !== childVersion) divergences.push({
129
- setting: `catalogs.${name}.${pkg}`,
130
- managedValue: managedVersion,
131
- localValue: childVersion,
132
- detail: "Local version overrides the managed version.",
133
- kind: "override"
134
- });
135
- out[pkg] = childVersion;
136
- }
137
- merged[name] = out;
138
- }
139
- return {
140
- merged,
141
- divergences
142
- };
143
- };
144
-
145
- //#endregion
146
- //#region ../../node_modules/.pnpm/rolldown-pnpm-config@0.7.17_@effected+jsonc@0.11.0_effect@4.0.0-rc.115__@types+react@19.3.0_redis@6.2.1_rolldown@1.2.8/node_modules/rolldown-pnpm-config/runtime/strategies/maps.js
147
- /**
148
- * `{...managed, ...child}` — child wins per key. Quiet. Merges two maps,
149
- * preferring child values.
150
- *
151
- * @internal
152
- */
153
- const mapChildWins = (base, local) => {
154
- const managed = base ?? {};
155
- const child = local;
156
- return {
157
- merged: child ? {
158
- ...managed,
159
- ...child
160
- } : { ...managed },
161
- divergences: []
162
- };
163
- };
164
- /**
165
- * `{...managed, ...child}`; flags enabling a build the managed config blocked.
166
- * Detects allow-builds loosening.
167
- *
168
- * @internal
169
- */
170
- const allowBuilds = (base, local) => {
171
- const managed = base ?? {};
172
- const child = local ?? {};
173
- const divergences = [];
174
- for (const [pkg, childAllowed] of Object.entries(child)) if (childAllowed === true && managed[pkg] === false) divergences.push({
175
- setting: `allowBuilds.${pkg}`,
176
- managedValue: "false",
177
- localValue: "true",
178
- detail: `Enables build scripts for "${pkg}" that the managed config blocked.`,
179
- kind: "security"
180
- });
181
- return {
182
- merged: {
183
- ...managed,
184
- ...child
185
- },
186
- divergences
187
- };
188
- };
189
-
190
- //#endregion
191
- //#region ../../node_modules/.pnpm/rolldown-pnpm-config@0.7.17_@effected+jsonc@0.11.0_effect@4.0.0-rc.115__@types+react@19.3.0_redis@6.2.1_rolldown@1.2.8/node_modules/rolldown-pnpm-config/runtime/strategies/overrides.js
192
- function mergeMapDetect(prefix, managed, child) {
193
- const merged = { ...managed };
194
- const divergences = [];
195
- for (const [k, childVersion] of Object.entries(child)) {
196
- const managedVersion = managed[k];
197
- if (managedVersion !== void 0 && managedVersion !== childVersion) divergences.push({
198
- setting: `${prefix}.${k}`,
199
- managedValue: managedVersion,
200
- localValue: childVersion,
201
- detail: "Local version overrides the managed version.",
202
- kind: "override"
203
- });
204
- merged[k] = childVersion;
205
- }
206
- return {
207
- merged,
208
- divergences
209
- };
210
- }
211
- /**
212
- * Security overrides: child wins per key; any diff → override divergence.
213
- * Merge overrides, flagging local divergences.
214
- *
215
- * @internal
216
- */
217
- const overrides = (base, local) => {
218
- const { merged, divergences } = mergeMapDetect("overrides", base ?? {}, local ?? {});
219
- return {
220
- merged,
221
- divergences
222
- };
223
- };
224
- /**
225
- * peerDependencyRules: `allowedVersions` is override-detected; `ignoreMissing`
226
- * and `allowAny` are unioned + sorted. Merges peer-dependency rules,
227
- * flagging version overrides.
228
- *
229
- * @internal
230
- */
231
- const peerDependencyRules = (base, local) => {
232
- const managed = base ?? {};
233
- const child = local ?? {};
234
- const av = mergeMapDetect("peerDependencyRules.allowedVersions", managed.allowedVersions ?? {}, child.allowedVersions ?? {});
235
- const union = (s = [], c = []) => [.../* @__PURE__ */ new Set([...s, ...c])].sort((a, b) => a.localeCompare(b));
236
- return {
237
- merged: {
238
- allowedVersions: av.merged,
239
- ignoreMissing: union(managed.ignoreMissing, child.ignoreMissing),
240
- allowAny: union(managed.allowAny, child.allowAny)
241
- },
242
- divergences: av.divergences
243
- };
244
- };
245
-
246
- //#endregion
247
- //#region ../../node_modules/.pnpm/rolldown-pnpm-config@0.7.17_@effected+jsonc@0.11.0_effect@4.0.0-rc.115__@types+react@19.3.0_redis@6.2.1_rolldown@1.2.8/node_modules/rolldown-pnpm-config/runtime/strategies/scalar.js
248
- /**
249
- * `child ?? base` — quiet (no divergences). Prefer local, fall back to managed.
250
- *
251
- * @internal
252
- */
253
- const scalar = (base, local) => ({
254
- merged: local ?? base,
255
- divergences: []
256
- });
257
- /**
258
- * `child ?? base`; flags when child disables a managed boolean. The strategy is
259
- * field-agnostic, so it emits `setting: ""`; the runtime fills the field name.
260
- * Detects flag loosening.
261
- *
262
- * @internal
263
- */
264
- const securityFlag = (base, local) => {
265
- const merged = local ?? base;
266
- const divergences = [];
267
- if (base === true && local === false) divergences.push({
268
- setting: "",
269
- managedValue: "true",
270
- localValue: "false",
271
- detail: "Disables a security check the managed config enabled.",
272
- kind: "security"
273
- });
274
- return {
275
- merged,
276
- divergences
277
- };
278
- };
279
- /**
280
- * `child ?? base`; flags when child lowers the value. Field-agnostic, so it
281
- * emits `setting: ""`; the runtime fills the field name. Detects
282
- * minimum-release-age loosening.
283
- *
284
- * @internal
285
- */
286
- const securityMin = (base, local) => {
287
- const merged = local ?? base;
288
- const divergences = [];
289
- if (typeof base === "number" && typeof local === "number" && local < base) divergences.push({
290
- setting: "",
291
- managedValue: String(base),
292
- localValue: String(local),
293
- detail: `Shortens the release-age quarantine from ${base} to ${local} minutes.`,
294
- kind: "security"
295
- });
296
- return {
297
- merged,
298
- divergences
299
- };
300
- };
301
-
302
- //#endregion
303
- //#region ../../node_modules/.pnpm/rolldown-pnpm-config@0.7.17_@effected+jsonc@0.11.0_effect@4.0.0-rc.115__@types+react@19.3.0_redis@6.2.1_rolldown@1.2.8/node_modules/rolldown-pnpm-config/runtime/strategies/table.js
304
- /**
305
- * Built-in strategies keyed by manifest name.
306
- *
307
- * @internal
308
- */
309
- const STRATEGY_TABLE = {
310
- scalar,
311
- catalogs,
312
- mapChildWins,
313
- arrayUnion,
314
- arrayRecordUnion,
315
- overrides,
316
- peerDependencyRules,
317
- securityFlag,
318
- securityMin,
319
- allowBuilds
320
- };
321
-
322
- //#endregion
323
- //#region ../../node_modules/.pnpm/rolldown-pnpm-config@0.7.17_@effected+jsonc@0.11.0_effect@4.0.0-rc.115__@types+react@19.3.0_redis@6.2.1_rolldown@1.2.8/node_modules/rolldown-pnpm-config/runtime/warnings.js
324
- const WARNING_BOX_WIDTH = 75;
325
- function pad(line) {
326
- return `│${line}${" ".repeat(Math.max(0, WARNING_BOX_WIDTH - line.length - 2))}│`;
327
- }
328
- /**
329
- * Format override divergences into a prominent warning box for console output,
330
- * tagged with the emitting config's `name`. `Divergence.setting` is the
331
- * already-resolved config path, printed directly.
332
- *
333
- * @internal
334
- */
335
- function formatOverrideWarning(divergences, name) {
336
- if (divergences.length === 0) return "";
337
- const border = "─".repeat(73);
338
- const lines = [];
339
- lines.push(`┌${border}┐`);
340
- lines.push(pad(` [${name}]`));
341
- lines.push(pad(" ⚠️ CATALOG OVERRIDE DETECTED"));
342
- lines.push(`├${border}┤`);
343
- lines.push(pad(" The following entries override managed versions:"));
344
- lines.push(pad(""));
345
- for (const d of divergences) {
346
- lines.push(pad(` ${d.setting}`));
347
- lines.push(pad(` Managed version: ${d.managedValue}`));
348
- lines.push(pad(` Local override: ${d.localValue}`));
349
- lines.push(pad(""));
350
- }
351
- lines.push(pad(" Local versions will be used. To use the managed defaults, remove"));
352
- lines.push(pad(" these entries from your pnpm-workspace.yaml."));
353
- lines.push(`└${border}┘`);
354
- return lines.join("\n");
355
- }
356
- /**
357
- * Format security-loosening divergences into a prominent box, tagged with the
358
- * emitting config's `name`.
359
- *
360
- * @internal
361
- */
362
- function formatSecurityWarning(divergences, name) {
363
- if (divergences.length === 0) return "";
364
- const border = "─".repeat(73);
365
- const lines = [];
366
- lines.push(`┌${border}┐`);
367
- lines.push(pad(` [${name}]`));
368
- lines.push(pad(" ⚠️ SECURITY OVERRIDE DETECTED"));
369
- lines.push(`├${border}┤`);
370
- lines.push(pad(" The following entries weaken managed security defaults:"));
371
- lines.push(pad(""));
372
- for (const d of divergences) {
373
- lines.push(pad(` ${d.setting}: managed=${d.managedValue} -> local=${d.localValue}`));
374
- lines.push(pad(` ${d.detail}`));
375
- lines.push(pad(""));
376
- }
377
- lines.push(pad(" Local values will be used. Review these before shipping."));
378
- lines.push(`└${border}┘`);
379
- return lines.join("\n");
380
- }
381
-
382
- //#endregion
383
- //#region ../../node_modules/.pnpm/rolldown-pnpm-config@0.7.17_@effected+jsonc@0.11.0_effect@4.0.0-rc.115__@types+react@19.3.0_redis@6.2.1_rolldown@1.2.8/node_modules/rolldown-pnpm-config/runtime.js
384
- /**
385
- * Build the pnpm hooks from frozen base data + a field→strategy manifest.
386
- * Zero dependencies — bundled verbatim into the shipped pnpmfile.
387
- *
388
- * @remarks
389
- * `updateConfig` deliberately has no catch-and-fall-back-to-local guard: an
390
- * `error`-enforced divergence throws `EnforcementError`, which is meant to
391
- * propagate and fail the install. If a swallow-guard is ever added here, it MUST
392
- * rethrow `EnforcementError` (check `err instanceof EnforcementError` /
393
- * `err.name === "EnforcementError"`) rather than fall back to the local config.
394
- *
395
- * @public
396
- */
397
- function createHooks(base, manifest, name) {
398
- return { updateConfig(config) {
399
- const ctx = { rootName: resolveRootName(config) };
400
- const out = { ...config };
401
- const allOverrides = [];
402
- const allSecurity = [];
403
- for (const [field, entry] of Object.entries(manifest)) {
404
- const strategy = STRATEGY_TABLE[entry.strategy];
405
- if (!strategy) continue;
406
- const result = strategy(base[field], config[field], ctx);
407
- let merged = result.merged;
408
- const byRepo = entry.options?.excludeByRepo;
409
- if (byRepo && Array.isArray(merged)) merged = excludeByRepo(merged, ctx, byRepo);
410
- const named = result.divergences.map((d) => d.setting === "" ? {
411
- ...d,
412
- setting: field
413
- } : d);
414
- const { value, overrides, security } = applyEnforcement(field, {
415
- merged,
416
- divergences: named
417
- }, entry.enforcement);
418
- allOverrides.push(...overrides);
419
- allSecurity.push(...security);
420
- if (value !== void 0 && !(typeof value === "object" && value !== null && Object.keys(value).length === 0)) out[field] = value;
421
- }
422
- const ob = formatOverrideWarning(allOverrides, name);
423
- if (ob) console.warn(ob);
424
- const sb = formatSecurityWarning(allSecurity, name);
425
- if (sb) console.warn(sb);
426
- return out;
427
- } };
428
- }
429
-
430
- //#endregion
431
- //#region \0rolldown-pnpm-config/virtual/pnpmfile
432
- const hooks = createHooks({
433
- "allowBuilds": {
434
- "@parcel/watcher": true,
435
- "better-sqlite3": true,
436
- "core-js": true,
437
- "esbuild": true,
438
- "msgpackr-extract": true
439
- },
440
- "allowedDeprecatedVersions": {
441
- "@types/acorn": "*",
442
- "git-raw-commits": "*",
443
- "glob": "*",
444
- "inflight": "*",
445
- "node-domexception": "*",
446
- "prebuild-install": "*"
447
- },
448
- "blockExoticSubdeps": true,
449
- "catalogs": {
450
- "build": {
451
- "@rsbuild/core": "^2.2.6",
452
- "@tsdown/css": "^0.23.0",
453
- "@tsdown/exe": "^0.23.0",
454
- "@types/bun": "^1.4.2",
455
- "@types/node": "^26.6.1",
456
- "@types/react": "^19.3.0",
457
- "@types/react-dom": "^19.3.0",
458
- "react": "^19.3.0",
459
- "react-dom": "^19.3.0",
460
- "rolldown": "^1.2.8",
461
- "tsdown": "^0.23.0",
462
- "tsx": "^4.23.13",
463
- "typescript": "^7.0.2"
464
- },
465
- "build:peers": {
466
- "@rsbuild/core": "^2.2.0",
467
- "@tsdown/css": "^0.23.0",
468
- "@tsdown/exe": "^0.23.0",
469
- "@types/bun": "^1.4.2",
470
- "@types/node": "^26.6.0",
471
- "@types/react": "^19.3.0",
472
- "@types/react-dom": "^19.3.0",
473
- "react": "^19.3.0",
474
- "react-dom": "^19.3.0",
475
- "rolldown": "^1.2.0",
476
- "tsdown": "^0.23.0",
477
- "tsx": "^4.23.13",
478
- "typescript": "^7.0.0"
479
- },
480
- "docs": {
481
- "@rspress/core": "^2.0.21",
482
- "@rspress/plugin-sitemap": "^2.0.21",
483
- "@types/node": "^26.6.1",
484
- "@types/react": "^19.3.0",
485
- "@types/react-dom": "^19.3.0",
486
- "react": "^19.3.0",
487
- "react-dom": "^19.3.0",
488
- "rspress-plugin-mermaid": "^1.0.1",
489
- "typescript": "^7.0.2",
490
- "vite": "^8.3.0",
491
- "vitepress": "^2.0.0-alpha.20"
492
- },
493
- "docs:peers": {
494
- "@rspress/core": "^2.0.0",
495
- "@rspress/plugin-sitemap": "^2.0.21",
496
- "@types/node": "^26.6.0",
497
- "@types/react": "^19.3.0",
498
- "@types/react-dom": "^19.3.0",
499
- "react": "^19.3.0",
500
- "react-dom": "^19.3.0",
501
- "rspress-plugin-mermaid": "^1.0.1",
502
- "typescript": "^7.0.0",
503
- "vite": "^8.3.0",
504
- "vitepress": "^2.0.0-alpha.20"
505
- },
506
- "lint": {
507
- "@biomejs/biome": "2.5.13",
508
- "@changesets/cli": "^3.0.3",
509
- "@commitlint/cli": "^21.2.2",
510
- "@commitlint/config-conventional": "^21.2.2",
511
- "husky": "^9.1.7",
512
- "lint-staged": "^17.5.1",
513
- "markdownlint-cli2": "^0.23.2",
514
- "markdownlint-cli2-formatter-codequality": "^0.0.7",
515
- "turbo": "^2.10.13"
516
- },
517
- "lint:peers": {
518
- "@biomejs/biome": "2.5.13",
519
- "@changesets/cli": "^3.0.3",
520
- "@commitlint/cli": "^21.2.2",
521
- "@commitlint/config-conventional": "^21.2.2",
522
- "husky": "^9.1.7",
523
- "lint-staged": "^17.5.1",
524
- "markdownlint-cli2": "^0.23.2",
525
- "markdownlint-cli2-formatter-codequality": "^0.0.7",
526
- "turbo": "^2.10.13"
527
- },
528
- "silk": {
529
- "@types/bun": "^1.4.2",
530
- "@types/node": "^26.6.1",
531
- "@types/react": "^19.3.0",
532
- "@types/react-dom": "^19.3.0",
533
- "@typescript/native-preview": "^7.0.0-dev.20260707.2",
534
- "husky": "^9.1.7",
535
- "lint-staged": "^17.5.1",
536
- "markdownlint-cli2": "^0.23.2",
537
- "markdownlint-cli2-formatter-codequality": "^0.0.7",
538
- "react": "^19.3.0",
539
- "react-dom": "^19.3.0",
540
- "tsx": "^4.23.13",
541
- "typescript": "^7.0.2"
542
- },
543
- "silk:peers": {
544
- "@types/bun": "^1.4.2",
545
- "@types/node": "^26.6.0",
546
- "@types/react": "^19.3.0",
547
- "@types/react-dom": "^19.3.0",
548
- "@typescript/native-preview": "^7.0.0-dev.20260707.2",
549
- "husky": "^9.1.7",
550
- "lint-staged": "^17.5.1",
551
- "markdownlint-cli2": "^0.23.2",
552
- "markdownlint-cli2-formatter-codequality": "^0.0.7",
553
- "react": "^19.3.0",
554
- "react-dom": "^19.3.0",
555
- "tsx": "^4.23.13",
556
- "typescript": "^7.0.0"
557
- },
558
- "test": {
559
- "@vitest/coverage-istanbul": "^5.0.1",
560
- "@vitest/coverage-v8": "^5.0.1",
561
- "@vitest/expect": "^5.0.1",
562
- "vite": "^8.3.0",
563
- "vitest": "^5.0.1"
564
- },
565
- "test:peers": {
566
- "@vitest/coverage-istanbul": "^5.0.0",
567
- "@vitest/coverage-v8": "^5.0.0",
568
- "@vitest/expect": "^5.0.0",
569
- "vite": "^8.3.0",
570
- "vitest": "^5.0.0"
571
- }
572
- },
573
- "confirmModulesPurge": false,
574
- "minimumReleaseAge": 1440,
575
- "minimumReleaseAgeExclude": [
576
- "@effected/*",
577
- "@oxc-parser/*",
578
- "@oxc-project/*",
579
- "@savvy-web/*",
580
- "@spencerbeggs/*",
581
- "@okfit/*",
582
- "@tsdoctor/*",
583
- "@typescript/*",
584
- "@vitest/*",
585
- "@vitest-agent/*",
586
- "oxc-parser",
587
- "reposets",
588
- "rolldown-pnpm-config",
589
- "rspress-plugin-api-extractor",
590
- "vitepress-plugin-api-extractor",
591
- "runtime-resolver",
592
- "std-osc8",
593
- "vitest",
594
- "vitest-bats"
595
- ],
596
- "overrides": {
597
- "@effect/vitest>vitest": "^5.0.1",
598
- "@microsoft/api-extractor>typescript": "^6.0.3"
599
- },
600
- "peerDependencyRules": { "allowedVersions": {
601
- "@effect/vitest>vitest": "^5.0.1",
602
- "@typescript-eslint/project-service>typescript": "^6.0.0",
603
- "@typescript-eslint/tsconfig-utils>typescript": "^6.0.0",
604
- "@typescript-eslint/typescript-estree>typescript": "^6.0.0",
605
- "@typescript-eslint/util>typescript": "^6.0.0",
606
- "@typescript-eslint/utils>typescript": "^6.0.0",
607
- "eslint-plugin-tsdoc>typescript": "^6.0.0",
608
- "ink-tab>ink": "^7.0.0",
609
- "tsdown>typescript": "^5.0.0 || ^6.0.0 || ^7.0.0"
610
- } },
611
- "publicHoistPattern": [
612
- "@changesets/cli",
613
- "@commitlint/cli",
614
- "@commitlint/config-conventional",
615
- "@commitlint/cz-commitlint",
616
- "@savvy-web/changelog",
617
- "@types/bun",
618
- "@types/node",
619
- "@types/react",
620
- "@types/react-dom",
621
- "@typescript/native-preview",
622
- "@vitest-agent/cli",
623
- "@vitest-agent/mcp",
624
- "@vitest/coverage-istanbul",
625
- "@vitest/coverage-v8",
626
- "husky",
627
- "lint-staged",
628
- "markdownlint-cli2",
629
- "markdownlint-cli2-formatter-codequality",
630
- "tsx",
631
- "turbo",
632
- "typescript",
633
- "vitest"
634
- ],
635
- "strictDepBuilds": true
636
- }, {
637
- "allowBuilds": {
638
- "enforcement": "warn",
639
- "strategy": "allowBuilds"
640
- },
641
- "allowedDeprecatedVersions": {
642
- "enforcement": "absent",
643
- "strategy": "mapChildWins"
644
- },
645
- "blockExoticSubdeps": {
646
- "enforcement": "warn",
647
- "strategy": "securityFlag"
648
- },
649
- "catalogs": {
650
- "enforcement": "warn",
651
- "strategy": "catalogs"
652
- },
653
- "confirmModulesPurge": {
654
- "enforcement": "absent",
655
- "strategy": "scalar"
656
- },
657
- "minimumReleaseAge": {
658
- "enforcement": "warn",
659
- "strategy": "securityMin"
660
- },
661
- "minimumReleaseAgeExclude": {
662
- "enforcement": "absent",
663
- "strategy": "arrayUnion"
664
- },
665
- "overrides": {
666
- "enforcement": "warn",
667
- "strategy": "overrides"
668
- },
669
- "peerDependencyRules": {
670
- "enforcement": "warn",
671
- "strategy": "peerDependencyRules"
672
- },
673
- "publicHoistPattern": {
674
- "enforcement": "absent",
675
- "options": { "excludeByRepo": { "savvy-web-systems": ["@savvy-web/changelog"] } },
676
- "strategy": "arrayUnion"
677
- },
678
- "strictDepBuilds": {
679
- "enforcement": "warn",
680
- "strategy": "securityFlag"
681
- }
682
- }, "@savvy-web/pnpm-plugin-silk");
683
-
684
- //#endregion
685
- exports.hooks = hooks;