@@ -43,7 +43,8 @@ export interface BeadsIssue {
4343 metadata ?: Record < string , unknown > ;
4444 labels ?: string [ ] ;
4545 dependencies ?: BeadsDependency [ ] ;
46- quality_score ?: number ;
46+ lease_expires_at ?: string ;
47+ heartbeat_at ?: string ;
4748 // Computed counts from bd list --json
4849 dependency_count ?: number ;
4950 dependent_count ?: number ;
@@ -114,7 +115,7 @@ function runBd(projectDir: string, args: string[], timeoutMs = 10000): string |
114115 * Returns parsed issues with labels and dependencies populated.
115116 */
116117export function queryBeadsList ( projectDir : string ) : BeadsIssue [ ] {
117- const output = runBd ( projectDir , [ "list" , "--json" ] ) ;
118+ const output = runBd ( projectDir , [ "list" , "--json" , "--limit" , "0" ] ) ;
118119 if ( ! output ) return [ ] ;
119120
120121 try {
@@ -158,7 +159,8 @@ function normalizeBeadsIssue(raw: any): BeadsIssue {
158159 metadata : raw . metadata ,
159160 labels : raw . labels || [ ] ,
160161 dependencies : deps ,
161- quality_score : raw . quality_score ,
162+ lease_expires_at : raw . lease_expires_at ,
163+ heartbeat_at : raw . heartbeat_at ,
162164 dependency_count : raw . dependency_count ,
163165 dependent_count : raw . dependent_count ,
164166 comment_count : raw . comment_count ,
@@ -213,7 +215,7 @@ export function formatBeadsIssueAsMarkdown(issue: BeadsIssue): string {
213215 }
214216 if ( issue . blocks && issue . blocks . length > 0 ) lines . push ( `**Blocks**: ${ issue . blocks . join ( ", " ) } ` ) ;
215217 if ( issue . external_ref ) lines . push ( `**External Ref**: ${ issue . external_ref } ` ) ;
216- if ( issue . quality_score != null ) lines . push ( `**Quality Score **: ${ issue . quality_score } ` ) ;
218+ if ( issue . lease_expires_at ) lines . push ( `**Claim Lease **: expires ${ issue . lease_expires_at } ` ) ;
217219
218220 if ( issue . description ) {
219221 lines . push ( "" , "## Description" , "" , issue . description ) ;
0 commit comments