Skip to content

fix: remove unused hex record metadata type - #7718

Closed
reacher-z wants to merge 1 commit into
morluto:mainfrom
reacher-z:codex/remove-unused-hex-record-type
Closed

reacher-z wants to merge 1 commit into
morluto:mainfrom
reacher-z:codex/remove-unused-hex-record-type

Conversation

@reacher-z

Copy link
Copy Markdown

Summary

Remove the unused HexRecordRegionMetadata type alias so the ordinary Knip gate passes. The schema and the ArtifactFormatMetadata discriminated union remain unchanged.

Problem and expected behavior

On main b594fbc3e, a fresh Knip run after npm run build:cached reports this alias as the sole unused exported type. No source, test, or script imports it; callers use the owning schema and union.

Change and scope

Delete the three-line alias. No replacement abstraction, ignore rule, runtime change, target interaction, or new provider is introduced. Maintainer capability scope decision: not applicable.

Contract and boundary impact

  • Owner: src/domain/artifactFormatMetadata.ts; the schema and consumers are unchanged.
  • CLI/MCP contracts, Evidence, provider behavior, package metadata, and installation: unchanged.
  • Target interaction: none; unused type declaration only.

Evidence and regression coverage

  • Executed on the unmodified base: npm run build:cached passed; an uncached node_modules/.bin/knip failed with the unused alias.
  • After removal: npm run check passed, including typecheck, ordinary Knip, module/architecture checks, production reachability analysis, and typed lint.
  • Node 24.22.1 and npm 11.16.0 on macOS arm64. Existing lint warnings and advisory production-reachability candidates remain.

This removes an unused type declaration; no new runtime test or real-provider claim is needed.

Compatibility, safety, and release

No runtime or advertised CLI/MCP behavior change. The removed internal alias has no in-repository consumers.

Author readiness

Human owner: @reacher-z

  • I reviewed the final diff and relevant existing code, understand the change and its edge cases, and take responsibility for the complete PR, including AI-assisted work.
  • I checked the evidence above, confirmed it supports the current change, and recorded meaningful validation gaps.
  • I declare this PR ready for initial maintainer review.

@greptile-apps

greptile-apps Bot commented Oct 28, 2026 •

Copy link
Copy Markdown
Contributor

RetriggerView in GreptileConfidence Score: 5/5

[Low impact] This PR appears safe to merge.

Summary

Removes the unused HexRecordRegionMetadata alias.

  • Hex-record regions no longer have a separate exported type name.

Reviews (1) · Last reviewed commit: "fix: remove unused hex record metadata t..." · Reviewed by Greptile

@reacher-z reacher-z closed this Oct 29, 2026
@morluto morluto added the bug Something isn't working label Nov 23, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

bug Something isn't working

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants