@nimbus-sh/worker 0.1.2 → 0.1.3

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.
Files changed (156) hide show
  1. package/LICENSE +21 -0
  2. package/NOTICE.md +6 -0
  3. package/dist/_shared/cache-stats.d.ts +1 -1
  4. package/dist/_shared/cache-stats.js +1 -1
  5. package/dist/_shared/exports-resolver.d.ts +0 -2
  6. package/dist/_shared/exports-resolver.d.ts.map +1 -1
  7. package/dist/_shared/exports-resolver.js +0 -2
  8. package/dist/_shared/session-router.d.ts +0 -1
  9. package/dist/_shared/session-router.d.ts.map +1 -1
  10. package/dist/_shared/session-router.js +0 -1
  11. package/dist/constants.d.ts.map +1 -1
  12. package/dist/constants.js +0 -1
  13. package/dist/facets/cirrus-real.d.ts +1 -1
  14. package/dist/facets/cirrus-real.js +1 -1
  15. package/dist/facets/manager.d.ts +0 -1
  16. package/dist/facets/manager.d.ts.map +1 -1
  17. package/dist/facets/manager.js +3 -15
  18. package/dist/facets/process.d.ts +2 -2
  19. package/dist/facets/process.js +2 -2
  20. package/dist/facets/vite-dev-server.d.ts +3 -3
  21. package/dist/facets/vite-dev-server.d.ts.map +1 -1
  22. package/dist/facets/vite-dev-server.js +6 -8
  23. package/dist/facets/wasm-swap-registry.d.ts +15 -21
  24. package/dist/facets/wasm-swap-registry.d.ts.map +1 -1
  25. package/dist/facets/wasm-swap-registry.js +41 -54
  26. package/dist/facets/ws-terminal.d.ts +4 -5
  27. package/dist/facets/ws-terminal.d.ts.map +1 -1
  28. package/dist/facets/ws-terminal.js +7 -8
  29. package/dist/git/commands.d.ts.map +1 -1
  30. package/dist/git/commands.js +0 -1
  31. package/dist/git/network-facet.d.ts.map +1 -1
  32. package/dist/git/network-facet.js +0 -2
  33. package/dist/git-bundle.generated.d.ts +2 -3
  34. package/dist/git-bundle.generated.d.ts.map +1 -1
  35. package/dist/git-bundle.generated.js +3 -4
  36. package/dist/loaders/child-process/spawn-facet.d.ts +7 -52
  37. package/dist/loaders/child-process/spawn-facet.d.ts.map +1 -1
  38. package/dist/loaders/child-process/spawn-facet.js +7 -49
  39. package/dist/loaders/child-process/spawn-pool.d.ts +5 -44
  40. package/dist/loaders/child-process/spawn-pool.d.ts.map +1 -1
  41. package/dist/loaders/child-process/spawn-pool.js +5 -44
  42. package/dist/loaders/fanout-pool.d.ts +18 -65
  43. package/dist/loaders/fanout-pool.d.ts.map +1 -1
  44. package/dist/loaders/fanout-pool.js +25 -87
  45. package/dist/loaders/generated-workers.d.ts +1 -2
  46. package/dist/loaders/generated-workers.d.ts.map +1 -1
  47. package/dist/loaders/generated-workers.js +5 -6
  48. package/dist/loaders/loader-pool.d.ts +1 -2
  49. package/dist/loaders/loader-pool.d.ts.map +1 -1
  50. package/dist/loaders/loader-pool.js +1 -1
  51. package/dist/loaders/npm-resolve-preamble.d.ts +4 -5
  52. package/dist/loaders/npm-resolve-preamble.d.ts.map +1 -1
  53. package/dist/loaders/npm-resolve-preamble.js +14 -21
  54. package/dist/loaders/pre-bundle-preamble.d.ts.map +1 -1
  55. package/dist/loaders/pre-bundle-preamble.js +0 -1
  56. package/dist/npm/cache.js +1 -1
  57. package/dist/npm/install-batch-facet.d.ts.map +1 -1
  58. package/dist/npm/install-batch-facet.js +7 -12
  59. package/dist/npm/installer.d.ts +5 -7
  60. package/dist/npm/installer.d.ts.map +1 -1
  61. package/dist/npm/installer.js +20 -101
  62. package/dist/npm/r2-cache.d.ts +17 -29
  63. package/dist/npm/r2-cache.d.ts.map +1 -1
  64. package/dist/npm/r2-cache.js +16 -27
  65. package/dist/npm/resolve-facet.d.ts +11 -17
  66. package/dist/npm/resolve-facet.d.ts.map +1 -1
  67. package/dist/npm/resolve-facet.js +14 -28
  68. package/dist/npm/resolve-one-facet.d.ts +10 -13
  69. package/dist/npm/resolve-one-facet.d.ts.map +1 -1
  70. package/dist/npm/resolve-one-facet.js +8 -10
  71. package/dist/npm/resolver.d.ts +0 -2
  72. package/dist/npm/resolver.d.ts.map +1 -1
  73. package/dist/npm/resolver.js +0 -12
  74. package/dist/observability/oom-discriminator.d.ts +0 -2
  75. package/dist/observability/oom-discriminator.d.ts.map +1 -1
  76. package/dist/observability/oom-discriminator.js +0 -2
  77. package/dist/replica/routing.js +1 -1
  78. package/dist/runtime/barrel-synthesizer.js +1 -1
  79. package/dist/runtime/clang-runner.d.ts +5 -6
  80. package/dist/runtime/clang-runner.d.ts.map +1 -1
  81. package/dist/runtime/clang-runner.js +5 -6
  82. package/dist/runtime/esbuild-service.d.ts.map +1 -1
  83. package/dist/runtime/esbuild-service.js +0 -3
  84. package/dist/runtime/framework-detect.d.ts +0 -1
  85. package/dist/runtime/framework-detect.d.ts.map +1 -1
  86. package/dist/runtime/framework-detect.js +0 -1
  87. package/dist/runtime/node-runner.d.ts +1 -1
  88. package/dist/runtime/node-runner.js +1 -1
  89. package/dist/runtime/node-shims.d.ts.map +1 -1
  90. package/dist/runtime/node-shims.js +0 -22
  91. package/dist/runtime/package-manager.d.ts +2 -7
  92. package/dist/runtime/package-manager.d.ts.map +1 -1
  93. package/dist/runtime/package-manager.js +2 -7
  94. package/dist/runtime/process-logs-api.js +1 -1
  95. package/dist/runtime/process-logs.d.ts +0 -1
  96. package/dist/runtime/process-logs.d.ts.map +1 -1
  97. package/dist/runtime/process-table.d.ts +2 -2
  98. package/dist/runtime/process-table.d.ts.map +1 -1
  99. package/dist/runtime/process-table.js +1 -1
  100. package/dist/runtime/python-repl.d.ts +0 -1
  101. package/dist/runtime/python-repl.d.ts.map +1 -1
  102. package/dist/runtime/python-repl.js +0 -1
  103. package/dist/runtime/python-runner.d.ts +1 -2
  104. package/dist/runtime/python-runner.d.ts.map +1 -1
  105. package/dist/runtime/python-runner.js +1 -3
  106. package/dist/runtime/repl-session.d.ts +0 -1
  107. package/dist/runtime/repl-session.d.ts.map +1 -1
  108. package/dist/runtime/repl-session.js +1 -2
  109. package/dist/runtime/require-resolver.d.ts.map +1 -1
  110. package/dist/runtime/require-resolver.js +1 -4
  111. package/dist/runtime/ruby-runner.d.ts +0 -1
  112. package/dist/runtime/ruby-runner.d.ts.map +1 -1
  113. package/dist/runtime/ruby-runner.js +0 -1
  114. package/dist/runtime/runtime-catalog.d.ts +2 -4
  115. package/dist/runtime/runtime-catalog.d.ts.map +1 -1
  116. package/dist/runtime/runtime-catalog.js +2 -4
  117. package/dist/runtime/runtime-registry.d.ts +1 -1
  118. package/dist/runtime/runtime-registry.js +1 -1
  119. package/dist/runtime/streams.d.ts.map +1 -1
  120. package/dist/runtime/streams.js +0 -1
  121. package/dist/runtime/wasi-instance.d.ts +35 -45
  122. package/dist/runtime/wasi-instance.d.ts.map +1 -1
  123. package/dist/runtime/wasi-instance.js +87 -103
  124. package/dist/runtime/wasm-runner.d.ts +9 -15
  125. package/dist/runtime/wasm-runner.d.ts.map +1 -1
  126. package/dist/runtime/wasm-runner.js +23 -29
  127. package/dist/session/bindings.d.ts +2 -7
  128. package/dist/session/bindings.d.ts.map +1 -1
  129. package/dist/session/bindings.js +3 -8
  130. package/dist/session/helpers.d.ts +2 -9
  131. package/dist/session/helpers.d.ts.map +1 -1
  132. package/dist/session/helpers.js +2 -10
  133. package/dist/session/init.d.ts +3 -6
  134. package/dist/session/init.d.ts.map +1 -1
  135. package/dist/session/init.js +25 -30
  136. package/dist/session/nimbus-session.d.ts +1 -1
  137. package/dist/session/nimbus-session.js +5 -5
  138. package/dist/session/routes.d.ts.map +1 -1
  139. package/dist/session/routes.js +9 -16
  140. package/dist/session/rpc.d.ts +2 -2
  141. package/dist/session/rpc.js +6 -6
  142. package/dist/session/supervisor-rpc.d.ts +1 -2
  143. package/dist/session/supervisor-rpc.d.ts.map +1 -1
  144. package/dist/session/supervisor-rpc.js +1 -5
  145. package/dist/shell/features.d.ts +5 -5
  146. package/dist/shell/features.js +6 -6
  147. package/dist/shell/unix-commands.js +15 -15
  148. package/dist/vfs/dev-provider.d.ts +1 -1
  149. package/dist/vfs/dev-provider.js +1 -1
  150. package/dist/vfs/sqlite-vfs.d.ts +3 -3
  151. package/dist/vfs/sqlite-vfs.d.ts.map +1 -1
  152. package/dist/vfs/sqlite-vfs.js +10 -11
  153. package/package.json +12 -2
  154. package/public/s/index.html +44 -75
  155. package/scripts/bundle-facet-workers.mjs +1 -1
  156. package/scripts/bundle-git.mjs +1 -1
