refactor: trim feishu lifecycle helper exports

This commit is contained in:
Peter Steinberger
2026-05-01 19:06:43 +01:00
parent c6f0cf9b14
commit 20659d817b
2 changed files with 6 additions and 6 deletions

View File

@@ -9,7 +9,7 @@ import {
type SecretTargetRegistryEntry,
} from "openclaw/plugin-sdk/channel-secret-basic-runtime";
export const secretTargetRegistryEntries = [
export const secretTargetRegistryEntries: SecretTargetRegistryEntry[] = [
{
id: "channels.feishu.accounts.*.appSecret",
targetType: "channels.feishu.accounts.*.appSecret",
@@ -76,7 +76,7 @@ export const secretTargetRegistryEntries = [
includeInConfigure: true,
includeInAudit: true,
},
] satisfies SecretTargetRegistryEntry[];
];
export function collectRuntimeConfigAssignments(params: {
config: { channels?: Record<string, unknown> };

View File

@@ -56,7 +56,7 @@ export function restoreFeishuLifecycleStateDir(originalStateDir: string | undefi
process.env.OPENCLAW_STATE_DIR = originalStateDir;
}
export const FEISHU_PREFETCHED_BOT_OPEN_ID_SOURCE = {
const FEISHU_PREFETCHED_BOT_OPEN_ID_SOURCE = {
kind: "prefetched",
botOpenId: "ou_bot_1",
botName: "Bot",
@@ -77,7 +77,7 @@ export function createFeishuLifecycleReplyDispatcher(): FeishuLifecycleReplyDisp
};
}
export function createImmediateInboundDebounce() {
function createImmediateInboundDebounce() {
return {
resolveInboundDebounceMs: vi.fn(() => 0),
createInboundDebouncer: <T>(params: InboundDebouncerParams<T>) => ({
@@ -93,7 +93,7 @@ export function createImmediateInboundDebounce() {
};
}
export function installFeishuLifecycleRuntime(params: {
function installFeishuLifecycleRuntime(params: {
resolveAgentRoute: PluginRuntime["channel"]["routing"]["resolveAgentRoute"];
finalizeInboundContext: PluginRuntime["channel"]["reply"]["finalizeInboundContext"];
dispatchReplyFromConfig: PluginRuntime["channel"]["reply"]["dispatchReplyFromConfig"];
@@ -309,7 +309,7 @@ async function expectFeishuLifecycleEventually(
}
}
export async function replayFeishuLifecycleEvent(params: {
async function replayFeishuLifecycleEvent(params: {
handler: (data: unknown) => Promise<void>;
event: unknown;
waitForFirst: () => void | Promise<void>;