neoagent 2.1.17-beta.9 → 2.1.17

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.
Files changed (40) hide show
  1. package/docs/configuration.md +1 -1
  2. package/package.json +2 -1
  3. package/server/db/database.js +6 -0
  4. package/server/http/middleware.js +2 -1
  5. package/server/public/assets/NOTICES +97 -31
  6. package/server/public/assets/fonts/MaterialIcons-Regular.otf +0 -0
  7. package/server/public/flutter_bootstrap.js +1 -1
  8. package/server/public/main.dart.js +70703 -66176
  9. package/server/routes/agents.js +46 -3
  10. package/server/routes/android.js +3 -3
  11. package/server/routes/browser.js +25 -16
  12. package/server/routes/memory.js +13 -16
  13. package/server/routes/recordings.js +112 -4
  14. package/server/routes/settings.js +16 -11
  15. package/server/routes/wearables.js +19 -3
  16. package/server/services/ai/capabilityHealth.js +253 -0
  17. package/server/services/ai/compaction.js +17 -6
  18. package/server/services/ai/engine.js +894 -40
  19. package/server/services/ai/history.js +5 -5
  20. package/server/services/ai/models.js +90 -1
  21. package/server/services/ai/multiStep.js +12 -6
  22. package/server/services/ai/providers/grok.js +36 -6
  23. package/server/services/ai/recordingInsights.js +4 -2
  24. package/server/services/ai/settings.js +12 -6
  25. package/server/services/ai/systemPrompt.js +40 -7
  26. package/server/services/ai/taskAnalysis.js +317 -0
  27. package/server/services/ai/toolResult.js +49 -6
  28. package/server/services/ai/tools.js +164 -35
  29. package/server/services/android/controller.js +88 -39
  30. package/server/services/browser/controller.js +1 -1
  31. package/server/services/commands/router.js +350 -0
  32. package/server/services/manager.js +114 -11
  33. package/server/services/memory/manager.js +262 -70
  34. package/server/services/messaging/automation.js +69 -1
  35. package/server/services/messaging/telegram.js +6 -2
  36. package/server/services/recordings/manager.js +206 -11
  37. package/server/services/scheduler/cron.js +172 -83
  38. package/server/services/wearables/manager.js +272 -21
  39. package/server/services/wearables/protocols/heypocket.js +10 -0
  40. package/server/services/websocket.js +21 -43
@@ -44,7 +44,7 @@ Telegram, Discord, and WhatsApp tokens are stored in the database via the Flutte
44
44
 
45
45
  - Config: `~/.neoagent/.env`
46
46
  - Database/session/logs: `~/.neoagent/data/`
47
- - Skills/soul/daily memory files: `~/.neoagent/agent-data/`
47
+ - Skills/memory/daily data files: `~/.neoagent/agent-data/`
48
48
 
49
49
  ---
50
50
 
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "neoagent",
3
- "version": "2.1.17-beta.9",
3
+ "version": "2.1.17",
4
4
  "description": "Proactive personal AI agent with no limits",
5
5
  "license": "MIT",
6
6
  "main": "server/index.js",
@@ -60,6 +60,7 @@
60
60
  "node-cron": "^3.0.3",
61
61
  "node-pty": "^1.0.0",
62
62
  "openai": "^4.85.4",
63
+ "proper-lockfile": "^4.1.2",
63
64
  "puppeteer-core": "^24.40.0",
64
65
  "puppeteer-extra": "^3.3.6",
65
66
  "puppeteer-extra-plugin-stealth": "^2.11.2",
