import { defineDebug } from "./pi-ext-debug.ts"; const schema = { events: [ "tools.enable.error", "tools.enabled", "tools.disabled", "session.start", "session.shutdown", "settings.invalid", ], spans: ["fresh"], fields: { kind: ["nu_not_found", "tools_excluded"], count: "number", source: ["flag", "env", "project", "user", "default"], timeoutMs: "number", status: ["aborted", "timeout", "success", "failed", "nonzero"], }, } 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;