neoagent 3.1.1-beta.2 → 3.1.1-beta.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.
@@ -191,6 +191,27 @@ function migrateMemoryEmbeddingMetadata(db) {
191
191
  }
192
192
  }
193
193
 
194
+ function migrateMemoryRetentionMetadata(db) {
195
+ const columns = new Set(
196
+ db.prepare('PRAGMA table_info(memories)').all().map((column) => column.name),
197
+ );
198
+ const additions = [
199
+ ['memory_strength', 'REAL DEFAULT 1'],
200
+ ['last_accessed_at', 'TEXT'],
201
+ ['pinned', 'INTEGER DEFAULT 0'],
202
+ ];
203
+ for (const [name, type] of additions) {
204
+ if (!columns.has(name)) {
205
+ db.exec(`ALTER TABLE memories ADD COLUMN ${name} ${type}`);
206
+ }
207
+ }
208
+ db.exec(`
209
+ UPDATE memories
210
+ SET memory_strength = COALESCE(memory_strength, 1),
211
+ pinned = COALESCE(pinned, 0)
212
+ `);
213
+ }
214
+
194
215
  function migrateMemoryExactHashUniqueness(db) {
195
216
  const columns = new Set(
196
217
  db.prepare('PRAGMA table_info(memories)').all().map((column) => column.name),
@@ -546,6 +567,7 @@ function runSchemaMigrations(db) {
546
567
  migrateMemoryRelations(db);
547
568
  migrateMemoryRetrievalEvents(db);
548
569
  migrateMemoryEmbeddingMetadata(db);
570
+ migrateMemoryRetentionMetadata(db);
549
571
  migrateMemoryExactHashUniqueness(db);
550
572
  migrateSkillOwnership(db);
551
573
  migrateToolPermissions(db);
@@ -560,6 +582,7 @@ module.exports = {
560
582
  migrateMemoryRelations,
561
583
  migrateMemoryRetrievalEvents,
562
584
  migrateMemoryEmbeddingMetadata,
585
+ migrateMemoryRetentionMetadata,
563
586
  migrateMemoryExactHashUniqueness,
564
587
  migrateSkillOwnership,
565
588
  migrateToolPermissions,
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "neoagent",
3
- "version": "3.1.1-beta.2",
3
+ "version": "3.1.1-beta.3",
4
4
  "description": "Self-hosted AI agent for long-running tasks, automation, messaging, device control, and local memory",
5
5
  "license": "AGPL-3.0-only",
6
6
  "main": "server/index.js",
@@ -586,6 +586,9 @@ db.exec(`
586
586
  memory_hash TEXT,
587
587
  embedding TEXT,
588
588
  access_count INTEGER DEFAULT 0,
589
+ memory_strength REAL DEFAULT 1,
590
+ last_accessed_at TEXT,
591
+ pinned INTEGER DEFAULT 0,
589
592
  archived INTEGER DEFAULT 0,
590
593
  created_at TEXT DEFAULT (datetime('now')),
591
594
  updated_at TEXT DEFAULT (datetime('now')),
@@ -1311,6 +1314,9 @@ for (const col of [
1311
1314
  "ALTER TABLE memories ADD COLUMN confidence REAL DEFAULT 0.7",
1312
1315
  "ALTER TABLE memories ADD COLUMN summary TEXT",
1313
1316
  "ALTER TABLE memories ADD COLUMN memory_hash TEXT",
1317
+ "ALTER TABLE memories ADD COLUMN memory_strength REAL DEFAULT 1",
1318
+ "ALTER TABLE memories ADD COLUMN last_accessed_at TEXT",
1319
+ "ALTER TABLE memories ADD COLUMN pinned INTEGER DEFAULT 0",
1314
1320
  "ALTER TABLE scheduled_tasks ADD COLUMN run_at TEXT",
1315
1321
  "ALTER TABLE scheduled_tasks ADD COLUMN one_time INTEGER DEFAULT 0",
1316
1322
  "ALTER TABLE scheduled_tasks ADD COLUMN execution_mode TEXT DEFAULT 'prompt'",
@@ -1 +1 @@
1
- f7df01608b06990693a484c0623d8650
1
+ e27e3bdd735d729b1e7255a48e8c9936
@@ -37,6 +37,6 @@ _flutter.buildConfig = {"engineRevision":"a10d8ac38de835021c8d2f920dbf50a920ccc0
37
37
 
38
38
  _flutter.loader.load({
39
39
  serviceWorkerSettings: {
40
- serviceWorkerVersion: "62998229" /* Flutter's service worker is deprecated and will be removed in a future Flutter release. */
40
+ serviceWorkerVersion: "3226185212" /* Flutter's service worker is deprecated and will be removed in a future Flutter release. */
41
41
  }
42
42
  });