import { defineDebug } from "./pi-ext-debug.ts"; const schema = { events: ["session.start", "session.shutdown", "rtk.rewrite"], spans: ["rtk.status"], fields: { outcome: [ "available", "missing", "unsupported", "rewritten", "fallback", "unchanged", "cached_rewrite", "skipped", "no_vcs", "stale", "no_ui", "error", "success", "cached", "unavailable", "no_provider", ], reason: ["no_rewrite", "killed", "truncated", "unexpected_exit", "thrown"], }, } as const; const debug: ReturnType> = defineDebug(schema); export const dbg: typeof debug.dbg = debug.dbg; export const span: typeof debug.span = debug.span; export const closeDebug: typeof debug.closeDebug = debug.closeDebug;