@fugood/bricks-project 2.22.5 → 2.22.8

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 (79) hide show
  1. package/compile/action-name-map.ts +28 -0
  2. package/package.json +1 -1
  3. package/types/brick-base.ts +1 -0
  4. package/types/bricks/Camera.ts +1 -0
  5. package/types/bricks/Chart.ts +1 -0
  6. package/types/bricks/GenerativeMedia.ts +17 -1
  7. package/types/bricks/Icon.ts +1 -0
  8. package/types/bricks/Image.ts +1 -0
  9. package/types/bricks/Items.ts +1 -0
  10. package/types/bricks/Lottie.ts +1 -0
  11. package/types/bricks/QrCode.ts +1 -0
  12. package/types/bricks/Rect.ts +1 -0
  13. package/types/bricks/RichText.ts +1 -0
  14. package/types/bricks/Rive.ts +1 -0
  15. package/types/bricks/Slideshow.ts +1 -0
  16. package/types/bricks/Svg.ts +1 -0
  17. package/types/bricks/Text.ts +1 -0
  18. package/types/bricks/TextInput.ts +1 -0
  19. package/types/bricks/Video.ts +1 -0
  20. package/types/bricks/VideoStreaming.ts +1 -0
  21. package/types/bricks/WebRtcStream.ts +1 -0
  22. package/types/bricks/WebView.ts +1 -0
  23. package/types/bricks/index.ts +1 -0
  24. package/types/canvas.ts +1 -0
  25. package/types/data-calc.ts +43 -0
  26. package/types/data.ts +1 -0
  27. package/types/generators/AlarmClock.ts +1 -0
  28. package/types/generators/Assistant.ts +17 -1
  29. package/types/generators/BleCentral.ts +1 -0
  30. package/types/generators/BlePeripheral.ts +1 -0
  31. package/types/generators/CanvasMap.ts +1 -0
  32. package/types/generators/CastlesPay.ts +1 -0
  33. package/types/generators/DataBank.ts +1 -0
  34. package/types/generators/File.ts +1 -0
  35. package/types/generators/GraphQl.ts +1 -0
  36. package/types/generators/Http.ts +75 -1
  37. package/types/generators/HttpServer.ts +1 -0
  38. package/types/generators/Information.ts +1 -0
  39. package/types/generators/Intent.ts +50 -0
  40. package/types/generators/Iterator.ts +1 -0
  41. package/types/generators/Keyboard.ts +1 -0
  42. package/types/generators/LlmAnthropicCompat.ts +1 -0
  43. package/types/generators/LlmGgml.ts +21 -4
  44. package/types/generators/LlmOnnx.ts +1 -0
  45. package/types/generators/LlmOpenAiCompat.ts +1 -0
  46. package/types/generators/LlmQualcommAiEngine.ts +1 -0
  47. package/types/generators/Mcp.ts +1 -0
  48. package/types/generators/McpServer.ts +1 -0
  49. package/types/generators/MediaFlow.ts +1 -0
  50. package/types/generators/MqttBroker.ts +1 -0
  51. package/types/generators/MqttClient.ts +1 -0
  52. package/types/generators/Question.ts +8 -0
  53. package/types/generators/RealtimeTranscription.ts +1 -0
  54. package/types/generators/RerankerGgml.ts +22 -16
  55. package/types/generators/SerialPort.ts +1 -0
  56. package/types/generators/SoundPlayer.ts +1 -0
  57. package/types/generators/SoundRecorder.ts +1 -0
  58. package/types/generators/SpeechToTextGgml.ts +4 -4
  59. package/types/generators/SpeechToTextOnnx.ts +1 -0
  60. package/types/generators/SpeechToTextPlatform.ts +1 -0
  61. package/types/generators/SqLite.ts +1 -0
  62. package/types/generators/Step.ts +1 -0
  63. package/types/generators/Tcp.ts +1 -0
  64. package/types/generators/TcpServer.ts +1 -0
  65. package/types/generators/TextToSpeechGgml.ts +23 -3
  66. package/types/generators/TextToSpeechOnnx.ts +1 -0
  67. package/types/generators/TextToSpeechOpenAiLike.ts +1 -0
  68. package/types/generators/ThermalPrinter.ts +1 -0
  69. package/types/generators/Tick.ts +1 -0
  70. package/types/generators/Udp.ts +1 -0
  71. package/types/generators/VadGgml.ts +3 -2
  72. package/types/generators/VectorStore.ts +14 -2
  73. package/types/generators/Watchdog.ts +1 -0
  74. package/types/generators/WebCrawler.ts +1 -0
  75. package/types/generators/WebRtc.ts +1 -0
  76. package/types/generators/WebSocket.ts +1 -0
  77. package/types/system.ts +1 -0
  78. package/utils/data.ts +1 -0
  79. package/utils/event-props.ts +8 -0
@@ -1,3 +1,5 @@
1
+ /* Auto generated by build script */
2
+
1
3
  // NOTE: The action parameter name convertion is not 1:1 mapping case conversion, so we need to define the mapping here
2
4
  // This may be improved in the future
3
5
  export const templateActionNameMap = {
@@ -370,6 +372,22 @@ export const templateActionNameMap = {
370
372
  variables: 'GENERATOR_GRAPHQL_VARIABLES',
371
373
  },
372
374
  },
375
+ GENERATOR_HTTP: {
376
+ GENERATOR_HTTP_RUN_REQUEST: {
377
+ url: 'GENERATOR_HTTP_URL',
378
+ method: 'GENERATOR_HTTP_METHOD',
379
+ headers: 'GENERATOR_HTTP_HEADERS',
380
+ body: 'GENERATOR_HTTP_BODY',
381
+ timeout: 'GENERATOR_HTTP_TIMEOUT',
382
+ mode: 'GENERATOR_HTTP_MODE',
383
+ credentials: 'GENERATOR_HTTP_CREDENTIALS',
384
+ redirect: 'GENERATOR_HTTP_REDIRECT',
385
+ referrer: 'GENERATOR_HTTP_REFERRER',
386
+ resType: 'GENERATOR_HTTP_RES_TYPE',
387
+ eventStream: 'GENERATOR_HTTP_EVENT_STREAM',
388
+ eventName: 'GENERATOR_HTTP_EVENT_NAME',
389
+ },
390
+ },
373
391
 
