If at the examination before the judge or magistrate it appears that the person held is the person charged with having committed the crime alleged and, except in cases arising under AS 12.70.050, that the person has fled from justice, the judge or magistrate shall commit the person to jail for not more than 30 days, as will enable the arrest of the accused to be made under a warrant of the governor on a requisition of the executive authority of the state having jurisdiction of the offense, unless the accused gives bail as provided in AS 12.70.150, or until legally discharged. The commitment by the judge or magistrate shall be by a warrant that shall recite the following:
(1) the accusation against the accused;
(2) the fact that the commitment is for a time as will enable the arrest of the accused to be made under a warrant of the governor of this state; and
(3) that in any event the commitment shall be for not more than 30 days.