@effect-agent/storage-cloudflare 0.1.0-beta.25 → 0.1.0-beta.27

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/dist/index.d.mts CHANGED
@@ -535,6 +535,25 @@ declare const encodePortRequest: (input: LedgerAdmitCall | LedgerLookupCall | Le
535
535
  readonly turn: number;
536
536
  readonly messages: Schema.Json;
537
537
  readonly messagesDigest: string;
538
+ readonly runScopedPrefixLength?: number | undefined;
539
+ readonly modelUsage?: readonly {
540
+ readonly provider: string;
541
+ readonly model: string;
542
+ readonly serviceTier?: string | undefined;
543
+ readonly pricingVersion?: string | undefined;
544
+ readonly inputTokens: {
545
+ readonly total: number;
546
+ readonly uncached: number;
547
+ readonly cacheRead: number;
548
+ readonly cacheWrite: number;
549
+ };
550
+ readonly outputTokens: {
551
+ readonly total: number;
552
+ readonly text: number;
553
+ readonly reasoning: number;
554
+ };
555
+ readonly costMicrousd: number;
556
+ }[] | undefined;
538
557
  readonly inputTokens?: number | undefined;
539
558
  readonly outputTokens?: number | undefined;
540
559
  readonly costMicrousd?: number | undefined;
@@ -612,6 +631,9 @@ declare const encodePortRequest: (input: LedgerAdmitCall | LedgerLookupCall | Le
612
631
  readonly _tag: "RunCompleted";
613
632
  readonly runId: string;
614
633
  readonly output: Schema.Json;
634
+ readonly runDisposition?: Schema.Json | undefined;
635
+ readonly finishReason?: "budget-exhausted" | undefined;
636
+ readonly exhausted?: "tokens" | "tool-calls" | "turns" | undefined;
615
637
  } | {
616
638
  readonly _tag: "SubmissionSettled";
617
639
  readonly submissionId: string;
@@ -624,6 +646,40 @@ declare const encodePortRequest: (input: LedgerAdmitCall | LedgerLookupCall | Le
624
646
  readonly finishReason?: "budget-exhausted" | undefined;
625
647
  readonly exhausted?: "tokens" | "tool-calls" | "turns" | undefined;
626
648
  readonly policyLimit?: "cost" | "duration" | "repeated-failures" | "tokens" | "tool-calls" | "turns" | "usage" | undefined;
649
+ readonly usageSummary?: {
650
+ readonly modelCalls: number;
651
+ readonly inputTokens: {
652
+ readonly total: number;
653
+ readonly uncached: number;
654
+ readonly cacheRead: number;
655
+ readonly cacheWrite: number;
656
+ };
657
+ readonly outputTokens: {
658
+ readonly total: number;
659
+ readonly text: number;
660
+ readonly reasoning: number;
661
+ };
662
+ readonly costMicrousd: number;
663
+ readonly byModel: readonly {
664
+ readonly provider: string;
665
+ readonly model: string;
666
+ readonly serviceTier?: string | undefined;
667
+ readonly pricingVersion?: string | undefined;
668
+ readonly modelCalls: number;
669
+ readonly inputTokens: {
670
+ readonly total: number;
671
+ readonly uncached: number;
672
+ readonly cacheRead: number;
673
+ readonly cacheWrite: number;
674
+ };
675
+ readonly outputTokens: {
676
+ readonly total: number;
677
+ readonly text: number;
678
+ readonly reasoning: number;
679
+ };
680
+ readonly costMicrousd: number;
681
+ }[];
682
+ } | undefined;
627
683
  } | {
628
684
  readonly _tag: "SubagentRequested";
629
685
  readonly runId: string;
@@ -724,6 +780,25 @@ declare const encodePortRequest: (input: LedgerAdmitCall | LedgerLookupCall | Le
724
780
  readonly turn: number;
725
781
  readonly messages: Schema.Json;
726
782
  readonly messagesDigest: string;
783
+ readonly runScopedPrefixLength?: number | undefined;
784
+ readonly modelUsage?: readonly {
785
+ readonly provider: string;
786
+ readonly model: string;
787
+ readonly serviceTier?: string | undefined;
788
+ readonly pricingVersion?: string | undefined;
789
+ readonly inputTokens: {
790
+ readonly total: number;
791
+ readonly uncached: number;
792
+ readonly cacheRead: number;
793
+ readonly cacheWrite: number;
794
+ };
795
+ readonly outputTokens: {
796
+ readonly total: number;
797
+ readonly text: number;
798
+ readonly reasoning: number;
799
+ };
800
+ readonly costMicrousd: number;
801
+ }[] | undefined;
727
802
  readonly inputTokens?: number | undefined;
728
803
  readonly outputTokens?: number | undefined;
729
804
  readonly costMicrousd?: number | undefined;
@@ -801,6 +876,9 @@ declare const encodePortRequest: (input: LedgerAdmitCall | LedgerLookupCall | Le
801
876
  readonly _tag: "RunCompleted";
802
877
  readonly runId: string;
803
878
  readonly output: Schema.Json;
879
+ readonly runDisposition?: Schema.Json | undefined;
880
+ readonly finishReason?: "budget-exhausted" | undefined;
881
+ readonly exhausted?: "tokens" | "tool-calls" | "turns" | undefined;
804
882
  } | {
805
883
  readonly _tag: "SubmissionSettled";
806
884
  readonly submissionId: string;
@@ -813,6 +891,40 @@ declare const encodePortRequest: (input: LedgerAdmitCall | LedgerLookupCall | Le
813
891
  readonly finishReason?: "budget-exhausted" | undefined;
814
892
  readonly exhausted?: "tokens" | "tool-calls" | "turns" | undefined;
815
893
  readonly policyLimit?: "cost" | "duration" | "repeated-failures" | "tokens" | "tool-calls" | "turns" | "usage" | undefined;
894
+ readonly usageSummary?: {
895
+ readonly modelCalls: number;
896
+ readonly inputTokens: {
897
+ readonly total: number;
898
+ readonly uncached: number;
899
+ readonly cacheRead: number;
900
+ readonly cacheWrite: number;
901
+ };
902
+ readonly outputTokens: {
903
+ readonly total: number;
904
+ readonly text: number;
905
+ readonly reasoning: number;
906
+ };
907
+ readonly costMicrousd: number;
908
+ readonly byModel: readonly {
909
+ readonly provider: string;
910
+ readonly model: string;
911
+ readonly serviceTier?: string | undefined;
912
+ readonly pricingVersion?: string | undefined;
913
+ readonly modelCalls: number;
914
+ readonly inputTokens: {
915
+ readonly total: number;
916
+ readonly uncached: number;
917
+ readonly cacheRead: number;
918
+ readonly cacheWrite: number;
919
+ };
920
+ readonly outputTokens: {
921
+ readonly total: number;
922
+ readonly text: number;
923
+ readonly reasoning: number;
924
+ };
925
+ readonly costMicrousd: number;
926
+ }[];
927
+ } | undefined;
816
928
  } | {
817
929
  readonly _tag: "SubagentRequested";
818
930
  readonly runId: string;
@@ -1042,6 +1154,25 @@ declare const encodePortResponse: (input: PortFailed | PortSucceeded, options?:
1042
1154
  readonly turn: number;
1043
1155
  readonly messages: Schema.Json;
1044
1156
  readonly messagesDigest: string;
1157
+ readonly runScopedPrefixLength?: number | undefined;
1158
+ readonly modelUsage?: readonly {
1159
+ readonly provider: string;
1160
+ readonly model: string;
1161
+ readonly serviceTier?: string | undefined;
1162
+ readonly pricingVersion?: string | undefined;
1163
+ readonly inputTokens: {
1164
+ readonly total: number;
1165
+ readonly uncached: number;
1166
+ readonly cacheRead: number;
1167
+ readonly cacheWrite: number;
1168
+ };
1169
+ readonly outputTokens: {
1170
+ readonly total: number;
1171
+ readonly text: number;
1172
+ readonly reasoning: number;
1173
+ };
1174
+ readonly costMicrousd: number;
1175
+ }[] | undefined;
1045
1176
  readonly inputTokens?: number | undefined;
1046
1177
  readonly outputTokens?: number | undefined;
1047
1178
  readonly costMicrousd?: number | undefined;
@@ -1119,6 +1250,9 @@ declare const encodePortResponse: (input: PortFailed | PortSucceeded, options?:
1119
1250
  readonly _tag: "RunCompleted";
1120
1251
  readonly runId: string;
1121
1252
  readonly output: Schema.Json;
1253
+ readonly runDisposition?: Schema.Json | undefined;
1254
+ readonly finishReason?: "budget-exhausted" | undefined;
1255
+ readonly exhausted?: "tokens" | "tool-calls" | "turns" | undefined;
1122
1256
  } | {
1123
1257
  readonly _tag: "SubmissionSettled";
1124
1258
  readonly submissionId: string;
@@ -1131,6 +1265,40 @@ declare const encodePortResponse: (input: PortFailed | PortSucceeded, options?:
1131
1265
  readonly finishReason?: "budget-exhausted" | undefined;
1132
1266
  readonly exhausted?: "tokens" | "tool-calls" | "turns" | undefined;
1133
1267
  readonly policyLimit?: "cost" | "duration" | "repeated-failures" | "tokens" | "tool-calls" | "turns" | "usage" | undefined;
1268
+ readonly usageSummary?: {
1269
+ readonly modelCalls: number;
1270
+ readonly inputTokens: {
1271
+ readonly total: number;
1272
+ readonly uncached: number;
1273
+ readonly cacheRead: number;
1274
+ readonly cacheWrite: number;
1275
+ };
1276
+ readonly outputTokens: {
1277
+ readonly total: number;
1278
+ readonly text: number;
1279
+ readonly reasoning: number;
1280
+ };
1281
+ readonly costMicrousd: number;
1282
+ readonly byModel: readonly {
1283
+ readonly provider: string;
1284
+ readonly model: string;
1285
+ readonly serviceTier?: string | undefined;
1286
+ readonly pricingVersion?: string | undefined;
1287
+ readonly modelCalls: number;
1288
+ readonly inputTokens: {
1289
+ readonly total: number;
1290
+ readonly uncached: number;
1291
+ readonly cacheRead: number;
1292
+ readonly cacheWrite: number;
1293
+ };
1294
+ readonly outputTokens: {
1295
+ readonly total: number;
1296
+ readonly text: number;
1297
+ readonly reasoning: number;
1298
+ };
1299
+ readonly costMicrousd: number;
1300
+ }[];
1301
+ } | undefined;
1134
1302
  } | {
1135
1303
  readonly _tag: "SubagentRequested";
1136
1304
  readonly runId: string;
@@ -1253,6 +1421,25 @@ declare const encodePortResponse: (input: PortFailed | PortSucceeded, options?:
1253
1421
  readonly turn: number;
1254
1422
  readonly messages: Schema.Json;
1255
1423
  readonly messagesDigest: string;
1424
+ readonly runScopedPrefixLength?: number | undefined;
1425
+ readonly modelUsage?: readonly {
1426
+ readonly provider: string;
1427
+ readonly model: string;
1428
+ readonly serviceTier?: string | undefined;
1429
+ readonly pricingVersion?: string | undefined;
1430
+ readonly inputTokens: {
1431
+ readonly total: number;
1432
+ readonly uncached: number;
1433
+ readonly cacheRead: number;
1434
+ readonly cacheWrite: number;
1435
+ };
1436
+ readonly outputTokens: {
1437
+ readonly total: number;
1438
+ readonly text: number;
1439
+ readonly reasoning: number;
1440
+ };
1441
+ readonly costMicrousd: number;
1442
+ }[] | undefined;
1256
1443
  readonly inputTokens?: number | undefined;
1257
1444
  readonly outputTokens?: number | undefined;
1258
1445
  readonly costMicrousd?: number | undefined;
@@ -1330,6 +1517,9 @@ declare const encodePortResponse: (input: PortFailed | PortSucceeded, options?:
1330
1517
  readonly _tag: "RunCompleted";
1331
1518
  readonly runId: string;
1332
1519
  readonly output: Schema.Json;
1520
+ readonly runDisposition?: Schema.Json | undefined;
1521
+ readonly finishReason?: "budget-exhausted" | undefined;
1522
+ readonly exhausted?: "tokens" | "tool-calls" | "turns" | undefined;
1333
1523
  } | {
1334
1524
  readonly _tag: "SubmissionSettled";
1335
1525
  readonly submissionId: string;
@@ -1342,6 +1532,40 @@ declare const encodePortResponse: (input: PortFailed | PortSucceeded, options?:
1342
1532
  readonly finishReason?: "budget-exhausted" | undefined;
1343
1533
  readonly exhausted?: "tokens" | "tool-calls" | "turns" | undefined;
1344
1534
  readonly policyLimit?: "cost" | "duration" | "repeated-failures" | "tokens" | "tool-calls" | "turns" | "usage" | undefined;
1535
+ readonly usageSummary?: {
1536
+ readonly modelCalls: number;
1537
+ readonly inputTokens: {
1538
+ readonly total: number;
1539
+ readonly uncached: number;
1540
+ readonly cacheRead: number;
1541
+ readonly cacheWrite: number;
1542
+ };
1543
+ readonly outputTokens: {
1544
+ readonly total: number;
1545
+ readonly text: number;
1546
+ readonly reasoning: number;
1547
+ };
1548
+ readonly costMicrousd: number;
1549
+ readonly byModel: readonly {
1550
+ readonly provider: string;
1551
+ readonly model: string;
1552
+ readonly serviceTier?: string | undefined;
1553
+ readonly pricingVersion?: string | undefined;
1554
+ readonly modelCalls: number;
1555
+ readonly inputTokens: {
1556
+ readonly total: number;
1557
+ readonly uncached: number;
1558
+ readonly cacheRead: number;
1559
+ readonly cacheWrite: number;
1560
+ };
1561
+ readonly outputTokens: {
1562
+ readonly total: number;
1563
+ readonly text: number;
1564
+ readonly reasoning: number;
1565
+ };
1566
+ readonly costMicrousd: number;
1567
+ }[];
1568
+ } | undefined;
1345
1569
  } | {
1346
1570
  readonly _tag: "SubagentRequested";
1347
1571
  readonly runId: string;