Repository navigation
feat(avatar): elf, dwarf, orc and flower species with beards, medieval outfits and headwear - #10
Conversation
…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
|
No actionable comments were generated in the recent review. 🎉 ℹ️ Recent review info⚙️ Run configuration
📒 Files selected for processing (8)
Included review availability: This review used your included allowance. Your plan provides up to 1 included review per hour; 0 remain after this review. 📝 WalkthroughWalkthroughThe 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. ChangesAvatar version 2
Priority: ➖ Normal Estimated code review effort: 3 (Moderate) | ~25 minutes Change: Feature Merge Risk: ⚪ Minimal · up to No demonstrated issue currently prevents merging; complete the normal release checks. 🚥 Pre-merge checks | ✅ 4 | ❌ 1❌ Failed checks (1 warning)
✅ Passed checks (4 passed)
Full details: Docstring CoverageExplanation 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.)
✨ Finishing Touches 💡 1📝 Generate docstrings 💡
🧪 Generate unit tests (beta)
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. Comment |
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
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
nosepart stays saved, but the dwarf nose replaces it.trumpet(a bell head, the default),daisy,sunflower,tulip,sakura.Beard (
short,full,braided)Version 2–only catalog choices (
AVATAR_PARTS_V2)hiddenChoices(recipe)lists saved choices that the current species or headwear keeps but does not draw:nosepart.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: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 verifypasses: format, lint, typecheck, 57 tests.botharness-golden.jsonand the 0.3.0species-golden.jsonare both unchanged and pass, so version 1 and goblin output are byte-identical.species-more-golden.jsonpins 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.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