@akalsey/sapience-feedback 0.3.1 → 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 +11 -2
- package/dist/src/service.js +6 -2
- package/openclaw.plugin.json +1 -1
- package/package.json +1 -1
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
|
-
|
|
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
|
-
|
|
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
|
|
package/dist/src/service.js
CHANGED
|
@@ -25,9 +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
|
-
|
|
28
|
+
let workspaceDir;
|
|
29
|
+
try {
|
|
30
|
+
workspaceDir = api.runtime.agent.resolveAgentWorkspaceDir(api.pluginConfig);
|
|
31
|
+
}
|
|
32
|
+
catch {
|
|
29
33
|
return;
|
|
30
|
-
|
|
34
|
+
}
|
|
31
35
|
const config = mergeConfig(api.pluginConfig, workspaceDir);
|
|
32
36
|
const llm = getLlmClient(api);
|
|
33
37
|
const memoryAdd = api.memory?.add ? (params) => api.memory.add(params) : undefined;
|
package/openclaw.plugin.json
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"id": "sapience-feedback",
|
|
3
3
|
"name": "Sapience Feedback",
|
|
4
|
-
"version": "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": {
|