@fugood/bricks-ctor 2.24.0-beta.45 → 2.24.0-beta.46
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 +14 -1
- package/package.json +3 -3
package/compile/index.ts
CHANGED
|
@@ -6,6 +6,7 @@ import omit from 'lodash/omit'
|
|
|
6
6
|
import { parse as parseAST } from 'acorn'
|
|
7
7
|
import type { ExportNamedDeclaration, FunctionDeclaration } from 'acorn'
|
|
8
8
|
import escodegen from 'escodegen'
|
|
9
|
+
import { makeId } from '../utils/id'
|
|
9
10
|
import { generateCalulationMap } from './util'
|
|
10
11
|
import { templateActionNameMap } from './action-name-map'
|
|
11
12
|
import { templateEventPropsMap } from '../utils/event-props'
|
|
@@ -550,8 +551,12 @@ export const compile = async (app: Application) => {
|
|
|
550
551
|
)
|
|
551
552
|
|
|
552
553
|
// Linked module subspaces reference external content — only include
|
|
553
|
-
// module metadata, not local canvas/brick/data compilation
|
|
554
|
+
// module metadata, not local canvas/brick/data compilation.
|
|
555
|
+
// Include a placeholder root canvas so the config passes schema
|
|
556
|
+
// validation (root_canvas_id is required before the conditional
|
|
557
|
+
// schema fix is published).
|
|
554
558
|
if (subspace.module?.link) {
|
|
559
|
+
const placeholderCanvasId = makeId('canvas')
|
|
555
560
|
subspaceMap[subspaceId] = {
|
|
556
561
|
title: subspace.title,
|
|
557
562
|
description: subspace.description,
|
|
@@ -562,6 +567,14 @@ export const compile = async (app: Application) => {
|
|
|
562
567
|
height: subspace.layout?.height,
|
|
563
568
|
resize_mode: subspace.layout?.resizeMode,
|
|
564
569
|
},
|
|
570
|
+
root_canvas_id: placeholderCanvasId,
|
|
571
|
+
property_bank_map: {},
|
|
572
|
+
brick_map: {},
|
|
573
|
+
generator_map: {},
|
|
574
|
+
animation_map: {},
|
|
575
|
+
canvas_map: {
|
|
576
|
+
[placeholderCanvasId]: { item_list: [] },
|
|
577
|
+
},
|
|
565
578
|
...compileModule(subspace),
|
|
566
579
|
}
|
|
567
580
|
return subspaceMap
|
package/package.json
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.46",
|
|
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.46",
|
|
11
11
|
"@huggingface/gguf": "^0.3.2",
|
|
12
12
|
"@iarna/toml": "^3.0.0",
|
|
13
13
|
"@modelcontextprotocol/sdk": "^1.15.0",
|
|
@@ -24,5 +24,5 @@
|
|
|
24
24
|
"peerDependencies": {
|
|
25
25
|
"oxfmt": "^0.36.0"
|
|
26
26
|
},
|
|
27
|
-
"gitHead": "
|
|
27
|
+
"gitHead": "4e02eac60bfb6ddde5cf4bd1f3b80a34ee9cc102"
|
|
28
28
|
}
|