@effect-agent/storage-memory 0.1.0-beta.38 → 0.1.0-beta.39
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 +9 -6
- package/dist/index.mjs +752 -160
- package/dist/index.mjs.map +1 -1
- package/dist/testing.d.mts +2 -2
- package/dist/testing.mjs +2 -2
- package/package.json +8 -5
- package/src/index.ts +1 -0
- package/src/memory-ledger.ts +28 -35
- package/src/memory-schedule-store.ts +1 -1
- package/src/memory-storage.ts +336 -366
- package/src/memory-subscription-store.ts +921 -0
- package/src/testing.ts +7 -6
package/dist/index.d.mts
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import { ScheduleStore, SourcePartition, SubmissionLedger, SubscriptionError, SubscriptionStore, ThreadStore } from "@effect-agent/thread";
|
|
2
2
|
import { Crypto, Effect, Layer, Option } from "effect";
|
|
3
3
|
//#region src/memory-ledger.d.ts
|
|
4
4
|
/** Construction options for the in-memory reference SubmissionLedger. */
|
|
@@ -22,13 +22,16 @@ declare const MemorySubmissionLedgerLive: Layer.Layer<SubmissionLedger>;
|
|
|
22
22
|
declare const memoryScheduleStoreLayer: () => Layer.Layer<ScheduleStore>;
|
|
23
23
|
declare const MemoryScheduleStoreLive: Layer.Layer<ScheduleStore>;
|
|
24
24
|
//#endregion
|
|
25
|
+
//#region src/memory-subscription-store.d.ts
|
|
26
|
+
declare const memorySubscriptionStoreLayer: (partition: SourcePartition) => Layer.Layer<SubscriptionStore, SubscriptionError>;
|
|
27
|
+
//#endregion
|
|
25
28
|
//#region src/memory-storage.d.ts
|
|
26
|
-
declare const
|
|
29
|
+
declare const MemoryThreadStoreLive: Layer.Layer<ThreadStore, never, Crypto.Crypto>;
|
|
27
30
|
/**
|
|
28
|
-
* In-memory canonical
|
|
29
|
-
* SubmissionLedger port; this Layer deliberately provides only the
|
|
31
|
+
* In-memory canonical Thread persistence. Durable accepted work is served by the separate
|
|
32
|
+
* SubmissionLedger port; this Layer deliberately provides only the ThreadStore.
|
|
30
33
|
*/
|
|
31
|
-
declare const MemoryStorageLive: Layer.Layer<
|
|
34
|
+
declare const MemoryStorageLive: Layer.Layer<ThreadStore, never, Crypto.Crypto>;
|
|
32
35
|
//#endregion
|
|
33
|
-
export {
|
|
36
|
+
export { MemoryScheduleStoreLive, MemoryStorageLive, MemorySubmissionLedgerLive, MemorySubmissionLedgerOptions, MemoryThreadStoreLive, memoryScheduleStoreLayer, memorySubmissionLedgerLayer, memorySubscriptionStoreLayer };
|
|
34
37
|
//# sourceMappingURL=index.d.mts.map
|