openclaw/src/plugins/runtime/runtime-matrix.ts

15 lines
477 B
TypeScript

import {
setMatrixThreadBindingIdleTimeoutBySessionKey,
setMatrixThreadBindingMaxAgeBySessionKey,
} from "./runtime-matrix-boundary.js";
import type { PluginRuntimeChannel } from "./types-channel.js";
export function createRuntimeMatrix(): PluginRuntimeChannel["matrix"] {
return {
threadBindings: {
setIdleTimeoutBySessionKey: setMatrixThreadBindingIdleTimeoutBySessionKey,
setMaxAgeBySessionKey: setMatrixThreadBindingMaxAgeBySessionKey,
},
};
}