@@ -100,7 +100,11 @@ export function logPhase(params) {
100100 } ;
101101
102102 // Append optional secondary-mode telemetry fields when present (integers/boolean, DEC-65)
103- const TELEMETRY_FIELDS = [ 'context_size_at_spawn' , 'compact_events_count' , 'retry_429_count' , 'nested_session_completed' , 'pipeline' , 'pr_url' , 'auto_merge_applied' ] ;
103+ const TELEMETRY_FIELDS = [
104+ 'context_size_at_spawn' , 'compact_events_count' , 'retry_429_count' ,
105+ 'nested_session_completed' , 'pipeline' , 'pr_url' , 'auto_merge_applied' ,
106+ 'cutover_from' , 'cutover_to' , 'forced' , 'operator_id' , 'pre_flip_in_progress_count' ,
107+ ] ;
104108 for ( const f of TELEMETRY_FIELDS ) {
105109 if ( f in params ) entry [ f ] = params [ f ] ;
106110 }
@@ -138,6 +142,11 @@ if (import.meta.url === pathToFileURL(process.argv[1]).href) {
138142 const logPathArg = argValue ( '--log-path' ) ;
139143 const prUrlArg = argValue ( '--pr-url' ) ;
140144 const autoMergeApplied = argValue ( '--auto-merge-applied' ) ;
145+ const cutoverFromArg = argValue ( '--cutover-from' ) ;
146+ const cutoverToArg = argValue ( '--cutover-to' ) ;
147+ const forcedArg = argValue ( '--forced' ) ;
148+ const operatorIdArg = argValue ( '--operator-id' ) ;
149+ const preFlipCountArg = argValue ( '--pre-flip-in-progress-count' ) ;
141150
142151 // --log-path overrides default log path (useful for testing without internal _setLogPath)
143152 if ( logPathArg ) _setLogPath ( logPathArg ) ;
@@ -159,6 +168,11 @@ if (import.meta.url === pathToFileURL(process.argv[1]).href) {
159168 if ( pipelineArg !== undefined ) phaseParams . pipeline = pipelineArg ;
160169 if ( prUrlArg !== undefined && prUrlArg !== '' ) phaseParams . pr_url = prUrlArg ;
161170 if ( autoMergeApplied !== undefined ) phaseParams . auto_merge_applied = autoMergeApplied === 'true' ;
171+ if ( cutoverFromArg !== undefined ) phaseParams . cutover_from = cutoverFromArg ;
172+ if ( cutoverToArg !== undefined ) phaseParams . cutover_to = cutoverToArg ;
173+ if ( forcedArg !== undefined ) phaseParams . forced = forcedArg === 'true' ;
174+ if ( operatorIdArg !== undefined ) phaseParams . operator_id = operatorIdArg ;
175+ if ( preFlipCountArg !== undefined ) phaseParams . pre_flip_in_progress_count = Number ( preFlipCountArg ) ;
162176 logPhase ( phaseParams ) ;
163177 process . stdout . write ( formatPhaseStdout ( phase , provider , model , fallbackReason ) ) ;
164178 } catch ( err ) {
0 commit comments