Skip to content

feat(avatar): elf, dwarf, orc and flower species with beards, medieval outfits and headwear - #10

Merged
DoodleBears merged 3 commits into
mainfrom
claude/festive-gauss-gv7xu2
Oct 8, 2026
Merged

DoodleBears merged 3 commits into
mainfrom
claude/festive-gauss-gv7xu2

Conversation

@DoodleBears

@DoodleBears DoodleBears commented Oct 8, 2026 •

Copy link
Copy Markdown
Contributor

Summary

This is the BotPixel half of BotHarness/DeepSeekBot#1212, #1213 and #1214, following ADR-0148. Everything new is optional within asset version 2, so every recipe saved with 0.3.0 still validates and renders identically.

New species

  • Elf: long pointed ears drawn over hair, pale and lavender swatches.
  • Dwarf: a broad nose. The nose part stays saved, but the dwarf nose replaces it.
  • Orc: small pointed ears, two-pixel tusks, grey-green swatches.
  • Flower.
    • Its face is two bead eyes and its mouth, like Mario's Talking Flower, instead of anime eyes, brows, nose, blush and glasses. It still glances and blinks.
    • Petals replace hair. Styles: trumpet (a bell head, the default), daisy, sunflower, tulip, sakura.
    • A stem with leaves or a pot replaces the outfit.
    • Petals take the hair color, with left/right per-side colors. A pot takes the shirt color.

Beard (short, full, braided)

  • Drawn on the lower face for any non-flower species.
  • It always leaves the mouth area clear, so the closed, half-open and open speech layers stay visible.

Version 2–only catalog choices (AVATAR_PARTS_V2)

  • Outfits: armor, robe, tunic, cloak.
  • Headwear: helmet and hood, which hide the hair underneath.
  • Version 1 catalogs, and so the BotHarness golden fixture, are unchanged.

hiddenChoices(recipe) lists saved choices that the current species or headwear keeps but does not draw:

  • on a flower: its hair, outfit, headwear, beard, eyes, brows, nose, cheeks and glasses;
  • hair under a helmet or hood;
  • the dwarf's nose part.

The DeepSeekBot editor will use it to say "kept, not shown" instead of discarding choices.

