@fugood/bricks-ctor 2.25.0-beta.60 → 2.25.0-beta.61
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/package.json +4 -28
- package/tools/deploy.ts +19 -176
- package/tools/mcp-server.ts +16 -33
- package/tools/postinstall.ts +21 -292
- package/tools/pull.ts +15 -195
- package/tools/push-config.ts +18 -113
- package/tools/simulator.ts +19 -148
- package/compile/__tests__/config-diff.test.js +0 -100
- package/compile/__tests__/index.test.js +0 -461
- package/compile/__tests__/util.test.js +0 -450
- package/compile/action-name-map.ts +0 -1079
- package/compile/config-diff.ts +0 -155
- package/compile/index.ts +0 -1594
- package/compile/util.ts +0 -482
- package/index.ts +0 -6
- package/skills/bricks-ctor/SKILL.md +0 -38
- package/skills/bricks-ctor/references/animation.md +0 -160
- package/skills/bricks-ctor/references/architecture-patterns.md +0 -88
- package/skills/bricks-ctor/references/automations.md +0 -232
- package/skills/bricks-ctor/references/buttress.md +0 -245
- package/skills/bricks-ctor/references/data-calculation.md +0 -252
- package/skills/bricks-ctor/references/local-sync.md +0 -129
- package/skills/bricks-ctor/references/media-flow.md +0 -165
- package/skills/bricks-ctor/references/remote-data-bank.md +0 -196
- package/skills/bricks-ctor/references/simulator.md +0 -132
- package/skills/bricks-ctor/references/source-editing-tools.md +0 -81
- package/skills/bricks-ctor/references/standby-transition.md +0 -124
- package/skills/bricks-ctor/references/verification-toolchain.md +0 -200
- package/skills/bricks-design/SKILL.md +0 -171
- package/skills/bricks-design/references/architecture-truths.md +0 -132
- package/skills/bricks-design/references/avoiding-complexity.md +0 -91
- package/skills/bricks-design/references/design-critique.md +0 -195
- package/skills/bricks-design/references/design-languages.md +0 -265
- package/skills/bricks-design/references/performance.md +0 -116
- package/skills/bricks-design/references/presentation-and-slideshow.md +0 -137
- package/skills/bricks-design/references/translating-inputs.md +0 -152
- package/skills/bricks-design/references/variations-and-tweaks.md +0 -124
- package/skills/bricks-design/references/when-the-brief-is-branded.md +0 -284
- package/skills/bricks-design/references/when-the-brief-is-vague.md +0 -85
- package/skills/bricks-design/references/workflow.md +0 -134
- package/skills/bricks-ux/SKILL.md +0 -114
- package/skills/bricks-ux/references/accessibility.md +0 -162
- package/skills/bricks-ux/references/flow-states.md +0 -175
- package/skills/bricks-ux/references/interaction-archetypes.md +0 -189
- package/skills/bricks-ux/references/monitoring-screens.md +0 -153
- package/skills/bricks-ux/references/pressable-composition.md +0 -126
- package/skills/bricks-ux/references/user-journey.md +0 -168
- package/skills/bricks-ux/references/ux-critique.md +0 -256
- package/skills/rive-marketplace/SKILL.md +0 -99
- package/tools/__tests__/_cli-error.test.ts +0 -35
- package/tools/__tests__/_mcp-config.test.ts +0 -67
- package/tools/__tests__/pull.test.ts +0 -108
- package/tools/_cli-error.ts +0 -17
- package/tools/_edits-log.ts +0 -41
- package/tools/_git-author.ts +0 -37
- package/tools/_last-pushed-commit.ts +0 -28
- package/tools/_mcp-config.ts +0 -42
- package/tools/_shell.ts +0 -180
- package/tools/icons/.gitattributes +0 -1
- package/tools/icons/fa6pro-glyphmap.json +0 -4686
- package/tools/icons/fa6pro-meta.json +0 -1
- package/tools/mcp-env.ts +0 -13
- package/tools/mcp-tools/__tests__/data-calc-editing.test.js +0 -516
- package/tools/mcp-tools/__tests__/entry-editing.test.js +0 -866
- package/tools/mcp-tools/__tests__/huggingface.test.ts +0 -49
- package/tools/mcp-tools/__tests__/icons.test.ts +0 -21
- package/tools/mcp-tools/__tests__/mcp-env.test.js +0 -19
- package/tools/mcp-tools/_editing-helpers.ts +0 -98
- package/tools/mcp-tools/_verify.ts +0 -50
- package/tools/mcp-tools/compile.ts +0 -104
- package/tools/mcp-tools/data-calc-editing.ts +0 -1311
- package/tools/mcp-tools/entry-editing.ts +0 -2297
- package/tools/mcp-tools/huggingface.ts +0 -772
- package/tools/mcp-tools/icons.ts +0 -97
- package/tools/mcp-tools/lottie.ts +0 -102
- package/tools/mcp-tools/media.ts +0 -113
- package/tools/simulator-main.mjs +0 -488
- package/tools/simulator-preload.cjs +0 -16
- package/types/animation.d.ts +0 -116
- package/types/automation.d.ts +0 -231
- package/types/brick-base.d.ts +0 -80
- package/types/bricks/Camera.d.ts +0 -246
- package/types/bricks/Chart.d.ts +0 -372
- package/types/bricks/GenerativeMedia.d.ts +0 -290
- package/types/bricks/Icon.d.ts +0 -98
- package/types/bricks/Image.d.ts +0 -126
- package/types/bricks/Items.d.ts +0 -480
- package/types/bricks/Lottie.d.ts +0 -168
- package/types/bricks/Maps.d.ts +0 -262
- package/types/bricks/QrCode.d.ts +0 -117
- package/types/bricks/Rect.d.ts +0 -150
- package/types/bricks/RichText.d.ts +0 -131
- package/types/bricks/Rive.d.ts +0 -220
- package/types/bricks/Scene3D.d.ts +0 -676
- package/types/bricks/Sketch.d.ts +0 -256
- package/types/bricks/Slideshow.d.ts +0 -201
- package/types/bricks/Svg.d.ts +0 -99
- package/types/bricks/Text.d.ts +0 -148
- package/types/bricks/TextInput.d.ts +0 -242
- package/types/bricks/Video.d.ts +0 -242
- package/types/bricks/VideoStreaming.d.ts +0 -112
- package/types/bricks/WebRtcStream.d.ts +0 -65
- package/types/bricks/WebView.d.ts +0 -168
- package/types/bricks/index.d.ts +0 -23
- package/types/canvas.d.ts +0 -82
- package/types/common.d.ts +0 -141
- package/types/data-calc-command/base.d.ts +0 -57
- package/types/data-calc-command/collection.d.ts +0 -418
- package/types/data-calc-command/color.d.ts +0 -432
- package/types/data-calc-command/constant.d.ts +0 -50
- package/types/data-calc-command/datetime.d.ts +0 -147
- package/types/data-calc-command/file.d.ts +0 -129
- package/types/data-calc-command/index.d.ts +0 -13
- package/types/data-calc-command/iteratee.d.ts +0 -23
- package/types/data-calc-command/logictype.d.ts +0 -190
- package/types/data-calc-command/math.d.ts +0 -275
- package/types/data-calc-command/object.d.ts +0 -119
- package/types/data-calc-command/sandbox.d.ts +0 -66
- package/types/data-calc-command/string.d.ts +0 -407
- package/types/data-calc-script.d.ts +0 -21
- package/types/data-calc.d.ts +0 -12
- package/types/data.d.ts +0 -97
- package/types/generators/AlarmClock.d.ts +0 -110
- package/types/generators/Assistant.d.ts +0 -640
- package/types/generators/BleCentral.d.ts +0 -247
- package/types/generators/BlePeripheral.d.ts +0 -208
- package/types/generators/CanvasMap.d.ts +0 -74
- package/types/generators/CastlesPay.d.ts +0 -87
- package/types/generators/DataBank.d.ts +0 -160
- package/types/generators/File.d.ts +0 -432
- package/types/generators/GraphQl.d.ts +0 -132
- package/types/generators/Http.d.ts +0 -222
- package/types/generators/HttpServer.d.ts +0 -230
- package/types/generators/Information.d.ts +0 -103
- package/types/generators/Intent.d.ts +0 -168
- package/types/generators/Iterator.d.ts +0 -108
- package/types/generators/Keyboard.d.ts +0 -105
- package/types/generators/LlmAnthropicCompat.d.ts +0 -212
- package/types/generators/LlmAppleBuiltin.d.ts +0 -159
- package/types/generators/LlmGgml.d.ts +0 -903
- package/types/generators/LlmMediaTekNeuroPilot.d.ts +0 -235
- package/types/generators/LlmMlx.d.ts +0 -228
- package/types/generators/LlmOnnx.d.ts +0 -213
- package/types/generators/LlmOpenAiCompat.d.ts +0 -312
- package/types/generators/LlmQualcommAiEngine.d.ts +0 -247
- package/types/generators/Mcp.d.ts +0 -637
- package/types/generators/McpServer.d.ts +0 -289
- package/types/generators/MediaFlow.d.ts +0 -170
- package/types/generators/MqttBroker.d.ts +0 -141
- package/types/generators/MqttClient.d.ts +0 -141
- package/types/generators/Question.d.ts +0 -408
- package/types/generators/RealtimeTranscription.d.ts +0 -287
- package/types/generators/RerankerGgml.d.ts +0 -195
- package/types/generators/SerialPort.d.ts +0 -151
- package/types/generators/SoundPlayer.d.ts +0 -94
- package/types/generators/SoundRecorder.d.ts +0 -139
- package/types/generators/SpeechToTextGgml.d.ts +0 -424
- package/types/generators/SpeechToTextOnnx.d.ts +0 -236
- package/types/generators/SpeechToTextPlatform.d.ts +0 -85
- package/types/generators/SqLite.d.ts +0 -159
- package/types/generators/Step.d.ts +0 -107
- package/types/generators/SttAppleBuiltin.d.ts +0 -153
- package/types/generators/Tcp.d.ts +0 -126
- package/types/generators/TcpServer.d.ts +0 -147
- package/types/generators/TextToSpeechAppleBuiltin.d.ts +0 -127
- package/types/generators/TextToSpeechGgml.d.ts +0 -221
- package/types/generators/TextToSpeechOnnx.d.ts +0 -178
- package/types/generators/TextToSpeechOpenAiLike.d.ts +0 -121
- package/types/generators/ThermalPrinter.d.ts +0 -193
- package/types/generators/Tick.d.ts +0 -83
- package/types/generators/Udp.d.ts +0 -120
- package/types/generators/VadGgml.d.ts +0 -260
- package/types/generators/VadOnnx.d.ts +0 -231
- package/types/generators/VadTraditional.d.ts +0 -138
- package/types/generators/VectorStore.d.ts +0 -257
- package/types/generators/Watchdog.d.ts +0 -107
- package/types/generators/WebCrawler.d.ts +0 -103
- package/types/generators/WebRtc.d.ts +0 -181
- package/types/generators/WebSocket.d.ts +0 -148
- package/types/generators/index.d.ts +0 -57
- package/types/index.d.ts +0 -13
- package/types/subspace.d.ts +0 -60
- package/types/switch.d.ts +0 -51
- package/types/system.d.ts +0 -707
- package/utils/__tests__/calc.test.js +0 -25
- package/utils/__tests__/id.test.js +0 -154
- package/utils/calc.ts +0 -130
- package/utils/data.ts +0 -495
- package/utils/event-props.ts +0 -912
- package/utils/id.ts +0 -133
|
@@ -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
|
-
}
|