@almadar/std 8.3.0 → 8.4.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 +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 +100 -100
  4. package/behaviors/registry/agent/atoms/std-agent-completion.orb +103 -103
  5. package/behaviors/registry/agent/atoms/std-agent-context-window.orb +386 -386
  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 +114 -114
  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 +100 -100
  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 +386 -386
  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 +114 -114
  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
@@ -228,6 +228,7 @@
228
228
  "render-ui",
229
229
  "main",
230
230
  {
231
+ "direction": "vertical",
231
232
  "children": [
232
233
  {
233
234
  "children": [
@@ -242,49 +243,48 @@
242
243
  },
243
244
  {
244
245
  "type": "badge",
245
- "label": "Normal",
246
- "variant": "default"
246
+ "variant": "default",
247
+ "label": "Normal"
247
248
  }
248
249
  ],
249
- "gap": "sm",
250
- "type": "stack",
251
250
  "align": "center",
252
- "direction": "horizontal"
251
+ "gap": "sm",
252
+ "direction": "horizontal",
253
+ "type": "stack"
253
254
  },
254
255
  {
255
256
  "type": "divider"
256
257
  },
257
258
  {
258
259
  "type": "progress-bar",
259
- "value": "@entity.current",
260
- "max": "@entity.max"
260
+ "max": "@entity.max",
261
+ "value": "@entity.current"
261
262
  },
262
263
  {
263
- "type": "stack",
264
264
  "children": [
265
265
  {
266
266
  "label": "Tokens Used",
267
- "type": "stat-display",
268
- "value": "@entity.current"
267
+ "value": "@entity.current",
268
+ "type": "stat-display"
269
269
  },
270
270
  {
271
+ "label": "Max Tokens",
271
272
  "value": "@entity.max",
272
- "type": "stat-display",
273
- "label": "Max Tokens"
273
+ "type": "stat-display"
274
274
  }
275
275
  ],
276
- "direction": "horizontal",
277
- "gap": "md"
276
+ "gap": "md",
277
+ "type": "stack",
278
+ "direction": "horizontal"
278
279
  },
279
280
  {
281
+ "icon": "rotate-ccw",
280
282
  "label": "Reset",
281
- "type": "button",
282
283
  "variant": "ghost",
283
- "action": "RESET",
284
- "icon": "rotate-ccw"
284
+ "type": "button",
285
+ "action": "RESET"
285
286
  }
286
287
  ],
287
- "direction": "vertical",
288
288
  "gap": "lg",
289
289
  "type": "stack"
290
290
  }
@@ -314,7 +314,7 @@
314
314
  "render-ui",
315
315
  "main",
316
316
  {
317
- "type": "stack",
317
+ "gap": "lg",
318
318
  "children": [
319
319
  {
320
320
  "children": [
@@ -323,56 +323,56 @@
323
323
  "type": "icon"
324
324
  },
325
325
  {
326
+ "content": "Token Usage",
326
327
  "variant": "h2",
327
- "type": "typography",
328
- "content": "Token Usage"
328
+ "type": "typography"
329
329
  },
330
330
  {
331
331
  "type": "badge",
332
- "label": "Normal",
333
- "variant": "default"
332
+ "variant": "default",
333
+ "label": "Normal"
334
334
  }
335
335
  ],
336
336
  "gap": "sm",
337
- "direction": "horizontal",
337
+ "type": "stack",
338
338
  "align": "center",
339
- "type": "stack"
339
+ "direction": "horizontal"
340
340
  },
341
341
  {
342
342
  "type": "divider"
343
343
  },
344
344
  {
345
- "value": "@entity.current",
345
+ "type": "progress-bar",
346
346
  "max": "@entity.max",
347
- "type": "progress-bar"
347
+ "value": "@entity.current"
348
348
  },
349
349
  {
350
- "type": "stack",
351
350
  "gap": "md",
352
- "direction": "horizontal",
351
+ "type": "stack",
353
352
  "children": [
354
353
  {
355
354
  "type": "stat-display",
356
- "label": "Tokens Used",
357
- "value": "@entity.current"
355
+ "value": "@entity.current",
356
+ "label": "Tokens Used"
358
357
  },
359
358
  {
360
359
  "type": "stat-display",
361
360
  "label": "Max Tokens",
362
361
  "value": "@entity.max"
363
362
  }
364
- ]
363
+ ],
364
+ "direction": "horizontal"
365
365
  },
366
366
  {
367
+ "icon": "rotate-ccw",
367
368
  "type": "button",
368
- "action": "RESET",
369
369
  "label": "Reset",
370
- "variant": "ghost",
371
- "icon": "rotate-ccw"
370
+ "action": "RESET",
371
+ "variant": "ghost"
372
372
  }
373
373
  ],
374
- "direction": "vertical",
375
- "gap": "lg"
374
+ "type": "stack",
375
+ "direction": "vertical"
376
376
  }
377
377
  ]
378
378
  ]
@@ -412,29 +412,28 @@
412
412
  "render-ui",
413
413
  "main",
