openclaw
Version:
Multi-channel AI gateway with extensible messaging integrations
20 lines (19 loc) • 1.4 kB
JavaScript
import { a as captureExternalSessionCommitGuard, o as composeSessionSourceAssertion } from "../session-source-authority-TlTpfRVE.mjs";
import { d as testing, l as registerSessionBindingAdapter, n as inspectSessionBindingByConversation, t as getSessionBindingService, u as registerSessionBindingAdapterV2 } from "../session-binding-service-Bn-zGfS9.mjs";
import { i as projectPluginSessionEntry } from "../session-store-runtime-internal-DEwSyDjM.mjs";
import { t as captureSessionEntryCurrentCheckAsyncInternal } from "../session-entry-current-check-F4LSgnxb.mjs";
//#region src/plugin-sdk/session-binding-runtime.ts
/** Read current policy in the worker at effects; pass source to worker-backed mutations. */
async function captureSessionEntryCurrentCheckAsync(e) {
const t = await captureSessionEntryCurrentCheckAsyncInternal(e);
return {
...t,
entry: t.entry ? projectPluginSessionEntry(t.entry) : void 0
};
}
/** Compose prepared sources; opaque source callbacks retain native transaction visibility. */
function composeSessionEntryCommitGuards(e, t) {
return composeSessionSourceAssertion(e.map(captureExternalSessionCommitGuard), t);
}
//#endregion
export { testing as __testing, testing, captureSessionEntryCurrentCheckAsync, composeSessionEntryCommitGuards, getSessionBindingService, inspectSessionBindingByConversation, registerSessionBindingAdapter, registerSessionBindingAdapterV2 };