@almadar/std 9.0.0 → 11.0.0

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 +80 -80
  2. package/behaviors/registry/agent/atoms/std-agent-chat-thread.orb +103 -103
  3. package/behaviors/registry/agent/atoms/std-agent-classifier.orb +131 -113
  4. package/behaviors/registry/agent/atoms/std-agent-completion.orb +116 -98
  5. package/behaviors/registry/agent/atoms/std-agent-context-window.orb +384 -384
  6. package/behaviors/registry/agent/atoms/std-agent-conversation.orb +106 -106
  7. package/behaviors/registry/agent/atoms/std-agent-memory.orb +75 -75
  8. package/behaviors/registry/agent/atoms/std-agent-provider.orb +163 -139
  9. package/behaviors/registry/agent/atoms/std-agent-search.orb +64 -64
  10. package/behaviors/registry/agent/atoms/std-agent-session.orb +130 -130
  11. package/behaviors/registry/agent/atoms/std-agent-step-progress.orb +185 -185
  12. package/behaviors/registry/agent/atoms/std-agent-token-gauge.orb +344 -344
  13. package/behaviors/registry/agent/atoms/std-agent-tool-call.orb +81 -63
  14. package/behaviors/registry/agent/molecules/std-agent-fix-loop.orb +189 -189
  15. package/behaviors/registry/agent/molecules/std-agent-learner.orb +163 -163
  16. package/behaviors/registry/agent/molecules/std-agent-planner.orb +120 -120
  17. package/behaviors/registry/agent/molecules/std-agent-rag.orb +108 -108
  18. package/behaviors/registry/agent/molecules/std-agent-tool-loop.orb +188 -188
  19. package/behaviors/registry/agent/organisms/std-agent-assistant.orb +1097 -1072
  20. package/behaviors/registry/agent/organisms/std-agent-builder.orb +3183 -3043
  21. package/behaviors/registry/agent/organisms/std-agent-pipeline.orb +2309 -2217
  22. package/behaviors/registry/agent/organisms/std-agent-reviewer.orb +1083 -1029
  23. package/behaviors/registry/agent/organisms/std-agent-tutor.orb +793 -768
  24. package/behaviors/registry/app/organisms/std-api-gateway.orb +929 -887
  25. package/behaviors/registry/app/organisms/std-booking-system.orb +1247 -1163
  26. package/behaviors/registry/app/organisms/std-cicd-pipeline.orb +822 -780
  27. package/behaviors/registry/app/organisms/std-cms.orb +608 -512
  28. package/behaviors/registry/app/organisms/std-coding-academy.orb +393 -393
  29. package/behaviors/registry/app/organisms/std-crm.orb +887 -791
  30. package/behaviors/registry/app/organisms/std-devops-dashboard.orb +1408 -1366
  31. package/behaviors/registry/app/organisms/std-ecommerce.orb +1147 -1021
  32. package/behaviors/registry/app/organisms/std-finance-tracker.orb +670 -616
  33. package/behaviors/registry/app/organisms/std-healthcare.orb +1447 -1351
  34. package/behaviors/registry/app/organisms/std-helpdesk.orb +720 -666
  35. package/behaviors/registry/app/organisms/std-hr-portal.orb +1286 -1202
  36. package/behaviors/registry/app/organisms/std-iot-dashboard.orb +925 -883
  37. package/behaviors/registry/app/organisms/std-lms.orb +935 -893
  38. package/behaviors/registry/app/organisms/std-project-manager.orb +834 -750
  39. package/behaviors/registry/app/organisms/std-realtime-chat.orb +735 -681
  40. package/behaviors/registry/app/organisms/std-social-feed.orb +235 -211
  41. package/behaviors/registry/app/organisms/std-trading-dashboard.orb +730 -688
  42. package/behaviors/registry/core/atoms/std-browse.orb +56 -56
  43. package/behaviors/registry/core/atoms/std-cache-aside.orb +95 -95
  44. package/behaviors/registry/core/atoms/std-calendar.orb +54 -54
  45. package/behaviors/registry/core/atoms/std-circuit-breaker.orb +180 -180
  46. package/behaviors/registry/core/atoms/std-confirmation.orb +25 -25
  47. package/behaviors/registry/core/atoms/std-display.orb +388 -388
  48. package/behaviors/registry/core/atoms/std-drawer.orb +54 -54
  49. package/behaviors/registry/core/atoms/std-filter.orb +47 -47
  50. package/behaviors/registry/core/atoms/std-gallery.orb +51 -51
  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 +43 -43
  54. package/behaviors/registry/core/atoms/std-rate-limiter.orb +194 -194
  55. package/behaviors/registry/core/atoms/std-related.orb +37 -37
  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 +44 -44
  59. package/behaviors/registry/core/molecules/std-cart.orb +55 -59
  60. package/behaviors/registry/core/molecules/std-filtered-list.orb +6 -6
  61. package/behaviors/registry/core/molecules/std-form-advanced.orb +132 -132
  62. package/behaviors/registry/core/molecules/std-list.orb +79 -85
  63. package/behaviors/registry/core/molecules/std-wizard-form.orb +146 -146
  64. package/behaviors/registry/game/atoms/std-collision.orb +122 -122
  65. package/behaviors/registry/game/atoms/std-combat.orb +66 -66
  66. package/behaviors/registry/game/atoms/std-dialogue-box.orb +25 -25
  67. package/behaviors/registry/game/atoms/std-game-canvas2d.orb +43 -43
  68. package/behaviors/registry/game/atoms/std-gameflow.orb +37 -37
  69. package/behaviors/registry/game/atoms/std-movement.orb +291 -291
  70. package/behaviors/registry/game/atoms/std-overworld.orb +69 -69
  71. package/behaviors/registry/game/atoms/std-physics2d.orb +77 -77
  72. package/behaviors/registry/game/atoms/std-quest.orb +133 -133
  73. package/behaviors/registry/game/atoms/std-timer.orb +291 -291
  74. package/behaviors/registry/game/organisms/std-arcade-game.orb +139 -139
  75. package/behaviors/registry/game/organisms/std-logic-training.orb +81 -81
  76. package/behaviors/registry/game/organisms/std-platformer-app.orb +273 -237
  77. package/behaviors/registry/game/organisms/std-puzzle-app.orb +98 -98
  78. package/behaviors/registry/game/organisms/std-rpg-game.orb +407 -371
  79. package/behaviors/registry/game/organisms/std-stem-lab.orb +378 -378
  80. package/behaviors/registry/game/organisms/std-strategy-game.orb +557 -557
  81. package/behaviors/registry/probes/molecules/std-source-scope-probe.orb +282 -20
  82. package/behaviors/registry/service/atoms/std-service-custom-bearer.orb +84 -84
  83. package/behaviors/registry/service/atoms/std-service-email.orb +88 -88
  84. package/behaviors/registry/service/atoms/std-service-github.orb +88 -88
  85. package/behaviors/registry/service/atoms/std-service-llm.orb +119 -119
  86. package/behaviors/registry/service/atoms/std-service-oauth.orb +122 -122
  87. package/behaviors/registry/service/atoms/std-service-redis.orb +99 -99
  88. package/behaviors/registry/service/atoms/std-service-storage.orb +109 -109
  89. package/behaviors/registry/service/atoms/std-service-stripe.orb +105 -105
  90. package/behaviors/registry/service/atoms/std-service-twilio.orb +112 -112
  91. package/behaviors/registry/service/atoms/std-service-youtube.orb +111 -111
  92. package/behaviors/registry/service/organisms/std-service-marketplace.orb +1098 -1014
  93. package/behaviors/registry/service/organisms/std-service-research-assistant.orb +956 -956
  94. package/dist/behaviors/registry/agent/atoms/std-agent-activity-log.orb +80 -80
  95. package/dist/behaviors/registry/agent/atoms/std-agent-chat-thread.orb +103 -103
  96. package/dist/behaviors/registry/agent/atoms/std-agent-classifier.orb +131 -113
  97. package/dist/behaviors/registry/agent/atoms/std-agent-completion.orb +116 -98
  98. package/dist/behaviors/registry/agent/atoms/std-agent-context-window.orb +384 -384
  99. package/dist/behaviors/registry/agent/atoms/std-agent-conversation.orb +106 -106
  100. package/dist/behaviors/registry/agent/atoms/std-agent-memory.orb +75 -75
  101. package/dist/behaviors/registry/agent/atoms/std-agent-provider.orb +163 -139
  102. package/dist/behaviors/registry/agent/atoms/std-agent-search.orb +64 -64
  103. package/dist/behaviors/registry/agent/atoms/std-agent-session.orb +130 -130
  104. package/dist/behaviors/registry/agent/atoms/std-agent-step-progress.orb +185 -185
  105. package/dist/behaviors/registry/agent/atoms/std-agent-token-gauge.orb +344 -344
  106. package/dist/behaviors/registry/agent/atoms/std-agent-tool-call.orb +81 -63
  107. package/dist/behaviors/registry/agent/molecules/std-agent-fix-loop.orb +189 -189
  108. package/dist/behaviors/registry/agent/molecules/std-agent-learner.orb +163 -163
  109. package/dist/behaviors/registry/agent/molecules/std-agent-planner.orb +120 -120
  110. package/dist/behaviors/registry/agent/molecules/std-agent-rag.orb +108 -108
  111. package/dist/behaviors/registry/agent/molecules/std-agent-tool-loop.orb +188 -188
  112. package/dist/behaviors/registry/agent/organisms/std-agent-assistant.orb +1097 -1072
  113. package/dist/behaviors/registry/agent/organisms/std-agent-builder.orb +3183 -3043
  114. package/dist/behaviors/registry/agent/organisms/std-agent-pipeline.orb +2309 -2217
  115. package/dist/behaviors/registry/agent/organisms/std-agent-reviewer.orb +1083 -1029
  116. package/dist/behaviors/registry/agent/organisms/std-agent-tutor.orb +793 -768
  117. package/dist/behaviors/registry/app/organisms/std-api-gateway.orb +929 -887
  118. package/dist/behaviors/registry/app/organisms/std-booking-system.orb +1247 -1163
  119. package/dist/behaviors/registry/app/organisms/std-cicd-pipeline.orb +822 -780
  120. package/dist/behaviors/registry/app/organisms/std-cms.orb +608 -512
  121. package/dist/behaviors/registry/app/organisms/std-coding-academy.orb +393 -393
  122. package/dist/behaviors/registry/app/organisms/std-crm.orb +887 -791
  123. package/dist/behaviors/registry/app/organisms/std-devops-dashboard.orb +1408 -1366
  124. package/dist/behaviors/registry/app/organisms/std-ecommerce.orb +1147 -1021
  125. package/dist/behaviors/registry/app/organisms/std-finance-tracker.orb +670 -616
  126. package/dist/behaviors/registry/app/organisms/std-healthcare.orb +1447 -1351
  127. package/dist/behaviors/registry/app/organisms/std-helpdesk.orb +720 -666
  128. package/dist/behaviors/registry/app/organisms/std-hr-portal.orb +1286 -1202
  129. package/dist/behaviors/registry/app/organisms/std-iot-dashboard.orb +925 -883
  130. package/dist/behaviors/registry/app/organisms/std-lms.orb +935 -893
  131. package/dist/behaviors/registry/app/organisms/std-project-manager.orb +834 -750
  132. package/dist/behaviors/registry/app/organisms/std-realtime-chat.orb +735 -681
  133. package/dist/behaviors/registry/app/organisms/std-social-feed.orb +235 -211
  134. package/dist/behaviors/registry/app/organisms/std-trading-dashboard.orb +730 -688
  135. package/dist/behaviors/registry/core/atoms/std-browse.orb +56 -56
  136. package/dist/behaviors/registry/core/atoms/std-cache-aside.orb +95 -95
  137. package/dist/behaviors/registry/core/atoms/std-calendar.orb +54 -54
  138. package/dist/behaviors/registry/core/atoms/std-circuit-breaker.orb +180 -180
  139. package/dist/behaviors/registry/core/atoms/std-confirmation.orb +25 -25
  140. package/dist/behaviors/registry/core/atoms/std-display.orb +388 -388
  141. package/dist/behaviors/registry/core/atoms/std-drawer.orb +54 -54
  142. package/dist/behaviors/registry/core/atoms/std-filter.orb +47 -47
  143. package/dist/behaviors/registry/core/atoms/std-gallery.orb +51 -51
  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 +43 -43
  147. package/dist/behaviors/registry/core/atoms/std-rate-limiter.orb +194 -194
  148. package/dist/behaviors/registry/core/atoms/std-related.orb +37 -37
  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 +44 -44
  152. package/dist/behaviors/registry/core/molecules/std-cart.orb +55 -59
  153. package/dist/behaviors/registry/core/molecules/std-filtered-list.orb +6 -6
  154. package/dist/behaviors/registry/core/molecules/std-form-advanced.orb +132 -132
  155. package/dist/behaviors/registry/core/molecules/std-list.orb +79 -85
  156. package/dist/behaviors/registry/core/molecules/std-wizard-form.orb +146 -146
  157. package/dist/behaviors/registry/game/atoms/std-collision.orb +122 -122
  158. package/dist/behaviors/registry/game/atoms/std-combat.orb +66 -66
  159. package/dist/behaviors/registry/game/atoms/std-dialogue-box.orb +25 -25
  160. package/dist/behaviors/registry/game/atoms/std-game-canvas2d.orb +43 -43
  161. package/dist/behaviors/registry/game/atoms/std-gameflow.orb +37 -37
  162. package/dist/behaviors/registry/game/atoms/std-movement.orb +291 -291
  163. package/dist/behaviors/registry/game/atoms/std-overworld.orb +69 -69
  164. package/dist/behaviors/registry/game/atoms/std-physics2d.orb +77 -77
  165. package/dist/behaviors/registry/game/atoms/std-quest.orb +133 -133
  166. package/dist/behaviors/registry/game/atoms/std-timer.orb +291 -291
  167. package/dist/behaviors/registry/game/organisms/std-arcade-game.orb +139 -139
  168. package/dist/behaviors/registry/game/organisms/std-logic-training.orb +81 -81
  169. package/dist/behaviors/registry/game/organisms/std-platformer-app.orb +273 -237
  170. package/dist/behaviors/registry/game/organisms/std-puzzle-app.orb +98 -98
  171. package/dist/behaviors/registry/game/organisms/std-rpg-game.orb +407 -371
  172. package/dist/behaviors/registry/game/organisms/std-stem-lab.orb +378 -378
  173. package/dist/behaviors/registry/game/organisms/std-strategy-game.orb +557 -557
  174. package/dist/behaviors/registry/probes/molecules/std-source-scope-probe.orb +282 -20
  175. package/dist/behaviors/registry/service/atoms/std-service-custom-bearer.orb +84 -84
  176. package/dist/behaviors/registry/service/atoms/std-service-email.orb +88 -88
  177. package/dist/behaviors/registry/service/atoms/std-service-github.orb +88 -88
  178. package/dist/behaviors/registry/service/atoms/std-service-llm.orb +119 -119
  179. package/dist/behaviors/registry/service/atoms/std-service-oauth.orb +122 -122
  180. package/dist/behaviors/registry/service/atoms/std-service-redis.orb +99 -99
  181. package/dist/behaviors/registry/service/atoms/std-service-storage.orb +109 -109
  182. package/dist/behaviors/registry/service/atoms/std-service-stripe.orb +105 -105
  183. package/dist/behaviors/registry/service/atoms/std-service-twilio.orb +112 -112
  184. package/dist/behaviors/registry/service/atoms/std-service-youtube.orb +111 -111
  185. package/dist/behaviors/registry/service/organisms/std-service-marketplace.orb +1098 -1014
  186. package/dist/behaviors/registry/service/organisms/std-service-research-assistant.orb +956 -956
  187. package/package.json +1 -1
