@almadar/std 8.3.0 → 8.4.1

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 +119 -114
  4. package/behaviors/registry/agent/atoms/std-agent-completion.orb +103 -103
  5. package/behaviors/registry/agent/atoms/std-agent-context-window.orb +413 -404
  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 +146 -141
  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 +119 -114
  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 +413 -404
  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 +146 -141
  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
  ],
@@ -300,65 +300,65 @@
300
300
  "render-ui",
301
301
  "main",
302
302
  {
303
- "gap": "lg",
303
+ "type": "stack",
304
+ "direction": "vertical",
304
305
  "children": [
305
306
  {
307
+ "gap": "sm",
308
+ "type": "stack",
309
+ "direction": "horizontal",
310
+ "align": "center",
306
311
  "children": [
307
312
  {
308
- "type": "icon",
309
- "name": "gauge"
313
+ "name": "gauge",
314
+ "type": "icon"
310
315
  },
311
316
  {
312
- "content": "Token Usage",
313
317
  "variant": "h2",
314
- "type": "typography"
318
+ "type": "typography",
319
+ "content": "Token Usage"
315
320
  },
316
321
  {
317
322
  "label": "Normal",
318
- "type": "badge",
319
- "variant": "default"
323
+ "variant": "default",
324
+ "type": "badge"
320
325
  }
321
- ],
322
- "gap": "sm",
323
- "type": "stack",
324
- "direction": "horizontal",
325
- "align": "center"
326
+ ]
326
327
  },
327
328
  {
328
329
  "type": "divider"
329
330
  },
330
331
  {
331
- "value": "@entity.current",
332
+ "type": "progress-bar",
332
333
  "max": "@entity.max",
333
- "type": "progress-bar"
334
+ "value": "@entity.current"
334
335
  },
335
336
  {
336
- "direction": "horizontal",
337
337
  "type": "stack",
338
338
  "gap": "md",
339
339
  "children": [
340
340
  {
341
+ "value": "@entity.current",
341
342
  "type": "stat-display",
342
- "label": "Tokens Used",
343
- "value": "@entity.current"
343
+ "label": "Tokens Used"
344
344
  },
345
345
  {
346
346
  "value": "@entity.max",
347
347
  "label": "Max Tokens",
348
348
  "type": "stat-display"
349
349
  }
350
- ]
350
+ ],
351
+ "direction": "horizontal"
351
352
  },
352
353
  {
353
- "action": "RESET",
354
354
  "label": "Reset",
355
355
  "type": "button",
356
356
  "icon": "rotate-ccw",
357
+ "action": "RESET",
357
358
  "variant": "ghost"
358
359
  }
359
360
  ],
360
- "type": "stack",
361
- "direction": "vertical"
361
+ "gap": "lg"
362
362
  }
363
363
  ]
364
364
  ]
@@ -386,41 +386,41 @@
386
386
  "render-ui",
387
387
  "main",
388
388
  {
389
- "type": "stack",
390
389
  "children": [
391
390
  {
392
391
  "direction": "horizontal",
392
+ "align": "center",
393
+ "type": "stack",
394
+ "gap": "sm",
393
395
  "children": [
394
396
  {
395
- "type": "icon",
396
- "name": "gauge"
397
+ "name": "gauge",
398
+ "type": "icon"
397
399
  },
398
400
  {
399
- "content": "Token Usage",
400
401
  "type": "typography",
402
+ "content": "Token Usage",
401
403
  "variant": "h2"
402
404
  },
403
405
  {
404
- "variant": "default",
405
406
  "type": "badge",
406
- "label": "Normal"
407
+ "label": "Normal",
408
+ "variant": "default"
407
409
  }
408
- ],
409
- "type": "stack",
410
- "align": "center",
411
- "gap": "sm"
410
+ ]
412
411
  },
413
412
  {
414
413
  "type": "divider"
415
414
  },
416
415
  {
417
- "value": "@entity.current",
418
416
  "type": "progress-bar",
419
- "max": "@entity.max"
417
+ "max": "@entity.max",
418
+ "value": "@entity.current"
420
419
  },
421
420
  {
422
- "gap": "md",
423
421
  "type": "stack",
422
+ "direction": "horizontal",
423
+ "gap": "md",
424
424
  "children": [
425
425
  {
426
426
  "type": "stat-display",
@@ -432,17 +432,17 @@
432
432
  "type": "stat-display",
433
433
  "value": "@entity.max"
434
434
  }
435
- ],
436
- "direction": "horizontal"
435
+ ]
437
436
  },
438
437
  {
439
438
  "variant": "ghost",
440
- "type": "button",
441
- "action": "RESET",
442
439
  "icon": "rotate-ccw",
443
- "label": "Reset"
440
+ "action": "RESET",
441
+ "label": "Reset",
442
+ "type": "button"
444
443
  }
445
444
  ],
445
+ "type": "stack",
446
446
  "gap": "lg",
447
447
  "direction": "vertical"
448
448
  }
@@ -484,12 +484,12 @@
484
484
  "render-ui",
485
485
  "main",
486
486
  {
487
+ "type": "stack",
488
+ "gap": "lg",
487
489
  "children": [
488
490
  {
489
- "direction": "horizontal",
490
- "align": "center",
491
- "gap": "sm",
492
491
  "type": "stack",
492
+ "align": "center",
493
493
  "children": [
494
494
  {
495
495
  "name": "alert-triangle",
@@ -497,31 +497,32 @@
497
497
  },
498
498
  {
499
499
  "type": "typography",
500
- "content": "Token Usage",
501
- "variant": "h2"
500
+ "variant": "h2",
501
+ "content": "Token Usage"
502
502
  },
503
503
  {
504
- "label": "Warning",
504
+ "variant": "warning",
505
505
  "type": "badge",
506
- "variant": "warning"
506
+ "label": "Warning"
507
507
  }
508
- ]
508
+ ],
509
+ "gap": "sm",
510
+ "direction": "horizontal"
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
  {
519
521
  "value": "@entity.current",
520
- "max": "@entity.max",
521
- "type": "progress-bar"
522
+ "type": "progress-bar",
523
+ "max": "@entity.max"
522
524
  },
523
525
  {
524
- "gap": "md",
525
526
  "children": [
526
527
  {
527
528
  "type": "stat-display",
@@ -530,37 +531,36 @@
530
531
  },
531
532
  {
532
533
  "type": "stat-display",
533
- "value": "@entity.max",
534
- "label": "Max Tokens"
534
+ "label": "Max Tokens",
535
+ "value": "@entity.max"
535
536
  }
536
537
  ],
538
+ "gap": "md",
537
539
  "type": "stack",
538
540
  "direction": "horizontal"
539
541
  },
540
542
  {
543
+ "type": "stack",
541
544
  "direction": "horizontal",
542
545
  "children": [
543
546
  {
544
- "type": "button",
545
547
  "label": "Compact",
546
548
  "action": "COMPACT",
547
549
  "icon": "minimize-2",
550
+ "type": "button",
548
551
  "variant": "primary"
549
552
  },
550
553
  {
551
- "icon": "rotate-ccw",
552
- "action": "RESET",
553
- "type": "button",
554
554
  "label": "Reset",
555
- "variant": "ghost"
555
+ "action": "RESET",
556
+ "variant": "ghost",
557
+ "icon": "rotate-ccw",
558
+ "type": "button"
556
559
  }
557
560
  ],
558
- "type": "stack",
559
561
  "gap": "sm"
560
562
  }
561
563
  ],
562
- "gap": "lg",
563
- "type": "stack",
564
564
  "direction": "vertical"
565
565
  }
