@almadar/std 8.3.0 → 8.4.1

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 (187) hide show
  1. package/behaviors/registry/agent/atoms/std-agent-activity-log.orb +62 -62
  2. package/behaviors/registry/agent/atoms/std-agent-chat-thread.orb +101 -101
  3. package/behaviors/registry/agent/atoms/std-agent-classifier.orb +119 -114
  4. package/behaviors/registry/agent/atoms/std-agent-completion.orb +103 -103
  5. package/behaviors/registry/agent/atoms/std-agent-context-window.orb +413 -404
  6. package/behaviors/registry/agent/atoms/std-agent-conversation.orb +94 -94
  7. package/behaviors/registry/agent/atoms/std-agent-memory.orb +66 -66
  8. package/behaviors/registry/agent/atoms/std-agent-provider.orb +146 -141
  9. package/behaviors/registry/agent/atoms/std-agent-search.orb +61 -61
  10. package/behaviors/registry/agent/atoms/std-agent-session.orb +109 -109
  11. package/behaviors/registry/agent/atoms/std-agent-step-progress.orb +196 -196
  12. package/behaviors/registry/agent/atoms/std-agent-token-gauge.orb +347 -347
  13. package/behaviors/registry/agent/atoms/std-agent-tool-call.orb +61 -60
  14. package/behaviors/registry/agent/molecules/std-agent-fix-loop.orb +187 -187
  15. package/behaviors/registry/agent/molecules/std-agent-learner.orb +180 -180
  16. package/behaviors/registry/agent/molecules/std-agent-planner.orb +108 -108
  17. package/behaviors/registry/agent/molecules/std-agent-rag.orb +107 -107
  18. package/behaviors/registry/agent/molecules/std-agent-tool-loop.orb +184 -184
  19. package/behaviors/registry/agent/organisms/std-agent-assistant.orb +1130 -1130
  20. package/behaviors/registry/agent/organisms/std-agent-builder.orb +2998 -2998
  21. package/behaviors/registry/agent/organisms/std-agent-pipeline.orb +2135 -2135
  22. package/behaviors/registry/agent/organisms/std-agent-reviewer.orb +1033 -1033
  23. package/behaviors/registry/agent/organisms/std-agent-tutor.orb +784 -784
  24. package/behaviors/registry/app/organisms/std-api-gateway.orb +798 -798
  25. package/behaviors/registry/app/organisms/std-booking-system.orb +1139 -1139
  26. package/behaviors/registry/app/organisms/std-cicd-pipeline.orb +776 -776
  27. package/behaviors/registry/app/organisms/std-cms.orb +469 -469
  28. package/behaviors/registry/app/organisms/std-coding-academy.orb +338 -338
  29. package/behaviors/registry/app/organisms/std-crm.orb +832 -832
  30. package/behaviors/registry/app/organisms/std-devops-dashboard.orb +1350 -1350
  31. package/behaviors/registry/app/organisms/std-ecommerce.orb +975 -975
  32. package/behaviors/registry/app/organisms/std-finance-tracker.orb +573 -573
  33. package/behaviors/registry/app/organisms/std-healthcare.orb +1370 -1370
  34. package/behaviors/registry/app/organisms/std-helpdesk.orb +617 -617
  35. package/behaviors/registry/app/organisms/std-hr-portal.orb +1177 -1177
  36. package/behaviors/registry/app/organisms/std-iot-dashboard.orb +871 -871
  37. package/behaviors/registry/app/organisms/std-lms.orb +839 -839
  38. package/behaviors/registry/app/organisms/std-project-manager.orb +667 -667
  39. package/behaviors/registry/app/organisms/std-realtime-chat.orb +667 -667
  40. package/behaviors/registry/app/organisms/std-social-feed.orb +230 -230
  41. package/behaviors/registry/app/organisms/std-trading-dashboard.orb +682 -682
  42. package/behaviors/registry/core/atoms/std-browse.orb +53 -53
  43. package/behaviors/registry/core/atoms/std-cache-aside.orb +89 -89
  44. package/behaviors/registry/core/atoms/std-calendar.orb +57 -57
  45. package/behaviors/registry/core/atoms/std-circuit-breaker.orb +196 -196
  46. package/behaviors/registry/core/atoms/std-confirmation.orb +19 -19
  47. package/behaviors/registry/core/atoms/std-display.orb +383 -383
  48. package/behaviors/registry/core/atoms/std-drawer.orb +56 -56
  49. package/behaviors/registry/core/atoms/std-filter.orb +42 -42
  50. package/behaviors/registry/core/atoms/std-gallery.orb +54 -54
  51. package/behaviors/registry/core/atoms/std-modal.orb +12 -12
  52. package/behaviors/registry/core/atoms/std-pagination.orb +42 -42
  53. package/behaviors/registry/core/atoms/std-push.orb +42 -42
  54. package/behaviors/registry/core/atoms/std-rate-limiter.orb +179 -179
  55. package/behaviors/registry/core/atoms/std-related.orb +34 -34
  56. package/behaviors/registry/core/atoms/std-search.orb +68 -68
  57. package/behaviors/registry/core/atoms/std-selection.orb +90 -90
  58. package/behaviors/registry/core/atoms/std-tabs.orb +52 -52
  59. package/behaviors/registry/core/molecules/std-cart.orb +45 -45
  60. package/behaviors/registry/core/molecules/std-filtered-list.orb +7 -7
  61. package/behaviors/registry/core/molecules/std-form-advanced.orb +127 -127
  62. package/behaviors/registry/core/molecules/std-list.orb +46 -46
  63. package/behaviors/registry/core/molecules/std-wizard-form.orb +147 -147
  64. package/behaviors/registry/game/atoms/std-collision.orb +121 -121
  65. package/behaviors/registry/game/atoms/std-combat.orb +68 -68
  66. package/behaviors/registry/game/atoms/std-dialogue-box.orb +25 -25
  67. package/behaviors/registry/game/atoms/std-game-canvas2d.orb +48 -48
  68. package/behaviors/registry/game/atoms/std-gameflow.orb +37 -37
  69. package/behaviors/registry/game/atoms/std-movement.orb +306 -306
  70. package/behaviors/registry/game/atoms/std-overworld.orb +68 -68
  71. package/behaviors/registry/game/atoms/std-physics2d.orb +76 -76
  72. package/behaviors/registry/game/atoms/std-quest.orb +124 -124
  73. package/behaviors/registry/game/atoms/std-timer.orb +274 -274
  74. package/behaviors/registry/game/organisms/std-arcade-game.orb +145 -145
  75. package/behaviors/registry/game/organisms/std-logic-training.orb +67 -67
  76. package/behaviors/registry/game/organisms/std-platformer-app.orb +218 -218
  77. package/behaviors/registry/game/organisms/std-puzzle-app.orb +90 -90
  78. package/behaviors/registry/game/organisms/std-rpg-game.orb +372 -372
  79. package/behaviors/registry/game/organisms/std-stem-lab.orb +345 -345
  80. package/behaviors/registry/game/organisms/std-strategy-game.orb +540 -540
  81. package/behaviors/registry/probes/molecules/std-source-scope-probe.orb +14 -14
  82. package/behaviors/registry/service/atoms/std-service-custom-bearer.orb +86 -86
  83. package/behaviors/registry/service/atoms/std-service-email.orb +72 -72
  84. package/behaviors/registry/service/atoms/std-service-github.orb +98 -98
  85. package/behaviors/registry/service/atoms/std-service-llm.orb +118 -118
  86. package/behaviors/registry/service/atoms/std-service-oauth.orb +118 -118
  87. package/behaviors/registry/service/atoms/std-service-redis.orb +103 -103
  88. package/behaviors/registry/service/atoms/std-service-storage.orb +105 -105
  89. package/behaviors/registry/service/atoms/std-service-stripe.orb +95 -95
  90. package/behaviors/registry/service/atoms/std-service-twilio.orb +107 -107
  91. package/behaviors/registry/service/atoms/std-service-youtube.orb +104 -104
  92. package/behaviors/registry/service/organisms/std-service-marketplace.orb +966 -966
  93. package/behaviors/registry/service/organisms/std-service-research-assistant.orb +905 -905
  94. package/dist/behaviors/registry/agent/atoms/std-agent-activity-log.orb +62 -62
  95. package/dist/behaviors/registry/agent/atoms/std-agent-chat-thread.orb +101 -101
  96. package/dist/behaviors/registry/agent/atoms/std-agent-classifier.orb +119 -114
  97. package/dist/behaviors/registry/agent/atoms/std-agent-completion.orb +103 -103
  98. package/dist/behaviors/registry/agent/atoms/std-agent-context-window.orb +413 -404
  99. package/dist/behaviors/registry/agent/atoms/std-agent-conversation.orb +94 -94
  100. package/dist/behaviors/registry/agent/atoms/std-agent-memory.orb +66 -66
  101. package/dist/behaviors/registry/agent/atoms/std-agent-provider.orb +146 -141
  102. package/dist/behaviors/registry/agent/atoms/std-agent-search.orb +61 -61
  103. package/dist/behaviors/registry/agent/atoms/std-agent-session.orb +109 -109
  104. package/dist/behaviors/registry/agent/atoms/std-agent-step-progress.orb +196 -196
  105. package/dist/behaviors/registry/agent/atoms/std-agent-token-gauge.orb +347 -347
  106. package/dist/behaviors/registry/agent/atoms/std-agent-tool-call.orb +61 -60
  107. package/dist/behaviors/registry/agent/molecules/std-agent-fix-loop.orb +187 -187
  108. package/dist/behaviors/registry/agent/molecules/std-agent-learner.orb +180 -180
  109. package/dist/behaviors/registry/agent/molecules/std-agent-planner.orb +108 -108
  110. package/dist/behaviors/registry/agent/molecules/std-agent-rag.orb +107 -107
  111. package/dist/behaviors/registry/agent/molecules/std-agent-tool-loop.orb +184 -184
  112. package/dist/behaviors/registry/agent/organisms/std-agent-assistant.orb +1130 -1130
  113. package/dist/behaviors/registry/agent/organisms/std-agent-builder.orb +2998 -2998
  114. package/dist/behaviors/registry/agent/organisms/std-agent-pipeline.orb +2135 -2135
  115. package/dist/behaviors/registry/agent/organisms/std-agent-reviewer.orb +1033 -1033
  116. package/dist/behaviors/registry/agent/organisms/std-agent-tutor.orb +784 -784
  117. package/dist/behaviors/registry/app/organisms/std-api-gateway.orb +798 -798
  118. package/dist/behaviors/registry/app/organisms/std-booking-system.orb +1139 -1139
  119. package/dist/behaviors/registry/app/organisms/std-cicd-pipeline.orb +776 -776
  120. package/dist/behaviors/registry/app/organisms/std-cms.orb +469 -469
  121. package/dist/behaviors/registry/app/organisms/std-coding-academy.orb +338 -338
  122. package/dist/behaviors/registry/app/organisms/std-crm.orb +832 -832
  123. package/dist/behaviors/registry/app/organisms/std-devops-dashboard.orb +1350 -1350
  124. package/dist/behaviors/registry/app/organisms/std-ecommerce.orb +975 -975
  125. package/dist/behaviors/registry/app/organisms/std-finance-tracker.orb +573 -573
  126. package/dist/behaviors/registry/app/organisms/std-healthcare.orb +1370 -1370
  127. package/dist/behaviors/registry/app/organisms/std-helpdesk.orb +617 -617
  128. package/dist/behaviors/registry/app/organisms/std-hr-portal.orb +1177 -1177
  129. package/dist/behaviors/registry/app/organisms/std-iot-dashboard.orb +871 -871
  130. package/dist/behaviors/registry/app/organisms/std-lms.orb +839 -839
  131. package/dist/behaviors/registry/app/organisms/std-project-manager.orb +667 -667
  132. package/dist/behaviors/registry/app/organisms/std-realtime-chat.orb +667 -667
  133. package/dist/behaviors/registry/app/organisms/std-social-feed.orb +230 -230
  134. package/dist/behaviors/registry/app/organisms/std-trading-dashboard.orb +682 -682
  135. package/dist/behaviors/registry/core/atoms/std-browse.orb +53 -53
  136. package/dist/behaviors/registry/core/atoms/std-cache-aside.orb +89 -89
  137. package/dist/behaviors/registry/core/atoms/std-calendar.orb +57 -57
  138. package/dist/behaviors/registry/core/atoms/std-circuit-breaker.orb +196 -196
  139. package/dist/behaviors/registry/core/atoms/std-confirmation.orb +19 -19
  140. package/dist/behaviors/registry/core/atoms/std-display.orb +383 -383
  141. package/dist/behaviors/registry/core/atoms/std-drawer.orb +56 -56
  142. package/dist/behaviors/registry/core/atoms/std-filter.orb +42 -42
  143. package/dist/behaviors/registry/core/atoms/std-gallery.orb +54 -54
  144. package/dist/behaviors/registry/core/atoms/std-modal.orb +12 -12
  145. package/dist/behaviors/registry/core/atoms/std-pagination.orb +42 -42
  146. package/dist/behaviors/registry/core/atoms/std-push.orb +42 -42
  147. package/dist/behaviors/registry/core/atoms/std-rate-limiter.orb +179 -179
  148. package/dist/behaviors/registry/core/atoms/std-related.orb +34 -34
  149. package/dist/behaviors/registry/core/atoms/std-search.orb +68 -68
  150. package/dist/behaviors/registry/core/atoms/std-selection.orb +90 -90
  151. package/dist/behaviors/registry/core/atoms/std-tabs.orb +52 -52
  152. package/dist/behaviors/registry/core/molecules/std-cart.orb +45 -45
  153. package/dist/behaviors/registry/core/molecules/std-filtered-list.orb +7 -7
  154. package/dist/behaviors/registry/core/molecules/std-form-advanced.orb +127 -127
  155. package/dist/behaviors/registry/core/molecules/std-list.orb +46 -46
  156. package/dist/behaviors/registry/core/molecules/std-wizard-form.orb +147 -147
  157. package/dist/behaviors/registry/game/atoms/std-collision.orb +121 -121
  158. package/dist/behaviors/registry/game/atoms/std-combat.orb +68 -68
  159. package/dist/behaviors/registry/game/atoms/std-dialogue-box.orb +25 -25
  160. package/dist/behaviors/registry/game/atoms/std-game-canvas2d.orb +48 -48
  161. package/dist/behaviors/registry/game/atoms/std-gameflow.orb +37 -37
  162. package/dist/behaviors/registry/game/atoms/std-movement.orb +306 -306
  163. package/dist/behaviors/registry/game/atoms/std-overworld.orb +68 -68
  164. package/dist/behaviors/registry/game/atoms/std-physics2d.orb +76 -76
  165. package/dist/behaviors/registry/game/atoms/std-quest.orb +124 -124
  166. package/dist/behaviors/registry/game/atoms/std-timer.orb +274 -274
  167. package/dist/behaviors/registry/game/organisms/std-arcade-game.orb +145 -145
  168. package/dist/behaviors/registry/game/organisms/std-logic-training.orb +67 -67
  169. package/dist/behaviors/registry/game/organisms/std-platformer-app.orb +218 -218
  170. package/dist/behaviors/registry/game/organisms/std-puzzle-app.orb +90 -90
  171. package/dist/behaviors/registry/game/organisms/std-rpg-game.orb +372 -372
  172. package/dist/behaviors/registry/game/organisms/std-stem-lab.orb +345 -345
  173. package/dist/behaviors/registry/game/organisms/std-strategy-game.orb +540 -540
  174. package/dist/behaviors/registry/probes/molecules/std-source-scope-probe.orb +14 -14
  175. package/dist/behaviors/registry/service/atoms/std-service-custom-bearer.orb +86 -86
  176. package/dist/behaviors/registry/service/atoms/std-service-email.orb +72 -72
  177. package/dist/behaviors/registry/service/atoms/std-service-github.orb +98 -98
  178. package/dist/behaviors/registry/service/atoms/std-service-llm.orb +118 -118
  179. package/dist/behaviors/registry/service/atoms/std-service-oauth.orb +118 -118
  180. package/dist/behaviors/registry/service/atoms/std-service-redis.orb +103 -103
  181. package/dist/behaviors/registry/service/atoms/std-service-storage.orb +105 -105
  182. package/dist/behaviors/registry/service/atoms/std-service-stripe.orb +95 -95
  183. package/dist/behaviors/registry/service/atoms/std-service-twilio.orb +107 -107
  184. package/dist/behaviors/registry/service/atoms/std-service-youtube.orb +104 -104
  185. package/dist/behaviors/registry/service/organisms/std-service-marketplace.orb +966 -966
  186. package/dist/behaviors/registry/service/organisms/std-service-research-assistant.orb +905 -905
  187. package/package.json +1 -1
