@almadar/std 5.2.2 → 5.3.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 (431) hide show
  1. package/behaviors/exports/atoms/std-agent-activity-log.orb +213 -10
  2. package/behaviors/exports/atoms/std-agent-chat-thread.orb +55 -4
  3. package/behaviors/exports/atoms/std-agent-classifier.orb +8 -4
  4. package/behaviors/exports/atoms/std-agent-completion.orb +8 -4
  5. package/behaviors/exports/atoms/std-agent-context-window.orb +4 -4
  6. package/behaviors/exports/atoms/std-agent-conversation.orb +71 -4
  7. package/behaviors/exports/atoms/std-agent-memory.orb +12 -4
  8. package/behaviors/exports/atoms/std-agent-provider.orb +8 -4
  9. package/behaviors/exports/atoms/std-agent-search.orb +4 -4
  10. package/behaviors/exports/atoms/std-agent-session.orb +16 -4
  11. package/behaviors/exports/atoms/std-agent-step-progress.orb +4 -4
  12. package/behaviors/exports/atoms/std-agent-token-gauge.orb +4 -4
  13. package/behaviors/exports/atoms/std-agent-tool-call.orb +8 -4
  14. package/behaviors/exports/atoms/std-async.orb +8 -4
  15. package/behaviors/exports/atoms/std-autoregressive.orb +2 -3
  16. package/behaviors/exports/atoms/std-browse.orb +4 -4
  17. package/behaviors/exports/atoms/std-cache-aside.orb +8 -4
  18. package/behaviors/exports/atoms/std-calendar.orb +4 -4
  19. package/behaviors/exports/atoms/std-circuit-breaker.orb +4 -4
  20. package/behaviors/exports/atoms/std-collision.orb +4 -4
  21. package/behaviors/exports/atoms/std-combat-log.orb +4 -4
  22. package/behaviors/exports/atoms/std-combat.orb +4 -4
  23. package/behaviors/exports/atoms/std-confirmation.orb +4 -4
  24. package/behaviors/exports/atoms/std-dialogue-box.orb +4 -4
  25. package/behaviors/exports/atoms/std-display.orb +4 -4
  26. package/behaviors/exports/atoms/std-drawer.orb +4 -4
  27. package/behaviors/exports/atoms/std-filter.orb +4 -4
  28. package/behaviors/exports/atoms/std-flip-card.orb +4 -4
  29. package/behaviors/exports/atoms/std-gallery.orb +4 -4
  30. package/behaviors/exports/atoms/std-game-audio.orb +4 -4
  31. package/behaviors/exports/atoms/std-game-canvas2d.orb +2 -3
  32. package/behaviors/exports/atoms/std-game-canvas3d.orb +2 -3
  33. package/behaviors/exports/atoms/std-game-hud.orb +4 -4
  34. package/behaviors/exports/atoms/std-game-menu.orb +4 -4
  35. package/behaviors/exports/atoms/std-game-over-screen.orb +4 -4
  36. package/behaviors/exports/atoms/std-gameflow.orb +4 -4
  37. package/behaviors/exports/atoms/std-input.orb +4 -4
  38. package/behaviors/exports/atoms/std-inventory-panel.orb +8 -4
  39. package/behaviors/exports/atoms/std-isometric-canvas.orb +4 -4
  40. package/behaviors/exports/atoms/std-loading.orb +4 -4
  41. package/behaviors/exports/atoms/std-modal.orb +4 -4
  42. package/behaviors/exports/atoms/std-movement.orb +4 -4
  43. package/behaviors/exports/atoms/std-notification.orb +4 -4
  44. package/behaviors/exports/atoms/std-overworld.orb +4 -4
  45. package/behaviors/exports/atoms/std-pagination.orb +4 -4
  46. package/behaviors/exports/atoms/std-physics2d.orb +4 -4
  47. package/behaviors/exports/atoms/std-platformer-canvas.orb +4 -4
  48. package/behaviors/exports/atoms/std-quest.orb +8 -4
  49. package/behaviors/exports/atoms/std-rate-limiter.orb +4 -4
  50. package/behaviors/exports/atoms/std-rating.orb +4 -4
  51. package/behaviors/exports/atoms/std-score-board.orb +4 -4
  52. package/behaviors/exports/atoms/std-score.orb +4 -4
  53. package/behaviors/exports/atoms/std-search.orb +4 -4
  54. package/behaviors/exports/atoms/std-selection.orb +4 -4
  55. package/behaviors/exports/atoms/std-service-custom-bearer.orb +15 -4
  56. package/behaviors/exports/atoms/std-service-custom-header.orb +17 -4
  57. package/behaviors/exports/atoms/std-service-custom-noauth.orb +11 -4
  58. package/behaviors/exports/atoms/std-service-custom-query.orb +17 -4
  59. package/behaviors/exports/atoms/std-service-email.orb +4 -4
  60. package/behaviors/exports/atoms/std-service-github.orb +4 -4
  61. package/behaviors/exports/atoms/std-service-llm.orb +4 -4
  62. package/behaviors/exports/atoms/std-service-oauth.orb +4 -4
  63. package/behaviors/exports/atoms/std-service-redis.orb +4 -4
  64. package/behaviors/exports/atoms/std-service-storage.orb +4 -4
  65. package/behaviors/exports/atoms/std-service-stripe.orb +4 -4
  66. package/behaviors/exports/atoms/std-service-twilio.orb +4 -4
  67. package/behaviors/exports/atoms/std-service-youtube.orb +4 -4
  68. package/behaviors/exports/atoms/std-simulation-canvas.orb +4 -4
  69. package/behaviors/exports/atoms/std-sort.orb +4 -4
  70. package/behaviors/exports/atoms/std-sprite.orb +4 -4
  71. package/behaviors/exports/atoms/std-tabs.orb +4 -4
  72. package/behaviors/exports/atoms/std-text-effects.orb +4 -4
  73. package/behaviors/exports/atoms/std-theme.orb +4 -4
  74. package/behaviors/exports/atoms/std-timer.orb +4 -4
  75. package/behaviors/exports/atoms/std-undo.orb +4 -4
  76. package/behaviors/exports/atoms/std-upload.orb +4 -4
  77. package/behaviors/exports/atoms/std-validate-on-save.orb +32 -4
  78. package/behaviors/exports/atoms/std-wizard.orb +4 -4
  79. package/behaviors/exports/molecules/std-agent-fix-loop.orb +1720 -1139
  80. package/behaviors/exports/molecules/std-agent-learner.orb +851 -622
  81. package/behaviors/exports/molecules/std-agent-planner.orb +869 -617
  82. package/behaviors/exports/molecules/std-agent-rag.orb +765 -563
  83. package/behaviors/exports/molecules/std-agent-tool-loop.orb +2838 -898
  84. package/behaviors/exports/molecules/std-builder-game.orb +4 -4
  85. package/behaviors/exports/molecules/std-cart.orb +317 -195
  86. package/behaviors/exports/molecules/std-classifier-game.orb +4 -4
  87. package/behaviors/exports/molecules/std-debugger-game.orb +4 -4
  88. package/behaviors/exports/molecules/std-detail.orb +469 -308
  89. package/behaviors/exports/molecules/std-event-handler-game.orb +4 -4
  90. package/behaviors/exports/molecules/std-form-advanced.orb +8 -4
  91. package/behaviors/exports/molecules/std-geospatial.orb +518 -362
  92. package/behaviors/exports/molecules/std-inventory.orb +649 -389
  93. package/behaviors/exports/molecules/std-list.orb +870 -527
  94. package/behaviors/exports/molecules/std-messaging.orb +454 -294
  95. package/behaviors/exports/molecules/std-negotiator-game.orb +4 -4
  96. package/behaviors/exports/molecules/std-platformer-game.orb +4 -4
  97. package/behaviors/exports/molecules/std-puzzle-game.orb +4 -4
  98. package/behaviors/exports/molecules/std-quiz.orb +4 -4
  99. package/behaviors/exports/molecules/std-sequencer-game.orb +4 -4
  100. package/behaviors/exports/molecules/std-service-content-pipeline.orb +4 -4
  101. package/behaviors/exports/molecules/std-service-custom-api-tester.orb +42 -4
  102. package/behaviors/exports/molecules/std-service-devops-toolkit.orb +4 -4
  103. package/behaviors/exports/molecules/std-service-notification-hub.orb +4 -4
  104. package/behaviors/exports/molecules/std-service-payment-flow.orb +4 -4
  105. package/behaviors/exports/molecules/std-simulator-game.orb +4 -4
  106. package/behaviors/exports/molecules/std-turn-based-battle.orb +4 -4
  107. package/behaviors/exports/organisms/std-agent-assistant.orb +28 -4
  108. package/behaviors/exports/organisms/std-agent-builder.orb +1309 -787
  109. package/behaviors/exports/organisms/std-agent-pipeline.orb +1271 -748
  110. package/behaviors/exports/organisms/std-agent-reviewer.orb +370 -292
  111. package/behaviors/exports/organisms/std-agent-tutor.orb +378 -295
  112. package/behaviors/exports/organisms/std-api-gateway.orb +16 -4
  113. package/behaviors/exports/organisms/std-arcade-game.orb +4 -4
  114. package/behaviors/exports/organisms/std-booking-system.orb +28 -4
  115. package/behaviors/exports/organisms/std-cicd-pipeline.orb +20 -4
  116. package/behaviors/exports/organisms/std-cms.orb +32 -4
  117. package/behaviors/exports/organisms/std-coding-academy.orb +4 -4
  118. package/behaviors/exports/organisms/std-crm.orb +32 -4
  119. package/behaviors/exports/organisms/std-devops-dashboard.orb +16 -4
  120. package/behaviors/exports/organisms/std-ecommerce.orb +36 -4
  121. package/behaviors/exports/organisms/std-finance-tracker.orb +20 -4
  122. package/behaviors/exports/organisms/std-healthcare.orb +32 -4
  123. package/behaviors/exports/organisms/std-helpdesk.orb +20 -4
  124. package/behaviors/exports/organisms/std-hr-portal.orb +28 -4
  125. package/behaviors/exports/organisms/std-iot-dashboard.orb +16 -4
  126. package/behaviors/exports/organisms/std-lms.orb +16 -4
  127. package/behaviors/exports/organisms/std-logic-training.orb +4 -4
  128. package/behaviors/exports/organisms/std-platformer-app.orb +16 -4
  129. package/behaviors/exports/organisms/std-project-manager.orb +28 -4
  130. package/behaviors/exports/organisms/std-puzzle-app.orb +4 -4
  131. package/behaviors/exports/organisms/std-realtime-chat.orb +20 -4
  132. package/behaviors/exports/organisms/std-rpg-game.orb +20 -4
  133. package/behaviors/exports/organisms/std-service-marketplace.orb +36 -8
  134. package/behaviors/exports/organisms/std-service-research-assistant.orb +15 -4
  135. package/behaviors/exports/organisms/std-social-feed.orb +12 -4
  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 +20 -4
  139. package/behaviors/exports/validation-report.json +1803 -1
  140. package/dist/behaviors/exports/atoms/std-agent-activity-log.orb +213 -10
  141. package/dist/behaviors/exports/atoms/std-agent-chat-thread.orb +55 -4
  142. package/dist/behaviors/exports/atoms/std-agent-classifier.orb +8 -4
  143. package/dist/behaviors/exports/atoms/std-agent-completion.orb +8 -4
  144. package/dist/behaviors/exports/atoms/std-agent-context-window.orb +4 -4
  145. package/dist/behaviors/exports/atoms/std-agent-conversation.orb +71 -4
  146. package/dist/behaviors/exports/atoms/std-agent-memory.orb +12 -4
  147. package/dist/behaviors/exports/atoms/std-agent-provider.orb +8 -4
  148. package/dist/behaviors/exports/atoms/std-agent-search.orb +4 -4
  149. package/dist/behaviors/exports/atoms/std-agent-session.orb +16 -4
  150. package/dist/behaviors/exports/atoms/std-agent-step-progress.orb +4 -4
  151. package/dist/behaviors/exports/atoms/std-agent-token-gauge.orb +4 -4
  152. package/dist/behaviors/exports/atoms/std-agent-tool-call.orb +8 -4
  153. package/dist/behaviors/exports/atoms/std-async.orb +8 -4
  154. package/dist/behaviors/exports/atoms/std-autoregressive.orb +2 -3
  155. package/dist/behaviors/exports/atoms/std-browse.orb +4 -4
  156. package/dist/behaviors/exports/atoms/std-cache-aside.orb +8 -4
  157. package/dist/behaviors/exports/atoms/std-calendar.orb +4 -4
  158. package/dist/behaviors/exports/atoms/std-circuit-breaker.orb +4 -4
  159. package/dist/behaviors/exports/atoms/std-collision.orb +4 -4
  160. package/dist/behaviors/exports/atoms/std-combat-log.orb +4 -4
  161. package/dist/behaviors/exports/atoms/std-combat.orb +4 -4
  162. package/dist/behaviors/exports/atoms/std-confirmation.orb +4 -4
  163. package/dist/behaviors/exports/atoms/std-dialogue-box.orb +4 -4
  164. package/dist/behaviors/exports/atoms/std-display.orb +4 -4
  165. package/dist/behaviors/exports/atoms/std-drawer.orb +4 -4
  166. package/dist/behaviors/exports/atoms/std-filter.orb +4 -4
  167. package/dist/behaviors/exports/atoms/std-flip-card.orb +4 -4
  168. package/dist/behaviors/exports/atoms/std-gallery.orb +4 -4
  169. package/dist/behaviors/exports/atoms/std-game-audio.orb +4 -4
  170. package/dist/behaviors/exports/atoms/std-game-canvas2d.orb +2 -3
  171. package/dist/behaviors/exports/atoms/std-game-canvas3d.orb +2 -3
  172. package/dist/behaviors/exports/atoms/std-game-hud.orb +4 -4
  173. package/dist/behaviors/exports/atoms/std-game-menu.orb +4 -4
  174. package/dist/behaviors/exports/atoms/std-game-over-screen.orb +4 -4
  175. package/dist/behaviors/exports/atoms/std-gameflow.orb +4 -4
  176. package/dist/behaviors/exports/atoms/std-input.orb +4 -4
  177. package/dist/behaviors/exports/atoms/std-inventory-panel.orb +8 -4
  178. package/dist/behaviors/exports/atoms/std-isometric-canvas.orb +4 -4
  179. package/dist/behaviors/exports/atoms/std-loading.orb +4 -4
  180. package/dist/behaviors/exports/atoms/std-modal.orb +4 -4
  181. package/dist/behaviors/exports/atoms/std-movement.orb +4 -4
  182. package/dist/behaviors/exports/atoms/std-notification.orb +4 -4
  183. package/dist/behaviors/exports/atoms/std-overworld.orb +4 -4
  184. package/dist/behaviors/exports/atoms/std-pagination.orb +4 -4
  185. package/dist/behaviors/exports/atoms/std-physics2d.orb +4 -4
  186. package/dist/behaviors/exports/atoms/std-platformer-canvas.orb +4 -4
  187. package/dist/behaviors/exports/atoms/std-quest.orb +8 -4
  188. package/dist/behaviors/exports/atoms/std-rate-limiter.orb +4 -4
  189. package/dist/behaviors/exports/atoms/std-rating.orb +4 -4
  190. package/dist/behaviors/exports/atoms/std-score-board.orb +4 -4
  191. package/dist/behaviors/exports/atoms/std-score.orb +4 -4
  192. package/dist/behaviors/exports/atoms/std-search.orb +4 -4
  193. package/dist/behaviors/exports/atoms/std-selection.orb +4 -4
  194. package/dist/behaviors/exports/atoms/std-service-custom-bearer.orb +15 -4
  195. package/dist/behaviors/exports/atoms/std-service-custom-header.orb +17 -4
  196. package/dist/behaviors/exports/atoms/std-service-custom-noauth.orb +11 -4
  197. package/dist/behaviors/exports/atoms/std-service-custom-query.orb +17 -4
  198. package/dist/behaviors/exports/atoms/std-service-email.orb +4 -4
  199. package/dist/behaviors/exports/atoms/std-service-github.orb +4 -4
  200. package/dist/behaviors/exports/atoms/std-service-llm.orb +4 -4
  201. package/dist/behaviors/exports/atoms/std-service-oauth.orb +4 -4
  202. package/dist/behaviors/exports/atoms/std-service-redis.orb +4 -4
  203. package/dist/behaviors/exports/atoms/std-service-storage.orb +4 -4
  204. package/dist/behaviors/exports/atoms/std-service-stripe.orb +4 -4
  205. package/dist/behaviors/exports/atoms/std-service-twilio.orb +4 -4
  206. package/dist/behaviors/exports/atoms/std-service-youtube.orb +4 -4
  207. package/dist/behaviors/exports/atoms/std-simulation-canvas.orb +4 -4
  208. package/dist/behaviors/exports/atoms/std-sort.orb +4 -4
  209. package/dist/behaviors/exports/atoms/std-sprite.orb +4 -4
  210. package/dist/behaviors/exports/atoms/std-tabs.orb +4 -4
  211. package/dist/behaviors/exports/atoms/std-text-effects.orb +4 -4
  212. package/dist/behaviors/exports/atoms/std-theme.orb +4 -4
  213. package/dist/behaviors/exports/atoms/std-timer.orb +4 -4
  214. package/dist/behaviors/exports/atoms/std-undo.orb +4 -4
  215. package/dist/behaviors/exports/atoms/std-upload.orb +4 -4
  216. package/dist/behaviors/exports/atoms/std-validate-on-save.orb +32 -4
  217. package/dist/behaviors/exports/atoms/std-wizard.orb +4 -4
  218. package/dist/behaviors/exports/molecules/std-agent-fix-loop.orb +1720 -1139
  219. package/dist/behaviors/exports/molecules/std-agent-learner.orb +851 -622
  220. package/dist/behaviors/exports/molecules/std-agent-planner.orb +869 -617
  221. package/dist/behaviors/exports/molecules/std-agent-rag.orb +765 -563
  222. package/dist/behaviors/exports/molecules/std-agent-tool-loop.orb +2838 -898
  223. package/dist/behaviors/exports/molecules/std-builder-game.orb +4 -4
  224. package/dist/behaviors/exports/molecules/std-cart.orb +317 -195
  225. package/dist/behaviors/exports/molecules/std-classifier-game.orb +4 -4
  226. package/dist/behaviors/exports/molecules/std-debugger-game.orb +4 -4
  227. package/dist/behaviors/exports/molecules/std-detail.orb +469 -308
  228. package/dist/behaviors/exports/molecules/std-event-handler-game.orb +4 -4
  229. package/dist/behaviors/exports/molecules/std-form-advanced.orb +8 -4
  230. package/dist/behaviors/exports/molecules/std-geospatial.orb +518 -362
  231. package/dist/behaviors/exports/molecules/std-inventory.orb +649 -389
  232. package/dist/behaviors/exports/molecules/std-list.orb +870 -527
  233. package/dist/behaviors/exports/molecules/std-messaging.orb +454 -294
  234. package/dist/behaviors/exports/molecules/std-negotiator-game.orb +4 -4
  235. package/dist/behaviors/exports/molecules/std-platformer-game.orb +4 -4
  236. package/dist/behaviors/exports/molecules/std-puzzle-game.orb +4 -4
  237. package/dist/behaviors/exports/molecules/std-quiz.orb +4 -4
  238. package/dist/behaviors/exports/molecules/std-sequencer-game.orb +4 -4
  239. package/dist/behaviors/exports/molecules/std-service-content-pipeline.orb +4 -4
  240. package/dist/behaviors/exports/molecules/std-service-custom-api-tester.orb +42 -4
  241. package/dist/behaviors/exports/molecules/std-service-devops-toolkit.orb +4 -4
  242. package/dist/behaviors/exports/molecules/std-service-notification-hub.orb +4 -4
  243. package/dist/behaviors/exports/molecules/std-service-payment-flow.orb +4 -4
  244. package/dist/behaviors/exports/molecules/std-simulator-game.orb +4 -4
  245. package/dist/behaviors/exports/molecules/std-turn-based-battle.orb +4 -4
  246. package/dist/behaviors/exports/organisms/std-agent-assistant.orb +28 -4
  247. package/dist/behaviors/exports/organisms/std-agent-builder.orb +1309 -787
  248. package/dist/behaviors/exports/organisms/std-agent-pipeline.orb +1271 -748
  249. package/dist/behaviors/exports/organisms/std-agent-reviewer.orb +370 -292
  250. package/dist/behaviors/exports/organisms/std-agent-tutor.orb +378 -295
  251. package/dist/behaviors/exports/organisms/std-api-gateway.orb +16 -4
  252. package/dist/behaviors/exports/organisms/std-arcade-game.orb +4 -4
  253. package/dist/behaviors/exports/organisms/std-booking-system.orb +28 -4
  254. package/dist/behaviors/exports/organisms/std-cicd-pipeline.orb +20 -4
  255. package/dist/behaviors/exports/organisms/std-cms.orb +32 -4
  256. package/dist/behaviors/exports/organisms/std-coding-academy.orb +4 -4
  257. package/dist/behaviors/exports/organisms/std-crm.orb +32 -4
  258. package/dist/behaviors/exports/organisms/std-devops-dashboard.orb +16 -4
  259. package/dist/behaviors/exports/organisms/std-ecommerce.orb +36 -4
  260. package/dist/behaviors/exports/organisms/std-finance-tracker.orb +20 -4
  261. package/dist/behaviors/exports/organisms/std-healthcare.orb +32 -4
  262. package/dist/behaviors/exports/organisms/std-helpdesk.orb +20 -4
  263. package/dist/behaviors/exports/organisms/std-hr-portal.orb +28 -4
  264. package/dist/behaviors/exports/organisms/std-iot-dashboard.orb +16 -4
  265. package/dist/behaviors/exports/organisms/std-lms.orb +16 -4
  266. package/dist/behaviors/exports/organisms/std-logic-training.orb +4 -4
  267. package/dist/behaviors/exports/organisms/std-platformer-app.orb +16 -4
  268. package/dist/behaviors/exports/organisms/std-project-manager.orb +28 -4
  269. package/dist/behaviors/exports/organisms/std-puzzle-app.orb +4 -4
  270. package/dist/behaviors/exports/organisms/std-realtime-chat.orb +20 -4
  271. package/dist/behaviors/exports/organisms/std-rpg-game.orb +20 -4
  272. package/dist/behaviors/exports/organisms/std-service-marketplace.orb +36 -8
  273. package/dist/behaviors/exports/organisms/std-service-research-assistant.orb +15 -4
  274. package/dist/behaviors/exports/organisms/std-social-feed.orb +12 -4
  275. package/dist/behaviors/exports/organisms/std-stem-lab.orb +4 -4
  276. package/dist/behaviors/exports/organisms/std-strategy-game.orb +4 -4
  277. package/dist/behaviors/exports/organisms/std-trading-dashboard.orb +20 -4
  278. package/dist/behaviors/exports/validation-report.json +1803 -1
  279. package/dist/behaviors/exports-reader.js +208 -193
  280. package/dist/behaviors/exports-reader.js.map +1 -1
  281. package/dist/behaviors/functions/index.d.ts +113 -113
  282. package/dist/behaviors/functions/index.js +208 -194
  283. package/dist/behaviors/functions/index.js.map +1 -1
  284. package/dist/behaviors/index.d.ts +1 -1
  285. package/dist/behaviors/index.js +209 -194
  286. package/dist/behaviors/index.js.map +1 -1
  287. package/dist/behaviors/query.js +208 -193
  288. package/dist/behaviors/query.js.map +1 -1
  289. package/dist/exports/atoms/std-agent-activity-log.orb +213 -10
  290. package/dist/exports/atoms/std-agent-chat-thread.orb +55 -4
  291. package/dist/exports/atoms/std-agent-classifier.orb +8 -4
  292. package/dist/exports/atoms/std-agent-completion.orb +8 -4
  293. package/dist/exports/atoms/std-agent-context-window.orb +4 -4
  294. package/dist/exports/atoms/std-agent-conversation.orb +71 -4
  295. package/dist/exports/atoms/std-agent-memory.orb +12 -4
  296. package/dist/exports/atoms/std-agent-provider.orb +8 -4
  297. package/dist/exports/atoms/std-agent-search.orb +4 -4
  298. package/dist/exports/atoms/std-agent-session.orb +16 -4
  299. package/dist/exports/atoms/std-agent-step-progress.orb +4 -4
  300. package/dist/exports/atoms/std-agent-token-gauge.orb +4 -4
  301. package/dist/exports/atoms/std-agent-tool-call.orb +8 -4
  302. package/dist/exports/atoms/std-async.orb +8 -4
  303. package/dist/exports/atoms/std-autoregressive.orb +2 -3
  304. package/dist/exports/atoms/std-browse.orb +4 -4
  305. package/dist/exports/atoms/std-cache-aside.orb +8 -4
  306. package/dist/exports/atoms/std-calendar.orb +4 -4
  307. package/dist/exports/atoms/std-circuit-breaker.orb +4 -4
  308. package/dist/exports/atoms/std-collision.orb +4 -4
  309. package/dist/exports/atoms/std-combat-log.orb +4 -4
  310. package/dist/exports/atoms/std-combat.orb +4 -4
  311. package/dist/exports/atoms/std-confirmation.orb +4 -4
  312. package/dist/exports/atoms/std-dialogue-box.orb +4 -4
  313. package/dist/exports/atoms/std-display.orb +4 -4
  314. package/dist/exports/atoms/std-drawer.orb +4 -4
  315. package/dist/exports/atoms/std-filter.orb +4 -4
  316. package/dist/exports/atoms/std-flip-card.orb +4 -4
  317. package/dist/exports/atoms/std-gallery.orb +4 -4
  318. package/dist/exports/atoms/std-game-audio.orb +4 -4
  319. package/dist/exports/atoms/std-game-canvas2d.orb +2 -3
  320. package/dist/exports/atoms/std-game-canvas3d.orb +2 -3
  321. package/dist/exports/atoms/std-game-hud.orb +4 -4
  322. package/dist/exports/atoms/std-game-menu.orb +4 -4
  323. package/dist/exports/atoms/std-game-over-screen.orb +4 -4
  324. package/dist/exports/atoms/std-gameflow.orb +4 -4
  325. package/dist/exports/atoms/std-input.orb +4 -4
  326. package/dist/exports/atoms/std-inventory-panel.orb +8 -4
  327. package/dist/exports/atoms/std-isometric-canvas.orb +4 -4
  328. package/dist/exports/atoms/std-loading.orb +4 -4
  329. package/dist/exports/atoms/std-modal.orb +4 -4
  330. package/dist/exports/atoms/std-movement.orb +4 -4
  331. package/dist/exports/atoms/std-notification.orb +4 -4
  332. package/dist/exports/atoms/std-overworld.orb +4 -4
  333. package/dist/exports/atoms/std-pagination.orb +4 -4
  334. package/dist/exports/atoms/std-physics2d.orb +4 -4
  335. package/dist/exports/atoms/std-platformer-canvas.orb +4 -4
  336. package/dist/exports/atoms/std-quest.orb +8 -4
  337. package/dist/exports/atoms/std-rate-limiter.orb +4 -4
  338. package/dist/exports/atoms/std-rating.orb +4 -4
  339. package/dist/exports/atoms/std-score-board.orb +4 -4
  340. package/dist/exports/atoms/std-score.orb +4 -4
  341. package/dist/exports/atoms/std-search.orb +4 -4
  342. package/dist/exports/atoms/std-selection.orb +4 -4
  343. package/dist/exports/atoms/std-service-custom-bearer.orb +15 -4
  344. package/dist/exports/atoms/std-service-custom-header.orb +17 -4
  345. package/dist/exports/atoms/std-service-custom-noauth.orb +11 -4
  346. package/dist/exports/atoms/std-service-custom-query.orb +17 -4
  347. package/dist/exports/atoms/std-service-email.orb +4 -4
  348. package/dist/exports/atoms/std-service-github.orb +4 -4
  349. package/dist/exports/atoms/std-service-llm.orb +4 -4
  350. package/dist/exports/atoms/std-service-oauth.orb +4 -4
  351. package/dist/exports/atoms/std-service-redis.orb +4 -4
  352. package/dist/exports/atoms/std-service-storage.orb +4 -4
  353. package/dist/exports/atoms/std-service-stripe.orb +4 -4
  354. package/dist/exports/atoms/std-service-twilio.orb +4 -4
  355. package/dist/exports/atoms/std-service-youtube.orb +4 -4
  356. package/dist/exports/atoms/std-simulation-canvas.orb +4 -4
  357. package/dist/exports/atoms/std-sort.orb +4 -4
  358. package/dist/exports/atoms/std-sprite.orb +4 -4
  359. package/dist/exports/atoms/std-tabs.orb +4 -4
  360. package/dist/exports/atoms/std-text-effects.orb +4 -4
  361. package/dist/exports/atoms/std-theme.orb +4 -4
  362. package/dist/exports/atoms/std-timer.orb +4 -4
  363. package/dist/exports/atoms/std-undo.orb +4 -4
  364. package/dist/exports/atoms/std-upload.orb +4 -4
  365. package/dist/exports/atoms/std-validate-on-save.orb +32 -4
  366. package/dist/exports/atoms/std-wizard.orb +4 -4
  367. package/dist/exports/molecules/std-agent-fix-loop.orb +1720 -1139
  368. package/dist/exports/molecules/std-agent-learner.orb +851 -622
  369. package/dist/exports/molecules/std-agent-planner.orb +869 -617
  370. package/dist/exports/molecules/std-agent-rag.orb +765 -563
  371. package/dist/exports/molecules/std-agent-tool-loop.orb +2838 -898
  372. package/dist/exports/molecules/std-builder-game.orb +4 -4
  373. package/dist/exports/molecules/std-cart.orb +317 -195
  374. package/dist/exports/molecules/std-classifier-game.orb +4 -4
  375. package/dist/exports/molecules/std-debugger-game.orb +4 -4
  376. package/dist/exports/molecules/std-detail.orb +469 -308
  377. package/dist/exports/molecules/std-event-handler-game.orb +4 -4
  378. package/dist/exports/molecules/std-form-advanced.orb +8 -4
  379. package/dist/exports/molecules/std-geospatial.orb +518 -362
  380. package/dist/exports/molecules/std-inventory.orb +649 -389
  381. package/dist/exports/molecules/std-list.orb +870 -527
  382. package/dist/exports/molecules/std-messaging.orb +454 -294
  383. package/dist/exports/molecules/std-negotiator-game.orb +4 -4
  384. package/dist/exports/molecules/std-platformer-game.orb +4 -4
  385. package/dist/exports/molecules/std-puzzle-game.orb +4 -4
  386. package/dist/exports/molecules/std-quiz.orb +4 -4
  387. package/dist/exports/molecules/std-sequencer-game.orb +4 -4
  388. package/dist/exports/molecules/std-service-content-pipeline.orb +4 -4
  389. package/dist/exports/molecules/std-service-custom-api-tester.orb +42 -4
  390. package/dist/exports/molecules/std-service-devops-toolkit.orb +4 -4
  391. package/dist/exports/molecules/std-service-notification-hub.orb +4 -4
  392. package/dist/exports/molecules/std-service-payment-flow.orb +4 -4
  393. package/dist/exports/molecules/std-simulator-game.orb +4 -4
  394. package/dist/exports/molecules/std-turn-based-battle.orb +4 -4
  395. package/dist/exports/organisms/std-agent-assistant.orb +28 -4
  396. package/dist/exports/organisms/std-agent-builder.orb +1309 -787
  397. package/dist/exports/organisms/std-agent-pipeline.orb +1271 -748
  398. package/dist/exports/organisms/std-agent-reviewer.orb +370 -292
  399. package/dist/exports/organisms/std-agent-tutor.orb +378 -295
  400. package/dist/exports/organisms/std-api-gateway.orb +16 -4
  401. package/dist/exports/organisms/std-arcade-game.orb +4 -4
  402. package/dist/exports/organisms/std-booking-system.orb +28 -4
  403. package/dist/exports/organisms/std-cicd-pipeline.orb +20 -4
  404. package/dist/exports/organisms/std-cms.orb +32 -4
  405. package/dist/exports/organisms/std-coding-academy.orb +4 -4
  406. package/dist/exports/organisms/std-crm.orb +32 -4
  407. package/dist/exports/organisms/std-devops-dashboard.orb +16 -4
  408. package/dist/exports/organisms/std-ecommerce.orb +36 -4
  409. package/dist/exports/organisms/std-finance-tracker.orb +20 -4
  410. package/dist/exports/organisms/std-healthcare.orb +32 -4
  411. package/dist/exports/organisms/std-helpdesk.orb +20 -4
  412. package/dist/exports/organisms/std-hr-portal.orb +28 -4
  413. package/dist/exports/organisms/std-iot-dashboard.orb +16 -4
  414. package/dist/exports/organisms/std-lms.orb +16 -4
  415. package/dist/exports/organisms/std-logic-training.orb +4 -4
  416. package/dist/exports/organisms/std-platformer-app.orb +16 -4
  417. package/dist/exports/organisms/std-project-manager.orb +28 -4
  418. package/dist/exports/organisms/std-puzzle-app.orb +4 -4
  419. package/dist/exports/organisms/std-realtime-chat.orb +20 -4
  420. package/dist/exports/organisms/std-rpg-game.orb +20 -4
  421. package/dist/exports/organisms/std-service-marketplace.orb +36 -8
  422. package/dist/exports/organisms/std-service-research-assistant.orb +15 -4
  423. package/dist/exports/organisms/std-social-feed.orb +12 -4
  424. package/dist/exports/organisms/std-stem-lab.orb +4 -4
  425. package/dist/exports/organisms/std-strategy-game.orb +4 -4
  426. package/dist/exports/organisms/std-trading-dashboard.orb +20 -4
  427. package/dist/exports/validation-report.json +1803 -1
  428. package/dist/index.d.ts +1 -1
  429. package/dist/index.js +209 -194
  430. package/dist/index.js.map +1 -1
  431. package/package.json +5 -5
