@nimbus-sh/core 0.5.0 → 0.7.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 (145) hide show
  1. package/README.md +47 -26
  2. package/dist/_shared/byte-stream.d.ts +5 -4
  3. package/dist/_shared/byte-stream.d.ts.map +1 -1
  4. package/dist/_shared/cache-stats.d.ts +23 -1
  5. package/dist/_shared/cache-stats.d.ts.map +1 -1
  6. package/dist/_shared/cache-stats.js +13 -1
  7. package/dist/_shared/exports-resolver.d.ts +1 -1
  8. package/dist/_shared/exports-resolver.js +1 -1
  9. package/dist/_shared/real-node-imports.d.ts +7 -0
  10. package/dist/_shared/real-node-imports.d.ts.map +1 -1
  11. package/dist/_shared/real-node-imports.js +8 -0
  12. package/dist/_shared/retry.js +1 -1
  13. package/dist/_shared/tarball.d.ts +23 -5
  14. package/dist/_shared/tarball.d.ts.map +1 -1
  15. package/dist/_shared/tarball.js +38 -5
  16. package/dist/_shared/vfs-write-ledger.d.ts.map +1 -1
  17. package/dist/_shared/vfs-write-ledger.js +22 -16
  18. package/dist/constants.d.ts +5 -11
  19. package/dist/constants.d.ts.map +1 -1
  20. package/dist/constants.js +16 -56
  21. package/dist/runtime/assets-loader.js +1 -1
  22. package/dist/runtime/comment-strip.d.ts +0 -35
  23. package/dist/runtime/comment-strip.d.ts.map +1 -1
  24. package/dist/runtime/comment-strip.js +48 -20
  25. package/dist/runtime/esbuild-service.d.ts +38 -42
  26. package/dist/runtime/esbuild-service.d.ts.map +1 -1
  27. package/dist/runtime/esbuild-service.js +494 -197
  28. package/dist/runtime/javascript-ast.d.ts.map +1 -1
  29. package/dist/runtime/javascript-ast.js +45 -7
  30. package/dist/runtime/opentui-wasm-backend.d.ts.map +1 -1
  31. package/dist/runtime/opentui-wasm-backend.js +18 -16
  32. package/dist/runtime/port-registry.d.ts +4 -2
  33. package/dist/runtime/port-registry.d.ts.map +1 -1
  34. package/dist/runtime/port-registry.js +60 -8
  35. package/dist/runtime/virtual-socket-kernel.generated.d.ts +1 -1
  36. package/dist/runtime/virtual-socket-kernel.generated.js +1 -1
  37. package/dist/shell/stdin-adapter.d.ts +11 -0
  38. package/dist/shell/stdin-adapter.d.ts.map +1 -0
  39. package/dist/shell/stdin-adapter.js +59 -0
  40. package/dist/shell/unix-commands.d.ts +2 -1
  41. package/dist/shell/unix-commands.d.ts.map +1 -1
  42. package/dist/shell/unix-commands.js +1078 -50
  43. package/dist/substrate/lifo/commands/io/dd.js +1 -1
  44. package/dist/substrate/lifo/commands/net/curl.d.ts.map +1 -1
  45. package/dist/substrate/lifo/commands/net/curl.js +270 -54
  46. package/dist/substrate/lifo/commands/system/npm.d.ts +18 -1
  47. package/dist/substrate/lifo/commands/system/npm.d.ts.map +1 -1
  48. package/dist/substrate/lifo/commands/system/npm.js +26 -43
  49. package/dist/substrate/lifo/commands/text/head.d.ts.map +1 -1
  50. package/dist/substrate/lifo/commands/text/head.js +2 -1
  51. package/dist/substrate/lifo/commands/text/sed.d.ts.map +1 -1
  52. package/dist/substrate/lifo/commands/text/sed.js +499 -117
  53. package/dist/substrate/lifo/commands/types.d.ts +8 -4
  54. package/dist/substrate/lifo/commands/types.d.ts.map +1 -1
  55. package/dist/substrate/lifo/node-compat/zlib.d.ts +37 -18
  56. package/dist/substrate/lifo/node-compat/zlib.d.ts.map +1 -1
  57. package/dist/substrate/lifo/node-compat/zlib.js +122 -23
  58. package/dist/substrate/lifo/shell/interpreter.d.ts +9 -1
  59. package/dist/substrate/lifo/shell/interpreter.d.ts.map +1 -1
  60. package/dist/substrate/lifo/shell/interpreter.js +79 -29
  61. package/dist/substrate/lifo/shell/pipe.d.ts +16 -0
  62. package/dist/substrate/lifo/shell/pipe.d.ts.map +1 -1
  63. package/dist/substrate/lifo/shell/pipe.js +62 -18
  64. package/dist/substrate/lifo/shell/terminal-stdin.d.ts +20 -3
  65. package/dist/substrate/lifo/shell/terminal-stdin.d.ts.map +1 -1
  66. package/dist/substrate/lifo/shell/terminal-stdin.js +60 -24
  67. package/dist/vfs/seed-project.d.ts.map +1 -1
  68. package/dist/vfs/seed-project.js +1 -1
  69. package/dist/vfs/sqlite-vfs.d.ts +21 -30
  70. package/dist/vfs/sqlite-vfs.d.ts.map +1 -1
  71. package/dist/vfs/sqlite-vfs.js +113 -29
  72. package/dist/workspace/nimbus-workspace.d.ts +15 -0
  73. package/dist/workspace/nimbus-workspace.d.ts.map +1 -1
  74. package/dist/workspace/nimbus-workspace.js +20 -3
  75. package/dist/workspace/supervisor-op.d.ts +23 -0
  76. package/dist/workspace/supervisor-op.d.ts.map +1 -0
  77. package/dist/workspace/supervisor-op.js +92 -0
  78. package/package.json +3 -2
  79. package/src/_shared/byte-stream.ts +5 -4
  80. package/src/_shared/cache-stats.ts +27 -1
  81. package/src/_shared/exports-resolver.ts +1 -1
  82. package/src/_shared/real-node-imports.ts +8 -0
  83. package/src/_shared/retry.ts +1 -1
  84. package/src/_shared/tarball.ts +56 -5
  85. package/src/_shared/vfs-write-ledger.ts +22 -16
  86. package/src/constants.ts +30 -60
  87. package/src/runtime/assets-loader.ts +1 -1
  88. package/src/runtime/comment-strip.ts +42 -23
  89. package/src/runtime/esbuild-service.ts +566 -217
  90. package/src/runtime/javascript-ast.ts +40 -9
  91. package/src/runtime/opentui-wasm-backend.ts +19 -17
  92. package/src/runtime/port-registry.ts +66 -8
  93. package/src/runtime/virtual-socket-kernel.generated.ts +1 -1
  94. package/src/shell/stdin-adapter.ts +58 -0
  95. package/src/shell/unix-commands.ts +1054 -50
  96. package/src/substrate/lifo/commands/io/dd.ts +2 -2
  97. package/src/substrate/lifo/commands/net/curl.ts +310 -58
  98. package/src/substrate/lifo/commands/system/npm.ts +58 -38
  99. package/src/substrate/lifo/commands/text/head.ts +2 -1
  100. package/src/substrate/lifo/commands/text/sed.ts +519 -109
  101. package/src/substrate/lifo/commands/types.ts +8 -5
  102. package/src/substrate/lifo/node-compat/zlib.ts +155 -26
  103. package/src/substrate/lifo/shell/interpreter.ts +74 -27
  104. package/src/substrate/lifo/shell/pipe.ts +65 -24
  105. package/src/substrate/lifo/shell/terminal-stdin.ts +66 -30
  106. package/src/vfs/seed-project.ts +3 -3
  107. package/src/vfs/sqlite-vfs.ts +128 -64
  108. package/src/workspace/nimbus-workspace.ts +26 -2
  109. package/src/workspace/supervisor-op.ts +117 -0
  110. package/dist/_shared/install-phase.d.ts +0 -47
  111. package/dist/_shared/install-phase.d.ts.map +0 -1
  112. package/dist/_shared/install-phase.js +0 -1
  113. package/dist/_shared/rpc-dispose.d.ts +0 -4
  114. package/dist/_shared/rpc-dispose.d.ts.map +0 -1
  115. package/dist/_shared/rpc-dispose.js +0 -30
  116. package/dist/_shared/w7-frame.d.ts +0 -79
  117. package/dist/_shared/w7-frame.d.ts.map +0 -1
  118. package/dist/_shared/w7-frame.js +0 -840
  119. package/dist/_shared/weighted-credit-pool.d.ts +0 -61
  120. package/dist/_shared/weighted-credit-pool.d.ts.map +0 -1
  121. package/dist/_shared/weighted-credit-pool.js +0 -196
  122. package/dist/observability/diag-counters.d.ts +0 -236
  123. package/dist/observability/diag-counters.d.ts.map +0 -1
  124. package/dist/observability/diag-counters.js +0 -195
  125. package/dist/observability/heap-estimate.d.ts +0 -225
  126. package/dist/observability/heap-estimate.d.ts.map +0 -1
  127. package/dist/observability/heap-estimate.js +0 -185
  128. package/dist/observability/heavy-alloc-coord.d.ts +0 -93
  129. package/dist/observability/heavy-alloc-coord.d.ts.map +0 -1
  130. package/dist/observability/heavy-alloc-coord.js +0 -181
  131. package/dist/observability/oom-classify.d.ts +0 -138
  132. package/dist/observability/oom-classify.d.ts.map +0 -1
  133. package/dist/observability/oom-classify.js +0 -268
  134. package/dist/observability/oom-discriminator.d.ts +0 -176
  135. package/dist/observability/oom-discriminator.d.ts.map +0 -1
  136. package/dist/observability/oom-discriminator.js +0 -272
  137. package/src/_shared/install-phase.ts +0 -56
  138. package/src/_shared/rpc-dispose.ts +0 -31
  139. package/src/_shared/w7-frame.ts +0 -1013
  140. package/src/_shared/weighted-credit-pool.ts +0 -244
  141. package/src/observability/diag-counters.ts +0 -343
  142. package/src/observability/heap-estimate.ts +0 -331
  143. package/src/observability/heavy-alloc-coord.ts +0 -241
  144. package/src/observability/oom-classify.ts +0 -260
  145. package/src/observability/oom-discriminator.ts +0 -405
