@lvce-editor/shared-process 0.124.7 → 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 CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@lvce-editor/shared-process",
3
- "version": "0.124.7",
3
+ "version": "0.124.8",
4
4
  "main": "index.js",
5
5
  "type": "module",
6
6
  "keywords": [
@@ -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', 'bb29e45', 'extensions')
6
+ const builtinExtensionsPath = join(staticServerPath, '..', '..', 'static', '5f06c95', 'extensions')
7
7
  return builtinExtensionsPath
8
8
  }
@@ -18,5 +18,6 @@ Extension development:
18
18
  Diagnostics:
19
19
  --trace-ipc=<worker-ids> Trace comma-separated worker IDs (or *) to JSONL.
20
20
  Traces can be large and contain source code.
21
+ --no-cache-cleanup Skip occasional expired cache cleanup on startup.
21
22
  `
22
23
  }
@@ -56,11 +56,11 @@ export const getSetupName = () => {
56
56
  return 'Lvce-Setup'
57
57
  }
58
58
 
59
- export const version = '0.124.7'
59
+ export const version = '0.124.8'
60
60
 
61
- export const commit = 'bb29e45'
61
+ export const commit = '5f06c95'
62
62
 
63
- export const date = '2026-10-20T13:13:55.000Z'
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', 'bb29e45', 'packages', 'preload', 'dist', 'index.js')
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
- state.ipc = LaunchProcessExplorer.launchProcessExplorer()
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" }] },