@effect-agent/platform-cloudflare 0.1.0-beta.124 → 0.1.0-beta.126

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.
@@ -65,6 +65,16 @@ declare const SubmitRequest_base: Schema.Class<SubmitRequest, Schema.Struct<{
65
65
  readonly agentId: Schema.brand<Schema.NonEmptyString, "@effect-agent/core/AgentId">;
66
66
  readonly threadId: Schema.brand<Schema.NonEmptyString, "@effect-agent/core/ThreadId">;
67
67
  }>]>;
68
+ readonly continuationOf: Schema.optionalKey<Schema.Struct<{
69
+ readonly worker: Schema.Struct<{
70
+ readonly schemaVersion: Schema.Literal<1>;
71
+ readonly delegationId: Schema.brand<Schema.NonEmptyString, "@effect-agent/core/DelegationId">;
72
+ readonly targetAgentId: Schema.brand<Schema.NonEmptyString, "@effect-agent/core/AgentId">;
73
+ readonly threadId: Schema.brand<Schema.NonEmptyString, "@effect-agent/core/ThreadId">;
74
+ }>;
75
+ readonly receipt: typeof Receipt;
76
+ readonly settlementId: Schema.brand<Schema.NonEmptyString, "@effect-agent/core/SettlementId">;
77
+ }>>;
68
78
  readonly budgetScope: Schema.optionalKey<Schema.Literals<readonly ["source-subtree", "worker-run"]>>;
69
79
  readonly lifecycle: Schema.optionalKey<Schema.Literal<"assignment">>;
70
80
  readonly targetDigests: typeof DefinitionDigests;
@@ -268,6 +278,21 @@ export declare const encodeSubmitRequest: (input: SubmitRequest, options?: impor
268
278
  readonly agentId: string;
269
279
  readonly threadId: string;
270
280
  };
281
+ readonly continuationOf?: {
282
+ readonly worker: {
283
+ readonly schemaVersion: 1;
284
+ readonly delegationId: string;
285
+ readonly targetAgentId: string;
286
+ readonly threadId: string;
287
+ };
288
+ readonly receipt: {
289
+ readonly receiptId: string;
290
+ readonly submissionId: string;
291
+ readonly threadId: string;
292
+ readonly queueSequence: number;
293
+ };
294
+ readonly settlementId: string;
295
+ } | undefined;
271
296
  readonly budgetScope?: "source-subtree" | "worker-run" | undefined;
272
297
  readonly lifecycle?: "assignment" | undefined;
