@fugood/bricks-project 2.23.5 → 2.23.7

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 (86) hide show
  1. package/compile/action-name-map.ts +24 -0
  2. package/compile/index.ts +26 -20
  3. package/compile/util.ts +2 -0
  4. package/package.json +2 -2
  5. package/tools/deploy.ts +27 -2
  6. package/tools/preview.ts +1 -1
  7. package/types/bricks/Camera.ts +5 -2
  8. package/types/bricks/Chart.ts +4 -1
  9. package/types/bricks/GenerativeMedia.ts +4 -1
  10. package/types/bricks/Icon.ts +5 -2
  11. package/types/bricks/Image.ts +5 -2
  12. package/types/bricks/Items.ts +5 -2
  13. package/types/bricks/Lottie.ts +4 -1
  14. package/types/bricks/Maps.ts +5 -2
  15. package/types/bricks/QrCode.ts +5 -2
  16. package/types/bricks/Rect.ts +5 -2
  17. package/types/bricks/RichText.ts +5 -2
  18. package/types/bricks/Rive.ts +4 -1
  19. package/types/bricks/Slideshow.ts +5 -2
  20. package/types/bricks/Svg.ts +4 -1
  21. package/types/bricks/Text.ts +5 -2
  22. package/types/bricks/TextInput.ts +5 -2
  23. package/types/bricks/Video.ts +5 -2
  24. package/types/bricks/VideoStreaming.ts +4 -1
  25. package/types/bricks/WebRtcStream.ts +5 -2
  26. package/types/bricks/WebView.ts +4 -1
  27. package/types/generators/AlarmClock.ts +5 -2
  28. package/types/generators/Assistant.ts +6 -3
  29. package/types/generators/BleCentral.ts +5 -2
  30. package/types/generators/BlePeripheral.ts +5 -2
  31. package/types/generators/CanvasMap.ts +4 -1
  32. package/types/generators/CastlesPay.ts +5 -2
  33. package/types/generators/DataBank.ts +5 -2
  34. package/types/generators/File.ts +5 -2
  35. package/types/generators/GraphQl.ts +4 -1
  36. package/types/generators/Http.ts +4 -1
  37. package/types/generators/HttpServer.ts +4 -1
  38. package/types/generators/Information.ts +5 -2
  39. package/types/generators/Intent.ts +4 -1
  40. package/types/generators/Iterator.ts +4 -1
  41. package/types/generators/Keyboard.ts +5 -2
  42. package/types/generators/LlmAnthropicCompat.ts +10 -1
  43. package/types/generators/LlmAppleBuiltin.ts +11 -1
  44. package/types/generators/LlmGgml.ts +53 -1
  45. package/types/generators/LlmMediaTekNeuroPilot.ts +228 -0
  46. package/types/generators/LlmMlx.ts +11 -1
  47. package/types/generators/LlmOnnx.ts +5 -1
  48. package/types/generators/LlmOpenAiCompat.ts +14 -1
  49. package/types/generators/LlmQualcommAiEngine.ts +4 -1
  50. package/types/generators/Mcp.ts +4 -1
  51. package/types/generators/McpServer.ts +4 -1
  52. package/types/generators/MediaFlow.ts +4 -1
  53. package/types/generators/MqttBroker.ts +4 -1
  54. package/types/generators/MqttClient.ts +4 -1
  55. package/types/generators/Question.ts +5 -2
  56. package/types/generators/RealtimeTranscription.ts +16 -1
  57. package/types/generators/RerankerGgml.ts +15 -1
  58. package/types/generators/SerialPort.ts +5 -2
  59. package/types/generators/SoundPlayer.ts +4 -1
  60. package/types/generators/SoundRecorder.ts +16 -2
  61. package/types/generators/SpeechToTextGgml.ts +10 -1
  62. package/types/generators/SpeechToTextOnnx.ts +5 -1
  63. package/types/generators/SpeechToTextPlatform.ts +4 -1
  64. package/types/generators/SqLite.ts +5 -2
  65. package/types/generators/Step.ts +4 -1
  66. package/types/generators/SttAppleBuiltin.ts +11 -1
  67. package/types/generators/Tcp.ts +5 -2
  68. package/types/generators/TcpServer.ts +4 -1
  69. package/types/generators/TextToSpeechAppleBuiltin.ts +11 -1
  70. package/types/generators/TextToSpeechGgml.ts +16 -1
  71. package/types/generators/TextToSpeechOnnx.ts +5 -1
  72. package/types/generators/TextToSpeechOpenAiLike.ts +4 -1
  73. package/types/generators/ThermalPrinter.ts +5 -2
  74. package/types/generators/Tick.ts +5 -2
  75. package/types/generators/Udp.ts +5 -2
  76. package/types/generators/VadGgml.ts +4 -1
  77. package/types/generators/VadOnnx.ts +5 -1
  78. package/types/generators/VadTraditional.ts +5 -1
  79. package/types/generators/VectorStore.ts +5 -2
  80. package/types/generators/Watchdog.ts +5 -2
  81. package/types/generators/WebCrawler.ts +4 -1
  82. package/types/generators/WebRtc.ts +5 -2
  83. package/types/generators/WebSocket.ts +4 -1
  84. package/types/generators/index.ts +1 -0
  85. package/types/subspace.ts +2 -0
  86. package/utils/event-props.ts +20 -0
