@almadar/std 6.5.2 → 7.2.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (307) hide show
  1. package/behaviors/registry/atoms/std-agent-activity-log.orb +240 -227
  2. package/behaviors/registry/atoms/std-agent-chat-thread.orb +296 -199
  3. package/behaviors/registry/atoms/std-agent-classifier.orb +384 -133
  4. package/behaviors/registry/atoms/std-agent-completion.orb +404 -141
  5. package/behaviors/registry/atoms/std-agent-context-window.orb +904 -607
  6. package/behaviors/registry/atoms/std-agent-conversation.orb +443 -234
  7. package/behaviors/registry/atoms/std-agent-memory.orb +584 -150
  8. package/behaviors/registry/atoms/std-agent-provider.orb +431 -174
  9. package/behaviors/registry/atoms/std-agent-search.orb +217 -61
  10. package/behaviors/registry/atoms/std-agent-session.orb +406 -159
  11. package/behaviors/registry/atoms/std-agent-step-progress.orb +314 -294
  12. package/behaviors/registry/atoms/std-agent-token-gauge.orb +577 -500
  13. package/behaviors/registry/atoms/std-agent-tool-call.orb +328 -138
  14. package/behaviors/registry/atoms/std-async.orb +147 -86
  15. package/behaviors/registry/atoms/std-autoregressive.orb +64 -73
  16. package/behaviors/registry/atoms/std-browse.orb +260 -126
  17. package/behaviors/registry/atoms/std-cache-aside.orb +358 -259
  18. package/behaviors/registry/atoms/std-calendar.orb +280 -215
  19. package/behaviors/registry/atoms/std-circuit-breaker.orb +295 -234
  20. package/behaviors/registry/atoms/std-collision.orb +136 -135
  21. package/behaviors/registry/atoms/std-combat-log.orb +108 -90
  22. package/behaviors/registry/atoms/std-combat.orb +171 -98
  23. package/behaviors/registry/atoms/std-confirmation.orb +28 -300
  24. package/behaviors/registry/atoms/std-dialogue-box.orb +111 -30
  25. package/behaviors/registry/atoms/std-display.orb +491 -587
  26. package/behaviors/registry/atoms/std-drawer.orb +194 -121
  27. package/behaviors/registry/atoms/std-filter.orb +311 -326
  28. package/behaviors/registry/atoms/std-flip-card.orb +223 -177
  29. package/behaviors/registry/atoms/std-gallery.orb +130 -151
  30. package/behaviors/registry/atoms/std-game-audio.orb +133 -72
  31. package/behaviors/registry/atoms/std-game-canvas2d.orb +112 -52
  32. package/behaviors/registry/atoms/std-game-canvas3d.orb +150 -107
  33. package/behaviors/registry/atoms/std-game-hud.orb +87 -20
  34. package/behaviors/registry/atoms/std-game-menu.orb +32 -32
  35. package/behaviors/registry/atoms/std-game-over-screen.orb +100 -33
  36. package/behaviors/registry/atoms/std-gameflow.orb +147 -80
  37. package/behaviors/registry/atoms/std-input.orb +128 -393
  38. package/behaviors/registry/atoms/std-inventory-panel.orb +108 -71
  39. package/behaviors/registry/atoms/std-isometric-canvas.orb +156 -407
  40. package/behaviors/registry/atoms/std-loading.orb +127 -126
  41. package/behaviors/registry/atoms/std-modal.orb +30 -267
  42. package/behaviors/registry/atoms/std-movement.orb +391 -292
  43. package/behaviors/registry/atoms/std-notification.orb +133 -75
  44. package/behaviors/registry/atoms/std-overworld.orb +194 -121
  45. package/behaviors/registry/atoms/std-pagination.orb +120 -53
  46. package/behaviors/registry/atoms/std-physics2d.orb +94 -93
  47. package/behaviors/registry/atoms/std-platformer-canvas.orb +110 -98
  48. package/behaviors/registry/atoms/std-push.orb +172 -36
  49. package/behaviors/registry/atoms/std-quest.orb +552 -449
  50. package/behaviors/registry/atoms/std-rate-limiter.orb +242 -241
  51. package/behaviors/registry/atoms/std-rating.orb +123 -65
  52. package/behaviors/registry/atoms/std-related.orb +202 -26
  53. package/behaviors/registry/atoms/std-score-board.orb +109 -28
  54. package/behaviors/registry/atoms/std-score.orb +210 -146
  55. package/behaviors/registry/atoms/std-search.orb +265 -138
  56. package/behaviors/registry/atoms/std-selection.orb +311 -220
  57. package/behaviors/registry/atoms/std-service-custom-bearer.orb +199 -110
  58. package/behaviors/registry/atoms/std-service-custom-header.orb +206 -117
  59. package/behaviors/registry/atoms/std-service-custom-noauth.orb +197 -108
  60. package/behaviors/registry/atoms/std-service-custom-query.orb +193 -104
  61. package/behaviors/registry/atoms/std-service-email.orb +195 -107
  62. package/behaviors/registry/atoms/std-service-github.orb +216 -122
  63. package/behaviors/registry/atoms/std-service-llm.orb +204 -122
  64. package/behaviors/registry/atoms/std-service-oauth.orb +290 -204
  65. package/behaviors/registry/atoms/std-service-redis.orb +177 -92
  66. package/behaviors/registry/atoms/std-service-storage.orb +211 -122
  67. package/behaviors/registry/atoms/std-service-stripe.orb +236 -154
  68. package/behaviors/registry/atoms/std-service-twilio.orb +221 -137
  69. package/behaviors/registry/atoms/std-service-youtube.orb +327 -241
  70. package/behaviors/registry/atoms/std-simulation-canvas.orb +97 -36
  71. package/behaviors/registry/atoms/std-sort.orb +284 -207
  72. package/behaviors/registry/atoms/std-sprite.orb +150 -74
  73. package/behaviors/registry/atoms/std-tabs.orb +129 -62
  74. package/behaviors/registry/atoms/std-text-effects.orb +251 -190
  75. package/behaviors/registry/atoms/std-theme.orb +193 -135
  76. package/behaviors/registry/atoms/std-timer.orb +320 -344
  77. package/behaviors/registry/atoms/std-undo.orb +278 -199
  78. package/behaviors/registry/atoms/std-upload.orb +112 -111
  79. package/behaviors/registry/atoms/std-validate-on-save.orb +159 -151
  80. package/behaviors/registry/atoms/std-wizard.orb +445 -336
  81. package/behaviors/registry/molecules/std-agent-fix-loop.orb +876 -857
  82. package/behaviors/registry/molecules/std-agent-learner.orb +635 -654
  83. package/behaviors/registry/molecules/std-agent-planner.orb +581 -548
  84. package/behaviors/registry/molecules/std-agent-rag.orb +414 -410
  85. package/behaviors/registry/molecules/std-agent-tool-loop.orb +716 -711
  86. package/behaviors/registry/molecules/std-batch-selected-list.orb +28 -12
  87. package/behaviors/registry/molecules/std-builder-game.orb +86 -28
  88. package/behaviors/registry/molecules/std-calendar-booking.orb +32 -8
  89. package/behaviors/registry/molecules/std-cart.orb +347 -406
  90. package/behaviors/registry/molecules/std-classifier-game.orb +95 -37
  91. package/behaviors/registry/molecules/std-dashboard-tabbed.orb +16 -10
  92. package/behaviors/registry/molecules/std-debugger-game.orb +95 -37
  93. package/behaviors/registry/molecules/std-detail.orb +133 -138
  94. package/behaviors/registry/molecules/std-drawer-master-list.orb +12 -6
  95. package/behaviors/registry/molecules/std-event-handler-game.orb +91 -33
  96. package/behaviors/registry/molecules/std-filtered-list.orb +14 -8
  97. package/behaviors/registry/molecules/std-form-advanced.orb +242 -153
  98. package/behaviors/registry/molecules/std-gallery-filtered.orb +16 -10
  99. package/behaviors/registry/molecules/std-geospatial.orb +175 -122
  100. package/behaviors/registry/molecules/std-inventory.orb +216 -170
  101. package/behaviors/registry/molecules/std-list.orb +280 -205
  102. package/behaviors/registry/molecules/std-messaging.orb +146 -99
  103. package/behaviors/registry/molecules/std-negotiator-game.orb +95 -37
  104. package/behaviors/registry/molecules/std-platformer-game.orb +300 -171
  105. package/behaviors/registry/molecules/std-push-activity-log.orb +32 -8
  106. package/behaviors/registry/molecules/std-puzzle-game.orb +287 -146
  107. package/behaviors/registry/molecules/std-quiz.orb +322 -263
  108. package/behaviors/registry/molecules/std-related-master-detail.orb +21 -15
  109. package/behaviors/registry/molecules/std-sequencer-game.orb +92 -34
  110. package/behaviors/registry/molecules/std-service-content-pipeline.orb +268 -267
  111. package/behaviors/registry/molecules/std-service-custom-api-tester.orb +245 -152
  112. package/behaviors/registry/molecules/std-service-devops-toolkit.orb +633 -294
  113. package/behaviors/registry/molecules/std-service-notification-hub.orb +237 -152
  114. package/behaviors/registry/molecules/std-service-payment-flow.orb +310 -180
  115. package/behaviors/registry/molecules/std-simulator-game.orb +96 -38
  116. package/behaviors/registry/molecules/std-turn-based-battle.orb +247 -137
  117. package/behaviors/registry/molecules/std-wizard-form.orb +60 -9
  118. package/behaviors/registry/organisms/std-agent-assistant.orb +2810 -1833
  119. package/behaviors/registry/organisms/std-agent-builder.orb +6401 -4539
  120. package/behaviors/registry/organisms/std-agent-pipeline.orb +5028 -3497
  121. package/behaviors/registry/organisms/std-agent-reviewer.orb +2219 -1406
  122. package/behaviors/registry/organisms/std-agent-tutor.orb +2069 -1384
  123. package/behaviors/registry/organisms/std-api-gateway.orb +1419 -870
  124. package/behaviors/registry/organisms/std-arcade-game.orb +488 -231
  125. package/behaviors/registry/organisms/std-booking-system.orb +2457 -1467
  126. package/behaviors/registry/organisms/std-cicd-pipeline.orb +1367 -825
  127. package/behaviors/registry/organisms/std-cms.orb +1549 -566
  128. package/behaviors/registry/organisms/std-coding-academy.orb +744 -495
  129. package/behaviors/registry/organisms/std-crm.orb +1997 -1014
  130. package/behaviors/registry/organisms/std-devops-dashboard.orb +2160 -1606
  131. package/behaviors/registry/organisms/std-ecommerce.orb +2279 -1153
  132. package/behaviors/registry/organisms/std-finance-tracker.orb +1375 -727
  133. package/behaviors/registry/organisms/std-healthcare.orb +2940 -1703
  134. package/behaviors/registry/organisms/std-helpdesk.orb +1443 -781
  135. package/behaviors/registry/organisms/std-hr-portal.orb +2361 -1440
  136. package/behaviors/registry/organisms/std-iot-dashboard.orb +1491 -1026
  137. package/behaviors/registry/organisms/std-lms.orb +1629 -1046
  138. package/behaviors/registry/organisms/std-logic-training.orb +321 -134
  139. package/behaviors/registry/organisms/std-platformer-app.orb +855 -417
  140. package/behaviors/registry/organisms/std-project-manager.orb +1795 -877
  141. package/behaviors/registry/organisms/std-puzzle-app.orb +407 -206
  142. package/behaviors/registry/organisms/std-realtime-chat.orb +1436 -844
  143. package/behaviors/registry/organisms/std-rpg-game.orb +1522 -1007
  144. package/behaviors/registry/organisms/std-service-marketplace.orb +2110 -1204
  145. package/behaviors/registry/organisms/std-service-research-assistant.orb +1285 -1078
  146. package/behaviors/registry/organisms/std-social-feed.orb +612 -252
  147. package/behaviors/registry/organisms/std-stem-lab.orb +642 -450
  148. package/behaviors/registry/organisms/std-strategy-game.orb +893 -650
  149. package/behaviors/registry/organisms/std-trading-dashboard.orb +1271 -805
  150. package/dist/behaviors/registry/atoms/std-agent-activity-log.orb +240 -227
  151. package/dist/behaviors/registry/atoms/std-agent-chat-thread.orb +296 -199
  152. package/dist/behaviors/registry/atoms/std-agent-classifier.orb +384 -133
  153. package/dist/behaviors/registry/atoms/std-agent-completion.orb +404 -141
  154. package/dist/behaviors/registry/atoms/std-agent-context-window.orb +904 -607
  155. package/dist/behaviors/registry/atoms/std-agent-conversation.orb +443 -234
  156. package/dist/behaviors/registry/atoms/std-agent-memory.orb +584 -150
  157. package/dist/behaviors/registry/atoms/std-agent-provider.orb +431 -174
  158. package/dist/behaviors/registry/atoms/std-agent-search.orb +217 -61
  159. package/dist/behaviors/registry/atoms/std-agent-session.orb +406 -159
  160. package/dist/behaviors/registry/atoms/std-agent-step-progress.orb +314 -294
  161. package/dist/behaviors/registry/atoms/std-agent-token-gauge.orb +577 -500
  162. package/dist/behaviors/registry/atoms/std-agent-tool-call.orb +328 -138
  163. package/dist/behaviors/registry/atoms/std-async.orb +147 -86
  164. package/dist/behaviors/registry/atoms/std-autoregressive.orb +64 -73
  165. package/dist/behaviors/registry/atoms/std-browse.orb +260 -126
  166. package/dist/behaviors/registry/atoms/std-cache-aside.orb +358 -259
  167. package/dist/behaviors/registry/atoms/std-calendar.orb +280 -215
  168. package/dist/behaviors/registry/atoms/std-circuit-breaker.orb +295 -234
  169. package/dist/behaviors/registry/atoms/std-collision.orb +136 -135
  170. package/dist/behaviors/registry/atoms/std-combat-log.orb +108 -90
  171. package/dist/behaviors/registry/atoms/std-combat.orb +171 -98
  172. package/dist/behaviors/registry/atoms/std-confirmation.orb +28 -300
  173. package/dist/behaviors/registry/atoms/std-dialogue-box.orb +111 -30
  174. package/dist/behaviors/registry/atoms/std-display.orb +491 -587
  175. package/dist/behaviors/registry/atoms/std-drawer.orb +194 -121
  176. package/dist/behaviors/registry/atoms/std-filter.orb +311 -326
  177. package/dist/behaviors/registry/atoms/std-flip-card.orb +223 -177
  178. package/dist/behaviors/registry/atoms/std-gallery.orb +130 -151
  179. package/dist/behaviors/registry/atoms/std-game-audio.orb +133 -72
  180. package/dist/behaviors/registry/atoms/std-game-canvas2d.orb +112 -52
  181. package/dist/behaviors/registry/atoms/std-game-canvas3d.orb +150 -107
  182. package/dist/behaviors/registry/atoms/std-game-hud.orb +87 -20
  183. package/dist/behaviors/registry/atoms/std-game-menu.orb +32 -32
  184. package/dist/behaviors/registry/atoms/std-game-over-screen.orb +100 -33
  185. package/dist/behaviors/registry/atoms/std-gameflow.orb +147 -80
  186. package/dist/behaviors/registry/atoms/std-input.orb +128 -393
  187. package/dist/behaviors/registry/atoms/std-inventory-panel.orb +108 -71
  188. package/dist/behaviors/registry/atoms/std-isometric-canvas.orb +156 -407
  189. package/dist/behaviors/registry/atoms/std-loading.orb +127 -126
  190. package/dist/behaviors/registry/atoms/std-modal.orb +30 -267
  191. package/dist/behaviors/registry/atoms/std-movement.orb +391 -292
  192. package/dist/behaviors/registry/atoms/std-notification.orb +133 -75
  193. package/dist/behaviors/registry/atoms/std-overworld.orb +194 -121
  194. package/dist/behaviors/registry/atoms/std-pagination.orb +120 -53
  195. package/dist/behaviors/registry/atoms/std-physics2d.orb +94 -93
  196. package/dist/behaviors/registry/atoms/std-platformer-canvas.orb +110 -98
  197. package/dist/behaviors/registry/atoms/std-push.orb +172 -36
  198. package/dist/behaviors/registry/atoms/std-quest.orb +552 -449
  199. package/dist/behaviors/registry/atoms/std-rate-limiter.orb +242 -241
  200. package/dist/behaviors/registry/atoms/std-rating.orb +123 -65
  201. package/dist/behaviors/registry/atoms/std-related.orb +202 -26
  202. package/dist/behaviors/registry/atoms/std-score-board.orb +109 -28
  203. package/dist/behaviors/registry/atoms/std-score.orb +210 -146
  204. package/dist/behaviors/registry/atoms/std-search.orb +265 -138
  205. package/dist/behaviors/registry/atoms/std-selection.orb +311 -220
  206. package/dist/behaviors/registry/atoms/std-service-custom-bearer.orb +199 -110
  207. package/dist/behaviors/registry/atoms/std-service-custom-header.orb +206 -117
  208. package/dist/behaviors/registry/atoms/std-service-custom-noauth.orb +197 -108
  209. package/dist/behaviors/registry/atoms/std-service-custom-query.orb +193 -104
  210. package/dist/behaviors/registry/atoms/std-service-email.orb +195 -107
  211. package/dist/behaviors/registry/atoms/std-service-github.orb +216 -122
  212. package/dist/behaviors/registry/atoms/std-service-llm.orb +204 -122
  213. package/dist/behaviors/registry/atoms/std-service-oauth.orb +290 -204
  214. package/dist/behaviors/registry/atoms/std-service-redis.orb +177 -92
  215. package/dist/behaviors/registry/atoms/std-service-storage.orb +211 -122
  216. package/dist/behaviors/registry/atoms/std-service-stripe.orb +236 -154
  217. package/dist/behaviors/registry/atoms/std-service-twilio.orb +221 -137
  218. package/dist/behaviors/registry/atoms/std-service-youtube.orb +327 -241
  219. package/dist/behaviors/registry/atoms/std-simulation-canvas.orb +97 -36
  220. package/dist/behaviors/registry/atoms/std-sort.orb +284 -207
  221. package/dist/behaviors/registry/atoms/std-sprite.orb +150 -74
  222. package/dist/behaviors/registry/atoms/std-tabs.orb +129 -62
  223. package/dist/behaviors/registry/atoms/std-text-effects.orb +251 -190
  224. package/dist/behaviors/registry/atoms/std-theme.orb +193 -135
  225. package/dist/behaviors/registry/atoms/std-timer.orb +320 -344
  226. package/dist/behaviors/registry/atoms/std-undo.orb +278 -199
  227. package/dist/behaviors/registry/atoms/std-upload.orb +112 -111
  228. package/dist/behaviors/registry/atoms/std-validate-on-save.orb +159 -151
  229. package/dist/behaviors/registry/atoms/std-wizard.orb +445 -336
  230. package/dist/behaviors/registry/molecules/std-agent-fix-loop.orb +876 -857
  231. package/dist/behaviors/registry/molecules/std-agent-learner.orb +635 -654
  232. package/dist/behaviors/registry/molecules/std-agent-planner.orb +581 -548
  233. package/dist/behaviors/registry/molecules/std-agent-rag.orb +414 -410
  234. package/dist/behaviors/registry/molecules/std-agent-tool-loop.orb +716 -711
  235. package/dist/behaviors/registry/molecules/std-batch-selected-list.orb +28 -12
  236. package/dist/behaviors/registry/molecules/std-builder-game.orb +86 -28
  237. package/dist/behaviors/registry/molecules/std-calendar-booking.orb +32 -8
  238. package/dist/behaviors/registry/molecules/std-cart.orb +347 -406
  239. package/dist/behaviors/registry/molecules/std-classifier-game.orb +95 -37
  240. package/dist/behaviors/registry/molecules/std-dashboard-tabbed.orb +16 -10
  241. package/dist/behaviors/registry/molecules/std-debugger-game.orb +95 -37
  242. package/dist/behaviors/registry/molecules/std-detail.orb +133 -138
  243. package/dist/behaviors/registry/molecules/std-drawer-master-list.orb +12 -6
  244. package/dist/behaviors/registry/molecules/std-event-handler-game.orb +91 -33
  245. package/dist/behaviors/registry/molecules/std-filtered-list.orb +14 -8
  246. package/dist/behaviors/registry/molecules/std-form-advanced.orb +242 -153
  247. package/dist/behaviors/registry/molecules/std-gallery-filtered.orb +16 -10
  248. package/dist/behaviors/registry/molecules/std-geospatial.orb +175 -122
  249. package/dist/behaviors/registry/molecules/std-inventory.orb +216 -170
  250. package/dist/behaviors/registry/molecules/std-list.orb +280 -205
  251. package/dist/behaviors/registry/molecules/std-messaging.orb +146 -99
  252. package/dist/behaviors/registry/molecules/std-negotiator-game.orb +95 -37
  253. package/dist/behaviors/registry/molecules/std-platformer-game.orb +300 -171
  254. package/dist/behaviors/registry/molecules/std-push-activity-log.orb +32 -8
  255. package/dist/behaviors/registry/molecules/std-puzzle-game.orb +287 -146
  256. package/dist/behaviors/registry/molecules/std-quiz.orb +322 -263
  257. package/dist/behaviors/registry/molecules/std-related-master-detail.orb +21 -15
  258. package/dist/behaviors/registry/molecules/std-sequencer-game.orb +92 -34
  259. package/dist/behaviors/registry/molecules/std-service-content-pipeline.orb +268 -267
  260. package/dist/behaviors/registry/molecules/std-service-custom-api-tester.orb +245 -152
  261. package/dist/behaviors/registry/molecules/std-service-devops-toolkit.orb +633 -294
  262. package/dist/behaviors/registry/molecules/std-service-notification-hub.orb +237 -152
  263. package/dist/behaviors/registry/molecules/std-service-payment-flow.orb +310 -180
  264. package/dist/behaviors/registry/molecules/std-simulator-game.orb +96 -38
  265. package/dist/behaviors/registry/molecules/std-turn-based-battle.orb +247 -137
  266. package/dist/behaviors/registry/molecules/std-wizard-form.orb +60 -9
  267. package/dist/behaviors/registry/organisms/std-agent-assistant.orb +2810 -1833
  268. package/dist/behaviors/registry/organisms/std-agent-builder.orb +6401 -4539
  269. package/dist/behaviors/registry/organisms/std-agent-pipeline.orb +5028 -3497
  270. package/dist/behaviors/registry/organisms/std-agent-reviewer.orb +2219 -1406
  271. package/dist/behaviors/registry/organisms/std-agent-tutor.orb +2069 -1384
  272. package/dist/behaviors/registry/organisms/std-api-gateway.orb +1419 -870
  273. package/dist/behaviors/registry/organisms/std-arcade-game.orb +488 -231
  274. package/dist/behaviors/registry/organisms/std-booking-system.orb +2457 -1467
  275. package/dist/behaviors/registry/organisms/std-cicd-pipeline.orb +1367 -825
  276. package/dist/behaviors/registry/organisms/std-cms.orb +1549 -566
  277. package/dist/behaviors/registry/organisms/std-coding-academy.orb +744 -495
  278. package/dist/behaviors/registry/organisms/std-crm.orb +1997 -1014
  279. package/dist/behaviors/registry/organisms/std-devops-dashboard.orb +2160 -1606
  280. package/dist/behaviors/registry/organisms/std-ecommerce.orb +2279 -1153
  281. package/dist/behaviors/registry/organisms/std-finance-tracker.orb +1375 -727
  282. package/dist/behaviors/registry/organisms/std-healthcare.orb +2940 -1703
  283. package/dist/behaviors/registry/organisms/std-helpdesk.orb +1443 -781
  284. package/dist/behaviors/registry/organisms/std-hr-portal.orb +2361 -1440
  285. package/dist/behaviors/registry/organisms/std-iot-dashboard.orb +1491 -1026
  286. package/dist/behaviors/registry/organisms/std-lms.orb +1629 -1046
  287. package/dist/behaviors/registry/organisms/std-logic-training.orb +321 -134
  288. package/dist/behaviors/registry/organisms/std-platformer-app.orb +855 -417
  289. package/dist/behaviors/registry/organisms/std-project-manager.orb +1795 -877
  290. package/dist/behaviors/registry/organisms/std-puzzle-app.orb +407 -206
  291. package/dist/behaviors/registry/organisms/std-realtime-chat.orb +1436 -844
  292. package/dist/behaviors/registry/organisms/std-rpg-game.orb +1522 -1007
  293. package/dist/behaviors/registry/organisms/std-service-marketplace.orb +2110 -1204
  294. package/dist/behaviors/registry/organisms/std-service-research-assistant.orb +1285 -1078
  295. package/dist/behaviors/registry/organisms/std-social-feed.orb +612 -252
  296. package/dist/behaviors/registry/organisms/std-stem-lab.orb +642 -450
  297. package/dist/behaviors/registry/organisms/std-strategy-game.orb +893 -650
  298. package/dist/behaviors/registry/organisms/std-trading-dashboard.orb +1271 -805
  299. package/dist/index.js +16 -4
  300. package/dist/index.js.map +1 -1
  301. package/dist/modules/core.js +16 -4
  302. package/dist/modules/core.js.map +1 -1
  303. package/dist/modules/index.js +16 -4
  304. package/dist/modules/index.js.map +1 -1
  305. package/dist/registry.js +16 -4
  306. package/dist/registry.js.map +1 -1
  307. package/package.json +2 -2
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "std-service-research-assistant",
3
3
  "version": "1.0.0",