@@ -126,8 +126,8 @@
126
126
  "BrowseItem",
127
127
  {
128
128
  "emit": {
129
- "failure": "BrowseItemLoadFailed",
130
- "success": "BrowseItemLoaded"
129
+ "success": "BrowseItemLoaded",
130
+ "failure": "BrowseItemLoadFailed"
131
131
  }
132
132
  }
133
133
  ],
@@ -135,22 +135,22 @@
135
135
  "render-ui",
136
136
  "main",
137
137
  {
138
- "className": "max-w-5xl mx-auto w-full py-12",
139
- "type": "stack",
140
- "align": "center",
138
+ "gap": "lg",
139
+ "direction": "vertical",
141
140
  "children": [
142
141
  {
143
142
  "type": "spinner"
144
143
  },
145
144
  {
146
- "type": "typography",
147
145
  "content": "Loading BrowseItems…",
148
146
  "color": "muted",
147
+ "type": "typography",
149
148
  "variant": "caption"
150
149
  }
151
150
  ],
152
- "gap": "lg",
153
- "direction": "vertical"
151
+ "type": "stack",
152
+ "align": "center",
153
+ "className": "max-w-5xl mx-auto w-full py-12"
154
154
  }
155
155
  ]
156
156
  ]
@@ -164,74 +164,73 @@
164
164
  "render-ui",
