← Public packages
@kentcdodds/sentry-triage
Sentry triage wakes Cole (Grok Bot) per issue: one active wake per repo (lease + queue), loop-safe Discord. Cole may spawn Cursor for isolated repo work.
src/triage-report.d.ts
41 lines · 1.1 KB · TypeScriptexport type TriageIssueRecord = {
issueId?: string
projectSlug?: string
shortId?: string | null
title?: string
link?: string
status?: string
summary?: string
prUrl?: string | null
agentId?: string
agentUrl?: string | null
discordMessageId?: string
seenAt?: string
spawnedAt?: string
completedAt?: string
hourBucket?: string
backfill?: boolean
[key: string]: unknown
}
export type TriageReportResult = {
count: number
records: TriageIssueRecord[]
counters: unknown
debugShape?: string
/** Snapshot of `repo_leases` rows when the table exists. */
repoLeases?: unknown
/** Per-project queue depths from `repo_queue` when the table exists. */
repoQueue?: unknown
}
/**
* Maintenance/insight: dump all triage issue records plus hourly counters,
* and a snapshot of per-repo leases / queue depths when those tables exist.
*
* @example
* import triageReport from 'kody:@kentcdodds/sentry-triage/triage-report'
* const report = await triageReport()
* // => { count: 3, records: [...], counters }
*/
export default function triageReport(): Promise<TriageReportResult>