@johnnydoe
I realize your pain, Nikita. I adhere to the strategy of "as few intermediaries as possible" between your script and Farcaster in this case.
For example, why would anyone use a Farcaster frame creation framework? Some even use React. Although pure JS script for working with frames takes 100 lines of code :)