@poe-platform/safe-js 0.1.367 → 0.1.369
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/dist/safe-js/chunks/{chunk-2UQ2QDUV.js → chunk-54LUHONC.js} +180 -89
- package/dist/safe-js/chunks/chunk-54LUHONC.js.map +7 -0
- package/dist/safe-js/chunks/{chunk-U6OK5SV5.js → chunk-PO624I2M.js} +2 -2
- package/dist/safe-js/cli.js +2 -2
- package/dist/safe-js/core.js +1 -1
- package/dist/safe-js/index.js +2 -2
- package/dist/safe-js/interp/values.d.ts +13 -0
- package/package.json +2 -2
- package/dist/safe-js/chunks/chunk-2UQ2QDUV.js.map +0 -7
- /package/dist/safe-js/chunks/{chunk-U6OK5SV5.js.map → chunk-PO624I2M.js.map} +0 -0
|
@@ -27,7 +27,7 @@ import {
|
|
|
27
27
|
validateMigrationSemantics,
|
|
28
28
|
validateSnapshotData,
|
|
29
29
|
validateSnapshotMigration
|
|
30
|
-
} from "./chunk-
|
|
30
|
+
} from "./chunk-54LUHONC.js";
|
|
31
31
|
|
|
32
32
|
// packages/safe-js/src/migrate.ts
|
|
33
33
|
import { createHash } from "node:crypto";
|
|
@@ -8249,4 +8249,4 @@ export {
|
|
|
8249
8249
|
parseMcpConfig,
|
|
8250
8250
|
makeMcpModule
|
|
8251
8251
|
};
|
|
8252
|
-
//# sourceMappingURL=chunk-
|
|
8252
|
+
//# sourceMappingURL=chunk-PO624I2M.js.map
|
package/dist/safe-js/cli.js
CHANGED
|
@@ -22,7 +22,7 @@ import {
|
|
|
22
22
|
resolveFsConfig,
|
|
23
23
|
splitFrontmatter,
|
|
24
24
|
withBrokenPipeGuard
|
|
25
|
-
} from "./chunks/chunk-
|
|
25
|
+
} from "./chunks/chunk-PO624I2M.js";
|
|
26
26
|
import {
|
|
27
27
|
Budget,
|
|
28
28
|
SandboxError,
|
|
@@ -34,7 +34,7 @@ import {
|
|
|
34
34
|
replaceErrorStack,
|
|
35
35
|
restore,
|
|
36
36
|
run
|
|
37
|
-
} from "./chunks/chunk-
|
|
37
|
+
} from "./chunks/chunk-54LUHONC.js";
|
|
38
38
|
import "./chunks/chunk-4YIDX44G.js";
|
|
39
39
|
|
|
40
40
|
// packages/safe-js/src/cli.ts
|
package/dist/safe-js/core.js
CHANGED
package/dist/safe-js/index.js
CHANGED
|
@@ -26,7 +26,7 @@ import {
|
|
|
26
26
|
runWithSpawnUsageAccumulator,
|
|
27
27
|
splitFrontmatter,
|
|
28
28
|
supportsSpawnMode
|
|
29
|
-
} from "./chunks/chunk-
|
|
29
|
+
} from "./chunks/chunk-PO624I2M.js";
|
|
30
30
|
import {
|
|
31
31
|
Budget,
|
|
32
32
|
FileSnapshotBackend,
|
|
@@ -50,7 +50,7 @@ import {
|
|
|
50
50
|
registerPendingHostCallPolicy,
|
|
51
51
|
restore,
|
|
52
52
|
run
|
|
53
|
-
} from "./chunks/chunk-
|
|
53
|
+
} from "./chunks/chunk-54LUHONC.js";
|
|
54
54
|
import "./chunks/chunk-4YIDX44G.js";
|
|
55
55
|
|
|
56
56
|
// packages/safe-js/src/parse.ts
|
|
@@ -103,6 +103,14 @@ type CopyFromSandboxOptions = {
|
|
|
103
103
|
unwrapHostObject?: (value: SandboxObject) => unknown;
|
|
104
104
|
compilation?: CompileScope;
|
|
105
105
|
};
|
|
106
|
+
type CopyState<TValue> = {
|
|
107
|
+
float32Buffers?: WeakMap<ArrayBuffer, ArrayBuffer>;
|
|
108
|
+
seen: WeakMap<object, TValue>;
|
|
109
|
+
initializeIterators?: Array<() => void>;
|
|
110
|
+
compilation?: CompileScope;
|
|
111
|
+
resetRegexLastIndex?: boolean;
|
|
112
|
+
structuredClone?: boolean;
|
|
113
|
+
};
|
|
106
114
|
export declare function createSandboxClosure(input: {
|
|
107
115
|
sourceRange?: FunctionSource;
|
|
108
116
|
guest?: boolean;
|
|
@@ -150,6 +158,11 @@ export declare function cloneSandboxValue(value: SandboxValue, options?: {
|
|
|
150
158
|
float32Buffers?: WeakMap<ArrayBuffer, ArrayBuffer>;
|
|
151
159
|
}): SandboxValue;
|
|
152
160
|
export declare function allocateProducedSandboxValue(value: SandboxValue, budget: Budget): SandboxValue;
|
|
161
|
+
/** Serialization pauses only for guest accessor reads; ordinary data stays synchronous. */
|
|
162
|
+
export declare function cloneStructuredGraph(value: SandboxValue, state: CopyState<SandboxValue>, budget: Budget, depth?: number): Generator<{
|
|
163
|
+
descriptor: PropertyDescriptor;
|
|
164
|
+
receiver: SandboxValue;
|
|
165
|
+
}, SandboxValue, SandboxValue>;
|
|
153
166
|
export declare function measureSandboxData(values: Iterable<unknown>, options?: {
|
|
154
167
|
ignoreClosures?: boolean;
|
|
155
168
|
ignoreClosureCaptures?: boolean;
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@poe-platform/safe-js",
|
|
3
|
-
"version": "0.1.
|
|
3
|
+
"version": "0.1.369",
|
|
4
4
|
"description": "Budgeted JavaScript interpreter with explicit host capabilities and resumable execution",
|
|
5
5
|
"type": "module",
|
|
6
6
|
"license": "MIT",
|
|
@@ -58,7 +58,7 @@
|
|
|
58
58
|
"access": "public"
|
|
59
59
|
},
|
|
60
60
|
"dependencies": {
|
|
61
|
-
"@poe-platform/safe-fs": "0.1.
|
|
61
|
+
"@poe-platform/safe-fs": "0.1.369",
|
|
62
62
|
"yaml": "^2.8.2",
|
|
63
63
|
"jose": "^6.1.3",
|
|
64
64
|
"@types/node": "^25.2.2"
|