@effect-agent/storage-cloudflare 0.1.0-beta.104 → 0.1.0-beta.107

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.
@@ -354,6 +354,7 @@ declare const MessageDeliveryListResult_base: Schema.Class<MessageDeliveryListRe
354
354
  readonly lastAttemptAtMillis: Schema.NullOr<Schema.Int>;
355
355
  readonly lastFailure: Schema.NullOr<Schema.Literals<readonly ["transport", "capacity", "storage", "host-closed", "timeout", "ambiguous"]>>;
356
356
  }>;
357
+ readonly lastFailureDiagnostic: Schema.optionalKey<Schema.Codec<import("effect-agent/failure-diagnostic").Diagnostic, import("effect-agent/failure-diagnostic").Diagnostic, never, never>>;
357
358
  }>>;
358
359
  readonly next: Schema.NullOr<Schema.brand<Schema.NonEmptyString, "@effect-agent/thread/IdempotencyKey">>;
359
360
  }>;
@@ -653,6 +654,11 @@ export declare const encodePortRequest: (input: LedgerAdmitCall | LedgerLookupCa
653
654
  readonly createdAt: string;
654
655
  readonly deploymentId: string;
655
656
  readonly payload: {
657
+ readonly _tag: "AbortRequested";
658
+ readonly submissionId: string;
659
+ readonly author: string;
660
+ readonly reason: string;
661
+ } | {
656
662
  readonly _tag: "ThreadCreated";
657
663
  readonly agentId: string;
658
664
  readonly definitions: {
@@ -930,11 +936,6 @@ export declare const encodePortRequest: (input: LedgerAdmitCall | LedgerLookupCa
930
936
  readonly runDisposition?: Schema.Json | undefined;
931
937
  readonly finishReason?: "budget-exhausted" | undefined;
932
938
  readonly exhausted?: "tokens" | "tool-calls" | "turns" | undefined;
933
- } | {
934
- readonly _tag: "AbortRequested";
935
- readonly submissionId: string;
936
- readonly author: string;
937
- readonly reason: string;
938
939
  } | {
939
940
  readonly _tag: "SubmissionSettled";
940
941
  readonly submissionId: string;
@@ -1446,6 +1447,11 @@ export declare const encodePortRequest: (input: LedgerAdmitCall | LedgerLookupCa
1446
1447
  readonly createdAt: string;
1447
1448
  readonly deploymentId: string;
1448
1449
  readonly payload: {
1450
+ readonly _tag: "AbortRequested";
1451
+ readonly submissionId: string;
1452
+ readonly author: string;
1453
+ readonly reason: string;
1454
+ } | {
1449
1455
  readonly _tag: "ThreadCreated";
1450
1456
  readonly agentId: string;
1451
1457
  readonly definitions: {
@@ -1723,11 +1729,6 @@ export declare const encodePortRequest: (input: LedgerAdmitCall | LedgerLookupCa
1723
1729
  readonly runDisposition?: Schema.Json | undefined;
1724
1730
  readonly finishReason?: "budget-exhausted" | undefined;
1725
1731
  readonly exhausted?: "tokens" | "tool-calls" | "turns" | undefined;
1726
- } | {
1727
- readonly _tag: "AbortRequested";
1728
- readonly submissionId: string;
1729
- readonly author: string;
1730
- readonly reason: string;
1731
1732
  } | {
1732
1733
  readonly _tag: "SubmissionSettled";
1733
1734
  readonly submissionId: string;
@@ -2788,6 +2789,11 @@ export declare const encodePortResponse: (input: PortFailed | PortSucceeded, opt
2788
2789
  readonly createdAt: string;
2789
2790
  readonly deploymentId: string;
2790
2791
  readonly payload: {
2792
+ readonly _tag: "AbortRequested";
2793
+ readonly submissionId: string;
2794
+ readonly author: string;
2795
+ readonly reason: string;
2796
+ } | {
2791
2797
  readonly _tag: "ThreadCreated";
2792
2798
  readonly agentId: string;
2793
2799
  readonly definitions: {
@@ -3065,11 +3071,6 @@ export declare const encodePortResponse: (input: PortFailed | PortSucceeded, opt
3065
3071
  readonly runDisposition?: Schema.Json | undefined;
3066
3072
  readonly finishReason?: "budget-exhausted" | undefined;
3067
3073
  readonly exhausted?: "tokens" | "tool-calls" | "turns" | undefined;
3068
- } | {
3069
- readonly _tag: "AbortRequested";
3070
- readonly submissionId: string;
3071
- readonly author: string;
3072
- readonly reason: string;
3073
3074
  } | {
3074
3075
  readonly _tag: "SubmissionSettled";
3075
3076
  readonly submissionId: string;
@@ -3603,6 +3604,11 @@ export declare const encodePortResponse: (input: PortFailed | PortSucceeded, opt
3603
3604
  readonly createdAt: string;
3604
3605
  readonly deploymentId: string;
3605
3606
  readonly payload: {
3607
+ readonly _tag: "AbortRequested";
3608
+ readonly submissionId: string;
3609
+ readonly author: string;
3610
+ readonly reason: string;
3611
+ } | {
3606
3612
  readonly _tag: "ThreadCreated";
3607
3613
  readonly agentId: string;
3608
3614
  readonly definitions: {
@@ -3880,11 +3886,6 @@ export declare const encodePortResponse: (input: PortFailed | PortSucceeded, opt
3880
3886
  readonly runDisposition?: Schema.Json | undefined;
3881
3887
  readonly finishReason?: "budget-exhausted" | undefined;
3882
3888
  readonly exhausted?: "tokens" | "tool-calls" | "turns" | undefined;
3883
- } | {
3884
- readonly _tag: "AbortRequested";
3885
- readonly submissionId: string;
3886
- readonly author: string;
3887
- readonly reason: string;
3888
3889
  } | {
3889
3890
  readonly _tag: "SubmissionSettled";
3890
3891
  readonly submissionId: string;
@@ -4681,6 +4682,20 @@ export declare const encodePortResponse: (input: PortFailed | PortSucceeded, opt
4681
4682
  readonly failure?: {
4682
4683
  readonly errorTag: string;
4683
4684
  readonly message: string;
4685
+ readonly diagnostic?: import("effect-agent/failure-diagnostic").Diagnostic | undefined;
4686
+ readonly context?: {
4687
+ readonly agentId?: string | undefined;
4688
+ readonly threadId?: string | undefined;
4689
+ readonly runId?: string | undefined;
4690
+ readonly submissionId?: string | undefined;
4691
+ readonly attemptId?: string | undefined;
4692
+ readonly turnId?: string | undefined;
4693
+ readonly toolCallId?: string | undefined;
4694
+ readonly toolName?: string | undefined;
4695
+ readonly callId?: string | undefined;
4696
+ readonly check?: string | undefined;
4697
+ readonly operation?: string | undefined;
4698
+ } | undefined;
4684
4699
  } | undefined;
4685
4700
  readonly settledAt: string;
4686
4701
  } | null;
@@ -4696,6 +4711,7 @@ export declare const encodePortResponse: (input: PortFailed | PortSucceeded, opt
4696
4711
  readonly lastAttemptAtMillis: number | null;
4697
4712
  readonly lastFailure: "ambiguous" | "capacity" | "host-closed" | "storage" | "timeout" | "transport" | null;
4698
4713
  };
4714
+ readonly lastFailureDiagnostic?: import("effect-agent/failure-diagnostic").Diagnostic | undefined;
4699
4715
  }[];
4700
4716
  readonly next: string | null;
4701
4717
  };
@@ -4703,7 +4719,12 @@ export declare const encodePortResponse: (input: PortFailed | PortSucceeded, opt
4703
4719
  } | {
4704
4720
  readonly _tag: "PortFailed";
4705
4721
  readonly failure: {
4722
+ readonly _tag: "PortProtocolError";
4723
+ readonly message: string;
4724
+ } | {
4706
4725
  readonly _tag: "MessageDeliveryError";
4726
+ readonly cause?: import("effect-agent/failure-diagnostic").Diagnostic | undefined;
4727
+ readonly stack?: string | undefined;
4707
4728
  readonly reason: "capacity" | "conflict" | "corrupt" | "not-found" | "storage" | "validation";
4708
4729
  readonly operation: string;
4709
4730
  } | {
@@ -4719,9 +4740,6 @@ export declare const encodePortResponse: (input: PortFailed | PortSucceeded, opt
4719
4740
  readonly operation: string;
4720
4741
  readonly message: string;
4721
4742
  readonly cause?: Schema.Json | undefined;
4722
- } | {
4723
- readonly _tag: "PortProtocolError";
4724
- readonly message: string;
4725
4743
  } | {
4726
4744
  readonly _tag: "AdmissionConflict";
4727
4745
  readonly threadId: string;
@@ -4733,6 +4751,8 @@ export declare const encodePortResponse: (input: PortFailed | PortSucceeded, opt
4733
4751
  readonly _tag: "AdmissionPolicyError";
4734
4752
  readonly reason: "occupied" | "refused" | "unavailable";
4735
4753
  readonly code: string;
4754
+ readonly cause?: import("effect-agent/failure-diagnostic").Diagnostic | undefined;
4755
+ readonly stack?: string | undefined;
4736
4756
  } | {
4737
4757
  readonly _tag: "SettlementConflict";
4738
4758
  readonly submissionId: string;
@@ -4745,7 +4765,7 @@ export declare const encodePortResponse: (input: PortFailed | PortSucceeded, opt
4745
4765
  readonly _tag: "LedgerError";
4746
4766
  readonly operation: string;
4747
4767
  readonly message: string;
4748
- readonly cause?: Schema.Json | undefined;
4768
+ readonly cause?: import("effect-agent/failure-diagnostic").Diagnostic | undefined;
4749
4769
  } | {
4750
4770
  readonly _tag: "AppendConflict";
4751
4771
  readonly threadId: string;
package/package.json CHANGED
@@ -1 +1 @@
1
- {"name":"@effect-agent/storage-cloudflare","version":"0.1.0-beta.104","dependencies":{"@effect/platform-browser":"4.0.0-rc.115","@effect/sql-sqlite-do":"4.0.0-rc.115","effect-agent":"0.1.0-beta.104"},"devDependencies":{"@cloudflare/vitest-pool-workers":"0.21.3","@cloudflare/workers-types":"5.20260825.1","@effect-agent/testing":"0.1.0-beta.104","@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.107","dependencies":{"@effect/platform-browser":"4.0.0-rc.115","@effect/sql-sqlite-do":"4.0.0-rc.115","effect-agent":"0.1.0-beta.107"},"devDependencies":{"@cloudflare/vitest-pool-workers":"0.21.3","@cloudflare/workers-types":"5.20260825.1","@effect-agent/testing":"0.1.0-beta.107","@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"}}