Commit Graph

203 Commits

Author SHA1 Message Date
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
Cohee 10264367aa WI editor visual QoL 2023-11-11 21:53:11 +02:00
Cohee 25b549b034 WI custom order (slight return) 2023-11-11 20:16:57 +02:00
Cohee 2d3fb08638 Add filter for missing WI entries 2023-11-04 20:02:38 +02:00
Cohee 890ae4bba9 Optimize WI layout 2023-11-04 17:44:43 +02:00
Aisu Wata 3eaff02c2f World Info Min Activations: min max depth default unlimited 2023-11-01 14:36:20 -03:00
Aisu Wata 77bde48a48 World Info Min Activations: added UI & persistence & budget respect 2023-11-01 14:02:38 -03:00
Aisu Wata 8203ebb835 world_info_min_activations 2023-10-30 18:55:32 -03:00
Cohee 922007ea25 #1294 Fix selective logic for embedded lorebooks 2023-10-28 12:28:03 +03:00
RossAscends b29f63f89e fix WI sliders 2023-10-27 03:01:25 +09:00
Cohee 5cdc3d1d18 Smudge groups depth prompts in Join mode. 2023-10-26 00:39:11 +03:00
Cohee 77f0fe5b80 Fix event typing 2023-10-17 13:55:02 +03:00
valden80 81f1bfd23f
Update world-info.js (revert personal new WI pos preference) 2023-10-17 03:15:18 +03:00
valden80 819b92a1d5
Force open Char WI with Shift
QoL - Force open character WI selector menu if icon clicked with Shift.
2023-10-17 03:10:57 +03:00
Cohee eaadb1c5c2 Prevent double insert of chat lore 2023-10-16 23:13:32 +03:00
Cohee 6a1b230c7e #1226 Add chat-bound lorebooks 2023-10-16 23:03:42 +03:00
kingbri 2c1a6ca67c World Info: Add scanning with AN
Add support for adding extension prompts into WI scanning. Doing this
required adding a method to get extension prompts by name. Now, AN
and depth prompts can be added to world info scanning.

However, since scanning just looks for keys in the chatlog, append
the extension prompts on the top of scanned text.

Signed-off-by: kingbri <bdashore3@proton.me>
2023-10-11 23:50:58 -04:00