@lvce-editor/shared-process 0.80.11 → 0.80.14

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.80.11",
3
+ "version": "0.80.14",
4
4
  "main": "index.js",
5
5
  "type": "module",
6
6
  "keywords": [
@@ -19,8 +19,8 @@
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.80.11",
23
- "@lvce-editor/ipc": "15.0.0",
22
+ "@lvce-editor/extension-host-helper-process": "0.80.14",
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",
26
26
  "@lvce-editor/pretty-error": "2.0.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', '6a84db7', 'extensions');
5
+ const builtinExtensionsPath = join(staticServerPath, '..', '..', 'static', 'd5ababb', 'extensions');
6
6
  return builtinExtensionsPath;
7
7
  };
@@ -1,4 +1,5 @@
1
1
  import * as ExtensionManifest from '../ExtensionManifest/ExtensionManifest.js';
2
+ import * as DirentType from '../DirentType/DirentType.js';
2
3
  import * as FileSystem from '../FileSystem/FileSystem.js';
3
4
  import * as IsEnoentError from '../IsEnoentError/IsEnoentError.js';
4
5
  import * as ToAbsolutePaths from '../ToAbsolutePaths/ToAbsolutePaths.js';
@@ -8,8 +9,9 @@ export const getExtensionManifests = async (path) => {
8
9
  if (!path) {
9
10
  return [];
10
11
  }
11
- const dirents = await FileSystem.readDir(path);
12
- const absolutePaths = ToAbsolutePaths.toAbsolutePaths(path, dirents);
12
+ const dirents = await FileSystem.readDirWithFileTypes(path);
13
+ const folderNames = dirents.filter((dirent) => dirent.type === DirentType.Directory).map((dirent) => dirent.name);
14
+ const absolutePaths = ToAbsolutePaths.toAbsolutePaths(path, folderNames);
13
15
  const manifests = await Promise.all(absolutePaths.map(ExtensionManifest.get));
14
16
  return manifests;
15
17
  }
@@ -1,5 +1,6 @@
1
1
  import { readlink } from 'node:fs/promises';
2
2
  import * as ExtensionManifest from '../ExtensionManifest/ExtensionManifest.js';
3
+ import * as DirentType from '../DirentType/DirentType.js';
3
4
  import * as FileSystem from '../FileSystem/FileSystem.js';
4
5
  import * as IsEnoentError from '../IsEnoentError/IsEnoentError.js';
5
6
  import * as MergeWithSymlinks from '../MergeWithSymlinks/MergeWithSymlinks.js';
@@ -22,8 +23,9 @@ export const getExtensionManifests = async (path) => {
22
23
  if (!path) {
23
24
  return [];
24
25
  }
25
- const dirents = await FileSystem.readDir(path);
26
- const absolutePaths = ToAbsolutePaths.toAbsolutePaths(path, dirents);
26
+ const dirents = await FileSystem.readDirWithFileTypes(path);
27
+ const folderNames = dirents.filter((dirent) => dirent.type === DirentType.Directory).map((dirent) => dirent.name);
28
+ const absolutePaths = ToAbsolutePaths.toAbsolutePaths(path, folderNames);
27
29
  const manifests = await Promise.all(absolutePaths.map(ExtensionManifest.get));
28
30
  const symlinks = await readSymlinks(absolutePaths);
29
31
  const merged = MergeWithSymlinks.mergeWithSymLinks(manifests, symlinks);
@@ -1,6 +1,8 @@
1
- import { readdir, stat } from 'node:fs/promises';
1
+ import { stat } from 'node:fs/promises';
2
2
  import { join } from 'node:path';
3
+ import * as DirentType from '../DirentType/DirentType.js';
3
4
  import * as ExtensionManifestInputType from '../ExtensionManifestInputType/ExtensionManifestInputType.js';
5
+ import * as FileSystem from '../FileSystem/FileSystem.js';
4
6
  import * as IsEnoentError from '../IsEnoentError/IsEnoentError.js';
5
7
  const serializeStats = (stats) => {
6
8
  const { mtime, size } = stats;
@@ -19,9 +21,10 @@ const getOnly = async (path) => {
19
21
  };
20
22
  const getFolder = async (path) => {
21
23
  try {
22
- const dirents = await readdir(path);
23
- const stats = await Promise.all(dirents.map(async (dirent) => {
24
- const extensionManifestPath = join(path, dirent, 'extension.json');
24
+ const dirents = await FileSystem.readDirWithFileTypes(path);
25
+ const folderNames = dirents.filter((dirent) => dirent.type === DirentType.Directory).map((dirent) => dirent.name);
26
+ const stats = await Promise.all(folderNames.map(async (folderName) => {
27
+ const extensionManifestPath = join(path, folderName, 'extension.json');
25
28
  const direntStats = await stat(extensionManifestPath);
26
29
  return serializeStats(direntStats);
27
30
  }));
@@ -41,9 +41,9 @@ export const getAppImageName = () => {
41
41
  export const getSetupName = () => {
42
42
  return 'Lvce-Setup';
43
43
  };
44
- export const version = '0.80.11';
45
- export const commit = '6a84db7';
46
- export const date = '2026-05-02T11:44:56.000Z';
44
+ export const version = '0.80.14';
45
+ export const commit = 'd5ababb';
46
+ export const date = '2026-05-04T15:46:53.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', '6a84db7', 'packages', 'preload', 'dist', 'index.js');
4
+ return join(Root.root, 'static', 'd5ababb', 'packages', 'preload', 'dist', 'index.js');
5
5
  };
@@ -89,6 +89,15 @@
89
89
  "settingName": "develop.chatStorageWorkerPath",
90
90
  "hotReloadCommand": ""
91
91
  },
92
+ {
93
+ "id": "chatViewModelWorker",
94
+ "fileName": "chatViewModelWorkerMain.js",
95
+ "contentSecurityPolicy": ["default-src 'none'", "sandbox allow-same-origin"],
96
+ "defaultPath": "/packages/renderer-worker/node_modules/@lvce-editor/chat-view-model-worker/dist/chatViewModelWorkerMain.js",
97
+ "productionPath": "/packages/chat-view-model-worker/dist/chatViewModelWorkerMain.js",
98
+ "settingName": "develop.chatViewModelWorkerPath",
99
+ "hotReloadCommand": ""
100
+ },
92
101
  {
93
102
  "id": "chatView",
94
103
  "fileName": "chatViewWorkerMain.js",