@almadar/std 6.1.0 → 6.1.7

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 (446) hide show
  1. package/behaviors/{exports → registry}/atoms/std-agent-activity-log.orb +154 -124
  2. package/{dist/behaviors/exports → behaviors/registry}/atoms/std-agent-chat-thread.orb +4 -63
  3. package/{dist/behaviors/exports → behaviors/registry}/atoms/std-agent-classifier.orb +8 -14
  4. package/{dist/behaviors/exports → behaviors/registry}/atoms/std-agent-completion.orb +8 -14
  5. package/behaviors/{exports → registry}/atoms/std-agent-context-window.orb +4 -8
  6. package/behaviors/{exports → registry}/atoms/std-agent-conversation.orb +4 -79
  7. package/{dist/exports → behaviors/registry}/atoms/std-agent-memory.orb +13 -18
  8. package/behaviors/{exports → registry}/atoms/std-agent-provider.orb +9 -14
  9. package/{dist/exports → behaviors/registry}/atoms/std-agent-search.orb +5 -8
  10. package/{dist/behaviors/exports → behaviors/registry}/atoms/std-agent-session.orb +11 -22
  11. package/behaviors/{exports → registry}/atoms/std-agent-step-progress.orb +4 -8
  12. package/{dist/exports → behaviors/registry}/atoms/std-agent-token-gauge.orb +4 -8
  13. package/behaviors/{exports → registry}/atoms/std-agent-tool-call.orb +8 -14
  14. package/behaviors/{exports → registry}/atoms/std-async.orb +4 -12
  15. package/{dist/exports → behaviors/registry}/atoms/std-autoregressive.orb +13 -2
  16. package/{dist/behaviors/exports → behaviors/registry}/atoms/std-browse.orb +4 -8
  17. package/{dist/behaviors/exports → behaviors/registry}/atoms/std-cache-aside.orb +4 -12
  18. package/{dist/exports → behaviors/registry}/atoms/std-calendar.orb +4 -8
  19. package/{dist/behaviors/exports → behaviors/registry}/atoms/std-circuit-breaker.orb +4 -8
  20. package/behaviors/registry/atoms/std-classifier.orb.unconvertible.txt +7 -0
  21. package/behaviors/{exports → registry}/atoms/std-collision.orb +4 -8
  22. package/{dist/exports → behaviors/registry}/atoms/std-combat-log.orb +4 -8
  23. package/behaviors/{exports → registry}/atoms/std-combat.orb +4 -8
  24. package/{dist/exports → behaviors/registry}/atoms/std-confirmation.orb +6 -5
  25. package/{dist/behaviors/exports → behaviors/registry}/atoms/std-dialogue-box.orb +4 -8
  26. package/behaviors/{exports → registry}/atoms/std-display.orb +4 -153
  27. package/{dist/exports → behaviors/registry}/atoms/std-drawer.orb +4 -58
  28. package/behaviors/{exports → registry}/atoms/std-filter.orb +4 -8
  29. package/{dist/exports → behaviors/registry}/atoms/std-flip-card.orb +4 -8
  30. package/{dist/behaviors/exports → behaviors/registry}/atoms/std-gallery.orb +4 -8
  31. package/{dist/exports → behaviors/registry}/atoms/std-game-audio.orb +4 -8
  32. package/{dist/exports → behaviors/registry}/atoms/std-game-canvas2d.orb +3 -6
  33. package/{dist/behaviors/exports → behaviors/registry}/atoms/std-game-canvas3d.orb +3 -6
  34. package/{dist/exports → behaviors/registry}/atoms/std-game-hud.orb +4 -16
  35. package/{dist/behaviors/exports → behaviors/registry}/atoms/std-game-menu.orb +4 -8
  36. package/{dist/behaviors/exports → behaviors/registry}/atoms/std-game-over-screen.orb +4 -8
  37. package/{dist/exports → behaviors/registry}/atoms/std-gameflow.orb +4 -8
  38. package/behaviors/registry/atoms/std-graph-classifier.orb.unconvertible.txt +7 -0
  39. package/{dist/behaviors/exports → behaviors/registry}/atoms/std-input.orb +4 -8
  40. package/{dist/exports → behaviors/registry}/atoms/std-inventory-panel.orb +4 -12
  41. package/{dist/exports → behaviors/registry}/atoms/std-isometric-canvas.orb +4 -8
  42. package/{dist/behaviors/exports → behaviors/registry}/atoms/std-loading.orb +4 -8
  43. package/behaviors/{exports → registry}/atoms/std-modal.orb +12 -9
  44. package/behaviors/{exports → registry}/atoms/std-movement.orb +4 -8
  45. package/{dist/behaviors/exports → behaviors/registry}/atoms/std-notification.orb +4 -8
  46. package/{dist/exports → behaviors/registry}/atoms/std-overworld.orb +4 -8
  47. package/behaviors/{exports → registry}/atoms/std-pagination.orb +4 -8
  48. package/behaviors/{exports → registry}/atoms/std-physics2d.orb +4 -8
  49. package/{dist/behaviors/exports → behaviors/registry}/atoms/std-platformer-canvas.orb +4 -8
  50. package/{dist/exports → behaviors/registry}/atoms/std-quest.orb +5 -14
  51. package/{dist/exports → behaviors/registry}/atoms/std-rate-limiter.orb +4 -8
  52. package/{dist/exports → behaviors/registry}/atoms/std-rating.orb +4 -8
  53. package/behaviors/registry/atoms/std-rl-agent.orb.unconvertible.txt +7 -0
  54. package/{dist/exports → behaviors/registry}/atoms/std-score-board.orb +4 -8
  55. package/{dist/exports → behaviors/registry}/atoms/std-score.orb +4 -8
  56. package/{dist/exports → behaviors/registry}/atoms/std-search.orb +4 -8
  57. package/{dist/exports → behaviors/registry}/atoms/std-selection.orb +4 -8
  58. package/{dist/exports → behaviors/registry}/atoms/std-service-custom-bearer.orb +4 -19
  59. package/{dist/exports → behaviors/registry}/atoms/std-service-custom-header.orb +4 -21
  60. package/behaviors/{exports → registry}/atoms/std-service-custom-noauth.orb +4 -15
  61. package/{dist/exports → behaviors/registry}/atoms/std-service-custom-query.orb +4 -21
  62. package/{dist/behaviors/exports → behaviors/registry}/atoms/std-service-email.orb +4 -8
  63. package/{dist/exports → behaviors/registry}/atoms/std-service-github.orb +4 -8
  64. package/behaviors/{exports → registry}/atoms/std-service-llm.orb +4 -8
  65. package/{dist/behaviors/exports → behaviors/registry}/atoms/std-service-oauth.orb +4 -8
  66. package/behaviors/{exports → registry}/atoms/std-service-redis.orb +4 -8
  67. package/{dist/exports → behaviors/registry}/atoms/std-service-storage.orb +4 -8
  68. package/{dist/behaviors/exports → behaviors/registry}/atoms/std-service-stripe.orb +4 -8
  69. package/{dist/behaviors/exports → behaviors/registry}/atoms/std-service-twilio.orb +4 -8
  70. package/{dist/exports → behaviors/registry}/atoms/std-service-youtube.orb +4 -8
  71. package/{dist/exports → behaviors/registry}/atoms/std-simulation-canvas.orb +4 -8
  72. package/{dist/exports → behaviors/registry}/atoms/std-sort.orb +4 -52
  73. package/{dist/behaviors/exports → behaviors/registry}/atoms/std-sprite.orb +4 -8
  74. package/behaviors/{exports → registry}/atoms/std-tabs.orb +4 -16
  75. package/behaviors/registry/atoms/std-text-classifier.orb.unconvertible.txt +7 -0
  76. package/{dist/exports → behaviors/registry}/atoms/std-text-effects.orb +4 -8
  77. package/{dist/behaviors/exports → behaviors/registry}/atoms/std-theme.orb +4 -8
  78. package/behaviors/{exports → registry}/atoms/std-timer.orb +4 -8
  79. package/behaviors/registry/atoms/std-trainer.orb.unconvertible.txt +7 -0
  80. package/{dist/behaviors/exports → behaviors/registry}/atoms/std-undo.orb +4 -8
  81. package/{dist/behaviors/exports → behaviors/registry}/atoms/std-upload.orb +4 -8
  82. package/{dist/exports → behaviors/registry}/atoms/std-validate-on-save.orb +4 -32
  83. package/{dist/exports → behaviors/registry}/atoms/std-wizard.orb +4 -26
  84. package/{dist/behaviors/exports → behaviors/registry}/molecules/std-agent-fix-loop.orb +1136 -1721
  85. package/{dist/behaviors/exports → behaviors/registry}/molecules/std-agent-learner.orb +606 -839
  86. package/behaviors/{exports → registry}/molecules/std-agent-planner.orb +613 -869
  87. package/behaviors/{exports → registry}/molecules/std-agent-rag.orb +562 -768
  88. package/behaviors/registry/molecules/std-agent-tool-loop.orb +2507 -0
  89. package/{dist/behaviors/exports → behaviors/registry}/molecules/std-builder-game.orb +4 -8
  90. package/{dist/exports → behaviors/registry}/molecules/std-cart.orb +197 -318
  91. package/{dist/behaviors/exports → behaviors/registry}/molecules/std-classifier-game.orb +4 -8
  92. package/{dist/exports → behaviors/registry}/molecules/std-debugger-game.orb +4 -8
  93. package/behaviors/registry/molecules/std-detail.orb +439 -0
  94. package/behaviors/{exports → registry}/molecules/std-event-handler-game.orb +4 -8
  95. package/{dist/exports → behaviors/registry}/molecules/std-form-advanced.orb +4 -12
  96. package/behaviors/registry/molecules/std-geospatial.orb +502 -0
  97. package/behaviors/registry/molecules/std-inventory.orb +564 -0
  98. package/behaviors/registry/molecules/std-list.orb +707 -0
  99. package/behaviors/registry/molecules/std-messaging.orb +424 -0
  100. package/behaviors/{exports → registry}/molecules/std-negotiator-game.orb +4 -8
  101. package/behaviors/{exports → registry}/molecules/std-platformer-game.orb +4 -8
  102. package/behaviors/{exports → registry}/molecules/std-puzzle-game.orb +4 -8
  103. package/{dist/behaviors/exports → behaviors/registry}/molecules/std-quiz.orb +4 -8
  104. package/{dist/exports → behaviors/registry}/molecules/std-sequencer-game.orb +4 -8
  105. package/behaviors/{exports → registry}/molecules/std-service-content-pipeline.orb +4 -8
  106. package/{dist/behaviors/exports → behaviors/registry}/molecules/std-service-custom-api-tester.orb +4 -46
  107. package/{dist/exports → behaviors/registry}/molecules/std-service-devops-toolkit.orb +4 -8
  108. package/{dist/exports → behaviors/registry}/molecules/std-service-notification-hub.orb +4 -8
  109. package/{dist/exports → behaviors/registry}/molecules/std-service-payment-flow.orb +8 -10
  110. package/behaviors/{exports → registry}/molecules/std-simulator-game.orb +4 -8
  111. package/{dist/behaviors/exports → behaviors/registry}/molecules/std-turn-based-battle.orb +4 -8
  112. package/{dist/exports → behaviors/registry}/organisms/std-agent-assistant.orb +24 -38
  113. package/behaviors/{exports → registry}/organisms/std-agent-builder.orb +816 -1320
  114. package/{dist/exports → behaviors/registry}/organisms/std-agent-pipeline.orb +785 -1283
  115. package/{dist/exports → behaviors/registry}/organisms/std-agent-reviewer.orb +308 -372
  116. package/{dist/exports → behaviors/registry}/organisms/std-agent-tutor.orb +325 -387
  117. package/{dist/exports → behaviors/registry}/organisms/std-api-gateway.orb +24 -26
  118. package/{dist/exports → behaviors/registry}/organisms/std-arcade-game.orb +4 -4
  119. package/{dist/exports → behaviors/registry}/organisms/std-booking-system.orb +44 -48
  120. package/{dist/behaviors/exports → behaviors/registry}/organisms/std-cicd-pipeline.orb +24 -30
  121. package/behaviors/{exports → registry}/organisms/std-cms.orb +50 -55
  122. package/{dist/behaviors/exports → behaviors/registry}/organisms/std-coding-academy.orb +4 -4
  123. package/{dist/exports → behaviors/registry}/organisms/std-crm.orb +50 -55
  124. package/{dist/exports → behaviors/registry}/organisms/std-devops-dashboard.orb +24 -26
  125. package/{dist/behaviors/exports → behaviors/registry}/organisms/std-ecommerce.orb +48 -58
  126. package/{dist/behaviors/exports → behaviors/registry}/organisms/std-finance-tracker.orb +30 -33
  127. package/{dist/exports → behaviors/registry}/organisms/std-healthcare.orb +50 -55
  128. package/{dist/exports → behaviors/registry}/organisms/std-helpdesk.orb +30 -33
  129. package/behaviors/{exports → registry}/organisms/std-hr-portal.orb +44 -48
  130. package/{dist/behaviors/exports → behaviors/registry}/organisms/std-iot-dashboard.orb +24 -26
  131. package/{dist/exports → behaviors/registry}/organisms/std-lms.orb +24 -26
  132. package/{dist/behaviors/exports → behaviors/registry}/organisms/std-logic-training.orb +4 -4
  133. package/behaviors/{exports → registry}/organisms/std-platformer-app.orb +20 -24
  134. package/behaviors/{exports → registry}/organisms/std-project-manager.orb +44 -48
  135. package/{dist/exports → behaviors/registry}/organisms/std-puzzle-app.orb +4 -4
  136. package/{dist/behaviors/exports → behaviors/registry}/organisms/std-realtime-chat.orb +30 -33
  137. package/{dist/behaviors/exports → behaviors/registry}/organisms/std-rpg-game.orb +20 -28
  138. package/{dist/exports → behaviors/registry}/organisms/std-service-marketplace.orb +52 -58
  139. package/{dist/exports → behaviors/registry}/organisms/std-service-research-assistant.orb +4 -15
  140. package/behaviors/{exports → registry}/organisms/std-social-feed.orb +16 -18
  141. package/behaviors/{exports → registry}/organisms/std-stem-lab.orb +4 -4
  142. package/{dist/behaviors/exports → behaviors/registry}/organisms/std-strategy-game.orb +4 -4
  143. package/{dist/exports → behaviors/registry}/organisms/std-trading-dashboard.orb +24 -30
  144. package/dist/behaviors/{exports → registry}/atoms/std-agent-activity-log.orb +154 -124
  145. package/{behaviors/exports → dist/behaviors/registry}/atoms/std-agent-chat-thread.orb +4 -63
  146. package/dist/{exports → behaviors/registry}/atoms/std-agent-classifier.orb +8 -14
  147. package/dist/{exports → behaviors/registry}/atoms/std-agent-completion.orb +8 -14
  148. package/dist/{exports → behaviors/registry}/atoms/std-agent-context-window.orb +4 -8
  149. package/dist/{exports → behaviors/registry}/atoms/std-agent-conversation.orb +4 -79
  150. package/{behaviors/exports → dist/behaviors/registry}/atoms/std-agent-memory.orb +13 -18
  151. package/dist/{exports → behaviors/registry}/atoms/std-agent-provider.orb +9 -14
  152. package/dist/behaviors/{exports → registry}/atoms/std-agent-search.orb +5 -8
  153. package/dist/{exports → behaviors/registry}/atoms/std-agent-session.orb +11 -22
  154. package/dist/{exports → behaviors/registry}/atoms/std-agent-step-progress.orb +4 -8
  155. package/{behaviors/exports → dist/behaviors/registry}/atoms/std-agent-token-gauge.orb +4 -8
  156. package/dist/behaviors/{exports → registry}/atoms/std-agent-tool-call.orb +8 -14
  157. package/dist/behaviors/{exports → registry}/atoms/std-async.orb +4 -12
  158. package/dist/behaviors/{exports → registry}/atoms/std-autoregressive.orb +13 -2
  159. package/dist/{exports → behaviors/registry}/atoms/std-browse.orb +4 -8
  160. package/dist/{exports → behaviors/registry}/atoms/std-cache-aside.orb +4 -12
  161. package/dist/behaviors/{exports → registry}/atoms/std-calendar.orb +4 -8
  162. package/{behaviors/exports → dist/behaviors/registry}/atoms/std-circuit-breaker.orb +4 -8
  163. package/dist/behaviors/registry/atoms/std-classifier.orb.unconvertible.txt +7 -0
  164. package/dist/behaviors/{exports → registry}/atoms/std-collision.orb +4 -8
  165. package/dist/behaviors/{exports → registry}/atoms/std-combat-log.orb +4 -8
  166. package/dist/{exports → behaviors/registry}/atoms/std-combat.orb +4 -8
  167. package/{behaviors/exports → dist/behaviors/registry}/atoms/std-confirmation.orb +6 -5
  168. package/dist/{exports → behaviors/registry}/atoms/std-dialogue-box.orb +4 -8
  169. package/dist/{exports → behaviors/registry}/atoms/std-display.orb +4 -153
  170. package/dist/behaviors/{exports → registry}/atoms/std-drawer.orb +4 -58
  171. package/dist/behaviors/{exports → registry}/atoms/std-filter.orb +4 -8
  172. package/dist/behaviors/{exports → registry}/atoms/std-flip-card.orb +4 -8
  173. package/{behaviors/exports → dist/behaviors/registry}/atoms/std-gallery.orb +4 -8
  174. package/dist/behaviors/{exports → registry}/atoms/std-game-audio.orb +4 -8
  175. package/dist/behaviors/{exports → registry}/atoms/std-game-canvas2d.orb +3 -6
  176. package/{behaviors/exports → dist/behaviors/registry}/atoms/std-game-canvas3d.orb +3 -6
  177. package/dist/behaviors/{exports → registry}/atoms/std-game-hud.orb +4 -16
  178. package/{behaviors/exports → dist/behaviors/registry}/atoms/std-game-menu.orb +4 -8
  179. package/dist/{exports → behaviors/registry}/atoms/std-game-over-screen.orb +4 -8
  180. package/dist/behaviors/{exports → registry}/atoms/std-gameflow.orb +4 -8
  181. package/dist/behaviors/registry/atoms/std-graph-classifier.orb.unconvertible.txt +7 -0
  182. package/{behaviors/exports → dist/behaviors/registry}/atoms/std-input.orb +4 -8
  183. package/dist/behaviors/{exports → registry}/atoms/std-inventory-panel.orb +4 -12
  184. package/{behaviors/exports → dist/behaviors/registry}/atoms/std-isometric-canvas.orb +4 -8
  185. package/{behaviors/exports → dist/behaviors/registry}/atoms/std-loading.orb +4 -8
  186. package/dist/{exports → behaviors/registry}/atoms/std-modal.orb +12 -9
  187. package/dist/behaviors/{exports → registry}/atoms/std-movement.orb +4 -8
  188. package/dist/{exports → behaviors/registry}/atoms/std-notification.orb +4 -8
  189. package/{behaviors/exports → dist/behaviors/registry}/atoms/std-overworld.orb +4 -8
  190. package/dist/behaviors/{exports → registry}/atoms/std-pagination.orb +4 -8
  191. package/dist/behaviors/{exports → registry}/atoms/std-physics2d.orb +4 -8
  192. package/{behaviors/exports → dist/behaviors/registry}/atoms/std-platformer-canvas.orb +4 -8
  193. package/{behaviors/exports → dist/behaviors/registry}/atoms/std-quest.orb +5 -14
  194. package/{behaviors/exports → dist/behaviors/registry}/atoms/std-rate-limiter.orb +4 -8
  195. package/dist/behaviors/{exports → registry}/atoms/std-rating.orb +4 -8
  196. package/dist/behaviors/registry/atoms/std-rl-agent.orb.unconvertible.txt +7 -0
  197. package/dist/behaviors/{exports → registry}/atoms/std-score-board.orb +4 -8
  198. package/dist/behaviors/{exports → registry}/atoms/std-score.orb +4 -8
  199. package/{behaviors/exports → dist/behaviors/registry}/atoms/std-search.orb +4 -8
  200. package/{behaviors/exports → dist/behaviors/registry}/atoms/std-selection.orb +4 -8
  201. package/dist/behaviors/{exports → registry}/atoms/std-service-custom-bearer.orb +4 -19
  202. package/dist/behaviors/{exports → registry}/atoms/std-service-custom-header.orb +4 -21
  203. package/dist/{exports → behaviors/registry}/atoms/std-service-custom-noauth.orb +4 -15
  204. package/{behaviors/exports → dist/behaviors/registry}/atoms/std-service-custom-query.orb +4 -21
  205. package/dist/{exports → behaviors/registry}/atoms/std-service-email.orb +4 -8
  206. package/dist/behaviors/{exports → registry}/atoms/std-service-github.orb +4 -8
  207. package/dist/{exports → behaviors/registry}/atoms/std-service-llm.orb +4 -8
  208. package/{behaviors/exports → dist/behaviors/registry}/atoms/std-service-oauth.orb +4 -8
  209. package/dist/behaviors/{exports → registry}/atoms/std-service-redis.orb +4 -8
  210. package/dist/behaviors/{exports → registry}/atoms/std-service-storage.orb +4 -8
  211. package/dist/{exports → behaviors/registry}/atoms/std-service-stripe.orb +4 -8
  212. package/dist/{exports → behaviors/registry}/atoms/std-service-twilio.orb +4 -8
  213. package/dist/behaviors/{exports → registry}/atoms/std-service-youtube.orb +4 -8
  214. package/{behaviors/exports → dist/behaviors/registry}/atoms/std-simulation-canvas.orb +4 -8
  215. package/{behaviors/exports → dist/behaviors/registry}/atoms/std-sort.orb +4 -52
  216. package/{behaviors/exports → dist/behaviors/registry}/atoms/std-sprite.orb +4 -8
  217. package/dist/{exports → behaviors/registry}/atoms/std-tabs.orb +4 -16
  218. package/dist/behaviors/registry/atoms/std-text-classifier.orb.unconvertible.txt +7 -0
  219. package/dist/behaviors/{exports → registry}/atoms/std-text-effects.orb +4 -8
  220. package/dist/{exports → behaviors/registry}/atoms/std-theme.orb +4 -8
  221. package/dist/{exports → behaviors/registry}/atoms/std-timer.orb +4 -8
  222. package/dist/behaviors/registry/atoms/std-trainer.orb.unconvertible.txt +7 -0
  223. package/dist/{exports → behaviors/registry}/atoms/std-undo.orb +4 -8
  224. package/dist/{exports → behaviors/registry}/atoms/std-upload.orb +4 -8
  225. package/{behaviors/exports → dist/behaviors/registry}/atoms/std-validate-on-save.orb +4 -32
  226. package/dist/behaviors/{exports → registry}/atoms/std-wizard.orb +4 -26
  227. package/dist/{exports → behaviors/registry}/molecules/std-agent-fix-loop.orb +1136 -1721
  228. package/{behaviors/exports → dist/behaviors/registry}/molecules/std-agent-learner.orb +606 -839
  229. package/dist/{exports → behaviors/registry}/molecules/std-agent-planner.orb +613 -869
  230. package/dist/behaviors/{exports → registry}/molecules/std-agent-rag.orb +562 -768
  231. package/dist/behaviors/registry/molecules/std-agent-tool-loop.orb +2507 -0
  232. package/dist/{exports → behaviors/registry}/molecules/std-builder-game.orb +4 -8
  233. package/{behaviors/exports → dist/behaviors/registry}/molecules/std-cart.orb +197 -318
  234. package/dist/{exports → behaviors/registry}/molecules/std-classifier-game.orb +4 -8
  235. package/{behaviors/exports → dist/behaviors/registry}/molecules/std-debugger-game.orb +4 -8
  236. package/dist/behaviors/registry/molecules/std-detail.orb +439 -0
  237. package/dist/{exports → behaviors/registry}/molecules/std-event-handler-game.orb +4 -8
  238. package/{behaviors/exports → dist/behaviors/registry}/molecules/std-form-advanced.orb +4 -12
  239. package/dist/behaviors/registry/molecules/std-geospatial.orb +502 -0
  240. package/dist/behaviors/registry/molecules/std-inventory.orb +564 -0
  241. package/dist/behaviors/registry/molecules/std-list.orb +707 -0
  242. package/dist/behaviors/registry/molecules/std-messaging.orb +424 -0
  243. package/dist/{exports → behaviors/registry}/molecules/std-negotiator-game.orb +4 -8
  244. package/dist/{exports → behaviors/registry}/molecules/std-platformer-game.orb +4 -8
  245. package/dist/behaviors/{exports → registry}/molecules/std-puzzle-game.orb +4 -8
  246. package/{behaviors/exports → dist/behaviors/registry}/molecules/std-quiz.orb +4 -8
  247. package/{behaviors/exports → dist/behaviors/registry}/molecules/std-sequencer-game.orb +4 -8
  248. package/dist/{exports → behaviors/registry}/molecules/std-service-content-pipeline.orb +4 -8
  249. package/{behaviors/exports → dist/behaviors/registry}/molecules/std-service-custom-api-tester.orb +4 -46
  250. package/{behaviors/exports → dist/behaviors/registry}/molecules/std-service-devops-toolkit.orb +4 -8
  251. package/{behaviors/exports → dist/behaviors/registry}/molecules/std-service-notification-hub.orb +4 -8
  252. package/{behaviors/exports → dist/behaviors/registry}/molecules/std-service-payment-flow.orb +8 -10
  253. package/dist/{exports → behaviors/registry}/molecules/std-simulator-game.orb +4 -8
  254. package/dist/{exports → behaviors/registry}/molecules/std-turn-based-battle.orb +4 -8
  255. package/{behaviors/exports → dist/behaviors/registry}/organisms/std-agent-assistant.orb +24 -38
  256. package/dist/{exports → behaviors/registry}/organisms/std-agent-builder.orb +816 -1320
  257. package/{behaviors/exports → dist/behaviors/registry}/organisms/std-agent-pipeline.orb +785 -1283
  258. package/dist/behaviors/{exports → registry}/organisms/std-agent-reviewer.orb +308 -372
  259. package/{behaviors/exports → dist/behaviors/registry}/organisms/std-agent-tutor.orb +325 -387
  260. package/dist/behaviors/{exports → registry}/organisms/std-api-gateway.orb +24 -26
  261. package/{behaviors/exports → dist/behaviors/registry}/organisms/std-arcade-game.orb +4 -4
  262. package/{behaviors/exports → dist/behaviors/registry}/organisms/std-booking-system.orb +44 -48
  263. package/{behaviors/exports → dist/behaviors/registry}/organisms/std-cicd-pipeline.orb +24 -30
  264. package/dist/{exports → behaviors/registry}/organisms/std-cms.orb +50 -55
  265. package/{behaviors/exports → dist/behaviors/registry}/organisms/std-coding-academy.orb +4 -4
  266. package/{behaviors/exports → dist/behaviors/registry}/organisms/std-crm.orb +50 -55
  267. package/{behaviors/exports → dist/behaviors/registry}/organisms/std-devops-dashboard.orb +24 -26
  268. package/dist/{exports → behaviors/registry}/organisms/std-ecommerce.orb +48 -58
  269. package/dist/{exports → behaviors/registry}/organisms/std-finance-tracker.orb +30 -33
  270. package/{behaviors/exports → dist/behaviors/registry}/organisms/std-healthcare.orb +50 -55
  271. package/dist/behaviors/{exports → registry}/organisms/std-helpdesk.orb +30 -33
  272. package/dist/behaviors/{exports → registry}/organisms/std-hr-portal.orb +44 -48
  273. package/{behaviors/exports → dist/behaviors/registry}/organisms/std-iot-dashboard.orb +24 -26
  274. package/dist/behaviors/{exports → registry}/organisms/std-lms.orb +24 -26
  275. package/{behaviors/exports → dist/behaviors/registry}/organisms/std-logic-training.orb +4 -4
  276. package/dist/behaviors/{exports → registry}/organisms/std-platformer-app.orb +20 -24
  277. package/dist/{exports → behaviors/registry}/organisms/std-project-manager.orb +44 -48
  278. package/dist/behaviors/{exports → registry}/organisms/std-puzzle-app.orb +4 -4
  279. package/dist/{exports → behaviors/registry}/organisms/std-realtime-chat.orb +30 -33
  280. package/{behaviors/exports → dist/behaviors/registry}/organisms/std-rpg-game.orb +20 -28
  281. package/{behaviors/exports → dist/behaviors/registry}/organisms/std-service-marketplace.orb +52 -58
  282. package/{behaviors/exports → dist/behaviors/registry}/organisms/std-service-research-assistant.orb +4 -15
  283. package/dist/{exports → behaviors/registry}/organisms/std-social-feed.orb +16 -18
  284. package/dist/{exports → behaviors/registry}/organisms/std-stem-lab.orb +4 -4
  285. package/{behaviors/exports → dist/behaviors/registry}/organisms/std-strategy-game.orb +4 -4
  286. package/dist/behaviors/{exports → registry}/organisms/std-trading-dashboard.orb +24 -30
  287. package/package.json +2 -2
  288. package/behaviors/exports/atoms/std-agent-classifier.orb +0 -879
  289. package/behaviors/exports/atoms/std-agent-completion.orb +0 -941
  290. package/behaviors/exports/atoms/std-agent-search.orb +0 -431
  291. package/behaviors/exports/atoms/std-agent-session.orb +0 -777
  292. package/behaviors/exports/atoms/std-autoregressive.orb +0 -420
  293. package/behaviors/exports/atoms/std-browse.orb +0 -251
  294. package/behaviors/exports/atoms/std-cache-aside.orb +0 -1101
  295. package/behaviors/exports/atoms/std-calendar.orb +0 -775
  296. package/behaviors/exports/atoms/std-combat-log.orb +0 -268
  297. package/behaviors/exports/atoms/std-dialogue-box.orb +0 -249
  298. package/behaviors/exports/atoms/std-drawer.orb +0 -578
  299. package/behaviors/exports/atoms/std-flip-card.orb +0 -601
  300. package/behaviors/exports/atoms/std-game-audio.orb +0 -350
  301. package/behaviors/exports/atoms/std-game-canvas2d.orb +0 -263
  302. package/behaviors/exports/atoms/std-game-hud.orb +0 -170
  303. package/behaviors/exports/atoms/std-game-over-screen.orb +0 -206
  304. package/behaviors/exports/atoms/std-gameflow.orb +0 -419
  305. package/behaviors/exports/atoms/std-inventory-panel.orb +0 -266
  306. package/behaviors/exports/atoms/std-notification.orb +0 -446
  307. package/behaviors/exports/atoms/std-rating.orb +0 -333
  308. package/behaviors/exports/atoms/std-score-board.orb +0 -249
  309. package/behaviors/exports/atoms/std-score.orb +0 -713
  310. package/behaviors/exports/atoms/std-service-custom-bearer.orb +0 -562
  311. package/behaviors/exports/atoms/std-service-custom-header.orb +0 -564
  312. package/behaviors/exports/atoms/std-service-email.orb +0 -545
  313. package/behaviors/exports/atoms/std-service-github.orb +0 -591
  314. package/behaviors/exports/atoms/std-service-storage.orb +0 -669
  315. package/behaviors/exports/atoms/std-service-stripe.orb +0 -644
  316. package/behaviors/exports/atoms/std-service-twilio.orb +0 -616
  317. package/behaviors/exports/atoms/std-service-youtube.orb +0 -701
  318. package/behaviors/exports/atoms/std-text-effects.orb +0 -663
  319. package/behaviors/exports/atoms/std-theme.orb +0 -578
  320. package/behaviors/exports/atoms/std-undo.orb +0 -830
  321. package/behaviors/exports/atoms/std-upload.orb +0 -540
  322. package/behaviors/exports/atoms/std-wizard.orb +0 -1120
  323. package/behaviors/exports/molecules/std-agent-fix-loop.orb +0 -3327
  324. package/behaviors/exports/molecules/std-agent-tool-loop.orb +0 -4451
  325. package/behaviors/exports/molecules/std-builder-game.orb +0 -234
  326. package/behaviors/exports/molecules/std-classifier-game.orb +0 -234
  327. package/behaviors/exports/molecules/std-detail.orb +0 -621
  328. package/behaviors/exports/molecules/std-geospatial.orb +0 -657
  329. package/behaviors/exports/molecules/std-inventory.orb +0 -823
  330. package/behaviors/exports/molecules/std-list.orb +0 -1066
  331. package/behaviors/exports/molecules/std-messaging.orb +0 -605
  332. package/behaviors/exports/molecules/std-turn-based-battle.orb +0 -514
  333. package/behaviors/exports/organisms/std-agent-reviewer.orb +0 -5277
  334. package/behaviors/exports/organisms/std-api-gateway.orb +0 -3745
  335. package/behaviors/exports/organisms/std-ecommerce.orb +0 -4553
  336. package/behaviors/exports/organisms/std-finance-tracker.orb +0 -3091
  337. package/behaviors/exports/organisms/std-helpdesk.orb +0 -3328
  338. package/behaviors/exports/organisms/std-lms.orb +0 -3885
  339. package/behaviors/exports/organisms/std-puzzle-app.orb +0 -889
  340. package/behaviors/exports/organisms/std-realtime-chat.orb +0 -3428
  341. package/behaviors/exports/organisms/std-trading-dashboard.orb +0 -3080
  342. package/behaviors/exports/test-schemas/os-trigger-simulation.orb +0 -202
  343. package/behaviors/exports/validation-report.json +0 -1672
  344. package/behaviors/exports/verify-results.json +0 -126
  345. package/dist/behaviors/exports/atoms/std-agent-context-window.orb +0 -2299
  346. package/dist/behaviors/exports/atoms/std-agent-conversation.orb +0 -1029
  347. package/dist/behaviors/exports/atoms/std-agent-memory.orb +0 -777
  348. package/dist/behaviors/exports/atoms/std-agent-provider.orb +0 -906
  349. package/dist/behaviors/exports/atoms/std-agent-step-progress.orb +0 -994
  350. package/dist/behaviors/exports/atoms/std-agent-token-gauge.orb +0 -1621
  351. package/dist/behaviors/exports/atoms/std-combat.orb +0 -421
  352. package/dist/behaviors/exports/atoms/std-confirmation.orb +0 -496
  353. package/dist/behaviors/exports/atoms/std-display.orb +0 -1803
  354. package/dist/behaviors/exports/atoms/std-isometric-canvas.orb +0 -642
  355. package/dist/behaviors/exports/atoms/std-modal.orb +0 -425
  356. package/dist/behaviors/exports/atoms/std-overworld.orb +0 -517
  357. package/dist/behaviors/exports/atoms/std-quest.orb +0 -1262
  358. package/dist/behaviors/exports/atoms/std-rate-limiter.orb +0 -897
  359. package/dist/behaviors/exports/atoms/std-search.orb +0 -394
  360. package/dist/behaviors/exports/atoms/std-selection.orb +0 -810
  361. package/dist/behaviors/exports/atoms/std-service-custom-noauth.orb +0 -558
  362. package/dist/behaviors/exports/atoms/std-service-custom-query.orb +0 -564
  363. package/dist/behaviors/exports/atoms/std-service-llm.orb +0 -676
  364. package/dist/behaviors/exports/atoms/std-simulation-canvas.orb +0 -194
  365. package/dist/behaviors/exports/atoms/std-sort.orb +0 -760
  366. package/dist/behaviors/exports/atoms/std-tabs.orb +0 -298
  367. package/dist/behaviors/exports/atoms/std-timer.orb +0 -1428
  368. package/dist/behaviors/exports/atoms/std-validate-on-save.orb +0 -624
  369. package/dist/behaviors/exports/molecules/std-agent-planner.orb +0 -2037
  370. package/dist/behaviors/exports/molecules/std-agent-tool-loop.orb +0 -4451
  371. package/dist/behaviors/exports/molecules/std-cart.orb +0 -754
  372. package/dist/behaviors/exports/molecules/std-debugger-game.orb +0 -234
  373. package/dist/behaviors/exports/molecules/std-detail.orb +0 -621
  374. package/dist/behaviors/exports/molecules/std-event-handler-game.orb +0 -234
  375. package/dist/behaviors/exports/molecules/std-form-advanced.orb +0 -659
  376. package/dist/behaviors/exports/molecules/std-geospatial.orb +0 -657
  377. package/dist/behaviors/exports/molecules/std-inventory.orb +0 -823
  378. package/dist/behaviors/exports/molecules/std-list.orb +0 -1066
  379. package/dist/behaviors/exports/molecules/std-messaging.orb +0 -605
  380. package/dist/behaviors/exports/molecules/std-negotiator-game.orb +0 -234
  381. package/dist/behaviors/exports/molecules/std-platformer-game.orb +0 -557
  382. package/dist/behaviors/exports/molecules/std-sequencer-game.orb +0 -234
  383. package/dist/behaviors/exports/molecules/std-service-content-pipeline.orb +0 -920
  384. package/dist/behaviors/exports/molecules/std-service-devops-toolkit.orb +0 -1531
  385. package/dist/behaviors/exports/molecules/std-service-notification-hub.orb +0 -701
  386. package/dist/behaviors/exports/molecules/std-service-payment-flow.orb +0 -878
  387. package/dist/behaviors/exports/molecules/std-simulator-game.orb +0 -234
  388. package/dist/behaviors/exports/organisms/std-agent-assistant.orb +0 -6336
  389. package/dist/behaviors/exports/organisms/std-agent-builder.orb +0 -14139
  390. package/dist/behaviors/exports/organisms/std-agent-pipeline.orb +0 -10974
  391. package/dist/behaviors/exports/organisms/std-agent-tutor.orb +0 -5003
  392. package/dist/behaviors/exports/organisms/std-arcade-game.orb +0 -1144
  393. package/dist/behaviors/exports/organisms/std-booking-system.orb +0 -5142
  394. package/dist/behaviors/exports/organisms/std-cms.orb +0 -2887
  395. package/dist/behaviors/exports/organisms/std-crm.orb +0 -4366
  396. package/dist/behaviors/exports/organisms/std-devops-dashboard.orb +0 -5772
  397. package/dist/behaviors/exports/organisms/std-healthcare.orb +0 -6001
  398. package/dist/behaviors/exports/organisms/std-project-manager.orb +0 -3819
  399. package/dist/behaviors/exports/organisms/std-service-marketplace.orb +0 -4479
  400. package/dist/behaviors/exports/organisms/std-service-research-assistant.orb +0 -3568
  401. package/dist/behaviors/exports/organisms/std-social-feed.orb +0 -1246
  402. package/dist/behaviors/exports/organisms/std-stem-lab.orb +0 -1922
  403. package/dist/behaviors/exports/test-schemas/os-trigger-simulation.orb +0 -202
  404. package/dist/behaviors/exports/validation-report.json +0 -1672
  405. package/dist/behaviors/exports/verify-results.json +0 -126
  406. package/dist/exports/atoms/std-agent-activity-log.orb +0 -575
  407. package/dist/exports/atoms/std-agent-chat-thread.orb +0 -783
  408. package/dist/exports/atoms/std-agent-tool-call.orb +0 -746
  409. package/dist/exports/atoms/std-async.orb +0 -443
  410. package/dist/exports/atoms/std-circuit-breaker.orb +0 -999
  411. package/dist/exports/atoms/std-collision.orb +0 -694
  412. package/dist/exports/atoms/std-filter.orb +0 -641
  413. package/dist/exports/atoms/std-gallery.orb +0 -387
  414. package/dist/exports/atoms/std-game-canvas3d.orb +0 -401
  415. package/dist/exports/atoms/std-game-menu.orb +0 -222
  416. package/dist/exports/atoms/std-input.orb +0 -640
  417. package/dist/exports/atoms/std-loading.orb +0 -496
  418. package/dist/exports/atoms/std-movement.orb +0 -1413
  419. package/dist/exports/atoms/std-pagination.orb +0 -266
  420. package/dist/exports/atoms/std-physics2d.orb +0 -430
  421. package/dist/exports/atoms/std-platformer-canvas.orb +0 -268
  422. package/dist/exports/atoms/std-service-oauth.orb +0 -769
  423. package/dist/exports/atoms/std-service-redis.orb +0 -585
  424. package/dist/exports/atoms/std-sprite.orb +0 -315
  425. package/dist/exports/molecules/std-agent-learner.orb +0 -2315
  426. package/dist/exports/molecules/std-agent-rag.orb +0 -1745
  427. package/dist/exports/molecules/std-agent-tool-loop.orb +0 -4451
  428. package/dist/exports/molecules/std-detail.orb +0 -621
  429. package/dist/exports/molecules/std-geospatial.orb +0 -657
  430. package/dist/exports/molecules/std-inventory.orb +0 -823
  431. package/dist/exports/molecules/std-list.orb +0 -1066
  432. package/dist/exports/molecules/std-messaging.orb +0 -605
  433. package/dist/exports/molecules/std-puzzle-game.orb +0 -584
  434. package/dist/exports/molecules/std-quiz.orb +0 -1074
  435. package/dist/exports/molecules/std-service-custom-api-tester.orb +0 -865
  436. package/dist/exports/organisms/std-cicd-pipeline.orb +0 -3425
  437. package/dist/exports/organisms/std-coding-academy.orb +0 -2084
  438. package/dist/exports/organisms/std-hr-portal.orb +0 -5236
  439. package/dist/exports/organisms/std-iot-dashboard.orb +0 -3914
  440. package/dist/exports/organisms/std-logic-training.orb +0 -753
  441. package/dist/exports/organisms/std-platformer-app.orb +0 -1679
  442. package/dist/exports/organisms/std-rpg-game.orb +0 -3298
  443. package/dist/exports/organisms/std-strategy-game.orb +0 -2443
  444. package/dist/exports/test-schemas/os-trigger-simulation.orb +0 -202
  445. package/dist/exports/validation-report.json +0 -1672
  446. package/dist/exports/verify-results.json +0 -126
