@oxy.so/bloom 7.31.1 → 7.32.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 (251) hide show
  1. package/assets/character-runtime/README.md +114 -19
  2. package/assets/character-runtime/authored-parts.mjs +754 -0
  3. package/assets/character-runtime/catalog-parts.mjs +362 -0
  4. package/assets/character-runtime/character-recipe.mjs +247 -0
  5. package/assets/character-runtime/clippo-geometry.mjs +679 -0
  6. package/assets/character-runtime/controller-mode.mjs +208 -0
  7. package/assets/character-runtime/cyclops-geometry.mjs +180 -0
  8. package/assets/character-runtime/legacy-engine.mjs +406 -54
  9. package/assets/character-runtime/legacy-geometry.mjs +242 -85
  10. package/assets/character-runtime/legacy-worker.mjs +82 -23
  11. package/assets/character-runtime/managed-avatar.mjs +12 -17
  12. package/assets/character-runtime/migrated-contours.mjs +2067 -0
  13. package/assets/character-runtime/migrated-faces.mjs +59 -0
  14. package/assets/character-runtime/pose-transition.mjs +523 -0
  15. package/assets/character-runtime/preparation-cache.mjs +60 -0
  16. package/assets/character-runtime/render-budget.mjs +5 -3
  17. package/assets/character-runtime/render-errors.mjs +180 -0
  18. package/assets/character-runtime/resolution.mjs +10 -0
  19. package/assets/character-runtime/runtime.mjs +744 -295
  20. package/assets/character-runtime/sha256.mjs +44 -0
  21. package/assets/character-runtime/shared-programs.mjs +534 -0
  22. package/assets/character-runtime/shared-surface.mjs +490 -0
  23. package/assets/character-runtime/shared-textures.mjs +420 -0
  24. package/assets/character-runtime/thumbnails/eyes/todd.png +0 -0
  25. package/docs/adoption-matrix.mdx +1 -1
  26. package/docs/agent-avatar.mdx +45 -7
  27. package/docs/agent-creator.mdx +13 -3
  28. package/lib/commonjs/agent-avatar/AgentAvatar.js +1 -1
  29. package/lib/commonjs/agent-avatar/AgentAvatar.js.map +1 -1
  30. package/lib/commonjs/agent-avatar/CharacterAvatar.js +2 -1
  31. package/lib/commonjs/agent-avatar/CharacterAvatar.js.map +1 -1
  32. package/lib/commonjs/agent-avatar/character-colors.js +19 -0
  33. package/lib/commonjs/agent-avatar/character-colors.js.map +1 -0
  34. package/lib/commonjs/agent-avatar/character-shapes.js +106 -0
  35. package/lib/commonjs/agent-avatar/character-shapes.js.map +1 -0
  36. package/lib/commonjs/agent-avatar/config-character.js +4 -0
  37. package/lib/commonjs/agent-avatar/config-character.js.map +1 -1
  38. package/lib/commonjs/agent-avatar/legacy-recipe.js +19 -6
  39. package/lib/commonjs/agent-avatar/legacy-recipe.js.map +1 -1
  40. package/lib/commonjs/agent-creator/AgentCreatorBase.js +67 -107
  41. package/lib/commonjs/agent-creator/AgentCreatorBase.js.map +1 -1
  42. package/lib/commonjs/agent-creator/CharacterControls.js +23 -5
  43. package/lib/commonjs/agent-creator/CharacterControls.js.map +1 -1
  44. package/lib/commonjs/agent-creator/ClippoArtwork.js +64 -0
  45. package/lib/commonjs/agent-creator/ClippoArtwork.js.map +1 -0
  46. package/lib/commonjs/agent-creator/CyclopsArtwork.js +46 -0
  47. package/lib/commonjs/agent-creator/CyclopsArtwork.js.map +1 -0
  48. package/lib/commonjs/agent-creator/EmotionPicker.js +8 -1
  49. package/lib/commonjs/agent-creator/EmotionPicker.js.map +1 -1
  50. package/lib/commonjs/agent-creator/ShapeSilhouette.js +8 -1
  51. package/lib/commonjs/agent-creator/ShapeSilhouette.js.map +1 -1
  52. package/lib/commonjs/agent-creator/ToddArtwork.js +30 -0
  53. package/lib/commonjs/agent-creator/ToddArtwork.js.map +1 -0
  54. package/lib/commonjs/agent-creator/constants.js +16 -17
  55. package/lib/commonjs/agent-creator/constants.js.map +1 -1
  56. package/lib/commonjs/agent-creator/messages.js +1 -1
  57. package/lib/commonjs/agent-creator/messages.js.map +1 -1
  58. package/lib/commonjs/locale/translations/ar.js +1 -1
  59. package/lib/commonjs/locale/translations/ar.js.map +1 -1
  60. package/lib/commonjs/locale/translations/bn.js +1 -1
  61. package/lib/commonjs/locale/translations/bn.js.map +1 -1
  62. package/lib/commonjs/locale/translations/ca.js +1 -1
  63. package/lib/commonjs/locale/translations/ca.js.map +1 -1
  64. package/lib/commonjs/locale/translations/de.js +1 -1
  65. package/lib/commonjs/locale/translations/de.js.map +1 -1
  66. package/lib/commonjs/locale/translations/es.js +1 -1
  67. package/lib/commonjs/locale/translations/es.js.map +1 -1
  68. package/lib/commonjs/locale/translations/fr.js +1 -1
  69. package/lib/commonjs/locale/translations/fr.js.map +1 -1
  70. package/lib/commonjs/locale/translations/hi.js +1 -1
  71. package/lib/commonjs/locale/translations/hi.js.map +1 -1
  72. package/lib/commonjs/locale/translations/id.js +1 -1
  73. package/lib/commonjs/locale/translations/id.js.map +1 -1
  74. package/lib/commonjs/locale/translations/it.js +1 -1
  75. package/lib/commonjs/locale/translations/it.js.map +1 -1
  76. package/lib/commonjs/locale/translations/ja.js +1 -1
  77. package/lib/commonjs/locale/translations/ja.js.map +1 -1
  78. package/lib/commonjs/locale/translations/pt.js +1 -1
  79. package/lib/commonjs/locale/translations/pt.js.map +1 -1
  80. package/lib/commonjs/locale/translations/ru.js +1 -1
  81. package/lib/commonjs/locale/translations/ru.js.map +1 -1
  82. package/lib/commonjs/locale/translations/tr.js +1 -1
  83. package/lib/commonjs/locale/translations/tr.js.map +1 -1
  84. package/lib/commonjs/locale/translations/zh.js +1 -1
  85. package/lib/commonjs/locale/translations/zh.js.map +1 -1
  86. package/lib/module/agent-avatar/AgentAvatar.js +1 -1
  87. package/lib/module/agent-avatar/AgentAvatar.js.map +1 -1
  88. package/lib/module/agent-avatar/CharacterAvatar.js +2 -1
  89. package/lib/module/agent-avatar/CharacterAvatar.js.map +1 -1
  90. package/lib/module/agent-avatar/character-colors.js +15 -0
  91. package/lib/module/agent-avatar/character-colors.js.map +1 -0
  92. package/lib/module/agent-avatar/character-shapes.js +97 -0
  93. package/lib/module/agent-avatar/character-shapes.js.map +1 -0
  94. package/lib/module/agent-avatar/config-character.js +4 -0
  95. package/lib/module/agent-avatar/config-character.js.map +1 -1
  96. package/lib/module/agent-avatar/legacy-recipe.js +19 -6
  97. package/lib/module/agent-avatar/legacy-recipe.js.map +1 -1
  98. package/lib/module/agent-creator/AgentCreatorBase.js +69 -109
  99. package/lib/module/agent-creator/AgentCreatorBase.js.map +1 -1
  100. package/lib/module/agent-creator/CharacterControls.js +24 -6
  101. package/lib/module/agent-creator/CharacterControls.js.map +1 -1
  102. package/lib/module/agent-creator/ClippoArtwork.js +60 -0
  103. package/lib/module/agent-creator/ClippoArtwork.js.map +1 -0
  104. package/lib/module/agent-creator/CyclopsArtwork.js +42 -0
  105. package/lib/module/agent-creator/CyclopsArtwork.js.map +1 -0
  106. package/lib/module/agent-creator/EmotionPicker.js +8 -1
  107. package/lib/module/agent-creator/EmotionPicker.js.map +1 -1
  108. package/lib/module/agent-creator/ShapeSilhouette.js +8 -1
  109. package/lib/module/agent-creator/ShapeSilhouette.js.map +1 -1
  110. package/lib/module/agent-creator/ToddArtwork.js +26 -0
  111. package/lib/module/agent-creator/ToddArtwork.js.map +1 -0
  112. package/lib/module/agent-creator/constants.js +8 -16
  113. package/lib/module/agent-creator/constants.js.map +1 -1
  114. package/lib/module/agent-creator/messages.js +1 -1
  115. package/lib/module/agent-creator/messages.js.map +1 -1
  116. package/lib/module/locale/translations/ar.js +1 -1
  117. package/lib/module/locale/translations/ar.js.map +1 -1
  118. package/lib/module/locale/translations/bn.js +1 -1
  119. package/lib/module/locale/translations/bn.js.map +1 -1
  120. package/lib/module/locale/translations/ca.js +1 -1
  121. package/lib/module/locale/translations/ca.js.map +1 -1
  122. package/lib/module/locale/translations/de.js +1 -1
  123. package/lib/module/locale/translations/de.js.map +1 -1
  124. package/lib/module/locale/translations/es.js +1 -1
  125. package/lib/module/locale/translations/es.js.map +1 -1
  126. package/lib/module/locale/translations/fr.js +1 -1
  127. package/lib/module/locale/translations/fr.js.map +1 -1
  128. package/lib/module/locale/translations/hi.js +1 -1
  129. package/lib/module/locale/translations/hi.js.map +1 -1
  130. package/lib/module/locale/translations/id.js +1 -1
  131. package/lib/module/locale/translations/id.js.map +1 -1
  132. package/lib/module/locale/translations/it.js +1 -1
  133. package/lib/module/locale/translations/it.js.map +1 -1
  134. package/lib/module/locale/translations/ja.js +1 -1
  135. package/lib/module/locale/translations/ja.js.map +1 -1
  136. package/lib/module/locale/translations/pt.js +1 -1
  137. package/lib/module/locale/translations/pt.js.map +1 -1
  138. package/lib/module/locale/translations/ru.js +1 -1
  139. package/lib/module/locale/translations/ru.js.map +1 -1
  140. package/lib/module/locale/translations/tr.js +1 -1
  141. package/lib/module/locale/translations/tr.js.map +1 -1
  142. package/lib/module/locale/translations/zh.js +1 -1
  143. package/lib/module/locale/translations/zh.js.map +1 -1
  144. package/lib/typescript/commonjs/agent-avatar/AgentAvatar.d.ts.map +1 -1
  145. package/lib/typescript/commonjs/agent-avatar/CharacterAvatar.d.ts.map +1 -1
  146. package/lib/typescript/commonjs/agent-avatar/character-colors.d.ts +13 -0
  147. package/lib/typescript/commonjs/agent-avatar/character-colors.d.ts.map +1 -0
  148. package/lib/typescript/commonjs/agent-avatar/character-shapes.d.ts +19 -0
  149. package/lib/typescript/commonjs/agent-avatar/character-shapes.d.ts.map +1 -0
  150. package/lib/typescript/commonjs/agent-avatar/config-character.d.ts +4 -0
  151. package/lib/typescript/commonjs/agent-avatar/config-character.d.ts.map +1 -1
  152. package/lib/typescript/commonjs/agent-avatar/legacy-recipe.d.ts +2 -10
  153. package/lib/typescript/commonjs/agent-avatar/legacy-recipe.d.ts.map +1 -1
  154. package/lib/typescript/commonjs/agent-creator/AgentCreatorBase.d.ts.map +1 -1
  155. package/lib/typescript/commonjs/agent-creator/CharacterControls.d.ts +2 -1
  156. package/lib/typescript/commonjs/agent-creator/CharacterControls.d.ts.map +1 -1
  157. package/lib/typescript/commonjs/agent-creator/ClippoArtwork.d.ts +6 -0
  158. package/lib/typescript/commonjs/agent-creator/ClippoArtwork.d.ts.map +1 -0
  159. package/lib/typescript/commonjs/agent-creator/CyclopsArtwork.d.ts +5 -0
  160. package/lib/typescript/commonjs/agent-creator/CyclopsArtwork.d.ts.map +1 -0
  161. package/lib/typescript/commonjs/agent-creator/EmotionPicker.d.ts +1 -0
  162. package/lib/typescript/commonjs/agent-creator/EmotionPicker.d.ts.map +1 -1
  163. package/lib/typescript/commonjs/agent-creator/ShapeSilhouette.d.ts.map +1 -1
  164. package/lib/typescript/commonjs/agent-creator/ToddArtwork.d.ts +6 -0
  165. package/lib/typescript/commonjs/agent-creator/ToddArtwork.d.ts.map +1 -0
  166. package/lib/typescript/commonjs/agent-creator/constants.d.ts +7 -15
  167. package/lib/typescript/commonjs/agent-creator/constants.d.ts.map +1 -1
  168. package/lib/typescript/commonjs/agent-creator/messages.d.ts.map +1 -1
  169. package/lib/typescript/commonjs/locale/translations/ar.d.ts.map +1 -1
  170. package/lib/typescript/commonjs/locale/translations/bn.d.ts.map +1 -1
  171. package/lib/typescript/commonjs/locale/translations/ca.d.ts.map +1 -1
  172. package/lib/typescript/commonjs/locale/translations/de.d.ts.map +1 -1
  173. package/lib/typescript/commonjs/locale/translations/es.d.ts.map +1 -1
  174. package/lib/typescript/commonjs/locale/translations/fr.d.ts.map +1 -1
  175. package/lib/typescript/commonjs/locale/translations/hi.d.ts.map +1 -1
  176. package/lib/typescript/commonjs/locale/translations/id.d.ts.map +1 -1
  177. package/lib/typescript/commonjs/locale/translations/it.d.ts.map +1 -1
  178. package/lib/typescript/commonjs/locale/translations/ja.d.ts.map +1 -1
  179. package/lib/typescript/commonjs/locale/translations/pt.d.ts.map +1 -1
  180. package/lib/typescript/commonjs/locale/translations/ru.d.ts.map +1 -1
  181. package/lib/typescript/commonjs/locale/translations/tr.d.ts.map +1 -1
  182. package/lib/typescript/commonjs/locale/translations/zh.d.ts.map +1 -1
  183. package/lib/typescript/module/agent-avatar/AgentAvatar.d.ts.map +1 -1
  184. package/lib/typescript/module/agent-avatar/CharacterAvatar.d.ts.map +1 -1
  185. package/lib/typescript/module/agent-avatar/character-colors.d.ts +13 -0
  186. package/lib/typescript/module/agent-avatar/character-colors.d.ts.map +1 -0
  187. package/lib/typescript/module/agent-avatar/character-shapes.d.ts +19 -0
  188. package/lib/typescript/module/agent-avatar/character-shapes.d.ts.map +1 -0
  189. package/lib/typescript/module/agent-avatar/config-character.d.ts +4 -0
  190. package/lib/typescript/module/agent-avatar/config-character.d.ts.map +1 -1
  191. package/lib/typescript/module/agent-avatar/legacy-recipe.d.ts +2 -10
  192. package/lib/typescript/module/agent-avatar/legacy-recipe.d.ts.map +1 -1
  193. package/lib/typescript/module/agent-creator/AgentCreatorBase.d.ts.map +1 -1
  194. package/lib/typescript/module/agent-creator/CharacterControls.d.ts +2 -1
  195. package/lib/typescript/module/agent-creator/CharacterControls.d.ts.map +1 -1
  196. package/lib/typescript/module/agent-creator/ClippoArtwork.d.ts +6 -0
  197. package/lib/typescript/module/agent-creator/ClippoArtwork.d.ts.map +1 -0
  198. package/lib/typescript/module/agent-creator/CyclopsArtwork.d.ts +5 -0
  199. package/lib/typescript/module/agent-creator/CyclopsArtwork.d.ts.map +1 -0
  200. package/lib/typescript/module/agent-creator/EmotionPicker.d.ts +1 -0
  201. package/lib/typescript/module/agent-creator/EmotionPicker.d.ts.map +1 -1
  202. package/lib/typescript/module/agent-creator/ShapeSilhouette.d.ts.map +1 -1
  203. package/lib/typescript/module/agent-creator/ToddArtwork.d.ts +6 -0
  204. package/lib/typescript/module/agent-creator/ToddArtwork.d.ts.map +1 -0
  205. package/lib/typescript/module/agent-creator/constants.d.ts +7 -15
  206. package/lib/typescript/module/agent-creator/constants.d.ts.map +1 -1
  207. package/lib/typescript/module/agent-creator/messages.d.ts.map +1 -1
  208. package/lib/typescript/module/locale/translations/ar.d.ts.map +1 -1
  209. package/lib/typescript/module/locale/translations/bn.d.ts.map +1 -1
  210. package/lib/typescript/module/locale/translations/ca.d.ts.map +1 -1
  211. package/lib/typescript/module/locale/translations/de.d.ts.map +1 -1
  212. package/lib/typescript/module/locale/translations/es.d.ts.map +1 -1
  213. package/lib/typescript/module/locale/translations/fr.d.ts.map +1 -1
  214. package/lib/typescript/module/locale/translations/hi.d.ts.map +1 -1
  215. package/lib/typescript/module/locale/translations/id.d.ts.map +1 -1
  216. package/lib/typescript/module/locale/translations/it.d.ts.map +1 -1
  217. package/lib/typescript/module/locale/translations/ja.d.ts.map +1 -1
  218. package/lib/typescript/module/locale/translations/pt.d.ts.map +1 -1
  219. package/lib/typescript/module/locale/translations/ru.d.ts.map +1 -1
  220. package/lib/typescript/module/locale/translations/tr.d.ts.map +1 -1
  221. package/lib/typescript/module/locale/translations/zh.d.ts.map +1 -1
  222. package/package.json +1 -1
  223. package/src/agent-avatar/AgentAvatar.tsx +1 -5
  224. package/src/agent-avatar/CharacterAvatar.tsx +6 -1
  225. package/src/agent-avatar/character-colors.ts +12 -0
  226. package/src/agent-avatar/character-shapes.ts +116 -0
  227. package/src/agent-avatar/config-character.ts +14 -0
  228. package/src/agent-avatar/legacy-recipe.ts +21 -6
  229. package/src/agent-creator/AgentCreatorBase.tsx +110 -123
  230. package/src/agent-creator/CharacterControls.tsx +32 -7
  231. package/src/agent-creator/ClippoArtwork.tsx +44 -0
  232. package/src/agent-creator/CyclopsArtwork.tsx +21 -0
  233. package/src/agent-creator/EmotionPicker.tsx +18 -3
  234. package/src/agent-creator/ShapeSilhouette.tsx +14 -1
  235. package/src/agent-creator/ToddArtwork.tsx +25 -0
  236. package/src/agent-creator/constants.ts +8 -25
  237. package/src/agent-creator/messages.ts +2 -1
  238. package/src/locale/translations/ar.ts +2 -1
  239. package/src/locale/translations/bn.ts +2 -1
  240. package/src/locale/translations/ca.ts +2 -1
  241. package/src/locale/translations/de.ts +2 -1
  242. package/src/locale/translations/es.ts +2 -1
  243. package/src/locale/translations/fr.ts +2 -1
  244. package/src/locale/translations/hi.ts +2 -1
  245. package/src/locale/translations/id.ts +2 -1
  246. package/src/locale/translations/it.ts +2 -1
  247. package/src/locale/translations/ja.ts +2 -1
  248. package/src/locale/translations/pt.ts +2 -1
  249. package/src/locale/translations/ru.ts +2 -1
  250. package/src/locale/translations/tr.ts +2 -1
  251. package/src/locale/translations/zh.ts +2 -1