566
566
  ]
@@ -589,84 +589,84 @@
589
589
  "render-ui",
590
590
  "main",
591
591
  {
592
- "gap": "lg",
593
592
  "direction": "vertical",
593
+ "type": "stack",
594
594
  "children": [
595
595
  {
596
+ "direction": "horizontal",
597
+ "gap": "sm",
598
+ "align": "center",
599
+ "type": "stack",
596
600
  "children": [
597
601
  {
598
602
  "type": "icon",
599
603
  "name": "alert-octagon"
600
604
  },
601
605
  {
602
- "content": "Token Usage",
603
606
  "variant": "h2",
607
+ "content": "Token Usage",
604
608
  "type": "typography"
605
609
  },
606
610
  {
607
611
  "label": "Critical",
608
- "variant": "danger",
609
- "type": "badge"
612
+ "type": "badge",
613
+ "variant": "danger"
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
+ "message": "Token usage critical. Compact immediately to avoid truncation.",
621
622
  "type": "alert",
622
- "variant": "error",
623
- "message": "Token usage critical. Compact immediately to avoid truncation."
623
+ "variant": "error"
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
631
  "direction": "horizontal",
632
- "type": "stack",
633
632
  "gap": "md",
633
+ "type": "stack",
634
634
  "children": [
635
635
  {
636
- "type": "stat-display",
637
636
  "label": "Tokens Used",
637
+ "type": "stat-display",
638
638
  "value": "@entity.current"
639
639
  },
640
640
  {
641
+ "label": "Max Tokens",
641
642
  "value": "@entity.max",
642
- "type": "stat-display",
643
- "label": "Max Tokens"
643
+ "type": "stat-display"
644
644
  }
645
645
  ]
646
646
  },
647
647
  {
648
- "gap": "sm",
649
648
  "type": "stack",
650
649
  "children": [
651
650
  {
652
- "variant": "primary",
653
- "icon": "minimize-2",
651
+ "action": "COMPACT",
654
652
  "type": "button",
655
653
  "label": "Compact Now",
656
- "action": "COMPACT"
654
+ "variant": "primary",
655
+ "icon": "minimize-2"
657
656
  },
658
657
  {
659
- "type": "button",
658
+ "label": "Reset",
660
659
  "icon": "rotate-ccw",
661
- "variant": "ghost",
660
+ "type": "button",
662
661
  "action": "RESET",
663
- "label": "Reset"
662
+ "variant": "ghost"
664
663
  }
665
664
  ],
666
- "direction": "horizontal"
665
+ "direction": "horizontal",
666
+ "gap": "sm"
667
667
  }
668
668
  ],
669
- "type": "stack"
669
+ "gap": "lg"
670
670
  }
671
671
  ]
672
672
  ]
@@ -691,13 +691,15 @@
691
691
  "render-ui",
692
692
  "main",
693
693
  {
694
+ "type": "stack",
695
+ "direction": "vertical",
694
696
  "children": [
695
697
  {
696
- "type": "stack",
698
+ "align": "center",
697
699
  "children": [
698
700
  {
699
- "type": "icon",
700
- "name": "gauge"
701
+ "name": "gauge",
702
+ "type": "icon"
701
703
  },
702
704
  {
703
705
  "variant": "h2",
@@ -705,51 +707,49 @@
705
707
  "content": "Token Usage"
706
708
  },
707
709
  {
708
- "type": "badge",
709
710
  "label": "Normal",
710
- "variant": "default"
711
+ "variant": "default",
712
+ "type": "badge"
711
713
  }
712
714
  ],
713
715
  "direction": "horizontal",
714
- "align": "center",
716
+ "type": "stack",
715
717
  "gap": "sm"
716
718
  },
717
719
  {
718
720
  "type": "divider"
719
721
  },
720
722
  {
721
- "max": "@entity.max",
722
723
  "type": "progress-bar",
724
+ "max": "@entity.max",
723
725
  "value": "@entity.current"
724
726
  },
725
727
  {
726
728
  "type": "stack",
727
- "direction": "horizontal",
728
729
  "gap": "md",
729
730
  "children": [
730
731
  {
731
- "label": "Tokens Used",
732
732
  "value": "@entity.current",
733
- "type": "stat-display"
733
+ "type": "stat-display",
734
+ "label": "Tokens Used"
734
735
  },
735
736
  {
736
- "type": "stat-display",
737
+ "label": "Max Tokens",
737
738
  "value": "@entity.max",
738
- "label": "Max Tokens"
739
+ "type": "stat-display"
739
740
  }
740
- ]
741
+ ],
742
+ "direction": "horizontal"
741
743
  },
742
744
  {
743
- "variant": "ghost",
744
745
  "action": "RESET",
745
- "type": "button",
746
746
  "label": "Reset",
747
- "icon": "rotate-ccw"
747
+ "icon": "rotate-ccw",
748
+ "type": "button",
749
+ "variant": "ghost"
748
750
  }
749
751
  ],
750
- "direction": "vertical",
751
- "gap": "lg",
752
- "type": "stack"
752
+ "gap": "lg"
753
753
  }
754
754
  ]
755
755
  ]
@@ -768,28 +768,31 @@
768
768
  "render-ui",
769
769
  "main",
