@fugood/bricks-project 2.24.0-beta.8 → 2.24.0-beta.9
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/package.json +2 -2
- package/skills/bricks-project/rules/automations.md +7 -7
- package/types/bricks/Camera.ts +1 -1
- package/types/bricks/Chart.ts +1 -1
- package/types/bricks/GenerativeMedia.ts +1 -1
- package/types/bricks/Icon.ts +1 -1
- package/types/bricks/Image.ts +1 -1
- package/types/bricks/Items.ts +1 -1
- package/types/bricks/Lottie.ts +1 -1
- package/types/bricks/Maps.ts +1 -1
- package/types/bricks/QrCode.ts +1 -1
- package/types/bricks/Rect.ts +1 -1
- package/types/bricks/RichText.ts +1 -1
- package/types/bricks/Rive.ts +1 -1
- package/types/bricks/Slideshow.ts +1 -1
- package/types/bricks/Svg.ts +1 -1
- package/types/bricks/Text.ts +1 -1
- package/types/bricks/TextInput.ts +1 -1
- package/types/bricks/Video.ts +1 -1
- package/types/bricks/VideoStreaming.ts +1 -1
- package/types/bricks/WebRtcStream.ts +1 -1
- package/types/bricks/WebView.ts +1 -1
- package/types/canvas.ts +2 -2
- package/types/common.ts +4 -4
- package/types/generators/AlarmClock.ts +1 -1
- package/types/generators/Assistant.ts +1 -1
- package/types/generators/BleCentral.ts +1 -1
- package/types/generators/BlePeripheral.ts +1 -1
- package/types/generators/CanvasMap.ts +1 -1
- package/types/generators/CastlesPay.ts +1 -1
- package/types/generators/DataBank.ts +1 -1
- package/types/generators/File.ts +1 -1
- package/types/generators/GraphQl.ts +1 -1
- package/types/generators/Http.ts +1 -1
- package/types/generators/HttpServer.ts +1 -1
- package/types/generators/Information.ts +1 -1
- package/types/generators/Intent.ts +1 -1
- package/types/generators/Iterator.ts +1 -1
- package/types/generators/Keyboard.ts +1 -1
- package/types/generators/LlmAnthropicCompat.ts +1 -1
- package/types/generators/LlmAppleBuiltin.ts +1 -1
- package/types/generators/LlmGgml.ts +1 -1
- package/types/generators/LlmOnnx.ts +1 -1
- package/types/generators/LlmOpenAiCompat.ts +1 -1
- package/types/generators/LlmQualcommAiEngine.ts +1 -1
- package/types/generators/Mcp.ts +1 -1
- package/types/generators/McpServer.ts +1 -1
- package/types/generators/MediaFlow.ts +1 -1
- package/types/generators/MqttBroker.ts +1 -1
- package/types/generators/MqttClient.ts +1 -1
- package/types/generators/Question.ts +1 -1
- package/types/generators/RealtimeTranscription.ts +1 -1
- package/types/generators/RerankerGgml.ts +1 -1
- package/types/generators/SerialPort.ts +1 -1
- package/types/generators/SoundPlayer.ts +1 -1
- package/types/generators/SoundRecorder.ts +1 -1
- package/types/generators/SpeechToTextGgml.ts +1 -1
- package/types/generators/SpeechToTextOnnx.ts +1 -1
- package/types/generators/SpeechToTextPlatform.ts +1 -1
- package/types/generators/SqLite.ts +1 -1
- package/types/generators/Step.ts +1 -1
- package/types/generators/SttAppleBuiltin.ts +1 -1
- package/types/generators/Tcp.ts +1 -1
- package/types/generators/TcpServer.ts +1 -1
- package/types/generators/TextToSpeechAppleBuiltin.ts +1 -1
- package/types/generators/TextToSpeechGgml.ts +1 -1
- package/types/generators/TextToSpeechOnnx.ts +1 -1
- package/types/generators/TextToSpeechOpenAiLike.ts +1 -1
- package/types/generators/ThermalPrinter.ts +1 -1
- package/types/generators/Tick.ts +1 -1
- package/types/generators/Udp.ts +1 -1
- package/types/generators/VadGgml.ts +1 -1
- package/types/generators/VadOnnx.ts +1 -1
- package/types/generators/VadTraditional.ts +1 -1
- package/types/generators/VectorStore.ts +1 -1
- package/types/generators/Watchdog.ts +1 -1
- package/types/generators/WebCrawler.ts +1 -1
- package/types/generators/WebRtc.ts +1 -1
- package/types/generators/WebSocket.ts +1 -1
- package/utils/id.ts +4 -0
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@fugood/bricks-project",
|
|
3
|
-
"version": "2.24.0-beta.
|
|
3
|
+
"version": "2.24.0-beta.9",
|
|
4
4
|
"main": "index.ts",
|
|
5
5
|
"scripts": {
|
|
6
6
|
"build": "bun scripts/build.js"
|
|
@@ -19,5 +19,5 @@
|
|
|
19
19
|
"lodash": "^4.17.4",
|
|
20
20
|
"uuid": "^8.3.1"
|
|
21
21
|
},
|
|
22
|
-
"gitHead": "
|
|
22
|
+
"gitHead": "e95218456eba0a34caafc17f3ffdd74035695c8b"
|
|
23
23
|
}
|
|
@@ -35,14 +35,14 @@ Automations can validate:
|
|
|
35
35
|
```typescript
|
|
36
36
|
const testLoginFlow: AutomationTest = {
|
|
37
37
|
__typename: 'AutomationTest',
|
|
38
|
-
id: 'test
|
|
38
|
+
id: makeId('test'),
|
|
39
39
|
title: 'Test Login Flow',
|
|
40
40
|
timeout: 30000,
|
|
41
41
|
trigger_type: 'launch',
|
|
42
42
|
cases: [
|
|
43
43
|
{
|
|
44
44
|
__typename: 'TestCase',
|
|
45
|
-
id: '
|
|
45
|
+
id: makeId('test_case'),
|
|
46
46
|
name: 'Wait for login canvas',
|
|
47
47
|
run: ['wait_until_canvas_change', () => mainSubspace, () => loginCanvas, 5000],
|
|
48
48
|
exit_on_failed: true,
|
|
@@ -53,7 +53,7 @@ const testLoginFlow: AutomationTest = {
|
|
|
53
53
|
},
|
|
54
54
|
{
|
|
55
55
|
__typename: 'TestCase',
|
|
56
|
-
id: '
|
|
56
|
+
id: makeId('test_case'),
|
|
57
57
|
name: 'Press username input',
|
|
58
58
|
run: ['brick_press', () => mainSubspace, () => usernameInput],
|
|
59
59
|
exit_on_failed: true,
|
|
@@ -64,7 +64,7 @@ const testLoginFlow: AutomationTest = {
|
|
|
64
64
|
},
|
|
65
65
|
{
|
|
66
66
|
__typename: 'TestCase',
|
|
67
|
-
id: '
|
|
67
|
+
id: makeId('test_case'),
|
|
68
68
|
name: 'Assert username value',
|
|
69
69
|
run: ['assert_property', () => mainSubspace, () => usernameData, 'testuser'],
|
|
70
70
|
exit_on_failed: true,
|
|
@@ -75,7 +75,7 @@ const testLoginFlow: AutomationTest = {
|
|
|
75
75
|
},
|
|
76
76
|
{
|
|
77
77
|
__typename: 'TestCase',
|
|
78
|
-
id: '
|
|
78
|
+
id: makeId('test_case'),
|
|
79
79
|
name: 'Press login button',
|
|
80
80
|
run: ['brick_press', () => mainSubspace, () => loginButton],
|
|
81
81
|
exit_on_failed: true,
|
|
@@ -86,7 +86,7 @@ const testLoginFlow: AutomationTest = {
|
|
|
86
86
|
},
|
|
87
87
|
{
|
|
88
88
|
__typename: 'TestCase',
|
|
89
|
-
id: '
|
|
89
|
+
id: makeId('test_case'),
|
|
90
90
|
name: 'Wait for dashboard',
|
|
91
91
|
run: ['wait_until_canvas_change', () => mainSubspace, () => dashboardCanvas, 10000],
|
|
92
92
|
exit_on_failed: true,
|
|
@@ -182,7 +182,7 @@ Visual regression testing with screenshot comparison:
|
|
|
182
182
|
```typescript
|
|
183
183
|
{
|
|
184
184
|
__typename: 'TestCase',
|
|
185
|
-
id: '
|
|
185
|
+
id: makeId('test_case'),
|
|
186
186
|
name: 'Match dashboard screenshot',
|
|
187
187
|
run: ['match_screenshot', 'dashboard-initial-state', 0.01, 3],
|
|
188
188
|
exit_on_failed: true,
|
package/types/bricks/Camera.ts
CHANGED
package/types/bricks/Chart.ts
CHANGED
package/types/bricks/Icon.ts
CHANGED
package/types/bricks/Image.ts
CHANGED
package/types/bricks/Items.ts
CHANGED
package/types/bricks/Lottie.ts
CHANGED
package/types/bricks/Maps.ts
CHANGED
package/types/bricks/QrCode.ts
CHANGED
package/types/bricks/Rect.ts
CHANGED
package/types/bricks/RichText.ts
CHANGED
package/types/bricks/Rive.ts
CHANGED
package/types/bricks/Svg.ts
CHANGED
package/types/bricks/Text.ts
CHANGED
package/types/bricks/Video.ts
CHANGED
package/types/bricks/WebView.ts
CHANGED
package/types/canvas.ts
CHANGED
package/types/common.ts
CHANGED
|
@@ -7,8 +7,8 @@ export interface Brick {
|
|
|
7
7
|
__typename: 'Brick'
|
|
8
8
|
id: string
|
|
9
9
|
templateKey: string
|
|
10
|
-
title
|
|
11
|
-
description
|
|
10
|
+
title?: string
|
|
11
|
+
description?: string
|
|
12
12
|
property?: {}
|
|
13
13
|
events: {}
|
|
14
14
|
outlets?: {}
|
|
@@ -25,8 +25,8 @@ export interface Generator {
|
|
|
25
25
|
__typename: 'Generator'
|
|
26
26
|
id: string
|
|
27
27
|
templateKey: string
|
|
28
|
-
title
|
|
29
|
-
description
|
|
28
|
+
title?: string
|
|
29
|
+
description?: string
|
|
30
30
|
localSyncRunMode?: LocalSyncStrategy
|
|
31
31
|
property?: {}
|
|
32
32
|
events: {}
|
|
@@ -185,7 +185,7 @@ Default property:
|
|
|
185
185
|
export type GeneratorBlePeripheral = Generator &
|
|
186
186
|
GeneratorBlePeripheralDef & {
|
|
187
187
|
templateKey: 'GENERATOR_BLE_PERIPHERAL'
|
|
188
|
-
switches
|
|
188
|
+
switches?: Array<
|
|
189
189
|
SwitchDef &
|
|
190
190
|
GeneratorBlePeripheralDef & {
|
|
191
191
|
conds?: Array<{
|
package/types/generators/File.ts
CHANGED
package/types/generators/Http.ts
CHANGED
|
@@ -171,7 +171,7 @@ Default property:
|
|
|
171
171
|
export type GeneratorAnthropicLLM = Generator &
|
|
172
172
|
GeneratorAnthropicLLMDef & {
|
|
173
173
|
templateKey: 'GENERATOR_ANTHROPIC_LLM'
|
|
174
|
-
switches
|
|
174
|
+
switches?: Array<
|
|
175
175
|
SwitchDef &
|
|
176
176
|
GeneratorAnthropicLLMDef & {
|
|
177
177
|
conds?: Array<{
|
package/types/generators/Mcp.ts
CHANGED
|
@@ -161,7 +161,7 @@ Default property:
|
|
|
161
161
|
export type GeneratorRealtimeTranscription = Generator &
|
|
162
162
|
GeneratorRealtimeTranscriptionDef & {
|
|
163
163
|
templateKey: 'GENERATOR_REALTIME_TRANSCRIPTION'
|
|
164
|
-
switches
|
|
164
|
+
switches?: Array<
|
|
165
165
|
SwitchDef &
|
|
166
166
|
GeneratorRealtimeTranscriptionDef & {
|
|
167
167
|
conds?: Array<{
|
|
@@ -355,7 +355,7 @@ Default property:
|
|
|
355
355
|
export type GeneratorSpeechInference = Generator &
|
|
356
356
|
GeneratorSpeechInferenceDef & {
|
|
357
357
|
templateKey: 'GENERATOR_SPEECH_INFERENCE'
|
|
358
|
-
switches
|
|
358
|
+
switches?: Array<
|
|
359
359
|
SwitchDef &
|
|
360
360
|
GeneratorSpeechInferenceDef & {
|
|
361
361
|
conds?: Array<{
|
package/types/generators/Step.ts
CHANGED
package/types/generators/Tcp.ts
CHANGED
|
@@ -168,7 +168,7 @@ Default property:
|
|
|
168
168
|
export type GeneratorThermalPrinter = Generator &
|
|
169
169
|
GeneratorThermalPrinterDef & {
|
|
170
170
|
templateKey: 'GENERATOR_THERMAL_PRINTER'
|
|
171
|
-
switches
|
|
171
|
+
switches?: Array<
|
|
172
172
|
SwitchDef &
|
|
173
173
|
GeneratorThermalPrinterDef & {
|
|
174
174
|
conds?: Array<{
|
package/types/generators/Tick.ts
CHANGED
package/types/generators/Udp.ts
CHANGED
|
@@ -189,7 +189,7 @@ Default property:
|
|
|
189
189
|
export type GeneratorVadInference = Generator &
|
|
190
190
|
GeneratorVadInferenceDef & {
|
|
191
191
|
templateKey: 'GENERATOR_VAD_INFERENCE'
|
|
192
|
-
switches
|
|
192
|
+
switches?: Array<
|
|
193
193
|
SwitchDef &
|
|
194
194
|
GeneratorVadInferenceDef & {
|
|
195
195
|
conds?: Array<{
|
|
@@ -182,7 +182,7 @@ Default property:
|
|
|
182
182
|
export type GeneratorVadInferenceOnnx = Generator &
|
|
183
183
|
GeneratorVadInferenceOnnxDef & {
|
|
184
184
|
templateKey: 'GENERATOR_ONNX_VAD'
|
|
185
|
-
switches
|
|
185
|
+
switches?: Array<
|
|
186
186
|
SwitchDef &
|
|
187
187
|
GeneratorVadInferenceOnnxDef & {
|
|
188
188
|
conds?: Array<{
|
|
@@ -97,7 +97,7 @@ Default property:
|
|
|
97
97
|
export type GeneratorVadInferenceTraditional = Generator &
|
|
98
98
|
GeneratorVadInferenceTraditionalDef & {
|
|
99
99
|
templateKey: 'GENERATOR_TRADITIONAL_VAD'
|
|
100
|
-
switches
|
|
100
|
+
switches?: Array<
|
|
101
101
|
SwitchDef &
|
|
102
102
|
GeneratorVadInferenceTraditionalDef & {
|
|
103
103
|
conds?: Array<{
|
|
@@ -217,7 +217,7 @@ Default property:
|
|
|
217
217
|
export type GeneratorVectorStore = Generator &
|
|
218
218
|
GeneratorVectorStoreDef & {
|
|
219
219
|
templateKey: 'GENERATOR_VECTOR_STORE'
|
|
220
|
-
switches
|
|
220
|
+
switches?: Array<
|
|
221
221
|
SwitchDef &
|
|
222
222
|
GeneratorVectorStoreDef & {
|
|
223
223
|
conds?: Array<{
|
package/utils/id.ts
CHANGED
|
@@ -21,6 +21,7 @@ export const makeId = (
|
|
|
21
21
|
| 'property_bank_command'
|
|
22
22
|
| 'property_bank_calc'
|
|
23
23
|
| 'dynamic-brick'
|
|
24
|
+
| 'automation_map'
|
|
24
25
|
| 'test'
|
|
25
26
|
| 'test_case'
|
|
26
27
|
| 'test_var'
|
|
@@ -61,6 +62,9 @@ export const makeId = (
|
|
|
61
62
|
case 'property_bank_calc':
|
|
62
63
|
prefix = 'PROPERTY_BANK_COMMAND_MAP_'
|
|
63
64
|
break
|
|
65
|
+
case 'automation_map':
|
|
66
|
+
prefix = 'AUTOMATION_MAP_'
|
|
67
|
+
break
|
|
64
68
|
case 'test':
|
|
65
69
|
prefix = 'TEST_'
|
|
66
70
|
break
|