Teknium
cc2afd78ee
refactor(agent): pet — keep STATE_ALIASES insertion order
2026-09-02 19:46:38 -07:00
Teknium
6c41acbddd
refactor(agent): pet — pass 2 (render/store/orchestrate helper collapse, dispatch, docstring compaction; 25% LOC cut)
2026-09-02 19:44:51 -07:00
Teknium
b4c386642f
refactor(agent): pet — pass 1 (dead ROWS/COLUMNS, module-level PIL imports, helper collapse, docstring compaction)
2026-09-02 19:15:47 -07:00
Teknium
2ad284b473
refactor(agent/runtime): pet — shared flood/placement helpers in atlas, provider resolution loop, dead helpers removed
...
- atlas: _border_flood/_unvisited_components/_place/_clear_region/_remove_masked
replace 6 hand-rolled flood + canvas-composite loops; _sever_expected_gutters
uses channel ops instead of per-pixel writes; dead _color_distance,
_has_slot_padding, _slot_bounds, atlas_to_webp_bytes, FRAME_COUNTS (0 refs).
- render/store: dead _open_sheet/_png_bytes/_union_alpha_bbox/_thumbs_dir removed.
- imagegen: _available() unifies 3 provider-availability checks; forced/preferred
provider resolution collapsed into one ordered loop (same precedence).
- state: derive_pet_state as a ranked table (same priority order).
- Comment/docstring compaction keeping the pipeline invariants.
2026-09-02 13:29:47 -07:00
Brooklyn Nicholson
e7dbfdaad7
feat(pets): pet engine + display.pet config
...
Add the shared pet engine under agent/pet/: spritesheet manifest loading
and in-process caching, six-state animation model, frame rendering, and
the persistent pet store. Register the display.pet config block (pet,
scale, enabled, etc.) that every surface reads from. Covered by
tests/agent/test_pet_engine.py.
2026-06-20 14:18:30 -05:00