neoagent 2.2.0 → 2.2.1-beta.0

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 CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "neoagent",
3
- "version": "2.2.0",
3
+ "version": "2.2.1-beta.0",
4
4
  "description": "Proactive personal AI agent with no limits",
5
5
  "license": "MIT",
6
6
  "main": "server/index.js",
@@ -418,6 +418,41 @@ db.exec(`
418
418
  CREATE INDEX IF NOT EXISTS idx_conversations_user ON conversations(user_id, updated_at DESC);
419
419
  CREATE INDEX IF NOT EXISTS idx_scheduled_tasks_user ON scheduled_tasks(user_id);
420
420
 
421
+ CREATE TABLE IF NOT EXISTS ai_widgets (
422
+ id TEXT PRIMARY KEY,
423
+ user_id INTEGER NOT NULL,
424
+ agent_id TEXT,
425
+ name TEXT NOT NULL,
426
+ template TEXT NOT NULL,
427
+ layout_variant TEXT NOT NULL,
428
+ definition_json TEXT DEFAULT '{}',
429
+ refresh_cron TEXT NOT NULL,
430
+ enabled INTEGER DEFAULT 1,
431
+ scheduled_task_id INTEGER,
432
+ last_snapshot_at TEXT,
433
+ last_error TEXT,
434
+ created_at TEXT DEFAULT (datetime('now')),
435
+ updated_at TEXT DEFAULT (datetime('now')),
436
+ FOREIGN KEY (user_id) REFERENCES users(id) ON DELETE CASCADE,
437
+ FOREIGN KEY (agent_id) REFERENCES agents(id) ON DELETE SET NULL,
438
+ FOREIGN KEY (scheduled_task_id) REFERENCES scheduled_tasks(id) ON DELETE SET NULL
439
+ );
440
+
441
+ CREATE TABLE IF NOT EXISTS ai_widget_snapshots (
442
+ id INTEGER PRIMARY KEY AUTOINCREMENT,
443
+ widget_id TEXT NOT NULL,
444
+ payload_json TEXT DEFAULT '{}',
445
+ generated_at TEXT DEFAULT (datetime('now')),
446
+ source_run_id TEXT,
447
+ status TEXT DEFAULT 'ready',
448
+ FOREIGN KEY (widget_id) REFERENCES ai_widgets(id) ON DELETE CASCADE,
449
+ FOREIGN KEY (source_run_id) REFERENCES agent_runs(id) ON DELETE SET NULL
450
+ );
451
+
452
+ CREATE INDEX IF NOT EXISTS idx_ai_widgets_user ON ai_widgets(user_id, updated_at DESC);
453
+ CREATE INDEX IF NOT EXISTS idx_ai_widgets_agent ON ai_widgets(user_id, agent_id, updated_at DESC);
454
+ CREATE INDEX IF NOT EXISTS idx_ai_widget_snapshots_widget ON ai_widget_snapshots(widget_id, id DESC);
455
+
421
456
  CREATE TABLE IF NOT EXISTS conversation_history (
422
457
  id INTEGER PRIMARY KEY AUTOINCREMENT,
423
458
  user_id INTEGER NOT NULL,
@@ -19,6 +19,7 @@ const routeRegistry = [
19
19
  { basePath: '/api/artifacts', modulePath: '../routes/artifacts' },
20
20
  { basePath: '/api/memory', modulePath: '../routes/memory' },
21
21
  { basePath: '/api/scheduler', modulePath: '../routes/scheduler' },
22
+ { basePath: '/api/widgets', modulePath: '../routes/widgets' },
22
23
  { basePath: '/api/browser', modulePath: '../routes/browser' },
23
24
  { basePath: '/api/browser-extension', modulePath: '../routes/browser_extension' },
24
25
  { basePath: '/api/android', modulePath: '../routes/android' },
@@ -37,6 +37,6 @@ _flutter.buildConfig = {"engineRevision":"59aa584fdf100e6c78c785d8a5b565d1de4b48
37
37
 
38
38
  _flutter.loader.load({
39
39
  serviceWorkerSettings: {
40
- serviceWorkerVersion: "3773918247" /* Flutter's service worker is deprecated and will be removed in a future Flutter release. */
40
+ serviceWorkerVersion: "1456478214" /* Flutter's service worker is deprecated and will be removed in a future Flutter release. */
41
41
  }
42
42
  });