@akalsey/sapience-feedback 0.3.0 → 0.3.3

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/README.md CHANGED
@@ -114,9 +114,18 @@ For corrections, the plugin calls `api.memory.add` to write a behavioral reminde
114
114
 
115
115
  > "Before working on github / github/action: check feedback log — correction recorded: 'don't push to main without a PR'"
116
116
 
117
- Future sessions surface this pointer automatically through OpenClaw's standard memory system. No separate memory plugin is required memory writes go through the same API OpenClaw itself uses.
117
+ The *write* goes through `api.memory.add` the same API OpenClaw itself uses and succeeds whether or not any extra memory plugin is installed. **But a successful write is not enough for the pointer to come back.** For these corrections to actually resurface in future sessions (and for `sapience-thinking` to pick up memory as context), OpenClaw needs the `memory-wiki` layer installed and configured:
118
118
 
119
- To disable memory writes, set `memoryEnabled: false` in config.
119
+ | Setting | Value | Why |
120
+ |---|---|---|
121
+ | `plugins.memory-core.dreaming.enabled` | `true` | Background consolidation of memories |
122
+ | `plugins.memory-wiki.vaultMode` | `"bridge"` | Wiki operates in bridge mode |
123
+ | `plugins.memory-wiki.bridge.enabled` | `true` | Bridges `memory-core` ↔ wiki so writes become recallable |
124
+ | `plugins.memory-wiki.search.corpus` | `"all"` | Recall searches across the whole corpus |
125
+
126
+ The suite installer (`install.sh`) checks for `memory-wiki` and offers to install it and apply these settings. Without them, corrections are written but may never persist or resurface across sessions — the calibration profile still updates, but the behavioral reminders won't reliably come back.
127
+
128
+ To disable memory writes entirely, set `memoryEnabled: false` in config.
120
129
 
121
130
  ---
122
131
 
@@ -25,7 +25,13 @@ export default definePluginEntry({
25
25
  name: "Sapience Feedback",
26
26
  description: "Persists behavioral corrections and confirmations into the sapience calibration profile",
27
27
  register(api) {
28
- const workspaceDir = api.runtime.agent.resolveAgentWorkspaceDir(api.pluginConfig);
28
+ let workspaceDir;
29
+ try {
30
+ workspaceDir = api.runtime.agent.resolveAgentWorkspaceDir(api.pluginConfig);
31
+ }
32
+ catch {
33
+ return;
34
+ }
29
35
  const config = mergeConfig(api.pluginConfig, workspaceDir);
30
36
  const llm = getLlmClient(api);
31
37
  const memoryAdd = api.memory?.add ? (params) => api.memory.add(params) : undefined;
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "id": "sapience-feedback",
3
3
  "name": "Sapience Feedback",
4
- "version": "0.2.0",
4
+ "version": "0.3.3",
5
5
  "description": "Persists behavioral corrections and confirmations from session messages into the sapience calibration profile",
6
6
  "activation": { "onStartup": true },
7
7
  "configSchema": {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@akalsey/sapience-feedback",
3
- "version": "0.3.0",
3
+ "version": "0.3.3",
4
4
  "type": "module",
5
5
  "main": "./dist/index.js",
6
6
  "exports": {