Skip to content

refactor(agents): privatize model catalog types - #106801

Merged
steipete merged 1 commit into
mainfrom
codex/burn-dead-exports-agents-model-catalog
Jul 13, 2026
Merged

steipete merged 1 commit into
mainfrom
codex/burn-dead-exports-agents-model-catalog

Conversation

@steipete

Copy link
Copy Markdown
Contributor

What Problem This Solves

Four model-catalog type aliases remained exported even though production and test consumers use them only inside their defining modules.

Why This Change Was Made

The aliases are now module-private, with no runtime or public API change. Fresh production-mode regeneration removes their four exact dead-export allowances and shrinks the baseline from 1,365 to 1,361 entries (+0/-4).

User Impact

No user-visible behavior change. The internal agents module surface is smaller and the shrink-only dead-export ratchet is stricter.

Evidence

  • Testbox tbx_01kxek8ac8bhhph0s9fgznd3gk: baseline regeneration byte-stable at 1,361; pnpm deadcode:exports exact.
  • model-catalog-route.test.ts and model-catalog-visibility.test.ts: 14/14 tests passed.
  • Targeted formatting and type-aware lint passed.
  • pnpm tsgo:core passed.
  • Fresh autoreview: clean, no accepted/actionable findings (0.98 confidence).
  • Source delta +4/-4; baseline delta +0/-4.

@openclaw-barnacle openclaw-barnacle Bot added scripts Repository scripts agents Agent runtime and tooling size: XS maintainer Maintainer-authored PR labels Jul 13, 2026
@steipete
steipete merged commit 6d84622 into main Jul 13, 2026
47 of 52 checks passed
@steipete
steipete deleted the codex/burn-dead-exports-agents-model-catalog branch July 13, 2026 20:45
github-actions Bot pushed a commit to Desicool/openclaw that referenced this pull request Jul 14, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

agents Agent runtime and tooling maintainer Maintainer-authored PR scripts Repository scripts size: XS

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant