mirror of
https://github.com/Pasta-Devs/Marinara-Engine.git
synced 2026-12-03 19:00:50 +07:00
[PR #1918] [MERGED] Consolidate regex script replacement helper #5344
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#5344
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?
📋 Pull Request Information
Original PR: https://github.com/Pasta-Devs/Marinara-Engine/pull/1918
Author: @Xelvanis
Created: 6/2/2026
Status: ✅ Merged
Merged: 6/2/2026
Merged by: @Xelvanis
Base:
refactor← Head:architecture/regex-application-consolidation📝 Commits (5)
a855328Consolidate regex script replacement helperf441c19Refresh PR discovery metadata checka5cb466Allow empty frontend test suite in CIcc999eeMerge remote-tracking branch 'origin/refactor' into architecture/regex-application-consolidation2600362Drop stale test-only exports📊 Changes
9 files changed (+34 additions, -30 deletions)
View changed files
📝
.github/workflows/ci.yml(+1 -1)📝
src/engine/generation-core/regex/regex-application.ts(+4 -6)📝
src/engine/generation/regex-runtime.ts(+2 -5)📝
src/engine/generation/world-state-agent-result.ts(+1 -1)➕
src/engine/shared/regex/regex-script-application.ts(+18 -0)📝
src/features/catalog/agents/components/RegexScriptEditor.tsx(+2 -8)📝
src/features/catalog/agents/regex-application.ts(+4 -6)📝
src/features/catalog/chats/hooks/use-chats.ts(+1 -1)📝
src/features/modes/game/lib/game-start-connection.ts(+1 -2)📄 Description
Linked issue
N/A
Why this change
refactor, where the tracked frontend test suite was removed but CI still runs a frontend test step.What changed
applyRegexScriptReplacementhelper for replacement plus trim-string removal.pnpm test:allow-emptyscript so the base branch's empty test suite does not fail before later checks run.Refactor impact
Primary owner:
Engine shared regex helpers; runtime generation and catalog regex consumers; CI frontend workflow; stale export cleanup.
Impact areas reviewed:
Boundary notes:
src/engine/shared/regexas React-free deterministic product logic.Pressure points touched:
.github/workflows/ci.ymlfrontend job test step.Validation
pnpm typecheck,pnpm build,pnpm check:architecture,pnpm check:docs, or fullpnpm checkwhen warranted)pnpm checkpasses before PR push/handoffManual verification notes
pnpm test:allow-emptypassed with no test files in the current checkout, exiting with code 0.pnpm check:unusedpassed after stale export cleanup.pnpm check:workflow-namespassed locally; no PR title/source branch env provided, so metadata name check skipped as expected.pnpm checkpassed, including line endings, architecture, frontend typecheck, Rust check, docs, discovery metadata, and unused-code checks.Feature Discoverability
Check exactly one:
src/features/shell/discovery/because this PR adds or materially changes a user-discoverable feature, workflow, setting, mode, panel, import path, agent, media capability, or advanced tool.Reason:
Docs and release impact
README.mdCONTRIBUTING.mddocs/developer/AGENTS.mdUI evidence
N/A; no visible UI behavior changes.
🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.