165
165
  "main",
166
166
  {
167
+ "gap": "lg",
167
168
  "type": "stack",
168
- "direction": "vertical",
169
169
  "className": "max-w-5xl mx-auto w-full",
170
- "gap": "lg",
171
170
  "children": [
172
171
  {
172
+ "justify": "between",
173
173
  "align": "center",
174
- "gap": "md",
175
174
  "children": [
176
175
  {
177
176
  "type": "stack",
177
+ "direction": "horizontal",
178
+ "gap": "sm",
178
179
  "children": [
179
180
  {
180
181
  "type": "icon",
181
182
  "name": "list"
182
183
  },
183
184
  {
184
- "variant": "h2",
185
185
  "type": "typography",
186
- "content": "BrowseItems"
186
+ "content": "BrowseItems",
187
+ "variant": "h2"
187
188
  }
188
189
  ],
189
- "direction": "horizontal",
190
- "gap": "sm",
191
190
  "align": "center"
192
191
  }
193
192
  ],
194
193
  "direction": "horizontal",
195
194
  "type": "stack",
196
- "justify": "between"
195
+ "gap": "md"
197
196
  },
198
197
  {
199
198
  "type": "divider"
200
199
  },
201
200
  {
202
- "type": "data-grid",
203
201
  "fields": [
204
202
  {
205
203
  "icon": "list",
206
- "variant": "h4",
207
204
  "label": "Name",
208
- "name": "name"
205
+ "name": "name",
206
+ "variant": "h4"
209
207
  },
210
208
  {
211
- "name": "description",
212
209
  "variant": "badge",
213
- "label": "Description",
214
210
  "colorMap": {
215
- "active": "success",
216
- "completed": "success",
217
211
  "draft": "warning",
218
212
  "archived": "neutral",
219
- "inactive": "neutral",
213
+ "pending": "warning",
214
+ "completed": "success",
215
+ "cancelled": "destructive",
220
216
  "error": "destructive",
217
+ "active": "success",
221
218
  "done": "success",
222
- "pending": "warning",
219
+ "inactive": "neutral",
223
220
  "scheduled": "warning",
224
221
  "disabled": "neutral",
225
- "failed": "destructive",
226
- "cancelled": "destructive"
227
- }
222
+ "failed": "destructive"
223
+ },
224
+ "name": "description",
225
+ "label": "Description"
228
226
  },
229
227
  {
230
- "name": "status",
231
228
  "label": "Status",
229
+ "name": "status",
232
230
  "variant": "caption"
233
231
  }
234
232
  ],
233
+ "type": "data-grid",
235
234
  "entity": "@payload.data"
236
235
  },
237
236
  {
@@ -239,7 +238,8 @@
239
238
  "action": "INIT",
240
239
  "icon": "plus"
241
240
  }
242
- ]
241
+ ],
242
+ "direction": "vertical"
243
243
  }
