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

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,12 @@ 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 tools: {
270
+ readonly [x: string]: string;
271
+ };
272
+ } | undefined;
267
273
  };
268
274
  readonly policy: Schema.Json;
269
275
  readonly budget: {
@@ -305,6 +311,12 @@ declare const encodeSubmitRequest: (input: SubmitRequest, options?: import("effe
305
311
  readonly agent: string;
306
312
  readonly model: string;
307
313
  readonly tools: string;
314
+ readonly replay?: {
315
+ readonly agent: string;
316
+ readonly tools: {
317
+ readonly [x: string]: string;
318
+ };
319
+ } | undefined;
308
320
  };
309
321
  readonly destinationDelegationId?: string | undefined;
310
322
  } | undefined;
@@ -409,6 +421,12 @@ declare const encodeSubmitRequest: (input: SubmitRequest, options?: import("effe
409
421
  readonly agent: string;
410
422
  readonly model: string;
411
423
  readonly tools: string;
424
+ readonly replay?: {
425
+ readonly agent: string;
426
+ readonly tools: {
427
+ readonly [x: string]: string;
428
+ };
429
+ } | undefined;
412
430
  };
413
431
  readonly inputPayload: Schema.Json;
414
432
  }, Schema.SchemaError, never>;
@@ -607,6 +625,12 @@ declare const encodeHostResponse: (input: AbortRecorded | ApprovalRecorded | Hos
607
625
  readonly agent: string;
608
626
  readonly model: string;
609
627
  readonly tools: string;
628
+ readonly replay?: {
629
+ readonly agent: string;
630
+ readonly tools: {
631
+ readonly [x: string]: string;
632
+ };
633
+ } | undefined;
610
634
  };
611
635
  } | {
612
636
  readonly _tag: "UserInputRecorded";
@@ -708,6 +732,9 @@ declare const encodeHostResponse: (input: AbortRecorded | ApprovalRecorded | Hos
708
732
  readonly runId: string;
709
733
  readonly policyAccountingVersion: 1;
710
734
  readonly maxDurationMillis: number;
735
+ } | {
736
+ readonly _tag: "RunDurationExhausted";
737
+ readonly runId: string;
711
738
  } | {
712
739
  readonly _tag: "RunPolicyUsageReserved";
713
740
  readonly runId: string;
@@ -945,6 +972,12 @@ declare const encodeHostResponse: (input: AbortRecorded | ApprovalRecorded | Hos
945
972
  readonly agent: string;
946
973
  readonly model: string;
947
974
  readonly tools: string;
975
+ readonly replay?: {
976
+ readonly agent: string;
977
+ readonly tools: {
978
+ readonly [x: string]: string;
979
+ };
980
+ } | undefined;
948
981
  };
949
982
  readonly childInput: Schema.Json;
950
983
  readonly childInputDigest: string;
@@ -1038,6 +1071,12 @@ declare const encodeHostResponse: (input: AbortRecorded | ApprovalRecorded | Hos
1038
1071
  readonly agent: string;
1039
1072
  readonly model: string;
1040
1073
  readonly tools: string;
1074
+ readonly replay?: {
1075
+ readonly agent: string;
1076
+ readonly tools: {
1077
+ readonly [x: string]: string;
1078
+ };
1079
+ } | undefined;
1041
1080
  };
1042
1081
  readonly childInputDigest: string;
1043
1082
  readonly grantDigest: string;
@@ -1097,6 +1136,12 @@ declare const encodeHostResponse: (input: AbortRecorded | ApprovalRecorded | Hos
1097
1136
  readonly agent: string;
1098
1137
  readonly model: string;
1099
1138
  readonly tools: string;
1139
+ readonly replay?: {
1140
+ readonly agent: string;
1141
+ readonly tools: {
1142
+ readonly [x: string]: string;
1143
+ };
1144
+ } | undefined;
1100
1145
  };
1101
1146
  readonly policy: Schema.Json;
1102
1147
  readonly budget: {
@@ -1138,6 +1183,12 @@ declare const encodeHostResponse: (input: AbortRecorded | ApprovalRecorded | Hos
1138
1183
  readonly agent: string;
1139
1184
  readonly model: string;
1140
1185
  readonly tools: string;
1186
+ readonly replay?: {
1187
+ readonly agent: string;
1188
+ readonly tools: {
1189
+ readonly [x: string]: string;
1190
+ };
1191
+ } | undefined;
1141
1192
  };
1142
1193
  readonly destinationDelegationId?: string | undefined;
1143
1194
  } | undefined;
@@ -1175,6 +1226,12 @@ declare const encodeHostResponse: (input: AbortRecorded | ApprovalRecorded | Hos
1175
1226
  readonly agent: string;
1176
1227
  readonly model: string;
1177
1228
  readonly tools: string;
1229
+ readonly replay?: {
1230
+ readonly agent: string;
1231
+ readonly tools: {
1232
+ readonly [x: string]: string;
1233
+ };
1234
+ } | undefined;
1178
1235
  };
1179
1236
  readonly policy: Schema.Json;
1180
1237
  readonly budget: {
@@ -1216,6 +1273,12 @@ declare const encodeHostResponse: (input: AbortRecorded | ApprovalRecorded | Hos
1216
1273
  readonly agent: string;
1217
1274
  readonly model: string;
1218
1275
  readonly tools: string;
1276
+ readonly replay?: {
1277
+ readonly agent: string;
1278
+ readonly tools: {
1279
+ readonly [x: string]: string;
1280
+ };
1281
+ } | undefined;
1219
1282
  };
1220
1283
  readonly destinationDelegationId?: string | undefined;
1221
1284
  } | undefined;
@@ -1251,6 +1314,12 @@ declare const encodeHostResponse: (input: AbortRecorded | ApprovalRecorded | Hos
1251
1314
  readonly agent: string;
1252
1315
  readonly model: string;
1253
1316
  readonly tools: string;
1317
+ readonly replay?: {
1318
+ readonly agent: string;
1319
+ readonly tools: {
1320
+ readonly [x: string]: string;
1321
+ };
1322
+ } | undefined;
1254
1323
  };
1255
1324
  readonly delivery?: {
1256
1325
  readonly messageId: string;
@@ -1362,6 +1431,11 @@ declare const encodeHostResponse: (input: AbortRecorded | ApprovalRecorded | Hos
1362
1431
  } | {
1363
1432
  readonly _tag: "HostFailed";
1364
1433
  readonly failure: {
1434
+ readonly _tag: "DurableAlarmError";
1435
+ readonly operation: string;
1436
+ readonly message: string;
1437
+ readonly cause?: Schema.Json | undefined;
1438
+ } | {
1365
1439
  readonly _tag: "AdmissionConflict";
1366
1440
  readonly threadId: string;
1367
1441
  readonly principal: string;
@@ -1405,11 +1479,6 @@ declare const encodeHostResponse: (input: AbortRecorded | ApprovalRecorded | Hos
1405
1479
  readonly threadId: string;
1406
1480
  readonly actualEpoch: number;
1407
1481
  readonly attemptedEpoch: number;
1408
- } | {
1409
- readonly _tag: "DurableAlarmError";
1410
- readonly operation: string;
1411
- readonly message: string;
1412
- readonly cause?: Schema.Json | undefined;
1413
1482
  } | {
1414
1483
  readonly _tag: "HostProtocolError";
1415
1484
  readonly message: string;
@@ -1420,9 +1489,18 @@ declare const encodeHostResponse: (input: AbortRecorded | ApprovalRecorded | Hos
1420
1489
  readonly _tag: "DigestError";
1421
1490
  readonly message: string;
1422
1491
  readonly cause?: Schema.Json | undefined;
1492
+ } | {
1493
+ readonly _tag: "ApprovalConflict";
1494
+ readonly submissionId: string;
1495
+ readonly toolCallId: string;
1496
+ readonly existingDecision: "approved" | "denied";
1497
+ } | {
1498
+ readonly _tag: "UnknownResolutionConflict";
1499
+ readonly submissionId: string;
1500
+ readonly toolCallId: string;
1423
1501
  } | {
1424
1502
  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";
1503
+ 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";
1426
1504
  } | {
1427
1505
  readonly _tag: "AdmissionLimitExceeded";
1428
1506
  readonly limit: "database-bytes" | "input-bytes" | "queue-depth";
@@ -1434,15 +1512,6 @@ declare const encodeHostResponse: (input: AbortRecorded | ApprovalRecorded | Hos
1434
1512
  readonly reason: string;
1435
1513
  readonly threadId?: string | undefined;
1436
1514
  readonly submissionId?: string | undefined;
1437
- } | {
1438
- readonly _tag: "ApprovalConflict";
1439
- readonly submissionId: string;
1440
- readonly toolCallId: string;
1441
- readonly existingDecision: "approved" | "denied";
1442
- } | {
1443
- readonly _tag: "UnknownResolutionConflict";
1444
- readonly submissionId: string;
1445
- readonly toolCallId: string;
1446
1515
  };
1447
1516
  }, Schema.SchemaError, never>;
1448
1517
  declare const decodeHostResponse: (input: unknown, options?: import("effect/SchemaAST").ParseOptions) => Effect.Effect<AbortRecorded | ApprovalRecorded | HostFailed | ObservedPage | ProgressCancelled | ProgressObserved | SettlementReached | SubmissionStatusResponse | SubmitSucceeded | UnknownResolutionRecorded, Schema.SchemaError, never>;