@fugood/bricks-project 2.22.6 → 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 +6 -0
  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 +1 -0
  53. package/types/generators/RealtimeTranscription.ts +1 -0
  54. package/types/generators/RerankerGgml.ts +1 -0
  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 +1 -0
  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 +1 -0
  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.6",
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'
@@ -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 {
@@ -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 {
@@ -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 {
@@ -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 {
@@ -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: [