@fugood/bricks-project 2.24.0-beta.17 → 2.24.0-beta.18
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 +5 -0
- package/package.json +3 -3
- package/types/bricks/Camera.ts +32 -5
- package/types/bricks/GenerativeMedia.ts +5 -5
- package/types/bricks/Icon.ts +2 -2
- package/types/bricks/Image.ts +2 -2
- package/types/bricks/Items.ts +6 -6
- package/types/bricks/Lottie.ts +2 -2
- package/types/bricks/Maps.ts +2 -2
- package/types/bricks/QrCode.ts +2 -2
- package/types/bricks/Rect.ts +2 -2
- package/types/bricks/RichText.ts +2 -2
- package/types/bricks/Svg.ts +2 -2
- package/types/bricks/Text.ts +2 -2
- package/types/bricks/TextInput.ts +9 -5
- package/types/bricks/Video.ts +2 -2
- package/types/bricks/VideoStreaming.ts +2 -2
- package/types/bricks/WebView.ts +2 -2
- package/types/generators/AlarmClock.ts +4 -4
- package/types/generators/Assistant.ts +52 -7
- 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 +5 -5
- 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/utils/event-props.ts +89 -88
|
@@ -135,13 +135,13 @@ Default property:
|
|
|
135
135
|
}
|
|
136
136
|
outlets?: {
|
|
137
137
|
/* Server is listening */
|
|
138
|
-
isListening?: () => Data
|
|
138
|
+
isListening?: () => Data<boolean>
|
|
139
139
|
/* Query of request */
|
|
140
|
-
requestQuery?: () => Data
|
|
140
|
+
requestQuery?: () => Data<{ [key: string]: any }>
|
|
141
141
|
/* Body of request */
|
|
142
|
-
requestBody?: () => Data
|
|
142
|
+
requestBody?: () => Data<any>
|
|
143
143
|
/* Remote address of request */
|
|
144
|
-
clientAddress?: () => Data
|
|
144
|
+
clientAddress?: () => Data<string>
|
|
145
145
|
}
|
|
146
146
|
}
|
|
147
147
|
|
|
@@ -131,7 +131,13 @@ Default property:
|
|
|
131
131
|
}
|
|
132
132
|
outlets?: {
|
|
133
133
|
/* Last intent result */
|
|
134
|
-
result?: () => Data
|
|
134
|
+
result?: () => Data<{
|
|
135
|
+
action?: string
|
|
136
|
+
data?: string
|
|
137
|
+
type?: string
|
|
138
|
+
extras?: { [key: string]: any }
|
|
139
|
+
[key: string]: any
|
|
140
|
+
}>
|
|
135
141
|
}
|
|
136
142
|
}
|
|
137
143
|
|
|
@@ -69,15 +69,15 @@ Default property:
|
|
|
69
69
|
}
|
|
70
70
|
outlets?: {
|
|
71
71
|
/* Elements that have been iterated (including current one) */
|
|
72
|
-
iteratedArray?: () => Data
|
|
72
|
+
iteratedArray?: () => Data<Array<any>>
|
|
73
73
|
/* Elements that will be iterated but have not been iterated yet */
|
|
74
|
-
upcomingArray?: () => Data
|
|
74
|
+
upcomingArray?: () => Data<Array<any>>
|
|
75
75
|
/* Current iteration element */
|
|
76
|
-
value?: () => Data
|
|
76
|
+
value?: () => Data<any>
|
|
77
77
|
/* Key of the current iteration element (for number: same as value, for array/string: index, for object: string key) */
|
|
78
|
-
key?: () => Data
|
|
78
|
+
key?: () => Data<any>
|
|
79
79
|
/* Current iteration count (if data is 6 and step is 2, this will return: 1,2,3 in sequence) */
|
|
80
|
-
index?: () => Data
|
|
80
|
+
index?: () => Data<number>
|
|
81
81
|
}
|
|
82
82
|
}
|
|
83
83
|
|
|
@@ -51,15 +51,25 @@ Default property:
|
|
|
51
51
|
}
|
|
52
52
|
outlets?: {
|
|
53
53
|
/* Last key code pressed */
|
|
54
|
-
lastKeyDown?: () => Data
|
|
54
|
+
lastKeyDown?: () => Data<string | number>
|
|
55
55
|
/* Modifier key information on last key press */
|
|
56
|
-
lastKeyDownFlags?: () => Data
|
|
56
|
+
lastKeyDownFlags?: () => Data<{ [key: string]: any }>
|
|
57
57
|
/* Last key code released */
|
|
58
|
-
lastKeyUp?: () => Data
|
|
58
|
+
lastKeyUp?: () => Data<string | number>
|
|
59
59
|
/* Modifier key information on last key release */
|
|
60
|
-
lastKeyUpFlags?: () => Data
|
|
60
|
+
lastKeyUpFlags?: () => Data<{ [key: string]: any }>
|
|
61
61
|
/* Last batch event */
|
|
62
|
-
lastBatchEvents?: () => Data
|
|
62
|
+
lastBatchEvents?: () => Data<
|
|
63
|
+
Array<{
|
|
64
|
+
event?: string
|
|
65
|
+
key?: any
|
|
66
|
+
keyNoMapping?: any
|
|
67
|
+
keyCode?: any
|
|
68
|
+
keyCodeNoMapping?: any
|
|
69
|
+
flags?: { [key: string]: any }
|
|
70
|
+
[key: string]: any
|
|
71
|
+
}>
|
|
72
|
+
>
|
|
63
73
|
}
|
|
64
74
|
}
|
|
65
75
|
|
|
@@ -153,11 +153,17 @@ Default property:
|
|
|
153
153
|
}
|
|
154
154
|
outlets?: {
|
|
155
155
|
/* Evaluating outlet */
|
|
156
|
-
isEvaluating?: () => Data
|
|
156
|
+
isEvaluating?: () => Data<boolean>
|
|
157
157
|
/* Completion result outlet */
|
|
158
|
-
completionResult?: () => Data
|
|
158
|
+
completionResult?: () => Data<string>
|
|
159
159
|
/* Completion details outlet */
|
|
160
|
-
completionDetails?: () => Data
|
|
160
|
+
completionDetails?: () => Data<{
|
|
161
|
+
model?: string
|
|
162
|
+
stop_reason?: string
|
|
163
|
+
usage?: { [key: string]: any }
|
|
164
|
+
content?: Array<any>
|
|
165
|
+
[key: string]: any
|
|
166
|
+
}>
|
|
161
167
|
}
|
|
162
168
|
}
|
|
163
169
|
|
|
@@ -100,13 +100,13 @@ Default property:
|
|
|
100
100
|
}
|
|
101
101
|
outlets?: {
|
|
102
102
|
/* Context state outlet */
|
|
103
|
-
contextState?: () => Data
|
|
103
|
+
contextState?: () => Data<string>
|
|
104
104
|
/* Evaluating outlet */
|
|
105
|
-
isEvaluating?: () => Data
|
|
105
|
+
isEvaluating?: () => Data<boolean>
|
|
106
106
|
/* Completion result outlet */
|
|
107
|
-
completionResult?: () => Data
|
|
107
|
+
completionResult?: () => Data<string>
|
|
108
108
|
/* Last token outlet */
|
|
109
|
-
completionLastToken?: () => Data
|
|
109
|
+
completionLastToken?: () => Data<string>
|
|
110
110
|
}
|
|
111
111
|
}
|
|
112
112
|
|
|
@@ -678,31 +678,81 @@ Default property:
|
|
|
678
678
|
}
|
|
679
679
|
outlets?: {
|
|
680
680
|
/* Context state */
|
|
681
|
-
contextState?: () => Data
|
|
681
|
+
contextState?: () => Data<string>
|
|
682
682
|
/* Context load progress (0-100) */
|
|
683
|
-
contextLoadProgress?: () => Data
|
|
683
|
+
contextLoadProgress?: () => Data<number>
|
|
684
684
|
/* Context details */
|
|
685
|
-
contextDetails?: () => Data
|
|
685
|
+
contextDetails?: () => Data<{
|
|
686
|
+
state?: string
|
|
687
|
+
contextId?: string
|
|
688
|
+
gpu?: string
|
|
689
|
+
reasonNoGPU?: string
|
|
690
|
+
model?: { [key: string]: any }
|
|
691
|
+
isMultimodalEnabled?: boolean
|
|
692
|
+
[key: string]: any
|
|
693
|
+
}>
|
|
686
694
|
/* Session details */
|
|
687
|
-
sessions?: () => Data
|
|
695
|
+
sessions?: () => Data<{
|
|
696
|
+
last_session_id?: string
|
|
697
|
+
sessions?: Array<{
|
|
698
|
+
id?: string
|
|
699
|
+
type?: string
|
|
700
|
+
prompt?: string
|
|
701
|
+
sessionKey?: string
|
|
702
|
+
model_instance_id?: string
|
|
703
|
+
tokens_evaluated?: number
|
|
704
|
+
t?: number
|
|
705
|
+
[key: string]: any
|
|
706
|
+
}>
|
|
707
|
+
last_custom_session_id?: string
|
|
708
|
+
custom_sessions?: Array<{
|
|
709
|
+
id?: string
|
|
710
|
+
type?: string
|
|
711
|
+
prompt?: string
|
|
712
|
+
sessionKey?: string
|
|
713
|
+
model_instance_id?: string
|
|
714
|
+
tokens_evaluated?: number
|
|
715
|
+
t?: number
|
|
716
|
+
[key: string]: any
|
|
717
|
+
}>
|
|
718
|
+
[key: string]: any
|
|
719
|
+
}>
|
|
688
720
|
/* Is evaluating */
|
|
689
|
-
isEvaluating?: () => Data
|
|
721
|
+
isEvaluating?: () => Data<boolean>
|
|
690
722
|
/* Tokenize result */
|
|
691
|
-
tokenizeResult?: () => Data
|
|
723
|
+
tokenizeResult?: () => Data<Array<number>>
|
|
692
724
|
/* Detokenize result */
|
|
693
|
-
detokenizeResult?: () => Data
|
|
725
|
+
detokenizeResult?: () => Data<string>
|
|
694
726
|
/* Last formatted prompt (messages or prompt) */
|
|
695
|
-
completionLastFormattedPrompt?: () => Data
|
|
727
|
+
completionLastFormattedPrompt?: () => Data<string>
|
|
696
728
|
/* Last completion token */
|
|
697
|
-
completionLastToken?: () => Data
|
|
729
|
+
completionLastToken?: () => Data<string>
|
|
698
730
|
/* Completion result */
|
|
699
|
-
completionResult?: () => Data
|
|
731
|
+
completionResult?: () => Data<string>
|
|
700
732
|
/* Reasoning content from model responses */
|
|
701
|
-
completionReasoningContent?: () => Data
|
|
733
|
+
completionReasoningContent?: () => Data<string>
|
|
702
734
|
/* Full context (Prompt + Completion) */
|
|
703
|
-
completionFullContext?: () => Data
|
|
735
|
+
completionFullContext?: () => Data<string>
|
|
704
736
|
/* Inference result details */
|
|
705
|
-
completionResultDetails?: () => Data
|
|
737
|
+
completionResultDetails?: () => Data<{
|
|
738
|
+
prompt?: string
|
|
739
|
+
full_context?: string
|
|
740
|
+
text?: string
|
|
741
|
+
content?: string
|
|
742
|
+
reasoning_content?: string
|
|
743
|
+
token?: string
|
|
744
|
+
tool_calls?: Array<{
|
|
745
|
+
id?: string
|
|
746
|
+
type?: string
|
|
747
|
+
function?: {
|
|
748
|
+
name?: string
|
|
749
|
+
arguments?: string
|
|
750
|
+
[key: string]: any
|
|
751
|
+
}
|
|
752
|
+
[key: string]: any
|
|
753
|
+
}>
|
|
754
|
+
[key: string]: any
|
|
755
|
+
}>
|
|
706
756
|
}
|
|
707
757
|
}
|
|
708
758
|
|
|
@@ -163,15 +163,15 @@ Default property:
|
|
|
163
163
|
}
|
|
164
164
|
outlets?: {
|
|
165
165
|
/* Context state */
|
|
166
|
-
contextState?: () => Data
|
|
166
|
+
contextState?: () => Data<string>
|
|
167
167
|
/* Model load progress (0-1) */
|
|
168
|
-
loadProgress?: () => Data
|
|
168
|
+
loadProgress?: () => Data<number>
|
|
169
169
|
/* Whether the model is evaluating */
|
|
170
|
-
isEvaluating?: () => Data
|
|
170
|
+
isEvaluating?: () => Data<boolean>
|
|
171
171
|
/* Completion result */
|
|
172
|
-
completionResult?: () => Data
|
|
172
|
+
completionResult?: () => Data<string>
|
|
173
173
|
/* Last token */
|
|
174
|
-
completionLastToken?: () => Data
|
|
174
|
+
completionLastToken?: () => Data<string>
|
|
175
175
|
}
|
|
176
176
|
}
|
|
177
177
|
|
|
@@ -159,13 +159,22 @@ Default property:
|
|
|
159
159
|
}
|
|
160
160
|
outlets?: {
|
|
161
161
|
/* Context state */
|
|
162
|
-
contextState?: () => Data
|
|
162
|
+
contextState?: () => Data<string>
|
|
163
163
|
/* Generated output */
|
|
164
|
-
generated?: () => Data
|
|
164
|
+
generated?: () => Data<string>
|
|
165
165
|
/* Full result of generation */
|
|
166
|
-
fullResult?: () => Data
|
|
166
|
+
fullResult?: () => Data<string>
|
|
167
167
|
/* Last function call */
|
|
168
|
-
lastFunctionCall?: () => Data
|
|
168
|
+
lastFunctionCall?: () => Data<{
|
|
169
|
+
id?: string
|
|
170
|
+
type?: string
|
|
171
|
+
function?: {
|
|
172
|
+
name?: string
|
|
173
|
+
arguments?: string
|
|
174
|
+
[key: string]: any
|
|
175
|
+
}
|
|
176
|
+
[key: string]: any
|
|
177
|
+
}>
|
|
169
178
|
}
|
|
170
179
|
}
|
|
171
180
|
|
|
@@ -167,11 +167,27 @@ Default property:
|
|
|
167
167
|
}
|
|
168
168
|
outlets?: {
|
|
169
169
|
/* Evaluating outlet */
|
|
170
|
-
isEvaluating?: () => Data
|
|
170
|
+
isEvaluating?: () => Data<boolean>
|
|
171
171
|
/* Completion result outlet */
|
|
172
|
-
completionResult?: () => Data
|
|
172
|
+
completionResult?: () => Data<string>
|
|
173
173
|
/* Completion details outlet */
|
|
174
|
-
completionDetails?: () => Data
|
|
174
|
+
completionDetails?: () => Data<{
|
|
175
|
+
text?: string
|
|
176
|
+
content?: string
|
|
177
|
+
finish_reason?: string
|
|
178
|
+
usage?: { [key: string]: any }
|
|
179
|
+
tool_calls?: Array<{
|
|
180
|
+
id?: string
|
|
181
|
+
type?: string
|
|
182
|
+
function?: {
|
|
183
|
+
name?: string
|
|
184
|
+
arguments?: string
|
|
185
|
+
[key: string]: any
|
|
186
|
+
}
|
|
187
|
+
[key: string]: any
|
|
188
|
+
}>
|
|
189
|
+
[key: string]: any
|
|
190
|
+
}>
|
|
175
191
|
}
|
|
176
192
|
}
|
|
177
193
|
|
|
@@ -175,15 +175,39 @@ Default property:
|
|
|
175
175
|
}
|
|
176
176
|
outlets?: {
|
|
177
177
|
/* Context state */
|
|
178
|
-
contextState?: () => Data
|
|
178
|
+
contextState?: () => Data<string>
|
|
179
179
|
/* Generation result */
|
|
180
|
-
result?: () => Data
|
|
180
|
+
result?: () => Data<string>
|
|
181
181
|
/* Full context (Prompt + Generation Result) */
|
|
182
|
-
fullContext?: () => Data
|
|
182
|
+
fullContext?: () => Data<string>
|
|
183
183
|
/* Last function call details */
|
|
184
|
-
lastFunctionCall?: () => Data
|
|
184
|
+
lastFunctionCall?: () => Data<{
|
|
185
|
+
id?: string
|
|
186
|
+
type?: string
|
|
187
|
+
function?: {
|
|
188
|
+
name?: string
|
|
189
|
+
arguments?: string
|
|
190
|
+
[key: string]: any
|
|
191
|
+
}
|
|
192
|
+
[key: string]: any
|
|
193
|
+
}>
|
|
185
194
|
/* Completion details */
|
|
186
|
-
completionDetails?: () => Data
|
|
195
|
+
completionDetails?: () => Data<{
|
|
196
|
+
text?: string
|
|
197
|
+
content?: string
|
|
198
|
+
reasoning_content?: string
|
|
199
|
+
tool_calls?: Array<{
|
|
200
|
+
id?: string
|
|
201
|
+
type?: string
|
|
202
|
+
function?: {
|
|
203
|
+
name?: string
|
|
204
|
+
arguments?: string
|
|
205
|
+
[key: string]: any
|
|
206
|
+
}
|
|
207
|
+
[key: string]: any
|
|
208
|
+
}>
|
|
209
|
+
[key: string]: any
|
|
210
|
+
}>
|
|
187
211
|
}
|
|
188
212
|
}
|
|
189
213
|
|