Skip to content

v0.40.1

Latest

Choose a tag to compare

@h3xxit h3xxit released this 19 Nov 16:54
· 22 commits to main since this release

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_file and edit_file answer 400 with kind: 'nul_in_text', naming the argument that holds the character (content or new_string) and its offset.
  • write_files still answers 200: the path is reported refused with error: '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.