@oxy.so/bloom 19.11.0 → 20.0.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 (282) hide show
  1. package/docs/adoption-matrix.mdx +6 -5
  2. package/docs/agent-avatar.mdx +20 -0
  3. package/docs/agent-creator.mdx +20 -14
  4. package/docs/multi-agent-chat.mdx +5 -0
  5. package/docs/task-catalog.json +1 -1
  6. package/docs/task-catalog.mdx +1 -1
  7. package/lib/commonjs/agent-avatar/character.js +27 -0
  8. package/lib/commonjs/agent-avatar/character.js.map +1 -1
  9. package/lib/commonjs/agent-avatar/index.js +6 -0
  10. package/lib/commonjs/agent-avatar/index.js.map +1 -1
  11. package/lib/commonjs/agent-creator/AgentCreator.js +0 -4
  12. package/lib/commonjs/agent-creator/AgentCreator.js.map +1 -1
  13. package/lib/commonjs/agent-creator/AgentCreator.web.js +8 -12
  14. package/lib/commonjs/agent-creator/AgentCreator.web.js.map +1 -1
  15. package/lib/commonjs/agent-creator/AgentCreatorBase.js +61 -99
  16. package/lib/commonjs/agent-creator/AgentCreatorBase.js.map +1 -1
  17. package/lib/commonjs/agent-creator/context.js.map +1 -1
  18. package/lib/commonjs/agent-creator/messages.js +1 -22
  19. package/lib/commonjs/agent-creator/messages.js.map +1 -1
  20. package/lib/commonjs/agent-creator/paint.js +47 -0
  21. package/lib/commonjs/agent-creator/paint.js.map +1 -0
  22. package/lib/commonjs/agent-creator/shared.js +0 -28
  23. package/lib/commonjs/agent-creator/shared.js.map +1 -1
  24. package/lib/commonjs/agent-creator/use-character-history.js +12 -9
  25. package/lib/commonjs/agent-creator/use-character-history.js.map +1 -1
  26. package/lib/commonjs/avatar/Avatar.js +12 -4
  27. package/lib/commonjs/avatar/Avatar.js.map +1 -1
  28. package/lib/commonjs/avatar/account.js +9 -3
  29. package/lib/commonjs/avatar/account.js.map +1 -1
  30. package/lib/commonjs/locale/translations/ar.js +1 -22
  31. package/lib/commonjs/locale/translations/ar.js.map +1 -1
  32. package/lib/commonjs/locale/translations/bn.js +1 -22
  33. package/lib/commonjs/locale/translations/bn.js.map +1 -1
  34. package/lib/commonjs/locale/translations/ca.js +1 -22
  35. package/lib/commonjs/locale/translations/ca.js.map +1 -1
  36. package/lib/commonjs/locale/translations/de.js +1 -22
  37. package/lib/commonjs/locale/translations/de.js.map +1 -1
  38. package/lib/commonjs/locale/translations/es.js +1 -22
  39. package/lib/commonjs/locale/translations/es.js.map +1 -1
  40. package/lib/commonjs/locale/translations/fr.js +1 -22
  41. package/lib/commonjs/locale/translations/fr.js.map +1 -1
  42. package/lib/commonjs/locale/translations/hi.js +1 -22
  43. package/lib/commonjs/locale/translations/hi.js.map +1 -1
  44. package/lib/commonjs/locale/translations/id.js +1 -22
  45. package/lib/commonjs/locale/translations/id.js.map +1 -1
  46. package/lib/commonjs/locale/translations/it.js +1 -22
  47. package/lib/commonjs/locale/translations/it.js.map +1 -1
  48. package/lib/commonjs/locale/translations/ja.js +1 -22
  49. package/lib/commonjs/locale/translations/ja.js.map +1 -1
  50. package/lib/commonjs/locale/translations/pt.js +1 -22
  51. package/lib/commonjs/locale/translations/pt.js.map +1 -1
  52. package/lib/commonjs/locale/translations/ru.js +1 -22
  53. package/lib/commonjs/locale/translations/ru.js.map +1 -1
  54. package/lib/commonjs/locale/translations/tr.js +1 -22
  55. package/lib/commonjs/locale/translations/tr.js.map +1 -1
  56. package/lib/commonjs/locale/translations/zh.js +1 -22
  57. package/lib/commonjs/locale/translations/zh.js.map +1 -1
  58. package/lib/commonjs/multi-agent-chat/Marketplace.js +1 -1
  59. package/lib/commonjs/multi-agent-chat/Marketplace.js.map +1 -1
  60. package/lib/commonjs/multi-agent-chat/MultiAgentChatBase.js +6 -6
  61. package/lib/commonjs/multi-agent-chat/MultiAgentChatBase.js.map +1 -1
  62. package/lib/commonjs/multi-agent-chat/SelectedAgentPreview.js +2 -1
  63. package/lib/commonjs/multi-agent-chat/SelectedAgentPreview.js.map +1 -1
  64. package/lib/commonjs/multi-agent-chat/data.js +58 -39
  65. package/lib/commonjs/multi-agent-chat/data.js.map +1 -1
  66. package/lib/commonjs/multi-agent-chat/marketplace-data.js +21 -27
  67. package/lib/commonjs/multi-agent-chat/marketplace-data.js.map +1 -1
  68. package/lib/module/agent-avatar/character.js +26 -0
  69. package/lib/module/agent-avatar/character.js.map +1 -1
  70. package/lib/module/agent-avatar/index.js +1 -1
  71. package/lib/module/agent-avatar/index.js.map +1 -1
  72. package/lib/module/agent-creator/AgentCreator.js +0 -4
  73. package/lib/module/agent-creator/AgentCreator.js.map +1 -1
  74. package/lib/module/agent-creator/AgentCreator.web.js +0 -4
  75. package/lib/module/agent-creator/AgentCreator.web.js.map +1 -1
  76. package/lib/module/agent-creator/AgentCreatorBase.js +56 -94
  77. package/lib/module/agent-creator/AgentCreatorBase.js.map +1 -1
  78. package/lib/module/agent-creator/context.js.map +1 -1
  79. package/lib/module/agent-creator/messages.js +1 -22
  80. package/lib/module/agent-creator/messages.js.map +1 -1
  81. package/lib/module/agent-creator/paint.js +42 -0
  82. package/lib/module/agent-creator/paint.js.map +1 -0
  83. package/lib/module/agent-creator/shared.js +0 -26
  84. package/lib/module/agent-creator/shared.js.map +1 -1
  85. package/lib/module/agent-creator/use-character-history.js +7 -4
  86. package/lib/module/agent-creator/use-character-history.js.map +1 -1
  87. package/lib/module/avatar/Avatar.js +12 -4
  88. package/lib/module/avatar/Avatar.js.map +1 -1
  89. package/lib/module/avatar/account.js +9 -3
  90. package/lib/module/avatar/account.js.map +1 -1
  91. package/lib/module/locale/translations/ar.js +1 -22
  92. package/lib/module/locale/translations/ar.js.map +1 -1
  93. package/lib/module/locale/translations/bn.js +1 -22
  94. package/lib/module/locale/translations/bn.js.map +1 -1
  95. package/lib/module/locale/translations/ca.js +1 -22
  96. package/lib/module/locale/translations/ca.js.map +1 -1
  97. package/lib/module/locale/translations/de.js +1 -22
  98. package/lib/module/locale/translations/de.js.map +1 -1
  99. package/lib/module/locale/translations/es.js +1 -22
  100. package/lib/module/locale/translations/es.js.map +1 -1
  101. package/lib/module/locale/translations/fr.js +1 -22
  102. package/lib/module/locale/translations/fr.js.map +1 -1
  103. package/lib/module/locale/translations/hi.js +1 -22
  104. package/lib/module/locale/translations/hi.js.map +1 -1
  105. package/lib/module/locale/translations/id.js +1 -22
  106. package/lib/module/locale/translations/id.js.map +1 -1
  107. package/lib/module/locale/translations/it.js +1 -22
  108. package/lib/module/locale/translations/it.js.map +1 -1
  109. package/lib/module/locale/translations/ja.js +1 -22
  110. package/lib/module/locale/translations/ja.js.map +1 -1
  111. package/lib/module/locale/translations/pt.js +1 -22
  112. package/lib/module/locale/translations/pt.js.map +1 -1
  113. package/lib/module/locale/translations/ru.js +1 -22
  114. package/lib/module/locale/translations/ru.js.map +1 -1
  115. package/lib/module/locale/translations/tr.js +1 -22
  116. package/lib/module/locale/translations/tr.js.map +1 -1
  117. package/lib/module/locale/translations/zh.js +1 -22
  118. package/lib/module/locale/translations/zh.js.map +1 -1
  119. package/lib/module/multi-agent-chat/Marketplace.js +2 -2
  120. package/lib/module/multi-agent-chat/Marketplace.js.map +1 -1
  121. package/lib/module/multi-agent-chat/MultiAgentChatBase.js +7 -7
  122. package/lib/module/multi-agent-chat/MultiAgentChatBase.js.map +1 -1
  123. package/lib/module/multi-agent-chat/SelectedAgentPreview.js +2 -1
  124. package/lib/module/multi-agent-chat/SelectedAgentPreview.js.map +1 -1
  125. package/lib/module/multi-agent-chat/data.js +58 -40
  126. package/lib/module/multi-agent-chat/data.js.map +1 -1
  127. package/lib/module/multi-agent-chat/marketplace-data.js +21 -27
  128. package/lib/module/multi-agent-chat/marketplace-data.js.map +1 -1
  129. package/lib/typescript/commonjs/agent-avatar/character.d.ts +14 -0
  130. package/lib/typescript/commonjs/agent-avatar/character.d.ts.map +1 -1
  131. package/lib/typescript/commonjs/agent-avatar/index.d.ts +1 -1
  132. package/lib/typescript/commonjs/agent-avatar/index.d.ts.map +1 -1
  133. package/lib/typescript/commonjs/agent-creator/AgentCreator.d.ts.map +1 -1
  134. package/lib/typescript/commonjs/agent-creator/AgentCreator.web.d.ts.map +1 -1
  135. package/lib/typescript/commonjs/agent-creator/AgentCreatorBase.d.ts.map +1 -1
  136. package/lib/typescript/commonjs/agent-creator/context.d.ts +1 -13
  137. package/lib/typescript/commonjs/agent-creator/context.d.ts.map +1 -1
  138. package/lib/typescript/commonjs/agent-creator/messages.d.ts +0 -11
  139. package/lib/typescript/commonjs/agent-creator/messages.d.ts.map +1 -1
  140. package/lib/typescript/commonjs/agent-creator/paint.d.ts +20 -0
  141. package/lib/typescript/commonjs/agent-creator/paint.d.ts.map +1 -0
  142. package/lib/typescript/commonjs/agent-creator/shared.d.ts +0 -7
  143. package/lib/typescript/commonjs/agent-creator/shared.d.ts.map +1 -1
  144. package/lib/typescript/commonjs/agent-creator/types.d.ts +14 -0
  145. package/lib/typescript/commonjs/agent-creator/types.d.ts.map +1 -1
  146. package/lib/typescript/commonjs/agent-creator/use-character-history.d.ts +6 -2
  147. package/lib/typescript/commonjs/agent-creator/use-character-history.d.ts.map +1 -1
  148. package/lib/typescript/commonjs/avatar/Avatar.d.ts.map +1 -1
  149. package/lib/typescript/commonjs/avatar/account.d.ts +4 -2
  150. package/lib/typescript/commonjs/avatar/account.d.ts.map +1 -1
  151. package/lib/typescript/commonjs/avatar/types.d.ts +6 -0
  152. package/lib/typescript/commonjs/avatar/types.d.ts.map +1 -1
  153. package/lib/typescript/commonjs/locale/translations/ar.d.ts.map +1 -1
  154. package/lib/typescript/commonjs/locale/translations/bn.d.ts.map +1 -1
  155. package/lib/typescript/commonjs/locale/translations/ca.d.ts.map +1 -1
  156. package/lib/typescript/commonjs/locale/translations/de.d.ts.map +1 -1
  157. package/lib/typescript/commonjs/locale/translations/es.d.ts.map +1 -1
  158. package/lib/typescript/commonjs/locale/translations/fr.d.ts.map +1 -1
  159. package/lib/typescript/commonjs/locale/translations/hi.d.ts.map +1 -1
  160. package/lib/typescript/commonjs/locale/translations/id.d.ts.map +1 -1
  161. package/lib/typescript/commonjs/locale/translations/it.d.ts.map +1 -1
  162. package/lib/typescript/commonjs/locale/translations/ja.d.ts.map +1 -1
  163. package/lib/typescript/commonjs/locale/translations/pt.d.ts.map +1 -1
  164. package/lib/typescript/commonjs/locale/translations/ru.d.ts.map +1 -1
  165. package/lib/typescript/commonjs/locale/translations/tr.d.ts.map +1 -1
  166. package/lib/typescript/commonjs/locale/translations/zh.d.ts.map +1 -1
  167. package/lib/typescript/commonjs/multi-agent-chat/Marketplace.d.ts.map +1 -1
  168. package/lib/typescript/commonjs/multi-agent-chat/MultiAgentChatBase.d.ts.map +1 -1
  169. package/lib/typescript/commonjs/multi-agent-chat/SelectedAgentPreview.d.ts +1 -1
  170. package/lib/typescript/commonjs/multi-agent-chat/SelectedAgentPreview.d.ts.map +1 -1
  171. package/lib/typescript/commonjs/multi-agent-chat/data.d.ts +4 -1
  172. package/lib/typescript/commonjs/multi-agent-chat/data.d.ts.map +1 -1
  173. package/lib/typescript/commonjs/multi-agent-chat/marketplace-data.d.ts +3 -0
  174. package/lib/typescript/commonjs/multi-agent-chat/marketplace-data.d.ts.map +1 -1
  175. package/lib/typescript/module/agent-avatar/character.d.ts +14 -0
  176. package/lib/typescript/module/agent-avatar/character.d.ts.map +1 -1
  177. package/lib/typescript/module/agent-avatar/index.d.ts +1 -1
  178. package/lib/typescript/module/agent-avatar/index.d.ts.map +1 -1
  179. package/lib/typescript/module/agent-creator/AgentCreator.d.ts.map +1 -1
  180. package/lib/typescript/module/agent-creator/AgentCreator.web.d.ts.map +1 -1
  181. package/lib/typescript/module/agent-creator/AgentCreatorBase.d.ts.map +1 -1
  182. package/lib/typescript/module/agent-creator/context.d.ts +1 -13
  183. package/lib/typescript/module/agent-creator/context.d.ts.map +1 -1
  184. package/lib/typescript/module/agent-creator/messages.d.ts +0 -11
  185. package/lib/typescript/module/agent-creator/messages.d.ts.map +1 -1
  186. package/lib/typescript/module/agent-creator/paint.d.ts +20 -0
  187. package/lib/typescript/module/agent-creator/paint.d.ts.map +1 -0
  188. package/lib/typescript/module/agent-creator/shared.d.ts +0 -7
  189. package/lib/typescript/module/agent-creator/shared.d.ts.map +1 -1
  190. package/lib/typescript/module/agent-creator/types.d.ts +14 -0
  191. package/lib/typescript/module/agent-creator/types.d.ts.map +1 -1
  192. package/lib/typescript/module/agent-creator/use-character-history.d.ts +6 -2
  193. package/lib/typescript/module/agent-creator/use-character-history.d.ts.map +1 -1
  194. package/lib/typescript/module/avatar/Avatar.d.ts.map +1 -1
  195. package/lib/typescript/module/avatar/account.d.ts +4 -2
  196. package/lib/typescript/module/avatar/account.d.ts.map +1 -1
  197. package/lib/typescript/module/avatar/types.d.ts +6 -0
  198. package/lib/typescript/module/avatar/types.d.ts.map +1 -1
  199. package/lib/typescript/module/locale/translations/ar.d.ts.map +1 -1
  200. package/lib/typescript/module/locale/translations/bn.d.ts.map +1 -1
  201. package/lib/typescript/module/locale/translations/ca.d.ts.map +1 -1
  202. package/lib/typescript/module/locale/translations/de.d.ts.map +1 -1
  203. package/lib/typescript/module/locale/translations/es.d.ts.map +1 -1
  204. package/lib/typescript/module/locale/translations/fr.d.ts.map +1 -1
  205. package/lib/typescript/module/locale/translations/hi.d.ts.map +1 -1
  206. package/lib/typescript/module/locale/translations/id.d.ts.map +1 -1
  207. package/lib/typescript/module/locale/translations/it.d.ts.map +1 -1
  208. package/lib/typescript/module/locale/translations/ja.d.ts.map +1 -1
  209. package/lib/typescript/module/locale/translations/pt.d.ts.map +1 -1
  210. package/lib/typescript/module/locale/translations/ru.d.ts.map +1 -1
  211. package/lib/typescript/module/locale/translations/tr.d.ts.map +1 -1
  212. package/lib/typescript/module/locale/translations/zh.d.ts.map +1 -1
  213. package/lib/typescript/module/multi-agent-chat/Marketplace.d.ts.map +1 -1
  214. package/lib/typescript/module/multi-agent-chat/MultiAgentChatBase.d.ts.map +1 -1
  215. package/lib/typescript/module/multi-agent-chat/SelectedAgentPreview.d.ts +1 -1
  216. package/lib/typescript/module/multi-agent-chat/SelectedAgentPreview.d.ts.map +1 -1
  217. package/lib/typescript/module/multi-agent-chat/data.d.ts +4 -1
  218. package/lib/typescript/module/multi-agent-chat/data.d.ts.map +1 -1
  219. package/lib/typescript/module/multi-agent-chat/marketplace-data.d.ts +3 -0
  220. package/lib/typescript/module/multi-agent-chat/marketplace-data.d.ts.map +1 -1
  221. package/package.json +1 -1
  222. package/src/__tests__/support/adoption-matrix.ts +5 -0
  223. package/src/agent-avatar/character.ts +30 -0
  224. package/src/agent-avatar/index.ts +1 -0
  225. package/src/agent-creator/AgentCreator.tsx +0 -4
  226. package/src/agent-creator/AgentCreator.web.tsx +0 -4
  227. package/src/agent-creator/AgentCreatorBase.tsx +51 -89
  228. package/src/agent-creator/context.ts +0 -2
  229. package/src/agent-creator/messages.ts +1 -37
  230. package/src/agent-creator/paint.ts +48 -0
  231. package/src/agent-creator/shared.ts +0 -27
  232. package/src/agent-creator/types.ts +14 -0
  233. package/src/agent-creator/use-character-history.ts +8 -4
  234. package/src/avatar/Avatar.tsx +13 -3
  235. package/src/avatar/account.ts +9 -3
  236. package/src/avatar/types.ts +6 -0
  237. package/src/locale/translations/ar.ts +1 -23
  238. package/src/locale/translations/bn.ts +1 -23
  239. package/src/locale/translations/ca.ts +1 -23
  240. package/src/locale/translations/de.ts +1 -23
  241. package/src/locale/translations/es.ts +1 -23
  242. package/src/locale/translations/fr.ts +1 -23
  243. package/src/locale/translations/hi.ts +1 -23
  244. package/src/locale/translations/id.ts +1 -23
  245. package/src/locale/translations/it.ts +1 -23
  246. package/src/locale/translations/ja.ts +1 -23
  247. package/src/locale/translations/pt.ts +1 -23
  248. package/src/locale/translations/ru.ts +1 -23
  249. package/src/locale/translations/tr.ts +1 -23
  250. package/src/locale/translations/zh.ts +1 -23
  251. package/src/multi-agent-chat/Marketplace.tsx +6 -2
  252. package/src/multi-agent-chat/MultiAgentChatBase.tsx +7 -6
  253. package/src/multi-agent-chat/SelectedAgentPreview.tsx +2 -2
  254. package/src/multi-agent-chat/data.ts +58 -27
  255. package/src/multi-agent-chat/marketplace-data.ts +28 -9
  256. package/lib/commonjs/agent-creator/CustomColorPicker.js +0 -431
  257. package/lib/commonjs/agent-creator/CustomColorPicker.js.map +0 -1
  258. package/lib/commonjs/agent-creator/GlossArt.js +0 -212
  259. package/lib/commonjs/agent-creator/GlossArt.js.map +0 -1
  260. package/lib/commonjs/agent-creator/rainbow-artwork.js +0 -10
  261. package/lib/commonjs/agent-creator/rainbow-artwork.js.map +0 -1
  262. package/lib/module/agent-creator/CustomColorPicker.js +0 -426
  263. package/lib/module/agent-creator/CustomColorPicker.js.map +0 -1
  264. package/lib/module/agent-creator/GlossArt.js +0 -207
  265. package/lib/module/agent-creator/GlossArt.js.map +0 -1
  266. package/lib/module/agent-creator/rainbow-artwork.js +0 -6
  267. package/lib/module/agent-creator/rainbow-artwork.js.map +0 -1
  268. package/lib/typescript/commonjs/agent-creator/CustomColorPicker.d.ts +0 -9
  269. package/lib/typescript/commonjs/agent-creator/CustomColorPicker.d.ts.map +0 -1
  270. package/lib/typescript/commonjs/agent-creator/GlossArt.d.ts +0 -9
  271. package/lib/typescript/commonjs/agent-creator/GlossArt.d.ts.map +0 -1
  272. package/lib/typescript/commonjs/agent-creator/rainbow-artwork.d.ts +0 -3
  273. package/lib/typescript/commonjs/agent-creator/rainbow-artwork.d.ts.map +0 -1
  274. package/lib/typescript/module/agent-creator/CustomColorPicker.d.ts +0 -9
  275. package/lib/typescript/module/agent-creator/CustomColorPicker.d.ts.map +0 -1
  276. package/lib/typescript/module/agent-creator/GlossArt.d.ts +0 -9
  277. package/lib/typescript/module/agent-creator/GlossArt.d.ts.map +0 -1
  278. package/lib/typescript/module/agent-creator/rainbow-artwork.d.ts +0 -3
  279. package/lib/typescript/module/agent-creator/rainbow-artwork.d.ts.map +0 -1
  280. package/src/agent-creator/CustomColorPicker.tsx +0 -443
  281. package/src/agent-creator/GlossArt.tsx +0 -160
  282. package/src/agent-creator/rainbow-artwork.ts +0 -5
