poe-code 12.0.9 → 12.0.10
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 +11 -1
- 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-5TMXWUAL.js} +11 -1
- package/packages/safe-js/dist/chunks/{chunk-4D75HUZZ.js.map → chunk-5TMXWUAL.js.map} +2 -2
- package/packages/safe-js/dist/chunks/{chunk-ETVJF5BE.js → chunk-HEFYUEBF.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/chunks/{chunk-ETVJF5BE.js.map → chunk-HEFYUEBF.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;
|
|
@@ -141891,6 +141898,9 @@ function executeHostCall(record2, restored, invoke2, stackFrames, options, span,
|
|
|
141891
141898
|
try {
|
|
141892
141899
|
result = invoke2();
|
|
141893
141900
|
} catch (error3) {
|
|
141901
|
+
if (error3 instanceof HostCallResumabilityError) {
|
|
141902
|
+
throw error3;
|
|
141903
|
+
}
|
|
141894
141904
|
const reason = createHostErrorValue(error3, stackFrames, options.budget, span);
|
|
141895
141905
|
hostCalls.settle(record2, { status: "rejected", reason });
|
|
141896
141906
|
throw error3;
|
|
@@ -156456,7 +156466,7 @@ var init_package2 = __esm({
|
|
|
156456
156466
|
"package.json"() {
|
|
156457
156467
|
package_default2 = {
|
|
156458
156468
|
name: "poe-code",
|
|
156459
|
-
version: "12.0.
|
|
156469
|
+
version: "12.0.10",
|
|
156460
156470
|
description: "CLI tool to configure Poe API for developer workflows.",
|
|
156461
156471
|
license: "MIT",
|
|
156462
156472
|
type: "module",
|