770
770
  {
771
+ "gap": "lg",
772
+ "type": "stack",
773
+ "direction": "vertical",
771
774
  "children": [
772
775
  {
776
+ "direction": "horizontal",
777
+ "align": "center",
778
+ "gap": "sm",
773
779
  "children": [
774
780
  {
775
- "name": "gauge",
776
- "type": "icon"
781
+ "type": "icon",
782
+ "name": "gauge"
777
783
  },
778
784
  {
779
785
  "variant": "h2",
780
- "type": "typography",
781
- "content": "Token Usage"
786
+ "content": "Token Usage",
787
+ "type": "typography"
782
788
  },
783
789
  {
790
+ "label": "Normal",
784
791
  "variant": "default",
785
- "type": "badge",
786
- "label": "Normal"
792
+ "type": "badge"
787
793
  }
788
794
  ],
789
- "gap": "sm",
790
- "type": "stack",
791
- "align": "center",
792
- "direction": "horizontal"
795
+ "type": "stack"
793
796
  },
794
797
  {
795
798
  "type": "divider"
@@ -800,33 +803,30 @@
800
803
  "max": "@entity.max"
801
804
  },
802
805
  {
803
- "gap": "md",
804
806
  "type": "stack",
807
+ "gap": "md",
805
808
  "children": [
806
809
  {
807
- "label": "Tokens Used",
810
+ "value": "@entity.current",
808
811
  "type": "stat-display",
809
- "value": "@entity.current"
812
+ "label": "Tokens Used"
810
813
  },
811
814
  {
812
815
  "type": "stat-display",
813
- "value": "@entity.max",
814
- "label": "Max Tokens"
816
+ "label": "Max Tokens",
817
+ "value": "@entity.max"
815
818
  }
816
819
  ],
817
820
  "direction": "horizontal"
818
821
  },
819
822
  {
820
- "label": "Reset",
821
823
  "action": "RESET",
822
- "type": "button",
823
824
  "icon": "rotate-ccw",
825
+ "type": "button",
826
+ "label": "Reset",
824
827
  "variant": "ghost"
825
828
  }
826
- ],
827
- "direction": "vertical",
828
- "type": "stack",
829
- "gap": "lg"
829
+ ]
830
830
  }
831
831
  ]
832
832
  ]
@@ -867,13 +867,14 @@
867
867
  "main",
868
868
  {
869
869
  "type": "stack",
870
+ "gap": "lg",
871
+ "direction": "vertical",
870
872
  "children": [
871
873
  {
872
- "type": "stack",
873
874
  "children": [
874
875
  {
875
- "name": "alert-triangle",
876
- "type": "icon"
876
+ "type": "icon",
877
+ "name": "alert-triangle"
877
878
  },
878
879
  {
879
880
  "content": "Token Usage",
@@ -882,68 +883,67 @@
882
883
  },
883
884
  {
884
885
  "type": "badge",
885
- "label": "Warning",
886
- "variant": "warning"
886
+ "variant": "warning",
887
+ "label": "Warning"
887
888
  }
888
889
  ],
889
- "align": "center",
890
890
  "direction": "horizontal",
891
- "gap": "sm"
891
+ "align": "center",
892
+ "gap": "sm",
893
+ "type": "stack"
892
894
  },
893
895
  {
894
896
  "type": "divider"
895
897
  },
896
898
  {
897
899
  "message": "Token usage approaching limit. Consider compacting.",
898
- "variant": "warning",
899
- "type": "alert"
900
+ "type": "alert",
901
+ "variant": "warning"
900
902
  },
901
903
  {
904
+ "max": "@entity.max",
902
905
  "value": "@entity.current",
903
- "type": "progress-bar",
904
- "max": "@entity.max"
906
+ "type": "progress-bar"
905
907
  },
906
908
  {
907
- "gap": "md",
908
- "direction": "horizontal",
909
- "type": "stack",
910
909
  "children": [
911
910
  {
912
- "value": "@entity.current",
911
+ "type": "stat-display",
913
912
  "label": "Tokens Used",
914
- "type": "stat-display"
913
+ "value": "@entity.current"
915
914
  },
916
915
  {
917
- "type": "stat-display",
918
916
  "label": "Max Tokens",
919
- "value": "@entity.max"
917
+ "value": "@entity.max",
918
+ "type": "stat-display"
920
919
  }
921
- ]
920
+ ],
921
+ "type": "stack",
922
+ "direction": "horizontal",
923
+ "gap": "md"
922
924
  },
923
925
  {
926
+ "type": "stack",
924
927
  "direction": "horizontal",
928
+ "gap": "sm",
925
929
  "children": [
926
930
  {
927
- "icon": "minimize-2",
928
- "action": "COMPACT",
929
- "label": "Compact",
930
931
  "type": "button",
931
- "variant": "primary"
932
+ "label": "Compact",
933
+ "action": "COMPACT",
934
+ "variant": "primary",
935
+ "icon": "minimize-2"
932
936
  },
933
937
  {
938
+ "label": "Reset",
934
939
  "icon": "rotate-ccw",
935
- "action": "RESET",
936
- "variant": "ghost",
937
940
  "type": "button",
938
- "label": "Reset"
941
+ "action": "RESET",
942
+ "variant": "ghost"
939
943
  }
940
- ],
941
- "type": "stack",
942
- "gap": "sm"
944
+ ]
943
945
  }
944
- ],
945
- "gap": "lg",
946
- "direction": "vertical"
946
+ ]
947
947
  }
948
948
  ]
949
949
  ]
@@ -972,20 +972,21 @@
972
972
  "main",
