UNPKG

openclaw

Version:

Multi-channel AI gateway with extensible messaging integrations

3 lines • 936 B
import"./kysely-sync-R08Pt8qn.mjs";import{n as clearNodeSqliteKyselyCacheForDatabase}from"./kysely-sync-cache-state-Bwkp9zZz.mjs";import{a as setSqliteBusyTimeout}from"./sqlite-busy-timeout-CKFMTRX2.mjs";import{n as openNodeSqliteDatabase}from"./node-sqlite-DXyF1fBG.mjs";import{i as assertSupportedStateSchemaVersion}from"./openclaw-state-db-schema-version-DreEd78i.mjs";import{n as readNativeHookRelayBridgeRow,t as readNativeHookRelayBridgeRecordRow}from"./native-hook-relay-bridge-record-D5N8swjl.mjs"; //!src/agents/harness/native-hook-relay-client-read.ts function readNativeHookRelayClientRecord(e,t){const n=openNodeSqliteDatabase(e.stateDbPath,{readOnly:true});try{setSqliteBusyTimeout(n,t);assertSupportedStateSchemaVersion(n,e.stateDbPath);return readNativeHookRelayBridgeRecordRow(readNativeHookRelayBridgeRow(n,e.relayId))}finally{clearNodeSqliteKyselyCacheForDatabase(n);n.close()}}export{readNativeHookRelayClientRecord};