t and other agencies or persons with relevant information shall be heard to determine whether the child is an appropriate candidate for the matter to be dismissed without prejudice to the commonwealth and, in lieu of delinquency or criminal proceedings, a care and protection petition or a child in need of services petition may be filed and heard; provided, however, that no delinquency or criminal