@oxy.so/bloom 7.1.4 → 7.1.5

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 (220) hide show
  1. package/assets/character-runtime/README.md +19 -114
  2. package/assets/character-runtime/legacy-engine.mjs +54 -406
  3. package/assets/character-runtime/legacy-geometry.mjs +85 -242
  4. package/assets/character-runtime/legacy-worker.mjs +23 -82
  5. package/assets/character-runtime/managed-avatar.mjs +18 -12
  6. package/assets/character-runtime/render-budget.mjs +11 -6
  7. package/assets/character-runtime/runtime.mjs +295 -744
  8. package/docs/agent-avatar.mdx +8 -45
  9. package/docs/agent-creator.mdx +3 -13
  10. package/lib/commonjs/agent-avatar/AgentAvatar.js +1 -1
  11. package/lib/commonjs/agent-avatar/AgentAvatar.js.map +1 -1
  12. package/lib/commonjs/agent-avatar/CharacterAvatar.js +1 -2
  13. package/lib/commonjs/agent-avatar/CharacterAvatar.js.map +1 -1
  14. package/lib/commonjs/agent-avatar/config-character.js +0 -4
  15. package/lib/commonjs/agent-avatar/config-character.js.map +1 -1
  16. package/lib/commonjs/agent-avatar/legacy-recipe.js +6 -19
  17. package/lib/commonjs/agent-avatar/legacy-recipe.js.map +1 -1
  18. package/lib/commonjs/agent-creator/AgentCreatorBase.js +107 -67
  19. package/lib/commonjs/agent-creator/AgentCreatorBase.js.map +1 -1
  20. package/lib/commonjs/agent-creator/CharacterControls.js +5 -23
  21. package/lib/commonjs/agent-creator/CharacterControls.js.map +1 -1
  22. package/lib/commonjs/agent-creator/EmotionPicker.js +1 -8
  23. package/lib/commonjs/agent-creator/EmotionPicker.js.map +1 -1
  24. package/lib/commonjs/agent-creator/ShapeSilhouette.js +1 -8
  25. package/lib/commonjs/agent-creator/ShapeSilhouette.js.map +1 -1
  26. package/lib/commonjs/agent-creator/constants.js +17 -16
  27. package/lib/commonjs/agent-creator/constants.js.map +1 -1
  28. package/lib/commonjs/agent-creator/messages.js +1 -1
  29. package/lib/commonjs/agent-creator/messages.js.map +1 -1
  30. package/lib/commonjs/locale/translations/ar.js +1 -1
  31. package/lib/commonjs/locale/translations/ar.js.map +1 -1
  32. package/lib/commonjs/locale/translations/bn.js +1 -1
  33. package/lib/commonjs/locale/translations/bn.js.map +1 -1
  34. package/lib/commonjs/locale/translations/ca.js +1 -1
  35. package/lib/commonjs/locale/translations/ca.js.map +1 -1
  36. package/lib/commonjs/locale/translations/de.js +1 -1
  37. package/lib/commonjs/locale/translations/de.js.map +1 -1
  38. package/lib/commonjs/locale/translations/es.js +1 -1
  39. package/lib/commonjs/locale/translations/es.js.map +1 -1
  40. package/lib/commonjs/locale/translations/fr.js +1 -1
  41. package/lib/commonjs/locale/translations/fr.js.map +1 -1
  42. package/lib/commonjs/locale/translations/hi.js +1 -1
  43. package/lib/commonjs/locale/translations/hi.js.map +1 -1
  44. package/lib/commonjs/locale/translations/id.js +1 -1
  45. package/lib/commonjs/locale/translations/id.js.map +1 -1
  46. package/lib/commonjs/locale/translations/it.js +1 -1
  47. package/lib/commonjs/locale/translations/it.js.map +1 -1
  48. package/lib/commonjs/locale/translations/ja.js +1 -1
  49. package/lib/commonjs/locale/translations/ja.js.map +1 -1
  50. package/lib/commonjs/locale/translations/pt.js +1 -1
  51. package/lib/commonjs/locale/translations/pt.js.map +1 -1
  52. package/lib/commonjs/locale/translations/ru.js +1 -1
  53. package/lib/commonjs/locale/translations/ru.js.map +1 -1
  54. package/lib/commonjs/locale/translations/tr.js +1 -1
  55. package/lib/commonjs/locale/translations/tr.js.map +1 -1
  56. package/lib/commonjs/locale/translations/zh.js +1 -1
  57. package/lib/commonjs/locale/translations/zh.js.map +1 -1
  58. package/lib/module/agent-avatar/AgentAvatar.js +1 -1
  59. package/lib/module/agent-avatar/AgentAvatar.js.map +1 -1
  60. package/lib/module/agent-avatar/CharacterAvatar.js +1 -2
  61. package/lib/module/agent-avatar/CharacterAvatar.js.map +1 -1
  62. package/lib/module/agent-avatar/config-character.js +0 -4
  63. package/lib/module/agent-avatar/config-character.js.map +1 -1
  64. package/lib/module/agent-avatar/legacy-recipe.js +6 -19
  65. package/lib/module/agent-avatar/legacy-recipe.js.map +1 -1
  66. package/lib/module/agent-creator/AgentCreatorBase.js +109 -69
  67. package/lib/module/agent-creator/AgentCreatorBase.js.map +1 -1
  68. package/lib/module/agent-creator/CharacterControls.js +6 -24
  69. package/lib/module/agent-creator/CharacterControls.js.map +1 -1
  70. package/lib/module/agent-creator/EmotionPicker.js +1 -8
  71. package/lib/module/agent-creator/EmotionPicker.js.map +1 -1
  72. package/lib/module/agent-creator/ShapeSilhouette.js +1 -8
  73. package/lib/module/agent-creator/ShapeSilhouette.js.map +1 -1
  74. package/lib/module/agent-creator/constants.js +16 -8
  75. package/lib/module/agent-creator/constants.js.map +1 -1
  76. package/lib/module/agent-creator/messages.js +1 -1
  77. package/lib/module/agent-creator/messages.js.map +1 -1
  78. package/lib/module/locale/translations/ar.js +1 -1
  79. package/lib/module/locale/translations/ar.js.map +1 -1
  80. package/lib/module/locale/translations/bn.js +1 -1
  81. package/lib/module/locale/translations/bn.js.map +1 -1
  82. package/lib/module/locale/translations/ca.js +1 -1
  83. package/lib/module/locale/translations/ca.js.map +1 -1
  84. package/lib/module/locale/translations/de.js +1 -1
  85. package/lib/module/locale/translations/de.js.map +1 -1
  86. package/lib/module/locale/translations/es.js +1 -1
  87. package/lib/module/locale/translations/es.js.map +1 -1
  88. package/lib/module/locale/translations/fr.js +1 -1
  89. package/lib/module/locale/translations/fr.js.map +1 -1
  90. package/lib/module/locale/translations/hi.js +1 -1
  91. package/lib/module/locale/translations/hi.js.map +1 -1
  92. package/lib/module/locale/translations/id.js +1 -1
  93. package/lib/module/locale/translations/id.js.map +1 -1
  94. package/lib/module/locale/translations/it.js +1 -1
  95. package/lib/module/locale/translations/it.js.map +1 -1
  96. package/lib/module/locale/translations/ja.js +1 -1
  97. package/lib/module/locale/translations/ja.js.map +1 -1
  98. package/lib/module/locale/translations/pt.js +1 -1
  99. package/lib/module/locale/translations/pt.js.map +1 -1
  100. package/lib/module/locale/translations/ru.js +1 -1
  101. package/lib/module/locale/translations/ru.js.map +1 -1
  102. package/lib/module/locale/translations/tr.js +1 -1
  103. package/lib/module/locale/translations/tr.js.map +1 -1
  104. package/lib/module/locale/translations/zh.js +1 -1
  105. package/lib/module/locale/translations/zh.js.map +1 -1
  106. package/lib/typescript/commonjs/agent-avatar/CharacterAvatar.d.ts.map +1 -1
  107. package/lib/typescript/commonjs/agent-avatar/config-character.d.ts +0 -4
  108. package/lib/typescript/commonjs/agent-avatar/config-character.d.ts.map +1 -1
  109. package/lib/typescript/commonjs/agent-avatar/legacy-recipe.d.ts +10 -2
  110. package/lib/typescript/commonjs/agent-avatar/legacy-recipe.d.ts.map +1 -1
  111. package/lib/typescript/commonjs/agent-creator/AgentCreatorBase.d.ts.map +1 -1
  112. package/lib/typescript/commonjs/agent-creator/CharacterControls.d.ts +1 -2
  113. package/lib/typescript/commonjs/agent-creator/CharacterControls.d.ts.map +1 -1
  114. package/lib/typescript/commonjs/agent-creator/EmotionPicker.d.ts +0 -1
  115. package/lib/typescript/commonjs/agent-creator/EmotionPicker.d.ts.map +1 -1
  116. package/lib/typescript/commonjs/agent-creator/ShapeSilhouette.d.ts.map +1 -1
  117. package/lib/typescript/commonjs/agent-creator/constants.d.ts +15 -7
  118. package/lib/typescript/commonjs/agent-creator/constants.d.ts.map +1 -1
  119. package/lib/typescript/commonjs/agent-creator/messages.d.ts.map +1 -1
  120. package/lib/typescript/module/agent-avatar/CharacterAvatar.d.ts.map +1 -1
  121. package/lib/typescript/module/agent-avatar/config-character.d.ts +0 -4
  122. package/lib/typescript/module/agent-avatar/config-character.d.ts.map +1 -1
  123. package/lib/typescript/module/agent-avatar/legacy-recipe.d.ts +10 -2
  124. package/lib/typescript/module/agent-avatar/legacy-recipe.d.ts.map +1 -1
  125. package/lib/typescript/module/agent-creator/AgentCreatorBase.d.ts.map +1 -1
  126. package/lib/typescript/module/agent-creator/CharacterControls.d.ts +1 -2
  127. package/lib/typescript/module/agent-creator/CharacterControls.d.ts.map +1 -1
  128. package/lib/typescript/module/agent-creator/EmotionPicker.d.ts +0 -1
  129. package/lib/typescript/module/agent-creator/EmotionPicker.d.ts.map +1 -1
  130. package/lib/typescript/module/agent-creator/ShapeSilhouette.d.ts.map +1 -1
  131. package/lib/typescript/module/agent-creator/constants.d.ts +15 -7
  132. package/lib/typescript/module/agent-creator/constants.d.ts.map +1 -1
  133. package/lib/typescript/module/agent-creator/messages.d.ts.map +1 -1
  134. package/package.json +1 -1
  135. package/src/agent-avatar/AgentAvatar.tsx +1 -1
  136. package/src/agent-avatar/CharacterAvatar.tsx +1 -4
  137. package/src/agent-avatar/config-character.ts +6 -39
  138. package/src/agent-avatar/legacy-recipe.ts +6 -34
  139. package/src/agent-creator/AgentCreatorBase.tsx +152 -121
  140. package/src/agent-creator/CharacterControls.tsx +14 -39
  141. package/src/agent-creator/EmotionPicker.tsx +16 -55
  142. package/src/agent-creator/ShapeSilhouette.tsx +1 -16
  143. package/src/agent-creator/constants.ts +14 -47
  144. package/src/agent-creator/messages.ts +1 -2
  145. package/src/locale/translations/ar.ts +1 -1
  146. package/src/locale/translations/bn.ts +1 -1
  147. package/src/locale/translations/ca.ts +1 -1
  148. package/src/locale/translations/de.ts +1 -1
  149. package/src/locale/translations/es.ts +1 -1
  150. package/src/locale/translations/fr.ts +1 -1
  151. package/src/locale/translations/hi.ts +1 -1
  152. package/src/locale/translations/id.ts +1 -1
  153. package/src/locale/translations/it.ts +1 -1
  154. package/src/locale/translations/ja.ts +1 -1
  155. package/src/locale/translations/pt.ts +1 -1
  156. package/src/locale/translations/ru.ts +1 -1
  157. package/src/locale/translations/tr.ts +1 -1
  158. package/src/locale/translations/zh.ts +1 -1
  159. package/assets/character-runtime/authored-parts.mjs +0 -754
  160. package/assets/character-runtime/catalog-parts.mjs +0 -362
  161. package/assets/character-runtime/character-recipe.mjs +0 -247
  162. package/assets/character-runtime/clippo-geometry.mjs +0 -679
  163. package/assets/character-runtime/controller-mode.mjs +0 -208
  164. package/assets/character-runtime/cyclops-geometry.mjs +0 -180
  165. package/assets/character-runtime/migrated-contours.mjs +0 -2067
  166. package/assets/character-runtime/migrated-faces.mjs +0 -59
  167. package/assets/character-runtime/pose-transition.mjs +0 -523
  168. package/assets/character-runtime/preparation-cache.mjs +0 -60
  169. package/assets/character-runtime/render-errors.mjs +0 -180
  170. package/assets/character-runtime/resolution.mjs +0 -10
  171. package/assets/character-runtime/sha256.mjs +0 -44
  172. package/assets/character-runtime/shared-programs.mjs +0 -534
  173. package/assets/character-runtime/shared-surface.mjs +0 -490
  174. package/assets/character-runtime/shared-textures.mjs +0 -420
  175. package/assets/character-runtime/thumbnails/eyes/todd.png +0 -0
  176. package/lib/commonjs/agent-avatar/character-colors.js +0 -19
  177. package/lib/commonjs/agent-avatar/character-colors.js.map +0 -1
  178. package/lib/commonjs/agent-avatar/character-shapes.js +0 -106
  179. package/lib/commonjs/agent-avatar/character-shapes.js.map +0 -1
  180. package/lib/commonjs/agent-creator/ClippoArtwork.js +0 -63
  181. package/lib/commonjs/agent-creator/ClippoArtwork.js.map +0 -1
  182. package/lib/commonjs/agent-creator/CyclopsArtwork.js +0 -45
  183. package/lib/commonjs/agent-creator/CyclopsArtwork.js.map +0 -1
  184. package/lib/commonjs/agent-creator/ToddArtwork.js +0 -29
  185. package/lib/commonjs/agent-creator/ToddArtwork.js.map +0 -1
  186. package/lib/module/agent-avatar/character-colors.js +0 -15
  187. package/lib/module/agent-avatar/character-colors.js.map +0 -1
  188. package/lib/module/agent-avatar/character-shapes.js +0 -97
  189. package/lib/module/agent-avatar/character-shapes.js.map +0 -1
  190. package/lib/module/agent-creator/ClippoArtwork.js +0 -59
  191. package/lib/module/agent-creator/ClippoArtwork.js.map +0 -1
  192. package/lib/module/agent-creator/CyclopsArtwork.js +0 -41
  193. package/lib/module/agent-creator/CyclopsArtwork.js.map +0 -1
  194. package/lib/module/agent-creator/ToddArtwork.js +0 -25
  195. package/lib/module/agent-creator/ToddArtwork.js.map +0 -1
  196. package/lib/typescript/commonjs/agent-avatar/character-colors.d.ts +0 -13
  197. package/lib/typescript/commonjs/agent-avatar/character-colors.d.ts.map +0 -1
  198. package/lib/typescript/commonjs/agent-avatar/character-shapes.d.ts +0 -19
  199. package/lib/typescript/commonjs/agent-avatar/character-shapes.d.ts.map +0 -1
  200. package/lib/typescript/commonjs/agent-creator/ClippoArtwork.d.ts +0 -6
  201. package/lib/typescript/commonjs/agent-creator/ClippoArtwork.d.ts.map +0 -1
  202. package/lib/typescript/commonjs/agent-creator/CyclopsArtwork.d.ts +0 -5
  203. package/lib/typescript/commonjs/agent-creator/CyclopsArtwork.d.ts.map +0 -1
  204. package/lib/typescript/commonjs/agent-creator/ToddArtwork.d.ts +0 -6
  205. package/lib/typescript/commonjs/agent-creator/ToddArtwork.d.ts.map +0 -1
  206. package/lib/typescript/module/agent-avatar/character-colors.d.ts +0 -13
  207. package/lib/typescript/module/agent-avatar/character-colors.d.ts.map +0 -1
  208. package/lib/typescript/module/agent-avatar/character-shapes.d.ts +0 -19
  209. package/lib/typescript/module/agent-avatar/character-shapes.d.ts.map +0 -1
  210. package/lib/typescript/module/agent-creator/ClippoArtwork.d.ts +0 -6
  211. package/lib/typescript/module/agent-creator/ClippoArtwork.d.ts.map +0 -1
  212. package/lib/typescript/module/agent-creator/CyclopsArtwork.d.ts +0 -5
  213. package/lib/typescript/module/agent-creator/CyclopsArtwork.d.ts.map +0 -1
  214. package/lib/typescript/module/agent-creator/ToddArtwork.d.ts +0 -6
  215. package/lib/typescript/module/agent-creator/ToddArtwork.d.ts.map +0 -1
  216. package/src/agent-avatar/character-colors.ts +0 -12
  217. package/src/agent-avatar/character-shapes.ts +0 -122
  218. package/src/agent-creator/ClippoArtwork.tsx +0 -49
  219. package/src/agent-creator/CyclopsArtwork.tsx +0 -27
  220. package/src/agent-creator/ToddArtwork.tsx +0 -24
