@lvce-editor/shared-process 0.95.3 → 0.95.5

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.95.3",
3
+ "version": "0.95.5",
4
4
  "main": "index.js",
5
5
  "type": "module",
6
6
  "keywords": [
@@ -18,8 +18,7 @@
18
18
  },
19
19
  "dependencies": {
20
20
  "@lvce-editor/assert": "1.7.0",
21
- "@lvce-editor/auth-process": "1.12.0",
22
- "@lvce-editor/extension-host-helper-process": "0.95.3",
21
+ "@lvce-editor/extension-host-helper-process": "0.95.5",
23
22
  "@lvce-editor/ipc": "16.6.0",
24
23
  "@lvce-editor/json-rpc": "8.5.0",
25
24
  "@lvce-editor/jsonc-parser": "1.5.0",
@@ -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', '6f688db', 'extensions')
6
+ const builtinExtensionsPath = join(staticServerPath, '..', '..', 'static', '0b1830e', 'extensions')
7
7
  return builtinExtensionsPath
8
8
  }
@@ -61,11 +61,11 @@ export const getSetupName = () => {
61
61
  return 'Lvce-Setup'
62
62
  }
63
63
 
64
- export const version = '0.95.3'
64
+ export const version = '0.95.5'
65
65
 
66
- export const commit = '6f688db'
66
+ export const commit = '0b1830e'
67
67
 
68
- export const date = '2026-07-29T19:12:57.000Z'
68
+ export const date = '2026-07-30T14:05:56.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', '6f688db', 'packages', 'preload', 'dist', 'index.js')
5
+ return join(Root.root, 'static', '0b1830e', 'packages', 'preload', 'dist', 'index.js')
6
6
  }
