@troykelly/openclaw-projects 0.0.55 → 0.0.56
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/index.d.ts +4 -2
- package/dist/index.d.ts.map +1 -1
- package/dist/index.js +14 -2
- package/dist/index.js.map +1 -1
- package/dist/register-openclaw.d.ts +2 -0
- package/dist/register-openclaw.d.ts.map +1 -1
- package/dist/register-openclaw.js +255 -5
- package/dist/register-openclaw.js.map +1 -1
- package/dist/tool-guidance/catalog.d.ts.map +1 -1
- package/dist/tool-guidance/catalog.js +14 -2
- package/dist/tool-guidance/catalog.js.map +1 -1
- package/dist/tools/index.d.ts +4 -2
- package/dist/tools/index.d.ts.map +1 -1
- package/dist/tools/index.js +6 -2
- package/dist/tools/index.js.map +1 -1
- package/dist/tools/memory-forget.d.ts +1 -0
- package/dist/tools/memory-forget.d.ts.map +1 -1
- package/dist/tools/memory-forget.js +8 -3
- package/dist/tools/memory-forget.js.map +1 -1
- package/dist/tools/memory-list.d.ts +104 -0
- package/dist/tools/memory-list.d.ts.map +1 -0
- package/dist/tools/memory-list.js +153 -0
- package/dist/tools/memory-list.js.map +1 -0
- package/dist/tools/memory-recall.d.ts +20 -0
- package/dist/tools/memory-recall.d.ts.map +1 -1
- package/dist/tools/memory-recall.js +17 -3
- package/dist/tools/memory-recall.js.map +1 -1
- package/dist/tools/memory-store.d.ts +1 -0
- package/dist/tools/memory-store.d.ts.map +1 -1
- package/dist/tools/memory-store.js +5 -1
- package/dist/tools/memory-store.js.map +1 -1
- package/dist/tools/memory-update.d.ts +76 -0
- package/dist/tools/memory-update.d.ts.map +1 -0
- package/dist/tools/memory-update.js +126 -0
- package/dist/tools/memory-update.js.map +1 -0
- package/dist/tools/notebooks.d.ts +24 -0
- package/dist/tools/notebooks.d.ts.map +1 -1
- package/dist/tools/notebooks.js +75 -0
- package/dist/tools/notebooks.js.map +1 -1
- package/dist/tools/skill-store.d.ts +1 -1
- package/openclaw.plugin.json +1 -1
- package/package.json +1 -1
package/dist/index.d.ts
CHANGED
|
@@ -16,7 +16,7 @@ import { type ApiClient } from './api-client.js';
|
|
|
16
16
|
import { type PluginContext } from './context.js';
|
|
17
17
|
import { type AutoRecallEvent, type AutoRecallResult, type AutoCaptureEvent, type HealthCheckResult } from './hooks.js';
|
|
18
18
|
import { type CliCommands } from './cli.js';
|
|
19
|
-
import { type MemoryRecallTool, type MemoryStoreTool, type MemoryForgetTool, type ProjectListTool, type ProjectGetTool, type ProjectCreateTool, type TodoListTool, type TodoCreateTool, type TodoCompleteTool, type ContactSearchTool, type ContactGetTool, type ContactCreateTool } from './tools/index.js';
|
|
19
|
+
import { type MemoryRecallTool, type MemoryStoreTool, type MemoryForgetTool, type MemoryListTool, type MemoryUpdateTool, type ProjectListTool, type ProjectGetTool, type ProjectCreateTool, type TodoListTool, type TodoCreateTool, type TodoCompleteTool, type ContactSearchTool, type ContactGetTool, type ContactCreateTool } from './tools/index.js';
|
|
20
20
|
/** Plugin registration context from OpenClaw runtime */
|
|
21
21
|
export interface RegistrationContext {
|
|
22
22
|
config: Record<string, unknown>;
|
|
@@ -28,6 +28,8 @@ export interface PluginTools {
|
|
|
28
28
|
memoryRecall: MemoryRecallTool;
|
|
29
29
|
memoryStore: MemoryStoreTool;
|
|
30
30
|
memoryForget: MemoryForgetTool;
|
|
31
|
+
memoryList: MemoryListTool;
|
|
32
|
+
memoryUpdate: MemoryUpdateTool;
|
|
31
33
|
projectList: ProjectListTool;
|
|
32
34
|
projectGet: ProjectGetTool;
|
|
33
35
|
projectCreate: ProjectCreateTool;
|
|
@@ -81,7 +83,7 @@ export { createApiClient } from './api-client.js';
|
|
|
81
83
|
export type { PluginContext, UserContext, AgentContext, SessionContext, } from './context.js';
|
|
82
84
|
export { extractContext, getUserScopeKey } from './context.js';
|
|
83
85
|
export type { MemoryRecallTool, MemoryRecallParams, MemoryRecallResult, Memory, MemoryStoreTool, MemoryStoreParams, MemoryStoreResult, StoredMemory, MemoryForgetTool, MemoryForgetParams, MemoryForgetResult, ProjectListTool, ProjectGetTool, ProjectCreateTool, ProjectListParams, ProjectGetParams, ProjectCreateParams, ProjectListResult, ProjectGetResult, ProjectCreateResult, Project, ProjectToolOptions, TodoListTool, TodoCreateTool, TodoCompleteTool, TodoListParams, TodoCreateParams, TodoCompleteParams, TodoListResult, TodoCreateResult, TodoCompleteResult, Todo, TodoToolOptions, ContactSearchTool, ContactGetTool, ContactCreateTool, ContactSearchParams, ContactGetParams, ContactCreateParams, ContactSearchResult, ContactGetResult, ContactCreateResult, Contact, ContactToolOptions, } from './tools/index.js';
|
|
84
|
-
export { createMemoryRecallTool, createMemoryStoreTool, createMemoryForgetTool, createProjectListTool, createProjectGetTool, createProjectCreateTool, createTodoListTool, createTodoCreateTool, createTodoCompleteTool, createContactSearchTool, createContactGetTool, createContactCreateTool, MemoryRecallParamsSchema, MemoryStoreParamsSchema, MemoryForgetParamsSchema, MemoryCategory, ProjectListParamsSchema, ProjectGetParamsSchema, ProjectCreateParamsSchema, ProjectStatus, TodoListParamsSchema, TodoCreateParamsSchema, TodoCompleteParamsSchema, ContactSearchParamsSchema, ContactGetParamsSchema, ContactCreateParamsSchema, } from './tools/index.js';
|
|
86
|
+
export { createMemoryRecallTool, createMemoryStoreTool, createMemoryForgetTool, createMemoryListTool, createMemoryUpdateTool, createProjectListTool, createProjectGetTool, createProjectCreateTool, createTodoListTool, createTodoCreateTool, createTodoCompleteTool, createContactSearchTool, createContactGetTool, createContactCreateTool, MemoryRecallParamsSchema, MemoryStoreParamsSchema, MemoryForgetParamsSchema, MemoryListParamsSchema, MemoryUpdateParamsSchema, MemoryCategory, ProjectListParamsSchema, ProjectGetParamsSchema, ProjectCreateParamsSchema, ProjectStatus, TodoListParamsSchema, TodoCreateParamsSchema, TodoCompleteParamsSchema, ContactSearchParamsSchema, ContactGetParamsSchema, ContactCreateParamsSchema, } from './tools/index.js';
|
|
85
87
|
export type { AutoRecallEvent, AutoRecallResult, AutoCaptureEvent, HealthCheckResult, AutoRecallHookOptions, AutoCaptureHookOptions, HealthCheckOptions, } from './hooks.js';
|
|
86
88
|
export { createAutoRecallHook, createAutoCaptureHook, createHealthCheck, } from './hooks.js';
|
|
87
89
|
export type { CliContext, CliCommands, CommandResult, RecallOptions, StatusData, UsersData, RecallData, MemoryItem, } from './cli.js';
|
package/dist/index.d.ts.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":"AAAA;;;;;;;;;GASG;AAGH,OAAO,EAAE,OAAO,EAAE,gBAAgB,EAAE,OAAO,EAAE,MAAM,wBAAwB,CAAC;AAG5E,YAAY,EACV,iBAAiB,EACjB,iBAAiB,EACjB,gBAAgB,EAChB,cAAc,EACd,WAAW,EACX,UAAU,EACV,UAAU,EACV,kBAAkB,EAClB,SAAS,EACT,WAAW,EACX,cAAc,EACd,+BAA+B,EAC/B,sBAAsB,EACtB,gCAAgC,EAChC,uBAAuB,EACvB,uBAAuB,EACvB,sBAAsB,EACtB,iBAAiB,GAClB,MAAM,yBAAyB,CAAC;AAEjC,OAAO,KAAK,EAAE,YAAY,EAAE,MAAM,aAAa,CAAC;AAEhD,OAAO,EAAgB,KAAK,MAAM,EAAE,MAAM,aAAa,CAAC;AACxD,OAAO,EAAmB,KAAK,SAAS,EAAE,MAAM,iBAAiB,CAAC;AAClE,OAAO,EAAmC,KAAK,aAAa,EAAE,MAAM,cAAc,CAAC;AACnF,OAAO,EAIL,KAAK,eAAe,EACpB,KAAK,gBAAgB,EACrB,KAAK,gBAAgB,EACrB,KAAK,iBAAiB,EACvB,MAAM,YAAY,CAAC;AACpB,OAAO,EAAqB,KAAK,WAAW,EAAE,MAAM,UAAU,CAAC;AAC/D,OAAO,
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":"AAAA;;;;;;;;;GASG;AAGH,OAAO,EAAE,OAAO,EAAE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AA0B,CAAC"}
|
package/dist/index.js
CHANGED
|
@@ -16,7 +16,7 @@ import { createApiClient } from './api-client.js';
|
|
|
16
16
|
import { extractContext, getUserScopeKey } from './context.js';
|
|
17
17
|
import { createAutoRecallHook, createAutoCaptureHook, createHealthCheck, } from './hooks.js';
|
|
18
18
|
import { createCliCommands } from './cli.js';
|
|
19
|
-
import { createMemoryRecallTool, createMemoryStoreTool, createMemoryForgetTool, createProjectListTool, createProjectGetTool, createProjectCreateTool, createTodoListTool, createTodoCreateTool, createTodoCompleteTool, createContactSearchTool, createContactGetTool, createContactCreateTool, } from './tools/index.js';
|
|
19
|
+
import { createMemoryRecallTool, createMemoryStoreTool, createMemoryForgetTool, createMemoryListTool, createMemoryUpdateTool, createProjectListTool, createProjectGetTool, createProjectCreateTool, createTodoListTool, createTodoCreateTool, createTodoCompleteTool, createContactSearchTool, createContactGetTool, createContactCreateTool, } from './tools/index.js';
|
|
20
20
|
/**
|
|
21
21
|
* Creates a plugin instance from resolved configuration.
|
|
22
22
|
* Internal helper used by both sync and async registration.
|
|
@@ -51,6 +51,18 @@ function createPluginInstance(config, logger, runtime) {
|
|
|
51
51
|
config,
|
|
52
52
|
user_id,
|
|
53
53
|
}),
|
|
54
|
+
memoryList: createMemoryListTool({
|
|
55
|
+
client: apiClient,
|
|
56
|
+
logger,
|
|
57
|
+
config,
|
|
58
|
+
user_id,
|
|
59
|
+
}),
|
|
60
|
+
memoryUpdate: createMemoryUpdateTool({
|
|
61
|
+
client: apiClient,
|
|
62
|
+
logger,
|
|
63
|
+
config,
|
|
64
|
+
user_id,
|
|
65
|
+
}),
|
|
54
66
|
projectList: createProjectListTool({
|
|
55
67
|
client: apiClient,
|
|
56
68
|
logger,
|
|
@@ -193,7 +205,7 @@ export { resolveSecret, resolveSecretSync, resolveSecrets, clearSecretCache, cle
|
|
|
193
205
|
export { createLogger, redactSensitive } from './logger.js';
|
|
194
206
|
export { createApiClient } from './api-client.js';
|
|
195
207
|
export { extractContext, getUserScopeKey } from './context.js';
|
|
196
|
-
export { createMemoryRecallTool, createMemoryStoreTool, createMemoryForgetTool, createProjectListTool, createProjectGetTool, createProjectCreateTool, createTodoListTool, createTodoCreateTool, createTodoCompleteTool, createContactSearchTool, createContactGetTool, createContactCreateTool, MemoryRecallParamsSchema, MemoryStoreParamsSchema, MemoryForgetParamsSchema, MemoryCategory, ProjectListParamsSchema, ProjectGetParamsSchema, ProjectCreateParamsSchema, ProjectStatus, TodoListParamsSchema, TodoCreateParamsSchema, TodoCompleteParamsSchema, ContactSearchParamsSchema, ContactGetParamsSchema, ContactCreateParamsSchema, } from './tools/index.js';
|
|
208
|
+
export { createMemoryRecallTool, createMemoryStoreTool, createMemoryForgetTool, createMemoryListTool, createMemoryUpdateTool, createProjectListTool, createProjectGetTool, createProjectCreateTool, createTodoListTool, createTodoCreateTool, createTodoCompleteTool, createContactSearchTool, createContactGetTool, createContactCreateTool, MemoryRecallParamsSchema, MemoryStoreParamsSchema, MemoryForgetParamsSchema, MemoryListParamsSchema, MemoryUpdateParamsSchema, MemoryCategory, ProjectListParamsSchema, ProjectGetParamsSchema, ProjectCreateParamsSchema, ProjectStatus, TodoListParamsSchema, TodoCreateParamsSchema, TodoCompleteParamsSchema, ContactSearchParamsSchema, ContactGetParamsSchema, ContactCreateParamsSchema, } from './tools/index.js';
|
|
197
209
|
export { createAutoRecallHook, createAutoCaptureHook, createHealthCheck, } from './hooks.js';
|
|
198
210
|
export { createCliCommands, createStatusCommand, createUsersCommand, createRecallCommand, } from './cli.js';
|
|
199
211
|
export { createGatewayMethods, registerGatewayRpcMethods, } from './gateway/rpc-methods.js';
|
package/dist/index.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.js","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":"AAAA;;;;;;;;;GASG;AAEH,iDAAiD;AACjD,OAAO,EAAE,OAAO,EAAE,gBAAgB,EAAE,OAAO,EAAE,MAAM,wBAAwB,CAAC;AAyB5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pB,sBAAsB,EACtB,wBAAwB,EACxB,yBAAyB,EACzB,sBAAsB,EACtB,yBAAyB,GAC1B,MAAM,kBAAkB,CAAC;AAY1B,OAAO,EACL,oBAAoB,EACpB,qBAAqB,EACrB,iBAAiB,GAClB,MAAM,YAAY,CAAC;AAapB,OAAO,EACL,iBAAiB,EACjB,mBAAmB,EACnB,kBAAkB,EAClB,mBAAmB,GACpB,MAAM,UAAU,CAAC;AAelB,OAAO,EACL,oBAAoB,EACpB,yBAAyB,GAC1B,MAAM,0BAA0B,CAAC"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"register-openclaw.d.ts","sourceRoot":"","sources":["../src/register-openclaw.ts"],"names":[],"mappings":"AAAA;;;;;;;;GAQG;AAEH,OAAO,EAAE,CAAC,EAAY,MAAM,KAAK,CAAC;AAClC,OAAO,EAAE,KAAK,SAAS,EAAmB,MAAM,iBAAiB,CAAC;AAClE,OAAO,EAAE,KAAK,YAAY,EAA2G,MAAM,aAAa,CAAC;AAQzJ,OAAO,EAAgB,KAAK,MAAM,EAAE,MAAM,aAAa,CAAC;
|
|
1
|
+
{"version":3,"file":"register-openclaw.d.ts","sourceRoot":"","sources":["../src/register-openclaw.ts"],"names":[],"mappings":"AAAA;;;;;;;;GAQG;AAEH,OAAO,EAAE,CAAC,EAAY,MAAM,KAAK,CAAC;AAClC,OAAO,EAAE,KAAK,SAAS,EAAmB,MAAM,iBAAiB,CAAC;AAClE,OAAO,EAAE,KAAK,YAAY,EAA2G,MAAM,aAAa,CAAC;AAQzJ,OAAO,EAAgB,KAAK,MAAM,EAAE,MAAM,aAAa,CAAC;AAyExD,OAAO,KAAK,EACV,eAAe,EAEf,UAAU,EAcV,iBAAiB,EAGjB,UAAU,EACX,MAAM,yBAAyB,CAAC;AAajC,8CAA8C;AAC9C,UAAU,WAAW;IACnB,MAAM,EAAE,YAAY,CAAC;IACrB,MAAM,EAAE,MAAM,CAAC;IACf,SAAS,EAAE,SAAS,CAAC;IACrB,oEAAoE;IACpE,OAAO,EAAE,MAAM,CAAC;IAChB,uGAAuG;IACvG,UAAU,CAAC,EAAE,MAAM,CAAC;IACpB,4GAA4G;IAC5G,iBAAiB,EAAE;QAAE,OAAO,EAAE,MAAM,CAAC;QAAC,MAAM,EAAE,MAAM,EAAE,CAAA;KAAE,CAAC;IACzD,oEAAoE;IACpE,eAAe,EAAE,OAAO,CAAC;IACzB,mEAAmE;IACnE,sBAAsB,EAAE,MAAM,CAAC;IAC/B,2DAA2D;IAC3D,eAAe,EAAE,OAAO,CAAC;IACzB,gEAAgE;IAChE,gBAAgB,CAAC,EAAE,MAAM,CAAC;IAC1B,sFAAsF;IACtF,mBAAmB,EAAE,GAAG,CAAC,MAAM,CAAC,CAAC;CAClC;AAED;;;GAGG;AACH,eAAO,MAAM,qBAAqB;;;;;;iBAUhC,CAAC;AAEH;;;;;;;;;;GAUG;AACH,wBAAgB,iBAAiB,CAAC,MAAM,EAAE,UAAU,GAAG,eAAe,CA6CrE;AA4pDD;;;;GAIG;AACH,wBAAsB,sBAAsB,CAAC,KAAK,EAAE,WAAW,GAAG,OAAO,CAAC,IAAI,CAAC,CA6C9E;AA+7ED;;;;;GAKG;AACH,eAAO,MAAM,gBAAgB,EAAE,iBAmsD9B,CAAC;AAEF,yDAAyD;AACzD,eAAe,gBAAgB,CAAC;AAEhC,2CAA2C;AAC3C,eAAO,MAAM,OAAO;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;CA0CnB,CAAC"}
|
|
@@ -27,8 +27,8 @@ createDevSessionCreateTool, createDevSessionListTool, createDevSessionGetTool, c
|
|
|
27
27
|
createDevSessionSearchTool,
|
|
28
28
|
// Note tools (Issue #1921)
|
|
29
29
|
createNoteCreateTool, createNoteGetTool, createNoteUpdateTool, createNoteDeleteTool, createNoteSearchTool,
|
|
30
|
-
// Notebook tools (Issue #1921)
|
|
31
|
-
createNotebookListTool, createNotebookCreateTool, createNotebookGetTool,
|
|
30
|
+
// Notebook tools (Issue #1921, #2342)
|
|
31
|
+
createNotebookListTool, createNotebookCreateTool, createNotebookGetTool, createNotebookDeleteTool,
|
|
32
32
|
// Tool guide meta-tool (Issue #1923)
|
|
33
33
|
createToolGuideTool,
|
|
34
34
|
// Dev prompt tools (Epic #2011, Issue #2015)
|
|
@@ -176,6 +176,21 @@ const memoryRecallSchema = {
|
|
|
176
176
|
description: 'Scope search to a specific relationship between contacts',
|
|
177
177
|
format: 'uuid',
|
|
178
178
|
},
|
|
179
|
+
since: {
|
|
180
|
+
type: 'string',
|
|
181
|
+
description: 'Filter memories created after this time. Relative duration ("48h", "7d", "2w", "1m") or ISO date.',
|
|
182
|
+
maxLength: 100,
|
|
183
|
+
},
|
|
184
|
+
before: {
|
|
185
|
+
type: 'string',
|
|
186
|
+
description: 'Filter memories created before this time. Relative duration ("48h", "7d", "2w", "1m") or ISO date.',
|
|
187
|
+
maxLength: 100,
|
|
188
|
+
},
|
|
189
|
+
period: {
|
|
190
|
+
type: 'string',
|
|
191
|
+
description: 'Shorthand time period filter. Mutually exclusive with since/before.',
|
|
192
|
+
enum: ['today', 'yesterday', 'this_week', 'last_week', 'this_month', 'last_month'],
|
|
193
|
+
},
|
|
179
194
|
location: {
|
|
180
195
|
type: 'object',
|
|
181
196
|
description: 'Current location for geo-aware recall ranking',
|
|
@@ -246,6 +261,10 @@ const memoryStoreSchema = {
|
|
|
246
261
|
description: 'Scope memory to a specific relationship between contacts',
|
|
247
262
|
format: 'uuid',
|
|
248
263
|
},
|
|
264
|
+
pinned: {
|
|
265
|
+
type: 'boolean',
|
|
266
|
+
description: 'When true, this memory is always included in context injection regardless of semantic similarity (Issue #2380)',
|
|
267
|
+
},
|
|
249
268
|
location: {
|
|
250
269
|
type: 'object',
|
|
251
270
|
description: 'Geographic location to associate with this memory',
|
|
@@ -294,6 +313,105 @@ const memoryForgetSchema = {
|
|
|
294
313
|
},
|
|
295
314
|
},
|
|
296
315
|
};
|
|
316
|
+
/**
|
|
317
|
+
* Memory list tool JSON Schema (Issue #2377)
|
|
318
|
+
*/
|
|
319
|
+
const memoryListSchema = {
|
|
320
|
+
type: 'object',
|
|
321
|
+
properties: {
|
|
322
|
+
limit: {
|
|
323
|
+
type: 'integer',
|
|
324
|
+
description: 'Maximum number of memories to return (1-100)',
|
|
325
|
+
minimum: 1,
|
|
326
|
+
maximum: 100,
|
|
327
|
+
default: 20,
|
|
328
|
+
},
|
|
329
|
+
offset: {
|
|
330
|
+
type: 'integer',
|
|
331
|
+
description: 'Number of memories to skip for pagination',
|
|
332
|
+
minimum: 0,
|
|
333
|
+
default: 0,
|
|
334
|
+
},
|
|
335
|
+
category: {
|
|
336
|
+
type: 'string',
|
|
337
|
+
description: 'Filter by memory category',
|
|
338
|
+
enum: ['preference', 'fact', 'decision', 'context', 'entity', 'other'],
|
|
339
|
+
},
|
|
340
|
+
tags: {
|
|
341
|
+
type: 'array',
|
|
342
|
+
description: 'Filter by tags',
|
|
343
|
+
items: { type: 'string', minLength: 1, maxLength: 100 },
|
|
344
|
+
},
|
|
345
|
+
since: {
|
|
346
|
+
type: 'string',
|
|
347
|
+
description: 'Filter memories created after this time. Relative duration or ISO date.',
|
|
348
|
+
maxLength: 100,
|
|
349
|
+
},
|
|
350
|
+
before: {
|
|
351
|
+
type: 'string',
|
|
352
|
+
description: 'Filter memories created before this time. Relative duration or ISO date.',
|
|
353
|
+
maxLength: 100,
|
|
354
|
+
},
|
|
355
|
+
period: {
|
|
356
|
+
type: 'string',
|
|
357
|
+
description: 'Shorthand time period filter. Mutually exclusive with since/before.',
|
|
358
|
+
enum: ['today', 'yesterday', 'this_week', 'last_week', 'this_month', 'last_month'],
|
|
359
|
+
},
|
|
360
|
+
sort: {
|
|
361
|
+
type: 'string',
|
|
362
|
+
description: 'Sort field',
|
|
363
|
+
enum: ['created_at', 'updated_at'],
|
|
364
|
+
},
|
|
365
|
+
sort_direction: {
|
|
366
|
+
type: 'string',
|
|
367
|
+
description: 'Sort direction',
|
|
368
|
+
enum: ['asc', 'desc'],
|
|
369
|
+
},
|
|
370
|
+
},
|
|
371
|
+
};
|
|
372
|
+
/**
|
|
373
|
+
* Memory update tool JSON Schema (Issue #2378)
|
|
374
|
+
*/
|
|
375
|
+
const memoryUpdateSchema = {
|
|
376
|
+
type: 'object',
|
|
377
|
+
properties: {
|
|
378
|
+
memory_id: {
|
|
379
|
+
type: 'string',
|
|
380
|
+
description: 'ID of the memory to update (UUID)',
|
|
381
|
+
},
|
|
382
|
+
text: {
|
|
383
|
+
type: 'string',
|
|
384
|
+
description: 'New content for the memory',
|
|
385
|
+
minLength: 1,
|
|
386
|
+
maxLength: 10000,
|
|
387
|
+
},
|
|
388
|
+
category: {
|
|
389
|
+
type: 'string',
|
|
390
|
+
description: 'New category for the memory',
|
|
391
|
+
enum: ['preference', 'fact', 'decision', 'context', 'entity', 'other'],
|
|
392
|
+
},
|
|
393
|
+
importance: {
|
|
394
|
+
type: 'number',
|
|
395
|
+
description: 'New importance score (0-1)',
|
|
396
|
+
minimum: 0,
|
|
397
|
+
maximum: 1,
|
|
398
|
+
},
|
|
399
|
+
tags: {
|
|
400
|
+
type: 'array',
|
|
401
|
+
description: 'New tags (replaces all existing tags)',
|
|
402
|
+
items: { type: 'string', minLength: 1, maxLength: 100 },
|
|
403
|
+
},
|
|
404
|
+
expires_at: {
|
|
405
|
+
type: 'string',
|
|
406
|
+
description: 'Set or clear expiry (ISO date string, or omit to leave unchanged)',
|
|
407
|
+
},
|
|
408
|
+
pinned: {
|
|
409
|
+
type: 'boolean',
|
|
410
|
+
description: 'When true, this memory is always included in context injection regardless of semantic similarity (Issue #2380)',
|
|
411
|
+
},
|
|
412
|
+
},
|
|
413
|
+
required: ['memory_id'],
|
|
414
|
+
};
|
|
297
415
|
/**
|
|
298
416
|
* Project list tool JSON Schema
|
|
299
417
|
*/
|
|
@@ -1698,7 +1816,7 @@ function createToolHandlers(state) {
|
|
|
1698
1816
|
}
|
|
1699
1817
|
return {
|
|
1700
1818
|
async memory_recall(params) {
|
|
1701
|
-
const { query, limit = config.maxRecallMemories, category, tags, relationship_id, location, location_radius_km, location_weight, } = params;
|
|
1819
|
+
const { query, limit = config.maxRecallMemories, category, tags, relationship_id, since, before, period, location, location_radius_km, location_weight, } = params;
|
|
1702
1820
|
try {
|
|
1703
1821
|
// Over-fetch when location is provided to allow geo re-ranking
|
|
1704
1822
|
const apiLimit = location ? Math.min(limit * 3, 60) : limit;
|
|
@@ -1709,6 +1827,12 @@ function createToolHandlers(state) {
|
|
|
1709
1827
|
queryParams.set('tags', tags.join(','));
|
|
1710
1828
|
if (relationship_id)
|
|
1711
1829
|
queryParams.set('relationship_id', relationship_id);
|
|
1830
|
+
if (since)
|
|
1831
|
+
queryParams.set('since', since);
|
|
1832
|
+
if (before)
|
|
1833
|
+
queryParams.set('before', before);
|
|
1834
|
+
if (period)
|
|
1835
|
+
queryParams.set('period', period);
|
|
1712
1836
|
// Namespace scoping (Issue #1428)
|
|
1713
1837
|
const ns = getRecallNamespaces(params);
|
|
1714
1838
|
if (ns.length > 0)
|
|
@@ -1763,7 +1887,7 @@ function createToolHandlers(state) {
|
|
|
1763
1887
|
},
|
|
1764
1888
|
async memory_store(params) {
|
|
1765
1889
|
// Accept 'text' (OpenClaw native) or 'content' (backwards compat)
|
|
1766
|
-
const { text, content: contentAlias, category = 'other', importance = 0.7, tags, relationship_id, location, } = params;
|
|
1890
|
+
const { text, content: contentAlias, category = 'other', importance = 0.7, tags, relationship_id, location, pinned, } = params;
|
|
1767
1891
|
const memoryText = text || contentAlias;
|
|
1768
1892
|
if (!memoryText) {
|
|
1769
1893
|
return { success: false, error: 'text is required' };
|
|
@@ -1781,6 +1905,8 @@ function createToolHandlers(state) {
|
|
|
1781
1905
|
payload.tags = tags;
|
|
1782
1906
|
if (relationship_id)
|
|
1783
1907
|
payload.relationship_id = relationship_id;
|
|
1908
|
+
if (pinned !== undefined)
|
|
1909
|
+
payload.pinned = pinned;
|
|
1784
1910
|
if (location) {
|
|
1785
1911
|
payload.lat = location.lat;
|
|
1786
1912
|
payload.lng = location.lng;
|
|
@@ -1880,6 +2006,108 @@ function createToolHandlers(state) {
|
|
|
1880
2006
|
return { success: false, error: 'Failed to forget memory' };
|
|
1881
2007
|
}
|
|
1882
2008
|
},
|
|
2009
|
+
async memory_list(params) {
|
|
2010
|
+
const { limit = 20, offset = 0, category, tags, since, before, period, sort, sort_direction, } = params;
|
|
2011
|
+
try {
|
|
2012
|
+
const queryParams = new URLSearchParams({ limit: String(limit), offset: String(offset) });
|
|
2013
|
+
if (category) {
|
|
2014
|
+
const memory_type = category === 'other' ? 'note' : category;
|
|
2015
|
+
queryParams.set('memory_type', memory_type);
|
|
2016
|
+
}
|
|
2017
|
+
if (tags && tags.length > 0)
|
|
2018
|
+
queryParams.set('tags', tags.join(','));
|
|
2019
|
+
if (since)
|
|
2020
|
+
queryParams.set('since', since);
|
|
2021
|
+
if (before)
|
|
2022
|
+
queryParams.set('before', before);
|
|
2023
|
+
if (period)
|
|
2024
|
+
queryParams.set('period', period);
|
|
2025
|
+
if (sort)
|
|
2026
|
+
queryParams.set('sort', sort);
|
|
2027
|
+
if (sort_direction)
|
|
2028
|
+
queryParams.set('sort_direction', sort_direction);
|
|
2029
|
+
// Namespace scoping (consistent with memory_recall)
|
|
2030
|
+
const listNs = getRecallNamespaces(params);
|
|
2031
|
+
if (listNs.length > 0)
|
|
2032
|
+
queryParams.set('namespaces', listNs.join(','));
|
|
2033
|
+
const response = await apiClient.get(`/memories/unified?${queryParams}`, reqOpts());
|
|
2034
|
+
if (!response.success) {
|
|
2035
|
+
return { success: false, error: response.error.message };
|
|
2036
|
+
}
|
|
2037
|
+
const rawMemories = response.data.memories ?? [];
|
|
2038
|
+
const total = response.data.total ?? rawMemories.length;
|
|
2039
|
+
const memories = rawMemories.map((m) => ({
|
|
2040
|
+
...m,
|
|
2041
|
+
category: m.type === 'note' ? 'other' : m.type,
|
|
2042
|
+
}));
|
|
2043
|
+
const content = memories.length > 0
|
|
2044
|
+
? `Showing ${offset + 1}-${offset + memories.length} of ${total} memories:\n` +
|
|
2045
|
+
memories.map((m) => {
|
|
2046
|
+
const tagSuffix = m.tags && m.tags.length > 0 ? ` {${m.tags.join(', ')}}` : '';
|
|
2047
|
+
const timestamp = m.created_at ? ` (${m.created_at})` : '';
|
|
2048
|
+
return `- [${m.category}]${tagSuffix} ${m.content}${timestamp}`;
|
|
2049
|
+
}).join('\n')
|
|
2050
|
+
: 'No memories found.';
|
|
2051
|
+
return {
|
|
2052
|
+
success: true,
|
|
2053
|
+
data: {
|
|
2054
|
+
content,
|
|
2055
|
+
details: { count: memories.length, total, offset, memories, user_id: state.agentId },
|
|
2056
|
+
},
|
|
2057
|
+
};
|
|
2058
|
+
}
|
|
2059
|
+
catch (error) {
|
|
2060
|
+
logger.error('memory_list failed', { error });
|
|
2061
|
+
return { success: false, error: 'Failed to list memories' };
|
|
2062
|
+
}
|
|
2063
|
+
},
|
|
2064
|
+
async memory_update(params) {
|
|
2065
|
+
const { memory_id, text, category, importance, tags, expires_at, pinned, } = params;
|
|
2066
|
+
if (!memory_id) {
|
|
2067
|
+
return { success: false, error: 'memory_id is required' };
|
|
2068
|
+
}
|
|
2069
|
+
try {
|
|
2070
|
+
const payload = {};
|
|
2071
|
+
if (text !== undefined)
|
|
2072
|
+
payload.content = text;
|
|
2073
|
+
if (category !== undefined)
|
|
2074
|
+
payload.memory_type = category === 'other' ? 'note' : category;
|
|
2075
|
+
if (importance !== undefined)
|
|
2076
|
+
payload.importance = importance;
|
|
2077
|
+
if (tags !== undefined)
|
|
2078
|
+
payload.tags = tags;
|
|
2079
|
+
if (expires_at !== undefined)
|
|
2080
|
+
payload.expires_at = expires_at;
|
|
2081
|
+
if (pinned !== undefined)
|
|
2082
|
+
payload.pinned = pinned;
|
|
2083
|
+
if (Object.keys(payload).length === 0) {
|
|
2084
|
+
return { success: false, error: 'At least one field besides memory_id must be provided' };
|
|
2085
|
+
}
|
|
2086
|
+
const response = await apiClient.patch(`/memories/${memory_id}`, payload, reqOptsScoped());
|
|
2087
|
+
if (!response.success) {
|
|
2088
|
+
return { success: false, error: response.error.message };
|
|
2089
|
+
}
|
|
2090
|
+
const updated = response.data;
|
|
2091
|
+
const preview = (updated.content ?? text ?? '').slice(0, 100);
|
|
2092
|
+
return {
|
|
2093
|
+
success: true,
|
|
2094
|
+
data: {
|
|
2095
|
+
content: `Updated memory ${memory_id}: "${preview}"`,
|
|
2096
|
+
details: {
|
|
2097
|
+
id: memory_id,
|
|
2098
|
+
category: updated.type === 'note' ? 'other' : (updated.type ?? category),
|
|
2099
|
+
importance: updated.importance ?? importance,
|
|
2100
|
+
tags: updated.tags ?? tags,
|
|
2101
|
+
user_id: state.agentId,
|
|
2102
|
+
},
|
|
2103
|
+
},
|
|
2104
|
+
};
|
|
2105
|
+
}
|
|
2106
|
+
catch (error) {
|
|
2107
|
+
logger.error('memory_update failed', { error });
|
|
2108
|
+
return { success: false, error: 'Failed to update memory' };
|
|
2109
|
+
}
|
|
2110
|
+
},
|
|
1883
2111
|
async project_list(params) {
|
|
1884
2112
|
const { status = 'active', limit = 10 } = params;
|
|
1885
2113
|
try {
|
|
@@ -3534,7 +3762,7 @@ export const registerOpenClaw = (api) => {
|
|
|
3534
3762
|
}
|
|
3535
3763
|
// Create tool handlers
|
|
3536
3764
|
const handlers = createToolHandlers(state);
|
|
3537
|
-
// Register all
|
|
3765
|
+
// Register all 32 tools with correct OpenClaw Gateway execute signature
|
|
3538
3766
|
// Signature: (toolCallId: string, params: T, signal?: AbortSignal, onUpdate?: (partial: any) => void) => AgentToolResult
|
|
3539
3767
|
const tools = [
|
|
3540
3768
|
{
|
|
@@ -3564,6 +3792,24 @@ export const registerOpenClaw = (api) => {
|
|
|
3564
3792
|
return toAgentToolResult(result);
|
|
3565
3793
|
},
|
|
3566
3794
|
},
|
|
3795
|
+
{
|
|
3796
|
+
name: 'memory_list',
|
|
3797
|
+
description: 'Browse and paginate through stored memories. Use when you need to enumerate, audit, or inventory memories without a search query. Supports filtering by category, tags, and time range. Read-only.',
|
|
3798
|
+
parameters: withNamespaces(memoryListSchema),
|
|
3799
|
+
execute: async (_toolCallId, params, _signal, _onUpdate) => {
|
|
3800
|
+
const result = await handlers.memory_list(params);
|
|
3801
|
+
return toAgentToolResult(result);
|
|
3802
|
+
},
|
|
3803
|
+
},
|
|
3804
|
+
{
|
|
3805
|
+
name: 'memory_update',
|
|
3806
|
+
description: 'Update an existing memory in-place. Use to modify content, category, tags, importance, or expiry without deleting and recreating. Preserves original creation timestamp and memory ID.',
|
|
3807
|
+
parameters: withNamespace(memoryUpdateSchema),
|
|
3808
|
+
execute: async (_toolCallId, params, _signal, _onUpdate) => {
|
|
3809
|
+
const result = await handlers.memory_update(params);
|
|
3810
|
+
return toAgentToolResult(result);
|
|
3811
|
+
},
|
|
3812
|
+
},
|
|
3567
3813
|
{
|
|
3568
3814
|
name: 'project_list',
|
|
3569
3815
|
description: 'List all projects, optionally filtered by status (active/completed/archived). Use when browsing projects by status. For natural-language project searches, prefer project_search. Read-only.',
|
|
@@ -4219,6 +4465,7 @@ export const registerOpenClaw = (api) => {
|
|
|
4219
4465
|
createNotebookListTool,
|
|
4220
4466
|
createNotebookCreateTool,
|
|
4221
4467
|
createNotebookGetTool,
|
|
4468
|
+
createNotebookDeleteTool,
|
|
4222
4469
|
];
|
|
4223
4470
|
for (const factory of notebookToolFactories) {
|
|
4224
4471
|
// eslint-disable-next-line @typescript-eslint/no-explicit-any -- factory functions have heterogeneous option types that share the same shape
|
|
@@ -4333,6 +4580,7 @@ export const registerOpenClaw = (api) => {
|
|
|
4333
4580
|
notebook_list: 'notebooks',
|
|
4334
4581
|
notebook_create: 'notebooks',
|
|
4335
4582
|
notebook_get: 'notebooks',
|
|
4583
|
+
notebook_delete: 'notebooks',
|
|
4336
4584
|
// File share (1)
|
|
4337
4585
|
file_share: 'file_share',
|
|
4338
4586
|
// Dev prompts (5)
|
|
@@ -5060,6 +5308,8 @@ export const schemas = {
|
|
|
5060
5308
|
memoryRecall: withNamespaces(memoryRecallSchema),
|
|
5061
5309
|
memoryStore: withNamespace(memoryStoreSchema),
|
|
5062
5310
|
memoryForget: withNamespaces(memoryForgetSchema),
|
|
5311
|
+
memoryList: withNamespaces(memoryListSchema),
|
|
5312
|
+
memoryUpdate: withNamespace(memoryUpdateSchema),
|
|
5063
5313
|
projectList: withNamespaces(projectListSchema),
|
|
5064
5314
|
projectGet: withNamespaces(projectGetSchema),
|
|
5065
5315
|
projectCreate: withNamespace(projectCreateSchema),
|