hunk.code_window:     bin: string,
       pkg: PackageJson,
       outdatedPkgs: {[pkgId: string]: string},
     },
   ): Promise<{[alias: string]: string[]}> {
     const pkgIdByAlias = {}
     const aliasByPkgId: {[pkgId: string]: string[]} = {}
     await Promise.all(flatResolvedDeps
       // sort by depth and then alphabetically
       .sort((a, b) => {
  
hunk.labels: keep keep keep keep keep replace replace keep keep keep keep
hunk.after_edit:   const dependencyPathByAlias = {}
     const aliasesByDependencyPath: {[pkgId: string]: string[]} = {}
  
hunk.file_path: src/link/index.ts
hunk.type: replace
file: import {Resolution} from '@pnpm/resolver-base'
  import encodeRegistry = require('encode-registry')
  
  export function absolutePathToRef (
    absolutePath: string,
    opts: {
      alias: string,
      realName: string,
      resolution: Resolution,
      standardRegistry: string,
    }
  ) {
    if (opts.resolution.type) return absolutePath
  
    const registryName = encodeRegistry(opts.standardRegistry)
    if (absolutePath.startsWith(`${registryName}/`)) {
      if (opts.alias === opts.realName) {
        const ref = absolutePath.replace(`${registryName}/${opts.realName}/`, '')
        if (ref.indexOf('/') === -1) return ref
      }
      return absolutePath.replace(`${registryName}/`, '/')
    }
    return absolutePath
  }
  