MCPcopy Create free account

hub / github.com/ColinLu50/openclaw-lark-stream / functions

Functions864 in github.com/ColinLu50/openclaw-lark-stream

↓ 437 callersMethodinfo
(message: string, meta?: Record<string, unknown>)
src/core/lark-logger.ts:27
↓ 225 callersFunctionjson
(data: unknown)
src/tools/oapi/helpers.ts:107
↓ 116 callersMethodinvoke
* 统一 API 调用入口。 * * 自动处理: * - 根据 API meta 选择 UAT / TAT * - 严格模式:检查应用和用户是否拥有所有 API 要求的 scope * - 无 token 或 scope 不足时抛出结构化错误 * - UAT 模式
src/core/tool-client.ts:175
↓ 106 callersFunctionassertLarkOk
(res: { code?: number; msg?: string })
src/core/api-error.ts:86
↓ 95 callersMethodget
(service: string, account: string)
src/core/token-store.ts:76
↓ 93 callersMethodwarn
(message: string, meta?: Record<string, unknown>)
src/core/lark-logger.ts:28
↓ 68 callersMethodset
(service: string, account: string, data: string)
src/core/token-store.ts:77
↓ 52 callersFunctionStringEnum
(values: T[], options?: SchemaOptions)
src/tools/oapi/helpers.ts:451
↓ 51 callersMethoddebug
(message: string, meta?: Record<string, unknown>)
src/core/lark-logger.ts:26
↓ 48 callersMethodhas
Check whether the cache holds a (possibly empty) entry for this openId.
src/messaging/inbound/user-name-cache.ts:42
↓ 46 callersMethoderror
(message: string, meta?: Record<string, unknown>)
src/core/lark-logger.ts:29
↓ 36 callersFunctionlarkLogger
(subsystem: string)
src/core/lark-logger.ts:175
↓ 33 callersMethodfromCfg
(cfg: ClawdbotConfig, accountId?: string)
src/core/chat-info-cache.ts:27
↓ 33 callersFunctionregisterTool
( api: OpenClawPluginApi, tool: Parameters<OpenClawPluginApi['registerTool']>[0], opts?: Parameters<Open
src/tools/helpers.ts:254
↓ 31 callersFunctioncreateToolContext
( api: OpenClawPluginApi, toolName: string, options?: { /** 使用第几个账号(默认 0,即第一个) */ accountIndex?:
src/tools/helpers.ts:178
↓ 31 callersFunctiongetLarkAccount
(cfg: ClawdbotConfig, accountId?: string | null)
src/core/accounts.ts:100
↓ 30 callersFunctionhandleInvokeErrorWithAutoAuth
(err: unknown, cfg: ClawdbotConfig)
src/tools/auto-auth.ts:956
↓ 23 callersFunctionsafeParse
(raw: string)
src/messaging/converters/utils.ts:16
↓ 21 callersMethodextractTextContent
(textElem: unknown)
src/messaging/converters/interactive/card-converter.ts:170
↓ 18 callersMethodfromAccount
* 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:186
↓ 16 callersFunctiongetEnabledLarkAccounts
(cfg: ClawdbotConfig)
src/core/accounts.ts:190
↓ 12 callersFunctionnormalizeMessageId
(messageId: string | undefined)
src/core/targets.ts:169
↓ 12 callersMethodterminate
* 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
↓ 10 callersFunctiongetAppGrantedScopes
( sdk: Lark.Client, appId: string, tokenType?: 'user' | 'tenant', )
src/core/app-scope-checker.ts:73
↓ 10 callersFunctiongetTicket
()
src/core/lark-ticket.ts:48
↓ 10 callersFunctionoptimizeMarkdownStyle
(text: string, cardVersion = 2)
src/card/markdown-style.ts:17
↓ 10 callersFunctionparseTimeToTimestamp
(input: string)
src/tools/oapi/helpers.ts:136
↓ 10 callersFunctionsendTextLark
(params: SendTextLarkParams)
src/messaging/outbound/deliver.ts:241
↓ 9 callersMethodconvertElement
(elem: Obj, depth: number)
src/messaging/converters/interactive/card-converter.ts:152
↓ 9 callersFunctionnormalizeFeishuTarget
(raw: string)
src/core/targets.ts:64
↓ 9 callersFunctionresolveCalendarIdOrFail
( calendarId: string | undefined, client: ReturnType<typeof toolClient>, )
src/tools/oapi/calendar/event.ts:523
↓ 8 callersFunctionerror
(message: string, meta?: Record<string, unknown>)
src/core/lark-logger.ts:162
↓ 8 callersFunctionformatLarkError
(err: unknown)
src/core/api-error.ts:104
↓ 8 callersFunctiongetStoredToken
(appId: string, userOpenId: string)
src/core/token-store.ts:318
↓ 8 callersMethodonIdle
()
src/card/streaming-card-controller.ts:583
↓ 8 callersFunctionrunWithMessageUnavailableGuard
(params: { messageId: string | undefined; operation: string; fn: () => Promise<T>; })
src/core/message-unavailable.ts:142
↓ 8 callersMethodshouldProceed
* 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:296
↓ 8 callersFunctionunixTimestampToISO8601
(raw: string | number | undefined)
src/tools/oapi/helpers.ts:374
↓ 7 callersFunctionbeijingStartOfDay
北京时间当天 00:00:00 对应的真实 UTC Date
src/tools/oapi/im/time-utils.ts:220
↓ 7 callersFunctionclassifyEvent
(body: string)
src/commands/diagnose.ts:564
↓ 7 callersMethodclear
()
src/core/chat-info-cache.ts:89
↓ 7 callersMethodcommitReasoningEvent
* Commit accumulated reasoning text as an ordered event, then reset. * Called whenever the reasoning phase ends (tool starts, answer arrives).
src/card/streaming-card-controller.ts:461
↓ 7 callersMethodconvertElements
(elements: unknown[], depth: number)
src/messaging/converters/interactive/card-converter.ts:142
↓ 7 callersFunctionescapeRegExp
(str: string)
src/messaging/converters/utils.ts:9
↓ 7 callersFunctiongetRequiredScopes
(toolAction: ToolActionKey)
src/core/scope-manager.ts:63
↓ 7 callersFunctiongetUserNameCache
(accountId: string)
src/messaging/inbound/user-name-cache.ts:119
↓ 7 callersFunctioni18nContent
构造 i18n_content 对象(双语)
src/tools/oauth-cards.ts:90
↓ 7 callersFunctionparseTimeToTimestampMs
(input: string)
src/tools/oapi/helpers.ts:202
↓ 7 callersFunctionsendMessageFeishu
(params: SendFeishuMessageParams)
src/messaging/outbound/send.ts:109
↓ 7 callersMethodtransition
(to: CardPhase, source: string, reason?: TerminalReason)
src/card/streaming-card-controller.ts:309
↓ 7 callersFunctionupdateCardKitCardForAuth
(params: { cfg: ClawdbotConfig; cardId: string; card: Record<string, unknown>; sequence: number; acc
src/card/cardkit.ts:158
↓ 6 callersFunctionbuildCardContent
( state: CardState, data: { text?: string; // Streaming display fields (intermediate state) re
src/card/builder.ts:326
↓ 6 callersFunctionbuildQueueKey
(accountId: string, chatId: string, threadId?: string)
src/channel/chat-queue.ts:33
↓ 6 callersFunctioncompactNumber
(value: number)
src/card/builder.ts:201
↓ 6 callersMethodconvertMarkdownElements
(elements: unknown[])
src/messaging/converters/interactive/card-converter.ts:240
↓ 6 callersFunctionenqueueFeishuChatTask
(params: { accountId: string; chatId: string; threadId?: string; task: () => Promise<void>; })
src/channel/chat-queue.ts:54
↓ 6 callersFunctionisRecord
(v: unknown)
src/tools/mcp/shared.ts:53
↓ 6 callersFunctionresolveAnyEnabledToolsConfig
(accounts: LarkAccount[])
src/core/tools-config.ts:73
↓ 6 callersFunctionresolveReceiveIdType
(id: string)
src/core/targets.ts:153
↓ 6 callersFunctionresolveToken
* 从参数中解析 spreadsheet_token(支持 url 和直接 token 两种方式)。 * 如果检测到 wiki token,自动通过 wiki API 获取真实的 spreadsheet_token。
src/tools/oapi/sheets/sheet.ts:121
↓ 6 callersMethodshouldSkip
* 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
↓ 6 callersMethodthrottledCardUpdate
()
src/card/streaming-card-controller.ts:992
↓ 6 callersFunctionwithTicket
(ticket: LarkTicket, fn: () => T | Promise<T>)
src/core/lark-ticket.ts:43
↓ 5 callersFunctionbuildLabeledRow
* Build a left-right row: label on left, control on right.
src/tools/ask-user-question.ts:482
↓ 5 callersFunctioncreateCardEntity
(params: { cfg: ClawdbotConfig; card: Record<string, unknown>; accountId?: string; })
src/card/cardkit.ts:63
↓ 5 callersMethodensureCardCreated
()
src/card/streaming-card-controller.ts:758
↓ 5 callersFunctionexecuteAuthorize
( params: ExecuteAuthorizeParams, )
src/tools/oauth.ts:257
↓ 5 callersMethodextractGenericSummary
(values: unknown[])
src/messaging/converters/interactive/card-converter.ts:1071
↓ 5 callersFunctionfilterSensitiveScopes
(scopes: string[])
src/core/tool-scopes.ts:457
↓ 5 callersFunctionformatToolError
(error: unknown, context?: Record<string, unknown>)
src/tools/helpers.ts:334
↓ 5 callersFunctiongetLarkAccountIds
(cfg: ClawdbotConfig)
src/core/accounts.ts:64
↓ 5 callersFunctiongetPluginVersion
()
src/core/version.ts:22
↓ 5 callersFunctionhandleFeishuMessage
(params: { cfg: ClawdbotConfig; event: FeishuMessageEvent; botOpenId?: string; runtime?: RuntimeEnv;
src/messaging/inbound/handler.ts:50
↓ 5 callersFunctioni18nPlainText
构造带 i18n_content 的 plain_text(默认语言为英文)
src/tools/oauth-cards.ts:95
↓ 5 callersMethodisStaleCreate
(epoch: number)
src/card/streaming-card-controller.ts:305
↓ 5 callersFunctionnormalizeMediaUrlInput
(value: string)
src/messaging/outbound/media-url-utils.ts:10
↓ 5 callersFunctionpad2
(value: number)
src/tools/oapi/helpers.ts:362
↓ 5 callersFunctionremoveStoredToken
(appId: string, userOpenId: string)
src/core/token-store.ts:343
↓ 5 callersFunctionsendCardByCardId
(params: { cfg: ClawdbotConfig; to: string; cardId: string; replyToMessageId?: string; replyInThread
src/card/cardkit.ts:175
↓ 5 callersFunctionshouldSkip
(source: string)
src/card/reply-dispatcher.ts:117
↓ 5 callersFunctionupdateCardKitCard
(params: { cfg: ClawdbotConfig; cardId: string; card: Record<string, unknown>; sequence: number; acc
src/card/cardkit.ts:132
↓ 4 callersFunctionadaptDirectoryParams
Convert nullable SDK params to optional params for directory functions.
src/channel/plugin.ts:45
↓ 4 callersFunctionask
(prompt)
bin/openclaw-lark.js:211
↓ 4 callersFunctionassertLarkOk
Assert that a Lark SDK response has code === 0 (or no code field).
src/messaging/outbound/chat-manage.ts:33
↓ 4 callersFunctionbeijingEndOfDay
北京时间当天 23:59:59 对应的真实 UTC Date
src/tools/oapi/im/time-utils.ts:225
↓ 4 callersMethodcompleteRunningTools
()
src/card/streaming-card-controller.ts:446
↓ 4 callersFunctionconvertMessageContent
( raw: string, messageType: string, ctx: ConvertContext, )
src/messaging/converters/content-converter.ts:49
↓ 4 callersMethodconvertSelect
(prop: Obj, _id: string, isMulti: boolean)
src/messaging/converters/interactive/card-converter.ts:622
↓ 4 callersFunctiondateTimeToSecondsString
(datetime: string)
src/tools/oapi/im/time-utils.ts:71
↓ 4 callersMethoddisconnect
Disconnect WebSocket but keep instance in cache.
src/core/lark-client.ts:403
↓ 4 callersMethoddispose
Disconnect + remove from cache.
src/core/lark-client.ts:421
↓ 4 callersFunctionenrichMeta
(meta: Record<string, unknown> | undefined)
src/core/lark-logger.ts:86
↓ 4 callersFunctionextractLarkApiCode
(err: unknown)
src/core/api-error.ts:63
↓ 4 callersFunctionfeishuFetch
(url: string | URL | Request, init?: RequestInit)
src/core/feishu-fetch.ts:21
↓ 4 callersFunctionformatBeijingISO
将 Date 格式化为北京时间 ISO 8601 字符串
src/tools/oapi/im/time-utils.ts:18
↓ 4 callersFunctionformatElapsed
(ms: number)
src/card/builder.ts:179
↓ 4 callersFunctionformatMessage
* 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:120
↓ 4 callersFunctionformatToolResult
( data: unknown, options: { /** JSON 缩进空格数,默认 2 */ indent?: number; } = {}, )
src/tools/helpers.ts:297
↓ 4 callersFunctiongetAppOwnerFallback
( account: ConfiguredLarkAccount, // eslint-disable-next-line @typescript-eslint/no-explicit-any sdk: an
src/core/app-owner-fallback.ts:31
↓ 4 callersFunctiongetLogger
()
src/core/lark-logger.ts:143
next →1–100 of 864, ranked by callers