@@ -1 +1 @@
1
- {"version":3,"file":"use-character-history.d.ts","sourceRoot":"","sources":["../../../../src/agent-creator/use-character-history.ts"],"names":[],"mappings":"AACA,OAAO,EAA0B,KAAK,eAAe,EAAE,MAAM,8BAA2B,CAAC;AACzF,OAAO,KAAK,EAAE,iBAAiB,EAAE,MAAM,YAAS,CAAC;AAcjD,4GAA4G;AAC5G,wBAAgB,mBAAmB,CACjC,KAAK,EAAE,iBAAiB,EACxB,QAAQ,EAAE,CAAC,KAAK,EAAE,iBAAiB,KAAK,IAAI;;;;oBAsClC,eAAe;;;;;EAqC1B"}
1
+ {"version":3,"file":"use-character-history.d.ts","sourceRoot":"","sources":["../../../../src/agent-creator/use-character-history.ts"],"names":[],"mappings":"AACA,OAAO,KAAK,EAAE,eAAe,EAAE,MAAM,8BAA2B,CAAC;AAEjE,OAAO,KAAK,EAAE,iBAAiB,EAAE,MAAM,YAAS,CAAC;AAajD;;;;GAIG;AACH,wBAAgB,mBAAmB,CACjC,KAAK,EAAE,iBAAiB,EACxB,QAAQ,EAAE,CAAC,KAAK,EAAE,iBAAiB,KAAK,IAAI;;;;oBAsClC,eAAe;;;;;EAqC1B"}
@@ -1 +1 @@
1
- {"version":3,"file":"Avatar.d.ts","sourceRoot":"","sources":["../../../../src/avatar/Avatar.tsx"],"names":[],"mappings":"AAGA,OAAO,KAAK,KAAK,MAAM,OAAO,CAAC;AAmC/B,OAAO,KAAK,EAAE,WAAW,EAAoB,MAAM,YAAS,CAAC;AAmG7D;;;GAGG;AACH,eAAO,MAAM,4BAA4B,uBAA0B,CAAC;AA8WpE,eAAO,MAAM,MAAM,yCAAwB,CAAC"}
1
+ {"version":3,"file":"Avatar.d.ts","sourceRoot":"","sources":["../../../../src/avatar/Avatar.tsx"],"names":[],"mappings":"AAGA,OAAO,KAAK,KAAK,MAAM,OAAO,CAAC;AAmC/B,OAAO,KAAK,EAAE,WAAW,EAAoB,MAAM,YAAS,CAAC;AAmG7D;;;GAGG;AACH,eAAO,MAAM,4BAA4B,uBAA0B,CAAC;AAwXpE,eAAO,MAAM,MAAM,yCAAwB,CAAC"}
@@ -3,8 +3,10 @@ import type { AvatarAccount, AvatarProps } from './types.js';
3
3
  export declare function accountName(account: AvatarAccount | undefined): string | undefined;
