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