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