@lvce-editor/shared-process 0.93.5 → 0.93.7

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.93.5",
3
+ "version": "0.93.7",
4
4
  "main": "index.js",
5
5
  "type": "module",
6
6
  "keywords": [
@@ -19,12 +19,12 @@
19
19
  "dependencies": {
20
20
  "@lvce-editor/assert": "1.7.0",
21
21
  "@lvce-editor/auth-process": "1.10.0",
22
- "@lvce-editor/extension-host-helper-process": "0.93.5",
22
+ "@lvce-editor/extension-host-helper-process": "0.93.7",
23
23
  "@lvce-editor/ipc": "16.4.0",
24
24
  "@lvce-editor/json-rpc": "8.3.0",
25
25
  "@lvce-editor/jsonc-parser": "1.5.0",
26
26
  "@lvce-editor/pretty-error": "2.0.0",
27
- "@lvce-editor/process-explorer": "3.10.0",
27
+ "@lvce-editor/process-explorer": "3.12.0",
28
28
  "@lvce-editor/rpc-registry": "9.36.0",
29
29
  "@lvce-editor/verror": "1.7.0",
30
30
  "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', '05d70d3', 'extensions')
6
+ const builtinExtensionsPath = join(staticServerPath, '..', '..', 'static', '42434d0', 'extensions')
7
7
  return builtinExtensionsPath
8
8
  }
@@ -140,6 +140,8 @@ export const load = (moduleId) => {
140
140
  return import('../RecentlyOpened/RecentlyOpened.ipc.js')
141
141
  case ModuleId.Screen:
142
142
  return import('../Screen/Screen.ipc.js')
143
+ case ModuleId.SendMessagePortToMainProcess:
144
+ return import('../SendMessagePortToMainProcess/SendMessagePortToMainProcess.ipc.js')
143
145
  case ModuleId.TemporaryMessagePort:
144
146
  return import('../TemporaryMessagePort/TemporaryMessagePort.ipc.js')
145
147
  case ModuleId.Terminal:
@@ -79,3 +79,4 @@ export const Exec = 83
79
79
  export const PlatformPaths = 84
80
80
  export const HandleMessagePortForAuthProcess = 86
81
81
  export const LanguageServer = 87
82
+ export const SendMessagePortToMainProcess = 88
@@ -320,6 +320,8 @@ export const getModuleId = (commandId) => {
320
320
  case 'Screen.getHeight':
321
321
  case 'Screen.getWidth':
322
322
  return ModuleId.Screen
323
+ case 'SendMessagePortToMainProcess.sendMessagePortToMainProcess':
324
+ return ModuleId.SendMessagePortToMainProcess
323
325
  case 'TemporaryMessagePort.getPortTuple2':
324
326
  case 'TemporaryMessagePort.getPortTuple3':
325
327
  case 'TemporaryMessagePort.handlePorts':
@@ -61,11 +61,11 @@ export const getSetupName = () => {
61
61
  return 'Lvce-Setup'
62
62
  }
63
63
 
64
- export const version = '0.93.5'
64
+ export const version = '0.93.7'
65
65
 
66
- export const commit = '05d70d3'
66
+ export const commit = '42434d0'
67
67
 
68
- export const date = '2026-07-22T15:56:39.000Z'
68
+ export const date = '2026-07-23T10:29:27.000Z'
69
69
 
70
70
  export const getVersion = () => {
71
71
  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', '05d70d3', 'packages', 'preload', 'dist', 'index.js')
5
+ return join(Root.root, 'static', '42434d0', 'packages', 'preload', 'dist', 'index.js')
6
6
  }
@@ -0,0 +1,7 @@
1
+ import * as SendMessagePortToMainProcess from './SendMessagePortToMainProcess.js'
2
+
3
+ export const name = 'SendMessagePortToMainProcess'
4
+
5
+ export const Commands = {
6
+ sendMessagePortToMainProcess: SendMessagePortToMainProcess.sendMessagePortToMainProcess,
7
+ }
@@ -0,0 +1,9 @@
1
+ import * as Assert from '../Assert/Assert.js'
2
+ import * as MainProcess from '../MainProcess/MainProcess.js'
3
+
4
+ export const sendMessagePortToMainProcess = async (port, initialCommand, ipcId) => {
5
+ Assert.object(port)
6
+ Assert.string(initialCommand)
7
+ Assert.number(ipcId)
8
+ await MainProcess.invokeAndTransfer(initialCommand, port, ipcId)
9
+ }