@@ -219,8 +219,8 @@
219
219
  "AgentTokenGauge",
220
220
  {
221
221
  "emit": {
222
- "failure": "AgentTokenGaugeLoadFailed",
223
- "success": "AgentTokenGaugeLoaded"
222
+ "success": "AgentTokenGaugeLoaded",
223
+ "failure": "AgentTokenGaugeLoadFailed"
224
224
  }
225
225
  }
226
226
  ],
@@ -228,29 +228,28 @@
228
228
  "render-ui",
229
229
  "main",
230
230
  {
231
- "type": "stack",
232
231
  "children": [
233
232
  {
233
+ "type": "stack",
234
234
  "children": [
235
235
  {
236
- "type": "icon",
237
- "name": "gauge"
236
+ "name": "gauge",
237
+ "type": "icon"
238
238
  },
239
239
  {
240
- "variant": "h2",
241
240
  "content": "Token Usage",
241
+ "variant": "h2",
242
242
  "type": "typography"
243
243
  },
244
244
  {
245
- "label": "Normal",
245
+ "variant": "default",
246
246
  "type": "badge",
247
- "variant": "default"
247
+ "label": "Normal"
248
248
  }
249
249
  ],
250
- "gap": "sm",
251
250
  "direction": "horizontal",
252
251
  "align": "center",
253
- "type": "stack"
252
+ "gap": "sm"
254
253
  },
255
254
  {
256
255
  "type": "divider"
@@ -261,13 +260,11 @@
261
260
  "value": "@entity.current"
262
261
  },
263
262
  {
264
- "type": "stack",
265
263
  "direction": "horizontal",
266
- "gap": "md",
267
264
  "children": [
268
265
  {
269
- "label": "Tokens Used",
270
266
  "type": "stat-display",
267
+ "label": "Tokens Used",
271
268
  "value": "@entity.current"
272
269
  },
273
270
  {
@@ -275,18 +272,21 @@
275
272
  "label": "Max Tokens",
276
273
  "value": "@entity.max"
277
274
  }
278
- ]
275
+ ],
276
+ "gap": "md",
277
+ "type": "stack"
279
278
  },
280
279
  {
281
- "label": "Reset",
280
+ "icon": "rotate-ccw",
282
281
  "type": "button",
282
+ "variant": "ghost",
283
283
  "action": "RESET",
284
- "icon": "rotate-ccw",
285
- "variant": "ghost"
284
+ "label": "Reset"
286
285
  }
287
286
  ],