@@ -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,SAAS,CAAC;AA0mG5C,QAAA,MAAM,YAAY,EAAE,YA8MnB,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,SAAS,CAAC;AA2mG5C,QAAA,MAAM,YAAY,EAAE,YA8MnB,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,SAAS,CAAC;AAgpF5C,QAAA,MAAM,YAAY,EAAE,YA8MnB,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,SAAS,CAAC;AAipF5C,QAAA,MAAM,YAAY,EAAE,YA8MnB,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,SAAS,CAAC;AA4uF5C,QAAA,MAAM,YAAY,EAAE,YA8MnB,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,SAAS,CAAC;AA6uF5C,QAAA,MAAM,YAAY,EAAE,YA8MnB,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,SAAS,CAAC;AAixF5C,QAAA,MAAM,YAAY,EAAE,YA8MnB,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,SAAS,CAAC;AAkxF5C,QAAA,MAAM,YAAY,EAAE,YA8MnB,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,SAAS,CAAC;AAwwF5C,QAAA,MAAM,YAAY,EAAE,YA8MnB,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,SAAS,CAAC;AAywF5C,QAAA,MAAM,YAAY,EAAE,YA8MnB,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,SAAS,CAAC;AA2xF5C,QAAA,MAAM,YAAY,EAAE,YA8MnB,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,SAAS,CAAC;AA4xF5C,QAAA,MAAM,YAAY,EAAE,YA8MnB,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,SAAS,CAAC;AAmqF5C,QAAA,MAAM,YAAY,EAAE,YA6MnB,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,SAAS,CAAC;AAoqF5C,QAAA,MAAM,YAAY,EAAE,YA6MnB,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,SAAS,CAAC;AAguF5C,QAAA,MAAM,YAAY,EAAE,YA8MnB,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,SAAS,CAAC;AAiuF5C,QAAA,MAAM,YAAY,EAAE,YA8MnB,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,SAAS,CAAC;AA4wF5C,QAAA,MAAM,YAAY,EAAE,YA8MnB,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,SAAS,CAAC;AA6wF5C,QAAA,MAAM,YAAY,EAAE,YA8MnB,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,SAAS,CAAC;AAirF5C,QAAA,MAAM,YAAY,EAAE,YAiNnB,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,SAAS,CAAC;AAkrF5C,QAAA,MAAM,YAAY,EAAE,YAiNnB,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,SAAS,CAAC;AA2xF5C,QAAA,MAAM,YAAY,EAAE,YA6MnB,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,SAAS,CAAC;AA4xF5C,QAAA,MAAM,YAAY,EAAE,YA6MnB,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,SAAS,CAAC;AA0iG5C,QAAA,MAAM,YAAY,EAAE,YA8MnB,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,SAAS,CAAC;AA2iG5C,QAAA,MAAM,YAAY,EAAE,YA8MnB,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,SAAS,CAAC;AAosF5C,QAAA,MAAM,YAAY,EAAE,YA6MnB,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,SAAS,CAAC;AAqsF5C,QAAA,MAAM,YAAY,EAAE,YA6MnB,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,SAAS,CAAC;AAwmF5C,QAAA,MAAM,YAAY,EAAE,YA6MnB,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,SAAS,CAAC;AAymF5C,QAAA,MAAM,YAAY,EAAE,YA6MnB,CAAC;AAEF,eAAe,YAAY,CAAC"}
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@oxy.so/bloom",
3
- "version": "7.31.1",
3
+ "version": "7.32.0",
4
4
  "packageManager": "bun@1.3.14",
