feat: message interception
This commit is contained in:
@@ -25,6 +25,7 @@ export const defaultSettings = {
|
||||
enabled: true,
|
||||
autoUpdate: true,
|
||||
updateDepth: 4, // How many messages to include in the context
|
||||
messageInterceptionContextDepth: 4, // How many recent messages to send when intercepting user messages
|
||||
generationMode: 'together', // 'separate' or 'together' - whether to generate with main response or separately
|
||||
useSeparatePreset: false, // Use 'RPG Companion Trackers' preset for tracker generation instead of main API model
|
||||
showUserStats: true,
|
||||
@@ -34,6 +35,8 @@ export const defaultSettings = {
|
||||
showThoughtsInChat: true, // Show thoughts overlay in chat
|
||||
alwaysShowThoughtBubble: false, // Auto-expand thought bubble without clicking icon
|
||||
enableHtmlPrompt: false, // Enable immersive HTML prompt injection
|
||||
enableMessageInterception: false, // Enable intercepting user messages with LLM rewrite
|
||||
messageInterceptionActive: true, // Runtime toggle to allow/skip interception
|
||||
// Controls when the extension skips injecting tracker instructions/examples/HTML
|
||||
// into generations that appear to be user-injected instructions. Valid values:
|
||||
// - 'none' -> never skip (legacy behavior: always inject)
|
||||
|
||||
@@ -13,6 +13,7 @@ export let extensionSettings = {
|
||||
enabled: true,
|
||||
autoUpdate: true,
|
||||
updateDepth: 4, // How many messages to include in the context
|
||||
messageInterceptionContextDepth: 4, // How many recent messages to send when intercepting user messages
|
||||
generationMode: 'together', // 'separate' or 'together' - whether to generate with main response or separately
|
||||
useSeparatePreset: false, // Use 'RPG Companion Trackers' preset for tracker generation instead of main API model
|
||||
showUserStats: true,
|
||||
@@ -28,6 +29,9 @@ export let extensionSettings = {
|
||||
enableHtmlPrompt: false, // Enable immersive HTML prompt injection
|
||||
customHtmlPrompt: '', // Custom HTML prompt text (empty = use default)
|
||||
customTrackerPrompt: '', // Custom tracker instruction prompt (empty = use default)
|
||||
enableMessageInterception: false, // Enable intercepting user messages with LLM rewrite
|
||||
messageInterceptionActive: true, // Runtime toggle to allow/skip interception
|
||||
customMessageInterceptionPrompt: '', // Custom prompt for message interception (empty = default)
|
||||
skipInjectionsForGuided: 'none', // skip injections for instruct injections and quiet prompts (GuidedGenerations compatibility)
|
||||
enablePlotButtons: true, // Show plot progression buttons above chat input
|
||||
panelPosition: 'right', // 'left', 'right', or 'top'
|
||||
|
||||
Reference in New Issue
Block a user