@effect-agent/storage-cloudflare 0.1.0-beta.74 → 0.1.0-beta.76
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/PortProtocol.d.mts +329 -329
- package/package.json +1 -1
package/dist/PortProtocol.d.mts
CHANGED
|
@@ -350,86 +350,6 @@ declare const encodePortRequest: (input: LedgerAdmitCall | LedgerLookupCall | Le
|
|
|
350
350
|
readonly createdAt: string;
|
|
351
351
|
readonly deploymentId: string;
|
|
352
352
|
readonly payload: {
|
|
353
|
-
readonly _tag: "AbortRequested";
|
|
354
|
-
readonly submissionId: string;
|
|
355
|
-
readonly author: string;
|
|
356
|
-
readonly reason: string;
|
|
357
|
-
} | {
|
|
358
|
-
readonly _tag: "SubmissionSettled";
|
|
359
|
-
readonly submissionId: string;
|
|
360
|
-
readonly settlementId: string;
|
|
361
|
-
readonly receiptId: string;
|
|
362
|
-
readonly outcome: "aborted" | "completed" | "failed";
|
|
363
|
-
readonly runId?: string | undefined;
|
|
364
|
-
readonly result?: Schema.Json | undefined;
|
|
365
|
-
readonly runDisposition?: Schema.Json | undefined;
|
|
366
|
-
readonly finishReason?: "budget-exhausted" | undefined;
|
|
367
|
-
readonly exhausted?: "tokens" | "tool-calls" | "turns" | undefined;
|
|
368
|
-
readonly policyLimit?: "cost" | "duration" | "repeated-failures" | "tokens" | "tool-calls" | "turns" | "usage" | undefined;
|
|
369
|
-
readonly usageSummary?: {
|
|
370
|
-
readonly modelCalls: number;
|
|
371
|
-
readonly inputTokens: {
|
|
372
|
-
readonly total: number;
|
|
373
|
-
readonly uncached: number;
|
|
374
|
-
readonly cacheRead: number;
|
|
375
|
-
readonly cacheWrite: number;
|
|
376
|
-
};
|
|
377
|
-
readonly outputTokens: {
|
|
378
|
-
readonly total: number;
|
|
379
|
-
readonly text: number;
|
|
380
|
-
readonly reasoning: number;
|
|
381
|
-
};
|
|
382
|
-
readonly costMicrousd: number;
|
|
383
|
-
readonly byModel: readonly {
|
|
384
|
-
readonly provider: string;
|
|
385
|
-
readonly model: string;
|
|
386
|
-
readonly responseModel?: string | undefined;
|
|
387
|
-
readonly serviceTier?: string | undefined;
|
|
388
|
-
readonly pricingVersion?: string | undefined;
|
|
389
|
-
readonly modelCalls: number;
|
|
390
|
-
readonly inputTokens: {
|
|
391
|
-
readonly total: number;
|
|
392
|
-
readonly uncached: number;
|
|
393
|
-
readonly cacheRead: number;
|
|
394
|
-
readonly cacheWrite: number;
|
|
395
|
-
};
|
|
396
|
-
readonly outputTokens: {
|
|
397
|
-
readonly total: number;
|
|
398
|
-
readonly text: number;
|
|
399
|
-
readonly reasoning: number;
|
|
400
|
-
};
|
|
401
|
-
readonly costMicrousd: number;
|
|
402
|
-
}[];
|
|
403
|
-
readonly usageStatus?: "complete" | "partial" | "unknown" | undefined;
|
|
404
|
-
readonly pricingStatus?: "complete" | "partial" | "unknown" | undefined;
|
|
405
|
-
readonly unobservedModelCalls?: number | undefined;
|
|
406
|
-
} | undefined;
|
|
407
|
-
readonly uncommittedModelUsage?: readonly {
|
|
408
|
-
readonly provider: string;
|
|
409
|
-
readonly model: string;
|
|
410
|
-
readonly serviceTier?: string | undefined;
|
|
411
|
-
readonly pricingVersion?: string | undefined;
|
|
412
|
-
readonly response?: {
|
|
413
|
-
readonly id?: string | undefined;
|
|
414
|
-
readonly model?: string | undefined;
|
|
415
|
-
} | undefined;
|
|
416
|
-
readonly purpose?: "summary" | "turn" | undefined;
|
|
417
|
-
readonly usageStatus?: "complete" | "partial" | "unknown" | undefined;
|
|
418
|
-
readonly pricingStatus?: "estimated" | "unknown" | undefined;
|
|
419
|
-
readonly inputTokens: {
|
|
420
|
-
readonly total: number;
|
|
421
|
-
readonly uncached: number;
|
|
422
|
-
readonly cacheRead: number;
|
|
423
|
-
readonly cacheWrite: number;
|
|
424
|
-
};
|
|
425
|
-
readonly outputTokens: {
|
|
426
|
-
readonly total: number;
|
|
427
|
-
readonly text: number;
|
|
428
|
-
readonly reasoning: number;
|
|
429
|
-
};
|
|
430
|
-
readonly costMicrousd: number;
|
|
431
|
-
}[] | undefined;
|
|
432
|
-
} | {
|
|
433
353
|
readonly _tag: "ThreadCreated";
|
|
434
354
|
readonly agentId: string;
|
|
435
355
|
readonly definitions: {
|
|
@@ -604,6 +524,86 @@ declare const encodePortRequest: (input: LedgerAdmitCall | LedgerLookupCall | Le
|
|
|
604
524
|
readonly runDisposition?: Schema.Json | undefined;
|
|
605
525
|
readonly finishReason?: "budget-exhausted" | undefined;
|
|
606
526
|
readonly exhausted?: "tokens" | "tool-calls" | "turns" | undefined;
|
|
527
|
+
} | {
|
|
528
|
+
readonly _tag: "AbortRequested";
|
|
529
|
+
readonly submissionId: string;
|
|
530
|
+
readonly author: string;
|
|
531
|
+
readonly reason: string;
|
|
532
|
+
} | {
|
|
533
|
+
readonly _tag: "SubmissionSettled";
|
|
534
|
+
readonly submissionId: string;
|
|
535
|
+
readonly settlementId: string;
|
|
536
|
+
readonly receiptId: string;
|
|
537
|
+
readonly outcome: "aborted" | "completed" | "failed";
|
|
538
|
+
readonly runId?: string | undefined;
|
|
539
|
+
readonly result?: Schema.Json | undefined;
|
|
540
|
+
readonly runDisposition?: Schema.Json | undefined;
|
|
541
|
+
readonly finishReason?: "budget-exhausted" | undefined;
|
|
542
|
+
readonly exhausted?: "tokens" | "tool-calls" | "turns" | undefined;
|
|
543
|
+
readonly policyLimit?: "cost" | "duration" | "repeated-failures" | "tokens" | "tool-calls" | "turns" | "usage" | undefined;
|
|
544
|
+
readonly usageSummary?: {
|
|
545
|
+
readonly modelCalls: number;
|
|
546
|
+
readonly inputTokens: {
|
|
547
|
+
readonly total: number;
|
|
548
|
+
readonly uncached: number;
|
|
549
|
+
readonly cacheRead: number;
|
|
550
|
+
readonly cacheWrite: number;
|
|
551
|
+
};
|
|
552
|
+
readonly outputTokens: {
|
|
553
|
+
readonly total: number;
|
|
554
|
+
readonly text: number;
|
|
555
|
+
readonly reasoning: number;
|
|
556
|
+
};
|
|
557
|
+
readonly costMicrousd: number;
|
|
558
|
+
readonly byModel: readonly {
|
|
559
|
+
readonly provider: string;
|
|
560
|
+
readonly model: string;
|
|
561
|
+
readonly responseModel?: string | undefined;
|
|
562
|
+
readonly serviceTier?: string | undefined;
|
|
563
|
+
readonly pricingVersion?: string | undefined;
|
|
564
|
+
readonly modelCalls: number;
|
|
565
|
+
readonly inputTokens: {
|
|
566
|
+
readonly total: number;
|
|
567
|
+
readonly uncached: number;
|
|
568
|
+
readonly cacheRead: number;
|
|
569
|
+
readonly cacheWrite: number;
|
|
570
|
+
};
|
|
571
|
+
readonly outputTokens: {
|
|
572
|
+
readonly total: number;
|
|
573
|
+
readonly text: number;
|
|
574
|
+
readonly reasoning: number;
|
|
575
|
+
};
|
|
576
|
+
readonly costMicrousd: number;
|
|
577
|
+
}[];
|
|
578
|
+
readonly usageStatus?: "complete" | "partial" | "unknown" | undefined;
|
|
579
|
+
readonly pricingStatus?: "complete" | "partial" | "unknown" | undefined;
|
|
580
|
+
readonly unobservedModelCalls?: number | undefined;
|
|
581
|
+
} | undefined;
|
|
582
|
+
readonly uncommittedModelUsage?: readonly {
|
|
583
|
+
readonly provider: string;
|
|
584
|
+
readonly model: string;
|
|
585
|
+
readonly serviceTier?: string | undefined;
|
|
586
|
+
readonly pricingVersion?: string | undefined;
|
|
587
|
+
readonly response?: {
|
|
588
|
+
readonly id?: string | undefined;
|
|
589
|
+
readonly model?: string | undefined;
|
|
590
|
+
} | undefined;
|
|
591
|
+
readonly purpose?: "summary" | "turn" | undefined;
|
|
592
|
+
readonly usageStatus?: "complete" | "partial" | "unknown" | undefined;
|
|
593
|
+
readonly pricingStatus?: "estimated" | "unknown" | undefined;
|
|
594
|
+
readonly inputTokens: {
|
|
595
|
+
readonly total: number;
|
|
596
|
+
readonly uncached: number;
|
|
597
|
+
readonly cacheRead: number;
|
|
598
|
+
readonly cacheWrite: number;
|
|
599
|
+
};
|
|
600
|
+
readonly outputTokens: {
|
|
601
|
+
readonly total: number;
|
|
602
|
+
readonly text: number;
|
|
603
|
+
readonly reasoning: number;
|
|
604
|
+
};
|
|
605
|
+
readonly costMicrousd: number;
|
|
606
|
+
}[] | undefined;
|
|
607
607
|
} | {
|
|
608
608
|
readonly _tag: "SubagentRequested";
|
|
609
609
|
readonly runId: string;
|
|
@@ -945,86 +945,6 @@ declare const encodePortRequest: (input: LedgerAdmitCall | LedgerLookupCall | Le
|
|
|
945
945
|
readonly createdAt: string;
|
|
946
946
|
readonly deploymentId: string;
|
|
947
947
|
readonly payload: {
|
|
948
|
-
readonly _tag: "AbortRequested";
|
|
949
|
-
readonly submissionId: string;
|
|
950
|
-
readonly author: string;
|
|
951
|
-
readonly reason: string;
|
|
952
|
-
} | {
|
|
953
|
-
readonly _tag: "SubmissionSettled";
|
|
954
|
-
readonly submissionId: string;
|
|
955
|
-
readonly settlementId: string;
|
|
956
|
-
readonly receiptId: string;
|
|
957
|
-
readonly outcome: "aborted" | "completed" | "failed";
|
|
958
|
-
readonly runId?: string | undefined;
|
|
959
|
-
readonly result?: Schema.Json | undefined;
|
|
960
|
-
readonly runDisposition?: Schema.Json | undefined;
|
|
961
|
-
readonly finishReason?: "budget-exhausted" | undefined;
|
|
962
|
-
readonly exhausted?: "tokens" | "tool-calls" | "turns" | undefined;
|
|
963
|
-
readonly policyLimit?: "cost" | "duration" | "repeated-failures" | "tokens" | "tool-calls" | "turns" | "usage" | undefined;
|
|
964
|
-
readonly usageSummary?: {
|
|
965
|
-
readonly modelCalls: number;
|
|
966
|
-
readonly inputTokens: {
|
|
967
|
-
readonly total: number;
|
|
968
|
-
readonly uncached: number;
|
|
969
|
-
readonly cacheRead: number;
|
|
970
|
-
readonly cacheWrite: number;
|
|
971
|
-
};
|
|
972
|
-
readonly outputTokens: {
|
|
973
|
-
readonly total: number;
|
|
974
|
-
readonly text: number;
|
|
975
|
-
readonly reasoning: number;
|
|
976
|
-
};
|
|
977
|
-
readonly costMicrousd: number;
|
|
978
|
-
readonly byModel: readonly {
|
|
979
|
-
readonly provider: string;
|
|
980
|
-
readonly model: string;
|
|
981
|
-
readonly responseModel?: string | undefined;
|
|
982
|
-
readonly serviceTier?: string | undefined;
|
|
983
|
-
readonly pricingVersion?: string | undefined;
|
|
984
|
-
readonly modelCalls: number;
|
|
985
|
-
readonly inputTokens: {
|
|
986
|
-
readonly total: number;
|
|
987
|
-
readonly uncached: number;
|
|
988
|
-
readonly cacheRead: number;
|
|
989
|
-
readonly cacheWrite: number;
|
|
990
|
-
};
|
|
991
|
-
readonly outputTokens: {
|
|
992
|
-
readonly total: number;
|
|
993
|
-
readonly text: number;
|
|
994
|
-
readonly reasoning: number;
|
|
995
|
-
};
|
|
996
|
-
readonly costMicrousd: number;
|
|
997
|
-
}[];
|
|
998
|
-
readonly usageStatus?: "complete" | "partial" | "unknown" | undefined;
|
|
999
|
-
readonly pricingStatus?: "complete" | "partial" | "unknown" | undefined;
|
|
1000
|
-
readonly unobservedModelCalls?: number | undefined;
|
|
1001
|
-
} | undefined;
|
|
1002
|
-
readonly uncommittedModelUsage?: readonly {
|
|
1003
|
-
readonly provider: string;
|
|
1004
|
-
readonly model: string;
|
|
1005
|
-
readonly serviceTier?: string | undefined;
|
|
1006
|
-
readonly pricingVersion?: string | undefined;
|
|
1007
|
-
readonly response?: {
|
|
1008
|
-
readonly id?: string | undefined;
|
|
1009
|
-
readonly model?: string | undefined;
|
|
1010
|
-
} | undefined;
|
|
1011
|
-
readonly purpose?: "summary" | "turn" | undefined;
|
|
1012
|
-
readonly usageStatus?: "complete" | "partial" | "unknown" | undefined;
|
|
1013
|
-
readonly pricingStatus?: "estimated" | "unknown" | undefined;
|
|
1014
|
-
readonly inputTokens: {
|
|
1015
|
-
readonly total: number;
|
|
1016
|
-
readonly uncached: number;
|
|
1017
|
-
readonly cacheRead: number;
|
|
1018
|
-
readonly cacheWrite: number;
|
|
1019
|
-
};
|
|
1020
|
-
readonly outputTokens: {
|
|
1021
|
-
readonly total: number;
|
|
1022
|
-
readonly text: number;
|
|
1023
|
-
readonly reasoning: number;
|
|
1024
|
-
};
|
|
1025
|
-
readonly costMicrousd: number;
|
|
1026
|
-
}[] | undefined;
|
|
1027
|
-
} | {
|
|
1028
948
|
readonly _tag: "ThreadCreated";
|
|
1029
949
|
readonly agentId: string;
|
|
1030
950
|
readonly definitions: {
|
|
@@ -1199,6 +1119,86 @@ declare const encodePortRequest: (input: LedgerAdmitCall | LedgerLookupCall | Le
|
|
|
1199
1119
|
readonly runDisposition?: Schema.Json | undefined;
|
|
1200
1120
|
readonly finishReason?: "budget-exhausted" | undefined;
|
|
1201
1121
|
readonly exhausted?: "tokens" | "tool-calls" | "turns" | undefined;
|
|
1122
|
+
} | {
|
|
1123
|
+
readonly _tag: "AbortRequested";
|
|
1124
|
+
readonly submissionId: string;
|
|
1125
|
+
readonly author: string;
|
|
1126
|
+
readonly reason: string;
|
|
1127
|
+
} | {
|
|
1128
|
+
readonly _tag: "SubmissionSettled";
|
|
1129
|
+
readonly submissionId: string;
|
|
1130
|
+
readonly settlementId: string;
|
|
1131
|
+
readonly receiptId: string;
|
|
1132
|
+
readonly outcome: "aborted" | "completed" | "failed";
|
|
1133
|
+
readonly runId?: string | undefined;
|
|
1134
|
+
readonly result?: Schema.Json | undefined;
|
|
1135
|
+
readonly runDisposition?: Schema.Json | undefined;
|
|
1136
|
+
readonly finishReason?: "budget-exhausted" | undefined;
|
|
1137
|
+
readonly exhausted?: "tokens" | "tool-calls" | "turns" | undefined;
|
|
1138
|
+
readonly policyLimit?: "cost" | "duration" | "repeated-failures" | "tokens" | "tool-calls" | "turns" | "usage" | undefined;
|
|
1139
|
+
readonly usageSummary?: {
|
|
1140
|
+
readonly modelCalls: number;
|
|
1141
|
+
readonly inputTokens: {
|
|
1142
|
+
readonly total: number;
|
|
1143
|
+
readonly uncached: number;
|
|
1144
|
+
readonly cacheRead: number;
|
|
1145
|
+
readonly cacheWrite: number;
|
|
1146
|
+
};
|
|
1147
|
+
readonly outputTokens: {
|
|
1148
|
+
readonly total: number;
|
|
1149
|
+
readonly text: number;
|
|
1150
|
+
readonly reasoning: number;
|
|
1151
|
+
};
|
|
1152
|
+
readonly costMicrousd: number;
|
|
1153
|
+
readonly byModel: readonly {
|
|
1154
|
+
readonly provider: string;
|
|
1155
|
+
readonly model: string;
|
|
1156
|
+
readonly responseModel?: string | undefined;
|
|
1157
|
+
readonly serviceTier?: string | undefined;
|
|
1158
|
+
readonly pricingVersion?: string | undefined;
|
|
1159
|
+
readonly modelCalls: number;
|
|
1160
|
+
readonly inputTokens: {
|
|
1161
|
+
readonly total: number;
|
|
1162
|
+
readonly uncached: number;
|
|
1163
|
+
readonly cacheRead: number;
|
|
1164
|
+
readonly cacheWrite: number;
|
|
1165
|
+
};
|
|
1166
|
+
readonly outputTokens: {
|
|
1167
|
+
readonly total: number;
|
|
1168
|
+
readonly text: number;
|
|
1169
|
+
readonly reasoning: number;
|
|
1170
|
+
};
|
|
1171
|
+
readonly costMicrousd: number;
|
|
1172
|
+
}[];
|
|
1173
|
+
readonly usageStatus?: "complete" | "partial" | "unknown" | undefined;
|
|
1174
|
+
readonly pricingStatus?: "complete" | "partial" | "unknown" | undefined;
|
|
1175
|
+
readonly unobservedModelCalls?: number | undefined;
|
|
1176
|
+
} | undefined;
|
|
1177
|
+
readonly uncommittedModelUsage?: readonly {
|
|
1178
|
+
readonly provider: string;
|
|
1179
|
+
readonly model: string;
|
|
1180
|
+
readonly serviceTier?: string | undefined;
|
|
1181
|
+
readonly pricingVersion?: string | undefined;
|
|
1182
|
+
readonly response?: {
|
|
1183
|
+
readonly id?: string | undefined;
|
|
1184
|
+
readonly model?: string | undefined;
|
|
1185
|
+
} | undefined;
|
|
1186
|
+
readonly purpose?: "summary" | "turn" | undefined;
|
|
1187
|
+
readonly usageStatus?: "complete" | "partial" | "unknown" | undefined;
|
|
1188
|
+
readonly pricingStatus?: "estimated" | "unknown" | undefined;
|
|
1189
|
+
readonly inputTokens: {
|
|
1190
|
+
readonly total: number;
|
|
1191
|
+
readonly uncached: number;
|
|
1192
|
+
readonly cacheRead: number;
|
|
1193
|
+
readonly cacheWrite: number;
|
|
1194
|
+
};
|
|
1195
|
+
readonly outputTokens: {
|
|
1196
|
+
readonly total: number;
|
|
1197
|
+
readonly text: number;
|
|
1198
|
+
readonly reasoning: number;
|
|
1199
|
+
};
|
|
1200
|
+
readonly costMicrousd: number;
|
|
1201
|
+
}[] | undefined;
|
|
1202
1202
|
} | {
|
|
1203
1203
|
readonly _tag: "SubagentRequested";
|
|
1204
1204
|
readonly runId: string;
|
|
@@ -1867,88 +1867,8 @@ declare const encodePortResponse: (input: PortFailed | PortSucceeded, options?:
|
|
|
1867
1867
|
readonly family: "thread";
|
|
1868
1868
|
readonly schemaVersion: 1;
|
|
1869
1869
|
readonly createdAt: string;
|
|
1870
|
-
readonly deploymentId: string;
|
|
1871
|
-
readonly payload: {
|
|
1872
|
-
readonly _tag: "AbortRequested";
|
|
1873
|
-
readonly submissionId: string;
|
|
1874
|
-
readonly author: string;
|
|
1875
|
-
readonly reason: string;
|
|
1876
|
-
} | {
|
|
1877
|
-
readonly _tag: "SubmissionSettled";
|
|
1878
|
-
readonly submissionId: string;
|
|
1879
|
-
readonly settlementId: string;
|
|
1880
|
-
readonly receiptId: string;
|
|
1881
|
-
readonly outcome: "aborted" | "completed" | "failed";
|
|
1882
|
-
readonly runId?: string | undefined;
|
|
1883
|
-
readonly result?: Schema.Json | undefined;
|
|
1884
|
-
readonly runDisposition?: Schema.Json | undefined;
|
|
1885
|
-
readonly finishReason?: "budget-exhausted" | undefined;
|
|
1886
|
-
readonly exhausted?: "tokens" | "tool-calls" | "turns" | undefined;
|
|
1887
|
-
readonly policyLimit?: "cost" | "duration" | "repeated-failures" | "tokens" | "tool-calls" | "turns" | "usage" | undefined;
|
|
1888
|
-
readonly usageSummary?: {
|
|
1889
|
-
readonly modelCalls: number;
|
|
1890
|
-
readonly inputTokens: {
|
|
1891
|
-
readonly total: number;
|
|
1892
|
-
readonly uncached: number;
|
|
1893
|
-
readonly cacheRead: number;
|
|
1894
|
-
readonly cacheWrite: number;
|
|
1895
|
-
};
|
|
1896
|
-
readonly outputTokens: {
|
|
1897
|
-
readonly total: number;
|
|
1898
|
-
readonly text: number;
|
|
1899
|
-
readonly reasoning: number;
|
|
1900
|
-
};
|
|
1901
|
-
readonly costMicrousd: number;
|
|
1902
|
-
readonly byModel: readonly {
|
|
1903
|
-
readonly provider: string;
|
|
1904
|
-
readonly model: string;
|
|
1905
|
-
readonly responseModel?: string | undefined;
|
|
1906
|
-
readonly serviceTier?: string | undefined;
|
|
1907
|
-
readonly pricingVersion?: string | undefined;
|
|
1908
|
-
readonly modelCalls: number;
|
|
1909
|
-
readonly inputTokens: {
|
|
1910
|
-
readonly total: number;
|
|
1911
|
-
readonly uncached: number;
|
|
1912
|
-
readonly cacheRead: number;
|
|
1913
|
-
readonly cacheWrite: number;
|
|
1914
|
-
};
|
|
1915
|
-
readonly outputTokens: {
|
|
1916
|
-
readonly total: number;
|
|
1917
|
-
readonly text: number;
|
|
1918
|
-
readonly reasoning: number;
|
|
1919
|
-
};
|
|
1920
|
-
readonly costMicrousd: number;
|
|
1921
|
-
}[];
|
|
1922
|
-
readonly usageStatus?: "complete" | "partial" | "unknown" | undefined;
|
|
1923
|
-
readonly pricingStatus?: "complete" | "partial" | "unknown" | undefined;
|
|
1924
|
-
readonly unobservedModelCalls?: number | undefined;
|
|
1925
|
-
} | undefined;
|
|
1926
|
-
readonly uncommittedModelUsage?: readonly {
|
|
1927
|
-
readonly provider: string;
|
|
1928
|
-
readonly model: string;
|
|
1929
|
-
readonly serviceTier?: string | undefined;
|
|
1930
|
-
readonly pricingVersion?: string | undefined;
|
|
1931
|
-
readonly response?: {
|
|
1932
|
-
readonly id?: string | undefined;
|
|
1933
|
-
readonly model?: string | undefined;
|
|
1934
|
-
} | undefined;
|
|
1935
|
-
readonly purpose?: "summary" | "turn" | undefined;
|
|
1936
|
-
readonly usageStatus?: "complete" | "partial" | "unknown" | undefined;
|
|
1937
|
-
readonly pricingStatus?: "estimated" | "unknown" | undefined;
|
|
1938
|
-
readonly inputTokens: {
|
|
1939
|
-
readonly total: number;
|
|
1940
|
-
readonly uncached: number;
|
|
1941
|
-
readonly cacheRead: number;
|
|
1942
|
-
readonly cacheWrite: number;
|
|
1943
|
-
};
|
|
1944
|
-
readonly outputTokens: {
|
|
1945
|
-
readonly total: number;
|
|
1946
|
-
readonly text: number;
|
|
1947
|
-
readonly reasoning: number;
|
|
1948
|
-
};
|
|
1949
|
-
readonly costMicrousd: number;
|
|
1950
|
-
}[] | undefined;
|
|
1951
|
-
} | {
|
|
1870
|
+
readonly deploymentId: string;
|
|
1871
|
+
readonly payload: {
|
|
1952
1872
|
readonly _tag: "ThreadCreated";
|
|
1953
1873
|
readonly agentId: string;
|
|
1954
1874
|
readonly definitions: {
|
|
@@ -2123,6 +2043,86 @@ declare const encodePortResponse: (input: PortFailed | PortSucceeded, options?:
|
|
|
2123
2043
|
readonly runDisposition?: Schema.Json | undefined;
|
|
2124
2044
|
readonly finishReason?: "budget-exhausted" | undefined;
|
|
2125
2045
|
readonly exhausted?: "tokens" | "tool-calls" | "turns" | undefined;
|
|
2046
|
+
} | {
|
|
2047
|
+
readonly _tag: "AbortRequested";
|
|
2048
|
+
readonly submissionId: string;
|
|
2049
|
+
readonly author: string;
|
|
2050
|
+
readonly reason: string;
|
|
2051
|
+
} | {
|
|
2052
|
+
readonly _tag: "SubmissionSettled";
|
|
2053
|
+
readonly submissionId: string;
|
|
2054
|
+
readonly settlementId: string;
|
|
2055
|
+
readonly receiptId: string;
|
|
2056
|
+
readonly outcome: "aborted" | "completed" | "failed";
|
|
2057
|
+
readonly runId?: string | undefined;
|
|
2058
|
+
readonly result?: Schema.Json | undefined;
|
|
2059
|
+
readonly runDisposition?: Schema.Json | undefined;
|
|
2060
|
+
readonly finishReason?: "budget-exhausted" | undefined;
|
|
2061
|
+
readonly exhausted?: "tokens" | "tool-calls" | "turns" | undefined;
|
|
2062
|
+
readonly policyLimit?: "cost" | "duration" | "repeated-failures" | "tokens" | "tool-calls" | "turns" | "usage" | undefined;
|
|
2063
|
+
readonly usageSummary?: {
|
|
2064
|
+
readonly modelCalls: number;
|
|
2065
|
+
readonly inputTokens: {
|
|
2066
|
+
readonly total: number;
|
|
2067
|
+
readonly uncached: number;
|
|
2068
|
+
readonly cacheRead: number;
|
|
2069
|
+
readonly cacheWrite: number;
|
|
2070
|
+
};
|
|
2071
|
+
readonly outputTokens: {
|
|
2072
|
+
readonly total: number;
|
|
2073
|
+
readonly text: number;
|
|
2074
|
+
readonly reasoning: number;
|
|
2075
|
+
};
|
|
2076
|
+
readonly costMicrousd: number;
|
|
2077
|
+
readonly byModel: readonly {
|
|
2078
|
+
readonly provider: string;
|
|
2079
|
+
readonly model: string;
|
|
2080
|
+
readonly responseModel?: string | undefined;
|
|
2081
|
+
readonly serviceTier?: string | undefined;
|
|
2082
|
+
readonly pricingVersion?: string | undefined;
|
|
2083
|
+
readonly modelCalls: number;
|
|
2084
|
+
readonly inputTokens: {
|
|
2085
|
+
readonly total: number;
|
|
2086
|
+
readonly uncached: number;
|
|
2087
|
+
readonly cacheRead: number;
|
|
2088
|
+
readonly cacheWrite: number;
|
|
2089
|
+
};
|
|
2090
|
+
readonly outputTokens: {
|
|
2091
|
+
readonly total: number;
|
|
2092
|
+
readonly text: number;
|
|
2093
|
+
readonly reasoning: number;
|
|
2094
|
+
};
|
|
2095
|
+
readonly costMicrousd: number;
|
|
2096
|
+
}[];
|
|
2097
|
+
readonly usageStatus?: "complete" | "partial" | "unknown" | undefined;
|
|
2098
|
+
readonly pricingStatus?: "complete" | "partial" | "unknown" | undefined;
|
|
2099
|
+
readonly unobservedModelCalls?: number | undefined;
|
|
2100
|
+
} | undefined;
|
|
2101
|
+
readonly uncommittedModelUsage?: readonly {
|
|
2102
|
+
readonly provider: string;
|
|
2103
|
+
readonly model: string;
|
|
2104
|
+
readonly serviceTier?: string | undefined;
|
|
2105
|
+
readonly pricingVersion?: string | undefined;
|
|
2106
|
+
readonly response?: {
|
|
2107
|
+
readonly id?: string | undefined;
|
|
2108
|
+
readonly model?: string | undefined;
|
|
2109
|
+
} | undefined;
|
|
2110
|
+
readonly purpose?: "summary" | "turn" | undefined;
|
|
2111
|
+
readonly usageStatus?: "complete" | "partial" | "unknown" | undefined;
|
|
2112
|
+
readonly pricingStatus?: "estimated" | "unknown" | undefined;
|
|
2113
|
+
readonly inputTokens: {
|
|
2114
|
+
readonly total: number;
|
|
2115
|
+
readonly uncached: number;
|
|
2116
|
+
readonly cacheRead: number;
|
|
2117
|
+
readonly cacheWrite: number;
|
|
2118
|
+
};
|
|
2119
|
+
readonly outputTokens: {
|
|
2120
|
+
readonly total: number;
|
|
2121
|
+
readonly text: number;
|
|
2122
|
+
readonly reasoning: number;
|
|
2123
|
+
};
|
|
2124
|
+
readonly costMicrousd: number;
|
|
2125
|
+
}[] | undefined;
|
|
2126
2126
|
} | {
|
|
2127
2127
|
readonly _tag: "SubagentRequested";
|
|
2128
2128
|
readonly runId: string;
|
|
@@ -2486,86 +2486,6 @@ declare const encodePortResponse: (input: PortFailed | PortSucceeded, options?:
|
|
|
2486
2486
|
readonly createdAt: string;
|
|
2487
2487
|
readonly deploymentId: string;
|
|
2488
2488
|
readonly payload: {
|
|
2489
|
-
readonly _tag: "AbortRequested";
|
|
2490
|
-
readonly submissionId: string;
|
|
2491
|
-
readonly author: string;
|
|
2492
|
-
readonly reason: string;
|
|
2493
|
-
} | {
|
|
2494
|
-
readonly _tag: "SubmissionSettled";
|
|
2495
|
-
readonly submissionId: string;
|
|
2496
|
-
readonly settlementId: string;
|
|
2497
|
-
readonly receiptId: string;
|
|
2498
|
-
readonly outcome: "aborted" | "completed" | "failed";
|
|
2499
|
-
readonly runId?: string | undefined;
|
|
2500
|
-
readonly result?: Schema.Json | undefined;
|
|
2501
|
-
readonly runDisposition?: Schema.Json | undefined;
|
|
2502
|
-
readonly finishReason?: "budget-exhausted" | undefined;
|
|
2503
|
-
readonly exhausted?: "tokens" | "tool-calls" | "turns" | undefined;
|
|
2504
|
-
readonly policyLimit?: "cost" | "duration" | "repeated-failures" | "tokens" | "tool-calls" | "turns" | "usage" | undefined;
|
|
2505
|
-
readonly usageSummary?: {
|
|
2506
|
-
readonly modelCalls: number;
|
|
2507
|
-
readonly inputTokens: {
|
|
2508
|
-
readonly total: number;
|
|
2509
|
-
readonly uncached: number;
|
|
2510
|
-
readonly cacheRead: number;
|
|
2511
|
-
readonly cacheWrite: number;
|
|
2512
|
-
};
|
|
2513
|
-
readonly outputTokens: {
|
|
2514
|
-
readonly total: number;
|
|
2515
|
-
readonly text: number;
|
|
2516
|
-
readonly reasoning: number;
|
|
2517
|
-
};
|
|
2518
|
-
readonly costMicrousd: number;
|
|
2519
|
-
readonly byModel: readonly {
|
|
2520
|
-
readonly provider: string;
|
|
2521
|
-
readonly model: string;
|
|
2522
|
-
readonly responseModel?: string | undefined;
|
|
2523
|
-
readonly serviceTier?: string | undefined;
|
|
2524
|
-
readonly pricingVersion?: string | undefined;
|
|
2525
|
-
readonly modelCalls: number;
|
|
2526
|
-
readonly inputTokens: {
|
|
2527
|
-
readonly total: number;
|
|
2528
|
-
readonly uncached: number;
|
|
2529
|
-
readonly cacheRead: number;
|
|
2530
|
-
readonly cacheWrite: number;
|
|
2531
|
-
};
|
|
2532
|
-
readonly outputTokens: {
|
|
2533
|
-
readonly total: number;
|
|
2534
|
-
readonly text: number;
|
|
2535
|
-
readonly reasoning: number;
|
|
2536
|
-
};
|
|
2537
|
-
readonly costMicrousd: number;
|
|
2538
|
-
}[];
|
|
2539
|
-
readonly usageStatus?: "complete" | "partial" | "unknown" | undefined;
|
|
2540
|
-
readonly pricingStatus?: "complete" | "partial" | "unknown" | undefined;
|
|
2541
|
-
readonly unobservedModelCalls?: number | undefined;
|
|
2542
|
-
} | undefined;
|
|
2543
|
-
readonly uncommittedModelUsage?: readonly {
|
|
2544
|
-
readonly provider: string;
|
|
2545
|
-
readonly model: string;
|
|
2546
|
-
readonly serviceTier?: string | undefined;
|
|
2547
|
-
readonly pricingVersion?: string | undefined;
|
|
2548
|
-
readonly response?: {
|
|
2549
|
-
readonly id?: string | undefined;
|
|
2550
|
-
readonly model?: string | undefined;
|
|
2551
|
-
} | undefined;
|
|
2552
|
-
readonly purpose?: "summary" | "turn" | undefined;
|
|
2553
|
-
readonly usageStatus?: "complete" | "partial" | "unknown" | undefined;
|
|
2554
|
-
readonly pricingStatus?: "estimated" | "unknown" | undefined;
|
|
2555
|
-
readonly inputTokens: {
|
|
2556
|
-
readonly total: number;
|
|
2557
|
-
readonly uncached: number;
|
|
2558
|
-
readonly cacheRead: number;
|
|
2559
|
-
readonly cacheWrite: number;
|
|
2560
|
-
};
|
|
2561
|
-
readonly outputTokens: {
|
|
2562
|
-
readonly total: number;
|
|
2563
|
-
readonly text: number;
|
|
2564
|
-
readonly reasoning: number;
|
|
2565
|
-
};
|
|
2566
|
-
readonly costMicrousd: number;
|
|
2567
|
-
}[] | undefined;
|
|
2568
|
-
} | {
|
|
2569
2489
|
readonly _tag: "ThreadCreated";
|
|
2570
2490
|
readonly agentId: string;
|
|
2571
2491
|
readonly definitions: {
|
|
@@ -2740,6 +2660,86 @@ declare const encodePortResponse: (input: PortFailed | PortSucceeded, options?:
|
|
|
2740
2660
|
readonly runDisposition?: Schema.Json | undefined;
|
|
2741
2661
|
readonly finishReason?: "budget-exhausted" | undefined;
|
|
2742
2662
|
readonly exhausted?: "tokens" | "tool-calls" | "turns" | undefined;
|
|
2663
|
+
} | {
|
|
2664
|
+
readonly _tag: "AbortRequested";
|
|
2665
|
+
readonly submissionId: string;
|
|
2666
|
+
readonly author: string;
|
|
2667
|
+
readonly reason: string;
|
|
2668
|
+
} | {
|
|
2669
|
+
readonly _tag: "SubmissionSettled";
|
|
2670
|
+
readonly submissionId: string;
|
|
2671
|
+
readonly settlementId: string;
|
|
2672
|
+
readonly receiptId: string;
|
|
2673
|
+
readonly outcome: "aborted" | "completed" | "failed";
|
|
2674
|
+
readonly runId?: string | undefined;
|
|
2675
|
+
readonly result?: Schema.Json | undefined;
|
|
2676
|
+
readonly runDisposition?: Schema.Json | undefined;
|
|
2677
|
+
readonly finishReason?: "budget-exhausted" | undefined;
|
|
2678
|
+
readonly exhausted?: "tokens" | "tool-calls" | "turns" | undefined;
|
|
2679
|
+
readonly policyLimit?: "cost" | "duration" | "repeated-failures" | "tokens" | "tool-calls" | "turns" | "usage" | undefined;
|
|
2680
|
+
readonly usageSummary?: {
|
|
2681
|
+
readonly modelCalls: number;
|
|
2682
|
+
readonly inputTokens: {
|
|
2683
|
+
readonly total: number;
|
|
2684
|
+
readonly uncached: number;
|
|
2685
|
+
readonly cacheRead: number;
|
|
2686
|
+
readonly cacheWrite: number;
|
|
2687
|
+
};
|
|
2688
|
+
readonly outputTokens: {
|
|
2689
|
+
readonly total: number;
|
|
2690
|
+
readonly text: number;
|
|
2691
|
+
readonly reasoning: number;
|
|
2692
|
+
};
|
|
2693
|
+
readonly costMicrousd: number;
|
|
2694
|
+
readonly byModel: readonly {
|
|
2695
|
+
readonly provider: string;
|
|
2696
|
+
readonly model: string;
|
|
2697
|
+
readonly responseModel?: string | undefined;
|
|
2698
|
+
readonly serviceTier?: string | undefined;
|
|
2699
|
+
readonly pricingVersion?: string | undefined;
|
|
2700
|
+
readonly modelCalls: number;
|
|
2701
|
+
readonly inputTokens: {
|
|
2702
|
+
readonly total: number;
|
|
2703
|
+
readonly uncached: number;
|
|
2704
|
+
readonly cacheRead: number;
|
|
2705
|
+
readonly cacheWrite: number;
|
|
2706
|
+
};
|
|
2707
|
+
readonly outputTokens: {
|
|
2708
|
+
readonly total: number;
|
|
2709
|
+
readonly text: number;
|
|
2710
|
+
readonly reasoning: number;
|
|
2711
|
+
};
|
|
2712
|
+
readonly costMicrousd: number;
|
|
2713
|
+
}[];
|
|
2714
|
+
readonly usageStatus?: "complete" | "partial" | "unknown" | undefined;
|
|
2715
|
+
readonly pricingStatus?: "complete" | "partial" | "unknown" | undefined;
|
|
2716
|
+
readonly unobservedModelCalls?: number | undefined;
|
|
2717
|
+
} | undefined;
|
|
2718
|
+
readonly uncommittedModelUsage?: readonly {
|
|
2719
|
+
readonly provider: string;
|
|
2720
|
+
readonly model: string;
|
|
2721
|
+
readonly serviceTier?: string | undefined;
|
|
2722
|
+
readonly pricingVersion?: string | undefined;
|
|
2723
|
+
readonly response?: {
|
|
2724
|
+
readonly id?: string | undefined;
|
|
2725
|
+
readonly model?: string | undefined;
|
|
2726
|
+
} | undefined;
|
|
2727
|
+
readonly purpose?: "summary" | "turn" | undefined;
|
|
2728
|
+
readonly usageStatus?: "complete" | "partial" | "unknown" | undefined;
|
|
2729
|
+
readonly pricingStatus?: "estimated" | "unknown" | undefined;
|
|
2730
|
+
readonly inputTokens: {
|
|
2731
|
+
readonly total: number;
|
|
2732
|
+
readonly uncached: number;
|
|
2733
|
+
readonly cacheRead: number;
|
|
2734
|
+
readonly cacheWrite: number;
|
|
2735
|
+
};
|
|
2736
|
+
readonly outputTokens: {
|
|
2737
|
+
readonly total: number;
|
|
2738
|
+
readonly text: number;
|
|
2739
|
+
readonly reasoning: number;
|
|
2740
|
+
};
|
|
2741
|
+
readonly costMicrousd: number;
|
|
2742
|
+
}[] | undefined;
|
|
2743
2743
|
} | {
|
|
2744
2744
|
readonly _tag: "SubagentRequested";
|
|
2745
2745
|
readonly runId: string;
|
|
@@ -3088,9 +3088,6 @@ declare const encodePortResponse: (input: PortFailed | PortSucceeded, options?:
|
|
|
3088
3088
|
readonly threadId: string;
|
|
3089
3089
|
readonly actualEpoch: number;
|
|
3090
3090
|
readonly attemptedEpoch: number;
|
|
3091
|
-
} | {
|
|
3092
|
-
readonly _tag: "PortProtocolError";
|
|
3093
|
-
readonly message: string;
|
|
3094
3091
|
} | {
|
|
3095
3092
|
readonly _tag: "AdmissionConflict";
|
|
3096
3093
|
readonly threadId: string;
|
|
@@ -3107,10 +3104,6 @@ declare const encodePortResponse: (input: PortFailed | PortSucceeded, options?:
|
|
|
3107
3104
|
readonly operation: string;
|
|
3108
3105
|
readonly message: string;
|
|
3109
3106
|
readonly cause?: Schema.Json | undefined;
|
|
3110
|
-
} | {
|
|
3111
|
-
readonly _tag: "SettlementConflict";
|
|
3112
|
-
readonly submissionId: string;
|
|
3113
|
-
readonly existingOutcome: "aborted" | "completed" | "failed";
|
|
3114
3107
|
} | {
|
|
3115
3108
|
readonly _tag: "ThreadStoreError";
|
|
3116
3109
|
readonly operation: string;
|
|
@@ -3123,10 +3116,17 @@ declare const encodePortResponse: (input: PortFailed | PortSucceeded, options?:
|
|
|
3123
3116
|
readonly reason: "batch-digest" | "record-identity" | "tail";
|
|
3124
3117
|
readonly actualTailSequence?: number | undefined;
|
|
3125
3118
|
readonly actualTailDigest?: string | undefined;
|
|
3119
|
+
} | {
|
|
3120
|
+
readonly _tag: "SettlementConflict";
|
|
3121
|
+
readonly submissionId: string;
|
|
3122
|
+
readonly existingOutcome: "aborted" | "completed" | "failed";
|
|
3126
3123
|
} | {
|
|
3127
3124
|
readonly _tag: "JoinedToHost";
|
|
3128
3125
|
readonly submissionId: string;
|
|
3129
3126
|
readonly hostSubmissionId: string;
|
|
3127
|
+
} | {
|
|
3128
|
+
readonly _tag: "PortProtocolError";
|
|
3129
|
+
readonly message: string;
|
|
3130
3130
|
};
|
|
3131
3131
|
}, Schema.SchemaError, never>;
|
|
3132
3132
|
declare const decodePortResponse: (input: unknown, options?: import("effect/SchemaAST").ParseOptions) => import("effect/Effect").Effect<PortFailed | PortSucceeded, Schema.SchemaError, never>;
|
package/package.json
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"name":"@effect-agent/storage-cloudflare","version":"0.1.0-beta.
|
|
1
|
+
{"name":"@effect-agent/storage-cloudflare","version":"0.1.0-beta.76","dependencies":{"@effect-agent/core":"0.1.0-beta.76","@effect-agent/thread":"0.1.0-beta.76","@effect/platform-browser":"4.0.0-rc.112","@effect/sql-sqlite-do":"4.0.0-rc.112"},"devDependencies":{"@cloudflare/vitest-pool-workers":"0.21.3","@cloudflare/workers-types":"5.20260825.1","@effect-agent/testing":"0.1.0-beta.76","@effect/vitest":"4.0.0-rc.112","effect":"4.0.0-rc.112","typescript":"7.0.2","vite-plus":"0.3.0","vitest":"4.1.11"},"peerDependencies":{"effect":"^4.0.0-rc.112"},"exports":{".":{"types":"./dist/index.d.mts","default":"./dist/index.mjs"},"./DoMemoryStore":{"types":"./dist/DoMemoryStore.d.mts","default":"./dist/DoMemoryStore.mjs"},"./DoScheduleStore":{"types":"./dist/DoScheduleStore.d.mts","default":"./dist/DoScheduleStore.mjs"},"./DoStorageConfig":{"types":"./dist/DoStorageConfig.d.mts","default":"./dist/DoStorageConfig.mjs"},"./DoStorageError":{"types":"./dist/DoStorageError.d.mts","default":"./dist/DoStorageError.mjs"},"./DoStorageFailpoint":{"types":"./dist/DoStorageFailpoint.d.mts","default":"./dist/DoStorageFailpoint.mjs"},"./DoStorageVersion":{"types":"./dist/DoStorageVersion.d.mts","default":"./dist/DoStorageVersion.mjs"},"./DoSubmissionLedger":{"types":"./dist/DoSubmissionLedger.d.mts","default":"./dist/DoSubmissionLedger.mjs"},"./DoSubscriptionStore":{"types":"./dist/DoSubscriptionStore.d.mts","default":"./dist/DoSubscriptionStore.mjs"},"./DoThreadStore":{"types":"./dist/DoThreadStore.d.mts","default":"./dist/DoThreadStore.mjs"},"./MemoryProtocol":{"types":"./dist/MemoryProtocol.d.mts","default":"./dist/MemoryProtocol.mjs"},"./PortProtocol":{"types":"./dist/PortProtocol.d.mts","default":"./dist/PortProtocol.mjs"},"./PortRouting":{"types":"./dist/PortRouting.d.mts","default":"./dist/PortRouting.mjs"},"./testing/DoStorageFailpointTesting":{"types":"./dist/DoStorageFailpointTesting.d.mts","default":"./dist/DoStorageFailpointTesting.mjs"},"./DoMessageDeliveryStore":{"types":"./dist/DoMessageDeliveryStore.d.mts","default":"./dist/DoMessageDeliveryStore.mjs"}},"description":"Durable Object SQLite storage adapters and the routed port protocol for Effect Agent on Cloudflare.","license":"MIT","repository":{"type":"git","url":"git+https://github.com/danieljvdm/effect-agent.git","directory":"packages/storage-cloudflare"},"files":["dist","src"],"type":"module","sideEffects":[],"publishConfig":{"access":"public"},"scripts":{"build":"vp pack","check":"tsc --noEmit -p tsconfig.json"}}
|