@fugood/bricks-project 2.23.3 → 2.23.5
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/action-name-map.ts +14 -0
- package/compile/index.ts +29 -0
- package/package.json +3 -3
- package/skills/bricks-project/rules/architecture-patterns.md +7 -0
- package/skills/bricks-project/rules/buttress.md +9 -6
- package/tools/mcp-server.ts +10 -880
- package/tools/mcp-tools/compile.ts +91 -0
- package/tools/mcp-tools/huggingface.ts +763 -0
- package/tools/mcp-tools/icons.ts +60 -0
- package/tools/mcp-tools/lottie.ts +102 -0
- package/tools/mcp-tools/media.ts +110 -0
- package/tools/postinstall.ts +113 -28
- package/tools/pull.ts +25 -9
- package/types/animation.ts +4 -0
- package/types/automation.ts +3 -0
- package/types/bricks/Camera.ts +33 -6
- package/types/bricks/GenerativeMedia.ts +5 -5
- package/types/bricks/Icon.ts +2 -2
- package/types/bricks/Image.ts +3 -3
- package/types/bricks/Items.ts +6 -6
- package/types/bricks/Lottie.ts +3 -3
- package/types/bricks/Maps.ts +3 -3
- package/types/bricks/QrCode.ts +3 -3
- package/types/bricks/Rect.ts +3 -3
- package/types/bricks/RichText.ts +2 -2
- package/types/bricks/Slideshow.ts +1 -1
- package/types/bricks/Svg.ts +2 -2
- package/types/bricks/Text.ts +3 -3
- package/types/bricks/TextInput.ts +10 -6
- package/types/bricks/Video.ts +3 -3
- package/types/bricks/VideoStreaming.ts +2 -2
- package/types/bricks/WebView.ts +3 -3
- package/types/canvas.ts +2 -0
- package/types/common.ts +5 -0
- package/types/data-calc-command.ts +2 -0
- package/types/data-calc.ts +1 -0
- package/types/data.ts +2 -0
- package/types/generators/AlarmClock.ts +4 -4
- package/types/generators/Assistant.ts +53 -8
- package/types/generators/BleCentral.ts +11 -3
- package/types/generators/BlePeripheral.ts +3 -3
- package/types/generators/CanvasMap.ts +3 -3
- package/types/generators/CastlesPay.ts +2 -2
- package/types/generators/DataBank.ts +29 -2
- package/types/generators/File.ts +62 -13
- package/types/generators/GraphQl.ts +2 -2
- package/types/generators/Http.ts +25 -6
- package/types/generators/HttpServer.ts +4 -4
- package/types/generators/Information.ts +1 -1
- package/types/generators/Intent.ts +7 -1
- package/types/generators/Iterator.ts +5 -5
- package/types/generators/Keyboard.ts +15 -5
- package/types/generators/LlmAnthropicCompat.ts +9 -3
- package/types/generators/LlmAppleBuiltin.ts +4 -4
- package/types/generators/LlmGgml.ts +63 -13
- package/types/generators/LlmMlx.ts +210 -0
- package/types/generators/LlmOnnx.ts +13 -4
- package/types/generators/LlmOpenAiCompat.ts +19 -3
- package/types/generators/LlmQualcommAiEngine.ts +29 -5
- package/types/generators/Mcp.ts +331 -16
- package/types/generators/McpServer.ts +34 -7
- package/types/generators/MediaFlow.ts +24 -6
- package/types/generators/MqttBroker.ts +9 -3
- package/types/generators/MqttClient.ts +10 -4
- package/types/generators/Question.ts +4 -4
- package/types/generators/RealtimeTranscription.ts +69 -10
- package/types/generators/RerankerGgml.ts +19 -5
- package/types/generators/SerialPort.ts +5 -5
- package/types/generators/SoundPlayer.ts +1 -1
- package/types/generators/SoundRecorder.ts +4 -4
- package/types/generators/SpeechToTextGgml.ts +27 -7
- package/types/generators/SpeechToTextOnnx.ts +3 -3
- package/types/generators/SpeechToTextPlatform.ts +3 -3
- package/types/generators/SqLite.ts +9 -5
- package/types/generators/Step.ts +2 -2
- package/types/generators/SttAppleBuiltin.ts +4 -4
- package/types/generators/Tcp.ts +3 -3
- package/types/generators/TcpServer.ts +5 -5
- package/types/generators/TextToSpeechAppleBuiltin.ts +3 -3
- package/types/generators/TextToSpeechGgml.ts +3 -3
- package/types/generators/TextToSpeechOnnx.ts +3 -3
- package/types/generators/TextToSpeechOpenAiLike.ts +3 -3
- package/types/generators/ThermalPrinter.ts +4 -4
- package/types/generators/Tick.ts +2 -2
- package/types/generators/Udp.ts +8 -3
- package/types/generators/VadGgml.ts +34 -5
- package/types/generators/VadOnnx.ts +27 -4
- package/types/generators/VadTraditional.ts +13 -7
- package/types/generators/VectorStore.ts +22 -5
- package/types/generators/Watchdog.ts +10 -5
- package/types/generators/WebCrawler.ts +3 -3
- package/types/generators/WebRtc.ts +14 -8
- package/types/generators/WebSocket.ts +4 -4
- package/types/generators/index.ts +1 -0
- package/types/subspace.ts +1 -0
- package/types/system.ts +1 -1
- package/utils/event-props.ts +104 -87
package/types/bricks/Items.ts
CHANGED
|
@@ -411,17 +411,17 @@ Default property:
|
|
|
411
411
|
}
|
|
412
412
|
outlets?: {
|
|
413
413
|
/* Catched error message */
|
|
414
|
-
error?: () => Data
|
|
414
|
+
error?: () => Data<string>
|
|
415
415
|
/* Current render mode */
|
|
416
|
-
mode?: () => Data
|
|
416
|
+
mode?: () => Data<string>
|
|
417
417
|
/* Current page index */
|
|
418
|
-
pageIndex?: () => Data
|
|
418
|
+
pageIndex?: () => Data<number>
|
|
419
419
|
/* Current page size */
|
|
420
|
-
pageSize?: () => Data
|
|
420
|
+
pageSize?: () => Data<number>
|
|
421
421
|
/* Selected item index of detail mode */
|
|
422
|
-
selectedItemIndex?: () => Data
|
|
422
|
+
selectedItemIndex?: () => Data<number>
|
|
423
423
|
/* Page is out of bound */
|
|
424
|
-
pageIsOutOfBound?: () => Data
|
|
424
|
+
pageIsOutOfBound?: () => Data<boolean>
|
|
425
425
|
}
|
|
426
426
|
animation?: AnimationBasicEvents & {
|
|
427
427
|
onPageRender?: Animation
|
package/types/bricks/Lottie.ts
CHANGED
|
@@ -120,9 +120,9 @@ Default property:
|
|
|
120
120
|
}
|
|
121
121
|
outlets?: {
|
|
122
122
|
/* Brick is pressing */
|
|
123
|
-
brickPressing?: () => Data
|
|
123
|
+
brickPressing?: () => Data<boolean>
|
|
124
124
|
/* Brick is focusing (Use TV Device with controller) */
|
|
125
|
-
brickFocusing?: () => Data
|
|
125
|
+
brickFocusing?: () => Data<boolean>
|
|
126
126
|
}
|
|
127
127
|
animation?: AnimationBasicEvents & {
|
|
128
128
|
onPress?: Animation
|
|
@@ -137,7 +137,7 @@ Default property:
|
|
|
137
137
|
}
|
|
138
138
|
}
|
|
139
139
|
|
|
140
|
-
/* Lottie Adobe After Effects animations brick
|
|
140
|
+
/* Lottie Adobe After Effects animations brick */
|
|
141
141
|
export type BrickLottie = Brick &
|
|
142
142
|
BrickLottieDef & {
|
|
143
143
|
templateKey: 'BRICK_LOTTIE'
|
package/types/bricks/Maps.ts
CHANGED
|
@@ -213,9 +213,9 @@ Default property:
|
|
|
213
213
|
}
|
|
214
214
|
outlets?: {
|
|
215
215
|
/* Brick is pressing */
|
|
216
|
-
brickPressing?: () => Data
|
|
216
|
+
brickPressing?: () => Data<boolean>
|
|
217
217
|
/* Brick is focusing (Use TV Device with controller) */
|
|
218
|
-
brickFocusing?: () => Data
|
|
218
|
+
brickFocusing?: () => Data<boolean>
|
|
219
219
|
}
|
|
220
220
|
animation?: AnimationBasicEvents & {
|
|
221
221
|
onPress?: Animation
|
|
@@ -231,7 +231,7 @@ Default property:
|
|
|
231
231
|
}
|
|
232
232
|
}
|
|
233
233
|
|
|
234
|
-
/* Maps brick
|
|
234
|
+
/* Maps brick */
|
|
235
235
|
export type BrickMaps = Brick &
|
|
236
236
|
BrickMapsDef & {
|
|
237
237
|
templateKey: 'BRICK_MAPS'
|
package/types/bricks/QrCode.ts
CHANGED
|
@@ -76,9 +76,9 @@ Default property:
|
|
|
76
76
|
}
|
|
77
77
|
outlets?: {
|
|
78
78
|
/* Brick is pressing */
|
|
79
|
-
brickPressing?: () => Data
|
|
79
|
+
brickPressing?: () => Data<boolean>
|
|
80
80
|
/* Brick is focusing (Use TV Device with controller) */
|
|
81
|
-
brickFocusing?: () => Data
|
|
81
|
+
brickFocusing?: () => Data<boolean>
|
|
82
82
|
}
|
|
83
83
|
animation?: AnimationBasicEvents & {
|
|
84
84
|
onPress?: Animation
|
|
@@ -90,7 +90,7 @@ Default property:
|
|
|
90
90
|
}
|
|
91
91
|
}
|
|
92
92
|
|
|
93
|
-
/* QRCode brick
|
|
93
|
+
/* QRCode brick */
|
|
94
94
|
export type BrickQrcode = Brick &
|
|
95
95
|
BrickQrcodeDef & {
|
|
96
96
|
templateKey: 'BRICK_QRCODE'
|
package/types/bricks/Rect.ts
CHANGED
|
@@ -74,9 +74,9 @@ Default property:
|
|
|
74
74
|
}
|
|
75
75
|
outlets?: {
|
|
76
76
|
/* Brick is pressing */
|
|
77
|
-
brickPressing?: () => Data
|
|
77
|
+
brickPressing?: () => Data<boolean>
|
|
78
78
|
/* Brick is focusing (Use TV Device with controller) */
|
|
79
|
-
brickFocusing?: () => Data
|
|
79
|
+
brickFocusing?: () => Data<boolean>
|
|
80
80
|
}
|
|
81
81
|
animation?: AnimationBasicEvents & {
|
|
82
82
|
onPress?: Animation
|
|
@@ -88,7 +88,7 @@ Default property:
|
|
|
88
88
|
}
|
|
89
89
|
}
|
|
90
90
|
|
|
91
|
-
/* Rect brick
|
|
91
|
+
/* Rect brick */
|
|
92
92
|
export type BrickRect = Brick &
|
|
93
93
|
BrickRectDef & {
|
|
94
94
|
templateKey: 'BRICK_RECT'
|
package/types/bricks/RichText.ts
CHANGED
|
@@ -87,9 +87,9 @@ Default property:
|
|
|
87
87
|
}
|
|
88
88
|
outlets?: {
|
|
89
89
|
/* Brick is pressing */
|
|
90
|
-
brickPressing?: () => Data
|
|
90
|
+
brickPressing?: () => Data<boolean>
|
|
91
91
|
/* Brick is focusing (Use TV Device with controller) */
|
|
92
|
-
brickFocusing?: () => Data
|
|
92
|
+
brickFocusing?: () => Data<boolean>
|
|
93
93
|
}
|
|
94
94
|
animation?: AnimationBasicEvents & {
|
|
95
95
|
onPress?: Animation
|
|
@@ -168,7 +168,7 @@ Default property:
|
|
|
168
168
|
}
|
|
169
169
|
}
|
|
170
170
|
|
|
171
|
-
/* Slideshow brick
|
|
171
|
+
/* Slideshow brick */
|
|
172
172
|
export type BrickSlideshow = Brick &
|
|
173
173
|
BrickSlideshowDef & {
|
|
174
174
|
templateKey: 'BRICK_SLIDESHOW'
|
package/types/bricks/Svg.ts
CHANGED
|
@@ -58,9 +58,9 @@ Default property:
|
|
|
58
58
|
}
|
|
59
59
|
outlets?: {
|
|
60
60
|
/* Brick is pressing */
|
|
61
|
-
brickPressing?: () => Data
|
|
61
|
+
brickPressing?: () => Data<boolean>
|
|
62
62
|
/* Brick is focusing (Use TV Device with controller) */
|
|
63
|
-
brickFocusing?: () => Data
|
|
63
|
+
brickFocusing?: () => Data<boolean>
|
|
64
64
|
}
|
|
65
65
|
animation?: AnimationBasicEvents & {
|
|
66
66
|
onPress?: Animation
|
package/types/bricks/Text.ts
CHANGED
|
@@ -105,9 +105,9 @@ Default property:
|
|
|
105
105
|
}
|
|
106
106
|
outlets?: {
|
|
107
107
|
/* Brick is pressing */
|
|
108
|
-
brickPressing?: () => Data
|
|
108
|
+
brickPressing?: () => Data<boolean>
|
|
109
109
|
/* Brick is focusing (Use TV Device with controller) */
|
|
110
|
-
brickFocusing?: () => Data
|
|
110
|
+
brickFocusing?: () => Data<boolean>
|
|
111
111
|
}
|
|
112
112
|
animation?: AnimationBasicEvents & {
|
|
113
113
|
onPress?: Animation
|
|
@@ -121,7 +121,7 @@ Default property:
|
|
|
121
121
|
}
|
|
122
122
|
}
|
|
123
123
|
|
|
124
|
-
/* Text brick
|
|
124
|
+
/* Text brick */
|
|
125
125
|
export type BrickText = Brick &
|
|
126
126
|
BrickTextDef & {
|
|
127
127
|
templateKey: 'BRICK_TEXT'
|
|
@@ -186,15 +186,19 @@ Default property:
|
|
|
186
186
|
}
|
|
187
187
|
outlets?: {
|
|
188
188
|
/* The raw input */
|
|
189
|
-
rawInput?: () => Data
|
|
189
|
+
rawInput?: () => Data<any>
|
|
190
190
|
/* The regex result */
|
|
191
|
-
resultVariable?: () => Data
|
|
191
|
+
resultVariable?: () => Data<{ [key: string]: any }>
|
|
192
192
|
/* Last key in */
|
|
193
|
-
lastKey?: () => Data
|
|
193
|
+
lastKey?: () => Data<any>
|
|
194
194
|
/* Selection of the TextInput (start, end, text) */
|
|
195
|
-
selection?: () => Data
|
|
195
|
+
selection?: () => Data<{
|
|
196
|
+
start?: number
|
|
197
|
+
end?: number
|
|
198
|
+
text?: string
|
|
199
|
+
}>
|
|
196
200
|
/* Selection text of the TextInput */
|
|
197
|
-
selectionText?: () => Data
|
|
201
|
+
selectionText?: () => Data<string>
|
|
198
202
|
}
|
|
199
203
|
animation?: AnimationBasicEvents & {
|
|
200
204
|
onFocus?: Animation
|
|
@@ -209,7 +213,7 @@ Default property:
|
|
|
209
213
|
}
|
|
210
214
|
}
|
|
211
215
|
|
|
212
|
-
/* Text Input brick
|
|
216
|
+
/* Text Input brick */
|
|
213
217
|
export type BrickTextInput = Brick &
|
|
214
218
|
BrickTextInputDef & {
|
|
215
219
|
templateKey: 'BRICK_TEXT_INPUT'
|
package/types/bricks/Video.ts
CHANGED
|
@@ -129,9 +129,9 @@ Default property:
|
|
|
129
129
|
}
|
|
130
130
|
outlets?: {
|
|
131
131
|
/* Brick is pressing */
|
|
132
|
-
brickPressing?: () => Data
|
|
132
|
+
brickPressing?: () => Data<boolean>
|
|
133
133
|
/* Brick is focusing (Use TV Device with controller) */
|
|
134
|
-
brickFocusing?: () => Data
|
|
134
|
+
brickFocusing?: () => Data<boolean>
|
|
135
135
|
}
|
|
136
136
|
animation?: AnimationBasicEvents & {
|
|
137
137
|
onPress?: Animation
|
|
@@ -148,7 +148,7 @@ Default property:
|
|
|
148
148
|
}
|
|
149
149
|
}
|
|
150
150
|
|
|
151
|
-
/* Video brick
|
|
151
|
+
/* Video brick */
|
|
152
152
|
export type BrickVideo = Brick &
|
|
153
153
|
BrickVideoDef & {
|
|
154
154
|
templateKey: 'BRICK_VIDEO'
|
|
@@ -68,9 +68,9 @@ Default property:
|
|
|
68
68
|
}
|
|
69
69
|
outlets?: {
|
|
70
70
|
/* Brick is pressing */
|
|
71
|
-
brickPressing?: () => Data
|
|
71
|
+
brickPressing?: () => Data<boolean>
|
|
72
72
|
/* Brick is focusing (Use TV Device with controller) */
|
|
73
|
-
brickFocusing?: () => Data
|
|
73
|
+
brickFocusing?: () => Data<boolean>
|
|
74
74
|
}
|
|
75
75
|
animation?: AnimationBasicEvents & {
|
|
76
76
|
onPress?: Animation
|
package/types/bricks/WebView.ts
CHANGED
|
@@ -130,9 +130,9 @@ Default property:
|
|
|
130
130
|
}
|
|
131
131
|
outlets?: {
|
|
132
132
|
/* The result of the query selector action */
|
|
133
|
-
queryResult?: () => Data
|
|
133
|
+
queryResult?: () => Data<any>
|
|
134
134
|
/* The error of the query selector action */
|
|
135
|
-
queryError?: () => Data
|
|
135
|
+
queryError?: () => Data<string>
|
|
136
136
|
}
|
|
137
137
|
animation?: AnimationBasicEvents & {
|
|
138
138
|
onLoad?: Animation
|
|
@@ -141,7 +141,7 @@ Default property:
|
|
|
141
141
|
}
|
|
142
142
|
}
|
|
143
143
|
|
|
144
|
-
/* WebView brick
|
|
144
|
+
/* WebView brick */
|
|
145
145
|
export type BrickWebView = Brick &
|
|
146
146
|
BrickWebViewDef & {
|
|
147
147
|
templateKey: 'BRICK_WEBVIEW'
|
package/types/canvas.ts
CHANGED
package/types/common.ts
CHANGED
|
@@ -6,9 +6,11 @@ import type { AutomationMap } from './automation'
|
|
|
6
6
|
export interface Brick {
|
|
7
7
|
__typename: 'Brick'
|
|
8
8
|
id: string
|
|
9
|
+
alias?: string
|
|
9
10
|
templateKey: string
|
|
10
11
|
title?: string
|
|
11
12
|
description?: string
|
|
13
|
+
hideShortRef?: boolean
|
|
12
14
|
property?: {}
|
|
13
15
|
events: {}
|
|
14
16
|
outlets?: {}
|
|
@@ -24,9 +26,11 @@ export enum LocalSyncStrategy {
|
|
|
24
26
|
export interface Generator {
|
|
25
27
|
__typename: 'Generator'
|
|
26
28
|
id: string
|
|
29
|
+
alias?: string
|
|
27
30
|
templateKey: string
|
|
28
31
|
title?: string
|
|
29
32
|
description?: string
|
|
33
|
+
hideShortRef?: boolean
|
|
30
34
|
localSyncRunMode?: LocalSyncStrategy
|
|
31
35
|
property?: {}
|
|
32
36
|
events: {}
|
|
@@ -121,6 +125,7 @@ export type ApplicationSettings = {
|
|
|
121
125
|
useOpenAiApiKeySystemData?: boolean
|
|
122
126
|
useGeminiApiKeySystemData?: boolean
|
|
123
127
|
}
|
|
128
|
+
hideShortRefs?: boolean
|
|
124
129
|
}
|
|
125
130
|
|
|
126
131
|
export type Application = {
|
|
@@ -6,6 +6,7 @@ export interface DataCalculationData {
|
|
|
6
6
|
__typename: 'DataCalculationData'
|
|
7
7
|
title?: string
|
|
8
8
|
description?: string
|
|
9
|
+
hideShortRef?: boolean
|
|
9
10
|
data: () => Data
|
|
10
11
|
inputs: Array<{
|
|
11
12
|
key: 'change'
|
|
@@ -26,6 +27,7 @@ export interface DataCommand {
|
|
|
26
27
|
id: string
|
|
27
28
|
title?: string
|
|
28
29
|
description?: string
|
|
30
|
+
hideShortRef?: boolean
|
|
29
31
|
inputs: Array<{
|
|
30
32
|
key: string
|
|
31
33
|
source: (() => DataCalculationData | DataCommand) | any
|
package/types/data-calc.ts
CHANGED
|
@@ -4,6 +4,7 @@ export interface DataCalculation {
|
|
|
4
4
|
id: string
|
|
5
5
|
title?: string
|
|
6
6
|
description?: string
|
|
7
|
+
hideShortRef?: boolean
|
|
7
8
|
// Auto: Run the calculation when inputs change and allow triggers. Careful with circular dependencies!
|
|
8
9
|
// Manual: Only run the calculation when manually triggered by System Action PROPERTY_BANK_COMMAND
|
|
9
10
|
triggerMode?: 'auto' | 'manual'
|
package/types/data.ts
CHANGED
|
@@ -17,8 +17,10 @@ interface DataDef {
|
|
|
17
17
|
export type Data<T = any> = DataDef & {
|
|
18
18
|
__typename: 'Data'
|
|
19
19
|
id: string
|
|
20
|
+
alias?: string
|
|
20
21
|
title: string
|
|
21
22
|
description?: string
|
|
23
|
+
hideShortRef?: boolean
|
|
22
24
|
metadata?: {
|
|
23
25
|
linked?: Array<SubspaceID>
|
|
24
26
|
linkedFrom?: SubspaceID
|
|
@@ -71,13 +71,13 @@ Default property:
|
|
|
71
71
|
}
|
|
72
72
|
outlets?: {
|
|
73
73
|
/* Current time of each alarm clock trig */
|
|
74
|
-
trigTime?: () => Data
|
|
74
|
+
trigTime?: () => Data<string>
|
|
75
75
|
/* Current timestamp (unix time) of each alarm clock trig */
|
|
76
|
-
trigTimestamp?: () => Data
|
|
76
|
+
trigTimestamp?: () => Data<string | number>
|
|
77
77
|
/* Count of alarm clock trigs */
|
|
78
|
-
trigCount?: () => Data
|
|
78
|
+
trigCount?: () => Data<string | number>
|
|
79
79
|
/* Is alarm clock running? */
|
|
80
|
-
running?: () => Data
|
|
80
|
+
running?: () => Data<boolean | string | number>
|
|
81
81
|
}
|
|
82
82
|
}
|
|
83
83
|
|
|
@@ -434,7 +434,7 @@ Default property:
|
|
|
434
434
|
| DataLink
|
|
435
435
|
/* Whether to cache messages */
|
|
436
436
|
cacheMessages?: boolean | DataLink
|
|
437
|
-
/* LLM Generator (Supports `LLM (GGML)` and `OpenAI LLM` generators) */
|
|
437
|
+
/* LLM Generator (Supports `LLM (GGML)`, `LLM (MLX)`, and `OpenAI LLM` generators) */
|
|
438
438
|
llmGeneratorId?: string | DataLink | (() => Generator)
|
|
439
439
|
/* LLM Live Policy. If the policy is `only-in-use`, the LLM context will be released when the assistant is not in use.
|
|
440
440
|
|
|
@@ -524,19 +524,64 @@ Default property:
|
|
|
524
524
|
}
|
|
525
525
|
outlets?: {
|
|
526
526
|
/* Whether the assistant is heating up */
|
|
527
|
-
isHeatingUp?: () => Data
|
|
527
|
+
isHeatingUp?: () => Data<boolean>
|
|
528
528
|
/* Whether the assistant is file processing */
|
|
529
|
-
isFileProcessing?: () => Data
|
|
529
|
+
isFileProcessing?: () => Data<boolean>
|
|
530
530
|
/* Whether the assistant is responding */
|
|
531
|
-
isResponding?: () => Data
|
|
531
|
+
isResponding?: () => Data<boolean>
|
|
532
532
|
/* Whether the assistant is busy */
|
|
533
|
-
isBusy?: () => Data
|
|
533
|
+
isBusy?: () => Data<boolean>
|
|
534
534
|
/* Embedding files of the assistant */
|
|
535
|
-
files?: () => Data
|
|
535
|
+
files?: () => Data<Array<any>>
|
|
536
536
|
/* Messages of the assistant */
|
|
537
|
-
messages?: () => Data
|
|
537
|
+
messages?: () => Data<
|
|
538
|
+
Array<{
|
|
539
|
+
role?: string
|
|
540
|
+
name?: string
|
|
541
|
+
content?: any
|
|
542
|
+
tool_call_id?: string
|
|
543
|
+
tool_calls?: Array<{
|
|
544
|
+
id?: string
|
|
545
|
+
type?: string
|
|
546
|
+
function?: {
|
|
547
|
+
name?: string
|
|
548
|
+
arguments?: string
|
|
549
|
+
[key: string]: any
|
|
550
|
+
}
|
|
551
|
+
[key: string]: any
|
|
552
|
+
}>
|
|
553
|
+
reasoning_content?: string
|
|
554
|
+
audio?: {
|
|
555
|
+
generating?: boolean
|
|
556
|
+
[key: string]: any
|
|
557
|
+
}
|
|
558
|
+
last_generated_at?: number
|
|
559
|
+
responding?: boolean
|
|
560
|
+
is_summary?: boolean
|
|
561
|
+
summary_created_at?: number
|
|
562
|
+
[key: string]: any
|
|
563
|
+
}>
|
|
564
|
+
>
|
|
538
565
|
/* MCP servers status and available tools */
|
|
539
|
-
mcpServers?: () => Data
|
|
566
|
+
mcpServers?: () => Data<
|
|
567
|
+
Array<{
|
|
568
|
+
generatorId?: string
|
|
569
|
+
generatorKey?: string
|
|
570
|
+
name?: string
|
|
571
|
+
version?: string
|
|
572
|
+
connected?: boolean
|
|
573
|
+
error?: string
|
|
574
|
+
resources?: Array<{
|
|
575
|
+
name?: string
|
|
576
|
+
[key: string]: any
|
|
577
|
+
}>
|
|
578
|
+
tools?: Array<{
|
|
579
|
+
name?: string
|
|
580
|
+
[key: string]: any
|
|
581
|
+
}>
|
|
582
|
+
[key: string]: any
|
|
583
|
+
}>
|
|
584
|
+
>
|
|
540
585
|
}
|
|
541
586
|
}
|
|
542
587
|
|
|
@@ -196,11 +196,19 @@ Default property:
|
|
|
196
196
|
}
|
|
197
197
|
outlets?: {
|
|
198
198
|
/* Is scaning */
|
|
199
|
-
isScaning?: () => Data
|
|
199
|
+
isScaning?: () => Data<boolean>
|
|
200
200
|
/* Discovered device list */
|
|
201
|
-
discoveredDeviceList?: () => Data
|
|
201
|
+
discoveredDeviceList?: () => Data<
|
|
202
|
+
Array<{
|
|
203
|
+
id?: string
|
|
204
|
+
name?: string
|
|
205
|
+
rssi?: number
|
|
206
|
+
advertising?: { [key: string]: any }
|
|
207
|
+
[key: string]: any
|
|
208
|
+
}>
|
|
209
|
+
>
|
|
202
210
|
/* Error message */
|
|
203
|
-
errorMessage?: () => Data
|
|
211
|
+
errorMessage?: () => Data<string>
|
|
204
212
|
}
|
|
205
213
|
}
|
|
206
214
|
|
|
@@ -173,11 +173,11 @@ Default property:
|
|
|
173
173
|
events?: {}
|
|
174
174
|
outlets?: {
|
|
175
175
|
/* Is advertising */
|
|
176
|
-
isAdvertising?: () => Data
|
|
176
|
+
isAdvertising?: () => Data<boolean>
|
|
177
177
|
/* Last receive written */
|
|
178
|
-
lastWrite?: () => Data
|
|
178
|
+
lastWrite?: () => Data<{ [key: string]: any }>
|
|
179
179
|
/* Error message */
|
|
180
|
-
errorMessage?: () => Data
|
|
180
|
+
errorMessage?: () => Data<string>
|
|
181
181
|
}
|
|
182
182
|
}
|
|
183
183
|
|
|
@@ -39,11 +39,11 @@ Default property:
|
|
|
39
39
|
}
|
|
40
40
|
outlets?: {
|
|
41
41
|
/* Last matched trigger rule that caused canvas navigation */
|
|
42
|
-
lastMatchedRule?: () => Data
|
|
42
|
+
lastMatchedRule?: () => Data<{ [key: string]: any }>
|
|
43
43
|
/* Index of the last matched rule in triggerList */
|
|
44
|
-
lastMatchedIndex?: () => Data
|
|
44
|
+
lastMatchedIndex?: () => Data<number>
|
|
45
45
|
/* Total count of canvas navigations triggered by this generator */
|
|
46
|
-
navigationCount?: () => Data
|
|
46
|
+
navigationCount?: () => Data<number>
|
|
47
47
|
}
|
|
48
48
|
}
|
|
49
49
|
|
|
@@ -50,9 +50,9 @@ Default property:
|
|
|
50
50
|
}
|
|
51
51
|
outlets?: {
|
|
52
52
|
/* Last Transaction Result */
|
|
53
|
-
lastTransactionResult?: () => Data
|
|
53
|
+
lastTransactionResult?: () => Data<{ [key: string]: any }>
|
|
54
54
|
/* Last Error */
|
|
55
|
-
lastError?: () => Data
|
|
55
|
+
lastError?: () => Data<string>
|
|
56
56
|
}
|
|
57
57
|
}
|
|
58
58
|
|
|
@@ -96,9 +96,36 @@ Default property:
|
|
|
96
96
|
}
|
|
97
97
|
outlets?: {
|
|
98
98
|
/* Response for Data Bank fetch request, it will save to Data */
|
|
99
|
-
response?: () => Data
|
|
99
|
+
response?: () => Data<
|
|
100
|
+
Array<{
|
|
101
|
+
__typename?: string
|
|
102
|
+
id?: string
|
|
103
|
+
createAt?: string
|
|
104
|
+
updateAt?: string
|
|
105
|
+
spaceId?: string
|
|
106
|
+
propertyId?: string
|
|
107
|
+
definition?: {
|
|
108
|
+
type?: string
|
|
109
|
+
title?: string
|
|
110
|
+
schema?: { [key: string]: any }
|
|
111
|
+
[key: string]: any
|
|
112
|
+
}
|
|
113
|
+
meta?: string
|
|
114
|
+
value?: any
|
|
115
|
+
lastUpdateHash?: string
|
|
116
|
+
lastUpdateNote?: string
|
|
117
|
+
lastUpdateKey?: {
|
|
118
|
+
name?: string
|
|
119
|
+
enable_expired?: boolean
|
|
120
|
+
expired_at?: any
|
|
121
|
+
jwt?: boolean
|
|
122
|
+
[key: string]: any
|
|
123
|
+
}
|
|
124
|
+
[key: string]: any
|
|
125
|
+
}>
|
|
126
|
+
>
|
|
100
127
|
/* Server response error of Data Bank fetch request, it will save to Data */
|
|
101
|
-
error?: () => Data
|
|
128
|
+
error?: () => Data<string>
|
|
102
129
|
}
|
|
103
130
|
}
|
|
104
131
|
|
package/types/generators/File.ts
CHANGED
|
@@ -289,31 +289,80 @@ Default property:
|
|
|
289
289
|
}
|
|
290
290
|
outlets?: {
|
|
291
291
|
/* File init error result will be stored in Data */
|
|
292
|
-
initError?: () => Data
|
|
292
|
+
initError?: () => Data<string>
|
|
293
293
|
/* File read stats result will be stored in Data */
|
|
294
|
-
readStats?: () => Data
|
|
294
|
+
readStats?: () => Data<{
|
|
295
|
+
path?: string
|
|
296
|
+
size?: number
|
|
297
|
+
isDirectory?: boolean
|
|
298
|
+
mtime?: string
|
|
299
|
+
ctime?: string
|
|
300
|
+
mode?: number
|
|
301
|
+
originalFilepath?: string
|
|
302
|
+
[key: string]: any
|
|
303
|
+
}>
|
|
295
304
|
/* File read content result will be stored in Data */
|
|
296
|
-
readContent?: () => Data
|
|
305
|
+
readContent?: () => Data<any>
|
|
297
306
|
/* File read details result will be stored in Data */
|
|
298
|
-
readDetails?: () => Data
|
|
307
|
+
readDetails?: () => Data<{
|
|
308
|
+
path?: string
|
|
309
|
+
content?: any
|
|
310
|
+
size?: number
|
|
311
|
+
exists?: boolean
|
|
312
|
+
[key: string]: any
|
|
313
|
+
}>
|
|
299
314
|
/* File read error result will be stored in Data */
|
|
300
|
-
readError?: () => Data
|
|
315
|
+
readError?: () => Data<string>
|
|
301
316
|
/* File append content result will be stored in Data */
|
|
302
|
-
appendDetails?: () => Data
|
|
317
|
+
appendDetails?: () => Data<{
|
|
318
|
+
path?: string
|
|
319
|
+
appended?: boolean
|
|
320
|
+
contentLength?: number
|
|
321
|
+
[key: string]: any
|
|
322
|
+
}>
|
|
303
323
|
/* File append error result will be stored in Data */
|
|
304
|
-
appendError?: () => Data
|
|
324
|
+
appendError?: () => Data<string>
|
|
305
325
|
/* File write details result will be stored in Data */
|
|
306
|
-
writeDetails?: () => Data
|
|
326
|
+
writeDetails?: () => Data<{
|
|
327
|
+
path?: string
|
|
328
|
+
written?: boolean
|
|
329
|
+
contentLength?: number
|
|
330
|
+
[key: string]: any
|
|
331
|
+
}>
|
|
307
332
|
/* File write error result will be stored in Data */
|
|
308
|
-
writeError?: () => Data
|
|
333
|
+
writeError?: () => Data<string>
|
|
309
334
|
/* File upload progress result will be stored in Data */
|
|
310
|
-
uploadProgress?: () => Data
|
|
335
|
+
uploadProgress?: () => Data<{
|
|
336
|
+
id?: string
|
|
337
|
+
path?: string
|
|
338
|
+
uri?: string
|
|
339
|
+
hash?: string
|
|
340
|
+
hashType?: string
|
|
341
|
+
headers?: { [key: string]: any }
|
|
342
|
+
fields?: { [key: string]: any }
|
|
343
|
+
method?: string
|
|
344
|
+
progress?: number
|
|
345
|
+
isLastUpdated?: boolean
|
|
346
|
+
[key: string]: any
|
|
347
|
+
}>
|
|
311
348
|
/* File upload complete result will be stored in Data */
|
|
312
|
-
uploadResult?: () => Data
|
|
349
|
+
uploadResult?: () => Data<any>
|
|
313
350
|
/* File download progress result will be stored in Data */
|
|
314
|
-
downloadProgress?: () => Data
|
|
351
|
+
downloadProgress?: () => Data<{
|
|
352
|
+
id?: string
|
|
353
|
+
path?: string
|
|
354
|
+
uri?: string
|
|
355
|
+
hash?: string
|
|
356
|
+
hashType?: string
|
|
357
|
+
headers?: { [key: string]: any }
|
|
358
|
+
fields?: { [key: string]: any }
|
|
359
|
+
method?: string
|
|
360
|
+
progress?: number
|
|
361
|
+
isLastUpdated?: boolean
|
|
362
|
+
[key: string]: any
|
|
363
|
+
}>
|
|
315
364
|
/* File download complete result will be stored in Data */
|
|
316
|
-
downloadResult?: () => Data
|
|
365
|
+
downloadResult?: () => Data<any>
|
|
317
366
|
}
|
|
318
367
|
}
|
|
319
368
|
|
|
@@ -97,9 +97,9 @@ Default property:
|
|
|
97
97
|
}
|
|
98
98
|
outlets?: {
|
|
99
99
|
/* Response for GraphQL request, it will save to Data */
|
|
100
|
-
response?: () => Data
|
|
100
|
+
response?: () => Data<{ [key: string]: any }>
|
|
101
101
|
/* Server response error of GraphQL request, it will save to Data */
|
|
102
|
-
error?: () => Data
|
|
102
|
+
error?: () => Data<string>
|
|
103
103
|
}
|
|
104
104
|
}
|
|
105
105
|
|