When will the Cursor plug-in API be supported?

Want to count the number of lines of code generated by AI? How much is used? How to count? Is there a plugin api that can support it?

Have you found a good solution