mirror of
https://github.com/Darkatse/TauriTavern.git
synced 2026-10-19 15:45:12 +00:00
refactor(extensions): discover all built-ins and disable optional defaults
This commit is contained in:
parent
70599a39c6
commit
efefafd577
3 changed files with 12 additions and 4 deletions
|
|
@ -211,7 +211,12 @@
|
|||
"apiKey": "",
|
||||
"autoConnect": false,
|
||||
"disabledExtensions": [
|
||||
"caption",
|
||||
"expressions",
|
||||
"gallery",
|
||||
"memory",
|
||||
"stable-diffusion",
|
||||
"token-counter",
|
||||
"vectors",
|
||||
"translate",
|
||||
"tts"
|
||||
|
|
|
|||
|
|
@ -37,18 +37,21 @@ pub struct FileExtensionRepository {
|
|||
source_store: ExtensionSourceStore,
|
||||
}
|
||||
|
||||
/// Built-in extensions enabled in TauriTavern.
|
||||
/// Keep this list explicit so custom built-ins remain predictable after upstream sync.
|
||||
const ENABLED_SYSTEM_EXTENSIONS: &[&str] = &[
|
||||
/// Built-in extensions shipped by TauriTavern.
|
||||
const SYSTEM_EXTENSIONS: &[&str] = &[
|
||||
"regex",
|
||||
"code-render",
|
||||
"connection-manager",
|
||||
"data-migration",
|
||||
"assets",
|
||||
"attachments",
|
||||
"caption",
|
||||
"expressions",
|
||||
"gallery",
|
||||
"memory",
|
||||
"quick-reply",
|
||||
"stable-diffusion",
|
||||
"token-counter",
|
||||
"vectors",
|
||||
"tauritavern-version",
|
||||
"agent-system",
|
||||
|
|
|
|||
|
|
@ -15,7 +15,7 @@ pub(super) async fn discover_extensions(
|
|||
tracing::info!("Discovering extensions");
|
||||
|
||||
let mut extensions = Vec::new();
|
||||
for &name in super::ENABLED_SYSTEM_EXTENSIONS {
|
||||
for &name in super::SYSTEM_EXTENSIONS {
|
||||
extensions.push(Extension {
|
||||
name: name.to_string(),
|
||||
extension_type: ExtensionType::System,
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue