Skip to main content

Module util

Module util 

Expand description

Utility functions for ZeroClaw. This module contains reusable helper functions used across the codebase.

Enums§

MaybeSet
Utility enum for handling optional values.

Functions§

is_serial_path_allowed
Returns true if the path is an allowed serial device (USB CDC, FTDI, etc.). Rejects arbitrary paths like /etc/passwd or /dev/sda.
release_freed_heap
truncate_field
truncate_json_leaves
truncate_with_ellipsis