@mzhub/cortex 0.1.0 → 0.1.2
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/README.md +0 -0
- package/dist/{BaseAdapter-WunbfD_n.d.ts → BaseAdapter-BcNZrPzG.d.ts} +1 -1
- package/dist/{BaseAdapter-Bjj4JG_S.d.mts → BaseAdapter-CH2Gg9xO.d.mts} +1 -1
- package/dist/BaseProvider-8dmLKPhr.d.mts +61 -0
- package/dist/BaseProvider-DgYEmkh_.d.ts +61 -0
- package/dist/adapters/index.d.mts +4 -4
- package/dist/adapters/index.d.ts +4 -4
- package/dist/adapters/index.js +9 -1
- package/dist/adapters/index.js.map +1 -1
- package/dist/adapters/index.mjs +9 -1
- package/dist/adapters/index.mjs.map +1 -1
- package/dist/{index-DnOyj7gs.d.ts → index-BHvGS1BY.d.mts} +14 -10
- package/dist/{index-C_w3EJQT.d.mts → index-CA79C0tz.d.ts} +14 -10
- package/dist/index.d.mts +16 -13
- package/dist/index.d.ts +16 -13
- package/dist/index.js +277 -135
- package/dist/index.js.map +1 -1
- package/dist/index.mjs +277 -135
- package/dist/index.mjs.map +1 -1
- package/dist/middleware/index.d.mts +4 -4
- package/dist/middleware/index.d.ts +4 -4
- package/dist/middleware/index.js +0 -0
- package/dist/middleware/index.js.map +1 -1
- package/dist/middleware/index.mjs +0 -0
- package/dist/middleware/index.mjs.map +1 -1
- package/dist/providers/index.d.mts +2 -2
- package/dist/providers/index.d.ts +2 -2
- package/dist/providers/index.js +72 -17
- package/dist/providers/index.js.map +1 -1
- package/dist/providers/index.mjs +72 -17
- package/dist/providers/index.mjs.map +1 -1
- package/dist/{types-DybcUhEZ.d.mts → types-DUn4u5hk.d.mts} +1 -1
- package/dist/{types-DybcUhEZ.d.ts → types-DUn4u5hk.d.ts} +1 -1
- package/logo.png +0 -0
- package/package.json +20 -19
- package/dist/BaseProvider-B8x1pJXP.d.mts +0 -34
- package/dist/BaseProvider-BIkJVjtg.d.ts +0 -34
|
@@ -251,4 +251,4 @@ interface MemoryOSEvents {
|
|
|
251
251
|
error: (error: Error) => void;
|
|
252
252
|
}
|
|
253
253
|
|
|
254
|
-
export type { ConversationExchange as C, ExtractionResult as E, FactFilter as F, HydrateOptions as H, MemoryFact as M, ProviderConfig as P, Session as S, CompletionOptions as a, CompletionResult as b, MemoryOSOptions as c, HydratedContext as d, ProviderName as e, MemoryOperation as f,
|
|
254
|
+
export type { ConversationExchange as C, ExtractionResult as E, FactFilter as F, HydrateOptions as H, MemoryFact as M, ProviderConfig as P, Session as S, CompletionOptions as a, CompletionResult as b, MemoryOSOptions as c, HydratedContext as d, ProviderName as e, MemoryOperation as f, MemoryOSEvents as g, Message as h };
|
|
@@ -251,4 +251,4 @@ interface MemoryOSEvents {
|
|
|
251
251
|
error: (error: Error) => void;
|
|
252
252
|
}
|
|
253
253
|
|
|
254
|
-
export type { ConversationExchange as C, ExtractionResult as E, FactFilter as F, HydrateOptions as H, MemoryFact as M, ProviderConfig as P, Session as S, CompletionOptions as a, CompletionResult as b, MemoryOSOptions as c, HydratedContext as d, ProviderName as e, MemoryOperation as f,
|
|
254
|
+
export type { ConversationExchange as C, ExtractionResult as E, FactFilter as F, HydrateOptions as H, MemoryFact as M, ProviderConfig as P, Session as S, CompletionOptions as a, CompletionResult as b, MemoryOSOptions as c, HydratedContext as d, ProviderName as e, MemoryOperation as f, MemoryOSEvents as g, Message as h };
|
package/logo.png
CHANGED
|
File without changes
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@mzhub/cortex",
|
|
3
|
-
"version": "0.1.
|
|
3
|
+
"version": "0.1.2",
|
|
4
4
|
"description": "Persistent memory for AI agents - A tiered memory system with fact extraction and conflict resolution",
|
|
5
5
|
"main": "dist/index.js",
|
|
6
6
|
"module": "dist/index.mjs",
|
|
@@ -39,7 +39,8 @@
|
|
|
39
39
|
"test:run": "vitest run",
|
|
40
40
|
"lint": "eslint src",
|
|
41
41
|
"typecheck": "tsc --noEmit",
|
|
42
|
-
"prepublishOnly": "npm run build"
|
|
42
|
+
"prepublishOnly": "npm run build",
|
|
43
|
+
"release": "npm version patch --no-git-tag-version && npm publish --access public"
|
|
43
44
|
},
|
|
44
45
|
"keywords": [
|
|
45
46
|
"ai",
|
|
@@ -62,35 +63,35 @@
|
|
|
62
63
|
"type": "git",
|
|
63
64
|
"url": "https://github.com/MZHub-Labs/cortex.git"
|
|
64
65
|
},
|
|
65
|
-
"homepage": "https://
|
|
66
|
+
"homepage": "https://cortexdb.vercel.app/",
|
|
66
67
|
"bugs": {
|
|
67
68
|
"url": "https://github.com/MZHub-Labs/cortex/issues"
|
|
68
69
|
},
|
|
69
70
|
"devDependencies": {
|
|
70
|
-
"@anthropic-ai/sdk": "^0.
|
|
71
|
-
"@cerebras/cerebras_cloud_sdk": "^1.
|
|
71
|
+
"@anthropic-ai/sdk": "^0.36.3",
|
|
72
|
+
"@cerebras/cerebras_cloud_sdk": "^1.11.0",
|
|
72
73
|
"@google/generative-ai": "^0.21.0",
|
|
73
|
-
"@types/node": "^22.
|
|
74
|
+
"@types/node": "^22.13.1",
|
|
74
75
|
"@types/uuid": "^10.0.0",
|
|
75
|
-
"groq-sdk": "^0.
|
|
76
|
-
"mongodb": "^6.
|
|
77
|
-
"openai": "^4.
|
|
78
|
-
"pg": "^8.
|
|
79
|
-
"tsup": "^8.
|
|
80
|
-
"typescript": "^5.
|
|
81
|
-
"vitest": "^
|
|
76
|
+
"groq-sdk": "^0.15.0",
|
|
77
|
+
"mongodb": "^6.13.0",
|
|
78
|
+
"openai": "^4.82.0",
|
|
79
|
+
"pg": "^8.13.1",
|
|
80
|
+
"tsup": "^8.3.6",
|
|
81
|
+
"typescript": "^5.7.3",
|
|
82
|
+
"vitest": "^3.0.5"
|
|
82
83
|
},
|
|
83
84
|
"dependencies": {
|
|
84
85
|
"uuid": "^11.0.3"
|
|
85
86
|
},
|
|
86
87
|
"peerDependencies": {
|
|
87
|
-
"@anthropic-ai/sdk": "^0.
|
|
88
|
-
"@cerebras/cerebras_cloud_sdk": "^1.
|
|
88
|
+
"@anthropic-ai/sdk": "^0.36.3",
|
|
89
|
+
"@cerebras/cerebras_cloud_sdk": "^1.11.0",
|
|
89
90
|
"@google/generative-ai": ">=0.21.0",
|
|
90
|
-
"groq-sdk": "^0.
|
|
91
|
-
"mongodb": "^6.
|
|
92
|
-
"openai": "^4.
|
|
93
|
-
"pg": "^8.
|
|
91
|
+
"groq-sdk": "^0.15.0",
|
|
92
|
+
"mongodb": "^6.13.0",
|
|
93
|
+
"openai": "^4.82.0",
|
|
94
|
+
"pg": "^8.13.1"
|
|
94
95
|
},
|
|
95
96
|
"peerDependenciesMeta": {
|
|
96
97
|
"openai": {
|
|
@@ -1,34 +0,0 @@
|
|
|
1
|
-
import { a as CompletionOptions, b as CompletionResult } from './types-DybcUhEZ.mjs';
|
|
2
|
-
|
|
3
|
-
/**
|
|
4
|
-
* Abstract base class for LLM providers.
|
|
5
|
-
* All provider implementations must extend this class.
|
|
6
|
-
*/
|
|
7
|
-
declare abstract class BaseProvider {
|
|
8
|
-
protected apiKey: string;
|
|
9
|
-
protected model: string;
|
|
10
|
-
protected baseUrl?: string;
|
|
11
|
-
constructor(config: {
|
|
12
|
-
apiKey: string;
|
|
13
|
-
model?: string;
|
|
14
|
-
baseUrl?: string;
|
|
15
|
-
});
|
|
16
|
-
/**
|
|
17
|
-
* Get the default model for this provider
|
|
18
|
-
*/
|
|
19
|
-
abstract getDefaultModel(): string;
|
|
20
|
-
/**
|
|
21
|
-
* Get the provider name
|
|
22
|
-
*/
|
|
23
|
-
abstract getName(): string;
|
|
24
|
-
/**
|
|
25
|
-
* Generate a completion from the LLM
|
|
26
|
-
*/
|
|
27
|
-
abstract complete(options: CompletionOptions): Promise<CompletionResult>;
|
|
28
|
-
/**
|
|
29
|
-
* Check if the provider SDK is available
|
|
30
|
-
*/
|
|
31
|
-
static isAvailable(): boolean;
|
|
32
|
-
}
|
|
33
|
-
|
|
34
|
-
export { BaseProvider as B };
|
|
@@ -1,34 +0,0 @@
|
|
|
1
|
-
import { a as CompletionOptions, b as CompletionResult } from './types-DybcUhEZ.js';
|
|
2
|
-
|
|
3
|
-
/**
|
|
4
|
-
* Abstract base class for LLM providers.
|
|
5
|
-
* All provider implementations must extend this class.
|
|
6
|
-
*/
|
|
7
|
-
declare abstract class BaseProvider {
|
|
8
|
-
protected apiKey: string;
|
|
9
|
-
protected model: string;
|
|
10
|
-
protected baseUrl?: string;
|
|
11
|
-
constructor(config: {
|
|
12
|
-
apiKey: string;
|
|
13
|
-
model?: string;
|
|
14
|
-
baseUrl?: string;
|
|
15
|
-
});
|
|
16
|
-
/**
|
|
17
|
-
* Get the default model for this provider
|
|
18
|
-
*/
|
|
19
|
-
abstract getDefaultModel(): string;
|
|
20
|
-
/**
|
|
21
|
-
* Get the provider name
|
|
22
|
-
*/
|
|
23
|
-
abstract getName(): string;
|
|
24
|
-
/**
|
|
25
|
-
* Generate a completion from the LLM
|
|
26
|
-
*/
|
|
27
|
-
abstract complete(options: CompletionOptions): Promise<CompletionResult>;
|
|
28
|
-
/**
|
|
29
|
-
* Check if the provider SDK is available
|
|
30
|
-
*/
|
|
31
|
-
static isAvailable(): boolean;
|
|
32
|
-
}
|
|
33
|
-
|
|
34
|
-
export { BaseProvider as B };
|