414
414
  {
415
- "type": "stack",
416
415
  "children": [
417
416
  {
418
417
  "type": "stack",
419
- "gap": "sm",
420
- "direction": "horizontal",
421
- "align": "center",
422
418
  "children": [
423
419
  {
424
- "name": "alert-triangle",
425
- "type": "icon"
420
+ "type": "icon",
421
+ "name": "alert-triangle"
426
422
  },
427
423
  {
428
424
  "type": "typography",
429
- "content": "Token Usage",
430
- "variant": "h2"
425
+ "variant": "h2",
426
+ "content": "Token Usage"
431
427
  },
432
428
  {
429
+ "label": "Warning",
433
430
  "variant": "warning",
434
- "type": "badge",
435
- "label": "Warning"
431
+ "type": "badge"
436
432
  }
437
- ]
433
+ ],
434
+ "gap": "sm",
435
+ "direction": "horizontal",
436
+ "align": "center"
438
437
  },
439
438
  {
440
439
  "type": "divider"
@@ -446,50 +445,51 @@
446
445
  },
447
446
  {
448
447
  "value": "@entity.current",
449
- "type": "progress-bar",
450
- "max": "@entity.max"
448
+ "max": "@entity.max",
449
+ "type": "progress-bar"
451
450
  },
452
451
  {
452
+ "gap": "md",
453
453
  "direction": "horizontal",
454
- "type": "stack",
455
454
  "children": [
456
455
  {
457
- "value": "@entity.current",
456
+ "type": "stat-display",
458
457
  "label": "Tokens Used",
459
- "type": "stat-display"
458
+ "value": "@entity.current"
460
459
  },
461
460
  {
462
461
  "label": "Max Tokens",
463
- "value": "@entity.max",
464
- "type": "stat-display"
462
+ "type": "stat-display",
463
+ "value": "@entity.max"
465
464
  }
466
465
  ],
467
- "gap": "md"
466
+ "type": "stack"
468
467
  },
469
468
  {
470
469
  "type": "stack",
471
470
  "direction": "horizontal",
471
+ "gap": "sm",
472
472
  "children": [
473
473
  {
474
- "type": "button",
474
+ "action": "COMPACT",
475
475
  "variant": "primary",
476
- "label": "Compact",
477
476
  "icon": "minimize-2",
478
- "action": "COMPACT"
477
+ "label": "Compact",
478
+ "type": "button"
479
479
  },
480
480
  {
481
- "type": "button",
482
- "variant": "ghost",
483
- "icon": "rotate-ccw",
484
481
  "label": "Reset",
485
- "action": "RESET"
482
+ "icon": "rotate-ccw",
483
+ "type": "button",
484
+ "action": "RESET",
485
+ "variant": "ghost"
486
486
  }
487
- ],
488
- "gap": "sm"
487
+ ]
489
488
  }
490
489
  ],
491
- "direction": "vertical",
492
- "gap": "lg"
490
+ "type": "stack",
491
+ "gap": "lg",
492
+ "direction": "vertical"
493
493
  }
494
494
  ]
495
495
  ]
@@ -519,6 +519,9 @@
519
519
  {
520
520
  "children": [
521
521
  {
522
+ "type": "stack",
523
+ "direction": "horizontal",
524
+ "gap": "sm",
522
525
  "align": "center",
523
526
  "children": [
524
527
  {
@@ -527,18 +530,15 @@
527
530
  },
528
531
  {
529
532
  "type": "typography",
530
- "variant": "h2",
531
- "content": "Token Usage"
533
+ "content": "Token Usage",
534
+ "variant": "h2"
532
535
  },
533
536
  {
534
- "type": "badge",
535
537
  "label": "Critical",
536
- "variant": "danger"
538
+ "variant": "danger",
539
+ "type": "badge"
537
540
  }
538
- ],
539
- "type": "stack",
540
- "direction": "horizontal",
541
- "gap": "sm"
541
+ ]
542
542
  },
543
543
  {
544
544
  "type": "divider"
@@ -554,47 +554,47 @@
554
554
  "max": "@entity.max"
555
555
  },
556
556
  {
557
- "direction": "horizontal",
558
557
  "gap": "md",
559
- "type": "stack",
560
558
  "children": [
561
559
  {
560
+ "label": "Tokens Used",
562
561
  "value": "@entity.current",
563
- "type": "stat-display",
564
- "label": "Tokens Used"
562
+ "type": "stat-display"
565
563
  },
566
564
  {
567
- "value": "@entity.max",
565
+ "type": "stat-display",
568
566
  "label": "Max Tokens",
569
- "type": "stat-display"
567
+ "value": "@entity.max"
570
568
  }
571
- ]
569
+ ],
570
+ "type": "stack",
571
+ "direction": "horizontal"
572
572
  },
573
573
  {
574
+ "direction": "horizontal",
575
+ "gap": "sm",
576
+ "type": "stack",
574
577
  "children": [
575
578
  {
576
- "type": "button",
579
+ "variant": "primary",
577
580
  "label": "Compact Now",
578
581
  "icon": "minimize-2",
579
- "action": "COMPACT",
580
- "variant": "primary"
582
+ "type": "button",
583
+ "action": "COMPACT"
581
584
  },
582
585
  {
583
- "label": "Reset",
584
- "type": "button",
585
- "action": "RESET",
586
586
  "variant": "ghost",
587
- "icon": "rotate-ccw"
587
+ "action": "RESET",
588
+ "label": "Reset",
589
+ "icon": "rotate-ccw",
590
+ "type": "button"
588
591
  }
589
- ],
590
- "type": "stack",
591
- "gap": "sm",
592
- "direction": "horizontal"
592
+ ]
593
593
  }
594
594
  ],
595
- "type": "stack",
596
595
  "direction": "vertical",
597
- "gap": "lg"
596
+ "gap": "lg",
597
+ "type": "stack"
598
598
  }
599
599
  ]
600
600
  ]
@@ -619,65 +619,65 @@
619
619
  "render-ui",
620
620
  "main",