288
- "direction": "vertical",
289
- "gap": "lg"
287
+ "gap": "lg",
288
+ "type": "stack",
289
+ "direction": "vertical"
290
290
  }
291
291
  ]
292
292
  ]
@@ -314,21 +314,22 @@
314
314
  "render-ui",
315
315
  "main",
316
316
  {
317
+ "gap": "lg",
317
318
  "type": "stack",
318
319
  "children": [
319
320
  {
320
- "align": "center",
321
- "type": "stack",
322
- "gap": "sm",
323
321
  "direction": "horizontal",
322
+ "gap": "sm",
323
+ "type": "stack",
324
+ "align": "center",
324
325
  "children": [
325
326
  {
326
- "name": "gauge",
327
- "type": "icon"
327
+ "type": "icon",
328
+ "name": "gauge"
328
329
  },
329
330
  {
330
- "content": "Token Usage",
331
331
  "type": "typography",
332
+ "content": "Token Usage",
332
333
  "variant": "h2"
333
334
  },
334
335
  {
@@ -349,29 +350,28 @@
349
350
  {
350
351
  "children": [
351
352
  {
352
- "type": "stat-display",
353
353
  "value": "@entity.current",
354
+ "type": "stat-display",
354
355
  "label": "Tokens Used"
355
356
  },
356
357
  {
357
- "type": "stat-display",
358
358
  "value": "@entity.max",
359
+ "type": "stat-display",
359
360
  "label": "Max Tokens"
360
361
  }
361
362
  ],
362
363
  "direction": "horizontal",
363
- "type": "stack",
364
- "gap": "md"
364
+ "gap": "md",
365
+ "type": "stack"
365
366
  },
366
367
  {
367
- "action": "RESET",
368
368
  "label": "Reset",
369
- "type": "button",
370
369
  "variant": "ghost",
371
- "icon": "rotate-ccw"
370
+ "icon": "rotate-ccw",
371
+ "type": "button",
372
+ "action": "RESET"
372
373
  }
373
374
  ],
374
- "gap": "lg",
375
375
  "direction": "vertical"
376
376
  }
377
377
  ]
@@ -412,28 +412,30 @@
412
412
  "render-ui",
413
413
  "main",
414
414
  {
415
+ "type": "stack",
416
+ "gap": "lg",
415
417
  "children": [
416
418
  {
417
419
  "align": "center",
418
- "type": "stack",
419
420
  "children": [
420
421
  {
421
422
  "type": "icon",
422
423
  "name": "alert-triangle"
423
424
  },
424
425
  {
425
- "variant": "h2",
426
+ "content": "Token Usage",
426
427
  "type": "typography",
427
- "content": "Token Usage"
428
+ "variant": "h2"
428
429
  },
429
430
  {
431
+ "variant": "warning",
430
432
  "type": "badge",
431
- "label": "Warning",
432
- "variant": "warning"
433
+ "label": "Warning"
433
434
  }
434
435
  ],
436
+ "gap": "sm",
435
437
  "direction": "horizontal",
436
- "gap": "sm"
438
+ "type": "stack"
437
439
  },
438
440
  {
439
441
  "type": "divider"
@@ -449,8 +451,8 @@
449
451
  "type": "progress-bar"
450
452
  },
451
453
  {
452
- "type": "stack",
453
454
  "direction": "horizontal",
455
+ "type": "stack",
454
456
  "gap": "md",
455
457
  "children": [
456
458
  {
@@ -459,37 +461,35 @@
459
461
  "label": "Tokens Used"
460
462
  },
461
463
  {
462
- "type": "stat-display",
464
+ "label": "Max Tokens",
463
465
  "value": "@entity.max",
464
- "label": "Max Tokens"
466
+ "type": "stat-display"
465
467
  }
466
468
  ]
467
469
  },
468
470
  {
469
- "gap": "sm",
470
471
  "direction": "horizontal",
471
- "type": "stack",
472
+ "gap": "sm",
472
473
  "children": [
473
474
  {
474
- "icon": "minimize-2",
475
475
  "type": "button",
476
- "label": "Compact",
476
+ "action": "COMPACT",
477
+ "icon": "minimize-2",
477
478
  "variant": "primary",
478
- "action": "COMPACT"
479
+ "label": "Compact"
479
480
  },
480
481
  {
481
- "icon": "rotate-ccw",
482
- "label": "Reset",
483
- "action": "RESET",
484
482
  "type": "button",
485
- "variant": "ghost"
483
+ "variant": "ghost",
484
+ "action": "RESET",
485
+ "icon": "rotate-ccw",
486
+ "label": "Reset"
486
487
  }
487
- ]
488
+ ],
489
+ "type": "stack"
488
490
  }
489
491
  ],
490
- "direction": "vertical",
491
- "gap": "lg",
492
- "type": "stack"
492
+ "direction": "vertical"
493
493
  }
494
494
  ]
