Merge pull request #37 from qinfendebingshuo/copilot/fix-interactive-dialogue-interface

fix: exclude router aggregator index.js from HLI contract check
This commit is contained in:
冰朔 2026-03-10 16:33:30 +08:00 committed by GitHub
commit 544f9cae47
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
1 changed files with 2 additions and 2 deletions

View File

@ -15,8 +15,8 @@ domains.forEach(domain => {
const routeDir = path.join(ROUTE_DIR, domain);
const schemaDir = path.join(SCHEMA_DIR, domain);
// 扫描路由文件
const routeFiles = fs.readdirSync(routeDir).filter(f => f.endsWith('.js'));
// 扫描路由文件(排除 index.js 路由聚合文件)
const routeFiles = fs.readdirSync(routeDir).filter(f => f.endsWith('.js') && f !== 'index.js');
routeFiles.forEach(routeFile => {
const name = path.basename(routeFile, '.js');