@lvce-editor/shared-process 0.81.3 → 0.81.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/config/defaultSettings.json +1 -1
- package/package.json +2 -2
- package/src/parts/BuiltinExtensionsPath/BuiltinExtensionsPath.js +1 -1
- package/src/parts/Platform/Platform.js +3 -3
- package/src/parts/Preferences/Preferences.js +5 -1
- package/src/parts/PreloadUrl/PreloadUrl.js +1 -1
- package/src/parts/Workers/Workers.json +7 -2
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@lvce-editor/shared-process",
|
|
3
|
-
"version": "0.81.
|
|
3
|
+
"version": "0.81.4",
|
|
4
4
|
"main": "index.js",
|
|
5
5
|
"type": "module",
|
|
6
6
|
"keywords": [
|
|
@@ -19,7 +19,7 @@
|
|
|
19
19
|
"dependencies": {
|
|
20
20
|
"@lvce-editor/assert": "1.5.1",
|
|
21
21
|
"@lvce-editor/auth-process": "1.6.0",
|
|
22
|
-
"@lvce-editor/extension-host-helper-process": "0.81.
|
|
22
|
+
"@lvce-editor/extension-host-helper-process": "0.81.4",
|
|
23
23
|
"@lvce-editor/ipc": "16.0.0",
|
|
24
24
|
"@lvce-editor/json-rpc": "8.0.0",
|
|
25
25
|
"@lvce-editor/jsonc-parser": "1.5.0",
|
|
@@ -2,6 +2,6 @@ import { join } from 'path';
|
|
|
2
2
|
import { fileURLToPath } from 'url';
|
|
3
3
|
export const getBuiltinExtensionsPath = () => {
|
|
4
4
|
const staticServerPath = fileURLToPath(import.meta.resolve('@lvce-editor/static-server'));
|
|
5
|
-
const builtinExtensionsPath = join(staticServerPath, '..', '..', 'static', '
|
|
5
|
+
const builtinExtensionsPath = join(staticServerPath, '..', '..', 'static', '690a087', 'extensions');
|
|
6
6
|
return builtinExtensionsPath;
|
|
7
7
|
};
|
|
@@ -41,9 +41,9 @@ export const getAppImageName = () => {
|
|
|
41
41
|
export const getSetupName = () => {
|
|
42
42
|
return 'Lvce-Setup';
|
|
43
43
|
};
|
|
44
|
-
export const version = '0.81.
|
|
45
|
-
export const commit = '
|
|
46
|
-
export const date = '2026-05-
|
|
44
|
+
export const version = '0.81.4';
|
|
45
|
+
export const commit = '690a087';
|
|
46
|
+
export const date = '2026-05-17T14:31:45.000Z';
|
|
47
47
|
export const getVersion = () => {
|
|
48
48
|
return version;
|
|
49
49
|
};
|
|
@@ -5,6 +5,9 @@ import * as PlatformPaths from '../PlatformPaths/PlatformPaths.js';
|
|
|
5
5
|
import * as Process from '../Process/Process.js';
|
|
6
6
|
import { VError } from '../VError/VError.js';
|
|
7
7
|
// TODO need jsonc parser for settings with comments
|
|
8
|
+
const builtinPreferences = {
|
|
9
|
+
'window.titleBarStyle': 'custom',
|
|
10
|
+
};
|
|
8
11
|
export const getUserPreferences = async () => {
|
|
9
12
|
try {
|
|
10
13
|
const userSettingsPath = PlatformPaths.getUserSettingsPath();
|
|
@@ -63,6 +66,7 @@ export const getAll = async () => {
|
|
|
63
66
|
// TODO separate backend and frontend preferences, ui only needs frontend preferences
|
|
64
67
|
const preferences = {
|
|
65
68
|
...defaultPreferences,
|
|
69
|
+
...builtinPreferences,
|
|
66
70
|
...userPreferences,
|
|
67
71
|
...overrides,
|
|
68
72
|
};
|
|
@@ -87,7 +91,7 @@ export const getAllSafe = async () => {
|
|
|
87
91
|
}
|
|
88
92
|
catch (error) {
|
|
89
93
|
Logger.error(`[shared-process] Failed to load preferences on startup, continuing with defaults: ${error}`);
|
|
90
|
-
return
|
|
94
|
+
return builtinPreferences;
|
|
91
95
|
}
|
|
92
96
|
};
|
|
93
97
|
// TODO when preferences cannot be loaded, ui should show useful error message
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { join } from 'node:path';
|
|
2
2
|
import * as Root from '../Root/Root.js';
|
|
3
3
|
export const getPreloadUrl = () => {
|
|
4
|
-
return join(Root.root, 'static', '
|
|
4
|
+
return join(Root.root, 'static', '690a087', 'packages', 'preload', 'dist', 'index.js');
|
|
5
5
|
};
|
|
@@ -92,11 +92,16 @@
|
|
|
92
92
|
{
|
|
93
93
|
"id": "chatViewModelWorker",
|
|
94
94
|
"fileName": "chatViewModelWorkerMain.js",
|
|
95
|
-
"contentSecurityPolicy": [
|
|
95
|
+
"contentSecurityPolicy": [
|
|
96
|
+
"default-src 'none'",
|
|
97
|
+
"connect-src https://openrouter.ai https://api.openai.com https://lvce-editor.dev",
|
|
98
|
+
"sandbox allow-same-origin"
|
|
99
|
+
],
|
|
96
100
|
"defaultPath": "/packages/renderer-worker/node_modules/@lvce-editor/chat-view-model/dist/chatViewModelWorkerMain.js",
|
|
97
101
|
"productionPath": "/packages/chat-view-model/dist/chatViewModelWorkerMain.js",
|
|
98
102
|
"settingName": "develop.chatViewModelWorkerPath",
|
|
99
|
-
"hotReloadCommand": ""
|
|
103
|
+
"hotReloadCommand": "",
|
|
104
|
+
"TODO": "remove connect src from this worker"
|
|
100
105
|
},
|
|
101
106
|
{
|
|
102
107
|
"id": "chatView",
|