Expand description
Debug utilities for bridge operations.
Translated from openclaudecode/src/bridge/debugUtils.ts
Functions§
- debug_
body - Truncate a JSON-serializable value for debug logging.
- debug_
truncate - Truncate a string for debug logging, collapsing newlines.
- describe_
axios_ error - Extract a descriptive error message from an axios error (or any error). For HTTP errors, appends the server’s response body message if available.
- extract_
error_ detail - Pull a human-readable message out of an API error response body.
Checks
data.messagefirst, thendata.error.message. - extract_
http_ status - Extract the HTTP status code from an axios error, if present. Returns None for non-HTTP errors (e.g. network failures).
- log_
bridge_ skip - Log a bridge init skip — debug message +
tengu_bridge_repl_skippedanalytics event. - redact_
secrets - Redact secrets from a string, replacing values with [REDACTED] or a partial reveal.