@@ -28,11 +28,34 @@ export function registerCompareCommand(program: Command): void {
2828 printKeyValue ( "Right model" , comparison . modelChange . right ) ;
2929 printKeyValue ( "Left tool" , comparison . toolChange . left ) ;
3030 printKeyValue ( "Right tool" , comparison . toolChange . right ) ;
31+ printKeyValue ( "Left status" , comparison . outcomeChange . leftStatus ) ;
32+ printKeyValue ( "Right status" , comparison . outcomeChange . rightStatus ) ;
33+ printKeyValue ( "Left score" , comparison . outcomeChange . leftScore ?. toString ( ) ) ;
34+ printKeyValue ( "Right score" , comparison . outcomeChange . rightScore ?. toString ( ) ) ;
35+ printKeyValue ( "Score delta" , formatNumber ( comparison . outcomeChange . scoreDelta ) ) ;
3136 console . log ( "" ) ;
3237 printList ( "Only in left" , comparison . artifactDelta . onlyInLeft . length > 0 ? comparison . artifactDelta . onlyInLeft : [ "None" ] ) ;
3338 printList ( "Only in right" , comparison . artifactDelta . onlyInRight . length > 0 ? comparison . artifactDelta . onlyInRight : [ "None" ] ) ;
3439 console . log ( "" ) ;
40+ printList (
41+ "Artifact hash changes" ,
42+ comparison . artifactChanges
43+ . filter ( ( artifact ) => ! artifact . sameHash )
44+ . map ( ( artifact ) => `${ artifact . artifact } : ${ artifact . left ?. sha256 ?? "missing" } -> ${ artifact . right ?. sha256 ?? "missing" } ` )
45+ . concat (
46+ comparison . artifactChanges . filter ( ( artifact ) => ! artifact . sameHash ) . length === 0 ? [ "None" ] : [ ]
47+ )
48+ ) ;
49+ console . log ( "" ) ;
3550 printKeyValue ( "Workspace file delta" , String ( comparison . counts . workspaceFilesDelta ) ) ;
3651 printKeyValue ( "Event count delta" , String ( comparison . counts . eventCountDelta ) ) ;
3752 } ) ;
3853}
54+
55+ function formatNumber ( value : number | undefined ) : string | undefined {
56+ if ( value === undefined ) {
57+ return undefined ;
58+ }
59+
60+ return Number ( value . toFixed ( 4 ) ) . toString ( ) ;
61+ }
0 commit comments