@almadar/std 10.0.0 → 11.0.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (187) hide show
  1. package/behaviors/registry/agent/atoms/std-agent-activity-log.orb +80 -80
  2. package/behaviors/registry/agent/atoms/std-agent-chat-thread.orb +103 -103
  3. package/behaviors/registry/agent/atoms/std-agent-classifier.orb +131 -113
  4. package/behaviors/registry/agent/atoms/std-agent-completion.orb +116 -98
  5. package/behaviors/registry/agent/atoms/std-agent-context-window.orb +384 -384
  6. package/behaviors/registry/agent/atoms/std-agent-conversation.orb +106 -106
  7. package/behaviors/registry/agent/atoms/std-agent-memory.orb +75 -75
  8. package/behaviors/registry/agent/atoms/std-agent-provider.orb +163 -139
  9. package/behaviors/registry/agent/atoms/std-agent-search.orb +64 -64
  10. package/behaviors/registry/agent/atoms/std-agent-session.orb +130 -130
  11. package/behaviors/registry/agent/atoms/std-agent-step-progress.orb +185 -185
  12. package/behaviors/registry/agent/atoms/std-agent-token-gauge.orb +344 -344
  13. package/behaviors/registry/agent/atoms/std-agent-tool-call.orb +81 -63
  14. package/behaviors/registry/agent/molecules/std-agent-fix-loop.orb +189 -189
  15. package/behaviors/registry/agent/molecules/std-agent-learner.orb +163 -163
  16. package/behaviors/registry/agent/molecules/std-agent-planner.orb +120 -120
  17. package/behaviors/registry/agent/molecules/std-agent-rag.orb +108 -108
  18. package/behaviors/registry/agent/molecules/std-agent-tool-loop.orb +188 -188
  19. package/behaviors/registry/agent/organisms/std-agent-assistant.orb +1097 -1072
  20. package/behaviors/registry/agent/organisms/std-agent-builder.orb +3183 -3043
  21. package/behaviors/registry/agent/organisms/std-agent-pipeline.orb +2309 -2217
  22. package/behaviors/registry/agent/organisms/std-agent-reviewer.orb +1083 -1029
  23. package/behaviors/registry/agent/organisms/std-agent-tutor.orb +793 -768
  24. package/behaviors/registry/app/organisms/std-api-gateway.orb +929 -887
  25. package/behaviors/registry/app/organisms/std-booking-system.orb +1247 -1163
  26. package/behaviors/registry/app/organisms/std-cicd-pipeline.orb +822 -780
  27. package/behaviors/registry/app/organisms/std-cms.orb +608 -512
  28. package/behaviors/registry/app/organisms/std-coding-academy.orb +393 -393
  29. package/behaviors/registry/app/organisms/std-crm.orb +887 -791
  30. package/behaviors/registry/app/organisms/std-devops-dashboard.orb +1408 -1366
  31. package/behaviors/registry/app/organisms/std-ecommerce.orb +1147 -1021
  32. package/behaviors/registry/app/organisms/std-finance-tracker.orb +670 -616
  33. package/behaviors/registry/app/organisms/std-healthcare.orb +1447 -1351
  34. package/behaviors/registry/app/organisms/std-helpdesk.orb +720 -666
  35. package/behaviors/registry/app/organisms/std-hr-portal.orb +1286 -1202
  36. package/behaviors/registry/app/organisms/std-iot-dashboard.orb +925 -883
  37. package/behaviors/registry/app/organisms/std-lms.orb +935 -893
  38. package/behaviors/registry/app/organisms/std-project-manager.orb +834 -750
  39. package/behaviors/registry/app/organisms/std-realtime-chat.orb +735 -681
  40. package/behaviors/registry/app/organisms/std-social-feed.orb +235 -211
  41. package/behaviors/registry/app/organisms/std-trading-dashboard.orb +730 -688
  42. package/behaviors/registry/core/atoms/std-browse.orb +56 -56
  43. package/behaviors/registry/core/atoms/std-cache-aside.orb +95 -95
  44. package/behaviors/registry/core/atoms/std-calendar.orb +54 -54
  45. package/behaviors/registry/core/atoms/std-circuit-breaker.orb +180 -180
  46. package/behaviors/registry/core/atoms/std-confirmation.orb +25 -25
  47. package/behaviors/registry/core/atoms/std-display.orb +388 -388
  48. package/behaviors/registry/core/atoms/std-drawer.orb +54 -54
  49. package/behaviors/registry/core/atoms/std-filter.orb +47 -47
  50. package/behaviors/registry/core/atoms/std-gallery.orb +51 -51
  51. package/behaviors/registry/core/atoms/std-modal.orb +12 -12
  52. package/behaviors/registry/core/atoms/std-pagination.orb +42 -42
  53. package/behaviors/registry/core/atoms/std-push.orb +43 -43
  54. package/behaviors/registry/core/atoms/std-rate-limiter.orb +194 -194
  55. package/behaviors/registry/core/atoms/std-related.orb +37 -37
  56. package/behaviors/registry/core/atoms/std-search.orb +68 -68
  57. package/behaviors/registry/core/atoms/std-selection.orb +90 -90
  58. package/behaviors/registry/core/atoms/std-tabs.orb +44 -44
  59. package/behaviors/registry/core/molecules/std-cart.orb +47 -47
  60. package/behaviors/registry/core/molecules/std-filtered-list.orb +6 -6
  61. package/behaviors/registry/core/molecules/std-form-advanced.orb +132 -132
  62. package/behaviors/registry/core/molecules/std-list.orb +79 -85
  63. package/behaviors/registry/core/molecules/std-wizard-form.orb +146 -146
  64. package/behaviors/registry/game/atoms/std-collision.orb +122 -122
  65. package/behaviors/registry/game/atoms/std-combat.orb +66 -66
  66. package/behaviors/registry/game/atoms/std-dialogue-box.orb +25 -25
  67. package/behaviors/registry/game/atoms/std-game-canvas2d.orb +43 -43
  68. package/behaviors/registry/game/atoms/std-gameflow.orb +37 -37
  69. package/behaviors/registry/game/atoms/std-movement.orb +291 -291
  70. package/behaviors/registry/game/atoms/std-overworld.orb +69 -69
  71. package/behaviors/registry/game/atoms/std-physics2d.orb +77 -77
  72. package/behaviors/registry/game/atoms/std-quest.orb +133 -133
  73. package/behaviors/registry/game/atoms/std-timer.orb +291 -291
  74. package/behaviors/registry/game/organisms/std-arcade-game.orb +139 -139
  75. package/behaviors/registry/game/organisms/std-logic-training.orb +81 -81
  76. package/behaviors/registry/game/organisms/std-platformer-app.orb +273 -237
  77. package/behaviors/registry/game/organisms/std-puzzle-app.orb +98 -98
  78. package/behaviors/registry/game/organisms/std-rpg-game.orb +407 -371
  79. package/behaviors/registry/game/organisms/std-stem-lab.orb +378 -378
  80. package/behaviors/registry/game/organisms/std-strategy-game.orb +557 -557
  81. package/behaviors/registry/probes/molecules/std-source-scope-probe.orb +282 -20
  82. package/behaviors/registry/service/atoms/std-service-custom-bearer.orb +84 -84
  83. package/behaviors/registry/service/atoms/std-service-email.orb +88 -88
  84. package/behaviors/registry/service/atoms/std-service-github.orb +88 -88
  85. package/behaviors/registry/service/atoms/std-service-llm.orb +119 -119
  86. package/behaviors/registry/service/atoms/std-service-oauth.orb +122 -122
  87. package/behaviors/registry/service/atoms/std-service-redis.orb +99 -99
  88. package/behaviors/registry/service/atoms/std-service-storage.orb +109 -109
  89. package/behaviors/registry/service/atoms/std-service-stripe.orb +105 -105
  90. package/behaviors/registry/service/atoms/std-service-twilio.orb +112 -112
  91. package/behaviors/registry/service/atoms/std-service-youtube.orb +111 -111
  92. package/behaviors/registry/service/organisms/std-service-marketplace.orb +1098 -1014
  93. package/behaviors/registry/service/organisms/std-service-research-assistant.orb +956 -956
  94. package/dist/behaviors/registry/agent/atoms/std-agent-activity-log.orb +80 -80
  95. package/dist/behaviors/registry/agent/atoms/std-agent-chat-thread.orb +103 -103
  96. package/dist/behaviors/registry/agent/atoms/std-agent-classifier.orb +131 -113
  97. package/dist/behaviors/registry/agent/atoms/std-agent-completion.orb +116 -98
  98. package/dist/behaviors/registry/agent/atoms/std-agent-context-window.orb +384 -384
  99. package/dist/behaviors/registry/agent/atoms/std-agent-conversation.orb +106 -106
  100. package/dist/behaviors/registry/agent/atoms/std-agent-memory.orb +75 -75
  101. package/dist/behaviors/registry/agent/atoms/std-agent-provider.orb +163 -139
  102. package/dist/behaviors/registry/agent/atoms/std-agent-search.orb +64 -64
  103. package/dist/behaviors/registry/agent/atoms/std-agent-session.orb +130 -130
  104. package/dist/behaviors/registry/agent/atoms/std-agent-step-progress.orb +185 -185
  105. package/dist/behaviors/registry/agent/atoms/std-agent-token-gauge.orb +344 -344
  106. package/dist/behaviors/registry/agent/atoms/std-agent-tool-call.orb +81 -63
  107. package/dist/behaviors/registry/agent/molecules/std-agent-fix-loop.orb +189 -189
  108. package/dist/behaviors/registry/agent/molecules/std-agent-learner.orb +163 -163
  109. package/dist/behaviors/registry/agent/molecules/std-agent-planner.orb +120 -120
  110. package/dist/behaviors/registry/agent/molecules/std-agent-rag.orb +108 -108
  111. package/dist/behaviors/registry/agent/molecules/std-agent-tool-loop.orb +188 -188
  112. package/dist/behaviors/registry/agent/organisms/std-agent-assistant.orb +1097 -1072
  113. package/dist/behaviors/registry/agent/organisms/std-agent-builder.orb +3183 -3043
  114. package/dist/behaviors/registry/agent/organisms/std-agent-pipeline.orb +2309 -2217
  115. package/dist/behaviors/registry/agent/organisms/std-agent-reviewer.orb +1083 -1029
  116. package/dist/behaviors/registry/agent/organisms/std-agent-tutor.orb +793 -768
  117. package/dist/behaviors/registry/app/organisms/std-api-gateway.orb +929 -887
  118. package/dist/behaviors/registry/app/organisms/std-booking-system.orb +1247 -1163
  119. package/dist/behaviors/registry/app/organisms/std-cicd-pipeline.orb +822 -780
  120. package/dist/behaviors/registry/app/organisms/std-cms.orb +608 -512
  121. package/dist/behaviors/registry/app/organisms/std-coding-academy.orb +393 -393
  122. package/dist/behaviors/registry/app/organisms/std-crm.orb +887 -791
  123. package/dist/behaviors/registry/app/organisms/std-devops-dashboard.orb +1408 -1366
  124. package/dist/behaviors/registry/app/organisms/std-ecommerce.orb +1147 -1021
  125. package/dist/behaviors/registry/app/organisms/std-finance-tracker.orb +670 -616
  126. package/dist/behaviors/registry/app/organisms/std-healthcare.orb +1447 -1351
  127. package/dist/behaviors/registry/app/organisms/std-helpdesk.orb +720 -666
  128. package/dist/behaviors/registry/app/organisms/std-hr-portal.orb +1286 -1202
  129. package/dist/behaviors/registry/app/organisms/std-iot-dashboard.orb +925 -883
  130. package/dist/behaviors/registry/app/organisms/std-lms.orb +935 -893
  131. package/dist/behaviors/registry/app/organisms/std-project-manager.orb +834 -750
  132. package/dist/behaviors/registry/app/organisms/std-realtime-chat.orb +735 -681
  133. package/dist/behaviors/registry/app/organisms/std-social-feed.orb +235 -211
  134. package/dist/behaviors/registry/app/organisms/std-trading-dashboard.orb +730 -688
  135. package/dist/behaviors/registry/core/atoms/std-browse.orb +56 -56
  136. package/dist/behaviors/registry/core/atoms/std-cache-aside.orb +95 -95
  137. package/dist/behaviors/registry/core/atoms/std-calendar.orb +54 -54
  138. package/dist/behaviors/registry/core/atoms/std-circuit-breaker.orb +180 -180
  139. package/dist/behaviors/registry/core/atoms/std-confirmation.orb +25 -25
  140. package/dist/behaviors/registry/core/atoms/std-display.orb +388 -388
  141. package/dist/behaviors/registry/core/atoms/std-drawer.orb +54 -54
  142. package/dist/behaviors/registry/core/atoms/std-filter.orb +47 -47
  143. package/dist/behaviors/registry/core/atoms/std-gallery.orb +51 -51
  144. package/dist/behaviors/registry/core/atoms/std-modal.orb +12 -12
  145. package/dist/behaviors/registry/core/atoms/std-pagination.orb +42 -42
  146. package/dist/behaviors/registry/core/atoms/std-push.orb +43 -43
  147. package/dist/behaviors/registry/core/atoms/std-rate-limiter.orb +194 -194
  148. package/dist/behaviors/registry/core/atoms/std-related.orb +37 -37
  149. package/dist/behaviors/registry/core/atoms/std-search.orb +68 -68
  150. package/dist/behaviors/registry/core/atoms/std-selection.orb +90 -90
  151. package/dist/behaviors/registry/core/atoms/std-tabs.orb +44 -44
  152. package/dist/behaviors/registry/core/molecules/std-cart.orb +47 -47
  153. package/dist/behaviors/registry/core/molecules/std-filtered-list.orb +6 -6
  154. package/dist/behaviors/registry/core/molecules/std-form-advanced.orb +132 -132
  155. package/dist/behaviors/registry/core/molecules/std-list.orb +79 -85
  156. package/dist/behaviors/registry/core/molecules/std-wizard-form.orb +146 -146
  157. package/dist/behaviors/registry/game/atoms/std-collision.orb +122 -122
  158. package/dist/behaviors/registry/game/atoms/std-combat.orb +66 -66
  159. package/dist/behaviors/registry/game/atoms/std-dialogue-box.orb +25 -25
  160. package/dist/behaviors/registry/game/atoms/std-game-canvas2d.orb +43 -43
  161. package/dist/behaviors/registry/game/atoms/std-gameflow.orb +37 -37
  162. package/dist/behaviors/registry/game/atoms/std-movement.orb +291 -291
  163. package/dist/behaviors/registry/game/atoms/std-overworld.orb +69 -69
  164. package/dist/behaviors/registry/game/atoms/std-physics2d.orb +77 -77
  165. package/dist/behaviors/registry/game/atoms/std-quest.orb +133 -133
  166. package/dist/behaviors/registry/game/atoms/std-timer.orb +291 -291
  167. package/dist/behaviors/registry/game/organisms/std-arcade-game.orb +139 -139
  168. package/dist/behaviors/registry/game/organisms/std-logic-training.orb +81 -81
  169. package/dist/behaviors/registry/game/organisms/std-platformer-app.orb +273 -237
  170. package/dist/behaviors/registry/game/organisms/std-puzzle-app.orb +98 -98
  171. package/dist/behaviors/registry/game/organisms/std-rpg-game.orb +407 -371
  172. package/dist/behaviors/registry/game/organisms/std-stem-lab.orb +378 -378
  173. package/dist/behaviors/registry/game/organisms/std-strategy-game.orb +557 -557
  174. package/dist/behaviors/registry/probes/molecules/std-source-scope-probe.orb +282 -20
  175. package/dist/behaviors/registry/service/atoms/std-service-custom-bearer.orb +84 -84
  176. package/dist/behaviors/registry/service/atoms/std-service-email.orb +88 -88
  177. package/dist/behaviors/registry/service/atoms/std-service-github.orb +88 -88
  178. package/dist/behaviors/registry/service/atoms/std-service-llm.orb +119 -119
  179. package/dist/behaviors/registry/service/atoms/std-service-oauth.orb +122 -122
  180. package/dist/behaviors/registry/service/atoms/std-service-redis.orb +99 -99
  181. package/dist/behaviors/registry/service/atoms/std-service-storage.orb +109 -109
  182. package/dist/behaviors/registry/service/atoms/std-service-stripe.orb +105 -105
  183. package/dist/behaviors/registry/service/atoms/std-service-twilio.orb +112 -112
  184. package/dist/behaviors/registry/service/atoms/std-service-youtube.orb +111 -111
  185. package/dist/behaviors/registry/service/organisms/std-service-marketplace.orb +1098 -1014
  186. package/dist/behaviors/registry/service/organisms/std-service-research-assistant.orb +956 -956
  187. package/package.json +1 -1
