poe-code 11.0.15 → 11.0.17

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.15",
3
+ "version": "11.0.17",
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-CMWFNRW4.js";
30
+ } from "./chunk-D4DDI3HH.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-RMMJ2USI.js.map
8058
+ //# sourceMappingURL=chunk-COHIMIAF.js.map
@@ -19806,7 +19806,10 @@ function measureSandboxData(values, options = {}) {
19806
19806
  usage += 1;
19807
19807
  if (Array.isArray(value)) {
19808
19808
  usage += value.length;
19809
- for (const entry of value) visit(entry);
19809
+ for (let index = 0; index < value.length; index += 1) {
19810
+ const descriptor = Object.getOwnPropertyDescriptor(value, index);
19811
+ if (descriptor !== void 0 && "value" in descriptor) visit(descriptor.value);
19812
+ }
19810
19813
  return;
19811
19814
  }
19812
19815
  if (isSandboxMap(value)) {
@@ -19840,7 +19843,7 @@ function measureSandboxData(values, options = {}) {
19840
19843
  usage += value.source.length + value.flags.length;
19841
19844
  return;
19842
19845
  }
19843
- const entries = isSandboxArguments(value) ? getSandboxArgumentEntries(value) : Object.entries(value);
19846
+ const entries = isSandboxArguments(value) ? getSandboxArgumentEntries(value) : Object.entries(Object.getOwnPropertyDescriptors(value)).filter(([, descriptor]) => descriptor.enumerable).map(([key, descriptor]) => [key, "value" in descriptor ? descriptor.value : void 0]);
19844
19847
  usage += entries.length;
19845
19848
  for (const [key, entry] of entries) {
19846
19849
  usage += key.length;
@@ -23959,6 +23962,7 @@ function getTemplateRawParts(template) {
23959
23962
  }
23960
23963
 
23961
23964
  // packages/safejs/src/interp/methods/array.ts
23965
+ var activeArrayCallbacks = /* @__PURE__ */ new WeakMap();
23962
23966
  var arrayMethodNames = /* @__PURE__ */ new Set([
23963
23967
  "map",
23964
23968
  "filter",
@@ -24029,11 +24033,20 @@ async function callArrayMethod(value, methodName, args, options, stack = []) {
24029
24033
  assertCollectionMutable(value);
24030
24034
  }
24031
24035
  if (isCallbackArrayMethod(methodName)) {
24032
- const leaveCallback = enterCollectionCallback(value);
24036
+ let callbackState = activeArrayCallbacks.get(value);
24037
+ if (callbackState === void 0) {
24038
+ callbackState = { depth: 0, leave: enterCollectionCallback(value) };
24039
+ activeArrayCallbacks.set(value, callbackState);
24040
+ }
24041
+ callbackState.depth += 1;
24033
24042
  try {
24034
24043
  return await callArrayMethodUnlocked(value, methodName, args, options, stack);
24035
24044
  } finally {
24036
- leaveCallback();
24045
+ callbackState.depth -= 1;
24046
+ if (callbackState.depth === 0) {
24047
+ activeArrayCallbacks.delete(value);
24048
+ callbackState.leave();
24049
+ }
24037
24050
  }
24038
24051
  }
24039
24052
  return callArrayMethodUnlocked(value, methodName, args, options, stack);
@@ -29052,4 +29065,4 @@ export {
29052
29065
  FileSnapshotBackend,
29053
29066
  run
29054
29067
  };
29055
- //# sourceMappingURL=chunk-CMWFNRW4.js.map
29068
+ //# sourceMappingURL=chunk-D4DDI3HH.js.map