@@ -39,6 +39,7 @@ db.exec(`
39
39
  model TEXT,
40
40
  total_tokens INTEGER DEFAULT 0,
41
41
  prompt_metrics TEXT,
42
+ metadata_json TEXT,
42
43
  error TEXT,
43
44
  final_response TEXT,
44
45
  created_at TEXT DEFAULT (datetime('now')),
@@ -146,6 +147,8 @@ db.exec(`
146
147
  compaction_count INTEGER DEFAULT 0,
147
148
  summary TEXT,
148
149
  summary_message_count INTEGER DEFAULT 0,
150
+ working_state_json TEXT,
151
+ last_verified_facts_json TEXT,
149
152
  last_compaction TEXT,
150
153
  last_summary TEXT,
151
154
  created_at TEXT DEFAULT (datetime('now')),
@@ -406,9 +409,12 @@ for (const col of [
406
409
  "ALTER TABLE scheduled_tasks ADD COLUMN run_at TEXT",
407
410
  "ALTER TABLE scheduled_tasks ADD COLUMN one_time INTEGER DEFAULT 0",
408
411
  "ALTER TABLE agent_runs ADD COLUMN prompt_metrics TEXT",
412
+ "ALTER TABLE agent_runs ADD COLUMN metadata_json TEXT",
409
413
  "ALTER TABLE agent_runs ADD COLUMN final_response TEXT",
410
414
  "ALTER TABLE conversations ADD COLUMN summary TEXT",
411
415
  "ALTER TABLE conversations ADD COLUMN summary_message_count INTEGER DEFAULT 0",
416
+ "ALTER TABLE conversations ADD COLUMN working_state_json TEXT",
417
+ "ALTER TABLE conversations ADD COLUMN last_verified_facts_json TEXT",
412
418
  "ALTER TABLE conversations ADD COLUMN last_summary TEXT",
413
419
  "ALTER TABLE recording_sessions ADD COLUMN transcript_language TEXT",
414
420
  "ALTER TABLE recording_sessions ADD COLUMN transcript_model TEXT",
@@ -34,10 +34,11 @@ function ensureSessionStoreSchema(db) {
34
34
  db.exec('CREATE TABLE sessions (sid PRIMARY KEY, sess, expire)');
35
35
 
36
36
  if (hasSid && hasSess) {
37
+ // TODO: Verify whether better-sqlite3-session-store treats expire=0 as already expired or non-expiring.
37
38
  const expireExpr = expireColumn ? expireColumn : 'NULL';
38
39
  db.exec(`
39
40
  INSERT OR REPLACE INTO sessions (sid, sess, expire)
40
- SELECT sid, sess, ${expireExpr}
41
+ SELECT sid, sess, COALESCE(${expireExpr}, 0) AS expire
41
42
  FROM ${legacyTableName}
42
43
  WHERE sid IS NOT NULL
43
44
  `);
@@ -1127,6 +1127,37 @@ THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT
1127
1127
  (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE
1128
1128
  OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
1129
1129
 
1130
+ --------------------------------------------------------------------------------
1131
+ audioplayers
1132
+ audioplayers_android
1133
+ audioplayers_darwin
1134
+ audioplayers_linux
1135
+ audioplayers_platform_interface
1136
+ audioplayers_web
1137
+ audioplayers_windows
1138
+
1139
+ MIT License
1140
+
1141
+ Copyright (c) 2017 Blue Fire
1142
+
1143
+ Permission is hereby granted, free of charge, to any person obtaining a copy
1144
+ of this software and associated documentation files (the "Software"), to deal
1145
+ in the Software without restriction, including without limitation the rights
1146
+ to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
1147
+ copies of the Software, and to permit persons to whom the Software is
1148
+ furnished to do so, subject to the following conditions:
1149
+
1150
+ The above copyright notice and this permission notice shall be included in all
1151
+ copies or substantial portions of the Software.
1152
+
1153
+ THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
1154
+ IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
1155
+ FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
1156
+ AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
1157
+ LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
1158
+ OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
1159
+ SOFTWARE.
1160
+
1130
1161
  --------------------------------------------------------------------------------
1131
1162
  benchmark
1132
1163
 
@@ -4837,6 +4868,38 @@ DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY
4837
4868
  THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT
4838
4869
  (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE
4839
4870
  OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
4871
+ --------------------------------------------------------------------------------
4872
+ fixnum
4873
+ stack_trace
4874
+
4875
+ Copyright 2014, the Dart project authors.
4876
+
4877
+ Redistribution and use in source and binary forms, with or without
4878
+ modification, are permitted provided that the following conditions are
4879
+ met:
4880
+
4881
+ * Redistributions of source code must retain the above copyright
4882
+ notice, this list of conditions and the following disclaimer.
4883
+ * Redistributions in binary form must reproduce the above
4884
+ copyright notice, this list of conditions and the following
4885
+ disclaimer in the documentation and/or other materials provided
4886
+ with the distribution.
4887
+ * Neither the name of Google LLC nor the names of its
4888
+ contributors may be used to endorse or promote products derived
4889
+ from this software without specific prior written permission.
4890
+
4891
+ THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS
4892
+ "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT
4893
+ LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR
4894
+ A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT
4895
+ OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL,
4896
+ SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT
4897
+ LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE,
4898
+ DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY
4899
+ THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT
4900
+ (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE
4901
+ OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
4902
+
4840
4903
  --------------------------------------------------------------------------------
4841
4904
  flatbuffers
4842
4905
 
@@ -27906,37 +27969,6 @@ offers a blessing:
27906
27969
  May you do good and not evil
27907
27970
  May you find forgiveness for yourself and forgive others
27908
27971
  May you share freely, never taking more than you give.
27909
- --------------------------------------------------------------------------------
27910
- stack_trace
27911
-
27912
- Copyright 2014, the Dart project authors.
27913
-
27914
- Redistribution and use in source and binary forms, with or without
27915
- modification, are permitted provided that the following conditions are
27916
- met:
27917
-
27918
- * Redistributions of source code must retain the above copyright
27919
- notice, this list of conditions and the following disclaimer.
27920
- * Redistributions in binary form must reproduce the above
27921
- copyright notice, this list of conditions and the following
27922
- disclaimer in the documentation and/or other materials provided
27923
- with the distribution.
27924
- * Neither the name of Google LLC nor the names of its
27925
- contributors may be used to endorse or promote products derived
27926
- from this software without specific prior written permission.
27927
-
27928
- THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS
27929
- "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT
27930
- LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR
27931
- A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT
27932
- OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL,
27933
- SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT
27934
- LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE,
27935
- DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY
27936
- THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT
27937
- (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE
27938
- OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
27939
-
27940
27972
  --------------------------------------------------------------------------------
27941
27973
  swiftshader
27942
27974
 
@@ -28262,6 +28294,30 @@ Copyright 2023-2025 LunarG, Inc.
28262
28294
 
28263
28295
  SPDX-License-Identifier: Apache-2.0
28264
28296
  --------------------------------------------------------------------------------
28297
+ synchronized
28298
+
28299
+ MIT License
28300
+
28301
+ Copyright (c) 2016, Alexandre Roux Tekartik.
28302
+
28303
+ Permission is hereby granted, free of charge, to any person obtaining a copy
28304
+ of this software and associated documentation files (the "Software"), to deal
28305
+ in the Software without restriction, including without limitation the rights
28306
+ to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
28307
+ copies of the Software, and to permit persons to whom the Software is
28308
+ furnished to do so, subject to the following conditions:
28309
+
28310
+ The above copyright notice and this permission notice shall be included in all
28311
+ copies or substantial portions of the Software.
28312
+
28313
+ THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
28314
+ IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
28315
+ FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
28316
+ AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
28317
+ LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
28318
+ OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
28319
+ SOFTWARE.
28320
+ --------------------------------------------------------------------------------
28265
28321
  term_glyph
28266
28322
 
28267
28323
  Copyright 2017, the Dart project authors.
@@ -28366,6 +28422,16 @@ CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY,
28366
28422
  OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE
28367
28423
  OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
28368
28424
  --------------------------------------------------------------------------------
28425
+ uuid
28426
+
28427
+ Copyright (c) 2021 Yulian Kuncheff
28428
+
28429
+ Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions:
28430
+
28431
+ The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software.
28432
+
28433
+ THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
28434
+ --------------------------------------------------------------------------------
28369
28435
  vector_math
28370
28436
 
28371
28437
  Copyright 2015, Google Inc. All rights reserved.
@@ -37,6 +37,6 @@ _flutter.buildConfig = {"engineRevision":"425cfb54d01a9472b3e81d9e76fd63a4a44cfb
37
37
 
38
38
  _flutter.loader.load({
39
39
  serviceWorkerSettings: {
40
- serviceWorkerVersion: "1929259476" /* Flutter's service worker is deprecated and will be removed in a future Flutter release. */
40
+ serviceWorkerVersion: "816714754" /* Flutter's service worker is deprecated and will be removed in a future Flutter release. */
41
41
  }
42
42
  });