Skip to content

improvement(repo): reorganize contracts directory - #4376

Merged
icecrasher321 merged 2 commits into
stagingfrom
chore/reorg-tool-contracts
May 1, 2026
Merged

improvement(repo): reorganize contracts directory #4376
icecrasher321 merged 2 commits into
stagingfrom
chore/reorg-tool-contracts

Conversation

@icecrasher321

@icecrasher321icecrasher321 commented May 1, 2026

Copy link
Copy Markdown
Collaborator

Summary

Clearer organization of contracts directory.

Type of Change

  • Other: Code organization

Testing

N/A

Checklist

  • Code follows project style guidelines
  • Self-reviewed my changes
  • Tests added/updated and passing
  • No new warnings introduced
  • I confirm that I have read and agree to the terms outlined in the Contributor License Agreement (CLA)=

@vercel

vercelBot commented May 1, 2026

Copy link
Copy Markdown

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

1 Skipped Deployment
ProjectDeploymentActionsUpdated (UTC)
docsSkippedSkippedMay 1, 2026 3:21pm

Request Review

@cursor

cursorBot commented May 1, 2026

Copy link
Copy Markdown

PR Summary

Medium Risk
Broad refactor of contract module layout and imports across many API routes; main risk is missed/incorrect re-exports causing build-time or runtime contract mismatches, but no functional request-handling logic changes are apparent.

Overview
Refactors the API contract layer by splitting the previously monolithic contract modules (e.g. media-tools, internal-tools, communication-tools, database-tools, and some v1/audit/copilot definitions) into a clearer directory structure under contracts/tools/*, contracts/media/*, and contracts/v1/*, and updates all affected route handlers/hooks to import from the new locations.

Adds boundary-exceptions.ts to centrally document non-JSON/binary/streaming/multipart routes that intentionally bypass the usual contract boundary expectations.

Reviewed by Cursor Bugbot for commit fcf548a. Configure here.

@icecrasher321icecrasher321 changed the title Chore/reorg tool contractsimprovement(repo): reorganiza contracts directory May 1, 2026
@icecrasher321icecrasher321 changed the title improvement(repo): reorganiza contracts directory improvement(repo): reorganize contracts directory May 1, 2026
@icecrasher321
icecrasher321 merged commit 47208e0 into stagingMay 1, 2026
14 checks passed
@waleedlatif1
waleedlatif1 deleted the chore/reorg-tool-contracts branch May 1, 2026 18:00
Sign up for freeto 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.

1 participant

@icecrasher321