@@ -300,17 +300,13 @@
300
300
  "render-ui",
301
301
  "main",
302
302
  {
303
- "direction": "vertical",
304
- "type": "stack",
305
303
  "children": [
306
304
  {
307
- "align": "center",
308
- "type": "stack",
309
- "direction": "horizontal",
305
+ "gap": "sm",
310
306
  "children": [
311
307
  {
312
- "type": "icon",
313
- "name": "gauge"
308
+ "name": "gauge",
309
+ "type": "icon"
314
310
  },
315
311
  {
316
312
  "variant": "h2",
@@ -319,46 +315,50 @@
319
315
  },
320
316
  {
321
317
  "type": "badge",
322
- "label": "Normal",
323
- "variant": "default"
318
+ "variant": "default",
319
+ "label": "Normal"
324
320
  }
325
321
  ],
326
- "gap": "sm"
322
+ "direction": "horizontal",
323
+ "align": "center",
324
+ "type": "stack"
327
325
  },
328
326
  {
329
327
  "type": "divider"
330
328
  },
331
329
  {
330
+ "max": "@entity.max",
332
331
  "type": "progress-bar",
333
- "value": "@entity.current",
334
- "max": "@entity.max"
332
+ "value": "@entity.current"
335
333
  },
336
334
  {
337
335
  "gap": "md",
338
336
  "direction": "horizontal",
339
- "type": "stack",
340
337
  "children": [
341
338
  {
342
- "type": "stat-display",
343
339
  "value": "@entity.current",
344
- "label": "Tokens Used"
340
+ "label": "Tokens Used",
341
+ "type": "stat-display"
345
342
  },
346
343
  {
347
- "label": "Max Tokens",
348
344
  "value": "@entity.max",
345
+ "label": "Max Tokens",
349
346
  "type": "stat-display"
350
347
  }
351
- ]
348
+ ],
349
+ "type": "stack"
352
350
  },
353
351
  {
352
+ "label": "Reset",
353
+ "variant": "ghost",
354
354
  "action": "RESET",
355
355
  "icon": "rotate-ccw",
356
- "type": "button",
357
- "label": "Reset",
358
- "variant": "ghost"
356
+ "type": "button"
359
357
  }
360
358
  ],
