[GH-ISSUE #2581] Port character-scoped regex scripts (tri-state mode) to staging (from refactor #1749) #1273

Closed
opened 2026-10-21 05:30:28 +07:00 by bsakaguchi · 0 comments
Owner

Originally created by @kolacheee on GitHub (Jun 15, 2026).
Original GitHub issue: https://github.com/Pasta-Devs/Marinara-Engine/issues/2581

Originally assigned to: @SpicyMarinara on GitHub.

Summary

Port character-scoped regex scripts with tri-state mode to staging. Shipped to refactor in #1749; not present in staging. (The refactor PR noted no Rust/Tauri changes, so this is a clean Node port.)

Why

Regex scripts in staging are global. This adds an optional character scope so a script can apply only to a chosen character, with a tri-state mode controlling scope (global / this-character / off). Lets creators ship regex fixups that don't bleed across all characters.

Scope (Node re-implementation)

  • shared: add characterId (+ scope mode) to the RegexScript type + schema.
  • server: persist a character_id column; include it on read/write.
  • client: scope selector in the regex editor + apply-time filtering by active character; SillyTavern-import extraction of any scope field.
  • Note: re-implementation on the Node stack.

Dependencies

None.

Reference

  • Source: refactor #1749 — "feat: character-scoped regex scripts with tri-state mode"
Originally created by @kolacheee on GitHub (Jun 15, 2026). Original GitHub issue: https://github.com/Pasta-Devs/Marinara-Engine/issues/2581 Originally assigned to: @SpicyMarinara on GitHub. ## Summary Port **character-scoped regex scripts with tri-state mode** to `staging`. Shipped to `refactor` in #1749; not present in `staging`. (The refactor PR noted no Rust/Tauri changes, so this is a clean Node port.) ## Why Regex scripts in `staging` are global. This adds an optional **character scope** so a script can apply only to a chosen character, with a **tri-state mode** controlling scope (global / this-character / off). Lets creators ship regex fixups that don't bleed across all characters. ## Scope (Node re-implementation) - **shared**: add `characterId` (+ scope mode) to the RegexScript type + schema. - **server**: persist a `character_id` column; include it on read/write. - **client**: scope selector in the regex editor + apply-time filtering by active character; SillyTavern-import extraction of any scope field. - Note: re-implementation on the Node stack. ## Dependencies None. ## Reference - Source: refactor #1749 — "feat: character-scoped regex scripts with tri-state mode"
bsakaguchi 2026-10-21 05:30:28 +07:00
  • closed this issue
  • added the
    in-pr
    label
Sign in to join this conversation.
No milestone
No project
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set.

Reference
Pasta-Devs/Marinara-Engine#1273
No description provided.