@mrc2204/agent-smart-memo 5.0.0 → 5.0.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 +266 -144
- package/dist/commands/telegram-addproject-command.d.ts +33 -0
- package/dist/commands/telegram-addproject-command.d.ts.map +1 -0
- package/dist/commands/telegram-addproject-command.js +208 -0
- package/dist/commands/telegram-addproject-command.js.map +1 -0
- package/dist/core/contracts/adapter-contracts.d.ts +1 -1
- package/dist/core/contracts/adapter-contracts.d.ts.map +1 -1
- package/dist/core/usecases/default-memory-usecase-port.d.ts +33 -0
- package/dist/core/usecases/default-memory-usecase-port.d.ts.map +1 -1
- package/dist/core/usecases/default-memory-usecase-port.js +876 -0
- package/dist/core/usecases/default-memory-usecase-port.js.map +1 -1
- package/dist/db/slot-db.d.ts +293 -0
- package/dist/db/slot-db.d.ts.map +1 -1
- package/dist/db/slot-db.js +1272 -0
- package/dist/db/slot-db.js.map +1 -1
- package/dist/index.d.ts +537 -64
- package/dist/index.d.ts.map +1 -1
- package/dist/index.js +212 -90
- package/dist/index.js.map +1 -1
- package/dist/services/qdrant.d.ts.map +1 -1
- package/dist/services/qdrant.js +17 -0
- package/dist/services/qdrant.js.map +1 -1
- package/dist/tools/project-tools.d.ts +8 -0
- package/dist/tools/project-tools.d.ts.map +1 -0
- package/dist/tools/project-tools.js +649 -0
- package/dist/tools/project-tools.js.map +1 -0
- package/openclaw.plugin.json +22 -2
- package/package.json +1 -1
package/dist/index.d.ts
CHANGED
|
@@ -8,98 +8,571 @@
|
|
|
8
8
|
* - Hooks: auto-recall, auto-capture
|
|
9
9
|
*/
|
|
10
10
|
import type { OpenClawPluginApi } from "openclaw/plugin-sdk";
|
|
11
|
-
|
|
11
|
+
import { type EmbedBackend } from "./services/embedding.js";
|
|
12
|
+
export interface AgentMemoConfig {
|
|
13
|
+
slotCategories?: string[];
|
|
14
|
+
maxSlots?: number;
|
|
15
|
+
injectStateTokenBudget?: number;
|
|
16
|
+
qdrantHost?: string;
|
|
17
|
+
qdrantPort?: number;
|
|
18
|
+
qdrantCollection?: string;
|
|
19
|
+
qdrantVectorSize?: number;
|
|
20
|
+
llmBaseUrl?: string;
|
|
21
|
+
llmApiKey?: string;
|
|
22
|
+
llmModel?: string;
|
|
23
|
+
embedBaseUrl?: string;
|
|
24
|
+
embedBackend?: EmbedBackend;
|
|
25
|
+
embedModel?: string;
|
|
26
|
+
embedDimensions?: number;
|
|
27
|
+
autoCaptureEnabled?: boolean;
|
|
28
|
+
autoCaptureMinConfidence?: number;
|
|
29
|
+
contextWindowMaxTokens?: number;
|
|
30
|
+
summarizeEveryActions?: number;
|
|
31
|
+
slotDbDir?: string;
|
|
32
|
+
projectWorkspaceRoot?: string;
|
|
33
|
+
repoCloneRoot?: string;
|
|
34
|
+
}
|
|
35
|
+
export declare const AGENT_MEMO_PLUGIN_ID = "agent-smart-memo";
|
|
36
|
+
export declare const AGENT_MEMO_PLUGIN_NAME = "Agent Memo (Slot Memory + Graph)";
|
|
37
|
+
export declare const AGENT_MEMO_PLUGIN_DESCRIPTION = "Structured slot memory, graph relationships, and semantic search for OpenClaw";
|
|
38
|
+
export declare const AGENT_MEMO_CONFIG_SCHEMA: {
|
|
39
|
+
readonly type: "object";
|
|
40
|
+
readonly additionalProperties: false;
|
|
41
|
+
readonly properties: {
|
|
42
|
+
readonly slotCategories: {
|
|
43
|
+
readonly type: "array";
|
|
44
|
+
readonly items: {
|
|
45
|
+
readonly type: "string";
|
|
46
|
+
};
|
|
47
|
+
readonly description: "Allowed slot categories";
|
|
48
|
+
};
|
|
49
|
+
readonly maxSlots: {
|
|
50
|
+
readonly type: "number";
|
|
51
|
+
readonly description: "Maximum number of slots per scope";
|
|
52
|
+
};
|
|
53
|
+
readonly injectStateTokenBudget: {
|
|
54
|
+
readonly type: "number";
|
|
55
|
+
readonly description: "Max tokens for Current State injection";
|
|
56
|
+
};
|
|
57
|
+
readonly qdrantHost: {
|
|
58
|
+
readonly type: "string";
|
|
59
|
+
readonly description: "Qdrant server host";
|
|
60
|
+
};
|
|
61
|
+
readonly qdrantPort: {
|
|
62
|
+
readonly type: "number";
|
|
63
|
+
readonly description: "Qdrant server port";
|
|
64
|
+
};
|
|
65
|
+
readonly qdrantCollection: {
|
|
66
|
+
readonly type: "string";
|
|
67
|
+
readonly description: "Qdrant collection name (default: mrc_bot)";
|
|
68
|
+
};
|
|
69
|
+
readonly qdrantVectorSize: {
|
|
70
|
+
readonly type: "number";
|
|
71
|
+
readonly description: "Qdrant vector size (default: 1024)";
|
|
72
|
+
};
|
|
73
|
+
readonly llmBaseUrl: {
|
|
74
|
+
readonly type: "string";
|
|
75
|
+
readonly description: "LLM API base URL (OpenAI compatible)";
|
|
76
|
+
};
|
|
77
|
+
readonly llmApiKey: {
|
|
78
|
+
readonly type: "string";
|
|
79
|
+
readonly description: "LLM API key";
|
|
80
|
+
};
|
|
81
|
+
readonly llmModel: {
|
|
82
|
+
readonly type: "string";
|
|
83
|
+
readonly description: "LLM model for auto-capture";
|
|
84
|
+
};
|
|
85
|
+
readonly embedBaseUrl: {
|
|
86
|
+
readonly type: "string";
|
|
87
|
+
readonly description: "Embedding service base URL (default: http://localhost:11434)";
|
|
88
|
+
};
|
|
89
|
+
readonly embedBackend: {
|
|
90
|
+
readonly type: "string";
|
|
91
|
+
readonly enum: readonly ["ollama", "openai", "docker"];
|
|
92
|
+
readonly description: "Embedding backend selector (optional). If omitted, keeps legacy auto behavior.";
|
|
93
|
+
};
|
|
94
|
+
readonly embedModel: {
|
|
95
|
+
readonly type: "string";
|
|
96
|
+
readonly description: "Embedding model for vectorization (default: qwen3-embedding:0.6b)";
|
|
97
|
+
};
|
|
98
|
+
readonly embedDimensions: {
|
|
99
|
+
readonly type: "number";
|
|
100
|
+
readonly description: "Embedding dimensions (default: 1024)";
|
|
101
|
+
};
|
|
102
|
+
readonly slotDbDir: {
|
|
103
|
+
readonly type: "string";
|
|
104
|
+
readonly description: "Absolute path for SlotDB directory. Priority: OPENCLAW_SLOTDB_DIR > config.slotDbDir > ${OPENCLAW_STATE_DIR}/agent-memo";
|
|
105
|
+
};
|
|
106
|
+
readonly projectWorkspaceRoot: {
|
|
107
|
+
readonly type: "string";
|
|
108
|
+
readonly description: "Default workspace root for repo clone/import onboarding resolution (fallback for project.register/project onboarding).";
|
|
109
|
+
};
|
|
110
|
+
readonly repoCloneRoot: {
|
|
111
|
+
readonly type: "string";
|
|
112
|
+
readonly description: "Alias of projectWorkspaceRoot for operator familiarity; used as fallback clone root.";
|
|
113
|
+
};
|
|
114
|
+
readonly autoCaptureEnabled: {
|
|
115
|
+
readonly type: "boolean";
|
|
116
|
+
readonly description: "Enable auto-capture feature";
|
|
117
|
+
};
|
|
118
|
+
readonly autoCaptureMinConfidence: {
|
|
119
|
+
readonly type: "number";
|
|
120
|
+
readonly description: "Minimum confidence for auto-capture";
|
|
121
|
+
};
|
|
122
|
+
readonly contextWindowMaxTokens: {
|
|
123
|
+
readonly type: "number";
|
|
124
|
+
readonly description: "Maximum tokens for context window in auto-capture (default: 12000)";
|
|
125
|
+
};
|
|
126
|
+
readonly summarizeEveryActions: {
|
|
127
|
+
readonly type: "number";
|
|
128
|
+
readonly description: "Auto-summarize project_living_state every N actions (default: 6)";
|
|
129
|
+
};
|
|
130
|
+
};
|
|
131
|
+
};
|
|
132
|
+
export declare const AGENT_MEMO_UI_HINTS: {
|
|
133
|
+
readonly slotCategories: {
|
|
134
|
+
readonly label: "Slot Categories";
|
|
135
|
+
readonly placeholder: "profile, preferences, project, environment";
|
|
136
|
+
};
|
|
137
|
+
readonly maxSlots: {
|
|
138
|
+
readonly label: "Max Slots";
|
|
139
|
+
readonly placeholder: "500";
|
|
140
|
+
};
|
|
141
|
+
readonly injectStateTokenBudget: {
|
|
142
|
+
readonly label: "State Injection Token Budget";
|
|
143
|
+
readonly placeholder: "500";
|
|
144
|
+
};
|
|
145
|
+
readonly qdrantHost: {
|
|
146
|
+
readonly label: "Qdrant Host";
|
|
147
|
+
readonly placeholder: "localhost";
|
|
148
|
+
};
|
|
149
|
+
readonly qdrantPort: {
|
|
150
|
+
readonly label: "Qdrant Port";
|
|
151
|
+
readonly placeholder: "6333";
|
|
152
|
+
};
|
|
153
|
+
readonly qdrantCollection: {
|
|
154
|
+
readonly label: "Qdrant Collection";
|
|
155
|
+
readonly placeholder: "mrc_bot_memory";
|
|
156
|
+
};
|
|
157
|
+
readonly llmBaseUrl: {
|
|
158
|
+
readonly label: "LLM Base URL";
|
|
159
|
+
readonly placeholder: "http://localhost:8317/v1";
|
|
160
|
+
};
|
|
161
|
+
readonly llmApiKey: {
|
|
162
|
+
readonly label: "LLM API Key";
|
|
163
|
+
readonly placeholder: "proxypal-local";
|
|
164
|
+
};
|
|
165
|
+
readonly llmModel: {
|
|
166
|
+
readonly label: "LLM Model";
|
|
167
|
+
readonly placeholder: "gemini-3.1-pro-low";
|
|
168
|
+
};
|
|
169
|
+
readonly embedBaseUrl: {
|
|
170
|
+
readonly label: "Embedding Base URL";
|
|
171
|
+
readonly placeholder: "http://localhost:11434";
|
|
172
|
+
};
|
|
173
|
+
readonly embedBackend: {
|
|
174
|
+
readonly label: "Embedding Backend";
|
|
175
|
+
readonly placeholder: "ollama";
|
|
176
|
+
};
|
|
177
|
+
readonly embedModel: {
|
|
178
|
+
readonly label: "Embedding Model";
|
|
179
|
+
readonly placeholder: "qwen3-embedding:0.6b";
|
|
180
|
+
};
|
|
181
|
+
readonly embedDimensions: {
|
|
182
|
+
readonly label: "Embedding Dimensions";
|
|
183
|
+
readonly placeholder: "1024";
|
|
184
|
+
};
|
|
185
|
+
readonly slotDbDir: {
|
|
186
|
+
readonly label: "SlotDB Directory";
|
|
187
|
+
readonly placeholder: "/Users/you/.openclaw/agent-memo";
|
|
188
|
+
};
|
|
189
|
+
readonly projectWorkspaceRoot: {
|
|
190
|
+
readonly label: "Project Workspace Root";
|
|
191
|
+
readonly placeholder: "/Users/you/Work/projects";
|
|
192
|
+
};
|
|
193
|
+
readonly repoCloneRoot: {
|
|
194
|
+
readonly label: "Repo Clone Root";
|
|
195
|
+
readonly placeholder: "/Users/you/Work/projects";
|
|
196
|
+
};
|
|
197
|
+
readonly autoCaptureEnabled: {
|
|
198
|
+
readonly label: "Auto Capture Enabled";
|
|
199
|
+
};
|
|
200
|
+
readonly autoCaptureMinConfidence: {
|
|
201
|
+
readonly label: "Min Confidence";
|
|
202
|
+
readonly placeholder: "0.7";
|
|
203
|
+
};
|
|
204
|
+
readonly contextWindowMaxTokens: {
|
|
205
|
+
readonly label: "Context Window Max Tokens";
|
|
206
|
+
readonly placeholder: "12000";
|
|
207
|
+
};
|
|
208
|
+
readonly summarizeEveryActions: {
|
|
209
|
+
readonly label: "Summarize Every N Actions";
|
|
210
|
+
readonly placeholder: "6";
|
|
211
|
+
};
|
|
212
|
+
};
|
|
213
|
+
export declare function getAgentMemoPluginDefinition(): {
|
|
12
214
|
id: string;
|
|
13
215
|
name: string;
|
|
14
216
|
description: string;
|
|
15
217
|
kind: "memory";
|
|
16
218
|
configSchema: {
|
|
17
|
-
type:
|
|
18
|
-
additionalProperties:
|
|
19
|
-
properties: {
|
|
20
|
-
slotCategories: {
|
|
21
|
-
type:
|
|
22
|
-
items: {
|
|
23
|
-
type: string;
|
|
219
|
+
readonly type: "object";
|
|
220
|
+
readonly additionalProperties: false;
|
|
221
|
+
readonly properties: {
|
|
222
|
+
readonly slotCategories: {
|
|
223
|
+
readonly type: "array";
|
|
224
|
+
readonly items: {
|
|
225
|
+
readonly type: "string";
|
|
24
226
|
};
|
|
25
|
-
description:
|
|
227
|
+
readonly description: "Allowed slot categories";
|
|
26
228
|
};
|
|
27
|
-
maxSlots: {
|
|
28
|
-
type:
|
|
29
|
-
description:
|
|
229
|
+
readonly maxSlots: {
|
|
230
|
+
readonly type: "number";
|
|
231
|
+
readonly description: "Maximum number of slots per scope";
|
|
30
232
|
};
|
|
31
|
-
injectStateTokenBudget: {
|
|
32
|
-
type:
|
|
33
|
-
description:
|
|
233
|
+
readonly injectStateTokenBudget: {
|
|
234
|
+
readonly type: "number";
|
|
235
|
+
readonly description: "Max tokens for Current State injection";
|
|
34
236
|
};
|
|
35
|
-
qdrantHost: {
|
|
36
|
-
type: string;
|
|
37
|
-
description:
|
|
237
|
+
readonly qdrantHost: {
|
|
238
|
+
readonly type: "string";
|
|
239
|
+
readonly description: "Qdrant server host";
|
|
38
240
|
};
|
|
39
|
-
qdrantPort: {
|
|
40
|
-
type:
|
|
41
|
-
description:
|
|
241
|
+
readonly qdrantPort: {
|
|
242
|
+
readonly type: "number";
|
|
243
|
+
readonly description: "Qdrant server port";
|
|
42
244
|
};
|
|
43
|
-
qdrantCollection: {
|
|
44
|
-
type: string;
|
|
45
|
-
description:
|
|
245
|
+
readonly qdrantCollection: {
|
|
246
|
+
readonly type: "string";
|
|
247
|
+
readonly description: "Qdrant collection name (default: mrc_bot)";
|
|
46
248
|
};
|
|
47
|
-
qdrantVectorSize: {
|
|
48
|
-
type:
|
|
49
|
-
description:
|
|
249
|
+
readonly qdrantVectorSize: {
|
|
250
|
+
readonly type: "number";
|
|
251
|
+
readonly description: "Qdrant vector size (default: 1024)";
|
|
50
252
|
};
|
|
51
|
-
llmBaseUrl: {
|
|
52
|
-
type: string;
|
|
53
|
-
description:
|
|
253
|
+
readonly llmBaseUrl: {
|
|
254
|
+
readonly type: "string";
|
|
255
|
+
readonly description: "LLM API base URL (OpenAI compatible)";
|
|
54
256
|
};
|
|
55
|
-
llmApiKey: {
|
|
56
|
-
type: string;
|
|
57
|
-
description:
|
|
257
|
+
readonly llmApiKey: {
|
|
258
|
+
readonly type: "string";
|
|
259
|
+
readonly description: "LLM API key";
|
|
58
260
|
};
|
|
59
|
-
llmModel: {
|
|
60
|
-
type: string;
|
|
61
|
-
description:
|
|
261
|
+
readonly llmModel: {
|
|
262
|
+
readonly type: "string";
|
|
263
|
+
readonly description: "LLM model for auto-capture";
|
|
62
264
|
};
|
|
63
|
-
embedBaseUrl: {
|
|
64
|
-
type: string;
|
|
65
|
-
description:
|
|
265
|
+
readonly embedBaseUrl: {
|
|
266
|
+
readonly type: "string";
|
|
267
|
+
readonly description: "Embedding service base URL (default: http://localhost:11434)";
|
|
66
268
|
};
|
|
67
|
-
embedBackend: {
|
|
68
|
-
type: string;
|
|
69
|
-
enum:
|
|
70
|
-
description:
|
|
269
|
+
readonly embedBackend: {
|
|
270
|
+
readonly type: "string";
|
|
271
|
+
readonly enum: readonly ["ollama", "openai", "docker"];
|
|
272
|
+
readonly description: "Embedding backend selector (optional). If omitted, keeps legacy auto behavior.";
|
|
71
273
|
};
|
|
72
|
-
embedModel: {
|
|
73
|
-
type: string;
|
|
74
|
-
description:
|
|
274
|
+
readonly embedModel: {
|
|
275
|
+
readonly type: "string";
|
|
276
|
+
readonly description: "Embedding model for vectorization (default: qwen3-embedding:0.6b)";
|
|
75
277
|
};
|
|
76
|
-
embedDimensions: {
|
|
77
|
-
type:
|
|
78
|
-
description:
|
|
278
|
+
readonly embedDimensions: {
|
|
279
|
+
readonly type: "number";
|
|
280
|
+
readonly description: "Embedding dimensions (default: 1024)";
|
|
79
281
|
};
|
|
80
|
-
slotDbDir: {
|
|
81
|
-
type: string;
|
|
82
|
-
description:
|
|
282
|
+
readonly slotDbDir: {
|
|
283
|
+
readonly type: "string";
|
|
284
|
+
readonly description: "Absolute path for SlotDB directory. Priority: OPENCLAW_SLOTDB_DIR > config.slotDbDir > ${OPENCLAW_STATE_DIR}/agent-memo";
|
|
83
285
|
};
|
|
84
|
-
|
|
85
|
-
type: string;
|
|
86
|
-
description:
|
|
286
|
+
readonly projectWorkspaceRoot: {
|
|
287
|
+
readonly type: "string";
|
|
288
|
+
readonly description: "Default workspace root for repo clone/import onboarding resolution (fallback for project.register/project onboarding).";
|
|
87
289
|
};
|
|
88
|
-
|
|
89
|
-
type: string;
|
|
90
|
-
description:
|
|
290
|
+
readonly repoCloneRoot: {
|
|
291
|
+
readonly type: "string";
|
|
292
|
+
readonly description: "Alias of projectWorkspaceRoot for operator familiarity; used as fallback clone root.";
|
|
91
293
|
};
|
|
92
|
-
|
|
93
|
-
type:
|
|
94
|
-
description:
|
|
294
|
+
readonly autoCaptureEnabled: {
|
|
295
|
+
readonly type: "boolean";
|
|
296
|
+
readonly description: "Enable auto-capture feature";
|
|
95
297
|
};
|
|
96
|
-
|
|
97
|
-
type:
|
|
98
|
-
description:
|
|
298
|
+
readonly autoCaptureMinConfidence: {
|
|
299
|
+
readonly type: "number";
|
|
300
|
+
readonly description: "Minimum confidence for auto-capture";
|
|
301
|
+
};
|
|
302
|
+
readonly contextWindowMaxTokens: {
|
|
303
|
+
readonly type: "number";
|
|
304
|
+
readonly description: "Maximum tokens for context window in auto-capture (default: 12000)";
|
|
305
|
+
};
|
|
306
|
+
readonly summarizeEveryActions: {
|
|
307
|
+
readonly type: "number";
|
|
308
|
+
readonly description: "Auto-summarize project_living_state every N actions (default: 6)";
|
|
99
309
|
};
|
|
100
310
|
};
|
|
101
311
|
};
|
|
312
|
+
uiHints: {
|
|
313
|
+
readonly slotCategories: {
|
|
314
|
+
readonly label: "Slot Categories";
|
|
315
|
+
readonly placeholder: "profile, preferences, project, environment";
|
|
316
|
+
};
|
|
317
|
+
readonly maxSlots: {
|
|
318
|
+
readonly label: "Max Slots";
|
|
319
|
+
readonly placeholder: "500";
|
|
320
|
+
};
|
|
321
|
+
readonly injectStateTokenBudget: {
|
|
322
|
+
readonly label: "State Injection Token Budget";
|
|
323
|
+
readonly placeholder: "500";
|
|
324
|
+
};
|
|
325
|
+
readonly qdrantHost: {
|
|
326
|
+
readonly label: "Qdrant Host";
|
|
327
|
+
readonly placeholder: "localhost";
|
|
328
|
+
};
|
|
329
|
+
readonly qdrantPort: {
|
|
330
|
+
readonly label: "Qdrant Port";
|
|
331
|
+
readonly placeholder: "6333";
|
|
332
|
+
};
|
|
333
|
+
readonly qdrantCollection: {
|
|
334
|
+
readonly label: "Qdrant Collection";
|
|
335
|
+
readonly placeholder: "mrc_bot_memory";
|
|
336
|
+
};
|
|
337
|
+
readonly llmBaseUrl: {
|
|
338
|
+
readonly label: "LLM Base URL";
|
|
339
|
+
readonly placeholder: "http://localhost:8317/v1";
|
|
340
|
+
};
|
|
341
|
+
readonly llmApiKey: {
|
|
342
|
+
readonly label: "LLM API Key";
|
|
343
|
+
readonly placeholder: "proxypal-local";
|
|
344
|
+
};
|
|
345
|
+
readonly llmModel: {
|
|
346
|
+
readonly label: "LLM Model";
|
|
347
|
+
readonly placeholder: "gemini-3.1-pro-low";
|
|
348
|
+
};
|
|
349
|
+
readonly embedBaseUrl: {
|
|
350
|
+
readonly label: "Embedding Base URL";
|
|
351
|
+
readonly placeholder: "http://localhost:11434";
|
|
352
|
+
};
|
|
353
|
+
readonly embedBackend: {
|
|
354
|
+
readonly label: "Embedding Backend";
|
|
355
|
+
readonly placeholder: "ollama";
|
|
356
|
+
};
|
|
357
|
+
readonly embedModel: {
|
|
358
|
+
readonly label: "Embedding Model";
|
|
359
|
+
readonly placeholder: "qwen3-embedding:0.6b";
|
|
360
|
+
};
|
|
361
|
+
readonly embedDimensions: {
|
|
362
|
+
readonly label: "Embedding Dimensions";
|
|
363
|
+
readonly placeholder: "1024";
|
|
364
|
+
};
|
|
365
|
+
readonly slotDbDir: {
|
|
366
|
+
readonly label: "SlotDB Directory";
|
|
367
|
+
readonly placeholder: "/Users/you/.openclaw/agent-memo";
|
|
368
|
+
};
|
|
369
|
+
readonly projectWorkspaceRoot: {
|
|
370
|
+
readonly label: "Project Workspace Root";
|
|
371
|
+
readonly placeholder: "/Users/you/Work/projects";
|
|
372
|
+
};
|
|
373
|
+
readonly repoCloneRoot: {
|
|
374
|
+
readonly label: "Repo Clone Root";
|
|
375
|
+
readonly placeholder: "/Users/you/Work/projects";
|
|
376
|
+
};
|
|
377
|
+
readonly autoCaptureEnabled: {
|
|
378
|
+
readonly label: "Auto Capture Enabled";
|
|
379
|
+
};
|
|
380
|
+
readonly autoCaptureMinConfidence: {
|
|
381
|
+
readonly label: "Min Confidence";
|
|
382
|
+
readonly placeholder: "0.7";
|
|
383
|
+
};
|
|
384
|
+
readonly contextWindowMaxTokens: {
|
|
385
|
+
readonly label: "Context Window Max Tokens";
|
|
386
|
+
readonly placeholder: "12000";
|
|
387
|
+
};
|
|
388
|
+
readonly summarizeEveryActions: {
|
|
389
|
+
readonly label: "Summarize Every N Actions";
|
|
390
|
+
readonly placeholder: "6";
|
|
391
|
+
};
|
|
392
|
+
};
|
|
393
|
+
};
|
|
394
|
+
export declare function loadAgentMemoPluginDefinitionFromSource(): any;
|
|
395
|
+
declare const agentMemoPlugin: {
|
|
102
396
|
register(api: OpenClawPluginApi): void;
|
|
397
|
+
id: string;
|
|
398
|
+
name: string;
|
|
399
|
+
description: string;
|
|
400
|
+
kind: "memory";
|
|
401
|
+
configSchema: {
|
|
402
|
+
readonly type: "object";
|
|
403
|
+
readonly additionalProperties: false;
|
|
404
|
+
readonly properties: {
|
|
405
|
+
readonly slotCategories: {
|
|
406
|
+
readonly type: "array";
|
|
407
|
+
readonly items: {
|
|
408
|
+
readonly type: "string";
|
|
409
|
+
};
|
|
410
|
+
readonly description: "Allowed slot categories";
|
|
411
|
+
};
|
|
412
|
+
readonly maxSlots: {
|
|
413
|
+
readonly type: "number";
|
|
414
|
+
readonly description: "Maximum number of slots per scope";
|
|
415
|
+
};
|
|
416
|
+
readonly injectStateTokenBudget: {
|
|
417
|
+
readonly type: "number";
|
|
418
|
+
readonly description: "Max tokens for Current State injection";
|
|
419
|
+
};
|
|
420
|
+
readonly qdrantHost: {
|
|
421
|
+
readonly type: "string";
|
|
422
|
+
readonly description: "Qdrant server host";
|
|
423
|
+
};
|
|
424
|
+
readonly qdrantPort: {
|
|
425
|
+
readonly type: "number";
|
|
426
|
+
readonly description: "Qdrant server port";
|
|
427
|
+
};
|
|
428
|
+
readonly qdrantCollection: {
|
|
429
|
+
readonly type: "string";
|
|
430
|
+
readonly description: "Qdrant collection name (default: mrc_bot)";
|
|
431
|
+
};
|
|
432
|
+
readonly qdrantVectorSize: {
|
|
433
|
+
readonly type: "number";
|
|
434
|
+
readonly description: "Qdrant vector size (default: 1024)";
|
|
435
|
+
};
|
|
436
|
+
readonly llmBaseUrl: {
|
|
437
|
+
readonly type: "string";
|
|
438
|
+
readonly description: "LLM API base URL (OpenAI compatible)";
|
|
439
|
+
};
|
|
440
|
+
readonly llmApiKey: {
|
|
441
|
+
readonly type: "string";
|
|
442
|
+
readonly description: "LLM API key";
|
|
443
|
+
};
|
|
444
|
+
readonly llmModel: {
|
|
445
|
+
readonly type: "string";
|
|
446
|
+
readonly description: "LLM model for auto-capture";
|
|
447
|
+
};
|
|
448
|
+
readonly embedBaseUrl: {
|
|
449
|
+
readonly type: "string";
|
|
450
|
+
readonly description: "Embedding service base URL (default: http://localhost:11434)";
|
|
451
|
+
};
|
|
452
|
+
readonly embedBackend: {
|
|
453
|
+
readonly type: "string";
|
|
454
|
+
readonly enum: readonly ["ollama", "openai", "docker"];
|
|
455
|
+
readonly description: "Embedding backend selector (optional). If omitted, keeps legacy auto behavior.";
|
|
456
|
+
};
|
|
457
|
+
readonly embedModel: {
|
|
458
|
+
readonly type: "string";
|
|
459
|
+
readonly description: "Embedding model for vectorization (default: qwen3-embedding:0.6b)";
|
|
460
|
+
};
|
|
461
|
+
readonly embedDimensions: {
|
|
462
|
+
readonly type: "number";
|
|
463
|
+
readonly description: "Embedding dimensions (default: 1024)";
|
|
464
|
+
};
|
|
465
|
+
readonly slotDbDir: {
|
|
466
|
+
readonly type: "string";
|
|
467
|
+
readonly description: "Absolute path for SlotDB directory. Priority: OPENCLAW_SLOTDB_DIR > config.slotDbDir > ${OPENCLAW_STATE_DIR}/agent-memo";
|
|
468
|
+
};
|
|
469
|
+
readonly projectWorkspaceRoot: {
|
|
470
|
+
readonly type: "string";
|
|
471
|
+
readonly description: "Default workspace root for repo clone/import onboarding resolution (fallback for project.register/project onboarding).";
|
|
472
|
+
};
|
|
473
|
+
readonly repoCloneRoot: {
|
|
474
|
+
readonly type: "string";
|
|
475
|
+
readonly description: "Alias of projectWorkspaceRoot for operator familiarity; used as fallback clone root.";
|
|
476
|
+
};
|
|
477
|
+
readonly autoCaptureEnabled: {
|
|
478
|
+
readonly type: "boolean";
|
|
479
|
+
readonly description: "Enable auto-capture feature";
|
|
480
|
+
};
|
|
481
|
+
readonly autoCaptureMinConfidence: {
|
|
482
|
+
readonly type: "number";
|
|
483
|
+
readonly description: "Minimum confidence for auto-capture";
|
|
484
|
+
};
|
|
485
|
+
readonly contextWindowMaxTokens: {
|
|
486
|
+
readonly type: "number";
|
|
487
|
+
readonly description: "Maximum tokens for context window in auto-capture (default: 12000)";
|
|
488
|
+
};
|
|
489
|
+
readonly summarizeEveryActions: {
|
|
490
|
+
readonly type: "number";
|
|
491
|
+
readonly description: "Auto-summarize project_living_state every N actions (default: 6)";
|
|
492
|
+
};
|
|
493
|
+
};
|
|
494
|
+
};
|
|
495
|
+
uiHints: {
|
|
496
|
+
readonly slotCategories: {
|
|
497
|
+
readonly label: "Slot Categories";
|
|
498
|
+
readonly placeholder: "profile, preferences, project, environment";
|
|
499
|
+
};
|
|
500
|
+
readonly maxSlots: {
|
|
501
|
+
readonly label: "Max Slots";
|
|
502
|
+
readonly placeholder: "500";
|
|
503
|
+
};
|
|
504
|
+
readonly injectStateTokenBudget: {
|
|
505
|
+
readonly label: "State Injection Token Budget";
|
|
506
|
+
readonly placeholder: "500";
|
|
507
|
+
};
|
|
508
|
+
readonly qdrantHost: {
|
|
509
|
+
readonly label: "Qdrant Host";
|
|
510
|
+
readonly placeholder: "localhost";
|
|
511
|
+
};
|
|
512
|
+
readonly qdrantPort: {
|
|
513
|
+
readonly label: "Qdrant Port";
|
|
514
|
+
readonly placeholder: "6333";
|
|
515
|
+
};
|
|
516
|
+
readonly qdrantCollection: {
|
|
517
|
+
readonly label: "Qdrant Collection";
|
|
518
|
+
readonly placeholder: "mrc_bot_memory";
|
|
519
|
+
};
|
|
520
|
+
readonly llmBaseUrl: {
|
|
521
|
+
readonly label: "LLM Base URL";
|
|
522
|
+
readonly placeholder: "http://localhost:8317/v1";
|
|
523
|
+
};
|
|
524
|
+
readonly llmApiKey: {
|
|
525
|
+
readonly label: "LLM API Key";
|
|
526
|
+
readonly placeholder: "proxypal-local";
|
|
527
|
+
};
|
|
528
|
+
readonly llmModel: {
|
|
529
|
+
readonly label: "LLM Model";
|
|
530
|
+
readonly placeholder: "gemini-3.1-pro-low";
|
|
531
|
+
};
|
|
532
|
+
readonly embedBaseUrl: {
|
|
533
|
+
readonly label: "Embedding Base URL";
|
|
534
|
+
readonly placeholder: "http://localhost:11434";
|
|
535
|
+
};
|
|
536
|
+
readonly embedBackend: {
|
|
537
|
+
readonly label: "Embedding Backend";
|
|
538
|
+
readonly placeholder: "ollama";
|
|
539
|
+
};
|
|
540
|
+
readonly embedModel: {
|
|
541
|
+
readonly label: "Embedding Model";
|
|
542
|
+
readonly placeholder: "qwen3-embedding:0.6b";
|
|
543
|
+
};
|
|
544
|
+
readonly embedDimensions: {
|
|
545
|
+
readonly label: "Embedding Dimensions";
|
|
546
|
+
readonly placeholder: "1024";
|
|
547
|
+
};
|
|
548
|
+
readonly slotDbDir: {
|
|
549
|
+
readonly label: "SlotDB Directory";
|
|
550
|
+
readonly placeholder: "/Users/you/.openclaw/agent-memo";
|
|
551
|
+
};
|
|
552
|
+
readonly projectWorkspaceRoot: {
|
|
553
|
+
readonly label: "Project Workspace Root";
|
|
554
|
+
readonly placeholder: "/Users/you/Work/projects";
|
|
555
|
+
};
|
|
556
|
+
readonly repoCloneRoot: {
|
|
557
|
+
readonly label: "Repo Clone Root";
|
|
558
|
+
readonly placeholder: "/Users/you/Work/projects";
|
|
559
|
+
};
|
|
560
|
+
readonly autoCaptureEnabled: {
|
|
561
|
+
readonly label: "Auto Capture Enabled";
|
|
562
|
+
};
|
|
563
|
+
readonly autoCaptureMinConfidence: {
|
|
564
|
+
readonly label: "Min Confidence";
|
|
565
|
+
readonly placeholder: "0.7";
|
|
566
|
+
};
|
|
567
|
+
readonly contextWindowMaxTokens: {
|
|
568
|
+
readonly label: "Context Window Max Tokens";
|
|
569
|
+
readonly placeholder: "12000";
|
|
570
|
+
};
|
|
571
|
+
readonly summarizeEveryActions: {
|
|
572
|
+
readonly label: "Summarize Every N Actions";
|
|
573
|
+
readonly placeholder: "6";
|
|
574
|
+
};
|
|
575
|
+
};
|
|
103
576
|
};
|
|
104
577
|
export default agentMemoPlugin;
|
|
105
578
|
//# sourceMappingURL=index.d.ts.map
|
package/dist/index.d.ts.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":"AAAA;;;;;;;;GAQG;AAEH,OAAO,KAAK,EAAE,iBAAiB,EAAE,MAAM,qBAAqB,CAAC;
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":"AAAA;;;;;;;;GAQG;AAEH,OAAO,KAAK,EAAE,iBAAiB,EAAE,MAAM,qBAAqB,CAAC;AAG7D,OAAO,EAAmB,KAAK,YAAY,EAAE,MAAM,yBAAyB,CAAC;AAwB7E,MAAM,WAAW,eAAe;IAC9B,cAAc,CAAC,EAAE,MAAM,EAAE,CAAC;IAC1B,QAAQ,CAAC,EAAE,MAAM,CAAC;IAClB,sBAAsB,CAAC,EAAE,MAAM,CAAC;IAChC,UAAU,CAAC,EAAE,MAAM,CAAC;IACpB,UAAU,CAAC,EAAE,MAAM,CAAC;IACpB,gBAAgB,CAAC,EAAE,MAAM,CAAC;IAC1B,gBAAgB,CAAC,EAAE,MAAM,CAAC;IAC1B,UAAU,CAAC,EAAE,MAAM,CAAC;IACpB,SAAS,CAAC,EAAE,MAAM,CAAC;IACnB,QAAQ,CAAC,EAAE,MAAM,CAAC;IAClB,YAAY,CAAC,EAAE,MAAM,CAAC;IACtB,YAAY,CAAC,EAAE,YAAY,CAAC;IAC5B,UAAU,CAAC,EAAE,MAAM,CAAC;IACpB,eAAe,CAAC,EAAE,MAAM,CAAC;IACzB,kBAAkB,CAAC,EAAE,OAAO,CAAC;IAC7B,wBAAwB,CAAC,EAAE,MAAM,CAAC;IAClC,sBAAsB,CAAC,EAAE,MAAM,CAAC;IAChC,qBAAqB,CAAC,EAAE,MAAM,CAAC;IAC/B,SAAS,CAAC,EAAE,MAAM,CAAC;IACnB,oBAAoB,CAAC,EAAE,MAAM,CAAC;IAC9B,aAAa,CAAC,EAAE,MAAM,CAAC;CACxB;AAmID,eAAO,MAAM,oBAAoB,qBAAqB,CAAC;AACvD,eAAO,MAAM,sBAAsB,qCAAqC,CAAC;AACzE,eAAO,MAAM,6BAA6B,kFAAkF,CAAC;AAE7H,eAAO,MAAM,wBAAwB;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;CA2F3B,CAAC;AAEX,eAAO,MAAM,mBAAmB;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;CAgFtB,CAAC;AAEX,wBAAgB,4BAA4B;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;EAS3C;AAED,wBAAgB,uCAAuC,QAGtD;AAED,QAAA,MAAM,eAAe;kBAGL,iBAAiB;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;CA4LhC,CAAC;AAEF,eAAe,eAAe,CAAC"}
|