@effect-agent/storage-cloudflare 0.1.0-beta.112 → 0.1.0-beta.113

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.
@@ -674,6 +674,11 @@ export declare const encodePortRequest: (input: LedgerAdmitCall | LedgerLookupCa
674
674
  readonly createdAt: string;
675
675
  readonly deploymentId: string;
676
676
  readonly payload: {
677
+ readonly _tag: "AbortRequested";
678
+ readonly submissionId: string;
679
+ readonly author: string;
680
+ readonly reason: string;
681
+ } | {
677
682
  readonly _tag: "ThreadCreated";
678
683
  readonly agentId: string;
679
684
  readonly definitions: {
@@ -951,11 +956,6 @@ export declare const encodePortRequest: (input: LedgerAdmitCall | LedgerLookupCa
951
956
  readonly runDisposition?: Schema.Json | undefined;
952
957
  readonly finishReason?: "budget-exhausted" | undefined;
953
958
  readonly exhausted?: "tokens" | "tool-calls" | "turns" | undefined;
954
- } | {
955
- readonly _tag: "AbortRequested";
956
- readonly submissionId: string;
957
- readonly author: string;
958
- readonly reason: string;
959
959
  } | {
960
960
  readonly _tag: "SubmissionSettled";
961
961
  readonly submissionId: string;
@@ -1491,6 +1491,11 @@ export declare const encodePortRequest: (input: LedgerAdmitCall | LedgerLookupCa
1491
1491
  readonly createdAt: string;
1492
1492
  readonly deploymentId: string;
1493
1493
  readonly payload: {
1494
+ readonly _tag: "AbortRequested";
1495
+ readonly submissionId: string;
1496
+ readonly author: string;
1497
+ readonly reason: string;
1498
+ } | {
1494
1499
  readonly _tag: "ThreadCreated";
1495
1500
  readonly agentId: string;
1496
1501
  readonly definitions: {
@@ -1768,11 +1773,6 @@ export declare const encodePortRequest: (input: LedgerAdmitCall | LedgerLookupCa
1768
1773
  readonly runDisposition?: Schema.Json | undefined;
1769
1774
  readonly finishReason?: "budget-exhausted" | undefined;
1770
1775
  readonly exhausted?: "tokens" | "tool-calls" | "turns" | undefined;
1771
- } | {
1772
- readonly _tag: "AbortRequested";
1773
- readonly submissionId: string;
1774
- readonly author: string;
1775
- readonly reason: string;
1776
1776
  } | {
1777
1777
  readonly _tag: "SubmissionSettled";
1778
1778
  readonly submissionId: string;
@@ -2881,6 +2881,11 @@ export declare const encodePortResponse: (input: PortFailed | PortSucceeded, opt
2881
2881
  readonly createdAt: string;
2882
2882
  readonly deploymentId: string;
2883
2883
  readonly payload: {
2884
+ readonly _tag: "AbortRequested";
2885
+ readonly submissionId: string;
2886
+ readonly author: string;
2887
+ readonly reason: string;
2888
+ } | {
2884
2889
  readonly _tag: "ThreadCreated";
2885
2890
  readonly agentId: string;
2886
2891
  readonly definitions: {
@@ -3158,11 +3163,6 @@ export declare const encodePortResponse: (input: PortFailed | PortSucceeded, opt
3158
3163
  readonly runDisposition?: Schema.Json | undefined;
3159
3164
  readonly finishReason?: "budget-exhausted" | undefined;
3160
3165
  readonly exhausted?: "tokens" | "tool-calls" | "turns" | undefined;
3161
- } | {
3162
- readonly _tag: "AbortRequested";
3163
- readonly submissionId: string;
3164
- readonly author: string;
3165
- readonly reason: string;
3166
3166
  } | {
3167
3167
  readonly _tag: "SubmissionSettled";
3168
3168
  readonly submissionId: string;
@@ -3720,6 +3720,11 @@ export declare const encodePortResponse: (input: PortFailed | PortSucceeded, opt
3720
3720
  readonly createdAt: string;
3721
3721
  readonly deploymentId: string;
3722
3722
  readonly payload: {
3723
+ readonly _tag: "AbortRequested";
3724
+ readonly submissionId: string;
3725
+ readonly author: string;
3726
+ readonly reason: string;
3727
+ } | {
3723
3728
  readonly _tag: "ThreadCreated";
3724
3729
  readonly agentId: string;
3725
3730
  readonly definitions: {
@@ -3997,11 +4002,6 @@ export declare const encodePortResponse: (input: PortFailed | PortSucceeded, opt
3997
4002
  readonly runDisposition?: Schema.Json | undefined;
3998
4003
  readonly finishReason?: "budget-exhausted" | undefined;
3999
4004
  readonly exhausted?: "tokens" | "tool-calls" | "turns" | undefined;
4000
- } | {
4001
- readonly _tag: "AbortRequested";
4002
- readonly submissionId: string;
4003
- readonly author: string;
4004
- readonly reason: string;
4005
4005
  } | {
4006
4006
  readonly _tag: "SubmissionSettled";
4007
4007
  readonly submissionId: string;
@@ -4871,34 +4871,14 @@ export declare const encodePortResponse: (input: PortFailed | PortSucceeded, opt
4871
4871
  } | {
4872
4872
  readonly _tag: "PortFailed";
4873
4873
  readonly failure: {
4874
+ readonly _tag: "PortProtocolError";
4875
+ readonly message: string;
4876
+ } | {
4874
4877
  readonly _tag: "MessageDeliveryError";
4875
4878
  readonly cause?: import("effect-agent/failure-diagnostic").Diagnostic | undefined;
4876
4879
  readonly stack?: string | undefined;
4877
4880
  readonly reason: "capacity" | "conflict" | "corrupt" | "not-found" | "storage" | "validation";
4878
4881
  readonly operation: string;
4879
- } | {
4880
- readonly _tag: "ThreadNotMaterialized";
4881
- readonly threadId: string;
4882
- } | {
4883
- readonly _tag: "FenceRejected";
4884
- readonly threadId: string;
4885
- readonly actualEpoch: number;
4886
- readonly attemptedEpoch: number;
4887
- } | {
4888
- readonly _tag: "ThreadStoreError";
4889
- readonly operation: string;
4890
- readonly message: string;
4891
- readonly cause?: Schema.Json | undefined;
4892
- readonly diagnostic?: {
4893
- readonly causeTag: string;
4894
- readonly operation: string;
4895
- readonly decoder?: string | undefined;
4896
- readonly issueTag?: string | undefined;
4897
- readonly sequence?: number | undefined;
4898
- } | undefined;
4899
- } | {
4900
- readonly _tag: "PortProtocolError";
4901
- readonly message: string;
4902
4882
  } | {
4903
4883
  readonly _tag: "AdmissionConflict";
4904
4884
  readonly threadId: string;
@@ -4925,6 +4905,21 @@ export declare const encodePortResponse: (input: PortFailed | PortSucceeded, opt
4925
4905
  readonly operation: string;
4926
4906
  readonly message: string;
4927
4907
  readonly cause?: import("effect-agent/failure-diagnostic").Diagnostic | undefined;
4908
+ } | {
4909
+ readonly _tag: "ThreadStoreError";
4910
+ readonly operation: string;
4911
+ readonly message: string;
4912
+ readonly cause?: Schema.Json | undefined;
4913
+ readonly diagnostic?: {
4914
+ readonly causeTag: string;
4915
+ readonly operation: string;
4916
+ readonly decoder?: string | undefined;
4917
+ readonly issueTag?: string | undefined;
4918
+ readonly sequence?: number | undefined;
4919
+ } | undefined;
4920
+ } | {
4921
+ readonly _tag: "ThreadNotMaterialized";
4922
+ readonly threadId: string;
4928
4923
  } | {
4929
4924
  readonly _tag: "AppendConflict";
4930
4925
  readonly threadId: string;
@@ -4932,6 +4927,11 @@ export declare const encodePortResponse: (input: PortFailed | PortSucceeded, opt
4932
4927
  readonly reason: "batch-digest" | "record-identity" | "tail";
4933
4928
  readonly actualTailSequence?: number | undefined;
4934
4929
  readonly actualTailDigest?: string | undefined;
4930
+ } | {
4931
+ readonly _tag: "FenceRejected";
4932
+ readonly threadId: string;
4933
+ readonly actualEpoch: number;
4934
+ readonly attemptedEpoch: number;
4935
4935
  };
4936
4936
  }, Schema.SchemaError, never>;
4937
4937
  export declare const decodePortResponse: (input: unknown, options?: import("effect/SchemaAST").ParseOptions) => import("effect/Effect").Effect<PortFailed | PortSucceeded, Schema.SchemaError, never>;
package/package.json CHANGED
@@ -1 +1 @@
1
- {"name":"@effect-agent/storage-cloudflare","version":"0.1.0-beta.112","dependencies":{"@effect/platform-browser":"4.0.0-rc.116","@effect/sql-sqlite-do":"4.0.0-rc.116","effect-agent":"0.1.0-beta.112"},"devDependencies":{"@cloudflare/vitest-pool-workers":"0.21.3","@cloudflare/workers-types":"5.20260825.1","@effect-agent/testing":"0.1.0-beta.112","@effect/vitest":"4.0.0-rc.116","effect":"4.0.0-rc.116","typescript":"7.0.2","vite-plus":"0.3.2","vitest":"4.1.11"},"peerDependencies":{"effect":"^4.0.0-rc.116"},"exports":{".":{"types":"./dist/index.d.mts","default":"./dist/index.mjs"},"./do-memory-store":{"types":"./dist/DoMemoryStore.d.mts","default":"./dist/DoMemoryStore.mjs"},"./do-schedule-store":{"types":"./dist/DoScheduleStore.d.mts","default":"./dist/DoScheduleStore.mjs"},"./do-storage-config":{"types":"./dist/DoStorageConfig.d.mts","default":"./dist/DoStorageConfig.mjs"},"./do-storage-error":{"types":"./dist/DoStorageError.d.mts","default":"./dist/DoStorageError.mjs"},"./do-storage-failpoint":{"types":"./dist/DoStorageFailpoint.d.mts","default":"./dist/DoStorageFailpoint.mjs"},"./do-storage-version":{"types":"./dist/DoStorageVersion.d.mts","default":"./dist/DoStorageVersion.mjs"},"./do-submission-ledger":{"types":"./dist/DoSubmissionLedger.d.mts","default":"./dist/DoSubmissionLedger.mjs"},"./do-subscription-store":{"types":"./dist/DoSubscriptionStore.d.mts","default":"./dist/DoSubscriptionStore.mjs"},"./do-thread-store":{"types":"./dist/DoThreadStore.d.mts","default":"./dist/DoThreadStore.mjs"},"./memory-protocol":{"types":"./dist/MemoryProtocol.d.mts","default":"./dist/MemoryProtocol.mjs"},"./port-protocol":{"types":"./dist/PortProtocol.d.mts","default":"./dist/PortProtocol.mjs"},"./port-routing":{"types":"./dist/PortRouting.d.mts","default":"./dist/PortRouting.mjs"},"./testing/do-storage-failpoint-testing":{"types":"./dist/DoStorageFailpointTesting.d.mts","default":"./dist/DoStorageFailpointTesting.mjs"},"./do-message-delivery-store":{"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.113","dependencies":{"@effect/platform-browser":"4.0.0-rc.116","@effect/sql-sqlite-do":"4.0.0-rc.116","effect-agent":"0.1.0-beta.113"},"devDependencies":{"@cloudflare/vitest-pool-workers":"0.21.3","@cloudflare/workers-types":"5.20260825.1","@effect-agent/testing":"0.1.0-beta.113","@effect/vitest":"4.0.0-rc.116","effect":"4.0.0-rc.116","typescript":"7.0.2","vite-plus":"0.3.2","vitest":"4.1.11"},"peerDependencies":{"effect":"^4.0.0-rc.116"},"exports":{".":{"types":"./dist/index.d.mts","default":"./dist/index.mjs"},"./do-memory-store":{"types":"./dist/DoMemoryStore.d.mts","default":"./dist/DoMemoryStore.mjs"},"./do-schedule-store":{"types":"./dist/DoScheduleStore.d.mts","default":"./dist/DoScheduleStore.mjs"},"./do-storage-config":{"types":"./dist/DoStorageConfig.d.mts","default":"./dist/DoStorageConfig.mjs"},"./do-storage-error":{"types":"./dist/DoStorageError.d.mts","default":"./dist/DoStorageError.mjs"},"./do-storage-failpoint":{"types":"./dist/DoStorageFailpoint.d.mts","default":"./dist/DoStorageFailpoint.mjs"},"./do-storage-version":{"types":"./dist/DoStorageVersion.d.mts","default":"./dist/DoStorageVersion.mjs"},"./do-submission-ledger":{"types":"./dist/DoSubmissionLedger.d.mts","default":"./dist/DoSubmissionLedger.mjs"},"./do-subscription-store":{"types":"./dist/DoSubscriptionStore.d.mts","default":"./dist/DoSubscriptionStore.mjs"},"./do-thread-store":{"types":"./dist/DoThreadStore.d.mts","default":"./dist/DoThreadStore.mjs"},"./memory-protocol":{"types":"./dist/MemoryProtocol.d.mts","default":"./dist/MemoryProtocol.mjs"},"./port-protocol":{"types":"./dist/PortProtocol.d.mts","default":"./dist/PortProtocol.mjs"},"./port-routing":{"types":"./dist/PortRouting.d.mts","default":"./dist/PortRouting.mjs"},"./testing/do-storage-failpoint-testing":{"types":"./dist/DoStorageFailpointTesting.d.mts","default":"./dist/DoStorageFailpointTesting.mjs"},"./do-message-delivery-store":{"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"}}