@@ -1,37 +1,2 @@
1
- /**
2
- * Minimal byte-aligned comment stripper for prefetch's import detection.
3
- *
4
- * Scope: strip `//` line comments and `/* … *\/` block comments by
5
- * replacing each comment with a single space. Newlines INSIDE the
6
- * comment are preserved so that line numbers stay aligned with the
7
- * input (matches the strip-and-classify pattern used by
8
- * `esbuild-service.ts:stripCommentsAndStrings` for the transform
9
- * pipeline).
10
- *
11
- * Why a separate, smaller scanner: prefetch's IMPORT_RE / REQUIRE_RE
12
- * in `require-resolver.ts:41,87` are detection-only — they extract
13
- * specifier strings, not shapes. The full string-and-template-literal
14
- * stripper in `esbuild-service.ts` is overkill for that, and crossing
15
- * the anti-touch boundary on `esbuild-service.ts` to extend a single
16
- * shared helper isn't worth it right now.
17
- *
18
- * Empirical justification (esbuild-ast-rewrite wave, P2 measurement):
19
- * - Per-file AST-based extraction: ~5 ms warm avg
20
- * - 100-file session bootstrap with AST: ~553 ms (over the 500 ms gate)
21
- * - Regex with this stripper: ~0.1 ms per file
22
- * - Correctness gap closed: chalk `import { // eslint-disable\n a,\n b\n} from './utilities.js'` now matches
23
- *
24
- * String-literal handling is intentionally OUT of scope. A literal
25
- * `import x from 'y'` inside a JavaScript string would still produce
26
- * a false-positive prefetch attempt. The resolver no-ops on misses,
27
- * so it's a minor wasted-work cost — see IMPORT_RE header comment in
28
- * `require-resolver.ts:84-86`.
29
- *
30
- * TODO(CLN-X): when the `src/runtime/esbuild-service.ts` anti-touch
31
- * window opens, unify with the canonical
32
- * `stripCommentsAndStrings(src)` helper there. Both implement the
33
- * same logical pass over comments; only the string/regex-literal
34
- * handling differs.
35
- */
36
1
  export declare function stripCommentsForImports(src: string): string;
37
2
  //# sourceMappingURL=comment-strip.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"comment-strip.d.ts","sourceRoot":"","sources":["../../src/runtime/comment-strip.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;GAkCG;AACH,wBAAgB,uBAAuB,CAAC,GAAG,EAAE,MAAM,GAAG,MAAM,CAqC3D"}
1
+ {"version":3,"file":"comment-strip.d.ts","sourceRoot":"","sources":["../../src/runtime/comment-strip.ts"],"names":[],"mappings":"AAkDA,wBAAgB,uBAAuB,CAAC,GAAG,EAAE,MAAM,GAAG,MAAM,CAyC3D"}
@@ -27,48 +27,76 @@
27
27
  * so it's a minor wasted-work cost — see IMPORT_RE header comment in
28
28
  * `require-resolver.ts:84-86`.
29
29
  *
30
+ * Memory: the output is assembled from slices of the input — one per
31
+ * comment-free span — and joined once. It used to be built one character
32
+ * at a time with `out += c`, which every JS engine represents as a rope
33
+ * of one node per append: ~30 bytes of heap per character of output, all
34
+ * of it live until the string is first read. The require walk runs this
35
+ * over every file in the closure, and on typescript's 6.15 MB `lib/_tsc.js`
36
+ * that rope measured 174 MB (V8) / 172 MB (JSC) against a 128 MB isolate —
37
+ * the session Durable Object was killed inside `tsc`'s spawn before the
38
+ * facet existed. A span-sliced build holds the input, the output and a
39
+ * short array of slices, and nothing else.
40
+ *
30
41
  * TODO(CLN-X): when the `src/runtime/esbuild-service.ts` anti-touch