495
495
  ]
@@ -517,84 +517,84 @@
517
517
  "render-ui",
518
518
  "main",
519
519
  {
520
- "type": "stack",
521
- "direction": "vertical",
522
520
  "children": [
523
521
  {
522
+ "gap": "sm",
523
+ "type": "stack",
524
+ "direction": "horizontal",
525
+ "align": "center",
524
526
  "children": [
525
527
  {
526
528
  "name": "alert-octagon",
527
529
  "type": "icon"
528
530
  },
529
531
  {
532
+ "type": "typography",
530
533
  "content": "Token Usage",
531
- "variant": "h2",
532
- "type": "typography"
534
+ "variant": "h2"
533
535
  },
534
536
  {
537
+ "type": "badge",
535
538
  "variant": "danger",
536
- "label": "Critical",
537
- "type": "badge"
539
+ "label": "Critical"
538
540
  }
539
- ],
540
- "gap": "sm",
541
- "direction": "horizontal",
542
- "type": "stack",
543
- "align": "center"
541
+ ]
544
542
  },
545
543
  {
546
544
  "type": "divider"
547
545
  },
548
546
  {
549
- "type": "alert",
550
547
  "variant": "error",
551
- "message": "Token usage critical. Compact immediately to avoid truncation."
548
+ "message": "Token usage critical. Compact immediately to avoid truncation.",
549
+ "type": "alert"
552
550
  },
553
551
  {
554
- "max": "@entity.max",
555
552
  "value": "@entity.current",
556
- "type": "progress-bar"
553
+ "type": "progress-bar",
554
+ "max": "@entity.max"
557
555
  },
558
556
  {
559
557
  "type": "stack",
560
558
  "gap": "md",
561
- "direction": "horizontal",
562
559
  "children": [
563
560
  {
564
- "value": "@entity.current",
561
+ "label": "Tokens Used",
565
562
  "type": "stat-display",
566
- "label": "Tokens Used"
563
+ "value": "@entity.current"
567
564
  },
568
565
  {
569
- "label": "Max Tokens",
570
566
  "type": "stat-display",
567
+ "label": "Max Tokens",
571
568
  "value": "@entity.max"
572
569
  }
573
- ]
570
+ ],
571
+ "direction": "horizontal"
574
572
  },
575
573
  {
574
+ "direction": "horizontal",
575
+ "type": "stack",
576
+ "gap": "sm",
576
577
  "children": [
577
578
  {
578
- "action": "COMPACT",
579
579
  "type": "button",
580
+ "action": "COMPACT",
580
581
  "label": "Compact Now",
581
- "variant": "primary",
582
- "icon": "minimize-2"
582
+ "icon": "minimize-2",
583
+ "variant": "primary"
583
584
  },
584
585
  {
585
- "icon": "rotate-ccw",
586
- "type": "button",
587
586
  "label": "Reset",
588
587
  "action": "RESET",
589
- "variant": "ghost"
588
+ "icon": "rotate-ccw",
589
+ "variant": "ghost",
590
+ "type": "button"
590
591
  }
591
- ],
592
- "gap": "sm",
593
- "type": "stack",
594
- "direction": "horizontal"
592
+ ]
595
593
  }
596
594
  ],
597
- "gap": "lg"
595
+ "type": "stack",
596
+ "gap": "lg",
597
+ "direction": "vertical"
598
598
  }
599
599
  ]
600
600
  ]
@@ -619,18 +619,16 @@
619
619
  "render-ui",
620
620
  "main",
621
621
  {
622
- "type": "stack",
623
- "direction": "vertical",
624
622
  "children": [
625
623
  {
626
- "type": "stack",
627
- "direction": "horizontal",
628
- "gap": "sm",
629
624
  "align": "center",
625
+ "gap": "sm",
626
+ "direction": "horizontal",
627
+ "type": "stack",
630
628
  "children": [
631
629
  {
632
- "name": "gauge",
633
- "type": "icon"
630
+ "type": "icon",
631
+ "name": "gauge"
634
632
  },
635
633
  {
636
634
  "variant": "h2",
@@ -649,12 +647,10 @@
649
647
  },
650
648
  {
651
649
  "type": "progress-bar",
652
- "max": "@entity.max",
653
- "value": "@entity.current"
650
+ "value": "@entity.current",
651
+ "max": "@entity.max"
654
652
  },
655
653
  {
656
- "gap": "md",
657
- "type": "stack",
658
654
  "children": [
659
655
  {
660
656
  "label": "Tokens Used",
@@ -667,16 +663,20 @@
667
663
  "label": "Max Tokens"
668
664
  }
669
665
  ],
666
+ "gap": "md",
667
+ "type": "stack",
670
668
  "direction": "horizontal"
671
669
  },
672
670
  {
673
671
  "icon": "rotate-ccw",
674
- "type": "button",
675
672
  "action": "RESET",
676
- "variant": "ghost",
677
- "label": "Reset"
673
+ "type": "button",
674
+ "label": "Reset",
675
+ "variant": "ghost"
678
676
  }
679
677
  ],
678
+ "direction": "vertical",
679
+ "type": "stack",
680
680
  "gap": "lg"
681
681
  }
682
682
  ]
@@ -696,28 +696,30 @@
696
696
  "render-ui",
697
697
  "main",
698
698
  {
699
+ "direction": "vertical",
700
+ "gap": "lg",
699
701
  "children": [
700
702
  {
701
703
  "type": "stack",
702
- "gap": "sm",
703
704
  "direction": "horizontal",
704
- "align": "center",
705
705
  "children": [
706
706
  {
707
- "type": "icon",
708
- "name": "gauge"
707
+ "name": "gauge",
708
+ "type": "icon"
709
709
  },
710
710
  {
711
711
  "variant": "h2",
712
- "type": "typography",
713
- "content": "Token Usage"
712
+ "content": "Token Usage",
713
+ "type": "typography"
714
714
  },
715
715
  {
716
- "label": "Normal",
717
716
  "variant": "default",
717
+ "label": "Normal",
718
718
  "type": "badge"
719
719
  }
720
- ]
720
+ ],
721
+ "gap": "sm",
722
+ "align": "center"
721
723
  },
722
724
  {
723
725
  "type": "divider"
@@ -728,33 +730,31 @@
728
730
  "max": "@entity.max"
729
731
  },
730
732
  {
733
+ "direction": "horizontal",
734
+ "type": "stack",
731
735
  "children": [
732
736
  {
733
737
  "value": "@entity.current",
734
- "label": "Tokens Used",
735
- "type": "stat-display"
738
+ "type": "stat-display",
739
+ "label": "Tokens Used"
736
740
  },
737
741
  {
738
- "value": "@entity.max",
739
742
  "type": "stat-display",
740
- "label": "Max Tokens"
743
+ "label": "Max Tokens",
744
+ "value": "@entity.max"
741
745
  }
742
746
  ],
743
- "gap": "md",
744
- "type": "stack",
745
- "direction": "horizontal"
747
+ "gap": "md"
746
748
  },
747
749
  {
748
- "label": "Reset",
749
- "type": "button",
750
750
  "action": "RESET",
751
751
  "variant": "ghost",
752
- "icon": "rotate-ccw"
752
+ "icon": "rotate-ccw",
753
+ "type": "button",
754
+ "label": "Reset"
753
755
  }
754
756
  ],
755
- "gap": "lg",
756
- "type": "stack",
757
- "direction": "vertical"
757
+ "type": "stack"
758
758
  }
