mengram-ai 2.15.0 → 2.15.1
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 +53 -12
- package/index.d.ts +5 -5
- package/package.json +2 -2
package/README.md
CHANGED
|
@@ -90,27 +90,68 @@ await m.importChatgpt('export.zip', {
|
|
|
90
90
|
|
|
91
91
|
| Method | Description |
|
|
92
92
|
|--------|-------------|
|
|
93
|
+
| **Core** | |
|
|
93
94
|
| `add(messages, options?)` | Add memories (extracts all 3 types) |
|
|
94
95
|
| `addText(text, options?)` | Add memories from plain text |
|
|
95
96
|
| `search(query, options?)` | Semantic search |
|
|
96
|
-
| `searchAll(query, options?)` |
|
|
97
|
-
| `episodes(options?)` | **Search/list episodic memories** |
|
|
98
|
-
| `procedures(options?)` | **Search/list procedural memories** |
|
|
99
|
-
| `procedureFeedback(id, options?)` | **Record success/failure (triggers evolution on failure)** |
|
|
100
|
-
| `procedureHistory(id)` | **Version history + evolution log** |
|
|
101
|
-
| `procedureEvolution(id)` | **Evolution log (what changed and why)** |
|
|
102
|
-
| `getProfile(userId?, options?)` | **Cognitive Profile** |
|
|
97
|
+
| `searchAll(query, options?)` | Unified search (all 3 types) |
|
|
103
98
|
| `getAll(options?)` | List all memories |
|
|
99
|
+
| `getAllFull(options?)` | List all memories with full details |
|
|
104
100
|
| `get(name)` | Get specific entity |
|
|
105
101
|
| `delete(name)` | Delete entity |
|
|
106
|
-
| `
|
|
107
|
-
|
|
|
108
|
-
| `
|
|
109
|
-
| `
|
|
110
|
-
| `
|
|
102
|
+
| `stats(options?)` | Usage statistics |
|
|
103
|
+
| **Memory Types** | |
|
|
104
|
+
| `episodes(options?)` | Search/list episodic memories |
|
|
105
|
+
| `procedures(options?)` | Search/list procedural memories |
|
|
106
|
+
| `procedureFeedback(id, options?)` | Record success/failure (triggers evolution) |
|
|
107
|
+
| `procedureHistory(id)` | Version history + evolution log |
|
|
108
|
+
| `procedureEvolution(id)` | Evolution log (what changed and why) |
|
|
109
|
+
| `getProfile(userId?, options?)` | Cognitive Profile |
|
|
110
|
+
| **Memory Management** | |
|
|
111
|
+
| `dedup(options?)` | Find and merge duplicate entities |
|
|
112
|
+
| `dedupAll(options?)` | Deduplicate facts across all entities |
|
|
113
|
+
| `dedupEntity(name, options?)` | Deduplicate facts on specific entity |
|
|
114
|
+
| `merge(source, target, options?)` | Merge two entities |
|
|
115
|
+
| `archiveFact(entity, fact, options?)` | Archive a specific fact |
|
|
116
|
+
| `reindex(options?)` | Re-embed all entities |
|
|
117
|
+
| `fixEntityType(name, type, options?)` | Fix entity type classification |
|
|
118
|
+
| **Search & Discovery** | |
|
|
119
|
+
| `graph(options?)` | Get knowledge graph (nodes + edges) |
|
|
120
|
+
| `timeline(options?)` | Search facts by time range |
|
|
121
|
+
| `feed(options?)` | Activity feed |
|
|
122
|
+
| **Agents & Insights** | |
|
|
123
|
+
| `runAgents(options?)` | Run memory agents (curator, connector, digest) |
|
|
124
|
+
| `agentHistory(options?)` | Agent run history |
|
|
125
|
+
| `agentStatus(options?)` | Check which agents are due |
|
|
126
|
+
| `insights(options?)` | AI reflections |
|
|
127
|
+
| `reflect(options?)` | Trigger memory reflection |
|
|
128
|
+
| **Triggers** | |
|
|
129
|
+
| `getTriggers(options?)` | List smart triggers |
|
|
130
|
+
| `detectTriggers(userId, options?)` | Detect triggers for a user |
|
|
131
|
+
| `processTriggers()` | Fire all pending triggers |
|
|
132
|
+
| `dismissTrigger(id)` | Dismiss a trigger |
|
|
133
|
+
| **Webhooks** | |
|
|
134
|
+
| `createWebhook(url, options?)` | Create a webhook |
|
|
135
|
+
| `listWebhooks()` | List all webhooks |
|
|
136
|
+
| `updateWebhook(id, options?)` | Update a webhook |
|
|
137
|
+
| `deleteWebhook(id)` | Delete a webhook |
|
|
138
|
+
| **Teams** | |
|
|
111
139
|
| `createTeam(name)` | Create shared team |
|
|
112
140
|
| `joinTeam(code)` | Join team |
|
|
141
|
+
| `listTeams()` | List your teams |
|
|
113
142
|
| `shareMemory(entity, teamId)` | Share with team |
|
|
143
|
+
| `unshareMemory(entity, teamId)` | Make memory personal again |
|
|
144
|
+
| `teamMembers(teamId)` | List team members |
|
|
145
|
+
| `leaveTeam(teamId)` | Leave a team |
|
|
146
|
+
| `deleteTeam(teamId)` | Delete a team (owner only) |
|
|
147
|
+
| **Import** | |
|
|
148
|
+
| `importChatgpt(zipPath, options?)` | Import ChatGPT export ZIP |
|
|
149
|
+
| `importObsidian(vaultPath, options?)` | Import Obsidian vault |
|
|
150
|
+
| `importFiles(paths, options?)` | Import text/markdown files |
|
|
151
|
+
| **Billing** | |
|
|
152
|
+
| `getBilling()` | Current plan and usage |
|
|
153
|
+
| `createCheckout(plan)` | Create checkout session |
|
|
154
|
+
| `createPortal()` | Manage subscription |
|
|
114
155
|
|
|
115
156
|
## Multi-User Isolation
|
|
116
157
|
|
package/index.d.ts
CHANGED
|
@@ -192,22 +192,22 @@ export declare class MengramClient {
|
|
|
192
192
|
stats(options?: { userId?: string }): Promise<Stats>;
|
|
193
193
|
graph(options?: { userId?: string }): Promise<{ nodes: any[]; edges: any[] }>;
|
|
194
194
|
getProfile(userId?: string, options?: { force?: boolean }): Promise<CognitiveProfile>;
|
|
195
|
-
timeline(options?: { after?: string; before?: string; limit?: number }): Promise<any[]>;
|
|
195
|
+
timeline(options?: { after?: string; before?: string; limit?: number; userId?: string }): Promise<any[]>;
|
|
196
196
|
|
|
197
197
|
// Episodic Memory
|
|
198
|
-
episodes(options?: { query?: string; limit?: number; after?: string; before?: string }): Promise<Episode[]>;
|
|
198
|
+
episodes(options?: { query?: string; limit?: number; after?: string; before?: string; userId?: string }): Promise<Episode[]>;
|
|
199
199
|
|
|
200
200
|
// Procedural Memory
|
|
201
|
-
procedures(options?: { query?: string; limit?: number }): Promise<Procedure[]>;
|
|
201
|
+
procedures(options?: { query?: string; limit?: number; userId?: string }): Promise<Procedure[]>;
|
|
202
202
|
procedureFeedback(procedureId: string, options?: { success?: boolean; context?: string; failedAtStep?: number }): Promise<FeedbackResult>;
|
|
203
203
|
procedureHistory(procedureId: string, options?: { userId?: string }): Promise<ProcedureHistoryResult>;
|
|
204
204
|
procedureEvolution(procedureId: string, options?: { userId?: string }): Promise<{ evolution: ProcedureEvolutionEntry[] }>;
|
|
205
205
|
|
|
206
206
|
// Unified Search
|
|
207
|
-
searchAll(query: string, options?: { limit?: number; graphDepth?: number }): Promise<UnifiedSearchResult>;
|
|
207
|
+
searchAll(query: string, options?: { limit?: number; graphDepth?: number; userId?: string }): Promise<UnifiedSearchResult>;
|
|
208
208
|
|
|
209
209
|
// Agents
|
|
210
|
-
runAgents(options?: { agent?: string; autoFix?: boolean }): Promise<any>;
|
|
210
|
+
runAgents(options?: { agent?: string; autoFix?: boolean; userId?: string }): Promise<any>;
|
|
211
211
|
agentHistory(options?: { agent?: string; limit?: number }): Promise<any[]>;
|
|
212
212
|
agentStatus(options?: { userId?: string }): Promise<any>;
|
|
213
213
|
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "mengram-ai",
|
|
3
|
-
"version": "2.15.
|
|
3
|
+
"version": "2.15.1",
|
|
4
4
|
"description": "Human-like memory for AI — semantic, episodic & procedural memory. Experience-driven procedures, Cognitive Profile, unified search, memory agents. Free Mem0 alternative.",
|
|
5
5
|
"main": "index.js",
|
|
6
6
|
"types": "index.d.ts",
|
|
@@ -10,7 +10,7 @@
|
|
|
10
10
|
"url": "https://github.com/alibaizhanov/mengram"
|
|
11
11
|
},
|
|
12
12
|
"homepage": "https://mengram.io",
|
|
13
|
-
"keywords": ["ai", "memory", "llm", "agents", "knowledge-graph", "mcp", "mengram"],
|
|
13
|
+
"keywords": ["ai", "memory", "llm", "agents", "knowledge-graph", "mcp", "mengram", "semantic-search", "episodic-memory", "procedural-memory", "cognitive-profile", "rag", "embeddings", "mem0-alternative", "webhooks", "second-brain"],
|
|
14
14
|
"author": "Ali Baizhanov",
|
|
15
15
|
"files": ["index.js", "index.d.ts", "README.md"]
|
|
16
16
|
}
|