361
- "gap": "lg"
359
+ "direction": "vertical",
360
+ "gap": "lg",
361
+ "type": "stack"
362
362
  }
363
363
  ]
364
364
  ]
@@ -388,27 +388,26 @@
388
388
  {
389
389
  "direction": "vertical",
390
390
  "type": "stack",
391
- "gap": "lg",
392
391
  "children": [
393
392
  {
394
- "gap": "sm",
395
- "type": "stack",
396
- "direction": "horizontal",
397
393
  "align": "center",
394
+ "direction": "horizontal",
395
+ "type": "stack",
396
+ "gap": "sm",
398
397
  "children": [
399
398
  {
400
399
  "type": "icon",
401
400
  "name": "gauge"
402
401
  },
403
402
  {
404
- "content": "Token Usage",
405
403
  "variant": "h2",
406
- "type": "typography"
404
+ "type": "typography",
405
+ "content": "Token Usage"
407
406
  },
408
407
  {
409
408
  "variant": "default",
410
- "type": "badge",
411
- "label": "Normal"
409
+ "label": "Normal",
410
+ "type": "badge"
412
411
  }
413
412
  ]
414
413
  },
@@ -421,30 +420,31 @@
421
420
  "type": "progress-bar"
422
421
  },
423
422
  {
424
- "type": "stack",
425
- "direction": "horizontal",
426
- "gap": "md",
427
423
  "children": [
428
424
  {
429
- "type": "stat-display",
425
+ "label": "Tokens Used",
430
426
  "value": "@entity.current",
431
- "label": "Tokens Used"
427
+ "type": "stat-display"
432
428
  },
433
429
  {
434
- "type": "stat-display",
435
430
  "label": "Max Tokens",
431
+ "type": "stat-display",
436
432
  "value": "@entity.max"
437
433
  }
438
- ]
434
+ ],
435
+ "gap": "md",
436
+ "direction": "horizontal",
437
+ "type": "stack"
439
438
  },
440
439
  {
440
+ "variant": "ghost",
441
441
  "action": "RESET",
442
442
  "icon": "rotate-ccw",
443
443
  "label": "Reset",
444
- "type": "button",
445
- "variant": "ghost"
444
+ "type": "button"
446
445
  }
447
- ]
446
+ ],
447
+ "gap": "lg"
448
448
  }
449
449
  ]
450
450
  ]
@@ -485,12 +485,13 @@
485
485
  "main",
486
486
  {
487
487
  "type": "stack",
488
+ "gap": "lg",
488
489
  "children": [
489
490
  {
490
491
  "children": [
491
492
  {
492
- "name": "alert-triangle",
493
- "type": "icon"
493
+ "type": "icon",
494
+ "name": "alert-triangle"
494
495
  },
495
496
  {
496
497
  "type": "typography",
@@ -498,13 +499,13 @@
498
499
  "variant": "h2"
499
500
  },
500
501
  {
501
- "label": "Warning",
502
502
  "variant": "warning",
503
- "type": "badge"
503
+ "type": "badge",
504
+ "label": "Warning"
504
505
  }
505
506
  ],
506
- "direction": "horizontal",
507
507
  "type": "stack",
508
+ "direction": "horizontal",
508
509
  "gap": "sm",
509
510
  "align": "center"
510
511
  },
@@ -512,56 +513,55 @@
512
513
  "type": "divider"
513
514
  },
514
515
  {
516
+ "message": "Token usage approaching limit. Consider compacting.",
515
517
  "type": "alert",
516
- "variant": "warning",
517
- "message": "Token usage approaching limit. Consider compacting."
518
+ "variant": "warning"
518
519
  },
519
520
  {
520
- "type": "progress-bar",
521
521
  "value": "@entity.current",
522
+ "type": "progress-bar",
522
523
  "max": "@entity.max"
523
524
  },
524
525
  {
525
526
  "direction": "horizontal",
526
- "type": "stack",
527
- "gap": "md",
528
527
  "children": [
529
528
  {
529
+ "label": "Tokens Used",
530
530
  "value": "@entity.current",
531
- "type": "stat-display",
532
- "label": "Tokens Used"
531
+ "type": "stat-display"
533
532
  },
534
533
  {
535
- "type": "stat-display",
534
+ "value": "@entity.max",
536
535
  "label": "Max Tokens",
537
- "value": "@entity.max"
536
+ "type": "stat-display"
538
537
  }
539
- ]
538
+ ],
539
+ "type": "stack",
540
+ "gap": "md"
540
541
  },
541
542
  {
543
+ "gap": "sm",
544
+ "direction": "horizontal",
542
545
  "type": "stack",
543
546
  "children": [
544
547
  {
545
- "label": "Compact",
546
548
  "icon": "minimize-2",
549
+ "action": "COMPACT",
547
550
  "type": "button",
548
551
  "variant": "primary",
549
- "action": "COMPACT"
552
+ "label": "Compact"
550
553
  },
551
554
  {
552
- "action": "RESET",
553
555
  "label": "Reset",
556
+ "action": "RESET",
554
557
  "type": "button",
555
558
  "variant": "ghost",
556
559
  "icon": "rotate-ccw"
557
560
  }
558
- ],
559
- "gap": "sm",
560
- "direction": "horizontal"
561
+ ]
561
562
  }
562
563
  ],
563
- "direction": "vertical",
564
- "gap": "lg"
564
+ "direction": "vertical"
565
565
  }
566
566
  ]
567
567
  ]
@@ -589,12 +589,11 @@
589
589
  "render-ui",
590
590
  "main",
591
591
  {
592
- "type": "stack",
593
592
  "gap": "lg",
594
593
  "children": [
595
594
  {
596
- "type": "stack",
597
595
  "direction": "horizontal",
596
+ "type": "stack",
598
597
  "align": "center",
599
598
  "children": [
600
599
  {
@@ -602,14 +601,14 @@
602
601
  "type": "icon"
603
602
  },
604
603
  {
605
- "type": "typography",
606
604
  "content": "Token Usage",
607
- "variant": "h2"
605
+ "variant": "h2",
606
+ "type": "typography"
608
607
  },
609
608
  {
609
+ "label": "Critical",
610
610
  "variant": "danger",
611
- "type": "badge",
612
- "label": "Critical"
611
+ "type": "badge"
613
612
  }
614
613
  ],
615
614
  "gap": "sm"
@@ -623,49 +622,50 @@
623
622
  "message": "Token usage critical. Compact immediately to avoid truncation."
624
623
  },
625
624
  {
626
- "max": "@entity.max",
627
625
  "type": "progress-bar",
626
+ "max": "@entity.max",
628
627
  "value": "@entity.current"
629
628
  },
630
629
  {
631
- "type": "stack",
632
630
  "direction": "horizontal",
631
+ "type": "stack",
632
+ "gap": "md",
633
633
  "children": [
634
634
  {
635
+ "type": "stat-display",
635
636
  "label": "Tokens Used",
636
- "value": "@entity.current",
637
- "type": "stat-display"
637
+ "value": "@entity.current"
638
638
  },
639
639
  {
640
- "type": "stat-display",
640
+ "label": "Max Tokens",
641
641
  "value": "@entity.max",
642
- "label": "Max Tokens"
642
+ "type": "stat-display"
643
643
  }
644
- ],
645
- "gap": "md"
644
+ ]
646
645
  },
647
646
  {
648
- "type": "stack",
649
- "gap": "sm",
650
647
  "direction": "horizontal",
648
+ "type": "stack",
651
649
  "children": [
652
650
  {
651
+ "variant": "primary",
652
+ "icon": "minimize-2",
653
653
  "label": "Compact Now",
654
654
  "action": "COMPACT",
655
- "icon": "minimize-2",
656
- "type": "button",
657
- "variant": "primary"
655
+ "type": "button"
658
656
  },
659
657
  {
660
- "label": "Reset",
661
- "variant": "ghost",
662
- "icon": "rotate-ccw",
663
658
  "type": "button",
664
- "action": "RESET"
659
+ "variant": "ghost",
660
+ "label": "Reset",
661
+ "action": "RESET",
662
+ "icon": "rotate-ccw"
665
663
  }
666
- ]
664
+ ],
665
+ "gap": "sm"
667
666
  }
668
667
  ],
668
+ "type": "stack",
669
669
  "direction": "vertical"
670
670
  }
671
671
  ]
@@ -691,15 +691,15 @@
691
691
  "render-ui",
692
692
  "main",
693
693
  {
694
- "direction": "vertical",
695
694
  "type": "stack",
695
+ "direction": "vertical",
696
+ "gap": "lg",
696
697
  "children": [
697
698
  {
698
- "align": "center",
699
699
  "children": [
700
700
  {
701
- "type": "icon",
702
- "name": "gauge"
701
+ "name": "gauge",
702
+ "type": "icon"
703
703
  },
704
704
  {
705
705
  "type": "typography",
@@ -707,49 +707,49 @@
707
707
  "variant": "h2"
708
708
  },
709
709
  {
710
- "label": "Normal",
711
710
  "type": "badge",
712
- "variant": "default"
711
+ "variant": "default",
712
+ "label": "Normal"
713
713
  }
714
714
  ],
715
715
  "gap": "sm",
716
716
  "type": "stack",
717
- "direction": "horizontal"
717
+ "direction": "horizontal",
718
+ "align": "center"
718
719
  },
719
720
  {
720
721
  "type": "divider"
721
722
  },
722
723
  {
723
- "type": "progress-bar",
724
724
  "max": "@entity.max",
725
+ "type": "progress-bar",
725
726
  "value": "@entity.current"
726
727
  },
727
728
  {
728
- "gap": "md",
729
729
  "direction": "horizontal",
730
730
  "type": "stack",
731
731
  "children": [
732
732
  {
733
+ "value": "@entity.current",
733
734
  "type": "stat-display",
734
- "label": "Tokens Used",
735
- "value": "@entity.current"
735
+ "label": "Tokens Used"
736
736
  },
737
737
  {
738
738
  "value": "@entity.max",
739
- "label": "Max Tokens",
740
- "type": "stat-display"
739
+ "type": "stat-display",
740
+ "label": "Max Tokens"
741
741
  }
742
- ]
742
+ ],
743
+ "gap": "md"
743
744
  },
744
745
  {
745
746
  "action": "RESET",
746
- "variant": "ghost",
747
- "type": "button",
748
747
  "label": "Reset",
748
+ "type": "button",
749
+ "variant": "ghost",
749
750
  "icon": "rotate-ccw"
750
751
  }
751
- ],
752
- "gap": "lg"
752
+ ]
753
753
  }
754
754
  ]
755
755
  ]
@@ -768,20 +768,21 @@
768
768
  "render-ui",
769
769
  "main",
770
770
  {
771
+ "gap": "lg",
771
772
  "children": [
772
773
  {
773
- "direction": "horizontal",
774
774
  "gap": "sm",
775
- "type": "stack",
775
+ "align": "center",
776
+ "direction": "horizontal",
776
777
  "children": [
777
778
  {
778
779
  "type": "icon",
779
780
  "name": "gauge"
780
781
  },
781
782
  {
783
+ "content": "Token Usage",
782
784
  "variant": "h2",
783
- "type": "typography",
784
- "content": "Token Usage"
785
+ "type": "typography"
785
786
  },
786
787
  {
787
788
  "variant": "default",
@@ -789,44 +790,43 @@
789
790
  "label": "Normal"
790
791
  }
791
792
  ],
792
- "align": "center"
793
+ "type": "stack"
793
794
  },
794
795
  {
795
796
  "type": "divider"
796
797
  },
797
798
  {
798
- "type": "progress-bar",
799
799
  "value": "@entity.current",
800
- "max": "@entity.max"
800
+ "max": "@entity.max",
801
+ "type": "progress-bar"
801
802
  },
802
803
  {
803
804
  "type": "stack",
804
805
  "direction": "horizontal",
805
806
  "children": [
806
807
  {
807
- "label": "Tokens Used",
808
808
  "value": "@entity.current",
809
- "type": "stat-display"
809
+ "type": "stat-display",
810
+ "label": "Tokens Used"
810
811
  },
811
812
  {
812
- "type": "stat-display",
813
813
  "label": "Max Tokens",
814
+ "type": "stat-display",
814
815
  "value": "@entity.max"
815
816
  }
816
817
  ],
817
818
  "gap": "md"
818
819
  },
819
820
  {
820
- "label": "Reset",
821
+ "variant": "ghost",
822
+ "icon": "rotate-ccw",
821
823
  "action": "RESET",
822
824
  "type": "button",
823
- "variant": "ghost",
824
- "icon": "rotate-ccw"
825
+ "label": "Reset"
825
826
  }
826
827
  ],
827
- "direction": "vertical",
828
- "gap": "lg",
829
- "type": "stack"
828
+ "type": "stack",
829
+ "direction": "vertical"
830
830
  }
831
831
  ]
832
832
  ]
@@ -866,30 +866,30 @@
866
866
  "render-ui",
867
867
  "main",
868
868
  {
869
- "direction": "vertical",
869
+ "type": "stack",
870
870
  "gap": "lg",
871
871
  "children": [
872
872
  {
873
+ "gap": "sm",
874
+ "align": "center",
873
875
  "children": [
874
876
  {
875
- "name": "alert-triangle",
876
- "type": "icon"
877
+ "type": "icon",
878
+ "name": "alert-triangle"
877
879
  },
878
880
  {
879
- "variant": "h2",
880
881
  "content": "Token Usage",
881
- "type": "typography"
882
+ "type": "typography",
883
+ "variant": "h2"
882
884
  },
883
885
  {
884
886
  "type": "badge",
885
- "variant": "warning",
886
- "label": "Warning"
887
+ "label": "Warning",
888
+ "variant": "warning"
887
889
  }
888
890
  ],
889
- "gap": "sm",
890
891
  "type": "stack",
891
- "direction": "horizontal",
892
- "align": "center"
892
+ "direction": "horizontal"
893
893
  },
894
894
  {
895
895
  "type": "divider"
@@ -900,50 +900,50 @@
900
900
  "variant": "warning"
901
901
  },
902
902
  {
903
- "type": "progress-bar",
904
903
  "value": "@entity.current",
905
- "max": "@entity.max"
904
+ "max": "@entity.max",
905
+ "type": "progress-bar"
906
906
  },
907
907
  {
908
- "direction": "horizontal",
909
908
  "type": "stack",
909
+ "direction": "horizontal",
910
910
  "gap": "md",
911
911
  "children": [
912
912
  {
913
- "label": "Tokens Used",
913
+ "value": "@entity.current",
914
914
  "type": "stat-display",
915
- "value": "@entity.current"
915
+ "label": "Tokens Used"
916
916
  },
917
917
  {
918
- "type": "stat-display",
918
+ "value": "@entity.max",
919
919
  "label": "Max Tokens",
920
- "value": "@entity.max"
920
+ "type": "stat-display"
921
921
  }
922
922
  ]
923
923
  },
924
924
  {
925
- "direction": "horizontal",
926
- "gap": "sm",
927
925
  "type": "stack",
928
926
  "children": [
929
927
  {
930
928
  "label": "Compact",
931
- "icon": "minimize-2",
932
929
  "action": "COMPACT",
930
+ "type": "button",
933
931
  "variant": "primary",
934
- "type": "button"
932
+ "icon": "minimize-2"
935
933
  },
936
934
  {
937
- "label": "Reset",
935
+ "variant": "ghost",
938
936
  "icon": "rotate-ccw",
939
937
  "type": "button",
940
- "action": "RESET",
941
- "variant": "ghost"
938
+ "label": "Reset",
939
+ "action": "RESET"
942
940
  }
943
- ]
941
+ ],
942
+ "gap": "sm",
943
+ "direction": "horizontal"
944
944
  }
945
945
  ],