244
244
  ]
245
245
  ]
@@ -253,7 +253,10 @@
253
253
  "render-ui",
254
254
  "main",
255
255
  {
256
+ "direction": "vertical",
256
257
  "gap": "md",
258
+ "align": "center",
259
+ "className": "max-w-5xl mx-auto w-full py-12",
257
260
  "children": [
258
261
  {
259
262
  "color": "destructive",
@@ -261,28 +264,25 @@
261
264
  "name": "alert-triangle"
262
265
  },
263
266
  {
264
- "variant": "h3",
265
267
  "type": "typography",
266
- "content": "Failed to load BrowseItems"
268
+ "content": "Failed to load BrowseItems",
269
+ "variant": "h3"
267
270
  },
268
271
  {
269
- "variant": "body",
270
- "color": "muted",
271
272
  "content": "@payload.error",
273
+ "color": "muted",
274
+ "variant": "body",
272
275
  "type": "typography"
273
276
  },
274
277
  {
275
- "action": "INIT",
276
278
  "type": "button",
277
- "label": "Retry",
279
+ "action": "INIT",
278
280
  "icon": "rotate-ccw",
279
- "variant": "primary"
281
+ "variant": "primary",
282
+ "label": "Retry"
280
283
  }
281
284
  ],
282
- "direction": "vertical",
283
- "type": "stack",
284
- "align": "center",
285
- "className": "max-w-5xl mx-auto w-full py-12"
285
+ "type": "stack"
286
286
  }
