Code
Hub
Workspaces
Following
Trending
Connect
MCP
copy
Create free account
hub
/
github.com/ColinLu50/openclaw-lark-stream
/ functions
Functions
864 in github.com/ColinLu50/openclaw-lark-stream
⨍
Functions
864
◇
Types & classes
193
↓ 437 callers
Method
info
(message: string, meta?: Record<string, unknown>)
src/core/lark-logger.ts:27
↓ 225 callers
Function
json
(data: unknown)
src/tools/oapi/helpers.ts:107
↓ 116 callers
Method
invoke
* 统一 API 调用入口。 * * 自动处理: * - 根据 API meta 选择 UAT / TAT * - 严格模式:检查应用和用户是否拥有所有 API 要求的 scope * - 无 token 或 scope 不足时抛出结构化错误 * - UAT 模式
src/core/tool-client.ts:175
↓ 106 callers
Function
assertLarkOk
(res: { code?: number; msg?: string })
src/core/api-error.ts:86
↓ 95 callers
Method
get
(service: string, account: string)
src/core/token-store.ts:76
↓ 93 callers
Method
warn
(message: string, meta?: Record<string, unknown>)
src/core/lark-logger.ts:28
↓ 68 callers
Method
set
(service: string, account: string, data: string)
src/core/token-store.ts:77
↓ 52 callers
Function
StringEnum
(values: T[], options?: SchemaOptions)
src/tools/oapi/helpers.ts:451
↓ 51 callers
Method
debug
(message: string, meta?: Record<string, unknown>)
src/core/lark-logger.ts:26
↓ 48 callers
Method
has
Check whether the cache holds a (possibly empty) entry for this openId.
src/messaging/inbound/user-name-cache.ts:42
↓ 46 callers
Method
error
(message: string, meta?: Record<string, unknown>)
src/core/lark-logger.ts:29
↓ 36 callers
Function
larkLogger
(subsystem: string)
src/core/lark-logger.ts:175
↓ 33 callers
Method
fromCfg
(cfg: ClawdbotConfig, accountId?: string)
src/core/chat-info-cache.ts:27
↓ 33 callers
Function
registerTool
( api: OpenClawPluginApi, tool: Parameters<OpenClawPluginApi['registerTool']>[0], opts?: Parameters<Open
src/tools/helpers.ts:254
↓ 31 callers
Function
createToolContext
( api: OpenClawPluginApi, toolName: string, options?: { /** 使用第几个账号(默认 0,即第一个) */ accountIndex?:
src/tools/helpers.ts:178
↓ 31 callers
Function
getLarkAccount
(cfg: ClawdbotConfig, accountId?: string | null)
src/core/accounts.ts:100
↓ 30 callers
Function
handleInvokeErrorWithAutoAuth
(err: unknown, cfg: ClawdbotConfig)
src/tools/auto-auth.ts:956
↓ 23 callers
Function
safeParse
(raw: string)
src/messaging/converters/utils.ts:16
↓ 21 callers
Method
extractTextContent
(textElem: unknown)
src/messaging/converters/interactive/card-converter.ts:170
↓ 18 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:186
↓ 16 callers
Function
getEnabledLarkAccounts
(cfg: ClawdbotConfig)
src/core/accounts.ts:190
↓ 12 callers
Function
normalizeMessageId
(messageId: string | undefined)
src/core/targets.ts:169
↓ 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
↓ 10 callers
Function
getAppGrantedScopes
( sdk: Lark.Client, appId: string, tokenType?: 'user' | 'tenant', )
src/core/app-scope-checker.ts:73
↓ 10 callers
Function
getTicket
()
src/core/lark-ticket.ts:48
↓ 10 callers
Function
optimizeMarkdownStyle
(text: string, cardVersion = 2)
src/card/markdown-style.ts:17
↓ 10 callers
Function
parseTimeToTimestamp
(input: string)
src/tools/oapi/helpers.ts:136
↓ 10 callers
Function
sendTextLark
(params: SendTextLarkParams)
src/messaging/outbound/deliver.ts:241
↓ 9 callers
Method
convertElement
(elem: Obj, depth: number)
src/messaging/converters/interactive/card-converter.ts:152
↓ 9 callers
Function
normalizeFeishuTarget
(raw: string)
src/core/targets.ts:64
↓ 9 callers
Function
resolveCalendarIdOrFail
( calendarId: string | undefined, client: ReturnType<typeof toolClient>, )
src/tools/oapi/calendar/event.ts:523
↓ 8 callers
Function
error
(message: string, meta?: Record<string, unknown>)
src/core/lark-logger.ts:162
↓ 8 callers
Function
formatLarkError
(err: unknown)
src/core/api-error.ts:104
↓ 8 callers
Function
getStoredToken
(appId: string, userOpenId: string)
src/core/token-store.ts:318
↓ 8 callers
Method
onIdle
()
src/card/streaming-card-controller.ts:583
↓ 8 callers
Function
runWithMessageUnavailableGuard
(params: { messageId: string | undefined; operation: string; fn: () => Promise<T>; })
src/core/message-unavailable.ts:142
↓ 8 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:296
↓ 8 callers
Function
unixTimestampToISO8601
(raw: string | number | undefined)
src/tools/oapi/helpers.ts:374
↓ 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
clear
()
src/core/chat-info-cache.ts:89
↓ 7 callers
Method
commitReasoningEvent
* 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 callers
Method
convertElements
(elements: unknown[], depth: number)
src/messaging/converters/interactive/card-converter.ts:142
↓ 7 callers
Function
escapeRegExp
(str: string)
src/messaging/converters/utils.ts:9
↓ 7 callers
Function
getRequiredScopes
(toolAction: ToolActionKey)
src/core/scope-manager.ts:63
↓ 7 callers
Function
getUserNameCache
(accountId: string)
src/messaging/inbound/user-name-cache.ts:119
↓ 7 callers
Function
i18nContent
构造 i18n_content 对象(双语)
src/tools/oauth-cards.ts:90
↓ 7 callers
Function
parseTimeToTimestampMs
(input: string)
src/tools/oapi/helpers.ts:202
↓ 7 callers
Function
sendMessageFeishu
(params: SendFeishuMessageParams)
src/messaging/outbound/send.ts:109
↓ 7 callers
Method
transition
(to: CardPhase, source: string, reason?: TerminalReason)
src/card/streaming-card-controller.ts:309
↓ 7 callers
Function
updateCardKitCardForAuth
(params: { cfg: ClawdbotConfig; cardId: string; card: Record<string, unknown>; sequence: number; acc
src/card/cardkit.ts:158
↓ 6 callers
Function
buildCardContent
( state: CardState, data: { text?: string; // Streaming display fields (intermediate state) re
src/card/builder.ts:326
↓ 6 callers
Function
buildQueueKey
(accountId: string, chatId: string, threadId?: string)
src/channel/chat-queue.ts:33
↓ 6 callers
Function
compactNumber
(value: number)
src/card/builder.ts:201
↓ 6 callers
Method
convertMarkdownElements
(elements: unknown[])
src/messaging/converters/interactive/card-converter.ts:240
↓ 6 callers
Function
enqueueFeishuChatTask
(params: { accountId: string; chatId: string; threadId?: string; task: () => Promise<void>; })
src/channel/chat-queue.ts:54
↓ 6 callers
Function
isRecord
(v: unknown)
src/tools/mcp/shared.ts:53
↓ 6 callers
Function
resolveAnyEnabledToolsConfig
(accounts: LarkAccount[])
src/core/tools-config.ts:73
↓ 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
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
↓ 6 callers
Method
throttledCardUpdate
()
src/card/streaming-card-controller.ts:992
↓ 6 callers
Function
withTicket
(ticket: LarkTicket, fn: () => T | Promise<T>)
src/core/lark-ticket.ts:43
↓ 5 callers
Function
buildLabeledRow
* Build a left-right row: label on left, control on right.
src/tools/ask-user-question.ts:482
↓ 5 callers
Function
createCardEntity
(params: { cfg: ClawdbotConfig; card: Record<string, unknown>; accountId?: string; })
src/card/cardkit.ts:63
↓ 5 callers
Method
ensureCardCreated
()
src/card/streaming-card-controller.ts:758
↓ 5 callers
Function
executeAuthorize
( params: ExecuteAuthorizeParams, )
src/tools/oauth.ts:257
↓ 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:457
↓ 5 callers
Function
formatToolError
(error: unknown, context?: Record<string, unknown>)
src/tools/helpers.ts:334
↓ 5 callers
Function
getLarkAccountIds
(cfg: ClawdbotConfig)
src/core/accounts.ts:64
↓ 5 callers
Function
getPluginVersion
()
src/core/version.ts:22
↓ 5 callers
Function
handleFeishuMessage
(params: { cfg: ClawdbotConfig; event: FeishuMessageEvent; botOpenId?: string; runtime?: RuntimeEnv;
src/messaging/inbound/handler.ts:50
↓ 5 callers
Function
i18nPlainText
构造带 i18n_content 的 plain_text(默认语言为英文)
src/tools/oauth-cards.ts:95
↓ 5 callers
Method
isStaleCreate
(epoch: number)
src/card/streaming-card-controller.ts:305
↓ 5 callers
Function
normalizeMediaUrlInput
(value: string)
src/messaging/outbound/media-url-utils.ts:10
↓ 5 callers
Function
pad2
(value: number)
src/tools/oapi/helpers.ts:362
↓ 5 callers
Function
removeStoredToken
(appId: string, userOpenId: string)
src/core/token-store.ts:343
↓ 5 callers
Function
sendCardByCardId
(params: { cfg: ClawdbotConfig; to: string; cardId: string; replyToMessageId?: string; replyInThread
src/card/cardkit.ts:175
↓ 5 callers
Function
shouldSkip
(source: string)
src/card/reply-dispatcher.ts:117
↓ 5 callers
Function
updateCardKitCard
(params: { cfg: ClawdbotConfig; cardId: string; card: Record<string, unknown>; sequence: number; acc
src/card/cardkit.ts:132
↓ 4 callers
Function
adaptDirectoryParams
Convert nullable SDK params to optional params for directory functions.
src/channel/plugin.ts:45
↓ 4 callers
Function
ask
(prompt)
bin/openclaw-lark.js:211
↓ 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
beijingEndOfDay
北京时间当天 23:59:59 对应的真实 UTC Date
src/tools/oapi/im/time-utils.ts:225
↓ 4 callers
Method
completeRunningTools
()
src/card/streaming-card-controller.ts:446
↓ 4 callers
Function
convertMessageContent
( raw: string, messageType: string, ctx: ConvertContext, )
src/messaging/converters/content-converter.ts:49
↓ 4 callers
Method
convertSelect
(prop: Obj, _id: string, isMulti: boolean)
src/messaging/converters/interactive/card-converter.ts:622
↓ 4 callers
Function
dateTimeToSecondsString
(datetime: string)
src/tools/oapi/im/time-utils.ts:71
↓ 4 callers
Method
disconnect
Disconnect WebSocket but keep instance in cache.
src/core/lark-client.ts:403
↓ 4 callers
Method
dispose
Disconnect + remove from cache.
src/core/lark-client.ts:421
↓ 4 callers
Function
enrichMeta
(meta: Record<string, unknown> | undefined)
src/core/lark-logger.ts:86
↓ 4 callers
Function
extractLarkApiCode
(err: unknown)
src/core/api-error.ts:63
↓ 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:179
↓ 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:120
↓ 4 callers
Function
formatToolResult
( data: unknown, options: { /** JSON 缩进空格数,默认 2 */ indent?: number; } = {}, )
src/tools/helpers.ts:297
↓ 4 callers
Function
getAppOwnerFallback
( account: ConfiguredLarkAccount, // eslint-disable-next-line @typescript-eslint/no-explicit-any sdk: an
src/core/app-owner-fallback.ts:31
↓ 4 callers
Function
getLogger
()
src/core/lark-logger.ts:143
next →
1–100 of 864, ranked by callers