@effect-agent/storage-memory 0.1.0-beta.38 → 0.1.0-beta.40

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 CHANGED
@@ -1,5 +1,6 @@
1
- import { ConversationStore, ScheduleStore, SubmissionLedger } from "@effect-agent/session";
2
- import { Crypto, Effect, Layer, Option } from "effect";
1
+ import { MemoryIndexError, SemanticMemoryIndex, SemanticMemoryProfile } from "@effect-agent/core";
2
+ import { ScheduleStore, SourcePartition, SubmissionLedger, SubscriptionError, SubscriptionStore, ThreadStore } from "@effect-agent/thread";
3
+ import { Crypto, Effect, Layer, Option, Schema } from "effect";
3
4
  //#region src/memory-ledger.d.ts
4
5
  /** Construction options for the in-memory reference SubmissionLedger. */
5
6
  interface MemorySubmissionLedgerOptions {
@@ -22,13 +23,31 @@ declare const MemorySubmissionLedgerLive: Layer.Layer<SubmissionLedger>;
22
23
  declare const memoryScheduleStoreLayer: () => Layer.Layer<ScheduleStore>;
23
24
  declare const MemoryScheduleStoreLive: Layer.Layer<ScheduleStore>;
24
25
  //#endregion
26
+ //#region src/memory-subscription-store.d.ts
27
+ declare const memorySubscriptionStoreLayer: (partition: SourcePartition) => Layer.Layer<SubscriptionStore, SubscriptionError>;
28
+ //#endregion
25
29
  //#region src/memory-storage.d.ts
26
- declare const MemoryConversationStoreLive: Layer.Layer<ConversationStore, never, Crypto.Crypto>;
30
+ declare const MemoryThreadStoreLive: Layer.Layer<ThreadStore, never, Crypto.Crypto>;
31
+ /**
32
+ * In-memory canonical Thread persistence. Durable accepted work is served by the separate
33
+ * SubmissionLedger port; this Layer deliberately provides only the ThreadStore.
34
+ */
35
+ declare const MemoryStorageLive: Layer.Layer<ThreadStore, never, Crypto.Crypto>;
36
+ //#endregion
37
+ //#region src/semantic-memory-index.d.ts
38
+ declare const InMemorySemanticIndexCapacity_base: Schema.Class<InMemorySemanticIndexCapacity, Schema.Struct<{
39
+ readonly maxSources: Schema.Int;
40
+ readonly maxChunks: Schema.Int;
41
+ readonly maxSourceBytes: Schema.optionalKey<Schema.Int>;
42
+ }>, {}>;
27
43
  /**
28
- * In-memory canonical Conversation persistence. Durable accepted work is served by the separate
29
- * SubmissionLedger port; this Layer deliberately provides only the ConversationStore.
44
+ * Hard per-Layer bounds for disposable semantic index state. maxChunks times profile dimensions
45
+ * must not exceed 16,777,216 vector components. maxSourceBytes bounds the aggregate UTF-8 JSON
46
+ * of retained source identities and defaults to 16 MiB; it is not a general heap limit.
30
47
  */
31
- declare const MemoryStorageLive: Layer.Layer<ConversationStore, never, Crypto.Crypto>;
48
+ declare class InMemorySemanticIndexCapacity extends InMemorySemanticIndexCapacity_base {}
49
+ /** Scoped disposable semantic index. No persistent build or recovery state is retained. */
50
+ declare const inMemorySemanticIndexLayer: (profile: SemanticMemoryProfile, capacity: InMemorySemanticIndexCapacity) => Layer.Layer<SemanticMemoryIndex, MemoryIndexError>;
32
51
  //#endregion
33
- export { MemoryConversationStoreLive, MemoryScheduleStoreLive, MemoryStorageLive, MemorySubmissionLedgerLive, MemorySubmissionLedgerOptions, memoryScheduleStoreLayer, memorySubmissionLedgerLayer };
52
+ export { InMemorySemanticIndexCapacity, MemoryScheduleStoreLive, MemoryStorageLive, MemorySubmissionLedgerLive, MemorySubmissionLedgerOptions, MemoryThreadStoreLive, inMemorySemanticIndexLayer, memoryScheduleStoreLayer, memorySubmissionLedgerLayer, memorySubscriptionStoreLayer };
34
53
  //# sourceMappingURL=index.d.mts.map