@effect-agent/storage-cloudflare 0.1.0-beta.106 → 0.1.0-beta.108

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.
@@ -654,6 +654,11 @@ export declare const encodePortRequest: (input: LedgerAdmitCall | LedgerLookupCa
654
654
  readonly createdAt: string;
655
655
  readonly deploymentId: string;
656
656
  readonly payload: {
657
+ readonly _tag: "AbortRequested";
658
+ readonly submissionId: string;
659
+ readonly author: string;
660
+ readonly reason: string;
661
+ } | {
657
662
  readonly _tag: "ThreadCreated";
658
663
  readonly agentId: string;
659
664
  readonly definitions: {
@@ -931,11 +936,6 @@ export declare const encodePortRequest: (input: LedgerAdmitCall | LedgerLookupCa
931
936
  readonly runDisposition?: Schema.Json | undefined;
932
937
  readonly finishReason?: "budget-exhausted" | undefined;
933
938
  readonly exhausted?: "tokens" | "tool-calls" | "turns" | undefined;
934
- } | {
935
- readonly _tag: "AbortRequested";
936
- readonly submissionId: string;
937
- readonly author: string;
938
- readonly reason: string;
939
939
  } | {
940
940
  readonly _tag: "SubmissionSettled";
941
941
  readonly submissionId: string;
@@ -1447,6 +1447,11 @@ export declare const encodePortRequest: (input: LedgerAdmitCall | LedgerLookupCa
1447
1447
  readonly createdAt: string;
1448
1448
  readonly deploymentId: string;
1449
1449
  readonly payload: {
1450
+ readonly _tag: "AbortRequested";
1451
+ readonly submissionId: string;
1452
+ readonly author: string;
1453
+ readonly reason: string;
1454
+ } | {
1450
1455
  readonly _tag: "ThreadCreated";
1451
1456
  readonly agentId: string;
1452
1457
  readonly definitions: {
@@ -1724,11 +1729,6 @@ export declare const encodePortRequest: (input: LedgerAdmitCall | LedgerLookupCa
1724
1729
  readonly runDisposition?: Schema.Json | undefined;
1725
1730
  readonly finishReason?: "budget-exhausted" | undefined;
1726
1731
  readonly exhausted?: "tokens" | "tool-calls" | "turns" | undefined;
1727
- } | {
1728
- readonly _tag: "AbortRequested";
1729
- readonly submissionId: string;
1730
- readonly author: string;
1731
- readonly reason: string;
1732
1732
  } | {
1733
1733
  readonly _tag: "SubmissionSettled";
1734
1734
  readonly submissionId: string;
@@ -2789,6 +2789,11 @@ export declare const encodePortResponse: (input: PortFailed | PortSucceeded, opt
2789
2789
  readonly createdAt: string;
2790
2790
  readonly deploymentId: string;
2791
2791
  readonly payload: {
2792
+ readonly _tag: "AbortRequested";
2793
+ readonly submissionId: string;
2794
+ readonly author: string;
2795
+ readonly reason: string;
2796
+ } | {
2792
2797
  readonly _tag: "ThreadCreated";
2793
2798
  readonly agentId: string;
2794
2799
  readonly definitions: {
@@ -3066,11 +3071,6 @@ export declare const encodePortResponse: (input: PortFailed | PortSucceeded, opt
3066
3071
  readonly runDisposition?: Schema.Json | undefined;
3067
3072
  readonly finishReason?: "budget-exhausted" | undefined;
3068
3073
  readonly exhausted?: "tokens" | "tool-calls" | "turns" | undefined;
3069
- } | {
3070
- readonly _tag: "AbortRequested";
3071
- readonly submissionId: string;
3072
- readonly author: string;
3073
- readonly reason: string;
3074
3074
  } | {
3075
3075
  readonly _tag: "SubmissionSettled";
3076
3076
  readonly submissionId: string;
@@ -3604,6 +3604,11 @@ export declare const encodePortResponse: (input: PortFailed | PortSucceeded, opt
3604
3604
  readonly createdAt: string;
3605
3605
  readonly deploymentId: string;
3606
3606
  readonly payload: {
3607
+ readonly _tag: "AbortRequested";
3608
+ readonly submissionId: string;
3609
+ readonly author: string;
3610
+ readonly reason: string;
3611
+ } | {
3607
3612
  readonly _tag: "ThreadCreated";
3608
3613
  readonly agentId: string;
3609
3614
  readonly definitions: {
@@ -3881,11 +3886,6 @@ export declare const encodePortResponse: (input: PortFailed | PortSucceeded, opt
3881
3886
  readonly runDisposition?: Schema.Json | undefined;
3882
3887
  readonly finishReason?: "budget-exhausted" | undefined;
3883
3888
  readonly exhausted?: "tokens" | "tool-calls" | "turns" | undefined;
3884
- } | {
3885
- readonly _tag: "AbortRequested";
3886
- readonly submissionId: string;
3887
- readonly author: string;
3888
- readonly reason: string;
3889
3889
  } | {
3890
3890
  readonly _tag: "SubmissionSettled";
3891
3891
  readonly submissionId: string;
@@ -4719,27 +4719,14 @@ export declare const encodePortResponse: (input: PortFailed | PortSucceeded, opt
4719
4719
  } | {
4720
4720
  readonly _tag: "PortFailed";
4721
4721
  readonly failure: {
4722
+ readonly _tag: "PortProtocolError";
4723
+ readonly message: string;
4724
+ } | {
4722
4725
  readonly _tag: "MessageDeliveryError";
4723
4726
  readonly cause?: import("effect-agent/failure-diagnostic").Diagnostic | undefined;
4724
4727
  readonly stack?: string | undefined;
4725
4728
  readonly reason: "capacity" | "conflict" | "corrupt" | "not-found" | "storage" | "validation";
4726
4729
  readonly operation: string;
4727
- } | {
4728
- readonly _tag: "ThreadNotMaterialized";
4729
- readonly threadId: string;
4730
- } | {
4731
- readonly _tag: "FenceRejected";
4732
- readonly threadId: string;
4733
- readonly actualEpoch: number;
4734
- readonly attemptedEpoch: number;
4735
- } | {
4736
- readonly _tag: "ThreadStoreError";
4737
- readonly operation: string;
4738
- readonly message: string;
4739
- readonly cause?: Schema.Json | undefined;
4740
- } | {
4741
- readonly _tag: "PortProtocolError";
4742
- readonly message: string;
4743
4730
  } | {
4744
4731
  readonly _tag: "AdmissionConflict";
4745
4732
  readonly threadId: string;
@@ -4766,6 +4753,14 @@ export declare const encodePortResponse: (input: PortFailed | PortSucceeded, opt
4766
4753
  readonly operation: string;
4767
4754
  readonly message: string;
4768
4755
  readonly cause?: import("effect-agent/failure-diagnostic").Diagnostic | undefined;
4756
+ } | {
4757
+ readonly _tag: "ThreadStoreError";
4758
+ readonly operation: string;
4759
+ readonly message: string;
4760
+ readonly cause?: Schema.Json | undefined;
4761
+ } | {
4762
+ readonly _tag: "ThreadNotMaterialized";
4763
+ readonly threadId: string;
4769
4764
  } | {
4770
4765
  readonly _tag: "AppendConflict";
4771
4766
  readonly threadId: string;
@@ -4773,6 +4768,11 @@ export declare const encodePortResponse: (input: PortFailed | PortSucceeded, opt
4773
4768
  readonly reason: "batch-digest" | "record-identity" | "tail";
4774
4769
  readonly actualTailSequence?: number | undefined;
4775
4770
  readonly actualTailDigest?: string | undefined;
4771
+ } | {
4772
+ readonly _tag: "FenceRejected";
4773
+ readonly threadId: string;
4774
+ readonly actualEpoch: number;
4775
+ readonly attemptedEpoch: number;
4776
4776
  };
4777
4777
  }, Schema.SchemaError, never>;
4778
4778
  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.106","dependencies":{"@effect/platform-browser":"4.0.0-rc.115","@effect/sql-sqlite-do":"4.0.0-rc.115","effect-agent":"0.1.0-beta.106"},"devDependencies":{"@cloudflare/vitest-pool-workers":"0.21.3","@cloudflare/workers-types":"5.20260825.1","@effect-agent/testing":"0.1.0-beta.106","@effect/vitest":"4.0.0-rc.115","effect":"4.0.0-rc.115","typescript":"7.0.2","vite-plus":"0.3.2","vitest":"4.1.11"},"peerDependencies":{"effect":"^4.0.0-rc.115"},"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.108","dependencies":{"@effect/platform-browser":"4.0.0-rc.115","@effect/sql-sqlite-do":"4.0.0-rc.115","effect-agent":"0.1.0-beta.108"},"devDependencies":{"@cloudflare/vitest-pool-workers":"0.21.3","@cloudflare/workers-types":"5.20260825.1","@effect-agent/testing":"0.1.0-beta.108","@effect/vitest":"4.0.0-rc.115","effect":"4.0.0-rc.115","typescript":"7.0.2","vite-plus":"0.3.2","vitest":"4.1.11"},"peerDependencies":{"effect":"^4.0.0-rc.115"},"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"}}