ruvector 0.1.66 → 0.1.67
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/.ruvector/intelligence.json +8 -0
- package/bin/cli.js +7 -2
- package/package.json +1 -1
- package/ruvector.db +0 -0
package/bin/cli.js
CHANGED
|
@@ -2609,8 +2609,13 @@ class Intelligence {
|
|
|
2609
2609
|
}
|
|
2610
2610
|
|
|
2611
2611
|
sessionEnd() {
|
|
2612
|
-
|
|
2613
|
-
|
|
2612
|
+
// Ensure stats exists with defaults
|
|
2613
|
+
if (!this.data.stats) {
|
|
2614
|
+
this.data.stats = { total_patterns: 0, total_memories: 0, total_trajectories: 0, total_errors: 0, session_count: 0, last_session: 0 };
|
|
2615
|
+
}
|
|
2616
|
+
const lastSession = this.data.stats.last_session || 0;
|
|
2617
|
+
const duration = this.now() - (this.sessionStartTime || lastSession);
|
|
2618
|
+
const actions = (this.data.trajectories || []).filter(t => t.timestamp >= lastSession).length;
|
|
2614
2619
|
|
|
2615
2620
|
// Force learning cycle (only if engine already initialized)
|
|
2616
2621
|
const eng = this.getEngineIfReady();
|
package/package.json
CHANGED
package/ruvector.db
CHANGED
|
Binary file
|