neoagent 2.3.1-beta.61 → 2.3.1-beta.62
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/flutter_app/assets/branding/onboarding_intro.mp4 +0 -0
- package/flutter_app/lib/main_controller.dart +20 -0
- package/package.json +1 -1
- package/server/public/.last_build_id +1 -1
- package/server/public/assets/assets/branding/onboarding_intro.mp4 +0 -0
- package/server/public/flutter_bootstrap.js +1 -1
- package/server/public/main.dart.js +25750 -25728
|
Binary file
|
|
@@ -51,6 +51,7 @@ class NeoAgentController extends ChangeNotifier {
|
|
|
51
51
|
static const String _configuredBackendUrl = String.fromEnvironment(
|
|
52
52
|
'NEOAGENT_BACKEND_URL',
|
|
53
53
|
);
|
|
54
|
+
static const String _selectedSectionPrefsKey = 'ui.selectedSection';
|
|
54
55
|
|
|
55
56
|
SharedPreferences? _prefs;
|
|
56
57
|
final FlutterSecureStorage _secureStorage = const FlutterSecureStorage();
|
|
@@ -689,6 +690,7 @@ class NeoAgentController extends ChangeNotifier {
|
|
|
689
690
|
_prefs?.getBool('desktop.autoShowFloatingToolbar') ?? true;
|
|
690
691
|
_desktopAssistantHotkeyEnabled =
|
|
691
692
|
_prefs?.getBool('desktop.assistantHotkeyEnabled') ?? true;
|
|
693
|
+
_restoreSelectedSectionFromPrefs();
|
|
692
694
|
_voiceAssistantIncludeScreenContext =
|
|
693
695
|
(_prefs?.getBool('voiceAssistant.includeScreenContext') ?? false) &&
|
|
694
696
|
canCaptureVoiceAssistantScreenContext;
|
|
@@ -1529,6 +1531,9 @@ class NeoAgentController extends ChangeNotifier {
|
|
|
1529
1531
|
toolEvents = const <ToolEventItem>[];
|
|
1530
1532
|
streamingAssistant = '';
|
|
1531
1533
|
selectedSection = AppSection.chat;
|
|
1534
|
+
unawaited(
|
|
1535
|
+
_prefs?.setString(_selectedSectionPrefsKey, AppSection.chat.name),
|
|
1536
|
+
);
|
|
1532
1537
|
_selectedWidgetId = null;
|
|
1533
1538
|
_pendingChatDraft = null;
|
|
1534
1539
|
_runDetailsCache.clear();
|
|
@@ -1576,6 +1581,20 @@ class NeoAgentController extends ChangeNotifier {
|
|
|
1576
1581
|
unawaited(_syncHomeWidgetConfig());
|
|
1577
1582
|
}
|
|
1578
1583
|
|
|
1584
|
+
void _restoreSelectedSectionFromPrefs() {
|
|
1585
|
+
final rawSection =
|
|
1586
|
+
_prefs?.getString(_selectedSectionPrefsKey)?.trim() ?? '';
|
|
1587
|
+
if (rawSection.isEmpty) {
|
|
1588
|
+
return;
|
|
1589
|
+
}
|
|
1590
|
+
|
|
1591
|
+
final restoredSection = AppSection.values.firstWhere(
|
|
1592
|
+
(section) => section.name == rawSection,
|
|
1593
|
+
orElse: () => AppSection.chat,
|
|
1594
|
+
);
|
|
1595
|
+
selectedSection = restoredSection;
|
|
1596
|
+
}
|
|
1597
|
+
|
|
1579
1598
|
Future<void> _syncDesktopCompanionSession() {
|
|
1580
1599
|
return _desktopCompanion.updateSession(
|
|
1581
1600
|
backendUrl: backendUrl,
|
|
@@ -1586,6 +1605,7 @@ class NeoAgentController extends ChangeNotifier {
|
|
|
1586
1605
|
|
|
1587
1606
|
void setSelectedSection(AppSection section) {
|
|
1588
1607
|
selectedSection = section;
|
|
1608
|
+
unawaited(_prefs?.setString(_selectedSectionPrefsKey, section.name));
|
|
1589
1609
|
if (section == AppSection.devices) {
|
|
1590
1610
|
unawaited(refreshDevices());
|
|
1591
1611
|
}
|
package/package.json
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
|
|
1
|
+
9d29bc71178d488830002fc181bd7371
|
|
Binary file
|
|
@@ -37,6 +37,6 @@ _flutter.buildConfig = {"engineRevision":"42d3d75a56efe1a2e9902f52dc8006099c45d9
|
|
|
37
37
|
|
|
38
38
|
_flutter.loader.load({
|
|
39
39
|
serviceWorkerSettings: {
|
|
40
|
-
serviceWorkerVersion: "
|
|
40
|
+
serviceWorkerVersion: "366687658" /* Flutter's service worker is deprecated and will be removed in a future Flutter release. */
|
|
41
41
|
}
|
|
42
42
|
});
|