621
621
  {
622
- "type": "stack",
622
+ "direction": "vertical",
623
623
  "children": [
624
624
  {
625
+ "gap": "sm",
626
+ "align": "center",
627
+ "type": "stack",
628
+ "direction": "horizontal",
625
629
  "children": [
626
630
  {
627
631
  "type": "icon",
628
632
  "name": "gauge"
629
633
  },
630
634
  {
631
- "type": "typography",
632
635
  "variant": "h2",
633
- "content": "Token Usage"
636
+ "content": "Token Usage",
637
+ "type": "typography"
634
638
  },
635
639
  {
636
- "type": "badge",
637
640
  "label": "Normal",
638
- "variant": "default"
641
+ "variant": "default",
642
+ "type": "badge"
639
643
  }
640
- ],
641
- "direction": "horizontal",
642
- "gap": "sm",
643
- "align": "center",
644
- "type": "stack"
644
+ ]
645
645
  },
646
646
  {
647
647
  "type": "divider"
648
648
  },
649
649
  {
650
- "type": "progress-bar",
651
650
  "value": "@entity.current",
651
+ "type": "progress-bar",
652
652
  "max": "@entity.max"
653
653
  },
654
654
  {
655
655
  "gap": "md",
656
- "direction": "horizontal",
657
656
  "children": [
658
657
  {
659
- "label": "Tokens Used",
658
+ "value": "@entity.current",
660
659
  "type": "stat-display",
661
- "value": "@entity.current"
660
+ "label": "Tokens Used"
662
661
  },
663
662
  {
663
+ "type": "stat-display",
664
664
  "label": "Max Tokens",
665
- "value": "@entity.max",
666
- "type": "stat-display"
665
+ "value": "@entity.max"
667
666
  }
668
667
  ],
668
+ "direction": "horizontal",
669
669
  "type": "stack"
670
670
  },
671
671
  {
672
+ "icon": "rotate-ccw",
672
673
  "label": "Reset",
673
674
  "type": "button",
674
- "variant": "ghost",
675
- "icon": "rotate-ccw",
676
- "action": "RESET"
675
+ "action": "RESET",
676
+ "variant": "ghost"
677
677
  }
678
678
  ],
679
679
  "gap": "lg",
680
- "direction": "vertical"
680
+ "type": "stack"
681
681
  }
682
682
  ]
683
683
  ]
@@ -696,15 +696,12 @@
696
696
  "render-ui",
697
697
  "main",
698
698
  {
699
- "type": "stack",
700
- "direction": "vertical",
701
699
  "children": [
702
700
  {
703
- "type": "stack",
704
701
  "children": [
705
702
  {
706
- "type": "icon",
707
- "name": "gauge"
703
+ "name": "gauge",
704
+ "type": "icon"
708
705
  },
709
706
  {
710
707
  "variant": "h2",
@@ -712,27 +709,28 @@
712
709
  "type": "typography"
713
710
  },
714
711
  {
715
- "label": "Normal",
716
712
  "type": "badge",
717
- "variant": "default"
713
+ "variant": "default",
714
+ "label": "Normal"
718
715
  }
719
716
  ],
717
+ "direction": "horizontal",
720
718
  "align": "center",
721
- "gap": "sm",
722
- "direction": "horizontal"
719
+ "type": "stack",
720
+ "gap": "sm"
723
721
  },
724
722
  {
725
723
  "type": "divider"
726
724
  },
727
725
  {
728
- "type": "progress-bar",
726
+ "value": "@entity.current",
729
727
  "max": "@entity.max",
730
- "value": "@entity.current"
728
+ "type": "progress-bar"
731
729
  },
732
730
  {
733
731
  "type": "stack",
734
- "gap": "md",
735
732
  "direction": "horizontal",
733
+ "gap": "md",
736
734
  "children": [
737
735
  {
738
736
  "type": "stat-display",
@@ -740,21 +738,23 @@
740
738
  "value": "@entity.current"
741
739
  },
742
740
  {
743
- "type": "stat-display",
744
741
  "value": "@entity.max",
745
- "label": "Max Tokens"
742
+ "label": "Max Tokens",
743
+ "type": "stat-display"
746
744
  }
747
745
  ]
748
746
  },
749
747
  {
750
- "variant": "ghost",
748
+ "type": "button",
751
749
  "label": "Reset",
750
+ "variant": "ghost",
752
751
  "action": "RESET",
753
- "icon": "rotate-ccw",
754
- "type": "button"
752
+ "icon": "rotate-ccw"
755
753
  }
756
754
  ],
757
- "gap": "lg"
755
+ "gap": "lg",
756
+ "direction": "vertical",
757
+ "type": "stack"
758
758
  }
759
759
  ]
760
760
  ]
@@ -794,28 +794,30 @@
794
794
  "render-ui",
795
795
  "main",
