poe-code 12.0.8 → 12.0.9

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": "12.0.8",
3
+ "version": "12.0.9",
4
4
  "description": "CLI tool to configure Poe API for developer workflows.",
5
5
  "license": "MIT",
6
6
  "type": "module",
@@ -17746,6 +17746,9 @@ function registerPendingHostCallPolicy(registration) {
17746
17746
  MODULE_PENDING_HOST_CALL_POLICIES[moduleId] ??= /* @__PURE__ */ Object.create(null);
17747
17747
  MODULE_PENDING_HOST_CALL_POLICIES[moduleId][operation] = policy;
17748
17748
  }
17749
+ function readRegisteredPendingHostCallPolicy(moduleId, operation) {
17750
+ return MODULE_PENDING_HOST_CALL_POLICIES[moduleId]?.[operation];
17751
+ }
17749
17752
  function pendingHostCallResumeIdentityMatches(expected, actual) {
17750
17753
  return actual.callId === expected.callId && actual.sourceHash === expected.sourceHash && actual.moduleId === expected.moduleId && actual.operation === expected.operation && actual.argumentDigest === expected.argumentDigest;
17751
17754
  }
@@ -22309,10 +22312,10 @@ function wrapCallerInjectedFunction(name, value, options, state) {
22309
22312
  const hostArgs = deepCopyFromSandbox([...args], {
22310
22313
  wrapClosure: (closure) => wrapSandboxClosureForHost(closure, stackFrames, options.budget, callbacks)
22311
22314
  });
22312
- const policy = readHostOperationPolicy(value) ?? "re-issue";
22313
22315
  const hostCalls = options.hostCalls;
22314
22316
  const operation = options.operation ?? bindingName;
22315
22317
  const moduleId = options.moduleId ?? "<bindings>";
22318
+ const policy = readHostOperationPolicy(value) ?? readRegisteredPendingHostCallPolicy(moduleId, operation) ?? "re-issue";
22316
22319
  if (hostCalls === void 0) {
22317
22320
  return copyHostResultToSandbox(
22318
22321
  invokeHostCallback(() => Reflect.apply(callable, void 0, hostArgs), options),
@@ -29748,4 +29751,4 @@ export {
29748
29751
  FileSnapshotBackend,
29749
29752
  run
29750
29753
  };
29751
- //# sourceMappingURL=chunk-JGTN4U7F.js.map
29754
+ //# sourceMappingURL=chunk-4D75HUZZ.js.map