package/LICENSE ADDED
@@ -0,0 +1,21 @@
1
+ MIT License
2
+
3
+ Copyright (c) 2026 Ashish Kumar Singh and Nimbus contributors
4
+
5
+ Permission is hereby granted, free of charge, to any person obtaining a copy
6
+ of this software and associated documentation files (the "Software"), to deal
7
+ in the Software without restriction, including without limitation the rights
8
+ to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
9
+ copies of the Software, and to permit persons to whom the Software is
10
+ furnished to do so, subject to the following conditions:
11
+
12
+ The above copyright notice and this permission notice shall be included in
13
+ all copies or substantial portions of the Software.
14
+
15
+ THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
16
+ IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
17
+ FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
18
+ AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
19
+ LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
20
+ OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN
21
+ THE SOFTWARE.
package/NOTICE.md ADDED
@@ -0,0 +1,6 @@
1
+ # Notices
2
+
3
+ This package is part of Nimbus. It includes the Worker runtime, generated
4
+ browser assets, runtime packaging scripts, and integration code for third-party
5
+ runtime components. See the project notices at
6
+ https://github.com/AshishKumar4/Nimbus/blob/main/NOTICE.md.
@@ -10,7 +10,7 @@
10
10
  * L3 — R2 (cross-tenant global) ~30-100 ms regional
11
11
  * L4 — registry.npmjs.org origin ~100-300 ms cross-region
12
12
  *
13
- * Pre-cache-observability wave: hit/miss counters lived in
13
+ * Pre-cache metrics support: hit/miss counters lived in
14
14
  * src/observability/diag-counters.ts but only tracked the RPC-call
15
15
  * boundary (`r2.tarballHit`, `r2.packumentMiss`), not per-tier. From
16
16
  * prod we couldn't tell whether L2 hit-rate was 90% or 30%.
@@ -10,7 +10,7 @@
10
10
  * L3 — R2 (cross-tenant global) ~30-100 ms regional
11
11
  * L4 — registry.npmjs.org origin ~100-300 ms cross-region
12
12
  *
13
- * Pre-cache-observability wave: hit/miss counters lived in
13
+ * Pre-cache metrics support: hit/miss counters lived in
14
14
  * src/observability/diag-counters.ts but only tracked the RPC-call
15
15
  * boundary (`r2.tarballHit`, `r2.packumentMiss`), not per-tier. From
16
16
  * prod we couldn't tell whether L2 hit-rate was 90% or 30%.
@@ -15,7 +15,6 @@
15
15
  * the same JS source so `require()` from inside a user's `node` script
16
16
  * sees the same exports map as the install pipeline.
17
17
  *
18
- * Audit reference: audit/sections/03-resolver-gaps.md §3.1, §3.2.
19
18
  *
20
19
  * Spec features supported:
21
20
  * - String shorthand: "exports": "./dist/index.mjs"