5
5
  "description": "Bloom UI — Oxy ecosystem component library for React Native + Expo + Web",
6
6
  "main": "lib/commonjs/index.js",
@@ -10,9 +10,5 @@ export const AgentAvatar = memo(function AgentAvatar(props: AgentAvatarProps) {
10
10
  const { runtimeUrl } = useContext(CharacterRuntimeContext);
11
11
  const beta = props.config.character && props.config.character.preset !== 'bloom';
12
12
  const legacy = runtimeUrl && !legacyRecipeUnsupported(props.config);
13
- return beta || legacy ? (
14
- <CharacterAvatar key={beta ? 'character' : 'legacy'} {...props} />
15
- ) : (
16
- <ProceduralAvatar {...props} />
17
- );
13
+ return beta || legacy ? <CharacterAvatar {...props} /> : <ProceduralAvatar {...props} />;
18
14
  });
@@ -9,6 +9,7 @@ import { characterHtml, scriptJson } from './character-html';
9
9
  import { loadCharacterRuntime } from './character-runtime-module';
10
10
  import { characterWebView, type CharacterWebViewHandle } from './character-webview';
11
11
  import { legacyRecipe } from './legacy-recipe';
12
+ import { isMigratedCharacterShape } from './character-shapes';
12
13
  import { AGENT_AVATAR_MESSAGES } from './messages';
