UNPKG

openclaw

Version:

Multi-channel AI gateway with extensible messaging integrations

24 lines (23 loc) • 819 B
import { o as inspectOpenClawStateOwnershipInProcess } from "../openclaw-state-ownership-Brlut5Ya.mjs"; import { t as encodeOpenClawStateWorkerError } from "../openclaw-state-worker-error-PbHiriY7.mjs"; //#region src/state/openclaw-state-ownership.worker.ts function inspect(databasePath) { try { if (!databasePath) throw new Error("Shared-state ownership worker requires a database path"); const ownership = inspectOpenClawStateOwnershipInProcess(databasePath); return { ok: true, ownershipJson: JSON.stringify(ownership) }; } catch (error) { const workerError = encodeOpenClawStateWorkerError(error, { includeOrdinary: true }); if (!workerError) throw error; return { ok: false, workerError }; } } process.stdout.write(JSON.stringify(inspect(process.argv[2]))); //#endregion export {};