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
↓ 2 callers
Function
ensureLinuxCredDir
Ensure the credentials directory exists with mode 0700.
src/core/token-store.ts:135
↓ 2 callers
Function
ensureWin32CredDir
()
src/core/token-store.ts:240
↓ 2 callers
Function
escapeAttr
(s: string)
src/messaging/converters/interactive/card-utils.ts:8
↓ 2 callers
Function
evict
(cache: Map<string, CacheEntry>)
src/tools/oapi/im/user-name-uat.ts:44
↓ 2 callers
Method
evict
()
src/messaging/inbound/user-name-cache.ts:103
↓ 2 callers
Method
evict
()
src/messaging/inbound/user-name-cache-store.ts:80
↓ 2 callers
Function
executeFeishuAuth
* Execute the auth command logic, including side-effects (triggerOnboarding). * Returns a discriminated result that can be formatted into any locale.
src/commands/auth.ts:111
↓ 2 callers
Function
extractApiDetail
(err: unknown)
src/card/streaming-card-controller.ts:1073
↓ 2 callers
Function
extractMcpUrlFromConfig
(cfg: unknown)
src/tools/mcp/shared.ts:60
↓ 2 callers
Function
extractPermissionGrantUrl
(msg: string)
src/core/permission-url.ts:51
↓ 2 callers
Method
extractTextFromProperty
(prop: Obj)
src/messaging/converters/interactive/card-converter.ts:183
↓ 2 callers
Function
fetchMediaBuffer
* Fetch media bytes from a URL or local file path. * * Supports: * - `http://` and `https://` URLs (fetched via the global `fetch` API) * - `file:
src/messaging/outbound/media.ts:945
↓ 2 callers
Method
filterMissing
Return openIds that are NOT present (or expired) in the cache.
src/messaging/inbound/user-name-cache.ts:83
↓ 2 callers
Method
finalizeCard
(source: string, reason: TerminalReason)
src/card/streaming-card-controller.ts:1002
↓ 2 callers
Function
findBox
* Find a box (atom) by its 4-character type within a range of the buffer. * Returns the data start/end offsets (after the 8-byte box header), or * `
src/messaging/outbound/media.ts:674
↓ 2 callers
Function
flushStream
()
src/commands/diagnose.ts:661
↓ 2 callers
Method
fn
(_sdk, _opts, uat)
src/core/tool-client.ts:288
↓ 2 callers
Function
formatAndReturn
格式化 message.list 结果并返回
src/tools/oapi/im/message-read.ts:74
↓ 2 callers
Function
formatCheck
(c: DiagCheckResult)
src/commands/diagnose.ts:361
↓ 2 callers
Function
formatCheckCli
(c: DiagCheckResult)
src/commands/diagnose.ts:458
↓ 2 callers
Function
formatDuration
(ms: number)
src/messaging/converters/utils.ts:29
↓ 2 callers
Function
formatMessageList
( items: ApiMessageItem[], account: LarkAccount, log: (...args: unknown[]) => void, client: ToolClient
src/tools/oapi/im/format-messages.ts:170
↓ 2 callers
Function
formatScopeDescription
( locale: Locale, params: { scope?: string; isBatchAuth?: boolean; totalAppScopes?: number;
src/tools/oauth-cards.ts:226
↓ 2 callers
Function
getAccountMap
Return the per-account override map, if present.
src/core/accounts.ts:33
↓ 2 callers
Function
getAllToolScopes
* 获取所有工具动作需要的唯一 scope 列表(从 diagnose.ts 复制)
src/commands/doctor.ts:268
↓ 2 callers
Function
getAppInfo
(sdk: Lark.Client, appId: string)
src/core/app-scope-checker.ts:171
↓ 2 callers
Method
getByActiveCardKey
通过活跃卡片键查询(同消息卡片复用)
src/tools/auto-auth.ts:376
↓ 2 callers
Function
getChatInfo
(params: { cfg: ClawdbotConfig; chatId: string; accountId?: string; })
src/core/chat-info-cache.ts:155
↓ 2 callers
Function
getDefaultLarkAccountId
(cfg: ClawdbotConfig)
src/core/accounts.ts:90
↓ 2 callers
Function
getDmScopeFixCommand
(cfg: ClawdbotConfig)
src/core/security-check.ts:104
↓ 2 callers
Function
getFirstAccount
(config: ClawdbotConfig)
src/tools/helpers.ts:127
↓ 2 callers
Function
getInputFieldName
(questionIndex: number)
src/tools/ask-user-question.ts:178
↓ 2 callers
Function
getLarkConfig
Extract the `channels.feishu` section from the top-level config.
src/core/accounts.ts:28
↓ 2 callers
Function
getLarkCredentials
(feishuCfg?: FeishuConfig)
src/core/accounts.ts:209
↓ 2 callers
Function
getMasterKey
* Load or create the 32-byte master key. * * On first run, generates a random key and writes it to disk (mode 0600). * On subsequent runs, reads th
src/core/token-store.ts:145
↓ 2 callers
Function
getMessageFeishu
(params: { cfg: ClawdbotConfig; messageId: string; accountId?: string; /** When true, merge_forward co
src/messaging/shared/message-lookup.ts:66
↓ 2 callers
Function
getOrCreateCache
(accountId: string)
src/tools/oapi/im/user-name-uat.ts:35
↓ 2 callers
Function
getPermissionPriority
* Permission priority for sorting. * Lower number = higher priority. * - read: 1 (highest) * - write: 2 * - other / both read+write: 3 (lowest)
src/core/permission-url.ts:22
↓ 2 callers
Function
getWin32MasterKey
()
src/core/token-store.ts:244
↓ 2 callers
Function
handleBotMembershipEvent
( ctx: MonitorContext, data: unknown, action: 'added' | 'removed', )
src/channel/event-handlers.ts:221
↓ 2 callers
Method
has
(openId: string)
src/messaging/inbound/user-name-cache-store.ts:26
↓ 2 callers
Function
hasActiveAppAuthForMessage
* 检查指定消息上下文是否有未完成的应用权限授权流程。 * 检查两个来源: * 1. authBatches 中的 app auth entry(collecting/executing 阶段) * 2. appAuthFlows 中的活跃流(卡片已发送,等待用户点击"已完成")
src/tools/auto-auth.ts:409
↓ 2 callers
Function
invalidateAppScopeCache
(appId: string)
src/core/app-scope-checker.ts:54
↓ 2 callers
Function
isCardTableLimitError
(err: unknown)
src/card/card-error.ts:126
↓ 2 callers
Function
isLikelyAbortText
(text: string)
src/channel/abort-detect.ts:99
↓ 2 callers
Function
isLocalMediaPath
(value: string)
src/messaging/outbound/media-url-utils.ts:39
↓ 2 callers
Function
isMessageExpired
(createTimeStr: string | undefined, expiryMs: number = DEFAULT_EXPIRY_MS)
src/messaging/inbound/dedup.ts:44
↓ 2 callers
Function
isPrivateIP
* Check whether an IP address belongs to a private or reserved range. * * Blocks: 127.0.0.0/8, 10.0.0.0/8, 172.16.0.0/12, 192.168.0.0/16, * 169.254
src/messaging/outbound/media.ts:869
↓ 2 callers
Function
isTerminalMessageApiCode
(code: unknown)
src/core/message-unavailable.ts:37
↓ 2 callers
Function
isThreadCapableGroup
(params: { cfg: ClawdbotConfig; chatId: string; accountId?: string; })
src/core/chat-info-cache.ts:139
↓ 2 callers
Function
isWindowsAbsolutePath
(value: string)
src/messaging/outbound/media-url-utils.ts:35
↓ 2 callers
Function
listReactionsFeishu
(params: { cfg: OpenClawConfig; messageId: string; emojiType?: string; accountId?: string; })
src/messaging/outbound/reactions.ts:387
↓ 2 callers
Function
makeDedupKey
计算去重 key(chatId + messageId + 有序 scopes)。
src/tools/auto-auth.ts:267
↓ 2 callers
Function
markMessageUnavailable
(params: { messageId: string; apiCode: TerminalMessageApiCode; operation?: string; })
src/core/message-unavailable.ts:41
↓ 2 callers
Function
maskToken
(token: string)
src/core/token-store.ts:66
↓ 2 callers
Function
matchesAnyPattern
* Check whether a string matches any of the given patterns. * Supports trailing `*` as a simple wildcard.
src/core/agent-config.ts:165
↓ 2 callers
Function
mentionedBot
(ctx: MessageContext)
src/messaging/inbound/mention.ts:33
↓ 2 callers
Function
mergeFeishuAccountConfig
Generic Feishu account config merge.
src/channel/config-adapter.ts:20
↓ 2 callers
Function
monitorSingleAccount
* Start monitoring a single Feishu account. * * Creates a LarkClient, probes bot identity, registers event handlers, * and starts a WebSocket conne
src/channel/monitor.ts:42
↓ 2 callers
Function
nameResolver
(openId: string)
src/tools/oapi/im/format-messages.ts:177
↓ 2 callers
Function
needsDmScopeFix
(cfg: ClawdbotConfig)
src/core/security-check.ts:97
↓ 2 callers
Function
normalizeCalendarTimeValue
(value: unknown)
src/tools/oapi/calendar/event.ts:449
↓ 2 callers
Function
parseAllowFromInput
(raw: string)
src/channel/onboarding-config.ts:98
↓ 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:267
↓ 2 callers
Function
readAllowFromStore
* Read the pairing allowFrom store for the Feishu channel via the SDK runtime.
src/messaging/inbound/gate.ts:69
↓ 2 callers
Function
readConfig
()
bin/openclaw-lark.js:221
↓ 2 callers
Function
readFormTextField
(formValue: Record<string, unknown>, fieldName: string)
src/tools/ask-user-question.ts:451
↓ 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:289
↓ 2 callers
Method
remove
只需 operationId 即可原子清理所有索引
src/tools/auto-auth.ts:303
↓ 2 callers
Function
removeTypingIndicator
(params: { cfg: OpenClawConfig; state: TypingIndicatorState; accountId?: string; })
src/messaging/outbound/typing.ts:140
↓ 2 callers
Method
requireCredentials
Assert credentials exist or throw.
src/core/lark-client.ts:429
↓ 2 callers
Function
resolveBrand
Map a `LarkBrand` to the SDK `domain` parameter.
src/core/lark-client.ts:77
↓ 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
resolveMentions
(text: string, ctx: ConvertContext)
src/messaging/converters/content-converter.ts:114
↓ 2 callers
Function
resolveTimeRange
解析时间参数,返回秒级时间戳字符串
src/tools/oapi/im/message-read.ts:58
↓ 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
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:196
↓ 2 callers
Function
safeFileUrlToPath
(fileUrl: string)
src/messaging/outbound/media-url-utils.ts:44
↓ 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:86
↓ 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:239
↓ 2 callers
Function
setFeishuGroupAllowFrom
(cfg: ClawdbotConfig, groupAllowFrom: string[])
src/channel/onboarding-config.ts:68
↓ 2 callers
Function
setStoredToken
(token: StoredUAToken)
src/core/token-store.ts:333
↓ 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
stripReasoningTags
(text: string)
src/card/builder.ts:141
↓ 2 callers
Function
toBrand
Coerce a domain string to `LarkBrand`, defaulting to `"feishu"`.
src/core/accounts.ts:51
↓ 2 callers
Function
toCardKit2
(card: FeishuCard)
src/card/builder.ts:634
↓ 2 callers
Function
triggerOnboarding
(params: { cfg: ClawdbotConfig; userOpenId: string; accountId: string; })
src/tools/onboarding-auth.ts:44
↓ 2 callers
Method
tryRecord
* Try to record a message ID. * * @param id Unique message identifier (e.g. Feishu `message_id`). * @param scope Optional scope prefix (e.g
src/messaging/inbound/dedup.ts:77
↓ 2 callers
Function
uploadAndSendMediaLark
(params: { cfg: OpenClawConfig; to: string; mediaUrl?: string; mediaBuffer?: Buffer; fileName?: stri
src/messaging/outbound/media.ts:740
↓ 2 callers
Function
uploadImageLark
(params: { cfg: OpenClawConfig; image: Buffer | string; imageType?: 'message' | 'avatar'; accountId?:
src/messaging/outbound/media.ts:281
↓ 2 callers
Function
validateLocalMediaRoots
(filePath: string, localRoots: readonly string[] | undefined)
src/messaging/outbound/media-url-utils.ts:71
↓ 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
← previous
next →
201–300 of 864, ranked by callers