13
14
  import type { AgentAvatarProps } from './types';
14
15
 
@@ -191,7 +192,11 @@ export function CharacterAvatar(props: AgentAvatarProps) {
191
192
  useEffect(() => setFailed(false), [runtimeUrl, config.character]);
192
193
  const legacy = useMemo(
193
194
  () =>
194
- !config.character || config.character.preset === 'bloom' ? legacyRecipe(config) : undefined,
195
+ !config.character ||
196
+ config.character.preset === 'bloom' ||
197
+ isMigratedCharacterShape(config.character.selections?.shape)
198
+ ? legacyRecipe(config)
199
+ : undefined,
195
200
  [config],
196
201
  );
197
202
  const value = useMemo(
@@ -0,0 +1,12 @@
1
+ /** RGB swatches returned by the recovered engine's Color catalog. */
2
+ export const CHARACTER_COLORS = {
3
+ pink: '#fa70ab',
4
+ orchid: '#dd6adc',
5
+ violet: '#a25bff',
6
+ blue: '#4778ff',
7
+ cyan: '#00b1ff',
8
+ teal: '#04bb9f',
9
+ lime: '#b6d80b',
10
+ yellow: '#ffcc38',
11
+ coral: '#ff8066',
12
+ } as const;
@@ -0,0 +1,116 @@
1
+ import { avatarHex } from './avatar-color';
2
+ import type { AvatarCharacterConfig } from './config-character';
3
+ import type { AvatarConfig } from './model';
4
+
5
+ export const NATIVE_CHARACTER_SHAPES = [
6
+ ['clippo', 'Clippo'],
7
+ ['todd', 'Todd'],
8
+ ['circle', 'Circle'],
9
+ ['rounded_triangle', 'Rounded triangle'],
10
+ ['capsule', 'Capsule'],
11
+ ['rounded_head_two_ears', 'Rounded head with two ears'],
12
+ ['six_lobed_flower', 'Six lobed flower'],
13
+ ['heart', 'Heart'],
14
+ ['four_lobed_butterfly', 'Four lobed butterfly'],
15
+ ['circle_two_ears', 'Circle with two ears'],
16
+ ['twelve_scalloped_rosette', 'Twelve scalloped rosette'],
17
+ ['rounded_cube', 'Hexagon'],
18
+ ['rounded_diamond', 'Rounded diamond'],
19
+ ] as const;
20
+ export const MIGRATED_CHARACTER_SHAPES = [
21
+ ['slender', 'Slender'],
22
+ ['pocket', 'Pocket'],
23
+ ['petal', 'Petal'],
24
+ ['star', 'Star'],
25
+ ['cloud', 'Cloud'],
26
+ ['shield', 'Shield'],
27
+ ['pebble', 'Pebble'],
28
+ ['squircle', 'Squircle'],
29
+ ] as const;
30
+ export const CHARACTER_SHAPES = [...NATIVE_CHARACTER_SHAPES, ...MIGRATED_CHARACTER_SHAPES] as const;
31
+
32
+ export function isMigratedCharacterShape(id: string | undefined): boolean {
33
+ return MIGRATED_CHARACTER_SHAPES.some(([shape]) => shape === id);
34
+ }
35
+
36
+ /** The saved paper/blob fields remain readable; canonical shape IDs own new edits. */
37
+ export function currentCharacterShape(config: AvatarConfig): string {
38
+ if (config.character?.selections?.shape) return config.character.selections.shape;
39
+ const shape = config.family === 'fold' ? config.foldShape : config.shape;
40
+ const equivalent: Partial<Record<string, string>> = {
41
+ triangle: 'rounded_triangle',
42
+ flower: 'six_lobed_flower',
43
+ diamond: 'rounded_diamond',
44
+ };
45
+ return equivalent[shape] ?? shape;
46
+ }
47
+
48
+ /** Geometry-only view of one of the eight migrated contours. */
49
+ export function characterShapeGeometry(config: AvatarConfig): AvatarConfig {
50
+ const shape = config.character?.selections?.shape;
51
+ if (!isMigratedCharacterShape(shape)) return config;
52
+ return shape === 'pebble' || shape === 'squircle'
53
+ ? { ...config, family: 'blob', shape }
54
+ : {
55
+ ...config,
56
+ family: 'fold',
57
+ foldShape: shape as AvatarConfig['foldShape'],
58
+ };
59
+ }
60
+
61
+ /** Retain effective authored parts while preparing the next body. An old recipe
62
+ * is promoted once, with its actual paint and contour rather than Felipe defaults.
63
+ */
64
+ export function materializeCharacter(
65
+ config: AvatarConfig,
66
+ selected: Readonly<Record<string, string>> = {},
67
+ ): AvatarCharacterConfig {
68
+ const saved = config.character;
69
+ if (!saved || saved.preset === 'bloom')
70
+ return {
71
+ ...saved,
72
+ preset: 'legacy',
73
+ ...(saved?.bodyColor
74
+ ? { bodyColor: saved.bodyColor }
75
+ : !saved?.selections?.color
76
+ ? { bodyColor: avatarHex(config) }
77
+ : {}),
78
+ selections: {
79
+ shape: currentCharacterShape(config),
80
+ eyes: 'oval',
81
+ eyewear: 'none',
82
+ accessory: 'none',
83
+ ...saved?.selections,
84
+ },
85
+ };
86
+ const defaults: NonNullable<AvatarCharacterConfig['selections']> = {};
87
+ for (const part of ['eyes', 'eyewear', 'accessory'] as const)
88
+ if (selected[part]) defaults[part] = selected[part];
89
+ // These virtual parts are absent from the backing native catalog.
90
+ if (!defaults.eyes && saved.preset === 'clippo') defaults.eyes = 'clippo';
91
+ if (!defaults.eyes && saved.preset === 'lime_frog') defaults.eyes = 'todd';
92
+ if (!defaults.accessory && saved.preset === 'blue_beret') defaults.accessory = 'felipe_beret';
93
+ return { ...saved, selections: { ...defaults, ...saved.selections } };
94
+ }
95
+
96
+ /** All 21 bodies change the same character recipe. Named paint and explicit RGB
97
+ * keep their precedence; a body never supplies a replacement color or face.
98
+ */
99
+ export function createConfigForShape(
100
+ config: AvatarConfig,
101
+ shape: string,
102
+ selected: Readonly<Record<string, string>> = {},
103
+ ): AvatarConfig {
104
+ if (!CHARACTER_SHAPES.some(([id]) => id === shape)) throw new Error('Unknown character shape.');
105
+ const character = materializeCharacter(config, selected);
106
+ if (!character.bodyColor && !character.selections?.color) {
107
+ if (character.preset === 'clippo') character.bodyColor = '#999b9d';
108
+ else if (selected.color)
109
+ character.selections = { ...character.selections, color: selected.color };
110
+ else if (selected.bodyColor) character.bodyColor = selected.bodyColor;
111
+ }
112
+ return characterShapeGeometry({
113
+ ...config,
114
+ character: { ...character, selections: { ...character.selections, shape } },
115
+ });
116
+ }
@@ -2,10 +2,14 @@
2
2
  export type AvatarCharacterCategory = 'shape' | 'color' | 'eyes' | 'eyewear' | 'accessory';
3
3
 
4
4
  export type AvatarCharacterConfig = {
5
+ /** Named catalog preset, including Clippo (`clippo`), or a saved renderer ID. */
5
6
  preset: string;
7
+ /** Clippo's open wire body and ring eyes are independently selectable with ID `clippo`. */
6
8
  selections?: Partial<Record<AvatarCharacterCategory, string>>;
7
9
  /** Custom body RGB accepted by the original renderer, stored as lowercase #RRGGBB. */
8
10
  bodyColor?: string;
11
+ /** @deprecated Retained when reading saved recipes; ignored by the renderer. Each shape owns its eye layout. */
12
+ eyeSpacing?: number;
9
13
  };
10
14
 
11
15
  const categories: readonly AvatarCharacterCategory[] = [
@@ -25,6 +29,16 @@ export function parseCharacterConfig(value: unknown): AvatarCharacterConfig {
25
29
  const candidate = value as Record<string, unknown>;
26
30
  if (!validId(candidate.preset)) throw new Error('Invalid character preset.');
27
31
  const result: AvatarCharacterConfig = { preset: candidate.preset };
32
+ if (candidate.eyeSpacing !== undefined) {
33
+ if (
34
+ typeof candidate.eyeSpacing !== 'number' ||
35
+ !Number.isFinite(candidate.eyeSpacing) ||
36
+ candidate.eyeSpacing < 0.5 ||
37
+ candidate.eyeSpacing > 1.5
38
+ )
39
+ throw new Error('Invalid character eye spacing.');
40
+ result.eyeSpacing = candidate.eyeSpacing;
41
+ }
28
42
  if (candidate.bodyColor !== undefined) {
29
43
  if (
30
44
  typeof candidate.bodyColor !== 'string' ||
@@ -1,3 +1,5 @@
1
+ import { CHARACTER_COLORS } from './character-colors';
2
+ import { characterShapeGeometry, isMigratedCharacterShape } from './character-shapes';
1
3
  import { avatarHex } from './avatar-color';
2
4
  import { legacyContours } from './legacy-contours';
3
5
  import type { AvatarConfig } from './model';
@@ -9,12 +11,14 @@ export type LegacyRecipe = {
9
11
  points?: Point[];
10
12
  shape?: string;
11
13
  eyes: string;
14
+ eyeSpacing?: number;
12
15
  selections?: Pick<NonNullable<AvatarCharacterConfig['selections']>, 'eyewear' | 'accessory'>;
13
16
  patch: { bodyColor: string };
14
17
  };
15
18
 
16
19
  /** Saved unsupported artwork stays readable without pretending it was migrated. */
17
20
  export function legacyRecipeUnsupported(config: AvatarConfig): boolean {
21
+ if (isMigratedCharacterShape(config.character?.selections?.shape)) return false;
18
22
  return config.family === 'alien' || config.family === 'mascot' || !config.face;
19
23
  }
20
24
 
@@ -66,6 +70,7 @@ export function radialContour(polygons: Point[][], samples = 256): Point[] {
66
70
 
67
71
  /** Shared capability identity for the editor and the legacy engine adapter. */
68
72
  export function legacyCharacterRecipe(config: AvatarConfig) {
73
+ if (config.character && config.character.preset !== 'bloom') return config.character;
69
74
  const customization = config.character?.preset === 'bloom' ? config.character : undefined;
70
75
  return {
71
76
  preset: 'legacy',
@@ -77,7 +82,11 @@ export function legacyCharacterRecipe(config: AvatarConfig) {
77
82
  ? { accessory: customization.selections.accessory }
78
83
  : {}),
79
84
  },
80
- bodyColor: customization?.bodyColor ?? avatarHex(config),
85
+ bodyColor:
86
+ customization?.bodyColor ??
87
+ CHARACTER_COLORS[customization?.selections?.color as keyof typeof CHARACTER_COLORS] ??
88
+ avatarHex(config),
89
+ ...(customization?.eyeSpacing !== undefined ? { eyeSpacing: customization.eyeSpacing } : {}),
81
90
  };
82
91
  }
83
92
 
@@ -87,12 +96,18 @@ export function legacyCharacterRecipe(config: AvatarConfig) {
87
96
  */
88
97
  export function legacyRecipe(config: AvatarConfig, samples = 256): LegacyRecipe {
89
98
  if (legacyRecipeUnsupported(config)) throw new Error('Unsupported legacy 3D recipe');
90
- const shape = legacyNativeShape(config);
99
+ const geometry = characterShapeGeometry(config);
100
+ const canonical = config.character && config.character.preset !== 'bloom';
101
+ const selectedShape = canonical ? config.character?.selections?.shape : undefined;
102
+ const shape = isMigratedCharacterShape(selectedShape)
103
+ ? undefined
104
+ : (selectedShape ?? legacyNativeShape(geometry));
91
105
  const recipe = legacyCharacterRecipe(config);
92
- const { eyewear, accessory } = recipe.selections;
106
+ const { eyewear, accessory } = recipe.selections ?? {};
93
107
  return {
94
- ...(shape ? { shape } : { points: radialContour(legacyContours(config), samples) }),
95
- eyes: recipe.selections.eyes,
108
+ ...(shape ? { shape } : { points: radialContour(legacyContours(geometry), samples) }),
109
+ eyes: recipe.selections?.eyes ?? 'oval',
110
+ ...(recipe.eyeSpacing !== undefined ? { eyeSpacing: recipe.eyeSpacing } : {}),
96
111
  ...(eyewear || accessory
97
112
  ? {
98
113
  selections: {
@@ -101,6 +116,6 @@ export function legacyRecipe(config: AvatarConfig, samples = 256): LegacyRecipe
101
116
  },
102
117
  }
103
118
  : {}),
104
- patch: { bodyColor: recipe.bodyColor },
119
+ patch: { bodyColor: recipe.bodyColor ?? avatarHex(config) },
105
120
  };
106
121
  }