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 CHANGED
@@ -140216,11 +140216,14 @@ function copyToSandbox(value, state, path191 = "<root>", cloneSandboxCollections
140216
140216
  return copy;
140217
140217
  }
140218
140218
  if (isHostPromise(value)) {
140219
+ const existing = state.seen.get(value);
140220
+ if (existing !== void 0) return existing;
140219
140221
  const promise = Promise.resolve(value).then(
140220
140222
  (resolved) => copyToSandbox(resolved, { seen: /* @__PURE__ */ new WeakMap() }),
140221
140223
  (reason) => Promise.reject(copyToSandbox(reason, { seen: /* @__PURE__ */ new WeakMap() }))
140222
140224
  );
140223
140225
  const sandboxPromise = createSandboxPromise(promise);
140226
+ state.seen.set(value, sandboxPromise);
140224
140227
  const span = getBoundOtelSpan(value);
140225
140228
  if (span !== void 0) {
140226
140229
  bindOtelSpan(promise, span);
@@ -142023,6 +142026,8 @@ function copyHostValueToSandbox(value, stackFrames, options, state, path191) {
142023
142026
  );
142024
142027
  }
142025
142028
  if (!options.errorData && isPromiseLike5(value)) {
142029
+ const existing = state.seen.get(value);
142030
+ if (existing !== void 0) return existing;
142026
142031
  const promise = wrapHostPromiseWithSignal(Promise.resolve(value), options.signal).then(
142027
142032
  (resolved) => {
142028
142033
  try {
@@ -142050,6 +142055,7 @@ function copyHostValueToSandbox(value, stackFrames, options, state, path191) {
142050
142055
  }
142051
142056
  );
142052
142057
  const sandboxPromise = createSandboxPromise(promise);
142058
+ state.seen.set(value, sandboxPromise);
142053
142059
  const span = getBoundOtelSpan(value);
142054
142060
  if (span !== void 0) {
142055
142061
  bindOtelSpan(promise, span);
@@ -155775,7 +155781,7 @@ var init_package2 = __esm({
155775
155781
  "package.json"() {
155776
155782
  package_default2 = {
155777
155783
  name: "poe-code",
155778
- version: "11.0.25",
155784
+ version: "11.0.26",
155779
155785
  description: "CLI tool to configure Poe API for developer workflows.",
155780
155786
  license: "MIT",
155781
155787
  type: "module",