@lvce-editor/shared-process 0.115.4 → 0.115.6
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/config/defaultSettings.json +1 -0
- package/package.json +2 -2
- package/src/parts/BuiltinExtensionsPath/BuiltinExtensionsPath.js +1 -1
- package/src/parts/GetGitRemote/GetGitRemote.js +16 -0
- package/src/parts/ModuleMap/ModuleMap.js +1 -0
- package/src/parts/Platform/Platform.js +3 -3
- package/src/parts/PreloadUrl/PreloadUrl.js +1 -1
- package/src/parts/Workers/Workers.json +4 -0
- package/src/parts/Workspace/Workspace.ipc.js +2 -0
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@lvce-editor/shared-process",
|
|
3
|
-
"version": "0.115.
|
|
3
|
+
"version": "0.115.6",
|
|
4
4
|
"main": "index.js",
|
|
5
5
|
"type": "module",
|
|
6
6
|
"keywords": [
|
|
@@ -32,7 +32,7 @@
|
|
|
32
32
|
"optionalDependencies": {
|
|
33
33
|
"@lvce-editor/auth-process": "1.17.0",
|
|
34
34
|
"@lvce-editor/cookie-import-view": "0.3.2",
|
|
35
|
-
"@lvce-editor/embeds-process": "4.
|
|
35
|
+
"@lvce-editor/embeds-process": "4.23.0",
|
|
36
36
|
"@lvce-editor/file-system-process": "5.17.0",
|
|
37
37
|
"@lvce-editor/file-watcher-process": "4.14.0",
|
|
38
38
|
"@lvce-editor/network-process": "5.2.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', '
|
|
6
|
+
const builtinExtensionsPath = join(staticServerPath, '..', '..', 'static', '80d7faf', 'extensions')
|
|
7
7
|
return builtinExtensionsPath
|
|
8
8
|
}
|
|
@@ -0,0 +1,16 @@
|
|
|
1
|
+
import { execPromise } from '../ExecPromise/ExecPromise.js'
|
|
2
|
+
|
|
3
|
+
export const getGitRemote = async (cwd) => {
|
|
4
|
+
if (typeof cwd !== 'string' || !cwd) {
|
|
5
|
+
throw new TypeError('Expected a workspace path')
|
|
6
|
+
}
|
|
7
|
+
try {
|
|
8
|
+
const { stdout } = await execPromise('git', ['config', '--get', 'remote.origin.url'], { cwd, maxBuffer: 1024 * 1024, timeout: 10000 })
|
|
9
|
+
return stdout.trim()
|
|
10
|
+
} catch (error) {
|
|
11
|
+
if (error && typeof error === 'object' && 'code' in error && error.code === 1) {
|
|
12
|
+
return ''
|
|
13
|
+
}
|
|
14
|
+
throw error
|
|
15
|
+
}
|
|
16
|
+
}
|
|
@@ -314,6 +314,7 @@ export const getModuleId = (commandId) => {
|
|
|
314
314
|
case 'WebViewServer.setInfo2':
|
|
315
315
|
case 'WebViewServer.start':
|
|
316
316
|
return ModuleId.WebViewServer
|
|
317
|
+
case 'Workspace.getGitRemote':
|
|
317
318
|
case 'Workspace.getHomeDir':
|
|
318
319
|
case 'Workspace.resolveRoot':
|
|
319
320
|
return ModuleId.Workspace
|
|
@@ -56,11 +56,11 @@ export const getSetupName = () => {
|
|
|
56
56
|
return 'Lvce-Setup'
|
|
57
57
|
}
|
|
58
58
|
|
|
59
|
-
export const version = '0.115.
|
|
59
|
+
export const version = '0.115.6'
|
|
60
60
|
|
|
61
|
-
export const commit = '
|
|
61
|
+
export const commit = '80d7faf'
|
|
62
62
|
|
|
63
|
-
export const date = '2026-09-
|
|
63
|
+
export const date = '2026-09-12T21:41:58.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', '
|
|
5
|
+
return join(Root.root, 'static', '80d7faf', 'packages', 'preload', 'dist', 'index.js')
|
|
6
6
|
}
|
|
@@ -744,6 +744,10 @@
|
|
|
744
744
|
"name": "ExtensionDetail.render2",
|
|
745
745
|
"parameters": [{ "source": "state", "name": "uid" }, { "source": "result", "name": "diff" }]
|
|
746
746
|
},
|
|
747
|
+
"resize": {
|
|
748
|
+
"name": "ExtensionDetail.resize",
|
|
749
|
+
"parameters": [{ "source": "state", "name": "uid" }, { "source": "argument", "name": "dimensions" }]
|
|
750
|
+
},
|
|
747
751
|
"saveState": { "name": "ExtensionDetail.saveState", "parameters": [{ "source": "state", "name": "uid" }] },
|
|
748
752
|
"terminate": { "name": "ExtensionDetail.terminate", "parameters": [] },
|
|
749
753
|
"getCommandIds": { "name": "ExtensionDetail.getCommandIds", "parameters": [] },
|
|
@@ -1,8 +1,10 @@
|
|
|
1
|
+
import { getGitRemote } from '../GetGitRemote/GetGitRemote.js'
|
|
1
2
|
import * as Workspace from './Workspace.js'
|
|
2
3
|
|
|
3
4
|
export const name = 'Workspace'
|
|
4
5
|
|
|
5
6
|
export const Commands = {
|
|
7
|
+
getGitRemote,
|
|
6
8
|
getHomeDir: Workspace.getHomeDir,
|
|
7
9
|
resolveRoot: Workspace.resolveRoot,
|
|
8
10
|
}
|