refactor(agent): Use heartbeat pkg for job-heartbeating