Package:
@hexos/commonStructured error info used across Hexos packages.
The message field contains a sanitized, user-safe string. The code field preserves
existing error codes (e.g., RATE_LIMIT_EXCEEDED). The category field enables
UI-level display logic and error classification.
interface HexosError {
message: string;
code?: string;
category: ErrorCategory;
}