@fugood/bricks-project 2.24.0-beta.4 → 2.24.0-beta.41
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.
- package/compile/action-name-map.ts +38 -0
- package/compile/index.ts +429 -160
- package/compile/util.ts +2 -0
- package/package.json +7 -3
- package/package.json.bak +27 -0
- package/skills/{bricks-project → bricks-ctor}/SKILL.md +2 -2
- package/skills/{bricks-project → bricks-ctor}/rules/animation.md +1 -1
- package/skills/{bricks-project → bricks-ctor}/rules/architecture-patterns.md +7 -0
- package/skills/bricks-ctor/rules/automations.md +221 -0
- package/skills/{bricks-project → bricks-ctor}/rules/buttress.md +10 -7
- package/skills/{bricks-project → bricks-ctor}/rules/data-calculation.md +1 -1
- package/skills/{bricks-project → bricks-ctor}/rules/local-sync.md +2 -2
- package/skills/{bricks-project → bricks-ctor}/rules/media-flow.md +3 -3
- package/skills/{bricks-project → bricks-ctor}/rules/remote-data-bank.md +6 -6
- package/skills/{bricks-project → bricks-ctor}/rules/standby-transition.md +1 -1
- package/skills/bricks-design/LICENSE.txt +180 -0
- package/skills/bricks-design/SKILL.md +66 -0
- package/tools/deploy.ts +66 -12
- package/tools/icons/fa6pro-meta.json +3669 -26125
- package/tools/mcp-server.ts +11 -878
- package/tools/mcp-tools/compile.ts +91 -0
- package/tools/mcp-tools/huggingface.ts +762 -0
- package/tools/mcp-tools/icons.ts +70 -0
- package/tools/mcp-tools/lottie.ts +102 -0
- package/tools/mcp-tools/media.ts +110 -0
- package/tools/postinstall.ts +137 -40
- package/tools/preview-main.mjs +146 -9
- package/tools/preview.ts +30 -2
- package/tools/pull.ts +37 -19
- package/tsconfig.json +16 -0
- package/types/animation.ts +4 -0
- package/types/automation.ts +4 -1
- package/types/brick-base.ts +1 -1
- package/types/bricks/Camera.ts +48 -13
- package/types/bricks/Chart.ts +10 -4
- package/types/bricks/GenerativeMedia.ts +30 -14
- package/types/bricks/Icon.ts +9 -5
- package/types/bricks/Image.ts +10 -6
- package/types/bricks/Items.ts +29 -15
- package/types/bricks/Lottie.ts +15 -7
- package/types/bricks/Maps.ts +16 -8
- package/types/bricks/QrCode.ts +9 -5
- package/types/bricks/Rect.ts +45 -6
- package/types/bricks/RichText.ts +9 -5
- package/types/bricks/Rive.ts +21 -11
- package/types/bricks/Slideshow.ts +20 -10
- package/types/bricks/Svg.ts +8 -4
- package/types/bricks/Text.ts +9 -5
- package/types/bricks/TextInput.ts +23 -13
- package/types/bricks/Video.ts +11 -7
- package/types/bricks/VideoStreaming.ts +8 -4
- package/types/bricks/WebRtcStream.ts +7 -3
- package/types/bricks/WebView.ts +12 -8
- package/types/canvas.ts +4 -2
- package/types/common.ts +19 -12
- package/types/data-calc-command.ts +2 -0
- package/types/data-calc.ts +1 -0
- package/types/data.ts +2 -0
- package/types/generators/AlarmClock.ts +17 -11
- package/types/generators/Assistant.ts +69 -18
- package/types/generators/BleCentral.ts +31 -11
- package/types/generators/BlePeripheral.ts +11 -7
- package/types/generators/CanvasMap.ts +10 -6
- package/types/generators/CastlesPay.ts +15 -7
- package/types/generators/DataBank.ts +44 -9
- package/types/generators/File.ts +109 -30
- package/types/generators/GraphQl.ts +12 -6
- package/types/generators/Http.ts +33 -10
- package/types/generators/HttpServer.ts +23 -15
- package/types/generators/Information.ts +9 -5
- package/types/generators/Intent.ts +15 -5
- package/types/generators/Iterator.ts +15 -11
- package/types/generators/Keyboard.ts +27 -13
- package/types/generators/LlmAnthropicCompat.ts +33 -11
- package/types/generators/LlmAppleBuiltin.ts +25 -10
- package/types/generators/LlmGgml.ts +140 -31
- package/types/generators/LlmMediaTekNeuroPilot.ts +235 -0
- package/types/generators/LlmMlx.ts +227 -0
- package/types/generators/LlmOnnx.ts +34 -14
- package/types/generators/LlmOpenAiCompat.ts +47 -11
- package/types/generators/LlmQualcommAiEngine.ts +45 -13
- package/types/generators/Mcp.ts +375 -34
- package/types/generators/McpServer.ts +58 -19
- package/types/generators/MediaFlow.ts +38 -12
- package/types/generators/MqttBroker.ts +29 -11
- package/types/generators/MqttClient.ts +19 -9
- package/types/generators/Question.ts +13 -9
- package/types/generators/RealtimeTranscription.ts +108 -19
- package/types/generators/RerankerGgml.ts +43 -12
- package/types/generators/SerialPort.ts +18 -10
- package/types/generators/SoundPlayer.ts +10 -4
- package/types/generators/SoundRecorder.ts +24 -9
- package/types/generators/SpeechToTextGgml.ts +52 -18
- package/types/generators/SpeechToTextOnnx.ts +18 -11
- package/types/generators/SpeechToTextPlatform.ts +15 -7
- package/types/generators/SqLite.ts +20 -10
- package/types/generators/Step.ts +9 -5
- package/types/generators/SttAppleBuiltin.ts +22 -9
- package/types/generators/Tcp.ts +13 -9
- package/types/generators/TcpServer.ts +20 -14
- package/types/generators/TextToSpeechAppleBuiltin.ts +21 -8
- package/types/generators/TextToSpeechGgml.ts +29 -11
- package/types/generators/TextToSpeechOnnx.ts +19 -12
- package/types/generators/TextToSpeechOpenAiLike.ts +14 -8
- package/types/generators/ThermalPrinter.ts +13 -9
- package/types/generators/Tick.ts +11 -7
- package/types/generators/Udp.ts +17 -8
- package/types/generators/VadGgml.ts +51 -14
- package/types/generators/VadOnnx.ts +42 -12
- package/types/generators/VadTraditional.ts +28 -13
- package/types/generators/VectorStore.ts +33 -12
- package/types/generators/Watchdog.ts +19 -10
- package/types/generators/WebCrawler.ts +11 -7
- package/types/generators/WebRtc.ts +30 -16
- package/types/generators/WebSocket.ts +11 -7
- package/types/generators/index.ts +2 -0
- package/types/subspace.ts +3 -0
- package/types/system.ts +1 -1
- package/utils/calc.ts +12 -8
- package/utils/event-props.ts +833 -1022
- package/utils/id.ts +4 -0
- package/api/index.ts +0 -1
- package/api/instance.ts +0 -213
- package/skills/bricks-project/rules/automations.md +0 -175
- package/types/generators/TextToSpeechApple.ts +0 -113
- 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',
|