759
759
  ]
760
760
  ]
@@ -794,17 +794,18 @@
794
794
  "render-ui",
795
795
  "main",
796
796
  {
797
+ "type": "stack",
798
+ "gap": "lg",
797
799
  "direction": "vertical",
798
800
  "children": [
799
801
  {
800
- "gap": "sm",
801
- "type": "stack",
802
802
  "align": "center",
803
+ "gap": "sm",
803
804
  "direction": "horizontal",
804
805
  "children": [
805
806
  {
806
- "name": "alert-triangle",
807
- "type": "icon"
807
+ "type": "icon",
808
+ "name": "alert-triangle"
808
809
  },
809
810
  {
810
811
  "content": "Token Usage",
@@ -812,34 +813,35 @@
812
813
  "variant": "h2"
813
814
  },
814
815
  {
815
- "label": "Warning",
816
816
  "type": "badge",
817
- "variant": "warning"
817
+ "variant": "warning",
818
+ "label": "Warning"
818
819
  }
819
- ]
820
+ ],
821
+ "type": "stack"
820
822
  },
821
823
  {
822
824
  "type": "divider"
823
825
  },
824
826
  {
827
+ "message": "Token usage approaching limit. Consider compacting.",
825
828
  "type": "alert",
826
- "variant": "warning",
827
- "message": "Token usage approaching limit. Consider compacting."
829
+ "variant": "warning"
828
830
  },
829
831
  {
830
832
  "type": "progress-bar",
831
- "max": "@entity.max",
832
- "value": "@entity.current"
833
+ "value": "@entity.current",
834
+ "max": "@entity.max"
833
835
  },
834
836
  {
835
- "gap": "md",
836
- "direction": "horizontal",
837
837
  "type": "stack",
838
+ "direction": "horizontal",
839
+ "gap": "md",
838
840
  "children": [
839
841
  {
842
+ "type": "stat-display",
840
843
  "label": "Tokens Used",
841
- "value": "@entity.current",
842
- "type": "stat-display"
844
+ "value": "@entity.current"
843
845
  },
844
846
  {
845
847
  "type": "stat-display",
@@ -849,29 +851,27 @@
849
851
  ]
850
852
  },
851
853
  {
852
- "type": "stack",
853
- "direction": "horizontal",
854
- "gap": "sm",
855
854
  "children": [
856
855
  {
857
- "type": "button",
858
- "icon": "minimize-2",
859
- "variant": "primary",
860
856
  "action": "COMPACT",
861
- "label": "Compact"
857
+ "label": "Compact",
858
+ "variant": "primary",
859
+ "icon": "minimize-2",
860
+ "type": "button"
862
861
  },
863
862
  {
864
- "action": "RESET",
865
- "type": "button",
866
- "icon": "rotate-ccw",
867
863
  "variant": "ghost",
868
- "label": "Reset"
864
+ "icon": "rotate-ccw",
865
+ "action": "RESET",
866
+ "label": "Reset",
867
+ "type": "button"
869
868
  }
870
- ]
869
+ ],
870
+ "gap": "sm",
871
+ "direction": "horizontal",
872
+ "type": "stack"
871
873
  }
872
- ],
873
- "type": "stack",
874
- "gap": "lg"
874
+ ]
875
875
  }
876
876
  ]
877
877
  ]
@@ -899,11 +899,10 @@
899
899
  "render-ui",
900
900
  "main",
901
901
  {
902
+ "direction": "vertical",
903
+ "gap": "lg",
902
904
  "children": [
903
905
  {
904
- "align": "center",
905
- "direction": "horizontal",
906
- "gap": "sm",
907
906
  "children": [
908
907
  {
909
908
  "type": "icon",
@@ -915,32 +914,36 @@
915
914
  "variant": "h2"
916
915
  },
917
916
  {
918
- "variant": "danger",
919
917
  "label": "Critical",
920
- "type": "badge"
918
+ "type": "badge",
919
+ "variant": "danger"
921
920
  }
922
921
  ],
922
+ "align": "center",
923
+ "gap": "sm",
924
+ "direction": "horizontal",
923
925
  "type": "stack"
924
926
  },
925
927
  {
926
928
  "type": "divider"
927
929
  },
928
930
  {
929
- "type": "alert",
930
931
  "variant": "error",
931
- "message": "Token usage critical. Compact immediately to avoid truncation."
932
+ "message": "Token usage critical. Compact immediately to avoid truncation.",
933
+ "type": "alert"
932
934
  },
933
935
  {
934
- "type": "progress-bar",
935
936
  "value": "@entity.current",
937
+ "type": "progress-bar",
936
938
  "max": "@entity.max"
937
939
  },
938
940
  {
941
+ "type": "stack",
939
942
  "children": [
940
943
  {
944
+ "type": "stat-display",
941
945
  "value": "@entity.current",
942
- "label": "Tokens Used",
943
- "type": "stat-display"
946
+ "label": "Tokens Used"
944
947
  },
945
948
  {
946
949
  "label": "Max Tokens",
@@ -948,35 +951,32 @@
948
951
  "type": "stat-display"
949
952
  }
950
953
  ],
951
- "type": "stack",
952
- "gap": "md",
953
- "direction": "horizontal"
954
+ "direction": "horizontal",
955
+ "gap": "md"
954
956
  },
955
957
  {
956
- "gap": "sm",
957
958
  "type": "stack",
958
959
  "direction": "horizontal",
960
+ "gap": "sm",
959
961
  "children": [
960
962
  {
963
+ "action": "COMPACT",
964
+ "variant": "primary",
961
965
  "type": "button",
962
- "label": "Compact Now",
963
966
  "icon": "minimize-2",
964
- "action": "COMPACT",
965
- "variant": "primary"
967
+ "label": "Compact Now"
966
968
  },
967
969
  {
968
- "variant": "ghost",
969
- "label": "Reset",
970
970
  "type": "button",
971
+ "variant": "ghost",
971
972
  "icon": "rotate-ccw",
973
+ "label": "Reset",
972
974
  "action": "RESET"
973
975
  }
974
976
  ]
975
977
  }
976
978
  ],
977
- "gap": "lg",
978
- "type": "stack",
979
- "direction": "vertical"
979
+ "type": "stack"
980
980
  }
981
981
  ]
982
982
  ]
