@lvce-editor/shared-process 0.125.9 → 0.125.11

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.125.9",
3
+ "version": "0.125.11",
4
4
  "main": "index.js",
5
5
  "type": "module",
6
6
  "keywords": [
@@ -23,7 +23,7 @@
23
23
  "@lvce-editor/json-rpc": "8.9.2",
24
24
  "@lvce-editor/jsonc-parser": "1.5.2",
25
25
  "@lvce-editor/pretty-error": "2.1.1",
26
- "@lvce-editor/process-explorer": "3.36.0",
26
+ "@lvce-editor/process-explorer": "3.36.2",
27
27
  "@lvce-editor/rpc-registry": "9.66.2",
28
28
  "@lvce-editor/verror": "1.7.0",
29
29
  "is-object": "^1.0.2",
@@ -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', '674cc9c', 'extensions')
6
+ const builtinExtensionsPath = join(staticServerPath, '..', '..', 'static', '4efbb06', 'extensions')
7
7
  return builtinExtensionsPath
8
8
  }
@@ -449,7 +449,10 @@ const copyBuiltinWebExtensions = async ({ commitHash, pathPrefix, root } ) =
449
449
  }
450
450
  const extensionJson = await readExtensionManifest(manifestPath)
451
451
  const isLanguageBasicsExtension = isLanguageBasics(extensionDirent)
452
- if (extensionJson.compatibility?.web === false || (!extensionJson.browser && !isLanguageBasicsExtension)) {
452
+ const nodeProcesses = (extensionJson.rpc || []).filter((rpc) => rpc.type === 'node-process')
453
+ const canRunOnRemote =
454
+ extensionJson.browser && nodeProcesses.length > 0 && nodeProcesses.every((rpc) => rpc.onRemote === 'runOnRemote')
455
+ if ((extensionJson.compatibility?.web === false && !canRunOnRemote) || (!extensionJson.browser && !isLanguageBasicsExtension)) {
453
456
  continue
454
457
  }
455
458
  await FileSystem.copy(extensionPath, Path.join(root, 'dist', commitHash, 'extensions', extensionDirent))
@@ -18,7 +18,7 @@ export const handleWebSocket = async (handle, message) => {
18
18
  const type = GetTypeFromUrl.getTypeFromUrl(url)
19
19
  handle.pause()
20
20
  const module = HandleWebSocketModule.load(type)
21
- module.handleWebSocket(message, handle, type)
21
+ await module.handleWebSocket(message, handle, type)
22
22
  } catch (error) {
23
23
  DestroyWebSocket.destroySocket(handle)
24
24
  throw new VError(error, `Failed to connect to websocket`)
@@ -56,11 +56,11 @@ export const getSetupName = () => {
56
56
  return 'Lvce-Setup'
57
57
  }
58
58
 
59
- export const version = '0.125.9'
59
+ export const version = '0.125.11'
60
60
 
61
- export const commit = '674cc9c'
61
+ export const commit = '4efbb06'
62
62
 
63
- export const date = '2026-10-22T15:08:35.000Z'
63
+ export const date = '2026-10-22T22:06:19.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', '674cc9c', 'packages', 'preload', 'dist', 'index.js')
5
+ return join(Root.root, 'static', '4efbb06', 'packages', 'preload', 'dist', 'index.js')
6
6
  }