poe-code 11.0.27 → 11.0.29
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 +17 -12
- package/dist/index.js.map +3 -3
- package/dist/metafile.json +1 -1
- package/package.json +1 -1
- package/packages/safejs/dist/chunks/{chunk-EW4KQ32H.js → chunk-DB2DNWCX.js} +2 -2
- package/packages/safejs/dist/chunks/{chunk-LSVSAZHI.js → chunk-HC3QSP5N.js} +17 -12
- package/packages/safejs/dist/chunks/{chunk-LSVSAZHI.js.map → chunk-HC3QSP5N.js.map} +3 -3
- 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 +7 -6
- package/packages/safejs/dist/interp/host-call.js +3 -3
- package/packages/safejs/dist/interp/values.d.ts +2 -0
- package/packages/safejs/dist/interp/values.js +2 -2
- /package/packages/safejs/dist/chunks/{chunk-EW4KQ32H.js.map → chunk-DB2DNWCX.js.map} +0 -0
package/package.json
CHANGED
|
@@ -27,7 +27,7 @@ import {
|
|
|
27
27
|
validateMigrationSemantics,
|
|
28
28
|
validateSnapshotData,
|
|
29
29
|
validateSnapshotMigration
|
|
30
|
-
} from "./chunk-
|
|
30
|
+
} from "./chunk-HC3QSP5N.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-DB2DNWCX.js.map
|
|
@@ -20946,7 +20946,7 @@ var HostCallJournal = class {
|
|
|
20946
20946
|
}
|
|
20947
20947
|
};
|
|
20948
20948
|
function copyOutcome(outcome) {
|
|
20949
|
-
return outcome.status === "fulfilled" ? { status: "fulfilled", value:
|
|
20949
|
+
return outcome.status === "fulfilled" ? { status: "fulfilled", value: cloneSandboxValue(outcome.value) } : { status: "rejected", reason: cloneSandboxValue(outcome.reason) };
|
|
20950
20950
|
}
|
|
20951
20951
|
function restoreReplayCalls(input, encodedOutcomes, callbackSizes, requiredHostCapabilities = /* @__PURE__ */ new Set()) {
|
|
20952
20952
|
validateSnapshotData(input);
|
|
@@ -22662,18 +22662,23 @@ function copyHostValueToSandbox(value, stackFrames, options, state, path) {
|
|
|
22662
22662
|
const copy = new Array(value.length);
|
|
22663
22663
|
state.seen.set(value, copy);
|
|
22664
22664
|
budget.allocateArrayLength(value.length);
|
|
22665
|
-
for (
|
|
22666
|
-
const
|
|
22667
|
-
if (
|
|
22665
|
+
for (const [key, descriptor] of Object.entries(Object.getOwnPropertyDescriptors(value))) {
|
|
22666
|
+
const indexed = isArrayIndexKey(key);
|
|
22667
|
+
if (key === "length" || !descriptor.enumerable && !indexed) continue;
|
|
22668
|
+
const entryPath = indexed ? `${path}[${key}]` : joinPath2(path, key);
|
|
22668
22669
|
if (!("value" in descriptor)) {
|
|
22669
|
-
throw new TypeError(`Unsupported sandbox value at ${
|
|
22670
|
+
throw new TypeError(`Unsupported sandbox value at ${entryPath}: accessor property`);
|
|
22670
22671
|
}
|
|
22671
|
-
|
|
22672
|
-
|
|
22673
|
-
|
|
22674
|
-
|
|
22675
|
-
|
|
22676
|
-
|
|
22672
|
+
defineOwnDataProperty(
|
|
22673
|
+
copy,
|
|
22674
|
+
indexed ? key : budget.allocateString(key),
|
|
22675
|
+
copyHostValueToSandbox(
|
|
22676
|
+
descriptor.value,
|
|
22677
|
+
stackFrames,
|
|
22678
|
+
{ ...options, capabilityPath: [...options.capabilityPath ?? [], key] },
|
|
22679
|
+
state,
|
|
22680
|
+
entryPath
|
|
22681
|
+
)
|
|
22677
22682
|
);
|
|
22678
22683
|
}
|
|
22679
22684
|
return copy;
|
|
@@ -29226,4 +29231,4 @@ export {
|
|
|
29226
29231
|
FileSnapshotBackend,
|
|
29227
29232
|
run
|
|
29228
29233
|
};
|
|
29229
|
-
//# sourceMappingURL=chunk-
|
|
29234
|
+
//# sourceMappingURL=chunk-HC3QSP5N.js.map
|