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
↓ 7 callers
Function
extractHttpStatus
(err: unknown)
tests/media-retry.test.ts:44
↓ 7 callers
Function
getRequiredScopes
(toolAction: ToolActionKey)
src/core/scope-manager.ts:63
↓ 7 callers
Function
i18nContent
构造 i18n_content 对象(双语)
src/tools/oauth-cards.ts:89
↓ 7 callers
Function
makeEvent
(content: string)
tests/empty-message-guard.test.ts:108
↓ 7 callers
Function
parseMessageEvent
( event: FeishuMessageEvent, botOpenId?: string, expandCtx?: { /** account 级别的 ClawdbotConfig(channe
src/messaging/inbound/parse.ts:39
↓ 7 callers
Function
prefetchChatBots
( account: LarkAccount, chatId: string, log: (...args: unknown[]) => void, )
src/messaging/inbound/user-name-cache.ts:314
↓ 7 callers
Function
resolveBotPeerForMention
(params: { isGroup: boolean; senderIsBot?: boolean; senderId?: string; senderName?: string; mentions
src/messaging/inbound/bot-content.ts:53
↓ 7 callers
Function
resolveRespondToMentionAll
(params: { groupConfig?: { respondToMentionAll?: boolean }; defaultConfig?: { respondToMentionAll?: boolea
src/messaging/inbound/gate.ts:46
↓ 7 callers
Function
runWithMessageUnavailableGuard
(params: { messageId: string | undefined; operation: string; fn: () => Promise<T>; })
src/core/message-unavailable.ts:143
↓ 7 callers
Function
threadScopedKey
(base: string, threadId?: string)
src/channel/chat-queue.ts:29
↓ 7 callers
Method
throttledCardUpdate
()
src/card/streaming-card-controller.ts:1070
↓ 7 callers
Method
transition
(to: CardPhase, source: string, reason?: TerminalReason)
src/card/streaming-card-controller.ts:400
↓ 7 callers
Function
truncateText
(value: string, maxLength: number)
src/card/reasoning-utils.ts:12
↓ 7 callers
Function
updateCardFeishu
(params: { cfg: ClawdbotConfig; messageId: string; card: Record<string, unknown>; accountId?: string;
src/messaging/outbound/send.ts:342
↓ 7 callers
Function
updateCardKitCardForAuth
(params: { cfg: ClawdbotConfig; cardId: string; card: Record<string, unknown>; sequence: number; acc
src/card/cardkit.ts:168
↓ 6 callers
Function
buildLabeledRow
* Build a left-right row: label on left, control on right.
src/tools/ask-user-question.ts:559
↓ 6 callers
Function
buildQueueKey
(accountId: string, chatId: string, threadId?: string)
src/channel/chat-queue.ts:33
↓ 6 callers
Method
convertMarkdownElements
(elements: unknown[])
src/messaging/converters/interactive/card-converter.ts:240
↓ 6 callers
Function
createDispatcher
(options: { sendMediaImpl?: (payload: unknown) => Promise<void>; terminateReturn?: boolean; } = {})
tests/reply-dispatcher-media.test.ts:118
↓ 6 callers
Method
ensureCardCreated
()
src/card/streaming-card-controller.ts:844
↓ 6 callers
Function
getLarkAccountIds
(cfg: ClawdbotConfig)
src/core/accounts.ts:85
↓ 6 callers
Function
inferIsWholeComment
(params: { explicitIsWhole?: boolean; quotedText?: string; })
src/messaging/inbound/comment-context.ts:89
↓ 6 callers
Function
isCommentTarget
(target: string)
src/core/comment-target.ts:124
↓ 6 callers
Function
isRecord
(v: unknown)
src/tools/mcp/shared.ts:53
↓ 6 callers
Function
makeCtx
(overrides: Partial<MessageContext> = {})
tests/mention-annotation-with-sentinels.test.ts:6
↓ 6 callers
Function
resolveAnyEnabledToolsConfig
(accounts: LarkAccount[])
src/core/tools-config.ts:73
↓ 6 callers
Function
resolveFeishuAllowlistMatch
(params: { allowFrom: Array<string | number>; senderId: string; senderName?: string | null; })
src/messaging/inbound/policy.ts:33
↓ 6 callers
Function
resolveReceiveIdType
(id: string)
src/core/targets.ts:153
↓ 6 callers
Function
resolveToken
* 从参数中解析 spreadsheet_token(支持 url 和直接 token 两种方式)。 * 如果检测到 wiki token,自动通过 wiki API 获取真实的 spreadsheet_token。
src/tools/oapi/sheets/sheet.ts:121
↓ 6 callers
Function
resolveToolUseDisplayConfig
(params: { cfg: ClawdbotConfig; feishuCfg: FeishuConfig | undefined; agentId: string; sessionKey: stri
src/card/tool-use-config.ts:26
↓ 6 callers
Function
secretRef
(id: string)
tests/secret-contract-api.test.ts:16
↓ 6 callers
Method
shouldSkip
* Check whether the reply pipeline should skip further operations. * Returns true if the message is already known to be unavailable.
src/card/unavailable-guard.ts:58
↓ 5 callers
Method
captureToolUseElapsed
()
src/card/streaming-card-controller.ts:435
↓ 5 callers
Method
computeToolUseDisplay
()
src/card/streaming-card-controller.ts:351
↓ 5 callers
Method
computeToolUseTitleSuffix
(display: ToolUseDisplayResult | null)
src/card/streaming-card-controller.ts:368
↓ 5 callers
Function
createCardEntity
(params: { cfg: ClawdbotConfig; card: Record<string, unknown>; accountId?: string; })
src/card/cardkit.ts:69
↓ 5 callers
Function
createStorePath
(testName: string)
tests/tool-use-config.test.ts:7
↓ 5 callers
Function
executeAuthorize
( params: ExecuteAuthorizeParams, )
src/tools/oauth.ts:258
↓ 5 callers
Method
extractGenericSummary
(values: unknown[])
src/messaging/converters/interactive/card-converter.ts:1071
↓ 5 callers
Function
filterSensitiveScopes
(scopes: string[])
src/core/tool-scopes.ts:477
↓ 5 callers
Function
formatToolError
(error: unknown, context?: Record<string, unknown>)
src/tools/helpers.ts:359
↓ 5 callers
Method
getChatMembers
(chatId: string)
src/messaging/inbound/user-name-cache-store.ts:166
↓ 5 callers
Method
getInflight
(key: string)
src/messaging/inbound/user-name-cache-store.ts:176
↓ 5 callers
Function
getPluginVersion
()
src/core/version.ts:22
↓ 5 callers
Function
i18nPlainText
构造带 i18n_content 的 plain_text(默认语言为英文)
src/tools/oauth-cards.ts:94
↓ 5 callers
Method
invokeByPath
(toolAction: ToolActionKey, path: string, options?: InvokeByPathOptions)
src/core/tool-client.ts:287
↓ 5 callers
Function
isEventOwnershipValid
* Verify that the event's app_id matches the current account. * * Lark SDK EventDispatcher flattens the v2 envelope header (which * contains `app_i
src/channel/event-handlers.ts:49
↓ 5 callers
Method
isStaleCreate
(epoch: number)
src/card/streaming-card-controller.ts:396
↓ 5 callers
Function
makeCtx
(over: { threadId?: string; rootId?: string })
tests/loop-guard-notice-routing.test.ts:80
↓ 5 callers
Function
makeCtx
(bot: MentionInfo, otherKey: MentionInfo[] = [])
tests/resolve-mentions-leading-strip.test.ts:18
↓ 5 callers
Function
normalizeMediaUrlInput
(value: string)
src/messaging/outbound/media-url-utils.ts:10
↓ 5 callers
Function
normalizeName
(name: string)
src/messaging/inbound/user-name-cache-store.ts:40
↓ 5 callers
Function
pad2
(value: number)
src/tools/oapi/helpers.ts:364
↓ 5 callers
Function
redactInlineSecrets
(value: string)
src/card/reasoning-utils.ts:25
↓ 5 callers
Function
removeStoredToken
(appId: string, userOpenId: string)
src/core/token-store.ts:348
↓ 5 callers
Function
resolveUserName
(params: { account: LarkAccount; openId: string; log: (...args: unknown[]) => void; })
src/messaging/inbound/user-name-cache.ts:341
↓ 5 callers
Function
runWith
(ctx: ReturnType<typeof makeCtx>)
tests/loop-guard-notice-routing.test.ts:101
↓ 5 callers
Function
runWithBotPeerContext
( ctx: BotPeerContext, fn: () => Promise<T>, )
src/messaging/outbound/bot-peer-context.ts:42
↓ 5 callers
Function
sanitizeParamsForLog
(params?: Record<string, unknown>)
src/card/reasoning-utils.ts:75
↓ 5 callers
Function
sendCardByCardId
(params: { cfg: ClawdbotConfig; to: string; cardId: string; replyToMessageId?: string; replyInThread
src/card/cardkit.ts:185
↓ 5 callers
Function
shouldSkip
(source: string)
src/card/reply-dispatcher.ts:113
↓ 5 callers
Function
ticketElapsed
()
src/core/lark-ticket.ts:53
↓ 4 callers
Function
adaptDirectoryParams
Convert nullable SDK params to optional params for directory functions.
src/channel/plugin.ts:45
↓ 4 callers
Function
assertLarkOk
Assert that a Lark SDK response has code === 0 (or no code field).
src/messaging/outbound/chat-manage.ts:33
↓ 4 callers
Function
baseEvent
(overrides: Partial<{ sender_type: string }> = {})
tests/parse-sender-is-bot.test.ts:4
↓ 4 callers
Function
beijingEndOfDay
北京时间当天 23:59:59 对应的真实 UTC Date
src/tools/oapi/im/time-utils.ts:225
↓ 4 callers
Function
buildFeishuGroupSystemPrompt
( configured: string | undefined, botOpenId?: string, )
src/messaging/inbound/dispatch-builders.ts:240
↓ 4 callers
Function
buildFeishuIdentityFields
( ctx: MessageContext, botOpenId?: string, )
src/messaging/inbound/dispatch-builders.ts:214
↓ 4 callers
Method
convertSelect
(prop: Obj, _id: string, isMulti: boolean)
src/messaging/converters/interactive/card-converter.ts:622
↓ 4 callers
Function
createDispatchContext
()
tests/dispatch-tool-use-init.test.ts:117
↓ 4 callers
Function
dateTimeToSecondsString
(datetime: string)
src/tools/oapi/im/time-utils.ts:71
↓ 4 callers
Method
deleteOpenId
(openId: string)
src/messaging/inbound/user-name-cache-store.ts:226
↓ 4 callers
Method
disconnect
Disconnect WebSocket but keep instance in cache.
src/core/lark-client.ts:407
↓ 4 callers
Function
dispatchSystemCommand
( dc: DispatchContext, ctxPayload: ReturnType<typeof LarkClient.runtime.channel.reply.finalizeInboundConte
src/messaging/inbound/dispatch-commands.ts:104
↓ 4 callers
Method
dispose
Disconnect + remove from cache.
src/core/lark-client.ts:425
↓ 4 callers
Function
enqueueFeishuChatTask
(params: { accountId: string; chatId: string; threadId?: string; task: () => Promise<void>; })
src/channel/chat-queue.ts:54
↓ 4 callers
Function
enrichMeta
(meta: Record<string, unknown> | undefined)
src/core/lark-logger.ts:88
↓ 4 callers
Function
escapeRegExp
(str: string)
src/messaging/converters/utils.ts:9
↓ 4 callers
Method
evict
()
src/messaging/inbound/user-name-cache-store.ts:250
↓ 4 callers
Function
extractLarkApiCode
(err: unknown)
src/core/api-error.ts:63
↓ 4 callers
Function
extractReplyText
* Extract text from a comment reply object.
src/messaging/inbound/comment-context.ts:74
↓ 4 callers
Function
feishuFetch
(url: string | URL | Request, init?: RequestInit)
src/core/feishu-fetch.ts:21
↓ 4 callers
Function
formatBeijingISO
将 Date 格式化为北京时间 ISO 8601 字符串
src/tools/oapi/im/time-utils.ts:18
↓ 4 callers
Function
formatElapsed
(ms: number)
src/card/builder.ts:180
↓ 4 callers
Function
formatFooterRuntimeSegments
(params: { footer?: { status?: boolean; elapsed?: boolean; tokens?: boolean; cache?: boolean
src/card/builder.ts:215
↓ 4 callers
Function
formatMessage
* Format message with inline meta for text-based log output. * * RuntimeLogger implementations typically ignore the `meta` parameter in * their tex
src/core/lark-logger.ts:122
↓ 4 callers
Function
formatToolResult
( data: unknown, options: { /** JSON 缩进空格数,默认 2 */ indent?: number; } = {}, )
src/tools/helpers.ts:322
↓ 4 callers
Function
getAppOwnerFallback
( account: ConfiguredLarkAccount, sdk: Lark.Client, )
src/core/app-owner-fallback.ts:32
↓ 4 callers
Function
getLogger
()
src/core/lark-logger.ts:145
↓ 4 callers
Function
getMessageUnavailableState
(messageId: string | undefined)
src/core/message-unavailable.ts:61
↓ 4 callers
Function
getResolvedConfig
(fallback: ClawdbotConfig)
src/core/lark-client.ts:497
↓ 4 callers
Function
getSelectFieldName
(questionIndex: number)
src/tools/ask-user-question.ts:188
↓ 4 callers
Function
getUserAgent
()
src/core/version.ts:67
↓ 4 callers
Function
isSyntheticTarget
(target: string | undefined | null)
src/core/synthetic-target.ts:38
↓ 4 callers
Function
logCardKitResponse
* 记录 CardKit API 响应日志,检测错误码并抛出异常。 * * 默认 fail-fast:body-level 非零 code 视为业务错误,立即抛出, * 由调用方(streaming-card-controller 等)统一走 catch → guard 处理。
src/card/cardkit.ts:44
↓ 4 callers
Function
matchesQuery
Case-insensitive substring match on id and optional name.
src/channel/directory.ts:25
↓ 4 callers
Function
mentionedBot
(ctx: MessageContext)
src/messaging/inbound/mention.ts:33
↓ 4 callers
Function
millisToDatetime
(ms: string | number)
src/messaging/converters/utils.ts:39
↓ 4 callers
Function
normalizeEventListTimeFields
( events: Array<Record<string, any>> | undefined, )
src/tools/oapi/calendar/event.ts:491
↓ 4 callers
Function
openPlatformDomain
(brand?: LarkBrand)
src/core/domains.ts:18
← previous
next →
101–200 of 1,118, ranked by callers