Commit Graph

165 Commits

Author SHA1 Message Date
058fef1146 Update Jimp and add WASM plugins (#3784)
* Update jimp, use WASM format plugins

* Fix Jimp import path in thumbnails endpoint

* Fix size variable

* Add fetch patch to handle file URLs

* Fix JPEG thumbnailing

* Enhance fetch patch to validate file paths and support specific extensions

* Add default msBmp format

* Update jsconfig

* Update JPEG color space in thumbnail generation to YCbCr

* Install jimp plugins explicitly

* Refactor fetch patch utility functions
2025-04-01 21:55:21 +03:00
6af3f2ee7e Remove unused splitSentences function from utils.js 2025-03-12 23:29:55 +02:00
1b817cd897 Kokoro: chunk generation, add pre-process func
#3412
2025-03-12 21:35:09 +02:00
e7189a1260 Refactor hideMessageCallback and unhideMessageCallback to remove unnecessary console logs. Introduce onlyUniqueJson and sortIgnoreCaseAndAccents utility functions 2025-03-12 10:18:02 +02:00
1026e1f8e9 Add "name" argument to /hide and /unhide. Add default value for unnamed argument 2025-03-11 23:14:31 +02:00
e23f3a6314 feature: 'kokoro-js' supports TTS #3412 (#3656)
* feature: 'kokoro-js' supports TTS #3412

* Linting, add credits for kokoro library

* Fix voice preview

* Fix display languages on previews

* Fix settings restoration. Debounce model init on settings change

* Fix engine sorting

* Move TTS processing to a web worker. Remove unused gain setting

* Speaking rate fix

* Update status when recreating a worker

* Pass voices list from TTS engine

* Call dispose function on provider change

* Extend worker init timeout to 10 minutes

---------

Co-authored-by: ryan <1014670860@qq.com>
Co-authored-by: Cohee <18619528+Cohee1207@users.noreply.github.com>
2025-03-10 22:54:54 +02:00
8aadada0e2 utility: let setInfoBlock also clear 2025-02-22 21:50:58 +01:00
8bd4fd76ae Merge branch 'staging' into persona-improvements 2025-02-22 19:23:59 +01:00
434bdab585 Merge branch 'staging' into fix-char-rename-aux-connections 2025-02-17 20:57:23 +02:00
4f0921856f On char rename, update auxiliary connections
- Move WI char lore (additional lorebooks) based on rename
- Move character-bound Author's Note based on rename
- Extend core `getCharFilename` to be able to take an avatarKey, instead of just uid
2025-02-17 05:32:13 +01:00
9590127bae Handle auto parsing reasoning during streaming
- Add function to handle auto parsing reasoning from the streamed message during streaming
- Only works when the reasoning prefix is EXACTLY at the beginning of the message
- Tried to keep this lightweight, no regex parsing, remembering the index, so it's simple string splicing
- Add utility function that trims a string only if `trim_spaces` is enabled
2025-02-16 03:09:20 +01:00
21af0243d6 Rework reasoning CSS selectors and fixes
- Remove reliance on :empty state of reasoning textbox, now using the actual css class on mes (".mes.reasoning")
- Fix reasoning add not working when Auto-Expand is not enabled
- Clean setting of dataset attributes, now removing when null
2025-02-11 21:45:54 +01:00
07ef5122bb Add fallback timeout to runAfterAnimation 2025-01-30 22:00:30 +02:00
f9324c74cd Streamline persona toasts, infos and states
- Added "info" block to persona description panel to show when a temporary persona is in use. Hide the long text behind a tooltip
- Reduce toast spam even further, not showing toasts when persona panel is open
- Restyle connection state buttons a bit
- Designed common 'info-block' utility to show markdown-like info blocks, with CSS styling
2025-01-30 00:50:48 +01:00
6e2b5d5dc8 Fix copy actions for non-HTTPS/localhost
Fixes #2352
2025-01-16 01:55:26 +02:00
f869b26664 Ensure unique selectors for loaded extension files 2025-01-09 22:32:15 +02:00
e33e0b1e64 trimToEndSentence: fix emoji trim after whitespace 2024-12-26 10:45:10 +02:00
713c05f808 Add /getcharlore and /getpersonalore commands
Closes #3183
2024-12-14 18:48:14 +02:00
bcbfcb87b5 aphrodite: send an empty sampler priority list if using the default order 2024-12-09 14:05:33 +00:00
9493d05f2c Localize only the moment instance 2024-10-28 11:01:48 +02:00
f918b146e7 Merge branch 'staging' into webpack 2024-10-17 23:08:36 +03:00
a3693ccf6d Use deepMerge to combine payloads 2024-10-17 22:45:33 +03:00
2620522333 Revert epubjs vendoring 2024-10-17 20:59:42 +03:00
e48cf68a13 Revert pdfjsLib vendoring 2024-10-17 20:53:18 +03:00
81bdeb6da8 unvendor: Replace moment 2024-10-17 02:02:45 +03:00
ca844c8b0a unvendor: Replace Readability 2024-10-17 01:30:04 +03:00
a32fe00e34 unvendor: Replace pdfjs-dist 2024-10-17 01:16:39 +03:00
553920ee8e unvendor: Replace epubjs 2024-10-17 01:03:33 +03:00
3387fe4bd6 unvendor: Replace DOMPurify 2024-10-16 23:11:13 +03:00
7c2fcbc522 Fix non-provided name not correctly preferring cur 2024-09-29 17:00:28 +02:00
8e445c75ae Fix bug with undefined char on empty chats 2024-09-29 13:38:15 +02:00
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
a18dae8f69 Remove "include newlines" checkbox from context formatting settings 2024-09-22 19:55:43 +03:00
157461ef7f fix \x01 display in modern WI editor 2024-09-19 00:20:31 +08:00
827fce4542 Move string utils to shared module 2024-09-07 21:19:33 +03:00
bcd8a28367 Case-insensitive icon search 2024-09-06 14:22:36 +00:00
0388d3eb6c make alternative class names searchable in FontAwesome icon picker 2024-09-06 10:07:50 -04:00
ac0c33eb76 Use CSS.supports to determine auto-fit validity 2024-09-05 20:00:45 +03:00
8e1dad6800 initial reversion commit 2024-09-06 01:48:21 +09:00
011f785a79 Better switch value 2024-09-01 23:25:29 +03:00
5563d49184 Don't throw in array/dict conversion 2024-09-01 11:44:56 +03:00
3746f08590 Add type conversion for /setvar commands with index 2024-08-29 12:55:54 +00:00
0baca3b7d3 Merge branch 'staging' into wi-go-brrrrrr-too 2024-08-06 00:29:24 +03:00
bc9eb080e5 Cannot recalc scrollHeight before resetting it
- Fixed Ross' fuck-up. You can thank me later
2024-08-05 07:53:24 +02:00
64e716bb62 async for resetScrollHeight, slightly faster WI/AF panel loads 2024-08-05 12:03:46 +09:00
3523ec334d Improve performance on fancy key selector init 2024-08-05 01:06:37 +02:00
4966139fd1 Improve performance of expand/close all WI button 2024-08-05 00:09:50 +02:00
2470f775e2 Merge branch 'staging' into parser-followup-2 2024-07-28 08:32:25 -04:00
af227a0191 refactor: timestampToMoment, parseTimestamp
parseTimestamp now returns an ISO 8601 string instead of a moment (currently, only timestampToMoment uses parseTimestamp)
timestampToMoment now does the parsed timestamp conversion itself
2024-07-26 11:29:41 -05:00
19c7e1c763 Merge branch 'staging' into parser-followup-2 2024-07-25 18:02:29 -04:00