@digitalforgestudios/openclaw-sulcus 1.5.0 → 1.5.2
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 +10 -2
- package/package.json +8 -2
package/index.ts
CHANGED
|
@@ -503,14 +503,22 @@ const sulcusPlugin = {
|
|
|
503
503
|
// ── Context injection: before every agent turn ──
|
|
504
504
|
|
|
505
505
|
// ── STATIC AWARENESS: fires on EVERY prompt build, unconditionally ──
|
|
506
|
-
// This guarantees the LLM always knows Sulcus exists
|
|
507
|
-
//
|
|
506
|
+
// This guarantees the LLM always knows Sulcus exists and can use
|
|
507
|
+
// memory_store/memory_recall tools, even when autoRecall is off.
|
|
508
|
+
// No network call — just a static string describing available tools.
|
|
508
509
|
api.on("before_prompt_build", async (_event: any) => {
|
|
509
510
|
return { appendSystemContext: STATIC_AWARENESS };
|
|
510
511
|
});
|
|
511
512
|
|
|
512
513
|
// ── DYNAMIC CONTEXT: fires before each agent turn with live data ──
|
|
514
|
+
// GATED by autoRecall config (default: false). No API call unless opt-in.
|
|
515
|
+
const autoRecallEnabled = api.config?.autoRecall === true;
|
|
513
516
|
api.on("before_agent_start", async (event: any) => {
|
|
517
|
+
// Only call the Sulcus API if autoRecall is explicitly enabled
|
|
518
|
+
if (!autoRecallEnabled) {
|
|
519
|
+
api.logger.debug(`memory-sulcus: autoRecall is disabled, skipping context build`);
|
|
520
|
+
return;
|
|
521
|
+
}
|
|
514
522
|
api.logger.info(`memory-sulcus: before_agent_start hook triggered for agent ${event.agentId}`);
|
|
515
523
|
if (!event.prompt) return;
|
|
516
524
|
try {
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@digitalforgestudios/openclaw-sulcus",
|
|
3
|
-
"version": "1.5.
|
|
3
|
+
"version": "1.5.2",
|
|
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",
|
|
@@ -29,7 +29,13 @@
|
|
|
29
29
|
"openclaw": {
|
|
30
30
|
"extensions": [
|
|
31
31
|
"./index.ts"
|
|
32
|
-
]
|
|
32
|
+
],
|
|
33
|
+
"compat": {
|
|
34
|
+
"pluginApi": ">=1.0.0"
|
|
35
|
+
},
|
|
36
|
+
"build": {
|
|
37
|
+
"openclawVersion": "2026.3.28"
|
|
38
|
+
}
|
|
33
39
|
},
|
|
34
40
|
"files": [
|
|
35
41
|
"index.ts",
|