@effect-agent/storage-memory 0.0.1-beta.0

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.
@@ -0,0 +1,30 @@
1
+ import { ConversationStore, SubmissionLedger } from "@effect-agent/session";
2
+ import { Crypto, Effect, Layer, Option } from "effect";
3
+ //#region src/memory-ledger.d.ts
4
+ /** Construction options for the in-memory reference SubmissionLedger. */
5
+ interface MemorySubmissionLedgerOptions {
6
+ /**
7
+ * Test-only fault seam for `resolveAdmission` (SUB-031): when the effect yields a reason,
8
+ * the resolution answers `Indeterminate` with it instead of consulting the store — modelling
9
+ * an authoritative child owner that is temporarily unreachable. `Option.none()` restores the
10
+ * store-derived answer. Ledger state is never mutated by the fault.
11
+ */
12
+ readonly resolveAdmissionFault?: Effect.Effect<Option.Option<string>>;
13
+ }
14
+ /**
15
+ * In-memory reference SubmissionLedger Layer (durability `non-durable`). All state lives in one
16
+ * `Ref` owned by the Layer's Scope; no daemon fibers are spawned and no wall clock is consulted.
17
+ */
18
+ declare const memorySubmissionLedgerLayer: (options?: MemorySubmissionLedgerOptions) => Layer.Layer<SubmissionLedger>;
19
+ declare const MemorySubmissionLedgerLive: Layer.Layer<SubmissionLedger>;
20
+ //#endregion
21
+ //#region src/memory-storage.d.ts
22
+ declare const MemoryConversationStoreLive: Layer.Layer<ConversationStore, never, Crypto.Crypto>;
23
+ /**
24
+ * In-memory canonical Conversation persistence. Durable accepted work is served by the separate
25
+ * SubmissionLedger port; this Layer deliberately provides only the ConversationStore.
26
+ */
27
+ declare const MemoryStorageLive: Layer.Layer<ConversationStore, never, Crypto.Crypto>;
28
+ //#endregion
29
+ export { MemoryConversationStoreLive, MemoryStorageLive, MemorySubmissionLedgerLive, MemorySubmissionLedgerOptions, memorySubmissionLedgerLayer };
30
+ //# sourceMappingURL=index.d.mts.map