Code
Hub
Workspaces
Following
Trending
Connect
MCP
copy
Create free account
hub
/
github.com/BytePioneer-AI/weixin-agent-gateway
/ functions
Functions
292 in github.com/BytePioneer-AI/weixin-agent-gateway
⨍
Functions
292
◇
Types & classes
52
↓ 18 callers
Function
sendReply
发送回复消息
src/messaging/slash-commands.ts:49
↓ 14 callers
Function
log
(msg: string)
src/channel.ts:229
↓ 13 callers
Function
log
(msg)
cli.mjs:68
↓ 10 callers
Function
setBackendSelection
( accountId: string, peerId: string, backendId: WeixinBackendId, )
src/router/backend-selection.ts:88
↓ 10 callers
Function
warn
(msg)
cli.mjs:72
↓ 9 callers
Function
resolveStateDir
()
src/storage/state-dir.ts:5
↓ 9 callers
Function
run
(cmd, { silent = true, cwd } = {})
cli.mjs:84
↓ 9 callers
Method
runLightweightConversation
( input: WeixinLightweightBackendInput, )
src/backends/lightweight/acp-subprocess-client.ts:556
↓ 8 callers
Function
normalizeWeixinBackendId
(raw: string)
src/backends/contracts.ts:106
↓ 8 callers
Function
parseOpenClawVersion
(version: string)
src/compat.ts:12
↓ 7 callers
Function
sendMessageWeixin
(params: { to: string; text: string; opts: WeixinApiOptions & { contextToken?: string }; })
src/messaging/send.ts:91
↓ 6 callers
Function
loadWeixinAccount
(accountId: string)
src/auth/accounts.ts:136
↓ 5 callers
Function
apiFetch
* Common fetch wrapper: POST JSON to a Weixin API endpoint with timeout + abort. * Returns the raw response text on success; throws on HTTP error or
src/api/api.ts:92
↓ 5 callers
Function
buildBaseInfo
()
src/api/api.ts:47
↓ 5 callers
Function
commandExists
(bin)
cli.mjs:95
↓ 5 callers
Function
compareVersions
(left, right)
scripts/publish-npm.mjs:157
↓ 5 callers
Function
redactBody
(body: string | undefined, maxLen = DEFAULT_BODY_MAX_LEN)
src/util/redact.ts:28
↓ 5 callers
Function
sleep
(ms: number, signal?: AbortSignal)
src/monitor/monitor.ts:210
↓ 4 callers
Function
contextTokenKey
(accountId: string, userId: string)
src/messaging/inbound.ts:22
↓ 4 callers
Function
createLightweightTextReplyBudgeter
(params: { sendText: (text: string) => Promise<void>; })
src/transport/weixin/outbound/lightweight-text-budget.ts:24
↓ 4 callers
Function
downloadAndDecryptBuffer
( encryptedQueryParam: string, aesKeyBase64: string, cdnBaseUrl: string, label: string, )
src/cdn/pic-decrypt.ts:58
↓ 4 callers
Function
error
(msg)
cli.mjs:76
↓ 4 callers
Function
isHostVersionSupported
(hostVersion: string)
src/compat.ts:33
↓ 4 callers
Function
listIndexedWeixinAccountIds
()
src/auth/accounts.ts:54
↓ 4 callers
Function
normalizeProgressText
(text: string)
src/backends/lightweight/acp-subprocess-client.ts:60
↓ 4 callers
Function
normalizeText
(text: string | undefined)
src/transport/weixin/outbound/lightweight-text-budget.ts:6
↓ 4 callers
Function
parseCommandArgs
(raw: string)
src/backends/lightweight/acp-subprocess-client.ts:90
↓ 4 callers
Function
readFirstEnv
(names: string[])
src/backends/lightweight/acp-subprocess-client.ts:82
↓ 4 callers
Function
redactToken
(token: string | undefined, prefixLen = DEFAULT_TOKEN_PREFIX_LEN)
src/util/redact.ts:18
↓ 4 callers
Method
resetState
()
src/backends/lightweight/acp-subprocess-client.ts:412
↓ 4 callers
Function
resolveAccountPath
(accountId: string)
src/auth/accounts.ts:105
↓ 4 callers
Function
resolveAccountsDir
()
src/auth/accounts.ts:101
↓ 4 callers
Function
resolveWeixinAccount
( cfg: OpenClawConfig, accountId?: string | null, )
src/auth/accounts.ts:371
↓ 4 callers
Function
resolveWeixinPreferredTmpDir
()
src/util/openclaw-tmp-dir.ts:25
↓ 4 callers
Function
writeLog
(level: string, message: string, accountId?: string)
src/util/logger.ts:86
↓ 3 callers
Function
deriveRawAccountId
(normalizedId: string)
src/auth/accounts.ts:31
↓ 3 callers
Function
getBackendSelection
( accountId: string, peerId: string, )
src/router/backend-selection.ts:74
↓ 3 callers
Function
getContextToken
(accountId: string, userId: string)
src/messaging/inbound.ts:101
↓ 3 callers
Function
getMimeFromFilename
(filename: string)
src/media/mime.ts:56
↓ 3 callers
Function
isLoginFresh
(login: ActiveLogin)
src/auth/login-qr.ts:42
↓ 3 callers
Function
isWeixinBackendId
(value: string)
src/backends/contracts.ts:96
↓ 3 callers
Function
isWindows
()
cli.mjs:80
↓ 3 callers
Function
loadConfigRouteTag
(accountId?: string)
src/auth/accounts.ts:265
↓ 3 callers
Function
makeSelectionKey
(accountId: string, peerId: string)
src/router/backend-selection.ts:37
↓ 3 callers
Function
normalizeErrorMessage
(err: unknown)
src/backends/lightweight/acp-subprocess-client.ts:161
↓ 3 callers
Function
parseSemver
(version)
scripts/publish-npm.mjs:106
↓ 3 callers
Function
printManualAcpInstallHelp
({ label, packageName, envVarName, binName })
cli.mjs:104
↓ 3 callers
Function
readBackendSelectionFile
()
src/router/backend-selection.ts:41
↓ 3 callers
Function
readSyncBufFile
(filePath: string)
src/storage/sync-buf.ts:37
↓ 3 callers
Function
resolveAccountIndexPath
()
src/auth/accounts.ts:49
↓ 3 callers
Function
resolveContextTokenFilePath
(accountId: string)
src/messaging/inbound.ts:26
↓ 3 callers
Function
resolveDebugModePath
()
src/messaging/debug-mode.ts:21
↓ 3 callers
Function
resolveFrameworkAllowFromPath
(accountId: string)
src/auth/pairing.ts:36
↓ 3 callers
Function
resolveWeixinStateDir
()
src/auth/accounts.ts:45
↓ 3 callers
Function
runNpm
(args, options = {})
scripts/publish-npm.mjs:53
↓ 3 callers
Function
sendMediaItems
* Send one or more MessageItems (optionally preceded by a text caption) downstream. * Each item is sent as its own request so that item_list always h
src/messaging/send.ts:125
↓ 3 callers
Function
sendText
(text: string | undefined)
src/transport/weixin/outbound/lightweight-text-budget.ts:30
↓ 3 callers
Function
uploadMediaToCdn
* Common upload pipeline: read file → hash → gen aeskey → getUploadUrl → uploadBufferToCdn → return info.
src/cdn/upload.ts:52
↓ 3 callers
Function
writePackageJson
(dir, pkg)
scripts/publish-npm.mjs:48
↓ 2 callers
Function
assertSessionActive
(accountId: string)
src/api/session-guard.ts:43
↓ 2 callers
Function
buildCdnDownloadUrl
(encryptedQueryParam: string, cdnBaseUrl: string)
src/cdn/cdn-url.ts:6
↓ 2 callers
Function
clearBackendSelection
(accountId: string, peerId: string)
src/router/backend-selection.ts:103
↓ 2 callers
Function
clearStaleAccountsForUserId
( currentAccountId: string, userId: string, onClearContextTokens?: (accountId: string) => void, )
src/auth/accounts.ts:228
↓ 2 callers
Function
createLogger
Creates a logger instance, optionally bound to a specific account.
src/util/logger.ts:120
↓ 2 callers
Function
downloadRemoteImageToTemp
(url: string, destDir: string)
src/cdn/upload.ts:30
↓ 2 callers
Function
ensureAcpWrapperInstalled
({ label, packageName, binName, envVarName })
cli.mjs:121
↓ 2 callers
Function
fetchCdnBytes
* Download raw bytes from the CDN (no decryption).
src/cdn/pic-decrypt.ts:8
↓ 2 callers
Function
fetchQRCode
(apiBaseUrl: string, botType: string)
src/auth/login-qr.ts:55
↓ 2 callers
Function
generateClientId
()
src/messaging/send.ts:10
↓ 2 callers
Function
generateId
(prefix: string)
src/util/random.ts:7
↓ 2 callers
Function
getExtensionFromMime
(mimeType: string)
src/media/mime.ts:62
↓ 2 callers
Function
getRemainingPauseMs
(accountId: string)
src/api/session-guard.ts:31
↓ 2 callers
Function
help
()
cli.mjs:405
↓ 2 callers
Function
incrementVersion
(version, bumpType)
scripts/publish-npm.mjs:180
↓ 2 callers
Function
install
({ pluginSpec = DEFAULT_PLUGIN_SPEC, localSource = false, } = {})
cli.mjs:389
↓ 2 callers
Function
isImplementedWeixinBackendId
( value: WeixinBackendId, )
src/backends/contracts.ts:100
↓ 2 callers
Function
isLocalFilePath
Returns true when mediaUrl refers to a local filesystem path (absolute or relative).
src/channel.ts:41
↓ 2 callers
Function
isMediaItem
(item: MessageItem)
src/messaging/inbound.ts:147
↓ 2 callers
Function
isWindows
()
src/backends/lightweight/acp-subprocess-client.ts:56
↓ 2 callers
Function
joinTextParts
(parts: string[])
src/transport/weixin/outbound/lightweight-text-budget.ts:11
↓ 2 callers
Function
listWeixinAccountIds
(_cfg: OpenClawConfig)
src/auth/accounts.ts:366
↓ 2 callers
Function
loadState
()
src/messaging/debug-mode.ts:25
↓ 2 callers
Method
on
(event: "end", cb: () => void)
src/vendor.d.ts:19
↓ 2 callers
Method
queueProgress
(progress: WeixinLightweightBackendProgress)
src/backends/lightweight/acp-subprocess-client.ts:224
↓ 2 callers
Function
readAccountFile
(filePath: string)
src/auth/accounts.ts:124
↓ 2 callers
Function
redactUrl
(rawUrl: string)
src/util/redact.ts:38
↓ 2 callers
Function
registerWeixinAccountId
(accountId: string)
src/auth/accounts.ts:68
↓ 2 callers
Function
resolveAccountsDir
()
src/storage/sync-buf.ts:9
↓ 2 callers
Function
resolveBackendSelectionDir
()
src/router/backend-selection.ts:29
↓ 2 callers
Function
resolveBackendSelectionPath
()
src/router/backend-selection.ts:33
↓ 2 callers
Method
resolveCommand
()
src/backends/lightweight/acp-subprocess-client.ts:325
↓ 2 callers
Function
resolveCommandPath
(command: string)
src/backends/lightweight/acp-subprocess-client.ts:65
↓ 2 callers
Method
resolveCwd
()
src/backends/lightweight/acp-subprocess-client.ts:343
↓ 2 callers
Function
resolveMainLogPath
()
src/util/logger.ts:63
↓ 2 callers
Function
resolveNpmInvocation
(args)
scripts/publish-npm.mjs:11
↓ 2 callers
Function
resolveOutboundAccountId
(cfg: OpenClawConfig, to: string)
src/transport/weixin/outbound/account-selection.ts:8
↓ 2 callers
Function
safeKey
* Sanitize a channel/account key for safe use in filenames (mirrors core safeChannelKey).
src/auth/pairing.ts:23
↓ 2 callers
Function
saveWeixinAccount
( accountId: string, update: { token?: string; baseUrl?: string; userId?: string }, )
src/auth/accounts.ts:162
↓ 2 callers
Function
sendFileMessageWeixin
(params: { to: string; text: string; fileName: string; uploaded: UploadedFileInfo; opts: WeixinApiOp
src/messaging/send.ts:247
↓ 2 callers
Function
sendImageMessageWeixin
(params: { to: string; text: string; uploaded: UploadedFileInfo; opts: WeixinApiOptions & { contextTok
src/messaging/send.ts:182
next →
1–100 of 292, ranked by callers