@almadar/std 5.0.0 → 5.2.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (421) hide show
  1. package/behaviors/exports/atoms/std-agent-activity-log.orb +5 -45
  2. package/behaviors/exports/atoms/std-agent-chat-thread.orb +5 -55
  3. package/behaviors/exports/atoms/std-agent-classifier.orb +8 -8
  4. package/behaviors/exports/atoms/std-agent-completion.orb +8 -8
  5. package/behaviors/exports/atoms/std-agent-context-window.orb +5 -4
  6. package/behaviors/exports/atoms/std-agent-conversation.orb +5 -71
  7. package/behaviors/exports/atoms/std-agent-memory.orb +13 -127
  8. package/behaviors/exports/atoms/std-agent-provider.orb +8 -8
  9. package/behaviors/exports/atoms/std-agent-search.orb +6 -27
  10. package/behaviors/exports/atoms/std-agent-session.orb +11 -85
  11. package/behaviors/exports/atoms/std-agent-step-progress.orb +5 -4
  12. package/behaviors/exports/atoms/std-agent-token-gauge.orb +5 -4
  13. package/behaviors/exports/atoms/std-agent-tool-call.orb +8 -8
  14. package/behaviors/exports/atoms/std-async.orb +5 -8
  15. package/behaviors/exports/atoms/std-autoregressive.orb +4 -2
  16. package/behaviors/exports/atoms/std-browse.orb +5 -4
  17. package/behaviors/exports/atoms/std-cache-aside.orb +5 -8
  18. package/behaviors/exports/atoms/std-calendar.orb +5 -4
  19. package/behaviors/exports/atoms/std-circuit-breaker.orb +5 -4
  20. package/behaviors/exports/atoms/std-collision.orb +5 -4
  21. package/behaviors/exports/atoms/std-combat-log.orb +5 -4
  22. package/behaviors/exports/atoms/std-combat.orb +5 -4
  23. package/behaviors/exports/atoms/std-confirmation.orb +10 -4
  24. package/behaviors/exports/atoms/std-dialogue-box.orb +5 -4
  25. package/behaviors/exports/atoms/std-display.orb +5 -4
  26. package/behaviors/exports/atoms/std-drawer.orb +5 -4
  27. package/behaviors/exports/atoms/std-filter.orb +5 -4
  28. package/behaviors/exports/atoms/std-flip-card.orb +5 -4
  29. package/behaviors/exports/atoms/std-gallery.orb +5 -4
  30. package/behaviors/exports/atoms/std-game-audio.orb +5 -4
  31. package/behaviors/exports/atoms/std-game-canvas2d.orb +4 -2
  32. package/behaviors/exports/atoms/std-game-canvas3d.orb +4 -2
  33. package/behaviors/exports/atoms/std-game-hud.orb +5 -4
  34. package/behaviors/exports/atoms/std-game-menu.orb +5 -4
  35. package/behaviors/exports/atoms/std-game-over-screen.orb +5 -4
  36. package/behaviors/exports/atoms/std-gameflow.orb +5 -4
  37. package/behaviors/exports/atoms/std-input.orb +5 -4
  38. package/behaviors/exports/atoms/std-inventory-panel.orb +5 -8
  39. package/behaviors/exports/atoms/std-isometric-canvas.orb +5 -4
  40. package/behaviors/exports/atoms/std-loading.orb +5 -4
  41. package/behaviors/exports/atoms/std-modal.orb +89 -4
  42. package/behaviors/exports/atoms/std-movement.orb +5 -4
  43. package/behaviors/exports/atoms/std-notification.orb +5 -4
  44. package/behaviors/exports/atoms/std-overworld.orb +5 -4
  45. package/behaviors/exports/atoms/std-pagination.orb +5 -4
  46. package/behaviors/exports/atoms/std-physics2d.orb +5 -4
  47. package/behaviors/exports/atoms/std-platformer-canvas.orb +5 -4
  48. package/behaviors/exports/atoms/std-quest.orb +5 -8
  49. package/behaviors/exports/atoms/std-rate-limiter.orb +5 -4
  50. package/behaviors/exports/atoms/std-rating.orb +5 -4
  51. package/behaviors/exports/atoms/std-score-board.orb +5 -4
  52. package/behaviors/exports/atoms/std-score.orb +5 -4
  53. package/behaviors/exports/atoms/std-search.orb +5 -4
  54. package/behaviors/exports/atoms/std-selection.orb +5 -4
  55. package/behaviors/exports/atoms/std-service-custom-bearer.orb +5 -15
  56. package/behaviors/exports/atoms/std-service-custom-header.orb +5 -17
  57. package/behaviors/exports/atoms/std-service-custom-noauth.orb +5 -11
  58. package/behaviors/exports/atoms/std-service-custom-query.orb +5 -17
  59. package/behaviors/exports/atoms/std-service-email.orb +5 -4
  60. package/behaviors/exports/atoms/std-service-github.orb +5 -4
  61. package/behaviors/exports/atoms/std-service-llm.orb +5 -4
  62. package/behaviors/exports/atoms/std-service-oauth.orb +5 -4
  63. package/behaviors/exports/atoms/std-service-redis.orb +5 -4
  64. package/behaviors/exports/atoms/std-service-storage.orb +5 -4
  65. package/behaviors/exports/atoms/std-service-stripe.orb +5 -4
  66. package/behaviors/exports/atoms/std-service-twilio.orb +5 -4
  67. package/behaviors/exports/atoms/std-service-youtube.orb +5 -4
  68. package/behaviors/exports/atoms/std-simulation-canvas.orb +5 -4
  69. package/behaviors/exports/atoms/std-sort.orb +5 -4
  70. package/behaviors/exports/atoms/std-sprite.orb +5 -4
  71. package/behaviors/exports/atoms/std-tabs.orb +5 -4
  72. package/behaviors/exports/atoms/std-text-effects.orb +5 -4
  73. package/behaviors/exports/atoms/std-theme.orb +5 -4
  74. package/behaviors/exports/atoms/std-timer.orb +5 -4
  75. package/behaviors/exports/atoms/std-undo.orb +5 -4
  76. package/behaviors/exports/atoms/std-upload.orb +5 -4
  77. package/behaviors/exports/atoms/std-validate-on-save.orb +5 -32
  78. package/behaviors/exports/atoms/std-wizard.orb +5 -4
  79. package/behaviors/exports/molecules/std-agent-fix-loop.orb +1141 -1709
  80. package/behaviors/exports/molecules/std-agent-learner.orb +608 -938
  81. package/behaviors/exports/molecules/std-agent-planner.orb +613 -961
  82. package/behaviors/exports/molecules/std-agent-rag.orb +586 -915
  83. package/behaviors/exports/molecules/std-agent-tool-loop.orb +915 -2846
  84. package/behaviors/exports/molecules/std-builder-game.orb +5 -4
  85. package/behaviors/exports/molecules/std-cart.orb +196 -307
  86. package/behaviors/exports/molecules/std-classifier-game.orb +5 -4
  87. package/behaviors/exports/molecules/std-debugger-game.orb +5 -4
  88. package/behaviors/exports/molecules/std-detail.orb +309 -467
  89. package/behaviors/exports/molecules/std-event-handler-game.orb +5 -4
  90. package/behaviors/exports/molecules/std-form-advanced.orb +5 -8
  91. package/behaviors/exports/molecules/std-geospatial.orb +363 -539
  92. package/behaviors/exports/molecules/std-inventory.orb +390 -720
  93. package/behaviors/exports/molecules/std-list.orb +526 -1156
  94. package/behaviors/exports/molecules/std-messaging.orb +295 -452
  95. package/behaviors/exports/molecules/std-negotiator-game.orb +5 -4
  96. package/behaviors/exports/molecules/std-platformer-game.orb +5 -4
  97. package/behaviors/exports/molecules/std-puzzle-game.orb +5 -4
  98. package/behaviors/exports/molecules/std-quiz.orb +5 -4
  99. package/behaviors/exports/molecules/std-sequencer-game.orb +5 -4
  100. package/behaviors/exports/molecules/std-service-content-pipeline.orb +5 -4
  101. package/behaviors/exports/molecules/std-service-custom-api-tester.orb +5 -42
  102. package/behaviors/exports/molecules/std-service-devops-toolkit.orb +5 -4
  103. package/behaviors/exports/molecules/std-service-notification-hub.orb +5 -4
  104. package/behaviors/exports/molecules/std-service-payment-flow.orb +5 -4
  105. package/behaviors/exports/molecules/std-simulator-game.orb +5 -4
  106. package/behaviors/exports/molecules/std-turn-based-battle.orb +5 -4
  107. package/behaviors/exports/organisms/std-agent-assistant.orb +15 -143
  108. package/behaviors/exports/organisms/std-agent-builder.orb +814 -1476
  109. package/behaviors/exports/organisms/std-agent-pipeline.orb +785 -1567
  110. package/behaviors/exports/organisms/std-agent-reviewer.orb +299 -502
  111. package/behaviors/exports/organisms/std-agent-tutor.orb +306 -493
  112. package/behaviors/exports/organisms/std-api-gateway.orb +284 -626
  113. package/behaviors/exports/organisms/std-arcade-game.orb +4 -4
  114. package/behaviors/exports/organisms/std-booking-system.orb +1422 -2160
  115. package/behaviors/exports/organisms/std-cicd-pipeline.orb +274 -617
  116. package/behaviors/exports/organisms/std-cms.orb +1274 -1972
  117. package/behaviors/exports/organisms/std-coding-academy.orb +4 -4
  118. package/behaviors/exports/organisms/std-crm.orb +999 -1775
  119. package/behaviors/exports/organisms/std-devops-dashboard.orb +284 -638
  120. package/behaviors/exports/organisms/std-ecommerce.orb +1653 -2398
  121. package/behaviors/exports/organisms/std-finance-tracker.orb +340 -684
  122. package/behaviors/exports/organisms/std-healthcare.orb +984 -1838
  123. package/behaviors/exports/organisms/std-helpdesk.orb +340 -744
  124. package/behaviors/exports/organisms/std-hr-portal.orb +1401 -2151
  125. package/behaviors/exports/organisms/std-iot-dashboard.orb +284 -626
  126. package/behaviors/exports/organisms/std-lms.orb +284 -632
  127. package/behaviors/exports/organisms/std-logic-training.orb +4 -4
  128. package/behaviors/exports/organisms/std-platformer-app.orb +15 -98
  129. package/behaviors/exports/organisms/std-project-manager.orb +970 -1774
  130. package/behaviors/exports/organisms/std-puzzle-app.orb +4 -4
  131. package/behaviors/exports/organisms/std-realtime-chat.orb +364 -714
  132. package/behaviors/exports/organisms/std-rpg-game.orb +15 -102
  133. package/behaviors/exports/organisms/std-service-marketplace.orb +1589 -2361
  134. package/behaviors/exports/organisms/std-service-research-assistant.orb +4 -15
  135. package/behaviors/exports/organisms/std-social-feed.orb +62 -66
  136. package/behaviors/exports/organisms/std-stem-lab.orb +4 -4
  137. package/behaviors/exports/organisms/std-strategy-game.orb +4 -4
  138. package/behaviors/exports/organisms/std-trading-dashboard.orb +274 -620
  139. package/dist/behaviors/exports/atoms/std-agent-activity-log.orb +5 -45
  140. package/dist/behaviors/exports/atoms/std-agent-chat-thread.orb +5 -55
  141. package/dist/behaviors/exports/atoms/std-agent-classifier.orb +8 -8
  142. package/dist/behaviors/exports/atoms/std-agent-completion.orb +8 -8
  143. package/dist/behaviors/exports/atoms/std-agent-context-window.orb +5 -4
  144. package/dist/behaviors/exports/atoms/std-agent-conversation.orb +5 -71
  145. package/dist/behaviors/exports/atoms/std-agent-memory.orb +13 -127
  146. package/dist/behaviors/exports/atoms/std-agent-provider.orb +8 -8
  147. package/dist/behaviors/exports/atoms/std-agent-search.orb +6 -27
  148. package/dist/behaviors/exports/atoms/std-agent-session.orb +11 -85
  149. package/dist/behaviors/exports/atoms/std-agent-step-progress.orb +5 -4
  150. package/dist/behaviors/exports/atoms/std-agent-token-gauge.orb +5 -4
  151. package/dist/behaviors/exports/atoms/std-agent-tool-call.orb +8 -8
  152. package/dist/behaviors/exports/atoms/std-async.orb +5 -8
  153. package/dist/behaviors/exports/atoms/std-autoregressive.orb +4 -2
  154. package/dist/behaviors/exports/atoms/std-browse.orb +5 -4
  155. package/dist/behaviors/exports/atoms/std-cache-aside.orb +5 -8
  156. package/dist/behaviors/exports/atoms/std-calendar.orb +5 -4
  157. package/dist/behaviors/exports/atoms/std-circuit-breaker.orb +5 -4
  158. package/dist/behaviors/exports/atoms/std-collision.orb +5 -4
  159. package/dist/behaviors/exports/atoms/std-combat-log.orb +5 -4
  160. package/dist/behaviors/exports/atoms/std-combat.orb +5 -4
  161. package/dist/behaviors/exports/atoms/std-confirmation.orb +10 -4
  162. package/dist/behaviors/exports/atoms/std-dialogue-box.orb +5 -4
  163. package/dist/behaviors/exports/atoms/std-display.orb +5 -4
  164. package/dist/behaviors/exports/atoms/std-drawer.orb +5 -4
  165. package/dist/behaviors/exports/atoms/std-filter.orb +5 -4
  166. package/dist/behaviors/exports/atoms/std-flip-card.orb +5 -4
  167. package/dist/behaviors/exports/atoms/std-gallery.orb +5 -4
  168. package/dist/behaviors/exports/atoms/std-game-audio.orb +5 -4
  169. package/dist/behaviors/exports/atoms/std-game-canvas2d.orb +4 -2
  170. package/dist/behaviors/exports/atoms/std-game-canvas3d.orb +4 -2
  171. package/dist/behaviors/exports/atoms/std-game-hud.orb +5 -4
  172. package/dist/behaviors/exports/atoms/std-game-menu.orb +5 -4
  173. package/dist/behaviors/exports/atoms/std-game-over-screen.orb +5 -4
  174. package/dist/behaviors/exports/atoms/std-gameflow.orb +5 -4
  175. package/dist/behaviors/exports/atoms/std-input.orb +5 -4
  176. package/dist/behaviors/exports/atoms/std-inventory-panel.orb +5 -8
  177. package/dist/behaviors/exports/atoms/std-isometric-canvas.orb +5 -4
  178. package/dist/behaviors/exports/atoms/std-loading.orb +5 -4
  179. package/dist/behaviors/exports/atoms/std-modal.orb +89 -4
  180. package/dist/behaviors/exports/atoms/std-movement.orb +5 -4
  181. package/dist/behaviors/exports/atoms/std-notification.orb +5 -4
  182. package/dist/behaviors/exports/atoms/std-overworld.orb +5 -4
  183. package/dist/behaviors/exports/atoms/std-pagination.orb +5 -4
  184. package/dist/behaviors/exports/atoms/std-physics2d.orb +5 -4
  185. package/dist/behaviors/exports/atoms/std-platformer-canvas.orb +5 -4
  186. package/dist/behaviors/exports/atoms/std-quest.orb +5 -8
  187. package/dist/behaviors/exports/atoms/std-rate-limiter.orb +5 -4
  188. package/dist/behaviors/exports/atoms/std-rating.orb +5 -4
  189. package/dist/behaviors/exports/atoms/std-score-board.orb +5 -4
  190. package/dist/behaviors/exports/atoms/std-score.orb +5 -4
  191. package/dist/behaviors/exports/atoms/std-search.orb +5 -4
  192. package/dist/behaviors/exports/atoms/std-selection.orb +5 -4
  193. package/dist/behaviors/exports/atoms/std-service-custom-bearer.orb +5 -15
  194. package/dist/behaviors/exports/atoms/std-service-custom-header.orb +5 -17
  195. package/dist/behaviors/exports/atoms/std-service-custom-noauth.orb +5 -11
  196. package/dist/behaviors/exports/atoms/std-service-custom-query.orb +5 -17
  197. package/dist/behaviors/exports/atoms/std-service-email.orb +5 -4
  198. package/dist/behaviors/exports/atoms/std-service-github.orb +5 -4
  199. package/dist/behaviors/exports/atoms/std-service-llm.orb +5 -4
  200. package/dist/behaviors/exports/atoms/std-service-oauth.orb +5 -4
  201. package/dist/behaviors/exports/atoms/std-service-redis.orb +5 -4
  202. package/dist/behaviors/exports/atoms/std-service-storage.orb +5 -4
  203. package/dist/behaviors/exports/atoms/std-service-stripe.orb +5 -4
  204. package/dist/behaviors/exports/atoms/std-service-twilio.orb +5 -4
  205. package/dist/behaviors/exports/atoms/std-service-youtube.orb +5 -4
  206. package/dist/behaviors/exports/atoms/std-simulation-canvas.orb +5 -4
  207. package/dist/behaviors/exports/atoms/std-sort.orb +5 -4
  208. package/dist/behaviors/exports/atoms/std-sprite.orb +5 -4
  209. package/dist/behaviors/exports/atoms/std-tabs.orb +5 -4
  210. package/dist/behaviors/exports/atoms/std-text-effects.orb +5 -4
  211. package/dist/behaviors/exports/atoms/std-theme.orb +5 -4
  212. package/dist/behaviors/exports/atoms/std-timer.orb +5 -4
  213. package/dist/behaviors/exports/atoms/std-undo.orb +5 -4
  214. package/dist/behaviors/exports/atoms/std-upload.orb +5 -4
  215. package/dist/behaviors/exports/atoms/std-validate-on-save.orb +5 -32
  216. package/dist/behaviors/exports/atoms/std-wizard.orb +5 -4
  217. package/dist/behaviors/exports/molecules/std-agent-fix-loop.orb +1141 -1709
  218. package/dist/behaviors/exports/molecules/std-agent-learner.orb +608 -938
  219. package/dist/behaviors/exports/molecules/std-agent-planner.orb +613 -961
  220. package/dist/behaviors/exports/molecules/std-agent-rag.orb +586 -915
  221. package/dist/behaviors/exports/molecules/std-agent-tool-loop.orb +915 -2846
  222. package/dist/behaviors/exports/molecules/std-builder-game.orb +5 -4
  223. package/dist/behaviors/exports/molecules/std-cart.orb +196 -307
  224. package/dist/behaviors/exports/molecules/std-classifier-game.orb +5 -4
  225. package/dist/behaviors/exports/molecules/std-debugger-game.orb +5 -4
  226. package/dist/behaviors/exports/molecules/std-detail.orb +309 -467
  227. package/dist/behaviors/exports/molecules/std-event-handler-game.orb +5 -4
  228. package/dist/behaviors/exports/molecules/std-form-advanced.orb +5 -8
  229. package/dist/behaviors/exports/molecules/std-geospatial.orb +363 -539
  230. package/dist/behaviors/exports/molecules/std-inventory.orb +390 -720
  231. package/dist/behaviors/exports/molecules/std-list.orb +526 -1156
  232. package/dist/behaviors/exports/molecules/std-messaging.orb +295 -452
  233. package/dist/behaviors/exports/molecules/std-negotiator-game.orb +5 -4
  234. package/dist/behaviors/exports/molecules/std-platformer-game.orb +5 -4
  235. package/dist/behaviors/exports/molecules/std-puzzle-game.orb +5 -4
  236. package/dist/behaviors/exports/molecules/std-quiz.orb +5 -4
  237. package/dist/behaviors/exports/molecules/std-sequencer-game.orb +5 -4
  238. package/dist/behaviors/exports/molecules/std-service-content-pipeline.orb +5 -4
  239. package/dist/behaviors/exports/molecules/std-service-custom-api-tester.orb +5 -42
  240. package/dist/behaviors/exports/molecules/std-service-devops-toolkit.orb +5 -4
  241. package/dist/behaviors/exports/molecules/std-service-notification-hub.orb +5 -4
  242. package/dist/behaviors/exports/molecules/std-service-payment-flow.orb +5 -4
  243. package/dist/behaviors/exports/molecules/std-simulator-game.orb +5 -4
  244. package/dist/behaviors/exports/molecules/std-turn-based-battle.orb +5 -4
  245. package/dist/behaviors/exports/organisms/std-agent-assistant.orb +15 -143
  246. package/dist/behaviors/exports/organisms/std-agent-builder.orb +814 -1476
  247. package/dist/behaviors/exports/organisms/std-agent-pipeline.orb +785 -1567
  248. package/dist/behaviors/exports/organisms/std-agent-reviewer.orb +299 -502
  249. package/dist/behaviors/exports/organisms/std-agent-tutor.orb +306 -493
  250. package/dist/behaviors/exports/organisms/std-api-gateway.orb +284 -626
  251. package/dist/behaviors/exports/organisms/std-arcade-game.orb +4 -4
  252. package/dist/behaviors/exports/organisms/std-booking-system.orb +1422 -2160
  253. package/dist/behaviors/exports/organisms/std-cicd-pipeline.orb +274 -617
  254. package/dist/behaviors/exports/organisms/std-cms.orb +1274 -1972
  255. package/dist/behaviors/exports/organisms/std-coding-academy.orb +4 -4
  256. package/dist/behaviors/exports/organisms/std-crm.orb +999 -1775
  257. package/dist/behaviors/exports/organisms/std-devops-dashboard.orb +284 -638
  258. package/dist/behaviors/exports/organisms/std-ecommerce.orb +1653 -2398
  259. package/dist/behaviors/exports/organisms/std-finance-tracker.orb +340 -684
  260. package/dist/behaviors/exports/organisms/std-healthcare.orb +984 -1838
  261. package/dist/behaviors/exports/organisms/std-helpdesk.orb +340 -744
  262. package/dist/behaviors/exports/organisms/std-hr-portal.orb +1401 -2151
  263. package/dist/behaviors/exports/organisms/std-iot-dashboard.orb +284 -626
  264. package/dist/behaviors/exports/organisms/std-lms.orb +284 -632
  265. package/dist/behaviors/exports/organisms/std-logic-training.orb +4 -4
  266. package/dist/behaviors/exports/organisms/std-platformer-app.orb +15 -98
  267. package/dist/behaviors/exports/organisms/std-project-manager.orb +970 -1774
  268. package/dist/behaviors/exports/organisms/std-puzzle-app.orb +4 -4
  269. package/dist/behaviors/exports/organisms/std-realtime-chat.orb +364 -714
  270. package/dist/behaviors/exports/organisms/std-rpg-game.orb +15 -102
  271. package/dist/behaviors/exports/organisms/std-service-marketplace.orb +1589 -2361
  272. package/dist/behaviors/exports/organisms/std-service-research-assistant.orb +4 -15
  273. package/dist/behaviors/exports/organisms/std-social-feed.orb +62 -66
  274. package/dist/behaviors/exports/organisms/std-stem-lab.orb +4 -4
  275. package/dist/behaviors/exports/organisms/std-strategy-game.orb +4 -4
  276. package/dist/behaviors/exports/organisms/std-trading-dashboard.orb +274 -620
  277. package/dist/behaviors/exports-reader.js.map +1 -1
  278. package/dist/behaviors/functions/index.d.ts +2192 -0
  279. package/dist/behaviors/functions/index.js.map +1 -1
  280. package/dist/behaviors/index.js.map +1 -1
  281. package/dist/behaviors/query.js.map +1 -1
  282. package/dist/exports/atoms/std-agent-activity-log.orb +5 -45
  283. package/dist/exports/atoms/std-agent-chat-thread.orb +5 -55
  284. package/dist/exports/atoms/std-agent-classifier.orb +8 -8
  285. package/dist/exports/atoms/std-agent-completion.orb +8 -8
  286. package/dist/exports/atoms/std-agent-context-window.orb +5 -4
  287. package/dist/exports/atoms/std-agent-conversation.orb +5 -71
  288. package/dist/exports/atoms/std-agent-memory.orb +13 -127
  289. package/dist/exports/atoms/std-agent-provider.orb +8 -8
  290. package/dist/exports/atoms/std-agent-search.orb +6 -27
  291. package/dist/exports/atoms/std-agent-session.orb +11 -85
  292. package/dist/exports/atoms/std-agent-step-progress.orb +5 -4
  293. package/dist/exports/atoms/std-agent-token-gauge.orb +5 -4
  294. package/dist/exports/atoms/std-agent-tool-call.orb +8 -8
  295. package/dist/exports/atoms/std-async.orb +5 -8
  296. package/dist/exports/atoms/std-autoregressive.orb +4 -2
  297. package/dist/exports/atoms/std-browse.orb +5 -4
  298. package/dist/exports/atoms/std-cache-aside.orb +5 -8
  299. package/dist/exports/atoms/std-calendar.orb +5 -4
  300. package/dist/exports/atoms/std-circuit-breaker.orb +5 -4
  301. package/dist/exports/atoms/std-collision.orb +5 -4
  302. package/dist/exports/atoms/std-combat-log.orb +5 -4
  303. package/dist/exports/atoms/std-combat.orb +5 -4
  304. package/dist/exports/atoms/std-confirmation.orb +10 -4
  305. package/dist/exports/atoms/std-dialogue-box.orb +5 -4
  306. package/dist/exports/atoms/std-display.orb +5 -4
  307. package/dist/exports/atoms/std-drawer.orb +5 -4
  308. package/dist/exports/atoms/std-filter.orb +5 -4
  309. package/dist/exports/atoms/std-flip-card.orb +5 -4
  310. package/dist/exports/atoms/std-gallery.orb +5 -4
  311. package/dist/exports/atoms/std-game-audio.orb +5 -4
  312. package/dist/exports/atoms/std-game-canvas2d.orb +4 -2
  313. package/dist/exports/atoms/std-game-canvas3d.orb +4 -2
  314. package/dist/exports/atoms/std-game-hud.orb +5 -4
  315. package/dist/exports/atoms/std-game-menu.orb +5 -4
  316. package/dist/exports/atoms/std-game-over-screen.orb +5 -4
  317. package/dist/exports/atoms/std-gameflow.orb +5 -4
  318. package/dist/exports/atoms/std-input.orb +5 -4
  319. package/dist/exports/atoms/std-inventory-panel.orb +5 -8
  320. package/dist/exports/atoms/std-isometric-canvas.orb +5 -4
  321. package/dist/exports/atoms/std-loading.orb +5 -4
  322. package/dist/exports/atoms/std-modal.orb +89 -4
  323. package/dist/exports/atoms/std-movement.orb +5 -4
  324. package/dist/exports/atoms/std-notification.orb +5 -4
  325. package/dist/exports/atoms/std-overworld.orb +5 -4
  326. package/dist/exports/atoms/std-pagination.orb +5 -4
  327. package/dist/exports/atoms/std-physics2d.orb +5 -4
  328. package/dist/exports/atoms/std-platformer-canvas.orb +5 -4
  329. package/dist/exports/atoms/std-quest.orb +5 -8
  330. package/dist/exports/atoms/std-rate-limiter.orb +5 -4
  331. package/dist/exports/atoms/std-rating.orb +5 -4
  332. package/dist/exports/atoms/std-score-board.orb +5 -4
  333. package/dist/exports/atoms/std-score.orb +5 -4
  334. package/dist/exports/atoms/std-search.orb +5 -4
  335. package/dist/exports/atoms/std-selection.orb +5 -4
  336. package/dist/exports/atoms/std-service-custom-bearer.orb +5 -15
  337. package/dist/exports/atoms/std-service-custom-header.orb +5 -17
  338. package/dist/exports/atoms/std-service-custom-noauth.orb +5 -11
  339. package/dist/exports/atoms/std-service-custom-query.orb +5 -17
  340. package/dist/exports/atoms/std-service-email.orb +5 -4
  341. package/dist/exports/atoms/std-service-github.orb +5 -4
  342. package/dist/exports/atoms/std-service-llm.orb +5 -4
  343. package/dist/exports/atoms/std-service-oauth.orb +5 -4
  344. package/dist/exports/atoms/std-service-redis.orb +5 -4
  345. package/dist/exports/atoms/std-service-storage.orb +5 -4
  346. package/dist/exports/atoms/std-service-stripe.orb +5 -4
  347. package/dist/exports/atoms/std-service-twilio.orb +5 -4
  348. package/dist/exports/atoms/std-service-youtube.orb +5 -4
  349. package/dist/exports/atoms/std-simulation-canvas.orb +5 -4
  350. package/dist/exports/atoms/std-sort.orb +5 -4
  351. package/dist/exports/atoms/std-sprite.orb +5 -4
  352. package/dist/exports/atoms/std-tabs.orb +5 -4
  353. package/dist/exports/atoms/std-text-effects.orb +5 -4
  354. package/dist/exports/atoms/std-theme.orb +5 -4
  355. package/dist/exports/atoms/std-timer.orb +5 -4
  356. package/dist/exports/atoms/std-undo.orb +5 -4
  357. package/dist/exports/atoms/std-upload.orb +5 -4
  358. package/dist/exports/atoms/std-validate-on-save.orb +5 -32
  359. package/dist/exports/atoms/std-wizard.orb +5 -4
  360. package/dist/exports/molecules/std-agent-fix-loop.orb +1141 -1709
  361. package/dist/exports/molecules/std-agent-learner.orb +608 -938
  362. package/dist/exports/molecules/std-agent-planner.orb +613 -961
  363. package/dist/exports/molecules/std-agent-rag.orb +586 -915
  364. package/dist/exports/molecules/std-agent-tool-loop.orb +915 -2846
  365. package/dist/exports/molecules/std-builder-game.orb +5 -4
  366. package/dist/exports/molecules/std-cart.orb +196 -307
  367. package/dist/exports/molecules/std-classifier-game.orb +5 -4
  368. package/dist/exports/molecules/std-debugger-game.orb +5 -4
  369. package/dist/exports/molecules/std-detail.orb +309 -467
  370. package/dist/exports/molecules/std-event-handler-game.orb +5 -4
  371. package/dist/exports/molecules/std-form-advanced.orb +5 -8
  372. package/dist/exports/molecules/std-geospatial.orb +363 -539
  373. package/dist/exports/molecules/std-inventory.orb +390 -720
  374. package/dist/exports/molecules/std-list.orb +526 -1156
  375. package/dist/exports/molecules/std-messaging.orb +295 -452
  376. package/dist/exports/molecules/std-negotiator-game.orb +5 -4
  377. package/dist/exports/molecules/std-platformer-game.orb +5 -4
  378. package/dist/exports/molecules/std-puzzle-game.orb +5 -4
  379. package/dist/exports/molecules/std-quiz.orb +5 -4
  380. package/dist/exports/molecules/std-sequencer-game.orb +5 -4
  381. package/dist/exports/molecules/std-service-content-pipeline.orb +5 -4
  382. package/dist/exports/molecules/std-service-custom-api-tester.orb +5 -42
  383. package/dist/exports/molecules/std-service-devops-toolkit.orb +5 -4
  384. package/dist/exports/molecules/std-service-notification-hub.orb +5 -4
  385. package/dist/exports/molecules/std-service-payment-flow.orb +5 -4
  386. package/dist/exports/molecules/std-simulator-game.orb +5 -4
  387. package/dist/exports/molecules/std-turn-based-battle.orb +5 -4
  388. package/dist/exports/organisms/std-agent-assistant.orb +15 -143
  389. package/dist/exports/organisms/std-agent-builder.orb +814 -1476
  390. package/dist/exports/organisms/std-agent-pipeline.orb +785 -1567
  391. package/dist/exports/organisms/std-agent-reviewer.orb +299 -502
  392. package/dist/exports/organisms/std-agent-tutor.orb +306 -493
  393. package/dist/exports/organisms/std-api-gateway.orb +284 -626
  394. package/dist/exports/organisms/std-arcade-game.orb +4 -4
  395. package/dist/exports/organisms/std-booking-system.orb +1422 -2160
  396. package/dist/exports/organisms/std-cicd-pipeline.orb +274 -617
  397. package/dist/exports/organisms/std-cms.orb +1274 -1972
  398. package/dist/exports/organisms/std-coding-academy.orb +4 -4
  399. package/dist/exports/organisms/std-crm.orb +999 -1775
  400. package/dist/exports/organisms/std-devops-dashboard.orb +284 -638
  401. package/dist/exports/organisms/std-ecommerce.orb +1653 -2398
  402. package/dist/exports/organisms/std-finance-tracker.orb +340 -684
  403. package/dist/exports/organisms/std-healthcare.orb +984 -1838
  404. package/dist/exports/organisms/std-helpdesk.orb +340 -744
  405. package/dist/exports/organisms/std-hr-portal.orb +1401 -2151
  406. package/dist/exports/organisms/std-iot-dashboard.orb +284 -626
  407. package/dist/exports/organisms/std-lms.orb +284 -632
  408. package/dist/exports/organisms/std-logic-training.orb +4 -4
  409. package/dist/exports/organisms/std-platformer-app.orb +15 -98
  410. package/dist/exports/organisms/std-project-manager.orb +970 -1774
  411. package/dist/exports/organisms/std-puzzle-app.orb +4 -4
  412. package/dist/exports/organisms/std-realtime-chat.orb +364 -714
  413. package/dist/exports/organisms/std-rpg-game.orb +15 -102
  414. package/dist/exports/organisms/std-service-marketplace.orb +1589 -2361
  415. package/dist/exports/organisms/std-service-research-assistant.orb +4 -15
  416. package/dist/exports/organisms/std-social-feed.orb +62 -66
  417. package/dist/exports/organisms/std-stem-lab.orb +4 -4
  418. package/dist/exports/organisms/std-strategy-game.orb +4 -4
  419. package/dist/exports/organisms/std-trading-dashboard.orb +274 -620
  420. package/dist/index.js.map +1 -1
  421. package/package.json +2 -2
