I will then prepare the required PRs in the next days:
- Inject the module type into the context (core): [automation] AbstractScriptModuleHandler: Inject module type ID into context by florian-h05 · Pull Request #5054 · openhab/openhab-core · GitHub
- Make event object conversion work independent from wrapper (add-on): [jsscripting] Make event object conversion work independent of wrapper by florian-h05 · Pull Request #19429 · openhab/openhab-addons · GitHub
- Always enable wrapper for actions & Make it only configurable for conditions, default to off there (add-on PR)
- Implement the directive. We can easily make it work for both actions and conditions to have a way of disabling the wrapper if required, though this is not expected. I am against documenting this directive for actions though, will only cause confusion. (add-on PR)
The add-on PRs might be combined into a bigger one.