@icex-labs/openclaw-memory-engine 5.0.2 → 5.0.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/package.json +1 -1
- package/setup.sh +19 -0
package/package.json
CHANGED
package/setup.sh
CHANGED
|
@@ -149,6 +149,25 @@ if command -v node &>/dev/null && [ -f "$PLUGIN_DIR/extras/migrate-legacy.mjs" ]
|
|
|
149
149
|
fi
|
|
150
150
|
fi
|
|
151
151
|
|
|
152
|
+
# --- 3c. Upgrade: run v5.0 embedding classification if not done yet ---
|
|
153
|
+
if [ -f "$MEMORY_DIR/archival.jsonl" ] && [ ! -f "$MEMORY_DIR/classifier-anchors.json" ]; then
|
|
154
|
+
archival_count=$(wc -l < "$MEMORY_DIR/archival.jsonl" | tr -d ' ')
|
|
155
|
+
if [ "$archival_count" -gt 0 ]; then
|
|
156
|
+
echo ""
|
|
157
|
+
echo "📊 Upgrade detected: running v5.0 embedding-based classification..."
|
|
158
|
+
echo " This replaces keyword-based entity/importance with semantic classification."
|
|
159
|
+
if command -v openclaw &>/dev/null; then
|
|
160
|
+
# Use the agent to run memory_quality (needs gateway running)
|
|
161
|
+
openclaw agent --agent main -m "memory_quality" --timeout 120 2>&1 | tail -3 || {
|
|
162
|
+
echo "⚠️ Quality pass via agent failed (gateway may not be running)."
|
|
163
|
+
echo " Run manually after restart: openclaw agent -m 'memory_quality'"
|
|
164
|
+
}
|
|
165
|
+
else
|
|
166
|
+
echo "⚠️ openclaw CLI not found. Run after install: openclaw agent -m 'memory_quality'"
|
|
167
|
+
fi
|
|
168
|
+
fi
|
|
169
|
+
fi
|
|
170
|
+
|
|
152
171
|
# --- 4. Install memory-maintenance.sh ---
|
|
153
172
|
SCRIPTS_DIR="$WORKSPACE/scripts"
|
|
154
173
|
mkdir -p "$SCRIPTS_DIR"
|