mirror of
https://github.com/Pasta-Devs/Marinara-Engine.git
synced 2026-12-03 19:00:50 +07:00
[PR #1579] [MERGED] Restore practical Knip export contracts #5125
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#5125
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/1579
Author: @Xelvanis
Created: 5/29/2026
Status: ✅ Merged
Merged: 5/29/2026
Merged by: @Xelvanis
Base:
refactor← Head:restore/knip-export-contracts📝 Commits (10+)
ed052c7Restore remote profile JSON importfe15cd6Use integration facade for TTS API5c988b3Narrow local asset helper exports38590b0Remove unused asset gateway facade3e02fb3Narrow tracker card color internals835e3c2Restore shared lorebook entry detection67f886eRestore agent retry failure toast2d7f70dRestore shared quote format options87c8723Narrow TTS dialogue internals1e3bf8cNarrow shared helper internals📊 Changes
31 files changed (+503 additions, -315 deletions)
View changed files
➖
src/engine/capabilities/assets.ts(+0 -9)📝
src/features/modes/conversation/components/ConversationInput.tsx(+2 -11)📝
src/features/modes/shared/chat-ui/components/ChatInput.tsx(+2 -10)📝
src/features/runtime/generation/hooks/use-generate.ts(+19 -1)📝
src/features/runtime/tracker/components/tracker-metadata.helpers.ts(+0 -18)📝
src/features/runtime/tracker/hooks/use-featured-character-cards.ts(+1 -1)📝
src/features/runtime/tracker/hooks/use-tracker-panel-model.ts(+5 -2)📝
src/features/shell/bot-browser/components/BotBrowserView.tsx(+1 -7)➕
src/features/shell/settings/components/ProfileImportSection.test.tsx(+140 -0)📝
src/features/shell/settings/components/ProfileImportSection.tsx(+138 -79)📝
src/features/shell/settings/components/SettingsPanel.tsx(+10 -4)📝
src/shared/api/assets-api.ts(+1 -13)📝
src/shared/api/integration-utility-api.ts(+1 -1)📝
src/shared/api/local-file-api.ts(+5 -18)📝
src/shared/api/profile-api.ts(+7 -7)📝
src/shared/components/ui/SpriteFrameEditor.tsx(+1 -46)📝
src/shared/components/ui/SpriteGenerationModal.tsx(+1 -42)📝
src/shared/hooks/use-tts.ts(+1 -1)📝
src/shared/lib/agent-cadence.ts(+1 -1)📝
src/shared/lib/backgrounds.ts(+0 -4)...and 11 more files
📄 Description
Linked issue
Refs #1566
Why this change
What changed
profileApi.importProfile, while keeping native JSON/ZIP import on the local file-path command.gameAssetsApiand visual asset APIs.Refactor impact
Primary owner:
Shared frontend helpers/API, shell settings profile import, chat input UI, runtime generation/tracker helpers.
Impact areas reviewed:
Boundary notes:
profile_importshared API/HTTP dispatch path; local JSON/ZIP import stays onprofile_import_file.Pressure points touched:
ModeSurface,GameSurface, orsrc-tauri/src/lib.rscommand registration changes.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
Commands run after rebasing onto current
origin/refactor:pnpm test src/features/shell/settings/components/ProfileImportSection.test.tsx --runpnpm test src/shared/lib/chat-macros.test.ts --runpnpm test src/shared/lib/url-blob.test.ts --runpnpm typecheckpnpm check:architecturepnpm lint:eslintpnpm check:unusedpnpm buildpassed with the existing large-chunk warninggit diff --checkpnpm exec knip --exports --no-config-hintsfor export-count snapshot; targeted restored/narrowed helpers were not reportedNot manually verified in the native app: Tauri file dialog import flow and remote runtime smoke.
Docs and release impact
README.mdCONTRIBUTING.mddocs/developer/AGENTS.mdNo changelog update was made because this checkout has no
CHANGELOG.md; the branch is mostly internal refactor/export restoration with focused behavior restored for remote JSON profile import.UI evidence
No screenshots or recordings added. The profile import UI behavior is covered by a focused jsdom component test; native file dialog and remote runtime behavior still need human/manual app QA.
Summary by CodeRabbit
Release Notes
Bug Fixes
Refactor
Tests
🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.