4
- "description": "Content research assistant organism. Composes service atoms/molecules via compose: - stdServiceContentPipeline(Research): YouTube search + LLM summarization - stdServiceRedis(CacheEntry): Redis cache management (standalone) - stdServiceStorage(Report): saving research reports to storage (standalone) - stdServiceCustomBearer(KnowledgeQuery): custom knowledge API queries (standalone)",
4
+ "description": "std-service-research-assistant as a Function",
5
5
  "orbitals": [
6
6
  {
7
7
  "name": "ResearchOrbital",
@@ -49,8 +49,8 @@
49
49
  "traits": [
50
50
  {
51
51
  "name": "ResearchPipeline",
52
- "linkedEntity": "Research",
53
52
  "category": "interaction",
53
+ "linkedEntity": "Research",
54
54
  "stateMachine": {
55
55
  "states": [
56
56
  {
@@ -93,9 +93,20 @@
93
93
  }
94
94
  ]
95
95
  },
96
+ {
97
+ "key": "FAILED",
98
+ "name": "Failed",
99
+ "payload": [
100
+ {
101
+ "name": "error",
102
+ "type": "string",
103
+ "required": true
104
+ }
105
+ ]
106
+ },
96
107
  {
97
108
  "key": "SELECT_AND_SUMMARIZE",
98
- "name": "Select and Summarize",
109
+ "name": "Select And Summarize",
99
110
  "payload": [
100
111
  {
101
112
  "name": "videoId",
@@ -104,6 +115,10 @@
104
115
  }
105
116
  ]
106
117
  },
118
+ {
119
+ "key": "RESET",
120
+ "name": "Reset"
121
+ },
107
122
  {
108
123
  "key": "VIDEO_FETCHED",
109
124
  "name": "Video Fetched",
@@ -130,21 +145,6 @@
130
145
  "required": true
131
146
  }
132
147
  ]
133
- },
134
- {
135
- "key": "FAILED",
136
- "name": "Failed",
137
- "payload": [
138
- {
139
- "name": "error",
140
- "type": "string",
141
- "required": true
142
- }
143
- ]
144
- },
145
- {
146
- "key": "RESET",
147
- "name": "Reset"
148
148
  }
149
149
  ],
150
150
  "transitions": [
@@ -157,8 +157,6 @@
157
157
  "render-ui",
158
158
  "main",
159
159
  {
160
- "type": "dashboard-layout",
161
- "appName": "ResearchAssistant",
162
160
  "navItems": [
163
161
  {
164
162
  "label": "Research",
@@ -166,14 +164,14 @@
166
164
  "icon": "search"
167
165
  },
168
166
  {
167
+ "icon": "database",
169
168
  "label": "Cache",
170
- "href": "/cache",
171
- "icon": "database"
169
+ "href": "/cache"
172
170
  },
173
171
  {
174
172
  "label": "Reports",
175
- "href": "/reports",
176
- "icon": "file-text"
173
+ "icon": "file-text",
174
+ "href": "/reports"
177
175
  },
178
176
  {
179
177
  "label": "Knowledge",
@@ -181,29 +179,30 @@
181
179
  "icon": "book-open"
182
180
  }
183
181
  ],
182
+ "appName": "ResearchAssistant",
183
+ "type": "dashboard-layout",
184
184
  "children": [
185
185
  {
186
186
  "type": "stack",
187
- "direction": "vertical",
188
187
  "gap": "lg",
189
188
  "children": [
190
189
  {
191
- "type": "stack",
192
190
  "direction": "horizontal",
193
- "gap": "sm",
194
- "align": "center",
191
+ "type": "stack",
195
192
  "children": [
196
193
  {
197
194
  "type": "icon",
198
- "name": "search",
199
- "size": "lg"
195
+ "size": "lg",
196
+ "name": "search"
200
197
  },
201
198
  {
202
199
  "type": "typography",
203
- "content": "Content Research",
204
- "variant": "h2"
200
+ "variant": "h2",
201
+ "content": "Content Research"
205
202
  }
206
- ]
203
+ ],
204
+ "gap": "sm",
205
+ "align": "center"
207
206
  },
208
207
  {
209
208
  "type": "divider"
@@ -213,28 +212,29 @@
213
212
  "children": [
214
213
  {
215
214
  "type": "stack",
216
- "direction": "vertical",
217
- "gap": "md",
218
215
  "children": [
219
216
  {
220
- "type": "typography",
221
217
  "content": "Search YouTube for content to summarize",
218
+ "type": "typography",
222
219
  "variant": "body"
223
220
  },
224
221
  {
225
222
  "type": "form-section",
226
- "entity": "Research",
227
223
  "mode": "edit",
228
- "submitEvent": "SEARCH",
224
+ "entity": "Research",
229
225
  "fields": [
230
226
  "query"
231
- ]
227
+ ],
228
+ "submitEvent": "SEARCH"
232
229
  }
233
- ]
230
+ ],
231
+ "gap": "md",
232
+ "direction": "vertical"
234
233
  }
235
234
  ]
236
235
  }
237
- ]
236
+ ],
237
+ "direction": "vertical"
238
238
  }
239
239
  ]
240
240
  }
@@ -257,7 +257,7 @@
257
257
  "search",
258
258
  {
259
259
  "query": "@entity.query",
260
- "maxResults": 5,
260
+ "maxResults": 5.0,
261
261
  "type": "video"
262
262
  }
263
263
  ],
@@ -265,34 +265,10 @@
265
265
  "render-ui",
266
266
  "main",
267
267
  {
268
- "type": "dashboard-layout",
269
268
  "appName": "ResearchAssistant",
270
- "navItems": [
271
- {
272
- "label": "Research",
273
- "href": "/research",
274
- "icon": "search"
275
- },
276
- {
277
- "label": "Cache",
278
- "href": "/cache",
279
- "icon": "database"
280
- },
281
- {
282
- "label": "Reports",
283
- "href": "/reports",
284
- "icon": "file-text"
285
- },
286
- {
287
- "label": "Knowledge",
288
- "href": "/knowledge",
289
- "icon": "book-open"
290
- }
291
- ],
269
+ "type": "dashboard-layout",
292
270
  "children": [
293
271
  {
294
- "type": "stack",
295
- "direction": "vertical",
296
272
  "gap": "lg",
297
273
  "align": "center",
298
274
  "children": [
@@ -311,11 +287,35 @@
311
287
  "size": "lg"
312
288
  },
313
289
  {
314
- "type": "typography",
315
290
  "content": "@entity.query",
291
+ "type": "typography",
316
292
  "variant": "caption"
317
293
  }
318
- ]
294
+ ],
295
+ "direction": "vertical",
296
+ "type": "stack"
297
+ }
298
+ ],
299
+ "navItems": [
300
+ {
301
+ "icon": "search",
302
+ "href": "/research",
303
+ "label": "Research"
304
+ },
305
+ {
306
+ "label": "Cache",
307
+ "href": "/cache",
308
+ "icon": "database"
309
+ },
310
+ {
311
+ "icon": "file-text",
312
+ "label": "Reports",
313
+ "href": "/reports"
314
+ },
315
+ {
316
+ "href": "/knowledge",
317
+ "icon": "book-open",
318
+ "label": "Knowledge"
319
319
  }
320
320
  ]
321
321
  }
@@ -341,97 +341,176 @@
341
341
  "navItems": [
342
342
  {
343
343
  "label": "Research",
344
- "href": "/research",
345
- "icon": "search"
344
+ "icon": "search",
345
+ "href": "/research"
346
346
  },
347
347
  {
348
- "label": "Cache",
349
348
  "href": "/cache",
349
+ "label": "Cache",
350
350
  "icon": "database"
351
351
  },
352
352
  {
353
- "label": "Reports",
354
353
  "href": "/reports",
355
- "icon": "file-text"
354
+ "icon": "file-text",
355
+ "label": "Reports"
356
356
  },
357
357
  {
358
- "label": "Knowledge",
359
358
  "href": "/knowledge",
360
- "icon": "book-open"
359
+ "icon": "book-open",
360
+ "label": "Knowledge"
361
361
  }
362
362
  ],
363
363
  "children": [
364
364
  {
365
- "type": "stack",
366
- "direction": "vertical",
367
- "gap": "lg",
368
365
  "children": [
369
366
  {
370
- "type": "stack",
371
- "direction": "horizontal",
372
367
  "gap": "sm",
373
- "align": "center",
374
368
  "justify": "space-between",
369
+ "direction": "horizontal",
375
370
  "children": [
376
371
  {
372
+ "align": "center",
377
373
  "type": "stack",
378
- "direction": "horizontal",
379
374
  "gap": "sm",
380
- "align": "center",
381
375
  "children": [
382
376
  {
383
- "type": "icon",
384
377
  "name": "video",
385
- "size": "lg"
378
+ "size": "lg",
379
+ "type": "icon"
386
380
  },
387
381
  {
388
- "type": "typography",
389
382
  "content": "Search Results",
383
+ "type": "typography",
390
384
  "variant": "h2"
391
385
  }
392
- ]
386
+ ],
387
+ "direction": "horizontal"
393
388
  },
394
389
  {
395
390
  "type": "button",
396
- "label": "New Search",
397
391
  "event": "RESET",
392
+ "label": "New Search",
398
393
  "variant": "ghost",
399
394
  "icon": "rotate-ccw"
400
395
  }
401
- ]
396
+ ],
397
+ "align": "center",
398
+ "type": "stack"
402
399
  },
403
400
  {
404
401
  "type": "divider"
405
402
  },
406
403
  {
407
- "type": "data-grid",
408
- "entity": "Research",
409
- "emptyIcon": "inbox",
410
- "emptyTitle": "No results found",
411
- "emptyDescription": "Try a different search query.",
412
404
  "itemActions": [
413
405
  {
414
- "label": "Summarize",
406
+ "size": "sm",
415
407
  "event": "SELECT_AND_SUMMARIZE",
416
408
  "variant": "primary",
417
- "size": "sm"
409
+ "label": "Summarize"
418
410
  }
419
411
  ],
420
412
  "columns": [
421
413
  {
422
- "name": "videoTitle",
414
+ "icon": "video",
423
415
  "label": "Title",
424
416
  "variant": "h4",
425
- "icon": "video"
417
+ "name": "videoTitle"
426
418
  },
427
419
  {
428
- "name": "videoDescription",
420
+ "variant": "caption",
429
421
  "label": "Description",
430
- "variant": "caption"
422
+ "name": "videoDescription"
431
423
  }
432
- ]
424
+ ],
425
+ "emptyIcon": "inbox",
426
+ "emptyTitle": "No results found",
427
+ "emptyDescription": "Try a different search query.",
428
+ "entity": "Research",
429
+ "type": "data-grid"
433
430
  }
