[PR #634] [MERGED] refactor(contracts): split tool contracts by family #2131

Closed
opened 2026-10-16 21:14:42 +00:00 by bsakaguchi · 0 comments
Owner

📋 Pull Request Information

Original PR: https://github.com/morluto/rea/pull/634
Author: @morluto
Created: 10/5/2026
Status: ✅ Merged
Merged: 10/5/2026
Merged by: @morluto

Base: main ← Head: cleanup/split-tool-contracts


📝 Commits (1)

  • 6b168d9 refactor(contracts): split tool contracts by family

📊 Changes

13 files changed (+509 additions, -492 deletions)

View changed files

📝 scripts/lib/catalog-builders.mjs (+3 -3)
📝 scripts/lib/catalog-core.mjs (+3 -0)
📝 src/application/AnalysisProvider.ts (+1 -1)
📝 src/contracts/contractSnapshot.test.ts (+3 -5)
➕ src/contracts/enhancedToolContracts.ts (+91 -0)
➕ src/contracts/officialToolContracts.ts (+234 -0)
➕ src/contracts/sessionToolContracts.ts (+161 -0)
📝 src/contracts/toolContracts.test.ts (+4 -6)
📝 src/contracts/toolContracts.ts (+3 -469)
📝 src/server/registerOfficialTools.ts (+1 -1)
📝 tests/boundary/mcp/enhancedTools.01-lists-the-complete-target-open.test.ts (+3 -5)
📝 tests/boundary/mcp/officialTools.test.ts (+1 -1)
📝 tests/boundary/providers/hopper/hopperBridgeFacade.test.ts (+1 -1)

📄 Description

Stack 1/4 (base: main).

Moves official, enhanced, and session contract arrays with their builders into officialToolContracts, enhancedToolContracts, and sessionToolContracts. toolContracts keeps the ordered assembly, resolver, and schema re-exports. Migrates all importers including catalog scripts. No re-export shims.

Verification (Node 24): tsc clean, contract snapshot tests pass, generated catalog output unchanged (docs:check), official/enhanced/hopper-facade boundary tests pass.


🔄 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/morluto/rea/pull/634 **Author:** [@morluto](https://github.com/morluto) **Created:** 10/5/2026 **Status:** ✅ Merged **Merged:** 10/5/2026 **Merged by:** [@morluto](https://github.com/morluto) **Base:** `main` ← **Head:** `cleanup/split-tool-contracts` --- ### 📝 Commits (1) - [`6b168d9`](https://github.com/morluto/rea/commit/6b168d9cd81780fcf802cf3e7ca437d0141ea4c5) refactor(contracts): split tool contracts by family ### 📊 Changes **13 files changed** (+509 additions, -492 deletions) <details> <summary>View changed files</summary> 📝 `scripts/lib/catalog-builders.mjs` (+3 -3) 📝 `scripts/lib/catalog-core.mjs` (+3 -0) 📝 `src/application/AnalysisProvider.ts` (+1 -1) 📝 `src/contracts/contractSnapshot.test.ts` (+3 -5) ➕ `src/contracts/enhancedToolContracts.ts` (+91 -0) ➕ `src/contracts/officialToolContracts.ts` (+234 -0) ➕ `src/contracts/sessionToolContracts.ts` (+161 -0) 📝 `src/contracts/toolContracts.test.ts` (+4 -6) 📝 `src/contracts/toolContracts.ts` (+3 -469) 📝 `src/server/registerOfficialTools.ts` (+1 -1) 📝 `tests/boundary/mcp/enhancedTools.01-lists-the-complete-target-open.test.ts` (+3 -5) 📝 `tests/boundary/mcp/officialTools.test.ts` (+1 -1) 📝 `tests/boundary/providers/hopper/hopperBridgeFacade.test.ts` (+1 -1) </details> ### 📄 Description Stack 1/4 (base: main). Moves official, enhanced, and session contract arrays with their builders into officialToolContracts, enhancedToolContracts, and sessionToolContracts. toolContracts keeps the ordered assembly, resolver, and schema re-exports. Migrates all importers including catalog scripts. No re-export shims. Verification (Node 24): tsc clean, contract snapshot tests pass, generated catalog output unchanged (docs:check), official/enhanced/hopper-facade boundary tests pass. --- <sub>🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.</sub>
bsakaguchi 2026-10-16 21:14:42 +00: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
morluto/rea#2131
No description provided.