@@ -1,28 +1,9 @@
1
1
  {
2
- "name": "std-agent-fix-loop",
2
+ "name": "AgentFixLoopOrbital",
3
3
  "version": "1.0.0",
4
- "description": "std-agent-fix-loop -- Validation-fix cycle",
5
4
  "orbitals": [
6
5
  {
7
6
  "name": "AgentFixLoopOrbital",
8
- "uses": [
9
- {
10
- "from": "std/behaviors/std-agent-completion",
11
- "as": "AgentCompletion"
12
- },
13
- {
14
- "from": "std/behaviors/std-agent-step-progress",
15
- "as": "AgentStepProgress"
16
- },
17
- {
18
- "from": "std/behaviors/std-agent-tool-call",
19
- "as": "AgentToolCall"
20
- },
21
- {
22
- "from": "std/behaviors/std-browse",
23
- "as": "Browse"
24
- }
25
- ],
26
7
  "entity": {
27
8
  "name": "AgentFixLoop",
28
9
  "persistence": "runtime",
@@ -1296,180 +1277,471 @@
1296
1277
  }
1297
1278
  },
1298
1279
  {
1299
- "ref": "AgentStepProgress.traits.AgentStepProgressProgress",
1300
1280
  "name": "FixLoopStepProgress",
1301
1281
  "linkedEntity": "AgentFixLoop",
1302
- "listens": [],
1303
- "emitsScope": "internal",
1304
- "effects": {
1305
- "INIT": [
1306
- [
1307
- "fetch",
1308
- "AgentFixLoop"
1309
- ],
1310
- [
1311
- "render-ui",
1312
- "main",
1282
+ "category": "interaction",
1283
+ "emits": [
1284
+ {
1285
+ "event": "ADVANCE",
1286
+ "scope": "internal",
1287
+ "payload": [
1288
+ {
1289
+ "name": "step",
1290
+ "type": "number"
1291
+ }
1292
+ ]
1293
+ },
1294
+ {
1295
+ "event": "COMPLETE",
1296
+ "scope": "internal",
1297
+ "payload": [
1298
+ {
1299
+ "name": "totalSteps",
1300
+ "type": "number"
1301
+ }
1302
+ ]
1303
+ },
1304
+ {
1305
+ "event": "FAIL",
1306
+ "scope": "internal",
1307
+ "payload": [
1313
1308
  {
1314
- "type": "stack",
1315
- "direction": "vertical",
1316
- "gap": "lg",
1317
- "children": [
1309
+ "name": "step",
1310
+ "type": "number"
1311
+ }
1312
+ ]
1313
+ }
1314
+ ],
1315
+ "listens": [],
1316
+ "stateMachine": {
1317
+ "states": [
1318
+ {
1319
+ "name": "idle",
1320
+ "isInitial": true
1321
+ },
1322
+ {
1323
+ "name": "in_progress"
1324
+ },
1325
+ {
1326
+ "name": "completed"
1327
+ },
1328
+ {
1329
+ "name": "failed"
1330
+ }
1331
+ ],
1332
+ "events": [
1333
+ {
1334
+ "key": "INIT",
1335
+ "name": "Initialize"
1336
+ },
1337
+ {
1338
+ "key": "START",
1339
+ "name": "Start Pipeline"
1340
+ },
1341
+ {
1342
+ "key": "ADVANCE",
1343
+ "name": "Advance Step"
1344
+ },
1345
+ {
1346
+ "key": "COMPLETE",
1347
+ "name": "Complete Pipeline"
1348
+ },
1349
+ {
1350
+ "key": "FAIL",
1351
+ "name": "Pipeline Failed"
1352
+ },
1353
+ {
1354
+ "key": "RESET",
1355
+ "name": "Reset Pipeline"
1356
+ }
1357
+ ],
1358
+ "transitions": [
1359
+ {
1360
+ "from": "idle",
1361
+ "to": "idle",
1362
+ "event": "INIT",
1363
+ "effects": [
1364
+ [
1365
+ "fetch",
1366
+ "AgentFixLoop"
1367
+ ],
1368
+ [
1369
+ "render-ui",
1370
+ "main",
1318
1371
  {
1319
1372
  "type": "stack",
1320
- "direction": "horizontal",
1321
- "gap": "sm",
1322
- "align": "center",
1373
+ "direction": "vertical",
1374
+ "gap": "lg",
1323
1375
  "children": [
1324
1376
  {
1325
- "type": "icon",
1326
- "name": "list-ordered",
1327
- "size": "lg"
1328
- },
1329
- {
1330
- "type": "typography",
1331
- "content": "AgentFixLoop",
1332
- "variant": "h2"
1333
- },
1334
- {
1335
- "type": "badge",
1336
- "label": "Idle",
1337
- "variant": "default"
1338
- }
1339
- ]
1340
- },
1341
- {
1342
- "type": "divider"
1343
- },
1344
- {
1345
- "type": "wizard-progress",
1346
- "currentStep": "@entity.currentStep",
1347
- "steps": [
1348
- {
1349
- "id": "0",
1350
- "title": "Validate"
1377
+ "type": "stack",
1378
+ "direction": "horizontal",
1379
+ "gap": "sm",
1380
+ "align": "center",
1381
+ "children": [
1382
+ {
1383
+ "type": "icon",
1384
+ "name": "list-ordered",
1385
+ "size": "lg"
1386
+ },
1387
+ {
1388
+ "type": "typography",
1389
+ "content": "AgentFixLoop",
1390
+ "variant": "h2"
1391
+ },
1392
+ {
1393
+ "type": "badge",
1394
+ "label": "Idle",
1395
+ "variant": "default"
1396
+ }
1397
+ ]
1351
1398
  },
1352
1399
  {
1353
- "id": "1",
1354
- "title": "Analyze"
1400
+ "type": "divider"
1355
1401
  },
1356
1402
  {
1357
- "id": "2",
1358
- "title": "Fix"
1403
+ "type": "wizard-progress",
1404
+ "currentStep": "@entity.currentStep",
1405
+ "steps": [
1406
+ {
1407
+ "id": "0",
1408
+ "title": "Validate"
1409
+ },
1410
+ {
1411
+ "id": "1",
1412
+ "title": "Analyze"
1413
+ },
1414
+ {
1415
+ "id": "2",
1416
+ "title": "Fix"
1417
+ },
1418
+ {
1419
+ "id": "3",
1420
+ "title": "Re-validate"
1421
+ }
1422
+ ]
1359
1423
  },
1360
1424
  {
1361
- "id": "3",
1362
- "title": "Re-validate"
1425
+ "type": "button",
1426
+ "label": "Start",
1427
+ "event": "START",
1428
+ "variant": "primary",
1429
+ "icon": "play"
1363
1430
  }
1364
1431
  ]
1365
- },
1366
- {
1367
- "type": "button",
1368
- "label": "Start",
1369
- "event": "START",
1370
- "variant": "primary",
1371
- "icon": "play"
1372
1432
  }
1373
1433
  ]
1374
- }
1375
- ]
1376
- ],
1377
- "START": [
1378
- [
1379
- "set",
1380
- "@entity.status",
1381
- "in_progress"
1382
- ],
1383
- [
1384
- "set",
1385
- "@entity.currentStep",
1386
- 0
1387
- ],
1388
- [
1389
- "render-ui",
1390
- "main",
1391
- {
1392
- "type": "stack",
1393
- "direction": "vertical",
1394
- "gap": "lg",
1395
- "children": [
1434
+ ]
1435
+ },
1436
+ {
1437
+ "from": "idle",
1438
+ "to": "in_progress",
1439
+ "event": "START",
1440
+ "effects": [
1441
+ [
1442
+ "set",
1443
+ "@entity.status",
1444
+ "in_progress"
1445
+ ],
1446
+ [
1447
+ "set",
1448
+ "@entity.currentStep",
1449
+ 0
1450
+ ],
1451
+ [
1452
+ "render-ui",
1453
+ "main",
1396
1454
  {
1397
1455
  "type": "stack",
1398
- "direction": "horizontal",
1399
- "gap": "sm",
1400
- "align": "center",
1456
+ "direction": "vertical",
1457
+ "gap": "lg",
1401
1458
  "children": [
1402
1459
  {
1403
- "type": "icon",
1404
- "name": "loader",
1405
- "size": "lg"
1406
- },
1407
- {
1408
- "type": "typography",
1409
- "content": "AgentFixLoop",
1410
- "variant": "h2"
1460
+ "type": "stack",
1461
+ "direction": "horizontal",
1462
+ "gap": "sm",
1463
+ "align": "center",
1464
+ "children": [
1465
+ {
1466
+ "type": "icon",
1467
+ "name": "loader",
1468
+ "size": "lg"
1469
+ },
1470
+ {
1471
+ "type": "typography",
1472
+ "content": "AgentFixLoop",
1473
+ "variant": "h2"
1474
+ },
1475
+ {
1476
+ "type": "badge",
1477
+ "label": "In Progress",
1478
+ "variant": "warning"
1479
+ }
1480
+ ]
1411
1481
  },
1412
1482
  {
1413
- "type": "badge",
1414
- "label": "In Progress",
1415
- "variant": "warning"
1416
- }
1417
- ]
1418
- },
1419
- {
1420
- "type": "divider"
1421
- },
1422
- {
1423
- "type": "wizard-progress",
1424
- "currentStep": "@entity.currentStep",
1425
- "steps": [
1426
- {
1427
- "id": "0",
1428
- "title": "Validate"
1483
+ "type": "divider"
1429
1484
  },
1430
1485
  {
1431
- "id": "1",
1432
- "title": "Analyze"
1486
+ "type": "wizard-progress",
1487
+ "currentStep": "@entity.currentStep",
1488
+ "steps": [
1489
+ {
1490
+ "id": "0",
1491
+ "title": "Validate"
1492
+ },
1493
+ {
1494
+ "id": "1",
1495
+ "title": "Analyze"
1496
+ },
1497
+ {
1498
+ "id": "2",
1499
+ "title": "Fix"
1500
+ },
1501
+ {
1502
+ "id": "3",
1503
+ "title": "Re-validate"
1504
+ }
1505
+ ]
1433
1506
  },
1434
1507
  {
1435
- "id": "2",
1436
- "title": "Fix"
1508
+ "type": "stack",
1509
+ "direction": "horizontal",
1510
+ "gap": "sm",
1511
+ "align": "center",
1512
+ "children": [
1513
+ {
1514
+ "type": "stat-display",
1515
+ "label": "Current Step",
1516
+ "value": "@entity.currentStep"
1517
+ },
1518
+ {
1519
+ "type": "stat-display",
1520
+ "label": "Total Steps",
1521
+ "value": "@entity.totalSteps"
1522
+ }
1523
+ ]
1437
1524
  },
1438
1525
  {
1439
- "id": "3",
1440
- "title": "Re-validate"
1526
+ "type": "stack",
1527
+ "direction": "horizontal",
1528
+ "gap": "sm",
1529
+ "children": [
1530
+ {
1531
+ "type": "button",
1532
+ "label": "Advance",
1533
+ "event": "ADVANCE",
1534
+ "variant": "primary",
1535
+ "icon": "chevron-right"
1536
+ },
1537
+ {
1538
+ "type": "button",
1539
+ "label": "Reset",
1540
+ "event": "RESET",
1541
+ "variant": "ghost",
1542
+ "icon": "rotate-ccw"
1543
+ }
1544
+ ]
1441
1545
  }
1442
1546
  ]
1443
- },
1547
+ }
1548
+ ]
1549
+ ]
1550
+ },
1551
+ {
1552
+ "from": "in_progress",
1553
+ "to": "in_progress",
1554
+ "event": "ADVANCE",
1555
+ "guard": [
1556
+ "<",
1557
+ "@entity.currentStep",
1558
+ "@entity.totalSteps"
1559
+ ],
1560
+ "effects": [
1561
+ [
1562
+ "set",
1563
+ "@entity.currentStep",
1564
+ [
1565
+ "+",
1566
+ "@entity.currentStep",
1567
+ 1
1568
+ ]
1569
+ ],
1570
+ [
1571
+ "render-ui",
1572
+ "main",
1444
1573
  {
1445
1574
  "type": "stack",
1446
- "direction": "horizontal",
1447
- "gap": "sm",
1448
- "align": "center",
1575
+ "direction": "vertical",
1576
+ "gap": "lg",
1449
1577
  "children": [
1450
1578
  {
1451
- "type": "stat-display",
1452
- "label": "Current Step",
1453
- "value": "@entity.currentStep"
1579
+ "type": "stack",
1580
+ "direction": "horizontal",
1581
+ "gap": "sm",
1582
+ "align": "center",
1583
+ "children": [
1584
+ {
1585
+ "type": "icon",
1586
+ "name": "loader",
1587
+ "size": "lg"
1588
+ },
1589
+ {
1590
+ "type": "typography",
1591
+ "content": "AgentFixLoop",
1592
+ "variant": "h2"
1593
+ },
1594
+ {
1595
+ "type": "badge",
1596
+ "label": "In Progress",
1597
+ "variant": "warning"
1598
+ }
1599
+ ]
1454
1600
  },
1455
1601
  {
1456
- "type": "stat-display",
1457
- "label": "Total Steps",
1458
- "value": "@entity.totalSteps"
1459
- }
1460
- ]
1461
- },
1462
- {
1463
- "type": "stack",
1464
- "direction": "horizontal",
1465
- "gap": "sm",
1466
- "children": [
1467
- {
1468
- "type": "button",
1469
- "label": "Advance",
1470
- "event": "ADVANCE",
1471
- "variant": "primary",
1472
- "icon": "chevron-right"
1602
+ "type": "divider"
1603
+ },
1604
+ {
1605
+ "type": "wizard-progress",
1606
+ "currentStep": "@entity.currentStep",
1607
+ "steps": [
1608
+ {
1609
+ "id": "0",
1610
+ "title": "Validate"
1611
+ },
1612
+ {
1613
+ "id": "1",
1614
+ "title": "Analyze"
1615
+ },
1616
+ {
1617
+ "id": "2",
1618
+ "title": "Fix"
1619
+ },
1620
+ {
1621
+ "id": "3",
1622
+ "title": "Re-validate"
1623
+ }
1624
+ ]
1625
+ },
1626
+ {
1627
+ "type": "stack",
1628
+ "direction": "horizontal",
1629
+ "gap": "sm",
1630
+ "align": "center",
1631
+ "children": [
1632
+ {
1633
+ "type": "stat-display",
1634
+ "label": "Current Step",
1635
+ "value": "@entity.currentStep"
1636
+ },
1637
+ {
1638
+ "type": "stat-display",
1639
+ "label": "Total Steps",
1640
+ "value": "@entity.totalSteps"
1641
+ }
1642
+ ]
1643
+ },
1644
+ {
1645
+ "type": "stack",
1646
+ "direction": "horizontal",
1647
+ "gap": "sm",
1648
+ "children": [
1649
+ {
1650
+ "type": "button",
1651
+ "label": "Advance",
1652
+ "event": "ADVANCE",
1653
+ "variant": "primary",
1654
+ "icon": "chevron-right"
1655
+ },
1656
+ {
1657
+ "type": "button",
1658
+ "label": "Reset",
1659
+ "event": "RESET",
1660
+ "variant": "ghost",
1661
+ "icon": "rotate-ccw"
1662
+ }
1663
+ ]
1664
+ }
1665
+ ]
1666
+ }
1667
+ ]
1668
+ ]
1669
+ },
1670
+ {
1671
+ "from": "in_progress",
1672
+ "to": "completed",
1673
+ "event": "COMPLETE",
1674
+ "effects": [
1675
+ [
1676
+ "set",
1677
+ "@entity.status",
1678
+ "completed"
1679
+ ],
1680
+ [
1681
+ "set",
1682
+ "@entity.currentStep",
1683
+ "@entity.totalSteps"
1684
+ ],
1685
+ [
1686
+ "render-ui",
1687
+ "main",
1688
+ {
1689
+ "type": "stack",
1690
+ "direction": "vertical",
1691
+ "gap": "lg",
1692
+ "children": [
1693
+ {
1694
+ "type": "stack",
1695
+ "direction": "horizontal",
1696
+ "gap": "sm",
1697
+ "align": "center",
1698
+ "children": [
1699
+ {
1700
+ "type": "icon",
1701
+ "name": "check-circle",
1702
+ "size": "lg"
1703
+ },
1704
+ {
1705
+ "type": "typography",
1706
+ "content": "AgentFixLoop",
1707
+ "variant": "h2"
1708
+ },
1709
+ {
1710
+ "type": "badge",
1711
+ "label": "Completed",
1712
+ "variant": "success"
1713
+ }
1714
+ ]
1715
+ },
1716
+ {
1717
+ "type": "divider"
1718
+ },
1719
+ {
1720
+ "type": "wizard-progress",
1721
+ "currentStep": "@entity.totalSteps",
1722
+ "steps": [
1723
+ {
1724
+ "id": "0",
1725
+ "title": "Validate"
1726
+ },
1727
+ {
1728
+ "id": "1",
1729
+ "title": "Analyze"
1730
+ },
1731
+ {
1732
+ "id": "2",
1733
+ "title": "Fix"
1734
+ },
1735
+ {
1736
+ "id": "3",
1737
+ "title": "Re-validate"
1738
+ }
1739
+ ]
1740
+ },
1741
+ {
1742
+ "type": "alert",
1743
+ "variant": "success",
1744
+ "message": "All steps completed successfully."
1473
1745
  },
1474
1746
  {
1475
1747
  "type": "button",
@@ -1481,1249 +1753,1557 @@
1481
1753
  ]
1482
1754
  }
1483
1755
  ]
1484
- }
1485
- ]
1486
- ],
1487
- "ADVANCE": [
1488
- [
1489
- "set",
1490
- "@entity.currentStep",
1491
- [
1492
- "+",
1493
- "@entity.currentStep",
1494
- 1
1495
1756
  ]
1496
- ],
1497
- [
1498
- "render-ui",
1499
- "main",
1500
- {
1501
- "type": "stack",
1502
- "direction": "vertical",
1503
- "gap": "lg",
1504
- "children": [
1757
+ },
1758
+ {
1759
+ "from": "in_progress",
1760
+ "to": "failed",
1761
+ "event": "FAIL",
1762
+ "effects": [
1763
+ [
1764
+ "set",
1765
+ "@entity.status",
1766
+ "failed"
1767
+ ],
1768
+ [
1769
+ "render-ui",
1770
+ "main",
1505
1771
  {
1506
1772
  "type": "stack",
1507
- "direction": "horizontal",
1508
- "gap": "sm",
1509
- "align": "center",
1773
+ "direction": "vertical",
1774
+ "gap": "lg",
1510
1775
  "children": [
1511
1776
  {
1512
- "type": "icon",
1513
- "name": "loader",
1514
- "size": "lg"
1777
+ "type": "stack",
1778
+ "direction": "horizontal",
1779
+ "gap": "sm",
1780
+ "align": "center",
1781
+ "children": [
1782
+ {
1783
+ "type": "icon",
1784
+ "name": "x-circle",
1785
+ "size": "lg"
1786
+ },
1787
+ {
1788
+ "type": "typography",
1789
+ "content": "AgentFixLoop",
1790
+ "variant": "h2"
1791
+ },
1792
+ {
1793
+ "type": "badge",
1794
+ "label": "Failed",
1795
+ "variant": "destructive"
1796
+ }
1797
+ ]
1515
1798
  },
1516
1799
  {
1517
- "type": "typography",
1518
- "content": "AgentFixLoop",
1519
- "variant": "h2"
1800
+ "type": "divider"
1520
1801
  },
1521
1802
  {
1522
- "type": "badge",
1523
- "label": "In Progress",
1524
- "variant": "warning"
1525
- }
1526
- ]
1527
- },
1528
- {
1529
- "type": "divider"
1530
- },
1531
- {
1532
- "type": "wizard-progress",
1533
- "currentStep": "@entity.currentStep",
1534
- "steps": [
1535
- {
1536
- "id": "0",
1537
- "title": "Validate"
1803
+ "type": "wizard-progress",
1804
+ "currentStep": "@entity.currentStep",
1805
+ "steps": [
1806
+ {
1807
+ "id": "0",
1808
+ "title": "Validate"
1809
+ },
1810
+ {
1811
+ "id": "1",
1812
+ "title": "Analyze"
1813
+ },
1814
+ {
1815
+ "id": "2",
1816
+ "title": "Fix"
1817
+ },
1818
+ {
1819
+ "id": "3",
1820
+ "title": "Re-validate"
1821
+ }
1822
+ ]
1538
1823
  },
1539
1824
  {
1540
- "id": "1",
1541
- "title": "Analyze"
1825
+ "type": "alert",
1826
+ "variant": "error",
1827
+ "message": "Pipeline failed at the current step."
1542
1828
  },
1543
1829
  {
1544
- "id": "2",
1545
- "title": "Fix"
1830
+ "type": "stack",
1831
+ "direction": "horizontal",
1832
+ "gap": "sm",
1833
+ "children": [
1834
+ {
1835
+ "type": "stat-display",
1836
+ "label": "Failed At Step",
1837
+ "value": "@entity.currentStep"
1838
+ }
1839
+ ]
1546
1840
  },
1547
1841
  {
1548
- "id": "3",
1549
- "title": "Re-validate"
1842
+ "type": "button",
1843
+ "label": "Reset",
1844
+ "event": "RESET",
1845
+ "variant": "ghost",
1846
+ "icon": "rotate-ccw"
1550
1847
  }
1551
1848
  ]
1552
- },
1849
+ }
1850
+ ]
1851
+ ]
1852
+ },
1853
+ {
1854
+ "from": "idle",
1855
+ "to": "idle",
1856
+ "event": "RESET",
1857
+ "effects": [
1858
+ [
1859
+ "set",
1860
+ "@entity.status",
1861
+ "idle"
1862
+ ],
1863
+ [
1864
+ "set",
1865
+ "@entity.currentStep",
1866
+ 0
1867
+ ],
1868
+ [
1869
+ "render-ui",
1870
+ "main",
1553
1871
  {
1554
1872
  "type": "stack",
1555
- "direction": "horizontal",
1556
- "gap": "sm",
1557
- "align": "center",
1873
+ "direction": "vertical",
1874
+ "gap": "lg",
1558
1875
  "children": [
1559
1876
  {
1560
- "type": "stat-display",
1561
- "label": "Current Step",
1562
- "value": "@entity.currentStep"
1877
+ "type": "stack",
1878
+ "direction": "horizontal",
1879
+ "gap": "sm",
1880
+ "align": "center",
1881
+ "children": [
1882
+ {
1883
+ "type": "icon",
1884
+ "name": "list-ordered",
1885
+ "size": "lg"
1886
+ },
1887
+ {
1888
+ "type": "typography",
1889
+ "content": "AgentFixLoop",
1890
+ "variant": "h2"
1891
+ },
1892
+ {
1893
+ "type": "badge",
1894
+ "label": "Idle",
1895
+ "variant": "default"
1896
+ }
1897
+ ]
1563
1898
  },
1564
1899
  {
1565
- "type": "stat-display",
1566
- "label": "Total Steps",
1567
- "value": "@entity.totalSteps"
1568
- }
1569
- ]
1570
- },
1571
- {
1572
- "type": "stack",
1573
- "direction": "horizontal",
1574
- "gap": "sm",
1575
- "children": [
1900
+ "type": "divider"
1901
+ },
1576
1902
  {
1577
- "type": "button",
1578
- "label": "Advance",
1579
- "event": "ADVANCE",
1580
- "variant": "primary",
1581
- "icon": "chevron-right"
1903
+ "type": "wizard-progress",
1904
+ "currentStep": "@entity.currentStep",
1905
+ "steps": [
1906
+ {
1907
+ "id": "0",
1908
+ "title": "Validate"
1909
+ },
1910
+ {
1911
+ "id": "1",
1912
+ "title": "Analyze"
1913
+ },
1914
+ {
1915
+ "id": "2",
1916
+ "title": "Fix"
1917
+ },
1918
+ {
1919
+ "id": "3",
1920
+ "title": "Re-validate"
1921
+ }
1922
+ ]
1582
1923
  },
1583
1924
  {
1584
1925
  "type": "button",
1585
- "label": "Reset",
1586
- "event": "RESET",
1587
- "variant": "ghost",
1588
- "icon": "rotate-ccw"
1926
+ "label": "Start",
1927
+ "event": "START",
1928
+ "variant": "primary",
1929
+ "icon": "play"
1589
1930
  }
1590
1931
  ]
1591
1932
  }
1592
1933
  ]
1593
- }
1594
- ]
1934
+ ]
1935
+ },
1936
+ {
1937
+ "from": "in_progress",
1938
+ "to": "idle",
1939
+ "event": "RESET",
1940
+ "effects": [
1941
+ [
1942
+ "set",
1943
+ "@entity.status",
1944
+ "idle"
1945
+ ],
1946
+ [
1947
+ "set",
1948
+ "@entity.currentStep",
1949
+ 0
1950
+ ],
1951
+ [
1952
+ "render-ui",
1953
+ "main",
1954
+ {
1955
+ "type": "stack",
1956
+ "direction": "vertical",
1957
+ "gap": "lg",
1958
+ "children": [
1959
+ {
1960
+ "type": "stack",
1961
+ "direction": "horizontal",
1962
+ "gap": "sm",
1963
+ "align": "center",
1964
+ "children": [
1965
+ {
1966
+ "type": "icon",
1967
+ "name": "list-ordered",
1968
+ "size": "lg"
1969
+ },
1970
+ {
1971
+ "type": "typography",
1972
+ "content": "AgentFixLoop",
1973
+ "variant": "h2"
1974
+ },
1975
+ {
1976
+ "type": "badge",
1977
+ "label": "Idle",
1978
+ "variant": "default"
1979
+ }
1980
+ ]
1981
+ },
1982
+ {
1983
+ "type": "divider"
1984
+ },
1985
+ {
1986
+ "type": "wizard-progress",
1987
+ "currentStep": "@entity.currentStep",
1988
+ "steps": [
1989
+ {
1990
+ "id": "0",
1991
+ "title": "Validate"
1992
+ },
1993
+ {
1994
+ "id": "1",
1995
+ "title": "Analyze"
1996
+ },
1997
+ {
1998
+ "id": "2",
1999
+ "title": "Fix"
2000
+ },
2001
+ {
2002
+ "id": "3",
2003
+ "title": "Re-validate"
2004
+ }
2005
+ ]
2006
+ },
2007
+ {
2008
+ "type": "button",
2009
+ "label": "Start",
2010
+ "event": "START",
2011
+ "variant": "primary",
2012
+ "icon": "play"
2013
+ }
2014
+ ]
2015
+ }
2016
+ ]
2017
+ ]
2018
+ },
2019
+ {
2020
+ "from": "completed",
2021
+ "to": "idle",
2022
+ "event": "RESET",
2023
+ "effects": [
2024
+ [
2025
+ "set",
2026
+ "@entity.status",
2027
+ "idle"
2028
+ ],
2029
+ [
2030
+ "set",
2031
+ "@entity.currentStep",
2032
+ 0
2033
+ ],
2034
+ [
2035
+ "render-ui",
2036
+ "main",
2037
+ {
2038
+ "type": "stack",
2039
+ "direction": "vertical",
2040
+ "gap": "lg",
2041
+ "children": [
2042
+ {
2043
+ "type": "stack",
2044
+ "direction": "horizontal",
2045
+ "gap": "sm",
2046
+ "align": "center",
2047
+ "children": [
2048
+ {
2049
+ "type": "icon",
2050
+ "name": "list-ordered",
2051
+ "size": "lg"
2052
+ },
2053
+ {
2054
+ "type": "typography",
2055
+ "content": "AgentFixLoop",
2056
+ "variant": "h2"
2057
+ },
2058
+ {
2059
+ "type": "badge",
2060
+ "label": "Idle",
2061
+ "variant": "default"
2062
+ }
2063
+ ]
2064
+ },
2065
+ {
2066
+ "type": "divider"
2067
+ },
2068
+ {
2069
+ "type": "wizard-progress",
2070
+ "currentStep": "@entity.currentStep",
2071
+ "steps": [
2072
+ {
2073
+ "id": "0",
2074
+ "title": "Validate"
2075
+ },
2076
+ {
2077
+ "id": "1",
2078
+ "title": "Analyze"
2079
+ },
2080
+ {
2081
+ "id": "2",
2082
+ "title": "Fix"
2083
+ },
2084
+ {
2085
+ "id": "3",
2086
+ "title": "Re-validate"
2087
+ }
2088
+ ]
2089
+ },
2090
+ {
2091
+ "type": "button",
2092
+ "label": "Start",
2093
+ "event": "START",
2094
+ "variant": "primary",
2095
+ "icon": "play"
2096
+ }
2097
+ ]
2098
+ }
2099
+ ]
2100
+ ]
2101
+ },
2102
+ {
2103
+ "from": "failed",
2104
+ "to": "idle",
2105
+ "event": "RESET",
2106
+ "effects": [
2107
+ [
2108
+ "set",
2109
+ "@entity.status",
2110
+ "idle"
2111
+ ],
2112
+ [
2113
+ "set",
2114
+ "@entity.currentStep",
2115
+ 0
2116
+ ],
2117
+ [
2118
+ "render-ui",
2119
+ "main",
2120
+ {
2121
+ "type": "stack",
2122
+ "direction": "vertical",
2123
+ "gap": "lg",
2124
+ "children": [
2125
+ {
2126
+ "type": "stack",
2127
+ "direction": "horizontal",
2128
+ "gap": "sm",
2129
+ "align": "center",
2130
+ "children": [
2131
+ {
2132
+ "type": "icon",
2133
+ "name": "list-ordered",
2134
+ "size": "lg"
2135
+ },
2136
+ {
2137
+ "type": "typography",
2138
+ "content": "AgentFixLoop",
2139
+ "variant": "h2"
2140
+ },
2141
+ {
2142
+ "type": "badge",
2143
+ "label": "Idle",
2144
+ "variant": "default"
2145
+ }
2146
+ ]
2147
+ },
2148
+ {
2149
+ "type": "divider"
2150
+ },
2151
+ {
2152
+ "type": "wizard-progress",
2153
+ "currentStep": "@entity.currentStep",
2154
+ "steps": [
2155
+ {
2156
+ "id": "0",
2157
+ "title": "Validate"
2158
+ },
2159
+ {
2160
+ "id": "1",
2161
+ "title": "Analyze"
2162
+ },
2163
+ {
2164
+ "id": "2",
2165
+ "title": "Fix"
2166
+ },
2167
+ {
2168
+ "id": "3",
2169
+ "title": "Re-validate"
2170
+ }
2171
+ ]
2172
+ },
2173
+ {
2174
+ "type": "button",
2175
+ "label": "Start",
2176
+ "event": "START",
2177
+ "variant": "primary",
2178
+ "icon": "play"
2179
+ }
2180
+ ]
2181
+ }
2182
+ ]
2183
+ ]
2184
+ }
2185
+ ]
2186
+ }
2187
+ },
2188
+ {
2189
+ "name": "FixLoopErrorsBrowse",
2190
+ "linkedEntity": "AgentFixLoop",
2191
+ "category": "interaction",
2192
+ "stateMachine": {
2193
+ "states": [
2194
+ {
2195
+ "name": "browsing",
2196
+ "isInitial": true
2197
+ }
2198
+ ],
2199
+ "events": [
2200
+ {
2201
+ "key": "INIT",
2202
+ "name": "Initialize"
2203
+ },
2204
+ {
2205
+ "key": "VIEW",
2206
+ "name": "VIEW",
2207
+ "payload": [
2208
+ {
2209
+ "name": "id",
2210
+ "type": "string",
2211
+ "required": true
2212
+ },
2213
+ {
2214
+ "name": "row",
2215
+ "type": "object"
2216
+ }
2217
+ ]
2218
+ }
2219
+ ],
2220
+ "transitions": [
2221
+ {
2222
+ "from": "browsing",
2223
+ "to": "browsing",
2224
+ "event": "INIT",
2225
+ "effects": [
2226
+ [
2227
+ "ref",
2228
+ "AgentFixLoop"
2229
+ ],
2230
+ [
2231
+ "render-ui",
2232
+ "main",
2233
+ {
2234
+ "type": "stack",
2235
+ "direction": "vertical",
2236
+ "gap": "lg",
2237
+ "className": "max-w-5xl mx-auto w-full",
2238
+ "children": [
2239
+ {
2240
+ "type": "stack",
2241
+ "direction": "horizontal",
2242
+ "gap": "md",
2243
+ "justify": "space-between",
2244
+ "align": "center",
2245
+ "children": [
2246
+ {
2247
+ "type": "stack",
2248
+ "direction": "horizontal",
2249
+ "gap": "sm",
2250
+ "align": "center",
2251
+ "children": [
2252
+ {
2253
+ "type": "icon",
2254
+ "name": "alert-triangle",
2255
+ "size": "lg"
2256
+ },
2257
+ {
2258
+ "type": "typography",
2259
+ "content": "Validation Errors",
2260
+ "variant": "h2"
2261
+ }
2262
+ ]
2263
+ }
2264
+ ]
2265
+ },
2266
+ {
2267
+ "type": "divider"
2268
+ },
2269
+ {
2270
+ "type": "data-grid",
2271
+ "entity": "AgentFixLoop",
2272
+ "emptyIcon": "inbox",
2273
+ "emptyTitle": "No errors",
2274
+ "emptyDescription": "All validations passed.",
2275
+ "itemActions": [
2276
+ {
2277
+ "label": "View",
2278
+ "event": "VIEW",
2279
+ "variant": "ghost",
2280
+ "size": "sm"
2281
+ }
2282
+ ],
2283
+ "columns": [
2284
+ {
2285
+ "name": "target",
2286
+ "label": "Target",
2287
+ "variant": "h4",
2288
+ "icon": "alert-triangle"
2289
+ },
2290
+ {
2291
+ "name": "errorCount",
2292
+ "label": "Error Count",
2293
+ "variant": "badge",
2294
+ "colorMap": {
2295
+ "active": "success",
2296
+ "completed": "success",
2297
+ "done": "success",
2298
+ "pending": "warning",
2299
+ "draft": "warning",
2300
+ "scheduled": "warning",
2301
+ "inactive": "neutral",
2302
+ "archived": "neutral",
2303
+ "disabled": "neutral",
2304
+ "error": "destructive",
2305
+ "cancelled": "destructive",
2306
+ "failed": "destructive"
2307
+ }
2308
+ },
2309
+ {
2310
+ "name": "status",
2311
+ "label": "Status",
2312
+ "variant": "caption"
2313
+ }
2314
+ ]
2315
+ },
2316
+ {
2317
+ "type": "floating-action-button",
2318
+ "icon": "plus",
2319
+ "event": "INIT",
2320
+ "label": "Create",
2321
+ "tooltip": "Create"
2322
+ }
2323
+ ]
2324
+ }
2325
+ ]
2326
+ ]
2327
+ }
2328
+ ]
2329
+ }
2330
+ },
2331
+ {
2332
+ "name": "FixLoopValidateCall",
2333
+ "linkedEntity": "AgentFixLoop",
2334
+ "category": "interaction",
2335
+ "emits": [
2336
+ {
2337
+ "event": "SAVE",
2338
+ "scope": "internal"
2339
+ },
2340
+ {
2341
+ "event": "INVOKED",
2342
+ "scope": "internal"
2343
+ }
2344
+ ],
2345
+ "stateMachine": {
2346
+ "states": [
2347
+ {
2348
+ "name": "closed",
2349
+ "isInitial": true
2350
+ },
2351
+ {
2352
+ "name": "open"
2353
+ }
2354
+ ],
2355
+ "events": [
2356
+ {
2357
+ "key": "INIT",
2358
+ "name": "Initialize"
2359
+ },
2360
+ {
2361
+ "key": "INVOKE",
2362
+ "name": "Open"
2363
+ },
2364
+ {
2365
+ "key": "CLOSE",
2366
+ "name": "Close"
2367
+ },
2368
+ {
2369
+ "key": "SAVE",
2370
+ "name": "Save",
2371
+ "payload": [
2372
+ {
2373
+ "name": "data",
2374
+ "type": "object",
2375
+ "required": true
2376
+ }
2377
+ ]
2378
+ }
1595
2379
  ],
1596
- "COMPLETE": [
1597
- [
1598
- "set",
1599
- "@entity.status",
1600
- "completed"
1601
- ],
1602
- [
1603
- "set",
1604
- "@entity.currentStep",
1605
- "@entity.totalSteps"
1606
- ],
1607
- [
1608
- "render-ui",
1609
- "main",
1610
- {
1611
- "type": "stack",
1612
- "direction": "vertical",
1613
- "gap": "lg",
1614
- "children": [
2380
+ "transitions": [
2381
+ {
2382
+ "from": "closed",
2383
+ "to": "closed",
2384
+ "event": "INIT",
2385
+ "effects": [
2386
+ [
2387
+ "ref",
2388
+ "AgentFixLoop"
2389
+ ],
2390
+ [
2391
+ "render-ui",
2392
+ "main",
1615
2393
  {
1616
2394
  "type": "stack",
1617
- "direction": "horizontal",
1618
- "gap": "sm",
1619
- "align": "center",
2395
+ "direction": "vertical",
2396
+ "gap": "lg",
1620
2397
  "children": [
1621
2398
  {
1622
- "type": "icon",
1623
- "name": "check-circle",
1624
- "size": "lg"
1625
- },
1626
- {
1627
- "type": "typography",
1628
- "content": "AgentFixLoop",
1629
- "variant": "h2"
1630
- },
1631
- {
1632
- "type": "badge",
1633
- "label": "Completed",
1634
- "variant": "success"
1635
- }
1636
- ]
1637
- },
1638
- {
1639
- "type": "divider"
1640
- },
1641
- {
1642
- "type": "wizard-progress",
1643
- "currentStep": "@entity.totalSteps",
1644
- "steps": [
1645
- {
1646
- "id": "0",
1647
- "title": "Validate"
1648
- },
1649
- {
1650
- "id": "1",
1651
- "title": "Analyze"
2399
+ "type": "stack",
2400
+ "direction": "horizontal",
2401
+ "gap": "md",
2402
+ "justify": "space-between",
2403
+ "children": [
2404
+ {
2405
+ "type": "stack",
2406
+ "direction": "horizontal",
2407
+ "gap": "md",
2408
+ "children": [
2409
+ {
2410
+ "type": "icon",
2411
+ "name": "wrench",
2412
+ "size": "lg"
2413
+ },
2414
+ {
2415
+ "type": "typography",
2416
+ "content": "Invoke Tool",
2417
+ "variant": "h2"
2418
+ }
2419
+ ]
2420
+ },
2421
+ {
2422
+ "type": "button",
2423
+ "label": "Open",
2424
+ "event": "INVOKE",
2425
+ "variant": "primary",
2426
+ "icon": "wrench"
2427
+ }
2428
+ ]
1652
2429
  },
1653
2430
  {
1654
- "id": "2",
1655
- "title": "Fix"
2431
+ "type": "divider"
1656
2432
  },
1657
2433
  {
1658
- "id": "3",
1659
- "title": "Re-validate"
2434
+ "type": "empty-state",
2435
+ "icon": "wrench",
2436
+ "title": "Nothing open",
2437
+ "description": "Click Open to view details in a modal overlay."
1660
2438
  }
1661
2439
  ]
1662
- },
1663
- {
1664
- "type": "alert",
1665
- "variant": "success",
1666
- "message": "All steps completed successfully."
1667
- },
1668
- {
1669
- "type": "button",
1670
- "label": "Reset",
1671
- "event": "RESET",
1672
- "variant": "ghost",
1673
- "icon": "rotate-ccw"
1674
2440
  }
1675
2441
  ]
1676
- }
1677
- ]
1678
- ],
1679
- "FAIL": [
1680
- [
1681
- "set",
1682
- "@entity.status",
1683
- "failed"
1684
- ],
1685
- [
1686
- "render-ui",
1687
- "main",
1688
- {
1689
- "type": "stack",
1690
- "direction": "vertical",
1691
- "gap": "lg",
1692
- "children": [
2442
+ ]
2443
+ },
2444
+ {
2445
+ "from": "closed",
2446
+ "to": "open",
2447
+ "event": "INVOKE",
2448
+ "effects": [
2449
+ [
2450
+ "render-ui",
2451
+ "modal",
1693
2452
  {
1694
2453
  "type": "stack",
1695
- "direction": "horizontal",
1696
- "gap": "sm",
1697
- "align": "center",
2454
+ "direction": "vertical",
2455
+ "gap": "md",
1698
2456
  "children": [
1699
2457
  {
1700
- "type": "icon",
1701
- "name": "x-circle",
1702
- "size": "lg"
1703
- },
1704
- {
1705
- "type": "typography",
1706
- "content": "AgentFixLoop",
1707
- "variant": "h2"
1708
- },
1709
- {
1710
- "type": "badge",
1711
- "label": "Failed",
1712
- "variant": "destructive"
1713
- }
1714
- ]
1715
- },
1716
- {
1717
- "type": "divider"
1718
- },
1719
- {
1720
- "type": "wizard-progress",
1721
- "currentStep": "@entity.currentStep",
1722
- "steps": [
1723
- {
1724
- "id": "0",
1725
- "title": "Validate"
1726
- },
1727
- {
1728
- "id": "1",
1729
- "title": "Analyze"
2458
+ "type": "stack",
2459
+ "direction": "horizontal",
2460
+ "gap": "sm",
2461
+ "children": [
2462
+ {
2463
+ "type": "icon",
2464
+ "name": "wrench",
2465
+ "size": "md"
2466
+ },
2467
+ {
2468
+ "type": "typography",
2469
+ "content": "Invoke Tool",
2470
+ "variant": "h3"
2471
+ }
2472
+ ]
1730
2473
  },
1731
2474
  {
1732
- "id": "2",
1733
- "title": "Fix"
2475
+ "type": "divider"
1734
2476
  },
1735
2477
  {
1736
- "id": "3",
1737
- "title": "Re-validate"
1738
- }
1739
- ]
1740
- },
1741
- {
1742
- "type": "alert",
1743
- "variant": "error",
1744
- "message": "Pipeline failed at the current step."
1745
- },
1746
- {
1747
- "type": "stack",
1748
- "direction": "horizontal",
1749
- "gap": "sm",
1750
- "children": [
1751
- {
1752
- "type": "stat-display",
1753
- "label": "Failed At Step",
1754
- "value": "@entity.currentStep"
2478
+ "type": "form-section",
2479
+ "entity": "AgentFixLoop",
2480
+ "mode": "create",
2481
+ "submitEvent": "SAVE",
2482
+ "cancelEvent": "CLOSE",
2483
+ "fields": [
2484
+ "toolName",
2485
+ "args"
2486
+ ]
1755
2487
  }
1756
2488
  ]
1757
- },
1758
- {
1759
- "type": "button",
1760
- "label": "Reset",
1761
- "event": "RESET",
1762
- "variant": "ghost",
1763
- "icon": "rotate-ccw"
1764
2489
  }
1765
2490
  ]
1766
- }
1767
- ]
1768
- ],
1769
- "RESET": [
1770
- [
1771
- "set",
1772
- "@entity.status",
1773
- "idle"
1774
- ],
1775
- [
1776
- "set",
1777
- "@entity.currentStep",
1778
- 0
1779
- ],
1780
- [
1781
- "render-ui",
1782
- "main",
1783
- {
1784
- "type": "stack",
1785
- "direction": "vertical",
1786
- "gap": "lg",
1787
- "children": [
2491
+ ]
2492
+ },
2493
+ {
2494
+ "from": "open",
2495
+ "to": "closed",
2496
+ "event": "CLOSE",
2497
+ "effects": [
2498
+ [
2499
+ "render-ui",
2500
+ "modal",
2501
+ null
2502
+ ],
2503
+ [
2504
+ "notify",
2505
+ "Cancelled",
2506
+ "info"
2507
+ ],
2508
+ [
2509
+ "ref",
2510
+ "AgentFixLoop"
2511
+ ],
2512
+ [
2513
+ "render-ui",
2514
+ "main",
1788
2515
  {
1789
2516
  "type": "stack",
1790
- "direction": "horizontal",
1791
- "gap": "sm",
1792
- "align": "center",
2517
+ "direction": "vertical",
2518
+ "gap": "lg",
1793
2519
  "children": [
1794
2520
  {
1795
- "type": "icon",
1796
- "name": "list-ordered",
1797
- "size": "lg"
1798
- },
1799
- {
1800
- "type": "typography",
1801
- "content": "AgentFixLoop",
1802
- "variant": "h2"
1803
- },
1804
- {
1805
- "type": "badge",
1806
- "label": "Idle",
1807
- "variant": "default"
1808
- }
1809
- ]
1810
- },
1811
- {
1812
- "type": "divider"
1813
- },
1814
- {
1815
- "type": "wizard-progress",
1816
- "currentStep": "@entity.currentStep",
1817
- "steps": [
1818
- {
1819
- "id": "0",
1820
- "title": "Validate"
1821
- },
1822
- {
1823
- "id": "1",
1824
- "title": "Analyze"
2521
+ "type": "stack",
2522
+ "direction": "horizontal",
2523
+ "gap": "md",
2524
+ "justify": "space-between",
2525
+ "children": [
2526
+ {
2527
+ "type": "stack",
2528
+ "direction": "horizontal",
2529
+ "gap": "md",
2530
+ "children": [
2531
+ {
2532
+ "type": "icon",
2533
+ "name": "wrench",
2534
+ "size": "lg"
2535
+ },
2536
+ {
2537
+ "type": "typography",
2538
+ "content": "Invoke Tool",
2539
+ "variant": "h2"
2540
+ }
2541
+ ]
2542
+ },
2543
+ {
2544
+ "type": "button",
2545
+ "label": "Open",
2546
+ "event": "INVOKE",
2547
+ "variant": "primary",
2548
+ "icon": "wrench"
2549
+ }
2550
+ ]
1825
2551
  },
1826
2552
  {
1827
- "id": "2",
1828
- "title": "Fix"
2553
+ "type": "divider"
1829
2554
  },
1830
2555
  {
1831
- "id": "3",
1832
- "title": "Re-validate"
2556
+ "type": "empty-state",
2557
+ "icon": "wrench",
2558
+ "title": "Nothing open",
2559
+ "description": "Click Open to view details in a modal overlay."
1833
2560
  }
1834
2561
  ]
1835
- },
1836
- {
1837
- "type": "button",
1838
- "label": "Start",
1839
- "event": "START",
1840
- "variant": "primary",
1841
- "icon": "play"
1842
2562
  }
1843
2563
  ]
1844
- }
1845
- ]
1846
- ]
1847
- }
1848
- },
1849
- {
1850
- "ref": "Browse.traits.BrowseItemBrowse",
1851
- "name": "FixLoopErrorsBrowse",
1852
- "linkedEntity": "AgentFixLoop",
1853
- "effects": {
1854
- "INIT": [
1855
- [
1856
- "ref",
1857
- "AgentFixLoop"
1858
- ],
1859
- [
1860
- "render-ui",
1861
- "main",
1862
- {
1863
- "type": "stack",
1864
- "direction": "vertical",
1865
- "gap": "lg",
1866
- "className": "max-w-5xl mx-auto w-full",
1867
- "children": [
2564
+ ]
2565
+ },
2566
+ {
2567
+ "from": "open",
2568
+ "to": "closed",
2569
+ "event": "SAVE",
2570
+ "effects": [
2571
+ [
2572
+ "persist",
2573
+ "create",
2574
+ "AgentFixLoop",
2575
+ "@payload.data"
2576
+ ],
2577
+ [
2578
+ "render-ui",
2579
+ "modal",
2580
+ null
2581
+ ],
2582
+ [
2583
+ "emit",
2584
+ "INVOKED"
2585
+ ],
2586
+ [
2587
+ "ref",
2588
+ "AgentFixLoop"
2589
+ ],
2590
+ [
2591
+ "render-ui",
2592
+ "main",
1868
2593
  {
1869
2594
  "type": "stack",
1870
- "direction": "horizontal",
1871
- "gap": "md",
1872
- "justify": "space-between",
1873
- "align": "center",
2595
+ "direction": "vertical",
2596
+ "gap": "lg",
1874
2597
  "children": [
1875
2598
  {
1876
2599
  "type": "stack",
1877
2600
  "direction": "horizontal",
1878
- "gap": "sm",
1879
- "align": "center",
2601
+ "gap": "md",
2602
+ "justify": "space-between",
1880
2603
  "children": [
1881
2604
  {
1882
- "type": "icon",
1883
- "name": "alert-triangle",
1884
- "size": "lg"
2605
+ "type": "stack",
2606
+ "direction": "horizontal",
2607
+ "gap": "md",
2608
+ "children": [
2609
+ {
2610
+ "type": "icon",
2611
+ "name": "wrench",
2612
+ "size": "lg"
2613
+ },
2614
+ {
2615
+ "type": "typography",
2616
+ "content": "Invoke Tool",
2617
+ "variant": "h2"
2618
+ }
2619
+ ]
1885
2620
  },
1886
2621
  {
1887
- "type": "typography",
1888
- "content": "Validation Errors",
1889
- "variant": "h2"
2622
+ "type": "button",
2623
+ "label": "Open",
2624
+ "event": "INVOKE",
2625
+ "variant": "primary",
2626
+ "icon": "wrench"
1890
2627
  }
1891
2628
  ]
2629
+ },
2630
+ {
2631
+ "type": "divider"
2632
+ },
2633
+ {
2634
+ "type": "empty-state",
2635
+ "icon": "wrench",
2636
+ "title": "Nothing open",
2637
+ "description": "Click Open to view details in a modal overlay."
1892
2638
  }
1893
2639
  ]
1894
- },
1895
- {
1896
- "type": "divider"
1897
- },
1898
- {
1899
- "type": "data-grid",
1900
- "entity": "AgentFixLoop",
1901
- "emptyIcon": "inbox",
1902
- "emptyTitle": "No errors",
1903
- "emptyDescription": "All validations passed.",
1904
- "itemActions": [
1905
- {
1906
- "label": "View",
1907
- "event": "VIEW",
1908
- "variant": "ghost",
1909
- "size": "sm"
1910
- }
1911
- ],
1912
- "columns": [
1913
- {
1914
- "name": "target",
1915
- "label": "Target",
1916
- "variant": "h4",
1917
- "icon": "alert-triangle"
1918
- },
1919
- {
1920
- "name": "errorCount",
1921
- "label": "Error Count",
1922
- "variant": "badge",
1923
- "colorMap": {
1924
- "active": "success",
1925
- "completed": "success",
1926
- "done": "success",
1927
- "pending": "warning",
1928
- "draft": "warning",
1929
- "scheduled": "warning",
1930
- "inactive": "neutral",
1931
- "archived": "neutral",
1932
- "disabled": "neutral",
1933
- "error": "destructive",
1934
- "cancelled": "destructive",
1935
- "failed": "destructive"
1936
- }
1937
- },
1938
- {
1939
- "name": "status",
1940
- "label": "Status",
1941
- "variant": "caption"
1942
- }
1943
- ]
1944
- },
1945
- {
1946
- "type": "floating-action-button",
1947
- "icon": "plus",
1948
- "event": "INIT",
1949
- "label": "Create",
1950
- "tooltip": "Create"
1951
2640
  }
2641
+ ],
2642
+ [
2643
+ "notify",
2644
+ "AgentFixLoop created successfully"
1952
2645
  ]
1953
- }
1954
- ]
2646
+ ]
2647
+ }
1955
2648
  ]
1956
- }
2649
+ },
2650
+ "listens": []
1957
2651
  },
1958
2652
  {
1959
- "ref": "AgentToolCall.traits.AgentToolCallModal",
1960
- "name": "FixLoopValidateCall",
2653
+ "name": "FixLoopFixCall",
1961
2654
  "linkedEntity": "AgentFixLoop",
1962
- "listens": [],
1963
- "emitsScope": "internal",
1964
- "effects": {
1965
- "INIT": [
1966
- [
1967
- "ref",
1968
- "AgentFixLoop"
1969
- ],
1970
- [
1971
- "render-ui",
1972
- "main",
1973
- {
1974
- "type": "stack",
1975
- "direction": "vertical",
1976
- "gap": "lg",
1977
- "children": [
2655
+ "category": "interaction",
2656
+ "emits": [
2657
+ {
2658
+ "event": "SAVE",
2659
+ "scope": "internal"
2660
+ },
2661
+ {
2662
+ "event": "INVOKED",
2663
+ "scope": "internal"
2664
+ }
2665
+ ],
2666
+ "stateMachine": {
2667
+ "states": [
2668
+ {
2669
+ "name": "closed",
2670
+ "isInitial": true
2671
+ },
2672
+ {
2673
+ "name": "open"
2674
+ }
2675
+ ],
2676
+ "events": [
2677
+ {
2678
+ "key": "INIT",
2679
+ "name": "Initialize"
2680
+ },
2681
+ {
2682
+ "key": "INVOKE",
2683
+ "name": "Open"
2684
+ },
2685
+ {
2686
+ "key": "CLOSE",
2687
+ "name": "Close"
2688
+ },
2689
+ {
2690
+ "key": "SAVE",
2691
+ "name": "Save",
2692
+ "payload": [
2693
+ {
2694
+ "name": "data",
2695
+ "type": "object",
2696
+ "required": true
2697
+ }
2698
+ ]
2699
+ }
2700
+ ],
2701
+ "transitions": [
2702
+ {
2703
+ "from": "closed",
2704
+ "to": "closed",
2705
+ "event": "INIT",
2706
+ "effects": [
2707
+ [
2708
+ "ref",
2709
+ "AgentFixLoop"
2710
+ ],
2711
+ [
2712
+ "render-ui",
2713
+ "main",
1978
2714
  {
1979
2715
  "type": "stack",
1980
- "direction": "horizontal",
1981
- "gap": "md",
1982
- "justify": "space-between",
2716
+ "direction": "vertical",
2717
+ "gap": "lg",
1983
2718
  "children": [
1984
2719
  {
1985
2720
  "type": "stack",
1986
2721
  "direction": "horizontal",
1987
2722
  "gap": "md",
2723
+ "justify": "space-between",
1988
2724
  "children": [
1989
2725
  {
1990
- "type": "icon",
1991
- "name": "wrench",
1992
- "size": "lg"
2726
+ "type": "stack",
2727
+ "direction": "horizontal",
2728
+ "gap": "md",
2729
+ "children": [
2730
+ {
2731
+ "type": "icon",
2732
+ "name": "wrench",
2733
+ "size": "lg"
2734
+ },
2735
+ {
2736
+ "type": "typography",
2737
+ "content": "Invoke Tool",
2738
+ "variant": "h2"
2739
+ }
2740
+ ]
1993
2741
  },
1994
2742
  {
1995
- "type": "typography",
1996
- "content": "Invoke Tool",
1997
- "variant": "h2"
2743
+ "type": "button",
2744
+ "label": "Open",
2745
+ "event": "INVOKE",
2746
+ "variant": "primary",
2747
+ "icon": "wrench"
1998
2748
  }
1999
2749
  ]
2000
2750
  },
2001
2751
  {
2002
- "type": "button",
2003
- "label": "Open",
2004
- "event": "INVOKE",
2005
- "variant": "primary",
2006
- "icon": "wrench"
2007
- }
2008
- ]
2009
- },
2010
- {
2011
- "type": "divider"
2012
- },
2013
- {
2014
- "type": "empty-state",
2015
- "icon": "wrench",
2016
- "title": "Nothing open",
2017
- "description": "Click Open to view details in a modal overlay."
2018
- }
2019
- ]
2020
- }
2021
- ]
2022
- ],
2023
- "INVOKE": [
2024
- [
2025
- "render-ui",
2026
- "modal",
2027
- {
2028
- "type": "stack",
2029
- "direction": "vertical",
2030
- "gap": "md",
2031
- "children": [
2032
- {
2033
- "type": "stack",
2034
- "direction": "horizontal",
2035
- "gap": "sm",
2036
- "children": [
2037
- {
2038
- "type": "icon",
2039
- "name": "wrench",
2040
- "size": "md"
2752
+ "type": "divider"
2041
2753
  },
2042
2754
  {
2043
- "type": "typography",
2044
- "content": "Invoke Tool",
2045
- "variant": "h3"
2755
+ "type": "empty-state",
2756
+ "icon": "wrench",
2757
+ "title": "Nothing open",
2758
+ "description": "Click Open to view details in a modal overlay."
2046
2759
  }
2047
2760
  ]
2048
- },
2049
- {
2050
- "type": "divider"
2051
- },
2052
- {
2053
- "type": "form-section",
2054
- "entity": "AgentFixLoop",
2055
- "mode": "create",
2056
- "submitEvent": "SAVE",
2057
- "cancelEvent": "CLOSE",
2058
- "fields": [
2059
- "toolName",
2060
- "args"
2061
- ]
2062
2761
  }
2063
2762
  ]
2064
- }
2065
- ]
2066
- ],
2067
- "CLOSE": [
2068
- [
2069
- "render-ui",
2070
- "modal",
2071
- null
2072
- ],
2073
- [
2074
- "notify",
2075
- "Cancelled",
2076
- "info"
2077
- ],
2078
- [
2079
- "ref",
2080
- "AgentFixLoop"
2081
- ],
2082
- [
2083
- "render-ui",
2084
- "main",
2085
- {
2086
- "type": "stack",
2087
- "direction": "vertical",
2088
- "gap": "lg",
2089
- "children": [
2763
+ ]
2764
+ },
2765
+ {
2766
+ "from": "closed",
2767
+ "to": "open",
2768
+ "event": "INVOKE",
2769
+ "effects": [
2770
+ [
2771
+ "render-ui",
2772
+ "modal",
2090
2773
  {
2091
2774
  "type": "stack",
2092
- "direction": "horizontal",
2775
+ "direction": "vertical",
2093
2776
  "gap": "md",
2094
- "justify": "space-between",
2095
2777
  "children": [
2096
2778
  {
2097
2779
  "type": "stack",
2098
2780
  "direction": "horizontal",
2099
- "gap": "md",
2781
+ "gap": "sm",
2100
2782
  "children": [
2101
2783
  {
2102
2784
  "type": "icon",
2103
2785
  "name": "wrench",
2104
- "size": "lg"
2786
+ "size": "md"
2105
2787
  },
2106
2788
  {
2107
2789
  "type": "typography",
2108
2790
  "content": "Invoke Tool",
2109
- "variant": "h2"
2791
+ "variant": "h3"
2110
2792
  }
2111
2793
  ]
2112
2794
  },
2113
2795
  {
2114
- "type": "button",
2115
- "label": "Open",
2116
- "event": "INVOKE",
2117
- "variant": "primary",
2118
- "icon": "wrench"
2796
+ "type": "divider"
2797
+ },
2798
+ {
2799
+ "type": "form-section",
2800
+ "entity": "AgentFixLoop",
2801
+ "mode": "create",
2802
+ "submitEvent": "SAVE",
2803
+ "cancelEvent": "CLOSE",
2804
+ "fields": [
2805
+ "toolName",
2806
+ "args"
2807
+ ]
2119
2808
  }
2120
2809
  ]
2121
- },
2122
- {
2123
- "type": "divider"
2124
- },
2125
- {
2126
- "type": "empty-state",
2127
- "icon": "wrench",
2128
- "title": "Nothing open",
2129
- "description": "Click Open to view details in a modal overlay."
2130
2810
  }
2131
2811
  ]
2132
- }
2133
- ]
2134
- ],
2135
- "SAVE": [
2136
- [
2137
- "persist",
2138
- "create",
2139
- "AgentFixLoop",
2140
- "@payload.data"
2141
- ],
2142
- [
2143
- "render-ui",
2144
- "modal",
2145
- null
2146
- ],
2147
- [
2148
- "emit",
2149
- "INVOKED"
2150
- ],
2151
- [
2152
- "ref",
2153
- "AgentFixLoop"
2154
- ],
2155
- [
2156
- "render-ui",
2157
- "main",
2158
- {
2159
- "type": "stack",
2160
- "direction": "vertical",
2161
- "gap": "lg",
2162
- "children": [
2812
+ ]
2813
+ },
2814
+ {
2815
+ "from": "open",
2816
+ "to": "closed",
2817
+ "event": "CLOSE",
2818
+ "effects": [
2819
+ [
2820
+ "render-ui",
2821
+ "modal",
2822
+ null
2823
+ ],
2824
+ [
2825
+ "notify",
2826
+ "Cancelled",
2827
+ "info"
2828
+ ],
2829
+ [
2830
+ "ref",
2831
+ "AgentFixLoop"
2832
+ ],
2833
+ [
2834
+ "render-ui",
2835
+ "main",
2163
2836
  {
2164
2837
  "type": "stack",
2165
- "direction": "horizontal",
2166
- "gap": "md",
2167
- "justify": "space-between",
2838
+ "direction": "vertical",
2839
+ "gap": "lg",
2168
2840
  "children": [
2169
2841
  {
2170
2842
  "type": "stack",
2171
2843
  "direction": "horizontal",
2172
2844
  "gap": "md",
2845
+ "justify": "space-between",
2173
2846
  "children": [
2174
2847
  {
2175
- "type": "icon",
2176
- "name": "wrench",
2177
- "size": "lg"
2848
+ "type": "stack",
2849
+ "direction": "horizontal",
2850
+ "gap": "md",
2851
+ "children": [
2852
+ {
2853
+ "type": "icon",
2854
+ "name": "wrench",
2855
+ "size": "lg"
2856
+ },
2857
+ {
2858
+ "type": "typography",
2859
+ "content": "Invoke Tool",
2860
+ "variant": "h2"
2861
+ }
2862
+ ]
2178
2863
  },
2179
2864
  {
2180
- "type": "typography",
2181
- "content": "Invoke Tool",
2182
- "variant": "h2"
2865
+ "type": "button",
2866
+ "label": "Open",
2867
+ "event": "INVOKE",
2868
+ "variant": "primary",
2869
+ "icon": "wrench"
2183
2870
  }
2184
2871
  ]
2185
2872
  },
2186
2873
  {
2187
- "type": "button",
2188
- "label": "Open",
2189
- "event": "INVOKE",
2190
- "variant": "primary",
2191
- "icon": "wrench"
2874
+ "type": "divider"
2875
+ },
2876
+ {
2877
+ "type": "empty-state",
2878
+ "icon": "wrench",
2879
+ "title": "Nothing open",
2880
+ "description": "Click Open to view details in a modal overlay."
2192
2881
  }
2193
2882
  ]
2194
- },
2195
- {
2196
- "type": "divider"
2197
- },
2198
- {
2199
- "type": "empty-state",
2200
- "icon": "wrench",
2201
- "title": "Nothing open",
2202
- "description": "Click Open to view details in a modal overlay."
2203
2883
  }
2204
2884
  ]
2205
- }
2206
- ]
2207
- ]
2208
- }
2209
- },
2210
- {
2211
- "ref": "AgentToolCall.traits.AgentToolCallModal",
2212
- "name": "FixLoopFixCall",
2213
- "linkedEntity": "AgentFixLoop",
2214
- "listens": [],
2215
- "emitsScope": "internal",
2216
- "effects": {
2217
- "INIT": [
2218
- [
2219
- "ref",
2220
- "AgentFixLoop"
2221
- ],
2222
- [
2223
- "render-ui",
2224
- "main",
2225
- {
2226
- "type": "stack",
2227
- "direction": "vertical",
2228
- "gap": "lg",
2229
- "children": [
2885
+ ]
2886
+ },
2887
+ {
2888
+ "from": "open",
2889
+ "to": "closed",
2890
+ "event": "SAVE",
2891
+ "effects": [
2892
+ [
2893
+ "persist",
2894
+ "create",
2895
+ "AgentFixLoop",
2896
+ "@payload.data"
2897
+ ],
2898
+ [
2899
+ "render-ui",
2900
+ "modal",
2901
+ null
2902
+ ],
2903
+ [
2904
+ "emit",
2905
+ "INVOKED"
2906
+ ],
2907
+ [
2908
+ "ref",
2909
+ "AgentFixLoop"
2910
+ ],
2911
+ [
2912
+ "render-ui",
2913
+ "main",
2230
2914
  {
2231
2915
  "type": "stack",
2232
- "direction": "horizontal",
2233
- "gap": "md",
2234
- "justify": "space-between",
2916
+ "direction": "vertical",
2917
+ "gap": "lg",
2235
2918
  "children": [
2236
2919
  {
2237
2920
  "type": "stack",
2238
2921
  "direction": "horizontal",
2239
2922
  "gap": "md",
2923
+ "justify": "space-between",
2240
2924
  "children": [
2241
2925
  {
2242
- "type": "icon",
2243
- "name": "wrench",
2244
- "size": "lg"
2926
+ "type": "stack",
2927
+ "direction": "horizontal",
2928
+ "gap": "md",
2929
+ "children": [
2930
+ {
2931
+ "type": "icon",
2932
+ "name": "wrench",
2933
+ "size": "lg"
2934
+ },
2935
+ {
2936
+ "type": "typography",
2937
+ "content": "Invoke Tool",
2938
+ "variant": "h2"
2939
+ }
2940
+ ]
2245
2941
  },
2246
2942
  {
2247
- "type": "typography",
2248
- "content": "Invoke Tool",
2249
- "variant": "h2"
2943
+ "type": "button",
2944
+ "label": "Open",
2945
+ "event": "INVOKE",
2946
+ "variant": "primary",
2947
+ "icon": "wrench"
2250
2948
  }
2251
2949
  ]
2252
2950
  },
2253
2951
  {
2254
- "type": "button",
2255
- "label": "Open",
2256
- "event": "INVOKE",
2257
- "variant": "primary",
2258
- "icon": "wrench"
2259
- }
2260
- ]
2261
- },
2262
- {
2263
- "type": "divider"
2264
- },
2265
- {
2266
- "type": "empty-state",
2267
- "icon": "wrench",
2268
- "title": "Nothing open",
2269
- "description": "Click Open to view details in a modal overlay."
2270
- }
2271
- ]
2272
- }
2273
- ]
2274
- ],
2275
- "INVOKE": [
2276
- [
2277
- "render-ui",
2278
- "modal",
2279
- {
2280
- "type": "stack",
2281
- "direction": "vertical",
2282
- "gap": "md",
2283
- "children": [
2284
- {
2285
- "type": "stack",
2286
- "direction": "horizontal",
2287
- "gap": "sm",
2288
- "children": [
2289
- {
2290
- "type": "icon",
2291
- "name": "wrench",
2292
- "size": "md"
2952
+ "type": "divider"
2293
2953
  },
2294
2954
  {
2295
- "type": "typography",
2296
- "content": "Invoke Tool",
2297
- "variant": "h3"
2955
+ "type": "empty-state",
2956
+ "icon": "wrench",
2957
+ "title": "Nothing open",
2958
+ "description": "Click Open to view details in a modal overlay."
2298
2959
  }
2299
2960
  ]
2300
- },
2301
- {
2302
- "type": "divider"
2303
- },
2304
- {
2305
- "type": "form-section",
2306
- "entity": "AgentFixLoop",
2307
- "mode": "create",
2308
- "submitEvent": "SAVE",
2309
- "cancelEvent": "CLOSE",
2310
- "fields": [
2311
- "toolName",
2312
- "args"
2313
- ]
2314
2961
  }
2962
+ ],
2963
+ [
2964
+ "notify",
2965
+ "AgentFixLoop created successfully"
2315
2966
  ]
2316
- }
2317
- ]
2967
+ ]
2968
+ }
2969
+ ]
2970
+ },
2971
+ "listens": []
2972
+ },
2973
+ {
2974
+ "name": "FixLoopCompletionFlow",
2975
+ "linkedEntity": "AgentFixLoop",
2976
+ "category": "interaction",
2977
+ "emits": [
2978
+ {
2979
+ "event": "SAVE",
2980
+ "scope": "internal"
2981
+ },
2982
+ {
2983
+ "event": "GENERATED",
2984
+ "scope": "internal"
2985
+ }
2986
+ ],
2987
+ "stateMachine": {
2988
+ "states": [
2989
+ {
2990
+ "name": "closed",
2991
+ "isInitial": true
2992
+ },
2993
+ {
2994
+ "name": "open"
2995
+ }
2318
2996
  ],
2319
- "CLOSE": [
2320
- [
2321
- "render-ui",
2322
- "modal",
2323
- null
2324
- ],
2325
- [
2326
- "notify",
2327
- "Cancelled",
2328
- "info"
2329
- ],
2330
- [
2331
- "ref",
2332
- "AgentFixLoop"
2333
- ],
2334
- [
2335
- "render-ui",
2336
- "main",
2337
- {
2338
- "type": "stack",
2339
- "direction": "vertical",
2340
- "gap": "lg",
2341
- "children": [
2997
+ "events": [
2998
+ {
2999
+ "key": "INIT",
3000
+ "name": "Initialize"
3001
+ },
3002
+ {
3003
+ "key": "GENERATE",
3004
+ "name": "Open"
3005
+ },
3006
+ {
3007
+ "key": "CLOSE",
3008
+ "name": "Close"
3009
+ },
3010
+ {
3011
+ "key": "SAVE",
3012
+ "name": "Save",
3013
+ "payload": [
3014
+ {
3015
+ "name": "data",
3016
+ "type": "object",
3017
+ "required": true
3018
+ }
3019
+ ]
3020
+ }
3021
+ ],
3022
+ "transitions": [
3023
+ {
3024
+ "from": "closed",
3025
+ "to": "closed",
3026
+ "event": "INIT",
3027
+ "effects": [
3028
+ [
3029
+ "ref",
3030
+ "AgentFixLoop"
3031
+ ],
3032
+ [
3033
+ "render-ui",
3034
+ "main",
2342
3035
  {
2343
3036
  "type": "stack",
2344
- "direction": "horizontal",
2345
- "gap": "md",
2346
- "justify": "space-between",
3037
+ "direction": "vertical",
3038
+ "gap": "lg",
2347
3039
  "children": [
2348
3040
  {
2349
3041
  "type": "stack",
2350
3042
  "direction": "horizontal",
2351
3043
  "gap": "md",
3044
+ "justify": "space-between",
2352
3045
  "children": [
2353
3046
  {
2354
- "type": "icon",
2355
- "name": "wrench",
2356
- "size": "lg"
3047
+ "type": "stack",
3048
+ "direction": "horizontal",
3049
+ "gap": "md",
3050
+ "children": [
3051
+ {
3052
+ "type": "icon",
3053
+ "name": "sparkles",
3054
+ "size": "lg"
3055
+ },
3056
+ {
3057
+ "type": "typography",
3058
+ "content": "AgentFixLoop",
3059
+ "variant": "h2"
3060
+ }
3061
+ ]
2357
3062
  },
2358
3063
  {
2359
- "type": "typography",
2360
- "content": "Invoke Tool",
2361
- "variant": "h2"
3064
+ "type": "button",
3065
+ "label": "Open",
3066
+ "event": "GENERATE",
3067
+ "variant": "primary",
3068
+ "icon": "sparkles"
2362
3069
  }
2363
3070
  ]
2364
3071
  },
2365
3072
  {
2366
- "type": "button",
2367
- "label": "Open",
2368
- "event": "INVOKE",
2369
- "variant": "primary",
2370
- "icon": "wrench"
3073
+ "type": "divider"
3074
+ },
3075
+ {
3076
+ "type": "empty-state",
3077
+ "icon": "sparkles",
3078
+ "title": "Nothing open",
3079
+ "description": "Click Open to view details in a modal overlay."
2371
3080
  }
2372
3081
  ]
2373
- },
2374
- {
2375
- "type": "divider"
2376
- },
2377
- {
2378
- "type": "empty-state",
2379
- "icon": "wrench",
2380
- "title": "Nothing open",
2381
- "description": "Click Open to view details in a modal overlay."
2382
3082
  }
2383
3083
  ]
2384
- }
2385
- ]
2386
- ],
2387
- "SAVE": [
2388
- [
2389
- "persist",
2390
- "create",
2391
- "AgentFixLoop",
2392
- "@payload.data"
2393
- ],
2394
- [
2395
- "render-ui",
2396
- "modal",
2397
- null
2398
- ],
2399
- [
2400
- "emit",
2401
- "INVOKED"
2402
- ],
2403
- [
2404
- "ref",
2405
- "AgentFixLoop"
2406
- ],
2407
- [
2408
- "render-ui",
2409
- "main",
2410
- {
2411
- "type": "stack",
2412
- "direction": "vertical",
2413
- "gap": "lg",
2414
- "children": [
3084
+ ]
3085
+ },
3086
+ {
3087
+ "from": "closed",
3088
+ "to": "open",
3089
+ "event": "GENERATE",
3090
+ "effects": [
3091
+ [
3092
+ "render-ui",
3093
+ "modal",
2415
3094
  {
2416
3095
  "type": "stack",
2417
- "direction": "horizontal",
3096
+ "direction": "vertical",
2418
3097
  "gap": "md",
2419
- "justify": "space-between",
2420
3098
  "children": [
2421
3099
  {
2422
3100
  "type": "stack",
2423
3101
  "direction": "horizontal",
2424
- "gap": "md",
3102
+ "gap": "sm",
2425
3103
  "children": [
2426
3104
  {
2427
3105
  "type": "icon",
2428
- "name": "wrench",
2429
- "size": "lg"
3106
+ "name": "sparkles",
3107
+ "size": "md"
2430
3108
  },
2431
3109
  {
2432
3110
  "type": "typography",
2433
- "content": "Invoke Tool",
2434
- "variant": "h2"
3111
+ "content": "AgentFixLoop",
3112
+ "variant": "h3"
2435
3113
  }
2436
3114
  ]
2437
3115
  },
2438
3116
  {
2439
- "type": "button",
2440
- "label": "Open",
2441
- "event": "INVOKE",
2442
- "variant": "primary",
2443
- "icon": "wrench"
2444
- }
2445
- ]
2446
- },
2447
- {
2448
- "type": "divider"
2449
- },
2450
- {
2451
- "type": "empty-state",
2452
- "icon": "wrench",
2453
- "title": "Nothing open",
2454
- "description": "Click Open to view details in a modal overlay."
2455
- }
2456
- ]
2457
- }
2458
- ]
2459
- ]
2460
- }
2461
- },
2462
- {
2463
- "ref": "AgentCompletion.traits.AgentCompletionModal",
2464
- "name": "FixLoopCompletionFlow",
2465
- "linkedEntity": "AgentFixLoop",
2466
- "listens": [],
2467
- "emitsScope": "internal",
2468
- "effects": {
2469
- "INIT": [
2470
- [
2471
- "ref",
2472
- "AgentFixLoop"
2473
- ],
2474
- [
2475
- "render-ui",
2476
- "main",
2477
- {
2478
- "type": "stack",
2479
- "direction": "vertical",
2480
- "gap": "lg",
2481
- "children": [
2482
- {
2483
- "type": "stack",
2484
- "direction": "horizontal",
2485
- "gap": "md",
2486
- "justify": "space-between",
2487
- "children": [
3117
+ "type": "divider"
3118
+ },
2488
3119
  {
2489
3120
  "type": "stack",
2490
3121
  "direction": "horizontal",
2491
- "gap": "md",
3122
+ "gap": "sm",
2492
3123
  "children": [
2493
3124
  {
2494
- "type": "icon",
2495
- "name": "sparkles",
2496
- "size": "lg"
3125
+ "type": "badge",
3126
+ "label": "@entity.provider"
2497
3127
  },
2498
3128
  {
2499
- "type": "typography",
2500
- "content": "AgentFixLoop",
2501
- "variant": "h2"
3129
+ "type": "badge",
3130
+ "label": "@entity.model"
2502
3131
  }
2503
3132
  ]
2504
3133
  },
2505
3134
  {
2506
- "type": "button",
2507
- "label": "Open",
2508
- "event": "GENERATE",
2509
- "variant": "primary",
2510
- "icon": "sparkles"
2511
- }
2512
- ]
2513
- },
2514
- {
2515
- "type": "divider"
2516
- },
2517
- {
2518
- "type": "empty-state",
2519
- "icon": "sparkles",
2520
- "title": "Nothing open",
2521
- "description": "Click Open to view details in a modal overlay."
2522
- }
2523
- ]
2524
- }
2525
- ]
2526
- ],
2527
- "GENERATE": [
2528
- [
2529
- "render-ui",
2530
- "modal",
2531
- {
2532
- "type": "stack",
2533
- "direction": "vertical",
2534
- "gap": "md",
2535
- "children": [
2536
- {
2537
- "type": "stack",
2538
- "direction": "horizontal",
2539
- "gap": "sm",
2540
- "children": [
2541
- {
2542
- "type": "icon",
2543
- "name": "sparkles",
2544
- "size": "md"
2545
- },
2546
- {
2547
- "type": "typography",
2548
- "content": "AgentFixLoop",
2549
- "variant": "h3"
2550
- }
2551
- ]
2552
- },
2553
- {
2554
- "type": "divider"
2555
- },
2556
- {
2557
- "type": "stack",
2558
- "direction": "horizontal",
2559
- "gap": "sm",
2560
- "children": [
2561
- {
2562
- "type": "badge",
2563
- "label": "@entity.provider"
2564
- },
2565
- {
2566
- "type": "badge",
2567
- "label": "@entity.model"
3135
+ "type": "form-section",
3136
+ "entity": "AgentFixLoop",
3137
+ "mode": "create",
3138
+ "submitEvent": "SAVE",
3139
+ "cancelEvent": "CLOSE",
3140
+ "fields": [
3141
+ "prompt"
3142
+ ]
2568
3143
  }
2569
3144
  ]
2570
- },
2571
- {
2572
- "type": "form-section",
2573
- "entity": "AgentFixLoop",
2574
- "mode": "create",
2575
- "submitEvent": "SAVE",
2576
- "cancelEvent": "CLOSE",
2577
- "fields": [
2578
- "prompt"
2579
- ]
2580
3145
  }
2581
3146
  ]
2582
- }
2583
- ]
2584
- ],
2585
- "CLOSE": [
2586
- [
2587
- "render-ui",
2588
- "modal",
2589
- null
2590
- ],
2591
- [
2592
- "notify",
2593
- "Cancelled",
2594
- "info"
2595
- ],
2596
- [
2597
- "ref",
2598
- "AgentFixLoop"
2599
- ],
2600
- [
2601
- "render-ui",
2602
- "main",
2603
- {
2604
- "type": "stack",
2605
- "direction": "vertical",
2606
- "gap": "lg",
2607
- "children": [
3147
+ ]
3148
+ },
3149
+ {
3150
+ "from": "open",
3151
+ "to": "closed",
3152
+ "event": "CLOSE",
3153
+ "effects": [
3154
+ [
3155
+ "render-ui",
3156
+ "modal",
3157
+ null
3158
+ ],
3159
+ [
3160
+ "notify",
3161
+ "Cancelled",
3162
+ "info"
3163
+ ],
3164
+ [
3165
+ "ref",
3166
+ "AgentFixLoop"
3167
+ ],
3168
+ [
3169
+ "render-ui",
3170
+ "main",
2608
3171
  {
2609
3172
  "type": "stack",
2610
- "direction": "horizontal",
2611
- "gap": "md",
2612
- "justify": "space-between",
3173
+ "direction": "vertical",
3174
+ "gap": "lg",
2613
3175
  "children": [
2614
3176
  {
2615
3177
  "type": "stack",
2616
3178
  "direction": "horizontal",
2617
3179
  "gap": "md",
3180
+ "justify": "space-between",
2618
3181
  "children": [
2619
3182
  {
2620
- "type": "icon",
2621
- "name": "sparkles",
2622
- "size": "lg"
3183
+ "type": "stack",
3184
+ "direction": "horizontal",
3185
+ "gap": "md",
3186
+ "children": [
3187
+ {
3188
+ "type": "icon",
3189
+ "name": "sparkles",
3190
+ "size": "lg"
3191
+ },
3192
+ {
3193
+ "type": "typography",
3194
+ "content": "AgentFixLoop",
3195
+ "variant": "h2"
3196
+ }
3197
+ ]
2623
3198
  },
2624
3199
  {
2625
- "type": "typography",
2626
- "content": "AgentFixLoop",
2627
- "variant": "h2"
3200
+ "type": "button",
3201
+ "label": "Open",
3202
+ "event": "GENERATE",
3203
+ "variant": "primary",
3204
+ "icon": "sparkles"
2628
3205
  }
2629
3206
  ]
2630
3207
  },
2631
3208
  {
2632
- "type": "button",
2633
- "label": "Open",
2634
- "event": "GENERATE",
2635
- "variant": "primary",
2636
- "icon": "sparkles"
3209
+ "type": "divider"
3210
+ },
3211
+ {
3212
+ "type": "empty-state",
3213
+ "icon": "sparkles",
3214
+ "title": "Nothing open",
3215
+ "description": "Click Open to view details in a modal overlay."
2637
3216
  }
2638
3217
  ]
2639
- },
2640
- {
2641
- "type": "divider"
2642
- },
2643
- {
2644
- "type": "empty-state",
2645
- "icon": "sparkles",
2646
- "title": "Nothing open",
2647
- "description": "Click Open to view details in a modal overlay."
2648
3218
  }
2649
3219
  ]
2650
- }
2651
- ]
2652
- ],
2653
- "SAVE": [
2654
- [
2655
- "persist",
2656
- "create",
2657
- "AgentFixLoop",
2658
- "@payload.data"
2659
- ],
2660
- [
2661
- "render-ui",
2662
- "modal",
2663
- null
2664
- ],
2665
- [
2666
- "emit",
2667
- "GENERATED"
2668
- ],
2669
- [
2670
- "ref",
2671
- "AgentFixLoop"
2672
- ],
2673
- [
2674
- "render-ui",
2675
- "main",
2676
- {
2677
- "type": "stack",
2678
- "direction": "vertical",
2679
- "gap": "lg",
2680
- "children": [
3220
+ ]
3221
+ },
3222
+ {
3223
+ "from": "open",
3224
+ "to": "closed",
3225
+ "event": "SAVE",
3226
+ "effects": [
3227
+ [
3228
+ "persist",
3229
+ "create",
3230
+ "AgentFixLoop",
3231
+ "@payload.data"
3232
+ ],
3233
+ [
3234
+ "render-ui",
3235
+ "modal",
3236
+ null
3237
+ ],
3238
+ [
3239
+ "emit",
3240
+ "GENERATED"
3241
+ ],
3242
+ [
3243
+ "ref",
3244
+ "AgentFixLoop"
3245
+ ],
3246
+ [
3247
+ "render-ui",
3248
+ "main",
2681
3249
  {
2682
3250
  "type": "stack",
2683
- "direction": "horizontal",
2684
- "gap": "md",
2685
- "justify": "space-between",
3251
+ "direction": "vertical",
3252
+ "gap": "lg",
2686
3253
  "children": [
2687
3254
  {
2688
3255
  "type": "stack",
2689
3256
  "direction": "horizontal",
2690
3257
  "gap": "md",
3258
+ "justify": "space-between",
2691
3259
  "children": [
2692
3260
  {
2693
- "type": "icon",
2694
- "name": "sparkles",
2695
- "size": "lg"
3261
+ "type": "stack",
3262
+ "direction": "horizontal",
3263
+ "gap": "md",
3264
+ "children": [
3265
+ {
3266
+ "type": "icon",
3267
+ "name": "sparkles",
3268
+ "size": "lg"
3269
+ },
3270
+ {
3271
+ "type": "typography",
3272
+ "content": "AgentFixLoop",
3273
+ "variant": "h2"
3274
+ }
3275
+ ]
2696
3276
  },
2697
3277
  {
2698
- "type": "typography",
2699
- "content": "AgentFixLoop",
2700
- "variant": "h2"
3278
+ "type": "button",
3279
+ "label": "Open",
3280
+ "event": "GENERATE",
3281
+ "variant": "primary",
3282
+ "icon": "sparkles"
2701
3283
  }
2702
3284
  ]
2703
3285
  },
2704
3286
  {
2705
- "type": "button",
2706
- "label": "Open",
2707
- "event": "GENERATE",
2708
- "variant": "primary",
2709
- "icon": "sparkles"
3287
+ "type": "divider"
3288
+ },
3289
+ {
3290
+ "type": "empty-state",
3291
+ "icon": "sparkles",
3292
+ "title": "Nothing open",
3293
+ "description": "Click Open to view details in a modal overlay."
2710
3294
  }
2711
3295
  ]
2712
- },
2713
- {
2714
- "type": "divider"
2715
- },
2716
- {
2717
- "type": "empty-state",
2718
- "icon": "sparkles",
2719
- "title": "Nothing open",
2720
- "description": "Click Open to view details in a modal overlay."
2721
3296
  }
3297
+ ],
3298
+ [
3299
+ "notify",
3300
+ "AgentFixLoop created successfully"
2722
3301
  ]
2723
- }
2724
- ]
3302
+ ]
3303
+ }
2725
3304
  ]
2726
- }
3305
+ },
3306
+ "listens": []
2727
3307
  }
2728
3308
  ],
2729
3309
  "pages": [
@@ -2753,5 +3333,6 @@
2753
3333
  }
2754
3334
  ]
2755
3335
  }
2756
- ]
2757
- }
3336
+ ],
3337
+ "description": "Composes agent atoms + UI atoms into an iterative validation-fix loop with step progress tracking and an errors browse list. Validates a target, generates a fix via LLM, applies it via tool invocation, then re-validates. Composed atoms: - stdAgentToolCall (validate): run validation tool - stdAgentToolCall (fix): apply generated fix - stdAgentCompletion: generate fix via LLM - stdAgentStepProgress: visual step indicator - stdBrowse: browsable errors list (2026-04-08). The canonical source for std behaviors is now the registry `.orb` file at `packages/almadar-std/behaviors/registry/<level>/<name>.orb`, which is generated from this TS source by `tools/almadar-behavior-ts-to-orb/` and consumed by the compiler's embedded loader. Consumers should import behaviors via `.lolo`/`.orb` `uses` declarations and reference them as `Alias.entity` / `Alias.traits.X` / `Alias.pages.X`, applying overrides at the call site (`linkedEntity`, `name`, `events`, `effects`, `listens`, `emitsScope`). The TS `*Params` interface and the exported factory functions remain ONLY as the authoring path for the converter; they are NOT a stable public API and may change without notice. See `docs/Almadar_Orb_Behaviors.md` for the orbital-as-function model and `docs/LOLO_Gaps.md` for the migration plan."
3338
+ }