@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 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: true,
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.41",
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.41",
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.41",
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.41",
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',
package/types/subspace.ts CHANGED
@@ -23,6 +23,7 @@ export type Subspace = {
23
23
  module?: {
24
24
  id: string
25
25
  version: string
26
+ link?: boolean
26
27
  selectedRequirements?: Array<{
27
28
  subspace: SubspaceID
28
29
  id: string