openclaw
Version:
Multi-channel AI gateway with extensible messaging integrations
3 lines • 714 B
JavaScript
import{i as routeLogsToStderr}from"../console-BHJbJ-IX.mjs";import{t as encodeOpenClawStateWorkerError}from"../openclaw-state-worker-error-Ca5E4dEV.mjs";import{o as inspectOpenClawStateOwnershipInProcess}from"../openclaw-state-ownership-Dg79s5qL.mjs";
//!src/state/openclaw-state-ownership.worker.ts
function inspect(e){try{if(!e)throw new Error(`Shared-state ownership worker requires a database path`);const t=inspectOpenClawStateOwnershipInProcess(e);return{ok:true,ownershipJson:JSON.stringify(t)}}catch(e){const t=encodeOpenClawStateWorkerError(e,{includeOrdinary:true});if(!t)throw e;return{ok:false,workerError:t}}}routeLogsToStderr();process.stdout.write(JSON.stringify(inspect(process.argv[2])));export{};