poe-code 11.0.28 → 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/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "poe-code",
3
- "version": "11.0.28",
3
+ "version": "11.0.29",
4
4
  "description": "CLI tool to configure Poe API for developer workflows.",
5
5
  "license": "MIT",
6
6
  "type": "module",
@@ -27,7 +27,7 @@ import {
27
27
  validateMigrationSemantics,
28
28
  validateSnapshotData,
29
29
  validateSnapshotMigration
30
- } from "./chunk-FAAW5HF7.js";
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-3OFXSTL2.js.map
8058
+ //# sourceMappingURL=chunk-DB2DNWCX.js.map
@@ -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 (let index = 0; index < value.length; index++) {
22666
- const descriptor = Object.getOwnPropertyDescriptor(value, String(index));
22667
- if (descriptor === void 0) continue;
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 ${path}[${index}]: accessor property`);
22670
+ throw new TypeError(`Unsupported sandbox value at ${entryPath}: accessor property`);
22670
22671
  }
22671
- copy[index] = copyHostValueToSandbox(
22672
- descriptor.value,
22673
- stackFrames,
22674
- { ...options, capabilityPath: [...options.capabilityPath ?? [], String(index)] },
22675
- state,
22676
- `${path}[${index}]`
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-FAAW5HF7.js.map
29234
+ //# sourceMappingURL=chunk-HC3QSP5N.js.map