INNER CODE UNIT · JavaScript

BLAME_TIME_BUDGET_MS

karanb192/claude-code-hooks · plugins/bounty-board/bounty-board.js:69

const BLAME_TIME_BUDGET_MS = 600; // extra budget spent on git-blame ageing
const TOTAL_TIME_BUDGET_MS = 1800; // hard cap for scan + blame combined
const BLAME_CALL_TIMEOUT_MS = 250; // per git-blame subprocess timeout
const MAX_BOUNTIES_PER_FILE = 50; // pathological files can't flood the board
const MAX_TOTAL_BOUNTIES = 1000; // hard cap on ledger size
const RECONCILE_TIME_BUDGET_MS = 700; // PostToolUse re-read budget (Bash rescans)
const MAX_DELETED_FILE_GREPS = 8; // repo-wide verifications per PostToolUse event
const TOP_QUESTS = 3; // side quests injected via additionalContext
const BOARD_RENDER_LIMIT = 12; // rows shown in the rendered board card

// Vendored / generated paths are debt we don't own: skip even if git-tracked.
const SKIP_PATH_RE =
  /(^|\/)(node_modules|vendor|vendors|third_party|dist|build|out|coverage|target|\.next|\.nuxt)(\/|$)|\.min\.(js|css)$/;

const SCAN_EXTS = new Set([
  '.js', '.jsx', '.ts', '.tsx', '.mjs', '.cjs',
  '.py', '.rb', '.go', '.rs', '.java', '.kt', '.c', '.h',
  '.cc', '.cpp', '.hpp', '.cs', '.php', '.swift', '.scala',

View source record →

📰 Research Paper
Loading…
⏳ Fetching content…