neoagent 2.3.1-beta.50 → 2.3.1-beta.51

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.3.1-beta.50",
3
+ "version": "2.3.1-beta.51",
4
4
  "description": "Proactive personal AI agent with no limits",
5
5
  "license": "MIT",
6
6
  "main": "server/index.js",
@@ -37,6 +37,6 @@ _flutter.buildConfig = {"engineRevision":"42d3d75a56efe1a2e9902f52dc8006099c45d9
37
37
 
38
38
  _flutter.loader.load({
39
39
  serviceWorkerSettings: {
40
- serviceWorkerVersion: "3106849421" /* Flutter's service worker is deprecated and will be removed in a future Flutter release. */
40
+ serviceWorkerVersion: "1315087806" /* Flutter's service worker is deprecated and will be removed in a future Flutter release. */
41
41
  }
42
42
  });
@@ -2556,7 +2556,17 @@ async function executeTool(toolName, args, context, engine) {
2556
2556
  if (!widgetService) return { error: 'Widget service not available' };
2557
2557
  if (!widgetId) return { error: 'save_widget_snapshot is only available during widget refresh runs.' };
2558
2558
  try {
2559
- const snapshot = widgetService.saveSnapshot(userId, widgetId, args.snapshot, {
2559
+ const snapshotPayload = (
2560
+ args
2561
+ && typeof args === 'object'
2562
+ && !Array.isArray(args)
2563
+ && args.snapshot
2564
+ && typeof args.snapshot === 'object'
2565
+ && !Array.isArray(args.snapshot)
2566
+ )
2567
+ ? args.snapshot
2568
+ : args;
2569
+ const snapshot = widgetService.saveSnapshot(userId, widgetId, snapshotPayload, {
2560
2570
  sourceRunId: runId,
2561
2571
  status: 'ready',
2562
2572
  });