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.
@@ -27,7 +27,7 @@ import {
27
27
  validateMigrationSemantics,
28
28
  validateSnapshotData,
29
29
  validateSnapshotMigration
30
- } from "./chunk-4D75HUZZ.js";
30
+ } from "./chunk-5TMXWUAL.js";
31
31
  import {
32
32
  createFileSystem,
33
33
  createNodeFileSystemAdapterRegistry,
@@ -8183,4 +8183,4 @@ export {
8183
8183
  parseMcpConfig,
8184
8184
  makeMcpModule
8185
8185
  };
8186
- //# sourceMappingURL=chunk-ETVJF5BE.js.map
8186
+ //# sourceMappingURL=chunk-HEFYUEBF.js.map
@@ -22,7 +22,7 @@ import {
22
22
  resolveFsConfig,
23
23
  splitFrontmatter,
24
24
  withBrokenPipeGuard
25
- } from "./chunks/chunk-ETVJF5BE.js";
25
+ } from "./chunks/chunk-HEFYUEBF.js";
26
26
  import {
27
27
  Budget,
28
28
  SandboxError,
@@ -34,7 +34,7 @@ import {
34
34
  replaceErrorStack,
35
35
  restore,
36
36
  run
37
- } from "./chunks/chunk-4D75HUZZ.js";
37
+ } from "./chunks/chunk-5TMXWUAL.js";
38
38
  import "./chunks/chunk-F7NY24BF.js";
39
39
  import "./chunks/chunk-YBQUQPZV.js";
40
40
  import "./chunks/chunk-4YIDX44G.js";
@@ -3,7 +3,7 @@ import {
3
3
  createReplayableRandom,
4
4
  lint,
5
5
  run
6
- } from "./chunks/chunk-4D75HUZZ.js";
6
+ } from "./chunks/chunk-5TMXWUAL.js";
7
7
  import "./chunks/chunk-4YIDX44G.js";
8
8
  export {
9
9
  Budget,
@@ -29,7 +29,7 @@ import {
29
29
  runWithSpawnUsageAccumulator,
30
30
  splitFrontmatter,
31
31
  supportsSpawnMode
32
- } from "./chunks/chunk-ETVJF5BE.js";
32
+ } from "./chunks/chunk-HEFYUEBF.js";
33
33
  import {
34
34
  Budget,
35
35
  FileSnapshotBackend,
@@ -51,7 +51,7 @@ import {
51
51
  registerPendingHostCallPolicy,
52
52
  restore,
53
53
  run
54
- } from "./chunks/chunk-4D75HUZZ.js";
54
+ } from "./chunks/chunk-5TMXWUAL.js";
55
55
  import "./chunks/chunk-F7NY24BF.js";
56
56
  import "./chunks/chunk-YBQUQPZV.js";
57
57
  import "./chunks/chunk-4YIDX44G.js";
@@ -66,6 +66,9 @@ export function isCapturedException(value) {
66
66
  return typeof value === "object" && value !== null && capturedExceptionBrand in value;
67
67
  }
68
68
  export function coerceThrownValue(reason, budget, stackFrames, span, sandbox = false) {
69
+ if (reason instanceof HostCallResumabilityError) {
70
+ throw reason;
71
+ }
69
72
  if (isSubsetErrorValue(reason)) {
70
73
  attachErrorSpan(reason, readErrorSpan(reason) ?? span);
71
74
  return reason;
@@ -259,6 +259,9 @@ function executeHostCall(record, restored, invoke, stackFrames, options, span, c
259
259
  result = invoke();
260
260
  }
261
261
  catch (error) {
262
+ if (error instanceof HostCallResumabilityError) {
263
+ throw error;
264
+ }
262
265
  const reason = createHostErrorValue(error, stackFrames, options.budget, span);
263
266
  hostCalls.settle(record, { status: "rejected", reason });
264
267
  throw error;
@@ -62,9 +62,11 @@ export type HostCallResumeRequest = Omit<HostCallRecord, "id" | "outcome"> & {
62
62
  };
63
63
  export type HostCallResumeProvider = (request: HostCallResumeRequest, context?: HostCallResumeContext) => HostCallResumeProof | Promise<HostCallResumeProof>;
64
64
  export declare class HostCallResumabilityError extends Error {
65
+ #private;
65
66
  readonly action: "reset" | "external-reconciliation";
66
67
  readonly callId: string;
67
68
  readonly lifecycle: HostCallLifecycle;
69
+ static [Symbol.hasInstance](value: unknown): boolean;
68
70
  constructor(record: HostCallRecord, action: "reset" | "external-reconciliation", message: string);
69
71
  }
70
72
  export declare class UnresolvedReplayCapabilityError extends TypeError {
@@ -5,9 +5,16 @@ import { decodeReplayData, encodeReplayData } from "../snapshot/replay-data.js";
5
5
  import { validateSnapshotData } from "../snapshot/validation.js";
6
6
  import { pendingHostCallResumeIdentityMatches } from "../snapshot/policy.js";
7
7
  export class HostCallResumabilityError extends Error {
8
+ #nativeInstance = true;
8
9
  action;
9
10
  callId;
10
11
  lifecycle;
12
+ static [Symbol.hasInstance](value) {
13
+ return (typeof value === "object" &&
14
+ value !== null &&
15
+ #nativeInstance in value &&
16
+ Function.prototype[Symbol.hasInstance].call(this, value));
17
+ }
11
18
  constructor(record, action, message) {
12
19
  super(message);
13
20
  this.name = "HostCallResumabilityError";