@fugood/bricks-ctor 2.25.0-beta.8 → 2.25.0-beta.81

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 (137) hide show
  1. package/package.json +4 -24
  2. package/tools/__tests__/legacy-forwarder.test.js +91 -0
  3. package/tools/_forward.ts +26 -0
  4. package/tools/deploy.ts +3 -164
  5. package/tools/mcp-server.ts +3 -27
  6. package/tools/postinstall.ts +3 -234
  7. package/tools/pull.ts +3 -121
  8. package/tools/push-config.ts +4 -0
  9. package/tools/simulator.ts +4 -0
  10. package/compile/__tests__/index.test.js +0 -115
  11. package/compile/action-name-map.ts +0 -1015
  12. package/compile/index.ts +0 -1458
  13. package/compile/util.ts +0 -358
  14. package/index.ts +0 -6
  15. package/skills/bricks-ctor/SKILL.md +0 -32
  16. package/skills/bricks-ctor/rules/animation.md +0 -160
  17. package/skills/bricks-ctor/rules/architecture-patterns.md +0 -69
  18. package/skills/bricks-ctor/rules/automations.md +0 -221
  19. package/skills/bricks-ctor/rules/buttress.md +0 -156
  20. package/skills/bricks-ctor/rules/data-calculation.md +0 -209
  21. package/skills/bricks-ctor/rules/local-sync.md +0 -129
  22. package/skills/bricks-ctor/rules/media-flow.md +0 -158
  23. package/skills/bricks-ctor/rules/remote-data-bank.md +0 -196
  24. package/skills/bricks-ctor/rules/standby-transition.md +0 -124
  25. package/skills/bricks-design/LICENSE.txt +0 -180
  26. package/skills/bricks-design/SKILL.md +0 -66
  27. package/skills/rive-marketplace/SKILL.md +0 -99
  28. package/tools/_git-author.ts +0 -29
  29. package/tools/_shell.ts +0 -173
  30. package/tools/icons/.gitattributes +0 -1
  31. package/tools/icons/fa6pro-glyphmap.json +0 -4686
  32. package/tools/icons/fa6pro-meta.json +0 -1
  33. package/tools/mcp-tools/compile.ts +0 -92
  34. package/tools/mcp-tools/huggingface.ts +0 -762
  35. package/tools/mcp-tools/icons.ts +0 -81
  36. package/tools/mcp-tools/lottie.ts +0 -102
  37. package/tools/mcp-tools/media.ts +0 -110
  38. package/tools/preview-main.mjs +0 -306
  39. package/tools/preview.ts +0 -150
  40. package/types/animation.ts +0 -111
  41. package/types/automation.ts +0 -235
  42. package/types/brick-base.ts +0 -80
  43. package/types/bricks/Camera.ts +0 -246
  44. package/types/bricks/Chart.ts +0 -372
  45. package/types/bricks/GenerativeMedia.ts +0 -290
  46. package/types/bricks/Icon.ts +0 -98
  47. package/types/bricks/Image.ts +0 -126
  48. package/types/bricks/Items.ts +0 -476
  49. package/types/bricks/Lottie.ts +0 -168
  50. package/types/bricks/Maps.ts +0 -262
  51. package/types/bricks/QrCode.ts +0 -117
  52. package/types/bricks/Rect.ts +0 -150
  53. package/types/bricks/RichText.ts +0 -128
  54. package/types/bricks/Rive.ts +0 -220
  55. package/types/bricks/Sketch.ts +0 -254
  56. package/types/bricks/Slideshow.ts +0 -201
  57. package/types/bricks/Svg.ts +0 -99
  58. package/types/bricks/Text.ts +0 -148
  59. package/types/bricks/TextInput.ts +0 -242
  60. package/types/bricks/Video.ts +0 -175
  61. package/types/bricks/VideoStreaming.ts +0 -112
  62. package/types/bricks/WebRtcStream.ts +0 -65
  63. package/types/bricks/WebView.ts +0 -168
  64. package/types/bricks/index.ts +0 -22
  65. package/types/canvas.ts +0 -82
  66. package/types/common.ts +0 -144
  67. package/types/data-calc-command.ts +0 -7005
  68. package/types/data-calc-script.ts +0 -21
  69. package/types/data-calc.ts +0 -11
  70. package/types/data.ts +0 -95
  71. package/types/generators/AlarmClock.ts +0 -110
  72. package/types/generators/Assistant.ts +0 -621
  73. package/types/generators/BleCentral.ts +0 -247
  74. package/types/generators/BlePeripheral.ts +0 -208
  75. package/types/generators/CanvasMap.ts +0 -74
  76. package/types/generators/CastlesPay.ts +0 -87
  77. package/types/generators/DataBank.ts +0 -160
  78. package/types/generators/File.ts +0 -432
  79. package/types/generators/GraphQl.ts +0 -132
  80. package/types/generators/Http.ts +0 -222
  81. package/types/generators/HttpServer.ts +0 -176
  82. package/types/generators/Information.ts +0 -103
  83. package/types/generators/Intent.ts +0 -168
  84. package/types/generators/Iterator.ts +0 -108
  85. package/types/generators/Keyboard.ts +0 -105
  86. package/types/generators/LlmAnthropicCompat.ts +0 -212
  87. package/types/generators/LlmAppleBuiltin.ts +0 -159
  88. package/types/generators/LlmGgml.ts +0 -861
  89. package/types/generators/LlmMediaTekNeuroPilot.ts +0 -235
  90. package/types/generators/LlmMlx.ts +0 -227
  91. package/types/generators/LlmOnnx.ts +0 -213
  92. package/types/generators/LlmOpenAiCompat.ts +0 -312
  93. package/types/generators/LlmQualcommAiEngine.ts +0 -247
  94. package/types/generators/Mcp.ts +0 -637
  95. package/types/generators/McpServer.ts +0 -289
  96. package/types/generators/MediaFlow.ts +0 -170
  97. package/types/generators/MqttBroker.ts +0 -141
  98. package/types/generators/MqttClient.ts +0 -141
  99. package/types/generators/Question.ts +0 -408
  100. package/types/generators/RealtimeTranscription.ts +0 -287
  101. package/types/generators/RerankerGgml.ts +0 -191
  102. package/types/generators/SerialPort.ts +0 -151
  103. package/types/generators/SoundPlayer.ts +0 -94
  104. package/types/generators/SoundRecorder.ts +0 -130
  105. package/types/generators/SpeechToTextGgml.ts +0 -419
  106. package/types/generators/SpeechToTextOnnx.ts +0 -236
  107. package/types/generators/SpeechToTextPlatform.ts +0 -85
  108. package/types/generators/SqLite.ts +0 -159
  109. package/types/generators/Step.ts +0 -107
  110. package/types/generators/SttAppleBuiltin.ts +0 -130
  111. package/types/generators/Tcp.ts +0 -126
  112. package/types/generators/TcpServer.ts +0 -147
  113. package/types/generators/TextToSpeechAppleBuiltin.ts +0 -127
  114. package/types/generators/TextToSpeechGgml.ts +0 -221
  115. package/types/generators/TextToSpeechOnnx.ts +0 -178
  116. package/types/generators/TextToSpeechOpenAiLike.ts +0 -121
  117. package/types/generators/ThermalPrinter.ts +0 -191
  118. package/types/generators/Tick.ts +0 -83
  119. package/types/generators/Udp.ts +0 -120
  120. package/types/generators/VadGgml.ts +0 -250
  121. package/types/generators/VadOnnx.ts +0 -231
  122. package/types/generators/VadTraditional.ts +0 -138
  123. package/types/generators/VectorStore.ts +0 -257
  124. package/types/generators/Watchdog.ts +0 -107
  125. package/types/generators/WebCrawler.ts +0 -103
  126. package/types/generators/WebRtc.ts +0 -181
  127. package/types/generators/WebSocket.ts +0 -148
  128. package/types/generators/index.ts +0 -57
  129. package/types/index.ts +0 -13
  130. package/types/subspace.ts +0 -60
  131. package/types/switch.ts +0 -51
  132. package/types/system.ts +0 -707
  133. package/utils/__tests__/id.test.js +0 -58
  134. package/utils/calc.ts +0 -126
  135. package/utils/data.ts +0 -497
  136. package/utils/event-props.ts +0 -886
  137. package/utils/id.ts +0 -80
