@effect-agent/storage-cloudflare 0.1.0-beta.75 → 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.
@@ -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;
@@ -945,81 +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: "SubmissionSettled";
949
- readonly submissionId: string;
950
- readonly settlementId: string;
951
- readonly receiptId: string;
952
- readonly outcome: "aborted" | "completed" | "failed";
953
- readonly runId?: string | undefined;
954
- readonly result?: Schema.Json | undefined;
955
- readonly runDisposition?: Schema.Json | undefined;
956
- readonly finishReason?: "budget-exhausted" | undefined;
957
- readonly exhausted?: "tokens" | "tool-calls" | "turns" | undefined;
958
- readonly policyLimit?: "cost" | "duration" | "repeated-failures" | "tokens" | "tool-calls" | "turns" | "usage" | undefined;
959
- readonly usageSummary?: {
960
- readonly modelCalls: number;
961
- readonly inputTokens: {
962
- readonly total: number;
963
- readonly uncached: number;
964
- readonly cacheRead: number;
965
- readonly cacheWrite: number;
966
- };
967
- readonly outputTokens: {
968
- readonly total: number;
969
- readonly text: number;
970
- readonly reasoning: number;
971
- };
972
- readonly costMicrousd: number;
973
- readonly byModel: readonly {
974
- readonly provider: string;
975
- readonly model: string;
976
- readonly responseModel?: string | undefined;
977
- readonly serviceTier?: string | undefined;
978
- readonly pricingVersion?: string | undefined;
979
- readonly modelCalls: number;
980
- readonly inputTokens: {
981
- readonly total: number;
982
- readonly uncached: number;
983
- readonly cacheRead: number;
984
- readonly cacheWrite: number;
985
- };
986
- readonly outputTokens: {
987
- readonly total: number;
988
- readonly text: number;
989
- readonly reasoning: number;
990
- };
991
- readonly costMicrousd: number;
992
- }[];
993
- readonly usageStatus?: "complete" | "partial" | "unknown" | undefined;
994
- readonly pricingStatus?: "complete" | "partial" | "unknown" | undefined;
995
- readonly unobservedModelCalls?: number | undefined;
996
- } | undefined;
997
- readonly uncommittedModelUsage?: readonly {
998
- readonly provider: string;
999
- readonly model: string;
1000
- readonly serviceTier?: string | undefined;
1001
- readonly pricingVersion?: string | undefined;
1002
- readonly response?: {
1003
- readonly id?: string | undefined;
1004
- readonly model?: string | undefined;
1005
- } | undefined;
1006
- readonly purpose?: "summary" | "turn" | undefined;
1007
- readonly usageStatus?: "complete" | "partial" | "unknown" | undefined;
1008
- readonly pricingStatus?: "estimated" | "unknown" | undefined;
1009
- readonly inputTokens: {
1010
- readonly total: number;
1011
- readonly uncached: number;
1012
- readonly cacheRead: number;
1013
- readonly cacheWrite: number;
1014
- };
1015
- readonly outputTokens: {
1016
- readonly total: number;
1017
- readonly text: number;
1018
- readonly reasoning: number;
1019
- };
1020
- readonly costMicrousd: number;
1021
- }[] | undefined;
1022
- } | {
1023
948
  readonly _tag: "ThreadCreated";
1024
949
  readonly agentId: string;
1025
950
  readonly definitions: {
@@ -1199,6 +1124,81 @@ declare const encodePortRequest: (input: LedgerAdmitCall | LedgerLookupCall | Le
1199
1124
  readonly submissionId: string;
1200
1125
  readonly author: string;
1201
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;
@@ -1860,90 +1860,15 @@ declare const encodePortResponse: (input: PortFailed | PortSucceeded, options?:
1860
1860
  readonly records: readonly {
1861
1861
  readonly threadId: string;
1862
1862
  readonly batchId: string;
1863
- readonly sequence: number;
1864
- readonly offset: string;
1865
- readonly record: {
1866
- readonly recordId: string;
1867
- readonly family: "thread";
1868
- readonly schemaVersion: 1;
1869
- readonly createdAt: string;
1870
- readonly deploymentId: string;
1871
- readonly payload: {
1872
- readonly _tag: "SubmissionSettled";
1873
- readonly submissionId: string;
1874
- readonly settlementId: string;
1875
- readonly receiptId: string;
1876
- readonly outcome: "aborted" | "completed" | "failed";
1877
- readonly runId?: string | undefined;
1878
- readonly result?: Schema.Json | undefined;
1879
- readonly runDisposition?: Schema.Json | undefined;
1880
- readonly finishReason?: "budget-exhausted" | undefined;
1881
- readonly exhausted?: "tokens" | "tool-calls" | "turns" | undefined;
1882
- readonly policyLimit?: "cost" | "duration" | "repeated-failures" | "tokens" | "tool-calls" | "turns" | "usage" | undefined;
1883
- readonly usageSummary?: {
1884
- readonly modelCalls: number;
1885
- readonly inputTokens: {
1886
- readonly total: number;
1887
- readonly uncached: number;
1888
- readonly cacheRead: number;
1889
- readonly cacheWrite: number;
1890
- };
1891
- readonly outputTokens: {
1892
- readonly total: number;
1893
- readonly text: number;
1894
- readonly reasoning: number;
1895
- };
1896
- readonly costMicrousd: number;
1897
- readonly byModel: readonly {
1898
- readonly provider: string;
1899
- readonly model: string;
1900
- readonly responseModel?: string | undefined;
1901
- readonly serviceTier?: string | undefined;
1902
- readonly pricingVersion?: string | undefined;
1903
- readonly modelCalls: number;
1904
- readonly inputTokens: {
1905
- readonly total: number;
1906
- readonly uncached: number;
1907
- readonly cacheRead: number;
1908
- readonly cacheWrite: number;
1909
- };
1910
- readonly outputTokens: {
1911
- readonly total: number;
1912
- readonly text: number;
1913
- readonly reasoning: number;
1914
- };
1915
- readonly costMicrousd: number;
1916
- }[];
1917
- readonly usageStatus?: "complete" | "partial" | "unknown" | undefined;
1918
- readonly pricingStatus?: "complete" | "partial" | "unknown" | undefined;
1919
- readonly unobservedModelCalls?: number | undefined;
1920
- } | undefined;
1921
- readonly uncommittedModelUsage?: readonly {
1922
- readonly provider: string;
1923
- readonly model: string;
1924
- readonly serviceTier?: string | undefined;
1925
- readonly pricingVersion?: string | undefined;
1926
- readonly response?: {
1927
- readonly id?: string | undefined;
1928
- readonly model?: string | undefined;
1929
- } | undefined;
1930
- readonly purpose?: "summary" | "turn" | undefined;
1931
- readonly usageStatus?: "complete" | "partial" | "unknown" | undefined;
1932
- readonly pricingStatus?: "estimated" | "unknown" | undefined;
1933
- readonly inputTokens: {
1934
- readonly total: number;
1935
- readonly uncached: number;
1936
- readonly cacheRead: number;
1937
- readonly cacheWrite: number;
1938
- };
1939
- readonly outputTokens: {
1940
- readonly total: number;
1941
- readonly text: number;
1942
- readonly reasoning: number;
1943
- };
1944
- readonly costMicrousd: number;
1945
- }[] | undefined;
1946
- } | {
1863
+ readonly sequence: number;
1864
+ readonly offset: string;
1865
+ readonly record: {
1866
+ readonly recordId: string;
1867
+ readonly family: "thread";
1868
+ readonly schemaVersion: 1;
1869
+ readonly createdAt: string;
1870
+ readonly deploymentId: string;
1871
+ readonly payload: {
1947
1872
  readonly _tag: "ThreadCreated";
1948
1873
  readonly agentId: string;
1949
1874
  readonly definitions: {
@@ -2123,6 +2048,81 @@ declare const encodePortResponse: (input: PortFailed | PortSucceeded, options?:
2123
2048
  readonly submissionId: string;
2124
2049
  readonly author: string;
2125
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,81 +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: "SubmissionSettled";
2490
- readonly submissionId: string;
2491
- readonly settlementId: string;
2492
- readonly receiptId: string;
2493
- readonly outcome: "aborted" | "completed" | "failed";
2494
- readonly runId?: string | undefined;
2495
- readonly result?: Schema.Json | undefined;
2496
- readonly runDisposition?: Schema.Json | undefined;
2497
- readonly finishReason?: "budget-exhausted" | undefined;
2498
- readonly exhausted?: "tokens" | "tool-calls" | "turns" | undefined;
2499
- readonly policyLimit?: "cost" | "duration" | "repeated-failures" | "tokens" | "tool-calls" | "turns" | "usage" | undefined;
2500
- readonly usageSummary?: {
2501
- readonly modelCalls: number;
2502
- readonly inputTokens: {
2503
- readonly total: number;
2504
- readonly uncached: number;
2505
- readonly cacheRead: number;
2506
- readonly cacheWrite: number;
2507
- };
2508
- readonly outputTokens: {
2509
- readonly total: number;
2510
- readonly text: number;
2511
- readonly reasoning: number;
2512
- };
2513
- readonly costMicrousd: number;
2514
- readonly byModel: readonly {
2515
- readonly provider: string;
2516
- readonly model: string;
2517
- readonly responseModel?: string | undefined;
2518
- readonly serviceTier?: string | undefined;
2519
- readonly pricingVersion?: string | undefined;
2520
- readonly modelCalls: number;
2521
- readonly inputTokens: {
2522
- readonly total: number;
2523
- readonly uncached: number;
2524
- readonly cacheRead: number;
2525
- readonly cacheWrite: number;
2526
- };
2527
- readonly outputTokens: {
2528
- readonly total: number;
2529
- readonly text: number;
2530
- readonly reasoning: number;
2531
- };
2532
- readonly costMicrousd: number;
2533
- }[];
2534
- readonly usageStatus?: "complete" | "partial" | "unknown" | undefined;
2535
- readonly pricingStatus?: "complete" | "partial" | "unknown" | undefined;
2536
- readonly unobservedModelCalls?: number | undefined;
2537
- } | undefined;
2538
- readonly uncommittedModelUsage?: readonly {
2539
- readonly provider: string;
2540
- readonly model: string;
2541
- readonly serviceTier?: string | undefined;
2542
- readonly pricingVersion?: string | undefined;
2543
- readonly response?: {
2544
- readonly id?: string | undefined;
2545
- readonly model?: string | undefined;
2546
- } | undefined;
2547
- readonly purpose?: "summary" | "turn" | undefined;
2548
- readonly usageStatus?: "complete" | "partial" | "unknown" | undefined;
2549
- readonly pricingStatus?: "estimated" | "unknown" | undefined;
2550
- readonly inputTokens: {
2551
- readonly total: number;
2552
- readonly uncached: number;
2553
- readonly cacheRead: number;
2554
- readonly cacheWrite: number;
2555
- };
2556
- readonly outputTokens: {
2557
- readonly total: number;
2558
- readonly text: number;
2559
- readonly reasoning: number;
2560
- };
2561
- readonly costMicrousd: number;
2562
- }[] | undefined;
2563
- } | {
2564
2489
  readonly _tag: "ThreadCreated";
2565
2490
  readonly agentId: string;
2566
2491
  readonly definitions: {
@@ -2740,6 +2665,81 @@ declare const encodePortResponse: (input: PortFailed | PortSucceeded, options?:
2740
2665
  readonly submissionId: string;
2741
2666
  readonly author: string;
2742
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,14 +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
- } | {
3115
- readonly _tag: "JoinedToHost";
3116
- readonly submissionId: string;
3117
- readonly hostSubmissionId: string;
3118
3107
  } | {
3119
3108
  readonly _tag: "ThreadStoreError";
3120
3109
  readonly operation: string;
@@ -3127,6 +3116,17 @@ declare const encodePortResponse: (input: PortFailed | PortSucceeded, options?:
3127
3116
  readonly reason: "batch-digest" | "record-identity" | "tail";
3128
3117
  readonly actualTailSequence?: number | undefined;
3129
3118
  readonly actualTailDigest?: string | undefined;
3119
+ } | {
3120
+ readonly _tag: "SettlementConflict";
3121
+ readonly submissionId: string;
3122
+ readonly existingOutcome: "aborted" | "completed" | "failed";
3123
+ } | {
3124
+ readonly _tag: "JoinedToHost";
3125
+ readonly submissionId: string;
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.75","dependencies":{"@effect-agent/core":"0.1.0-beta.75","@effect-agent/thread":"0.1.0-beta.75","@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.75","@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.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"}}