273
298
  readonly targetDigests: {
@@ -1197,6 +1222,21 @@ export declare const encodeHostResponse: (input: AbortRecorded | ApprovalRecorde
1197
1222
  readonly agentId: string;
1198
1223
  readonly threadId: string;
1199
1224
  };
1225
+ readonly continuationOf?: {
1226
+ readonly worker: {
1227
+ readonly schemaVersion: 1;
1228
+ readonly delegationId: string;
1229
+ readonly targetAgentId: string;
1230
+ readonly threadId: string;
1231
+ };
1232
+ readonly receipt: {
1233
+ readonly receiptId: string;
1234
+ readonly submissionId: string;
1235
+ readonly threadId: string;
1236
+ readonly queueSequence: number;
1237
+ };
1238
+ readonly settlementId: string;
1239
+ } | undefined;
1200
1240
  readonly budgetScope?: "source-subtree" | "worker-run" | undefined;
1201
1241
  readonly lifecycle?: "assignment" | undefined;
1202
1242
  readonly targetDigests: {
@@ -1313,6 +1353,21 @@ export declare const encodeHostResponse: (input: AbortRecorded | ApprovalRecorde
1313
1353
  readonly agentId: string;
1314
1354
  readonly threadId: string;
1315
1355
  };
1356
+ readonly continuationOf?: {
1357
+ readonly worker: {
1358
+ readonly schemaVersion: 1;
1359
+ readonly delegationId: string;
1360
+ readonly targetAgentId: string;
1361
+ readonly threadId: string;
1362
+ };
1363
+ readonly receipt: {
1364
+ readonly receiptId: string;
1365
+ readonly submissionId: string;
1366
+ readonly threadId: string;
1367
+ readonly queueSequence: number;
1368
+ };
1369
+ readonly settlementId: string;
1370
+ } | undefined;
1316
1371
  readonly budgetScope?: "source-subtree" | "worker-run" | undefined;
1317
1372
  readonly lifecycle?: "assignment" | undefined;
1318
1373
  readonly targetDigests: {
@@ -1441,7 +1496,7 @@ export declare const encodeHostResponse: (input: AbortRecorded | ApprovalRecorde
1441
1496
  readonly _tag: "WorkerReportRefused";
1442
1497
  readonly runId: string;
1443
1498
  readonly messageId: string;
1444
- readonly reason: "capacity" | "declaration-unavailable" | "defect" | "denied" | "destination" | "expired" | "input" | "preparation" | "projection" | "timeout";
1499
+ readonly reason: "capacity" | "declaration-unavailable" | "defect" | "denied" | "destination" | "expired" | "filtered" | "input" | "preparation" | "projection" | "timeout";
1445
1500
  } | {
1446
1501
  readonly _tag: "PeerMessagePrepared";
1447
1502
  readonly messageId: string;
@@ -1540,6 +1595,11 @@ export declare const encodeHostResponse: (input: AbortRecorded | ApprovalRecorde
1540
1595
  } | {
1541
1596
  readonly _tag: "HostFailed";
1542
1597
  readonly failure: {
1598
+ readonly _tag: "DurableAlarmError";
1599
+ readonly operation: string;
1600
+ readonly message: string;
1601
+ readonly cause?: Schema.Json | undefined;
1602
+ } | {
1543
1603
  readonly _tag: "ThreadNotMaterialized";
1544
1604
  readonly threadId: string;
1545
1605
  } | {
@@ -1554,19 +1614,29 @@ export declare const encodeHostResponse: (input: AbortRecorded | ApprovalRecorde
1554
1614
  readonly issueTag?: string | undefined;
1555
1615
  readonly sequence?: number | undefined;
1556
1616
  } | undefined;
1557
- } | {
1558
- readonly _tag: "HostProtocolError";
1559
- readonly message: string;
1560
- } | {
1561
- readonly _tag: "AdmissionLimitExceeded";
1562
- readonly limit: "database-bytes" | "input-bytes" | "queue-depth";
1563
- readonly actual: number;
1564
- readonly maximum: number;
1565
1617
  } | {
1566
1618
  readonly _tag: "LedgerError";
1567
1619
  readonly operation: string;
1568
1620
  readonly message: string;
1569
1621
  readonly cause?: import("effect-agent/failure-diagnostic").Diagnostic | undefined;
1622
+ } | {
1623
+ readonly _tag: "AppendConflict";
1624
+ readonly threadId: string;
1625
+ readonly batchId: string;
1626
+ readonly reason: "batch-digest" | "record-identity" | "tail";
1627
+ readonly actualTailSequence?: number | undefined;
1628
+ readonly actualTailDigest?: string | undefined;
1629
+ } | {
1630
+ readonly _tag: "FenceRejected";
1631
+ readonly threadId: string;
1632
+ readonly actualEpoch: number;
1633
+ readonly attemptedEpoch: number;
1634
+ } | {
1635
+ readonly _tag: "OperationDenied";
1636
+ readonly operation: "abort" | "awaitSettlement" | "explain" | "observe" | "resolveApproval" | "resolveUnknown" | "retry" | "scanObligations" | "verify" | "wake";
1637
+ readonly reason: string;
1638
+ readonly threadId?: string | undefined;
1639
+ readonly submissionId?: string | undefined;
1570
1640
  } | {
1571
1641
  readonly _tag: "AdmissionConflict";
1572
1642
  readonly threadId: string;
@@ -1583,36 +1653,13 @@ export declare const encodeHostResponse: (input: AbortRecorded | ApprovalRecorde
1583
1653
  } | {
1584
1654
  readonly _tag: "AgentInputError";
1585
1655
  readonly message: string;
1586
- } | {
1587
- readonly _tag: "AppendConflict";
1588
- readonly threadId: string;
1589
- readonly batchId: string;
1590
- readonly reason: "batch-digest" | "record-identity" | "tail";
1591
- readonly actualTailSequence?: number | undefined;
1592
- readonly actualTailDigest?: string | undefined;
1593
1656
  } | {
1594
1657
  readonly _tag: "DigestError";
1595
1658
  readonly message: string;
1596
1659
  readonly cause?: Schema.Json | undefined;
1597
- } | {
1598
- readonly _tag: "DurableAlarmError";
1599
- readonly operation: string;
1600
- readonly message: string;
1601
- readonly cause?: Schema.Json | undefined;
1602
1660
  } | {
1603
1661
  readonly _tag: "DurableRuntimeFailpointError";
1604
1662
  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:after-unavailable-append" | "tools:before-prepared-append" | "tools:before-unavailable-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-stop-append" | "worker:after-stop-seal" | "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-stop-append" | "worker:before-stop-seal" | "worker:before-subtree-append";
1605
- } | {
1606
- readonly _tag: "FenceRejected";
1607
- readonly threadId: string;
1608
- readonly actualEpoch: number;
1609
- readonly attemptedEpoch: number;
1610
- } | {
1611
- readonly _tag: "OperationDenied";
1612
- readonly operation: "abort" | "awaitSettlement" | "explain" | "observe" | "resolveApproval" | "resolveUnknown" | "retry" | "scanObligations" | "verify" | "wake";
1613
- readonly reason: string;
1614
- readonly threadId?: string | undefined;
1615
- readonly submissionId?: string | undefined;
1616
1663
  } | {
1617
1664
  readonly _tag: "SettlementConflict";
1618
1665
  readonly submissionId: string;
@@ -1621,6 +1668,14 @@ export declare const encodeHostResponse: (input: AbortRecorded | ApprovalRecorde
1621
1668
  readonly _tag: "JoinedToHost";
1622
1669
  readonly submissionId: string;
1623
1670
  readonly hostSubmissionId: string;
1671
+ } | {
1672
+ readonly _tag: "AdmissionLimitExceeded";
1673
+ readonly limit: "database-bytes" | "input-bytes" | "queue-depth";
1674
+ readonly actual: number;
1675
+ readonly maximum: number;
1676
+ } | {
1677
+ readonly _tag: "HostProtocolError";
1678
+ readonly message: string;
1624
1679
  } | {
1625
1680
  readonly _tag: "ApprovalConflict";
1626
1681
  readonly submissionId: string;
@@ -8,8 +8,8 @@ import { Receipt } from "effect-agent/durable-agent-runtime";
8
8
  import { AgentId } from "effect-agent/identifiers";
9
9
  import { OperationDenied } from "effect-agent/operation-authorizer";
10
10
  import { AbortCommand, AbortIntent, AdmissionConflict, AdmissionFence, AdmissionGroup, AdmissionPolicyError, ApprovalConflict, ApprovalDecisionCommand, ApprovalDecisionIntent, IdempotencyKey, JoinedToHost, LedgerError, Principal, Settlement, SettlementConflict, UnknownResolutionCommand, UnknownResolutionConflict, UnknownResolutionIntent } from "effect-agent/submission-ledger";
11
- import { CanonicalRecordEnvelope, CanonicalSequence, DefinitionDigests, PersistedJson, WorkerAdmission } from "effect-agent/records";
12
11
  import { RpcTracing } from "effect-cf";
12
+ import { CanonicalRecordEnvelope, CanonicalSequence, DefinitionDigests, PersistedJson, WorkerAdmission } from "effect-agent/records";
13
13
  import { BrowserCrypto } from "@effect/platform-browser";
14
14
  import { AgentInputError } from "effect-agent/agent-error";
15
15
  import { DigestError } from "effect-agent/digest";
@@ -13,9 +13,9 @@ import { OperationAuthorizationRequest, OperationAuthorizer, OperationDenied, op
13
13
  import { AdmissionPolicyError, LedgerError, OwnershipLost, SettlementConflict, SubmissionLedger, SubmissionLookupById, SubmissionLookupByKey } from "effect-agent/submission-ledger";
14
14
  import { ThreadProjectionMaintenance } from "effect-agent/thread-projection-maintenance";
15
15
  import { WakeScheduler } from "effect-agent/wake-scheduler";
16
+ import { DurableObject, DurableObjectState, WorkerEnvironment } from "effect-cf";
16
17
  import { SqlClient } from "effect/unstable/sql/SqlClient";
17
18
  import { PersistedJson, ProducerId } from "effect-agent/records";
18
- import { DurableObject, DurableObjectState, WorkerEnvironment } from "effect-cf";
19
19
  import { BrowserCrypto } from "@effect/platform-browser";
20
20
  import { SqliteClient } from "@effect/sql-sqlite-do";
21
21
  import { DigestError } from "effect-agent/digest";
@@ -846,4 +846,4 @@ const make = (applicationLayer, options) => {
846
846
  //#endregion
847
847
  export { layer as C, layerInHost as E, ThreadObjectPorts as S, layerHostConfig as T, encodeAdminResponse as _, AdminVerifyRequest as a, portCall as b, RetryExecuted as c, VerifiedIntegrity as d, decodeAdminExplainRequest as f, decodeRetryCommand as g, decodeObligationThresholds as h, AdminResponse as i, ThreadObject_exports as l, decodeAdminVerifyRequest as m, AdminFailed as n, ExplainedRecovery as o, decodeAdminResponse as p, AdminFailure as r, ObligationsScanned as s, AdminExplainRequest as t, ThreadRpcOperation as u, handleRpc as v, layerConfig as w, submit as x, make as y };
848
848
 
849
- //# sourceMappingURL=ThreadObject-DaC-IhCm.mjs.map
849
+ //# sourceMappingURL=ThreadObject-CVhZC-7l.mjs.map