287
287
  ]
288
288
  ]
@@ -307,21 +307,21 @@
307
307
  "main",
308
308
  {
309
309
  "direction": "vertical",
310
- "gap": "lg",
310
+ "type": "stack",
311
311
  "align": "center",
312
- "className": "max-w-5xl mx-auto w-full py-12",
313
312
  "children": [
314
313
  {
315
314
  "type": "spinner"
316
315
  },
317
316
  {
318
- "type": "typography",
319
- "content": "Refreshing…",
320
317
  "variant": "caption",
321
- "color": "muted"
318
+ "type": "typography",
319
+ "color": "muted",
320
+ "content": "Refreshing…"
322
321
  }
323
322
  ],
324
- "type": "stack"
323
+ "className": "max-w-5xl mx-auto w-full py-12",
324
+ "gap": "lg"
325
325
  }
326
326
  ]
327
327
  ]
@@ -345,22 +345,22 @@
345
345
  "render-ui",
346
346
  "main",
347
347
  {
348
+ "direction": "vertical",
349
+ "gap": "lg",
348
350
  "type": "stack",
349
351
  "align": "center",
352
+ "className": "max-w-5xl mx-auto w-full py-12",
350
353
  "children": [
351
354
  {
352
355
  "type": "spinner"
353
356
  },
354
357
  {
358
+ "type": "typography",
355
359
  "color": "muted",
356
360
  "variant": "caption",
357
- "content": "Retrying…",
358
- "type": "typography"
361
+ "content": "Retrying…"
359
362
  }
360
- ],
361
- "className": "max-w-5xl mx-auto w-full py-12",
362
- "gap": "lg",
363
- "direction": "vertical"
363
+ ]
364
364
  }