@@ -70,7 +69,6 @@ export declare function resolvePackageEntry(pkg: {
70
69
  *
71
70
  * This source must be byte-equivalent to the TS impl above (modulo type
72
71
  * annotations and `export` keywords). Keep them in sync — there is one
73
- * verification probe in audit/probes that compares parity.
74
72
  */
75
73
  export declare function getExportsResolverJS(): string;
76
74
  //# sourceMappingURL=exports-resolver.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"exports-resolver.d.ts","sourceRoot":"","sources":["../../src/_shared/exports-resolver.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;GAgCG;AAEH,6DAA6D;AAC7D,eAAO,MAAM,sBAAsB,UAA6C,CAAC;AAEjF,uEAAuE;AACvE,eAAO,MAAM,sBAAsB,UAAiC,CAAC;AAErE;;;;;;;GAOG;AACH,wBAAgB,cAAc,CAC5B,YAAY,EAAE,GAAG,EACjB,OAAO,GAAE,MAAY,EACrB,UAAU,GAAE,MAAM,EAA2B,GAC5C,MAAM,GAAG,IAAI,CAkEf;AAwCD;;;;;GAKG;AACH,wBAAgB,mBAAmB,CACjC,GAAG,EAAE;IAAE,OAAO,CAAC,EAAE,GAAG,CAAC;IAAC,MAAM,CAAC,EAAE,MAAM,CAAC;IAAC,IAAI,CAAC,EAAE,MAAM,CAAA;CAAE,EACtD,OAAO,GAAE,MAAY,EACrB,UAAU,GAAE,MAAM,EAA2B,GAC5C,MAAM,GAAG,IAAI,CAqBf;AAID;;;;;;;;;;;;;;;;GAgBG;AACH,wBAAgB,oBAAoB,IAAI,MAAM,CAiG7C"}
1
+ {"version":3,"file":"exports-resolver.d.ts","sourceRoot":"","sources":["../../src/_shared/exports-resolver.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;GA+BG;AAEH,6DAA6D;AAC7D,eAAO,MAAM,sBAAsB,UAA6C,CAAC;AAEjF,uEAAuE;AACvE,eAAO,MAAM,sBAAsB,UAAiC,CAAC;AAErE;;;;;;;GAOG;AACH,wBAAgB,cAAc,CAC5B,YAAY,EAAE,GAAG,EACjB,OAAO,GAAE,MAAY,EACrB,UAAU,GAAE,MAAM,EAA2B,GAC5C,MAAM,GAAG,IAAI,CAkEf;AAwCD;;;;;GAKG;AACH,wBAAgB,mBAAmB,CACjC,GAAG,EAAE;IAAE,OAAO,CAAC,EAAE,GAAG,CAAC;IAAC,MAAM,CAAC,EAAE,MAAM,CAAC;IAAC,IAAI,CAAC,EAAE,MAAM,CAAA;CAAE,EACtD,OAAO,GAAE,MAAY,EACrB,UAAU,GAAE,MAAM,EAA2B,GAC5C,MAAM,GAAG,IAAI,CAqBf;AAID;;;;;;;;;;;;;;;GAeG;AACH,wBAAgB,oBAAoB,IAAI,MAAM,CAiG7C"}
@@ -15,7 +15,6 @@
15
15
  * the same JS source so `require()` from inside a user's `node` script
16
16
  * sees the same exports map as the install pipeline.
17
17
  *
18
- * Audit reference: audit/sections/03-resolver-gaps.md §3.1, §3.2.
19
18
  *
20
19
  * Spec features supported:
21
20
  * - String shorthand: "exports": "./dist/index.mjs"
@@ -182,7 +181,6 @@ export function resolvePackageEntry(pkg, subpath = '.', conditions = DEFAULT_ESM
182
181
  *
183
182
  * This source must be byte-equivalent to the TS impl above (modulo type
184
183
  * annotations and `export` keywords). Keep them in sync — there is one
185
- * verification probe in audit/probes that compares parity.
186
184
  */
187
185
  export function getExportsResolverJS() {
188
186
  return `
@@ -89,7 +89,6 @@ export interface ForwardOptions {
89
89
  * We trust `opts.tenantSegment` verbatim.
90
90
  * - Original request's method, body, and headers are preserved.
91
91
  * - `X-Nimbus-Base` is injected so the DO can thread it into ViteDevServer.
92
- * - `X-Nimbus-Tenant` is injected for audit/observability (NOT authority).
93
92
  * - WebSocket upgrades flow naturally: `stub.fetch()` returns a Response
94
93
  * with a `webSocket` field and status 101, which workerd passes through.
95
94
  *
@@ -1 +1 @@
1
- {"version":3,"file":"session-router.d.ts","sourceRoot":"","sources":["../../src/_shared/session-router.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;GAkCG;AAEH,8EAA8E;AAC9E,eAAO,MAAM,oBAAoB,OAAO,CAAC;AAEzC,qEAAqE;AACrE,eAAO,MAAM,gBAAgB,kBAAkB,CAAC;AAEhD;;;;GAIG;AACH,eAAO,MAAM,aAAa,oBAAoB,CAAC;AAE/C;;;;;GAKG;AACH,eAAO,MAAM,wBAAwB,oBAAoB,CAAC;AAS1D,MAAM,WAAW,kBAAkB;IACjC,sEAAsE;IACtE,SAAS,EAAE,MAAM,CAAC;IAClB,kFAAkF;IAClF,SAAS,EAAE,MAAM,CAAC;IAClB,4EAA4E;IAC5E,QAAQ,EAAE,MAAM,CAAC;CAClB;AAED;;;;;;GAMG;AACH,wBAAgB,iBAAiB,CAAC,QAAQ,EAAE,MAAM,GAAG,kBAAkB,GAAG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,IAAI,EAAE,cAAc,GACnB,OAAO,CAAC,QAAQ,CAAC,CAoCnB;AAED,0EAA0E;AAC1E,wBAAgB,wBAAwB,CAAC,WAAW,EAAE,MAAM,GAAG,MAAM,CA6BpE"}
@@ -89,7 +89,6 @@ export function parseSessionRoute(pathname) {
89
89
  * We trust `opts.tenantSegment` verbatim.
90
90
  * - Original request's method, body, and headers are preserved.
91
91
  * - `X-Nimbus-Base` is injected so the DO can thread it into ViteDevServer.
92
- * - `X-Nimbus-Tenant` is injected for audit/observability (NOT authority).
93
92
  * - WebSocket upgrades flow naturally: `stub.fetch()` returns a Response
94
93
  * with a `webSocket` field and status 101, which workerd passes through.
95
94
  *
@@ -1 +1 @@
1
- {"version":3,"file":"constants.d.ts","sourceRoot":"","sources":["../src/constants.ts"],"names":[],"mappings":"AAAA;;GAEG;AAGH,eAAO,MAAM,cAAc,UAAU,CAAC;AA+BtC,eAAO,MAAM,YAAY,aAAa,CAAC;AACvC,eAAO,MAAM,aAAa;;;;CAAyD,CAAC;AACpF,eAAO,MAAM,eAAe,WAAW,CAAC;AAGxC,eAAO,MAAM,UAAU,QAAS,CAAC;AACjC,eAAO,MAAM,eAAe,MAAM,CAAC;AACnC,eAAO,MAAM,UAAU,KAAK,CAAC;AAC7B,eAAO,MAAM,YAAY,QAA0B,CAAC;AAGpD,eAAO,MAAM,gBAAgB,QAAS,CAAC;AA0BvC,eAAO,MAAM,oBAAoB,OAAO,CAAC;AACzC,eAAO,MAAM,oBAAoB,QAAmB,CAAC;AACrD,eAAO,MAAM,wBAAwB,QAAmB,CAAC;AAGzD,eAAO,MAAM,YAAY,+BAA+B,CAAC;AACzD,eAAO,MAAM,eAAe,KAAK,CAAC;AAClC,eAAO,MAAM,sBAAsB,QAAS,CAAC;AAG7C,eAAO,MAAM,iBAAiB,OAAO,CAAC;AACtC,eAAO,MAAM,oBAAoB,aAAa,CAAC;AAC/C,eAAO,MAAM,mBAAmB,YAAY,CAAC;AAC7C,eAAO,MAAM,oBAA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M,YAAY,eAAe,CAAC;AACzC,eAAO,MAAM,YAAY,SAAS,CAAC;AACnC,eAAO,MAAM,aAAa,YAAY,CAAC;AACvC,eAAO,MAAM,oBAAoB,UAAqD,CAAC"}
package/dist/constants.js CHANGED
@@ -50,7 +50,6 @@ export const FACET_TIMEOUT_MS = 30_000; // 30s execution timeout
50
50
  // `const __MODULE_VFS_BUNDLE = ${JSON.stringify(bundle)}`, so workerd's
51
51
  // per-module text-size limit applies to the JSON-escaped form (each
52
52
  // `\n` / `\"` / `\u` adds bytes, plus the per-key string-quote overhead).
53
- // Empirical W2.5b sweep (audit/sections/W2.6-plan.md §2.2) showed 6 MiB
54
53
  // raw → boots, 8 MiB raw → fails. Encoded as JSON that's roughly 18-25 MiB
55
54
  // of module text. We target 22 MiB encoded as the hard ceiling, leaving
56
55
  // ~2-3 MiB of headroom for the rest of the worker module (shims, runner
@@ -6,7 +6,7 @@
6
6
  * or `nimbusDevServer: 'real'` in vite.config.ts.
7
7
  *
8
8
  * Phase status (PHASE2-REAL-VITE-PLAN.md):
9
- * 0 (import + createServer + listen) — GREEN, shipped
9
+ * 0 (import + createServer + listen) — passing, shipped
10
10
  * 1 (VFS-backed fs shim) — implemented here
11
11
  * 2 (HMR over our /ws) — implemented here
12
12
  * 3 (real @vitejs/plugin-react) — depends on plugin preload
@@ -6,7 +6,7 @@
6
6
  * or `nimbusDevServer: 'real'` in vite.config.ts.
7
7
  *
8
8
  * Phase status (PHASE2-REAL-VITE-PLAN.md):
9
- * 0 (import + createServer + listen) — GREEN, shipped
9
+ * 0 (import + createServer + listen) — passing, shipped
10
10
  * 1 (VFS-backed fs shim) — implemented here
11
11
  * 2 (HMR over our /ws) — implemented here
12
12
  * 3 (real @vitejs/plugin-react) — depends on plugin preload
@@ -241,7 +241,6 @@ export declare class FacetManager {
241
241
  /**
242
242
  * W5 Lever 5: push a DiagFailure into the OOM ring for every facet
243
243
  * termination with a non-zero exit code. This is the supervisor side
244
- * of the zero-silent-OOM contract — the audit/probes/w5/e2e/
245
244
  * oom-stress probe asserts that every termination has a matching
246
245
  * ring entry.
247
246
  *
@@ -1 +1 @@
1
- {"version":3,"file":"manager.d.ts","sourceRoot":"","sources":["../../src/facets/manager.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;GAgCG;AAEH,OAAO,EAAE,YAAY,EAAqB,MAAM,6BAA6B,CAAC;AAG9E,OAAO,KAAK,EAAE,SAAS,EAAE,MAAM,sBAAsB,CAAC;AACtD,OAAO,KAAK,EAAE,YAAY,EAAE,MAAM,6BAA6B,CAAC;AAKhE,OAAO,EAAE,cAAc,EAAE,MAAM,+BAA+B,CAAC;AAO/D,6CAA6C;AAC7C,MAAM,WAAW,eAAe;IAC9B,QAAQ,EAAE,MAAM,CAAC;IACjB,MAAM,EAAE,MAAM,CAAC;IACf,MAAM,EAAE,MAAM,CAAC;IACf;;;;;;;;OAQG;IACH,SAAS,CAAC,EAAE,MAAM,CAAC,MAAM,EAAE,MAAM,GAAG,UAAU,GAAG,MAAM,CAAC,MAAM,EAAE,MAAM,CAAC,CAAC,CAAC;CAC1E;AAslCD;;;;;;;;GAQG;AAMH,wBAAgB,oBAAoB,CAClC,GAAG,EAAE,SAAS,EACd,GAAG,EAAE,MAAM,EACX,MAAM,EAAE,MAAM,CAAC,MAAM,EAAE,MAAM,GAAG,UAAU,CAAC,EAC3C,WAAW,EAAE;IAAE,UAAU,EAAE,MAAM,CAAC;IAAC,SAAS,EAAE,MAAM,CAAA;CAAE,GACrD;IAAE,KAAK,EAAE,MAAM,CAAA;CAAE,CAkJnB;AAED;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;GAsCG;AACH,wBAAgB,uBAAuB,CACrC,GAAG,EAAE,SAAS,EACd,GAAG,EAAE,MAAM,EACX,MAAM,EAAE,MAAM,CAAC,MAAM,EAAE,MAAM,GAAG,UAAU,CAAC,EAC3C,WAAW,EAAE;IAAE,UAAU,EAAE,MAAM,CAAC;I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;QACJ,IAAI,CAAC,EAAE,MAAM,EAAE,CAAC;QAChB,GAAG,CAAC,EAAE,MAAM,CAAC,MAAM,EAAE,MAAM,CAAC,CAAC;QAC7B,GAAG,CAAC,EAAE,MAAM,CAAC;QACb,QAAQ,CAAC,EAAE,MAAM,CAAC;QAClB,OAAO,CAAC,EAAE,MAAM,CAAC;QACjB,OAAO,CAAC,EAAE,MAAM,CAAC;QACjB,IAAI,CAAC,EAAE,MAAM,CAAC;KACV,GACL,OAAO,CAAC;QAAE,GAAG,EAAE,MAAM,CAAC;QAAC,SAAS,EAAE,GAAG,CAAA;KAAE,CAAC;IA8D3C;;;;;;;;;OASG;IACH,KAAK,CACH,UAAU,EAAE,MAAM,EAClB,OAAO,EAAE,MAAM,EACf,GAAG,EAAE,MAAM,EACX,IAAI,GAAE;QAAE,IAAI,CAAC,EAAE,MAAM,CAAA;KAAO,GAC3B;QAAE,GAAG,EAAE,MAAM,CAAC;QAAC,SAAS,EAAE,GAAG,CAAA;KAAE;IAiClC,qCAAqC;IACrC,IAAI,CAAC,GAAG,EAAE,MAAM,GAAG,OAAO;IAa1B,IAAI,KAAK;;;;;;MAAsC;CAChD"}
@@ -253,8 +253,6 @@ const USER_CODE = ${safeCode};
253
253
  // only emits \`const\` in the requires block, but the broader regex
254
254
  // guards against drift.
255
255
  //
256
- // See VERIFY-23417C5 §4 #1, audit/sections/X5S-plan.md §3,
257
- // .seal-internal/2026-05-11-nuxt-process-redeclare/plan.md §6.
258
256
  function __mkCompiledFn(code, extraParams) {
259
257
  function renameIfDeclared(name) {
260
258
  const re = new RegExp("(?:^|\\\\n|;)\\\\s*(?:const|let|var|function|class)\\\\s+" + name + "\\\\b", "m");
@@ -372,7 +370,6 @@ ${SHIMS}
372
370
  //
373
371
  // workerd's globalThis.console descriptor is writable+configurable
374
372
  // (verified empirically — see smoketest-globalthis-write.mjs in
375
- // /workspace/.seal-internal/2026-05-12-console-facet/), so a plain
376
373
  // assignment is sufficient. Do NOT touch globalThis.process /
377
374
  // globalThis.Buffer here — Pyodide / Ruby bootstrap paths detect a
378
375
  // Node-shaped env via globalThis.process and would take the wrong
@@ -400,7 +397,6 @@ ${SHIMS}
400
397
  // append stderr). Mirrors real Node's default
401
398
  // unhandled-rejection-is-fatal behaviour.
402
399
  //
403
- // See .seal-internal/2026-05-11-unhandled-rejection/audit.md.
404
400
  let __unhandledFired = false;
405
401
  const __reportUnhandled = (label, reason) => {
406
402
  // framework-fixes-F3 (2026-05-12): suppress reports whose reason
@@ -1101,7 +1097,6 @@ function buildManifest(vfs, cwd, scriptPath) {
1101
1097
  * per package — sub-agent §Q3 quantified the worst-case cumulative
1102
1098
  * budget impact (~322 KiB for fastify, ~1.7 MiB for ts-jest).
1103
1099
  */
1104
- // X.5-C: exported so audit/probes/x5c/functional/f2-hash-chunk-greedy.mjs
1105
1100
  // can verify the hash-chunk + shared/ oversample directly. Pre-X.5-C this
1106
1101
  // was a file-local helper. Adding the named export is a pure surface
1107
1102
  // addition — no callers other than buildPrefetchBundle (same file) and
@@ -1665,7 +1660,6 @@ function addBinTargetSiblings(vfs, scriptPath, bundle, budgetState) {
1665
1660
  // VFS_BUNDLE_MAX_BYTES = 24 MiB content cap, both of which retain the
1666
1661
  // defense against pathological 4000+ file barrel packages.
1667
1662
  //
1668
- // See /workspace/.seal-internal/2026-05-12-npm-create-gap/findings.md
1669
1663
  // for the prior wave's empirical investigation (243 manifest entries,
1670
1664
  // only 140/243 readable pre-bump on prod 11df6ca).
1671
1665
  const MAX_PKG_FILES = 1000;
@@ -1725,7 +1719,7 @@ function addBinTargetSiblings(vfs, scriptPath, bundle, budgetState) {
1725
1719
  return { added };
1726
1720
  }
1727
1721
  /**
1728
- * BUG-SWEEP-R2-2 (2026-05-11): scan entry code (and any already-bundled
1722
+ * shell compatibility (2026-05-11): scan entry code (and any already-bundled
1729
1723
  * .js/.mjs/.cjs sources) for ABSOLUTE-PATH string literals that look
1730
1724
  * like file reads. For every candidate that exists on the SqliteVFS,
1731
1725
  * pull it into the bundle so the facet's __vfsBundle can serve it.
@@ -1837,7 +1831,6 @@ function addEntryAbsPathReads(vfs, entryCode, bundle, budgetState) {
1837
1831
  * plain new Function anyway (loader: 'js' rejects JSX).
1838
1832
  * - Files inside a "type":"module" package that don't use import/export
1839
1833
  * keywords (rare; nominally CJS-shaped). Accepted limitation, called
1840
- * out in audit/sections/W3.5-plan.md §6.
1841
1834
  */
1842
1835
  function looksLikeEsm(src) {
1843
1836
  // Cheap comment strip. Not a full parser — enough to avoid the
@@ -1848,7 +1841,6 @@ function looksLikeEsm(src) {
1848
1841
  // Trailing `[\s{]` catches the no-whitespace minified form `import{...}from"..."`
1849
1842
  // shipped by @tailwindcss/vite/dist/index.mjs and other minified ESM bundles.
1850
1843
  // Skips dynamic `import(...)` (which is fine in CJS) because `(` ∉ `[\s{]`.
1851
- // See audit/sections/X5Z5-plan.md §3 (both relaxations needed: leading
1852
1844
  // anchor [\n;}] AND trailing [\s{]).
1853
1845
  const importStmt = /(^|[\n;}])\s*import[\s{]/;
1854
1846
  // export STATEMENT: same dual relaxation. Trailing `[\s{*]` covers
@@ -2031,7 +2023,6 @@ async function transformEsmInBundle(bundle, esbuild) {
2031
2023
  * If `esbuild` is not provided, the pass is skipped (preserves prior
2032
2024
  * behaviour for code paths that don't have esbuild handy).
2033
2025
  *
2034
- * See audit/sections/W2.6-plan.md §3 (B1+ verdict + sub-agent review).
2035
2026
  */
2036
2027
  async function buildPrefetchBundle(vfs, scriptPath, cwd, entryCode, esbuild) {
2037
2028
  // 1. Static reachable-set walk from entry.
@@ -2060,7 +2051,6 @@ async function buildPrefetchBundle(vfs, scriptPath, cwd, entryCode, esbuild) {
2060
2051
  // `default-stylesheet.css` (and similar runtime asset reads in
2061
2052
  // tldts, parse5, lookup-table packages, mime-db, etc.) ENOENT
2062
2053
  // at facet runtime even though the file is on VFS-disk + in
2063
- // the manifest. See audit/sections/X5Z3-plan.md §3.
2064
2054
  const assetAdd = addStaticReadFileAssets(vfs, cwd, bundle, budgetState);
2065
2055
  void assetAdd;
2066
2056
  totalBytes = budgetState.totalBytes;
@@ -2072,7 +2062,6 @@ async function buildPrefetchBundle(vfs, scriptPath, cwd, entryCode, esbuild) {
2072
2062
  // pattern AND filenames outside the Z3 ASSET_EXT whitelist
2073
2063
  // (dotfiles, no-extension sentinels, "digest/hash/version/sha/md5"
2074
2064
  // shapes). Motivating case: ts-jest's `.ts-jest-digest`. See
2075
- // audit/sections/X5U-plan.md §4.
2076
2065
  const dotAdd = addStaticReadFileDotfilesAndCompiled(vfs, cwd, bundle, budgetState);
2077
2066
  void dotAdd;
2078
2067
  totalBytes = budgetState.totalBytes;
@@ -2089,7 +2078,7 @@ async function buildPrefetchBundle(vfs, scriptPath, cwd, entryCode, esbuild) {
2089
2078
  void binSiblingAdd;
2090
2079
  totalBytes = budgetState.totalBytes;
2091
2080
  fileCount = budgetState.fileCount;
2092
- // 2.35 BUG-SWEEP-R2-2: absolute-path readFileSync scanner.
2081
+ // 2.35 shell compatibility: absolute-path readFileSync scanner.
2093
2082
  //
2094
2083
  // Pre-fix `node -e 'fs.readFileSync("/home/user/er.txt")'` returned
2095
2084
  // ENOENT even when the file existed on the SqliteVFS (verified via
@@ -2354,7 +2343,6 @@ export class FacetManager {
2354
2343
  /**
2355
2344
  * W5 Lever 5: push a DiagFailure into the OOM ring for every facet
2356
2345
  * termination with a non-zero exit code. This is the supervisor side
2357
- * of the zero-silent-OOM contract — the audit/probes/w5/e2e/
2358
2346
  * oom-stress probe asserts that every termination has a matching
2359
2347
  * ring entry.
2360
2348
  *
@@ -2625,7 +2613,7 @@ export class FacetManager {
2625
2613
  spawn(workerCode, command, cwd, opts = {}) {
2626
2614
  this.processTable.reap();
2627
2615
  const entry = this.processTable.spawn(command, [], cwd);
2628
- // arch-gaps gap #2: stamp the explicit longRunning flag on the
2616
+ // child-process isolation gap #2: stamp the explicit longRunning flag on the
2629
2617
  // process_table entry so /api/processes returns longRunning=true
2630
2618
  // independent of the LONG_RUNNING_CMD_RE heuristic. Vite, wrangler,
2631
2619
  // node servers, --watch, etc. all flow through this primitive.
@@ -196,7 +196,7 @@ export interface FacetProcessManagerDeps {
196
196
  };
197
197
  };
198
198
  /**
199
- * arch-gaps gap #1: optional ChildProcessSpawnPool. When supplied,
199
+ * child-process isolation gap #1: optional ChildProcessSpawnPool. When supplied,
200
200
  * `_dispatch` routes each spawn through the pool (one-task
201
201
  * NimbusFanoutPool.submitMany call per spawn), giving each spawn a
202
202
  * fresh Worker Loader isolate. When omitted, falls back to the
@@ -229,7 +229,7 @@ export declare class FacetProcessManager {
229
229
  /** Dispatch by kind. */
230
230
  private _dispatch;
231
231
  /**
232
- * arch-gaps gap #1: inline dispatch — runs the existing
232
+ * child-process isolation gap #1: inline dispatch — runs the existing
233
233
  * pure-builtin / facet-direct logic with string-collecting hooks
234
234
  * and returns the final {exitCode, stdout, stderr} envelope.
235
235
  *
@@ -132,7 +132,7 @@ export class FacetProcessManager {
132
132
  onStdout: (d) => this._appendOutput(child, 1, d),
133
133
  onStderr: (d) => this._appendOutput(child, 2, d),
134
134
  };
135
- // arch-gaps gap #1: if a spawnPool is configured (production
135
+ // child-process isolation gap #1: if a spawnPool is configured (production
136
136
  // wiring), route the dispatch through a fresh Worker Loader
137
137
  // isolate via NimbusFanoutPool. The pool's task body emits a
138
138
  // per-isolate marker token + delegates the actual command back
@@ -209,7 +209,7 @@ export class FacetProcessManager {
209
209
  }
210
210
  }
211
211
  /**
212
- * arch-gaps gap #1: inline dispatch — runs the existing
212
+ * child-process isolation gap #1: inline dispatch — runs the existing
213
213
  * pure-builtin / facet-direct logic with string-collecting hooks
214
214
  * and returns the final {exitCode, stdout, stderr} envelope.
215
215
  *
@@ -59,7 +59,7 @@ export interface ViteDevServerOptions {
59
59
  /** Durable Object state — needed alongside `env` for the facet pool. */
60
60
  ctx?: DurableObjectState;
61
61
  /**
62
- * Primitives wave (P8): when set, every diagnostic the dev server
62
+ * process diagnostics support: when set, every diagnostic the dev server
63
63
  * would otherwise drop into Worker logs (console.warn / console.error)
64
64
  * is ALSO appended to the supervisor's per-PID ProcessLogStore at
65
65
  * this PID, on the 'stderr' stream. The Process tab in the frontend
@@ -137,7 +137,7 @@ export declare class ViteDevServer {
137
137
  */
138
138
  private onDemandQueue;
139
139
  /**
140
- * Primitives wave (P8): the supervisor's per-PID log store. When set
140
+ * process diagnostics support: the supervisor's per-PID log store. When set
141
141
  * (alongside `pid`), every diagnostic emitted by the dev server is
142
142
  * appended here on the 'stderr' stream so the Process tab UI shows
143
143
  * a real, scrolling, trace of bundler activity. When unset, falls
@@ -168,7 +168,7 @@ export declare class ViteDevServer {
168
168
  stop(): void;
169
169
  get isRunning(): boolean;
170
170
  /**
171
- * Primitives wave (P8): single chokepoint for dev-server diagnostics.
171
+ * process diagnostics support: single chokepoint for dev-server diagnostics.
172
172
  * Always writes to the workerd console (so wrangler tail / Worker
173
173
  * logs see it for ops triage) AND appends to the supervisor's
174
174
  * per-PID ProcessLogStore when one is wired (so the Process tab in
@@ -1 +1 @@
1
- {"version":3,"file":"vite-dev-server.d.ts","sourceRoot":"","sources":["../../src/facets/vite-dev-server.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;;;;;;;;;GAsBG;AAEH,OAAO,KAAK,EAAE,SAAS,EAAE,MAAM,sBAAsB,CAAC;AAEtD,OAAO,KAAK,EAAE,cAAc,EAAE,MAAM,+BAA+B,CAAC;AAoBpE,MAAM,WAAW,oBAAoB;IACnC,GAAG,EAAE,SAAS,CAAC;IACf,OAAO,EAAE,cAAc,CAAC;IACxB,wDAAwD;IACxD,IAAI,EAAE,MAAM,CAAC;IACb,mDAAmD;IACnD,YAAY,EAAE,CAAC,GAAG,EAAE,GAAG,KAAK,IAAI,CAAC;IACjC,2CAA2C;IAC3C,IAAI,CAAC,EAAE,MAAM,CAAC;IACd,iFAAiF;IACjF,QAAQ,CAAC,EAAE,MAAM,CAAC;IAClB,6EAA6E;IAC7E,OAAO,CAAC,EAAE,MAAM,CAAC,M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IACG,aAAa,CAAC,OAAO,EAAE,OAAO,EAAE,QAAQ,EAAE,MAAM,GAAG,OAAO,CAAC,QAAQ,CAAC;YAa5D,mBAAmB;IAoFjC,OAAO,CAAC,cAAc;YAqER,WAAW;IAmEzB;;;;;;OAMG;YACW,eAAe;IAmV7B;;;;;;;;;;;;;;;;;;OAkBG;IACH,OAAO,CAAC,cAAc;IAyFtB,OAAO,CAAC,cAAc;IAyBtB;;;;;;;;;;;;;;;;;OAiBG;IACH,OAAO,CAAC,oBAAoB;IAkE5B;;;;;;;;;;;;;;;OAeG;IACH,OAAO,CAAC,eAAe;YAoDT,SAAS;YAiKT,gBAAgB;IAiF9B,IAAI,KAAK;;;;;;;MASR;CACF"}
@@ -420,7 +420,6 @@ function makeModuleUrl(basePath, specifier) {
420
420
  * Node.js core builtins. Bare imports of these names should be rewritten to
421
421
  * `node:<name>` rather than treated as bare npm specifiers — otherwise the
422
422
  * browser dev server tries to fetch them from `/preview/@modules/crypto` and
423
- * 404s. See audit/sections/03-resolver-gaps.md §3.6.
424
423
  */
425
424
  const NODE_BUILTINS = new Set([
426
425
  'assert', 'async_hooks', 'buffer', 'child_process', 'cluster', 'constants',
@@ -482,7 +481,6 @@ function resolveBareSpecifier(specifier, aliases, basePath, importerCtx) {
482
481
  // already-prefixed `node:crypto` (skipped by the protocol regex above).
483
482
  // Both surface a clear "Failed to resolve module 'crypto'" rather than a
484
483
  // misleading 404. Browser-side shim wiring is the W7 deliverable per
485
- // audit/sections/03-resolver-gaps.md §3.6.
486
484
  if (NODE_BUILTINS.has(specifier)) {
487
485
  return null; // leave the bare specifier untouched
488
486
  }
@@ -1254,7 +1252,7 @@ export class ViteDevServer {
1254
1252
  */
1255
1253
  onDemandQueue = Promise.resolve();
1256
1254
  /**
1257
- * Primitives wave (P8): the supervisor's per-PID log store. When set
1255
+ * process diagnostics support: the supervisor's per-PID log store. When set
1258
1256
  * (alongside `pid`), every diagnostic emitted by the dev server is
1259
1257
  * appended here on the 'stderr' stream so the Process tab UI shows
1260
1258
  * a real, scrolling, trace of bundler activity. When unset, falls
@@ -1422,7 +1420,7 @@ export class ViteDevServer {
1422
1420
  }
1423
1421
  get isRunning() { return this.running; }
1424
1422
  /**
1425
- * Primitives wave (P8): single chokepoint for dev-server diagnostics.
1423
+ * process diagnostics support: single chokepoint for dev-server diagnostics.
1426
1424
  * Always writes to the workerd console (so wrangler tail / Worker
1427
1425
  * logs see it for ops triage) AND appends to the supervisor's
1428
1426
  * per-PID ProcessLogStore when one is wired (so the Process tab in
@@ -1797,7 +1795,7 @@ export class ViteDevServer {
1797
1795
  if (!names || names.size === 0) {
1798
1796
  // No statically-resolvable imports. We refuse to CDN-fallback
1799
1797
  // (100% edge contract) AND we refuse to bundle the whole
1800
- // barrel (would OOM the facet). Primitives wave (P6): return
1798
+ // barrel (would OOM the facet). barrel fallback support: return
1801
1799
  // a 200 module that throws on first use so the runtime
1802
1800
  // error surfaces in the BROWSER console (where the user is
1803
1801
  // looking) AND on the dev-server log (Process tab) — instead
@@ -1821,7 +1819,7 @@ export class ViteDevServer {
1821
1819
  const nmDirOnDemand = this.root + '/node_modules';
1822
1820
  const synth = buildSyntheticEntry(this.vfs, nmDirOnDemand, pkgName, names);
1823
1821
  if (!synth) {
1824
- // Primitives wave (P6): emit an honest 200 stub instead of a
1822
+ // barrel fallback support: emit an honest 200 stub instead of a
1825
1823
  // 500. The stub has the same effect at runtime (any access
1826
1824
  // throws), but the network response is a parseable JS module
1827
1825
  // so the browser's module loader doesn't crash with an
@@ -1841,7 +1839,7 @@ export class ViteDevServer {
1841
1839
  this.vfs.writeFile(synthPath, synth.code);
1842
1840
  }
1843
1841
  catch (e) {
1844
- // Primitives wave (P6): same 200-stub pattern as the synth-null
1842
+ // barrel fallback support: same 200-stub pattern as the synth-null
1845
1843
  // branch above. VFS write failure is rare but distinct from a
1846
1844
  // synthesizer gap, so we keep the diagnostic header value
1847
1845
  // separate for log triage.
@@ -2047,7 +2045,7 @@ export class ViteDevServer {
2047
2045
  `you're using \`import { Foo } from '${pkgName}'\` syntax ` +
2048
2046
  `(not \`import * as X\` or dynamic \`import()\`).`;
2049
2047
  this.log('error', diag);
2050
- // Primitives wave (P6): same 200-stub pattern. The supervisor's
2048
+ // barrel fallback support: same 200-stub pattern. The supervisor's
2051
2049
  // own bundle pipeline failed — surface the diagnostic in the
2052
2050
  // browser console where the user is looking, not in a 503 the
2053
2051
  // browser's module loader treats as "module-not-found".
@@ -1,5 +1,5 @@
1
1
  /**
2
- * W6 — WASM swap + REJECT_INSTALL registry.
2
+ * WASM swap and rejected-package registry.
3
3
  *
4
4
  * The contract:
5
5
  * - WASM_SWAPS : name→name rewrite at the resolver/installer boundary.
@@ -19,12 +19,9 @@
19
19
  *
20
20
  * IMPORTANT: This module is the single source of truth in the supervisor
21
21
  * isolate. The same data is *duplicated* into
22
- * `src/parallel/npm-resolve-preamble.ts` because that preamble is shipped
22
+ * `src/loaders/npm-resolve-preamble.ts` because that preamble is shipped
23
23
  * into NimbusLoaderPool isolates as a string (cannot `import`). The
24
- * `audit/probes/w6/functional/preamble-parity.mjs` snapshot test gates
25
- * the duplication.
26
- *
27
- * See `audit/sections/W6-plan.md` §3.
24
+ * preamble parity test gates the duplication.
28
25
  */
29
26
  export interface SwapEntry {
30
27
  /** Original package name the user (or a transitive dep) asked for. */
@@ -35,12 +32,12 @@ export interface SwapEntry {
35
32
  reason: string;
36
33
  /**
37
34
  * 'drop-in' = `require(from)` and `require(to)` work identically — same
38
- * export shape. (Only kind W6 v2 supports.)
35
+ * export shape.
39
36
  * 'shim' = (reserved) we write package.json `dependencies` so consumer
40
- * imports `from`, gets `to`. Requires npm-alias parser (W6.5).
37
+ * imports `from`, gets `to`.
41
38
  * 'manual' = (reserved) consumer code change required. Demoted to
42
- * REJECT_INSTALL in W6 v2 — listing it as 'manual' here would
43
- * silently break user code.
39
+ * REJECT_INSTALL because listing it here would silently break
40
+ * user code.
44
41
  */
45
42
  compat: 'drop-in' | 'shim' | 'manual';
46
43
  }
@@ -70,8 +67,8 @@ export declare function lookupReject(name: string): RejectEntry | undefined;
70
67
  * Idempotent: running on already-swapped specs is a no-op.
71
68
  *
72
69
  * Range carry-over: the original spec range is preserved on the new key.
73
- * (Future W6.5 may want 'latest' to force pulling the current swap-target
74
- * version, but for now we honour the user's intent.)
70
+ * Future alias support may force pulling the current swap target version,
71
+ * but for now we honour the user's requested range.
75
72
  */
76
73
  export declare function applySwaps(specs: Record<string, string>): {
77
74
  specs: Record<string, string>;
@@ -110,22 +107,20 @@ export declare function formatRejectError(rejects: ReadonlyArray<RejectEntry>):
110
107
  export declare function formatTransitiveSkip(r: RejectEntry): string;
111
108
  /**
112
109
  * Tag class for registry-driven rejects. Both the supervisor-side path
113
- * (npm-installer.ts:applyW6Registry, npm-resolver.ts:resolveTree) and the
110
+ * (npm-installer.ts and npm-resolver.ts) and the
114
111
  * facet-side path (npm-resolve-facet.ts:resolveTreeInFacet) throw errors
115
112
  * tagged for this case.
116
113
  *
117
114
  * Supervisor-side: throw `new RegistryRejectError(rejects)` directly.
118
115
  * Facet-side: cannot import this class (preamble has no import surface),
119
- * so the facet throws `new Error(...)` with `err.__w6_reject = true`.
116
+ * so the facet throws `new Error(...)` with `err.__nimbus_registry_reject = true`.
120
117
  * Both are detected via `isRegistryReject()`.
121
118
  *
122
- * The own-property `__w6_reject = true` survives any boundary that
123
- * preserves error own-properties (NimbusLoaderPool's loadable contract
124
- * is checked in audit/probes/w6/ ...).
119
+ * The own-property survives worker boundary serialization.
125
120
  */
126
121
  export declare class RegistryRejectError extends Error {
127
122
  readonly rejects: ReadonlyArray<RejectEntry>;
128
- readonly __w6_reject: true;
123
+ readonly __nimbus_registry_reject: true;
129
124
  constructor(rejects: ReadonlyArray<RejectEntry>);
130
125
  }
131
126
  /**
@@ -170,8 +165,7 @@ export type RegistryEventSink = (e: RegistryEvent) => void;
170
165
  * The sink is a per-isolate singleton. The supervisor isolate's sink does
171
166
  * NOT propagate to facet isolates — facet emits travel through
172
167
  * `ResolveFacetResult.registryEvents` and are flushed by the supervisor
173
- * after the facet returns. See W6.5-plan.md §5.5 for the per-isolate
174
- * invariant.
168
+ * after the facet returns.
175
169
  */
176
170
  export declare function setRegistryEventSink(s: RegistryEventSink | null): void;
177
171
  export declare function getRegistryEventSink(): RegistryEventSink | null;
@@ -251,7 +245,7 @@ export declare function selectAutoInstallPeers(pkg: {
251
245
  *
252
246
  * - 'optional-dep-skip' — the failed package was an entry in
253
247
  * `optionalDependencies`; skip silently.
254
- * - 'registry-reject' — RegistryRejectError (W6 known-bad package).
248
+ * - 'registry-reject' — RegistryRejectError.
255
249
  * - 'real-resolve-fail' — anything else; propagate.
256
250
  */
257
251
  export type InstallErrorClass = 'optional-dep-skip' | 'registry-reject' | 'real-resolve-fail';
@@ -1 +1 @@
1
- {"version":3,"file":"wasm-swap-registry.d.ts","sourceRoot":"","sources":["../../src/facets/wasm-swap-registry.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;;;;;;;;;;;;;;GA2BG;AAMH,MAAM,WAAW,SAAS;IACxB,sEAAsE;IACtE,IAAI,EAAE,MAAM,CAAC;IACb,uCAAuC;IACvC,EAAE,EAAE,MAAM,CAAC;IACX,yCAAyC;IACzC,MAAM,EAAE,MAAM,CAAC;IACf;;;;;;;;OAQG;IACH,MAAM,EAAE,SAAS,GAAG,MAAM,GAAG,QAAQ,CAAC;CACvC;AAED,MAAM,WAAW,WAAW;IAC1B,IAAI,EAAE,MAAM,CAAC;IACb,4CAA4C;IAC5C,MAAM,EAAE,MAAM,CAAC;IACf,oDAAoD;IACpD,OAAO,CAAC,EAAE,MAAM,CAAC;IACjB;;;;;;OAMG;IACH,UAAU,EAAE,MAAM,GAAG,MAAM,CAAC;CAC7B;AAMD,eAAO,MAAM,UAAU,EAAE,aAAa,CAAC,SAAS,CAiC/C,CAAC;AAEF,eAAO,MAAM,cAAc,EAAE,aAAa,CAAC,WAAW,CAkPrD,CAAC;AAcF,wBAAgB,UAAU,CAAC,IAAI,E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