@digitalforgestudios/openclaw-sulcus 0.1.0 → 0.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 +36 -0
- package/package.json +13 -3
package/index.ts
CHANGED
|
@@ -446,6 +446,42 @@ const sulcusMemoryPlugin = {
|
|
|
446
446
|
{ name: "memory_forget" },
|
|
447
447
|
);
|
|
448
448
|
|
|
449
|
+
// ========================================================================
|
|
450
|
+
// Lifecycle — System prompt preamble (LLM awareness)
|
|
451
|
+
// ========================================================================
|
|
452
|
+
|
|
453
|
+
const sulcusPreamble = [
|
|
454
|
+
"## Persistent Memory (Sulcus)",
|
|
455
|
+
"You have persistent memory powered by Sulcus. Your memories survive across sessions and conversations.",
|
|
456
|
+
"",
|
|
457
|
+
"**How it works:**",
|
|
458
|
+
"- Memories are automatically recalled and injected into your context when relevant.",
|
|
459
|
+
"- Each memory has a **heat** score (0.0–1.0) — hotter memories are more recent/important, cold ones fade over time.",
|
|
460
|
+
"- Memory types: episodic (events), semantic (facts), preference (opinions), procedural (how-tos), fact (data points).",
|
|
461
|
+
"",
|
|
462
|
+
"**Your memory tools:**",
|
|
463
|
+
"- `memory_search` — find memories by semantic query. Use before answering about past work, decisions, or preferences.",
|
|
464
|
+
"- `memory_store` — save important information. Use for preferences, key decisions, facts worth remembering, lessons learned.",
|
|
465
|
+
"- `memory_get` — retrieve a specific memory by ID.",
|
|
466
|
+
"- `memory_forget` — delete a memory that's outdated or wrong.",
|
|
467
|
+
"",
|
|
468
|
+
"**When to store memories:**",
|
|
469
|
+
"- User states a preference, opinion, or personal fact",
|
|
470
|
+
"- An important decision is made",
|
|
471
|
+
"- You learn something that should survive this session",
|
|
472
|
+
"- A correction is given (store the correct version, forget the wrong one)",
|
|
473
|
+
"",
|
|
474
|
+
"**When to search memories:**",
|
|
475
|
+
"- Before answering questions about prior work, people, or decisions",
|
|
476
|
+
"- When context seems incomplete — there may be relevant history",
|
|
477
|
+
"- When the user references something from a previous conversation",
|
|
478
|
+
].join("\n");
|
|
479
|
+
|
|
480
|
+
// Inject preamble into system prompt
|
|
481
|
+
api.on("system_prompt", () => {
|
|
482
|
+
return { appendSystemPrompt: sulcusPreamble };
|
|
483
|
+
});
|
|
484
|
+
|
|
449
485
|
// ========================================================================
|
|
450
486
|
// Lifecycle — Auto-recall
|
|
451
487
|
// ========================================================================
|
package/package.json
CHANGED
|
@@ -1,8 +1,16 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@digitalforgestudios/openclaw-sulcus",
|
|
3
|
-
"version": "0.1.
|
|
3
|
+
"version": "0.1.1",
|
|
4
4
|
"description": "Sulcus thermodynamic memory backend plugin for OpenClaw. Heat-based decay, cross-agent sync, programmable triggers, auto-recall, and auto-capture.",
|
|
5
|
-
"keywords": [
|
|
5
|
+
"keywords": [
|
|
6
|
+
"openclaw",
|
|
7
|
+
"plugin",
|
|
8
|
+
"memory",
|
|
9
|
+
"sulcus",
|
|
10
|
+
"thermodynamic",
|
|
11
|
+
"ai-agent",
|
|
12
|
+
"long-term-memory"
|
|
13
|
+
],
|
|
6
14
|
"author": "Digital Forge <daedalus@tc-o.co>",
|
|
7
15
|
"license": "MIT",
|
|
8
16
|
"repository": {
|
|
@@ -12,7 +20,9 @@
|
|
|
12
20
|
},
|
|
13
21
|
"homepage": "https://sulcus.ca/docs#openclaw",
|
|
14
22
|
"openclaw": {
|
|
15
|
-
"extensions": [
|
|
23
|
+
"extensions": [
|
|
24
|
+
"./index.ts"
|
|
25
|
+
]
|
|
16
26
|
},
|
|
17
27
|
"files": [
|
|
18
28
|
"index.ts",
|