973
973
  {
974
974
  "type": "stack",
975
+ "gap": "lg",
975
976
  "children": [
976
977
  {
977
- "type": "stack",
978
978
  "direction": "horizontal",
979
+ "align": "center",
979
980
  "gap": "sm",
980
981
  "children": [
981
982
  {
982
- "name": "alert-octagon",
983
- "type": "icon"
983
+ "type": "icon",
984
+ "name": "alert-octagon"
984
985
  },
985
986
  {
986
- "type": "typography",
987
+ "variant": "h2",
987
988
  "content": "Token Usage",
988
- "variant": "h2"
989
+ "type": "typography"
989
990
  },
990
991
  {
991
992
  "type": "badge",
@@ -993,29 +994,28 @@
993
994
  "variant": "danger"
994
995
  }
995
996
  ],
996
- "align": "center"
997
+ "type": "stack"
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
  {
1008
+ "max": "@entity.max",
1007
1009
  "type": "progress-bar",
1008
- "value": "@entity.current",
1009
- "max": "@entity.max"
1010
+ "value": "@entity.current"
1010
1011
  },
1011
1012
  {
1012
1013
  "gap": "md",
1013
- "type": "stack",
1014
1014
  "children": [
1015
1015
  {
1016
1016
  "label": "Tokens Used",
1017
- "value": "@entity.current",
1018
- "type": "stat-display"
1017
+ "type": "stat-display",
1018
+ "value": "@entity.current"
1019
1019
  },
1020
1020
  {
1021
1021
  "value": "@entity.max",
@@ -1023,32 +1023,32 @@
1023
1023
  "type": "stat-display"
1024
1024
  }
1025
1025
  ],
1026
- "direction": "horizontal"
1026
+ "direction": "horizontal",
1027
+ "type": "stack"
1027
1028
  },
1028
1029
  {
1029
- "direction": "horizontal",
1030
- "gap": "sm",
1031
- "type": "stack",
1032
1030
  "children": [
1033
1031
  {
1034
1032
  "variant": "primary",
1033
+ "type": "button",
1035
1034
  "action": "COMPACT",
1036
1035
  "label": "Compact Now",
1037
- "type": "button",
1038
1036
  "icon": "minimize-2"
1039
1037
  },
1040
1038
  {
1039
+ "type": "button",
1041
1040
  "action": "RESET",
1042
1041
  "label": "Reset",
1043
1042
  "icon": "rotate-ccw",
1044
- "type": "button",
1045
1043
  "variant": "ghost"
1046
1044
  }
1047
- ]
1045
+ ],
1046
+ "direction": "horizontal",
1047
+ "type": "stack",
1048
+ "gap": "sm"
1048
1049
  }
1049
1050
  ],
1050
- "direction": "vertical",
1051
- "gap": "lg"
1051
+ "direction": "vertical"
1052
1052
  }
1053
1053
  ]
1054
1054
  ]
@@ -1076,21 +1076,22 @@
1076
1076
  "render-ui",
1077
1077
  "main",
1078
1078
  {
1079
+ "gap": "lg",
1079
1080
  "children": [
1080
1081
  {
1081
- "type": "stack",
1082
- "gap": "sm",
1083
1082
  "direction": "horizontal",
1083
+ "gap": "sm",
1084
+ "type": "stack",
1084
1085
  "align": "center",
1085
1086
  "children": [
1086
1087
  {
1087
- "type": "icon",
1088
- "name": "gauge"
1088
+ "name": "gauge",
1089
+ "type": "icon"
1089
1090
  },
1090
1091
  {
1091
1092
  "variant": "h2",
1092
- "type": "typography",
1093
- "content": "Token Usage"
1093
+ "content": "Token Usage",
1094
+ "type": "typography"
1094
1095
  },
1095
1096
  {
1096
1097
  "type": "badge",
@@ -1103,37 +1104,36 @@
1103
1104
  "type": "divider"
1104
1105
  },
1105
1106
  {
1106
- "max": "@entity.max",
1107
1107
  "type": "progress-bar",
1108
+ "max": "@entity.max",
1108
1109
  "value": "@entity.current"
1109
1110
  },
1110
1111
  {
1111
- "type": "stack",
1112
- "gap": "md",
1112
+ "direction": "horizontal",
1113
1113
  "children": [
1114
1114
  {
1115
- "label": "Tokens Used",
1115
+ "type": "stat-display",
1116
1116
  "value": "@entity.current",
1117
- "type": "stat-display"
1117
+ "label": "Tokens Used"
1118
1118
  },
1119
1119
  {
1120
- "type": "stat-display",
1121
1120
  "value": "@entity.max",
1122
- "label": "Max Tokens"
1121
+ "label": "Max Tokens",
1122
+ "type": "stat-display"
1123
1123
  }
1124
1124
  ],
1125
- "direction": "horizontal"
1125
+ "type": "stack",
1126
+ "gap": "md"
1126
1127
  },
1127
1128
  {
1129
+ "label": "Reset",
1128
1130
  "icon": "rotate-ccw",
1129
- "type": "button",
1130
1131
  "variant": "ghost",
1131
- "label": "Reset",
1132
+ "type": "button",
1132
1133
  "action": "RESET"
1133
1134
  }
1134
1135
  ],
1135
1136
  "direction": "vertical",
1136
- "gap": "lg",
1137
1137
  "type": "stack"
1138
1138
  }
1139
1139
  ]
@@ -1159,41 +1159,42 @@
1159
1159
  "render-ui",
1160
1160
  "main",
1161
1161
  {
1162
+ "type": "stack",
1163
+ "direction": "vertical",
1164
+ "gap": "lg",
1162
1165
  "children": [
1163
1166
  {
1167
+ "direction": "horizontal",
1168
+ "align": "center",
1164
1169
  "children": [
1165
1170
  {
1166
1171
  "name": "gauge",
1167
1172
  "type": "icon"
1168
1173
  },
1169
1174
  {
1175
+ "content": "Token Usage",
1170
1176
  "variant": "h2",
1171
- "type": "typography",
1172
- "content": "Token Usage"
1177
+ "type": "typography"
1173
1178
  },
1174
1179
  {
1180
+ "type": "badge",
1175
1181
  "variant": "default",
1176
- "label": "Normal",
1177
- "type": "badge"
1182
+ "label": "Normal"
1178
1183
  }
1179
1184
  ],
1180
- "align": "center",
1181
- "direction": "horizontal",
1182
- "gap": "sm",
1183
- "type": "stack"
1185
+ "type": "stack",
1186
+ "gap": "sm"
1184
1187
  },
1185
1188
  {
1186
1189
  "type": "divider"
1187
1190
  },
1188
1191
  {
1189
1192
  "max": "@entity.max",
1190
- "type": "progress-bar",
1191
- "value": "@entity.current"
1193
+ "value": "@entity.current",
1194
+ "type": "progress-bar"
1192
1195
  },
1193
1196
  {
1194
1197
  "type": "stack",
1195
- "direction": "horizontal",
1196
- "gap": "md",
1197
1198
  "children": [
1198
1199
  {
1199
1200
  "type": "stat-display",
@@ -1201,23 +1202,22 @@
1201
1202
  "value": "@entity.current"
1202
1203
  },
1203
1204
  {
1204
- "type": "stat-display",
1205
1205
  "label": "Max Tokens",
1206
- "value": "@entity.max"
1206
+ "value": "@entity.max",
1207
+ "type": "stat-display"
1207
1208
  }
1208
- ]
1209
+ ],
1210
+ "gap": "md",
1211
+ "direction": "horizontal"
1209
1212
  },
1210
1213
  {
1211
- "type": "button",
1212
- "label": "Reset",
1213
- "action": "RESET",
1214
+ "variant": "ghost",
1214
1215
  "icon": "rotate-ccw",
1215
- "variant": "ghost"
1216
+ "label": "Reset",
1217
+ "type": "button",
1218
+ "action": "RESET"
1216
1219
  }
1217
- ],
1218
- "gap": "lg",
1219
- "type": "stack",
1220
- "direction": "vertical"
1220
+ ]
1221
1221
  }
