openclaw
Version:
Multi-channel AI gateway with extensible messaging integrations
15 lines (14 loc) • 517 B
JavaScript
import { channel } from "node:diagnostics_channel";
//#region src/gateway/control-ui-session-pr-diagnostics.ts
const diagnostics = channel("openclaw.gateway.session-pr");
/** Opt-in phase facts only: no credentials, repository paths, or PR content. */
function recordSessionPrDiagnostic(e, t, n) {
if (diagnostics.hasSubscribers) diagnostics.publish({
phase: e,
sessionKey: t?.params.sessionKey,
receiptsOnly: t?.taskReceiptsOnly === true,
...n
});
}
//#endregion
export { recordSessionPrDiagnostic as t };