@alineo-labs/postgres-memory 0.2.1 → 0.2.3
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 +3 -5
- package/package.json +4 -4
package/dist/index.d.mts
CHANGED
|
@@ -1,5 +1,4 @@
|
|
|
1
1
|
import { EmbeddingProvider, IBulkSemanticMemoryProvider, IPrunableSemanticMemoryProvider, IWorkingMemoryProvider, MemoryFact, RememberedFact, ResourceRef } from "@alineo-labs/memory";
|
|
2
|
-
|
|
3
2
|
//#region src/working.d.ts
|
|
4
3
|
/**
|
|
5
4
|
* Persisted, multi-process-safe `IWorkingMemoryProvider` backed by Postgres — the shared,
|
|
@@ -12,7 +11,7 @@ import { EmbeddingProvider, IBulkSemanticMemoryProvider, IPrunableSemanticMemory
|
|
|
12
11
|
* test environment, so this ships type-checked, not integration-tested against a real
|
|
13
12
|
* Postgres instance.
|
|
14
13
|
*/
|
|
15
|
-
declare class PostgresWorkingMemoryProvider implements IWorkingMemoryProvider {
|
|
14
|
+
export declare class PostgresWorkingMemoryProvider implements IWorkingMemoryProvider {
|
|
16
15
|
private readonly conn;
|
|
17
16
|
constructor(connectionString: string);
|
|
18
17
|
get(ref: ResourceRef, key: string): Promise<unknown | undefined>;
|
|
@@ -59,7 +58,7 @@ declare class PostgresWorkingMemoryProvider implements IWorkingMemoryProvider {
|
|
|
59
58
|
*
|
|
60
59
|
* Like `PostgresWorkingMemoryProvider`, this ships type-checked against no live database.
|
|
61
60
|
*/
|
|
62
|
-
declare class PostgresSemanticMemoryProvider implements IPrunableSemanticMemoryProvider, IBulkSemanticMemoryProvider {
|
|
61
|
+
export declare class PostgresSemanticMemoryProvider implements IPrunableSemanticMemoryProvider, IBulkSemanticMemoryProvider {
|
|
63
62
|
private readonly embeddings;
|
|
64
63
|
private readonly conn;
|
|
65
64
|
private vecDimensions;
|
|
@@ -88,5 +87,4 @@ declare class PostgresSemanticMemoryProvider implements IPrunableSemanticMemoryP
|
|
|
88
87
|
/** Release the underlying connection pool. */
|
|
89
88
|
close(): Promise<void>;
|
|
90
89
|
}
|
|
91
|
-
//#endregion
|
|
92
|
-
export { PostgresSemanticMemoryProvider, PostgresWorkingMemoryProvider };
|
|
90
|
+
//#endregion
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@alineo-labs/postgres-memory",
|
|
3
|
-
"version": "0.2.
|
|
3
|
+
"version": "0.2.3",
|
|
4
4
|
"license": "Apache-2.0",
|
|
5
5
|
"repository": {
|
|
6
6
|
"type": "git",
|
|
@@ -27,12 +27,12 @@
|
|
|
27
27
|
"build": "tsdown"
|
|
28
28
|
},
|
|
29
29
|
"dependencies": {
|
|
30
|
-
"@alineo-labs/memory": "0.2.
|
|
30
|
+
"@alineo-labs/memory": "0.2.3",
|
|
31
31
|
"postgres": "3.4.9"
|
|
32
32
|
},
|
|
33
33
|
"devDependencies": {
|
|
34
|
-
"bun-types": "1.
|
|
35
|
-
"tsdown": "0.
|
|
34
|
+
"bun-types": "1.4.2",
|
|
35
|
+
"tsdown": "0.23.0",
|
|
36
36
|
"typescript": "6.0.3"
|
|
37
37
|
}
|
|
38
38
|
}
|