@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.
Files changed (83) hide show
  1. package/compile/index.ts +15 -8
  2. package/package.json +3 -3
  3. package/tools/preview.ts +1 -1
  4. package/types/automation.ts +1 -1
  5. package/types/bricks/Camera.ts +5 -2
  6. package/types/bricks/Chart.ts +4 -1
  7. package/types/bricks/GenerativeMedia.ts +4 -1
  8. package/types/bricks/Icon.ts +5 -2
  9. package/types/bricks/Image.ts +5 -2
  10. package/types/bricks/Items.ts +5 -2
  11. package/types/bricks/Lottie.ts +5 -2
  12. package/types/bricks/Maps.ts +5 -2
  13. package/types/bricks/QrCode.ts +5 -2
  14. package/types/bricks/Rect.ts +5 -2
  15. package/types/bricks/RichText.ts +5 -2
  16. package/types/bricks/Rive.ts +5 -2
  17. package/types/bricks/Slideshow.ts +5 -2
  18. package/types/bricks/Svg.ts +4 -1
  19. package/types/bricks/Text.ts +5 -2
  20. package/types/bricks/TextInput.ts +5 -2
  21. package/types/bricks/Video.ts +5 -2
  22. package/types/bricks/VideoStreaming.ts +4 -1
  23. package/types/bricks/WebRtcStream.ts +5 -2
  24. package/types/bricks/WebView.ts +5 -2
  25. package/types/generators/AlarmClock.ts +5 -2
  26. package/types/generators/Assistant.ts +5 -2
  27. package/types/generators/BleCentral.ts +5 -2
  28. package/types/generators/BlePeripheral.ts +5 -2
  29. package/types/generators/CanvasMap.ts +4 -1
  30. package/types/generators/CastlesPay.ts +5 -2
  31. package/types/generators/DataBank.ts +5 -2
  32. package/types/generators/File.ts +5 -2
  33. package/types/generators/GraphQl.ts +5 -2
  34. package/types/generators/Http.ts +5 -2
  35. package/types/generators/HttpServer.ts +5 -2
  36. package/types/generators/Information.ts +5 -2
  37. package/types/generators/Intent.ts +4 -1
  38. package/types/generators/Iterator.ts +4 -1
  39. package/types/generators/Keyboard.ts +5 -2
  40. package/types/generators/LlmAnthropicCompat.ts +10 -1
  41. package/types/generators/LlmAppleBuiltin.ts +11 -1
  42. package/types/generators/LlmGgml.ts +14 -1
  43. package/types/generators/LlmMediaTekNeuroPilot.ts +4 -1
  44. package/types/generators/LlmMlx.ts +11 -1
  45. package/types/generators/LlmOnnx.ts +5 -1
  46. package/types/generators/LlmOpenAiCompat.ts +14 -1
  47. package/types/generators/LlmQualcommAiEngine.ts +4 -1
  48. package/types/generators/Mcp.ts +5 -2
  49. package/types/generators/McpServer.ts +5 -2
  50. package/types/generators/MediaFlow.ts +4 -1
  51. package/types/generators/MqttBroker.ts +5 -2
  52. package/types/generators/MqttClient.ts +5 -2
  53. package/types/generators/Question.ts +5 -2
  54. package/types/generators/RealtimeTranscription.ts +4 -1
  55. package/types/generators/RerankerGgml.ts +15 -1
  56. package/types/generators/SerialPort.ts +5 -2
  57. package/types/generators/SoundPlayer.ts +4 -1
  58. package/types/generators/SoundRecorder.ts +4 -1
  59. package/types/generators/SpeechToTextGgml.ts +10 -1
  60. package/types/generators/SpeechToTextOnnx.ts +5 -1
  61. package/types/generators/SpeechToTextPlatform.ts +4 -1
  62. package/types/generators/SqLite.ts +5 -2
  63. package/types/generators/Step.ts +4 -1
  64. package/types/generators/SttAppleBuiltin.ts +11 -1
  65. package/types/generators/Tcp.ts +5 -2
  66. package/types/generators/TcpServer.ts +5 -2
  67. package/types/generators/TextToSpeechAppleBuiltin.ts +11 -1
  68. package/types/generators/TextToSpeechGgml.ts +16 -1
  69. package/types/generators/TextToSpeechOnnx.ts +5 -1
  70. package/types/generators/TextToSpeechOpenAiLike.ts +4 -1
  71. package/types/generators/ThermalPrinter.ts +5 -2
  72. package/types/generators/Tick.ts +5 -2
  73. package/types/generators/Udp.ts +5 -2
  74. package/types/generators/VadGgml.ts +4 -1
  75. package/types/generators/VadOnnx.ts +5 -1
  76. package/types/generators/VadTraditional.ts +5 -1
  77. package/types/generators/VectorStore.ts +5 -2
  78. package/types/generators/Watchdog.ts +5 -2
  79. package/types/generators/WebCrawler.ts +5 -2
  80. package/types/generators/WebRtc.ts +5 -2
  81. package/types/generators/WebSocket.ts +4 -1
  82. package/types/generators/TextToSpeechApple.ts +0 -113
  83. package/types/generators/TtsAppleBuiltin.ts +0 -105
