mirror of
https://github.com/Pasta-Devs/Marinara-Engine.git
synced 2026-12-03 19:00:50 +07:00
[PR #1417] [MERGED] Consolidate engine string reader helper #5082
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#5082
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/1417
Author: @Xelvanis
Created: 5/27/2026
Status: ✅ Merged
Merged: 5/27/2026
Merged by: @SpicyMarinara
Base:
refactor← Head:chore/engine-helper-consolidation📝 Commits (3)
1429f2eConsolidate engine string reader helperf49e345Keep runtime string reader test in generationa96a2e7Merge branch 'refactor' into chore/engine-helper-consolidation📊 Changes
9 files changed (+37 additions, -25 deletions)
View changed files
📝
src/engine/generation/prompt-reviewer.ts(+1 -4)➕
src/engine/generation/runtime-records.test.ts(+9 -0)📝
src/engine/generation/runtime-records.ts(+4 -4)📝
src/engine/modes/chat/core/summaries/auto-summary.service.ts(+1 -5)📝
src/engine/modes/chat/schedules/schedule.service.ts(+1 -4)📝
src/engine/modes/roleplay/encounter/encounter-service.ts(+1 -4)📝
src/engine/modes/roleplay/scene/scene-service.ts(+1 -4)➕
src/engine/shared/value-readers.test.ts(+16 -0)➕
src/engine/shared/value-readers.ts(+3 -0)📄 Description
Linked issue
No linked GitHub issue. This came from the local chore queue item
2026-05-27-engine-duplicate-helper-consolidation.Why this change
stringValueimplementations.What changed
src/engine/shared/value-readers.tswith the sharedreadStringhelper.readStringfromsrc/engine/generation/runtime-records.tsso existing generation imports keep working.runtime-recordscompatibility export.Refactor impact
Primary owner:
Engine shared primitive / generation compatibility.
Impact areas reviewed:
src/engine/sharedsrc/engine/generation/runtime-records.tssrc/engine/generation/prompt-reviewer.tssrc/engine/modes/chat/core/summaries/auto-summary.service.tssrc/engine/modes/chat/schedules/schedule.service.tssrc/engine/modes/roleplay/scene/scene-service.tssrc/engine/modes/roleplay/encounter/encounter-service.tsBoundary notes:
readStringstays insrc/engine/sharedas a pure deterministic helper. The generation re-export preserves existing import compatibility without moving ownership upward.Pressure points touched:
ModeSurface,GameSurface, shared mode UI,src-tauri/src/lib.rs, or import modules.Validation
pnpm checkpasses locallypnpm typecheckpasses locallypnpm buildpasses locallypnpm check:architecturepasses locallypnpm check:docspasses locallycargo check --manifest-path src-tauri/Cargo.toml --workspacepasses locallyManual verification notes
pnpm test -- src/engine/shared/value-readers.test.ts src/engine/generation/runtime-records.test.tsafter rebasing onto currentorigin/refactor; 2 files passed, 3 tests passed.pnpm typecheck; passed.pnpm check:architecture; passed with no dependency violations and Rust structure check passed.pnpm build; passed. Vite still reports existing dynamic-import and large-chunk warnings unrelated to this change.git diff --check origin/refactor...HEAD; passed.Docs and release impact
README.mdCONTRIBUTING.mddocs/developer/AGENTS.mdNo repo changelog file is present, and this cleanup is not user-facing or release-note-worthy. No docs changes were made.
UI evidence
N/A. No UI behavior changed.
Summary by CodeRabbit
Refactor
Tests
🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.