796
796
  {
797
+ "type": "stack",
798
+ "direction": "vertical",
797
799
  "children": [
798
800
  {
799
- "align": "center",
801
+ "type": "stack",
802
+ "direction": "horizontal",
803
+ "gap": "sm",
800
804
  "children": [
801
805
  {
802
- "type": "icon",
803
- "name": "alert-triangle"
806
+ "name": "alert-triangle",
807
+ "type": "icon"
804
808
  },
805
809
  {
806
810
  "type": "typography",
807
- "content": "Token Usage",
808
- "variant": "h2"
811
+ "variant": "h2",
812
+ "content": "Token Usage"
809
813
  },
810
814
  {
815
+ "variant": "warning",
811
816
  "label": "Warning",
812
- "type": "badge",
813
- "variant": "warning"
817
+ "type": "badge"
814
818
  }
815
819
  ],
816
- "type": "stack",
817
- "direction": "horizontal",
818
- "gap": "sm"
820
+ "align": "center"
819
821
  },
820
822
  {
821
823
  "type": "divider"
@@ -831,47 +833,45 @@
831
833
  "value": "@entity.current"
832
834
  },
833
835
  {
836
+ "gap": "md",
837
+ "direction": "horizontal",
838
+ "type": "stack",
834
839
  "children": [
835
840
  {
836
- "label": "Tokens Used",
841
+ "value": "@entity.current",
837
842
  "type": "stat-display",
838
- "value": "@entity.current"
843
+ "label": "Tokens Used"
839
844
  },
840
845
  {
841
846
  "value": "@entity.max",
842
- "label": "Max Tokens",
843
- "type": "stat-display"
847
+ "type": "stat-display",
848
+ "label": "Max Tokens"
844
849
  }
845
- ],
846
- "gap": "md",
847
- "direction": "horizontal",
848
- "type": "stack"
850
+ ]
849
851
  },
850
852
  {
851
- "direction": "horizontal",
852
- "gap": "sm",
853
- "type": "stack",
854
853
  "children": [
855
854
  {
856
- "variant": "primary",
857
- "action": "COMPACT",
858
855
  "icon": "minimize-2",
859
856
  "type": "button",
860
- "label": "Compact"
857
+ "action": "COMPACT",
858
+ "label": "Compact",
859
+ "variant": "primary"
861
860
  },
862
861
  {
863
- "label": "Reset",
864
- "type": "button",
862
+ "icon": "rotate-ccw",
865
863
  "action": "RESET",
864
+ "label": "Reset",
866
865
  "variant": "ghost",
867
- "icon": "rotate-ccw"
866
+ "type": "button"
868
867
  }
869
- ]
868
+ ],
869
+ "gap": "sm",
870
+ "type": "stack",
871
+ "direction": "horizontal"
870
872
  }
871
873
  ],
872
- "gap": "lg",
873
- "type": "stack",
874
- "direction": "vertical"
874
+ "gap": "lg"
875
875
  }
876
876
  ]
877
877
  ]
@@ -899,28 +899,30 @@
899
899
  "render-ui",
900
900
  "main",
901
901
  {
902
+ "direction": "vertical",
903
+ "type": "stack",
902
904
  "children": [
903
905
  {
904
- "direction": "horizontal",
905
- "type": "stack",
906
906
  "align": "center",
907
+ "type": "stack",
908
+ "gap": "sm",
907
909
  "children": [
908
910
  {
909
911
  "type": "icon",
910
912
  "name": "alert-octagon"
911
913
  },
912
914
  {
913
- "type": "typography",
914
915
  "variant": "h2",
916
+ "type": "typography",
915
917
  "content": "Token Usage"
916
918
  },
917
919
  {
918
- "type": "badge",
919
920
  "variant": "danger",
921
+ "type": "badge",
920
922
  "label": "Critical"
921
923
  }
922
924
  ],
923
- "gap": "sm"
925
+ "direction": "horizontal"
924
926
  },
925
927
  {
926
928
  "type": "divider"
@@ -931,42 +933,42 @@
931
933
  "type": "alert"
932
934
  },
933
935
  {
934
- "value": "@entity.current",
936
+ "max": "@entity.max",
935
937
  "type": "progress-bar",
936
- "max": "@entity.max"
938
+ "value": "@entity.current"
937
939
  },
938
940
  {
939
- "direction": "horizontal",
940
- "type": "stack",
941
941
  "children": [
942
942
  {
943
- "label": "Tokens Used",
944
943
  "type": "stat-display",
944
+ "label": "Tokens Used",
945
945
  "value": "@entity.current"
946
946
  },
947
947
  {
948
- "label": "Max Tokens",
948
+ "type": "stat-display",
949
949
  "value": "@entity.max",
950
- "type": "stat-display"
950
+ "label": "Max Tokens"
951
951
  }
952
952
  ],
953
- "gap": "md"
953
+ "gap": "md",
954
+ "type": "stack",
955
+ "direction": "horizontal"
954
956
  },
955
957
  {
956
958
  "children": [
957
959
  {
958
- "icon": "minimize-2",
959
960
  "type": "button",
960
- "label": "Compact Now",
961
961
  "action": "COMPACT",
962
+ "icon": "minimize-2",
963
+ "label": "Compact Now",
962
964
  "variant": "primary"
963
965
  },
964
966
  {
965
967
  "variant": "ghost",
966
- "icon": "rotate-ccw",
968
+ "type": "button",
967
969
  "label": "Reset",
968
970
  "action": "RESET",
969
- "type": "button"
971
+ "icon": "rotate-ccw"
970
972
  }
971
973
  ],
972
974
  "type": "stack",
@@ -974,9 +976,7 @@
974
976
  "gap": "sm"
975
977
  }
976
978
  ],
977
- "gap": "lg",
978
- "direction": "vertical",
979
- "type": "stack"
979
+ "gap": "lg"
980
980
  }
981
981
  ]
982
982
  ]
@@ -1004,11 +1004,12 @@
1004
1004
  "render-ui",
1005
1005
  "main",
