Skip to main content
All usage examples from the package, aggregated for quick reference.

ExternalTaskProvider

Interface that provider adapters implement to expose their external task system to the reconciliation engine. Provider-specific parsing lives in the adapter — core never sees native formats. Consumers implement this interface to integrate their issue tracker with CLEO. View in API reference

normalizeError()

Normalize any thrown value into a standardized error object. Handles: - Error instances (preserves stack trace info) - Strings (wraps in Error) - Objects with message property - null/undefined (provides fallback) View in API reference

getErrorMessage()

Extract a human-readable message from any error value. Safe to use on unknown thrown values without type guards. View in API reference

formatError()

Format error details for logging or display. Includes stack trace for Error instances when includeStack is true. View in API reference

isErrorType()

Check if an error represents a specific error type by code or name. Useful for conditional error handling based on error types. View in API reference

createErrorResult()

Create a standardized error result object. Common pattern for operations that return success: boolean, error?: string View in API reference

createSuccessResult()

Create a standardized success result object. View in API reference

isErrorResult()

Type guard for error results. View in API reference

isLafsSuccess()

Type guard for success responses. View in API reference

isLafsError()

Type guard for error responses. View in API reference

isGatewayEnvelope()

Type guard for gateway responses (has _meta). View in API reference