← 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/flush-queue.d.ts
28 lines · 795 B · TypeScriptexport type FlushQueueInput = {
/** Triage project slug (see `triageProjects` in shared.ts). */
projectSlug: string
}
export type FlushQueueResult = {
ok: boolean
projectSlug: string
flushed?: number
agentId?: string
issueIds?: string[]
skipped?: string
error?: string
[key: string]: unknown
}
/**
* Maintenance: force-clear per-repo wake slots and fill free slots from the queue for
* one triage project (one Cole wake per claimed slot), regardless of lease staleness.
*
* @example
* import flushQueue from 'kody:@kentcdodds/sentry-triage/flush-queue'
* const result = await flushQueue({ projectSlug: 'kody' })
* // => { ok: true, projectSlug: 'kody', flushed: 3, agentId: '...' }
*/
export default function flushQueue(
input: FlushQueueInput,
): Promise<FlushQueueResult>