434
- ]
431
+ ],
432
+ "type": "stack",
433
+ "gap": "lg",
434
+ "direction": "vertical"
435
+ }
436
+ ]
437
+ }
438
+ ]
439
+ ]
440
+ },
441
+ {
442
+ "from": "searching",
443
+ "to": "error",
444
+ "event": "FAILED",
445
+ "effects": [
446
+ [
447
+ "set",
448
+ "@entity.error",
449
+ "@payload.error"
450
+ ],
451
+ [
452
+ "set",
453
+ "@entity.pipelineStatus",
454
+ "error"
455
+ ],
456
+ [
457
+ "render-ui",
458
+ "main",
459
+ {
460
+ "children": [
461
+ {
462
+ "type": "stack",
463
+ "align": "center",
464
+ "children": [
465
+ {
466
+ "type": "icon",
467
+ "size": "lg",
468
+ "name": "alert-triangle"
469
+ },
470
+ {
471
+ "content": "Pipeline Error",
472
+ "variant": "h2",
473
+ "type": "typography"
474
+ },
475
+ {
476
+ "type": "alert",
477
+ "message": "@entity.error",
478
+ "variant": "error"
479
+ },
480
+ {
481
+ "event": "RESET",
482
+ "label": "Try Again",
483
+ "variant": "primary",
484
+ "type": "button",
485
+ "icon": "rotate-ccw"
486
+ }
487
+ ],
488
+ "direction": "vertical",
489
+ "gap": "lg"
490
+ }
491
+ ],
492
+ "appName": "ResearchAssistant",
493
+ "type": "dashboard-layout",
494
+ "navItems": [
495
+ {
496
+ "href": "/research",
497
+ "label": "Research",
498
+ "icon": "search"
499
+ },
500
+ {
501
+ "label": "Cache",
502
+ "href": "/cache",
503
+ "icon": "database"
504
+ },
505
+ {
506
+ "icon": "file-text",
507
+ "label": "Reports",
508
+ "href": "/reports"
509
+ },
510
+ {
511
+ "label": "Knowledge",
512
+ "href": "/knowledge",
513
+ "icon": "book-open"
435
514
  }
436
515
  ]
437
516
  }
@@ -460,13 +539,12 @@
460
539
  "render-ui",
461
540
  "main",
462
541
  {
463
- "type": "dashboard-layout",
464
542
  "appName": "ResearchAssistant",
465
543
  "navItems": [
466
544
  {
467
- "label": "Research",
545
+ "icon": "search",
468
546
  "href": "/research",
469
- "icon": "search"
547
+ "label": "Research"
470
548
  },
471
549
  {
472
550
  "label": "Cache",
@@ -474,22 +552,19 @@
474
552
  "icon": "database"
475
553
  },
476
554
  {
555
+ "icon": "file-text",
477
556
  "label": "Reports",
478
- "href": "/reports",
479
- "icon": "file-text"
557
+ "href": "/reports"
480
558
  },
481
559
  {
560
+ "icon": "book-open",
482
561
  "label": "Knowledge",
483
- "href": "/knowledge",
484
- "icon": "book-open"
562
+ "href": "/knowledge"
485
563
  }
486
564
  ],
565
+ "type": "dashboard-layout",
487
566
  "children": [
488
567
  {
489
- "type": "stack",
490
- "direction": "vertical",
491
- "gap": "lg",
492
- "align": "center",
493
568
  "children": [
494
569
  {
495
570
  "type": "icon",
@@ -497,8 +572,8 @@
497
572
  "size": "lg"
498
573
  },
499
574
  {
500
- "type": "typography",
501
575
  "content": "Fetching & summarizing...",
576
+ "type": "typography",
502
577
  "variant": "h3"
503
578
  },
504
579
  {
@@ -506,11 +581,15 @@
506
581
  "size": "lg"
507
582
  },
508
583
  {
509
- "type": "typography",
510
584
  "content": "@entity.videoTitle",
585
+ "type": "typography",
511
586
  "variant": "caption"
512
587
  }
513
- ]
588
+ ],
589
+ "gap": "lg",
590
+ "align": "center",
591
+ "direction": "vertical",
592
+ "type": "stack"
514
593
  }
515
594
  ]
516
595
  }
@@ -518,25 +597,123 @@
518
597
  ]
519
598
  },
520
599
  {
521
- "from": "summarizing",
522
- "to": "summarizing",
523
- "event": "VIDEO_FETCHED",
600
+ "from": "results",
601
+ "to": "idle",
602
+ "event": "RESET",
524
603
  "effects": [
525
604
  [
526
605
  "set",
527
- "@entity.videoTitle",
528
- "@payload.title"
529
- ],
530
- [
531
- "set",
532
- "@entity.videoDescription",
533
- "@payload.description"
606
+ "@entity.pipelineStatus",
607
+ "idle"
534
608
  ],
535
609
  [
536
- "call-service",
537
- "llm",
538
- "summarize",
539
- {
610
+ "render-ui",
611
+ "main",
612
+ {
613
+ "appName": "ResearchAssistant",
614
+ "navItems": [
615
+ {
616
+ "icon": "search",
617
+ "label": "Research",
618
+ "href": "/research"
619
+ },
620
+ {
621
+ "href": "/cache",
622
+ "icon": "database",
623
+ "label": "Cache"
624
+ },
625
+ {
626
+ "icon": "file-text",
627
+ "label": "Reports",
628
+ "href": "/reports"
629
+ },
630
+ {
631
+ "label": "Knowledge",
632
+ "href": "/knowledge",
633
+ "icon": "book-open"
634
+ }
635
+ ],
636
+ "type": "dashboard-layout",
637
+ "children": [
638
+ {
639
+ "type": "stack",
640
+ "direction": "vertical",
641
+ "gap": "lg",
642
+ "children": [
643
+ {
644
+ "align": "center",
645
+ "children": [
646
+ {
647
+ "type": "icon",
648
+ "name": "search",
649
+ "size": "lg"
650
+ },
651
+ {
652
+ "content": "Content Research",
653
+ "variant": "h2",
654
+ "type": "typography"
655
+ }
656
+ ],
657
+ "type": "stack",
658
+ "direction": "horizontal",
659
+ "gap": "sm"
660
+ },
661
+ {
662
+ "type": "divider"
663
+ },
664
+ {
665
+ "type": "card",
666
+ "children": [
667
+ {
668
+ "gap": "md",
669
+ "type": "stack",
670
+ "direction": "vertical",
671
+ "children": [
672
+ {
673
+ "type": "typography",
674
+ "content": "Search YouTube for content to summarize",
675
+ "variant": "body"
676
+ },
677
+ {
678
+ "type": "form-section",
679
+ "entity": "Research",
680
+ "mode": "edit",
681
+ "fields": [
682
+ "query"
683
+ ],
684
+ "submitEvent": "SEARCH"
685
+ }
686
+ ]
687
+ }
688
+ ]
689
+ }
690
+ ]
691
+ }
692
+ ]
693
+ }
694
+ ]
695
+ ]
696
+ },
697
+ {
698
+ "from": "summarizing",
699
+ "to": "summarizing",
700
+ "event": "VIDEO_FETCHED",
701
+ "effects": [
702
+ [
703
+ "set",
704
+ "@entity.videoTitle",
705
+ "@payload.title"
706
+ ],
707
+ [
708
+ "set",
709
+ "@entity.videoDescription",
710
+ "@payload.description"
711
+ ],
712
+ [
713
+ "call-service",
714
+ "llm",
715
+ "summarize",
716
+ {
540
717
  "text": "@entity.videoDescription"
541
718
  }
542
719
  ]
@@ -561,23 +738,21 @@
561
738
  "render-ui",
562
739
  "main",
563
740
  {
564
- "type": "dashboard-layout",
565
- "appName": "ResearchAssistant",
566
741
  "navItems": [
567
742
  {
743
+ "icon": "search",
568
744
  "label": "Research",
569
- "href": "/research",
570
- "icon": "search"
745
+ "href": "/research"
571
746
  },
572
747
  {
573
- "label": "Cache",
574
748
  "href": "/cache",
749
+ "label": "Cache",
575
750
  "icon": "database"
576
751
  },
577
752
  {
578
- "label": "Reports",
753
+ "icon": "file-text",
579
754
  "href": "/reports",
580
- "icon": "file-text"
755
+ "label": "Reports"
581
756
  },
582
757
  {
583
758
  "label": "Knowledge",
@@ -585,43 +760,44 @@
585
760
  "icon": "book-open"
586
761
  }
587
762
  ],
763
+ "type": "dashboard-layout",
764
+ "appName": "ResearchAssistant",
588
765
  "children": [
589
766
  {
590
- "type": "stack",
591
- "direction": "vertical",
592
767
  "gap": "lg",
768
+ "type": "stack",
593
769
  "children": [
594
770
  {
595
- "type": "stack",
596
- "direction": "horizontal",
597
771
  "gap": "sm",
598
772
  "align": "center",
773
+ "direction": "horizontal",
599
774
  "justify": "space-between",
775
+ "type": "stack",
600
776
  "children": [
601
777
  {
602
- "type": "stack",
603
778
  "direction": "horizontal",
779
+ "type": "stack",
604
780
  "gap": "sm",
605
- "align": "center",
606
781
  "children": [
607
782
  {
608
- "type": "icon",
609
783
  "name": "check-circle",
610
- "size": "lg"
784
+ "size": "lg",
785
+ "type": "icon"
611
786
  },
612
787
  {
613
- "type": "typography",
614
788
  "content": "Research Complete",
789
+ "type": "typography",
615
790
  "variant": "h2"
616
791
  }
617
- ]
792
+ ],
793
+ "align": "center"
618
794
  },
619
795
  {
620
796
  "type": "button",
621
797
  "label": "New Search",
622
798
  "event": "RESET",
623
- "variant": "ghost",
624
- "icon": "rotate-ccw"
799
+ "icon": "rotate-ccw",
800
+ "variant": "ghost"
625
801
  }
626
802
  ]
627
803
  },
@@ -634,44 +810,45 @@
634
810
  {
635
811
  "type": "stack",
636
812
  "direction": "vertical",
637
- "gap": "md",
638
813
  "children": [
639
814
  {
640
- "type": "stack",
641
- "direction": "horizontal",
642
- "gap": "sm",
643
- "align": "center",
644
815
  "children": [
645
816
  {
646
- "type": "icon",
817
+ "size": "sm",
647
818
  "name": "video",
648
- "size": "sm"
819
+ "type": "icon"
649
820
  },
650
821
  {
651
- "type": "typography",
652
822
  "content": "@entity.videoTitle",
823
+ "type": "typography",
653
824
  "variant": "h3"
654
825
  }
655
- ]
826
+ ],
827
+ "gap": "sm",
828
+ "type": "stack",
829
+ "direction": "horizontal",
830
+ "align": "center"
656
831
  },
657
832
  {
658
833
  "type": "divider"
659
834
  },
660
835
  {
661
- "type": "typography",
662
836
  "content": "Summary",
663
- "variant": "caption"
837
+ "variant": "caption",
838
+ "type": "typography"
664
839
  },
665
840
  {
666
- "type": "typography",
841
+ "variant": "body",
667
842
  "content": "@entity.summary",
668
- "variant": "body"
843
+ "type": "typography"
669
844
  }
670
- ]
845
+ ],
846
+ "gap": "md"
671
847
  }
672
848
  ]
673
849
  }
674
- ]
850
+ ],
851
+ "direction": "vertical"
675
852
  }
676
853
  ]
677
854
  }
@@ -679,7 +856,7 @@
679
856
  ]
680
857
  },
