first
This commit is contained in:
50
count-endpoints.js
Normal file
50
count-endpoints.js
Normal file
@@ -0,0 +1,50 @@
|
||||
#!/usr/bin/env node
|
||||
|
||||
/**
|
||||
* Count endpoints in each array for verification
|
||||
*/
|
||||
|
||||
console.log('📊 Counting endpoints in each array...\n');
|
||||
|
||||
import('./src/config/endpoints.js').then(async (module) => {
|
||||
try {
|
||||
const {
|
||||
PUBLIC_ENDPOINTS,
|
||||
PROVIDER_ENDPOINTS,
|
||||
PATIENT_ENDPOINTS,
|
||||
PARTNER_ENDPOINTS,
|
||||
AFFILIATE_ENDPOINTS,
|
||||
NETWORK_ENDPOINTS
|
||||
} = module;
|
||||
|
||||
console.log('=== ENDPOINT COUNTS ===');
|
||||
console.log(`PUBLIC_ENDPOINTS: ${PUBLIC_ENDPOINTS.length}`);
|
||||
console.log(`PROVIDER_ENDPOINTS: ${PROVIDER_ENDPOINTS.length}`);
|
||||
console.log(`PATIENT_ENDPOINTS: ${PATIENT_ENDPOINTS.length}`);
|
||||
console.log(`PARTNER_ENDPOINTS: ${PARTNER_ENDPOINTS.length}`);
|
||||
console.log(`AFFILIATE_ENDPOINTS: ${AFFILIATE_ENDPOINTS.length}`);
|
||||
console.log(`NETWORK_ENDPOINTS: ${NETWORK_ENDPOINTS.length}`);
|
||||
|
||||
const total = PUBLIC_ENDPOINTS.length + PROVIDER_ENDPOINTS.length +
|
||||
PATIENT_ENDPOINTS.length + PARTNER_ENDPOINTS.length +
|
||||
AFFILIATE_ENDPOINTS.length + NETWORK_ENDPOINTS.length;
|
||||
|
||||
console.log(`\nTOTAL ENDPOINTS: ${total}`);
|
||||
|
||||
// Verify tool generation matches
|
||||
console.log('\n=== VERIFICATION ===');
|
||||
console.log('Expected tool counts should match endpoint counts:');
|
||||
console.log(`- Public tools: ${PUBLIC_ENDPOINTS.length} (from PUBLIC_ENDPOINTS)`);
|
||||
console.log(`- Provider tools: ${PROVIDER_ENDPOINTS.length} (from PROVIDER_ENDPOINTS)`);
|
||||
console.log(`- Patient tools: ${PATIENT_ENDPOINTS.length} (from PATIENT_ENDPOINTS)`);
|
||||
console.log(`- Partner tools: ${PARTNER_ENDPOINTS.length} (from PARTNER_ENDPOINTS)`);
|
||||
console.log(`- Affiliate tools: ${AFFILIATE_ENDPOINTS.length} (from AFFILIATE_ENDPOINTS)`);
|
||||
console.log(`- Network tools: ${NETWORK_ENDPOINTS.length} (from NETWORK_ENDPOINTS)`);
|
||||
|
||||
} catch (error) {
|
||||
console.error('❌ Error:', error.message);
|
||||
console.error('Stack:', error.stack);
|
||||
}
|
||||
}).catch(error => {
|
||||
console.error('❌ Import error:', error.message);
|
||||
});
|
Reference in New Issue
Block a user