15 lines
475 B
TypeScript
15 lines
475 B
TypeScript
import {
|
|
setMatrixThreadBindingIdleTimeoutBySessionKey,
|
|
setMatrixThreadBindingMaxAgeBySessionKey,
|
|
} from "openclaw/plugin-sdk/matrix";
|
|
import type { PluginRuntimeChannel } from "./types-channel.js";
|
|
|
|
export function createRuntimeMatrix(): PluginRuntimeChannel["matrix"] {
|
|
return {
|
|
threadBindings: {
|
|
setIdleTimeoutBySessionKey: setMatrixThreadBindingIdleTimeoutBySessionKey,
|
|
setMaxAgeBySessionKey: setMatrixThreadBindingMaxAgeBySessionKey,
|
|
},
|
|
};
|
|
}
|