@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,2299 +0,0 @@
1
- {
2
- "name": "AgentContextWindowOrbital",
3
- "version": "1.0.0",
4
- "orbitals": [
5
- {
6
- "name": "AgentContextWindowOrbital",
7
- "entity": {
8
- "name": "AgentContextWindow",
9
- "persistence": "persistent",
10
- "collection": "agentcontextwindows",
11
- "fields": [
12
- {
13
- "name": "id",
14
- "type": "string"
15
- },
16
- {
17
- "name": "name",
18
- "type": "string"
19
- },
20
- {
21
- "name": "description",
22
- "type": "string"
23
- },
24
- {
25
- "name": "status",
26
- "type": "string",
27
- "default": "active",
28
- "values": [
29
- "active",
30
- "inactive",
31
- "pending"
32
- ]
33
- },
34
- {
35
- "name": "createdAt",
36
- "type": "string"
37
- },
38
- {
39
- "name": "pendingId",
40
- "type": "string"
41
- },
42
- {
43
- "name": "tokenCount",
44
- "type": "number",
45
- "default": 0
46
- },
47
- {
48
- "name": "maxTokens",
49
- "type": "number",
50
- "default": 200000
51
- },
52
- {
53
- "name": "usage",
54
- "type": "number",
55
- "default": 0
56
- },
57
- {
58
- "name": "lastCompactedAt",
59
- "type": "string",
60
- "default": ""
61
- },
62
- {
63
- "name": "current",
64
- "type": "number",
65
- "default": 0
66
- },
67
- {
68
- "name": "max",
69
- "type": "number",
70
- "default": 200000
71
- },
72
- {
73
- "name": "threshold",
74
- "type": "number",
75
- "default": 0.85
76
- },
77
- {
78
- "name": "message",
79
- "type": "string",
80
- "default": ""
81
- },
82
- {
83
- "name": "notificationType",
84
- "type": "string",
85
- "default": "info"
86
- }
87
- ]
88
- },
89
- "traits": [
90
- {
91
- "name": "AgentContextWindowGauge",
92
- "linkedEntity": "AgentContextWindow",
93
- "category": "interaction",
94
- "stateMachine": {
95
- "states": [
96
- {
97
- "name": "normal",
98
- "isInitial": true
99
- },
100
- {
101
- "name": "warning"
102
- },
103
- {
104
- "name": "critical"
105
- }
106
- ],
107
- "events": [
108
- {
109
- "key": "INIT",
110
- "name": "Initialize"
111
- },
112
- {
113
- "key": "UPDATE",
114
- "name": "Update Token Count",
115
- "payload": [
116
- {
117
- "name": "current",
118
- "type": "number",
119
- "required": true
120
- }
121
- ]
122
- },
123
- {
124
- "key": "COMPACT",
125
- "name": "Compact Context"
126
- },
127
- {
128
- "key": "RESET",
129
- "name": "Reset Gauge"
130
- }
131
- ],
132
- "transitions": [
133
- {
134
- "from": "normal",
135
- "to": "normal",
136
- "event": "INIT",
137
- "effects": [
138
- [
139
- "fetch",
140
- "AgentContextWindow"
141
- ],
142
- [
143
- "render-ui",
144
- "main",
145
- {
146
- "type": "stack",
147
- "direction": "vertical",
148
- "gap": "lg",
149
- "children": [
150
- {
151
- "type": "stack",
152
- "direction": "horizontal",
153
- "gap": "sm",
154
- "align": "center",
155
- "children": [
156
- {
157
- "type": "icon",
158
- "name": "gauge",
159
- "size": "lg"
160
- },
161
- {
162
- "type": "typography",
163
- "content": "Token Usage",
164
- "variant": "h2"
165
- },
166
- {
167
- "type": "badge",
168
- "label": "Normal",
169
- "variant": "default"
170
- }
171
- ]
172
- },
173
- {
174
- "type": "divider"
175
- },
176
- {
177
- "type": "progress-bar",
178
- "value": "@entity.current",
179
- "max": "@entity.max"
180
- },
181
- {
182
- "type": "stack",
183
- "direction": "horizontal",
184
- "gap": "md",
185
- "children": [
186
- {
187
- "type": "stat-display",
188
- "label": "Tokens Used",
189
- "value": "@entity.current"
190
- },
191
- {
192
- "type": "stat-display",
193
- "label": "Max Tokens",
194
- "value": "@entity.max"
195
- }
196
- ]
197
- },
198
- {
199
- "type": "button",
200
- "label": "Reset",
201
- "event": "RESET",
202
- "variant": "ghost",
203
- "icon": "rotate-ccw"
204
- }
205
- ]
206
- }
207
- ]
208
- ]
209
- },
210
- {
211
- "from": "normal",
212
- "to": "normal",
213
- "event": "UPDATE",
214
- "guard": [
215
- "<",
216
- [
217
- "/",
218
- "@payload.current",
219
- "@entity.max"
220
- ],
221
- 0.85
222
- ],
223
- "effects": [
224
- [
225
- "set",
226
- "@entity.current",
227
- "@payload.current"
228
- ],
229
- [
230
- "render-ui",
231
- "main",
232
- {
233
- "type": "stack",
234
- "direction": "vertical",
235
- "gap": "lg",
236
- "children": [
237
- {
238
- "type": "stack",
239
- "direction": "horizontal",
240
- "gap": "sm",
241
- "align": "center",
242
- "children": [
243
- {
244
- "type": "icon",
245
- "name": "gauge",
246
- "size": "lg"
247
- },
248
- {
249
- "type": "typography",
250
- "content": "Token Usage",
251
- "variant": "h2"
252
- },
253
- {
254
- "type": "badge",
255
- "label": "Normal",
256
- "variant": "default"
257
- }
258
- ]
259
- },
260
- {
261
- "type": "divider"
262
- },
263
- {
264
- "type": "progress-bar",
265
- "value": "@entity.current",
266
- "max": "@entity.max"
267
- },
268
- {
269
- "type": "stack",
270
- "direction": "horizontal",
271
- "gap": "md",
272
- "children": [
273
- {
274
- "type": "stat-display",
275
- "label": "Tokens Used",
276
- "value": "@entity.current"
277
- },
278
- {
279
- "type": "stat-display",
280
- "label": "Max Tokens",
281
- "value": "@entity.max"
282
- }
283
- ]
284
- },
285
- {
286
- "type": "button",
287
- "label": "Reset",
288
- "event": "RESET",
289
- "variant": "ghost",
290
- "icon": "rotate-ccw"
291
- }
292
- ]
293
- }
294
- ]
295
- ]
296
- },
297
- {
298
- "from": "normal",
299
- "to": "warning",
300
- "event": "UPDATE",
301
- "guard": [
302
- "and",
303
- [
304
- ">=",
305
- [
306
- "/",
307
- "@payload.current",
308
- "@entity.max"
309
- ],
310
- 0.85
311
- ],
312
- [
313
- "<",
314
- [
315
- "/",
316
- "@payload.current",
317
- "@entity.max"
318
- ],
319
- 0.95
320
- ]
321
- ],
322
- "effects": [
323
- [
324
- "set",
325
- "@entity.current",
326
- "@payload.current"
327
- ],
328
- [
329
- "render-ui",
330
- "main",
331
- {
332
- "type": "stack",
333
- "direction": "vertical",
334
- "gap": "lg",
335
- "children": [
336
- {
337
- "type": "stack",
338
- "direction": "horizontal",
339
- "gap": "sm",
340
- "align": "center",
341
- "children": [
342
- {
343
- "type": "icon",
344
- "name": "alert-triangle",
345
- "size": "lg"
346
- },
347
- {
348
- "type": "typography",
349
- "content": "Token Usage",
350
- "variant": "h2"
351
- },
352
- {
353
- "type": "badge",
354
- "label": "Warning",
355
- "variant": "warning"
356
- }
357
- ]
358
- },
359
- {
360
- "type": "divider"
361
- },
362
- {
363
- "type": "alert",
364
- "variant": "warning",
365
- "message": "Token usage approaching limit. Consider compacting."
366
- },
367
- {
368
- "type": "progress-bar",
369
- "value": "@entity.current",
370
- "max": "@entity.max"
371
- },
372
- {
373
- "type": "stack",
374
- "direction": "horizontal",
375
- "gap": "md",
376
- "children": [
377
- {
378
- "type": "stat-display",
379
- "label": "Tokens Used",
380
- "value": "@entity.current"
381
- },
382
- {
383
- "type": "stat-display",
384
- "label": "Max Tokens",
385
- "value": "@entity.max"
386
- }
387
- ]
388
- },
389
- {
390
- "type": "stack",
391
- "direction": "horizontal",
392
- "gap": "sm",
393
- "children": [
394
- {
395
- "type": "button",
396
- "label": "Compact",
397
- "event": "COMPACT",
398
- "variant": "primary",
399
- "icon": "minimize-2"
400
- },
401
- {
402
- "type": "button",
403
- "label": "Reset",
404
- "event": "RESET",
405
- "variant": "ghost",
406
- "icon": "rotate-ccw"
407
- }
408
- ]
409
- }
410
- ]
411
- }
412
- ]
413
- ]
414
- },
415
- {
416
- "from": "normal",
417
- "to": "critical",
418
- "event": "UPDATE",
419
- "guard": [
420
- ">=",
421
- [
422
- "/",
423
- "@payload.current",
424
- "@entity.max"
425
- ],
426
- 0.95
427
- ],
428
- "effects": [
429
- [
430
- "set",
431
- "@entity.current",
432
- "@payload.current"
433
- ],
434
- [
435
- "render-ui",
436
- "main",
437
- {
438
- "type": "stack",
439
- "direction": "vertical",
440
- "gap": "lg",
441
- "children": [
442
- {
443
- "type": "stack",
444
- "direction": "horizontal",
445
- "gap": "sm",
446
- "align": "center",
447
- "children": [
448
- {
449
- "type": "icon",
450
- "name": "alert-octagon",
451
- "size": "lg"
452
- },
453
- {
454
- "type": "typography",
455
- "content": "Token Usage",
456
- "variant": "h2"
457
- },
458
- {
459
- "type": "badge",
460
- "label": "Critical",
461
- "variant": "destructive"
462
- }
463
- ]
464
- },
465
- {
466
- "type": "divider"
467
- },
468
- {
469
- "type": "alert",
470
- "variant": "error",
471
- "message": "Token usage critical. Compact immediately to avoid truncation."
472
- },
473
- {
474
- "type": "progress-bar",
475
- "value": "@entity.current",
476
- "max": "@entity.max"
477
- },
478
- {
479
- "type": "stack",
480
- "direction": "horizontal",
481
- "gap": "md",
482
- "children": [
483
- {
484
- "type": "stat-display",
485
- "label": "Tokens Used",
486
- "value": "@entity.current"
487
- },
488
- {
489
- "type": "stat-display",
490
- "label": "Max Tokens",
491
- "value": "@entity.max"
492
- }
493
- ]
494
- },
495
- {
496
- "type": "stack",
497
- "direction": "horizontal",
498
- "gap": "sm",
499
- "children": [
500
- {
501
- "type": "button",
502
- "label": "Compact Now",
503
- "event": "COMPACT",
504
- "variant": "primary",
505
- "icon": "minimize-2"
506
- },
507
- {
508
- "type": "button",
509
- "label": "Reset",
510
- "event": "RESET",
511
- "variant": "ghost",
512
- "icon": "rotate-ccw"
513
- }
514
- ]
515
- }
516
- ]
517
- }
518
- ]
519
- ]
520
- },
521
- {
522
- "from": "warning",
523
- "to": "warning",
524
- "event": "UPDATE",
525
- "guard": [
526
- "and",
527
- [
528
- ">=",
529
- [
530
- "/",
531
- "@payload.current",
532
- "@entity.max"
533
- ],
534
- 0.85
535
- ],
536
- [
537
- "<",
538
- [
539
- "/",
540
- "@payload.current",
541
- "@entity.max"
542
- ],
543
- 0.95
544
- ]
545
- ],
546
- "effects": [
547
- [
548
- "set",
549
- "@entity.current",
550
- "@payload.current"
551
- ],
552
- [
553
- "render-ui",
554
- "main",
555
- {
556
- "type": "stack",
557
- "direction": "vertical",
558
- "gap": "lg",
559
- "children": [
560
- {
561
- "type": "stack",
562
- "direction": "horizontal",
563
- "gap": "sm",
564
- "align": "center",
565
- "children": [
566
- {
567
- "type": "icon",
568
- "name": "alert-triangle",
569
- "size": "lg"
570
- },
571
- {
572
- "type": "typography",
573
- "content": "Token Usage",
574
- "variant": "h2"
575
- },
576
- {
577
- "type": "badge",
578
- "label": "Warning",
579
- "variant": "warning"
580
- }
581
- ]
582
- },
583
- {
584
- "type": "divider"
585
- },
586
- {
587
- "type": "alert",
588
- "variant": "warning",
589
- "message": "Token usage approaching limit. Consider compacting."
590
- },
591
- {
592
- "type": "progress-bar",
593
- "value": "@entity.current",
594
- "max": "@entity.max"
595
- },
596
- {
597
- "type": "stack",
598
- "direction": "horizontal",
599
- "gap": "md",
600
- "children": [
601
- {
602
- "type": "stat-display",
603
- "label": "Tokens Used",
604
- "value": "@entity.current"
605
- },
606
- {
607
- "type": "stat-display",
608
- "label": "Max Tokens",
609
- "value": "@entity.max"
610
- }
611
- ]
612
- },
613
- {
614
- "type": "stack",
615
- "direction": "horizontal",
616
- "gap": "sm",
617
- "children": [
618
- {
619
- "type": "button",
620
- "label": "Compact",
621
- "event": "COMPACT",
622
- "variant": "primary",
623
- "icon": "minimize-2"
624
- },
625
- {
626
- "type": "button",
627
- "label": "Reset",
628
- "event": "RESET",
629
- "variant": "ghost",
630
- "icon": "rotate-ccw"
631
- }
632
- ]
633
- }
634
- ]
635
- }
636
- ]
637
- ]
638
- },
639
- {
640
- "from": "warning",
641
- "to": "critical",
642
- "event": "UPDATE",
643
- "guard": [
644
- ">=",
645
- [
646
- "/",
647
- "@payload.current",
648
- "@entity.max"
649
- ],
650
- 0.95
651
- ],
652
- "effects": [
653
- [
654
- "set",
655
- "@entity.current",
656
- "@payload.current"
657
- ],
658
- [
659
- "render-ui",
660
- "main",
661
- {
662
- "type": "stack",
663
- "direction": "vertical",
664
- "gap": "lg",
665
- "children": [
666
- {
667
- "type": "stack",
668
- "direction": "horizontal",
669
- "gap": "sm",
670
- "align": "center",
671
- "children": [
672
- {
673
- "type": "icon",
674
- "name": "alert-octagon",
675
- "size": "lg"
676
- },
677
- {
678
- "type": "typography",
679
- "content": "Token Usage",
680
- "variant": "h2"
681
- },
682
- {
683
- "type": "badge",
684
- "label": "Critical",
685
- "variant": "destructive"
686
- }
687
- ]
688
- },
689
- {
690
- "type": "divider"
691
- },
692
- {
693
- "type": "alert",
694
- "variant": "error",
695
- "message": "Token usage critical. Compact immediately to avoid truncation."
696
- },
697
- {
698
- "type": "progress-bar",
699
- "value": "@entity.current",
700
- "max": "@entity.max"
701
- },
702
- {
703
- "type": "stack",
704
- "direction": "horizontal",
705
- "gap": "md",
706
- "children": [
707
- {
708
- "type": "stat-display",
709
- "label": "Tokens Used",
710
- "value": "@entity.current"
711
- },
712
- {
713
- "type": "stat-display",
714
- "label": "Max Tokens",
715
- "value": "@entity.max"
716
- }
717
- ]
718
- },
719
- {
720
- "type": "stack",
721
- "direction": "horizontal",
722
- "gap": "sm",
723
- "children": [
724
- {
725
- "type": "button",
726
- "label": "Compact Now",
727
- "event": "COMPACT",
728
- "variant": "primary",
729
- "icon": "minimize-2"
730
- },
731
- {
732
- "type": "button",
733
- "label": "Reset",
734
- "event": "RESET",
735
- "variant": "ghost",
736
- "icon": "rotate-ccw"
737
- }
738
- ]
739
- }
740
- ]
741
- }
742
- ]
743
- ]
744
- },
745
- {
746
- "from": "warning",
747
- "to": "normal",
748
- "event": "UPDATE",
749
- "guard": [
750
- "<",
751
- [
752
- "/",
753
- "@payload.current",
754
- "@entity.max"
755
- ],
756
- 0.85
757
- ],
758
- "effects": [
759
- [
760
- "set",
761
- "@entity.current",
762
- "@payload.current"
763
- ],
764
- [
765
- "render-ui",
766
- "main",
767
- {
768
- "type": "stack",
769
- "direction": "vertical",
770
- "gap": "lg",
771
- "children": [
772
- {
773
- "type": "stack",
774
- "direction": "horizontal",
775
- "gap": "sm",
776
- "align": "center",
777
- "children": [
778
- {
779
- "type": "icon",
780
- "name": "gauge",
781
- "size": "lg"
782
- },
783
- {
784
- "type": "typography",
785
- "content": "Token Usage",
786
- "variant": "h2"
787
- },
788
- {
789
- "type": "badge",
790
- "label": "Normal",
791
- "variant": "default"
792
- }
793
- ]
794
- },
795
- {
796
- "type": "divider"
797
- },
798
- {
799
- "type": "progress-bar",
800
- "value": "@entity.current",
801
- "max": "@entity.max"
802
- },
803
- {
804
- "type": "stack",
805
- "direction": "horizontal",
806
- "gap": "md",
807
- "children": [
808
- {
809
- "type": "stat-display",
810
- "label": "Tokens Used",
811
- "value": "@entity.current"
812
- },
813
- {
814
- "type": "stat-display",
815
- "label": "Max Tokens",
816
- "value": "@entity.max"
817
- }
818
- ]
819
- },
820
- {
821
- "type": "button",
822
- "label": "Reset",
823
- "event": "RESET",
824
- "variant": "ghost",
825
- "icon": "rotate-ccw"
826
- }
827
- ]
828
- }
829
- ]
830
- ]
831
- },
832
- {
833
- "from": "critical",
834
- "to": "critical",
835
- "event": "UPDATE",
836
- "guard": [
837
- ">=",
838
- [
839
- "/",
840
- "@payload.current",
841
- "@entity.max"
842
- ],
843
- 0.95
844
- ],
845
- "effects": [
846
- [
847
- "set",
848
- "@entity.current",
849
- "@payload.current"
850
- ],
851
- [
852
- "render-ui",
853
- "main",
854
- {
855
- "type": "stack",
856
- "direction": "vertical",
857
- "gap": "lg",
858
- "children": [
859
- {
860
- "type": "stack",
861
- "direction": "horizontal",
862
- "gap": "sm",
863
- "align": "center",
864
- "children": [
865
- {
866
- "type": "icon",
867
- "name": "alert-octagon",
868
- "size": "lg"
869
- },
870
- {
871
- "type": "typography",
872
- "content": "Token Usage",
873
- "variant": "h2"
874
- },
875
- {
876
- "type": "badge",
877
- "label": "Critical",
878
- "variant": "destructive"
879
- }
880
- ]
881
- },
882
- {
883
- "type": "divider"
884
- },
885
- {
886
- "type": "alert",
887
- "variant": "error",
888
- "message": "Token usage critical. Compact immediately to avoid truncation."
889
- },
890
- {
891
- "type": "progress-bar",
892
- "value": "@entity.current",
893
- "max": "@entity.max"
894
- },
895
- {
896
- "type": "stack",
897
- "direction": "horizontal",
898
- "gap": "md",
899
- "children": [
900
- {
901
- "type": "stat-display",
902
- "label": "Tokens Used",
903
- "value": "@entity.current"
904
- },
905
- {
906
- "type": "stat-display",
907
- "label": "Max Tokens",
908
- "value": "@entity.max"
909
- }
910
- ]
911
- },
912
- {
913
- "type": "stack",
914
- "direction": "horizontal",
915
- "gap": "sm",
916
- "children": [
917
- {
918
- "type": "button",
919
- "label": "Compact Now",
920
- "event": "COMPACT",
921
- "variant": "primary",
922
- "icon": "minimize-2"
923
- },
924
- {
925
- "type": "button",
926
- "label": "Reset",
927
- "event": "RESET",
928
- "variant": "ghost",
929
- "icon": "rotate-ccw"
930
- }
931
- ]
932
- }
933
- ]
934
- }
935
- ]
936
- ]
937
- },
938
- {
939
- "from": "critical",
940
- "to": "warning",
941
- "event": "UPDATE",
942
- "guard": [
943
- "and",
944
- [
945
- ">=",
946
- [
947
- "/",
948
- "@payload.current",
949
- "@entity.max"
950
- ],
951
- 0.85
952
- ],
953
- [
954
- "<",
955
- [
956
- "/",
957
- "@payload.current",
958
- "@entity.max"
959
- ],
960
- 0.95
961
- ]
962
- ],
963
- "effects": [
964
- [
965
- "set",
966
- "@entity.current",
967
- "@payload.current"
968
- ],
969
- [
970
- "render-ui",
971
- "main",
972
- {
973
- "type": "stack",
974
- "direction": "vertical",
975
- "gap": "lg",
976
- "children": [
977
- {
978
- "type": "stack",
979
- "direction": "horizontal",
980
- "gap": "sm",
981
- "align": "center",
982
- "children": [
983
- {
984
- "type": "icon",
985
- "name": "alert-triangle",
986
- "size": "lg"
987
- },
988
- {
989
- "type": "typography",
990
- "content": "Token Usage",
991
- "variant": "h2"
992
- },
993
- {
994
- "type": "badge",
995
- "label": "Warning",
996
- "variant": "warning"
997
- }
998
- ]
999
- },
1000
- {
1001
- "type": "divider"
1002
- },
1003
- {
1004
- "type": "alert",
1005
- "variant": "warning",
1006
- "message": "Token usage approaching limit. Consider compacting."
1007
- },
1008
- {
1009
- "type": "progress-bar",
1010
- "value": "@entity.current",
1011
- "max": "@entity.max"
1012
- },
1013
- {
1014
- "type": "stack",
1015
- "direction": "horizontal",
1016
- "gap": "md",
1017
- "children": [
1018
- {
1019
- "type": "stat-display",
1020
- "label": "Tokens Used",
1021
- "value": "@entity.current"
1022
- },
1023
- {
1024
- "type": "stat-display",
1025
- "label": "Max Tokens",
1026
- "value": "@entity.max"
1027
- }
1028
- ]
1029
- },
1030
- {
1031
- "type": "stack",
1032
- "direction": "horizontal",
1033
- "gap": "sm",
1034
- "children": [
1035
- {
1036
- "type": "button",
1037
- "label": "Compact",
1038
- "event": "COMPACT",
1039
- "variant": "primary",
1040
- "icon": "minimize-2"
1041
- },
1042
- {
1043
- "type": "button",
1044
- "label": "Reset",
1045
- "event": "RESET",
1046
- "variant": "ghost",
1047
- "icon": "rotate-ccw"
1048
- }
1049
- ]
1050
- }
1051
- ]
1052
- }
1053
- ]
1054
- ]
1055
- },
1056
- {
1057
- "from": "critical",
1058
- "to": "normal",
1059
- "event": "UPDATE",
1060
- "guard": [
1061
- "<",
1062
- [
1063
- "/",
1064
- "@payload.current",
1065
- "@entity.max"
1066
- ],
1067
- 0.85
1068
- ],
1069
- "effects": [
1070
- [
1071
- "set",
1072
- "@entity.current",
1073
- "@payload.current"
1074
- ],
1075
- [
1076
- "render-ui",
1077
- "main",
1078
- {
1079
- "type": "stack",
1080
- "direction": "vertical",
1081
- "gap": "lg",
1082
- "children": [
1083
- {
1084
- "type": "stack",
1085
- "direction": "horizontal",
1086
- "gap": "sm",
1087
- "align": "center",
1088
- "children": [
1089
- {
1090
- "type": "icon",
1091
- "name": "gauge",
1092
- "size": "lg"
1093
- },
1094
- {
1095
- "type": "typography",
1096
- "content": "Token Usage",
1097
- "variant": "h2"
1098
- },
1099
- {
1100
- "type": "badge",
1101
- "label": "Normal",
1102
- "variant": "default"
1103
- }
1104
- ]
1105
- },
1106
- {
1107
- "type": "divider"
1108
- },
1109
- {
1110
- "type": "progress-bar",
1111
- "value": "@entity.current",
1112
- "max": "@entity.max"
1113
- },
1114
- {
1115
- "type": "stack",
1116
- "direction": "horizontal",
1117
- "gap": "md",
1118
- "children": [
1119
- {
1120
- "type": "stat-display",
1121
- "label": "Tokens Used",
1122
- "value": "@entity.current"
1123
- },
1124
- {
1125
- "type": "stat-display",
1126
- "label": "Max Tokens",
1127
- "value": "@entity.max"
1128
- }
1129
- ]
1130
- },
1131
- {
1132
- "type": "button",
1133
- "label": "Reset",
1134
- "event": "RESET",
1135
- "variant": "ghost",
1136
- "icon": "rotate-ccw"
1137
- }
1138
- ]
1139
- }
1140
- ]
1141
- ]
1142
- },
1143
- {
1144
- "from": "normal",
1145
- "to": "normal",
1146
- "event": "COMPACT",
1147
- "effects": [
1148
- [
1149
- "agent/compact"
1150
- ],
1151
- [
1152
- "set",
1153
- "@entity.lastCompactedAt",
1154
- "@now"
1155
- ],
1156
- [
1157
- "agent/token-count"
1158
- ],
1159
- [
1160
- "render-ui",
1161
- "main",
1162
- {
1163
- "type": "stack",
1164
- "direction": "vertical",
1165
- "gap": "lg",
1166
- "children": [
1167
- {
1168
- "type": "stack",
1169
- "direction": "horizontal",
1170
- "gap": "sm",
1171
- "align": "center",
1172
- "children": [
1173
- {
1174
- "type": "icon",
1175
- "name": "gauge",
1176
- "size": "lg"
1177
- },
1178
- {
1179
- "type": "typography",
1180
- "content": "Token Usage",
1181
- "variant": "h2"
1182
- },
1183
- {
1184
- "type": "badge",
1185
- "label": "Normal",
1186
- "variant": "default"
1187
- }
1188
- ]
1189
- },
1190
- {
1191
- "type": "divider"
1192
- },
1193
- {
1194
- "type": "progress-bar",
1195
- "value": "@entity.current",
1196
- "max": "@entity.max"
1197
- },
1198
- {
1199
- "type": "stack",
1200
- "direction": "horizontal",
1201
- "gap": "md",
1202
- "children": [
1203
- {
1204
- "type": "stat-display",
1205
- "label": "Tokens Used",
1206
- "value": "@entity.current"
1207
- },
1208
- {
1209
- "type": "stat-display",
1210
- "label": "Max Tokens",
1211
- "value": "@entity.max"
1212
- }
1213
- ]
1214
- },
1215
- {
1216
- "type": "button",
1217
- "label": "Reset",
1218
- "event": "RESET",
1219
- "variant": "ghost",
1220
- "icon": "rotate-ccw"
1221
- }
1222
- ]
1223
- }
1224
- ]
1225
- ]
1226
- },
1227
- {
1228
- "from": "warning",
1229
- "to": "normal",
1230
- "event": "COMPACT",
1231
- "effects": [
1232
- [
1233
- "agent/compact"
1234
- ],
1235
- [
1236
- "set",
1237
- "@entity.lastCompactedAt",
1238
- "@now"
1239
- ],
1240
- [
1241
- "agent/token-count"
1242
- ],
1243
- [
1244
- "render-ui",
1245
- "main",
1246
- {
1247
- "type": "stack",
1248
- "direction": "vertical",
1249
- "gap": "lg",
1250
- "children": [
1251
- {
1252
- "type": "stack",
1253
- "direction": "horizontal",
1254
- "gap": "sm",
1255
- "align": "center",
1256
- "children": [
1257
- {
1258
- "type": "icon",
1259
- "name": "gauge",
1260
- "size": "lg"
1261
- },
1262
- {
1263
- "type": "typography",
1264
- "content": "Token Usage",
1265
- "variant": "h2"
1266
- },
1267
- {
1268
- "type": "badge",
1269
- "label": "Normal",
1270
- "variant": "default"
1271
- }
1272
- ]
1273
- },
1274
- {
1275
- "type": "divider"
1276
- },
1277
- {
1278
- "type": "progress-bar",
1279
- "value": "@entity.current",
1280
- "max": "@entity.max"
1281
- },
1282
- {
1283
- "type": "stack",
1284
- "direction": "horizontal",
1285
- "gap": "md",
1286
- "children": [
1287
- {
1288
- "type": "stat-display",
1289
- "label": "Tokens Used",
1290
- "value": "@entity.current"
1291
- },
1292
- {
1293
- "type": "stat-display",
1294
- "label": "Max Tokens",
1295
- "value": "@entity.max"
1296
- }
1297
- ]
1298
- },
1299
- {
1300
- "type": "button",
1301
- "label": "Reset",
1302
- "event": "RESET",
1303
- "variant": "ghost",
1304
- "icon": "rotate-ccw"
1305
- }
1306
- ]
1307
- }
1308
- ]
1309
- ]
1310
- },
1311
- {
1312
- "from": "critical",
1313
- "to": "normal",
1314
- "event": "COMPACT",
1315
- "effects": [
1316
- [
1317
- "agent/compact"
1318
- ],
1319
- [
1320
- "set",
1321
- "@entity.lastCompactedAt",
1322
- "@now"
1323
- ],
1324
- [
1325
- "agent/token-count"
1326
- ],
1327
- [
1328
- "render-ui",
1329
- "main",
1330
- {
1331
- "type": "stack",
1332
- "direction": "vertical",
1333
- "gap": "lg",
1334
- "children": [
1335
- {
1336
- "type": "stack",
1337
- "direction": "horizontal",
1338
- "gap": "sm",
1339
- "align": "center",
1340
- "children": [
1341
- {
1342
- "type": "icon",
1343
- "name": "gauge",
1344
- "size": "lg"
1345
- },
1346
- {
1347
- "type": "typography",
1348
- "content": "Token Usage",
1349
- "variant": "h2"
1350
- },
1351
- {
1352
- "type": "badge",
1353
- "label": "Normal",
1354
- "variant": "default"
1355
- }
1356
- ]
1357
- },
1358
- {
1359
- "type": "divider"
1360
- },
1361
- {
1362
- "type": "progress-bar",
1363
- "value": "@entity.current",
1364
- "max": "@entity.max"
1365
- },
1366
- {
1367
- "type": "stack",
1368
- "direction": "horizontal",
1369
- "gap": "md",
1370
- "children": [
1371
- {
1372
- "type": "stat-display",
1373
- "label": "Tokens Used",
1374
- "value": "@entity.current"
1375
- },
1376
- {
1377
- "type": "stat-display",
1378
- "label": "Max Tokens",
1379
- "value": "@entity.max"
1380
- }
1381
- ]
1382
- },
1383
- {
1384
- "type": "button",
1385
- "label": "Reset",
1386
- "event": "RESET",
1387
- "variant": "ghost",
1388
- "icon": "rotate-ccw"
1389
- }
1390
- ]
1391
- }
1392
- ]
1393
- ]
1394
- },
1395
- {
1396
- "from": "normal",
1397
- "to": "normal",
1398
- "event": "RESET",
1399
- "effects": [
1400
- [
1401
- "set",
1402
- "@entity.current",
1403
- 0
1404
- ],
1405
- [
1406
- "render-ui",
1407
- "main",
1408
- {
1409
- "type": "stack",
1410
- "direction": "vertical",
1411
- "gap": "lg",
1412
- "children": [
1413
- {
1414
- "type": "stack",
1415
- "direction": "horizontal",
1416
- "gap": "sm",
1417
- "align": "center",
1418
- "children": [
1419
- {
1420
- "type": "icon",
1421
- "name": "gauge",
1422
- "size": "lg"
1423
- },
1424
- {
1425
- "type": "typography",
1426
- "content": "Token Usage",
1427
- "variant": "h2"
1428
- },
1429
- {
1430
- "type": "badge",
1431
- "label": "Normal",
1432
- "variant": "default"
1433
- }
1434
- ]
1435
- },
1436
- {
1437
- "type": "divider"
1438
- },
1439
- {
1440
- "type": "progress-bar",
1441
- "value": "@entity.current",
1442
- "max": "@entity.max"
1443
- },
1444
- {
1445
- "type": "stack",
1446
- "direction": "horizontal",
1447
- "gap": "md",
1448
- "children": [
1449
- {
1450
- "type": "stat-display",
1451
- "label": "Tokens Used",
1452
- "value": "@entity.current"
1453
- },
1454
- {
1455
- "type": "stat-display",
1456
- "label": "Max Tokens",
1457
- "value": "@entity.max"
1458
- }
1459
- ]
1460
- },
1461
- {
1462
- "type": "button",
1463
- "label": "Reset",
1464
- "event": "RESET",
1465
- "variant": "ghost",
1466
- "icon": "rotate-ccw"
1467
- }
1468
- ]
1469
- }
1470
- ]
1471
- ]
1472
- },
1473
- {
1474
- "from": "warning",
1475
- "to": "normal",
1476
- "event": "RESET",
1477
- "effects": [
1478
- [
1479
- "set",
1480
- "@entity.current",
1481
- 0
1482
- ],
1483
- [
1484
- "render-ui",
1485
- "main",
1486
- {
1487
- "type": "stack",
1488
- "direction": "vertical",
1489
- "gap": "lg",
1490
- "children": [
1491
- {
1492
- "type": "stack",
1493
- "direction": "horizontal",
1494
- "gap": "sm",
1495
- "align": "center",
1496
- "children": [
1497
- {
1498
- "type": "icon",
1499
- "name": "gauge",
1500
- "size": "lg"
1501
- },
1502
- {
1503
- "type": "typography",
1504
- "content": "Token Usage",
1505
- "variant": "h2"
1506
- },
1507
- {
1508
- "type": "badge",
1509
- "label": "Normal",
1510
- "variant": "default"
1511
- }
1512
- ]
1513
- },
1514
- {
1515
- "type": "divider"
1516
- },
1517
- {
1518
- "type": "progress-bar",
1519
- "value": "@entity.current",
1520
- "max": "@entity.max"
1521
- },
1522
- {
1523
- "type": "stack",
1524
- "direction": "horizontal",
1525
- "gap": "md",
1526
- "children": [
1527
- {
1528
- "type": "stat-display",
1529
- "label": "Tokens Used",
1530
- "value": "@entity.current"
1531
- },
1532
- {
1533
- "type": "stat-display",
1534
- "label": "Max Tokens",
1535
- "value": "@entity.max"
1536
- }
1537
- ]
1538
- },
1539
- {
1540
- "type": "button",
1541
- "label": "Reset",
1542
- "event": "RESET",
1543
- "variant": "ghost",
1544
- "icon": "rotate-ccw"
1545
- }
1546
- ]
1547
- }
1548
- ]
1549
- ]
1550
- },
1551
- {
1552
- "from": "critical",
1553
- "to": "normal",
1554
- "event": "RESET",
1555
- "effects": [
1556
- [
1557
- "set",
1558
- "@entity.current",
1559
- 0
1560
- ],
1561
- [
1562
- "render-ui",
1563
- "main",
1564
- {
1565
- "type": "stack",
1566
- "direction": "vertical",
1567
- "gap": "lg",
1568
- "children": [
1569
- {
1570
- "type": "stack",
1571
- "direction": "horizontal",
1572
- "gap": "sm",
1573
- "align": "center",
1574
- "children": [
1575
- {
1576
- "type": "icon",
1577
- "name": "gauge",
1578
- "size": "lg"
1579
- },
1580
- {
1581
- "type": "typography",
1582
- "content": "Token Usage",
1583
- "variant": "h2"
1584
- },
1585
- {
1586
- "type": "badge",
1587
- "label": "Normal",
1588
- "variant": "default"
1589
- }
1590
- ]
1591
- },
1592
- {
1593
- "type": "divider"
1594
- },
1595
- {
1596
- "type": "progress-bar",
1597
- "value": "@entity.current",
1598
- "max": "@entity.max"
1599
- },
1600
- {
1601
- "type": "stack",
1602
- "direction": "horizontal",
1603
- "gap": "md",
1604
- "children": [
1605
- {
1606
- "type": "stat-display",
1607
- "label": "Tokens Used",
1608
- "value": "@entity.current"
1609
- },
1610
- {
1611
- "type": "stat-display",
1612
- "label": "Max Tokens",
1613
- "value": "@entity.max"
1614
- }
1615
- ]
1616
- },
1617
- {
1618
- "type": "button",
1619
- "label": "Reset",
1620
- "event": "RESET",
1621
- "variant": "ghost",
1622
- "icon": "rotate-ccw"
1623
- }
1624
- ]
1625
- }
1626
- ]
1627
- ]
1628
- }
1629
- ]
1630
- }
1631
- },
1632
- {
1633
- "name": "AgentContextWindowNotification",
1634
- "linkedEntity": "AgentContextWindow",
1635
- "category": "interaction",
1636
- "stateMachine": {
1637
- "states": [
1638
- {
1639
- "name": "hidden",
1640
- "isInitial": true
1641
- },
1642
- {
1643
- "name": "visible"
1644
- }
1645
- ],
1646
- "events": [
1647
- {
1648
- "key": "INIT",
1649
- "name": "Initialize"
1650
- },
1651
- {
1652
- "key": "SHOW",
1653
- "name": "Show Notification",
1654
- "payload": [
1655
- {
1656
- "name": "message",
1657
- "type": "string",
1658
- "required": true
1659
- },
1660
- {
1661
- "name": "notificationType",
1662
- "type": "string"
1663
- }
1664
- ]
1665
- },
1666
- {
1667
- "key": "HIDE",
1668
- "name": "Hide Notification"
1669
- }
1670
- ],
1671
- "transitions": [
1672
- {
1673
- "from": "hidden",
1674
- "to": "hidden",
1675
- "event": "INIT",
1676
- "effects": [
1677
- [
1678
- "fetch",
1679
- "AgentContextWindow"
1680
- ]
1681
- ]
1682
- },
1683
- {
1684
- "from": "hidden",
1685
- "to": "visible",
1686
- "event": "SHOW",
1687
- "effects": [
1688
- [
1689
- "set",
1690
- "@entity.message",
1691
- "@payload.message"
1692
- ],
1693
- [
1694
- "set",
1695
- "@entity.notificationType",
1696
- "@payload.notificationType"
1697
- ],
1698
- [
1699
- "render-ui",
1700
- "main",
1701
- {
1702
- "type": "stack",
1703
- "direction": "vertical",
1704
- "gap": "lg",
1705
- "children": [
1706
- {
1707
- "type": "stack",
1708
- "direction": "horizontal",
1709
- "gap": "md",
1710
- "justify": "space-between",
1711
- "align": "center",
1712
- "children": [
1713
- {
1714
- "type": "stack",
1715
- "direction": "horizontal",
1716
- "gap": "md",
1717
- "align": "center",
1718
- "children": [
1719
- {
1720
- "type": "icon",
1721
- "name": "layers",
1722
- "size": "lg"
1723
- },
1724
- {
1725
- "type": "typography",
1726
- "content": "Context Window Alert",
1727
- "variant": "h2"
1728
- }
1729
- ]
1730
- },
1731
- {
1732
- "type": "button",
1733
- "label": "Dismiss",
1734
- "event": "HIDE",
1735
- "variant": "ghost",
1736
- "icon": "x"
1737
- }
1738
- ]
1739
- },
1740
- {
1741
- "type": "divider"
1742
- },
1743
- {
1744
- "type": "alert",
1745
- "variant": [
1746
- "object/get",
1747
- [
1748
- "array/first",
1749
- "@entity"
1750
- ],
1751
- "notificationType"
1752
- ],
1753
- "message": [
1754
- "object/get",
1755
- [
1756
- "array/first",
1757
- "@entity"
1758
- ],
1759
- "message"
1760
- ]
1761
- },
1762
- {
1763
- "type": "toast-slot",
1764
- "position": "top-right"
1765
- },
1766
- {
1767
- "type": "violation-alert",
1768
- "severity": "warning",
1769
- "message": [
1770
- "object/get",
1771
- [
1772
- "array/first",
1773
- "@entity"
1774
- ],
1775
- "message"
1776
- ],
1777
- "category": "compliance"
1778
- }
1779
- ]
1780
- }
1781
- ]
1782
- ]
1783
- },
1784
- {
1785
- "from": "visible",
1786
- "to": "visible",
1787
- "event": "SHOW",
1788
- "effects": [
1789
- [
1790
- "set",
1791
- "@entity.message",
1792
- "@payload.message"
1793
- ],
1794
- [
1795
- "set",
1796
- "@entity.notificationType",
1797
- "@payload.notificationType"
1798
- ],
1799
- [
1800
- "render-ui",
1801
- "main",
1802
- {
1803
- "type": "stack",
1804
- "direction": "vertical",
1805
- "gap": "lg",
1806
- "children": [
1807
- {
1808
- "type": "stack",
1809
- "direction": "horizontal",
1810
- "gap": "md",
1811
- "justify": "space-between",
1812
- "align": "center",
1813
- "children": [
1814
- {
1815
- "type": "stack",
1816
- "direction": "horizontal",
1817
- "gap": "md",
1818
- "align": "center",
1819
- "children": [
1820
- {
1821
- "type": "icon",
1822
- "name": "layers",
1823
- "size": "lg"
1824
- },
1825
- {
1826
- "type": "typography",
1827
- "content": "Context Window Alert",
1828
- "variant": "h2"
1829
- }
1830
- ]
1831
- },
1832
- {
1833
- "type": "button",
1834
- "label": "Dismiss",
1835
- "event": "HIDE",
1836
- "variant": "ghost",
1837
- "icon": "x"
1838
- }
1839
- ]
1840
- },
1841
- {
1842
- "type": "divider"
1843
- },
1844
- {
1845
- "type": "alert",
1846
- "variant": [
1847
- "object/get",
1848
- [
1849
- "array/first",
1850
- "@entity"
1851
- ],
1852
- "notificationType"
1853
- ],
1854
- "message": [
1855
- "object/get",
1856
- [
1857
- "array/first",
1858
- "@entity"
1859
- ],
1860
- "message"
1861
- ]
1862
- },
1863
- {
1864
- "type": "toast-slot",
1865
- "position": "top-right"
1866
- },
1867
- {
1868
- "type": "violation-alert",
1869
- "severity": "warning",
1870
- "message": [
1871
- "object/get",
1872
- [
1873
- "array/first",
1874
- "@entity"
1875
- ],
1876
- "message"
1877
- ],
1878
- "category": "compliance"
1879
- }
1880
- ]
1881
- }
1882
- ]
1883
- ]
1884
- },
1885
- {
1886
- "from": "visible",
1887
- "to": "hidden",
1888
- "event": "HIDE",
1889
- "effects": [
1890
- [
1891
- "set",
1892
- "@entity.message",
1893
- ""
1894
- ]
1895
- ]
1896
- }
1897
- ]
1898
- }
1899
- },
1900
- {
1901
- "name": "AgentContextWindowAgent",
1902
- "linkedEntity": "AgentContextWindow",
1903
- "category": "interaction",
1904
- "emits": [
1905
- {
1906
- "event": "SHOW",
1907
- "scope": "internal",
1908
- "payload": [
1909
- {
1910
- "name": "tokenCount",
1911
- "type": "number"
1912
- },
1913
- {
1914
- "name": "usage",
1915
- "type": "number"
1916
- }
1917
- ]
1918
- },
1919
- {
1920
- "event": "UPDATE",
1921
- "scope": "internal",
1922
- "payload": [
1923
- {
1924
- "name": "current",
1925
- "type": "number"
1926
- },
1927
- {
1928
- "name": "max",
1929
- "type": "number"
1930
- }
1931
- ]
1932
- }
1933
- ],
1934
- "stateMachine": {
1935
- "states": [
1936
- {
1937
- "name": "normal",
1938
- "isInitial": true
1939
- },
1940
- {
1941
- "name": "approaching_limit"
1942
- },
1943
- {
1944
- "name": "at_limit"
1945
- }
1946
- ],
1947
- "events": [
1948
- {
1949
- "key": "INIT",
1950
- "name": "Initialize"
1951
- },
1952
- {
1953
- "key": "UPDATE_TOKENS",
1954
- "name": "Update Token Count"
1955
- },
1956
- {
1957
- "key": "COMPACT",
1958
- "name": "Compact Context"
1959
- }
1960
- ],
1961
- "transitions": [
1962
- {
1963
- "from": "normal",
1964
- "to": "normal",
1965
- "event": "INIT",
1966
- "effects": [
1967
- [
1968
- "fetch",
1969
- "AgentContextWindow"
1970
- ],
1971
- [
1972
- "agent/token-count"
1973
- ],
1974
- [
1975
- "agent/context-usage"
1976
- ],
1977
- [
1978
- "render-ui",
1979
- "main",
1980
- {
1981
- "type": "empty-state",
1982
- "icon": "layers",
1983
- "title": "Context Window",
1984
- "description": "Context Window is ready"
1985
- }
1986
- ]
1987
- ]
1988
- },
1989
- {
1990
- "from": "normal",
1991
- "to": "normal",
1992
- "event": "UPDATE_TOKENS",
1993
- "guard": [
1994
- "<",
1995
- [
1996
- "/",
1997
- "@entity.tokenCount",
1998
- "@entity.maxTokens"
1999
- ],
2000
- 0.85
2001
- ],
2002
- "effects": [
2003
- [
2004
- "agent/token-count"
2005
- ],
2006
- [
2007
- "agent/context-usage"
2008
- ],
2009
- [
2010
- "set",
2011
- "@entity.usage",
2012
- [
2013
- "*",
2014
- [
2015
- "/",
2016
- "@entity.tokenCount",
2017
- "@entity.maxTokens"
2018
- ],
2019
- 100
2020
- ]
2021
- ],
2022
- [
2023
- "set",
2024
- "@entity.current",
2025
- "@entity.tokenCount"
2026
- ],
2027
- [
2028
- "emit",
2029
- "UPDATE"
2030
- ]
2031
- ]
2032
- },
2033
- {
2034
- "from": "normal",
2035
- "to": "approaching_limit",
2036
- "event": "UPDATE_TOKENS",
2037
- "guard": [
2038
- "and",
2039
- [
2040
- ">=",
2041
- [
2042
- "/",
2043
- "@entity.tokenCount",
2044
- "@entity.maxTokens"
2045
- ],
2046
- 0.85
2047
- ],
2048
- [
2049
- "<",
2050
- [
2051
- "/",
2052
- "@entity.tokenCount",
2053
- "@entity.maxTokens"
2054
- ],
2055
- 1
2056
- ]
2057
- ],
2058
- "effects": [
2059
- [
2060
- "agent/token-count"
2061
- ],
2062
- [
2063
- "agent/context-usage"
2064
- ],
2065
- [
2066
- "set",
2067
- "@entity.usage",
2068
- [
2069
- "*",
2070
- [
2071
- "/",
2072
- "@entity.tokenCount",
2073
- "@entity.maxTokens"
2074
- ],
2075
- 100
2076
- ]
2077
- ],
2078
- [
2079
- "set",
2080
- "@entity.current",
2081
- "@entity.tokenCount"
2082
- ],
2083
- [
2084
- "emit",
2085
- "UPDATE"
2086
- ],
2087
- [
2088
- "emit",
2089
- "SHOW"
2090
- ]
2091
- ]
2092
- },
2093
- {
2094
- "from": "approaching_limit",
2095
- "to": "at_limit",
2096
- "event": "UPDATE_TOKENS",
2097
- "guard": [
2098
- ">=",
2099
- [
2100
- "/",
2101
- "@entity.tokenCount",
2102
- "@entity.maxTokens"
2103
- ],
2104
- 1
2105
- ],
2106
- "effects": [
2107
- [
2108
- "agent/token-count"
2109
- ],
2110
- [
2111
- "agent/context-usage"
2112
- ],
2113
- [
2114
- "set",
2115
- "@entity.usage",
2116
- 100
2117
- ],
2118
- [
2119
- "set",
2120
- "@entity.current",
2121
- "@entity.tokenCount"
2122
- ],
2123
- [
2124
- "emit",
2125
- "UPDATE"
2126
- ],
2127
- [
2128
- "emit",
2129
- "SHOW"
2130
- ]
2131
- ]
2132
- },
2133
- {
2134
- "from": "approaching_limit",
2135
- "to": "normal",
2136
- "event": "COMPACT",
2137
- "effects": [
2138
- [
2139
- "agent/compact"
2140
- ],
2141
- [
2142
- "agent/token-count"
2143
- ],
2144
- [
2145
- "agent/context-usage"
2146
- ],
2147
- [
2148
- "set",
2149
- "@entity.lastCompactedAt",
2150
- "@now"
2151
- ],
2152
- [
2153
- "set",
2154
- "@entity.usage",
2155
- [
2156
- "*",
2157
- [
2158
- "/",
2159
- "@entity.tokenCount",
2160
- "@entity.maxTokens"
2161
- ],
2162
- 100
2163
- ]
2164
- ],
2165
- [
2166
- "set",
2167
- "@entity.current",
2168
- "@entity.tokenCount"
2169
- ],
2170
- [
2171
- "emit",
2172
- "UPDATE"
2173
- ]
2174
- ]
2175
- },
2176
- {
2177
- "from": "at_limit",
2178
- "to": "normal",
2179
- "event": "COMPACT",
2180
- "effects": [
2181
- [
2182
- "agent/compact"
2183
- ],
2184
- [
2185
- "agent/token-count"
2186
- ],
2187
- [
2188
- "agent/context-usage"
2189
- ],
2190
- [
2191
- "set",
2192
- "@entity.lastCompactedAt",
2193
- "@now"
2194
- ],
2195
- [
2196
- "set",
2197
- "@entity.usage",
2198
- [
2199
- "*",
2200
- [
2201
- "/",
2202
- "@entity.tokenCount",
2203
- "@entity.maxTokens"
2204
- ],
2205
- 100
2206
- ]
2207
- ],
2208
- [
2209
- "set",
2210
- "@entity.current",
2211
- "@entity.tokenCount"
2212
- ],
2213
- [
2214
- "emit",
2215
- "UPDATE"
2216
- ]
2217
- ]
2218
- },
2219
- {
2220
- "from": "approaching_limit",
2221
- "to": "approaching_limit",
2222
- "event": "UPDATE_TOKENS",
2223
- "guard": [
2224
- "and",
2225
- [
2226
- ">=",
2227
- [
2228
- "/",
2229
- "@entity.tokenCount",
2230
- "@entity.maxTokens"
2231
- ],
2232
- 0.85
2233
- ],
2234
- [
2235
- "<",
2236
- [
2237
- "/",
2238
- "@entity.tokenCount",
2239
- "@entity.maxTokens"
2240
- ],
2241
- 1
2242
- ]
2243
- ],
2244
- "effects": [
2245
- [
2246
- "agent/token-count"
2247
- ],
2248
- [
2249
- "agent/context-usage"
2250
- ],
2251
- [
2252
- "set",
2253
- "@entity.usage",
2254
- [
2255
- "*",
2256
- [
2257
- "/",
2258
- "@entity.tokenCount",
2259
- "@entity.maxTokens"
2260
- ],
2261
- 100
2262
- ]
2263
- ],
2264
- [
2265
- "set",
2266
- "@entity.current",
2267
- "@entity.tokenCount"
2268
- ],
2269
- [
2270
- "emit",
2271
- "UPDATE"
2272
- ]
2273
- ]
2274
- }
2275
- ]
2276
- }
2277
- }
2278
- ],
2279
- "pages": [
2280
- {
2281
- "name": "AgentContextWindowPage",
2282
- "path": "/agentcontextwindows",
2283
- "traits": [
2284
- {
2285
- "ref": "AgentContextWindowGauge"
2286
- },
2287
- {
2288
- "ref": "AgentContextWindowNotification"
2289
- },
2290
- {
2291
- "ref": "AgentContextWindowAgent"
2292
- }
2293
- ]
2294
- }
2295
- ]
2296
- }
2297
- ],
2298
- "description": "Context window management atom for agent token tracking. Composes UI atoms (stdAgentTokenGauge for visual display, stdNotification for threshold alerts) with an agent trait that handles agent/compact, agent/token-count, and agent/context-usage. (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."
2299
- }