@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-learner",
2
+ "name": "AgentLearnerOrbital",
3
3
  "version": "1.0.0",
4
- "description": "std-agent-learner -- Outcome learning",
5
4
  "orbitals": [
6
5
  {
7
6
  "name": "AgentLearnerOrbital",
8
- "uses": [
9
- {
10
- "from": "std/behaviors/std-agent-completion",
11
- "as": "AgentCompletion"
12
- },
13
- {
14
- "from": "std/behaviors/std-agent-memory",
15
- "as": "AgentMemory"
16
- },
17
- {
18
- "from": "std/behaviors/std-agent-provider",
19
- "as": "AgentProvider"
20
- },
21
- {
22
- "from": "std/behaviors/std-browse",
23
- "as": "Browse"
24
- }
25
- ],
26
7
  "entity": {
27
8
  "name": "AgentLearner",
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": "outcome",
58
43
  "type": "string",
@@ -673,10 +658,7 @@
673
658
  ],
674
659
  "\n",
675
660
  "Consecutive failures: ",
676
- [
677
- "str/concat",
678
- "@entity.consecutiveFailures"
679
- ],
661
+ "@entity.consecutiveFailures",
680
662
  "\n\n",
681
663
  "Analyze the impact of this outcome. What should be learned? Keep it to 1-2 sentences."
682
664
  ]
@@ -1262,799 +1244,1046 @@
1262
1244
  }
1263
1245
  },
