poe-code 12.0.9 → 12.0.11
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/README.md +7 -0
- package/dist/index.js +14 -2
- package/dist/index.js.map +2 -2
- package/dist/metafile.json +1 -1
- package/package.json +1 -1
- package/packages/safe-js/dist/chunks/{chunk-4D75HUZZ.js → chunk-DALBPQDZ.js} +14 -2
- package/packages/safe-js/dist/chunks/{chunk-4D75HUZZ.js.map → chunk-DALBPQDZ.js.map} +2 -2
- package/packages/safe-js/dist/chunks/{chunk-ETVJF5BE.js → chunk-HCODJUGF.js} +2 -2
- package/packages/safe-js/dist/cli.js +2 -2
- package/packages/safe-js/dist/core.js +1 -1
- package/packages/safe-js/dist/index.js +2 -2
- package/packages/safe-js/dist/interp/exceptions.js +3 -0
- package/packages/safe-js/dist/interp/host-bridge.js +3 -0
- package/packages/safe-js/dist/interp/host-call.d.ts +2 -0
- package/packages/safe-js/dist/interp/host-call.js +7 -0
- package/packages/safe-js/dist/interp/values.js +1 -1
- /package/packages/safe-js/dist/chunks/{chunk-ETVJF5BE.js.map → chunk-HCODJUGF.js.map} +0 -0
package/README.md
CHANGED
|
@@ -334,6 +334,13 @@ limited to legacy snapshot reconciliation. Caller bindings use module ID
|
|
|
334
334
|
history; a changed policy on replay fails closed rather than downgrading a
|
|
335
335
|
captured side effect.
|
|
336
336
|
|
|
337
|
+
A restored invocation identity conflict rejects with the actual
|
|
338
|
+
`HostCallResumabilityError` class and `action: "reset"`. Native engine errors
|
|
339
|
+
retain their identity across synchronous and asynchronous host-error paths;
|
|
340
|
+
guest catch/finally handlers cannot turn them into successful recovery. Names,
|
|
341
|
+
action fields and copied prototypes do not grant engine-error identity. Ordinary
|
|
342
|
+
guest/host errors and cancellation retain their separate conversion rules.
|
|
343
|
+
|
|
337
344
|
Recorded outcomes are reused. A pending `read-side-effect` call requires a
|
|
338
345
|
matching external reconciliation proof and is not blindly invoked again;
|
|
339
346
|
`re-issue` permits another invocation. Neither registration nor checkpointing
|
package/dist/index.js
CHANGED
|
@@ -138074,9 +138074,13 @@ var init_host_call = __esm({
|
|
|
138074
138074
|
init_validation();
|
|
138075
138075
|
init_policy();
|
|
138076
138076
|
HostCallResumabilityError = class extends Error {
|
|
138077
|
+
#nativeInstance = true;
|
|
138077
138078
|
action;
|
|
138078
138079
|
callId;
|
|
138079
138080
|
lifecycle;
|
|
138081
|
+
static [Symbol.hasInstance](value) {
|
|
138082
|
+
return typeof value === "object" && value !== null && #nativeInstance in value && Function.prototype[Symbol.hasInstance].call(this, value);
|
|
138083
|
+
}
|
|
138080
138084
|
constructor(record2, action, message2) {
|
|
138081
138085
|
super(message2);
|
|
138082
138086
|
this.name = "HostCallResumabilityError";
|
|
@@ -138506,6 +138510,9 @@ function isCapturedException(value) {
|
|
|
138506
138510
|
return typeof value === "object" && value !== null && capturedExceptionBrand in value;
|
|
138507
138511
|
}
|
|
138508
138512
|
function coerceThrownValue(reason, budget, stackFrames, span, sandbox = false) {
|
|
138513
|
+
if (reason instanceof HostCallResumabilityError) {
|
|
138514
|
+
throw reason;
|
|
138515
|
+
}
|
|
138509
138516
|
if (isSubsetErrorValue(reason)) {
|
|
138510
138517
|
attachErrorSpan(reason, readErrorSpan(reason) ?? span);
|
|
138511
138518
|
return reason;
|
|
@@ -140454,7 +140461,9 @@ function copyToSandbox(value, state, path191 = "<root>", cloneSandboxCollections
|
|
|
140454
140461
|
if (existing !== void 0) {
|
|
140455
140462
|
return existing;
|
|
140456
140463
|
}
|
|
140457
|
-
const copy = createPlainObject(
|
|
140464
|
+
const copy = createPlainObject(
|
|
140465
|
+
!cloneSandboxCollections || Object.getPrototypeOf(value) === null
|
|
140466
|
+
);
|
|
140458
140467
|
state.seen.set(value, copy);
|
|
140459
140468
|
const errorType = sandboxErrorTypes.get(value);
|
|
140460
140469
|
if (errorType !== void 0) sandboxErrorTypes.set(copy, errorType);
|
|
@@ -141891,6 +141900,9 @@ function executeHostCall(record2, restored, invoke2, stackFrames, options, span,
|
|
|
141891
141900
|
try {
|
|
141892
141901
|
result = invoke2();
|
|
141893
141902
|
} catch (error3) {
|
|
141903
|
+
if (error3 instanceof HostCallResumabilityError) {
|
|
141904
|
+
throw error3;
|
|
141905
|
+
}
|
|
141894
141906
|
const reason = createHostErrorValue(error3, stackFrames, options.budget, span);
|
|
141895
141907
|
hostCalls.settle(record2, { status: "rejected", reason });
|
|
141896
141908
|
throw error3;
|
|
@@ -156456,7 +156468,7 @@ var init_package2 = __esm({
|
|
|
156456
156468
|
"package.json"() {
|
|
156457
156469
|
package_default2 = {
|
|
156458
156470
|
name: "poe-code",
|
|
156459
|
-
version: "12.0.
|
|
156471
|
+
version: "12.0.11",
|
|
156460
156472
|
description: "CLI tool to configure Poe API for developer workflows.",
|
|
156461
156473
|
license: "MIT",
|
|
156462
156474
|
type: "module",
|