@@ -1006,51 +1006,50 @@
1006
1006
  {
1007
1007
  "direction": "vertical",
1008
1008
  "gap": "lg",
1009
- "type": "stack",
1010
1009
  "children": [
1011
1010
  {
1012
- "gap": "sm",
1013
1011
  "align": "center",
1014
- "direction": "horizontal",
1015
- "type": "stack",
1016
1012
  "children": [
1017
1013
  {
1018
1014
  "type": "icon",
1019
1015
  "name": "gauge"
1020
1016
  },
1021
1017
  {
1018
+ "content": "Token Usage",
1022
1019
  "variant": "h2",
1023
- "type": "typography",
1024
- "content": "Token Usage"
1020
+ "type": "typography"
1025
1021
  },
1026
1022
  {
1027
1023
  "label": "Normal",
1028
1024
  "type": "badge",
1029
1025
  "variant": "default"
1030
1026
  }
1031
- ]
1027
+ ],
1028
+ "direction": "horizontal",
1029
+ "gap": "sm",
1030
+ "type": "stack"
1032
1031
  },
1033
1032
  {
1034
1033
  "type": "divider"
1035
1034
  },
1036
1035
  {
1036
+ "max": "@entity.max",
1037
1037
  "value": "@entity.current",
1038
- "type": "progress-bar",
1039
- "max": "@entity.max"
1038
+ "type": "progress-bar"
1040
1039
  },
1041
1040
  {
1042
- "direction": "horizontal",
1043
1041
  "type": "stack",
1044
1042
  "gap": "md",
1043
+ "direction": "horizontal",
1045
1044
  "children": [
1046
1045
  {
1046
+ "label": "Tokens Used",
1047
1047
  "value": "@entity.current",
1048
- "type": "stat-display",
1049
- "label": "Tokens Used"
1048
+ "type": "stat-display"
1050
1049
  },
1051
1050
  {
1052
- "type": "stat-display",
1053
1051
  "label": "Max Tokens",
1052
+ "type": "stat-display",
1054
1053
  "value": "@entity.max"
1055
1054
  }
1056
1055
  ]
@@ -1058,11 +1057,12 @@
1058
1057
  {
1059
1058
  "icon": "rotate-ccw",
1060
1059
  "type": "button",
1061
- "label": "Reset",
1060
+ "variant": "ghost",
1062
1061
  "action": "RESET",
1063
- "variant": "ghost"
1062
+ "label": "Reset"
1064
1063
  }
1065
- ]
1064
+ ],
1065
+ "type": "stack"
1066
1066
  }
1067
1067
  ]
1068
1068
  ]
@@ -1087,65 +1087,65 @@
1087
1087
  "render-ui",
1088
1088
  "main",
1089
1089
  {
1090
- "type": "stack",
1091
- "gap": "lg",
1092
- "direction": "vertical",
1093
1090
  "children": [
1094
1091
  {
1095
- "type": "stack",
1096
- "gap": "sm",
1097
- "align": "center",
1098
1092
  "direction": "horizontal",
1093
+ "align": "center",
1099
1094
  "children": [
1100
1095
  {
1101
1096
  "type": "icon",
1102
1097
  "name": "gauge"
1103
1098
  },
1104
1099
  {
1105
- "variant": "h2",
1100
+ "type": "typography",
1106
1101
  "content": "Token Usage",
1107
- "type": "typography"
1102
+ "variant": "h2"
1108
1103
  },
1109
1104
  {
1110
1105
  "type": "badge",
1111
1106
  "label": "Normal",
1112
1107
  "variant": "default"
1113
1108
  }
1114
- ]
1109
+ ],
1110
+ "gap": "sm",
1111
+ "type": "stack"
1115
1112
  },
1116
1113
  {
1117
1114
  "type": "divider"
1118
1115
  },
1119
1116
  {
1120
1117
  "type": "progress-bar",
1121
- "max": "@entity.max",
1122
- "value": "@entity.current"
1118
+ "value": "@entity.current",
1119
+ "max": "@entity.max"
1123
1120
  },
1124
1121
  {
1125
- "gap": "md",
1122
+ "type": "stack",
1123
+ "direction": "horizontal",
1126
1124
  "children": [
1127
1125
  {
1126
+ "value": "@entity.current",
1128
1127
  "type": "stat-display",
1129
- "label": "Tokens Used",
1130
- "value": "@entity.current"
1128
+ "label": "Tokens Used"
1131
1129
  },
1132
1130
  {
1133
1131
  "label": "Max Tokens",
1134
- "value": "@entity.max",
1135
- "type": "stat-display"
1132
+ "type": "stat-display",
1133
+ "value": "@entity.max"
1136
1134
  }
1137
1135
  ],
1138
- "direction": "horizontal",
1139
- "type": "stack"
1136
+ "gap": "md"
1140
1137
  },
1141
1138
  {
1139
+ "action": "RESET",
1142
1140
  "type": "button",
1143
1141
  "variant": "ghost",
1144
- "label": "Reset",
1145
- "action": "RESET",
1146
- "icon": "rotate-ccw"
1142
+ "icon": "rotate-ccw",
1143
+ "label": "Reset"
1147
1144
  }
1148
- ]
1145
+ ],
1146
+ "type": "stack",
1147
+ "gap": "lg",
1148
+ "direction": "vertical"
1149
1149
  }
1150
1150
  ]
1151
1151
  ]
@@ -1164,64 +1164,64 @@
1164
1164
  "render-ui",
1165
1165
  "main",
1166
1166
  {
1167
- "type": "stack",
1167
+ "direction": "vertical",
1168
1168
  "children": [
1169
1169
  {
1170
+ "align": "center",
1170
1171
  "gap": "sm",
1172
+ "type": "stack",
1171
1173
  "direction": "horizontal",
1172
- "align": "center",
1173
1174
  "children": [
1174
1175
  {
1175
- "type": "icon",
1176
- "name": "gauge"
1176
+ "name": "gauge",
1177
+ "type": "icon"
1177
1178
  },
1178
1179
  {
1179
- "type": "typography",
1180
1180
  "content": "Token Usage",
1181
- "variant": "h2"
1181
+ "variant": "h2",
1182
+ "type": "typography"
1182
1183
  },
1183
1184
  {
1185
+ "variant": "default",
1184
1186
  "label": "Normal",
1185
- "type": "badge",
1186
- "variant": "default"
1187
+ "type": "badge"
1187
1188
  }
1188
- ],
1189
- "type": "stack"
1189
+ ]
1190
1190
  },
1191
1191
  {
1192
1192
  "type": "divider"
1193
1193
  },
1194
1194
  {
1195
1195
  "value": "@entity.current",
1196
- "type": "progress-bar",
1197
- "max": "@entity.max"
1196
+ "max": "@entity.max",
1197
+ "type": "progress-bar"
1198
1198
  },
1199
1199
  {
1200
- "type": "stack",
1201
- "direction": "horizontal",
1200
+ "gap": "md",
1202
1201
  "children": [
1203
1202
  {
1204
- "value": "@entity.current",
1205
1203
  "label": "Tokens Used",
1204
+ "value": "@entity.current",
1206
1205
  "type": "stat-display"
1207
1206
  },
1208
1207
  {
1209
- "type": "stat-display",
1210
1208
  "label": "Max Tokens",
1209
+ "type": "stat-display",
1211
1210
  "value": "@entity.max"
1212
1211
  }
1213
1212
  ],
1214
- "gap": "md"
1213
+ "direction": "horizontal",
1214
+ "type": "stack"
1215
1215
  },
1216
1216
  {
1217
- "icon": "rotate-ccw",
1218
1217
  "label": "Reset",
1219
- "action": "RESET",
1220
1218
  "type": "button",
1221
- "variant": "ghost"
1219
+ "variant": "ghost",
1220
+ "icon": "rotate-ccw",
1221
+ "action": "RESET"
1222
1222
  }
1223
1223
  ],