1222
1222
  ]
1223
1223
  ]
@@ -1236,17 +1236,20 @@
1236
1236
  "render-ui",
1237
1237
  "main",
1238
1238
  {
1239
+ "gap": "lg",
1239
1240
  "type": "stack",
1241
+ "direction": "vertical",
1240
1242
  "children": [
1241
1243
  {
1244
+ "direction": "horizontal",
1242
1245
  "children": [
1243
1246
  {
1244
- "name": "gauge",
1245
- "type": "icon"
1247
+ "type": "icon",
1248
+ "name": "gauge"
1246
1249
  },
1247
1250
  {
1248
- "type": "typography",
1249
1251
  "content": "Token Usage",
1252
+ "type": "typography",
1250
1253
  "variant": "h2"
1251
1254
  },
1252
1255
  {
@@ -1255,46 +1258,43 @@
1255
1258
  "type": "badge"
1256
1259
  }
1257
1260
  ],
1258
- "gap": "sm",
1259
- "align": "center",
1260
1261
  "type": "stack",
1261
- "direction": "horizontal"
1262
+ "align": "center",
1263
+ "gap": "sm"
1262
1264
  },
1263
1265
  {
1264
1266
  "type": "divider"
1265
1267
  },
1266
1268
  {
1267
- "type": "progress-bar",
1269
+ "max": "@entity.max",
1268
1270
  "value": "@entity.current",
1269
- "max": "@entity.max"
1271
+ "type": "progress-bar"
1270
1272
  },
1271
1273
  {
1272
- "direction": "horizontal",
1274
+ "gap": "md",
1273
1275
  "children": [
1274
1276
  {
1275
1277
  "label": "Tokens Used",
1276
- "value": "@entity.current",
1277
- "type": "stat-display"
1278
+ "type": "stat-display",
1279
+ "value": "@entity.current"
1278
1280
  },
1279
1281
  {
1282
+ "value": "@entity.max",
1280
1283
  "type": "stat-display",
1281
- "label": "Max Tokens",
1282
- "value": "@entity.max"
1284
+ "label": "Max Tokens"
1283
1285
  }
1284
1286
  ],
1285
1287
  "type": "stack",
1286
- "gap": "md"
1288
+ "direction": "horizontal"
1287
1289
  },
1288
1290
  {
1289
- "variant": "ghost",
1290
- "action": "RESET",
1291
- "icon": "rotate-ccw",
1291
+ "label": "Reset",
1292
1292
  "type": "button",
1293
- "label": "Reset"
1293
+ "action": "RESET",
1294
+ "variant": "ghost",
1295
+ "icon": "rotate-ccw"
1294
1296
  }
1295
- ],
1296
- "gap": "lg",
1297
- "direction": "vertical"
1297
+ ]
1298
1298
  }
1299
1299
  ]
1300
1300
  ]
@@ -1322,16 +1322,16 @@
1322
1322
  "render-ui",
1323
1323
  "main",
1324
1324
  {
1325
- "gap": "lg",
1326
- "type": "stack",
1327
1325
  "direction": "vertical",
1328
1326
  "children": [
1329
1327
  {
1328
+ "direction": "horizontal",
1330
1329
  "align": "center",
1330
+ "gap": "sm",
1331
1331
  "children": [
1332
1332
  {
1333
- "type": "icon",
1334
- "name": "alert-octagon"
1333
+ "name": "alert-octagon",
1334
+ "type": "icon"
1335
1335
  },
1336
1336
  {
1337
1337
  "variant": "h2",
@@ -1344,62 +1344,62 @@
1344
1344
  "label": "Critical"
1345
1345
  }
1346
1346
  ],
1347
- "type": "stack",
1348
- "direction": "horizontal",
1349
- "gap": "sm"
1347
+ "type": "stack"
1350
1348
  },
1351
1349
  {
1352
1350
  "type": "divider"
1353
1351
  },
1354
1352
  {
1355
1353
  "type": "alert",
1356
- "variant": "error",
1357
- "message": "Token usage critical. Compact immediately to avoid truncation."
1354
+ "message": "Token usage critical. Compact immediately to avoid truncation.",
1355
+ "variant": "error"
1358
1356
  },
1359
1357
  {
1358
+ "type": "progress-bar",
1360
1359
  "max": "@entity.max",
1361
- "value": "@entity.current",
1362
- "type": "progress-bar"
1360
+ "value": "@entity.current"
1363
1361
  },
1364
1362
  {
1363
+ "direction": "horizontal",
1364
+ "type": "stack",
1365
+ "gap": "md",
1365
1366
  "children": [
1366
1367
  {
1367
- "type": "stat-display",
1368
+ "value": "@entity.current",
1368
1369
  "label": "Tokens Used",
1369
- "value": "@entity.current"
1370
+ "type": "stat-display"
1370
1371
  },
1371
1372
  {
1372
- "label": "Max Tokens",
1373
1373
  "value": "@entity.max",
1374
- "type": "stat-display"
1374
+ "type": "stat-display",
1375
+ "label": "Max Tokens"
1375
1376
  }
1376
- ],
1377
- "gap": "md",
1378
- "direction": "horizontal",
1379
- "type": "stack"
1377
+ ]
1380
1378
  },
1381
1379
  {
1382
1380
  "type": "stack",
1383
1381
  "direction": "horizontal",
1384
1382
  "children": [
1385
1383
  {
1386
- "type": "button",
1387
- "label": "Compact Now",
1388
- "action": "COMPACT",
1384
+ "variant": "primary",
1389
1385
  "icon": "minimize-2",
1390
- "variant": "primary"
1386
+ "action": "COMPACT",
1387
+ "type": "button",
1388
+ "label": "Compact Now"
1391
1389
  },
1392
1390
  {
1393
- "label": "Reset",
1394
- "type": "button",
1395
1391
  "variant": "ghost",
1392
+ "action": "RESET",
1396
1393
  "icon": "rotate-ccw",
1397
- "action": "RESET"
1394
+ "type": "button",
1395
+ "label": "Reset"
1398
1396
  }
1399
1397
  ],
1400
1398
  "gap": "sm"
1401
1399
  }
1402
- ]
1400
+ ],
1401
+ "gap": "lg",
1402
+ "type": "stack"
1403
1403
  }
