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
↓ 243 callers
Function
set
(partial: Partial<ChatLikeState> | ((s: ChatLikeState) => Partial<ChatLikeState>))
tests/unit/chat-history-actions.test.ts:203
↓ 216 callers
Method
get
(accountId: string)
electron/services/secrets/secret-store.ts:5
↓ 201 callers
Function
cn
(...inputs: ClassValue[])
src/lib/utils.ts:51
↓ 198 callers
Function
get
()
tests/unit/chat-history-actions.test.ts:207
↓ 185 callers
Method
set
(secret: ProviderSecret)
electron/services/secrets/secret-store.ts:6
↓ 129 callers
Function
invokeHost
( module: M, action: A, ...payloadArgs: HostApiPayloadArgs<M, A> )
src/lib/host-api-client.ts:13
↓ 103 callers
Method
on
(channel: string, callback: (...args: unknown[]) => void)
src/types/electron.d.ts:10
↓ 84 callers
Method
resolve
(moduleName: string, actionName: string)
electron/main/ipc/host-invoke.ts:60
↓ 64 callers
Function
isRecord
(value: unknown)
electron/services/payload-utils.ts:3
↓ 63 callers
Method
emit
(event: string, ...args: unknown[])
tests/unit/gateway-ws-client.test.ts:33
↓ 63 callers
Method
rpc
* Make an RPC call to the Gateway * Uses OpenClaw protocol format: { type: "req", id: "...", method: "...", params: {...} }
electron/gateway/manager.ts:867
↓ 58 callers
Function
isPlainRecord
(value: unknown)
electron/utils/openclaw-auth.ts:1914
↓ 55 callers
Function
writeOpenClawJson
(config: unknown)
tests/unit/openclaw-auth.test.ts:48
↓ 53 callers
Method
delete
(accountId: string)
electron/services/secrets/secret-store.ts:7
↓ 52 callers
Function
readOpenClawJson
()
tests/unit/openclaw-auth.test.ts:54
↓ 44 callers
Function
fsPath
(filePath: string)
electron/utils/plugin-install.ts:30
↓ 43 callers
Function
installIpcMocks
( app: ElectronApplication, config: IpcMockConfig, )
tests/e2e/fixtures/electron.ts:224
↓ 40 callers
Function
closeElectronApp
(app: ElectronApplication, timeoutMs = 5_000)
tests/e2e/fixtures/electron.ts:80
↓ 39 callers
Function
readString
(value: unknown)
electron/gateway/chat-runtime-events.ts:7
↓ 38 callers
Function
getStableWindow
(app: ElectronApplication)
tests/e2e/fixtures/electron.ts:51
↓ 36 callers
Function
readOpenClawConfig
()
electron/utils/channel-config.ts:464
↓ 34 callers
Function
withConfigLock
(fn: () => Promise<T>)
electron/utils/config-mutex.ts:71
↓ 32 callers
Function
normWin
(p)
scripts/after-pack.cjs:33
↓ 31 callers
Function
sanitizeConfig
* Standalone mirror of the sanitization logic in openclaw-auth.ts. * Uses the same blocklist approach as the production code.
tests/unit/sanitize-config.test.ts:112
↓ 30 callers
Function
completeSetup
(page: Page)
tests/e2e/fixtures/electron.ts:214
↓ 30 callers
Method
reload
* Ask the Gateway process to reload config in-place when possible. * Falls back to restart on unsupported platforms or signaling failures.
electron/gateway/manager.ts:652
↓ 30 callers
Function
writeConfig
(data: unknown)
tests/unit/sanitize-config.test.ts:20
↓ 29 callers
Function
getOpenClawConfigDir
()
electron/utils/paths.ts:53
↓ 28 callers
Method
getStatus
* Get current update status
electron/main/updater.ts:103
↓ 27 callers
Function
readConfig
()
tests/unit/sanitize-config.test.ts:24
↓ 26 callers
Function
writeOpenClawConfig
(config: OpenClawConfig)
electron/utils/channel-config.ts:481
↓ 23 callers
Function
extractText
(message: RawMessage | unknown)
src/pages/Chat/message-utils.ts:286
↓ 23 callers
Method
listAccounts
()
electron/services/providers/provider-service.ts:104
↓ 23 callers
Function
makeAccount
(overrides: Partial<ProviderAccount> = {})
tests/unit/provider-service-stale-cleanup.test.ts:83
↓ 23 callers
Function
normWin
(p)
scripts/bundle-openclaw.mjs:29
↓ 23 callers
Function
setPlatform
(platform: string)
tests/unit/win-shell.test.ts:10
↓ 23 callers
Function
stableStringify
(value: unknown)
tests/e2e/chat-run-state-events.spec.ts:5
↓ 22 callers
Method
clear
()
electron/gateway/connection-monitor.ts:106
↓ 22 callers
Function
createHistoryActions
( set: ChatSet, get: ChatGet, )
src/stores/chat/history-actions.ts:52
↓ 22 callers
Function
stableStringify
(value: unknown)
tests/e2e/chat-task-visualizer.spec.ts:7
↓ 21 callers
Function
ensureProviderStoreMigrated
()
electron/services/providers/provider-migration.ts:11
↓ 21 callers
Function
getClawXProviderStore
()
electron/services/providers/store-instance.ts:5
↓ 21 callers
Function
listAgentsSnapshot
()
electron/utils/agent-config.ts:545
↓ 21 callers
Function
makeHarness
(initial?: Partial<ChatLikeState>)
tests/unit/chat-history-actions.test.ts:185
↓ 21 callers
Function
respond
(id: unknown, data: unknown)
tests/e2e/provider-lifecycle.spec.ts:144
↓ 20 callers
Function
flushAsyncImports
()
tests/unit/gateway-events.test.ts:29
↓ 20 callers
Function
sanitizeOpenClawConfig
()
electron/utils/openclaw-auth.ts:2755
↓ 19 callers
Function
clearHistoryPoll
()
src/stores/chat.ts:329
↓ 19 callers
Function
getMessageText
Extract plain text from message content (string or content blocks)
src/stores/chat/helpers.ts:423
↓ 19 callers
Method
restart
* Restart Gateway process
electron/gateway/manager.ts:546
↓ 19 callers
Method
setStatus
* Update status and emit event
electron/gateway/manager.ts:1407
↓ 19 callers
Function
toMs
Normalize a timestamp to milliseconds. Handles both seconds and ms.
src/stores/chat.ts:76
↓ 18 callers
Function
cleanupAgentsSymlinkedSkills
(opts: CleanupOptions = {})
electron/gateway/skills-symlink-cleanup.ts:166
↓ 18 callers
Function
extractRawFilePaths
* Extract raw file paths from message text. * Detects absolute paths (Unix: / or ~/, Windows: C:\ etc.) ending with common file extensions. * Handle
src/stores/chat/helpers.ts:795
↓ 18 callers
Function
getMessageText
Extract plain text from message content (string or content blocks)
src/stores/chat.ts:837
↓ 18 callers
Function
sendMainWindowEvent
(channel: string, payload: unknown)
electron/main/index.ts:139
↓ 18 callers
Function
validateApiKeyWithProvider
( providerType: string, apiKey: string, options?: { baseUrl?: string; apiProtocol?: string }, )
electron/services/providers/provider-validation.ts:353
↓ 17 callers
Method
getDiagnostics
()
electron/gateway/manager.ts:283
↓ 17 callers
Function
getProviderConfig
( type: string )
electron/utils/provider-registry.ts:47
↓ 17 callers
Function
handleRuntimeEventState
( set: ChatSet, get: ChatGet, event: Record<string, unknown>, resolvedState: string, runId: string,
src/stores/chat/runtime-event-handlers.ts:27
↓ 17 callers
Function
isInternalMessage
True for internal plumbing messages that should never be shown in the UI.
src/stores/chat/helpers.ts:1540
↓ 17 callers
Function
saveChannelConfig
( channelType: string, config: ChannelConfigData, accountId?: string, )
electron/utils/channel-config.ts:830
↓ 17 callers
Function
writeOpenClawJson
(config: unknown)
tests/unit/agent-config.test.ts:33
↓ 16 callers
Function
fsPath
(filePath: string)
electron/gateway/config-sync.ts:7
↓ 16 callers
Function
readNonEmptyString
(value: unknown)
electron/services/channels-api.ts:508
↓ 16 callers
Function
saveProviderKeyToOpenClaw
( provider: string, apiKey: string, agentId?: string )
electron/utils/openclaw-auth.ts:943
↓ 16 callers
Function
toArray
(value)
harness/src/specs.mjs:114
↓ 16 callers
Function
toStringValue
(value: unknown)
electron/services/skills/local-skill-service.ts:157
↓ 16 callers
Function
withClawXToolDefaults
(config: T)
tests/unit/sanitize-config.test.ts:29
↓ 15 callers
Function
getApiKey
(providerId: string)
electron/utils/secure-storage.ts:57
↓ 15 callers
Function
getProviderService
()
electron/services/providers/provider-service.ts:627
↓ 15 callers
Function
getSetting
(key: K)
electron/utils/store.ts:130
↓ 15 callers
Function
makeHarness
(initial?: Partial<ChatLikeState>)
tests/unit/chat-runtime-event-handlers.test.ts:77
↓ 15 callers
Function
quoteForCmd
(value: string)
electron/utils/win-shell.ts:22
↓ 15 callers
Function
requireString
(payload: unknown, key: string)
electron/services/channels-api.ts:161
↓ 15 callers
Function
resolveSupportedLanguage
( locale: string | null | undefined, fallback: LanguageCode = 'en', )
shared/language.ts:11
↓ 15 callers
Function
stableStringify
(value: unknown)
tests/e2e/chat-file-changes.spec.ts:5
↓ 14 callers
Function
pad2
(value: number)
src/pages/Cron/index.tsx:335
↓ 14 callers
Function
parseUsageEntriesFromJsonl
( content: string, context: { sessionId: string; agentId: string }, limit?: number, )
electron/utils/token-usage-core.ts:260
↓ 14 callers
Function
readOpenClawJson
()
electron/utils/openclaw-auth.ts:732
↓ 14 callers
Function
resolveStoredChannelType
(channelType: string)
electron/services/channels-api.ts:173
↓ 14 callers
Method
run
( method: string, params: unknown, timeoutMs: number | undefined, runner: GatewayRpcRunner,
electron/gateway/rpc-backpressure.ts:42
↓ 14 callers
Function
stableStringify
(value: unknown)
tests/e2e/chat-skill-trigger-i18n.spec.ts:5
↓ 14 callers
Function
writeOpenClawJson
(config: Record<string, unknown>)
electron/utils/openclaw-auth.ts:850
↓ 13 callers
Function
account
(overrides: Partial<ProviderAccount>)
tests/unit/model-options.test.ts:15
↓ 13 callers
Function
assignChannelAccountToAgent
( agentId: string, channelType: string, accountId: string, )
electron/utils/agent-config.ts:767
↓ 13 callers
Method
getLegacyProvider
* @deprecated Use getAccount(accountId).
electron/services/providers/provider-service.ts:545
↓ 13 callers
Function
getOpenClawDir
()
electron/utils/paths.ts:116
↓ 13 callers
Function
getOpenClawResolvedDir
()
electron/utils/paths.ts:128
↓ 13 callers
Function
hasPendingToolUse
* True when an assistant message is still waiting on a tool result, i.e. it * represents an intermediate tool-use turn rather than a finished reply.
src/stores/chat/helpers.ts:1823
↓ 13 callers
Function
makeFile
( name: string, options?: { path?: string; webkitRelativePath?: string; type?: string; siz
tests/unit/collect-dropped-files.test.ts:8
↓ 13 callers
Function
normalizeSkillKey
(value?: string)
src/stores/skills.ts:37
↓ 13 callers
Function
proxyAwareFetch
( input: string | URL, init?: RequestInit )
electron/utils/proxy-fetch.ts:7
↓ 13 callers
Function
renderChatInput
(onSend = vi.fn())
tests/unit/chat-input.test.tsx:122
↓ 13 callers
Function
runCachedPrelaunchMaintenanceTask
( taskName: PrelaunchMaintenanceTaskName, cacheKey: CacheKeyInput, task: MaintenanceTask, options: { c
electron/gateway/prelaunch-maintenance-cache.ts:118
↓ 13 callers
Function
stableStringify
(value: unknown)
tests/e2e/openclaw-dreams.spec.ts:4
↓ 13 callers
Function
syncProviderConfigToOpenClaw
( provider: string, modelId: string | undefined, override: RuntimeProviderConfigOverride )
electron/utils/openclaw-auth.ts:1987
↓ 12 callers
Function
clearHistoryPoll
()
src/stores/chat/helpers.ts:74
↓ 12 callers
Function
createProvider
(overrides: Partial<ProviderConfig> = {})
tests/unit/provider-runtime-sync.test.ts:92
↓ 12 callers
Function
deriveTaskSteps
({ messages, streamingMessage, streamingTools, omitLastStreamingMessageSegment = false, }: DeriveTaskS
src/pages/Chat/task-visualization.ts:468
next →
1–100 of 2,554, ranked by callers