@fugood/bricks-project 2.23.0 → 2.23.3

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.
Files changed (93) hide show
  1. package/compile/action-name-map.ts +26 -0
  2. package/compile/index.ts +353 -130
  3. package/package.json +6 -4
  4. package/skills/bricks-project/rules/automations.md +74 -28
  5. package/tools/deploy.ts +39 -10
  6. package/tools/mcp-server.ts +21 -13
  7. package/tools/postinstall.ts +53 -6
  8. package/tools/preview-main.mjs +8 -7
  9. package/tools/preview.ts +1 -1
  10. package/tsconfig.json +16 -0
  11. package/types/bricks/Camera.ts +1 -1
  12. package/types/bricks/Chart.ts +1 -1
  13. package/types/bricks/GenerativeMedia.ts +1 -1
  14. package/types/bricks/Icon.ts +1 -1
  15. package/types/bricks/Image.ts +1 -1
  16. package/types/bricks/Items.ts +1 -1
  17. package/types/bricks/Lottie.ts +1 -1
  18. package/types/bricks/Maps.ts +1 -1
  19. package/types/bricks/QrCode.ts +1 -1
  20. package/types/bricks/Rect.ts +1 -1
  21. package/types/bricks/RichText.ts +1 -1
  22. package/types/bricks/Rive.ts +1 -1
  23. package/types/bricks/Slideshow.ts +1 -1
  24. package/types/bricks/Svg.ts +1 -1
  25. package/types/bricks/Text.ts +1 -1
  26. package/types/bricks/TextInput.ts +1 -1
  27. package/types/bricks/Video.ts +1 -1
  28. package/types/bricks/VideoStreaming.ts +1 -1
  29. package/types/bricks/WebRtcStream.ts +1 -1
  30. package/types/bricks/WebView.ts +1 -1
  31. package/types/canvas.ts +2 -2
  32. package/types/common.ts +4 -4
  33. package/types/generators/AlarmClock.ts +1 -1
  34. package/types/generators/Assistant.ts +1 -1
  35. package/types/generators/BleCentral.ts +1 -1
  36. package/types/generators/BlePeripheral.ts +1 -1
  37. package/types/generators/CanvasMap.ts +1 -1
  38. package/types/generators/CastlesPay.ts +1 -1
  39. package/types/generators/DataBank.ts +1 -1
  40. package/types/generators/File.ts +1 -1
  41. package/types/generators/GraphQl.ts +1 -1
  42. package/types/generators/Http.ts +1 -1
  43. package/types/generators/HttpServer.ts +1 -1
  44. package/types/generators/Information.ts +1 -1
  45. package/types/generators/Intent.ts +1 -1
  46. package/types/generators/Iterator.ts +1 -1
  47. package/types/generators/Keyboard.ts +1 -1
  48. package/types/generators/LlmAnthropicCompat.ts +1 -1
  49. package/types/generators/LlmAppleBuiltin.ts +1 -1
  50. package/types/generators/LlmGgml.ts +1 -1
  51. package/types/generators/LlmOnnx.ts +1 -1
  52. package/types/generators/LlmOpenAiCompat.ts +1 -1
  53. package/types/generators/LlmQualcommAiEngine.ts +1 -1
  54. package/types/generators/Mcp.ts +1 -1
  55. package/types/generators/McpServer.ts +1 -1
  56. package/types/generators/MediaFlow.ts +1 -1
  57. package/types/generators/MqttBroker.ts +1 -1
  58. package/types/generators/MqttClient.ts +1 -1
  59. package/types/generators/Question.ts +1 -1
  60. package/types/generators/RealtimeTranscription.ts +15 -7
  61. package/types/generators/RerankerGgml.ts +1 -1
  62. package/types/generators/SerialPort.ts +1 -1
  63. package/types/generators/SoundPlayer.ts +1 -1
  64. package/types/generators/SoundRecorder.ts +1 -1
  65. package/types/generators/SpeechToTextGgml.ts +6 -1
  66. package/types/generators/SpeechToTextOnnx.ts +1 -1
  67. package/types/generators/SpeechToTextPlatform.ts +1 -1
  68. package/types/generators/SqLite.ts +1 -1
  69. package/types/generators/Step.ts +1 -1
  70. package/types/generators/SttAppleBuiltin.ts +1 -1
  71. package/types/generators/Tcp.ts +1 -1
  72. package/types/generators/TcpServer.ts +1 -1
  73. package/types/generators/TextToSpeechAppleBuiltin.ts +1 -1
  74. package/types/generators/TextToSpeechGgml.ts +1 -1
  75. package/types/generators/TextToSpeechOnnx.ts +1 -1
  76. package/types/generators/TextToSpeechOpenAiLike.ts +1 -1
  77. package/types/generators/ThermalPrinter.ts +1 -1
  78. package/types/generators/Tick.ts +1 -1
  79. package/types/generators/Udp.ts +1 -1
  80. package/types/generators/VadGgml.ts +1 -1
  81. package/types/generators/VadOnnx.ts +201 -0
  82. package/types/generators/VadTraditional.ts +123 -0
  83. package/types/generators/VectorStore.ts +1 -1
  84. package/types/generators/Watchdog.ts +1 -1
  85. package/types/generators/WebCrawler.ts +1 -1
  86. package/types/generators/WebRtc.ts +1 -1
  87. package/types/generators/WebSocket.ts +1 -1
  88. package/types/generators/index.ts +2 -0
  89. package/utils/calc.ts +16 -8
  90. package/utils/event-props.ts +27 -0
  91. package/utils/id.ts +4 -0
  92. package/api/index.ts +0 -1
  93. package/api/instance.ts +0 -213
