Skip to content

TriageProvider

Defined in: providers/types.ts:166

Triage Provider Interface

All issue tracking backends must implement this interface. This allows commands to work with any provider transparently.

readonly displayName: string

Defined in: providers/types.ts:171

Provider display name


readonly name: string

Defined in: providers/types.ts:168

Provider name (e.g., ‘github’, ‘beads’, ‘jira’, ‘linear’)

addLabels(id, labels): Promise<void>

Defined in: providers/types.ts:241

Add labels to an issue

string

string[]

Promise<void>


closeIssue(id, reason?): Promise<TriageIssue>

Defined in: providers/types.ts:198

Close an issue

string

string

Promise<TriageIssue>


createIssue(options): Promise<TriageIssue>

Defined in: providers/types.ts:183

Create a new issue

CreateIssueOptions

Promise<TriageIssue>


optional deleteIssue(id): Promise<void>

Defined in: providers/types.ts:208

Delete an issue (if supported)

string

Promise<void>


optional getAvailableLabels(): Promise<string[]>

Defined in: providers/types.ts:251

Get all available labels

Promise<string[]>


getBlockedIssues(): Promise<TriageIssue[]>

Defined in: providers/types.ts:227

Get blocked issues

Promise<TriageIssue[]>


getIssue(id): Promise<TriageIssue | null>

Defined in: providers/types.ts:188

Get an issue by ID

string

Promise<TriageIssue | null>


getReadyWork(options?): Promise<ReadyWork[]>

Defined in: providers/types.ts:222

Get issues ready to work on (no blockers)

number

IssuePriority

Promise<ReadyWork[]>


getStats(): Promise<ProviderStats>

Defined in: providers/types.ts:260

Get provider statistics

Promise<ProviderStats>


optional init(directory?): Promise<void>

Defined in: providers/types.ts:270

Initialize the provider in a directory (for local providers like Beads)

string

Promise<void>


isReady(): Promise<boolean>

Defined in: providers/types.ts:174

Whether the provider is initialized and ready

Promise<boolean>


listIssues(options?): Promise<TriageIssue[]>

Defined in: providers/types.ts:217

List issues with optional filters

ListIssuesOptions

Promise<TriageIssue[]>


removeLabels(id, labels): Promise<void>

Defined in: providers/types.ts:246

Remove labels from an issue

string

string[]

Promise<void>


reopenIssue(id, reason?): Promise<TriageIssue>

Defined in: providers/types.ts:203

Reopen an issue

string

string

Promise<TriageIssue>


searchIssues(query, options?): Promise<TriageIssue[]>

Defined in: providers/types.ts:232

Search issues by text

string

ListIssuesOptions

Promise<TriageIssue[]>


optional sync(): Promise<void>

Defined in: providers/types.ts:265

Sync with remote (for providers that support it)

Promise<void>


updateIssue(id, options): Promise<TriageIssue>

Defined in: providers/types.ts:193

Update an existing issue

string

UpdateIssueOptions

Promise<TriageIssue>