@xdarkicex/openclaw-memory-libravdb 1.9.10-beta.26 → 1.9.10-beta.27

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 CHANGED
@@ -31048,11 +31048,11 @@ function buildToolGuidance(availableTools) {
31048
31048
  if (hasExpand) {
31049
31049
  lines.push(
31050
31050
  "### Causal Graph Traversal",
31051
- "When the user asks about causes, patterns, or relationships between people/events:",
31052
- "1. Start with `get_user_card` to anchor on identity",
31053
- '2. Call `memory_expand` with `record_id="__user_card__"` to walk causal edges',
31051
+ "When the user asks about causes, patterns, or relationships:",
31052
+ "1. `memory_search` for the people/events in question to get record IDs",
31053
+ "2. `memory_expand` with the most relevant `record_id` to walk causal edges",
31054
31054
  "3. Follow interesting edges \u2014 use `memory_get` for full detail on connected records",
31055
- "4. Use `memory_search` only as fallback for facts the graph doesn't cover",
31055
+ "4. Use `get_user_card` to cross-reference identity context",
31056
31056
  ""
31057
31057
  );
31058
31058
  }
@@ -31100,7 +31100,7 @@ var MEMORY_EXPAND_SCHEMA = {
31100
31100
  },
31101
31101
  record_id: {
31102
31102
  type: "string",
31103
- description: "Record ID for causal graph traversal. Use IDs from memory_search/memory_get results, or '__user_card__' for identity-anchored expansion."
31103
+ description: "Record ID for causal graph traversal. Use exact IDs from memory_search or memory_get results."
31104
31104
  },
31105
31105
  maxDepth: {
31106
31106
  type: "number",
@@ -31240,7 +31240,7 @@ function createMemoryExpandTool(getClient, getSessionKey, logger = console, getS
31240
31240
  return {
31241
31241
  name: "memory_expand",
31242
31242
  label: "Memory Expand",
31243
- description: "Expand compacted summaries OR walk causal graph edges from ANY record. Summary mode (summaryIds): walk the summary tree up to maxDepth levels. Graph mode (record_id): walk causal edges (why_ids/how_ids/hop_targets) from a record ID. Use IDs from memory_search or memory_get results \u2014 any ingested turn, memory, or summary has graph edges. Use '__user_card__' for identity-anchored traversal. For large expansions, spawns a sub-agent. Use memory_describe first to check if expansion is warranted.",
31243
+ description: "Expand compacted summaries OR walk causal graph edges from ANY record. Summary mode (summaryIds): walk the summary tree up to maxDepth levels. Graph mode (record_id): walk causal edges (why_ids/how_ids/hop_targets) from a record ID. Use exact IDs from memory_search or memory_get results \u2014 any ingested turn, memory, or summary has graph edges. After get_user_card for context, search for related people/events then expand the most relevant hit. For large expansions, spawns a sub-agent. Use memory_describe first to check if expansion is warranted.",
31244
31244
  parameters: MEMORY_EXPAND_SCHEMA,
31245
31245
  execute: async (_toolCallId, rawParams) => {
31246
31246
  const params = asParams(rawParams);
@@ -52,7 +52,7 @@ function buildToolGuidance(availableTools) {
52
52
  }
53
53
  // ── Causal graph traversal (when expand supports record_id) ──
54
54
  if (hasExpand) {
55
- lines.push("### Causal Graph Traversal", "When the user asks about causes, patterns, or relationships between people/events:", "1. Start with `get_user_card` to anchor on identity", "2. Call `memory_expand` with `record_id=\"__user_card__\"` to walk causal edges", "3. Follow interesting edges — use `memory_get` for full detail on connected records", "4. Use `memory_search` only as fallback for facts the graph doesn't cover", "");
55
+ lines.push("### Causal Graph Traversal", "When the user asks about causes, patterns, or relationships:", "1. `memory_search` for the people/events in question to get record IDs", "2. `memory_expand` with the most relevant `record_id` to walk causal edges", "3. Follow interesting edges — use `memory_get` for full detail on connected records", "4. Use `get_user_card` to cross-reference identity context", "");
56
56
  }
57
57
  lines.push("LibraVDB memory is vector-backed and retrieved through tools, not files.", "");
58
58
  return lines;
@@ -84,7 +84,7 @@ export declare function createMemoryExpandTool(getClient: ClientGetter, getSessi
84
84
  };
85
85
  readonly record_id: {
86
86
  readonly type: "string";
87
- readonly description: "Record ID for causal graph traversal. Use IDs from memory_search/memory_get results, or '__user_card__' for identity-anchored expansion.";
87
+ readonly description: "Record ID for causal graph traversal. Use exact IDs from memory_search or memory_get results.";
88
88
  };
89
89
  readonly maxDepth: {
90
90
  readonly type: "number";
@@ -33,7 +33,7 @@ const MEMORY_EXPAND_SCHEMA = {
33
33
  },
34
34
  record_id: {
35
35
  type: "string",
36
- description: "Record ID for causal graph traversal. Use IDs from memory_search/memory_get results, or '__user_card__' for identity-anchored expansion.",
36
+ description: "Record ID for causal graph traversal. Use exact IDs from memory_search or memory_get results.",
37
37
  },
38
38
  maxDepth: {
39
39
  type: "number",
@@ -197,9 +197,10 @@ export function createMemoryExpandTool(getClient, getSessionKey, logger = consol
197
197
  description: "Expand compacted summaries OR walk causal graph edges from ANY record. " +
198
198
  "Summary mode (summaryIds): walk the summary tree up to maxDepth levels. " +
199
199
  "Graph mode (record_id): walk causal edges (why_ids/how_ids/hop_targets) " +
200
- "from a record ID. Use IDs from memory_search or memory_get results — " +
200
+ "from a record ID. Use exact IDs from memory_search or memory_get results — " +
201
201
  "any ingested turn, memory, or summary has graph edges. " +
202
- "Use '__user_card__' for identity-anchored traversal. " +
202
+ "After get_user_card for context, search for related people/events then " +
203
+ "expand the most relevant hit. " +
203
204
  "For large expansions, spawns a sub-agent. " +
204
205
  "Use memory_describe first to check if expansion is warranted.",
205
206
  parameters: MEMORY_EXPAND_SCHEMA,
@@ -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.26",
5
+ "version": "1.9.10-beta.27",
6
6
  "kind": [
7
7
  "memory",
8
8
  "context-engine"
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@xdarkicex/openclaw-memory-libravdb",
3
- "version": "1.9.10-beta.26",
3
+ "version": "1.9.10-beta.27",
4
4
  "type": "module",
5
5
  "main": "./dist/index.js",
6
6
  "types": "./dist/index.d.ts",