@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 +26 -7
- package/dist/index.mjs +963 -160
- package/dist/index.mjs.map +1 -1
- package/dist/testing.d.mts +2 -2
- package/dist/testing.mjs +2 -2
- package/package.json +9 -6
- package/src/index.ts +2 -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/semantic-memory-index.ts +320 -0
- package/src/testing.ts +7 -6
package/dist/index.d.mts
CHANGED
|
@@ -1,5 +1,6 @@
|
|
|
1
|
-
import {
|
|
2
|
-
import {
|
|
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
|
|
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
|
-
*
|
|
29
|
-
*
|
|
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
|
|
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 {
|
|
52
|
+
export { InMemorySemanticIndexCapacity, MemoryScheduleStoreLive, MemoryStorageLive, MemorySubmissionLedgerLive, MemorySubmissionLedgerOptions, MemoryThreadStoreLive, inMemorySemanticIndexLayer, memoryScheduleStoreLayer, memorySubmissionLedgerLayer, memorySubscriptionStoreLayer };
|
|
34
53
|
//# sourceMappingURL=index.d.mts.map
|