mirror of
https://github.com/Pasta-Devs/Marinara-Engine.git
synced 2026-12-03 19:00:50 +07:00
[PR #1499] [MERGED] Triage Knip unused files and restore refactor add-backs #5112
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#5112
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/1499
Author: @Xelvanis
Created: 5/29/2026
Status: ✅ Merged
Merged: 5/29/2026
Merged by: @SpicyMarinara
Base:
refactor← Head:chore/knip-unused-triage📝 Commits (4)
1c8d64achore: triage knip unused filesebec875fix: harden fail paths after rebaseac9f1effix: address bunny review findings6a6f372Merge remote-tracking branch 'origin/refactor' into pr-1499📊 Changes
51 files changed (+9201 additions, -5490 deletions)
View changed files
📝
graphify-out/.graphify_labels.json(+16 -5)📝
graphify-out/GRAPH_REPORT.md(+354 -285)➕
graphify-out/cache/ast/24106c885ca18b21081c9790efa645dba1f91693a539dcad0474226f662ab71d.json(+1 -0)➕
graphify-out/cache/ast/4ebc6999adc9e47e7a5ef558ae4967c1fe318394436e8a2dbeaa3966d5235afb.json(+1 -0)➕
graphify-out/cache/ast/64d00c964159d5719a02ae63629b74017066ab906071bee189fcab6fe1008bf1.json(+1 -0)➕
graphify-out/cache/ast/cf4b206ebb89479927167c7761584d578b529818c61c8e516487134233aa5ad3.json(+1 -0)➕
graphify-out/cache/ast/d95d1411b397ad74514af17753324918394beaf03873f3a9962edeb9f3825bf1.json(+1 -0)➕
graphify-out/cache/ast/db440d0ef37bb596befa3b6596cc270a1f80fe67a8e1cbb0a84e363f3c9c9748.json(+1 -0)➕
graphify-out/cache/ast/dcb0caed151f8eb532a729cb7c7cc58cde65a9e2031465e7d2209bba73738ae6.json(+1 -0)📝
graphify-out/cache/stat-index.json(+1 -1)📝
graphify-out/graph.json(+6193 -3691)📝
graphify-out/manifest.json(+1199 -1189)📝
knip.json(+4 -16)📝
package.json(+1 -1)📝
src/app/shell/ChatSidebar.tsx(+7 -6)📝
src/app/shell/useStartNewChat.ts(+2 -7)📝
src/engine/agents-runtime/knowledge/knowledge-retrieval.ts(+17 -3)📝
src/engine/agents-runtime/pipeline/agent-pipeline.ts(+44 -13)📝
src/engine/contracts/constants/chat-modes.ts(+1 -1)📝
src/engine/contracts/schemas/app-settings.schema.ts(+5 -5)...and 31 more files
📄 Description
Linked issue
Refs #1496
Why this change
refactor, but several entries were not safe-delete cleanup. Some were refactor parity gaps where useful helpers or feature paths existed but were not wired back into the active runtime.What changed
knip.jsonto source/config entrypoints and ignored tool dependencies that are invoked outside normal imports (@tauri-apps/cli,tailwindcss).pnpm check:unusedto run Knip in report-only mode with--no-exit-code --no-config-hints, matching the triage workflow for this branch.src/engine/modes/game/scene, then wiredanalyzeGameScenethrough the richer prompt and post-processing path.[party-turn]messages.Refactor impact
Primary owner:
Impact areas reviewed:
Boundary notes:
package.jsononly changes thecheck:unusedscript.Pressure points touched:
GameSurface,GameNarration, game scene analysis service, generation prompt assembly, catalog hooks, shared chat input components, Knip config/script, and Graphify output.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 typecheckpassed on the rebased head.src/engine/generation/agent-runner.test.ts,src/engine/generation/prompt-assembly.test.ts,src/engine/generation/start-generation.test.ts,src/engine/modes/game/scene/game-scene-analysis.service.test.ts,src/features/modes/game/api/game-api.test.ts,src/features/catalog/characters/hooks/use-characters.test.ts(6files,140tests).pnpm buildpassed on the rebased head with the existing large-chunk warning.pnpm check:architecturepassed on the rebased head.pnpm check:unusedpassed on the rebased head. It now runsknip --no-exit-code --no-config-hintsand still reports the intentional unused-code/dependency/export inventory for follow-up triage, including16unused files.graphify update .passed with Graphify0.8.21;graph.htmlwas skipped because the graph exceeds the configured visualization limit, whilegraph.jsonandGRAPH_REPORT.mdwere updated.pnpm check:docspassed on the rebased head.git diff --check origin/refactor...HEADpassed.pnpm check,pnpm lint:eslint, Rust cargo checks, native Tauri UI QA, browser/Playwright UI evidence, and remote-runtime smoke. No Rust files are changed in this PR.Docs and release impact
No docs changes needed
Updated
README.mdUpdated
CONTRIBUTING.mdUpdated
docs/developer/Updated repo skills or
AGENTS.mdConfirmed this PR does not restore old staging/package-workspace/release claims
No
CHANGELOG.mdexists in this checkout.No public docs were changed; the remaining Knip cleanup decisions are tracked in #1496.
UI evidence
Summary by CodeRabbit
Release Notes
New Features
Improvements
Bug Fixes
Chores
🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.