neoagent 2.3.1-beta.62 → 2.3.1-beta.63

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.
@@ -0,0 +1,294 @@
1
+ import 'package:mixpanel_flutter/mixpanel_flutter.dart';
2
+
3
+ class AppAnalytics {
4
+ Mixpanel? _mixpanel;
5
+ bool _initialized = false;
6
+ bool _enabled = false;
7
+ String? _currentToken;
8
+ bool _consentGranted = false;
9
+ final List<_QueuedEvent> _queue = <_QueuedEvent>[];
10
+
11
+ bool get enabled => _enabled && _consentGranted;
12
+ bool get consentGranted => _consentGranted;
13
+ bool get isConfigured => (_currentToken ?? '').isNotEmpty;
14
+
15
+ Future<void> initialize({
16
+ required String? token,
17
+ required bool consentGranted,
18
+ }) async {
19
+ final normalizedToken = token?.trim() ?? '';
20
+ final shouldEnable = normalizedToken.isNotEmpty;
21
+ if (_initialized &&
22
+ normalizedToken == _currentToken &&
23
+ shouldEnable == _enabled &&
24
+ consentGranted == _consentGranted) {
25
+ return;
26
+ }
27
+
28
+ _consentGranted = consentGranted;
29
+ _initialized = false;
30
+ _enabled = false;
31
+ _currentToken = normalizedToken.isEmpty ? null : normalizedToken;
32
+ _mixpanel = null;
33
+
34
+ if (!shouldEnable) {
35
+ _queue.clear();
36
+ _initialized = true;
37
+ return;
38
+ }
39
+
40
+ if (!consentGranted) {
41
+ _queue.clear();
42
+ _initialized = true;
43
+ return;
44
+ }
45
+
46
+ try {
47
+ _mixpanel = await Mixpanel.init(
48
+ normalizedToken,
49
+ trackAutomaticEvents: false,
50
+ );
51
+ _enabled = true;
52
+ _initialized = true;
53
+ await _flushQueue();
54
+ } catch (_) {
55
+ _queue.clear();
56
+ _mixpanel = null;
57
+ _enabled = false;
58
+ _initialized = true;
59
+ }
60
+ }
61
+
62
+ Future<void> setConsentGranted(bool consentGranted) async {
63
+ if (_consentGranted == consentGranted && _initialized) {
64
+ return;
65
+ }
66
+
67
+ _consentGranted = consentGranted;
68
+ if (!consentGranted) {
69
+ _mixpanel = null;
70
+ _enabled = false;
71
+ _initialized = true;
72
+ _queue.clear();
73
+ return;
74
+ }
75
+
76
+ await initialize(token: _currentToken, consentGranted: true);
77
+ }
78
+
79
+ Future<void> track(
80
+ String eventName, {
81
+ Map<String, Object?> properties = const <String, Object?>{},
82
+ }) async {
83
+ final event = _QueuedEvent(
84
+ eventName: eventName,
85
+ properties: _cleanProperties(properties),
86
+ );
87
+
88
+ if (!_initialized) {
89
+ _queue.add(event);
90
+ return;
91
+ }
92
+
93
+ if (!enabled || _mixpanel == null) {
94
+ return;
95
+ }
96
+
97
+ await _sendEvent(event);
98
+ }
99
+
100
+ Future<void> trackAppOpened({
101
+ required String appMode,
102
+ required String platform,
103
+ required String backendMode,
104
+ required String selectedSection,
105
+ required String deploymentProfile,
106
+ required bool authenticated,
107
+ }) {
108
+ return track(
109
+ 'app_opened',
110
+ properties: <String, Object?>{
111
+ 'app_mode': appMode,
112
+ 'platform': platform,
113
+ 'backend_mode': backendMode,
114
+ 'selected_section': selectedSection,
115
+ 'deployment_profile': deploymentProfile,
116
+ 'authenticated': authenticated,
117
+ },
118
+ );
119
+ }
120
+
121
+ Future<void> trackBackendUrlSaved({
122
+ required String backendMode,
123
+ }) {
124
+ return track(
125
+ 'backend_url_saved',
126
+ properties: <String, Object?>{
127
+ 'backend_mode': backendMode,
128
+ },
129
+ );
130
+ }
131
+
132
+ Future<void> trackSectionChanged({
133
+ required String section,
134
+ required String previousSection,
135
+ }) {
136
+ return track(
137
+ 'section_changed',
138
+ properties: <String, Object?>{
139
+ 'section': section,
140
+ 'previous_section': previousSection,
141
+ },
142
+ );
143
+ }
144
+
145
+ Future<void> trackChatMessageSent({
146
+ required int length,
147
+ required bool steeringLiveRun,
148
+ }) {
149
+ return track(
150
+ 'chat_message_sent',
151
+ properties: <String, Object?>{
152
+ 'length': length,
153
+ 'steering_live_run': steeringLiveRun,
154
+ },
155
+ );
156
+ }
157
+
158
+ Future<void> trackRecordingStarted({
159
+ required String kind,
160
+ }) {
161
+ return track(
162
+ 'recording_started',
163
+ properties: <String, Object?>{
164
+ 'kind': kind,
165
+ },
166
+ );
167
+ }
168
+
169
+ Future<void> trackRecordingStopped({
170
+ required String kind,
171
+ required String stopReason,
172
+ }) {
173
+ return track(
174
+ 'recording_stopped',
175
+ properties: <String, Object?>{
176
+ 'kind': kind,
177
+ 'stop_reason': stopReason,
178
+ },
179
+ );
180
+ }
181
+
182
+ Future<void> trackAppUpdateCheck({
183
+ required bool silent,
184
+ }) {
185
+ return track(
186
+ 'app_update_check',
187
+ properties: <String, Object?>{
188
+ 'silent': silent,
189
+ },
190
+ );
191
+ }
192
+
193
+ Future<void> trackTaskRunRequested({
194
+ required int taskId,
195
+ }) {
196
+ return track(
197
+ 'task_run_requested',
198
+ properties: <String, Object?>{
199
+ 'task_id': taskId,
200
+ },
201
+ );
202
+ }
203
+
204
+ Future<void> trackWidgetRefreshRequested({
205
+ required bool all,
206
+ }) {
207
+ return track(
208
+ 'widget_refresh_requested',
209
+ properties: <String, Object?>{
210
+ 'all': all,
211
+ },
212
+ );
213
+ }
214
+
215
+ Future<void> trackAppUpdateTriggered() {
216
+ return track('app_update_triggered');
217
+ }
218
+
219
+ Future<void> trackSignedIn({
220
+ required String authMethod,
221
+ required bool isRegistration,
222
+ }) {
223
+ return track(
224
+ 'signed_in',
225
+ properties: <String, Object?>{
226
+ 'auth_method': authMethod,
227
+ 'is_registration': isRegistration,
228
+ },
229
+ );
230
+ }
231
+
232
+ Future<void> trackSignedOut() {
233
+ return track('signed_out');
234
+ }
235
+
236
+ Future<void> trackOnboardingDismissed() {
237
+ return track('onboarding_dismissed');
238
+ }
239
+
240
+ Future<void> dispose() async {
241
+ try {
242
+ await _flushQueue();
243
+ } catch (_) {}
244
+ _queue.clear();
245
+ _mixpanel = null;
246
+ _initialized = false;
247
+ _enabled = false;
248
+ _currentToken = null;
249
+ _consentGranted = false;
250
+ }
251
+
252
+ Future<void> _flushQueue() async {
253
+ if (!enabled || _mixpanel == null || _queue.isEmpty) {
254
+ return;
255
+ }
256
+
257
+ final pending = List<_QueuedEvent>.from(_queue);
258
+ _queue.clear();
259
+ for (final event in pending) {
260
+ await _sendEvent(event);
261
+ }
262
+ }
263
+
264
+ Future<void> _sendEvent(_QueuedEvent event) async {
265
+ final mixpanel = _mixpanel;
266
+ if (mixpanel == null) {
267
+ return;
268
+ }
269
+
270
+ try {
271
+ await mixpanel.track(event.eventName, properties: event.properties);
272
+ } catch (_) {}
273
+ }
274
+
275
+ Map<String, Object?> _cleanProperties(Map<String, Object?> properties) {
276
+ final cleaned = <String, Object?>{};
277
+ for (final entry in properties.entries) {
278
+ final value = entry.value;
279
+ if (value == null) continue;
280
+ cleaned[entry.key] = value;
281
+ }
282
+ return cleaned;
283
+ }
284
+ }
285
+
286
+ class _QueuedEvent {
287
+ const _QueuedEvent({
288
+ required this.eventName,
289
+ required this.properties,
290
+ });
291
+
292
+ final String eventName;
293
+ final Map<String, Object?> properties;
294
+ }
@@ -463,6 +463,10 @@ class BackendClient {
463
463
  return getMap(baseUrl, '/api/version');
464
464
  }
