On the eve of his first Winter Meetings, Buster Posey has made his first splash as the Giants’ president of baseball operations.

The Giants have agreed with free-agent shortstop Willy Adames on a seven-year, $182 million contract — the largest in franchise history — pending a physical, according to multiple reports.

The previous record, coincidentally enough, belonged to Posey ($167 million).

Adames, 29, is coming off his best season in the majors, posting career-highs in homers (32), RBIs (112), steals (21) and WAR (4.8, according to FanGraphs).

Over seven seasons with the Rays and Brewers, Adames owns a career .248 batting average and .766 OPS with 150 home runs and 472 RBIs.

Adames hasn’t won a Gold Glove Award but has been one of baseball’s better defenders at shortstop. He rated poorly last season (-16 defensive runs saved) but has totaled 20 defensive runs saved and 14 outs above average from 2018-23.

Adames will join Matt Chapman, who signed a six-year, $151 million extension last September, on the left side of San Francisco’s infield for years to come.

The signing of Adames gives the Giants a rough blueprint for the lineup they will roll out on Opening Day. Along with Adames at short and Chapman at third, Tyler Fitzgerald will likely slide over to second base and neighbor LaMonte Wade Jr. at first base.

Patrick Bailey, a first-time Gold Glover, will assume the role of catcher while Heliot Ramos, Jung Hoo Lee and Mike Yastrzemski roam the outfield.