Repository navigation
feat(avatar): compatible optional speech mouth layers - #7
Conversation
Issue: #6 Consumer: BotHarness/DeepSeekBot#1143 Agent-Task: codex/local/01a11734-bb09-7f01-9d45-adc0f5df6269
|
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 opt-in ChangesSpeech Mouth Layers
Priority: ⬇️ Low Estimated code review effort: 3 (Moderate) | ~20 minutes Change: Feature Merge Risk: ⚪ Minimal · up to No actionable issue is identified in the optional mouth-layer change; it is mergeable after normal checks. 🚥 Pre-merge checks | ✅ 4 | ❌ 1❌ Failed checks (1 warning)
✅ Passed checks (4 passed)
Full details: Docstring CoverageExplanation Docstring coverage is 50.00% which is insufficient. The required threshold is 80.00%. Docstring coverage is scoped to functions touched by this diff. Analyzed 2 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 |
|
Closes #6 · Consumer #1143 · Agent claim · Task: Why the changeConsumers can animate simple speech mouths without changing saved pixel identities or rebuilding the entire character on each text step. Special things to note
Change outline pixelAvatarSvg(recipe, options) → pixelFigure(recipe, yaw, options)
+ mouthLayers?: boolean (default: false)
+ every pose: [data-avatar-mouth="saved|closed|half-open|open"]
+ exported PixelFigureOptions / PixelMouthState
unchanged recipe validation, saved cells, default SVG and golden hashesShow one group in each yaw at a time, then restore Actual public-package rendering — 900 × 640, identical recipesBefore uses the installed Before — light, saved face only After — light, saved / closed / half-open / open Before — dark After — dark Validation
|




Closes #6 · Consumer #1143 · Agent claim · Task:
codex/local/01a11734-bb09-7f01-9d45-adc0f5df6269Why the change
Consumers can animate simple speech mouths without changing saved pixel identities or rebuilding the entire character on each text step.
Special things to note
mouthLayers: truerequests produce new markup. Review exact default/golden compatibility and every-yaw feature-layer composition.Change outline
Show one group in each yaw at a time, then restore
savedafter speech/cancellation. No avatar concepts enter pixel-morph and no runtime dependency is added.Actual public-package rendering — 900 × 640, identical recipes
Before uses the installed
@botharness/pixel-avatar@0.1.0; After uses candidate buildbe024f2. The pure SVG package has no standalone UI. These images are direct renders of its public exports, not DSH screenshots or a substitute for the consumer's runtime evidence. Each row uses the same recipe. Backgrounds belong to the comparison canvas; the busts themselves are transparent.Before — light, saved face only
After — light, saved / closed / half-open / open
Before — dark
After — dark
Validation
pnpm verifypassed: formatting, lint, typechecking and 31 tests. Existing unrelated morph lint warning remains. Production build passed.origin/main(df53fc8). The consumer now pins the qualified published 0.2.0 dependency.