"""Compute SDK selection and before/candidate differences, without a final verdict."""
from pathlib import Path
import argparse,json
from baseline_tools import resolve_sdk,field_changes,digest
L=Path(__file__).resolve().parent
if __name__=='__main__':
 p=argparse.ArgumentParser(description=__doc__);p.add_argument('fixture',type=Path,nargs='?',default=L/'fixtures/baseline.json');a=p.parse_args();x=json.loads(a.fixture.read_text())
 print(json.dumps({'execution_kind':'ACTUAL_PYTHON_ANALYSIS','dotnet_executed':False,'selected_sdk':resolve_sdk(x['installed_sdks'],x['candidate']['global_json']),'changed_fields':field_changes(x['before'],x['candidate']),'computed_baseline_digest':digest(x['before']),'computed_candidate_digest':digest(x['candidate'])},indent=2))
