[PR #1607] [MERGED] Narrow lorebook hook export surface #5140

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

📋 Pull Request Information

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

Base: refactor ← Head: codex/knip-feature-export-slice-5


📝 Commits (1)

  • 5786aff Narrow lorebook hook exports

📊 Changes

2 files changed (+2 additions, -63 deletions)

View changed files

📝 src/features/catalog/lorebooks/hooks/use-lorebooks.ts (+2 -62)
📝 src/features/catalog/lorebooks/query-keys.ts (+0 -1)

📄 Description

Summary

  • remove unreferenced lorebook entry/search/bulk-create hook exports
  • keep active lorebook scan helper types private to the hook module
  • drop the orphan lorebook search query key

Verification

  • pnpm exec knip --exports --no-config-hints --reporter compact --no-exit-code
  • pnpm typecheck
  • pnpm check:architecture
  • pnpm check:unused
  • pnpm build
  • pnpm check
  • git diff --check

Notes

This stays in the src/features lorebook lane. Engine contract/schema rows from the broader Knip report are intentionally left untouched.

Summary by CodeRabbit

  • Refactor
    • Simplified internal lorebook entry management by removing unused API methods and making internal interfaces private.

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/1607 **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:** `codex/knip-feature-export-slice-5` --- ### 📝 Commits (1) - [`5786aff`](https://github.com/Pasta-Devs/Marinara-Engine/commit/5786aff89283d43f8079d160e5bf9e8f9efc4e41) Narrow lorebook hook exports ### 📊 Changes **2 files changed** (+2 additions, -63 deletions) <details> <summary>View changed files</summary> 📝 `src/features/catalog/lorebooks/hooks/use-lorebooks.ts` (+2 -62) 📝 `src/features/catalog/lorebooks/query-keys.ts` (+0 -1) </details> ### 📄 Description ## Summary - remove unreferenced lorebook entry/search/bulk-create hook exports - keep active lorebook scan helper types private to the hook module - drop the orphan lorebook search query key ## Verification - `pnpm exec knip --exports --no-config-hints --reporter compact --no-exit-code` - `pnpm typecheck` - `pnpm check:architecture` - `pnpm check:unused` - `pnpm build` - `pnpm check` - `git diff --check` ## Notes This stays in the `src/features` lorebook lane. Engine contract/schema rows from the broader Knip report are intentionally left untouched. <!-- This is an auto-generated comment: release notes by coderabbit.ai --> ## Summary by CodeRabbit * **Refactor** * Simplified internal lorebook entry management by removing unused API methods and making internal interfaces private. <!-- 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/1607?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:13:39 +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#5140
No description provided.