@effect-agent/platform-cloudflare 0.1.0-beta.125 → 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: {
@@ -667,14 +692,6 @@ export declare const encodeHostResponse: (input: AbortRecorded | ApprovalRecorde
667
692
  readonly createdAt: string;
668
693
  readonly deploymentId: string;
669
694
  readonly payload: {
670
- readonly _tag: "SubagentStarted";
671
- readonly runId: string;
672
- readonly toolCallId: string;
673
- readonly childThreadId: string;
674
- readonly childSubmissionId: string;
675
- readonly childReceiptId: string;
676
- readonly childRunId: string;
677
- } | {
678
695
  readonly _tag: "ThreadCreated";
679
696
  readonly agentId: string;
680
697
  readonly definitions: {
@@ -1091,6 +1108,14 @@ export declare const encodeHostResponse: (input: AbortRecorded | ApprovalRecorde
1091
1108
  readonly childLifetimes?: readonly ("attached" | "background")[] | undefined;
1092
1109
  } | undefined;
1093
1110
  readonly depth?: number | undefined;
1111
+ } | {
1112
+ readonly _tag: "SubagentStarted";
1113
+ readonly runId: string;
1114
+ readonly toolCallId: string;
1115
+ readonly childThreadId: string;
1116
+ readonly childSubmissionId: string;
1117
+ readonly childReceiptId: string;
1118
+ readonly childRunId: string;
1094
1119
  } | {
1095
1120
  readonly _tag: "SubagentJoined";
1096
1121
  readonly runId: string;
@@ -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;
@@ -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