Commit Graph

7498 Commits

Author SHA1 Message Date
Wolfsblvt 56265540db sanitize HTML on html returns
- I had it in there for some time, I even tested it... likely gone during some commits
2024-10-01 01:23:34 +02:00
Cohee d96bb3dcea Merge branch 'send-commands-return-value' of https://github.com/SillyTavern/SillyTavern into send-commands-return-value 2024-10-01 01:55:24 +03:00
Wolfsblvt 398ae6ba2e Update doReturn() API with objectToHtmlFunc
- Allow future commands to provide a different "object to HTML" converter func than "object to text", if need be
2024-10-01 00:53:19 +02:00
Cohee d82dc4952b Merge branch 'staging' into send-commands-return-value 2024-10-01 01:52:33 +03:00
Wolfsblvt f317b1b764 Oversight, missed /send in refactoring... 2024-10-01 00:41:14 +02:00
Wolfsblvt 7a1b43eb89 Refactor /classify-expressions, deprecating...
- Update /classify-expressions, deprecating the old "format"
- Fix some oversights
2024-10-01 00:37:21 +02:00
Cohee 63c74468fc
Merge pull request #2926 from notfiz/gemini-fix
fix google-ai reverse proxy ignoring user provided path
2024-10-01 01:28:23 +03:00
Wolfsblvt 697b3b2034 Refactor /listvar, deprecate its "format" arg
- Update /listvar
- Fix toasts not doing correct HMTL here
2024-10-01 00:23:00 +02:00
Wolfsblvt 62fd450c59 Refactor /listinjects, deprecate its "format" arg 2024-10-01 00:06:18 +02:00
Wolfsblvt e3c0c5442c Update /ask with return types, defaulting 'pipe' 2024-09-30 23:37:21 +02:00
Wolfsblvt d8379edee7 Update return types as optional via named arg
- Update the modified slash commands for chat sending to use the named arg
- Add `slashCommandReturnHelper` for shared funcitonality on return type usage
2024-09-30 23:32:24 +02:00
notfiz 0df5a86ae8 fix google-ai reverse proxy ignoring user provided path 2024-10-01 00:53:14 +03:30
Cohee c42df886c5
Merge pull request #2925 from SillyTavern/fix-math-commands
Fix and improve math slash commands
2024-09-30 23:56:15 +03:00
Cohee 3fd846fb5b Allow returning literal Infinity string from math operations 2024-09-30 23:52:01 +03:00
Cohee bed7df0038 Merge branch 'staging' into fix-math-commands 2024-09-30 23:26:04 +03:00
Cohee bc05c8de15
Merge pull request #2923 from SillyTavern/fix-piping-split-unnamed-args
Fix piping not actually using/inputting an array for empty unnamed args
2024-09-30 23:25:20 +03:00
Wolfsblvt 2dc7b5ded1 Allow using JSON arrays for math commands
- applies to all that receive a list. /add, /sub, /min, /max etc
- Parsing is the same as the other commands where we already allow "LIST" as an argument.
2024-09-30 21:24:22 +02:00
Cohee 56e9b51f4e
Merge pull request #2918 from SillyTavern/char-find-and-sendas-extended
Char find and sendas extended
2024-09-30 22:22:13 +03:00
Cohee 0d83480e90 Merge branch 'staging' into char-find-and-sendas-extended 2024-09-30 22:15:38 +03:00
Wolfsblvt 8ff2ef086b Update defs and enums for other math commands
- Now even the commands like `/div count charnumber` work well with auto complete
2024-09-30 20:59:42 +02:00
Wolfsblvt 224249a0d2 Fix /sub actually allowing more than two vals now
- Fix by subtracting all from the first value
- Update the definition too
2024-09-30 20:50:18 +02:00
Wolfsblvt 4855f25419 Update /mul, /max and /min definition
- Update command definition for /mul, /max and /min to fit the actual code behind, split them too
- Add numbersAndVariables enum provider, to centralize
2024-09-30 20:45:39 +02:00
Wolfsblvt 0d38e63471 Why join and then split again, eh?
- Refactor /add actually using the array provided as the array for the internal `parseNumericSeries` inside `performOperation`
2024-09-30 20:28:52 +02:00
Wolfsblvt 140aeb2bb7 Fix piping not using array for empty unnamed args
- Lenny said if `splitUnnamedArgument` is enabled, the callback should always receive an array.
- It is intended that if no value was provided, it'll get an array with an empty string. Because.. if no argument was provided for a non-split arg, it'll receive an empty string too.
2024-09-30 20:22:44 +02:00
Wolfsblvt 1c65a5badd Update /ask toasts to warnings for consistency 2024-09-30 18:38:17 +02:00
Wolfsblvt 1128de91f4 /send with return value too
- /send
- return message on `sendMessageAsUser` now
2024-09-30 18:32:21 +02:00
Wolfsblvt 0ab74f0819 Update return values of send commands
- /sendas
- /sys
- /comment
2024-09-30 18:30:09 +02:00
Wolfsblvt 5952c35402 Refactor if checks on /sendas 2024-09-30 18:13:13 +02:00
Cohee dedb96ec8d Don't trim on whitespace user prefix sequence 2024-09-30 15:05:15 +00:00
RossAscends 8cb4aa6a49 whoopsie daisey 2024-09-30 22:00:38 +09:00
RossAscends da161b9628 Merge branch 'staging' of https://github.com/Cohee1207/SillyTavern into staging 2024-09-30 21:49:41 +09:00
RossAscends 020741d78b make AF panel toggles red and opaque when disabled 2024-09-30 21:49:39 +09:00
Cohee 8061f45368 RossMods: Debounce online status display 2024-09-29 19:13:19 +03:00
Cohee 2f43c8e227 Fix /ask in neutral chats 2024-09-29 19:12:26 +03:00
Wolfsblvt 314771fd9a Fix /sendas wrong name being used 2024-09-29 17:32:18 +02:00
Wolfsblvt 7c2fcbc522 Fix non-provided name not correctly preferring cur 2024-09-29 17:00:28 +02:00
Cohee 9f0c2300d2 Add connection map aliases 2024-09-29 16:24:40 +03:00
Wolfsblvt 8e445c75ae Fix bug with undefined char on empty chats 2024-09-29 13:38:15 +02:00
Cohee 57bbd349a0 Merge branch 'staging' into char-find-and-sendas-extended 2024-09-29 13:37:09 +03:00
Cohee 53424d4c8e
Merge pull request #2917 from SillyTavern/st-parser-accept-multiple-named
STscript allow named arguments to be an array
2024-09-29 13:36:33 +03:00
Cohee c3d5fba598 Support multiple in /setpromptentry 2024-09-29 12:48:40 +03:00
Wolfsblvt cc527a3a33 Correct async calls to init scrapers 2024-09-29 11:27:07 +02:00
Wolfsblvt ab83138b1e missing closing tag 2024-09-29 11:02:54 +02:00
Wolfsblvt 44c8d45957 missing import 2024-09-29 04:02:00 +02:00
Wolfsblvt d7bad6335c Refactor findChar to utils
- Refactor and move finChar to utils, instead of slashcommands function
- Refactor scrapers to use actual init functionality
2024-09-29 03:20:01 +02:00
Wolfsblvt edcf52e3a8 Update more commands for new char find
- Update /member-add to utilize new char find functionality
- Update /tag-add, /tag-remove, /tag-exists and /tag-list to utilize new char find functionality
. Update /lastsprite to utilize new char find functionality
2024-09-29 02:54:12 +02:00
Wolfsblvt 145023ba8d Update existing slash commands to findChar
- Update /gen to utilize new char find functionality
- Update /go to utilize new char find functionality
- Update /delname to utilize new char find functionality
- Change /send persona search to equalsIgnoreCaseAndAccents
2024-09-29 02:36:33 +02:00
Wolfsblvt d6e52dbb97 Update /ask with new char find functionality 2024-09-29 02:14:06 +02:00
Wolfsblvt ca009dee59 Respect tags for current char(s) selection
- Respect tags for prefer current char(s)
- Fix preferCurrentChar not being true by default
2024-09-29 01:17:13 +02:00
Wolfsblvt 5a0e70e8fa Add "quiet" to /char-find 2024-09-29 00:55:41 +02:00