1006
1006
  {
1007
- "type": "stack",
1007
+ "gap": "lg",
1008
1008
  "direction": "vertical",
1009
+ "type": "stack",
1009
1010
  "children": [
1010
1011
  {
1011
- "type": "stack",
1012
+ "gap": "sm",
1012
1013
  "direction": "horizontal",
1013
1014
  "children": [
1014
1015
  {
@@ -1016,18 +1017,18 @@
1016
1017
  "name": "gauge"
1017
1018
  },
1018
1019
  {
1019
- "type": "typography",
1020
1020
  "content": "Token Usage",
1021
- "variant": "h2"
1021
+ "variant": "h2",
1022
+ "type": "typography"
1022
1023
  },
1023
1024
  {
1024
1025
  "variant": "default",
1025
- "type": "badge",
1026
- "label": "Normal"
1026
+ "label": "Normal",
1027
+ "type": "badge"
1027
1028
  }
1028
1029
  ],
1029
- "align": "center",
1030
- "gap": "sm"
1030
+ "type": "stack",
1031
+ "align": "center"
1031
1032
  },
1032
1033
  {
1033
1034
  "type": "divider"
@@ -1038,9 +1039,7 @@
1038
1039
  "max": "@entity.max"
1039
1040
  },
1040
1041
  {
1041
- "direction": "horizontal",
1042
1042
  "type": "stack",
1043
- "gap": "md",
1044
1043
  "children": [
1045
1044
  {
1046
1045
  "value": "@entity.current",
@@ -1048,21 +1047,22 @@
1048
1047
  "label": "Tokens Used"
1049
1048
  },
1050
1049
  {
1051
- "type": "stat-display",
1052
1050
  "label": "Max Tokens",
1053
- "value": "@entity.max"
1051
+ "value": "@entity.max",
1052
+ "type": "stat-display"
1054
1053
  }
1055
- ]
1054
+ ],
1055
+ "gap": "md",
1056
+ "direction": "horizontal"
1056
1057
  },
1057
1058
  {
1058
- "variant": "ghost",
1059
1059
  "icon": "rotate-ccw",
1060
- "label": "Reset",
1060
+ "action": "RESET",
1061
1061
  "type": "button",
1062
- "action": "RESET"
1062
+ "label": "Reset",
1063
+ "variant": "ghost"
1063
1064
  }
1064
- ],
1065
- "gap": "lg"
1065
+ ]
1066
1066
  }
1067
1067
  ]
1068
1068
  ]
@@ -1087,39 +1087,43 @@
1087
1087
  "render-ui",
1088
1088
  "main",
1089
1089
  {
1090
+ "type": "stack",
1091
+ "gap": "lg",
1090
1092
  "children": [
1091
1093
  {
1092
1094
  "type": "stack",
1095
+ "align": "center",
1093
1096
  "children": [
1094
1097
  {
1095
1098
  "type": "icon",
1096
1099
  "name": "gauge"
1097
1100
  },
1098
1101
  {
1099
- "variant": "h2",
1100
1102
  "content": "Token Usage",
1101
- "type": "typography"
1103
+ "type": "typography",
1104
+ "variant": "h2"
1102
1105
  },
1103
1106
  {
1107
+ "variant": "default",
1104
1108
  "type": "badge",
1105
- "label": "Normal",
1106
- "variant": "default"
1109
+ "label": "Normal"
1107
1110
  }
1108
1111
  ],
1109
- "align": "center",
1110
- "direction": "horizontal",
1111
- "gap": "sm"
1112
+ "gap": "sm",
1113
+ "direction": "horizontal"
1112
1114
  },
1113
1115
  {
1114
1116
  "type": "divider"
1115
1117
  },
1116
1118
  {
1117
- "value": "@entity.current",
1118
1119
  "type": "progress-bar",
1120
+ "value": "@entity.current",
1119
1121
  "max": "@entity.max"
1120
1122
  },
1121
1123
  {
1124
+ "direction": "horizontal",
1122
1125
  "gap": "md",
1126
+ "type": "stack",
1123
1127
  "children": [
1124
1128
  {
1125
1129
  "type": "stat-display",
@@ -1127,25 +1131,21 @@
1127
1131
  "value": "@entity.current"
1128
1132
  },
1129
1133
  {
1134
+ "value": "@entity.max",
1130
1135
  "type": "stat-display",
1131
- "label": "Max Tokens",
1132
- "value": "@entity.max"
1136
+ "label": "Max Tokens"
1133
1137
  }
1134
- ],
1135
- "direction": "horizontal",
1136
- "type": "stack"
1138
+ ]
1137
1139
  },
1138
1140
  {
1139
- "label": "Reset",
1140
- "action": "RESET",
1141
1141
  "variant": "ghost",
1142
1142
  "type": "button",
1143
+ "label": "Reset",
1144
+ "action": "RESET",
1143
1145
  "icon": "rotate-ccw"
1144
1146
  }
1145
1147
  ],
1146
- "direction": "vertical",
1147
- "type": "stack",
1148
- "gap": "lg"
1148
+ "direction": "vertical"
1149
1149
  }
1150
1150
  ]
1151
1151
  ]
@@ -1164,31 +1164,29 @@
1164
1164
  "render-ui",
1165
1165
  "main",