createSeededRecipeV2 / seededRecipeV2 (#1214) seed a stable version 2 face from a name:

  • any species, chosen with equal odds;
  • sometimes a beard or a medieval outfit;
  • petals and a base for a flower.

Version 1 seeds are unchanged, so DeepSeekBot can keep existing Bots on their original face and give only new Bots the version 2 seed.

Verification

  • pnpm verify passes: format, lint, typecheck, 57 tests.
  • botharness-golden.json and the 0.3.0 species-golden.json are both unchanged and pass, so version 1 and goblin output are byte-identical.
  • The new species-more-golden.json pins the new species, beards on two face shapes, the four outfits, both headwear options, every petal × base combination, two-tone petals and a beard at the geometry extremes. Each entry covers front, turns and mouth layers.
  • Behavior tests:
    • every speaking mouth stays visible through each beard;
    • helmet and hood output doesn't depend on the hidden hair;
    • a flower's render ignores its hidden hair, outfit, beard, eyes, brows, nose, cheeks and glasses, and keeps all mouth layers;
    • validation rejects version 2 fields and choices on version 1 recipes;
    • seeded version 2 faces are valid, stable and reach all six species. Six named seeds are pinned in the golden fixture.
  • Visual check at 4× in front and turned poses, plus the open mouth: elf, dwarf with beard and helmet, orc in armor, hooded elf, and every flower petal style with leaves or a pot.

After merge, release 0.4.0 for DeepSeekBot to consume.

Refs BotHarness/DeepSeekBot#1212, BotHarness/DeepSeekBot#1213, BotHarness/DeepSeekBot#1214 · Agent-Task: claude/cloud/session_01MozvQ2eMvqX1MzSqm9G2o8

🤖 Generated with Claude Code

https://claude.ai/code/session_01MozvQ2eMvqX1MzSqm9G2o8

Summary by CodeRabbit

  • New Features
    • Added new avatar species, including elves, dwarves, orcs, and flowers, with species-specific appearance options.
    • Added beard, outfit, headwear, and flower customization, along with version 2 seeded avatars.
    • Added a way to identify saved appearance choices that are hidden for a particular avatar.
  • Compatibility
    • Existing version 1 recipes and seeds remain unchanged, and existing goblin recipes continue to render as before.

…l outfits and headwear

Version 2 gains elf, dwarf, orc and flower species; an optional beard
that always leaves the speaking mouth visible; armor, robe, tunic and
cloak outfits; helmet and hood headwear that hide the hair underneath; and a flower's
petals and base. hiddenChoices() names saved choices a species or
headwear keeps but does not draw. Version 1 recipes and 0.3.0 goblin
recipes render unchanged; new golden entries pin the new art.
pixel-avatar 0.4.0.

Issue: BotHarness/DeepSeekBot#1212
Issue: BotHarness/DeepSeekBot#1213
Agent-Task: claude/cloud/session_01MozvQ2eMvqX1MzSqm9G2o8

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01MozvQ2eMvqX1MzSqm9G2o8
@coderabbitai

coderabbitai Bot commented Oct 8, 2026 •

Copy link
Copy Markdown

Review in Change Stack →

No actionable comments were generated in the recent review. 🎉

ℹ️ Recent review info
⚙️ Run configuration
  • Configuration used: defaults
  • Review profile: CHILL
  • Plan: Advanced
  • Run ID: e6cd85f5-92e7-48b4-ba80-a8fedc5ddeed
📥 Commits

Reviewing files that changed from the base of the PR and between 19b2662 and fff5ad5.

📒 Files selected for processing (8)
  • CHANGELOG.md
  • packages/avatar/README.md
  • packages/avatar/package.json
  • packages/avatar/src/figure.ts
  • packages/avatar/src/index.ts
  • packages/avatar/src/recipe.ts
  • packages/avatar/test/fixtures/species-more-golden.json
  • packages/avatar/test/species-more.test.ts

Included review availability: This review used your included allowance. Your plan provides up to 1 included review per hour; 0 remain after this review.


📝 Walkthrough

Walkthrough

The avatar package adds version 2 recipes with expanded species and appearance choices. Rendering now supports the added species and parts, including flower figures. New tests cover recipe validation, hidden choices, rendering output, and seeded recipes.

Changes

Avatar version 2

Layer / File(s) Summary
Version 2 recipe contract
packages/avatar/src/recipe.ts, packages/avatar/src/index.ts
The recipe model adds species, version 2 choices and extra parts, validation, canonicalization, hiddenChoices, and version 2 seeded recipes. The package exports the new constants, functions, and type.
Species and part rendering
packages/avatar/src/figure.ts
Rendering adds outfits, headwear, pointed ears, beards, and species-specific facial features. Flower figures use petals and a flower base and skip several non-flower features.
Rendering tests and release notes
packages/avatar/test/*, packages/avatar/README.md, CHANGELOG.md, packages/avatar/package.json
Tests cover version 2 recipes, hidden choices, rendering hashes, and seeded recipes. The README and changelog describe the additions, and the package version changes to 0.4.0.

Priority: ➖ Normal

Estimated code review effort: 3 (Moderate) | ~25 minutes

Change: Feature

Merge Risk: ⚪ Minimal · up to fff5a

No demonstrated issue currently prevents merging; complete the normal release checks.

🚥 Pre-merge checks | ✅ 4 | ❌ 1

❌ Failed checks (1 warning)

Check name Status Explanation Resolution
Docstring Coverage ⚠️ Warning Docstring coverage is 27.27% which is insufficient. The required threshold is 80.00%. Docstring coverage is scoped to functions touched by this diff. Analyzed 11 functions across 4 files. (4 skipped: … Write docstrings for the functions missing them to satisfy the coverage threshold.
✅ Passed checks (4 passed)
Check name Status Explanation
Description Check ✅ Passed Check skipped - CodeRabbit’s high-level summary is enabled.
Title check ✅ Passed The title clearly summarizes the main changes: new elf, dwarf, orc, and flower species, plus beards, medieval outfits, and headwear.
Linked Issues check ✅ Passed Check skipped because no linked issues were found for this pull request.
Out of Scope Changes check ✅ Passed Check skipped because no linked issues were found for this pull request.
Full details: Docstring Coverage

Explanation

Docstring coverage is 27.27% which is insufficient. The required threshold is 80.00%. Docstring coverage is scoped to functions touched by this diff. Analyzed 11 functions across 4 files. (4 skipped: 4 unsupported.)

  • Fix all pre-merge checks with AI
✨ Finishing Touches 💡 1
📝 Generate docstrings 💡
  • Commit to this branch
  • Create a new PR
🧪 Generate unit tests (beta)
  • Commit to this branch
  • Create a new PR
  • Autopilot · Keep fixing CodeRabbit findings and required CI, and resolving merge conflicts

Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out.

❤️ Share

Comment @coderabbitai help to get the list of available commands.

claude added 2 commits October 8, 2026 18:18
A flower's face is now two bead eyes and its mouth, like a talking
flower, instead of anime eyes, brows, nose, blush and glasses; those
saved choices are reported by hiddenChoices and return off the flower.
A trumpet petal style, now the default, shapes the head as a bell.

Issue: BotHarness/DeepSeekBot#1213
Agent-Task: claude/cloud/session_01MozvQ2eMvqX1MzSqm9G2o8

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01MozvQ2eMvqX1MzSqm9G2o8
createSeededRecipeV2 and seededRecipeV2 give a stable, valid version 2
face from a name: any species, sometimes a beard or a medieval outfit,
and petals and a base for a flower. Version 1 seeds are unchanged so a
consumer can keep existing identities on their original face.

Issue: BotHarness/DeepSeekBot#1214
Agent-Task: claude/cloud/session_01MozvQ2eMvqX1MzSqm9G2o8

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01MozvQ2eMvqX1MzSqm9G2o8
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants