@lvce-editor/shared-process 0.84.13 → 0.84.15

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.84.13",
3
+ "version": "0.84.15",
4
4
  "main": "index.js",
5
5
  "type": "module",
6
6
  "keywords": [
@@ -19,7 +19,7 @@
19
19
  "dependencies": {
20
20
  "@lvce-editor/assert": "1.5.1",
21
21
  "@lvce-editor/auth-process": "1.6.0",
22
- "@lvce-editor/extension-host-helper-process": "0.84.13",
22
+ "@lvce-editor/extension-host-helper-process": "0.84.15",
23
23
  "@lvce-editor/ipc": "16.0.0",
24
24
  "@lvce-editor/json-rpc": "8.0.0",
25
25
  "@lvce-editor/jsonc-parser": "1.5.0",
@@ -2,6 +2,6 @@ import { join } from 'path';
2
2
  import { fileURLToPath } from 'url';
3
3
  export const getBuiltinExtensionsPath = () => {
4
4
  const staticServerPath = fileURLToPath(import.meta.resolve('@lvce-editor/static-server'));
5
- const builtinExtensionsPath = join(staticServerPath, '..', '..', 'static', 'd9f5508', 'extensions');
5
+ const builtinExtensionsPath = join(staticServerPath, '..', '..', 'static', '76eeed9', 'extensions');
6
6
  return builtinExtensionsPath;
7
7
  };
@@ -3,6 +3,9 @@ import * as Assert from '../Assert/Assert.js';
3
3
  export const targetMessagePort = () => {
4
4
  return ProcessExplorer.getOrCreate();
5
5
  };
6
+ export const targetWebSocket = () => {
7
+ return ProcessExplorer.getOrCreate();
8
+ };
6
9
  export const upgradeMessagePort = (port) => {
7
10
  Assert.object(port);
8
11
  return {
@@ -11,3 +14,10 @@ export const upgradeMessagePort = (port) => {
11
14
  params: [port],
12
15
  };
13
16
  };
17
+ export const upgradeWebSocket = (handle, message) => {
18
+ return {
19
+ type: 'send',
20
+ method: 'HandleWebSocket.handleWebSocket',
21
+ params: [handle, message],
22
+ };
23
+ };
@@ -0,0 +1,5 @@
1
+ import * as HandleIncomingIpc from '../HandleIncomingIpc/HandleIncomingIpc.js';
2
+ import * as IpcId from '../IpcId/IpcId.js';
3
+ export const handleWebSocket = (message, handle) => {
4
+ return HandleIncomingIpc.handleIncomingIpc(IpcId.ProcessExplorer, handle, message);
5
+ };
@@ -1,6 +1,7 @@
1
1
  import * as HandleWebSocketForClipBoardProcess from '../HandleWebSocketForClipBoardProcess/HandleWebSocketForClipBoardProcess.js';
2
2
  import * as HandleWebSocketForExtensionHostHelperProcess from '../HandleWebSocketForExtensionHostHelperProcess/HandleWebSocketForExtensionHostHelperProcess.js';
3
3
  import * as HandleWebSocketForFileSystemProcess from '../HandleWebSocketForFileSystemProcess/HandleWebSocketForFileSystemProcess.js';
4
+ import * as HandleWebSocketForProcessExplorer from '../HandleWebSocketForProcessExplorer/HandleWebSocketForProcessExplorer.js';
4
5
  import * as HandleWebSocketForSearchProcess from '../HandleWebSocketForSearchProcess/HandleWebSocketForSearchProcess.js';
5
6
  import * as HandleWebSocketForSharedProcess from '../HandleWebSocketForSharedProcess/HandleWebSocketForSharedProcess.js';
6
7
  import * as HandleWebSocketForTerminalProcess from '../HandleWebSocketForTerminalProcess/HandleWebSocketForTerminalProcess.js';
@@ -22,6 +23,8 @@ export const load = (protocol) => {
22
23
  return HandleWebSocketForTerminalProcess;
23
24
  case ProtocolType.SearchProcess:
24
25
  return HandleWebSocketForSearchProcess;
26
+ case ProtocolType.ProcessExplorer:
27
+ return HandleWebSocketForProcessExplorer;
25
28
  case ProtocolType.FileSystemProcess:
26
29
  return HandleWebSocketForFileSystemProcess;
27
30
  default:
@@ -1,20 +1,21 @@
1
1
  import * as ConnectIpcToElectron from '../ConnectIpcToElectron/ConnectIpcToElectron.js';
2
2
  import * as HandleIpc from '../HandleIpc/HandleIpc.js';
3
3
  import * as IpcId from '../IpcId/IpcId.js';
4
- import * as IpcParent from '../IpcParent/IpcParent.js';
5
- import * as IpcParentType from '../IpcParentType/IpcParentType.js';
4
+ import * as IsElectron from '../IsElectron/IsElectron.js';
5
+ import * as LaunchProcess from '../LaunchProcess/LaunchProcess.js';
6
6
  import * as ProcessExplorerPath from '../ProcessExplorerPath/ProcessExplorerPath.js';
7
7
  export const launchProcessExplorer = async () => {
8
8
  console.log('will start process explorer');
9
- const ipc = await IpcParent.create({
10
- method: IpcParentType.ElectronUtilityProcess,
11
- path: ProcessExplorerPath.processExplorerPath,
12
- argv: [],
13
- stdio: 'inherit',
9
+ const ipc = await LaunchProcess.launchProcess({
14
10
  name: 'Process Explorer',
11
+ defaultPath: ProcessExplorerPath.processExplorerPath,
12
+ isElectron: IsElectron.isElectron,
13
+ settingName: 'develop.processExplorerPath',
14
+ targetRpcId: IpcId.ProcessExplorer,
15
15
  });
16
- HandleIpc.handleIpc(ipc);
17
- await ConnectIpcToElectron.connectIpcToElectron(ipc, IpcId.ProcessExplorerRenderer);
16
+ if (IsElectron.isElectron) {
17
+ await ConnectIpcToElectron.connectIpcToElectron(ipc, IpcId.ProcessExplorerRenderer);
18
+ }
18
19
  HandleIpc.unhandleIpc(ipc);
19
20
  console.log('did start process explorer');
20
21
  return ipc;
@@ -41,9 +41,9 @@ export const getAppImageName = () => {
41
41
  export const getSetupName = () => {
42
42
  return 'Lvce-Setup';
43
43
  };
44
- export const version = '0.84.13';
45
- export const commit = 'd9f5508';
46
- export const date = '2026-06-30T12:45:27.000Z';
44
+ export const version = '0.84.15';
45
+ export const commit = '76eeed9';
46
+ export const date = '2026-07-02T02:00:21.000Z';
47
47
  export const getVersion = () => {
48
48
  return version;
49
49
  };
@@ -1,5 +1,5 @@
1
1
  import { join } from 'node:path';
2
2
  import * as Root from '../Root/Root.js';
3
3
  export const getPreloadUrl = () => {
4
- return join(Root.root, 'static', 'd9f5508', 'packages', 'preload', 'dist', 'index.js');
4
+ return join(Root.root, 'static', '76eeed9', 'packages', 'preload', 'dist', 'index.js');
5
5
  };
@@ -1,6 +1,7 @@
1
1
  export const ExtensionHost = 'extension-host';
2
2
  export const ExtensionHostHelperProcess = 'extension-host-helper-process';
3
3
  export const SearchProcess = 'search-process';
4
+ export const ProcessExplorer = 'process-explorer';
4
5
  export const FileSystemProcess = 'file-system-process';
5
6
  export const SharedProcess = 'shared-process';
6
7
  export const ClipBoardProcess = 'clipboard-process';
@@ -434,7 +434,7 @@
434
434
  {
435
435
  "id": "processExplorer",
436
436
  "fileName": "process-explorer-worker/index.js",
437
- "contentSecurityPolicy": ["default-src 'none'"],
437
+ "contentSecurityPolicy": ["default-src 'none'", "connect-src 'self'"],
438
438
  "defaultPath": "/packages/renderer-worker/node_modules/@lvce-editor/process-explorer-worker/index.js",
439
439
  "productionPath": "/packages/process-explorer-worker/index.js",
440
440
  "settingName": "develop.processExplorerWorkerPath",