@digitalforgestudios/openclaw-sulcus 0.1.1 → 0.1.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.
Files changed (2) hide show
  1. package/index.ts +6 -4
  2. package/package.json +1 -1
package/index.ts CHANGED
@@ -204,7 +204,9 @@ const sulcusMemoryPlugin = {
204
204
  serverUrl: (rawCfg as any).serverUrl ?? "https://api.sulcus.ca",
205
205
  apiKey: (rawCfg as any).apiKey ?? "",
206
206
  agentId: (rawCfg as any).agentId,
207
- namespace: (rawCfg as any).namespace ?? (rawCfg as any).agentId,
207
+ namespace: ((rawCfg as any).namespace && (rawCfg as any).namespace !== "default")
208
+ ? (rawCfg as any).namespace
209
+ : ((rawCfg as any).agentId ?? "default"),
208
210
  autoRecall: (rawCfg as any).autoRecall ?? true,
209
211
  autoCapture: (rawCfg as any).autoCapture ?? true,
210
212
  maxRecallResults: (rawCfg as any).maxRecallResults ?? 5,
@@ -477,9 +479,9 @@ const sulcusMemoryPlugin = {
477
479
  "- When the user references something from a previous conversation",
478
480
  ].join("\n");
479
481
 
480
- // Inject preamble into system prompt
481
- api.on("system_prompt", () => {
482
- return { appendSystemPrompt: sulcusPreamble };
482
+ // Inject preamble into system prompt via before_prompt_build hook
483
+ api.on("before_prompt_build", () => {
484
+ return { appendSystemContext: sulcusPreamble };
483
485
  });
484
486
 
485
487
  // ========================================================================
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@digitalforgestudios/openclaw-sulcus",
3
- "version": "0.1.1",
3
+ "version": "0.1.2",
4
4
  "description": "Sulcus thermodynamic memory backend plugin for OpenClaw. Heat-based decay, cross-agent sync, programmable triggers, auto-recall, and auto-capture.",
5
5
  "keywords": [
6
6
  "openclaw",