valadaptive
bf2b59279b
Move worldinfo endpoints into separate file
2023-12-06 20:00:51 -05:00
valadaptive
c746e6a426
Rename worldinfo API endpoints
2023-12-06 20:00:51 -05:00
valadaptive
cf2b074d4b
Move group endpoints into separate file
2023-12-06 20:00:31 -05:00
valadaptive
8027372fc2
Rename group API endpoints
2023-12-06 19:59:58 -05:00
valadaptive
dcde1bd5ba
Redirect deprecated chat endpoints
2023-12-06 19:59:32 -05:00
valadaptive
e870c35613
Move chat endpoints into separate file
2023-12-06 19:59:32 -05:00
valadaptive
6efe95f4f1
Rename chat API endpoints
2023-12-06 19:58:24 -05:00
Cohee
55d7bd6a87
Return last evaluation of random
2023-12-07 02:45:35 +02:00
Cohee
f575e0d61d
Add {{currentSwipeId}} / {{lastSwipeId}} macros
2023-12-07 02:35:24 +02:00
Cohee
393a15cd81
Run auto-executed STscripts after message rendered
2023-12-07 02:12:49 +02:00
Cohee
24aff67d50
Fix {{original}} macro left out if original is empty
2023-12-07 01:27:55 +02:00
Cohee
1683b76c65
Add awaiter to /recreatestats
2023-12-07 01:06:56 +02:00
Cohee
f3ae2e4046
Merge pull request #1477 from valadaptive/bool-simplify-1
...
Remove boolean equality checks from cliArguments
2023-12-07 00:59:28 +02:00
Cohee
cf256a547c
Remove unnecessary cast of "enableCorsProxy"
2023-12-07 00:57:23 +02:00
Cohee
6a516bf3eb
Require only one autorun argument to be true
2023-12-07 00:55:36 +02:00
Cohee
a83a6bc97b
Merge pull request #1472 from valadaptive/files-cleanup
...
Clean up assets and files API
2023-12-07 00:52:04 +02:00
valadaptive
9c850b0b0c
Fix double file extension on uploaded images
2023-12-06 17:29:10 -05:00
valadaptive
66da13b1bb
Use withFileTypes instead of stat'ing each file
2023-12-06 17:22:37 -05:00
valadaptive
5096e70c11
Move client-relative path logic to helper function
2023-12-06 17:22:37 -05:00
valadaptive
39d771cc4a
Replace path "\" with "/" server-side
2023-12-06 17:22:37 -05:00
valadaptive
795ca2247b
Return filename validation messages
2023-12-06 17:22:37 -05:00
valadaptive
41d427f4a8
Move sanitize call inside validation function
...
Also rename it (again) to validateAssetFileName.
2023-12-06 16:46:52 -05:00
Cohee
100dae5fd0
Merge pull request #1444 from valadaptive/characters-endpoint
...
Move character endpoints into their own module
2023-12-06 23:45:14 +02:00
Cohee
554bd2cf55
Merge pull request #1478 from LenAnderson/st-array-vars
...
add list accessors to /getvar and /getglobalvar
2023-12-06 22:11:25 +02:00
Cohee
5e282ac7b4
lint: infix spacing
2023-12-06 22:08:06 +02:00
Cohee
cd5a9e7669
Merge pull request #1476 from valadaptive/lint-more
...
Lint all top-level files, not just server.js
2023-12-06 21:53:42 +02:00
Cohee
d0a35deeec
Fix OpenAI presets extension
2023-12-06 21:46:08 +02:00
LenAnderson
ea7720a7de
add /len slash command
2023-12-06 19:03:20 +00:00
LenAnderson
a5c595d8ae
add list accessors to /getvar and /getglobalvar
2023-12-06 19:03:10 +00:00
valadaptive
e65d1ad20f
Remove boolean equality checks from cliArguments
...
yargs ensures that the Boolean options will always be booleans, so the
strict equality checks are unnecessary.
2023-12-06 13:29:58 -05:00
valadaptive
6713faa519
Lint all top-level files, not just server.js
2023-12-06 12:49:35 -05:00
valadaptive
7b13c5b37d
Redirect deprecated character endpoints
2023-12-06 12:05:01 -05:00
Cohee
64496425cc
Save chat before reloading
2023-12-06 17:23:54 +02:00
Cohee
bca43b11fa
Enable match whole words by default
2023-12-06 16:53:48 +02:00
Cohee
61f186764d
Fix QR bar popout position
2023-12-06 14:53:29 +02:00
Cohee
d36422e558
Fix/optimize bulk favorite
2023-12-06 01:56:07 +02:00
Cohee
60909cef1f
Fix server crash on import. Fix possible undefined warning
2023-12-06 01:02:48 +02:00
Cohee
b58f14d1d2
Fix bulk menu not working
2023-12-06 00:55:42 +02:00
Cohee
7f703704c7
Display loader on loading past chats
2023-12-06 00:42:41 +02:00
Cohee
d5628d822d
Merge pull request #1471 from valadaptive/remove-upload-endpoint
...
Remove "upload" endpoint from assets API
2023-12-06 00:13:10 +02:00
valadaptive
4faa20bb1f
Remove "upload" endpoint from assets API
...
I accidentally reintroduced this when splitting up the commits, I think
2023-12-05 15:02:30 -05:00
Cohee
6ea9269592
Merge pull request #1470 from valadaptive/sanitize-cleanup
...
Clean up file name sanitization
2023-12-05 16:45:00 +02:00
valadaptive
c00df4f45b
Clean up file name sanitization
...
- Checking for null bytes is unnecessary because the check for illegal
characters directly below it will catch them.
- We can use the path.extname method to get the file extension more
cleanly. It returns the *last* extension (e.g.
path.extname('file.foo.js') === '.js'), so behavior is preserved.
- Normalizing the path is unnecessary. We don't allow any path
separators in the file name, so it does nothing.
- Stripping '..', path separators, and '$' is unnecessary because of the
earlier illegal character check.
2023-12-05 09:25:45 -05:00
Cohee
356c3a4300
Fix amount gen on zen sliders
2023-12-05 14:12:06 +02:00
Cohee
c9fbe75566
Rename WI logic ONE => ANY
2023-12-05 12:04:27 +02:00
Cohee
ebe0f46f31
Merge pull request #1469 from Bronya-Rand/staging
...
Proper World Info logic checks
2023-12-05 11:57:34 +02:00
Bronya Rand
612005fb64
Merge branch 'staging' of https://github.com/Bronya-Rand/SillyTavern into staging
2023-12-05 03:00:28 -06:00
Bronya Rand
537e9428e0
proper revert cuz vsc revert weird...
2023-12-05 03:00:26 -06:00
Bronya Rand
3c72463c34
Merge branch 'staging' of https://github.com/Bronya-Rand/SillyTavern into staging
2023-12-05 02:56:56 -06:00
Bronya Rand
f9ecc77b10
revert changes after cohee fix
2023-12-05 02:56:52 -06:00