package/compile/index.ts CHANGED
@@ -412,14 +412,21 @@ const compileTestCase = (testCase: TestCase) => ({
412
412
  pre_delay: testCase.pre_delay,
413
413
  post_delay: testCase.post_delay,
414
414
  post_delay_rule: testCase.post_delay_rule,
415
- jump_cond: testCase.jump_cond.map((cond) => ({
416
- type: cond.type,
417
- status: cond.status,
418
- variable: cond.variable,
419
- operator: cond.operator,
420
- value: cond.value,
421
- jump_to: cond.jump_to,
422
- })),
415
+ jump_cond: testCase.jump_cond.map((cond) => {
416
+ if (cond.jump_to == null) {
417
+ console.warn(
418
+ `[Warning] jump_cond is missing jump_to in test case "${testCase.name}" (${testCase.id})`,
419
+ )
420
+ }
421
+ return {
422
+ type: cond.type,
423
+ status: cond.status,
424
+ variable: cond.variable,
425
+ operator: cond.operator,
426
+ value: cond.value,
427
+ jump_to: cond.jump_to,
428
+ }
429
+ }),
423
430
  })
424
431
 
425
432
  /**
package/package.json CHANGED
@@ -1,13 +1,13 @@
1
1
  {
2
2
  "name": "@fugood/bricks-project",
3
- "version": "2.24.0-beta.34",
3
+ "version": "2.24.0-beta.36",
4
4
  "main": "index.ts",
5
5
  "scripts": {
6
6
  "typecheck": "tsc --noEmit",
7
7
  "build": "bun scripts/build.js"
8
8
  },
9
9
  "dependencies": {
10
- "@fugood/bricks-cli": "^2.24.0-beta.34",
10
+ "@fugood/bricks-cli": "^2.24.0-beta.35",
11
11
  "@huggingface/gguf": "^0.3.2",
12
12
  "@iarna/toml": "^3.0.0",
13
13
  "@modelcontextprotocol/sdk": "^1.15.0",
@@ -24,5 +24,5 @@
24
24
  "peerDependencies": {
25
25
  "oxfmt": "^0.36.0"
26
26
  },
27
- "gitHead": "b7a1e18f524dedfbaa1e4f0fbccae15a076797bb"
27
+ "gitHead": "1146a2d19b4f6efca4055e6c788f5ad50658cc40"
28
28
  }
package/tools/preview.ts CHANGED
@@ -66,7 +66,7 @@ const useTypecheck = !values['skip-typecheck']
66
66
 
67
67
  const compile = async () => {
68
68
  if (useTypecheck) await $`bun typecheck`
69
- await $`bun compile`
69
+ await $`bun compile.ts`
70
70
  }
71
71
 
72
72
  await compile()
@@ -45,7 +45,7 @@ export interface TestCaseJumpCondition {
45
45
  operator?: JumpConditionOperator
46
46
  value?: any
47
47
  // The test case to jump to (getter function for dynamic IDs or string for static IDs)
48
- jump_to: string | (() => TestCase)
48
+ jump_to?: string | (() => TestCase)
49
49
  }
50
50
 
51
51
  /**
@@ -1,4 +1,7 @@
1
- /* Auto generated by build script */
1
+ /* Auto generated by build script
2
+ *
3
+ * Camera view with photo capture and barcode scanning capabilities
4
+ */
2
5
  import type { SwitchCondInnerStateCurrentCanvas, SwitchCondData, SwitchDef } from '../switch'