1404
1404
  ]
1405
1405
  ]
@@ -1439,52 +1439,52 @@
1439
1439
  "render-ui",
1440
1440
  "main",
1441
1441
  {
1442
- "type": "stack",
1442
+ "direction": "vertical",
1443
1443
  "gap": "lg",
1444
+ "type": "stack",
1444
1445
  "children": [
1445
1446
  {
1447
+ "gap": "sm",
1448
+ "direction": "horizontal",
1446
1449
  "type": "stack",
1450
+ "align": "center",
1447
1451
  "children": [
1448
1452
  {
1449
1453
  "name": "alert-triangle",
1450
1454
  "type": "icon"
1451
1455
  },
1452
1456
  {
1453
- "variant": "h2",
1454
1457
  "content": "Token Usage",
1458
+ "variant": "h2",
1455
1459
  "type": "typography"
1456
1460
  },
1457
1461
  {
1458
1462
  "type": "badge",
1459
- "variant": "warning",
1460
- "label": "Warning"
1463
+ "label": "Warning",
1464
+ "variant": "warning"
1461
1465
  }
1462
- ],
1463
- "direction": "horizontal",
1464
- "align": "center",
1465
- "gap": "sm"
1466
+ ]
1466
1467
  },
1467
1468
  {
1468
1469
  "type": "divider"
1469
1470
  },
1470
1471
  {
1472
+ "variant": "warning",
1471
1473
  "type": "alert",
1472
- "message": "Token usage approaching limit. Consider compacting.",
1473
- "variant": "warning"
1474
+ "message": "Token usage approaching limit. Consider compacting."
1474
1475
  },
1475
1476
  {
1476
- "max": "@entity.max",
1477
1477
  "type": "progress-bar",
1478
- "value": "@entity.current"
1478
+ "value": "@entity.current",
1479
+ "max": "@entity.max"
1479
1480
  },
1480
1481
  {
1481
1482
  "type": "stack",
1482
- "direction": "horizontal",
1483
1483
  "children": [
1484
1484
  {
1485
+ "value": "@entity.current",
1485
1486
  "type": "stat-display",
1486
- "label": "Tokens Used",
1487
- "value": "@entity.current"
1487
+ "label": "Tokens Used"
1488
1488
  },
1489
1489
  {
1490
1490
  "type": "stat-display",
@@ -1492,31 +1492,31 @@
1492
1492
  "value": "@entity.max"
1493
1493
  }
1494
1494
  ],
1495
+ "direction": "horizontal",
1495
1496
  "gap": "md"
1496
1497
  },
1497
1498
  {
1498
- "gap": "sm",
1499
+ "type": "stack",
1500
+ "direction": "horizontal",
1499
1501
  "children": [
1500
1502
  {
1501
- "label": "Compact",
1502
1503
  "type": "button",
1503
- "action": "COMPACT",
1504
+ "label": "Compact",
1505
+ "icon": "minimize-2",
1504
1506
  "variant": "primary",
1505
- "icon": "minimize-2"
1507
+ "action": "COMPACT"
1506
1508
  },
1507
1509
  {
1508
- "action": "RESET",
1509
- "label": "Reset",
1510
1510
  "type": "button",
1511
+ "action": "RESET",
1512
+ "variant": "ghost",
1511
1513
  "icon": "rotate-ccw",
1512
- "variant": "ghost"
1514
+ "label": "Reset"
1513
1515
  }
1514
1516
  ],
1515
- "direction": "horizontal",
1516
- "type": "stack"
1517
+ "gap": "sm"
1517
1518
  }
1518
- ],
1519
- "direction": "vertical"
1519
+ ]
1520
1520
  }
1521
1521
  ]
1522
1522
  ]
@@ -1544,65 +1544,65 @@
1544
1544
  "render-ui",
1545
1545
  "main",
1546
1546
  {
1547
- "gap": "lg",
1548
1547
  "direction": "vertical",
1548
+ "gap": "lg",
1549
+ "type": "stack",
1549
1550
  "children": [
1550
1551
  {
1551
- "type": "stack",
1552
- "direction": "horizontal",
1553
1552
  "align": "center",
1554
- "gap": "sm",
1555
1553
  "children": [
1556
1554
  {
1557
1555
  "type": "icon",
1558
1556
  "name": "gauge"
1559
1557
  },
1560
1558
  {
1559
+ "type": "typography",
1561
1560
  "content": "Token Usage",
1562
- "variant": "h2",
1563
- "type": "typography"
1561
+ "variant": "h2"
1564
1562
  },
1565
1563
  {
1566
- "variant": "default",
1567
1564
  "type": "badge",
1565
+ "variant": "default",
1568
1566
  "label": "Normal"
1569
1567
  }
1570
- ]
1568
+ ],
1569
+ "gap": "sm",
1570
+ "type": "stack",
1571
+ "direction": "horizontal"
1571
1572
  },
1572
1573
  {
1573
1574
  "type": "divider"
1574
1575
  },
1575
1576
  {
1576
- "type": "progress-bar",
1577
1577
  "value": "@entity.current",
1578
- "max": "@entity.max"
1578
+ "max": "@entity.max",
1579
+ "type": "progress-bar"
1579
1580
  },
1580
1581
  {
1581
- "gap": "md",
1582
+ "type": "stack",
1582
1583
  "children": [
1583
1584
  {
1584
- "type": "stat-display",
1585
1585
  "label": "Tokens Used",
1586
+ "type": "stat-display",
1586
1587
  "value": "@entity.current"
1587
1588
  },
1588
1589
  {
1589
1590
  "type": "stat-display",
1590
- "label": "Max Tokens",
1591
- "value": "@entity.max"
1591
+ "value": "@entity.max",
1592
+ "label": "Max Tokens"
1592
1593
  }
1593
1594
  ],
1594
- "type": "stack",
1595
- "direction": "horizontal"
1595
+ "direction": "horizontal",
1596
+ "gap": "md"
1596
1597
  },
1597
1598
  {
1598
- "label": "Reset",
1599
1599
  "variant": "ghost",
1600
- "action": "RESET",
1601
1600
  "icon": "rotate-ccw",
1602
- "type": "button"
1601
+ "type": "button",
1602
+ "label": "Reset",
1603
+ "action": "RESET"
1603
1604
  }
1604
- ],
1605
- "type": "stack"
1605
+ ]
1606
1606
  }
