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
+10 -1
View File
@@ -65,6 +65,16 @@
"template.settingsModal.advanced.skipInjectionsOptions.impersonation": "Only on impersonation requests",
"template.settingsModal.advanced.skipInjectionsOptions.guided": "Always for guided or quiet prompts",
"template.settingsModal.advanced.skipInjectionsNote": "When set, the extension will not inject tracker prompts, examples, or HTML instructions according to the selected mode when a guided generation (via `instruct` or `quiet_prompt`) is detected. Useful when using GuidedGenerations or similar extensions.",
"template.settingsModal.advanced.enableMessageInterception": "Intercept & rewrite user messages with AI",
"template.settingsModal.advanced.enableMessageInterceptionNote": "When enabled, user messages are sent to the AI and rewritten in-place.",
"template.settingsModal.advanced.interceptionModeLabel": "Interception:",
"template.settingsModal.advanced.interceptionOn": "On",
"template.settingsModal.advanced.interceptionOff": "Off",
"template.settingsModal.advanced.messageInterceptionDepth": "Interception Context Messages:",
"template.settingsModal.advanced.messageInterceptionDepthNote": "How many recent messages to send with the interception prompt.",
"template.settingsModal.advanced.customMessageInterceptionPromptTitle": "Custom Message Interception Prompt:",
"template.settingsModal.advanced.restoreDefaultMessageInterceptionPrompt": "Restore Default",
"template.settingsModal.advanced.customMessageInterceptionPromptNote": "Customize the instructions sent to the AI when rewriting user messages. Leave empty to use the default guidance. The AI receives this prompt, the current RPG state JSON, and the recent messages you specify above.",
"template.settingsModal.advanced.customTrackerPromptTitle": "Custom Tracker Prompt:",
"template.settingsModal.advanced.restoreDefaultTrackerPrompt": "Restore Default",
"template.settingsModal.advanced.customTrackerPromptNote": "Customize the instructions sent to the AI for generating tracker data. Use {{user}} as a placeholder for the user's name. This is the main prompt that tells the AI how to format and update the RPG trackers.",
@@ -88,7 +98,6 @@
"template.trackerEditorModal.userStatsTab.alwaysIncludeAttributes": "Always Include Attributes in Prompt",
"template.trackerEditorModal.userStatsTab.alwaysIncludeAttributesNote": "If disabled, attributes are only sent when a dice roll is active.",
"template.trackerEditorModal.userStatsTab.allowAIUpdateAttributes": "Allow AI to Update RPG Attributes",
"template.trackerEditorModal.userStatsTab.allowAIUpdateAttributesNote": "If enabled, the AI can update attribute values and level from its responses. If disabled, attributes are read-only and can only be changed manually.",
"template.trackerEditorModal.userStatsTab.addAttributeButton": "Add Attribute",
"template.trackerEditorModal.userStatsTab.statusSectionTitle": "Status Section",
"template.trackerEditorModal.userStatsTab.enableStatusSection": "Enable Status Section",