/** * `astramem-local queue [--json] [--limit N]` * `astramem-local queue purge --poison [--json] [--dump-dir PATH]` * * Shows job-table state counts (pending/running/completed/failed/poison/paused), * a pending-jobs breakdown by FEAT-482 priority tier (P1 claimed first — * `JobRepo.pendingByPriority()`), plus the most recent failures (state IN * ('failed','poison')) with their last_error and priority tier, so an * operator can see what's stuck — and how urgent it was — without opening * the DB. * * The `purge --poison` subcommand (FEAT-405) removes poison-marked jobs on * demand, ahead of the 30-day auto-purge — see ./queue-purge.ts. */ import type { JobState } from '../contracts/index.js'; interface StateCount { state: JobState; n: number; } interface RecentFailure { id: string; kind: string; attempts: number; last_error: string | null; updated_at: number; priority: number; } interface PriorityCount { priority: number; n: number; } export interface QueueSummary { counts: StateCount[]; recentFailures: RecentFailure[]; pendingByPriority: PriorityCount[]; } export declare function queueCommand(args: string[]): Promise; export {};