mirror of
https://github.com/Pasta-Devs/Marinara-Engine.git
synced 2026-12-03 19:00:50 +07:00
[PR #1256] [CLOSED] refactor(magic-rewrite): prepare V1 for review #5008
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#5008
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/1256
Author: @cha1latte
Created: 5/26/2026
Status: ❌ Closed
Base:
staging← Head:prep/pr-1238-magic-rewrite-staging📝 Commits (3)
af6e151feat(magic-rewrite): V1 — instruction + diff rewrite for editors4747a1fRefactor Magic Rewrite seams277993cAdd Magic Rewrite PR evidence📊 Changes
9 files changed (+488 additions, -41 deletions)
View changed files
➕
docs/pr-evidence/pr-1256/character-magic-rewrite.png(+0 -0)➕
docs/pr-evidence/pr-1256/lorebook-magic-rewrite.png(+0 -0)📝
packages/client/src/components/lorebooks/LorebookFormFields.tsx(+78 -24)📝
packages/client/src/components/ui/ExpandedTextarea.tsx(+84 -17)➕
packages/client/src/components/ui/MagicRewritePanel.tsx(+133 -0)➕
packages/client/src/hooks/use-magic-rewrite.ts(+59 -0)📝
packages/server/src/routes/index.ts(+2 -0)➕
packages/server/src/routes/magic-rewrite.routes.ts(+34 -0)➕
packages/server/src/services/magic-rewrite/magic-rewrite.service.ts(+98 -0)📄 Description
Linked issue
Refs #1183
Refs #1238
Why this change
PR #1238 contains the Magic Rewrite V1 feature, but the branch was based on
mainwhile targetingstaging, which pulls unrelated tracker/composer/changelog work into the review diff.This cleanup branch replays the Magic Rewrite work onto
stagingand separates the first server/client seams so the feature is easier to review and refactor without changing the intended V1 behavior.What changed
upstream/staging.packages/server/src/services/magic-rewrite/magic-rewrite.service.ts.packages/server/src/routes/magic-rewrite.routes.tsfocused on request validation and HTTP response handling.packages/client/src/hooks/use-magic-rewrite.ts.Validation
pnpm checkpasses locallyCONTRIBUTING.mdManual verification notes
pnpm checksuccessfully inC:\tmp\marinara-pr-1238.git diff --checksuccessfully.Generate Rewritewith a configured text LLM connection.Docs and release impact
UI evidence (if applicable)
Character editor Magic Rewrite panel:
Lorebook entry Magic Rewrite panel:
🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.