Commit Graph

32 Commits

Author SHA1 Message Date
nerix ab66be21b3 feat(plugins): add c2.WebSocket (#6076) 2025-04-07 17:38:10 +00:00
Mm2PL ea02a42162 Fixed a potential way to escape the Lua Plugin sandbox (#5846) 2025-01-22 01:35:52 +00:00
Mm2PL fe05b5994c Fix: Take Lua HTTP callbacks as sol::main_protected_function (#5800)
Co-authored-by: Nerixyz <nerixdev@outlook.de>
2025-01-06 22:18:39 +01:00
nerix ecfb35c9b7 fix(luals-meta): Use opaque enum values and correct HTTP types (#5682) 2024-11-02 11:22:17 +00:00
Mm2PL 352a4ec132 Move plugins to Sol (#5622)
Co-authored-by: Nerixyz <nerixdev@outlook.de>
Co-authored-by: Rasmus Karlsson <rasmus.karlsson@pajlada.com>
2024-10-20 11:57:05 +02:00
pajlada ac88730563 fix: remove deprecated Application::getTwitchAbstract (#5560) 2024-08-25 11:38:57 +00:00
pajlada 5deec1f02f chore: remove Singleton & replace getIApp with getApp (#5514) 2024-07-21 13:09:59 +00:00
pajlada 973b7a3bdd Add extra context to messages that are added to channels, allowing the logging controller to take more responsibility in what messages to log (#5499)
Co-auhtored-by: James Upjohn <jupjohn@jammeh.co.nz>
2024-07-13 11:15:11 +00:00
2547techno 93fbcbbe5f fix plugin http types & docs (#5494) 2024-07-06 00:02:21 +00:00
Mm2PL c980162656 Introduce HTTP API for plugins (#5383) 2024-06-22 10:04:30 +00:00
nerix 052dbd7d2c fix: check state when completing commands (#5401) 2024-06-19 12:46:54 +00:00
pajlada b6dc5d9e03 chore: refactor TwitchIrcServer (#5421) 2024-06-01 12:56:40 +00:00
nerix ec6b1ef24d fix(luals-meta): generate globals in c2 and echo @lua commands (#5385)
Co-authored-by: Mm2PL <miau@mail.kotmisia.pl>
2024-05-22 15:23:33 +02:00
nerix c1bd5d11d0 refactor: improve LuaLS generator (#5283) 2024-03-30 22:11:52 +01:00
Mm2PL d4b8feac7d lua: Change CompletionRequested handler to use an event table. (#5280) 2024-03-30 14:23:02 +00:00
nerix ed20e71db4 refactor: adapt magic_enum to Qt (#5258) 2024-03-23 11:22:42 +00:00
pajlada 3563ecb3a5 fix: Compile Lua as a C library (#5251) 2024-03-16 14:15:05 +00:00
Mm2PL 658fceddaa Add plugin permissions and IO API (#5231) 2024-03-09 19:16:25 +00:00
Mm2PL a737d4b755 Introduce c2.later() function to Lua API. (#5154) 2024-02-25 11:45:59 +00:00
Mm2PL a5ac06124d Update plugin documentation document (#5185)
* Add blurb about LuaLS type definitions

* Add c2.Channel documentation replacing c2.send_msg and c2.system_msg

* Use snake_case for command names in examples

to align to Lua naming convention

* Unrelated: add missing ChannelType
2024-02-18 21:09:19 +00:00
Mm2PL 4a4f62dc4a Make Lua CommandContext use a ChannelRef (#5184) 2024-02-18 19:55:00 +00:00
Mm2PL 8e9aa87a08 Add a new Channel API for experimental plugins feature (#5141) 2024-02-03 19:12:00 +01:00
pajlada 4380ef8c5f refactor: Remove most raw accesses into Application (#5104) 2024-01-19 17:59:55 +01:00
pajlada 718696db53 refactor: Un-singletonize Paths & Updates (#5092) 2024-01-16 20:56:43 +00:00
Mm2PL 69a54d944d Autogenerate docs/plugin-meta.lua (#5055) 2023-12-30 10:26:19 +00:00
pajlada d085ab578f refactor: Make Args less of a singleton (#5041)
This means it's no longer a singleton, and its lifetime is bound to our application.
This felt like a good small experiment to see how its changes would look
if we did this.
As a shortcut, `getApp` that is already a mega singleton keeps a
reference to Args, this means places that are a bit more difficult to
inject into call `getApp()->getArgs()` just like other things are
accessed.
2023-12-29 15:40:31 +01:00
Mm2PL 5f8c4c6b66 BREAKING: Replace custom import() with normal Lua require(). (#5014)
* Use require() instead of a custom import()

* Also search relative to the current file

* Update documentation
2023-12-16 12:16:54 +00:00
Mm2PL fd4cac2c2c Add a new completion API for experimental plugins feature. (#5000)
Co-authored-by: Rasmus Karlsson <rasmus.karlsson@pajlada.com>
2023-12-10 13:41:05 +00:00
Mm2PL c3d3903b6f feat: add --safe-mode command line option (#4985)
This ensures the settings button isn't hidden, and disables plugins from being loaded to make sure the user can always recover from messing things up
2023-12-05 17:37:42 +00:00
pajlada e327ed4166 Update magic_enum from v0.9.3 to v0.9.5 (#4992)
* Fix include path for magic enum
* Update .clang-format to ensure magic enum is caught as a third party library
2023-12-01 15:03:04 +01:00
nerix 149399a072 Fix plugin compilation error when using Qt 6 (#4504) 2023-04-02 20:30:15 +02:00
Mm2PL 5ba809804e Add basic lua scripting capabilities (#4341)
The scripting capabilities is locked behind a cmake flag, and is not enabled by default.

Co-authored-by: nerix <nerixdev@outlook.de>
Co-authored-by: pajlada <rasmus.karlsson@pajlada.com>
2023-04-02 15:31:53 +02:00