Repository navigation
A patch release with one fix. No migration, no configuration change, no API change for integrators.
Fixed
A write can no longer turn a page into a binary file (#512). write_file, write_files and edit_file now refuse text that holds a NUL character (U+0000), before anything is written.
Such a write used to land. From then on the file was binary: read_file answered with a notice instead of the content, and the text tools refused every attempt to repair it, so the page had to be restored from history by hand.
write_fileandedit_fileanswer 400 withkind: 'nul_in_text', naming the argument that holds the character (contentornew_string) and its offset.write_filesstill answers 200: the path is reportedrefusedwitherror: 'nul_in_text', and the rest of the batch lands.- The character is refused, not stripped, so a tool never writes text the caller did not send.
The tools that carry bytes as they are (apply_file_upload, copy_file, move_file and unzip) are unchanged.
Upgrading
Nothing to do beyond taking the new version. A page that already holds a NUL stays binary until it is restored from history or replaced by an upload.
Packages
All five packages are published as 0.40.1: @bevel-software/platform-core-backend, @bevel-software/platform-core-frontend, @bevel-software/platform-shared, @bevel-software/platform-mcp-core, @bevel-software/hexis-mcp.