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
↓ 443 callers
Method
info
(message: string, meta?: Record<string, unknown>)
src/core/lark-logger.ts:27
↓ 294 callers
Method
fn
(_sdk, _opts, uat)
src/core/tool-client.ts:288
↓ 235 callers
Function
json
(data: unknown)
src/tools/oapi/helpers.ts:109
↓ 118 callers
Method
get
(service: string, account: string)
src/core/token-store.ts:81
↓ 117 callers
Method
invoke
* 统一 API 调用入口。 * * 自动处理: * - 根据 API meta 选择 UAT / TAT * - 严格模式:检查应用和用户是否拥有所有 API 要求的 scope * - 无 token 或 scope 不足时抛出结构化错误 * - UAT 模式
src/core/tool-client.ts:175
↓ 107 callers
Function
assertLarkOk
(res: { code?: number; msg?: string })
src/core/api-error.ts:86
↓ 103 callers
Method
warn
(message: string, meta?: Record<string, unknown>)
src/core/lark-logger.ts:28
↓ 87 callers
Function
log
(...args: unknown[])
tests/handler-self-filter.test.ts:61
↓ 82 callers
Function
StringEnum
(values: T[], options?: SchemaOptions)
src/tools/oapi/helpers.ts:451
↓ 69 callers
Method
set
(service: string, account: string, data: string)
src/core/token-store.ts:82
↓ 67 callers
Method
debug
(message: string, meta?: Record<string, unknown>)
src/core/lark-logger.ts:26
↓ 58 callers
Method
has
(openId: string)
src/messaging/inbound/user-name-cache-store.ts:64
↓ 49 callers
Method
error
(message: string, meta?: Record<string, unknown>)
src/core/lark-logger.ts:29
↓ 47 callers
Function
getLarkAccount
(cfg: ClawdbotConfig, accountId?: string | null)
src/core/accounts.ts:121
↓ 44 callers
Function
larkLogger
(subsystem: string)
src/core/lark-logger.ts:177
↓ 38 callers
Function
recordToolUseStart
(params: { sessionKey?: string; toolName: string; toolParams?: Record<string, unknown>; toolCallId?: s
src/card/tool-use-trace-store.ts:67
↓ 36 callers
Method
fromCfg
(cfg: ClawdbotConfig, accountId?: string)
src/core/chat-info-cache.ts:27
↓ 36 callers
Function
getToolUseTraceSteps
(sessionKey?: string)
src/card/tool-use-trace-store.ts:165
↓ 36 callers
Function
registerTool
( api: OpenClawPluginApi, tool: Parameters<OpenClawPluginApi['registerTool']>[0], opts?: Parameters<Open
src/tools/helpers.ts:278
↓ 34 callers
Function
createToolContext
( api: OpenClawPluginApi, toolName: string, options?: { /** 使用第几个账号(默认 0,即第一个) */ accountIndex?:
src/tools/helpers.ts:202
↓ 34 callers
Function
isConversationStopIntent
(text: string)
src/channel/abort-detect.ts:183
↓ 33 callers
Function
handleInvokeErrorWithAutoAuth
(err: unknown, cfg: ClawdbotConfig)
src/tools/auto-auth.ts:932
↓ 29 callers
Function
startToolUseTraceRun
(sessionKey: string)
src/card/tool-use-trace-store.ts:46
↓ 23 callers
Function
getUserNameCache
(accountId: string)
src/messaging/inbound/user-name-cache-store.ts:261
↓ 23 callers
Function
safeParse
(raw: string)
src/messaging/converters/utils.ts:16
↓ 22 callers
Method
setWithKind
(openId: string, name: string, kind: PrincipalKind)
src/messaging/inbound/user-name-cache-store.ts:91
↓ 21 callers
Method
extractTextContent
(textElem: unknown)
src/messaging/converters/interactive/card-converter.ts:170
↓ 20 callers
Method
fromAccount
* Get (or create) a cached `LarkClient` for the given account. * If the cached instance has stale credentials it is replaced.
src/core/lark-client.ts:189
↓ 20 callers
Function
normalizeOutboundMentions
( text: string, ctx: NormalizeContext, )
src/messaging/outbound/normalize-mentions.ts:105
↓ 19 callers
Function
normalizeToolUseDisplay
(params: { traceSteps?: ToolUseTraceStep[]; showFullPaths?: boolean; showResultDetails?: boolean; })
src/card/tool-use-display.ts:171
↓ 18 callers
Function
handleFeishuMessage
(params: { cfg: ClawdbotConfig; event: FeishuMessageEvent; botOpenId?: string; runtime?: RuntimeEnv;
src/messaging/inbound/handler.ts:55
↓ 18 callers
Function
traceStep
(overrides: Partial<ToolUseTraceStep> & { toolName: string })
tests/tool-use-display.test.ts:17
↓ 17 callers
Function
createMockCfg
()
tests/ask-user-question.test.ts:66
↓ 17 callers
Function
handleAskUserAction
(data: unknown, _cfg: ClawdbotConfig, accountId: string)
src/tools/ask-user-question.ts:208
↓ 17 callers
Method
lookupByName
(name: string)
src/messaging/inbound/user-name-cache-store.ts:95
↓ 17 callers
Function
recordMention
(chatId: string, openId: string, name: string)
src/messaging/inbound/mention-registry.ts:61
↓ 17 callers
Function
run
(body: unknown)
tests/inbound-post-content-v2.test.ts:14
↓ 17 callers
Function
sanitizeTraceValue
( value: unknown, depth = 0, context: { source?: 'params' | 'result' | 'generic'; key?: string } = {}, )
src/card/tool-use-trace-store.ts:234
↓ 16 callers
Function
checkMessageGate
(params: { ctx: MessageContext; accountFeishuCfg?: FeishuConfig; account: LarkAccount; /** account 级别的
src/messaging/inbound/gate.ts:130
↓ 16 callers
Function
optimizeMarkdownStyle
(text: string, cardVersion = 2)
src/card/markdown-style.ts:17
↓ 15 callers
Function
makeCtx
(overrides: Partial<MessageContext> = {})
tests/gate-bot-sender.test.ts:56
↓ 14 callers
Function
clearUserNameCache
(accountId?: string)
src/messaging/inbound/user-name-cache-store.ts:270
↓ 14 callers
Function
createFormSubmitEvent
* Create a card action event that simulates form submission.
tests/ask-user-question.test.ts:128
↓ 14 callers
Function
getEnabledLarkAccounts
(cfg: ClawdbotConfig)
src/core/accounts.ts:211
↓ 14 callers
Function
normalizeOutboundMentions
(text: string, chatId: string)
src/messaging/outbound/outbound-mention.ts:55
↓ 14 callers
Function
noteBotTurnAndCheck
( chatId: string, threadId?: string, now: number = Date.now(), )
src/messaging/inbound/bot-loop-guard.ts:73
↓ 14 callers
Function
resolveBotName
(params: { account: LarkAccount; openId: string; log: (...args: unknown[]) => void; })
src/messaging/inbound/user-name-cache.ts:129
↓ 14 callers
Function
seedPendingQuestion
* Seed a pending question by calling the tool's execute(). * Returns the questionId that was generated.
tests/ask-user-question.test.ts:74
↓ 13 callers
Function
compactNumber
(value: number)
src/card/builder.ts:202
↓ 13 callers
Method
getChatBots
(chatId: string)
src/messaging/inbound/user-name-cache-store.ts:156
↓ 13 callers
Function
handleFeishuVcMeetingInvited
(params: { cfg: ClawdbotConfig event: FeishuVcMeetingInvitedEvent runtime?: RuntimeEnv chatHistories?:
src/messaging/inbound/vc-meeting-invited-handler.ts:126
↓ 13 callers
Function
lookupByName
( chatId: string, name: string, opts: { ttlMs?: number } = {}, )
src/messaging/inbound/mention-registry.ts:84
↓ 13 callers
Function
normalizeOutboundMentionsTagPass
(text: string)
src/messaging/outbound/normalize-mentions.ts:22
↓ 13 callers
Method
recordSentinels
(threadKey: string, sentinels: SentinelEntry[])
src/messaging/inbound/sentinel-store.ts:54
↓ 13 callers
Function
recordToolUseEnd
(params: { sessionKey?: string; toolName: string; toolParams?: Record<string, unknown>; toolCallId?: s
src/card/tool-use-trace-store.ts:106
↓ 12 callers
Function
error
(message: string, meta?: Record<string, unknown>)
src/core/lark-logger.ts:164
↓ 12 callers
Method
recordChatBots
(chatId: string, members: Array<{ openId: string; name: string }>)
src/messaging/inbound/user-name-cache-store.ts:134
↓ 12 callers
Function
resolveFeishuReplyRouting
( dc: DispatchContext, opts: { replyInThreadConfig?: boolean } = {}, )
src/messaging/inbound/bot-content.ts:112
↓ 12 callers
Function
sendMessageFeishu
(params: SendFeishuMessageParams)
src/messaging/outbound/send.ts:146
↓ 12 callers
Method
terminate
* Attempt to terminate the reply pipeline due to an unavailable message. * * @param source - Descriptive label for the caller (for logging).
src/card/unavailable-guard.ts:72
↓ 11 callers
Function
buildCardContent
( state: CardState, data: { text?: string; reasoningText?: string; reasoningElapsedMs?: number
src/card/builder.ts:316
↓ 11 callers
Function
makeAccount
()
tests/user-name-cache-r2-prefetch.test.ts:9
↓ 11 callers
Function
makeDc
(overrides: { isGroup?: boolean; isThread?: boolean; senderIsBot?: boolean; rootId?: string; threadI
tests/feishu-reply-routing.test.ts:28
↓ 11 callers
Function
normalizeMessageId
(messageId: string | undefined)
src/core/targets.ts:168
↓ 11 callers
Function
resolveCardCallbackOperatorId
(operator: CardCallbackOperator | undefined)
src/core/card-action-operator.ts:35
↓ 11 callers
Function
resolveMentions
(text: string, ctx: ConvertContext)
src/messaging/converters/content-converter-helpers.ts:73
↓ 10 callers
Method
consumeSentinels
(threadKey: string)
src/messaging/inbound/sentinel-store.ts:66
↓ 10 callers
Function
formatLarkError
(err: unknown)
src/core/api-error.ts:104
↓ 10 callers
Function
getAppGrantedScopes
( sdk: Lark.Client, appId: string, tokenType?: 'user' | 'tenant', )
src/core/app-scope-checker.ts:73
↓ 10 callers
Function
getSentinelStore
( accountId: string, maxThreads?: number, ttlMs?: number, )
src/messaging/inbound/sentinel-store.ts:89
↓ 10 callers
Function
getTicket
()
src/core/lark-ticket.ts:48
↓ 10 callers
Function
parseTimeToTimestamp
(input: string)
src/tools/oapi/helpers.ts:138
↓ 10 callers
Function
sendTextLark
(params: SendTextLarkParams)
src/messaging/outbound/deliver.ts:264
↓ 10 callers
Method
shouldProceed
* Unified callback guard — returns true if the pipeline is active * and the callback should proceed. * * Combines three checks: * 1. guard
src/card/streaming-card-controller.ts:387
↓ 9 callers
Function
buildTable
(label: string)
tests/card-review-followup.test.ts:67
↓ 9 callers
Method
clear
()
src/core/chat-info-cache.ts:89
↓ 9 callers
Function
clearToolUseTraceRun
(sessionKey: string)
src/card/tool-use-trace-store.ts:57
↓ 9 callers
Method
convertElement
(elem: Obj, depth: number)
src/messaging/converters/interactive/card-converter.ts:152
↓ 9 callers
Function
findDeep
* Deep-search an object tree for elements matching a predicate.
tests/ask-user-question.test.ts:553
↓ 9 callers
Function
m
(openId: string, name: string, isBot = false)
tests/bot-peer-mention.test.ts:14
↓ 9 callers
Function
normalizeFeishuTarget
(raw: string)
src/core/targets.ts:64
↓ 9 callers
Function
parseTimeToTimestampMs
(input: string)
src/tools/oapi/helpers.ts:204
↓ 9 callers
Function
resolveCalendarIdOrFail
( calendarId: string | undefined, client: ReturnType<typeof toolClient>, )
src/tools/oapi/calendar/event.ts:523
↓ 8 callers
Function
buildMentionAnnotation
( ctx: MessageContext, sentinels?: SentinelEntry[], )
src/messaging/inbound/dispatch-builders.ts:38
↓ 8 callers
Function
createFeishuReplyDispatcher
(params: CreateFeishuReplyDispatcherParams)
src/card/reply-dispatcher.ts:40
↓ 8 callers
Function
dispatchToAgent
(params: { ctx: MessageContext; permissionError?: PermissionError; mediaPayload: Record<string, unknown>
src/messaging/inbound/dispatch.ts:347
↓ 8 callers
Function
getStoredToken
(appId: string, userOpenId: string)
src/core/token-store.ts:323
↓ 8 callers
Function
makeCfg
(feishu: Record<string, unknown>)
tests/accounts-merge.test.ts:9
↓ 8 callers
Function
makeCtx
(content: string, resources: unknown[] = [])
tests/empty-message-guard.test.ts:121
↓ 8 callers
Function
normalizeToolName
(name?: string)
src/card/reasoning-utils.ts:8
↓ 8 callers
Method
onIdle
()
src/card/streaming-card-controller.ts:654
↓ 8 callers
Function
runCollect
Run `collectRuntimeConfigAssignments` over a synthetic Feishu section.
tests/secret-contract-api.test.ts:32
↓ 8 callers
Function
shouldUseCard
(text: string)
src/card/reply-mode.ts:81
↓ 8 callers
Function
unixTimestampToISO8601
(raw: string | number | undefined)
src/tools/oapi/helpers.ts:376
↓ 8 callers
Function
updateCardKitCard
(params: { cfg: ClawdbotConfig; cardId: string; card: Record<string, unknown>; sequence: number; acc
src/card/cardkit.ts:142
↓ 8 callers
Function
withRetry
( fn: () => Promise<T>, _label: string, maxRetries = MEDIA_RETRY_MAX, )
tests/media-retry.test.ts:57
↓ 7 callers
Function
beijingStartOfDay
北京时间当天 00:00:00 对应的真实 UTC Date
src/tools/oapi/im/time-utils.ts:220
↓ 7 callers
Function
classifyEvent
(body: string)
src/commands/diagnose.ts:564
↓ 7 callers
Method
convertElements
(elements: unknown[], depth: number)
src/messaging/converters/interactive/card-converter.ts:142
↓ 7 callers
Function
ensureMention
( text: string, peerOpenId: string, peerName: string, )
src/messaging/outbound/outbound-mention.ts:100
next →
1–100 of 1,118, ranked by callers