Skip to main content

Module error_text

Module error_text 

Source
Expand description

Human-readable rendering of structured error payloads

Agentic CLIs publish errors as objects: @link-assistant/agent emits NamedError.toObject() ({"name":"RetryTimeoutExceededError","data":{"message":"…"}}). Ported from Hive Mind src/error-text.lib.mjs (hive-mind#2141).

Constants§

MAX_ERROR_TEXT_LENGTH
Default truncation budget for rendered error text

Functions§

first_error_text
Pick the first readable rendering among candidate payloads
stringify_error_value
Render any error payload as one readable line, never [object Object]