1224
- "direction": "vertical",
1224
+ "type": "stack",
1225
1225
  "gap": "lg"
1226
1226
  }
1227
1227
  ]
@@ -1251,27 +1251,29 @@
1251
1251
  "main",
1252
1252
  {
1253
1253
  "type": "stack",
1254
+ "direction": "vertical",
1255
+ "gap": "lg",
1254
1256
  "children": [
1255
1257
  {
1258
+ "align": "center",
1256
1259
  "gap": "sm",
1260
+ "direction": "horizontal",
1257
1261
  "children": [
1258
1262
  {
1259
- "name": "alert-octagon",
1260
- "type": "icon"
1263
+ "type": "icon",
1264
+ "name": "alert-octagon"
1261
1265
  },
1262
1266
  {
1263
- "variant": "h2",
1267
+ "content": "Token Usage",
1264
1268
  "type": "typography",
1265
- "content": "Token Usage"
1269
+ "variant": "h2"
1266
1270
  },
1267
1271
  {
1268
- "type": "badge",
1269
1272
  "variant": "danger",
1273
+ "type": "badge",
1270
1274
  "label": "Critical"
1271
1275
  }
1272
1276
  ],
1273
- "direction": "horizontal",
1274
- "align": "center",
1275
1277
  "type": "stack"
1276
1278
  },
1277
1279
  {
@@ -1279,55 +1281,53 @@
1279
1281
  },
1280
1282
  {
1281
1283
  "variant": "error",
1282
- "message": "Token usage critical. Compact immediately to avoid truncation.",
1283
- "type": "alert"
1284
+ "type": "alert",
1285
+ "message": "Token usage critical. Compact immediately to avoid truncation."
1284
1286
  },
1285
1287
  {
1286
- "type": "progress-bar",
1288
+ "value": "@entity.current",
1287
1289
  "max": "@entity.max",
1288
- "value": "@entity.current"
1290
+ "type": "progress-bar"
1289
1291
  },
1290
1292
  {
1291
- "direction": "horizontal",
1292
- "gap": "md",
1293
- "type": "stack",
1294
1293
  "children": [
1295
1294
  {
1296
- "type": "stat-display",
1295
+ "value": "@entity.current",
1297
1296
  "label": "Tokens Used",
1298
- "value": "@entity.current"
1297
+ "type": "stat-display"
1299
1298
  },
1300
1299
  {
1301
1300
  "value": "@entity.max",
1302
1301
  "type": "stat-display",
1303
1302
  "label": "Max Tokens"
1304
1303
  }
1305
- ]
1304
+ ],
1305
+ "type": "stack",
1306
+ "direction": "horizontal",
1307
+ "gap": "md"
1306
1308
  },
1307
1309
  {
1310
+ "gap": "sm",
1308
1311
  "direction": "horizontal",
1309
1312
  "children": [
1310
1313
  {
1311
- "label": "Compact Now",
1312
- "type": "button",
1314
+ "action": "COMPACT",
1313
1315
  "variant": "primary",
1314
- "icon": "minimize-2",
1315
- "action": "COMPACT"
1316
+ "type": "button",
1317
+ "label": "Compact Now",
1318
+ "icon": "minimize-2"
1316
1319
  },
1317
1320
  {
1321
+ "action": "RESET",
1318
1322
  "variant": "ghost",
1319
- "icon": "rotate-ccw",
1320
- "type": "button",
1321
1323
  "label": "Reset",
1322
- "action": "RESET"
1324
+ "icon": "rotate-ccw",
1325
+ "type": "button"
1323
1326
  }
1324
1327
  ],
1325
- "gap": "sm",
1326
1328
  "type": "stack"
1327
1329
  }
1328
- ],
1329
- "gap": "lg",
1330
- "direction": "vertical"
1330
+ ]
1331
1331
  }
1332
1332
  ]
1333
1333
  ]
@@ -1367,12 +1367,15 @@
1367
1367
  "render-ui",
1368
1368
  "main",
1369
1369
  {
1370
+ "gap": "lg",
1370
1371
  "type": "stack",
1372
+ "direction": "vertical",
1371
1373
  "children": [
1372
1374
  {
1373
- "gap": "sm",
1374
1375
  "type": "stack",
1375
1376
  "direction": "horizontal",
1377
+ "gap": "sm",
1378
+ "align": "center",
1376
1379
  "children": [
1377
1380
  {
1378
1381
  "name": "alert-triangle",
@@ -1384,12 +1387,11 @@
1384
1387
  "type": "typography"
1385
1388
  },
1386
1389
  {
1390
+ "type": "badge",
1387
1391
  "label": "Warning",
1388
- "variant": "warning",
1389
- "type": "badge"
1392
+ "variant": "warning"
1390
1393
  }
1391
- ],
1392
- "align": "center"
1394
+ ]
1393
1395
  },
1394
1396
  {
1395
1397
  "type": "divider"
@@ -1401,50 +1403,48 @@
1401
1403
  },
1402
1404
  {
1403
1405
  "type": "progress-bar",
1404
- "value": "@entity.current",
1405
- "max": "@entity.max"
1406
+ "max": "@entity.max",
1407
+ "value": "@entity.current"
1406
1408
  },
1407
1409
  {
1410
+ "gap": "md",
1411
+ "type": "stack",
1412
+ "direction": "horizontal",
1408
1413
  "children": [
1409
1414
  {
1415
+ "type": "stat-display",
1410
1416
  "label": "Tokens Used",
1411
- "value": "@entity.current",
1412
- "type": "stat-display"
1417
+ "value": "@entity.current"
1413
1418
  },
1414
1419
  {
1415
1420
  "value": "@entity.max",
1416
- "label": "Max Tokens",
1417
- "type": "stat-display"
1421
+ "type": "stat-display",
1422
+ "label": "Max Tokens"
1418
1423
  }
1419
- ],
1420
- "gap": "md",
1421
- "direction": "horizontal",
1422
- "type": "stack"
1424
+ ]
1423
1425
  },
1424
1426
  {
1427
+ "direction": "horizontal",
1425
1428
  "type": "stack",
1429
+ "gap": "sm",
1426
1430
  "children": [
1427
1431
  {
1428
- "icon": "minimize-2",
1429
- "label": "Compact",
1430
1432
  "variant": "primary",
1431
- "type": "button",
1432
- "action": "COMPACT"
1433
+ "label": "Compact",
1434
+ "action": "COMPACT",
1435
+ "icon": "minimize-2",
1436
+ "type": "button"
1433
1437
  },
1434
1438
  {
1435
1439
  "icon": "rotate-ccw",
1436
1440
  "label": "Reset",
1441
+ "variant": "ghost",
1437
1442
  "type": "button",
1438
- "action": "RESET",
1439
- "variant": "ghost"
1443
+ "action": "RESET"
1440
1444
  }
1441
- ],
1442
- "direction": "horizontal",
1443
- "gap": "sm"
1445
+ ]
1444
1446
  }
1445
- ],
1446
- "direction": "vertical",
1447
- "gap": "lg"
1447
+ ]
1448
1448
  }
1449
1449
  ]
1450
1450
  ]
@@ -1472,16 +1472,16 @@
1472
1472
  "render-ui",
1473
1473
  "main",