3
6
  import type { Data, DataLink } from '../data'
4
7
  import type { Animation, AnimationBasicEvents } from '../animation'
@@ -215,7 +218,7 @@ Default property:
215
218
  }
216
219
  }
217
220
 
218
- /* Camera view brick */
221
+ /* Camera view with photo capture and barcode scanning capabilities */
219
222
  export type BrickCamera = Brick &
220
223
  BrickCameraDef & {
221
224
  templateKey: 'BRICK_CAMERA'
@@ -1,4 +1,7 @@
1
- /* Auto generated by build script */
1
+ /* Auto generated by build script
2
+ *
3
+ * Chart brick, based on [Apache ECharts](https://echarts.apache.org/en/index.html).
4
+ */
2
5
  import type { SwitchCondInnerStateCurrentCanvas, SwitchCondData, SwitchDef } from '../switch'
3
6
  import type { Data, DataLink } from '../data'
4
7
  import type { Animation, AnimationBasicEvents } from '../animation'
@@ -1,4 +1,7 @@
1
- /* Auto generated by build script */
1
+ /* Auto generated by build script
2
+ *
3
+ * Generative Media brick - Generate images and videos using AI
4
+ */
2
5
  import type { SwitchCondInnerStateCurrentCanvas, SwitchCondData, SwitchDef } from '../switch'
3
6
  import type { Data, DataLink } from '../data'
4
7
  import type { Animation, AnimationBasicEvents } from '../animation'
@@ -1,4 +1,7 @@
1
- /* Auto generated by build script */
1
+ /* Auto generated by build script
2
+ *
3
+ * Display Font Awesome 6 Pro icons. Supports Solid, Regular, Light, Duotone, Thin, Brands, and Sharp styles
4
+ */
2
5
  import type { SwitchCondInnerStateCurrentCanvas, SwitchCondData, SwitchDef } from '../switch'
3
6
  import type { Data, DataLink } from '../data'
4
7
  import type { Animation, AnimationBasicEvents } from '../animation'
@@ -71,7 +74,7 @@ Default property:
71
74
  }
72
75
  }
73
76
 
74
- /* Icon brick */
77
+ /* Display Font Awesome 6 Pro icons. Supports Solid, Regular, Light, Duotone, Thin, Brands, and Sharp styles */
75
78
  export type BrickIcon = Brick &
76
79
  BrickIconDef & {
77
80
  templateKey: 'BRICK_ICON'
@@ -1,4 +1,7 @@
1
- /* Auto generated by build script */
1
+ /* Auto generated by build script
2
+ *
3
+ * Display images from URL or local assets with resize modes and caching
4
+ */
2
5
  import type { SwitchCondInnerStateCurrentCanvas, SwitchCondData, SwitchDef } from '../switch'
3
6
  import type { Data, DataLink } from '../data'
4
7
  import type { Animation, AnimationBasicEvents } from '../animation'
@@ -87,7 +90,7 @@ Default property:
87
90
  }
88
91
  }
89
92
 
90
- /* Image brick */
93
+ /* Display images from URL or local assets with resize modes and caching */
91
94
  export type BrickImage = Brick &
92
95
  BrickImageDef & {
93
96
  templateKey: 'BRICK_IMAGE'
@@ -1,4 +1,7 @@
1
- /* Auto generated by build script */
1
+ /* Auto generated by build script
2
+ *
3
+ * Data-driven list/grid. Maps items array to brick templates via propertyMapping, with pagination and detail mode support
4
+ */
2
5
  import type { SwitchCondInnerStateCurrentCanvas, SwitchCondData, SwitchDef } from '../switch'
3
6
  import type { Data, DataLink } from '../data'
4
7
  import type { Animation, AnimationBasicEvents } from '../animation'
@@ -433,7 +436,7 @@ Default property:
433
436
  }
434
437
  }
435
438
 
436
- /* Brick items component */
439
+ /* Data-driven list/grid. Maps items array to brick templates via propertyMapping, with pagination and detail mode support */
437
440
  export type BrickItems = Brick &