681
858
  {
682
- "from": "searching",
859
+ "from": "summarizing",
683
860
  "to": "error",
684
861
  "event": "FAILED",
685
862
  "effects": [
@@ -697,41 +874,17 @@
697
874
  "render-ui",
698
875
  "main",
699
876
  {
700
- "type": "dashboard-layout",
701
877
  "appName": "ResearchAssistant",
702
- "navItems": [
703
- {
704
- "label": "Research",
705
- "href": "/research",
706
- "icon": "search"
707
- },
708
- {
709
- "label": "Cache",
710
- "href": "/cache",
711
- "icon": "database"
712
- },
713
- {
714
- "label": "Reports",
715
- "href": "/reports",
716
- "icon": "file-text"
717
- },
718
- {
719
- "label": "Knowledge",
720
- "href": "/knowledge",
721
- "icon": "book-open"
722
- }
723
- ],
724
878
  "children": [
725
879
  {
726
- "type": "stack",
727
880
  "direction": "vertical",
728
- "gap": "lg",
881
+ "type": "stack",
729
882
  "align": "center",
730
883
  "children": [
731
884
  {
885
+ "size": "lg",
732
886
  "type": "icon",
733
- "name": "alert-triangle",
734
- "size": "lg"
887
+ "name": "alert-triangle"
735
888
  },
736
889
  {
737
890
  "type": "typography",
@@ -739,97 +892,42 @@
739
892
  "variant": "h2"
740
893
  },
741
894
  {
895
+ "message": "@entity.error",
742
896
  "type": "alert",
743
- "variant": "error",
744
- "message": "@entity.error"
897
+ "variant": "error"
745
898
  },
746
899
  {
747
- "type": "button",
748
- "label": "Try Again",
749
900
  "event": "RESET",
901
+ "icon": "rotate-ccw",
902
+ "label": "Try Again",
750
903
  "variant": "primary",
751
- "icon": "rotate-ccw"
904
+ "type": "button"
752
905
  }
753
- ]
906
+ ],
907
+ "gap": "lg"
754
908
  }
755
- ]
756
- }
757
- ]
758
- ]
759
- },
760
- {
761
- "from": "summarizing",
762
- "to": "error",
763
- "event": "FAILED",
764
- "effects": [
765
- [
766
- "set",
767
- "@entity.error",
768
- "@payload.error"
769
- ],
770
- [
771
- "set",
772
- "@entity.pipelineStatus",
773
- "error"
774
- ],
775
- [
776
- "render-ui",
777
- "main",
778
- {
909
+ ],
779
910
  "type": "dashboard-layout",
780
- "appName": "ResearchAssistant",
781
911
  "navItems": [
782
912
  {
783
- "label": "Research",
784
913
  "href": "/research",
785
- "icon": "search"
914
+ "icon": "search",
915
+ "label": "Research"
786
916
  },
787
917
  {
918
+ "icon": "database",
788
919
  "label": "Cache",
789
- "href": "/cache",
790
- "icon": "database"
920
+ "href": "/cache"
791
921
  },
792
922
  {
793
- "label": "Reports",
794
923
  "href": "/reports",
795
- "icon": "file-text"
924
+ "icon": "file-text",
925
+ "label": "Reports"
796
926
  },
797
927
  {
798
- "label": "Knowledge",
928
+ "icon": "book-open",
799
929
  "href": "/knowledge",
800
- "icon": "book-open"
801
- }
802
- ],
803
- "children": [
804
- {
805
- "type": "stack",
806
- "direction": "vertical",
807
- "gap": "lg",
808
- "align": "center",
809
- "children": [
810
- {
811
- "type": "icon",
812
- "name": "alert-triangle",
813
- "size": "lg"
814
- },
815
- {
816
- "type": "typography",
817
- "content": "Pipeline Error",
818
- "variant": "h2"
819
- },
820
- {
821
- "type": "alert",
822
- "variant": "error",
823
- "message": "@entity.error"
824
- },
825
- {
826
- "type": "button",
827
- "label": "Try Again",
828
- "event": "RESET",
829
- "variant": "primary",
830
- "icon": "rotate-ccw"
831
- }
832
- ]
930
+ "label": "Knowledge"
833
931
  }
834
932
  ]
835
933
  }
@@ -869,112 +967,12 @@
869
967
  [
870
968
  "render-ui",
871
969
  "main",
872
- {
873
- "type": "dashboard-layout",
874
- "appName": "ResearchAssistant",
875
- "navItems": [
876
- {
877
- "label": "Research",
878
- "href": "/research",
879
- "icon": "search"
880
- },
881
- {
882
- "label": "Cache",
883
- "href": "/cache",
884
- "icon": "database"
885
- },
886
- {
887
- "label": "Reports",
888
- "href": "/reports",
889
- "icon": "file-text"
890
- },
891
- {
892
- "label": "Knowledge",
893
- "href": "/knowledge",
894
- "icon": "book-open"
895
- }
896
- ],
897
- "children": [
898
- {
899
- "type": "stack",
900
- "direction": "vertical",
901
- "gap": "lg",
902
- "children": [
903
- {
904
- "type": "stack",
905
- "direction": "horizontal",
906
- "gap": "sm",
907
- "align": "center",
908
- "children": [
909
- {
910
- "type": "icon",
911
- "name": "search",
912
- "size": "lg"
913
- },
914
- {
915
- "type": "typography",
916
- "content": "Content Research",
917
- "variant": "h2"
918
- }
919
- ]
920
- },
921
- {
922
- "type": "divider"
923
- },
924
- {
925
- "type": "card",
926
- "children": [
927
- {
928
- "type": "stack",
929
- "direction": "vertical",
930
- "gap": "md",
931
- "children": [
932
- {
933
- "type": "typography",
934
- "content": "Search YouTube for content to summarize",
935
- "variant": "body"
936
- },
937
- {
938
- "type": "form-section",
939
- "entity": "Research",
940
- "mode": "edit",
941
- "submitEvent": "SEARCH",
942
- "fields": [
943
- "query"
944
- ]
945
- }
946
- ]
947
- }
948
- ]
949
- }
950
- ]
951
- }
952
- ]
953
- }
954
- ]
955
- ]
956
- },
957
- {
958
- "from": "results",
959
- "to": "idle",
960
- "event": "RESET",
961
- "effects": [
962
- [
963
- "set",
964
- "@entity.pipelineStatus",
965
- "idle"
966
- ],
967
- [
968
- "render-ui",
969
- "main",
970
- {
971
- "type": "dashboard-layout",
972
- "appName": "ResearchAssistant",
970
+ {
973
971
  "navItems": [
974
972
  {
973
+ "icon": "search",
975
974
  "label": "Research",
976
- "href": "/research",
977
- "icon": "search"
975
+ "href": "/research"
978
976
  },
979
977
  {
980
978
  "label": "Cache",
@@ -982,39 +980,41 @@
982
980
  "icon": "database"
983
981
  },
984
982
  {
985
- "label": "Reports",
986
983
  "href": "/reports",
984
+ "label": "Reports",
987
985
  "icon": "file-text"
988
986
  },
989
987
  {
990
- "label": "Knowledge",
991
988
  "href": "/knowledge",
992
- "icon": "book-open"
989
+ "icon": "book-open",
990
+ "label": "Knowledge"
993
991
  }
994
992
  ],
993
+ "type": "dashboard-layout",
994
+ "appName": "ResearchAssistant",
995
995
  "children": [
996
996
  {
997
- "type": "stack",
998
997
  "direction": "vertical",
998
+ "type": "stack",
999
999
  "gap": "lg",
1000
1000
  "children": [
1001
1001
  {
1002
- "type": "stack",
1003
- "direction": "horizontal",
1004
- "gap": "sm",
1005
1002
  "align": "center",
1003
+ "type": "stack",
1006
1004
  "children": [
1007
1005
  {
1008
1006
  "type": "icon",
1009
- "name": "search",
1010
- "size": "lg"
1007
+ "size": "lg",
1008
+ "name": "search"
1011
1009
  },
1012
1010
  {
1013
1011
  "type": "typography",
1014
- "content": "Content Research",
1015
- "variant": "h2"
1012
+ "variant": "h2",
1013
+ "content": "Content Research"
1016
1014
  }
1017
- ]
1015
+ ],
1016
+ "direction": "horizontal",
1017
+ "gap": "sm"
1018
1018
  },
1019
1019
  {
1020
1020
  "type": "divider"
@@ -1023,23 +1023,23 @@
1023
1023
  "type": "card",
1024
1024
  "children": [
1025
1025
  {
1026
- "type": "stack",
1027
- "direction": "vertical",
1028
1026
  "gap": "md",
1027
+ "direction": "vertical",
1028
+ "type": "stack",
1029
1029
  "children": [
1030
1030
  {
1031
+ "variant": "body",
1031
1032
  "type": "typography",
1032
- "content": "Search YouTube for content to summarize",
1033
- "variant": "body"
1033
+ "content": "Search YouTube for content to summarize"
1034
1034
  },
1035
1035
  {
1036
- "type": "form-section",
1037
- "entity": "Research",
1038
- "mode": "edit",
1039
1036
  "submitEvent": "SEARCH",
1040
1037
  "fields": [
1041
1038
  "query"
1042
- ]
1039
+ ],
1040
+ "type": "form-section",
1041
+ "mode": "edit",
1042
+ "entity": "Research"
1043
1043
  }
1044
1044
  ]
1045
1045
  }
@@ -1071,45 +1071,18 @@
1071
1071
  "render-ui",
1072
1072
  "main",
1073
1073
  {
1074
- "type": "dashboard-layout",
1075
- "appName": "ResearchAssistant",
1076
- "navItems": [
1077
- {
1078
- "label": "Research",
1079
- "href": "/research",
1080
- "icon": "search"
1081
- },
1082
- {
1083
- "label": "Cache",
1084
- "href": "/cache",
1085
- "icon": "database"
1086
- },
1087
- {
1088
- "label": "Reports",
1089
- "href": "/reports",
1090
- "icon": "file-text"
1091
- },
1092
- {
1093
- "label": "Knowledge",
1094
- "href": "/knowledge",
1095
- "icon": "book-open"
1096
- }
1097
- ],
1098
1074
  "children": [
1099
1075
  {
1100
- "type": "stack",
1101
- "direction": "vertical",
1102
- "gap": "lg",
1103
1076
  "children": [
1104
1077
  {
1105
- "type": "stack",
1106
1078
  "direction": "horizontal",
1079
+ "type": "stack",
1107
1080
  "gap": "sm",
1108
1081
  "align": "center",
1109
1082
  "children": [
1110
1083
  {
1111
- "type": "icon",
1112
1084
  "name": "search",
1085
+ "type": "icon",
1113
1086
  "size": "lg"
1114
1087
  },
1115
1088
  {
@@ -1126,29 +1099,56 @@
1126
1099
  "type": "card",
1127
1100
  "children": [
1128
1101
  {
1129
- "type": "stack",
1130
- "direction": "vertical",
1131
- "gap": "md",
1132
1102
  "children": [
1133
1103
  {
1134
- "type": "typography",
1104
+ "variant": "body",
1135
1105
  "content": "Search YouTube for content to summarize",
1136
- "variant": "body"
1106
+ "type": "typography"
1137
1107
  },
1138
1108
  {
1109
+ "mode": "edit",
1139
1110
  "type": "form-section",
1140
1111
  "entity": "Research",
1141
- "mode": "edit",
1142
1112
  "submitEvent": "SEARCH",
1143
1113
  "fields": [
1144
1114
  "query"
1145
1115
  ]
1146
1116
  }
1147
- ]
1117
+ ],
1118
+ "gap": "md",
1119
+ "direction": "vertical",
1120
+ "type": "stack"
1148
1121
  }
1149
1122
  ]
1150
1123
  }
1151
- ]
1124
+ ],
1125
+ "gap": "lg",
1126
+ "type": "stack",
1127
+ "direction": "vertical"
1128
+ }
1129
+ ],
1130
+ "appName": "ResearchAssistant",
1131
+ "type": "dashboard-layout",
1132
+ "navItems": [
1133
+ {
1134
+ "href": "/research",
1135
+ "icon": "search",
1136
+ "label": "Research"
1137
+ },
1138
+ {
1139
+ "label": "Cache",
1140
+ "href": "/cache",
1141
+ "icon": "database"
1142
+ },
1143
+ {
1144
+ "label": "Reports",
1145
+ "icon": "file-text",
1146
+ "href": "/reports"
1147
+ },
1148
+ {
1149
+ "icon": "book-open",
1150
+ "label": "Knowledge",
1151
+ "href": "/knowledge"
1152
1152
  }
1153
1153
  ]
1154
1154
  }
@@ -1156,14 +1156,14 @@
1156
1156
  ]
1157
1157
  }
1158
1158
  ]
1159
- }
1159
+ },
1160
+ "scope": "collection"
1160
1161
  }
1161
1162
  ],
1162
1163
  "pages": [
1163
1164
  {
1164
1165
  "name": "ResearchPage",
1165
1166
  "path": "/research",
1166
- "isInitial": true,
1167
1167
  "traits": [
1168
1168
  {
1169
1169
  "ref": "ResearchPipeline"
@@ -1193,8 +1193,7 @@
1193
1193
  },
1194
1194
  {
1195
1195
  "name": "ttl",
1196
- "type": "number",
1197
- "default": 3600
1196
+ "type": "number"
1198
1197
  },
1199
1198
  {
1200
1199
  "name": "result",
@@ -1202,20 +1201,69 @@
1202
1201
  },
1203
1202
  {
1204
1203
  "name": "redisStatus",
1205
- "type": "string",
1206
- "default": "idle"
1204
+ "type": "string"
1207
1205
  },
1208
1206
  {
1209
1207
  "name": "error",
1210
- "type": "string"
1208
+ "type": "string",
1209
+ "default": ""
1211
1210
  }
1212
1211
  ]
1213
1212
  },
1214
1213
  "traits": [
1215
1214
  {
1216
1215
  "name": "CacheEntryRedis",
1217
- "linkedEntity": "CacheEntry",
1218
1216
  "category": "interaction",
1217
+ "linkedEntity": "CacheEntry",
1218
+ "emits": [
1219
+ {
1220
+ "event": "CacheEntryLoaded",
1221
+ "description": "Fired when CacheEntry finishes loading",
1222
+ "scope": "internal",
1223
+ "payload": [
1224
+ {
1225
+ "name": "id",
1226
+ "type": "string",
1227
+ "required": true
1228
+ },
1229
+ {
1230
+ "name": "key",
1231
+ "type": "string"
1232
+ },
1233
+ {
1234
+ "name": "value",
1235
+ "type": "string"
1236
+ },
1237
+ {
1238
+ "name": "ttl",
1239
+ "type": "number"
1240
+ },
1241
+ {
1242
+ "name": "result",
1243
+ "type": "string"
1244
+ },
1245
+ {
1246
+ "name": "redisStatus",
1247
+ "type": "string"
1248
+ },
1249
+ {
1250
+ "name": "error",
1251
+ "type": "string"
1252
+ }
1253
+ ]
1254
+ },
1255
+ {
1256
+ "event": "CacheEntryLoadFailed",
1257
+ "description": "Fired when CacheEntry fails to load",
1258
+ "scope": "internal",
1259
+ "payload": [
1260
+ {
1261
+ "name": "message",
1262
+ "type": "string"
1263
+ }
1264
+ ]
1265
+ }
1266
+ ],
1219
1267
  "stateMachine": {
1220
1268
  "states": [
1221
1269
  {
@@ -1255,8 +1303,7 @@
1255
1303
  "payload": [
1256
1304
  {
1257
1305
  "name": "data",
1258
- "type": "string",
1259
- "required": true
1306
+ "type": "string"
1260
1307
  }
1261
1308
  ]
1262
1309
  },
@@ -1266,14 +1313,27 @@
1266
1313
  "payload": [
1267
1314
  {
1268
1315
  "name": "error",
1269
- "type": "string",
1270
- "required": true
1316
+ "type": "string"
1271
1317
  }
1272
1318
  ]
1273
1319
  },
1274
1320
  {
1275
1321
  "key": "RESET",
1276
1322
  "name": "Reset"
1323
+ },
1324
+ {
1325
+ "key": "CacheEntryLoaded",
1326
+ "name": "CacheEntry loaded"
1327
+ },
1328
+ {
1329
+ "key": "CacheEntryLoadFailed",
1330
+ "name": "CacheEntry load failed",
1331
+ "payload": [
1332
+ {
1333
+ "name": "message",
1334
+ "type": "string"
1335
+ }
1336
+ ]
1277
1337
  }
1278
1338
  ],
1279
1339
  "transitions": [
@@ -1284,122 +1344,128 @@
1284
1344
  "effects": [
1285
1345
  [
1286
1346
  "fetch",
1287
- "CacheEntry"
1347
+ "CacheEntry",
1348
+ {
1349
+ "emit": {
1350
+ "failure": "CacheEntryLoadFailed",
1351
+ "success": "CacheEntryLoaded"
1352
+ }
1353
+ }
1288
1354
  ],
1289
1355
  [
1290
1356
  "render-ui",
1291
1357
  "main",
1292
1358
  {
1293
- "type": "dashboard-layout",
1294
1359
  "appName": "ResearchAssistant",
1295
1360
  "navItems": [
1296
1361
  {
1297
- "label": "Research",
1298
1362
  "href": "/research",
1363
+ "label": "Research",
1299
1364
  "icon": "search"
1300
1365
  },
1301
1366
  {
1302
1367
  "label": "Cache",
1303
- "href": "/cache",
1304
- "icon": "database"
1368
+ "icon": "database",
1369
+ "href": "/cache"
1305
1370
  },
1306
1371
  {
1307
- "label": "Reports",
1308
1372
  "href": "/reports",
1309
- "icon": "file-text"
1373
+ "icon": "file-text",
1374
+ "label": "Reports"
1310
1375
  },
1311
1376
  {
1312
- "label": "Knowledge",
1313
1377
  "href": "/knowledge",
1314
- "icon": "book-open"
1378
+ "icon": "book-open",
1379
+ "label": "Knowledge"
1315
1380
  }
1316
1381
  ],
1317
1382
  "children": [
1318
1383
  {
1319
1384
  "type": "stack",
1320
- "direction": "vertical",
1321
1385
  "gap": "lg",
1322
1386
  "align": "center",
1387
+ "direction": "vertical",
1323
1388
  "children": [
1324
1389
  {
1325
1390
  "type": "stack",
1326
1391
  "direction": "horizontal",
1327
- "gap": "md",
1328
1392
  "align": "center",
1329
1393
  "children": [
1330
1394
  {
1331
- "type": "icon",
1332
1395
  "name": "database",
1333
- "size": "lg"
1396
+ "size": "lg",
1397
+ "type": "icon"
1334
1398
  },
1335
1399
  {
1400
+ "variant": "h2",
1336
1401
  "type": "typography",
1337
- "content": "Redis Cache",
1338
- "variant": "h2"
1402
+ "content": "Redis Cache"
1339
1403
  }
1340
- ]
1404
+ ],
1405
+ "gap": "md"
1341
1406
  },
1342
1407
  {
1343
1408
  "type": "divider"
1344
1409
  },
1345
1410
  {
1346
- "type": "stack",
1347
1411
  "direction": "vertical",
1348
- "gap": "md",
1412
+ "type": "stack",
1349
1413
  "children": [
1350
1414
  {
1351
- "type": "input",
1352
- "label": "Key",
1415
+ "placeholder": "cache-key",
1353
1416
  "bind": "@entity.key",
1354
- "placeholder": "cache-key"
1417
+ "label": "Key",
1418
+ "type": "input"
1355
1419
  },
1356
1420
  {
1357
- "type": "input",
1358
1421
  "label": "Value",
1359
1422
  "bind": "@entity.value",
1360
- "placeholder": "cache-value"
1423
+ "placeholder": "cache-value",
1424
+ "type": "input"
1361
1425
  },
1362
1426
  {
1363
- "type": "input",
1364
- "label": "TTL (seconds)",
1365
1427
  "bind": "@entity.ttl",
1428
+ "type": "input",
1366
1429
  "inputType": "number",
1430
+ "label": "TTL (seconds)",
1367
1431
  "placeholder": "3600"
1368
1432
  }
1369
- ]
1433
+ ],
1434
+ "gap": "md"
1370
1435
  },
1371
1436
  {
1372
- "type": "stack",
1373
1437
  "direction": "horizontal",
1438
+ "type": "stack",
1374
1439
  "gap": "sm",
1375
- "justify": "center",
1376
1440
  "children": [
1377
1441
  {
1378
- "type": "button",
1379
- "label": "Get",
1380
1442
  "event": "GET_KEY",
1381
1443
  "variant": "primary",
1382
- "icon": "download"
1444
+ "type": "button",
1445
+ "icon": "download",
1446
+ "label": "Get"
1383
1447
  },
1384
1448
  {
1385
- "type": "button",
1386
- "label": "Set",
1449
+ "icon": "upload",
1387
1450
  "event": "SET_KEY",
1388
1451
  "variant": "primary",
1389
- "icon": "upload"
1452
+ "type": "button",
1453
+ "label": "Set"
1390
1454
  },
1391
1455
  {
1392
- "type": "button",
1456
+ "icon": "trash-2",
1393
1457
  "label": "Delete",
1394
- "event": "DELETE_KEY",
1458
+ "type": "button",
1395
1459
  "variant": "destructive",
1396
- "icon": "trash-2"
1460
+ "event": "DELETE_KEY"
1397
1461
  }
1398
- ]
1462
+ ],
1463
+ "justify": "center"
1399
1464
  }
1400
1465
  ]
1401
1466
  }
1402
- ]
1467
+ ],
1468
+ "type": "dashboard-layout"
1403
1469
  }
1404
1470
  ]
1405
1471
  ]
@@ -1414,11 +1480,10 @@
1414
1480
  "main",
1415
1481
  {
1416
1482
  "type": "dashboard-layout",
1417
- "appName": "ResearchAssistant",
1418
1483
  "navItems": [
1419
1484
  {
1420
- "label": "Research",
1421
1485
  "href": "/research",
1486
+ "label": "Research",
1422
1487
  "icon": "search"
1423
1488
  },
1424
1489
  {
@@ -1427,21 +1492,22 @@
1427
1492
  "icon": "database"
1428
1493
  },
1429
1494
  {
1495
+ "icon": "file-text",
1430
1496
  "label": "Reports",
1431
- "href": "/reports",
1432
- "icon": "file-text"
1497
+ "href": "/reports"
1433
1498
  },
1434
1499
  {
1435
- "label": "Knowledge",
1436
1500
  "href": "/knowledge",
1437
- "icon": "book-open"
1501
+ "icon": "book-open",
1502
+ "label": "Knowledge"
1438
1503
  }
1439
1504
  ],
1505
+ "appName": "ResearchAssistant",
1440
1506
  "children": [
1441
1507
  {
1442
- "type": "loading-state",
1508
+ "message": "Running redis operation...",
1443
1509
  "title": "Executing...",
1444
- "message": "Running redis operation..."
1510
+ "type": "loading-state"
1445
1511
  }
1446
1512
  ]
1447
1513
  }
@@ -1466,36 +1532,36 @@
1466
1532
  "main",
1467
1533
  {
1468
1534
  "type": "dashboard-layout",
1469
- "appName": "ResearchAssistant",
1535
+ "children": [
1536
+ {
1537
+ "title": "Executing...",
1538
+ "message": "Running redis operation...",
1539
+ "type": "loading-state"
1540
+ }
1541
+ ],
1470
1542
  "navItems": [
1471
1543
  {
1472
- "label": "Research",
1473
1544
  "href": "/research",
1474
- "icon": "search"
1545
+ "icon": "search",
1546
+ "label": "Research"
1475
1547
  },
1476
1548
  {
1549
+ "icon": "database",
1477
1550
  "label": "Cache",
1478
- "href": "/cache",
1479
- "icon": "database"
1551
+ "href": "/cache"
1480
1552
  },
1481
1553
  {
1554
+ "icon": "file-text",
1482
1555
  "label": "Reports",
1483
- "href": "/reports",
1484
- "icon": "file-text"
1556
+ "href": "/reports"
1485
1557
  },
1486
1558
  {
1487
- "label": "Knowledge",
1488
1559
  "href": "/knowledge",
1489
- "icon": "book-open"
1560
+ "icon": "book-open",
1561
+ "label": "Knowledge"
1490
1562
  }
1491
1563
  ],
1492
- "children": [
1493
- {
1494
- "type": "loading-state",
1495
- "title": "Executing...",
1496
- "message": "Running redis operation..."
1497
- }
1498
- ]
1564
+ "appName": "ResearchAssistant"
1499
1565
  }
1500
1566
  ],
