poe-code 11.0.25 → 11.0.26
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/index.js +7 -1
- package/dist/index.js.map +2 -2
- package/dist/metafile.json +1 -1
- package/package.json +1 -1
- package/packages/safejs/dist/chunks/{chunk-DXJLYASS.js → chunk-4TA6S7L6.js} +7 -1
- package/packages/safejs/dist/chunks/{chunk-DXJLYASS.js.map → chunk-4TA6S7L6.js.map} +2 -2
- package/packages/safejs/dist/chunks/{chunk-BGO2B5YI.js → chunk-YVBVZ7MR.js} +2 -2
- package/packages/safejs/dist/cli.js +2 -2
- package/packages/safejs/dist/core.js +1 -1
- package/packages/safejs/dist/index.js +2 -2
- package/packages/safejs/dist/interp/host-bridge.js +4 -0
- package/packages/safejs/dist/interp/values.js +4 -0
- /package/packages/safejs/dist/chunks/{chunk-BGO2B5YI.js.map → chunk-YVBVZ7MR.js.map} +0 -0
|
@@ -27,7 +27,7 @@ import {
|
|
|
27
27
|
validateMigrationSemantics,
|
|
28
28
|
validateSnapshotData,
|
|
29
29
|
validateSnapshotMigration
|
|
30
|
-
} from "./chunk-
|
|
30
|
+
} from "./chunk-4TA6S7L6.js";
|
|
31
31
|
|
|
32
32
|
// packages/safejs/src/migrate.ts
|
|
33
33
|
import { createHash } from "node:crypto";
|
|
@@ -8055,4 +8055,4 @@ export {
|
|
|
8055
8055
|
parseMcpConfig,
|
|
8056
8056
|
makeMcpModule
|
|
8057
8057
|
};
|
|
8058
|
-
//# sourceMappingURL=chunk-
|
|
8058
|
+
//# sourceMappingURL=chunk-YVBVZ7MR.js.map
|
|
@@ -20,7 +20,7 @@ import {
|
|
|
20
20
|
parseMcpConfig,
|
|
21
21
|
splitFrontmatter,
|
|
22
22
|
withBrokenPipeGuard
|
|
23
|
-
} from "./chunks/chunk-
|
|
23
|
+
} from "./chunks/chunk-YVBVZ7MR.js";
|
|
24
24
|
import {
|
|
25
25
|
Budget,
|
|
26
26
|
SandboxError,
|
|
@@ -32,7 +32,7 @@ import {
|
|
|
32
32
|
replaceErrorStack,
|
|
33
33
|
restore,
|
|
34
34
|
run
|
|
35
|
-
} from "./chunks/chunk-
|
|
35
|
+
} from "./chunks/chunk-4TA6S7L6.js";
|
|
36
36
|
import "./chunks/chunk-4YIDX44G.js";
|
|
37
37
|
|
|
38
38
|
// packages/safejs/src/cli.ts
|
|
@@ -27,7 +27,7 @@ import {
|
|
|
27
27
|
runWithSpawnUsageAccumulator,
|
|
28
28
|
splitFrontmatter,
|
|
29
29
|
supportsSpawnMode
|
|
30
|
-
} from "./chunks/chunk-
|
|
30
|
+
} from "./chunks/chunk-YVBVZ7MR.js";
|
|
31
31
|
import {
|
|
32
32
|
Budget,
|
|
33
33
|
FileSnapshotBackend,
|
|
@@ -49,7 +49,7 @@ import {
|
|
|
49
49
|
registerPendingHostCallPolicy,
|
|
50
50
|
restore,
|
|
51
51
|
run
|
|
52
|
-
} from "./chunks/chunk-
|
|
52
|
+
} from "./chunks/chunk-4TA6S7L6.js";
|
|
53
53
|
import "./chunks/chunk-4YIDX44G.js";
|
|
54
54
|
|
|
55
55
|
// packages/safejs/src/runner/run-harness.ts
|
|
@@ -571,6 +571,9 @@ function copyHostValueToSandbox(value, stackFrames, options, state, path) {
|
|
|
571
571
|
}, state);
|
|
572
572
|
}
|
|
573
573
|
if (!options.errorData && isPromiseLike(value)) {
|
|
574
|
+
const existing = state.seen.get(value);
|
|
575
|
+
if (existing !== undefined)
|
|
576
|
+
return existing;
|
|
574
577
|
const promise = wrapHostPromiseWithSignal(Promise.resolve(value), options.signal).then((resolved) => {
|
|
575
578
|
try {
|
|
576
579
|
return copyHostValueToSandbox(resolved, stackFrames, options, {
|
|
@@ -590,6 +593,7 @@ function copyHostValueToSandbox(value, stackFrames, options, state, path) {
|
|
|
590
593
|
return Promise.reject(createHostErrorValue(reason, stackFrames, budget));
|
|
591
594
|
});
|
|
592
595
|
const sandboxPromise = createSandboxPromise(promise);
|
|
596
|
+
state.seen.set(value, sandboxPromise);
|
|
593
597
|
const span = getBoundOtelSpan(value);
|
|
594
598
|
if (span !== undefined) {
|
|
595
599
|
bindOtelSpan(promise, span);
|
|
@@ -302,8 +302,12 @@ function copyToSandbox(value, state, path = "<root>", cloneSandboxCollections =
|
|
|
302
302
|
return copy;
|
|
303
303
|
}
|
|
304
304
|
if (isHostPromise(value)) {
|
|
305
|
+
const existing = state.seen.get(value);
|
|
306
|
+
if (existing !== undefined)
|
|
307
|
+
return existing;
|
|
305
308
|
const promise = Promise.resolve(value).then((resolved) => copyToSandbox(resolved, { seen: new WeakMap() }), (reason) => Promise.reject(copyToSandbox(reason, { seen: new WeakMap() })));
|
|
306
309
|
const sandboxPromise = createSandboxPromise(promise);
|
|
310
|
+
state.seen.set(value, sandboxPromise);
|
|
307
311
|
const span = getBoundOtelSpan(value);
|
|
308
312
|
if (span !== undefined) {
|
|
309
313
|
bindOtelSpan(promise, span);
|
|
File without changes
|