946
- "type": "stack"
946
+ "direction": "vertical"
947
947
  }
948
948
  ]
949
949
  ]
@@ -971,46 +971,48 @@
971
971
  "render-ui",
972
972
  "main",
973
973
  {
974
+ "direction": "vertical",
975
+ "gap": "lg",
976
+ "type": "stack",
974
977
  "children": [
975
978
  {
976
- "direction": "horizontal",
977
- "align": "center",
978
979
  "gap": "sm",
980
+ "align": "center",
981
+ "direction": "horizontal",
982
+ "type": "stack",
979
983
  "children": [
980
984
  {
981
- "type": "icon",
982
- "name": "alert-octagon"
985
+ "name": "alert-octagon",
986
+ "type": "icon"
983
987
  },
984
988
  {
989
+ "type": "typography",
985
990
  "content": "Token Usage",
986
- "variant": "h2",
987
- "type": "typography"
991
+ "variant": "h2"
988
992
  },
989
993
  {
990
- "variant": "danger",
994
+ "type": "badge",
991
995
  "label": "Critical",
992
- "type": "badge"
996
+ "variant": "danger"
993
997
  }
994
- ],
995
- "type": "stack"
998
+ ]
996
999
  },
997
1000
  {
998
1001
  "type": "divider"
999
1002
  },
1000
1003
  {
1001
1004
  "variant": "error",
1002
- "type": "alert",
1003
- "message": "Token usage critical. Compact immediately to avoid truncation."
1005
+ "message": "Token usage critical. Compact immediately to avoid truncation.",
1006
+ "type": "alert"
1004
1007
  },
1005
1008
  {
1009
+ "type": "progress-bar",
1006
1010
  "value": "@entity.current",
1007
- "max": "@entity.max",
1008
- "type": "progress-bar"
1011
+ "max": "@entity.max"
1009
1012
  },
1010
1013
  {
1011
1014
  "direction": "horizontal",
1012
1015
  "gap": "md",
1013
- "type": "stack",
1014
1016
  "children": [
1015
1017
  {
1016
1018
  "type": "stat-display",
@@ -1022,12 +1024,13 @@
1022
1024
  "label": "Max Tokens",
1023
1025
  "value": "@entity.max"
1024
1026
  }
1025
- ]
1027
+ ],
1028
+ "type": "stack"
1026
1029
  },
1027
1030
  {
1031
+ "direction": "horizontal",
1028
1032
  "type": "stack",
1029
1033
  "gap": "sm",
1030
- "direction": "horizontal",
1031
1034
  "children": [
1032
1035
  {
1033
1036
  "label": "Compact Now",
@@ -1037,18 +1040,15 @@
1037
1040
  "variant": "primary"
1038
1041
  },
1039
1042
  {
1040
- "label": "Reset",
1041
1043
  "variant": "ghost",
1044
+ "icon": "rotate-ccw",
1042
1045
  "type": "button",
1043
1046
  "action": "RESET",
1044
- "icon": "rotate-ccw"
1047
+ "label": "Reset"
1045
1048
  }
1046
1049
  ]
1047
1050
  }
1048
- ],
1049
- "gap": "lg",
1050
- "direction": "vertical",
1051
- "type": "stack"
1051
+ ]
1052
1052
  }
1053
1053
  ]
1054
1054
  ]
@@ -1076,65 +1076,65 @@
1076
1076
  "render-ui",
1077
1077
  "main",
1078
1078
  {
1079
- "gap": "lg",
1080
1079
  "direction": "vertical",
1080
+ "type": "stack",
1081
1081
  "children": [
1082
1082
  {
1083
- "gap": "sm",
1084
- "align": "center",
1085
- "direction": "horizontal",
1086
1083
  "type": "stack",
1087
1084
  "children": [
1088
1085
  {
1089
- "name": "gauge",
1090
- "type": "icon"
1086
+ "type": "icon",
1087
+ "name": "gauge"
1091
1088
  },
1092
1089
  {
1093
- "type": "typography",
1090
+ "content": "Token Usage",
1094
1091
  "variant": "h2",
1095
- "content": "Token Usage"
1092
+ "type": "typography"
1096
1093
  },
1097
1094
  {
1098
- "type": "badge",
1099
1095
  "label": "Normal",
1100
- "variant": "default"
1096
+ "variant": "default",
1097
+ "type": "badge"
1101
1098
  }
1102
- ]
1099
+ ],
1100
+ "align": "center",
1101
+ "gap": "sm",
1102
+ "direction": "horizontal"
1103
1103
  },
1104
1104
  {
1105
1105
  "type": "divider"
1106
1106
  },
1107
1107
  {
1108
+ "value": "@entity.current",
1108
1109
  "max": "@entity.max",
1109
- "type": "progress-bar",
1110
- "value": "@entity.current"
1110
+ "type": "progress-bar"
1111
1111
  },
1112
1112
  {
1113
- "gap": "md",
1113
+ "type": "stack",
1114
1114
  "direction": "horizontal",
1115
1115
  "children": [
1116
1116
  {
1117
- "value": "@entity.current",
1118
1117
  "type": "stat-display",
1119
- "label": "Tokens Used"
1118
+ "label": "Tokens Used",
1119
+ "value": "@entity.current"
1120
1120
  },
1121
1121
  {
1122
- "label": "Max Tokens",
1123
1122
  "type": "stat-display",
1123
+ "label": "Max Tokens",
1124
1124
  "value": "@entity.max"
1125
1125
  }
1126
1126
  ],
1127
- "type": "stack"
1127
+ "gap": "md"
1128
1128
  },
1129
1129
  {
1130
- "variant": "ghost",
1130
+ "icon": "rotate-ccw",
1131
+ "label": "Reset",
1131
1132
  "type": "button",
1132
1133
  "action": "RESET",
1133
- "icon": "rotate-ccw",
1134
- "label": "Reset"
1134
+ "variant": "ghost"
1135
1135
  }
1136
1136
  ],
1137
- "type": "stack"
1137
+ "gap": "lg"
1138
1138
  }
1139
1139
  ]
1140
1140
  ]
@@ -1159,39 +1159,42 @@
1159
1159
  "render-ui",
1160
1160
  "main",
