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