Commit Graph

426 Commits

Author SHA1 Message Date
bmen25124
bc08d42d0e Progress on move entry
* Fixed header alignment
* Building HTML with browser api instead of string.
* jqueryElement.data(key, value) usages converted to jqueryElement.attr(data-key, value)
* Logs simplified
* Removed success toastry message
2025-03-27 06:21:52 +03:00
bmen25124
f14c73bfcc Added move button for lorebook entries 2025-03-27 04:53:16 +03:00
Cohee
8d06582b58 Add expand editor for WI content
Closes #3764
2025-03-26 21:15:41 +02:00
bmen25124
80e1226d28 Exported reloadEditor 2025-03-23 03:40:04 +03:00
Cohee
20cdcc37fc Fix fixable lints 2025-03-19 20:00:33 +02:00
bmen25124
8dc66bd21b Better WI type readability, fixed clone and type opeators. 2025-03-17 00:13:39 +03:00
bmen25124
0e41db615e New exports 2025-03-16 23:44:02 +03:00
Cohee
12824bb680 Clear cached WI on deletion
Fixes #3672
2025-03-12 23:38:10 +02:00
Cohee
0088333ebf WI: Fix adding empty text to recursion buffer 2025-03-03 00:05:35 +02:00
Cohee
2df140a6a9 Fix world info binding and alt.greetings editor for first char in the list
Possibly fixes #3579
2025-02-28 10:16:42 +02:00
Wolfsblvt
8bd4fd76ae Merge branch 'staging' into persona-improvements 2025-02-22 19:23:59 +01:00
Cohee
d5bdf1cb90 Add settings.json-backed KV string storage
Fixes #3461, #3443
2025-02-11 20:17:48 +02:00
Cohee
d5959a4681 Add awaits to event emissions 2025-02-08 19:13:05 +02:00
Wolfsblvt
72ae3aa33d Just some css classes for WI entries 2025-02-05 23:15:30 +01:00
Cohee
327f4b1074 ditto 2025-02-04 10:56:42 +02:00
Cohee
4a58948b27 fix: correct typo in log message 2025-02-04 10:54:27 +02:00
Wolfsblvt
fd3c427f07 WI dry run checks delay
- WI dry run now also checks for delays
- Better visibility of what a dry run is in the logs
2025-02-03 22:12:35 +01:00
bmen25124
630c7980d3 New exported methods: loadWorldInfo(), saveWorldInfo(), updateWorldInfoList(), convertCharacterBook() 2025-02-02 02:39:12 +03:00
Wolfsblvt
e1bf781b10 Fix wrongly changed jQuery data "chid" attribute 2025-01-25 03:33:53 +01:00
Wolfsblvt
7c9b347116 Refactor chid/grid attributes to data attributes
- We don't believe in imaginary HTML attributes that we make up, right?
2025-01-24 21:12:49 +01:00
Yokayo
1d5cf8d25c Work on translation 2025-01-12 00:42:58 +07:00
valadaptive
8bf78ce9cb Enable no-unneeded-ternary ESLint rule 2024-12-31 03:43:49 -05:00
Cohee
713c05f808 Add /getcharlore and /getpersonalore commands
Closes #3183
2024-12-14 18:48:14 +02:00
Cohee
e960ae64c5 Add a name argument for /getchatbook
Closes #2599
2024-12-14 18:20:13 +02:00
Cohee
47dea8159e Merge branch 'staging' into inject-filter 2024-12-12 23:35:23 +02:00
Cohee
d6f34f7b2c Add prompt injection filters 2024-12-06 19:53:02 +02:00
Cohee
a702dab68b Alt+Click to open lorebook 2024-12-04 13:53:10 +00:00
Cohee
cb21162558 No dangling promise 2024-12-03 22:56:19 +02:00
Cohee
af582f43a6 [wip] Persona lorebook 2024-12-02 02:52:00 +02:00
Cohee
e6d8f0a33e unvendor: Replace Fuse 2024-10-16 22:15:38 +03:00
Cohee
ef980a67fb add export to the getworldentry function 2024-10-14 00:16:30 +03:00
Honey Tree
3e9bad6845 Preserving the entry extensions field through v2 char exports and imports 2024-10-12 12:30:15 -03:00
Cohee
6f4e98024a [chore] Add a log on force activation 2024-10-11 22:10:25 +03:00
Cohee
b65da795ef [chore] Fix comments/logs 2024-10-11 21:59:55 +03:00
Cohee
a82dce7c87 Merge branch 'staging' into world_info_force_activate_expansion 2024-10-11 21:52:55 +03:00
Honey Tree
61ba579fe2 Moving check down for spec adherence 2024-10-10 12:03:26 -03:00
Honey Tree
0d1e96cc17 Map.get returns undefined and not null on empty 2024-10-10 11:44:13 -03:00
Khreed
efb63c7f24 Re-evaluate world info entry - simplified priority sort order
Changed priority primarySort ternary to check disabled first, then constant, then normal.
2024-10-10 10:19:16 -04:00
Honey Tree
7fd798b854 Typing fixes to avoid breaking any APIs 2024-10-10 10:12:19 -03:00
Honey Tree
6efa36bdbf Expand WORLD_INFO_FORCE_ACTIVATE API to allow for dynamically modified Lorebook entries 2024-10-10 09:52:54 -03:00
Khreed
28861660ef Fix Priority Sort
Corrected and expanded priority sort logic to sort by:

First constant, then normal, then disabled, then by comment.
2024-10-09 19:17:42 -04:00
Cohee
9016985827 Undo second substitution #2874 2024-09-19 15:17:11 +00:00
steve green
8edc999854 Second macro evaluation of WI for all positions
- The first macro evaluation occurs when the entry is activated.
- The second macro evaluation occurs after the regex replacement 
  * and only when the entry is before or after the char definition
this may cause confusion for users.
I'm not sure if this is the right thing to do, but it's one way I can think of to make all this make more sense.
2024-09-19 10:16:42 +08:00
Wolfsblvt
c45e42ce7d Fix WI joiner/mather not being at the start 2024-09-16 05:18:37 +02:00
Wolfsblvt
984790f53c Fix eslint + reset level on toggle 2024-09-15 22:31:29 +02:00
Wolfsblvt
eeed072ebb Add UI element for delay recursion level
- Tied and only visible to the "delay until recursion" toggle
- Will set it to a numerical value if used, otherwise keeps true/false state of the toggle
2024-09-15 22:15:24 +02:00
Wolfsblvt
413f6a0379 Expand logging for WI and scan states 2024-09-15 20:28:03 +02:00
Wolfsblvt
f0a3886b42 Reset scan state to recursion on more available 2024-09-15 17:02:48 +02:00
Wolfsblvt
609439def1 WI delay until recursion levels 2024-09-15 16:56:21 +02:00
Cohee
f1f74217cc Move joiner into constant 2024-09-14 21:50:58 +03:00