@effect-agent/storage-cloudflare 0.1.0-beta.72 → 0.1.0-beta.74

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.
@@ -354,6 +354,81 @@ declare const encodePortRequest: (input: LedgerAdmitCall | LedgerLookupCall | Le
354
354
  readonly submissionId: string;
355
355
  readonly author: string;
356
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;
357
432
  } | {
358
433
  readonly _tag: "ThreadCreated";
359
434
  readonly agentId: string;
@@ -529,81 +604,6 @@ declare const encodePortRequest: (input: LedgerAdmitCall | LedgerLookupCall | Le
529
604
  readonly runDisposition?: Schema.Json | undefined;
530
605
  readonly finishReason?: "budget-exhausted" | undefined;
531
606
  readonly exhausted?: "tokens" | "tool-calls" | "turns" | undefined;
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;
@@ -949,6 +949,81 @@ declare const encodePortRequest: (input: LedgerAdmitCall | LedgerLookupCall | Le
949
949
  readonly submissionId: string;
950
950
  readonly author: string;
951
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;
952
1027
  } | {
953
1028
  readonly _tag: "ThreadCreated";
954
1029
  readonly agentId: string;
@@ -1124,81 +1199,6 @@ declare const encodePortRequest: (input: LedgerAdmitCall | LedgerLookupCall | Le
1124
1199
  readonly runDisposition?: Schema.Json | undefined;
1125
1200
  readonly finishReason?: "budget-exhausted" | undefined;
1126
1201
  readonly exhausted?: "tokens" | "tool-calls" | "turns" | undefined;
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;
@@ -1873,6 +1873,81 @@ declare const encodePortResponse: (input: PortFailed | PortSucceeded, options?:
1873
1873
  readonly submissionId: string;
1874
1874
  readonly author: string;
1875
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;
1876
1951
  } | {
1877
1952
  readonly _tag: "ThreadCreated";
1878
1953
  readonly agentId: string;
@@ -2048,81 +2123,6 @@ declare const encodePortResponse: (input: PortFailed | PortSucceeded, options?:
2048
2123
  readonly runDisposition?: Schema.Json | undefined;
2049
2124
  readonly finishReason?: "budget-exhausted" | undefined;
2050
2125
  readonly exhausted?: "tokens" | "tool-calls" | "turns" | undefined;
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;
@@ -2490,6 +2490,81 @@ declare const encodePortResponse: (input: PortFailed | PortSucceeded, options?:
2490
2490
  readonly submissionId: string;
2491
2491
  readonly author: string;
2492
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;
2493
2568
  } | {
2494
2569
  readonly _tag: "ThreadCreated";
2495
2570
  readonly agentId: string;
@@ -2665,81 +2740,6 @@ declare const encodePortResponse: (input: PortFailed | PortSucceeded, options?:
2665
2740
  readonly runDisposition?: Schema.Json | undefined;
2666
2741
  readonly finishReason?: "budget-exhausted" | undefined;
2667
2742
  readonly exhausted?: "tokens" | "tool-calls" | "turns" | undefined;
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;
@@ -3081,9 +3081,6 @@ declare const encodePortResponse: (input: PortFailed | PortSucceeded, options?:
3081
3081
  } | {
3082
3082
  readonly _tag: "PortFailed";
3083
3083
  readonly failure: {
3084
- readonly _tag: "PortProtocolError";
3085
- readonly message: string;
3086
- } | {
3087
3084
  readonly _tag: "ThreadNotMaterialized";
3088
3085
  readonly threadId: string;
3089
3086
  } | {
@@ -3092,17 +3089,8 @@ declare const encodePortResponse: (input: PortFailed | PortSucceeded, options?:
3092
3089
  readonly actualEpoch: number;
3093
3090
  readonly attemptedEpoch: number;
3094
3091
  } | {
3095
- readonly _tag: "ThreadStoreError";
3096
- readonly operation: string;
3092
+ readonly _tag: "PortProtocolError";
3097
3093
  readonly message: string;
3098
- readonly cause?: Schema.Json | undefined;
3099
- } | {
3100
- readonly _tag: "AppendConflict";
3101
- readonly threadId: string;
3102
- readonly batchId: string;
3103
- readonly reason: "batch-digest" | "record-identity" | "tail";
3104
- readonly actualTailSequence?: number | undefined;
3105
- readonly actualTailDigest?: string | undefined;
3106
3094
  } | {
3107
3095
  readonly _tag: "AdmissionConflict";
3108
3096
  readonly threadId: string;
@@ -3123,6 +3111,18 @@ declare const encodePortResponse: (input: PortFailed | PortSucceeded, options?:
3123
3111
  readonly _tag: "SettlementConflict";
3124
3112
  readonly submissionId: string;
3125
3113
  readonly existingOutcome: "aborted" | "completed" | "failed";
3114
+ } | {
3115
+ readonly _tag: "ThreadStoreError";
3116
+ readonly operation: string;
3117
+ readonly message: string;
3118
+ readonly cause?: Schema.Json | undefined;
3119
+ } | {
3120
+ readonly _tag: "AppendConflict";
3121
+ readonly threadId: string;
3122
+ readonly batchId: string;
3123
+ readonly reason: "batch-digest" | "record-identity" | "tail";
3124
+ readonly actualTailSequence?: number | undefined;
3125
+ readonly actualTailDigest?: string | undefined;
3126
3126
  } | {
3127
3127
  readonly _tag: "JoinedToHost";
3128
3128
  readonly submissionId: string;
package/package.json CHANGED
@@ -1 +1 @@
1
- {"name":"@effect-agent/storage-cloudflare","version":"0.1.0-beta.72","dependencies":{"@effect-agent/core":"0.1.0-beta.72","@effect-agent/thread":"0.1.0-beta.72","@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.72","@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"}}
1
+ {"name":"@effect-agent/storage-cloudflare","version":"0.1.0-beta.74","dependencies":{"@effect-agent/core":"0.1.0-beta.74","@effect-agent/thread":"0.1.0-beta.74","@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.74","@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"}}