@@ -1,4 +1,7 @@
1
- /* Auto generated by build script */
1
+ /* Auto generated by build script
2
+ *
3
+ * Realtime speech-to-text transcription using Whisper and VAD with live audio streaming
4
+ */
2
5
  import type { SwitchCondInnerStateCurrentCanvas, SwitchCondData, SwitchDef } from '../switch'
3
6
  import type { Data, DataLink } from '../data'
4
7
  import type {
@@ -31,6 +34,11 @@ export type GeneratorRealtimeTranscriptionActionReset = Action & {
31
34
  __actionName: 'GENERATOR_REALTIME_TRANSCRIPTION_RESET'
32
35
  }
33
36
 
37
+ /* List available microphone devices (Web / Desktop only) */
38
+ export type GeneratorRealtimeTranscriptionActionListDevices = Action & {
39
+ __actionName: 'GENERATOR_REALTIME_TRANSCRIPTION_LIST_DEVICES'
40
+ }
41
+
34
42
  interface GeneratorRealtimeTranscriptionDef {
35
43
  /*
36
44
  Default property:
@@ -57,6 +65,10 @@ Default property:
57
65
  }
58
66
  */
59
67
  property?: {
68
+ /* Specifies the device ID to use for audio input.
69
+ Web / Desktop: device ID string from enumerateDevices
70
+ Android: audio source name - DEFAULT, MIC, VOICE_UPLINK, VOICE_DOWNLINK, VOICE_CALL, CAMCORDER, VOICE_RECOGNITION, VOICE_COMMUNICATION, UNPROCESSED */
71
+ deviceId?: string | DataLink
60
72
  /* STT Generator for Whisper context */
61
73
  sttGeneratorId?: string | DataLink | (() => Generator)
62
74
  /* STT Live Policy. If the policy is `only-in-use`, the STT context will be released when not in use. */
@@ -213,6 +225,8 @@ Default property:
213
225
  stabilizedText?: () => Data<string>
214
226
  /* Audio output file path (auto-generated when saving audio) */
215
227
  audioOutputPath?: () => Data<string>
228
+ /* Available microphone devices (Web / Desktop only) */
229
+ devices?: () => Data<Array<any>>
216
230
  }
217
231
  }
218
232
 
@@ -241,6 +255,7 @@ export type GeneratorRealtimeTranscription = Generator &
241
255
  | 'lastVadEvent'
242
256
  | 'stabilizedText'
243
257
  | 'audioOutputPath'
258
+ | 'devices'
244
259
  value: any
245
260
  }
246
261
  }>
@@ -1,4 +1,18 @@
1
- /* Auto generated by build script */
1
+ /* Auto generated by build script
2
+ *
3
+ * Local rerank based on GGML and [llama.cpp](https://github.com/ggerganov/llama.cpp)
4
+ *
5
+ * ## Notice
6
+ * - The device RAM must be larger than 8GB
7
+ * - iOS: Recommended use M1+ / A17+ chip device. Supported GPU acceleration by Metal.
8
+ * - macOS: Recommended use M1+ chip device. Supported GPU acceleration by Metal.
9
+ * - Android: Recommended use Android 13+ system.
10
+ * - Supported GPU acceleration by OpenCL, currently only for Qualcomm Adreno 700+ GPUs, other GPUs are not supported.
11
+ * - Supported Hexagon NPU for Qualcomm Snapdragon 8 Gen 2+ GPUs.
12
+ * - Linux / Windows
13
+ * - Supported GPU acceleration, you can choose `vulkan` or `cuda` backend in Accel Variant property
14
+ * - Supported Hexagon NPU for Qualcomm Dragonwing IQ9 series+ (Linux)
15
+ */
2
16
  import type { SwitchCondInnerStateCurrentCanvas, SwitchCondData, SwitchDef } from '../switch'