@@ -1,7 +0,0 @@
1
- import * as ElectronShell from './ElectronShell.js'
2
-
3
- export const name = 'ElectronShell'
4
-
5
- export const Commands = {
6
- beep: ElectronShell.beep,
7
- }
@@ -1,5 +0,0 @@
1
- import * as ParentIpc from '../MainProcess/MainProcess.js'
2
-
3
- export const beep = () => {
4
- return ParentIpc.invoke('ElectronShell.beep')
5
- }
@@ -1,12 +0,0 @@
1
- import { VError } from '../VError/VError.js'
2
-
3
- export class FileSystemError extends VError {
4
- code
5
-
6
- constructor(error, message) {
7
- super(error, message)
8
- if (error && error.code) {
9
- this.code = error.code
10
- }
11
- }
12
- }
@@ -1,8 +0,0 @@
1
- import * as ExensionInstall from './ExtensionInstall.js'
2
-
3
- export const name = 'ExtensionInstall'
4
-
5
- // prettier-ignore
6
- export const Commands = {
7
- install: ExensionInstall.install,
8
- }
@@ -1,10 +0,0 @@
1
- import * as IsWindows from '../IsWindows/IsWindows.js'
2
- import * as Path from '../Path/Path.js'
3
- import * as Root from '../Root/Root.js'
4
-
5
- export const getElectronRebuildPath = () => {
6
- if (IsWindows.isWindows) {
7
- return Path.join(Root.root, 'packages', 'main-process', 'node_modules', '.bin', 'electron-rebuild.cmd')
8
- }
9
- return Path.join(Root.root, 'packages', 'main-process', 'node_modules', '.bin', 'electron-rebuild')
10
- }
@@ -1,3 +0,0 @@
1
- export const getHeadersDefault = () => {
2
- return {}
3
- }
@@ -1,14 +0,0 @@
1
- import * as ContentSecurityPolicyState from '../ContentSecurityPolicyState/ContentSecurityPolicyState.js'
2
- import * as CrossOriginEmbedderPolicy from '../CrossOriginEmbedderPolicy/CrossOriginEmbedderPolicy.js'
3
- import * as HttpHeader from '../HttpHeader/HttpHeader.js'
4
-
5
- export const getHeadersOtherWorker = (url) => {
6
- const headers = {
7
- [HttpHeader.CrossOriginEmbedderPolicy]: CrossOriginEmbedderPolicy.value,
8
- }
9
- const dynamicCsp = ContentSecurityPolicyState.get(url)
10
- if (dynamicCsp) {
11
- headers[HttpHeader.ContentSecurityPolicy] = dynamicCsp
12
- }
13
- return headers
14
- }
@@ -1,11 +0,0 @@
1
- import * as HttpStatusCode from '../HttpStatusCode/HttpStatusCode.js'
2
-
3
- export const getMultipleChoiceResponse = async (content, headers = {}) => {
4
- return {
5
- body: content,
6
- init: {
7
- headers,
8
- status: HttpStatusCode.MultipleChoices,
9
- },
10
- }
11
- }
@@ -1,6 +0,0 @@
1
- import * as Path from '../Path/Path.js'
2
- import * as Root from '../Root/Root.js'
3
-
4
- export const getTerminalProcessPath = () => {
5
- return Path.join(Root.root, 'packages', 'pty-host', 'src', 'ptyHostMain.js')
6
- }
@@ -1,26 +0,0 @@
1
- import * as IpcParentType from '../IpcParentType/IpcParentType.js'
2
- import * as PtyHost from '../PtyHost/PtyHost.js'
3
-
4
- export const targetWebSocket = () => {
5
- return PtyHost.getOrCreate(IpcParentType.NodeForkedProcess)
6
- }
7
-
8
- export const upgradeWebSocket = (handle, message) => {
9
- return {
10
- method: 'HandleWebSocket.handleWebSocket',
11
- params: [handle, message],
12
- type: 'send',
13
- }
14
- }
15
-
16
- export const targetMessagePort = () => {
17
- return PtyHost.getOrCreate(IpcParentType.ElectronUtilityProcess)
18
- }
19
-
20
- export const upgradeMessagePort = (port) => {
21
- return {
22
- method: 'HandleElectronMessagePort.handleElectronMessagePort',
23
- params: [port],
24
- type: 'send',
25
- }
26
- }
@@ -1,5 +0,0 @@
1
- import * as HeapSnapshot from './HeapSnapshot.js'
2
-
3
- export const Commands = {
4
- 'HeapSnapshot.createHeapSnapshot': HeapSnapshot.createHeapSnapshot,
5
- }
@@ -1,4 +0,0 @@
1
- import * as Path from '../Path/Path.js'
2
- import * as Root from '../Root/Root.js'
3
-
4
- export const indexHtmlPath = Path.join(Root.root, 'static', 'index.html')
@@ -1,14 +0,0 @@
1
- import { VError } from '@lvce-editor/verror'
2
-
3
- export const loadTypeScript = async (typescriptPath) => {
4
- try {
5
- const typescript = await import(typescriptPath)
6
- const actual = typescript.default
7
- if (!actual) {
8
- throw new Error('missing default export')
9
- }
10
- return actual
11
- } catch (error) {
12
- throw new VError(error, `Failed to load typescript`)
13
- }
14
- }
@@ -1,2 +0,0 @@
1
- export const Error = 1
2
- export const Exit = 2
@@ -1,11 +0,0 @@
1
- import { fileURLToPath } from 'node:url'
2
-
3
- export const resolveBin = (name) => {
4
- try {
5
- const uri = import.meta.resolve(name)
6
- const path = fileURLToPath(uri)
7
- return path
8
- } catch {
9
- return ''
10
- }
11
- }
@@ -1,5 +0,0 @@
1
- import * as Character from '../Character/Character.js'
2
-
3
- export const splitLines = (lines) => {
4
- return lines.split(Character.NewLine)
5
- }
@@ -1,9 +0,0 @@
1
- import * as GetFirstEvent from '../GetFirstEvent/GetFirstEvent.js'
2
- import * as ProcessExitEventType from '../ProcessExitEventType/ProcessExitEventType.js'
3
-
4
- export const waitForProcessToExit = (childProcess) => {
5
- return GetFirstEvent.getFirstEvent(childProcess, {
6
- close: ProcessExitEventType.Exit,
7
- error: ProcessExitEventType.Error,
8
- })
9
- }