1161
1161
  {
1162
- "gap": "lg",
1162
+ "type": "stack",
1163
1163
  "children": [
1164
1164
  {
1165
- "direction": "horizontal",
1166
- "align": "center",
1165
+ "type": "stack",
1167
1166
  "gap": "sm",
1167
+ "direction": "horizontal",
1168
1168
  "children": [
1169
1169
  {
1170
1170
  "type": "icon",
1171
1171
  "name": "gauge"
1172
1172
  },
1173
1173
  {
1174
- "content": "Token Usage",
1174
+ "type": "typography",
1175
1175
  "variant": "h2",
1176
- "type": "typography"
1176
+ "content": "Token Usage"
1177
1177
  },
1178
1178
  {
1179
- "variant": "default",
1180
1179
  "type": "badge",
1181
- "label": "Normal"
1180
+ "label": "Normal",
1181
+ "variant": "default"
1182
1182
  }
1183
1183
  ],
1184
- "type": "stack"
1184
+ "align": "center"
1185
1185
  },
1186
1186
  {
1187
1187
  "type": "divider"
1188
1188
  },
1189
1189
  {
1190
- "value": "@entity.current",
1190
+ "max": "@entity.max",
1191
1191
  "type": "progress-bar",
1192
- "max": "@entity.max"
1192
+ "value": "@entity.current"
1193
1193
  },
1194
1194
  {
1195
+ "type": "stack",
1196
+ "direction": "horizontal",
1197
+ "gap": "md",
1195
1198
  "children": [
1196
1199
  {
1197
1200
  "type": "stat-display",
@@ -1199,24 +1202,21 @@
1199
1202
  "value": "@entity.current"
1200
1203
  },
1201
1204
  {
1202
- "value": "@entity.max",
1203
1205
  "type": "stat-display",
1204
- "label": "Max Tokens"
1206
+ "label": "Max Tokens",
1207
+ "value": "@entity.max"
1205
1208
  }
1206
- ],
1207
- "gap": "md",
1208
- "type": "stack",
1209
- "direction": "horizontal"
1209
+ ]
1210
1210
  },
1211
1211
  {
1212
1212
  "type": "button",
1213
1213
  "variant": "ghost",
1214
- "icon": "rotate-ccw",
1214
+ "action": "RESET",
1215
1215
  "label": "Reset",
1216
- "action": "RESET"
1216
+ "icon": "rotate-ccw"
1217
1217
  }
1218
1218
  ],
1219
- "type": "stack",
1219
+ "gap": "lg",
1220
1220
  "direction": "vertical"
1221
1221
  }
1222
1222
  ]
@@ -1236,63 +1236,63 @@
1236
1236
  "render-ui",
1237
1237
  "main",
1238
1238
  {
1239
- "gap": "lg",
1240
1239
  "children": [
1241
1240
  {
1241
+ "type": "stack",
1242
+ "align": "center",
1243
+ "direction": "horizontal",
1244
+ "gap": "sm",
1242
1245
  "children": [
1243
1246
  {
1244
1247
  "type": "icon",
1245
1248
  "name": "gauge"
1246
1249
  },
1247
1250
  {
1248
- "variant": "h2",
1249
1251
  "type": "typography",
1250
- "content": "Token Usage"
1252
+ "content": "Token Usage",
1253
+ "variant": "h2"
1251
1254
  },
1252
1255
  {
1256
+ "label": "Normal",
1253
1257
  "variant": "default",
1254
- "type": "badge",
1255
- "label": "Normal"
1258
+ "type": "badge"
1256
1259
  }
1257
- ],
1258
- "type": "stack",
1259
- "direction": "horizontal",
1260
- "gap": "sm",
1261
- "align": "center"
1260
+ ]
1262
1261
  },
1263
1262
  {
1264
1263
  "type": "divider"
1265
1264
  },
1266
1265
  {
1267
- "value": "@entity.current",
1266
+ "max": "@entity.max",
1268
1267
  "type": "progress-bar",
1269
- "max": "@entity.max"
1268
+ "value": "@entity.current"
1270
1269
  },
1271
1270
  {
1271
+ "gap": "md",
1272
+ "type": "stack",
1273
+ "direction": "horizontal",
1272
1274
  "children": [
1273
1275
  {
1274
- "type": "stat-display",
1275
1276
  "label": "Tokens Used",
1276
- "value": "@entity.current"
1277
+ "value": "@entity.current",
1278
+ "type": "stat-display"
1277
1279
  },
1278
1280
  {
1279
- "type": "stat-display",
1281
+ "label": "Max Tokens",
1280
1282
  "value": "@entity.max",
1281
- "label": "Max Tokens"
1283
+ "type": "stat-display"
1282
1284
  }
1283
- ],
1284
- "gap": "md",
1285
- "direction": "horizontal",
1286
- "type": "stack"
1285
+ ]
1287
1286
  },
1288
1287
  {
1289
1288
  "label": "Reset",
1289
+ "type": "button",
1290
1290
  "action": "RESET",
1291
1291
  "variant": "ghost",
1292
- "type": "button",
1293
1292
  "icon": "rotate-ccw"
1294
1293
  }
1295
1294
  ],
1295
+ "gap": "lg",
1296
1296
  "type": "stack",
1297
1297
  "direction": "vertical"
1298
1298
  }
@@ -1322,84 +1322,84 @@
1322
1322
  "render-ui",
1323
1323
  "main",
1324
1324
  {
1325
+ "direction": "vertical",
1325
1326
  "gap": "lg",
1326
1327
  "type": "stack",
1327
1328
  "children": [
1328
1329
  {
1330
+ "direction": "horizontal",
1329
1331
  "align": "center",
1330
- "type": "stack",
1331
- "gap": "sm",
1332
1332
  "children": [
1333
1333
  {
1334
- "name": "alert-octagon",
1335
- "type": "icon"
1334
+ "type": "icon",
1335
+ "name": "alert-octagon"
1336
1336
  },
1337
1337
  {
1338
- "variant": "h2",
1339
1338
  "type": "typography",
1340
- "content": "Token Usage"
1339
+ "content": "Token Usage",
1340
+ "variant": "h2"
1341
1341
  },
1342
1342
  {
1343
- "type": "badge",
1344
1343
  "variant": "danger",
1345
- "label": "Critical"
1344
+ "label": "Critical",
1345
+ "type": "badge"
1346
1346
  }
1347
1347
  ],
1348
- "direction": "horizontal"
1348
+ "type": "stack",
1349
+ "gap": "sm"
1349
1350
  },
1350
1351
  {
1351
1352
  "type": "divider"
1352
1353
  },
1353
1354
  {
1354
- "type": "alert",
1355
1355
  "message": "Token usage critical. Compact immediately to avoid truncation.",
1356
+ "type": "alert",
1356
1357
  "variant": "error"
1357
1358
  },
1358
1359
  {
1359
- "value": "@entity.current",
1360
1360
  "type": "progress-bar",
1361
- "max": "@entity.max"
1361
+ "max": "@entity.max",
1362
+ "value": "@entity.current"
1362
1363
  },
1363
1364
  {
1364
- "direction": "horizontal",
1365
- "type": "stack",
1366
- "gap": "md",
1367
1365
  "children": [
1368
1366
  {
1369
- "value": "@entity.current",
1370
1367
  "type": "stat-display",
1371
- "label": "Tokens Used"
1368
+ "label": "Tokens Used",
1369
+ "value": "@entity.current"
1372
1370
  },
1373
1371
  {
1374
- "label": "Max Tokens",
1372
+ "type": "stat-display",
1375
1373
  "value": "@entity.max",
1376
- "type": "stat-display"
1374
+ "label": "Max Tokens"
1377
1375
  }
1378
- ]
1376
+ ],
1377
+ "gap": "md",
1378
+ "direction": "horizontal",
1379
+ "type": "stack"
1379
1380
  },
1380
1381
  {
1381
1382
  "type": "stack",
1382
- "gap": "sm",
1383
+ "direction": "horizontal",
1383
1384
  "children": [
1384
1385
  {
1385
- "type": "button",
1386
+ "label": "Compact Now",
1386
1387
  "variant": "primary",
1387
- "action": "COMPACT",
1388
1388
  "icon": "minimize-2",
1389
- "label": "Compact Now"
1389
+ "type": "button",
1390
+ "action": "COMPACT"
1390
1391
  },
1391
1392
  {
1392
- "icon": "rotate-ccw",
1393
- "variant": "ghost",
1394
- "type": "button",
1395
1393
  "label": "Reset",
1396
- "action": "RESET"
1394
+ "action": "RESET",
1395
+ "type": "button",
1396
+ "icon": "rotate-ccw",
1397
+ "variant": "ghost"
1397
1398
  }
1398
1399
  ],
1399
- "direction": "horizontal"
1400
+ "gap": "sm"
1400
1401
  }
1401
- ],
1402
- "direction": "vertical"
1402
+ ]
1403
1403
  }
1404
1404
  ]
1405
1405
  ]
@@ -1443,7 +1443,7 @@
1443
1443
  "direction": "vertical",
