@effect-agent/platform-cloudflare 0.1.0-beta.6 → 0.1.0-beta.9

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 +9 -4
  2. package/package.json +20 -20
package/dist/index.d.mts CHANGED
@@ -618,6 +618,9 @@ declare const encodeHostResponse: (input: AbortRecorded | ApprovalRecorded | Hos
618
618
  readonly turn: number;
619
619
  readonly messages: Schema.Json;
620
620
  readonly messagesDigest: string;
621
+ readonly inputTokens?: number | undefined;
622
+ readonly outputTokens?: number | undefined;
623
+ readonly costMicrousd?: number | undefined;
621
624
  } | {
622
625
  readonly _tag: "ToolCallPrepared";
623
626
  readonly runId: string;
@@ -680,8 +683,10 @@ declare const encodeHostResponse: (input: AbortRecorded | ApprovalRecorded | Hos
680
683
  } | {
681
684
  readonly _tag: "CompactionCreated";
682
685
  readonly runId: string;
683
- readonly sourceDigest: string;
684
- readonly summary: string;
686
+ readonly turn: number;
687
+ readonly kind: "clear-tool-results" | "summarize";
688
+ readonly coversThrough: number;
689
+ readonly summary?: string | undefined;
685
690
  } | {
686
691
  readonly _tag: "RunFailed";
687
692
  readonly runId: string;
@@ -874,7 +879,7 @@ declare const encodeHostResponse: (input: AbortRecorded | ApprovalRecorded | Hos
874
879
  readonly attemptedEpoch: number;
875
880
  } | {
876
881
  readonly _tag: "DurableRuntimeFailpointError";
877
- readonly location: "abort:after-intent" | "approval:after-request-append" | "approval:after-suspend" | "claim:after-claim" | "input:after-canonical-append" | "join:after-canonical-append" | "join:after-claim" | "resolve:after-intent" | "step:after-step-append" | "subagent:after-admit" | "subagent:after-child-abort-intent" | "subagent:after-child-ready" | "subagent:after-join-append" | "subagent:after-release" | "subagent:after-release-pending" | "subagent:after-request-append" | "subagent:after-reserve" | "subagent:after-sibling-settle" | "subagent:after-start-append" | "subagent:after-suspend" | "submit:after-admit" | "submit:after-materialize" | "terminalize:after-canonical-append" | "terminalize:after-reserve" | "tools:after-prepared-append" | "turn:after-canonical-append" | "turn:after-response-append" | "turn:after-results-append";
882
+ readonly location: "abort:after-intent" | "approval:after-request-append" | "approval:after-suspend" | "claim:after-claim" | "compaction:after-canonical-append" | "input:after-canonical-append" | "join:after-canonical-append" | "join:after-claim" | "resolve:after-intent" | "step:after-step-append" | "subagent:after-admit" | "subagent:after-child-abort-intent" | "subagent:after-child-ready" | "subagent:after-join-append" | "subagent:after-release" | "subagent:after-release-pending" | "subagent:after-request-append" | "subagent:after-reserve" | "subagent:after-sibling-settle" | "subagent:after-start-append" | "subagent:after-suspend" | "submit:after-admit" | "submit:after-materialize" | "terminalize:after-canonical-append" | "terminalize:after-reserve" | "tools:after-prepared-append" | "turn:after-canonical-append" | "turn:after-response-append" | "turn:after-results-append";
878
883
  } | {
879
884
  readonly _tag: "AdmissionLimitExceeded";
880
885
  readonly limit: "database-bytes" | "input-bytes" | "queue-depth";
@@ -1455,7 +1460,7 @@ declare const encodeAdminResponse: (input: AdminFailed | ExplainedRecovery | Obl
1455
1460
  readonly attemptedEpoch: number;
1456
1461
  } | {
1457
1462
  readonly _tag: "DurableRuntimeFailpointError";
1458
- readonly location: "abort:after-intent" | "approval:after-request-append" | "approval:after-suspend" | "claim:after-claim" | "input:after-canonical-append" | "join:after-canonical-append" | "join:after-claim" | "resolve:after-intent" | "step:after-step-append" | "subagent:after-admit" | "subagent:after-child-abort-intent" | "subagent:after-child-ready" | "subagent:after-join-append" | "subagent:after-release" | "subagent:after-release-pending" | "subagent:after-request-append" | "subagent:after-reserve" | "subagent:after-sibling-settle" | "subagent:after-start-append" | "subagent:after-suspend" | "submit:after-admit" | "submit:after-materialize" | "terminalize:after-canonical-append" | "terminalize:after-reserve" | "tools:after-prepared-append" | "turn:after-canonical-append" | "turn:after-response-append" | "turn:after-results-append";
1463
+ readonly location: "abort:after-intent" | "approval:after-request-append" | "approval:after-suspend" | "claim:after-claim" | "compaction:after-canonical-append" | "input:after-canonical-append" | "join:after-canonical-append" | "join:after-claim" | "resolve:after-intent" | "step:after-step-append" | "subagent:after-admit" | "subagent:after-child-abort-intent" | "subagent:after-child-ready" | "subagent:after-join-append" | "subagent:after-release" | "subagent:after-release-pending" | "subagent:after-request-append" | "subagent:after-reserve" | "subagent:after-sibling-settle" | "subagent:after-start-append" | "subagent:after-suspend" | "submit:after-admit" | "submit:after-materialize" | "terminalize:after-canonical-append" | "terminalize:after-reserve" | "tools:after-prepared-append" | "turn:after-canonical-append" | "turn:after-response-append" | "turn:after-results-append";
1459
1464
  } | {
1460
1465
  readonly _tag: "DurableAlarmError";
1461
1466
  readonly operation: string;
package/package.json CHANGED
@@ -1,6 +1,22 @@
1
1
  {
2
2
  "name": "@effect-agent/platform-cloudflare",
3
- "version": "0.1.0-beta.6",
3
+ "version": "0.1.0-beta.9",
4
+ "exports": {
5
+ ".": {
6
+ "types": "./dist/index.d.mts",
7
+ "default": "./dist/index.mjs"
8
+ }
9
+ },
10
+ "dependencies": {
11
+ "@effect-agent/core": "0.1.0-beta.9",
12
+ "@effect-agent/sandbox": "0.1.0-beta.9",
13
+ "@effect-agent/session": "0.1.0-beta.9",
14
+ "@effect-agent/storage-cloudflare": "0.1.0-beta.9",
15
+ "@effect/platform-browser": "4.0.0-beta.107",
16
+ "@effect/sql-sqlite-do": "4.0.0-beta.107",
17
+ "effect": "4.0.0-beta.107",
18
+ "effect-cf": "0.25.3"
19
+ },
4
20
  "description": "Class DC layer assembly for Effect Agent: SQLite-backed Conversation Durable Objects with alarm-driven recovery.",
5
21
  "license": "MIT",
6
22
  "repository": {
@@ -13,12 +29,6 @@
13
29
  "src"
14
30
  ],
15
31
  "type": "module",
16
- "exports": {
17
- ".": {
18
- "types": "./dist/index.d.mts",
19
- "default": "./dist/index.mjs"
20
- }
21
- },
22
32
  "publishConfig": {
23
33
  "access": "public"
24
34
  },
@@ -27,22 +37,12 @@
27
37
  "check": "tsc --noEmit -p tsconfig.json",
28
38
  "test": "vitest run"
29
39
  },
30
- "dependencies": {
31
- "@effect-agent/core": "0.1.0-beta.6",
32
- "@effect-agent/sandbox": "0.1.0-beta.6",
33
- "@effect-agent/session": "0.1.0-beta.6",
34
- "@effect-agent/storage-cloudflare": "0.1.0-beta.6",
35
- "@effect/platform-browser": "4.0.0-beta.107",
36
- "@effect/sql-sqlite-do": "4.0.0-beta.107",
37
- "effect": "4.0.0-beta.107",
38
- "effect-cf": "0.25.3"
39
- },
40
40
  "devDependencies": {
41
41
  "@cloudflare/vitest-pool-workers": "0.21.3",
42
42
  "@cloudflare/workers-types": "5.20260813.1",
43
- "@effect-agent/capabilities": "0.0.1-beta.5",
44
- "@effect-agent/engine": "0.0.1-beta.5",
45
- "@effect-agent/testing": "0.0.1-beta.5",
43
+ "@effect-agent/capabilities": "0.1.0-beta.6",
44
+ "@effect-agent/engine": "0.1.0-beta.6",
45
+ "@effect-agent/testing": "0.1.0-beta.6",
46
46
  "@effect/vitest": "4.0.0-beta.107",
47
47
  "esbuild": "0.28.1",
48
48
  "miniflare": "4.20260730.0",