Code
Hub
Workspaces
Following
Trending
Connect
MCP
copy
Create free account
hub
/
github.com/ValueCell-ai/ClawX
/ functions
Functions
2,554 in github.com/ValueCell-ai/ClawX
⨍
Functions
2,554
◇
Types & classes
376
↓ 8 callers
Function
isInternalAssistantReplyText
(text: string)
src/pages/Chat/message-utils.ts:181
↓ 8 callers
Function
isNum
(value: string)
src/pages/Cron/index.tsx:182
↓ 8 callers
Function
normalizeAppError
(err: unknown, details?: Record<string, unknown>)
src/lib/error-model.ts:94
↓ 8 callers
Function
normalizeProviderBaseUrl
( config: ProviderConfig, baseUrl?: string, apiProtocol?: string, )
electron/services/providers/provider-runtime-sync.ts:49
↓ 8 callers
Function
optionalString
(payload: unknown, key: string)
electron/services/channels-api.ts:168
↓ 8 callers
Function
resolveChatHistoryMaxChars
( rpc?: ChatHistoryRpc, )
src/stores/chat/history-rpc-params.ts:51
↓ 8 callers
Function
resolveStoredChannelType
(channelType: string)
electron/utils/channel-config.ts:207
↓ 8 callers
Function
respond
(id: unknown, data: unknown)
tests/e2e/channels-binding-regression.spec.ts:39
↓ 8 callers
Method
setLegacyProviderApiKey
* @deprecated Use secret-store APIs by accountId.
electron/services/providers/provider-service.ts:585
↓ 8 callers
Function
setSetting
( key: K, value: AppSettings[K] )
electron/utils/store.ts:138
↓ 8 callers
Function
shouldDeferRestart
(context: RestartDeferralContext)
electron/gateway/process-policy.ts:95
↓ 8 callers
Function
stripFirstRunSection
(content: string)
electron/utils/openclaw-workspace.ts:142
↓ 8 callers
Function
syncDeletedProviderToRuntime
( provider: ProviderConfig | null, providerId: string, gatewayManager?: GatewayManager, runtimeProvide
electron/services/providers/provider-runtime-sync.ts:578
↓ 8 callers
Function
toUiChannelType
(channelType: string)
electron/utils/channel-alias.ts:16
↓ 8 callers
Function
writeAgentAuthProfiles
(agentId: string, store: Record<string, unknown>)
tests/unit/openclaw-auth.test.ts:64
↓ 7 callers
Method
_getProviderInternal
Internal: resolve a single provider in the legacy ProviderConfig shape.
electron/services/providers/provider-service.ts:423
↓ 7 callers
Function
add
(part: string)
src/stores/gateway.ts:50
↓ 7 callers
Function
applyRuntimeEventToRuns
( currentRuns: Record<string, ChatRuntimeRunState>, event: ChatRuntimeEvent, )
src/stores/chat/runtime-graph.ts:87
↓ 7 callers
Function
applySnapshot
(snapshot: AgentsSnapshot | undefined)
src/stores/agents.ts:25
↓ 7 callers
Function
buildConfiguredModelOptions
( providerAccounts: ProviderAccount[], providerStatuses: ProviderWithKeyInfo[], providerVendors: Provide
src/lib/model-options.ts:137
↓ 7 callers
Function
clearErrorRecoveryTimer
()
src/stores/chat/helpers.ts:50
↓ 7 callers
Method
createAccount
(account: ProviderAccount, apiKey?: string)
electron/services/providers/provider-service.ts:346
↓ 7 callers
Function
createHostInvokeDispatcher
(registryOrServices: HostApiRegistry | HostServiceRegistry)
electron/main/ipc/host-invoke.ts:88
↓ 7 callers
Method
decide
(now = Date.now())
electron/gateway/restart-governor.ts:50
↓ 7 callers
Function
enrichWithCachedImages
* Restore _attachedFiles for messages loaded from history. * Handles: * 1. [media attached: path (mime) | path] patterns (attachment-button flow)
src/stores/chat/helpers.ts:1178
↓ 7 callers
Function
enrichWithToolCallAttachments
* Surface user-facing attachments declared in assistant tool calls (e.g. * `message` tool `attachments: [{ filePath }]`) on the calling turn itself.
src/stores/chat/helpers.ts:674
↓ 7 callers
Function
errorMessage
(error: unknown)
electron/services/skills-api.ts:41
↓ 7 callers
Function
extractMediaRefs
Extract media file refs from [media attached: <path> (<mime>) | ...] patterns
src/stores/chat/helpers.ts:486
↓ 7 callers
Function
extractSessionIdFromTranscriptFileName
(fileName: string)
electron/utils/token-usage-core.ts:17
↓ 7 callers
Function
fileExists
(p: string)
electron/utils/openclaw-workspace.ts:21
↓ 7 callers
Function
getGatewayStartupRecoveryAction
(options: { startupError: unknown; startupStderrLines: string[]; configRepairAttempted: boolean; attem
electron/gateway/startup-recovery.ts:132
↓ 7 callers
Function
getOpenClawSkillsDir
()
electron/utils/paths.ts:60
↓ 7 callers
Method
getVersion
* Get Gateway version info
electron/gateway/client.ts:316
↓ 7 callers
Function
initGatewayHandlers
()
tests/unit/gateway-bisection-0d794cd.test.ts:80
↓ 7 callers
Function
isGeneratingStatusNarration
(text: string)
src/pages/Chat/message-utils.ts:201
↓ 7 callers
Function
isToolOnlyMessage
(message: RawMessage | undefined)
src/stores/chat.ts:1938
↓ 7 callers
Function
isToolResultRole
(role: unknown)
src/stores/chat/helpers.ts:1521
↓ 7 callers
Function
isWechatChannelType
(channelType: string | null | undefined)
electron/utils/channel-alias.ts:20
↓ 7 callers
Function
listConfiguredChannels
()
electron/utils/channel-config.ts:1185
↓ 7 callers
Function
listSessionDerivedTargetOptions
(params: { channelType: string; accountId?: string; query?: string; })
electron/services/channels-api.ts:540
↓ 7 callers
Function
makeHarness
(initial?: Partial<ChatLikeState>)
tests/unit/chat-session-actions.test.ts:47
↓ 7 callers
Function
normalizeFallbackModels
(models?: string[])
src/components/settings/ProvidersSettings.tsx:81
↓ 7 callers
Function
parseCronSessionKey
(sessionKey: string)
src/stores/chat/cron-session-utils.ts:7
↓ 7 callers
Function
patchNsisExtractTemplate
(targetPath = EXTRACT_APP_PACKAGE_NSH)
scripts/patch-nsis-extract.mjs:135
↓ 7 callers
Function
pickStartupSessionFallback
( currentSessionKey: string, sessions: ChatSession[], )
src/stores/chat/session-selection.ts:20
↓ 7 callers
Function
quoteForPowerShell
(value: string)
electron/utils/openclaw-cli.ts:30
↓ 7 callers
Function
readAuthProfiles
(agentId = 'main')
electron/utils/openclaw-auth.ts:420
↓ 7 callers
Function
removeProviderKeyFromOpenClaw
( provider: string, agentId?: string )
electron/utils/openclaw-auth.ts:978
↓ 7 callers
Function
resetChatHistoryMaxCharsCache
()
src/stores/chat/history-rpc-params.ts:29
↓ 7 callers
Function
resolveProviderApiKeyForSave
(type: ProviderType | string, apiKey: string)
src/lib/providers.ts:272
↓ 7 callers
Function
resolveProxySettings
(settings: ProxySettings)
electron/utils/proxy.ts:43
↓ 7 callers
Function
resolveRuntimeProviderKey
(config: ProviderConfig)
electron/services/providers/provider-runtime-sync.ts:104
↓ 7 callers
Function
scheduleGatewayChannelSaveRefresh
(ctx: ChannelsApiContext, channelType: string, reason: string)
electron/services/channels-api.ts:994
↓ 7 callers
Method
setDefaultAccount
(accountId: string)
electron/services/providers/provider-service.ts:614
↓ 7 callers
Function
shouldDropMessageFromHistory
* History filtering must keep assistant tool-call turns even when their visible * text is internal narration (e.g. "生成中,稍等" + `image_generate`). Thos
src/stores/chat/helpers.ts:1565
↓ 7 callers
Function
statFile
(path: string)
src/lib/file-preview-client.ts:27
↓ 7 callers
Function
status
(id: string, hasKey = true)
tests/unit/model-options.test.ts:30
↓ 7 callers
Function
syncBuiltinChannelsWithPluginAllowlist
( currentConfig: OpenClawConfig, additionalBuiltinChannelIds: string[] = [], )
electron/utils/channel-config.ts:407
↓ 7 callers
Function
updateAgentModel
(agentId: string, modelRef: string | null)
electron/utils/agent-config.ts:662
↓ 6 callers
Function
applyLaunchAtStartupSetting
(enabled: boolean)
electron/main/launch-at-startup.ts:64
↓ 6 callers
Function
buildChannelTargetLabel
(baseLabel: string, value: string)
electron/services/channels-api.ts:410
↓ 6 callers
Function
collectQuickAccessSkills
(params: QuickAccessScanParams)
electron/utils/skill-quick-access.ts:308
↓ 6 callers
Function
computeChannelRuntimeStatus
( account: ChannelRuntimeAccountSnapshot, healthOverlay?: ChannelHealthOverlay, )
src/lib/channel-status.ts:80
↓ 6 callers
Function
computeLineStats
(file: GeneratedFile)
src/lib/generated-files.ts:377
↓ 6 callers
Method
debouncedRestart
* Debounced restart — coalesces multiple rapid restart requests into a * single restart after `delayMs` of inactivity. This prevents the * casc
electron/gateway/manager.ts:640
↓ 6 callers
Method
deleteAccount
(accountId: string)
electron/services/providers/provider-service.ts:389
↓ 6 callers
Method
deleteLegacyProviderApiKey
* @deprecated Use secret-store APIs by accountId.
electron/services/providers/provider-service.ts:601
↓ 6 callers
Function
ensureClawXIdentityFile
( workspaceDir: string, options: { createDir?: boolean } = {}, )
electron/utils/openclaw-workspace.ts:70
↓ 6 callers
Function
ensureOpenClawProviderAgentRuntimePins
()
electron/utils/openclaw-auth.ts:1894
↓ 6 callers
Function
extractFilePathsFromToolArgs
Extract local file paths declared in tool call arguments.
src/stores/chat/helpers.ts:549
↓ 6 callers
Function
extractMediaRefs
Extract media file refs from [media attached: <path> (<mime>) | ...] patterns
src/stores/chat.ts:900
↓ 6 callers
Function
fileExists
(path: string)
electron/utils/agent-config.ts:148
↓ 6 callers
Function
fixupPluginManifest
(targetDir: string)
electron/utils/plugin-install.ts:127
↓ 6 callers
Function
formatTokenCount
(value: number)
src/pages/Models/index.tsx:513
↓ 6 callers
Function
gatewayHistoryNeedsTranscriptHydration
(messages: RawMessage[])
src/stores/chat/history-transcript-merge.ts:92
↓ 6 callers
Method
getAccount
(accountId: string)
electron/services/providers/provider-service.ts:336
↓ 6 callers
Method
getAccountApiKey
Read an account's API key (clean alternative to getLegacyProviderApiKey).
electron/services/providers/provider-service.ts:502
↓ 6 callers
Function
getActiveOpenClawProviders
()
electron/utils/openclaw-auth.ts:2224
↓ 6 callers
Method
getCapabilitySnapshot
(summary?: GatewayHealthSummary)
electron/gateway/manager.ts:287
↓ 6 callers
Function
getChannelDisplayName
(value: string)
src/pages/Cron/index.tsx:269
↓ 6 callers
Function
getElectronApp
()
electron/utils/paths.ts:22
↓ 6 callers
Function
getMessageStopReason
(message: RawMessage | unknown)
src/stores/chat.ts:855
↓ 6 callers
Function
getProviderApiKeyFromOpenClaw
( provider: string, agentId?: string, )
electron/utils/openclaw-auth.ts:490
↓ 6 callers
Function
getProviderEnvVar
(type: string)
electron/utils/provider-registry.ts:31
↓ 6 callers
Function
getProviderIconUrl
(type: ProviderType | string)
src/lib/providers.ts:213
↓ 6 callers
Function
getProviderId
(payload: unknown, action: string)
electron/services/providers-api.ts:86
↓ 6 callers
Function
getProviderSecret
(accountId: string)
electron/services/secrets/secret-store.ts:72
↓ 6 callers
Function
getReconnectScheduleDecision
( context: ReconnectScheduleContext, )
electron/gateway/process-policy.ts:52
↓ 6 callers
Function
getSettingsStore
* Get the settings store instance (lazy initialization)
electron/utils/store.ts:116
↓ 6 callers
Function
git
(cwd: string, args: string[])
tests/unit/harness-git.test.ts:12
↓ 6 callers
Function
handleProxySettingsChange
()
electron/main/ipc-handlers.ts:163
↓ 6 callers
Function
isClawXDesktopSessionKey
(sessionKey: string)
src/stores/chat/session-key-utils.ts:17
↓ 6 callers
Function
isCurrentSession
()
src/stores/chat/history-actions.ts:72
↓ 6 callers
Function
isInvalidConfigSignal
(text: string)
electron/gateway/startup-recovery.ts:37
↓ 6 callers
Function
loadGatewayReloadPolicy
()
electron/gateway/reload-policy.ts:55
↓ 6 callers
Function
makeAgentSkill
(name: string)
tests/unit/skills-symlink-cleanup.test.ts:71
↓ 6 callers
Function
makeAttachedFile
* Build an AttachedFileMeta entry for a file ref, using cache if available.
src/stores/chat.ts:1225
↓ 6 callers
Function
measureSync
(timings: Record<string, number>, key: string, fn: () => T)
electron/gateway/config-sync.ts:140
↓ 6 callers
Function
normaliseEol
(s: string)
src/components/file-preview/FilePreviewBody.tsx:143
↓ 6 callers
Function
normalizeFallbackProviderIds
(ids?: string[])
src/components/settings/ProvidersSettings.tsx:62
← previous
next →
201–300 of 2,554, ranked by callers