@effect-agent/storage-cloudflare 0.1.0-beta.84 → 0.1.0-beta.86
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.
- package/dist/DoMemoryStore.d.mts +3 -3
- package/dist/DoMemoryStore.mjs +3 -3
- package/dist/DoMemoryStore.mjs.map +1 -1
- package/dist/DoMessageDeliveryStore.d.mts +1 -1
- package/dist/DoMessageDeliveryStore.mjs +3 -3
- package/dist/DoMessageDeliveryStore.mjs.map +1 -1
- package/dist/DoScheduleStore.d.mts +1 -1
- package/dist/DoScheduleStore.mjs +5 -5
- package/dist/DoScheduleStore.mjs.map +1 -1
- package/dist/DoStorageError.mjs +1 -1
- package/dist/DoStorageError.mjs.map +1 -1
- package/dist/DoSubmissionLedger.d.mts +1 -1
- package/dist/DoSubmissionLedger.mjs +35 -35
- package/dist/DoSubmissionLedger.mjs.map +1 -1
- package/dist/DoSubscriptionStore.d.mts +1 -1
- package/dist/DoSubscriptionStore.mjs +4 -4
- package/dist/DoSubscriptionStore.mjs.map +1 -1
- package/dist/DoThreadStore.d.mts +2 -2
- package/dist/DoThreadStore.mjs +26 -26
- package/dist/DoThreadStore.mjs.map +1 -1
- package/dist/MemoryProtocol.d.mts +272 -272
- package/dist/MemoryProtocol.mjs +8 -8
- package/dist/MemoryProtocol.mjs.map +1 -1
- package/dist/PortProtocol.d.mts +645 -48
- package/dist/PortProtocol.mjs +3 -3
- package/dist/PortProtocol.mjs.map +1 -1
- package/dist/PortRouting.d.mts +2 -2
- package/dist/PortRouting.mjs +2 -2
- package/dist/PortRouting.mjs.map +1 -1
- package/dist/{do-journal-DHqCQeBU.mjs → do-journal-dJ01KSKf.mjs} +7 -7
- package/dist/do-journal-dJ01KSKf.mjs.map +1 -0
- package/package.json +1 -1
- package/src/DoMemoryStore.ts +3 -6
- package/src/DoMessageDeliveryStore.ts +3 -3
- package/src/DoScheduleStore.ts +6 -6
- package/src/DoStorageError.ts +1 -1
- package/src/DoSubmissionLedger.ts +67 -67
- package/src/DoSubscriptionStore.ts +6 -6
- package/src/DoThreadStore.ts +51 -53
- package/src/MemoryProtocol.ts +9 -13
- package/src/PortProtocol.ts +4 -4
- package/src/PortRouting.ts +3 -3
- package/src/internal/do-journal.ts +8 -8
- package/dist/do-journal-DHqCQeBU.mjs.map +0 -1
package/dist/PortProtocol.d.mts
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { Schema } from "effect";
|
|
2
|
-
import { CanonicalRecordEnvelope } from "
|
|
3
|
-
import { AppendConflict, AppendResult, FenceRejected, FencedAppendRequest, ThreadExport, ThreadExportRequest, ThreadMaterialization, ThreadNotMaterialized, ThreadRead, ThreadStoreError, ThreadTail, ThreadTailRequest } from "
|
|
4
|
-
import { AbortCommand, AbortIntent, AdmissionConflict, AdmissionPolicyError, AdmissionRequest, AdmissionResult, ChildSettledNotification, JoinedToHost, LedgerError, MarkReadyRequest, SettlementConflict, SubmissionLookupByKey, SubmissionSnapshot } from "
|
|
2
|
+
import { CanonicalRecordEnvelope } from "effect-agent/records";
|
|
3
|
+
import { AppendConflict, AppendResult, FenceRejected, FencedAppendRequest, ThreadExport, ThreadExportRequest, ThreadMaterialization, ThreadNotMaterialized, ThreadRead, ThreadStoreError, ThreadTail, ThreadTailRequest } from "effect-agent/thread-store";
|
|
4
|
+
import { AbortCommand, AbortIntent, AdmissionConflict, AdmissionPolicyError, AdmissionRequest, AdmissionResult, ChildSettledNotification, JoinedToHost, LedgerError, MarkReadyRequest, SettlementConflict, SubmissionLookupByKey, SubmissionSnapshot } from "effect-agent/submission-ledger";
|
|
5
5
|
declare namespace PortProtocol_d_exports {
|
|
6
6
|
export { LedgerAdmitCall, LedgerAdmitResult, LedgerLookupCall, LedgerLookupResult, LedgerMarkReadyCall, LedgerMarkReadyResult, LedgerRecordChildSettledCall, LedgerRecordChildSettledResult, LedgerRequestAbortCall, LedgerRequestAbortResult, LedgerResolveAdmissionCall, LedgerResolveAdmissionResult, MAX_PORT_DIAGNOSTIC_LENGTH, PortFailed, PortFailure, PortProtocolError, PortRequest, PortRequestEnvelope, PortResponse, PortResponseEnvelope, PortResult, PortSucceeded, StoreAppendCall, StoreAppendResult, StoreExportCall, StoreExportResult, StoreInspectTailCall, StoreInspectTailResult, StoreMaterializeCall, StoreMaterializeResult, StoreReadPageCall, StoreReadPageResult, boundPortDiagnostic, decodePortRequest, decodePortResponse, encodePortRequest, encodePortResponse };
|
|
7
7
|
}
|
|
@@ -57,7 +57,7 @@ declare const LedgerMarkReadyCall_base: Schema.Class<LedgerMarkReadyCall, Schema
|
|
|
57
57
|
/** Routed `SubmissionLedger.markReady` for a Submission owned by another Object. */
|
|
58
58
|
declare class LedgerMarkReadyCall extends LedgerMarkReadyCall_base {}
|
|
59
59
|
declare const LedgerLookupCall_base: Schema.Class<LedgerLookupCall, Schema.TaggedStruct<"LedgerLookup", {
|
|
60
|
-
readonly request: Schema.Union<readonly [typeof import("
|
|
60
|
+
readonly request: Schema.Union<readonly [typeof import("effect-agent/submission-ledger").SubmissionLookupById, typeof SubmissionLookupByKey]>;
|
|
61
61
|
}>, {}>;
|
|
62
62
|
/** Routed `SubmissionLedger.lookup` (by identity or scoped idempotency key). */
|
|
63
63
|
declare class LedgerLookupCall extends LedgerLookupCall_base {}
|
|
@@ -118,7 +118,7 @@ declare const LedgerLookupResult_base: Schema.Class<LedgerLookupResult, Schema.T
|
|
|
118
118
|
/** `submission` is absent exactly when the lookup answered `Option.none`. */
|
|
119
119
|
declare class LedgerLookupResult extends LedgerLookupResult_base {}
|
|
120
120
|
declare const LedgerResolveAdmissionResult_base: Schema.Class<LedgerResolveAdmissionResult, Schema.TaggedStruct<"LedgerResolveAdmissionResult", {
|
|
121
|
-
readonly resolution: Schema.Union<readonly [typeof import("
|
|
121
|
+
readonly resolution: Schema.Union<readonly [typeof import("effect-agent/submission-ledger").AdmissionNotAdmitted, typeof import("effect-agent/submission-ledger").AdmissionAdmitted, typeof import("effect-agent/submission-ledger").AdmissionIndeterminate]>;
|
|
122
122
|
}>, {}>;
|
|
123
123
|
declare class LedgerResolveAdmissionResult extends LedgerResolveAdmissionResult_base {}
|
|
124
124
|
declare const LedgerRequestAbortResult_base: Schema.Class<LedgerRequestAbortResult, Schema.TaggedStruct<"LedgerRequestAbortResult", {
|
|
@@ -252,6 +252,7 @@ declare const encodePortRequest: (input: LedgerAdmitCall | LedgerLookupCall | Le
|
|
|
252
252
|
readonly createdAtMillis: number;
|
|
253
253
|
readonly expiresAtMillis: number;
|
|
254
254
|
readonly reporting?: {
|
|
255
|
+
readonly mode?: "standard" | undefined;
|
|
255
256
|
readonly sourceDigests: {
|
|
256
257
|
readonly agent: string;
|
|
257
258
|
readonly model: string;
|
|
@@ -265,6 +266,7 @@ declare const encodePortRequest: (input: LedgerAdmitCall | LedgerLookupCall | Le
|
|
|
265
266
|
readonly createdAtMillis: number;
|
|
266
267
|
readonly sourceSubmissionId?: string | undefined;
|
|
267
268
|
readonly deliveryPrincipal?: string | undefined;
|
|
269
|
+
readonly reportKind?: "update" | undefined;
|
|
268
270
|
} | undefined;
|
|
269
271
|
readonly messageAdmission?: {
|
|
270
272
|
readonly schemaVersion: 1;
|
|
@@ -285,6 +287,75 @@ declare const encodePortRequest: (input: LedgerAdmitCall | LedgerLookupCall | Le
|
|
|
285
287
|
readonly ownerThreadId: string;
|
|
286
288
|
readonly messageId: string;
|
|
287
289
|
} | undefined;
|
|
290
|
+
} | {
|
|
291
|
+
readonly _tag: "WorkerCompletion";
|
|
292
|
+
readonly budgetExhausted: boolean;
|
|
293
|
+
readonly schemaVersion: 1;
|
|
294
|
+
readonly report: {
|
|
295
|
+
readonly _tag: "Settled";
|
|
296
|
+
readonly worker: {
|
|
297
|
+
readonly schemaVersion: 1;
|
|
298
|
+
readonly delegationId: string;
|
|
299
|
+
readonly targetAgentId: string;
|
|
300
|
+
readonly threadId: string;
|
|
301
|
+
};
|
|
302
|
+
readonly receipt: {
|
|
303
|
+
readonly receiptId: string;
|
|
304
|
+
readonly submissionId: string;
|
|
305
|
+
readonly threadId: string;
|
|
306
|
+
readonly queueSequence: number;
|
|
307
|
+
};
|
|
308
|
+
readonly runId: string;
|
|
309
|
+
readonly settlementId: string;
|
|
310
|
+
readonly outcome: "completed";
|
|
311
|
+
readonly result: Schema.Json;
|
|
312
|
+
} | {
|
|
313
|
+
readonly _tag: "Settled";
|
|
314
|
+
readonly worker: {
|
|
315
|
+
readonly schemaVersion: 1;
|
|
316
|
+
readonly delegationId: string;
|
|
317
|
+
readonly targetAgentId: string;
|
|
318
|
+
readonly threadId: string;
|
|
319
|
+
};
|
|
320
|
+
readonly receipt: {
|
|
321
|
+
readonly receiptId: string;
|
|
322
|
+
readonly submissionId: string;
|
|
323
|
+
readonly threadId: string;
|
|
324
|
+
readonly queueSequence: number;
|
|
325
|
+
};
|
|
326
|
+
readonly runId: string;
|
|
327
|
+
readonly settlementId: string;
|
|
328
|
+
readonly outcome: "aborted" | "failed";
|
|
329
|
+
readonly failure: {
|
|
330
|
+
readonly _tag: "SubagentExecutionFailure";
|
|
331
|
+
readonly delegationId: string;
|
|
332
|
+
readonly targetAgentId: string;
|
|
333
|
+
readonly classification: "child-aborted" | "child-compatibility" | "child-failed" | "declaration-unavailable" | "establishment-denied";
|
|
334
|
+
readonly childThreadId?: string | undefined;
|
|
335
|
+
readonly childSubmissionId?: string | undefined;
|
|
336
|
+
readonly childRunId?: string | undefined;
|
|
337
|
+
readonly errorTag: string;
|
|
338
|
+
readonly message: string;
|
|
339
|
+
};
|
|
340
|
+
};
|
|
341
|
+
} | {
|
|
342
|
+
readonly _tag: "WorkerUpdate";
|
|
343
|
+
readonly schemaVersion: 1;
|
|
344
|
+
readonly worker: {
|
|
345
|
+
readonly schemaVersion: 1;
|
|
346
|
+
readonly delegationId: string;
|
|
347
|
+
readonly targetAgentId: string;
|
|
348
|
+
readonly threadId: string;
|
|
349
|
+
};
|
|
350
|
+
readonly update: {
|
|
351
|
+
readonly schemaVersion: 1;
|
|
352
|
+
readonly agentId: string;
|
|
353
|
+
readonly threadId: string;
|
|
354
|
+
readonly runId: string;
|
|
355
|
+
readonly updateId: string;
|
|
356
|
+
readonly sequence: number;
|
|
357
|
+
readonly value: Schema.Json;
|
|
358
|
+
};
|
|
288
359
|
} | undefined;
|
|
289
360
|
readonly admissionGroup?: string | undefined;
|
|
290
361
|
readonly admissionFence?: {
|
|
@@ -350,11 +421,6 @@ declare const encodePortRequest: (input: LedgerAdmitCall | LedgerLookupCall | Le
|
|
|
350
421
|
readonly createdAt: string;
|
|
351
422
|
readonly deploymentId: string;
|
|
352
423
|
readonly payload: {
|
|
353
|
-
readonly _tag: "AbortRequested";
|
|
354
|
-
readonly submissionId: string;
|
|
355
|
-
readonly author: string;
|
|
356
|
-
readonly reason: string;
|
|
357
|
-
} | {
|
|
358
424
|
readonly _tag: "ThreadCreated";
|
|
359
425
|
readonly agentId: string;
|
|
360
426
|
readonly definitions: {
|
|
@@ -387,6 +453,75 @@ declare const encodePortRequest: (input: LedgerAdmitCall | LedgerLookupCall | Le
|
|
|
387
453
|
readonly ownerThreadId: string;
|
|
388
454
|
readonly messageId: string;
|
|
389
455
|
} | undefined;
|
|
456
|
+
} | {
|
|
457
|
+
readonly _tag: "WorkerCompletion";
|
|
458
|
+
readonly budgetExhausted: boolean;
|
|
459
|
+
readonly schemaVersion: 1;
|
|
460
|
+
readonly report: {
|
|
461
|
+
readonly _tag: "Settled";
|
|
462
|
+
readonly worker: {
|
|
463
|
+
readonly schemaVersion: 1;
|
|
464
|
+
readonly delegationId: string;
|
|
465
|
+
readonly targetAgentId: string;
|
|
466
|
+
readonly threadId: string;
|
|
467
|
+
};
|
|
468
|
+
readonly receipt: {
|
|
469
|
+
readonly receiptId: string;
|
|
470
|
+
readonly submissionId: string;
|
|
471
|
+
readonly threadId: string;
|
|
472
|
+
readonly queueSequence: number;
|
|
473
|
+
};
|
|
474
|
+
readonly runId: string;
|
|
475
|
+
readonly settlementId: string;
|
|
476
|
+
readonly outcome: "completed";
|
|
477
|
+
readonly result: Schema.Json;
|
|
478
|
+
} | {
|
|
479
|
+
readonly _tag: "Settled";
|
|
480
|
+
readonly worker: {
|
|
481
|
+
readonly schemaVersion: 1;
|
|
482
|
+
readonly delegationId: string;
|
|
483
|
+
readonly targetAgentId: string;
|
|
484
|
+
readonly threadId: string;
|
|
485
|
+
};
|
|
486
|
+
readonly receipt: {
|
|
487
|
+
readonly receiptId: string;
|
|
488
|
+
readonly submissionId: string;
|
|
489
|
+
readonly threadId: string;
|
|
490
|
+
readonly queueSequence: number;
|
|
491
|
+
};
|
|
492
|
+
readonly runId: string;
|
|
493
|
+
readonly settlementId: string;
|
|
494
|
+
readonly outcome: "aborted" | "failed";
|
|
495
|
+
readonly failure: {
|
|
496
|
+
readonly _tag: "SubagentExecutionFailure";
|
|
497
|
+
readonly delegationId: string;
|
|
498
|
+
readonly targetAgentId: string;
|
|
499
|
+
readonly classification: "child-aborted" | "child-compatibility" | "child-failed" | "declaration-unavailable" | "establishment-denied";
|
|
500
|
+
readonly childThreadId?: string | undefined;
|
|
501
|
+
readonly childSubmissionId?: string | undefined;
|
|
502
|
+
readonly childRunId?: string | undefined;
|
|
503
|
+
readonly errorTag: string;
|
|
504
|
+
readonly message: string;
|
|
505
|
+
};
|
|
506
|
+
};
|
|
507
|
+
} | {
|
|
508
|
+
readonly _tag: "WorkerUpdate";
|
|
509
|
+
readonly schemaVersion: 1;
|
|
510
|
+
readonly worker: {
|
|
511
|
+
readonly schemaVersion: 1;
|
|
512
|
+
readonly delegationId: string;
|
|
513
|
+
readonly targetAgentId: string;
|
|
514
|
+
readonly threadId: string;
|
|
515
|
+
};
|
|
516
|
+
readonly update: {
|
|
517
|
+
readonly schemaVersion: 1;
|
|
518
|
+
readonly agentId: string;
|
|
519
|
+
readonly threadId: string;
|
|
520
|
+
readonly runId: string;
|
|
521
|
+
readonly updateId: string;
|
|
522
|
+
readonly sequence: number;
|
|
523
|
+
readonly value: Schema.Json;
|
|
524
|
+
};
|
|
390
525
|
} | undefined;
|
|
391
526
|
} | {
|
|
392
527
|
readonly _tag: "RunStarted";
|
|
@@ -529,6 +664,11 @@ declare const encodePortRequest: (input: LedgerAdmitCall | LedgerLookupCall | Le
|
|
|
529
664
|
readonly runDisposition?: Schema.Json | undefined;
|
|
530
665
|
readonly finishReason?: "budget-exhausted" | undefined;
|
|
531
666
|
readonly exhausted?: "tokens" | "tool-calls" | "turns" | undefined;
|
|
667
|
+
} | {
|
|
668
|
+
readonly _tag: "AbortRequested";
|
|
669
|
+
readonly submissionId: string;
|
|
670
|
+
readonly author: string;
|
|
671
|
+
readonly reason: string;
|
|
532
672
|
} | {
|
|
533
673
|
readonly _tag: "SubmissionSettled";
|
|
534
674
|
readonly submissionId: string;
|
|
@@ -804,6 +944,7 @@ declare const encodePortRequest: (input: LedgerAdmitCall | LedgerLookupCall | Le
|
|
|
804
944
|
readonly createdAtMillis: number;
|
|
805
945
|
readonly expiresAtMillis: number;
|
|
806
946
|
readonly reporting?: {
|
|
947
|
+
readonly mode?: "standard" | undefined;
|
|
807
948
|
readonly sourceDigests: {
|
|
808
949
|
readonly agent: string;
|
|
809
950
|
readonly model: string;
|
|
@@ -817,6 +958,7 @@ declare const encodePortRequest: (input: LedgerAdmitCall | LedgerLookupCall | Le
|
|
|
817
958
|
readonly createdAtMillis: number;
|
|
818
959
|
readonly sourceSubmissionId?: string | undefined;
|
|
819
960
|
readonly deliveryPrincipal?: string | undefined;
|
|
961
|
+
readonly reportKind?: "update" | undefined;
|
|
820
962
|
};
|
|
821
963
|
readonly inputDigest: string;
|
|
822
964
|
} | {
|
|
@@ -880,6 +1022,7 @@ declare const encodePortRequest: (input: LedgerAdmitCall | LedgerLookupCall | Le
|
|
|
880
1022
|
readonly createdAtMillis: number;
|
|
881
1023
|
readonly expiresAtMillis: number;
|
|
882
1024
|
readonly reporting?: {
|
|
1025
|
+
readonly mode?: "standard" | undefined;
|
|
883
1026
|
readonly sourceDigests: {
|
|
884
1027
|
readonly agent: string;
|
|
885
1028
|
readonly model: string;
|
|
@@ -903,6 +1046,30 @@ declare const encodePortRequest: (input: LedgerAdmitCall | LedgerLookupCall | Le
|
|
|
903
1046
|
readonly envelope: Schema.Json;
|
|
904
1047
|
readonly createdAtMillis: number;
|
|
905
1048
|
readonly deadlineAtMillis: number;
|
|
1049
|
+
readonly predecessor?: string | undefined;
|
|
1050
|
+
} | {
|
|
1051
|
+
readonly _tag: "AgentUpdateEmitted";
|
|
1052
|
+
readonly update: {
|
|
1053
|
+
readonly schemaVersion: 1;
|
|
1054
|
+
readonly agentId: string;
|
|
1055
|
+
readonly threadId: string;
|
|
1056
|
+
readonly runId: string;
|
|
1057
|
+
readonly updateId: string;
|
|
1058
|
+
readonly sequence: number;
|
|
1059
|
+
readonly value: Schema.Json;
|
|
1060
|
+
};
|
|
1061
|
+
readonly definitions: {
|
|
1062
|
+
readonly agent: string;
|
|
1063
|
+
readonly model: string;
|
|
1064
|
+
readonly tools: string;
|
|
1065
|
+
};
|
|
1066
|
+
readonly delivery?: {
|
|
1067
|
+
readonly messageId: string;
|
|
1068
|
+
readonly envelope: Schema.Json;
|
|
1069
|
+
readonly createdAtMillis: number;
|
|
1070
|
+
readonly deadlineAtMillis: number;
|
|
1071
|
+
readonly predecessor?: string | undefined;
|
|
1072
|
+
} | undefined;
|
|
906
1073
|
} | {
|
|
907
1074
|
readonly _tag: "WorkerReportRefused";
|
|
908
1075
|
readonly runId: string;
|
|
@@ -963,11 +1130,6 @@ declare const encodePortRequest: (input: LedgerAdmitCall | LedgerLookupCall | Le
|
|
|
963
1130
|
readonly createdAt: string;
|
|
964
1131
|
readonly deploymentId: string;
|
|
965
1132
|
readonly payload: {
|
|
966
|
-
readonly _tag: "AbortRequested";
|
|
967
|
-
readonly submissionId: string;
|
|
968
|
-
readonly author: string;
|
|
969
|
-
readonly reason: string;
|
|
970
|
-
} | {
|
|
971
1133
|
readonly _tag: "ThreadCreated";
|
|
972
1134
|
readonly agentId: string;
|
|
973
1135
|
readonly definitions: {
|
|
@@ -1000,6 +1162,75 @@ declare const encodePortRequest: (input: LedgerAdmitCall | LedgerLookupCall | Le
|
|
|
1000
1162
|
readonly ownerThreadId: string;
|
|
1001
1163
|
readonly messageId: string;
|
|
1002
1164
|
} | undefined;
|
|
1165
|
+
} | {
|
|
1166
|
+
readonly _tag: "WorkerCompletion";
|
|
1167
|
+
readonly budgetExhausted: boolean;
|
|
1168
|
+
readonly schemaVersion: 1;
|
|
1169
|
+
readonly report: {
|
|
1170
|
+
readonly _tag: "Settled";
|
|
1171
|
+
readonly worker: {
|
|
1172
|
+
readonly schemaVersion: 1;
|
|
1173
|
+
readonly delegationId: string;
|
|
1174
|
+
readonly targetAgentId: string;
|
|
1175
|
+
readonly threadId: string;
|
|
1176
|
+
};
|
|
1177
|
+
readonly receipt: {
|
|
1178
|
+
readonly receiptId: string;
|
|
1179
|
+
readonly submissionId: string;
|
|
1180
|
+
readonly threadId: string;
|
|
1181
|
+
readonly queueSequence: number;
|
|
1182
|
+
};
|
|
1183
|
+
readonly runId: string;
|
|
1184
|
+
readonly settlementId: string;
|
|
1185
|
+
readonly outcome: "completed";
|
|
1186
|
+
readonly result: Schema.Json;
|
|
1187
|
+
} | {
|
|
1188
|
+
readonly _tag: "Settled";
|
|
1189
|
+
readonly worker: {
|
|
1190
|
+
readonly schemaVersion: 1;
|
|
1191
|
+
readonly delegationId: string;
|
|
1192
|
+
readonly targetAgentId: string;
|
|
1193
|
+
readonly threadId: string;
|
|
1194
|
+
};
|
|
1195
|
+
readonly receipt: {
|
|
1196
|
+
readonly receiptId: string;
|
|
1197
|
+
readonly submissionId: string;
|
|
1198
|
+
readonly threadId: string;
|
|
1199
|
+
readonly queueSequence: number;
|
|
1200
|
+
};
|
|
1201
|
+
readonly runId: string;
|
|
1202
|
+
readonly settlementId: string;
|
|
1203
|
+
readonly outcome: "aborted" | "failed";
|
|
1204
|
+
readonly failure: {
|
|
1205
|
+
readonly _tag: "SubagentExecutionFailure";
|
|
1206
|
+
readonly delegationId: string;
|
|
1207
|
+
readonly targetAgentId: string;
|
|
1208
|
+
readonly classification: "child-aborted" | "child-compatibility" | "child-failed" | "declaration-unavailable" | "establishment-denied";
|
|
1209
|
+
readonly childThreadId?: string | undefined;
|
|
1210
|
+
readonly childSubmissionId?: string | undefined;
|
|
1211
|
+
readonly childRunId?: string | undefined;
|
|
1212
|
+
readonly errorTag: string;
|
|
1213
|
+
readonly message: string;
|
|
1214
|
+
};
|
|
1215
|
+
};
|
|
1216
|
+
} | {
|
|
1217
|
+
readonly _tag: "WorkerUpdate";
|
|
1218
|
+
readonly schemaVersion: 1;
|
|
1219
|
+
readonly worker: {
|
|
1220
|
+
readonly schemaVersion: 1;
|
|
1221
|
+
readonly delegationId: string;
|
|
1222
|
+
readonly targetAgentId: string;
|
|
1223
|
+
readonly threadId: string;
|
|
1224
|
+
};
|
|
1225
|
+
readonly update: {
|
|
1226
|
+
readonly schemaVersion: 1;
|
|
1227
|
+
readonly agentId: string;
|
|
1228
|
+
readonly threadId: string;
|
|
1229
|
+
readonly runId: string;
|
|
1230
|
+
readonly updateId: string;
|
|
1231
|
+
readonly sequence: number;
|
|
1232
|
+
readonly value: Schema.Json;
|
|
1233
|
+
};
|
|
1003
1234
|
} | undefined;
|
|
1004
1235
|
} | {
|
|
1005
1236
|
readonly _tag: "RunStarted";
|
|
@@ -1142,6 +1373,11 @@ declare const encodePortRequest: (input: LedgerAdmitCall | LedgerLookupCall | Le
|
|
|
1142
1373
|
readonly runDisposition?: Schema.Json | undefined;
|
|
1143
1374
|
readonly finishReason?: "budget-exhausted" | undefined;
|
|
1144
1375
|
readonly exhausted?: "tokens" | "tool-calls" | "turns" | undefined;
|
|
1376
|
+
} | {
|
|
1377
|
+
readonly _tag: "AbortRequested";
|
|
1378
|
+
readonly submissionId: string;
|
|
1379
|
+
readonly author: string;
|
|
1380
|
+
readonly reason: string;
|
|
1145
1381
|
} | {
|
|
1146
1382
|
readonly _tag: "SubmissionSettled";
|
|
1147
1383
|
readonly submissionId: string;
|
|
@@ -1417,6 +1653,7 @@ declare const encodePortRequest: (input: LedgerAdmitCall | LedgerLookupCall | Le
|
|
|
1417
1653
|
readonly createdAtMillis: number;
|
|
1418
1654
|
readonly expiresAtMillis: number;
|
|
1419
1655
|
readonly reporting?: {
|
|
1656
|
+
readonly mode?: "standard" | undefined;
|
|
1420
1657
|
readonly sourceDigests: {
|
|
1421
1658
|
readonly agent: string;
|
|
1422
1659
|
readonly model: string;
|
|
@@ -1430,6 +1667,7 @@ declare const encodePortRequest: (input: LedgerAdmitCall | LedgerLookupCall | Le
|
|
|
1430
1667
|
readonly createdAtMillis: number;
|
|
1431
1668
|
readonly sourceSubmissionId?: string | undefined;
|
|
1432
1669
|
readonly deliveryPrincipal?: string | undefined;
|
|
1670
|
+
readonly reportKind?: "update" | undefined;
|
|
1433
1671
|
};
|
|
1434
1672
|
readonly inputDigest: string;
|
|
1435
1673
|
} | {
|
|
@@ -1493,6 +1731,7 @@ declare const encodePortRequest: (input: LedgerAdmitCall | LedgerLookupCall | Le
|
|
|
1493
1731
|
readonly createdAtMillis: number;
|
|
1494
1732
|
readonly expiresAtMillis: number;
|
|
1495
1733
|
readonly reporting?: {
|
|
1734
|
+
readonly mode?: "standard" | undefined;
|
|
1496
1735
|
readonly sourceDigests: {
|
|
1497
1736
|
readonly agent: string;
|
|
1498
1737
|
readonly model: string;
|
|
@@ -1516,6 +1755,30 @@ declare const encodePortRequest: (input: LedgerAdmitCall | LedgerLookupCall | Le
|
|
|
1516
1755
|
readonly envelope: Schema.Json;
|
|
1517
1756
|
readonly createdAtMillis: number;
|
|
1518
1757
|
readonly deadlineAtMillis: number;
|
|
1758
|
+
readonly predecessor?: string | undefined;
|
|
1759
|
+
} | {
|
|
1760
|
+
readonly _tag: "AgentUpdateEmitted";
|
|
1761
|
+
readonly update: {
|
|
1762
|
+
readonly schemaVersion: 1;
|
|
1763
|
+
readonly agentId: string;
|
|
1764
|
+
readonly threadId: string;
|
|
1765
|
+
readonly runId: string;
|
|
1766
|
+
readonly updateId: string;
|
|
1767
|
+
readonly sequence: number;
|
|
1768
|
+
readonly value: Schema.Json;
|
|
1769
|
+
};
|
|
1770
|
+
readonly definitions: {
|
|
1771
|
+
readonly agent: string;
|
|
1772
|
+
readonly model: string;
|
|
1773
|
+
readonly tools: string;
|
|
1774
|
+
};
|
|
1775
|
+
readonly delivery?: {
|
|
1776
|
+
readonly messageId: string;
|
|
1777
|
+
readonly envelope: Schema.Json;
|
|
1778
|
+
readonly createdAtMillis: number;
|
|
1779
|
+
readonly deadlineAtMillis: number;
|
|
1780
|
+
readonly predecessor?: string | undefined;
|
|
1781
|
+
} | undefined;
|
|
1519
1782
|
} | {
|
|
1520
1783
|
readonly _tag: "WorkerReportRefused";
|
|
1521
1784
|
readonly runId: string;
|
|
@@ -1699,6 +1962,7 @@ declare const encodePortResponse: (input: PortFailed | PortSucceeded, options?:
|
|
|
1699
1962
|
readonly createdAtMillis: number;
|
|
1700
1963
|
readonly expiresAtMillis: number;
|
|
1701
1964
|
readonly reporting?: {
|
|
1965
|
+
readonly mode?: "standard" | undefined;
|
|
1702
1966
|
readonly sourceDigests: {
|
|
1703
1967
|
readonly agent: string;
|
|
1704
1968
|
readonly model: string;
|
|
@@ -1712,6 +1976,7 @@ declare const encodePortResponse: (input: PortFailed | PortSucceeded, options?:
|
|
|
1712
1976
|
readonly createdAtMillis: number;
|
|
1713
1977
|
readonly sourceSubmissionId?: string | undefined;
|
|
1714
1978
|
readonly deliveryPrincipal?: string | undefined;
|
|
1979
|
+
readonly reportKind?: "update" | undefined;
|
|
1715
1980
|
} | undefined;
|
|
1716
1981
|
readonly messageAdmission?: {
|
|
1717
1982
|
readonly schemaVersion: 1;
|
|
@@ -1732,6 +1997,75 @@ declare const encodePortResponse: (input: PortFailed | PortSucceeded, options?:
|
|
|
1732
1997
|
readonly ownerThreadId: string;
|
|
1733
1998
|
readonly messageId: string;
|
|
1734
1999
|
} | undefined;
|
|
2000
|
+
} | {
|
|
2001
|
+
readonly _tag: "WorkerCompletion";
|
|
2002
|
+
readonly budgetExhausted: boolean;
|
|
2003
|
+
readonly schemaVersion: 1;
|
|
2004
|
+
readonly report: {
|
|
2005
|
+
readonly _tag: "Settled";
|
|
2006
|
+
readonly worker: {
|
|
2007
|
+
readonly schemaVersion: 1;
|
|
2008
|
+
readonly delegationId: string;
|
|
2009
|
+
readonly targetAgentId: string;
|
|
2010
|
+
readonly threadId: string;
|
|
2011
|
+
};
|
|
2012
|
+
readonly receipt: {
|
|
2013
|
+
readonly receiptId: string;
|
|
2014
|
+
readonly submissionId: string;
|
|
2015
|
+
readonly threadId: string;
|
|
2016
|
+
readonly queueSequence: number;
|
|
2017
|
+
};
|
|
2018
|
+
readonly runId: string;
|
|
2019
|
+
readonly settlementId: string;
|
|
2020
|
+
readonly outcome: "completed";
|
|
2021
|
+
readonly result: Schema.Json;
|
|
2022
|
+
} | {
|
|
2023
|
+
readonly _tag: "Settled";
|
|
2024
|
+
readonly worker: {
|
|
2025
|
+
readonly schemaVersion: 1;
|
|
2026
|
+
readonly delegationId: string;
|
|
2027
|
+
readonly targetAgentId: string;
|
|
2028
|
+
readonly threadId: string;
|
|
2029
|
+
};
|
|
2030
|
+
readonly receipt: {
|
|
2031
|
+
readonly receiptId: string;
|
|
2032
|
+
readonly submissionId: string;
|
|
2033
|
+
readonly threadId: string;
|
|
2034
|
+
readonly queueSequence: number;
|
|
2035
|
+
};
|
|
2036
|
+
readonly runId: string;
|
|
2037
|
+
readonly settlementId: string;
|
|
2038
|
+
readonly outcome: "aborted" | "failed";
|
|
2039
|
+
readonly failure: {
|
|
2040
|
+
readonly _tag: "SubagentExecutionFailure";
|
|
2041
|
+
readonly delegationId: string;
|
|
2042
|
+
readonly targetAgentId: string;
|
|
2043
|
+
readonly classification: "child-aborted" | "child-compatibility" | "child-failed" | "declaration-unavailable" | "establishment-denied";
|
|
2044
|
+
readonly childThreadId?: string | undefined;
|
|
2045
|
+
readonly childSubmissionId?: string | undefined;
|
|
2046
|
+
readonly childRunId?: string | undefined;
|
|
2047
|
+
readonly errorTag: string;
|
|
2048
|
+
readonly message: string;
|
|
2049
|
+
};
|
|
2050
|
+
};
|
|
2051
|
+
} | {
|
|
2052
|
+
readonly _tag: "WorkerUpdate";
|
|
2053
|
+
readonly schemaVersion: 1;
|
|
2054
|
+
readonly worker: {
|
|
2055
|
+
readonly schemaVersion: 1;
|
|
2056
|
+
readonly delegationId: string;
|
|
2057
|
+
readonly targetAgentId: string;
|
|
2058
|
+
readonly threadId: string;
|
|
2059
|
+
};
|
|
2060
|
+
readonly update: {
|
|
2061
|
+
readonly schemaVersion: 1;
|
|
2062
|
+
readonly agentId: string;
|
|
2063
|
+
readonly threadId: string;
|
|
2064
|
+
readonly runId: string;
|
|
2065
|
+
readonly updateId: string;
|
|
2066
|
+
readonly sequence: number;
|
|
2067
|
+
readonly value: Schema.Json;
|
|
2068
|
+
};
|
|
1735
2069
|
} | undefined;
|
|
1736
2070
|
} | undefined;
|
|
1737
2071
|
} | {
|
|
@@ -1830,6 +2164,7 @@ declare const encodePortResponse: (input: PortFailed | PortSucceeded, options?:
|
|
|
1830
2164
|
readonly createdAtMillis: number;
|
|
1831
2165
|
readonly expiresAtMillis: number;
|
|
1832
2166
|
readonly reporting?: {
|
|
2167
|
+
readonly mode?: "standard" | undefined;
|
|
1833
2168
|
readonly sourceDigests: {
|
|
1834
2169
|
readonly agent: string;
|
|
1835
2170
|
readonly model: string;
|
|
@@ -1843,6 +2178,7 @@ declare const encodePortResponse: (input: PortFailed | PortSucceeded, options?:
|
|
|
1843
2178
|
readonly createdAtMillis: number;
|
|
1844
2179
|
readonly sourceSubmissionId?: string | undefined;
|
|
1845
2180
|
readonly deliveryPrincipal?: string | undefined;
|
|
2181
|
+
readonly reportKind?: "update" | undefined;
|
|
1846
2182
|
} | undefined;
|
|
1847
2183
|
readonly messageAdmission?: {
|
|
1848
2184
|
readonly schemaVersion: 1;
|
|
@@ -1863,6 +2199,75 @@ declare const encodePortResponse: (input: PortFailed | PortSucceeded, options?:
|
|
|
1863
2199
|
readonly ownerThreadId: string;
|
|
1864
2200
|
readonly messageId: string;
|
|
1865
2201
|
} | undefined;
|
|
2202
|
+
} | {
|
|
2203
|
+
readonly _tag: "WorkerCompletion";
|
|
2204
|
+
readonly budgetExhausted: boolean;
|
|
2205
|
+
readonly schemaVersion: 1;
|
|
2206
|
+
readonly report: {
|
|
2207
|
+
readonly _tag: "Settled";
|
|
2208
|
+
readonly worker: {
|
|
2209
|
+
readonly schemaVersion: 1;
|
|
2210
|
+
readonly delegationId: string;
|
|
2211
|
+
readonly targetAgentId: string;
|
|
2212
|
+
readonly threadId: string;
|
|
2213
|
+
};
|
|
2214
|
+
readonly receipt: {
|
|
2215
|
+
readonly receiptId: string;
|
|
2216
|
+
readonly submissionId: string;
|
|
2217
|
+
readonly threadId: string;
|
|
2218
|
+
readonly queueSequence: number;
|
|
2219
|
+
};
|
|
2220
|
+
readonly runId: string;
|
|
2221
|
+
readonly settlementId: string;
|
|
2222
|
+
readonly outcome: "completed";
|
|
2223
|
+
readonly result: Schema.Json;
|
|
2224
|
+
} | {
|
|
2225
|
+
readonly _tag: "Settled";
|
|
2226
|
+
readonly worker: {
|
|
2227
|
+
readonly schemaVersion: 1;
|
|
2228
|
+
readonly delegationId: string;
|
|
2229
|
+
readonly targetAgentId: string;
|
|
2230
|
+
readonly threadId: string;
|
|
2231
|
+
};
|
|
2232
|
+
readonly receipt: {
|
|
2233
|
+
readonly receiptId: string;
|
|
2234
|
+
readonly submissionId: string;
|
|
2235
|
+
readonly threadId: string;
|
|
2236
|
+
readonly queueSequence: number;
|
|
2237
|
+
};
|
|
2238
|
+
readonly runId: string;
|
|
2239
|
+
readonly settlementId: string;
|
|
2240
|
+
readonly outcome: "aborted" | "failed";
|
|
2241
|
+
readonly failure: {
|
|
2242
|
+
readonly _tag: "SubagentExecutionFailure";
|
|
2243
|
+
readonly delegationId: string;
|
|
2244
|
+
readonly targetAgentId: string;
|
|
2245
|
+
readonly classification: "child-aborted" | "child-compatibility" | "child-failed" | "declaration-unavailable" | "establishment-denied";
|
|
2246
|
+
readonly childThreadId?: string | undefined;
|
|
2247
|
+
readonly childSubmissionId?: string | undefined;
|
|
2248
|
+
readonly childRunId?: string | undefined;
|
|
2249
|
+
readonly errorTag: string;
|
|
2250
|
+
readonly message: string;
|
|
2251
|
+
};
|
|
2252
|
+
};
|
|
2253
|
+
} | {
|
|
2254
|
+
readonly _tag: "WorkerUpdate";
|
|
2255
|
+
readonly schemaVersion: 1;
|
|
2256
|
+
readonly worker: {
|
|
2257
|
+
readonly schemaVersion: 1;
|
|
2258
|
+
readonly delegationId: string;
|
|
2259
|
+
readonly targetAgentId: string;
|
|
2260
|
+
readonly threadId: string;
|
|
2261
|
+
};
|
|
2262
|
+
readonly update: {
|
|
2263
|
+
readonly schemaVersion: 1;
|
|
2264
|
+
readonly agentId: string;
|
|
2265
|
+
readonly threadId: string;
|
|
2266
|
+
readonly runId: string;
|
|
2267
|
+
readonly updateId: string;
|
|
2268
|
+
readonly sequence: number;
|
|
2269
|
+
readonly value: Schema.Json;
|
|
2270
|
+
};
|
|
1866
2271
|
} | undefined;
|
|
1867
2272
|
};
|
|
1868
2273
|
} | {
|
|
@@ -1905,11 +2310,6 @@ declare const encodePortResponse: (input: PortFailed | PortSucceeded, options?:
|
|
|
1905
2310
|
readonly createdAt: string;
|
|
1906
2311
|
readonly deploymentId: string;
|
|
1907
2312
|
readonly payload: {
|
|
1908
|
-
readonly _tag: "AbortRequested";
|
|
1909
|
-
readonly submissionId: string;
|
|
1910
|
-
readonly author: string;
|
|
1911
|
-
readonly reason: string;
|
|
1912
|
-
} | {
|
|
1913
2313
|
readonly _tag: "ThreadCreated";
|
|
1914
2314
|
readonly agentId: string;
|
|
1915
2315
|
readonly definitions: {
|
|
@@ -1942,6 +2342,75 @@ declare const encodePortResponse: (input: PortFailed | PortSucceeded, options?:
|
|
|
1942
2342
|
readonly ownerThreadId: string;
|
|
1943
2343
|
readonly messageId: string;
|
|
1944
2344
|
} | undefined;
|
|
2345
|
+
} | {
|
|
2346
|
+
readonly _tag: "WorkerCompletion";
|
|
2347
|
+
readonly budgetExhausted: boolean;
|
|
2348
|
+
readonly schemaVersion: 1;
|
|
2349
|
+
readonly report: {
|
|
2350
|
+
readonly _tag: "Settled";
|
|
2351
|
+
readonly worker: {
|
|
2352
|
+
readonly schemaVersion: 1;
|
|
2353
|
+
readonly delegationId: string;
|
|
2354
|
+
readonly targetAgentId: string;
|
|
2355
|
+
readonly threadId: string;
|
|
2356
|
+
};
|
|
2357
|
+
readonly receipt: {
|
|
2358
|
+
readonly receiptId: string;
|
|
2359
|
+
readonly submissionId: string;
|
|
2360
|
+
readonly threadId: string;
|
|
2361
|
+
readonly queueSequence: number;
|
|
2362
|
+
};
|
|
2363
|
+
readonly runId: string;
|
|
2364
|
+
readonly settlementId: string;
|
|
2365
|
+
readonly outcome: "completed";
|
|
2366
|
+
readonly result: Schema.Json;
|
|
2367
|
+
} | {
|
|
2368
|
+
readonly _tag: "Settled";
|
|
2369
|
+
readonly worker: {
|
|
2370
|
+
readonly schemaVersion: 1;
|
|
2371
|
+
readonly delegationId: string;
|
|
2372
|
+
readonly targetAgentId: string;
|
|
2373
|
+
readonly threadId: string;
|
|
2374
|
+
};
|
|
2375
|
+
readonly receipt: {
|
|
2376
|
+
readonly receiptId: string;
|
|
2377
|
+
readonly submissionId: string;
|
|
2378
|
+
readonly threadId: string;
|
|
2379
|
+
readonly queueSequence: number;
|
|
2380
|
+
};
|
|
2381
|
+
readonly runId: string;
|
|
2382
|
+
readonly settlementId: string;
|
|
2383
|
+
readonly outcome: "aborted" | "failed";
|
|
2384
|
+
readonly failure: {
|
|
2385
|
+
readonly _tag: "SubagentExecutionFailure";
|
|
2386
|
+
readonly delegationId: string;
|
|
2387
|
+
readonly targetAgentId: string;
|
|
2388
|
+
readonly classification: "child-aborted" | "child-compatibility" | "child-failed" | "declaration-unavailable" | "establishment-denied";
|
|
2389
|
+
readonly childThreadId?: string | undefined;
|
|
2390
|
+
readonly childSubmissionId?: string | undefined;
|
|
2391
|
+
readonly childRunId?: string | undefined;
|
|
2392
|
+
readonly errorTag: string;
|
|
2393
|
+
readonly message: string;
|
|
2394
|
+
};
|
|
2395
|
+
};
|
|
2396
|
+
} | {
|
|
2397
|
+
readonly _tag: "WorkerUpdate";
|
|
2398
|
+
readonly schemaVersion: 1;
|
|
2399
|
+
readonly worker: {
|
|
2400
|
+
readonly schemaVersion: 1;
|
|
2401
|
+
readonly delegationId: string;
|
|
2402
|
+
readonly targetAgentId: string;
|
|
2403
|
+
readonly threadId: string;
|
|
2404
|
+
};
|
|
2405
|
+
readonly update: {
|
|
2406
|
+
readonly schemaVersion: 1;
|
|
2407
|
+
readonly agentId: string;
|
|
2408
|
+
readonly threadId: string;
|
|
2409
|
+
readonly runId: string;
|
|
2410
|
+
readonly updateId: string;
|
|
2411
|
+
readonly sequence: number;
|
|
2412
|
+
readonly value: Schema.Json;
|
|
2413
|
+
};
|
|
1945
2414
|
} | undefined;
|
|
1946
2415
|
} | {
|
|
1947
2416
|
readonly _tag: "RunStarted";
|
|
@@ -2084,6 +2553,11 @@ declare const encodePortResponse: (input: PortFailed | PortSucceeded, options?:
|
|
|
2084
2553
|
readonly runDisposition?: Schema.Json | undefined;
|
|
2085
2554
|
readonly finishReason?: "budget-exhausted" | undefined;
|
|
2086
2555
|
readonly exhausted?: "tokens" | "tool-calls" | "turns" | undefined;
|
|
2556
|
+
} | {
|
|
2557
|
+
readonly _tag: "AbortRequested";
|
|
2558
|
+
readonly submissionId: string;
|
|
2559
|
+
readonly author: string;
|
|
2560
|
+
readonly reason: string;
|
|
2087
2561
|
} | {
|
|
2088
2562
|
readonly _tag: "SubmissionSettled";
|
|
2089
2563
|
readonly submissionId: string;
|
|
@@ -2359,6 +2833,7 @@ declare const encodePortResponse: (input: PortFailed | PortSucceeded, options?:
|
|
|
2359
2833
|
readonly createdAtMillis: number;
|
|
2360
2834
|
readonly expiresAtMillis: number;
|
|
2361
2835
|
readonly reporting?: {
|
|
2836
|
+
readonly mode?: "standard" | undefined;
|
|
2362
2837
|
readonly sourceDigests: {
|
|
2363
2838
|
readonly agent: string;
|
|
2364
2839
|
readonly model: string;
|
|
@@ -2372,6 +2847,7 @@ declare const encodePortResponse: (input: PortFailed | PortSucceeded, options?:
|
|
|
2372
2847
|
readonly createdAtMillis: number;
|
|
2373
2848
|
readonly sourceSubmissionId?: string | undefined;
|
|
2374
2849
|
readonly deliveryPrincipal?: string | undefined;
|
|
2850
|
+
readonly reportKind?: "update" | undefined;
|
|
2375
2851
|
};
|
|
2376
2852
|
readonly inputDigest: string;
|
|
2377
2853
|
} | {
|
|
@@ -2435,6 +2911,7 @@ declare const encodePortResponse: (input: PortFailed | PortSucceeded, options?:
|
|
|
2435
2911
|
readonly createdAtMillis: number;
|
|
2436
2912
|
readonly expiresAtMillis: number;
|
|
2437
2913
|
readonly reporting?: {
|
|
2914
|
+
readonly mode?: "standard" | undefined;
|
|
2438
2915
|
readonly sourceDigests: {
|
|
2439
2916
|
readonly agent: string;
|
|
2440
2917
|
readonly model: string;
|
|
@@ -2458,6 +2935,30 @@ declare const encodePortResponse: (input: PortFailed | PortSucceeded, options?:
|
|
|
2458
2935
|
readonly envelope: Schema.Json;
|
|
2459
2936
|
readonly createdAtMillis: number;
|
|
2460
2937
|
readonly deadlineAtMillis: number;
|
|
2938
|
+
readonly predecessor?: string | undefined;
|
|
2939
|
+
} | {
|
|
2940
|
+
readonly _tag: "AgentUpdateEmitted";
|
|
2941
|
+
readonly update: {
|
|
2942
|
+
readonly schemaVersion: 1;
|
|
2943
|
+
readonly agentId: string;
|
|
2944
|
+
readonly threadId: string;
|
|
2945
|
+
readonly runId: string;
|
|
2946
|
+
readonly updateId: string;
|
|
2947
|
+
readonly sequence: number;
|
|
2948
|
+
readonly value: Schema.Json;
|
|
2949
|
+
};
|
|
2950
|
+
readonly definitions: {
|
|
2951
|
+
readonly agent: string;
|
|
2952
|
+
readonly model: string;
|
|
2953
|
+
readonly tools: string;
|
|
2954
|
+
};
|
|
2955
|
+
readonly delivery?: {
|
|
2956
|
+
readonly messageId: string;
|
|
2957
|
+
readonly envelope: Schema.Json;
|
|
2958
|
+
readonly createdAtMillis: number;
|
|
2959
|
+
readonly deadlineAtMillis: number;
|
|
2960
|
+
readonly predecessor?: string | undefined;
|
|
2961
|
+
} | undefined;
|
|
2461
2962
|
} | {
|
|
2462
2963
|
readonly _tag: "WorkerReportRefused";
|
|
2463
2964
|
readonly runId: string;
|
|
@@ -2540,11 +3041,6 @@ declare const encodePortResponse: (input: PortFailed | PortSucceeded, options?:
|
|
|
2540
3041
|
readonly createdAt: string;
|
|
2541
3042
|
readonly deploymentId: string;
|
|
2542
3043
|
readonly payload: {
|
|
2543
|
-
readonly _tag: "AbortRequested";
|
|
2544
|
-
readonly submissionId: string;
|
|
2545
|
-
readonly author: string;
|
|
2546
|
-
readonly reason: string;
|
|
2547
|
-
} | {
|
|
2548
3044
|
readonly _tag: "ThreadCreated";
|
|
2549
3045
|
readonly agentId: string;
|
|
2550
3046
|
readonly definitions: {
|
|
@@ -2577,6 +3073,75 @@ declare const encodePortResponse: (input: PortFailed | PortSucceeded, options?:
|
|
|
2577
3073
|
readonly ownerThreadId: string;
|
|
2578
3074
|
readonly messageId: string;
|
|
2579
3075
|
} | undefined;
|
|
3076
|
+
} | {
|
|
3077
|
+
readonly _tag: "WorkerCompletion";
|
|
3078
|
+
readonly budgetExhausted: boolean;
|
|
3079
|
+
readonly schemaVersion: 1;
|
|
3080
|
+
readonly report: {
|
|
3081
|
+
readonly _tag: "Settled";
|
|
3082
|
+
readonly worker: {
|
|
3083
|
+
readonly schemaVersion: 1;
|
|
3084
|
+
readonly delegationId: string;
|
|
3085
|
+
readonly targetAgentId: string;
|
|
3086
|
+
readonly threadId: string;
|
|
3087
|
+
};
|
|
3088
|
+
readonly receipt: {
|
|
3089
|
+
readonly receiptId: string;
|
|
3090
|
+
readonly submissionId: string;
|
|
3091
|
+
readonly threadId: string;
|
|
3092
|
+
readonly queueSequence: number;
|
|
3093
|
+
};
|
|
3094
|
+
readonly runId: string;
|
|
3095
|
+
readonly settlementId: string;
|
|
3096
|
+
readonly outcome: "completed";
|
|
3097
|
+
readonly result: Schema.Json;
|
|
3098
|
+
} | {
|
|
3099
|
+
readonly _tag: "Settled";
|
|
3100
|
+
readonly worker: {
|
|
3101
|
+
readonly schemaVersion: 1;
|
|
3102
|
+
readonly delegationId: string;
|
|
3103
|
+
readonly targetAgentId: string;
|
|
3104
|
+
readonly threadId: string;
|
|
3105
|
+
};
|
|
3106
|
+
readonly receipt: {
|
|
3107
|
+
readonly receiptId: string;
|
|
3108
|
+
readonly submissionId: string;
|
|
3109
|
+
readonly threadId: string;
|
|
3110
|
+
readonly queueSequence: number;
|
|
3111
|
+
};
|
|
3112
|
+
readonly runId: string;
|
|
3113
|
+
readonly settlementId: string;
|
|
3114
|
+
readonly outcome: "aborted" | "failed";
|
|
3115
|
+
readonly failure: {
|
|
3116
|
+
readonly _tag: "SubagentExecutionFailure";
|
|
3117
|
+
readonly delegationId: string;
|
|
3118
|
+
readonly targetAgentId: string;
|
|
3119
|
+
readonly classification: "child-aborted" | "child-compatibility" | "child-failed" | "declaration-unavailable" | "establishment-denied";
|
|
3120
|
+
readonly childThreadId?: string | undefined;
|
|
3121
|
+
readonly childSubmissionId?: string | undefined;
|
|
3122
|
+
readonly childRunId?: string | undefined;
|
|
3123
|
+
readonly errorTag: string;
|
|
3124
|
+
readonly message: string;
|
|
3125
|
+
};
|
|
3126
|
+
};
|
|
3127
|
+
} | {
|
|
3128
|
+
readonly _tag: "WorkerUpdate";
|
|
3129
|
+
readonly schemaVersion: 1;
|
|
3130
|
+
readonly worker: {
|
|
3131
|
+
readonly schemaVersion: 1;
|
|
3132
|
+
readonly delegationId: string;
|
|
3133
|
+
readonly targetAgentId: string;
|
|
3134
|
+
readonly threadId: string;
|
|
3135
|
+
};
|
|
3136
|
+
readonly update: {
|
|
3137
|
+
readonly schemaVersion: 1;
|
|
3138
|
+
readonly agentId: string;
|
|
3139
|
+
readonly threadId: string;
|
|
3140
|
+
readonly runId: string;
|
|
3141
|
+
readonly updateId: string;
|
|
3142
|
+
readonly sequence: number;
|
|
3143
|
+
readonly value: Schema.Json;
|
|
3144
|
+
};
|
|
2580
3145
|
} | undefined;
|
|
2581
3146
|
} | {
|
|
2582
3147
|
readonly _tag: "RunStarted";
|
|
@@ -2719,6 +3284,11 @@ declare const encodePortResponse: (input: PortFailed | PortSucceeded, options?:
|
|
|
2719
3284
|
readonly runDisposition?: Schema.Json | undefined;
|
|
2720
3285
|
readonly finishReason?: "budget-exhausted" | undefined;
|
|
2721
3286
|
readonly exhausted?: "tokens" | "tool-calls" | "turns" | undefined;
|
|
3287
|
+
} | {
|
|
3288
|
+
readonly _tag: "AbortRequested";
|
|
3289
|
+
readonly submissionId: string;
|
|
3290
|
+
readonly author: string;
|
|
3291
|
+
readonly reason: string;
|
|
2722
3292
|
} | {
|
|
2723
3293
|
readonly _tag: "SubmissionSettled";
|
|
2724
3294
|
readonly submissionId: string;
|
|
@@ -2994,6 +3564,7 @@ declare const encodePortResponse: (input: PortFailed | PortSucceeded, options?:
|
|
|
2994
3564
|
readonly createdAtMillis: number;
|
|
2995
3565
|
readonly expiresAtMillis: number;
|
|
2996
3566
|
readonly reporting?: {
|
|
3567
|
+
readonly mode?: "standard" | undefined;
|
|
2997
3568
|
readonly sourceDigests: {
|
|
2998
3569
|
readonly agent: string;
|
|
2999
3570
|
readonly model: string;
|
|
@@ -3007,6 +3578,7 @@ declare const encodePortResponse: (input: PortFailed | PortSucceeded, options?:
|
|
|
3007
3578
|
readonly createdAtMillis: number;
|
|
3008
3579
|
readonly sourceSubmissionId?: string | undefined;
|
|
3009
3580
|
readonly deliveryPrincipal?: string | undefined;
|
|
3581
|
+
readonly reportKind?: "update" | undefined;
|
|
3010
3582
|
};
|
|
3011
3583
|
readonly inputDigest: string;
|
|
3012
3584
|
} | {
|
|
@@ -3070,6 +3642,7 @@ declare const encodePortResponse: (input: PortFailed | PortSucceeded, options?:
|
|
|
3070
3642
|
readonly createdAtMillis: number;
|
|
3071
3643
|
readonly expiresAtMillis: number;
|
|
3072
3644
|
readonly reporting?: {
|
|
3645
|
+
readonly mode?: "standard" | undefined;
|
|
3073
3646
|
readonly sourceDigests: {
|
|
3074
3647
|
readonly agent: string;
|
|
3075
3648
|
readonly model: string;
|
|
@@ -3093,6 +3666,30 @@ declare const encodePortResponse: (input: PortFailed | PortSucceeded, options?:
|
|
|
3093
3666
|
readonly envelope: Schema.Json;
|
|
3094
3667
|
readonly createdAtMillis: number;
|
|
3095
3668
|
readonly deadlineAtMillis: number;
|
|
3669
|
+
readonly predecessor?: string | undefined;
|
|
3670
|
+
} | {
|
|
3671
|
+
readonly _tag: "AgentUpdateEmitted";
|
|
3672
|
+
readonly update: {
|
|
3673
|
+
readonly schemaVersion: 1;
|
|
3674
|
+
readonly agentId: string;
|
|
3675
|
+
readonly threadId: string;
|
|
3676
|
+
readonly runId: string;
|
|
3677
|
+
readonly updateId: string;
|
|
3678
|
+
readonly sequence: number;
|
|
3679
|
+
readonly value: Schema.Json;
|
|
3680
|
+
};
|
|
3681
|
+
readonly definitions: {
|
|
3682
|
+
readonly agent: string;
|
|
3683
|
+
readonly model: string;
|
|
3684
|
+
readonly tools: string;
|
|
3685
|
+
};
|
|
3686
|
+
readonly delivery?: {
|
|
3687
|
+
readonly messageId: string;
|
|
3688
|
+
readonly envelope: Schema.Json;
|
|
3689
|
+
readonly createdAtMillis: number;
|
|
3690
|
+
readonly deadlineAtMillis: number;
|
|
3691
|
+
readonly predecessor?: string | undefined;
|
|
3692
|
+
} | undefined;
|
|
3096
3693
|
} | {
|
|
3097
3694
|
readonly _tag: "WorkerReportRefused";
|
|
3098
3695
|
readonly runId: string;
|
|
@@ -3153,6 +3750,29 @@ declare const encodePortResponse: (input: PortFailed | PortSucceeded, options?:
|
|
|
3153
3750
|
} | {
|
|
3154
3751
|
readonly _tag: "PortFailed";
|
|
3155
3752
|
readonly failure: {
|
|
3753
|
+
readonly _tag: "PortProtocolError";
|
|
3754
|
+
readonly message: string;
|
|
3755
|
+
} | {
|
|
3756
|
+
readonly _tag: "FenceRejected";
|
|
3757
|
+
readonly threadId: string;
|
|
3758
|
+
readonly actualEpoch: number;
|
|
3759
|
+
readonly attemptedEpoch: number;
|
|
3760
|
+
} | {
|
|
3761
|
+
readonly _tag: "ThreadStoreError";
|
|
3762
|
+
readonly operation: string;
|
|
3763
|
+
readonly message: string;
|
|
3764
|
+
readonly cause?: Schema.Json | undefined;
|
|
3765
|
+
} | {
|
|
3766
|
+
readonly _tag: "ThreadNotMaterialized";
|
|
3767
|
+
readonly threadId: string;
|
|
3768
|
+
} | {
|
|
3769
|
+
readonly _tag: "AppendConflict";
|
|
3770
|
+
readonly threadId: string;
|
|
3771
|
+
readonly batchId: string;
|
|
3772
|
+
readonly reason: "batch-digest" | "record-identity" | "tail";
|
|
3773
|
+
readonly actualTailSequence?: number | undefined;
|
|
3774
|
+
readonly actualTailDigest?: string | undefined;
|
|
3775
|
+
} | {
|
|
3156
3776
|
readonly _tag: "AdmissionConflict";
|
|
3157
3777
|
readonly threadId: string;
|
|
3158
3778
|
readonly principal: string;
|
|
@@ -3168,9 +3788,6 @@ declare const encodePortResponse: (input: PortFailed | PortSucceeded, options?:
|
|
|
3168
3788
|
readonly operation: string;
|
|
3169
3789
|
readonly message: string;
|
|
3170
3790
|
readonly cause?: Schema.Json | undefined;
|
|
3171
|
-
} | {
|
|
3172
|
-
readonly _tag: "PortProtocolError";
|
|
3173
|
-
readonly message: string;
|
|
3174
3791
|
} | {
|
|
3175
3792
|
readonly _tag: "SettlementConflict";
|
|
3176
3793
|
readonly submissionId: string;
|
|
@@ -3179,26 +3796,6 @@ declare const encodePortResponse: (input: PortFailed | PortSucceeded, options?:
|
|
|
3179
3796
|
readonly _tag: "JoinedToHost";
|
|
3180
3797
|
readonly submissionId: string;
|
|
3181
3798
|
readonly hostSubmissionId: string;
|
|
3182
|
-
} | {
|
|
3183
|
-
readonly _tag: "ThreadNotMaterialized";
|
|
3184
|
-
readonly threadId: string;
|
|
3185
|
-
} | {
|
|
3186
|
-
readonly _tag: "FenceRejected";
|
|
3187
|
-
readonly threadId: string;
|
|
3188
|
-
readonly actualEpoch: number;
|
|
3189
|
-
readonly attemptedEpoch: number;
|
|
3190
|
-
} | {
|
|
3191
|
-
readonly _tag: "ThreadStoreError";
|
|
3192
|
-
readonly operation: string;
|
|
3193
|
-
readonly message: string;
|
|
3194
|
-
readonly cause?: Schema.Json | undefined;
|
|
3195
|
-
} | {
|
|
3196
|
-
readonly _tag: "AppendConflict";
|
|
3197
|
-
readonly threadId: string;
|
|
3198
|
-
readonly batchId: string;
|
|
3199
|
-
readonly reason: "batch-digest" | "record-identity" | "tail";
|
|
3200
|
-
readonly actualTailSequence?: number | undefined;
|
|
3201
|
-
readonly actualTailDigest?: string | undefined;
|
|
3202
3799
|
};
|
|
3203
3800
|
}, Schema.SchemaError, never>;
|
|
3204
3801
|
declare const decodePortResponse: (input: unknown, options?: import("effect/SchemaAST").ParseOptions) => import("effect/Effect").Effect<PortFailed | PortSucceeded, Schema.SchemaError, never>;
|