neoagent 2.3.1-beta.43 → 2.3.1-beta.45

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.
@@ -801,55 +801,18 @@ class _MessagingPanelState extends State<MessagingPanel> {
801
801
  }
802
802
  }
803
803
  snapshot[platform.settingsKey] = jsonEncode(config);
804
- final meshtasticEnabled =
805
- platform.id != 'meshtastic' ||
806
- (boolValues['meshtastic_enabled'] ?? true);
807
- var connected = false;
808
- if (meshtasticEnabled) {
809
- connected = await _connectMessagingPlatform(
810
- platform: platform.id,
811
- platformLabel: platform.label,
812
- config: config,
813
- configSnapshot: snapshot,
814
- );
815
- } else {
816
- final messenger = ScaffoldMessenger.maybeOf(context);
817
- try {
818
- await widget.controller.saveSettingsPayload(snapshot);
819
- } catch (error) {
820
- if (!mounted) return;
821
- messenger?.showSnackBar(
822
- SnackBar(
823
- content: Text(
824
- 'Failed to save ${platform.label}: ${widget.controller.friendlyErrorMessage(error)}',
825
- ),
826
- ),
827
- );
828
- return;
829
- }
830
- try {
831
- await widget.controller.refreshMessaging();
832
- connected = true;
833
- } catch (error) {
834
- if (!mounted) return;
835
- messenger?.showSnackBar(
836
- SnackBar(
837
- content: Text(
838
- 'Saved ${platform.label}, but refresh failed: ${widget.controller.friendlyErrorMessage(error)}',
839
- ),
840
- ),
841
- );
842
- }
843
- }
804
+ final connected = await _connectMessagingPlatform(
805
+ platform: platform.id,
806
+ platformLabel: platform.label,
807
+ config: config,
808
+ configSnapshot: snapshot,
809
+ );
844
810
  if (connected && context.mounted) {
845
811
  Navigator.of(context).pop();
846
812
  }
847
813
  },
848
814
  child: Text(
849
- platform.id == 'meshtastic' &&
850
- !(boolValues['meshtastic_enabled'] ?? true)
851
- ? 'Save'
852
- : 'Connect',
815
+ 'Connect',
853
816
  ),
854
817
  ),
855
818
  ],
@@ -278,13 +278,6 @@ messagingPlatforms = <MessagingPlatformDescriptor>[
278
278
  connectMethod: MessagingConnectMethod.config,
279
279
  icon: Icons.router_rounded,
280
280
  configFields: <MessagingConfigField>[
281
- MessagingConfigField(
282
- key: 'meshtastic_enabled',
283
- label: 'Enable Meshtastic on this server',
284
- kind: MessagingConfigFieldKind.boolean,
285
- settingsKey: 'meshtastic_enabled',
286
- includeInConfig: false,
287
- ),
288
281
  MessagingConfigField(key: 'host', label: 'Device IP Address'),
289
282
  MessagingConfigField(
290
283
  key: 'channel',
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "neoagent",
3
- "version": "2.3.1-beta.43",
3
+ "version": "2.3.1-beta.45",
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: "555509852" /* Flutter's service worker is deprecated and will be removed in a future Flutter release. */
40
+ serviceWorkerVersion: "558324767" /* Flutter's service worker is deprecated and will be removed in a future Flutter release. */
41
41
  }
42
42
  });