@effect-agent/storage-cloudflare 0.0.1-beta.6 → 0.1.0-beta.8

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.
Files changed (2) hide show
  1. package/dist/index.d.mts +28 -8
  2. package/package.json +14 -14
package/dist/index.d.mts CHANGED
@@ -535,6 +535,8 @@ 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 inputTokens?: number | undefined;
539
+ readonly outputTokens?: number | undefined;
538
540
  } | {
539
541
  readonly _tag: "ToolCallPrepared";
540
542
  readonly runId: string;
@@ -597,8 +599,10 @@ declare const encodePortRequest: (input: LedgerAdmitCall | LedgerLookupCall | Le
597
599
  } | {
598
600
  readonly _tag: "CompactionCreated";
599
601
  readonly runId: string;
600
- readonly sourceDigest: string;
601
- readonly summary: string;
602
+ readonly turn: number;
603
+ readonly kind: "clear-tool-results" | "summarize";
604
+ readonly coversThrough: number;
605
+ readonly summary?: string | undefined;
602
606
  } | {
603
607
  readonly _tag: "RunFailed";
604
608
  readonly runId: string;
@@ -615,6 +619,7 @@ declare const encodePortRequest: (input: LedgerAdmitCall | LedgerLookupCall | Le
615
619
  readonly outcome: "aborted" | "completed" | "failed";
616
620
  readonly runId?: string | undefined;
617
621
  readonly result?: Schema.Json | undefined;
622
+ readonly finishReason?: "budget-exhausted" | undefined;
618
623
  } | {
619
624
  readonly _tag: "SubagentRequested";
620
625
  readonly runId: string;
@@ -715,6 +720,8 @@ declare const encodePortRequest: (input: LedgerAdmitCall | LedgerLookupCall | Le
715
720
  readonly turn: number;
716
721
  readonly messages: Schema.Json;
717
722
  readonly messagesDigest: string;
723
+ readonly inputTokens?: number | undefined;
724
+ readonly outputTokens?: number | undefined;
718
725
  } | {
719
726
  readonly _tag: "ToolCallPrepared";
720
727
  readonly runId: string;
@@ -777,8 +784,10 @@ declare const encodePortRequest: (input: LedgerAdmitCall | LedgerLookupCall | Le
777
784
  } | {
778
785
  readonly _tag: "CompactionCreated";
779
786
  readonly runId: string;
780
- readonly sourceDigest: string;
781
- readonly summary: string;
787
+ readonly turn: number;
788
+ readonly kind: "clear-tool-results" | "summarize";
789
+ readonly coversThrough: number;
790
+ readonly summary?: string | undefined;
782
791
  } | {
783
792
  readonly _tag: "RunFailed";
784
793
  readonly runId: string;
@@ -795,6 +804,7 @@ declare const encodePortRequest: (input: LedgerAdmitCall | LedgerLookupCall | Le
795
804
  readonly outcome: "aborted" | "completed" | "failed";
796
805
  readonly runId?: string | undefined;
797
806
  readonly result?: Schema.Json | undefined;
807
+ readonly finishReason?: "budget-exhausted" | undefined;
798
808
  } | {
799
809
  readonly _tag: "SubagentRequested";
800
810
  readonly runId: string;
@@ -1024,6 +1034,8 @@ declare const encodePortResponse: (input: PortFailed | PortSucceeded, options?:
1024
1034
  readonly turn: number;
1025
1035
  readonly messages: Schema.Json;
1026
1036
  readonly messagesDigest: string;
1037
+ readonly inputTokens?: number | undefined;
1038
+ readonly outputTokens?: number | undefined;
1027
1039
  } | {
1028
1040
  readonly _tag: "ToolCallPrepared";
1029
1041
  readonly runId: string;
@@ -1086,8 +1098,10 @@ declare const encodePortResponse: (input: PortFailed | PortSucceeded, options?:
1086
1098
  } | {
1087
1099
  readonly _tag: "CompactionCreated";
1088
1100
  readonly runId: string;
1089
- readonly sourceDigest: string;
1090
- readonly summary: string;
1101
+ readonly turn: number;
1102
+ readonly kind: "clear-tool-results" | "summarize";
1103
+ readonly coversThrough: number;
1104
+ readonly summary?: string | undefined;
1091
1105
  } | {
1092
1106
  readonly _tag: "RunFailed";
1093
1107
  readonly runId: string;
@@ -1104,6 +1118,7 @@ declare const encodePortResponse: (input: PortFailed | PortSucceeded, options?:
1104
1118
  readonly outcome: "aborted" | "completed" | "failed";
1105
1119
  readonly runId?: string | undefined;
1106
1120
  readonly result?: Schema.Json | undefined;
1121
+ readonly finishReason?: "budget-exhausted" | undefined;
1107
1122
  } | {
1108
1123
  readonly _tag: "SubagentRequested";
1109
1124
  readonly runId: string;
@@ -1226,6 +1241,8 @@ declare const encodePortResponse: (input: PortFailed | PortSucceeded, options?:
1226
1241
  readonly turn: number;
1227
1242
  readonly messages: Schema.Json;
1228
1243
  readonly messagesDigest: string;
1244
+ readonly inputTokens?: number | undefined;
1245
+ readonly outputTokens?: number | undefined;
1229
1246
  } | {
1230
1247
  readonly _tag: "ToolCallPrepared";
1231
1248
  readonly runId: string;
@@ -1288,8 +1305,10 @@ declare const encodePortResponse: (input: PortFailed | PortSucceeded, options?:
1288
1305
  } | {
1289
1306
  readonly _tag: "CompactionCreated";
1290
1307
  readonly runId: string;
1291
- readonly sourceDigest: string;
1292
- readonly summary: string;
1308
+ readonly turn: number;
1309
+ readonly kind: "clear-tool-results" | "summarize";
1310
+ readonly coversThrough: number;
1311
+ readonly summary?: string | undefined;
1293
1312
  } | {
1294
1313
  readonly _tag: "RunFailed";
1295
1314
  readonly runId: string;
@@ -1306,6 +1325,7 @@ declare const encodePortResponse: (input: PortFailed | PortSucceeded, options?:
1306
1325
  readonly outcome: "aborted" | "completed" | "failed";
1307
1326
  readonly runId?: string | undefined;
1308
1327
  readonly result?: Schema.Json | undefined;
1328
+ readonly finishReason?: "budget-exhausted" | undefined;
1309
1329
  } | {
1310
1330
  readonly _tag: "SubagentRequested";
1311
1331
  readonly runId: string;
package/package.json CHANGED
@@ -1,6 +1,18 @@
1
1
  {
2
2
  "name": "@effect-agent/storage-cloudflare",
3
- "version": "0.0.1-beta.6",
3
+ "version": "0.1.0-beta.8",
4
+ "exports": {
5
+ ".": {
6
+ "types": "./dist/index.d.mts",
7
+ "default": "./dist/index.mjs"
8
+ }
9
+ },
10
+ "dependencies": {
11
+ "@effect-agent/session": "0.1.0-beta.8",
12
+ "@effect/platform-browser": "4.0.0-beta.107",
13
+ "@effect/sql-sqlite-do": "4.0.0-beta.107",
14
+ "effect": "4.0.0-beta.107"
15
+ },
4
16
  "description": "Durable Object SQLite storage adapters and the routed port protocol for Effect Agent on Cloudflare.",
5
17
  "license": "MIT",
6
18
  "repository": {
@@ -13,12 +25,6 @@
13
25
  "src"
14
26
  ],
15
27
  "type": "module",
16
- "exports": {
17
- ".": {
18
- "types": "./dist/index.d.mts",
19
- "default": "./dist/index.mjs"
20
- }
21
- },
22
28
  "publishConfig": {
23
29
  "access": "public"
24
30
  },
@@ -27,16 +33,10 @@
27
33
  "check": "tsc --noEmit -p tsconfig.json",
28
34
  "test": "vitest run"
29
35
  },
30
- "dependencies": {
31
- "@effect-agent/session": "0.0.1-beta.6",
32
- "@effect/platform-browser": "4.0.0-beta.107",
33
- "@effect/sql-sqlite-do": "4.0.0-beta.107",
34
- "effect": "4.0.0-beta.107"
35
- },
36
36
  "devDependencies": {
37
37
  "@cloudflare/vitest-pool-workers": "0.21.3",
38
38
  "@cloudflare/workers-types": "5.20260813.1",
39
- "@effect-agent/testing": "0.0.1-beta.5",
39
+ "@effect-agent/testing": "0.1.0-beta.6",
40
40
  "@effect/vitest": "4.0.0-beta.107",
41
41
  "typescript": "7.0.2",
42
42
  "vite-plus": "0.2.6",