praisonai 1.2.2 → 1.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/agent/simple.js +1 -1
- package/dist/cli/commands/auto.d.ts +12 -0
- package/dist/cli/commands/auto.js +109 -0
- package/dist/cli/commands/autonomy.d.ts +5 -0
- package/dist/cli/commands/autonomy.js +152 -0
- package/dist/cli/commands/cache.d.ts +9 -0
- package/dist/cli/commands/cache.js +143 -0
- package/dist/cli/commands/chat.d.ts +14 -0
- package/dist/cli/commands/chat.js +127 -0
- package/dist/cli/commands/checkpoints.d.ts +5 -0
- package/dist/cli/commands/checkpoints.js +236 -0
- package/dist/cli/commands/context.d.ts +11 -0
- package/dist/cli/commands/context.js +182 -0
- package/dist/cli/commands/cost.d.ts +5 -0
- package/dist/cli/commands/cost.js +146 -0
- package/dist/cli/commands/db.d.ts +9 -0
- package/dist/cli/commands/db.js +149 -0
- package/dist/cli/commands/eval.d.ts +17 -0
- package/dist/cli/commands/eval.js +247 -0
- package/dist/cli/commands/external-agents.d.ts +5 -0
- package/dist/cli/commands/external-agents.js +169 -0
- package/dist/cli/commands/fast-context.d.ts +5 -0
- package/dist/cli/commands/fast-context.js +126 -0
- package/dist/cli/commands/flow.d.ts +5 -0
- package/dist/cli/commands/flow.js +141 -0
- package/dist/cli/commands/git.d.ts +5 -0
- package/dist/cli/commands/git.js +178 -0
- package/dist/cli/commands/graph-rag.d.ts +9 -0
- package/dist/cli/commands/graph-rag.js +131 -0
- package/dist/cli/commands/guardrail.d.ts +11 -0
- package/dist/cli/commands/guardrail.js +156 -0
- package/dist/cli/commands/handoff.d.ts +9 -0
- package/dist/cli/commands/handoff.js +133 -0
- package/dist/cli/commands/help.d.ts +8 -0
- package/dist/cli/commands/help.js +167 -0
- package/dist/cli/commands/image.d.ts +13 -0
- package/dist/cli/commands/image.js +192 -0
- package/dist/cli/commands/interactive.d.ts +6 -0
- package/dist/cli/commands/interactive.js +79 -0
- package/dist/cli/commands/jobs.d.ts +5 -0
- package/dist/cli/commands/jobs.js +282 -0
- package/dist/cli/commands/knowledge.d.ts +9 -0
- package/dist/cli/commands/knowledge.js +226 -0
- package/dist/cli/commands/mcp.d.ts +9 -0
- package/dist/cli/commands/mcp.js +243 -0
- package/dist/cli/commands/memory.d.ts +10 -0
- package/dist/cli/commands/memory.js +198 -0
- package/dist/cli/commands/n8n.d.ts +5 -0
- package/dist/cli/commands/n8n.js +137 -0
- package/dist/cli/commands/observability.d.ts +9 -0
- package/dist/cli/commands/observability.js +145 -0
- package/dist/cli/commands/planning.d.ts +9 -0
- package/dist/cli/commands/planning.js +167 -0
- package/dist/cli/commands/prompt-expand.d.ts +11 -0
- package/dist/cli/commands/prompt-expand.js +100 -0
- package/dist/cli/commands/providers.d.ts +9 -0
- package/dist/cli/commands/providers.js +98 -0
- package/dist/cli/commands/query-rewrite.d.ts +12 -0
- package/dist/cli/commands/query-rewrite.js +102 -0
- package/dist/cli/commands/repo-map.d.ts +5 -0
- package/dist/cli/commands/repo-map.js +151 -0
- package/dist/cli/commands/reranker.d.ts +10 -0
- package/dist/cli/commands/reranker.js +144 -0
- package/dist/cli/commands/research.d.ts +12 -0
- package/dist/cli/commands/research.js +108 -0
- package/dist/cli/commands/router.d.ts +11 -0
- package/dist/cli/commands/router.js +142 -0
- package/dist/cli/commands/run.d.ts +14 -0
- package/dist/cli/commands/run.js +111 -0
- package/dist/cli/commands/sandbox.d.ts +5 -0
- package/dist/cli/commands/sandbox.js +135 -0
- package/dist/cli/commands/scheduler.d.ts +5 -0
- package/dist/cli/commands/scheduler.js +260 -0
- package/dist/cli/commands/session.d.ts +9 -0
- package/dist/cli/commands/session.js +238 -0
- package/dist/cli/commands/skills.d.ts +9 -0
- package/dist/cli/commands/skills.js +256 -0
- package/dist/cli/commands/telemetry.d.ts +9 -0
- package/dist/cli/commands/telemetry.js +146 -0
- package/dist/cli/commands/tools.d.ts +9 -0
- package/dist/cli/commands/tools.js +172 -0
- package/dist/cli/commands/vector.d.ts +10 -0
- package/dist/cli/commands/vector.js +171 -0
- package/dist/cli/commands/version.d.ts +8 -0
- package/dist/cli/commands/version.js +68 -0
- package/dist/cli/commands/voice.d.ts +10 -0
- package/dist/cli/commands/voice.js +162 -0
- package/dist/cli/commands/workflow.d.ts +13 -0
- package/dist/cli/commands/workflow.js +184 -0
- package/dist/cli/config/index.d.ts +6 -0
- package/dist/cli/config/index.js +22 -0
- package/dist/cli/config/load.d.ts +20 -0
- package/dist/cli/config/load.js +229 -0
- package/dist/cli/config/resolve.d.ts +28 -0
- package/dist/cli/config/resolve.js +70 -0
- package/dist/cli/config/schema.d.ts +15 -0
- package/dist/cli/config/schema.js +65 -0
- package/dist/cli/features/autonomy-mode.d.ts +98 -0
- package/dist/cli/features/autonomy-mode.js +266 -0
- package/dist/cli/features/background-jobs.d.ts +155 -0
- package/dist/cli/features/background-jobs.js +416 -0
- package/dist/cli/features/checkpoints.d.ts +126 -0
- package/dist/cli/features/checkpoints.js +288 -0
- package/dist/cli/features/cost-tracker.d.ts +101 -0
- package/dist/cli/features/cost-tracker.js +212 -0
- package/dist/cli/features/external-agents.d.ts +115 -0
- package/dist/cli/features/external-agents.js +294 -0
- package/dist/cli/features/fast-context.d.ts +126 -0
- package/dist/cli/features/fast-context.js +310 -0
- package/dist/cli/features/flow-display.d.ts +100 -0
- package/dist/cli/features/flow-display.js +254 -0
- package/dist/cli/features/git-integration.d.ts +138 -0
- package/dist/cli/features/git-integration.js +374 -0
- package/dist/cli/features/index.d.ts +17 -0
- package/dist/cli/features/index.js +102 -0
- package/dist/cli/features/interactive-tui.d.ts +114 -0
- package/dist/cli/features/interactive-tui.js +326 -0
- package/dist/cli/features/n8n-integration.d.ts +108 -0
- package/dist/cli/features/n8n-integration.js +296 -0
- package/dist/cli/features/repo-map.d.ts +101 -0
- package/dist/cli/features/repo-map.js +350 -0
- package/dist/cli/features/sandbox-executor.d.ts +89 -0
- package/dist/cli/features/sandbox-executor.js +314 -0
- package/dist/cli/features/scheduler.d.ts +111 -0
- package/dist/cli/features/scheduler.js +298 -0
- package/dist/cli/features/slash-commands.d.ts +77 -0
- package/dist/cli/features/slash-commands.js +316 -0
- package/dist/cli/index.d.ts +19 -15
- package/dist/cli/index.js +163 -123
- package/dist/cli/output/errors.d.ts +32 -0
- package/dist/cli/output/errors.js +72 -0
- package/dist/cli/output/index.d.ts +6 -0
- package/dist/cli/output/index.js +22 -0
- package/dist/cli/output/json.d.ts +17 -0
- package/dist/cli/output/json.js +54 -0
- package/dist/cli/output/pretty.d.ts +21 -0
- package/dist/cli/output/pretty.js +106 -0
- package/dist/cli/runtime/env.d.ts +12 -0
- package/dist/cli/runtime/env.js +49 -0
- package/dist/cli/runtime/exit.d.ts +11 -0
- package/dist/cli/runtime/exit.js +49 -0
- package/dist/cli/runtime/index.d.ts +6 -0
- package/dist/cli/runtime/index.js +22 -0
- package/dist/cli/runtime/lazy.d.ts +18 -0
- package/dist/cli/runtime/lazy.js +85 -0
- package/dist/cli/spec/cli-spec.d.ts +87 -0
- package/dist/cli/spec/cli-spec.js +478 -0
- package/dist/cli/spec/index.d.ts +4 -0
- package/dist/cli/spec/index.js +20 -0
- package/dist/index.d.ts +4 -1
- package/dist/index.js +100 -7
- package/dist/memory/auto-memory.d.ts +136 -0
- package/dist/memory/auto-memory.js +301 -0
- package/dist/memory/file-memory.d.ts +88 -0
- package/dist/memory/file-memory.js +287 -0
- package/dist/memory/index.d.ts +2 -0
- package/dist/memory/index.js +11 -1
- package/dist/workflows/loop.d.ts +0 -0
- package/dist/workflows/loop.js +1 -0
- package/package.json +1 -1
|
@@ -0,0 +1,287 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
/**
|
|
3
|
+
* File-based Memory Storage
|
|
4
|
+
* Persistent memory using JSONL files with lockfile support for concurrent access
|
|
5
|
+
*/
|
|
6
|
+
var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
|
|
7
|
+
if (k2 === undefined) k2 = k;
|
|
8
|
+
var desc = Object.getOwnPropertyDescriptor(m, k);
|
|
9
|
+
if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
|
|
10
|
+
desc = { enumerable: true, get: function() { return m[k]; } };
|
|
11
|
+
}
|
|
12
|
+
Object.defineProperty(o, k2, desc);
|
|
13
|
+
}) : (function(o, m, k, k2) {
|
|
14
|
+
if (k2 === undefined) k2 = k;
|
|
15
|
+
o[k2] = m[k];
|
|
16
|
+
}));
|
|
17
|
+
var __setModuleDefault = (this && this.__setModuleDefault) || (Object.create ? (function(o, v) {
|
|
18
|
+
Object.defineProperty(o, "default", { enumerable: true, value: v });
|
|
19
|
+
}) : function(o, v) {
|
|
20
|
+
o["default"] = v;
|
|
21
|
+
});
|
|
22
|
+
var __importStar = (this && this.__importStar) || (function () {
|
|
23
|
+
var ownKeys = function(o) {
|
|
24
|
+
ownKeys = Object.getOwnPropertyNames || function (o) {
|
|
25
|
+
var ar = [];
|
|
26
|
+
for (var k in o) if (Object.prototype.hasOwnProperty.call(o, k)) ar[ar.length] = k;
|
|
27
|
+
return ar;
|
|
28
|
+
};
|
|
29
|
+
return ownKeys(o);
|
|
30
|
+
};
|
|
31
|
+
return function (mod) {
|
|
32
|
+
if (mod && mod.__esModule) return mod;
|
|
33
|
+
var result = {};
|
|
34
|
+
if (mod != null) for (var k = ownKeys(mod), i = 0; i < k.length; i++) if (k[i] !== "default") __createBinding(result, mod, k[i]);
|
|
35
|
+
__setModuleDefault(result, mod);
|
|
36
|
+
return result;
|
|
37
|
+
};
|
|
38
|
+
})();
|
|
39
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
40
|
+
exports.FileMemory = void 0;
|
|
41
|
+
exports.createFileMemory = createFileMemory;
|
|
42
|
+
/**
|
|
43
|
+
* FileMemory - Append-only JSONL storage with compaction
|
|
44
|
+
*/
|
|
45
|
+
class FileMemory {
|
|
46
|
+
constructor(config) {
|
|
47
|
+
this.entries = new Map();
|
|
48
|
+
this.initialized = false;
|
|
49
|
+
this.writeQueue = Promise.resolve();
|
|
50
|
+
this.filePath = config.filePath;
|
|
51
|
+
this.maxEntries = config.maxEntries ?? 10000;
|
|
52
|
+
this.embeddingProvider = config.embeddingProvider;
|
|
53
|
+
this.compactionThreshold = config.compactionThreshold ?? 1000;
|
|
54
|
+
this.autoCompact = config.autoCompact ?? true;
|
|
55
|
+
}
|
|
56
|
+
/**
|
|
57
|
+
* Initialize and load existing entries
|
|
58
|
+
*/
|
|
59
|
+
async initialize() {
|
|
60
|
+
if (this.initialized)
|
|
61
|
+
return;
|
|
62
|
+
try {
|
|
63
|
+
const fs = await Promise.resolve().then(() => __importStar(require('fs/promises')));
|
|
64
|
+
const content = await fs.readFile(this.filePath, 'utf-8').catch(() => '');
|
|
65
|
+
if (content) {
|
|
66
|
+
const lines = content.trim().split('\n').filter(Boolean);
|
|
67
|
+
let deletedCount = 0;
|
|
68
|
+
for (const line of lines) {
|
|
69
|
+
try {
|
|
70
|
+
const entry = JSON.parse(line);
|
|
71
|
+
if (entry.deleted) {
|
|
72
|
+
this.entries.delete(entry.id);
|
|
73
|
+
deletedCount++;
|
|
74
|
+
}
|
|
75
|
+
else {
|
|
76
|
+
this.entries.set(entry.id, entry);
|
|
77
|
+
}
|
|
78
|
+
}
|
|
79
|
+
catch {
|
|
80
|
+
// Skip malformed lines
|
|
81
|
+
}
|
|
82
|
+
}
|
|
83
|
+
// Auto-compact if too many deleted entries
|
|
84
|
+
if (this.autoCompact && deletedCount > this.compactionThreshold) {
|
|
85
|
+
await this.compact();
|
|
86
|
+
}
|
|
87
|
+
}
|
|
88
|
+
}
|
|
89
|
+
catch (error) {
|
|
90
|
+
if (error.code !== 'ENOENT') {
|
|
91
|
+
throw error;
|
|
92
|
+
}
|
|
93
|
+
}
|
|
94
|
+
this.initialized = true;
|
|
95
|
+
}
|
|
96
|
+
/**
|
|
97
|
+
* Add a memory entry
|
|
98
|
+
*/
|
|
99
|
+
async add(content, role, metadata) {
|
|
100
|
+
await this.initialize();
|
|
101
|
+
const id = this.generateId();
|
|
102
|
+
const entry = {
|
|
103
|
+
id,
|
|
104
|
+
content,
|
|
105
|
+
role,
|
|
106
|
+
timestamp: Date.now(),
|
|
107
|
+
metadata
|
|
108
|
+
};
|
|
109
|
+
if (this.embeddingProvider) {
|
|
110
|
+
entry.embedding = await this.embeddingProvider.embed(content);
|
|
111
|
+
}
|
|
112
|
+
this.entries.set(id, entry);
|
|
113
|
+
await this.appendEntry(entry);
|
|
114
|
+
this.enforceLimit();
|
|
115
|
+
return entry;
|
|
116
|
+
}
|
|
117
|
+
/**
|
|
118
|
+
* Get a memory entry by ID
|
|
119
|
+
*/
|
|
120
|
+
async get(id) {
|
|
121
|
+
await this.initialize();
|
|
122
|
+
const entry = this.entries.get(id);
|
|
123
|
+
return entry && !entry.deleted ? entry : undefined;
|
|
124
|
+
}
|
|
125
|
+
/**
|
|
126
|
+
* Get all entries
|
|
127
|
+
*/
|
|
128
|
+
async getAll() {
|
|
129
|
+
await this.initialize();
|
|
130
|
+
return Array.from(this.entries.values())
|
|
131
|
+
.filter(e => !e.deleted)
|
|
132
|
+
.sort((a, b) => a.timestamp - b.timestamp);
|
|
133
|
+
}
|
|
134
|
+
/**
|
|
135
|
+
* Get recent entries
|
|
136
|
+
*/
|
|
137
|
+
async getRecent(count) {
|
|
138
|
+
const all = await this.getAll();
|
|
139
|
+
return all.slice(-count);
|
|
140
|
+
}
|
|
141
|
+
/**
|
|
142
|
+
* Search memory by text similarity
|
|
143
|
+
*/
|
|
144
|
+
async search(query, limit = 5) {
|
|
145
|
+
await this.initialize();
|
|
146
|
+
if (!this.embeddingProvider) {
|
|
147
|
+
return this.textSearch(query, limit);
|
|
148
|
+
}
|
|
149
|
+
const queryEmbedding = await this.embeddingProvider.embed(query);
|
|
150
|
+
const results = [];
|
|
151
|
+
for (const entry of this.entries.values()) {
|
|
152
|
+
if (entry.deleted)
|
|
153
|
+
continue;
|
|
154
|
+
if (entry.embedding) {
|
|
155
|
+
const score = this.cosineSimilarity(queryEmbedding, entry.embedding);
|
|
156
|
+
results.push({ entry, score });
|
|
157
|
+
}
|
|
158
|
+
}
|
|
159
|
+
return results
|
|
160
|
+
.sort((a, b) => b.score - a.score)
|
|
161
|
+
.slice(0, limit);
|
|
162
|
+
}
|
|
163
|
+
/**
|
|
164
|
+
* Delete a memory entry (soft delete)
|
|
165
|
+
*/
|
|
166
|
+
async delete(id) {
|
|
167
|
+
await this.initialize();
|
|
168
|
+
const entry = this.entries.get(id);
|
|
169
|
+
if (!entry || entry.deleted)
|
|
170
|
+
return false;
|
|
171
|
+
entry.deleted = true;
|
|
172
|
+
await this.appendEntry({ id, deleted: true });
|
|
173
|
+
return true;
|
|
174
|
+
}
|
|
175
|
+
/**
|
|
176
|
+
* Clear all memory
|
|
177
|
+
*/
|
|
178
|
+
async clear() {
|
|
179
|
+
await this.initialize();
|
|
180
|
+
const fs = await Promise.resolve().then(() => __importStar(require('fs/promises')));
|
|
181
|
+
await fs.writeFile(this.filePath, '');
|
|
182
|
+
this.entries.clear();
|
|
183
|
+
}
|
|
184
|
+
/**
|
|
185
|
+
* Compact the file by removing deleted entries
|
|
186
|
+
*/
|
|
187
|
+
async compact() {
|
|
188
|
+
await this.initialize();
|
|
189
|
+
const fs = await Promise.resolve().then(() => __importStar(require('fs/promises')));
|
|
190
|
+
const activeEntries = Array.from(this.entries.values()).filter(e => !e.deleted);
|
|
191
|
+
const content = activeEntries
|
|
192
|
+
.map(e => JSON.stringify(e))
|
|
193
|
+
.join('\n') + (activeEntries.length ? '\n' : '');
|
|
194
|
+
// Write to temp file first, then rename (atomic)
|
|
195
|
+
const tempPath = `${this.filePath}.tmp`;
|
|
196
|
+
await fs.writeFile(tempPath, content);
|
|
197
|
+
await fs.rename(tempPath, this.filePath);
|
|
198
|
+
}
|
|
199
|
+
/**
|
|
200
|
+
* Get memory size
|
|
201
|
+
*/
|
|
202
|
+
get size() {
|
|
203
|
+
return Array.from(this.entries.values()).filter(e => !e.deleted).length;
|
|
204
|
+
}
|
|
205
|
+
/**
|
|
206
|
+
* Export memory to JSON
|
|
207
|
+
*/
|
|
208
|
+
async toJSON() {
|
|
209
|
+
return this.getAll();
|
|
210
|
+
}
|
|
211
|
+
/**
|
|
212
|
+
* Import memory from JSON
|
|
213
|
+
*/
|
|
214
|
+
async fromJSON(entries) {
|
|
215
|
+
await this.clear();
|
|
216
|
+
for (const entry of entries) {
|
|
217
|
+
this.entries.set(entry.id, entry);
|
|
218
|
+
}
|
|
219
|
+
await this.compact();
|
|
220
|
+
}
|
|
221
|
+
/**
|
|
222
|
+
* Build context string from recent memory
|
|
223
|
+
*/
|
|
224
|
+
async buildContext(count) {
|
|
225
|
+
const entries = count ? await this.getRecent(count) : await this.getAll();
|
|
226
|
+
return entries
|
|
227
|
+
.map(e => `${e.role}: ${e.content}`)
|
|
228
|
+
.join('\n');
|
|
229
|
+
}
|
|
230
|
+
async appendEntry(entry) {
|
|
231
|
+
// Queue writes to ensure order
|
|
232
|
+
this.writeQueue = this.writeQueue.then(async () => {
|
|
233
|
+
const fs = await Promise.resolve().then(() => __importStar(require('fs/promises')));
|
|
234
|
+
await fs.appendFile(this.filePath, JSON.stringify(entry) + '\n');
|
|
235
|
+
});
|
|
236
|
+
await this.writeQueue;
|
|
237
|
+
}
|
|
238
|
+
textSearch(query, limit) {
|
|
239
|
+
const queryLower = query.toLowerCase();
|
|
240
|
+
const results = [];
|
|
241
|
+
for (const entry of this.entries.values()) {
|
|
242
|
+
if (entry.deleted)
|
|
243
|
+
continue;
|
|
244
|
+
const contentLower = entry.content.toLowerCase();
|
|
245
|
+
if (contentLower.includes(queryLower)) {
|
|
246
|
+
const score = queryLower.length / contentLower.length;
|
|
247
|
+
results.push({ entry, score: Math.min(score * 10, 1) });
|
|
248
|
+
}
|
|
249
|
+
}
|
|
250
|
+
return results
|
|
251
|
+
.sort((a, b) => b.score - a.score)
|
|
252
|
+
.slice(0, limit);
|
|
253
|
+
}
|
|
254
|
+
cosineSimilarity(a, b) {
|
|
255
|
+
if (a.length !== b.length)
|
|
256
|
+
return 0;
|
|
257
|
+
let dotProduct = 0;
|
|
258
|
+
let normA = 0;
|
|
259
|
+
let normB = 0;
|
|
260
|
+
for (let i = 0; i < a.length; i++) {
|
|
261
|
+
dotProduct += a[i] * b[i];
|
|
262
|
+
normA += a[i] * a[i];
|
|
263
|
+
normB += b[i] * b[i];
|
|
264
|
+
}
|
|
265
|
+
const denominator = Math.sqrt(normA) * Math.sqrt(normB);
|
|
266
|
+
return denominator === 0 ? 0 : dotProduct / denominator;
|
|
267
|
+
}
|
|
268
|
+
generateId() {
|
|
269
|
+
return `fmem_${Date.now()}_${Math.random().toString(36).substr(2, 9)}`;
|
|
270
|
+
}
|
|
271
|
+
enforceLimit() {
|
|
272
|
+
const active = Array.from(this.entries.values()).filter(e => !e.deleted);
|
|
273
|
+
while (active.length > this.maxEntries) {
|
|
274
|
+
const oldest = active.shift();
|
|
275
|
+
if (oldest) {
|
|
276
|
+
oldest.deleted = true;
|
|
277
|
+
}
|
|
278
|
+
}
|
|
279
|
+
}
|
|
280
|
+
}
|
|
281
|
+
exports.FileMemory = FileMemory;
|
|
282
|
+
/**
|
|
283
|
+
* Create a file-based memory instance
|
|
284
|
+
*/
|
|
285
|
+
function createFileMemory(config) {
|
|
286
|
+
return new FileMemory(config);
|
|
287
|
+
}
|
package/dist/memory/index.d.ts
CHANGED
|
@@ -22,3 +22,5 @@ export declare class BaseMemoryStore implements MemoryStore {
|
|
|
22
22
|
delete(id: string): boolean;
|
|
23
23
|
clear(): void;
|
|
24
24
|
}
|
|
25
|
+
export { FileMemory, createFileMemory, type FileMemoryConfig, type FileMemoryEntry } from './file-memory';
|
|
26
|
+
export { AutoMemory, createAutoMemory, createLLMSummarizer, DEFAULT_POLICIES, type AutoMemoryConfig, type AutoMemoryPolicy, type AutoMemoryContext, type VectorStoreAdapter, type KnowledgeBaseAdapter } from './auto-memory';
|
package/dist/memory/index.js
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.BaseMemoryStore = void 0;
|
|
3
|
+
exports.DEFAULT_POLICIES = exports.createLLMSummarizer = exports.createAutoMemory = exports.AutoMemory = exports.createFileMemory = exports.FileMemory = exports.BaseMemoryStore = void 0;
|
|
4
4
|
class BaseMemoryStore {
|
|
5
5
|
constructor() {
|
|
6
6
|
this.memories = new Map();
|
|
@@ -29,3 +29,13 @@ class BaseMemoryStore {
|
|
|
29
29
|
}
|
|
30
30
|
}
|
|
31
31
|
exports.BaseMemoryStore = BaseMemoryStore;
|
|
32
|
+
// Export FileMemory
|
|
33
|
+
var file_memory_1 = require("./file-memory");
|
|
34
|
+
Object.defineProperty(exports, "FileMemory", { enumerable: true, get: function () { return file_memory_1.FileMemory; } });
|
|
35
|
+
Object.defineProperty(exports, "createFileMemory", { enumerable: true, get: function () { return file_memory_1.createFileMemory; } });
|
|
36
|
+
// Export AutoMemory
|
|
37
|
+
var auto_memory_1 = require("./auto-memory");
|
|
38
|
+
Object.defineProperty(exports, "AutoMemory", { enumerable: true, get: function () { return auto_memory_1.AutoMemory; } });
|
|
39
|
+
Object.defineProperty(exports, "createAutoMemory", { enumerable: true, get: function () { return auto_memory_1.createAutoMemory; } });
|
|
40
|
+
Object.defineProperty(exports, "createLLMSummarizer", { enumerable: true, get: function () { return auto_memory_1.createLLMSummarizer; } });
|
|
41
|
+
Object.defineProperty(exports, "DEFAULT_POLICIES", { enumerable: true, get: function () { return auto_memory_1.DEFAULT_POLICIES; } });
|
|
File without changes
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
"use strict";
|