1607
1607
  ]
1608
1608
  ]
@@ -1627,65 +1627,65 @@
1627
1627
  "render-ui",
1628
1628
  "main",
1629
1629
  {
1630
+ "gap": "lg",
1630
1631
  "children": [
1631
1632
  {
1632
- "direction": "horizontal",
1633
- "align": "center",
1634
- "type": "stack",
1635
1633
  "gap": "sm",
1634
+ "type": "stack",
1635
+ "align": "center",
1636
1636
  "children": [
1637
1637
  {
1638
- "type": "icon",
1639
- "name": "gauge"
1638
+ "name": "gauge",
1639
+ "type": "icon"
1640
1640
  },
1641
1641
  {
1642
- "content": "Token Usage",
1643
1642
  "variant": "h2",
1644
- "type": "typography"
1643
+ "type": "typography",
1644
+ "content": "Token Usage"
1645
1645
  },
1646
1646
  {
1647
+ "label": "Normal",
1647
1648
  "type": "badge",
1648
- "variant": "default",
1649
- "label": "Normal"
1649
+ "variant": "default"
1650
1650
  }
1651
- ]
1651
+ ],
1652
+ "direction": "horizontal"
1652
1653
  },
1653
1654
  {
1654
1655
  "type": "divider"
1655
1656
  },
1656
1657
  {
1657
- "type": "progress-bar",
1658
+ "value": "@entity.current",
1658
1659
  "max": "@entity.max",
1659
- "value": "@entity.current"
1660
+ "type": "progress-bar"
1660
1661
  },
1661
1662
  {
1662
1663
  "type": "stack",
1663
- "direction": "horizontal",
1664
1664
  "children": [
1665
1665
  {
1666
- "value": "@entity.current",
1666
+ "type": "stat-display",
1667
1667
  "label": "Tokens Used",
1668
- "type": "stat-display"
1668
+ "value": "@entity.current"
1669
1669
  },
1670
1670
  {
1671
- "type": "stat-display",
1672
1671
  "label": "Max Tokens",
1673
- "value": "@entity.max"
1672
+ "value": "@entity.max",
1673
+ "type": "stat-display"
1674
1674
  }
1675
1675
  ],
1676
- "gap": "md"
1676
+ "gap": "md",
1677
+ "direction": "horizontal"
1677
1678
  },
1678
1679
  {
1679
- "action": "RESET",
1680
1680
  "type": "button",
1681
- "label": "Reset",
1682
1681
  "variant": "ghost",
1683
- "icon": "rotate-ccw"
1682
+ "label": "Reset",
1683
+ "icon": "rotate-ccw",
1684
+ "action": "RESET"
1684
1685
  }
1685
1686
  ],
1686
- "gap": "lg",
1687
- "type": "stack",
1688
- "direction": "vertical"
1687
+ "direction": "vertical",
1688
+ "type": "stack"
1689
1689
  }
1690
1690
  ]
1691
1691
  ]
@@ -1704,65 +1704,65 @@
1704
1704
  "render-ui",
1705
1705
  "main",
1706
1706
  {
1707
- "direction": "vertical",
1708
- "gap": "lg",
1709
- "type": "stack",
1710
1707
  "children": [
1711
1708
  {
1712
- "type": "stack",
1713
- "align": "center",
1714
1709
  "direction": "horizontal",
1710
+ "gap": "sm",
1711
+ "align": "center",
1715
1712
  "children": [
1716
1713
  {
1717
1714
  "type": "icon",
1718
1715
  "name": "gauge"
1719
1716
  },
1720
1717
  {
1721
- "variant": "h2",
1718
+ "content": "Token Usage",
1722
1719
  "type": "typography",
1723
- "content": "Token Usage"
1720
+ "variant": "h2"
1724
1721
  },
1725
1722
  {
1726
- "variant": "default",
1727
1723
  "type": "badge",
1728
- "label": "Normal"
1724
+ "label": "Normal",
1725
+ "variant": "default"
1729
1726
  }
1730
1727
  ],
1731
- "gap": "sm"
1728
+ "type": "stack"
1732
1729
  },
1733
1730
  {
1734
1731
  "type": "divider"
1735
1732
  },
1736
1733
  {
1734
+ "max": "@entity.max",
1737
1735
  "value": "@entity.current",
1738
- "type": "progress-bar",
1739
- "max": "@entity.max"
1736
+ "type": "progress-bar"
1740
1737
  },
1741
1738
  {
1739
+ "direction": "horizontal",
1740
+ "gap": "md",
1741
+ "type": "stack",
1742
1742
  "children": [
1743
1743
  {
1744
- "value": "@entity.current",
1745
1744
  "type": "stat-display",
1746
- "label": "Tokens Used"
1745
+ "label": "Tokens Used",
1746
+ "value": "@entity.current"
1747
1747
  },
1748
1748
  {
1749
1749
  "value": "@entity.max",
1750
1750
  "label": "Max Tokens",
1751
1751
  "type": "stat-display"
1752
1752
  }
1753
- ],
1754
- "direction": "horizontal",
1755
- "type": "stack",
1756
- "gap": "md"
1753
+ ]
1757
1754
  },
1758
1755
  {
1759
- "variant": "ghost",
1760
1756
  "label": "Reset",
1761
- "icon": "rotate-ccw",
1762
1757
  "type": "button",
1763
- "action": "RESET"
1758
+ "variant": "ghost",
1759
+ "action": "RESET",
1760
+ "icon": "rotate-ccw"
1764
1761
  }
1765
- ]
1762
+ ],
1763
+ "type": "stack",
1764
+ "direction": "vertical",
1765
+ "gap": "lg"
1766
1766
  }
1767
1767
  ]
1768
1768
  ]
@@ -1969,8 +1969,8 @@
1969
1969
  "AgentContextWindow",
