@fugood/bricks-project 2.24.0-beta.4 → 2.24.0-beta.40

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 (125) hide show
  1. package/compile/action-name-map.ts +38 -0
  2. package/compile/index.ts +429 -160
  3. package/compile/util.ts +2 -0
  4. package/package.json +7 -3
  5. package/package.json.bak +27 -0
  6. package/skills/bricks-design/LICENSE.txt +180 -0
  7. package/skills/bricks-design/SKILL.md +66 -0
  8. package/skills/bricks-project/SKILL.md +2 -2
  9. package/skills/bricks-project/rules/animation.md +1 -1
  10. package/skills/bricks-project/rules/architecture-patterns.md +7 -0
  11. package/skills/bricks-project/rules/automations.md +74 -28
  12. package/skills/bricks-project/rules/buttress.md +10 -7
  13. package/skills/bricks-project/rules/data-calculation.md +1 -1
  14. package/skills/bricks-project/rules/local-sync.md +2 -2
  15. package/skills/bricks-project/rules/media-flow.md +3 -3
  16. package/skills/bricks-project/rules/remote-data-bank.md +6 -6
  17. package/skills/bricks-project/rules/standby-transition.md +1 -1
  18. package/tools/deploy.ts +66 -12
  19. package/tools/icons/fa6pro-meta.json +3669 -26125
  20. package/tools/mcp-server.ts +11 -878
  21. package/tools/mcp-tools/compile.ts +91 -0
  22. package/tools/mcp-tools/huggingface.ts +762 -0
  23. package/tools/mcp-tools/icons.ts +70 -0
  24. package/tools/mcp-tools/lottie.ts +102 -0
  25. package/tools/mcp-tools/media.ts +110 -0
  26. package/tools/postinstall.ts +137 -40
  27. package/tools/preview-main.mjs +146 -9
  28. package/tools/preview.ts +30 -2
  29. package/tools/pull.ts +37 -19
  30. package/tsconfig.json +16 -0
  31. package/types/animation.ts +4 -0
  32. package/types/automation.ts +4 -1
  33. package/types/brick-base.ts +1 -1
  34. package/types/bricks/Camera.ts +48 -13
  35. package/types/bricks/Chart.ts +10 -4
  36. package/types/bricks/GenerativeMedia.ts +30 -14
  37. package/types/bricks/Icon.ts +9 -5
  38. package/types/bricks/Image.ts +10 -6
  39. package/types/bricks/Items.ts +29 -15
  40. package/types/bricks/Lottie.ts +15 -7
  41. package/types/bricks/Maps.ts +16 -8
  42. package/types/bricks/QrCode.ts +9 -5
  43. package/types/bricks/Rect.ts +45 -6
  44. package/types/bricks/RichText.ts +9 -5
  45. package/types/bricks/Rive.ts +21 -11
  46. package/types/bricks/Slideshow.ts +20 -10
  47. package/types/bricks/Svg.ts +8 -4
  48. package/types/bricks/Text.ts +9 -5
  49. package/types/bricks/TextInput.ts +23 -13
  50. package/types/bricks/Video.ts +11 -7
  51. package/types/bricks/VideoStreaming.ts +8 -4
  52. package/types/bricks/WebRtcStream.ts +7 -3
  53. package/types/bricks/WebView.ts +12 -8
  54. package/types/canvas.ts +4 -2
  55. package/types/common.ts +19 -12
  56. package/types/data-calc-command.ts +2 -0
  57. package/types/data-calc.ts +1 -0
  58. package/types/data.ts +2 -0
  59. package/types/generators/AlarmClock.ts +17 -11
  60. package/types/generators/Assistant.ts +69 -18
  61. package/types/generators/BleCentral.ts +31 -11
  62. package/types/generators/BlePeripheral.ts +11 -7
  63. package/types/generators/CanvasMap.ts +10 -6
  64. package/types/generators/CastlesPay.ts +15 -7
  65. package/types/generators/DataBank.ts +44 -9
  66. package/types/generators/File.ts +109 -30
  67. package/types/generators/GraphQl.ts +12 -6
  68. package/types/generators/Http.ts +33 -10
  69. package/types/generators/HttpServer.ts +23 -15
  70. package/types/generators/Information.ts +9 -5
  71. package/types/generators/Intent.ts +15 -5
  72. package/types/generators/Iterator.ts +15 -11
  73. package/types/generators/Keyboard.ts +27 -13
  74. package/types/generators/LlmAnthropicCompat.ts +33 -11
  75. package/types/generators/LlmAppleBuiltin.ts +25 -10
  76. package/types/generators/LlmGgml.ts +140 -31
  77. package/types/generators/LlmMediaTekNeuroPilot.ts +235 -0
  78. package/types/generators/LlmMlx.ts +227 -0
  79. package/types/generators/LlmOnnx.ts +34 -14
  80. package/types/generators/LlmOpenAiCompat.ts +47 -11
  81. package/types/generators/LlmQualcommAiEngine.ts +45 -13
  82. package/types/generators/Mcp.ts +375 -34
  83. package/types/generators/McpServer.ts +58 -19
  84. package/types/generators/MediaFlow.ts +38 -12
  85. package/types/generators/MqttBroker.ts +29 -11
  86. package/types/generators/MqttClient.ts +19 -9
  87. package/types/generators/Question.ts +13 -9
  88. package/types/generators/RealtimeTranscription.ts +108 -19
  89. package/types/generators/RerankerGgml.ts +43 -12
  90. package/types/generators/SerialPort.ts +18 -10
  91. package/types/generators/SoundPlayer.ts +10 -4
  92. package/types/generators/SoundRecorder.ts +24 -9
  93. package/types/generators/SpeechToTextGgml.ts +52 -18
  94. package/types/generators/SpeechToTextOnnx.ts +18 -11
  95. package/types/generators/SpeechToTextPlatform.ts +15 -7
  96. package/types/generators/SqLite.ts +20 -10
  97. package/types/generators/Step.ts +9 -5
  98. package/types/generators/SttAppleBuiltin.ts +22 -9
  99. package/types/generators/Tcp.ts +13 -9
  100. package/types/generators/TcpServer.ts +20 -14
  101. package/types/generators/TextToSpeechAppleBuiltin.ts +21 -8
  102. package/types/generators/TextToSpeechGgml.ts +29 -11
  103. package/types/generators/TextToSpeechOnnx.ts +19 -12
  104. package/types/generators/TextToSpeechOpenAiLike.ts +14 -8
  105. package/types/generators/ThermalPrinter.ts +13 -9
  106. package/types/generators/Tick.ts +11 -7
  107. package/types/generators/Udp.ts +17 -8
  108. package/types/generators/VadGgml.ts +51 -14
  109. package/types/generators/VadOnnx.ts +42 -12
  110. package/types/generators/VadTraditional.ts +28 -13
  111. package/types/generators/VectorStore.ts +33 -12
  112. package/types/generators/Watchdog.ts +19 -10
  113. package/types/generators/WebCrawler.ts +11 -7
  114. package/types/generators/WebRtc.ts +30 -16
  115. package/types/generators/WebSocket.ts +11 -7
  116. package/types/generators/index.ts +2 -0
  117. package/types/subspace.ts +3 -0
  118. package/types/system.ts +1 -1
  119. package/utils/calc.ts +12 -8
  120. package/utils/event-props.ts +833 -1022
  121. package/utils/id.ts +4 -0
  122. package/api/index.ts +0 -1
  123. package/api/instance.ts +0 -213
  124. package/types/generators/TextToSpeechApple.ts +0 -113
  125. package/types/generators/TtsAppleBuiltin.ts +0 -105
@@ -702,6 +702,8 @@ export const templateActionNameMap = {
702
702
  parallelToolCalls: 'GENERATOR_LLM_PARALLEL_TOOL_CALLS',
703
703
  toolChoice: 'GENERATOR_LLM_TOOL_CHOICE',
704
704
  enableThinking: 'GENERATOR_LLM_ENABLE_THINKING',
705
+ thinkingBudgetTokens: 'GENERATOR_LLM_THINKING_BUDGET_TOKENS',
706
+ thinkingBudgetMessage: 'GENERATOR_LLM_THINKING_BUDGET_MESSAGE',
705
707
  prompt: 'GENERATOR_LLM_PROMPT',
706
708
  promptMediaPaths: 'GENERATOR_LLM_PROMPT_MEDIA_PATHS',
707
709
  promptTemplateData: 'GENERATOR_LLM_PROMPT_TEMPLATE_DATA',
@@ -710,6 +712,7 @@ export const templateActionNameMap = {
710
712
  chatTemplateKwargs: 'GENERATOR_LLM_CHAT_TEMPLATE_KWARGS',
711
713
  addGenerationPrompt: 'GENERATOR_LLM_ADD_GENERATION_PROMPT',
712
714
  now: 'GENERATOR_LLM_NOW',
715
+ forcePureContent: 'GENERATOR_LLM_FORCE_PURE_CONTENT',
713
716
  },
714
717
  GENERATOR_LLM_COMPLETION: {
715
718
  sessionKey: 'GENERATOR_LLM_SESSION_KEY',
@@ -719,6 +722,8 @@ export const templateActionNameMap = {
719
722
  parallelToolCalls: 'GENERATOR_LLM_PARALLEL_TOOL_CALLS',
720
723
  toolChoice: 'GENERATOR_LLM_TOOL_CHOICE',
721
724
  enableThinking: 'GENERATOR_LLM_ENABLE_THINKING',
725
+ thinkingBudgetTokens: 'GENERATOR_LLM_THINKING_BUDGET_TOKENS',
726
+ thinkingBudgetMessage: 'GENERATOR_LLM_THINKING_BUDGET_MESSAGE',
722
727
  useReasoningFormat: 'GENERATOR_LLM_USE_REASONING_FORMAT',
723
728
  prompt: 'GENERATOR_LLM_PROMPT',
724
729
  promptMediaPaths: 'GENERATOR_LLM_PROMPT_MEDIA_PATHS',
@@ -728,6 +733,7 @@ export const templateActionNameMap = {
728
733
  chatTemplateKwargs: 'GENERATOR_LLM_CHAT_TEMPLATE_KWARGS',
729
734
  addGenerationPrompt: 'GENERATOR_LLM_ADD_GENERATION_PROMPT',
730
735
  now: 'GENERATOR_LLM_NOW',
736
+ forcePureContent: 'GENERATOR_LLM_FORCE_PURE_CONTENT',
731
737
  grammar: 'GENERATOR_LLM_GRAMMAR',
732
738
  stopWords: 'GENERATOR_LLM_STOP_WORDS',
733
739
  predict: 'GENERATOR_LLM_PREDICT',
@@ -772,6 +778,20 @@ export const templateActionNameMap = {
772
778
  documents: 'GENERATOR_RERANKER_DOCUMENTS',
773
779
  },
774
780
  },
781
+ GENERATOR_MLX_LLM: {
782
+ GENERATOR_MLX_LLM_LOAD_MODEL: {
783
+ modelId: 'GENERATOR_MLX_LLM_MODEL_ID',
784
+ vlm: 'GENERATOR_MLX_LLM_VLM',
785
+ },
786
+ GENERATOR_MLX_LLM_COMPLETION: {
787
+ messages: 'GENERATOR_MLX_LLM_MESSAGES',
788
+ tools: 'GENERATOR_MLX_LLM_TOOLS',
789
+ maxTokens: 'GENERATOR_MLX_LLM_MAX_TOKENS',
790
+ temperature: 'GENERATOR_MLX_LLM_TEMPERATURE',
791
+ topP: 'GENERATOR_MLX_LLM_TOP_P',
792
+ repetitionPenalty: 'GENERATOR_MLX_LLM_REPETITION_PENALTY',
793
+ },
794
+ },
775
795
  GENERATOR_QNN_LLM: {
776
796
  GENERATOR_QNN_LLM_PROCESS: {
777
797
  prompt: 'GENERATOR_QNN_LLM_PROMPT',
@@ -784,6 +804,24 @@ export const templateActionNameMap = {
784
804
  tools: 'GENERATOR_QNN_LLM_TOOLS',
785
805
  },
786
806
  },
807
+ GENERATOR_NEUROPILOT_LLM: {
808
+ GENERATOR_NEUROPILOT_LLM_LOAD_MODEL: {
809
+ runnerPath: 'GENERATOR_NEUROPILOT_LLM_RUNNER_PATH',
810
+ configPath: 'GENERATOR_NEUROPILOT_LLM_CONFIG_PATH',
811
+ workingDirectory: 'GENERATOR_NEUROPILOT_LLM_WORKING_DIRECTORY',
812
+ libraryPaths: 'GENERATOR_NEUROPILOT_LLM_LIBRARY_PATHS',
813
+ daemonHost: 'GENERATOR_NEUROPILOT_LLM_DAEMON_HOST',
814
+ daemonPort: 'GENERATOR_NEUROPILOT_LLM_DAEMON_PORT',
815
+ daemonSocketName: 'GENERATOR_NEUROPILOT_LLM_DAEMON_SOCKET_NAME',
816
+ daemonSocketNamespace: 'GENERATOR_NEUROPILOT_LLM_DAEMON_SOCKET_NAMESPACE',
817
+ },
818
+ GENERATOR_NEUROPILOT_LLM_GENERATE: {
819
+ prompt: 'GENERATOR_NEUROPILOT_LLM_PROMPT',
820
+ messages: 'GENERATOR_NEUROPILOT_LLM_MESSAGES',
821
+ maxNewTokens: 'GENERATOR_NEUROPILOT_LLM_MAX_NEW_TOKENS',
822
+ preformatter: 'GENERATOR_NEUROPILOT_LLM_PREFORMATTER',
823
+ },
824
+ },
787
825
  GENERATOR_OPENAI_LLM: {
788
826
  GENERATOR_OPENAI_LLM_COMPLETION: {
789
827
  messages: 'GENERATOR_OPENAI_LLM_MESSAGES',