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.
- package/flutter_app/lib/main_chat.dart +7 -44
- package/flutter_app/lib/main_models.dart +0 -7
- package/package.json +1 -1
- package/server/public/flutter_bootstrap.js +1 -1
- package/server/public/main.dart.js +28437 -28534
- package/server/routes/settings.js +24 -15
- package/server/services/messaging/meshtastic.js +9 -0
- package/server/services/messaging/meshtastic_env.js +0 -60
- package/server/services/messaging/meshtastic_protocol.js +41 -10
- package/server/services/voice/runtimeManager.js +18 -2
- package/server/services/wearable/firmware_manifest.js +13 -9
|
@@ -801,55 +801,18 @@ class _MessagingPanelState extends State<MessagingPanel> {
|
|
|
801
801
|
}
|
|
802
802
|
}
|
|
803
803
|
snapshot[platform.settingsKey] = jsonEncode(config);
|
|
804
|
-
final
|
|
805
|
-
|
|
806
|
-
|
|
807
|
-
|
|
808
|
-
|
|
809
|
-
|
|
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
|
-
|
|
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
|
@@ -37,6 +37,6 @@ _flutter.buildConfig = {"engineRevision":"42d3d75a56efe1a2e9902f52dc8006099c45d9
|
|
|
37
37
|
|
|
38
38
|
_flutter.loader.load({
|
|
39
39
|
serviceWorkerSettings: {
|
|
40
|
-
serviceWorkerVersion: "
|
|
40
|
+
serviceWorkerVersion: "558324767" /* Flutter's service worker is deprecated and will be removed in a future Flutter release. */
|
|
41
41
|
}
|
|
42
42
|
});
|