import { defineDebug } from "./pi-ext-debug.ts"; const schema = { events: ["session.start", "session.shutdown"], spans: ["host.section", "tools.apply"], fields: { mode: ["tui", "rpc", "print", "json"], type: ["host"], outcome: ["no-match", "no-change", "updated"], addedCount: "number", removedCount: "number", unknownCount: "number", cached: "boolean", }, } 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;