Repository navigation
Hive v1.0.16: Pictures in Skills
A skill can now carry images and other binary files, whether you upload it as a zip or a queen
copies it from a folder.
Fixed
- A skill can carry images. Uploading a zip on the Skills page refused any file that wasn't
text ("binary file 'references/diagram.png' not supported yet"), andwrite_skillwith
source_pathrefused to copy one, so a skill with a diagram or a sample file couldn't be
imported. Every supporting file is now written exactly as it came. A queen's request to add such a
skill to the shared library lists each binary file by its size in the consent dialog. - A zip made on a Mac imports cleanly. The
__MACOSXfolder and.DS_Storefiles a Mac adds to
a zip are skipped, as copying a skill folder already skips hidden files. - Copied text files keep their line endings. On Windows, a supporting file with Windows line
endings was written with an extra carriage return on every line.
For code built on Hive
framework.skills.skill_writer.SkillFile.contentisstr | bytes, andbuild_draftaccepts
bytes as a file'scontent.file_content(raw)gives text when the bytes are UTF-8, else the
bytes.GET /api/sessions/{session_id}/skill-installslists a binary file as{"path", "bytes"}
instead of{"path", "content"}.
aden-tools is released at the same version. The two packages pin each other exactly.