@nimbus-sh/worker 0.2.2 → 0.3.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.
Files changed (131) hide show
  1. package/README.md +5 -2
  2. package/dist/_shared/session-router.d.ts +8 -0
  3. package/dist/_shared/session-router.d.ts.map +1 -1
  4. package/dist/_shared/session-router.js +8 -0
  5. package/dist/facets/cirrus-real.js +1 -1
  6. package/dist/facets/manager.d.ts +42 -104
  7. package/dist/facets/manager.d.ts.map +1 -1
  8. package/dist/facets/manager.js +126 -283
  9. package/dist/facets/opencode-staging.d.ts +1 -1
  10. package/dist/facets/opencode-staging.d.ts.map +1 -1
  11. package/dist/facets/opencode-staging.js +4 -0
  12. package/dist/facets/vite-dev-server.d.ts +2 -2
  13. package/dist/facets/vite-dev-server.js +4 -4
  14. package/dist/git/commands.d.ts +8 -0
  15. package/dist/git/commands.d.ts.map +1 -1
  16. package/dist/git/commands.js +41 -9
  17. package/dist/git/network-facet.d.ts +1 -1
  18. package/dist/git/network-facet.d.ts.map +1 -1
  19. package/dist/git/network-facet.js +35 -12
  20. package/dist/git-bundle.generated.d.ts +2 -2
  21. package/dist/git-bundle.generated.d.ts.map +1 -1
  22. package/dist/git-bundle.generated.js +3 -3
  23. package/dist/index.js +1 -1
  24. package/dist/loaders/child-process/spawn-facet.js +1 -1
  25. package/dist/loaders/child-process/spawn-pool.d.ts.map +1 -1
  26. package/dist/loaders/child-process/spawn-pool.js +2 -2
  27. package/dist/loaders/generated-workers.d.ts +1 -1
  28. package/dist/loaders/generated-workers.d.ts.map +1 -1
  29. package/dist/loaders/generated-workers.js +2 -2
  30. package/dist/loaders/npm-resolve-preamble.d.ts +3 -3
  31. package/dist/loaders/npm-resolve-preamble.js +3 -3
  32. package/dist/loaders/pre-bundle-preamble.d.ts +5 -5
  33. package/dist/loaders/pre-bundle-preamble.js +6 -6
  34. package/dist/loaders/process-host.d.ts +6 -107
  35. package/dist/loaders/process-host.d.ts.map +1 -1
  36. package/dist/loaders/process-host.js +6 -405
  37. package/dist/npm/install-batch-facet.js +1 -1
  38. package/dist/npm/installer.d.ts +4 -4
  39. package/dist/npm/installer.js +18 -18
  40. package/dist/npm/pre-bundle-facet.d.ts +2 -2
  41. package/dist/npm/pre-bundle-facet.js +5 -5
  42. package/dist/npm/resolve-facet.d.ts +1 -1
  43. package/dist/npm/resolve-facet.js +1 -1
  44. package/dist/npm/resolve-one-facet.d.ts +5 -5
  45. package/dist/npm/resolve-one-facet.js +5 -5
  46. package/dist/router/index.js +1 -1
  47. package/dist/router/remote-api.js +8 -0
  48. package/dist/runtime/bun-repl.d.ts +1 -1
  49. package/dist/runtime/bun-repl.js +3 -3
  50. package/dist/runtime/facet-loader-host.d.ts +5 -8
  51. package/dist/runtime/facet-loader-host.d.ts.map +1 -1
  52. package/dist/runtime/facet-loader-host.js +7 -11
  53. package/dist/runtime/node-repl.js +2 -2
  54. package/dist/runtime/python-repl.js +3 -3
  55. package/dist/runtime/ruby-repl.js +2 -2
  56. package/dist/runtime/ruby-resident.js +1 -1
  57. package/dist/session/hibernation.d.ts +18 -51
  58. package/dist/session/hibernation.d.ts.map +1 -1
  59. package/dist/session/hibernation.js +49 -186
  60. package/dist/session/init-phases.d.ts +2 -2
  61. package/dist/session/init-phases.d.ts.map +1 -1
  62. package/dist/session/init-phases.js +1 -1
  63. package/dist/session/init.d.ts.map +1 -1
  64. package/dist/session/init.js +16 -2
  65. package/dist/session/keys.d.ts +14 -35
  66. package/dist/session/keys.d.ts.map +1 -1
  67. package/dist/session/keys.js +17 -35
  68. package/dist/session/nimbus-session.d.ts +10 -4
  69. package/dist/session/nimbus-session.d.ts.map +1 -1
  70. package/dist/session/nimbus-session.js +20 -11
  71. package/dist/session/port-capability.d.ts +43 -0
  72. package/dist/session/port-capability.d.ts.map +1 -0
  73. package/dist/session/port-capability.js +49 -0
  74. package/dist/session/programmatic.d.ts +41 -5
  75. package/dist/session/programmatic.d.ts.map +1 -1
  76. package/dist/session/programmatic.js +147 -15
  77. package/dist/session/routes.d.ts +2 -0
  78. package/dist/session/routes.d.ts.map +1 -1
  79. package/dist/session/routes.js +91 -16
  80. package/dist/session/rpc.d.ts +35 -8
  81. package/dist/session/rpc.d.ts.map +1 -1
  82. package/dist/session/rpc.js +73 -14
  83. package/dist/session/start-real-vite.d.ts.map +1 -1
  84. package/dist/session/start-real-vite.js +2 -0
  85. package/dist/session/state-store.d.ts +3 -2
  86. package/dist/session/state-store.d.ts.map +1 -1
  87. package/dist/session/state-store.js +3 -2
  88. package/dist/session/supervisor-rpc.d.ts.map +1 -1
  89. package/dist/session/supervisor-rpc.js +5 -0
  90. package/dist/session/ws.d.ts +2 -2
  91. package/dist/session/ws.d.ts.map +1 -1
  92. package/dist/session/ws.js +2 -2
  93. package/dist/wrangler/nimbus-wrangler.js +1 -1
  94. package/package.json +3 -2
  95. package/scripts/bundle-runtime.mjs +5 -2
  96. package/dist/facets/inner-do-registry.d.ts +0 -41
  97. package/dist/facets/inner-do-registry.d.ts.map +0 -1
  98. package/dist/facets/inner-do-registry.js +0 -51
  99. package/dist/facets/launch-pacer.d.ts +0 -111
  100. package/dist/facets/launch-pacer.d.ts.map +0 -1
  101. package/dist/facets/launch-pacer.js +0 -130
  102. package/dist/loaders/fanout-pool.d.ts +0 -207
  103. package/dist/loaders/fanout-pool.d.ts.map +0 -1
  104. package/dist/loaders/fanout-pool.js +0 -363
  105. package/dist/loaders/loader-pool.d.ts +0 -294
  106. package/dist/loaders/loader-pool.d.ts.map +0 -1
  107. package/dist/loaders/loader-pool.js +0 -642
  108. package/dist/loaders/process-fabric.d.ts +0 -509
  109. package/dist/loaders/process-fabric.d.ts.map +0 -1
  110. package/dist/loaders/process-fabric.js +0 -360
  111. package/dist/loaders/vendor/errors.d.ts +0 -24
  112. package/dist/loaders/vendor/errors.d.ts.map +0 -1
  113. package/dist/loaders/vendor/errors.js +0 -46
  114. package/dist/loaders/vendor/serialize.d.ts +0 -3
  115. package/dist/loaders/vendor/serialize.d.ts.map +0 -1
  116. package/dist/loaders/vendor/serialize.js +0 -25
  117. package/dist/loaders/vendor/types.d.ts +0 -69
  118. package/dist/loaders/vendor/types.d.ts.map +0 -1
  119. package/dist/loaders/vendor/types.js +0 -4
  120. package/dist/loaders/workerd-facet-host.d.ts +0 -141
  121. package/dist/loaders/workerd-facet-host.d.ts.map +0 -1
  122. package/dist/loaders/workerd-facet-host.js +0 -284
  123. package/dist/session/bindings.d.ts +0 -209
  124. package/dist/session/bindings.d.ts.map +0 -1
  125. package/dist/session/bindings.js +0 -680
  126. package/dist/session/ctx-exports.d.ts +0 -16
  127. package/dist/session/ctx-exports.d.ts.map +0 -1
  128. package/dist/session/ctx-exports.js +0 -22
  129. package/dist/session/ws-hibernation-config.d.ts +0 -64
  130. package/dist/session/ws-hibernation-config.d.ts.map +0 -1
  131. package/dist/session/ws-hibernation-config.js +0 -89
@@ -1,294 +0,0 @@
1
- /**
2
- * loader-pool.ts — Nimbus loader-isolate pool based on cloudflare-parallel.
3
- *
4
- * Adds Nimbus-specific behavior to the upstream pool design:
5
- * 1. **Stable-slot isolate reuse**. Upstream's #counter++ gives every
6
- * dispatch a fresh isolate — fine for one-off AI calls, terrible for
7
- * running 67 npm tarball extractions (cold-start dominates). We pin
8
- * each job to `slot = cursor % concurrency` and use stable loader
9
- * IDs `nfp:${fnHash}:slot-${i}:g${generation}`, so a pool of
10
- * concurrency=4 keeps at most 4 warm isolates rather than N fresh ones.
11
- * 2. **Nimbus defaults**: compatibilityDate = CF_COMPAT_DATE (matches
12
- * the supervisor worker), compatibilityFlags = ['nodejs_compat'],
13
- * globalOutbound = undefined (inherit parent network so the facet can
14
- * reach https://registry.npmjs.org without a proxy binding).
15
- * 3. **SupervisorRPC autoinjection**. The pool grabs a SupervisorRPC
16
- * stub from `getCtxExports()` and forwards it as `env.SUPERVISOR` to
17
- * every facet, same pattern as git-network-facet.ts. Callers can add
18
- * more bindings via `extraBindings`.
19
- * 4. **Fail-loud defaults**: timeout 60s, retries 0, onError 'throw'.
20
- * Caller opts in to leniency.
21
- *
22
- * The vendored directory contains only the upstream serialization, error,
23
- * and binding types used by this implementation.
24
- */
25
- /** Options handed to NimbusLoaderPool's constructor. */
26
- export interface NimbusLoaderPoolOptions {
27
- /** Maximum concurrent in-flight facets. Default 4. */
28
- concurrency?: number;
29
- /** Per-task timeout in ms. Default 60_000. */
30
- timeoutMs?: number;
31
- /**
32
- * Per-task retry attempts AFTER the initial failure. Default 0.
33
- * Set to a small number only if transient RPC errors are common.
34
- */
35
- retries?: number;
36
- /**
37
- * Additional bindings forwarded to each facet. These merge on top of the
38
- * default `{ SUPERVISOR: SupervisorRPC({ doId, pid:0 }) }`. Use this to
39
- * give facets access to KV, R2, AI, or additional supervisor-level APIs.
40
- */
41
- extraBindings?: Record<string, unknown>;
42
- /**
43
- * Optional tag used in loader IDs for debugging (e.g. "npm-install").
44
- * Does NOT affect isolate identity — same fn + same tag = same slot.
45
- */
46
- tag?: string;
47
- /**
48
- * If true, omit the default SupervisorRPC binding. Use this for pools
49
- * that don't need DO callbacks (e.g. a pure CPU compute pool).
50
- */
51
- omitSupervisor?: boolean;
52
- /**
53
- * Loader cache scope. Defaults to `session`, which bakes the owning DO id
54
- * into the loader key so stateful facets cannot leak bindings or globals
55
- * across sessions. Use `global` only for stateless compute modules that do
56
- * not receive a Supervisor binding and do not retain user state.
57
- */
58
- cacheScope?: 'session' | 'global';
59
- /**
60
- * Override the `doId` baked into the auto-injected SUPERVISOR binding.
61
- * Default: `ctx.id.toString()` (the DO that constructs the pool).
62
- *
63
- * Used by NimbusFanoutPool's peer-DO branch (peer-DO fanout): peer DOs
64
- * construct their per-task NimbusLoaderPool from inside
65
- * `_rpcFanoutExecute`, where `ctx` is the PEER DO's ctx. Without this
66
- * override the peer's auto-injected SUPERVISOR routes back to the
67
- * peer DO itself — so writes (e.g. install-batch-facet's
68
- * writeBatchStream) land in the peer's VFS instead of the
69
- * COORDINATOR's. The user's terminal session is on the coordinator;
70
- * writes-to-peer are invisible. See INSTALL-HONESTY-retro.md.
71
- *
72
- * When set, the auto-injected SupervisorRPC uses this string as the
73
- * `props.doId`, routing all SUPERVISOR.* calls back to the
74
- * coordinator. Effective only when `omitSupervisor !== true`.
75
- */
76
- supervisorDoIdOverride?: string;
77
- /**
78
- * Process pid baked into the auto-injected SUPERVISOR binding's props.
79
- * The supervisor derives the write credential from this pid
80
- * (`SupervisorRPC._pid()` → `processes.cred(pid)`), so any facet that
81
- * calls a filesystem RPC (`writeBatchStream`, `writeFile`, …) must be
82
- * dispatched with the invoking process's real pid — otherwise the RPC
83
- * throws "missing or invalid process pid in props". npm install threads
84
- * the shell command's `ctx.pid` here so package files land as the user.
85
- * Left 0 (default) for pools whose facets touch only cache/registry RPCs
86
- * (npm resolve, pre-bundle), which never call `_pid()`.
87
- */
88
- supervisorPid?: number;
89
- /**
90
- * Raw JavaScript source prepended to every generated worker module.
91
- * Lets callers inject bundled helpers, such as a tar parser. The user
92
- * function can reference top-level names declared in the preamble as if
93
- * they were in lexical scope.
94
- *
95
- * Example: `preamble: 'export const parse = ...; const helper = ...;'`
96
- * — the preamble runs at module-load time; any side effects happen
97
- * inside the facet isolate.
98
- *
99
- * Preamble text is bytes-stable for a given pool — it's part of the
100
- * loader-cache key (fnHash), so changing the preamble invalidates all
101
- * warm slots.
102
- */
103
- preamble?: string;
104
- /**
105
- * WebAssembly modules to ship into the facet via the LOADER's
106
- * `modules` map. Map keys are module specifier paths (e.g.
107
- * `'esbuild.wasm'`); values are the raw bytes.
108
- *
109
- * Workerd registers each entry as `{ wasm: ArrayBuffer }` in the
110
- * worker's modules map. The pool prepends a static
111
- * `import __NIMBUS_WASM_<id> from './<key>';` to the generated
112
- * worker.js so workerd compiles each at module-load (startup phase,
113
- * where wasm code generation is permitted). The compiled Modules
114
- * are exposed via `globalThis.__NIMBUS_WASM[<key>]` for the user
115
- * function to read at request time.
116
- *
117
- * Why this works when other paths don't:
118
- * - request-time `WebAssembly.compile()` — disallowed by workerd
119
- * in this deploy.
120
- * - request-time RPC of a pre-compiled Module — workerd
121
- * structured-clone refuses ("Unable to deserialize cloned data").
122
- * - inlining bytes in the preamble — 16 MiB string per dispatch
123
- * OOMs the supervisor at module-source allocation time.
124
- * - LOADER modules-map (this) — bytes ride INSIDE the worker code
125
- * blob; workerd compiles wasm during its own startup pipeline,
126
- * never crossing structured-clone, never executing JS eval.
127
- *
128
- * The bytes ARE part of the loader-cache key (workerd hashes the
129
- * whole WorkerCode), so changing the wasm bytes invalidates warm
130
- * slots — desirable when the bundled wasm version changes.
131
- */
132
- wasmModules?: Record<string, ArrayBuffer>;
133
- }
134
- /** Per-call override (merged with pool defaults). */
135
- export interface NimbusLoaderCallOptions {
136
- timeoutMs?: number;
137
- retries?: number;
138
- /**
139
- * Per-call WebAssembly modules. Merged with the pool's
140
- * constructor-time `wasmModules` at dispatch time and shipped via
141
- * the LOADER's modules map (same `{ wasm: ArrayBuffer }` shape).
142
- *
143
- * Shipping path validated empirically against prod (see
144
- * `WebAssembly.instantiate(bytes)` is blocked at request-time but
145
- * the LOADER-modules path compiles bytes during the inner
146
- * worker's module-load phase, where wasm code generation IS
147
- * permitted. The bytes ride INSIDE the worker code blob; workerd
148
- * never crosses structured-clone, never executes user-eval.
149
- *
150
- * Cache key impact: per-call bytes are fingerprinted (length +
151
- * first/last byte per module) and folded into the loader cache
152
- * key. Identical bytes on the same slot → warm reuse; different
153
- * bytes → fresh isolate. The pool's existing `wasmHash` field
154
- * captures CONSTRUCTOR-time bytes only; per-call bytes get an
155
- * independent fingerprint mixed into the slot id at dispatch.
156
- *
157
- * Naming collision rule: a per-call key MUST NOT collide with a
158
- * constructor-time key (after identifier sanitisation). The
159
- * dispatch path throws BindingError if it does — silently
160
- * shadowing the constructor's wasm would break the cache-key
161
- * invariant downstream callers rely on.
162
- *
163
- * Used by the `wasm-runner` shell command in src/runtime/
164
- * wasm-runner.ts to ship user-supplied .wasm bytes from VFS into
165
- * a fresh facet isolate per invocation.
166
- */
167
- wasmModules?: Record<string, ArrayBuffer>;
168
- }
169
- /** Per-map override. Adds onError strategy for partial failures. */
170
- export interface NimbusLoaderMapOptions extends NimbusLoaderCallOptions {
171
- /** Concurrency override for this call. Defaults to pool's concurrency. */
172
- concurrency?: number;
173
- /**
174
- * What to do when an individual item fails:
175
- * - 'throw' (default): reject whole map on first failure.
176
- * - 'null': replace failed items with null in the result array.
177
- * - 'skip': omit failed items from the result array.
178
- * We default to 'throw' — install-time failures are not silently ignored.
179
- */
180
- onError?: 'throw' | 'null' | 'skip';
181
- }
182
- export interface LoaderWorkerModuleSourceOptions {
183
- fnSource: string;
184
- preamble?: string;
185
- wasmEntries?: ReadonlyArray<{
186
- name: string;
187
- id: string;
188
- }>;
189
- hasBindings: boolean;
190
- }
191
- /** Assemble the exact JavaScript module parsed by a dynamic loader worker. */
192
- export declare function assembleLoaderWorkerModuleSource(options: LoaderWorkerModuleSourceOptions): string;
193
- /**
194
- * Nimbus-scoped parallel dispatch over `env.LOADER`. Tasks are pure
195
- * functions whose last argument is an `env` object containing the
196
- * forwarded bindings (default: `{ SUPERVISOR }`).
197
- *
198
- * Typical use:
199
- *
200
- * const pool = new NimbusLoaderPool(env, ctx, {
201
- * concurrency: 4,
202
- * tag: 'npm-install',
203
- * });
204
- * const results = await pool.map(
205
- * async (pkg, env) => env.SUPERVISOR.writeBatch(buildPayload(pkg)),
206
- * toFetch,
207
- * );
208
- */
209
- export declare class NimbusLoaderPool {
210
- #private;
211
- private readonly loader;
212
- private readonly concurrency;
213
- private readonly defaultTimeoutMs;
214
- private readonly defaultRetries;
215
- private readonly tag;
216
- private readonly slotGenerations;
217
- private bindings;
218
- private readonly preamble;
219
- private readonly preambleHash;
220
- /**
221
- * WASM modules to ship in the LOADER `modules` map. See
222
- * NimbusLoaderPoolOptions.wasmModules for the rationale. Stored in
223
- * insertion order so the per-import preamble we generate matches
224
- * across pool dispatches (cache-key stability).
225
- */
226
- private readonly wasmModules;
227
- /** Hash of (name + byte length + first/last bytes) of every wasm
228
- * module, folded into the loader cache key so changes invalidate
229
- * warm slots. Hashing the FULL bytes would be O(20+ MiB) per dispatch
230
- * and is unnecessary — wasm bytes are pinned at deploy time, the
231
- * length+endpoints are a strong-enough fingerprint. */
232
- private readonly wasmHash;
233
- /**
234
- * Short prefix of the owning DO's id, baked into the loader.get()
235
- * cache key so warm isolates are scoped to ONE session. Without this,
236
- * session A's pool and session B's pool (same `tag` + `fnHash`) share
237
- * an isolate — which means B's writeBatch RPCs routed through A's
238
- * env.SUPERVISOR binding (minted with A's doId at construction
239
- * time). B's install reports success but the writes land in A's VFS,
240
- * leaving B with only the git-clone seed files (~119 instead of ~1491).
241
- * 12 chars is enough entropy for DO ids to collide-free per process.
242
- */
243
- private readonly doIdShort;
244
- constructor(env: any, ctx: DurableObjectState, opts?: NimbusLoaderPoolOptions);
245
- /** Effective concurrency used when no per-call override is supplied. */
246
- get defaultConcurrency(): number;
247
- /**
248
- * Run `fn` once with `arg` on a slot isolate. Returns the result or
249
- * throws TimeoutError / RetryExhaustedError / ExecutionError.
250
- */
251
- submit<T, R>(fn: (arg: T, env: any) => R | Promise<R>, arg: T, opts?: NimbusLoaderCallOptions): Promise<Awaited<R>>;
252
- /**
253
- * Run `fn` on every item in `items`, at most `concurrency` at a time,
254
- * pinned to stable slots so warm isolates are reused.
255
- *
256
- * Results are returned in input order. Failure handling per `onError`.
257
- */
258
- map<T, R>(fn: (item: T, env: any) => R | Promise<R>, items: T[], opts?: NimbusLoaderMapOptions): Promise<Array<Awaited<R> | null>>;
259
- /**
260
- * Same shape as `map`, but accepts a pre-serialized function source
261
- * string instead of a live function reference. Used by
262
- * `NimbusFanoutPool`'s peer-DO leg, where the function was already
263
- * serialized on the coordinator side and forwarded over RPC.
264
- *
265
- * The fnSource MUST be the output of `serializeFunction(fn)`
266
- * (typically forwarded directly from a coordinator RPC). Bytes-
267
- * stable invariants:
268
- * - `fnHash = hashSource(fnSource)` must be deterministic so
269
- * warm slots are correctly keyed.
270
- * - `fnSource` must NOT reference `this` — same rule as
271
- * `serializeFunction`.
272
- *
273
- * No fn-validation runs here (it already ran on the coordinator);
274
- * the peer trusts the caller to forward a valid serialization.
275
- */
276
- mapSource<T, R>(fnSource: string, items: T[], opts?: NimbusLoaderMapOptions): Promise<Array<Awaited<R> | null>>;
277
- /**
278
- * Release any RPC stubs held by the pool. Call this once the caller
279
- * is done with the pool (post-`map`/`submit`) so the underlying
280
- * stubs don't linger in workerd's deferred-destruction queue.
281
- *
282
- * Primary target: the SUPERVISOR binding stub we minted at
283
- * construction time (via `ctxExports.SupervisorRPC({props})`). It's
284
- * a cross-isolate RPC stub — without explicit disposal it stays
285
- * referenced until the parent isolate's event-handler context
286
- * finishes, which during npm install means "until the whole install
287
- * completes" — long enough to accumulate alongside other leaked
288
- * stubs and trip the QueueState::ACTIVE fatal.
289
- *
290
- * Safe to call more than once; idempotent.
291
- */
292
- dispose(): void;
293
- }
294
- //# sourceMappingURL=loader-pool.d.ts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"loader-pool.d.ts","sourceRoot":"","sources":["../../src/loaders/loader-pool.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;;;;;;;;;;GAuBG;AAgBH,wDAAwD;AACxD,MAAM,WAAW,uBAAuB;IACtC,sDAAsD;IACtD,WAAW,CAAC,EAAE,MAAM,CAAC;IACrB,8CAA8C;IAC9C,SAAS,CAAC,EAAE,MAAM,CAAC;IACnB;;;OAGG;IACH,OAAO,CAAC,EAAE,MAAM,CAAC;IACjB;;;;OAIG;IACH,aAAa,CAAC,EAAE,MAAM,CAAC,MAAM,EAAE,OAAO,CAAC,CAAC;IACxC;;;OAGG;IACH,GAAG,CAAC,EAAE,MAAM,CAAC;IACb;;;OAGG;IACH,cAAc,CAAC,EAAE,OAAO,CAAC;IACzB;;;;;OAKG;IACH,UAAU,CAAC,EAAE,SAAS,GAAG,QAAQ,CAAC;IAClC;;;;;;;;;;;;;;;;OAgBG;IACH,sBAAsB,CAAC,EAAE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