1444
1444
  "children": [
1445
1445
  {
1446
- "direction": "horizontal",
1446
+ "gap": "sm",
1447
1447
  "align": "center",
1448
1448
  "children": [
1449
1449
  {
@@ -1451,33 +1451,36 @@
1451
1451
  "name": "alert-triangle"
1452
1452
  },
1453
1453
  {
1454
- "type": "typography",
1454
+ "content": "Token Usage",
1455
1455
  "variant": "h2",
1456
- "content": "Token Usage"
1456
+ "type": "typography"
1457
1457
  },
1458
1458
  {
1459
- "type": "badge",
1460
1459
  "variant": "warning",
1460
+ "type": "badge",
1461
1461
  "label": "Warning"
1462
1462
  }
1463
1463
  ],
1464
- "type": "stack",
1465
- "gap": "sm"
1464
+ "direction": "horizontal",
1465
+ "type": "stack"
1466
1466
  },
1467
1467
  {
1468
1468
  "type": "divider"
1469
1469
  },
1470
1470
  {
1471
- "type": "alert",
1471
+ "variant": "warning",
1472
1472
  "message": "Token usage approaching limit. Consider compacting.",
1473
- "variant": "warning"
1473
+ "type": "alert"
1474
1474
  },
1475
1475
  {
1476
+ "value": "@entity.current",
1476
1477
  "type": "progress-bar",
1477
- "max": "@entity.max",
1478
- "value": "@entity.current"
1478
+ "max": "@entity.max"
1479
1479
  },
1480
1480
  {
1481
+ "direction": "horizontal",
1482
+ "type": "stack",
1483
+ "gap": "md",
1481
1484
  "children": [
1482
1485
  {
1483
1486
  "type": "stat-display",
@@ -1486,34 +1489,31 @@
1486
1489
  },
1487
1490
  {
1488
1491
  "type": "stat-display",
1489
- "label": "Max Tokens",
1490
- "value": "@entity.max"
1492
+ "value": "@entity.max",
1493
+ "label": "Max Tokens"
1491
1494
  }
1492
- ],
1493
- "type": "stack",
1494
- "direction": "horizontal",
1495
- "gap": "md"
1495
+ ]
1496
1496
  },
1497
1497
  {
1498
+ "gap": "sm",
1499
+ "direction": "horizontal",
1500
+ "type": "stack",
1498
1501
  "children": [
1499
1502
  {
1500
- "action": "COMPACT",
1501
1503
  "type": "button",
1502
- "label": "Compact",
1504
+ "variant": "primary",
1505
+ "action": "COMPACT",
1503
1506
  "icon": "minimize-2",
1504
- "variant": "primary"
1507
+ "label": "Compact"
1505
1508
  },
1506
1509
  {
1507
- "variant": "ghost",
1508
- "action": "RESET",
1509
- "icon": "rotate-ccw",
1510
+ "type": "button",
1510
1511
  "label": "Reset",
1511
- "type": "button"
1512
+ "icon": "rotate-ccw",
1513
+ "action": "RESET",
1514
+ "variant": "ghost"
1512
1515
  }
1513
- ],
1514
- "type": "stack",
1515
- "gap": "sm",
1516
- "direction": "horizontal"
1516
+ ]
1517
1517
  }
1518
1518
  ],
1519
1519
  "gap": "lg"
@@ -1544,65 +1544,65 @@
1544
1544
  "render-ui",
1545
1545
  "main",
1546
1546
  {
1547
- "type": "stack",
1548
- "gap": "lg",
1549
- "direction": "vertical",
1550
1547
  "children": [
1551
1548
  {
1552
1549
  "type": "stack",
1553
- "direction": "horizontal",
1554
- "gap": "sm",
1555
- "align": "center",
1556
1550
  "children": [
1557
1551
  {
1558
- "type": "icon",
1559
- "name": "gauge"
1552
+ "name": "gauge",
1553
+ "type": "icon"
1560
1554
  },
1561
1555
  {
1562
- "type": "typography",
1563
1556
  "content": "Token Usage",
1557
+ "type": "typography",
1564
1558
  "variant": "h2"
1565
1559
  },
1566
1560
  {
1567
- "variant": "default",
1561
+ "type": "badge",
1568
1562
  "label": "Normal",
1569
- "type": "badge"
1563
+ "variant": "default"
1570
1564
  }
1571
- ]
1565
+ ],
1566
+ "direction": "horizontal",
1567
+ "align": "center",
1568
+ "gap": "sm"
1572
1569
  },
1573
1570
  {
1574
1571
  "type": "divider"
1575
1572
  },
1576
1573
  {
1577
1574
  "type": "progress-bar",
1578
- "value": "@entity.current",
1579
- "max": "@entity.max"
1575
+ "max": "@entity.max",
1576
+ "value": "@entity.current"
1580
1577
  },
1581
1578
  {
1579
+ "direction": "horizontal",
1582
1580
  "type": "stack",
1581
+ "gap": "md",
1583
1582
  "children": [
1584
1583
  {
1585
- "value": "@entity.current",
1586
1584
  "type": "stat-display",
1587
- "label": "Tokens Used"
1585
+ "label": "Tokens Used",
1586
+ "value": "@entity.current"
1588
1587
  },
1589
1588
  {
1590
1589
  "label": "Max Tokens",
1591
1590
  "type": "stat-display",
1592
1591
  "value": "@entity.max"
1593
1592
  }
1594
- ],
1595
- "direction": "horizontal",
1596
- "gap": "md"
1593
+ ]
1597
1594
  },
1598
1595
  {
1599
- "label": "Reset",
1600
1596
  "variant": "ghost",
1601
1597
  "icon": "rotate-ccw",
1602
1598
  "action": "RESET",
1599
+ "label": "Reset",
1603
1600
  "type": "button"
1604
1601
  }
1605
- ]
1602
+ ],
1603
+ "gap": "lg",
1604
+ "type": "stack",
1605
+ "direction": "vertical"
1606
1606
  }
1607
1607
  ]
1608
1608
  ]
@@ -1633,12 +1633,12 @@
1633
1633
  "children": [
1634
1634
  {
1635
1635
  "gap": "sm",
1636
- "direction": "horizontal",
1637
1636
  "align": "center",
1637
+ "direction": "horizontal",
1638
1638
  "children": [
1639
1639
  {
1640
- "name": "gauge",
1641
- "type": "icon"
1640
+ "type": "icon",
1641
+ "name": "gauge"
1642
1642
  },
1643
1643
  {
1644
1644
  "type": "typography",
@@ -1646,9 +1646,9 @@
1646
1646
  "variant": "h2"
1647
1647
  },
1648
1648
  {
1649
- "variant": "default",
1649
+ "label": "Normal",
1650
1650
  "type": "badge",
1651
- "label": "Normal"
1651
+ "variant": "default"
1652
1652
  }
1653
1653
  ],
1654
1654
  "type": "stack"
@@ -1657,12 +1657,11 @@
1657
1657
  "type": "divider"
1658
1658
  },
1659
1659
  {
1660
- "value": "@entity.current",
1661
1660
  "type": "progress-bar",
1662
- "max": "@entity.max"
1661
+ "max": "@entity.max",
1662
+ "value": "@entity.current"
1663
1663
  },
1664
1664
  {
1665
- "type": "stack",
1666
1665
  "direction": "horizontal",
1667
1666
  "children": [
1668
1667
  {
@@ -1671,19 +1670,20 @@
1671
1670
  "label": "Tokens Used"
1672
1671
  },
1673
1672
  {
1674
- "value": "@entity.max",
1675
1673
  "label": "Max Tokens",
1676
- "type": "stat-display"
1674
+ "type": "stat-display",
1675
+ "value": "@entity.max"
1677
1676
  }
1678
1677
  ],
1678
+ "type": "stack",
1679
1679
  "gap": "md"
1680
1680
  },
1681
1681
  {
1682
- "action": "RESET",
1683
1682
  "type": "button",
1684
1683
  "label": "Reset",
1685
- "icon": "rotate-ccw",
1686
- "variant": "ghost"
1684
+ "variant": "ghost",
1685
+ "action": "RESET",
1686
+ "icon": "rotate-ccw"
1687
1687
  }
1688
1688
  ]
1689
1689
  }
@@ -1704,13 +1704,10 @@
1704
1704
  "render-ui",
1705
1705
  "main",
1706
1706
  {
1707
- "gap": "lg",
1708
1707
  "type": "stack",
1709
- "direction": "vertical",
1708
+ "gap": "lg",
1710
1709
  "children": [
1711
1710
  {
1712
- "direction": "horizontal",
1713
- "type": "stack",
1714
1711
  "align": "center",
1715
1712
  "gap": "sm",
1716
1713
  "children": [
@@ -1719,38 +1716,40 @@
1719
1716
  "type": "icon"
1720
1717
  },
1721
1718
  {
1719
+ "type": "typography",
1722
1720
  "content": "Token Usage",
1723
- "variant": "h2",
1724
- "type": "typography"
1721
+ "variant": "h2"
1725
1722
  },
1726
1723
  {
1727
1724
  "label": "Normal",
1728
1725
  "variant": "default",
1729
1726
  "type": "badge"
1730
1727
  }
1731
- ]
1728
+ ],
1729
+ "type": "stack",
1730
+ "direction": "horizontal"
1732
1731
  },
