Guest workspace paths and byte digests.
File operations are confined lexically to /workspace. This validation does
not resolve guest symlinks; the file transport and host artifact store must
enforce their own filesystem boundary. Percent signs, backslashes, traversal,
repeated separators, and non-UTF-8 paths are deliberately unsupported.
Summary
Functions
Encode a validated guest path for the worker's wildcard file route.
Compute a lowercase SHA-256 digest of file bytes.
Functions
@spec encode_path(term()) :: {:ok, String.t()} | {:error, SmolBox.Error.t()}
Encode a validated guest path for the worker's wildcard file route.
Compute a lowercase SHA-256 digest of file bytes.
@spec validate_path(term()) :: :ok | {:error, SmolBox.Error.t()}