feat: typed input parsing and argv construction (Phase 1) (#567)