@lvce-editor/shared-process 0.118.19 → 0.118.21
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/package.json +4 -4
- package/src/parts/ApplyCustomWorkerPathCliOverride/ApplyCustomWorkerPathCliOverride.js +6 -1
- package/src/parts/BuiltinExtensionsPath/BuiltinExtensionsPath.js +1 -1
- package/src/parts/Platform/Platform.js +3 -3
- package/src/parts/PreloadUrl/PreloadUrl.js +1 -1
- package/src/parts/WindowsStagedUpdate/WindowsStagedUpdate.js +4 -2
- package/src/parts/Workers/Workers.json +6 -0
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@lvce-editor/shared-process",
|
|
3
|
-
"version": "0.118.
|
|
3
|
+
"version": "0.118.21",
|
|
4
4
|
"main": "index.js",
|
|
5
5
|
"type": "module",
|
|
6
6
|
"keywords": [
|
|
@@ -23,8 +23,8 @@
|
|
|
23
23
|
"@lvce-editor/json-rpc": "8.8.2",
|
|
24
24
|
"@lvce-editor/jsonc-parser": "1.5.2",
|
|
25
25
|
"@lvce-editor/pretty-error": "2.0.2",
|
|
26
|
-
"@lvce-editor/process-explorer": "3.
|
|
27
|
-
"@lvce-editor/rpc-registry": "9.65.
|
|
26
|
+
"@lvce-editor/process-explorer": "3.32.1",
|
|
27
|
+
"@lvce-editor/rpc-registry": "9.65.4",
|
|
28
28
|
"@lvce-editor/verror": "1.7.0",
|
|
29
29
|
"is-object": "^1.0.2",
|
|
30
30
|
"xdg-basedir": "^5.1.0"
|
|
@@ -38,7 +38,7 @@
|
|
|
38
38
|
"@lvce-editor/network-process": "5.2.0",
|
|
39
39
|
"@lvce-editor/preload": "1.5.1",
|
|
40
40
|
"@lvce-editor/preview-process": "11.0.0",
|
|
41
|
-
"@lvce-editor/pty-host": "8.
|
|
41
|
+
"@lvce-editor/pty-host": "8.11.1",
|
|
42
42
|
"@lvce-editor/search-process": "15.10.0",
|
|
43
43
|
"@lvce-editor/typescript-compile-process": "5.10.2",
|
|
44
44
|
"open": "^11.0.4",
|
|
@@ -2,7 +2,12 @@ import * as Process from '../Process/Process.js'
|
|
|
2
2
|
|
|
3
3
|
const disableCustomWorkerPathsFlag = '--disable-custom-worker-paths'
|
|
4
4
|
|
|
5
|
-
const workerPathSettingsWithoutWorkerInName = new Set([
|
|
5
|
+
const workerPathSettingsWithoutWorkerInName = new Set([
|
|
6
|
+
'develop.languageModelsViewPath',
|
|
7
|
+
'develop.portsViewPath',
|
|
8
|
+
'develop.runningExtensionsViewPath',
|
|
9
|
+
'develop.workersViewPath',
|
|
10
|
+
])
|
|
6
11
|
|
|
7
12
|
export const isCustomWorkerPathSetting = (key) => {
|
|
8
13
|
const isDevelopmentSetting = key.startsWith('develop.') || key.startsWith('developer.')
|
|
@@ -3,6 +3,6 @@ import { fileURLToPath } from 'url'
|
|
|
3
3
|
|
|
4
4
|
export const getBuiltinExtensionsPath = () => {
|
|
5
5
|
const staticServerPath = fileURLToPath(import.meta.resolve('@lvce-editor/static-server'))
|
|
6
|
-
const builtinExtensionsPath = join(staticServerPath, '..', '..', 'static', '
|
|
6
|
+
const builtinExtensionsPath = join(staticServerPath, '..', '..', 'static', '01b92f2', 'extensions')
|
|
7
7
|
return builtinExtensionsPath
|
|
8
8
|
}
|
|
@@ -56,11 +56,11 @@ export const getSetupName = () => {
|
|
|
56
56
|
return 'Lvce-Setup'
|
|
57
57
|
}
|
|
58
58
|
|
|
59
|
-
export const version = '0.118.
|
|
59
|
+
export const version = '0.118.21'
|
|
60
60
|
|
|
61
|
-
export const commit = '
|
|
61
|
+
export const commit = '01b92f2'
|
|
62
62
|
|
|
63
|
-
export const date = '2026-09-
|
|
63
|
+
export const date = '2026-09-29T09:32:15.000Z'
|
|
64
64
|
|
|
65
65
|
export const getVersion = () => {
|
|
66
66
|
return version
|
|
@@ -2,5 +2,5 @@ import { join } from 'node:path'
|
|
|
2
2
|
import * as Root from '../Root/Root.js'
|
|
3
3
|
|
|
4
4
|
export const getPreloadUrl = () => {
|
|
5
|
-
return join(Root.root, 'static', '
|
|
5
|
+
return join(Root.root, 'static', '01b92f2', 'packages', 'preload', 'dist', 'index.js')
|
|
6
6
|
}
|
|
@@ -33,6 +33,9 @@ const RE_VERSION = /^\d+\.\d+\.\d+$/
|
|
|
33
33
|
const RE_DIGEST = /^sha256:[a-f0-9]{64}$/
|
|
34
34
|
const RE_TAG = /^v/
|
|
35
35
|
const RE_TOKEN = /^[a-f0-9]{32}$/
|
|
36
|
+
const MINIMUM_STAGED_UPDATE_VERSION = '0.116.2'
|
|
37
|
+
|
|
38
|
+
export const supportsStagedUpdate = (version) => CompareVersion.isGreater(version, MINIMUM_STAGED_UPDATE_VERSION) || version === MINIMUM_STAGED_UPDATE_VERSION
|
|
36
39
|
|
|
37
40
|
export const validateAsset = (asset, version, arch) => {
|
|
38
41
|
if (!RE_VERSION.test(version) || !['x64', 'arm64'].includes(arch)) {
|
|
@@ -161,9 +164,8 @@ export const check = async (silent, windowId) => {
|
|
|
161
164
|
}
|
|
162
165
|
return true
|
|
163
166
|
}
|
|
164
|
-
const capability = release.assets.some((item) => item.name === `Lvce-Stage-v${version}-${process.arch}-v2.json`)
|
|
165
167
|
const asset = release.assets.find((item) => item.name === `Lvce-Setup-v${version}-${process.arch}.exe`)
|
|
166
|
-
if (!
|
|
168
|
+
if (!supportsStagedUpdate(version) || !asset) {
|
|
167
169
|
return false
|
|
168
170
|
}
|
|
169
171
|
if (!silent) {
|
|
@@ -1648,6 +1648,7 @@
|
|
|
1648
1648
|
"viewlet": {
|
|
1649
1649
|
"name": "Workers",
|
|
1650
1650
|
"title": "Workers",
|
|
1651
|
+
"css": ["/css/parts/ViewletWorkers.css"],
|
|
1651
1652
|
"state": {
|
|
1652
1653
|
"idKey": "uid",
|
|
1653
1654
|
"fields": ["uri", "x", "y", "width", "height"],
|
|
@@ -1681,6 +1682,11 @@
|
|
|
1681
1682
|
]
|
|
1682
1683
|
},
|
|
1683
1684
|
"getCommandIds": { "name": "Workers.getCommandIds", "parameters": [] },
|
|
1685
|
+
"getComponentState": { "name": "Workers.getComponentState", "parameters": [{ "source": "state", "name": "uid" }] },
|
|
1686
|
+
"setComponentState": {
|
|
1687
|
+
"name": "Workers.setComponentState",
|
|
1688
|
+
"parameters": [{ "source": "state", "name": "uid" }, { "source": "argument", "name": "componentState" }]
|
|
1689
|
+
},
|
|
1684
1690
|
"renderEventListeners": { "name": "Workers.renderEventListeners", "parameters": [] }
|
|
1685
1691
|
},
|
|
1686
1692
|
"capabilities": { "directRender": true, "events": true, "render": true, "resize": true, "rootRender": true },
|