@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.
Files changed (190) hide show
  1. package/package.json +4 -28
  2. package/tools/deploy.ts +19 -176
  3. package/tools/mcp-server.ts +16 -33
  4. package/tools/postinstall.ts +21 -292
  5. package/tools/pull.ts +15 -195
  6. package/tools/push-config.ts +18 -113
  7. package/tools/simulator.ts +19 -148
  8. package/compile/__tests__/config-diff.test.js +0 -100
  9. package/compile/__tests__/index.test.js +0 -461
  10. package/compile/__tests__/util.test.js +0 -450
  11. package/compile/action-name-map.ts +0 -1079
  12. package/compile/config-diff.ts +0 -155
  13. package/compile/index.ts +0 -1594
  14. package/compile/util.ts +0 -482
  15. package/index.ts +0 -6
  16. package/skills/bricks-ctor/SKILL.md +0 -38
  17. package/skills/bricks-ctor/references/animation.md +0 -160
  18. package/skills/bricks-ctor/references/architecture-patterns.md +0 -88
  19. package/skills/bricks-ctor/references/automations.md +0 -232
  20. package/skills/bricks-ctor/references/buttress.md +0 -245
  21. package/skills/bricks-ctor/references/data-calculation.md +0 -252
  22. package/skills/bricks-ctor/references/local-sync.md +0 -129
  23. package/skills/bricks-ctor/references/media-flow.md +0 -165
  24. package/skills/bricks-ctor/references/remote-data-bank.md +0 -196
  25. package/skills/bricks-ctor/references/simulator.md +0 -132
  26. package/skills/bricks-ctor/references/source-editing-tools.md +0 -81
  27. package/skills/bricks-ctor/references/standby-transition.md +0 -124
  28. package/skills/bricks-ctor/references/verification-toolchain.md +0 -200
  29. package/skills/bricks-design/SKILL.md +0 -171
  30. package/skills/bricks-design/references/architecture-truths.md +0 -132
  31. package/skills/bricks-design/references/avoiding-complexity.md +0 -91
  32. package/skills/bricks-design/references/design-critique.md +0 -195
  33. package/skills/bricks-design/references/design-languages.md +0 -265
  34. package/skills/bricks-design/references/performance.md +0 -116
  35. package/skills/bricks-design/references/presentation-and-slideshow.md +0 -137
  36. package/skills/bricks-design/references/translating-inputs.md +0 -152
  37. package/skills/bricks-design/references/variations-and-tweaks.md +0 -124
  38. package/skills/bricks-design/references/when-the-brief-is-branded.md +0 -284
  39. package/skills/bricks-design/references/when-the-brief-is-vague.md +0 -85
  40. package/skills/bricks-design/references/workflow.md +0 -134
  41. package/skills/bricks-ux/SKILL.md +0 -114
  42. package/skills/bricks-ux/references/accessibility.md +0 -162
  43. package/skills/bricks-ux/references/flow-states.md +0 -175
  44. package/skills/bricks-ux/references/interaction-archetypes.md +0 -189
  45. package/skills/bricks-ux/references/monitoring-screens.md +0 -153
  46. package/skills/bricks-ux/references/pressable-composition.md +0 -126
  47. package/skills/bricks-ux/references/user-journey.md +0 -168
  48. package/skills/bricks-ux/references/ux-critique.md +0 -256
  49. package/skills/rive-marketplace/SKILL.md +0 -99
  50. package/tools/__tests__/_cli-error.test.ts +0 -35
  51. package/tools/__tests__/_mcp-config.test.ts +0 -67
  52. package/tools/__tests__/pull.test.ts +0 -108
  53. package/tools/_cli-error.ts +0 -17
  54. package/tools/_edits-log.ts +0 -41
  55. package/tools/_git-author.ts +0 -37
  56. package/tools/_last-pushed-commit.ts +0 -28
  57. package/tools/_mcp-config.ts +0 -42
  58. package/tools/_shell.ts +0 -180
  59. package/tools/icons/.gitattributes +0 -1
  60. package/tools/icons/fa6pro-glyphmap.json +0 -4686
  61. package/tools/icons/fa6pro-meta.json +0 -1
  62. package/tools/mcp-env.ts +0 -13
  63. package/tools/mcp-tools/__tests__/data-calc-editing.test.js +0 -516
  64. package/tools/mcp-tools/__tests__/entry-editing.test.js +0 -866
  65. package/tools/mcp-tools/__tests__/huggingface.test.ts +0 -49
  66. package/tools/mcp-tools/__tests__/icons.test.ts +0 -21
  67. package/tools/mcp-tools/__tests__/mcp-env.test.js +0 -19
  68. package/tools/mcp-tools/_editing-helpers.ts +0 -98
  69. package/tools/mcp-tools/_verify.ts +0 -50
  70. package/tools/mcp-tools/compile.ts +0 -104
  71. package/tools/mcp-tools/data-calc-editing.ts +0 -1311
  72. package/tools/mcp-tools/entry-editing.ts +0 -2297
  73. package/tools/mcp-tools/huggingface.ts +0 -772
  74. package/tools/mcp-tools/icons.ts +0 -97
  75. package/tools/mcp-tools/lottie.ts +0 -102
  76. package/tools/mcp-tools/media.ts +0 -113
  77. package/tools/simulator-main.mjs +0 -488
  78. package/tools/simulator-preload.cjs +0 -16
  79. package/types/animation.d.ts +0 -116
  80. package/types/automation.d.ts +0 -231
  81. package/types/brick-base.d.ts +0 -80
  82. package/types/bricks/Camera.d.ts +0 -246
  83. package/types/bricks/Chart.d.ts +0 -372
  84. package/types/bricks/GenerativeMedia.d.ts +0 -290
  85. package/types/bricks/Icon.d.ts +0 -98
  86. package/types/bricks/Image.d.ts +0 -126
  87. package/types/bricks/Items.d.ts +0 -480
  88. package/types/bricks/Lottie.d.ts +0 -168
  89. package/types/bricks/Maps.d.ts +0 -262
  90. package/types/bricks/QrCode.d.ts +0 -117
  91. package/types/bricks/Rect.d.ts +0 -150
  92. package/types/bricks/RichText.d.ts +0 -131
  93. package/types/bricks/Rive.d.ts +0 -220
  94. package/types/bricks/Scene3D.d.ts +0 -676
  95. package/types/bricks/Sketch.d.ts +0 -256
  96. package/types/bricks/Slideshow.d.ts +0 -201
  97. package/types/bricks/Svg.d.ts +0 -99
  98. package/types/bricks/Text.d.ts +0 -148
  99. package/types/bricks/TextInput.d.ts +0 -242
  100. package/types/bricks/Video.d.ts +0 -242
  101. package/types/bricks/VideoStreaming.d.ts +0 -112
  102. package/types/bricks/WebRtcStream.d.ts +0 -65
  103. package/types/bricks/WebView.d.ts +0 -168
  104. package/types/bricks/index.d.ts +0 -23
  105. package/types/canvas.d.ts +0 -82
  106. package/types/common.d.ts +0 -141
  107. package/types/data-calc-command/base.d.ts +0 -57
  108. package/types/data-calc-command/collection.d.ts +0 -418
  109. package/types/data-calc-command/color.d.ts +0 -432
  110. package/types/data-calc-command/constant.d.ts +0 -50
  111. package/types/data-calc-command/datetime.d.ts +0 -147
  112. package/types/data-calc-command/file.d.ts +0 -129
  113. package/types/data-calc-command/index.d.ts +0 -13
  114. package/types/data-calc-command/iteratee.d.ts +0 -23
  115. package/types/data-calc-command/logictype.d.ts +0 -190
  116. package/types/data-calc-command/math.d.ts +0 -275
  117. package/types/data-calc-command/object.d.ts +0 -119
  118. package/types/data-calc-command/sandbox.d.ts +0 -66
  119. package/types/data-calc-command/string.d.ts +0 -407
  120. package/types/data-calc-script.d.ts +0 -21
  121. package/types/data-calc.d.ts +0 -12
  122. package/types/data.d.ts +0 -97
  123. package/types/generators/AlarmClock.d.ts +0 -110
  124. package/types/generators/Assistant.d.ts +0 -640
  125. package/types/generators/BleCentral.d.ts +0 -247
  126. package/types/generators/BlePeripheral.d.ts +0 -208
  127. package/types/generators/CanvasMap.d.ts +0 -74
  128. package/types/generators/CastlesPay.d.ts +0 -87
  129. package/types/generators/DataBank.d.ts +0 -160
  130. package/types/generators/File.d.ts +0 -432
  131. package/types/generators/GraphQl.d.ts +0 -132
  132. package/types/generators/Http.d.ts +0 -222
  133. package/types/generators/HttpServer.d.ts +0 -230
  134. package/types/generators/Information.d.ts +0 -103
  135. package/types/generators/Intent.d.ts +0 -168
  136. package/types/generators/Iterator.d.ts +0 -108
  137. package/types/generators/Keyboard.d.ts +0 -105
  138. package/types/generators/LlmAnthropicCompat.d.ts +0 -212
  139. package/types/generators/LlmAppleBuiltin.d.ts +0 -159
  140. package/types/generators/LlmGgml.d.ts +0 -903
  141. package/types/generators/LlmMediaTekNeuroPilot.d.ts +0 -235
  142. package/types/generators/LlmMlx.d.ts +0 -228
  143. package/types/generators/LlmOnnx.d.ts +0 -213
  144. package/types/generators/LlmOpenAiCompat.d.ts +0 -312
  145. package/types/generators/LlmQualcommAiEngine.d.ts +0 -247
  146. package/types/generators/Mcp.d.ts +0 -637
  147. package/types/generators/McpServer.d.ts +0 -289
  148. package/types/generators/MediaFlow.d.ts +0 -170
  149. package/types/generators/MqttBroker.d.ts +0 -141
  150. package/types/generators/MqttClient.d.ts +0 -141
  151. package/types/generators/Question.d.ts +0 -408
  152. package/types/generators/RealtimeTranscription.d.ts +0 -287
  153. package/types/generators/RerankerGgml.d.ts +0 -195
  154. package/types/generators/SerialPort.d.ts +0 -151
  155. package/types/generators/SoundPlayer.d.ts +0 -94
  156. package/types/generators/SoundRecorder.d.ts +0 -139
  157. package/types/generators/SpeechToTextGgml.d.ts +0 -424
  158. package/types/generators/SpeechToTextOnnx.d.ts +0 -236
  159. package/types/generators/SpeechToTextPlatform.d.ts +0 -85
  160. package/types/generators/SqLite.d.ts +0 -159
  161. package/types/generators/Step.d.ts +0 -107
  162. package/types/generators/SttAppleBuiltin.d.ts +0 -153
  163. package/types/generators/Tcp.d.ts +0 -126
  164. package/types/generators/TcpServer.d.ts +0 -147
  165. package/types/generators/TextToSpeechAppleBuiltin.d.ts +0 -127
  166. package/types/generators/TextToSpeechGgml.d.ts +0 -221
  167. package/types/generators/TextToSpeechOnnx.d.ts +0 -178
  168. package/types/generators/TextToSpeechOpenAiLike.d.ts +0 -121
  169. package/types/generators/ThermalPrinter.d.ts +0 -193
  170. package/types/generators/Tick.d.ts +0 -83
  171. package/types/generators/Udp.d.ts +0 -120
  172. package/types/generators/VadGgml.d.ts +0 -260
  173. package/types/generators/VadOnnx.d.ts +0 -231
  174. package/types/generators/VadTraditional.d.ts +0 -138
  175. package/types/generators/VectorStore.d.ts +0 -257
  176. package/types/generators/Watchdog.d.ts +0 -107
  177. package/types/generators/WebCrawler.d.ts +0 -103
  178. package/types/generators/WebRtc.d.ts +0 -181
  179. package/types/generators/WebSocket.d.ts +0 -148
  180. package/types/generators/index.d.ts +0 -57
  181. package/types/index.d.ts +0 -13
  182. package/types/subspace.d.ts +0 -60
  183. package/types/switch.d.ts +0 -51
  184. package/types/system.d.ts +0 -707
  185. package/utils/__tests__/calc.test.js +0 -25
  186. package/utils/__tests__/id.test.js +0 -154
  187. package/utils/calc.ts +0 -130
  188. package/utils/data.ts +0 -495
  189. package/utils/event-props.ts +0 -912
  190. package/utils/id.ts +0 -133
