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