@effect-agent/storage-cloudflare 0.1.0-beta.78 → 0.1.0-beta.79

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.
@@ -350,81 +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: "SubmissionSettled";
354
- readonly submissionId: string;
355
- readonly settlementId: string;
356
- readonly receiptId: string;
357
- readonly outcome: "aborted" | "completed" | "failed";
358
- readonly runId?: string | undefined;
359
- readonly result?: Schema.Json | undefined;
360
- readonly runDisposition?: Schema.Json | undefined;
361
- readonly finishReason?: "budget-exhausted" | undefined;
362
- readonly exhausted?: "tokens" | "tool-calls" | "turns" | undefined;
363
- readonly policyLimit?: "cost" | "duration" | "repeated-failures" | "tokens" | "tool-calls" | "turns" | "usage" | undefined;
364
- readonly usageSummary?: {
365
- readonly modelCalls: number;
366
- readonly inputTokens: {
367
- readonly total: number;
368
- readonly uncached: number;
369
- readonly cacheRead: number;
370
- readonly cacheWrite: number;
371
- };
372
- readonly outputTokens: {
373
- readonly total: number;
374
- readonly text: number;
375
- readonly reasoning: number;
376
- };
377
- readonly costMicrousd: number;
378
- readonly byModel: readonly {
379
- readonly provider: string;
380
- readonly model: string;
381
- readonly responseModel?: string | undefined;
382
- readonly serviceTier?: string | undefined;
383
- readonly pricingVersion?: string | undefined;
384
- readonly modelCalls: number;
385
- readonly inputTokens: {
386
- readonly total: number;
387
- readonly uncached: number;
388
- readonly cacheRead: number;
389
- readonly cacheWrite: number;
390
- };
391
- readonly outputTokens: {
392
- readonly total: number;
393
- readonly text: number;
394
- readonly reasoning: number;
395
- };
396
- readonly costMicrousd: number;
397
- }[];
398
- readonly usageStatus?: "complete" | "partial" | "unknown" | undefined;
399
- readonly pricingStatus?: "complete" | "partial" | "unknown" | undefined;
400
- readonly unobservedModelCalls?: number | undefined;
401
- } | undefined;
402
- readonly uncommittedModelUsage?: readonly {
403
- readonly provider: string;
404
- readonly model: string;
405
- readonly serviceTier?: string | undefined;
406
- readonly pricingVersion?: string | undefined;
407
- readonly response?: {
408
- readonly id?: string | undefined;
409
- readonly model?: string | undefined;
410
- } | undefined;
411
- readonly purpose?: "summary" | "turn" | undefined;
412
- readonly usageStatus?: "complete" | "partial" | "unknown" | undefined;
413
- readonly pricingStatus?: "estimated" | "unknown" | undefined;
414
- readonly inputTokens: {
415
- readonly total: number;
416
- readonly uncached: number;
417
- readonly cacheRead: number;
418
- readonly cacheWrite: number;
419
- };
420
- readonly outputTokens: {
421
- readonly total: number;
422
- readonly text: number;
423
- readonly reasoning: number;
424
- };
425
- readonly costMicrousd: number;
426
- }[] | undefined;
427
- } | {
428
353
  readonly _tag: "ThreadCreated";
429
354
  readonly agentId: string;
430
355
  readonly definitions: {
@@ -604,6 +529,81 @@ declare const encodePortRequest: (input: LedgerAdmitCall | LedgerLookupCall | Le
604
529
  readonly submissionId: string;
605
530
  readonly author: string;
606
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;
@@ -963,81 +963,6 @@ declare const encodePortRequest: (input: LedgerAdmitCall | LedgerLookupCall | Le
963
963
  readonly createdAt: string;
964
964
  readonly deploymentId: string;
965
965
  readonly payload: {
966
- readonly _tag: "SubmissionSettled";
967
- readonly submissionId: string;
968
- readonly settlementId: string;
969
- readonly receiptId: string;
970
- readonly outcome: "aborted" | "completed" | "failed";
971
- readonly runId?: string | undefined;
972
- readonly result?: Schema.Json | undefined;
973
- readonly runDisposition?: Schema.Json | undefined;
974
- readonly finishReason?: "budget-exhausted" | undefined;
975
- readonly exhausted?: "tokens" | "tool-calls" | "turns" | undefined;
976
- readonly policyLimit?: "cost" | "duration" | "repeated-failures" | "tokens" | "tool-calls" | "turns" | "usage" | undefined;
977
- readonly usageSummary?: {
978
- readonly modelCalls: number;
979
- readonly inputTokens: {
980
- readonly total: number;
981
- readonly uncached: number;
982
- readonly cacheRead: number;
983
- readonly cacheWrite: number;
984
- };
985
- readonly outputTokens: {
986
- readonly total: number;
987
- readonly text: number;
988
- readonly reasoning: number;
989
- };
990
- readonly costMicrousd: number;
991
- readonly byModel: readonly {
992
- readonly provider: string;
993
- readonly model: string;
994
- readonly responseModel?: string | undefined;
995
- readonly serviceTier?: string | undefined;
996
- readonly pricingVersion?: string | undefined;
997
- readonly modelCalls: number;
998
- readonly inputTokens: {
999
- readonly total: number;
1000
- readonly uncached: number;
1001
- readonly cacheRead: number;
1002
- readonly cacheWrite: number;
1003
- };
1004
- readonly outputTokens: {
1005
- readonly total: number;
1006
- readonly text: number;
1007
- readonly reasoning: number;
1008
- };
1009
- readonly costMicrousd: number;
1010
- }[];
1011
- readonly usageStatus?: "complete" | "partial" | "unknown" | undefined;
1012
- readonly pricingStatus?: "complete" | "partial" | "unknown" | undefined;
1013
- readonly unobservedModelCalls?: number | undefined;
1014
- } | undefined;
1015
- readonly uncommittedModelUsage?: readonly {
1016
- readonly provider: string;
1017
- readonly model: string;
1018
- readonly serviceTier?: string | undefined;
1019
- readonly pricingVersion?: string | undefined;
1020
- readonly response?: {
1021
- readonly id?: string | undefined;
1022
- readonly model?: string | undefined;
1023
- } | undefined;
1024
- readonly purpose?: "summary" | "turn" | undefined;
1025
- readonly usageStatus?: "complete" | "partial" | "unknown" | undefined;
1026
- readonly pricingStatus?: "estimated" | "unknown" | undefined;
1027
- readonly inputTokens: {
1028
- readonly total: number;
1029
- readonly uncached: number;
1030
- readonly cacheRead: number;
1031
- readonly cacheWrite: number;
1032
- };
1033
- readonly outputTokens: {
1034
- readonly total: number;
1035
- readonly text: number;
1036
- readonly reasoning: number;
1037
- };
1038
- readonly costMicrousd: number;
1039
- }[] | undefined;
1040
- } | {
1041
966
  readonly _tag: "ThreadCreated";
1042
967
  readonly agentId: string;
1043
968
  readonly definitions: {
@@ -1217,6 +1142,81 @@ declare const encodePortRequest: (input: LedgerAdmitCall | LedgerLookupCall | Le
1217
1142
  readonly submissionId: string;
1218
1143
  readonly author: string;
1219
1144
  readonly reason: string;
1145
+ } | {
1146
+ readonly _tag: "SubmissionSettled";
1147
+ readonly submissionId: string;
1148
+ readonly settlementId: string;
1149
+ readonly receiptId: string;
1150
+ readonly outcome: "aborted" | "completed" | "failed";
1151
+ readonly runId?: string | undefined;
1152
+ readonly result?: Schema.Json | undefined;
1153
+ readonly runDisposition?: Schema.Json | undefined;
1154
+ readonly finishReason?: "budget-exhausted" | undefined;
1155
+ readonly exhausted?: "tokens" | "tool-calls" | "turns" | undefined;
1156
+ readonly policyLimit?: "cost" | "duration" | "repeated-failures" | "tokens" | "tool-calls" | "turns" | "usage" | undefined;
1157
+ readonly usageSummary?: {
1158
+ readonly modelCalls: number;
1159
+ readonly inputTokens: {
1160
+ readonly total: number;
1161
+ readonly uncached: number;
1162
+ readonly cacheRead: number;
1163
+ readonly cacheWrite: number;
1164
+ };
1165
+ readonly outputTokens: {
1166
+ readonly total: number;
1167
+ readonly text: number;
1168
+ readonly reasoning: number;
1169
+ };
1170
+ readonly costMicrousd: number;
1171
+ readonly byModel: readonly {
1172
+ readonly provider: string;
1173
+ readonly model: string;
1174
+ readonly responseModel?: string | undefined;
1175
+ readonly serviceTier?: string | undefined;
1176
+ readonly pricingVersion?: string | undefined;
1177
+ readonly modelCalls: number;
1178
+ readonly inputTokens: {
1179
+ readonly total: number;
1180
+ readonly uncached: number;
1181
+ readonly cacheRead: number;
1182
+ readonly cacheWrite: number;
1183
+ };
1184
+ readonly outputTokens: {
1185
+ readonly total: number;
1186
+ readonly text: number;
1187
+ readonly reasoning: number;
1188
+ };
1189
+ readonly costMicrousd: number;
1190
+ }[];
1191
+ readonly usageStatus?: "complete" | "partial" | "unknown" | undefined;
1192
+ readonly pricingStatus?: "complete" | "partial" | "unknown" | undefined;
1193
+ readonly unobservedModelCalls?: number | undefined;
1194
+ } | undefined;
1195
+ readonly uncommittedModelUsage?: readonly {
1196
+ readonly provider: string;
1197
+ readonly model: string;
1198
+ readonly serviceTier?: string | undefined;
1199
+ readonly pricingVersion?: string | undefined;
1200
+ readonly response?: {
1201
+ readonly id?: string | undefined;
1202
+ readonly model?: string | undefined;
1203
+ } | undefined;
1204
+ readonly purpose?: "summary" | "turn" | undefined;
1205
+ readonly usageStatus?: "complete" | "partial" | "unknown" | undefined;
1206
+ readonly pricingStatus?: "estimated" | "unknown" | undefined;
1207
+ readonly inputTokens: {
1208
+ readonly total: number;
1209
+ readonly uncached: number;
1210
+ readonly cacheRead: number;
1211
+ readonly cacheWrite: number;
1212
+ };
1213
+ readonly outputTokens: {
1214
+ readonly total: number;
1215
+ readonly text: number;
1216
+ readonly reasoning: number;
1217
+ };
1218
+ readonly costMicrousd: number;
1219
+ }[] | undefined;
1220
1220
  } | {
1221
1221
  readonly _tag: "SubagentRequested";
1222
1222
  readonly runId: string;
@@ -1905,81 +1905,6 @@ declare const encodePortResponse: (input: PortFailed | PortSucceeded, options?:
1905
1905
  readonly createdAt: string;
1906
1906
  readonly deploymentId: string;
1907
1907
  readonly payload: {
1908
- readonly _tag: "SubmissionSettled";
1909
- readonly submissionId: string;
1910
- readonly settlementId: string;
1911
- readonly receiptId: string;
1912
- readonly outcome: "aborted" | "completed" | "failed";
1913
- readonly runId?: string | undefined;
1914
- readonly result?: Schema.Json | undefined;
1915
- readonly runDisposition?: Schema.Json | undefined;
1916
- readonly finishReason?: "budget-exhausted" | undefined;
1917
- readonly exhausted?: "tokens" | "tool-calls" | "turns" | undefined;
1918
- readonly policyLimit?: "cost" | "duration" | "repeated-failures" | "tokens" | "tool-calls" | "turns" | "usage" | undefined;
1919
- readonly usageSummary?: {
1920
- readonly modelCalls: number;
1921
- readonly inputTokens: {
1922
- readonly total: number;
1923
- readonly uncached: number;
1924
- readonly cacheRead: number;
1925
- readonly cacheWrite: number;
1926
- };
1927
- readonly outputTokens: {
1928
- readonly total: number;
1929
- readonly text: number;
1930
- readonly reasoning: number;
1931
- };
1932
- readonly costMicrousd: number;
1933
- readonly byModel: readonly {
1934
- readonly provider: string;
1935
- readonly model: string;
1936
- readonly responseModel?: string | undefined;
1937
- readonly serviceTier?: string | undefined;
1938
- readonly pricingVersion?: string | undefined;
1939
- readonly modelCalls: number;
1940
- readonly inputTokens: {
1941
- readonly total: number;
1942
- readonly uncached: number;
1943
- readonly cacheRead: number;
1944
- readonly cacheWrite: number;
1945
- };
1946
- readonly outputTokens: {
1947
- readonly total: number;
1948
- readonly text: number;
1949
- readonly reasoning: number;
1950
- };
1951
- readonly costMicrousd: number;
1952
- }[];
1953
- readonly usageStatus?: "complete" | "partial" | "unknown" | undefined;
1954
- readonly pricingStatus?: "complete" | "partial" | "unknown" | undefined;
1955
- readonly unobservedModelCalls?: number | undefined;
1956
- } | undefined;
1957
- readonly uncommittedModelUsage?: readonly {
1958
- readonly provider: string;
1959
- readonly model: string;
1960
- readonly serviceTier?: string | undefined;
1961
- readonly pricingVersion?: string | undefined;
1962
- readonly response?: {
1963
- readonly id?: string | undefined;
1964
- readonly model?: string | undefined;
1965
- } | undefined;
1966
- readonly purpose?: "summary" | "turn" | undefined;
1967
- readonly usageStatus?: "complete" | "partial" | "unknown" | undefined;
1968
- readonly pricingStatus?: "estimated" | "unknown" | undefined;
1969
- readonly inputTokens: {
1970
- readonly total: number;
1971
- readonly uncached: number;
1972
- readonly cacheRead: number;
1973
- readonly cacheWrite: number;
1974
- };
1975
- readonly outputTokens: {
1976
- readonly total: number;
1977
- readonly text: number;
1978
- readonly reasoning: number;
1979
- };
1980
- readonly costMicrousd: number;
1981
- }[] | undefined;
1982
- } | {
1983
1908
  readonly _tag: "ThreadCreated";
1984
1909
  readonly agentId: string;
1985
1910
  readonly definitions: {
@@ -2159,6 +2084,81 @@ declare const encodePortResponse: (input: PortFailed | PortSucceeded, options?:
2159
2084
  readonly submissionId: string;
2160
2085
  readonly author: string;
2161
2086
  readonly reason: string;
2087
+ } | {
2088
+ readonly _tag: "SubmissionSettled";
2089
+ readonly submissionId: string;
2090
+ readonly settlementId: string;
2091
+ readonly receiptId: string;
2092
+ readonly outcome: "aborted" | "completed" | "failed";
2093
+ readonly runId?: string | undefined;
2094
+ readonly result?: Schema.Json | undefined;
2095
+ readonly runDisposition?: Schema.Json | undefined;
2096
+ readonly finishReason?: "budget-exhausted" | undefined;
2097
+ readonly exhausted?: "tokens" | "tool-calls" | "turns" | undefined;
2098
+ readonly policyLimit?: "cost" | "duration" | "repeated-failures" | "tokens" | "tool-calls" | "turns" | "usage" | undefined;
2099
+ readonly usageSummary?: {
2100
+ readonly modelCalls: number;
2101
+ readonly inputTokens: {
2102
+ readonly total: number;
2103
+ readonly uncached: number;
2104
+ readonly cacheRead: number;
2105
+ readonly cacheWrite: number;
2106
+ };
2107
+ readonly outputTokens: {
2108
+ readonly total: number;
2109
+ readonly text: number;
2110
+ readonly reasoning: number;
2111
+ };
2112
+ readonly costMicrousd: number;
2113
+ readonly byModel: readonly {
2114
+ readonly provider: string;
2115
+ readonly model: string;
2116
+ readonly responseModel?: string | undefined;
2117
+ readonly serviceTier?: string | undefined;
2118
+ readonly pricingVersion?: string | undefined;
2119
+ readonly modelCalls: number;
2120
+ readonly inputTokens: {
2121
+ readonly total: number;
2122
+ readonly uncached: number;
2123
+ readonly cacheRead: number;
2124
+ readonly cacheWrite: number;
2125
+ };
2126
+ readonly outputTokens: {
2127
+ readonly total: number;
2128
+ readonly text: number;
2129
+ readonly reasoning: number;
2130
+ };
2131
+ readonly costMicrousd: number;
2132
+ }[];
2133
+ readonly usageStatus?: "complete" | "partial" | "unknown" | undefined;
2134
+ readonly pricingStatus?: "complete" | "partial" | "unknown" | undefined;
2135
+ readonly unobservedModelCalls?: number | undefined;
2136
+ } | undefined;
2137
+ readonly uncommittedModelUsage?: readonly {
2138
+ readonly provider: string;
2139
+ readonly model: string;
2140
+ readonly serviceTier?: string | undefined;
2141
+ readonly pricingVersion?: string | undefined;
2142
+ readonly response?: {
2143
+ readonly id?: string | undefined;
2144
+ readonly model?: string | undefined;
2145
+ } | undefined;
2146
+ readonly purpose?: "summary" | "turn" | undefined;
2147
+ readonly usageStatus?: "complete" | "partial" | "unknown" | undefined;
2148
+ readonly pricingStatus?: "estimated" | "unknown" | undefined;
2149
+ readonly inputTokens: {
2150
+ readonly total: number;
2151
+ readonly uncached: number;
2152
+ readonly cacheRead: number;
2153
+ readonly cacheWrite: number;
2154
+ };
2155
+ readonly outputTokens: {
2156
+ readonly total: number;
2157
+ readonly text: number;
2158
+ readonly reasoning: number;
2159
+ };
2160
+ readonly costMicrousd: number;
2161
+ }[] | undefined;
2162
2162
  } | {
2163
2163
  readonly _tag: "SubagentRequested";
2164
2164
  readonly runId: string;
@@ -2540,81 +2540,6 @@ declare const encodePortResponse: (input: PortFailed | PortSucceeded, options?:
2540
2540
  readonly createdAt: string;
2541
2541
  readonly deploymentId: string;
2542
2542
  readonly payload: {
2543
- readonly _tag: "SubmissionSettled";
2544
- readonly submissionId: string;
2545
- readonly settlementId: string;
2546
- readonly receiptId: string;
2547
- readonly outcome: "aborted" | "completed" | "failed";
2548
- readonly runId?: string | undefined;
2549
- readonly result?: Schema.Json | undefined;
2550
- readonly runDisposition?: Schema.Json | undefined;
2551
- readonly finishReason?: "budget-exhausted" | undefined;
2552
- readonly exhausted?: "tokens" | "tool-calls" | "turns" | undefined;
2553
- readonly policyLimit?: "cost" | "duration" | "repeated-failures" | "tokens" | "tool-calls" | "turns" | "usage" | undefined;
2554
- readonly usageSummary?: {
2555
- readonly modelCalls: number;
2556
- readonly inputTokens: {
2557
- readonly total: number;
2558
- readonly uncached: number;
2559
- readonly cacheRead: number;
2560
- readonly cacheWrite: number;
2561
- };
2562
- readonly outputTokens: {
2563
- readonly total: number;
2564
- readonly text: number;
2565
- readonly reasoning: number;
2566
- };
2567
- readonly costMicrousd: number;
2568
- readonly byModel: readonly {
2569
- readonly provider: string;
2570
- readonly model: string;
2571
- readonly responseModel?: string | undefined;
2572
- readonly serviceTier?: string | undefined;
2573
- readonly pricingVersion?: string | undefined;
2574
- readonly modelCalls: number;
2575
- readonly inputTokens: {
2576
- readonly total: number;
2577
- readonly uncached: number;
2578
- readonly cacheRead: number;
2579
- readonly cacheWrite: number;
2580
- };
2581
- readonly outputTokens: {
2582
- readonly total: number;
2583
- readonly text: number;
2584
- readonly reasoning: number;
2585
- };
2586
- readonly costMicrousd: number;
2587
- }[];
2588
- readonly usageStatus?: "complete" | "partial" | "unknown" | undefined;
2589
- readonly pricingStatus?: "complete" | "partial" | "unknown" | undefined;
2590
- readonly unobservedModelCalls?: number | undefined;
2591
- } | undefined;
2592
- readonly uncommittedModelUsage?: readonly {
2593
- readonly provider: string;
2594
- readonly model: string;
2595
- readonly serviceTier?: string | undefined;
2596
- readonly pricingVersion?: string | undefined;
2597
- readonly response?: {
2598
- readonly id?: string | undefined;
2599
- readonly model?: string | undefined;
2600
- } | undefined;
2601
- readonly purpose?: "summary" | "turn" | undefined;
2602
- readonly usageStatus?: "complete" | "partial" | "unknown" | undefined;
2603
- readonly pricingStatus?: "estimated" | "unknown" | undefined;
2604
- readonly inputTokens: {
2605
- readonly total: number;
2606
- readonly uncached: number;
2607
- readonly cacheRead: number;
2608
- readonly cacheWrite: number;
2609
- };
2610
- readonly outputTokens: {
2611
- readonly total: number;
2612
- readonly text: number;
2613
- readonly reasoning: number;
2614
- };
2615
- readonly costMicrousd: number;
2616
- }[] | undefined;
2617
- } | {
2618
2543
  readonly _tag: "ThreadCreated";
2619
2544
  readonly agentId: string;
2620
2545
  readonly definitions: {
@@ -2794,6 +2719,81 @@ declare const encodePortResponse: (input: PortFailed | PortSucceeded, options?:
2794
2719
  readonly submissionId: string;
2795
2720
  readonly author: string;
2796
2721
  readonly reason: string;
2722
+ } | {
2723
+ readonly _tag: "SubmissionSettled";
2724
+ readonly submissionId: string;
2725
+ readonly settlementId: string;
2726
+ readonly receiptId: string;
2727
+ readonly outcome: "aborted" | "completed" | "failed";
2728
+ readonly runId?: string | undefined;
2729
+ readonly result?: Schema.Json | undefined;
2730
+ readonly runDisposition?: Schema.Json | undefined;
2731
+ readonly finishReason?: "budget-exhausted" | undefined;
2732
+ readonly exhausted?: "tokens" | "tool-calls" | "turns" | undefined;
2733
+ readonly policyLimit?: "cost" | "duration" | "repeated-failures" | "tokens" | "tool-calls" | "turns" | "usage" | undefined;
2734
+ readonly usageSummary?: {
2735
+ readonly modelCalls: number;
2736
+ readonly inputTokens: {
2737
+ readonly total: number;
2738
+ readonly uncached: number;
2739
+ readonly cacheRead: number;
2740
+ readonly cacheWrite: number;
2741
+ };
2742
+ readonly outputTokens: {
2743
+ readonly total: number;
2744
+ readonly text: number;
2745
+ readonly reasoning: number;
2746
+ };
2747
+ readonly costMicrousd: number;
2748
+ readonly byModel: readonly {
2749
+ readonly provider: string;
2750
+ readonly model: string;
2751
+ readonly responseModel?: string | undefined;
2752
+ readonly serviceTier?: string | undefined;
2753
+ readonly pricingVersion?: string | undefined;
2754
+ readonly modelCalls: number;
2755
+ readonly inputTokens: {
2756
+ readonly total: number;
2757
+ readonly uncached: number;
2758
+ readonly cacheRead: number;
2759
+ readonly cacheWrite: number;
2760
+ };
2761
+ readonly outputTokens: {
2762
+ readonly total: number;
2763
+ readonly text: number;
2764
+ readonly reasoning: number;
2765
+ };
2766
+ readonly costMicrousd: number;
2767
+ }[];
2768
+ readonly usageStatus?: "complete" | "partial" | "unknown" | undefined;
2769
+ readonly pricingStatus?: "complete" | "partial" | "unknown" | undefined;
2770
+ readonly unobservedModelCalls?: number | undefined;
2771
+ } | undefined;
2772
+ readonly uncommittedModelUsage?: readonly {
2773
+ readonly provider: string;
2774
+ readonly model: string;
2775
+ readonly serviceTier?: string | undefined;
2776
+ readonly pricingVersion?: string | undefined;
2777
+ readonly response?: {
2778
+ readonly id?: string | undefined;
2779
+ readonly model?: string | undefined;
2780
+ } | undefined;
2781
+ readonly purpose?: "summary" | "turn" | undefined;
2782
+ readonly usageStatus?: "complete" | "partial" | "unknown" | undefined;
2783
+ readonly pricingStatus?: "estimated" | "unknown" | undefined;
2784
+ readonly inputTokens: {
2785
+ readonly total: number;
2786
+ readonly uncached: number;
2787
+ readonly cacheRead: number;
2788
+ readonly cacheWrite: number;
2789
+ };
2790
+ readonly outputTokens: {
2791
+ readonly total: number;
2792
+ readonly text: number;
2793
+ readonly reasoning: number;
2794
+ };
2795
+ readonly costMicrousd: number;
2796
+ }[] | undefined;
2797
2797
  } | {
2798
2798
  readonly _tag: "SubagentRequested";
2799
2799
  readonly runId: string;
@@ -3153,6 +3153,26 @@ declare const encodePortResponse: (input: PortFailed | PortSucceeded, options?:
3153
3153
  } | {
3154
3154
  readonly _tag: "PortFailed";
3155
3155
  readonly failure: {
3156
+ readonly _tag: "FenceRejected";
3157
+ readonly threadId: string;
3158
+ readonly actualEpoch: number;
3159
+ readonly attemptedEpoch: number;
3160
+ } | {
3161
+ readonly _tag: "ThreadStoreError";
3162
+ readonly operation: string;
3163
+ readonly message: string;
3164
+ readonly cause?: Schema.Json | undefined;
3165
+ } | {
3166
+ readonly _tag: "ThreadNotMaterialized";
3167
+ readonly threadId: string;
3168
+ } | {
3169
+ readonly _tag: "AppendConflict";
3170
+ readonly threadId: string;
3171
+ readonly batchId: string;
3172
+ readonly reason: "batch-digest" | "record-identity" | "tail";
3173
+ readonly actualTailSequence?: number | undefined;
3174
+ readonly actualTailDigest?: string | undefined;
3175
+ } | {
3156
3176
  readonly _tag: "AdmissionConflict";
3157
3177
  readonly threadId: string;
3158
3178
  readonly principal: string;
@@ -3168,37 +3188,17 @@ declare const encodePortResponse: (input: PortFailed | PortSucceeded, options?:
3168
3188
  readonly operation: string;
3169
3189
  readonly message: string;
3170
3190
  readonly cause?: Schema.Json | undefined;
3191
+ } | {
3192
+ readonly _tag: "PortProtocolError";
3193
+ readonly message: string;
3171
3194
  } | {
3172
3195
  readonly _tag: "SettlementConflict";
3173
3196
  readonly submissionId: string;
3174
3197
  readonly existingOutcome: "aborted" | "completed" | "failed";
3175
- } | {
3176
- readonly _tag: "ThreadNotMaterialized";
3177
- readonly threadId: string;
3178
- } | {
3179
- readonly _tag: "FenceRejected";
3180
- readonly threadId: string;
3181
- readonly actualEpoch: number;
3182
- readonly attemptedEpoch: number;
3183
3198
  } | {
3184
3199
  readonly _tag: "JoinedToHost";
3185
3200
  readonly submissionId: string;
3186
3201
  readonly hostSubmissionId: string;
3187
- } | {
3188
- readonly _tag: "PortProtocolError";
3189
- readonly message: string;
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
3202
  };
3203
3203
  }, Schema.SchemaError, never>;
3204
3204
  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.78","dependencies":{"@effect-agent/core":"0.1.0-beta.78","@effect-agent/thread":"0.1.0-beta.78","@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.78","@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.79","dependencies":{"@effect-agent/core":"0.1.0-beta.79","@effect-agent/thread":"0.1.0-beta.79","@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.79","@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"}}