@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,9 +1,16 @@
1
- import { useContext, useMemo, useState } from 'react';
1
+ import { useContext, useMemo, useRef, useState } from 'react';
2
2
  import { Platform } from 'react-native';
3
3
  import { AgentAvatar, type AvatarConfig } from '../agent-avatar';
4
+ import {
5
+ CHARACTER_SHAPES,
6
+ NATIVE_CHARACTER_SHAPES,
7
+ createConfigForShape,
8
+ currentCharacterShape,
9
+ materializeCharacter,
10
+ } from '../agent-avatar/character-shapes';
4
11
  import type { AvatarCharacterCategory } from '../agent-avatar/config-character';
5
12
  import { CharacterRuntimeContext, CharacterCapabilitiesContext } from '../agent-avatar/context';
6
- import { legacyCharacterRecipe, legacyNativeShape } from '../agent-avatar/legacy-recipe';
13
+ import { legacyCharacterRecipe } from '../agent-avatar/legacy-recipe';
7
14
  import { Button } from '../button/Button';
8
15
  import { CloseButton } from '../button/CloseButton';
9
16
  import { useDirectionProps } from '../hooks/use-is-rtl';
@@ -43,43 +50,71 @@ export function AgentCreatorBase(props: AgentCreatorProps) {
43
50
  const previewConfig = useMemo(() => ({ ...c, lookAt: 'wander' as const }), [c]);
44
51
  const { runtimeUrl } = runtime;
45
52
  const beta = Boolean(c.character && c.character.preset !== 'bloom');
46
- const nativeShape = legacyNativeShape(c);
47
53
  const key = JSON.stringify(beta ? c.character : legacyCharacterRecipe(c));
48
- const capabilities =
54
+ const currentCapabilities =
49
55
  catalog.capabilitiesByKey?.get(key) ??
50
56
  (catalog.capabilities?.key === key ? catalog.capabilities : undefined);
51
- const betaColor = capabilities?.selected.color ?? c.character?.selections?.color;
57
+ const retained = useRef<{ owner: string; selected: Record<string, string> }>({
58
+ owner: '',
59
+ selected: {},
60
+ });
61
+ const owner = JSON.stringify([agent.id, c.character?.preset ?? 'bloom']);
62
+ if (retained.current.owner !== owner) retained.current = { owner, selected: {} };
63
+ if (currentCapabilities) retained.current.selected = currentCapabilities.selected;
64
+ const capabilities = currentCapabilities ?? {
65
+ selected: retained.current.selected,
66
+ available: {},
67
+ };
68
+ const betaColor = c.character?.selections?.color ?? capabilities?.selected.color;
69
+ const betaBodyColor =
70
+ c.character?.bodyColor ??
71
+ (c.character?.preset === 'clippo' && !c.character.selections?.color ? '#999b9d' : undefined) ??
72
+ (!betaColor ? capabilities?.selected.bodyColor : undefined);
52
73
  const customColorValue = beta
53
- ? (c.character?.bodyColor ??
74
+ ? (betaBodyColor ??
75
+ (c.character?.selections?.color
76
+ ? CHARACTER_COLORS[c.character.selections.color as keyof typeof CHARACTER_COLORS]
77
+ : undefined) ??
78
+ capabilities?.selected.bodyColor ??
54
79
  CHARACTER_COLORS[betaColor as keyof typeof CHARACTER_COLORS] ??
55
80
  avatarHex(c))
56
- : (c.character?.bodyColor ?? avatarHex(c));
57
- const selectedEyes = capabilities?.selected.eyes ?? c.character?.selections?.eyes ?? 'oval';
81
+ : (c.character?.bodyColor ??
82
+ CHARACTER_COLORS[c.character?.selections?.color as keyof typeof CHARACTER_COLORS] ??
83
+ avatarHex(c));
84
+ const selectedEyes =
85
+ c.character?.selections?.eyes ??
86
+ capabilities?.selected.eyes ??
87
+ (c.character?.preset === 'clippo'
88
+ ? 'clippo'
89
+ : c.character?.preset === 'lime_frog'
90
+ ? 'todd'
91
+ : 'oval');
92
+ const selectedEyewear = c.character?.selections?.eyewear ?? capabilities?.selected.eyewear;
93
+ const selectedAccessory = c.character?.selections?.accessory ?? capabilities?.selected.accessory;
94
+ const selectedParts = {
95
+ ...(c.character?.selections?.eyes ||
96
+ capabilities.selected.eyes ||
97
+ c.character?.preset === 'clippo' ||
98
+ c.character?.preset === 'lime_frog'
99
+ ? { eyes: selectedEyes }
100
+ : {}),
101
+ ...(selectedEyewear ? { eyewear: selectedEyewear } : {}),
102
+ ...(selectedAccessory ? { accessory: selectedAccessory } : {}),
103
+ };
58
104
  const characterConfig = (category: AvatarCharacterCategory, id: string): AvatarConfig => {
59
- if (!beta && (category === 'eyes' || category === 'eyewear' || category === 'accessory'))
60
- return {
61
- ...c,
62
- character: {
63
- ...c.character,
64
- preset: 'bloom',
65
- selections: { ...c.character?.selections, [category]: id },
66
- },
67
- };
68
- const character = beta
69
- ? c.character!
70
- : {
71
- preset: 'blue_beret',
72
- bodyColor: customColorValue,
73
- selections: {
74
- eyewear: c.character?.selections?.eyewear ?? capabilities?.selected.eyewear ?? 'none',
75
- accessory:
76
- c.character?.selections?.accessory ?? capabilities?.selected.accessory ?? 'none',
77
- eyes: selectedEyes,
78
- },
79
- };
80
- const selections = { ...character.selections, [category]: id };
81
- if (category === 'shape') delete selections.eyes;
82
- const next = { ...character, selections };
105
+ if (category === 'shape') return createConfigForShape(c, id, capabilities.selected);
106
+ const character = materializeCharacter(c, capabilities.selected);
107
+ // Choosing a body retains the edited face and the preset's effective parts.
108
+ // Presets supply defaults; their catalog restrictions do not own edits.
109
+ const selections = {
110
+ ...selectedParts,
111
+ ...character.selections,
112
+ [category]: id,
113
+ };
114
+ const next = {
115
+ ...character,
116
+ selections,
117
+ };
83
118
  if (category === 'color') delete next.bodyColor;
84
119
  return { ...c, character: next };
85
120
  };
@@ -87,91 +122,36 @@ export function AgentCreatorBase(props: AgentCreatorProps) {
87
122
  onChange({ ...agent, avatar: characterConfig(category, id) });
88
123
  const thumbnailBase = runtimeUrl ? runtimeUrl.slice(0, runtimeUrl.lastIndexOf('/') + 1) : '';
89
124
  const eyeBackground = customColorValue;
90
- const migratedShapes = [
91
- ...(['slender', 'pocket', 'petal', 'star', 'cloud', 'shield'] as const).map((shape) => ({
92
- family: 'fold' as const,
93
- shape,
94
- title: messages.shapes[shape],
95
- })),
96
- ...(
97
- [
98
- ['pebble', 'Pebble'],
99
- ['squircle', 'Squircle'],
100
- ] as const
101
- ).map(([shape, title]) => ({
102
- family: 'blob' as const,
103
- shape,
104
- title: messages.characterOption('shape', shape, title),
105
- })),
106
- ];
107
- const migratedConfig = (family: 'fold' | 'blob', shape: string): AvatarConfig => {
108
- const { character: _character, ...existing } = c;
109
- const color = hexAppearance(customColorValue);
110
- return {
111
- ...existing,
112
- ...color,
113
- lightEyes: beta ? false : c.lightEyes,
114
- family,
115
- ...(family === 'fold'
116
- ? { foldShape: shape as AvatarConfig['foldShape'] }
117
- : { shape: shape as AvatarConfig['shape'] }),
118
- ...(runtimeUrl
119
- ? {
120
- character: {
121
- preset: 'bloom',
122
- selections: {
123
- eyes: selectedEyes,
124
- ...((capabilities?.selected.eyewear ?? c.character?.selections?.eyewear)
125
- ? {
126
- eyewear: capabilities?.selected.eyewear ?? c.character?.selections?.eyewear,
127
- }
128
- : {}),
129
- ...((capabilities?.selected.accessory ?? c.character?.selections?.accessory)
130
- ? {
131
- accessory:
132
- capabilities?.selected.accessory ?? c.character?.selections?.accessory,
133
- }
134
- : {}),
135
- },
136
- },
137
- }
138
- : {}),
139
- };
140
- };
141
125
  const shapeChoices = runtimeUrl
142
- ? [
143
- ...CHARACTER_OPTIONS.shape.map(([id, title]) => ({
144
- id,
145
- label: messages.characterOption('shape', id, title),
146
- config: characterConfig('shape', id),
147
- thumbnail: `${thumbnailBase}thumbnails/shapes/${id}.png`,
148
- })),
149
- ...migratedShapes.map(({ family, shape, title }) => ({
150
- id: `legacy:${family}:${shape}`,
151
- label: title,
152
- config: migratedConfig(family, shape),
153
- })),
154
- ]
126
+ ? CHARACTER_SHAPES.map(([id, title]) => ({
127
+ id,
128
+ label:
129
+ id in messages.shapes
130
+ ? messages.shapes[id as keyof typeof messages.shapes]
131
+ : messages.characterOption('shape', id, title),
132
+ config: createConfigForShape(c, id, capabilities.selected),
133
+ ...(NATIVE_CHARACTER_SHAPES.some(([shape]) => shape === id) &&
134
+ id !== 'clippo' &&
135
+ id !== 'todd'
136
+ ? { thumbnail: `${thumbnailBase}thumbnails/shapes/${id}.png` }
137
+ : {}),
138
+ }))
155
139
  : undefined;
156
- const shapeValue = beta
157
- ? (capabilities?.selected.shape ?? c.character?.selections?.shape)
158
- : (nativeShape ?? `legacy:${c.family}:${c.family === 'fold' ? c.foldShape : c.shape}`);
159
- const selectShape = (id: string) => {
160
- if (id.startsWith('legacy:')) {
161
- const [, family, shape] = id.split(':');
162
- onChange({
163
- ...agent,
164
- avatar: migratedConfig(family as 'fold' | 'blob', shape!),
165
- });
166
- } else selectCharacter('shape', id);
167
- };
140
+ const shapeValue =
141
+ c.character?.selections?.shape ??
142
+ (beta
143
+ ? (capabilities.selected.shape ?? (c.character?.preset === 'clippo' ? 'clippo' : undefined))
144
+ : currentCharacterShape(c));
145
+ const selectShape = (id: string) => selectCharacter('shape', id);
168
146
  const eyeChoices = runtimeUrl
169
147
  ? CHARACTER_OPTIONS.eyes.map(([id, title]) => ({
170
148
  id,
171
149
  label: messages.characterOption('eyes', id, title),
172
150
  config: characterConfig('eyes', id),
173
- thumbnail: `${thumbnailBase}thumbnails/eyes/${id}.png`,
174
- disabled: !capabilities || capabilities.available[`eyes:${id}`] === false,
151
+ ...(id === 'clippo' || id === 'cyclops'
152
+ ? { artwork: id }
153
+ : { thumbnail: `${thumbnailBase}thumbnails/eyes/${id}.png` }),
154
+ disabled: false,
175
155
  }))
176
156
  : undefined;
177
157
  const appearance = (patch: Partial<AvatarConfig>) => {
@@ -307,8 +287,15 @@ export function AgentCreatorBase(props: AgentCreatorProps) {
307
287
  </StyledView>
308
288
  )}
309
289
  <CharacterControls
310
- character={c.character ?? { preset: 'bloom' }}
290
+ character={
291
+ runtimeUrl
292
+ ? beta
293
+ ? c.character
294
+ : materializeCharacter(c, capabilities.selected)
295
+ : c.character
296
+ }
311
297
  capabilitiesKey={key}
298
+ selected={capabilities.selected}
312
299
  onChange={(character) => {
313
300
  if (character) onChange({ ...agent, avatar: { ...c, character } });
314
301
  else appearance({});
@@ -325,7 +312,7 @@ export function AgentCreatorBase(props: AgentCreatorProps) {
325
312
  boxShadow: '0 1px 2px rgba(0,0,0,.05)',
326
313
  }}
327
314
  >
328
- {!beta &&
315
+ {!runtimeUrl &&
329
316
  AVATAR_COLORS.map(([hue, saturation, name, center, edge]) => {
330
317
  const active =
331
318
  c.hue === hue && c.saturation === saturation && c.lightness === undefined;
@@ -350,11 +337,11 @@ export function AgentCreatorBase(props: AgentCreatorProps) {
350
337
  </StyledPressable>
351
338
  );
352
339
  })}
353
- {beta &&
340
+ {runtimeUrl &&
354
341
  CHARACTER_OPTIONS.color.map(([id, title]) => {
355
- const active = !c.character?.bodyColor && capabilities?.selected.color === id;
342
+ const active = !betaBodyColor && betaColor === id;
356
343
  const hex = CHARACTER_COLORS[id];
357
- const disabled = !capabilities || capabilities.available[`color:${id}`] === false;
344
+ const disabled = false;
358
345
  return (
359
346
  <StyledPressable
360
347
  key={id}
@@ -376,17 +363,17 @@ export function AgentCreatorBase(props: AgentCreatorProps) {
376
363
  <Popover>
377
364
  <PopoverTrigger asChild label={messages.customColor}>
378
365
  <StyledPressable
379
- aria-pressed={beta ? Boolean(c.character?.bodyColor) : undefined}
366
+ aria-pressed={runtimeUrl ? Boolean(betaBodyColor) : undefined}
380
367
  accessibilityState={{
381
- selected: beta && Boolean(c.character?.bodyColor),
368
+ selected: Boolean(runtimeUrl) && Boolean(betaBodyColor),
382
369
  }}
383
370
  className="relative size-[26px] shrink-0 overflow-hidden rounded-full"
384
371
  >
385
372
  <GlossArt
386
- rainbow={!beta || !c.character?.bodyColor}
387
- center={beta ? c.character?.bodyColor : undefined}
388
- edge={beta ? c.character?.bodyColor : undefined}
389
- active={beta && Boolean(c.character?.bodyColor)}
373
+ rainbow={!runtimeUrl || !betaBodyColor}
374
+ center={runtimeUrl ? betaBodyColor : undefined}
375
+ edge={runtimeUrl ? betaBodyColor : undefined}
376
+ active={Boolean(runtimeUrl) && Boolean(betaBodyColor)}
390
377
  />
391
378
  </StyledPressable>
392
379
  </PopoverTrigger>
@@ -402,14 +389,14 @@ export function AgentCreatorBase(props: AgentCreatorProps) {
402
389
  onChange={(hex) => {
403
390
  const next = hexAppearance(hex);
404
391
  if (!next) return;
405
- if (beta)
392
+ if (runtimeUrl)
406
393
  onChange({
407
394
  ...agent,
408
395
  avatar: {
409
396
  ...c,
410
397
  ...next,
411
398
  character: {
412
- ...c.character!,
399
+ ...materializeCharacter(c, capabilities.selected),
413
400
  bodyColor: hex.toLowerCase(),
414
401
  },
415
402
  },
@@ -1,4 +1,4 @@
1
- import { useContext } from 'react';
1
+ import { useContext, useRef } from 'react';
2
2
  import { CharacterRuntimeContext, CharacterCapabilitiesContext } from '../agent-avatar/context';
3
3
  import type {
4
4
  AvatarCharacterCategory,
@@ -13,10 +13,12 @@ import { useAgentCreatorBindings, useAgentCreatorMessages } from './context';
13
13
  export function CharacterControls({
14
14
  character,
15
15
  capabilitiesKey,
16
+ selected,
16
17
  onChange,
17
18
  }: {
18
19
  character?: AvatarCharacterConfig;
19
20
  capabilitiesKey?: string;
21
+ selected?: Readonly<Record<string, string>>;
20
22
  onChange: (character: AvatarCharacterConfig | undefined) => void;
21
23
  }) {
22
24
  const messages = useAgentCreatorMessages();
@@ -31,11 +33,21 @@ export function CharacterControls({
31
33
  SelectItem,
32
34
  SelectItemText,
33
35
  } = useAgentCreatorBindings();
34
- if (!runtimeUrl) return null;
35
36
  const key = capabilitiesKey ?? JSON.stringify(character);
36
- const resolved =
37
+ const current =
37
38
  capabilitiesByKey?.get(key) ??
38
39
  (character && capabilities?.key === key ? capabilities : undefined);
40
+ const retained = useRef<{
41
+ preset?: string;
42
+ selected: Readonly<Record<string, string>>;
43
+ }>({ selected: {} });
44
+ if (retained.current.preset !== character?.preset)
45
+ retained.current = { preset: character?.preset, selected: {} };
46
+ if (current) retained.current.selected = current.selected;
47
+ const resolved = {
48
+ selected: selected ?? current?.selected ?? retained.current.selected,
49
+ };
50
+ if (!runtimeUrl) return null;
39
51
  const row = (
40
52
  label: string,
41
53
  value: string,
@@ -78,7 +90,10 @@ export function CharacterControls({
78
90
  if (character && !presets.some((item) => item.id === character.preset))
79
91
  presets.push({
80
92
  id: character.preset,
81
- title: messages.characterOption('preset', character.preset, character.preset),
93
+ title:
94
+ character.preset === 'legacy'
95
+ ? messages.proceduralAvatar
96
+ : messages.characterOption('preset', character.preset, character.preset),
82
97
  });
83
98
  const labels: Record<AvatarCharacterCategory, string> = {
84
99
  shape: messages.shape,
@@ -103,19 +118,29 @@ export function CharacterControls({
103
118
  (['eyewear', 'accessory'] as AvatarCharacterCategory[]).map((category) =>
104
119
  row(
105
120
  labels[category],
106
- resolved?.selected[category] ?? character.selections?.[category] ?? 'none',
121
+ character.selections?.[category] ?? resolved?.selected[category] ?? 'none',
107
122
  (category === 'accessory'
108
123
  ? [['none', messages.off] as const, ...CHARACTER_OPTIONS[category]]
109
124
  : CHARACTER_OPTIONS[category]
110
125
  ).map(([id, title]) => ({
111
126
  id,
112
127
  title: messages.characterOption(category, id, title),
113
- disabled: !resolved || resolved.available[`${category}:${id}`] === false,
128
+ disabled: false,
114
129
  })),
115
130
  (id) => {
116
131
  onChange({
117
132
  ...character,
118
- selections: { ...character.selections, [category]: id },
133
+ selections: {
134
+ ...(['eyes', 'eyewear', 'accessory'] as const).reduce(
135
+ (parts, part) => ({
136
+ ...parts,
137
+ ...(resolved?.selected[part] ? { [part]: resolved.selected[part] } : {}),
138
+ }),
139
+ {},
140
+ ),
141
+ ...character.selections,
142
+ [category]: id,
143
+ },
119
144
  });
120
145
  },
121
146
  labels[category],
@@ -0,0 +1,44 @@
1
+ import Svg, { Circle, Path } from 'react-native-svg';
2
+ import { svgA11yProps } from '../styles/svg-a11y';
3
+ import { CHARACTER_COLORS } from './constants';
4
+
5
+ /** Selector artwork only. The avatar itself uses Clippo's actual 3D meshes. */
6
+ export function ClippoArtwork({ kind, opacity = 1 }: { kind: 'shape' | 'eyes'; opacity?: number }) {
7
+ const eyes = kind === 'eyes';
8
+ return (
9
+ <Svg
10
+ width={eyes ? 27 : 56}
11
+ height={eyes ? 27 : 56}
12
+ viewBox={eyes ? '0 0 104 100' : '0 -4 90 170'}
13
+ preserveAspectRatio="xMidYMid meet"
14
+ opacity={opacity}
15
+ {...svgA11yProps()}
16
+ pointerEvents="none"
17
+ >
18
+ {eyes ? (
19
+ <>
20
+ <Circle cx={27} cy={44} r={21} fill="#f4f3ee" />
21
+ <Circle cx={77} cy={58} r={21} fill="#f4f3ee" />
22
+ <Circle cx={27} cy={44} r={15} fill="#3c2b2d" />
23
+ <Circle cx={77} cy={58} r={15} fill="#3c2b2d" />
24
+ <Path
25
+ d="M11 8 C18 5 29 5 38 9 M63 21 C72 21 82 26 88 32"
26
+ fill="none"
27
+ stroke="#3c2b2d"
28
+ strokeWidth={12}
29
+ strokeLinecap="round"
30
+ />
31
+ </>
32
+ ) : (
33
+ <Path
34
+ d="M25.4 79 C23 102 24 115 35 120 C46 125 53 119 52 105 C48 84 46 63 56 40 C67 16 63 6 46 3 C27 -1 20 15 14 30 C5 51 2 70 5 91 C8 128 19 151 40 157 C57 162 72 153 75 134 C80 114 69 107 72 93 C73 83 76 75 80 71"
35
+ fill="none"
36
+ stroke={CHARACTER_COLORS.pink}
37
+ strokeWidth={8.5}
38
+ strokeLinecap="round"
39
+ strokeLinejoin="round"
40
+ />
41
+ )}
42
+ </Svg>
43
+ );
44
+ }
@@ -0,0 +1,21 @@
1
+ import Svg, { Circle, Ellipse, Path } from 'react-native-svg';
2
+ import { svgA11yProps } from '../styles/svg-a11y';
3
+
4
+ /** Static selector artwork; the runtime renders the fitted single-eye mesh. */
5
+ export function CyclopsArtwork({ opacity = 1 }: { opacity?: number }) {
6
+ return (
7
+ <Svg
8
+ width={27}
9
+ height={27}
10
+ viewBox="0 0 100 100"
11
+ opacity={opacity}
12
+ {...svgA11yProps()}
13
+ pointerEvents="none"
14
+ >
15
+ <Ellipse cx={50} cy={50} rx={46} ry={44} fill="#f4f5ee" />
16
+ <Circle cx={50} cy={50} r={24} fill="#148a78" stroke="#174e45" strokeWidth={3} />
17
+ <Circle cx={50} cy={50} r={14} fill="#101918" />
18
+ <Path d="M61 31 L71 38 L65 46 L57 40 Z" fill="#ffffff" />
19
+ </Svg>
20
+ );
21
+ }
@@ -12,6 +12,8 @@ import Animated, {
12
12
  } from 'react-native-reanimated';
13
13
  import { EYES, type AvatarConfig } from '../agent-avatar';
14
14
  import { AgentFace } from '../agent-avatar/AgentFace';
15
+ import { ClippoArtwork } from './ClippoArtwork';
16
+ import { CyclopsArtwork } from './CyclopsArtwork';
15
17
  import { StyledImage, StyledPressable, StyledView } from '../styles/styled-primitives';
16
18
  import { useTheme } from '../theme/use-theme';
17
19
  import { useAgentCreatorMessages } from './context';
@@ -24,6 +26,7 @@ export type EmotionChoice = {
24
26
  config: AvatarConfig;
25
27
  disabled?: boolean;
26
28
  thumbnail?: string;
29
+ artwork?: 'clippo' | 'cyclops';
27
30
  };
28
31
  function Emotion({
29
32
  config,
@@ -83,12 +86,20 @@ function Emotion({
83
86
  borderColor: active ? colors.icon : 'transparent',
84
87
  }}
85
88
  >
86
- {choice.thumbnail ? (
89
+ {choice.artwork === 'cyclops' ? (
90
+ <CyclopsArtwork opacity={choice.disabled ? 0.35 : 1} />
91
+ ) : choice.artwork === 'clippo' ? (
92
+ <ClippoArtwork kind="eyes" opacity={choice.disabled ? 0.35 : 1} />
93
+ ) : choice.thumbnail ? (
87
94
  <StyledImage
88
95
  source={{ uri: choice.thumbnail }}
89
96
  resizeMode="contain"
90
97
  accessible={false}
91
- style={{ width: 27, height: 27, opacity: choice.disabled ? 0.35 : 1 }}
98
+ style={{
99
+ width: 27,
100
+ height: 27,
101
+ opacity: choice.disabled ? 0.35 : 1,
102
+ }}
92
103
  />
93
104
  ) : (
94
105
  <AgentFace
@@ -128,7 +139,11 @@ export function EmotionPicker({
128
139
  const messages = useAgentCreatorMessages();
129
140
  const choices =
130
141
  choicesProp ??
131
- EYES.map((eyes) => ({ id: eyes, label: messages.emotions[eyes], config: { ...config, eyes } }));
142
+ EYES.map((eyes) => ({
143
+ id: eyes,
144
+ label: messages.emotions[eyes],
145
+ config: { ...config, eyes },
146
+ }));
132
147
  const value = valueProp ?? config.eyes;
133
148
  const emit = (id: string) => (onSelect ? onSelect(id) : onChange(id as AvatarConfig['eyes']));
134
149
  const ref = useRef<View>(null);
@@ -1,9 +1,12 @@
1
+ import { characterShapeGeometry } from '../agent-avatar/character-shapes';
1
2
  import { memo } from 'react';
2
3
  import Svg, { Path } from 'react-native-svg';
3
4
  import { legacyContours } from '../agent-avatar/legacy-contours';
4
5
  import { radialContour } from '../agent-avatar/legacy-recipe';
5
6
  import type { AvatarConfig } from '../agent-avatar/model';
6
7
  import { CHARACTER_COLORS } from './constants';
8
+ import { ClippoArtwork } from './ClippoArtwork';
9
+ import { ToddArtwork } from './ToddArtwork';
7
10
  import { svgA11yProps } from '../styles/svg-a11y';
8
11
 
9
12
  const silhouettes = new Map<string, { path: string; viewBox: string }>();
@@ -42,7 +45,17 @@ function silhouette(config: AvatarConfig) {
42
45
 
43
46
  /** Shape-only selector artwork: no avatar, animation loop, or runtime request. */
44
47
  export const ShapeSilhouette = memo(function ShapeSilhouette({ config }: { config: AvatarConfig }) {
45
- const { path, viewBox } = silhouette(config);
48
+ if (
49
+ config.character?.selections?.shape === 'todd' ||
50
+ (config.character?.preset === 'lime_frog' && !config.character.selections?.shape)
51
+ )
52
+ return <ToddArtwork />;
53
+ if (
54
+ config.character?.selections?.shape === 'clippo' ||
55
+ (config.character?.preset === 'clippo' && !config.character.selections?.shape)
56
+ )
57
+ return <ClippoArtwork kind="shape" />;
58
+ const { path, viewBox } = silhouette(characterShapeGeometry(config));
46
59
  return (
47
60
  <Svg
48
61
  width={56}
@@ -0,0 +1,25 @@
1
+ import Svg, { Path } from 'react-native-svg';
2
+ import { svgA11yProps } from '../styles/svg-a11y';
3
+ import { CHARACTER_COLORS } from './constants';
4
+
5
+ /** Static Todd body outline: 128 projected triangle intersections from the
6
+ * original lime_frog mesh (2,502 vertices), with engine Y-up reflected for SVG.
7
+ * This selector does not load the renderer or substitute another body shape.
8
+ */
9
+ export function ToddArtwork() {
10
+ return (
11
+ <Svg
12
+ width={56}
13
+ height={56}
14
+ viewBox="-1.04785 -0.86450 2.09611 1.69982"
15
+ preserveAspectRatio="xMidYMid meet"
16
+ {...svgA11yProps()}
17
+ pointerEvents="none"
18
+ >
19
+ <Path
20
+ d="M0.9822 0.0000 L0.9686 -0.0476 L0.9504 -0.0936 L0.9289 -0.1378 L0.8988 -0.1788 L0.8645 -0.2165 L0.8334 -0.2528 L0.8060 -0.2884 L0.7878 -0.3263 L0.7842 -0.3709 L0.7896 -0.4221 L0.7977 -0.4781 L0.7977 -0.5330 L0.7882 -0.5845 L0.7697 -0.6317 L0.7439 -0.6742 L0.7120 -0.7120 L0.6747 -0.7444 L0.6333 -0.7717 L0.5869 -0.7914 L0.5384 -0.8058 L0.4878 -0.8139 L0.4348 -0.8135 L0.3814 -0.8063 L0.3272 -0.7900 L0.2726 -0.7618 L0.2193 -0.7230 L0.1675 -0.6686 L0.1242 -0.6245 L0.0877 -0.5910 L0.0565 -0.5733 L0.0277 -0.5641 L0.0000 -0.5610 L-0.0277 -0.5636 L-0.0563 -0.5720 L-0.0876 -0.5906 L-0.1236 -0.6212 L-0.1670 -0.6665 L-0.2181 -0.7190 L-0.2733 -0.7638 L-0.3269 -0.7893 L-0.3814 -0.8064 L-0.4354 -0.8146 L-0.4878 -0.8139 L-0.5385 -0.8060 L-0.5874 -0.7921 L-0.6331 -0.7714 L-0.6751 -0.7449 L-0.7120 -0.7120 L-0.7443 -0.6746 L-0.7697 -0.6316 L-0.7875 -0.5840 L-0.7971 -0.5326 L-0.7983 -0.4785 L-0.7901 -0.4223 L-0.7830 -0.3703 L-0.7880 -0.3264 L-0.8071 -0.2888 L-0.8338 -0.2529 L-0.8655 -0.2168 L-0.8995 -0.1789 L-0.9306 -0.1380 L-0.9510 -0.0937 L-0.9680 -0.0476 L-0.9814 -0.0000 L-0.9905 0.0487 L-0.9963 0.0981 L-0.9977 0.1480 L-0.9949 0.1979 L-0.9894 0.2478 L-0.9778 0.2966 L-0.9633 0.3447 L-0.9445 0.3912 L-0.9222 0.4362 L-0.8967 0.4793 L-0.8671 0.5197 L-0.8348 0.5578 L-0.8002 0.5934 L-0.7633 0.6264 L-0.7239 0.6561 L-0.6831 0.6831 L-0.6404 0.7066 L-0.5966 0.7269 L-0.5520 0.7443 L-0.5063 0.7578 L-0.4614 0.7698 L-0.4151 0.7766 L-0.3696 0.7816 L-0.3252 0.7850 L-0.2809 0.7851 L-0.2382 0.7851 L-0.1967 0.7851 L-0.1562 0.7851 L-0.1165 0.7852 L-0.0773 0.7852 L-0.0386 0.7852 L-0.0000 0.7852 L0.0386 0.7853 L0.0773 0.7853 L0.1165 0.7853 L0.1562 0.7853 L0.1967 0.7854 L0.2382 0.7854 L0.2810 0.7854 L0.3247 0.7840 L0.3699 0.7820 L0.4151 0.7766 L0.4614 0.7697 L0.5064 0.7578 L0.5522 0.7446 L0.5960 0.7262 L0.6403 0.7064 L0.6829 0.6829 L0.7237 0.6559 L0.7631 0.6262 L0.8002 0.5935 L0.8348 0.5578 L0.8675 0.5200 L0.8963 0.4791 L0.9217 0.4359 L0.9446 0.3913 L0.9632 0.3447 L0.9779 0.2966 L0.9887 0.2477 L0.9951 0.1979 L0.9977 0.1480 L0.9961 0.0981 L0.9912 0.0487Z"
21
+ fill={CHARACTER_COLORS.pink}
22
+ />
23
+ </Svg>
24
+ );
25
+ }
@@ -1,3 +1,4 @@
1
+ import { NATIVE_CHARACTER_SHAPES } from '../agent-avatar/character-shapes';
1
2
  import type { AgentLanguage, AgentPreferences } from './types';
2
3
  export const AGENT_LANGUAGES = [
3
4
  { id: 'auto', label: 'Auto-detect' },
@@ -58,6 +59,7 @@ export const PREVIEW_TEXT: Record<AgentLanguage, string> = {
58
59
 
59
60
  // Recovered engine catalog metadata. IDs are renderer selections; titles retain the beta catalog's English defaults.
60
61
  export const CHARACTER_PRESETS = [
62
+ { id: 'clippo', title: 'Clippo' },
61
63
  { id: 'blue_beret', title: 'Felipe' },
62
64
  { id: 'alfred', title: 'Alfred' },
63
65
  { id: 'purple_heart', title: 'Jojo' },
@@ -68,19 +70,7 @@ export const CHARACTER_PRESETS = [
68
70
  { id: 'lime_headphones', title: 'Iggy' },
69
71
  ] as const;
70
72
  export const CHARACTER_OPTIONS = {
71
- shape: [
72
- ['circle', 'Circle'],
73
- ['rounded_triangle', 'Rounded triangle'],
74
- ['capsule', 'Capsule'],
75
- ['rounded_head_two_ears', 'Rounded head with two ears'],
76
- ['six_lobed_flower', 'Six lobed flower'],
77
- ['heart', 'Heart'],
78
- ['four_lobed_butterfly', 'Four lobed butterfly'],
79
- ['circle_two_ears', 'Circle with two ears'],
80
- ['twelve_scalloped_rosette', 'Twelve scalloped rosette'],
81
- ['rounded_cube', 'Hexagon'],
82
- ['rounded_diamond', 'Rounded diamond'],
83
- ],
73
+ shape: NATIVE_CHARACTER_SHAPES,
84
74
  color: [
85
75
  ['pink', 'Pink'],
86
76
  ['orchid', 'Orchid'],
@@ -93,6 +83,9 @@ export const CHARACTER_OPTIONS = {
93
83
  ['coral', 'Coral'],
94
84
  ],
95
85
  eyes: [
86
+ ['cyclops', 'Single eye'],
87
+ ['clippo', 'Clippo'],
88
+ ['todd', 'Todd'],
96
89
  ['swept_lids', 'Swept lids'],
97
90
  ['oval', 'Oval'],
98
91
  ['sparkle_capsules', 'Sparkle capsules'],
@@ -117,21 +110,11 @@ export const CHARACTER_OPTIONS = {
117
110
  ['beanie', 'Beanie'],
118
111
  ['hat', 'Hat'],
119
112
  ['beret', 'Beret'],
113
+ ['felipe_beret', 'Felipe’s beret'],
120
114
  ['orb', 'Bulb'],
121
115
  ['three_lobe', 'Tuft'],
122
116
  ['crown', 'Crown'],
123
117
  ],
124
118
  } as const;
125
119
 
126
- /** RGB swatches returned by the recovered engine's Color catalog. */
127
- export const CHARACTER_COLORS = {
128
- pink: '#fa70ab',
129
- orchid: '#dd6adc',
130
- violet: '#a25bff',
131
- blue: '#4778ff',
132
- cyan: '#00b1ff',
133
- teal: '#04bb9f',
134
- lime: '#b6d80b',
135
- yellow: '#ffcc38',
136
- coral: '#ff8066',
137
- } as const;
120
+ export { CHARACTER_COLORS } from '../agent-avatar/character-colors';
@@ -95,7 +95,8 @@ export const AGENT_CREATOR_MESSAGES: MessageCatalog<AgentCreatorMessages> =
95
95
  betaEyes: 'Eye style',
96
96
  eyewear: 'Eyewear',
97
97
  accessory: 'Accessory',
98
- characterOption: (_category, _id, title) => String(title),
98
+ characterOption: (category, id, title) =>
99
+ category === 'eyes' && id === 'cyclops' ? 'Single eye' : String(title),
99
100
  editor: 'Agent editor',
100
101
  newBot: 'New bot',
101
102
  closeEditor: 'Close agent editor',