mirror of
https://github.com/Pasta-Devs/Marinara-Engine.git
synced 2026-12-03 19:00:50 +07:00
[GH-ISSUE #3278] docs: no user guide for Regex Scripts (find/replace, prompt-vs-display scope, depth/order) #1773
Labels
No labels
android
bug
bugfix
ci
client
code freeze pause
container
dependencies
docs
documentation
duplicate
enhancement
feature
feature
feature
feature-creep
fixed-in-refactor
fixed-in-staging
good first issue
help wanted
in-pr
in-pr
needs-codeowner-decision
normal-scope
old-codebase
old-codebase
pull-request
qol
question
refactor
regression
revisit later
roadmap
scope-risk
scope-risk
server
server
shared
soup
upstream
windows
No milestone
No project
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set.
Reference
Pasta-Devs/Marinara-Engine#1773
Loading…
Add table
Add a link
Reference in a new issue
No description provided.
Delete branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Originally created by @kolacheee on GitHub (Jul 5, 2026).
Original GitHub issue: https://github.com/Pasta-Devs/Marinara-Engine/issues/3278
Originally assigned to: @SpicyMarinara on GitHub.
A shipped, user-facing feature has no user documentation. Found in a docs-coverage sweep against v2.1.0 (each gap re-checked with fresh greps across
docs/andREADME.mdto confirm coverage really is absent). Suggested home: new-docdocs/REGEX_SCRIPTS.md.Feature: Regex Scripts: find/replace authoring, prompt-vs-display scope, depth/order, global vs character-scoped scripts
Why it needs docs (user impact):
Regex scripts are the primary tool for cleaning model output and reshaping prompts, a direct SillyTavern-parity feature migrators expect. The prompt-vs-display distinction and depth/order semantics are subtle and easy to misuse. The docs currently disclaim one of the most-used customization surfaces.
What the docs currently say (i.e. the gap):
CONVERSATION.md line 7 explicitly states the guide 'does not cover ... regex scripts' and sends users to Discord/GitHub. MACROS.md line 3 only notes macros expand inside regex scripts. FRONTEND.md and FILE_STORAGE_MIGRATION.md hits are storage/dev tables. README line 158 is a one-word blurb. There is NO guide to writing a script, the Only Prompt / Only Display / Both distinction, depth range, execution order, or global vs character-scoped scripts - the docs actively point users off-platform.
Evidence it shipped and is user-facing:
packages/client/src/components/agents/RegexScriptEditor.tsx (1008 lines) exposes Find Pattern, Replace With, flags, Apply To, and a live Apply Mode = Only Prompt | Only Display | Both (RegexApplyMode type + APPLY_MODE_META, lines 63-84), plus depth range and execution order. Scripts are global and also character-scoped. CHANGELOG line 103 confirms server ReDoS hardening (VM timeout). The apply-mode distinction is the #1 confusion source and is entirely code-only.
Confidence: high. This is a suggested new doc/section, not a bug - close if it's out of scope or already planned.
@SpicyMarinara commented on GitHub (Jul 5, 2026):
Addressed in #3289.