1501
1567
  [
@@ -1519,13 +1585,11 @@
1519
1585
  "render-ui",
1520
1586
  "main",
1521
1587
  {
1522
- "type": "dashboard-layout",
1523
- "appName": "ResearchAssistant",
1524
1588
  "navItems": [
1525
1589
  {
1526
1590
  "label": "Research",
1527
- "href": "/research",
1528
- "icon": "search"
1591
+ "icon": "search",
1592
+ "href": "/research"
1529
1593
  },
1530
1594
  {
1531
1595
  "label": "Cache",
@@ -1533,23 +1597,25 @@
1533
1597
  "icon": "database"
1534
1598
  },
1535
1599
  {
1536
- "label": "Reports",
1537
1600
  "href": "/reports",
1538
- "icon": "file-text"
1601
+ "icon": "file-text",
1602
+ "label": "Reports"
1539
1603
  },
1540
1604
  {
1605
+ "icon": "book-open",
1541
1606
  "label": "Knowledge",
1542
- "href": "/knowledge",
1543
- "icon": "book-open"
1607
+ "href": "/knowledge"
1544
1608
  }
1545
1609
  ],
1546
1610
  "children": [
1547
1611
  {
1548
- "type": "loading-state",
1549
1612
  "title": "Executing...",
1550
- "message": "Running redis operation..."
1613
+ "message": "Running redis operation...",
1614
+ "type": "loading-state"
1551
1615
  }
1552
- ]
1616
+ ],
1617
+ "type": "dashboard-layout",
1618
+ "appName": "ResearchAssistant"
1553
1619
  }
1554
1620
  ],
1555
1621
  [
@@ -1558,54 +1624,30 @@
1558
1624
  "delete",
1559
1625
  {
1560
1626
  "key": "@entity.key"
1561
- }
1562
- ]
1563
- ]
1564
- },
1565
- {
1566
- "from": "executing",
1567
- "to": "complete",
1568
- "event": "EXECUTED",
1569
- "effects": [
1570
- [
1571
- "set",
1572
- "@entity.result",
1573
- "@payload.data"
1574
- ],
1575
- [
1576
- "render-ui",
1577
- "main",
1578
- {
1579
- "type": "dashboard-layout",
1580
- "appName": "ResearchAssistant",
1581
- "navItems": [
1582
- {
1583
- "label": "Research",
1584
- "href": "/research",
1585
- "icon": "search"
1586
- },
1587
- {
1588
- "label": "Cache",
1589
- "href": "/cache",
1590
- "icon": "database"
1591
- },
1592
- {
1593
- "label": "Reports",
1594
- "href": "/reports",
1595
- "icon": "file-text"
1596
- },
1597
- {
1598
- "label": "Knowledge",
1599
- "href": "/knowledge",
1600
- "icon": "book-open"
1601
- }
1602
- ],
1627
+ }
1628
+ ]
1629
+ ]
1630
+ },
1631
+ {
1632
+ "from": "executing",
1633
+ "to": "complete",
1634
+ "event": "EXECUTED",
1635
+ "effects": [
1636
+ [
1637
+ "set",
1638
+ "@entity.result",
1639
+ "@payload.data"
1640
+ ],
1641
+ [
1642
+ "render-ui",
1643
+ "main",
1644
+ {
1645
+ "appName": "ResearchAssistant",
1603
1646
  "children": [
1604
1647
  {
1648
+ "gap": "lg",
1605
1649
  "type": "stack",
1606
1650
  "direction": "vertical",
1607
- "gap": "lg",
1608
- "align": "center",
1609
1651
  "children": [
1610
1652
  {
1611
1653
  "type": "icon",
@@ -1614,14 +1656,14 @@
1614
1656
  },
1615
1657
  {
1616
1658
  "type": "alert",
1617
- "variant": "success",
1618
- "message": "Operation complete"
1659
+ "message": "Operation complete",
1660
+ "variant": "success"
1619
1661
  },
1620
1662
  {
1621
1663
  "type": "typography",
1664
+ "content": "@entity.result",
1622
1665
  "variant": "body",
1623
- "color": "muted",
1624
- "content": "@entity.result"
1666
+ "color": "muted"
1625
1667
  },
1626
1668
  {
1627
1669
  "type": "button",
@@ -1630,9 +1672,33 @@
1630
1672
  "variant": "ghost",
1631
1673
  "icon": "rotate-ccw"
1632
1674
  }
1633
- ]
1675
+ ],
1676
+ "align": "center"
1634
1677
  }
1635
- ]
1678
+ ],
1679
+ "navItems": [
1680
+ {
1681
+ "icon": "search",
1682
+ "label": "Research",
1683
+ "href": "/research"
1684
+ },
1685
+ {
1686
+ "label": "Cache",
1687
+ "href": "/cache",
1688
+ "icon": "database"
1689
+ },
1690
+ {
1691
+ "label": "Reports",
1692
+ "icon": "file-text",
1693
+ "href": "/reports"
1694
+ },
1695
+ {
1696
+ "icon": "book-open",
1697
+ "href": "/knowledge",
1698
+ "label": "Knowledge"
1699
+ }
1700
+ ],
1701
+ "type": "dashboard-layout"
1636
1702
  }
1637
1703
  ]
1638
1704
  ]
@@ -1651,18 +1717,16 @@
1651
1717
  "render-ui",
1652
1718
  "main",
1653
1719
  {
1654
- "type": "dashboard-layout",
1655
- "appName": "ResearchAssistant",
1656
1720
  "navItems": [
1657
1721
  {
1658
- "label": "Research",
1659
1722
  "href": "/research",
1660
- "icon": "search"
1723
+ "icon": "search",
1724
+ "label": "Research"
1661
1725
  },
1662
1726
  {
1727
+ "icon": "database",
1663
1728
  "label": "Cache",
1664
- "href": "/cache",
1665
- "icon": "database"
1729
+ "href": "/cache"
1666
1730
  },
1667
1731
  {
1668
1732
  "label": "Reports",
@@ -1670,19 +1734,21 @@
1670
1734
  "icon": "file-text"
1671
1735
  },
1672
1736
  {
1673
- "label": "Knowledge",
1674
1737
  "href": "/knowledge",
1675
- "icon": "book-open"
1738
+ "icon": "book-open",
1739
+ "label": "Knowledge"
1676
1740
  }
1677
1741
  ],
1742
+ "type": "dashboard-layout",
1678
1743
  "children": [
1679
1744
  {
1680
- "type": "error-state",
1681
- "title": "Redis Error",
1682
1745
  "message": "@entity.error",
1683
- "onRetry": "RESET"
1746
+ "type": "error-state",
1747
+ "onRetry": "RESET",
1748
+ "title": "Redis Error"
1684
1749
  }
1685
- ]
1750
+ ],
1751
+ "appName": "ResearchAssistant"
1686
1752
  }
1687
1753
  ]
1688
1754
  ]
@@ -1697,22 +1763,21 @@
1697
1763
  "main",
1698
1764
  {
1699
1765
  "type": "dashboard-layout",
1700
- "appName": "ResearchAssistant",
1701
1766
  "navItems": [
1702
1767
  {
1703
- "label": "Research",
1768
+ "icon": "search",
1704
1769
  "href": "/research",
1705
- "icon": "search"
1770
+ "label": "Research"
1706
1771
  },
1707
1772
  {
1708
- "label": "Cache",
1709
1773
  "href": "/cache",
1774
+ "label": "Cache",
1710
1775
  "icon": "database"
1711
1776
  },
1712
1777
  {
1713
- "label": "Reports",
1714
1778
  "href": "/reports",
1715
- "icon": "file-text"
1779
+ "icon": "file-text",
1780
+ "label": "Reports"
1716
1781
  },
1717
1782
  {
1718
1783
  "label": "Knowledge",
@@ -1720,90 +1785,91 @@
1720
1785
  "icon": "book-open"
1721
1786
  }
1722
1787
  ],
1788
+ "appName": "ResearchAssistant",
1723
1789
  "children": [
1724
1790
  {
1725
- "type": "stack",
1726
- "direction": "vertical",
1727
- "gap": "lg",
1728
- "align": "center",
1729
1791
  "children": [
1730
1792
  {
1731
- "type": "stack",
1732
- "direction": "horizontal",
1733
- "gap": "md",
1734
- "align": "center",
1735
1793
  "children": [
1736
1794
  {
1737
- "type": "icon",
1738
1795
  "name": "database",
1739
- "size": "lg"
1796
+ "size": "lg",
1797
+ "type": "icon"
1740
1798
  },
1741
1799
  {
1742
1800
  "type": "typography",
1743
1801
  "content": "Redis Cache",
1744
1802
  "variant": "h2"
1745
1803
  }
1746
- ]
1804
+ ],
1805
+ "gap": "md",
1806
+ "type": "stack",
1807
+ "direction": "horizontal",
1808
+ "align": "center"
1747
1809
  },
1748
1810
  {
1749
1811
  "type": "divider"
1750
1812
  },
1751
1813
  {
1752
- "type": "stack",
1753
1814
  "direction": "vertical",
1815
+ "type": "stack",
1754
1816
  "gap": "md",
1755
1817
  "children": [
1756
1818
  {
1757
- "type": "input",
1758
- "label": "Key",
1759
1819
  "bind": "@entity.key",
1760
- "placeholder": "cache-key"
1820
+ "placeholder": "cache-key",
1821
+ "label": "Key",
1822
+ "type": "input"
1761
1823
  },
1762
1824
  {
1763
- "type": "input",
1764
1825
  "label": "Value",
1826
+ "type": "input",
1765
1827
  "bind": "@entity.value",
1766
1828
  "placeholder": "cache-value"
1767
1829
  },
1768
1830
  {
1831
+ "inputType": "number",
1769
1832
  "type": "input",
1833
+ "placeholder": "3600",
1770
1834
  "label": "TTL (seconds)",
1771
- "bind": "@entity.ttl",
1772
- "inputType": "number",
1773
- "placeholder": "3600"
1835
+ "bind": "@entity.ttl"
1774
1836
  }
1775
1837
  ]
1776
1838
  },
1777
1839
  {
1778
- "type": "stack",
1779
1840
  "direction": "horizontal",
1780
- "gap": "sm",
1781
- "justify": "center",
1782
1841
  "children": [
1783
1842
  {
1784
1843
  "type": "button",
1785
1844
  "label": "Get",
1845
+ "icon": "download",
1786
1846
  "event": "GET_KEY",
1787
- "variant": "primary",
1788
- "icon": "download"
1847
+ "variant": "primary"
1789
1848
  },
1790
1849
  {
1791
- "type": "button",
1792
1850
  "label": "Set",
1851
+ "type": "button",
1793
1852
  "event": "SET_KEY",
1794
1853
  "variant": "primary",
1795
1854
  "icon": "upload"
1796
1855
  },
1797
1856
  {
1798
- "type": "button",
1799
1857
  "label": "Delete",
1800
1858
  "event": "DELETE_KEY",
1859
+ "icon": "trash-2",
1801
1860
  "variant": "destructive",
1802
- "icon": "trash-2"
1861
+ "type": "button"
1803
1862
  }
1804
- ]
1863
+ ],
1864
+ "gap": "sm",
1865
+ "justify": "center",
1866
+ "type": "stack"
1805
1867
  }
1806
- ]
1868
+ ],
1869
+ "type": "stack",
1870
+ "gap": "lg",
1871
+ "align": "center",
1872
+ "direction": "vertical"
1807
1873
  }
1808
1874
  ]
1809
1875
  }
@@ -1819,52 +1885,26 @@
1819
1885
  "render-ui",
1820
1886
  "main",
1821
1887
  {
1822
- "type": "dashboard-layout",
1823
- "appName": "ResearchAssistant",
1824
- "navItems": [
1825
- {
1826
- "label": "Research",
1827
- "href": "/research",
1828
- "icon": "search"
1829
- },
1830
- {
1831
- "label": "Cache",
1832
- "href": "/cache",
1833
- "icon": "database"
1834
- },
1835
- {
1836
- "label": "Reports",
1837
- "href": "/reports",
1838
- "icon": "file-text"
1839
- },
1840
- {
1841
- "label": "Knowledge",
1842
- "href": "/knowledge",
1843
- "icon": "book-open"
1844
- }
1845
- ],
1846
1888
  "children": [
1847
1889
  {
1848
1890
  "type": "stack",
1849
- "direction": "vertical",
1850
- "gap": "lg",
1851
1891
  "align": "center",
1852
1892
  "children": [
1853
1893
  {
1854
- "type": "stack",
1855
- "direction": "horizontal",
1856
1894
  "gap": "md",
1895
+ "direction": "horizontal",
1896
+ "type": "stack",
1857
1897
  "align": "center",
1858
1898
  "children": [
1859
1899
  {
1860
1900
  "type": "icon",
1861
- "name": "database",
1862
- "size": "lg"
1901
+ "size": "lg",
1902
+ "name": "database"
1863
1903
  },
1864
1904
  {
1865
- "type": "typography",
1866
1905
  "content": "Redis Cache",
1867
- "variant": "h2"
1906
+ "variant": "h2",
1907
+ "type": "typography"
1868
1908
  }
1869
1909
  ]
1870
1910
  },
@@ -1872,61 +1912,87 @@
1872
1912
  "type": "divider"
1873
1913
  },
1874
1914
  {
1875
- "type": "stack",
1876
- "direction": "vertical",
1877
- "gap": "md",
1878
1915
  "children": [
1879
1916
  {
1880
1917
  "type": "input",
1881
- "label": "Key",
1882
1918
  "bind": "@entity.key",
1883
- "placeholder": "cache-key"
1919
+ "placeholder": "cache-key",
1920
+ "label": "Key"
1884
1921
  },
1885
1922
  {
1886
- "type": "input",
1887
1923
  "label": "Value",
1888
1924
  "bind": "@entity.value",
1889
- "placeholder": "cache-value"
1925
+ "placeholder": "cache-value",
1926
+ "type": "input"
1890
1927
  },
1891
1928
  {
1929
+ "placeholder": "3600",
1930
+ "bind": "@entity.ttl",
1892
1931
  "type": "input",
1893
1932
  "label": "TTL (seconds)",
1894
- "bind": "@entity.ttl",
1895
- "inputType": "number",
1896
- "placeholder": "3600"
1933
+ "inputType": "number"
1897
1934
  }
1898
- ]
1935
+ ],
1936
+ "direction": "vertical",
1937
+ "gap": "md",
1938
+ "type": "stack"
1899
1939
  },
1900
1940
  {
1901
- "type": "stack",
1902
- "direction": "horizontal",
1903
1941
  "gap": "sm",
1904
- "justify": "center",
1942
+ "type": "stack",
1905
1943
  "children": [
1906
1944
  {
1907
1945
  "type": "button",
1908
- "label": "Get",
1909
- "event": "GET_KEY",
1910
1946
  "variant": "primary",
1911
- "icon": "download"
1947
+ "event": "GET_KEY",
1948
+ "icon": "download",
1949
+ "label": "Get"
1912
1950
  },
1913
1951
  {
1952
+ "event": "SET_KEY",
1914
1953
  "type": "button",
1915
1954
  "label": "Set",
1916
- "event": "SET_KEY",
1917
1955
  "variant": "primary",
1918
1956
  "icon": "upload"
1919
1957
  },
1920
1958
  {
1921
- "type": "button",
1922
- "label": "Delete",
1923
1959
  "event": "DELETE_KEY",
1960
+ "type": "button",
1924
1961
  "variant": "destructive",
1925
- "icon": "trash-2"
1962
+ "icon": "trash-2",
1963
+ "label": "Delete"
1926
1964
  }
1927
- ]
1965
+ ],
1966
+ "direction": "horizontal",
1967
+ "justify": "center"
1928
1968
  }
1929
- ]
1969
+ ],
1970
+ "direction": "vertical",
1971
+ "gap": "lg"
1972
+ }
1973
+ ],
1974
+ "appName": "ResearchAssistant",
1975
+ "type": "dashboard-layout",
1976
+ "navItems": [
1977
+ {
1978
+ "label": "Research",
1979
+ "href": "/research",
1980
+ "icon": "search"
1981
+ },
1982
+ {
1983
+ "label": "Cache",
1984
+ "href": "/cache",
1985
+ "icon": "database"
1986
+ },
1987
+ {
1988
+ "icon": "file-text",
1989
+ "label": "Reports",
1990
+ "href": "/reports"
1991
+ },
1992
+ {
1993
+ "href": "/knowledge",
1994
+ "icon": "book-open",
1995
+ "label": "Knowledge"
1930
1996
  }
1931
1997
  ]
1932
1998
  }
@@ -1934,12 +2000,13 @@
1934
2000
  ]
1935
2001
  }
1936
2002
  ]
1937
- }
2003
+ },
2004
+ "scope": "collection"
1938
2005
  }
1939
2006
  ],
