MCPcopy Create free account

hub / github.com/larksuite/openclaw-lark / functions

Functions1,118 in github.com/larksuite/openclaw-lark

↓ 2 callersFunctionparseAllowFromInput
(raw: string)
src/channel/onboarding-config.ts:99
↓ 2 callersFunctionparseCardApiError
(err: unknown)
src/card/card-error.ts:85
↓ 2 callersFunctionparseFeishuRouteTarget
(raw: string)
src/core/targets.ts:89
↓ 2 callersFunctionparseTimeToRFC3339
(input: string)
src/tools/oapi/helpers.ts:269
↓ 2 callersFunctionreadAllowFromStore
* Read the pairing allowFrom store for the Feishu channel via the SDK runtime.
src/messaging/inbound/gate.ts:92
↓ 2 callersFunctionreadFormTextField
(formValue: Record<string, unknown>, fieldName: string)
src/tools/ask-user-question.ts:507
↓ 2 callersFunctionrecordEntry
(chatId: string, openId: string, name: string)
src/messaging/inbound/mention-registry.ts:48
↓ 2 callersFunctionrecordSender
(chatId: string, openId: string, name: string)
src/messaging/inbound/mention-registry.ts:72
↓ 2 callersFunctionredactStandalonePath
(value: string)
src/card/tool-use-display.ts:495
↓ 2 callersFunctionrefreshWithLock
* Refresh with per-user locking.
src/core/uat-client.ts:151
↓ 2 callersMethodregister
原子注册新流程(同时写入 3 个索引 + 设置统一 TTL)
src/tools/auto-auth.ts:292
↓ 2 callersFunctionregisterAskUserQuestionTool
(api: OpenClawPluginApi)
src/tools/ask-user-question.ts:982
↓ 2 callersMethodremove
只需 operationId 即可原子清理所有索引
src/tools/auto-auth.ts:306
↓ 2 callersMethodremoveFromReverse
(key: string, openId: string)
src/messaging/inbound/user-name-cache-store.ts:233
↓ 2 callersFunctionremoveTypingIndicator
(params: { cfg: OpenClawConfig; state: TypingIndicatorState; accountId?: string; })
src/messaging/outbound/typing.ts:135
↓ 2 callersMethodrequireCredentials
Assert credentials exist or throw.
src/core/lark-client.ts:433
↓ 2 callersFunctionresetBotLoop
(chatId: string, threadId?: string)
src/messaging/inbound/bot-loop-guard.ts:95
↓ 2 callersFunctionresolveAccountMode
(account: Record<string, unknown>)
secret-contract-api.ts:82
↓ 2 callersFunctionresolveBrand
Map a `LarkBrand` to the SDK `domain` parameter.
src/core/lark-client.ts:80
↓ 2 callersFunctionresolveCandidate
(name: string, ctx: NormalizeContext)
src/messaging/outbound/normalize-mentions.ts:216
↓ 2 callersFunctionresolveFeishuGroupAccess
* 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 callersMethodresolveImages
* 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 callersFunctionresolveTimeRange
解析时间参数,返回秒级时间戳字符串
src/tools/oapi/im/message-read.ts:58
↓ 2 callersFunctionresolveVcSender
( event: FeishuVcMeetingInvitedEvent, )
src/messaging/inbound/vc-sender.ts:57
↓ 2 callersMethodrethrowStructuredError
* 识别飞书服务端错误码并转换为结构化错误。 * * - LARK_ERROR.APP_SCOPE_MISSING (99991672) → AppScopeMissingError(清缓存后抛出) * - LARK_ERROR.USER_SCOPE_INSUFFICIENT (9
src/core/tool-client.ts:426
↓ 2 callersFunctionrunChatPrefetch
* 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 callersFunctionrunDiagnosis
(params: { config: OpenClawConfig; logger?: DiagLogger })
src/commands/diagnose.ts:271
↓ 2 callersFunctionrunFeishuAuth
(config: OpenClawConfig, locale: FeishuLocale = 'zh_cn')
src/commands/auth.ts:200
↓ 2 callersFunctionsafeFileUrlToPath
(fileUrl: string)
src/messaging/outbound/media-url-utils.ts:44
↓ 2 callersFunctionsanitizeDisplayBlockValue
(value: unknown, descriptor: ToolDescriptor | undefined)
src/card/tool-use-display.ts:325
↓ 2 callersFunctionsanitizeGenericText
(value: string)
src/card/tool-use-display.ts:537
↓ 2 callersFunctionsanitizeTextSegmentsForCard
( texts: readonly string[], tableLimit: number = FEISHU_CARD_TABLE_LIMIT, )
src/card/card-error.ts:191
↓ 2 callersFunctionsendImMessage
* 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 callersMethodsetCardMessageReady
(ready: boolean)
src/card/flush-controller.ts:131
↓ 2 callersFunctionsetCardStreamingMode
(params: { cfg: ClawdbotConfig; cardId: string; streamingMode: boolean; sequence: number; accountId?
src/card/cardkit.ts:253
↓ 2 callersFunctionsetFeishuGroupAllowFrom
(cfg: ClawdbotConfig, groupAllowFrom: string[])
src/channel/onboarding-config.ts:69
↓ 2 callersFunctionsetStoredToken
(token: StoredUAToken)
src/core/token-store.ts:338
↓ 2 callersFunctionshouldRedactHeaderValue
(name: string)
src/card/reasoning-utils.ts:67
↓ 2 callersFunctionsortRuleToSortType
(rule?: 'create_time_asc' | 'create_time_desc')
src/tools/oapi/im/message-read.ts:26
↓ 2 callersFunctionsplitLegacyGroupAllowFrom
(rawGroupAllowFrom: Array<string | number>)
src/messaging/inbound/policy.ts:167
↓ 2 callersFunctionstringifyJson
(value: unknown)
src/card/tool-use-display.ts:446
↓ 2 callersMethodthrottledToolUseStatusUpdate
()
src/card/streaming-card-controller.ts:1080
↓ 2 callersFunctiontoBrand
Coerce a domain string to `LarkBrand`, defaulting to `"feishu"`.
src/core/accounts.ts:72
↓ 2 callersFunctiontoCardKit2
(card: FeishuCard)
src/card/builder.ts:766
↓ 2 callersFunctiontoolUseElements
(card: ReturnType<typeof buildCardContent>)
tests/builder-footer-runtime.test.ts:166
↓ 2 callersFunctiontriggerOnboarding
(params: { cfg: ClawdbotConfig; userOpenId: string; accountId: string; })
src/tools/onboarding-auth.ts:44
↓ 2 callersFunctionuploadAndSendMediaLark
(params: { cfg: OpenClawConfig; to: string; mediaUrl?: string; mediaBuffer?: Buffer; fileName?: stri
src/messaging/outbound/media.ts:806
↓ 2 callersFunctionuploadImageLark
(params: { cfg: OpenClawConfig; image: Buffer | string; imageType?: 'message' | 'avatar'; accountId?:
src/messaging/outbound/media.ts:347
↓ 2 callersFunctionvalidateLocalMediaRoots
(filePath: string, localRoots: readonly string[] | undefined)
src/messaging/outbound/media-url-utils.ts:71
↓ 2 callersFunctionwithRetry
* 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 callersMethodwriteEntry
(openId: string, name: string, kind: PrincipalKind | undefined)
src/messaging/inbound/user-name-cache-store.ts:198
↓ 2 callersFunctionwwwDomain
(brand?: LarkBrand)
src/core/domains.ts:28
↓ 1 callersFunction_optimizeMarkdownStyle
(text: string, cardVersion = 2)
src/card/markdown-style.ts:27
↓ 1 callersFunction_resetForTesting
()
src/card/tool-use-trace-store.ts:327
↓ 1 callersFunctionaccountNames
(accounts: LarkAccount[])
src/core/security-check.ts:74
↓ 1 callersFunctionacquireCredentials
(params: { cfg: ClawdbotConfig; prompter: WizardPrompter; feishuCfg: FeishuConfig | undefined; })
src/channel/onboarding.ts:94
↓ 1 callersFunctionaddReactionFeishu
(params: { cfg: OpenClawConfig; messageId: string; emojiType: string; accountId?: string; })
src/messaging/outbound/reactions.ts:294
↓ 1 callersFunctionaddTypingIndicator
(params: { cfg: OpenClawConfig; messageId: string; accountId?: string; })
src/messaging/outbound/typing.ts:69
↓ 1 callersFunctionanalyzeTrace
(lines: string[], _messageId: string)
src/commands/diagnose.ts:639
↓ 1 callersFunctionapplinkDomain
(brand?: LarkBrand)
src/core/domains.ts:23
↓ 1 callersFunctionapplyAccountConfig
( cfg: ClawdbotConfig, accountId: string, patch: Record<string, unknown>, )
src/channel/config-adapter.ts:57
↓ 1 callersFunctionapplyReplacements
* 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 callersFunctionapplyStyle
(text: string, style?: string[])
src/messaging/converters/post.ts:183
↓ 1 callersMethodapplyTextStyle
(content: string, style: TextStyle)
src/messaging/converters/interactive/card-converter.ts:1185
↓ 1 callersFunctionassembleCommentsWithReplies
* 组装评论和回复数据 * 获取评论列表API会返回部分回复,但可能不完整 * 此函数会为每个评论获取完整的回复列表
src/tools/oapi/drive/doc-comments.ts:140
↓ 1 callersFunctionassertLarkOk
(res: any, context: string)
src/messaging/outbound/actions.ts:53
↓ 1 callersFunctionassertMessageAvailable
(messageId: string | undefined, operation?: string)
src/core/message-unavailable.ts:123
↓ 1 callersFunctionasyncIteratorToIterable
* Wrap an AsyncIterator into an AsyncIterable.
src/messaging/outbound/media.ts:266
↓ 1 callersFunctionbasenameFromPath
(value: string)
src/card/tool-use-display.ts:527
↓ 1 callersFunctionbuildAnsweredCard
(questions: QuestionItem[], answers: Record<string, string>)
src/tools/ask-user-question.ts:752
↓ 1 callersFunctionbuildAppAuthProgressCard
* 构建应用权限引导卡片的"处理中"状态(用户点击按钮后更新)。
src/tools/auto-auth.ts:545
↓ 1 callersFunctionbuildAuthCard
(params: { verificationUriComplete: string; expiresMin: number; scope?: string; isBatchAuth?: boolean;
src/tools/oauth-cards.ts:102
↓ 1 callersFunctionbuildAuthHeader
()
src/tools/mcp/shared.ts:144
↓ 1 callersFunctionbuildAuthIdentityMismatchCard
(brand?: LarkBrand)
src/tools/oauth-cards.ts:364
↓ 1 callersFunctionbuildAuthSuccessCard
(brand?: LarkBrand)
src/tools/oauth-cards.ts:278
↓ 1 callersFunctionbuildBodyForAgent
( ctx: MessageContext, sentinels?: SentinelEntry[], )
src/messaging/inbound/dispatch-builders.ts:138
↓ 1 callersFunctionbuildChildrenMap
* 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 callersFunctionbuildCompleteCard
(params: { text: string; elapsedMs?: number; isError?: boolean; reasoningText?: string; reasoningEla
src/card/builder.ts:439
↓ 1 callersFunctionbuildConfirmCard
(confirmData: ConfirmData)
src/card/builder.ts:567
↓ 1 callersFunctionbuildDispatchContext
(params: { ctx: MessageContext; account: LarkAccount; accountScopedCfg: ClawdbotConfig; runtime?: Runt
src/messaging/inbound/dispatch-context.ts:72
↓ 1 callersMethodbuildDisplayText
()
src/card/streaming-card-controller.ts:1062
↓ 1 callersFunctionbuildDriveCommentSurfacePrompt
* 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 callersFunctionbuildEnvelopeWithHistory
( dc: DispatchContext, messageBody: string, chatHistories: Map<string, HistoryEntry[]> | undefined, hi
src/messaging/inbound/dispatch-builders.ts:265
↓ 1 callersFunctionbuildErrorBlock
(error: string, descriptor: ToolDescriptor | undefined)
src/card/tool-use-display.ts:321
↓ 1 callersFunctionbuildExpiredCard
(questions: QuestionItem[])
src/tools/ask-user-question.ts:852
↓ 1 callersFunctionbuildFeishuMediaPayload
(mediaList: FeishuMediaInfo[])
src/messaging/inbound/media-resolver.ts:96
↓ 1 callersFunctionbuildFooter
* 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 callersFunctionbuildI18nMarkdownCard
(i18nTexts: Record<string, string>)
src/messaging/outbound/send.ts:410
↓ 1 callersFunctionbuildMarkdownCard
(text: string)
src/messaging/outbound/send.ts:381
↓ 1 callersFunctionbuildMarkdownCard
(text: string)
src/channel/interactive-dispatch.ts:78
↓ 1 callersFunctionbuildMaskPredicate
(text: string)
src/messaging/outbound/normalize-mentions.ts:143
↓ 1 callersFunctionbuildMentionedCardContent
(targets: MentionInfo[], message: string)
src/messaging/inbound/mention.ts:103
↓ 1 callersFunctionbuildMessageBody
( ctx: MessageContext, quotedContent?: string, sentinels?: SentinelEntry[], )
src/messaging/inbound/dispatch-builders.ts:98
↓ 1 callersFunctionbuildPatternDetail
(params: Record<string, unknown>, options: { includeTarget: boolean })
src/card/tool-use-display.ts:332
↓ 1 callersFunctionbuildPostContent
* Build a Feishu post-format content envelope from processed text.
src/messaging/outbound/deliver.ts:34
↓ 1 callersFunctionbuildQuestionFormElements
* 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 callersFunctionbuildRequestBody
(body: unknown)
src/core/raw-request.ts:56
↓ 1 callersFunctionbuildResultBlock
( source: ToolStepSource, descriptor: ToolDescriptor | undefined, )
src/card/tool-use-display.ts:310
↓ 1 callersFunctionbuildSearchData
(p: SearchMessagesParams, time: { start: string; end: string })
src/tools/oapi/im/message-read.ts:378
↓ 1 callersFunctionbuildStreamingCard
( partialText: string, params: { showToolUse?: boolean; toolUseSteps?: ToolUseDisplayStep[]; t
src/card/builder.ts:390
← previousnext →401–500 of 1,118, ranked by callers