diff --git a/src/verification.ts b/src/verification.ts index e62c663..4966ae6 100644 --- a/src/verification.ts +++ b/src/verification.ts @@ -151,10 +151,14 @@ function readPackageScripts(repoDir: string): Record { function detectDirectRuntimeVersion( command: Pick, ): string { + // The command file may be a bare name ("bun") or a resolved absolute path + // ("/home/claude/.bun/bin/bun"); match on the basename so version detection + // still fires instead of degrading to "host:". + const runtimeName = path.basename(command.file); try { - switch (command.file) { + switch (runtimeName) { case 'bun': { - const bunVersion = execFileSync('bun', ['--version'], { + const bunVersion = execFileSync(command.file, ['--version'], { encoding: 'utf-8', stdio: ['ignore', 'pipe', 'pipe'], timeout: 5000,