auto: sync OpenClaw config 2026-09-09 16:13
This commit is contained in:
@@ -0,0 +1,23 @@
|
||||
"use strict";
|
||||
/**
|
||||
* Copyright (c) 2026 ByteDance Ltd. and/or its affiliates
|
||||
* SPDX-License-Identifier: MIT
|
||||
*
|
||||
* Shared registry for the inbound message handler.
|
||||
*
|
||||
* Synthetic message helpers depend on this registry instead of importing
|
||||
* `handler.ts` directly, which keeps the static import graph acyclic.
|
||||
*/
|
||||
Object.defineProperty(exports, "__esModule", { value: true });
|
||||
exports.injectInboundHandler = injectInboundHandler;
|
||||
exports.getInboundHandler = getInboundHandler;
|
||||
let inboundHandler = null;
|
||||
function injectInboundHandler(handler) {
|
||||
inboundHandler = handler;
|
||||
}
|
||||
function getInboundHandler() {
|
||||
if (!inboundHandler) {
|
||||
throw new Error('Feishu inbound handler has not been initialised.');
|
||||
}
|
||||
return inboundHandler;
|
||||
}
|
||||
Reference in New Issue
Block a user