Commit Graph

219 Commits

Author SHA1 Message Date
Cohee 542018cecb Fix group weight clamping 2024-05-06 22:55:31 +03:00
Cohee 694cf6f762 Fix field name 2024-05-06 17:27:43 +03:00
Cohee 83c77c1f18 Split group weight and trigger% 2024-05-06 17:00:42 +03:00
Cohee 75832c1ad6 Fix group removal 2024-05-05 01:08:49 +03:00
Cohee 39a54d158d Per-entry group scoring 2024-05-05 00:42:33 +03:00
Cohee 2bf9869e5f Add WI group scoring mode 2024-05-04 23:51:28 +03:00
Wolfsblvt f0adbc3c28 WI world search allows quick-select 2024-05-02 20:04:24 +02:00
Cohee 21edb655d3 Merge branch 'staging' into scored-search-sorting 2024-05-01 12:48:26 +03:00
Cohee 51f0d1f33e
Merge pull request #2169 from Wolfsblvt/fix-wi-whole-world
Fixes WI word matching not working for non-words
2024-05-01 11:07:31 +03:00
Wolfsblvt b33b5264e5 Improve performance of drawing WI panel
- Fix performance issue by unsubscribing events before redrawing the panel
2024-05-01 02:08:52 +02:00
Wolfsblvt 8ca50098d5 Fixes WI word matching not working for non-words
- Fixes the regex that matched WI keys as "whole words" not working correctly if the key itself was not a word
2024-04-30 23:51:47 +02:00
Wolfsblvt d1cdd60883 Scored search sorting for personas 2024-04-30 02:27:44 +02:00
Wolfsblvt a850352eab Scored search sorting for world info 2024-04-30 01:39:47 +02:00
Cohee a7d3130f9a Remove non-existent foreign lorebook extensions 2024-04-29 15:33:56 +03:00
Cohee 6ac6c7cfda #2159 Move debounce constants to a separate module 2024-04-28 19:47:53 +03:00
Wolfsblvt 61e2877c4b Debounce Character and Persona search 2024-04-28 06:27:55 +02:00
Wolfsblvt d7ade487b8 Refactor common enum for debounce timeouts 2024-04-28 06:21:47 +02:00
Wolfsblvt 6d04e93f34 Debounce WI search 2024-04-28 05:42:15 +02:00
Cohee 5ac0390446 Fix naming convention for LB extension fields 2024-04-27 21:03:55 +03:00
Cohee 413cec8a9f Merge branch 'staging' into wi-entry-inclusion-prio 2024-04-27 18:00:00 +03:00
Cohee 8e7ffab793
Merge pull request #2149 from Wolfsblvt/duplicate-wi-entries
Button to duplicate WI entries
2024-04-27 17:57:59 +03:00
Cohee 770aee4953 Adjust title widths 2024-04-27 17:52:47 +03:00
Wolfsblvt 2e562d187a Option to auto-sort tags (+UI improvements)
- Toggle to auto-sort tags alphabetically
- Init auto-sort based on current sorted state, if not chosen before
- Tag management redraw list if changes happen
- Tag management highlight renamed rows on auto-sort if they get automatically reordered
- Manual drag&drop of tags disables auto-sort option
- Small fixes to popup tag management pop drawing
- Utility function to flash highlight via CSS
2024-04-27 10:26:01 +02:00
Wolfsblvt b64b0e3362 Button to duplicate WI entries
- Add an option to duplicate a WI entry, copying everything besides UID
- moved UI move action on new WI entry to the UI function, not inside utility
2024-04-27 06:18:26 +02:00
Wolfsblvt dcb042681d Change group prio name, add default value set 2024-04-27 04:40:35 +02:00
Wolfsblvt 7df2f7e752 WI inclusion groups will never roll for trigger% 2024-04-27 03:44:00 +02:00
Wolfsblvt 8db39a58fb World Info inclusion group prio toggle 2024-04-27 02:23:37 +02:00
Cohee 4370db6bdc Implement World Info activation using Vector Storage 2024-04-23 03:09:52 +03:00
Cohee 022c180b62 Lint and clean-up 2024-04-15 00:39:15 +03:00
Cohee 306bff0a92 #2085 Switch to async token counters 2024-04-13 21:33:19 +03:00
Cohee b1c2617b0d Only init scroll height of WI keys when first opening the drawer 2024-04-05 13:53:39 +03:00
Cohee 3a0ceae80a Optimize scroll height resets on WI entry render, remove silly logs 2024-04-05 13:45:28 +03:00
Cohee 274abb4749
Merge pull request #2010 from aisu-wata0/wi_min_activations_perf_fix
performance: World Info min activations skips seen buffer
2024-04-04 21:35:36 +03:00
Aisu Wata 0d57f7ea4f fix: removed `recurseReset()` 2024-04-04 15:19:39 -03:00
Aisu Wata 5ab9d9b863 removed some remnant debug logs 2024-04-04 03:08:17 -03:00
Aisu Wata 95c910a521 fix: WI min activations skips seen buffer 2024-04-04 02:56:39 -03:00
Cohee bb6ac5147b Add roles to Author's Notes 2024-03-23 18:45:37 +02:00
Cohee 607df2f555 Add ability to insert role-typed prompt injections 2024-03-23 17:36:43 +02:00
Cohee 77784585ba Merge branch 'staging' into tags-as-folders-enhancements 2024-03-16 22:32:01 +02:00
Cohee 6b2374c405 Add function to write extension fields to character cards. 2024-03-12 01:49:05 +02:00
Cohee 596ab89ef7 Run macro substitution before adding text to WI recursion buffer 2024-03-10 00:52:27 +02:00
Wolfsblvt 5ac7826fec Tag Folders: Additional Fixes
- Refactored to one general printTagList method
- Made a robust getTagKeyForEntity function
- Fixed group not displaying tags if autoloaded
- Fixed added tags on character/groups not being auto sorted
- Fixed autoload of group/character that I killed
- Fixed typo
2024-03-07 23:48:50 +01:00
Cohee d024d7c700 Allow max value for per-entry depth 2024-02-27 23:34:07 +02:00
Cohee 9e5505a7d4 Autocomplete for WI automation IDs 2024-02-25 03:54:40 +02:00
Cohee 3cedf64f66 Add autocomplete for WI inclusion groups 2024-02-24 19:04:44 +02:00
Cohee 3441667336 #1853 Add WI/Script link by entry automation id 2024-02-24 17:22:51 +02:00
Cohee 82c5042bad Prevent extra loop iterations on buffer init 2024-02-23 21:23:44 +02:00
Cohee 4baefeba68 Extend per-entry scan depth limit, add warnings on overflow 2024-02-23 21:18:40 +02:00
Cohee e329bd8497 Fix JSdoc comments 2024-01-24 13:07:56 +02:00
Cohee c76cc20a7d Fix default value for new fields 2024-01-24 13:00:43 +02:00
Cohee 9cf29b3651 Breaking - Count scan depth as individual messages, not pairs. 2024-01-24 00:07:22 +02:00
Cohee 8a69f63044 #1727 Add per entry WI setting overrides 2024-01-23 22:44:20 +02:00
LenAnderson 628002587d Merge branch 'staging' into wi-duplicate 2024-01-09 14:25:09 +00:00
LenAnderson 1bf1f56b38 add duplicate world info button 2024-01-09 14:24:26 +00:00
Cohee aa796e5aae #1649 Fix deactivation of singular group entry per recursion step 2024-01-09 11:48:51 +02:00
Cohee ead0aa65ff #1649 Fix inclusion groups with recursion 2024-01-09 02:34:43 +02:00
Cohee 023cbf3cff
Merge pull request #1664 from LenAnderson/wi-fix-setentryfield-escapes
fix escape sequences in setentryfield slash command
2024-01-08 20:23:11 +02:00
LenAnderson 63938a0f7a fix escape sequences in setentryfield slash command 2024-01-08 17:58:17 +00:00
LenAnderson 9433a74fe8 fix typo 2024-01-07 19:19:46 +00:00
LenAnderson 7f8128b5d8 fix toggle toast content 2024-01-07 18:34:16 +00:00
Cohee b4298d1958 Merge branch 'staging' into wi-prevent-recurse 2024-01-07 19:03:40 +02:00
Cohee c54746b21c Fix world unset 2024-01-07 19:00:16 +02:00
Cohee 247048ebfa Use boolean selector 2024-01-07 18:58:30 +02:00
LenAnderson 49483e2e21 add optional arguments to /world command
- deactivate a single world
- toggle a world
- suppress toast messages
2024-01-07 11:36:44 +00:00
LenAnderson 9e34804ab0 add option on WI entries to prevent further recursion 2024-01-07 10:51:13 +00:00
Cohee a69f92444b Add AND ALL logic for WI secondary keys 2024-01-01 21:49:54 +02:00
LenAnderson 8cd75cf03d add event when world info is updated 2024-01-01 14:34:09 +00:00
Cohee 6c16b94f9d
Merge pull request #1540 from valadaptive/refactor-device-check
Refactor mobile device check
2023-12-15 17:01:32 +02:00
valadaptive fbdfa05f81 Replace usage of getDeviceInfo with isMobile
We were using getDeviceInfo to check whether we were on a desktop or a
mobile device. This can be done more simply with isMobile, which means
we can stop exporting getDeviceInfo.
2023-12-14 18:37:54 -05:00
valadaptive 769cc0a78f Rename settings API endpoints 2023-12-14 16:47:03 -05:00
Cohee 1b11ddc26a Add vector storage to WI scanning 2023-12-11 22:47:26 +02:00
Cohee c84b6a5101 Add WI inclusion groups 2023-12-07 20:06:06 +02:00
Cohee b1f68d886c Fix WI field access for UID = 0 2023-12-07 18:45:34 +02:00
valadaptive c746e6a426 Rename worldinfo API endpoints 2023-12-06 20:00:51 -05:00
Cohee c9fbe75566 Rename WI logic ONE => ANY 2023-12-05 12:04:27 +02:00
Bronya Rand 537e9428e0 proper revert cuz vsc revert weird... 2023-12-05 03:00:26 -06:00
Bronya Rand f9ecc77b10 revert changes after cohee fix 2023-12-05 02:56:52 -06:00
Bronya Rand a90fe54e5b bak should not be here 2023-12-04 16:05:05 -06:00
Bronya Rand f71b83b14f add comment on new code and add () for logic checks 2023-12-04 16:00:02 -06:00
Bronya Rand 085daaeff7 simplify and proper NOT check fix 2023-12-04 15:57:04 -06:00
Cohee 8bf18891b3 Add data model field for WI entry group 2023-12-04 18:47:35 +02:00
Cohee 64a3564892 lint: Comma dangle 2023-12-02 22:06:57 +02:00
Cohee 08fedf3a96 lint: Use 4 space indent 2023-12-02 21:56:16 +02:00
Cohee c63cd87cc0 lint: Require semicolons 2023-12-02 21:11:06 +02:00
valadaptive a37f874e38 Require single quotes 2023-12-02 13:04:51 -05:00
valadaptive 518bb58d5a Enable no-unused-vars lint
This is the big one. Probably needs thorough review to make sure I
didn't accidentally remove any setInterval or fetch calls.
2023-12-02 12:11:19 -05:00
valadaptive c893e2165e Enable no-prototype-builtins lint 2023-12-02 12:10:31 -05:00
valadaptive 97c49a405b Enable no-extra-boolean-cast lint 2023-12-02 10:32:26 -05:00
valadaptive 27e63a7a77 Enable no-case-declarations lint 2023-12-02 10:32:26 -05:00
valadaptive 7c3dd75e6a Enable no-fallthrough lint 2023-12-02 10:32:07 -05:00
Cohee 9ad42025e5 Add depth to entry template 2023-12-01 22:09:13 +02:00
Cohee 07962e0e4e Add /setentryfield command 2023-12-01 21:51:49 +02:00
Cohee fae90f8227 Add validation messages 2023-12-01 02:25:55 +02:00
Cohee 27d27127e0 Fix docstring typo 2023-12-01 02:11:47 +02:00
Cohee fe355c5d4f Add MVP set of WI manipulation commands 2023-12-01 01:50:10 +02:00
RossAscends 3ec692e76c fix /world unsetting function 2023-11-26 05:26:41 +09:00
nonenothingnada bca21ec9b6
Bugfix: World Info - NOT operator only considers first secondary key
Small fix to correct the behavior of the World Info NOT operator with a list of secondary keys to what was (hopefully) intended. Previously only the first secondary key was ever checked. Now each primary key should be checked against each secondary key with a single match invalidating the entry activation.
2023-11-15 12:11:09 +01:00
Cohee f24aae546c Filter WI entries by tags 2023-11-14 23:54:08 +02:00
Cohee 0d4e5c31e2 Code clean-up 2023-11-12 22:35:17 +02:00
Cohee 5d34c8aef5 Merge branch 'staging' of https://github.com/SillyTavern/SillyTavern into staging 2023-11-11 21:53:15 +02:00