1940
2007
  "pages": [
1941
2008
  {
1942
- "name": "CachePage",
2009
+ "name": "Cache",
1943
2010
  "path": "/cache",
1944
2011
  "traits": [
1945
2012
  {
@@ -1962,8 +2029,7 @@
1962
2029
  },
1963
2030
  {
1964
2031
  "name": "bucket",
1965
- "type": "string",
1966
- "default": "uploads"
2032
+ "type": "string"
1967
2033
  },
1968
2034
  {
1969
2035
  "name": "fileKey",
@@ -1979,8 +2045,7 @@
1979
2045
  },
1980
2046
  {
1981
2047
  "name": "storageStatus",
1982
- "type": "string",
1983
- "default": "idle"
2048
+ "type": "string"
1984
2049
  },
1985
2050
  {
1986
2051
  "name": "result",
@@ -1988,15 +2053,69 @@
1988
2053
  },
1989
2054
  {
1990
2055
  "name": "error",
1991
- "type": "string"
2056
+ "type": "string",
2057
+ "default": ""
1992
2058
  }
1993
2059
  ]
1994
2060
  },
1995
2061
  "traits": [
1996
2062
  {
1997
2063
  "name": "ReportStorage",
1998
- "linkedEntity": "Report",
1999
2064
  "category": "interaction",
2065
+ "linkedEntity": "Report",
2066
+ "emits": [
2067
+ {
2068
+ "event": "ReportLoaded",
2069
+ "description": "Fired when Report finishes loading",
2070
+ "scope": "internal",
2071
+ "payload": [
2072
+ {
2073
+ "name": "id",
2074
+ "type": "string",
2075
+ "required": true
2076
+ },
2077
+ {
2078
+ "name": "bucket",
2079
+ "type": "string"
2080
+ },
2081
+ {
2082
+ "name": "fileKey",
2083
+ "type": "string"
2084
+ },
2085
+ {
2086
+ "name": "prefix",
2087
+ "type": "string"
2088
+ },
2089
+ {
2090
+ "name": "content",
2091
+ "type": "string"
2092
+ },
2093
+ {
2094
+ "name": "storageStatus",
2095
+ "type": "string"
2096
+ },
2097
+ {
2098
+ "name": "result",
2099
+ "type": "string"
2100
+ },
2101
+ {
2102
+ "name": "error",
2103
+ "type": "string"
2104
+ }
2105
+ ]
2106
+ },
2107
+ {
2108
+ "event": "ReportLoadFailed",
2109
+ "description": "Fired when Report fails to load",
2110
+ "scope": "internal",
2111
+ "payload": [
2112
+ {
2113
+ "name": "message",
2114
+ "type": "string"
2115
+ }
2116
+ ]
2117
+ }
2118
+ ],
2000
2119
  "stateMachine": {
2001
2120
  "states": [
2002
2121
  {
@@ -2040,8 +2159,7 @@
2040
2159
  "payload": [
2041
2160
  {
2042
2161
  "name": "data",
2043
- "type": "string",
2044
- "required": true
2162
+ "type": "string"
2045
2163
  }
2046
2164
  ]
2047
2165
  },
@@ -2051,14 +2169,27 @@
2051
2169
  "payload": [
2052
2170
  {
2053
2171
  "name": "error",
2054
- "type": "string",
2055
- "required": true
2172
+ "type": "string"
2056
2173
  }
2057
2174
  ]
2058
2175
  },
2059
2176
  {
2060
2177
  "key": "RESET",
2061
2178
  "name": "Reset"
2179
+ },
2180
+ {
2181
+ "key": "ReportLoaded",
2182
+ "name": "Report loaded"
2183
+ },
2184
+ {
2185
+ "key": "ReportLoadFailed",
2186
+ "name": "Report load failed",
2187
+ "payload": [
2188
+ {
2189
+ "name": "message",
2190
+ "type": "string"
2191
+ }
2192
+ ]
2062
2193
  }
2063
2194
  ],
2064
2195
  "transitions": [
@@ -2069,58 +2200,39 @@
2069
2200
  "effects": [
2070
2201
  [
2071
2202
  "fetch",
2072
- "Report"
2203
+ "Report",
2204
+ {
2205
+ "emit": {
2206
+ "success": "ReportLoaded",
2207
+ "failure": "ReportLoadFailed"
2208
+ }
2209
+ }
2073
2210
  ],
2074
2211
  [
2075
2212
  "render-ui",
2076
2213
  "main",
2077
2214
  {
2078
- "type": "dashboard-layout",
2079
- "appName": "ResearchAssistant",
2080
- "navItems": [
2081
- {
2082
- "label": "Research",
2083
- "href": "/research",
2084
- "icon": "search"
2085
- },
2086
- {
2087
- "label": "Cache",
2088
- "href": "/cache",
2089
- "icon": "database"
2090
- },
2091
- {
2092
- "label": "Reports",
2093
- "href": "/reports",
2094
- "icon": "file-text"
2095
- },
2096
- {
2097
- "label": "Knowledge",
2098
- "href": "/knowledge",
2099
- "icon": "book-open"
2100
- }
2101
- ],
2102
2215
  "children": [
2103
2216
  {
2104
2217
  "type": "stack",
2105
2218
  "direction": "vertical",
2106
2219
  "gap": "lg",
2107
- "align": "stretch",
2108
2220
  "children": [
2109
2221
  {
2110
- "type": "stack",
2111
- "direction": "horizontal",
2112
2222
  "gap": "md",
2113
2223
  "align": "center",
2224
+ "direction": "horizontal",
2225
+ "type": "stack",
2114
2226
  "children": [
2115
2227
  {
2116
- "type": "icon",
2117
2228
  "name": "hard-drive",
2118
- "size": "lg"
2229
+ "size": "lg",
2230
+ "type": "icon"
2119
2231
  },
2120
2232
  {
2121
2233
  "type": "typography",
2122
- "content": "Report Storage",
2123
- "variant": "h2"
2234
+ "variant": "h2",
2235
+ "content": "Report Storage"
2124
2236
  }
2125
2237
  ]
2126
2238
  },
@@ -2128,68 +2240,93 @@
2128
2240
  "type": "divider"
2129
2241
  },
2130
2242
  {
2131
- "type": "input",
2132
2243
  "label": "Bucket",
2244
+ "placeholder": "bucket-name",
2133
2245
  "bind": "@entity.bucket",
2134
- "placeholder": "bucket-name"
2246
+ "type": "input"
2135
2247
  },
2136
2248
  {
2137
- "type": "input",
2138
2249
  "label": "File Key",
2250
+ "type": "input",
2139
2251
  "bind": "@entity.fileKey",
2140
2252
  "placeholder": "path/to/file.txt"
2141
2253
  },
2142
2254
  {
2143
- "type": "input",
2144
- "label": "Prefix",
2255
+ "placeholder": "path/prefix/",
2145
2256
  "bind": "@entity.prefix",
2146
- "placeholder": "path/prefix/"
2257
+ "label": "Prefix",
2258
+ "type": "input"
2147
2259
  },
2148
2260
  {
2149
- "type": "textarea",
2150
2261
  "label": "Content",
2151
- "bind": "@entity.content",
2152
- "placeholder": "File content..."
2262
+ "placeholder": "File content...",
2263
+ "type": "textarea",
2264
+ "bind": "@entity.content"
2153
2265
  },
2154
2266
  {
2155
- "type": "stack",
2156
- "direction": "horizontal",
2157
- "gap": "sm",
2158
- "justify": "center",
2159
2267
  "children": [
2160
2268
  {
2161
- "type": "button",
2162
- "label": "Upload",
2163
- "event": "UPLOAD_FILE",
2164
2269
  "variant": "primary",
2165
- "icon": "upload"
2270
+ "label": "Upload",
2271
+ "type": "button",
2272
+ "icon": "upload",
2273
+ "event": "UPLOAD_FILE"
2166
2274
  },
2167
2275
  {
2168
- "type": "button",
2169
- "label": "Download",
2170
- "event": "DOWNLOAD_FILE",
2171
2276
  "variant": "secondary",
2172
- "icon": "download"
2277
+ "event": "DOWNLOAD_FILE",
2278
+ "icon": "download",
2279
+ "type": "button",
2280
+ "label": "Download"
2173
2281
  },
2174
2282
  {
2175
2283
  "type": "button",
2176
- "label": "List",
2177
2284
  "event": "LIST_FILES",
2285
+ "label": "List",
2178
2286
  "variant": "secondary",
2179
2287
  "icon": "list"
2180
2288
  },
2181
2289
  {
2182
2290
  "type": "button",
2183
2291
  "label": "Delete",
2184
- "event": "DELETE_FILE",
2185
2292
  "variant": "destructive",
2293
+ "event": "DELETE_FILE",
2186
2294
  "icon": "trash-2"
2187
2295
  }
2188
- ]
2296
+ ],
2297
+ "direction": "horizontal",
2298
+ "gap": "sm",
2299
+ "type": "stack",
2300
+ "justify": "center"
2189
2301
  }
2190
- ]
2302
+ ],
2303
+ "align": "stretch"
2191
2304
  }
2192
- ]
2305
+ ],
2306
+ "type": "dashboard-layout",
2307
+ "navItems": [
2308
+ {
2309
+ "label": "Research",
2310
+ "icon": "search",
2311
+ "href": "/research"
2312
+ },
2313
+ {
2314
+ "href": "/cache",
2315
+ "icon": "database",
2316
+ "label": "Cache"
2317
+ },
2318
+ {
2319
+ "href": "/reports",
2320
+ "label": "Reports",
2321
+ "icon": "file-text"
2322
+ },
2323
+ {
2324
+ "href": "/knowledge",
2325
+ "label": "Knowledge",
2326
+ "icon": "book-open"
2327
+ }
2328
+ ],
2329
+ "appName": "ResearchAssistant"
2193
2330
  }
2194
2331
  ]
2195
2332
  ]
@@ -2203,37 +2340,37 @@
2203
2340
  "render-ui",
2204
2341
  "main",
2205
2342
  {
2343
+ "children": [
2344
+ {
2345
+ "message": "Executing storage operation on report...",
2346
+ "title": "Processing...",
2347
+ "type": "loading-state"
2348
+ }
2349
+ ],
2206
2350
  "type": "dashboard-layout",
2207
- "appName": "ResearchAssistant",
2208
2351
  "navItems": [
2209
2352
  {
2353
+ "icon": "search",
2210
2354
  "label": "Research",
2211
- "href": "/research",
2212
- "icon": "search"
2355
+ "href": "/research"
2213
2356
  },
2214
2357
  {
2215
2358
  "label": "Cache",
2216
- "href": "/cache",
2217
- "icon": "database"
2359
+ "icon": "database",
2360
+ "href": "/cache"
2218
2361
  },
2219
2362
  {
2220
2363
  "label": "Reports",
2221
- "href": "/reports",
2222
- "icon": "file-text"
2364
+ "icon": "file-text",
2365
+ "href": "/reports"
2223
2366
  },
2224
2367
  {
2368
+ "icon": "book-open",
2225
2369
  "label": "Knowledge",
2226
- "href": "/knowledge",
2227
- "icon": "book-open"
2370
+ "href": "/knowledge"
2228
2371
  }
2229
2372
  ],
2230
- "children": [
2231
- {
2232
- "type": "loading-state",
2233
- "title": "Processing...",
2234
- "message": "Executing storage operation on report..."
2235
- }
2236
- ]
2373
+ "appName": "ResearchAssistant"
2237
2374
  }
2238
2375
  ],
2239
2376
  [
@@ -2257,7 +2394,6 @@
2257
2394
  "render-ui",
2258
2395
  "main",
2259
2396
  {
2260
- "type": "dashboard-layout",
2261
2397
  "appName": "ResearchAssistant",
2262
2398
  "navItems": [
2263
2399
  {
@@ -2276,16 +2412,17 @@
2276
2412
  "icon": "file-text"
2277
2413
  },
2278
2414
  {
2279
- "label": "Knowledge",
2280
2415
  "href": "/knowledge",
2416
+ "label": "Knowledge",
2281
2417
  "icon": "book-open"
2282
2418
  }
2283
2419
  ],
2420
+ "type": "dashboard-layout",
2284
2421
  "children": [
2285
2422
  {
2286
- "type": "loading-state",
2423
+ "message": "Executing storage operation on report...",
2287
2424
  "title": "Processing...",
2288
- "message": "Executing storage operation on report..."
2425
+ "type": "loading-state"
2289
2426
  }
2290
2427
  ]
2291
2428
  }
@@ -2295,8 +2432,8 @@
2295
2432
  "storage",
2296
2433
  "download",
2297
2434
  {
2298
- "bucket": "@entity.bucket",
2299
- "key": "@entity.fileKey"
2435
+ "key": "@entity.fileKey",
2436
+ "bucket": "@entity.bucket"
2300
2437
  }
2301
2438
  ]
2302
2439
  ]
@@ -2310,37 +2447,37 @@
2310
2447
  "render-ui",
2311
2448
  "main",
2312
2449
  {
2313
- "type": "dashboard-layout",
2314
- "appName": "ResearchAssistant",
2315
2450
  "navItems": [
2316
2451
  {
2317
- "label": "Research",
2318
2452
  "href": "/research",
2453
+ "label": "Research",
2319
2454
  "icon": "search"
2320
2455
  },
2321
2456
  {
2322
- "label": "Cache",
2323
2457
  "href": "/cache",
2324
- "icon": "database"
2458
+ "icon": "database",
2459
+ "label": "Cache"
2325
2460
  },
2326
2461
  {
2462
+ "icon": "file-text",
2327
2463
  "label": "Reports",
2328
- "href": "/reports",
2329
- "icon": "file-text"
2464
+ "href": "/reports"
2330
2465
  },
2331
2466
  {
2332
- "label": "Knowledge",
2333
2467
  "href": "/knowledge",
2334
- "icon": "book-open"
2468
+ "icon": "book-open",
2469
+ "label": "Knowledge"
2335
2470
  }
2336
2471
  ],
2337
2472
  "children": [
2338
2473
  {
2474
+ "message": "Executing storage operation on report...",
2339
2475
  "type": "loading-state",
2340
- "title": "Processing...",
2341
- "message": "Executing storage operation on report..."
2476
+ "title": "Processing..."
2342
2477
  }
2343
- ]
2478
+ ],
2479
+ "type": "dashboard-layout",
2480
+ "appName": "ResearchAssistant"
2344
2481
  }
2345
2482
  ],
2346
2483
  [
@@ -2364,34 +2501,34 @@
2364
2501
  "main",
2365
2502
  {
2366
2503
  "type": "dashboard-layout",
2367
- "appName": "ResearchAssistant",
2368
2504
  "navItems": [
2369
2505
  {
2370
2506
  "label": "Research",
2371
- "href": "/research",
2372
- "icon": "search"
2507
+ "icon": "search",
2508
+ "href": "/research"
2373
2509
  },
2374
2510
  {
2375
- "label": "Cache",
2376
2511
  "href": "/cache",
2377
- "icon": "database"
2512
+ "icon": "database",
2513
+ "label": "Cache"
2378
2514
  },
2379
2515
  {
2516
+ "icon": "file-text",
2380
2517
  "label": "Reports",
2381
- "href": "/reports",
2382
- "icon": "file-text"
2518
+ "href": "/reports"
2383
2519
  },
2384
2520
  {
2385
- "label": "Knowledge",
2386
2521
  "href": "/knowledge",
2387
- "icon": "book-open"
2522
+ "icon": "book-open",
2523
+ "label": "Knowledge"
2388
2524
  }
2389
2525
  ],
2526
+ "appName": "ResearchAssistant",
2390
2527
  "children": [
2391
2528
  {
2529
+ "message": "Executing storage operation on report...",
2392
2530
  "type": "loading-state",
2393
- "title": "Processing...",
2394
- "message": "Executing storage operation on report..."
2531
+ "title": "Processing..."
2395
2532
  }
2396
2533
  ]
2397
2534
  }
@@ -2426,8 +2563,6 @@
2426
2563
  "render-ui",
2427
2564
  "main",
2428
2565
  {
2429
- "type": "dashboard-layout",
2430
- "appName": "ResearchAssistant",
2431
2566
  "navItems": [
2432
2567
  {
2433
2568
  "label": "Research",
@@ -2440,47 +2575,49 @@
2440
2575
  "icon": "database"
2441
2576
  },
2442
2577
  {
2443
- "label": "Reports",
2578
+ "icon": "file-text",
2444
2579
  "href": "/reports",
2445
- "icon": "file-text"
2580
+ "label": "Reports"
2446
2581
  },
2447
2582
  {
2448
- "label": "Knowledge",
2449
2583
  "href": "/knowledge",
2450
- "icon": "book-open"
2584
+ "icon": "book-open",
2585
+ "label": "Knowledge"
2451
2586
  }
2452
2587
  ],
2588
+ "appName": "ResearchAssistant",
2589
+ "type": "dashboard-layout",
2453
2590
  "children": [
2454
2591
  {
2455
- "type": "stack",
2456
- "direction": "vertical",
2457
- "gap": "lg",
2458
- "align": "center",
2459
2592
  "children": [
2460
2593
  {
2461
2594
  "type": "icon",
2462
- "name": "check-circle",
2463
- "size": "lg"
2595
+ "size": "lg",
2596
+ "name": "check-circle"
2464
2597
  },
2465
2598
  {
2466
- "type": "alert",
2467
2599
  "variant": "success",
2600
+ "type": "alert",
2468
2601
  "message": "Operation completed successfully"
2469
2602
  },
2470
2603
  {
2471
- "type": "typography",
2472
2604
  "variant": "body",
2473
- "color": "muted",
2474
- "content": "@entity.result"
2605
+ "type": "typography",
2606
+ "content": "@entity.result",
2607
+ "color": "muted"
2475
2608
  },
2476
2609
  {
2477
2610
  "type": "button",
2611
+ "icon": "rotate-ccw",
2478
2612
  "label": "Back",
2479
2613
  "event": "RESET",
2480
- "variant": "ghost",
2481
- "icon": "rotate-ccw"
2614
+ "variant": "ghost"
2482
2615
  }
2483
- ]
2616
+ ],
2617
+ "type": "stack",
2618
+ "direction": "vertical",
2619
+ "align": "center",
2620
+ "gap": "lg"
2484
2621
  }
2485
2622
  ]
2486
2623
  }
@@ -2506,13 +2643,34 @@
2506
2643
  "render-ui",
2507
2644
  "main",
2508
2645
  {
2509
- "type": "dashboard-layout",
2646
+ "children": [
2647
+ {
2648
+ "align": "center",
2649
+ "direction": "vertical",
2650
+ "gap": "lg",
2651
+ "type": "stack",
2652
+ "children": [
2653
+ {
2654
+ "title": "Operation Failed",
2655
+ "message": "@entity.error",
2656
+ "type": "error-state"
2657
+ },
2658
+ {
2659
+ "type": "button",
2660
+ "label": "Back",
2661
+ "variant": "ghost",
2662
+ "event": "RESET",
2663
+ "icon": "rotate-ccw"
2664
+ }
2665
+ ]
2666
+ }
2667
+ ],
2510
2668
  "appName": "ResearchAssistant",
2511
2669
  "navItems": [
2512
2670
  {
2513
- "label": "Research",
2671
+ "icon": "search",
2514
2672
  "href": "/research",
2515
- "icon": "search"
2673
+ "label": "Research"
2516
2674
  },
2517
2675
  {
2518
2676
  "label": "Cache",
@@ -2520,38 +2678,17 @@
2520
2678
  "icon": "database"
2521
2679
  },
2522
2680
  {
2523
- "label": "Reports",
2524
2681
  "href": "/reports",
2525
- "icon": "file-text"
2682
+ "icon": "file-text",
2683
+ "label": "Reports"
2526
2684
  },
2527
2685
  {
2528
- "label": "Knowledge",
2529
2686
  "href": "/knowledge",
2530
- "icon": "book-open"
2687
+ "icon": "book-open",
2688
+ "label": "Knowledge"
2531
2689
  }
2532
2690
  ],
2533
- "children": [
2534
- {
2535
- "type": "stack",
2536
- "direction": "vertical",
2537
- "gap": "lg",
2538
- "align": "center",
2539
- "children": [
2540
- {
2541
- "type": "error-state",
2542
- "title": "Operation Failed",
2543
- "message": "@entity.error"
2544
- },
2545
- {
2546
- "type": "button",
2547
- "label": "Back",
2548
- "event": "RESET",
2549
- "variant": "ghost",
2550
- "icon": "rotate-ccw"
2551
- }
2552
- ]
2553
- }
2554
- ]
2691
+ "type": "dashboard-layout"
2555
2692
  }
