UNPKG

openclaw

Version:

Multi-channel AI gateway with extensible messaging integrations

13 lines (12 loc) • 405 B
//#region src/gateway/worker-environments/node-worker-response.ts /** Decode the private node response envelope before its operation validates the payload. */ function parseNodeWorkerResponse(e, t) { if (!e) throw new Error(t + " omitted its result"); try { return JSON.parse(e); } catch { throw new Error(t + " returned malformed JSON"); } } //#endregion export { parseNodeWorkerResponse as t };