4
4
  /**
5
5
  * The one answer to "which character does this avatar carry": an explicit `character` wins
6
- * (`null` opts out), else the character of a bot account. Returns the stored object itself, so a
7
- * caller can memoize on it; resolve it with `tryResolveAvatarCharacter`.
6
+ * (`null` opts out), else the character of a bot account painted in the account's own `color`
7
+ * (`avatarCharacterInColor`). Resolve it with `tryResolveAvatarCharacter`. A painted character is
8
+ * a new object each call, so a caller memoizes on `character`, `account.character` and
9
+ * `account.color` rather than on the result.
8
10
  */
9
11
  export declare function pickAccountCharacter({ character, account, }: Pick<AvatarProps, 'character' | 'account'>): unknown;
10
12
  //# sourceMappingURL=account.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"account.d.ts","sourceRoot":"","sources":["../../../../src/avatar/account.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,aAAa,EAAE,WAAW,EAAE,MAAM,YAAS,CAAC;AAE1D,yEAAyE;AACzE,wBAAgB,WAAW,CAAC,OAAO,EAAE,aAAa,GAAG,SAAS,GAAG,MAAM,GAAG,SAAS,CASlF;AAED;;;;GAIG;AACH,wBAAgB,oBAAoB,CAAC,EACnC,SAAS,EACT,OAAO,GACR,EAAE,IAAI,CAAC,WAAW,EAAE,WAAW,GAAG,SAAS,CAAC,GAAG,OAAO,CAGtD"}
