@fugood/bricks-project 2.24.0-beta.41 → 2.24.0-beta.43
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/compile/index.ts +2 -2
- package/package.json +2 -2
- package/package.json.bak +2 -2
- package/tools/preview.ts +11 -0
- package/types/subspace.ts +1 -0
package/compile/index.ts
CHANGED
|
@@ -362,10 +362,10 @@ const compileRemoteUpdate = (remoteUpdate: Data['remoteUpdate']) => {
|
|
|
362
362
|
}
|
|
363
363
|
|
|
364
364
|
const compileModule = (subspace: Subspace) => {
|
|
365
|
-
if (!subspace.module) return {}
|
|
365
|
+
if (!subspace.module?.id) return {}
|
|
366
366
|
return {
|
|
367
367
|
module: {
|
|
368
|
-
link:
|
|
368
|
+
link: subspace.module.link ?? false,
|
|
369
369
|
id: subspace.module.id,
|
|
370
370
|
version: subspace.module.version,
|
|
371
371
|
},
|
package/package.json
CHANGED
|
@@ -1,13 +1,13 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@fugood/bricks-project",
|
|
3
|
-
"version": "2.24.0-beta.
|
|
3
|
+
"version": "2.24.0-beta.43",
|
|
4
4
|
"main": "index.ts",
|
|
5
5
|
"scripts": {
|
|
6
6
|
"typecheck": "tsc --noEmit",
|
|
7
7
|
"build": "bun scripts/build.js"
|
|
8
8
|
},
|
|
9
9
|
"dependencies": {
|
|
10
|
-
"@fugood/bricks-cli": "^2.24.0-beta.
|
|
10
|
+
"@fugood/bricks-cli": "^2.24.0-beta.43",
|
|
11
11
|
"@huggingface/gguf": "^0.3.2",
|
|
12
12
|
"@iarna/toml": "^3.0.0",
|
|
13
13
|
"@modelcontextprotocol/sdk": "^1.15.0",
|
package/package.json.bak
CHANGED
|
@@ -1,13 +1,13 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@fugood/bricks-ctor",
|
|
3
|
-
"version": "2.24.0-beta.
|
|
3
|
+
"version": "2.24.0-beta.43",
|
|
4
4
|
"main": "index.ts",
|
|
5
5
|
"scripts": {
|
|
6
6
|
"typecheck": "tsc --noEmit",
|
|
7
7
|
"build": "bun scripts/build.js"
|
|
8
8
|
},
|
|
9
9
|
"dependencies": {
|
|
10
|
-
"@fugood/bricks-cli": "^2.24.0-beta.
|
|
10
|
+
"@fugood/bricks-cli": "^2.24.0-beta.43",
|
|
11
11
|
"@huggingface/gguf": "^0.3.2",
|
|
12
12
|
"@iarna/toml": "^3.0.0",
|
|
13
13
|
"@modelcontextprotocol/sdk": "^1.15.0",
|
package/tools/preview.ts
CHANGED
|
@@ -95,6 +95,17 @@ const cleanupDevtoolsInfo = () => {
|
|
|
95
95
|
} catch {}
|
|
96
96
|
}
|
|
97
97
|
|
|
98
|
+
// Kill existing preview process if devtools.json contains a stale pid
|
|
99
|
+
try {
|
|
100
|
+
const devtoolsInfo = await Bun.file(devtoolsInfoPath).json()
|
|
101
|
+
if (devtoolsInfo.pid) {
|
|
102
|
+
try {
|
|
103
|
+
process.kill(devtoolsInfo.pid)
|
|
104
|
+
} catch {}
|
|
105
|
+
cleanupDevtoolsInfo()
|
|
106
|
+
}
|
|
107
|
+
} catch {}
|
|
108
|
+
|
|
98
109
|
const proc = Bun.spawn(['bunx', '--bun', 'electron', `${__dirname}/preview-main.mjs`, ...args], {
|
|
99
110
|
env: { ...process.env, BRICKS_STAGE: app.stage || 'production' },
|
|
100
111
|
stdout: 'pipe',
|