@@ -1,1621 +0,0 @@
1
- {
2
- "name": "AgentTokenGaugeOrbital",
3
- "version": "1.0.0",
4
- "orbitals": [
5
- {
6
- "name": "AgentTokenGaugeOrbital",
7
- "entity": {
8
- "name": "AgentTokenGauge",
9
- "persistence": "runtime",
10
- "fields": [
11
- {
12
- "name": "id",
13
- "type": "string"
14
- },
15
- {
16
- "name": "name",
17
- "type": "string"
18
- },
19
- {
20
- "name": "description",
21
- "type": "string"
22
- },
23
- {
24
- "name": "status",
25
- "type": "string",
26
- "default": "active",
27
- "values": [
28
- "active",
29
- "inactive",
30
- "pending"
31
- ]
32
- },
33
- {
34
- "name": "createdAt",
35
- "type": "string"
36
- },
37
- {
38
- "name": "pendingId",
39
- "type": "string"
40
- },
41
- {
42
- "name": "current",
43
- "type": "number",
44
- "default": 0
45
- },
46
- {
47
- "name": "max",
48
- "type": "number",
49
- "default": 180000
50
- },
51
- {
52
- "name": "threshold",
53
- "type": "number",
54
- "default": 0.85
55
- },
56
- {
57
- "name": "lastCompactedAt",
58
- "type": "string",
59
- "default": ""
60
- }
61
- ]
62
- },
63
- "traits": [
64
- {
65
- "name": "AgentTokenGaugeGauge",
66
- "linkedEntity": "AgentTokenGauge",
67
- "category": "interaction",
68
- "stateMachine": {
69
- "states": [
70
- {
71
- "name": "normal",
72
- "isInitial": true
73
- },
74
- {
75
- "name": "warning"
76
- },
77
- {
78
- "name": "critical"
79
- }
80
- ],
81
- "events": [
82
- {
83
- "key": "INIT",
84
- "name": "Initialize"
85
- },
86
- {
87
- "key": "UPDATE",
88
- "name": "Update Token Count",
89
- "payload": [
90
- {
91
- "name": "current",
92
- "type": "number",
93
- "required": true
94
- }
95
- ]
96
- },
97
- {
98
- "key": "COMPACT",
99
- "name": "Compact Context"
100
- },
101
- {
102
- "key": "RESET",
103
- "name": "Reset Gauge"
104
- }
105
- ],
106
- "transitions": [
107
- {
108
- "from": "normal",
109
- "to": "normal",
110
- "event": "INIT",
111
- "effects": [
112
- [
113
- "fetch",
114
- "AgentTokenGauge"
115
- ],
116
- [
117
- "render-ui",
118
- "main",
119
- {
120
- "type": "stack",
121
- "direction": "vertical",
122
- "gap": "lg",
123
- "children": [
124
- {
125
- "type": "stack",
126
- "direction": "horizontal",
127
- "gap": "sm",
128
- "align": "center",
129
- "children": [
130
- {
131
- "type": "icon",
132
- "name": "gauge",
133
- "size": "lg"
134
- },
135
- {
136
- "type": "typography",
137
- "content": "Token Usage",
138
- "variant": "h2"
139
- },
140
- {
141
- "type": "badge",
142
- "label": "Normal",
143
- "variant": "default"
144
- }
145
- ]
146
- },
147
- {
148
- "type": "divider"
149
- },
150
- {
151
- "type": "progress-bar",
152
- "value": "@entity.current",
153
- "max": "@entity.max"
154
- },
155
- {
156
- "type": "stack",
157
- "direction": "horizontal",
158
- "gap": "md",
159
- "children": [
160
- {
161
- "type": "stat-display",
162
- "label": "Tokens Used",
163
- "value": "@entity.current"
164
- },
165
- {
166
- "type": "stat-display",
167
- "label": "Max Tokens",
168
- "value": "@entity.max"
169
- }
170
- ]
171
- },
172
- {
173
- "type": "button",
174
- "label": "Reset",
175
- "event": "RESET",
176
- "variant": "ghost",
177
- "icon": "rotate-ccw"
178
- }
179
- ]
180
- }
181
- ]
182
- ]
183
- },
184
- {
185
- "from": "normal",
186
- "to": "normal",
187
- "event": "UPDATE",
188
- "guard": [
189
- "<",
190
- [
191
- "/",
192
- "@payload.current",
193
- "@entity.max"
194
- ],
195
- 0.85
196
- ],
197
- "effects": [
198
- [
199
- "set",
200
- "@entity.current",
201
- "@payload.current"
202
- ],
203
- [
204
- "render-ui",
205
- "main",
206
- {
207
- "type": "stack",
208
- "direction": "vertical",
209
- "gap": "lg",
210
- "children": [
211
- {
212
- "type": "stack",
213
- "direction": "horizontal",
214
- "gap": "sm",
215
- "align": "center",
216
- "children": [
217
- {
218
- "type": "icon",
219
- "name": "gauge",
220
- "size": "lg"
221
- },
222
- {
223
- "type": "typography",
224
- "content": "Token Usage",
225
- "variant": "h2"
226
- },
227
- {
228
- "type": "badge",
229
- "label": "Normal",
230
- "variant": "default"
231
- }
232
- ]
233
- },
234
- {
235
- "type": "divider"
236
- },
237
- {
238
- "type": "progress-bar",
239
- "value": "@entity.current",
240
- "max": "@entity.max"
241
- },
242
- {
243
- "type": "stack",
244
- "direction": "horizontal",
245
- "gap": "md",
246
- "children": [
247
- {
248
- "type": "stat-display",
249
- "label": "Tokens Used",
250
- "value": "@entity.current"
251
- },
252
- {
253
- "type": "stat-display",
254
- "label": "Max Tokens",
255
- "value": "@entity.max"
256
- }
257
- ]
258
- },
259
- {
260
- "type": "button",
261
- "label": "Reset",
262
- "event": "RESET",
263
- "variant": "ghost",
264
- "icon": "rotate-ccw"
265
- }
266
- ]
267
- }
268
- ]
269
- ]
270
- },
271
- {
272
- "from": "normal",
273
- "to": "warning",
274
- "event": "UPDATE",
275
- "guard": [
276
- "and",
277
- [
278
- ">=",
279
- [
280
- "/",
281
- "@payload.current",
282
- "@entity.max"
283
- ],
284
- 0.85
285
- ],
286
- [
287
- "<",
288
- [
289
- "/",
290
- "@payload.current",
291
- "@entity.max"
292
- ],
293
- 0.95
294
- ]
295
- ],
296
- "effects": [
297
- [
298
- "set",
299
- "@entity.current",
300
- "@payload.current"
301
- ],
302
- [
303
- "render-ui",
304
- "main",
305
- {
306
- "type": "stack",
307
- "direction": "vertical",
308
- "gap": "lg",
309
- "children": [
310
- {
311
- "type": "stack",
312
- "direction": "horizontal",
313
- "gap": "sm",
314
- "align": "center",
315
- "children": [
316
- {
317
- "type": "icon",
318
- "name": "alert-triangle",
319
- "size": "lg"
320
- },
321
- {
322
- "type": "typography",
323
- "content": "Token Usage",
324
- "variant": "h2"
325
- },
326
- {
327
- "type": "badge",
328
- "label": "Warning",
329
- "variant": "warning"
330
- }
331
- ]
332
- },
333
- {
334
- "type": "divider"
335
- },
336
- {
337
- "type": "alert",
338
- "variant": "warning",
339
- "message": "Token usage approaching limit. Consider compacting."
340
- },
341
- {
342
- "type": "progress-bar",
343
- "value": "@entity.current",
344
- "max": "@entity.max"
345
- },
346
- {
347
- "type": "stack",
348
- "direction": "horizontal",
349
- "gap": "md",
350
- "children": [
351
- {
352
- "type": "stat-display",
353
- "label": "Tokens Used",
354
- "value": "@entity.current"
355
- },
356
- {
357
- "type": "stat-display",
358
- "label": "Max Tokens",
359
- "value": "@entity.max"
360
- }
361
- ]
362
- },
363
- {
364
- "type": "stack",
365
- "direction": "horizontal",
366
- "gap": "sm",
367
- "children": [
368
- {
369
- "type": "button",
370
- "label": "Compact",
371
- "event": "COMPACT",
372
- "variant": "primary",
373
- "icon": "minimize-2"
374
- },
375
- {
376
- "type": "button",
377
- "label": "Reset",
378
- "event": "RESET",
379
- "variant": "ghost",
380
- "icon": "rotate-ccw"
381
- }
382
- ]
383
- }
384
- ]
385
- }
386
- ]
387
- ]
388
- },
389
- {
390
- "from": "normal",
391
- "to": "critical",
392
- "event": "UPDATE",
393
- "guard": [
394
- ">=",
395
- [
396
- "/",
397
- "@payload.current",
398
- "@entity.max"
399
- ],
400
- 0.95
401
- ],
402
- "effects": [
403
- [
404
- "set",
405
- "@entity.current",
406
- "@payload.current"
407
- ],
408
- [
409
- "render-ui",
410
- "main",
411
- {
412
- "type": "stack",
413
- "direction": "vertical",
414
- "gap": "lg",
415
- "children": [
416
- {
417
- "type": "stack",
418
- "direction": "horizontal",
419
- "gap": "sm",
420
- "align": "center",
421
- "children": [
422
- {
423
- "type": "icon",
424
- "name": "alert-octagon",
425
- "size": "lg"
426
- },
427
- {
428
- "type": "typography",
429
- "content": "Token Usage",
430
- "variant": "h2"
431
- },
432
- {
433
- "type": "badge",
434
- "label": "Critical",
435
- "variant": "destructive"
436
- }
437
- ]
438
- },
439
- {
440
- "type": "divider"
441
- },
442
- {
443
- "type": "alert",
444
- "variant": "error",
445
- "message": "Token usage critical. Compact immediately to avoid truncation."
446
- },
447
- {
448
- "type": "progress-bar",
449
- "value": "@entity.current",
450
- "max": "@entity.max"
451
- },
452
- {
453
- "type": "stack",
454
- "direction": "horizontal",
455
- "gap": "md",
456
- "children": [
457
- {
458
- "type": "stat-display",
459
- "label": "Tokens Used",
460
- "value": "@entity.current"
461
- },
462
- {
463
- "type": "stat-display",
464
- "label": "Max Tokens",
465
- "value": "@entity.max"
466
- }
467
- ]
468
- },
469
- {
470
- "type": "stack",
471
- "direction": "horizontal",
472
- "gap": "sm",
473
- "children": [
474
- {
475
- "type": "button",
476
- "label": "Compact Now",
477
- "event": "COMPACT",
478
- "variant": "primary",
479
- "icon": "minimize-2"
480
- },
481
- {
482
- "type": "button",
483
- "label": "Reset",
484
- "event": "RESET",
485
- "variant": "ghost",
486
- "icon": "rotate-ccw"
487
- }
488
- ]
489
- }
490
- ]
491
- }
492
- ]
493
- ]
494
- },
495
- {
496
- "from": "warning",
497
- "to": "warning",
498
- "event": "UPDATE",
499
- "guard": [
500
- "and",
501
- [
502
- ">=",
503
- [
504
- "/",
505
- "@payload.current",
506
- "@entity.max"
507
- ],
508
- 0.85
509
- ],
510
- [
511
- "<",
512
- [
513
- "/",
514
- "@payload.current",
515
- "@entity.max"
516
- ],
517
- 0.95
518
- ]
519
- ],
520
- "effects": [
521
- [
522
- "set",
523
- "@entity.current",
524
- "@payload.current"
525
- ],
526
- [
527
- "render-ui",
528
- "main",
529
- {
530
- "type": "stack",
531
- "direction": "vertical",
532
- "gap": "lg",
533
- "children": [
534
- {
535
- "type": "stack",
536
- "direction": "horizontal",
537
- "gap": "sm",
538
- "align": "center",
539
- "children": [
540
- {
541
- "type": "icon",
542
- "name": "alert-triangle",
543
- "size": "lg"
544
- },
545
- {
546
- "type": "typography",
547
- "content": "Token Usage",
548
- "variant": "h2"
549
- },
550
- {
551
- "type": "badge",
552
- "label": "Warning",
553
- "variant": "warning"
554
- }
555
- ]
556
- },
557
- {
558
- "type": "divider"
559
- },
560
- {
561
- "type": "alert",
562
- "variant": "warning",
563
- "message": "Token usage approaching limit. Consider compacting."
564
- },
565
- {
566
- "type": "progress-bar",
567
- "value": "@entity.current",
568
- "max": "@entity.max"
569
- },
570
- {
571
- "type": "stack",
572
- "direction": "horizontal",
573
- "gap": "md",
574
- "children": [
575
- {
576
- "type": "stat-display",
577
- "label": "Tokens Used",
578
- "value": "@entity.current"
579
- },
580
- {
581
- "type": "stat-display",
582
- "label": "Max Tokens",
583
- "value": "@entity.max"
584
- }
585
- ]
586
- },
587
- {
588
- "type": "stack",
589
- "direction": "horizontal",
590
- "gap": "sm",
591
- "children": [
592
- {
593
- "type": "button",
594
- "label": "Compact",
595
- "event": "COMPACT",
596
- "variant": "primary",
597
- "icon": "minimize-2"
598
- },
599
- {
600
- "type": "button",
601
- "label": "Reset",
602
- "event": "RESET",
603
- "variant": "ghost",
604
- "icon": "rotate-ccw"
605
- }
606
- ]
607
- }
608
- ]
609
- }
610
- ]
611
- ]
612
- },
613
- {
614
- "from": "warning",
615
- "to": "critical",
616
- "event": "UPDATE",
617
- "guard": [
618
- ">=",
619
- [
620
- "/",
621
- "@payload.current",
622
- "@entity.max"
623
- ],
624
- 0.95
625
- ],
626
- "effects": [
627
- [
628
- "set",
629
- "@entity.current",
630
- "@payload.current"
631
- ],
632
- [
633
- "render-ui",
634
- "main",
635
- {
636
- "type": "stack",
637
- "direction": "vertical",
638
- "gap": "lg",
639
- "children": [
640
- {
641
- "type": "stack",
642
- "direction": "horizontal",
643
- "gap": "sm",
644
- "align": "center",
645
- "children": [
646
- {
647
- "type": "icon",
648
- "name": "alert-octagon",
649
- "size": "lg"
650
- },
651
- {
652
- "type": "typography",
653
- "content": "Token Usage",
654
- "variant": "h2"
655
- },
656
- {
657
- "type": "badge",
658
- "label": "Critical",
659
- "variant": "destructive"
660
- }
661
- ]
662
- },
663
- {
664
- "type": "divider"
665
- },
666
- {
667
- "type": "alert",
668
- "variant": "error",
669
- "message": "Token usage critical. Compact immediately to avoid truncation."
670
- },
671
- {
672
- "type": "progress-bar",
673
- "value": "@entity.current",
674
- "max": "@entity.max"
675
- },
676
- {
677
- "type": "stack",
678
- "direction": "horizontal",
679
- "gap": "md",
680
- "children": [
681
- {
682
- "type": "stat-display",
683
- "label": "Tokens Used",
684
- "value": "@entity.current"
685
- },
686
- {
687
- "type": "stat-display",
688
- "label": "Max Tokens",
689
- "value": "@entity.max"
690
- }
691
- ]
692
- },
693
- {
694
- "type": "stack",
695
- "direction": "horizontal",
696
- "gap": "sm",
697
- "children": [
698
- {
699
- "type": "button",
700
- "label": "Compact Now",
701
- "event": "COMPACT",
702
- "variant": "primary",
703
- "icon": "minimize-2"
704
- },
705
- {
706
- "type": "button",
707
- "label": "Reset",
708
- "event": "RESET",
709
- "variant": "ghost",
710
- "icon": "rotate-ccw"
711
- }
712
- ]
713
- }
714
- ]
715
- }
716
- ]
717
- ]
718
- },
719
- {
720
- "from": "warning",
721
- "to": "normal",
722
- "event": "UPDATE",
723
- "guard": [
724
- "<",
725
- [
726
- "/",
727
- "@payload.current",
728
- "@entity.max"
729
- ],
730
- 0.85
731
- ],
732
- "effects": [
733
- [
734
- "set",
735
- "@entity.current",
736
- "@payload.current"
737
- ],
738
- [
739
- "render-ui",
740
- "main",
741
- {
742
- "type": "stack",
743
- "direction": "vertical",
744
- "gap": "lg",
745
- "children": [
746
- {
747
- "type": "stack",
748
- "direction": "horizontal",
749
- "gap": "sm",
750
- "align": "center",
751
- "children": [
752
- {
753
- "type": "icon",
754
- "name": "gauge",
755
- "size": "lg"
756
- },
757
- {
758
- "type": "typography",
759
- "content": "Token Usage",
760
- "variant": "h2"
761
- },
762
- {
763
- "type": "badge",
764
- "label": "Normal",
765
- "variant": "default"
766
- }
767
- ]
768
- },
769
- {
770
- "type": "divider"
771
- },
772
- {
773
- "type": "progress-bar",
774
- "value": "@entity.current",
775
- "max": "@entity.max"
776
- },
777
- {
778
- "type": "stack",
779
- "direction": "horizontal",
780
- "gap": "md",
781
- "children": [
782
- {
783
- "type": "stat-display",
784
- "label": "Tokens Used",
785
- "value": "@entity.current"
786
- },
787
- {
788
- "type": "stat-display",
789
- "label": "Max Tokens",
790
- "value": "@entity.max"
791
- }
792
- ]
793
- },
794
- {
795
- "type": "button",
796
- "label": "Reset",
797
- "event": "RESET",
798
- "variant": "ghost",
799
- "icon": "rotate-ccw"
800
- }
801
- ]
802
- }
803
- ]
804
- ]
805
- },
806
- {
807
- "from": "critical",
808
- "to": "critical",
809
- "event": "UPDATE",
810
- "guard": [
811
- ">=",
812
- [
813
- "/",
814
- "@payload.current",
815
- "@entity.max"
816
- ],
817
- 0.95
818
- ],
819
- "effects": [
820
- [
821
- "set",
822
- "@entity.current",
823
- "@payload.current"
824
- ],
825
- [
826
- "render-ui",
827
- "main",
828
- {
829
- "type": "stack",
830
- "direction": "vertical",
831
- "gap": "lg",
832
- "children": [
833
- {
834
- "type": "stack",
835
- "direction": "horizontal",
836
- "gap": "sm",
837
- "align": "center",
838
- "children": [
839
- {
840
- "type": "icon",
841
- "name": "alert-octagon",
842
- "size": "lg"
843
- },
844
- {
845
- "type": "typography",
846
- "content": "Token Usage",
847
- "variant": "h2"
848
- },
849
- {
850
- "type": "badge",
851
- "label": "Critical",
852
- "variant": "destructive"
853
- }
854
- ]
855
- },
856
- {
857
- "type": "divider"
858
- },
859
- {
860
- "type": "alert",
861
- "variant": "error",
862
- "message": "Token usage critical. Compact immediately to avoid truncation."
863
- },
864
- {
865
- "type": "progress-bar",
866
- "value": "@entity.current",
867
- "max": "@entity.max"
868
- },
869
- {
870
- "type": "stack",
871
- "direction": "horizontal",
872
- "gap": "md",
873
- "children": [
874
- {
875
- "type": "stat-display",
876
- "label": "Tokens Used",
877
- "value": "@entity.current"
878
- },
879
- {
880
- "type": "stat-display",
881
- "label": "Max Tokens",
882
- "value": "@entity.max"
883
- }
884
- ]
885
- },
886
- {
887
- "type": "stack",
888
- "direction": "horizontal",
889
- "gap": "sm",
890
- "children": [
891
- {
892
- "type": "button",
893
- "label": "Compact Now",
894
- "event": "COMPACT",
895
- "variant": "primary",
896
- "icon": "minimize-2"
897
- },
898
- {
899
- "type": "button",
900
- "label": "Reset",
901
- "event": "RESET",
902
- "variant": "ghost",
903
- "icon": "rotate-ccw"
904
- }
905
- ]
906
- }
907
- ]
908
- }
909
- ]
910
- ]
911
- },
912
- {
913
- "from": "critical",
914
- "to": "warning",
915
- "event": "UPDATE",
916
- "guard": [
917
- "and",
918
- [
919
- ">=",
920
- [
921
- "/",
922
- "@payload.current",
923
- "@entity.max"
924
- ],
925
- 0.85
926
- ],
927
- [
928
- "<",
929
- [
930
- "/",
931
- "@payload.current",
932
- "@entity.max"
933
- ],
934
- 0.95
935
- ]
936
- ],
937
- "effects": [
938
- [
939
- "set",
940
- "@entity.current",
941
- "@payload.current"
942
- ],
943
- [
944
- "render-ui",
945
- "main",
946
- {
947
- "type": "stack",
948
- "direction": "vertical",
949
- "gap": "lg",
950
- "children": [
951
- {
952
- "type": "stack",
953
- "direction": "horizontal",
954
- "gap": "sm",
955
- "align": "center",
956
- "children": [
957
- {
958
- "type": "icon",
959
- "name": "alert-triangle",
960
- "size": "lg"
961
- },
962
- {
963
- "type": "typography",
964
- "content": "Token Usage",
965
- "variant": "h2"
966
- },
967
- {
968
- "type": "badge",
969
- "label": "Warning",
970
- "variant": "warning"
971
- }
972
- ]
973
- },
974
- {
975
- "type": "divider"
976
- },
977
- {
978
- "type": "alert",
979
- "variant": "warning",
980
- "message": "Token usage approaching limit. Consider compacting."
981
- },
982
- {
983
- "type": "progress-bar",
984
- "value": "@entity.current",
985
- "max": "@entity.max"
986
- },
987
- {
988
- "type": "stack",
989
- "direction": "horizontal",
990
- "gap": "md",
991
- "children": [
992
- {
993
- "type": "stat-display",
994
- "label": "Tokens Used",
995
- "value": "@entity.current"
996
- },
997
- {
998
- "type": "stat-display",
999
- "label": "Max Tokens",
1000
- "value": "@entity.max"
1001
- }
1002
- ]
1003
- },
1004
- {
1005
- "type": "stack",
1006
- "direction": "horizontal",
1007
- "gap": "sm",
1008
- "children": [
1009
- {
1010
- "type": "button",
1011
- "label": "Compact",
1012
- "event": "COMPACT",
1013
- "variant": "primary",
1014
- "icon": "minimize-2"
1015
- },
1016
- {
1017
- "type": "button",
1018
- "label": "Reset",
1019
- "event": "RESET",
1020
- "variant": "ghost",
1021
- "icon": "rotate-ccw"
1022
- }
1023
- ]
1024
- }
1025
- ]
1026
- }
1027
- ]
1028
- ]
1029
- },
1030
- {
1031
- "from": "critical",
1032
- "to": "normal",
1033
- "event": "UPDATE",
1034
- "guard": [
1035
- "<",
1036
- [
1037
- "/",
1038
- "@payload.current",
1039
- "@entity.max"
1040
- ],
1041
- 0.85
1042
- ],
1043
- "effects": [
1044
- [
1045
- "set",
1046
- "@entity.current",
1047
- "@payload.current"
1048
- ],
1049
- [
1050
- "render-ui",
1051
- "main",
1052
- {
1053
- "type": "stack",
1054
- "direction": "vertical",
1055
- "gap": "lg",
1056
- "children": [
1057
- {
1058
- "type": "stack",
1059
- "direction": "horizontal",
1060
- "gap": "sm",
1061
- "align": "center",
1062
- "children": [
1063
- {
1064
- "type": "icon",
1065
- "name": "gauge",
1066
- "size": "lg"
1067
- },
1068
- {
1069
- "type": "typography",
1070
- "content": "Token Usage",
1071
- "variant": "h2"
1072
- },
1073
- {
1074
- "type": "badge",
1075
- "label": "Normal",
1076
- "variant": "default"
1077
- }
1078
- ]
1079
- },
1080
- {
1081
- "type": "divider"
1082
- },
1083
- {
1084
- "type": "progress-bar",
1085
- "value": "@entity.current",
1086
- "max": "@entity.max"
1087
- },
1088
- {
1089
- "type": "stack",
1090
- "direction": "horizontal",
1091
- "gap": "md",
1092
- "children": [
1093
- {
1094
- "type": "stat-display",
1095
- "label": "Tokens Used",
1096
- "value": "@entity.current"
1097
- },
1098
- {
1099
- "type": "stat-display",
1100
- "label": "Max Tokens",
1101
- "value": "@entity.max"
1102
- }
1103
- ]
1104
- },
1105
- {
1106
- "type": "button",
1107
- "label": "Reset",
1108
- "event": "RESET",
1109
- "variant": "ghost",
1110
- "icon": "rotate-ccw"
1111
- }
1112
- ]
1113
- }
1114
- ]
1115
- ]
1116
- },
1117
- {
1118
- "from": "normal",
1119
- "to": "normal",
1120
- "event": "COMPACT",
1121
- "effects": [
1122
- [
1123
- "agent/compact"
1124
- ],
1125
- [
1126
- "set",
1127
- "@entity.lastCompactedAt",
1128
- "@now"
1129
- ],
1130
- [
1131
- "agent/token-count"
1132
- ],
1133
- [
1134
- "render-ui",
1135
- "main",
1136
- {
1137
- "type": "stack",
1138
- "direction": "vertical",
1139
- "gap": "lg",
1140
- "children": [
1141
- {
1142
- "type": "stack",
1143
- "direction": "horizontal",
1144
- "gap": "sm",
1145
- "align": "center",
1146
- "children": [
1147
- {
1148
- "type": "icon",
1149
- "name": "gauge",
1150
- "size": "lg"
1151
- },
1152
- {
1153
- "type": "typography",
1154
- "content": "Token Usage",
1155
- "variant": "h2"
1156
- },
1157
- {
1158
- "type": "badge",
1159
- "label": "Normal",
1160
- "variant": "default"
1161
- }
1162
- ]
1163
- },
1164
- {
1165
- "type": "divider"
1166
- },
1167
- {
1168
- "type": "progress-bar",
1169
- "value": "@entity.current",
1170
- "max": "@entity.max"
1171
- },
1172
- {
1173
- "type": "stack",
1174
- "direction": "horizontal",
1175
- "gap": "md",
1176
- "children": [
1177
- {
1178
- "type": "stat-display",
1179
- "label": "Tokens Used",
1180
- "value": "@entity.current"
1181
- },
1182
- {
1183
- "type": "stat-display",
1184
- "label": "Max Tokens",
1185
- "value": "@entity.max"
1186
- }
1187
- ]
1188
- },
1189
- {
1190
- "type": "button",
1191
- "label": "Reset",
1192
- "event": "RESET",
1193
- "variant": "ghost",
1194
- "icon": "rotate-ccw"
1195
- }
1196
- ]
1197
- }
1198
- ]
1199
- ]
1200
- },
1201
- {
1202
- "from": "warning",
1203
- "to": "normal",
1204
- "event": "COMPACT",
1205
- "effects": [
1206
- [
1207
- "agent/compact"
1208
- ],
1209
- [
1210
- "set",
1211
- "@entity.lastCompactedAt",
1212
- "@now"
1213
- ],
1214
- [
1215
- "agent/token-count"
1216
- ],
1217
- [
1218
- "render-ui",
1219
- "main",
1220
- {
1221
- "type": "stack",
1222
- "direction": "vertical",
1223
- "gap": "lg",
1224
- "children": [
1225
- {
1226
- "type": "stack",
1227
- "direction": "horizontal",
1228
- "gap": "sm",
1229
- "align": "center",
1230
- "children": [
1231
- {
1232
- "type": "icon",
1233
- "name": "gauge",
1234
- "size": "lg"
1235
- },
1236
- {
1237
- "type": "typography",
1238
- "content": "Token Usage",
1239
- "variant": "h2"
1240
- },
1241
- {
1242
- "type": "badge",
1243
- "label": "Normal",
1244
- "variant": "default"
1245
- }
1246
- ]
1247
- },
1248
- {
1249
- "type": "divider"
1250
- },
1251
- {
1252
- "type": "progress-bar",
1253
- "value": "@entity.current",
1254
- "max": "@entity.max"
1255
- },
1256
- {
1257
- "type": "stack",
1258
- "direction": "horizontal",
1259
- "gap": "md",
1260
- "children": [
1261
- {
1262
- "type": "stat-display",
1263
- "label": "Tokens Used",
1264
- "value": "@entity.current"
1265
- },
1266
- {
1267
- "type": "stat-display",
1268
- "label": "Max Tokens",
1269
- "value": "@entity.max"
1270
- }
1271
- ]
1272
- },
1273
- {
1274
- "type": "button",
1275
- "label": "Reset",
1276
- "event": "RESET",
1277
- "variant": "ghost",
1278
- "icon": "rotate-ccw"
1279
- }
1280
- ]
1281
- }
1282
- ]
1283
- ]
1284
- },
1285
- {
1286
- "from": "critical",
1287
- "to": "normal",
1288
- "event": "COMPACT",
1289
- "effects": [
1290
- [
1291
- "agent/compact"
1292
- ],
1293
- [
1294
- "set",
1295
- "@entity.lastCompactedAt",
1296
- "@now"
1297
- ],
1298
- [
1299
- "agent/token-count"
1300
- ],
1301
- [
1302
- "render-ui",
1303
- "main",
1304
- {
1305
- "type": "stack",
1306
- "direction": "vertical",
1307
- "gap": "lg",
1308
- "children": [
1309
- {
1310
- "type": "stack",
1311
- "direction": "horizontal",
1312
- "gap": "sm",
1313
- "align": "center",
1314
- "children": [
1315
- {
1316
- "type": "icon",
1317
- "name": "gauge",
1318
- "size": "lg"
1319
- },
1320
- {
1321
- "type": "typography",
1322
- "content": "Token Usage",
1323
- "variant": "h2"
1324
- },
1325
- {
1326
- "type": "badge",
1327
- "label": "Normal",
1328
- "variant": "default"
1329
- }
1330
- ]
1331
- },
1332
- {
1333
- "type": "divider"
1334
- },
1335
- {
1336
- "type": "progress-bar",
1337
- "value": "@entity.current",
1338
- "max": "@entity.max"
1339
- },
1340
- {
1341
- "type": "stack",
1342
- "direction": "horizontal",
1343
- "gap": "md",
1344
- "children": [
1345
- {
1346
- "type": "stat-display",
1347
- "label": "Tokens Used",
1348
- "value": "@entity.current"
1349
- },
1350
- {
1351
- "type": "stat-display",
1352
- "label": "Max Tokens",
1353
- "value": "@entity.max"
1354
- }
1355
- ]
1356
- },
1357
- {
1358
- "type": "button",
1359
- "label": "Reset",
1360
- "event": "RESET",
1361
- "variant": "ghost",
1362
- "icon": "rotate-ccw"
1363
- }
1364
- ]
1365
- }
1366
- ]
1367
- ]
1368
- },
1369
- {
1370
- "from": "normal",
1371
- "to": "normal",
1372
- "event": "RESET",
1373
- "effects": [
1374
- [
1375
- "set",
1376
- "@entity.current",
1377
- 0
1378
- ],
1379
- [
1380
- "render-ui",
1381
- "main",
1382
- {
1383
- "type": "stack",
1384
- "direction": "vertical",
1385
- "gap": "lg",
1386
- "children": [
1387
- {
1388
- "type": "stack",
1389
- "direction": "horizontal",
1390
- "gap": "sm",
1391
- "align": "center",
1392
- "children": [
1393
- {
1394
- "type": "icon",
1395
- "name": "gauge",
1396
- "size": "lg"
1397
- },
1398
- {
1399
- "type": "typography",
1400
- "content": "Token Usage",
1401
- "variant": "h2"
1402
- },
1403
- {
1404
- "type": "badge",
1405
- "label": "Normal",
1406
- "variant": "default"
1407
- }
1408
- ]
1409
- },
1410
- {
1411
- "type": "divider"
1412
- },
1413
- {
1414
- "type": "progress-bar",
1415
- "value": "@entity.current",
1416
- "max": "@entity.max"
1417
- },
1418
- {
1419
- "type": "stack",
1420
- "direction": "horizontal",
1421
- "gap": "md",
1422
- "children": [
1423
- {
1424
- "type": "stat-display",
1425
- "label": "Tokens Used",
1426
- "value": "@entity.current"
1427
- },
1428
- {
1429
- "type": "stat-display",
1430
- "label": "Max Tokens",
1431
- "value": "@entity.max"
1432
- }
1433
- ]
1434
- },
1435
- {
1436
- "type": "button",
1437
- "label": "Reset",
1438
- "event": "RESET",
1439
- "variant": "ghost",
1440
- "icon": "rotate-ccw"
1441
- }
1442
- ]
1443
- }
1444
- ]
1445
- ]
1446
- },
1447
- {
1448
- "from": "warning",
1449
- "to": "normal",
1450
- "event": "RESET",
1451
- "effects": [
1452
- [
1453
- "set",
1454
- "@entity.current",
1455
- 0
1456
- ],
1457
- [
1458
- "render-ui",
1459
- "main",
1460
- {
1461
- "type": "stack",
1462
- "direction": "vertical",
1463
- "gap": "lg",
1464
- "children": [
1465
- {
1466
- "type": "stack",
1467
- "direction": "horizontal",
1468
- "gap": "sm",
1469
- "align": "center",
1470
- "children": [
1471
- {
1472
- "type": "icon",
1473
- "name": "gauge",
1474
- "size": "lg"
1475
- },
1476
- {
1477
- "type": "typography",
1478
- "content": "Token Usage",
1479
- "variant": "h2"
1480
- },
1481
- {
1482
- "type": "badge",
1483
- "label": "Normal",
1484
- "variant": "default"
1485
- }
1486
- ]
1487
- },
1488
- {
1489
- "type": "divider"
1490
- },
1491
- {
1492
- "type": "progress-bar",
1493
- "value": "@entity.current",
1494
- "max": "@entity.max"
1495
- },
1496
- {
1497
- "type": "stack",
1498
- "direction": "horizontal",
1499
- "gap": "md",
1500
- "children": [
1501
- {
1502
- "type": "stat-display",
1503
- "label": "Tokens Used",
1504
- "value": "@entity.current"
1505
- },
1506
- {
1507
- "type": "stat-display",
1508
- "label": "Max Tokens",
1509
- "value": "@entity.max"
1510
- }
1511
- ]
1512
- },
1513
- {
1514
- "type": "button",
1515
- "label": "Reset",
1516
- "event": "RESET",
1517
- "variant": "ghost",
1518
- "icon": "rotate-ccw"
1519
- }
1520
- ]
1521
- }
1522
- ]
1523
- ]
1524
- },
1525
- {
1526
- "from": "critical",
1527
- "to": "normal",
1528
- "event": "RESET",
1529
- "effects": [
1530
- [
1531
- "set",
1532
- "@entity.current",
1533
- 0
1534
- ],
1535
- [
1536
- "render-ui",
1537
- "main",
1538
- {
1539
- "type": "stack",
1540
- "direction": "vertical",
1541
- "gap": "lg",
1542
- "children": [
1543
- {
1544
- "type": "stack",
1545
- "direction": "horizontal",
1546
- "gap": "sm",
1547
- "align": "center",
1548
- "children": [
1549
- {
1550
- "type": "icon",
1551
- "name": "gauge",
1552
- "size": "lg"
1553
- },
1554
- {
1555
- "type": "typography",
1556
- "content": "Token Usage",
1557
- "variant": "h2"
1558
- },
1559
- {
1560
- "type": "badge",
1561
- "label": "Normal",
1562
- "variant": "default"
1563
- }
1564
- ]
1565
- },
1566
- {
1567
- "type": "divider"
1568
- },
1569
- {
1570
- "type": "progress-bar",
1571
- "value": "@entity.current",
1572
- "max": "@entity.max"
1573
- },
1574
- {
1575
- "type": "stack",
1576
- "direction": "horizontal",
1577
- "gap": "md",
1578
- "children": [
1579
- {
1580
- "type": "stat-display",
1581
- "label": "Tokens Used",
1582
- "value": "@entity.current"
1583
- },
1584
- {
1585
- "type": "stat-display",
1586
- "label": "Max Tokens",
1587
- "value": "@entity.max"
1588
- }
1589
- ]
1590
- },
1591
- {
1592
- "type": "button",
1593
- "label": "Reset",
1594
- "event": "RESET",
1595
- "variant": "ghost",
1596
- "icon": "rotate-ccw"
1597
- }
1598
- ]
1599
- }
1600
- ]
1601
- ]
1602
- }
1603
- ]
1604
- }
1605
- }
1606
- ],
1607
- "pages": [
1608
- {
1609
- "name": "AgentTokenGaugePage",
1610
- "path": "/agenttokengauges",
1611
- "traits": [
1612
- {
1613
- "ref": "AgentTokenGaugeGauge"
1614
- }
1615
- ]
1616
- }
1617
- ]
1618
- }
1619
- ],
1620
- "description": "Token usage display atom with threshold-based state transitions. Shows current token count, usage percentage, and progress bar. Transitions from normal -> warning -> critical based on configurable thresholds. Provides compact and reset actions. (2026-04-08). The canonical source for std behaviors is now the registry `.orb` file at `packages/almadar-std/behaviors/registry/<level>/<name>.orb`, which is generated from this TS source by `tools/almadar-behavior-ts-to-orb/` and consumed by the compiler's embedded loader. Consumers should import behaviors via `.lolo`/`.orb` `uses` declarations and reference them as `Alias.entity` / `Alias.traits.X` / `Alias.pages.X`, applying overrides at the call site (`linkedEntity`, `name`, `events`, `effects`, `listens`, `emitsScope`). The TS `*Params` interface and the exported factory functions remain ONLY as the authoring path for the converter; they are NOT a stable public API and may change without notice. See `docs/Almadar_Orb_Behaviors.md` for the orbital-as-function model and `docs/LOLO_Gaps.md` for the migration plan."
1621
- }