1166
1166
  {
1167
- "type": "stack",
1168
1167
  "direction": "vertical",
1169
- "gap": "lg",
1170
1168
  "children": [
1171
1169
  {
1170
+ "type": "stack",
1172
1171
  "direction": "horizontal",
1172
+ "align": "center",
1173
+ "gap": "sm",
1173
1174
  "children": [
1174
1175
  {
1175
1176
  "type": "icon",
1176
1177
  "name": "gauge"
1177
1178
  },
1178
1179
  {
1179
- "variant": "h2",
1180
1180
  "type": "typography",
1181
+ "variant": "h2",
1181
1182
  "content": "Token Usage"
1182
1183
  },
1183
1184
  {
1185
+ "type": "badge",
1184
1186
  "label": "Normal",
1185
- "variant": "default",
1186
- "type": "badge"
1187
+ "variant": "default"
1187
1188
  }
1188
- ],
1189
- "type": "stack",
1190
- "gap": "sm",
1191
- "align": "center"
1189
+ ]
1192
1190
  },
1193
1191
  {
1194
1192
  "type": "divider"
@@ -1199,30 +1197,32 @@
1199
1197
  "max": "@entity.max"
1200
1198
  },
1201
1199
  {
1202
- "type": "stack",
1203
- "direction": "horizontal",
1204
- "gap": "md",
1205
1200
  "children": [
1206
1201
  {
1207
- "value": "@entity.current",
1202
+ "label": "Tokens Used",
1208
1203
  "type": "stat-display",
1209
- "label": "Tokens Used"
1204
+ "value": "@entity.current"
1210
1205
  },
1211
1206
  {
1207
+ "type": "stat-display",
1212
1208
  "label": "Max Tokens",
1213
- "value": "@entity.max",
1214
- "type": "stat-display"
1209
+ "value": "@entity.max"
1215
1210
  }
1216
- ]
1211
+ ],
1212
+ "type": "stack",
1213
+ "gap": "md",
1214
+ "direction": "horizontal"
1217
1215
  },
1218
1216
  {
1219
1217
  "label": "Reset",
1220
- "icon": "rotate-ccw",
1221
- "type": "button",
1222
1218
  "action": "RESET",
1223
- "variant": "ghost"
1219
+ "variant": "ghost",
1220
+ "type": "button",
1221
+ "icon": "rotate-ccw"
1224
1222
  }
1225
- ]
1223
+ ],
1224
+ "type": "stack",
1225
+ "gap": "lg"
1226
1226
  }
1227
1227
  ]
1228
1228
  ]
@@ -1250,12 +1250,10 @@
1250
1250
  "render-ui",
1251
1251
  "main",
1252
1252
  {
1253
- "type": "stack",
1254
- "direction": "vertical",
1255
1253
  "children": [
1256
1254
  {
1257
1255
  "type": "stack",
1258
- "align": "center",
1256
+ "gap": "sm",
1259
1257
  "children": [
1260
1258
  {
1261
1259
  "name": "alert-octagon",
@@ -1263,17 +1261,17 @@
1263
1261
  },
1264
1262
  {
1265
1263
  "type": "typography",
1266
- "variant": "h2",
1267
- "content": "Token Usage"
1264
+ "content": "Token Usage",
1265
+ "variant": "h2"
1268
1266
  },
1269
1267
  {
1270
- "variant": "danger",
1271
1268
  "type": "badge",
1272
- "label": "Critical"
1269
+ "label": "Critical",
1270
+ "variant": "danger"
1273
1271
  }
1274
1272
  ],
1275
1273
  "direction": "horizontal",
1276
- "gap": "sm"
1274
+ "align": "center"
1277
1275
  },
1278
1276
  {
1279
1277
  "type": "divider"
@@ -1285,12 +1283,10 @@
1285
1283
  },
1286
1284
  {
1287
1285
  "max": "@entity.max",
1288
- "value": "@entity.current",
1289
- "type": "progress-bar"
1286
+ "type": "progress-bar",
1287
+ "value": "@entity.current"
1290
1288
  },
1291
1289
  {
1292
- "type": "stack",
1293
- "gap": "md",
1294
1290
  "children": [
1295
1291
  {
1296
1292
  "label": "Tokens Used",
@@ -1298,35 +1294,39 @@
1298
1294
  "type": "stat-display"
1299
1295
  },
1300
1296
  {
1297
+ "value": "@entity.max",
1301
1298
  "type": "stat-display",
1302
- "label": "Max Tokens",
1303
- "value": "@entity.max"
1299
+ "label": "Max Tokens"
1304
1300
  }
1305
1301
  ],
1306
- "direction": "horizontal"
1302
+ "type": "stack",
1303
+ "direction": "horizontal",
1304
+ "gap": "md"
1307
1305
  },
1308
1306
  {
1307
+ "direction": "horizontal",
1309
1308
  "children": [
1310
1309
  {
1311
- "action": "COMPACT",
1312
- "icon": "minimize-2",
1313
1310
  "type": "button",
1311
+ "variant": "primary",
1312
+ "action": "COMPACT",
1314
1313
  "label": "Compact Now",
1315
- "variant": "primary"
1314
+ "icon": "minimize-2"
1316
1315
  },
1317
1316
  {
1318
- "variant": "ghost",
1319
- "type": "button",
1320
1317
  "label": "Reset",
1321
- "action": "RESET",
1322
- "icon": "rotate-ccw"
1318
+ "type": "button",
1319
+ "variant": "ghost",
1320
+ "icon": "rotate-ccw",
1321
+ "action": "RESET"
1323
1322
  }
1324
1323
  ],
1325
- "gap": "sm",
1326
1324
  "type": "stack",
1327
- "direction": "horizontal"
1325
+ "gap": "sm"
1328
1326
  }
1329
1327
  ],
1328
+ "type": "stack",
1329
+ "direction": "vertical",
1330
1330
  "gap": "lg"
1331
1331
  }
1332
1332
  ]
@@ -1367,47 +1367,45 @@
1367
1367
  "render-ui",
1368
1368
  "main",
