neoagent 3.3.1-beta.2 → 3.3.1-beta.4
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/README.md +6 -1
- package/docs/getting-started.md +11 -8
- package/docs/index.md +5 -3
- package/flutter_app/lib/main_settings.dart +214 -101
- package/flutter_app/lib/main_unified.dart +178 -76
- package/lib/manager.js +253 -17
- package/package.json +1 -1
- package/runtime/paths.js +2 -0
- package/server/db/database.js +6 -2
- package/server/public/.last_build_id +1 -1
- package/server/public/assets/fonts/MaterialIcons-Regular.otf +0 -0
- package/server/public/flutter_bootstrap.js +1 -1
- package/server/public/main.dart.js +56371 -56240
- package/server/services/ai/provider_definitions.js +140 -0
- package/server/services/ai/settings.js +1 -123
- package/server/services/messaging/access_policy.js +3 -14
package/package.json
CHANGED
package/runtime/paths.js
CHANGED
|
@@ -11,6 +11,7 @@ const DATA_DIR = path.resolve(process.env.NEOAGENT_DATA_DIR || path.join(RUNTIME
|
|
|
11
11
|
const AGENT_DATA_DIR = path.resolve(process.env.NEOAGENT_AGENT_DATA_DIR || path.join(RUNTIME_HOME, 'agent-data'));
|
|
12
12
|
const LOG_DIR = path.join(DATA_DIR, 'logs');
|
|
13
13
|
const ENV_FILE = path.resolve(process.env.NEOAGENT_ENV_FILE || path.join(RUNTIME_HOME, '.env'));
|
|
14
|
+
const DATABASE_FILE = path.join(DATA_DIR, 'neoagent.db');
|
|
14
15
|
const UPDATE_STATUS_FILE = path.join(DATA_DIR, 'update-status.json');
|
|
15
16
|
const PID_FILE = path.join(DATA_DIR, 'neoagent.pid');
|
|
16
17
|
|
|
@@ -347,6 +348,7 @@ module.exports = {
|
|
|
347
348
|
AGENT_DATA_DIR,
|
|
348
349
|
LOG_DIR,
|
|
349
350
|
ENV_FILE,
|
|
351
|
+
DATABASE_FILE,
|
|
350
352
|
UPDATE_STATUS_FILE,
|
|
351
353
|
PID_FILE,
|
|
352
354
|
LEGACY_ENV_FILE,
|
package/server/db/database.js
CHANGED
|
@@ -2,7 +2,11 @@ const Database = require('better-sqlite3');
|
|
|
2
2
|
const fs = require('fs');
|
|
3
3
|
const path = require('path');
|
|
4
4
|
const { randomUUID } = require('crypto');
|
|
5
|
-
const {
|
|
5
|
+
const {
|
|
6
|
+
DATA_DIR,
|
|
7
|
+
DATABASE_FILE,
|
|
8
|
+
ensureRuntimeDirs,
|
|
9
|
+
} = require('../../runtime/paths');
|
|
6
10
|
const {
|
|
7
11
|
encryptValue,
|
|
8
12
|
isEncryptedValue,
|
|
@@ -10,7 +14,7 @@ const {
|
|
|
10
14
|
const { runSchemaMigrations } = require('../../lib/schema_migrations');
|
|
11
15
|
ensureRuntimeDirs();
|
|
12
16
|
|
|
13
|
-
const DB_PATH =
|
|
17
|
+
const DB_PATH = DATABASE_FILE;
|
|
14
18
|
|
|
15
19
|
function removeWalSidecars(dbPath) {
|
|
16
20
|
for (const suffix of ['-wal', '-shm']) {
|
|
@@ -1 +1 @@
|
|
|
1
|
-
|
|
1
|
+
27b4e8ad747016fdb381a215a84db6fc
|
|
Binary file
|
|
@@ -37,6 +37,6 @@ _flutter.buildConfig = {"engineRevision":"0cd610717bde95fd88343c64f81c11ba4e5c00
|
|
|
37
37
|
|
|
38
38
|
_flutter.loader.load({
|
|
39
39
|
serviceWorkerSettings: {
|
|
40
|
-
serviceWorkerVersion: "
|
|
40
|
+
serviceWorkerVersion: "3596148061" /* Flutter's service worker is deprecated and will be removed in a future Flutter release. */
|
|
41
41
|
}
|
|
42
42
|
});
|