@effect-agent/storage-cloudflare 0.0.1-beta.6 → 0.1.0-beta.11
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 +32 -8
- package/package.json +14 -14
package/dist/index.d.mts
CHANGED
|
@@ -535,6 +535,9 @@ 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;
|
|
540
|
+
readonly costMicrousd?: number | undefined;
|
|
538
541
|
} | {
|
|
539
542
|
readonly _tag: "ToolCallPrepared";
|
|
540
543
|
readonly runId: string;
|
|
@@ -597,8 +600,10 @@ declare const encodePortRequest: (input: LedgerAdmitCall | LedgerLookupCall | Le
|
|
|
597
600
|
} | {
|
|
598
601
|
readonly _tag: "CompactionCreated";
|
|
599
602
|
readonly runId: string;
|
|
600
|
-
readonly
|
|
601
|
-
readonly
|
|
603
|
+
readonly turn: number;
|
|
604
|
+
readonly kind: "clear-tool-results" | "summarize";
|
|
605
|
+
readonly coversThrough: number;
|
|
606
|
+
readonly summary?: string | undefined;
|
|
602
607
|
} | {
|
|
603
608
|
readonly _tag: "RunFailed";
|
|
604
609
|
readonly runId: string;
|
|
@@ -615,6 +620,7 @@ declare const encodePortRequest: (input: LedgerAdmitCall | LedgerLookupCall | Le
|
|
|
615
620
|
readonly outcome: "aborted" | "completed" | "failed";
|
|
616
621
|
readonly runId?: string | undefined;
|
|
617
622
|
readonly result?: Schema.Json | undefined;
|
|
623
|
+
readonly finishReason?: "budget-exhausted" | undefined;
|
|
618
624
|
} | {
|
|
619
625
|
readonly _tag: "SubagentRequested";
|
|
620
626
|
readonly runId: string;
|
|
@@ -715,6 +721,9 @@ declare const encodePortRequest: (input: LedgerAdmitCall | LedgerLookupCall | Le
|
|
|
715
721
|
readonly turn: number;
|
|
716
722
|
readonly messages: Schema.Json;
|
|
717
723
|
readonly messagesDigest: string;
|
|
724
|
+
readonly inputTokens?: number | undefined;
|
|
725
|
+
readonly outputTokens?: number | undefined;
|
|
726
|
+
readonly costMicrousd?: number | undefined;
|
|
718
727
|
} | {
|
|
719
728
|
readonly _tag: "ToolCallPrepared";
|
|
720
729
|
readonly runId: string;
|
|
@@ -777,8 +786,10 @@ declare const encodePortRequest: (input: LedgerAdmitCall | LedgerLookupCall | Le
|
|
|
777
786
|
} | {
|
|
778
787
|
readonly _tag: "CompactionCreated";
|
|
779
788
|
readonly runId: string;
|
|
780
|
-
readonly
|
|
781
|
-
readonly
|
|
789
|
+
readonly turn: number;
|
|
790
|
+
readonly kind: "clear-tool-results" | "summarize";
|
|
791
|
+
readonly coversThrough: number;
|
|
792
|
+
readonly summary?: string | undefined;
|
|
782
793
|
} | {
|
|
783
794
|
readonly _tag: "RunFailed";
|
|
784
795
|
readonly runId: string;
|
|
@@ -795,6 +806,7 @@ declare const encodePortRequest: (input: LedgerAdmitCall | LedgerLookupCall | Le
|
|
|
795
806
|
readonly outcome: "aborted" | "completed" | "failed";
|
|
796
807
|
readonly runId?: string | undefined;
|
|
797
808
|
readonly result?: Schema.Json | undefined;
|
|
809
|
+
readonly finishReason?: "budget-exhausted" | undefined;
|
|
798
810
|
} | {
|
|
799
811
|
readonly _tag: "SubagentRequested";
|
|
800
812
|
readonly runId: string;
|
|
@@ -1024,6 +1036,9 @@ declare const encodePortResponse: (input: PortFailed | PortSucceeded, options?:
|
|
|
1024
1036
|
readonly turn: number;
|
|
1025
1037
|
readonly messages: Schema.Json;
|
|
1026
1038
|
readonly messagesDigest: string;
|
|
1039
|
+
readonly inputTokens?: number | undefined;
|
|
1040
|
+
readonly outputTokens?: number | undefined;
|
|
1041
|
+
readonly costMicrousd?: number | undefined;
|
|
1027
1042
|
} | {
|
|
1028
1043
|
readonly _tag: "ToolCallPrepared";
|
|
1029
1044
|
readonly runId: string;
|
|
@@ -1086,8 +1101,10 @@ declare const encodePortResponse: (input: PortFailed | PortSucceeded, options?:
|
|
|
1086
1101
|
} | {
|
|
1087
1102
|
readonly _tag: "CompactionCreated";
|
|
1088
1103
|
readonly runId: string;
|
|
1089
|
-
readonly
|
|
1090
|
-
readonly
|
|
1104
|
+
readonly turn: number;
|
|
1105
|
+
readonly kind: "clear-tool-results" | "summarize";
|
|
1106
|
+
readonly coversThrough: number;
|
|
1107
|
+
readonly summary?: string | undefined;
|
|
1091
1108
|
} | {
|
|
1092
1109
|
readonly _tag: "RunFailed";
|
|
1093
1110
|
readonly runId: string;
|
|
@@ -1104,6 +1121,7 @@ declare const encodePortResponse: (input: PortFailed | PortSucceeded, options?:
|
|
|
1104
1121
|
readonly outcome: "aborted" | "completed" | "failed";
|
|
1105
1122
|
readonly runId?: string | undefined;
|
|
1106
1123
|
readonly result?: Schema.Json | undefined;
|
|
1124
|
+
readonly finishReason?: "budget-exhausted" | undefined;
|
|
1107
1125
|
} | {
|
|
1108
1126
|
readonly _tag: "SubagentRequested";
|
|
1109
1127
|
readonly runId: string;
|
|
@@ -1226,6 +1244,9 @@ declare const encodePortResponse: (input: PortFailed | PortSucceeded, options?:
|
|
|
1226
1244
|
readonly turn: number;
|
|
1227
1245
|
readonly messages: Schema.Json;
|
|
1228
1246
|
readonly messagesDigest: string;
|
|
1247
|
+
readonly inputTokens?: number | undefined;
|
|
1248
|
+
readonly outputTokens?: number | undefined;
|
|
1249
|
+
readonly costMicrousd?: number | undefined;
|
|
1229
1250
|
} | {
|
|
1230
1251
|
readonly _tag: "ToolCallPrepared";
|
|
1231
1252
|
readonly runId: string;
|
|
@@ -1288,8 +1309,10 @@ declare const encodePortResponse: (input: PortFailed | PortSucceeded, options?:
|
|
|
1288
1309
|
} | {
|
|
1289
1310
|
readonly _tag: "CompactionCreated";
|
|
1290
1311
|
readonly runId: string;
|
|
1291
|
-
readonly
|
|
1292
|
-
readonly
|
|
1312
|
+
readonly turn: number;
|
|
1313
|
+
readonly kind: "clear-tool-results" | "summarize";
|
|
1314
|
+
readonly coversThrough: number;
|
|
1315
|
+
readonly summary?: string | undefined;
|
|
1293
1316
|
} | {
|
|
1294
1317
|
readonly _tag: "RunFailed";
|
|
1295
1318
|
readonly runId: string;
|
|
@@ -1306,6 +1329,7 @@ declare const encodePortResponse: (input: PortFailed | PortSucceeded, options?:
|
|
|
1306
1329
|
readonly outcome: "aborted" | "completed" | "failed";
|
|
1307
1330
|
readonly runId?: string | undefined;
|
|
1308
1331
|
readonly result?: Schema.Json | undefined;
|
|
1332
|
+
readonly finishReason?: "budget-exhausted" | undefined;
|
|
1309
1333
|
} | {
|
|
1310
1334
|
readonly _tag: "SubagentRequested";
|
|
1311
1335
|
readonly runId: string;
|
package/package.json
CHANGED
|
@@ -1,6 +1,18 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@effect-agent/storage-cloudflare",
|
|
3
|
-
"version": "0.0
|
|
3
|
+
"version": "0.1.0-beta.11",
|
|
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.11",
|
|
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
|
|
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",
|