[PR #1664] [MERGED] Remove unused shared gameplay helper exports #5196

Closed
opened 2026-10-22 04:14:08 +07:00 by bsakaguchi · 0 comments
Owner

📋 Pull Request Information

Original PR: https://github.com/Pasta-Devs/Marinara-Engine/pull/1664
Author: @cha1latte
Created: 5/30/2026
Status: ✅ Merged
Merged: 5/30/2026
Merged by: @cha1latte

Base: refactor ← Head: codex/knip-feature-export-cleanup-8


📝 Commits (1)

  • 15c51d5 Remove unused shared gameplay helper exports

📊 Changes

3 files changed (+14 additions, -14 deletions)

View changed files

📝 src/engine/shared/game-state/game-state-text.ts (+2 -2)
📝 src/engine/shared/game-state/player-stats.ts (+10 -10)
📝 src/engine/shared/scoring/skill-check-format.ts (+2 -2)

📄 Description

Linked issue

N/A - mechanical Knip cleanup on refactor.

Why this change

Remove unnecessary public exports from src/engine/shared gameplay helper modules so the fresh Knip unused-export report continues shrinking without changing runtime behavior.

What changed

  • Made unused game-state-text helper exports file-local.
  • Made unused player-stats quest parsing/update helper exports and internal types file-local.
  • Made unused skill-check-format outcome helper exports file-local.

Refactor impact

Primary owner:

engine shared

Impact areas reviewed:

  • src/engine/shared/game-state/game-state-text.ts
  • src/engine/shared/game-state/player-stats.ts
  • src/engine/shared/scoring/skill-check-format.ts

Boundary notes:

  • Export visibility only; no runtime logic changed.
  • No src/engine/contracts/**, storage, schema, migration, installer, prompt-pipeline, or cross-boundary files touched.
  • rg found no outside imports for the removed public symbols.

Pressure points touched:

  • None.

Validation

  • pnpm check passes locally
  • pnpm typecheck passes locally
  • pnpm build passes locally
  • pnpm check:architecture passes locally
  • pnpm check:docs passes locally
  • cargo check --manifest-path src-tauri/Cargo.toml --workspace passes locally
  • Rust clippy/tests were run for Rust behavior changes
  • Browser or Tauri app manual verification completed
  • Playwright, screenshot, or recording evidence added for UI changes
  • Remote runtime smoke checked when relevant

Manual verification notes

  • Fresh source-of-truth report before edits: pnpm exec knip --exports --no-config-hints --reporter compact --no-exit-code reported Unused exports (64), Unused exported types (51), and Duplicate exports (1).
  • After edits: the same Knip command reported Unused exports (61), Unused exported types (50), and Duplicate exports (1).
  • Disappeared Knip rows:
    • src/engine/shared/game-state/game-state-text.ts: GAME_STATE_TEXT_FIELDS, coerceGameStateTextValue
    • src/engine/shared/game-state/player-stats.ts: parseQuestObjective, firstString, parseQuest, normalizeQuestAction, collectQuestObjectives, normalizeQuestUpdate, cloneQuest
    • src/engine/shared/game-state/player-stats.ts exported types: QuestObjective, QuestUpdateAction, NormalizedQuestUpdate
    • src/engine/shared/scoring/skill-check-format.ts: getSkillCheckOutcomeLabel, getSkillCheckOutcomeKey
  • pnpm typecheck passed locally.
  • git diff --check passed locally.
  • Bunny review passed before opening this PR.

Docs and release impact

  • No docs changes needed
  • Updated README.md
  • Updated CONTRIBUTING.md
  • Updated docs/developer/
  • Updated repo skills or AGENTS.md
  • Confirmed this PR does not restore old staging/package-workspace/release claims

UI evidence

N/A - no UI changes.

Summary by CodeRabbit

  • Refactor
    • Improved internal code organization by consolidating quest-related helpers and skill check formatting utilities within their modules, reducing the public API surface while maintaining all user-facing functionality.

Review Change Stack


🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.

## 📋 Pull Request Information **Original PR:** https://github.com/Pasta-Devs/Marinara-Engine/pull/1664 **Author:** [@cha1latte](https://github.com/cha1latte) **Created:** 5/30/2026 **Status:** ✅ Merged **Merged:** 5/30/2026 **Merged by:** [@cha1latte](https://github.com/cha1latte) **Base:** `refactor` ← **Head:** `codex/knip-feature-export-cleanup-8` --- ### 📝 Commits (1) - [`15c51d5`](https://github.com/Pasta-Devs/Marinara-Engine/commit/15c51d5d62d65c45fdf712ed8b227a002e8f4807) Remove unused shared gameplay helper exports ### 📊 Changes **3 files changed** (+14 additions, -14 deletions) <details> <summary>View changed files</summary> 📝 `src/engine/shared/game-state/game-state-text.ts` (+2 -2) 📝 `src/engine/shared/game-state/player-stats.ts` (+10 -10) 📝 `src/engine/shared/scoring/skill-check-format.ts` (+2 -2) </details> ### 📄 Description <!-- Target branch: `refactor`. Change the base to `refactor` before submitting unless a maintainer explicitly asked for another base. --> <!-- Keep all checkboxes unchecked until a human has actually verified them. --> ## Linked issue N/A - mechanical Knip cleanup on `refactor`. ## Why this change Remove unnecessary public exports from `src/engine/shared` gameplay helper modules so the fresh Knip unused-export report continues shrinking without changing runtime behavior. ## What changed - Made unused `game-state-text` helper exports file-local. - Made unused `player-stats` quest parsing/update helper exports and internal types file-local. - Made unused `skill-check-format` outcome helper exports file-local. ## Refactor impact Primary owner: engine shared Impact areas reviewed: - `src/engine/shared/game-state/game-state-text.ts` - `src/engine/shared/game-state/player-stats.ts` - `src/engine/shared/scoring/skill-check-format.ts` Boundary notes: - Export visibility only; no runtime logic changed. - No `src/engine/contracts/**`, storage, schema, migration, installer, prompt-pipeline, or cross-boundary files touched. - `rg` found no outside imports for the removed public symbols. Pressure points touched: - None. ## Validation - [ ] `pnpm check` passes locally - [ ] `pnpm typecheck` passes locally - [ ] `pnpm build` passes locally - [ ] `pnpm check:architecture` passes locally - [ ] `pnpm check:docs` passes locally - [ ] `cargo check --manifest-path src-tauri/Cargo.toml --workspace` passes locally - [ ] Rust clippy/tests were run for Rust behavior changes - [ ] Browser or Tauri app manual verification completed - [ ] Playwright, screenshot, or recording evidence added for UI changes - [ ] Remote runtime smoke checked when relevant ### Manual verification notes - Fresh source-of-truth report before edits: `pnpm exec knip --exports --no-config-hints --reporter compact --no-exit-code` reported `Unused exports (64)`, `Unused exported types (51)`, and `Duplicate exports (1)`. - After edits: the same Knip command reported `Unused exports (61)`, `Unused exported types (50)`, and `Duplicate exports (1)`. - Disappeared Knip rows: - `src/engine/shared/game-state/game-state-text.ts`: `GAME_STATE_TEXT_FIELDS`, `coerceGameStateTextValue` - `src/engine/shared/game-state/player-stats.ts`: `parseQuestObjective`, `firstString`, `parseQuest`, `normalizeQuestAction`, `collectQuestObjectives`, `normalizeQuestUpdate`, `cloneQuest` - `src/engine/shared/game-state/player-stats.ts` exported types: `QuestObjective`, `QuestUpdateAction`, `NormalizedQuestUpdate` - `src/engine/shared/scoring/skill-check-format.ts`: `getSkillCheckOutcomeLabel`, `getSkillCheckOutcomeKey` - `pnpm typecheck` passed locally. - `git diff --check` passed locally. - Bunny review passed before opening this PR. ## Docs and release impact - [ ] No docs changes needed - [ ] Updated `README.md` - [ ] Updated `CONTRIBUTING.md` - [ ] Updated `docs/developer/` - [ ] Updated repo skills or `AGENTS.md` - [ ] Confirmed this PR does not restore old staging/package-workspace/release claims ## UI evidence N/A - no UI changes. <!-- This is an auto-generated comment: release notes by coderabbit.ai --> ## Summary by CodeRabbit * **Refactor** * Improved internal code organization by consolidating quest-related helpers and skill check formatting utilities within their modules, reducing the public API surface while maintaining all user-facing functionality. <!-- review_stack_entry_start --> [![Review Change Stack](https://storage.googleapis.com/coderabbit_public_assets/review-stack-in-coderabbit-ui.svg)](https://app.coderabbit.ai/change-stack/Pasta-Devs/Marinara-Engine/pull/1664?utm_source=github_walkthrough&utm_medium=github&utm_campaign=change_stack) <!-- review_stack_entry_end --> <!-- end of auto-generated comment: release notes by coderabbit.ai --> --- <sub>🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.</sub>
bsakaguchi 2026-10-22 04:14:08 +07:00
Sign in to join this conversation.
No milestone
No project
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set.

Reference
Pasta-Devs/Marinara-Engine#5196
No description provided.