1369
1369
  {
1370
- "gap": "lg",
1370
+ "type": "stack",
1371
1371
  "children": [
1372
1372
  {
1373
+ "type": "stack",
1373
1374
  "align": "center",
1374
1375
  "gap": "sm",
1375
- "direction": "horizontal",
1376
- "type": "stack",
1377
1376
  "children": [
1378
1377
  {
1379
1378
  "type": "icon",
1380
1379
  "name": "alert-triangle"
1381
1380
  },
1382
1381
  {
1383
- "content": "Token Usage",
1384
1382
  "variant": "h2",
1385
- "type": "typography"
1383
+ "type": "typography",
1384
+ "content": "Token Usage"
1386
1385
  },
1387
1386
  {
1388
1387
  "variant": "warning",
1389
- "label": "Warning",
1390
- "type": "badge"
1388
+ "type": "badge",
1389
+ "label": "Warning"
1391
1390
  }
1392
- ]
1391
+ ],
1392
+ "direction": "horizontal"
1393
1393
  },
1394
1394
  {
1395
1395
  "type": "divider"
1396
1396
  },
1397
1397
  {
1398
1398
  "variant": "warning",
1399
- "message": "Token usage approaching limit. Consider compacting.",
1400
- "type": "alert"
1399
+ "type": "alert",
1400
+ "message": "Token usage approaching limit. Consider compacting."
1401
1401
  },
1402
1402
  {
1403
1403
  "type": "progress-bar",
1404
- "value": "@entity.current",
1405
- "max": "@entity.max"
1404
+ "max": "@entity.max",
1405
+ "value": "@entity.current"
1406
1406
  },
1407
1407
  {
1408
1408
  "direction": "horizontal",
1409
- "gap": "md",
1410
- "type": "stack",
1411
1409
  "children": [
1412
1410
  {
1413
1411
  "label": "Tokens Used",
@@ -1415,35 +1413,37 @@
1415
1413
  "type": "stat-display"
1416
1414
  },
1417
1415
  {
1416
+ "label": "Max Tokens",
1418
1417
  "value": "@entity.max",
1419
- "type": "stat-display",
1420
- "label": "Max Tokens"
1418
+ "type": "stat-display"
1421
1419
  }
1422
- ]
1420
+ ],
1421
+ "gap": "md",
1422
+ "type": "stack"
1423
1423
  },
1424
1424
  {
1425
- "gap": "sm",
1426
- "direction": "horizontal",
1427
1425
  "type": "stack",
1426
+ "direction": "horizontal",
1428
1427
  "children": [
1429
1428
  {
1430
- "label": "Compact",
1431
1429
  "type": "button",
1432
- "icon": "minimize-2",
1433
1430
  "variant": "primary",
1434
- "action": "COMPACT"
1431
+ "action": "COMPACT",
1432
+ "label": "Compact",
1433
+ "icon": "minimize-2"
1435
1434
  },
1436
1435
  {
1437
1436
  "icon": "rotate-ccw",
1438
- "action": "RESET",
1439
1437
  "type": "button",
1440
- "label": "Reset",
1441
- "variant": "ghost"
1438
+ "variant": "ghost",
1439
+ "action": "RESET",
1440
+ "label": "Reset"
1442
1441
  }
1443
- ]
1442
+ ],
1443
+ "gap": "sm"
1444
1444
  }
1445
1445
  ],
1446
- "type": "stack",
1446
+ "gap": "lg",
1447
1447
  "direction": "vertical"
1448
1448
  }
1449
1449
  ]
@@ -1472,6 +1472,9 @@
1472
1472
  "render-ui",
1473
1473
  "main",
1474
1474
  {
1475
+ "direction": "vertical",
1476
+ "gap": "lg",
1477
+ "type": "stack",
1475
1478
  "children": [
1476
1479
  {
1477
1480
  "type": "stack",
@@ -1484,14 +1487,14 @@
1484
1487
  "name": "gauge"
1485
1488
  },
1486
1489
  {
1487
- "content": "Token Usage",
1490
+ "variant": "h2",
1488
1491
  "type": "typography",
1489
- "variant": "h2"
1492
+ "content": "Token Usage"
1490
1493
  },
1491
1494
  {
1492
- "label": "Normal",
1495
+ "type": "badge",
1493
1496
  "variant": "default",
1494
- "type": "badge"
1497
+ "label": "Normal"
1495
1498
  }
1496
1499
  ]
1497
1500
  },
@@ -1504,9 +1507,8 @@
1504
1507
  "value": "@entity.current"
1505
1508
  },
1506
1509
  {
1507
- "direction": "horizontal",
1508
- "type": "stack",
1509
1510
  "gap": "md",
1511
+ "direction": "horizontal",
1510
1512
  "children": [
1511
1513
  {
1512
1514
  "value": "@entity.current",
@@ -1515,22 +1517,20 @@
1515
1517
  },
1516
1518
  {
1517
1519
  "value": "@entity.max",
1518
- "type": "stat-display",
1519
- "label": "Max Tokens"
1520
+ "label": "Max Tokens",
1521
+ "type": "stat-display"
1520
1522
  }
1521
- ]
1523
+ ],
1524
+ "type": "stack"
1522
1525
  },
1523
1526
  {
1524
- "type": "button",
1525
- "label": "Reset",
1526
1527
  "icon": "rotate-ccw",
1528
+ "action": "RESET",
1529
+ "type": "button",
1527
1530
  "variant": "ghost",
1528
- "action": "RESET"
1531
+ "label": "Reset"
1529
1532
  }