365
365
  ]
366
366
  ]
@@ -215,49 +215,49 @@
215
215
  {
216
216
  "gap": "lg",
217
217
  "direction": "vertical",
218
+ "type": "stack",
218
219
  "children": [
219
220
  {
220
221
  "direction": "horizontal",
222
+ "type": "stack",
221
223
  "children": [
222
224
  {
223
- "type": "stack",
224
225
  "direction": "horizontal",
225
226
  "gap": "md",
227
+ "type": "stack",
226
228
  "children": [
227
229
  {
228
- "name": "database",
229
- "type": "icon"
230
+ "type": "icon",
231
+ "name": "database"
230
232
  },
231
233
  {
234
+ "type": "typography",
232
235
  "content": "Cache (empty)",
233
- "variant": "h2",
234
- "type": "typography"
236
+ "variant": "h2"
235
237
  }
236
238
  ]
237
239
  },
238
240
  {
239
- "action": "FETCH",
240
- "label": "Fetch",
241
+ "variant": "primary",
241
242
  "type": "button",
242
243
  "icon": "download",
243
- "variant": "primary"
244
+ "label": "Fetch",
245
+ "action": "FETCH"
244
246
  }
245
247
  ],
246
- "type": "stack",
247
- "gap": "md",
248
- "justify": "between"
248
+ "justify": "between",
249
+ "gap": "md"
249
250
  },
250
251
  {
251
252
  "type": "divider"
252
253
  },
253
254
  {
254
- "title": "Cache is empty",
255
+ "type": "empty-state",
255
256
  "icon": "inbox",
256
- "description": "Fetch data to populate the cache.",
257
- "type": "empty-state"
257
+ "title": "Cache is empty",
258
+ "description": "Fetch data to populate the cache."
258
259
  }
259
- ],
260
- "type": "stack"
260
+ ]
261
261
  }
262
262
  ]
263
263
  ]
@@ -281,22 +281,22 @@
281
281
  "render-ui",
282
282
  "main",
283
283
  {
284
+ "direction": "vertical",
285
+ "type": "stack",
286
+ "align": "center",
284
287
  "children": [
285
288
  {
286
289
  "type": "spinner"
287
290
  },
288
291
  {
289
- "variant": "caption",
290
292
  "type": "typography",
291
293
  "color": "muted",
294
+ "variant": "caption",
292
295
  "content": "Fetching cache…"
293
296
  }
294
297
  ],
295
- "type": "stack",
296
- "direction": "vertical",
297
298
  "className": "py-12",
298
- "gap": "md",
299
- "align": "center"
299
+ "gap": "md"
300
300
  }