@@ -1,8 +1,28 @@
1
1
  {
2
- "name": "AgentToolLoopOrbital",
2
+ "name": "std-agent-tool-loop",
3
+ "version": "1.0.0",
4
+ "description": "std-agent-tool-loop -- Tool execution loop",
3
5
  "orbitals": [
4
6
  {
5
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
+ ],
6
26
  "entity": {
7
27
  "name": "AgentToolLoop",
8
28
  "persistence": "runtime",
@@ -1324,471 +1344,180 @@
1324
1344
  }
1325
1345
  },
1326
1346
  {
1347
+ "ref": "AgentStepProgress.traits.AgentStepProgressProgress",
1327
1348
  "name": "ToolLoopStepProgress",
1328
1349
  "linkedEntity": "AgentToolLoop",
1329
- "category": "interaction",
1330
- "emits": [
1331
- {
1332
- "event": "ADVANCE",
1333
- "scope": "internal",
1334
- "payload": [
1335
- {
1336
- "name": "step",
1337
- "type": "number"
1338
- }
1339
- ]
1340
- },
1341
- {
1342
- "event": "COMPLETE",
1343
- "scope": "internal",
1344
- "payload": [
1345
- {
1346
- "name": "totalSteps",
1347
- "type": "number"
1348
- }
1349
- ]
1350
- },
1351
- {
1352
- "event": "FAIL",
1353
- "scope": "internal",
1354
- "payload": [
1355
- {
1356
- "name": "step",
1357
- "type": "number"
1358
- }
1359
- ]
1360
- }
1361
- ],
1362
1350
  "listens": [],
1363
- "stateMachine": {
1364
- "states": [
1365
- {
1366
- "name": "idle",
1367
- "isInitial": true
1368
- },
1369
- {
1370
- "name": "in_progress"
1371
- },
1372
- {
1373
- "name": "completed"
1374
- },
1375
- {
1376
- "name": "failed"
1377
- }
1378
- ],
1379
- "events": [
1380
- {
1381
- "key": "INIT",
1382
- "name": "Initialize"
1383
- },
1384
- {
1385
- "key": "START",
1386
- "name": "Start Pipeline"
1387
- },
1388
- {
1389
- "key": "ADVANCE",
1390
- "name": "Advance Step"
1391
- },
1392
- {
1393
- "key": "COMPLETE",
1394
- "name": "Complete Pipeline"
1395
- },
1396
- {
1397
- "key": "FAIL",
1398
- "name": "Pipeline Failed"
1399
- },
1400
- {
1401
- "key": "RESET",
1402
- "name": "Reset Pipeline"
1403
- }
1404
- ],
1405
- "transitions": [
1406
- {
1407
- "from": "idle",
1408
- "to": "idle",
1409
- "event": "INIT",
1410
- "effects": [
1411
- [
1412
- "fetch",
1413
- "AgentToolLoop"
1414
- ],
1415
- [
1416
- "render-ui",
1417
- "main",
1351
+ "emitsScope": "internal",
1352
+ "effects": {
1353
+ "INIT": [
1354
+ [
1355
+ "fetch",
1356
+ "AgentToolLoop"
1357
+ ],
1358
+ [
1359
+ "render-ui",
1360
+ "main",
1361
+ {
1362
+ "type": "stack",
1363
+ "direction": "vertical",
1364
+ "gap": "lg",
1365
+ "children": [
1418
1366
  {
1419
1367
  "type": "stack",
1420
- "direction": "vertical",
1421
- "gap": "lg",
1368
+ "direction": "horizontal",
1369
+ "gap": "sm",
1370
+ "align": "center",
1422
1371
  "children": [
1423
1372
  {
1424
- "type": "stack",
1425
- "direction": "horizontal",
1426
- "gap": "sm",
1427
- "align": "center",
1428
- "children": [
1429
- {
1430
- "type": "icon",
1431
- "name": "list-ordered",
1432
- "size": "lg"
1433
- },
1434
- {
1435
- "type": "typography",
1436
- "content": "AgentToolLoop",
1437
- "variant": "h2"
1438
- },
1439
- {
1440
- "type": "badge",
1441
- "label": "Idle",
1442
- "variant": "default"
1443
- }
1444
- ]
1373
+ "type": "icon",
1374
+ "name": "list-ordered",
1375
+ "size": "lg"
1445
1376
  },
1446
1377
  {
1447
- "type": "divider"
1378
+ "type": "typography",
1379
+ "content": "AgentToolLoop",
1380
+ "variant": "h2"
1448
1381
  },
1449
1382
  {
1450
- "type": "wizard-progress",
1451
- "currentStep": "@entity.currentStep",
1452
- "steps": [
1453
- {
1454
- "id": "0",
1455
- "title": "Plan"
1456
- },
1457
- {
1458
- "id": "1",
1459
- "title": "Execute"
1460
- },
1461
- {
1462
- "id": "2",
1463
- "title": "Check"
1464
- },
1465
- {
1466
- "id": "3",
1467
- "title": "Complete"
1468
- }
1469
- ]
1383
+ "type": "badge",
1384
+ "label": "Idle",
1385
+ "variant": "default"
1386
+ }
1387
+ ]
1388
+ },
1389
+ {
1390
+ "type": "divider"
1391
+ },
1392
+ {
1393
+ "type": "wizard-progress",
1394
+ "currentStep": "@entity.currentStep",
1395
+ "steps": [
1396
+ {
1397
+ "id": "0",
1398
+ "title": "Plan"
1470
1399
  },
1471
1400
  {
1472
- "type": "button",
1473
- "label": "Start",
1474
- "event": "START",
1475
- "variant": "primary",
1476
- "icon": "play"
1401
+ "id": "1",
1402
+ "title": "Execute"
1403
+ },
1404
+ {
1405
+ "id": "2",
1406
+ "title": "Check"
1407
+ },
1408
+ {
1409
+ "id": "3",
1410
+ "title": "Complete"
1477
1411
  }
1478
1412
  ]
1413
+ },
1414
+ {
1415
+ "type": "button",
1416
+ "label": "Start",
1417
+ "event": "START",
1418
+ "variant": "primary",
1419
+ "icon": "play"
1479
1420
  }
1480
1421
  ]
1481
- ]
1482
- },
1483
- {
1484
- "from": "idle",
1485
- "to": "in_progress",
1486
- "event": "START",
1487
- "effects": [
1488
- [
1489
- "set",
1490
- "@entity.status",
1491
- "in_progress"
1492
- ],
1493
- [
1494
- "set",
1495
- "@entity.currentStep",
1496
- 0
1497
- ],
1498
- [
1499
- "render-ui",
1500
- "main",
1422
+ }
1423
+ ]
1424
+ ],
1425
+ "START": [
1426
+ [
1427
+ "set",
1428
+ "@entity.status",
1429
+ "in_progress"
1430
+ ],
1431
+ [
1432
+ "set",
1433
+ "@entity.currentStep",
1434
+ 0
1435
+ ],
1436
+ [
1437
+ "render-ui",
1438
+ "main",
1439
+ {
1440
+ "type": "stack",
1441
+ "direction": "vertical",
1442
+ "gap": "lg",
1443
+ "children": [
1501
1444
  {
1502
1445
  "type": "stack",
1503
- "direction": "vertical",
1504
- "gap": "lg",
1446
+ "direction": "horizontal",
1447
+ "gap": "sm",
1448
+ "align": "center",
1505
1449
  "children": [
1506
1450
  {
1507
- "type": "stack",
1508
- "direction": "horizontal",
1509
- "gap": "sm",
1510
- "align": "center",
1511
- "children": [
1512
- {
1513
- "type": "icon",
1514
- "name": "loader",
1515
- "size": "lg"
1516
- },
1517
- {
1518
- "type": "typography",
1519
- "content": "AgentToolLoop",
1520
- "variant": "h2"
1521
- },
1522
- {
1523
- "type": "badge",
1524
- "label": "In Progress",
1525
- "variant": "warning"
1526
- }
1527
- ]
1451
+ "type": "icon",
1452
+ "name": "loader",
1453
+ "size": "lg"
1528
1454
  },
1529
1455
  {
1530
- "type": "divider"
1456
+ "type": "typography",
1457
+ "content": "AgentToolLoop",
1458
+ "variant": "h2"
1531
1459
  },
1532
1460
  {
1533
- "type": "wizard-progress",
1534
- "currentStep": "@entity.currentStep",
1535
- "steps": [
1536
- {
1537
- "id": "0",
1538
- "title": "Plan"
1539
- },
1540
- {
1541
- "id": "1",
1542
- "title": "Execute"
1543
- },
1544
- {
1545
- "id": "2",
1546
- "title": "Check"
1547
- },
1548
- {
1549
- "id": "3",
1550
- "title": "Complete"
1551
- }
1552
- ]
1461
+ "type": "badge",
1462
+ "label": "In Progress",
1463
+ "variant": "warning"
1464
+ }
1465
+ ]
1466
+ },
1467
+ {
1468
+ "type": "divider"
1469
+ },
1470
+ {
1471
+ "type": "wizard-progress",
1472
+ "currentStep": "@entity.currentStep",
1473
+ "steps": [
1474
+ {
1475
+ "id": "0",
1476
+ "title": "Plan"
1553
1477
  },
1554
1478
  {
1555
- "type": "stack",
1556
- "direction": "horizontal",
1557
- "gap": "sm",
1558
- "align": "center",
1559
- "children": [
1560
- {
1561
- "type": "stat-display",
1562
- "label": "Current Step",
1563
- "value": "@entity.currentStep"
1564
- },
1565
- {
1566
- "type": "stat-display",
1567
- "label": "Total Steps",
1568
- "value": "@entity.totalSteps"
1569
- }
1570
- ]
1479
+ "id": "1",
1480
+ "title": "Execute"
1571
1481
  },
1572
1482
  {
1573
- "type": "stack",
1574
- "direction": "horizontal",
1575
- "gap": "sm",
1576
- "children": [
1577
- {
1578
- "type": "button",
1579
- "label": "Advance",
1580
- "event": "ADVANCE",
1581
- "variant": "primary",
1582
- "icon": "chevron-right"
1583
- },
1584
- {
1585
- "type": "button",
1586
- "label": "Reset",
1587
- "event": "RESET",
1588
- "variant": "ghost",
1589
- "icon": "rotate-ccw"
1590
- }
1591
- ]
1483
+ "id": "2",
1484
+ "title": "Check"
1485
+ },
1486
+ {
1487
+ "id": "3",
1488
+ "title": "Complete"
1592
1489
  }
1593
1490
  ]
1594
- }
1595
- ]
1596
- ]
1597
- },
1598
- {
1599
- "from": "in_progress",
1600
- "to": "in_progress",
1601
- "event": "ADVANCE",
1602
- "guard": [
1603
- "<",
1604
- "@entity.currentStep",
1605
- "@entity.totalSteps"
1606
- ],
1607
- "effects": [
1608
- [
1609
- "set",
1610
- "@entity.currentStep",
1611
- [
1612
- "+",
1613
- "@entity.currentStep",
1614
- 1
1615
- ]
1616
- ],
1617
- [
1618
- "render-ui",
1619
- "main",
1491
+ },
1620
1492
  {
1621
1493
  "type": "stack",
1622
- "direction": "vertical",
1623
- "gap": "lg",
1494
+ "direction": "horizontal",
1495
+ "gap": "sm",
1496
+ "align": "center",
1624
1497
  "children": [
1625
1498
  {
1626
- "type": "stack",
1627
- "direction": "horizontal",
1628
- "gap": "sm",
1629
- "align": "center",
1630
- "children": [
1631
- {
1632
- "type": "icon",
1633
- "name": "loader",
1634
- "size": "lg"
1635
- },
1636
- {
1637
- "type": "typography",
1638
- "content": "AgentToolLoop",
1639
- "variant": "h2"
1640
- },
1641
- {
1642
- "type": "badge",
1643
- "label": "In Progress",
1644
- "variant": "warning"
1645
- }
1646
- ]
1499
+ "type": "stat-display",
1500
+ "label": "Current Step",
1501
+ "value": "@entity.currentStep"
1647
1502
  },
1648
1503
  {
1649
- "type": "divider"
1650
- },
1651
- {
1652
- "type": "wizard-progress",
1653
- "currentStep": "@entity.currentStep",
1654
- "steps": [
1655
- {
1656
- "id": "0",
1657
- "title": "Plan"
1658
- },
1659
- {
1660
- "id": "1",
1661
- "title": "Execute"
1662
- },
1663
- {
1664
- "id": "2",
1665
- "title": "Check"
1666
- },
1667
- {
1668
- "id": "3",
1669
- "title": "Complete"
1670
- }
1671
- ]
1672
- },
1673
- {
1674
- "type": "stack",
1675
- "direction": "horizontal",
1676
- "gap": "sm",
1677
- "align": "center",
1678
- "children": [
1679
- {
1680
- "type": "stat-display",
1681
- "label": "Current Step",
1682
- "value": "@entity.currentStep"
1683
- },
1684
- {
1685
- "type": "stat-display",
1686
- "label": "Total Steps",
1687
- "value": "@entity.totalSteps"
1688
- }
1689
- ]
1690
- },
1691
- {
1692
- "type": "stack",
1693
- "direction": "horizontal",
1694
- "gap": "sm",
1695
- "children": [
1696
- {
1697
- "type": "button",
1698
- "label": "Advance",
1699
- "event": "ADVANCE",
1700
- "variant": "primary",
1701
- "icon": "chevron-right"
1702
- },
1703
- {
1704
- "type": "button",
1705
- "label": "Reset",
1706
- "event": "RESET",
1707
- "variant": "ghost",
1708
- "icon": "rotate-ccw"
1709
- }
1710
- ]
1711
- }
1712
- ]
1713
- }
1714
- ]
1715
- ]
1716
- },
1717
- {
1718
- "from": "in_progress",
1719
- "to": "completed",
1720
- "event": "COMPLETE",
1721
- "effects": [
1722
- [
1723
- "set",
1724
- "@entity.status",
1725
- "completed"
1726
- ],
1727
- [
1728
- "set",
1729
- "@entity.currentStep",
1730
- "@entity.totalSteps"
1731
- ],
1732
- [
1733
- "render-ui",
1734
- "main",
1735
- {
1736
- "type": "stack",
1737
- "direction": "vertical",
1738
- "gap": "lg",
1739
- "children": [
1740
- {
1741
- "type": "stack",
1742
- "direction": "horizontal",
1743
- "gap": "sm",
1744
- "align": "center",
1745
- "children": [
1746
- {
1747
- "type": "icon",
1748
- "name": "check-circle",
1749
- "size": "lg"
1750
- },
1751
- {
1752
- "type": "typography",
1753
- "content": "AgentToolLoop",
1754
- "variant": "h2"
1755
- },
1756
- {
1757
- "type": "badge",
1758
- "label": "Completed",
1759
- "variant": "success"
1760
- }
1761
- ]
1762
- },
1763
- {
1764
- "type": "divider"
1765
- },
1766
- {
1767
- "type": "wizard-progress",
1768
- "currentStep": "@entity.totalSteps",
1769
- "steps": [
1770
- {
1771
- "id": "0",
1772
- "title": "Plan"
1773
- },
1774
- {
1775
- "id": "1",
1776
- "title": "Execute"
1777
- },
1778
- {
1779
- "id": "2",
1780
- "title": "Check"
1781
- },
1782
- {
1783
- "id": "3",
1784
- "title": "Complete"
1785
- }
1786
- ]
1787
- },
1788
- {
1789
- "type": "alert",
1790
- "variant": "success",
1791
- "message": "All steps completed successfully."
1504
+ "type": "stat-display",
1505
+ "label": "Total Steps",
1506
+ "value": "@entity.totalSteps"
1507
+ }
1508
+ ]
1509
+ },
1510
+ {
1511
+ "type": "stack",
1512
+ "direction": "horizontal",
1513
+ "gap": "sm",
1514
+ "children": [
1515
+ {
1516
+ "type": "button",
1517
+ "label": "Advance",
1518
+ "event": "ADVANCE",
1519
+ "variant": "primary",
1520
+ "icon": "chevron-right"
1792
1521
  },
1793
1522
  {
1794
1523
  "type": "button",
@@ -1800,2628 +1529,969 @@
1800
1529
  ]
1801
1530
  }
1802
1531
  ]
1532
+ }
1533
+ ]
1534
+ ],
1535
+ "ADVANCE": [
1536
+ [
1537
+ "set",
1538
+ "@entity.currentStep",
1539
+ [
1540
+ "+",
1541
+ "@entity.currentStep",
1542
+ 1
1803
1543
  ]
1804
- },
1805
- {
1806
- "from": "in_progress",
1807
- "to": "failed",
1808
- "event": "FAIL",
1809
- "effects": [
1810
- [
1811
- "set",
1812
- "@entity.status",
1813
- "failed"
1814
- ],
1815
- [
1816
- "render-ui",
1817
- "main",
1544
+ ],
1545
+ [
1546
+ "render-ui",
1547
+ "main",
1548
+ {
1549
+ "type": "stack",
1550
+ "direction": "vertical",
1551
+ "gap": "lg",
1552
+ "children": [
1818
1553
  {
1819
1554
  "type": "stack",
1820
- "direction": "vertical",
1821
- "gap": "lg",
1555
+ "direction": "horizontal",
1556
+ "gap": "sm",
1557
+ "align": "center",
1822
1558
  "children": [
1823
1559
  {
1824
- "type": "stack",
1825
- "direction": "horizontal",
1826
- "gap": "sm",
1827
- "align": "center",
1828
- "children": [
1829
- {
1830
- "type": "icon",
1831
- "name": "x-circle",
1832
- "size": "lg"
1833
- },
1834
- {
1835
- "type": "typography",
1836
- "content": "AgentToolLoop",
1837
- "variant": "h2"
1838
- },
1839
- {
1840
- "type": "badge",
1841
- "label": "Failed",
1842
- "variant": "destructive"
1843
- }
1844
- ]
1560
+ "type": "icon",
1561
+ "name": "loader",
1562
+ "size": "lg"
1845
1563
  },
1846
1564
  {
1847
- "type": "divider"
1565
+ "type": "typography",
1566
+ "content": "AgentToolLoop",
1567
+ "variant": "h2"
1848
1568
  },
1849
1569
  {
1850
- "type": "wizard-progress",
1851
- "currentStep": "@entity.currentStep",
1852
- "steps": [
1853
- {
1854
- "id": "0",
1855
- "title": "Plan"
1856
- },
1857
- {
1858
- "id": "1",
1859
- "title": "Execute"
1860
- },
1861
- {
1862
- "id": "2",
1863
- "title": "Check"
1864
- },
1865
- {
1866
- "id": "3",
1867
- "title": "Complete"
1868
- }
1869
- ]
1570
+ "type": "badge",
1571
+ "label": "In Progress",
1572
+ "variant": "warning"
1573
+ }
1574
+ ]
1575
+ },
1576
+ {
1577
+ "type": "divider"
1578
+ },
1579
+ {
1580
+ "type": "wizard-progress",
1581
+ "currentStep": "@entity.currentStep",
1582
+ "steps": [
1583
+ {
1584
+ "id": "0",
1585
+ "title": "Plan"
1870
1586
  },
1871
1587
  {
1872
- "type": "alert",
1873
- "variant": "error",
1874
- "message": "Pipeline failed at the current step."
1588
+ "id": "1",
1589
+ "title": "Execute"
1875
1590
  },
1876
1591
  {
1877
- "type": "stack",
1878
- "direction": "horizontal",
1879
- "gap": "sm",
1880
- "children": [
1881
- {
1882
- "type": "stat-display",
1883
- "label": "Failed At Step",
1884
- "value": "@entity.currentStep"
1885
- }
1886
- ]
1592
+ "id": "2",
1593
+ "title": "Check"
1887
1594
  },
1888
1595
  {
1889
- "type": "button",
1890
- "label": "Reset",
1891
- "event": "RESET",
1892
- "variant": "ghost",
1893
- "icon": "rotate-ccw"
1596
+ "id": "3",
1597
+ "title": "Complete"
1894
1598
  }
1895
1599
  ]
1896
- }
1897
- ]
1898
- ]
1899
- },
1900
- {
1901
- "from": "idle",
1902
- "to": "idle",
1903
- "event": "RESET",
1904
- "effects": [
1905
- [
1906
- "set",
1907
- "@entity.status",
1908
- "idle"
1909
- ],
1910
- [
1911
- "set",
1912
- "@entity.currentStep",
1913
- 0
1914
- ],
1915
- [
1916
- "render-ui",
1917
- "main",
1600
+ },
1918
1601
  {
1919
1602
  "type": "stack",
1920
- "direction": "vertical",
1921
- "gap": "lg",
1603
+ "direction": "horizontal",
1604
+ "gap": "sm",
1605
+ "align": "center",
1922
1606
  "children": [
1923
1607
  {
1924
- "type": "stack",
1925
- "direction": "horizontal",
1926
- "gap": "sm",
1927
- "align": "center",
1928
- "children": [
1929
- {
1930
- "type": "icon",
1931
- "name": "list-ordered",
1932
- "size": "lg"
1933
- },
1934
- {
1935
- "type": "typography",
1936
- "content": "AgentToolLoop",
1937
- "variant": "h2"
1938
- },
1939
- {
1940
- "type": "badge",
1941
- "label": "Idle",
1942
- "variant": "default"
1943
- }
1944
- ]
1608
+ "type": "stat-display",
1609
+ "label": "Current Step",
1610
+ "value": "@entity.currentStep"
1945
1611
  },
1946
1612
  {
1947
- "type": "divider"
1948
- },
1613
+ "type": "stat-display",
1614
+ "label": "Total Steps",
1615
+ "value": "@entity.totalSteps"
1616
+ }
1617
+ ]
1618
+ },
1619
+ {
1620
+ "type": "stack",
1621
+ "direction": "horizontal",
1622
+ "gap": "sm",
1623
+ "children": [
1949
1624
  {
1950
- "type": "wizard-progress",
1951
- "currentStep": "@entity.currentStep",
1952
- "steps": [
1953
- {
1954
- "id": "0",
1955
- "title": "Plan"
1956
- },
1957
- {
1958
- "id": "1",
1959
- "title": "Execute"
1960
- },
1961
- {
1962
- "id": "2",
1963
- "title": "Check"
1964
- },
1965
- {
1966
- "id": "3",
1967
- "title": "Complete"
1968
- }
1969
- ]
1625
+ "type": "button",
1626
+ "label": "Advance",
1627
+ "event": "ADVANCE",
1628
+ "variant": "primary",
1629
+ "icon": "chevron-right"
1970
1630
  },
1971
1631
  {
1972
1632
  "type": "button",
1973
- "label": "Start",
1974
- "event": "START",
1975
- "variant": "primary",
1976
- "icon": "play"
1633
+ "label": "Reset",
1634
+ "event": "RESET",
1635
+ "variant": "ghost",
1636
+ "icon": "rotate-ccw"
1977
1637
  }
1978
1638
  ]
1979
1639
  }
1980
1640
  ]
1981
- ]
1982
- },
1983
- {
1984
- "from": "in_progress",
1985
- "to": "idle",
1986
- "event": "RESET",
1987
- "effects": [
1988
- [
1989
- "set",
1990
- "@entity.status",
1991
- "idle"
1992
- ],
1993
- [
1994
- "set",
1995
- "@entity.currentStep",
1996
- 0
1997
- ],
1998
- [
1999
- "render-ui",
2000
- "main",
2001
- {
2002
- "type": "stack",
2003
- "direction": "vertical",
2004
- "gap": "lg",
2005
- "children": [
2006
- {
2007
- "type": "stack",
2008
- "direction": "horizontal",
2009
- "gap": "sm",
2010
- "align": "center",
2011
- "children": [
2012
- {
2013
- "type": "icon",
2014
- "name": "list-ordered",
2015
- "size": "lg"
2016
- },
2017
- {
2018
- "type": "typography",
2019
- "content": "AgentToolLoop",
2020
- "variant": "h2"
2021
- },
2022
- {
2023
- "type": "badge",
2024
- "label": "Idle",
2025
- "variant": "default"
2026
- }
2027
- ]
2028
- },
2029
- {
2030
- "type": "divider"
2031
- },
2032
- {
2033
- "type": "wizard-progress",
2034
- "currentStep": "@entity.currentStep",
2035
- "steps": [
2036
- {
2037
- "id": "0",
2038
- "title": "Plan"
2039
- },
2040
- {
2041
- "id": "1",
2042
- "title": "Execute"
2043
- },
2044
- {
2045
- "id": "2",
2046
- "title": "Check"
2047
- },
2048
- {
2049
- "id": "3",
2050
- "title": "Complete"
2051
- }
2052
- ]
2053
- },
2054
- {
2055
- "type": "button",
2056
- "label": "Start",
2057
- "event": "START",
2058
- "variant": "primary",
2059
- "icon": "play"
2060
- }
2061
- ]
2062
- }
2063
- ]
2064
- ]
2065
- },
2066
- {
2067
- "from": "completed",
2068
- "to": "idle",
2069
- "event": "RESET",
2070
- "effects": [
2071
- [
2072
- "set",
2073
- "@entity.status",
2074
- "idle"
2075
- ],
2076
- [
2077
- "set",
2078
- "@entity.currentStep",
2079
- 0
2080
- ],
2081
- [
2082
- "render-ui",
2083
- "main",
2084
- {
2085
- "type": "stack",
2086
- "direction": "vertical",
2087
- "gap": "lg",
2088
- "children": [
2089
- {
2090
- "type": "stack",
2091
- "direction": "horizontal",
2092
- "gap": "sm",
2093
- "align": "center",
2094
- "children": [
2095
- {
2096
- "type": "icon",
2097
- "name": "list-ordered",
2098
- "size": "lg"
2099
- },
2100
- {
2101
- "type": "typography",
2102
- "content": "AgentToolLoop",
2103
- "variant": "h2"
2104
- },
2105
- {
2106
- "type": "badge",
2107
- "label": "Idle",
2108
- "variant": "default"
2109
- }
2110
- ]
2111
- },
2112
- {
2113
- "type": "divider"
2114
- },
2115
- {
2116
- "type": "wizard-progress",
2117
- "currentStep": "@entity.currentStep",
2118
- "steps": [
2119
- {
2120
- "id": "0",
2121
- "title": "Plan"
2122
- },
2123
- {
2124
- "id": "1",
2125
- "title": "Execute"
2126
- },
2127
- {
2128
- "id": "2",
2129
- "title": "Check"
2130
- },
2131
- {
2132
- "id": "3",
2133
- "title": "Complete"
2134
- }
2135
- ]
2136
- },
2137
- {
2138
- "type": "button",
2139
- "label": "Start",
2140
- "event": "START",
2141
- "variant": "primary",
2142
- "icon": "play"
2143
- }
2144
- ]
2145
- }
2146
- ]
2147
- ]
2148
- },
2149
- {
2150
- "from": "failed",
2151
- "to": "idle",
2152
- "event": "RESET",
2153
- "effects": [
2154
- [
2155
- "set",
2156
- "@entity.status",
2157
- "idle"
2158
- ],
2159
- [
2160
- "set",
2161
- "@entity.currentStep",
2162
- 0
2163
- ],
2164
- [
2165
- "render-ui",
2166
- "main",
2167
- {
2168
- "type": "stack",
2169
- "direction": "vertical",
2170
- "gap": "lg",
2171
- "children": [
2172
- {
2173
- "type": "stack",
2174
- "direction": "horizontal",
2175
- "gap": "sm",
2176
- "align": "center",
2177
- "children": [
2178
- {
2179
- "type": "icon",
2180
- "name": "list-ordered",
2181
- "size": "lg"
2182
- },
2183
- {
2184
- "type": "typography",
2185
- "content": "AgentToolLoop",
2186
- "variant": "h2"
2187
- },
2188
- {
2189
- "type": "badge",
2190
- "label": "Idle",
2191
- "variant": "default"
2192
- }
2193
- ]
2194
- },
2195
- {
2196
- "type": "divider"
2197
- },
2198
- {
2199
- "type": "wizard-progress",
2200
- "currentStep": "@entity.currentStep",
2201
- "steps": [
2202
- {
2203
- "id": "0",
2204
- "title": "Plan"
2205
- },
2206
- {
2207
- "id": "1",
2208
- "title": "Execute"
2209
- },
2210
- {
2211
- "id": "2",
2212
- "title": "Check"
2213
- },
2214
- {
2215
- "id": "3",
2216
- "title": "Complete"
2217
- }
2218
- ]
2219
- },
2220
- {
2221
- "type": "button",
2222
- "label": "Start",
2223
- "event": "START",
2224
- "variant": "primary",
2225
- "icon": "play"
2226
- }
2227
- ]
2228
- }
2229
- ]
2230
- ]
2231
- }
2232
- ]
2233
- }
2234
- },
2235
- {
2236
- "name": "ToolLoopCompletionFlow",
2237
- "linkedEntity": "AgentToolLoop",
2238
- "category": "interaction",
2239
- "emits": [
2240
- {
2241
- "event": "GENERATED",
2242
- "scope": "internal"
2243
- }
2244
- ],
2245
- "stateMachine": {
2246
- "states": [
2247
- {
2248
- "name": "closed",
2249
- "isInitial": true
2250
- },
2251
- {
2252
- "name": "open"
2253
- }
2254
- ],
2255
- "events": [
2256
- {
2257
- "key": "INIT",
2258
- "name": "Initialize"
2259
- },
2260
- {
2261
- "key": "GENERATE",
2262
- "name": "Open"
2263
- },
2264
- {
2265
- "key": "CLOSE",
2266
- "name": "Close"
2267
- },
2268
- {
2269
- "key": "SAVE",
2270
- "name": "Save",
2271
- "payload": [
2272
- {
2273
- "name": "data",
2274
- "type": "object",
2275
- "required": true
2276
- }
2277
- ]
2278
- }
1641
+ }
1642
+ ]
2279
1643
  ],
2280
- "transitions": [
2281
- {
2282
- "from": "closed",
2283
- "to": "closed",
2284
- "event": "INIT",
2285
- "effects": [
2286
- [
2287
- "ref",
2288
- "AgentToolLoop"
2289
- ],
2290
- [
2291
- "render-ui",
2292
- "main",
2293
- {
2294
- "type": "stack",
2295
- "direction": "vertical",
2296
- "gap": "lg",
2297
- "children": [
2298
- {
2299
- "type": "stack",
2300
- "direction": "horizontal",
2301
- "gap": "md",
2302
- "justify": "space-between",
2303
- "children": [
2304
- {
2305
- "type": "stack",
2306
- "direction": "horizontal",
2307
- "gap": "md",
2308
- "children": [
2309
- {
2310
- "type": "icon",
2311
- "name": "sparkles",
2312
- "size": "lg"
2313
- },
2314
- {
2315
- "type": "typography",
2316
- "content": "AgentToolLoop",
2317
- "variant": "h2"
2318
- }
2319
- ]
2320
- },
2321
- {
2322
- "type": "button",
2323
- "label": "Open",
2324
- "event": "GENERATE",
2325
- "variant": "primary",
2326
- "icon": "sparkles"
2327
- }
2328
- ]
2329
- },
2330
- {
2331
- "type": "divider"
2332
- },
2333
- {
2334
- "type": "empty-state",
2335
- "icon": "sparkles",
2336
- "title": "Nothing open",
2337
- "description": "Click Open to view details in a modal overlay."
2338
- }
2339
- ]
2340
- }
2341
- ]
2342
- ]
2343
- },
2344
- {
2345
- "from": "closed",
2346
- "to": "open",
2347
- "event": "GENERATE",
2348
- "effects": [
2349
- [
2350
- "render-ui",
2351
- "modal",
2352
- {
2353
- "type": "stack",
2354
- "direction": "vertical",
2355
- "gap": "md",
2356
- "children": [
2357
- {
2358
- "type": "stack",
2359
- "direction": "horizontal",
2360
- "gap": "sm",
2361
- "children": [
2362
- {
2363
- "type": "icon",
2364
- "name": "sparkles",
2365
- "size": "md"
2366
- },
2367
- {
2368
- "type": "typography",
2369
- "content": "AgentToolLoop",
2370
- "variant": "h3"
2371
- }
2372
- ]
2373
- },
2374
- {
2375
- "type": "divider"
2376
- },
2377
- {
2378
- "type": "stack",
2379
- "direction": "horizontal",
2380
- "gap": "sm",
2381
- "children": [
2382
- {
2383
- "type": "badge",
2384
- "label": "@entity.provider"
2385
- },
2386
- {
2387
- "type": "badge",
2388
- "label": "@entity.model"
2389
- }
2390
- ]
2391
- },
2392
- {
2393
- "type": "form-section",
2394
- "entity": "AgentToolLoop",
2395
- "mode": "create",
2396
- "submitEvent": "SAVE",
2397
- "cancelEvent": "CLOSE",
2398
- "fields": [
2399
- "prompt"
2400
- ]
2401
- }
2402
- ]
2403
- }
2404
- ]
2405
- ]
2406
- },
2407
- {
2408
- "from": "open",
2409
- "to": "closed",
2410
- "event": "CLOSE",
2411
- "effects": [
2412
- [
2413
- "render-ui",
2414
- "modal",
2415
- null
2416
- ],
2417
- [
2418
- "notify",
2419
- "Cancelled",
2420
- "info"
2421
- ],
2422
- [
2423
- "ref",
2424
- "AgentToolLoop"
2425
- ],
2426
- [
2427
- "render-ui",
2428
- "main",
2429
- {
2430
- "type": "stack",
2431
- "direction": "vertical",
2432
- "gap": "lg",
2433
- "children": [
2434
- {
2435
- "type": "stack",
2436
- "direction": "horizontal",
2437
- "gap": "md",
2438
- "justify": "space-between",
2439
- "children": [
2440
- {
2441
- "type": "stack",
2442
- "direction": "horizontal",
2443
- "gap": "md",
2444
- "children": [
2445
- {
2446
- "type": "icon",
2447
- "name": "sparkles",
2448
- "size": "lg"
2449
- },
2450
- {
2451
- "type": "typography",
2452
- "content": "AgentToolLoop",
2453
- "variant": "h2"
2454
- }
2455
- ]
2456
- },
2457
- {
2458
- "type": "button",
2459
- "label": "Open",
2460
- "event": "GENERATE",
2461
- "variant": "primary",
2462
- "icon": "sparkles"
2463
- }
2464
- ]
2465
- },
2466
- {
2467
- "type": "divider"
2468
- },
2469
- {
2470
- "type": "empty-state",
2471
- "icon": "sparkles",
2472
- "title": "Nothing open",
2473
- "description": "Click Open to view details in a modal overlay."
2474
- }
2475
- ]
2476
- }
2477
- ]
2478
- ]
2479
- },
2480
- {
2481
- "from": "open",
2482
- "to": "closed",
2483
- "event": "SAVE",
2484
- "effects": [
2485
- [
2486
- "persist",
2487
- "create",
2488
- "AgentToolLoop",
2489
- "@payload.data"
2490
- ],
2491
- [
2492
- "render-ui",
2493
- "modal",
2494
- null
2495
- ],
2496
- [
2497
- "emit",
2498
- "GENERATED"
2499
- ],
2500
- [
2501
- "ref",
2502
- "AgentToolLoop"
2503
- ],
2504
- [
2505
- "render-ui",
2506
- "main",
2507
- {
2508
- "type": "stack",
2509
- "direction": "vertical",
2510
- "gap": "lg",
2511
- "children": [
2512
- {
2513
- "type": "stack",
2514
- "direction": "horizontal",
2515
- "gap": "md",
2516
- "justify": "space-between",
2517
- "children": [
2518
- {
2519
- "type": "stack",
2520
- "direction": "horizontal",
2521
- "gap": "md",
2522
- "children": [
2523
- {
2524
- "type": "icon",
2525
- "name": "sparkles",
2526
- "size": "lg"
2527
- },
2528
- {
2529
- "type": "typography",
2530
- "content": "AgentToolLoop",
2531
- "variant": "h2"
2532
- }
2533
- ]
2534
- },
2535
- {
2536
- "type": "button",
2537
- "label": "Open",
2538
- "event": "GENERATE",
2539
- "variant": "primary",
2540
- "icon": "sparkles"
2541
- }
2542
- ]
2543
- },
2544
- {
2545
- "type": "divider"
2546
- },
2547
- {
2548
- "type": "empty-state",
2549
- "icon": "sparkles",
2550
- "title": "Nothing open",
2551
- "description": "Click Open to view details in a modal overlay."
2552
- }
2553
- ]
2554
- }
2555
- ],
2556
- [
2557
- "notify",
2558
- "AgentToolLoop created successfully"
2559
- ]
2560
- ]
2561
- }
2562
- ]
2563
- },
2564
- "listens": []
2565
- },
2566
- {
2567
- "name": "ToolLoopToolCallFlow",
2568
- "linkedEntity": "AgentToolLoop",
2569
- "category": "interaction",
2570
- "emits": [
2571
- {
2572
- "event": "INVOKED",
2573
- "scope": "internal"
2574
- }
2575
- ],
2576
- "stateMachine": {
2577
- "states": [
2578
- {
2579
- "name": "closed",
2580
- "isInitial": true
2581
- },
2582
- {
2583
- "name": "open"
2584
- }
2585
- ],
2586
- "events": [
2587
- {
2588
- "key": "INIT",
2589
- "name": "Initialize"
2590
- },
2591
- {
2592
- "key": "INVOKE",
2593
- "name": "Open"
2594
- },
2595
- {
2596
- "key": "CLOSE",
2597
- "name": "Close"
2598
- },
2599
- {
2600
- "key": "SAVE",
2601
- "name": "Save",
2602
- "payload": [
2603
- {
2604
- "name": "data",
2605
- "type": "object",
2606
- "required": true
2607
- }
2608
- ]
2609
- }
2610
- ],
2611
- "transitions": [
2612
- {
2613
- "from": "closed",
2614
- "to": "closed",
2615
- "event": "INIT",
2616
- "effects": [
2617
- [
2618
- "ref",
2619
- "AgentToolLoop"
2620
- ],
2621
- [
2622
- "render-ui",
2623
- "main",
2624
- {
2625
- "type": "stack",
2626
- "direction": "vertical",
2627
- "gap": "lg",
2628
- "children": [
2629
- {
2630
- "type": "stack",
2631
- "direction": "horizontal",
2632
- "gap": "md",
2633
- "justify": "space-between",
2634
- "children": [
2635
- {
2636
- "type": "stack",
2637
- "direction": "horizontal",
2638
- "gap": "md",
2639
- "children": [
2640
- {
2641
- "type": "icon",
2642
- "name": "wrench",
2643
- "size": "lg"
2644
- },
2645
- {
2646
- "type": "typography",
2647
- "content": "Invoke Tool",
2648
- "variant": "h2"
2649
- }
2650
- ]
2651
- },
2652
- {
2653
- "type": "button",
2654
- "label": "Open",
2655
- "event": "INVOKE",
2656
- "variant": "primary",
2657
- "icon": "wrench"
2658
- }
2659
- ]
2660
- },
2661
- {
2662
- "type": "divider"
2663
- },
2664
- {
2665
- "type": "empty-state",
2666
- "icon": "wrench",
2667
- "title": "Nothing open",
2668
- "description": "Click Open to view details in a modal overlay."
2669
- }
2670
- ]
2671
- }
2672
- ]
2673
- ]
2674
- },
2675
- {
2676
- "from": "closed",
2677
- "to": "open",
2678
- "event": "INVOKE",
2679
- "effects": [
2680
- [
2681
- "render-ui",
2682
- "modal",
2683
- {
2684
- "type": "stack",
2685
- "direction": "vertical",
2686
- "gap": "md",
2687
- "children": [
2688
- {
2689
- "type": "stack",
2690
- "direction": "horizontal",
2691
- "gap": "sm",
2692
- "children": [
2693
- {
2694
- "type": "icon",
2695
- "name": "wrench",
2696
- "size": "md"
2697
- },
2698
- {
2699
- "type": "typography",
2700
- "content": "Invoke Tool",
2701
- "variant": "h3"
2702
- }
2703
- ]
2704
- },
2705
- {
2706
- "type": "divider"
2707
- },
2708
- {
2709
- "type": "form-section",
2710
- "entity": "AgentToolLoop",
2711
- "mode": "create",
2712
- "submitEvent": "SAVE",
2713
- "cancelEvent": "CLOSE",
2714
- "fields": [
2715
- "toolName",
2716
- "args"
2717
- ]
2718
- }
2719
- ]
2720
- }
2721
- ]
2722
- ]
2723
- },
2724
- {
2725
- "from": "open",
2726
- "to": "closed",
2727
- "event": "CLOSE",
2728
- "effects": [
2729
- [
2730
- "render-ui",
2731
- "modal",
2732
- null
2733
- ],
2734
- [
2735
- "notify",
2736
- "Cancelled",
2737
- "info"
2738
- ],
2739
- [
2740
- "ref",
2741
- "AgentToolLoop"
2742
- ],
2743
- [
2744
- "render-ui",
2745
- "main",
2746
- {
2747
- "type": "stack",
2748
- "direction": "vertical",
2749
- "gap": "lg",
2750
- "children": [
2751
- {
2752
- "type": "stack",
2753
- "direction": "horizontal",
2754
- "gap": "md",
2755
- "justify": "space-between",
2756
- "children": [
2757
- {
2758
- "type": "stack",
2759
- "direction": "horizontal",
2760
- "gap": "md",
2761
- "children": [
2762
- {
2763
- "type": "icon",
2764
- "name": "wrench",
2765
- "size": "lg"
2766
- },
2767
- {
2768
- "type": "typography",
2769
- "content": "Invoke Tool",
2770
- "variant": "h2"
2771
- }
2772
- ]
2773
- },
2774
- {
2775
- "type": "button",
2776
- "label": "Open",
2777
- "event": "INVOKE",
2778
- "variant": "primary",
2779
- "icon": "wrench"
2780
- }
2781
- ]
2782
- },
2783
- {
2784
- "type": "divider"
2785
- },
2786
- {
2787
- "type": "empty-state",
2788
- "icon": "wrench",
2789
- "title": "Nothing open",
2790
- "description": "Click Open to view details in a modal overlay."
2791
- }
2792
- ]
2793
- }
2794
- ]
2795
- ]
2796
- },
2797
- {
2798
- "from": "open",
2799
- "to": "closed",
2800
- "event": "SAVE",
2801
- "effects": [
2802
- [
2803
- "persist",
2804
- "create",
2805
- "AgentToolLoop",
2806
- "@payload.data"
2807
- ],
2808
- [
2809
- "render-ui",
2810
- "modal",
2811
- null
2812
- ],
2813
- [
2814
- "emit",
2815
- "INVOKED"
2816
- ],
2817
- [
2818
- "ref",
2819
- "AgentToolLoop"
2820
- ],
2821
- [
2822
- "render-ui",
2823
- "main",
2824
- {
2825
- "type": "stack",
2826
- "direction": "vertical",
2827
- "gap": "lg",
2828
- "children": [
2829
- {
2830
- "type": "stack",
2831
- "direction": "horizontal",
2832
- "gap": "md",
2833
- "justify": "space-between",
2834
- "children": [
2835
- {
2836
- "type": "stack",
2837
- "direction": "horizontal",
2838
- "gap": "md",
2839
- "children": [
2840
- {
2841
- "type": "icon",
2842
- "name": "wrench",
2843
- "size": "lg"
2844
- },
2845
- {
2846
- "type": "typography",
2847
- "content": "Invoke Tool",
2848
- "variant": "h2"
2849
- }
2850
- ]
2851
- },
2852
- {
2853
- "type": "button",
2854
- "label": "Open",
2855
- "event": "INVOKE",
2856
- "variant": "primary",
2857
- "icon": "wrench"
2858
- }
2859
- ]
2860
- },
2861
- {
2862
- "type": "divider"
2863
- },
2864
- {
2865
- "type": "empty-state",
2866
- "icon": "wrench",
2867
- "title": "Nothing open",
2868
- "description": "Click Open to view details in a modal overlay."
2869
- }
2870
- ]
2871
- }
2872
- ],
2873
- [
2874
- "notify",
2875
- "AgentToolLoop created successfully"
2876
- ]
2877
- ]
2878
- }
2879
- ]
2880
- },
2881
- "listens": []
2882
- },
2883
- {
2884
- "name": "ToolLoopContextMonitor",
2885
- "linkedEntity": "AgentToolLoop",
2886
- "category": "interaction",
2887
- "stateMachine": {
2888
- "states": [
2889
- {
2890
- "name": "normal",
2891
- "isInitial": true
2892
- },
2893
- {
2894
- "name": "warning"
2895
- },
2896
- {
2897
- "name": "critical"
2898
- }
2899
- ],
2900
- "events": [
2901
- {
2902
- "key": "INIT",
2903
- "name": "Initialize"
2904
- },
2905
- {
2906
- "key": "UPDATE",
2907
- "name": "Update Token Count",
2908
- "payload": [
2909
- {
2910
- "name": "current",
2911
- "type": "number",
2912
- "required": true
2913
- }
2914
- ]
2915
- },
2916
- {
2917
- "key": "COMPACT",
2918
- "name": "Compact Context"
2919
- },
2920
- {
2921
- "key": "RESET",
2922
- "name": "Reset Gauge"
2923
- }
2924
- ],
2925
- "transitions": [
2926
- {
2927
- "from": "normal",
2928
- "to": "normal",
2929
- "event": "INIT",
2930
- "effects": [
2931
- [
2932
- "fetch",
2933
- "AgentToolLoop"
2934
- ],
2935
- [
2936
- "render-ui",
2937
- "main",
2938
- {
2939
- "type": "stack",
2940
- "direction": "vertical",
2941
- "gap": "lg",
2942
- "children": [
2943
- {
2944
- "type": "stack",
2945
- "direction": "horizontal",
2946
- "gap": "sm",
2947
- "align": "center",
2948
- "children": [
2949
- {
2950
- "type": "icon",
2951
- "name": "gauge",
2952
- "size": "lg"
2953
- },
2954
- {
2955
- "type": "typography",
2956
- "content": "Token Usage",
2957
- "variant": "h2"
2958
- },
2959
- {
2960
- "type": "badge",
2961
- "label": "Normal",
2962
- "variant": "default"
2963
- }
2964
- ]
2965
- },
2966
- {
2967
- "type": "divider"
2968
- },
2969
- {
2970
- "type": "progress-bar",
2971
- "value": "@entity.current",
2972
- "max": "@entity.max"
2973
- },
2974
- {
2975
- "type": "stack",
2976
- "direction": "horizontal",
2977
- "gap": "md",
2978
- "children": [
2979
- {
2980
- "type": "stat-display",
2981
- "label": "Tokens Used",
2982
- "value": "@entity.current"
2983
- },
2984
- {
2985
- "type": "stat-display",
2986
- "label": "Max Tokens",
2987
- "value": "@entity.max"
2988
- }
2989
- ]
2990
- },
2991
- {
2992
- "type": "button",
2993
- "label": "Reset",
2994
- "event": "RESET",
2995
- "variant": "ghost",
2996
- "icon": "rotate-ccw"
2997
- }
2998
- ]
2999
- }
3000
- ]
3001
- ]
3002
- },
3003
- {
3004
- "from": "normal",
3005
- "to": "normal",
3006
- "event": "UPDATE",
3007
- "guard": [
3008
- "<",
3009
- [
3010
- "/",
3011
- "@payload.current",
3012
- "@entity.max"
3013
- ],
3014
- 0.85
3015
- ],
3016
- "effects": [
3017
- [
3018
- "set",
3019
- "@entity.current",
3020
- "@payload.current"
3021
- ],
3022
- [
3023
- "render-ui",
3024
- "main",
3025
- {
3026
- "type": "stack",
3027
- "direction": "vertical",
3028
- "gap": "lg",
3029
- "children": [
3030
- {
3031
- "type": "stack",
3032
- "direction": "horizontal",
3033
- "gap": "sm",
3034
- "align": "center",
3035
- "children": [
3036
- {
3037
- "type": "icon",
3038
- "name": "gauge",
3039
- "size": "lg"
3040
- },
3041
- {
3042
- "type": "typography",
3043
- "content": "Token Usage",
3044
- "variant": "h2"
3045
- },
3046
- {
3047
- "type": "badge",
3048
- "label": "Normal",
3049
- "variant": "default"
3050
- }
3051
- ]
3052
- },
3053
- {
3054
- "type": "divider"
3055
- },
3056
- {
3057
- "type": "progress-bar",
3058
- "value": "@entity.current",
3059
- "max": "@entity.max"
3060
- },
3061
- {
3062
- "type": "stack",
3063
- "direction": "horizontal",
3064
- "gap": "md",
3065
- "children": [
3066
- {
3067
- "type": "stat-display",
3068
- "label": "Tokens Used",
3069
- "value": "@entity.current"
3070
- },
3071
- {
3072
- "type": "stat-display",
3073
- "label": "Max Tokens",
3074
- "value": "@entity.max"
3075
- }
3076
- ]
3077
- },
3078
- {
3079
- "type": "button",
3080
- "label": "Reset",
3081
- "event": "RESET",
3082
- "variant": "ghost",
3083
- "icon": "rotate-ccw"
3084
- }
3085
- ]
3086
- }
3087
- ]
3088
- ]
3089
- },
3090
- {
3091
- "from": "normal",
3092
- "to": "warning",
3093
- "event": "UPDATE",
3094
- "guard": [
3095
- "and",
3096
- [
3097
- ">=",
3098
- [
3099
- "/",
3100
- "@payload.current",
3101
- "@entity.max"
3102
- ],
3103
- 0.85
3104
- ],
3105
- [
3106
- "<",
3107
- [
3108
- "/",
3109
- "@payload.current",
3110
- "@entity.max"
3111
- ],
3112
- 0.95
3113
- ]
3114
- ],
3115
- "effects": [
3116
- [
3117
- "set",
3118
- "@entity.current",
3119
- "@payload.current"
3120
- ],
3121
- [
3122
- "render-ui",
3123
- "main",
3124
- {
3125
- "type": "stack",
3126
- "direction": "vertical",
3127
- "gap": "lg",
3128
- "children": [
3129
- {
3130
- "type": "stack",
3131
- "direction": "horizontal",
3132
- "gap": "sm",
3133
- "align": "center",
3134
- "children": [
3135
- {
3136
- "type": "icon",
3137
- "name": "alert-triangle",
3138
- "size": "lg"
3139
- },
3140
- {
3141
- "type": "typography",
3142
- "content": "Token Usage",
3143
- "variant": "h2"
3144
- },
3145
- {
3146
- "type": "badge",
3147
- "label": "Warning",
3148
- "variant": "warning"
3149
- }
3150
- ]
3151
- },
3152
- {
3153
- "type": "divider"
3154
- },
3155
- {
3156
- "type": "alert",
3157
- "variant": "warning",
3158
- "message": "Token usage approaching limit. Consider compacting."
3159
- },
3160
- {
3161
- "type": "progress-bar",
3162
- "value": "@entity.current",
3163
- "max": "@entity.max"
3164
- },
3165
- {
3166
- "type": "stack",
3167
- "direction": "horizontal",
3168
- "gap": "md",
3169
- "children": [
3170
- {
3171
- "type": "stat-display",
3172
- "label": "Tokens Used",
3173
- "value": "@entity.current"
3174
- },
3175
- {
3176
- "type": "stat-display",
3177
- "label": "Max Tokens",
3178
- "value": "@entity.max"
3179
- }
3180
- ]
3181
- },
3182
- {
3183
- "type": "stack",
3184
- "direction": "horizontal",
3185
- "gap": "sm",
3186
- "children": [
3187
- {
3188
- "type": "button",
3189
- "label": "Compact",
3190
- "event": "COMPACT",
3191
- "variant": "primary",
3192
- "icon": "minimize-2"
3193
- },
3194
- {
3195
- "type": "button",
3196
- "label": "Reset",
3197
- "event": "RESET",
3198
- "variant": "ghost",
3199
- "icon": "rotate-ccw"
3200
- }
3201
- ]
3202
- }
3203
- ]
3204
- }
3205
- ]
3206
- ]
3207
- },
3208
- {
3209
- "from": "normal",
3210
- "to": "critical",
3211
- "event": "UPDATE",
3212
- "guard": [
3213
- ">=",
3214
- [
3215
- "/",
3216
- "@payload.current",
3217
- "@entity.max"
3218
- ],
3219
- 0.95
3220
- ],
3221
- "effects": [
3222
- [
3223
- "set",
3224
- "@entity.current",
3225
- "@payload.current"
3226
- ],
3227
- [
3228
- "render-ui",
3229
- "main",
3230
- {
3231
- "type": "stack",
3232
- "direction": "vertical",
3233
- "gap": "lg",
3234
- "children": [
3235
- {
3236
- "type": "stack",
3237
- "direction": "horizontal",
3238
- "gap": "sm",
3239
- "align": "center",
3240
- "children": [
3241
- {
3242
- "type": "icon",
3243
- "name": "alert-octagon",
3244
- "size": "lg"
3245
- },
3246
- {
3247
- "type": "typography",
3248
- "content": "Token Usage",
3249
- "variant": "h2"
3250
- },
3251
- {
3252
- "type": "badge",
3253
- "label": "Critical",
3254
- "variant": "destructive"
3255
- }
3256
- ]
3257
- },
3258
- {
3259
- "type": "divider"
3260
- },
3261
- {
3262
- "type": "alert",
3263
- "variant": "error",
3264
- "message": "Token usage critical. Compact immediately to avoid truncation."
3265
- },
3266
- {
3267
- "type": "progress-bar",
3268
- "value": "@entity.current",
3269
- "max": "@entity.max"
3270
- },
3271
- {
3272
- "type": "stack",
3273
- "direction": "horizontal",
3274
- "gap": "md",
3275
- "children": [
3276
- {
3277
- "type": "stat-display",
3278
- "label": "Tokens Used",
3279
- "value": "@entity.current"
3280
- },
3281
- {
3282
- "type": "stat-display",
3283
- "label": "Max Tokens",
3284
- "value": "@entity.max"
3285
- }
3286
- ]
3287
- },
3288
- {
3289
- "type": "stack",
3290
- "direction": "horizontal",
3291
- "gap": "sm",
3292
- "children": [
3293
- {
3294
- "type": "button",
3295
- "label": "Compact Now",
3296
- "event": "COMPACT",
3297
- "variant": "primary",
3298
- "icon": "minimize-2"
3299
- },
3300
- {
3301
- "type": "button",
3302
- "label": "Reset",
3303
- "event": "RESET",
3304
- "variant": "ghost",
3305
- "icon": "rotate-ccw"
3306
- }
3307
- ]
3308
- }
3309
- ]
3310
- }
3311
- ]
3312
- ]
3313
- },
3314
- {
3315
- "from": "warning",
3316
- "to": "warning",
3317
- "event": "UPDATE",
3318
- "guard": [
3319
- "and",
3320
- [
3321
- ">=",
3322
- [
3323
- "/",
3324
- "@payload.current",
3325
- "@entity.max"
3326
- ],
3327
- 0.85
3328
- ],
3329
- [
3330
- "<",
3331
- [
3332
- "/",
3333
- "@payload.current",
3334
- "@entity.max"
3335
- ],
3336
- 0.95
3337
- ]
3338
- ],
3339
- "effects": [
3340
- [
3341
- "set",
3342
- "@entity.current",
3343
- "@payload.current"
3344
- ],
3345
- [
3346
- "render-ui",
3347
- "main",
3348
- {
3349
- "type": "stack",
3350
- "direction": "vertical",
3351
- "gap": "lg",
3352
- "children": [
3353
- {
3354
- "type": "stack",
3355
- "direction": "horizontal",
3356
- "gap": "sm",
3357
- "align": "center",
3358
- "children": [
3359
- {
3360
- "type": "icon",
3361
- "name": "alert-triangle",
3362
- "size": "lg"
3363
- },
3364
- {
3365
- "type": "typography",
3366
- "content": "Token Usage",
3367
- "variant": "h2"
3368
- },
3369
- {
3370
- "type": "badge",
3371
- "label": "Warning",
3372
- "variant": "warning"
3373
- }
3374
- ]
3375
- },
3376
- {
3377
- "type": "divider"
3378
- },
3379
- {
3380
- "type": "alert",
3381
- "variant": "warning",
3382
- "message": "Token usage approaching limit. Consider compacting."
3383
- },
3384
- {
3385
- "type": "progress-bar",
3386
- "value": "@entity.current",
3387
- "max": "@entity.max"
3388
- },
3389
- {
3390
- "type": "stack",
3391
- "direction": "horizontal",
3392
- "gap": "md",
3393
- "children": [
3394
- {
3395
- "type": "stat-display",
3396
- "label": "Tokens Used",
3397
- "value": "@entity.current"
3398
- },
3399
- {
3400
- "type": "stat-display",
3401
- "label": "Max Tokens",
3402
- "value": "@entity.max"
3403
- }
3404
- ]
3405
- },
3406
- {
3407
- "type": "stack",
3408
- "direction": "horizontal",
3409
- "gap": "sm",
3410
- "children": [
3411
- {
3412
- "type": "button",
3413
- "label": "Compact",
3414
- "event": "COMPACT",
3415
- "variant": "primary",
3416
- "icon": "minimize-2"
3417
- },
3418
- {
3419
- "type": "button",
3420
- "label": "Reset",
3421
- "event": "RESET",
3422
- "variant": "ghost",
3423
- "icon": "rotate-ccw"
3424
- }
3425
- ]
3426
- }
3427
- ]
3428
- }
3429
- ]
3430
- ]
3431
- },
3432
- {
3433
- "from": "warning",
3434
- "to": "critical",
3435
- "event": "UPDATE",
3436
- "guard": [
3437
- ">=",
3438
- [
3439
- "/",
3440
- "@payload.current",
3441
- "@entity.max"
3442
- ],
3443
- 0.95
3444
- ],
3445
- "effects": [
3446
- [
3447
- "set",
3448
- "@entity.current",
3449
- "@payload.current"
3450
- ],
3451
- [
3452
- "render-ui",
3453
- "main",
3454
- {
3455
- "type": "stack",
3456
- "direction": "vertical",
3457
- "gap": "lg",
3458
- "children": [
3459
- {
3460
- "type": "stack",
3461
- "direction": "horizontal",
3462
- "gap": "sm",
3463
- "align": "center",
3464
- "children": [
3465
- {
3466
- "type": "icon",
3467
- "name": "alert-octagon",
3468
- "size": "lg"
3469
- },
3470
- {
3471
- "type": "typography",
3472
- "content": "Token Usage",
3473
- "variant": "h2"
3474
- },
3475
- {
3476
- "type": "badge",
3477
- "label": "Critical",
3478
- "variant": "destructive"
3479
- }
3480
- ]
3481
- },
3482
- {
3483
- "type": "divider"
3484
- },
3485
- {
3486
- "type": "alert",
3487
- "variant": "error",
3488
- "message": "Token usage critical. Compact immediately to avoid truncation."
3489
- },
3490
- {
3491
- "type": "progress-bar",
3492
- "value": "@entity.current",
3493
- "max": "@entity.max"
3494
- },
3495
- {
3496
- "type": "stack",
3497
- "direction": "horizontal",
3498
- "gap": "md",
3499
- "children": [
3500
- {
3501
- "type": "stat-display",
3502
- "label": "Tokens Used",
3503
- "value": "@entity.current"
3504
- },
3505
- {
3506
- "type": "stat-display",
3507
- "label": "Max Tokens",
3508
- "value": "@entity.max"
3509
- }
3510
- ]
3511
- },
3512
- {
3513
- "type": "stack",
3514
- "direction": "horizontal",
3515
- "gap": "sm",
3516
- "children": [
3517
- {
3518
- "type": "button",
3519
- "label": "Compact Now",
3520
- "event": "COMPACT",
3521
- "variant": "primary",
3522
- "icon": "minimize-2"
3523
- },
3524
- {
3525
- "type": "button",
3526
- "label": "Reset",
3527
- "event": "RESET",
3528
- "variant": "ghost",
3529
- "icon": "rotate-ccw"
3530
- }
3531
- ]
3532
- }
3533
- ]
3534
- }
3535
- ]
3536
- ]
3537
- },
3538
- {
3539
- "from": "warning",
3540
- "to": "normal",
3541
- "event": "UPDATE",
3542
- "guard": [
3543
- "<",
3544
- [
3545
- "/",
3546
- "@payload.current",
3547
- "@entity.max"
3548
- ],
3549
- 0.85
3550
- ],
3551
- "effects": [
3552
- [
3553
- "set",
3554
- "@entity.current",
3555
- "@payload.current"
3556
- ],
3557
- [
3558
- "render-ui",
3559
- "main",
3560
- {
3561
- "type": "stack",
3562
- "direction": "vertical",
3563
- "gap": "lg",
3564
- "children": [
3565
- {
3566
- "type": "stack",
3567
- "direction": "horizontal",
3568
- "gap": "sm",
3569
- "align": "center",
3570
- "children": [
3571
- {
3572
- "type": "icon",
3573
- "name": "gauge",
3574
- "size": "lg"
3575
- },
3576
- {
3577
- "type": "typography",
3578
- "content": "Token Usage",
3579
- "variant": "h2"
3580
- },
3581
- {
3582
- "type": "badge",
3583
- "label": "Normal",
3584
- "variant": "default"
3585
- }
3586
- ]
3587
- },
3588
- {
3589
- "type": "divider"
3590
- },
3591
- {
3592
- "type": "progress-bar",
3593
- "value": "@entity.current",
3594
- "max": "@entity.max"
3595
- },
3596
- {
3597
- "type": "stack",
3598
- "direction": "horizontal",
3599
- "gap": "md",
3600
- "children": [
3601
- {
3602
- "type": "stat-display",
3603
- "label": "Tokens Used",
3604
- "value": "@entity.current"
3605
- },
3606
- {
3607
- "type": "stat-display",
3608
- "label": "Max Tokens",
3609
- "value": "@entity.max"
3610
- }
3611
- ]
3612
- },
3613
- {
3614
- "type": "button",
3615
- "label": "Reset",
3616
- "event": "RESET",
3617
- "variant": "ghost",
3618
- "icon": "rotate-ccw"
3619
- }
3620
- ]
3621
- }
3622
- ]
3623
- ]
3624
- },
3625
- {
3626
- "from": "critical",
3627
- "to": "critical",
3628
- "event": "UPDATE",
3629
- "guard": [
3630
- ">=",
3631
- [
3632
- "/",
3633
- "@payload.current",
3634
- "@entity.max"
3635
- ],
3636
- 0.95
3637
- ],
3638
- "effects": [
3639
- [
3640
- "set",
3641
- "@entity.current",
3642
- "@payload.current"
3643
- ],
3644
- [
3645
- "render-ui",
3646
- "main",
3647
- {
3648
- "type": "stack",
3649
- "direction": "vertical",
3650
- "gap": "lg",
3651
- "children": [
3652
- {
3653
- "type": "stack",
3654
- "direction": "horizontal",
3655
- "gap": "sm",
3656
- "align": "center",
3657
- "children": [
3658
- {
3659
- "type": "icon",
3660
- "name": "alert-octagon",
3661
- "size": "lg"
3662
- },
3663
- {
3664
- "type": "typography",
3665
- "content": "Token Usage",
3666
- "variant": "h2"
3667
- },
3668
- {
3669
- "type": "badge",
3670
- "label": "Critical",
3671
- "variant": "destructive"
3672
- }
3673
- ]
3674
- },
3675
- {
3676
- "type": "divider"
3677
- },
3678
- {
3679
- "type": "alert",
3680
- "variant": "error",
3681
- "message": "Token usage critical. Compact immediately to avoid truncation."
3682
- },
3683
- {
3684
- "type": "progress-bar",
3685
- "value": "@entity.current",
3686
- "max": "@entity.max"
3687
- },
3688
- {
3689
- "type": "stack",
3690
- "direction": "horizontal",
3691
- "gap": "md",
3692
- "children": [
3693
- {
3694
- "type": "stat-display",
3695
- "label": "Tokens Used",
3696
- "value": "@entity.current"
3697
- },
3698
- {
3699
- "type": "stat-display",
3700
- "label": "Max Tokens",
3701
- "value": "@entity.max"
3702
- }
3703
- ]
3704
- },
3705
- {
3706
- "type": "stack",
3707
- "direction": "horizontal",
3708
- "gap": "sm",
3709
- "children": [
3710
- {
3711
- "type": "button",
3712
- "label": "Compact Now",
3713
- "event": "COMPACT",
3714
- "variant": "primary",
3715
- "icon": "minimize-2"
3716
- },
3717
- {
3718
- "type": "button",
3719
- "label": "Reset",
3720
- "event": "RESET",
3721
- "variant": "ghost",
3722
- "icon": "rotate-ccw"
3723
- }
3724
- ]
3725
- }
3726
- ]
3727
- }
3728
- ]
3729
- ]
3730
- },
3731
- {
3732
- "from": "critical",
3733
- "to": "warning",
3734
- "event": "UPDATE",
3735
- "guard": [
3736
- "and",
3737
- [
3738
- ">=",
3739
- [
3740
- "/",
3741
- "@payload.current",
3742
- "@entity.max"
3743
- ],
3744
- 0.85
3745
- ],
3746
- [
3747
- "<",
3748
- [
3749
- "/",
3750
- "@payload.current",
3751
- "@entity.max"
3752
- ],
3753
- 0.95
3754
- ]
3755
- ],
3756
- "effects": [
3757
- [
3758
- "set",
3759
- "@entity.current",
3760
- "@payload.current"
3761
- ],
3762
- [
3763
- "render-ui",
3764
- "main",
3765
- {
3766
- "type": "stack",
3767
- "direction": "vertical",
3768
- "gap": "lg",
3769
- "children": [
3770
- {
3771
- "type": "stack",
3772
- "direction": "horizontal",
3773
- "gap": "sm",
3774
- "align": "center",
3775
- "children": [
3776
- {
3777
- "type": "icon",
3778
- "name": "alert-triangle",
3779
- "size": "lg"
3780
- },
3781
- {
3782
- "type": "typography",
3783
- "content": "Token Usage",
3784
- "variant": "h2"
3785
- },
3786
- {
3787
- "type": "badge",
3788
- "label": "Warning",
3789
- "variant": "warning"
3790
- }
3791
- ]
3792
- },
3793
- {
3794
- "type": "divider"
3795
- },
3796
- {
3797
- "type": "alert",
3798
- "variant": "warning",
3799
- "message": "Token usage approaching limit. Consider compacting."
3800
- },
3801
- {
3802
- "type": "progress-bar",
3803
- "value": "@entity.current",
3804
- "max": "@entity.max"
3805
- },
3806
- {
3807
- "type": "stack",
3808
- "direction": "horizontal",
3809
- "gap": "md",
3810
- "children": [
3811
- {
3812
- "type": "stat-display",
3813
- "label": "Tokens Used",
3814
- "value": "@entity.current"
3815
- },
3816
- {
3817
- "type": "stat-display",
3818
- "label": "Max Tokens",
3819
- "value": "@entity.max"
3820
- }
3821
- ]
3822
- },
3823
- {
3824
- "type": "stack",
3825
- "direction": "horizontal",
3826
- "gap": "sm",
3827
- "children": [
3828
- {
3829
- "type": "button",
3830
- "label": "Compact",
3831
- "event": "COMPACT",
3832
- "variant": "primary",
3833
- "icon": "minimize-2"
3834
- },
3835
- {
3836
- "type": "button",
3837
- "label": "Reset",
3838
- "event": "RESET",
3839
- "variant": "ghost",
3840
- "icon": "rotate-ccw"
3841
- }
3842
- ]
3843
- }
3844
- ]
3845
- }
3846
- ]
3847
- ]
3848
- },
3849
- {
3850
- "from": "critical",
3851
- "to": "normal",
3852
- "event": "UPDATE",
3853
- "guard": [
3854
- "<",
3855
- [
3856
- "/",
3857
- "@payload.current",
3858
- "@entity.max"
3859
- ],
3860
- 0.85
3861
- ],
3862
- "effects": [
3863
- [
3864
- "set",
3865
- "@entity.current",
3866
- "@payload.current"
3867
- ],
3868
- [
3869
- "render-ui",
3870
- "main",
1644
+ "COMPLETE": [
1645
+ [
1646
+ "set",
1647
+ "@entity.status",
1648
+ "completed"
1649
+ ],
1650
+ [
1651
+ "set",
1652
+ "@entity.currentStep",
1653
+ "@entity.totalSteps"
1654
+ ],
1655
+ [
1656
+ "render-ui",
1657
+ "main",
1658
+ {
1659
+ "type": "stack",
1660
+ "direction": "vertical",
1661
+ "gap": "lg",
1662
+ "children": [
3871
1663
  {
3872
1664
  "type": "stack",
3873
- "direction": "vertical",
3874
- "gap": "lg",
1665
+ "direction": "horizontal",
1666
+ "gap": "sm",
1667
+ "align": "center",
3875
1668
  "children": [
3876
1669
  {
3877
- "type": "stack",
3878
- "direction": "horizontal",
3879
- "gap": "sm",
3880
- "align": "center",
3881
- "children": [
3882
- {
3883
- "type": "icon",
3884
- "name": "gauge",
3885
- "size": "lg"
3886
- },
3887
- {
3888
- "type": "typography",
3889
- "content": "Token Usage",
3890
- "variant": "h2"
3891
- },
3892
- {
3893
- "type": "badge",
3894
- "label": "Normal",
3895
- "variant": "default"
3896
- }
3897
- ]
1670
+ "type": "icon",
1671
+ "name": "check-circle",
1672
+ "size": "lg"
3898
1673
  },
3899
1674
  {
3900
- "type": "divider"
1675
+ "type": "typography",
1676
+ "content": "AgentToolLoop",
1677
+ "variant": "h2"
1678
+ },
1679
+ {
1680
+ "type": "badge",
1681
+ "label": "Completed",
1682
+ "variant": "success"
1683
+ }
1684
+ ]
1685
+ },
1686
+ {
1687
+ "type": "divider"
1688
+ },
1689
+ {
1690
+ "type": "wizard-progress",
1691
+ "currentStep": "@entity.totalSteps",
1692
+ "steps": [
1693
+ {
1694
+ "id": "0",
1695
+ "title": "Plan"
3901
1696
  },
3902
1697
  {
3903
- "type": "progress-bar",
3904
- "value": "@entity.current",
3905
- "max": "@entity.max"
1698
+ "id": "1",
1699
+ "title": "Execute"
3906
1700
  },
3907
1701
  {
3908
- "type": "stack",
3909
- "direction": "horizontal",
3910
- "gap": "md",
3911
- "children": [
3912
- {
3913
- "type": "stat-display",
3914
- "label": "Tokens Used",
3915
- "value": "@entity.current"
3916
- },
3917
- {
3918
- "type": "stat-display",
3919
- "label": "Max Tokens",
3920
- "value": "@entity.max"
3921
- }
3922
- ]
1702
+ "id": "2",
1703
+ "title": "Check"
3923
1704
  },
3924
1705
  {
3925
- "type": "button",
3926
- "label": "Reset",
3927
- "event": "RESET",
3928
- "variant": "ghost",
3929
- "icon": "rotate-ccw"
1706
+ "id": "3",
1707
+ "title": "Complete"
3930
1708
  }
3931
1709
  ]
1710
+ },
1711
+ {
1712
+ "type": "alert",
1713
+ "variant": "success",
1714
+ "message": "All steps completed successfully."
1715
+ },
1716
+ {
1717
+ "type": "button",
1718
+ "label": "Reset",
1719
+ "event": "RESET",
1720
+ "variant": "ghost",
1721
+ "icon": "rotate-ccw"
3932
1722
  }
3933
1723
  ]
3934
- ]
3935
- },
3936
- {
3937
- "from": "normal",
3938
- "to": "normal",
3939
- "event": "COMPACT",
3940
- "effects": [
3941
- [
3942
- "agent/compact"
3943
- ],
3944
- [
3945
- "set",
3946
- "@entity.lastCompactedAt",
3947
- "@now"
3948
- ],
3949
- [
3950
- "agent/token-count"
3951
- ],
3952
- [
3953
- "render-ui",
3954
- "main",
1724
+ }
1725
+ ]
1726
+ ],
1727
+ "FAIL": [
1728
+ [
1729
+ "set",
1730
+ "@entity.status",
1731
+ "failed"
1732
+ ],
1733
+ [
1734
+ "render-ui",
1735
+ "main",
1736
+ {
1737
+ "type": "stack",
1738
+ "direction": "vertical",
1739
+ "gap": "lg",
1740
+ "children": [
3955
1741
  {
3956
1742
  "type": "stack",
3957
- "direction": "vertical",
3958
- "gap": "lg",
1743
+ "direction": "horizontal",
1744
+ "gap": "sm",
1745
+ "align": "center",
3959
1746
  "children": [
3960
1747
  {
3961
- "type": "stack",
3962
- "direction": "horizontal",
3963
- "gap": "sm",
3964
- "align": "center",
3965
- "children": [
3966
- {
3967
- "type": "icon",
3968
- "name": "gauge",
3969
- "size": "lg"
3970
- },
3971
- {
3972
- "type": "typography",
3973
- "content": "Token Usage",
3974
- "variant": "h2"
3975
- },
3976
- {
3977
- "type": "badge",
3978
- "label": "Normal",
3979
- "variant": "default"
3980
- }
3981
- ]
1748
+ "type": "icon",
1749
+ "name": "x-circle",
1750
+ "size": "lg"
3982
1751
  },
3983
1752
  {
3984
- "type": "divider"
1753
+ "type": "typography",
1754
+ "content": "AgentToolLoop",
1755
+ "variant": "h2"
3985
1756
  },
3986
1757
  {
3987
- "type": "progress-bar",
3988
- "value": "@entity.current",
3989
- "max": "@entity.max"
1758
+ "type": "badge",
1759
+ "label": "Failed",
1760
+ "variant": "destructive"
1761
+ }
1762
+ ]
1763
+ },
1764
+ {
1765
+ "type": "divider"
1766
+ },
1767
+ {
1768
+ "type": "wizard-progress",
1769
+ "currentStep": "@entity.currentStep",
1770
+ "steps": [
1771
+ {
1772
+ "id": "0",
1773
+ "title": "Plan"
3990
1774
  },
3991
1775
  {
3992
- "type": "stack",
3993
- "direction": "horizontal",
3994
- "gap": "md",
3995
- "children": [
3996
- {
3997
- "type": "stat-display",
3998
- "label": "Tokens Used",
3999
- "value": "@entity.current"
4000
- },
4001
- {
4002
- "type": "stat-display",
4003
- "label": "Max Tokens",
4004
- "value": "@entity.max"
4005
- }
4006
- ]
1776
+ "id": "1",
1777
+ "title": "Execute"
4007
1778
  },
4008
1779
  {
4009
- "type": "button",
4010
- "label": "Reset",
4011
- "event": "RESET",
4012
- "variant": "ghost",
4013
- "icon": "rotate-ccw"
1780
+ "id": "2",
1781
+ "title": "Check"
1782
+ },
1783
+ {
1784
+ "id": "3",
1785
+ "title": "Complete"
4014
1786
  }
4015
1787
  ]
1788
+ },
1789
+ {
1790
+ "type": "alert",
1791
+ "variant": "error",
1792
+ "message": "Pipeline failed at the current step."
1793
+ },
1794
+ {
1795
+ "type": "stack",
1796
+ "direction": "horizontal",
1797
+ "gap": "sm",
1798
+ "children": [
1799
+ {
1800
+ "type": "stat-display",
1801
+ "label": "Failed At Step",
1802
+ "value": "@entity.currentStep"
1803
+ }
1804
+ ]
1805
+ },
1806
+ {
1807
+ "type": "button",
1808
+ "label": "Reset",
1809
+ "event": "RESET",
1810
+ "variant": "ghost",
1811
+ "icon": "rotate-ccw"
4016
1812
  }
4017
1813
  ]
4018
- ]
4019
- },
4020
- {
4021
- "from": "warning",
4022
- "to": "normal",
4023
- "event": "COMPACT",
4024
- "effects": [
4025
- [
4026
- "agent/compact"
4027
- ],
4028
- [
4029
- "set",
4030
- "@entity.lastCompactedAt",
4031
- "@now"
4032
- ],
4033
- [
4034
- "agent/token-count"
4035
- ],
4036
- [
4037
- "render-ui",
4038
- "main",
1814
+ }
1815
+ ]
1816
+ ],
1817
+ "RESET": [
1818
+ [
1819
+ "set",
1820
+ "@entity.status",
1821
+ "idle"
1822
+ ],
1823
+ [
1824
+ "set",
1825
+ "@entity.currentStep",
1826
+ 0
1827
+ ],
1828
+ [
1829
+ "render-ui",
1830
+ "main",
1831
+ {
1832
+ "type": "stack",
1833
+ "direction": "vertical",
1834
+ "gap": "lg",
1835
+ "children": [
4039
1836
  {
4040
1837
  "type": "stack",
4041
- "direction": "vertical",
4042
- "gap": "lg",
1838
+ "direction": "horizontal",
1839
+ "gap": "sm",
1840
+ "align": "center",
4043
1841
  "children": [
4044
1842
  {
4045
- "type": "stack",
4046
- "direction": "horizontal",
4047
- "gap": "sm",
4048
- "align": "center",
4049
- "children": [
4050
- {
4051
- "type": "icon",
4052
- "name": "gauge",
4053
- "size": "lg"
4054
- },
4055
- {
4056
- "type": "typography",
4057
- "content": "Token Usage",
4058
- "variant": "h2"
4059
- },
4060
- {
4061
- "type": "badge",
4062
- "label": "Normal",
4063
- "variant": "default"
4064
- }
4065
- ]
1843
+ "type": "icon",
1844
+ "name": "list-ordered",
1845
+ "size": "lg"
4066
1846
  },
4067
1847
  {
4068
- "type": "divider"
1848
+ "type": "typography",
1849
+ "content": "AgentToolLoop",
1850
+ "variant": "h2"
4069
1851
  },
4070
1852
  {
4071
- "type": "progress-bar",
4072
- "value": "@entity.current",
4073
- "max": "@entity.max"
1853
+ "type": "badge",
1854
+ "label": "Idle",
1855
+ "variant": "default"
1856
+ }
1857
+ ]
1858
+ },
1859
+ {
1860
+ "type": "divider"
1861
+ },
1862
+ {
1863
+ "type": "wizard-progress",
1864
+ "currentStep": "@entity.currentStep",
1865
+ "steps": [
1866
+ {
1867
+ "id": "0",
1868
+ "title": "Plan"
4074
1869
  },
4075
1870
  {
4076
- "type": "stack",
4077
- "direction": "horizontal",
4078
- "gap": "md",
4079
- "children": [
4080
- {
4081
- "type": "stat-display",
4082
- "label": "Tokens Used",
4083
- "value": "@entity.current"
4084
- },
4085
- {
4086
- "type": "stat-display",
4087
- "label": "Max Tokens",
4088
- "value": "@entity.max"
4089
- }
4090
- ]
1871
+ "id": "1",
1872
+ "title": "Execute"
4091
1873
  },
4092
1874
  {
4093
- "type": "button",
4094
- "label": "Reset",
4095
- "event": "RESET",
4096
- "variant": "ghost",
4097
- "icon": "rotate-ccw"
1875
+ "id": "2",
1876
+ "title": "Check"
1877
+ },
1878
+ {
1879
+ "id": "3",
1880
+ "title": "Complete"
4098
1881
  }
4099
1882
  ]
1883
+ },
1884
+ {
1885
+ "type": "button",
1886
+ "label": "Start",
1887
+ "event": "START",
1888
+ "variant": "primary",
1889
+ "icon": "play"
4100
1890
  }
4101
1891
  ]
4102
- ]
4103
- },
4104
- {
4105
- "from": "critical",
4106
- "to": "normal",
4107
- "event": "COMPACT",
4108
- "effects": [
4109
- [
4110
- "agent/compact"
4111
- ],
4112
- [
4113
- "set",
4114
- "@entity.lastCompactedAt",
4115
- "@now"
4116
- ],
4117
- [
4118
- "agent/token-count"
4119
- ],
4120
- [
4121
- "render-ui",
4122
- "main",
1892
+ }
1893
+ ]
1894
+ ]
1895
+ }
1896
+ },
1897
+ {
1898
+ "ref": "AgentCompletion.traits.AgentCompletionModal",
1899
+ "name": "ToolLoopCompletionFlow",
1900
+ "linkedEntity": "AgentToolLoop",
1901
+ "listens": [],
1902
+ "emitsScope": "internal",
1903
+ "effects": {
1904
+ "INIT": [
1905
+ [
1906
+ "ref",
1907
+ "AgentToolLoop"
1908
+ ],
1909
+ [
1910
+ "render-ui",
1911
+ "main",
1912
+ {
1913
+ "type": "stack",
1914
+ "direction": "vertical",
1915
+ "gap": "lg",
1916
+ "children": [
4123
1917
  {
4124
1918
  "type": "stack",
4125
- "direction": "vertical",
4126
- "gap": "lg",
1919
+ "direction": "horizontal",
1920
+ "gap": "md",
1921
+ "justify": "space-between",
4127
1922
  "children": [
4128
1923
  {
4129
1924
  "type": "stack",
4130
1925
  "direction": "horizontal",
4131
- "gap": "sm",
4132
- "align": "center",
1926
+ "gap": "md",
4133
1927
  "children": [
4134
1928
  {
4135
1929
  "type": "icon",
4136
- "name": "gauge",
1930
+ "name": "sparkles",
4137
1931
  "size": "lg"
4138
1932
  },
4139
1933
  {
4140
1934
  "type": "typography",
4141
- "content": "Token Usage",
1935
+ "content": "AgentToolLoop",
4142
1936
  "variant": "h2"
4143
- },
4144
- {
4145
- "type": "badge",
4146
- "label": "Normal",
4147
- "variant": "default"
4148
1937
  }
4149
1938
  ]
4150
1939
  },
4151
1940
  {
4152
- "type": "divider"
4153
- },
1941
+ "type": "button",
1942
+ "label": "Open",
1943
+ "event": "GENERATE",
1944
+ "variant": "primary",
1945
+ "icon": "sparkles"
1946
+ }
1947
+ ]
1948
+ },
1949
+ {
1950
+ "type": "divider"
1951
+ },
1952
+ {
1953
+ "type": "empty-state",
1954
+ "icon": "sparkles",
1955
+ "title": "Nothing open",
1956
+ "description": "Click Open to view details in a modal overlay."
1957
+ }
1958
+ ]
1959
+ }
1960
+ ]
1961
+ ],
1962
+ "GENERATE": [
1963
+ [
1964
+ "render-ui",
1965
+ "modal",
1966
+ {
1967
+ "type": "stack",
1968
+ "direction": "vertical",
1969
+ "gap": "md",
1970
+ "children": [
1971
+ {
1972
+ "type": "stack",
1973
+ "direction": "horizontal",
1974
+ "gap": "sm",
1975
+ "children": [
4154
1976
  {
4155
- "type": "progress-bar",
4156
- "value": "@entity.current",
4157
- "max": "@entity.max"
1977
+ "type": "icon",
1978
+ "name": "sparkles",
1979
+ "size": "md"
4158
1980
  },
4159
1981
  {
4160
- "type": "stack",
4161
- "direction": "horizontal",
4162
- "gap": "md",
4163
- "children": [
4164
- {
4165
- "type": "stat-display",
4166
- "label": "Tokens Used",
4167
- "value": "@entity.current"
4168
- },
4169
- {
4170
- "type": "stat-display",
4171
- "label": "Max Tokens",
4172
- "value": "@entity.max"
4173
- }
4174
- ]
1982
+ "type": "typography",
1983
+ "content": "AgentToolLoop",
1984
+ "variant": "h3"
1985
+ }
1986
+ ]
1987
+ },
1988
+ {
1989
+ "type": "divider"
1990
+ },
1991
+ {
1992
+ "type": "stack",
1993
+ "direction": "horizontal",
1994
+ "gap": "sm",
1995
+ "children": [
1996
+ {
1997
+ "type": "badge",
1998
+ "label": "@entity.provider"
4175
1999
  },
4176
2000
  {
4177
- "type": "button",
4178
- "label": "Reset",
4179
- "event": "RESET",
4180
- "variant": "ghost",
4181
- "icon": "rotate-ccw"
2001
+ "type": "badge",
2002
+ "label": "@entity.model"
4182
2003
  }
4183
2004
  ]
2005
+ },
2006
+ {
2007
+ "type": "form-section",
2008
+ "entity": "AgentToolLoop",
2009
+ "mode": "create",
2010
+ "submitEvent": "SAVE",
2011
+ "cancelEvent": "CLOSE",
2012
+ "fields": [
2013
+ "prompt"
2014
+ ]
4184
2015
  }
4185
2016
  ]
4186
- ]
4187
- },
4188
- {
4189
- "from": "normal",
4190
- "to": "normal",
4191
- "event": "RESET",
4192
- "effects": [
4193
- [
4194
- "set",
4195
- "@entity.current",
4196
- 0
4197
- ],
4198
- [
4199
- "render-ui",
4200
- "main",
2017
+ }
2018
+ ]
2019
+ ],
2020
+ "CLOSE": [
2021
+ [
2022
+ "render-ui",
2023
+ "modal",
2024
+ null
2025
+ ],
2026
+ [
2027
+ "notify",
2028
+ "Cancelled",
2029
+ "info"
2030
+ ],
2031
+ [
2032
+ "ref",
2033
+ "AgentToolLoop"
2034
+ ],
2035
+ [
2036
+ "render-ui",
2037
+ "main",
2038
+ {
2039
+ "type": "stack",
2040
+ "direction": "vertical",
2041
+ "gap": "lg",
2042
+ "children": [
4201
2043
  {
4202
2044
  "type": "stack",
4203
- "direction": "vertical",
4204
- "gap": "lg",
2045
+ "direction": "horizontal",
2046
+ "gap": "md",
2047
+ "justify": "space-between",
4205
2048
  "children": [
4206
2049
  {
4207
2050
  "type": "stack",
4208
2051
  "direction": "horizontal",
4209
- "gap": "sm",
4210
- "align": "center",
2052
+ "gap": "md",
4211
2053
  "children": [
4212
2054
  {
4213
2055
  "type": "icon",
4214
- "name": "gauge",
2056
+ "name": "sparkles",
4215
2057
  "size": "lg"
4216
2058
  },
4217
2059
  {
4218
2060
  "type": "typography",
4219
- "content": "Token Usage",
2061
+ "content": "AgentToolLoop",
4220
2062
  "variant": "h2"
4221
- },
4222
- {
4223
- "type": "badge",
4224
- "label": "Normal",
4225
- "variant": "default"
4226
2063
  }
4227
2064
  ]
4228
2065
  },
4229
2066
  {
4230
- "type": "divider"
4231
- },
4232
- {
4233
- "type": "progress-bar",
4234
- "value": "@entity.current",
4235
- "max": "@entity.max"
4236
- },
2067
+ "type": "button",
2068
+ "label": "Open",
2069
+ "event": "GENERATE",
2070
+ "variant": "primary",
2071
+ "icon": "sparkles"
2072
+ }
2073
+ ]
2074
+ },
2075
+ {
2076
+ "type": "divider"
2077
+ },
2078
+ {
2079
+ "type": "empty-state",
2080
+ "icon": "sparkles",
2081
+ "title": "Nothing open",
2082
+ "description": "Click Open to view details in a modal overlay."
2083
+ }
2084
+ ]
2085
+ }
2086
+ ]
2087
+ ],
2088
+ "SAVE": [
2089
+ [
2090
+ "persist",
2091
+ "create",
2092
+ "AgentToolLoop",
2093
+ "@payload.data"
2094
+ ],
2095
+ [
2096
+ "render-ui",
2097
+ "modal",
2098
+ null
2099
+ ],
2100
+ [
2101
+ "emit",
2102
+ "GENERATED"
2103
+ ],
2104
+ [
2105
+ "ref",
2106
+ "AgentToolLoop"
2107
+ ],
2108
+ [
2109
+ "render-ui",
2110
+ "main",
2111
+ {
2112
+ "type": "stack",
2113
+ "direction": "vertical",
2114
+ "gap": "lg",
2115
+ "children": [
2116
+ {
2117
+ "type": "stack",
2118
+ "direction": "horizontal",
2119
+ "gap": "md",
2120
+ "justify": "space-between",
2121
+ "children": [
4237
2122
  {
4238
2123
  "type": "stack",
4239
2124
  "direction": "horizontal",
4240
2125
  "gap": "md",
4241
2126
  "children": [
4242
2127
  {
4243
- "type": "stat-display",
4244
- "label": "Tokens Used",
4245
- "value": "@entity.current"
2128
+ "type": "icon",
2129
+ "name": "sparkles",
2130
+ "size": "lg"
4246
2131
  },
4247
2132
  {
4248
- "type": "stat-display",
4249
- "label": "Max Tokens",
4250
- "value": "@entity.max"
2133
+ "type": "typography",
2134
+ "content": "AgentToolLoop",
2135
+ "variant": "h2"
4251
2136
  }
4252
2137
  ]
4253
2138
  },
4254
2139
  {
4255
2140
  "type": "button",
4256
- "label": "Reset",
4257
- "event": "RESET",
4258
- "variant": "ghost",
4259
- "icon": "rotate-ccw"
2141
+ "label": "Open",
2142
+ "event": "GENERATE",
2143
+ "variant": "primary",
2144
+ "icon": "sparkles"
4260
2145
  }
4261
2146
  ]
2147
+ },
2148
+ {
2149
+ "type": "divider"
2150
+ },
2151
+ {
2152
+ "type": "empty-state",
2153
+ "icon": "sparkles",
2154
+ "title": "Nothing open",
2155
+ "description": "Click Open to view details in a modal overlay."
4262
2156
  }
4263
2157
  ]
4264
- ]
4265
- },
4266
- {
4267
- "from": "warning",
4268
- "to": "normal",
4269
- "event": "RESET",
4270
- "effects": [
4271
- [
4272
- "set",
4273
- "@entity.current",
4274
- 0
4275
- ],
4276
- [
4277
- "render-ui",
4278
- "main",
2158
+ }
2159
+ ]
2160
+ ]
2161
+ }
2162
+ },
2163
+ {
2164
+ "ref": "AgentToolCall.traits.AgentToolCallModal",
2165
+ "name": "ToolLoopToolCallFlow",
2166
+ "linkedEntity": "AgentToolLoop",
2167
+ "listens": [],
2168
+ "emitsScope": "internal",
2169
+ "effects": {
2170
+ "INIT": [
2171
+ [
2172
+ "ref",
2173
+ "AgentToolLoop"
2174
+ ],
2175
+ [
2176
+ "render-ui",
2177
+ "main",
2178
+ {
2179
+ "type": "stack",
2180
+ "direction": "vertical",
2181
+ "gap": "lg",
2182
+ "children": [
4279
2183
  {
4280
2184
  "type": "stack",
4281
- "direction": "vertical",
4282
- "gap": "lg",
2185
+ "direction": "horizontal",
2186
+ "gap": "md",
2187
+ "justify": "space-between",
4283
2188
  "children": [
4284
2189
  {
4285
2190
  "type": "stack",
4286
2191
  "direction": "horizontal",
4287
- "gap": "sm",
4288
- "align": "center",
2192
+ "gap": "md",
4289
2193
  "children": [
4290
2194
  {
4291
2195
  "type": "icon",
4292
- "name": "gauge",
2196
+ "name": "wrench",
4293
2197
  "size": "lg"
4294
2198
  },
4295
2199
  {
4296
2200
  "type": "typography",
4297
- "content": "Token Usage",
2201
+ "content": "Invoke Tool",
4298
2202
  "variant": "h2"
4299
- },
4300
- {
4301
- "type": "badge",
4302
- "label": "Normal",
4303
- "variant": "default"
4304
2203
  }
4305
2204
  ]
4306
2205
  },
4307
2206
  {
4308
- "type": "divider"
4309
- },
2207
+ "type": "button",
2208
+ "label": "Open",
2209
+ "event": "INVOKE",
2210
+ "variant": "primary",
2211
+ "icon": "wrench"
2212
+ }
2213
+ ]
2214
+ },
2215
+ {
2216
+ "type": "divider"
2217
+ },
2218
+ {
2219
+ "type": "empty-state",
2220
+ "icon": "wrench",
2221
+ "title": "Nothing open",
2222
+ "description": "Click Open to view details in a modal overlay."
2223
+ }
2224
+ ]
2225
+ }
2226
+ ]
2227
+ ],
2228
+ "INVOKE": [
2229
+ [
2230
+ "render-ui",
2231
+ "modal",
2232
+ {
2233
+ "type": "stack",
2234
+ "direction": "vertical",
2235
+ "gap": "md",
2236
+ "children": [
2237
+ {
2238
+ "type": "stack",
2239
+ "direction": "horizontal",
2240
+ "gap": "sm",
2241
+ "children": [
4310
2242
  {
4311
- "type": "progress-bar",
4312
- "value": "@entity.current",
4313
- "max": "@entity.max"
2243
+ "type": "icon",
2244
+ "name": "wrench",
2245
+ "size": "md"
4314
2246
  },
2247
+ {
2248
+ "type": "typography",
2249
+ "content": "Invoke Tool",
2250
+ "variant": "h3"
2251
+ }
2252
+ ]
2253
+ },
2254
+ {
2255
+ "type": "divider"
2256
+ },
2257
+ {
2258
+ "type": "form-section",
2259
+ "entity": "AgentToolLoop",
2260
+ "mode": "create",
2261
+ "submitEvent": "SAVE",
2262
+ "cancelEvent": "CLOSE",
2263
+ "fields": [
2264
+ "toolName",
2265
+ "args"
2266
+ ]
2267
+ }
2268
+ ]
2269
+ }
2270
+ ]
2271
+ ],
2272
+ "CLOSE": [
2273
+ [
2274
+ "render-ui",
2275
+ "modal",
2276
+ null
2277
+ ],
2278
+ [
2279
+ "notify",
2280
+ "Cancelled",
2281
+ "info"
2282
+ ],
2283
+ [
2284
+ "ref",
2285
+ "AgentToolLoop"
2286
+ ],
2287
+ [
2288
+ "render-ui",
2289
+ "main",
2290
+ {
2291
+ "type": "stack",
2292
+ "direction": "vertical",
2293
+ "gap": "lg",
2294
+ "children": [
2295
+ {
2296
+ "type": "stack",
2297
+ "direction": "horizontal",
2298
+ "gap": "md",
2299
+ "justify": "space-between",
2300
+ "children": [
4315
2301
  {
4316
2302
  "type": "stack",
4317
2303
  "direction": "horizontal",
4318
2304
  "gap": "md",
4319
2305
  "children": [
4320
2306
  {
4321
- "type": "stat-display",
4322
- "label": "Tokens Used",
4323
- "value": "@entity.current"
2307
+ "type": "icon",
2308
+ "name": "wrench",
2309
+ "size": "lg"
4324
2310
  },
4325
2311
  {
4326
- "type": "stat-display",
4327
- "label": "Max Tokens",
4328
- "value": "@entity.max"
2312
+ "type": "typography",
2313
+ "content": "Invoke Tool",
2314
+ "variant": "h2"
4329
2315
  }
4330
2316
  ]
4331
2317
  },
4332
2318
  {
4333
2319
  "type": "button",
4334
- "label": "Reset",
4335
- "event": "RESET",
4336
- "variant": "ghost",
4337
- "icon": "rotate-ccw"
2320
+ "label": "Open",
2321
+ "event": "INVOKE",
2322
+ "variant": "primary",
2323
+ "icon": "wrench"
4338
2324
  }
4339
2325
  ]
2326
+ },
2327
+ {
2328
+ "type": "divider"
2329
+ },
2330
+ {
2331
+ "type": "empty-state",
2332
+ "icon": "wrench",
2333
+ "title": "Nothing open",
2334
+ "description": "Click Open to view details in a modal overlay."
4340
2335
  }
4341
2336
  ]
4342
- ]
4343
- },
4344
- {
4345
- "from": "critical",
4346
- "to": "normal",
4347
- "event": "RESET",
4348
- "effects": [
4349
- [
4350
- "set",
4351
- "@entity.current",
4352
- 0
4353
- ],
4354
- [
4355
- "render-ui",
4356
- "main",
2337
+ }
2338
+ ]
2339
+ ],
2340
+ "SAVE": [
2341
+ [
2342
+ "persist",
2343
+ "create",
2344
+ "AgentToolLoop",
2345
+ "@payload.data"
2346
+ ],
2347
+ [
2348
+ "render-ui",
2349
+ "modal",
2350
+ null
2351
+ ],
2352
+ [
2353
+ "emit",
2354
+ "INVOKED"
2355
+ ],
2356
+ [
2357
+ "ref",
2358
+ "AgentToolLoop"
2359
+ ],
2360
+ [
2361
+ "render-ui",
2362
+ "main",
2363
+ {
2364
+ "type": "stack",
2365
+ "direction": "vertical",
2366
+ "gap": "lg",
2367
+ "children": [
4357
2368
  {
4358
2369
  "type": "stack",
4359
- "direction": "vertical",
4360
- "gap": "lg",
2370
+ "direction": "horizontal",
2371
+ "gap": "md",
2372
+ "justify": "space-between",
4361
2373
  "children": [
4362
2374
  {
4363
2375
  "type": "stack",
4364
2376
  "direction": "horizontal",
4365
- "gap": "sm",
4366
- "align": "center",
2377
+ "gap": "md",
4367
2378
  "children": [
4368
2379
  {
4369
2380
  "type": "icon",
4370
- "name": "gauge",
2381
+ "name": "wrench",
4371
2382
  "size": "lg"
4372
2383
  },
4373
2384
  {
4374
2385
  "type": "typography",
4375
- "content": "Token Usage",
2386
+ "content": "Invoke Tool",
4376
2387
  "variant": "h2"
4377
- },
4378
- {
4379
- "type": "badge",
4380
- "label": "Normal",
4381
- "variant": "default"
4382
2388
  }
4383
2389
  ]
4384
2390
  },
4385
2391
  {
4386
- "type": "divider"
2392
+ "type": "button",
2393
+ "label": "Open",
2394
+ "event": "INVOKE",
2395
+ "variant": "primary",
2396
+ "icon": "wrench"
2397
+ }
2398
+ ]
2399
+ },
2400
+ {
2401
+ "type": "divider"
2402
+ },
2403
+ {
2404
+ "type": "empty-state",
2405
+ "icon": "wrench",
2406
+ "title": "Nothing open",
2407
+ "description": "Click Open to view details in a modal overlay."
2408
+ }
2409
+ ]
2410
+ }
2411
+ ]
2412
+ ]
2413
+ }
2414
+ },
2415
+ {
2416
+ "ref": "AgentContextWindow.traits.AgentContextWindowGauge",
2417
+ "name": "ToolLoopContextMonitor",
2418
+ "linkedEntity": "AgentToolLoop",
2419
+ "listens": [],
2420
+ "emitsScope": "internal",
2421
+ "effects": {
2422
+ "INIT": [
2423
+ [
2424
+ "fetch",
2425
+ "AgentToolLoop"
2426
+ ],
2427
+ [
2428
+ "render-ui",
2429
+ "main",
2430
+ {
2431
+ "type": "stack",
2432
+ "direction": "vertical",
2433
+ "gap": "lg",
2434
+ "children": [
2435
+ {
2436
+ "type": "stack",
2437
+ "direction": "horizontal",
2438
+ "gap": "sm",
2439
+ "align": "center",
2440
+ "children": [
2441
+ {
2442
+ "type": "icon",
2443
+ "name": "gauge",
2444
+ "size": "lg"
4387
2445
  },
4388
2446
  {
4389
- "type": "progress-bar",
4390
- "value": "@entity.current",
4391
- "max": "@entity.max"
2447
+ "type": "typography",
2448
+ "content": "Token Usage",
2449
+ "variant": "h2"
4392
2450
  },
4393
2451
  {
4394
- "type": "stack",
4395
- "direction": "horizontal",
4396
- "gap": "md",
4397
- "children": [
4398
- {
4399
- "type": "stat-display",
4400
- "label": "Tokens Used",
4401
- "value": "@entity.current"
4402
- },
4403
- {
4404
- "type": "stat-display",
4405
- "label": "Max Tokens",
4406
- "value": "@entity.max"
4407
- }
4408
- ]
2452
+ "type": "badge",
2453
+ "label": "Normal",
2454
+ "variant": "default"
2455
+ }
2456
+ ]
2457
+ },
2458
+ {
2459
+ "type": "divider"
2460
+ },
2461
+ {
2462
+ "type": "progress-bar",
2463
+ "value": "@entity.current",
2464
+ "max": "@entity.max"
2465
+ },
2466
+ {
2467
+ "type": "stack",
2468
+ "direction": "horizontal",
2469
+ "gap": "md",
2470
+ "children": [
2471
+ {
2472
+ "type": "stat-display",
2473
+ "label": "Tokens Used",
2474
+ "value": "@entity.current"
4409
2475
  },
4410
2476
  {
4411
- "type": "button",
4412
- "label": "Reset",
4413
- "event": "RESET",
4414
- "variant": "ghost",
4415
- "icon": "rotate-ccw"
2477
+ "type": "stat-display",
2478
+ "label": "Max Tokens",
2479
+ "value": "@entity.max"
4416
2480
  }
4417
2481
  ]
2482
+ },
2483
+ {
2484
+ "type": "button",
2485
+ "label": "Reset",
2486
+ "event": "RESET",
2487
+ "variant": "ghost",
2488
+ "icon": "rotate-ccw"
4418
2489
  }
4419
2490
  ]
4420
- ]
4421
- }
2491
+ }
2492
+ ]
4422
2493
  ]
4423
- },
4424
- "listens": []
2494
+ }
4425
2495
  }
4426
2496
  ],
4427
2497
  "pages": [
@@ -4448,6 +2518,5 @@
4448
2518
  }
4449
2519
  ]
4450
2520
  }
4451
- ],
4452
- "description": "Composes agent atoms + UI atoms into an iterative tool-use loop with step progress tracking and activity logging. The agent generates a plan, invokes tools to execute steps, checks results, and either loops or finishes. Composed atoms: - stdAgentCompletion: LLM plan generation and result checking - stdAgentToolCall: tool invocation with argument passing - stdAgentContextWindow: context window monitoring and compaction - stdAgentStepProgress: visual pipeline step indicator - stdAgentActivityLog: chronological action timeline"
4453
- }
2521
+ ]
2522
+ }