@@ -2391,42 +2391,40 @@ pending_approval_requests AS (
23912391 )
23922392 : Result . failVoid ,
23932393 ) ,
2394- threads : threadRows . map (
2395- ( row ) : OrchestrationThreadShell => ( {
2396- id : row . threadId ,
2397- projectId : row . projectId ,
2398- title : row . title ,
2399- modelSelection : row . modelSelection ,
2400- runtimeMode : row . runtimeMode ,
2401- interactionMode : row . interactionMode ,
2402- branch : row . branch ,
2403- worktreePath : row . worktreePath ,
2404- ...( row . linkedPullRequest === null
2405- ? { }
2406- : { linkedPullRequest : row . linkedPullRequest } ) ,
2407- latestTurn : latestTurnByThread . get ( row . threadId ) ?? null ,
2408- createdAt : row . createdAt ,
2409- updatedAt : row . updatedAt ,
2410- archivedAt : row . archivedAt ,
2411- settledOverride : row . settledOverride ,
2412- settledAt : row . settledAt ,
2413- unsettledAt : row . unsettledAt ,
2414- snoozedUntil : row . snoozedUntil ,
2415- snoozedAt : row . snoozedAt ,
2416- pinnedAt : row . pinnedAt ,
2417- pinOrderKey : row . pinOrderKey ?? null ,
2418- titleRegeneration : mapTitleRegeneration ( row ) ,
2419- session : sessionByThread . get ( row . threadId ) ?? null ,
2420- latestUserMessageAt : row . latestUserMessageAt ,
2421- hasPendingApprovals : row . pendingApprovalCount > 0 ,
2422- hasPendingUserInput : row . pendingUserInputCount > 0 ,
2423- hasActionableProposedPlan : row . hasActionableProposedPlan > 0 ,
2424- backgroundLiveness : threadBackgroundLiveness . getThreadBackgroundLiveness (
2425- row . threadId ,
2426- ) ,
2427- planProgress : threadPlanProgress . getThreadPlanProgress ( row . threadId ) ,
2428- } ) ,
2429- ) ,
2394+ threads : threadRows . map ( ( row ) : OrchestrationThreadShell => ( {
2395+ id : row . threadId ,
2396+ projectId : row . projectId ,
2397+ title : row . title ,
2398+ modelSelection : row . modelSelection ,
2399+ runtimeMode : row . runtimeMode ,
2400+ interactionMode : row . interactionMode ,
2401+ branch : row . branch ,
2402+ worktreePath : row . worktreePath ,
2403+ ...( row . linkedPullRequest === null
2404+ ? { }
2405+ : { linkedPullRequest : row . linkedPullRequest } ) ,
2406+ latestTurn : latestTurnByThread . get ( row . threadId ) ?? null ,
2407+ createdAt : row . createdAt ,
2408+ updatedAt : row . updatedAt ,
2409+ archivedAt : row . archivedAt ,
2410+ settledOverride : row . settledOverride ,
2411+ settledAt : row . settledAt ,
2412+ unsettledAt : row . unsettledAt ,
2413+ snoozedUntil : row . snoozedUntil ,
2414+ snoozedAt : row . snoozedAt ,
2415+ pinnedAt : row . pinnedAt ,
2416+ pinOrderKey : row . pinOrderKey ?? null ,
2417+ titleRegeneration : mapTitleRegeneration ( row ) ,
2418+ session : sessionByThread . get ( row . threadId ) ?? null ,
2419+ latestUserMessageAt : row . latestUserMessageAt ,
2420+ hasPendingApprovals : row . pendingApprovalCount > 0 ,
2421+ hasPendingUserInput : row . pendingUserInputCount > 0 ,
2422+ hasActionableProposedPlan : row . hasActionableProposedPlan > 0 ,
2423+ backgroundLiveness : threadBackgroundLiveness . getThreadBackgroundLiveness (
2424+ row . threadId ,
2425+ ) ,
2426+ planProgress : threadPlanProgress . getThreadPlanProgress ( row . threadId ) ,
2427+ } ) ) ,
24302428 updatedAt : updatedAt ?? "1970-01-01T00:00:00.000Z" ,
24312429 } ;
24322430
@@ -2470,12 +2468,10 @@ pending_approval_requests AS (
24702468 "ProjectionSnapshotQuery.getCounts:decodeRow" ,
24712469 ) ,
24722470 ) ,
2473- Effect . map (
2474- ( row ) : ProjectionSnapshotCounts => ( {
2475- projectCount : row . projectCount ,
2476- threadCount : row . threadCount ,
2477- } ) ,
2478- ) ,
2471+ Effect . map ( ( row ) : ProjectionSnapshotCounts => ( {
2472+ projectCount : row . projectCount ,
2473+ threadCount : row . threadCount ,
2474+ } ) ) ,
24792475 ) ;
24802476
24812477 const getEventReplayStats : ProjectionSnapshotQueryShape [ "getEventReplayStats" ] = ( input ) =>
@@ -2486,12 +2482,10 @@ pending_approval_requests AS (
24862482 "ProjectionSnapshotQuery.getEventReplayStats:decodeRow" ,
24872483 ) ,
24882484 ) ,
2489- Effect . map (
2490- ( row ) : ProjectionEventReplayStats => ( {
2491- eventCount : row . eventCount ,
2492- payloadBytes : row . payloadBytes ,
2493- } ) ,
2494- ) ,
2485+ Effect . map ( ( row ) : ProjectionEventReplayStats => ( {
2486+ eventCount : row . eventCount ,
2487+ payloadBytes : row . payloadBytes ,
2488+ } ) ) ,
24952489 ) ;
24962490
24972491 const searchThreads : ProjectionSnapshotQueryShape [ "searchThreads" ] = Effect . fn (
@@ -2616,17 +2610,15 @@ pending_approval_requests AS (
26162610 projectId : threadRow . value . projectId ,
26172611 workspaceRoot : threadRow . value . workspaceRoot ,
26182612 worktreePath : threadRow . value . worktreePath ,
2619- checkpoints : checkpointRows . map (
2620- ( row ) : OrchestrationCheckpointSummary => ( {
2621- turnId : row . turnId ,
2622- checkpointTurnCount : row . checkpointTurnCount ,
2623- checkpointRef : row . checkpointRef ,
2624- status : row . status ,
2625- files : row . files ,
2626- assistantMessageId : row . assistantMessageId ,
2627- completedAt : row . completedAt ,
2628- } ) ,
2629- ) ,
2613+ checkpoints : checkpointRows . map ( ( row ) : OrchestrationCheckpointSummary => ( {
2614+ turnId : row . turnId ,
2615+ checkpointTurnCount : row . checkpointTurnCount ,
2616+ checkpointRef : row . checkpointRef ,
2617+ status : row . status ,
2618+ files : row . files ,
2619+ assistantMessageId : row . assistantMessageId ,
2620+ completedAt : row . completedAt ,
2621+ } ) ) ,
26302622 } ) ;
26312623 } ) ;
26322624
0 commit comments