1474
1474
  {
1475
- "type": "stack",
1476
- "gap": "lg",
1477
1475
  "direction": "vertical",
1478
1476
  "children": [
1479
1477
  {
1480
- "align": "center",
1478
+ "gap": "sm",
1479
+ "type": "stack",
1480
+ "direction": "horizontal",
1481
1481
  "children": [
1482
1482
  {
1483
- "type": "icon",
1484
- "name": "gauge"
1483
+ "name": "gauge",
1484
+ "type": "icon"
1485
1485
  },
1486
1486
  {
1487
1487
  "type": "typography",
@@ -1489,29 +1489,28 @@
1489
1489
  "variant": "h2"
1490
1490
  },
1491
1491
  {
1492
+ "type": "badge",
1492
1493
  "variant": "default",
1493
- "label": "Normal",
1494
- "type": "badge"
1494
+ "label": "Normal"
1495
1495
  }
1496
1496
  ],
1497
- "direction": "horizontal",
1498
- "type": "stack",
1499
- "gap": "sm"
1497
+ "align": "center"
1500
1498
  },
1501
1499
  {
1502
1500
  "type": "divider"
1503
1501
  },
1504
1502
  {
1505
- "type": "progress-bar",
1506
1503
  "max": "@entity.max",
1504
+ "type": "progress-bar",
1507
1505
  "value": "@entity.current"
1508
1506
  },
1509
1507
  {
1508
+ "gap": "md",
1510
1509
  "children": [
1511
1510
  {
1512
1511
  "type": "stat-display",
1513
- "label": "Tokens Used",
1514
- "value": "@entity.current"
1512
+ "value": "@entity.current",
1513
+ "label": "Tokens Used"
1515
1514
  },
1516
1515
  {
1517
1516
  "type": "stat-display",
@@ -1519,18 +1518,19 @@
1519
1518
  "value": "@entity.max"
1520
1519
  }
1521
1520
  ],
1522
- "gap": "md",
1523
1521
  "type": "stack",
1524
1522
  "direction": "horizontal"
1525
1523
  },
1526
1524
  {
1527
- "icon": "rotate-ccw",
1525
+ "type": "button",
1528
1526
  "variant": "ghost",
1529
1527
  "action": "RESET",
1530
- "label": "Reset",
1531
- "type": "button"
1528
+ "icon": "rotate-ccw",
1529
+ "label": "Reset"
1532
1530
  }
1533
- ]
1531
+ ],
1532
+ "type": "stack",
1533
+ "gap": "lg"
1534
1534
  }
1535
1535
  ]
1536
1536
  ]
@@ -1555,14 +1555,13 @@
1555
1555
  "render-ui",
1556
1556
  "main",
1557
1557
  {
1558
- "gap": "lg",
1559
1558
  "direction": "vertical",
1559
+ "type": "stack",
1560
1560
  "children": [
1561
1561
  {
1562
- "gap": "sm",
1562
+ "type": "stack",
1563
1563
  "direction": "horizontal",
1564
1564
  "align": "center",
1565
- "type": "stack",
1566
1565
  "children": [
1567
1566
  {
1568
1567
  "type": "icon",
@@ -1570,15 +1569,16 @@
1570
1569
  },
1571
1570
  {
1572
1571
  "content": "Token Usage",
1573
- "variant": "h2",
1574
- "type": "typography"
1572
+ "type": "typography",
1573
+ "variant": "h2"
1575
1574
  },
1576
1575
  {
1577
- "variant": "default",
1576
+ "type": "badge",
1578
1577
  "label": "Normal",
1579
- "type": "badge"
1578
+ "variant": "default"
1580
1579
  }
1581
- ]
1580
+ ],
1581
+ "gap": "sm"
1582
1582
  },
1583
1583
  {
1584
1584
  "type": "divider"
@@ -1589,31 +1589,31 @@
1589
1589
  "value": "@entity.current"
1590
1590
  },
1591
1591
  {
1592
- "type": "stack",
1593
- "direction": "horizontal",
1594
- "gap": "md",
1595
1592
  "children": [
1596
1593
  {
1597
1594
  "label": "Tokens Used",
1598
- "type": "stat-display",
1599
- "value": "@entity.current"
1595
+ "value": "@entity.current",
1596
+ "type": "stat-display"
1600
1597
  },
1601
1598
  {
1602
1599
  "type": "stat-display",
1603
1600
  "label": "Max Tokens",
1604
1601
  "value": "@entity.max"
1605
1602
  }
1606
- ]
1603
+ ],
1604
+ "type": "stack",
1605
+ "direction": "horizontal",
1606
+ "gap": "md"
1607
1607
  },
1608
1608
  {
1609
- "action": "RESET",
1610
1609
  "label": "Reset",
1611
- "icon": "rotate-ccw",
1610
+ "action": "RESET",
1612
1611
  "type": "button",
1613
- "variant": "ghost"
1612
+ "variant": "ghost",
1613
+ "icon": "rotate-ccw"
1614
1614
  }
1615
1615
  ],
1616
- "type": "stack"
1616
+ "gap": "lg"
1617
1617
  }
1618
1618
  ]
1619
1619
  ]
@@ -1633,62 +1633,62 @@
1633
1633
  "main",
1634
1634
  {
1635
1635
  "direction": "vertical",
1636
- "type": "stack",
1637
1636
  "gap": "lg",
1637
+ "type": "stack",
1638
1638
  "children": [
1639
1639
  {
1640
- "align": "center",
1641
- "gap": "sm",
1642
1640
  "type": "stack",
1643
- "direction": "horizontal",
1644
1641
  "children": [
1645
1642
  {
1646
- "name": "gauge",
1647
- "type": "icon"
1643
+ "type": "icon",
1644
+ "name": "gauge"
1648
1645
  },
1649
1646
  {
1650
1647
  "content": "Token Usage",
1651
- "type": "typography",
1652
- "variant": "h2"
1648
+ "variant": "h2",
1649
+ "type": "typography"
1653
1650
  },
1654
1651
  {
1655
1652
  "label": "Normal",
1656
1653
  "variant": "default",
1657
1654
  "type": "badge"
1658
1655
  }
1659
- ]
1656
+ ],
1657
+ "gap": "sm",
1658
+ "direction": "horizontal",
1659
+ "align": "center"
1660
1660
  },
1661
1661
  {
1662
1662
  "type": "divider"
1663
1663
  },
1664
1664
  {
1665
- "value": "@entity.current",
1665
+ "max": "@entity.max",
1666
1666
  "type": "progress-bar",
1667
- "max": "@entity.max"
1667
+ "value": "@entity.current"
1668
1668
  },
1669
1669
  {
1670
- "direction": "horizontal",
1670
+ "gap": "md",
1671
+ "type": "stack",
1671
1672
  "children": [
1672
1673
  {
1673
- "value": "@entity.current",
1674
1674
  "label": "Tokens Used",
1675
- "type": "stat-display"
1675
+ "type": "stat-display",
1676
+ "value": "@entity.current"
1676
1677
  },
1677
1678
  {
1678
- "label": "Max Tokens",
1679
1679
  "value": "@entity.max",
1680
+ "label": "Max Tokens",
1680
1681
  "type": "stat-display"
1681
1682
  }
1682
1683
  ],
1683
- "type": "stack",
1684
- "gap": "md"
1684
+ "direction": "horizontal"
1685
1685
  },
1686
1686
  {
1687
- "label": "Reset",
1688
- "action": "RESET",
1689
- "variant": "ghost",
1687
+ "type": "button",
1690
1688
  "icon": "rotate-ccw",
1691
- "type": "button"
1689
+ "variant": "ghost",
1690
+ "action": "RESET",
1691
+ "label": "Reset"
1692
1692
  }
1693
1693
  ]
1694
1694
  }