did you try to ask perplexity AI ? maybe it can help. it seems to be aware of the factorio mod api, lua, version changes and helicopter-revival mod.
i was just using it for my job and thought of this mod problem here. i'll try it this evening on my own, but liked to share this thought.
https://www.perplexity.ai/search/how-to-write-a-mod-for-factori-c2eIGASSTR2qFGZzZGjvKA#8
But always be aware of wrong AI answers.
No offence, but I have a burning disdain for AI. I have no interest in using it at my work or for my hobbies. Besides; I think most people are getting sick and tired of getting force-fed AI everywhere... Including stuffing it in toothbrushes.
I do find it hilarious, though - People always say "be mindful of wrong answers in AI..."
If you need to double- and triple-check stuff after AI, what's the point of even using it? Wouldn't it be faster just to do it yourself?
Besides, as said before - the working solution is already in the repo, but there are some issues that might be a computer- or save-related.