Code
Hub
Workspaces
Following
Trending
Connect
MCP
copy
Create free account
hub
/
github.com/larksuite/openclaw-lark
/ functions
Functions
1,118 in github.com/larksuite/openclaw-lark
⨍
Functions
1,118
◇
Types & classes
241
↓ 2 callers
Function
buildMentionedMessage
(targets: MentionInfo[], message: string)
src/messaging/inbound/mention.ts:96
↓ 2 callers
Function
buildProcessingCard
(questions: QuestionItem[], answers: Record<string, string>)
src/tools/ask-user-question.ts:799
↓ 2 callers
Function
buildStreamingPreAnswerCard
(params: { steps?: ToolUseDisplayStep[]; elapsedMs?: number; showToolUse?: boolean; })
src/card/builder.ts:666
↓ 2 callers
Function
buildStreamingToolUsePendingPanel
()
src/card/builder.ts:776
↓ 2 callers
Function
buildToolUsePanel
(params: { toolUseSteps?: ToolUseDisplayStep[]; toolUseElapsedMs?: number; titleSuffix?: { zh: string; e
src/card/builder.ts:808
↓ 2 callers
Function
buildToolUseStepElements
(step: ToolUseDisplayStep)
src/card/builder.ts:858
↓ 2 callers
Function
callEndpoint
()
src/core/uat-client.ts:85
↓ 2 callers
Method
cancelPendingFlush
Cancel any pending deferred flush timer.
src/card/flush-controller.ts:34
↓ 2 callers
Method
cardMessageReady
()
src/card/flush-controller.ts:127
↓ 2 callers
Function
checkMultiAccountIsolation
(cfg: ClawdbotConfig)
src/core/security-check.ts:38
↓ 2 callers
Function
checkToolRegistration
(api: OpenClawPluginApi, toolName: string)
src/tools/helpers.ts:249
↓ 2 callers
Function
cleanupLine
(line: string)
src/card/tool-use-display.ts:544
↓ 2 callers
Function
clearChatInfoCache
(accountId?: string)
src/core/chat-info-cache.ts:117
↓ 2 callers
Method
clearInflight
(key: string)
src/messaging/inbound/user-name-cache-store.ts:184
↓ 2 callers
Method
closeStreamingAndUpdate
* Close streaming mode then update card content (shared by onError and abortCard).
src/card/streaming-card-controller.ts:1121
↓ 2 callers
Function
configuredFeishuConfig
()
tests/message-actions-schema.test.ts:6
↓ 2 callers
Function
consumePendingQuestion
(questionId: string)
src/tools/ask-user-question.ts:139
↓ 2 callers
Method
convertActions
(prop: Obj)
src/messaging/converters/interactive/card-converter.ts:609
↓ 2 callers
Function
convertElementsToSDKFormat
(elements: ReplyElement[])
src/tools/oapi/drive/doc-comments.ts:113
↓ 2 callers
Method
convertImage
(prop: Obj, _id: string)
src/messaging/converters/interactive/card-converter.ts:941
↓ 2 callers
Method
convertPlainText
(prop: Obj)
src/messaging/converters/interactive/card-converter.ts:211
↓ 2 callers
Function
convertTimeRange
( timeRange: { start?: string; end?: string } | undefined, unit: 's' | 'ms' = 's', )
src/tools/oapi/helpers.ts:325
↓ 2 callers
Function
createBatchResolveNames
( account: LarkAccount, log: (...args: unknown[]) => void, )
src/messaging/inbound/user-name-cache.ts:104
↓ 2 callers
Function
createClientGetter
(config: ClawdbotConfig, accountIndex = 0)
src/tools/helpers.ts:100
↓ 2 callers
Function
createDispatchContext
(content: string)
tests/dispatch-commands-system-command.test.ts:46
↓ 2 callers
Function
createLarkLogger
(subsystem: string)
src/core/lark-logger.ts:139
↓ 2 callers
Function
currentBotPeerContext
()
src/messaging/outbound/bot-peer-context.ts:54
↓ 2 callers
Function
decryptData
AES-256-GCM decrypt. Returns plaintext or `null` on failure.
src/core/token-store.ts:178
↓ 2 callers
Function
dispatchSyntheticTextMessage
(params: { cfg: ClawdbotConfig; accountId: string; chatId: string; senderOpenId: string; text: strin
src/messaging/inbound/synthetic-message.ts:16
↓ 2 callers
Function
drainShutdownHooks
(opts?: { deadlineMs?: number; log?: (...args: unknown[]) => void; })
src/core/shutdown-hooks.ts:39
↓ 2 callers
Function
encryptData
AES-256-GCM encrypt. Returns [12-byte IV][16-byte tag][ciphertext].
src/core/token-store.ts:170
↓ 2 callers
Function
ensureLinuxCredDir
Ensure the credentials directory exists with mode 0700.
src/core/token-store.ts:140
↓ 2 callers
Function
ensureWin32CredDir
()
src/core/token-store.ts:245
↓ 2 callers
Function
escapeAttr
(s: string)
src/messaging/converters/interactive/card-utils.ts:8
↓ 2 callers
Function
evict
(cache: Map<string, CacheEntry>)
src/tools/oapi/im/user-name-uat.ts:44
↓ 2 callers
Method
evictChats
(map: Map<string, ChatMembersEntry>)
src/messaging/inbound/user-name-cache-store.ts:242
↓ 2 callers
Function
executeFeishuAuth
* Execute the auth command logic, including side-effects (triggerOnboarding). * Returns a discriminated result that can be formatted into any locale.
src/commands/auth.ts:115
↓ 2 callers
Function
extractApiDetail
(err: unknown)
src/card/streaming-card-controller.ts:1185
↓ 2 callers
Function
extractMcpUrlFromConfig
(cfg: unknown)
src/tools/mcp/shared.ts:60
↓ 2 callers
Function
extractPermissionGrantUrl
(msg: string)
src/core/permission-url.ts:51
↓ 2 callers
Method
extractTextFromProperty
(prop: Obj)
src/messaging/converters/interactive/card-converter.ts:183
↓ 2 callers
Function
fetchMediaBuffer
* Fetch media bytes from a URL or local file path. * * Supports: * - `http://` and `https://` URLs (fetched via the global `fetch` API) * - `file:
src/messaging/outbound/media.ts:1011
↓ 2 callers
Method
filterMissing
(openIds: string[])
src/messaging/inbound/user-name-cache-store.ts:120
↓ 2 callers
Method
finalizeCard
(source: string, reason: TerminalReason)
src/card/streaming-card-controller.ts:1114
↓ 2 callers
Function
findBox
* Find a box (atom) by its 4-character type within a range of the buffer. * Returns the data start/end offsets (after the 8-byte box header), or * `
src/messaging/outbound/media.ts:740
↓ 2 callers
Function
fingerprintTraceValue
(value: unknown)
src/card/tool-use-trace-store.ts:308
↓ 2 callers
Function
flushStream
()
src/commands/diagnose.ts:661
↓ 2 callers
Function
formatAndReturn
格式化 message.list 结果并返回
src/tools/oapi/im/message-read.ts:74
↓ 2 callers
Function
formatCheck
(c: DiagCheckResult)
src/commands/diagnose.ts:361
↓ 2 callers
Function
formatCheckCli
(c: DiagCheckResult)
src/commands/diagnose.ts:458
↓ 2 callers
Function
formatDuration
(ms: number)
src/messaging/converters/utils.ts:29
↓ 2 callers
Function
formatMessageList
( items: ApiMessageItem[], account: LarkAccount, log: (...args: unknown[]) => void, client: ToolClient
src/tools/oapi/im/format-messages.ts:170
↓ 2 callers
Function
formatScopeDescription
( locale: Locale, params: { scope?: string; isBatchAuth?: boolean; totalAppScopes?: number;
src/tools/oauth-cards.ts:224
↓ 2 callers
Function
formatToolUseCodeBlock
(content: string, language: 'json' | 'text')
src/card/builder.ts:969
↓ 2 callers
Function
getAccountMap
Return the per-account override map, if present.
src/core/accounts.ts:33
↓ 2 callers
Function
getAllToolScopes
* 获取所有工具动作需要的唯一 scope 列表(从 diagnose.ts 复制)
src/commands/doctor.ts:278
↓ 2 callers
Function
getAppInfo
(sdk: Lark.Client, appId: string)
src/core/app-scope-checker.ts:171
↓ 2 callers
Method
getByActiveCardKey
通过活跃卡片键查询(同消息卡片复用)
src/tools/auto-auth.ts:379
↓ 2 callers
Function
getChatInfo
(params: { cfg: ClawdbotConfig; chatId: string; accountId?: string; })
src/core/chat-info-cache.ts:155
↓ 2 callers
Function
getCheckerFieldName
(questionIndex: number, optionIndex: number)
src/tools/ask-user-question.ts:192
↓ 2 callers
Function
getDefaultLarkAccountId
(cfg: ClawdbotConfig)
src/core/accounts.ts:111
↓ 2 callers
Function
getDmScopeFixCommand
(cfg: ClawdbotConfig)
src/core/security-check.ts:104
↓ 2 callers
Function
getFirstAccount
(config: ClawdbotConfig)
src/tools/helpers.ts:148
↓ 2 callers
Function
getInputFieldName
(questionIndex: number)
src/tools/ask-user-question.ts:184
↓ 2 callers
Function
getLarkConfig
Extract the `channels.feishu` section from the top-level config.
src/core/accounts.ts:28
↓ 2 callers
Function
getLarkCredentials
(feishuCfg?: FeishuConfig)
src/core/accounts.ts:230
↓ 2 callers
Function
getMasterKey
* Load or create the 32-byte master key. * * On first run, generates a random key and writes it to disk (mode 0600). * On subsequent runs, reads th
src/core/token-store.ts:150
↓ 2 callers
Function
getMessageFeishu
(params: { cfg: ClawdbotConfig; messageId: string; accountId?: string; /** When true, merge_forward co
src/messaging/shared/message-lookup.ts:66
↓ 2 callers
Function
getOrCreateCache
(accountId: string)
src/tools/oapi/im/user-name-uat.ts:35
↓ 2 callers
Function
getPermissionPriority
* Permission priority for sorting. * Lower number = higher priority. * - read: 1 (highest) * - write: 2 * - other / both read+write: 3 (lowest)
src/core/permission-url.ts:22
↓ 2 callers
Function
getVisiblePayloadText
(payload: ReplyPayload)
src/card/reply-dispatcher.ts:437
↓ 2 callers
Function
getWin32MasterKey
()
src/core/token-store.ts:249
↓ 2 callers
Function
handleBotMembershipEvent
( ctx: MonitorContext, data: unknown, action: 'added' | 'removed', )
src/channel/event-handlers.ts:252
↓ 2 callers
Function
hasActiveAppAuthForMessage
* 检查指定消息上下文是否有未完成的应用权限授权流程。 * 检查两个来源: * 1. authBatches 中的 app auth entry(collecting/executing 阶段) * 2. appAuthFlows 中的活跃流(卡片已发送,等待用户点击"已完成")
src/tools/auto-auth.ts:412
↓ 2 callers
Function
invalidateAppScopeCache
(appId: string)
src/core/app-scope-checker.ts:54
↓ 2 callers
Function
isCardTableLimitError
(err: unknown)
src/card/card-error.ts:126
↓ 2 callers
Function
isLocalMediaPath
(value: string)
src/messaging/outbound/media-url-utils.ts:39
↓ 2 callers
Function
isPrivateIP
* Check whether an IP address belongs to a private or reserved range. * * Blocks: 127.0.0.0/8, 10.0.0.0/8, 172.16.0.0/12, 192.168.0.0/16, * 169.254
src/messaging/outbound/media.ts:935
↓ 2 callers
Function
isTerminalMessageApiCode
(code: unknown)
src/core/message-unavailable.ts:38
↓ 2 callers
Function
isWindowsAbsolutePath
(value: string)
src/messaging/outbound/media-url-utils.ts:35
↓ 2 callers
Function
listReactionsFeishu
(params: { cfg: OpenClawConfig; messageId: string; emojiType?: string; accountId?: string; })
src/messaging/outbound/reactions.ts:387
↓ 2 callers
Function
loopKey
(chatId: string, threadId?: string)
src/messaging/inbound/bot-loop-guard.ts:37
↓ 2 callers
Function
makeBotEvent
(overrides: { messageId?: string } = {})
tests/handler-bot-sender-history.test.ts:35
↓ 2 callers
Function
makeCfg
* Minimal cfg that provides a valid account with allowBots=false (or 'mentions'). * The top-level channels.feishu and the per-account entry must both
tests/handler-bot-sender-history.test.ts:58
↓ 2 callers
Function
makeCtx
(senderIsBot: boolean)
tests/bot-loop-key.test.ts:70
↓ 2 callers
Function
makeCtx
(botOpenId: string)
tests/event-handlers-self-echo.test.ts:27
↓ 2 callers
Function
makeDedupKey
计算去重 key(chatId + messageId + 有序 scopes)。
src/tools/auto-auth.ts:270
↓ 2 callers
Function
makeEvent
(senderOpenId: string)
tests/event-handlers-self-echo.test.ts:46
↓ 2 callers
Function
makeReplacement
( start: number, end: number, r: ResolvedCandidate, )
src/messaging/outbound/normalize-mentions.ts:153
↓ 2 callers
Function
markMessageUnavailable
(params: { messageId: string; apiCode: TerminalMessageApiCode; operation?: string; })
src/core/message-unavailable.ts:42
↓ 2 callers
Method
markToolUseActivity
()
src/card/streaming-card-controller.ts:427
↓ 2 callers
Function
maskToken
(token: string)
src/core/token-store.ts:71
↓ 2 callers
Function
matchesAnyPattern
* Check whether a string matches any of the given patterns. * Supports trailing `*` as a simple wildcard.
src/core/agent-config.ts:165
↓ 2 callers
Function
mergeFeishuAccountConfig
Generic Feishu account config merge.
src/channel/config-adapter.ts:20
↓ 2 callers
Function
monitorSingleAccount
* Start monitoring a single Feishu account. * * Creates a LarkClient, probes bot identity, registers event handlers, * and starts a WebSocket conne
src/channel/monitor.ts:45
↓ 2 callers
Function
nameResolver
(openId: string)
src/tools/oapi/im/format-messages.ts:177
↓ 2 callers
Function
needsDmScopeFix
(cfg: ClawdbotConfig)
src/core/security-check.ts:97
↓ 2 callers
Function
normalizeCalendarTimeValue
(value: unknown)
src/tools/oapi/calendar/event.ts:449
↓ 2 callers
Function
normalizeFeishuOutboundText
* Runs the outbound text through mention normalization. Returns the * input unchanged on any failure so a parser bug never blocks send. * Sentinels
src/messaging/outbound/send.ts:31
↓ 2 callers
Method
onReasoningStream
(payload: ReplyPayload)
src/card/streaming-card-controller.ts:494
← previous
next →
301–400 of 1,118, ranked by callers