@fugood/bricks-project 2.24.0-beta.34 → 2.24.0-beta.36
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 +15 -8
- package/package.json +3 -3
- package/tools/preview.ts +1 -1
- package/types/automation.ts +1 -1
- package/types/bricks/Camera.ts +5 -2
- package/types/bricks/Chart.ts +4 -1
- package/types/bricks/GenerativeMedia.ts +4 -1
- package/types/bricks/Icon.ts +5 -2
- package/types/bricks/Image.ts +5 -2
- package/types/bricks/Items.ts +5 -2
- package/types/bricks/Lottie.ts +5 -2
- package/types/bricks/Maps.ts +5 -2
- package/types/bricks/QrCode.ts +5 -2
- package/types/bricks/Rect.ts +5 -2
- package/types/bricks/RichText.ts +5 -2
- package/types/bricks/Rive.ts +5 -2
- package/types/bricks/Slideshow.ts +5 -2
- package/types/bricks/Svg.ts +4 -1
- package/types/bricks/Text.ts +5 -2
- package/types/bricks/TextInput.ts +5 -2
- package/types/bricks/Video.ts +5 -2
- package/types/bricks/VideoStreaming.ts +4 -1
- package/types/bricks/WebRtcStream.ts +5 -2
- package/types/bricks/WebView.ts +5 -2
- package/types/generators/AlarmClock.ts +5 -2
- package/types/generators/Assistant.ts +5 -2
- package/types/generators/BleCentral.ts +5 -2
- package/types/generators/BlePeripheral.ts +5 -2
- package/types/generators/CanvasMap.ts +4 -1
- package/types/generators/CastlesPay.ts +5 -2
- package/types/generators/DataBank.ts +5 -2
- package/types/generators/File.ts +5 -2
- package/types/generators/GraphQl.ts +5 -2
- package/types/generators/Http.ts +5 -2
- package/types/generators/HttpServer.ts +5 -2
- package/types/generators/Information.ts +5 -2
- package/types/generators/Intent.ts +4 -1
- package/types/generators/Iterator.ts +4 -1
- package/types/generators/Keyboard.ts +5 -2
- package/types/generators/LlmAnthropicCompat.ts +10 -1
- package/types/generators/LlmAppleBuiltin.ts +11 -1
- package/types/generators/LlmGgml.ts +14 -1
- package/types/generators/LlmMediaTekNeuroPilot.ts +4 -1
- package/types/generators/LlmMlx.ts +11 -1
- package/types/generators/LlmOnnx.ts +5 -1
- package/types/generators/LlmOpenAiCompat.ts +14 -1
- package/types/generators/LlmQualcommAiEngine.ts +4 -1
- package/types/generators/Mcp.ts +5 -2
- package/types/generators/McpServer.ts +5 -2
- package/types/generators/MediaFlow.ts +4 -1
- package/types/generators/MqttBroker.ts +5 -2
- package/types/generators/MqttClient.ts +5 -2
- package/types/generators/Question.ts +5 -2
- package/types/generators/RealtimeTranscription.ts +4 -1
- package/types/generators/RerankerGgml.ts +15 -1
- package/types/generators/SerialPort.ts +5 -2
- package/types/generators/SoundPlayer.ts +4 -1
- package/types/generators/SoundRecorder.ts +4 -1
- package/types/generators/SpeechToTextGgml.ts +10 -1
- package/types/generators/SpeechToTextOnnx.ts +5 -1
- package/types/generators/SpeechToTextPlatform.ts +4 -1
- package/types/generators/SqLite.ts +5 -2
- package/types/generators/Step.ts +4 -1
- package/types/generators/SttAppleBuiltin.ts +11 -1
- package/types/generators/Tcp.ts +5 -2
- package/types/generators/TcpServer.ts +5 -2
- package/types/generators/TextToSpeechAppleBuiltin.ts +11 -1
- package/types/generators/TextToSpeechGgml.ts +16 -1
- package/types/generators/TextToSpeechOnnx.ts +5 -1
- package/types/generators/TextToSpeechOpenAiLike.ts +4 -1
- package/types/generators/ThermalPrinter.ts +5 -2
- package/types/generators/Tick.ts +5 -2
- package/types/generators/Udp.ts +5 -2
- package/types/generators/VadGgml.ts +4 -1
- package/types/generators/VadOnnx.ts +5 -1
- package/types/generators/VadTraditional.ts +5 -1
- package/types/generators/VectorStore.ts +5 -2
- package/types/generators/Watchdog.ts +5 -2
- package/types/generators/WebCrawler.ts +5 -2
- package/types/generators/WebRtc.ts +5 -2
- package/types/generators/WebSocket.ts +4 -1
- package/types/generators/TextToSpeechApple.ts +0 -113
- package/types/generators/TtsAppleBuiltin.ts +0 -105
|
@@ -1,4 +1,7 @@
|
|
|
1
|
-
/* Auto generated by build script
|
|
1
|
+
/* Auto generated by build script
|
|
2
|
+
*
|
|
3
|
+
* Listen to keyboard and remote control key events (keyDown, keyUp)
|
|
4
|
+
*/
|
|
2
5
|
import type { SwitchCondInnerStateCurrentCanvas, SwitchCondData, SwitchDef } from '../switch'
|
|
3
6
|
import type { Data, DataLink } from '../data'
|
|
4
7
|
import type {
|
|
@@ -73,7 +76,7 @@ Default property:
|
|
|
73
76
|
}
|
|
74
77
|
}
|
|
75
78
|
|
|
76
|
-
/*
|
|
79
|
+
/* Listen to keyboard and remote control key events (keyDown, keyUp) */
|
|
77
80
|
export type GeneratorKeyboard = Generator &
|
|
78
81
|
GeneratorKeyboardDef & {
|
|
79
82
|
templateKey: 'GENERATOR_KEYBOARD'
|
|
@@ -1,4 +1,13 @@
|
|
|
1
|
-
/* Auto generated by build script
|
|
1
|
+
/* Auto generated by build script
|
|
2
|
+
*
|
|
3
|
+
* LLM inference using Anthropic-compatible API endpoints
|
|
4
|
+
*
|
|
5
|
+
* ## Features
|
|
6
|
+
* - Compatible with Anthropic API format
|
|
7
|
+
* - Supports function calling (tools)
|
|
8
|
+
* - Streaming responses
|
|
9
|
+
* - Custom API endpoints (Default to https://api.anthropic.com/v1/messages)
|
|
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,14 @@
|
|
|
1
|
-
/* Auto generated by build script
|
|
1
|
+
/* Auto generated by build script
|
|
2
|
+
*
|
|
3
|
+
* LLM inference using Apple Intelligence on iOS/tvOS 26+
|
|
4
|
+
*
|
|
5
|
+
* ## Features
|
|
6
|
+
* - Native Apple Intelligence integration
|
|
7
|
+
* - No model download required
|
|
8
|
+
* - Privacy-focused on-device processing
|
|
9
|
+
* - Optimized for Apple Silicon
|
|
10
|
+
* - Requires iOS 26+ or tvOS 26+
|
|
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,17 @@
|
|
|
1
|
-
/* Auto generated by build script
|
|
1
|
+
/* Auto generated by build script
|
|
2
|
+
*
|
|
3
|
+
* Local Large Language Model (LLM) inference 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 1+ GPUs.
|
|
12
|
+
* - Linux / Windows [@nextline - Supported GPU acceleration, you can choose `vulkan` or `cuda` backend in Accel Variant property
|
|
13
|
+
* - Supported Hexagon NPU for Qualcomm Dragonwing IQ9 series+ (Linux)
|
|
14
|
+
*/
|
|
2
15
|
import type { SwitchCondInnerStateCurrentCanvas, SwitchCondData, SwitchDef } from '../switch'
|
|
3
16
|
import type { Data, DataLink } from '../data'
|
|
4
17
|
import type {
|
|
@@ -1,4 +1,7 @@
|
|
|
1
|
-
/* Auto generated by build script
|
|
1
|
+
/* Auto generated by build script
|
|
2
|
+
*
|
|
3
|
+
* On-device LLM inference using MediaTek NeuroPilot native SDK integration on Android
|
|
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
|
+
* On-device LLM inference using Apple MLX framework on iOS/tvOS
|
|
4
|
+
*
|
|
5
|
+
* ## Features
|
|
6
|
+
* - Powered by MLX (Apple's ML framework optimized for Apple Silicon)
|
|
7
|
+
* - Download models directly from HuggingFace Hub
|
|
8
|
+
* - Streaming token generation
|
|
9
|
+
* - Supports LLM and VLM (Vision Language Models)
|
|
10
|
+
* - Requires iOS 17+ or tvOS 17+
|
|
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,8 @@
|
|
|
1
|
-
/* Auto generated by build script
|
|
1
|
+
/* Auto generated by build script
|
|
2
|
+
*
|
|
3
|
+
* Local LLM 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,17 @@
|
|
|
1
|
-
/* Auto generated by build script
|
|
1
|
+
/* Auto generated by build script
|
|
2
|
+
*
|
|
3
|
+
* LLM inference using OpenAI-compatible API endpoints
|
|
4
|
+
*
|
|
5
|
+
* ## Features
|
|
6
|
+
* - Compatible with OpenAI API format
|
|
7
|
+
* - Supports function calling
|
|
8
|
+
* - Streaming responses
|
|
9
|
+
* - Custom API endpoints, like
|
|
10
|
+
* - OpenAI API: https://platform.openai.com/docs/guides/text?api-mode=chat
|
|
11
|
+
* - Anthropic API: https://docs.anthropic.com/en/api/openai-sdk
|
|
12
|
+
* - Gemini API: https://ai.google.dev/gemini-api/docs/openai
|
|
13
|
+
* - llama.cpp server: https://github.com/ggml-org/llama.cpp/tree/master/tools/server
|
|
14
|
+
*/
|
|
2
15
|
import type { SwitchCondInnerStateCurrentCanvas, SwitchCondData, SwitchDef } from '../switch'
|
|
3
16
|
import type { Data, DataLink } from '../data'
|
|
4
17
|
import type {
|
|
@@ -1,4 +1,7 @@
|
|
|
1
|
-
/* Auto generated by build script
|
|
1
|
+
/* Auto generated by build script
|
|
2
|
+
*
|
|
3
|
+
* Local LLM inference using Qualcomm AI Engine
|
|
4
|
+
*/
|
|
2
5
|
import type { SwitchCondInnerStateCurrentCanvas, SwitchCondData, SwitchDef } from '../switch'
|
|
3
6
|
import type { Data, DataLink } from '../data'
|
|
4
7
|
import type {
|
package/types/generators/Mcp.ts
CHANGED
|
@@ -1,4 +1,7 @@
|
|
|
1
|
-
/* Auto generated by build script
|
|
1
|
+
/* Auto generated by build script
|
|
2
|
+
*
|
|
3
|
+
* MCP client connecting to tool servers via Streamable HTTP, SSE, or direct-link to in-app MCP Server generator. Provides tools, resources, and prompts for Assistant
|
|
4
|
+
*/
|
|
2
5
|
import type { SwitchCondInnerStateCurrentCanvas, SwitchCondData, SwitchDef } from '../switch'
|
|
3
6
|
import type { Data, DataLink } from '../data'
|
|
4
7
|
import type {
|
|
@@ -572,7 +575,7 @@ Default property:
|
|
|
572
575
|
}
|
|
573
576
|
}
|
|
574
577
|
|
|
575
|
-
/*
|
|
578
|
+
/* MCP client connecting to tool servers via Streamable HTTP, SSE, or direct-link to in-app MCP Server generator. Provides tools, resources, and prompts for Assistant */
|
|
576
579
|
export type GeneratorMCP = Generator &
|
|
577
580
|
GeneratorMCPDef & {
|
|
578
581
|
templateKey: 'GENERATOR_MCP'
|
|
@@ -1,4 +1,7 @@
|
|
|
1
|
-
/* Auto generated by build script
|
|
1
|
+
/* Auto generated by build script
|
|
2
|
+
*
|
|
3
|
+
* MCP server exposing tools, resources (static/detect-data-change/script), and prompts. Supports HTTP listening with Bearer auth or direct-link from in-app MCP client
|
|
4
|
+
*/
|
|
2
5
|
import type { SwitchCondInnerStateCurrentCanvas, SwitchCondData, SwitchDef } from '../switch'
|
|
3
6
|
import type { Data, DataLink } from '../data'
|
|
4
7
|
import type {
|
|
@@ -247,7 +250,7 @@ Default property:
|
|
|
247
250
|
}
|
|
248
251
|
}
|
|
249
252
|
|
|
250
|
-
/*
|
|
253
|
+
/* MCP server exposing tools, resources (static/detect-data-change/script), and prompts. Supports HTTP listening with Bearer auth or direct-link from in-app MCP client */
|
|
251
254
|
export type GeneratorMCPServer = Generator &
|
|
252
255
|
GeneratorMCPServerDef & {
|
|
253
256
|
templateKey: 'GENERATOR_MCP_SERVER'
|
|
@@ -1,4 +1,7 @@
|
|
|
1
|
-
/* Auto generated by build script
|
|
1
|
+
/* Auto generated by build script
|
|
2
|
+
*
|
|
3
|
+
* Fetch box's file list from Media Flow
|
|
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
|
+
* Embedded MQTT broker server with client authentication, publish/subscribe messaging, keepalive, and retry support
|
|
4
|
+
*/
|
|
2
5
|
import type { SwitchCondInnerStateCurrentCanvas, SwitchCondData, SwitchDef } from '../switch'
|
|
3
6
|
import type { Data, DataLink } from '../data'
|
|
4
7
|
import type {
|
|
@@ -106,7 +109,7 @@ Default property:
|
|
|
106
109
|
}
|
|
107
110
|
}
|
|
108
111
|
|
|
109
|
-
/* MQTT
|
|
112
|
+
/* Embedded MQTT broker server with client authentication, publish/subscribe messaging, keepalive, and retry support */
|
|
110
113
|
export type GeneratorMQTTBroker = Generator &
|
|
111
114
|
GeneratorMQTTBrokerDef & {
|
|
112
115
|
templateKey: 'GENERATOR_MQTT_BROKER'
|
|
@@ -1,4 +1,7 @@
|
|
|
1
|
-
/* Auto generated by build script
|
|
1
|
+
/* Auto generated by build script
|
|
2
|
+
*
|
|
3
|
+
* MQTT client with topic subscribe/publish, QoS levels (0/1/2), auto-reconnect, and auth support. Connects via mqtt:// or wss://
|
|
4
|
+
*/
|
|
2
5
|
import type { SwitchCondInnerStateCurrentCanvas, SwitchCondData, SwitchDef } from '../switch'
|
|
3
6
|
import type { Data, DataLink } from '../data'
|
|
4
7
|
import type {
|
|
@@ -114,7 +117,7 @@ Default property:
|
|
|
114
117
|
}
|
|
115
118
|
}
|
|
116
119
|
|
|
117
|
-
/* MQTT
|
|
120
|
+
/* MQTT client with topic subscribe/publish, QoS levels (0/1/2), auto-reconnect, and auth support. Connects via mqtt:// or wss:// */
|
|
118
121
|
export type GeneratorMQTT = Generator &
|
|
119
122
|
GeneratorMQTTDef & {
|
|
120
123
|
templateKey: 'GENERATOR_MQTT'
|
|
@@ -1,4 +1,7 @@
|
|
|
1
|
-
/* Auto generated by build script
|
|
1
|
+
/* Auto generated by build script
|
|
2
|
+
*
|
|
3
|
+
* Prompt user for input via dialog and return the response
|
|
4
|
+
*/
|
|
2
5
|
import type { SwitchCondInnerStateCurrentCanvas, SwitchCondData, SwitchDef } from '../switch'
|
|
3
6
|
import type { Data, DataLink } from '../data'
|
|
4
7
|
import type {
|
|
@@ -381,7 +384,7 @@ Default property:
|
|
|
381
384
|
}
|
|
382
385
|
}
|
|
383
386
|
|
|
384
|
-
/*
|
|
387
|
+
/* Prompt user for input via dialog and return the response */
|
|
385
388
|
export type GeneratorQuestion = Generator &
|
|
386
389
|
GeneratorQuestionDef & {
|
|
387
390
|
templateKey: 'GENERATOR_QUESTION'
|
|
@@ -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 {
|
|
@@ -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
|
|
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 {
|
|
@@ -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
|
|
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'
|
package/types/generators/Step.ts
CHANGED
|
@@ -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 {
|
package/types/generators/Tcp.ts
CHANGED
|
@@ -1,4 +1,7 @@
|
|
|
1
|
-
/* Auto generated by build script
|
|
1
|
+
/* Auto generated by build script
|
|
2
|
+
*
|
|
3
|
+
* TCP socket client with data modes (CRLF/LF/raw), encodings (base64/utf8/ascii), TLS, and keepalive support
|
|
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 with data modes (CRLF/LF/raw), encodings (base64/utf8/ascii), TLS, and keepalive support */
|
|
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 with multi-client support, data modes (CRLF/LF/raw), encodings (base64/utf8/ascii), concurrent connection limit, and TLS
|
|
4
|
+
*/
|
|
2
5
|
import type { SwitchCondInnerStateCurrentCanvas, SwitchCondData, SwitchDef } from '../switch'
|
|
3
6
|
import type { Data, DataLink } from '../data'
|
|
4
7
|
import type {
|
|
@@ -118,7 +121,7 @@ Default property:
|
|
|
118
121
|
}
|
|
119
122
|
}
|
|
120
123
|
|
|
121
|
-
/* TCP
|
|
124
|
+
/* TCP server with multi-client support, data modes (CRLF/LF/raw), encodings (base64/utf8/ascii), concurrent connection limit, and TLS */
|
|
122
125
|
export type GeneratorTCPServer = Generator &
|
|
123
126
|
GeneratorTCPServerDef & {
|
|
124
127
|
templateKey: 'GENERATOR_TCP_SERVER'
|
|
@@ -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
|
-
/*
|
|
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'
|
package/types/generators/Tick.ts
CHANGED
|
@@ -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
|
-
/*
|
|
62
|
+
/* Periodic timer that triggers events at a configurable interval */
|
|
60
63
|
export type GeneratorTick = Generator &
|
|
61
64
|
GeneratorTickDef & {
|
|
62
65
|
templateKey: 'GENERATOR_TICK'
|
package/types/generators/Udp.ts
CHANGED
|
@@ -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
|
-
/*
|
|
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 search. Supports GGML (on-device GGUF models) and OpenAI Compatible API (OpenAI/ollama/llama.cpp) as embedding sources
|
|
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
|
|
236
|
+
/* Vector database for semantic search. Supports GGML (on-device GGUF models) and OpenAI Compatible API (OpenAI/ollama/llama.cpp) as embedding sources */
|
|
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
|
-
/*
|
|
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
|
+
* Extract web content via CSS selectors. Supports WebView method (iOS/Android, renders JS) and HTTP method (all platforms, direct request)
|
|
4
|
+
*/
|
|
2
5
|
import type { SwitchCondInnerStateCurrentCanvas, SwitchCondData, SwitchDef } from '../switch'
|
|
3
6
|
import type { Data, DataLink } from '../data'
|
|
4
7
|
import type {
|
|
@@ -76,7 +79,7 @@ Default property:
|
|
|
76
79
|
}
|
|
77
80
|
}
|
|
78
81
|
|
|
79
|
-
/*
|
|
82
|
+
/* Extract web content via CSS selectors. Supports WebView method (iOS/Android, renders JS) and HTTP method (all platforms, direct request) */
|
|
80
83
|
export type GeneratorWebCrawler = Generator &
|
|
81
84
|
GeneratorWebCrawlerDef & {
|
|
82
85
|
templateKey: 'GENERATOR_WEB_CRAWLER'
|