301
301
  ]
302
302
  ]
@@ -310,94 +310,94 @@
310
310
  "render-ui",
311
311
  "main",
312
312
  {
313
- "type": "stack",
314
- "direction": "vertical",
313
+ "gap": "lg",
315
314
  "children": [
316
315
  {
317
- "gap": "md",
318
316
  "type": "stack",
319
- "justify": "between",
317
+ "gap": "md",
320
318
  "children": [
321
319
  {
322
- "type": "stack",
320
+ "direction": "horizontal",
323
321
  "children": [
324
322
  {
325
- "type": "icon",
326
- "name": "database"
323
+ "name": "database",
324
+ "type": "icon"
327
325
  },
328
326
  {
329
- "content": "Cache (hot)",
330
327
  "variant": "h2",
328
+ "content": "Cache (hot)",
331
329
  "type": "typography"
332
330
  }
333
331
  ],
334
332
  "gap": "md",
335
- "direction": "horizontal"
333
+ "type": "stack"
336
334
  },
337
335
  {
338
336
  "children": [
339
337
  {
338
+ "status": "online",
340
339
  "type": "status-dot",
341
340
  "label": "Cached",
342
- "pulse": false,
343
- "status": "online"
341
+ "pulse": false
344
342
  },
345
343
  {
346
- "variant": "ghost",
347
344
  "type": "button",
345
+ "label": "Invalidate",
346
+ "variant": "ghost",
348
347
  "action": "INVALIDATE",
349
- "icon": "trash",
350
- "label": "Invalidate"
348
+ "icon": "trash"
351
349
  }
352
350
  ],
353
- "type": "stack",
354
- "align": "center",
355
351
  "direction": "horizontal",
356
- "gap": "sm"
352
+ "type": "stack",
353
+ "gap": "sm",
354
+ "align": "center"
357
355
  }
358
356
  ],
359
- "direction": "horizontal"
357
+ "direction": "horizontal",
358
+ "justify": "between"
360
359
  },
361
360
  {
362
361
  "type": "divider"
363
362
  },
364
363
  {
365
- "type": "data-grid",
366
364
  "fields": [],
365
+ "type": "data-grid",
367
366
  "renderItem": [
368
367
  "fn",
369
368
  "item",
370
369
  {
371
370
  "type": "stack",
371
+ "direction": "vertical",
372
372
  "children": [
373
373
  {
374
- "justify": "between",
375
374
  "align": "center",
376
375
  "direction": "horizontal",
376
+ "justify": "between",
377
+ "type": "stack",
377
378
  "children": [
378
379
  {
379
- "direction": "horizontal",
380
- "align": "center",
380
+ "gap": "sm",
381
381
  "type": "stack",
382
+ "align": "center",
382
383
  "children": [
383
384
  {
384
- "name": "database",
385
- "type": "icon"
385
+ "type": "icon",
386
+ "name": "database"
386
387
  },
387
388
  {
388
389
  "type": "typography",
389
- "variant": "h4",
390
- "content": "@item.name"
390
+ "content": "@item.name",
391
+ "variant": "h4"
391
392
  }
392
393
  ],
393
- "gap": "sm"
394
+ "direction": "horizontal"
394
395
  },
395
396
  {
396
397
  "type": "badge",
397
398
  "label": "@item.description"
398
399
  }
399
- ],
400
- "type": "stack"
400
+ ]
401
401
  },
402
402
  {
403
403
  "variant": "caption",
@@ -405,14 +405,14 @@
405
405
  "type": "typography"
406
406
  }
407
407
  ],
408
- "direction": "vertical",
409
408
  "gap": "sm"
410
409
  }
411
410
  ],
412
411
  "entity": "@payload.data"
413
412
  }
414
413
  ],
415
- "gap": "lg"
414
+ "type": "stack",
415
+ "direction": "vertical"
416
416
  }
417
417
  ]
418
418
  ]
@@ -426,9 +426,9 @@
426
426
  "render-ui",
427
427
  "main",
