@digitalforgestudios/openclaw-sulcus 3.5.1 → 3.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.
Files changed (2) hide show
  1. package/index.ts +14 -14
  2. package/package.json +1 -1
package/index.ts CHANGED
@@ -741,34 +741,34 @@ const sulcusPlugin = {
741
741
 
742
742
  register(api: any) {
743
743
  // ── Configuration ──
744
- const libDir = api.config?.libDir
745
- ? resolve(api.config.libDir)
744
+ const libDir = api.pluginConfig?.libDir
745
+ ? resolve(api.pluginConfig.libDir)
746
746
  : resolve(process.env.HOME || "~", ".sulcus/lib");
747
747
 
748
- const storeLibPath = api.config?.storeLibPath
749
- ? resolve(api.config.storeLibPath)
748
+ const storeLibPath = api.pluginConfig?.storeLibPath
749
+ ? resolve(api.pluginConfig.storeLibPath)
750
750
  : resolve(libDir, process.platform === "darwin" ? "libsulcus_store.dylib" : "libsulcus_store.so");
751
751
 
752
- const vectorsLibPath = api.config?.vectorsLibPath
753
- ? resolve(api.config.vectorsLibPath)
752
+ const vectorsLibPath = api.pluginConfig?.vectorsLibPath
753
+ ? resolve(api.pluginConfig.vectorsLibPath)
754
754
  : resolve(libDir, process.platform === "darwin" ? "libsulcus_vectors.dylib" : "libsulcus_vectors.so");
755
755
 
756
- const wasmDir = api.config?.wasmDir
757
- ? resolve(api.config.wasmDir)
756
+ const wasmDir = api.pluginConfig?.wasmDir
757
+ ? resolve(api.pluginConfig.wasmDir)
758
758
  : resolve(__dirname, "wasm");
759
759
 
760
760
  // Cloud fallback credentials (used when local libs unavailable)
761
- const serverUrl: string | undefined = api.config?.serverUrl;
762
- const apiKey: string | undefined = api.config?.apiKey;
761
+ const serverUrl: string | undefined = api.pluginConfig?.serverUrl;
762
+ const apiKey: string | undefined = api.pluginConfig?.apiKey;
763
763
 
764
764
  // Default namespace = agent name (prevents everything landing in "default")
765
- const agentId = api.config?.agentId || api.pluginConfig?.agentId;
766
- const namespace = api.config?.namespace === "default" && agentId
765
+ const agentId = api.pluginConfig?.agentId;
766
+ const namespace = api.pluginConfig?.namespace === "default" && agentId
767
767
  ? agentId
768
- : (api.config?.namespace || agentId || "default");
768
+ : (api.pluginConfig?.namespace || agentId || "default");
769
769
 
770
770
  // ── Load hooks config (config-driven dispatch) ──
771
- const hooksConfig = loadHooksConfig(api.config);
771
+ const hooksConfig = loadHooksConfig(api.pluginConfig);
772
772
 
773
773
  // ── Load native dylibs ──
774
774
  const nativeLoader = new NativeLibLoader(storeLibPath, vectorsLibPath);
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@digitalforgestudios/openclaw-sulcus",
3
- "version": "3.5.1",
3
+ "version": "3.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",