@effect-agent/storage-cloudflare 0.1.0-beta.60 → 0.1.0-beta.61

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.
@@ -416,6 +416,13 @@ declare const encodePortRequest: (input: LedgerAdmitCall | LedgerLookupCall | Le
416
416
  readonly model: string;
417
417
  readonly serviceTier?: string | undefined;
418
418
  readonly pricingVersion?: string | undefined;
419
+ readonly response?: {
420
+ readonly id?: string | undefined;
421
+ readonly model?: string | undefined;
422
+ } | undefined;
423
+ readonly purpose?: "summary" | "turn" | undefined;
424
+ readonly usageStatus?: "complete" | "partial" | "unknown" | undefined;
425
+ readonly pricingStatus?: "estimated" | "unknown" | undefined;
419
426
  readonly inputTokens: {
420
427
  readonly total: number;
421
428
  readonly uncached: number;
@@ -429,6 +436,7 @@ declare const encodePortRequest: (input: LedgerAdmitCall | LedgerLookupCall | Le
429
436
  };
430
437
  readonly costMicrousd: number;
431
438
  }[] | undefined;
439
+ readonly unobservedModelCalls?: number | undefined;
432
440
  readonly inputTokens?: number | undefined;
433
441
  readonly outputTokens?: number | undefined;
434
442
  readonly costMicrousd?: number | undefined;
@@ -541,6 +549,7 @@ declare const encodePortRequest: (input: LedgerAdmitCall | LedgerLookupCall | Le
541
549
  readonly byModel: readonly {
542
550
  readonly provider: string;
543
551
  readonly model: string;
552
+ readonly responseModel?: string | undefined;
544
553
  readonly serviceTier?: string | undefined;
545
554
  readonly pricingVersion?: string | undefined;
546
555
  readonly modelCalls: number;
@@ -557,7 +566,35 @@ declare const encodePortRequest: (input: LedgerAdmitCall | LedgerLookupCall | Le
557
566
  };
558
567
  readonly costMicrousd: number;
559
568
  }[];
569
+ readonly usageStatus?: "complete" | "partial" | "unknown" | undefined;
570
+ readonly pricingStatus?: "complete" | "partial" | "unknown" | undefined;
571
+ readonly unobservedModelCalls?: number | undefined;
560
572
  } | undefined;
573
+ readonly uncommittedModelUsage?: readonly {
574
+ readonly provider: string;
575
+ readonly model: string;
576
+ readonly serviceTier?: string | undefined;
577
+ readonly pricingVersion?: string | undefined;
578
+ readonly response?: {
579
+ readonly id?: string | undefined;
580
+ readonly model?: string | undefined;
581
+ } | undefined;
582
+ readonly purpose?: "summary" | "turn" | undefined;
583
+ readonly usageStatus?: "complete" | "partial" | "unknown" | undefined;
584
+ readonly pricingStatus?: "estimated" | "unknown" | undefined;
585
+ readonly inputTokens: {
586
+ readonly total: number;
587
+ readonly uncached: number;
588
+ readonly cacheRead: number;
589
+ readonly cacheWrite: number;
590
+ };
591
+ readonly outputTokens: {
592
+ readonly total: number;
593
+ readonly text: number;
594
+ readonly reasoning: number;
595
+ };
596
+ readonly costMicrousd: number;
597
+ }[] | undefined;
561
598
  } | {
562
599
  readonly _tag: "SubagentRequested";
563
600
  readonly runId: string;
@@ -965,6 +1002,13 @@ declare const encodePortRequest: (input: LedgerAdmitCall | LedgerLookupCall | Le
965
1002
  readonly model: string;
966
1003
  readonly serviceTier?: string | undefined;
967
1004
  readonly pricingVersion?: string | undefined;
1005
+ readonly response?: {
1006
+ readonly id?: string | undefined;
1007
+ readonly model?: string | undefined;
1008
+ } | undefined;
1009
+ readonly purpose?: "summary" | "turn" | undefined;
1010
+ readonly usageStatus?: "complete" | "partial" | "unknown" | undefined;
1011
+ readonly pricingStatus?: "estimated" | "unknown" | undefined;
968
1012
  readonly inputTokens: {
969
1013
  readonly total: number;
970
1014
  readonly uncached: number;
@@ -978,6 +1022,7 @@ declare const encodePortRequest: (input: LedgerAdmitCall | LedgerLookupCall | Le
978
1022
  };
979
1023
  readonly costMicrousd: number;
980
1024
  }[] | undefined;
1025
+ readonly unobservedModelCalls?: number | undefined;
981
1026
  readonly inputTokens?: number | undefined;
982
1027
  readonly outputTokens?: number | undefined;
983
1028
  readonly costMicrousd?: number | undefined;
@@ -1090,6 +1135,7 @@ declare const encodePortRequest: (input: LedgerAdmitCall | LedgerLookupCall | Le
1090
1135
  readonly byModel: readonly {
1091
1136
  readonly provider: string;
1092
1137
  readonly model: string;
1138
+ readonly responseModel?: string | undefined;
1093
1139
  readonly serviceTier?: string | undefined;
1094
1140
  readonly pricingVersion?: string | undefined;
1095
1141
  readonly modelCalls: number;
@@ -1106,7 +1152,35 @@ declare const encodePortRequest: (input: LedgerAdmitCall | LedgerLookupCall | Le
1106
1152
  };
1107
1153
  readonly costMicrousd: number;
1108
1154
  }[];
1155
+ readonly usageStatus?: "complete" | "partial" | "unknown" | undefined;
1156
+ readonly pricingStatus?: "complete" | "partial" | "unknown" | undefined;
1157
+ readonly unobservedModelCalls?: number | undefined;
1109
1158
  } | undefined;
1159
+ readonly uncommittedModelUsage?: readonly {
1160
+ readonly provider: string;
1161
+ readonly model: string;
1162
+ readonly serviceTier?: string | undefined;
1163
+ readonly pricingVersion?: string | undefined;
1164
+ readonly response?: {
1165
+ readonly id?: string | undefined;
1166
+ readonly model?: string | undefined;
1167
+ } | undefined;
1168
+ readonly purpose?: "summary" | "turn" | undefined;
1169
+ readonly usageStatus?: "complete" | "partial" | "unknown" | undefined;
1170
+ readonly pricingStatus?: "estimated" | "unknown" | undefined;
1171
+ readonly inputTokens: {
1172
+ readonly total: number;
1173
+ readonly uncached: number;
1174
+ readonly cacheRead: number;
1175
+ readonly cacheWrite: number;
1176
+ };
1177
+ readonly outputTokens: {
1178
+ readonly total: number;
1179
+ readonly text: number;
1180
+ readonly reasoning: number;
1181
+ };
1182
+ readonly costMicrousd: number;
1183
+ }[] | undefined;
1110
1184
  } | {
1111
1185
  readonly _tag: "SubagentRequested";
1112
1186
  readonly runId: string;
@@ -1843,6 +1917,13 @@ declare const encodePortResponse: (input: PortFailed | PortSucceeded, options?:
1843
1917
  readonly model: string;
1844
1918
  readonly serviceTier?: string | undefined;
1845
1919
  readonly pricingVersion?: string | undefined;
1920
+ readonly response?: {
1921
+ readonly id?: string | undefined;
1922
+ readonly model?: string | undefined;
1923
+ } | undefined;
1924
+ readonly purpose?: "summary" | "turn" | undefined;
1925
+ readonly usageStatus?: "complete" | "partial" | "unknown" | undefined;
1926
+ readonly pricingStatus?: "estimated" | "unknown" | undefined;
1846
1927
  readonly inputTokens: {
1847
1928
  readonly total: number;
1848
1929
  readonly uncached: number;
@@ -1856,6 +1937,7 @@ declare const encodePortResponse: (input: PortFailed | PortSucceeded, options?:
1856
1937
  };
1857
1938
  readonly costMicrousd: number;
1858
1939
  }[] | undefined;
1940
+ readonly unobservedModelCalls?: number | undefined;
1859
1941
  readonly inputTokens?: number | undefined;
1860
1942
  readonly outputTokens?: number | undefined;
1861
1943
  readonly costMicrousd?: number | undefined;
@@ -1968,6 +2050,7 @@ declare const encodePortResponse: (input: PortFailed | PortSucceeded, options?:
1968
2050
  readonly byModel: readonly {
1969
2051
  readonly provider: string;
1970
2052
  readonly model: string;
2053
+ readonly responseModel?: string | undefined;
1971
2054
  readonly serviceTier?: string | undefined;
1972
2055
  readonly pricingVersion?: string | undefined;
1973
2056
  readonly modelCalls: number;
@@ -1984,7 +2067,35 @@ declare const encodePortResponse: (input: PortFailed | PortSucceeded, options?:
1984
2067
  };
1985
2068
  readonly costMicrousd: number;
1986
2069
  }[];
2070
+ readonly usageStatus?: "complete" | "partial" | "unknown" | undefined;
2071
+ readonly pricingStatus?: "complete" | "partial" | "unknown" | undefined;
2072
+ readonly unobservedModelCalls?: number | undefined;
1987
2073
  } | undefined;
2074
+ readonly uncommittedModelUsage?: readonly {
2075
+ readonly provider: string;
2076
+ readonly model: string;
2077
+ readonly serviceTier?: string | undefined;
2078
+ readonly pricingVersion?: string | undefined;
2079
+ readonly response?: {
2080
+ readonly id?: string | undefined;
2081
+ readonly model?: string | undefined;
2082
+ } | undefined;
2083
+ readonly purpose?: "summary" | "turn" | undefined;
2084
+ readonly usageStatus?: "complete" | "partial" | "unknown" | undefined;
2085
+ readonly pricingStatus?: "estimated" | "unknown" | undefined;
2086
+ readonly inputTokens: {
2087
+ readonly total: number;
2088
+ readonly uncached: number;
2089
+ readonly cacheRead: number;
2090
+ readonly cacheWrite: number;
2091
+ };
2092
+ readonly outputTokens: {
2093
+ readonly total: number;
2094
+ readonly text: number;
2095
+ readonly reasoning: number;
2096
+ };
2097
+ readonly costMicrousd: number;
2098
+ }[] | undefined;
1988
2099
  } | {
1989
2100
  readonly _tag: "SubagentRequested";
1990
2101
  readonly runId: string;
@@ -2414,6 +2525,13 @@ declare const encodePortResponse: (input: PortFailed | PortSucceeded, options?:
2414
2525
  readonly model: string;
2415
2526
  readonly serviceTier?: string | undefined;
2416
2527
  readonly pricingVersion?: string | undefined;
2528
+ readonly response?: {
2529
+ readonly id?: string | undefined;
2530
+ readonly model?: string | undefined;
2531
+ } | undefined;
2532
+ readonly purpose?: "summary" | "turn" | undefined;
2533
+ readonly usageStatus?: "complete" | "partial" | "unknown" | undefined;
2534
+ readonly pricingStatus?: "estimated" | "unknown" | undefined;
2417
2535
  readonly inputTokens: {
2418
2536
  readonly total: number;
2419
2537
  readonly uncached: number;
@@ -2427,6 +2545,7 @@ declare const encodePortResponse: (input: PortFailed | PortSucceeded, options?:
2427
2545
  };
2428
2546
  readonly costMicrousd: number;
2429
2547
  }[] | undefined;
2548
+ readonly unobservedModelCalls?: number | undefined;
2430
2549
  readonly inputTokens?: number | undefined;
2431
2550
  readonly outputTokens?: number | undefined;
2432
2551
  readonly costMicrousd?: number | undefined;
@@ -2539,6 +2658,7 @@ declare const encodePortResponse: (input: PortFailed | PortSucceeded, options?:
2539
2658
  readonly byModel: readonly {
2540
2659
  readonly provider: string;
2541
2660
  readonly model: string;
2661
+ readonly responseModel?: string | undefined;
2542
2662
  readonly serviceTier?: string | undefined;
2543
2663
  readonly pricingVersion?: string | undefined;
2544
2664
  readonly modelCalls: number;
@@ -2555,7 +2675,35 @@ declare const encodePortResponse: (input: PortFailed | PortSucceeded, options?:
2555
2675
  };
2556
2676
  readonly costMicrousd: number;
2557
2677
  }[];
2678
+ readonly usageStatus?: "complete" | "partial" | "unknown" | undefined;
2679
+ readonly pricingStatus?: "complete" | "partial" | "unknown" | undefined;
2680
+ readonly unobservedModelCalls?: number | undefined;
2558
2681
  } | undefined;
2682
+ readonly uncommittedModelUsage?: readonly {
2683
+ readonly provider: string;
2684
+ readonly model: string;
2685
+ readonly serviceTier?: string | undefined;
2686
+ readonly pricingVersion?: string | undefined;
2687
+ readonly response?: {
2688
+ readonly id?: string | undefined;
2689
+ readonly model?: string | undefined;
2690
+ } | undefined;
2691
+ readonly purpose?: "summary" | "turn" | undefined;
2692
+ readonly usageStatus?: "complete" | "partial" | "unknown" | undefined;
2693
+ readonly pricingStatus?: "estimated" | "unknown" | undefined;
2694
+ readonly inputTokens: {
2695
+ readonly total: number;
2696
+ readonly uncached: number;
2697
+ readonly cacheRead: number;
2698
+ readonly cacheWrite: number;
2699
+ };
2700
+ readonly outputTokens: {
2701
+ readonly total: number;
2702
+ readonly text: number;
2703
+ readonly reasoning: number;
2704
+ };
2705
+ readonly costMicrousd: number;
2706
+ }[] | undefined;
2559
2707
  } | {
2560
2708
  readonly _tag: "SubagentRequested";
2561
2709
  readonly runId: string;
package/package.json CHANGED
@@ -1 +1 @@
1
- {"name":"@effect-agent/storage-cloudflare","version":"0.1.0-beta.60","dependencies":{"@effect-agent/core":"0.1.0-beta.60","@effect-agent/thread":"0.1.0-beta.60","@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.60","@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.61","dependencies":{"@effect-agent/core":"0.1.0-beta.61","@effect-agent/thread":"0.1.0-beta.61","@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.61","@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"}}