428
428
  {
429
- "className": "py-12",
429
+ "gap": "md",
430
430
  "direction": "vertical",
431
- "align": "center",
431
+ "className": "py-12",
432
432
  "type": "stack",
433
433
  "children": [
434
434
  {
@@ -437,25 +437,25 @@
437
437
  "color": "destructive"
438
438
  },
439
439
  {
440
- "variant": "h3",
440
+ "type": "typography",
441
441
  "content": "Failed to load",
442
- "type": "typography"
442
+ "variant": "h3"
443
443
  },
444
444
  {
445
- "content": "@payload.error",
446
- "type": "typography",
445
+ "variant": "body",
447
446
  "color": "muted",
448
- "variant": "body"
447
+ "content": "@payload.error",
448
+ "type": "typography"
449
449
  },
450
450
  {
451
- "type": "button",
452
451
  "label": "Retry",
452
+ "variant": "primary",
453
453
  "icon": "rotate-ccw",
454
- "action": "FETCH",
455
- "variant": "primary"
454
+ "type": "button",
455
+ "action": "FETCH"
456
456
  }
457
457
  ],
458
- "gap": "md"
458
+ "align": "center"
459
459
  }
460
460
  ]
461
461
  ]
@@ -469,64 +469,64 @@
469
469
  "render-ui",
470
470
  "main",
471
471
  {
472
- "type": "stack",
473
- "direction": "vertical",
474
472
  "gap": "lg",
475
473
  "children": [
476
474
  {
475
+ "type": "stack",
477
476
  "direction": "horizontal",
478
477
  "gap": "md",
479
- "justify": "between",
480
478
  "children": [
481
479
  {
482
- "direction": "horizontal",
483
- "gap": "md",
484
480
  "type": "stack",
481
+ "direction": "horizontal",
485
482
  "children": [
486
483
  {
487
- "name": "database",
488
- "type": "icon"
484
+ "type": "icon",
485
+ "name": "database"
489
486
  },
490
487
  {
491
- "content": "Cache (stale)",
492
488
  "variant": "h2",
493
- "type": "typography"
489
+ "type": "typography",
490
+ "content": "Cache (stale)"
494
491
  }
495
- ]
492
+ ],
493
+ "gap": "md"
496
494
  },
497
495
  {
498
- "gap": "sm",
499
496
  "align": "center",
500
497
  "type": "stack",
498
+ "gap": "sm",
501
499
  "children": [
502
500
  {
503
- "pulse": true,
501
+ "label": "Stale",
504
502
  "status": "warning",
505
503
  "type": "status-dot",
506
- "label": "Stale"
504
+ "pulse": true
507
505
  },
508
506
  {
509
507
  "variant": "primary",
510
- "action": "REFRESH",
511
508
  "type": "button",
512
- "icon": "refresh-cw",
513
- "label": "Refresh"
509
+ "label": "Refresh",
510
+ "action": "REFRESH",
511
+ "icon": "refresh-cw"
514
512
  }
515
513
  ],
516
514
  "direction": "horizontal"
517
515
  }
518
516
  ],
519
- "type": "stack"
517
+ "justify": "between"
520
518
  },
521
519
  {
522
520
  "type": "divider"
523
521
  },
524
522
  {
525
523
  "variant": "warning",
526
- "message": "Cache data is stale. Refresh to get the latest data.",
527
- "type": "alert"
524
+ "type": "alert",
525
+ "message": "Cache data is stale. Refresh to get the latest data."
528
526
  }
529
- ]
527
+ ],
528
+ "direction": "vertical",
529
+ "type": "stack"
530
530
  }
531
531
  ]
532
532
  ]
@@ -543,8 +543,8 @@
543
543
  "@payload.data",
544
544
  {
545
545
  "emit": {
546
- "failure": "CacheEntryUpdateFailed",
547
- "success": "CacheEntryUpdated"
546
+ "success": "CacheEntryUpdated",
547
+ "failure": "CacheEntryUpdateFailed"
548
548
  }
549
549
  }
550
550
  ],
@@ -553,8 +553,8 @@
553
553
  "CacheEntry",
554
554
  {
555
555
  "emit": {
556
- "failure": "CacheEntryLoadFailed",
557
- "success": "CacheEntryLoaded"
556
+ "success": "CacheEntryLoaded",
557
+ "failure": "CacheEntryLoadFailed"
558
558
  }
559
559
  }
560
560
  ],
@@ -642,8 +642,8 @@
642
642
  "CacheEntry",
643
643
  {
644
644
  "emit": {
645
- "failure": "CacheEntryLoadFailed",
646
- "success": "CacheEntryLoaded"
645
+ "success": "CacheEntryLoaded",
646
+ "failure": "CacheEntryLoadFailed"
647
647
  }
648
648
  }
649
649
  ],