@@ -10,19 +10,10 @@ import {
1010 ValidationError ,
1111 type ComponentDefinition ,
1212 type ComponentPortMetadata ,
13+ type IScopedTraceService ,
1314} from '@shipsec/component-sdk' ;
1415import type { InputWarning } from './spill-resolver' ;
1516
16- interface TraceRecorder {
17- record ( event : {
18- type : string ;
19- timestamp : string ;
20- message ?: string ;
21- level : string ;
22- data ?: unknown ;
23- } ) : void ;
24- }
25-
2617/**
2718 * Validate that all required inputs are present and log trace warnings.
2819 *
@@ -32,7 +23,7 @@ export function validateRequiredInputs(
3223 warnings : InputWarning [ ] ,
3324 component : ComponentDefinition ,
3425 resolvedParams : Record < string , unknown > ,
35- trace : TraceRecorder | undefined ,
26+ trace : IScopedTraceService | undefined ,
3627 actionRef : string ,
3728) : void {
3829 // Get input port metadata to check which inputs are truly required
@@ -69,7 +60,7 @@ export function validateRequiredInputs(
6960 timestamp : new Date ( ) . toISOString ( ) ,
7061 message : `Input '${ warning . target } ' mapped from ${ warning . sourceRef } .${ warning . sourceHandle } was undefined` ,
7162 level : isRequired ? 'error' : 'warn' ,
72- data : warning ,
63+ data : warning as unknown as Record < string , unknown > ,
7364 } ) ;
7465 }
7566
0 commit comments