feat: message interception

This commit is contained in:
Subarashimo
2025-12-05 11:40:50 +01:00
parent 271c69ec49
commit 806a7078a7
12 changed files with 374 additions and 69 deletions
+3
View File
@@ -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)