2556
2693
  ]
2557
2694
  ]
@@ -2571,45 +2708,43 @@
2571
2708
  "main",
2572
2709
  {
2573
2710
  "type": "dashboard-layout",
2574
- "appName": "ResearchAssistant",
2575
2711
  "navItems": [
2576
2712
  {
2577
- "label": "Research",
2578
2713
  "href": "/research",
2579
- "icon": "search"
2714
+ "icon": "search",
2715
+ "label": "Research"
2580
2716
  },
2581
2717
  {
2582
2718
  "label": "Cache",
2583
- "href": "/cache",
2584
- "icon": "database"
2719
+ "icon": "database",
2720
+ "href": "/cache"
2585
2721
  },
2586
2722
  {
2723
+ "icon": "file-text",
2587
2724
  "label": "Reports",
2588
- "href": "/reports",
2589
- "icon": "file-text"
2725
+ "href": "/reports"
2590
2726
  },
2591
2727
  {
2592
2728
  "label": "Knowledge",
2593
- "href": "/knowledge",
2594
- "icon": "book-open"
2729
+ "icon": "book-open",
2730
+ "href": "/knowledge"
2595
2731
  }
2596
2732
  ],
2597
2733
  "children": [
2598
2734
  {
2599
2735
  "type": "stack",
2600
- "direction": "vertical",
2601
2736
  "gap": "lg",
2602
2737
  "align": "stretch",
2603
2738
  "children": [
2604
2739
  {
2605
- "type": "stack",
2606
- "direction": "horizontal",
2607
2740
  "gap": "md",
2741
+ "direction": "horizontal",
2608
2742
  "align": "center",
2743
+ "type": "stack",
2609
2744
  "children": [
2610
2745
  {
2611
- "type": "icon",
2612
2746
  "name": "hard-drive",
2747
+ "type": "icon",
2613
2748
  "size": "lg"
2614
2749
  },
2615
2750
  {
@@ -2623,68 +2758,70 @@
2623
2758
  "type": "divider"
2624
2759
  },
2625
2760
  {
2626
- "type": "input",
2761
+ "placeholder": "bucket-name",
2627
2762
  "label": "Bucket",
2628
- "bind": "@entity.bucket",
2629
- "placeholder": "bucket-name"
2763
+ "type": "input",
2764
+ "bind": "@entity.bucket"
2630
2765
  },
2631
2766
  {
2632
2767
  "type": "input",
2633
- "label": "File Key",
2634
2768
  "bind": "@entity.fileKey",
2635
- "placeholder": "path/to/file.txt"
2769
+ "placeholder": "path/to/file.txt",
2770
+ "label": "File Key"
2636
2771
  },
2637
2772
  {
2638
2773
  "type": "input",
2639
- "label": "Prefix",
2640
2774
  "bind": "@entity.prefix",
2775
+ "label": "Prefix",
2641
2776
  "placeholder": "path/prefix/"
2642
2777
  },
2643
2778
  {
2644
- "type": "textarea",
2645
- "label": "Content",
2646
2779
  "bind": "@entity.content",
2647
- "placeholder": "File content..."
2780
+ "label": "Content",
2781
+ "placeholder": "File content...",
2782
+ "type": "textarea"
2648
2783
  },
2649
2784
  {
2650
- "type": "stack",
2651
- "direction": "horizontal",
2652
- "gap": "sm",
2653
- "justify": "center",
2654
2785
  "children": [
2655
2786
  {
2656
- "type": "button",
2657
2787
  "label": "Upload",
2658
- "event": "UPLOAD_FILE",
2659
2788
  "variant": "primary",
2660
- "icon": "upload"
2789
+ "event": "UPLOAD_FILE",
2790
+ "icon": "upload",
2791
+ "type": "button"
2661
2792
  },
2662
2793
  {
2663
- "type": "button",
2664
- "label": "Download",
2794
+ "icon": "download",
2665
2795
  "event": "DOWNLOAD_FILE",
2796
+ "type": "button",
2666
2797
  "variant": "secondary",
2667
- "icon": "download"
2798
+ "label": "Download"
2668
2799
  },
2669
2800
  {
2670
2801
  "type": "button",
2671
2802
  "label": "List",
2672
- "event": "LIST_FILES",
2673
2803
  "variant": "secondary",
2804
+ "event": "LIST_FILES",
2674
2805
  "icon": "list"
2675
2806
  },
2676
2807
  {
2677
2808
  "type": "button",
2678
- "label": "Delete",
2679
2809
  "event": "DELETE_FILE",
2680
- "variant": "destructive",
2681
- "icon": "trash-2"
2810
+ "label": "Delete",
2811
+ "icon": "trash-2",
2812
+ "variant": "destructive"
2682
2813
  }
2683
- ]
2814
+ ],
2815
+ "type": "stack",
2816
+ "direction": "horizontal",
2817
+ "gap": "sm",
2818
+ "justify": "center"
2684
2819
  }
2685
- ]
2820
+ ],
2821
+ "direction": "vertical"
2686
2822
  }
2687
- ]
2823
+ ],
2824
+ "appName": "ResearchAssistant"
2688
2825
  }
2689
2826
  ]
2690
2827
  ]
@@ -2703,132 +2840,133 @@
2703
2840
  "render-ui",
2704
2841
  "main",
2705
2842
  {
2706
- "type": "dashboard-layout",
2707
- "appName": "ResearchAssistant",
2708
2843
  "navItems": [
2709
2844
  {
2710
- "label": "Research",
2711
2845
  "href": "/research",
2712
- "icon": "search"
2846
+ "icon": "search",
2847
+ "label": "Research"
2713
2848
  },
2714
2849
  {
2715
- "label": "Cache",
2716
2850
  "href": "/cache",
2717
- "icon": "database"
2851
+ "icon": "database",
2852
+ "label": "Cache"
2718
2853
  },
2719
2854
  {
2855
+ "icon": "file-text",
2720
2856
  "label": "Reports",
2721
- "href": "/reports",
2722
- "icon": "file-text"
2857
+ "href": "/reports"
2723
2858
  },
2724
2859
  {
2725
- "label": "Knowledge",
2860
+ "icon": "book-open",
2726
2861
  "href": "/knowledge",
2727
- "icon": "book-open"
2862
+ "label": "Knowledge"
2728
2863
  }
2729
2864
  ],
2865
+ "type": "dashboard-layout",
2730
2866
  "children": [
2731
2867
  {
2732
- "type": "stack",
2733
2868
  "direction": "vertical",
2734
- "gap": "lg",
2869
+ "type": "stack",
2735
2870
  "align": "stretch",
2871
+ "gap": "lg",
2736
2872
  "children": [
2737
2873
  {
2738
- "type": "stack",
2739
- "direction": "horizontal",
2740
2874
  "gap": "md",
2741
2875
  "align": "center",
2742
2876
  "children": [
2743
2877
  {
2878
+ "size": "lg",
2744
2879
  "type": "icon",
2745
- "name": "hard-drive",
2746
- "size": "lg"
2880
+ "name": "hard-drive"
2747
2881
  },
2748
2882
  {
2749
2883
  "type": "typography",
2750
2884
  "content": "Report Storage",
2751
2885
  "variant": "h2"
2752
2886
  }
2753
- ]
2887
+ ],
2888
+ "type": "stack",
2889
+ "direction": "horizontal"
2754
2890
  },
2755
2891
  {
2756
2892
  "type": "divider"
2757
2893
  },
2758
2894
  {
2759
- "type": "input",
2895
+ "placeholder": "bucket-name",
2760
2896
  "label": "Bucket",
2761
2897
  "bind": "@entity.bucket",
2762
- "placeholder": "bucket-name"
2898
+ "type": "input"
2763
2899
  },
2764
2900
  {
2765
- "type": "input",
2766
- "label": "File Key",
2767
2901
  "bind": "@entity.fileKey",
2768
- "placeholder": "path/to/file.txt"
2902
+ "placeholder": "path/to/file.txt",
2903
+ "label": "File Key",
2904
+ "type": "input"
2769
2905
  },
2770
2906
  {
2771
- "type": "input",
2772
- "label": "Prefix",
2773
2907
  "bind": "@entity.prefix",
2774
- "placeholder": "path/prefix/"
2908
+ "type": "input",
2909
+ "placeholder": "path/prefix/",
2910
+ "label": "Prefix"
2775
2911
  },
2776
2912
  {
2777
2913
  "type": "textarea",
2914
+ "placeholder": "File content...",
2778
2915
  "label": "Content",
2779
- "bind": "@entity.content",
2780
- "placeholder": "File content..."
2916
+ "bind": "@entity.content"
2781
2917
  },
2782
2918
  {
2783
2919
  "type": "stack",
2784
2920
  "direction": "horizontal",
2785
- "gap": "sm",
2786
2921
  "justify": "center",
2922
+ "gap": "sm",
2787
2923
  "children": [
2788
2924
  {
2789
- "type": "button",
2790
- "label": "Upload",
2791
2925
  "event": "UPLOAD_FILE",
2926
+ "label": "Upload",
2927
+ "type": "button",
2792
2928
  "variant": "primary",
2793
2929
  "icon": "upload"
2794
2930
  },
2795
2931
  {
2796
- "type": "button",
2797
- "label": "Download",
2798
2932
  "event": "DOWNLOAD_FILE",
2799
2933
  "variant": "secondary",
2800
- "icon": "download"
2934
+ "icon": "download",
2935
+ "type": "button",
2936
+ "label": "Download"
2801
2937
  },
2802
2938
  {
2803
- "type": "button",
2804
- "label": "List",
2939
+ "icon": "list",
2805
2940
  "event": "LIST_FILES",
2806
2941
  "variant": "secondary",
2807
- "icon": "list"
2942
+ "type": "button",
2943
+ "label": "List"
2808
2944
  },
2809
2945
  {
2810
- "type": "button",
2811
- "label": "Delete",
2946
+ "icon": "trash-2",
2812
2947
  "event": "DELETE_FILE",
2813
- "variant": "destructive",
2814
- "icon": "trash-2"
2948
+ "label": "Delete",
2949
+ "type": "button",
2950
+ "variant": "destructive"
2815
2951
  }
2816
2952
  ]
2817
2953
  }
2818
2954
  ]
2819
2955
  }
2820
- ]
2956
+ ],
2957
+ "appName": "ResearchAssistant"
2821
2958
  }
2822
2959
  ]
2823
2960
  ]
2824
2961
  }
2825
2962
  ]
2826
- }
2963
+ },
2964
+ "scope": "collection"
2827
2965
  }
2828
2966
  ],
