@@ -35,11 +35,11 @@ import { PLATFORM_MAP_TOOLS } from '../constants/external-tools-platforms.mjs'
3535export const logger = getDefaultLogger ( )
3636
3737/**
38- * External tools configuration loaded from external -tools.json.
38+ * External tools configuration loaded from bundle -tools.json.
3939 * Contains version info, GitHub repos, and download metadata for security tools.
4040 */
4141const __dirname = path . dirname ( fileURLToPath ( import . meta. url ) )
42- const externalToolsPath = path . join ( __dirname , '../../external -tools.json' )
42+ const externalToolsPath = path . join ( __dirname , '../../bundle -tools.json' )
4343export const externalTools = JSON . parse ( readFileSync ( externalToolsPath , 'utf8' ) )
4444
4545/**
@@ -251,13 +251,13 @@ export async function downloadExternalTools(platform, arch, isMusl = false) {
251251 }
252252
253253 // Security tool versions and GitHub release info.
254- // Versions are read from external -tools.json for centralized management.
254+ // Versions are read from bundle -tools.json for centralized management.
255255 // Repository info is derived from the 'repository' field (format: owner/repo).
256256 const TOOL_REPOS = {
257257 __proto__ : null ,
258258 }
259259
260- // Populate TOOL_REPOS from external -tools.json.
260+ // Populate TOOL_REPOS from bundle -tools.json.
261261 // Filter by type === 'github-release' to include all GitHub-released tools.
262262 for ( const [ toolName , toolConfig ] of Object . entries ( externalTools ) ) {
263263 if ( toolConfig . type === 'github-release' ) {
@@ -297,11 +297,11 @@ export async function downloadExternalTools(platform, arch, isMusl = false) {
297297 for ( const [ toolName , assetName ] of Object . entries ( toolsForPlatform ) ) {
298298 const config = TOOL_REPOS [ toolName ]
299299
300- // Validate tool exists in TOOL_REPOS (populated from external -tools.json).
300+ // Validate tool exists in TOOL_REPOS (populated from bundle -tools.json).
301301 if ( ! config ) {
302302 throw new Error (
303303 `Tool "${ toolName } " is defined in platform mappings but not found in TOOL_REPOS. ` +
304- `Ensure "${ toolName } " exists in external -tools.json with type "github-release".` ,
304+ `Ensure "${ toolName } " exists in bundle -tools.json with type "github-release".` ,
305305 )
306306 }
307307
@@ -327,7 +327,7 @@ export async function downloadExternalTools(platform, arch, isMusl = false) {
327327 const tag = config . version
328328 const url = `https://github.com/${ config . owner } /${ config . repo } /releases/download/${ tag } /${ assetName } `
329329
330- // Get SHA256 checksum from external -tools.json.
330+ // Get SHA256 checksum from bundle -tools.json.
331331 // SECURITY: Checksum verification is REQUIRED for all external tool downloads.
332332 // If checksum is missing, the build MUST fail.
333333 const toolConfig = externalTools [ toolName ]
@@ -336,7 +336,7 @@ export async function downloadExternalTools(platform, arch, isMusl = false) {
336336 if ( ! sha256 ) {
337337 throw new Error (
338338 `Missing SHA-256 checksum for ${ toolName } asset: ${ assetName } . ` +
339- 'This is a security requirement. Please update external -tools.json with the correct checksum.' ,
339+ 'This is a security requirement. Please update bundle -tools.json with the correct checksum.' ,
340340 )
341341 }
342342
@@ -477,7 +477,7 @@ export async function downloadExternalTools(platform, arch, isMusl = false) {
477477 if ( ! wheelSha256 ) {
478478 throw new Error (
479479 `Missing SHA-256 checksum for socketsecurity wheel: ${ wheelFilename } . ` +
480- 'Please update external -tools.json with the correct checksum.' ,
480+ 'Please update bundle -tools.json with the correct checksum.' ,
481481 )
482482 }
483483
0 commit comments