1
+ {"version":3,"file":"account.d.ts","sourceRoot":"","sources":["../../../../src/avatar/account.ts"],"names":[],"mappings":"AACA,OAAO,KAAK,EAAE,aAAa,EAAE,WAAW,EAAE,MAAM,YAAS,CAAC;AAE1D,yEAAyE;AACzE,wBAAgB,WAAW,CAAC,OAAO,EAAE,aAAa,GAAG,SAAS,GAAG,MAAM,GAAG,SAAS,CASlF;AAED;;;;;;GAMG;AACH,wBAAgB,oBAAoB,CAAC,EACnC,SAAS,EACT,OAAO,GACR,EAAE,IAAI,CAAC,WAAW,EAAE,WAAW,GAAG,SAAS,CAAC,GAAG,OAAO,CAMtD"}
@@ -13,6 +13,12 @@ export interface AvatarAccount {
13
13
  avatar?: string | null;
14
14
  /** Stored bot character data, validated before rendering. Unknown recipes fall back to its image. */
15
15
  character?: unknown;
16
+ /**
17
+ * The account's colour, as Oxy stores `User.color`: a Bloom colour preset key (or a legacy
18
+ * `#rrggbb`). A bot's character is drawn in it (`avatarCharacterInColor`), so a bot looks the
19
+ * colour of its account everywhere its account is drawn.
20
+ */
21
+ color?: string | null;
16
22
  username?: string | null;
17
23
  /** A display name, or the account service's structured name. */
18
24
  name?: string | {
@@ -1 +1 @@
1
- {"version":3,"file":"types.d.ts","sourceRoot":"","sources":["../../../../src/avatar/types.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,SAAS,EAAE,MAAM,OAAO,CAAC;AACvC,OAAO,KAAK,EAAE,SAAS,EAAE,SAAS,EAAE,MAAM,cAAc,CAAC;AAIzD,OAAO,KAAK,EAAE,eAAe,EAAE,MAAM,8BAA2B,CAAC;AACjE,OAAO,KAAK,EAAE,KAAK,EAAE,iBAAiB,EAAE,WAAW,EAAE,MAAM,oBAAW,CAAC;AAEvE;;;GAGG;AACH,MAAM,WAAW,aAAa;IAC5B,iGAAiG;IACjG,IAAI,CAAC,EAAE,MAAM,CAAC;IACd,8FAA8F;IAC9F,MAAM,CAAC,EAAE,MAAM,GAAG,IAAI,CAAC;IACvB,qGAAqG;IACrG,SAAS,CAAC,EAAE,OAAO,CAAC;IACpB,QAAQ,CAAC,EAAE,MAAM,GAAG,IAAI,CAAC;IACzB,gEAAgE;IAChE,IAAI,CAAC,EAAE,MAAM,GAAG;QAAE,WAAW,CAAC,EAAE,MAAM,CAAC;QAAC,IAAI,CAAC,EAAE,MAAM,CAAC;QAAC,KAAK,CAAC,EAAE,MAAM,CAAC;QAAC,IAAI,CAAC,EAAE,MAAM,CAAA;KAAE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IACxB;;;;OAIG;IACH,SAAS,CAAC,EAAE,MAAM,CAAC;IACnB;;;;OAIG;IACH,SAAS,CAAC,EAAE,MAAM,CAAC;IACnB,qFAAqF;IACrF,IAAI,CAAC,EAAE,gBAAgB,CAAC;IACxB,MAAM,CAAC,EAAE,MAAM,CAAC;CACjB"}
@@ -1 +1 @@
1
- {"version":3,"file":"ar.d.ts","sourceRoot":"","sources":["../../../../../src/locale/translations/ar.ts"],"names":[],"mappings":"AAGA,OAAO,KAAK,EAAE,YAAY,EAAE,MAAM,YAAS,CAAC;AAuyG5C,QAAA,MAAM,YAAY,EAAE,YAiPnB,CAAC;AAEF,eAAe,YAAY,CAAC"}
1
+ {"version":3,"file":"ar.d.ts","sourceRoot":"","sources":["../../../../../src/locale/translations/ar.ts"],"names":[],"mappings":"AAGA,OAAO,KAAK,EAAE,YAAY,EAAE,MAAM,YAAS,CAAC;AAixG5C,QAAA,MAAM,YAAY,EAAE,YAiPnB,CAAC;AAEF,eAAe,YAAY,CAAC"}
@@ -1 +1 @@
1
- {"version":3,"file":"bn.d.ts","sourceRoot":"","sources":["../../../../../src/locale/translations/bn.ts"],"names":[],"mappings":"AAGA,OAAO,KAAK,EAAE,YAAY,EAAE,MAAM,YAAS,CAAC;AAw0F5C,QAAA,MAAM,YAAY,EAAE,YAiPnB,CAAC;AAEF,eAAe,YAAY,CAAC"}
1
+ {"version":3,"file":"bn.d.ts","sourceRoot":"","sources":["../../../../../src/locale/translations/bn.ts"],"names":[],"mappings":"AAGA,OAAO,KAAK,EAAE,YAAY,EAAE,MAAM,YAAS,CAAC;AAkzF5C,QAAA,MAAM,YAAY,EAAE,YAiPnB,CAAC;AAEF,eAAe,YAAY,CAAC"}
@@ -1 +1 @@
1
- {"version":3,"file":"ca.d.ts","sourceRoot":"","sources":["../../../../../src/locale/translations/ca.ts"],"names":[],"mappings":"AAGA,OAAO,KAAK,EAAE,YAAY,EAAE,MAAM,YAAS,CAAC;AAy6F5C,QAAA,MAAM,YAAY,EAAE,YAiPnB,CAAC;AAEF,eAAe,YAAY,CAAC"}
1
+ {"version":3,"file":"ca.d.ts","sourceRoot":"","sources":["../../../../../src/locale/translations/ca.ts"],"names":[],"mappings":"AAGA,OAAO,KAAK,EAAE,YAAY,EAAE,MAAM,YAAS,CAAC;AAm5F5C,QAAA,MAAM,YAAY,EAAE,YAiPnB,CAAC;AAEF,eAAe,YAAY,CAAC"}
@@ -1 +1 @@
1
- {"version":3,"file":"de.d.ts","sourceRoot":"","sources":["../../../../../src/locale/translations/de.ts"],"names":[],"mappings":"AAGA,OAAO,KAAK,EAAE,YAAY,EAAE,MAAM,YAAS,CAAC;AA28F5C,QAAA,MAAM,YAAY,EAAE,YAiPnB,CAAC;AAEF,eAAe,YAAY,CAAC"}
1
+ {"version":3,"file":"de.d.ts","sourceRoot":"","sources":["../../../../../src/locale/translations/de.ts"],"names":[],"mappings":"AAGA,OAAO,KAAK,EAAE,YAAY,EAAE,MAAM,YAAS,CAAC;AAq7F5C,QAAA,MAAM,YAAY,EAAE,YAiPnB,CAAC;AAEF,eAAe,YAAY,CAAC"}
@@ -1 +1 @@
1
- {"version":3,"file":"es.d.ts","sourceRoot":"","sources":["../../../../../src/locale/translations/es.ts"],"names":[],"mappings":"AAGA,OAAO,KAAK,EAAE,YAAY,EAAE,MAAM,YAAS,CAAC;AAq8F5C,QAAA,MAAM,YAAY,EAAE,YAiPnB,CAAC;AAEF,eAAe,YAAY,CAAC"}
1
+ {"version":3,"file":"es.d.ts","sourceRoot":"","sources":["../../../../../src/locale/translations/es.ts"],"names":[],"mappings":"AAGA,OAAO,KAAK,EAAE,YAAY,EAAE,MAAM,YAAS,CAAC;AA+6F5C,QAAA,MAAM,YAAY,EAAE,YAiPnB,CAAC;AAEF,eAAe,YAAY,CAAC"}
@@ -1 +1 @@
1
- {"version":3,"file":"fr.d.ts","sourceRoot":"","sources":["../../../../../src/locale/translations/fr.ts"],"names":[],"mappings":"AAGA,OAAO,KAAK,EAAE,YAAY,EAAE,MAAM,YAAS,CAAC;AAm9F5C,QAAA,MAAM,YAAY,EAAE,YAiPnB,CAAC;AAEF,eAAe,YAAY,CAAC"}
1
+ {"version":3,"file":"fr.d.ts","sourceRoot":"","sources":["../../../../../src/locale/translations/fr.ts"],"names":[],"mappings":"AAGA,OAAO,KAAK,EAAE,YAAY,EAAE,MAAM,YAAS,CAAC;AA67F5C,QAAA,MAAM,YAAY,EAAE,YAiPnB,CAAC;AAEF,eAAe,YAAY,CAAC"}
@@ -1 +1 @@
1
- {"version":3,"file":"hi.d.ts","sourceRoot":"","sources":["../../../../../src/locale/translations/hi.ts"],"names":[],"mappings":"AAGA,OAAO,KAAK,EAAE,YAAY,EAAE,MAAM,YAAS,CAAC;AA41F5C,QAAA,MAAM,YAAY,EAAE,YAgPnB,CAAC;AAEF,eAAe,YAAY,CAAC"}
1
+ {"version":3,"file":"hi.d.ts","sourceRoot":"","sources":["../../../../../src/locale/translations/hi.ts"],"names":[],"mappings":"AAGA,OAAO,KAAK,EAAE,YAAY,EAAE,MAAM,YAAS,CAAC;AAs0F5C,QAAA,MAAM,YAAY,EAAE,YAgPnB,CAAC;AAEF,eAAe,YAAY,CAAC"}
@@ -1 +1 @@
1
- {"version":3,"file":"id.d.ts","sourceRoot":"","sources":["../../../../../src/locale/translations/id.ts"],"names":[],"mappings":"AAGA,OAAO,KAAK,EAAE,YAAY,EAAE,MAAM,YAAS,CAAC;AA25F5C,QAAA,MAAM,YAAY,EAAE,YAiPnB,CAAC;AAEF,eAAe,YAAY,CAAC"}
1
+ {"version":3,"file":"id.d.ts","sourceRoot":"","sources":["../../../../../src/locale/translations/id.ts"],"names":[],"mappings":"AAGA,OAAO,KAAK,EAAE,YAAY,EAAE,MAAM,YAAS,CAAC;AAq4F5C,QAAA,MAAM,YAAY,EAAE,YAiPnB,CAAC;AAEF,eAAe,YAAY,CAAC"}
@@ -1 +1 @@
1
- {"version":3,"file":"it.d.ts","sourceRoot":"","sources":["../../../../../src/locale/translations/it.ts"],"names":[],"mappings":"AAGA,OAAO,KAAK,EAAE,YAAY,EAAE,MAAM,YAAS,CAAC;AAo8F5C,QAAA,MAAM,YAAY,EAAE,YAiPnB,CAAC;AAEF,eAAe,YAAY,CAAC"}
1
+ {"version":3,"file":"it.d.ts","sourceRoot":"","sources":["../../../../../src/locale/translations/it.ts"],"names":[],"mappings":"AAGA,OAAO,KAAK,EAAE,YAAY,EAAE,MAAM,YAAS,CAAC;AA86F5C,QAAA,MAAM,YAAY,EAAE,YAiPnB,CAAC;AAEF,eAAe,YAAY,CAAC"}
@@ -1 +1 @@
1
- {"version":3,"file":"ja.d.ts","sourceRoot":"","sources":["../../../../../src/locale/translations/ja.ts"],"names":[],"mappings":"AAGA,OAAO,KAAK,EAAE,YAAY,EAAE,MAAM,YAAS,CAAC;AA02F5C,QAAA,MAAM,YAAY,EAAE,YAiPnB,CAAC;AAEF,eAAe,YAAY,CAAC"}
1
+ {"version":3,"file":"ja.d.ts","sourceRoot":"","sources":["../../../../../src/locale/translations/ja.ts"],"names":[],"mappings":"AAGA,OAAO,KAAK,EAAE,YAAY,EAAE,MAAM,YAAS,CAAC;AAo1F5C,QAAA,MAAM,YAAY,EAAE,YAiPnB,CAAC;AAEF,eAAe,YAAY,CAAC"}
@@ -1 +1 @@
1
- {"version":3,"file":"pt.d.ts","sourceRoot":"","sources":["../../../../../src/locale/translations/pt.ts"],"names":[],"mappings":"AAGA,OAAO,KAAK,EAAE,YAAY,EAAE,MAAM,YAAS,CAAC;AAw9F5C,QAAA,MAAM,YAAY,EAAE,YAgPnB,CAAC;AAEF,eAAe,YAAY,CAAC"}
1
+ {"version":3,"file":"pt.d.ts","sourceRoot":"","sources":["../../../../../src/locale/translations/pt.ts"],"names":[],"mappings":"AAGA,OAAO,KAAK,EAAE,YAAY,EAAE,MAAM,YAAS,CAAC;AAk8F5C,QAAA,MAAM,YAAY,EAAE,YAgPnB,CAAC;AAEF,eAAe,YAAY,CAAC"}
@@ -1 +1 @@
1
- {"version":3,"file":"ru.d.ts","sourceRoot":"","sources":["../../../../../src/locale/translations/ru.ts"],"names":[],"mappings":"AAGA,OAAO,KAAK,EAAE,YAAY,EAAE,MAAM,YAAS,CAAC;AAgvG5C,QAAA,MAAM,YAAY,EAAE,YAiPnB,CAAC;AAEF,eAAe,YAAY,CAAC"}
1
+ {"version":3,"file":"ru.d.ts","sourceRoot":"","sources":["../../../../../src/locale/translations/ru.ts"],"names":[],"mappings":"AAGA,OAAO,KAAK,EAAE,YAAY,EAAE,MAAM,YAAS,CAAC;AA0tG5C,QAAA,MAAM,YAAY,EAAE,YAiPnB,CAAC;AAEF,eAAe,YAAY,CAAC"}
@@ -1 +1 @@
1
- {"version":3,"file":"tr.d.ts","sourceRoot":"","sources":["../../../../../src/locale/translations/tr.ts"],"names":[],"mappings":"AAGA,OAAO,KAAK,EAAE,YAAY,EAAE,MAAM,YAAS,CAAC;AA83F5C,QAAA,MAAM,YAAY,EAAE,YAiPnB,CAAC;AAEF,eAAe,YAAY,CAAC"}
1
+ {"version":3,"file":"tr.d.ts","sourceRoot":"","sources":["../../../../../src/locale/translations/tr.ts"],"names":[],"mappings":"AAGA,OAAO,KAAK,EAAE,YAAY,EAAE,MAAM,YAAS,CAAC;AAw2F5C,QAAA,MAAM,YAAY,EAAE,YAiPnB,CAAC;AAEF,eAAe,YAAY,CAAC"}
@@ -1 +1 @@
1
- {"version":3,"file":"zh.d.ts","sourceRoot":"","sources":["../../../../../src/locale/translations/zh.ts"],"names":[],"mappings":"AAGA,OAAO,KAAK,EAAE,YAAY,EAAE,MAAM,YAAS,CAAC;AAgyF5C,QAAA,MAAM,YAAY,EAAE,YAgPnB,CAAC;AAEF,eAAe,YAAY,CAAC"}
1
+ {"version":3,"file":"zh.d.ts","sourceRoot":"","sources":["../../../../../src/locale/translations/zh.ts"],"names":[],"mappings":"AAGA,OAAO,KAAK,EAAE,YAAY,EAAE,MAAM,YAAS,CAAC;AA0wF5C,QAAA,MAAM,YAAY,EAAE,YAgPnB,CAAC;AAEF,eAAe,YAAY,CAAC"}
@@ -1 +1 @@
1
- {"version":3,"file":"Marketplace.d.ts","sourceRoot":"","sources":["../../../../src/multi-agent-chat/Marketplace.tsx"],"names":[],"mappings":"AAAA,OAAO,KAA2C,MAAM,OAAO,CAAC;AA6BhE,OAAO,KAAK,EAAE,KAAK,EAAE,MAAM,WAAQ,CAAC;AACpC,OAAO,EAIL,KAAK,eAAe,EACrB,MAAM,uBAAoB,CAAC;AAoI5B,wBAAgB,WAAW,CAAC,EAC1B,MAAM,EACN,gBAAgB,EAChB,cAAc,EACd,QAAQ,EACR,MAAM,EACN,OAAO,EACP,MAAM,EACN,WAAW,EACX,WAA2B,GAC5B,EAAE;IACD,MAAM,EAAE,KAAK,EAAE,CAAC;IAChB,gBAAgB,EAAE,MAAM,EAAE,CAAC;IAC3B,cAAc,EAAE,CAAC,EAAE,EAAE,MAAM,KAAK,IAAI,CAAC;IACrC,QAAQ,EAAE,CAAC,IAAI,EAAE,eAAe,KAAK,IAAI,CAAC;IAC1C,MAAM,EAAE,CAAC,EAAE,EAAE,MAAM,KAAK,IAAI,CAAC;IAC7B,OAAO,EAAE,MAAM,IAAI,CAAC;IACpB,MAAM,EAAE,CAAC,IAAI,EAAE,MAAM,EAAE,OAAO,EAAE,MAAM,KAAK,IAAI,CAAC;IAChD,WAAW,CAAC,EAAE,MAAM,GAAG,IAAI,CAAC;IAC5B,WAAW,CAAC,EAAE,SAAS,GAAG,aAAa,CAAC;CACzC,qBAmZA"}
1
+ {"version":3,"file":"Marketplace.d.ts","sourceRoot":"","sources":["../../../../src/multi-agent-chat/Marketplace.tsx"],"names":[],"mappings":"AAAA,OAAO,KAA2C,MAAM,OAAO,CAAC;AA6BhE,OAAO,KAAK,EAAE,KAAK,EAAE,MAAM,WAAQ,CAAC;AACpC,OAAO,EAIL,KAAK,eAAe,EACrB,MAAM,uBAAoB,CAAC;AAwI5B,wBAAgB,WAAW,CAAC,EAC1B,MAAM,EACN,gBAAgB,EAChB,cAAc,EACd,QAAQ,EACR,MAAM,EACN,OAAO,EACP,MAAM,EACN,WAAW,EACX,WAA2B,GAC5B,EAAE;IACD,MAAM,EAAE,KAAK,EAAE,CAAC;IAChB,gBAAgB,EAAE,MAAM,EAAE,CAAC;IAC3B,cAAc,EAAE,CAAC,EAAE,EAAE,MAAM,KAAK,IAAI,CAAC;IACrC,QAAQ,EAAE,CAAC,IAAI,EAAE,eAAe,KAAK,IAAI,CAAC;IAC1C,MAAM,EAAE,CAAC,EAAE,EAAE,MAAM,KAAK,IAAI,CAAC;IAC7B,OAAO,EAAE,MAAM,IAAI,CAAC;IACpB,MAAM,EAAE,CAAC,IAAI,EAAE,MAAM,EAAE,OAAO,EAAE,MAAM,KAAK,IAAI,CAAC;IAChD,WAAW,CAAC,EAAE,MAAM,GAAG,IAAI,CAAC;IAC5B,WAAW,CAAC,EAAE,SAAS,GAAG,aAAa,CAAC;CACzC,qBAmZA"}
@@ -1 +1 @@
1
- {"version":3,"file":"MultiAgentChatBase.d.ts","sourceRoot":"","sources":["../../../../src/multi-agent-chat/MultiAgentChatBase.tsx"],"names":[],"mappings":"AAyDA,OAAO,KAAK,EAAE,mBAAmB,EAAE,MAAM,YAAS,CAAC;AAmBnD,wBAAgB,kBAAkB,CAAC,KAAK,EAAE,mBAAmB,+BAq6B5D"}
1
+ {"version":3,"file":"MultiAgentChatBase.d.ts","sourceRoot":"","sources":["../../../../src/multi-agent-chat/MultiAgentChatBase.tsx"],"names":[],"mappings":"AA0DA,OAAO,KAAK,EAAE,mBAAmB,EAAE,MAAM,YAAS,CAAC;AAmBnD,wBAAgB,kBAAkB,CAAC,KAAK,EAAE,mBAAmB,+BAq6B5D"}
@@ -1,5 +1,5 @@
1
1
  import type { AvatarFlights } from '../avatar-flight';
2
- import type { Agent } from './data.js';
2
+ import { type Agent } from './data.js';
3
3
  /** The selected-preview composition: one large avatar, a trio, or a ring from four up. */
4
4
  export declare function previewAvatarGeometry(count: number, index: number): {
5
5
  size: number;
@@ -1 +1 @@
1
- {"version":3,"file":"SelectedAgentPreview.d.ts","sourceRoot":"","sources":["../../../../src/multi-agent-chat/SelectedAgentPreview.tsx"],"names":[],"mappings":"AASA,OAAO,KAAK,EAAE,aAAa,EAAE,MAAM,kBAAkB,CAAC;AAMtD,OAAO,KAAK,EAAE,KAAK,EAAE,MAAM,WAAQ,CAAC;AAKpC,0FAA0F;AAC1F,wBAAgB,qBAAqB,CAAC,KAAK,EAAE,MAAM,EAAE,KAAK,EAAE,MAAM;;;;EAsBjE;AAmDD,wBAAgB,oBAAoB,CAAC,EACnC,MAAM,EACN,OAAO,EACP,MAAM,EACN,OAAe,GAChB,EAAE;IACD,MAAM,EAAE,KAAK,EAAE,CAAC;IAChB,OAAO,EAAE,aAAa,CAAC;IACvB,2EAA2E;IAC3E,MAAM,EAAE,MAAM,CAAC;IACf,OAAO,CAAC,EAAE,OAAO,CAAC;CACnB,+BAqCA"}
1
+ {"version":3,"file":"SelectedAgentPreview.d.ts","sourceRoot":"","sources":["../../../../src/multi-agent-chat/SelectedAgentPreview.tsx"],"names":[],"mappings":"AASA,OAAO,KAAK,EAAE,aAAa,EAAE,MAAM,kBAAkB,CAAC;AAMtD,OAAO,EAAkB,KAAK,KAAK,EAAE,MAAM,WAAQ,CAAC;AAKpD,0FAA0F;AAC1F,wBAAgB,qBAAqB,CAAC,KAAK,EAAE,MAAM,EAAE,KAAK,EAAE,MAAM;;;;EAsBjE;AAmDD,wBAAgB,oBAAoB,CAAC,EACnC,MAAM,EACN,OAAO,EACP,MAAM,EACN,OAAe,GAChB,EAAE;IACD,MAAM,EAAE,KAAK,EAAE,CAAC;IAChB,OAAO,EAAE,aAAa,CAAC;IACvB,2EAA2E;IAC3E,MAAM,EAAE,MAAM,CAAC;IACf,OAAO,CAAC,EAAE,OAAO,CAAC;CACnB,+BAqCA"}
@@ -1,5 +1,8 @@
1
+ import { type AvatarCharacter } from '../agent-avatar/index.js';
1
2
  import type { AgentCreatorAgent } from '../agent-creator/types.js';
2
3
  export type Agent = AgentCreatorAgent;
4
+ /** An agent's character as drawn: its parts, painted in the agent's own colour. */
5
+ export declare function agentCharacter(agent: Pick<Agent, 'avatar' | 'color'>): AvatarCharacter;
3
6
  export type Message = {
4
7
  id: string;
5
8
  role: 'user' | 'agent';
@@ -22,7 +25,7 @@ export type Workspace = {
22
25
  installedPlugins?: string[];
23
26
  };
24
27
  /** Choose an unused identity, including when restoring old unnamed demo bots. */
25
- export declare function nextAgentIdentity(agents: Pick<Agent, 'name'>[]): Pick<Agent, 'name' | 'avatar'>;
28
+ export declare function nextAgentIdentity(agents: Pick<Agent, 'name'>[]): Pick<Agent, 'name' | 'avatar' | 'color'>;
26
29
  export declare const INITIAL_AGENTS: Agent[];
27
30
  export declare const INITIAL_WORKSPACE: Workspace;
28
31
  /** Restored data is bounded and validated before it reaches the animated renderer. */
@@ -1 +1 @@
1
- {"version":3,"file":"data.d.ts","sourceRoot":"","sources":["../../../../src/multi-agent-chat/data.ts"],"names":[],"mappings":"AAUA,OAAO,KAAK,EAAE,iBAAiB,EAAE,MAAM,2BAAwB,CAAC;AAChE,MAAM,MAAM,KAAK,GAAG,iBAAiB,CAAC;AACtC,MAAM,MAAM,OAAO,GAAG;IACpB,EAAE,EAAE,MAAM,CAAC;IACX,IAAI,EAAE,MAAM,GAAG,OAAO,CAAC;IACvB,OAAO,CAAC,EAAE,MAAM,CAAC;IACjB,IAAI,EAAE,MAAM,CAAC;IACb,OAAO,CAAC,EAAE,OAAO,CAAC;CACnB,CAAC;AACF,MAAM,MAAM,YAAY,GAAG;IACzB,EAAE,EAAE,MAAM,CAAC;IACX,KAAK,EAAE,MAAM,CAAC;IACd,WAAW,CAAC,EAAE,MAAM,CAAC;IACrB,MAAM,CAAC,EAAE,OAAO,CAAC;IACjB,QAAQ,EAAE,MAAM,EAAE,CAAC;IACnB,QAAQ,EAAE,OAAO,EAAE,CAAC;CACrB,CAAC;AACF,MAAM,MAAM,SAAS,GAAG;IACtB,MAAM,EAAE,KAAK,EAAE,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AAK,EAAE,EAAE,GAAG,EAAE,MAAM,EAAE,EAAE,EAAE,EAAE,MAAM,GAAG,YAAY,CAQxF;AAED,mGAAmG;AACnG,wBAAgB,wBAAwB,CACtC,SAAS,EAAE,SAAS,EACpB,MAAM,EAAE,MAAM,EACd,QAAQ,EAAE,MAAM,EAAE,GACjB,SAAS,CAWX;AAED,wBAAgB,kBAAkB,CAAC,SAAS,EAAE,SAAS,EAAE,MAAM,EAAE,MAAM,GAAG,SAAS,CAOlF;AAED,oFAAoF;AACpF,eAAO,MAAM,YAAY,ilIAWf,CAAC;AAEX,gFAAgF;AAChF,wBAAgB,eAAe,CAAC,IAAI,EAAE,MAAM,GAAG,MAAM,CAQpD;AAED,wBAAgB,SAAS,CAAC,KAAK,EAAE,KAAK,EAAE,IAAI,SAAI,GAAG,MAAM,CAqBxD"}
@@ -10,7 +10,10 @@ export type MarketplaceItem = {
10
10
  developer: string;
11
11
  website: string;
12
12
  logo?: 'notion' | 'figma' | 'github' | 'slack' | 'gmail' | 'drive' | 'calendar' | 'appwrite' | 'linear' | 'aws';
13
+ /** A bot's character parts; it is drawn in `color`. */
13
14
  avatar?: AvatarCharacter;
15
+ /** A bot's colour: a Bloom colour preset key. */
16
+ color?: string;
14
17
  apps: string[];
15
18
  skills: {
16
19
  name: string;
@@ -1 +1 @@
1
- {"version":3,"file":"marketplace-data.d.ts","sourceRoot":"","sources":["../../../../src/multi-agent-chat/marketplace-data.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,eAAe,EAAE,MAAM,0BAAiB,CAAC;AACvD,OAAO,EAAmB,KAAK,SAAS,EAAE,MAAM,WAAQ,CAAC;AAEzD,MAAM,MAAM,eAAe,GAAG;IAC5B,EAAE,EAAE,MAAM,CAAC;IACX,IAAI,EAAE,MAAM,CAAC;IACb,IAAI,EAAE,QAAQ,GAAG,KAAK,CAAC;IACvB,QAAQ,EAAE,MAAM,CAAC;IACjB,WAAW,EAAE,MAAM,CAAC;IACpB,MAAM,EAA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AAC;IAChB,IAAI,CAAC,EACD,QAAQ,GACR,OAAO,GACP,QAAQ,GACR,OAAO,GACP,OAAO,GACP,OAAO,GACP,UAAU,GACV,UAAU,GACV,QAAQ,GACR,KAAK,CAAC;IACV,uDAAuD;IACvD,MAAM,CAAC,EAAE,eAAe,CAAC;IACzB,iDAAiD;IACjD,KAAK,CAAC,EAAE,MAAM,CAAC;IACf,IAAI,EAAE,MAAM,EAAE,CAAC;IACf,MAAM,EAAE;QAAE,IAAI,EAAE,MAAM,CAAC;QAAC,WAAW,EAAE,MAAM,CAAA;KAAE,EAAE,CAAC;CACjD,CAAC;AAgDF,yFAAyF;AACzF,eAAO,MAAM,iBAAiB,EAAE,eAAe,EA6N9C,CAAC;AAEF,eAAO,MAAM,eAAe,UAA0C,CAAC;AACvE,eAAO,MAAM,kBAAkB,GAAI,IAAI,MAAM,WAAwB,CAAC;AACtE,wBAAgB,iBAAiB,CAAC,KAAK,EAAE,MAAM,EAAE,IAAI,GAAE,KAAK,GAAG,QAAQ,GAAG,KAAa,qBAWtF;AACD,wBAAgB,iBAAiB,CAAC,SAAS,EAAE,SAAS,EAAE,IAAI,EAAE,eAAe,GAAG,SAAS,CAuBxF"}
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@oxy.so/bloom",
3
- "version": "19.11.0",
3
+ "version": "20.0.0",
4
4
  "packageManager": "bun@1.4.3",
5
5
  "description": "Bloom UI — Oxy ecosystem component library for React Native + Expo + Web",
6
6
  "main": "lib/commonjs/index.js",
@@ -389,6 +389,11 @@ export const CLASSIFICATION: Record<string, Record<string, Classification>> = {
389
389
  verdict: 'does-not-apply',
390
390
  reason: SELECTION_ROW,
391
391
  },
392
+ 'agent-creator': {
393
+ verdict: 'does-not-apply',
394
+ reason:
395
+ 'the only form role is the `[role="textbox"]` selector its undo shortcut uses to leave keystrokes typed into a field alone, not a node it renders. Its fields are `TextFieldInput` and `Textarea`, which read the contract themselves, and its colour control is a `ColorSwatchPicker`.',
396
+ },
392
397
  styles: {
393
398
  verdict: 'does-not-apply',
394
399
  reason:
@@ -14,6 +14,7 @@ import {
14
14
  } from './catalog-ids';
15
15
  import { CHARACTER_COLORS } from './character-colors';
16
16
  import { normalizeAvatarSkinColor } from './skin-color';
17
+ import { APP_COLOR_PRESETS, resolveProfileColor } from '../theme/color-presets';
17
18
  import { CHARACTER_PRESET_DEFAULTS } from './character-preset-defaults';
18
19
 
19
20
  /**
@@ -203,6 +204,35 @@ export function updateAvatarCharacter(
203
204
  return next;
204
205
  }
205
206
 
207
+ /**
208
+ * A character painted in its account's colour.
209
+ *
210
+ * `color` is the colour of the account the character stands for, as Oxy stores `User.color`: a
211
+ * Bloom colour preset key (`'lagoon'`), or a legacy `#rgb`/`#rrggbb`. The body takes the preset's
212
+ * identity seed (or the legacy colour), lifted to the avatar skin floor, so an agent is drawn in
213
+ * the same colour its profile is themed with. This is the one place a colour preset becomes an
214
+ * avatar paint.
215
+ *
216
+ * The result carries `bodyColor` and no `color`; every part is kept. A colour that does not resolve
217
+ * (`null`, `undefined`, an unknown key) returns the character unchanged, so its own paint (or its
218
+ * preset's) applies.
219
+ */
220
+ export function avatarCharacterInColor(
221
+ character: AvatarCharacter,
222
+ color: string | null | undefined,
223
+ ): AvatarCharacter {
224
+ const resolved = resolveProfileColor(color);
225
+ if (resolved === undefined) return character;
226
+ const seed =
227
+ resolved.colorPreset === undefined
228
+ ? resolved.seed
229
+ : APP_COLOR_PRESETS[resolved.colorPreset].hex;
230
+ const painted: AvatarCharacter = { ...character };
231
+ delete painted.color;
232
+ painted.bodyColor = normalizeAvatarSkinColor(seed);
233
+ return painted;
234
+ }
235
+
206
236
  /** The body paint as `#rrggbb`, whichever way it was named. */
207
237
  export function avatarBodyHex(resolved: ResolvedAvatarCharacter): string {
208
238
  return 'bodyColor' in resolved.paint
@@ -8,6 +8,7 @@ export type { AgentAvatarMood, AgentAvatarProps, AgentAvatarProviderProps } from
8
8
  // checks saved JSON, `characterFromLegacy` migrates an avatar saved before 10.
9
9
  export {
10
10
  avatarBodyHex,
11
+ avatarCharacterInColor,
11
12
  avatarCharacterOf,
12
13
  parseAvatarCharacter,
13
14
  resolveAvatarCharacter,
@@ -1,5 +1,4 @@
1
1
  import { Screen, ScreenScrollView } from '../screen/index';
2
- import { Popover, PopoverContent, PopoverTrigger } from '../popover';
3
2
  import {
4
3
  Select,
5
4
  SelectContent,
@@ -23,9 +22,6 @@ const bindings = {
23
22
  SelectContent,
24
23
  SelectItem,
25
24
  SelectItemText,
26
- Popover,
27
- PopoverTrigger,
28
- PopoverContent,
29
25
  SettingsSelect,
30
26
  };
31
27
  export function AgentCreator(props: AgentCreatorProps) {
@@ -1,5 +1,4 @@
1
1
  import { Screen, ScreenScrollView } from '../screen/index.web';
2
- import { Popover, PopoverContent, PopoverTrigger } from '../popover/index.web';
3
2
  import {
4
3
  Select,
5
4
  SelectContent,
@@ -23,9 +22,6 @@ const bindings = {
23
22
  SelectContent,
24
23
  SelectItem,
25
24
  SelectItemText,
26
- Popover,
27
- PopoverTrigger,
28
- PopoverContent,
29
25
  SettingsSelect,
30
26
  };
31
27
  export function AgentCreator(props: AgentCreatorProps) {
@@ -8,6 +8,9 @@ import {
8
8
  resolveAvatarCharacter,
9
9
  updateAvatarCharacter,
10
10
  } from '../agent-avatar';
11
+ import { ColorSwatchPicker } from '../color-swatch-picker';
12
+ import { APP_COLOR_PRESETS, COLOR_PRESET_REGISTRY, FREE_COLOR_NAMES } from '../theme/color-presets';
13
+ import { drawnCharacter } from './paint';
11
14
  import { editorShapeId } from './shape-choices';
12
15
  import { ButtonGroup, ButtonGroupItem } from '../button-group';
13
16
  import { RiArrowGoBackLine } from '../icons/remix/RiArrowGoBackLine';
@@ -22,15 +25,13 @@ import { Text } from '../typography';
22
25
  import { AgentCreatorField } from './AgentCreatorField';
23
26
  import { AgentPreferencesPanel } from './AgentPreferencesPanel';
24
27
  import { CharacterControls } from './CharacterControls';
25
- import { CustomColorPicker } from './CustomColorPicker';
26
28
  import { EmotionPicker } from './EmotionPicker';
27
- import { GlossArt } from './GlossArt';
28
29
  import { PageHeader } from '../page-header/PageHeader';
29
30
  import { useDialogContext } from '../dialog/context';
30
31
  import { SurfaceLevelProvider } from '../styles/surface-levels';
31
32
  import { useSurfaceBacking } from '../surface/use-surface-backing';
32
33
  import { ShapeArc } from './ShapeArc';
33
- import { CHARACTER_COLORS, CHARACTER_OPTIONS } from './constants';
34
+ import { CHARACTER_OPTIONS } from './constants';
34
35
  import {
35
36
  AgentCreatorCopyContext,
36
37
  useAgentCreatorBindings,
@@ -46,8 +47,7 @@ export function AgentCreatorBase(props: AgentCreatorProps) {
46
47
  const { isWithinDialog } = useDialogContext();
47
48
  const { colors } = useTheme();
48
49
  const backing = useSurfaceBacking(colors.background, style);
49
- const { Screen, ScreenScrollView, Popover, PopoverTrigger, PopoverContent } =
50
- useAgentCreatorBindings();
50
+ const { Screen, ScreenScrollView } = useAgentCreatorBindings();
51
51
  const latest = useRef({ agent, onChange });
52
52
  latest.current = { agent, onChange };
53
53
  const copy = useMemo(
@@ -103,13 +103,34 @@ export function AgentCreatorBase(props: AgentCreatorProps) {
103
103
  node?.addEventListener('keydown', keydown);
104
104
  return () => node?.removeEventListener('keydown', keydown);
105
105
  }, []);
106
- // Every control reads the resolved character and writes one edit to the saved one.
107
- const character = useMemo(() => resolveAvatarCharacter(avatar), [avatar]);
106
+ // The colours offered are the host's, and only those Bloom can draw.
107
+ const offered = useMemo(
108
+ () => (props.colors ?? FREE_COLOR_NAMES).filter((key) => key in APP_COLOR_PRESETS),
109
+ [props.colors],
110
+ );
111
+ const swatches = useMemo(() => {
112
+ const keyOf: Record<string, string> = {};
113
+ const names: Record<string, string> = {};
114
+ const hexes = offered.map((key) => {
115
+ const preset = COLOR_PRESET_REGISTRY.find(({ name }) => name === key)!;
116
+ keyOf[preset.hex] = key;
117
+ names[preset.hex] = preset.displayName;
118
+ return preset.hex;
119
+ });
120
+ return { hexes, keyOf, names };
121
+ }, [offered]);
122
+ // Every control draws the character in the agent's colour and writes one edit to the saved
123
+ // one; the history keeps the parts and drops the paint.
124
+ const painted = useMemo(
125
+ () => drawnCharacter(avatar, agent.color, offered),
126
+ [avatar, agent.color, offered],
127
+ );
128
+ const character = useMemo(() => resolveAvatarCharacter(painted), [painted]);
108
129
  const edit = (patch: Parameters<typeof updateAvatarCharacter>[1]) =>
109
- history.change(updateAvatarCharacter(avatar, patch));
110
- const paintColor = 'color' in character.paint ? character.paint.color : undefined;
111
- const customHex = 'bodyColor' in character.paint ? character.paint.bodyColor : undefined;
130
+ history.change(updateAvatarCharacter(painted, patch));
112
131
  const bodyHex = avatarBodyHex(character);
132
+ const chosenHex = (APP_COLOR_PRESETS as Record<string, { hex: string } | undefined>)[agent.color]
133
+ ?.hex;
113
134
  const shapeChoices = useMemo(
114
135
  () =>
115
136
  CHARACTER_OPTIONS.shape.map(([id, title]) => ({
@@ -118,9 +139,9 @@ export function AgentCreatorBase(props: AgentCreatorProps) {
118
139
  id in messages.shapes
119
140
  ? messages.shapes[id as keyof typeof messages.shapes]
120
141
  : messages.characterOption('shape', id, title),
121
- character: updateAvatarCharacter(avatar, { shape: id }),
142
+ character: updateAvatarCharacter(painted, { shape: id }),
122
143
  })),
123
- [avatar, messages],
144
+ [painted, messages],
124
145
  );
125
146
  const nearby = useMemo(() => {
126
147
  const index = CHARACTER_OPTIONS.shape.findIndex(
@@ -128,19 +149,19 @@ export function AgentCreatorBase(props: AgentCreatorProps) {
128
149
  );
129
150
  return [index - 1, index + 1].flatMap((i) => {
130
151
  const next = CHARACTER_OPTIONS.shape[i];
131
- return next ? [updateAvatarCharacter(avatar, { shape: next[0] })] : [];
152
+ return next ? [updateAvatarCharacter(painted, { shape: next[0] })] : [];
132
153
  });
133
- }, [avatar, character.shape]);
154
+ }, [painted, character.shape]);
134
155
  useVectorGeometryPreparation(nearby);
135
156
  const eyeChoices = useMemo(
136
157
  () =>
137
158
  CHARACTER_OPTIONS.eyes.map(([id, title]) => ({
138
159
  id,
139
160
  label: messages.characterOption('eyes', id, title),
140
- character: updateAvatarCharacter(avatar, { eyes: id }),
161
+ character: updateAvatarCharacter(painted, { eyes: id }),
141
162
  disabled: false,
142
163
  })),
143
- [avatar, messages],
164
+ [painted, messages],
144
165
  );
145
166
  return (
146
167
  <AgentCreatorCopyContext.Provider value={copy}>
@@ -238,7 +259,7 @@ export function AgentCreatorBase(props: AgentCreatorProps) {
238
259
  }}
239
260
  >
240
261
  <AgentAvatar
241
- character={avatar}
262
+ character={painted}
242
263
  size={162}
243
264
  interactive
244
265
  renderer="svg"
@@ -270,80 +291,21 @@ export function AgentCreatorBase(props: AgentCreatorProps) {
270
291
  {preparing ? messages.preparingAvatar : ''}
271
292
  </Text>
272
293
  </StyledView>
273
- <StyledView
274
- className="mt-[15px] flex shrink-0 flex-row justify-center"
275
- style={{ flexShrink: 0 }}
276
- >
277
- <StyledView
278
- collapsable={false}
279
- role="group"
280
- accessibilityLabel={messages.color}
281
- testID="agent-avatar-color-selector"
282
- className="flex h-[38px] shrink-0 items-center gap-1 rounded-full border border-border-button-default bg-background-primary-default p-[5px] shadow-xs flex-row"
283
- style={{
284
- backgroundColor: colors.card,
285
- borderColor: colors.border,
286
- boxShadow: '0 1px 2px rgba(0,0,0,.05)',
294
+ <StyledView className="mt-[15px] px-3" testID="agent-avatar-color-selector">
295
+ <ColorSwatchPicker
296
+ label={messages.color}
297
+ value={chosenHex ?? ''}
298
+ onValueChange={(hex) => {
299
+ const color = swatches.keyOf[hex];
300
+ if (color !== undefined && color !== agent.color) onChange({ ...agent, color });
287
301
  }}
288
- >
289
- {CHARACTER_OPTIONS.color.map(([id, title]) => {
290
- const active = paintColor === id;
291
- const hex = CHARACTER_COLORS[id];
292
- const disabled = false;
293
- return (
294
- <StyledPressable
295
- key={id}
296
- accessibilityRole="button"
297
- accessibilityLabel={messages.avatarColorLabel(
298
- messages.characterOption('color', id, title),
299
- )}
300
- aria-pressed={active}
301
- aria-disabled={disabled}
302
- accessibilityState={{ selected: active, disabled }}
303
- disabled={disabled}
304
- onPress={() => edit({ color: id as typeof paintColor })}
305
- className="relative shrink-0 cursor-pointer overflow-hidden rounded-full transition-transform duration-150 ease-out hover:scale-110 outline-none focus-visible:ring-2 focus-visible:ring-border-focus-ring focus-visible:ring-offset-2 size-[26px]"
306
- >
307
- <GlossArt center={hex} edge={hex} active={active} />
308
- </StyledPressable>
309
- );
310
- })}
311
- <Popover>
312
- <PopoverTrigger asChild label={messages.customColor}>
313
- <StyledPressable
314
- aria-pressed={Boolean(customHex)}
315
- accessibilityState={{ selected: Boolean(customHex) }}
316
- className="relative size-[26px] shrink-0 overflow-hidden rounded-full"
317
- >
318
- <GlossArt
319
- rainbow={!customHex}
320
- center={customHex}
321
- edge={customHex}
322
- active={Boolean(customHex)}
323
- />
324
- </StyledPressable>
325
- </PopoverTrigger>
326
- <PopoverContent
327
- label={messages.customColor}
328
- align="end"
329
- minWidth={248}
330
- maxWidth={248}
331
- className="w-[248px] rounded-3xl p-2.5"
332
- >
333
- <CustomColorPicker
334
- key={agent.id}
335
- value={bodyHex}
336
- onInteractionStart={history.begin}
337
- onInteractionEnd={history.end}
338
- onChange={(hex) => {
339
- if (/^#[0-9a-f]{6}$/i.test(hex)) edit({ bodyColor: hex.toLowerCase() });
340
- }}
341
- />
342
- </PopoverContent>
343
- </Popover>
344
- </StyledView>
302
+ colors={swatches.hexes}
303
+ names={swatches.names}
304
+ size={22}
305
+ style={{ justifyContent: 'center' }}
306
+ />
345
307
  </StyledView>
346
- <CharacterControls character={avatar} onChange={history.change} />
308
+ <CharacterControls character={painted} onChange={history.change} />
347
309
  <StyledView
348
310
  className="mt-[15px] overflow-hidden rounded-2xl bg-background-secondary-default ps-3"
349
311
  style={{ backgroundColor: colors.backgroundSecondary }}
@@ -1,6 +1,5 @@
1
1
  import { createContext, useContext, useMemo } from 'react';
2
2
  import { useMessages } from '../locale/messages';
3
- import type * as PopoverParts from '../popover/Popover';
4
3
  import type * as SelectParts from '../select';
5
4
  import { AGENT_CREATOR_MESSAGES, type AgentCreatorMessages } from './messages';
6
5
 
@@ -14,7 +13,6 @@ export type AgentCreatorBindings = Pick<
14
13
  | 'SelectItem'
15
14
  | 'SelectItemText'
16
15
  > &
17
- Pick<typeof PopoverParts, 'Popover' | 'PopoverTrigger' | 'PopoverContent'> &
18
16
  Pick<typeof import('../settings-modal/SettingsSelect'), 'SettingsSelect'> &
19
17
  import('../screen/types').ScreenComponents;
20
18
  export const AgentCreatorContext = createContext<AgentCreatorBindings | null>(null);