feat(core): Add name-and-type and type-only credential matching modes for package import (#33689)