refactor(contracts): split tool contracts by family (#634)
Move official, enhanced, and session contract arrays with their builders into officialToolContracts, enhancedToolContracts, and sessionToolContracts. toolContracts keeps the ordered assembly and resolver. Migrate all importers including catalog scripts. No re-export shims; generated catalog output is unchanged.
This commit is contained in:
@@ -6,12 +6,12 @@ export const toolFamilyCatalog = (sources) => {
|
||||
{
|
||||
id: "direct",
|
||||
surface: "official-proxy",
|
||||
contracts: sources.toolContracts.OFFICIAL_TOOL_CONTRACTS,
|
||||
contracts: sources.officialContracts.OFFICIAL_TOOL_CONTRACTS,
|
||||
},
|
||||
{
|
||||
id: "enhanced",
|
||||
surface: "enhanced",
|
||||
contracts: sources.toolContracts.ENHANCED_TOOL_CONTRACTS,
|
||||
contracts: sources.enhancedContracts.ENHANCED_TOOL_CONTRACTS,
|
||||
},
|
||||
{
|
||||
id: "native",
|
||||
@@ -59,7 +59,7 @@ export const toolFamilyCatalog = (sources) => {
|
||||
{
|
||||
id: "session",
|
||||
surface: "session",
|
||||
contracts: sources.toolContracts.SESSION_TOOL_CONTRACTS,
|
||||
contracts: sources.sessionContracts.SESSION_TOOL_CONTRACTS,
|
||||
},
|
||||
].map(({ id, surface, contracts }) => ({
|
||||
id,
|
||||
|
||||
@@ -37,6 +37,9 @@ const SOURCE_PATHS = {
|
||||
catalogIdentity: "dist/catalogIdentity.js",
|
||||
cli: "dist/cli.js",
|
||||
toolContracts: "dist/contracts/toolContracts.js",
|
||||
officialContracts: "dist/contracts/officialToolContracts.js",
|
||||
enhancedContracts: "dist/contracts/enhancedToolContracts.js",
|
||||
sessionContracts: "dist/contracts/sessionToolContracts.js",
|
||||
nativeContracts: "dist/contracts/nativeToolContracts.js",
|
||||
artifactContracts: "dist/contracts/artifactToolContracts.js",
|
||||
managedContracts: "dist/contracts/managedToolContracts.js",
|
||||
|
||||
Reference in New Issue
Block a user