@fugood/bricks-project 2.24.0-beta.3 → 2.24.0-beta.30

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