mirror of
https://github.com/Pasta-Devs/Marinara-Engine.git
synced 2026-12-03 19:00:50 +07:00
[PR #6606] [MERGED] chore(deps): migrate Transformers and preserve Buttplug intensity semantics #7250
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#7250
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/6606
Author: @SpicyMarinara
Created: 9/24/2026
Status: ✅ Merged
Merged: 9/24/2026
Merged by: @SpicyMarinara
Base:
staging← Head:codex/6603-6604-runtime-migrations📝 Commits (5)
0076c34chore(deps): migrate deferred model and haptic runtimesbc06dbafix(haptics): preserve full intensity and zero output with Buttplug 599f8803fix(haptics): stop partial output failures and validate feature ranges87003fcfix(haptics): preserve existing timers when replacement commands are invalidb8d065ffix(haptics): type prepared output commands explicitly📊 Changes
9 files changed (+469 additions, -228 deletions)
View changed files
📝
CHANGELOG.md(+2 -0)📝
packages/server/package.json(+4 -4)📝
packages/server/src/services/haptic/buttplug-service.ts(+78 -40)📝
patches/onnxruntime-node@1.30.0.patch(+1 -1)📝
pnpm-lock.yaml(+63 -179)📝
pnpm-workspace.yaml(+4 -4)➕
scripts/regressions/haptic-protocol.regression.ts(+228 -0)➕
scripts/regressions/transformers-runtime.regression.mjs(+30 -0)➕
scripts/smoke-local-models.ts(+59 -0)📄 Description
Linked issue
Closes #6603
Closes #6604
Why this change
The deferred upgrades need compatibility work: Transformers.js 4 requires matching ONNX runtimes, and Buttplug 5 changes percentage mapping so zero intensity on a signed rotation range could become full reverse output. This completes the maintenance batch merged in #6602.
What changed
Validation
Completed locally on macOS arm64; final
pnpm checkand the container useb8d065f71:pnpm checkpassed, including localization, formatting, types/lint, and production builds. One existing GameNarration hook warning remains.pnpm version:checkpassed.The complete local Node suite finished 368/369 passed. The sole failure,
decision-sidecar-runtime.regression.ts, reproduces on the unchanged Mac baseline: its Linux-only decision-model preflight returnsunsupportedbefore a test expectsnot_enough_disk. The complete hosted Linux regression suite passed on the same head. An earlier attempt was interrupted by disk exhaustion; task-owned temporary artifacts were cleaned and the full suite rerun.Local CodeRabbit completed on the final head. Two substantive timer/failure-handling findings were reproduced and fixed. The final pass reported one minor suggestion: round fractional millisecond durations. This is a non-regression:
Math.max(1, duration || 1) * 1000is unchanged fromorigin/staging(old service lines 226–228), and both the old and new libraries pass that number through. Existing duration/minimum semantics are retained in this compatibility migration. No finding is being represented as a zero-finding review. GitHub checks and CodeRabbit remain merge gates.pnpm checkpasses locallyCONTRIBUTING.mdManual verification notes
The maintainer explicitly requested skipping physical Intiface calibration for this update and verifying that maximum vibration remains available. The tests use a loopback protocol fixture; no physical device was operated. No new browser UI was introduced.
To repeat the optional model proof, download
https://github.com/ggml-org/whisper.cpp/blob/master/samples/jfk.wavas a raw WAV, then runpnpm --filter @marinara-engine/server exec tsx ../../scripts/smoke-local-models.ts online <isolated-data-dir> <wav-path>followed byofflinewith the same directory andlitewith another isolated directory.Docs and release impact
The Unreleased changelog covers both migrations and the haptic failure handling. The installation commands and user configuration remain unchanged; no translated documentation update is needed.
docs-i18nbranch updated to match, or a[docs-i18n]follow-up issue opened (seeCONTRIBUTING.md)UI evidence (if applicable)
No UI changes.
Summary by CodeRabbit
🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.