[PR #1666] [CLOSED] [codex] Prune superseded Knip exports #5198

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/1666
Author: @Xelvanis
Created: 5/30/2026
Status: ❌ Closed

Base: refactor ← Head: codex/knip-step5-cleanup


📝 Commits (1)

  • 2ae7c4d Prune superseded Knip exports

📊 Changes

9 files changed (+19 additions, -209 deletions)

View changed files

📝 src/engine/agents-runtime/executor/agent-executor.ts (+0 -8)
📝 src/engine/contracts/constants/image-generation-defaults.ts (+0 -16)
📝 src/engine/contracts/constants/model-lists.ts (+0 -98)
📝 src/engine/generation/agent-normalizers.ts (+0 -26)
📝 src/engine/generation/generate-route-utils.ts (+0 -22)
📝 src/features/catalog/connections/hooks/use-connections.ts (+18 -3)
📝 src/features/catalog/connections/index.ts (+0 -1)
➖ src/features/catalog/connections/types.ts (+0 -34)
📝 src/features/shell/connections/components/ConnectionEditor.tsx (+1 -1)

📄 Description

Linked issue

No linked issue; maintenance slice from local Knip unused-export triage.

Why this change

  • Remove superseded or dead export surface from the Knip step-5 cleanup slice so future unused-export reports focus on real wiring gaps instead of stale helpers.

What changed

  • Removed unsupported direct-provider static model arrays that are not part of the current APIProvider union.
  • Removed unused TS image prompt merge helpers now handled in the Rust image runtime path.
  • Removed stale generation/test helper exports with no current callers.
  • Deleted the catalog connection feature type barrel and kept list-row typing local to the catalog hook while importing the canonical connection test result contract.

Refactor impact

Primary owner:

  • Engine contracts/generation helpers and catalog connection data hooks.

Impact areas reviewed:

  • Engine model list provider union alignment.
  • Image-generation defaults UI imports and Rust-owned prompt merge path.
  • Generation helper callers and agent executor callers.
  • Catalog connection hook consumers in shell, catalog, modes, and game setup surfaces.

Boundary notes:

  • Engine cleanup stays React-free and does not add feature, shared API, or Tauri imports.
  • Catalog connection hooks continue to call shared storage/connection API wrappers; no raw Tauri or remote-runtime calls were added.
  • No Rust, shared API command routing, or remote runtime allowlist behavior changed.

Pressure points touched:

  • None of the named pressure points were touched. This does not change ModeSurface, GameSurface, shared mode UI orchestration, src-tauri/src/lib.rs, or import modules.

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

  • Ran pnpm typecheck successfully.
  • Ran pnpm check:architecture successfully.
  • Ran pnpm check:unused successfully.
  • Ran pnpm build successfully; Vite reported the existing large-chunk warning.
  • Ran targeted rg checks for removed exports/imports.
  • No browser or Tauri manual verification was run because this is non-visual TypeScript export cleanup.

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-note updates were made. The repo has no CHANGELOG.md, and this is maintenance-only export/type cleanup.

UI evidence

No UI evidence added; this change has no visible UI surface.

Summary by CodeRabbit

  • Refactor

    • Reorganized internal type definitions to align with engine contracts, improving code maintainability and reducing duplication.
    • Removed unused utility functions and test-only helpers across multiple modules.
    • Streamlined module exports for better code clarity and organization.
  • Chores

    • Cleaned up deprecated code to reduce technical debt.

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/1666 **Author:** [@Xelvanis](https://github.com/Xelvanis) **Created:** 5/30/2026 **Status:** ❌ Closed **Base:** `refactor` ← **Head:** `codex/knip-step5-cleanup` --- ### 📝 Commits (1) - [`2ae7c4d`](https://github.com/Pasta-Devs/Marinara-Engine/commit/2ae7c4d074814d93b032053f20607ae4385c8c80) Prune superseded Knip exports ### 📊 Changes **9 files changed** (+19 additions, -209 deletions) <details> <summary>View changed files</summary> 📝 `src/engine/agents-runtime/executor/agent-executor.ts` (+0 -8) 📝 `src/engine/contracts/constants/image-generation-defaults.ts` (+0 -16) 📝 `src/engine/contracts/constants/model-lists.ts` (+0 -98) 📝 `src/engine/generation/agent-normalizers.ts` (+0 -26) 📝 `src/engine/generation/generate-route-utils.ts` (+0 -22) 📝 `src/features/catalog/connections/hooks/use-connections.ts` (+18 -3) 📝 `src/features/catalog/connections/index.ts` (+0 -1) ➖ `src/features/catalog/connections/types.ts` (+0 -34) 📝 `src/features/shell/connections/components/ConnectionEditor.tsx` (+1 -1) </details> ### 📄 Description ## Linked issue No linked issue; maintenance slice from local Knip unused-export triage. ## Why this change - Remove superseded or dead export surface from the Knip step-5 cleanup slice so future unused-export reports focus on real wiring gaps instead of stale helpers. ## What changed - Removed unsupported direct-provider static model arrays that are not part of the current `APIProvider` union. - Removed unused TS image prompt merge helpers now handled in the Rust image runtime path. - Removed stale generation/test helper exports with no current callers. - Deleted the catalog connection feature type barrel and kept list-row typing local to the catalog hook while importing the canonical connection test result contract. ## Refactor impact Primary owner: - Engine contracts/generation helpers and catalog connection data hooks. Impact areas reviewed: - Engine model list provider union alignment. - Image-generation defaults UI imports and Rust-owned prompt merge path. - Generation helper callers and agent executor callers. - Catalog connection hook consumers in shell, catalog, modes, and game setup surfaces. Boundary notes: - Engine cleanup stays React-free and does not add feature, shared API, or Tauri imports. - Catalog connection hooks continue to call shared storage/connection API wrappers; no raw Tauri or remote-runtime calls were added. - No Rust, shared API command routing, or remote runtime allowlist behavior changed. Pressure points touched: - None of the named pressure points were touched. This does not change `ModeSurface`, `GameSurface`, shared mode UI orchestration, `src-tauri/src/lib.rs`, or import modules. ## 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 - Ran `pnpm typecheck` successfully. - Ran `pnpm check:architecture` successfully. - Ran `pnpm check:unused` successfully. - Ran `pnpm build` successfully; Vite reported the existing large-chunk warning. - Ran targeted `rg` checks for removed exports/imports. - No browser or Tauri manual verification was run because this is non-visual TypeScript export cleanup. ## 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-note updates were made. The repo has no `CHANGELOG.md`, and this is maintenance-only export/type cleanup. ## UI evidence No UI evidence added; this change has no visible UI surface. <!-- This is an auto-generated comment: release notes by coderabbit.ai --> ## Summary by CodeRabbit * **Refactor** * Reorganized internal type definitions to align with engine contracts, improving code maintainability and reducing duplication. * Removed unused utility functions and test-only helpers across multiple modules. * Streamlined module exports for better code clarity and organization. * **Chores** * Cleaned up deprecated code to reduce technical debt. <!-- 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/1666?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#5198
No description provided.