465
465
 
466
+ Future<Map<String, dynamic>> fetchRuntimeConfig(String baseUrl) async {
467
+ return getMap(baseUrl, '/api/runtime/config', allowUnauthorized: true);
468
+ }
469
+
466
470
  Future<Map<String, dynamic>> fetchBrowserStatus(String baseUrl) async {
467
471
  return getMap(baseUrl, '/api/browser/status');
468
472
  }
@@ -11,6 +11,7 @@ import desktop_audio_capture
11
11
  import flutter_secure_storage_macos
12
12
  import geolocator_apple
13
13
  import hotkey_manager_macos
14
+ import mixpanel_flutter
14
15
  import mobile_scanner
15
16
  import package_info_plus
16
17
  import path_provider_foundation
@@ -30,6 +31,7 @@ func RegisterGeneratedPlugins(registry: FlutterPluginRegistry) {
30
31
  FlutterSecureStoragePlugin.register(with: registry.registrar(forPlugin: "FlutterSecureStoragePlugin"))
31
32
  GeolocatorPlugin.register(with: registry.registrar(forPlugin: "GeolocatorPlugin"))
32
33
  HotkeyManagerMacosPlugin.register(with: registry.registrar(forPlugin: "HotkeyManagerMacosPlugin"))
34
+ MixpanelFlutterPlugin.register(with: registry.registrar(forPlugin: "MixpanelFlutterPlugin"))
33
35
  MobileScannerPlugin.register(with: registry.registrar(forPlugin: "MobileScannerPlugin"))
34
36
  FPPPackageInfoPlusPlugin.register(with: registry.registrar(forPlugin: "FPPPackageInfoPlusPlugin"))
35
37
  PathProviderPlugin.register(with: registry.registrar(forPlugin: "PathProviderPlugin"))
@@ -574,6 +574,14 @@ packages:
574
574
  url: "https://pub.dev"
575
575
  source: hosted
576
576
  version: "1.17.0"
577
+ mixpanel_flutter:
578
+ dependency: "direct main"
579
+ description:
580
+ name: mixpanel_flutter
581
+ sha256: "6962b8ce61eb6202d6545bee648e21a7bc9f7e804fa293912e9673329f499ece"
582
+ url: "https://pub.dev"
583
+ source: hosted
584
+ version: "2.7.0"
577
585
  mobile_scanner:
578
586
  dependency: "direct main"
579
587
  description:
@@ -14,6 +14,7 @@ dependencies:
14
14
  google_fonts: ^6.3.1
15
15
  image: ^4.5.4
16
16
  http: ^1.5.0
17
+ mixpanel_flutter: ^2.6.1
17
18
  connectivity_plus: 6.1.5
18
19
  shared_preferences: ^2.5.3
19
20
  flutter_secure_storage: ^9.2.2
@@ -32,6 +32,7 @@
32
32
 
33
33
  <title>NeoAgent</title>
34
34
  <link rel="manifest" href="manifest.json">
35
+ <script src="https://cdn.mxpnl.com/libs/mixpanel-2-latest.min.js"></script>
35
36
  </head>
36
37
  <body>
37
38
  <script src="flutter_bootstrap.js" async></script>
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "neoagent",
3
- "version": "2.3.1-beta.62",
3
+ "version": "2.3.1-beta.63",
4
4
  "description": "Proactive personal AI agent with no limits",
5
5
  "license": "MIT",
6
6
  "main": "server/index.js",
@@ -0,0 +1,30 @@
1
+ 'use strict';
2
+
3
+ const DEFAULT_MIXPANEL_TOKEN = '4a47ae6a05cf39a8faf0438a1200dde6';
4
+
5
+ function normalizeToken(value) {
6
+ return String(value || '').trim();
7
+ }
8
+
9
+ function resolveMixpanelToken() {
10
+ if (Object.prototype.hasOwnProperty.call(process.env, 'NEOAGENT_MIXPANEL_TOKEN')) {
11
+ return normalizeToken(process.env.NEOAGENT_MIXPANEL_TOKEN);
12
+ }
13
+ return normalizeToken(DEFAULT_MIXPANEL_TOKEN);
14
+ }
15
+
16
+ function getAnalyticsConfig() {
17
+ const mixpanelToken = resolveMixpanelToken();
18
+ return {
19
+ mixpanel: {
20
+ enabled: mixpanelToken.length > 0,
21
+ token: mixpanelToken || null,
22
+ },
23
+ };
24
+ }
25
+
26
+ module.exports = {
27
+ DEFAULT_MIXPANEL_TOKEN,
28
+ getAnalyticsConfig,
29
+ resolveMixpanelToken,
30
+ };
@@ -6,6 +6,7 @@ const { getVersionInfo } = require('../utils/version');
6
6
  const { getRuntimeValidation } = require('../services/runtime/validation');
7
7
 
8
8
  const routeRegistry = [
9
+ { basePath: '/api/runtime', modulePath: '../routes/runtime' },
9
10
  { basePath: null, modulePath: '../routes/auth' },
10
11
  { basePath: '/api/account', modulePath: '../routes/account' },
11
12
  { basePath: '/api/settings', modulePath: '../routes/settings' },
@@ -1 +1 @@
1
- 9d29bc71178d488830002fc181bd7371
1
+ 70a278b8aca183460b7852b89e27d1c7
@@ -1 +1 @@
1
-
1
+
@@ -1 +1 @@
1
- "DQcHIGFzc2V0cy9icmFuZGluZy9hcHBfaWNvbl8yNTYucG5nDAENAQcFYXNzZXQHIGFzc2V0cy9icmFuZGluZy9hcHBfaWNvbl8yNTYucG5nByRhc3NldHMvYnJhbmRpbmcvb25ib2FyZGluZ19pbnRyby5tcDQMAQ0BBwVhc3NldAckYXNzZXRzL2JyYW5kaW5nL29uYm9hcmRpbmdfaW50cm8ubXA0ByZhc3NldHMvYnJhbmRpbmcvdHJheV9pY29uX3RlbXBsYXRlLnBuZwwBDQEHBWFzc2V0ByZhc3NldHMvYnJhbmRpbmcvdHJheV9pY29uX3RlbXBsYXRlLnBuZwcycGFja2FnZXMvY3VwZXJ0aW5vX2ljb25zL2Fzc2V0cy9DdXBlcnRpbm9JY29ucy50dGYMAQ0BBwVhc3NldAcycGFja2FnZXMvY3VwZXJ0aW5vX2ljb25zL2Fzc2V0cy9DdXBlcnRpbm9JY29ucy50dGYHN3BhY2thZ2VzL3JlY29yZF93ZWIvYXNzZXRzL2pzL3JlY29yZC5maXh3ZWJtZHVyYXRpb24uanMMAQ0BBwVhc3NldAc3cGFja2FnZXMvcmVjb3JkX3dlYi9hc3NldHMvanMvcmVjb3JkLmZpeHdlYm1kdXJhdGlvbi5qcwcvcGFja2FnZXMvcmVjb3JkX3dlYi9hc3NldHMvanMvcmVjb3JkLndvcmtsZXQuanMMAQ0BBwVhc3NldAcvcGFja2FnZXMvcmVjb3JkX3dlYi9hc3NldHMvanMvcmVjb3JkLndvcmtsZXQuanMHFndlYi9pY29ucy9JY29uLTE5Mi5wbmcMAQ0BBwVhc3NldAcWd2ViL2ljb25zL0ljb24tMTkyLnBuZw=="
1
+ "DQgHIGFzc2V0cy9icmFuZGluZy9hcHBfaWNvbl8yNTYucG5nDAENAQcFYXNzZXQHIGFzc2V0cy9icmFuZGluZy9hcHBfaWNvbl8yNTYucG5nByRhc3NldHMvYnJhbmRpbmcvb25ib2FyZGluZ19pbnRyby5tcDQMAQ0BBwVhc3NldAckYXNzZXRzL2JyYW5kaW5nL29uYm9hcmRpbmdfaW50cm8ubXA0ByZhc3NldHMvYnJhbmRpbmcvdHJheV9pY29uX3RlbXBsYXRlLnBuZwwBDQEHBWFzc2V0ByZhc3NldHMvYnJhbmRpbmcvdHJheV9pY29uX3RlbXBsYXRlLnBuZwcycGFja2FnZXMvY3VwZXJ0aW5vX2ljb25zL2Fzc2V0cy9DdXBlcnRpbm9JY29ucy50dGYMAQ0BBwVhc3NldAcycGFja2FnZXMvY3VwZXJ0aW5vX2ljb25zL2Fzc2V0cy9DdXBlcnRpbm9JY29ucy50dGYHLHBhY2thZ2VzL21peHBhbmVsX2ZsdXR0ZXIvYXNzZXRzL21peHBhbmVsLmpzDAENAQcFYXNzZXQHLHBhY2thZ2VzL21peHBhbmVsX2ZsdXR0ZXIvYXNzZXRzL21peHBhbmVsLmpzBzdwYWNrYWdlcy9yZWNvcmRfd2ViL2Fzc2V0cy9qcy9yZWNvcmQuZml4d2VibWR1cmF0aW9uLmpzDAENAQcFYXNzZXQHN3BhY2thZ2VzL3JlY29yZF93ZWIvYXNzZXRzL2pzL3JlY29yZC5maXh3ZWJtZHVyYXRpb24uanMHL3BhY2thZ2VzL3JlY29yZF93ZWIvYXNzZXRzL2pzL3JlY29yZC53b3JrbGV0LmpzDAENAQcFYXNzZXQHL3BhY2thZ2VzL3JlY29yZF93ZWIvYXNzZXRzL2pzL3JlY29yZC53b3JrbGV0LmpzBxZ3ZWIvaWNvbnMvSWNvbi0xOTIucG5nDAENAQcFYXNzZXQHFndlYi9pY29ucy9JY29uLTE5Mi5wbmc="
@@ -24829,6 +24829,189 @@ AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
24829
24829
  LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
24830
24830
  OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
24831
24831
  SOFTWARE.
24832
+ --------------------------------------------------------------------------------
24833
+ mixpanel_flutter
24834
+
24835
+ Copyright 2022 Mixpanel, Inc.
24836
+
24837
+
24838
+ Apache License
24839
+ Version 2.0, January 2004
24840
+ http://www.apache.org/licenses/
24841
+
24842
+ TERMS AND CONDITIONS FOR USE, REPRODUCTION, AND DISTRIBUTION
24843
+
24844
+ 1. Definitions.
24845
+
24846
+ "License" shall mean the terms and conditions for use, reproduction,
24847
+ and distribution as defined by Sections 1 through 9 of this document.
24848
+
24849
+ "Licensor" shall mean the copyright owner or entity authorized by
24850
+ the copyright owner that is granting the License.
24851
+
24852
+ "Legal Entity" shall mean the union of the acting entity and all
24853
+ other entities that control, are controlled by, or are under common
24854
+ control with that entity. For the purposes of this definition,
24855
+ "control" means (i) the power, direct or indirect, to cause the
24856
+ direction or management of such entity, whether by contract or
24857
+ otherwise, or (ii) ownership of fifty percent (50%) or more of the
24858
+ outstanding shares, or (iii) beneficial ownership of such entity.
24859
+
24860
+ "You" (or "Your") shall mean an individual or Legal Entity
24861
+ exercising permissions granted by this License.
24862
+
24863
+ "Source" form shall mean the preferred form for making modifications,
24864
+ including but not limited to software source code, documentation
24865
+ source, and configuration files.
24866
+
24867
+ "Object" form shall mean any form resulting from mechanical
24868
+ transformation or translation of a Source form, including but
24869
+ not limited to compiled object code, generated documentation,
24870
+ and conversions to other media types.
24871
+
24872
+ "Work" shall mean the work of authorship, whether in Source or
24873
+ Object form, made available under the License, as indicated by a
24874
+ copyright notice that is included in or attached to the work
24875
+ (an example is provided in the Appendix below).
24876
+
24877
+ "Derivative Works" shall mean any work, whether in Source or Object
24878
+ form, that is based on (or derived from) the Work and for which the
24879
+ editorial revisions, annotations, elaborations, or other modifications
24880
+ represent, as a whole, an original work of authorship. For the purposes
24881
+ of this License, Derivative Works shall not include works that remain
24882
+ separable from, or merely link (or bind by name) to the interfaces of,
24883
+ the Work and Derivative Works thereof.
24884
+
24885
+ "Contribution" shall mean any work of authorship, including
24886
+ the original version of the Work and any modifications or additions
24887
+ to that Work or Derivative Works thereof, that is intentionally
24888
+ submitted to Licensor for inclusion in the Work by the copyright owner
24889
+ or by an individual or Legal Entity authorized to submit on behalf of
24890
+ the copyright owner. For the purposes of this definition, "submitted"
24891
+ means any form of electronic, verbal, or written communication sent
24892
+ to the Licensor or its representatives, including but not limited to
24893
+ communication on electronic mailing lists, source code control systems,
24894
+ and issue tracking systems that are managed by, or on behalf of, the
24895
+ Licensor for the purpose of discussing and improving the Work, but
24896
+ excluding communication that is conspicuously marked or otherwise
24897
+ designated in writing by the copyright owner as "Not a Contribution."
24898
+
24899
+ "Contributor" shall mean Licensor and any individual or Legal Entity
24900
+ on behalf of whom a Contribution has been received by Licensor and
24901
+ subsequently incorporated within the Work.
24902
+
24903
+ 2. Grant of Copyright License. Subject to the terms and conditions of
24904
+ this License, each Contributor hereby grants to You a perpetual,
24905
+ worldwide, non-exclusive, no-charge, royalty-free, irrevocable
24906
+ copyright license to reproduce, prepare Derivative Works of,
24907
+ publicly display, publicly perform, sublicense, and distribute the
24908
+ Work and such Derivative Works in Source or Object form.
24909
+
24910
+ 3. Grant of Patent License. Subject to the terms and conditions of
24911
+ this License, each Contributor hereby grants to You a perpetual,
24912
+ worldwide, non-exclusive, no-charge, royalty-free, irrevocable
24913
+ (except as stated in this section) patent license to make, have made,
24914
+ use, offer to sell, sell, import, and otherwise transfer the Work,
24915
+ where such license applies only to those patent claims licensable
24916
+ by such Contributor that are necessarily infringed by their
24917
+ Contribution(s) alone or by combination of their Contribution(s)
24918
+ with the Work to which such Contribution(s) was submitted. If You
24919
+ institute patent litigation against any entity (including a
24920
+ cross-claim or counterclaim in a lawsuit) alleging that the Work
24921
+ or a Contribution incorporated within the Work constitutes direct
24922
+ or contributory patent infringement, then any patent licenses
24923
+ granted to You under this License for that Work shall terminate
24924
+ as of the date such litigation is filed.
24925
+
24926
+ 4. Redistribution. You may reproduce and distribute copies of the
24927
+ Work or Derivative Works thereof in any medium, with or without
24928
+ modifications, and in Source or Object form, provided that You
24929
+ meet the following conditions:
24930
+
24931
+ (a) You must give any other recipients of the Work or
24932
+ Derivative Works a copy of this License; and
24933
+
24934
+ (b) You must cause any modified files to carry prominent notices
24935
+ stating that You changed the files; and
24936
+
24937
+ (c) You must retain, in the Source form of any Derivative Works
24938
+ that You distribute, all copyright, patent, trademark, and
24939
+ attribution notices from the Source form of the Work,
24940
+ excluding those notices that do not pertain to any part of
24941
+ the Derivative Works; and
24942
+
24943
+ (d) If the Work includes a "NOTICE" text file as part of its
24944
+ distribution, then any Derivative Works that You distribute must
24945
+ include a readable copy of the attribution notices contained
24946
+ within such NOTICE file, excluding those notices that do not
24947
+ pertain to any part of the Derivative Works, in at least one
24948
+ of the following places: within a NOTICE text file distributed
24949
+ as part of the Derivative Works; within the Source form or
24950
+ documentation, if provided along with the Derivative Works; or,
24951
+ within a display generated by the Derivative Works, if and
24952
+ wherever such third-party notices normally appear. The contents
24953
+ of the NOTICE file are for informational purposes only and
24954
+ do not modify the License. You may add Your own attribution
24955
+ notices within Derivative Works that You distribute, alongside
24956
+ or as an addendum to the NOTICE text from the Work, provided
24957
+ that such additional attribution notices cannot be construed
24958
+ as modifying the License.
24959
+
24960
+ You may add Your own copyright statement to Your modifications and
24961
+ may provide additional or different license terms and conditions
24962
+ for use, reproduction, or distribution of Your modifications, or
24963
+ for any such Derivative Works as a whole, provided Your use,
24964
+ reproduction, and distribution of the Work otherwise complies with
24965
+ the conditions stated in this License.
24966
+
24967
+ 5. Submission of Contributions. Unless You explicitly state otherwise,
24968
+ any Contribution intentionally submitted for inclusion in the Work
24969
+ by You to the Licensor shall be under the terms and conditions of
24970
+ this License, without any additional terms or conditions.
24971
+ Notwithstanding the above, nothing herein shall supersede or modify
24972
+ the terms of any separate license agreement you may have executed
24973
+ with Licensor regarding such Contributions.
24974
+
24975
+ 6. Trademarks. This License does not grant permission to use the trade
24976
+ names, trademarks, service marks, or product names of the Licensor,
24977
+ except as required for reasonable and customary use in describing the
24978
+ origin of the Work and reproducing the content of the NOTICE file.
24979
+
24980
+ 7. Disclaimer of Warranty. Unless required by applicable law or
24981
+ agreed to in writing, Licensor provides the Work (and each
24982
+ Contributor provides its Contributions) on an "AS IS" BASIS,
24983
+ WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or
24984
+ implied, including, without limitation, any warranties or conditions
24985
+ of TITLE, NON-INFRINGEMENT, MERCHANTABILITY, or FITNESS FOR A
24986
+ PARTICULAR PURPOSE. You are solely responsible for determining the
24987
+ appropriateness of using or redistributing the Work and assume any
24988
+ risks associated with Your exercise of permissions under this License.
24989
+
24990
+ 8. Limitation of Liability. In no event and under no legal theory,
24991
+ whether in tort (including negligence), contract, or otherwise,
24992
+ unless required by applicable law (such as deliberate and grossly
24993
+ negligent acts) or agreed to in writing, shall any Contributor be
24994
+ liable to You for damages, including any direct, indirect, special,
24995
+ incidental, or consequential damages of any character arising as a
24996
+ result of this License or out of the use or inability to use the
24997
+ Work (including but not limited to damages for loss of goodwill,
24998
+ work stoppage, computer failure or malfunction, or any and all
24999
+ other commercial damages or losses), even if such Contributor
25000
+ has been advised of the possibility of such damages.
25001
+
25002
+ 9. Accepting Warranty or Additional Liability. While redistributing
25003
+ the Work or Derivative Works thereof, You may choose to offer,
25004
+ and charge a fee for, acceptance of support, warranty, indemnity,
25005
+ or other liability obligations and/or rights consistent with this
25006
+ License. However, in accepting such obligations, You may act only
25007
+ on Your own behalf and on Your sole responsibility, not on behalf
25008
+ of any other Contributor, and only if You agree to indemnify,
25009
+ defend, and hold each Contributor harmless for any liability
25010
+ incurred by, or claims asserted against, such Contributor by reason
25011
+ of your accepting any such warranty or additional liability.
25012
+
25013
+ END OF TERMS AND CONDITIONS
25014
+
24832
25015
  --------------------------------------------------------------------------------
24833
25016
  mobile_scanner
24834
25017
 
@@ -0,0 +1,3 @@
1
+ (function(f,b){if(!b.__SV){var e,g,i,h;window.mixpanel=b;b._i=[];b.init=function(e,f,c){function g(a,d){var b=d.split(".");2==b.length&&(a=a[b[0]],d=b[1]);a[d]=function(){a.push([d].concat(Array.prototype.slice.call(arguments,0)))}}var a=b;"undefined"!==typeof c?a=b[c]=[]:c="mixpanel";a.people=a.people||[];a.toString=function(a){var d="mixpanel";"mixpanel"!==c&&(d+="."+c);a||(d+=" (stub)");return d};a.people.toString=function(){return a.toString(1)+".people (stub)"};i="disable time_event track track_pageview track_links track_forms track_with_groups add_group set_group remove_group register register_once alias unregister identify name_tag set_config reset opt_in_tracking opt_out_tracking has_opted_in_tracking has_opted_out_tracking clear_opt_in_out_tracking start_batch_senders people.set people.set_once people.unset people.increment people.append people.union people.track_charge people.clear_charges people.delete_user people.remove".split(" ");
2
+ for(h=0;h<i.length;h++)g(a,i[h]);var j="set set_once union unset remove delete".split(" ");a.get_group=function(){function b(c){d[c]=function(){call2_args=arguments;call2=[c].concat(Array.prototype.slice.call(call2_args,0));a.push([e,call2])}}for(var d={},e=["get_group"].concat(Array.prototype.slice.call(arguments,0)),c=0;c<j.length;c++)b(j[c]);return d};b._i.push([e,f,c])};b.__SV=1.2;e=f.createElement("script");e.type="text/javascript";e.async=!0;e.crossOrigin="anonymous";e.src="undefined"!==typeof MIXPANEL_CUSTOM_LIB_URL?
3
+ MIXPANEL_CUSTOM_LIB_URL:"file:"===f.location.protocol&&"//cdn.mxpnl.com/libs/mixpanel-2-latest.min.js".match(/^\/\//)?"https://cdn.mxpnl.com/libs/mixpanel-2-latest.min.js":"//cdn.mxpnl.com/libs/mixpanel-2-latest.min.js";g=f.getElementsByTagName("script")[0];g.parentNode.insertBefore(e,g)}})(document,window.mixpanel||[]);
@@ -37,6 +37,6 @@ _flutter.buildConfig = {"engineRevision":"42d3d75a56efe1a2e9902f52dc8006099c45d9
37
37
 
38
38
  _flutter.loader.load({
39
39
  serviceWorkerSettings: {
40
- serviceWorkerVersion: "366687658" /* Flutter's service worker is deprecated and will be removed in a future Flutter release. */
40
+ serviceWorkerVersion: "3646065568" /* Flutter's service worker is deprecated and will be removed in a future Flutter release. */
41
41
  }
42
42
  });
@@ -32,6 +32,7 @@
32
32
 
33
33
  <title>NeoAgent</title>
34
34
  <link rel="manifest" href="manifest.json">
35
+ <script src="https://cdn.mxpnl.com/libs/mixpanel-2-latest.min.js"></script>
35
36
  </head>
36
37
  <body>
37
38
  <script src="flutter_bootstrap.js" async></script>