1264
1246
  {
1265
- "ref": "Browse.traits.BrowseItemBrowse",
1266
1247
  "name": "LearnerRecordsBrowse",
1267
1248
  "linkedEntity": "AgentLearner",
1268
- "effects": {
1269
- "INIT": [
1270
- [
1271
- "ref",
1272
- "AgentLearner"
1273
- ],
1274
- [
1275
- "render-ui",
1276
- "main",
1277
- {
1278
- "type": "stack",
1279
- "direction": "vertical",
1280
- "gap": "lg",
1281
- "className": "max-w-5xl mx-auto w-full",
1282
- "children": [
1249
+ "category": "interaction",
1250
+ "stateMachine": {
1251
+ "states": [
1252
+ {
1253
+ "name": "browsing",
1254
+ "isInitial": true
1255
+ }
1256
+ ],
1257
+ "events": [
1258
+ {
1259
+ "key": "INIT",
1260
+ "name": "Initialize"
1261
+ },
1262
+ {
1263
+ "key": "VIEW",
1264
+ "name": "VIEW",
1265
+ "payload": [
1266
+ {
1267
+ "name": "id",
1268
+ "type": "string",
1269
+ "required": true
1270
+ },
1271
+ {
1272
+ "name": "row",
1273
+ "type": "object"
1274
+ }
1275
+ ]
1276
+ }
1277
+ ],
1278
+ "transitions": [
1279
+ {
1280
+ "from": "browsing",
1281
+ "to": "browsing",
1282
+ "event": "INIT",
1283
+ "effects": [
1284
+ [
1285
+ "ref",
1286
+ "AgentLearner"
1287
+ ],
1288
+ [
1289
+ "render-ui",
1290
+ "main",
1283
1291
  {
1284
1292
  "type": "stack",
1285
- "direction": "horizontal",
1286
- "gap": "md",
1287
- "justify": "space-between",
1288
- "align": "center",
1293
+ "direction": "vertical",
1294
+ "gap": "lg",
1295
+ "className": "max-w-5xl mx-auto w-full",
1289
1296
  "children": [
1290
1297
  {
1291
1298
  "type": "stack",
1292
1299
  "direction": "horizontal",
1293
- "gap": "sm",
1300
+ "gap": "md",
1301
+ "justify": "space-between",
1294
1302
  "align": "center",
1295
1303
  "children": [
1296
1304
  {
1297
- "type": "icon",
1298
- "name": "graduation-cap",
1299
- "size": "lg"
1300
- },
1301
- {
1302
- "type": "typography",
1303
- "content": "Learning Records",
1304
- "variant": "h2"
1305
+ "type": "stack",
1306
+ "direction": "horizontal",
1307
+ "gap": "sm",
1308
+ "align": "center",
1309
+ "children": [
1310
+ {
1311
+ "type": "icon",
1312
+ "name": "graduation-cap",
1313
+ "size": "lg"
1314
+ },
1315
+ {
1316
+ "type": "typography",
1317
+ "content": "Learning Records",
1318
+ "variant": "h2"
1319
+ }
1320
+ ]
1305
1321
  }
1306
1322
  ]
1307
- }
1308
- ]
1309
- },
1310
- {
1311
- "type": "divider"
1312
- },
1313
- {
1314
- "type": "data-grid",
1315
- "entity": "AgentLearner",
1316
- "emptyIcon": "inbox",
1317
- "emptyTitle": "No records yet",
1318
- "emptyDescription": "Task outcomes will appear here as they are recorded.",
1319
- "itemActions": [
1320
- {
1321
- "label": "View",
1322
- "event": "VIEW",
1323
- "variant": "ghost",
1324
- "size": "sm"
1325
- }
1326
- ],
1327
- "columns": [
1323
+ },
1328
1324
  {
1329
- "name": "outcome",
1330
- "label": "Outcome",
1331
- "variant": "h4",
1332
- "icon": "graduation-cap"
1325
+ "type": "divider"
1333
1326
  },
1334
1327
  {
1335
- "name": "category",
1336
- "label": "Category",
1337
- "variant": "badge",
1338
- "colorMap": {
1339
- "active": "success",
1340
- "completed": "success",
1341
- "done": "success",
1342
- "pending": "warning",
1343
- "draft": "warning",
1344
- "scheduled": "warning",
1345
- "inactive": "neutral",
1346
- "archived": "neutral",
1347
- "disabled": "neutral",
1348
- "error": "destructive",
1349
- "cancelled": "destructive",
1350
- "failed": "destructive"
1351
- }
1328
+ "type": "data-grid",
1329
+ "entity": "AgentLearner",
1330
+ "emptyIcon": "inbox",
1331
+ "emptyTitle": "No records yet",
1332
+ "emptyDescription": "Task outcomes will appear here as they are recorded.",
1333
+ "itemActions": [
1334
+ {
1335
+ "label": "View",
1336
+ "event": "VIEW",
1337
+ "variant": "ghost",
1338
+ "size": "sm"
1339
+ }
1340
+ ],
1341
+ "columns": [
1342
+ {
1343
+ "name": "outcome",
1344
+ "label": "Outcome",
1345
+ "variant": "h4",
1346
+ "icon": "graduation-cap"
1347
+ },
1348
+ {
1349
+ "name": "category",
1350
+ "label": "Category",
1351
+ "variant": "badge",
1352
+ "colorMap": {
1353
+ "active": "success",
1354
+ "completed": "success",
1355
+ "done": "success",
1356
+ "pending": "warning",
1357
+ "draft": "warning",
1358
+ "scheduled": "warning",
1359
+ "inactive": "neutral",
1360
+ "archived": "neutral",
1361
+ "disabled": "neutral",
1362
+ "error": "destructive",
1363
+ "cancelled": "destructive",
1364
+ "failed": "destructive"
1365
+ }
1366
+ },
1367
+ {
1368
+ "name": "status",
1369
+ "label": "Status",
1370
+ "variant": "caption"
1371
+ }
1372
+ ]
1352
1373
  },
1353
1374
  {
1354
- "name": "status",
1355
- "label": "Status",
1356
- "variant": "caption"
1375
+ "type": "floating-action-button",
1376
+ "icon": "plus",
1377
+ "event": "INIT",
1378
+ "label": "Create",
1379
+ "tooltip": "Create"
1357
1380
  }
1358
1381
  ]
1359
- },
1360
- {
1361
- "type": "floating-action-button",
1362
- "icon": "plus",
1363
- "event": "INIT",
1364
- "label": "Create",
1365
- "tooltip": "Create"
1366
1382
  }
1367
1383
  ]
1368
- }
1369
- ]
1384
+ ]
1385
+ }
1370
1386
  ]
1371
1387
  }
1372
1388
  },
1373
1389
  {
1374
- "ref": "AgentMemory.traits.AgentMemoryBrowse",
1375
1390
  "name": "LearnerMemoryLifecycle",
1376
1391
  "linkedEntity": "AgentLearner",
1392
+ "category": "interaction",
1377
1393
  "listens": [],
1378
- "emitsScope": "internal",
1379
- "effects": {
1380
- "INIT": [
1381
- [
1382
- "ref",
1383
- "AgentLearner"
1384
- ],
1385
- [
1386
- "render-ui",
1387
- "main",
1388
- {
1389
- "type": "stack",
1390
- "direction": "vertical",
1391
- "gap": "lg",
1392
- "className": "max-w-5xl mx-auto w-full",
1393
- "children": [
1394
+ "stateMachine": {
1395
+ "states": [
1396
+ {
1397
+ "name": "browsing",
1398
+ "isInitial": true
1399
+ }
1400
+ ],
1401
+ "events": [
1402
+ {
1403
+ "key": "INIT",
1404
+ "name": "Initialize"
1405
+ },
1406
+ {
1407
+ "key": "MEMORIZE",
1408
+ "name": "MEMORIZE"
1409
+ },
1410
+ {
1411
+ "key": "RECALL",
1412
+ "name": "RECALL"
1413
+ },
1414
+ {
1415
+ "key": "DECAY",
1416
+ "name": "DECAY"
1417
+ },
1418
+ {
1419
+ "key": "PIN",
1420
+ "name": "PIN",
1421
+ "payload": [
1422
+ {
1423
+ "name": "id",
1424
+ "type": "string",
1425
+ "required": true
1426
+ },
1427
+ {
1428
+ "name": "row",
1429
+ "type": "object"
1430
+ }
1431
+ ]
1432
+ },
1433
+ {
1434
+ "key": "REINFORCE",
1435
+ "name": "REINFORCE",
1436
+ "payload": [
1437
+ {
1438
+ "name": "id",
1439
+ "type": "string",
1440
+ "required": true
1441
+ },
1442
+ {
1443
+ "name": "row",
1444
+ "type": "object"
1445
+ }
1446
+ ]
1447
+ },
1448
+ {
1449
+ "key": "FORGET",
1450
+ "name": "FORGET",
1451
+ "payload": [
1452
+ {
1453
+ "name": "id",
1454
+ "type": "string",
1455
+ "required": true
1456
+ },
1457
+ {
1458
+ "name": "row",
1459
+ "type": "object"
1460
+ }
1461
+ ]
1462
+ }
1463
+ ],
1464
+ "transitions": [
1465
+ {
1466
+ "from": "browsing",
1467
+ "to": "browsing",
1468
+ "event": "INIT",
1469
+ "effects": [
1470
+ [
1471
+ "ref",
1472
+ "AgentLearner"
1473
+ ],
1474
+ [
1475
+ "render-ui",
1476
+ "main",
1394
1477
  {
1395
1478
  "type": "stack",
1396
- "direction": "horizontal",
1397
- "gap": "md",
1398
- "justify": "space-between",
1399
- "align": "center",
1479
+ "direction": "vertical",
1480
+ "gap": "lg",
1481
+ "className": "max-w-5xl mx-auto w-full",
1400
1482
  "children": [
1401
1483
  {
1402
1484
  "type": "stack",
1403
1485
  "direction": "horizontal",
1404
- "gap": "sm",
1486
+ "gap": "md",
1487
+ "justify": "space-between",
1405
1488
  "align": "center",
1406
1489
  "children": [
1407
1490
  {
1408
- "type": "icon",
1409
- "name": "brain",
1410
- "size": "lg"
1491
+ "type": "stack",
1492
+ "direction": "horizontal",
1493
+ "gap": "sm",
1494
+ "align": "center",
1495
+ "children": [
1496
+ {
1497
+ "type": "icon",
1498
+ "name": "brain",
1499
+ "size": "lg"
1500
+ },
1501
+ {
1502
+ "type": "typography",
1503
+ "content": "AgentLearner Manager",
1504
+ "variant": "h2"
1505
+ }
1506
+ ]
1411
1507
  },
1412
1508
  {
1413
- "type": "typography",
1414
- "content": "AgentLearner Manager",
1415
- "variant": "h2"
1509
+ "type": "stack",
1510
+ "direction": "horizontal",
1511
+ "gap": "sm",
1512
+ "children": [
1513
+ {
1514
+ "type": "button",
1515
+ "label": "Memorize",
1516
+ "event": "MEMORIZE",
1517
+ "variant": "primary",
1518
+ "icon": "plus"
1519
+ },
1520
+ {
1521
+ "type": "button",
1522
+ "label": "Recall",
1523
+ "event": "RECALL",
1524
+ "variant": "secondary",
1525
+ "icon": "search"
1526
+ },
1527
+ {
1528
+ "type": "button",
1529
+ "label": "Decay All",
1530
+ "event": "DECAY",
1531
+ "variant": "ghost",
1532
+ "icon": "clock"
1533
+ }
1534
+ ]
1416
1535
  }
1417
1536
  ]
1418
1537
  },
1419
1538
  {
1420
- "type": "stack",
1421
- "direction": "horizontal",
1422
- "gap": "sm",
1423
- "children": [
1539
+ "type": "divider"
1540
+ },
1541
+ {
1542
+ "type": "data-grid",
1543
+ "entity": "AgentLearner",
1544
+ "emptyIcon": "inbox",
1545
+ "emptyTitle": "No memories yet",
1546
+ "emptyDescription": "Create your first memory to get started.",
1547
+ "itemActions": [
1424
1548
  {
1425
- "type": "button",
1426
- "label": "Memorize",
1427
- "event": "MEMORIZE",
1428
- "variant": "primary",
1429
- "icon": "plus"
1549
+ "label": "Pin",
1550
+ "event": "PIN",
1551
+ "variant": "ghost",
1552
+ "size": "sm"
1430
1553
  },
1431
1554
  {
1432
- "type": "button",
1433
- "label": "Recall",
1434
- "event": "RECALL",
1435
- "variant": "secondary",
1436
- "icon": "search"
1555
+ "label": "Reinforce",
1556
+ "event": "REINFORCE",
1557
+ "variant": "ghost",
1558
+ "size": "sm"
1437
1559
  },
1438
1560
  {
1439
- "type": "button",
1440
- "label": "Decay All",
1441
- "event": "DECAY",
1442
- "variant": "ghost",
1443
- "icon": "clock"
1561
+ "label": "Forget",
1562
+ "event": "FORGET",
1563
+ "variant": "danger",
1564
+ "size": "sm"
1565
+ }
1566
+ ],
1567
+ "columns": [
1568
+ {
1569
+ "name": "content",
1570
+ "label": "Content",
1571
+ "variant": "h4",
1572
+ "icon": "brain"
1573
+ },
1574
+ {
1575
+ "name": "category",
1576
+ "label": "Category",
1577
+ "variant": "badge",
1578
+ "colorMap": {
1579
+ "active": "success",
1580
+ "completed": "success",
1581
+ "done": "success",
1582
+ "pending": "warning",
1583
+ "draft": "warning",
1584
+ "scheduled": "warning",
1585
+ "inactive": "neutral",
1586
+ "archived": "neutral",
1587
+ "disabled": "neutral",
1588
+ "error": "destructive",
1589
+ "cancelled": "destructive",
1590
+ "failed": "destructive"
1591
+ }
1592
+ },
1593
+ {
1594
+ "name": "strength",
1595
+ "label": "Strength",
1596
+ "variant": "caption"
1444
1597
  }
1445
1598
  ]
1446
1599
  }
1447
1600
  ]
1448
- },
1449
- {
1450
- "type": "divider"
1451
- },
1452
- {
1453
- "type": "data-grid",
1454
- "entity": "AgentLearner",
1455
- "emptyIcon": "inbox",
1456
- "emptyTitle": "No memories yet",
1457
- "emptyDescription": "Create your first memory to get started.",
1458
- "itemActions": [
1459
- {
1460
- "label": "Pin",
1461
- "event": "PIN",
1462
- "variant": "ghost",
1463
- "size": "sm"
1464
- },
1465
- {
1466
- "label": "Reinforce",
1467
- "event": "REINFORCE",
1468
- "variant": "ghost",
1469
- "size": "sm"
1470
- },
1471
- {
1472
- "label": "Forget",
1473
- "event": "FORGET",
1474
- "variant": "danger",
1475
- "size": "sm"
1476
- }
1477
- ],
1478
- "columns": [
1479
- {
1480
- "name": "content",
1481
- "label": "Content",
1482
- "variant": "h4",
1483
- "icon": "brain"
1484
- },
1485
- {
1486
- "name": "category",
1487
- "label": "Category",
1488
- "variant": "badge",
1489
- "colorMap": {
1490
- "active": "success",
1491
- "completed": "success",
1492
- "done": "success",
1493
- "pending": "warning",
1494
- "draft": "warning",
1495
- "scheduled": "warning",
1496
- "inactive": "neutral",
1497
- "archived": "neutral",
1498
- "disabled": "neutral",
1499
- "error": "destructive",
1500
- "cancelled": "destructive",
1501
- "failed": "destructive"
1502
- }
1503
- },
1504
- {
1505
- "name": "strength",
1506
- "label": "Strength",
1507
- "variant": "caption"
1508
- }
1509
- ]
1510
1601
  }
1511
1602
  ]
1512
- }
1513
- ]
1603
+ ]
1604
+ }
1514
1605
  ]
1515
1606
  }
1516
1607
  },
1517
1608
  {
1518
- "ref": "AgentCompletion.traits.AgentCompletionModal",
1519
1609
  "name": "LearnerCompletionFlow",
1520
1610
  "linkedEntity": "AgentLearner",
1521
- "listens": [],
1522
- "emitsScope": "internal",
1523
- "effects": {
1524
- "INIT": [
1525
- [
1526
- "ref",
1527
- "AgentLearner"
1528
- ],
1529
- [
1530
- "render-ui",
1531
- "main",
1532
- {
1533
- "type": "stack",
1534
- "direction": "vertical",
1535
- "gap": "lg",
1536
- "children": [
1537
- {
1538
- "type": "stack",
1539
- "direction": "horizontal",
1540
- "gap": "md",
1541
- "justify": "space-between",
1542
- "children": [
1543
- {
1544
- "type": "stack",
1545
- "direction": "horizontal",
1546
- "gap": "md",
1547
- "children": [
1548
- {
1549
- "type": "icon",
1550
- "name": "sparkles",
1551
- "size": "lg"
1552
- },
1553
- {
1554
- "type": "typography",
1555
- "content": "AgentLearner",
1556
- "variant": "h2"
1557
- }
1558
- ]
1559
- },
1560
- {
1561
- "type": "button",
1562
- "label": "Open",
1563
- "event": "GENERATE",
1564
- "variant": "primary",
1565
- "icon": "sparkles"
1566
- }
1567
- ]
1568
- },
1569
- {
1570
- "type": "divider"
1571
- },
1572
- {
1573
- "type": "empty-state",
1574
- "icon": "sparkles",
1575
- "title": "Nothing open",
1576
- "description": "Click Open to view details in a modal overlay."
1577
- }
1578
- ]
1579
- }
1580
- ]
1581
- ],
1582
- "GENERATE": [
1583
- [
1584
- "render-ui",
1585
- "modal",
1586
- {
1587
- "type": "stack",
1588
- "direction": "vertical",
1589
- "gap": "md",
1590
- "children": [
1591
- {
1592
- "type": "stack",
1593
- "direction": "horizontal",
1594
- "gap": "sm",
1595
- "children": [
1596
- {
1597
- "type": "icon",
1598
- "name": "sparkles",
1599
- "size": "md"
1600
- },
1601
- {
1602
- "type": "typography",
1603
- "content": "AgentLearner",
1604
- "variant": "h3"
1605
- }
1606
- ]
1607
- },
1608
- {
1609
- "type": "divider"
1610
- },
1611
+ "category": "interaction",
1612
+ "emits": [
1613
+ {
1614
+ "event": "SAVE",
1615
+ "scope": "internal"
1616
+ },
1617
+ {
1618
+ "event": "GENERATED",
1619
+ "scope": "internal"
1620
+ }
1621
+ ],
1622
+ "stateMachine": {
1623
+ "states": [
1624
+ {
1625
+ "name": "closed",
1626
+ "isInitial": true
1627
+ },
1628
+ {
1629
+ "name": "open"
1630
+ }
1631
+ ],
1632
+ "events": [
1633
+ {
1634
+ "key": "INIT",
1635
+ "name": "Initialize"
1636
+ },
1637
+ {
1638
+ "key": "GENERATE",
1639
+ "name": "Open"
1640
+ },
1641
+ {
1642
+ "key": "CLOSE",
1643
+ "name": "Close"
1644
+ },
1645
+ {
1646
+ "key": "SAVE",
1647
+ "name": "Save",
1648
+ "payload": [
1649
+ {
1650
+ "name": "data",
1651
+ "type": "object",
1652
+ "required": true
1653
+ }
1654
+ ]
1655
+ }
1656
+ ],
1657
+ "transitions": [
1658
+ {
1659
+ "from": "closed",
1660
+ "to": "closed",
1661
+ "event": "INIT",
1662
+ "effects": [
1663
+ [
1664
+ "ref",
1665
+ "AgentLearner"
1666
+ ],
1667
+ [
1668
+ "render-ui",
1669
+ "main",
1611
1670
  {
1612
1671
  "type": "stack",
1613
- "direction": "horizontal",
1614
- "gap": "sm",
1672
+ "direction": "vertical",
1673
+ "gap": "lg",
1615
1674
  "children": [
1616
1675
  {
1617
- "type": "badge",
1618
- "label": "@entity.provider"
1676
+ "type": "stack",
1677
+ "direction": "horizontal",
1678
+ "gap": "md",
1679
+ "justify": "space-between",
1680
+ "children": [
1681
+ {
1682
+ "type": "stack",
1683
+ "direction": "horizontal",
1684
+ "gap": "md",
1685
+ "children": [
1686
+ {
1687
+ "type": "icon",
1688
+ "name": "sparkles",
1689
+ "size": "lg"
1690
+ },
1691
+ {
1692
+ "type": "typography",
1693
+ "content": "AgentLearner",
1694
+ "variant": "h2"
1695
+ }
1696
+ ]
1697
+ },
1698
+ {
1699
+ "type": "button",
1700
+ "label": "Open",
1701
+ "event": "GENERATE",
1702
+ "variant": "primary",
1703
+ "icon": "sparkles"
1704
+ }
1705
+ ]
1619
1706
  },
1620
1707
  {
1621
- "type": "badge",
1622
- "label": "@entity.model"
1708
+ "type": "divider"
1709
+ },
1710
+ {
1711
+ "type": "empty-state",
1712
+ "icon": "sparkles",
1713
+ "title": "Nothing open",
1714
+ "description": "Click Open to view details in a modal overlay."
1623
1715
  }
1624
1716
  ]
1625
- },
1626
- {
1627
- "type": "form-section",
1628
- "entity": "AgentLearner",
1629
- "mode": "create",
1630
- "submitEvent": "SAVE",
1631
- "cancelEvent": "CLOSE",
1632
- "fields": [
1633
- "prompt"
1634
- ]
1635
1717
  }
1636
1718
  ]
1637
- }
1638
- ]
1639
- ],
1640
- "CLOSE": [
1641
- [
1642
- "render-ui",
1643
- "modal",
1644
- null
1645
- ],
1646
- [
1647
- "notify",
1648
- "Cancelled",
1649
- "info"
1650
- ],
1651
- [
1652
- "ref",
1653
- "AgentLearner"
1654
- ],
1655
- [
1656
- "render-ui",
1657
- "main",
1658
- {
1659
- "type": "stack",
1660
- "direction": "vertical",
1661
- "gap": "lg",
1662
- "children": [
1719
+ ]
1720
+ },
1721
+ {
1722
+ "from": "closed",
1723
+ "to": "open",
1724
+ "event": "GENERATE",
1725
+ "effects": [
1726
+ [
1727
+ "render-ui",
1728
+ "modal",
1663
1729
  {
1664
1730
  "type": "stack",
1665
- "direction": "horizontal",
1731
+ "direction": "vertical",
1666
1732
  "gap": "md",
1667
- "justify": "space-between",
1668
1733
  "children": [
1669
1734
  {
1670
1735
  "type": "stack",
1671
1736
  "direction": "horizontal",
1672
- "gap": "md",
1737
+ "gap": "sm",
1673
1738
  "children": [
1674
1739
  {
1675
1740
  "type": "icon",
1676
1741
  "name": "sparkles",
1677
- "size": "lg"
1742
+ "size": "md"
1678
1743
  },
1679
1744
  {
1680
1745
  "type": "typography",
1681
1746
  "content": "AgentLearner",
1682
- "variant": "h2"
1747
+ "variant": "h3"
1683
1748
  }
1684
1749
  ]
1685
1750
  },
1686
1751
  {
1687
- "type": "button",
1688
- "label": "Open",
1689
- "event": "GENERATE",
1690
- "variant": "primary",
1691
- "icon": "sparkles"
1752
+ "type": "divider"
1753
+ },
1754
+ {
1755
+ "type": "stack",
1756
+ "direction": "horizontal",
1757
+ "gap": "sm",
1758
+ "children": [
1759
+ {
1760
+ "type": "badge",
1761
+ "label": "@entity.provider"
1762
+ },
1763
+ {
1764
+ "type": "badge",
1765
+ "label": "@entity.model"
1766
+ }
1767
+ ]
1768
+ },
1769
+ {
1770
+ "type": "form-section",
1771
+ "entity": "AgentLearner",
1772
+ "mode": "create",
1773
+ "submitEvent": "SAVE",
1774
+ "cancelEvent": "CLOSE",
1775
+ "fields": [
1776
+ "prompt"
1777
+ ]
1692
1778
  }
1693
1779
  ]
1694
- },
1695
- {
1696
- "type": "divider"
1697
- },
1698
- {
1699
- "type": "empty-state",
1700
- "icon": "sparkles",
1701
- "title": "Nothing open",
1702
- "description": "Click Open to view details in a modal overlay."
1703
1780
  }
1704
1781
  ]
1705
- }
1706
- ]
1707
- ],
1708
- "SAVE": [
1709
- [
1710
- "persist",
1711
- "create",
1712
- "AgentLearner",
1713
- "@payload.data"
1714
- ],
1715
- [
1716
- "render-ui",
1717
- "modal",
1718
- null
1719
- ],
1720
- [
1721
- "emit",
1722
- "GENERATED"
1723
- ],
1724
- [
1725
- "ref",
1726
- "AgentLearner"
1727
- ],
1728
- [
1729
- "render-ui",
1730
- "main",
1731
- {
1732
- "type": "stack",
1733
- "direction": "vertical",
1734
- "gap": "lg",
1735
- "children": [
1782
+ ]
1783
+ },
1784
+ {
1785
+ "from": "open",
1786
+ "to": "closed",
1787
+ "event": "CLOSE",
1788
+ "effects": [
1789
+ [
1790
+ "render-ui",
1791
+ "modal",
1792
+ null
1793
+ ],
1794
+ [
1795
+ "notify",
1796
+ "Cancelled",
1797
+ "info"
1798
+ ],
1799
+ [
1800
+ "ref",
1801
+ "AgentLearner"
1802
+ ],
1803
+ [
1804
+ "render-ui",
1805
+ "main",
1736
1806
  {
1737
1807
  "type": "stack",
1738
- "direction": "horizontal",
1739
- "gap": "md",
1740
- "justify": "space-between",
1808
+ "direction": "vertical",
1809
+ "gap": "lg",
1741
1810
  "children": [
1742
1811
  {
1743
1812
  "type": "stack",
1744
1813
  "direction": "horizontal",
1745
1814
  "gap": "md",
1815
+ "justify": "space-between",
1746
1816
  "children": [
1747
1817
  {
1748
- "type": "icon",
1749
- "name": "sparkles",
1750
- "size": "lg"
1818
+ "type": "stack",
1819
+ "direction": "horizontal",
1820
+ "gap": "md",
1821
+ "children": [
1822
+ {
1823
+ "type": "icon",
1824
+ "name": "sparkles",
1825
+ "size": "lg"
1826
+ },
1827
+ {
1828
+ "type": "typography",
1829
+ "content": "AgentLearner",
1830
+ "variant": "h2"
1831
+ }
1832
+ ]
1751
1833
  },
1752
1834
  {
1753
- "type": "typography",
1754
- "content": "AgentLearner",
1755
- "variant": "h2"
1835
+ "type": "button",
1836
+ "label": "Open",
1837
+ "event": "GENERATE",
1838
+ "variant": "primary",
1839
+ "icon": "sparkles"
1756
1840
  }
1757
1841
  ]
1758
1842
  },
1759
1843
  {
1760
- "type": "button",
1761
- "label": "Open",
1762
- "event": "GENERATE",
1763
- "variant": "primary",
1764
- "icon": "sparkles"
1844
+ "type": "divider"
1845
+ },
1846
+ {
1847
+ "type": "empty-state",
1848
+ "icon": "sparkles",
1849
+ "title": "Nothing open",
1850
+ "description": "Click Open to view details in a modal overlay."
1765
1851
  }
1766
1852
  ]
1767
- },
1768
- {
1769
- "type": "divider"
1770
- },
1771
- {
1772
- "type": "empty-state",
1773
- "icon": "sparkles",
1774
- "title": "Nothing open",
1775
- "description": "Click Open to view details in a modal overlay."
1776
1853
  }
1777
1854
  ]
1778
- }
1779
- ]
1780
- ]
1781
- }
1782
- },
1783
- {
1784
- "ref": "AgentProvider.traits.AgentProviderModal",
1785
- "name": "LearnerProviderManager",
1786
- "linkedEntity": "AgentLearner",
1787
- "listens": [],
1788
- "emitsScope": "internal",
1789
- "effects": {
1790
- "INIT": [
1791
- [
1792
- "ref",
1793
- "AgentLearner"
1794
- ],
1795
- [
1796
- "render-ui",
1797
- "main",
1798
- {
1799
- "type": "stack",
1800
- "direction": "vertical",
1801
- "gap": "lg",
1802
- "children": [
1855
+ ]
1856
+ },
1857
+ {
1858
+ "from": "open",
1859
+ "to": "closed",
1860
+ "event": "SAVE",
1861
+ "effects": [
1862
+ [
1863
+ "persist",
1864
+ "create",
1865
+ "AgentLearner",
1866
+ "@payload.data"
1867
+ ],
1868
+ [
1869
+ "render-ui",
1870
+ "modal",
1871
+ null
1872
+ ],
1873
+ [
1874
+ "emit",
1875
+ "GENERATED"
1876
+ ],
1877
+ [
1878
+ "ref",
1879
+ "AgentLearner"
1880
+ ],
1881
+ [
1882
+ "render-ui",
1883
+ "main",
1803
1884
  {
1804
1885
  "type": "stack",
1805
- "direction": "horizontal",
1806
- "gap": "md",
1807
- "justify": "space-between",
1886
+ "direction": "vertical",
1887
+ "gap": "lg",
1808
1888
  "children": [
1809
1889
  {
1810
1890
  "type": "stack",
1811
1891
  "direction": "horizontal",
1812
1892
  "gap": "md",
1893
+ "justify": "space-between",
1813
1894
  "children": [
1814
1895
  {
1815
- "type": "icon",
1816
- "name": "repeat",
1817
- "size": "lg"
1896
+ "type": "stack",
1897
+ "direction": "horizontal",
1898
+ "gap": "md",
1899
+ "children": [
1900
+ {
1901
+ "type": "icon",
1902
+ "name": "sparkles",
1903
+ "size": "lg"
1904
+ },
1905
+ {
1906
+ "type": "typography",
1907
+ "content": "AgentLearner",
1908
+ "variant": "h2"
1909
+ }
1910
+ ]
1818
1911
  },
1819
1912
  {
1820
- "type": "typography",
1821
- "content": "Switch Provider",
1822
- "variant": "h2"
1913
+ "type": "button",
1914
+ "label": "Open",
1915
+ "event": "GENERATE",
1916
+ "variant": "primary",
1917
+ "icon": "sparkles"
1823
1918
  }
1824
1919
  ]
1825
1920
  },
1826
1921
  {
1827
- "type": "button",
1828
- "label": "Open",
1829
- "event": "SWITCH",
1830
- "variant": "primary",
1831
- "icon": "repeat"
1922
+ "type": "divider"
1923
+ },
1924
+ {
1925
+ "type": "empty-state",
1926
+ "icon": "sparkles",
1927
+ "title": "Nothing open",
1928
+ "description": "Click Open to view details in a modal overlay."
1832
1929
  }
1833
1930
  ]
1834
- },
1835
- {
1836
- "type": "divider"
1837
- },
1838
- {
1839
- "type": "empty-state",
1840
- "icon": "repeat",
1841
- "title": "Nothing open",
1842
- "description": "Click Open to view details in a modal overlay."
1843
1931
  }
1932
+ ],
1933
+ [
1934
+ "notify",
1935
+ "AgentLearner created successfully"
1844
1936
  ]
1845
- }
1846
- ]
1937
+ ]
1938
+ }
1939
+ ]
1940
+ },
1941
+ "listens": []
1942
+ },
1943
+ {
1944
+ "name": "LearnerProviderManager",
1945
+ "linkedEntity": "AgentLearner",
1946
+ "category": "interaction",
1947
+ "emits": [
1948
+ {
1949
+ "event": "SAVE",
1950
+ "scope": "internal"
1951
+ },
1952
+ {
1953
+ "event": "SWITCHED",
1954
+ "scope": "internal"
1955
+ }
1956
+ ],
1957
+ "stateMachine": {
1958
+ "states": [
1959
+ {
1960
+ "name": "closed",
1961
+ "isInitial": true
1962
+ },
1963
+ {
1964
+ "name": "open"
1965
+ }
1847
1966
  ],
1848
- "SWITCH": [
1849
- [
1850
- "fetch",
1851
- "AgentLearner"
1852
- ],
1853
- [
1854
- "render-ui",
1855
- "modal",
1856
- {
1857
- "type": "stack",
1858
- "direction": "vertical",
1859
- "gap": "md",
1860
- "children": [
1967
+ "events": [
1968
+ {
1969
+ "key": "INIT",
1970
+ "name": "Initialize"
1971
+ },
1972
+ {
1973
+ "key": "SWITCH",
1974
+ "name": "Open"
1975
+ },
1976
+ {
1977
+ "key": "CLOSE",
1978
+ "name": "Close"
1979
+ },
1980
+ {
1981
+ "key": "SAVE",
1982
+ "name": "Save",
1983
+ "payload": [
1984
+ {
1985
+ "name": "data",
1986
+ "type": "object",
1987
+ "required": true
1988
+ }
1989
+ ]
1990
+ }
1991
+ ],
1992
+ "transitions": [
1993
+ {
1994
+ "from": "closed",
1995
+ "to": "closed",
1996
+ "event": "INIT",
1997
+ "effects": [
1998
+ [
1999
+ "ref",
2000
+ "AgentLearner"
2001
+ ],
2002
+ [
2003
+ "render-ui",
2004
+ "main",
1861
2005
  {
1862
2006
  "type": "stack",
1863
- "direction": "horizontal",
1864
- "gap": "sm",
2007
+ "direction": "vertical",
2008
+ "gap": "lg",
1865
2009
  "children": [
1866
2010
  {
1867
- "type": "icon",
1868
- "name": "repeat",
1869
- "size": "md"
2011
+ "type": "stack",
2012
+ "direction": "horizontal",
2013
+ "gap": "md",
2014
+ "justify": "space-between",
2015
+ "children": [
2016
+ {
2017
+ "type": "stack",
2018
+ "direction": "horizontal",
2019
+ "gap": "md",
2020
+ "children": [
2021
+ {
2022
+ "type": "icon",
2023
+ "name": "repeat",
2024
+ "size": "lg"
2025
+ },
2026
+ {
2027
+ "type": "typography",
2028
+ "content": "Switch Provider",
2029
+ "variant": "h2"
2030
+ }
2031
+ ]
2032
+ },
2033
+ {
2034
+ "type": "button",
2035
+ "label": "Open",
2036
+ "event": "SWITCH",
2037
+ "variant": "primary",
2038
+ "icon": "repeat"
2039
+ }
2040
+ ]
1870
2041
  },
1871
2042
  {
1872
- "type": "typography",
1873
- "content": "Switch Provider",
1874
- "variant": "h3"
2043
+ "type": "divider"
2044
+ },
2045
+ {
2046
+ "type": "empty-state",
2047
+ "icon": "repeat",
2048
+ "title": "Nothing open",
2049
+ "description": "Click Open to view details in a modal overlay."
1875
2050
  }
1876
2051
  ]
1877
- },
1878
- {
1879
- "type": "divider"
1880
- },
2052
+ }
2053
+ ]
2054
+ ]
2055
+ },
2056
+ {
2057
+ "from": "closed",
2058
+ "to": "open",
2059
+ "event": "SWITCH",
2060
+ "effects": [
2061
+ [
2062
+ "fetch",
2063
+ "AgentLearner"
2064
+ ],
2065
+ [
2066
+ "render-ui",
2067
+ "modal",
1881
2068
  {
1882
2069
  "type": "stack",
1883
- "direction": "horizontal",
2070
+ "direction": "vertical",
1884
2071
  "gap": "md",
1885
2072
  "children": [
1886
2073
  {
1887
- "type": "typography",
1888
- "variant": "caption",
1889
- "content": "Current:"
2074
+ "type": "stack",
2075
+ "direction": "horizontal",
2076
+ "gap": "sm",
2077
+ "children": [
2078
+ {
2079
+ "type": "icon",
2080
+ "name": "repeat",
2081
+ "size": "md"
2082
+ },
2083
+ {
2084
+ "type": "typography",
2085
+ "content": "Switch Provider",
2086
+ "variant": "h3"
2087
+ }
2088
+ ]
1890
2089
  },
1891
2090
  {
1892
- "type": "badge",
1893
- "label": "@entity.currentProvider"
2091
+ "type": "divider"
1894
2092
  },
1895
2093
  {
1896
- "type": "badge",
1897
- "label": "@entity.currentModel"
2094
+ "type": "stack",
2095
+ "direction": "horizontal",
2096
+ "gap": "md",
2097
+ "children": [
2098
+ {
2099
+ "type": "typography",
2100
+ "variant": "caption",
2101
+ "content": "Current:"
2102
+ },
2103
+ {
2104
+ "type": "badge",
2105
+ "label": "@entity.currentProvider"
2106
+ },
2107
+ {
2108
+ "type": "badge",
2109
+ "label": "@entity.currentModel"
2110
+ }
2111
+ ]
2112
+ },
2113
+ {
2114
+ "type": "form-section",
2115
+ "entity": "AgentLearner",
2116
+ "mode": "edit",
2117
+ "submitEvent": "SAVE",
2118
+ "cancelEvent": "CLOSE",
2119
+ "fields": [
2120
+ "currentProvider",
2121
+ "currentModel"
2122
+ ]
1898
2123
  }
1899
2124
  ]
1900
- },
1901
- {
1902
- "type": "form-section",
1903
- "entity": "AgentLearner",
1904
- "mode": "edit",
1905
- "submitEvent": "SAVE",
1906
- "cancelEvent": "CLOSE",
1907
- "fields": [
1908
- "currentProvider",
1909
- "currentModel"
1910
- ]
1911
2125
  }
1912
2126
  ]
1913
- }
1914
- ]
1915
- ],
1916
- "CLOSE": [
1917
- [
1918
- "render-ui",
1919
- "modal",
1920
- null
1921
- ],
1922
- [
1923
- "notify",
1924
- "Cancelled",
1925
- "info"
1926
- ],
1927
- [
1928
- "ref",
1929
- "AgentLearner"
1930
- ],
1931
- [
1932
- "render-ui",
1933
- "main",
1934
- {
1935
- "type": "stack",
1936
- "direction": "vertical",
1937
- "gap": "lg",
1938
- "children": [
2127
+ ]
2128
+ },
2129
+ {
2130
+ "from": "open",
2131
+ "to": "closed",
2132
+ "event": "CLOSE",
2133
+ "effects": [
2134
+ [
2135
+ "render-ui",
2136
+ "modal",
2137
+ null
2138
+ ],
2139
+ [
2140
+ "notify",
2141
+ "Cancelled",
2142
+ "info"
2143
+ ],
2144
+ [
2145
+ "ref",
2146
+ "AgentLearner"
2147
+ ],
2148
+ [
2149
+ "render-ui",
2150
+ "main",
1939
2151
  {
1940
2152
  "type": "stack",
1941
- "direction": "horizontal",
1942
- "gap": "md",
1943
- "justify": "space-between",
2153
+ "direction": "vertical",
2154
+ "gap": "lg",
1944
2155
  "children": [
1945
2156
  {
1946
2157
  "type": "stack",
1947
2158
  "direction": "horizontal",
1948
2159
  "gap": "md",
2160
+ "justify": "space-between",
1949
2161
  "children": [
1950
2162
  {
1951
- "type": "icon",
1952
- "name": "repeat",
1953
- "size": "lg"
2163
+ "type": "stack",
2164
+ "direction": "horizontal",
2165
+ "gap": "md",
2166
+ "children": [
2167
+ {
2168
+ "type": "icon",
2169
+ "name": "repeat",
2170
+ "size": "lg"
2171
+ },
2172
+ {
2173
+ "type": "typography",
2174
+ "content": "Switch Provider",
2175
+ "variant": "h2"
2176
+ }
2177
+ ]
1954
2178
  },
1955
2179
  {
1956
- "type": "typography",
1957
- "content": "Switch Provider",
1958
- "variant": "h2"
2180
+ "type": "button",
2181
+ "label": "Open",
2182
+ "event": "SWITCH",
2183
+ "variant": "primary",
2184
+ "icon": "repeat"
1959
2185
  }
1960
2186
  ]
1961
2187
  },
1962
2188
  {
1963
- "type": "button",
1964
- "label": "Open",
1965
- "event": "SWITCH",
1966
- "variant": "primary",
1967
- "icon": "repeat"
2189
+ "type": "divider"
2190
+ },
2191
+ {
2192
+ "type": "empty-state",
2193
+ "icon": "repeat",
2194
+ "title": "Nothing open",
2195
+ "description": "Click Open to view details in a modal overlay."
1968
2196
  }
1969
2197
  ]
1970
- },
1971
- {
1972
- "type": "divider"
1973
- },
1974
- {
1975
- "type": "empty-state",
1976
- "icon": "repeat",
1977
- "title": "Nothing open",
1978
- "description": "Click Open to view details in a modal overlay."
1979
2198
  }
1980
2199
  ]
1981
- }
1982
- ]
1983
- ],
1984
- "SAVE": [
1985
- [
1986
- "persist",
1987
- "update",
1988
- "AgentLearner",
1989
- "@payload.data"
1990
- ],
1991
- [
1992
- "render-ui",
1993
- "modal",
1994
- null
1995
- ],
1996
- [
1997
- "emit",
1998
- "SWITCHED"
1999
- ],
2000
- [
2001
- "ref",
2002
- "AgentLearner"
2003
- ],
2004
- [
2005
- "render-ui",
2006
- "main",
2007
- {
2008
- "type": "stack",
2009
- "direction": "vertical",
2010
- "gap": "lg",
2011
- "children": [
2200
+ ]
2201
+ },
2202
+ {
2203
+ "from": "open",
2204
+ "to": "closed",
2205
+ "event": "SAVE",
2206
+ "effects": [
2207
+ [
2208
+ "persist",
2209
+ "update",
2210
+ "AgentLearner",
2211
+ "@payload.data"
2212
+ ],
2213
+ [
2214
+ "render-ui",
2215
+ "modal",
2216
+ null
2217
+ ],
2218
+ [
2219
+ "emit",
2220
+ "SWITCHED"
2221
+ ],
2222
+ [
2223
+ "ref",
2224
+ "AgentLearner"
2225
+ ],
2226
+ [
2227
+ "render-ui",
2228
+ "main",
2012
2229
  {
2013
2230
  "type": "stack",
2014
- "direction": "horizontal",
2015
- "gap": "md",
2016
- "justify": "space-between",
2231
+ "direction": "vertical",
2232
+ "gap": "lg",
2017
2233
  "children": [
2018
2234
  {
2019
2235
  "type": "stack",
2020
2236
  "direction": "horizontal",
2021
2237
  "gap": "md",
2238
+ "justify": "space-between",
2022
2239
  "children": [
2023
2240
  {
2024
- "type": "icon",
2025
- "name": "repeat",
2026
- "size": "lg"
2241
+ "type": "stack",
2242
+ "direction": "horizontal",
2243
+ "gap": "md",
2244
+ "children": [
2245
+ {
2246
+ "type": "icon",
2247
+ "name": "repeat",
2248
+ "size": "lg"
2249
+ },
2250
+ {
2251
+ "type": "typography",
2252
+ "content": "Switch Provider",
2253
+ "variant": "h2"
2254
+ }
2255
+ ]
2027
2256
  },
2028
2257
  {
2029
- "type": "typography",
2030
- "content": "Switch Provider",
2031
- "variant": "h2"
2258
+ "type": "button",
2259
+ "label": "Open",
2260
+ "event": "SWITCH",
2261
+ "variant": "primary",
2262
+ "icon": "repeat"
2032
2263
  }
2033
2264
  ]
2034
2265
  },
2035
2266
  {
2036
- "type": "button",
2037
- "label": "Open",
2038
- "event": "SWITCH",
2039
- "variant": "primary",
2040
- "icon": "repeat"
2267
+ "type": "divider"
2268
+ },
2269
+ {
2270
+ "type": "empty-state",
2271
+ "icon": "repeat",
2272
+ "title": "Nothing open",
2273
+ "description": "Click Open to view details in a modal overlay."
2041
2274
  }
2042
2275
  ]
2043
- },
2044
- {
2045
- "type": "divider"
2046
- },
2047
- {
2048
- "type": "empty-state",
2049
- "icon": "repeat",
2050
- "title": "Nothing open",
2051
- "description": "Click Open to view details in a modal overlay."
2052
2276
  }
2277
+ ],
2278
+ [
2279
+ "notify",
2280
+ "AgentLearner updated successfully"
2053
2281
  ]
2054
- }
2055
- ]
2282
+ ]
2283
+ }
2056
2284
  ]
2057
- }
2285
+ },
2286
+ "listens": []
2058
2287
  }
2059
2288
  ],
2060
2289
  "pages": [
@@ -2081,5 +2310,6 @@
2081
2310
  }
2082
2311
  ]
2083
2312
  }
2084
- ]
2085
- }
2313
+ ],
2314
+ "description": "Composes agent atoms + UI atoms into an outcome learning pipeline with an activity log for learning history and a browse list for records. Listens for task success/failure events, memorizes outcomes, reinforces memories for successes, applies decay for failures, and adjusts provider routing based on accumulated results. Composed atoms: - stdAgentMemory: memorize outcomes, reinforce/decay based on results - stdAgentCompletion: analyze outcome impact via LLM - stdAgentProvider: adjust provider routing based on success patterns - stdAgentActivityLog: chronological learning timeline - stdBrowse: browsable records 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."
2315
+ }