438
441
  BrickItemsDef & {
439
442
  templateKey: 'BRICK_ITEMS'
@@ -1,4 +1,7 @@
1
- /* Auto generated by build script */
1
+ /* Auto generated by build script
2
+ *
3
+ * Lottie animation player supporting .json and .dotlottie formats. Supports speed, loop, frame range control, color/text filters, and hardware rendering
4
+ */
2
5
  import type { SwitchCondInnerStateCurrentCanvas, SwitchCondData, SwitchDef } from '../switch'
3
6
  import type { Data, DataLink } from '../data'
4
7
  import type { Animation, AnimationBasicEvents } from '../animation'
@@ -137,7 +140,7 @@ Default property:
137
140
  }
138
141
  }
139
142
 
140
- /* Lottie Adobe After Effects animations brick */
143
+ /* Lottie animation player supporting .json and .dotlottie formats. Supports speed, loop, frame range control, color/text filters, and hardware rendering */
141
144
  export type BrickLottie = Brick &
142
145
  BrickLottieDef & {
143
146
  templateKey: 'BRICK_LOTTIE'
@@ -1,4 +1,7 @@
1
- /* Auto generated by build script */
1
+ /* Auto generated by build script
2
+ *
3
+ * Interactive map with markers, paths, and location tracking. Supports Google Maps (iOS/Android/Desktop/Web) and Apple Maps (iOS/tvOS)
4
+ */
2
5
  import type { SwitchCondInnerStateCurrentCanvas, SwitchCondData, SwitchDef } from '../switch'
3
6
  import type { Data, DataLink } from '../data'
4
7
  import type { Animation, AnimationBasicEvents } from '../animation'
@@ -231,7 +234,7 @@ Default property:
231
234
  }
232
235
  }
233
236
 
234
- /* Maps brick */
237
+ /* Interactive map with markers, paths, and location tracking. Supports Google Maps (iOS/Android/Desktop/Web) and Apple Maps (iOS/tvOS) */
235
238
  export type BrickMaps = Brick &
236
239
  BrickMapsDef & {
237
240
  templateKey: 'BRICK_MAPS'
@@ -1,4 +1,7 @@
1
- /* Auto generated by build script */
1
+ /* Auto generated by build script
2
+ *
3
+ * Generate and display QR codes from text or URL values
4
+ */
2
5
  import type { SwitchCondInnerStateCurrentCanvas, SwitchCondData, SwitchDef } from '../switch'
3
6
  import type { Data, DataLink } from '../data'
4
7
  import type { Animation, AnimationBasicEvents } from '../animation'
@@ -90,7 +93,7 @@ Default property:
90
93
  }
91
94
  }
92
95
 
93
- /* QRCode brick */
96
+ /* Generate and display QR codes from text or URL values */
94
97
  export type BrickQrcode = Brick &
95
98
  BrickQrcodeDef & {
96
99
  templateKey: 'BRICK_QRCODE'
@@ -1,4 +1,7 @@
1
- /* Auto generated by build script */
1
+ /* Auto generated by build script
2
+ *
3
+ * Rectangle shape with customizable fill, border, radius, and shadow
4
+ */
2
5
  import type { SwitchCondInnerStateCurrentCanvas, SwitchCondData, SwitchDef } from '../switch'
3
6
  import type { Data, DataLink } from '../data'
4
7
  import type { Animation, AnimationBasicEvents } from '../animation'
@@ -88,7 +91,7 @@ Default property:
88
91
  }
89
92
  }
90
93
 
91
- /* Rect brick */
94
+ /* Rectangle shape with customizable fill, border, radius, and shadow */
92
95
  export type BrickRect = Brick &
93
96
  BrickRectDef & {
94
97
  templateKey: 'BRICK_RECT'
@@ -1,4 +1,7 @@
1
- /* Auto generated by build script */
1
+ /* Auto generated by build script
2
+ *
3
+ * Rich text with HTML content rendering, multiple fonts, colors, heading levels (h1-h6), and inline images
4
+ */
2
5
  import type { SwitchCondInnerStateCurrentCanvas, SwitchCondData, SwitchDef } from '../switch'
3
6
  import type { Data, DataLink } from '../data'
4
7
  import type { Animation, AnimationBasicEvents } from '../animation'
@@ -101,7 +104,7 @@ Default property:
101
104
  }
