# PR Checklist
- [ ] Did you check if it works normally in all models? *ignore this
when it dosen't uses models*
- [ ] Did you check if it works normally in all of web, local and node
hosted versions? if it dosen't, did you blocked it in those versions?
- [ ] Did you added a type def?
# Description
I'm sorry to repeat it so many times, but I think this is really the
last time
# PR Checklist
- [ ] Did you check if it works normally in all models? *ignore this
when it doesn't use models*
- [ ] Did you check if it works normally in all of web, local and node
hosted versions? If it doesn't, did you block it in those versions?
- [ ] Did you add a type definition?
# Description
This PR adds support for the Spanish language in RisuAI. The key
components of the application have been translated, ensuring that users
can now interact with the platform in Spanish. Care was taken to retain
conceptual terms like "Jailbreak" and "prompt tags" in English to avoid
confusion. All translations were verified for clarity and consistency to
maintain a high-quality user experience across different deployment
environments (web, local, and node-hosted versions).
# PR Checklist
- [ ] Did you check if it works normally in all models? *ignore this
when it dosen't uses models*
- [ ] Did you check if it works normally in all of web, local and node
hosted versions? if it dosen't, did you blocked it in those versions?
- Due to issues with my development environment, I only tested in Node,
but it is expected to work in other environments as well.
- [x] Did you add a type def?
# Description
Added support for image generation using ComfyUI
# PR Checklist
- [ ] Did you check if it works normally in all models? *ignore this
when it dosen't uses models*
- [ ] Did you check if it works normally in all of web, local and node
hosted versions? if it dosen't, did you blocked it in those versions?
- [ ] Did you added a type def?
# Description
There appears to be a minor mistake here.
# PR Checklist
- [ ] Did you check if it works normally in all models? *ignore this
when it dosen't uses models*
- [ ] Did you check if it works normally in all of web, local and node
hosted versions? if it dosen't, did you blocked it in those versions?
- [ ] Did you added a type def?
# Description
With the recent increased utilization of custom styles, I've modified
the '{{chat_index}}' and '{{roll}}' cbs to cover a bit more cases.
Please review them to see if they meet your vision.

### 1 Access key was not added properly
First commit fixes this
### 2 Lua engine was getting killed when it waits for async function
runLua function gets run in two different paths (i.e. runLua for lua
edit triggers and another one for onOuput handling) However, when one of
invocations waits for another promise from js side (i.e. low level
function) to finish, it gives chance for next trigger mode to run which
would call `if(luaEngine){ luaEngine.global.close() }` that will close
lua engine for the invocation that was waiting for promise which is
problematic.
Second commit fixes this by having a pool of engine for each trigger
mode having single mutex that prevents running same engine at the same
time while allowing different tigger modes to run parallely
### 3 Break statements were missing making every trigger to run for
input event.
This was causing insane lagging and buggy behaviours. Third commit fixes
this.
Asset list can be different depending on character. Technically, we
should also invalidate cache when asset list is changed but I doubt
people will hit this case often. (bot maker somewhat hit it though so
maybe worth taking care of)