Thank you for your submission, an automated scan of your plugin code's revealed the following issues:

### Required

[[1](https://github.com/jcollingj/caret/blob/f51e1cb8c2c9448061df5a64f0eca04ab60ec9cd/main.js)]:Please remove the `main.js` file from the repo and add it to your .gitignore. Compiled release files shouldn't get mixed with source code in your commits and should go to the releases files instead.

[[1](https://github.com/jcollingj/caret/blob/f51e1cb8c2c9448061df5a64f0eca04ab60ec9cd/modals/inlineEditingModal.ts#L23)][[2](https://github.com/jcollingj/caret/blob/f51e1cb8c2c9448061df5a64f0eca04ab60ec9cd/modals/inlineEditingModal.ts#L24)][[3](https://github.com/jcollingj/caret/blob/f51e1cb8c2c9448061df5a64f0eca04ab60ec9cd/modals/inlineEditingModal.ts#L31)][[4](https://github.com/jcollingj/caret/blob/f51e1cb8c2c9448061df5a64f0eca04ab60ec9cd/modals/inlineEditingModal.ts#L32)][[5](https://github.com/jcollingj/caret/blob/f51e1cb8c2c9448061df5a64f0eca04ab60ec9cd/modals/inlineEditingModal.ts#L33)][[6](https://github.com/jcollingj/caret/blob/f51e1cb8c2c9448061df5a64f0eca04ab60ec9cd/modals/inlineEditingModal.ts#L35)][[7](https://github.com/jcollingj/caret/blob/f51e1cb8c2c9448061df5a64f0eca04ab60ec9cd/modals/inlineEditingModal.ts#L36)][[8](https://github.com/jcollingj/caret/blob/f51e1cb8c2c9448061df5a64f0eca04ab60ec9cd/modals/removeCustomModel.ts#L17)][[9](https://github.com/jcollingj/caret/blob/f51e1cb8c2c9448061df5a64f0eca04ab60ec9cd/modals/removeCustomModel.ts#L45)][[10](https://github.com/jcollingj/caret/blob/f51e1cb8c2c9448061df5a64f0eca04ab60ec9cd/modals/systemPromptModal.ts#L21)][[11](https://github.com/jcollingj/caret/blob/f51e1cb8c2c9448061df5a64f0eca04ab60ec9cd/modals/systemPromptModal.ts#L22)][[12](https://github.com/jcollingj/caret/blob/f51e1cb8c2c9448061df5a64f0eca04ab60ec9cd/views/workflowEditor.ts#L375)][[13](https://github.com/jcollingj/caret/blob/f51e1cb8c2c9448061df5a64f0eca04ab60ec9cd/views/workflowEditor.ts#L376)][[14](https://github.com/jcollingj/caret/blob/f51e1cb8c2c9448061df5a64f0eca04ab60ec9cd/main.ts#L1046)][[15](https://github.com/jcollingj/caret/blob/f51e1cb8c2c9448061df5a64f0eca04ab60ec9cd/main.ts#L1047)][[16](https://github.com/jcollingj/caret/blob/f51e1cb8c2c9448061df5a64f0eca04ab60ec9cd/main.ts#L1048)][[17](https://github.com/jcollingj/caret/blob/f51e1cb8c2c9448061df5a64f0eca04ab60ec9cd/main.ts#L1049)][[18](https://github.com/jcollingj/caret/blob/f51e1cb8c2c9448061df5a64f0eca04ab60ec9cd/main.ts#L1050)][[19](https://github.com/jcollingj/caret/blob/f51e1cb8c2c9448061df5a64f0eca04ab60ec9cd/main.ts#L1051)][[20](https://github.com/jcollingj/caret/blob/f51e1cb8c2c9448061df5a64f0eca04ab60ec9cd/main.ts#L1494)][[21](https://github.com/jcollingj/caret/blob/f51e1cb8c2c9448061df5a64f0eca04ab60ec9cd/components/chat.tsx#L54)][[22](https://github.com/jcollingj/caret/blob/f51e1cb8c2c9448061df5a64f0eca04ab60ec9cd/components/chat.tsx#L55)]:You should avoid assigning styles via JavaScript or in HTML and instead move all these styles into CSS so that they are more easily adaptable by themes and snippets.


[[1](https://github.com/jcollingj/caret/blob/f51e1cb8c2c9448061df5a64f0eca04ab60ec9cd/modals/insertNoteModal.ts#L65)][[2](https://github.com/jcollingj/caret/blob/f51e1cb8c2c9448061df5a64f0eca04ab60ec9cd/views/workflowEditor.ts#L336)]:Using `innerHTML`, `outerHTML` or similar API's is a security risk. Instead, use the DOM API or the Obsidian helper functions: <https://docs.obsidian.md/Plugins/User+interface/HTML+elements>

[[1](https://github.com/jcollingj/caret/blob/f51e1cb8c2c9448061df5a64f0eca04ab60ec9cd/main.ts#L34)]:You should change all instances of `var` to either `const` or `let`. `var` has function-level scope, so it can easily lead to bugs if you're not careful. Here's a pretty good guide with examples of why not to use `var`: [why `var` is obsolete](https://javascript.plainenglish.io/4-reasons-why-var-is-considered-obsolete-in-modern-javascript-a30296b5f08f)



---

### Optional

[[1](https://github.com/jcollingj/caret/blob/f51e1cb8c2c9448061df5a64f0eca04ab60ec9cd/main.ts#L289)][[2](https://github.com/jcollingj/caret/blob/f51e1cb8c2c9448061df5a64f0eca04ab60ec9cd/main.ts#L499)][[3](https://github.com/jcollingj/caret/blob/f51e1cb8c2c9448061df5a64f0eca04ab60ec9cd/main.ts#L820)][[4](https://github.com/jcollingj/caret/blob/f51e1cb8c2c9448061df5a64f0eca04ab60ec9cd/main.ts#L930)][[5](https://github.com/jcollingj/caret/blob/f51e1cb8c2c9448061df5a64f0eca04ab60ec9cd/main.ts#L1025)][[6](https://github.com/jcollingj/caret/blob/f51e1cb8c2c9448061df5a64f0eca04ab60ec9cd/main.ts#L2014)]:Casting to `any` should be avoided as much as possible.



---



Do <b>NOT</b> open a new PR for re-validation.
Once you have pushed all of the required changes to your repo, the bot will update the labels on this PR within 6 hours.
If you think some of the required changes are incorrect, please comment with `/skip` and the reason why you think the results are incorrect.