openclaw
Version:
Multi-channel AI gateway with extensible messaging integrations
24 lines (23 loc) • 1.06 kB
JavaScript
import "./redact-Mj7pppxC.mjs";
import { r as getBoundLegacyPluginSdkResourceHost } from "./legacy-sdk-resource-host-BiedXayN.mjs";
import "./logger-1QDNfT7Y.mjs";
import "./subsystem-BHJiy01V.mjs";
import { t as GatewayScheduler } from "./gateway-scheduler-BApPBa3S.mjs";
import "./logger-CIwfuhOU.mjs";
import { d as startGatewayDiagnosticHeartbeat, f as stopGatewayDiagnosticHeartbeat } from "./diagnostic-C-GjPJGO.mjs";
//#region src/plugin-sdk/logging-core.ts
let standaloneDiagnosticScheduler;
/** Standalone SDK callers own this schedule; Gateway plugins use their bound host. */
function startDiagnosticHeartbeat(e, t) {
const n = getBoundLegacyPluginSdkResourceHost();
const r = n ? n.scheduler : standaloneDiagnosticScheduler ??= new GatewayScheduler();
startGatewayDiagnosticHeartbeat(r, e, t);
}
function stopDiagnosticHeartbeat() {
stopGatewayDiagnosticHeartbeat();
const e = standaloneDiagnosticScheduler;
standaloneDiagnosticScheduler = void 0;
e?.stop();
}
//#endregion
export { stopDiagnosticHeartbeat as n, startDiagnosticHeartbeat as t };