@contextableai/openclaw-memory-rebac 0.5.0 → 0.5.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.
Files changed (2) hide show
  1. package/dist/index.js +8 -4
  2. package/package.json +1 -1
package/dist/index.js CHANGED
@@ -686,6 +686,8 @@ const rebacMemoryPlugin = {
686
686
  "You have memory tools:\n" +
687
687
  "- memory_recall: Use this BEFORE saying you don't know or remember something. Search the long-term knowledge graph for facts, preferences, people, decisions.\n" +
688
688
  "- memory_store: Save important new information to the knowledge graph.\n" +
689
+ "- memory_share: Share a specific memory with other people/agents by ID.\n" +
690
+ "- memory_unshare: Revoke view access to a memory from people/agents.\n" +
689
691
  "- memory_promote: Promote recent memories into the long-term knowledge graph.\n" +
690
692
  "</memory-tools>";
691
693
  if (liminalResults.length === 0)
@@ -725,6 +727,8 @@ const rebacMemoryPlugin = {
725
727
  "You have memory tools:\n" +
726
728
  "- memory_recall: Use this BEFORE saying you don't know or remember something. Search for facts, preferences, people, decisions.\n" +
727
729
  "- memory_store: Save important new information (preferences, decisions, facts about people).\n" +
730
+ "- memory_share: Share a specific memory with other people/agents by ID.\n" +
731
+ "- memory_unshare: Revoke view access to a memory from people/agents.\n" +
728
732
  "</memory-tools>";
729
733
  if (totalCount === 0)
730
734
  return { prependContext: toolHint };
@@ -950,10 +954,10 @@ const rebacMemoryPlugin = {
950
954
  try {
951
955
  const existing = await spicedb.readSchema();
952
956
  spicedbOk = true;
953
- if (!existing || !existing.includes("memory_fragment")) {
954
- api.logger.info("openclaw-memory-rebac: writing SpiceDB schema (first run)");
955
- const schemaPath = join(dirname(fileURLToPath(import.meta.url)), "schema.zed");
956
- const schema = readFileSync(schemaPath, "utf-8");
957
+ const schemaPath = join(dirname(fileURLToPath(import.meta.url)), "schema.zed");
958
+ const schema = readFileSync(schemaPath, "utf-8");
959
+ if (!existing || existing.trim() !== schema.trim()) {
960
+ api.logger.info("openclaw-memory-rebac: writing SpiceDB schema (first run or update)");
957
961
  await spicedb.writeSchema(schema);
958
962
  api.logger.info("openclaw-memory-rebac: SpiceDB schema written successfully");
959
963
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@contextableai/openclaw-memory-rebac",
3
- "version": "0.5.0",
3
+ "version": "0.5.1",
4
4
  "description": "OpenClaw composite memory plugin: SpiceDB ReBAC authorization with Graphiti knowledge graph (primary) and optional EverMemOS liminal memory",
5
5
  "type": "module",
6
6
  "license": "MIT",