Skip to content

chore: remove dead code and stale artifacts#184

Merged
chloeilabs merged 1 commit into
mainfrom
claude/codebase-audit-cleanup-6lhzxs
Jun 16, 2026
Merged

chore: remove dead code and stale artifacts#184
chloeilabs merged 1 commit into
mainfrom
claude/codebase-audit-cleanup-6lhzxs

Conversation

@chloeilabs

Copy link
Copy Markdown
Owner

Summary

A codebase audit to make the repo easier to maintain. This removes dead code and stale artifacts with no behavior change — every deletion was verified to have zero live consumers, and the full test/lint/format/typecheck suite passes.

The codebase is otherwise lean: no unused runtime or dev dependencies, no orphan source modules, no orphan test stubs.

What changed

1. Dead UI primitives (6 files) — shadcn copies in primitives whether or not you use them. This is a self-contained dead cluster with zero inbound references anywhere in src/ or tests/:

  • ui/alert.tsx, ui/empty.tsx, ui/field.tsx, ui/toggle-group.tsx — never imported
  • ui/toggle.tsx — imported only by toggle-group (dead)
  • ui/label.tsx — imported only by field (dead)

2. Stale pnpm.overrides (3 pins)hono, @hono/node-server, and path-to-regexp overrides no longer resolve to anything in the dependency tree (leftover from a removed Better Auth server stack). The lockfile's overrides block is updated to match.

3. Stale documentationdocs/managed-integrations-rollout.md documented a finance/internal-rollout feature set and env vars (AGENT_FINANCE_WORKFLOWS_ENABLED, internal-user flags, a finance_data tool) that do not exist in the code, plus a broken link to a non-existent doc. Removed it and its two dangling README.md references. (docs/vercel-production-launch-readiness.md is accurate and kept.)

4. Duplicate testtests/managed-integrations.test.mjs largely duplicated tests/integration-flags.test.mjs (same module, same cases) but held 2 unique Edge Config scenarios. Merged those two scenarios into integration-flags.test.mjs, then deleted the duplicate.

Verification

  • pnpm test — 175 tests pass (including the migrated Edge Config cases)
  • pnpm lint — clean (--max-warnings=0)
  • pnpm format:check — clean
  • pnpm typecheck — clean

928 deletions, 46 insertions across 12 files.

https://claude.ai/code/session_01DuT6P59kvDeYNiVQwPck6C


Generated by Claude Code

Codebase cleanup audit — remove unused files/config with no behavior change:

- Delete 6 unused shadcn/ui primitives (alert, empty, field, toggle-group,
  toggle, label) — a self-contained cluster with zero inbound references
  (toggle was used only by toggle-group; label only by field).
- Remove 3 stale pnpm overrides (hono, @hono/node-server, path-to-regexp)
  that no longer resolve to anything in the dependency tree.
- Delete docs/managed-integrations-rollout.md — documents a finance/
  internal-rollout feature set and env vars that do not exist in the code,
  plus a broken link; drop its dangling README references.
- Merge the 2 unique Edge Config scenarios from managed-integrations.test.mjs
  into integration-flags.test.mjs (the rest was a duplicate), then delete it.

All tests (175), lint, format, and typecheck pass.
@vercel

vercel Bot commented Jun 16, 2026

Copy link
Copy Markdown

The latest updates on your projects. Learn more about Vercel for GitHub.

Project Deployment Actions Updated (UTC)
chloei Ready Ready Preview, Comment Jun 16, 2026 12:09am

@chloeilabs chloeilabs merged commit ba9612b into main Jun 16, 2026
6 checks passed
@chloeilabs chloeilabs deleted the claude/codebase-audit-cleanup-6lhzxs branch June 16, 2026 00:29
@chloeilabs chloeilabs mentioned this pull request Jun 16, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants