@veryfront/ext-content-mdx 0.1.1186 → 0.1.1189
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/esm/_dnt.polyfills.d.ts +6 -6
- package/esm/_dnt.polyfills.d.ts.map +1 -1
- package/esm/deno.d.ts +18 -0
- package/esm/deno.js +30 -9
- package/esm/src/config/defaults.d.ts +31 -24
- package/esm/src/config/defaults.d.ts.map +1 -1
- package/esm/src/config/defaults.js +25 -18
- package/esm/src/errors/diagnostic-policy.d.ts +35 -0
- package/esm/src/errors/diagnostic-policy.d.ts.map +1 -0
- package/esm/src/errors/diagnostic-policy.js +100 -0
- package/esm/src/errors/error-registry/boundary.d.ts +2 -0
- package/esm/src/errors/error-registry/boundary.d.ts.map +1 -1
- package/esm/src/errors/error-registry/boundary.js +8 -0
- package/esm/src/errors/error-registry/config.d.ts.map +1 -1
- package/esm/src/errors/error-registry/config.js +3 -3
- package/esm/src/errors/error-registry/deploy.js +1 -1
- package/esm/src/errors/error-registry/server.d.ts +2 -0
- package/esm/src/errors/error-registry/server.d.ts.map +1 -1
- package/esm/src/errors/error-registry/server.js +8 -0
- package/esm/src/errors/error-registry-helpers.d.ts +11 -2
- package/esm/src/errors/error-registry-helpers.d.ts.map +1 -1
- package/esm/src/errors/error-registry-helpers.js +70 -1
- package/esm/src/errors/error-registry.d.ts +85 -73
- package/esm/src/errors/error-registry.d.ts.map +1 -1
- package/esm/src/errors/error-registry.js +2 -14
- package/esm/src/errors/types.d.ts +44 -5
- package/esm/src/errors/types.d.ts.map +1 -1
- package/esm/src/errors/types.js +148 -24
- package/esm/src/errors/veryfront-error.d.ts +25 -2
- package/esm/src/errors/veryfront-error.d.ts.map +1 -1
- package/esm/src/errors/veryfront-error.js +638 -28
- package/esm/src/observability/limits.d.ts +20 -0
- package/esm/src/observability/limits.d.ts.map +1 -0
- package/esm/src/observability/limits.js +19 -0
- package/esm/src/observability/telemetry-error.d.ts +22 -0
- package/esm/src/observability/telemetry-error.d.ts.map +1 -0
- package/esm/src/observability/telemetry-error.js +377 -0
- package/esm/src/observability/tracing/api-shim.d.ts +39 -0
- package/esm/src/observability/tracing/api-shim.d.ts.map +1 -1
- package/esm/src/observability/tracing/api-shim.js +196 -69
- package/esm/src/observability/tracing/context-callback.d.ts +14 -0
- package/esm/src/observability/tracing/context-callback.d.ts.map +1 -0
- package/esm/src/observability/tracing/context-callback.js +111 -0
- package/esm/src/observability/tracing/otlp-setup.d.ts.map +1 -1
- package/esm/src/observability/tracing/otlp-setup.js +190 -46
- package/esm/src/platform/adapters/base.d.ts +51 -7
- package/esm/src/platform/adapters/base.d.ts.map +1 -1
- package/esm/src/platform/adapters/base.js +4 -2
- package/esm/src/platform/adapters/bounded-file-read.d.ts +9 -0
- package/esm/src/platform/adapters/bounded-file-read.d.ts.map +1 -1
- package/esm/src/platform/adapters/bounded-file-read.js +11 -5
- package/esm/src/platform/adapters/file-snapshot-error.d.ts +2 -0
- package/esm/src/platform/adapters/file-snapshot-error.d.ts.map +1 -1
- package/esm/src/platform/adapters/file-snapshot-error.js +2 -0
- package/esm/src/platform/adapters/file-system-capabilities.d.ts +74 -0
- package/esm/src/platform/adapters/file-system-capabilities.d.ts.map +1 -0
- package/esm/src/platform/adapters/file-system-capabilities.js +508 -0
- package/esm/src/platform/adapters/native-file-system-provenance.d.ts +6 -0
- package/esm/src/platform/adapters/native-file-system-provenance.d.ts.map +1 -0
- package/esm/src/platform/adapters/native-file-system-provenance.js +15 -0
- package/esm/src/platform/adapters/runtime/deno/filesystem-adapter.d.ts +45 -0
- package/esm/src/platform/adapters/runtime/deno/filesystem-adapter.d.ts.map +1 -0
- package/esm/src/platform/adapters/runtime/deno/filesystem-adapter.js +291 -0
- package/esm/src/platform/adapters/runtime/shared/node-filesystem-adapter.d.ts +71 -0
- package/esm/src/platform/adapters/runtime/shared/node-filesystem-adapter.d.ts.map +1 -0
- package/esm/src/platform/adapters/runtime/shared/node-filesystem-adapter.js +471 -0
- package/esm/src/platform/adapters/runtime/shared/shared-watcher.d.ts +16 -0
- package/esm/src/platform/adapters/runtime/shared/shared-watcher.d.ts.map +1 -0
- package/esm/src/platform/adapters/runtime/shared/shared-watcher.js +140 -0
- package/esm/src/platform/adapters/runtime/shared/temp-dir.d.ts +2 -0
- package/esm/src/platform/adapters/runtime/shared/temp-dir.d.ts.map +1 -0
- package/esm/src/platform/adapters/runtime/shared/temp-dir.js +10 -0
- package/esm/src/platform/adapters/runtime/shared/watcher-queue.d.ts +5 -0
- package/esm/src/platform/adapters/runtime/shared/watcher-queue.d.ts.map +1 -0
- package/esm/src/platform/adapters/runtime/shared/watcher-queue.js +75 -0
- package/esm/src/platform/compat/abort-signal.d.ts +20 -0
- package/esm/src/platform/compat/abort-signal.d.ts.map +1 -0
- package/esm/src/platform/compat/abort-signal.js +64 -0
- package/esm/src/platform/compat/constants.d.ts +2 -2
- package/esm/src/platform/compat/constants.d.ts.map +1 -1
- package/esm/src/platform/compat/constants.js +2 -2
- package/esm/src/platform/compat/error-introspection.d.ts +37 -0
- package/esm/src/platform/compat/error-introspection.d.ts.map +1 -0
- package/esm/src/platform/compat/error-introspection.js +258 -0
- package/esm/src/platform/compat/fs.d.ts +29 -8
- package/esm/src/platform/compat/fs.d.ts.map +1 -1
- package/esm/src/platform/compat/fs.js +123 -57
- package/esm/src/platform/compat/native-brand-checks.d.ts +14 -0
- package/esm/src/platform/compat/native-brand-checks.d.ts.map +1 -0
- package/esm/src/platform/compat/native-brand-checks.js +68 -0
- package/esm/src/platform/compat/not-found-error.d.ts +8 -3
- package/esm/src/platform/compat/not-found-error.d.ts.map +1 -1
- package/esm/src/platform/compat/not-found-error.js +164 -31
- package/esm/src/platform/compat/path/security.d.ts.map +1 -1
- package/esm/src/platform/compat/path/security.js +3 -5
- package/esm/src/platform/compat/process/command.d.ts +24 -1
- package/esm/src/platform/compat/process/command.d.ts.map +1 -1
- package/esm/src/platform/compat/process/command.js +393 -78
- package/esm/src/platform/compat/process/env.d.ts +11 -0
- package/esm/src/platform/compat/process/env.d.ts.map +1 -1
- package/esm/src/platform/compat/process/env.js +28 -38
- package/esm/src/platform/compat/process/global-error.d.ts +19 -0
- package/esm/src/platform/compat/process/global-error.d.ts.map +1 -0
- package/esm/src/platform/compat/process/global-error.js +57 -0
- package/esm/src/platform/compat/process/lifecycle.d.ts +10 -3
- package/esm/src/platform/compat/process/lifecycle.d.ts.map +1 -1
- package/esm/src/platform/compat/process/lifecycle.js +74 -23
- package/esm/src/platform/compat/process/project-env-contract.d.ts +19 -0
- package/esm/src/platform/compat/process/project-env-contract.d.ts.map +1 -0
- package/esm/src/platform/compat/process/project-env-contract.js +19 -0
- package/esm/src/platform/compat/runtime.d.ts +14 -5
- package/esm/src/platform/compat/runtime.d.ts.map +1 -1
- package/esm/src/platform/compat/runtime.js +34 -9
- package/esm/src/platform/compat/std/front-matter-yaml.d.ts +12 -0
- package/esm/src/platform/compat/std/front-matter-yaml.d.ts.map +1 -1
- package/esm/src/platform/compat/std/front-matter-yaml.js +35 -3
- package/esm/src/platform/compat/temp-directory-prefix.d.ts +8 -0
- package/esm/src/platform/compat/temp-directory-prefix.d.ts.map +1 -0
- package/esm/src/platform/compat/temp-directory-prefix.js +15 -0
- package/esm/src/utils/abort.d.ts +10 -0
- package/esm/src/utils/abort.d.ts.map +1 -0
- package/esm/src/utils/abort.js +35 -0
- package/esm/src/utils/constants/build.d.ts +3 -0
- package/esm/src/utils/constants/build.d.ts.map +1 -1
- package/esm/src/utils/constants/build.js +5 -1
- package/esm/src/utils/constants/cache.d.ts +21 -0
- package/esm/src/utils/constants/cache.d.ts.map +1 -1
- package/esm/src/utils/constants/cache.js +101 -39
- package/esm/src/utils/constants/css.d.ts +20 -0
- package/esm/src/utils/constants/css.d.ts.map +1 -0
- package/esm/src/utils/constants/css.js +19 -0
- package/esm/src/utils/constants/limits.d.ts +4 -0
- package/esm/src/utils/constants/limits.d.ts.map +1 -1
- package/esm/src/utils/constants/limits.js +4 -0
- package/esm/src/utils/constants/project-identity.d.ts +5 -0
- package/esm/src/utils/constants/project-identity.d.ts.map +1 -0
- package/esm/src/utils/constants/project-identity.js +4 -0
- package/esm/src/utils/constants/retry.d.ts +18 -0
- package/esm/src/utils/constants/retry.d.ts.map +1 -1
- package/esm/src/utils/constants/retry.js +18 -0
- package/esm/src/utils/constants/security.d.ts +4 -0
- package/esm/src/utils/constants/security.d.ts.map +1 -1
- package/esm/src/utils/constants/security.js +4 -0
- package/esm/src/utils/index.d.ts +3 -1
- package/esm/src/utils/index.d.ts.map +1 -1
- package/esm/src/utils/index.js +3 -1
- package/esm/src/utils/logger/core.d.ts +5 -0
- package/esm/src/utils/logger/core.d.ts.map +1 -1
- package/esm/src/utils/logger/core.js +67 -2
- package/esm/src/utils/logger/redact.d.ts +36 -13
- package/esm/src/utils/logger/redact.d.ts.map +1 -1
- package/esm/src/utils/logger/redact.js +573 -83
- package/esm/src/utils/parallel.d.ts.map +1 -1
- package/esm/src/utils/parallel.js +11 -1
- package/esm/src/utils/project-identity.d.ts +11 -0
- package/esm/src/utils/project-identity.d.ts.map +1 -0
- package/esm/src/utils/project-identity.js +69 -0
- package/esm/src/utils/version-constant.d.ts +1 -1
- package/esm/src/utils/version-constant.js +1 -1
- package/package.json +3 -3
- package/esm/src/platform/adapters/runtime/shared/native-file-capabilities.d.ts +0 -33
- package/esm/src/platform/adapters/runtime/shared/native-file-capabilities.d.ts.map +0 -1
- package/esm/src/platform/adapters/runtime/shared/native-file-capabilities.js +0 -205
|
@@ -0,0 +1,75 @@
|
|
|
1
|
+
export function createWatcherIterator(eventQueue, setResolver, isClosed, isAborted) {
|
|
2
|
+
let pendingResolve = null;
|
|
3
|
+
function isDone() {
|
|
4
|
+
return isClosed() || isAborted();
|
|
5
|
+
}
|
|
6
|
+
const doneResult = { done: true, value: undefined };
|
|
7
|
+
return {
|
|
8
|
+
next() {
|
|
9
|
+
if (isDone())
|
|
10
|
+
return Promise.resolve(doneResult);
|
|
11
|
+
const event = eventQueue.shift();
|
|
12
|
+
if (event)
|
|
13
|
+
return Promise.resolve({ done: false, value: event });
|
|
14
|
+
if (pendingResolve) {
|
|
15
|
+
return Promise.reject(new TypeError("FileWatcher does not support concurrent next() calls"));
|
|
16
|
+
}
|
|
17
|
+
return new Promise((resolve) => {
|
|
18
|
+
if (isDone()) {
|
|
19
|
+
resolve(doneResult);
|
|
20
|
+
return;
|
|
21
|
+
}
|
|
22
|
+
pendingResolve = resolve;
|
|
23
|
+
setResolver((result) => {
|
|
24
|
+
pendingResolve = null;
|
|
25
|
+
resolve(result);
|
|
26
|
+
});
|
|
27
|
+
});
|
|
28
|
+
},
|
|
29
|
+
return() {
|
|
30
|
+
setResolver(null);
|
|
31
|
+
pendingResolve?.(doneResult);
|
|
32
|
+
pendingResolve = null;
|
|
33
|
+
return Promise.resolve(doneResult);
|
|
34
|
+
},
|
|
35
|
+
};
|
|
36
|
+
}
|
|
37
|
+
export function enqueueWatchEvent(event, eventQueue, getResolver, setResolver) {
|
|
38
|
+
const resolver = getResolver();
|
|
39
|
+
if (!resolver) {
|
|
40
|
+
eventQueue.push(event);
|
|
41
|
+
return;
|
|
42
|
+
}
|
|
43
|
+
setResolver(null);
|
|
44
|
+
resolver({ done: false, value: event });
|
|
45
|
+
}
|
|
46
|
+
export function createFileWatcher(iterator, cleanup) {
|
|
47
|
+
let closed = false;
|
|
48
|
+
const cleanupOnce = () => {
|
|
49
|
+
if (closed)
|
|
50
|
+
return;
|
|
51
|
+
closed = true;
|
|
52
|
+
cleanup();
|
|
53
|
+
};
|
|
54
|
+
const wrappedIterator = {
|
|
55
|
+
next: () => iterator.next(),
|
|
56
|
+
async return(value) {
|
|
57
|
+
cleanupOnce();
|
|
58
|
+
if (iterator.return)
|
|
59
|
+
return await iterator.return(value);
|
|
60
|
+
return { done: true, value: undefined };
|
|
61
|
+
},
|
|
62
|
+
async throw(error) {
|
|
63
|
+
cleanupOnce();
|
|
64
|
+
if (iterator.throw)
|
|
65
|
+
return await iterator.throw(error);
|
|
66
|
+
throw error;
|
|
67
|
+
},
|
|
68
|
+
};
|
|
69
|
+
return {
|
|
70
|
+
[Symbol.asyncIterator]() {
|
|
71
|
+
return wrappedIterator;
|
|
72
|
+
},
|
|
73
|
+
close: cleanupOnce,
|
|
74
|
+
};
|
|
75
|
+
}
|
|
@@ -0,0 +1,20 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Captured AbortSignal operations for hostile JavaScript boundaries.
|
|
3
|
+
*
|
|
4
|
+
* Callers can shadow instance properties or mutate public prototypes after
|
|
5
|
+
* module initialization. These helpers validate the native brand and dispatch
|
|
6
|
+
* through captured intrinsics so cancellation cannot execute those hooks.
|
|
7
|
+
*
|
|
8
|
+
* @module
|
|
9
|
+
*/
|
|
10
|
+
/** Test the native AbortSignal brand without reading overridable properties. */
|
|
11
|
+
export declare function isAbortSignalWithoutHooks(value: unknown): value is AbortSignal;
|
|
12
|
+
/** Read cancellation state through the captured native getter. */
|
|
13
|
+
export declare function isAbortSignalAborted(signal: AbortSignal): boolean;
|
|
14
|
+
/** Read the native cancellation reason without consulting an own accessor. */
|
|
15
|
+
export declare function getAbortSignalReason(signal: AbortSignal): unknown;
|
|
16
|
+
/** Attach one native abort listener without consulting instance methods. */
|
|
17
|
+
export declare function addAbortSignalListenerOnce(signal: AbortSignal, listener: () => void): void;
|
|
18
|
+
/** Remove a native abort listener without consulting instance methods. */
|
|
19
|
+
export declare function removeAbortSignalListener(signal: AbortSignal, listener: () => void): void;
|
|
20
|
+
//# sourceMappingURL=abort-signal.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"abort-signal.d.ts","sourceRoot":"","sources":["../../../../src/src/platform/compat/abort-signal.ts"],"names":[],"mappings":"AAAA;;;;;;;;GAQG;AA8BH,gFAAgF;AAChF,wBAAgB,yBAAyB,CAAC,KAAK,EAAE,OAAO,GAAG,KAAK,IAAI,WAAW,CAc9E;AAED,kEAAkE;AAClE,wBAAgB,oBAAoB,CAAC,MAAM,EAAE,WAAW,GAAG,OAAO,CAKjE;AAED,8EAA8E;AAC9E,wBAAgB,oBAAoB,CAAC,MAAM,EAAE,WAAW,GAAG,OAAO,CAGjE;AAED,4EAA4E;AAC5E,wBAAgB,0BAA0B,CACxC,MAAM,EAAE,WAAW,EACnB,QAAQ,EAAE,MAAM,IAAI,GACnB,IAAI,CAEN;AAED,0EAA0E;AAC1E,wBAAgB,yBAAyB,CACvC,MAAM,EAAE,WAAW,EACnB,QAAQ,EAAE,MAAM,IAAI,GACnB,IAAI,CAEN"}
|
|
@@ -0,0 +1,64 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Captured AbortSignal operations for hostile JavaScript boundaries.
|
|
3
|
+
*
|
|
4
|
+
* Callers can shadow instance properties or mutate public prototypes after
|
|
5
|
+
* module initialization. These helpers validate the native brand and dispatch
|
|
6
|
+
* through captured intrinsics so cancellation cannot execute those hooks.
|
|
7
|
+
*
|
|
8
|
+
* @module
|
|
9
|
+
*/
|
|
10
|
+
import { isProxyWithoutHooks } from "./error-introspection.js";
|
|
11
|
+
const apply = Reflect.apply;
|
|
12
|
+
const createObject = Object.create;
|
|
13
|
+
const defineOwnProperty = Object.defineProperty;
|
|
14
|
+
const freeze = Object.freeze;
|
|
15
|
+
const getOwnPropertyDescriptor = Object.getOwnPropertyDescriptor;
|
|
16
|
+
const NativeTypeError = TypeError;
|
|
17
|
+
const abortSignalAbortedGetter = getOwnPropertyDescriptor(AbortSignal.prototype, "aborted")?.get;
|
|
18
|
+
const abortSignalReasonGetter = getOwnPropertyDescriptor(AbortSignal.prototype, "reason")?.get;
|
|
19
|
+
const eventTargetAddEventListener = EventTarget.prototype.addEventListener;
|
|
20
|
+
const eventTargetRemoveEventListener = EventTarget.prototype.removeEventListener;
|
|
21
|
+
const onceOptions = createObject(null);
|
|
22
|
+
defineOwnProperty(onceOptions, "once", {
|
|
23
|
+
configurable: false,
|
|
24
|
+
enumerable: true,
|
|
25
|
+
value: true,
|
|
26
|
+
writable: false,
|
|
27
|
+
});
|
|
28
|
+
freeze(onceOptions);
|
|
29
|
+
/** Test the native AbortSignal brand without reading overridable properties. */
|
|
30
|
+
export function isAbortSignalWithoutHooks(value) {
|
|
31
|
+
if (value === null ||
|
|
32
|
+
(typeof value !== "object" && typeof value !== "function") ||
|
|
33
|
+
isProxyWithoutHooks(value) ||
|
|
34
|
+
typeof abortSignalAbortedGetter !== "function") {
|
|
35
|
+
return false;
|
|
36
|
+
}
|
|
37
|
+
try {
|
|
38
|
+
return typeof apply(abortSignalAbortedGetter, value, []) === "boolean";
|
|
39
|
+
}
|
|
40
|
+
catch {
|
|
41
|
+
return false;
|
|
42
|
+
}
|
|
43
|
+
}
|
|
44
|
+
/** Read cancellation state through the captured native getter. */
|
|
45
|
+
export function isAbortSignalAborted(signal) {
|
|
46
|
+
if (typeof abortSignalAbortedGetter !== "function") {
|
|
47
|
+
throw new NativeTypeError("AbortSignal is unavailable in this runtime");
|
|
48
|
+
}
|
|
49
|
+
return apply(abortSignalAbortedGetter, signal, []);
|
|
50
|
+
}
|
|
51
|
+
/** Read the native cancellation reason without consulting an own accessor. */
|
|
52
|
+
export function getAbortSignalReason(signal) {
|
|
53
|
+
if (typeof abortSignalReasonGetter !== "function")
|
|
54
|
+
return undefined;
|
|
55
|
+
return apply(abortSignalReasonGetter, signal, []);
|
|
56
|
+
}
|
|
57
|
+
/** Attach one native abort listener without consulting instance methods. */
|
|
58
|
+
export function addAbortSignalListenerOnce(signal, listener) {
|
|
59
|
+
apply(eventTargetAddEventListener, signal, ["abort", listener, onceOptions]);
|
|
60
|
+
}
|
|
61
|
+
/** Remove a native abort listener without consulting instance methods. */
|
|
62
|
+
export function removeAbortSignalListener(signal, listener) {
|
|
63
|
+
apply(eventTargetRemoveEventListener, signal, ["abort", listener]);
|
|
64
|
+
}
|
|
@@ -5,9 +5,9 @@
|
|
|
5
5
|
* Note: config/defaults.ts re-exports DEFAULT_PORT for higher layers.
|
|
6
6
|
*/
|
|
7
7
|
export declare const DEFAULT_PORT = 3000;
|
|
8
|
-
export declare const LOCALHOST: {
|
|
8
|
+
export declare const LOCALHOST: Readonly<{
|
|
9
9
|
readonly IPV4: "127.0.0.1";
|
|
10
10
|
readonly IPV6: "::1";
|
|
11
11
|
readonly HOSTNAME: "localhost";
|
|
12
|
-
}
|
|
12
|
+
}>;
|
|
13
13
|
//# sourceMappingURL=constants.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"constants.d.ts","sourceRoot":"","sources":["../../../../src/src/platform/compat/constants.ts"],"names":[],"mappings":"AAAA;;;;;GAKG;AAEH,eAAO,MAAM,YAAY,OAAO,CAAC;AAEjC,eAAO,MAAM,SAAS;;;;
|
|
1
|
+
{"version":3,"file":"constants.d.ts","sourceRoot":"","sources":["../../../../src/src/platform/compat/constants.ts"],"names":[],"mappings":"AAAA;;;;;GAKG;AAEH,eAAO,MAAM,YAAY,OAAO,CAAC;AAEjC,eAAO,MAAM,SAAS;;;;EAMrB,CAAC"}
|
|
@@ -0,0 +1,37 @@
|
|
|
1
|
+
/** True when own stack descriptors can be inspected without formatting them. */
|
|
2
|
+
export declare const canInspectErrorStackDescriptorWithoutHooks: boolean;
|
|
3
|
+
/**
|
|
4
|
+
* Read a native Error's stack without letting project code observe the read.
|
|
5
|
+
*
|
|
6
|
+
* Data-valued stacks are returned directly. An accessor is only invoked when it
|
|
7
|
+
* is the runtime's own getter, and then only with `Error.prepareStackTrace`
|
|
8
|
+
* shadowed; any other accessor fails closed rather than running foreign code.
|
|
9
|
+
*
|
|
10
|
+
* Materializing a lazy stack makes the runtime format the error header, which
|
|
11
|
+
* reads `name` and `message`. Both must therefore resolve to data properties,
|
|
12
|
+
* or the read is skipped rather than allowed to trigger a project accessor.
|
|
13
|
+
*/
|
|
14
|
+
export declare function readNativeErrorStackWithoutHooks(error: Error): string | undefined;
|
|
15
|
+
/**
|
|
16
|
+
* Identify native Error values without evaluating project-owned Proxy traps.
|
|
17
|
+
*/
|
|
18
|
+
export declare function isNativeErrorWithoutHooks(value: unknown): value is Error;
|
|
19
|
+
/**
|
|
20
|
+
* Read a native Error's display name without executing instance, prototype, or
|
|
21
|
+
* constructor accessors. Custom subclasses use their own data-valued
|
|
22
|
+
* prototype name or constructor name; unreadable/exotic shapes fail closed.
|
|
23
|
+
*/
|
|
24
|
+
export declare function readNativeErrorNameWithoutHooks(error: Error): string;
|
|
25
|
+
/** Identify a Proxy without evaluating any trap on the proxied value. */
|
|
26
|
+
export declare function isProxyWithoutHooks(value: unknown): boolean;
|
|
27
|
+
/** Identify a genuine Uint8Array without evaluating project-owned hooks. */
|
|
28
|
+
export declare function isUint8ArrayWithoutHooks(value: unknown): value is Uint8Array;
|
|
29
|
+
/** Identify a genuine Promise across realms without reading instance fields. */
|
|
30
|
+
export declare function isNativePromiseWithoutHooks(value: unknown): value is Promise<unknown>;
|
|
31
|
+
/**
|
|
32
|
+
* Identify native and bound async functions across realms without invoking
|
|
33
|
+
* project hooks. The descriptor fallback is deliberately conservative because
|
|
34
|
+
* runtime brand checks do not recognize bound async functions.
|
|
35
|
+
*/
|
|
36
|
+
export declare function isNativeAsyncFunctionWithoutHooks(value: unknown): value is (...args: unknown[]) => Promise<unknown>;
|
|
37
|
+
//# sourceMappingURL=error-introspection.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"error-introspection.d.ts","sourceRoot":"","sources":["../../../../src/src/platform/compat/error-introspection.ts"],"names":[],"mappings":"AA2HA,gFAAgF;AAChF,eAAO,MAAM,0CAA0C,SAA0C,CAAC;AAgClG;;;;;;;;;;GAUG;AACH,wBAAgB,gCAAgC,CAAC,KAAK,EAAE,KAAK,GAAG,MAAM,GAAG,SAAS,CAuBjF;AAED;;GAEG;AACH,wBAAgB,yBAAyB,CAAC,KAAK,EAAE,OAAO,GAAG,KAAK,IAAI,KAAK,CAExE;AA6BD;;;;GAIG;AACH,wBAAgB,+BAA+B,CAAC,KAAK,EAAE,KAAK,GAAG,MAAM,CAkBpE;AAED,yEAAyE;AACzE,wBAAgB,mBAAmB,CAAC,KAAK,EAAE,OAAO,GAAG,OAAO,CAE3D;AAED,4EAA4E;AAC5E,wBAAgB,wBAAwB,CAAC,KAAK,EAAE,OAAO,GAAG,KAAK,IAAI,UAAU,CAE5E;AAED,gFAAgF;AAChF,wBAAgB,2BAA2B,CACzC,KAAK,EAAE,OAAO,GACb,KAAK,IAAI,OAAO,CAAC,OAAO,CAAC,CAE3B;AAED;;;;GAIG;AACH,wBAAgB,iCAAiC,CAC/C,KAAK,EAAE,OAAO,GACb,KAAK,IAAI,CAAC,GAAG,IAAI,EAAE,OAAO,EAAE,KAAK,OAAO,CAAC,OAAO,CAAC,CAgBnD"}
|
|
@@ -0,0 +1,258 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Runtime-compatible, no-hook value introspection.
|
|
3
|
+
*
|
|
4
|
+
* Node-compatible hosts expose internal-slot checks that do not consult
|
|
5
|
+
* mutable global constructors. Browser and edge imports must remain linkable
|
|
6
|
+
* even though those hosts do not provide `node:util/types`.
|
|
7
|
+
*/
|
|
8
|
+
import { nativeBrandChecks } from "./native-brand-checks.js";
|
|
9
|
+
const createObject = Object.create;
|
|
10
|
+
const defineProperty = Object.defineProperty;
|
|
11
|
+
const getOwnPropertyDescriptor = Object.getOwnPropertyDescriptor;
|
|
12
|
+
const getPrototypeOf = Object.getPrototypeOf;
|
|
13
|
+
const objectHasOwnProperty = Object.prototype.hasOwnProperty;
|
|
14
|
+
const deleteProperty = Reflect.deleteProperty;
|
|
15
|
+
const apply = Reflect.apply;
|
|
16
|
+
const NativeError = Error;
|
|
17
|
+
const NativeAsyncFunctionPrototype = getPrototypeOf(async function () { });
|
|
18
|
+
const toStringTagSymbol = Symbol.toStringTag;
|
|
19
|
+
const unavailableBrandCheck = (_value) => false;
|
|
20
|
+
const nativeAsyncFunctionBrandCheck = nativeBrandChecks?.isAsyncFunction ?? unavailableBrandCheck;
|
|
21
|
+
const nativeErrorBrandCheck = nativeBrandChecks?.isNativeError ?? unavailableBrandCheck;
|
|
22
|
+
const nativePromiseBrandCheck = nativeBrandChecks?.isPromise ?? unavailableBrandCheck;
|
|
23
|
+
const nativeProxyBrandCheck = nativeBrandChecks?.isProxy ?? unavailableBrandCheck;
|
|
24
|
+
const nativeUint8ArrayBrandCheck = nativeBrandChecks?.isUint8Array ?? unavailableBrandCheck;
|
|
25
|
+
function hasOwn(object, key) {
|
|
26
|
+
return apply(objectHasOwnProperty, object, [key]);
|
|
27
|
+
}
|
|
28
|
+
function createDataDescriptor(value) {
|
|
29
|
+
const descriptor = createObject(null);
|
|
30
|
+
descriptor.configurable = true;
|
|
31
|
+
descriptor.enumerable = false;
|
|
32
|
+
descriptor.value = value;
|
|
33
|
+
descriptor.writable = true;
|
|
34
|
+
return descriptor;
|
|
35
|
+
}
|
|
36
|
+
function clonePropertyDescriptor(descriptor) {
|
|
37
|
+
const clone = createObject(null);
|
|
38
|
+
for (const key of [
|
|
39
|
+
"configurable",
|
|
40
|
+
"enumerable",
|
|
41
|
+
"get",
|
|
42
|
+
"set",
|
|
43
|
+
"value",
|
|
44
|
+
"writable",
|
|
45
|
+
]) {
|
|
46
|
+
if (hasOwn(descriptor, key))
|
|
47
|
+
clone[key] = descriptor[key];
|
|
48
|
+
}
|
|
49
|
+
return clone;
|
|
50
|
+
}
|
|
51
|
+
/**
|
|
52
|
+
* Run `read` while an own `prepareStackTrace` data property shadows both own
|
|
53
|
+
* and inherited project hooks, so no user formatter observes or rewrites a
|
|
54
|
+
* stack the runtime materializes. The original descriptor is restored before
|
|
55
|
+
* returning. `restored` reports whether the shadow was removed again.
|
|
56
|
+
*/
|
|
57
|
+
function withShadowedStackFormatter(read) {
|
|
58
|
+
let originalFormatter;
|
|
59
|
+
try {
|
|
60
|
+
const descriptor = getOwnPropertyDescriptor(NativeError, "prepareStackTrace");
|
|
61
|
+
originalFormatter = descriptor ? clonePropertyDescriptor(descriptor) : undefined;
|
|
62
|
+
}
|
|
63
|
+
catch (_) {
|
|
64
|
+
return { value: undefined, restored: false };
|
|
65
|
+
}
|
|
66
|
+
let installed = false;
|
|
67
|
+
let restored = false;
|
|
68
|
+
let value;
|
|
69
|
+
try {
|
|
70
|
+
defineProperty(NativeError, "prepareStackTrace", createDataDescriptor(undefined));
|
|
71
|
+
installed = true;
|
|
72
|
+
value = read();
|
|
73
|
+
}
|
|
74
|
+
catch (_) {
|
|
75
|
+
// A non-configurable formatter or hostile runtime disables stack capture.
|
|
76
|
+
}
|
|
77
|
+
finally {
|
|
78
|
+
if (installed) {
|
|
79
|
+
try {
|
|
80
|
+
restored = originalFormatter
|
|
81
|
+
? (defineProperty(NativeError, "prepareStackTrace", originalFormatter), true)
|
|
82
|
+
: deleteProperty(NativeError, "prepareStackTrace");
|
|
83
|
+
}
|
|
84
|
+
catch (_) {
|
|
85
|
+
restored = false;
|
|
86
|
+
}
|
|
87
|
+
}
|
|
88
|
+
}
|
|
89
|
+
return { value, restored };
|
|
90
|
+
}
|
|
91
|
+
/**
|
|
92
|
+
* Probe the runtime's actual stack-descriptor behavior without trusting a
|
|
93
|
+
* mutable version or feature flag, and capture the runtime's own stack getter.
|
|
94
|
+
*
|
|
95
|
+
* The getter is shared by every error the runtime creates, so its identity is
|
|
96
|
+
* what later distinguishes a runtime-installed accessor from one an attacker
|
|
97
|
+
* or an instrumentation layer defined on a specific error.
|
|
98
|
+
*/
|
|
99
|
+
function detectNativeErrorStackGetter() {
|
|
100
|
+
const probe = withShadowedStackFormatter(() => getOwnPropertyDescriptor(new NativeError(), "stack"));
|
|
101
|
+
const stackDescriptor = probe.value;
|
|
102
|
+
if (!probe.restored || !stackDescriptor || !hasOwn(stackDescriptor, "get")) {
|
|
103
|
+
return undefined;
|
|
104
|
+
}
|
|
105
|
+
const getter = stackDescriptor.get;
|
|
106
|
+
return typeof getter === "function" ? getter : undefined;
|
|
107
|
+
}
|
|
108
|
+
const NATIVE_ERROR_STACK_GETTER = detectNativeErrorStackGetter();
|
|
109
|
+
/** True when own stack descriptors can be inspected without formatting them. */
|
|
110
|
+
export const canInspectErrorStackDescriptorWithoutHooks = NATIVE_ERROR_STACK_GETTER !== undefined;
|
|
111
|
+
const MAX_ERROR_PROTOTYPE_CHAIN_DEPTH = 100;
|
|
112
|
+
/**
|
|
113
|
+
* True when `key` is absent or resolves to a data property across the whole
|
|
114
|
+
* prototype chain, so the runtime can read it without running project code.
|
|
115
|
+
*/
|
|
116
|
+
function resolvesWithoutAccessor(value, key) {
|
|
117
|
+
let current = value;
|
|
118
|
+
for (let depth = 0; current !== null && depth < MAX_ERROR_PROTOTYPE_CHAIN_DEPTH; depth++) {
|
|
119
|
+
if (nativeProxyBrandCheck(current))
|
|
120
|
+
return false;
|
|
121
|
+
let descriptor;
|
|
122
|
+
try {
|
|
123
|
+
descriptor = getOwnPropertyDescriptor(current, key);
|
|
124
|
+
}
|
|
125
|
+
catch (_) {
|
|
126
|
+
return false;
|
|
127
|
+
}
|
|
128
|
+
if (descriptor)
|
|
129
|
+
return hasOwn(descriptor, "value");
|
|
130
|
+
try {
|
|
131
|
+
current = getPrototypeOf(current);
|
|
132
|
+
}
|
|
133
|
+
catch (_) {
|
|
134
|
+
return false;
|
|
135
|
+
}
|
|
136
|
+
}
|
|
137
|
+
return current === null;
|
|
138
|
+
}
|
|
139
|
+
/**
|
|
140
|
+
* Read a native Error's stack without letting project code observe the read.
|
|
141
|
+
*
|
|
142
|
+
* Data-valued stacks are returned directly. An accessor is only invoked when it
|
|
143
|
+
* is the runtime's own getter, and then only with `Error.prepareStackTrace`
|
|
144
|
+
* shadowed; any other accessor fails closed rather than running foreign code.
|
|
145
|
+
*
|
|
146
|
+
* Materializing a lazy stack makes the runtime format the error header, which
|
|
147
|
+
* reads `name` and `message`. Both must therefore resolve to data properties,
|
|
148
|
+
* or the read is skipped rather than allowed to trigger a project accessor.
|
|
149
|
+
*/
|
|
150
|
+
export function readNativeErrorStackWithoutHooks(error) {
|
|
151
|
+
if (!NATIVE_ERROR_STACK_GETTER)
|
|
152
|
+
return undefined;
|
|
153
|
+
let descriptor;
|
|
154
|
+
try {
|
|
155
|
+
descriptor = getOwnPropertyDescriptor(error, "stack");
|
|
156
|
+
}
|
|
157
|
+
catch (_) {
|
|
158
|
+
return undefined;
|
|
159
|
+
}
|
|
160
|
+
if (!descriptor)
|
|
161
|
+
return undefined;
|
|
162
|
+
if (hasOwn(descriptor, "value")) {
|
|
163
|
+
return typeof descriptor.value === "string" ? descriptor.value : undefined;
|
|
164
|
+
}
|
|
165
|
+
if (descriptor.get !== NATIVE_ERROR_STACK_GETTER)
|
|
166
|
+
return undefined;
|
|
167
|
+
if (!resolvesWithoutAccessor(error, "message") ||
|
|
168
|
+
!resolvesWithoutAccessor(error, "name")) {
|
|
169
|
+
return undefined;
|
|
170
|
+
}
|
|
171
|
+
const stack = withShadowedStackFormatter(() => apply(NATIVE_ERROR_STACK_GETTER, error, [])).value;
|
|
172
|
+
return typeof stack === "string" ? stack : undefined;
|
|
173
|
+
}
|
|
174
|
+
/**
|
|
175
|
+
* Identify native Error values without evaluating project-owned Proxy traps.
|
|
176
|
+
*/
|
|
177
|
+
export function isNativeErrorWithoutHooks(value) {
|
|
178
|
+
return nativeErrorBrandCheck(value);
|
|
179
|
+
}
|
|
180
|
+
function readOwnDataString(value, key) {
|
|
181
|
+
const descriptor = getOwnPropertyDescriptor(value, key);
|
|
182
|
+
if (!descriptor || !hasOwn(descriptor, "value"))
|
|
183
|
+
return undefined;
|
|
184
|
+
return typeof descriptor.value === "string" && descriptor.value ? descriptor.value : undefined;
|
|
185
|
+
}
|
|
186
|
+
function readCustomErrorConstructorName(prototype) {
|
|
187
|
+
const constructorDescriptor = getOwnPropertyDescriptor(prototype, "constructor");
|
|
188
|
+
if (!constructorDescriptor ||
|
|
189
|
+
!hasOwn(constructorDescriptor, "value") ||
|
|
190
|
+
typeof constructorDescriptor.value !== "function" ||
|
|
191
|
+
nativeProxyBrandCheck(constructorDescriptor.value)) {
|
|
192
|
+
return undefined;
|
|
193
|
+
}
|
|
194
|
+
return readOwnDataString(constructorDescriptor.value, "name");
|
|
195
|
+
}
|
|
196
|
+
/**
|
|
197
|
+
* Read a native Error's display name without executing instance, prototype, or
|
|
198
|
+
* constructor accessors. Custom subclasses use their own data-valued
|
|
199
|
+
* prototype name or constructor name; unreadable/exotic shapes fail closed.
|
|
200
|
+
*/
|
|
201
|
+
export function readNativeErrorNameWithoutHooks(error) {
|
|
202
|
+
try {
|
|
203
|
+
const ownNameDescriptor = getOwnPropertyDescriptor(error, "name");
|
|
204
|
+
if (ownNameDescriptor) {
|
|
205
|
+
if (!hasOwn(ownNameDescriptor, "value"))
|
|
206
|
+
return "Error";
|
|
207
|
+
return typeof ownNameDescriptor.value === "string" && ownNameDescriptor.value
|
|
208
|
+
? ownNameDescriptor.value
|
|
209
|
+
: "Error";
|
|
210
|
+
}
|
|
211
|
+
const prototype = getPrototypeOf(error);
|
|
212
|
+
if (prototype === null || nativeProxyBrandCheck(prototype))
|
|
213
|
+
return "Error";
|
|
214
|
+
return readOwnDataString(prototype, "name") ??
|
|
215
|
+
readCustomErrorConstructorName(prototype) ??
|
|
216
|
+
"Error";
|
|
217
|
+
}
|
|
218
|
+
catch (_) {
|
|
219
|
+
return "Error";
|
|
220
|
+
}
|
|
221
|
+
}
|
|
222
|
+
/** Identify a Proxy without evaluating any trap on the proxied value. */
|
|
223
|
+
export function isProxyWithoutHooks(value) {
|
|
224
|
+
return nativeProxyBrandCheck(value);
|
|
225
|
+
}
|
|
226
|
+
/** Identify a genuine Uint8Array without evaluating project-owned hooks. */
|
|
227
|
+
export function isUint8ArrayWithoutHooks(value) {
|
|
228
|
+
return nativeUint8ArrayBrandCheck(value);
|
|
229
|
+
}
|
|
230
|
+
/** Identify a genuine Promise across realms without reading instance fields. */
|
|
231
|
+
export function isNativePromiseWithoutHooks(value) {
|
|
232
|
+
return nativePromiseBrandCheck(value);
|
|
233
|
+
}
|
|
234
|
+
/**
|
|
235
|
+
* Identify native and bound async functions across realms without invoking
|
|
236
|
+
* project hooks. The descriptor fallback is deliberately conservative because
|
|
237
|
+
* runtime brand checks do not recognize bound async functions.
|
|
238
|
+
*/
|
|
239
|
+
export function isNativeAsyncFunctionWithoutHooks(value) {
|
|
240
|
+
if (nativeAsyncFunctionBrandCheck(value))
|
|
241
|
+
return true;
|
|
242
|
+
if (typeof value !== "function" || nativeProxyBrandCheck(value))
|
|
243
|
+
return false;
|
|
244
|
+
try {
|
|
245
|
+
const prototype = getPrototypeOf(value);
|
|
246
|
+
if (prototype === NativeAsyncFunctionPrototype)
|
|
247
|
+
return true;
|
|
248
|
+
if (prototype === null || nativeProxyBrandCheck(prototype))
|
|
249
|
+
return false;
|
|
250
|
+
const tag = getOwnPropertyDescriptor(prototype, toStringTagSymbol);
|
|
251
|
+
return tag !== undefined &&
|
|
252
|
+
hasOwn(tag, "value") &&
|
|
253
|
+
tag.value === "AsyncFunction";
|
|
254
|
+
}
|
|
255
|
+
catch (_) {
|
|
256
|
+
return false;
|
|
257
|
+
}
|
|
258
|
+
}
|
|
@@ -1,15 +1,27 @@
|
|
|
1
1
|
import type { FileInfo } from "../adapters/base.js";
|
|
2
|
-
|
|
3
|
-
|
|
2
|
+
import { isNotFoundError } from "./not-found-error.js";
|
|
3
|
+
export { isNotFoundError };
|
|
4
|
+
/** Stable native identity for one filesystem object. */
|
|
5
|
+
export interface PathIdentity {
|
|
6
|
+
readonly device: string;
|
|
7
|
+
readonly inode: string;
|
|
8
|
+
}
|
|
9
|
+
/**
|
|
10
|
+
* Runtime-neutral filesystem contract.
|
|
11
|
+
*
|
|
12
|
+
* Operations reject filesystem failures. Callers that intentionally tolerate a
|
|
13
|
+
* missing path can classify the rejection with {@link isNotFoundError}.
|
|
14
|
+
*/
|
|
4
15
|
export interface FileSystem {
|
|
5
16
|
readTextFile(path: string): Promise<string>;
|
|
6
17
|
readFile(path: string): Promise<Uint8Array>;
|
|
18
|
+
/** Exact bounded binary read; implementations must reject oversized files before materializing them. */
|
|
7
19
|
readFileBytesWithinLimit?(path: string, byteLimit: number): Promise<Uint8Array>;
|
|
8
20
|
readFileSnapshotWithinLimit?(path: string, containmentRoot: string, byteLimit: number): Promise<Uint8Array>;
|
|
9
21
|
writeTextFile(path: string, data: string): Promise<void>;
|
|
10
22
|
writeFile(path: string, data: Uint8Array): Promise<void>;
|
|
11
|
-
/** Atomically replace a path when same-filesystem rename is supported. */
|
|
12
23
|
createFileBytesExclusive?(path: string, data: Uint8Array): Promise<void>;
|
|
24
|
+
/** Atomically replace a path when same-filesystem rename is supported. */
|
|
13
25
|
rename?(from: string, to: string): Promise<void>;
|
|
14
26
|
exists(path: string): Promise<boolean>;
|
|
15
27
|
stat(path: string): Promise<FileInfo>;
|
|
@@ -23,15 +35,18 @@ export interface FileSystem {
|
|
|
23
35
|
isDirectory: boolean;
|
|
24
36
|
isSymlink?: boolean;
|
|
25
37
|
}>;
|
|
38
|
+
/** Remove a path, rejecting when it does not exist. */
|
|
26
39
|
remove(path: string, options?: {
|
|
27
40
|
recursive?: boolean;
|
|
28
41
|
}): Promise<void>;
|
|
42
|
+
/** Atomically create a unique directory beneath the operating-system temp root. */
|
|
29
43
|
makeTempDir(options?: {
|
|
30
44
|
prefix?: string;
|
|
31
45
|
}): Promise<string>;
|
|
46
|
+
/** Change permissions, rejecting operational failures. */
|
|
32
47
|
chmod(path: string, mode: number): Promise<void>;
|
|
33
48
|
}
|
|
34
|
-
/** Create
|
|
49
|
+
/** Create the runtime-native filesystem implementation. */
|
|
35
50
|
export declare function createFileSystem(): FileSystem;
|
|
36
51
|
/** Read a file as text. */
|
|
37
52
|
export declare function readTextFile(path: string): Promise<string>;
|
|
@@ -41,17 +56,23 @@ export declare function readFile(path: string): Promise<Uint8Array>;
|
|
|
41
56
|
export declare function writeTextFile(path: string, data: string): Promise<void>;
|
|
42
57
|
/** Write bytes to a file. */
|
|
43
58
|
export declare function writeFile(path: string, data: Uint8Array): Promise<void>;
|
|
44
|
-
/**
|
|
59
|
+
/** Return false for a missing path and propagate every other filesystem error. */
|
|
45
60
|
export declare function exists(path: string): Promise<boolean>;
|
|
46
61
|
/** Read file metadata. */
|
|
47
62
|
export declare function stat(path: string): Promise<FileInfo>;
|
|
48
63
|
/** Read file metadata without following a terminal symbolic link. */
|
|
49
64
|
export declare function lstat(path: string): Promise<FileInfo>;
|
|
65
|
+
/**
|
|
66
|
+
* Read a path's native device/inode identity without following a terminal
|
|
67
|
+
* symbolic link. Returns undefined only when the runtime cannot expose a
|
|
68
|
+
* stable identity for the backing filesystem.
|
|
69
|
+
*/
|
|
70
|
+
export declare function getPathIdentity(path: string): Promise<PathIdentity | undefined>;
|
|
50
71
|
/** Create a directory. */
|
|
51
72
|
export declare function mkdir(path: string, options?: {
|
|
52
73
|
recursive?: boolean;
|
|
53
74
|
}): Promise<void>;
|
|
54
|
-
/** Remove a file or directory. */
|
|
75
|
+
/** Remove a file or directory, rejecting when the path does not exist. */
|
|
55
76
|
export declare function remove(path: string, options?: {
|
|
56
77
|
recursive?: boolean;
|
|
57
78
|
}): Promise<void>;
|
|
@@ -62,11 +83,11 @@ export declare function readDir(path: string): AsyncIterable<{
|
|
|
62
83
|
isDirectory: boolean;
|
|
63
84
|
isSymlink?: boolean;
|
|
64
85
|
}>;
|
|
65
|
-
/**
|
|
86
|
+
/** Atomically create a unique directory beneath the operating-system temp root. */
|
|
66
87
|
export declare function makeTempDir(options?: {
|
|
67
88
|
prefix?: string;
|
|
68
89
|
}): Promise<string>;
|
|
69
|
-
/** Change file permissions. */
|
|
90
|
+
/** Change file permissions, rejecting operational failures. */
|
|
70
91
|
export declare function chmod(path: string, mode: number): Promise<void>;
|
|
71
92
|
export declare function symlink(target: string, path: string): Promise<void>;
|
|
72
93
|
/**
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"fs.d.ts","sourceRoot":"","sources":["../../../../src/src/platform/compat/fs.ts"],"names":[],"mappings":"AACA,OAAO,KAAK,EAAE,QAAQ,EAAE,MAAM,qBAAqB,CAAC;
|
|
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