3473 Commits

Author SHA1 Message Date
Cohee
4bb463dd56 Remove unused macros 2024-05-12 17:55:00 +03:00
Cohee
0ba600bb2b Code clean-up 2024-05-12 17:53:38 +03:00
Cohee
9ed6ee2161 Sample Character browser to onboarding 2024-05-12 16:43:09 +03:00
steve02081504
d1933be86a remove {{char_version_url_encoded}} 2024-05-12 09:04:50 +08:00
steve02081504
15ff8de45c add template 2024-05-12 09:04:03 +08:00
steve02081504
45a080016e move to env 2024-05-12 09:01:30 +08:00
steve02081504
78cf6e9086 Merge branch 'staging' into pr/2204 2024-05-12 08:51:47 +08:00
Cohee
a93777e3b7 (chore) JSDoc comment 2024-05-11 23:38:26 +03:00
Cohee
2f310c72fa
Merge pull request #2215 from Hydroerotic/staging
Added {{timeDiff}} macro.
2024-05-11 23:35:55 +03:00
Cohee
e73b5713fd Add types for moment 2024-05-11 14:49:11 +03:00
Hydroerotic
1f81086a21
Update macros.js 2024-05-11 14:13:03 +03:00
Hydroerotic
3e48f4b805
Update macros.html 2024-05-11 13:55:15 +03:00
Hydroerotic
432be2ee57
Update macros.js 2024-05-11 13:52:31 +03:00
steve green
f421139402
Create char-data.js for type hint (#2209)
* Create char-data.js for type hint

code from 7df0d1e06d/src/charData.mjs

* add hint

* fixes

* `class` -> JSdoc typedef by AI

* use `import`

* `v2DataWorldInfo`

* Rename book typedef

* Fix type errors

---------

Co-authored-by: Cohee <18619528+Cohee1207@users.noreply.github.com>
2024-05-11 12:05:13 +03:00
Cohee
27ccc6b090 Minor stylistic changes 2024-05-11 11:38:22 +03:00
kingbri
62faddac8d Textgen: Add banned_strings
TabbyAPI supports the ability to ban the presence of strings during
a generation. Add this support in SillyTavern by handling lines
enclosed in quotes as a special case.

Signed-off-by: kingbri <bdashore3@proton.me>
2024-05-11 00:58:29 -04:00
Cohee
10ee002091
Merge pull request #2208 from Wolfsblvt/global-d-ts-expanded
Expand global.d.ts with code docs
2024-05-10 23:11:08 +03:00
Wolfsblvt
eeaa52bf5d Expand global.d.ts with code docs
- docs and syntax for toastr
- docs and syntax for Fuse
- docs and syntax for select2
- docs and syntax for sortable
2024-05-10 04:48:30 +02:00
steve02081504
7a2f6fb63f {{char_version_url_encoded}} and macro replace in creator_notes_spoiler 2024-05-10 07:24:05 +08:00
Wolfsblvt
bb3ac095c4 WI key input allow click to edit
- Allow click on WI keys to edit
- Removes them from the key list, allowing direct text editing
- Refactor select2 click subscribe some more, fixing a few issues
2024-05-10 00:42:35 +02:00
Wolfsblvt
e18d554489 Refactor select2 choice click event to utils 2024-05-09 23:30:18 +02:00
Wolfsblvt
a2625ecec6 Merge branch 'staging' into wi-regex-keys 2024-05-09 22:54:27 +02:00
deffcolony
0252b21901 move expression buttons above Sprite set
+moves the buttons above the Sprite set so user does not have to scroll all the way down to find the buttons now it will be directly visiable
2024-05-09 16:33:04 +02:00
steve green
f6343436b4
impl {{char_version}}
https://github.com/SillyTavern/SillyTavern/issues/2111
2024-05-09 22:29:48 +08:00
Cohee
18d96bc346 Merge branch 'staging' into wi-no-doube-substitution 2024-05-09 15:11:16 +03:00
Cohee
e14c9506b6 Revert entry post-process 2024-05-09 14:55:09 +03:00
Cohee
88aae5978f Simplify condition. Add debug log 2024-05-09 14:53:17 +03:00
Wolfsblvt
b9d72bfdf4 Do not double-parse WI content on "always on" 2024-05-09 06:37:14 +02:00
Wolfsblvt
f4bb4fe51e Merge branch 'staging' into wi-regex-keys 2024-05-09 04:23:14 +02:00
Wolfsblvt
cf77b9e7ee WI regex key syntax highlighting 2024-05-09 03:35:36 +02:00
steve green
ff1399d1ba remove empty lines from WIs 2024-05-09 08:30:40 +08:00
Wolfsblvt
eb273a1873 WI key dropdown templating shows all keys
- Cache all keys for the loaded lorebook
- Key selection dropdown shows all keys and how often they are used already
- More templating changes
2024-05-08 20:34:53 +02:00
Cohee
7408673e41 Back to const 2024-05-08 20:59:59 +03:00
Cohee
3c0664dfb6 Fix naming and improve regex application 2024-05-08 20:10:52 +03:00
steve green
d2477bba0c also run regex on worldinfo 2024-05-08 23:41:18 +08:00
Cohee
10fda0b220
Merge pull request #2191 from bdashore3/example-wi
mesExamples anchor for World Info
2024-05-08 15:33:45 +03:00
Cohee
49d0d9f557 Fix return type on empty WI 2024-05-08 15:04:17 +03:00
Cohee
c43ddd9d62
Merge pull request #2178 from Yokayo/staging
Localization enhancements
2024-05-08 13:59:52 +03:00
kingbri
01aacb9280 World Info: Add example messages insertion point
Allow insertion above and below mesExamples (also known as the
"examples of dialogue") box.

Signed-off-by: kingbri <bdashore3@proton.me>
2024-05-07 21:55:26 -04:00
Yokayo
dfa8c6c3d4 Remove cases 2024-05-07 13:11:59 +07:00
Wolfsblvt
fda0e886e4 WI custom styling for regex keys
- WI custom style for regex keys
- moved select2 styling to its own file
2024-05-07 05:44:18 +02:00
Wolfsblvt
5a45e64999 Regex matching for keys and secondary keys 2024-05-07 02:52:22 +02:00
Wolfsblvt
70a2f71e33 WI switch key controls to multi input
- Switch key/secondarykey controls to select2 input
- Custom tokenizer for regex parsing, allowing comma in regex
- Keep mobile-compatibility by switching to textarea
- select2 utility method to pre-fill options
- New inline display mode of select2 multi to save space
2024-05-07 02:01:54 +02:00
Cohee
542018cecb Fix group weight clamping 2024-05-06 22:55:31 +03:00
Cohee
5e7c214c89 Substitute macros in text to classify 2024-05-06 22:02:13 +03:00
Cohee
12eabd167d #2187 Add negative prefix arg to /sd command 2024-05-06 21:39:07 +03:00
Cohee
c73bfbd7b0 Safari bruh moment 2024-05-06 21:21:03 +03:00
Cohee
7063fce2af Selectable openrouter providers 2024-05-06 19:26:20 +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