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/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "poe-code",
3
- "version": "11.0.25",
3
+ "version": "11.0.26",
4
4
  "description": "CLI tool to configure Poe API for developer workflows.",
5
5
  "license": "MIT",
6
6
  "type": "module",
@@ -19953,11 +19953,14 @@ function copyToSandbox(value, state, path = "<root>", cloneSandboxCollections =
19953
19953
  return copy;
19954
19954
  }
19955
19955
  if (isHostPromise(value)) {
19956
+ const existing = state.seen.get(value);
19957
+ if (existing !== void 0) return existing;
19956
19958
  const promise = Promise.resolve(value).then(
19957
19959
  (resolved) => copyToSandbox(resolved, { seen: /* @__PURE__ */ new WeakMap() }),
19958
19960
  (reason) => Promise.reject(copyToSandbox(reason, { seen: /* @__PURE__ */ new WeakMap() }))
19959
19961
  );
19960
19962
  const sandboxPromise = createSandboxPromise(promise);
19963
+ state.seen.set(value, sandboxPromise);
19961
19964
  const span = getBoundOtelSpan(value);
19962
19965
  if (span !== void 0) {
19963
19966
  bindOtelSpan(promise, span);
@@ -22587,6 +22590,8 @@ function copyHostValueToSandbox(value, stackFrames, options, state, path) {
22587
22590
  );
22588
22591
  }
22589
22592
  if (!options.errorData && isPromiseLike3(value)) {
22593
+ const existing = state.seen.get(value);
22594
+ if (existing !== void 0) return existing;
22590
22595
  const promise = wrapHostPromiseWithSignal(Promise.resolve(value), options.signal).then(
22591
22596
  (resolved) => {
22592
22597
  try {
@@ -22614,6 +22619,7 @@ function copyHostValueToSandbox(value, stackFrames, options, state, path) {
22614
22619
  }
22615
22620
  );
22616
22621
  const sandboxPromise = createSandboxPromise(promise);
22622
+ state.seen.set(value, sandboxPromise);
22617
22623
  const span = getBoundOtelSpan(value);
22618
22624
  if (span !== void 0) {
22619
22625
  bindOtelSpan(promise, span);
@@ -29193,4 +29199,4 @@ export {
29193
29199
  FileSnapshotBackend,
29194
29200
  run
29195
29201
  };
29196
- //# sourceMappingURL=chunk-DXJLYASS.js.map
29202
+ //# sourceMappingURL=chunk-4TA6S7L6.js.map