102
105
  }
103
106
 
104
- /* RichText brick */
107
+ /* Rich text with HTML content rendering, multiple fonts, colors, heading levels (h1-h6), and inline images */
105
108
  export type BrickRichText = Brick &
106
109
  BrickRichTextDef & {
107
110
  templateKey: 'BRICK_RICH_TEXT'
@@ -1,4 +1,7 @@
1
- /* Auto generated by build script */
1
+ /* Auto generated by build script
2
+ *
3
+ * Render Rive (.riv) animations with state machine input control, text run updates, and artboard selection
4
+ */
2
5
  import type { SwitchCondInnerStateCurrentCanvas, SwitchCondData, SwitchDef } from '../switch'
3
6
  import type { Data, DataLink } from '../data'
4
7
  import type { Animation, AnimationBasicEvents } from '../animation'
@@ -187,7 +190,7 @@ Default property:
187
190
  }
188
191
  }
189
192
 
190
- /* Rive file component */
193
+ /* Render Rive (.riv) animations with state machine input control, text run updates, and artboard selection */
191
194
  export type BrickRive = Brick &
192
195
  BrickRiveDef & {
193
196
  templateKey: 'BRICK_RIVE'
@@ -1,4 +1,7 @@
1
- /* Auto generated by build script */
1
+ /* Auto generated by build script
2
+ *
3
+ * Auto-advancing slideshow of child bricks with transition effects
4
+ */
2
5
  import type { SwitchCondInnerStateCurrentCanvas, SwitchCondData, SwitchDef } from '../switch'
3
6
  import type { Data, DataLink } from '../data'
4
7
  import type { Animation, AnimationBasicEvents } from '../animation'
@@ -168,7 +171,7 @@ Default property:
168
171
  }
169
172
  }
170
173
 
171
- /* Slideshow brick */
174
+ /* Auto-advancing slideshow of child bricks with transition effects */
172
175
  export type BrickSlideshow = Brick &
173
176
  BrickSlideshowDef & {
174
177
  templateKey: 'BRICK_SLIDESHOW'
@@ -1,4 +1,7 @@
1
- /* Auto generated by build script */
1
+ /* Auto generated by build script
2
+ *
3
+ * SVG is an XML-based vector image format for 2D graphics
4
+ */
2
5
  import type { SwitchCondInnerStateCurrentCanvas, SwitchCondData, SwitchDef } from '../switch'
3
6
  import type { Data, DataLink } from '../data'
4
7
  import type { Animation, AnimationBasicEvents } from '../animation'
@@ -1,4 +1,7 @@
1
- /* Auto generated by build script */
1
+ /* Auto generated by build script
2
+ *
3
+ * Display styled text with font, color, alignment, and truncation controls
4
+ */
2
5
  import type { SwitchCondInnerStateCurrentCanvas, SwitchCondData, SwitchDef } from '../switch'
3
6
  import type { Data, DataLink } from '../data'
4
7
  import type { Animation, AnimationBasicEvents } from '../animation'
@@ -121,7 +124,7 @@ Default property:
121
124
  }
122
125
  }
123
126
 
124
- /* Text brick */
127
+ /* Display styled text with font, color, alignment, and truncation controls */
125
128
  export type BrickText = Brick &
126
129
  BrickTextDef & {
127
130
  templateKey: 'BRICK_TEXT'
@@ -1,4 +1,7 @@
1
- /* Auto generated by build script */
1
+ /* Auto generated by build script
2
+ *
3
+ * Editable text input field with keyboard type, placeholder, and validation support
4
+ */
2
5
  import type { SwitchCondInnerStateCurrentCanvas, SwitchCondData, SwitchDef } from '../switch'
3
6
  import type { Data, DataLink } from '../data'
4
7
  import type { Animation, AnimationBasicEvents } from '../animation'
@@ -213,7 +216,7 @@ Default property:
213
216
  }
214
217
  }
215
218
 
216
- /* Text Input brick */
219
+ /* Editable text input field with keyboard type, placeholder, and validation support */
217
220
  export type BrickTextInput = Brick &
