openclaw
Version:
Multi-channel AI gateway with extensible messaging integrations
15 lines (14 loc) • 480 B
JavaScript
//#region src/auto-reply/command-sender-authority.ts
const COMMAND_SENDER_AUTHORITY = Symbol("openclaw.commandSenderAuthority");
/** Keep the live authority owner through internal context and client copies. */
function withCommandSenderAuthority(e, t) {
return {
...e,
[COMMAND_SENDER_AUTHORITY]: t
};
}
function getCommandSenderAuthority(e) {
return e?.[COMMAND_SENDER_AUTHORITY];
}
//#endregion
export { withCommandSenderAuthority as n, getCommandSenderAuthority as t };