1970
1970
  {
1971
1971
  "emit": {
1972
- "success": "AgentContextWindowLoaded",
1973
- "failure": "AgentContextWindowLoadFailed"
1972
+ "failure": "AgentContextWindowLoadFailed",
1973
+ "success": "AgentContextWindowLoaded"
1974
1974
  }
1975
1975
  }
1976
1976
  ]
@@ -1995,8 +1995,12 @@
1995
1995
  "render-ui",
1996
1996
  "main",
1997
1997
  {
1998
+ "type": "stack",
1999
+ "direction": "vertical",
2000
+ "gap": "lg",
1998
2001
  "children": [
1999
2002
  {
2003
+ "justify": "between",
2000
2004
  "children": [
2001
2005
  {
2002
2006
  "type": "stack",
@@ -2005,37 +2009,36 @@
2005
2009
  "gap": "md",
2006
2010
  "children": [
2007
2011
  {
2008
- "name": "layers",
2009
- "type": "icon"
2012
+ "type": "icon",
2013
+ "name": "layers"
2010
2014
  },
2011
2015
  {
2012
- "type": "typography",
2013
2016
  "content": "Context Window Alert",
2014
- "variant": "h2"
2017
+ "variant": "h2",
2018
+ "type": "typography"
2015
2019
  }
2016
2020
  ]
2017
2021
  },
2018
2022
  {
2023
+ "label": "Dismiss",
2019
2024
  "variant": "ghost",
2020
- "action": "HIDE",
2025
+ "icon": "x",
2021
2026
  "type": "button",
2022
- "label": "Dismiss",
2023
- "icon": "x"
2027
+ "action": "HIDE"
2024
2028
  }
2025
2029
  ],
2030
+ "type": "stack",
2026
2031
  "align": "center",
2027
2032
  "gap": "md",
2028
- "justify": "between",
2029
- "type": "stack",
2030
2033
  "direction": "horizontal"
2031
2034
  },
2032
2035
  {
2033
2036
  "type": "divider"
2034
2037
  },
2035
2038
  {
2036
- "variant": "@entity.notificationType",
2039
+ "type": "alert",
2037
2040
  "message": "@entity.message",
2038
- "type": "alert"
2041
+ "variant": "@entity.notificationType"
2039
2042
  },
2040
2043
  {
2041
2044
  "type": "toast-slot"
@@ -2045,10 +2048,7 @@
2045
2048
  "variant": "warning",
2046
2049
  "message": "@entity.message"
2047
2050
  }
2048
- ],
2049
- "type": "stack",
2050
- "direction": "vertical",
2051
- "gap": "lg"
2051
+ ]
2052
2052
  }
2053
2053
  ]
2054
2054
  ]
@@ -2072,38 +2072,40 @@
2072
2072
  "render-ui",
2073
2073
  "main",
2074
2074
  {
2075
+ "type": "stack",
2076
+ "direction": "vertical",
2075
2077
  "children": [
2076
2078
  {
2077
- "direction": "horizontal",
2078
- "align": "center",
2079
- "gap": "md",
2080
2079
  "justify": "between",
2081
2080
  "children": [
2082
2081
  {
2083
2082
  "direction": "horizontal",
2084
- "gap": "md",
2085
2083
  "type": "stack",
2084
+ "align": "center",
2085
+ "gap": "md",
2086
2086
  "children": [
2087
2087
  {
2088
- "type": "icon",
2089
- "name": "layers"
2088
+ "name": "layers",
2089
+ "type": "icon"
2090
2090
  },
2091
2091
  {
2092
- "content": "Context Window Alert",
2093
2092
  "type": "typography",
2093
+ "content": "Context Window Alert",
2094
2094
  "variant": "h2"
2095
2095
  }
2096
- ],
2097
- "align": "center"
2096
+ ]
2098
2097
  },
2099
2098
  {
2100
- "type": "button",
2101
- "variant": "ghost",
2102
2099
  "label": "Dismiss",
2100
+ "type": "button",
2103
2101
  "action": "HIDE",
2104
- "icon": "x"
2102
+ "icon": "x",
2103
+ "variant": "ghost"
2105
2104
  }
2106
2105
  ],
2106
+ "direction": "horizontal",
2107
+ "gap": "md",
2108
+ "align": "center",
2107
2109
  "type": "stack"
2108
2110
  },
2109
2111
  {
@@ -2118,13 +2120,11 @@
2118
2120
  "type": "toast-slot"
2119
2121
  },
2120
2122
  {
2121
- "type": "alert",
2122
2123
  "variant": "warning",
2124
+ "type": "alert",
2123
2125
  "message": "@entity.message"
2124
2126
  }
2125
2127
  ],
2126
- "direction": "vertical",
2127
- "type": "stack",
2128
2128
  "gap": "lg"
2129
2129
  }
2130
2130
  ]
@@ -2156,12 +2156,13 @@
2156
2156
  "scope": "internal",
2157
2157
  "payload": [
2158
2158
  {
2159
- "name": "tokenCount",
2160
- "type": "number"
2159
+ "name": "message",
2160
+ "type": "string",
2161
+ "required": true
2161
2162
  },
2162
2163
  {
2163
- "name": "usage",
2164
- "type": "number"
2164
+ "name": "notificationType",
2165
+ "type": "string"
2165
2166
  }
2166
2167
  ]
2167
2168
  },
@@ -2388,9 +2389,9 @@
2388
2389
  "main",
2389
2390
  {
2390
2391
  "icon": "layers",
2391
- "type": "empty-state",
2392
2392
  "title": "Context Window",
2393
- "description": "Context Window is ready"
2393
+ "description": "Context Window is ready",
2394
+ "type": "empty-state"
2394
2395
  }
2395
2396
  ]
2396
2397
  ]
@@ -2495,7 +2496,11 @@
2495
2496
  ],
2496
2497
  [
2497
2498
  "emit",
2498
- "SHOW"
2499
+ "SHOW",
2500
+ {
2501
+ "message": "Token usage approaching limit",
2502
+ "notificationType": "warning"
2503
+ }
2499
2504
  ]
2500
2505
  ]
2501
2506
  },
@@ -2535,7 +2540,11 @@
2535
2540
  ],
2536
2541
  [
2537
2542
  "emit",
2538
- "SHOW"
2543
+ "SHOW",
2544
+ {
2545
+ "notificationType": "error",
2546
+ "message": "Token usage at limit. Compact required."
2547
+ }
2539
2548
  ]
2540
2549
  ]
2541
2550
  },