@fugood/bricks-project 2.24.0-beta.40 → 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-main.mjs +1 -1
- package/tools/preview.ts +12 -1
- package/types/subspace.ts +1 -0
- /package/skills/{bricks-project → bricks-ctor}/SKILL.md +0 -0
- /package/skills/{bricks-project → bricks-ctor}/rules/animation.md +0 -0
- /package/skills/{bricks-project → bricks-ctor}/rules/architecture-patterns.md +0 -0
- /package/skills/{bricks-project → bricks-ctor}/rules/automations.md +0 -0
- /package/skills/{bricks-project → bricks-ctor}/rules/buttress.md +0 -0
- /package/skills/{bricks-project → bricks-ctor}/rules/data-calculation.md +0 -0
- /package/skills/{bricks-project → bricks-ctor}/rules/local-sync.md +0 -0
- /package/skills/{bricks-project → bricks-ctor}/rules/media-flow.md +0 -0
- /package/skills/{bricks-project → bricks-ctor}/rules/remote-data-bank.md +0 -0
- /package/skills/{bricks-project → bricks-ctor}/rules/standby-transition.md +0 -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-main.mjs
CHANGED
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',
|
|
@@ -124,7 +135,7 @@ const processOutput = async () => {
|
|
|
124
135
|
port: parseInt(cdpMatch[1], 10),
|
|
125
136
|
pid: proc.pid,
|
|
126
137
|
address: 'localhost',
|
|
127
|
-
name: app.name || '
|
|
138
|
+
name: `${app.name || 'Unnamed'} (CTOR Preview)`,
|
|
128
139
|
startedAt: new Date().toISOString(),
|
|
129
140
|
}
|
|
130
141
|
Bun.write(devtoolsInfoPath, JSON.stringify(info, null, 2))
|
package/types/subspace.ts
CHANGED
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|