package/utils/data.ts DELETED
@@ -1,495 +0,0 @@
1
- /* Auto generated by build script */
2
- import type { DataLink, Data, Canvas } from '../types'
3
- import { makeId } from './id'
4
-
5
- export const linkData: (dataGetter: () => Data) => DataLink = (dataGetter) => ({
6
- __typename: 'DataLink',
7
- data: dataGetter,
8
- })
9
-
10
- export const createCanvasIdRef: (canvasGetter: () => Canvas) => Data<string> = (canvasGetter) => {
11
- const data: Data<string> = {
12
- __typename: 'Data',
13
- // Stable by default (utils/id.ts) so recompiling unchanged source yields an
14
- // identical config; the legacy snapshotMode opt-out made this id churn per compile.
15
- id: makeId('data'),
16
- type: 'string',
17
- routing: 'read-only',
18
- kind: {
19
- type: 'auto-generated-item-id',
20
- idType: 'canvas',
21
- },
22
- title: '',
23
- value: '',
24
- }
25
- setImmediate(() => {
26
- const canvas = canvasGetter()
27
- data.title = `Canvas ID: ${canvas.title}`
28
- data.value = canvas.id
29
- })
30
- return data
31
- }
32
-
33
- type SystemDataName =
34
- | 'isLocalSyncMainDevice'
35
- | 'currentCanvasId'
36
- | 'previousCanvasId'
37
- | 'canvasIdHistory'
38
- | 'rootSubspaceInfo'
39
- | 'subspaceInfo'
40
- | 'uniqueID'
41
- | 'appVersion'
42
- | 'lastUpdateTime'
43
- | 'deviceName'
44
- | 'deviceType'
45
- | 'operationMode'
46
- | 'operationVersion'
47
- | 'screenWidth'
48
- | 'screenHeight'
49
- | 'screenScale'
50
- | 'screenFontScale'
51
- | 'orientation'
52
- | 'touchAvailable'
53
- | 'soundAvailable'
54
- | 'cameraAvailable'
55
- | 'audioInputAvailable'
56
- | 'networkType'
57
- | 'networkConnected'
58
- | 'networkIpAddress'
59
- | 'networkDetails'
60
- | 'isInternetReachable'
61
- | 'isWifiEnabled'
62
- | 'deviceDisplayName'
63
- | 'workspaceName'
64
- | 'applicationInfo'
65
- | 'applicationName'
66
- | 'deviceID'
67
- | 'macAddress'
68
- | 'bindDeviceCode'
69
- | 'bindDeviceCodeExpire'
70
- | 'bindDeviceUrl'
71
- | 'bindDeviceUseApplication'
72
- | 'isApplicationPreview'
73
- | 'isSupportAuthInDevice'
74
- | 'env'
75
- | 'isViewDebugModeEnabled'
76
- | 'language'
77
- | 'aiFilters'
78
- | 'systemOpenAIApiKey'
79
- | 'systemAnthropicApiKey'
80
- | 'systemGeminiApiKey'
81
- | 'ggmlBackendDevices'
82
-
83
- type SystemDataInfo = {
84
- name: SystemDataName
85
- id: string
86
- type: Data['type']
87
- title?: string
88
- description?: string
89
- schema?: object
90
- value?: any
91
- }
92
-
93
- export const systemDataList: Array<SystemDataInfo> = [
94
- {
95
- name: 'isLocalSyncMainDevice',
96
- id: 'PROPERTY_BANK_DATA_NODE_325068e3-89b6-4c6a-942b-126d38c84a62',
97
- title: 'SYSTEM: Is Local Sync Main Device',
98
- description: 'The current device is main for local sync',
99
- type: 'bool',
100
- value: true,
101
- },
102
- {
103
- name: 'currentCanvasId',
104
- id: 'PROPERTY_BANK_DATA_NODE_2dfeb635-deb4-481a-9d17-ea7b1fe19f74',
105
- title: 'SYSTEM: Current Canvas ID',
106
- description: 'ID for known current canvas',
107
- type: 'string',
108
- value: '',
109
- },
110
- {
111
- name: 'previousCanvasId',
112
- id: 'PROPERTY_BANK_DATA_NODE_2971e463-0b0e-45b7-bbfb-a01d8fd49db3',
113
- title: 'SYSTEM: Previous Canvas ID',
114
- description: 'ID for known previous canvas',
115
- type: 'string',
116
- value: '',
117
- },
118
- {
119
- name: 'canvasIdHistory',
120
- id: 'PROPERTY_BANK_DATA_NODE_1a086f39-817d-40ed-92f0-5a999535d3dd',
121
- title: 'SYSTEM: Change Canvas History',
122
- description: 'Change Canvas ID History (Limit: 10)',
123
- schema: { type: 'string', allowNewItem: false, allowCustomProperty: false },
124
- type: 'array',
125
- value: [],
126
- },
127
- {
128
- name: 'rootSubspaceInfo',
129
- id: 'PROPERTY_BANK_DATA_NODE_c0817f4a-1ff3-40ed-9cbf-71d8cefd2cd9',
130
- title: 'SYSTEM: Root Subspace Info',
131
- description: 'Root Subspace Information',
132
- type: 'object',
133
- value: {},
134
- },
135
- {
136
- name: 'subspaceInfo',
137
- id: 'PROPERTY_BANK_DATA_NODE_2657ec09-7323-46c3-a96e-3d8b5a0f79b3',
138
- title: 'SYSTEM: Current Subspace Info',
139
- description: 'Current Subspace Information',
140
- type: 'object',
141
- value: {},
142
- },
143
- {
144
- name: 'uniqueID',
145
- id: 'PROPERTY_BANK_DATA_NODE_6f4a543f-a88a-4a83-bf53-223259263be3',
146
- title: 'SYSTEM: Unique ID',
147
- description: 'Unique ID of current device',
148
- type: 'string',
149
- value: 'unknown',
150
- },
151
- {
152
- name: 'appVersion',
153
- id: 'PROPERTY_BANK_DATA_NODE_d614a258-2a45-4f91-9f6b-3936038cb2b1',
154
- title: 'SYSTEM: App Version',
155
- description: 'App Version of current installed BRICKS Foundation app',
156
- type: 'string',
157
- value: 'unknown',
158
- },
159
- {
160
- name: 'lastUpdateTime',
161
- id: 'PROPERTY_BANK_DATA_NODE_956f3b3e-cb0b-47ca-8119-65663910d110',
162
- title: 'SYSTEM: Last Update Time',
163
- description: 'Last update time of current installed BRICKS Foundation app',
164
- type: 'string',
165
- value: '2019-07-09T03:32:27.058Z',
166
- },
167
- {
168
- name: 'deviceName',
169
- id: 'PROPERTY_BANK_DATA_NODE_7b9d9ad4-e9a2-47cd-91d3-b64187895c16',
170
- title: 'SYSTEM: Device Name',
171
- description: 'Name of current device',
172
- type: 'string',
173
- value: 'Default Device Name',
174
- },
175
- {
176
- name: 'deviceType',
177
- id: 'PROPERTY_BANK_DATA_NODE_b0beae12-e45e-4870-ae15-858eeac566fa',
178
- title: 'SYSTEM: Device Type',
179
- description: 'Type of current device (Handset, Tv, Tablet)',
180
- type: 'string',
181
- value: 'Tv',
182
- },
183
- {
184
- name: 'operationMode',
185
- id: 'PROPERTY_BANK_DATA_NODE_2e715d3b-92bf-4761-b5c0-ca21f7c1ada8',
186
- title: 'SYSTEM: Operation Mode',
187
- description: 'Operation Mode of current device (android, ios, ...)',
188
- type: 'string',
189
- value: 'android',
190
- },
191
- {
192
- name: 'operationVersion',
193
- id: 'PROPERTY_BANK_DATA_NODE_fa886963-0a16-4b5f-b4ea-6c25b049db03',
194
- title: 'SYSTEM: Operation Version',
195
- description: 'Operation Version of current device',
196
- type: 'string',
197
- value: '',
198
- },
199
- {
200
- name: 'screenWidth',
201
- id: 'PROPERTY_BANK_DATA_NODE_2942470a-c3bc-413e-8f2c-30a89aded3f8',
202
- title: 'SYSTEM: Screen Width',
203
- description: 'Width of current device main screen',
204
- type: 'number',
205
- value: 1280,
206
- },
207
- {
208
- name: 'screenHeight',
209
- id: 'PROPERTY_BANK_DATA_NODE_4f031e27-f67b-40e0-a317-9f6c5215d97d',
210
- title: 'SYSTEM: Screen Height',
211
- description: 'Height of current device main screen',
212
- type: 'number',
213
- value: 768,
214
- },
215
- {
216
- name: 'screenScale',
217
- id: 'PROPERTY_BANK_DATA_NODE_c3c9b7aa-1dc1-4be1-8a4a-d9e299b9eeaa',
218
- title: 'SYSTEM: Screen Scale',
219
- description: 'Scale of current device main screen',
220
- type: 'number',
221
- value: 2,
222
- },
223
- {
224
- name: 'screenFontScale',
225
- id: 'PROPERTY_BANK_DATA_NODE_0312f380-d525-4938-82d2-5b35ef8ef1e8',
226
- title: 'SYSTEM: Screen Font Scale',
227
- description: 'Font scale of current device main screen',
228
- type: 'number',
229
- value: 1,
230
- },
231
- {
232
- name: 'orientation',
233
- id: 'PROPERTY_BANK_DATA_NODE_4f584f51-a250-4f97-a2f8-d5e6a3affb4f',
234
- title: 'SYSTEM: Orientation',
235
- description: 'Orientation of current device main screen',
236
- type: 'string',
237
- value: 'landspace',
238
- },
239
- {
240
- name: 'touchAvailable',
241
- id: 'PROPERTY_BANK_DATA_NODE_1fe7555f-df41-43ce-a268-3ea1b5efda6d',
242
- title: 'SYSTEM: Touch Available',
243
- description: 'Is touch available of current device main screen?',
244
- type: 'bool',
245
- value: true,
246
- },
247
- {
248
- name: 'soundAvailable',
249
- id: 'PROPERTY_BANK_DATA_NODE_bf839498-f7d6-4212-ac3a-b409e3ad77a5',
250
- title: 'SYSTEM: Sound Available',
251
- description: 'Is sound available of current device?',
252
- type: 'bool',
253
- value: true,
254
- },
255
- {
256
- name: 'cameraAvailable',
257
- id: 'PROPERTY_BANK_DATA_NODE_4878f3c2-8bb8-4c94-855c-06bda5a287d5',
258
- title: 'SYSTEM: Camera Available',
259
- description: 'Is camera available of current device?',
260
- type: 'bool',
261
- value: true,
262
- },
263
- {
264
- name: 'audioInputAvailable',
265
- id: 'PROPERTY_BANK_DATA_NODE_4854b259-96c1-40d7-b17b-47156b4698dc',
266
- title: 'SYSTEM: Audio Input Available',
267
- description: 'Is audio input available of current device?',
268
- type: 'bool',
269
- value: false,
270
- },
271
- {
272
- name: 'networkType',
273
- id: 'PROPERTY_BANK_DATA_NODE_1cbb1756-e53c-45a9-be23-5d84a214e144',
274
- title: 'SYSTEM: Network Type',
275
- description: 'Network Type of current device',
276
- type: 'string',
277
- value: 'wifi',
278
- },
279
- {
280
- name: 'networkConnected',
281
- id: 'PROPERTY_BANK_DATA_NODE_687b62fe-ead5-417a-b415-9bd5233784a4',
282
- title: 'SYSTEM: Network Connected',
283
- description: 'Is Network connected of current device?',
284
- type: 'bool',
285
- value: true,
286
- },
287
- {
288
- name: 'networkIpAddress',
289
- id: 'PROPERTY_BANK_DATA_NODE_41971ba7-8294-4aa6-a425-ecd39853c3e6',
290
- title: 'SYSTEM: Network IP Address',
291
- description: 'Current network IP address',
292
- type: 'string',
293
- value: '',
294
- },
295
- {
296
- name: 'networkDetails',
297
- id: 'PROPERTY_BANK_DATA_NODE_9351fbfc-4ace-477a-b05d-41ac9b05087d',
298
- title: 'SYSTEM: Network Details',
299
- description: 'Network details, provide different data depends on Network Type',
300
- type: 'object',
301
- value: null,
302
- },
303
- {
304
- name: 'isInternetReachable',
305
- id: 'PROPERTY_BANK_DATA_NODE_e367ae7e-46ec-46d0-b87d-51e544591ff9',
306
- title: 'SYSTEM: Internet Reachable',
307
- description: 'Is Internet reachable?',
308
- type: 'bool',
309
- value: true,
310
- },
311
- {
312
- name: 'isWifiEnabled',
313
- id: 'PROPERTY_BANK_DATA_NODE_be395305-fb85-4d05-8506-22a4ae8c7b9e',
314
- title: 'SYSTEM: Wifi Enabled',
315
- description: 'Is WiFi enabled?',
316
- type: 'bool',
317
- value: true,
318
- },
319
- {
320
- name: 'deviceDisplayName',
321
- id: 'PROPERTY_BANK_DATA_NODE_76356a9a-fc46-11ec-9905-db53d6811cb7',
322
- title: 'SYSTEM: Device Display Name',
323
- description: 'Current device display name',
324
- type: 'string',
325
- value: '',
326
- },
327
- {
328
- name: 'workspaceName',
329
- id: 'PROPERTY_BANK_DATA_NODE_d857125e-0401-40f1-b768-56190aa8e147',
330
- title: 'SYSTEM: Workspace Name',
331
- description: 'Current workspace name',
332
- type: 'string',
333
- value: '',
334
- },
335
- {
336
- name: 'applicationInfo',
337
- id: 'PROPERTY_BANK_DATA_NODE_935d3322-84aa-4465-b1e7-241d1f024267',
338
- title: 'SYSTEM: Application Info',
339
- description: 'Current application info',
340
- type: 'object',
341
- value: {},
342
- },
343
- {
344
- name: 'applicationName',
345
- id: 'PROPERTY_BANK_DATA_NODE_df395fd6-a754-4b60-8bac-1360933e6707',
346
- title: 'SYSTEM: Application Name',
347
- description: 'Current application name',
348
- type: 'string',
349
- value: '',
350
- },
351
- {
352
- name: 'deviceID',
353
- id: 'PROPERTY_BANK_DATA_NODE_8b5c2d9e-f0a1-4b2c-8d3e-4f5a6b7c8d9e',
354
- title: 'SYSTEM: Device ID',
355
- description: 'Device ID of current device',
356
- type: 'string',
357
- value: 'unknown',
358
- },
359
- {
360
- name: 'macAddress',
361
- id: 'PROPERTY_BANK_DATA_NODE_f01fcc78-0723-11ed-ac00-877339de1030',
362
- title: 'SYSTEM: MAC Address',
363
- description: 'Network adapter MAC address of current device',
364
- type: 'string',
365
- value: '',
366
- },
367
- {
368
- name: 'bindDeviceCode',
369
- id: 'PROPERTY_BANK_DATA_NODE_1ca90262-3584-11ed-8c9a-174949844872',
370
- title: 'SYSTEM: Bind Device Code',
371
- description: 'The passcode to bind the device',
372
- type: 'string',
373
- value: '',
374
- },
375
- {
376
- name: 'bindDeviceCodeExpire',
377
- id: 'PROPERTY_BANK_DATA_NODE_5b52d204-3584-11ed-bb5e-abb4d270daf1',
378
- title: 'SYSTEM: Bind Device Code Expire Time',
379
- description: 'The expire time of bind passcode',
380
- type: 'string',
381
- value: '',
382
- },
383
- {
384
- name: 'bindDeviceUrl',
385
- id: 'PROPERTY_BANK_DATA_NODE_833a7db2-3584-11ed-88dd-3b3d3ff58855',
386
- title: 'SYSTEM: Bind Device URL',
387
- description: 'The URL to bind the device',
388
- type: 'string',
389
- value: '',
390
- },
391
- {
392
- name: 'bindDeviceUseApplication',
393
- id: 'PROPERTY_BANK_DATA_NODE_631bbce8-9c90-4590-b8ec-8b27f4a0e50b',
394
- title: 'SYSTEM: Selected Application on Bind Device',
395
- description: 'Current selected use application info on Bind Device',
396
- type: 'object',
397
- value: null,
398
- },
399
- {
400
- name: 'isApplicationPreview',
401
- id: 'PROPERTY_BANK_DATA_NODE_c673967a-3996-11ed-96d9-efbc3f7eac53',
402
- title: 'SYSTEM: Is Preview Mode',
403
- description: 'Is current in preview mode?',
404
- type: 'bool',
405
- value: '',
406
- },
407
- {
408
- name: 'isSupportAuthInDevice',
409
- id: 'PROPERTY_BANK_DATA_NODE_beb2a666-3e18-11ed-bdab-6f0cb082fa67',
410
- title: 'SYSTEM: Is Support Auth In Device',
411
- description: 'Is current device support auth in device?',
412
- type: 'bool',
413
- value: '',
414
- },
415
- {
416
- name: 'env',
417
- id: 'PROPERTY_BANK_DATA_NODE_74e7a574-1099-4fe5-b193-8a9ea7d20ed0',
418
- title: 'SYSTEM: Environment Variables',
419
- description: 'Environment Variables of the device',
420
- type: 'object',
421
- value: {},
422
- },
423
- {
424
- name: 'isViewDebugModeEnabled',
425
- id: 'PROPERTY_BANK_DATA_NODE_3f61c4f6-1e02-492e-8e4c-a8dc4a5bc101',
426
- title: 'SYSTEM: Is View Debug mode Enabled',
427
- description: 'Is View Debug mode enabled?',
428
- type: 'bool',
429
- value: false,
430
- },
431
- {
432
- name: 'language',
433
- id: 'PROPERTY_BANK_DATA_NODE_f0ed0a03-6195-459f-9ffe-bca61923f94e',
434
- title: 'SYSTEM: Language',
435
- description: 'Language of the device',
436
- type: 'string',
437
- value: '',
438
- },
439
- {
440
- name: 'aiFilters',
441
- id: 'PROPERTY_BANK_DATA_NODE_3ffc1e98-8f65-4cc8-a949-3da8d2092ccb',
442
- title: 'SYSTEM: AI Filters',
443
- description: 'AI filters configuration from the application',
444
- type: 'array',
445
- value: [],
446
- },
447
- {
448
- name: 'systemOpenAIApiKey',
449
- id: 'PROPERTY_BANK_DATA_NODE_a1b2c3d4-5e6f-7890-abcd-ef1234567890',
450
- title: 'SYSTEM: OpenAI API Key',
451
- description: 'System OpenAI API Key (only available if application enabled)',
452
- type: 'string',
453
- value: '',
454
- },
455
- {
456
- name: 'systemAnthropicApiKey',
457
- id: 'PROPERTY_BANK_DATA_NODE_b2c3d4e5-6f78-9012-bcde-f23456789012',
458
- title: 'SYSTEM: Anthropic API Key',
459
- description: 'System Anthropic API Key (only available if application enabled)',
460
- type: 'string',
461
- value: '',
462
- },
463
- {
464
- name: 'systemGeminiApiKey',
465
- id: 'PROPERTY_BANK_DATA_NODE_c3d4e5f6-7890-1234-cdef-345678901234',
466
- title: 'SYSTEM: Gemini API Key',
467
- description: 'System Gemini API Key (only available if application enabled)',
468
- type: 'string',
469
- value: '',
470
- },
471
- {
472
- name: 'ggmlBackendDevices',
473
- id: 'PROPERTY_BANK_DATA_NODE_9e8f7a6b-5c4d-3e2f-1a0b-9c8d7e6f5a4b',
474
- title: 'SYSTEM: GGML Backend Devices',
475
- description: 'Available GGML backend devices with supported generators',
476
- schema: { type: 'object', allowNewItem: false, allowCustomProperty: false },
477
- type: 'array',
478
- value: [],
479
- },
480
- ]
481
-
482
- export const useSystemData = (name: SystemDataName): Data => {
483
- const info = systemDataList.find((data) => data.name === name)
484
- if (!info) throw new Error(`System data '${name}' not found`)
485
- return {
486
- __typename: 'Data',
487
- id: info.id,
488
- type: info.type,
489
- title: info.title,
490
- description: info.description,
491
- routing: 'read-only',
492
- schema: info.schema,
493
- value: info.value,
494
- }
495
- }