1530
- ],
1531
- "direction": "vertical",
1532
- "type": "stack",
1533
- "gap": "lg"
1533
+ ]
1534
1534
  }
1535
1535
  ]
1536
1536
  ]
@@ -1555,20 +1555,17 @@
1555
1555
  "render-ui",
1556
1556
  "main",
1557
1557
  {
1558
- "gap": "lg",
1559
1558
  "children": [
1560
1559
  {
1561
- "direction": "horizontal",
1562
- "align": "center",
1563
1560
  "children": [
1564
1561
  {
1565
1562
  "type": "icon",
1566
1563
  "name": "gauge"
1567
1564
  },
1568
1565
  {
1569
- "type": "typography",
1566
+ "content": "Token Usage",
1570
1567
  "variant": "h2",
1571
- "content": "Token Usage"
1568
+ "type": "typography"
1572
1569
  },
1573
1570
  {
1574
1571
  "label": "Normal",
@@ -1576,44 +1573,47 @@
1576
1573
  "type": "badge"
1577
1574
  }
1578
1575
  ],
1579
- "type": "stack",
1580
- "gap": "sm"
1576
+ "direction": "horizontal",
1577
+ "gap": "sm",
1578
+ "align": "center",
1579
+ "type": "stack"
1581
1580
  },
1582
1581
  {
1583
1582
  "type": "divider"
1584
1583
  },
1585
1584
  {
1586
- "max": "@entity.max",
1587
1585
  "type": "progress-bar",
1588
- "value": "@entity.current"
1586
+ "value": "@entity.current",
1587
+ "max": "@entity.max"
1589
1588
  },
1590
1589
  {
1591
- "direction": "horizontal",
1590
+ "gap": "md",
1591
+ "type": "stack",
1592
1592
  "children": [
1593
1593
  {
1594
+ "label": "Tokens Used",
1594
1595
  "value": "@entity.current",
1595
- "type": "stat-display",
1596
- "label": "Tokens Used"
1596
+ "type": "stat-display"
1597
1597
  },
1598
1598
  {
1599
- "type": "stat-display",
1599
+ "value": "@entity.max",
1600
1600
  "label": "Max Tokens",
1601
- "value": "@entity.max"
1601
+ "type": "stat-display"
1602
1602
  }
1603
1603
  ],
1604
- "type": "stack",
1605
- "gap": "md"
1604
+ "direction": "horizontal"
1606
1605
  },
1607
1606
  {
1607
+ "label": "Reset",
1608
+ "icon": "rotate-ccw",
1608
1609
  "type": "button",
1609
1610
  "variant": "ghost",
1610
- "action": "RESET",
1611
- "label": "Reset",
1612
- "icon": "rotate-ccw"
1611
+ "action": "RESET"
1613
1612
  }
1614
1613
  ],
1615
1614
  "type": "stack",
1616
- "direction": "vertical"
1615
+ "direction": "vertical",
1616
+ "gap": "lg"
1617
1617
  }
1618
1618
  ]
1619
1619
  ]
@@ -1636,58 +1636,58 @@
1636
1636
  "direction": "vertical",
1637
1637
  "children": [
1638
1638
  {
1639
- "gap": "sm",
1640
- "type": "stack",
1641
- "align": "center",
1642
1639
  "children": [
1643
1640
  {
1644
1641
  "name": "gauge",
1645
1642
  "type": "icon"
1646
1643
  },
1647
1644
  {
1648
- "type": "typography",
1649
1645
  "content": "Token Usage",
1650
- "variant": "h2"
1646
+ "variant": "h2",
1647
+ "type": "typography"
1651
1648
  },
1652
1649
  {
1653
- "variant": "default",
1654
1650
  "type": "badge",
1655
- "label": "Normal"
1651
+ "label": "Normal",
1652
+ "variant": "default"
1656
1653
  }
1657
1654
  ],
1658
- "direction": "horizontal"
1655
+ "gap": "sm",
1656
+ "direction": "horizontal",
1657
+ "type": "stack",
1658
+ "align": "center"
1659
1659
  },
1660
1660
  {
1661
1661
  "type": "divider"
1662
1662
  },
1663
1663
  {
1664
- "type": "progress-bar",
1665
1664
  "value": "@entity.current",
1666
- "max": "@entity.max"
1665
+ "max": "@entity.max",
1666
+ "type": "progress-bar"
1667
1667
  },
1668
1668
  {
1669
- "direction": "horizontal",
1669
+ "type": "stack",
1670
1670
  "children": [
1671
1671
  {
1672
1672
  "type": "stat-display",
1673
- "label": "Tokens Used",
1674
- "value": "@entity.current"
1673
+ "value": "@entity.current",
1674
+ "label": "Tokens Used"
1675
1675
  },
1676
1676
  {
1677
1677
  "type": "stat-display",
1678
- "value": "@entity.max",
1679
- "label": "Max Tokens"
1678
+ "label": "Max Tokens",
1679
+ "value": "@entity.max"
1680
1680
  }
1681
1681
  ],
1682
- "type": "stack",
1682
+ "direction": "horizontal",
1683
1683
  "gap": "md"
1684
1684
  },
1685
1685
  {
1686
- "icon": "rotate-ccw",
1687
- "action": "RESET",
1688
1686
  "type": "button",
1689
1687
  "label": "Reset",
1690
- "variant": "ghost"
1688
+ "action": "RESET",
1689
+ "variant": "ghost",
1690
+ "icon": "rotate-ccw"
1691
1691
  }
1692
1692
  ],
1693
1693
  "gap": "lg"