@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.
- package/assets/character-runtime/README.md +114 -19
- package/assets/character-runtime/authored-parts.mjs +754 -0
- package/assets/character-runtime/catalog-parts.mjs +362 -0
- package/assets/character-runtime/character-recipe.mjs +247 -0
- package/assets/character-runtime/clippo-geometry.mjs +679 -0
- package/assets/character-runtime/controller-mode.mjs +208 -0
- package/assets/character-runtime/cyclops-geometry.mjs +180 -0
- package/assets/character-runtime/legacy-engine.mjs +406 -54
- package/assets/character-runtime/legacy-geometry.mjs +242 -85
- package/assets/character-runtime/legacy-worker.mjs +82 -23
- package/assets/character-runtime/managed-avatar.mjs +12 -17
- package/assets/character-runtime/migrated-contours.mjs +2067 -0
- package/assets/character-runtime/migrated-faces.mjs +59 -0
- package/assets/character-runtime/pose-transition.mjs +523 -0
- package/assets/character-runtime/preparation-cache.mjs +60 -0
- package/assets/character-runtime/render-budget.mjs +5 -3
- package/assets/character-runtime/render-errors.mjs +180 -0
- package/assets/character-runtime/resolution.mjs +10 -0
- package/assets/character-runtime/runtime.mjs +744 -295
- package/assets/character-runtime/sha256.mjs +44 -0
- package/assets/character-runtime/shared-programs.mjs +534 -0
- package/assets/character-runtime/shared-surface.mjs +490 -0
- package/assets/character-runtime/shared-textures.mjs +420 -0
- package/assets/character-runtime/thumbnails/eyes/todd.png +0 -0
- package/docs/adoption-matrix.mdx +1 -1
- package/docs/agent-avatar.mdx +45 -7
- package/docs/agent-creator.mdx +13 -3
- package/lib/commonjs/agent-avatar/AgentAvatar.js +1 -1
- package/lib/commonjs/agent-avatar/AgentAvatar.js.map +1 -1
- package/lib/commonjs/agent-avatar/CharacterAvatar.js +2 -1
- package/lib/commonjs/agent-avatar/CharacterAvatar.js.map +1 -1
- package/lib/commonjs/agent-avatar/character-colors.js +19 -0
- package/lib/commonjs/agent-avatar/character-colors.js.map +1 -0
- package/lib/commonjs/agent-avatar/character-shapes.js +106 -0
- package/lib/commonjs/agent-avatar/character-shapes.js.map +1 -0
- package/lib/commonjs/agent-avatar/config-character.js +4 -0
- package/lib/commonjs/agent-avatar/config-character.js.map +1 -1
- package/lib/commonjs/agent-avatar/legacy-recipe.js +19 -6
- package/lib/commonjs/agent-avatar/legacy-recipe.js.map +1 -1
- package/lib/commonjs/agent-creator/AgentCreatorBase.js +67 -107
- package/lib/commonjs/agent-creator/AgentCreatorBase.js.map +1 -1
- package/lib/commonjs/agent-creator/CharacterControls.js +23 -5
- package/lib/commonjs/agent-creator/CharacterControls.js.map +1 -1
- package/lib/commonjs/agent-creator/ClippoArtwork.js +64 -0
- package/lib/commonjs/agent-creator/ClippoArtwork.js.map +1 -0
- package/lib/commonjs/agent-creator/CyclopsArtwork.js +46 -0
- package/lib/commonjs/agent-creator/CyclopsArtwork.js.map +1 -0
- package/lib/commonjs/agent-creator/EmotionPicker.js +8 -1
- package/lib/commonjs/agent-creator/EmotionPicker.js.map +1 -1
- package/lib/commonjs/agent-creator/ShapeSilhouette.js +8 -1
- package/lib/commonjs/agent-creator/ShapeSilhouette.js.map +1 -1
- package/lib/commonjs/agent-creator/ToddArtwork.js +30 -0
- package/lib/commonjs/agent-creator/ToddArtwork.js.map +1 -0
- package/lib/commonjs/agent-creator/constants.js +16 -17
- package/lib/commonjs/agent-creator/constants.js.map +1 -1
- package/lib/commonjs/agent-creator/messages.js +1 -1
- package/lib/commonjs/agent-creator/messages.js.map +1 -1
- package/lib/commonjs/locale/translations/ar.js +1 -1
- package/lib/commonjs/locale/translations/ar.js.map +1 -1
- package/lib/commonjs/locale/translations/bn.js +1 -1
- package/lib/commonjs/locale/translations/bn.js.map +1 -1
- package/lib/commonjs/locale/translations/ca.js +1 -1
- package/lib/commonjs/locale/translations/ca.js.map +1 -1
- package/lib/commonjs/locale/translations/de.js +1 -1
- package/lib/commonjs/locale/translations/de.js.map +1 -1
- package/lib/commonjs/locale/translations/es.js +1 -1
- package/lib/commonjs/locale/translations/es.js.map +1 -1
- package/lib/commonjs/locale/translations/fr.js +1 -1
- package/lib/commonjs/locale/translations/fr.js.map +1 -1
- package/lib/commonjs/locale/translations/hi.js +1 -1
- package/lib/commonjs/locale/translations/hi.js.map +1 -1
- package/lib/commonjs/locale/translations/id.js +1 -1
- package/lib/commonjs/locale/translations/id.js.map +1 -1
- package/lib/commonjs/locale/translations/it.js +1 -1
- package/lib/commonjs/locale/translations/it.js.map +1 -1
- package/lib/commonjs/locale/translations/ja.js +1 -1
- package/lib/commonjs/locale/translations/ja.js.map +1 -1
- package/lib/commonjs/locale/translations/pt.js +1 -1
- package/lib/commonjs/locale/translations/pt.js.map +1 -1
- package/lib/commonjs/locale/translations/ru.js +1 -1
- package/lib/commonjs/locale/translations/ru.js.map +1 -1
- package/lib/commonjs/locale/translations/tr.js +1 -1
- package/lib/commonjs/locale/translations/tr.js.map +1 -1
- package/lib/commonjs/locale/translations/zh.js +1 -1
- package/lib/commonjs/locale/translations/zh.js.map +1 -1
- package/lib/module/agent-avatar/AgentAvatar.js +1 -1
- package/lib/module/agent-avatar/AgentAvatar.js.map +1 -1
- package/lib/module/agent-avatar/CharacterAvatar.js +2 -1
- package/lib/module/agent-avatar/CharacterAvatar.js.map +1 -1
- package/lib/module/agent-avatar/character-colors.js +15 -0
- package/lib/module/agent-avatar/character-colors.js.map +1 -0
- package/lib/module/agent-avatar/character-shapes.js +97 -0
- package/lib/module/agent-avatar/character-shapes.js.map +1 -0
- package/lib/module/agent-avatar/config-character.js +4 -0
- package/lib/module/agent-avatar/config-character.js.map +1 -1
- package/lib/module/agent-avatar/legacy-recipe.js +19 -6
- package/lib/module/agent-avatar/legacy-recipe.js.map +1 -1
- package/lib/module/agent-creator/AgentCreatorBase.js +69 -109
- package/lib/module/agent-creator/AgentCreatorBase.js.map +1 -1
- package/lib/module/agent-creator/CharacterControls.js +24 -6
- package/lib/module/agent-creator/CharacterControls.js.map +1 -1
- package/lib/module/agent-creator/ClippoArtwork.js +60 -0
- package/lib/module/agent-creator/ClippoArtwork.js.map +1 -0
- package/lib/module/agent-creator/CyclopsArtwork.js +42 -0
- package/lib/module/agent-creator/CyclopsArtwork.js.map +1 -0
- package/lib/module/agent-creator/EmotionPicker.js +8 -1
- package/lib/module/agent-creator/EmotionPicker.js.map +1 -1
- package/lib/module/agent-creator/ShapeSilhouette.js +8 -1
- package/lib/module/agent-creator/ShapeSilhouette.js.map +1 -1
- package/lib/module/agent-creator/ToddArtwork.js +26 -0
- package/lib/module/agent-creator/ToddArtwork.js.map +1 -0
- package/lib/module/agent-creator/constants.js +8 -16
- package/lib/module/agent-creator/constants.js.map +1 -1
- package/lib/module/agent-creator/messages.js +1 -1
- package/lib/module/agent-creator/messages.js.map +1 -1
- package/lib/module/locale/translations/ar.js +1 -1
- package/lib/module/locale/translations/ar.js.map +1 -1
- package/lib/module/locale/translations/bn.js +1 -1
- package/lib/module/locale/translations/bn.js.map +1 -1
- package/lib/module/locale/translations/ca.js +1 -1
- package/lib/module/locale/translations/ca.js.map +1 -1
- package/lib/module/locale/translations/de.js +1 -1
- package/lib/module/locale/translations/de.js.map +1 -1
- package/lib/module/locale/translations/es.js +1 -1
- package/lib/module/locale/translations/es.js.map +1 -1
- package/lib/module/locale/translations/fr.js +1 -1
- package/lib/module/locale/translations/fr.js.map +1 -1
- package/lib/module/locale/translations/hi.js +1 -1
- package/lib/module/locale/translations/hi.js.map +1 -1
- package/lib/module/locale/translations/id.js +1 -1
- package/lib/module/locale/translations/id.js.map +1 -1
- package/lib/module/locale/translations/it.js +1 -1
- package/lib/module/locale/translations/it.js.map +1 -1
- package/lib/module/locale/translations/ja.js +1 -1
- package/lib/module/locale/translations/ja.js.map +1 -1
- package/lib/module/locale/translations/pt.js +1 -1
- package/lib/module/locale/translations/pt.js.map +1 -1
- package/lib/module/locale/translations/ru.js +1 -1
- package/lib/module/locale/translations/ru.js.map +1 -1
- package/lib/module/locale/translations/tr.js +1 -1
- package/lib/module/locale/translations/tr.js.map +1 -1
- package/lib/module/locale/translations/zh.js +1 -1
- package/lib/module/locale/translations/zh.js.map +1 -1
- package/lib/typescript/commonjs/agent-avatar/AgentAvatar.d.ts.map +1 -1
- package/lib/typescript/commonjs/agent-avatar/CharacterAvatar.d.ts.map +1 -1
- package/lib/typescript/commonjs/agent-avatar/character-colors.d.ts +13 -0
- package/lib/typescript/commonjs/agent-avatar/character-colors.d.ts.map +1 -0
- package/lib/typescript/commonjs/agent-avatar/character-shapes.d.ts +19 -0
- package/lib/typescript/commonjs/agent-avatar/character-shapes.d.ts.map +1 -0
- package/lib/typescript/commonjs/agent-avatar/config-character.d.ts +4 -0
- package/lib/typescript/commonjs/agent-avatar/config-character.d.ts.map +1 -1
- package/lib/typescript/commonjs/agent-avatar/legacy-recipe.d.ts +2 -10
- package/lib/typescript/commonjs/agent-avatar/legacy-recipe.d.ts.map +1 -1
- package/lib/typescript/commonjs/agent-creator/AgentCreatorBase.d.ts.map +1 -1
- package/lib/typescript/commonjs/agent-creator/CharacterControls.d.ts +2 -1
- package/lib/typescript/commonjs/agent-creator/CharacterControls.d.ts.map +1 -1
- package/lib/typescript/commonjs/agent-creator/ClippoArtwork.d.ts +6 -0
- package/lib/typescript/commonjs/agent-creator/ClippoArtwork.d.ts.map +1 -0
- package/lib/typescript/commonjs/agent-creator/CyclopsArtwork.d.ts +5 -0
- package/lib/typescript/commonjs/agent-creator/CyclopsArtwork.d.ts.map +1 -0
- package/lib/typescript/commonjs/agent-creator/EmotionPicker.d.ts +1 -0
- package/lib/typescript/commonjs/agent-creator/EmotionPicker.d.ts.map +1 -1
- package/lib/typescript/commonjs/agent-creator/ShapeSilhouette.d.ts.map +1 -1
- package/lib/typescript/commonjs/agent-creator/ToddArtwork.d.ts +6 -0
- package/lib/typescript/commonjs/agent-creator/ToddArtwork.d.ts.map +1 -0
- package/lib/typescript/commonjs/agent-creator/constants.d.ts +7 -15
- package/lib/typescript/commonjs/agent-creator/constants.d.ts.map +1 -1
- package/lib/typescript/commonjs/agent-creator/messages.d.ts.map +1 -1
- package/lib/typescript/commonjs/locale/translations/ar.d.ts.map +1 -1
- package/lib/typescript/commonjs/locale/translations/bn.d.ts.map +1 -1
- package/lib/typescript/commonjs/locale/translations/ca.d.ts.map +1 -1
- package/lib/typescript/commonjs/locale/translations/de.d.ts.map +1 -1
- package/lib/typescript/commonjs/locale/translations/es.d.ts.map +1 -1
- package/lib/typescript/commonjs/locale/translations/fr.d.ts.map +1 -1
- package/lib/typescript/commonjs/locale/translations/hi.d.ts.map +1 -1
- package/lib/typescript/commonjs/locale/translations/id.d.ts.map +1 -1
- package/lib/typescript/commonjs/locale/translations/it.d.ts.map +1 -1
- package/lib/typescript/commonjs/locale/translations/ja.d.ts.map +1 -1
- package/lib/typescript/commonjs/locale/translations/pt.d.ts.map +1 -1
- package/lib/typescript/commonjs/locale/translations/ru.d.ts.map +1 -1
- package/lib/typescript/commonjs/locale/translations/tr.d.ts.map +1 -1
- package/lib/typescript/commonjs/locale/translations/zh.d.ts.map +1 -1
- package/lib/typescript/module/agent-avatar/AgentAvatar.d.ts.map +1 -1
- package/lib/typescript/module/agent-avatar/CharacterAvatar.d.ts.map +1 -1
- package/lib/typescript/module/agent-avatar/character-colors.d.ts +13 -0
- package/lib/typescript/module/agent-avatar/character-colors.d.ts.map +1 -0
- package/lib/typescript/module/agent-avatar/character-shapes.d.ts +19 -0
- package/lib/typescript/module/agent-avatar/character-shapes.d.ts.map +1 -0
- package/lib/typescript/module/agent-avatar/config-character.d.ts +4 -0
- package/lib/typescript/module/agent-avatar/config-character.d.ts.map +1 -1
- package/lib/typescript/module/agent-avatar/legacy-recipe.d.ts +2 -10
- package/lib/typescript/module/agent-avatar/legacy-recipe.d.ts.map +1 -1
- package/lib/typescript/module/agent-creator/AgentCreatorBase.d.ts.map +1 -1
- package/lib/typescript/module/agent-creator/CharacterControls.d.ts +2 -1
- package/lib/typescript/module/agent-creator/CharacterControls.d.ts.map +1 -1
- package/lib/typescript/module/agent-creator/ClippoArtwork.d.ts +6 -0
- package/lib/typescript/module/agent-creator/ClippoArtwork.d.ts.map +1 -0
- package/lib/typescript/module/agent-creator/CyclopsArtwork.d.ts +5 -0
- package/lib/typescript/module/agent-creator/CyclopsArtwork.d.ts.map +1 -0
- package/lib/typescript/module/agent-creator/EmotionPicker.d.ts +1 -0
- package/lib/typescript/module/agent-creator/EmotionPicker.d.ts.map +1 -1
- package/lib/typescript/module/agent-creator/ShapeSilhouette.d.ts.map +1 -1
- package/lib/typescript/module/agent-creator/ToddArtwork.d.ts +6 -0
- package/lib/typescript/module/agent-creator/ToddArtwork.d.ts.map +1 -0
- package/lib/typescript/module/agent-creator/constants.d.ts +7 -15
- package/lib/typescript/module/agent-creator/constants.d.ts.map +1 -1
- package/lib/typescript/module/agent-creator/messages.d.ts.map +1 -1
- package/lib/typescript/module/locale/translations/ar.d.ts.map +1 -1
- package/lib/typescript/module/locale/translations/bn.d.ts.map +1 -1
- package/lib/typescript/module/locale/translations/ca.d.ts.map +1 -1
- package/lib/typescript/module/locale/translations/de.d.ts.map +1 -1
- package/lib/typescript/module/locale/translations/es.d.ts.map +1 -1
- package/lib/typescript/module/locale/translations/fr.d.ts.map +1 -1
- package/lib/typescript/module/locale/translations/hi.d.ts.map +1 -1
- package/lib/typescript/module/locale/translations/id.d.ts.map +1 -1
- package/lib/typescript/module/locale/translations/it.d.ts.map +1 -1
- package/lib/typescript/module/locale/translations/ja.d.ts.map +1 -1
- package/lib/typescript/module/locale/translations/pt.d.ts.map +1 -1
- package/lib/typescript/module/locale/translations/ru.d.ts.map +1 -1
- package/lib/typescript/module/locale/translations/tr.d.ts.map +1 -1
- package/lib/typescript/module/locale/translations/zh.d.ts.map +1 -1
- package/package.json +1 -1
- package/src/agent-avatar/AgentAvatar.tsx +1 -5
- package/src/agent-avatar/CharacterAvatar.tsx +6 -1
- package/src/agent-avatar/character-colors.ts +12 -0
- package/src/agent-avatar/character-shapes.ts +116 -0
- package/src/agent-avatar/config-character.ts +14 -0
- package/src/agent-avatar/legacy-recipe.ts +21 -6
- package/src/agent-creator/AgentCreatorBase.tsx +110 -123
- package/src/agent-creator/CharacterControls.tsx +32 -7
- package/src/agent-creator/ClippoArtwork.tsx +44 -0
- package/src/agent-creator/CyclopsArtwork.tsx +21 -0
- package/src/agent-creator/EmotionPicker.tsx +18 -3
- package/src/agent-creator/ShapeSilhouette.tsx +14 -1
- package/src/agent-creator/ToddArtwork.tsx +25 -0
- package/src/agent-creator/constants.ts +8 -25
- package/src/agent-creator/messages.ts +2 -1
- package/src/locale/translations/ar.ts +2 -1
- package/src/locale/translations/bn.ts +2 -1
- package/src/locale/translations/ca.ts +2 -1
- package/src/locale/translations/de.ts +2 -1
- package/src/locale/translations/es.ts +2 -1
- package/src/locale/translations/fr.ts +2 -1
- package/src/locale/translations/hi.ts +2 -1
- package/src/locale/translations/id.ts +2 -1
- package/src/locale/translations/it.ts +2 -1
- package/src/locale/translations/ja.ts +2 -1
- package/src/locale/translations/pt.ts +2 -1
- package/src/locale/translations/ru.ts +2 -1
- package/src/locale/translations/tr.ts +2 -1
- package/src/locale/translations/zh.ts +2 -1
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"ar.d.ts","sourceRoot":"","sources":["../../../../../src/locale/translations/ar.ts"],"names":[],"mappings":"AAGA,OAAO,KAAK,EAAE,YAAY,EAAE,MAAM,SAAS,CAAC;
|
|
1
|
+
{"version":3,"file":"ar.d.ts","sourceRoot":"","sources":["../../../../../src/locale/translations/ar.ts"],"names":[],"mappings":"AAGA,OAAO,KAAK,EAAE,YAAY,EAAE,MAAM,SAAS,CAAC;AA2mG5C,QAAA,MAAM,YAAY,EAAE,YA8MnB,CAAC;AAEF,eAAe,YAAY,CAAC"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"bn.d.ts","sourceRoot":"","sources":["../../../../../src/locale/translations/bn.ts"],"names":[],"mappings":"AAGA,OAAO,KAAK,EAAE,YAAY,EAAE,MAAM,SAAS,CAAC;
|
|
1
|
+
{"version":3,"file":"bn.d.ts","sourceRoot":"","sources":["../../../../../src/locale/translations/bn.ts"],"names":[],"mappings":"AAGA,OAAO,KAAK,EAAE,YAAY,EAAE,MAAM,SAAS,CAAC;AAipF5C,QAAA,MAAM,YAAY,EAAE,YA8MnB,CAAC;AAEF,eAAe,YAAY,CAAC"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"ca.d.ts","sourceRoot":"","sources":["../../../../../src/locale/translations/ca.ts"],"names":[],"mappings":"AAGA,OAAO,KAAK,EAAE,YAAY,EAAE,MAAM,SAAS,CAAC;
|
|
1
|
+
{"version":3,"file":"ca.d.ts","sourceRoot":"","sources":["../../../../../src/locale/translations/ca.ts"],"names":[],"mappings":"AAGA,OAAO,KAAK,EAAE,YAAY,EAAE,MAAM,SAAS,CAAC;AA6uF5C,QAAA,MAAM,YAAY,EAAE,YA8MnB,CAAC;AAEF,eAAe,YAAY,CAAC"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"de.d.ts","sourceRoot":"","sources":["../../../../../src/locale/translations/de.ts"],"names":[],"mappings":"AAGA,OAAO,KAAK,EAAE,YAAY,EAAE,MAAM,SAAS,CAAC;
|
|
1
|
+
{"version":3,"file":"de.d.ts","sourceRoot":"","sources":["../../../../../src/locale/translations/de.ts"],"names":[],"mappings":"AAGA,OAAO,KAAK,EAAE,YAAY,EAAE,MAAM,SAAS,CAAC;AAkxF5C,QAAA,MAAM,YAAY,EAAE,YA8MnB,CAAC;AAEF,eAAe,YAAY,CAAC"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"es.d.ts","sourceRoot":"","sources":["../../../../../src/locale/translations/es.ts"],"names":[],"mappings":"AAGA,OAAO,KAAK,EAAE,YAAY,EAAE,MAAM,SAAS,CAAC;
|
|
1
|
+
{"version":3,"file":"es.d.ts","sourceRoot":"","sources":["../../../../../src/locale/translations/es.ts"],"names":[],"mappings":"AAGA,OAAO,KAAK,EAAE,YAAY,EAAE,MAAM,SAAS,CAAC;AAywF5C,QAAA,MAAM,YAAY,EAAE,YA8MnB,CAAC;AAEF,eAAe,YAAY,CAAC"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"fr.d.ts","sourceRoot":"","sources":["../../../../../src/locale/translations/fr.ts"],"names":[],"mappings":"AAGA,OAAO,KAAK,EAAE,YAAY,EAAE,MAAM,SAAS,CAAC;
|
|
1
|
+
{"version":3,"file":"fr.d.ts","sourceRoot":"","sources":["../../../../../src/locale/translations/fr.ts"],"names":[],"mappings":"AAGA,OAAO,KAAK,EAAE,YAAY,EAAE,MAAM,SAAS,CAAC;AA4xF5C,QAAA,MAAM,YAAY,EAAE,YA8MnB,CAAC;AAEF,eAAe,YAAY,CAAC"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"hi.d.ts","sourceRoot":"","sources":["../../../../../src/locale/translations/hi.ts"],"names":[],"mappings":"AAGA,OAAO,KAAK,EAAE,YAAY,EAAE,MAAM,SAAS,CAAC;
|
|
1
|
+
{"version":3,"file":"hi.d.ts","sourceRoot":"","sources":["../../../../../src/locale/translations/hi.ts"],"names":[],"mappings":"AAGA,OAAO,KAAK,EAAE,YAAY,EAAE,MAAM,SAAS,CAAC;AAoqF5C,QAAA,MAAM,YAAY,EAAE,YA6MnB,CAAC;AAEF,eAAe,YAAY,CAAC"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"id.d.ts","sourceRoot":"","sources":["../../../../../src/locale/translations/id.ts"],"names":[],"mappings":"AAGA,OAAO,KAAK,EAAE,YAAY,EAAE,MAAM,SAAS,CAAC;
|
|
1
|
+
{"version":3,"file":"id.d.ts","sourceRoot":"","sources":["../../../../../src/locale/translations/id.ts"],"names":[],"mappings":"AAGA,OAAO,KAAK,EAAE,YAAY,EAAE,MAAM,SAAS,CAAC;AAiuF5C,QAAA,MAAM,YAAY,EAAE,YA8MnB,CAAC;AAEF,eAAe,YAAY,CAAC"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"it.d.ts","sourceRoot":"","sources":["../../../../../src/locale/translations/it.ts"],"names":[],"mappings":"AAGA,OAAO,KAAK,EAAE,YAAY,EAAE,MAAM,SAAS,CAAC;
|
|
1
|
+
{"version":3,"file":"it.d.ts","sourceRoot":"","sources":["../../../../../src/locale/translations/it.ts"],"names":[],"mappings":"AAGA,OAAO,KAAK,EAAE,YAAY,EAAE,MAAM,SAAS,CAAC;AA6wF5C,QAAA,MAAM,YAAY,EAAE,YA8MnB,CAAC;AAEF,eAAe,YAAY,CAAC"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"ja.d.ts","sourceRoot":"","sources":["../../../../../src/locale/translations/ja.ts"],"names":[],"mappings":"AAGA,OAAO,KAAK,EAAE,YAAY,EAAE,MAAM,SAAS,CAAC;
|
|
1
|
+
{"version":3,"file":"ja.d.ts","sourceRoot":"","sources":["../../../../../src/locale/translations/ja.ts"],"names":[],"mappings":"AAGA,OAAO,KAAK,EAAE,YAAY,EAAE,MAAM,SAAS,CAAC;AAkrF5C,QAAA,MAAM,YAAY,EAAE,YAiNnB,CAAC;AAEF,eAAe,YAAY,CAAC"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"pt.d.ts","sourceRoot":"","sources":["../../../../../src/locale/translations/pt.ts"],"names":[],"mappings":"AAGA,OAAO,KAAK,EAAE,YAAY,EAAE,MAAM,SAAS,CAAC;
|
|
1
|
+
{"version":3,"file":"pt.d.ts","sourceRoot":"","sources":["../../../../../src/locale/translations/pt.ts"],"names":[],"mappings":"AAGA,OAAO,KAAK,EAAE,YAAY,EAAE,MAAM,SAAS,CAAC;AA4xF5C,QAAA,MAAM,YAAY,EAAE,YA6MnB,CAAC;AAEF,eAAe,YAAY,CAAC"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"ru.d.ts","sourceRoot":"","sources":["../../../../../src/locale/translations/ru.ts"],"names":[],"mappings":"AAGA,OAAO,KAAK,EAAE,YAAY,EAAE,MAAM,SAAS,CAAC;
|
|
1
|
+
{"version":3,"file":"ru.d.ts","sourceRoot":"","sources":["../../../../../src/locale/translations/ru.ts"],"names":[],"mappings":"AAGA,OAAO,KAAK,EAAE,YAAY,EAAE,MAAM,SAAS,CAAC;AA2iG5C,QAAA,MAAM,YAAY,EAAE,YA8MnB,CAAC;AAEF,eAAe,YAAY,CAAC"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"tr.d.ts","sourceRoot":"","sources":["../../../../../src/locale/translations/tr.ts"],"names":[],"mappings":"AAGA,OAAO,KAAK,EAAE,YAAY,EAAE,MAAM,SAAS,CAAC;
|
|
1
|
+
{"version":3,"file":"tr.d.ts","sourceRoot":"","sources":["../../../../../src/locale/translations/tr.ts"],"names":[],"mappings":"AAGA,OAAO,KAAK,EAAE,YAAY,EAAE,MAAM,SAAS,CAAC;AAqsF5C,QAAA,MAAM,YAAY,EAAE,YA6MnB,CAAC;AAEF,eAAe,YAAY,CAAC"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"zh.d.ts","sourceRoot":"","sources":["../../../../../src/locale/translations/zh.ts"],"names":[],"mappings":"AAGA,OAAO,KAAK,EAAE,YAAY,EAAE,MAAM,SAAS,CAAC;
|
|
1
|
+
{"version":3,"file":"zh.d.ts","sourceRoot":"","sources":["../../../../../src/locale/translations/zh.ts"],"names":[],"mappings":"AAGA,OAAO,KAAK,EAAE,YAAY,EAAE,MAAM,SAAS,CAAC;AAymF5C,QAAA,MAAM,YAAY,EAAE,YA6MnB,CAAC;AAEF,eAAe,YAAY,CAAC"}
|
package/package.json
CHANGED
|
@@ -10,9 +10,5 @@ export const AgentAvatar = memo(function AgentAvatar(props: AgentAvatarProps) {
|
|
|
10
10
|
const { runtimeUrl } = useContext(CharacterRuntimeContext);
|
|
11
11
|
const beta = props.config.character && props.config.character.preset !== 'bloom';
|
|
12
12
|
const legacy = runtimeUrl && !legacyRecipeUnsupported(props.config);
|
|
13
|
-
return beta || legacy ?
|
|
14
|
-
<CharacterAvatar key={beta ? 'character' : 'legacy'} {...props} />
|
|
15
|
-
) : (
|
|
16
|
-
<ProceduralAvatar {...props} />
|
|
17
|
-
);
|
|
13
|
+
return beta || legacy ? <CharacterAvatar {...props} /> : <ProceduralAvatar {...props} />;
|
|
18
14
|
});
|
|
@@ -9,6 +9,7 @@ import { characterHtml, scriptJson } from './character-html';
|
|
|
9
9
|
import { loadCharacterRuntime } from './character-runtime-module';
|
|
10
10
|
import { characterWebView, type CharacterWebViewHandle } from './character-webview';
|
|
11
11
|
import { legacyRecipe } from './legacy-recipe';
|
|
12
|
+
import { isMigratedCharacterShape } from './character-shapes';
|
|
12
13
|
import { AGENT_AVATAR_MESSAGES } from './messages';
|
|
13
14
|
import type { AgentAvatarProps } from './types';
|
|
14
15
|
|
|
@@ -191,7 +192,11 @@ export function CharacterAvatar(props: AgentAvatarProps) {
|
|
|
191
192
|
useEffect(() => setFailed(false), [runtimeUrl, config.character]);
|
|
192
193
|
const legacy = useMemo(
|
|
193
194
|
() =>
|
|
194
|
-
!config.character ||
|
|
195
|
+
!config.character ||
|
|
196
|
+
config.character.preset === 'bloom' ||
|
|
197
|
+
isMigratedCharacterShape(config.character.selections?.shape)
|
|
198
|
+
? legacyRecipe(config)
|
|
199
|
+
: undefined,
|
|
195
200
|
[config],
|
|
196
201
|
);
|
|
197
202
|
const value = useMemo(
|
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
/** RGB swatches returned by the recovered engine's Color catalog. */
|
|
2
|
+
export const CHARACTER_COLORS = {
|
|
3
|
+
pink: '#fa70ab',
|
|
4
|
+
orchid: '#dd6adc',
|
|
5
|
+
violet: '#a25bff',
|
|
6
|
+
blue: '#4778ff',
|
|
7
|
+
cyan: '#00b1ff',
|
|
8
|
+
teal: '#04bb9f',
|
|
9
|
+
lime: '#b6d80b',
|
|
10
|
+
yellow: '#ffcc38',
|
|
11
|
+
coral: '#ff8066',
|
|
12
|
+
} as const;
|
|
@@ -0,0 +1,116 @@
|
|
|
1
|
+
import { avatarHex } from './avatar-color';
|
|
2
|
+
import type { AvatarCharacterConfig } from './config-character';
|
|
3
|
+
import type { AvatarConfig } from './model';
|
|
4
|
+
|
|
5
|
+
export const NATIVE_CHARACTER_SHAPES = [
|
|
6
|
+
['clippo', 'Clippo'],
|
|
7
|
+
['todd', 'Todd'],
|
|
8
|
+
['circle', 'Circle'],
|
|
9
|
+
['rounded_triangle', 'Rounded triangle'],
|
|
10
|
+
['capsule', 'Capsule'],
|
|
11
|
+
['rounded_head_two_ears', 'Rounded head with two ears'],
|
|
12
|
+
['six_lobed_flower', 'Six lobed flower'],
|
|
13
|
+
['heart', 'Heart'],
|
|
14
|
+
['four_lobed_butterfly', 'Four lobed butterfly'],
|
|
15
|
+
['circle_two_ears', 'Circle with two ears'],
|
|
16
|
+
['twelve_scalloped_rosette', 'Twelve scalloped rosette'],
|
|
17
|
+
['rounded_cube', 'Hexagon'],
|
|
18
|
+
['rounded_diamond', 'Rounded diamond'],
|
|
19
|
+
] as const;
|
|
20
|
+
export const MIGRATED_CHARACTER_SHAPES = [
|
|
21
|
+
['slender', 'Slender'],
|
|
22
|
+
['pocket', 'Pocket'],
|
|
23
|
+
['petal', 'Petal'],
|
|
24
|
+
['star', 'Star'],
|
|
25
|
+
['cloud', 'Cloud'],
|
|
26
|
+
['shield', 'Shield'],
|
|
27
|
+
['pebble', 'Pebble'],
|
|
28
|
+
['squircle', 'Squircle'],
|
|
29
|
+
] as const;
|
|
30
|
+
export const CHARACTER_SHAPES = [...NATIVE_CHARACTER_SHAPES, ...MIGRATED_CHARACTER_SHAPES] as const;
|
|
31
|
+
|
|
32
|
+
export function isMigratedCharacterShape(id: string | undefined): boolean {
|
|
33
|
+
return MIGRATED_CHARACTER_SHAPES.some(([shape]) => shape === id);
|
|
34
|
+
}
|
|
35
|
+
|
|
36
|
+
/** The saved paper/blob fields remain readable; canonical shape IDs own new edits. */
|
|
37
|
+
export function currentCharacterShape(config: AvatarConfig): string {
|
|
38
|
+
if (config.character?.selections?.shape) return config.character.selections.shape;
|
|
39
|
+
const shape = config.family === 'fold' ? config.foldShape : config.shape;
|
|
40
|
+
const equivalent: Partial<Record<string, string>> = {
|
|
41
|
+
triangle: 'rounded_triangle',
|
|
42
|
+
flower: 'six_lobed_flower',
|
|
43
|
+
diamond: 'rounded_diamond',
|
|
44
|
+
};
|
|
45
|
+
return equivalent[shape] ?? shape;
|
|
46
|
+
}
|
|
47
|
+
|
|
48
|
+
/** Geometry-only view of one of the eight migrated contours. */
|
|
49
|
+
export function characterShapeGeometry(config: AvatarConfig): AvatarConfig {
|
|
50
|
+
const shape = config.character?.selections?.shape;
|
|
51
|
+
if (!isMigratedCharacterShape(shape)) return config;
|
|
52
|
+
return shape === 'pebble' || shape === 'squircle'
|
|
53
|
+
? { ...config, family: 'blob', shape }
|
|
54
|
+
: {
|
|
55
|
+
...config,
|
|
56
|
+
family: 'fold',
|
|
57
|
+
foldShape: shape as AvatarConfig['foldShape'],
|
|
58
|
+
};
|
|
59
|
+
}
|
|
60
|
+
|
|
61
|
+
/** Retain effective authored parts while preparing the next body. An old recipe
|
|
62
|
+
* is promoted once, with its actual paint and contour rather than Felipe defaults.
|
|
63
|
+
*/
|
|
64
|
+
export function materializeCharacter(
|
|
65
|
+
config: AvatarConfig,
|
|
66
|
+
selected: Readonly<Record<string, string>> = {},
|
|
67
|
+
): AvatarCharacterConfig {
|
|
68
|
+
const saved = config.character;
|
|
69
|
+
if (!saved || saved.preset === 'bloom')
|
|
70
|
+
return {
|
|
71
|
+
...saved,
|
|
72
|
+
preset: 'legacy',
|
|
73
|
+
...(saved?.bodyColor
|
|
74
|
+
? { bodyColor: saved.bodyColor }
|
|
75
|
+
: !saved?.selections?.color
|
|
76
|
+
? { bodyColor: avatarHex(config) }
|
|
77
|
+
: {}),
|
|
78
|
+
selections: {
|
|
79
|
+
shape: currentCharacterShape(config),
|
|
80
|
+
eyes: 'oval',
|
|
81
|
+
eyewear: 'none',
|
|
82
|
+
accessory: 'none',
|
|
83
|
+
...saved?.selections,
|
|
84
|
+
},
|
|
85
|
+
};
|
|
86
|
+
const defaults: NonNullable<AvatarCharacterConfig['selections']> = {};
|
|
87
|
+
for (const part of ['eyes', 'eyewear', 'accessory'] as const)
|
|
88
|
+
if (selected[part]) defaults[part] = selected[part];
|
|
89
|
+
// These virtual parts are absent from the backing native catalog.
|
|
90
|
+
if (!defaults.eyes && saved.preset === 'clippo') defaults.eyes = 'clippo';
|
|
91
|
+
if (!defaults.eyes && saved.preset === 'lime_frog') defaults.eyes = 'todd';
|
|
92
|
+
if (!defaults.accessory && saved.preset === 'blue_beret') defaults.accessory = 'felipe_beret';
|
|
93
|
+
return { ...saved, selections: { ...defaults, ...saved.selections } };
|
|
94
|
+
}
|
|
95
|
+
|
|
96
|
+
/** All 21 bodies change the same character recipe. Named paint and explicit RGB
|
|
97
|
+
* keep their precedence; a body never supplies a replacement color or face.
|
|
98
|
+
*/
|
|
99
|
+
export function createConfigForShape(
|
|
100
|
+
config: AvatarConfig,
|
|
101
|
+
shape: string,
|
|
102
|
+
selected: Readonly<Record<string, string>> = {},
|
|
103
|
+
): AvatarConfig {
|
|
104
|
+
if (!CHARACTER_SHAPES.some(([id]) => id === shape)) throw new Error('Unknown character shape.');
|
|
105
|
+
const character = materializeCharacter(config, selected);
|
|
106
|
+
if (!character.bodyColor && !character.selections?.color) {
|
|
107
|
+
if (character.preset === 'clippo') character.bodyColor = '#999b9d';
|
|
108
|
+
else if (selected.color)
|
|
109
|
+
character.selections = { ...character.selections, color: selected.color };
|
|
110
|
+
else if (selected.bodyColor) character.bodyColor = selected.bodyColor;
|
|
111
|
+
}
|
|
112
|
+
return characterShapeGeometry({
|
|
113
|
+
...config,
|
|
114
|
+
character: { ...character, selections: { ...character.selections, shape } },
|
|
115
|
+
});
|
|
116
|
+
}
|
|
@@ -2,10 +2,14 @@
|
|
|
2
2
|
export type AvatarCharacterCategory = 'shape' | 'color' | 'eyes' | 'eyewear' | 'accessory';
|
|
3
3
|
|
|
4
4
|
export type AvatarCharacterConfig = {
|
|
5
|
+
/** Named catalog preset, including Clippo (`clippo`), or a saved renderer ID. */
|
|
5
6
|
preset: string;
|
|
7
|
+
/** Clippo's open wire body and ring eyes are independently selectable with ID `clippo`. */
|
|
6
8
|
selections?: Partial<Record<AvatarCharacterCategory, string>>;
|
|
7
9
|
/** Custom body RGB accepted by the original renderer, stored as lowercase #RRGGBB. */
|
|
8
10
|
bodyColor?: string;
|
|
11
|
+
/** @deprecated Retained when reading saved recipes; ignored by the renderer. Each shape owns its eye layout. */
|
|
12
|
+
eyeSpacing?: number;
|
|
9
13
|
};
|
|
10
14
|
|
|
11
15
|
const categories: readonly AvatarCharacterCategory[] = [
|
|
@@ -25,6 +29,16 @@ export function parseCharacterConfig(value: unknown): AvatarCharacterConfig {
|
|
|
25
29
|
const candidate = value as Record<string, unknown>;
|
|
26
30
|
if (!validId(candidate.preset)) throw new Error('Invalid character preset.');
|
|
27
31
|
const result: AvatarCharacterConfig = { preset: candidate.preset };
|
|
32
|
+
if (candidate.eyeSpacing !== undefined) {
|
|
33
|
+
if (
|
|
34
|
+
typeof candidate.eyeSpacing !== 'number' ||
|
|
35
|
+
!Number.isFinite(candidate.eyeSpacing) ||
|
|
36
|
+
candidate.eyeSpacing < 0.5 ||
|
|
37
|
+
candidate.eyeSpacing > 1.5
|
|
38
|
+
)
|
|
39
|
+
throw new Error('Invalid character eye spacing.');
|
|
40
|
+
result.eyeSpacing = candidate.eyeSpacing;
|
|
41
|
+
}
|
|
28
42
|
if (candidate.bodyColor !== undefined) {
|
|
29
43
|
if (
|
|
30
44
|
typeof candidate.bodyColor !== 'string' ||
|
|
@@ -1,3 +1,5 @@
|
|
|
1
|
+
import { CHARACTER_COLORS } from './character-colors';
|
|
2
|
+
import { characterShapeGeometry, isMigratedCharacterShape } from './character-shapes';
|
|
1
3
|
import { avatarHex } from './avatar-color';
|
|
2
4
|
import { legacyContours } from './legacy-contours';
|
|
3
5
|
import type { AvatarConfig } from './model';
|
|
@@ -9,12 +11,14 @@ export type LegacyRecipe = {
|
|
|
9
11
|
points?: Point[];
|
|
10
12
|
shape?: string;
|
|
11
13
|
eyes: string;
|
|
14
|
+
eyeSpacing?: number;
|
|
12
15
|
selections?: Pick<NonNullable<AvatarCharacterConfig['selections']>, 'eyewear' | 'accessory'>;
|
|
13
16
|
patch: { bodyColor: string };
|
|
14
17
|
};
|
|
15
18
|
|
|
16
19
|
/** Saved unsupported artwork stays readable without pretending it was migrated. */
|
|
17
20
|
export function legacyRecipeUnsupported(config: AvatarConfig): boolean {
|
|
21
|
+
if (isMigratedCharacterShape(config.character?.selections?.shape)) return false;
|
|
18
22
|
return config.family === 'alien' || config.family === 'mascot' || !config.face;
|
|
19
23
|
}
|
|
20
24
|
|
|
@@ -66,6 +70,7 @@ export function radialContour(polygons: Point[][], samples = 256): Point[] {
|
|
|
66
70
|
|
|
67
71
|
/** Shared capability identity for the editor and the legacy engine adapter. */
|
|
68
72
|
export function legacyCharacterRecipe(config: AvatarConfig) {
|
|
73
|
+
if (config.character && config.character.preset !== 'bloom') return config.character;
|
|
69
74
|
const customization = config.character?.preset === 'bloom' ? config.character : undefined;
|
|
70
75
|
return {
|
|
71
76
|
preset: 'legacy',
|
|
@@ -77,7 +82,11 @@ export function legacyCharacterRecipe(config: AvatarConfig) {
|
|
|
77
82
|
? { accessory: customization.selections.accessory }
|
|
78
83
|
: {}),
|
|
79
84
|
},
|
|
80
|
-
bodyColor:
|
|
85
|
+
bodyColor:
|
|
86
|
+
customization?.bodyColor ??
|
|
87
|
+
CHARACTER_COLORS[customization?.selections?.color as keyof typeof CHARACTER_COLORS] ??
|
|
88
|
+
avatarHex(config),
|
|
89
|
+
...(customization?.eyeSpacing !== undefined ? { eyeSpacing: customization.eyeSpacing } : {}),
|
|
81
90
|
};
|
|
82
91
|
}
|
|
83
92
|
|
|
@@ -87,12 +96,18 @@ export function legacyCharacterRecipe(config: AvatarConfig) {
|
|
|
87
96
|
*/
|
|
88
97
|
export function legacyRecipe(config: AvatarConfig, samples = 256): LegacyRecipe {
|
|
89
98
|
if (legacyRecipeUnsupported(config)) throw new Error('Unsupported legacy 3D recipe');
|
|
90
|
-
const
|
|
99
|
+
const geometry = characterShapeGeometry(config);
|
|
100
|
+
const canonical = config.character && config.character.preset !== 'bloom';
|
|
101
|
+
const selectedShape = canonical ? config.character?.selections?.shape : undefined;
|
|
102
|
+
const shape = isMigratedCharacterShape(selectedShape)
|
|
103
|
+
? undefined
|
|
104
|
+
: (selectedShape ?? legacyNativeShape(geometry));
|
|
91
105
|
const recipe = legacyCharacterRecipe(config);
|
|
92
|
-
const { eyewear, accessory } = recipe.selections;
|
|
106
|
+
const { eyewear, accessory } = recipe.selections ?? {};
|
|
93
107
|
return {
|
|
94
|
-
...(shape ? { shape } : { points: radialContour(legacyContours(
|
|
95
|
-
eyes: recipe.selections
|
|
108
|
+
...(shape ? { shape } : { points: radialContour(legacyContours(geometry), samples) }),
|
|
109
|
+
eyes: recipe.selections?.eyes ?? 'oval',
|
|
110
|
+
...(recipe.eyeSpacing !== undefined ? { eyeSpacing: recipe.eyeSpacing } : {}),
|
|
96
111
|
...(eyewear || accessory
|
|
97
112
|
? {
|
|
98
113
|
selections: {
|
|
@@ -101,6 +116,6 @@ export function legacyRecipe(config: AvatarConfig, samples = 256): LegacyRecipe
|
|
|
101
116
|
},
|
|
102
117
|
}
|
|
103
118
|
: {}),
|
|
104
|
-
patch: { bodyColor: recipe.bodyColor },
|
|
119
|
+
patch: { bodyColor: recipe.bodyColor ?? avatarHex(config) },
|
|
105
120
|
};
|
|
106
121
|
}
|