218
221
  BrickTextInputDef & {
219
222
  templateKey: 'BRICK_TEXT_INPUT'
@@ -1,4 +1,7 @@
1
- /* Auto generated by build script */
1
+ /* Auto generated by build script
2
+ *
3
+ * Video playback with play/pause controls and streaming support
4
+ */
2
5
  import type { SwitchCondInnerStateCurrentCanvas, SwitchCondData, SwitchDef } from '../switch'
3
6
  import type { Data, DataLink } from '../data'
4
7
  import type { Animation, AnimationBasicEvents } from '../animation'
@@ -148,7 +151,7 @@ Default property:
148
151
  }
149
152
  }
150
153
 
151
- /* Video brick */
154
+ /* Video playback with play/pause controls and streaming support */
152
155
  export type BrickVideo = Brick &
153
156
  BrickVideoDef & {
154
157
  templateKey: 'BRICK_VIDEO'
@@ -1,4 +1,7 @@
1
- /* Auto generated by build script */
1
+ /* Auto generated by build script
2
+ *
3
+ * Brick video streaming component, supports RTSP / RTMP streaming.
4
+ */
2
5
  import type { SwitchCondInnerStateCurrentCanvas, SwitchCondData, SwitchDef } from '../switch'
3
6
  import type { Data, DataLink } from '../data'
4
7
  import type { Animation, AnimationBasicEvents } from '../animation'
@@ -1,4 +1,7 @@
1
- /* Auto generated by build script */
1
+ /* Auto generated by build script
2
+ *
3
+ * Display WebRTC video/audio stream from a WebRTC generator connection
4
+ */
2
5
  import type { SwitchCondInnerStateCurrentCanvas, SwitchCondData, SwitchDef } from '../switch'
3
6
  import type { Data, DataLink } from '../data'
4
7
  import type { Animation, AnimationBasicEvents } from '../animation'
@@ -38,7 +41,7 @@ Default property:
38
41
  }
39
42
  }
40
43
 
41
- /* WebRTCStream brick */
44
+ /* Display WebRTC video/audio stream from a WebRTC generator connection */
42
45
  export type BrickWebRTCStream = Brick &
43
46
  BrickWebRTCStreamDef & {
44
47
  templateKey: 'BRICK_WEBRTC_STREAM'
@@ -1,4 +1,7 @@
1
- /* Auto generated by build script */
1
+ /* Auto generated by build script
2
+ *
3
+ * Embedded web browser with JS injection, DOM query selectors, content cropping, navigation control, and permission management
4
+ */
2
5
  import type { SwitchCondInnerStateCurrentCanvas, SwitchCondData, SwitchDef } from '../switch'
3
6
  import type { Data, DataLink } from '../data'
4
7
  import type { Animation, AnimationBasicEvents } from '../animation'
@@ -141,7 +144,7 @@ Default property:
141
144
  }
142
145
  }
143
146
 
144
- /* WebView brick */
147
+ /* Embedded web browser with JS injection, DOM query selectors, content cropping, navigation control, and permission management */
145
148
  export type BrickWebView = Brick &
146
149
  BrickWebViewDef & {
147
150
  templateKey: 'BRICK_WEBVIEW'
@@ -1,4 +1,7 @@
1
- /* Auto generated by build script */
1
+ /* Auto generated by build script
2
+ *
3
+ * Schedule events using cron expressions (e.g. daily, hourly)
4
+ */
2
5
  import type { SwitchCondInnerStateCurrentCanvas, SwitchCondData, SwitchDef } from '../switch'
3
6
  import type { Data, DataLink } from '../data'
4
7
  import type {
@@ -81,7 +84,7 @@ Default property:
81
84
  }
82
85
  }
83
86
 
84
- /* Execute event by cron tab */
87
+ /* Schedule events using cron expressions (e.g. daily, hourly) */
85
88
  export type GeneratorAlarmClock = Generator &
86
89
  GeneratorAlarmClockDef & {
87
90
  templateKey: 'GENERATOR_ALARM_CLOCK'
@@ -1,4 +1,7 @@
1
- /* Auto generated by build script */
1
+ /* Auto generated by build script
2
+ *
3
+ * Conversational AI agent orchestrating LLM (GGML/MLX/OpenAI/QNN/ONNX/Anthropic/NeuroPilot), STT, TTS, MCP tool-use, and file search (RAG) with auto-summary
4
+ */
2
5
  import type { SwitchCondInnerStateCurrentCanvas, SwitchCondData, SwitchDef } from '../switch'
3
6
  import type { Data, DataLink } from '../data'
4
7
  import type {
@@ -585,7 +588,7 @@ Default property:
585
588
  }
586
589
  }