3
17
  import type { Data, DataLink } from '../data'
4
18
  import type {
@@ -1,4 +1,7 @@
1
- /* Auto generated by build script */
1
+ /* Auto generated by build script
2
+ *
3
+ * Serial port communication for USB/UART devices (Android, Desktop only)
4
+ */
2
5
  import type { SwitchCondInnerStateCurrentCanvas, SwitchCondData, SwitchDef } from '../switch'
3
6
  import type { Data, DataLink } from '../data'
4
7
  import type {
@@ -115,7 +118,7 @@ Default property:
115
118
  }
116
119
  }
117
120
 
118
- /* Serial Port Generator (Unsupported iOS) */
121
+ /* Serial port communication for USB/UART devices (Android, Desktop only) */
119
122
  export type GeneratorSerialPort = Generator &
120
123
  GeneratorSerialPortDef & {
121
124
  templateKey: 'GENERATOR_SERIAL_PORT'
@@ -1,4 +1,7 @@
1
- /* Auto generated by build script */
1
+ /* Auto generated by build script
2
+ *
3
+ * Play sound, see supported formats at https://developer.android.com/guide/topics/media/media-formats
4
+ */
2
5
  import type { SwitchCondInnerStateCurrentCanvas, SwitchCondData, SwitchDef } from '../switch'
3
6
  import type { Data, DataLink } from '../data'
4
7
  import type {
@@ -1,4 +1,7 @@
1
- /* Auto generated by build script */
1
+ /* Auto generated by build script
2
+ *
3
+ * Record audio (Microphone)
4
+ */
2
5
  import type { SwitchCondInnerStateCurrentCanvas, SwitchCondData, SwitchDef } from '../switch'
3
6
  import type { Data, DataLink } from '../data'
4
7
  import type {
@@ -31,6 +34,11 @@ export type GeneratorSoundRecorderActionStop = Action & {
31
34
  __actionName: 'GENERATOR_SOUND_RECORDER_STOP'
32
35
  }
33
36
 
37
+ /* List available microphone devices (Web / Desktop only) */
38
+ export type GeneratorSoundRecorderActionListDevices = Action & {
39
+ __actionName: 'GENERATOR_SOUND_RECORDER_LIST_DEVICES'
40
+ }
41
+
34
42
  interface GeneratorSoundRecorderDef {
35
43
  /*
36
44
  Default property:
@@ -51,6 +59,10 @@ Default property:
51
59
  property?: {
52
60
  /* Start record on init (Need user trigger on Web) */
53
61
  init?: boolean | DataLink
62
+ /* Specifies the device ID to use for audio input.
63
+ Web / Desktop: device ID string from enumerateDevices
64
+ Android: audio source name - DEFAULT, MIC, VOICE_UPLINK, VOICE_DOWNLINK, VOICE_CALL, CAMCORDER, VOICE_RECOGNITION, VOICE_COMMUNICATION, UNPROCESSED */
65
+ deviceId?: string | DataLink
54
66
  /* Record sample rate */
55
67
  sampleRate?: number | DataLink
56
68
  /* PCM bit depth */
@@ -89,6 +101,8 @@ Default property:
89
101
  volume?: () => Data<number>
90
102
  /* Error message */
91
103
  errorMessage?: () => Data<string>
104
+ /* Available microphone devices (Web / Desktop only) */
105
+ devices?: () => Data<Array<any>>
92
106
  }
93
107
  }
94
108
 
@@ -106,7 +120,7 @@ export type GeneratorSoundRecorder = Generator &
106
120
  | SwitchCondData
107
121
  | {
108
122
  __typename: 'SwitchCondInnerStateOutlet'
109
- outlet: 'isRecording' | 'recordedPath' | 'volume' | 'errorMessage'
123
+ outlet: 'isRecording' | 'recordedPath' | 'volume' | 'errorMessage' | 'devices'
110
124
  value: any
111
125
  }
112
126
  }>
@@ -1,4 +1,13 @@
1
- /* Auto generated by build script */
1
+ /* Auto generated by build script
2
+ *
3
+ * Local Speech-to-Text (STT) inference based on GGML and [whisper.cpp](https://github.com/ggerganov/whisper.cpp)
4
+ *
5
+ * ## Notice
6
+ * - iOS: Supported GPU acceleration, recommended use M1+ / A17+ chip device
7
+ * - macOS: Supported GPU acceleration, recommended use M1+ chip device
8
+ * - Android: Currently not supported GPU acceleration (Coming soon), recommended use Android 13+ system
9
+ * - Linux / Windows: Supported GPU acceleration, you can choose `vulkan` or `cuda` backend in Accel Variant property
10
+ */
2
11
  import type { SwitchCondInnerStateCurrentCanvas, SwitchCondData, SwitchDef } from '../switch'
3
12
  import type { Data, DataLink } from '../data'
4
13
  import type {
@@ -1,4 +1,8 @@
1
- /* Auto generated by build script */
1
+ /* Auto generated by build script
2
+ *
3
+ * Local STT inference based on [transformers.js](https://huggingface.co/docs/transformers.js)
4
+ * You can use any converted model on HuggingFace.
5
+ */
2
6
  import type { SwitchCondInnerStateCurrentCanvas, SwitchCondData, SwitchDef } from '../switch'
3
7
  import type { Data, DataLink } from '../data'
4
8
  import type {
@@ -1,4 +1,7 @@
1
- /* Auto generated by build script */
1
+ /* Auto generated by build script
2
+ *
3
+ * Speech-to-Text using platform's native capabilities
4
+ */
2
5
  import type { SwitchCondInnerStateCurrentCanvas, SwitchCondData, SwitchDef } from '../switch'
3
6
  import type { Data, DataLink } from '../data'
4
7
  import type {
@@ -1,4 +1,7 @@
1
- /* Auto generated by build script */
1
+ /* Auto generated by build script
2
+ *
3
+ * SQLite database: create tables, query, insert, update, and delete with SQL
4
+ */
2
5
  import type { SwitchCondInnerStateCurrentCanvas, SwitchCondData, SwitchDef } from '../switch'
3
6
  import type { Data, DataLink } from '../data'
4
7
  import type {
@@ -130,7 +133,7 @@ Default property:
130
133
  }
131
134
  }
132
135
 
133
- /* SQLite - General database operations */
136
+ /* SQLite database: create tables, query, insert, update, and delete with SQL */
134
137
  export type GeneratorSqlite = Generator &
135
138
  GeneratorSqliteDef & {
136
139
  templateKey: 'GENERATOR_SQLITE'
@@ -1,4 +1,7 @@
1
- /* Auto generated by build script */
1
+ /* Auto generated by build script
2
+ *
3
+ * Trigger change canvas / outlet / event by setup rules
4
+ */
2
5
  import type { SwitchCondInnerStateCurrentCanvas, SwitchCondData, SwitchDef } from '../switch'
3
6
  import type { Data, DataLink } from '../data'
4
7
  import type {
@@ -1,4 +1,14 @@
1
- /* Auto generated by build script */
1
+ /* Auto generated by build script
2
+ *
3
+ * Speech recognition on iOS 26+ (Not supported on tvOS)
4
+ *
5
+ * ## Features
6
+ * - Native Apple speech recognition
7
+ * - High accuracy transcription
8
+ * - Privacy-focused on-device processing
9
+ * - Supports file and data transcription
10
+ * - Requires iOS 26+ (Not supported on tvOS)
11
+ */
2
12
  import type { SwitchCondInnerStateCurrentCanvas, SwitchCondData, SwitchDef } from '../switch'
3
13
  import type { Data, DataLink } from '../data'
4
14
  import type {
@@ -1,4 +1,7 @@
1
- /* Auto generated by build script */
1
+ /* Auto generated by build script
2
+ *
3
+ * TCP socket client for bidirectional binary/text communication
4
+ */
2
5
  import type { SwitchCondInnerStateCurrentCanvas, SwitchCondData, SwitchDef } from '../switch'
3
6
  import type { Data, DataLink } from '../data'
4
7
  import type {
@@ -99,7 +102,7 @@ Default property:
99
102
  }
100
103
  }
101
104
 
102
- /* TCP */
105
+ /* TCP socket client for bidirectional binary/text communication */
103
106
  export type GeneratorTCP = Generator &
104
107
  GeneratorTCPDef & {
105
108
  templateKey: 'GENERATOR_TCP'
@@ -1,4 +1,7 @@
1
- /* Auto generated by build script */
1
+ /* Auto generated by build script
2
+ *
3
+ * TCP Server
4
+ */
2
5
  import type { SwitchCondInnerStateCurrentCanvas, SwitchCondData, SwitchDef } from '../switch'
3
6
  import type { Data, DataLink } from '../data'
4
7
  import type {
@@ -1,4 +1,14 @@
1
- /* Auto generated by build script */
1
+ /* Auto generated by build script
2
+ *
3
+ * Text-to-speech synthesis using Apple's native speech synthesis
4
+ *
5
+ * ## Features
6
+ * - Native Apple speech synthesis
7
+ * - Natural sounding voices
8
+ * - Privacy-focused on-device processing
9
+ * - Multiple voice options
10
+ * - Requires iOS 13+ (native speech synthesis)
11
+ */
2
12
  import type { SwitchCondInnerStateCurrentCanvas, SwitchCondData, SwitchDef } from '../switch'
3
13
  import type { Data, DataLink } from '../data'
4
14
  import type {
@@ -1,4 +1,19 @@
1
- /* Auto generated by build script */
1
+ /* Auto generated by build script
2
+ *
3
+ * Local Text-to-Speech (TTS) inference based on GGML and [llama.cpp](https://github.com/ggerganov/llama.cpp)
4
+ * You can use any converted model on HuggingFace.
5
+ *
6
+ * ## Notice
7
+ * - The device RAM must be larger than 8GB
8
+ * - iOS: Recommended use M1+ / A17+ chip device. Supported GPU acceleration by Metal.
9
+ * - macOS: Recommended use M1+ chip device. Supported GPU acceleration by Metal.
10
+ * - Android: Recommended use Android 13+ system.
11
+ * - Supported GPU acceleration by OpenCL, currently only for Qualcomm Adreno 700+ GPUs, other GPUs are not supported.
12
+ * - Supported Hexagon NPU for Qualcomm Snapdragon 8 Gen 2+ GPUs.
13
+ * - Linux / Windows
14
+ * - Supported GPU acceleration, you can choose `vulkan` or `cuda` backend in Accel Variant property
15
+ * - Supported Hexagon NPU for Qualcomm Dragonwing IQ9 series+ (Linux)
16
+ */
2
17
  import type { SwitchCondInnerStateCurrentCanvas, SwitchCondData, SwitchDef } from '../switch'
3
18
  import type { Data, DataLink } from '../data'
4
19
  import type {
@@ -1,4 +1,8 @@
1
- /* Auto generated by build script */
1
+ /* Auto generated by build script
2
+ *
3
+ * Local Text-to-Speech (TTS) inference based on ONNX Runtime and [transformers.js](https://huggingface.co/docs/transformers.js)
4
+ * You can use any converted model on HuggingFace.
5
+ */
2
6
  import type { SwitchCondInnerStateCurrentCanvas, SwitchCondData, SwitchDef } from '../switch'
3
7
  import type { Data, DataLink } from '../data'
4
8
  import type {
@@ -1,4 +1,7 @@
1
- /* Auto generated by build script */
1
+ /* Auto generated by build script
2
+ *
3
+ * Generate speech from text using OpenAI's Text-to-Speech API
4
+ */
2
5
  import type { SwitchCondInnerStateCurrentCanvas, SwitchCondData, SwitchDef } from '../switch'
3
6
  import type { Data, DataLink } from '../data'
4
7
  import type {
@@ -1,4 +1,7 @@
1
- /* Auto generated by build script */
1
+ /* Auto generated by build script
2
+ *
3
+ * ESC/POS thermal receipt printer control via Bluetooth or USB
4
+ */
2
5
  import type { SwitchCondInnerStateCurrentCanvas, SwitchCondData, SwitchDef } from '../switch'
3
6
  import type { Data, DataLink } from '../data'
4
7
  import type {
@@ -164,7 +167,7 @@ Default property:
164
167
  }
165
168
  }
166
169
 
167
- /* Thermal Printer */
170
+ /* ESC/POS thermal receipt printer control via Bluetooth or USB */
168
171
  export type GeneratorThermalPrinter = Generator &
169
172
  GeneratorThermalPrinterDef & {
170
173
  templateKey: 'GENERATOR_THERMAL_PRINTER'
@@ -1,4 +1,7 @@
1
- /* Auto generated by build script */
1
+ /* Auto generated by build script
2
+ *
3
+ * Periodic timer that triggers events at a configurable interval
4
+ */
2
5
  import type { SwitchCondInnerStateCurrentCanvas, SwitchCondData, SwitchDef } from '../switch'
3
6
  import type { Data, DataLink } from '../data'
4
7
  import type {
@@ -56,7 +59,7 @@ Default property:
56
59
  }
57
60
  }
58
61
 
59
- /* Execute event in countdown manner */
62
+ /* Periodic timer that triggers events at a configurable interval */
60
63
  export type GeneratorTick = Generator &
61
64
  GeneratorTickDef & {
62
65
  templateKey: 'GENERATOR_TICK'
@@ -1,4 +1,7 @@
1
- /* Auto generated by build script */
1
+ /* Auto generated by build script
2
+ *
3
+ * UDP socket communication
4
+ */
2
5
  import type { SwitchCondInnerStateCurrentCanvas, SwitchCondData, SwitchDef } from '../switch'
3
6
  import type { Data, DataLink } from '../data'
4
7
  import type {
@@ -93,7 +96,7 @@ Default property:
93
96
  }
94
97
  }
95
98
 
96
- /* TCP Server */
99
+ /* UDP socket communication */
97
100
  export type GeneratorUDP = Generator &
98
101
  GeneratorUDPDef & {
99
102
  templateKey: 'GENERATOR_UDP'
@@ -1,4 +1,7 @@
1
- /* Auto generated by build script */
1
+ /* Auto generated by build script
2
+ *
3
+ * Local Voice Activity Detection (VAD) inference based on GGML and [whisper.rn](https://github.com/mybigday/whisper.rn)
4
+ */
2
5
  import type { SwitchCondInnerStateCurrentCanvas, SwitchCondData, SwitchDef } from '../switch'
3
6
  import type { Data, DataLink } from '../data'
4
7
  import type {
@@ -1,4 +1,8 @@
1
- /* Auto generated by build script */
1
+ /* Auto generated by build script
2
+ *
3
+ * Local Voice Activity Detection (VAD) inference based on [transformers.js](https://huggingface.co/docs/transformers.js)
4
+ * You can use any compatible VAD model from HuggingFace (Silero VAD, smart-turn, etc.)
5
+ */
2
6
  import type { SwitchCondInnerStateCurrentCanvas, SwitchCondData, SwitchDef } from '../switch'
3
7
  import type { Data, DataLink } from '../data'
4
8
  import type {
@@ -1,4 +1,8 @@
1
- /* Auto generated by build script */
1
+ /* Auto generated by build script
2
+ *
3
+ * Traditional Voice Activity Detection (VAD) using pitch detection and RMS volume analysis
4
+ * No model download required - pure algorithmic approach
5
+ */
2
6
  import type { SwitchCondInnerStateCurrentCanvas, SwitchCondData, SwitchDef } from '../switch'
3
7
  import type { Data, DataLink } from '../data'
4
8
  import type {
@@ -1,4 +1,7 @@
1
- /* Auto generated by build script */
1
+ /* Auto generated by build script
2
+ *
3
+ * Vector database for semantic similarity search using file embeddings
4
+ */
2
5
  import type { SwitchCondInnerStateCurrentCanvas, SwitchCondData, SwitchDef } from '../switch'
3
6
  import type { Data, DataLink } from '../data'
4
7
  import type {
@@ -230,7 +233,7 @@ Default property:
230
233
  }
231
234
  }
232
235
 
233
- /* Vector Store - File embeddings & search */
236
+ /* Vector database for semantic similarity search using file embeddings */
234
237
  export type GeneratorVectorStore = Generator &
235
238
  GeneratorVectorStoreDef & {
236
239
  templateKey: 'GENERATOR_VECTOR_STORE'
@@ -1,4 +1,7 @@
1
- /* Auto generated by build script */
1
+ /* Auto generated by build script
2
+ *
3
+ * Trigger event with timeout by listening to specified events
4
+ */
2
5
  import type { SwitchCondInnerStateCurrentCanvas, SwitchCondData, SwitchDef } from '../switch'
3
6
  import type { Data, DataLink } from '../data'
4
7
  import type {
@@ -75,7 +78,7 @@ Default property:
75
78
  }
76
79
  }
77
80
 
78
- /* Triger event with timeout by listen specified events */
81
+ /* Trigger event with timeout by listening to specified events */
79
82
  export type GeneratorWatchdog = Generator &
80
83
  GeneratorWatchdogDef & {
81
84
  templateKey: 'GENERATOR_WATCHDOG'
@@ -1,4 +1,7 @@
1
- /* Auto generated by build script */
1
+ /* Auto generated by build script
2
+ *
3
+ * Web crawler to get specific value
4
+ */
2
5
  import type { SwitchCondInnerStateCurrentCanvas, SwitchCondData, SwitchDef } from '../switch'
3
6
  import type { Data, DataLink } from '../data'
4
7
  import type {
@@ -1,4 +1,7 @@
1
- /* Auto generated by build script */
1
+ /* Auto generated by build script
2
+ *
3
+ * WebRTC peer connection for real-time audio/video/data communication
4
+ */
2
5
  import type { SwitchCondInnerStateCurrentCanvas, SwitchCondData, SwitchDef } from '../switch'
3
6
  import type { Data, DataLink } from '../data'
4
7
  import type {
@@ -142,7 +145,7 @@ Default property:
142
145
  }
143
146
  }
144
147
 
145
- /* WebRTC */
148
+ /* WebRTC peer connection for real-time audio/video/data communication */
146
149
  export type GeneratorWebRTC = Generator &
147
150
  GeneratorWebRTCDef & {
148
151
  templateKey: 'GENERATOR_WEBRTC'
@@ -1,4 +1,7 @@
1
- /* Auto generated by build script */
1
+ /* Auto generated by build script
2
+ *
3
+ * WebSocket or Socket.IO Generator
4
+ */
2
5
  import type { SwitchCondInnerStateCurrentCanvas, SwitchCondData, SwitchDef } from '../switch'
3
6
  import type { Data, DataLink } from '../data'
4
7
  import type {
@@ -46,6 +46,7 @@ export * from './TextToSpeechGgml'
46
46
  export * from './RerankerGgml'
47
47
  export * from './LlmMlx'
48
48
  export * from './LlmQualcommAiEngine'
49
+ export * from './LlmMediaTekNeuroPilot'
49
50
  export * from './LlmOpenAiCompat'
50
51
  export * from './TextToSpeechOpenAiLike'
51
52
  export * from './LlmAnthropicCompat'
package/types/subspace.ts CHANGED
@@ -10,6 +10,8 @@ export type Subspace = {
10
10
  title: string
11
11
  description?: string
12
12
  hideShortRef?: boolean
13
+ unused?: boolean
14
+ portal?: 'top' | 'left' | 'bottom' | 'right'
13
15
  // Unexpanded information in Editor
14
16
  unexpanded?: {
15
17
  data?: boolean
@@ -940,6 +940,26 @@ export const templateEventPropsMap = {
940
940
  'GENERATOR_QNN_LLM_ERROR', // type: string
941
941
  ],
942
942
  },
943
+ GENERATOR_NEUROPILOT_LLM: {
944
+ onContextStateChange: [
945
+ 'GENERATOR_NEUROPILOT_LLM_CONTEXT_STATE', // type: string
946
+ ],
947
+ onCompletion: [
948
+ 'GENERATOR_NEUROPILOT_LLM_COMPLETION_TOKEN', // type: string
949
+ 'GENERATOR_NEUROPILOT_LLM_COMPLETION_RESULT', // type: string
950
+ ],
951
+ onCompletionFinished: [
952
+ 'GENERATOR_NEUROPILOT_LLM_RESULT', // type: string
953
+ 'GENERATOR_NEUROPILOT_LLM_FULL_CONTEXT', // type: string
954
+ 'GENERATOR_NEUROPILOT_LLM_RAW_OUTPUT', // type: string
955
+ 'GENERATOR_NEUROPILOT_LLM_EXIT_CODE', // type: number
956
+ 'GENERATOR_NEUROPILOT_LLM_PROMPT_TOKENS_PER_SEC', // type: string
957
+ 'GENERATOR_NEUROPILOT_LLM_GENERATION_TOKENS_PER_SEC', // type: string
958
+ ],
959
+ onError: [
960
+ 'GENERATOR_NEUROPILOT_LLM_ERROR', // type: string
961
+ ],
962
+ },
943
963
  GENERATOR_OPENAI_LLM: {
944
964
  onError: [
945
965
  'GENERATOR_OPENAI_LLM_ERROR', // type: string