@lvce-editor/shared-process 0.124.5 → 0.124.8
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 +1 -1
- package/src/parts/AppWindow/AppWindow.js +3 -0
- package/src/parts/BuiltinExtensionsPath/BuiltinExtensionsPath.js +1 -1
- package/src/parts/GetHelpString/GetHelpString.js +1 -0
- package/src/parts/Platform/Platform.js +3 -3
- package/src/parts/PreloadUrl/PreloadUrl.js +1 -1
- package/src/parts/ProcessExplorer/ProcessExplorer.js +19 -1
- package/src/parts/Workers/Workers.json +2 -1
package/package.json
CHANGED
|
@@ -40,6 +40,9 @@ const getAbsolutePath = (parsedArgs, workingDirectory) => {
|
|
|
40
40
|
const getAppWindowUrl = async (url, parsedArgs, workingDirectory) => {
|
|
41
41
|
const parsedUrl = new URL(getValidatedAppUrl(url))
|
|
42
42
|
const absolutePath = getAbsolutePath(parsedArgs, workingDirectory)
|
|
43
|
+
if (parsedArgs?.['no-cache-cleanup']) {
|
|
44
|
+
parsedUrl.searchParams.set('noCacheCleanup', '1')
|
|
45
|
+
}
|
|
43
46
|
if (parsedArgs?.['cpu-profile']) {
|
|
44
47
|
if (typeof parsedArgs.open !== 'string' || !parsedArgs.open) throw new Error('--cpu-profile requires --open <file>')
|
|
45
48
|
const workspace = absolutePath || workingDirectory
|
|
@@ -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', '5f06c95', '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.124.
|
|
59
|
+
export const version = '0.124.8'
|
|
60
60
|
|
|
61
|
-
export const commit = '
|
|
61
|
+
export const commit = '5f06c95'
|
|
62
62
|
|
|
63
|
-
export const date = '2026-10-
|
|
63
|
+
export const date = '2026-10-20T16:57:54.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', '5f06c95', 'packages', 'preload', 'dist', 'index.js')
|
|
6
6
|
}
|
|
@@ -10,7 +10,25 @@ export const state = {
|
|
|
10
10
|
|
|
11
11
|
export const getOrCreate = async () => {
|
|
12
12
|
if (!state.ipc) {
|
|
13
|
-
|
|
13
|
+
const ipcPromise = LaunchProcessExplorer.launchProcessExplorer()
|
|
14
|
+
state.ipc = ipcPromise
|
|
15
|
+
ipcPromise.then(
|
|
16
|
+
(ipc) => {
|
|
17
|
+
ipc.on('close', () => {
|
|
18
|
+
// A late close from an old process must not invalidate its replacement.
|
|
19
|
+
if (state.ipc !== ipcPromise) {
|
|
20
|
+
return
|
|
21
|
+
}
|
|
22
|
+
state.ipc = undefined
|
|
23
|
+
state.refCount = 0
|
|
24
|
+
})
|
|
25
|
+
},
|
|
26
|
+
() => {
|
|
27
|
+
if (state.ipc === ipcPromise) {
|
|
28
|
+
state.ipc = undefined
|
|
29
|
+
}
|
|
30
|
+
},
|
|
31
|
+
)
|
|
14
32
|
}
|
|
15
33
|
return state.ipc
|
|
16
34
|
}
|
|
@@ -2054,7 +2054,8 @@
|
|
|
2054
2054
|
{ "source": "state", "name": "uid" }, { "source": "state", "name": "uri" }, { "source": "state", "name": "x" },
|
|
2055
2055
|
{ "source": "state", "name": "y" }, { "source": "state", "name": "width" }, { "source": "state", "name": "height" },
|
|
2056
2056
|
{ "source": "state", "name": "platform" }, { "source": "state", "name": "controlsOverlayEnabled" },
|
|
2057
|
-
{ "source": "state", "name": "titleBarStyleCustom" }, { "source": "state", "name": "assetDir" }
|
|
2057
|
+
{ "source": "state", "name": "titleBarStyleCustom" }, { "source": "state", "name": "assetDir" },
|
|
2058
|
+
{ "source": "state", "name": "menuUid" }, { "source": "state", "name": "menuRevision" }
|
|
2058
2059
|
] },
|
|
2059
2060
|
"loadContent": { "name": "TitleBar.loadContent2", "parameters": [{ "source": "state", "name": "uid" }] },
|
|
2060
2061
|
"diff": { "name": "TitleBar.diff3", "parameters": [{ "source": "state", "name": "uid" }] },
|