@digitalforgestudios/openclaw-sulcus 3.1.0 → 3.1.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/index.ts CHANGED
@@ -288,7 +288,7 @@ const sulcusPlugin = {
288
288
  throw new Error(`Sulcus unavailable: ${nativeLoader.error || "WASM not loaded"}`);
289
289
  }
290
290
  const res = await sulcusMem.search_memory(params.query, params.limit ?? 5);
291
- const results = res?.results ?? res;
291
+ const results = res?.results ?? res?.items ?? res?.nodes ?? res ?? [];
292
292
  return {
293
293
  content: [{ type: "text", text: JSON.stringify(results, null, 2) }],
294
294
  details: { results, backend: backendMode, namespace }
@@ -325,9 +325,11 @@ const sulcusPlugin = {
325
325
  }
326
326
 
327
327
  const res = await sulcusMem.add_memory(params.content, params.memory_type ?? null);
328
+ const nodeId = res?.id ?? "unknown";
329
+ const mtype = params.memory_type || "episodic";
328
330
  return {
329
- content: [{ type: "text", text: `Stored [${params.memory_type || "episodic"}] memory: "${(params.content || "").substring(0, 80)}..." [${backendMode}] namespace: ${namespace}` }],
330
- details: { ...res, backend: backendMode, namespace }
331
+ content: [{ type: "text", text: `Stored [${mtype}] memory (id: ${nodeId}) → backend: ${backendMode}, namespace: ${namespace}` }],
332
+ details: { id: nodeId, memory_type: mtype, backend: backendMode, namespace, ...res }
331
333
  };
332
334
  }
333
335
  }, { name: "memory_store" });
@@ -5,7 +5,7 @@
5
5
  "description": "Reactive, thermodynamic memory for AI agents. Runs entirely local via WASM + native dylibs (embedded PostgreSQL, sulcus-vectors). No network calls. Optional cloud sync via sulcus-sync dylib when serverUrl/apiKey are configured.",
6
6
  "privacy": {
7
7
  "consentModel": "local-first",
8
- "consentNote": "Plugin runs entirely in-process. No network calls. All data stays local in ~/.sulcus/. Cloud sync is opt-in via serverUrl/apiKey config, handled by sulcus-sync dylib loaded by sulcus-local.",
8
+ "consentNote": "Plugin runs entirely in-process. No network calls. All data stays local in ~/.sulcus/. Cloud sync is opt-in via serverUrl/apiKey config, handled by sulcus-sync dylib loaded by sulcus.",
9
9
  "crossNamespaceAccess": "local-only",
10
10
  "crossNamespaceNote": "All memory operations are local. Cross-namespace access only applies if cloud sync is configured separately.",
11
11
  "dataFlows": [
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@digitalforgestudios/openclaw-sulcus",
3
- "version": "3.1.0",
3
+ "version": "3.1.1",
4
4
  "description": "Sulcus — reactive, thermodynamic memory plugin for OpenClaw. Opt-in persistent memory with heat-based decay, semantic search, and cross-agent sync. Auto-recall and auto-capture disabled by default.",
5
5
  "keywords": [
6
6
  "openclaw",