AutoGPT is the vision of accessible AI for everyone, to use and to build on. Our mission is to provide the tools, so that you can focus on what matters.
feat(platform): add clay avatar picker and live AI generation (#14858)
Ubbe5d2bb044777e
diff --git a/.gitignore b/.gitignoreindex 48dbf2462b..7b7a17b514 100644--- a/.gitignore+++ b/.gitignore@@ -180,6 +180,10 @@ ig*# `git status` at all until this was added), so re-include those two trees.!autogpt_platform/backend/backend/copilot/eval/style/fixtures/*.json!autogpt_platform/backend/backend/api/features/store/starter_skills/*.md+# Same trap: `pri*` hid Priya's clay avatars, so the catalog shipped pointing+# at files git never tracked. Expert artwork is named after the expert, so+# re-include the whole tree rather than one name at a time.+!autogpt_platform/frontend/public/experts/**.github_access_tokenLICENSE.rtfautogpt_platform/backend/settings.pydiff --git a/autogpt_platform/backend/.env.default b/autogpt_platform/backend/.env.defaultindex bd9b73d97a..71e4f1e151 100644--- a/autogpt_platform/backend/.env.default+++ b/autogpt_platform/backend/.env.default@@ -91,6 +91,8 @@ MEDIA_GCS_BUCKET_NAME=# AI/LLM ServicesOPENAI_API_KEY=+# Model used for on-demand expert avatars (requires the OpenAI key above).+EXPERT_AVATAR_MODEL=gpt-image-1.5ANTHROPIC_API_KEY=GROQ_API_KEY=LLAMA_API_KEY=diff --git a/autogpt_platform/backend/backend/api/features/experts/AVATARS.md b/autogpt_platform/backend/backend/api/features/experts/AVATARS.mdnew file mode 100644index 0000000000..8f2b394de1--- /dev/null+++ b/autogpt_platform/backend/backend/api/features/experts/AVATARS.md@@ -0,0 +1,35 @@+# Clay expert avatars (draft)++The source design is [expert-design-system, edition 6](https://github.com/Significant-Gravitas/expert-design-system/tree/0e4001a).++Otto and Mina keep the managed Clay & Rock assets shipped on `dev` by #14822, including WebP/PNG size variants and fallbacks. Otto uses the reserved lavender octopus. Experts use eight category color families with lighter and darker shades, two irregular clay masses, a small face, and cream accents on the head, body, or both. Static expression choices affect new images only; activity still uses the existing status dots.++## Catalog and existing experts++`avatar_catalog.json` maps all 32 built-in SVG URLs to distinct identities: the managed Mina asset and 31 named PNGs. It also records each identity's former shared default and color. The creator keeps the eight starter catalog choices. The frontend keeps a copy for old cached data and local previews; `avatar_catalog_test.py` checks both copies and the assets. Update both catalogs together. Seeding and API responses use the same mapping. Template reads also replace recorded v1 shared and v2 named defaults by template name. Roster seeding updates hired copies only when their URL still matches that template's recorded legacy/default avatar, using the source-template and updated-at guards; different saved catalog choices and custom URLs stay intact. Custom Notion SVGs get the warm stone default. Uploaded URLs and saved generated images stay unchanged. This needs no database migration.++The roster no longer shares one look per category. Named PNGs live in `frontend/public/experts/clay/v2/`, `v3/`, `v4/`, and `v5/`, with prompts and source notes. Final art approval remains open. Use a new version path when replacing shipped art to avoid stale browser caches. Run the existing roster seed after deployment to refresh unchanged hired defaults; no schema migration is needed.++## Live generation++Set `OPENAI_API_KEY` on the backend. `EXPERT_AVATAR_MODEL` defaults to `gpt-image-1.5`; any override must support image edits, PNG output, and transparency. See [OpenAI image generation](https://developers.openai.com/api/docs/guides/image-generation).++The authenticated creator sends enums for category (8), shade (3), head shape (12), base (3), tilt (3), accent shape (6), placement (3), count per part (3), and expression (4). The creator sends category and shade (standard, light, dark), so its body hue stays in the category family. The optional color field remains supported for older API clients; an explicit shade takes priority. The backend builds the prompt and selects a matching head-shape reference from `avatar_references/`, rather than reusing one image for every silhouette. It requests one transparent 1024px PNG. Validation checks format, dimensions, a 5 MB byte limit, and alpha; it cannot prove that the image follows every visual rule. The user reviews the image before saving it.++A POST returns a pending job; the picker polls an owner-scoped GET every two seconds. Redis stores jobs for one hour and atomically limits each user to five attempts per 24-hour window, at least four minutes apart. Failed attempts also count. Redis failures stop generation. Provider retries are off to avoid duplicate charges.++A bounded FastAPI background task runs the edit and sends the PNG through the existing scanned media upload path. Saving an expert still uses the existing create/update routes. Jobs do not survive an API process restart; after four minutes a pending job reports failure. A durable queue and cleanup of unchosen media can follow if usage warrants them. Closing the picker does not cancel a paid request.++## Validation before release++Automated tests mock the paid provider and media store. Confirm a real provider request with the deployment's credentials, scanned media storage, and an authenticated create/edit flow before release. Review the generated art at sidebar sizes and on both themes. No dynamic expression system ships in this draft.++## Topic backgrounds and accent revision++Team and Marketplace use the category hex values from the shared catalog as 24% tints mixed with white. Bodies follow the same category family, with shade, outline, and white accents providing variety. Otto alone uses mineral lavender (#B6A4C8). Team covers use the same plain topic tint. The sidebar adds a circular 1px #e3e3e3 border. Managed identities use their existing transparent cutouts on tinted surfaces.++The v3 revision changes eight built-ins to show head caps, patches, multiple spots, and split body accents. User-approved exceptions to edition 6 now allow cream on either or both masses and one to three accents per selected part. Default API requests retain one body sweep. Cream should occupy 8–25% of the figure, keep the face clear, and remain flush with the clay surface.++The v4 catalog records primary categories and category-specific variants for all 52 assignments across the 32 built-ins. Marketplace filters use the selected category’s artwork, background tint, and filter dot. All/Team use the primary category. Exact legacy identity URLs can resolve to a matching variant; arbitrary uploaded and generated URLs remain unchanged. The primary-category PNG replaces only known prior defaults during seeding.++The v5 palette separates Marketing (terracotta #C45F36), Sales (gold #D5AB24), and Support (rose #C45B88). Their 18 category variants and three creator defaults use matching hues. This is a user-approved palette change from edition 6; it keeps Otto’s lavender reserved. Dots and icons use the category color; backgrounds mix it with white.diff --git a/autogpt_platform/backend/backend/api/features/experts/avatar_catalog.json b/autogpt_platform/backend/backend/api/features/experts/avatar_catalog.jsonnew file mode 100644index 0000000000..b3025d6cd4--- /dev/null+++ b/autogpt_platform/backend/backend/api/features/experts/avatar_catalog.json@@ -0,0 +1,873 @@+{+ "revision": 5,+ "avatars": [+ {+ "id": "marketing",+ "label": "Terracotta",+ "hex": "#C45F36",+ "color": "orange-300",+ "url": "/experts/clay/v5/maria-marketing.png",+ "color_id": "terracotta"+ },+ {+ "id": "sales",+ "label": "Gold",+ "hex": "#D5AB24",+ "color": "amber-300",+ "url": "/experts/clay/v5/max-sales.png",+ "color_id": "ochre"+ },+ {+ "id": "finance",+ "label": "Sage",+ "hex": "#A5B09A",+ "color": "green-300",+ "url": "/experts/clay/v1/finance.png",+ "color_id": "sage"+ },+ {+ "id": "support",+ "label": "Rose",+ "hex": "#C45B88",+ "color": "rose-300",+ "url": "/experts/clay/v5/riley-support.png",+ "color_id": "coral"+ },+ {+ "id": "operations",+ "label": "Slate blue",+ "hex": "#98AFC6",+ "color": "sky-300",+ "url": "/experts/clay/v1/operations.png",+ "color_id": "slate"+ },+ {+ "id": "research",+ "label": "Olive",+ "hex": "#AAA77A",+ "color": "lime-300",+ "url": "/experts/clay/v1/research.png",+ "color_id": "olive"+ },+ {+ "id": "content",+ "label": "Warm stone",+ "hex": "#B5ADA0",+ "color": "amber-300",+ "url": "/experts/clay/v1/content.png",+ "color_id": "stone"+ },+ {+ "id": "development",+ "label": "Charcoal",+ "hex": "#777570",+ "color": "blue-300",+ "url": "/experts/clay/v1/development.png",+ "color_id": "charcoal"+ }+ ],+ "legacy": {+ "/experts/maria.svg": "/experts/clay/v5/maria-marketing.png",+ "/avatars/notion/12-5-13-13-3-9-2-11-0-0.fuchsia.svg": "/experts/clay/v5/jules-marketing.png",+ "/avatars/notion/15-10-3-12-4-6-22-0-0-0.indigo.svg": "/experts/clay/v2/nadia.png",+ "/avatars/notion/7-11-10-7-7-0-43-0-0-0.rose.svg": "/experts/clay/v5/remy-marketing.png",+ "/avatars/notion/10-8-2-6-1-0-51-9-0-0.violet.svg": "/autogpt-characters/v1.1/expert-mina/neutral/128.webp",+ "/avatars/notion/12-13-6-13-10-0-19-0-0-0.lime.svg": "/experts/clay/v4/theo-finance.png",+ "/avatars/notion/14-1-3-4-9-2-51-0-0-0.red.svg": "/experts/clay/v3/quinn.png",+ "/experts/max.svg": "/experts/clay/v5/max-sales.png",+ "/avatars/notion/12-5-0-1-13-0-29-0-0-0.green.svg": "/experts/clay/v2/devon.png",+ "/avatars/notion/11-3-7-5-7-7-57-0-0-0.emerald.svg": "/experts/clay/v5/riley-support.png",+ "/avatars/notion/12-9-10-2-11-0-1-0-0-0.yellow.svg": "/experts/clay/v5/jordan-sales.png",+ "/experts/frankie.svg": "/experts/clay/v2/frankie.png",+ "/avatars/notion/9-3-14-3-15-10-36-0-0-0.teal.svg": "/experts/clay/v4/harper-operations.png",+ "/avatars/notion/1-7-3-5-2-1-11-0-0-0.amber.svg": "/experts/clay/v4/vera-operations.png",+ "/avatars/notion/15-11-17-8-6-8-30-13-0-0.indigo.svg": "/experts/clay/v4/ellis-operations.png",+ "/avatars/notion/12-6-14-7-11-12-36-0-0-14.emerald.svg": "/experts/clay/v5/robin-support.png",+ "/avatars/notion/9-3-17-5-14-0-51-4-6-0.violet.svg": "/experts/clay/v5/anika-sales.png",+ "/avatars/notion/3-9-11-6-13-7-28-9-8-5.sky.svg": "/experts/clay/v4/alex-development.png",+ "/avatars/notion/4-2-8-9-12-3-17-6-5-11.amber.svg": "/experts/clay/v4/daniel-finance.png",+ "/avatars/notion/9-3-17-5-12-14-48-0-0-0.teal.svg": "/experts/clay/v4/sofia-operations.png",+ "/avatars/notion/10-8-15-9-6-0-41-3-0-0.orange.svg": "/experts/clay/v5/maya-marketing.png",+ "/avatars/notion/8-9-14-6-11-7-33-5-4-12.blue.svg": "/experts/clay/v4/james-operations.png",+ "/avatars/notion/13-2-5-3-7-0-0-0-0-0.orange.svg": "/experts/clay/v5/zara-marketing.png",+ "/avatars/notion/13-1-8-1-9-0-49-11-0-0.orange.svg": "/experts/clay/v5/sasha-support.png",+ "/avatars/notion/2-12-18-1-15-2-55-11-0-0.blue.svg": "/experts/clay/v4/priya-research.png",+ "/avatars/notion/11-7-17-4-4-0-30-0-0-0.amber.svg": "/experts/clay/v5/marco-marketing.png",+ "/avatars/notion/2-2-15-8-2-0-27-0-0-0.sky.svg": "/experts/clay/v5/noor-marketing.png",+ "/avatars/notion/12-6-14-7-11-3-36-0-0-0.emerald.svg": "/experts/clay/v2/casey.png",+ "/avatars/notion/4-1-19-1-11-0-34-5-0-0.teal.svg": "/experts/clay/v4/ines-operations.png",+ "/avatars/notion/0-13-13-2-0-0-36-0-0-0.rose.svg": "/experts/clay/v5/omar-sales.png",+ "/avatars/notion/1-11-13-6-2-3-21-0-0-0.cyan.svg": "/experts/clay/v4/lena-operations.png",+ "/avatars/notion/6-0-15-1-9-0-58-11-0-0.violet.svg": "/experts/clay/v5/kai-support.png"+ },+ "colors": [+ {+ "id": "terracotta",+ "label": "Terracotta",+ "hex": "#C45F36"+ },+ {+ "id": "ochre",+ "label": "Gold",+ "hex": "#D5AB24"+ },+ {+ "id": "sage",+ "label": "Sage",+ "hex": "#A5B09A"+ },+ {+ "id": "coral",+ "label": "Rose",+ "hex": "#C45B88"+ },+ {+ "id": "slate",+ "label": "Slate blue",+ "hex": "#98AFC6"+ },+ {+ "id": "olive",+ "label": "Olive",+ "hex": "#AAA77A"+ },+ {+ "id": "stone",+ "label": "Warm stone",+ "hex": "#B5ADA0"+ },+ {+ "id": "charcoal",+ "label": "Charcoal",+ "hex": "#777570"+ },+ {+ "id": "rust",+ "label": "Rust",+ "hex": "#A94F36"+ },+ {+ "id": "rose",+ "label": "Dusty rose",+ "hex": "#C07F91"+ },+ {+ "id": "seaglass",+ "label": "Sea glass",+ "hex": "#7DB5A9"+ },+ {+ "id": "pine",+ "label": "Pine",+ "hex": "#4F7968"+ },+ {+ "id": "denim",+ "label": "Denim",+ "hex": "#607FAD"+ },+ {+ "id": "sand",+ "label": "Sand",+ "hex": "#D3BA94"+ },+ {+ "id": "bluegray",+ "label": "Blue gray",+ "hex": "#4B6577"+ },+ {+ "id": "redclay",+ "label": "Red clay",+ "hex": "#A65D5D"+ },+ {+ "id": "apricot",+ "label": "Apricot",+ "hex": "#D6A07C"+ },+ {+ "id": "moss",+ "label": "Moss",+ "hex": "#718151"+ },+ {+ "id": "chalk",+ "label": "Chalk",+ "hex": "#D5CDBB"+ },+ {+ "id": "copper",+ "label": "Copper",+ "hex": "#B07A4D"+ },+ {+ "id": "mist",+ "label": "Mist blue",+ "hex": "#B1C8D3"+ },+ {+ "id": "ink",+ "label": "Ink",+ "hex": "#454F58"+ },+ {+ "id": "umber",+ "label": "Umber",+ "hex": "#89674F"+ },+ {+ "id": "lagoon",+ "label": "Lagoon",+ "hex": "#558F94"+ },+ {+ "id": "limestone",+ "label": "Yellow stone",+ "hex": "#C5BD79"+ },+ {+ "id": "fern",+ "label": "Fern",+ "hex": "#8DAF7A"+ }+ ],+ "identities": [+ {+ "id": "maria",+ "name": "Maria",+ "url": "/experts/clay/v5/maria-marketing.png",+ "color_id": "terracotta",+ "previous_url": "/autogpt-characters/v1.1/expert-maria/neutral/128.webp",+ "primary_category": "marketing",+ "variants": {+ "marketing": {+ "url": "/experts/clay/v5/maria-marketing.png",+ "hex": "#C45F36"+ },+ "content": {+ "url": "/experts/clay/v4/maria-content.png",+ "hex": "#B5ADA0"+ }+ },+ "previous_urls": [+ "/autogpt-characters/v1.1/expert-maria/neutral/128.webp"+ ]+ },+ {+ "id": "jules",+ "name": "Jules",+ "url": "/experts/clay/v5/jules-marketing.png",+ "color_id": "terracotta",+ "previous_url": "/experts/clay/v1/marketing.png",+ "previous_urls": [+ "/experts/clay/v2/jules.png",+ "/experts/clay/v3/jules.png"+ ],+ "primary_category": "marketing",+ "variants": {+ "marketing": {+ "url": "/experts/clay/v5/jules-marketing.png",+ "hex": "#CB724E"+ },+ "content": {+ "url": "/experts/clay/v4/jules-content.png",+ "hex": "#BEB7AB"+ }+ }+ },+ {+ "id": "nadia",+ "name": "Nadia",+ "url": "/experts/clay/v2/nadia.png",+ "color_id": "olive",+ "previous_url": "/experts/clay/v1/research.png",+ "primary_category": "research",+ "variants": {+ "research": {+ "url": "/experts/clay/v2/nadia.png",+ "hex": "#AAA77A"+ },+ "marketing": {+ "url": "/experts/clay/v5/nadia-marketing.png",+ "hex": "#AC5430"+ }+ },+ "previous_urls": [+ "/experts/clay/v4/nadia-marketing.png"+ ]+ },+ {+ "id": "remy",+ "name": "Remy",+ "url": "/experts/clay/v5/remy-marketing.png",+ "color_id": "terracotta",+ "previous_url": "/experts/clay/v1/marketing.png",+ "previous_urls": [+ "/experts/clay/v2/remy.png",+ "/experts/clay/v3/remy.png",+ "/experts/clay/v4/remy-marketing.png"+ ],+ "primary_category": "marketing",+ "variants": {+ "marketing": {+ "url": "/experts/clay/v5/remy-marketing.png",+ "hex": "#CF7C5A"+ }+ }+ },+ {+ "id": "mina",+ "name": "Mina",+ "url": "/autogpt-characters/v1.1/expert-mina/neutral/128.webp",+ "color_id": "sage",+ "previous_url": "/autogpt-characters/v1.1/expert-mina/neutral/128.webp",+ "primary_category": "finance",+ "variants": {+ "finance": {+ "url": "/autogpt-characters/v1.1/expert-mina/neutral/128.webp",+ "hex": "#A5B09A"+ },+ "operations": {+ "url": "/experts/clay/v4/mina-operations.png",+ "hex": "#98AFC6"+ }+ },+ "previous_urls": []+ },+ {+ "id": "theo",+ "name": "Theo",+ "url": "/experts/clay/v4/theo-finance.png",+ "color_id": "sage",+ "previous_url": "/experts/clay/v1/finance.png",+ "primary_category": "finance",+ "variants": {+ "finance": {+ "url": "/experts/clay/v4/theo-finance.png",+ "hex": "#B0B9A6"+ },+ "operations": {+ "url": "/experts/clay/v4/theo-operations.png",+ "hex": "#A4B9CD"+ }+ },+ "previous_urls": [+ "/experts/clay/v2/theo.png"+ ]+ },+ {+ "id": "quinn",+ "name": "Quinn",+ "url": "/experts/clay/v3/quinn.png",+ "color_id": "olive",+ "previous_url": "/experts/clay/v1/research.png",+ "previous_urls": [+ "/experts/clay/v2/quinn.png"+ ],+ "primary_category": "research",+ "variants": {+ "research": {+ "url": "/experts/clay/v3/quinn.png",+ "hex": "#AAA77A"+ },+ "finance": {+ "url": "/experts/clay/v4/quinn-finance.png",+ "hex": "#8B9481"+ }+ }+ },+ {+ "id": "max",+ "name": "Max",+ "url": "/experts/clay/v5/max-sales.png",+ "color_id": "ochre",+ "previous_url": "/experts/clay/v1/sales.png",+ "primary_category": "sales",+ "variants": {+ "sales": {+ "url": "/experts/clay/v5/max-sales.png",+ "hex": "#D5AB24"+ },+ "operations": {+ "url": "/experts/clay/v4/max-operations.png",+ "hex": "#8093A6"+ }+ },+ "previous_urls": [+ "/experts/clay/v2/max.png"+ ]+ },+ {+ "id": "devon",+ "name": "Devon",+ "url": "/experts/clay/v2/devon.png",+ "color_id": "charcoal",+ "previous_url": "/experts/clay/v1/development.png",+ "primary_category": "development",+ "variants": {+ "development": {+ "url": "/experts/clay/v2/devon.png",+ "hex": "#777570"+ }+ },+ "previous_urls": []+ },+ {+ "id": "riley",+ "name": "Riley",+ "url": "/experts/clay/v5/riley-support.png",+ "color_id": "coral",+ "previous_url": "/experts/clay/v1/support.png",+ "primary_category": "support",+ "variants": {+ "support": {+ "url": "/experts/clay/v5/riley-support.png",+ "hex": "#C45B88"+ }+ },+ "previous_urls": [+ "/experts/clay/v2/riley.png"+ ]+ },+ {+ "id": "jordan",+ "name": "Jordan",+ "url": "/experts/clay/v5/jordan-sales.png",+ "color_id": "ochre",+ "previous_url": "/experts/clay/v1/sales.png",+ "primary_category": "sales",+ "variants": {+ "sales": {+ "url": "/experts/clay/v5/jordan-sales.png",+ "hex": "#DAB53E"+ }+ },+ "previous_urls": [+ "/experts/clay/v2/jordan.png",+ "/experts/clay/v4/jordan-sales.png"+ ]+ },+ {+ "id": "frankie",+ "name": "Frankie",+ "url": "/experts/clay/v2/frankie.png",+ "color_id": "slate",+ "previous_url": "/experts/clay/v1/operations.png",+ "primary_category": "operations",+ "variants": {+ "operations": {+ "url": "/experts/clay/v2/frankie.png",+ "hex": "#98AFC6"+ },+ "support": {+ "url": "/experts/clay/v5/frankie-support.png",+ "hex": "#CB6F96"+ }+ },+ "previous_urls": [+ "/experts/clay/v4/frankie-support.png"+ ]+ },+ {+ "id": "harper",+ "name": "Harper",+ "url": "/experts/clay/v4/harper-operations.png",+ "color_id": "slate",+ "previous_url": "/experts/clay/v1/operations.png",+ "previous_urls": [+ "/experts/clay/v2/harper.png",+ "/experts/clay/v3/harper.png"+ ],+ "primary_category": "operations",+ "variants": {+ "operations": {+ "url": "/experts/clay/v4/harper-operations.png",+ "hex": "#8CA1B6"+ }+ }+ },+ {+ "id": "vera",+ "name": "Vera",+ "url": "/experts/clay/v4/vera-operations.png",+ "color_id": "slate",+ "previous_url": "/experts/clay/v1/operations.png",+ "previous_urls": [+ "/experts/clay/v2/vera.png",+ "/experts/clay/v3/vera.png"+ ],+ "primary_category": "operations",+ "variants": {+ "operations": {+ "url": "/experts/clay/v4/vera-operations.png",+ "hex": "#98AFC6"+ },+ "finance": {+ "url": "/experts/clay/v4/vera-finance.png",+ "hex": "#B7C0AE"+ }+ }+ },+ {+ "id": "ellis",+ "name": "Ellis",+ "url": "/experts/clay/v4/ellis-operations.png",+ "color_id": "slate",+ "previous_url": "/experts/clay/v1/operations.png",+ "primary_category": "operations",+ "variants": {+ "operations": {+ "url": "/experts/clay/v4/ellis-operations.png",+ "hex": "#A4B9CD"+ }+ },+ "previous_urls": [+ "/experts/clay/v2/ellis.png"+ ]+ },+ {+ "id": "robin",+ "name": "Robin",+ "url": "/experts/clay/v5/robin-support.png",+ "color_id": "coral",+ "previous_url": "/experts/clay/v1/support.png",+ "primary_category": "support",+ "variants": {+ "support": {+ "url": "/experts/clay/v5/robin-support.png",+ "hex": "#AC5078"+ },+ "operations": {+ "url": "/experts/clay/v4/robin-operations.png",+ "hex": "#8093A6"+ }+ },+ "previous_urls": [+ "/experts/clay/v2/robin.png",+ "/experts/clay/v4/robin-support.png"+ ]+ },+ {+ "id": "anika",+ "name": "Anika",+ "url": "/experts/clay/v5/anika-sales.png",+ "color_id": "ochre",+ "previous_url": "/experts/clay/v1/sales.png",+ "previous_urls": [+ "/experts/clay/v2/anika.png",+ "/experts/clay/v3/anika.png",+ "/experts/clay/v4/anika-sales.png"+ ],+ "primary_category": "sales",+ "variants": {+ "sales": {+ "url": "/experts/clay/v5/anika-sales.png",+ "hex": "#BB9620"+ },+ "operations": {+ "url": "/experts/clay/v4/anika-operations.png",+ "hex": "#ADBFD1"+ }+ }+ },+ {+ "id": "alex",+ "name": "Alex",+ "url": "/experts/clay/v4/alex-development.png",+ "color_id": "charcoal",+ "previous_url": "/experts/clay/v1/development.png",+ "primary_category": "development",+ "variants": {+ "development": {+ "url": "/experts/clay/v4/alex-development.png",+ "hex": "#878681"+ },+ "research": {+ "url": "/experts/clay/v4/alex-research.png",+ "hex": "#8F8C66"+ }+ },+ "previous_urls": [+ "/experts/clay/v2/alex.png"+ ]+ },+ {+ "id": "daniel",+ "name": "Daniel",+ "url": "/experts/clay/v4/daniel-finance.png",+ "color_id": "sage",+ "previous_url": "/experts/clay/v1/finance.png",+ "primary_category": "finance",+ "variants": {+ "finance": {+ "url": "/experts/clay/v4/daniel-finance.png",+ "hex": "#98A28E"+ },+ "research": {+ "url": "/experts/clay/v4/daniel-research.png",+ "hex": "#BBB995"+ }+ },+ "previous_urls": [+ "/experts/clay/v2/daniel.png"+ ]+ },+ {+ "id": "sofia",+ "name": "Sofia",+ "url": "/experts/clay/v4/sofia-operations.png",+ "color_id": "slate",+ "previous_url": "/experts/clay/v1/operations.png",+ "primary_category": "operations",+ "variants": {+ "operations": {+ "url": "/experts/clay/v4/sofia-operations.png",+ "hex": "#8CA1B6"+ }+ },+ "previous_urls": [+ "/experts/clay/v2/sofia.png"+ ]+ },+ {+ "id": "maya",+ "name": "Maya",+ "url": "/experts/clay/v5/maya-marketing.png",+ "color_id": "terracotta",+ "previous_url": "/experts/clay/v1/marketing.png",+ "primary_category": "marketing",+ "variants": {+ "marketing": {+ "url": "/experts/clay/v5/maya-marketing.png",+ "hex": "#B85933"+ },+ "content": {+ "url": "/experts/clay/v4/maya-content.png",+ "hex": "#989186"+ }+ },+ "previous_urls": [+ "/experts/clay/v2/maya.png",+ "/experts/clay/v4/maya-marketing.png"+ ]+ },+ {+ "id": "james",+ "name": "James",+ "url": "/experts/clay/v4/james-operations.png",+ "color_id": "slate",+ "previous_url": "/experts/clay/v1/operations.png",+ "primary_category": "operations",+ "variants": {+ "operations": {+ "url": "/experts/clay/v4/james-operations.png",+ "hex": "#98AFC6"+ },+ "finance": {+ "url": "/experts/clay/v4/james-finance.png",+ "hex": "#A5B09A"+ }+ },+ "previous_urls": [+ "/experts/clay/v2/james.png"+ ]+ },+ {+ "id": "zara",+ "name": "Zara",+ "url": "/experts/clay/v5/zara-marketing.png",+ "color_id": "terracotta",+ "previous_url": "/experts/clay/v1/marketing.png",+ "primary_category": "marketing",+ "variants": {+ "marketing": {+ "url": "/experts/clay/v5/zara-marketing.png",+ "hex": "#C45F36"+ },+ "sales": {+ "url": "/experts/clay/v5/zara-sales.png",+ "hex": "#DDBA4B"+ }+ },+ "previous_urls": [+ "/experts/clay/v2/zara.png",+ "/experts/clay/v4/zara-marketing.png",+ "/experts/clay/v4/zara-sales.png"+ ]+ },+ {+ "id": "sasha",+ "name": "Sasha",+ "url": "/experts/clay/v5/sasha-support.png",+ "color_id": "coral",+ "previous_url": "/experts/clay/v1/support.png",+ "primary_category": "support",+ "variants": {+ "support": {+ "url": "/experts/clay/v5/sasha-support.png",+ "hex": "#CF799D"+ }+ },+ "previous_urls": [+ "/experts/clay/v2/sasha.png"+ ]+ },+ {+ "id": "priya",+ "name": "Priya",+ "url": "/experts/clay/v4/priya-research.png",+ "color_id": "olive",+ "previous_url": "/experts/clay/v1/research.png",+ "primary_category": "research",+ "variants": {+ "research": {+ "url": "/experts/clay/v4/priya-research.png",+ "hex": "#9C9A70"+ },+ "operations": {+ "url": "/experts/clay/v4/priya-operations.png",+ "hex": "#A4B9CD"+ }+ },+ "previous_urls": [+ "/experts/clay/v2/priya.png"+ ]+ },+ {+ "id": "marco",+ "name": "Marco",+ "url": "/experts/clay/v5/marco-marketing.png",+ "color_id": "terracotta",+ "previous_url": "/experts/clay/v1/marketing.png",+ "previous_urls": [+ "/experts/clay/v2/marco.png",+ "/experts/clay/v3/marco.png",+ "/experts/clay/v4/marco-marketing.png"+ ],+ "primary_category": "marketing",+ "variants": {+ "marketing": {+ "url": "/experts/clay/v5/marco-marketing.png",+ "hex": "#CB724E"+ }+ }+ },+ {+ "id": "noor",+ "name": "Noor",+ "url": "/experts/clay/v5/noor-marketing.png",+ "color_id": "terracotta",+ "previous_url": "/experts/clay/v1/marketing.png",+ "primary_category": "marketing",+ "variants": {+ "marketing": {+ "url": "/experts/clay/v5/noor-marketing.png",+ "hex": "#AC5430"+ },+ "content": {+ "url": "/experts/clay/v4/noor-content.png",+ "hex": "#C4BDB3"+ }+ },+ "previous_urls": [+ "/experts/clay/v2/noor.png",+ "/experts/clay/v4/noor-marketing.png"+ ]+ },+ {+ "id": "casey",+ "name": "Casey",+ "url": "/experts/clay/v2/casey.png",+ "color_id": "charcoal",+ "previous_url": "/experts/clay/v1/development.png",+ "primary_category": "development",+ "variants": {+ "development": {+ "url": "/experts/clay/v2/casey.png",+ "hex": "#777570"+ }+ },+ "previous_urls": []+ },+ {+ "id": "ines",+ "name": "Ines",+ "url": "/experts/clay/v4/ines-operations.png",+ "color_id": "slate",+ "previous_url": "/experts/clay/v1/operations.png",+ "primary_category": "operations",+ "variants": {+ "operations": {+ "url": "/experts/clay/v4/ines-operations.png",+ "hex": "#8093A6"+ }+ },+ "previous_urls": [+ "/experts/clay/v2/ines.png"+ ]+ },+ {+ "id": "omar",+ "name": "Omar",+ "url": "/experts/clay/v5/omar-sales.png",+ "color_id": "ochre",+ "previous_url": "/experts/clay/v1/sales.png",+ "primary_category": "sales",+ "variants": {+ "sales": {+ "url": "/experts/clay/v5/omar-sales.png",+ "hex": "#C8A122"+ },+ "operations": {+ "url": "/experts/clay/v4/omar-operations.png",+ "hex": "#ADBFD1"+ }+ },+ "previous_urls": [+ "/experts/clay/v2/omar.png",+ "/experts/clay/v4/omar-sales.png"+ ]+ },+ {+ "id": "lena",+ "name": "Lena",+ "url": "/experts/clay/v4/lena-operations.png",+ "color_id": "slate",+ "previous_url": "/experts/clay/v1/operations.png",+ "previous_urls": [+ "/experts/clay/v2/lena.png",+ "/experts/clay/v3/lena.png"+ ],+ "primary_category": "operations",+ "variants": {+ "operations": {+ "url": "/experts/clay/v4/lena-operations.png",+ "hex": "#8CA1B6"+ }+ }+ },+ {+ "id": "kai",+ "name": "Kai",+ "url": "/experts/clay/v5/kai-support.png",+ "color_id": "coral",+ "previous_url": "/experts/clay/v1/support.png",+ "primary_category": "support",+ "variants": {+ "support": {+ "url": "/experts/clay/v5/kai-support.png",+ "hex": "#B85680"+ },+ "operations": {+ "url": "/experts/clay/v4/kai-operations.png",+ "hex": "#98AFC6"+ }+ },+ "previous_urls": [+ "/experts/clay/v2/kai.png",+ "/experts/clay/v4/kai-support.png"+ ]+ }+ ]+}diff --git a/autogpt_platform/backend/backend/api/features/experts/avatar_catalog.py b/autogpt_platform/backend/backend/api/features/experts/avatar_catalog.pynew file mode 100644index 0000000000..a34bf5419c--- /dev/null+++ b/autogpt_platform/backend/backend/api/features/experts/avatar_catalog.py@@ -0,0 +1,115 @@+from pathlib import Path+from typing import Literal++from pydantic import BaseModel, Field++AvatarCategory = Literal[+ "marketing",+ "sales",+ "finance",+ "support",+ "operations",+ "research",+ "content",+ "development",+]+++AvatarColor = Literal[+ "terracotta",+ "ochre",+ "sage",+ "coral",+ "slate",+ "olive",+ "stone",+ "charcoal",+ "rust",+ "rose",+ "seaglass",+ "pine",+ "denim",+ "sand",+ "bluegray",+ "redclay",+ "apricot",+ "moss",+ "chalk",+ "copper",+ "mist",+ "ink",+ "umber",+ "lagoon",+ "limestone",+ "fern",+]+++class AvatarColorOption(BaseModel):+ id: AvatarColor+ label: str+ hex: str+++class CategoryAvatar(BaseModel):+ url: str+ hex: str+++class BuiltinAvatar(BaseModel):+ primary_category: AvatarCategory+ variants: dict[AvatarCategory, CategoryAvatar]+ previous_urls: list[str] = Field(default_factory=list)+ previous_url: str+ id: str+ name: str+ url: str+ color_id: AvatarColor+++class AvatarPreset(BaseModel):+ id: AvatarCategory+ label: str+ hex: str+ color: str+ url: str+ color_id: AvatarColor+++class AvatarCatalog(BaseModel):+ revision: int+ avatars: list[AvatarPreset]+ legacy: dict[str, str]+ colors: list[AvatarColorOption]+ identities: list[BuiltinAvatar]+++CATALOG = AvatarCatalog.model_validate_json(+ Path(__file__).with_suffix(".json").read_text()+)+PRESETS = {avatar.id: avatar for avatar in CATALOG.avatars}+COLORS = {color.id: color for color in CATALOG.colors}+DEFAULT_AVATAR_URL = PRESETS["content"].url+# What the picker can put on an expert. Five of these are also an old shared+# default, so a stored URL in this set may be a choice rather than a leftover.+PRESET_AVATAR_URLS = frozenset(avatar.url for avatar in CATALOG.avatars)+++def resolve_avatar_url(url: str | None) -> str | None:+ if not url:+ return url+ if url in CATALOG.legacy:+ return CATALOG.legacy[url]+ if url.startswith("/avatars/notion/") and url.endswith(".svg"):+ return DEFAULT_AVATAR_URL+ return url+++def resolve_builtin_avatar_url(name: str, url: str | None) -> str | None:+ avatar = next((a for a in CATALOG.identities if a.name == name), None)+ if avatar and (+ url in [avatar.previous_url, *avatar.previous_urls]+ or resolve_avatar_url(url) == avatar.url+ ):+ return avatar.url+ return urldiff --git a/autogpt_platform/backend/backend/api/features/experts/avatar_catalog_test.py b/autogpt_platform/backend/backend/api/features/experts/avatar_catalog_test.pynew file mode 100644index 0000000000..1fa5e453cc--- /dev/null+++ b/autogpt_platform/backend/backend/api/features/experts/avatar_catalog_test.py@@ -0,0 +1,144 @@+from backend.api.features.experts.avatar_catalog import resolve_avatar_url+++def test_existing_roster_avatar_maps_without_using_the_name():+ assert (+ resolve_avatar_url("/experts/maria.svg")+ == "/experts/clay/v5/maria-marketing.png"+ )+++def test_uploaded_and_saved_generated_avatars_are_preserved():+ for url in (+ "https://cdn.example/avatar.png",+ "/api/store/media/user/images/custom.png",+ "/avatars/mine.svg",+ "/experts/clay/v1/finance.png",+ ):+ assert resolve_avatar_url(url) == url+++def test_custom_legacy_avatar_gets_a_stable_non_otto_default():+ assert (+ resolve_avatar_url("/avatars/notion/1-2-3.violet.svg")+ == "/experts/clay/v1/content.png"+ )+ assert resolve_avatar_url(None) is None+++def test_frontend_catalog_and_png_assets_match_backend():+ import json+ from pathlib import Path++ from PIL import Image++ folder = Path(__file__).parent+ frontend = folder.parents[4] / "frontend"+ catalog = json.loads((folder / "avatar_catalog.json").read_text())+ assert catalog == json.loads(+ (frontend / "src/components/molecules/ExpertAvatar/catalog.json").read_text()+ )+ assert len(catalog["legacy"]) == 32+ for url in [a["url"] for a in catalog["avatars"]]:+ with Image.open(frontend / "public" / url.lstrip("/")) as image:+ assert image.format == "PNG"+ assert image.size == (512, 512)+ assert image.mode == "RGBA"+ assert image.getchannel("A").getextrema() == (0, 255)+++def test_each_builtin_has_its_own_avatar():+ from backend.api.features.experts.seed import ROSTER++ urls = [resolve_avatar_url(entry["avatar_url"]) for entry in ROSTER]+ assert len(urls) == len(set(urls))+++def test_builtin_assets_are_distinct_and_palette_matches_request_schema():+ import hashlib+ from pathlib import Path+ from typing import get_args++ from PIL import Image++ from backend.api.features.experts.avatar_catalog import CATALOG, AvatarColor++ public = Path(__file__).parent.parents[4] / "frontend/public"+ assert {c.id for c in CATALOG.colors} == set(get_args(AvatarColor))+ assert len(CATALOG.identities) == 32+ hashes = set()+ for avatar in CATALOG.identities:+ path = public / avatar.url.lstrip("/")+ hashes.add(hashlib.sha256(path.read_bytes()).hexdigest())+ assert avatar.color_id in get_args(AvatarColor)+ with Image.open(path) as image:+ if avatar.url.endswith(".png"):+ assert image.mode == "RGBA"+ assert image.getchannel("A").getextrema() == (0, 255)+ assert image.size == (512, 512)+ assert len(hashes) == len(CATALOG.identities)+++def test_accent_refresh_handles_each_known_default_and_preserves_other_choices():+ from backend.api.features.experts.avatar_catalog import (+ CATALOG,+ resolve_builtin_avatar_url,+ )++ for avatar in CATALOG.identities:+ for old in [avatar.previous_url, *avatar.previous_urls]:+ assert resolve_builtin_avatar_url(avatar.name, old) == avatar.url+ for custom in [+ "https://cdn.test/custom.png",+ "/experts/clay/v1/development.png",+ ]:+ if custom != avatar.previous_url:+ assert resolve_builtin_avatar_url(avatar.name, custom) == custom+++def test_every_builtin_category_has_distinct_transparent_artwork():+ from pathlib import Path++ from PIL import Image++ from backend.api.features.experts.avatar_catalog import CATALOG, PRESETS+ from backend.api.features.experts.seed import ROSTER++ public = Path(__file__).parent.parents[4] / "frontend/public"+ by_name = {avatar.name: avatar for avatar in CATALOG.identities}+ for entry in ROSTER:+ avatar = by_name[entry["name"]]+ assert avatar.primary_category == entry["categories"][0]+ assert set(avatar.variants) == set(entry["categories"])+ assert avatar.color_id == PRESETS[avatar.primary_category].color_id+ assert avatar.url == avatar.variants[avatar.primary_category].url+ assert len({v.url for v in avatar.variants.values()}) == len(avatar.variants)+ for variant in avatar.variants.values():+ with Image.open(public / variant.url.lstrip("/")) as image:+ if variant.url.endswith(".png"):+ assert image.size == (512, 512)+ assert image.mode == "RGBA"+ assert image.getchannel("A").getextrema() == (0, 255)+++def test_a_picker_preset_doubles_as_an_old_default_so_hires_must_keep_it():+ """Five presets are also some expert's `previous_url`, so a hire sitting+ on one cannot be told apart from a hire whose owner chose it. `seed.py`+ skips the migration for these; this records why that guard is there."""+ from backend.api.features.experts.avatar_catalog import (+ CATALOG,+ PRESET_AVATAR_URLS,+ resolve_builtin_avatar_url,+ )++ assert PRESET_AVATAR_URLS == {avatar.url for avatar in CATALOG.avatars}+ shared = [+ (avatar.name, url)+ for avatar in CATALOG.identities+ for url in [avatar.previous_url, *avatar.previous_urls]+ if url in PRESET_AVATAR_URLS+ ]+ assert shared, "no overlap left — seed's PRESET_AVATAR_URLS guard can go"+ for name, url in shared:+ # Unguarded, the backfill rewrites a preset its owner picked.+ assert resolve_builtin_avatar_url(name, url) != urldiff --git a/autogpt_platform/backend/backend/api/features/experts/avatar_design.py b/autogpt_platform/backend/backend/api/features/experts/avatar_design.pynew file mode 100644index 0000000000..dc87ca3f60--- /dev/null+++ b/autogpt_platform/backend/backend/api/features/experts/avatar_design.py@@ -0,0 +1,54 @@+from typing import Literal++AvatarShape = Literal[+ "pebble",+ "slab",+ "wedge",+ "dome",+ "capsule",+ "bean",+ "saddle",+ "kite",+ "fan",+ "arch",+ "shield",+ "crescent",+]++SHAPES = {+ "pebble": "broad irregular rounded pebble head with uneven gentle slopes",+ "slab": "very wide low rounded rectangular slab head, nearly twice as wide as tall",+ "wedge": "tall sloping wedge head with very blunt rounded corners",+ "dome": "low asymmetric dome head with an arched crown and rounded flat bottom",+ "capsule": "tall narrow upright capsule head with softly flattened rounded ends",+ "bean": "upright kidney bean head with a deep smooth inward curve on one side",+ "saddle": "wide cushion head with a smooth shallow dip in its top edge; no ears",+ "kite": "rounded diamond head with four extremely blunt corners and a wide middle",+ "fan": "broad fan head flaring toward a convex top and narrowing at the bottom",+ "arch": "upright arch head with one high domed shoulder and one lower shoulder",+ "shield": "rounded shield head with broad shoulders tapering to a blunt bottom",+ "crescent": "wide crescent pebble head, shallow concave top, convex bottom, blunt ends; no horns",+}+BASES = {+ "compact": "compact rounded base, narrower than the head, stable flat footprint",+ "wide": "wide low oval base spreading beyond the head contact point, stable flat footprint",+ "tall": "taller narrow rounded tapered base, head about 55 percent of total figure height",+}+TILTS = {+ "level": "head upright and nearly level, with natural asymmetry",+ "left": "head tilted gently left about ten degrees while touching the base",+ "right": "head tilted gently right about ten degrees while touching the base",+}+INLAYS = {+ "sweep": "broad flowing S-shaped cream sweep with rounded ends",+ "pool": "rounded cream pool with an uneven organic boundary",+ "curl": "broad cream curl, no thin piping",+ "patch": "rounded irregular patch, like a smooth pebble inset",+ "cap": "rounded cream cap following the outer top edge",+ "teardrop": "soft cream teardrop with a blunt rounded tip",+}+ACCENT_PLACEMENTS = {+ "body": "BODY ONLY; keep the head entirely main color",+ "head": "HEAD ONLY; keep the body entirely main color",+ "both": "BOTH head and body; distribute accents across both parts",+}diff --git a/autogpt_platform/backend/backend/api/features/experts/avatar_generation.py b/autogpt_platform/backend/backend/api/features/experts/avatar_generation.pynew file mode 100644index 0000000000..9704f8a28e--- /dev/null+++ b/autogpt_platform/backend/backend/api/features/experts/avatar_generation.py@@ -0,0 +1,125 @@+import asyncio+import base64+import io+from pathlib import Path+from typing import Literal++from openai import AsyncOpenAI+from PIL import Image+from pydantic import BaseModel, ConfigDict++from backend.api.features.experts.avatar_catalog import (+ COLORS,+ PRESETS,+ AvatarCategory,+ AvatarColor,+)+from backend.api.features.experts.avatar_design import (+ ACCENT_PLACEMENTS,+ BASES,+ INLAYS,+ SHAPES,+ TILTS,+ AvatarShape,+)+from backend.util.settings import Settings+++class ExpertAvatarRequest(BaseModel):+ model_config = ConfigDict(extra="forbid")+ category: AvatarCategory = "content"+ color: AvatarColor | None = None+ shape: AvatarShape = "pebble"+ base: Literal["compact", "wide", "tall"] = "compact"+ tilt: Literal["level", "left", "right"] = "level"+ inlay: Literal["sweep", "pool", "curl", "patch", "cap", "teardrop"] = "sweep"+ accent_placement: Literal["body", "head", "both"] = "body"+ accent_count: Literal["one", "two", "three"] = "one"+ shade: Literal["standard", "light", "dark"] | None = None+ expression: Literal["friendly", "curious", "focused", "pleased"] = "friendly"+++EXPRESSIONS = {+ "friendly": "open oval eyes, relaxed curved brows, tiny closed smile",+ "curious": "open oval eyes, one raised brow, tiny round mouth",+ "focused": "compact oval eyes, low gently angled brows, short diagonal mouth; not angry",+ "pleased": "small upward-curved closed eyes, relaxed brows, small closed smile",+}+REFERENCE_FOLDER = Path(__file__).parent / "avatar_references"+++async def generate_avatar(request: ExpertAvatarRequest) -> io.BytesIO:+ settings = Settings()+ async with AsyncOpenAI(+ api_key=settings.secrets.openai_api_key, timeout=180, max_retries=0+ ) as client:+ result = await client.images.edit(+ model=settings.config.expert_avatar_model,+ image=(+ "reference.png",+ (REFERENCE_FOLDER / f"{request.shape}.png").read_bytes(),+ "image/png",+ ),+ prompt=avatar_prompt(request),+ size="1024x1024",+ quality="medium",+ background="transparent",+ output_format="png",+ n=1,+ )+ if not result.data or not result.data[0].b64_json:+ raise ValueError("Image provider returned no image")+ content = base64.b64decode(result.data[0].b64_json, validate=True)+ return await asyncio.to_thread(validate_png, content)+++def avatar_prompt(request: ExpertAvatarRequest) -> str:+ color = COLORS[request.color or PRESETS[request.category].color_id]+ hue = color.hex+ if request.shade is not None:+ color = COLORS[PRESETS[request.category].color_id]+ hue = category_shade(color.hex, request.shade)+ return (+ "Create ONE new AutoGPT Clay & Rock specialist avatar. Use the attached image "+ "as a material, lighting and head outline reference. Render only ONE figure. "+ "Replace its color, base, tilt and inlay with the choices below. "+ f"Main mineral hue: {color.label} {hue} across head and base. "+ f"Head outline: {SHAPES[request.shape]}. Base: {BASES[request.base]}. "+ f"Tilt: {TILTS[request.tilt]}. Accent shape: {INLAYS[request.inlay]}. "+ f"Accent placement: {ACCENT_PLACEMENTS[request.accent_placement]}. "+ f"Use {request.accent_count} separate cream accents on each selected part. "+ f"Face: {EXPRESSIONS[request.expression]}. "+ "Exactly two irregular masses: head 55–65% of total height, touching one "+ "stable base. Smooth matte clay, very fine grain, rounded corners. "+ "Cream #EAE2D5 accents occupy 8–25% of the visible figure in total, "+ "with rounded boundaries and a narrow recessed material groove. "+ "Replace the reference markings with the specified shape, count and placement. "+ "Keep the face clear and the main mineral hue dominant. No sharp wedges, thin piping, "+ "black collar, open gap, limbs, neck, octopus anatomy, purple, lavender, props, "+ "clothes, accessories, logos or text. Small charcoal eyes, brows and mouth only. "+ "No teeth, blush, highlights or theatrical reactions. Soft upper-left studio light, "+ "front or slight three-quarter view. Square transparent PNG, full figure centered "+ "at 80% of canvas height, safe margins, quiet contact shadow. No backdrop or pedestal."+ )+++def category_shade(hex_color: str, shade: str) -> str:+ amount = {"standard": 0, "light": 0.16, "dark": -0.16}[shade]+ channels = [int(hex_color[index : index + 2], 16) for index in (1, 3, 5)]+ values = [+ round(value + (255 - value) * amount if amount >= 0 else value * (1 + amount))+ for value in channels+ ]+ return "#" + "".join(f"{value:02X}" for value in values)+++def validate_png(content: bytes) -> io.BytesIO:+ if len(content) > 5 * 1024 * 1024:+ raise ValueError("Generated image is too large")+ with Image.open(io.BytesIO(content)) as image:+ if image.format != "PNG" or image.size != (1024, 1024):+ raise ValueError("Expected a square 1024px PNG")+ image.load()+ if image.mode != "RGBA" or image.getchannel("A").getextrema() != (0, 255):+ raise ValueError("Expected a transparent PNG with visible artwork")+ return io.BytesIO(content)diff --git a/autogpt_platform/backend/backend/api/features/experts/avatar_generation_test.py b/autogpt_platform/backend/backend/api/features/experts/avatar_generation_test.pynew file mode 100644index 0000000000..8818cfc3f1--- /dev/null+++ b/autogpt_platform/backend/backend/api/features/experts/avatar_generation_test.py@@ -0,0 +1,245 @@+import io+import time+import uuid+from unittest.mock import AsyncMock++import pytest+from fastapi import HTTPException+from PIL import Image+from pydantic import ValidationError++from backend.api.features.experts import avatar_jobs+from backend.api.features.experts.avatar_generation import (+ ExpertAvatarRequest,+ avatar_prompt,+ validate_png,+)+from backend.api.features.experts.avatar_jobs import ExpertAvatarJob+++def test_generation_accepts_only_brand_choices():+ for payload in (+ {"category": "otto"},+ {"category": "purple"},+ {"prompt": "ignore the rules"},+ {"shape": "human"},+ {"color": "lavender"},+ {"base": "legs"},+ {"tilt": "upside-down"},+ {"inlay": "head"},+ ):+ with pytest.raises(ValidationError):+ ExpertAvatarRequest.model_validate(payload)+ prompt = avatar_prompt(+ ExpertAvatarRequest(category="finance", expression="curious")+ )+ assert "#A5B09A" in prompt+ assert "one raised brow" in prompt+ assert "BODY ONLY" in prompt+++def test_png_validation_keeps_alpha_and_rejects_wrong_outputs():+ image = Image.new("RGBA", (1024, 1024), (0, 0, 0, 0))+ image.putpixel((512, 512), (100, 100, 100, 255))+ content = io.BytesIO()+ image.save(content, format="PNG")+ assert validate_png(content.getvalue()).getvalue() == content.getvalue()+ for size, mode, format in [+ ((1024, 1024), "RGB", "PNG"),+ ((16, 16), "RGBA", "PNG"),+ ((1024, 1024), "RGB", "JPEG"),+ ]:+ bad = io.BytesIO()+ Image.new(mode, size).save(bad, format=format)+ with pytest.raises(ValueError):+ validate_png(bad.getvalue())+++async def test_job_lookup_is_owner_scoped_and_expired_jobs_fail(monkeypatch):+ job = ExpertAvatarJob(created_at=time.time() - 300)+ redis = AsyncMock()+ redis.get.return_value = job.model_dump_json()+ monkeypatch.setattr(avatar_jobs, "get_redis_async", AsyncMock(return_value=redis))+ result = await avatar_jobs.load_job("owner", job.id)+ redis.get.assert_awaited_once_with(f"expert-avatar-job:owner:{job.id}")+ assert result.status == "failed"+ redis.get.return_value = None+ with pytest.raises(HTTPException) as error:+ await avatar_jobs.load_job("other-owner", job.id)+ assert error.value.status_code == 404+++async def test_rate_limit_and_unavailable_redis_fail_closed(monkeypatch):+ redis = AsyncMock()+ redis.eval.return_value = 120+ monkeypatch.setattr(avatar_jobs, "get_redis_async", AsyncMock(return_value=redis))+ with pytest.raises(HTTPException) as error:+ await avatar_jobs.reserve_generation("owner")+ assert error.value.status_code == 429+ assert error.value.headers == {"Retry-After": "120"}+ redis.eval.side_effect = ConnectionError()+ with pytest.raises(HTTPException) as error:+ await avatar_jobs.reserve_generation("owner")+ assert error.value.status_code == 503+++async def test_generation_stores_a_preview_without_changing_an_expert(monkeypatch):+ generate = AsyncMock(return_value=io.BytesIO(b"png"))+ upload = AsyncMock(return_value="https://cdn.test/generated.png")+ save = AsyncMock()+ monkeypatch.setattr(avatar_jobs, "generate_avatar", generate)+ monkeypatch.setattr(avatar_jobs, "upload_media", upload)+ monkeypatch.setattr(avatar_jobs, "save_job", save)+ job = ExpertAvatarJob(id=uuid.uuid4())+ await avatar_jobs.run_generation("owner", job, ExpertAvatarRequest())+ assert job.status == "complete"+ assert job.avatar_url == "https://cdn.test/generated.png"+ assert upload.call_args.kwargs["user_id"] == "owner"+ assert upload.call_args.kwargs["file"].content_type == "image/png"+ save.assert_awaited_once_with("owner", job)+++async def test_failed_generation_does_not_upload(monkeypatch):+ upload = AsyncMock()+ monkeypatch.setattr(+ avatar_jobs, "generate_avatar", AsyncMock(side_effect=ValueError("bad image"))+ )+ monkeypatch.setattr(avatar_jobs, "upload_media", upload)+ monkeypatch.setattr(avatar_jobs, "save_job", AsyncMock())+ job = ExpertAvatarJob()+ await avatar_jobs.run_generation("owner", job, ExpertAvatarRequest())+ assert job.status == "failed"+ assert "bad image" not in (job.error or "")+ upload.assert_not_called()++[email protected]("shape", ["pebble", "bean", "shield"])+async def test_provider_edit_round_trip_uses_reference_and_returns_validated_png(+ monkeypatch,+ shape,+):+ import base64+ from types import SimpleNamespace++ import httpx+ from openai import AsyncOpenAI++ from backend.api.features.experts import avatar_generation++ png = io.BytesIO()+ image = Image.new("RGBA", (1024, 1024), (0, 0, 0, 0))+ image.putpixel((512, 512), (100, 100, 100, 255))+ image.save(png, format="PNG")+ content = png.getvalue()+ requests = []++ def provider(request):+ requests.append(request)+ assert request.url.path == "/v1/images/edits"+ assert b'name="background"\r\n\r\ntransparent' in request.content+ assert b'name="output_format"\r\n\r\npng' in request.content+ assert b'name="size"\r\n\r\n1024x1024' in request.content+ assert b"reference.png" in request.content+ assert (+ avatar_generation.REFERENCE_FOLDER / f"{shape}.png"+ ).read_bytes() in request.content+ return httpx.Response(+ 200,+ json={+ "created": 1,+ "data": [{"b64_json": base64.b64encode(content).decode()}],+ },+ )++ def client(**kwargs):+ return AsyncOpenAI(+ **kwargs,+ base_url="https://provider.test/v1",+ http_client=httpx.AsyncClient(transport=httpx.MockTransport(provider)),+ )++ monkeypatch.setattr(avatar_generation, "AsyncOpenAI", client)+ monkeypatch.setattr(+ avatar_generation,+ "Settings",+ lambda: SimpleNamespace(+ secrets=SimpleNamespace(openai_api_key="test-key"),+ config=SimpleNamespace(expert_avatar_model="gpt-image-1.5"),+ ),+ )+ result = await avatar_generation.generate_avatar(+ ExpertAvatarRequest.model_validate({"category": "finance", "shape": shape})+ )+ assert result.getvalue() == content+ assert len(requests) == 1+++def test_generation_varies_color_and_full_outline_independently_of_category():+ request = ExpertAvatarRequest.model_validate(+ {+ "category": "marketing",+ "color": "pine",+ "shape": "bean",+ "base": "wide",+ "tilt": "left",+ "inlay": "curl",+ "expression": "curious",+ }+ )+ prompt = avatar_prompt(request)+ assert "#4F7968" in prompt+ assert "#C45F36" not in prompt+ assert "kidney" in prompt+ assert "wide" in prompt+ assert "left" in prompt+ assert "curl" in prompt+++def test_every_shape_has_a_distinct_transparent_reference():+ from typing import get_args++ from backend.api.features.experts.avatar_design import SHAPES, AvatarShape+ from backend.api.features.experts.avatar_generation import REFERENCE_FOLDER++ assert set(get_args(AvatarShape)) == set(SHAPES)+ for shape in get_args(AvatarShape):+ with Image.open(REFERENCE_FOLDER / f"{shape}.png") as image:+ assert image.size == (256, 256)+ assert image.mode == "RGBA"+ assert image.getchannel("A").getextrema() == (0, 255)+++def test_accents_can_move_to_head_and_repeat():+ prompt = avatar_prompt(+ ExpertAvatarRequest.model_validate(+ {+ "accent_placement": "head",+ "accent_count": "three",+ "inlay": "patch",+ }+ )+ )+ assert "HEAD ONLY" in prompt+ assert "three separate" in prompt+ assert "rounded irregular patch" in prompt+ assert "Head stays wholly main color" not in prompt+ assert "LOWER BASE" not in prompt+++def test_shade_uses_category_hue_instead_of_an_unrelated_color():+ prompt = avatar_prompt(+ ExpertAvatarRequest.model_validate(+ {+ "category": "finance",+ "shade": "dark",+ "color": "terracotta",+ }+ )+ )+ assert "#8B9481" in prompt+ assert "#C45F36" not in promptdiff --git a/autogpt_platform/backend/backend/api/features/experts/avatar_jobs.py b/autogpt_platform/backend/backend/api/features/experts/avatar_jobs.pynew file mode 100644index 0000000000..72bd68100e--- /dev/null+++ b/autogpt_platform/backend/backend/api/features/experts/avatar_jobs.py@@ -0,0 +1,113 @@+import asyncio+import logging+import time+import uuid+from typing import Literal++from fastapi import HTTPException, UploadFile+from pydantic import BaseModel, Field+from starlette.datastructures import Headers++from backend.api.features.experts.avatar_generation import (+ ExpertAvatarRequest,+ generate_avatar,+)+from backend.api.features.store.media import upload_media+from backend.data.redis_client import get_redis_async++logger = logging.getLogger(__name__)+JOB_TTL = 3600+GENERATION_TIMEOUT = 240+_RESERVE = """+local count = tonumber(redis.call('HGET', KEYS[1], 'count') or '0')+if count >= 5 then return math.max(1, redis.call('TTL', KEYS[1])) end+local next = tonumber(redis.call('HGET', KEYS[1], 'next') or '0')+local now = tonumber(ARGV[1])+if next > now then return next - now end+redis.call('HSET', KEYS[1], 'count', count + 1, 'next', now + 240)+if count == 0 then redis.call('EXPIRE', KEYS[1], 86400) end+return 0+"""+++class ExpertAvatarJob(BaseModel):+ id: uuid.UUID = Field(default_factory=uuid.uuid4)+ status: Literal["pending", "complete", "failed"] = "pending"+ avatar_url: str | None = None+ error: str | None = None+ created_at: float = Field(default_factory=time.time)+++async def reserve_generation(user_id: str) -> None:+ try:+ async with asyncio.timeout(3):+ redis = await get_redis_async()+ retry_after = int(+ await redis.eval(+ _RESERVE, 1, f"expert-avatar-limit:{user_id}", int(time.time())+ )+ )+ except Exception as exc:+ raise HTTPException(+ 503, "Avatar generation is temporarily unavailable"+ ) from exc+ if retry_after:+ raise HTTPException(+ 429,+ "Please wait before generating again. Limit: five avatars per day.",+ headers={"Retry-After": str(retry_after)},+ )+++async def save_job(user_id: str, job: ExpertAvatarJob) -> None:+ async with asyncio.timeout(3):+ redis = await get_redis_async()+ await redis.setex(+ f"expert-avatar-job:{user_id}:{job.id}", JOB_TTL, job.model_dump_json()+ )+++async def load_job(user_id: str, job_id: uuid.UUID) -> ExpertAvatarJob:+ try:+ async with asyncio.timeout(3):+ redis = await get_redis_async()+ value = await redis.get(f"expert-avatar-job:{user_id}:{job_id}")+ except Exception as exc:+ raise HTTPException(503, "Could not check avatar generation") from exc+ if not value:+ raise HTTPException(404, "Avatar generation not found")+ job = ExpertAvatarJob.model_validate_json(value)+ if job.status == "pending" and time.time() - job.created_at > GENERATION_TIMEOUT:+ job.status = "failed"+ job.error = "Generation timed out. Choose a catalog avatar or try again."+ return job+++async def run_generation(+ user_id: str, job: ExpertAvatarJob, request: ExpertAvatarRequest+) -> None:+ try:+ async with asyncio.timeout(GENERATION_TIMEOUT - 5):+ image = await generate_avatar(request)+ file = UploadFile(+ file=image,+ filename=f"expert-avatar-{job.id}.png",+ headers=Headers({"content-type": "image/png"}),+ )+ try:+ job.avatar_url = await upload_media(+ user_id=user_id, file=file, is_avatar=True+ )+ finally:+ await file.close()+ job.status = "complete"+ except Exception:+ logger.exception("Expert avatar generation failed")+ job.status = "failed"+ job.error = (+ "Could not generate this avatar. Choose a catalog avatar or try again."+ )+ try:+ await save_job(user_id, job)+ except Exception:+ logger.exception("Could not save expert avatar generation result")diff --git a/autogpt_platform/backend/backend/api/features/experts/avatar_references/arch.png b/autogpt_platform/backend/backend/api/features/experts/avatar_references/arch.pngnew file mode 100644index 0000000000..9c8537721fBinary files /dev/null and b/autogpt_platform/backend/backend/api/features/experts/avatar_references/arch.png differdiff --git a/autogpt_platform/backend/backend/api/features/experts/avatar_references/bean.png b/autogpt_platform/backend/backend/api/features/experts/avatar_references/bean.pngnew file mode 100644index 0000000000..6b19f7cdd7Binary files /dev/null and b/autogpt_platform/backend/backend/api/features/experts/avatar_references/bean.png differdiff --git a/autogpt_platform/backend/backend/api/features/experts/avatar_references/capsule.png b/autogpt_platform/backend/backend/api/features/experts/avatar_references/capsule.pngnew file mode 100644index 0000000000..f74fc7292aBinary files /dev/null and b/autogpt_platform/backend/backend/api/features/experts/avatar_references/capsule.png differdiff --git a/autogpt_platform/backend/backend/api/features/experts/avatar_references/crescent.png b/autogpt_platform/backend/backend/api/features/experts/avatar_references/crescent.pngnew file mode 100644index 0000000000..75f4127629Binary files /dev/null and b/autogpt_platform/backend/backend/api/features/experts/avatar_references/crescent.png differdiff --git a/autogpt_platform/backend/backend/api/features/experts/avatar_references/dome.png b/autogpt_platform/backend/backend/api/features/experts/avatar_references/dome.pngnew file mode 100644index 0000000000..33a2bf7cd3Binary files /dev/null and b/autogpt_platform/backend/backend/api/features/experts/avatar_references/dome.png differdiff --git a/autogpt_platform/backend/backend/api/features/experts/avatar_references/fan.png b/autogpt_platform/backend/backend/api/features/experts/avatar_references/fan.pngnew file mode 100644index 0000000000..31d4b413c9Binary files /dev/null and b/autogpt_platform/backend/backend/api/features/experts/avatar_references/fan.png differdiff --git a/autogpt_platform/backend/backend/api/features/experts/avatar_references/kite.png b/autogpt_platform/backend/backend/api/features/experts/avatar_references/kite.pngnew file mode 100644index 0000000000..a3c3398188Binary files /dev/null and b/autogpt_platform/backend/backend/api/features/experts/avatar_references/kite.png differdiff --git a/autogpt_platform/backend/backend/api/features/experts/avatar_references/pebble.png b/autogpt_platform/backend/backend/api/features/experts/avatar_references/pebble.pngnew file mode 100644index 0000000000..577bf02e05Binary files /dev/null and b/autogpt_platform/backend/backend/api/features/experts/avatar_references/pebble.png differdiff --git a/autogpt_platform/backend/backend/api/features/experts/avatar_references/saddle.png b/autogpt_platform/backend/backend/api/features/experts/avatar_references/saddle.pngnew file mode 100644index 0000000000..a1ce95cae5Binary files /dev/null and b/autogpt_platform/backend/backend/api/features/experts/avatar_references/saddle.png differdiff --git a/autogpt_platform/backend/backend/api/features/experts/avatar_references/shield.png b/autogpt_platform/backend/backend/api/features/experts/avatar_references/shield.pngnew file mode 100644index 0000000000..e5db455210Binary files /dev/null and b/autogpt_platform/backend/backend/api/features/experts/avatar_references/shield.png differdiff --git a/autogpt_platform/backend/backend/api/features/experts/avatar_references/slab.png b/autogpt_platform/backend/backend/api/features/experts/avatar_references/slab.pngnew file mode 100644index 0000000000..5bcea1fabbBinary files /dev/null and b/autogpt_platform/backend/backend/api/features/experts/avatar_references/slab.png differdiff --git a/autogpt_platform/backend/backend/api/features/experts/avatar_references/wedge.png b/autogpt_platform/backend/backend/api/features/experts/avatar_references/wedge.pngnew file mode 100644index 0000000000..09fb22ff2eBinary files /dev/null and b/autogpt_platform/backend/backend/api/features/experts/avatar_references/wedge.png differdiff --git a/autogpt_platform/backend/backend/api/features/experts/avatar_routes.py b/autogpt_platform/backend/backend/api/features/experts/avatar_routes.pynew file mode 100644index 0000000000..fdead906ac--- /dev/null+++ b/autogpt_platform/backend/backend/api/features/experts/avatar_routes.py@@ -0,0 +1,43 @@+import uuid++from autogpt_libs.auth import get_user_id, requires_user+from fastapi import APIRouter, BackgroundTasks, HTTPException, Security++from backend.api.features.experts import avatar_jobs+from backend.api.features.experts.avatar_generation import ExpertAvatarRequest+from backend.api.features.experts.avatar_jobs import ExpertAvatarJob+from backend.util.settings import Settings++router = APIRouter(+ prefix="/avatars", tags=["experts"], dependencies=[Security(requires_user)]+)++[email protected]("/generations", operation_id="generate_expert_avatar", status_code=202)+async def generate_expert_avatar(+ request: ExpertAvatarRequest,+ background_tasks: BackgroundTasks,+ user_id: str = Security(get_user_id),+) -> ExpertAvatarJob:+ if not Settings().secrets.openai_api_key:+ raise HTTPException(+ 503,+ "Avatar generation is not configured. Choose a catalog avatar or upload a picture.",+ )+ await avatar_jobs.reserve_generation(user_id)+ job = ExpertAvatarJob()+ try:+ await avatar_jobs.save_job(user_id, job)+ except Exception as exc:+ raise HTTPException(+ 503, "Avatar generation is temporarily unavailable"+ ) from exc+ background_tasks.add_task(avatar_jobs.run_generation, user_id, job, request)+ return job++[email protected]("/generations/{job_id}", operation_id="get_expert_avatar_generation")+async def get_expert_avatar_generation(+ job_id: uuid.UUID, user_id: str = Security(get_user_id)+) -> ExpertAvatarJob:+ return await avatar_jobs.load_job(user_id, job_id)diff --git a/autogpt_platform/backend/backend/api/features/experts/avatar_routes_test.py b/autogpt_platform/backend/backend/api/features/experts/avatar_routes_test.pynew file mode 100644index 0000000000..c0acf22657--- /dev/null+++ b/autogpt_platform/backend/backend/api/features/experts/avatar_routes_test.py@@ -0,0 +1,49 @@+from types import SimpleNamespace+from unittest.mock import AsyncMock++import fastapi+from autogpt_libs.auth.dependencies import get_request_context+from autogpt_libs.auth.jwt_utils import get_jwt_payload+from fastapi.testclient import TestClient++from backend.api.features.experts import avatar_routes+++def test_generation_requires_authentication():+ app = fastapi.FastAPI()+ app.include_router(avatar_routes.router)+ response = TestClient(app).post("/avatars/generations", json={})+ assert response.status_code in (401, 403)+++def test_start_generation_returns_job_and_uses_authenticated_owner(+ monkeypatch, mock_jwt_user+):+ app = fastapi.FastAPI()+ app.include_router(avatar_routes.router)+ app.dependency_overrides[get_jwt_payload] = mock_jwt_user["get_jwt_payload"]+ app.dependency_overrides[get_request_context] = mock_jwt_user["get_request_context"]+ monkeypatch.setattr(+ avatar_routes,+ "Settings",+ lambda: SimpleNamespace(secrets=SimpleNamespace(openai_api_key="test-key")),+ )+ reserve, save, run = AsyncMock(), AsyncMock(), AsyncMock()+ monkeypatch.setattr(avatar_routes.avatar_jobs, "reserve_generation", reserve)+ monkeypatch.setattr(avatar_routes.avatar_jobs, "save_job", save)+ monkeypatch.setattr(avatar_routes.avatar_jobs, "run_generation", run)+ client = TestClient(app)+ response = client.post("/avatars/generations", json={"category": "finance"})+ assert response.status_code == 202+ assert response.json()["status"] == "pending"+ assert response.json()["avatar_url"] is None+ owner = reserve.call_args.args[0]+ assert owner+ assert save.call_args.args[0] == owner+ assert run.call_args.args[0] == owner+ assert str(run.call_args.args[1].id) == response.json()["id"]+ invalid = client.post(+ "/avatars/generations", json={"category": "otto", "user_id": "another-user"}+ )+ assert invalid.status_code == 422+ assert reserve.await_count == 1diff --git a/autogpt_platform/backend/backend/api/features/experts/experts_db_test.py b/autogpt_platform/backend/backend/api/features/experts/experts_db_test.pyindex 46aee982ce..dc8d7dcb0c 100644--- a/autogpt_platform/backend/backend/api/features/experts/experts_db_test.py+++ b/autogpt_platform/backend/backend/api/features/experts/experts_db_test.py@@ -4854,7 +4854,7 @@ async def test_seed_roster_keeps_an_owner_set_avatar((template_id,) = await seed.seed_roster()_seeded_template_ids.append(template_id)hired = await experts_db.hire_expert(test_user.id, template_id, None)- assert hired.expert.avatar_url == entry["avatar_url"]+ assert hired.expert.avatar_url == "/experts/clay/v5/maria-marketing.png"await experts_db.update_avatar(test_user.id, hired.expert.id, "/avatars/mine.svg")monkeypatch.setattr(diff --git a/autogpt_platform/backend/backend/api/features/experts/models.py b/autogpt_platform/backend/backend/api/features/experts/models.pyindex e403d03ca0..296f73cc17 100644--- a/autogpt_platform/backend/backend/api/features/experts/models.py+++ b/autogpt_platform/backend/backend/api/features/experts/models.py@@ -5,6 +5,7 @@ from urllib.parse import urlparsefrom pydantic import BaseModel, Field, TypeAdapter, ValidationError, field_validator+from backend.api.features.experts.avatar_catalog import resolve_avatar_urlfrom backend.data.expert_run_output import OutputTypefrom backend.data.skill_capacity import MAX_SKILLS_PER_EXPERT@@ -132,6 +133,11 @@ class ExpertIdentity(BaseModel):job_title: str | None = Noneis_archived: bool+ @field_validator("avatar_url")+ @classmethod+ def resolve_avatar(cls, value: str | None) -> str | None:+ return resolve_avatar_url(value)+class ExpertSetupItem(BaseModel):"""One thing standing between a scheduled workflow and its schedule.@@ -157,6 +163,11 @@ class ExpertSetupItem(BaseModel):# an ``inputs`` item.missing_inputs: list[str] = Field(default_factory=list)+ @field_validator("expert_avatar_url")+ @classmethod+ def resolve_avatar(cls, value: str | None) -> str | None:+ return resolve_avatar_url(value)+class ExpertCredentialRef(BaseModel):"""One integration credential an expert is allowed to use.@@ -290,6 +301,11 @@ class Expert(BaseModel):# What setup could not install; re-hiring the template retries it.setup_failures: list[str] = []+ @field_validator("avatar_url")+ @classmethod+ def resolve_avatar(cls, value: str | None) -> str | None:+ return resolve_avatar_url(value)+class ExpertBundledSkill(BaseModel):"""A live Skills Hub listing a roster template comes with."""diff --git a/autogpt_platform/backend/backend/api/features/experts/presentation.py b/autogpt_platform/backend/backend/api/features/experts/presentation.pyindex 0c30fe05d2..231738c965 100644--- a/autogpt_platform/backend/backend/api/features/experts/presentation.py+++ b/autogpt_platform/backend/backend/api/features/experts/presentation.py@@ -2,6 +2,7 @@ from typing import Protocol, TypedDictfrom pydantic import BaseModel+from .avatar_catalog import resolve_builtin_avatar_urlfrom .presentation_defaults import MANAGED_PRESENTATION@@ -40,6 +41,7 @@ def template_presentation(row: TemplateLike) -> TemplatePresentation:avatarUrl=row.avatarUrl, bio=row.bio, identity=row.identity, tagline=row.tagline)if row.isTemplate:+ values["avatarUrl"] = resolve_builtin_avatar_url(row.name, row.avatarUrl)for field, (previous, replacement) in MANAGED_PRESENTATION.get(row.name, {}).items():diff --git a/autogpt_platform/backend/backend/api/features/experts/presentation_test.py b/autogpt_platform/backend/backend/api/features/experts/presentation_test.pyindex fb6b6b1184..8c4e2ac3f1 100644--- a/autogpt_platform/backend/backend/api/features/experts/presentation_test.py+++ b/autogpt_platform/backend/backend/api/features/experts/presentation_test.py@@ -54,9 +54,7 @@ def test_template_projection_changes_only_recorded_defaults():tagline="Custom tagline",)result = template_presentation(row)- assert (- result["avatarUrl"] == "/autogpt-characters/v1.1/expert-maria/neutral/128.webp"- )+ assert result["avatarUrl"] == "/experts/clay/v5/maria-marketing.png"assert result["bio"] == "Custom bio"assert result["identity"] == "Custom instructions"@@ -199,3 +197,72 @@ async def test_backfill_reads_bounded_batches_without_offset_skips():assert [call.kwargs["where"]["updatedAt"] for call in db.update_many.await_args_list] == ["0", "1", "2"]+++def test_template_projection_replaces_shared_draft_avatars_only():+ from backend.api.features.experts.presentation import template_presentation++ row = SimpleNamespace(+ name="Noor",+ isTemplate=True,+ avatarUrl="/experts/clay/v1/marketing.png",+ bio=None,+ identity="",+ tagline=None,+ )+ assert (+ template_presentation(row)["avatarUrl"] == "/experts/clay/v5/noor-marketing.png"+ )+ row.avatarUrl = "https://custom.example/image.png"+ assert template_presentation(row)["avatarUrl"] == row.avatarUrl+ row.avatarUrl = "/experts/clay/v1/finance.png"+ assert template_presentation(row)["avatarUrl"] == row.avatarUrl+ row.avatarUrl = "/experts/clay/v1/marketing.png"+ row.isTemplate = False+ assert template_presentation(row)["avatarUrl"] == row.avatarUrl+++async def test_hired_avatar_refresh_is_scoped_to_its_template_and_known_default():+ from unittest.mock import AsyncMock, patch++ from backend.api.features.experts.seed import _backfill_hired_copies++ template = SimpleNamespace(+ id="template",+ name="Noor",+ avatarUrl="/experts/clay/v5/noor-marketing.png",+ jobTitle="Writer",+ tagline="Hi",+ bio=None,+ categories=[],+ role="Communications",+ identity="Instructions",+ )+ hires = [+ SimpleNamespace(+ **{**vars(template), "id": str(i), "updatedAt": str(i), "avatarUrl": url}+ )+ for i, url in enumerate(+ [+ "/experts/clay/v1/marketing.png",+ "https://custom.example/image.png",+ "/experts/clay/v1/finance.png",+ ]+ )+ ]+ db = AsyncMock()+ db.find_many.return_value = hires+ db.update_many.return_value = 1+ with patch(+ "backend.api.features.experts.seed.prisma.models.Expert.prisma", return_value=db+ ):+ assert await _backfill_hired_copies(template, template) == 1+ db.update_many.assert_awaited_once_with(+ where={+ "id": "0",+ "sourceTemplateId": "template",+ "isTemplate": False,+ "updatedAt": "0",+ },+ data={"avatarUrl": "/experts/clay/v5/noor-marketing.png"},+ )diff --git a/autogpt_platform/backend/backend/api/features/experts/routes.py b/autogpt_platform/backend/backend/api/features/experts/routes.pyindex bc31007d14..64816e8197 100644--- a/autogpt_platform/backend/backend/api/features/experts/routes.py+++ b/autogpt_platform/backend/backend/api/features/experts/routes.py@@ -5,6 +5,7 @@ import fastapifrom fastapi import APIRouter, Securityfrom pydantic import BaseModel, Field, field_validator, model_validator+from backend.api.features.experts import avatar_routesfrom backend.api.features.experts import credentials as expert_credentialsfrom backend.api.features.experts import experts_db, schedulingfrom backend.api.features.experts import setup as expert_setup@@ -54,6 +55,8 @@ router = APIRouter(dependencies=[Security(autogpt_auth_lib.requires_user)],)+router.include_router(avatar_routes.router)+# Templates are marketplace content: the expert page shows them to signed-out# visitors, so they live on a router without the session requirement. It must# be mounted before ``router`` so ``/templates`` isn't swallowed bydiff --git a/autogpt_platform/backend/backend/api/features/experts/routes_test.py b/autogpt_platform/backend/backend/api/features/experts/routes_test.pyindex 023153b873..8195661332 100644--- a/autogpt_platform/backend/backend/api/features/experts/routes_test.py+++ b/autogpt_platform/backend/backend/api/features/experts/routes_test.py@@ -176,6 +176,12 @@ def test_list_expert_templates_forwards_search_and_category(return_value=[],)+ mocker.patch.object(+ prisma.models.ExpertSkillListing,+ "prisma",+ return_value=SimpleNamespace(find_many=AsyncMock(return_value=[])),+ )+response = client.get("/experts/templates", params={"search_query": "Maria", "category": "marketing"})diff --git a/autogpt_platform/backend/backend/api/features/experts/seed.py b/autogpt_platform/backend/backend/api/features/experts/seed.pyindex 725f8c13c1..20f6b75f35 100644--- a/autogpt_platform/backend/backend/api/features/experts/seed.py+++ b/autogpt_platform/backend/backend/api/features/experts/seed.py@@ -25,6 +25,11 @@ import prisma.enumsimport prisma.modelsimport prisma.types+from backend.api.features.experts.avatar_catalog import (+ PRESET_AVATAR_URLS,+ resolve_avatar_url,+ resolve_builtin_avatar_url,+)from backend.api.features.experts.models import (ExpertDayOneItem,VoiceSample,@@ -2480,7 +2485,7 @@ async def _upsert_template(entry: RosterEntry) -> prisma.models.Expert:"role": entry["role"],"jobTitle": entry["job_title"],"tagline": entry["tagline"],- "avatarUrl": entry["avatar_url"],+ "avatarUrl": resolve_avatar_url(entry["avatar_url"]),"identity": entry["identity"],"voicePreferences": encode_voice_preferences(entry["voice_preferences"], entry.get("voice_samples") or []@@ -2556,6 +2561,15 @@ async def _backfill_hired_copies(continuebaseline = legacydata = presentation_changes(hire, baseline, template)+ # A hire sitting on a picker preset may have chosen it, and the+ # row cannot say which. Leaving an older catalog image in place+ # costs less than overwriting a choice its owner made, so only+ # URLs the picker cannot produce get migrated. Templates keep the+ # broad match, since nobody edits those.+ if hire.avatarUrl not in PRESET_AVATAR_URLS:+ avatar_url = resolve_builtin_avatar_url(template.name, hire.avatarUrl)+ if avatar_url != hire.avatarUrl:+ data["avatarUrl"] = avatar_urlif rescope and (hire.role, hire.identity) != (template.role,template.identity,diff --git a/autogpt_platform/backend/backend/copilot/tools/expert_avatar.py b/autogpt_platform/backend/backend/copilot/tools/expert_avatar.pydeleted file mode 100644index 02ced1f1cc..0000000000--- a/autogpt_platform/backend/backend/copilot/tools/expert_avatar.py+++ /dev/null@@ -1,163 +0,0 @@-"""Generated expert avatars: a Notion-style face, seeded from the name.--The frontend draws these from a site-relative-``/avatars/notion/<indices>.<color>.svg`` URL, so an expert raised by Otto gets-a face without an upload. The category list, part counts, "none" odds and the-name hash all mirror ``components/molecules/NotionAvatar/helpers.ts``, so a-name seeds the same look on both sides — there is a test asserting it.-"""--# Draw order, back to front. Must match NOTION_CATEGORIES on the frontend.-NOTION_CATEGORIES = [- "face",- "nose",- "mouth",- "eyes",- "eyebrows",- "glasses",- "hair",- "accessories",- "details",- "beard",-]--NOTION_PART_COUNTS = {- "face": 16,- "nose": 14,- "mouth": 20,- "eyes": 14,- "eyebrows": 16,- "glasses": 15,- "hair": 59,- "accessories": 15,- "details": 14,- "beard": 17,-}--# Index 0 draws nothing for these, and sampling uniformly would put glasses and-# a beard on almost every face.-_NONE_ODDS = {- "glasses": 0.55,- "beard": 0.6,- "accessories": 0.7,- "details": 0.65,- "hair": 0.04,-}--# Named looks Otto can ask for, each a pool of parts that read that way. The-# specific part inside a pool stays seeded, so two experts wearing glasses do-# not end up in identical frames.-AVATAR_GLASSES = {- "none": [0],- "glasses": [1, 2, 3, 4, 5, 6, 14],- "sunglasses": [7, 8, 9, 10, 11, 12],-}--AVATAR_BEARD = {- "none": [0],- "stubble": [2, 5, 12],- "full": [1, 3, 4, 13],- "moustache": [14, 15],-}--AVATAR_HAT = {- "none": [0],- "cap": [11, 12],-}--AVATAR_COLORS = [- "rose",- "red",- "orange",- "amber",- "yellow",- "lime",- "green",- "emerald",- "teal",- "cyan",- "sky",- "blue",- "indigo",- "violet",- "fuchsia",-]---def avatar_color_for_token(token: str | None) -> str | None:- """The accent family is the avatar colour, so no two accents share a face."""- if not token:- return None- family = token.split("-", 1)[0]- return family if family in AVATAR_COLORS else None---def _hash_seed(value: str) -> int:- seed = 2166136261- for char in value:- seed ^= ord(char)- seed = (seed * 16777619) & 0xFFFFFFFF- return seed---def _seeded_random(seed: int):- state = seed or 1-- def next_value() -> float:- nonlocal state- state = (state * 1664525 + 1013904223) & 0xFFFFFFFF- return state / 4294967296-- return next_value---def seeded_avatar(name: str) -> tuple[dict[str, int], str]:- """Parts and colour the frontend would seed for *name*.-- Draws in the same order and the same number of times as ``randomNotionConfig``:- one value per always-drawn category, and for a category that can be absent,- one value for the coin flip plus a second only when it lands on a part.- """- random = _seeded_random(_hash_seed(name.lower()))- parts: dict[str, int] = {}- for category in NOTION_CATEGORIES:- count = NOTION_PART_COUNTS[category]- none_odds = _NONE_ODDS.get(category)- if none_odds is None:- parts[category] = int(random() * count)- elif random() < none_odds:- parts[category] = 0- else:- parts[category] = 1 + int(random() * (count - 1))- parts["details"] = 0- color = AVATAR_COLORS[int(random() * len(AVATAR_COLORS))]- return parts, color---def _pool_choice(name: str, category: str, pool: list[int]) -> int:- """Deterministic pick within a named look, off the same name."""- return pool[_hash_seed(f"{name.lower()}:{category}") % len(pool)]---def build_avatar_url(- name: str,- *,- glasses: str | None = None,- beard: str | None = None,- hat: str | None = None,- color_token: str | None = None,-) -> str:- """Resolve the generated-avatar URL, seeding whatever was not chosen."""- parts, seeded_color = seeded_avatar(name)-- for category, choice, options in (- ("glasses", glasses, AVATAR_GLASSES),- ("beard", beard, AVATAR_BEARD),- ("accessories", hat, AVATAR_HAT),- ):- if choice and choice in options:- parts[category] = _pool_choice(name, category, options[choice])-- color = avatar_color_for_token(color_token) or seeded_color- indices = "-".join(str(parts[category]) for category in NOTION_CATEGORIES)- return f"/avatars/notion/{indices}.{color}.svg"diff --git a/autogpt_platform/backend/backend/copilot/tools/expert_avatar_test.py b/autogpt_platform/backend/backend/copilot/tools/expert_avatar_test.pydeleted file mode 100644index d35edb1eb2..0000000000--- a/autogpt_platform/backend/backend/copilot/tools/expert_avatar_test.py+++ /dev/null@@ -1,86 +0,0 @@-from backend.copilot.tools.expert_avatar import (- AVATAR_BEARD,- AVATAR_COLORS,- AVATAR_GLASSES,- AVATAR_HAT,- NOTION_CATEGORIES,- NOTION_PART_COUNTS,- avatar_color_for_token,- build_avatar_url,- seeded_avatar,-)--# Golden vectors generated by running the frontend's notionConfigForName over-# the same names. Literals, not a re-run of build_avatar_url, so a drift in the-# FNV/LCG constants, the draw order or the "none" odds fails here rather than-# letting the two sides diverge silently.-FRONTEND_SEEDED = {- "Maria": "/avatars/notion/10-2-5-6-13-6-1-0-0-0.green.svg",- "Frankie": "/avatars/notion/3-3-6-4-5-12-31-0-0-0.orange.svg",- "Max": "/avatars/notion/4-1-10-0-2-0-48-0-0-0.red.svg",- "Ana": "/avatars/notion/11-12-17-2-6-0-11-6-0-0.green.svg",- "Otto": "/avatars/notion/11-12-11-10-7-0-32-5-0-0.teal.svg",- "Jules": "/avatars/notion/12-5-13-13-3-9-2-0-0-2.yellow.svg",- "Priya": "/avatars/notion/2-12-18-1-15-2-55-11-0-11.indigo.svg",- "Sam": "/avatars/notion/4-11-0-1-13-0-0-6-0-16.red.svg",- # Non-BMP character (emoji): pins hashSeed/_hash_seed to hash by code- # point on both sides, not by UTF-16 code unit.- "Otto 🤖": "/avatars/notion/7-10-18-11-6-5-37-3-0-1.teal.svg",-}---def test_seeding_matches_the_frontend():- for name, expected in FRONTEND_SEEDED.items():- assert build_avatar_url(name) == expected---def test_seeding_is_stable_and_case_insensitive():- assert build_avatar_url("Maria") == build_avatar_url("maria")- assert build_avatar_url("Maria") == build_avatar_url("Maria")---def test_every_seeded_part_is_in_range():- for name in ("", "a", "Zoë", "a much longer expert name than usual"):- parts, color = seeded_avatar(name)- assert set(parts) == set(NOTION_CATEGORIES)- for category, index in parts.items():- assert 0 <= index < NOTION_PART_COUNTS[category]- assert parts["details"] == 0- assert color in AVATAR_COLORS---def test_named_looks_override_only_their_own_category():- seeded, _ = seeded_avatar("Maria")- url = build_avatar_url("Maria", glasses="sunglasses")- indices = [int(part) for part in url.split("/")[-1].split(".")[0].split("-")]- chosen = dict(zip(NOTION_CATEGORIES, indices))- assert chosen["glasses"] in AVATAR_GLASSES["sunglasses"]- for category in NOTION_CATEGORIES:- if category != "glasses":- assert chosen[category] == seeded[category]---def test_named_looks_resolve_inside_their_pool():- for choice, pool in AVATAR_BEARD.items():- url = build_avatar_url("Maria", beard=choice)- indices = [int(p) for p in url.split("/")[-1].split(".")[0].split("-")]- assert dict(zip(NOTION_CATEGORIES, indices))["beard"] in pool- for choice, pool in AVATAR_HAT.items():- url = build_avatar_url("Maria", hat=choice)- indices = [int(p) for p in url.split("/")[-1].split(".")[0].split("-")]- assert dict(zip(NOTION_CATEGORIES, indices))["accessories"] in pool---def test_an_unknown_named_look_falls_back_to_the_seeded_part():- assert build_avatar_url("Maria", glasses="monocle") == build_avatar_url("Maria")---def test_color_token_maps_to_an_avatar_color():- assert avatar_color_for_token("violet-300") == "violet"- assert avatar_color_for_token("sky-500") == "sky"- # Families that used to collapse onto one disc now each keep their own.- assert avatar_color_for_token("emerald-300") == "emerald"- assert avatar_color_for_token("teal-300") == "teal"- assert avatar_color_for_token("chartreuse-300") is None- assert avatar_color_for_token(None) is None- assert build_avatar_url("Maria", color_token="violet-300").endswith(".violet.svg")diff --git a/autogpt_platform/backend/backend/copilot/tools/expert_change_test.py b/autogpt_platform/backend/backend/copilot/tools/expert_change_test.pyindex 114ce3dff6..5317fa3c23 100644--- a/autogpt_platform/backend/backend/copilot/tools/expert_change_test.py+++ b/autogpt_platform/backend/backend/copilot/tools/expert_change_test.py@@ -49,15 +49,13 @@ _CHARTER = {"job_title": "Executive Assistant","tagline": "Sorts your morning inbox and drafts the routine replies.","color": "violet-300",- "avatar_glasses": "glasses",- "avatar_beard": "none",- "avatar_hat": "none",+ "avatar_category": "finance","about": "You group the morning inbox and draft routine replies.","boundaries": "You never send a reply yourself.",}-AVATAR_KEYS = {"avatar_glasses", "avatar_beard", "avatar_hat"}+AVATAR_KEYS = {"avatar_category"}class _FakeRedis:@@ -234,45 +232,25 @@ class TestPreviewNeverWrites:assert resp.preview.about == _CHARTER["about"]assert resp.preview.boundaries == _CHARTER["boundaries"]assert resp.preview.color == _CHARTER["color"]- assert (- resp.preview.avatar_url- == "/avatars/notion/11-12-11-10-7-4-32-0-0-0.violet.svg"- )+ assert resp.preview.avatar_url == "/experts/clay/v1/finance.png"db.create_raised_expert.assert_not_called()@pytest.mark.asyncio(loop_scope="session")- async def test_raise_seeds_an_avatar_from_the_name_when_none_is_picked(self):+ async def test_raise_defaults_to_warm_stone_without_a_palette(self):with _env():charter = {k: v for k, v in _CHARTER.items() if k not in AVATAR_KEYS}resp = await _raise(make_session(_USER), **charter)assert isinstance(resp, ExpertChangeProposedResponse)- # Golden vector cross-checked against the frontend's- # notionConfigForName: "otto" seeds these ten parts and the violet- # token maps to lavender. A literal, not build_avatar_url(), so a drift- # in the FNV/LCG constants, the draw order or the "none" odds fails- # here instead of comparing the implementation to itself.- assert (- resp.preview.avatar_url- == "/avatars/notion/11-12-11-10-7-0-32-5-0-0.violet.svg"- )-- @pytest.mark.asyncio(loop_scope="session")- async def test_raise_rejects_unknown_avatar_glasses(self):- with _env():- resp = await _raise(- make_session(_USER), **{**_CHARTER, "avatar_glasses": "monocle"}- )- assert isinstance(resp, ErrorResponse)- assert "avatar_glasses" in resp.message+ assert resp.preview.avatar_url == "/experts/clay/v1/content.png"@pytest.mark.asyncio(loop_scope="session")- async def test_raise_rejects_an_unknown_avatar_beard(self):+ async def test_raise_rejects_reserved_otto_palette(self):with _env():resp = await _raise(- make_session(_USER), **{**_CHARTER, "avatar_beard": "muttonchops"}+ make_session(_USER), **{**_CHARTER, "avatar_category": "otto"})assert isinstance(resp, ErrorResponse)- assert "avatar_beard" in resp.message+ assert "avatar_category" in resp.message@pytest.mark.asyncio(loop_scope="session")async def test_hire_preview_carries_the_template_tagline(self):diff --git a/autogpt_platform/backend/backend/copilot/tools/raise_expert.py b/autogpt_platform/backend/backend/copilot/tools/raise_expert.pyindex 4551e320e8..f7e3a9ddce 100644--- a/autogpt_platform/backend/backend/copilot/tools/raise_expert.py+++ b/autogpt_platform/backend/backend/copilot/tools/raise_expert.py@@ -13,6 +13,7 @@ from typing import Anyfrom pydantic import BaseModel, Field, ValidationError+from backend.api.features.experts.avatar_catalog import PRESETSfrom backend.api.features.experts.copy_policy import EXPERT_CREATION_COPY_POLICYfrom backend.api.features.experts.models import (EXPERT_COLOR_MAX_LENGTH,@@ -27,7 +28,6 @@ from backend.data.db_accessors import experts_dbfrom backend.data.redis_client import get_redis_asyncfrom .base import BaseTool-from .expert_avatar import AVATAR_BEARD, AVATAR_GLASSES, AVATAR_HAT, build_avatar_urlfrom .expert_proposal import (ExpertChangeProposal,autopilot_session_guard,@@ -124,22 +124,10 @@ class RaiseExpertTool(BaseTool):"enum": COLOR_TOKENS,"description": "Avatar/chat accent token.",},- "avatar_glasses": {+ "avatar_category": {"type": "string",- "enum": list(AVATAR_GLASSES),- "description": (- "Role-appropriate eyewear; omit for name-seeded choice."- ),- },- "avatar_beard": {- "type": "string",- "enum": list(AVATAR_BEARD),- "description": ("Facial hair; omit for a name-seeded choice."),- },- "avatar_hat": {- "type": "string",- "enum": list(AVATAR_HAT),- "description": ("Headwear; omit for a name-seeded choice."),+ "enum": list(PRESETS),+ "description": "Starting clay avatar palette. Saved independently of name and role; omit for warm stone.",},"about": {"type": "string",@@ -176,9 +164,7 @@ class RaiseExpertTool(BaseTool):job_title: str = "",tagline: str = "",color: str = "",- avatar_glasses: str = "",- avatar_beard: str = "",- avatar_hat: str = "",+ avatar_category: str = "content",about: str = "",boundaries: str = "",voice_preferences: str = "",@@ -199,22 +185,10 @@ class RaiseExpertTool(BaseTool):),session_id=session_id,)- avatar_glasses = avatar_glasses.strip()- avatar_beard = avatar_beard.strip()- avatar_hat = avatar_hat.strip()- for field, value, options in (- ("avatar_glasses", avatar_glasses, AVATAR_GLASSES),- ("avatar_beard", avatar_beard, AVATAR_BEARD),- ("avatar_hat", avatar_hat, AVATAR_HAT),- ):- if value and value not in options:- return ErrorResponse(- message=(- f"Invalid expert charter — {field} must be one of: "- + ", ".join(options)- ),- session_id=session_id,- )+ if avatar_category not in PRESETS:+ return ErrorResponse(+ message="Invalid avatar_category", session_id=session_id+ )try:params = _RaiseParams(# Collapsed, not just stripped: the roster block in@@ -278,13 +252,7 @@ class RaiseExpertTool(BaseTool):job_title=params.job_title,tagline=params.tagline,color=params.color,- avatar_url=build_avatar_url(- params.name,- glasses=avatar_glasses or None,- beard=avatar_beard or None,- hat=avatar_hat or None,- color_token=params.color or None,- ),+ avatar_url=PRESETS[avatar_category].url,about=soul.identity or "",boundaries=soul.boundaries,voice_preferences=soul.voice_preferences or "",diff --git a/autogpt_platform/backend/backend/util/settings.py b/autogpt_platform/backend/backend/util/settings.pyindex e38eed34ee..4b15afa733 100644--- a/autogpt_platform/backend/backend/util/settings.py+++ b/autogpt_platform/backend/backend/util/settings.py@@ -600,6 +600,11 @@ class Config(UpdateTrackingModel["Config"], BaseSettings):description="MailerLite group that receives the monthly changelog campaign",)+ expert_avatar_model: str = Field(+ default="gpt-image-1.5",+ description="OpenAI model for transparent expert PNG avatars",+ )+use_agent_image_generation_v2: bool = Field(default=True,description="Whether to use the new agent image generation service",diff --git a/autogpt_platform/frontend/public/experts/clay/v1/PROMPTS.md b/autogpt_platform/frontend/public/experts/clay/v1/PROMPTS.mdnew file mode 100644index 0000000000..754ae3d2cb--- /dev/null+++ b/autogpt_platform/frontend/public/experts/clay/v1/PROMPTS.md@@ -0,0 +1,73 @@+# Draft avatar asset prompts++Generated with Codex image generation (model version not exposed). Source references: Significant-Gravitas/expert-design-system edition 6, commit 0e4001a. Reference JPEGs were supplied to image generation. PNGs were then resized to 512px with sharp, preserving alpha.++These are starter concepts pending art review, not approved replacements for every roster identity. Marketing uses the Jules concept; finance uses Mina; sales uses Max; development uses Devon. The remaining assets use the category prompts below. Otto keeps the asset already shipped on dev.++## mina-curious++Use case: stylized-concept+Asset type: one square PNG avatar concept for an AutoGPT specialist, following the supplied Clay & Rock design system.+References: the supplied terracotta Maria and sage Mina images set MATERIAL, LIGHTING, FACIAL CONSTRUCTION and two-mass form. Match this family closely. Individual shape and expression are specified below.+Exactly two primary masses: a larger irregular head touching a compact stable limbless base. Head 55–65% of visible height. Soft narrow body-colored contact shadow, never a black collar, visible neck or open gap. Smooth rounded edges, controlled asymmetry, solid matte clay/mineral material with very faint grain.+One main mineral hue across head and base. Only cream inlay and charcoal facial marks add colors. Exactly one broad flowing cream inlay confined to LOWER BASE, with a subtle narrow recessed boundary. 8–20% of visible figure area. Keep the entire head main color. Inlay edges smooth and rounded; no pointed wedge, thin piping, sticker, painted stripe or black border.+Facial marks should be charcoal, clear and simple. Change eyes, brows and mouth to the requested expression; no nose, teeth, blush, eye highlights, tears, sweat, glasses, props, accessories, costume or limbs. No purple and no octopus shape for specialists.+Output: one complete character, no labels/text/watermark, no contact sheet. Square canvas, genuine transparent alpha background, full silhouette centered with 10% top/bottom safe margin and a shared ground baseline. Front or slight three-quarter camera. Soft broad upper-left light, quiet close contact shadow. Keep detail clean enough for small UI use.++Character: Mina, bookkeeping expert. Sage body #A5B09A, cream #EAE2D5. Match the supplied SAGE reference's soft upright slab head, rounded top rising to the right, and compact stable base. Preserve that sage reference shape and lower-base cream route closely.+Expression: CURIOUS / asking a quiet question. Open charcoal oval eyes, one brow lifted slightly higher than the other, tiny round charcoal mouth. Thoughtful and approachable, not shocked. No question-mark prop or symbol.++## max-pleased++Use case: stylized-concept+Asset type: one square PNG avatar concept for an AutoGPT specialist, following the supplied Clay & Rock design system.+References: the supplied terracotta Maria and sage Mina images set MATERIAL, LIGHTING, FACIAL CONSTRUCTION and two-mass form. Match this family closely. Individual shape and expression are specified below.+Exactly two primary masses: a larger irregular head touching a compact stable limbless base. Head 55–65% of visible height. Soft narrow body-colored contact shadow, never a black collar, visible neck or open gap. Smooth rounded edges, controlled asymmetry, solid matte clay/mineral material with very faint grain.+One main mineral hue across head and base. Only cream inlay and charcoal facial marks add colors. Exactly one broad flowing cream inlay confined to LOWER BASE, with a subtle narrow recessed boundary. 8–20% of visible figure area. Keep the entire head main color. Inlay edges smooth and rounded; no pointed wedge, thin piping, sticker, painted stripe or black border.+Facial marks should be charcoal, clear and simple. Change eyes, brows and mouth to the requested expression; no nose, teeth, blush, eye highlights, tears, sweat, glasses, props, accessories, costume or limbs. No purple and no octopus shape for specialists.+Output: one complete character, no labels/text/watermark, no contact sheet. Square canvas, genuine transparent alpha background, full silhouette centered with 10% top/bottom safe margin and a shared ground baseline. Front or slight three-quarter camera. Soft broad upper-left light, quiet close contact shadow. Keep detail clean enough for small UI use.++Character: Max, sales expert. Ochre body #C9A35B, cream #EAE2D5. Broad rounded rectangular head with gently uneven top and generous round corners; wider than tall, visibly different from the wedge and sage slab references. Compact squat base with an off-center flowing cream curve. Stable solid figure.+Expression: PLEASED / quietly happy. Two small upward-curved closed eyes, relaxed slightly raised brows and a small closed smile. Subtle satisfaction, no big grin, no teeth, no confetti. Head must remain broad, not a pointed wedge.++## devon-focused++Use case: stylized-concept+Asset type: one square PNG avatar concept for an AutoGPT specialist, following the supplied Clay & Rock design system.+References: the supplied terracotta Maria and sage Mina images set MATERIAL, LIGHTING, FACIAL CONSTRUCTION and two-mass form. Match this family closely. Individual shape and expression are specified below.+Exactly two primary masses: a larger irregular head touching a compact stable limbless base. Head 55–65% of visible height. Soft narrow body-colored contact shadow, never a black collar, visible neck or open gap. Smooth rounded edges, controlled asymmetry, solid matte clay/mineral material with very faint grain.+One main mineral hue across head and base. Only cream inlay and charcoal facial marks add colors. Exactly one broad flowing cream inlay confined to LOWER BASE, with a subtle narrow recessed boundary. 8–20% of visible figure area. Keep the entire head main color. Inlay edges smooth and rounded; no pointed wedge, thin piping, sticker, painted stripe or black border.+Facial marks should be charcoal, clear and simple. Change eyes, brows and mouth to the requested expression; no nose, teeth, blush, eye highlights, tears, sweat, glasses, props, accessories, costume or limbs. No purple and no octopus shape for specialists.+Output: one complete character, no labels/text/watermark, no contact sheet. Square canvas, genuine transparent alpha background, full silhouette centered with 10% top/bottom safe margin and a shared ground baseline. Front or slight three-quarter camera. Soft broad upper-left light, quiet close contact shadow. Keep detail clean enough for small UI use.++Character: Devon, application security expert. Charcoal mineral body anchored to #777570, cream #EAE2D5. Head is a wide low rounded pebble with a soft SHALLOW BOWL contour: gently concave upper edge with very blunt ends, convex underside, no sharp tips or horns. Compact offset base. Distinct from both Maria's wedge and Mina's upright slab.+Expression: FOCUSED / concentrating on work. Compact open oval eyes, low gently angled brows and a short diagonal closed mouth. Attentive, not angry or scowling. Keep a softly lit lighter gray facial plane in the same material hue, so near-black facial marks remain visible. No cream on the head and no separate face panel.++## support++Create ONE AutoGPT Clay & Rock specialist avatar PNG. Follow the reference material and small charcoal facial construction, but obey the new silhouette/color below. Exactly two irregular smooth matte clay masses: head 60% of height, touching a compact base, no limbs/neck/gap/black collar. Main mineral color on both forms, no cream on head. One small broad FLOWING cream inlay entirely on lower base, narrow recessed material join, no sharp wedge or pointed tips. Neutral friendly face: oval charcoal eyes, relaxed brows, tiny closed smile. No accessories/props/text. Soft upper-left studio light, minimal grain, genuine transparent alpha background. Square, full silhouette centered, 80% canvas height with all margins clear. Muted coral #CB9182. Head a soft upright teardrop with a BLUNT rounded point, leaning gently left. Broad compact asymmetric base.++## operations++Create ONE AutoGPT Clay & Rock specialist avatar PNG. Follow the reference material and small charcoal facial construction, but obey the new silhouette/color below. Exactly two irregular smooth matte clay masses: head 60% of height, touching a compact base, no limbs/neck/gap/black collar. Main mineral color on both forms, no cream on head. One small broad FLOWING cream inlay entirely on lower base, narrow recessed material join, no sharp wedge or pointed tips. Neutral friendly face: oval charcoal eyes, relaxed brows, tiny closed smile. No accessories/props/text. Soft upper-left studio light, minimal grain, genuine transparent alpha background. Square, full silhouette centered, 80% canvas height with all margins clear. Slate blue #98AFC6. Wide rounded crescent head with a shallow concave top and VERY BLUNT ends, no sharp horns. Squat offset base.++## research++Create ONE AutoGPT Clay & Rock specialist avatar PNG. Follow the reference material and small charcoal facial construction, but obey the new silhouette/color below. Exactly two irregular smooth matte clay masses: head 60% of height, touching a compact base, no limbs/neck/gap/black collar. Main mineral color on both forms, no cream on head. One small broad FLOWING cream inlay entirely on lower base, narrow recessed material join, no sharp wedge or pointed tips. Neutral friendly face: oval charcoal eyes, relaxed brows, tiny closed smile. No accessories/props/text. Soft upper-left studio light, minimal grain, genuine transparent alpha background. Square, full silhouette centered, 80% canvas height with all margins clear. Olive #AAA77A. Wide low irregular pebble head, slightly flatter upper-left slope, short broad base. Distinct low silhouette.++## content++Create ONE AutoGPT Clay & Rock specialist avatar PNG. Follow the reference material and small charcoal facial construction, but obey the new silhouette/color below. Exactly two irregular smooth matte clay masses: head 60% of height, touching a compact base, no limbs/neck/gap/black collar. Main mineral color on both forms, no cream on head. One small broad FLOWING cream inlay entirely on lower base, narrow recessed material join, no sharp wedge or pointed tips. Neutral friendly face: oval charcoal eyes, relaxed brows, tiny closed smile. No accessories/props/text. Soft upper-left studio light, minimal grain, genuine transparent alpha background. Square, full silhouette centered, 80% canvas height with all margins clear. Warm stone #B5ADA0. Rounded triangular pebble head with a soft centered peak, broad flat bottom. Compact broad base. Warm neutral gray stone color.+++## marketing++Use case: stylized-concept+Asset type: single static PNG avatar concept for Jules, an AutoGPT Social & Content specialist. This is a feasibility test of the supplied clay/rock character design system.+Input images: Image 1 is the approved Maria terracotta master, STYLE reference only: match its material, facial construction, camera and soft light, but create a DISTINCT silhouette for Jules. Image 2 is an approved sage specialist, reference for the soft head/base contact with no dark collar and broad flowing lower cream inlay. Do not copy its sage color.+Primary request: Create ONE Jules character with a taller arched wedge head, curved right shoulder and rounded crest, clearly distinct from Maria's broad diagonally sloping wedge. Exactly two irregular primary masses: a larger head (60% of character height) sitting directly on a compact low asymmetrical base (40%). No limbs, neck or additional stones.+Palette/materials: mineral terracotta body anchored to #C47F5C throughout head and base, matte smooth tactile clay/rock with very faint fine grain; cream anchored to #EAE2D5; charcoal eyes, brows and mouth. Lighting shades within the same hue are fine.+Inlay: One small broad flowing cream curve entirely within the LOWER BASE, 8–20% of total visible character area. Give Jules a different route from Maria: the broad curve rises from lower left of base and gently curves toward center-right below the head join. Round flowing boundaries, narrow visibly recessed material groove. Head remains wholly terracotta. No cream head marks, tips or echoes. No sharp triangle, wedge-shaped patch, narrow piping, painted stripe, black outline, black collar or open gap.+Face: small charcoal oval eyes, relaxed subtle brows and a tiny closed gentle smile, all comfortably visible at avatar size. Match reference face construction. No nose, teeth, blush, eyelashes, costume, glasses, props, accessories or logos. One neutral friendly expression only.+Composition: square image, transparent background with genuine alpha; centered full silhouette with equal generous safe margins, character occupies 80% of canvas height, nothing clipped, quiet close contact shadow only. Front or slight three-quarter view consistent with reference. Soft broad key light from upper left. No scene, pedestal, text, label, border or watermark.+Quality: clean high quality sculptural 3D clay render; simplified grain and clean edges for small UI use. Do not generate a contact sheet.diff --git a/autogpt_platform/frontend/public/experts/clay/v1/content.png b/autogpt_platform/frontend/public/experts/clay/v1/content.pngnew file mode 100644index 0000000000..cc9fd0a22eBinary files /dev/null and b/autogpt_platform/frontend/public/experts/clay/v1/content.png differdiff --git a/autogpt_platform/frontend/public/experts/clay/v1/development.png b/autogpt_platform/frontend/public/experts/clay/v1/development.pngnew file mode 100644index 0000000000..5ada130799Binary files /dev/null and b/autogpt_platform/frontend/public/experts/clay/v1/development.png differdiff --git a/autogpt_platform/frontend/public/experts/clay/v1/finance.png b/autogpt_platform/frontend/public/experts/clay/v1/finance.pngnew file mode 100644index 0000000000..669e9afd7dBinary files /dev/null and b/autogpt_platform/frontend/public/experts/clay/v1/finance.png differdiff --git a/autogpt_platform/frontend/public/experts/clay/v1/marketing.png b/autogpt_platform/frontend/public/experts/clay/v1/marketing.pngnew file mode 100644index 0000000000..4bc84544c3Binary files /dev/null and b/autogpt_platform/frontend/public/experts/clay/v1/marketing.png differdiff --git a/autogpt_platform/frontend/public/experts/clay/v1/operations.png b/autogpt_platform/frontend/public/experts/clay/v1/operations.pngnew file mode 100644index 0000000000..dc4017c53dBinary files /dev/null and b/autogpt_platform/frontend/public/experts/clay/v1/operations.png differdiff --git a/autogpt_platform/frontend/public/experts/clay/v1/research.png b/autogpt_platform/frontend/public/experts/clay/v1/research.pngnew file mode 100644index 0000000000..7e833dcf06Binary files /dev/null and b/autogpt_platform/frontend/public/experts/clay/v1/research.png differdiff --git a/autogpt_platform/frontend/public/experts/clay/v1/sales.png b/autogpt_platform/frontend/public/experts/clay/v1/sales.pngnew file mode 100644index 0000000000..cb759ace59Binary files /dev/null and b/autogpt_platform/frontend/public/experts/clay/v1/sales.png differdiff --git a/autogpt_platform/frontend/public/experts/clay/v1/support.png b/autogpt_platform/frontend/public/experts/clay/v1/support.pngnew file mode 100644index 0000000000..5b4b367fdaBinary files /dev/null and b/autogpt_platform/frontend/public/experts/clay/v1/support.png differdiff --git a/autogpt_platform/frontend/public/experts/clay/v2/PROMPTS.json b/autogpt_platform/frontend/public/experts/clay/v2/PROMPTS.jsonnew file mode 100644index 0000000000..21ad58c0af--- /dev/null+++ b/autogpt_platform/frontend/public/experts/clay/v2/PROMPTS.json@@ -0,0 +1,100 @@+[+ {+ "id": "marco",+ "prompt": "Use case: stylized-concept. Asset: one production AutoGPT expert avatar PNG. Generate ONE character only. Input image is a MATERIAL, LIGHTING and FACE STYLE reference only: do NOT copy its outline. Follow the explicit new outline below, visibly distinct at 64px. Two stacked irregular solid stone/clay masses, larger head directly touching a compact stable limbless base, head about 55–65 percent of total height. Matte tactile clay with very fine grain and rounded edges. One mineral hue across both masses, charcoal simple face. One small broad flowing cream #EAE2D5 inlay with narrow recessed seam belongs entirely on LOWER BASE, about 8–20 percent of figure area; head remains wholly main color. No cream head patches, no rigid diagonal bands, no pointed cream triangles, no black neck seam, no gaps, no limbs, no ears, no horns, no neck, no props, no clothes, no accessories, no text, no logos, no purple. Soft upper-left studio lighting, near-frontal view. Exactly square 1024x1024 transparent PNG with real alpha, no background, no checkerboard, no pedestal, faint contact shadow. Full character centered at 82 percent of canvas height, safe margins.\nIdentity: Marco. Color: Rust #A94F36. HEAD OUTLINE: a very broad low rounded rectangular slab head, nearly twice as wide as tall, slightly tilted down at right. BASE OUTLINE: short broad flattened oval base. CREAM PATH: low left-to-right S curve. FACE: focused compact oval eyes, gently angled brows, tiny closed smile.\nPRIORITY: The new Rust #A94F36 color and the specified new head outline MUST replace the reference color and outline. Keep material and face style only."+ },+ {+ "id": "noor",+ "prompt": "Use case: stylized-concept. Asset: one production AutoGPT expert avatar PNG. Generate ONE character only. Input image is a MATERIAL, LIGHTING and FACE STYLE reference only: do NOT copy its outline. Follow the explicit new outline below, visibly distinct at 64px. Two stacked irregular solid stone/clay masses, larger head directly touching a compact stable limbless base, head about 55–65 percent of total height. Matte tactile clay with very fine grain and rounded edges. One mineral hue across both masses, charcoal simple face. One small broad flowing cream #EAE2D5 inlay with narrow recessed seam belongs entirely on LOWER BASE, about 8–20 percent of figure area; head remains wholly main color. No cream head patches, no rigid diagonal bands, no pointed cream triangles, no black neck seam, no gaps, no limbs, no ears, no horns, no neck, no props, no clothes, no accessories, no text, no logos, no purple. Soft upper-left studio lighting, near-frontal view. Exactly square 1024x1024 transparent PNG with real alpha, no background, no checkerboard, no pedestal, faint contact shadow. Full character centered at 82 percent of canvas height, safe margins.\nIdentity: Noor. Color: Dusty rose #C07F91. HEAD OUTLINE: a squat asymmetric dome head, arched upper edge and flat rounded lower edge, offset slightly left. BASE OUTLINE: tall narrow rounded tapered base. CREAM PATH: rounded cream pool rising from bottom right. FACE: friendly oval eyes and tiny smile.\nPRIORITY: The new Dusty rose #C07F91 color and the specified new head outline MUST replace the reference color and outline. Keep material and face style only."+ },+ {+ "id": "remy",+ "prompt": "Use case: stylized-concept. Asset: one production AutoGPT expert avatar PNG. Generate ONE character only. Input image is a MATERIAL, LIGHTING and FACE STYLE reference only: do NOT copy its outline. Follow the explicit new outline below, visibly distinct at 64px. Two stacked irregular solid stone/clay masses, larger head directly touching a compact stable limbless base, head about 55–65 percent of total height. Matte tactile clay with very fine grain and rounded edges. One mineral hue across both masses, charcoal simple face. One small broad flowing cream #EAE2D5 inlay with narrow recessed seam belongs entirely on LOWER BASE, about 8–20 percent of figure area; head remains wholly main color. No cream head patches, no rigid diagonal bands, no pointed cream triangles, no black neck seam, no gaps, no limbs, no ears, no horns, no neck, no props, no clothes, no accessories, no text, no logos, no purple. Soft upper-left studio lighting, near-frontal view. Exactly square 1024x1024 transparent PNG with real alpha, no background, no checkerboard, no pedestal, faint contact shadow. Full character centered at 82 percent of canvas height, safe margins.\nIdentity: Remy. Color: Sea glass #7DB5A9. HEAD OUTLINE: a tall kidney-bean head with a strong inward curve on its left side and a full convex right side. BASE OUTLINE: wide low rounded trapezoid base. CREAM PATH: broad rolling curl from bottom left. FACE: curious oval eyes, one raised brow, small closed mouth.\nPRIORITY: The new Sea glass #7DB5A9 color and the specified new head outline MUST replace the reference color and outline. Keep material and face style only."+ },+ {+ "id": "quinn",+ "prompt": "Use case: stylized-concept. Asset: one production AutoGPT expert avatar PNG. Generate ONE character only. Input image is a MATERIAL, LIGHTING and FACE STYLE reference only: do NOT copy its outline. Follow the explicit new outline below, visibly distinct at 64px. Two stacked irregular solid stone/clay masses, larger head directly touching a compact stable limbless base, head about 55–65 percent of total height. Matte tactile clay with very fine grain and rounded edges. One mineral hue across both masses, charcoal simple face. One small broad flowing cream #EAE2D5 inlay with narrow recessed seam belongs entirely on LOWER BASE, about 8–20 percent of figure area; head remains wholly main color. No cream head patches, no rigid diagonal bands, no pointed cream triangles, no black neck seam, no gaps, no limbs, no ears, no horns, no neck, no props, no clothes, no accessories, no text, no logos, no purple. Soft upper-left studio lighting, near-frontal view. Exactly square 1024x1024 transparent PNG with real alpha, no background, no checkerboard, no pedestal, faint contact shadow. Full character centered at 82 percent of canvas height, safe margins.\nIdentity: Quinn. Color: Olive #AAA77A. HEAD OUTLINE: a diamond-shaped stone head with FOUR extremely blunt rounded corners, wider at middle, no sharp tip. BASE OUTLINE: low broad round base. CREAM PATH: gentle upward U curve at bottom right. FACE: focused eyes, relaxed low brows, tiny diagonal mouth."+ },+ {+ "id": "jordan",+ "prompt": "Use case: stylized-concept. Asset: one production AutoGPT expert avatar PNG. Generate ONE character only. Input image is a MATERIAL, LIGHTING and FACE STYLE reference only: do NOT copy its outline. Follow the explicit new outline below, visibly distinct at 64px. Two stacked irregular solid stone/clay masses, larger head directly touching a compact stable limbless base, head about 55–65 percent of total height. Matte tactile clay with very fine grain and rounded edges. One mineral hue across both masses, charcoal simple face. One small broad flowing cream #EAE2D5 inlay with narrow recessed seam belongs entirely on LOWER BASE, about 8–20 percent of figure area; head remains wholly main color. No cream head patches, no rigid diagonal bands, no pointed cream triangles, no black neck seam, no gaps, no limbs, no ears, no horns, no neck, no props, no clothes, no accessories, no text, no logos, no purple. Soft upper-left studio lighting, near-frontal view. Exactly square 1024x1024 transparent PNG with real alpha, no background, no checkerboard, no pedestal, faint contact shadow. Full character centered at 82 percent of canvas height, safe margins.\nIdentity: Jordan. Color: Copper #B07A4D. HEAD OUTLINE: a tall narrow upright rounded rectangular capsule head, uneven softly flattened top. BASE OUTLINE: wide low asymmetric footless stone base. CREAM PATH: a broad cream hook at lower left. FACE: friendly eyes and small confident smile.\nPRIORITY: The new Copper #B07A4D color and the specified new head outline MUST replace the reference color and outline. Keep material and face style only."+ },+ {+ "id": "harper",+ "prompt": "Use case: stylized-concept. Asset: one production AutoGPT expert avatar PNG. Generate ONE character only. Input image is a MATERIAL, LIGHTING and FACE STYLE reference only: do NOT copy its outline. Follow the explicit new outline below, visibly distinct at 64px. Two stacked irregular solid stone/clay masses, larger head directly touching a compact stable limbless base, head about 55–65 percent of total height. Matte tactile clay with very fine grain and rounded edges. One mineral hue across both masses, charcoal simple face. One small broad flowing cream #EAE2D5 inlay with narrow recessed seam belongs entirely on LOWER BASE, about 8–20 percent of figure area; head remains wholly main color. No cream head patches, no rigid diagonal bands, no pointed cream triangles, no black neck seam, no gaps, no limbs, no ears, no horns, no neck, no props, no clothes, no accessories, no text, no logos, no purple. Soft upper-left studio lighting, near-frontal view. Exactly square 1024x1024 transparent PNG with real alpha, no background, no checkerboard, no pedestal, faint contact shadow. Full character centered at 82 percent of canvas height, safe margins.\nIdentity: Harper. Color: Denim #607FAD. HEAD OUTLINE: a tall egg-shaped head with a broad rounded bottom and offset rounded top, upright. BASE OUTLINE: short narrow rounded bell base. CREAM PATH: curved cream inlet at lower right. FACE: pleased closed curved eyes and little smile.\nPRIORITY: The new Denim #607FAD color and the specified new head outline MUST replace the reference color and outline. Keep material and face style only."+ },+ {+ "id": "vera",+ "prompt": "Use case: stylized-concept. Asset: one production AutoGPT expert avatar PNG. Generate ONE character only. Input image is a MATERIAL, LIGHTING and FACE STYLE reference only: do NOT copy its outline. Follow the explicit new outline below, visibly distinct at 64px. Two stacked irregular solid stone/clay masses, larger head directly touching a compact stable limbless base, head about 55–65 percent of total height. Matte tactile clay with very fine grain and rounded edges. One mineral hue across both masses, charcoal simple face. One small broad flowing cream #EAE2D5 inlay with narrow recessed seam belongs entirely on LOWER BASE, about 8–20 percent of figure area; head remains wholly main color. No cream head patches, no rigid diagonal bands, no pointed cream triangles, no black neck seam, no gaps, no limbs, no ears, no horns, no neck, no props, no clothes, no accessories, no text, no logos, no purple. Soft upper-left studio lighting, near-frontal view. Exactly square 1024x1024 transparent PNG with real alpha, no background, no checkerboard, no pedestal, faint contact shadow. Full character centered at 82 percent of canvas height, safe margins.\nIdentity: Vera. Color: Pine #4F7968. HEAD OUTLINE: a wide low fan-shaped head with a broad gently scalloped top and narrowed rounded lower corners, NO individual lobes or appendages. BASE OUTLINE: narrow upright rounded column base. CREAM PATH: broad smooth cream curl from bottom left. FACE: calm open eyes, straight relaxed brows, closed mouth.\nPRIORITY: The new Pine #4F7968 color and the specified new head outline MUST replace the reference color and outline. Keep material and face style only."+ },+ {+ "id": "ellis",+ "prompt": "Use case: stylized-concept. Asset: one production AutoGPT expert avatar PNG. Generate ONE character only. Input image is a MATERIAL, LIGHTING and FACE STYLE reference only: do NOT copy its outline. Follow the explicit new outline below, visibly distinct at 64px. Two stacked irregular solid stone/clay masses, larger head directly touching a compact stable limbless base, head about 55–65 percent of total height. Matte tactile clay with very fine grain and rounded edges. One mineral hue across both masses, charcoal simple face. One small broad flowing cream #EAE2D5 inlay with narrow recessed seam belongs entirely on LOWER BASE, about 8–20 percent of figure area; head remains wholly main color. No cream head patches, no rigid diagonal bands, no pointed cream triangles, no black neck seam, no gaps, no limbs, no ears, no horns, no neck, no props, no clothes, no accessories, no text, no logos, no purple. Soft upper-left studio lighting, near-frontal view. Exactly square 1024x1024 transparent PNG with real alpha, no background, no checkerboard, no pedestal, faint contact shadow. Full character centered at 82 percent of canvas height, safe margins.\nIdentity: Ellis. Color: Sand #D3BA94. HEAD OUTLINE: an upright arch stone head with rounded flat bottom, one high domed shoulder and one lower shoulder. BASE OUTLINE: wide squat asymmetrical pebble base. CREAM PATH: cream curve hugging the lower right. FACE: friendly eyes and tiny smile.\nPRIORITY: The new Sand #D3BA94 color and the specified new head outline MUST replace the reference color and outline. Keep material and face style only."+ },+ {+ "id": "robin",+ "prompt": "Use case: stylized-concept. Asset: one production AutoGPT expert avatar PNG. Generate ONE character only. Input image is a MATERIAL, LIGHTING and FACE STYLE reference only: do NOT copy its outline. Follow the explicit new outline below, visibly distinct at 64px. Two stacked irregular solid stone/clay masses, larger head directly touching a compact stable limbless base, head about 55–65 percent of total height. Matte tactile clay with very fine grain and rounded edges. One mineral hue across both masses, charcoal simple face. One small broad flowing cream #EAE2D5 inlay with narrow recessed seam belongs entirely on LOWER BASE, about 8–20 percent of figure area; head remains wholly main color. No cream head patches, no rigid diagonal bands, no pointed cream triangles, no black neck seam, no gaps, no limbs, no ears, no horns, no neck, no props, no clothes, no accessories, no text, no logos, no purple. Soft upper-left studio lighting, near-frontal view. Exactly square 1024x1024 transparent PNG with real alpha, no background, no checkerboard, no pedestal, faint contact shadow. Full character centered at 82 percent of canvas height, safe margins.\nIdentity: Robin. Color: Red clay #A65D5D. HEAD OUTLINE: a wide pillow-shaped head with a softly indented top center and fuller left side, a single connected mass. BASE OUTLINE: tall narrow bell-shaped base. CREAM PATH: soft broad cream S curl at lower left. FACE: pleased closed eyes and little smile.\nPRIORITY: The new Red clay #A65D5D color and the specified new head outline MUST replace the reference color and outline. Keep material and face style only."+ },+ {+ "id": "anika",+ "prompt": "Use case: stylized-concept. Asset: one production AutoGPT expert avatar PNG. Generate ONE character only. Input image is a MATERIAL, LIGHTING and FACE STYLE reference only: do NOT copy its outline. Follow the explicit new outline below, visibly distinct at 64px. Two stacked irregular solid stone/clay masses, larger head directly touching a compact stable limbless base, head about 55–65 percent of total height. Matte tactile clay with very fine grain and rounded edges. One mineral hue across both masses, charcoal simple face. One small broad flowing cream #EAE2D5 inlay with narrow recessed seam belongs entirely on LOWER BASE, about 8–20 percent of figure area; head remains wholly main color. No cream head patches, no rigid diagonal bands, no pointed cream triangles, no black neck seam, no gaps, no limbs, no ears, no horns, no neck, no props, no clothes, no accessories, no text, no logos, no purple. Soft upper-left studio lighting, near-frontal view. Exactly square 1024x1024 transparent PNG with real alpha, no background, no checkerboard, no pedestal, faint contact shadow. Full character centered at 82 percent of canvas height, safe margins.\nIdentity: Anika. Color: Apricot #D6A07C. HEAD OUTLINE: a broad fan head flaring outward towards a smoothly convex top, offset to the right. BASE OUTLINE: short narrow rounded wedge base. CREAM PATH: flowing cream inlet rising from bottom right. FACE: curious oval eyes, one gently raised brow and tiny mouth.\nPRIORITY: The new Apricot #D6A07C color and the specified new head outline MUST replace the reference color and outline. Keep material and face style only."+ },+ {+ "id": "alex",+ "prompt": "Use case: stylized-concept. Asset: one production AutoGPT expert avatar PNG. Generate ONE character only. Input image is a MATERIAL, LIGHTING and FACE STYLE reference only: do NOT copy its outline. Follow the explicit new outline below, visibly distinct at 64px. Two stacked irregular solid stone/clay masses, larger head directly touching a compact stable limbless base, head about 55–65 percent of total height. Matte tactile clay with very fine grain and rounded edges. One mineral hue across both masses, charcoal simple face. One small broad flowing cream #EAE2D5 inlay with narrow recessed seam belongs entirely on LOWER BASE, about 8–20 percent of figure area; head remains wholly main color. No cream head patches, no rigid diagonal bands, no pointed cream triangles, no black neck seam, no gaps, no limbs, no ears, no horns, no neck, no props, no clothes, no accessories, no text, no logos, no purple. Soft upper-left studio lighting, near-frontal view. Exactly square 1024x1024 transparent PNG with real alpha, no background, no checkerboard, no pedestal, faint contact shadow. Full character centered at 82 percent of canvas height, safe margins.\nIdentity: Alex. Color: Ink #454F58. HEAD OUTLINE: a tall rounded shield head with broad soft shoulders tapering towards a blunt bottom, no sharp tip. BASE OUTLINE: broad flat pebble base. CREAM PATH: cream wave rising from bottom left. FACE: focused oval eyes, low gentle brows, short closed mouth.\nPRIORITY: The new Ink #454F58 color and the specified new head outline MUST replace the reference color and outline. Keep material and face style only."+ },+ {+ "id": "daniel",+ "prompt": "Use case: stylized-concept. Asset: one production AutoGPT expert avatar PNG. Generate ONE character only. Input image is a MATERIAL, LIGHTING and FACE STYLE reference only: do NOT copy its outline. Follow the explicit new outline below, visibly distinct at 64px. Two stacked irregular solid stone/clay masses, larger head directly touching a compact stable limbless base, head about 55–65 percent of total height. Matte tactile clay with very fine grain and rounded edges. One mineral hue across both masses, charcoal simple face. One small broad flowing cream #EAE2D5 inlay with narrow recessed seam belongs entirely on LOWER BASE, about 8–20 percent of figure area; head remains wholly main color. No cream head patches, no rigid diagonal bands, no pointed cream triangles, no black neck seam, no gaps, no limbs, no ears, no horns, no neck, no props, no clothes, no accessories, no text, no logos, no purple. Soft upper-left studio lighting, near-frontal view. Exactly square 1024x1024 transparent PNG with real alpha, no background, no checkerboard, no pedestal, faint contact shadow. Full character centered at 82 percent of canvas height, safe margins.\nIdentity: Daniel. Color: Moss #718151. HEAD OUTLINE: a broad kidney bean head lying horizontally, deep smooth dip on the top right, full left curve. BASE OUTLINE: narrow upright rounded trapezoid base. CREAM PATH: cream flowing crescent at lower right. FACE: focused eyes and small confident smile.\nPRIORITY: The new Moss #718151 color and the specified new head outline MUST replace the reference color and outline. Keep material and face style only."+ },+ {+ "id": "sofia",+ "prompt": "Use case: stylized-concept. Asset: one production AutoGPT expert avatar PNG. Generate ONE character only. Input image is a MATERIAL, LIGHTING and FACE STYLE reference only: do NOT copy its outline. Follow the explicit new outline below, visibly distinct at 64px. Two stacked irregular solid stone/clay masses, larger head directly touching a compact stable limbless base, head about 55–65 percent of total height. Matte tactile clay with very fine grain and rounded edges. One mineral hue across both masses, charcoal simple face. One small broad flowing cream #EAE2D5 inlay with narrow recessed seam belongs entirely on LOWER BASE, about 8–20 percent of figure area; head remains wholly main color. No cream head patches, no rigid diagonal bands, no pointed cream triangles, no black neck seam, no gaps, no limbs, no ears, no horns, no neck, no props, no clothes, no accessories, no text, no logos, no purple. Soft upper-left studio lighting, near-frontal view. Exactly square 1024x1024 transparent PNG with real alpha, no background, no checkerboard, no pedestal, faint contact shadow. Full character centered at 82 percent of canvas height, safe margins.\nIdentity: Sofia. Color: Chalk #D5CDBB. HEAD OUTLINE: a very tall narrow softly curved capsule head leaning gently right, flattened pill ends. BASE OUTLINE: wide low rounded base with left overhang. CREAM PATH: cream pool curving up from lower left. FACE: warm oval eyes, little relaxed smile.\nPRIORITY: The new Chalk #D5CDBB color and the specified new head outline MUST replace the reference color and outline. Keep material and face style only."+ },+ {+ "id": "maya",+ "prompt": "Use case: stylized-concept. Asset: one production AutoGPT expert avatar PNG. Generate ONE character only. Input image is a MATERIAL, LIGHTING and FACE STYLE reference only: do NOT copy its outline. Follow the explicit new outline below, visibly distinct at 64px. Two stacked irregular solid stone/clay masses, larger head directly touching a compact stable limbless base, head about 55–65 percent of total height. Matte tactile clay with very fine grain and rounded edges. One mineral hue across both masses, charcoal simple face. One small broad flowing cream #EAE2D5 inlay with narrow recessed seam belongs entirely on LOWER BASE, about 8–20 percent of figure area; head remains wholly main color. No cream head patches, no rigid diagonal bands, no pointed cream triangles, no black neck seam, no gaps, no limbs, no ears, no horns, no neck, no props, no clothes, no accessories, no text, no logos, no purple. Soft upper-left studio lighting, near-frontal view. Exactly square 1024x1024 transparent PNG with real alpha, no background, no checkerboard, no pedestal, faint contact shadow. Full character centered at 82 percent of canvas height, safe margins.\nIdentity: Maya. Color: Lagoon #558F94. HEAD OUTLINE: a broad rounded kite head with an off-center domed top, full left shoulder and blunt low corner. BASE OUTLINE: compact wide pebble base. CREAM PATH: cream curling wave at lower right. FACE: pleased closed eyes and tiny smile.\nPRIORITY: The new Lagoon #558F94 color and the specified new head outline MUST replace the reference color and outline. Keep material and face style only."+ },+ {+ "id": "james",+ "prompt": "Use case: stylized-concept. Asset: one production AutoGPT expert avatar PNG. Generate ONE character only. Input image is a MATERIAL, LIGHTING and FACE STYLE reference only: do NOT copy its outline. Follow the explicit new outline below, visibly distinct at 64px. Two stacked irregular solid stone/clay masses, larger head directly touching a compact stable limbless base, head about 55–65 percent of total height. Matte tactile clay with very fine grain and rounded edges. One mineral hue across both masses, charcoal simple face. One small broad flowing cream #EAE2D5 inlay with narrow recessed seam belongs entirely on LOWER BASE, about 8–20 percent of figure area; head remains wholly main color. No cream head patches, no rigid diagonal bands, no pointed cream triangles, no black neck seam, no gaps, no limbs, no ears, no horns, no neck, no props, no clothes, no accessories, no text, no logos, no purple. Soft upper-left studio lighting, near-frontal view. Exactly square 1024x1024 transparent PNG with real alpha, no background, no checkerboard, no pedestal, faint contact shadow. Full character centered at 82 percent of canvas height, safe margins.\nIdentity: James. Color: Blue gray #4B6577. HEAD OUTLINE: a large broad rounded shield head with softly flat top and wide shoulders, short blunt bottom. BASE OUTLINE: tall narrow rounded capsule base. CREAM PATH: broad wavy cream section at lower left. FACE: focused oval eyes, low brows and straight mouth.\nPRIORITY: The new Blue gray #4B6577 color and the specified new head outline MUST replace the reference color and outline. Keep material and face style only."+ },+ {+ "id": "zara",+ "prompt": "Use case: stylized-concept. Asset: one production AutoGPT expert avatar PNG. Generate ONE character only. Input image is a MATERIAL, LIGHTING and FACE STYLE reference only: do NOT copy its outline. Follow the explicit new outline below, visibly distinct at 64px. Two stacked irregular solid stone/clay masses, larger head directly touching a compact stable limbless base, head about 55–65 percent of total height. Matte tactile clay with very fine grain and rounded edges. One mineral hue across both masses, charcoal simple face. One small broad flowing cream #EAE2D5 inlay with narrow recessed seam belongs entirely on LOWER BASE, about 8–20 percent of figure area; head remains wholly main color. No cream head patches, no rigid diagonal bands, no pointed cream triangles, no black neck seam, no gaps, no limbs, no ears, no horns, no neck, no props, no clothes, no accessories, no text, no logos, no purple. Soft upper-left studio lighting, near-frontal view. Exactly square 1024x1024 transparent PNG with real alpha, no background, no checkerboard, no pedestal, faint contact shadow. Full character centered at 82 percent of canvas height, safe margins.\nIdentity: Zara. Color: Yellow stone #C5BD79. HEAD OUTLINE: a tall asymmetrical curved arch head with a pronounced diagonal lean left, broad rounded crown. BASE OUTLINE: wide low sturdy tapered base. CREAM PATH: cream hook at lower right. FACE: curious eyes, one raised eyebrow, little smile.\nPRIORITY: The new Yellow stone #C5BD79 color and the specified new head outline MUST replace the reference color and outline. Keep material and face style only."+ },+ {+ "id": "sasha",+ "prompt": "Use case: stylized-concept. Asset: one production AutoGPT expert avatar PNG. Generate ONE character only. Input image is a MATERIAL, LIGHTING and FACE STYLE reference only: do NOT copy its outline. Follow the explicit new outline below, visibly distinct at 64px. Two stacked irregular solid stone/clay masses, larger head directly touching a compact stable limbless base, head about 55–65 percent of total height. Matte tactile clay with very fine grain and rounded edges. One mineral hue across both masses, charcoal simple face. One small broad flowing cream #EAE2D5 inlay with narrow recessed seam belongs entirely on LOWER BASE, about 8–20 percent of figure area; head remains wholly main color. No cream head patches, no rigid diagonal bands, no pointed cream triangles, no black neck seam, no gaps, no limbs, no ears, no horns, no neck, no props, no clothes, no accessories, no text, no logos, no purple. Soft upper-left studio lighting, near-frontal view. Exactly square 1024x1024 transparent PNG with real alpha, no background, no checkerboard, no pedestal, faint contact shadow. Full character centered at 82 percent of canvas height, safe margins.\nIdentity: Sasha. Color: Coral #CB9182. HEAD OUTLINE: a large almost circular pebble head with a slight flat dent at upper left, much wider than its base. BASE OUTLINE: small narrow upright egg base. CREAM PATH: broad cream U curve at lower left. FACE: warm open eyes, relaxed brows, tiny smile.\nPRIORITY: The new Coral #CB9182 color and the specified new head outline MUST replace the reference color and outline. Keep material and face style only."+ },+ {+ "id": "priya",+ "prompt": "Use case: stylized-concept. Asset: one production AutoGPT expert avatar PNG. Generate ONE character only. Input image is a MATERIAL, LIGHTING and FACE STYLE reference only: do NOT copy its outline. Follow the explicit new outline below, visibly distinct at 64px. Two stacked irregular solid stone/clay masses, larger head directly touching a compact stable limbless base, head about 55–65 percent of total height. Matte tactile clay with very fine grain and rounded edges. One mineral hue across both masses, charcoal simple face. One small broad flowing cream #EAE2D5 inlay with narrow recessed seam belongs entirely on LOWER BASE, about 8–20 percent of figure area; head remains wholly main color. No cream head patches, no rigid diagonal bands, no pointed cream triangles, no black neck seam, no gaps, no limbs, no ears, no horns, no neck, no props, no clothes, no accessories, no text, no logos, no purple. Soft upper-left studio lighting, near-frontal view. Exactly square 1024x1024 transparent PNG with real alpha, no background, no checkerboard, no pedestal, faint contact shadow. Full character centered at 82 percent of canvas height, safe margins.\nIdentity: Priya. Color: Fern #8DAF7A. HEAD OUTLINE: a wide horizontally stretched smooth lozenge head with rounded ends, subtly rising toward the left. BASE OUTLINE: compact broad squat rounded base. CREAM PATH: cream curved wave at lower right. FACE: focused eyes, one raised eyebrow and tiny closed mouth.\nPRIORITY: The new Fern #8DAF7A color and the specified new head outline MUST replace the reference color and outline. Keep material and face style only."+ },+ {+ "id": "casey",+ "prompt": "Use case: stylized-concept. Asset: one production AutoGPT expert avatar PNG. Generate ONE character only. Input image is a MATERIAL, LIGHTING and FACE STYLE reference only: do NOT copy its outline. Follow the explicit new outline below, visibly distinct at 64px. Two stacked irregular solid stone/clay masses, larger head directly touching a compact stable limbless base, head about 55–65 percent of total height. Matte tactile clay with very fine grain and rounded edges. One mineral hue across both masses, charcoal simple face. One small broad flowing cream #EAE2D5 inlay with narrow recessed seam belongs entirely on LOWER BASE, about 8–20 percent of figure area; head remains wholly main color. No cream head patches, no rigid diagonal bands, no pointed cream triangles, no black neck seam, no gaps, no limbs, no ears, no horns, no neck, no props, no clothes, no accessories, no text, no logos, no purple. Soft upper-left studio lighting, near-frontal view. Exactly square 1024x1024 transparent PNG with real alpha, no background, no checkerboard, no pedestal, faint contact shadow. Full character centered at 82 percent of canvas height, safe margins.\nIdentity: Casey. Color: Charcoal #777570. HEAD OUTLINE: a compact almost square cushion head with softly dented right edge and domed top. BASE OUTLINE: tall broad asymmetrical trapezoid base. CREAM PATH: cream hook from lower left. FACE: curious oval eyes, lifted brow, tiny mouth.\nPRIORITY: The new Charcoal #777570 color and the specified new head outline MUST replace the reference color and outline. Keep material and face style only."+ },+ {+ "id": "ines",+ "prompt": "Use case: stylized-concept. Asset: one production AutoGPT expert avatar PNG. Generate ONE character only. Input image is a MATERIAL, LIGHTING and FACE STYLE reference only: do NOT copy its outline. Follow the explicit new outline below, visibly distinct at 64px. Two stacked irregular solid stone/clay masses, larger head directly touching a compact stable limbless base, head about 55–65 percent of total height. Matte tactile clay with very fine grain and rounded edges. One mineral hue across both masses, charcoal simple face. One small broad flowing cream #EAE2D5 inlay with narrow recessed seam belongs entirely on LOWER BASE, about 8–20 percent of figure area; head remains wholly main color. No cream head patches, no rigid diagonal bands, no pointed cream triangles, no black neck seam, no gaps, no limbs, no ears, no horns, no neck, no props, no clothes, no accessories, no text, no logos, no purple. Soft upper-left studio lighting, near-frontal view. Exactly square 1024x1024 transparent PNG with real alpha, no background, no checkerboard, no pedestal, faint contact shadow. Full character centered at 82 percent of canvas height, safe margins.\nIdentity: Ines. Color: Mist blue #B1C8D3. HEAD OUTLINE: a broad asymmetrical kidney bean head leaning left, convex upper left and an inward curve on the lower right. BASE OUTLINE: low wide footless rounded base. CREAM PATH: cream wave curling up from bottom right. FACE: friendly open eyes and tiny smile.\nPRIORITY: The new Mist blue #B1C8D3 color and the specified new head outline MUST replace the reference color and outline. Keep material and face style only."+ },+ {+ "id": "omar",+ "prompt": "Use case: stylized-concept. Asset: one production AutoGPT expert avatar PNG. Generate ONE character only. Input image is a MATERIAL, LIGHTING and FACE STYLE reference only: do NOT copy its outline. Follow the explicit new outline below, visibly distinct at 64px. Two stacked irregular solid stone/clay masses, larger head directly touching a compact stable limbless base, head about 55–65 percent of total height. Matte tactile clay with very fine grain and rounded edges. One mineral hue across both masses, charcoal simple face. One small broad flowing cream #EAE2D5 inlay with narrow recessed seam belongs entirely on LOWER BASE, about 8–20 percent of figure area; head remains wholly main color. No cream head patches, no rigid diagonal bands, no pointed cream triangles, no black neck seam, no gaps, no limbs, no ears, no horns, no neck, no props, no clothes, no accessories, no text, no logos, no purple. Soft upper-left studio lighting, near-frontal view. Exactly square 1024x1024 transparent PNG with real alpha, no background, no checkerboard, no pedestal, faint contact shadow. Full character centered at 82 percent of canvas height, safe margins.\nIdentity: Omar. Color: Umber #89674F. HEAD OUTLINE: a broad crescent-like crescent pebble head with one continuous smooth shallow concave top and a deep rounded convex bottom, blunt ends, NO horns. BASE OUTLINE: narrow tall stable rounded base. CREAM PATH: cream curling inlet at lower left. FACE: focused eyes, gently lowered brows, short closed mouth.\nPRIORITY: The new Umber #89674F color and the specified new head outline MUST replace the reference color and outline. Keep material and face style only."+ },+ {+ "id": "kai",+ "prompt": "Use case: stylized-concept. Asset: one production AutoGPT expert avatar PNG. Generate ONE character only. Input image is a MATERIAL, LIGHTING and FACE STYLE reference only: do NOT copy its outline. Follow the explicit new outline below, visibly distinct at 64px. Two stacked irregular solid stone/clay masses, larger head directly touching a compact stable limbless base, head about 55–65 percent of total height. Matte tactile clay with very fine grain and rounded edges. One mineral hue across both masses, charcoal simple face. One small broad flowing cream #EAE2D5 inlay with narrow recessed seam belongs entirely on LOWER BASE, about 8–20 percent of figure area; head remains wholly main color. No cream head patches, no rigid diagonal bands, no pointed cream triangles, no black neck seam, no gaps, no limbs, no ears, no horns, no neck, no props, no clothes, no accessories, no text, no logos, no purple. Soft upper-left studio lighting, near-frontal view. Exactly square 1024x1024 transparent PNG with real alpha, no background, no checkerboard, no pedestal, faint contact shadow. Full character centered at 82 percent of canvas height, safe margins.\nIdentity: Kai. Color: Sage #A5B09A. HEAD OUTLINE: a low asymmetric rounded trapezoid head, wide at its softly flat top and narrower at rounded bottom, slight right tilt. BASE OUTLINE: tall slim egg base. CREAM PATH: broad cream curve on lower left. FACE: pleased curved eyes and small smile.\nPRIORITY: The new Sage #A5B09A color and the specified new head outline MUST replace the reference color and outline. Keep material and face style only."+ },+ {+ "id": "theo",+ "prompt": "Use case: stylized-concept. Asset: one production AutoGPT expert avatar PNG. Generate ONE character only. Follow the explicit new outline below, visibly distinct at 64px. Two stacked irregular solid stone/clay masses, larger head directly touching a compact stable limbless base, head about 55–65 percent of total height. Matte tactile clay with very fine grain and rounded edges. One mineral hue across both masses, charcoal simple face. One small broad flowing cream #EAE2D5 inlay with narrow recessed seam belongs entirely on LOWER BASE, about 8–20 percent of figure area; head remains wholly main color. No cream head patches, no rigid diagonal bands, no pointed cream triangles, no black neck seam, no gaps, no limbs, no ears, no horns, no neck, no props, no clothes, no accessories, no text, no logos, no purple. Soft upper-left studio lighting, near-frontal view. Exactly square 1024x1024 transparent PNG with real alpha, no background, no checkerboard, no pedestal, faint contact shadow. Full character centered at 82 percent of canvas height, safe margins.\nIdentity: theo. Main color: Copper #B07A4D. Silhouette must follow this brief: a distinctly tall narrow ARCH head: 1.6 times taller than wide, one smoothly rounded domed shoulder higher than the other, straight upright side edges that curve inward near the bottom. A compact wide low oval base, head 65 percent of total character height. Curious face one brow slightly raised. NO wedge head, no crescent, no dip in crown. Cream inlay is a rounded broad curl on the base lower left only, no diagonal parallel stripe.",+ "edit": "Edit FIRST image only. Preserve its distinctive head outline, main mineral color, base outline, cream inlay, tilt, lighting and transparent PNG background. The SECOND image is only the correct facial STYLE reference. Replace the FIRST image's eyes with small solid charcoal narrow oval marks, absolutely NO white dots, eye glints, highlights or outlines. Use tiny simple charcoal brows and small closed smile like the SECOND image; add brows if missing. Head should occupy about 60-65 percent of total figure height, reduce its height slightly relative to base while keeping its recognizable outline. Keep the main color on entire head, cream only on lower base. No other changes. One full figure, square transparent PNG."+ },+ {+ "id": "lena",+ "prompt": "Use case: stylized-concept. Asset: one production AutoGPT expert avatar PNG. Generate ONE character only. Follow the explicit new outline below, visibly distinct at 64px. Two stacked irregular solid stone/clay masses, larger head directly touching a compact stable limbless base, head about 55–65 percent of total height. Matte tactile clay with very fine grain and rounded edges. One mineral hue across both masses, charcoal simple face. One small broad flowing cream #EAE2D5 inlay with narrow recessed seam belongs entirely on LOWER BASE, about 8–20 percent of figure area; head remains wholly main color. No cream head patches, no rigid diagonal bands, no pointed cream triangles, no black neck seam, no gaps, no limbs, no ears, no horns, no neck, no props, no clothes, no accessories, no text, no logos, no purple. Soft upper-left studio lighting, near-frontal view. Exactly square 1024x1024 transparent PNG with real alpha, no background, no checkerboard, no pedestal, faint contact shadow. Full character centered at 82 percent of canvas height, safe margins.\nIdentity: lena. Main color: Warm stone #B5ADA0. Silhouette must follow this brief: a tall SHIELD head, broad near-horizontal gently domed top with rounded upper corners and sloped tapering sides which meet a BLUNT rounded V at the bottom, one solid rounded shield outline. Head is 1.25 times taller than wide. Very wide low oval base, no gap at contact. Calm open charcoal eyes and tiny smile. NO concave top, no saddle shape, no ears. Cream inlay is a rounded broad curl on the base lower left only, no diagonal parallel stripe.",+ "edit": "Edit FIRST image only. Preserve its distinctive head outline, main mineral color, base outline, cream inlay, tilt, lighting and transparent PNG background. The SECOND image is only the correct facial STYLE reference. Replace the FIRST image's eyes with small solid charcoal narrow oval marks, absolutely NO white dots, eye glints, highlights or outlines. Use tiny simple charcoal brows and small closed smile like the SECOND image; add brows if missing. Head should occupy about 60-65 percent of total figure height, reduce its height slightly relative to base while keeping its recognizable outline. Keep the main color on entire head, cream only on lower base. No other changes. One full figure, square transparent PNG."+ }+]diff --git a/autogpt_platform/frontend/public/experts/clay/v2/README.md b/autogpt_platform/frontend/public/experts/clay/v2/README.mdnew file mode 100644index 0000000000..0ba97cdd51--- /dev/null+++ b/autogpt_platform/frontend/public/experts/clay/v2/README.md@@ -0,0 +1,11 @@+# Built-in Clay & Rock identities++Each of the 32 built-ins has a distinct image URL and artwork. Maria and Mina retain the managed assets from `autogpt-characters`; the other 30 use named PNGs here. Otto remains unchanged.++The expanded 26-color mineral palette adds light and dark tones across rose, rust, sand, green, teal, blue, and gray. Color is independent of job category. These are draft additions to [expert-design-system edition 6](https://github.com/Significant-Gravitas/expert-design-system/tree/0e4001a), pending final art approval.++Codex's built-in imagegen tool generated 24 new images; its model version was not exposed. `PROMPTS.json` records the generation and follow-up edit prompts. Jules, Nadia, Max, Devon, Riley, and Frankie retain one of the existing v1 designs each. New images use the v1 material/face style and an early rounded-slab study as references; Theo and Lena started from text and received a face-style edit using Jordan as reference. Images were resized to 512 × 512 with macOS `sips`, preserving alpha.++The backend includes 256px copies of 12 silhouettes in `avatar_references/`, selected by the shape enum. The palette, identity names, previous defaults, and URL map live in `avatar_catalog.json`, mirrored in the frontend catalog. Tests check parity, unique built-in URLs and file hashes, transparent PNGs, and complete shape reference coverage.++Review the whole roster at 48px as well as marketplace size. A different filename or color alone does not establish a distinct identity. Keep the saved image stable across surfaces; expressions are static generation choices, not activity states.diff --git a/autogpt_platform/frontend/public/experts/clay/v2/alex.png b/autogpt_platform/frontend/public/experts/clay/v2/alex.pngnew file mode 100644index 0000000000..3855e53d25Binary files /dev/null and b/autogpt_platform/frontend/public/experts/clay/v2/alex.png differdiff --git a/autogpt_platform/frontend/public/experts/clay/v2/anika.png b/autogpt_platform/frontend/public/experts/clay/v2/anika.pngnew file mode 100644index 0000000000..78464d8ff9Binary files /dev/null and b/autogpt_platform/frontend/public/experts/clay/v2/anika.png differdiff --git a/autogpt_platform/frontend/public/experts/clay/v2/casey.png b/autogpt_platform/frontend/public/experts/clay/v2/casey.pngnew file mode 100644index 0000000000..85f167e0e0Binary files /dev/null and b/autogpt_platform/frontend/public/experts/clay/v2/casey.png differdiff --git a/autogpt_platform/frontend/public/experts/clay/v2/daniel.png b/autogpt_platform/frontend/public/experts/clay/v2/daniel.pngnew file mode 100644index 0000000000..57dc212be1Binary files /dev/null and b/autogpt_platform/frontend/public/experts/clay/v2/daniel.png differdiff --git a/autogpt_platform/frontend/public/experts/clay/v2/devon.png b/autogpt_platform/frontend/public/experts/clay/v2/devon.pngnew file mode 100644index 0000000000..5ada130799Binary files /dev/null and b/autogpt_platform/frontend/public/experts/clay/v2/devon.png differdiff --git a/autogpt_platform/frontend/public/experts/clay/v2/ellis.png b/autogpt_platform/frontend/public/experts/clay/v2/ellis.pngnew file mode 100644index 0000000000..a61a96c7e1Binary files /dev/null and b/autogpt_platform/frontend/public/experts/clay/v2/ellis.png differdiff --git a/autogpt_platform/frontend/public/experts/clay/v2/frankie.png b/autogpt_platform/frontend/public/experts/clay/v2/frankie.pngnew file mode 100644index 0000000000..dc4017c53dBinary files /dev/null and b/autogpt_platform/frontend/public/experts/clay/v2/frankie.png differdiff --git a/autogpt_platform/frontend/public/experts/clay/v2/harper.png b/autogpt_platform/frontend/public/experts/clay/v2/harper.pngnew file mode 100644index 0000000000..db2a1c1ce7Binary files /dev/null and b/autogpt_platform/frontend/public/experts/clay/v2/harper.png differdiff --git a/autogpt_platform/frontend/public/experts/clay/v2/ines.png b/autogpt_platform/frontend/public/experts/clay/v2/ines.pngnew file mode 100644index 0000000000..98dc4525a7Binary files /dev/null and b/autogpt_platform/frontend/public/experts/clay/v2/ines.png differdiff --git a/autogpt_platform/frontend/public/experts/clay/v2/james.png b/autogpt_platform/frontend/public/experts/clay/v2/james.pngnew file mode 100644index 0000000000..eed49763aeBinary files /dev/null and b/autogpt_platform/frontend/public/experts/clay/v2/james.png differdiff --git a/autogpt_platform/frontend/public/experts/clay/v2/jordan.png b/autogpt_platform/frontend/public/experts/clay/v2/jordan.pngnew file mode 100644index 0000000000..f0ceec6ca6Binary files /dev/null and b/autogpt_platform/frontend/public/experts/clay/v2/jordan.png differdiff --git a/autogpt_platform/frontend/public/experts/clay/v2/jules.png b/autogpt_platform/frontend/public/experts/clay/v2/jules.pngnew file mode 100644index 0000000000..4bc84544c3Binary files /dev/null and b/autogpt_platform/frontend/public/experts/clay/v2/jules.png differdiff --git a/autogpt_platform/frontend/public/experts/clay/v2/kai.png b/autogpt_platform/frontend/public/experts/clay/v2/kai.pngnew file mode 100644index 0000000000..3e48982b14Binary files /dev/null and b/autogpt_platform/frontend/public/experts/clay/v2/kai.png differdiff --git a/autogpt_platform/frontend/public/experts/clay/v2/lena.png b/autogpt_platform/frontend/public/experts/clay/v2/lena.pngnew file mode 100644index 0000000000..5358881723Binary files /dev/null and b/autogpt_platform/frontend/public/experts/clay/v2/lena.png differdiff --git a/autogpt_platform/frontend/public/experts/clay/v2/marco.png b/autogpt_platform/frontend/public/experts/clay/v2/marco.pngnew file mode 100644index 0000000000..888d632645Binary files /dev/null and b/autogpt_platform/frontend/public/experts/clay/v2/marco.png differdiff --git a/autogpt_platform/frontend/public/experts/clay/v2/max.png b/autogpt_platform/frontend/public/experts/clay/v2/max.pngnew file mode 100644index 0000000000..cb759ace59Binary files /dev/null and b/autogpt_platform/frontend/public/experts/clay/v2/max.png differdiff --git a/autogpt_platform/frontend/public/experts/clay/v2/maya.png b/autogpt_platform/frontend/public/experts/clay/v2/maya.pngnew file mode 100644index 0000000000..d0f8b265dfBinary files /dev/null and b/autogpt_platform/frontend/public/experts/clay/v2/maya.png differdiff --git a/autogpt_platform/frontend/public/experts/clay/v2/nadia.png b/autogpt_platform/frontend/public/experts/clay/v2/nadia.pngnew file mode 100644index 0000000000..7e833dcf06Binary files /dev/null and b/autogpt_platform/frontend/public/experts/clay/v2/nadia.png differdiff --git a/autogpt_platform/frontend/public/experts/clay/v2/noor.png b/autogpt_platform/frontend/public/experts/clay/v2/noor.pngnew file mode 100644index 0000000000..3f689fe660Binary files /dev/null and b/autogpt_platform/frontend/public/experts/clay/v2/noor.png differdiff --git a/autogpt_platform/frontend/public/experts/clay/v2/omar.png b/autogpt_platform/frontend/public/experts/clay/v2/omar.pngnew file mode 100644index 0000000000..933d41e419Binary files /dev/null and b/autogpt_platform/frontend/public/experts/clay/v2/omar.png differdiff --git a/autogpt_platform/frontend/public/experts/clay/v2/priya.png b/autogpt_platform/frontend/public/experts/clay/v2/priya.pngnew file mode 100644index 0000000000..a72222ab49Binary files /dev/null and b/autogpt_platform/frontend/public/experts/clay/v2/priya.png differdiff --git a/autogpt_platform/frontend/public/experts/clay/v2/quinn.png b/autogpt_platform/frontend/public/experts/clay/v2/quinn.pngnew file mode 100644index 0000000000..306b191002Binary files /dev/null and b/autogpt_platform/frontend/public/experts/clay/v2/quinn.png differdiff --git a/autogpt_platform/frontend/public/experts/clay/v2/remy.png b/autogpt_platform/frontend/public/experts/clay/v2/remy.pngnew file mode 100644index 0000000000..e1fb77aa4bBinary files /dev/null and b/autogpt_platform/frontend/public/experts/clay/v2/remy.png differdiff --git a/autogpt_platform/frontend/public/experts/clay/v2/riley.png b/autogpt_platform/frontend/public/experts/clay/v2/riley.pngnew file mode 100644index 0000000000..5b4b367fdaBinary files /dev/null and b/autogpt_platform/frontend/public/experts/clay/v2/riley.png differdiff --git a/autogpt_platform/frontend/public/experts/clay/v2/robin.png b/autogpt_platform/frontend/public/experts/clay/v2/robin.pngnew file mode 100644index 0000000000..b09b8d8dc2Binary files /dev/null and b/autogpt_platform/frontend/public/experts/clay/v2/robin.png differdiff --git a/autogpt_platform/frontend/public/experts/clay/v2/sasha.png b/autogpt_platform/frontend/public/experts/clay/v2/sasha.pngnew file mode 100644index 0000000000..d99f9a6b58Binary files /dev/null and b/autogpt_platform/frontend/public/experts/clay/v2/sasha.png differdiff --git a/autogpt_platform/frontend/public/experts/clay/v2/sofia.png b/autogpt_platform/frontend/public/experts/clay/v2/sofia.pngnew file mode 100644index 0000000000..8266c26cf3Binary files /dev/null and b/autogpt_platform/frontend/public/experts/clay/v2/sofia.png differdiff --git a/autogpt_platform/frontend/public/experts/clay/v2/theo.png b/autogpt_platform/frontend/public/experts/clay/v2/theo.pngnew file mode 100644index 0000000000..0138834230Binary files /dev/null and b/autogpt_platform/frontend/public/experts/clay/v2/theo.png differdiff --git a/autogpt_platform/frontend/public/experts/clay/v2/vera.png b/autogpt_platform/frontend/public/experts/clay/v2/vera.pngnew file mode 100644index 0000000000..5d4970c168Binary files /dev/null and b/autogpt_platform/frontend/public/experts/clay/v2/vera.png differdiff --git a/autogpt_platform/frontend/public/experts/clay/v2/zara.png b/autogpt_platform/frontend/public/experts/clay/v2/zara.pngnew file mode 100644index 0000000000..3a4e5e7b51Binary files /dev/null and b/autogpt_platform/frontend/public/experts/clay/v2/zara.png differdiff --git a/autogpt_platform/frontend/public/experts/clay/v3/PROMPTS.json b/autogpt_platform/frontend/public/experts/clay/v3/PROMPTS.jsonnew file mode 100644index 0000000000..9fbca991a1--- /dev/null+++ b/autogpt_platform/frontend/public/experts/clay/v3/PROMPTS.json@@ -0,0 +1,42 @@+[+ {+ "name": "jules",+ "prompt": "Edit this existing expert avatar PNG. Remove the body stripe. Add ONE broad cream rounded cap patch on the upper-right tip of the head, following its slope. The body is now plain terracotta. Cream is warm off-white #EAE2D5, matte clay inlaid flush into the surface with a subtle narrow seam, never raised accessories. Preserve this exact character's mineral hue, head silhouette, body outline, tiny charcoal facial features, expression, proportions, lighting and framing. Only change the cream markings as specified. No added limbs, props, clothing, hair, eyes or text. Full single figure on a truly transparent alpha background, square PNG, safe margins.",+ "source": "../v2/jules.png"+ },+ {+ "name": "remy",+ "prompt": "Edit this existing expert avatar PNG. Remove the body stripe. Add TWO separate irregular cream pebble-shaped patches on the upper-left and upper-right of the head, above the face. Body plain sea glass. Cream is warm off-white #EAE2D5, matte clay inlaid flush into the surface with a subtle narrow seam, never raised accessories. Preserve this exact character's mineral hue, head silhouette, body outline, tiny charcoal facial features, expression, proportions, lighting and framing. Only change the cream markings as specified. No added limbs, props, clothing, hair, eyes or text. Full single figure on a truly transparent alpha background, square PNG, safe margins.",+ "source": "../v2/remy.png"+ },+ {+ "name": "quinn",+ "prompt": "Edit this existing expert avatar PNG. Remove the body stripe. Add ONE sweeping cream curved inlay along the left edge of the head, plus ONE cream oval pool on the bottom right of the body. Cream is warm off-white #EAE2D5, matte clay inlaid flush into the surface with a subtle narrow seam, never raised accessories. Preserve this exact character's mineral hue, head silhouette, body outline, tiny charcoal facial features, expression, proportions, lighting and framing. Only change the cream markings as specified. No added limbs, props, clothing, hair, eyes or text. Full single figure on a truly transparent alpha background, square PNG, safe margins.",+ "source": "../v2/quinn.png"+ },+ {+ "name": "harper",+ "prompt": "Edit this existing expert avatar PNG. Remove the body stripe. Add THREE soft cream round spots of uneven size on the top half of the blue head, keep face clear. Body plain blue. Cream is warm off-white #EAE2D5, matte clay inlaid flush into the surface with a subtle narrow seam, never raised accessories. Preserve this exact character's mineral hue, head silhouette, body outline, tiny charcoal facial features, expression, proportions, lighting and framing. Only change the cream markings as specified. No added limbs, props, clothing, hair, eyes or text. Full single figure on a truly transparent alpha background, square PNG, safe margins.",+ "source": "../v2/harper.png"+ },+ {+ "name": "vera",+ "prompt": "Edit this existing expert avatar PNG. Remove the body stripe. Add ONE broad cream crescent inset along the upper-right curved edge of the green head, and TWO small rounded cream patches on opposite lower sides of the body. Cream is warm off-white #EAE2D5, matte clay inlaid flush into the surface with a subtle narrow seam, never raised accessories. Preserve this exact character's mineral hue, head silhouette, body outline, tiny charcoal facial features, expression, proportions, lighting and framing. Only change the cream markings as specified. No added limbs, props, clothing, hair, eyes or text. Full single figure on a truly transparent alpha background, square PNG, safe margins.",+ "source": "../v2/vera.png"+ },+ {+ "name": "anika",+ "prompt": "Edit this existing expert avatar PNG. Remove the body stripe. Add ONE large asymmetric cream teardrop inset along the left edge of the head, well away from eyes. Body plain apricot. Cream is warm off-white #EAE2D5, matte clay inlaid flush into the surface with a subtle narrow seam, never raised accessories. Preserve this exact character's mineral hue, head silhouette, body outline, tiny charcoal facial features, expression, proportions, lighting and framing. Only change the cream markings as specified. No added limbs, props, clothing, hair, eyes or text. Full single figure on a truly transparent alpha background, square PNG, safe margins.",+ "source": "../v2/anika.png"+ },+ {+ "name": "marco",+ "prompt": "Edit this existing expert avatar PNG. Replace body stripe with TWO separate chunky cream oval pools at the bottom left and bottom right of the body. Keep the rust head plain. Cream is warm off-white #EAE2D5, matte clay inlaid flush into the surface with a subtle narrow seam, never raised accessories. Preserve this exact character's mineral hue, head silhouette, body outline, tiny charcoal facial features, expression, proportions, lighting and framing. Only change the cream markings as specified. No added limbs, props, clothing, hair, eyes or text. Full single figure on a truly transparent alpha background, square PNG, safe margins.",+ "source": "../v2/marco.png"+ },+ {+ "name": "lena",+ "prompt": "Edit this existing expert avatar PNG. Keep the existing cream body curl and add ONE cream rounded cap inset on the upper-left corner of the head. Cream is warm off-white #EAE2D5, matte clay inlaid flush into the surface with a subtle narrow seam, never raised accessories. Preserve this exact character's mineral hue, head silhouette, body outline, tiny charcoal facial features, expression, proportions, lighting and framing. Only change the cream markings as specified. No added limbs, props, clothing, hair, eyes or text. Full single figure on a truly transparent alpha background, square PNG, safe margins.",+ "source": "../v2/lena.png"+ }+]diff --git a/autogpt_platform/frontend/public/experts/clay/v3/README.md b/autogpt_platform/frontend/public/experts/clay/v3/README.mdnew file mode 100644index 0000000000..ecc53900b1--- /dev/null+++ b/autogpt_platform/frontend/public/experts/clay/v3/README.md@@ -0,0 +1,3 @@+# Cream accent variants++Eight edits made with the built-in imagegen tool. Each keeps its v2 body color, outline, face, lighting, and framing while changing the cream markings. User direction permits head patches and multiple accents. Exact prompts and source images are in `PROMPTS.json`. Deliverables are transparent 512px PNGs.diff --git a/autogpt_platform/frontend/public/experts/clay/v3/anika.png b/autogpt_platform/frontend/public/experts/clay/v3/anika.pngnew file mode 100644index 0000000000..3a09333761Binary files /dev/null and b/autogpt_platform/frontend/public/experts/clay/v3/anika.png differdiff --git a/autogpt_platform/frontend/public/experts/clay/v3/harper.png b/autogpt_platform/frontend/public/experts/clay/v3/harper.pngnew file mode 100644index 0000000000..a173547b5cBinary files /dev/null and b/autogpt_platform/frontend/public/experts/clay/v3/harper.png differdiff --git a/autogpt_platform/frontend/public/experts/clay/v3/jules.png b/autogpt_platform/frontend/public/experts/clay/v3/jules.pngnew file mode 100644index 0000000000..66a1626b72Binary files /dev/null and b/autogpt_platform/frontend/public/experts/clay/v3/jules.png differdiff --git a/autogpt_platform/frontend/public/experts/clay/v3/lena.png b/autogpt_platform/frontend/public/experts/clay/v3/lena.pngnew file mode 100644index 0000000000..5d49652a22Binary files /dev/null and b/autogpt_platform/frontend/public/experts/clay/v3/lena.png differdiff --git a/autogpt_platform/frontend/public/experts/clay/v3/marco.png b/autogpt_platform/frontend/public/experts/clay/v3/marco.pngnew file mode 100644index 0000000000..15e521d65cBinary files /dev/null and b/autogpt_platform/frontend/public/experts/clay/v3/marco.png differdiff --git a/autogpt_platform/frontend/public/experts/clay/v3/quinn.png b/autogpt_platform/frontend/public/experts/clay/v3/quinn.pngnew file mode 100644index 0000000000..4aac7b2fdaBinary files /dev/null and b/autogpt_platform/frontend/public/experts/clay/v3/quinn.png differdiff --git a/autogpt_platform/frontend/public/experts/clay/v3/remy.png b/autogpt_platform/frontend/public/experts/clay/v3/remy.pngnew file mode 100644index 0000000000..b1883e019dBinary files /dev/null and b/autogpt_platform/frontend/public/experts/clay/v3/remy.png differdiff --git a/autogpt_platform/frontend/public/experts/clay/v3/vera.png b/autogpt_platform/frontend/public/experts/clay/v3/vera.pngnew file mode 100644index 0000000000..6a4b97fcd1Binary files /dev/null and b/autogpt_platform/frontend/public/experts/clay/v3/vera.png differdiff --git a/autogpt_platform/frontend/public/experts/clay/v4/PROMPTS.json b/autogpt_platform/frontend/public/experts/clay/v4/PROMPTS.jsonnew file mode 100644index 0000000000..d547cfd08f--- /dev/null+++ b/autogpt_platform/frontend/public/experts/clay/v4/PROMPTS.json@@ -0,0 +1,494 @@+[+ {+ "id": "vera",+ "name": "Vera",+ "category": "finance",+ "primary": false,+ "hex": "#B7C0AE",+ "base": "#A5B09A",+ "source": "/experts/clay/v3/vera.png",+ "reuse": false,+ "url": "/experts/clay/v4/vera-finance.png",+ "prompt": "Recolor this exact clay expert avatar for the finance category. Replace ONLY its colored head and body clay with #B7C0AE, a shade of the category's #A5B09A mineral hue. Keep all cream/off-white patches and inlays exactly as they are: preserve their positions, shapes and count. Preserve the exact head and body outlines, proportions, face, expression, pose, framing, matte material and soft lighting. Do not redesign the character. The mineral body hue must read clearly as muted sage green. Keep face marks charcoal. Full single figure, square PNG with truly transparent alpha background and safe margins. No opaque background, no colored disc, no text, no extra details."+ },+ {+ "id": "james",+ "name": "James",+ "category": "finance",+ "primary": false,+ "hex": "#A5B09A",+ "base": "#A5B09A",+ "source": "/experts/clay/v2/james.png",+ "reuse": false,+ "url": "/experts/clay/v4/james-finance.png",+ "prompt": "Recolor this exact clay expert avatar for the finance category. Replace ONLY its colored head and body clay with #A5B09A, a shade of the category's #A5B09A mineral hue. Keep all cream/off-white patches and inlays exactly as they are: preserve their positions, shapes and count. Preserve the exact head and body outlines, proportions, face, expression, pose, framing, matte material and soft lighting. Do not redesign the character. The mineral body hue must read clearly as muted sage green. Keep face marks charcoal. Full single figure, square PNG with truly transparent alpha background and safe margins. No opaque background, no colored disc, no text, no extra details."+ },+ {+ "id": "quinn",+ "name": "Quinn",+ "category": "finance",+ "primary": false,+ "hex": "#8B9481",+ "base": "#A5B09A",+ "source": "/experts/clay/v3/quinn.png",+ "reuse": false,+ "url": "/experts/clay/v4/quinn-finance.png",+ "prompt": "Recolor this exact clay expert avatar for the finance category. Replace ONLY its colored head and body clay with #8B9481, a shade of the category's #A5B09A mineral hue. Keep all cream/off-white patches and inlays exactly as they are: preserve their positions, shapes and count. Preserve the exact head and body outlines, proportions, face, expression, pose, framing, matte material and soft lighting. Do not redesign the character. The mineral body hue must read clearly as muted sage green. Keep face marks charcoal. Full single figure, square PNG with truly transparent alpha background and safe margins. No opaque background, no colored disc, no text, no extra details."+ },+ {+ "id": "theo",+ "name": "Theo",+ "category": "finance",+ "primary": true,+ "hex": "#B0B9A6",+ "base": "#A5B09A",+ "source": "/experts/clay/v2/theo.png",+ "reuse": false,+ "url": "/experts/clay/v4/theo-finance.png",+ "prompt": "Recolor this exact clay expert avatar for the finance category. Replace ONLY its colored head and body clay with #B0B9A6, a shade of the category's #A5B09A mineral hue. Keep all cream/off-white patches and inlays exactly as they are: preserve their positions, shapes and count. Preserve the exact head and body outlines, proportions, face, expression, pose, framing, matte material and soft lighting. Do not redesign the character. The mineral body hue must read clearly as muted sage green. Keep face marks charcoal. Full single figure, square PNG with truly transparent alpha background and safe margins. No opaque background, no colored disc, no text, no extra details."+ },+ {+ "id": "daniel",+ "name": "Daniel",+ "category": "finance",+ "primary": true,+ "hex": "#98A28E",+ "base": "#A5B09A",+ "source": "/experts/clay/v2/daniel.png",+ "reuse": false,+ "url": "/experts/clay/v4/daniel-finance.png",+ "prompt": "Recolor this exact clay expert avatar for the finance category. Replace ONLY its colored head and body clay with #98A28E, a shade of the category's #A5B09A mineral hue. Keep all cream/off-white patches and inlays exactly as they are: preserve their positions, shapes and count. Preserve the exact head and body outlines, proportions, face, expression, pose, framing, matte material and soft lighting. Do not redesign the character. The mineral body hue must read clearly as muted sage green. Keep face marks charcoal. Full single figure, square PNG with truly transparent alpha background and safe margins. No opaque background, no colored disc, no text, no extra details."+ },+ {+ "id": "maria",+ "name": "Maria",+ "category": "content",+ "primary": false,+ "hex": "#B5ADA0",+ "base": "#B5ADA0",+ "source": "/experts/transparent/maria.webp",+ "reuse": false,+ "url": "/experts/clay/v4/maria-content.png",+ "prompt": "Recolor this exact clay expert avatar for the content category. Replace ONLY its colored head and body clay with #B5ADA0, a shade of the category's #B5ADA0 mineral hue. Keep all cream/off-white patches and inlays exactly as they are: preserve their positions, shapes and count. Preserve the exact head and body outlines, proportions, face, expression, pose, framing, matte material and soft lighting. Do not redesign the character. The mineral body hue must read clearly as warm stone gray. Keep face marks charcoal. Full single figure, square PNG with truly transparent alpha background and safe margins. No opaque background, no colored disc, no text, no extra details."+ },+ {+ "id": "jules",+ "name": "Jules",+ "category": "content",+ "primary": false,+ "hex": "#BEB7AB",+ "base": "#B5ADA0",+ "source": "/experts/clay/v3/jules.png",+ "reuse": false,+ "url": "/experts/clay/v4/jules-content.png",+ "prompt": "Recolor this exact clay expert avatar for the content category. Replace ONLY its colored head and body clay with #BEB7AB, a shade of the category's #B5ADA0 mineral hue. Keep all cream/off-white patches and inlays exactly as they are: preserve their positions, shapes and count. Preserve the exact head and body outlines, proportions, face, expression, pose, framing, matte material and soft lighting. Do not redesign the character. The mineral body hue must read clearly as warm stone gray. Keep face marks charcoal. Full single figure, square PNG with truly transparent alpha background and safe margins. No opaque background, no colored disc, no text, no extra details."+ },+ {+ "id": "nadia",+ "name": "Nadia",+ "category": "marketing",+ "primary": false,+ "hex": "#A56B4D",+ "base": "#C47F5C",+ "source": "/experts/clay/v2/nadia.png",+ "reuse": false,+ "url": "/experts/clay/v4/nadia-marketing.png",+ "prompt": "Recolor this exact clay expert avatar for the marketing category. Replace ONLY its colored head and body clay with #A56B4D, a shade of the category's #C47F5C mineral hue. Keep all cream/off-white patches and inlays exactly as they are: preserve their positions, shapes and count. Preserve the exact head and body outlines, proportions, face, expression, pose, framing, matte material and soft lighting. Do not redesign the character. The mineral body hue must read clearly as earthy terracotta. Keep face marks charcoal. Full single figure, square PNG with truly transparent alpha background and safe margins. No opaque background, no colored disc, no text, no extra details."+ },+ {+ "id": "remy",+ "name": "Remy",+ "category": "marketing",+ "primary": true,+ "hex": "#D0997D",+ "base": "#C47F5C",+ "source": "/experts/clay/v3/remy.png",+ "reuse": false,+ "url": "/experts/clay/v4/remy-marketing.png",+ "prompt": "Recolor this exact clay expert avatar for the marketing category. Replace ONLY its colored head and body clay with #D0997D, a shade of the category's #C47F5C mineral hue. Keep all cream/off-white patches and inlays exactly as they are: preserve their positions, shapes and count. Preserve the exact head and body outlines, proportions, face, expression, pose, framing, matte material and soft lighting. Do not redesign the character. The mineral body hue must read clearly as earthy terracotta. Keep face marks charcoal. Full single figure, square PNG with truly transparent alpha background and safe margins. No opaque background, no colored disc, no text, no extra details."+ },+ {+ "id": "mina",+ "name": "Mina",+ "category": "operations",+ "primary": false,+ "hex": "#98AFC6",+ "base": "#98AFC6",+ "source": "/experts/transparent/mina.webp",+ "reuse": false,+ "url": "/experts/clay/v4/mina-operations.png",+ "prompt": "Recolor this exact clay expert avatar for the operations category. Replace ONLY its colored head and body clay with #98AFC6, a shade of the category's #98AFC6 mineral hue. Keep all cream/off-white patches and inlays exactly as they are: preserve their positions, shapes and count. Preserve the exact head and body outlines, proportions, face, expression, pose, framing, matte material and soft lighting. Do not redesign the character. The mineral body hue must read clearly as muted slate blue. Keep face marks charcoal. Full single figure, square PNG with truly transparent alpha background and safe margins. No opaque background, no colored disc, no text, no extra details."+ },+ {+ "id": "max",+ "name": "Max",+ "category": "operations",+ "primary": false,+ "hex": "#8093A6",+ "base": "#98AFC6",+ "source": "/experts/clay/v2/max.png",+ "reuse": false,+ "url": "/experts/clay/v4/max-operations.png",+ "prompt": "Recolor this exact clay expert avatar for the operations category. Replace ONLY its colored head and body clay with #8093A6, a shade of the category's #98AFC6 mineral hue. Keep all cream/off-white patches and inlays exactly as they are: preserve their positions, shapes and count. Preserve the exact head and body outlines, proportions, face, expression, pose, framing, matte material and soft lighting. Do not redesign the character. The mineral body hue must read clearly as muted slate blue. Keep face marks charcoal. Full single figure, square PNG with truly transparent alpha background and safe margins. No opaque background, no colored disc, no text, no extra details."+ },+ {+ "id": "theo",+ "name": "Theo",+ "category": "operations",+ "primary": false,+ "hex": "#A4B9CD",+ "base": "#98AFC6",+ "source": "/experts/clay/v2/theo.png",+ "reuse": false,+ "url": "/experts/clay/v4/theo-operations.png",+ "prompt": "Recolor this exact clay expert avatar for the operations category. Replace ONLY its colored head and body clay with #A4B9CD, a shade of the category's #98AFC6 mineral hue. Keep all cream/off-white patches and inlays exactly as they are: preserve their positions, shapes and count. Preserve the exact head and body outlines, proportions, face, expression, pose, framing, matte material and soft lighting. Do not redesign the character. The mineral body hue must read clearly as muted slate blue. Keep face marks charcoal. Full single figure, square PNG with truly transparent alpha background and safe margins. No opaque background, no colored disc, no text, no extra details."+ },+ {+ "id": "jordan",+ "name": "Jordan",+ "category": "sales",+ "primary": true,+ "hex": "#CFAE6F",+ "base": "#C9A35B",+ "source": "/experts/clay/v2/jordan.png",+ "reuse": false,+ "url": "/experts/clay/v4/jordan-sales.png",+ "prompt": "Recolor this exact clay expert avatar for the sales category. Replace ONLY its colored head and body clay with #CFAE6F, a shade of the category's #C9A35B mineral hue. Keep all cream/off-white patches and inlays exactly as they are: preserve their positions, shapes and count. Preserve the exact head and body outlines, proportions, face, expression, pose, framing, matte material and soft lighting. Do not redesign the character. The mineral body hue must read clearly as golden ochre. Keep face marks charcoal. Full single figure, square PNG with truly transparent alpha background and safe margins. No opaque background, no colored disc, no text, no extra details."+ },+ {+ "id": "frankie",+ "name": "Frankie",+ "category": "support",+ "primary": false,+ "hex": "#D19E91",+ "base": "#CB9182",+ "source": "/experts/clay/v2/frankie.png",+ "reuse": false,+ "url": "/experts/clay/v4/frankie-support.png",+ "prompt": "Recolor this exact clay expert avatar for the support category. Replace ONLY its colored head and body clay with #D19E91, a shade of the category's #CB9182 mineral hue. Keep all cream/off-white patches and inlays exactly as they are: preserve their positions, shapes and count. Preserve the exact head and body outlines, proportions, face, expression, pose, framing, matte material and soft lighting. Do not redesign the character. The mineral body hue must read clearly as muted coral. Keep face marks charcoal. Full single figure, square PNG with truly transparent alpha background and safe margins. No opaque background, no colored disc, no text, no extra details."+ },+ {+ "id": "vera",+ "name": "Vera",+ "category": "operations",+ "primary": true,+ "hex": "#98AFC6",+ "base": "#98AFC6",+ "source": "/experts/clay/v3/vera.png",+ "reuse": false,+ "url": "/experts/clay/v4/vera-operations.png",+ "prompt": "Recolor this exact clay expert avatar for the operations category. Replace ONLY its colored head and body clay with #98AFC6, a shade of the category's #98AFC6 mineral hue. Keep all cream/off-white patches and inlays exactly as they are: preserve their positions, shapes and count. Preserve the exact head and body outlines, proportions, face, expression, pose, framing, matte material and soft lighting. Do not redesign the character. The mineral body hue must read clearly as muted slate blue. Keep face marks charcoal. Full single figure, square PNG with truly transparent alpha background and safe margins. No opaque background, no colored disc, no text, no extra details."+ },+ {+ "id": "harper",+ "name": "Harper",+ "category": "operations",+ "primary": true,+ "hex": "#8CA1B6",+ "base": "#98AFC6",+ "source": "/experts/clay/v3/harper.png",+ "reuse": false,+ "url": "/experts/clay/v4/harper-operations.png",+ "prompt": "Recolor this exact clay expert avatar for the operations category. Replace ONLY its colored head and body clay with #8CA1B6, a shade of the category's #98AFC6 mineral hue. Keep all cream/off-white patches and inlays exactly as they are: preserve their positions, shapes and count. Preserve the exact head and body outlines, proportions, face, expression, pose, framing, matte material and soft lighting. Do not redesign the character. The mineral body hue must read clearly as muted slate blue. Keep face marks charcoal. Full single figure, square PNG with truly transparent alpha background and safe margins. No opaque background, no colored disc, no text, no extra details."+ },+ {+ "id": "robin",+ "name": "Robin",+ "category": "support",+ "primary": true,+ "hex": "#AB7A6D",+ "base": "#CB9182",+ "source": "/experts/clay/v2/robin.png",+ "reuse": false,+ "url": "/experts/clay/v4/robin-support.png",+ "prompt": "Recolor this exact clay expert avatar for the support category. Replace ONLY its colored head and body clay with #AB7A6D, a shade of the category's #CB9182 mineral hue. Keep all cream/off-white patches and inlays exactly as they are: preserve their positions, shapes and count. Preserve the exact head and body outlines, proportions, face, expression, pose, framing, matte material and soft lighting. Do not redesign the character. The mineral body hue must read clearly as muted coral. Keep face marks charcoal. Full single figure, square PNG with truly transparent alpha background and safe margins. No opaque background, no colored disc, no text, no extra details."+ },+ {+ "id": "ellis",+ "name": "Ellis",+ "category": "operations",+ "primary": true,+ "hex": "#A4B9CD",+ "base": "#98AFC6",+ "source": "/experts/clay/v2/ellis.png",+ "reuse": false,+ "url": "/experts/clay/v4/ellis-operations.png",+ "prompt": "Recolor this exact clay expert avatar for the operations category. Replace ONLY its colored head and body clay with #A4B9CD, a shade of the category's #98AFC6 mineral hue. Keep all cream/off-white patches and inlays exactly as they are: preserve their positions, shapes and count. Preserve the exact head and body outlines, proportions, face, expression, pose, framing, matte material and soft lighting. Do not redesign the character. The mineral body hue must read clearly as muted slate blue. Keep face marks charcoal. Full single figure, square PNG with truly transparent alpha background and safe margins. No opaque background, no colored disc, no text, no extra details."+ },+ {+ "id": "robin",+ "name": "Robin",+ "category": "operations",+ "primary": false,+ "hex": "#8093A6",+ "base": "#98AFC6",+ "source": "/experts/clay/v2/robin.png",+ "reuse": false,+ "url": "/experts/clay/v4/robin-operations.png",+ "prompt": "Recolor this exact clay expert avatar for the operations category. Replace ONLY its colored head and body clay with #8093A6, a shade of the category's #98AFC6 mineral hue. Keep all cream/off-white patches and inlays exactly as they are: preserve their positions, shapes and count. Preserve the exact head and body outlines, proportions, face, expression, pose, framing, matte material and soft lighting. Do not redesign the character. The mineral body hue must read clearly as muted slate blue. Keep face marks charcoal. Full single figure, square PNG with truly transparent alpha background and safe margins. No opaque background, no colored disc, no text, no extra details."+ },+ {+ "id": "anika",+ "name": "Anika",+ "category": "operations",+ "primary": false,+ "hex": "#ADBFD1",+ "base": "#98AFC6",+ "source": "/experts/clay/v3/anika.png",+ "reuse": false,+ "url": "/experts/clay/v4/anika-operations.png",+ "prompt": "Recolor this exact clay expert avatar for the operations category. Replace ONLY its colored head and body clay with #ADBFD1, a shade of the category's #98AFC6 mineral hue. Keep all cream/off-white patches and inlays exactly as they are: preserve their positions, shapes and count. Preserve the exact head and body outlines, proportions, face, expression, pose, framing, matte material and soft lighting. Do not redesign the character. The mineral body hue must read clearly as muted slate blue. Keep face marks charcoal. Full single figure, square PNG with truly transparent alpha background and safe margins. No opaque background, no colored disc, no text, no extra details."+ },+ {+ "id": "anika",+ "name": "Anika",+ "category": "sales",+ "primary": true,+ "hex": "#A9894C",+ "base": "#C9A35B",+ "source": "/experts/clay/v3/anika.png",+ "reuse": false,+ "url": "/experts/clay/v4/anika-sales.png",+ "prompt": "Recolor this exact clay expert avatar for the sales category. Replace ONLY its colored head and body clay with #A9894C, a shade of the category's #C9A35B mineral hue. Keep all cream/off-white patches and inlays exactly as they are: preserve their positions, shapes and count. Preserve the exact head and body outlines, proportions, face, expression, pose, framing, matte material and soft lighting. Do not redesign the character. The mineral body hue must read clearly as golden ochre. Keep face marks charcoal. Full single figure, square PNG with truly transparent alpha background and safe margins. No opaque background, no colored disc, no text, no extra details."+ },+ {+ "id": "alex",+ "name": "Alex",+ "category": "development",+ "primary": true,+ "hex": "#878681",+ "base": "#777570",+ "source": "/experts/clay/v2/alex.png",+ "reuse": false,+ "url": "/experts/clay/v4/alex-development.png",+ "prompt": "Recolor this exact clay expert avatar for the development category. Replace ONLY its colored head and body clay with #878681, a shade of the category's #777570 mineral hue. Keep all cream/off-white patches and inlays exactly as they are: preserve their positions, shapes and count. Preserve the exact head and body outlines, proportions, face, expression, pose, framing, matte material and soft lighting. Do not redesign the character. The mineral body hue must read clearly as neutral charcoal gray. Keep face marks charcoal. Full single figure, square PNG with truly transparent alpha background and safe margins. No opaque background, no colored disc, no text, no extra details."+ },+ {+ "id": "alex",+ "name": "Alex",+ "category": "research",+ "primary": false,+ "hex": "#8F8C66",+ "base": "#AAA77A",+ "source": "/experts/clay/v2/alex.png",+ "reuse": false,+ "url": "/experts/clay/v4/alex-research.png",+ "prompt": "Recolor this exact clay expert avatar for the research category. Replace ONLY its colored head and body clay with #8F8C66, a shade of the category's #AAA77A mineral hue. Keep all cream/off-white patches and inlays exactly as they are: preserve their positions, shapes and count. Preserve the exact head and body outlines, proportions, face, expression, pose, framing, matte material and soft lighting. Do not redesign the character. The mineral body hue must read clearly as olive. Keep face marks charcoal. Full single figure, square PNG with truly transparent alpha background and safe margins. No opaque background, no colored disc, no text, no extra details."+ },+ {+ "id": "sofia",+ "name": "Sofia",+ "category": "operations",+ "primary": true,+ "hex": "#8CA1B6",+ "base": "#98AFC6",+ "source": "/experts/clay/v2/sofia.png",+ "reuse": false,+ "url": "/experts/clay/v4/sofia-operations.png",+ "prompt": "Recolor this exact clay expert avatar for the operations category. Replace ONLY its colored head and body clay with #8CA1B6, a shade of the category's #98AFC6 mineral hue. Keep all cream/off-white patches and inlays exactly as they are: preserve their positions, shapes and count. Preserve the exact head and body outlines, proportions, face, expression, pose, framing, matte material and soft lighting. Do not redesign the character. The mineral body hue must read clearly as muted slate blue. Keep face marks charcoal. Full single figure, square PNG with truly transparent alpha background and safe margins. No opaque background, no colored disc, no text, no extra details."+ },+ {+ "id": "maya",+ "name": "Maya",+ "category": "content",+ "primary": false,+ "hex": "#989186",+ "base": "#B5ADA0",+ "source": "/experts/clay/v2/maya.png",+ "reuse": false,+ "url": "/experts/clay/v4/maya-content.png",+ "prompt": "Recolor this exact clay expert avatar for the content category. Replace ONLY its colored head and body clay with #989186, a shade of the category's #B5ADA0 mineral hue. Keep all cream/off-white patches and inlays exactly as they are: preserve their positions, shapes and count. Preserve the exact head and body outlines, proportions, face, expression, pose, framing, matte material and soft lighting. Do not redesign the character. The mineral body hue must read clearly as warm stone gray. Keep face marks charcoal. Full single figure, square PNG with truly transparent alpha background and safe margins. No opaque background, no colored disc, no text, no extra details."+ },+ {+ "id": "james",+ "name": "James",+ "category": "operations",+ "primary": true,+ "hex": "#98AFC6",+ "base": "#98AFC6",+ "source": "/experts/clay/v2/james.png",+ "reuse": false,+ "url": "/experts/clay/v4/james-operations.png",+ "prompt": "Recolor this exact clay expert avatar for the operations category. Replace ONLY its colored head and body clay with #98AFC6, a shade of the category's #98AFC6 mineral hue. Keep all cream/off-white patches and inlays exactly as they are: preserve their positions, shapes and count. Preserve the exact head and body outlines, proportions, face, expression, pose, framing, matte material and soft lighting. Do not redesign the character. The mineral body hue must read clearly as muted slate blue. Keep face marks charcoal. Full single figure, square PNG with truly transparent alpha background and safe margins. No opaque background, no colored disc, no text, no extra details."+ },+ {+ "id": "daniel",+ "name": "Daniel",+ "category": "research",+ "primary": false,+ "hex": "#BBB995",+ "base": "#AAA77A",+ "source": "/experts/clay/v2/daniel.png",+ "reuse": false,+ "url": "/experts/clay/v4/daniel-research.png",+ "prompt": "Recolor this exact clay expert avatar for the research category. Replace ONLY its colored head and body clay with #BBB995, a shade of the category's #AAA77A mineral hue. Keep all cream/off-white patches and inlays exactly as they are: preserve their positions, shapes and count. Preserve the exact head and body outlines, proportions, face, expression, pose, framing, matte material and soft lighting. Do not redesign the character. The mineral body hue must read clearly as olive. Keep face marks charcoal. Full single figure, square PNG with truly transparent alpha background and safe margins. No opaque background, no colored disc, no text, no extra details."+ },+ {+ "id": "maya",+ "name": "Maya",+ "category": "marketing",+ "primary": true,+ "hex": "#B47555",+ "base": "#C47F5C",+ "source": "/experts/clay/v2/maya.png",+ "reuse": false,+ "url": "/experts/clay/v4/maya-marketing.png",+ "prompt": "Recolor this exact clay expert avatar for the marketing category. Replace ONLY its colored head and body clay with #B47555, a shade of the category's #C47F5C mineral hue. Keep all cream/off-white patches and inlays exactly as they are: preserve their positions, shapes and count. Preserve the exact head and body outlines, proportions, face, expression, pose, framing, matte material and soft lighting. Do not redesign the character. The mineral body hue must read clearly as earthy terracotta. Keep face marks charcoal. Full single figure, square PNG with truly transparent alpha background and safe margins. No opaque background, no colored disc, no text, no extra details."+ },+ {+ "id": "zara",+ "name": "Zara",+ "category": "marketing",+ "primary": true,+ "hex": "#C47F5C",+ "base": "#C47F5C",+ "source": "/experts/clay/v2/zara.png",+ "reuse": false,+ "url": "/experts/clay/v4/zara-marketing.png",+ "prompt": "Recolor this exact clay expert avatar for the marketing category. Replace ONLY its colored head and body clay with #C47F5C, a shade of the category's #C47F5C mineral hue. Keep all cream/off-white patches and inlays exactly as they are: preserve their positions, shapes and count. Preserve the exact head and body outlines, proportions, face, expression, pose, framing, matte material and soft lighting. Do not redesign the character. The mineral body hue must read clearly as earthy terracotta. Keep face marks charcoal. Full single figure, square PNG with truly transparent alpha background and safe margins. No opaque background, no colored disc, no text, no extra details."+ },+ {+ "id": "zara",+ "name": "Zara",+ "category": "sales",+ "primary": false,+ "hex": "#D4B57C",+ "base": "#C9A35B",+ "source": "/experts/clay/v2/zara.png",+ "reuse": false,+ "url": "/experts/clay/v4/zara-sales.png",+ "prompt": "Recolor this exact clay expert avatar for the sales category. Replace ONLY its colored head and body clay with #D4B57C, a shade of the category's #C9A35B mineral hue. Keep all cream/off-white patches and inlays exactly as they are: preserve their positions, shapes and count. Preserve the exact head and body outlines, proportions, face, expression, pose, framing, matte material and soft lighting. Do not redesign the character. The mineral body hue must read clearly as golden ochre. Keep face marks charcoal. Full single figure, square PNG with truly transparent alpha background and safe margins. No opaque background, no colored disc, no text, no extra details."+ },+ {+ "id": "noor",+ "name": "Noor",+ "category": "marketing",+ "primary": true,+ "hex": "#A56B4D",+ "base": "#C47F5C",+ "source": "/experts/clay/v2/noor.png",+ "reuse": false,+ "url": "/experts/clay/v4/noor-marketing.png",+ "prompt": "Recolor this exact clay expert avatar for the marketing category. Replace ONLY its colored head and body clay with #A56B4D, a shade of the category's #C47F5C mineral hue. Keep all cream/off-white patches and inlays exactly as they are: preserve their positions, shapes and count. Preserve the exact head and body outlines, proportions, face, expression, pose, framing, matte material and soft lighting. Do not redesign the character. The mineral body hue must read clearly as earthy terracotta. Keep face marks charcoal. Full single figure, square PNG with truly transparent alpha background and safe margins. No opaque background, no colored disc, no text, no extra details."+ },+ {+ "id": "priya",+ "name": "Priya",+ "category": "research",+ "primary": true,+ "hex": "#9C9A70",+ "base": "#AAA77A",+ "source": "/experts/clay/v2/priya.png",+ "reuse": false,+ "url": "/experts/clay/v4/priya-research.png",+ "prompt": "Recolor this exact clay expert avatar for the research category. Replace ONLY its colored head and body clay with #9C9A70, a shade of the category's #AAA77A mineral hue. Keep all cream/off-white patches and inlays exactly as they are: preserve their positions, shapes and count. Preserve the exact head and body outlines, proportions, face, expression, pose, framing, matte material and soft lighting. Do not redesign the character. The mineral body hue must read clearly as olive. Keep face marks charcoal. Full single figure, square PNG with truly transparent alpha background and safe margins. No opaque background, no colored disc, no text, no extra details."+ },+ {+ "id": "ines",+ "name": "Ines",+ "category": "operations",+ "primary": true,+ "hex": "#8093A6",+ "base": "#98AFC6",+ "source": "/experts/clay/v2/ines.png",+ "reuse": false,+ "url": "/experts/clay/v4/ines-operations.png",+ "prompt": "Recolor this exact clay expert avatar for the operations category. Replace ONLY its colored head and body clay with #8093A6, a shade of the category's #98AFC6 mineral hue. Keep all cream/off-white patches and inlays exactly as they are: preserve their positions, shapes and count. Preserve the exact head and body outlines, proportions, face, expression, pose, framing, matte material and soft lighting. Do not redesign the character. The mineral body hue must read clearly as muted slate blue. Keep face marks charcoal. Full single figure, square PNG with truly transparent alpha background and safe margins. No opaque background, no colored disc, no text, no extra details."+ },+ {+ "id": "priya",+ "name": "Priya",+ "category": "operations",+ "primary": false,+ "hex": "#A4B9CD",+ "base": "#98AFC6",+ "source": "/experts/clay/v2/priya.png",+ "reuse": false,+ "url": "/experts/clay/v4/priya-operations.png",+ "prompt": "Recolor this exact clay expert avatar for the operations category. Replace ONLY its colored head and body clay with #A4B9CD, a shade of the category's #98AFC6 mineral hue. Keep all cream/off-white patches and inlays exactly as they are: preserve their positions, shapes and count. Preserve the exact head and body outlines, proportions, face, expression, pose, framing, matte material and soft lighting. Do not redesign the character. The mineral body hue must read clearly as muted slate blue. Keep face marks charcoal. Full single figure, square PNG with truly transparent alpha background and safe margins. No opaque background, no colored disc, no text, no extra details."+ },+ {+ "id": "omar",+ "name": "Omar",+ "category": "sales",+ "primary": true,+ "hex": "#B99654",+ "base": "#C9A35B",+ "source": "/experts/clay/v2/omar.png",+ "reuse": false,+ "url": "/experts/clay/v4/omar-sales.png",+ "prompt": "Recolor this exact clay expert avatar for the sales category. Replace ONLY its colored head and body clay with #B99654, a shade of the category's #C9A35B mineral hue. Keep all cream/off-white patches and inlays exactly as they are: preserve their positions, shapes and count. Preserve the exact head and body outlines, proportions, face, expression, pose, framing, matte material and soft lighting. Do not redesign the character. The mineral body hue must read clearly as golden ochre. Keep face marks charcoal. Full single figure, square PNG with truly transparent alpha background and safe margins. No opaque background, no colored disc, no text, no extra details."+ },+ {+ "id": "noor",+ "name": "Noor",+ "category": "content",+ "primary": false,+ "hex": "#C4BDB3",+ "base": "#B5ADA0",+ "source": "/experts/clay/v2/noor.png",+ "reuse": false,+ "url": "/experts/clay/v4/noor-content.png",+ "prompt": "Recolor this exact clay expert avatar for the content category. Replace ONLY its colored head and body clay with #C4BDB3, a shade of the category's #B5ADA0 mineral hue. Keep all cream/off-white patches and inlays exactly as they are: preserve their positions, shapes and count. Preserve the exact head and body outlines, proportions, face, expression, pose, framing, matte material and soft lighting. Do not redesign the character. The mineral body hue must read clearly as warm stone gray. Keep face marks charcoal. Full single figure, square PNG with truly transparent alpha background and safe margins. No opaque background, no colored disc, no text, no extra details."+ },+ {+ "id": "omar",+ "name": "Omar",+ "category": "operations",+ "primary": false,+ "hex": "#ADBFD1",+ "base": "#98AFC6",+ "source": "/experts/clay/v2/omar.png",+ "reuse": false,+ "url": "/experts/clay/v4/omar-operations.png",+ "prompt": "Recolor this exact clay expert avatar for the operations category. Replace ONLY its colored head and body clay with #ADBFD1, a shade of the category's #98AFC6 mineral hue. Keep all cream/off-white patches and inlays exactly as they are: preserve their positions, shapes and count. Preserve the exact head and body outlines, proportions, face, expression, pose, framing, matte material and soft lighting. Do not redesign the character. The mineral body hue must read clearly as muted slate blue. Keep face marks charcoal. Full single figure, square PNG with truly transparent alpha background and safe margins. No opaque background, no colored disc, no text, no extra details."+ },+ {+ "id": "marco",+ "name": "Marco",+ "category": "marketing",+ "primary": true,+ "hex": "#CB8E70",+ "base": "#C47F5C",+ "source": "/experts/clay/v3/marco.png",+ "reuse": false,+ "url": "/experts/clay/v4/marco-marketing.png",+ "prompt": "Recolor this exact clay expert avatar for the marketing category. Replace ONLY its colored head and body clay with #CB8E70, a shade of the category's #C47F5C mineral hue. Keep all cream/off-white patches and inlays exactly as they are: preserve their positions, shapes and count. Preserve the exact head and body outlines, proportions, face, expression, pose, framing, matte material and soft lighting. Do not redesign the character. The mineral body hue must read clearly as earthy terracotta. Keep face marks charcoal. Full single figure, square PNG with truly transparent alpha background and safe margins. No opaque background, no colored disc, no text, no extra details."+ },+ {+ "id": "lena",+ "name": "Lena",+ "category": "operations",+ "primary": true,+ "hex": "#8CA1B6",+ "base": "#98AFC6",+ "source": "/experts/clay/v3/lena.png",+ "reuse": false,+ "url": "/experts/clay/v4/lena-operations.png",+ "prompt": "Recolor this exact clay expert avatar for the operations category. Replace ONLY its colored head and body clay with #8CA1B6, a shade of the category's #98AFC6 mineral hue. Keep all cream/off-white patches and inlays exactly as they are: preserve their positions, shapes and count. Preserve the exact head and body outlines, proportions, face, expression, pose, framing, matte material and soft lighting. Do not redesign the character. The mineral body hue must read clearly as muted slate blue. Keep face marks charcoal. Full single figure, square PNG with truly transparent alpha background and safe margins. No opaque background, no colored disc, no text, no extra details."+ },+ {+ "id": "kai",+ "name": "Kai",+ "category": "support",+ "primary": true,+ "hex": "#BB8578",+ "base": "#CB9182",+ "source": "/experts/clay/v2/kai.png",+ "reuse": false,+ "url": "/experts/clay/v4/kai-support.png",+ "prompt": "Recolor this exact clay expert avatar for the support category. Replace ONLY its colored head and body clay with #BB8578, a shade of the category's #CB9182 mineral hue. Keep all cream/off-white patches and inlays exactly as they are: preserve their positions, shapes and count. Preserve the exact head and body outlines, proportions, face, expression, pose, framing, matte material and soft lighting. Do not redesign the character. The mineral body hue must read clearly as muted coral. Keep face marks charcoal. Full single figure, square PNG with truly transparent alpha background and safe margins. No opaque background, no colored disc, no text, no extra details."+ },+ {+ "id": "kai",+ "name": "Kai",+ "category": "operations",+ "primary": false,+ "hex": "#98AFC6",+ "base": "#98AFC6",+ "source": "/experts/clay/v2/kai.png",+ "reuse": false,+ "url": "/experts/clay/v4/kai-operations.png",+ "prompt": "Recolor this exact clay expert avatar for the operations category. Replace ONLY its colored head and body clay with #98AFC6, a shade of the category's #98AFC6 mineral hue. Keep all cream/off-white patches and inlays exactly as they are: preserve their positions, shapes and count. Preserve the exact head and body outlines, proportions, face, expression, pose, framing, matte material and soft lighting. Do not redesign the character. The mineral body hue must read clearly as muted slate blue. Keep face marks charcoal. Full single figure, square PNG with truly transparent alpha background and safe margins. No opaque background, no colored disc, no text, no extra details."+ }+]diff --git a/autogpt_platform/frontend/public/experts/clay/v4/README.md b/autogpt_platform/frontend/public/experts/clay/v4/README.mdnew file mode 100644index 0000000000..c7909bc52b--- /dev/null+++ b/autogpt_platform/frontend/public/experts/clay/v4/README.md@@ -0,0 +1,5 @@+# Category color variants++41 recolor edits made with the built-in imagegen tool, paired with 11 existing category-correct images. The catalog covers all 52 category assignments across 32 built-ins. Each edit keeps the source silhouette, expression and cream accents while changing the body to a shade of the category's fixed mineral hue. The base hex also drives the filter dot and pastel background.++Exact prompts, source asset paths, target shades and output URLs are in PROMPTS.json. New outputs are transparent 512px PNGs. A filtered Marketplace card uses the matching category variant; All and Team use the primary category. Uploads remain unchanged.diff --git a/autogpt_platform/frontend/public/experts/clay/v4/alex-development.png b/autogpt_platform/frontend/public/experts/clay/v4/alex-development.pngnew file mode 100644index 0000000000..058e1f6befBinary files /dev/null and b/autogpt_platform/frontend/public/experts/clay/v4/alex-development.png differdiff --git a/autogpt_platform/frontend/public/experts/clay/v4/alex-research.png b/autogpt_platform/frontend/public/experts/clay/v4/alex-research.pngnew file mode 100644index 0000000000..fbd1b8398cBinary files /dev/null and b/autogpt_platform/frontend/public/experts/clay/v4/alex-research.png differdiff --git a/autogpt_platform/frontend/public/experts/clay/v4/anika-operations.png b/autogpt_platform/frontend/public/experts/clay/v4/anika-operations.pngnew file mode 100644index 0000000000..5b79409e5dBinary files /dev/null and b/autogpt_platform/frontend/public/experts/clay/v4/anika-operations.png differdiff --git a/autogpt_platform/frontend/public/experts/clay/v4/anika-sales.png b/autogpt_platform/frontend/public/experts/clay/v4/anika-sales.pngnew file mode 100644index 0000000000..ec2ea31d87Binary files /dev/null and b/autogpt_platform/frontend/public/experts/clay/v4/anika-sales.png differdiff --git a/autogpt_platform/frontend/public/experts/clay/v4/daniel-finance.png b/autogpt_platform/frontend/public/experts/clay/v4/daniel-finance.pngnew file mode 100644index 0000000000..d698bb1096Binary files /dev/null and b/autogpt_platform/frontend/public/experts/clay/v4/daniel-finance.png differdiff --git a/autogpt_platform/frontend/public/experts/clay/v4/daniel-research.png b/autogpt_platform/frontend/public/experts/clay/v4/daniel-research.pngnew file mode 100644index 0000000000..8f825ef723Binary files /dev/null and b/autogpt_platform/frontend/public/experts/clay/v4/daniel-research.png differdiff --git a/autogpt_platform/frontend/public/experts/clay/v4/ellis-operations.png b/autogpt_platform/frontend/public/experts/clay/v4/ellis-operations.pngnew file mode 100644index 0000000000..f4251def92Binary files /dev/null and b/autogpt_platform/frontend/public/experts/clay/v4/ellis-operations.png differdiff --git a/autogpt_platform/frontend/public/experts/clay/v4/frankie-support.png b/autogpt_platform/frontend/public/experts/clay/v4/frankie-support.pngnew file mode 100644index 0000000000..c71d826728Binary files /dev/null and b/autogpt_platform/frontend/public/experts/clay/v4/frankie-support.png differdiff --git a/autogpt_platform/frontend/public/experts/clay/v4/harper-operations.png b/autogpt_platform/frontend/public/experts/clay/v4/harper-operations.pngnew file mode 100644index 0000000000..2447d7d62dBinary files /dev/null and b/autogpt_platform/frontend/public/experts/clay/v4/harper-operations.png differdiff --git a/autogpt_platform/frontend/public/experts/clay/v4/ines-operations.png b/autogpt_platform/frontend/public/experts/clay/v4/ines-operations.pngnew file mode 100644index 0000000000..ffeebec0ffBinary files /dev/null and b/autogpt_platform/frontend/public/experts/clay/v4/ines-operations.png differdiff --git a/autogpt_platform/frontend/public/experts/clay/v4/james-finance.png b/autogpt_platform/frontend/public/experts/clay/v4/james-finance.pngnew file mode 100644index 0000000000..07c3ed8baaBinary files /dev/null and b/autogpt_platform/frontend/public/experts/clay/v4/james-finance.png differdiff --git a/autogpt_platform/frontend/public/experts/clay/v4/james-operations.png b/autogpt_platform/frontend/public/experts/clay/v4/james-operations.pngnew file mode 100644index 0000000000..f7b2710f3dBinary files /dev/null and b/autogpt_platform/frontend/public/experts/clay/v4/james-operations.png differdiff --git a/autogpt_platform/frontend/public/experts/clay/v4/jordan-sales.png b/autogpt_platform/frontend/public/experts/clay/v4/jordan-sales.pngnew file mode 100644index 0000000000..5fa196500fBinary files /dev/null and b/autogpt_platform/frontend/public/experts/clay/v4/jordan-sales.png differdiff --git a/autogpt_platform/frontend/public/experts/clay/v4/jules-content.png b/autogpt_platform/frontend/public/experts/clay/v4/jules-content.pngnew file mode 100644index 0000000000..05f7bf5e1fBinary files /dev/null and b/autogpt_platform/frontend/public/experts/clay/v4/jules-content.png differdiff --git a/autogpt_platform/frontend/public/experts/clay/v4/kai-operations.png b/autogpt_platform/frontend/public/experts/clay/v4/kai-operations.pngnew file mode 100644index 0000000000..df406e7d76Binary files /dev/null and b/autogpt_platform/frontend/public/experts/clay/v4/kai-operations.png differdiff --git a/autogpt_platform/frontend/public/experts/clay/v4/kai-support.png b/autogpt_platform/frontend/public/experts/clay/v4/kai-support.pngnew file mode 100644index 0000000000..fda87371cfBinary files /dev/null and b/autogpt_platform/frontend/public/experts/clay/v4/kai-support.png differdiff --git a/autogpt_platform/frontend/public/experts/clay/v4/lena-operations.png b/autogpt_platform/frontend/public/experts/clay/v4/lena-operations.pngnew file mode 100644index 0000000000..f61753196fBinary files /dev/null and b/autogpt_platform/frontend/public/experts/clay/v4/lena-operations.png differdiff --git a/autogpt_platform/frontend/public/experts/clay/v4/marco-marketing.png b/autogpt_platform/frontend/public/experts/clay/v4/marco-marketing.pngnew file mode 100644index 0000000000..126367a704Binary files /dev/null and b/autogpt_platform/frontend/public/experts/clay/v4/marco-marketing.png differdiff --git a/autogpt_platform/frontend/public/experts/clay/v4/maria-content.png b/autogpt_platform/frontend/public/experts/clay/v4/maria-content.pngnew file mode 100644index 0000000000..1502720c9dBinary files /dev/null and b/autogpt_platform/frontend/public/experts/clay/v4/maria-content.png differdiff --git a/autogpt_platform/frontend/public/experts/clay/v4/max-operations.png b/autogpt_platform/frontend/public/experts/clay/v4/max-operations.pngnew file mode 100644index 0000000000..0721f3146eBinary files /dev/null and b/autogpt_platform/frontend/public/experts/clay/v4/max-operations.png differdiff --git a/autogpt_platform/frontend/public/experts/clay/v4/maya-content.png b/autogpt_platform/frontend/public/experts/clay/v4/maya-content.pngnew file mode 100644index 0000000000..0977e1c720Binary files /dev/null and b/autogpt_platform/frontend/public/experts/clay/v4/maya-content.png differdiff --git a/autogpt_platform/frontend/public/experts/clay/v4/maya-marketing.png b/autogpt_platform/frontend/public/experts/clay/v4/maya-marketing.pngnew file mode 100644index 0000000000..c7dd83a9d9Binary files /dev/null and b/autogpt_platform/frontend/public/experts/clay/v4/maya-marketing.png differdiff --git a/autogpt_platform/frontend/public/experts/clay/v4/mina-operations.png b/autogpt_platform/frontend/public/experts/clay/v4/mina-operations.pngnew file mode 100644index 0000000000..4baf22f41eBinary files /dev/null and b/autogpt_platform/frontend/public/experts/clay/v4/mina-operations.png differdiff --git a/autogpt_platform/frontend/public/experts/clay/v4/nadia-marketing.png b/autogpt_platform/frontend/public/experts/clay/v4/nadia-marketing.pngnew file mode 100644index 0000000000..1e970ab125Binary files /dev/null and b/autogpt_platform/frontend/public/experts/clay/v4/nadia-marketing.png differdiff --git a/autogpt_platform/frontend/public/experts/clay/v4/noor-content.png b/autogpt_platform/frontend/public/experts/clay/v4/noor-content.pngnew file mode 100644index 0000000000..6b1eaede87Binary files /dev/null and b/autogpt_platform/frontend/public/experts/clay/v4/noor-content.png differdiff --git a/autogpt_platform/frontend/public/experts/clay/v4/noor-marketing.png b/autogpt_platform/frontend/public/experts/clay/v4/noor-marketing.pngnew file mode 100644index 0000000000..0c6cc8ea24Binary files /dev/null and b/autogpt_platform/frontend/public/experts/clay/v4/noor-marketing.png differdiff --git a/autogpt_platform/frontend/public/experts/clay/v4/omar-operations.png b/autogpt_platform/frontend/public/experts/clay/v4/omar-operations.pngnew file mode 100644index 0000000000..b7c3e4c4a3Binary files /dev/null and b/autogpt_platform/frontend/public/experts/clay/v4/omar-operations.png differdiff --git a/autogpt_platform/frontend/public/experts/clay/v4/omar-sales.png b/autogpt_platform/frontend/public/experts/clay/v4/omar-sales.pngnew file mode 100644index 0000000000..d6c30204dbBinary files /dev/null and b/autogpt_platform/frontend/public/experts/clay/v4/omar-sales.png differdiff --git a/autogpt_platform/frontend/public/experts/clay/v4/priya-operations.png b/autogpt_platform/frontend/public/experts/clay/v4/priya-operations.pngnew file mode 100644index 0000000000..3a0479b9ccBinary files /dev/null and b/autogpt_platform/frontend/public/experts/clay/v4/priya-operations.png differdiff --git a/autogpt_platform/frontend/public/experts/clay/v4/priya-research.png b/autogpt_platform/frontend/public/experts/clay/v4/priya-research.pngnew file mode 100644index 0000000000..3e9864829fBinary files /dev/null and b/autogpt_platform/frontend/public/experts/clay/v4/priya-research.png differdiff --git a/autogpt_platform/frontend/public/experts/clay/v4/quinn-finance.png b/autogpt_platform/frontend/public/experts/clay/v4/quinn-finance.pngnew file mode 100644index 0000000000..900703dbd0Binary files /dev/null and b/autogpt_platform/frontend/public/experts/clay/v4/quinn-finance.png differdiff --git a/autogpt_platform/frontend/public/experts/clay/v4/remy-marketing.png b/autogpt_platform/frontend/public/experts/clay/v4/remy-marketing.pngnew file mode 100644index 0000000000..a68bf7b954Binary files /dev/null and b/autogpt_platform/frontend/public/experts/clay/v4/remy-marketing.png differdiff --git a/autogpt_platform/frontend/public/experts/clay/v4/robin-operations.png b/autogpt_platform/frontend/public/experts/clay/v4/robin-operations.pngnew file mode 100644index 0000000000..317370a633Binary files /dev/null and b/autogpt_platform/frontend/public/experts/clay/v4/robin-operations.png differdiff --git a/autogpt_platform/frontend/public/experts/clay/v4/robin-support.png b/autogpt_platform/frontend/public/experts/clay/v4/robin-support.pngnew file mode 100644index 0000000000..22ce1302e7Binary files /dev/null and b/autogpt_platform/frontend/public/experts/clay/v4/robin-support.png differdiff --git a/autogpt_platform/frontend/public/experts/clay/v4/sofia-operations.png b/autogpt_platform/frontend/public/experts/clay/v4/sofia-operations.pngnew file mode 100644index 0000000000..f6d39cc983Binary files /dev/null and b/autogpt_platform/frontend/public/experts/clay/v4/sofia-operations.png differdiff --git a/autogpt_platform/frontend/public/experts/clay/v4/theo-finance.png b/autogpt_platform/frontend/public/experts/clay/v4/theo-finance.pngnew file mode 100644index 0000000000..17cc5727d8Binary files /dev/null and b/autogpt_platform/frontend/public/experts/clay/v4/theo-finance.png differdiff --git a/autogpt_platform/frontend/public/experts/clay/v4/theo-operations.png b/autogpt_platform/frontend/public/experts/clay/v4/theo-operations.pngnew file mode 100644index 0000000000..34af12a7c0Binary files /dev/null and b/autogpt_platform/frontend/public/experts/clay/v4/theo-operations.png differdiff --git a/autogpt_platform/frontend/public/experts/clay/v4/vera-finance.png b/autogpt_platform/frontend/public/experts/clay/v4/vera-finance.pngnew file mode 100644index 0000000000..38d272674bBinary files /dev/null and b/autogpt_platform/frontend/public/experts/clay/v4/vera-finance.png differdiff --git a/autogpt_platform/frontend/public/experts/clay/v4/vera-operations.png b/autogpt_platform/frontend/public/experts/clay/v4/vera-operations.pngnew file mode 100644index 0000000000..ec45c81a9dBinary files /dev/null and b/autogpt_platform/frontend/public/experts/clay/v4/vera-operations.png differdiff --git a/autogpt_platform/frontend/public/experts/clay/v4/zara-marketing.png b/autogpt_platform/frontend/public/experts/clay/v4/zara-marketing.pngnew file mode 100644index 0000000000..847d679b74Binary files /dev/null and b/autogpt_platform/frontend/public/experts/clay/v4/zara-marketing.png differdiff --git a/autogpt_platform/frontend/public/experts/clay/v4/zara-sales.png b/autogpt_platform/frontend/public/experts/clay/v4/zara-sales.pngnew file mode 100644index 0000000000..587669aa6eBinary files /dev/null and b/autogpt_platform/frontend/public/experts/clay/v4/zara-sales.png differdiff --git a/autogpt_platform/frontend/public/experts/clay/v5/PROMPTS.json b/autogpt_platform/frontend/public/experts/clay/v5/PROMPTS.jsonnew file mode 100644index 0000000000..9f99451ad6--- /dev/null+++ b/autogpt_platform/frontend/public/experts/clay/v5/PROMPTS.json@@ -0,0 +1,218 @@+[+ {+ "id": "nadia",+ "name": "Nadia",+ "category": "marketing",+ "base": "#C45F36",+ "hex": "#AC5430",+ "source": "/experts/clay/v4/nadia-marketing.png",+ "old_url": "/experts/clay/v4/nadia-marketing.png",+ "primary": false,+ "url": "/experts/clay/v5/nadia-marketing.png",+ "prompt": "Use case: precise-object-edit. Edit target: the attached Nadia expert avatar. Change ONLY the colored clay head and body material to #AC5430, a shade of deep orange terracotta for Marketing. Preserve the exact silhouette, head angle, face, cream accents and their placement, scale, framing, and soft matte clay lighting. Keep all cream accents #EAE2D5 and charcoal facial marks unchanged. The output must be a square transparent PNG with a true alpha background, no colored backdrop, no text, no added objects. This is a production avatar color correction, not a redesign. Strong orange-red terracotta, not beige, pink, or brown."+ },+ {+ "id": "jules",+ "name": "Jules",+ "category": "marketing",+ "base": "#C45F36",+ "hex": "#CB724E",+ "source": "/experts/clay/v3/jules.png",+ "old_url": "/experts/clay/v3/jules.png",+ "primary": true,+ "url": "/experts/clay/v5/jules-marketing.png",+ "prompt": "Use case: precise-object-edit. Edit target: the attached Jules expert avatar. Change ONLY the colored clay head and body material to #CB724E, a shade of deep orange terracotta for Marketing. Preserve the exact silhouette, head angle, face, cream accents and their placement, scale, framing, and soft matte clay lighting. Keep all cream accents #EAE2D5 and charcoal facial marks unchanged. The output must be a square transparent PNG with a true alpha background, no colored backdrop, no text, no added objects. This is a production avatar color correction, not a redesign. Strong orange-red terracotta, not beige, pink, or brown."+ },+ {+ "id": "maria",+ "name": "Maria",+ "category": "marketing",+ "base": "#C45F36",+ "hex": "#C45F36",+ "source": "/experts/transparent/maria.webp",+ "old_url": "/autogpt-characters/v1.1/expert-maria/neutral/128.webp",+ "primary": true,+ "url": "/experts/clay/v5/maria-marketing.png",+ "prompt": "Use case: precise-object-edit. Edit target: the attached Maria expert avatar. Change ONLY the colored clay head and body material to #C45F36, a shade of deep orange terracotta for Marketing. Preserve the exact silhouette, head angle, face, cream accents and their placement, scale, framing, and soft matte clay lighting. Keep all cream accents #EAE2D5 and charcoal facial marks unchanged. The output must be a square transparent PNG with a true alpha background, no colored backdrop, no text, no added objects. This is a production avatar color correction, not a redesign. Strong orange-red terracotta, not beige, pink, or brown."+ },+ {+ "id": "remy",+ "name": "Remy",+ "category": "marketing",+ "base": "#C45F36",+ "hex": "#CF7C5A",+ "source": "/experts/clay/v4/remy-marketing.png",+ "old_url": "/experts/clay/v4/remy-marketing.png",+ "primary": true,+ "url": "/experts/clay/v5/remy-marketing.png",+ "prompt": "Use case: precise-object-edit. Edit target: attached Remy avatar. Change ONLY the colored clay head and body material to #CF7C5A, deep orange-red terracotta, not beige or pink, for category marketing. Preserve exact silhouette, head angle, face and expression, cream accents and placement, scale and framing, soft matte clay lighting. Cream accents remain #EAE2D5 and facial marks remain charcoal. Square transparent PNG, true alpha background, no backdrop, no text, no added objects. A production avatar color correction, not a redesign."+ },+ {+ "id": "riley",+ "name": "Riley",+ "category": "support",+ "base": "#C45B88",+ "hex": "#C45B88",+ "source": "/experts/clay/v2/riley.png",+ "old_url": "/experts/clay/v2/riley.png",+ "primary": true,+ "url": "/experts/clay/v5/riley-support.png",+ "prompt": "Use case: precise-object-edit. Edit target: attached Riley avatar. Change ONLY the colored clay head and body material to #C45B88, dusty pink rose, not orange, peach, or terracotta, for category support. Preserve exact silhouette, head angle, face and expression, cream accents and placement, scale and framing, soft matte clay lighting. Cream accents remain #EAE2D5 and facial marks remain charcoal. Square transparent PNG, true alpha background, no backdrop, no text, no added objects. A production avatar color correction, not a redesign."+ },+ {+ "id": "max",+ "name": "Max",+ "category": "sales",+ "base": "#D5AB24",+ "hex": "#D5AB24",+ "source": "/experts/clay/v2/max.png",+ "old_url": "/experts/clay/v2/max.png",+ "primary": true,+ "url": "/experts/clay/v5/max-sales.png",+ "prompt": "Use case: precise-object-edit. Edit target: attached Max avatar. Change ONLY the colored clay head and body material to #D5AB24, clear golden yellow, not orange, brown, or beige, for category sales. Preserve exact silhouette, head angle, face and expression, cream accents and placement, scale and framing, soft matte clay lighting. Cream accents remain #EAE2D5 and facial marks remain charcoal. Square transparent PNG, true alpha background, no backdrop, no text, no added objects. A production avatar color correction, not a redesign."+ },+ {+ "id": "robin",+ "name": "Robin",+ "category": "support",+ "base": "#C45B88",+ "hex": "#AC5078",+ "source": "/experts/clay/v4/robin-support.png",+ "old_url": "/experts/clay/v4/robin-support.png",+ "primary": true,+ "url": "/experts/clay/v5/robin-support.png",+ "prompt": "Use case: precise-object-edit. Edit target: attached Robin avatar. Change ONLY the colored clay head and body material to #AC5078, dusty pink rose, not orange, peach, or terracotta, for category support. Preserve exact silhouette, head angle, face and expression, cream accents and placement, scale and framing, soft matte clay lighting. Cream accents remain #EAE2D5 and facial marks remain charcoal. Square transparent PNG, true alpha background, no backdrop, no text, no added objects. A production avatar color correction, not a redesign."+ },+ {+ "id": "anika",+ "name": "Anika",+ "category": "sales",+ "base": "#D5AB24",+ "hex": "#BB9620",+ "source": "/experts/clay/v4/anika-sales.png",+ "old_url": "/experts/clay/v4/anika-sales.png",+ "primary": true,+ "url": "/experts/clay/v5/anika-sales.png",+ "prompt": "Use case: precise-object-edit. Edit target: attached Anika avatar. Change ONLY the colored clay head and body material to #BB9620, clear golden yellow, not orange, brown, or beige, for category sales. Preserve exact silhouette, head angle, face and expression, cream accents and placement, scale and framing, soft matte clay lighting. Cream accents remain #EAE2D5 and facial marks remain charcoal. Square transparent PNG, true alpha background, no backdrop, no text, no added objects. A production avatar color correction, not a redesign."+ },+ {+ "id": "frankie",+ "name": "Frankie",+ "category": "support",+ "base": "#C45B88",+ "hex": "#CB6F96",+ "source": "/experts/clay/v4/frankie-support.png",+ "old_url": "/experts/clay/v4/frankie-support.png",+ "primary": false,+ "url": "/experts/clay/v5/frankie-support.png",+ "prompt": "Use case: precise-object-edit. Edit target: attached Frankie avatar. Change ONLY the colored clay head and body material to #CB6F96, dusty pink rose, not orange, peach, or terracotta, for category support. Preserve exact silhouette, head angle, face and expression, cream accents and placement, scale and framing, soft matte clay lighting. Cream accents remain #EAE2D5 and facial marks remain charcoal. Square transparent PNG, true alpha background, no backdrop, no text, no added objects. A production avatar color correction, not a redesign."+ },+ {+ "id": "jordan",+ "name": "Jordan",+ "category": "sales",+ "base": "#D5AB24",+ "hex": "#DAB53E",+ "source": "/experts/clay/v4/jordan-sales.png",+ "old_url": "/experts/clay/v4/jordan-sales.png",+ "primary": true,+ "url": "/experts/clay/v5/jordan-sales.png",+ "prompt": "Use case: precise-object-edit. Edit target: attached Jordan avatar. Change ONLY the colored clay head and body material to #DAB53E, clear golden yellow, not orange, brown, or beige, for category sales. Preserve exact silhouette, head angle, face and expression, cream accents and placement, scale and framing, soft matte clay lighting. Cream accents remain #EAE2D5 and facial marks remain charcoal. Square transparent PNG, true alpha background, no backdrop, no text, no added objects. A production avatar color correction, not a redesign."+ },+ {+ "id": "zara",+ "name": "Zara",+ "category": "sales",+ "base": "#D5AB24",+ "hex": "#DDBA4B",+ "source": "/experts/clay/v4/zara-sales.png",+ "old_url": "/experts/clay/v4/zara-sales.png",+ "primary": false,+ "url": "/experts/clay/v5/zara-sales.png",+ "prompt": "Use case: precise-object-edit. Edit target: attached Zara avatar. Change ONLY the colored clay head and body material to #DDBA4B, clear golden yellow, not orange, brown, or beige, for category sales. Preserve exact silhouette, head angle, face and expression, cream accents and placement, scale and framing, soft matte clay lighting. Cream accents remain #EAE2D5 and facial marks remain charcoal. Square transparent PNG, true alpha background, no backdrop, no text, no added objects. A production avatar color correction, not a redesign."+ },+ {+ "id": "sasha",+ "name": "Sasha",+ "category": "support",+ "base": "#C45B88",+ "hex": "#CF799D",+ "source": "/experts/clay/v2/sasha.png",+ "old_url": "/experts/clay/v2/sasha.png",+ "primary": true,+ "url": "/experts/clay/v5/sasha-support.png",+ "prompt": "Use case: precise-object-edit. Edit target: attached Sasha avatar. Change ONLY the colored clay head and body material to #CF799D, dusty pink rose, not orange, peach, or terracotta, for category support. Preserve exact silhouette, head angle, face and expression, cream accents and placement, scale and framing, soft matte clay lighting. Cream accents remain #EAE2D5 and facial marks remain charcoal. Square transparent PNG, true alpha background, no backdrop, no text, no added objects. A production avatar color correction, not a redesign."+ },+ {+ "id": "zara",+ "name": "Zara",+ "category": "marketing",+ "base": "#C45F36",+ "hex": "#C45F36",+ "source": "/experts/clay/v4/zara-marketing.png",+ "old_url": "/experts/clay/v4/zara-marketing.png",+ "primary": true,+ "url": "/experts/clay/v5/zara-marketing.png",+ "prompt": "Use case: precise-object-edit. Edit target: attached Zara avatar. Change ONLY the colored clay head and body material to #C45F36, deep orange-red terracotta, not beige or pink, for category marketing. Preserve exact silhouette, head angle, face and expression, cream accents and placement, scale and framing, soft matte clay lighting. Cream accents remain #EAE2D5 and facial marks remain charcoal. Square transparent PNG, true alpha background, no backdrop, no text, no added objects. A production avatar color correction, not a redesign."+ },+ {+ "id": "maya",+ "name": "Maya",+ "category": "marketing",+ "base": "#C45F36",+ "hex": "#B85933",+ "source": "/experts/clay/v4/maya-marketing.png",+ "old_url": "/experts/clay/v4/maya-marketing.png",+ "primary": true,+ "url": "/experts/clay/v5/maya-marketing.png",+ "prompt": "Use case: precise-object-edit. Edit target: attached Maya avatar. Change ONLY the colored clay head and body material to #B85933, deep orange-red terracotta, not beige or pink, for category marketing. Preserve exact silhouette, head angle, face and expression, cream accents and placement, scale and framing, soft matte clay lighting. Cream accents remain #EAE2D5 and facial marks remain charcoal. Square transparent PNG, true alpha background, no backdrop, no text, no added objects. A production avatar color correction, not a redesign."+ },+ {+ "id": "omar",+ "name": "Omar",+ "category": "sales",+ "base": "#D5AB24",+ "hex": "#C8A122",+ "source": "/experts/clay/v4/omar-sales.png",+ "old_url": "/experts/clay/v4/omar-sales.png",+ "primary": true,+ "url": "/experts/clay/v5/omar-sales.png",+ "prompt": "Use case: precise-object-edit. Edit target: attached Omar avatar. Change ONLY the colored clay head and body material to #C8A122, clear golden yellow, not orange, brown, or beige, for category sales. Preserve exact silhouette, head angle, face and expression, cream accents and placement, scale and framing, soft matte clay lighting. Cream accents remain #EAE2D5 and facial marks remain charcoal. Square transparent PNG, true alpha background, no backdrop, no text, no added objects. A production avatar color correction, not a redesign."+ },+ {+ "id": "kai",+ "name": "Kai",+ "category": "support",+ "base": "#C45B88",+ "hex": "#B85680",+ "source": "/experts/clay/v4/kai-support.png",+ "old_url": "/experts/clay/v4/kai-support.png",+ "primary": true,+ "url": "/experts/clay/v5/kai-support.png",+ "prompt": "Use case: precise-object-edit. Edit target: attached Kai avatar. Change ONLY the colored clay head and body material to #B85680, dusty pink rose, not orange, peach, or terracotta, for category support. Preserve exact silhouette, head angle, face and expression, cream accents and placement, scale and framing, soft matte clay lighting. Cream accents remain #EAE2D5 and facial marks remain charcoal. Square transparent PNG, true alpha background, no backdrop, no text, no added objects. A production avatar color correction, not a redesign."+ },+ {+ "id": "marco",+ "name": "Marco",+ "category": "marketing",+ "base": "#C45F36",+ "hex": "#CB724E",+ "source": "/experts/clay/v4/marco-marketing.png",+ "old_url": "/experts/clay/v4/marco-marketing.png",+ "primary": true,+ "url": "/experts/clay/v5/marco-marketing.png",+ "prompt": "Use case: precise-object-edit. Edit target: attached Marco avatar. Change ONLY the colored clay head and body material to #CB724E, deep orange-red terracotta, not beige or pink, for category marketing. Preserve exact silhouette, head angle, face and expression, cream accents and placement, scale and framing, soft matte clay lighting. Cream accents remain #EAE2D5 and facial marks remain charcoal. Square transparent PNG, true alpha background, no backdrop, no text, no added objects. A production avatar color correction, not a redesign."+ },+ {+ "id": "noor",+ "name": "Noor",+ "category": "marketing",+ "base": "#C45F36",+ "hex": "#AC5430",+ "source": "/experts/clay/v4/noor-marketing.png",+ "old_url": "/experts/clay/v4/noor-marketing.png",+ "primary": true,+ "url": "/experts/clay/v5/noor-marketing.png",+ "prompt": "Use case: precise-object-edit. Edit target: attached Noor avatar. Change ONLY the colored clay head and body material to #AC5430, deep orange-red terracotta, not beige or pink, for category marketing. Preserve exact silhouette, head angle, face and expression, cream accents and placement, scale and framing, soft matte clay lighting. Cream accents remain #EAE2D5 and facial marks remain charcoal. Square transparent PNG, true alpha background, no backdrop, no text, no added objects. A production avatar color correction, not a redesign."+ }+]diff --git a/autogpt_platform/frontend/public/experts/clay/v5/README.md b/autogpt_platform/frontend/public/experts/clay/v5/README.mdnew file mode 100644index 0000000000..0305a389ea--- /dev/null+++ b/autogpt_platform/frontend/public/experts/clay/v5/README.md@@ -0,0 +1,7 @@+# Category contrast revision++Eighteen transparent 512px PNG edits made with the built-in Codex image-generation tool. `PROMPTS.json` records each source image, category shade, and full edit prompt.++Marketing uses deep terracotta (#C45F36), Sales uses gold (#D5AB24), and Support uses rose (#C45B88), with lighter and darker shades for each expert. This user-approved change makes the three categories easier to tell apart while keeping the same shapes, faces, and cream accents. The shared avatar catalog supplies these colors to bodies, backgrounds, filter dots, and the live creator. Otto retains reserved lavender.++Generated images keep true alpha transparency. Outputs were resized to 512px with `sips`; no programmatic recoloring was used. Earlier versioned artwork remains available for saved URLs.diff --git a/autogpt_platform/frontend/public/experts/clay/v5/anika-sales.png b/autogpt_platform/frontend/public/experts/clay/v5/anika-sales.pngnew file mode 100644index 0000000000..bbb3dd45fcBinary files /dev/null and b/autogpt_platform/frontend/public/experts/clay/v5/anika-sales.png differdiff --git a/autogpt_platform/frontend/public/experts/clay/v5/frankie-support.png b/autogpt_platform/frontend/public/experts/clay/v5/frankie-support.pngnew file mode 100644index 0000000000..726cb19b75Binary files /dev/null and b/autogpt_platform/frontend/public/experts/clay/v5/frankie-support.png differdiff --git a/autogpt_platform/frontend/public/experts/clay/v5/jordan-sales.png b/autogpt_platform/frontend/public/experts/clay/v5/jordan-sales.pngnew file mode 100644index 0000000000..4df6b0222cBinary files /dev/null and b/autogpt_platform/frontend/public/experts/clay/v5/jordan-sales.png differdiff --git a/autogpt_platform/frontend/public/experts/clay/v5/jules-marketing.png b/autogpt_platform/frontend/public/experts/clay/v5/jules-marketing.pngnew file mode 100644index 0000000000..b1ed1b857fBinary files /dev/null and b/autogpt_platform/frontend/public/experts/clay/v5/jules-marketing.png differdiff --git a/autogpt_platform/frontend/public/experts/clay/v5/kai-support.png b/autogpt_platform/frontend/public/experts/clay/v5/kai-support.pngnew file mode 100644index 0000000000..3e7ce6bc2fBinary files /dev/null and b/autogpt_platform/frontend/public/experts/clay/v5/kai-support.png differdiff --git a/autogpt_platform/frontend/public/experts/clay/v5/marco-marketing.png b/autogpt_platform/frontend/public/experts/clay/v5/marco-marketing.pngnew file mode 100644index 0000000000..404f0c7699Binary files /dev/null and b/autogpt_platform/frontend/public/experts/clay/v5/marco-marketing.png differdiff --git a/autogpt_platform/frontend/public/experts/clay/v5/maria-marketing.png b/autogpt_platform/frontend/public/experts/clay/v5/maria-marketing.pngnew file mode 100644index 0000000000..dc55f6a55eBinary files /dev/null and b/autogpt_platform/frontend/public/experts/clay/v5/maria-marketing.png differdiff --git a/autogpt_platform/frontend/public/experts/clay/v5/max-sales.png b/autogpt_platform/frontend/public/experts/clay/v5/max-sales.pngnew file mode 100644index 0000000000..e14388c64aBinary files /dev/null and b/autogpt_platform/frontend/public/experts/clay/v5/max-sales.png differdiff --git a/autogpt_platform/frontend/public/experts/clay/v5/maya-marketing.png b/autogpt_platform/frontend/public/experts/clay/v5/maya-marketing.pngnew file mode 100644index 0000000000..3349f3caeeBinary files /dev/null and b/autogpt_platform/frontend/public/experts/clay/v5/maya-marketing.png differdiff --git a/autogpt_platform/frontend/public/experts/clay/v5/nadia-marketing.png b/autogpt_platform/frontend/public/experts/clay/v5/nadia-marketing.pngnew file mode 100644index 0000000000..128ba9a9a0Binary files /dev/null and b/autogpt_platform/frontend/public/experts/clay/v5/nadia-marketing.png differdiff --git a/autogpt_platform/frontend/public/experts/clay/v5/noor-marketing.png b/autogpt_platform/frontend/public/experts/clay/v5/noor-marketing.pngnew file mode 100644index 0000000000..a3ed4253b4Binary files /dev/null and b/autogpt_platform/frontend/public/experts/clay/v5/noor-marketing.png differdiff --git a/autogpt_platform/frontend/public/experts/clay/v5/omar-sales.png b/autogpt_platform/frontend/public/experts/clay/v5/omar-sales.pngnew file mode 100644index 0000000000..6d281d4ff4Binary files /dev/null and b/autogpt_platform/frontend/public/experts/clay/v5/omar-sales.png differdiff --git a/autogpt_platform/frontend/public/experts/clay/v5/remy-marketing.png b/autogpt_platform/frontend/public/experts/clay/v5/remy-marketing.pngnew file mode 100644index 0000000000..369878394aBinary files /dev/null and b/autogpt_platform/frontend/public/experts/clay/v5/remy-marketing.png differdiff --git a/autogpt_platform/frontend/public/experts/clay/v5/riley-support.png b/autogpt_platform/frontend/public/experts/clay/v5/riley-support.pngnew file mode 100644index 0000000000..823dc53d82Binary files /dev/null and b/autogpt_platform/frontend/public/experts/clay/v5/riley-support.png differdiff --git a/autogpt_platform/frontend/public/experts/clay/v5/robin-support.png b/autogpt_platform/frontend/public/experts/clay/v5/robin-support.pngnew file mode 100644index 0000000000..0e6f4bd210Binary files /dev/null and b/autogpt_platform/frontend/public/experts/clay/v5/robin-support.png differdiff --git a/autogpt_platform/frontend/public/experts/clay/v5/sasha-support.png b/autogpt_platform/frontend/public/experts/clay/v5/sasha-support.pngnew file mode 100644index 0000000000..fde5eef4d5Binary files /dev/null and b/autogpt_platform/frontend/public/experts/clay/v5/sasha-support.png differdiff --git a/autogpt_platform/frontend/public/experts/clay/v5/zara-marketing.png b/autogpt_platform/frontend/public/experts/clay/v5/zara-marketing.pngnew file mode 100644index 0000000000..e71539ff34Binary files /dev/null and b/autogpt_platform/frontend/public/experts/clay/v5/zara-marketing.png differdiff --git a/autogpt_platform/frontend/public/experts/clay/v5/zara-sales.png b/autogpt_platform/frontend/public/experts/clay/v5/zara-sales.pngnew file mode 100644index 0000000000..1a14db7b16Binary files /dev/null and b/autogpt_platform/frontend/public/experts/clay/v5/zara-sales.png differdiff --git a/autogpt_platform/frontend/src/app/(platform)/copilot/__tests__/recipient-colors.test.tsx b/autogpt_platform/frontend/src/app/(platform)/copilot/__tests__/recipient-colors.test.tsxindex 9e5a830b28..f8d4409626 100644--- a/autogpt_platform/frontend/src/app/(platform)/copilot/__tests__/recipient-colors.test.tsx+++ b/autogpt_platform/frontend/src/app/(platform)/copilot/__tests__/recipient-colors.test.tsx@@ -18,15 +18,6 @@ vi.mock("@/services/feature-flags/use-get-flag", async (importOriginal) => ({>()),useGetFlag: () => true,}));-vi.mock("@/components/molecules/NotionAvatar/NotionAvatarImage", () => ({- NotionAvatarImage: ({- config,- title,- }: {- config: { color: string };- title: string;- }) => <span role="img" aria-label={title} data-color={config.color} />,-}));function Picker() {const { recipient, options, selectRecipient } = useRecipientPicker();@@ -40,15 +31,15 @@ function Picker() {}describe("recipient colors", () => {- it("keeps the saved appearance color independent of the owner token", async () => {+ it("keeps the saved PNG in the selected avatar and menu", async () => {server.use(http.get("*/api/experts/identities", () =>HttpResponse.json([{id: "expert-maria",name: "Maria",- color: "violet-300",- avatar_url: "/avatars/notion/0-0-0-0-0-0-0-0-0-0.orange.svg",+ color: "orange-500",+ avatar_url: "/experts/clay/v1/marketing.png",role: "Marketing",is_archived: false,},@@ -68,16 +59,14 @@ describe("recipient colors", () => {name: /Sending to Maria/,});await waitFor(() =>- expect(within(chip).getByRole("img").getAttribute("data-color")).toBe(- "orange",+ expect(within(chip).getByRole("img").getAttribute("src")).toContain(+ "marketing.png",),);await userEvent.click(chip);const menu = await screen.findByRole("menu");expect(- within(menu)- .getByRole("img", { name: "Maria" })- .getAttribute("data-color"),- ).toBe("orange");+ within(menu).getByRole("img", { name: "Maria" }).getAttribute("src"),+ ).toContain("marketing.png");});});diff --git a/autogpt_platform/frontend/src/app/(platform)/marketplace/__tests__/experts-category-filter.test.tsx b/autogpt_platform/frontend/src/app/(platform)/marketplace/__tests__/experts-category-filter.test.tsxindex 22e7d784a6..9969decabd 100644--- a/autogpt_platform/frontend/src/app/(platform)/marketplace/__tests__/experts-category-filter.test.tsx+++ b/autogpt_platform/frontend/src/app/(platform)/marketplace/__tests__/experts-category-filter.test.tsx@@ -123,6 +123,39 @@ describe("Marketplace category filter over experts", () => {);});+ test("category dots and multi-category cards use the selected category", async () => {+ const expert = template("Quinn", ["research", "finance"]);+ expert.avatar_url = "/experts/clay/v3/quinn.png";+ server.use(+ getGetV2ListStoreCategoriesMockHandler([+ { value: "research", label: "Research", description: "Research" },+ { value: "finance", label: "Finance", description: "Finance" },+ ]),+ http.get("/api/proxy/api/experts/templates", () =>+ HttpResponse.json([expert]),+ ),+ );+ render(<MainMarkeplacePage />);+ const finance = await findCategoryChip("Finance");+ expect(+ finance.querySelector('[aria-hidden="true"]')?.getAttribute("style"),+ ).toContain("#A5B09A");+ await userEvent.click(finance);+ const card = await screen.findByRole("link", { name: /Quinn/ });+ await waitFor(() =>+ expect(card.querySelector("img")?.getAttribute("src")).toContain(+ "quinn-finance.png",+ ),+ );+ expect(finance.getAttribute("aria-pressed")).toBe("true");+ await userEvent.click(await findCategoryChip("All"));+ await waitFor(() =>+ expect(card.querySelector("img")?.getAttribute("src")).toContain(+ "/v3/quinn.png",+ ),+ );+ });+test("the chip row sits above the experts shelf it narrows", async () => {render(<MainMarkeplacePage />);diff --git a/autogpt_platform/frontend/src/app/(platform)/marketplace/__tests__/experts-section.test.tsx b/autogpt_platform/frontend/src/app/(platform)/marketplace/__tests__/experts-section.test.tsxindex 59f03f045a..f91dcf4543 100644--- a/autogpt_platform/frontend/src/app/(platform)/marketplace/__tests__/experts-section.test.tsx+++ b/autogpt_platform/frontend/src/app/(platform)/marketplace/__tests__/experts-section.test.tsx@@ -235,7 +235,7 @@ describe("Marketplace ExpertsSection", () => {expect(within(card).queryByText("Content strategy")).toBeNull();});- test("shows the job title on the card's pill, and the area when there is none", async () => {+ test("shows the job title on the name line, and the role when there is none", async () => {server.use(getListExpertTemplatesMockHandler([{ ...mariaTemplate, job_title: "SEO Content Manager" },@@ -251,10 +251,11 @@ describe("Marketplace ExpertsSection", () => {{ name: /Maria/ },{ timeout: 5_000 },);- expect(within(maria).getByText("SEO Content Manager")).toBeDefined();+ expect(within(maria).getByText(/SEO Content Manager/)).toBeDefined();expect(within(maria).queryByText("Marketing Strategist")).toBeNull();+ expect(within(maria).queryByText("AI Expert")).toBeNull();const max = screen.getByRole("link", { name: /Max/ });- expect(within(max).getByText("Sales Development Rep")).toBeDefined();+ expect(within(max).getByText(/Sales Development Rep/)).toBeDefined();});test("shows no skills row on a card without Hub skills", async () => {diff --git a/autogpt_platform/frontend/src/app/(platform)/marketplace/components/CategoryChip/CategoryChip.tsx b/autogpt_platform/frontend/src/app/(platform)/marketplace/components/CategoryChip/CategoryChip.tsxindex 68b2eeb31e..b54a6a60e0 100644--- a/autogpt_platform/frontend/src/app/(platform)/marketplace/components/CategoryChip/CategoryChip.tsx+++ b/autogpt_platform/frontend/src/app/(platform)/marketplace/components/CategoryChip/CategoryChip.tsx@@ -1,5 +1,6 @@"use client";+import { expertPastel } from "@/components/molecules/ExpertAvatar/colors";import { Button } from "@/components/atoms/Button/Button";import { Icon } from "@/components/atoms/Icon/Icon";import { cn } from "@/lib/utils";@@ -36,6 +37,7 @@ const NEUTRAL_SELECTED = "border-transparent bg-zinc-100 text-zinc-900";interface Props {label: string;title?: string;+ color?: string;/** The glyph and accent this category wears everywhere else. Left out for* chips that are not categories, e.g. the hero's search terms. */icon?: IconSvgElement | null;@@ -50,6 +52,7 @@ interface Props {export function CategoryChip({label,title,+ color,icon,accent = NEUTRAL_ACCENT,size = "default",@@ -67,11 +70,21 @@ export function CategoryChip({aria-pressed={isSelected}onClick={onClick}unmask={false}+ // Selected takes the category's wash; unselected hands the category's+ // colour to the glyph and the label together, as the cards' tags do.+ style={+ color+ ? isSelected+ ? { backgroundColor: expertPastel(color) }+ : { color }+ : undefined+ }leftIcon={icon ? (<Iconicon={icon}size={CHIP_ICON_SIZE[size]}+ style={color ? { color } : undefined}className={isSelected ? undefined : accent.icon}aria-hidden/>@@ -83,10 +96,13 @@ export function CategoryChip({"min-w-0 hover:border-[#e9e9e9]",CHIP_SHAPE,CHIP_SIZE[size],+ !isSelected && icon && accent.icon,isSelected &&- (accent === NEUTRAL_ACCENT- ? NEUTRAL_SELECTED- : cn(accent.chip, "border-transparent")),+ (color+ ? "border-transparent text-zinc-900"+ : accent === NEUTRAL_ACCENT+ ? NEUTRAL_SELECTED+ : cn(accent.chip, "border-transparent")),)}>{label}diff --git a/autogpt_platform/frontend/src/app/(platform)/marketplace/components/CategoryChip/CategoryTag.tsx b/autogpt_platform/frontend/src/app/(platform)/marketplace/components/CategoryChip/CategoryTag.tsxindex abcb2a45ce..c7bb4e7792 100644--- a/autogpt_platform/frontend/src/app/(platform)/marketplace/components/CategoryChip/CategoryTag.tsx+++ b/autogpt_platform/frontend/src/app/(platform)/marketplace/components/CategoryChip/CategoryTag.tsx@@ -1,3 +1,4 @@+import { getCategoryHex } from "@/components/molecules/ExpertAvatar/colors";import { Icon } from "@/components/atoms/Icon/Icon";import { cn } from "@/lib/utils";import { getCategoryAccent } from "../ExpertsSection/helpers";@@ -16,17 +17,29 @@ interface Props {className?: string;}-/** A category worn as a label rather than a filter: same chip, no click. */+/** A category worn as a label rather than a filter: same chip, no click.+ * The glyph carries the category's colour and the label takes it from+ * `currentColor`, so the tag needs no separate swatch. */export function CategoryTag({ category, size = "small", className }: Props) {+ const color = getCategoryHex(category);const { accent, icon } = getCategoryAccent(category);return (- <span className={cn(CHIP_SHAPE, CHIP_SIZE[size], "max-w-full", className)}>+ <span+ className={cn(+ CHIP_SHAPE,+ CHIP_SIZE[size],+ "max-w-full",+ accent.icon,+ className,+ )}+ style={color ? { color } : undefined}+ >{icon ? (<Iconicon={icon}size={TAG_ICON_SIZE[size]}- className={cn("shrink-0", accent.icon)}+ className="shrink-0"aria-hidden/>) : null}diff --git a/autogpt_platform/frontend/src/app/(platform)/marketplace/components/CategoryFilter/CategoryFilter.stories.tsx b/autogpt_platform/frontend/src/app/(platform)/marketplace/components/CategoryFilter/CategoryFilter.stories.tsxnew file mode 100644index 0000000000..ed26ed9565--- /dev/null+++ b/autogpt_platform/frontend/src/app/(platform)/marketplace/components/CategoryFilter/CategoryFilter.stories.tsx@@ -0,0 +1,91 @@+import type { Meta, StoryObj } from "@storybook/nextjs";+import { fn } from "storybook/test";+import { useState } from "react";+import { BackendAPIProvider } from "@/lib/autogpt-server-api/context";+import { getGetV2ListStoreCategoriesMockHandler } from "@/app/api/__generated__/endpoints/store/store.msw";+import type { ExpertTemplate } from "@/app/api/__generated__/models/expertTemplate";+import {+ BUILTIN_EXPERT_AVATARS,+ EXPERT_AVATARS,+} from "@/components/molecules/ExpertAvatar/helpers";+import { ExpertCard } from "../ExpertsSection/components/ExpertCard";+import { CategoryFilter } from "./CategoryFilter";++const meta = {+ title: "Marketplace/CategoryColors",+ component: CategoryFilter,+ decorators: [+ (Story) => (+ <BackendAPIProvider>+ <Story />+ </BackendAPIProvider>+ ),+ ],+ args: { selected: "finance", onSelect: fn() },+ parameters: {+ msw: {+ handlers: [+ getGetV2ListStoreCategoriesMockHandler(+ EXPERT_AVATARS.map((avatar) => ({+ value: avatar.id,+ label: avatar.id[0].toUpperCase() + avatar.id.slice(1),+ description: avatar.label,+ })),+ ),+ ],+ },+ },+} satisfies Meta<typeof CategoryFilter>;+export default meta;+type Story = StoryObj<typeof meta>;++export const Experts: Story = {+ render: function Render() {+ return <CategoryGallery />;+ },+};++function CategoryGallery() {+ const [category, setCategory] = useState<string | null>("finance");+ const avatars = BUILTIN_EXPERT_AVATARS.filter(+ (avatar) => !category || Object.keys(avatar.variants).includes(category),+ );+ return (+ <div className="w-full max-w-6xl p-4">+ <CategoryFilter selected={category} onSelect={setCategory} />+ <div className="grid grid-cols-1 gap-5 md:grid-cols-3">+ {avatars.map((avatar) => (+ <ExpertCard+ key={avatar.id}+ expert={exampleExpert(avatar)}+ category={category}+ isHired={false}+ />+ ))}+ </div>+ </div>+ );+}++function exampleExpert(+ avatar: (typeof BUILTIN_EXPERT_AVATARS)[number],+): ExpertTemplate {+ return {+ id: avatar.id,+ name: avatar.name,+ avatar_url: avatar.url,+ role: avatar.primary_category,+ categories: Object.keys(avatar.variants),+ tagline: null,+ bio: null,+ skills: [],+ identity: "",+ voice_preferences: "",+ boundaries: "",+ protected_soul_rules: [],+ is_template: true,+ source_template_id: null,+ is_archived: false,+ workflows: [],+ };+}diff --git a/autogpt_platform/frontend/src/app/(platform)/marketplace/components/CategoryFilter/CategoryFilter.tsx b/autogpt_platform/frontend/src/app/(platform)/marketplace/components/CategoryFilter/CategoryFilter.tsxindex 929cfc6976..042478d6e4 100644--- a/autogpt_platform/frontend/src/app/(platform)/marketplace/components/CategoryFilter/CategoryFilter.tsx+++ b/autogpt_platform/frontend/src/app/(platform)/marketplace/components/CategoryFilter/CategoryFilter.tsx@@ -1,5 +1,6 @@"use client";+import { getCategoryHex } from "@/components/molecules/ExpertAvatar/colors";import { useStoreCategories } from "@/hooks/useStoreCategories";import { CategoryChip } from "../CategoryChip/CategoryChip";import { getCategoryAccent } from "../ExpertsSection/helpers";@@ -43,6 +44,7 @@ export function CategoryFilter({ selected, onSelect }: Props) {<CategoryChipkey={category.value}label={category.label}+ color={getCategoryHex(category.value)}title={category.description}icon={icon}accent={accent}diff --git a/autogpt_platform/frontend/src/app/(platform)/marketplace/components/ExpertsSection/ExpertsSection.tsx b/autogpt_platform/frontend/src/app/(platform)/marketplace/components/ExpertsSection/ExpertsSection.tsxindex de7762fc1b..0e47d5ae73 100644--- a/autogpt_platform/frontend/src/app/(platform)/marketplace/components/ExpertsSection/ExpertsSection.tsx+++ b/autogpt_platform/frontend/src/app/(platform)/marketplace/components/ExpertsSection/ExpertsSection.tsx@@ -52,7 +52,7 @@ export function ExpertsSection({ category }: Props) {return (<section id="experts" className="mb-20 scroll-mt-24"><SectionHeader- titleIcon={<Icon icon={UserAiIcon} size="2.2rem" aria-hidden />}+ titleIcon={<Icon icon={UserAiIcon} size="3rem" aria-hidden />}title="Meet the AI Experts"subtitle="Hire a ready-made specialist — competent on day one, working for you in minutes."actions={@@ -85,6 +85,7 @@ export function ExpertsSection({ category }: Props) {<ExpertCardkey={template.id}expert={template}+ category={category}isHired={hiredTemplateIds.has(template.id)}/>))}diff --git a/autogpt_platform/frontend/src/app/(platform)/marketplace/components/ExpertsSection/components/ExpertCard.tsx b/autogpt_platform/frontend/src/app/(platform)/marketplace/components/ExpertsSection/components/ExpertCard.tsxindex 1495eec283..352ea2e6b6 100644--- a/autogpt_platform/frontend/src/app/(platform)/marketplace/components/ExpertsSection/components/ExpertCard.tsx+++ b/autogpt_platform/frontend/src/app/(platform)/marketplace/components/ExpertsSection/components/ExpertCard.tsx@@ -1,3 +1,7 @@+import {+ expertPastel,+ getExpertTopicHex,+} from "@/components/molecules/ExpertAvatar/colors";import { ExpertTemplate } from "@/app/api/__generated__/models/expertTemplate";import { Icon } from "@/components/atoms/Icon/Icon";import {@@ -10,7 +14,6 @@ import { ExpertAvatar } from "@/components/molecules/ExpertAvatar/ExpertAvatar";import { ExpertIdentityDetails } from "@/components/molecules/ExpertIdentityDetails/ExpertIdentityDetails";import { ExpertTagline } from "@/components/molecules/ExpertIdentityDetails/components/ExpertTagline";import { cn } from "@/lib/utils";-import { getExpertRoleLabel } from "@/services/experts/expert-role-label";import { ArrowRight02Icon, Book04Icon } from "@hugeicons/core-free-icons";import Link from "next/link";import { CHIP_SHAPE, CHIP_SIZE } from "../../CategoryChip/CategoryChip";@@ -25,29 +28,32 @@ const NAMED_SKILLS = 3;interface Props {expert: ExpertTemplate;isHired: boolean;+ category?: string | null;}/** The whole card opens the expert's own page, through a link stretched* behind its contents: a card that is itself a link cannot hold the hire* button, since an anchor may not contain one. */-export function ExpertCard({ expert, isHired }: Props) {+export function ExpertCard({ expert, isHired, category }: Props) {+ const selectedCategory =+ category && expert.categories?.includes(category) ? category : undefined;+ const topicColor = getExpertTopicHex(+ expert.role,+ selectedCategory ? [selectedCategory] : expert.categories,+ );const skills = expert.bundled_skills ?? [];const named = skills.slice(0, NAMED_SKILLS);const restSkills = skills.slice(NAMED_SKILLS);// The area an expert works in, in the same chip the filters use — the row// above the shelf and the card below it name the same thing.- const area =- expert.categories?.[0] ??- (expert.job_title ? undefined : getExpertRoleLabel(expert.role));+ const area = selectedCategory ?? expert.categories?.[0];const areaAccent = getCategoryAccent(area);return (<div className="group relative flex flex-col overflow-hidden rounded-2xl border border-zinc-200/80 bg-white text-left shadow-[0_1px_2px_rgba(16,24,40,0.04)] transition-all duration-200 ease-out hover:-translate-y-0.5 hover:border-zinc-300 hover:shadow-[0_16px_40px_-16px_rgba(16,24,40,0.18)]"><div- className={cn(- "pointer-events-none absolute inset-x-0 top-0 h-[4.5rem]",- areaAccent.accent.band,- )}+ className="pointer-events-none absolute inset-x-0 top-0 h-[4.5rem]"+ style={{ backgroundColor: expertPastel(topicColor) }}/><Linkhref={`/marketplace/experts/${expert.id}`}@@ -57,20 +63,17 @@ export function ExpertCard({ expert, isHired }: Props) {name={expert.name}avatarUrl={expert.avatar_url}size={88}+ backgroundColor={topicColor}+ category={selectedCategory ?? expert.categories?.[0]}className="rounded-full ring-4 ring-white"/><div><ExpertIdentityDetailsname={expert.name}+ role={expert.role}+ jobTitle={expert.job_title}nameAlign="baseline"- nameAccessory={- expert.job_title ? (- <span className="min-w-0 truncate text-sm text-zinc-500">- {expert.job_title}- </span>- ) : undefined- }/>{area ? <CategoryTag category={area} className="mt-2" /> : null}<ExpertTagline tagline={expert.tagline} compact />@@ -92,7 +95,8 @@ export function ExpertCard({ expert, isHired }: Props) {<Iconicon={areaAccent.icon ?? Book04Icon}size={12}- className={cn("shrink-0", areaAccent.accent.icon)}+ className="shrink-0"+ style={{ color: topicColor }}aria-hidden/><span className="truncate">{skill.title}</span>diff --git a/autogpt_platform/frontend/src/app/(platform)/marketplace/components/ExpertsSection/components/ExpertHireControl.tsx b/autogpt_platform/frontend/src/app/(platform)/marketplace/components/ExpertsSection/components/ExpertHireControl.tsxindex 91330f98f4..e71ef79100 100644--- a/autogpt_platform/frontend/src/app/(platform)/marketplace/components/ExpertsSection/components/ExpertHireControl.tsx+++ b/autogpt_platform/frontend/src/app/(platform)/marketplace/components/ExpertsSection/components/ExpertHireControl.tsx@@ -13,8 +13,11 @@ import { useHireFlow } from "@/services/experts/useHireFlow";import { Flag, useGetFlag } from "@/services/feature-flags/use-get-flag";import { AddTeamIcon, CheckmarkCircle02Icon } from "@hugeicons/core-free-icons";-// The atom sizes a lone action; on a card it is a label with a glyph.-const TEXT_BUTTON = "min-w-0 gap-1.5 px-2 text-base";+// The atom sizes a lone action; on a card it is a label with a glyph. Ghost's+// hover fill is the resting state here, so the button reads as a button+// against the card's pastel band; hover takes it one step darker.+const TEXT_BUTTON =+ "min-w-0 gap-1.5 px-2 text-base bg-zinc-50 border-zinc-50 hover:bg-zinc-100 hover:border-zinc-100";const HIRE_ICON = <Icon icon={AddTeamIcon} size={20} aria-hidden />;interface Props {diff --git a/autogpt_platform/frontend/src/app/(platform)/marketplace/components/MainMarketplacePage/MainMarketplacePage.tsx b/autogpt_platform/frontend/src/app/(platform)/marketplace/components/MainMarketplacePage/MainMarketplacePage.tsxindex 1b29f93387..30d1f2572c 100644--- a/autogpt_platform/frontend/src/app/(platform)/marketplace/components/MainMarketplacePage/MainMarketplacePage.tsx+++ b/autogpt_platform/frontend/src/app/(platform)/marketplace/components/MainMarketplacePage/MainMarketplacePage.tsx@@ -11,7 +11,6 @@ import {import { AgentsSection } from "../AgentsSection/AgentsSection";import { CategoryFilter } from "../CategoryFilter/CategoryFilter";import { BecomeACreator } from "../BecomeACreator/BecomeACreator";-import { FeaturedCreators } from "../FeaturedCreators/FeaturedCreators";import { FeaturedSection } from "../FeaturedSection/FeaturedSection";import { ExpertsSection } from "../ExpertsSection/ExpertsSection";import { SkillsList } from "../SkillsList/SkillsList";@@ -27,7 +26,6 @@ export const MainMarkeplacePage = () => {const {featuredAgents,topAgents,- featuredCreators,category,setCategory,isLoading,@@ -120,11 +118,6 @@ export const MainMarkeplacePage = () => {)}</>)}- {featuredCreators && (- <div className="mb-4">- <FeaturedCreators featuredCreators={featuredCreators.creators} />- </div>- )}{/* The expert layout invites publishing from under the workflowsshelf instead, where it cannot outshout the shelf itself. */}{!isHireExpertsEnabled || !hasWorkflowShelf ? (diff --git a/autogpt_platform/frontend/src/app/(platform)/marketplace/components/MainMarketplacePage/__tests__/main.test.tsx b/autogpt_platform/frontend/src/app/(platform)/marketplace/components/MainMarketplacePage/__tests__/main.test.tsxindex fa8f17015f..9b3ba6b77e 100644--- a/autogpt_platform/frontend/src/app/(platform)/marketplace/components/MainMarketplacePage/__tests__/main.test.tsx+++ b/autogpt_platform/frontend/src/app/(platform)/marketplace/components/MainMarketplacePage/__tests__/main.test.tsx@@ -1,7 +1,4 @@-import {- getGetV2ListStoreAgentsResponseMock,- getGetV2ListStoreCreatorsResponseMock,-} from "@/app/api/__generated__/endpoints/store/store.msw";+import { getGetV2ListStoreAgentsResponseMock } from "@/app/api/__generated__/endpoints/store/store.msw";import { render, screen } from "@/tests/integrations/test-utils";import { MainMarkeplacePage } from "../MainMarketplacePage";import { beforeEach, describe, expect, test, vi } from "vitest";@@ -35,28 +32,19 @@ describe("MainMarketplacePage", () => {},],}),- featuredCreators: getGetV2ListStoreCreatorsResponseMock({- creators: [- {- ...getGetV2ListStoreCreatorsResponseMock().creators[0],- name: "Creator One",- username: "creator-one",- },- ],- }),isLoading: false,hasError: false,});});- test("renders featured agents, all agents, and creators", () => {+ test("renders featured agents and all agents, and no creators shelf", () => {render(<MainMarkeplacePage />);expect(screen.getByText(/hand-picked/i)).toBeDefined();expect(screen.getByText("Featured Agent")).toBeDefined();expect(screen.getByText("All AI Workflows")).toBeDefined();expect(screen.getAllByText("Top Agent").length).toBeGreaterThan(0);- expect(screen.getByText("Creator One")).toBeDefined();+ expect(screen.queryByText("Featured Creators")).toBeNull();expect(screen.getByRole("button", { name: "Become a Creator" }),).toBeDefined();diff --git a/autogpt_platform/frontend/src/app/(platform)/marketplace/components/MainMarketplacePage/useMainMarketplacePage.ts b/autogpt_platform/frontend/src/app/(platform)/marketplace/components/MainMarketplacePage/useMainMarketplacePage.tsindex aa24cffb49..bd4f3eac49 100644--- a/autogpt_platform/frontend/src/app/(platform)/marketplace/components/MainMarketplacePage/useMainMarketplacePage.ts+++ b/autogpt_platform/frontend/src/app/(platform)/marketplace/components/MainMarketplacePage/useMainMarketplacePage.ts@@ -1,9 +1,5 @@-import {- useGetV2ListStoreAgents,- useGetV2ListStoreCreators,-} from "@/app/api/__generated__/endpoints/store/store";+import { useGetV2ListStoreAgents } from "@/app/api/__generated__/endpoints/store/store";import { StoreAgentsResponse } from "@/app/api/__generated__/models/storeAgentsResponse";-import { CreatorsResponse } from "@/app/api/__generated__/models/creatorsResponse";import { useState } from "react";const queryConfig = {@@ -56,31 +52,12 @@ export const useMainMarketplacePage = () => {},);- const {- data: featuredCreators,- isLoading: isFeaturedCreatorsLoading,- isError: isFeaturedCreatorsError,- } = useGetV2ListStoreCreators(- { featured: true, sorted_by: "num_agents" },- {- query: {- ...queryConfig,- select: (x) => {- return x.data as CreatorsResponse;- },- },- },- );-- const isLoading =- isFeaturedAgentsLoading || isTopAgentsLoading || isFeaturedCreatorsLoading;- const hasError =- isFeaturedAgentsError || isTopAgentsError || isFeaturedCreatorsError;+ const isLoading = isFeaturedAgentsLoading || isTopAgentsLoading;+ const hasError = isFeaturedAgentsError || isTopAgentsError;return {featuredAgents,topAgents,- featuredCreators,category,setCategory,isLoading,diff --git a/autogpt_platform/frontend/src/app/(platform)/marketplace/components/WorkflowsShelf/WorkflowsShelf.tsx b/autogpt_platform/frontend/src/app/(platform)/marketplace/components/WorkflowsShelf/WorkflowsShelf.tsxindex ef2828b82e..1a0e756c56 100644--- a/autogpt_platform/frontend/src/app/(platform)/marketplace/components/WorkflowsShelf/WorkflowsShelf.tsx+++ b/autogpt_platform/frontend/src/app/(platform)/marketplace/components/WorkflowsShelf/WorkflowsShelf.tsx@@ -4,7 +4,7 @@ import { StoreAgent } from "@/app/api/__generated__/models/storeAgent";import { Button } from "@/components/atoms/Button/Button";import { Icon } from "@/components/atoms/Icon/Icon";import { PublishAgentModal } from "@/components/contextual/PublishAgentModal/PublishAgentModal";-import { UserAiIcon } from "@hugeicons/core-free-icons";+import { GitCompareArrowsIcon } from "@hugeicons/core-free-icons";import { useState } from "react";import { SectionHeader } from "../SectionHeader";import { SHELF_GRID, SHELF_PREVIEW_SIZE } from "../Shelf/helpers";@@ -37,7 +37,9 @@ export function WorkflowsShelf({ id, agents, featuredAgents, total }: Props) {><SectionHeadersize="small"- titleIcon={<Icon icon={UserAiIcon} size="2.2rem" aria-hidden />}+ titleIcon={+ <Icon icon={GitCompareArrowsIcon} size="2.2rem" aria-hidden />+ }title="Workflows"titleId={HEADING_ID}subtitle="Automations your experts can run — or install one yourself."diff --git a/autogpt_platform/frontend/src/app/(platform)/marketplace/experts/[expertId]/components/ExpertPageHeader.tsx b/autogpt_platform/frontend/src/app/(platform)/marketplace/experts/[expertId]/components/ExpertPageHeader.tsxindex c2b6d6dd17..75dc457b14 100644--- a/autogpt_platform/frontend/src/app/(platform)/marketplace/experts/[expertId]/components/ExpertPageHeader.tsx+++ b/autogpt_platform/frontend/src/app/(platform)/marketplace/experts/[expertId]/components/ExpertPageHeader.tsx@@ -1,3 +1,4 @@+import { getExpertTopicHex } from "@/components/molecules/ExpertAvatar/colors";import { Expert } from "@/app/api/__generated__/models/expert";import { ExpertAvatar } from "@/components/molecules/ExpertAvatar/ExpertAvatar";import { ExpertIdentityDetails } from "@/components/molecules/ExpertIdentityDetails/ExpertIdentityDetails";@@ -20,6 +21,7 @@ export function ExpertPageHeader({ expert, actions }: Props) {name={expert.name}avatarUrl={expert.avatar_url}color={expert.color}+ backgroundColor={getExpertTopicHex(expert.role, expert.categories)}size={96}/><div className="min-w-0 flex-1">@@ -27,16 +29,10 @@ export function ExpertPageHeader({ expert, actions }: Props) {the chip below belongs to the area the expert works in. */}<ExpertIdentityDetailsname={expert.name}- role={area || expert.job_title ? undefined : expert.role}+ role={expert.role}+ jobTitle={expert.job_title}size="page"nameAlign="baseline"- nameAccessory={- expert.job_title ? (- <span className="min-w-0 truncate text-base text-zinc-500">- {expert.job_title}- </span>- ) : undefined- }/>{area ? (<CategoryTag category={area} size="default" className="mt-2" />diff --git a/autogpt_platform/frontend/src/app/(platform)/marketplace/experts/__tests__/expert-page.test.tsx b/autogpt_platform/frontend/src/app/(platform)/marketplace/experts/__tests__/expert-page.test.tsxindex 5f92800b38..cba36f2874 100644--- a/autogpt_platform/frontend/src/app/(platform)/marketplace/experts/__tests__/expert-page.test.tsx+++ b/autogpt_platform/frontend/src/app/(platform)/marketplace/experts/__tests__/expert-page.test.tsx@@ -194,7 +194,7 @@ describe("Marketplace expert page", () => {expect(await screen.findByRole("heading", { level: 1, name: "Maria" }),).toBeDefined();- expect(screen.getByText("Marketing Strategist")).toBeDefined();+ expect(screen.getByText(/Marketing Strategist/)).toBeDefined();expect(screen.getByText("Grows your brand while you sleep")).toBeDefined();expect(within(screen.getByRole("region", { name: /^Workflows/ })).getByText(diff --git a/autogpt_platform/frontend/src/app/(platform)/marketplace/page.tsx b/autogpt_platform/frontend/src/app/(platform)/marketplace/page.tsxindex 2f2ffb3a60..3e2c280f80 100644--- a/autogpt_platform/frontend/src/app/(platform)/marketplace/page.tsx+++ b/autogpt_platform/frontend/src/app/(platform)/marketplace/page.tsx@@ -1,7 +1,6 @@import {prefetchGetV2ListMarketplaceSkillsQuery,prefetchGetV2ListStoreAgentsQuery,- prefetchGetV2ListStoreCreatorsQuery,} from "@/app/api/__generated__/endpoints/store/store";import { SHELF_PREVIEW_SIZE } from "./components/Shelf/helpers";import { getQueryClient } from "@/lib/react-query/queryClient";@@ -65,16 +64,6 @@ export default async function MarketplacePage(): Promise<React.ReactElement> {},},),- prefetchGetV2ListStoreCreatorsQuery(- queryClient,- { featured: true, sorted_by: "num_agents" },- {- query: {- staleTime: 60 * 1000, // 60 seconds- gcTime: 5 * 60 * 1000, // 5 minutes- },- },- ),// With the flag off the endpoint 404s; prefetch swallows that and the// client gate hides the shelf either way.prefetchGetV2ListMarketplaceSkillsQuery(diff --git a/autogpt_platform/frontend/src/app/(platform)/raise/__tests__/avatar-picker.test.tsx b/autogpt_platform/frontend/src/app/(platform)/raise/__tests__/avatar-picker.test.tsxindex 82f6bd8a3e..5bccda26f8 100644--- a/autogpt_platform/frontend/src/app/(platform)/raise/__tests__/avatar-picker.test.tsx+++ b/autogpt_platform/frontend/src/app/(platform)/raise/__tests__/avatar-picker.test.tsx@@ -1,6 +1,5 @@import { getListCopilotSkillsMockHandler } from "@/app/api/__generated__/endpoints/skills/skills.msw";import { Toaster } from "@/components/molecules/Toast/toaster";-import { notionConfigForName } from "@/components/molecules/NotionAvatar/helpers";import { server } from "@/mocks/mock-server";import { render, screen, waitFor } from "@/tests/integrations/test-utils";import userEvent from "@testing-library/user-event";@@ -74,21 +73,15 @@ function seedAtAvatar(name = "Maria", color: string | null = "violet-300") {});}-function drawnAvatar() {- return screen.getByTestId("notion-avatar").getAttribute("data-avatar");-}--async function openGenerator(name = "Maria") {- seedAtAvatar(name);+async function openPicker() {+ seedAtAvatar();render(<><RaisePage /><Toaster /></>,);- // The beat opens straight onto the picker; the artwork is a lazy chunk, so- // the face itself arrives a tick later.- await screen.findByTestId("notion-avatar", undefined, { timeout: 5000 });+ await screen.findByRole("group", { name: "Avatar catalog" });}beforeEach(() => {@@ -102,139 +95,28 @@ afterEach(() => {vi.clearAllMocks();});-test("opens on the face the expert's name seeds, in the colour they were given", async () => {- await openGenerator();-- const seeded = notionConfigForName("Maria");- const slots = drawnAvatar()?.split(".")[0];-- expect(slots).toBe(- [- seeded.parts.face,- seeded.parts.nose,- seeded.parts.mouth,- seeded.parts.eyes,- seeded.parts.eyebrows,- seeded.parts.glasses,- seeded.parts.hair,- seeded.parts.accessories,- seeded.parts.details,- seeded.parts.beard,- ].join("-"),+test("previews a catalog PNG and saves it only after confirmation", async () => {+ await openPicker();+ await userEvent.click(screen.getByRole("button", { name: "Sage" }));+ expect(loadDraft().avatarUrl).toBeNull();+ await userEvent.click(+ screen.getByRole("button", { name: "Use this avatar" }),);- // The colour was answered a beat earlier, so it carries into the face.- expect(drawnAvatar()).toContain(".violet");-});--function slotOf(feature: "details" | "hair") {- // Slots follow the draw order: face, nose, mouth, eyes, eyebrows, glasses,- // hair, accessories, details, beard.- const index = feature === "hair" ? 6 : 8;- return Number(drawnAvatar()!.split(".")[0].split("-")[index]);-}--test("opens with no marks, and shuffling does not add them", async () => {- await openGenerator();- expect(slotOf("details")).toBe(0);-- for (let attempt = 0; attempt < 8; attempt += 1) {- await userEvent.click(screen.getByRole("button", { name: "Shuffle" }));- expect(slotOf("details")).toBe(0);- }-});--test("marks are still available from their own row", async () => {- await openGenerator();-- await userEvent.click(screen.getByRole("button", { name: "Next marks" }));-- await waitFor(() => expect(slotOf("details")).toBe(1));-});--test("shuffle changes the face but keeps the chosen colour", async () => {- await openGenerator();- const before = drawnAvatar();-- await userEvent.click(screen.getByRole("button", { name: "Shuffle" }));-- await waitFor(() => expect(drawnAvatar()).not.toBe(before));- expect(drawnAvatar()).toContain(".violet");-});--test("cycling a feature moves only that feature", async () => {- await openGenerator();- const before = drawnAvatar()!.split(".")[0].split("-");-- await userEvent.click(screen.getByRole("button", { name: "Next hair" }));-- await waitFor(() => {- const after = drawnAvatar()!.split(".")[0].split("-");- const moved = after.filter((slot, index) => slot !== before[index]);- expect(moved).toHaveLength(1);- // Hair is the seventh slot in draw order.- expect(after[6]).not.toBe(before[6]);- });-});--test("cycling backwards from the first part wraps to the last", async () => {- await openGenerator();-- await userEvent.click(screen.getByRole("button", { name: "Previous eyes" }));- const eyes = Number(drawnAvatar()!.split(".")[0].split("-")[3]);-- expect(eyes).toBeGreaterThan(0);-});--test("the picked face and colour become the draft's answer, and the picker closes", async () => {- await openGenerator();- await userEvent.click(screen.getByRole("button", { name: "Next hair" }));- const picked = drawnAvatar();-- await userEvent.click(screen.getByRole("button", { name: "Use this face" }));-await waitFor(() =>- expect(loadDraft().avatarUrl).toBe(`/avatars/notion/${picked}.svg`),+ expect(loadDraft().avatarUrl).toBe("/experts/clay/v1/finance.png"),);- expect(loadDraft().color).toBe("violet-300");- expect(screen.queryByRole("button", { name: "Shuffle" })).toBeNull();-});--test("the cycle arrows carry no tooltip, which would cover the row above", async () => {- await openGenerator();-- // The Button atom pops a tooltip for any icon-only button with an- // aria-label. Stacked this tightly, that tooltip lands on its neighbours.- // A tooltip trigger leaves data-state on the button it wraps.- for (const name of ["Next beard", "Previous beard", "Next hair"]) {- const button = screen.getByRole("button", { name });- expect(button.getAttribute("data-state")).toBeNull();- expect(button.getAttribute("aria-describedby")).toBeNull();- }+ expect(loadDraft().color).toBe("green-300");+ expect(screen.queryByRole("group", { name: "Avatar catalog" })).toBeNull();});-test("the colour is chosen in the picker and recolours the face", async () => {- await openGenerator();- expect(drawnAvatar()).toContain(".violet");-- await userEvent.click(screen.getByRole("button", { name: "Emerald" }));-- await waitFor(() => expect(drawnAvatar()).toContain(".emerald"));-- await userEvent.click(screen.getByRole("button", { name: "Use this face" }));- await waitFor(() => expect(loadDraft().color).toBe("emerald-300"));-});--test("an expert with no colour yet still opens on a face", async () => {- seedAtAvatar("Nova", null);- render(- <>- <RaisePage />- <Toaster />- </>,- );-- const avatar = await screen.findByTestId("notion-avatar", undefined, {- timeout: 5000,- });- expect(avatar.getAttribute("data-avatar")).toBeTruthy();+test("offers generation and uploads without face-part controls", async () => {+ await openPicker();+ expect(+ screen.getByRole("button", { name: "Generate with AI" }),+ ).toBeDefined();+ expect(+ screen.getByRole("button", { name: "Upload a picture" }),+ ).toBeDefined();+ expect(screen.queryByRole("button", { name: "Next hair" })).toBeNull();+ expect(screen.queryByRole("button", { name: "Lavender" })).toBeNull();});diff --git a/autogpt_platform/frontend/src/app/(platform)/raise/components/AvatarStep/AvatarStep.tsx b/autogpt_platform/frontend/src/app/(platform)/raise/components/AvatarStep/AvatarStep.tsxindex 2fcf8640ec..739962cd2e 100644--- a/autogpt_platform/frontend/src/app/(platform)/raise/components/AvatarStep/AvatarStep.tsx+++ b/autogpt_platform/frontend/src/app/(platform)/raise/components/AvatarStep/AvatarStep.tsx@@ -1,9 +1,9 @@"use client";import { cn } from "@/lib/utils";-import Image from "next/image";+import { ExpertAvatar } from "@/components/molecules/ExpertAvatar/ExpertAvatar";import { bubbleClassFor } from "../ColorStep/helpers";-import { NotionAvatarPicker } from "./components/NotionAvatarPicker/NotionAvatarPicker";+import { ExpertAvatarPicker } from "@/components/molecules/ExpertAvatarPicker/ExpertAvatarPicker";interface Props {name: string;@@ -12,8 +12,6 @@ interface Props {onPick: (avatarUrl: string, colorId: string) => void;}-// The face and the colour are one answer, and the step opens straight onto the-// picker: there is no version of an expert without a face.export function AvatarStep({ name, color, avatarUrl, onPick }: Props) {if (avatarUrl) {return (@@ -23,20 +21,17 @@ export function AvatarStep({ name, color, avatarUrl, onPick }: Props) {bubbleClassFor(color) ?? "border-accent bg-accent/5",)}>- <Image- src={avatarUrl}- alt={`${name || "Your expert"}'s picture`}- width={40}- height={40}- className="size-10 rounded-full object-cover"- unoptimized+ <ExpertAvatar+ name={name || "Your expert"}+ avatarUrl={avatarUrl}+ size={40}/><span className="text-sm font-medium text-foreground">- {name ? `${name} has a face` : "Picture set"}+ {name ? `${name} has an avatar` : "Picture set"}</span></div>);}- return <NotionAvatarPicker name={name} color={color} onPick={onPick} />;+ return <ExpertAvatarPicker name={name} color={color} onPick={onPick} />;}diff --git a/autogpt_platform/frontend/src/app/(platform)/raise/components/AvatarStep/components/NotionAvatarPicker/NotionAvatarPicker.tsx b/autogpt_platform/frontend/src/app/(platform)/raise/components/AvatarStep/components/NotionAvatarPicker/NotionAvatarPicker.tsxdeleted file mode 100644index 16bf41a007..0000000000--- a/autogpt_platform/frontend/src/app/(platform)/raise/components/AvatarStep/components/NotionAvatarPicker/NotionAvatarPicker.tsx+++ /dev/null@@ -1,146 +0,0 @@-"use client";--import { Button } from "@/components/atoms/Button/Button";-import { Icon } from "@/components/atoms/Icon/Icon";-import { Text } from "@/components/atoms/Text/Text";-import {- CATEGORY_LABELS,- PICKABLE_CATEGORIES,-} from "@/components/molecules/NotionAvatar/helpers";-import { NotionAvatar } from "@/components/molecules/NotionAvatar/NotionAvatar";-import { cn } from "@/lib/utils";-import {- ArrowLeft01Icon,- ArrowRight01Icon,- DiceFaces01Icon,-} from "@hugeicons/core-free-icons";-import { COLOR_OPTIONS } from "../../../ColorStep/helpers";-import { ACCEPTED_AVATAR_TYPES } from "../../helpers";-import { useNotionAvatarPicker } from "./useNotionAvatarPicker";--interface Props {- name: string;- color: string | null;- onPick: (avatarUrl: string, colorId: string) => void;-}--export function NotionAvatarPicker({ name, color, onPick }: Props) {- const {- config,- colorId,- setColorId,- shuffle,- cycle,- confirm,- fileInputRef,- isUploading,- openFilePicker,- handleFileChange,- } = useNotionAvatarPicker({ name, color, onPick });- const who = name || "your expert";-- return (- <div className="ml-auto flex w-full max-w-sm flex-col items-center gap-4 rounded-2xl border border-zinc-200 bg-white p-5">- <NotionAvatar- config={config}- size={132}- showBadge={false}- title={`${who}'s face`}- />-- <div- role="group"- aria-label="Expert color"- className="flex flex-wrap justify-center gap-2"- >- {COLOR_OPTIONS.map((option) => (- <button- key={option.id}- type="button"- onClick={() => setColorId(option.id)}- aria-label={option.label}- aria-pressed={option.id === colorId}- className={cn(- "size-6 rounded-full transition-transform hover:scale-110",- option.swatchClassName,- option.id === colorId &&- "ring-2 ring-zinc-900 ring-offset-2 ring-offset-white",- )}- />- ))}- </div>-- <div className="flex w-full flex-col gap-1.5">- {PICKABLE_CATEGORIES.map((category) => (- <div key={category} className="flex items-center justify-between">- <Text variant="small" as="span" tone="secondary">- {CATEGORY_LABELS[category]}- </Text>- <div className="flex items-center gap-1">- <Button- variant="ghost"- size="icon-sm"- aria-label={`Previous ${CATEGORY_LABELS[category].toLowerCase()}`}- // The row is labelled inches away, so the tooltip says nothing- // new — and stacked this tightly it covers the row above.- withTooltip={false}- onClick={() => cycle(category, -1)}- >- <Icon icon={ArrowLeft01Icon} size={16} />- </Button>- <Button- variant="ghost"- size="icon-sm"- aria-label={`Next ${CATEGORY_LABELS[category].toLowerCase()}`}- withTooltip={false}- onClick={() => cycle(category, 1)}- >- <Icon icon={ArrowRight01Icon} size={16} />- </Button>- </div>- </div>- ))}- </div>-- <input- ref={fileInputRef}- type="file"- accept={ACCEPTED_AVATAR_TYPES}- className="sr-only"- tabIndex={-1}- aria-hidden- onChange={(event) => handleFileChange(event.target.files?.[0])}- />-- <div className="flex w-full flex-wrap justify-end gap-2">- <Button- variant="ghost"- size="small"- className="rounded-full"- onClick={openFilePicker}- loading={isUploading}- >- Upload a picture- </Button>- <Button- variant="secondary"- size="small"- className="rounded-full"- onClick={shuffle}- disabled={isUploading}- >- <Icon icon={DiceFaces01Icon} size={16} />- Shuffle- </Button>- <Button- size="small"- className="rounded-full"- onClick={confirm}- disabled={isUploading}- >- Use this face- </Button>- </div>- </div>- );-}diff --git a/autogpt_platform/frontend/src/app/(platform)/raise/components/AvatarStep/components/NotionAvatarPicker/__tests__/NotionAvatarPicker.test.tsx b/autogpt_platform/frontend/src/app/(platform)/raise/components/AvatarStep/components/NotionAvatarPicker/__tests__/NotionAvatarPicker.test.tsxdeleted file mode 100644index 7a87730670..0000000000--- a/autogpt_platform/frontend/src/app/(platform)/raise/components/AvatarStep/components/NotionAvatarPicker/__tests__/NotionAvatarPicker.test.tsx+++ /dev/null@@ -1,103 +0,0 @@-import { render, screen, waitFor } from "@/tests/integrations/test-utils";-import { server } from "@/mocks/mock-server";-import { http, HttpResponse } from "msw";-import userEvent from "@testing-library/user-event";-import { describe, expect, it, vi } from "vitest";-import { Toaster } from "@/components/molecules/Toast/toaster";-import { NotionAvatarPicker } from "../NotionAvatarPicker";--describe("NotionAvatarPicker", () => {- it("saves the color selected while an upload is still in flight, not the one queued before it", async () => {- let purpose: string | null = null;- let resolveUpload: (() => void) | undefined;- const pending = new Promise<void>((resolve) => {- resolveUpload = resolve;- });- server.use(- http.post("*/api/store/submissions/media", async ({ request }) => {- purpose = new URL(request.url).searchParams.get("purpose");- await pending;- return HttpResponse.json("https://cdn.test/uploaded.png");- }),- );- const onPick = vi.fn();- const user = userEvent.setup();-- render(- <NotionAvatarPicker name="Maria" color="rose-300" onPick={onPick} />,- );-- const file = new File(["x"], "avatar.png", { type: "image/png" });- const fileInput = document.querySelector(- 'input[type="file"]',- ) as HTMLInputElement;- await user.upload(fileInput, file);-- // Change the color while the upload is still pending — the color- // controls aren't disabled during upload, so this is a real user path.- await user.click(screen.getByRole("button", { name: "Blue" }));-- resolveUpload?.();-- await waitFor(() => expect(onPick).toHaveBeenCalledTimes(1));- expect(purpose).toBe("expert-avatar");- expect(onPick).toHaveBeenCalledWith(- "https://cdn.test/uploaded.png",- "blue-300",- );- });-});--it.each([400, 422, 503])(- "preserves the draft and explains an upload rejection (%s)",- async (status) => {- server.use(- http.post("*/api/store/submissions/media", () =>- HttpResponse.json(- { detail: "Review unavailable. Please try again later." },- { status },- ),- ),- );- const onPick = vi.fn();- render(- <>- <NotionAvatarPicker name="Maria" color="rose-300" onPick={onPick} />- <Toaster />- </>,- );- const input = document.querySelector(- 'input[type="file"]',- ) as HTMLInputElement;- await userEvent.upload(- input,- new File(["x"], "avatar.png", { type: "image/png" }),- );- expect(- await screen.findByText("Review unavailable. Please try again later."),- ).toBeDefined();- expect(onPick).not.toHaveBeenCalled();- },-);--it("does not offer or upload GIF appearances", async () => {- const upload = vi.fn(() => HttpResponse.json("https://cdn.test/avatar.gif"));- server.use(http.post("*/api/store/submissions/media", upload));- render(- <>- <NotionAvatarPicker name="Maria" color="rose-300" onPick={vi.fn()} />- <Toaster />- </>,- );- const input = document.querySelector(- 'input[type="file"]',- ) as HTMLInputElement;- expect(input.accept).not.toContain("image/gif");- await userEvent- .setup({ applyAccept: false })- .upload(input, new File(["GIF89a"], "avatar.gif", { type: "image/gif" }));- expect(- await screen.findByText("Pick a PNG, JPEG, or WebP image."),- ).toBeDefined();- expect(upload).not.toHaveBeenCalled();-});diff --git a/autogpt_platform/frontend/src/app/(platform)/raise/components/AvatarStep/components/NotionAvatarPicker/useNotionAvatarPicker.ts b/autogpt_platform/frontend/src/app/(platform)/raise/components/AvatarStep/components/NotionAvatarPicker/useNotionAvatarPicker.tsdeleted file mode 100644index 31583f4017..0000000000--- a/autogpt_platform/frontend/src/app/(platform)/raise/components/AvatarStep/components/NotionAvatarPicker/useNotionAvatarPicker.ts+++ /dev/null@@ -1,141 +0,0 @@-import { usePostV2UploadSubmissionMedia } from "@/app/api/__generated__/endpoints/store/store";-import { ApiError } from "@/lib/autogpt-server-api/helpers";-import { toast } from "@/components/molecules/Toast/use-toast";-import {- clampPart,- colorForToken,- hashSeed,- notionAvatarUrlFor,- notionConfigForName,- randomNotionConfig,- seededRandom,- type NotionAvatarConfig,-} from "@/components/molecules/NotionAvatar/helpers";-import type { NotionCategory } from "@/components/molecules/NotionAvatar/metadata.generated";-import { useRef, useState } from "react";-import { COLOR_OPTIONS } from "../../../ColorStep/helpers";-import { ACCEPTED_AVATAR_TYPES, MAX_AVATAR_BYTES } from "../../helpers";--// The accept attribute only filters the OS picker, so the same list has to-// gate the upload for files that arrive by drag-and-drop or a widened filter.-const ACCEPTED_AVATAR_TYPE_LIST = ACCEPTED_AVATAR_TYPES.split(",");--interface Args {- name: string;- color: string | null;- onPick: (avatarUrl: string, colorId: string) => void;-}--export function useNotionAvatarPicker({ name, color, onPick }: Args) {- const [colorId, setColorId] = useState(() => color ?? seedColorToken(name));- const colorIdRef = useRef(colorId);- colorIdRef.current = colorId;- const [config, setConfig] = useState<NotionAvatarConfig>(() =>- seedConfig(name),- );- const fileInputRef = useRef<HTMLInputElement>(null);- const [isUploading, setIsUploading] = useState(false);- const { mutateAsync: uploadMedia } = usePostV2UploadSubmissionMedia();-- // Marks stay off when shuffling too: blush and freckles are something to opt- // into from the row, not something a generated face should arrive wearing.- function shuffle() {- setConfig(withoutMarks(randomNotionConfig()));- }-- function cycle(category: NotionCategory, step: number) {- setConfig((current) => ({- ...current,- parts: {- ...current.parts,- [category]: clampPart(category, current.parts[category] + step),- },- }));- }-- function confirm() {- onPick(notionAvatarUrlFor(withColor(config, colorId)), colorId);- }-- function openFilePicker() {- fileInputRef.current?.click();- }-- async function handleFileChange(file: File | undefined) {- if (!file) return;- if (!ACCEPTED_AVATAR_TYPE_LIST.includes(file.type)) {- toast({- title: "That file isn't an image",- description: "Pick a PNG, JPEG, or WebP image.",- variant: "destructive",- });- return;- }- if (file.size > MAX_AVATAR_BYTES) {- toast({- title: "That image is too large",- description: "Pick something under 5MB.",- variant: "destructive",- });- return;- }-- setIsUploading(true);- try {- const response = await uploadMedia({- data: { file },- params: { purpose: "expert-avatar" },- });- onPick(response.data as string, colorIdRef.current);- } catch (error) {- toast({- title: "Couldn't save that picture",- description:- error instanceof ApiError- ? error.message- : "Try another image, or keep the drawn face.",- variant: "destructive",- });- } finally {- setIsUploading(false);- }- }-- return {- config: withColor(config, colorId),- colorId,- setColorId,- shuffle,- cycle,- confirm,- fileInputRef,- isUploading,- openFilePicker,- handleFileChange,- };-}--/** The disc follows whichever accent the expert is wearing, so the preview and- * the chat theme never disagree. */-function withColor(- config: NotionAvatarConfig,- colorId: string,-): NotionAvatarConfig {- const mapped = colorForToken(colorId);- return mapped ? { ...config, color: mapped } : config;-}--function seedConfig(name: string): NotionAvatarConfig {- return withoutMarks(notionConfigForName(name));-}--// A name-seeded accent so the step opens on something rather than nothing; the-// swatches are there to change it.-function seedColorToken(name: string): string {- const random = seededRandom(hashSeed(`${name.toLowerCase()}:color`));- return COLOR_OPTIONS[Math.floor(random() * COLOR_OPTIONS.length)].id;-}--function withoutMarks(config: NotionAvatarConfig): NotionAvatarConfig {- return { ...config, parts: { ...config.parts, details: 0 } };-}diff --git a/autogpt_platform/frontend/src/app/(platform)/team/[expertId]/__tests__/main.test.tsx b/autogpt_platform/frontend/src/app/(platform)/team/[expertId]/__tests__/main.test.tsxindex 06eb334685..06377c0ce9 100644--- a/autogpt_platform/frontend/src/app/(platform)/team/[expertId]/__tests__/main.test.tsx+++ b/autogpt_platform/frontend/src/app/(platform)/team/[expertId]/__tests__/main.test.tsx@@ -62,7 +62,6 @@ import {import { format, subDays } from "date-fns";import { afterEach, beforeEach, describe, expect, test, vi } from "vitest";import ExpertDetailPage from "../page";-import { Toaster } from "@/components/molecules/Toast/toaster";vi.mock("@/services/environment", async (importActual) => {const actual = await importActual<typeof import("@/services/environment")>();@@ -110,12 +109,6 @@ vi.mock("@/services/feature-flags/use-get-flag", async (importOriginal) => {};});-const { uploadAvatarSpy } = vi.hoisted(() => ({ uploadAvatarSpy: vi.fn() }));-vi.mock("@/lib/direct-upload", async (importOriginal) => {- const actual = await importOriginal<typeof import("@/lib/direct-upload")>();- return { ...actual, uploadSubmissionMediaDirect: uploadAvatarSpy };-});-const { notFoundMock, pushMock } = vi.hoisted(() => ({notFoundMock: vi.fn(),pushMock: vi.fn(),@@ -326,7 +319,7 @@ describe("ExpertDetailPage", () => {render(<ExpertDetailPage />);expect(await screen.findByRole("heading", { name: "Maria" })).toBeDefined();- expect(screen.getByText("Marketing Manager")).toBeDefined();+ expect(screen.getByText(/Marketing Manager/)).toBeDefined();expect(screen.queryByText("Marketing Strategist")).toBeNull();expect(screen.getAllByText(maria.tagline!)).toHaveLength(1);expect(@@ -1054,70 +1047,62 @@ describe("ExpertDetailPage", () => {expect(attempts).toBe(2);});- test("uploads a new photo from the header avatar", async () => {+ test("previews an uploaded avatar and saves it after confirmation", async () => {const updateSpy = vi.fn((info: { request: Request }) => info.request);- uploadAvatarSpy.mockResolvedValueOnce("https://cdn.example.com/maria.png");server.use(+ http.post("*/api/store/submissions/media", () =>+ HttpResponse.json("https://cdn.example.com/maria.png"),+ ),getUpdateExpertAvatarMockHandler(async (info) => {updateSpy(info);- return {- ...maria,- avatar_url: "https://cdn.example.com/maria.png",- };+ return { ...maria, avatar_url: "https://cdn.example.com/maria.png" };}),);-render(<ExpertDetailPage />);-- const button = await screen.findByRole("button", {- name: "Change Maria's appearance",- });- const fileInput = screen.getByLabelText("Upload Maria appearance");- expect(button.contains(fileInput)).toBe(false);- const pickerClick = vi.spyOn(fileInput, "click");- fireEvent.click(button);- expect(pickerClick).toHaveBeenCalledTimes(1);- pickerClick.mockRestore();+ await userEvent.click(+ await screen.findByRole("button", { name: "Change Maria's appearance" }),+ );const file = new File(["x"], "maria.png", { type: "image/png" });- fireEvent.change(fileInput, { target: { files: [file] } });-+ await userEvent.upload(await screen.findByLabelText("Upload avatar"), file);+ await waitFor(() =>+ expect(+ screen+ .getByRole("button", { name: "Use this avatar" })+ .hasAttribute("disabled"),+ ).toBe(false),+ );+ expect(updateSpy).not.toHaveBeenCalled();+ await userEvent.click(+ screen.getByRole("button", { name: "Use this avatar" }),+ );await waitFor(() => expect(updateSpy).toHaveBeenCalled());- expect(uploadAvatarSpy).toHaveBeenCalledWith(file, "expert-avatar");const body = await updateSpy.mock.results[0].value.json();expect(body).toEqual({ avatar_url: "https://cdn.example.com/maria.png" });});- test("a failed photo upload leaves the expert untouched", async () => {- uploadAvatarSpy.mockRejectedValueOnce(new Error("Unauthorized"));+ test("a failed avatar upload leaves the expert untouched", async () => {const updateSpy = vi.fn();server.use(+ http.post("*/api/store/submissions/media", () =>+ HttpResponse.json({ detail: "Upload failed" }, { status: 500 }),+ ),getUpdateExpertAvatarMockHandler(() => {updateSpy();return maria;}),);-- render(- <>- <ExpertDetailPage />- <Toaster />- </>,+ render(<ExpertDetailPage />);+ await userEvent.click(+ await screen.findByRole("button", { name: "Change Maria's appearance" }),+ );+ await userEvent.upload(+ await screen.findByLabelText("Upload avatar"),+ new File(["x"], "maria.png", { type: "image/png" }),+ );+ expect((await screen.findByRole("alert")).textContent).toContain(+ "Could not upload",);-- const button = await screen.findByRole("button", {- name: "Change Maria's appearance",- });- const fileInput = screen.getByLabelText("Upload Maria appearance");- expect(button.contains(fileInput)).toBe(false);- fireEvent.change(fileInput, {- target: { files: [new File(["x"], "maria.png", { type: "image/png" })] },- });-- await waitFor(() => expect(uploadAvatarSpy).toHaveBeenCalled());- await waitFor(() => expect(button).not.toHaveProperty("disabled", true));expect(updateSpy).not.toHaveBeenCalled();- expect(await screen.findByText("Couldn't update appearance")).toBeDefined();- expect(await screen.findByText("Unauthorized")).toBeDefined();});test("paused expert offers one-click resume", async () => {@@ -1570,3 +1555,8 @@ describe("ExpertDetailPage", () => {expect(screen.queryByRole("region", { name: "Needs you" })).toBeNull();});});++vi.mock("@/lib/auth/actions", async (importOriginal) => ({+ ...(await importOriginal<typeof import("@/lib/auth/actions")>()),+ getWebSocketToken: async () => ({ token: "test-token" }),+}));diff --git a/autogpt_platform/frontend/src/app/(platform)/team/[expertId]/components/ExpertAvatarButton/ExpertAvatarButton.tsx b/autogpt_platform/frontend/src/app/(platform)/team/[expertId]/components/ExpertAvatarButton/ExpertAvatarButton.tsxindex 5bfab44a00..f6458a441f 100644--- a/autogpt_platform/frontend/src/app/(platform)/team/[expertId]/components/ExpertAvatarButton/ExpertAvatarButton.tsx+++ b/autogpt_platform/frontend/src/app/(platform)/team/[expertId]/components/ExpertAvatarButton/ExpertAvatarButton.tsx@@ -1,10 +1,11 @@"use client";-import { Expert } from "@/app/api/__generated__/models/expert";+import { getExpertTopicHex } from "@/components/molecules/ExpertAvatar/colors";++import type { Expert } from "@/app/api/__generated__/models/expert";import { ExpertAvatar } from "@/components/molecules/ExpertAvatar/ExpertAvatar";-import { Icon } from "@/components/atoms/Icon/Icon";-import { Camera01Icon, Loading03Icon } from "@hugeicons/core-free-icons";-import { ChangeEvent, useRef } from "react";+import { ExpertAvatarPicker } from "@/components/molecules/ExpertAvatarPicker/ExpertAvatarPicker";+import { Dialog } from "@/components/molecules/Dialog/Dialog";import { useExpertAvatarButton } from "./useExpertAvatarButton";interface Props {@@ -12,57 +13,41 @@ interface Props {}export function ExpertAvatarButton({ expert }: Props) {- const fileRef = useRef<HTMLInputElement>(null);- const { uploadAvatar, isUploading } = useExpertAvatarButton(expert.id);-- function openFilePicker() {- if (isUploading) return;- fileRef.current?.click();- }-- async function handleChange(event: ChangeEvent<HTMLInputElement>) {- const file = event.target.files?.[0];- event.target.value = "";- if (file) await uploadAvatar(file);- }-+ const { isOpen, setIsOpen, saveAvatar, isPending } = useExpertAvatarButton(+ expert.id,+ );return (<><buttontype="button"- onClick={openFilePicker}- disabled={isUploading}+ onClick={() => setIsOpen(true)}aria-label={`Change ${expert.name}'s appearance`}- className="group relative size-24 shrink-0 cursor-pointer rounded-full outline-none focus-visible:ring-2 focus-visible:ring-ring focus-visible:ring-offset-2 disabled:cursor-wait"+ className="size-24 shrink-0 rounded-xl focus-visible:ring-2 focus-visible:ring-ring"><ExpertAvatarname={expert.name}avatarUrl={expert.avatar_url}- color={expert.color}size={96}- className="rounded-full ring-4 ring-background"+ backgroundColor={getExpertTopicHex(expert.role, expert.categories)}/>-- <span- aria-hidden- data-uploading={isUploading || undefined}- className="pointer-events-none absolute inset-0 flex items-center justify-center rounded-full bg-foreground/45 text-background opacity-0 backdrop-blur-[2px] transition-opacity duration-150 group-hover:opacity-100 group-focus-visible:opacity-100 data-[uploading]:opacity-100"- >- {isUploading ? (- <Icon icon={Loading03Icon} size={20} className="animate-spin" />- ) : (- <Icon icon={Camera01Icon} size={20} />- )}- </span></button>- <input- ref={fileRef}- type="file"- aria-label={`Upload ${expert.name} appearance`}- accept="image/png,image/jpeg,image/webp"- className="hidden"- onChange={handleChange}- />+ <Dialog+ title={`Change ${expert.name}'s avatar`}+ controlled={{ isOpen, set: setIsOpen }}+ >+ <Dialog.Content>+ {isOpen && (+ <fieldset disabled={isPending} className="min-w-0">+ <ExpertAvatarPicker+ name={expert.name}+ color={expert.color ?? null}+ avatarUrl={expert.avatar_url}+ onPick={saveAvatar}+ />+ </fieldset>+ )}+ </Dialog.Content>+ </Dialog></>);}diff --git a/autogpt_platform/frontend/src/app/(platform)/team/[expertId]/components/ExpertAvatarButton/useExpertAvatarButton.ts b/autogpt_platform/frontend/src/app/(platform)/team/[expertId]/components/ExpertAvatarButton/useExpertAvatarButton.tsindex 3377220972..721ffcbb67 100644--- a/autogpt_platform/frontend/src/app/(platform)/team/[expertId]/components/ExpertAvatarButton/useExpertAvatarButton.ts+++ b/autogpt_platform/frontend/src/app/(platform)/team/[expertId]/components/ExpertAvatarButton/useExpertAvatarButton.ts@@ -1,53 +1,41 @@import {getGetExpertQueryKey,getListExpertsQueryKey,+ getListExpertIdentitiesQueryKey,useUpdateExpertAvatar,} from "@/app/api/__generated__/endpoints/experts/experts";import { useToast } from "@/components/molecules/Toast/use-toast";-import {- isFileTooLarge,- uploadSubmissionMediaDirect,-} from "@/lib/direct-upload";import { useQueryClient } from "@tanstack/react-query";import { useState } from "react";export function useExpertAvatarButton(expertId: string) {const queryClient = useQueryClient();const { toast } = useToast();- const [isUploading, setIsUploading] = useState(false);-- const { mutateAsync: updateAvatar } = useUpdateExpertAvatar({- mutation: {- onSuccess: () => {- queryClient.invalidateQueries({- queryKey: getGetExpertQueryKey(expertId),- });- queryClient.invalidateQueries({ queryKey: getListExpertsQueryKey() });- },- },- });+ const [isOpen, setIsOpen] = useState(false);+ const { mutateAsync: updateAvatar, isPending } = useUpdateExpertAvatar();- async function uploadAvatar(file: File) {- if (isFileTooLarge({ file, maxSizeMB: 5, toast })) return;-- setIsUploading(true);+ async function saveAvatar(url: string) {try {- const url = (- await uploadSubmissionMediaDirect(file, "expert-avatar")- ).trim();- if (!url) throw new Error("Upload returned no URL");await updateAvatar({ expertId, data: { avatar_url: url } });- toast({ title: "Appearance updated", variant: "success" });- } catch (error) {+ await Promise.all([+ queryClient.invalidateQueries({+ queryKey: getGetExpertQueryKey(expertId),+ }),+ queryClient.invalidateQueries({ queryKey: getListExpertsQueryKey() }),+ queryClient.invalidateQueries({+ queryKey: getListExpertIdentitiesQueryKey(),+ }),+ ]);+ setIsOpen(false);+ toast({ title: "Avatar updated", variant: "success" });+ } catch {toast({- title: "Couldn't update appearance",- description: error instanceof Error ? error.message : undefined,+ title: "Could not update avatar",+ description: "Your current avatar is unchanged. Try again.",variant: "destructive",});- } finally {- setIsUploading(false);}}- return { uploadAvatar, isUploading };+ return { isOpen, setIsOpen, saveAvatar, isPending };}diff --git a/autogpt_platform/frontend/src/app/(platform)/team/[expertId]/components/ExpertDetailHeader.tsx b/autogpt_platform/frontend/src/app/(platform)/team/[expertId]/components/ExpertDetailHeader.tsxindex c8cbee7bd4..391d390108 100644--- a/autogpt_platform/frontend/src/app/(platform)/team/[expertId]/components/ExpertDetailHeader.tsx+++ b/autogpt_platform/frontend/src/app/(platform)/team/[expertId]/components/ExpertDetailHeader.tsx@@ -3,6 +3,7 @@import { Expert } from "@/app/api/__generated__/models/expert";import { Button } from "@/components/atoms/Button/Button";import { ExpertIdentityDetails } from "@/components/molecules/ExpertIdentityDetails/ExpertIdentityDetails";+import { CategoryTag } from "@/app/(platform)/marketplace/components/CategoryChip/CategoryTag";import { BubbleChatIcon, PencilEdit02Icon } from "@hugeicons/core-free-icons";import { getExpertCover } from "../../helpers";import { ExpertCover } from "../../components/ExpertTeamCard/components/ExpertCover";@@ -17,6 +18,7 @@ interface Props {export function ExpertDetailHeader({ expert, onEditSoul, onChat }: Props) {const cover = getExpertCover(expert);+ const topic = expert.categories?.[0];return (<header>@@ -32,6 +34,7 @@ export function ExpertDetailHeader({ expert, onEditSoul, onChat }: Props) {role={expert.role}jobTitle={expert.job_title}size="page"+ nameAlign="baseline"nameAccessory={<IntegrationIconsexpertName={expert.name}@@ -39,6 +42,7 @@ export function ExpertDetailHeader({ expert, onEditSoul, onChat }: Props) {/>}/>+ {topic ? <CategoryTag category={topic} className="mt-2" /> : null}</div><div className="flex shrink-0 items-center gap-2"><Buttondiff --git a/autogpt_platform/frontend/src/app/(platform)/team/__tests__/main.test.tsx b/autogpt_platform/frontend/src/app/(platform)/team/__tests__/main.test.tsxindex 7522029d54..856aa17d61 100644--- a/autogpt_platform/frontend/src/app/(platform)/team/__tests__/main.test.tsx+++ b/autogpt_platform/frontend/src/app/(platform)/team/__tests__/main.test.tsx@@ -246,7 +246,8 @@ describe("TeamPage", () => {render(<TeamPage />);expect(await screen.findByText("Maria")).toBeDefined();- expect(screen.getByText("Marketing Strategist")).toBeDefined();+ // The job title now rides the name line, after a bullet.+ expect(screen.getByText(/Marketing Strategist/)).toBeDefined();const card = screen.getByRole("link", { name: "View Maria" });expect(within(card).queryByText("Idle")).toBeNull();expect(getStatValue(card, "Workflows")).toBe("2");@@ -382,7 +383,7 @@ describe("TeamPage", () => {});});- test("shows the seeded cover art for Max and none for the rest", async () => {+ test("uses plain covers for built-in experts", async () => {server.use(getListExpertsMockHandler([hiredMaria,@@ -400,13 +401,11 @@ describe("TeamPage", () => {const max = await screen.findByRole("link", { name: "View Max" });expect(max.querySelector('img[src="/experts/covers/max-1.jpg"]'),- ).not.toBeNull();+ ).toBeNull();const maria = screen.getByRole("link", { name: "View Maria" });expect(maria.querySelector('img[src^="/experts/covers/"]')).toBeNull();- // No colour of her own and no seeded art, so the palette fills in.- expect(maria.querySelector('[class*="-200"]')?.className).toMatch(- /bg-[a-z]+-200/,- );+ const otto = screen.getByRole("link", { name: "View Otto" });+ expect(otto.querySelector('img[src^="/experts/covers/"]')).toBeNull();});test("shows no integrations item on a card with none granted", async () => {diff --git a/autogpt_platform/frontend/src/app/(platform)/team/components/AutopilotCard.tsx b/autogpt_platform/frontend/src/app/(platform)/team/components/AutopilotCard.tsxindex e8f5bfc383..1d504ecd35 100644--- a/autogpt_platform/frontend/src/app/(platform)/team/components/AutopilotCard.tsx+++ b/autogpt_platform/frontend/src/app/(platform)/team/components/AutopilotCard.tsx@@ -10,19 +10,18 @@ import {} from "@hugeicons/core-free-icons";import { cn } from "@/lib/utils";import Link from "next/link";+import { AUTOPILOT_BLURB, AUTOPILOT_ROLE } from "../helpers";import {- AUTOPILOT_BLURB,- AUTOPILOT_PILL_CLASS,- AUTOPILOT_ROLE,-} from "../helpers";-import {- AUTOPILOT_COVER_COLOR,- AUTOPILOT_COVER_URL,- AUTOPILOT_NAME,-} from "@/components/molecules/AutopilotAvatar/helpers";+ CHIP_SHAPE,+ CHIP_SIZE,+} from "@/app/(platform)/marketplace/components/CategoryChip/CategoryChip";+import { AUTOPILOT_NAME } from "@/components/molecules/AutopilotAvatar/helpers";import { CardStat, CardStats } from "./CardStats";import { ExpertCover } from "./ExpertTeamCard/components/ExpertCover";+/** Otto's reserved lavender, the one colour no category can take. */+const AUTOPILOT_COVER_COLOR = "#B6A4C8";+interface Props {skillCount: number;scheduleCount: number;@@ -46,17 +45,13 @@ export function AutopilotCard({aria-label={`View ${AUTOPILOT_NAME}`}className="flex flex-1 flex-col items-start p-2 pb-4">- <ExpertCover- color={AUTOPILOT_COVER_COLOR}- status="built-in"- art={AUTOPILOT_COVER_URL}- />+ <ExpertCover color={AUTOPILOT_COVER_COLOR} status="built-in" /><div className="flex w-full items-start gap-3 px-2"><AutopilotAvatarsize={88}- transparent={false}- className="relative z-10 -mt-12 ml-1 rounded-full"+ backgroundColor={AUTOPILOT_COVER_COLOR}+ className="relative z-10 -mt-12 ml-1 rounded-full ring-4 ring-background"/></div>@@ -68,17 +63,15 @@ export function AutopilotCard({>{AUTOPILOT_NAME}</Text>- <Text- variant="small-medium"- as="span"- className={cn(- "inline-flex items-center gap-1.5 self-start rounded-full px-2.5 py-0.5",- AUTOPILOT_PILL_CLASS,- )}+ {/* Not a category, but it sits in the same row as the experts'+ topic tags and should not read as a different kind of thing. */}+ <span+ className={cn(CHIP_SHAPE, CHIP_SIZE.small, "max-w-full")}+ style={{ color: AUTOPILOT_COVER_COLOR }}>- <Icon icon={SparklesIcon} size={12} />- {AUTOPILOT_ROLE}- </Text>+ <Icon icon={SparklesIcon} size={12} className="shrink-0" />+ <span className="truncate">{AUTOPILOT_ROLE}</span>+ </span><Textvariant="body"tone="muted"diff --git a/autogpt_platform/frontend/src/app/(platform)/team/components/ExpertSidePanel/IdentityAvatar.tsx b/autogpt_platform/frontend/src/app/(platform)/team/components/ExpertSidePanel/IdentityAvatar.tsxindex 0ba69d9e22..f5f8d8e727 100644--- a/autogpt_platform/frontend/src/app/(platform)/team/components/ExpertSidePanel/IdentityAvatar.tsx+++ b/autogpt_platform/frontend/src/app/(platform)/team/components/ExpertSidePanel/IdentityAvatar.tsx@@ -1,12 +1,5 @@-import {- Avatar,- AvatarFallback,- AvatarImage,-} from "@/components/atoms/Avatar/Avatar";import { AutopilotAvatar } from "@/components/molecules/AutopilotAvatar/AutopilotAvatar";-import { expertNotionConfig } from "@/components/molecules/NotionAvatar/helpers";-import { NotionAvatarImage } from "@/components/molecules/NotionAvatar/NotionAvatarImage";-import { cn } from "@/lib/utils";+import { ExpertAvatar } from "@/components/molecules/ExpertAvatar/ExpertAvatar";export interface PanelIdentity {name: string;@@ -22,29 +15,14 @@ interface Props {}export function IdentityAvatar({ identity, className, imageSize }: Props) {- if (identity.isAutopilot) {+ if (identity.isAutopilot)return <AutopilotAvatar size={imageSize} className={className} />;- }- const config = expertNotionConfig(identity);- if (config) {- return (- <NotionAvatarImage- config={config}- size={imageSize}- title={identity.name}- className={className}- />- );- }return (- <Avatar className={cn("shrink-0 border border-stone-500", className)}>- <AvatarImage- src={identity.avatarUrl ?? undefined}- alt={identity.name}- width={imageSize}- height={imageSize}- />- <AvatarFallback>{identity.name}</AvatarFallback>- </Avatar>+ <ExpertAvatar+ name={identity.name}+ avatarUrl={identity.avatarUrl}+ size={imageSize}+ className={className}+ />);}diff --git a/autogpt_platform/frontend/src/app/(platform)/team/components/ExpertTeamCard/ExpertTeamCard.tsx b/autogpt_platform/frontend/src/app/(platform)/team/components/ExpertTeamCard/ExpertTeamCard.tsxindex c0bf0be463..c7f2852e8a 100644--- a/autogpt_platform/frontend/src/app/(platform)/team/components/ExpertTeamCard/ExpertTeamCard.tsx+++ b/autogpt_platform/frontend/src/app/(platform)/team/components/ExpertTeamCard/ExpertTeamCard.tsx@@ -2,6 +2,7 @@ import { Expert } from "@/app/api/__generated__/models/expert";import { GraphExecutionJobInfo } from "@/app/api/__generated__/models/graphExecutionJobInfo";import { ExpertAvatar } from "@/components/molecules/ExpertAvatar/ExpertAvatar";import { ExpertIdentityDetails } from "@/components/molecules/ExpertIdentityDetails/ExpertIdentityDetails";+import { CategoryTag } from "@/app/(platform)/marketplace/components/CategoryChip/CategoryTag";import { ExpertTagline } from "@/components/molecules/ExpertIdentityDetails/components/ExpertTagline";import { Button } from "@/components/atoms/Button/Button";import { Text } from "@/components/atoms/Text/Text";@@ -50,6 +51,8 @@ export function ExpertTeamCard({const rosterStatus = getExpertRosterStatus(expert);const weeklySpend = getWeeklySpend(expert);const cover = getExpertCover(expert);+ // The area the expert works in, in the chip the marketplace already uses.+ const topic = expert.categories?.[0];const {handleResume,isResuming,@@ -105,6 +108,7 @@ export function ExpertTeamCard({name={expert.name}avatarUrl={expert.avatar_url}color={expert.color}+ backgroundColor={cover.color}size={88}className="rounded-full ring-4 ring-background"/>@@ -139,6 +143,7 @@ export function ExpertTeamCard({name={expert.name}role={expert.role}jobTitle={expert.job_title}+ nameAlign="baseline"nameAccessory={<IntegrationIconsexpertName={expert.name}@@ -146,6 +151,7 @@ export function ExpertTeamCard({/>}/>+ {topic ? <CategoryTag category={topic} /> : null}<ExpertTagline tagline={expert.tagline} compact /></div>diff --git a/autogpt_platform/frontend/src/app/(platform)/team/components/ExpertTeamCard/components/ExpertCover.tsx b/autogpt_platform/frontend/src/app/(platform)/team/components/ExpertTeamCard/components/ExpertCover.tsxindex f79bdda407..2727a0b7db 100644--- a/autogpt_platform/frontend/src/app/(platform)/team/components/ExpertTeamCard/components/ExpertCover.tsx+++ b/autogpt_platform/frontend/src/app/(platform)/team/components/ExpertTeamCard/components/ExpertCover.tsx@@ -1,3 +1,4 @@+import { expertPastel } from "@/components/molecules/ExpertAvatar/colors";import { coverClassFor } from "@/app/(platform)/raise/components/ColorStep/helpers";import { Icon } from "@/components/atoms/Icon/Icon";import { Text } from "@/components/atoms/Text/Text";@@ -42,8 +43,13 @@ export function ExpertCover({ className, color, status, art }: Props) {return (<div+ style={+ color?.startsWith("#")+ ? { backgroundColor: expertPastel(color) }+ : undefined+ }className={cn(- "relative h-28 w-full overflow-hidden rounded-lg bg-zinc-100",+ "relative h-24 w-full overflow-hidden rounded-lg bg-zinc-100",coverClassFor(color ?? null),className,)}diff --git a/autogpt_platform/frontend/src/app/(platform)/team/helpers.test.ts b/autogpt_platform/frontend/src/app/(platform)/team/helpers.test.tsindex 270a9abbe2..38695a4437 100644--- a/autogpt_platform/frontend/src/app/(platform)/team/helpers.test.ts+++ b/autogpt_platform/frontend/src/app/(platform)/team/helpers.test.ts@@ -3,7 +3,7 @@ import { ExpertPod } from "@/app/api/__generated__/models/expertPod";import { ExpertWorkflowRef } from "@/app/api/__generated__/models/expertWorkflowRef";import { describe, expect, test } from "vitest";import { GraphExecutionJobInfo } from "@/app/api/__generated__/models/graphExecutionJobInfo";-import { COLOR_OPTIONS } from "@/app/(platform)/raise/components/ColorStep/helpers";+import { getExpertTopicHex } from "@/components/molecules/ExpertAvatar/colors";import {filterExpertSchedules,filterExpertWorkflows,@@ -262,55 +262,23 @@ describe("filterExpertSchedules", () => {});describe("getExpertCover", () => {- const paletteIds = COLOR_OPTIONS.map((option) => option.id);-- test("keeps the expert's own colour", () => {- const cover = getExpertCover({- id: "expert-1",- avatar_url: "/experts/max.svg",- color: "sky-300",- });- expect(cover.color).toBe("sky-300");- expect(cover.art).toBe("/experts/covers/max-1.jpg");- });-- test("gives a seeded expert its cover art and pastel", () => {- const cover = getExpertCover({- id: "expert-1",- avatar_url: "/experts/maria.svg",- color: "",- });- expect(cover).toEqual({- art: "/experts/covers/maria-1.jpg",- color: "orange-300",- });- });-- test("picks a palette colour for a colourless custom expert, stable by id", () => {- const first = getExpertCover({- id: "expert-1",- avatar_url: "/uploads/custom.png",- color: "",- });- const again = getExpertCover({- id: "expert-1",- avatar_url: null,- color: "",- });- expect(first.art).toBeNull();- expect(paletteIds).toContain(first.color);- expect(again.color).toBe(first.color);- });-- test("spreads colourless experts across the palette", () => {- const colours = new Set(- Array.from(- { length: 40 },- (_, index) =>- getExpertCover({ id: `expert-${index}`, avatar_url: null, color: "" })- .color,- ),- );- expect(colours.size).toBeGreaterThan(1);+ test("uses a plain topic color for every built-in, independent of its avatar", () => {+ for (const avatar_url of [+ "/experts/maria.svg",+ "/experts/clay/v2/jules.png",+ "/uploads/custom.png",+ ]) {+ expect(+ getExpertCover({+ role: "Marketing",+ color: "",+ avatar_url,+ id: "expert-1",+ }),+ ).toEqual({+ art: null,+ color: getExpertTopicHex("Marketing"),+ });+ }});});diff --git a/autogpt_platform/frontend/src/app/(platform)/team/helpers.ts b/autogpt_platform/frontend/src/app/(platform)/team/helpers.tsindex ae82d5301f..76b51d3ede 100644--- a/autogpt_platform/frontend/src/app/(platform)/team/helpers.ts+++ b/autogpt_platform/frontend/src/app/(platform)/team/helpers.ts@@ -1,5 +1,5 @@import { Expert } from "@/app/api/__generated__/models/expert";-import { COLOR_OPTIONS } from "@/app/(platform)/raise/components/ColorStep/helpers";+import { getExpertTopicHex } from "@/components/molecules/ExpertAvatar/colors";import { ExpertPod } from "@/app/api/__generated__/models/expertPod";import { ExpertWorkflowRef } from "@/app/api/__generated__/models/expertWorkflowRef";import { GraphExecutionJobInfo } from "@/app/api/__generated__/models/graphExecutionJobInfo";@@ -23,43 +23,12 @@ interface PodGroup {export const AUTOPILOT_ROLE = "Head of AI";-/** Cover art and palette colour shipped with the seeded experts, keyed by- * the avatar the seed gives them. Seeded experts carry no colour of their- * own, so the picture's pastel fills in; an expert's own colour still wins. */-const SEEDED_COVERS: Record<string, { art: string; color: string }> = {- "/experts/max.svg": {- art: "/experts/covers/max-1.jpg",- color: "fuchsia-300",- },- "/experts/maria.svg": {- art: "/experts/covers/maria-1.jpg",- color: "orange-300",- },- "/experts/frankie.svg": {- art: "/experts/covers/frankie-1.jpg",- color: "yellow-300",- },-};--/** A raised expert with no colour of its own still gets a pastel, picked- * from the palette by its id so it is the same on every render and page. */-function getFallbackCoverColor(expertId: string) {- let hash = 0;- for (const char of expertId) {- hash = (hash * 31 + char.charCodeAt(0)) >>> 0;- }- return COLOR_OPTIONS[hash % COLOR_OPTIONS.length].id;-}-export function getExpertCover(- expert: Pick<Expert, "id" | "avatar_url" | "color">,+ expert: Pick<Expert, "id" | "avatar_url" | "color" | "role" | "categories">,) {- const seeded = expert.avatar_url- ? SEEDED_COVERS[expert.avatar_url]- : undefined;return {- art: seeded?.art ?? null,- color: expert.color || seeded?.color || getFallbackCoverColor(expert.id),+ art: null,+ color: getExpertTopicHex(expert.role, expert.categories),};}diff --git a/autogpt_platform/frontend/src/app/api/openapi.json b/autogpt_platform/frontend/src/app/api/openapi.jsonindex ab343c5493..2084d774cd 100644--- a/autogpt_platform/frontend/src/app/api/openapi.json+++ b/autogpt_platform/frontend/src/app/api/openapi.json@@ -6705,6 +6705,80 @@"security": [{ "HTTPBearerJWT": [] }]}},+ "/api/experts/avatars/generations": {+ "post": {+ "tags": ["v2", "experts", "experts", "private", "experts"],+ "summary": "Generate Expert Avatar",+ "operationId": "generate_expert_avatar",+ "requestBody": {+ "content": {+ "application/json": {+ "schema": { "$ref": "#/components/schemas/ExpertAvatarRequest" }+ }+ },+ "required": true+ },+ "responses": {+ "202": {+ "description": "Successful Response",+ "content": {+ "application/json": {+ "schema": { "$ref": "#/components/schemas/ExpertAvatarJob" }+ }+ }+ },+ "401": {+ "$ref": "#/components/responses/HTTP401NotAuthenticatedError"+ },+ "422": {+ "description": "Validation Error",+ "content": {+ "application/json": {+ "schema": { "$ref": "#/components/schemas/HTTPValidationError" }+ }+ }+ }+ },+ "security": [{ "HTTPBearerJWT": [] }]+ }+ },+ "/api/experts/avatars/generations/{job_id}": {+ "get": {+ "tags": ["v2", "experts", "experts", "private", "experts"],+ "summary": "Get Expert Avatar Generation",+ "operationId": "get_expert_avatar_generation",+ "security": [{ "HTTPBearerJWT": [] }],+ "parameters": [+ {+ "name": "job_id",+ "in": "path",+ "required": true,+ "schema": { "type": "string", "format": "uuid", "title": "Job Id" }+ }+ ],+ "responses": {+ "200": {+ "description": "Successful Response",+ "content": {+ "application/json": {+ "schema": { "$ref": "#/components/schemas/ExpertAvatarJob" }+ }+ }+ },+ "401": {+ "$ref": "#/components/responses/HTTP401NotAuthenticatedError"+ },+ "422": {+ "description": "Validation Error",+ "content": {+ "application/json": {+ "schema": { "$ref": "#/components/schemas/HTTPValidationError" }+ }+ }+ }+ }+ }+ },"/api/experts/identities": {"get": {"tags": ["v2", "experts", "experts", "private"],@@ -21817,6 +21891,149 @@"title": "ExpertActivityDay","description": "One calendar day, in the owner's timezone, of expert activity."},+ "ExpertAvatarJob": {+ "properties": {+ "id": { "type": "string", "format": "uuid", "title": "Id" },+ "status": {+ "type": "string",+ "enum": ["pending", "complete", "failed"],+ "title": "Status",+ "default": "pending"+ },+ "avatar_url": {+ "anyOf": [{ "type": "string" }, { "type": "null" }],+ "title": "Avatar Url"+ },+ "error": {+ "anyOf": [{ "type": "string" }, { "type": "null" }],+ "title": "Error"+ },+ "created_at": { "type": "number", "title": "Created At" }+ },+ "type": "object",+ "title": "ExpertAvatarJob"+ },+ "ExpertAvatarRequest": {+ "properties": {+ "category": {+ "type": "string",+ "enum": [+ "marketing",+ "sales",+ "finance",+ "support",+ "operations",+ "research",+ "content",+ "development"+ ],+ "title": "Category",+ "default": "content"+ },+ "color": {+ "anyOf": [+ {+ "type": "string",+ "enum": [+ "terracotta",+ "ochre",+ "sage",+ "coral",+ "slate",+ "olive",+ "stone",+ "charcoal",+ "rust",+ "rose",+ "seaglass",+ "pine",+ "denim",+ "sand",+ "bluegray",+ "redclay",+ "apricot",+ "moss",+ "chalk",+ "copper",+ "mist",+ "ink",+ "umber",+ "lagoon",+ "limestone",+ "fern"+ ]+ },+ { "type": "null" }+ ],+ "title": "Color"+ },+ "shape": {+ "type": "string",+ "enum": [+ "pebble",+ "slab",+ "wedge",+ "dome",+ "capsule",+ "bean",+ "saddle",+ "kite",+ "fan",+ "arch",+ "shield",+ "crescent"+ ],+ "title": "Shape",+ "default": "pebble"+ },+ "base": {+ "type": "string",+ "enum": ["compact", "wide", "tall"],+ "title": "Base",+ "default": "compact"+ },+ "tilt": {+ "type": "string",+ "enum": ["level", "left", "right"],+ "title": "Tilt",+ "default": "level"+ },+ "inlay": {+ "type": "string",+ "enum": ["sweep", "pool", "curl", "patch", "cap", "teardrop"],+ "title": "Inlay",+ "default": "sweep"+ },+ "accent_placement": {+ "type": "string",+ "enum": ["body", "head", "both"],+ "title": "Accent Placement",+ "default": "body"+ },+ "accent_count": {+ "type": "string",+ "enum": ["one", "two", "three"],+ "title": "Accent Count",+ "default": "one"+ },+ "shade": {+ "anyOf": [+ { "type": "string", "enum": ["standard", "light", "dark"] },+ { "type": "null" }+ ],+ "title": "Shade"+ },+ "expression": {+ "type": "string",+ "enum": ["friendly", "curious", "focused", "pleased"],+ "title": "Expression",+ "default": "friendly"+ }+ },+ "additionalProperties": false,+ "type": "object",+ "title": "ExpertAvatarRequest"+ },"ExpertAvatarUpdate": {"properties": {"avatar_url": {diff --git a/autogpt_platform/frontend/src/components/atoms/Avatar/Avatar.tsx b/autogpt_platform/frontend/src/components/atoms/Avatar/Avatar.tsxindex d44d4850b1..ba2873e98e 100644--- a/autogpt_platform/frontend/src/components/atoms/Avatar/Avatar.tsx+++ b/autogpt_platform/frontend/src/components/atoms/Avatar/Avatar.tsx@@ -171,6 +171,13 @@ export type AvatarFallbackProps = React.HTMLAttributes<HTMLSpanElement> & {* with a smaller radius can clip the marble to a rounded square.*/square?: boolean;+ /**+ * Names the fallback for assistive tech once the image is gone for good.+ * Without it an avatar whose image fails to load has no accessible name at+ * all. Pass it alongside your own `children`: the default marble is already+ * an `img`, and two of those on one avatar help nobody.+ */+ accessibleLabel?: string;};export function AvatarFallback({@@ -178,6 +185,7 @@ export function AvatarFallback({children,size: _size, // accepted for API compatibility; currently not usedsquare = false,+ accessibleLabel,...props}: AvatarFallbackProps): JSX.Element | null {const { isLoaded, hasImage } = useAvatarContext();@@ -206,8 +214,10 @@ export function AvatarFallback({return (<span// decorative gradient — hide from AT so the marble's unnamed role="img"- // svg doesn't surface as an axe violation- aria-hidden="true"+ // svg doesn't surface as an axe violation, unless the caller named it+ role={accessibleLabel ? "img" : undefined}+ aria-label={accessibleLabel}+ aria-hidden={accessibleLabel ? undefined : "true"}className={cn(// absolute so the fallback overlays (not flows beside) the image while it loads;// svg stretched to fill so the marble always matches the avatar sizediff --git a/autogpt_platform/frontend/src/components/layout/AppSidebar/components/RecentChats/__tests__/expert-groups.test.tsx b/autogpt_platform/frontend/src/components/layout/AppSidebar/components/RecentChats/__tests__/expert-groups.test.tsxindex 0cb83d4189..a3946abb24 100644--- a/autogpt_platform/frontend/src/components/layout/AppSidebar/components/RecentChats/__tests__/expert-groups.test.tsx+++ b/autogpt_platform/frontend/src/components/layout/AppSidebar/components/RecentChats/__tests__/expert-groups.test.tsx@@ -198,11 +198,11 @@ describe("RecentChats — expert groups", () => {const expertGroup = await screen.findByRole("button", {name: "Expert chats",});- expect(expertGroup.querySelector('[role="img"]')).not.toBe(null);+ expect(expertGroup.querySelector("img")).not.toBe(null);expect(await screen.findByText("expert-ghost chat 1")).toBeDefined();});- it("uses a neutral fallback when no appearance is saved", async () => {+ it("uses a stable warm-stone fallback independent of the accent", async () => {const novaExpert: Expert = {...mariaExpert,id: "expert-nova",@@ -220,9 +220,10 @@ describe("RecentChats — expert groups", () => {const expertGroup = await screen.findByRole("button", {name: "Nova chats",});- const avatar = expertGroup.querySelector('[role="img"]');- expect(avatar?.getAttribute("aria-label")).toBe("Nova, AI Expert");- expect(expertGroup.querySelector("[data-avatar]")).toBeNull();+ const avatar = expertGroup.querySelector("img");+ expect(avatar?.getAttribute("width")).toBe("32");+ expect(avatar?.getAttribute("height")).toBe("32");+ expect(avatar?.getAttribute("src")).toContain("content.png");});it("keeps the group-level and list-level Load more buttons distinct", async () => {diff --git a/autogpt_platform/frontend/src/components/layout/AppSidebar/components/RecentChats/components/ExpertChatGroup/ExpertChatGroup.tsx b/autogpt_platform/frontend/src/components/layout/AppSidebar/components/RecentChats/components/ExpertChatGroup/ExpertChatGroup.tsxindex 254e70882a..b9189af4d6 100644--- a/autogpt_platform/frontend/src/components/layout/AppSidebar/components/RecentChats/components/ExpertChatGroup/ExpertChatGroup.tsx+++ b/autogpt_platform/frontend/src/components/layout/AppSidebar/components/RecentChats/components/ExpertChatGroup/ExpertChatGroup.tsx@@ -74,14 +74,18 @@ export function ExpertChatGroup({className="flex min-w-0 flex-1 items-center gap-2 rounded-md px-2 py-1 text-left text-sm font-medium text-zinc-900">{isAutopilot ? (- <AutopilotAvatar size={32} transparent />+ <AutopilotAvatar+ size={32}+ transparent+ className="rounded-full border border-[#e3e3e3]"+ />) : (<ExpertAvatarname={label}avatarUrl={avatarUrl}color={color}size={32}- className="border-0"+ className="rounded-full border border-[#e3e3e3]"/>)}<ExpertIdentityDetailsdiff --git a/autogpt_platform/frontend/src/components/molecules/AutopilotAvatar/AutopilotAvatar.tsx b/autogpt_platform/frontend/src/components/molecules/AutopilotAvatar/AutopilotAvatar.tsxindex 76d9593f64..2428ffa29d 100644--- a/autogpt_platform/frontend/src/components/molecules/AutopilotAvatar/AutopilotAvatar.tsx+++ b/autogpt_platform/frontend/src/components/molecules/AutopilotAvatar/AutopilotAvatar.tsx@@ -11,12 +11,14 @@ interface Props {size?: number;transparent?: boolean;className?: string;+ backgroundColor?: string;}export function AutopilotAvatar({size = 24,transparent = false,className,+ backgroundColor,}: Props) {if (transparent) {return (@@ -36,6 +38,7 @@ export function AutopilotAvatar({name={AUTOPILOT_NAME}avatarUrl={AUTOPILOT_AVATAR_URL}size={size}+ backgroundColor={backgroundColor}className={className}/>);diff --git a/autogpt_platform/frontend/src/components/molecules/ExpertAvatar/ExpertAvatar.stories.tsx b/autogpt_platform/frontend/src/components/molecules/ExpertAvatar/ExpertAvatar.stories.tsxnew file mode 100644index 0000000000..f1d4c7fc01--- /dev/null+++ b/autogpt_platform/frontend/src/components/molecules/ExpertAvatar/ExpertAvatar.stories.tsx@@ -0,0 +1,68 @@+import type { Meta, StoryObj } from "@storybook/nextjs";+import { ExpertAvatar } from "./ExpertAvatar";+import { BUILTIN_EXPERT_AVATARS } from "./helpers";+import { getExpertTopicHex } from "./colors";+import { ExpertCover } from "@/app/(platform)/team/components/ExpertTeamCard/components/ExpertCover";++const meta = {+ title: "Molecules/ExpertAvatar",+ component: ExpertAvatar,+ args: { name: "Expert", avatarUrl: null },+} satisfies Meta<typeof ExpertAvatar>;+export default meta;+type Story = StoryObj<typeof meta>;++const EXAMPLES = [+ ["jules", "Marketing"],+ ["remy", "Marketing"],+ ["quinn", "Research"],+ ["harper", "Operations"],+ ["vera", "Operations"],+ ["anika", "Sales"],+ ["marco", "Marketing"],+ ["lena", "Operations"],+ ["mina", "Finance"],+];++export const TopicSurfaces: Story = {+ render: function TopicSurfaces() {+ return (+ <div className="grid w-full max-w-4xl grid-cols-3 gap-4">+ {EXAMPLES.map(([id, role]) => {+ const avatar = BUILTIN_EXPERT_AVATARS.find(+ (avatar) => avatar.id === id,+ )!;+ const color = getExpertTopicHex(role);+ return (+ <div+ key={id}+ className="rounded-2xl border border-zinc-200 bg-white p-2"+ >+ <ExpertCover color={color} />+ <div className="relative -mt-12 px-3">+ <ExpertAvatar+ name={avatar.name}+ avatarUrl={avatar.url}+ backgroundColor={color}+ size={88}+ className="ring-4 ring-white"+ />+ <p className="mt-2 font-semibold">{avatar.name}</p>+ <p className="text-sm text-zinc-500">{role}</p>+ <div className="my-3 flex items-center gap-2 text-sm text-zinc-500">+ <ExpertAvatar+ name={avatar.name}+ avatarUrl={avatar.url}+ size={32}+ className="rounded-full border border-[#e3e3e3]"+ />+ Sidebar+ </div>+ </div>+ </div>+ );+ })}+ </div>+ );+ },+};diff --git a/autogpt_platform/frontend/src/components/molecules/ExpertAvatar/ExpertAvatar.test.tsx b/autogpt_platform/frontend/src/components/molecules/ExpertAvatar/ExpertAvatar.test.tsxindex 60cab4661e..bd667fa265 100644--- a/autogpt_platform/frontend/src/components/molecules/ExpertAvatar/ExpertAvatar.test.tsx+++ b/autogpt_platform/frontend/src/components/molecules/ExpertAvatar/ExpertAvatar.test.tsx@@ -4,13 +4,13 @@ import { ExpertAvatar } from "./ExpertAvatar";describe("ExpertAvatar saved appearance", () => {test("uses the saved clay identity after a rename and color change", () => {- const avatarUrl = "/autogpt-characters/v1.1/expert-maria/neutral/128.webp";+ const avatarUrl = "/autogpt-characters/v1.1/expert-mina/neutral/128.webp";const { rerender } = render(- <ExpertAvatar name="Maria" avatarUrl={avatarUrl} size={32} />,+ <ExpertAvatar name="Mina" avatarUrl={avatarUrl} size={32} />,);const image = screen.getByRole("img");expect(image.getAttribute("src")).toBe(- "/autogpt-characters/v1.1/expert-maria/neutral/32.webp",+ "/autogpt-characters/v1.1/expert-mina/neutral/32.webp",);rerender(<ExpertAvatar@@ -29,13 +29,13 @@ describe("ExpertAvatar saved appearance", () => {render(<ExpertAvatarname="My editor"- avatarUrl="/autogpt-characters/v1.1/expert-maria/neutral/128.webp"+ avatarUrl="/autogpt-characters/v1.1/expert-mina/neutral/128.webp"size={32}/>,);fireEvent.error(screen.getByRole("img"));expect(screen.getByRole("img").getAttribute("src")).toBe(- "/autogpt-characters/v1.1/expert-maria/neutral/32.png",+ "/autogpt-characters/v1.1/expert-mina/neutral/32.png",);fireEvent.error(screen.getByRole("img"));expect(screen.getByRole("img").textContent).toBe("MY");@@ -51,3 +51,17 @@ describe("ExpertAvatar saved appearance", () => {expect(container.querySelector('[src*="autogpt-characters"]')).toBeNull();});});++test("uses transparent managed artwork on a topic background", () => {+ render(+ <ExpertAvatar+ name="Mina"+ avatarUrl="/autogpt-characters/v1.1/expert-mina/neutral/128.webp"+ backgroundColor="#A5B09A"+ size={88}+ />,+ );+ expect(screen.getByRole("img").getAttribute("src")).toContain(+ "/experts/transparent/mina.webp",+ );+});diff --git a/autogpt_platform/frontend/src/components/molecules/ExpertAvatar/ExpertAvatar.tsx b/autogpt_platform/frontend/src/components/molecules/ExpertAvatar/ExpertAvatar.tsxindex 2b7778c7ad..b8de01f4de 100644--- a/autogpt_platform/frontend/src/components/molecules/ExpertAvatar/ExpertAvatar.tsx+++ b/autogpt_platform/frontend/src/components/molecules/ExpertAvatar/ExpertAvatar.tsx@@ -1,15 +1,14 @@-import { Robot01Icon } from "@hugeicons/core-free-icons";import {Avatar,AvatarFallback,AvatarImage,} from "@/components/atoms/Avatar/Avatar";-import { Icon } from "@/components/atoms/Icon/Icon";import type { AvatarStatus } from "@/components/molecules/NotionAvatar/status";-import { expertNotionConfig } from "@/components/molecules/NotionAvatar/helpers";-import { NotionAvatarImage } from "@/components/molecules/NotionAvatar/NotionAvatarImage";+import { StatusDot } from "@/components/molecules/NotionAvatar/StatusDot";+import { expertPastel } from "./colors";import { cn } from "@/lib/utils";-import { getManagedAvatar } from "./helpers";+import { getManagedAvatar, resolveCategoryAvatarUrl } from "./helpers";+import { ManagedExpertImage } from "./components/ManagedExpertImage";interface Props {@@ -19,20 +18,22 @@ interface Props {status?: AvatarStatus;size?: number;className?: string;+ backgroundColor?: string;+ category?: string | null;}export function ExpertAvatar({name,avatarUrl,- color,status = "idle",size = 40,className,+ backgroundColor,+ category,}: Props) {- const style = { width: size, height: size };- const managed = getManagedAvatar(avatarUrl, size);-- if (managed) {+ const src = resolveCategoryAvatarUrl(avatarUrl, category);+ const managed = getManagedAvatar(src, size);+ if (managed && !backgroundColor) {return (<ManagedExpertImagekey={`${managed.base}:${size}`}@@ -45,43 +46,48 @@ export function ExpertAvatar({/>);}-- if (!name || !avatarUrl) {- return (- <div- role="img"- aria-label={name ? `${name}, AI Expert` : "AI Expert"}- style={style}- className={cn(- "flex shrink-0 items-center justify-center rounded-full bg-zinc-100",- className,- )}- >- <Icon icon={Robot01Icon} size={size / 2} className="text-zinc-500" />- </div>- );- }-- const config = expertNotionConfig({ name, avatarUrl, color });- if (config) {- return (- <NotionAvatarImage- config={config}- status={status}- size={size}- title={name}- className={className}- />- );- }-return (- <Avatar- style={style}- className={cn("shrink-0 border border-stone-500", className)}+ <span+ style={{+ width: size,+ height: size,+ backgroundColor: backgroundColor+ ? expertPastel(backgroundColor)+ : undefined,+ }}+ className={cn(+ "relative inline-flex shrink-0",+ backgroundColor && "rounded-full",+ className,+ )}>- <AvatarImage src={avatarUrl ?? undefined} alt={name} />- <AvatarFallback>{name}</AvatarFallback>- </Avatar>+ <Avatar className="size-full rounded-[inherit]">+ <AvatarImage+ src={+ managed && backgroundColor+ ? `/experts/transparent/${managed.assetID.replace("expert-", "")}.webp`+ : src+ }+ alt={name ?? "Expert"}+ width={size}+ height={size}+ className="object-contain"+ />+ <AvatarFallback+ accessibleLabel={name ? `${name}, AI Expert` : "AI Expert"}+ >+ <span className="text-sm">+ {name?.slice(0, 1).toUpperCase() ?? "?"}+ </span>+ </AvatarFallback>+ </Avatar>+ {status !== "idle" && (+ <StatusDot+ status={status}+ size={Math.round(size * 0.34)}+ className="absolute -bottom-0.5 -right-0.5"+ />+ )}+ </span>);}diff --git a/autogpt_platform/frontend/src/components/molecules/ExpertAvatar/catalog.json b/autogpt_platform/frontend/src/components/molecules/ExpertAvatar/catalog.jsonnew file mode 100644index 0000000000..c020df4451--- /dev/null+++ b/autogpt_platform/frontend/src/components/molecules/ExpertAvatar/catalog.json@@ -0,0 +1,845 @@+{+ "revision": 5,+ "avatars": [+ {+ "id": "marketing",+ "label": "Terracotta",+ "hex": "#C45F36",+ "color": "orange-300",+ "url": "/experts/clay/v5/maria-marketing.png",+ "color_id": "terracotta"+ },+ {+ "id": "sales",+ "label": "Gold",+ "hex": "#D5AB24",+ "color": "amber-300",+ "url": "/experts/clay/v5/max-sales.png",+ "color_id": "ochre"+ },+ {+ "id": "finance",+ "label": "Sage",+ "hex": "#A5B09A",+ "color": "green-300",+ "url": "/experts/clay/v1/finance.png",+ "color_id": "sage"+ },+ {+ "id": "support",+ "label": "Rose",+ "hex": "#C45B88",+ "color": "rose-300",+ "url": "/experts/clay/v5/riley-support.png",+ "color_id": "coral"+ },+ {+ "id": "operations",+ "label": "Slate blue",+ "hex": "#98AFC6",+ "color": "sky-300",+ "url": "/experts/clay/v1/operations.png",+ "color_id": "slate"+ },+ {+ "id": "research",+ "label": "Olive",+ "hex": "#AAA77A",+ "color": "lime-300",+ "url": "/experts/clay/v1/research.png",+ "color_id": "olive"+ },+ {+ "id": "content",+ "label": "Warm stone",+ "hex": "#B5ADA0",+ "color": "amber-300",+ "url": "/experts/clay/v1/content.png",+ "color_id": "stone"+ },+ {+ "id": "development",+ "label": "Charcoal",+ "hex": "#777570",+ "color": "blue-300",+ "url": "/experts/clay/v1/development.png",+ "color_id": "charcoal"+ }+ ],+ "legacy": {+ "/experts/maria.svg": "/experts/clay/v5/maria-marketing.png",+ "/avatars/notion/12-5-13-13-3-9-2-11-0-0.fuchsia.svg": "/experts/clay/v5/jules-marketing.png",+ "/avatars/notion/15-10-3-12-4-6-22-0-0-0.indigo.svg": "/experts/clay/v2/nadia.png",+ "/avatars/notion/7-11-10-7-7-0-43-0-0-0.rose.svg": "/experts/clay/v5/remy-marketing.png",+ "/avatars/notion/10-8-2-6-1-0-51-9-0-0.violet.svg": "/autogpt-characters/v1.1/expert-mina/neutral/128.webp",+ "/avatars/notion/12-13-6-13-10-0-19-0-0-0.lime.svg": "/experts/clay/v4/theo-finance.png",+ "/avatars/notion/14-1-3-4-9-2-51-0-0-0.red.svg": "/experts/clay/v3/quinn.png",+ "/experts/max.svg": "/experts/clay/v5/max-sales.png",+ "/avatars/notion/12-5-0-1-13-0-29-0-0-0.green.svg": "/experts/clay/v2/devon.png",+ "/avatars/notion/11-3-7-5-7-7-57-0-0-0.emerald.svg": "/experts/clay/v5/riley-support.png",+ "/avatars/notion/12-9-10-2-11-0-1-0-0-0.yellow.svg": "/experts/clay/v5/jordan-sales.png",+ "/experts/frankie.svg": "/experts/clay/v2/frankie.png",+ "/avatars/notion/9-3-14-3-15-10-36-0-0-0.teal.svg": "/experts/clay/v4/harper-operations.png",+ "/avatars/notion/1-7-3-5-2-1-11-0-0-0.amber.svg": "/experts/clay/v4/vera-operations.png",+ "/avatars/notion/15-11-17-8-6-8-30-13-0-0.indigo.svg": "/experts/clay/v4/ellis-operations.png",+ "/avatars/notion/12-6-14-7-11-12-36-0-0-14.emerald.svg": "/experts/clay/v5/robin-support.png",+ "/avatars/notion/9-3-17-5-14-0-51-4-6-0.violet.svg": "/experts/clay/v5/anika-sales.png",+ "/avatars/notion/3-9-11-6-13-7-28-9-8-5.sky.svg": "/experts/clay/v4/alex-development.png",+ "/avatars/notion/4-2-8-9-12-3-17-6-5-11.amber.svg": "/experts/clay/v4/daniel-finance.png",+ "/avatars/notion/9-3-17-5-12-14-48-0-0-0.teal.svg": "/experts/clay/v4/sofia-operations.png",+ "/avatars/notion/10-8-15-9-6-0-41-3-0-0.orange.svg": "/experts/clay/v5/maya-marketing.png",+ "/avatars/notion/8-9-14-6-11-7-33-5-4-12.blue.svg": "/experts/clay/v4/james-operations.png",+ "/avatars/notion/13-2-5-3-7-0-0-0-0-0.orange.svg": "/experts/clay/v5/zara-marketing.png",+ "/avatars/notion/13-1-8-1-9-0-49-11-0-0.orange.svg": "/experts/clay/v5/sasha-support.png",+ "/avatars/notion/2-12-18-1-15-2-55-11-0-0.blue.svg": "/experts/clay/v4/priya-research.png",+ "/avatars/notion/11-7-17-4-4-0-30-0-0-0.amber.svg": "/experts/clay/v5/marco-marketing.png",+ "/avatars/notion/2-2-15-8-2-0-27-0-0-0.sky.svg": "/experts/clay/v5/noor-marketing.png",+ "/avatars/notion/12-6-14-7-11-3-36-0-0-0.emerald.svg": "/experts/clay/v2/casey.png",+ "/avatars/notion/4-1-19-1-11-0-34-5-0-0.teal.svg": "/experts/clay/v4/ines-operations.png",+ "/avatars/notion/0-13-13-2-0-0-36-0-0-0.rose.svg": "/experts/clay/v5/omar-sales.png",+ "/avatars/notion/1-11-13-6-2-3-21-0-0-0.cyan.svg": "/experts/clay/v4/lena-operations.png",+ "/avatars/notion/6-0-15-1-9-0-58-11-0-0.violet.svg": "/experts/clay/v5/kai-support.png"+ },+ "colors": [+ {+ "id": "terracotta",+ "label": "Terracotta",+ "hex": "#C45F36"+ },+ {+ "id": "ochre",+ "label": "Gold",+ "hex": "#D5AB24"+ },+ {+ "id": "sage",+ "label": "Sage",+ "hex": "#A5B09A"+ },+ {+ "id": "coral",+ "label": "Rose",+ "hex": "#C45B88"+ },+ {+ "id": "slate",+ "label": "Slate blue",+ "hex": "#98AFC6"+ },+ {+ "id": "olive",+ "label": "Olive",+ "hex": "#AAA77A"+ },+ {+ "id": "stone",+ "label": "Warm stone",+ "hex": "#B5ADA0"+ },+ {+ "id": "charcoal",+ "label": "Charcoal",+ "hex": "#777570"+ },+ {+ "id": "rust",+ "label": "Rust",+ "hex": "#A94F36"+ },+ {+ "id": "rose",+ "label": "Dusty rose",+ "hex": "#C07F91"+ },+ {+ "id": "seaglass",+ "label": "Sea glass",+ "hex": "#7DB5A9"+ },+ {+ "id": "pine",+ "label": "Pine",+ "hex": "#4F7968"+ },+ {+ "id": "denim",+ "label": "Denim",+ "hex": "#607FAD"+ },+ {+ "id": "sand",+ "label": "Sand",+ "hex": "#D3BA94"+ },+ {+ "id": "bluegray",+ "label": "Blue gray",+ "hex": "#4B6577"+ },+ {+ "id": "redclay",+ "label": "Red clay",+ "hex": "#A65D5D"+ },+ {+ "id": "apricot",+ "label": "Apricot",+ "hex": "#D6A07C"+ },+ {+ "id": "moss",+ "label": "Moss",+ "hex": "#718151"+ },+ {+ "id": "chalk",+ "label": "Chalk",+ "hex": "#D5CDBB"+ },+ {+ "id": "copper",+ "label": "Copper",+ "hex": "#B07A4D"+ },+ {+ "id": "mist",+ "label": "Mist blue",+ "hex": "#B1C8D3"+ },+ {+ "id": "ink",+ "label": "Ink",+ "hex": "#454F58"+ },+ {+ "id": "umber",+ "label": "Umber",+ "hex": "#89674F"+ },+ {+ "id": "lagoon",+ "label": "Lagoon",+ "hex": "#558F94"+ },+ {+ "id": "limestone",+ "label": "Yellow stone",+ "hex": "#C5BD79"+ },+ {+ "id": "fern",+ "label": "Fern",+ "hex": "#8DAF7A"+ }+ ],+ "identities": [+ {+ "id": "maria",+ "name": "Maria",+ "url": "/experts/clay/v5/maria-marketing.png",+ "color_id": "terracotta",+ "previous_url": "/autogpt-characters/v1.1/expert-maria/neutral/128.webp",+ "primary_category": "marketing",+ "variants": {+ "marketing": {+ "url": "/experts/clay/v5/maria-marketing.png",+ "hex": "#C45F36"+ },+ "content": {+ "url": "/experts/clay/v4/maria-content.png",+ "hex": "#B5ADA0"+ }+ },+ "previous_urls": [+ "/autogpt-characters/v1.1/expert-maria/neutral/128.webp"+ ]+ },+ {+ "id": "jules",+ "name": "Jules",+ "url": "/experts/clay/v5/jules-marketing.png",+ "color_id": "terracotta",+ "previous_url": "/experts/clay/v1/marketing.png",+ "previous_urls": [+ "/experts/clay/v2/jules.png",+ "/experts/clay/v3/jules.png"+ ],+ "primary_category": "marketing",+ "variants": {+ "marketing": {+ "url": "/experts/clay/v5/jules-marketing.png",+ "hex": "#CB724E"+ },+ "content": {+ "url": "/experts/clay/v4/jules-content.png",+ "hex": "#BEB7AB"+ }+ }+ },+ {+ "id": "nadia",+ "name": "Nadia",+ "url": "/experts/clay/v2/nadia.png",+ "color_id": "olive",+ "previous_url": "/experts/clay/v1/research.png",+ "primary_category": "research",+ "variants": {+ "research": {+ "url": "/experts/clay/v2/nadia.png",+ "hex": "#AAA77A"+ },+ "marketing": {+ "url": "/experts/clay/v5/nadia-marketing.png",+ "hex": "#AC5430"+ }+ },+ "previous_urls": ["/experts/clay/v4/nadia-marketing.png"]+ },+ {+ "id": "remy",+ "name": "Remy",+ "url": "/experts/clay/v5/remy-marketing.png",+ "color_id": "terracotta",+ "previous_url": "/experts/clay/v1/marketing.png",+ "previous_urls": [+ "/experts/clay/v2/remy.png",+ "/experts/clay/v3/remy.png",+ "/experts/clay/v4/remy-marketing.png"+ ],+ "primary_category": "marketing",+ "variants": {+ "marketing": {+ "url": "/experts/clay/v5/remy-marketing.png",+ "hex": "#CF7C5A"+ }+ }+ },+ {+ "id": "mina",+ "name": "Mina",+ "url": "/autogpt-characters/v1.1/expert-mina/neutral/128.webp",+ "color_id": "sage",+ "previous_url": "/autogpt-characters/v1.1/expert-mina/neutral/128.webp",+ "primary_category": "finance",+ "variants": {+ "finance": {+ "url": "/autogpt-characters/v1.1/expert-mina/neutral/128.webp",+ "hex": "#A5B09A"+ },+ "operations": {+ "url": "/experts/clay/v4/mina-operations.png",+ "hex": "#98AFC6"+ }+ },+ "previous_urls": []+ },+ {+ "id": "theo",+ "name": "Theo",+ "url": "/experts/clay/v4/theo-finance.png",+ "color_id": "sage",+ "previous_url": "/experts/clay/v1/finance.png",+ "primary_category": "finance",+ "variants": {+ "finance": {+ "url": "/experts/clay/v4/theo-finance.png",+ "hex": "#B0B9A6"+ },+ "operations": {+ "url": "/experts/clay/v4/theo-operations.png",+ "hex": "#A4B9CD"+ }+ },+ "previous_urls": ["/experts/clay/v2/theo.png"]+ },+ {+ "id": "quinn",+ "name": "Quinn",+ "url": "/experts/clay/v3/quinn.png",+ "color_id": "olive",+ "previous_url": "/experts/clay/v1/research.png",+ "previous_urls": ["/experts/clay/v2/quinn.png"],+ "primary_category": "research",+ "variants": {+ "research": {+ "url": "/experts/clay/v3/quinn.png",+ "hex": "#AAA77A"+ },+ "finance": {+ "url": "/experts/clay/v4/quinn-finance.png",+ "hex": "#8B9481"+ }+ }+ },+ {+ "id": "max",+ "name": "Max",+ "url": "/experts/clay/v5/max-sales.png",+ "color_id": "ochre",+ "previous_url": "/experts/clay/v1/sales.png",+ "primary_category": "sales",+ "variants": {+ "sales": {+ "url": "/experts/clay/v5/max-sales.png",+ "hex": "#D5AB24"+ },+ "operations": {+ "url": "/experts/clay/v4/max-operations.png",+ "hex": "#8093A6"+ }+ },+ "previous_urls": ["/experts/clay/v2/max.png"]+ },+ {+ "id": "devon",+ "name": "Devon",+ "url": "/experts/clay/v2/devon.png",+ "color_id": "charcoal",+ "previous_url": "/experts/clay/v1/development.png",+ "primary_category": "development",+ "variants": {+ "development": {+ "url": "/experts/clay/v2/devon.png",+ "hex": "#777570"+ }+ },+ "previous_urls": []+ },+ {+ "id": "riley",+ "name": "Riley",+ "url": "/experts/clay/v5/riley-support.png",+ "color_id": "coral",+ "previous_url": "/experts/clay/v1/support.png",+ "primary_category": "support",+ "variants": {+ "support": {+ "url": "/experts/clay/v5/riley-support.png",+ "hex": "#C45B88"+ }+ },+ "previous_urls": ["/experts/clay/v2/riley.png"]+ },+ {+ "id": "jordan",+ "name": "Jordan",+ "url": "/experts/clay/v5/jordan-sales.png",+ "color_id": "ochre",+ "previous_url": "/experts/clay/v1/sales.png",+ "primary_category": "sales",+ "variants": {+ "sales": {+ "url": "/experts/clay/v5/jordan-sales.png",+ "hex": "#DAB53E"+ }+ },+ "previous_urls": [+ "/experts/clay/v2/jordan.png",+ "/experts/clay/v4/jordan-sales.png"+ ]+ },+ {+ "id": "frankie",+ "name": "Frankie",+ "url": "/experts/clay/v2/frankie.png",+ "color_id": "slate",+ "previous_url": "/experts/clay/v1/operations.png",+ "primary_category": "operations",+ "variants": {+ "operations": {+ "url": "/experts/clay/v2/frankie.png",+ "hex": "#98AFC6"+ },+ "support": {+ "url": "/experts/clay/v5/frankie-support.png",+ "hex": "#CB6F96"+ }+ },+ "previous_urls": ["/experts/clay/v4/frankie-support.png"]+ },+ {+ "id": "harper",+ "name": "Harper",+ "url": "/experts/clay/v4/harper-operations.png",+ "color_id": "slate",+ "previous_url": "/experts/clay/v1/operations.png",+ "previous_urls": [+ "/experts/clay/v2/harper.png",+ "/experts/clay/v3/harper.png"+ ],+ "primary_category": "operations",+ "variants": {+ "operations": {+ "url": "/experts/clay/v4/harper-operations.png",+ "hex": "#8CA1B6"+ }+ }+ },+ {+ "id": "vera",+ "name": "Vera",+ "url": "/experts/clay/v4/vera-operations.png",+ "color_id": "slate",+ "previous_url": "/experts/clay/v1/operations.png",+ "previous_urls": [+ "/experts/clay/v2/vera.png",+ "/experts/clay/v3/vera.png"+ ],+ "primary_category": "operations",+ "variants": {+ "operations": {+ "url": "/experts/clay/v4/vera-operations.png",+ "hex": "#98AFC6"+ },+ "finance": {+ "url": "/experts/clay/v4/vera-finance.png",+ "hex": "#B7C0AE"+ }+ }+ },+ {+ "id": "ellis",+ "name": "Ellis",+ "url": "/experts/clay/v4/ellis-operations.png",+ "color_id": "slate",+ "previous_url": "/experts/clay/v1/operations.png",+ "primary_category": "operations",+ "variants": {+ "operations": {+ "url": "/experts/clay/v4/ellis-operations.png",+ "hex": "#A4B9CD"+ }+ },+ "previous_urls": ["/experts/clay/v2/ellis.png"]+ },+ {+ "id": "robin",+ "name": "Robin",+ "url": "/experts/clay/v5/robin-support.png",+ "color_id": "coral",+ "previous_url": "/experts/clay/v1/support.png",+ "primary_category": "support",+ "variants": {+ "support": {+ "url": "/experts/clay/v5/robin-support.png",+ "hex": "#AC5078"+ },+ "operations": {+ "url": "/experts/clay/v4/robin-operations.png",+ "hex": "#8093A6"+ }+ },+ "previous_urls": [+ "/experts/clay/v2/robin.png",+ "/experts/clay/v4/robin-support.png"+ ]+ },+ {+ "id": "anika",+ "name": "Anika",+ "url": "/experts/clay/v5/anika-sales.png",+ "color_id": "ochre",+ "previous_url": "/experts/clay/v1/sales.png",+ "previous_urls": [+ "/experts/clay/v2/anika.png",+ "/experts/clay/v3/anika.png",+ "/experts/clay/v4/anika-sales.png"+ ],+ "primary_category": "sales",+ "variants": {+ "sales": {+ "url": "/experts/clay/v5/anika-sales.png",+ "hex": "#BB9620"+ },+ "operations": {+ "url": "/experts/clay/v4/anika-operations.png",+ "hex": "#ADBFD1"+ }+ }+ },+ {+ "id": "alex",+ "name": "Alex",+ "url": "/experts/clay/v4/alex-development.png",+ "color_id": "charcoal",+ "previous_url": "/experts/clay/v1/development.png",+ "primary_category": "development",+ "variants": {+ "development": {+ "url": "/experts/clay/v4/alex-development.png",+ "hex": "#878681"+ },+ "research": {+ "url": "/experts/clay/v4/alex-research.png",+ "hex": "#8F8C66"+ }+ },+ "previous_urls": ["/experts/clay/v2/alex.png"]+ },+ {+ "id": "daniel",+ "name": "Daniel",+ "url": "/experts/clay/v4/daniel-finance.png",+ "color_id": "sage",+ "previous_url": "/experts/clay/v1/finance.png",+ "primary_category": "finance",+ "variants": {+ "finance": {+ "url": "/experts/clay/v4/daniel-finance.png",+ "hex": "#98A28E"+ },+ "research": {+ "url": "/experts/clay/v4/daniel-research.png",+ "hex": "#BBB995"+ }+ },+ "previous_urls": ["/experts/clay/v2/daniel.png"]+ },+ {+ "id": "sofia",+ "name": "Sofia",+ "url": "/experts/clay/v4/sofia-operations.png",+ "color_id": "slate",+ "previous_url": "/experts/clay/v1/operations.png",+ "primary_category": "operations",+ "variants": {+ "operations": {+ "url": "/experts/clay/v4/sofia-operations.png",+ "hex": "#8CA1B6"+ }+ },+ "previous_urls": ["/experts/clay/v2/sofia.png"]+ },+ {+ "id": "maya",+ "name": "Maya",+ "url": "/experts/clay/v5/maya-marketing.png",+ "color_id": "terracotta",+ "previous_url": "/experts/clay/v1/marketing.png",+ "primary_category": "marketing",+ "variants": {+ "marketing": {+ "url": "/experts/clay/v5/maya-marketing.png",+ "hex": "#B85933"+ },+ "content": {+ "url": "/experts/clay/v4/maya-content.png",+ "hex": "#989186"+ }+ },+ "previous_urls": [+ "/experts/clay/v2/maya.png",+ "/experts/clay/v4/maya-marketing.png"+ ]+ },+ {+ "id": "james",+ "name": "James",+ "url": "/experts/clay/v4/james-operations.png",+ "color_id": "slate",+ "previous_url": "/experts/clay/v1/operations.png",+ "primary_category": "operations",+ "variants": {+ "operations": {+ "url": "/experts/clay/v4/james-operations.png",+ "hex": "#98AFC6"+ },+ "finance": {+ "url": "/experts/clay/v4/james-finance.png",+ "hex": "#A5B09A"+ }+ },+ "previous_urls": ["/experts/clay/v2/james.png"]+ },+ {+ "id": "zara",+ "name": "Zara",+ "url": "/experts/clay/v5/zara-marketing.png",+ "color_id": "terracotta",+ "previous_url": "/experts/clay/v1/marketing.png",+ "primary_category": "marketing",+ "variants": {+ "marketing": {+ "url": "/experts/clay/v5/zara-marketing.png",+ "hex": "#C45F36"+ },+ "sales": {+ "url": "/experts/clay/v5/zara-sales.png",+ "hex": "#DDBA4B"+ }+ },+ "previous_urls": [+ "/experts/clay/v2/zara.png",+ "/experts/clay/v4/zara-marketing.png",+ "/experts/clay/v4/zara-sales.png"+ ]+ },+ {+ "id": "sasha",+ "name": "Sasha",+ "url": "/experts/clay/v5/sasha-support.png",+ "color_id": "coral",+ "previous_url": "/experts/clay/v1/support.png",+ "primary_category": "support",+ "variants": {+ "support": {+ "url": "/experts/clay/v5/sasha-support.png",+ "hex": "#CF799D"+ }+ },+ "previous_urls": ["/experts/clay/v2/sasha.png"]+ },+ {+ "id": "priya",+ "name": "Priya",+ "url": "/experts/clay/v4/priya-research.png",+ "color_id": "olive",+ "previous_url": "/experts/clay/v1/research.png",+ "primary_category": "research",+ "variants": {+ "research": {+ "url": "/experts/clay/v4/priya-research.png",+ "hex": "#9C9A70"+ },+ "operations": {+ "url": "/experts/clay/v4/priya-operations.png",+ "hex": "#A4B9CD"+ }+ },+ "previous_urls": ["/experts/clay/v2/priya.png"]+ },+ {+ "id": "marco",+ "name": "Marco",+ "url": "/experts/clay/v5/marco-marketing.png",+ "color_id": "terracotta",+ "previous_url": "/experts/clay/v1/marketing.png",+ "previous_urls": [+ "/experts/clay/v2/marco.png",+ "/experts/clay/v3/marco.png",+ "/experts/clay/v4/marco-marketing.png"+ ],+ "primary_category": "marketing",+ "variants": {+ "marketing": {+ "url": "/experts/clay/v5/marco-marketing.png",+ "hex": "#CB724E"+ }+ }+ },+ {+ "id": "noor",+ "name": "Noor",+ "url": "/experts/clay/v5/noor-marketing.png",+ "color_id": "terracotta",+ "previous_url": "/experts/clay/v1/marketing.png",+ "primary_category": "marketing",+ "variants": {+ "marketing": {+ "url": "/experts/clay/v5/noor-marketing.png",+ "hex": "#AC5430"+ },+ "content": {+ "url": "/experts/clay/v4/noor-content.png",+ "hex": "#C4BDB3"+ }+ },+ "previous_urls": [+ "/experts/clay/v2/noor.png",+ "/experts/clay/v4/noor-marketing.png"+ ]+ },+ {+ "id": "casey",+ "name": "Casey",+ "url": "/experts/clay/v2/casey.png",+ "color_id": "charcoal",+ "previous_url": "/experts/clay/v1/development.png",+ "primary_category": "development",+ "variants": {+ "development": {+ "url": "/experts/clay/v2/casey.png",+ "hex": "#777570"+ }+ },+ "previous_urls": []+ },+ {+ "id": "ines",+ "name": "Ines",+ "url": "/experts/clay/v4/ines-operations.png",+ "color_id": "slate",+ "previous_url": "/experts/clay/v1/operations.png",+ "primary_category": "operations",+ "variants": {+ "operations": {+ "url": "/experts/clay/v4/ines-operations.png",+ "hex": "#8093A6"+ }+ },+ "previous_urls": ["/experts/clay/v2/ines.png"]+ },+ {+ "id": "omar",+ "name": "Omar",+ "url": "/experts/clay/v5/omar-sales.png",+ "color_id": "ochre",+ "previous_url": "/experts/clay/v1/sales.png",+ "primary_category": "sales",+ "variants": {+ "sales": {+ "url": "/experts/clay/v5/omar-sales.png",+ "hex": "#C8A122"+ },+ "operations": {+ "url": "/experts/clay/v4/omar-operations.png",+ "hex": "#ADBFD1"+ }+ },+ "previous_urls": [+ "/experts/clay/v2/omar.png",+ "/experts/clay/v4/omar-sales.png"+ ]+ },+ {+ "id": "lena",+ "name": "Lena",+ "url": "/experts/clay/v4/lena-operations.png",+ "color_id": "slate",+ "previous_url": "/experts/clay/v1/operations.png",+ "previous_urls": [+ "/experts/clay/v2/lena.png",+ "/experts/clay/v3/lena.png"+ ],+ "primary_category": "operations",+ "variants": {+ "operations": {+ "url": "/experts/clay/v4/lena-operations.png",+ "hex": "#8CA1B6"+ }+ }+ },+ {+ "id": "kai",+ "name": "Kai",+ "url": "/experts/clay/v5/kai-support.png",+ "color_id": "coral",+ "previous_url": "/experts/clay/v1/support.png",+ "primary_category": "support",+ "variants": {+ "support": {+ "url": "/experts/clay/v5/kai-support.png",+ "hex": "#B85680"+ },+ "operations": {+ "url": "/experts/clay/v4/kai-operations.png",+ "hex": "#98AFC6"+ }+ },+ "previous_urls": [+ "/experts/clay/v2/kai.png",+ "/experts/clay/v4/kai-support.png"+ ]+ }+ ]+}diff --git a/autogpt_platform/frontend/src/components/molecules/ExpertAvatar/category-avatars.test.ts b/autogpt_platform/frontend/src/components/molecules/ExpertAvatar/category-avatars.test.tsnew file mode 100644index 0000000000..2b01b1197f--- /dev/null+++ b/autogpt_platform/frontend/src/components/molecules/ExpertAvatar/category-avatars.test.ts@@ -0,0 +1,24 @@+import { expect, test } from "vitest";+import { resolveCategoryAvatarUrl } from "./helpers";++test("a category variant uses the same expert's matching artwork", () => {+ expect(+ resolveCategoryAvatarUrl("/experts/clay/v3/quinn.png", "finance"),+ ).toBe("/experts/clay/v4/quinn-finance.png");+ expect(+ resolveCategoryAvatarUrl("/experts/clay/v3/quinn.png", "research"),+ ).toBe("/experts/clay/v3/quinn.png");+ expect(+ resolveCategoryAvatarUrl("/experts/clay/v3/quinn.png", "support"),+ ).toBe("/experts/clay/v3/quinn.png");+});++test("uploads and generated URLs keep their saved appearance", () => {+ for (const url of [+ "https://cdn.test/my-avatar.png",+ "/api/store/media/custom.png",+ "/experts/clay/v1/finance.png",+ ]) {+ expect(resolveCategoryAvatarUrl(url, "marketing")).toBe(url);+ }+});diff --git a/autogpt_platform/frontend/src/components/molecules/ExpertAvatar/colors.test.ts b/autogpt_platform/frontend/src/components/molecules/ExpertAvatar/colors.test.tsnew file mode 100644index 0000000000..27f25019bc--- /dev/null+++ b/autogpt_platform/frontend/src/components/molecules/ExpertAvatar/colors.test.ts@@ -0,0 +1,24 @@+import { expect, test } from "vitest";+import { getExpertTopicHex } from "./colors";++test.each([+ ["Marketing", "#C45F36"],+ ["Social & Content Repurposing", "#C45F36"],+ ["Sales", "#D5AB24"],+ ["Operations", "#98AFC6"],+ ["Finance", "#A5B09A"],+ ["Research", "#AAA77A"],+ ["Development", "#777570"],+ ["Support", "#C45B88"],+ ["Content", "#B5ADA0"],+ ["General purpose", "#B5ADA0"],+ ["Head of AI", "#B6A4C8"],+ ["Code Review & QA", "#777570"],+])("uses the design-system color for %s", (role, hex) => {+ expect(getExpertTopicHex(role)).toBe(hex);+});++test("stored categories take priority over a broad role guess", () => {+ expect(getExpertTopicHex("Marketing writer", ["Content"])).toBe("#B5ADA0");+ expect(getExpertTopicHex("Unknown", ["other", "finance"])).toBe("#A5B09A");+});diff --git a/autogpt_platform/frontend/src/components/molecules/ExpertAvatar/colors.ts b/autogpt_platform/frontend/src/components/molecules/ExpertAvatar/colors.tsnew file mode 100644index 0000000000..0ce18fca4a--- /dev/null+++ b/autogpt_platform/frontend/src/components/molecules/ExpertAvatar/colors.ts@@ -0,0 +1,47 @@+import catalog from "./catalog.json";++const TOPIC_PATTERNS: Array<[RegExp, string]> = [+ [/head of ai/i, "otto"],+ [/finance|invoic|bookkeep|fundrais|investor/i, "finance"],+ [/research|intelligence|data|analysis/i, "research"],+ [/development|code|dependency|security|engineering|qa/i, "development"],+ [/sales|deal desk|proposal|revops|crm|partnership/i, "sales"],+ [/support|customer|help desk|retention/i, "support"],+ [+ /marketing|social|seo|brand|growth|email|lifecycle|go.to.market|paid ads|performance|communications|\bpr\b/i,+ "marketing",+ ],+ [+ /ops|operations|recruit|hiring|vendor|procurement|contracts|product|people|privacy|compliance|assistant/i,+ "operations",+ ],+ [/content|writing|editor/i, "content"],+];++/** Category hues stay fixed; generated body colors can vary within the roster. */+export function getCategoryHex(+ category: string | null | undefined,+): string | undefined {+ return catalog.avatars.find((avatar) => avatar.id === category?.toLowerCase())+ ?.hex;+}++export function getExpertTopicHex(+ role: string | null | undefined,+ categories?: string[],+): string {+ const stored = categories?.find((category) =>+ catalog.avatars.some((avatar) => avatar.id === category.toLowerCase()),+ );+ const category =+ stored?.toLowerCase() ??+ TOPIC_PATTERNS.find(([pattern]) => pattern.test(role ?? ""))?.[1];+ if (category === "otto") return "#B6A4C8";+ return (+ catalog.avatars.find((avatar) => avatar.id === category)?.hex ?? "#B5ADA0"+ );+}++export function expertPastel(hex: string): string {+ return `color-mix(in srgb, ${hex} 24%, white)`;+}diff --git a/autogpt_platform/frontend/src/components/molecules/ExpertAvatar/helpers.test.ts b/autogpt_platform/frontend/src/components/molecules/ExpertAvatar/helpers.test.tsnew file mode 100644index 0000000000..7353f78f78--- /dev/null+++ b/autogpt_platform/frontend/src/components/molecules/ExpertAvatar/helpers.test.ts@@ -0,0 +1,28 @@+import { describe, expect, it } from "vitest";+import { resolveExpertAvatarUrl } from "./helpers";++describe("expert PNG avatars", () => {+ it("maps stored roster URLs without depending on the current name", () => {+ expect(resolveExpertAvatarUrl("/experts/maria.svg")).toBe(+ "/experts/clay/v5/maria-marketing.png",+ );+ });++ it("preserves uploads and saved PNG choices", () => {+ for (const url of [+ "https://cdn.example/upload.png",+ "/api/store/media/user/images/custom.png",+ "/avatars/mine.svg",+ "/experts/clay/v1/finance.png",+ ]) {+ expect(resolveExpertAvatarUrl(url)).toBe(url);+ }+ });++ it("uses a warm-stone default for missing and custom legacy avatars", () => {+ expect(resolveExpertAvatarUrl(null)).toBe("/experts/clay/v1/content.png");+ expect(resolveExpertAvatarUrl("/avatars/notion/1-2-3.violet.svg")).toBe(+ "/experts/clay/v1/content.png",+ );+ });+});diff --git a/autogpt_platform/frontend/src/components/molecules/ExpertAvatar/helpers.ts b/autogpt_platform/frontend/src/components/molecules/ExpertAvatar/helpers.tsindex b674397d74..666b2ce816 100644--- a/autogpt_platform/frontend/src/components/molecules/ExpertAvatar/helpers.ts+++ b/autogpt_platform/frontend/src/components/molecules/ExpertAvatar/helpers.ts@@ -1,3 +1,51 @@+import catalog from "./catalog.json";++export const EXPERT_AVATARS = catalog.avatars;+export const EXPERT_AVATAR_COLORS = catalog.colors;+type BuiltinAvatar = {+ id: string;+ name: string;+ url: string;+ color_id: string;+ previous_url: string;+ previous_urls: readonly string[];+ primary_category: string;+ variants: Partial<Record<string, { url: string; hex: string }>>;+};++export const BUILTIN_EXPERT_AVATARS: readonly BuiltinAvatar[] =+ catalog.identities;+export const DEFAULT_EXPERT_AVATAR_URL = "/experts/clay/v1/content.png";++export function resolveExpertAvatarUrl(url: string | null | undefined): string {+ if (!url) return DEFAULT_EXPERT_AVATAR_URL;+ const legacy: Record<string, string> = catalog.legacy;+ if (legacy[url]) return legacy[url];+ if (url.startsWith("/avatars/notion/") && url.endsWith(".svg")) {+ return DEFAULT_EXPERT_AVATAR_URL;+ }+ return url;+}++export function resolveCategoryAvatarUrl(+ url: string | null | undefined,+ category?: string | null,+): string {+ const resolved = resolveExpertAvatarUrl(url);+ const identity = BUILTIN_EXPERT_AVATARS.find(+ (avatar) =>+ avatar.url === resolved ||+ avatar.previous_urls?.includes(resolved) ||+ Object.values(avatar.variants).some(+ (variant) => variant?.url === resolved,+ ),+ );+ if (!identity) return resolved;+ if (category)+ return identity.variants[category.toLowerCase()]?.url ?? identity.url;+ return identity.previous_urls.includes(resolved) ? identity.url : resolved;+}+import manifest from "../../../../public/autogpt-characters/manifest.json";export function getManagedAvatar(avatarUrl: string | null, size: number) {diff --git a/autogpt_platform/frontend/src/components/molecules/ExpertAvatarPicker/ExpertAvatarPicker.stories.tsx b/autogpt_platform/frontend/src/components/molecules/ExpertAvatarPicker/ExpertAvatarPicker.stories.tsxnew file mode 100644index 0000000000..091ecef321--- /dev/null+++ b/autogpt_platform/frontend/src/components/molecules/ExpertAvatarPicker/ExpertAvatarPicker.stories.tsx@@ -0,0 +1,45 @@+import type { Meta, StoryObj } from "@storybook/nextjs";+import { delay, http, HttpResponse } from "msw";+import { fn } from "storybook/test";+import { ExpertAvatarPicker } from "./ExpertAvatarPicker";++const meta = {+ title: "Molecules/ExpertAvatarPicker",+ component: ExpertAvatarPicker,+ args: { name: "Nova", color: null, onPick: fn() },+ decorators: [+ (Story) => (+ <div className="w-full max-w-lg">+ <Story />+ </div>+ ),+ ],+ parameters: {+ msw: {+ handlers: [+ http.post("*/api/experts/avatars/generations", () =>+ HttpResponse.json(+ { id: "preview", status: "pending" },+ { status: 202 },+ ),+ ),+ http.get("*/api/experts/avatars/generations/preview", async () => {+ await delay(3000);+ return HttpResponse.json({+ id: "preview",+ status: "complete",+ avatar_url: "/experts/clay/v1/finance.png",+ });+ }),+ ],+ },+ },+} satisfies Meta<typeof ExpertAvatarPicker>;++export default meta;+type Story = StoryObj<typeof meta>;++export const Catalog: Story = {};+export const ExistingAvatar: Story = {+ args: { avatarUrl: "/experts/clay/v1/marketing.png", color: "rose-300" },+};diff --git a/autogpt_platform/frontend/src/components/molecules/ExpertAvatarPicker/ExpertAvatarPicker.test.tsx b/autogpt_platform/frontend/src/components/molecules/ExpertAvatarPicker/ExpertAvatarPicker.test.tsxnew file mode 100644index 0000000000..97026fb9c5--- /dev/null+++ b/autogpt_platform/frontend/src/components/molecules/ExpertAvatarPicker/ExpertAvatarPicker.test.tsx@@ -0,0 +1,229 @@+import { render, screen, waitFor } from "@/tests/integrations/test-utils";+import { server } from "@/mocks/mock-server";+import { http, HttpResponse } from "msw";+import userEvent from "@testing-library/user-event";+import { expect, test, vi } from "vitest";+import { ExpertAvatarPicker } from "./ExpertAvatarPicker";++test("generates a preview and only saves the selected PNG after confirmation", async () => {+ const onPick = vi.fn();+ const requests: unknown[] = [];+ server.use(+ http.post("*/api/experts/avatars/generations", async ({ request }) => {+ requests.push(await request.json());+ return HttpResponse.json(+ { id: "job-1", status: "pending", created_at: Date.now() / 1000 },+ { status: 202 },+ );+ }),+ http.get("*/api/experts/avatars/generations/job-1", () =>+ HttpResponse.json({+ id: "job-1",+ status: "complete",+ avatar_url: "https://cdn.test/generated.png",+ created_at: Date.now() / 1000,+ }),+ ),+ );+ render(<ExpertAvatarPicker name="Nova" color={null} onPick={onPick} />);+ await userEvent.click(screen.getByRole("button", { name: "Sage" }));+ await userEvent.click(+ screen.getByRole("button", { name: "Generate with AI" }),+ );+ await waitFor(() =>+ expect(+ screen.getByRole("img", { name: "Nova" }).getAttribute("src"),+ ).toContain("generated.png"),+ );+ expect(requests).toEqual([+ {+ category: "finance",+ shade: "standard",+ shape: "pebble",+ base: "compact",+ tilt: "level",+ inlay: "sweep",+ accent_placement: "body",+ accent_count: "one",+ expression: "friendly",+ },+ ]);+ expect(onPick).not.toHaveBeenCalled();+ await userEvent.click(+ screen.getByRole("button", { name: "Use this avatar" }),+ );+ expect(onPick).toHaveBeenCalledWith(+ "https://cdn.test/generated.png",+ "green-300",+ );+});++test("a failed job keeps the current avatar and the catalog remains usable", async () => {+ const onPick = vi.fn();+ server.use(+ http.post("*/api/experts/avatars/generations", () =>+ HttpResponse.json(+ { id: "job-2", status: "pending", created_at: Date.now() / 1000 },+ { status: 202 },+ ),+ ),+ http.get("*/api/experts/avatars/generations/job-2", () =>+ HttpResponse.json({+ id: "job-2",+ status: "failed",+ error: "Could not generate avatar",+ created_at: Date.now() / 1000,+ }),+ ),+ );+ render(+ <ExpertAvatarPicker+ name="Nova"+ color="rose-300"+ avatarUrl="https://cdn.test/existing.png"+ onPick={onPick}+ />,+ );+ await userEvent.click(+ screen.getByRole("button", { name: "Generate with AI" }),+ );+ expect((await screen.findByRole("alert")).textContent).toContain(+ "Could not generate avatar",+ );+ expect(+ screen.getByRole("img", { name: "Nova" }).getAttribute("src"),+ ).toContain("existing.png");+ expect(onPick).not.toHaveBeenCalled();+ await userEvent.click(screen.getByRole("button", { name: "Gold" }));+ await waitFor(() => expect(screen.queryByRole("alert")).toBeNull());+ await userEvent.click(+ screen.getByRole("button", { name: "Use this avatar" }),+ );+ expect(onPick).toHaveBeenCalledWith(+ "/experts/clay/v5/max-sales.png",+ "amber-300",+ );+});++test("uploads remain previews until chosen", async () => {+ const onPick = vi.fn();+ server.use(+ http.post("*/api/store/submissions/media", () =>+ HttpResponse.json("https://cdn.test/upload.png"),+ ),+ );+ render(<ExpertAvatarPicker name="Nova" color="rose-300" onPick={onPick} />);+ await userEvent.upload(+ screen.getByLabelText("Upload avatar"),+ new File(["png"], "avatar.png", { type: "image/png" }),+ );+ await waitFor(() =>+ expect(+ screen.getByRole("img", { name: "Nova" }).getAttribute("src"),+ ).toContain("upload.png"),+ );+ expect(onPick).not.toHaveBeenCalled();+ await userEvent.click(+ screen.getByRole("button", { name: "Use this avatar" }),+ );+ expect(onPick).toHaveBeenCalledWith(+ "https://cdn.test/upload.png",+ "rose-300",+ );+});++test("rejects oversized uploads before making a request", async () => {+ const upload = vi.fn();+ server.use(+ http.post("*/api/store/submissions/media", () => {+ upload();+ return HttpResponse.json("https://cdn.test/upload.png");+ }),+ );+ render(<ExpertAvatarPicker name="Nova" color={null} onPick={vi.fn()} />);+ const file = new File(["png"], "avatar.png", { type: "image/png" });+ Object.defineProperty(file, "size", { value: 6 * 1024 * 1024 });+ await userEvent.upload(screen.getByLabelText("Upload avatar"), file);+ expect((await screen.findByRole("alert")).textContent).toContain("under 5MB");+ expect(upload).not.toHaveBeenCalled();+});++test.each([+ "/experts/clay/v1/finance.png",+ "/autogpt-characters/v1.1/expert-mina/neutral/128.webp",+])("editing %s uses its color for generation", async (avatarUrl) => {+ const requests: unknown[] = [];+ server.use(+ http.post("*/api/experts/avatars/generations", async ({ request }) => {+ requests.push(await request.json());+ return HttpResponse.json(+ { detail: "Please wait before generating again." },+ { status: 429 },+ );+ }),+ );+ render(+ <ExpertAvatarPicker+ name="Nova"+ color="green-300"+ avatarUrl={avatarUrl}+ onPick={vi.fn()}+ />,+ );+ await userEvent.click(+ screen.getByRole("button", { name: "Generate with AI" }),+ );+ await screen.findByRole("alert");+ expect(requests).toEqual([+ {+ category: "finance",+ shade: "standard",+ shape: "pebble",+ base: "compact",+ tilt: "level",+ inlay: "sweep",+ accent_placement: "body",+ accent_count: "one",+ expression: "friendly",+ },+ ]);+ expect(+ screen.getByRole("img", { name: /^Nova/ }).getAttribute("src"),+ ).toContain(+ avatarUrl.includes("expert-mina") ? "expert-mina" : "finance.png",+ );+});++test("a pending generation disables uploads and confirmation", async () => {+ server.use(+ http.post("*/api/experts/avatars/generations", () =>+ HttpResponse.json(+ { id: "pending-job", status: "pending" },+ { status: 202 },+ ),+ ),+ http.get("*/api/experts/avatars/generations/pending-job", () =>+ HttpResponse.json({ id: "pending-job", status: "pending" }),+ ),+ );+ render(<ExpertAvatarPicker name="Nova" color={null} onPick={vi.fn()} />);+ await userEvent.click(+ screen.getByRole("button", { name: "Generate with AI" }),+ );+ await screen.findByRole("status");+ expect(+ (screen.getByLabelText("Upload avatar") as HTMLInputElement).disabled,+ ).toBe(true);+ expect(+ (+ screen.getByRole("button", {+ name: "Use this avatar",+ }) as HTMLButtonElement+ ).disabled,+ ).toBe(true);+});++vi.mock("@/lib/auth/actions", async (importOriginal) => ({+ ...(await importOriginal<typeof import("@/lib/auth/actions")>()),+ getWebSocketToken: async () => ({ token: "test-token" }),+}));diff --git a/autogpt_platform/frontend/src/components/molecules/ExpertAvatarPicker/ExpertAvatarPicker.tsx b/autogpt_platform/frontend/src/components/molecules/ExpertAvatarPicker/ExpertAvatarPicker.tsxnew file mode 100644index 0000000000..203e63cbd4--- /dev/null+++ b/autogpt_platform/frontend/src/components/molecules/ExpertAvatarPicker/ExpertAvatarPicker.tsx@@ -0,0 +1,105 @@+"use client";++import { Button } from "@/components/atoms/Button/Button";+import { ACCEPTED_AVATAR_TYPES } from "./helpers";+import { ExpertAvatar } from "../ExpertAvatar/ExpertAvatar";+import { useExpertAvatarPicker } from "./useExpertAvatarPicker";++import { AvatarCatalog } from "./components/AvatarCatalog";+import { GenerationOptions } from "./components/GenerationOptions";++interface Props {+ name: string;+ color: string | null;+ avatarUrl?: string | null;+ onPick: (url: string, color: string) => void;+}++export function ExpertAvatarPicker({ name, ...props }: Props) {+ const picker = useExpertAvatarPicker(props);+ return (+ <div className="flex w-full flex-col items-center gap-4 rounded-2xl border border-border bg-background p-5">+ <ExpertAvatar+ name={name || "Your expert"}+ avatarUrl={picker.selectedUrl}+ size={144}+ />+ <AvatarCatalog+ selectedUrl={picker.selectedUrl}+ disabled={picker.isBusy}+ onSelect={picker.selectPreset}+ />+ <GenerationOptions+ category={picker.category}+ setCategory={picker.setCategory}+ shade={picker.shade}+ setShade={picker.setShade}+ base={picker.base}+ setBase={picker.setBase}+ tilt={picker.tilt}+ setTilt={picker.setTilt}+ inlay={picker.inlay}+ setInlay={picker.setInlay}+ accentPlacement={picker.accentPlacement}+ setAccentPlacement={picker.setAccentPlacement}+ accentCount={picker.accentCount}+ setAccentCount={picker.setAccentCount}+ shape={picker.shape}+ expression={picker.expression}+ isBusy={picker.isBusy}+ setShape={picker.setShape}+ setExpression={picker.setExpression}+ />+ <p className="text-sm text-muted-foreground">+ Choose a look above, or generate a category shade and shape. Up to five+ generations a day, four minutes apart.+ </p>+ {picker.isGenerating && (+ <p role="status" className="text-sm text-muted-foreground">+ Creating your avatar. This may take a few minutes.+ </p>+ )}+ {picker.error && (+ <p role="alert" className="text-sm text-destructive">+ {picker.error}+ </p>+ )}+ <input+ ref={picker.fileInputRef}+ type="file"+ disabled={picker.isBusy}+ accept={ACCEPTED_AVATAR_TYPES}+ aria-label="Upload avatar"+ className="sr-only"+ tabIndex={-1}+ onChange={(event) => {+ const file = event.target.files?.[0];+ event.target.value = "";+ void picker.uploadFile(file);+ }}+ />+ <div className="flex w-full flex-wrap justify-end gap-2">+ <Button+ variant="ghost"+ size="small"+ onClick={picker.openFilePicker}+ disabled={picker.isBusy}+ >+ Upload a picture+ </Button>+ <Button+ variant="secondary"+ size="small"+ onClick={picker.generate}+ loading={picker.isGenerating}+ disabled={picker.isBusy}+ >+ Generate with AI+ </Button>+ <Button size="small" onClick={picker.confirm} disabled={picker.isBusy}>+ Use this avatar+ </Button>+ </div>+ </div>+ );+}diff --git a/autogpt_platform/frontend/src/components/molecules/ExpertAvatarPicker/components/AvatarCatalog.tsx b/autogpt_platform/frontend/src/components/molecules/ExpertAvatarPicker/components/AvatarCatalog.tsxnew file mode 100644index 0000000000..e43d94ad01--- /dev/null+++ b/autogpt_platform/frontend/src/components/molecules/ExpertAvatarPicker/components/AvatarCatalog.tsx@@ -0,0 +1,37 @@+import { ExpertAvatar } from "../../ExpertAvatar/ExpertAvatar";+import { EXPERT_AVATARS } from "../../ExpertAvatar/helpers";+import { cn } from "@/lib/utils";++interface Props {+ selectedUrl: string;+ disabled: boolean;+ onSelect: (id: string) => void;+}++export function AvatarCatalog({ selectedUrl, disabled, onSelect }: Props) {+ return (+ <div+ role="group"+ aria-label="Avatar catalog"+ className="grid w-full grid-cols-4 gap-2"+ >+ {EXPERT_AVATARS.map((avatar) => (+ <button+ key={avatar.id}+ type="button"+ aria-label={avatar.label}+ aria-pressed={selectedUrl === avatar.url}+ disabled={disabled}+ onClick={() => onSelect(avatar.id)}+ className={cn(+ "flex flex-col items-center gap-1 rounded-lg border border-border p-2 text-xs text-foreground focus-visible:ring-2 focus-visible:ring-ring disabled:opacity-50",+ selectedUrl === avatar.url && "border-primary bg-muted",+ )}+ >+ <ExpertAvatar name={avatar.label} avatarUrl={avatar.url} size={40} />+ {avatar.label}+ </button>+ ))}+ </div>+ );+}diff --git a/autogpt_platform/frontend/src/components/molecules/ExpertAvatarPicker/components/GenerationOptions.tsx b/autogpt_platform/frontend/src/components/molecules/ExpertAvatarPicker/components/GenerationOptions.tsxnew file mode 100644index 0000000000..352e42758a--- /dev/null+++ b/autogpt_platform/frontend/src/components/molecules/ExpertAvatarPicker/components/GenerationOptions.tsx@@ -0,0 +1,146 @@+import { ExpertAvatarRequestAccentPlacement } from "@/app/api/__generated__/models/expertAvatarRequestAccentPlacement";+import { ExpertAvatarRequestAccentCount } from "@/app/api/__generated__/models/expertAvatarRequestAccentCount";+import { Select } from "@/components/atoms/Select/Select";+import { ExpertAvatarRequestShape } from "@/app/api/__generated__/models/expertAvatarRequestShape";+import { ExpertAvatarRequestExpression } from "@/app/api/__generated__/models/expertAvatarRequestExpression";+import type { ExpertAvatarRequestShade } from "@/app/api/__generated__/models/expertAvatarRequestShade";+import { ExpertAvatarRequestCategory } from "@/app/api/__generated__/models/expertAvatarRequestCategory";+import { ExpertAvatarRequestBase } from "@/app/api/__generated__/models/expertAvatarRequestBase";+import { ExpertAvatarRequestTilt } from "@/app/api/__generated__/models/expertAvatarRequestTilt";+import { ExpertAvatarRequestInlay } from "@/app/api/__generated__/models/expertAvatarRequestInlay";+import { EXPERT_AVATARS } from "../../ExpertAvatar/helpers";++interface Props {+ shape: ExpertAvatarRequestShape;+ expression: ExpertAvatarRequestExpression;+ category: ExpertAvatarRequestCategory;+ setCategory: (value: ExpertAvatarRequestCategory) => void;+ shade: NonNullable<ExpertAvatarRequestShade>;+ base: ExpertAvatarRequestBase;+ tilt: ExpertAvatarRequestTilt;+ inlay: ExpertAvatarRequestInlay;+ accentPlacement: ExpertAvatarRequestAccentPlacement;+ accentCount: ExpertAvatarRequestAccentCount;+ setAccentPlacement: (value: ExpertAvatarRequestAccentPlacement) => void;+ setAccentCount: (value: ExpertAvatarRequestAccentCount) => void;+ isBusy: boolean;+ setShape: (value: ExpertAvatarRequestShape) => void;+ setExpression: (value: ExpertAvatarRequestExpression) => void;+ setShade: (value: NonNullable<ExpertAvatarRequestShade>) => void;+ setBase: (value: ExpertAvatarRequestBase) => void;+ setTilt: (value: ExpertAvatarRequestTilt) => void;+ setInlay: (value: ExpertAvatarRequestInlay) => void;+}++export function GenerationOptions(props: Props) {+ return (+ <div className="grid w-full grid-cols-2 gap-3">+ <Choice+ label="Category"+ value={props.category}+ values={Object.values(ExpertAvatarRequestCategory)}+ onChange={props.setCategory}+ disabled={props.isBusy}+ />+ <Choice+ label="Shade"+ value={props.shade}+ values={["standard", "light", "dark"]}+ onChange={props.setShade}+ disabled={props.isBusy}+ />+ <Choice+ label="Shape"+ value={props.shape}+ values={Object.values(ExpertAvatarRequestShape)}+ onChange={props.setShape}+ disabled={props.isBusy}+ />+ <Choice+ label="Base"+ value={props.base}+ values={Object.values(ExpertAvatarRequestBase)}+ onChange={props.setBase}+ disabled={props.isBusy}+ />+ <Choice+ label="Tilt"+ value={props.tilt}+ values={Object.values(ExpertAvatarRequestTilt)}+ onChange={props.setTilt}+ disabled={props.isBusy}+ />+ <Choice+ label="Accent shape"+ value={props.inlay}+ values={Object.values(ExpertAvatarRequestInlay)}+ onChange={props.setInlay}+ disabled={props.isBusy}+ />+ <Choice+ label="Accent placement"+ value={props.accentPlacement}+ values={Object.values(ExpertAvatarRequestAccentPlacement)}+ onChange={props.setAccentPlacement}+ disabled={props.isBusy}+ />+ <Choice+ label="Accents per part"+ value={props.accentCount}+ values={Object.values(ExpertAvatarRequestAccentCount)}+ onChange={props.setAccentCount}+ disabled={props.isBusy}+ />+ <Choice+ label="Expression"+ value={props.expression}+ values={Object.values(ExpertAvatarRequestExpression)}+ onChange={props.setExpression}+ disabled={props.isBusy}+ />+ </div>+ );+}++function Choice<T extends string>({+ label,+ value,+ values,+ onChange,+ disabled,+}: {+ label: string;+ value: T;+ values: readonly T[];+ onChange: (value: T) => void;+ disabled: boolean;+}) {+ return (+ <Select+ id={`avatar-${label.toLowerCase().replaceAll(" ", "-")}`}+ label={label}+ value={value}+ disabled={disabled}+ options={values.map((value) => ({+ value,+ icon:+ label === "Category" ? (+ <span+ aria-hidden+ className="size-3 shrink-0 rounded-full border border-border"+ style={{+ backgroundColor: EXPERT_AVATARS.find(+ (color) => color.id === value,+ )?.hex,+ }}+ />+ ) : undefined,+ label: value[0].toUpperCase() + value.slice(1),+ }))}+ onValueChange={(value) => {+ const choice = values.find((choice) => choice === value);+ if (choice) onChange(choice);+ }}+ />+ );+}diff --git a/autogpt_platform/frontend/src/components/molecules/ExpertAvatarPicker/generation.test.tsx b/autogpt_platform/frontend/src/components/molecules/ExpertAvatarPicker/generation.test.tsxnew file mode 100644index 0000000000..fdc6452c91--- /dev/null+++ b/autogpt_platform/frontend/src/components/molecules/ExpertAvatarPicker/generation.test.tsx@@ -0,0 +1,101 @@+import { render, screen, waitFor } from "@/tests/integrations/test-utils";+import { server } from "@/mocks/mock-server";+import { http, HttpResponse } from "msw";+import userEvent from "@testing-library/user-event";+import { expect, test, vi } from "vitest";+import { ExpertAvatarPicker } from "./ExpertAvatarPicker";++// The hook polls on a real 2s interval, and the test drives ten selects+// before it, so the default 5s budget is not enough on a loaded CI runner.+const POLLING_TEST_TIMEOUT = 20000;++test(+ "sends shape and expression choices, then polls until the preview is ready",+ async () => {+ const onPick = vi.fn();+ const requests: unknown[] = [];+ let polls = 0;+ server.use(+ http.post("*/api/experts/avatars/generations", async ({ request }) => {+ requests.push(await request.json());+ return HttpResponse.json(+ { id: "poll-job", status: "pending" },+ { status: 202 },+ );+ }),+ http.get("*/api/experts/avatars/generations/poll-job", () => {+ polls += 1;+ return HttpResponse.json(+ polls === 1+ ? { id: "poll-job", status: "pending" }+ : {+ id: "poll-job",+ status: "complete",+ avatar_url: "https://cdn.test/focused.png",+ },+ );+ }),+ );+ render(<ExpertAvatarPicker name="Nova" color={null} onPick={onPick} />);+ await userEvent.click(screen.getByRole("button", { name: "Charcoal" }));+ await userEvent.click(screen.getByRole("combobox", { name: "Shape" }));+ await userEvent.click(screen.getByRole("option", { name: "Bean" }));+ await userEvent.click(screen.getByRole("combobox", { name: "Category" }));+ await userEvent.click(screen.getByRole("option", { name: "Finance" }));+ await userEvent.click(screen.getByRole("combobox", { name: "Shade" }));+ await userEvent.click(screen.getByRole("option", { name: "Dark" }));+ await userEvent.click(screen.getByRole("combobox", { name: "Base" }));+ await userEvent.click(screen.getByRole("option", { name: "Wide" }));+ await userEvent.click(screen.getByRole("combobox", { name: "Tilt" }));+ await userEvent.click(screen.getByRole("option", { name: "Left" }));+ await userEvent.click(+ screen.getByRole("combobox", { name: "Accent shape" }),+ );+ await userEvent.click(screen.getByRole("option", { name: "Patch" }));+ await userEvent.click(+ screen.getByRole("combobox", { name: "Accent placement" }),+ );+ await userEvent.click(screen.getByRole("option", { name: "Head" }));+ await userEvent.click(+ screen.getByRole("combobox", { name: "Accents per part" }),+ );+ await userEvent.click(screen.getByRole("option", { name: "Three" }));+ await userEvent.click(screen.getByRole("combobox", { name: "Expression" }));+ await userEvent.click(screen.getByRole("option", { name: "Focused" }));+ await userEvent.click(+ screen.getByRole("button", { name: "Generate with AI" }),+ );+ await waitFor(() => expect(polls).toBe(1));+ expect(screen.queryByRole("status")).not.toBeNull();+ expect(requests).toEqual([+ {+ category: "finance",+ shade: "dark",+ shape: "bean",+ base: "wide",+ tilt: "left",+ inlay: "patch",+ accent_placement: "head",+ accent_count: "three",+ expression: "focused",+ },+ ]);+ await waitFor(+ () =>+ expect(+ screen.getByRole("img", { name: "Nova" }).getAttribute("src"),+ ).toContain("focused.png"),+ { timeout: 10000 },+ );+ expect(polls).toBe(2);+ expect(onPick).not.toHaveBeenCalled();+ await userEvent.click(+ screen.getByRole("button", { name: "Use this avatar" }),+ );+ expect(onPick).toHaveBeenCalledWith(+ "https://cdn.test/focused.png",+ "green-300",+ );+ },+ POLLING_TEST_TIMEOUT,+);diff --git a/autogpt_platform/frontend/src/app/(platform)/raise/components/AvatarStep/helpers.ts b/autogpt_platform/frontend/src/components/molecules/ExpertAvatarPicker/helpers.tssimilarity index 100%rename from autogpt_platform/frontend/src/app/(platform)/raise/components/AvatarStep/helpers.tsrename to autogpt_platform/frontend/src/components/molecules/ExpertAvatarPicker/helpers.tsdiff --git a/autogpt_platform/frontend/src/components/molecules/ExpertAvatarPicker/useAvatarGeneration.ts b/autogpt_platform/frontend/src/components/molecules/ExpertAvatarPicker/useAvatarGeneration.tsnew file mode 100644index 0000000000..e3594e931e--- /dev/null+++ b/autogpt_platform/frontend/src/components/molecules/ExpertAvatarPicker/useAvatarGeneration.ts@@ -0,0 +1,56 @@+import {+ useGenerateExpertAvatar,+ useGetExpertAvatarGeneration,+} from "@/app/api/__generated__/endpoints/experts/experts";+import type { ExpertAvatarRequest } from "@/app/api/__generated__/models/expertAvatarRequest";+import { useState } from "react";++export function useAvatarGeneration() {+ const [jobID, setJobID] = useState("");+ const mutation = useGenerateExpertAvatar<Error>({+ mutation: { retry: false },+ });+ const query = useGetExpertAvatarGeneration(jobID, {+ query: {+ enabled: Boolean(jobID),+ retry: false,+ refetchInterval: (query) => {+ if (query.state.error) return false;+ const response = query.state.data;+ return !response ||+ (response.status === 200 && response.data.status === "pending")+ ? 2000+ : false;+ },+ },+ });+ const job = query.data?.status === 200 ? query.data.data : undefined;+ const isGenerating =+ mutation.isPending ||+ Boolean(jobID && !query.isError && (!job || job.status === "pending"));+ const error =+ mutation.error?.message ??+ (query.isError+ ? "Could not check generation. Try again or choose a catalog avatar."+ : job?.error);++ function generate(request: ExpertAvatarRequest) {+ setJobID("");+ mutation.mutate(+ { data: request },+ {+ onSuccess: (response) => {+ if (response.status === 202 && response.data.id)+ setJobID(response.data.id);+ },+ },+ );+ }++ function reset() {+ setJobID("");+ mutation.reset();+ }++ return { generate, reset, isGenerating, error, job };+}diff --git a/autogpt_platform/frontend/src/components/molecules/ExpertAvatarPicker/useExpertAvatarPicker.ts b/autogpt_platform/frontend/src/components/molecules/ExpertAvatarPicker/useExpertAvatarPicker.tsnew file mode 100644index 0000000000..b5815f7a8f--- /dev/null+++ b/autogpt_platform/frontend/src/components/molecules/ExpertAvatarPicker/useExpertAvatarPicker.ts@@ -0,0 +1,175 @@+import type { ExpertAvatarRequestAccentPlacement } from "@/app/api/__generated__/models/expertAvatarRequestAccentPlacement";+import type { ExpertAvatarRequestAccentCount } from "@/app/api/__generated__/models/expertAvatarRequestAccentCount";+import { uploadSubmissionMediaDirect } from "@/lib/direct-upload";+import { useMutation } from "@tanstack/react-query";+import { ExpertAvatarRequestCategory } from "@/app/api/__generated__/models/expertAvatarRequestCategory";+import type { ExpertAvatarRequestShade } from "@/app/api/__generated__/models/expertAvatarRequestShade";+import type { ExpertAvatarRequestBase } from "@/app/api/__generated__/models/expertAvatarRequestBase";+import type { ExpertAvatarRequestTilt } from "@/app/api/__generated__/models/expertAvatarRequestTilt";+import type { ExpertAvatarRequestInlay } from "@/app/api/__generated__/models/expertAvatarRequestInlay";+import type { ExpertAvatarRequestShape } from "@/app/api/__generated__/models/expertAvatarRequestShape";+import type { ExpertAvatarRequestExpression } from "@/app/api/__generated__/models/expertAvatarRequestExpression";+import { ACCEPTED_AVATAR_TYPES, MAX_AVATAR_BYTES } from "./helpers";+import {+ EXPERT_AVATARS,+ BUILTIN_EXPERT_AVATARS,+ resolveCategoryAvatarUrl,+ getManagedAvatar,+} from "../ExpertAvatar/helpers";+import { useEffect, useRef, useState } from "react";+import { useAvatarGeneration } from "./useAvatarGeneration";++interface Args {+ avatarUrl?: string | null;+ color: string | null;+ onPick: (url: string, color: string) => void;+}++export function useExpertAvatarPicker({ avatarUrl, color, onPick }: Args) {+ const [selectedUrl, setSelectedUrl] = useState(() =>+ resolveCategoryAvatarUrl(avatarUrl),+ );+ const [category, setCategory] = useState<ExpertAvatarRequestCategory>(() => {+ const preset = EXPERT_AVATARS.find(+ (avatar) => avatar.url === resolveCategoryAvatarUrl(avatarUrl),+ );+ const managed = getManagedAvatar(resolveCategoryAvatarUrl(avatarUrl), 128);+ if (managed?.assetID === "expert-mina") return "finance";+ if (managed?.assetID === "expert-maria") return "marketing";+ const builtin = BUILTIN_EXPERT_AVATARS.find(+ (avatar) => avatar.url === resolveCategoryAvatarUrl(avatarUrl),+ );+ return (+ Object.values(ExpertAvatarRequestCategory).find(+ (value) => value === (builtin?.primary_category ?? preset?.id),+ ) ?? "content"+ );+ });+ const [shade, setShade] =+ useState<NonNullable<ExpertAvatarRequestShade>>("standard");+ const [base, setBase] = useState<ExpertAvatarRequestBase>("compact");+ const [tilt, setTilt] = useState<ExpertAvatarRequestTilt>("level");+ const [inlay, setInlay] = useState<ExpertAvatarRequestInlay>("sweep");+ const [accentPlacement, setAccentPlacement] =+ useState<ExpertAvatarRequestAccentPlacement>("body");+ const [accentCount, setAccentCount] =+ useState<ExpertAvatarRequestAccentCount>("one");+ const [shape, setShape] = useState<ExpertAvatarRequestShape>("pebble");+ const [expression, setExpression] =+ useState<ExpertAvatarRequestExpression>("friendly");+ const [selectedColor, setSelectedColor] = useState(color ?? "amber-300");+ const [uploadError, setUploadError] = useState<string | null>(null);+ const fileInputRef = useRef<HTMLInputElement>(null);+ const handledJob = useRef("");+ const generation = useAvatarGeneration();+ const upload = useMutation({+ mutationFn: (file: File) =>+ uploadSubmissionMediaDirect(file, "expert-avatar"),+ });+ const isBusy = generation.isGenerating || upload.isPending;++ useEffect(() => {+ const job = generation.job;+ if (+ job?.status !== "complete" ||+ !job.id ||+ !job.avatar_url ||+ handledJob.current === job.id+ )+ return;+ handledJob.current = job.id;+ setSelectedUrl(job.avatar_url);+ setSelectedColor(+ EXPERT_AVATARS.find((avatar) => avatar.id === category)?.color ??+ "amber-300",+ );+ }, [generation.job, category]);++ function selectPreset(id: string) {+ const preset = EXPERT_AVATARS.find((avatar) => avatar.id === id);+ const category = Object.values(ExpertAvatarRequestCategory).find(+ (value) => value === id,+ );+ if (!preset || !category) return;+ generation.reset();+ setCategory(category);+ setShade("standard");+ setSelectedUrl(preset.url);+ setSelectedColor(preset.color);+ setUploadError(null);+ }++ async function uploadFile(file: File | undefined) {+ if (!file) return;+ if (+ !ACCEPTED_AVATAR_TYPES.split(",").includes(file.type) ||+ file.size > MAX_AVATAR_BYTES+ ) {+ setUploadError("Choose a PNG, JPEG, or WEBP under 5MB.");+ return;+ }+ setUploadError(null);+ try {+ const response = await upload.mutateAsync(file);+ if (typeof response !== "string" || !response.trim())+ throw new Error("No image URL");+ generation.reset();+ setSelectedUrl(response.trim());+ } catch {+ setUploadError(+ "Could not upload that picture. Try again or choose a catalog avatar.",+ );+ }+ }++ function confirm() {+ onPick(selectedUrl, selectedColor);+ }+ function generate() {+ void generation.generate({+ category,+ shade,+ shape,+ base,+ tilt,+ inlay,+ accent_placement: accentPlacement,+ accent_count: accentCount,+ expression,+ });+ }+ function openFilePicker() {+ fileInputRef.current?.click();+ }++ return {+ selectedUrl,+ category,+ shape,+ setShape,+ shade,+ setShade,+ setCategory,+ base,+ setBase,+ tilt,+ setTilt,+ inlay,+ setInlay,+ accentPlacement,+ setAccentPlacement,+ accentCount,+ setAccentCount,+ expression,+ setExpression,+ selectPreset,+ confirm,+ generate,+ openFilePicker,+ fileInputRef,+ uploadFile,+ isBusy,+ isGenerating: generation.isGenerating,+ error: uploadError ?? generation.error,+ };+}diff --git a/autogpt_platform/frontend/src/components/molecules/ExpertIdentityDetails/ExpertIdentityDetails.test.tsx b/autogpt_platform/frontend/src/components/molecules/ExpertIdentityDetails/ExpertIdentityDetails.test.tsxindex 154bd135d4..f1fd4c46c5 100644--- a/autogpt_platform/frontend/src/components/molecules/ExpertIdentityDetails/ExpertIdentityDetails.test.tsx+++ b/autogpt_platform/frontend/src/components/molecules/ExpertIdentityDetails/ExpertIdentityDetails.test.tsx@@ -4,7 +4,7 @@ import { ExpertIdentityDetails } from "./ExpertIdentityDetails";describe("ExpertIdentityDetails", () => {test.each(["card", "page"] as const)(- "uses one neutral area chip in %s size",+ "falls back to the role label on the name line in %s size",(size) => {render(<ExpertIdentityDetails@@ -14,28 +14,31 @@ describe("ExpertIdentityDetails", () => {/>,);- const area = screen.getByText("Social Media Manager");- const chip = area.parentElement;- expect(screen.getAllByText("Social Media Manager")).toHaveLength(1);- expect(chip?.classList.contains("bg-zinc-50")).toBe(true);- expect(chip?.classList.contains("rounded-full")).toBe(true);- expect(chip?.querySelector("svg")).not.toBeNull();+ expect(screen.getAllByText(/Social Media Manager/)).toHaveLength(1);+ expect(screen.queryByText("AI Expert")).toBeNull();},);- test("shows the job title in the chip and keeps the area's icon", () => {- render(- <ExpertIdentityDetails- name="Jules"- role="Social & Content Repurposing"- jobTitle="Social Media Manager"- />,- );+ test.each(["card", "page"] as const)(+ "puts the job title on the name line in %s size, in place of the kind",+ (size) => {+ render(+ <ExpertIdentityDetails+ name="Jules"+ role="Social & Content Repurposing"+ jobTitle="Social Media Manager"+ size={size}+ />,+ );- const chip = screen.getByText("Social Media Manager").parentElement;- expect(chip?.querySelector("svg")).not.toBeNull();- expect(screen.queryByText("Social media")).toBeNull();- });+ const title = screen.getByText(/Social Media Manager/);+ expect(title.closest("div")?.textContent).toBe(+ "Jules\u2022 Social Media Manager",+ );+ expect(screen.queryByText("AI Expert")).toBeNull();+ expect(screen.queryByText("Social media")).toBeNull();+ },+ );test("shows the job title as the compact text", () => {render(@@ -68,7 +71,7 @@ describe("ExpertIdentityDetails", () => {test("does not grant Otto's identity exception from a specialist title", () => {render(<ExpertIdentityDetails name="My Expert" role="Head of AI" />);- expect(screen.getByText("AI Expert")).toBeDefined();+ expect(screen.getByText(/Head of AI/)).toBeDefined();expect(screen.queryByText("Your personal Head of AI")).toBeNull();});@@ -114,7 +117,7 @@ test.each(["compact", "card", "page"] as const)(size={size}/>,);- expect(screen.getByText("Head of AI")).toBeDefined();+ expect(screen.getByText(/Head of AI/)).toBeDefined();expect(screen.queryByText("Your personal Head of AI")).toBeNull();},);diff --git a/autogpt_platform/frontend/src/components/molecules/ExpertIdentityDetails/ExpertIdentityDetails.tsx b/autogpt_platform/frontend/src/components/molecules/ExpertIdentityDetails/ExpertIdentityDetails.tsxindex 84c7c5d33f..289701e466 100644--- a/autogpt_platform/frontend/src/components/molecules/ExpertIdentityDetails/ExpertIdentityDetails.tsx+++ b/autogpt_platform/frontend/src/components/molecules/ExpertIdentityDetails/ExpertIdentityDetails.tsx@@ -2,7 +2,6 @@ import { Text } from "@/components/atoms/Text/Text";import { getExpertRoleLabel } from "@/services/experts/expert-role-label";import { cn } from "@/lib/utils";import type { ReactNode } from "react";-import { ExpertAreaChip } from "./components/ExpertAreaChip";interface Props {name: string;@@ -30,6 +29,11 @@ export function ExpertIdentityDetails({const compact = size === "compact";const Container = compact ? "span" : "div";const area = jobTitle || (role ? getExpertRoleLabel(role) : null);+ // What someone does says more than "AI Expert" does, so on a card or a page+ // it rides the name line and takes that line's place. Compact sizes have no+ // room for it and keep it on the line below. The category pill belongs to+ // the card, not here, so the two never say the same thing twice.+ const titleOnNameLine = compact ? null : area;return (<Container@@ -57,22 +61,32 @@ export function ExpertIdentityDetails({>{name}</Text>+ {titleOnNameLine ? (+ <Text+ as="span"+ variant="body"+ tone="secondary"+ unmask={false}+ className={cn("min-w-0 truncate", areaClassName)}+ title={titleOnNameLine}+ >+ {"•"} {titleOnNameLine}+ </Text>+ ) : null}{nameAccessory}</Container>- {!area || (!isOtto && !compact) ? (+ {!area ? (<Text as="span" variant="small" tone="muted">{isOtto ? "Your personal Head of AI" : "AI Expert"}</Text>) : null}- {!compact && area ? (- <ExpertAreaChip role={role ?? ""} label={area} />- ) : area ? (+ {compact && area ? (<Textas="span"variant="small"tone="secondary"unmask={false}- className={cn("truncate", compact && "leading-4", areaClassName)}+ className={cn("truncate leading-4", areaClassName)}title={area}>{area}diff --git a/autogpt_platform/frontend/src/components/molecules/ExpertIdentityDetails/components/ExpertAreaChip.tsx b/autogpt_platform/frontend/src/components/molecules/ExpertIdentityDetails/components/ExpertAreaChip.tsxdeleted file mode 100644index ab2f2084dc..0000000000--- a/autogpt_platform/frontend/src/components/molecules/ExpertIdentityDetails/components/ExpertAreaChip.tsx+++ /dev/null@@ -1,25 +0,0 @@-import { getExpertAccent } from "@/app/(platform)/marketplace/components/ExpertsSection/helpers";-import { Badge } from "@/components/atoms/Badge/Badge";-import { Icon } from "@/components/atoms/Icon/Icon";--interface Props {- role: string;- label: string;-}--export function ExpertAreaChip({ role, label }: Props) {- return (- <Badge- variant="info"- className="max-w-full self-start rounded-full px-2.5 leading-[1.125rem]"- >- <Icon- icon={getExpertAccent(role).roleIcon}- size={12}- className="shrink-0"- aria-hidden- />- <span className="truncate">{label}</span>- </Badge>- );-}