refactor: trim feishu lifecycle helper exports · openclaw/openclaw@20659d8
steipete
·
2026-05-02
·
via Recent Commits to openclaw:main
| Original file line number | Diff line number | Diff line change |
|---|
@@ -9,7 +9,7 @@ import {
|
9 | 9 | type SecretTargetRegistryEntry, |
10 | 10 | } from "openclaw/plugin-sdk/channel-secret-basic-runtime"; |
11 | 11 | |
12 | | -export const secretTargetRegistryEntries = [ |
| 12 | +export const secretTargetRegistryEntries: SecretTargetRegistryEntry[] = [ |
13 | 13 | { |
14 | 14 | id: "channels.feishu.accounts.*.appSecret", |
15 | 15 | targetType: "channels.feishu.accounts.*.appSecret", |
@@ -76,7 +76,7 @@ export const secretTargetRegistryEntries = [
|
76 | 76 | includeInConfigure: true, |
77 | 77 | includeInAudit: true, |
78 | 78 | }, |
79 | | -] satisfies SecretTargetRegistryEntry[]; |
| 79 | +]; |
80 | 80 | |
81 | 81 | export function collectRuntimeConfigAssignments(params: { |
82 | 82 | config: { channels?: Record<string, unknown> }; |
|
| Original file line number | Diff line number | Diff line change |
|---|
@@ -56,7 +56,7 @@ export function restoreFeishuLifecycleStateDir(originalStateDir: string | undefi
|
56 | 56 | process.env.OPENCLAW_STATE_DIR = originalStateDir; |
57 | 57 | } |
58 | 58 | |
59 | | -export const FEISHU_PREFETCHED_BOT_OPEN_ID_SOURCE = { |
| 59 | +const FEISHU_PREFETCHED_BOT_OPEN_ID_SOURCE = { |
60 | 60 | kind: "prefetched", |
61 | 61 | botOpenId: "ou_bot_1", |
62 | 62 | botName: "Bot", |
@@ -77,7 +77,7 @@ export function createFeishuLifecycleReplyDispatcher(): FeishuLifecycleReplyDisp
|
77 | 77 | }; |
78 | 78 | } |
79 | 79 | |
80 | | -export function createImmediateInboundDebounce() { |
| 80 | +function createImmediateInboundDebounce() { |
81 | 81 | return { |
82 | 82 | resolveInboundDebounceMs: vi.fn(() => 0), |
83 | 83 | createInboundDebouncer: <T>(params: InboundDebouncerParams<T>) => ({ |
@@ -93,7 +93,7 @@ export function createImmediateInboundDebounce() {
|
93 | 93 | }; |
94 | 94 | } |
95 | 95 | |
96 | | -export function installFeishuLifecycleRuntime(params: { |
| 96 | +function installFeishuLifecycleRuntime(params: { |
97 | 97 | resolveAgentRoute: PluginRuntime["channel"]["routing"]["resolveAgentRoute"]; |
98 | 98 | finalizeInboundContext: PluginRuntime["channel"]["reply"]["finalizeInboundContext"]; |
99 | 99 | dispatchReplyFromConfig: PluginRuntime["channel"]["reply"]["dispatchReplyFromConfig"]; |
@@ -309,7 +309,7 @@ async function expectFeishuLifecycleEventually(
|
309 | 309 | } |
310 | 310 | } |
311 | 311 | |
312 | | -export async function replayFeishuLifecycleEvent(params: { |
| 312 | +async function replayFeishuLifecycleEvent(params: { |
313 | 313 | handler: (data: unknown) => Promise<void>; |
314 | 314 | event: unknown; |
315 | 315 | waitForFirst: () => void | Promise<void>; |
|
此内容由惯性聚合(RSS阅读器)自动聚合整理,仅供阅读参考。 原文来自 — 版权归原作者所有。