[PR #1662] [MERGED] Remove unused catalog public type exports #5194

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

📋 Pull Request Information

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

Base: refactor ← Head: codex/knip-catalog-public-type-cleanup


📝 Commits (1)

  • 902f406 Remove unused catalog public type exports

📊 Changes

6 files changed (+2 additions, -96 deletions)

View changed files

📝 src/features/catalog/chats/index.ts (+1 -10)
📝 src/features/catalog/connections/types.ts (+1 -1)
📝 src/features/catalog/lorebooks/index.ts (+0 -1)
➖ src/features/catalog/lorebooks/types.ts (+0 -44)
📝 src/features/catalog/presets/index.ts (+0 -1)
➖ src/features/catalog/presets/types.ts (+0 -39)

📄 Description

Linked issue

N/A

Why this change

  • Continues the Knip export cleanup on refactor after #1660 by removing stale src/features/catalog public type exports that are no longer used inside the repo.

What changed

  • Trimmed the chat catalog barrel to stop re-exporting unused chat contract types.
  • Kept ConnectionProvider private to the connection row shape.
  • Removed unused lorebook and preset catalog type barrels.

Refactor impact

Primary owner:

  • Catalog (src/features/catalog)

Impact areas reviewed:

  • Fresh pnpm exec knip --exports --no-config-hints --reporter compact --no-exit-code report from upstream/refactor after #1660.
  • Catalog chats, connections, lorebooks, and presets public type surfaces.
  • Character catalog was intentionally excluded; no character files are touched.

Boundary notes:

  • Feature-lane cleanup only.
  • No engine contracts, shared API wrappers, Rust, storage, remote runtime, or runtime behavior changed.
  • Contract lane gate: broken contract is stale unused feature-lane public type exports; producer is src/features/catalog; consumer evidence is Knip plus typecheck; primary owner lane is src/features; wrong-lane fix avoided is touching engine contracts or character catalog.

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

  • pnpm exec knip --exports --no-config-hints --reporter compact --no-exit-code passed before and after the slice.
    • Fresh before counts: Unused exports (70), Unused exported types (59).
    • After counts: Unused exports (70), Unused exported types (55).
    • The requested src/features/catalog rows disappeared from the Knip output.
  • pnpm typecheck passed.
  • git diff --check passed.
  • pnpm build was not run because the slice stayed type-surface-only and did not unexpectedly affect build/import behavior.

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 - non-UI type export cleanup.

Summary by CodeRabbit

  • Refactor
    • Streamlined internal module exports across catalog features by narrowing the public API surface
    • Consolidated type definitions and removed previously exported internal types to improve code organization and maintainability

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/1662 **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-catalog-public-type-cleanup` --- ### 📝 Commits (1) - [`902f406`](https://github.com/Pasta-Devs/Marinara-Engine/commit/902f40679f7c394ccf07e814748a523ceea53ad2) Remove unused catalog public type exports ### 📊 Changes **6 files changed** (+2 additions, -96 deletions) <details> <summary>View changed files</summary> 📝 `src/features/catalog/chats/index.ts` (+1 -10) 📝 `src/features/catalog/connections/types.ts` (+1 -1) 📝 `src/features/catalog/lorebooks/index.ts` (+0 -1) ➖ `src/features/catalog/lorebooks/types.ts` (+0 -44) 📝 `src/features/catalog/presets/index.ts` (+0 -1) ➖ `src/features/catalog/presets/types.ts` (+0 -39) </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 <!-- Every user-facing PR should reference a feature request or issue report when practical. --> N/A ## Why this change <!-- What user problem, bug, refactor goal, or maintenance need does this solve? --> - Continues the Knip export cleanup on `refactor` after #1660 by removing stale `src/features/catalog` public type exports that are no longer used inside the repo. ## What changed <!-- List the key changes in this PR. --> - Trimmed the chat catalog barrel to stop re-exporting unused chat contract types. - Kept `ConnectionProvider` private to the connection row shape. - Removed unused lorebook and preset catalog type barrels. ## Refactor impact Primary owner: <!-- Examples: app shell, catalog, chat mode, roleplay mode, game mode, runtime generation, world-state, shared API, engine generation, Rust storage, imports, remote runtime. --> - Catalog (`src/features/catalog`) Impact areas reviewed: - Fresh `pnpm exec knip --exports --no-config-hints --reporter compact --no-exit-code` report from `upstream/refactor` after #1660. - Catalog chats, connections, lorebooks, and presets public type surfaces. - Character catalog was intentionally excluded; no character files are touched. Boundary notes: <!-- Note engine/shared-api/feature/Rust/remote-runtime boundaries. Say "none" only if you checked. --> - Feature-lane cleanup only. - No engine contracts, shared API wrappers, Rust, storage, remote runtime, or runtime behavior changed. - Contract lane gate: broken contract is stale unused feature-lane public type exports; producer is `src/features/catalog`; consumer evidence is Knip plus typecheck; primary owner lane is `src/features`; wrong-lane fix avoided is touching engine contracts or character catalog. Pressure points touched: <!-- Mention ModeSurface, GameSurface, shared mode UI, src-tauri/src/lib.rs command registration, or import modules if touched. --> - None. ## Validation <!-- Check only what you personally ran or manually verified. Treat unchecked items as explicit TODOs. --> - [ ] `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 <!-- Describe exactly what you tested in a real browser/app/runtime, step by step. If an AI agent filled this out, verify it yourself before ticking boxes. --> - `pnpm exec knip --exports --no-config-hints --reporter compact --no-exit-code` passed before and after the slice. - Fresh before counts: `Unused exports (70)`, `Unused exported types (59)`. - After counts: `Unused exports (70)`, `Unused exported types (55)`. - The requested `src/features/catalog` rows disappeared from the Knip output. - `pnpm typecheck` passed. - `git diff --check` passed. - `pnpm build` was not run because the slice stayed type-surface-only and did not unexpectedly affect build/import behavior. ## 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 <!-- Add before/after screenshots or recordings for visible UI changes. --> N/A - non-UI type export cleanup. <!-- This is an auto-generated comment: release notes by coderabbit.ai --> ## Summary by CodeRabbit * **Refactor** * Streamlined internal module exports across catalog features by narrowing the public API surface * Consolidated type definitions and removed previously exported internal types to improve code organization and maintainability <!-- 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/1662?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:06 +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#5194
No description provided.