@@ -1,159 +0,0 @@
1
- /* Auto generated by build script
2
- *
3
- * LLM inference using Apple Intelligence on iOS/tvOS 26+
4
- *
5
- * ## Features
6
- * - Native Apple Intelligence integration
7
- * - No model download required
8
- * - Privacy-focused on-device processing
9
- * - Optimized for Apple Silicon
10
- * - Requires iOS 26+ or tvOS 26+
11
- */
12
- import type { SwitchCondInnerStateCurrentCanvas, SwitchCondData, SwitchDef } from '../switch'
13
- import type { Data, DataLink } from '../data'
14
- import type {
15
- Brick,
16
- Generator,
17
- EventAction,
18
- ActionWithDataParams,
19
- ActionWithParams,
20
- Action,
21
- EventProperty,
22
- } from '../common'
23
- import type { TemplateEventPropsMap } from '../../utils/event-props'
24
-
25
- /* Load model */
26
- export type GeneratorAppleLLMActionLoadModel = Action & {
27
- __actionName: 'GENERATOR_APPLE_LLM_LOAD_MODEL'
28
- }
29
-
30
- /* Run text completion */
31
- export type GeneratorAppleLLMActionCompletion = ActionWithParams & {
32
- __actionName: 'GENERATOR_APPLE_LLM_COMPLETION'
33
- params?: Array<
34
- | {
35
- input: 'messages'
36
- value?: Array<any> | DataLink | EventProperty
37
- mapping?: string
38
- }
39
- | {
40
- input: 'maxTokens'
41
- value?: number | DataLink | EventProperty
42
- mapping?: string
43
- }
44
- | {
45
- input: 'temperature'
46
- value?: number | DataLink | EventProperty
47
- mapping?: string
48
- }
49
- | {
50
- input: 'topP'
51
- value?: number | DataLink | EventProperty
52
- mapping?: string
53
- }
54
- >
55
- }
56
-
57
- /* Stop text completion */
58
- export type GeneratorAppleLLMActionStopCompletion = Action & {
59
- __actionName: 'GENERATOR_APPLE_LLM_STOP_COMPLETION'
60
- }
61
-
62
- interface GeneratorAppleLLMDef {
63
- /*
64
- Default property:
65
- {
66
- "init": false,
67
- "completionMessages": [
68
- {
69
- "role": "system",
70
- "content": "You are a helpful assistant."
71
- },
72
- {
73
- "role": "user",
74
- "content": "Hello"
75
- }
76
- ],
77
- "completionMaxTokens": 1024,
78
- "completionTemperature": 0.7,
79
- "completionTopP": 0.9
80
- }
81
- */
82
- property?: {
83
- /* Initialize model on generator init */
84
- init?: boolean | DataLink
85
- /* Chat messages (if first message has role 'system', it will be used as system prompt) */
86
- completionMessages?:
87
- | Array<
88
- | DataLink
89
- | {
90
- role?: string | DataLink
91
- content?: string | DataLink
92
- }
93
- >
94
- | DataLink
95
- /* Maximum tokens to generate */
96
- completionMaxTokens?: number | DataLink
97
- /* Temperature (0.0 to 1.0) */
98
- completionTemperature?: number | DataLink
99
- /* Top P sampling */
100
- completionTopP?: number | DataLink
101
- }
102
- events?: {
103
- /* Error event */
104
- onError?: Array<EventAction<string & keyof TemplateEventPropsMap['AppleLlm']['onError']>>
105
- /* Model loaded event */
106
- onModelLoaded?: Array<EventAction>
107
- /* Completion event */
108
- onCompletion?: Array<
109
- EventAction<string & keyof TemplateEventPropsMap['AppleLlm']['onCompletion']>
110
- >
111
- /* Completion finished event */
112
- onCompletionFinished?: Array<
113
- EventAction<string & keyof TemplateEventPropsMap['AppleLlm']['onCompletionFinished']>
114
- >
115
- }
116
- outlets?: {
117
- /* Context state outlet */
118
- contextState?: () => Data<string>
119
- /* Evaluating outlet */
120
- isEvaluating?: () => Data<boolean>
121
- /* Completion result outlet */
122
- completionResult?: () => Data<string>
123
- /* Last token outlet */
124
- completionLastToken?: () => Data<string>
125
- }
126
- }
127
-
128
- /* LLM inference using Apple Intelligence on iOS/tvOS 26+
129
-
130
- ## Features
131
- - Native Apple Intelligence integration
132
- - No model download required
133
- - Privacy-focused on-device processing
134
- - Optimized for Apple Silicon
135
- - Requires iOS 26+ or tvOS 26+ */
136
- export type GeneratorAppleLLM = Generator &
137
- GeneratorAppleLLMDef & {
138
- templateKey: 'GENERATOR_APPLE_LLM'
139
- switches?: Array<
140
- SwitchDef &
141
- GeneratorAppleLLMDef & {
142
- conds?: Array<{
143
- method: '==' | '!=' | '>' | '<' | '>=' | '<='
144
- cond:
145
- | SwitchCondInnerStateCurrentCanvas
146
- | SwitchCondData
147
- | {
148
- __typename: 'SwitchCondInnerStateOutlet'
149
- outlet:
150
- | 'contextState'
151
- | 'isEvaluating'
152
- | 'completionResult'
153
- | 'completionLastToken'
154
- value: any
155
- }
156
- }>
157
- }
158
- >
159
- }