1733
1732
  {
1734
1733
  "type": "divider"
1735
1734
  },
1736
1735
  {
1737
- "type": "progress-bar",
1738
1736
  "value": "@entity.current",
1739
- "max": "@entity.max"
1737
+ "max": "@entity.max",
1738
+ "type": "progress-bar"
1740
1739
  },
1741
1740
  {
1741
+ "gap": "md",
1742
1742
  "direction": "horizontal",
1743
1743
  "type": "stack",
1744
- "gap": "md",
1745
1744
  "children": [
1746
1745
  {
1747
- "value": "@entity.current",
1748
1746
  "type": "stat-display",
1747
+ "value": "@entity.current",
1749
1748
  "label": "Tokens Used"
1750
1749
  },
1751
1750
  {
1752
- "type": "stat-display",
1753
1751
  "value": "@entity.max",
1752
+ "type": "stat-display",
1754
1753
  "label": "Max Tokens"
1755
1754
  }
1756
1755
  ]
@@ -1758,11 +1757,12 @@
1758
1757
  {
1759
1758
  "type": "button",
1760
1759
  "action": "RESET",
1761
- "icon": "rotate-ccw",
1762
1760
  "label": "Reset",
1763
- "variant": "ghost"
1761
+ "variant": "ghost",
1762
+ "icon": "rotate-ccw"
1764
1763
  }
1765
- ]
1764
+ ],
1765
+ "direction": "vertical"
1766
1766
  }
1767
1767
  ]
1768
1768
  ]
@@ -1969,8 +1969,8 @@
1969
1969
  "AgentContextWindow",
1970
1970
  {
1971
1971
  "emit": {
1972
- "failure": "AgentContextWindowLoadFailed",
1973
- "success": "AgentContextWindowLoaded"
1972
+ "success": "AgentContextWindowLoaded",
1973
+ "failure": "AgentContextWindowLoadFailed"
1974
1974
  }
1975
1975
  }
1976
1976
  ]
@@ -1996,15 +1996,24 @@
1996
1996
  "main",
1997
1997
  {
1998
1998
  "type": "stack",
1999
+ "direction": "vertical",
2000
+ "gap": "lg",
1999
2001
  "children": [
2000
2002
  {
2003
+ "gap": "md",
2004
+ "type": "stack",
2005
+ "justify": "between",
2006
+ "align": "center",
2007
+ "direction": "horizontal",
2001
2008
  "children": [
2002
2009
  {
2010
+ "type": "stack",
2003
2011
  "align": "center",
2012
+ "direction": "horizontal",
2004
2013
  "children": [
2005
2014
  {
2006
- "type": "icon",
2007
- "name": "layers"
2015
+ "name": "layers",
2016
+ "type": "icon"
2008
2017
  },
2009
2018
  {
2010
2019
  "content": "Context Window Alert",
@@ -2012,8 +2021,6 @@
2012
2021
  "variant": "h2"
2013
2022
  }
2014
2023
  ],
2015
- "type": "stack",
2016
- "direction": "horizontal",
2017
2024
  "gap": "md"
2018
2025
  },
2019
2026
  {
@@ -2023,12 +2030,7 @@
2023
2030
  "type": "button",
2024
2031
  "action": "HIDE"
2025
2032
  }
2026
- ],
2027
- "direction": "horizontal",
2028
- "type": "stack",
2029
- "gap": "md",
2030
- "justify": "between",
2031
- "align": "center"
2033
+ ]
2032
2034
  },
2033
2035
  {
2034
2036
  "type": "divider"
@@ -2042,13 +2044,11 @@
2042
2044
  "type": "toast-slot"
2043
2045
  },
2044
2046
  {
2045
- "message": "@entity.message",
2046
2047
  "type": "alert",
2047
- "variant": "warning"
2048
+ "variant": "warning",
2049
+ "message": "@entity.message"
2048
2050
  }
2049
- ],
2050
- "direction": "vertical",
2051
- "gap": "lg"
2051
+ ]
2052
2052
  }
2053
2053
  ]
2054
2054
  ]
@@ -2072,41 +2072,40 @@
2072
2072
  "render-ui",
2073
2073
  "main",
2074
2074
  {
2075
- "type": "stack",
2076
- "direction": "vertical",
2075
+ "gap": "lg",
2077
2076
  "children": [
2078
2077
  {
2079
- "direction": "horizontal",
2080
2078
  "justify": "between",
2081
- "type": "stack",
2082
- "gap": "md",
2083
- "align": "center",
2084
2079
  "children": [
2085
2080
  {
2086
- "gap": "md",
2087
- "direction": "horizontal",
2088
- "align": "center",
2089
- "type": "stack",
2090
2081
  "children": [
2091
2082
  {
2092
- "name": "layers",
2093
- "type": "icon"
2083
+ "type": "icon",
2084
+ "name": "layers"
2094
2085
  },
2095
2086
  {
2096
- "variant": "h2",
2097
2087
  "content": "Context Window Alert",
2098
- "type": "typography"
2088
+ "type": "typography",
2089
+ "variant": "h2"
2099
2090
  }
2100
- ]
2091
+ ],
2092
+ "gap": "md",
2093
+ "direction": "horizontal",
2094
+ "type": "stack",
2095
+ "align": "center"
2101
2096
  },
2102
2097
  {
2103
2098
  "type": "button",
2099
+ "label": "Dismiss",
2104
2100
  "variant": "ghost",
2105
2101
  "icon": "x",
2106
- "label": "Dismiss",
2107
2102
  "action": "HIDE"
2108
2103
  }
2109
- ]
2104
+ ],
2105
+ "align": "center",
2106
+ "type": "stack",
2107
+ "gap": "md",
2108
+ "direction": "horizontal"
2110
2109
  },
2111
2110
  {
2112
2111
  "type": "divider"
@@ -2120,12 +2119,13 @@
2120
2119
  "type": "toast-slot"
2121
2120
  },
2122
2121
  {
2123
- "message": "@entity.message",
2124
2122
  "type": "alert",
2125
- "variant": "warning"
2123
+ "variant": "warning",
2124
+ "message": "@entity.message"
2126
2125
  }
2127
2126
  ],
2128
- "gap": "lg"
2127
+ "direction": "vertical",
2128
+ "type": "stack"
2129
2129
  }
2130
2130
  ]
2131
2131
  ]
@@ -2373,8 +2373,8 @@
2373
2373
  "AgentContextWindow",
2374
2374
  {
2375
2375
  "emit": {
2376
- "failure": "AgentContextWindowLoadFailed",
2377
- "success": "AgentContextWindowLoaded"
2376
+ "success": "AgentContextWindowLoaded",
2377
+ "failure": "AgentContextWindowLoadFailed"
2378
2378
  }
2379
2379
  }
2380
2380
  ],
@@ -2389,8 +2389,8 @@
2389
2389
  "main",
2390
2390
  {
2391
2391
  "icon": "layers",
2392
- "type": "empty-state",
2393
2392
  "title": "Context Window",
2393
+ "type": "empty-state",
2394
2394
  "description": "Context Window is ready"
2395
2395
  }
2396
2396
  ]
@@ -2546,16 +2546,16 @@
2546
2546
  "emit",
2547
2547
  "UPDATE",
2548
2548
  {
2549
- "max": "@entity.maxTokens",
2550
- "current": "@entity.tokenCount"
2549
+ "current": "@entity.tokenCount",
2550
+ "max": "@entity.maxTokens"
2551
2551
  }
2552
2552
  ],
2553
2553
  [
2554
2554
  "emit",
2555
2555
  "SHOW",
2556
2556
  {
2557
- "notificationType": "error",
2558
- "message": "Token usage at limit. Compact required."
2557
+ "message": "Token usage at limit. Compact required.",
2558
+ "notificationType": "error"
2559
2559
  }
2560
2560
  ]
2561
2561
  ]
@@ -2661,8 +2661,8 @@
2661
2661
  "emit",
2662
2662
  "UPDATE",
2663
2663
  {
2664
- "current": "@entity.tokenCount",
2665
- "max": "@entity.maxTokens"
2664
+ "max": "@entity.maxTokens",
2665
+ "current": "@entity.tokenCount"
2666
2666
  }
2667
2667
  ]
2668
2668
  ]