587
590
 
588
- /* AI Assistant */
591
+ /* Conversational AI agent orchestrating LLM (GGML/MLX/OpenAI/QNN/ONNX/Anthropic/NeuroPilot), STT, TTS, MCP tool-use, and file search (RAG) with auto-summary */
589
592
  export type GeneratorAssistant = Generator &
590
593
  GeneratorAssistantDef & {
591
594
  templateKey: 'GENERATOR_ASSISTANT'
@@ -1,4 +1,7 @@
1
- /* Auto generated by build script */
1
+ /* Auto generated by build script
2
+ *
3
+ * Bluetooth Low Energy central: scan, connect, and communicate with BLE peripherals
4
+ */
2
5
  import type { SwitchCondInnerStateCurrentCanvas, SwitchCondData, SwitchDef } from '../switch'
3
6
  import type { Data, DataLink } from '../data'
4
7
  import type {
@@ -212,7 +215,7 @@ Default property:
212
215
  }
213
216
  }
214
217
 
215
- /* BLE Central Mode Generator */
218
+ /* Bluetooth Low Energy central: scan, connect, and communicate with BLE peripherals */
216
219
  export type GeneratorBleCentral = Generator &
217
220
  GeneratorBleCentralDef & {
218
221
  templateKey: 'GENERATOR_BLE_CENTRAL'
@@ -1,4 +1,7 @@
1
- /* Auto generated by build script */
1
+ /* Auto generated by build script
2
+ *
3
+ * Bluetooth Low Energy peripheral: advertise services and respond to central connections
4
+ */
2
5
  import type { SwitchCondInnerStateCurrentCanvas, SwitchCondData, SwitchDef } from '../switch'
3
6
  import type { Data, DataLink } from '../data'
4
7
  import type {
@@ -181,7 +184,7 @@ Default property:
181
184
  }
182
185
  }
183
186
 
184
- /* BLE Peripheral Mode Generator */
187
+ /* Bluetooth Low Energy peripheral: advertise services and respond to central connections */
185
188
  export type GeneratorBlePeripheral = Generator &
