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
parseAllowFromInput
(raw: string)
src/channel/onboarding-config.ts:99
↓ 2 callers
Function
parseCardApiError
(err: unknown)
src/card/card-error.ts:85
↓ 2 callers
Function
parseFeishuRouteTarget
(raw: string)
src/core/targets.ts:89
↓ 2 callers
Function
parseTimeToRFC3339
(input: string)
src/tools/oapi/helpers.ts:269
↓ 2 callers
Function
readAllowFromStore
* Read the pairing allowFrom store for the Feishu channel via the SDK runtime.
src/messaging/inbound/gate.ts:92
↓ 2 callers
Function
readFormTextField
(formValue: Record<string, unknown>, fieldName: string)
src/tools/ask-user-question.ts:507
↓ 2 callers
Function
recordEntry
(chatId: string, openId: string, name: string)
src/messaging/inbound/mention-registry.ts:48
↓ 2 callers
Function
recordSender
(chatId: string, openId: string, name: string)
src/messaging/inbound/mention-registry.ts:72
↓ 2 callers
Function
redactStandalonePath
(value: string)
src/card/tool-use-display.ts:495
↓ 2 callers
Function
refreshWithLock
* Refresh with per-user locking.
src/core/uat-client.ts:151
↓ 2 callers
Method
register
原子注册新流程(同时写入 3 个索引 + 设置统一 TTL)
src/tools/auto-auth.ts:292
↓ 2 callers
Function
registerAskUserQuestionTool
(api: OpenClawPluginApi)
src/tools/ask-user-question.ts:982
↓ 2 callers
Method
remove
只需 operationId 即可原子清理所有索引
src/tools/auto-auth.ts:306
↓ 2 callers
Method
removeFromReverse
(key: string, openId: string)
src/messaging/inbound/user-name-cache-store.ts:233
↓ 2 callers
Function
removeTypingIndicator
(params: { cfg: OpenClawConfig; state: TypingIndicatorState; accountId?: string; })
src/messaging/outbound/typing.ts:135
↓ 2 callers
Method
requireCredentials
Assert credentials exist or throw.
src/core/lark-client.ts:433
↓ 2 callers
Function
resetBotLoop
(chatId: string, threadId?: string)
src/messaging/inbound/bot-loop-guard.ts:95
↓ 2 callers
Function
resolveAccountMode
(account: Record<string, unknown>)
secret-contract-api.ts:82
↓ 2 callers
Function
resolveBrand
Map a `LarkBrand` to the SDK `domain` parameter.
src/core/lark-client.ts:80
↓ 2 callers
Function
resolveCandidate
(name: string, ctx: NormalizeContext)
src/messaging/outbound/normalize-mentions.ts:216
↓ 2 callers
Function
resolveFeishuGroupAccess
* Layer 1 group-level admission check, shared between human and bot sender paths. * * Computes: * - `groupPolicy` access via SDK (`resolveGroupPol
src/messaging/inbound/gate.ts:181
↓ 2 callers
Method
resolveImages
* Synchronously resolve image URLs in markdown text. * * - `img_xxx` references are kept as-is. * - URLs with a cached imageKey are replaced
src/card/image-resolver.ts:54
↓ 2 callers
Function
resolveTimeRange
解析时间参数,返回秒级时间戳字符串
src/tools/oapi/im/message-read.ts:58
↓ 2 callers
Function
resolveVcSender
( event: FeishuVcMeetingInvitedEvent, )
src/messaging/inbound/vc-sender.ts:57
↓ 2 callers
Method
rethrowStructuredError
* 识别飞书服务端错误码并转换为结构化错误。 * * - LARK_ERROR.APP_SCOPE_MISSING (99991672) → AppScopeMissingError(清缓存后抛出) * - LARK_ERROR.USER_SCOPE_INSUFFICIENT (9
src/core/tool-client.ts:426
↓ 2 callers
Function
runChatPrefetch
* Runs a chat-member prefetch with shared lifecycle: * * 1. Skip on unconfigured account or empty chatId. * 2. Dedup concurrent calls per (tag, cha
src/messaging/inbound/user-name-cache.ts:212
↓ 2 callers
Function
runDiagnosis
(params: { config: OpenClawConfig; logger?: DiagLogger })
src/commands/diagnose.ts:271
↓ 2 callers
Function
runFeishuAuth
(config: OpenClawConfig, locale: FeishuLocale = 'zh_cn')
src/commands/auth.ts:200
↓ 2 callers
Function
safeFileUrlToPath
(fileUrl: string)
src/messaging/outbound/media-url-utils.ts:44
↓ 2 callers
Function
sanitizeDisplayBlockValue
(value: unknown, descriptor: ToolDescriptor | undefined)
src/card/tool-use-display.ts:325
↓ 2 callers
Function
sanitizeGenericText
(value: string)
src/card/tool-use-display.ts:537
↓ 2 callers
Function
sanitizeTextSegmentsForCard
( texts: readonly string[], tableLimit: number = FEISHU_CARD_TABLE_LIMIT, )
src/card/card-error.ts:191
↓ 2 callers
Function
sendImMessage
* Unified IM message sender — handles both reply and create paths for any * `msg_type`. Replaces the former `replyPostMessage`, `createPostMessage`,
src/messaging/outbound/deliver.ts:107
↓ 2 callers
Method
setCardMessageReady
(ready: boolean)
src/card/flush-controller.ts:131
↓ 2 callers
Function
setCardStreamingMode
(params: { cfg: ClawdbotConfig; cardId: string; streamingMode: boolean; sequence: number; accountId?
src/card/cardkit.ts:253
↓ 2 callers
Function
setFeishuGroupAllowFrom
(cfg: ClawdbotConfig, groupAllowFrom: string[])
src/channel/onboarding-config.ts:69
↓ 2 callers
Function
setStoredToken
(token: StoredUAToken)
src/core/token-store.ts:338
↓ 2 callers
Function
shouldRedactHeaderValue
(name: string)
src/card/reasoning-utils.ts:67
↓ 2 callers
Function
sortRuleToSortType
(rule?: 'create_time_asc' | 'create_time_desc')
src/tools/oapi/im/message-read.ts:26
↓ 2 callers
Function
splitLegacyGroupAllowFrom
(rawGroupAllowFrom: Array<string | number>)
src/messaging/inbound/policy.ts:167
↓ 2 callers
Function
stringifyJson
(value: unknown)
src/card/tool-use-display.ts:446
↓ 2 callers
Method
throttledToolUseStatusUpdate
()
src/card/streaming-card-controller.ts:1080
↓ 2 callers
Function
toBrand
Coerce a domain string to `LarkBrand`, defaulting to `"feishu"`.
src/core/accounts.ts:72
↓ 2 callers
Function
toCardKit2
(card: FeishuCard)
src/card/builder.ts:766
↓ 2 callers
Function
toolUseElements
(card: ReturnType<typeof buildCardContent>)
tests/builder-footer-runtime.test.ts:166
↓ 2 callers
Function
triggerOnboarding
(params: { cfg: ClawdbotConfig; userOpenId: string; accountId: string; })
src/tools/onboarding-auth.ts:44
↓ 2 callers
Function
uploadAndSendMediaLark
(params: { cfg: OpenClawConfig; to: string; mediaUrl?: string; mediaBuffer?: Buffer; fileName?: stri
src/messaging/outbound/media.ts:806
↓ 2 callers
Function
uploadImageLark
(params: { cfg: OpenClawConfig; image: Buffer | string; imageType?: 'message' | 'avatar'; accountId?:
src/messaging/outbound/media.ts:347
↓ 2 callers
Function
validateLocalMediaRoots
(filePath: string, localRoots: readonly string[] | undefined)
src/messaging/outbound/media-url-utils.ts:71
↓ 2 callers
Function
withRetry
* Run an async operation with bounded retries for transient HTTP errors. * * Only retries when the error carries a recognised retryable HTTP status
src/messaging/outbound/media.ts:53
↓ 2 callers
Method
writeEntry
(openId: string, name: string, kind: PrincipalKind | undefined)
src/messaging/inbound/user-name-cache-store.ts:198
↓ 2 callers
Function
wwwDomain
(brand?: LarkBrand)
src/core/domains.ts:28
↓ 1 callers
Function
_optimizeMarkdownStyle
(text: string, cardVersion = 2)
src/card/markdown-style.ts:27
↓ 1 callers
Function
_resetForTesting
()
src/card/tool-use-trace-store.ts:327
↓ 1 callers
Function
accountNames
(accounts: LarkAccount[])
src/core/security-check.ts:74
↓ 1 callers
Function
acquireCredentials
(params: { cfg: ClawdbotConfig; prompter: WizardPrompter; feishuCfg: FeishuConfig | undefined; })
src/channel/onboarding.ts:94
↓ 1 callers
Function
addReactionFeishu
(params: { cfg: OpenClawConfig; messageId: string; emojiType: string; accountId?: string; })
src/messaging/outbound/reactions.ts:294
↓ 1 callers
Function
addTypingIndicator
(params: { cfg: OpenClawConfig; messageId: string; accountId?: string; })
src/messaging/outbound/typing.ts:69
↓ 1 callers
Function
analyzeTrace
(lines: string[], _messageId: string)
src/commands/diagnose.ts:639
↓ 1 callers
Function
applinkDomain
(brand?: LarkBrand)
src/core/domains.ts:23
↓ 1 callers
Function
applyAccountConfig
( cfg: ClawdbotConfig, accountId: string, patch: Record<string, unknown>, )
src/channel/config-adapter.ts:57
↓ 1 callers
Function
applyReplacements
* Applies non-overlapping replacements in a single left-to-right pass. * Builds an array of literal chunks then joins it once — O(n + total * replac
src/messaging/outbound/normalize-mentions.ts:188
↓ 1 callers
Function
applyStyle
(text: string, style?: string[])
src/messaging/converters/post.ts:183
↓ 1 callers
Method
applyTextStyle
(content: string, style: TextStyle)
src/messaging/converters/interactive/card-converter.ts:1185
↓ 1 callers
Function
assembleCommentsWithReplies
* 组装评论和回复数据 * 获取评论列表API会返回部分回复,但可能不完整 * 此函数会为每个评论获取完整的回复列表
src/tools/oapi/drive/doc-comments.ts:140
↓ 1 callers
Function
assertLarkOk
(res: any, context: string)
src/messaging/outbound/actions.ts:53
↓ 1 callers
Function
assertMessageAvailable
(messageId: string | undefined, operation?: string)
src/core/message-unavailable.ts:123
↓ 1 callers
Function
asyncIteratorToIterable
* Wrap an AsyncIterator into an AsyncIterable.
src/messaging/outbound/media.ts:266
↓ 1 callers
Function
basenameFromPath
(value: string)
src/card/tool-use-display.ts:527
↓ 1 callers
Function
buildAnsweredCard
(questions: QuestionItem[], answers: Record<string, string>)
src/tools/ask-user-question.ts:752
↓ 1 callers
Function
buildAppAuthProgressCard
* 构建应用权限引导卡片的"处理中"状态(用户点击按钮后更新)。
src/tools/auto-auth.ts:545
↓ 1 callers
Function
buildAuthCard
(params: { verificationUriComplete: string; expiresMin: number; scope?: string; isBatchAuth?: boolean;
src/tools/oauth-cards.ts:102
↓ 1 callers
Function
buildAuthHeader
()
src/tools/mcp/shared.ts:144
↓ 1 callers
Function
buildAuthIdentityMismatchCard
(brand?: LarkBrand)
src/tools/oauth-cards.ts:364
↓ 1 callers
Function
buildAuthSuccessCard
(brand?: LarkBrand)
src/tools/oauth-cards.ts:278
↓ 1 callers
Function
buildBodyForAgent
( ctx: MessageContext, sentinels?: SentinelEntry[], )
src/messaging/inbound/dispatch-builders.ts:138
↓ 1 callers
Function
buildChildrenMap
* Build a map from parent message ID → ordered child items. * * The API returns a flat `items` array where each item may carry an * `upper_message_
src/messaging/converters/merge-forward.ts:116
↓ 1 callers
Function
buildCompleteCard
(params: { text: string; elapsedMs?: number; isError?: boolean; reasoningText?: string; reasoningEla
src/card/builder.ts:439
↓ 1 callers
Function
buildConfirmCard
(confirmData: ConfirmData)
src/card/builder.ts:567
↓ 1 callers
Function
buildDispatchContext
(params: { ctx: MessageContext; account: LarkAccount; accountScopedCfg: ClawdbotConfig; runtime?: Runt
src/messaging/inbound/dispatch-context.ts:72
↓ 1 callers
Method
buildDisplayText
()
src/card/streaming-card-controller.ts:1062
↓ 1 callers
Function
buildDriveCommentSurfacePrompt
* Build the surface prompt sent to the agent for a Drive comment event. * * Includes document context (title, quoted text, comment text) and * beha
src/messaging/inbound/comment-context.ts:213
↓ 1 callers
Function
buildEnvelopeWithHistory
( dc: DispatchContext, messageBody: string, chatHistories: Map<string, HistoryEntry[]> | undefined, hi
src/messaging/inbound/dispatch-builders.ts:265
↓ 1 callers
Function
buildErrorBlock
(error: string, descriptor: ToolDescriptor | undefined)
src/card/tool-use-display.ts:321
↓ 1 callers
Function
buildExpiredCard
(questions: QuestionItem[])
src/tools/ask-user-question.ts:852
↓ 1 callers
Function
buildFeishuMediaPayload
(mediaList: FeishuMediaInfo[])
src/messaging/inbound/media-resolver.ts:96
↓ 1 callers
Function
buildFooter
* Build footer meta-info: notation-sized text with i18n support. * Error text is rendered in red; normal text uses default grey (notation).
src/card/builder.ts:189
↓ 1 callers
Function
buildI18nMarkdownCard
(i18nTexts: Record<string, string>)
src/messaging/outbound/send.ts:410
↓ 1 callers
Function
buildMarkdownCard
(text: string)
src/messaging/outbound/send.ts:381
↓ 1 callers
Function
buildMarkdownCard
(text: string)
src/channel/interactive-dispatch.ts:78
↓ 1 callers
Function
buildMaskPredicate
(text: string)
src/messaging/outbound/normalize-mentions.ts:143
↓ 1 callers
Function
buildMentionedCardContent
(targets: MentionInfo[], message: string)
src/messaging/inbound/mention.ts:103
↓ 1 callers
Function
buildMessageBody
( ctx: MessageContext, quotedContent?: string, sentinels?: SentinelEntry[], )
src/messaging/inbound/dispatch-builders.ts:98
↓ 1 callers
Function
buildPatternDetail
(params: Record<string, unknown>, options: { includeTarget: boolean })
src/card/tool-use-display.ts:332
↓ 1 callers
Function
buildPostContent
* Build a Feishu post-format content envelope from processed text.
src/messaging/outbound/deliver.ts:34
↓ 1 callers
Function
buildQuestionFormElements
* Build form elements for a single question. * * All controls use `name` for form_value collection. No `value` property * is set on interactive com
src/tools/ask-user-question.ts:590
↓ 1 callers
Function
buildRequestBody
(body: unknown)
src/core/raw-request.ts:56
↓ 1 callers
Function
buildResultBlock
( source: ToolStepSource, descriptor: ToolDescriptor | undefined, )
src/card/tool-use-display.ts:310
↓ 1 callers
Function
buildSearchData
(p: SearchMessagesParams, time: { start: string; end: string })
src/tools/oapi/im/message-read.ts:378
↓ 1 callers
Function
buildStreamingCard
( partialText: string, params: { showToolUse?: boolean; toolUseSteps?: ToolUseDisplayStep[]; t
src/card/builder.ts:390
← previous
next →
401–500 of 1,118, ranked by callers