@almadar/std 8.3.0 → 8.4.0

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