31
42
  * window opens, unify with the canonical
32
43
  * `stripCommentsAndStrings(src)` helper there. Both implement the
33
44
  * same logical pass over comments; only the string/regex-literal
34
45
  * handling differs.
35
46
  */
47
+ const SLASH = 0x2f;
48
+ const STAR = 0x2a;
49
+ const NEWLINE = 0x0a;
36
50
  export function stripCommentsForImports(src) {
37
- let out = '';
38
- let i = 0;
39
51
  const N = src.length;
52
+ const parts = [];
53
+ // Start of the comment-free span not yet copied to `parts`.
54
+ let spanStart = 0;
55
+ let i = 0;
40
56
  while (i < N) {
41
- const c = src[i];
42
- // Line comment: `//` to end-of-line.
43
- if (c === '/' && src[i + 1] === '/') {
44
- out += ' ';
57
+ if (src.charCodeAt(i) !== SLASH) {
58
+ i++;
59
+ continue;
60
+ }
61
+ const next = src.charCodeAt(i + 1);
62
+ // Line comment: `//` to end-of-line, replaced by one space. The
63
+ // newline is not part of the comment and stays in the next span.
64
+ if (next === SLASH) {
65
+ parts.push(src.slice(spanStart, i), ' ');
45
66
  i += 2;
46
- while (i < N && src[i] !== '\n')
67
+ while (i < N && src.charCodeAt(i) !== NEWLINE)
47
68
  i++;
48
- // Newline preserved by falling through; do NOT consume it.
69
+ spanStart = i;
49
70
  continue;
50
71
  }
51
- // Block comment: `/*` to `*/`.
52
- if (c === '/' && src[i + 1] === '*') {
72
+ // Block comment: `/*` to `*/`, replaced by its own newlines (so line
73
+ // numbers stay aligned) and one space. An unterminated one runs to
74
+ // the end of input and gets no closing space.
75
+ if (next === STAR) {
76
+ parts.push(src.slice(spanStart, i));
53
77
  i += 2;
78
+ let newlines = 0;
79
+ let closed = false;
54
80
  while (i < N) {
55
- if (src[i] === '\n') {
56
- // Preserve newlines so line numbers stay aligned.
57
- out += '\n';
58
- i++;
59
- continue;
60
- }
61
- if (src[i] === '*' && src[i + 1] === '/') {
81
+ const c = src.charCodeAt(i);
82
+ if (c === NEWLINE)
83
+ newlines++;
84
+ else if (c === STAR && src.charCodeAt(i + 1) === SLASH) {
62
85
  i += 2;
63
- out += ' ';
86
+ closed = true;
64
87
  break;
65
88
  }
66
89
  i++;
67
90
  }
91
+ if (newlines > 0)
92
+ parts.push('\n'.repeat(newlines));
93
+ if (closed)
94
+ parts.push(' ');
95
+ spanStart = i;
68
96
  continue;
69
97
  }
70
- out += c;
71
98
  i++;
72
99
  }
73
- return out;
100
+ parts.push(src.slice(spanStart));
101
+ return parts.join('');
74
102
  }
@@ -16,7 +16,7 @@
16
16
  * this is acceptable for Phase 3. Phase 4+ can move it to a dedicated
17
17
  * facet once wasm module passing to dynamic workers is stable.
18
18
  */
19
- import type { SqliteVFS } from '../vfs/sqlite-vfs.js';
19
+ import type { CredentialedVfs } from '../vfs/sqlite-vfs.js';
20
20
  /**
21
21
  * Bundler version tag. BUMP THIS whenever bundling semantics change —
22
22
  * the esbuild plugin's resolver logic, the shared-externals rules, the
@@ -49,7 +49,7 @@ import type { SqliteVFS } from '../vfs/sqlite-vfs.js';
49
49
  * rows hold post-rewrite text and must be re-bundled. user_module_
50
50
  * transforms is likewise re-keyed by mount base.
51
51
  */
52
- export declare const BUNDLER_VERSION = "v8";
52
+ export declare const BUNDLER_VERSION = "v9";
53
53
  /**
54
54
  * Returns the list of specifiers that must be marked `external` when bundling
55
55
  * `specifier` so that React / React-DOM / Scheduler share a single instance
@@ -72,35 +72,38 @@ export declare const BUNDLER_VERSION = "v8";
72
72
  */
73
73
  export declare function getSharedRuntimeExternals(specifier: string): string[];
74
74
  /**
75
- * Detect top-level await in source. Used by `EsbuildService.transform`
76
- * to decide whether to async-IIFE-wrap CJS-target sources (see
77
- * transform()'s header comment).
78
- *
79
- * Token scan over a comment-and-string-stripped source. Tracks paren
80
- * depth AND function-body depth so a `{` inside a parameter list (a
81
- * default-value object literal — `async function f(opts = {})`) is NOT
82
- * mistaken for the function body. The earlier heuristic lacked the paren
83
- * guard: the `= {}` braces consumed the body-tracking slot, leaving the
84
- * real body untracked so an internal `await` read as top-level. That
85
- * wrongly routed such files (e.g. @bluwy/giget-core's
86
- * download-template.js, reached by create-astro) into the two-pass
87
- * ESM→require rewrite, whose assembled output still carried export/import
88
- * statements → "Cannot use import statement outside a module" at startup.
75
+ * Converts bundler-emitted ESM without constructing an AST or loading
76
+ * esbuild-wasm. Returns null for module declarations that are not the compact,
77
+ * semicolon-terminated shapes emitted by current JS bundlers.
78
+ */
79
+ export declare function rewriteBundledEsmToCjs(source: string, absoluteUrl: string): TransformResult | null;
80
+ import type * as esbuild from 'esbuild-wasm/esm/browser.js';
81
+ /**
82
+ * Load the esbuild-wasm namespace. Safe to call many times; concurrent
83
+ * callers share a single in-flight Promise, and a rejection clears the
84
+ * cache so a later call can retry.
89
85
  *
90
- * Arrow bodies are distinguished from arrow expression bodies (the
91
- * `arrowPending` flag): only a `{` immediately following `=>` opens a
92
- * function scope. The idiomatic object-returning arrow `x => ({ ... })`
93
- * has its `{` at parenDepth 1, so it opens no body slot — otherwise the
94
- * leaked slot would be consumed by a later top-level `{ ... }` block,
95
- * making a real top-level `await` inside it read as non-TLA (false
96
- * negative) and routing genuine ESM-with-TLA into the wrong transform.
86
+ * Exported so `tests/unit/esbuild-wasm-entrypoint.mjs` can drive the real
87
+ * specifier under a Node-style resolver. A test that restated the specifier
88
+ * would grade its own copy of it, and this defect reached production
89
+ * precisely because nothing graded the resolution.
97
90
  *
98
- * A regex/token scan (not acorn) is kept here deliberately: pulling
99
- * acorn into the esbuild-service bundle chunk duplicates its ~15 KiB
100
- * Unicode identifier tables.
91
+ * The specifier stays a literal: a computed one would defeat the host
92
+ * bundler's static analysis and leave the module out of the deployed worker.
101
93
  */
102
- export declare function hasTopLevelAwait(src: string): boolean;
103
- import type * as esbuild from 'esbuild-wasm';
94
+ export declare function loadEsbuild(): Promise<typeof esbuild>;
95
+ export interface EsbuildTransformOptions {
96
+ loader?: 'ts' | 'tsx' | 'jsx' | 'js' | 'css' | 'json';
97
+ format?: 'esm' | 'cjs' | 'iife';
98
+ target?: string;
99
+ sourcemap?: boolean | 'inline' | 'external';
100
+ minify?: boolean;
101
+ jsx?: 'transform' | 'preserve' | 'automatic';
102
+ jsxFactory?: string;
103
+ jsxFragment?: string;
104
+ tsconfigRaw?: string;
105
+ define?: Record<string, string>;
106
+ }
104
107
  export interface TransformResult {
105
108
  code: string;
106
109
  map: string;
@@ -124,13 +127,16 @@ export interface BuildResult {
124
127
  location?: esbuild.Location | null;
125
128
  }[];
126
129
  }
130
+ /** Source needed by the slim Worker Loader transform isolate. */
131
+ export declare function generateEsbuildTransformRuntimeSource(): string;
127
132
  export declare class EsbuildService {
128
133
  private vfs;
129
134
  private initialized;
130
135
  private initPromise;
131
136
  /** Resolved esbuild namespace — populated by ensureInit() after loadEsbuild(). */
132
137
  private _esbuild;
133
- constructor(vfs: SqliteVFS);
138
+ /** Build reads use only the caller-supplied view; omit it for transform-only use. */
139
+ constructor(vfs?: CredentialedVfs);
134
140
  /**
135
141
  * Initialize esbuild-wasm (lazy, on first use). Loads the namespace
136
142
  * via `loadEsbuild()` (which itself is deferred) and caches it on
@@ -201,18 +207,7 @@ export declare class EsbuildService {
201
207
  * This is bytes-stable for sources outside the TLA+ESM-imports
202
208
  * intersection.
203
209
  */
204
- transform(code: string, options?: {
205
- loader?: 'ts' | 'tsx' | 'jsx' | 'js' | 'css' | 'json';
206
- format?: 'esm' | 'cjs' | 'iife';
207
- target?: string;
208
- sourcemap?: boolean | 'inline' | 'external';
209
- minify?: boolean;
210
- jsx?: 'transform' | 'preserve' | 'automatic';
211
- jsxFactory?: string;
212
- jsxFragment?: string;
213
- tsconfigRaw?: string;
214
- define?: Record<string, string>;
215
- }): Promise<TransformResult>;
210
+ transform(code: string, options?: EsbuildTransformOptions): Promise<TransformResult>;
216
211
  /**
217
212
  * Bundle entry points from the VFS.
218
213
  */
@@ -232,9 +227,10 @@ export declare class EsbuildService {
232
227
  alias?: Record<string, string>;
233
228
  keepNames?: boolean;
234
229
  }): Promise<BuildResult>;
230
+ private requireVfs;
235
231
  /**
236
232
  * VFS resolver plugin for esbuild.
237
- * Reads directly from the SqliteVFS (synchronous, co-located — no snapshot needed).
233
+ * Reads through the caller's credentialed view (synchronous, no snapshot needed).
238
234
  * Handles: absolute paths, relative paths, bare specifiers (node_modules).
239
235
  */
240
236
  private makeVfsPlugin;
@@ -1 +1 @@
1
- {"version":3,"file":"esbuild-service.d.ts","sourceRoot":"","sources":["../../src/runtime/esbuild-service.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;;;;GAiBG;AAEH,OAAO,KAAK,EAAmB,SAAS,EAAE,MAAM,sBAAsB,CAAC;AAMvE;;;;;;;;;;;;;;;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