@@ -1 +0,0 @@
1
- {"version":3,"names":["_reactNativeSvg","_interopRequireWildcard","require","_jsxRuntime","e","t","WeakMap","r","n","__esModule","o","i","f","__proto__","default","has","get","set","hasOwnProperty","call","Object","defineProperty","getOwnPropertyDescriptor","CyclopsArtwork","opacity","jsxs","width","height","viewBox","accessible","pointerEvents","children","jsx","Ellipse","cx","cy","rx","ry","fill","Circle","stroke","strokeWidth","Path","d"],"sourceRoot":"../../../src","sources":["agent-creator/CyclopsArtwork.tsx"],"mappings":";;;;;;AAAA,IAAAA,eAAA,GAAAC,uBAAA,CAAAC,OAAA;AAA8D,IAAAC,WAAA,GAAAD,OAAA;AAAA,SAAAD,wBAAAG,CAAA,EAAAC,CAAA,6BAAAC,OAAA,MAAAC,CAAA,OAAAD,OAAA,IAAAE,CAAA,OAAAF,OAAA,YAAAL,uBAAA,YAAAA,CAAAG,CAAA,EAAAC,CAAA,SAAAA,CAAA,IAAAD,CAAA,IAAAA,CAAA,CAAAK,UAAA,SAAAL,CAAA,MAAAM,CAAA,EAAAC,CAAA,EAAAC,CAAA,KAAAC,SAAA,QAAAC,OAAA,EAAAV,CAAA,iBAAAA,CAAA,uBAAAA,CAAA,yBAAAA,CAAA,SAAAQ,CAAA,MAAAF,CAAA,GAAAL,CAAA,GAAAG,CAAA,GAAAD,CAAA,QAAAG,CAAA,CAAAK,GAAA,CAAAX,CAAA,UAAAM,CAAA,CAAAM,GAAA,CAAAZ,CAAA,GAAAM,CAAA,CAAAO,GAAA,CAAAb,CAAA,EAAAQ,CAAA,gBAAAP,CAAA,IAAAD,CAAA,gBAAAC,CAAA,OAAAa,cAAA,CAAAC,IAAA,CAAAf,CAAA,EAAAC,CAAA,OAAAM,CAAA,IAAAD,CAAA,GAAAU,MAAA,CAAAC,cAAA,KAAAD,MAAA,CAAAE,wBAAA,CAAAlB,CAAA,EAAAC,CAAA,OAAAM,CAAA,CAAAK,GAAA,IAAAL,CAAA,CAAAM,GAAA,IAAAP,CAAA,CAAAE,CAAA,EAAAP,CAAA,EAAAM,CAAA,IAAAC,CAAA,CAAAP,CAAA,IAAAD,CAAA,CAAAC,CAAA,WAAAO,CAAA,KAAAR,CAAA,EAAAC,CAAA;AAE9D;AACO,SAASkB,cAAcA,CAAC;EAAEC,OAAO,GAAG;AAAwB,CAAC,EAAE;EACpE,oBACE,IAAArB,WAAA,CAAAsB,IAAA,EAACzB,eAAA,CAAAc,OAAG;IACFY,KAAK,EAAE,EAAG;IACVC,MAAM,EAAE,EAAG;IACXC,OAAO,EAAC,aAAa;IACrBJ,OAAO,EAAEA,OAAQ;IACjBK,UAAU,EAAE,KAAM;IAClBC,aAAa,EAAC,MAAM;IAAAC,QAAA,gBAEpB,IAAA5B,WAAA,CAAA6B,GAAA,EAAChC,eAAA,CAAAiC,OAAO;MAACC,EAAE,EAAE,EAAG;MAACC,EAAE,EAAE,EAAG;MAACC,EAAE,EAAE,EAAG;MAACC,EAAE,EAAE,EAAG;MAACC,IAAI,EAAC;IAAS,CAAE,CAAC,eAC1D,IAAAnC,WAAA,CAAA6B,GAAA,EAAChC,eAAA,CAAAuC,MAAM;MACLL,EAAE,EAAE,EAAG;MACPC,EAAE,EAAE,EAAG;MACP5B,CAAC,EAAE,EAAG;MACN+B,IAAI,EAAC,SAAS;MACdE,MAAM,EAAC,SAAS;MAChBC,WAAW,EAAE;IAAE,CAChB,CAAC,eACF,IAAAtC,WAAA,CAAA6B,GAAA,EAAChC,eAAA,CAAAuC,MAAM;MAACL,EAAE,EAAE,EAAG;MAACC,EAAE,EAAE,EAAG;MAAC5B,CAAC,EAAE,EAAG;MAAC+B,IAAI,EAAC;IAAS,CAAE,CAAC,eAChD,IAAAnC,WAAA,CAAA6B,GAAA,EAAChC,eAAA,CAAA0C,IAAI;MAACC,CAAC,EAAC,+BAA+B;MAACL,IAAI,EAAC;IAAS,CAAE,CAAC;EAAA,CACtD,CAAC;AAEV","ignoreList":[]}
@@ -1,29 +0,0 @@
1
- "use strict";
2
-
3
- Object.defineProperty(exports, "__esModule", {
4
- value: true
5
- });
6
- exports.ToddArtwork = ToddArtwork;
7
- var _reactNativeSvg = _interopRequireWildcard(require("react-native-svg"));
8
- var _constants = require("./constants.js");
9
- var _jsxRuntime = require("react/jsx-runtime");
10
- function _interopRequireWildcard(e, t) { if ("function" == typeof WeakMap) var r = new WeakMap(), n = new WeakMap(); return (_interopRequireWildcard = function (e, t) { if (!t && e && e.__esModule) return e; var o, i, f = { __proto__: null, default: e }; if (null === e || "object" != typeof e && "function" != typeof e) return f; if (o = t ? n : r) { if (o.has(e)) return o.get(e); o.set(e, f); } for (const t in e) "default" !== t && {}.hasOwnProperty.call(e, t) && ((i = (o = Object.defineProperty) && Object.getOwnPropertyDescriptor(e, t)) && (i.get || i.set) ? o(f, t, i) : f[t] = e[t]); return f; })(e, t); }
11
- /** Static Todd body outline: 128 projected triangle intersections from the
12
- * original lime_frog mesh (2,502 vertices), with engine Y-up reflected for SVG.
13
- * This selector does not load the renderer or substitute another body shape.
14
- */
15
- function ToddArtwork() {
16
- return /*#__PURE__*/(0, _jsxRuntime.jsx)(_reactNativeSvg.default, {
17
- width: 56,
18
- height: 56,
19
- viewBox: "-1.04785 -0.86450 2.09611 1.69982",
20
- preserveAspectRatio: "xMidYMid meet",
21
- accessible: false,
22
- pointerEvents: "none",
23
- children: /*#__PURE__*/(0, _jsxRuntime.jsx)(_reactNativeSvg.Path, {
24
- 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",
25
- fill: _constants.CHARACTER_COLORS.pink
26
- })
27
- });
28
- }
29
- //# sourceMappingURL=ToddArtwork.js.map
@@ -1 +0,0 @@
1
- {"version":3,"names":["_reactNativeSvg","_interopRequireWildcard","require","_constants","_jsxRuntime","e","t","WeakMap","r","n","__esModule","o","i","f","__proto__","default","has","get","set","hasOwnProperty","call","Object","defineProperty","getOwnPropertyDescriptor","ToddArtwork","jsx","width","height","viewBox","preserveAspectRatio","accessible","pointerEvents","children","Path","d","fill","CHARACTER_COLORS","pink"],"sourceRoot":"../../../src","sources":["agent-creator/ToddArtwork.tsx"],"mappings":";;;;;;AAAA,IAAAA,eAAA,GAAAC,uBAAA,CAAAC,OAAA;AACA,IAAAC,UAAA,GAAAD,OAAA;AAA+C,IAAAE,WAAA,GAAAF,OAAA;AAAA,SAAAD,wBAAAI,CAAA,EAAAC,CAAA,6BAAAC,OAAA,MAAAC,CAAA,OAAAD,OAAA,IAAAE,CAAA,OAAAF,OAAA,YAAAN,uBAAA,YAAAA,CAAAI,CAAA,EAAAC,CAAA,SAAAA,CAAA,IAAAD,CAAA,IAAAA,CAAA,CAAAK,UAAA,SAAAL,CAAA,MAAAM,CAAA,EAAAC,CAAA,EAAAC,CAAA,KAAAC,SAAA,QAAAC,OAAA,EAAAV,CAAA,iBAAAA,CAAA,uBAAAA,CAAA,yBAAAA,CAAA,SAAAQ,CAAA,MAAAF,CAAA,GAAAL,CAAA,GAAAG,CAAA,GAAAD,CAAA,QAAAG,CAAA,CAAAK,GAAA,CAAAX,CAAA,UAAAM,CAAA,CAAAM,GAAA,CAAAZ,CAAA,GAAAM,CAAA,CAAAO,GAAA,CAAAb,CAAA,EAAAQ,CAAA,gBAAAP,CAAA,IAAAD,CAAA,gBAAAC,CAAA,OAAAa,cAAA,CAAAC,IAAA,CAAAf,CAAA,EAAAC,CAAA,OAAAM,CAAA,IAAAD,CAAA,GAAAU,MAAA,CAAAC,cAAA,KAAAD,MAAA,CAAAE,wBAAA,CAAAlB,CAAA,EAAAC,CAAA,OAAAM,CAAA,CAAAK,GAAA,IAAAL,CAAA,CAAAM,GAAA,IAAAP,CAAA,CAAAE,CAAA,EAAAP,CAAA,EAAAM,CAAA,IAAAC,CAAA,CAAAP,CAAA,IAAAD,CAAA,CAAAC,CAAA,WAAAO,CAAA,KAAAR,CAAA,EAAAC,CAAA;AAE/C;AACA;AACA;AACA;AACO,SAASkB,WAAWA,CAAA,EAAG;EAC5B,oBACE,IAAApB,WAAA,CAAAqB,GAAA,EAACzB,eAAA,CAAAe,OAAG;IACFW,KAAK,EAAE,EAAG;IACVC,MAAM,EAAE,EAAG;IACXC,OAAO,EAAC,mCAAmC;IAC3CC,mBAAmB,EAAC,eAAe;IACnCC,UAAU,EAAE,KAAM;IAClBC,aAAa,EAAC,MAAM;IAAAC,QAAA,eAEpB,IAAA5B,WAAA,CAAAqB,GAAA,EAACzB,eAAA,CAAAiC,IAAI;MACHC,CAAC,EAAC,kgEAAkgE;MACpgEC,IAAI,EAAEC,2BAAgB,CAACC;IAAK,CAC7B;EAAC,CACC,CAAC;AAEV","ignoreList":[]}
@@ -1,15 +0,0 @@
1
- "use strict";
2
-
3
- /** RGB swatches returned by the recovered engine's Color catalog. */
4
- export const CHARACTER_COLORS = {
5
- pink: '#fa70ab',
6
- orchid: '#dd6adc',
7
- violet: '#a25bff',
8
- blue: '#4778ff',
9
- cyan: '#00b1ff',
10
- teal: '#04bb9f',
11
- lime: '#b6d80b',
12
- yellow: '#ffcc38',
13
- coral: '#ff8066'
14
- };
15
- //# sourceMappingURL=character-colors.js.map
@@ -1 +0,0 @@
1
- {"version":3,"names":["CHARACTER_COLORS","pink","orchid","violet","blue","cyan","teal","lime","yellow","coral"],"sourceRoot":"../../../src","sources":["agent-avatar/character-colors.ts"],"mappings":";;AAAA;AACA,OAAO,MAAMA,gBAAgB,GAAG;EAC9BC,IAAI,EAAE,SAAS;EACfC,MAAM,EAAE,SAAS;EACjBC,MAAM,EAAE,SAAS;EACjBC,IAAI,EAAE,SAAS;EACfC,IAAI,EAAE,SAAS;EACfC,IAAI,EAAE,SAAS;EACfC,IAAI,EAAE,SAAS;EACfC,MAAM,EAAE,SAAS;EACjBC,KAAK,EAAE;AACT,CAAU","ignoreList":[]}
@@ -1,97 +0,0 @@
1
- "use strict";
2
-
3
- import { avatarHex } from "./avatar-color.js";
4
- export const NATIVE_CHARACTER_SHAPES = [['clippo', 'Clippo'], ['todd', 'Todd'], ['circle', 'Circle'], ['rounded_triangle', 'Rounded triangle'], ['capsule', 'Capsule'], ['rounded_head_two_ears', 'Rounded head with two ears'], ['six_lobed_flower', 'Six lobed flower'], ['heart', 'Heart'], ['four_lobed_butterfly', 'Four lobed butterfly'], ['circle_two_ears', 'Circle with two ears'], ['twelve_scalloped_rosette', 'Twelve scalloped rosette'], ['rounded_cube', 'Hexagon'], ['rounded_diamond', 'Rounded diamond']];
5
- export const MIGRATED_CHARACTER_SHAPES = [['slender', 'Slender'], ['pocket', 'Pocket'], ['petal', 'Petal'], ['star', 'Star'], ['cloud', 'Cloud'], ['shield', 'Shield'], ['pebble', 'Pebble'], ['squircle', 'Squircle']];
6
- export const CHARACTER_SHAPES = [...NATIVE_CHARACTER_SHAPES, ...MIGRATED_CHARACTER_SHAPES];
7
- export function isMigratedCharacterShape(id) {
8
- return MIGRATED_CHARACTER_SHAPES.some(([shape]) => shape === id);
9
- }
10
-
11
- /** The saved paper/blob fields remain readable; canonical shape IDs own new edits. */
12
- export function currentCharacterShape(config) {
13
- if (config.character?.selections?.shape) return config.character.selections.shape;
14
- const shape = config.family === 'fold' ? config.foldShape : config.shape;
15
- const equivalent = {
16
- triangle: 'rounded_triangle',
17
- flower: 'six_lobed_flower',
18
- diamond: 'rounded_diamond'
19
- };
20
- return equivalent[shape] ?? shape;
21
- }
22
-
23
- /** Geometry-only view of one of the eight migrated contours. */
24
- export function characterShapeGeometry(config) {
25
- const shape = config.character?.selections?.shape;
26
- if (!isMigratedCharacterShape(shape)) return config;
27
- return shape === 'pebble' || shape === 'squircle' ? {
28
- ...config,
29
- family: 'blob',
30
- shape
31
- } : {
32
- ...config,
33
- family: 'fold',
34
- foldShape: shape
35
- };
36
- }
37
-
38
- /** Retain effective authored parts while preparing the next body. An old recipe
39
- * is promoted once, with its actual paint and contour rather than Felipe defaults.
40
- */
41
- export function materializeCharacter(config, selected = {}) {
42
- const saved = config.character;
43
- if (!saved || saved.preset === 'bloom') return {
44
- ...saved,
45
- preset: 'legacy',
46
- ...(saved?.bodyColor ? {
47
- bodyColor: saved.bodyColor
48
- } : !saved?.selections?.color ? {
49
- bodyColor: avatarHex(config)
50
- } : {}),
51
- selections: {
52
- shape: currentCharacterShape(config),
53
- eyes: 'oval',
54
- eyewear: 'none',
55
- accessory: 'none',
56
- ...saved?.selections
57
- }
58
- };
59
- const defaults = {};
60
- for (const part of ['eyes', 'eyewear', 'accessory']) if (selected[part]) defaults[part] = selected[part];
61
- // These virtual parts are absent from the backing native catalog.
62
- if (!defaults.eyes && saved.preset === 'clippo') defaults.eyes = 'clippo';
63
- if (!defaults.eyes && saved.preset === 'lime_frog') defaults.eyes = 'todd';
64
- if (!defaults.accessory && saved.preset === 'blue_beret') defaults.accessory = 'felipe_beret';
65
- return {
66
- ...saved,
67
- selections: {
68
- ...defaults,
69
- ...saved.selections
70
- }
71
- };
72
- }
73
-
74
- /** All 21 bodies change the same character recipe. Named paint and explicit RGB
75
- * keep their precedence; a body never supplies a replacement color or face.
76
- */
77
- export function createConfigForShape(config, shape, selected = {}) {
78
- if (!CHARACTER_SHAPES.some(([id]) => id === shape)) throw new Error('Unknown character shape.');
79
- const character = materializeCharacter(config, selected);
80
- if (!character.bodyColor && !character.selections?.color) {
81
- if (character.preset === 'clippo') character.bodyColor = '#999b9d';else if (selected.color) character.selections = {
82
- ...character.selections,
83
- color: selected.color
84
- };else if (selected.bodyColor) character.bodyColor = selected.bodyColor;
85
- }
86
- return characterShapeGeometry({
87
- ...config,
88
- character: {
89
- ...character,
90
- selections: {
91
- ...character.selections,
92
- shape
93
- }
94
- }
95
- });
96
- }
97
- //# sourceMappingURL=character-shapes.js.map
@@ -1 +0,0 @@
1
- {"version":3,"names":["avatarHex","NATIVE_CHARACTER_SHAPES","MIGRATED_CHARACTER_SHAPES","CHARACTER_SHAPES","isMigratedCharacterShape","id","some","shape","currentCharacterShape","config","character","selections","family","foldShape","equivalent","triangle","flower","diamond","characterShapeGeometry","materializeCharacter","selected","saved","preset","bodyColor","color","eyes","eyewear","accessory","defaults","part","createConfigForShape","Error"],"sourceRoot":"../../../src","sources":["agent-avatar/character-shapes.ts"],"mappings":"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","ignoreList":[]}
@@ -1,59 +0,0 @@
1
- "use strict";
2
-
3
- import Svg, { Circle, Path } from 'react-native-svg';
4
- import { CHARACTER_COLORS } from "./constants.js";
5
-
6
- /** Selector artwork only. The avatar itself uses Clippo's actual 3D meshes. */
7
- import { jsx as _jsx, Fragment as _Fragment, jsxs as _jsxs } from "react/jsx-runtime";
8
- export function ClippoArtwork({
9
- kind,
10
- opacity = 1
11
- }) {
12
- const eyes = kind === 'eyes';
13
- return /*#__PURE__*/_jsx(Svg, {
14
- width: eyes ? 27 : 56,
15
- height: eyes ? 27 : 56,
16
- viewBox: eyes ? '0 0 104 100' : '0 -4 90 170',
17
- preserveAspectRatio: "xMidYMid meet",
18
- opacity: opacity,
19
- accessible: false,
20
- pointerEvents: "none",
21
- children: eyes ? /*#__PURE__*/_jsxs(_Fragment, {
22
- children: [/*#__PURE__*/_jsx(Circle, {
23
- cx: 27,
24
- cy: 44,
25
- r: 21,
26
- fill: "#f4f3ee"
27
- }), /*#__PURE__*/_jsx(Circle, {
28
- cx: 77,
29
- cy: 58,
30
- r: 21,
31
- fill: "#f4f3ee"
32
- }), /*#__PURE__*/_jsx(Circle, {
33
- cx: 27,
34
- cy: 44,
35
- r: 15,
36
- fill: "#3c2b2d"
37
- }), /*#__PURE__*/_jsx(Circle, {
38
- cx: 77,
39
- cy: 58,
40
- r: 15,
41
- fill: "#3c2b2d"
42
- }), /*#__PURE__*/_jsx(Path, {
43
- d: "M11 8 C18 5 29 5 38 9 M63 21 C72 21 82 26 88 32",
44
- fill: "none",
45
- stroke: "#3c2b2d",
46
- strokeWidth: 12,
47
- strokeLinecap: "round"
48
- })]
49
- }) : /*#__PURE__*/_jsx(Path, {
50
- 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",
51
- fill: "none",
52
- stroke: CHARACTER_COLORS.pink,
53
- strokeWidth: 8.5,
54
- strokeLinecap: "round",
55
- strokeLinejoin: "round"
56
- })
57
- });
58
- }
59
- //# sourceMappingURL=ClippoArtwork.js.map
@@ -1 +0,0 @@
1
- {"version":3,"names":["Svg","Circle","Path","CHARACTER_COLORS","jsx","_jsx","Fragment","_Fragment","jsxs","_jsxs","ClippoArtwork","kind","opacity","eyes","width","height","viewBox","preserveAspectRatio","accessible","pointerEvents","children","cx","cy","r","fill","d","stroke","strokeWidth","strokeLinecap","pink","strokeLinejoin"],"sourceRoot":"../../../src","sources":["agent-creator/ClippoArtwork.tsx"],"mappings":";;AAAA,OAAOA,GAAG,IAAIC,MAAM,EAAEC,IAAI,QAAQ,kBAAkB;AACpD,SAASC,gBAAgB,QAAQ,gBAAa;;AAE9C;AAAA,SAAAC,GAAA,IAAAC,IAAA,EAAAC,QAAA,IAAAC,SAAA,EAAAC,IAAA,IAAAC,KAAA;AACA,OAAO,SAASC,aAAaA,CAAC;EAC5BC,IAAI;EACJC,OAAO,GAAG;AAIZ,CAAC,EAAE;EACD,MAAMC,IAAI,GAAGF,IAAI,KAAK,MAAM;EAC5B,oBACEN,IAAA,CAACL,GAAG;IACFc,KAAK,EAAED,IAAI,GAAG,EAAE,GAAG,EAAG;IACtBE,MAAM,EAAEF,IAAI,GAAG,EAAE,GAAG,EAAG;IACvBG,OAAO,EAAEH,IAAI,GAAG,aAAa,GAAG,aAAc;IAC9CI,mBAAmB,EAAC,eAAe;IACnCL,OAAO,EAAEA,OAAQ;IACjBM,UAAU,EAAE,KAAM;IAClBC,aAAa,EAAC,MAAM;IAAAC,QAAA,EAEnBP,IAAI,gBACHJ,KAAA,CAAAF,SAAA;MAAAa,QAAA,gBACEf,IAAA,CAACJ,MAAM;QAACoB,EAAE,EAAE,EAAG;QAACC,EAAE,EAAE,EAAG;QAACC,CAAC,EAAE,EAAG;QAACC,IAAI,EAAC;MAAS,CAAE,CAAC,eAChDnB,IAAA,CAACJ,MAAM;QAACoB,EAAE,EAAE,EAAG;QAACC,EAAE,EAAE,EAAG;QAACC,CAAC,EAAE,EAAG;QAACC,IAAI,EAAC;MAAS,CAAE,CAAC,eAChDnB,IAAA,CAACJ,MAAM;QAACoB,EAAE,EAAE,EAAG;QAACC,EAAE,EAAE,EAAG;QAACC,CAAC,EAAE,EAAG;QAACC,IAAI,EAAC;MAAS,CAAE,CAAC,eAChDnB,IAAA,CAACJ,MAAM;QAACoB,EAAE,EAAE,EAAG;QAACC,EAAE,EAAE,EAAG;QAACC,CAAC,EAAE,EAAG;QAACC,IAAI,EAAC;MAAS,CAAE,CAAC,eAChDnB,IAAA,CAACH,IAAI;QACHuB,CAAC,EAAC,iDAAiD;QACnDD,IAAI,EAAC,MAAM;QACXE,MAAM,EAAC,SAAS;QAChBC,WAAW,EAAE,EAAG;QAChBC,aAAa,EAAC;MAAO,CACtB,CAAC;IAAA,CACF,CAAC,gBAEHvB,IAAA,CAACH,IAAI;MACHuB,CAAC,EAAC,gNAAgN;MAClND,IAAI,EAAC,MAAM;MACXE,MAAM,EAAEvB,gBAAgB,CAAC0B,IAAK;MAC9BF,WAAW,EAAE,GAAI;MACjBC,aAAa,EAAC,OAAO;MACrBE,cAAc,EAAC;IAAO,CACvB;EACF,CACE,CAAC;AAEV","ignoreList":[]}
@@ -1,41 +0,0 @@
1
- "use strict";
2
-
3
- import Svg, { Circle, Ellipse, Path } from 'react-native-svg';
4
-
5
- /** Static selector artwork; the runtime renders the fitted single-eye mesh. */
6
- import { jsx as _jsx, jsxs as _jsxs } from "react/jsx-runtime";
7
- export function CyclopsArtwork({
8
- opacity = 1
9
- }) {
10
- return /*#__PURE__*/_jsxs(Svg, {
11
- width: 27,
12
- height: 27,
13
- viewBox: "0 0 100 100",
14
- opacity: opacity,
15
- accessible: false,
16
- pointerEvents: "none",
17
- children: [/*#__PURE__*/_jsx(Ellipse, {
18
- cx: 50,
19
- cy: 50,
20
- rx: 46,
21
- ry: 44,
22
- fill: "#f4f5ee"
23
- }), /*#__PURE__*/_jsx(Circle, {
24
- cx: 50,
25
- cy: 50,
26
- r: 24,
27
- fill: "#148a78",
28
- stroke: "#174e45",
29
- strokeWidth: 3
30
- }), /*#__PURE__*/_jsx(Circle, {
31
- cx: 50,
32
- cy: 50,
33
- r: 14,
34
- fill: "#101918"
35
- }), /*#__PURE__*/_jsx(Path, {
36
- d: "M61 31 L71 38 L65 46 L57 40 Z",
37
- fill: "#ffffff"
38
- })]
39
- });
40
- }
41
- //# sourceMappingURL=CyclopsArtwork.js.map
@@ -1 +0,0 @@
1
- {"version":3,"names":["Svg","Circle","Ellipse","Path","jsx","_jsx","jsxs","_jsxs","CyclopsArtwork","opacity","width","height","viewBox","accessible","pointerEvents","children","cx","cy","rx","ry","fill","r","stroke","strokeWidth","d"],"sourceRoot":"../../../src","sources":["agent-creator/CyclopsArtwork.tsx"],"mappings":";;AAAA,OAAOA,GAAG,IAAIC,MAAM,EAAEC,OAAO,EAAEC,IAAI,QAAQ,kBAAkB;;AAE7D;AAAA,SAAAC,GAAA,IAAAC,IAAA,EAAAC,IAAA,IAAAC,KAAA;AACA,OAAO,SAASC,cAAcA,CAAC;EAAEC,OAAO,GAAG;AAAwB,CAAC,EAAE;EACpE,oBACEF,KAAA,CAACP,GAAG;IACFU,KAAK,EAAE,EAAG;IACVC,MAAM,EAAE,EAAG;IACXC,OAAO,EAAC,aAAa;IACrBH,OAAO,EAAEA,OAAQ;IACjBI,UAAU,EAAE,KAAM;IAClBC,aAAa,EAAC,MAAM;IAAAC,QAAA,gBAEpBV,IAAA,CAACH,OAAO;MAACc,EAAE,EAAE,EAAG;MAACC,EAAE,EAAE,EAAG;MAACC,EAAE,EAAE,EAAG;MAACC,EAAE,EAAE,EAAG;MAACC,IAAI,EAAC;IAAS,CAAE,CAAC,eAC1Df,IAAA,CAACJ,MAAM;MACLe,EAAE,EAAE,EAAG;MACPC,EAAE,EAAE,EAAG;MACPI,CAAC,EAAE,EAAG;MACND,IAAI,EAAC,SAAS;MACdE,MAAM,EAAC,SAAS;MAChBC,WAAW,EAAE;IAAE,CAChB,CAAC,eACFlB,IAAA,CAACJ,MAAM;MAACe,EAAE,EAAE,EAAG;MAACC,EAAE,EAAE,EAAG;MAACI,CAAC,EAAE,EAAG;MAACD,IAAI,EAAC;IAAS,CAAE,CAAC,eAChDf,IAAA,CAACF,IAAI;MAACqB,CAAC,EAAC,+BAA+B;MAACJ,IAAI,EAAC;IAAS,CAAE,CAAC;EAAA,CACtD,CAAC;AAEV","ignoreList":[]}
@@ -1,25 +0,0 @@
1
- "use strict";
2
-
3
- import Svg, { Path } from 'react-native-svg';
4
- import { CHARACTER_COLORS } from "./constants.js";
5
-
6
- /** Static Todd body outline: 128 projected triangle intersections from the
7
- * original lime_frog mesh (2,502 vertices), with engine Y-up reflected for SVG.
8
- * This selector does not load the renderer or substitute another body shape.
9
- */
10
- import { jsx as _jsx } from "react/jsx-runtime";
11
- export function ToddArtwork() {
12
- return /*#__PURE__*/_jsx(Svg, {
13
- width: 56,
14
- height: 56,
15
- viewBox: "-1.04785 -0.86450 2.09611 1.69982",
16
- preserveAspectRatio: "xMidYMid meet",
17
- accessible: false,
18
- pointerEvents: "none",
19
- children: /*#__PURE__*/_jsx(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
- });
24
- }
25
- //# sourceMappingURL=ToddArtwork.js.map
@@ -1 +0,0 @@
1
- {"version":3,"names":["Svg","Path","CHARACTER_COLORS","jsx","_jsx","ToddArtwork","width","height","viewBox","preserveAspectRatio","accessible","pointerEvents","children","d","fill","pink"],"sourceRoot":"../../../src","sources":["agent-creator/ToddArtwork.tsx"],"mappings":";;AAAA,OAAOA,GAAG,IAAIC,IAAI,QAAQ,kBAAkB;AAC5C,SAASC,gBAAgB,QAAQ,gBAAa;;AAE9C;AACA;AACA;AACA;AAHA,SAAAC,GAAA,IAAAC,IAAA;AAIA,OAAO,SAASC,WAAWA,CAAA,EAAG;EAC5B,oBACED,IAAA,CAACJ,GAAG;IACFM,KAAK,EAAE,EAAG;IACVC,MAAM,EAAE,EAAG;IACXC,OAAO,EAAC,mCAAmC;IAC3CC,mBAAmB,EAAC,eAAe;IACnCC,UAAU,EAAE,KAAM;IAClBC,aAAa,EAAC,MAAM;IAAAC,QAAA,eAEpBR,IAAA,CAACH,IAAI;MACHY,CAAC,EAAC,kgEAAkgE;MACpgEC,IAAI,EAAEZ,gBAAgB,CAACa;IAAK,CAC7B;EAAC,CACC,CAAC;AAEV","ignoreList":[]}
@@ -1,13 +0,0 @@
1
- /** RGB swatches returned by the recovered engine's Color catalog. */
2
- export declare const CHARACTER_COLORS: {
3
- readonly pink: "#fa70ab";
4
- readonly orchid: "#dd6adc";
5
- readonly violet: "#a25bff";
6
- readonly blue: "#4778ff";
7
- readonly cyan: "#00b1ff";
8
- readonly teal: "#04bb9f";
9
- readonly lime: "#b6d80b";
10
- readonly yellow: "#ffcc38";
11
- readonly coral: "#ff8066";
12
- };
13
- //# sourceMappingURL=character-colors.d.ts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"character-colors.d.ts","sourceRoot":"","sources":["../../../../src/agent-avatar/character-colors.ts"],"names":[],"mappings":"AAAA,qEAAqE;AACrE,eAAO,MAAM,gBAAgB;;;;;;;;;;CAUnB,CAAC"}
@@ -1,19 +0,0 @@
1
- import type { AvatarCharacterConfig } from './config-character';
2
- import type { AvatarConfig } from './model';
3
- export declare const NATIVE_CHARACTER_SHAPES: readonly [readonly ["clippo", "Clippo"], readonly ["todd", "Todd"], readonly ["circle", "Circle"], readonly ["rounded_triangle", "Rounded triangle"], readonly ["capsule", "Capsule"], readonly ["rounded_head_two_ears", "Rounded head with two ears"], readonly ["six_lobed_flower", "Six lobed flower"], readonly ["heart", "Heart"], readonly ["four_lobed_butterfly", "Four lobed butterfly"], readonly ["circle_two_ears", "Circle with two ears"], readonly ["twelve_scalloped_rosette", "Twelve scalloped rosette"], readonly ["rounded_cube", "Hexagon"], readonly ["rounded_diamond", "Rounded diamond"]];
4
- export declare const MIGRATED_CHARACTER_SHAPES: readonly [readonly ["slender", "Slender"], readonly ["pocket", "Pocket"], readonly ["petal", "Petal"], readonly ["star", "Star"], readonly ["cloud", "Cloud"], readonly ["shield", "Shield"], readonly ["pebble", "Pebble"], readonly ["squircle", "Squircle"]];
5
- export declare const CHARACTER_SHAPES: readonly [readonly ["clippo", "Clippo"], readonly ["todd", "Todd"], readonly ["circle", "Circle"], readonly ["rounded_triangle", "Rounded triangle"], readonly ["capsule", "Capsule"], readonly ["rounded_head_two_ears", "Rounded head with two ears"], readonly ["six_lobed_flower", "Six lobed flower"], readonly ["heart", "Heart"], readonly ["four_lobed_butterfly", "Four lobed butterfly"], readonly ["circle_two_ears", "Circle with two ears"], readonly ["twelve_scalloped_rosette", "Twelve scalloped rosette"], readonly ["rounded_cube", "Hexagon"], readonly ["rounded_diamond", "Rounded diamond"], readonly ["slender", "Slender"], readonly ["pocket", "Pocket"], readonly ["petal", "Petal"], readonly ["star", "Star"], readonly ["cloud", "Cloud"], readonly ["shield", "Shield"], readonly ["pebble", "Pebble"], readonly ["squircle", "Squircle"]];
6
- export declare function isMigratedCharacterShape(id: string | undefined): boolean;
7
- /** The saved paper/blob fields remain readable; canonical shape IDs own new edits. */
8
- export declare function currentCharacterShape(config: AvatarConfig): string;
9
- /** Geometry-only view of one of the eight migrated contours. */
10
- export declare function characterShapeGeometry(config: AvatarConfig): AvatarConfig;
11
- /** Retain effective authored parts while preparing the next body. An old recipe
12
- * is promoted once, with its actual paint and contour rather than Felipe defaults.
13
- */
14
- export declare function materializeCharacter(config: AvatarConfig, selected?: Readonly<Record<string, string>>): AvatarCharacterConfig;
15
- /** All 21 bodies change the same character recipe. Named paint and explicit RGB
16
- * keep their precedence; a body never supplies a replacement color or face.
17
- */
18
- export declare function createConfigForShape(config: AvatarConfig, shape: string, selected?: Readonly<Record<string, string>>): AvatarConfig;
19
- //# sourceMappingURL=character-shapes.d.ts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"character-shapes.d.ts","sourceRoot":"","sources":["../../../../src/agent-avatar/character-shapes.ts"],"names":[],"mappings":"AACA,OAAO,KAAK,EAAE,qBAAqB,EAAE,MAAM,oBAAoB,CAAC;AAChE,OAAO,KAAK,EAAE,YAAY,EAAE,MAAM,SAAS,CAAC;AAE5C,eAAO,MAAM,uBAAuB,qlBAc1B,CAAC;AACX,eAAO,MAAM,yBAAyB,iQAS5B,CAAC;AACX,eAAO,MAAM,gBAAgB,20BAGnB,CAAC;AAEX,wBAAgB,wBAAwB,CAAC,EAAE,EAAE,MAAM,GAAG,SAAS,GAAG,OAAO,CAExE;AAED,sFAAsF;AACtF,wBAAgB,qBAAqB,CAAC,MAAM,EAAE,YAAY,GAAG,MAAM,CAUlE;AAED,gEAAgE;AAChE,wBAAgB,sBAAsB,CAAC,MAAM,EAAE,YAAY,GAAG,YAAY,CAUzE;AAED;;GAEG;AACH,wBAAgB,oBAAoB,CAClC,MAAM,EAAE,YAAY,EACpB,QAAQ,GAAE,QAAQ,CAAC,MAAM,CAAC,MAAM,EAAE,MAAM,CAAC,CAAM,GAC9C,qBAAqB,CA4BvB;AAED;;GAEG;AACH,wBAAgB,oBAAoB,CAClC,MAAM,EAAE,YAAY,EACpB,KAAK,EAAE,MAAM,EACb,QAAQ,GAAE,QAAQ,CAAC,MAAM,CAAC,MAAM,EAAE,MAAM,CAAC,CAAM,GAC9C,YAAY,CAcd"}
@@ -1,6 +0,0 @@
1
- /** Selector artwork only. The avatar itself uses Clippo's actual 3D meshes. */
2
- export declare function ClippoArtwork({ kind, opacity, }: {
3
- kind: 'shape' | 'eyes';
4
- opacity?: number;
5
- }): import("react/jsx-runtime").JSX.Element;
6
- //# sourceMappingURL=ClippoArtwork.d.ts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"ClippoArtwork.d.ts","sourceRoot":"","sources":["../../../../src/agent-creator/ClippoArtwork.tsx"],"names":[],"mappings":"AAGA,+EAA+E;AAC/E,wBAAgB,aAAa,CAAC,EAC5B,IAAI,EACJ,OAAW,GACZ,EAAE;IACD,IAAI,EAAE,OAAO,GAAG,MAAM,CAAC;IACvB,OAAO,CAAC,EAAE,MAAM,CAAC;CAClB,2CAsCA"}
@@ -1,5 +0,0 @@
1
- /** Static selector artwork; the runtime renders the fitted single-eye mesh. */
2
- export declare function CyclopsArtwork({ opacity }: {
3
- opacity?: number;
4
- }): import("react/jsx-runtime").JSX.Element;
5
- //# sourceMappingURL=CyclopsArtwork.d.ts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"CyclopsArtwork.d.ts","sourceRoot":"","sources":["../../../../src/agent-creator/CyclopsArtwork.tsx"],"names":[],"mappings":"AAEA,+EAA+E;AAC/E,wBAAgB,cAAc,CAAC,EAAE,OAAW,EAAE,EAAE;IAAE,OAAO,CAAC,EAAE,MAAM,CAAA;CAAE,2CAuBnE"}
@@ -1,6 +0,0 @@
1
- /** Static Todd body outline: 128 projected triangle intersections from the
2
- * original lime_frog mesh (2,502 vertices), with engine Y-up reflected for SVG.
3
- * This selector does not load the renderer or substitute another body shape.
4
- */
5
- export declare function ToddArtwork(): import("react/jsx-runtime").JSX.Element;
6
- //# sourceMappingURL=ToddArtwork.d.ts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"ToddArtwork.d.ts","sourceRoot":"","sources":["../../../../src/agent-creator/ToddArtwork.tsx"],"names":[],"mappings":"AAGA;;;GAGG;AACH,wBAAgB,WAAW,4CAgB1B"}
@@ -1,13 +0,0 @@
1
- /** RGB swatches returned by the recovered engine's Color catalog. */
2
- export declare const CHARACTER_COLORS: {
3
- readonly pink: "#fa70ab";
4
- readonly orchid: "#dd6adc";
5
- readonly violet: "#a25bff";
6
- readonly blue: "#4778ff";
7
- readonly cyan: "#00b1ff";
8
- readonly teal: "#04bb9f";
9
- readonly lime: "#b6d80b";
10
- readonly yellow: "#ffcc38";
11
- readonly coral: "#ff8066";
12
- };
13
- //# sourceMappingURL=character-colors.d.ts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"character-colors.d.ts","sourceRoot":"","sources":["../../../../src/agent-avatar/character-colors.ts"],"names":[],"mappings":"AAAA,qEAAqE;AACrE,eAAO,MAAM,gBAAgB;;;;;;;;;;CAUnB,CAAC"}
@@ -1,19 +0,0 @@
1
- import type { AvatarCharacterConfig } from './config-character';
2
- import type { AvatarConfig } from './model';
3
- export declare const NATIVE_CHARACTER_SHAPES: readonly [readonly ["clippo", "Clippo"], readonly ["todd", "Todd"], readonly ["circle", "Circle"], readonly ["rounded_triangle", "Rounded triangle"], readonly ["capsule", "Capsule"], readonly ["rounded_head_two_ears", "Rounded head with two ears"], readonly ["six_lobed_flower", "Six lobed flower"], readonly ["heart", "Heart"], readonly ["four_lobed_butterfly", "Four lobed butterfly"], readonly ["circle_two_ears", "Circle with two ears"], readonly ["twelve_scalloped_rosette", "Twelve scalloped rosette"], readonly ["rounded_cube", "Hexagon"], readonly ["rounded_diamond", "Rounded diamond"]];
4
- export declare const MIGRATED_CHARACTER_SHAPES: readonly [readonly ["slender", "Slender"], readonly ["pocket", "Pocket"], readonly ["petal", "Petal"], readonly ["star", "Star"], readonly ["cloud", "Cloud"], readonly ["shield", "Shield"], readonly ["pebble", "Pebble"], readonly ["squircle", "Squircle"]];
5
- export declare const CHARACTER_SHAPES: readonly [readonly ["clippo", "Clippo"], readonly ["todd", "Todd"], readonly ["circle", "Circle"], readonly ["rounded_triangle", "Rounded triangle"], readonly ["capsule", "Capsule"], readonly ["rounded_head_two_ears", "Rounded head with two ears"], readonly ["six_lobed_flower", "Six lobed flower"], readonly ["heart", "Heart"], readonly ["four_lobed_butterfly", "Four lobed butterfly"], readonly ["circle_two_ears", "Circle with two ears"], readonly ["twelve_scalloped_rosette", "Twelve scalloped rosette"], readonly ["rounded_cube", "Hexagon"], readonly ["rounded_diamond", "Rounded diamond"], readonly ["slender", "Slender"], readonly ["pocket", "Pocket"], readonly ["petal", "Petal"], readonly ["star", "Star"], readonly ["cloud", "Cloud"], readonly ["shield", "Shield"], readonly ["pebble", "Pebble"], readonly ["squircle", "Squircle"]];
6
- export declare function isMigratedCharacterShape(id: string | undefined): boolean;
7
- /** The saved paper/blob fields remain readable; canonical shape IDs own new edits. */
8
- export declare function currentCharacterShape(config: AvatarConfig): string;
9
- /** Geometry-only view of one of the eight migrated contours. */
10
- export declare function characterShapeGeometry(config: AvatarConfig): AvatarConfig;
11
- /** Retain effective authored parts while preparing the next body. An old recipe
12
- * is promoted once, with its actual paint and contour rather than Felipe defaults.
13
- */
14
- export declare function materializeCharacter(config: AvatarConfig, selected?: Readonly<Record<string, string>>): AvatarCharacterConfig;
15
- /** All 21 bodies change the same character recipe. Named paint and explicit RGB
16
- * keep their precedence; a body never supplies a replacement color or face.
17
- */
18
- export declare function createConfigForShape(config: AvatarConfig, shape: string, selected?: Readonly<Record<string, string>>): AvatarConfig;
19
- //# sourceMappingURL=character-shapes.d.ts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"character-shapes.d.ts","sourceRoot":"","sources":["../../../../src/agent-avatar/character-shapes.ts"],"names":[],"mappings":"AACA,OAAO,KAAK,EAAE,qBAAqB,EAAE,MAAM,oBAAoB,CAAC;AAChE,OAAO,KAAK,EAAE,YAAY,EAAE,MAAM,SAAS,CAAC;AAE5C,eAAO,MAAM,uBAAuB,qlBAc1B,CAAC;AACX,eAAO,MAAM,yBAAyB,iQAS5B,CAAC;AACX,eAAO,MAAM,gBAAgB,20BAGnB,CAAC;AAEX,wBAAgB,wBAAwB,CAAC,EAAE,EAAE,MAAM,GAAG,SAAS,GAAG,OAAO,CAExE;AAED,sFAAsF;AACtF,wBAAgB,qBAAqB,CAAC,MAAM,EAAE,YAAY,GAAG,MAAM,CAUlE;AAED,gEAAgE;AAChE,wBAAgB,sBAAsB,CAAC,MAAM,EAAE,YAAY,GAAG,YAAY,CAUzE;AAED;;GAEG;AACH,wBAAgB,oBAAoB,CAClC,MAAM,EAAE,YAAY,EACpB,QAAQ,GAAE,QAAQ,CAAC,MAAM,CAAC,MAAM,EAAE,MAAM,CAAC,CAAM,GAC9C,qBAAqB,CA4BvB;AAED;;GAEG;AACH,wBAAgB,oBAAoB,CAClC,MAAM,EAAE,YAAY,EACpB,KAAK,EAAE,MAAM,EACb,QAAQ,GAAE,QAAQ,CAAC,MAAM,CAAC,MAAM,EAAE,MAAM,CAAC,CAAM,GAC9C,YAAY,CAcd"}
@@ -1,6 +0,0 @@
1
- /** Selector artwork only. The avatar itself uses Clippo's actual 3D meshes. */
2
- export declare function ClippoArtwork({ kind, opacity, }: {
3
- kind: 'shape' | 'eyes';
4
- opacity?: number;
5
- }): import("react/jsx-runtime").JSX.Element;
6
- //# sourceMappingURL=ClippoArtwork.d.ts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"ClippoArtwork.d.ts","sourceRoot":"","sources":["../../../../src/agent-creator/ClippoArtwork.tsx"],"names":[],"mappings":"AAGA,+EAA+E;AAC/E,wBAAgB,aAAa,CAAC,EAC5B,IAAI,EACJ,OAAW,GACZ,EAAE;IACD,IAAI,EAAE,OAAO,GAAG,MAAM,CAAC;IACvB,OAAO,CAAC,EAAE,MAAM,CAAC;CAClB,2CAsCA"}
@@ -1,5 +0,0 @@
1
- /** Static selector artwork; the runtime renders the fitted single-eye mesh. */
2
- export declare function CyclopsArtwork({ opacity }: {
3
- opacity?: number;
4
- }): import("react/jsx-runtime").JSX.Element;
5
- //# sourceMappingURL=CyclopsArtwork.d.ts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"CyclopsArtwork.d.ts","sourceRoot":"","sources":["../../../../src/agent-creator/CyclopsArtwork.tsx"],"names":[],"mappings":"AAEA,+EAA+E;AAC/E,wBAAgB,cAAc,CAAC,EAAE,OAAW,EAAE,EAAE;IAAE,OAAO,CAAC,EAAE,MAAM,CAAA;CAAE,2CAuBnE"}
@@ -1,6 +0,0 @@
1
- /** Static Todd body outline: 128 projected triangle intersections from the
2
- * original lime_frog mesh (2,502 vertices), with engine Y-up reflected for SVG.
3
- * This selector does not load the renderer or substitute another body shape.
4
- */
5
- export declare function ToddArtwork(): import("react/jsx-runtime").JSX.Element;
6
- //# sourceMappingURL=ToddArtwork.d.ts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"ToddArtwork.d.ts","sourceRoot":"","sources":["../../../../src/agent-creator/ToddArtwork.tsx"],"names":[],"mappings":"AAGA;;;GAGG;AACH,wBAAgB,WAAW,4CAgB1B"}
@@ -1,12 +0,0 @@
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;
@@ -1,122 +0,0 @@
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 = [
31
- ...NATIVE_CHARACTER_SHAPES,
32
- ...MIGRATED_CHARACTER_SHAPES,
33
- ] as const;
34
-
35
- export function isMigratedCharacterShape(id: string | undefined): boolean {
36
- return MIGRATED_CHARACTER_SHAPES.some(([shape]) => shape === id);
37
- }
38
-
39
- /** The saved paper/blob fields remain readable; canonical shape IDs own new edits. */
40
- export function currentCharacterShape(config: AvatarConfig): string {
41
- if (config.character?.selections?.shape)
42
- return config.character.selections.shape;
43
- const shape = config.family === 'fold' ? config.foldShape : config.shape;
44
- const equivalent: Partial<Record<string, string>> = {
45
- triangle: 'rounded_triangle',
46
- flower: 'six_lobed_flower',
47
- diamond: 'rounded_diamond',
48
- };
49
- return equivalent[shape] ?? shape;
50
- }
51
-
52
- /** Geometry-only view of one of the eight migrated contours. */
53
- export function characterShapeGeometry(config: AvatarConfig): AvatarConfig {
54
- const shape = config.character?.selections?.shape;
55
- if (!isMigratedCharacterShape(shape)) return config;
56
- return shape === 'pebble' || shape === 'squircle'
57
- ? { ...config, family: 'blob', shape }
58
- : {
59
- ...config,
60
- family: 'fold',
61
- foldShape: shape as AvatarConfig['foldShape'],
62
- };
63
- }
64
-
65
- /** Retain effective authored parts while preparing the next body. An old recipe
66
- * is promoted once, with its actual paint and contour rather than Felipe defaults.
67
- */
68
- export function materializeCharacter(
69
- config: AvatarConfig,
70
- selected: Readonly<Record<string, string>> = {},
71
- ): AvatarCharacterConfig {
72
- const saved = config.character;
73
- if (!saved || saved.preset === 'bloom')
74
- return {
75
- ...saved,
76
- preset: 'legacy',
77
- ...(saved?.bodyColor
78
- ? { bodyColor: saved.bodyColor }
79
- : !saved?.selections?.color
80
- ? { bodyColor: avatarHex(config) }
81
- : {}),
82
- selections: {
83
- shape: currentCharacterShape(config),
84
- eyes: 'oval',
85
- eyewear: 'none',
86
- accessory: 'none',
87
- ...saved?.selections,
88
- },
89
- };
90
- const defaults: NonNullable<AvatarCharacterConfig['selections']> = {};
91
- for (const part of ['eyes', 'eyewear', 'accessory'] as const)
92
- if (selected[part]) defaults[part] = selected[part];
93
- // These virtual parts are absent from the backing native catalog.
94
- if (!defaults.eyes && saved.preset === 'clippo') defaults.eyes = 'clippo';
95
- if (!defaults.eyes && saved.preset === 'lime_frog') defaults.eyes = 'todd';
96
- if (!defaults.accessory && saved.preset === 'blue_beret')
97
- defaults.accessory = 'felipe_beret';
98
- return { ...saved, selections: { ...defaults, ...saved.selections } };
99
- }
100
-
101
- /** All 21 bodies change the same character recipe. Named paint and explicit RGB
102
- * keep their precedence; a body never supplies a replacement color or face.
103
- */
104
- export function createConfigForShape(
105
- config: AvatarConfig,
106
- shape: string,
107
- selected: Readonly<Record<string, string>> = {},
108
- ): AvatarConfig {
109
- if (!CHARACTER_SHAPES.some(([id]) => id === shape))
110
- throw new Error('Unknown character shape.');
111
- const character = materializeCharacter(config, selected);
112
- if (!character.bodyColor && !character.selections?.color) {
113
- if (character.preset === 'clippo') character.bodyColor = '#999b9d';
114
- else if (selected.color)
115
- character.selections = { ...character.selections, color: selected.color };
116
- else if (selected.bodyColor) character.bodyColor = selected.bodyColor;
117
- }
118
- return characterShapeGeometry({
119
- ...config,
120
- character: { ...character, selections: { ...character.selections, shape } },
121
- });
122
- }