@cogitator-ai/memory 0.6.9 → 0.6.13
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/knowledge-graph/schema.d.ts +358 -698
- package/dist/knowledge-graph/schema.d.ts.map +1 -1
- package/dist/knowledge-graph/schema.js +7 -7
- package/dist/knowledge-graph/schema.js.map +1 -1
- package/dist/schema.d.ts +34 -136
- package/dist/schema.d.ts.map +1 -1
- package/package.json +22 -21
- package/LICENSE +0 -21
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"schema.d.ts","sourceRoot":"","sources":["../../src/knowledge-graph/schema.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAC;AAExB,eAAO,MAAM,gBAAgB,
|
|
1
|
+
{"version":3,"file":"schema.d.ts","sourceRoot":"","sources":["../../src/knowledge-graph/schema.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAC;AAExB,eAAO,MAAM,gBAAgB;;;;;;;;EAQ3B,CAAC;AAEH,eAAO,MAAM,kBAAkB;;;;;;;;;;;;EAY7B,CAAC;AAEH,eAAO,MAAM,gBAAgB;;;;EAA4C,CAAC;AAE1E,eAAO,MAAM,eAAe;;;;;;;;;;;;;;;;;;;;;;;;;;;;iBAgB1B,CAAC;AAEH,eAAO,MAAM,eAAe;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;iBAiB1B,CAAC;AAEH,eAAO,MAAM,qBAAqB;;;;;;;;;;;;;;;iBAOhC,CAAC;AAEH,eAAO,MAAM,uBAAuB;;;;;;;;;;;;;;;;;;;;;iBASlC,CAAC;AAEH,eAAO,MAAM,sBAAsB;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;iBAKjC,CAAC;AAEH,eAAO,MAAM,eAAe;;;;;;;;;;;;;;;iBAO1B,CAAC;AAEH,eAAO,MAAM,eAAe;;;;;;;;;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
|
|
32
|
-
properties: z.record(z.unknown()).default({}),
|
|
32
|
+
properties: z.record(z.string(), z.unknown()).default({}),
|
|
33
33
|
embedding: z.array(z.number()).optional(),
|
|
34
34
|
confidence: z.number().min(0).max(1),
|
|
35
35
|
source: NodeSourceSchema,
|
|
@@ -37,7 +37,7 @@ export const GraphNodeSchema = z.object({
|
|
|
37
37
|
updatedAt: z.date(),
|
|
38
38
|
lastAccessedAt: z.date(),
|
|
39
39
|
accessCount: z.number().int().min(0),
|
|
40
|
-
metadata: z.record(z.unknown()).optional(),
|
|
40
|
+
metadata: z.record(z.string(), z.unknown()).optional(),
|
|
41
41
|
});
|
|
42
42
|
export const GraphEdgeSchema = z.object({
|
|
43
43
|
id: z.string(),
|
|
@@ -48,21 +48,21 @@ export const GraphEdgeSchema = z.object({
|
|
|
48
48
|
label: z.string().optional(),
|
|
49
49
|
weight: z.number().min(0).max(1).default(1),
|
|
50
50
|
bidirectional: z.boolean().default(false),
|
|
51
|
-
properties: z.record(z.unknown()).default({}),
|
|
51
|
+
properties: z.record(z.string(), z.unknown()).default({}),
|
|
52
52
|
confidence: z.number().min(0).max(1),
|
|
53
53
|
source: NodeSourceSchema,
|
|
54
54
|
createdAt: z.date(),
|
|
55
55
|
updatedAt: z.date(),
|
|
56
56
|
validFrom: z.date().optional(),
|
|
57
57
|
validUntil: z.date().optional(),
|
|
58
|
-
metadata: z.record(z.unknown()).optional(),
|
|
58
|
+
metadata: z.record(z.string(), z.unknown()).optional(),
|
|
59
59
|
});
|
|
60
60
|
export const ExtractedEntitySchema = z.object({
|
|
61
61
|
name: z.string().min(1),
|
|
62
62
|
type: EntityTypeSchema,
|
|
63
63
|
aliases: z.array(z.string()).optional(),
|
|
64
64
|
description: z.string().optional(),
|
|
65
|
-
properties: z.record(z.unknown()).optional(),
|
|
65
|
+
properties: z.record(z.string(), z.unknown()).optional(),
|
|
66
66
|
confidence: z.number().min(0).max(1),
|
|
67
67
|
});
|
|
68
68
|
export const ExtractedRelationSchema = z.object({
|
|
@@ -72,7 +72,7 @@ export const ExtractedRelationSchema = z.object({
|
|
|
72
72
|
label: z.string().optional(),
|
|
73
73
|
weight: z.number().min(0).max(1).optional(),
|
|
74
74
|
bidirectional: z.boolean().optional(),
|
|
75
|
-
properties: z.record(z.unknown()).optional(),
|
|
75
|
+
properties: z.record(z.string(), z.unknown()).optional(),
|
|
76
76
|
confidence: z.number().min(0).max(1),
|
|
77
77
|
});
|
|
78
78
|
export const ExtractionResultSchema = z.object({
|
|
@@ -122,7 +122,7 @@ export const InferencePatternSchema = z.object({
|
|
|
122
122
|
edgeTypes: z.array(RelationTypeSchema).min(1),
|
|
123
123
|
minPathLength: z.number().int().min(2),
|
|
124
124
|
maxPathLength: z.number().int().min(2),
|
|
125
|
-
nodeTypeConstraints: z.record(z.array(EntityTypeSchema)).optional(),
|
|
125
|
+
nodeTypeConstraints: z.record(z.string(), z.array(EntityTypeSchema)).optional(),
|
|
126
126
|
});
|
|
127
127
|
export const InferenceConclusionSchema = z.object({
|
|
128
128
|
edgeType: RelationTypeSchema,
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"schema.js","sourceRoot":"","sources":["../../src/knowledge-graph/schema.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAC;AAExB,MAAM,CAAC,MAAM,gBAAgB,GAAG,CAAC,CAAC,IAAI,CAAC;IACrC,QAAQ;IACR,cAAc;IACd,UAAU;IACV,SAAS;IACT,OAAO;IACP,QAAQ;IACR,QAAQ;CACT,CAAC,CAAC;AAEH,MAAM,CAAC,MAAM,kBAAkB,GAAG,CAAC,CAAC,IAAI,CAAC;IACvC,OAAO;IACP,UAAU;IACV,YAAY;IACZ,SAAS;IACT,YAAY;IACZ,YAAY;IACZ,YAAY;IACZ,iBAAiB;IACjB,QAAQ;IACR,UAAU;IACV,QAAQ;CACT,CAAC,CAAC;AAEH,MAAM,CAAC,MAAM,gBAAgB,GAAG,CAAC,CAAC,IA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,MAAM,CAAC,MAAM,iCAAiC,GAAG,CAAC,CAAC,MAAM,CAAC;IACxD,QAAQ,EAAE,CAAC,CAAC,MAAM,EAAE,CAAC,GAAG,EAAE,CAAC,QAAQ,EAAE,CAAC,QAAQ,EAAE;IAChD,QAAQ,EAAE,CAAC,CAAC,MAAM,EAAE,CAAC,GAAG,EAAE,CAAC,QAAQ,EAAE,CAAC,QAAQ,EAAE;IAChD,QAAQ,EAAE,CAAC,CAAC,MAAM,EAAE,CAAC,GAAG,EAAE,CAAC,GAAG,CAAC,CAAC,CAAC,CAAC,GAAG,CAAC,EAAE,CAAC,CAAC,QAAQ,EAAE;IACpD,eAAe,EAAE,CAAC,CAAC,OAAO,EAAE,CAAC,QAAQ,EAAE;CACxC,CAAC,CAAC;AAEH,MAAM,CAAC,MAAM,0BAA0B,GAAG,CAAC,CAAC,MAAM,CAAC;IACjD,UAAU,EAAE,oCAAoC,CAAC,QAAQ,EAAE;IAC3D,SAAS,EAAE,mCAAmC,CAAC,QAAQ,EAAE;IACzD,OAAO,EAAE,iCAAiC,CAAC,QAAQ,EAAE;CACtD,CAAC,CAAC"}
|
package/dist/schema.d.ts
CHANGED
|
@@ -2,193 +2,91 @@
|
|
|
2
2
|
* Zod schemas for memory configuration validation
|
|
3
3
|
*/
|
|
4
4
|
import { z } from 'zod';
|
|
5
|
-
export declare const MemoryProviderSchema: z.ZodEnum<
|
|
5
|
+
export declare const MemoryProviderSchema: z.ZodEnum<{
|
|
6
|
+
memory: "memory";
|
|
7
|
+
redis: "redis";
|
|
8
|
+
postgres: "postgres";
|
|
9
|
+
}>;
|
|
6
10
|
export declare const InMemoryConfigSchema: z.ZodObject<{
|
|
7
11
|
provider: z.ZodLiteral<"memory">;
|
|
8
12
|
maxEntries: z.ZodOptional<z.ZodNumber>;
|
|
9
|
-
},
|
|
10
|
-
provider: "memory";
|
|
11
|
-
maxEntries?: number | undefined;
|
|
12
|
-
}, {
|
|
13
|
-
provider: "memory";
|
|
14
|
-
maxEntries?: number | undefined;
|
|
15
|
-
}>;
|
|
13
|
+
}, z.core.$strip>;
|
|
16
14
|
export declare const RedisConfigSchema: z.ZodObject<{
|
|
17
15
|
provider: z.ZodLiteral<"redis">;
|
|
18
16
|
url: z.ZodString;
|
|
19
17
|
keyPrefix: z.ZodOptional<z.ZodString>;
|
|
20
18
|
ttl: z.ZodOptional<z.ZodNumber>;
|
|
21
|
-
},
|
|
22
|
-
url: string;
|
|
23
|
-
provider: "redis";
|
|
24
|
-
keyPrefix?: string | undefined;
|
|
25
|
-
ttl?: number | undefined;
|
|
26
|
-
}, {
|
|
27
|
-
url: string;
|
|
28
|
-
provider: "redis";
|
|
29
|
-
keyPrefix?: string | undefined;
|
|
30
|
-
ttl?: number | undefined;
|
|
31
|
-
}>;
|
|
19
|
+
}, z.core.$strip>;
|
|
32
20
|
export declare const PostgresConfigSchema: z.ZodObject<{
|
|
33
21
|
provider: z.ZodLiteral<"postgres">;
|
|
34
22
|
connectionString: z.ZodString;
|
|
35
23
|
schema: z.ZodOptional<z.ZodString>;
|
|
36
24
|
poolSize: z.ZodOptional<z.ZodNumber>;
|
|
37
|
-
},
|
|
38
|
-
|
|
39
|
-
connectionString: string;
|
|
40
|
-
schema?: string | undefined;
|
|
41
|
-
poolSize?: number | undefined;
|
|
42
|
-
}, {
|
|
43
|
-
provider: "postgres";
|
|
44
|
-
connectionString: string;
|
|
45
|
-
schema?: string | undefined;
|
|
46
|
-
poolSize?: number | undefined;
|
|
47
|
-
}>;
|
|
48
|
-
export declare const MemoryAdapterConfigSchema: z.ZodDiscriminatedUnion<"provider", [z.ZodObject<{
|
|
25
|
+
}, z.core.$strip>;
|
|
26
|
+
export declare const MemoryAdapterConfigSchema: z.ZodDiscriminatedUnion<[z.ZodObject<{
|
|
49
27
|
provider: z.ZodLiteral<"memory">;
|
|
50
28
|
maxEntries: z.ZodOptional<z.ZodNumber>;
|
|
51
|
-
},
|
|
52
|
-
provider: "memory";
|
|
53
|
-
maxEntries?: number | undefined;
|
|
54
|
-
}, {
|
|
55
|
-
provider: "memory";
|
|
56
|
-
maxEntries?: number | undefined;
|
|
57
|
-
}>, z.ZodObject<{
|
|
29
|
+
}, z.core.$strip>, z.ZodObject<{
|
|
58
30
|
provider: z.ZodLiteral<"redis">;
|
|
59
31
|
url: z.ZodString;
|
|
60
32
|
keyPrefix: z.ZodOptional<z.ZodString>;
|
|
61
33
|
ttl: z.ZodOptional<z.ZodNumber>;
|
|
62
|
-
},
|
|
63
|
-
url: string;
|
|
64
|
-
provider: "redis";
|
|
65
|
-
keyPrefix?: string | undefined;
|
|
66
|
-
ttl?: number | undefined;
|
|
67
|
-
}, {
|
|
68
|
-
url: string;
|
|
69
|
-
provider: "redis";
|
|
70
|
-
keyPrefix?: string | undefined;
|
|
71
|
-
ttl?: number | undefined;
|
|
72
|
-
}>, z.ZodObject<{
|
|
34
|
+
}, z.core.$strip>, z.ZodObject<{
|
|
73
35
|
provider: z.ZodLiteral<"postgres">;
|
|
74
36
|
connectionString: z.ZodString;
|
|
75
37
|
schema: z.ZodOptional<z.ZodString>;
|
|
76
38
|
poolSize: z.ZodOptional<z.ZodNumber>;
|
|
77
|
-
},
|
|
78
|
-
|
|
79
|
-
|
|
80
|
-
|
|
81
|
-
|
|
82
|
-
}
|
|
83
|
-
provider: "postgres";
|
|
84
|
-
connectionString: string;
|
|
85
|
-
schema?: string | undefined;
|
|
86
|
-
poolSize?: number | undefined;
|
|
87
|
-
}>]>;
|
|
88
|
-
export declare const ContextStrategySchema: z.ZodEnum<["recent", "relevant", "hybrid"]>;
|
|
39
|
+
}, z.core.$strip>], "provider">;
|
|
40
|
+
export declare const ContextStrategySchema: z.ZodEnum<{
|
|
41
|
+
recent: "recent";
|
|
42
|
+
relevant: "relevant";
|
|
43
|
+
hybrid: "hybrid";
|
|
44
|
+
}>;
|
|
89
45
|
export declare const ContextBuilderConfigSchema: z.ZodObject<{
|
|
90
46
|
maxTokens: z.ZodNumber;
|
|
91
47
|
reserveTokens: z.ZodOptional<z.ZodNumber>;
|
|
92
|
-
strategy: z.ZodEnum<
|
|
48
|
+
strategy: z.ZodEnum<{
|
|
49
|
+
recent: "recent";
|
|
50
|
+
relevant: "relevant";
|
|
51
|
+
hybrid: "hybrid";
|
|
52
|
+
}>;
|
|
93
53
|
includeSystemPrompt: z.ZodOptional<z.ZodBoolean>;
|
|
94
54
|
includeFacts: z.ZodOptional<z.ZodBoolean>;
|
|
95
55
|
includeSemanticContext: z.ZodOptional<z.ZodBoolean>;
|
|
96
|
-
},
|
|
97
|
-
|
|
98
|
-
|
|
99
|
-
|
|
100
|
-
|
|
101
|
-
includeFacts?: boolean | undefined;
|
|
102
|
-
includeSemanticContext?: boolean | undefined;
|
|
103
|
-
}, {
|
|
104
|
-
maxTokens: number;
|
|
105
|
-
strategy: "recent" | "relevant" | "hybrid";
|
|
106
|
-
reserveTokens?: number | undefined;
|
|
107
|
-
includeSystemPrompt?: boolean | undefined;
|
|
108
|
-
includeFacts?: boolean | undefined;
|
|
109
|
-
includeSemanticContext?: boolean | undefined;
|
|
56
|
+
}, z.core.$strip>;
|
|
57
|
+
export declare const EmbeddingProviderSchema: z.ZodEnum<{
|
|
58
|
+
openai: "openai";
|
|
59
|
+
ollama: "ollama";
|
|
60
|
+
google: "google";
|
|
110
61
|
}>;
|
|
111
|
-
export declare const EmbeddingProviderSchema: z.ZodEnum<["openai", "ollama", "google"]>;
|
|
112
62
|
export declare const OpenAIEmbeddingConfigSchema: z.ZodObject<{
|
|
113
63
|
provider: z.ZodLiteral<"openai">;
|
|
114
64
|
apiKey: z.ZodString;
|
|
115
65
|
model: z.ZodOptional<z.ZodString>;
|
|
116
66
|
baseUrl: z.ZodOptional<z.ZodString>;
|
|
117
|
-
},
|
|
118
|
-
provider: "openai";
|
|
119
|
-
apiKey: string;
|
|
120
|
-
model?: string | undefined;
|
|
121
|
-
baseUrl?: string | undefined;
|
|
122
|
-
}, {
|
|
123
|
-
provider: "openai";
|
|
124
|
-
apiKey: string;
|
|
125
|
-
model?: string | undefined;
|
|
126
|
-
baseUrl?: string | undefined;
|
|
127
|
-
}>;
|
|
67
|
+
}, z.core.$strip>;
|
|
128
68
|
export declare const OllamaEmbeddingConfigSchema: z.ZodObject<{
|
|
129
69
|
provider: z.ZodLiteral<"ollama">;
|
|
130
70
|
model: z.ZodOptional<z.ZodString>;
|
|
131
71
|
baseUrl: z.ZodOptional<z.ZodString>;
|
|
132
|
-
},
|
|
133
|
-
provider: "ollama";
|
|
134
|
-
model?: string | undefined;
|
|
135
|
-
baseUrl?: string | undefined;
|
|
136
|
-
}, {
|
|
137
|
-
provider: "ollama";
|
|
138
|
-
model?: string | undefined;
|
|
139
|
-
baseUrl?: string | undefined;
|
|
140
|
-
}>;
|
|
72
|
+
}, z.core.$strip>;
|
|
141
73
|
export declare const GoogleEmbeddingConfigSchema: z.ZodObject<{
|
|
142
74
|
provider: z.ZodLiteral<"google">;
|
|
143
75
|
apiKey: z.ZodString;
|
|
144
76
|
model: z.ZodOptional<z.ZodString>;
|
|
145
|
-
},
|
|
146
|
-
|
|
147
|
-
apiKey: string;
|
|
148
|
-
model?: string | undefined;
|
|
149
|
-
}, {
|
|
150
|
-
provider: "google";
|
|
151
|
-
apiKey: string;
|
|
152
|
-
model?: string | undefined;
|
|
153
|
-
}>;
|
|
154
|
-
export declare const EmbeddingServiceConfigSchema: z.ZodDiscriminatedUnion<"provider", [z.ZodObject<{
|
|
77
|
+
}, z.core.$strip>;
|
|
78
|
+
export declare const EmbeddingServiceConfigSchema: z.ZodDiscriminatedUnion<[z.ZodObject<{
|
|
155
79
|
provider: z.ZodLiteral<"openai">;
|
|
156
80
|
apiKey: z.ZodString;
|
|
157
81
|
model: z.ZodOptional<z.ZodString>;
|
|
158
82
|
baseUrl: z.ZodOptional<z.ZodString>;
|
|
159
|
-
},
|
|
160
|
-
provider: "openai";
|
|
161
|
-
apiKey: string;
|
|
162
|
-
model?: string | undefined;
|
|
163
|
-
baseUrl?: string | undefined;
|
|
164
|
-
}, {
|
|
165
|
-
provider: "openai";
|
|
166
|
-
apiKey: string;
|
|
167
|
-
model?: string | undefined;
|
|
168
|
-
baseUrl?: string | undefined;
|
|
169
|
-
}>, z.ZodObject<{
|
|
83
|
+
}, z.core.$strip>, z.ZodObject<{
|
|
170
84
|
provider: z.ZodLiteral<"ollama">;
|
|
171
85
|
model: z.ZodOptional<z.ZodString>;
|
|
172
86
|
baseUrl: z.ZodOptional<z.ZodString>;
|
|
173
|
-
},
|
|
174
|
-
provider: "ollama";
|
|
175
|
-
model?: string | undefined;
|
|
176
|
-
baseUrl?: string | undefined;
|
|
177
|
-
}, {
|
|
178
|
-
provider: "ollama";
|
|
179
|
-
model?: string | undefined;
|
|
180
|
-
baseUrl?: string | undefined;
|
|
181
|
-
}>, z.ZodObject<{
|
|
87
|
+
}, z.core.$strip>, z.ZodObject<{
|
|
182
88
|
provider: z.ZodLiteral<"google">;
|
|
183
89
|
apiKey: z.ZodString;
|
|
184
90
|
model: z.ZodOptional<z.ZodString>;
|
|
185
|
-
},
|
|
186
|
-
provider: "google";
|
|
187
|
-
apiKey: string;
|
|
188
|
-
model?: string | undefined;
|
|
189
|
-
}, {
|
|
190
|
-
provider: "google";
|
|
191
|
-
apiKey: string;
|
|
192
|
-
model?: string | undefined;
|
|
193
|
-
}>]>;
|
|
91
|
+
}, z.core.$strip>], "provider">;
|
|
194
92
|
//# sourceMappingURL=schema.d.ts.map
|
package/dist/schema.d.ts.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"schema.d.ts","sourceRoot":"","sources":["../src/schema.ts"],"names":[],"mappings":"AAAA;;GAEG;AAEH,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAC;AAExB,eAAO,MAAM,oBAAoB,
|
|
1
|
+
{"version":3,"file":"schema.d.ts","sourceRoot":"","sources":["../src/schema.ts"],"names":[],"mappings":"AAAA;;GAEG;AAEH,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAC;AAExB,eAAO,MAAM,oBAAoB;;;;EAA0C,CAAC;AAE5E,eAAO,MAAM,oBAAoB;;;iBAG/B,CAAC;AAEH,eAAO,MAAM,iBAAiB;;;;;iBAK5B,CAAC;AAEH,eAAO,MAAM,oBAAoB;;;;;iBAK/B,CAAC;AAEH,eAAO,MAAM,yBAAyB;;;;;;;;;;;;;+BAIpC,CAAC;AAEH,eAAO,MAAM,qBAAqB;;;;EAA2C,CAAC;AAE9E,eAAO,MAAM,0BAA0B;;;;;;;;;;;iBAOrC,CAAC;AAEH,eAAO,MAAM,uBAAuB;;;;EAAyC,CAAC;AAE9E,eAAO,MAAM,2BAA2B;;;;;iBAKtC,CAAC;AAEH,eAAO,MAAM,2BAA2B;;;;iBAItC,CAAC;AAEH,eAAO,MAAM,2BAA2B;;;;iBAItC,CAAC;AAEH,eAAO,MAAM,4BAA4B;;;;;;;;;;;;;+BAIvC,CAAC"}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@cogitator-ai/memory",
|
|
3
|
-
"version": "0.6.
|
|
3
|
+
"version": "0.6.13",
|
|
4
4
|
"description": "Memory adapters for Cogitator AI agents",
|
|
5
5
|
"type": "module",
|
|
6
6
|
"main": "./dist/index.js",
|
|
@@ -14,22 +14,30 @@
|
|
|
14
14
|
"files": [
|
|
15
15
|
"dist"
|
|
16
16
|
],
|
|
17
|
+
"scripts": {
|
|
18
|
+
"build": "tsc",
|
|
19
|
+
"dev": "tsc --watch",
|
|
20
|
+
"clean": "rm -rf dist",
|
|
21
|
+
"typecheck": "tsc --noEmit",
|
|
22
|
+
"test": "vitest run",
|
|
23
|
+
"test:watch": "vitest"
|
|
24
|
+
},
|
|
17
25
|
"dependencies": {
|
|
18
|
-
"@
|
|
26
|
+
"@cogitator-ai/redis": "workspace:*",
|
|
27
|
+
"@cogitator-ai/types": "workspace:*",
|
|
28
|
+
"@types/node": "^25.0.10",
|
|
19
29
|
"@types/pg": "^8.10.9",
|
|
20
30
|
"nanoid": "^5.0.4",
|
|
21
|
-
"zod": "^3.
|
|
22
|
-
"@cogitator-ai/redis": "0.2.18",
|
|
23
|
-
"@cogitator-ai/types": "0.19.0"
|
|
31
|
+
"zod": "^4.3.6"
|
|
24
32
|
},
|
|
25
33
|
"optionalDependencies": {
|
|
26
|
-
"ioredis": "^5.3
|
|
27
|
-
"openai": "^
|
|
28
|
-
"pg": "^8.
|
|
34
|
+
"ioredis": "^5.9.3",
|
|
35
|
+
"openai": "^6.22.0",
|
|
36
|
+
"pg": "^8.18.0"
|
|
29
37
|
},
|
|
30
38
|
"devDependencies": {
|
|
31
39
|
"typescript": "^5.3.0",
|
|
32
|
-
"vitest": "^
|
|
40
|
+
"vitest": "^4.0.18"
|
|
33
41
|
},
|
|
34
42
|
"peerDependencies": {
|
|
35
43
|
"ioredis": "^5.0.0",
|
|
@@ -45,19 +53,12 @@
|
|
|
45
53
|
},
|
|
46
54
|
"repository": {
|
|
47
55
|
"type": "git",
|
|
48
|
-
"url": "https://github.com/
|
|
56
|
+
"url": "https://github.com/cogitator-ai/Cogitator-AI.git",
|
|
49
57
|
"directory": "packages/memory"
|
|
50
58
|
},
|
|
51
59
|
"publishConfig": {
|
|
52
|
-
"access": "public"
|
|
60
|
+
"access": "public",
|
|
61
|
+
"registry": "https://npm.pkg.github.com"
|
|
53
62
|
},
|
|
54
|
-
"license": "MIT"
|
|
55
|
-
|
|
56
|
-
"build": "tsc",
|
|
57
|
-
"dev": "tsc --watch",
|
|
58
|
-
"clean": "rm -rf dist",
|
|
59
|
-
"typecheck": "tsc --noEmit",
|
|
60
|
-
"test": "vitest run",
|
|
61
|
-
"test:watch": "vitest"
|
|
62
|
-
}
|
|
63
|
-
}
|
|
63
|
+
"license": "MIT"
|
|
64
|
+
}
|
package/LICENSE
DELETED
|
@@ -1,21 +0,0 @@
|
|
|
1
|
-
MIT License
|
|
2
|
-
|
|
3
|
-
Copyright (c) 2025 Cogitator Contributors
|
|
4
|
-
|
|
5
|
-
Permission is hereby granted, free of charge, to any person obtaining a copy
|
|
6
|
-
of this software and associated documentation files (the "Software"), to deal
|
|
7
|
-
in the Software without restriction, including without limitation the rights
|
|
8
|
-
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
|
|
9
|
-
copies of the Software, and to permit persons to whom the Software is
|
|
10
|
-
furnished to do so, subject to the following conditions:
|
|
11
|
-
|
|
12
|
-
The above copyright notice and this permission notice shall be included in all
|
|
13
|
-
copies or substantial portions of the Software.
|
|
14
|
-
|
|
15
|
-
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
|
|
16
|
-
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
|
|
17
|
-
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
|
|
18
|
-
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
|
|
19
|
-
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
|
|
20
|
-
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
|
|
21
|
-
SOFTWARE.
|