2829
2967
  "pages": [
2830
2968
  {
2831
- "name": "ReportsPage",
2969
+ "name": "Reports",
2832
2970
  "path": "/reports",
2833
2971
  "traits": [
2834
2972
  {
@@ -2855,8 +2993,7 @@
2855
2993
  },
2856
2994
  {
2857
2995
  "name": "method",
2858
- "type": "string",
2859
- "default": "GET"
2996
+ "type": "string"
2860
2997
  },
2861
2998
  {
2862
2999
  "name": "requestBody",
@@ -2868,25 +3005,77 @@
2868
3005
  },
2869
3006
  {
2870
3007
  "name": "statusCode",
2871
- "type": "number",
2872
- "default": 0
3008
+ "type": "number"
2873
3009
  },
2874
3010
  {
2875
3011
  "name": "callStatus",
2876
- "type": "string",
2877
- "default": "idle"
3012
+ "type": "string"
2878
3013
  },
2879
3014
  {
2880
3015
  "name": "error",
2881
- "type": "string"
3016
+ "type": "string",
3017
+ "default": ""
2882
3018
  }
2883
3019
  ]
2884
3020
  },
2885
3021
  "traits": [
2886
3022
  {
2887
3023
  "name": "KnowledgeQueryCustomBearer",
2888
- "linkedEntity": "KnowledgeQuery",
2889
3024
  "category": "interaction",
3025
+ "linkedEntity": "KnowledgeQuery",
3026
+ "emits": [
3027
+ {
3028
+ "event": "KnowledgeQueryLoaded",
3029
+ "description": "Fired when KnowledgeQuery finishes loading",
3030
+ "scope": "internal",
3031
+ "payload": [
3032
+ {
3033
+ "name": "id",
3034
+ "type": "string",
3035
+ "required": true
3036
+ },
3037
+ {
3038
+ "name": "endpoint",
3039
+ "type": "string"
3040
+ },
3041
+ {
3042
+ "name": "method",
3043
+ "type": "string"
3044
+ },
3045
+ {
3046
+ "name": "requestBody",
3047
+ "type": "string"
3048
+ },
3049
+ {
3050
+ "name": "responseData",
3051
+ "type": "string"
3052
+ },
3053
+ {
3054
+ "name": "statusCode",
3055
+ "type": "number"
3056
+ },
3057
+ {
3058
+ "name": "callStatus",
3059
+ "type": "string"
3060
+ },
3061
+ {
3062
+ "name": "error",
3063
+ "type": "string"
3064
+ }
3065
+ ]
3066
+ },
3067
+ {
3068
+ "event": "KnowledgeQueryLoadFailed",
3069
+ "description": "Fired when KnowledgeQuery fails to load",
3070
+ "scope": "internal",
3071
+ "payload": [
3072
+ {
3073
+ "name": "message",
3074
+ "type": "string"
3075
+ }
3076
+ ]
3077
+ }
3078
+ ],
2890
3079
  "stateMachine": {
2891
3080
  "states": [
2892
3081
  {
@@ -2910,21 +3099,19 @@
2910
3099
  },
2911
3100
  {
2912
3101
  "key": "CALL_API",
2913
- "name": "Call API"
3102
+ "name": "Call Api"
2914
3103
  },
2915
3104
  {
2916
3105
  "key": "API_RESPONSE",
2917
- "name": "API Response",
3106
+ "name": "Api Response",
2918
3107
  "payload": [
2919
3108
  {
2920
3109
  "name": "data",
2921
- "type": "string",
2922
- "required": true
3110
+ "type": "string"
2923
3111
  },
2924
3112
  {
2925
3113
  "name": "statusCode",
2926
- "type": "number",
2927
- "required": true
3114
+ "type": "string"
2928
3115
  }
2929
3116
  ]
2930
3117
  },
@@ -2934,18 +3121,31 @@
2934
3121
  "payload": [
2935
3122
  {
2936
3123
  "name": "error",
2937
- "type": "string",
2938
- "required": true
3124
+ "type": "string"
2939
3125
  }
2940
3126
  ]
2941
3127
  },
3128
+ {
3129
+ "key": "RESET",
3130
+ "name": "Reset"
3131
+ },
2942
3132
  {
2943
3133
  "key": "RETRY",
2944
3134
  "name": "Retry"
2945
3135
  },
2946
3136
  {
2947
- "key": "RESET",
2948
- "name": "Reset"
3137
+ "key": "KnowledgeQueryLoaded",
3138
+ "name": "KnowledgeQuery loaded"
3139
+ },
3140
+ {
3141
+ "key": "KnowledgeQueryLoadFailed",
3142
+ "name": "KnowledgeQuery load failed",
3143
+ "payload": [
3144
+ {
3145
+ "name": "message",
3146
+ "type": "string"
3147
+ }
3148
+ ]
2949
3149
  }
2950
3150
  ],
2951
3151
  "transitions": [
@@ -2956,29 +3156,33 @@
2956
3156
  "effects": [
2957
3157
  [
2958
3158
  "fetch",
2959
- "KnowledgeQuery"
3159
+ "KnowledgeQuery",
3160
+ {
3161
+ "emit": {
3162
+ "success": "KnowledgeQueryLoaded",
3163
+ "failure": "KnowledgeQueryLoadFailed"
3164
+ }
3165
+ }
2960
3166
  ],
2961
3167
  [
2962
3168
  "render-ui",
2963
3169
  "main",
2964
3170
  {
2965
- "type": "dashboard-layout",
2966
- "appName": "ResearchAssistant",
2967
3171
  "navItems": [
2968
3172
  {
2969
- "label": "Research",
3173
+ "icon": "search",
2970
3174
  "href": "/research",
2971
- "icon": "search"
3175
+ "label": "Research"
2972
3176
  },
2973
3177
  {
3178
+ "icon": "database",
2974
3179
  "label": "Cache",
2975
- "href": "/cache",
2976
- "icon": "database"
3180
+ "href": "/cache"
2977
3181
  },
2978
3182
  {
2979
- "label": "Reports",
2980
3183
  "href": "/reports",
2981
- "icon": "file-text"
3184
+ "icon": "file-text",
3185
+ "label": "Reports"
2982
3186
  },
2983
3187
  {
2984
3188
  "label": "Knowledge",
@@ -2986,12 +3190,11 @@
2986
3190
  "icon": "book-open"
2987
3191
  }
2988
3192
  ],
3193
+ "type": "dashboard-layout",
2989
3194
  "children": [
2990
3195
  {
2991
- "type": "stack",
2992
3196
  "direction": "vertical",
2993
3197
  "gap": "lg",
2994
- "align": "center",
2995
3198
  "children": [
2996
3199
  {
2997
3200
  "type": "icon",
@@ -2999,19 +3202,19 @@
2999
3202
  "size": "lg"
3000
3203
  },
3001
3204
  {
3002
- "type": "typography",
3003
3205
  "content": "Bearer API Tester",
3004
- "variant": "h2"
3206
+ "variant": "h2",
3207
+ "type": "typography"
3005
3208
  },
3006
3209
  {
3007
- "type": "input",
3210
+ "bind": "@entity.endpoint",
3008
3211
  "field": "endpoint",
3009
3212
  "placeholder": "/users",
3010
- "bind": "@entity.endpoint"
3213
+ "type": "input"
3011
3214
  },
3012
3215
  {
3013
- "type": "select",
3014
3216
  "field": "method",
3217
+ "type": "select",
3015
3218
  "bind": "@entity.method",
3016
3219
  "options": [
3017
3220
  {
@@ -3033,21 +3236,24 @@
3033
3236
  ]
3034
3237
  },
3035
3238
  {
3036
- "type": "textarea",
3037
3239
  "field": "requestBody",
3240
+ "type": "textarea",
3038
3241
  "placeholder": "JSON request body",
3039
3242
  "bind": "@entity.requestBody"
3040
3243
  },
3041
3244
  {
3042
- "type": "button",
3245
+ "icon": "send",
3246
+ "variant": "primary",
3043
3247
  "label": "Send Request",
3044
3248
  "event": "CALL_API",
3045
- "variant": "primary",
3046
- "icon": "send"
3249
+ "type": "button"
3047
3250
  }
3048
- ]
3251
+ ],
3252
+ "type": "stack",
3253
+ "align": "center"
3049
3254
  }
3050
- ]
3255
+ ],
3256
+ "appName": "ResearchAssistant"
3051
3257
  }
3052
3258
  ]
3053
3259
  ]
@@ -3066,18 +3272,18 @@
3066
3272
  "navItems": [
3067
3273
  {
3068
3274
  "label": "Research",
3069
- "href": "/research",
3070
- "icon": "search"
3275
+ "icon": "search",
3276
+ "href": "/research"
3071
3277
  },
3072
3278
  {
3279
+ "icon": "database",
3073
3280
  "label": "Cache",
3074
- "href": "/cache",
3075
- "icon": "database"
3281
+ "href": "/cache"
3076
3282
  },
3077
3283
  {
3078
- "label": "Reports",
3079
3284
  "href": "/reports",
3080
- "icon": "file-text"
3285
+ "icon": "file-text",
3286
+ "label": "Reports"
3081
3287
  },
3082
3288
  {
3083
3289
  "label": "Knowledge",
@@ -3088,8 +3294,8 @@
3088
3294
  "children": [
3089
3295
  {
3090
3296
  "type": "loading-state",
3091
- "title": "Calling API...",
3092
- "message": "Sending request to knowledgequery endpoint..."
3297
+ "message": "Sending request to knowledgequery endpoint...",
3298
+ "title": "Calling API..."
3093
3299
  }
3094
3300
  ]
3095
3301
  }
@@ -3125,41 +3331,39 @@
3125
3331
  "render-ui",
3126
3332
  "main",
3127
3333
  {
3128
- "type": "dashboard-layout",
3129
- "appName": "ResearchAssistant",
3130
3334
  "navItems": [
3131
3335
  {
3132
- "label": "Research",
3133
3336
  "href": "/research",
3134
- "icon": "search"
3337
+ "icon": "search",
3338
+ "label": "Research"
3135
3339
  },
3136
3340
  {
3341
+ "icon": "database",
3137
3342
  "label": "Cache",
3138
- "href": "/cache",
3139
- "icon": "database"
3343
+ "href": "/cache"
3140
3344
  },
3141
3345
  {
3346
+ "icon": "file-text",
3142
3347
  "label": "Reports",
3143
- "href": "/reports",
3144
- "icon": "file-text"
3348
+ "href": "/reports"
3145
3349
  },
3146
3350
  {
3147
3351
  "label": "Knowledge",
3148
- "href": "/knowledge",
3149
- "icon": "book-open"
3352
+ "icon": "book-open",
3353
+ "href": "/knowledge"
3150
3354
  }
3151
3355
  ],
3152
3356
  "children": [
3153
3357
  {
3154
- "type": "stack",
3155
3358
  "direction": "vertical",
3156
3359
  "gap": "lg",
3360
+ "type": "stack",
3157
3361
  "align": "center",
3158
3362
  "children": [
3159
3363
  {
3160
- "type": "icon",
3364
+ "size": "lg",
3161
3365
  "name": "check-circle",
3162
- "size": "lg"
3366
+ "type": "icon"
3163
3367
  },
3164
3368
  {
3165
3369
  "type": "typography",
@@ -3167,25 +3371,27 @@
3167
3371
  "variant": "h2"
3168
3372
  },
3169
3373
  {
3170
- "type": "badge",
3171
3374
  "content": "@entity.statusCode",
3172
- "variant": "info"
3375
+ "variant": "info",
3376
+ "type": "badge"
3173
3377
  },
3174
3378
  {
3175
- "type": "code",
3176
3379
  "content": "@entity.responseData",
3380
+ "type": "code",
3177
3381
  "language": "json"
3178
3382
  },
3179
3383
  {
3180
3384
  "type": "button",
3181
- "label": "New Request",
3182
3385
  "event": "RESET",
3386
+ "label": "New Request",
3183
3387
  "variant": "ghost",
3184
3388
  "icon": "rotate-ccw"
3185
3389
  }
3186
3390
  ]
3187
3391
  }
3188
- ]
3392
+ ],
3393
+ "appName": "ResearchAssistant",
3394
+ "type": "dashboard-layout"
3189
3395
  }
3190
3396
  ]
3191
3397
  ]
@@ -3204,63 +3410,62 @@
3204
3410
  "render-ui",
3205
3411
  "main",
3206
3412
  {
3207
- "type": "dashboard-layout",
3208
- "appName": "ResearchAssistant",
3209
3413
  "navItems": [
3210
3414
  {
3211
3415
  "label": "Research",
3212
- "href": "/research",
3213
- "icon": "search"
3416
+ "icon": "search",
3417
+ "href": "/research"
3214
3418
  },
3215
3419
  {
3216
3420
  "label": "Cache",
3217
- "href": "/cache",
3218
- "icon": "database"
3421
+ "icon": "database",
3422
+ "href": "/cache"
3219
3423
  },
3220
3424
  {
3221
- "label": "Reports",
3222
3425
  "href": "/reports",
3426
+ "label": "Reports",
3223
3427
  "icon": "file-text"
3224
3428
  },
3225
3429
  {
3226
3430
  "label": "Knowledge",
3227
- "href": "/knowledge",
3228
- "icon": "book-open"
3431
+ "icon": "book-open",
3432
+ "href": "/knowledge"
3229
3433
  }
3230
3434
  ],
3231
3435
  "children": [
3232
3436
  {
3233
- "type": "error-state",
3234
3437
  "title": "Request Failed",
3438
+ "type": "error-state",
3235
3439
  "message": "@entity.error",
3236
3440
  "onRetry": "RETRY"
3237
3441
  }
3238
- ]
3442
+ ],
3443
+ "type": "dashboard-layout",
3444
+ "appName": "ResearchAssistant"
3239
3445
  }
3240
3446
  ]
3241
3447
  ]
3242
3448
  },
3243
3449
  {
3244
- "from": "error",
3450
+ "from": "complete",
3245
3451
  "to": "idle",
3246
- "event": "RETRY",
3452
+ "event": "RESET",
3247
3453
  "effects": [
3248
3454
  [
3249
3455
  "render-ui",
3250
3456
  "main",
3251
3457
  {
3252
- "type": "dashboard-layout",
3253
3458
  "appName": "ResearchAssistant",
3254
3459
  "navItems": [
3255
3460
  {
3256
- "label": "Research",
3257
3461
  "href": "/research",
3258
- "icon": "search"
3462
+ "icon": "search",
3463
+ "label": "Research"
3259
3464
  },
3260
3465
  {
3261
- "label": "Cache",
3262
3466
  "href": "/cache",
3263
- "icon": "database"
3467
+ "icon": "database",
3468
+ "label": "Cache"
3264
3469
  },
3265
3470
  {
3266
3471
  "label": "Reports",
@@ -3275,15 +3480,13 @@
3275
3480
  ],
3276
3481
  "children": [
3277
3482
  {
3278
- "type": "stack",
3279
- "direction": "vertical",
3280
- "gap": "lg",
3281
3483
  "align": "center",
3484
+ "type": "stack",
3282
3485
  "children": [
3283
3486
  {
3284
- "type": "icon",
3285
3487
  "name": "shield",
3286
- "size": "lg"
3488
+ "size": "lg",
3489
+ "type": "icon"
3287
3490
  },
3288
3491
  {
3289
3492
  "type": "typography",
@@ -3291,15 +3494,12 @@
3291
3494
  "variant": "h2"
3292
3495
  },
3293
3496
  {
3497
+ "bind": "@entity.endpoint",
3294
3498
  "type": "input",
3295
3499
  "field": "endpoint",
3296
- "placeholder": "/users",
3297
- "bind": "@entity.endpoint"
3500
+ "placeholder": "/users"
3298
3501
  },
3299
3502
  {
3300
- "type": "select",
3301
- "field": "method",
3302
- "bind": "@entity.method",
3303
3503
  "options": [
3304
3504
  {
3305
3505
  "label": "GET",
@@ -3317,32 +3517,38 @@
3317
3517
  "label": "DELETE",
3318
3518
  "value": "DELETE"
3319
3519
  }
3320
- ]
3520
+ ],
3521
+ "field": "method",
3522
+ "bind": "@entity.method",
3523
+ "type": "select"
3321
3524
  },
3322
3525
  {
3323
- "type": "textarea",
3324
3526
  "field": "requestBody",
3325
3527
  "placeholder": "JSON request body",
3528
+ "type": "textarea",
3326
3529
  "bind": "@entity.requestBody"
3327
3530
  },
3328
3531
  {
3329
- "type": "button",
3330
- "label": "Send Request",
3331
3532
  "event": "CALL_API",
3533
+ "type": "button",
3332
3534
  "variant": "primary",
3535
+ "label": "Send Request",
3333
3536
  "icon": "send"
3334
3537
  }
3335
- ]
3538
+ ],
3539
+ "direction": "vertical",
3540
+ "gap": "lg"
3336
3541
  }
3337
- ]
3542
+ ],
3543
+ "type": "dashboard-layout"
3338
3544
  }
3339
3545
  ]
3340
3546
  ]
3341
3547
  },
3342
3548
  {
3343
- "from": "complete",
3549
+ "from": "error",
3344
3550
  "to": "idle",
3345
- "event": "RESET",
3551
+ "event": "RETRY",
3346
3552
  "effects": [
3347
3553
  [
3348
3554
  "render-ui",
@@ -3352,24 +3558,24 @@
3352
3558
  "appName": "ResearchAssistant",
3353
3559
  "navItems": [
3354
3560
  {
3561
+ "icon": "search",
3355
3562
  "label": "Research",
3356
- "href": "/research",
3357
- "icon": "search"
3563
+ "href": "/research"
3358
3564
  },
3359
3565
  {
3360
- "label": "Cache",
3361
3566
  "href": "/cache",
3362
- "icon": "database"
3567
+ "icon": "database",
3568
+ "label": "Cache"
3363
3569
  },
3364
3570
  {
3571
+ "icon": "file-text",
3365
3572
  "label": "Reports",
3366
- "href": "/reports",
3367
- "icon": "file-text"
3573
+ "href": "/reports"
3368
3574
  },
3369
3575
  {
3576
+ "icon": "book-open",
3370
3577
  "label": "Knowledge",
3371
- "href": "/knowledge",
3372
- "icon": "book-open"
3578
+ "href": "/knowledge"
3373
3579
  }
3374
3580
  ],
3375
3581
  "children": [
@@ -3386,49 +3592,49 @@
3386
3592
  },
3387
3593
  {
3388
3594
  "type": "typography",
3389
- "content": "Bearer API Tester",
3390
- "variant": "h2"
3595
+ "variant": "h2",
3596
+ "content": "Bearer API Tester"
3391
3597
  },
3392
3598
  {
3393
3599
  "type": "input",
3600
+ "bind": "@entity.endpoint",
3394
3601
  "field": "endpoint",
3395
- "placeholder": "/users",
3396
- "bind": "@entity.endpoint"
3602
+ "placeholder": "/users"
3397
3603
  },
3398
3604
  {
3399
- "type": "select",
3400
- "field": "method",
3401
3605
  "bind": "@entity.method",
3606
+ "type": "select",
3402
3607
  "options": [
3403
3608
  {
3404
- "label": "GET",
3405
- "value": "GET"
3609
+ "value": "GET",
3610
+ "label": "GET"
3406
3611
  },
3407
3612
  {
3408
- "label": "POST",
3409
- "value": "POST"
3613
+ "value": "POST",
3614
+ "label": "POST"
3410
3615
  },
3411
3616
  {
3412
- "label": "PUT",
3413
- "value": "PUT"
3617
+ "value": "PUT",
3618
+ "label": "PUT"
3414
3619
  },
3415
3620
  {
3416
3621
  "label": "DELETE",
3417
3622
  "value": "DELETE"
3418
3623
  }
3419
- ]
3624
+ ],
3625
+ "field": "method"
3420
3626
  },
3421
3627
  {
3422
- "type": "textarea",
3423
3628
  "field": "requestBody",
3629
+ "type": "textarea",
3424
3630
  "placeholder": "JSON request body",
3425
3631
  "bind": "@entity.requestBody"
3426
3632
  },
3427
3633
  {
3428
- "type": "button",
3429
- "label": "Send Request",
3430
3634
  "event": "CALL_API",
3431
3635
  "variant": "primary",
3636
+ "type": "button",
3637
+ "label": "Send Request",
3432
3638
  "icon": "send"
3433
3639
  }
3434
3640
  ]
@@ -3448,56 +3654,30 @@
3448
3654
  "main",
3449
3655
  {
3450
3656
  "type": "dashboard-layout",
3451
- "appName": "ResearchAssistant",
3452
- "navItems": [
3453
- {
3454
- "label": "Research",
3455
- "href": "/research",
3456
- "icon": "search"
3457
- },
3458
- {
3459
- "label": "Cache",
3460
- "href": "/cache",
3461
- "icon": "database"
3462
- },
3463
- {
3464
- "label": "Reports",
3465
- "href": "/reports",
3466
- "icon": "file-text"
3467
- },
3468
- {
3469
- "label": "Knowledge",
3470
- "href": "/knowledge",
3471
- "icon": "book-open"
3472
- }
3473
- ],
3474
3657
  "children": [
3475
3658
  {
3476
3659
  "type": "stack",
3477
3660
  "direction": "vertical",
3478
- "gap": "lg",
3479
3661
  "align": "center",
3480
3662
  "children": [
3481
3663
  {
3482
- "type": "icon",
3483
3664
  "name": "shield",
3665
+ "type": "icon",
3484
3666
  "size": "lg"
3485
3667
  },
3486
3668
  {
3487
- "type": "typography",
3488
3669
  "content": "Bearer API Tester",
3489
- "variant": "h2"
3670
+ "variant": "h2",
3671
+ "type": "typography"
3490
3672
  },
3491
3673
  {
3674
+ "bind": "@entity.endpoint",
3492
3675
  "type": "input",
3493
- "field": "endpoint",
3494
3676
  "placeholder": "/users",
3495
- "bind": "@entity.endpoint"
3677
+ "field": "endpoint"
3496
3678
  },
3497
3679
  {
3498
- "type": "select",
3499
3680
  "field": "method",
3500
- "bind": "@entity.method",
3501
3681
  "options": [
3502
3682
  {
3503
3683
  "label": "GET",
@@ -3512,38 +3692,65 @@
3512
3692
  "value": "PUT"
3513
3693
  },
3514
3694
  {
3515
- "label": "DELETE",
3516
- "value": "DELETE"
3695
+ "value": "DELETE",
3696
+ "label": "DELETE"
3517
3697
  }
3518
- ]
3698
+ ],
3699
+ "type": "select",
3700
+ "bind": "@entity.method"
3519
3701
  },
3520
3702
  {
3521
- "type": "textarea",
3522
- "field": "requestBody",
3523
3703
  "placeholder": "JSON request body",
3524
- "bind": "@entity.requestBody"
3704
+ "bind": "@entity.requestBody",
3705
+ "field": "requestBody",
3706
+ "type": "textarea"
3525
3707
  },
3526
3708
  {
3527
- "type": "button",
3709
+ "icon": "send",
3528
3710
  "label": "Send Request",
3711
+ "type": "button",
3529
3712
  "event": "CALL_API",
3530
- "variant": "primary",
3531
- "icon": "send"
3713
+ "variant": "primary"
3532
3714
  }
3533
- ]
3715
+ ],
3716
+ "gap": "lg"
3534
3717
  }
3535
- ]
3718
+ ],
3719
+ "navItems": [
3720
+ {
3721
+ "href": "/research",
3722
+ "icon": "search",
3723
+ "label": "Research"
3724
+ },
3725
+ {
3726
+ "href": "/cache",
3727
+ "label": "Cache",
3728
+ "icon": "database"
3729
+ },
3730
+ {
3731
+ "label": "Reports",
3732
+ "href": "/reports",
3733
+ "icon": "file-text"
3734
+ },
3735
+ {
3736
+ "href": "/knowledge",
3737
+ "icon": "book-open",
3738
+ "label": "Knowledge"
3739
+ }
3740
+ ],
3741
+ "appName": "ResearchAssistant"
3536
3742
  }
3537
3743
  ]
3538
3744
  ]
3539
3745
  }
3540
3746
  ]
3541
- }
3747
+ },
3748
+ "scope": "collection"
3542
3749
  }
3543
3750
  ],
3544
3751
  "pages": [
3545
3752
  {
3546
- "name": "KnowledgePage",
3753
+ "name": "Knowledge",
3547
3754
  "path": "/knowledge",
3548
3755
  "traits": [
3549
3756
  {
@@ -3554,4 +3761,4 @@
3554
3761
  ]
3555
3762
  }
3556
3763
  ]
3557
- }
3764
+ }