374
392
  GENERATOR_WEB_SOCKET: {
375
393
  GENERATOR_WEB_SOCKET_EMIT: {
@@ -497,6 +515,16 @@ export const templateActionNameMap = {
497
515
  packageName: 'GENERATOR_INTENT_PACKAGE_NAME',
498
516
  category: 'GENERATOR_INTENT_CATEGORY',
499
517
  },
518
+ GENERATOR_INTENT_START_SERVICE: {
519
+ action: 'GENERATOR_INTENT_ACTION',
520
+ data: 'GENERATOR_INTENT_DATA',
521
+ type: 'GENERATOR_INTENT_TYPE',
522
+ extra: 'GENERATOR_INTENT_EXTRA',
523
+ className: 'GENERATOR_INTENT_CLASS_NAME',
524
+ packageName: 'GENERATOR_INTENT_PACKAGE_NAME',
525
+ category: 'GENERATOR_INTENT_CATEGORY',
526
+ foreground: 'GENERATOR_INTENT_FOREGROUND',
527
+ },
500
528
  },
501
529
  GENERATOR_CASTLES_PAY: {
502
530
  GENERATOR_CASTLES_PAY_SALE: {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@fugood/bricks-project",
3
- "version": "2.22.5",
3
+ "version": "2.22.8",
4
4
  "main": "index.ts",
5
5
  "scripts": {
6
6
  "build": "node scripts/build.js"
@@ -1,3 +1,4 @@
1
+ /* Auto generated by build script */
1
2
  import type { SwitchCondInnerStateCurrentCanvas, SwitchCondData, SwitchDef } from './switch'
2
3
  import type { Data, DataLink } from './data'
3
4
  import type { Animation, AnimationBasicEvents } from './animation'
@@ -1,3 +1,4 @@
1
+ /* Auto generated by build script */
1
2
  import type { SwitchCondInnerStateCurrentCanvas, SwitchCondData, SwitchDef } from '../switch'
2
3
  import type { Data, DataLink } from '../data'
3
4
  import type { Animation, AnimationBasicEvents } from '../animation'
@@ -1,3 +1,4 @@
1
+ /* Auto generated by build script */
1
2
  import type { SwitchCondInnerStateCurrentCanvas, SwitchCondData, SwitchDef } from '../switch'
2
3
  import type { Data, DataLink } from '../data'
3
4
  import type { Animation, AnimationBasicEvents } from '../animation'
@@ -1,3 +1,4 @@
1
+ /* Auto generated by build script */
1
2
  import type { SwitchCondInnerStateCurrentCanvas, SwitchCondData, SwitchDef } from '../switch'
2
3
  import type { Data, DataLink } from '../data'
3
4
  import type { Animation, AnimationBasicEvents } from '../animation'
@@ -20,7 +21,10 @@ Default property:
20
21
  "type": "image",
21
22
  "resizeMode": "cover",
22
23
  "provider": "openai",
23
- "freepikClassicImageSize": "square_1_1"
24
+ "freepikClassicImageSize": "square_1_1",
25
+ "geminiVeoModel": "veo-3.1-generate-preview",
26
+ "geminiVeoResolution": "720p",
27
+ "geminiVeoDuration": 8
24
28
  }
25
29
  */
26
30
  property?: BrickBasicProperty & {
@@ -160,6 +164,18 @@ Default property:
160
164
  deepaiHeight?: number | DataLink
161
165
  /* Gemini aspect ratio (1:1, 16:9, 9:16, 3:2, 2:3) */
162
166
  geminiAspectRatio?: '1:1' | '16:9' | '9:16' | '3:2' | '2:3' | DataLink
167
+ /* Gemini model to use for image generation */
168
+ geminiModel?: 'gemini-2.5-flash-image' | 'gemini-3-pro-image-preview' | DataLink
169
+ /* Gemini Veo model to use for video generation */
170
+ geminiVeoModel?: 'veo-3.1-generate-preview' | 'veo-3.1-fast-generate-preview' | DataLink
171
+ /* Gemini Veo video resolution (720p or 1080p) */
172
+ geminiVeoResolution?: '720p' | '1080p' | DataLink
173
+ /* Gemini Veo video duration in seconds (4, 6, 8) */
174
+ geminiVeoDuration?: 4 | 6 | 8 | DataLink
175
+ /* Gemini Veo negative prompt (attributes to avoid) */
176
+ geminiVeoNegativePrompt?: string | DataLink
177
+ /* Gemini Veo person generation control */
178
+ geminiVeoPersonGeneration?: 'allow_all' | 'allow_adult' | DataLink
163
179
  }
164
180
  events?: BrickBasicEvents & {
165
181
  /* Event of the brick press */
@@ -1,3 +1,4 @@
1
+ /* Auto generated by build script */
1
2
  import type { SwitchCondInnerStateCurrentCanvas, SwitchCondData, SwitchDef } from '../switch'
2
3
  import type { Data, DataLink } from '../data'
3
4
  import type { Animation, AnimationBasicEvents } from '../animation'
@@ -1,3 +1,4 @@
1
+ /* Auto generated by build script */
1
2
  import type { SwitchCondInnerStateCurrentCanvas, SwitchCondData, SwitchDef } from '../switch'
2
3
  import type { Data, DataLink } from '../data'
3
4
  import type { Animation, AnimationBasicEvents } from '../animation'
@@ -1,3 +1,4 @@
1
+ /* Auto generated by build script */
1
2
  import type { SwitchCondInnerStateCurrentCanvas, SwitchCondData, SwitchDef } from '../switch'
2
3
  import type { Data, DataLink } from '../data'
3
4
  import type { Animation, AnimationBasicEvents } from '../animation'
@@ -1,3 +1,4 @@
1
+ /* Auto generated by build script */
1
2
  import type { SwitchCondInnerStateCurrentCanvas, SwitchCondData, SwitchDef } from '../switch'
2
3
  import type { Data, DataLink } from '../data'
3
4
  import type { Animation, AnimationBasicEvents } from '../animation'
@@ -1,3 +1,4 @@
1
+ /* Auto generated by build script */
1
2
  import type { SwitchCondInnerStateCurrentCanvas, SwitchCondData, SwitchDef } from '../switch'
2
3
  import type { Data, DataLink } from '../data'
3
4
  import type { Animation, AnimationBasicEvents } from '../animation'
@@ -1,3 +1,4 @@
1
+ /* Auto generated by build script */
1
2
  import type { SwitchCondInnerStateCurrentCanvas, SwitchCondData, SwitchDef } from '../switch'
2
3
  import type { Data, DataLink } from '../data'
3
4
  import type { Animation, AnimationBasicEvents } from '../animation'
@@ -1,3 +1,4 @@
1
+ /* Auto generated by build script */
1
2
  import type { SwitchCondInnerStateCurrentCanvas, SwitchCondData, SwitchDef } from '../switch'
2
3
  import type { Data, DataLink } from '../data'
3
4
  import type { Animation, AnimationBasicEvents } from '../animation'
@@ -1,3 +1,4 @@
1
+ /* Auto generated by build script */
1
2
  import type { SwitchCondInnerStateCurrentCanvas, SwitchCondData, SwitchDef } from '../switch'
2
3
  import type { Data, DataLink } from '../data'
3
4
  import type { Animation, AnimationBasicEvents } from '../animation'
@@ -1,3 +1,4 @@
1
+ /* Auto generated by build script */
1
2
  import type { SwitchCondInnerStateCurrentCanvas, SwitchCondData, SwitchDef } from '../switch'
2
3
  import type { Data, DataLink } from '../data'
3
4
  import type { Animation, AnimationBasicEvents } from '../animation'
@@ -1,3 +1,4 @@
1
+ /* Auto generated by build script */
1
2
  import type { SwitchCondInnerStateCurrentCanvas, SwitchCondData, SwitchDef } from '../switch'
2
3
  import type { Data, DataLink } from '../data'
3
4
  import type { Animation, AnimationBasicEvents } from '../animation'
@@ -1,3 +1,4 @@
1
+ /* Auto generated by build script */
1
2
  import type { SwitchCondInnerStateCurrentCanvas, SwitchCondData, SwitchDef } from '../switch'
2
3
  import type { Data, DataLink } from '../data'
3
4
  import type { Animation, AnimationBasicEvents } from '../animation'
@@ -1,3 +1,4 @@
1
+ /* Auto generated by build script */
1
2
  import type { SwitchCondInnerStateCurrentCanvas, SwitchCondData, SwitchDef } from '../switch'
2
3
  import type { Data, DataLink } from '../data'
3
4
  import type { Animation, AnimationBasicEvents } from '../animation'
@@ -1,3 +1,4 @@
1
+ /* Auto generated by build script */
1
2
  import type { SwitchCondInnerStateCurrentCanvas, SwitchCondData, SwitchDef } from '../switch'
2
3
  import type { Data, DataLink } from '../data'
3
4
  import type { Animation, AnimationBasicEvents } from '../animation'
@@ -1,3 +1,4 @@
1
+ /* Auto generated by build script */
1
2
  import type { SwitchCondInnerStateCurrentCanvas, SwitchCondData, SwitchDef } from '../switch'
2
3
  import type { Data, DataLink } from '../data'
3
4
  import type { Animation, AnimationBasicEvents } from '../animation'
@@ -1,3 +1,4 @@
1
+ /* Auto generated by build script */
1
2
  import type { SwitchCondInnerStateCurrentCanvas, SwitchCondData, SwitchDef } from '../switch'
2
3
  import type { Data, DataLink } from '../data'
3
4
  import type { Animation, AnimationBasicEvents } from '../animation'
@@ -1,3 +1,4 @@
1
+ /* Auto generated by build script */
1
2
  import type { SwitchCondInnerStateCurrentCanvas, SwitchCondData, SwitchDef } from '../switch'
2
3
  import type { Data, DataLink } from '../data'
3
4
  import type { Animation, AnimationBasicEvents } from '../animation'
@@ -1,3 +1,4 @@
1
+ /* Auto generated by build script */
1
2
  export * from './Rect'
2
3
  export * from './Text'
3
4
  export * from './TextInput'
package/types/canvas.ts CHANGED
@@ -1,3 +1,4 @@
1
+ /* Auto generated by build script */
1
2
  import type { Easing } from './animation'
2
3
  import type { Data, DataLink } from './data'
3
4
  import type { SwitchCondInnerStateCurrentCanvas, SwitchCondData, SwitchDef } from './switch'
@@ -1,3 +1,4 @@
1
+ /* Auto generated by build script */
1
2
  import type { Data } from './data'
2
3
 
3
4
  /* DataCalculation has two types: DataCalculationScript and DataCalculationMap */
@@ -3849,6 +3850,48 @@ export type DataCommandStringTitleCase = DataCommand & {
3849
3850
  }>
3850
3851
  }
3851
3852
 
3853
+ /*
3854
+ TOON Decode
3855
+ Decode TOON string. Return undefined if decode failed.
3856
+ */
3857
+ export type DataCommandStringToolDecode = DataCommand & {
3858
+ __commandName: 'STRING_TOOL_DECODE'
3859
+ inputs?: Array<{
3860
+ // Default value: "{}"
3861
+ key: 'subject'
3862
+ source: (() => DataCalculationData | DataCommand) | string
3863
+ sourceKey: string
3864
+ trigger?: boolean
3865
+ }>
3866
+ outputs?: Array<{
3867
+ key: 'result'
3868
+ // target type: any
3869
+ target: () => DataCalculationData | DataCommand
3870
+ targetKey: string
3871
+ }>
3872
+ }
3873
+
3874
+ /*
3875
+ TOON Encode
3876
+ Encode TOON string. Return undefined if encode failed.
3877
+ */
3878
+ export type DataCommandStringToolEncode = DataCommand & {
3879
+ __commandName: 'STRING_TOOL_ENCODE'
3880
+ inputs?: Array<{
3881
+ // Default value: {}
3882
+ key: 'subject'
3883
+ source: (() => DataCalculationData | DataCommand) | any
3884
+ sourceKey: string
3885
+ trigger?: boolean
3886
+ }>
3887
+ outputs?: Array<{
3888
+ key: 'result'
3889
+ // target type: string
3890
+ target: () => DataCalculationData | DataCommand
3891
+ targetKey: string
3892
+ }>
3893
+ }
3894
+
3852
3895
  /*
3853
3896
  Trim
3854
3897
  Removes whitespaces from left and right sides of the subject.
package/types/data.ts CHANGED
@@ -1,3 +1,4 @@
1
+ /* Auto generated by build script */
1
2
  import type { SubspaceID, EventAction, LocalSyncStrategy } from './common'
2
3
 
3
4
  interface DataDef {
@@ -1,3 +1,4 @@
1
+ /* Auto generated by build script */
1
2
  import type { SwitchCondInnerStateCurrentCanvas, SwitchCondData, SwitchDef } from '../switch'
2
3
  import type { Data, DataLink } from '../data'
3
4
  import type {
@@ -1,3 +1,4 @@
1
+ /* Auto generated by build script */
1
2
  import type { SwitchCondInnerStateCurrentCanvas, SwitchCondData, SwitchDef } from '../switch'
2
3
  import type { Data, DataLink } from '../data'
3
4
  import type {
@@ -411,7 +412,10 @@ Default property:
411
412
  "sttEnabled": true,
412
413
  "sttLivePolicy": "only-in-use",
413
414
  "ttsEnabled": false,
414
- "ttsLivePolicy": "only-in-use"
415
+ "ttsLivePolicy": "only-in-use",
416
+ "mcpResourceAnnotationEnabled": false,
417
+ "mcpResourceAnnotationKeyword": "@resource:",
418
+ "mcpResourceAnnotationFallback": ""
415
419
  }
416
420
  */
417
421
  property?: {
@@ -489,6 +493,12 @@ Default property:
489
493
  }
490
494
  >
491
495
  | DataLink
496
+ /* Enable MCP resource annotation in messages. When enabled, users can use keyboard shortcuts to include MCP resources using the format: @resource:<server-name>:<resource-uri> */
497
+ mcpResourceAnnotationEnabled?: boolean | DataLink
498
+ /* MCP resource annotation keyword (Default: @resource:) */
499
+ mcpResourceAnnotationKeyword?: string | DataLink
500
+ /* Fallback text when MCP server or resource is not found. If empty, an error will be thrown. */
501
+ mcpResourceAnnotationFallback?: string | DataLink
492
502
  }
493
503
  events?: {
494
504
  /* Error event */
@@ -497,6 +507,12 @@ Default property:
497
507
  onLogs?: Array<EventAction>
498
508
  /* Messages update event */
499
509
  onMessagesUpdate?: Array<EventAction>
510
+ /* Heatup finished event */
511
+ onHeatupFinished?: Array<EventAction>
512
+ /* Generating event (triggered when assistant starts generating response) */
513
+ onGenerating?: Array<EventAction>
514
+ /* Finished event (triggered when assistant finishes generating response) */
515
+ onFinished?: Array<EventAction>
500
516
  }
501
517
  outlets?: {
502
518
  /* Whether the assistant is heating up */
@@ -1,3 +1,4 @@
1
+ /* Auto generated by build script */
1
2
  import type { SwitchCondInnerStateCurrentCanvas, SwitchCondData, SwitchDef } from '../switch'
2
3
  import type { Data, DataLink } from '../data'
3
4
  import type {
@@ -1,3 +1,4 @@
1
+ /* Auto generated by build script */
1
2
  import type { SwitchCondInnerStateCurrentCanvas, SwitchCondData, SwitchDef } from '../switch'
2
3
  import type { Data, DataLink } from '../data'
3
4
  import type {
@@ -1,3 +1,4 @@
1
+ /* Auto generated by build script */
1
2
  import type { SwitchCondInnerStateCurrentCanvas, SwitchCondData, SwitchDef } from '../switch'
2
3
  import type { Data, DataLink } from '../data'
3
4
  import type {
@@ -1,3 +1,4 @@
1
+ /* Auto generated by build script */
1
2
  import type { SwitchCondInnerStateCurrentCanvas, SwitchCondData, SwitchDef } from '../switch'
2
3
  import type { Data, DataLink } from '../data'
3
4
  import type {
@@ -1,3 +1,4 @@
1
+ /* Auto generated by build script */
1
2
  import type { SwitchCondInnerStateCurrentCanvas, SwitchCondData, SwitchDef } from '../switch'
2
3
  import type { Data, DataLink } from '../data'
3
4
  import type {
@@ -1,3 +1,4 @@
1
+ /* Auto generated by build script */
1
2
  import type { SwitchCondInnerStateCurrentCanvas, SwitchCondData, SwitchDef } from '../switch'
2
3
  import type { Data, DataLink } from '../data'
3
4
  import type {
@@ -1,3 +1,4 @@
1
+ /* Auto generated by build script */
1
2
  import type { SwitchCondInnerStateCurrentCanvas, SwitchCondData, SwitchDef } from '../switch'
2
3
  import type { Data, DataLink } from '../data'
3
4
  import type {
@@ -1,3 +1,4 @@
1
+ /* Auto generated by build script */
1
2
  import type { SwitchCondInnerStateCurrentCanvas, SwitchCondData, SwitchDef } from '../switch'
2
3
  import type { Data, DataLink } from '../data'
3
4
  import type {
@@ -10,8 +11,81 @@ import type {
10
11
  } from '../common'
11
12
 
12
13
  /* Run HTTP request with defined properties */
13
- export type GeneratorHTTPActionRunRequest = Action & {
14
+ export type GeneratorHTTPActionRunRequest = ActionWithParams & {
14
15
  __actionName: 'GENERATOR_HTTP_RUN_REQUEST'
16
+ params?: Array<
17
+ | {
18
+ input: 'url'
19
+ value?: string | DataLink | EventProperty
20
+ mapping?: string
21
+ }
22
+ | {
23
+ input: 'method'
24
+ value?:
25
+ | 'GET'
26
+ | 'POST'
27
+ | 'PUT'
28
+ | 'DELETE'
29
+ | 'HEAD'
30
+ | 'PATCH'
31
+ | 'OPTIONS'
32
+ | 'CONNECT'
33
+ | 'TRACE'
34
+ | DataLink
35
+ | EventProperty
36
+ mapping?: string
37
+ }
38
+ | {
39
+ input: 'headers'
40
+ value?: {} | DataLink | EventProperty
41
+ mapping?: string
42
+ }
43
+ | {
44
+ input: 'body'
45
+ value?: any | EventProperty
46
+ mapping?: string
47
+ }
48
+ | {
49
+ input: 'timeout'
50
+ value?: number | DataLink | EventProperty
51
+ mapping?: string
52
+ }
53
+ | {
54
+ input: 'mode'
55
+ value?: 'same-origin' | 'no-cors' | 'cors' | DataLink | EventProperty
56
+ mapping?: string
57
+ }
58
+ | {
59
+ input: 'credentials'
60
+ value?: 'include' | 'same-origin' | 'omit' | DataLink | EventProperty
61
+ mapping?: string
62
+ }
63
+ | {
64
+ input: 'redirect'
65
+ value?: 'manual' | 'follow' | 'error' | DataLink | EventProperty
66
+ mapping?: string
67
+ }
68
+ | {
69
+ input: 'referrer'
70
+ value?: 'no-referrer' | 'client' | DataLink | EventProperty
71
+ mapping?: string
72
+ }
73
+ | {
74
+ input: 'resType'
75
+ value?: 'json' | 'text' | 'xml' | 'csv' | DataLink | EventProperty
76
+ mapping?: string
77
+ }
78
+ | {
79
+ input: 'eventStream'
80
+ value?: boolean | DataLink | EventProperty
81
+ mapping?: string
82
+ }
83
+ | {
84
+ input: 'eventName'
85
+ value?: string | DataLink | EventProperty
86
+ mapping?: string
87
+ }
88
+ >
15
89
  }
16
90
 
17
91
  /* Abort HTTP request or SSE */
@@ -1,3 +1,4 @@
1
+ /* Auto generated by build script */
1
2
  import type { SwitchCondInnerStateCurrentCanvas, SwitchCondData, SwitchDef } from '../switch'
2
3
  import type { Data, DataLink } from '../data'
3
4
  import type {
@@ -1,3 +1,4 @@
1
+ /* Auto generated by build script */
1
2
  import type { SwitchCondInnerStateCurrentCanvas, SwitchCondData, SwitchDef } from '../switch'
2
3
  import type { Data, DataLink } from '../data'
3
4
  import type {
@@ -1,3 +1,4 @@
1
+ /* Auto generated by build script */
1
2
  import type { SwitchCondInnerStateCurrentCanvas, SwitchCondData, SwitchDef } from '../switch'
2
3
  import type { Data, DataLink } from '../data'
3
4
  import type {
@@ -51,6 +52,53 @@ export type GeneratorIntentActionSendIntent = ActionWithParams & {
51
52
  >
52
53
  }
53
54
 
55
+ /* Start intent service */
56
+ export type GeneratorIntentActionStartService = ActionWithParams & {
57
+ __actionName: 'GENERATOR_INTENT_START_SERVICE'
58
+ params?: Array<
59
+ | {
60
+ input: 'action'
61
+ value?: string | DataLink | EventProperty
62
+ mapping?: string
63
+ }
64
+ | {
65
+ input: 'data'
66
+ value?: string | DataLink | EventProperty
67
+ mapping?: string
68
+ }
69
+ | {
70
+ input: 'type'
71
+ value?: string | DataLink | EventProperty
72
+ mapping?: string
73
+ }
74
+ | {
75
+ input: 'extra'
76
+ value?: {} | DataLink | EventProperty
77
+ mapping?: string
78
+ }
79
+ | {
80
+ input: 'className'
81
+ value?: string | DataLink | EventProperty
82
+ mapping?: string
83
+ }
84
+ | {
85
+ input: 'packageName'
86
+ value?: string | DataLink | EventProperty
87
+ mapping?: string
88
+ }
89
+ | {
90
+ input: 'category'
91
+ value?: string | DataLink | EventProperty
92
+ mapping?: string
93
+ }
94
+ | {
95
+ input: 'foreground'
96
+ value?: boolean | DataLink | EventProperty
97
+ mapping?: string
98
+ }
99
+ >
100
+ }
101
+
54
102
  interface GeneratorIntentDef {
55
103
  /*
56
104
  Default property:
@@ -71,6 +119,8 @@ Default property:
71
119
  packageName?: string | DataLink
72
120
  /* Intent category */
73
121
  category?: string | DataLink
122
+ /* Intent start foreground service */
123
+ foregroundService?: boolean | DataLink
74
124
  }
75
125
  events?: {
76
126
  /* On intent return a result trigger */
@@ -1,3 +1,4 @@
1
+ /* Auto generated by build script */
1
2
  import type { SwitchCondInnerStateCurrentCanvas, SwitchCondData, SwitchDef } from '../switch'
2
3
  import type { Data, DataLink } from '../data'
3
4
  import type {
@@ -1,3 +1,4 @@
1
+ /* Auto generated by build script */
1
2
  import type { SwitchCondInnerStateCurrentCanvas, SwitchCondData, SwitchDef } from '../switch'
2
3
  import type { Data, DataLink } from '../data'
3
4
  import type {
@@ -1,3 +1,4 @@
1
+ /* Auto generated by build script */
1
2
  import type { SwitchCondInnerStateCurrentCanvas, SwitchCondData, SwitchDef } from '../switch'
2
3
  import type { Data, DataLink } from '../data'
3
4
  import type {
@@ -1,3 +1,4 @@
1
+ /* Auto generated by build script */
1
2
  import type { SwitchCondInnerStateCurrentCanvas, SwitchCondData, SwitchDef } from '../switch'
2
3
  import type { Data, DataLink } from '../data'
3
4
  import type {
@@ -382,6 +383,11 @@ export type GeneratorLLMActionStopCompletion = Action & {
382
383
  __actionName: 'GENERATOR_LLM_STOP_COMPLETION'
383
384
  }
384
385
 
386
+ /* Clear KV cache */
387
+ export type GeneratorLLMActionClearCache = Action & {
388
+ __actionName: 'GENERATOR_LLM_CLEAR_CACHE'
389
+ }
390
+
385
391
  /* Clear downloaded models & current jobs */
386
392
  export type GeneratorLLMActionClearDownload = Action & {
387
393
  __actionName: 'GENERATOR_LLM_CLEAR_DOWNLOAD'
@@ -483,8 +489,16 @@ Default property:
483
489
  /* Accelerator variant (Only for desktop)
484
490
  `default` - CPU / Metal (macOS)
485
491
  `vulkan` - Use Vulkan
486
- `cuda` - Use CUDA */
487
- accelVariant?: 'default' | 'vulkan' | 'cuda' | DataLink
492
+ `cuda` - Use CUDA
493
+ `snapdragon` - Use OpenCL/Hexagon of Qualcomm Snapdragon */
494
+ accelVariant?: 'default' | 'vulkan' | 'cuda' | 'snapdragon' | DataLink
495
+ /* Devices. For example:
496
+
497
+ Metal or CPU for iOS/tvOS/MacOS
498
+ OpenCL or CPU for Android
499
+ - Add `HTP0`, `HTP1`, `...` for OpenCL/Hexagon devices (Use HTP* for all HTP devices)
500
+ For Desktop, you may want to include/exclude GPUs */
501
+ devices?: Array<string | DataLink> | DataLink
488
502
  /* Main GPU index */
489
503
  mainGpu?: number | DataLink
490
504
  /* Number of GPU layers */
@@ -682,8 +696,11 @@ Default property:
682
696
  - The device RAM must be larger than 8GB
683
697
  - iOS: Recommended use M1+ / A17+ chip device. Supported GPU acceleration by Metal.
684
698
  - macOS: Recommended use M1+ chip device. Supported GPU acceleration by Metal.
685
- - Android: Recommended use Android 13+ system. Supported GPU acceleration by OpenCL, currently only for Qualcomm Adreno 700+ GPUs, other GPUs are not supported.
686
- - Linux / Windows: Supported GPU acceleration, you can choose `vulkan` or `cuda` backend in Accel Variant property */
699
+ - Android: Recommended use Android 13+ system.
700
+ - Supported GPU acceleration by OpenCL, currently only for Qualcomm Adreno 700+ GPUs, other GPUs are not supported.
701
+ - Supported Hexagon NPU for Qualcomm Snapdragon 8 Gen 1+ GPUs.
702
+ - Linux / Windows [@nextline - Supported GPU acceleration, you can choose `vulkan` or `cuda` backend in Accel Variant property
703
+ - Supported Hexagon NPU for Qualcomm Dragonwing IQ9 series+ (Linux) */
687
704
  export type GeneratorLLM = Generator &
688
705
  GeneratorLLMDef & {
689
706
  templateKey: 'GENERATOR_LLM'
@@ -1,3 +1,4 @@
1
+ /* Auto generated by build script */
1
2
  import type { SwitchCondInnerStateCurrentCanvas, SwitchCondData, SwitchDef } from '../switch'
2
3
  import type { Data, DataLink } from '../data'
3
4
  import type {
@@ -1,3 +1,4 @@
1
+ /* Auto generated by build script */
1
2
  import type { SwitchCondInnerStateCurrentCanvas, SwitchCondData, SwitchDef } from '../switch'
2
3
  import type { Data, DataLink } from '../data'
3
4
  import type {
@@ -1,3 +1,4 @@
1
+ /* Auto generated by build script */
1
2
  import type { SwitchCondInnerStateCurrentCanvas, SwitchCondData, SwitchDef } from '../switch'
2
3
  import type { Data, DataLink } from '../data'
3
4
  import type {
@@ -1,3 +1,4 @@
1
+ /* Auto generated by build script */
1
2
  import type { SwitchCondInnerStateCurrentCanvas, SwitchCondData, SwitchDef } from '../switch'
2
3
  import type { Data, DataLink } from '../data'
3
4
  import type {
@@ -1,3 +1,4 @@
1
+ /* Auto generated by build script */
1
2
  import type { SwitchCondInnerStateCurrentCanvas, SwitchCondData, SwitchDef } from '../switch'
2
3
  import type { Data, DataLink } from '../data'
3
4
  import type {
@@ -1,3 +1,4 @@
1
+ /* Auto generated by build script */
1
2
  import type { SwitchCondInnerStateCurrentCanvas, SwitchCondData, SwitchDef } from '../switch'
2
3
  import type { Data, DataLink } from '../data'
3
4
  import type {
@@ -1,3 +1,4 @@
1
+ /* Auto generated by build script */
1
2
  import type { SwitchCondInnerStateCurrentCanvas, SwitchCondData, SwitchDef } from '../switch'
2
3
  import type { Data, DataLink } from '../data'
3
4
  import type {
@@ -1,3 +1,4 @@
1
+ /* Auto generated by build script */
1
2
  import type { SwitchCondInnerStateCurrentCanvas, SwitchCondData, SwitchDef } from '../switch'
2
3
  import type { Data, DataLink } from '../data'
3
4
  import type {
@@ -1,3 +1,4 @@
1
+ /* Auto generated by build script */
1
2
  import type { SwitchCondInnerStateCurrentCanvas, SwitchCondData, SwitchDef } from '../switch'
2
3
  import type { Data, DataLink } from '../data'
3
4
  import type {
@@ -252,6 +253,13 @@ Default property:
252
253
  manuallyStart?: boolean | DataLink
253
254
  recordDuration?: number | DataLink
254
255
  }
256
+ codeScanOptions?:
257
+ | DataLink
258
+ | {
259
+ inputSource?: 'camera' | 'hid-barcode-scanner' | DataLink
260
+ hidFlushMode?: 'enter-key' | 'timeout' | DataLink
261
+ hidFlushTimeout?: number | DataLink
262
+ }
255
263
  messageOptions?:
256
264
  | DataLink
257
265
  | {
@@ -1,3 +1,4 @@
1
+ /* Auto generated by build script */
1
2
  import type { SwitchCondInnerStateCurrentCanvas, SwitchCondData, SwitchDef } from '../switch'
2
3
  import type { Data, DataLink } from '../data'
3
4
  import type {
@@ -1,3 +1,4 @@
1
+ /* Auto generated by build script */
1
2
  import type { SwitchCondInnerStateCurrentCanvas, SwitchCondData, SwitchDef } from '../switch'
2
3
  import type { Data, DataLink } from '../data'
3
4
  import type {
@@ -67,18 +68,19 @@ Default property:
67
68
  batchSize?: number | DataLink
68
69
  /* Physical maximum batch size (default: 512) */
69
70
  uBatchSize?: number | DataLink
70
- /* Accelerator variant (default: default) */
71
- accelVariant?:
72
- | 'default'
73
- | 'avx'
74
- | 'avx2'
75
- | 'avx512'
76
- | 'metal'
77
- | 'opencl'
78
- | 'vulkan'
79
- | 'cuda'
80
- | 'rocm'
81
- | DataLink
71
+ /* GGML accelerator variant (Only for desktop)
72
+ `default` - CPU / Metal (macOS)
73
+ `vulkan` - Use Vulkan
74
+ `cuda` - Use CUDA
75
+ `snapdragon` - Use OpenCL/Hexagon of Qualcomm Snapdragon */
76
+ accelVariant?: 'default' | 'vulkan' | 'cuda' | 'snapdragon' | DataLink
77
+ /* Devices. For example:
78
+
79
+ Metal or CPU for iOS/tvOS/MacOS
80
+ OpenCL or CPU for Android
81
+ - Add `HTP0`, `HTP1`, `...` for OpenCL/Hexagon devices (Use HTP* for all HTP devices)
82
+ For Desktop, you may want to include/exclude GPUs */
83
+ devices?: Array<string | DataLink> | DataLink
82
84
  /* Main GPU index (default: 0) */
83
85
  mainGpu?: number | DataLink
84
86
  /* Number of layers to store in VRAM (default: 0) */
@@ -122,10 +124,14 @@ Default property:
122
124
 
123
125
  ## Notice
124
126
  - The device RAM must be larger than 8GB
125
- - iOS: Supported GPU acceleration, recommended use M1+ / A17+ chip device
126
- - macOS: Supported GPU acceleration, recommended use M1+ chip device
127
- - Android: Currently not supported GPU acceleration (Coming soon), recommended use Android 13+ system
128
- - Linux / Windows: Supported GPU acceleration, currently only Vulkan backend available */
127
+ - iOS: Recommended use M1+ / A17+ chip device. Supported GPU acceleration by Metal.
128
+ - macOS: Recommended use M1+ chip device. Supported GPU acceleration by Metal.
129
+ - Android: Recommended use Android 13+ system.
130
+ - Supported GPU acceleration by OpenCL, currently only for Qualcomm Adreno 700+ GPUs, other GPUs are not supported.
131
+ - Supported Hexagon NPU for Qualcomm Snapdragon 8 Gen 2+ GPUs.
132
+ - Linux / Windows
133
+ - Supported GPU acceleration, you can choose `vulkan` or `cuda` backend in Accel Variant property
134
+ - Supported Hexagon NPU for Qualcomm Dragonwing IQ9 series+ (Linux) */
129
135
  export type GeneratorReranker = Generator &
130
136
  GeneratorRerankerDef & {
131
137
  templateKey: 'GENERATOR_RERANKER'
@@ -1,3 +1,4 @@
1
+ /* Auto generated by build script */
1
2
  import type { SwitchCondInnerStateCurrentCanvas, SwitchCondData, SwitchDef } from '../switch'
2
3
  import type { Data, DataLink } from '../data'
3
4
  import type {
@@ -1,3 +1,4 @@
1
+ /* Auto generated by build script */
1
2
  import type { SwitchCondInnerStateCurrentCanvas, SwitchCondData, SwitchDef } from '../switch'
2
3
  import type { Data, DataLink } from '../data'
3
4
  import type {
@@ -1,3 +1,4 @@
1
+ /* Auto generated by build script */
1
2
  import type { SwitchCondInnerStateCurrentCanvas, SwitchCondData, SwitchDef } from '../switch'
2
3
  import type { Data, DataLink } from '../data'
3
4
  import type {
@@ -1,3 +1,4 @@
1
+ /* Auto generated by build script */
1
2
  import type { SwitchCondInnerStateCurrentCanvas, SwitchCondData, SwitchDef } from '../switch'
2
3
  import type { Data, DataLink } from '../data'
3
4
  import type {
@@ -216,7 +217,7 @@ Default property:
216
217
  | 'medium-q5_0'
217
218
  | 'medium-q8_0'
218
219
  | 'medium.en'
219
- | 'medium.en-q5_1'
220
+ | 'medium.en-q5_0'
220
221
  | 'medium.en-q8_0'
221
222
  | 'large-v1'
222
223
  | 'large-v2'
@@ -224,15 +225,14 @@ Default property:
224
225
  | 'large-v2-q8_0'
225
226
  | 'large-v3'
226
227
  | 'large-v3-q5_0'
227
- | 'large-v3-q8_0'
228
228
  | 'large-v3-turbo'
229
229
  | 'large-v3-turbo-q5_0'
230
230
  | 'large-v3-turbo-q8_0'
231
231
  | 'small.en-tdrz'
232
- | 'small.en-tdrz-q5_0'
232
+ | 'small.en-tdrz-q5_1'
233
233
  | 'small.en-tdrz-q8_0'
234
234
  | 'distil-small.en'
235
- | 'distil-small.en-q5_0'
235
+ | 'distil-small.en-q5_1'
236
236
  | 'distil-small.en-q8_0'
237
237
  | 'distil-medium.en'
238
238
  | 'distil-medium.en-q5_0'
@@ -1,3 +1,4 @@
1
+ /* Auto generated by build script */
1
2
  import type { SwitchCondInnerStateCurrentCanvas, SwitchCondData, SwitchDef } from '../switch'
2
3
  import type { Data, DataLink } from '../data'
3
4
  import type {
@@ -1,3 +1,4 @@
1
+ /* Auto generated by build script */
1
2
  import type { SwitchCondInnerStateCurrentCanvas, SwitchCondData, SwitchDef } from '../switch'
2
3
  import type { Data, DataLink } from '../data'
3
4
  import type {
@@ -1,3 +1,4 @@
1
+ /* Auto generated by build script */
1
2
  import type { SwitchCondInnerStateCurrentCanvas, SwitchCondData, SwitchDef } from '../switch'
2
3
  import type { Data, DataLink } from '../data'
3
4
  import type {
@@ -1,3 +1,4 @@
1
+ /* Auto generated by build script */
1
2
  import type { SwitchCondInnerStateCurrentCanvas, SwitchCondData, SwitchDef } from '../switch'
2
3
  import type { Data, DataLink } from '../data'
3
4
  import type {
@@ -1,3 +1,4 @@
1
+ /* Auto generated by build script */
1
2
  import type { SwitchCondInnerStateCurrentCanvas, SwitchCondData, SwitchDef } from '../switch'
2
3
  import type { Data, DataLink } from '../data'
3
4
  import type {
@@ -1,3 +1,4 @@
1
+ /* Auto generated by build script */
1
2
  import type { SwitchCondInnerStateCurrentCanvas, SwitchCondData, SwitchDef } from '../switch'
2
3
  import type { Data, DataLink } from '../data'
3
4
  import type {
@@ -1,3 +1,4 @@
1
+ /* Auto generated by build script */
1
2
  import type { SwitchCondInnerStateCurrentCanvas, SwitchCondData, SwitchDef } from '../switch'
2
3
  import type { Data, DataLink } from '../data'
3
4
  import type {
@@ -129,8 +130,16 @@ Default property:
129
130
  /* Accelerator variant (Only for desktop)
130
131
  `default` - CPU / Metal (macOS)
131
132
  `vulkan` - Use Vulkan
132
- `cuda` - Use CUDA */
133
- accelVariant?: 'default' | 'vulkan' | 'cuda' | DataLink
133
+ `cuda` - Use CUDA
134
+ `snapdragon` - Use OpenCL/Hexagon of Qualcomm Snapdragon */
135
+ accelVariant?: 'default' | 'vulkan' | 'cuda' | 'snapdragon' | DataLink
136
+ /* Devices. For example:
137
+
138
+ Metal or CPU for iOS/tvOS/MacOS
139
+ OpenCL or CPU for Android
140
+ - Add `HTP0`, `HTP1`, `...` for OpenCL/Hexagon devices (Use HTP* for all HTP devices)
141
+ For Desktop, you may want to include/exclude GPUs */
142
+ devices?: Array<string | DataLink> | DataLink
134
143
  /* Main GPU index */
135
144
  mainGpu?: number | DataLink
136
145
  /* Number of GPU layers (NOTE: Currently not supported for Android) */
@@ -159,7 +168,18 @@ Default property:
159
168
  }
160
169
 
161
170
  /* Local Text-to-Speech (TTS) inference based on GGML and [llama.cpp](https://github.com/ggerganov/llama.cpp)
162
- You can use any converted model on HuggingFace. */
171
+ You can use any converted model on HuggingFace.
172
+
173
+ ## Notice
174
+ - The device RAM must be larger than 8GB
175
+ - iOS: Recommended use M1+ / A17+ chip device. Supported GPU acceleration by Metal.
176
+ - macOS: Recommended use M1+ chip device. Supported GPU acceleration by Metal.
177
+ - Android: Recommended use Android 13+ system.
178
+ - Supported GPU acceleration by OpenCL, currently only for Qualcomm Adreno 700+ GPUs, other GPUs are not supported.
179
+ - Supported Hexagon NPU for Qualcomm Snapdragon 8 Gen 2+ GPUs.
180
+ - Linux / Windows
181
+ - Supported GPU acceleration, you can choose `vulkan` or `cuda` backend in Accel Variant property
182
+ - Supported Hexagon NPU for Qualcomm Dragonwing IQ9 series+ (Linux) */
163
183
  export type GeneratorGGMLTTS = Generator &
164
184
  GeneratorGGMLTTSDef & {
165
185
  templateKey: 'GENERATOR_GGML_TTS'
@@ -1,3 +1,4 @@
1
+ /* Auto generated by build script */
1
2
  import type { SwitchCondInnerStateCurrentCanvas, SwitchCondData, SwitchDef } from '../switch'
2
3
  import type { Data, DataLink } from '../data'
3
4
  import type {
@@ -1,3 +1,4 @@
1
+ /* Auto generated by build script */
1
2
  import type { SwitchCondInnerStateCurrentCanvas, SwitchCondData, SwitchDef } from '../switch'
2
3
  import type { Data, DataLink } from '../data'
3
4
  import type {
@@ -1,3 +1,4 @@
1
+ /* Auto generated by build script */
1
2
  import type { SwitchCondInnerStateCurrentCanvas, SwitchCondData, SwitchDef } from '../switch'
2
3
  import type { Data, DataLink } from '../data'
3
4
  import type {
@@ -1,3 +1,4 @@
1
+ /* Auto generated by build script */
1
2
  import type { SwitchCondInnerStateCurrentCanvas, SwitchCondData, SwitchDef } from '../switch'
2
3
  import type { Data, DataLink } from '../data'
3
4
  import type {
@@ -1,3 +1,4 @@
1
+ /* Auto generated by build script */
1
2
  import type { SwitchCondInnerStateCurrentCanvas, SwitchCondData, SwitchDef } from '../switch'
2
3
  import type { Data, DataLink } from '../data'
3
4
  import type {
@@ -1,3 +1,4 @@
1
+ /* Auto generated by build script */
1
2
  import type { SwitchCondInnerStateCurrentCanvas, SwitchCondData, SwitchDef } from '../switch'
2
3
  import type { Data, DataLink } from '../data'
3
4
  import type {
@@ -113,7 +114,7 @@ interface GeneratorVadInferenceDef {
113
114
  Default property:
114
115
  {
115
116
  "init": false,
116
- "modelName": "silero-v5.1.2",
117
+ "modelName": "silero-v6.2.0",
117
118
  "modelUseGPU": true,
118
119
  "modelThreads": 4,
119
120
  "detectThreshold": 0.5,
@@ -131,7 +132,7 @@ Default property:
131
132
  /* Use model name, currently only supports the Silero VAD model.
132
133
  The model download progress will be done in preload stage or the generator initialization stage.
133
134
  You can also choose `custom` option and set `Model URL` and `Model SHA1` to use your own model */
134
- modelName?: 'custom' | 'silero-v5.1.2' | DataLink
135
+ modelName?: 'custom' | 'silero-v6.2.0' | 'silero-v5.1.2' | DataLink
135
136
  /* The URL or path of model
136
137
  We used `ggml` format model, please refer to https://huggingface.co/ggml-org/whisper-vad */
137
138
  modelUrl?: string | DataLink
@@ -1,3 +1,4 @@
1
+ /* Auto generated by build script */
1
2
  import type { SwitchCondInnerStateCurrentCanvas, SwitchCondData, SwitchDef } from '../switch'
2
3
  import type { Data, DataLink } from '../data'
3
4
  import type {
@@ -159,8 +160,19 @@ Default property:
159
160
  ggmlContextSize?: number | DataLink
160
161
  /* Pooling type of ggml model */
161
162
  ggmlPoolingType?: 'none' | 'mean' | 'cls' | 'last' | 'rank' | DataLink
162
- /* Accelerator variant of ggml model */
163
- ggmlAccelVariant?: 'default' | 'vulkan' | 'cuda' | DataLink
163
+ /* GGML accelerator variant (Only for desktop)
164
+ `default` - CPU / Metal (macOS)
165
+ `vulkan` - Use Vulkan
166
+ `cuda` - Use CUDA
167
+ `snapdragon` - Use OpenCL/Hexagon of Qualcomm Snapdragon */
168
+ ggmlAccelVariant?: 'default' | 'vulkan' | 'cuda' | 'snapdragon' | DataLink
169
+ /* Devices. For example:
170
+
171
+ Metal or CPU for iOS/tvOS/MacOS
172
+ OpenCL or CPU for Android
173
+ - Add `HTP0`, `HTP1`, `...` for OpenCL/Hexagon devices (Use HTP* for all HTP devices)
174
+ For Desktop, you may want to include/exclude GPUs */
175
+ ggmlDevices?: Array<string | DataLink> | DataLink
164
176
  /* Normalize */
165
177
  ggmlEmbdNormalize?: number | DataLink
166
178
  /* API key of OpenAI Compatible API */
@@ -1,3 +1,4 @@
1
+ /* Auto generated by build script */
1
2
  import type { SwitchCondInnerStateCurrentCanvas, SwitchCondData, SwitchDef } from '../switch'
2
3
  import type { Data, DataLink } from '../data'
3
4
  import type {
@@ -1,3 +1,4 @@
1
+ /* Auto generated by build script */
1
2
  import type { SwitchCondInnerStateCurrentCanvas, SwitchCondData, SwitchDef } from '../switch'
2
3
  import type { Data, DataLink } from '../data'
3
4
  import type {
@@ -1,3 +1,4 @@
1
+ /* Auto generated by build script */
1
2
  import type { SwitchCondInnerStateCurrentCanvas, SwitchCondData, SwitchDef } from '../switch'
2
3
  import type { Data, DataLink } from '../data'
3
4
  import type {
@@ -1,3 +1,4 @@
1
+ /* Auto generated by build script */
1
2
  import type { SwitchCondInnerStateCurrentCanvas, SwitchCondData, SwitchDef } from '../switch'
2
3
  import type { Data, DataLink } from '../data'
3
4
  import type {
package/types/system.ts CHANGED
@@ -1,3 +1,4 @@
1
+ /* Auto generated by build script */
1
2
  import type {
2
3
  Action,
3
4
  ActionWithDataParams,
package/utils/data.ts CHANGED
@@ -1,3 +1,4 @@
1
+ /* Auto generated by build script */
1
2
  import type { DataLink, Data, Canvas } from '../types'
2
3
  import { makeId } from './id'
3
4
 
@@ -1,3 +1,4 @@
1
+ /* Auto generated by build script */
1
2
  export const templateEventPropsMap = {
2
3
  BRICK_RECT: {},
3
4
  BRICK_TEXT: {},
@@ -945,6 +946,13 @@ export const templateEventPropsMap = {
945
946
  onMessagesUpdate: [
946
947
  'GENERATOR_ASSISTANT_MESSAGES', // type: array
947
948
  ],
949
+ onHeatupFinished: [],
950
+ onGenerating: [],
951
+ onFinished: [
952
+ 'GENERATOR_ASSISTANT_MESSAGES', // type: array
953
+ 'GENERATOR_ASSISTANT_LAST_MESSAGE', // type: object
954
+ 'GENERATOR_ASSISTANT_IS_ERROR', // type: bool
955
+ ],
948
956
  },
949
957
  GENERATOR_VECTOR_STORE: {
950
958
  onError: [