openclaw
Version:
Multi-channel AI gateway with extensible messaging integrations
22 lines (21 loc) • 1.11 kB
JavaScript
import "./kysely-sync-YJo2lmGV.mjs";
import { n as clearNodeSqliteKyselyCacheForDatabase } from "./kysely-sync-cache-state-Bb1gOqQO.mjs";
import { a as setSqliteBusyTimeout } from "./sqlite-busy-timeout-BEDmnGR_.mjs";
import { n as openNodeSqliteDatabase } from "./node-sqlite-CU4puofF.mjs";
import { i as assertSupportedStateSchemaVersion } from "./openclaw-state-db-schema-version-uNbDFl6T.mjs";
import { n as readNativeHookRelayBridgeRow, t as readNativeHookRelayBridgeRecordRow } from "./native-hook-relay-bridge-record-DV_UI4kg.mjs";
//#region src/agents/harness/native-hook-relay-client-read.ts
/** One-shot locator admission never initializes or migrates shared state. */
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();
}
}
//#endregion
export { readNativeHookRelayClientRecord };