@effect-agent/platform-cloudflare 0.1.0-beta.95 → 0.1.0-beta.97

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.
@@ -1,5 +1,5 @@
1
1
  import { ThreadObjectNamespace, ThreadObjectRpc } from "./CloudflareBindings.mjs";
2
- import { t as AdmissionLimitExceeded } from "./CloudflareConfig-D472JOQA.mjs";
2
+ import { t as AdmissionLimitExceeded } from "./CloudflareConfig-DKXGo8L3.mjs";
3
3
  import { DurableAlarmError } from "./Alarm.mjs";
4
4
  import { Context, Crypto, Effect, Layer, Schema } from "effect";
5
5
  import { DurableSubmitAgent, DurableSubmitOptions, Receipt } from "effect-agent/durable-agent-runtime";
@@ -264,6 +264,13 @@ declare const encodeSubmitRequest: (input: SubmitRequest, options?: import("effe
264
264
  readonly agent: string;
265
265
  readonly model: string;
266
266
  readonly tools: string;
267
+ readonly replay?: {
268
+ readonly agent: string;
269
+ readonly agentBehavior?: string | undefined;
270
+ readonly tools: {
271
+ readonly [x: string]: string;
272
+ };
273
+ } | undefined;
267
274
  };
268
275
  readonly policy: Schema.Json;
269
276
  readonly budget: {
@@ -305,6 +312,13 @@ declare const encodeSubmitRequest: (input: SubmitRequest, options?: import("effe
305
312
  readonly agent: string;
306
313
  readonly model: string;
307
314
  readonly tools: string;
315
+ readonly replay?: {
316
+ readonly agent: string;
317
+ readonly agentBehavior?: string | undefined;
318
+ readonly tools: {
319
+ readonly [x: string]: string;
320
+ };
321
+ } | undefined;
308
322
  };
309
323
  readonly destinationDelegationId?: string | undefined;
310
324
  } | undefined;
@@ -409,6 +423,13 @@ declare const encodeSubmitRequest: (input: SubmitRequest, options?: import("effe
409
423
  readonly agent: string;
410
424
  readonly model: string;
411
425
  readonly tools: string;
426
+ readonly replay?: {
427
+ readonly agent: string;
428
+ readonly agentBehavior?: string | undefined;
429
+ readonly tools: {
430
+ readonly [x: string]: string;
431
+ };
432
+ } | undefined;
412
433
  };
413
434
  readonly inputPayload: Schema.Json;
414
435
  }, Schema.SchemaError, never>;
@@ -454,13 +475,13 @@ declare const encodeUnknownResolutionCommand: (input: UnknownResolutionCommand,
454
475
  readonly author: string;
455
476
  readonly reason: string;
456
477
  readonly resolution: {
457
- readonly _tag: "SafeToRetry";
458
- } | {
459
478
  readonly _tag: "CompletedWithResult";
460
479
  readonly result: Schema.Json;
461
480
  readonly isFailure: boolean;
462
481
  } | {
463
482
  readonly _tag: "NeverHappened";
483
+ } | {
484
+ readonly _tag: "SafeToRetry";
464
485
  } | {
465
486
  readonly _tag: "AbortSubmission";
466
487
  };
@@ -596,17 +617,19 @@ declare const encodeHostResponse: (input: AbortRecorded | ApprovalRecorded | Hos
596
617
  readonly createdAt: string;
597
618
  readonly deploymentId: string;
598
619
  readonly payload: {
599
- readonly _tag: "AbortRequested";
600
- readonly submissionId: string;
601
- readonly author: string;
602
- readonly reason: string;
603
- } | {
604
620
  readonly _tag: "ThreadCreated";
605
621
  readonly agentId: string;
606
622
  readonly definitions: {
607
623
  readonly agent: string;
608
624
  readonly model: string;
609
625
  readonly tools: string;
626
+ readonly replay?: {
627
+ readonly agent: string;
628
+ readonly agentBehavior?: string | undefined;
629
+ readonly tools: {
630
+ readonly [x: string]: string;
631
+ };
632
+ } | undefined;
610
633
  };
611
634
  } | {
612
635
  readonly _tag: "UserInputRecorded";
@@ -708,6 +731,9 @@ declare const encodeHostResponse: (input: AbortRecorded | ApprovalRecorded | Hos
708
731
  readonly runId: string;
709
732
  readonly policyAccountingVersion: 1;
710
733
  readonly maxDurationMillis: number;
734
+ } | {
735
+ readonly _tag: "RunDurationExhausted";
736
+ readonly runId: string;
711
737
  } | {
712
738
  readonly _tag: "RunPolicyUsageReserved";
713
739
  readonly runId: string;
@@ -858,6 +884,11 @@ declare const encodeHostResponse: (input: AbortRecorded | ApprovalRecorded | Hos
858
884
  readonly runDisposition?: Schema.Json | undefined;
859
885
  readonly finishReason?: "budget-exhausted" | undefined;
860
886
  readonly exhausted?: "tokens" | "tool-calls" | "turns" | undefined;
887
+ } | {
888
+ readonly _tag: "AbortRequested";
889
+ readonly submissionId: string;
890
+ readonly author: string;
891
+ readonly reason: string;
861
892
  } | {
862
893
  readonly _tag: "SubmissionSettled";
863
894
  readonly submissionId: string;
@@ -945,6 +976,13 @@ declare const encodeHostResponse: (input: AbortRecorded | ApprovalRecorded | Hos
945
976
  readonly agent: string;
946
977
  readonly model: string;
947
978
  readonly tools: string;
979
+ readonly replay?: {
980
+ readonly agent: string;
981
+ readonly agentBehavior?: string | undefined;
982
+ readonly tools: {
983
+ readonly [x: string]: string;
984
+ };
985
+ } | undefined;
948
986
  };
949
987
  readonly childInput: Schema.Json;
950
988
  readonly childInputDigest: string;
@@ -1038,6 +1076,13 @@ declare const encodeHostResponse: (input: AbortRecorded | ApprovalRecorded | Hos
1038
1076
  readonly agent: string;
1039
1077
  readonly model: string;
1040
1078
  readonly tools: string;
1079
+ readonly replay?: {
1080
+ readonly agent: string;
1081
+ readonly agentBehavior?: string | undefined;
1082
+ readonly tools: {
1083
+ readonly [x: string]: string;
1084
+ };
1085
+ } | undefined;
1041
1086
  };
1042
1087
  readonly childInputDigest: string;
1043
1088
  readonly grantDigest: string;
@@ -1097,6 +1142,13 @@ declare const encodeHostResponse: (input: AbortRecorded | ApprovalRecorded | Hos
1097
1142
  readonly agent: string;
1098
1143
  readonly model: string;
1099
1144
  readonly tools: string;
1145
+ readonly replay?: {
1146
+ readonly agent: string;
1147
+ readonly agentBehavior?: string | undefined;
1148
+ readonly tools: {
1149
+ readonly [x: string]: string;
1150
+ };
1151
+ } | undefined;
1100
1152
  };
1101
1153
  readonly policy: Schema.Json;
1102
1154
  readonly budget: {
@@ -1138,6 +1190,13 @@ declare const encodeHostResponse: (input: AbortRecorded | ApprovalRecorded | Hos
1138
1190
  readonly agent: string;
1139
1191
  readonly model: string;
1140
1192
  readonly tools: string;
1193
+ readonly replay?: {
1194
+ readonly agent: string;
1195
+ readonly agentBehavior?: string | undefined;
1196
+ readonly tools: {
1197
+ readonly [x: string]: string;
1198
+ };
1199
+ } | undefined;
1141
1200
  };
1142
1201
  readonly destinationDelegationId?: string | undefined;
1143
1202
  } | undefined;
@@ -1175,6 +1234,13 @@ declare const encodeHostResponse: (input: AbortRecorded | ApprovalRecorded | Hos
1175
1234
  readonly agent: string;
1176
1235
  readonly model: string;
1177
1236
  readonly tools: string;
1237
+ readonly replay?: {
1238
+ readonly agent: string;
1239
+ readonly agentBehavior?: string | undefined;
1240
+ readonly tools: {
1241
+ readonly [x: string]: string;
1242
+ };
1243
+ } | undefined;
1178
1244
  };
1179
1245
  readonly policy: Schema.Json;
1180
1246
  readonly budget: {
@@ -1216,6 +1282,13 @@ declare const encodeHostResponse: (input: AbortRecorded | ApprovalRecorded | Hos
1216
1282
  readonly agent: string;
1217
1283
  readonly model: string;
1218
1284
  readonly tools: string;
1285
+ readonly replay?: {
1286
+ readonly agent: string;
1287
+ readonly agentBehavior?: string | undefined;
1288
+ readonly tools: {
1289
+ readonly [x: string]: string;
1290
+ };
1291
+ } | undefined;
1219
1292
  };
1220
1293
  readonly destinationDelegationId?: string | undefined;
1221
1294
  } | undefined;
@@ -1251,6 +1324,13 @@ declare const encodeHostResponse: (input: AbortRecorded | ApprovalRecorded | Hos
1251
1324
  readonly agent: string;
1252
1325
  readonly model: string;
1253
1326
  readonly tools: string;
1327
+ readonly replay?: {
1328
+ readonly agent: string;
1329
+ readonly agentBehavior?: string | undefined;
1330
+ readonly tools: {
1331
+ readonly [x: string]: string;
1332
+ };
1333
+ } | undefined;
1254
1334
  };
1255
1335
  readonly delivery?: {
1256
1336
  readonly messageId: string;
@@ -1346,13 +1426,13 @@ declare const encodeHostResponse: (input: AbortRecorded | ApprovalRecorded | Hos
1346
1426
  readonly author: string;
1347
1427
  readonly reason: string;
1348
1428
  readonly resolution: {
1349
- readonly _tag: "SafeToRetry";
1350
- } | {
1351
1429
  readonly _tag: "CompletedWithResult";
1352
1430
  readonly result: Schema.Json;
1353
1431
  readonly isFailure: boolean;
1354
1432
  } | {
1355
1433
  readonly _tag: "NeverHappened";
1434
+ } | {
1435
+ readonly _tag: "SafeToRetry";
1356
1436
  } | {
1357
1437
  readonly _tag: "AbortSubmission";
1358
1438
  };
@@ -1362,37 +1442,10 @@ declare const encodeHostResponse: (input: AbortRecorded | ApprovalRecorded | Hos
1362
1442
  } | {
1363
1443
  readonly _tag: "HostFailed";
1364
1444
  readonly failure: {
1365
- readonly _tag: "AdmissionConflict";
1366
- readonly threadId: string;
1367
- readonly principal: string;
1368
- readonly idempotencyKey: string;
1369
- readonly existingInputDigest: string;
1370
- readonly attemptedInputDigest: string;
1371
- } | {
1372
- readonly _tag: "AdmissionPolicyError";
1373
- readonly reason: "occupied" | "refused" | "unavailable";
1374
- readonly code: string;
1375
- } | {
1376
- readonly _tag: "SettlementConflict";
1377
- readonly submissionId: string;
1378
- readonly existingOutcome: "aborted" | "completed" | "failed";
1379
- } | {
1380
- readonly _tag: "JoinedToHost";
1381
- readonly submissionId: string;
1382
- readonly hostSubmissionId: string;
1383
- } | {
1384
1445
  readonly _tag: "LedgerError";
1385
1446
  readonly operation: string;
1386
1447
  readonly message: string;
1387
1448
  readonly cause?: Schema.Json | undefined;
1388
- } | {
1389
- readonly _tag: "ThreadStoreError";
1390
- readonly operation: string;
1391
- readonly message: string;
1392
- readonly cause?: Schema.Json | undefined;
1393
- } | {
1394
- readonly _tag: "ThreadNotMaterialized";
1395
- readonly threadId: string;
1396
1449
  } | {
1397
1450
  readonly _tag: "AppendConflict";
1398
1451
  readonly threadId: string;
@@ -1406,13 +1459,30 @@ declare const encodeHostResponse: (input: AbortRecorded | ApprovalRecorded | Hos
1406
1459
  readonly actualEpoch: number;
1407
1460
  readonly attemptedEpoch: number;
1408
1461
  } | {
1409
- readonly _tag: "DurableAlarmError";
1462
+ readonly _tag: "ThreadNotMaterialized";
1463
+ readonly threadId: string;
1464
+ } | {
1465
+ readonly _tag: "ThreadStoreError";
1410
1466
  readonly operation: string;
1411
1467
  readonly message: string;
1412
1468
  readonly cause?: Schema.Json | undefined;
1413
1469
  } | {
1414
- readonly _tag: "HostProtocolError";
1415
- readonly message: string;
1470
+ readonly _tag: "OperationDenied";
1471
+ readonly operation: "abort" | "awaitSettlement" | "explain" | "observe" | "resolveApproval" | "resolveUnknown" | "retry" | "scanObligations" | "verify" | "wake";
1472
+ readonly reason: string;
1473
+ readonly threadId?: string | undefined;
1474
+ readonly submissionId?: string | undefined;
1475
+ } | {
1476
+ readonly _tag: "AdmissionConflict";
1477
+ readonly threadId: string;
1478
+ readonly principal: string;
1479
+ readonly idempotencyKey: string;
1480
+ readonly existingInputDigest: string;
1481
+ readonly attemptedInputDigest: string;
1482
+ } | {
1483
+ readonly _tag: "AdmissionPolicyError";
1484
+ readonly reason: "occupied" | "refused" | "unavailable";
1485
+ readonly code: string;
1416
1486
  } | {
1417
1487
  readonly _tag: "AgentInputError";
1418
1488
  readonly message: string;
@@ -1422,18 +1492,28 @@ declare const encodeHostResponse: (input: AbortRecorded | ApprovalRecorded | Hos
1422
1492
  readonly cause?: Schema.Json | undefined;
1423
1493
  } | {
1424
1494
  readonly _tag: "DurableRuntimeFailpointError";
1425
- readonly location: "abort:after-intent" | "approval:after-request-append" | "approval:after-suspend" | "checkpoint:after-save" | "checkpoint:before-save" | "claim:after-claim" | "compaction:after-canonical-append" | "compaction:before-canonical-append" | "input:after-canonical-append" | "join:after-canonical-append" | "join:after-claim" | "policy:after-reservation-append" | "policy:before-reservation-append" | "resolve:after-intent" | "run:after-start-append" | "run:before-start-append" | "step:after-step-append" | "subagent:after-admit" | "subagent:after-child-abort-intent" | "subagent:after-child-ready" | "subagent:after-join-append" | "subagent:after-release" | "subagent:after-release-pending" | "subagent:after-request-append" | "subagent:after-reserve" | "subagent:after-sibling-settle" | "subagent:after-start-append" | "subagent:after-suspend" | "subagent:before-join-append" | "submit:after-admit" | "submit:after-materialize" | "terminalize:after-canonical-append" | "terminalize:after-reserve" | "tools:after-prepared-append" | "tools:before-prepared-append" | "turn:after-canonical-append" | "turn:after-response-append" | "turn:after-results-append" | "update:after-canonical-append" | "update:after-delivery-insert" | "update:before-canonical-append" | "update:before-delivery-insert" | "worker:after-completion-append" | "worker:after-origin-append" | "worker:after-report-append" | "worker:after-report-delivery" | "worker:after-source-append" | "worker:after-subtree-append" | "worker:before-completion-append" | "worker:before-origin-append" | "worker:before-report-append" | "worker:before-report-delivery" | "worker:before-source-append" | "worker:before-subtree-append";
1495
+ readonly location: "abort:after-intent" | "approval:after-request-append" | "approval:after-suspend" | "checkpoint:after-save" | "checkpoint:before-save" | "claim:after-claim" | "compaction:after-canonical-append" | "compaction:before-canonical-append" | "input:after-canonical-append" | "join:after-canonical-append" | "join:after-claim" | "policy:after-reservation-append" | "policy:before-reservation-append" | "resolve:after-intent" | "run:after-duration-append" | "run:after-start-append" | "run:before-duration-append" | "run:before-start-append" | "step:after-step-append" | "subagent:after-admit" | "subagent:after-child-abort-intent" | "subagent:after-child-ready" | "subagent:after-join-append" | "subagent:after-release" | "subagent:after-release-pending" | "subagent:after-request-append" | "subagent:after-reserve" | "subagent:after-sibling-settle" | "subagent:after-start-append" | "subagent:after-suspend" | "subagent:before-join-append" | "submit:after-admit" | "submit:after-materialize" | "terminalize:after-canonical-append" | "terminalize:after-reserve" | "tools:after-prepared-append" | "tools:before-prepared-append" | "turn:after-canonical-append" | "turn:after-response-append" | "turn:after-results-append" | "update:after-canonical-append" | "update:after-delivery-insert" | "update:before-canonical-append" | "update:before-delivery-insert" | "worker:after-completion-append" | "worker:after-origin-append" | "worker:after-report-append" | "worker:after-report-delivery" | "worker:after-source-append" | "worker:after-subtree-append" | "worker:before-completion-append" | "worker:before-origin-append" | "worker:before-report-append" | "worker:before-report-delivery" | "worker:before-source-append" | "worker:before-subtree-append";
1496
+ } | {
1497
+ readonly _tag: "SettlementConflict";
1498
+ readonly submissionId: string;
1499
+ readonly existingOutcome: "aborted" | "completed" | "failed";
1500
+ } | {
1501
+ readonly _tag: "JoinedToHost";
1502
+ readonly submissionId: string;
1503
+ readonly hostSubmissionId: string;
1504
+ } | {
1505
+ readonly _tag: "DurableAlarmError";
1506
+ readonly operation: string;
1507
+ readonly message: string;
1508
+ readonly cause?: Schema.Json | undefined;
1426
1509
  } | {
1427
1510
  readonly _tag: "AdmissionLimitExceeded";
1428
1511
  readonly limit: "database-bytes" | "input-bytes" | "queue-depth";
1429
1512
  readonly actual: number;
1430
1513
  readonly maximum: number;
1431
1514
  } | {
1432
- readonly _tag: "OperationDenied";
1433
- readonly operation: "abort" | "awaitSettlement" | "explain" | "observe" | "resolveApproval" | "resolveUnknown" | "retry" | "scanObligations" | "verify" | "wake";
1434
- readonly reason: string;
1435
- readonly threadId?: string | undefined;
1436
- readonly submissionId?: string | undefined;
1515
+ readonly _tag: "HostProtocolError";
1516
+ readonly message: string;
1437
1517
  } | {
1438
1518
  readonly _tag: "ApprovalConflict";
1439
1519
  readonly submissionId: string;
@@ -1,5 +1,5 @@
1
1
  import { DurableObjectContext, ThreadObjectIdentity, ThreadObjectNamespace, ThreadObjectPlacement } from "./CloudflareBindings.mjs";
2
- import { l as CloudflarePlatformConfigError, s as CloudflareDurableRuntimeConfig, t as AdmissionLimitExceeded } from "./CloudflareConfig-D472JOQA.mjs";
2
+ import { l as CloudflarePlatformConfigError, s as CloudflareDurableRuntimeConfig, t as AdmissionLimitExceeded } from "./CloudflareConfig-DKXGo8L3.mjs";
3
3
  import { DurableAlarmError, DurableAlarmService, ThreadMaintenance, ThreadMaintenanceFailpoint, ThreadMaintenanceFailpointHandler, ThreadMutationGate, ThreadPublication } from "./Alarm.mjs";
4
4
  import { HostProtocolError, SubmitRequest } from "./CloudflareThreadClient.mjs";
5
5
  import { Context, Crypto, Effect, Layer, Option, Schema, Scope } from "effect";
@@ -55,9 +55,9 @@ interface CloudflareDurableRuntimeOptions {
55
55
  readonly ownershipLeaseDuration?: number | undefined;
56
56
  /** Milliseconds; default 100. */
57
57
  readonly alarmBackoffBase?: number | undefined;
58
- /** Milliseconds; default 5000. */
58
+ /** Failed/no-progress exponential backoff ceiling in milliseconds; default 5000. */
59
59
  readonly alarmBackoffCap?: number | undefined;
60
- /** Milliseconds; default 1000. Bounds every alarm re-arm delay. */
60
+ /** Fallback scan cadence for newly dirty work in milliseconds; default 1000. */
61
61
  readonly wakeScanInterval?: number | undefined;
62
62
  /** Milliseconds; default 500. */
63
63
  readonly settlementPollInterval?: number | undefined;
@@ -692,6 +692,11 @@ declare const encodeAdminResponse: (input: AdminFailed | ExplainedRecovery | Obl
692
692
  } | {
693
693
  readonly _tag: "AdminFailed";
694
694
  readonly failure: {
695
+ readonly _tag: "DurableAlarmError";
696
+ readonly operation: string;
697
+ readonly message: string;
698
+ readonly cause?: Schema.Json | undefined;
699
+ } | {
695
700
  readonly _tag: "HostProtocolError";
696
701
  readonly message: string;
697
702
  } | {
@@ -714,14 +719,9 @@ declare const encodeAdminResponse: (input: AdminFailed | ExplainedRecovery | Obl
714
719
  readonly _tag: "DigestError";
715
720
  readonly message: string;
716
721
  readonly cause?: Schema.Json | undefined;
717
- } | {
718
- readonly _tag: "DurableAlarmError";
719
- readonly operation: string;
720
- readonly message: string;
721
- readonly cause?: Schema.Json | undefined;
722
722
  } | {
723
723
  readonly _tag: "DurableRuntimeFailpointError";
724
- readonly location: "abort:after-intent" | "approval:after-request-append" | "approval:after-suspend" | "checkpoint:after-save" | "checkpoint:before-save" | "claim:after-claim" | "compaction:after-canonical-append" | "compaction:before-canonical-append" | "input:after-canonical-append" | "join:after-canonical-append" | "join:after-claim" | "policy:after-reservation-append" | "policy:before-reservation-append" | "resolve:after-intent" | "run:after-start-append" | "run:before-start-append" | "step:after-step-append" | "subagent:after-admit" | "subagent:after-child-abort-intent" | "subagent:after-child-ready" | "subagent:after-join-append" | "subagent:after-release" | "subagent:after-release-pending" | "subagent:after-request-append" | "subagent:after-reserve" | "subagent:after-sibling-settle" | "subagent:after-start-append" | "subagent:after-suspend" | "subagent:before-join-append" | "submit:after-admit" | "submit:after-materialize" | "terminalize:after-canonical-append" | "terminalize:after-reserve" | "tools:after-prepared-append" | "tools:before-prepared-append" | "turn:after-canonical-append" | "turn:after-response-append" | "turn:after-results-append" | "update:after-canonical-append" | "update:after-delivery-insert" | "update:before-canonical-append" | "update:before-delivery-insert" | "worker:after-completion-append" | "worker:after-origin-append" | "worker:after-report-append" | "worker:after-report-delivery" | "worker:after-source-append" | "worker:after-subtree-append" | "worker:before-completion-append" | "worker:before-origin-append" | "worker:before-report-append" | "worker:before-report-delivery" | "worker:before-source-append" | "worker:before-subtree-append";
724
+ readonly location: "abort:after-intent" | "approval:after-request-append" | "approval:after-suspend" | "checkpoint:after-save" | "checkpoint:before-save" | "claim:after-claim" | "compaction:after-canonical-append" | "compaction:before-canonical-append" | "input:after-canonical-append" | "join:after-canonical-append" | "join:after-claim" | "policy:after-reservation-append" | "policy:before-reservation-append" | "resolve:after-intent" | "run:after-duration-append" | "run:after-start-append" | "run:before-duration-append" | "run:before-start-append" | "step:after-step-append" | "subagent:after-admit" | "subagent:after-child-abort-intent" | "subagent:after-child-ready" | "subagent:after-join-append" | "subagent:after-release" | "subagent:after-release-pending" | "subagent:after-request-append" | "subagent:after-reserve" | "subagent:after-sibling-settle" | "subagent:after-start-append" | "subagent:after-suspend" | "subagent:before-join-append" | "submit:after-admit" | "submit:after-materialize" | "terminalize:after-canonical-append" | "terminalize:after-reserve" | "tools:after-prepared-append" | "tools:before-prepared-append" | "turn:after-canonical-append" | "turn:after-response-append" | "turn:after-results-append" | "update:after-canonical-append" | "update:after-delivery-insert" | "update:before-canonical-append" | "update:before-delivery-insert" | "worker:after-completion-append" | "worker:after-origin-append" | "worker:after-report-append" | "worker:after-report-delivery" | "worker:after-source-append" | "worker:after-subtree-append" | "worker:before-completion-append" | "worker:before-origin-append" | "worker:before-report-append" | "worker:before-report-delivery" | "worker:before-source-append" | "worker:before-subtree-append";
725
725
  } | {
726
726
  readonly _tag: "FenceRejected";
727
727
  readonly threadId: string;
@@ -742,23 +742,23 @@ declare const encodeAdminResponse: (input: AdminFailed | ExplainedRecovery | Obl
742
742
  readonly threadId?: string | undefined;
743
743
  readonly submissionId?: string | undefined;
744
744
  } | {
745
- readonly _tag: "RetryRefused";
745
+ readonly _tag: "SettlementConflict";
746
746
  readonly submissionId: string;
747
- readonly refusal: "await-approval-decision" | "await-unknown-resolution" | "settled";
748
- readonly decisionTag: string;
749
- readonly message: string;
750
- } | {
751
- readonly _tag: "RunJournalError";
752
- readonly message: string;
753
- readonly cause?: Schema.Json | undefined;
747
+ readonly existingOutcome: "aborted" | "completed" | "failed";
754
748
  } | {
755
749
  readonly _tag: "OwnershipLost";
756
750
  readonly submissionId: string;
757
751
  readonly actualEpoch: number;
758
752
  } | {
759
- readonly _tag: "SettlementConflict";
753
+ readonly _tag: "RunJournalError";
754
+ readonly message: string;
755
+ readonly cause?: Schema.Json | undefined;
756
+ } | {
757
+ readonly _tag: "RetryRefused";
760
758
  readonly submissionId: string;
761
- readonly existingOutcome: "aborted" | "completed" | "failed";
759
+ readonly refusal: "await-approval-decision" | "await-unknown-resolution" | "settled";
760
+ readonly decisionTag: string;
761
+ readonly message: string;
762
762
  };
763
763
  }, Schema.SchemaError, never>;
764
764
  declare const decodeAdminResponse: (input: unknown, options?: import("effect/SchemaAST").ParseOptions) => Effect.Effect<AdminFailed | ExplainedRecovery | ObligationsScanned | RetryExecuted | VerifiedIntegrity, Schema.SchemaError, never>;
@@ -811,4 +811,4 @@ interface Class<EventServices = never> {
811
811
  declare const make: <ApplicationServices, ApplicationError, EventServices = never, EventLayerError = never>(applicationLayer: Layer.Layer<CloudflareDurableRuntimeServices | ApplicationServices, ApplicationError, CloudflareBootstrapServices | DurableObjectState$1.DurableObjectState | WorkerEnvironment | DurableObjectContext | ThreadObjectNamespace>, options: Options<ApplicationServices, EventServices, EventLayerError>) => Class<ApplicationServices | EventServices>;
812
812
  //#endregion
813
813
  export { ThreadPublicationOptions as A, portCall as C, CloudflareDurableRuntimeOptions as D, CloudflareDurableRuntimeInitializationError as E, layerConfig as M, layerHostConfig as N, CloudflareDurableRuntimeServices as O, layerInHost as P, make as S, CloudflareBootstrapServices as T, decodeAdminVerifyRequest as _, AdminVerifyRequest as a, encodeAdminResponse as b, Instance as c, RetryExecuted as d, ThreadObject_d_exports as f, decodeAdminResponse as g, decodeAdminExplainRequest as h, AdminResponse as i, layer as j, ThreadObjectPorts as k, ObligationsScanned as l, VerifiedIntegrity as m, AdminFailed as n, Class as o, ThreadRpcOperation as p, AdminFailure as r, ExplainedRecovery as s, AdminExplainRequest as t, Options as u, decodeObligationThresholds as v, submit as w, handleRpc as x, decodeRetryCommand as y };
814
- //# sourceMappingURL=ThreadObject-CZxuDWOb.d.mts.map
814
+ //# sourceMappingURL=ThreadObject-COli4r4g.d.mts.map