186
189
  GeneratorBlePeripheralDef & {
187
190
  templateKey: 'GENERATOR_BLE_PERIPHERAL'
@@ -1,4 +1,7 @@
1
- /* Auto generated by build script */
1
+ /* Auto generated by build script
2
+ *
3
+ * Trigger canvas navigation 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,7 @@
1
- /* Auto generated by build script */
1
+ /* Auto generated by build script
2
+ *
3
+ * Payment processing integration for Castles payment terminals
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
- /* Castles Pay */
62
+ /* Payment processing integration for Castles payment terminals */
60
63
  export type GeneratorCastlesPay = Generator &
61
64
  GeneratorCastlesPayDef & {
62
65
  templateKey: 'GENERATOR_CASTLES_PAY'
@@ -1,4 +1,7 @@
1
- /* Auto generated by build script */
1
+ /* Auto generated by build script
2
+ *
3
+ * Access and subscribe to shared Data properties from the project Data Bank
4
+ */
2
5
  import type { SwitchCondInnerStateCurrentCanvas, SwitchCondData, SwitchDef } from '../switch'
3
6
  import type { Data, DataLink } from '../data'
4
7
  import type {
@@ -129,7 +132,7 @@ Default property:
129
132
  }
130
133
  }
131
134
 
132
- /* Get Data or subscribe to Data changes from Data Bank */
135
+ /* Access and subscribe to shared Data properties from the project Data Bank */
133
136
  export type GeneratorDataBank = Generator &
134
137
  GeneratorDataBankDef & {
135
138
  templateKey: 'GENERATOR_DATA_BANK'
@@ -1,4 +1,7 @@
1
- /* Auto generated by build script */
1
+ /* Auto generated by build script
2
+ *
3
+ * File system operations: read, write, copy, delete, and list files
4
+ */
2
5
  import type { SwitchCondInnerStateCurrentCanvas, SwitchCondData, SwitchDef } from '../switch'
3
6
  import type { Data, DataLink } from '../data'
4
7
  import type {
@@ -366,7 +369,7 @@ Default property:
366
369
  }
367
370
  }
368
371
 
369
- /* File handling */
372
+ /* File system operations: read, write, copy, delete, and list files */
370
373
  export type GeneratorFile = Generator &
371
374
  GeneratorFileDef & {
372
375
  templateKey: 'GENERATOR_FILE'
@@ -1,4 +1,7 @@
1
- /* Auto generated by build script */
1
+ /* Auto generated by build script
2
+ *
3
+ * GraphQL client for Query, Mutation, and Subscription (WebSocket) with response caching and optional Firebase Realtime Database link
4
+ */
2
5
  import type { SwitchCondInnerStateCurrentCanvas, SwitchCondData, SwitchDef } from '../switch'
3
6
  import type { Data, DataLink } from '../data'
4
7
  import type {
@@ -103,7 +106,7 @@ Default property:
103
106
  }
104
107
  }
105
108
 
106
- /* Execute GraphQL Query / Mutation / Subscriptions */
109
+ /* GraphQL client for Query, Mutation, and Subscription (WebSocket) with response caching and optional Firebase Realtime Database link */
107
110
  export type GeneratorGraphQL = Generator &
108
111
  GeneratorGraphQLDef & {
109
112
  templateKey: 'GENERATOR_GRAPHQL'
@@ -1,4 +1,7 @@
1
- /* Auto generated by build script */
1
+ /* Auto generated by build script
2
+ *
3
+ * HTTP client supporting all methods (GET/POST/PUT/DELETE/PATCH/...), response parsing (JSON/text/XML/CSV), SSE event streams, and multipart file uploads
4
+ */
2
5
  import type { SwitchCondInnerStateCurrentCanvas, SwitchCondData, SwitchDef } from '../switch'
3
6
  import type { Data, DataLink } from '../data'
4
7
  import type {
@@ -189,7 +192,7 @@ Default property:
189
192
  }
190
193
  }
191
194
 
192
- /* Execute HTTP requests */
195
+ /* HTTP client supporting all methods (GET/POST/PUT/DELETE/PATCH/...), response parsing (JSON/text/XML/CSV), SSE event streams, and multipart file uploads */
193
196
  export type GeneratorHTTP = Generator &
194
197
  GeneratorHTTPDef & {
195
198
  templateKey: 'GENERATOR_HTTP'
@@ -1,4 +1,7 @@
1
- /* Auto generated by build script */
1
+ /* Auto generated by build script
2
+ *
3
+ * Embedded HTTP/HTTPS server with route matching, CORS, auth (Basic/Bearer), SSE streaming, file upload, and async response mode
4
+ */
2
5
  import type { SwitchCondInnerStateCurrentCanvas, SwitchCondData, SwitchDef } from '../switch'
3
6
  import type { Data, DataLink } from '../data'
4
7
  import type {
@@ -145,7 +148,7 @@ Default property:
145
148
  }
146
149
  }
147
150
 
148
- /* HTTP Server */
151
+ /* Embedded HTTP/HTTPS server with route matching, CORS, auth (Basic/Bearer), SSE streaming, file upload, and async response mode */
149
152
  export type GeneratorHTTPServer = Generator &
150
153
  GeneratorHTTPServerDef & {
151
154
  templateKey: 'GENERATOR_HTTP_SERVER'
@@ -1,4 +1,7 @@
1
- /* Auto generated by build script */
1
+ /* Auto generated by build script
2
+ *
3
+ * Display informational dialog or toast messages to the user
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
- /* Show information */
82
+ /* Display informational dialog or toast messages to the user */
80
83
  export type GeneratorInformation = Generator &
81
84
  GeneratorInformationDef & {
82
85
  templateKey: 'GENERATOR_INFORMATION'
@@ -1,4 +1,7 @@
1
- /* Auto generated by build script */
1
+ /* Auto generated by build script
2
+ *
3
+ * Send intent to app and get result (Android only)
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
+ * Iterate through values (Array, Object, Number, String)
4
+ */
2
5
  import type { SwitchCondInnerStateCurrentCanvas, SwitchCondData, SwitchDef } from '../switch'
3
6
  import type { Data, DataLink } from '../data'
4
7
  import type {