@@ -115,6 +115,29 @@ export function resolveInitialDoctorHealthContributions(params: {
115115 healthCheckIds : [ "core/doctor/legacy-state" , "core/doctor/removed-workspaces-state" ] ,
116116 run : params . runLegacyStateHealth ,
117117 } ) ,
118+ createDoctorHealthContribution ( {
119+ id : "doctor:session-transcripts" ,
120+ label : "Session transcripts" ,
121+ healthChecks : {
122+ description : "Legacy or branchy session transcript files are represented as findings." ,
123+ defaultEnabled : false ,
124+ async detect ( ) {
125+ const { detectSessionTranscriptHealthIssues, sessionTranscriptIssueToHealthFinding } =
126+ await import ( "../commands/doctor-session-transcripts.js" ) ;
127+ return ( await detectSessionTranscriptHealthIssues ( ) ) . map (
128+ sessionTranscriptIssueToHealthFinding ,
129+ ) ;
130+ } ,
131+ repair : legacyOwnedRepair ( async ( ) => {
132+ const { detectSessionTranscriptHealthIssues, sessionTranscriptIssueToRepairEffect } =
133+ await import ( "../commands/doctor-session-transcripts.js" ) ;
134+ return ( await detectSessionTranscriptHealthIssues ( ) ) . map (
135+ sessionTranscriptIssueToRepairEffect ,
136+ ) ;
137+ } , "legacy doctor session transcript contribution owns transcript rewrites" ) ,
138+ } ,
139+ run : runSessionTranscriptsHealth ,
140+ } ) ,
118141 createDoctorHealthContribution ( {
119142 id : "doctor:agent-memory-schema" ,
120143 label : "Agent memory schema" ,
@@ -303,29 +326,6 @@ export function resolveInitialDoctorHealthContributions(params: {
303326 healthCheckIds : [ "core/doctor/session-locks" ] ,
304327 run : runSessionLocksHealth ,
305328 } ) ,
306- createDoctorHealthContribution ( {
307- id : "doctor:session-transcripts" ,
308- label : "Session transcripts" ,
309- healthChecks : {
310- description : "Legacy or branchy session transcript files are represented as findings." ,
311- defaultEnabled : false ,
312- async detect ( ) {
313- const { detectSessionTranscriptHealthIssues, sessionTranscriptIssueToHealthFinding } =
314- await import ( "../commands/doctor-session-transcripts.js" ) ;
315- return ( await detectSessionTranscriptHealthIssues ( ) ) . map (
316- sessionTranscriptIssueToHealthFinding ,
317- ) ;
318- } ,
319- repair : legacyOwnedRepair ( async ( ) => {
320- const { detectSessionTranscriptHealthIssues, sessionTranscriptIssueToRepairEffect } =
321- await import ( "../commands/doctor-session-transcripts.js" ) ;
322- return ( await detectSessionTranscriptHealthIssues ( ) ) . map (
323- sessionTranscriptIssueToRepairEffect ,
324- ) ;
325- } , "legacy doctor session transcript contribution owns transcript rewrites" ) ,
326- } ,
327- run : runSessionTranscriptsHealth ,
328- } ) ,
329329 createDoctorHealthContribution ( {
330330 id : "doctor:session-transcript-headers" ,
331331 label : "Session transcript headers" ,
0 commit comments