@@ -76,7 +76,7 @@ Default property:
76
76
  export type BrickSvg = Brick &
77
77
  BrickSvgDef & {
78
78
  templateKey: 'BRICK_SVG'
79
- switches: Array<
79
+ switches?: Array<
80
80
  SwitchDef &
81
81
  BrickSvgDef & {
82
82
  conds?: Array<{
@@ -125,7 +125,7 @@ Default property:
125
125
  export type BrickText = Brick &
126
126
  BrickTextDef & {
127
127
  templateKey: 'BRICK_TEXT'
128
- switches: Array<
128
+ switches?: Array<
129
129
  SwitchDef &
130
130
  BrickTextDef & {
131
131
  conds?: Array<{
@@ -213,7 +213,7 @@ Default property:
213
213
  export type BrickTextInput = Brick &
214
214
  BrickTextInputDef & {
215
215
  templateKey: 'BRICK_TEXT_INPUT'
216
- switches: Array<
216
+ switches?: Array<
217
217
  SwitchDef &
218
218
  BrickTextInputDef & {
219
219
  conds?: Array<{
@@ -152,7 +152,7 @@ Default property:
152
152
  export type BrickVideo = Brick &
153
153
  BrickVideoDef & {
154
154
  templateKey: 'BRICK_VIDEO'
155
- switches: Array<
155
+ switches?: Array<
156
156
  SwitchDef &
157
157
  BrickVideoDef & {
158
158
  conds?: Array<{
@@ -89,7 +89,7 @@ Default property:
89
89
  export type BrickVideoStreaming = Brick &
90
90
  BrickVideoStreamingDef & {
91
91
  templateKey: 'BRICK_VIDEO_STREAMING'
92
- switches: Array<
92
+ switches?: Array<
93
93
  SwitchDef &
94
94
  BrickVideoStreamingDef & {
95
95
  conds?: Array<{
@@ -42,7 +42,7 @@ Default property:
42
42
  export type BrickWebRTCStream = Brick &
43
43
  BrickWebRTCStreamDef & {
44
44
  templateKey: 'BRICK_WEBRTC_STREAM'
45
- switches: Array<
45
+ switches?: Array<
46
46
  SwitchDef &
47
47
  BrickWebRTCStreamDef & {
48
48
  conds?: Array<{
@@ -145,7 +145,7 @@ Default property:
145
145
  export type BrickWebView = Brick &
146
146
  BrickWebViewDef & {
147
147
  templateKey: 'BRICK_WEBVIEW'
148
- switches: Array<
148
+ switches?: Array<
149
149
  SwitchDef &
150
150
  BrickWebViewDef & {
151
151
  conds?: Array<{
package/types/canvas.ts CHANGED
@@ -36,9 +36,9 @@ interface CanvasDef {
36
36
  export type Canvas = CanvasDef & {
37
37
  __typename: 'Canvas'
38
38
  id: string
39
- title: string
39
+ title?: string
40
40
  description?: string
41
- switches: Array<
41
+ switches?: Array<
42
42
  SwitchDef &
43
43
  CanvasDef & {
44
44
  conds?: Array<{
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: string
11
- description: string
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: string
29
- description: string
28
+ title?: string
29
+ description?: string
30
30
  localSyncRunMode?: LocalSyncStrategy
31
31
  property?: {}
32
32
  events: {}
@@ -85,7 +85,7 @@ Default property:
85
85
  export type GeneratorAlarmClock = Generator &
86
86
  GeneratorAlarmClockDef & {
87
87
  templateKey: 'GENERATOR_ALARM_CLOCK'
88
- switches: Array<
88
+ switches?: Array<
89
89
  SwitchDef &
90
90
  GeneratorAlarmClockDef & {
91
91
  conds?: Array<{
@@ -544,7 +544,7 @@ Default property:
544
544
  export type GeneratorAssistant = Generator &
545
545
  GeneratorAssistantDef & {
546
546
  templateKey: 'GENERATOR_ASSISTANT'
547
- switches: Array<
547
+ switches?: Array<
548
548
  SwitchDef &
549
549
  GeneratorAssistantDef & {
550
550
  conds?: Array<{
@@ -208,7 +208,7 @@ Default property:
208
208
  export type GeneratorBleCentral = Generator &
209
209
  GeneratorBleCentralDef & {
210
210
  templateKey: 'GENERATOR_BLE_CENTRAL'
211
- switches: Array<
211
+ switches?: Array<
212
212
  SwitchDef &
213
213
  GeneratorBleCentralDef & {
214
214
  conds?: Array<{
@@ -185,7 +185,7 @@ Default property:
185
185
  export type GeneratorBlePeripheral = Generator &
186
186
  GeneratorBlePeripheralDef & {
187
187
  templateKey: 'GENERATOR_BLE_PERIPHERAL'
188
- switches: Array<
188
+ switches?: Array<
189
189
  SwitchDef &
190
190
  GeneratorBlePeripheralDef & {
191
191
  conds?: Array<{
@@ -51,7 +51,7 @@ Default property:
51
51
  export type GeneratorCanvasMap = Generator &
52
52
  GeneratorCanvasMapDef & {
53
53
  templateKey: 'GENERATOR_CANVAS_MAP'
54
- switches: Array<
54
+ switches?: Array<
55
55
  SwitchDef &
56
56
  GeneratorCanvasMapDef & {
57
57
  conds?: Array<{
@@ -60,7 +60,7 @@ Default property:
60
60
  export type GeneratorCastlesPay = Generator &
61
61
  GeneratorCastlesPayDef & {
62
62
  templateKey: 'GENERATOR_CASTLES_PAY'
63
- switches: Array<
63
+ switches?: Array<
64
64
  SwitchDef &
65
65
  GeneratorCastlesPayDef & {
66
66
  conds?: Array<{
@@ -106,7 +106,7 @@ Default property:
106
106
  export type GeneratorDataBank = Generator &
107
107
  GeneratorDataBankDef & {
108
108
  templateKey: 'GENERATOR_DATA_BANK'
109
- switches: Array<
109
+ switches?: Array<
110
110
  SwitchDef &
111
111
  GeneratorDataBankDef & {
112
112
  conds?: Array<{
@@ -321,7 +321,7 @@ Default property:
321
321
  export type GeneratorFile = Generator &
322
322
  GeneratorFileDef & {
323
323
  templateKey: 'GENERATOR_FILE'
324
- switches: Array<
324
+ switches?: Array<
325
325
  SwitchDef &
326
326
  GeneratorFileDef & {
327
327
  conds?: Array<{
@@ -107,7 +107,7 @@ Default property:
107
107
  export type GeneratorGraphQL = Generator &
108
108
  GeneratorGraphQLDef & {
109
109
  templateKey: 'GENERATOR_GRAPHQL'
110
- switches: Array<
110
+ switches?: Array<
111
111
  SwitchDef &
112
112
  GeneratorGraphQLDef & {
113
113
  conds?: Array<{
@@ -174,7 +174,7 @@ Default property:
174
174
  export type GeneratorHTTP = Generator &
175
175
  GeneratorHTTPDef & {
176
176
  templateKey: 'GENERATOR_HTTP'
177
- switches: Array<
177
+ switches?: Array<
178
178
  SwitchDef &
179
179
  GeneratorHTTPDef & {
180
180
  conds?: Array<{
@@ -149,7 +149,7 @@ Default property:
149
149
  export type GeneratorHTTPServer = Generator &
150
150
  GeneratorHTTPServerDef & {
151
151
  templateKey: 'GENERATOR_HTTP_SERVER'
152
- switches: Array<
152
+ switches?: Array<
153
153
  SwitchDef &
154
154
  GeneratorHTTPServerDef & {
155
155
  conds?: Array<{
@@ -80,7 +80,7 @@ Default property:
80
80
  export type GeneratorInformation = Generator &
81
81
  GeneratorInformationDef & {
82
82
  templateKey: 'GENERATOR_INFORMATION'
83
- switches: Array<
83
+ switches?: Array<
84
84
  SwitchDef &
85
85
  GeneratorInformationDef & {
86
86
  conds?: Array<{
@@ -139,7 +139,7 @@ Default property:
139
139
  export type GeneratorIntent = Generator &
140
140
  GeneratorIntentDef & {
141
141
  templateKey: 'GENERATOR_INTENT'
142
- switches: Array<
142
+ switches?: Array<
143
143
  SwitchDef &
144
144
  GeneratorIntentDef & {
145
145
  conds?: Array<{
@@ -85,7 +85,7 @@ Default property:
85
85
  export type GeneratorIterator = Generator &
86
86
  GeneratorIteratorDef & {
87
87
  templateKey: 'GENERATOR_ITERATOR'
88
- switches: Array<
88
+ switches?: Array<
89
89
  SwitchDef &
90
90
  GeneratorIteratorDef & {
91
91
  conds?: Array<{
@@ -67,7 +67,7 @@ Default property:
67
67
  export type GeneratorKeyboard = Generator &
68
68
  GeneratorKeyboardDef & {
69
69
  templateKey: 'GENERATOR_KEYBOARD'
70
- switches: Array<
70
+ switches?: Array<
71
71
  SwitchDef &
72
72
  GeneratorKeyboardDef & {
73
73
  conds?: Array<{
@@ -171,7 +171,7 @@ Default property:
171
171
  export type GeneratorAnthropicLLM = Generator &
172
172
  GeneratorAnthropicLLMDef & {
173
173
  templateKey: 'GENERATOR_ANTHROPIC_LLM'
174
- switches: Array<
174
+ switches?: Array<
175
175
  SwitchDef &
176
176
  GeneratorAnthropicLLMDef & {
177
177
  conds?: Array<{
@@ -121,7 +121,7 @@ Default property:
121
121
  export type GeneratorAppleLLM = Generator &
122
122
  GeneratorAppleLLMDef & {
123
123
  templateKey: 'GENERATOR_APPLE_LLM'
124
- switches: Array<
124
+ switches?: Array<
125
125
  SwitchDef &
126
126
  GeneratorAppleLLMDef & {
127
127
  conds?: Array<{
@@ -720,7 +720,7 @@ Default property:
720
720
  export type GeneratorLLM = Generator &
721
721
  GeneratorLLMDef & {
722
722
  templateKey: 'GENERATOR_LLM'
723
- switches: Array<
723
+ switches?: Array<
724
724
  SwitchDef &
725
725
  GeneratorLLMDef & {
726
726
  conds?: Array<{
@@ -174,7 +174,7 @@ Default property:
174
174
  export type GeneratorOnnxLLM = Generator &
175
175
  GeneratorOnnxLLMDef & {
176
176
  templateKey: 'GENERATOR_ONNX_LLM'
177
- switches: Array<
177
+ switches?: Array<
178
178
  SwitchDef &
179
179
  GeneratorOnnxLLMDef & {
180
180
  conds?: Array<{
@@ -189,7 +189,7 @@ Default property:
189
189
  export type GeneratorOpenAILLM = Generator &
190
190
  GeneratorOpenAILLMDef & {
191
191
  templateKey: 'GENERATOR_OPENAI_LLM'
192
- switches: Array<
192
+ switches?: Array<
193
193
  SwitchDef &
194
194
  GeneratorOpenAILLMDef & {
195
195
  conds?: Array<{
@@ -191,7 +191,7 @@ Default property:
191
191
  export type GeneratorQnnLlm = Generator &
192
192
  GeneratorQnnLlmDef & {
193
193
  templateKey: 'GENERATOR_QNN_LLM'
194
- switches: Array<
194
+ switches?: Array<
195
195
  SwitchDef &
196
196
  GeneratorQnnLlmDef & {
197
197
  conds?: Array<{
@@ -261,7 +261,7 @@ Default property:
261
261
  export type GeneratorMCP = Generator &
262
262
  GeneratorMCPDef & {
263
263
  templateKey: 'GENERATOR_MCP'
264
- switches: Array<
264
+ switches?: Array<
265
265
  SwitchDef &
266
266
  GeneratorMCPDef & {
267
267
  conds?: Array<{
@@ -224,7 +224,7 @@ Default property:
224
224
  export type GeneratorMCPServer = Generator &
225
225
  GeneratorMCPServerDef & {
226
226
  templateKey: 'GENERATOR_MCP_SERVER'
227
- switches: Array<
227
+ switches?: Array<
228
228
  SwitchDef &
229
229
  GeneratorMCPServerDef & {
230
230
  conds?: Array<{
@@ -119,7 +119,7 @@ Default property:
119
119
  export type GeneratorMediaFlow = Generator &
120
120
  GeneratorMediaFlowDef & {
121
121
  templateKey: 'GENERATOR_MEDIA_FLOW'
122
- switches: Array<
122
+ switches?: Array<
123
123
  SwitchDef &
124
124
  GeneratorMediaFlowDef & {
125
125
  conds?: Array<{
@@ -104,7 +104,7 @@ Default property:
104
104
  export type GeneratorMQTTBroker = Generator &
105
105
  GeneratorMQTTBrokerDef & {
106
106
  templateKey: 'GENERATOR_MQTT_BROKER'
107
- switches: Array<
107
+ switches?: Array<
108
108
  SwitchDef &
109
109
  GeneratorMQTTBrokerDef & {
110
110
  conds?: Array<{
@@ -112,7 +112,7 @@ Default property:
112
112
  export type GeneratorMQTT = Generator &
113
113
  GeneratorMQTTDef & {
114
114
  templateKey: 'GENERATOR_MQTT'
115
- switches: Array<
115
+ switches?: Array<
116
116
  SwitchDef &
117
117
  GeneratorMQTTDef & {
118
118
  conds?: Array<{
@@ -385,7 +385,7 @@ Default property:
385
385
  export type GeneratorQuestion = Generator &
386
386
  GeneratorQuestionDef & {
387
387
  templateKey: 'GENERATOR_QUESTION'
388
- switches: Array<
388
+ switches?: Array<
389
389
  SwitchDef &
390
390
  GeneratorQuestionDef & {
391
391
  conds?: Array<{
@@ -41,10 +41,10 @@ Default property:
41
41
  "audioSliceSec": 30,
42
42
  "audioMinSec": 1,
43
43
  "maxSlicesInMemory": 5,
44
+ "transcribeProcessingPauseMs": 500,
45
+ "initTranscribeAfterMs": 500,
44
46
  "vadStrategy": "use-preset",
45
47
  "vadPreset": "default",
46
- "autoSliceOnSpeechEnd": true,
47
- "autoSliceThreshold": 2,
48
48
  "initialPrompt": "",
49
49
  "promptPreviousSlices": false,
50
50
  "saveAudio": true,
@@ -73,6 +73,10 @@ Default property:
73
73
  audioMinSec?: number | DataLink
74
74
  /* Maximum number of slices to keep in memory */
75
75
  maxSlicesInMemory?: number | DataLink
76
+ /* Transcribe processing interval in milliseconds */
77
+ transcribeProcessingPauseMs?: number | DataLink
78
+ /* Transcribe processing init after pause in milliseconds */
79
+ initTranscribeAfterMs?: number | DataLink
76
80
  /* VAD Strategy */
77
81
  vadStrategy?: 'use-preset' | 'use-generator-options' | DataLink
78
82
  /* VAD preset configuration */
@@ -86,10 +90,6 @@ Default property:
86
90
  | 'meeting'
87
91
  | 'noisy-environment'
88
92
  | DataLink
89
- /* Auto slice on speech end */
90
- autoSliceOnSpeechEnd?: boolean | DataLink
91
- /* Auto slice threshold in seconds */
92
- autoSliceThreshold?: number | DataLink
93
93
  /* Initial prompt for transcription */
94
94
  initialPrompt?: string | DataLink
95
95
  /* Include previous slices in prompt */
@@ -128,6 +128,8 @@ Default property:
128
128
  onStatusChange?: Array<EventAction>
129
129
  /* Event triggered when statistics update */
130
130
  onStatsUpdate?: Array<EventAction>
131
+ /* Event triggered when slice transcription is stabilized */
132
+ onStabilized?: Array<EventAction>
131
133
  /* Event triggered when transcription ends */
132
134
  onEnd?: Array<EventAction>
133
135
  }
@@ -140,12 +142,16 @@ Default property:
140
142
  results?: () => Data
141
143
  /* Current transcription result text */
142
144
  resultText?: () => Data
145
+ /* Last stabilized transcription result segment */
146
+ lastStabilizedSegment?: () => Data
143
147
  /* Current statistics */
144
148
  statistics?: () => Data
145
149
  /* Latest transcribe event */
146
150
  lastTranscribeEvent?: () => Data
147
151
  /* Latest VAD event */
148
152
  lastVadEvent?: () => Data
153
+ /* Stabilized transcription text from completed slices */
154
+ stabilizedText?: () => Data
149
155
  /* Audio output file path (auto-generated when saving audio) */
150
156
  audioOutputPath?: () => Data
151
157
  }
@@ -155,7 +161,7 @@ Default property:
155
161
  export type GeneratorRealtimeTranscription = Generator &
156
162
  GeneratorRealtimeTranscriptionDef & {
157
163
  templateKey: 'GENERATOR_REALTIME_TRANSCRIPTION'
158
- switches: Array<
164
+ switches?: Array<
159
165
  SwitchDef &
160
166
  GeneratorRealtimeTranscriptionDef & {
161
167
  conds?: Array<{
@@ -170,9 +176,11 @@ export type GeneratorRealtimeTranscription = Generator &
170
176
  | 'isTranscribing'
171
177
  | 'results'
172
178
  | 'resultText'
179
+ | 'lastStabilizedSegment'
173
180
  | 'statistics'
174
181
  | 'lastTranscribeEvent'
175
182
  | 'lastVadEvent'
183
+ | 'stabilizedText'
176
184
  | 'audioOutputPath'
177
185
  value: any
178
186
  }
@@ -136,7 +136,7 @@ Default property:
136
136
  export type GeneratorReranker = Generator &
137
137
  GeneratorRerankerDef & {
138
138
  templateKey: 'GENERATOR_RERANKER'
139
- switches: Array<
139
+ switches?: Array<
140
140
  SwitchDef &
141
141
  GeneratorRerankerDef & {
142
142
  conds?: Array<{
@@ -119,7 +119,7 @@ Default property:
119
119
  export type GeneratorSerialPort = Generator &
120
120
  GeneratorSerialPortDef & {
121
121
  templateKey: 'GENERATOR_SERIAL_PORT'
122
- switches: Array<
122
+ switches?: Array<
123
123
  SwitchDef &
124
124
  GeneratorSerialPortDef & {
125
125
  conds?: Array<{
@@ -69,7 +69,7 @@ Default property:
69
69
  export type GeneratorSoundPlayer = Generator &
70
70
  GeneratorSoundPlayerDef & {
71
71
  templateKey: 'GENERATOR_SOUND_PLAYER'
72
- switches: Array<
72
+ switches?: Array<
73
73
  SwitchDef &
74
74
  GeneratorSoundPlayerDef & {
75
75
  conds?: Array<{
@@ -96,7 +96,7 @@ Default property:
96
96
  export type GeneratorSoundRecorder = Generator &
97
97
  GeneratorSoundRecorderDef & {
98
98
  templateKey: 'GENERATOR_SOUND_RECORDER'
99
- switches: Array<
99
+ switches?: Array<
100
100
  SwitchDef &
101
101
  GeneratorSoundRecorderDef & {
102
102
  conds?: Array<{
@@ -147,6 +147,11 @@ export type GeneratorSpeechInferenceActionTranscribeRealtime = ActionWithParams
147
147
  >
148
148
  }
149
149
 
150
+ /* Stop current transcription */
151
+ export type GeneratorSpeechInferenceActionTranscribeStop = Action & {
152
+ __actionName: 'GENERATOR_SPEECH_INFERENCE_TRANSCRIBE_STOP'
153
+ }
154
+
150
155
  /* [Deprecated] Stop transcribing microphone audio source */
151
156
  export type GeneratorSpeechInferenceActionTranscribeRealtimeStop = Action & {
152
157
  __actionName: 'GENERATOR_SPEECH_INFERENCE_TRANSCRIBE_REALTIME_STOP'
@@ -446,7 +451,7 @@ Default property:
446
451
  export type GeneratorSpeechInference = Generator &
447
452
  GeneratorSpeechInferenceDef & {
448
453
  templateKey: 'GENERATOR_SPEECH_INFERENCE'
449
- switches: Array<
454
+ switches?: Array<
450
455
  SwitchDef &
451
456
  GeneratorSpeechInferenceDef & {
452
457
  conds?: Array<{
@@ -210,7 +210,7 @@ Default property:
210
210
  export type GeneratorOnnxSTT = Generator &
211
211
  GeneratorOnnxSTTDef & {
212
212
  templateKey: 'GENERATOR_ONNX_STT'
213
- switches: Array<
213
+ switches?: Array<
214
214
  SwitchDef &
215
215
  GeneratorOnnxSTTDef & {
216
216
  conds?: Array<{
@@ -58,7 +58,7 @@ Default property:
58
58
  export type GeneratorPlatformSTT = Generator &
59
59
  GeneratorPlatformSTTDef & {
60
60
  templateKey: 'GENERATOR_PLATFORM_STT'
61
- switches: Array<
61
+ switches?: Array<
62
62
  SwitchDef &
63
63
  GeneratorPlatformSTTDef & {
64
64
  conds?: Array<{
@@ -130,7 +130,7 @@ Default property:
130
130
  export type GeneratorSqlite = Generator &
131
131
  GeneratorSqliteDef & {
132
132
  templateKey: 'GENERATOR_SQLITE'
133
- switches: Array<
133
+ switches?: Array<
134
134
  SwitchDef &
135
135
  GeneratorSqliteDef & {
136
136
  conds?: Array<{
@@ -84,7 +84,7 @@ Default property:
84
84
  export type GeneratorStep = Generator &
85
85
  GeneratorStepDef & {
86
86
  templateKey: 'GENERATOR_STEP'
87
- switches: Array<
87
+ switches?: Array<
88
88
  SwitchDef &
89
89
  GeneratorStepDef & {
90
90
  conds?: Array<{
@@ -98,7 +98,7 @@ Default property:
98
98
  export type GeneratorAppleSTT = Generator &
99
99
  GeneratorAppleSTTDef & {
100
100
  templateKey: 'GENERATOR_APPLE_STT'
101
- switches: Array<
101
+ switches?: Array<
102
102
  SwitchDef &
103
103
  GeneratorAppleSTTDef & {
104
104
  conds?: Array<{
@@ -103,7 +103,7 @@ Default property:
103
103
  export type GeneratorTCP = Generator &
104
104
  GeneratorTCPDef & {
105
105
  templateKey: 'GENERATOR_TCP'
106
- switches: Array<
106
+ switches?: Array<
107
107
  SwitchDef &
108
108
  GeneratorTCPDef & {
109
109
  conds?: Array<{
@@ -122,7 +122,7 @@ Default property:
122
122
  export type GeneratorTCPServer = Generator &
123
123
  GeneratorTCPServerDef & {
124
124
  templateKey: 'GENERATOR_TCP_SERVER'
125
- switches: Array<
125
+ switches?: Array<
126
126
  SwitchDef &
127
127
  GeneratorTCPServerDef & {
128
128
  conds?: Array<{
@@ -95,7 +95,7 @@ Default property:
95
95
  export type GeneratorAppleTTS = Generator &
96
96
  GeneratorAppleTTSDef & {
97
97
  templateKey: 'GENERATOR_APPLE_TTS'
98
- switches: Array<
98
+ switches?: Array<
99
99
  SwitchDef &
100
100
  GeneratorAppleTTSDef & {
101
101
  conds?: Array<{
@@ -184,7 +184,7 @@ Default property:
184
184
  export type GeneratorGGMLTTS = Generator &
185
185
  GeneratorGGMLTTSDef & {
186
186
  templateKey: 'GENERATOR_GGML_TTS'
187
- switches: Array<
187
+ switches?: Array<
188
188
  SwitchDef &
189
189
  GeneratorGGMLTTSDef & {
190
190
  conds?: Array<{
@@ -152,7 +152,7 @@ Default property:
152
152
  export type GeneratorTTS = Generator &
153
153
  GeneratorTTSDef & {
154
154
  templateKey: 'GENERATOR_TTS'
155
- switches: Array<
155
+ switches?: Array<
156
156
  SwitchDef &
157
157
  GeneratorTTSDef & {
158
158
  conds?: Array<{
@@ -96,7 +96,7 @@ Default property:
96
96
  export type GeneratorOpenAiTTS = Generator &
97
97
  GeneratorOpenAiTTSDef & {
98
98
  templateKey: 'GENERATOR_OPENAI_TTS'
99
- switches: Array<
99
+ switches?: Array<
100
100
  SwitchDef &
101
101
  GeneratorOpenAiTTSDef & {
102
102
  conds?: Array<{