← 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/handle-sentry-webhook.d.ts
27 lines · 910 B · TypeScriptimport type {
HandleSentryWebhookInput,
HandleSentryWebhookResult,
} from './types.ts'
export type {
HandleSentryWebhookInput,
HandleSentryWebhookResult,
SentryWebhookPayload,
} from './types.ts'
/**
* Inbound Sentry webhook entrypoint (issue + Seer, HMAC-verified by the
* platform). Fast skips and `kodyDryRun` stay synchronous; durable work
* stages the full body in packageStorage and dispatches
* `./process-sentry-webhook` via `workflows.create` with a bounded
* `{ payloadKey, issueId, resource, action }` params object.
*
* @example
* import handleSentryWebhook from 'kody:@kentcdodds/sentry-triage/handle-sentry-webhook'
* const result = await handleSentryWebhook({
* request: { json: { action: 'created', data: { issue: { id: '1', title: '...' } } } },
* })
*/
export default function handleSentryWebhook(
input?: HandleSentryWebhookInput,
): Promise<HandleSentryWebhookResult>