[PR #1612] [MERGED] Narrow shared runtime type exports #5145

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

📋 Pull Request Information

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

Base: refactor ← Head: fix/issue-1566-shared-runtime-types


📝 Commits (1)

  • 349a731 Narrow shared runtime type exports

📊 Changes

6 files changed (+8 additions, -8 deletions)

View changed files

📝 src/shared/api/remote-runtime.ts (+1 -1)
📝 src/shared/api/translation-api.ts (+1 -1)
📝 src/shared/components/ui/ImagePromptReviewModal.tsx (+1 -1)
📝 src/shared/lib/tts-service.ts (+3 -3)
📝 src/shared/stores/dialog.store.ts (+1 -1)
📝 src/shared/stores/translation.store.ts (+1 -1)

📄 Description

Linked issue

Refs #1566

Why this change

Narrow Knip's shared runtime unused exported type surface for the Shared API / Store Type Cleanup slice.

What changed

  • Privatized Knip-reported unused exported shared types in src/shared/api.
  • Privatized Knip-reported unused exported shared types in src/shared/components, src/shared/lib, and src/shared/stores.
  • Kept runtime payload shapes, persisted settings, store state shape, and API behavior unchanged.

Refactor impact

Primary owner:

Shared API / shared runtime type surface.

Impact areas reviewed:

  • src/shared/api
  • src/shared/components
  • src/shared/lib
  • src/shared/stores

Boundary notes:

  • This PR only removes unused exported type names from the shared lane.
  • It does not broaden into engine contract cleanup.
  • No wire payloads, persisted settings, runtime store state shapes, or runtime API behavior changed.

Pressure points touched:

  • Remote runtime health typing
  • Translation request/config typing
  • Image prompt review item typing
  • TTS service request/options/state typing
  • Dialog and translation store typing

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

Codex ran:

  • pnpm exec knip --exports --no-config-hints --reporter compact --no-exit-code before editing and confirmed the target shared rows existed.
  • pnpm exec knip --exports --no-config-hints --reporter compact --no-exit-code after editing; the target shared unused exported type rows were removed from the report.
  • Focused test search for these target modules; no focused test files were present.
  • pnpm typecheck
  • pnpm check:architecture
  • pnpm check:unused
  • pnpm build
  • pnpm check
  • git diff --check

pnpm build passed with the existing Vite large-chunk warning. The first pnpm check attempt timed out at the command timeout limit, then passed when rerun with a longer timeout.

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

No docs or release changes are needed for this type-export cleanup.

UI evidence

N/A. Type export visibility cleanup only; no UI behavior changed.


🔄 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/1612 **Author:** [@cha1latte](https://github.com/cha1latte) **Created:** 5/29/2026 **Status:** ✅ Merged **Merged:** 5/29/2026 **Merged by:** [@cha1latte](https://github.com/cha1latte) **Base:** `refactor` ← **Head:** `fix/issue-1566-shared-runtime-types` --- ### 📝 Commits (1) - [`349a731`](https://github.com/Pasta-Devs/Marinara-Engine/commit/349a731fdb20f1d02bdf011cefcf680eb0155549) Narrow shared runtime type exports ### 📊 Changes **6 files changed** (+8 additions, -8 deletions) <details> <summary>View changed files</summary> 📝 `src/shared/api/remote-runtime.ts` (+1 -1) 📝 `src/shared/api/translation-api.ts` (+1 -1) 📝 `src/shared/components/ui/ImagePromptReviewModal.tsx` (+1 -1) 📝 `src/shared/lib/tts-service.ts` (+3 -3) 📝 `src/shared/stores/dialog.store.ts` (+1 -1) 📝 `src/shared/stores/translation.store.ts` (+1 -1) </details> ### 📄 Description ## Linked issue Refs #1566 ## Why this change Narrow Knip's shared runtime unused exported type surface for the Shared API / Store Type Cleanup slice. ## What changed - Privatized Knip-reported unused exported shared types in `src/shared/api`. - Privatized Knip-reported unused exported shared types in `src/shared/components`, `src/shared/lib`, and `src/shared/stores`. - Kept runtime payload shapes, persisted settings, store state shape, and API behavior unchanged. ## Refactor impact Primary owner: Shared API / shared runtime type surface. Impact areas reviewed: - `src/shared/api` - `src/shared/components` - `src/shared/lib` - `src/shared/stores` Boundary notes: - This PR only removes unused exported type names from the shared lane. - It does not broaden into engine contract cleanup. - No wire payloads, persisted settings, runtime store state shapes, or runtime API behavior changed. Pressure points touched: - Remote runtime health typing - Translation request/config typing - Image prompt review item typing - TTS service request/options/state typing - Dialog and translation store typing ## 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 Codex ran: - `pnpm exec knip --exports --no-config-hints --reporter compact --no-exit-code` before editing and confirmed the target shared rows existed. - `pnpm exec knip --exports --no-config-hints --reporter compact --no-exit-code` after editing; the target shared unused exported type rows were removed from the report. - Focused test search for these target modules; no focused test files were present. - `pnpm typecheck` - `pnpm check:architecture` - `pnpm check:unused` - `pnpm build` - `pnpm check` - `git diff --check` `pnpm build` passed with the existing Vite large-chunk warning. The first `pnpm check` attempt timed out at the command timeout limit, then passed when rerun with a longer timeout. ## 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 No docs or release changes are needed for this type-export cleanup. ## UI evidence N/A. Type export visibility cleanup only; no UI behavior changed. --- <sub>🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.</sub>
bsakaguchi 2026-10-22 04:13:42 +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#5145
No description provided.