@lvce-editor/shared-process 0.115.5 → 0.115.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.
@@ -1,4 +1,5 @@
1
1
  {
2
+ "git.remoteHosts": { "github.com": "https://github.com" },
2
3
  "application.updateMode": "none",
3
4
  "application.useOnLoadJson": false,
4
5
 
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@lvce-editor/shared-process",
3
- "version": "0.115.5",
3
+ "version": "0.115.7",
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.22.0",
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', 'e08897a', 'extensions')
6
+ const builtinExtensionsPath = join(staticServerPath, '..', '..', 'static', '51b05f1', '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.5'
59
+ export const version = '0.115.7'
60
60
 
61
- export const commit = 'e08897a'
61
+ export const commit = '51b05f1'
62
62
 
63
- export const date = '2026-09-12T14:39:06.000Z'
63
+ export const date = '2026-09-13T08:13:01.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', 'e08897a', 'packages', 'preload', 'dist', 'index.js')
5
+ return join(Root.root, 'static', '51b05f1', 'packages', 'preload', 'dist', 'index.js')
6
6
  }
@@ -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
  }