fix dev-agent package issue & add private token support