@xdarkicex/openclaw-memory-libravdb 1.9.10-beta.23 → 1.9.10-beta.24
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.js +8 -8
- package/dist/tools/memory-recall.js +11 -11
- package/openclaw.plugin.json +1 -1
- package/package.json +1 -1
package/dist/index.js
CHANGED
|
@@ -31334,12 +31334,12 @@ function createUpdateUserCardTool(getClient, logger = console) {
|
|
|
31334
31334
|
description: "Write what you've learned about a speaker. Prose format \u2014 write like you're describing a friend. Include identity, values, history, communication style, triggers, and what matters to them. This is the canonical record of who they are. If something changes, update it. Merge with previous understanding, don't replace entirely unless the user explicitly contradicts the record.",
|
|
31335
31335
|
parameters: UPDATE_USER_CARD_SCHEMA,
|
|
31336
31336
|
execute: async (_toolCallId, rawParams) => {
|
|
31337
|
-
const params = asParams(rawParams);
|
|
31338
|
-
const userId = readStr(params, "user_id");
|
|
31339
|
-
const card = readStr(params, "card");
|
|
31340
|
-
if (!userId) throw new Error("update_user_card requires user_id");
|
|
31341
|
-
if (!card) throw new Error("update_user_card requires card");
|
|
31342
31337
|
try {
|
|
31338
|
+
const params = asParams(rawParams);
|
|
31339
|
+
const userId = readStr(params, "user_id");
|
|
31340
|
+
const card = readStr(params, "card");
|
|
31341
|
+
if (!userId) return jsonResult({ ok: false, error: "update_user_card requires user_id" });
|
|
31342
|
+
if (!card) return jsonResult({ ok: false, error: "update_user_card requires card" });
|
|
31343
31343
|
const client = await getClient();
|
|
31344
31344
|
const resp = await client.upsertUserCard({
|
|
31345
31345
|
userId,
|
|
@@ -31360,10 +31360,10 @@ function createGetUserCardTool(getClient, logger = console) {
|
|
|
31360
31360
|
description: "PRIMARY identity lookup. Call this FIRST whenever someone asks about a person ('who is X', 'tell me about X', 'what do you know about X'). Returns the full prose identity card with metadata. Only use memory_search AFTER get_user_card if the card lacks detail.",
|
|
31361
31361
|
parameters: GET_USER_CARD_SCHEMA,
|
|
31362
31362
|
execute: async (_toolCallId, rawParams) => {
|
|
31363
|
-
const params = asParams(rawParams);
|
|
31364
|
-
const userId = readStr(params, "user_id");
|
|
31365
|
-
if (!userId) throw new Error("get_user_card requires user_id");
|
|
31366
31363
|
try {
|
|
31364
|
+
const params = asParams(rawParams);
|
|
31365
|
+
const userId = readStr(params, "user_id");
|
|
31366
|
+
if (!userId) return jsonResult({ card: null, error: "get_user_card requires user_id" });
|
|
31367
31367
|
const client = await getClient();
|
|
31368
31368
|
const resp = await client.getUserCard({ userId });
|
|
31369
31369
|
return jsonResult({
|
|
@@ -460,14 +460,14 @@ export function createUpdateUserCardTool(getClient, logger = console) {
|
|
|
460
460
|
"Merge with previous understanding, don't replace entirely unless the user explicitly contradicts the record.",
|
|
461
461
|
parameters: UPDATE_USER_CARD_SCHEMA,
|
|
462
462
|
execute: async (_toolCallId, rawParams) => {
|
|
463
|
-
const params = asParams(rawParams);
|
|
464
|
-
const userId = readStr(params, "user_id");
|
|
465
|
-
const card = readStr(params, "card");
|
|
466
|
-
if (!userId)
|
|
467
|
-
throw new Error("update_user_card requires user_id");
|
|
468
|
-
if (!card)
|
|
469
|
-
throw new Error("update_user_card requires card");
|
|
470
463
|
try {
|
|
464
|
+
const params = asParams(rawParams);
|
|
465
|
+
const userId = readStr(params, "user_id");
|
|
466
|
+
const card = readStr(params, "card");
|
|
467
|
+
if (!userId)
|
|
468
|
+
return jsonResult({ ok: false, error: "update_user_card requires user_id" });
|
|
469
|
+
if (!card)
|
|
470
|
+
return jsonResult({ ok: false, error: "update_user_card requires card" });
|
|
471
471
|
const client = await getClient();
|
|
472
472
|
const resp = await client.upsertUserCard({
|
|
473
473
|
userId,
|
|
@@ -492,11 +492,11 @@ export function createGetUserCardTool(getClient, logger = console) {
|
|
|
492
492
|
"Only use memory_search AFTER get_user_card if the card lacks detail.",
|
|
493
493
|
parameters: GET_USER_CARD_SCHEMA,
|
|
494
494
|
execute: async (_toolCallId, rawParams) => {
|
|
495
|
-
const params = asParams(rawParams);
|
|
496
|
-
const userId = readStr(params, "user_id");
|
|
497
|
-
if (!userId)
|
|
498
|
-
throw new Error("get_user_card requires user_id");
|
|
499
495
|
try {
|
|
496
|
+
const params = asParams(rawParams);
|
|
497
|
+
const userId = readStr(params, "user_id");
|
|
498
|
+
if (!userId)
|
|
499
|
+
return jsonResult({ card: null, error: "get_user_card requires user_id" });
|
|
500
500
|
const client = await getClient();
|
|
501
501
|
const resp = await client.getUserCard({ userId });
|
|
502
502
|
return jsonResult({
|
package/openclaw.plugin.json
CHANGED
|
@@ -2,7 +2,7 @@
|
|
|
2
2
|
"id": "libravdb-memory",
|
|
3
3
|
"name": "LibraVDB Memory",
|
|
4
4
|
"description": "Cognitive memory engine — causal graph reasoning, predictive context, identity tracking, and hybrid vector recall with back-door adjustment scoring",
|
|
5
|
-
"version": "1.9.10-beta.
|
|
5
|
+
"version": "1.9.10-beta.24",
|
|
6
6
|
"kind": [
|
|
7
7
|
"memory",
|
|
8
8
|
"context-engine"
|