import { createDiscoverPeerResourcesToolDefinition, } from "./discover-peer-resources.js";
import { createPeerMcpRouterToolDefinition } from "./peer-mcp-router.js";
import { createPeerToolDefinitions } from "./peer-tools.js";
export function createHubTools(options) {
    const { cwd, peerToolBridge, sharedTools, agentTools, allowHostExecutor, configLayers, peerMcpSnapshots } = options;
    const peerTools = options.includePeerTools === false
        ? []
        : [
            ...createPeerToolDefinitions(cwd, peerToolBridge, { allowHostExecutor }),
            createPeerMcpRouterToolDefinition(peerToolBridge),
        ];
    const discoverTool = configLayers && peerMcpSnapshots
        ? [
            createDiscoverPeerResourcesToolDefinition(() => ({
                getConfigLayers: () => configLayers,
                getPeerMcpSnapshots: () => peerMcpSnapshots(),
                getAgentId: () => options.agentId,
            })),
        ]
        : [];
    return [...peerTools, ...discoverTool, ...(sharedTools ?? []), ...(agentTools ?? [])];
}
//# sourceMappingURL=index.js.map