Code
Hub
Workspaces
Following
Trending
Connect
MCP
copy
Create free account
hub
/
github.com/beita6969/ScienceClaw
/ functions
Functions
26,379 in github.com/beita6969/ScienceClaw
⨍
Functions
26,379
◇
Types & classes
983
↳
Endpoints
10
↓ 6 callers
Function
stripInlineStatus
(body: string)
src/auto-reply/reply/reply-inline.ts:33
↓ 6 callers
Function
stripKindPrefix
(raw: string)
src/infra/outbound/outbound-session.ts:76
↓ 6 callers
Function
stripTags
(value: string)
src/agents/tools/web-fetch-utils.ts:47
↓ 6 callers
Function
stripToolMessages
(messages: unknown[])
src/agents/tools/sessions-helpers.ts:128
↓ 6 callers
Function
stripUndefinedFields
(value: T)
src/discord/send.shared.ts:343
↓ 6 callers
Function
stubChannelPlugin
(params: { id: "discord" | "slack" | "telegram"; label: string; resolveAccount: (cfg: OpenClawConfig, ac
src/security/audit.test.ts:29
↓ 6 callers
Method
terminate
()
extensions/mattermost/src/mattermost/monitor-websocket.test.ts:47
↓ 6 callers
Function
testRegexWithBoundedInput
( regex: RegExp, input: string, maxWindow = SAFE_REGEX_TEST_WINDOW, )
src/security/safe-regex.ts:281
↓ 6 callers
Function
timeoutErrorMessage
()
src/cron/service/timer.ts:100
↓ 6 callers
Function
timingSafeEqual
* Timing-safe string comparison to prevent timing attacks.
extensions/voice-call/src/webhook-security.ts:122
↓ 6 callers
Function
toConfiguredBindingSpec
(params: { cfg: OpenClawConfig; channel: ConfiguredAcpBindingChannel; accountId: string; conversationI
src/acp/persistent-bindings.resolve.ts:89
↓ 6 callers
Function
toMessageResourceType
(messageType: string)
extensions/feishu/src/bot.ts:549
↓ 6 callers
Function
toNonEmptyString
(value: unknown)
src/agents/openai-ws-stream.ts:104
↓ 6 callers
Function
toOptionalString
(value: unknown)
src/infra/install-source-utils.ts:76
↓ 6 callers
Function
toTargetIdSet
(values: readonly string[])
src/cli/command-secret-targets.ts:35
↓ 6 callers
Function
tokenize
(text: string)
src/memory/mmr.ts:32
↓ 6 callers
Function
touchSession
(session: AcpSession, nowMs: number)
src/acp/session.ts:31
↓ 6 callers
Function
trimOrUndefined
(value?: string | null)
extensions/bluebubbles/src/monitor-processing.ts:74
↓ 6 callers
Function
trimToUndefined
(value: string | undefined)
extensions/voice-call/src/providers/tts-openai.ts:69
↓ 6 callers
Function
truncateChatHistoryText
(text: string)
src/gateway/server-methods/chat.ts:265
↓ 6 callers
Function
unsetEnv
(vars: string[])
src/agents/models-config.e2e-harness.ts:47
↓ 6 callers
Function
unsubscribe
()
src/agents/pi-embedded-subscribe.ts:646
↓ 6 callers
Function
unwrapKnownDispatchWrapperInvocation
(argv: string[])
src/infra/exec-wrapper-resolution.ts:418
↓ 6 callers
Function
unwrapMessage
(message: proto.IMessage | undefined)
src/web/inbound/extract.ts:12
↓ 6 callers
Function
updateBrowserRegistry
(entry: SandboxBrowserRegistryEntry)
src/agents/sandbox/registry.ts:169
↓ 6 callers
Function
updateFooter
()
src/tui/tui.ts:742
↓ 6 callers
Function
updateHeader
()
src/tui/tui.ts:568
↓ 6 callers
Function
updateIrcAccountConfig
( cfg: CoreConfig, accountId: string, patch: Partial<IrcAccountConfig>, )
extensions/irc/src/onboarding.ts:58
↓ 6 callers
Function
updateMattermostPost
( client: MattermostClient, postId: string, params: { message?: string; props?: Record<string, u
extensions/mattermost/src/mattermost/client.ts:220
↓ 6 callers
Function
updateRegistry
(entry: SandboxRegistryEntry)
src/agents/sandbox/registry.ts:146
↓ 6 callers
Function
updateUsageStatsEntry
( store: AuthProfileStore, profileId: string, updater: (existing: ProfileUsageStats | undefined) => Prof
src/agents/auth-profiles/usage.ts:372
↓ 6 callers
Function
upsertPresence
(key: string, presence: Partial<SystemPresence>)
src/infra/system-presence.ts:248
↓ 6 callers
Function
validateAnthropicSetupToken
(raw: string)
src/commands/auth-token.ts:26
↓ 6 callers
Function
validateArchiveEntryPath
( entryPath: string, params?: { escapeLabel?: string }, )
src/infra/archive-path.ts:12
↓ 6 callers
Function
validateBoundedText
(params: { value: unknown; field: string; maxLength: number })
src/acp/control-plane/runtime-options.ts:31
↓ 6 callers
Function
validateToken
(received: string, expected: string)
extensions/synology-chat/src/security.ts:19
↓ 6 callers
Method
verifyWebhook
* Verify webhook signature/HMAC before processing. * Must be called before parseWebhookEvent.
extensions/voice-call/src/providers/base.ts:36
↓ 6 callers
Function
waitForCalls
(getCount: () => number, count: number, timeoutMs = 2000)
src/agents/openclaw-tools.sessions.test.ts:36
↓ 6 callers
Function
waitForClose
(ws: WebSocket, timeoutMs = RELAY_MESSAGE_TIMEOUT_MS)
src/browser/extension-relay.test.ts:30
↓ 6 callers
Function
waitForCompactionRetryWithAggregateTimeout
(params: { waitForCompactionRetry: () => Promise<void>; abortable: <T>(promise: Promise<T>) => Promise<T>;
src/agents/pi-embedded-runner/run/compaction-retry-aggregate-timeout.ts:5
↓ 6 callers
Function
withAgentWorkspace
( fn: (ctx: { agentDir: string; workspaceDir: string }) => Promise<T>, )
src/agents/model-fallback.run-embedded.e2e.test.ts:147
↓ 6 callers
Function
withAuthProfileStore
( fn: (ctx: { agentDir: string; store: AuthProfileStore }) => Promise<void>, )
src/agents/auth-profiles.markauthprofilefailure.test.ts:13
↓ 6 callers
Function
withCdpSocket
( wsUrl: string, fn: (send: CdpSendFn) => Promise<T>, opts?: { headers?: Record<string, string>; handsha
src/browser/cdp.helpers.ts:213
↓ 6 callers
Function
withClearedEnv
( keys: string[], run: (original: Record<string, string | undefined>) => T, )
src/agents/skills.test.ts:28
↓ 6 callers
Function
withControlUiRoot
( params: { faviconSvg?: string; indexHtml?: string }, run: (tmp: string) => Promise<void>, )
src/gateway/gateway-misc.test.ts:49
↓ 6 callers
Function
withEnvVar
(name: string, value: string, run: () => Promise<void>)
src/agents/models-config.fills-missing-provider-apikey-from-env-var.test.ts:20
↓ 6 callers
Function
withFetchPathTest
( mockFetch: ReturnType<typeof vi.fn>, runAssertions: () => Promise<void>, )
src/agents/kilocode-models.test.ts:57
↓ 6 callers
Function
withGatewayChatHarness
( run: (ctx: { ws: Awaited<ReturnType<typeof startServerWithClient>>["ws"]; createSessionDir: () =>
src/gateway/server.chat.gateway-server-chat-b.test.ts:37
↓ 6 callers
Function
withModelsTempHome
(fn: (home: string) => Promise<T>)
src/agents/models-config.e2e-harness.ts:7
↓ 6 callers
Function
withOptions
(line: string, options: string)
src/auto-reply/reply/directive-handling.shared.ts:10
↓ 6 callers
Function
withResolvedWebhookRequestPipeline
(params: { req: IncomingMessage; res: ServerResponse; targetsByPath: Map<string, T[]>; allowMethods?:
src/plugin-sdk/webhook-targets.ts:115
↓ 6 callers
Function
withRevokedProxyFallback
(params: { run: () => Promise<T>; onRevoked: () => Promise<T>; onRevokedLog?: () => void; })
extensions/msteams/src/revoked-context.ts:3
↓ 6 callers
Function
withRootMountedControlUiServer
(params: { prefix: string; handlePluginRequest: PluginRequestHandler; run: Parameters<typeof withGateway
src/gateway/server.plugin-http-auth.test.ts:44
↓ 6 callers
Function
withSafeBinsExecTool
( params: Parameters<typeof createSafeBinsExecTool>[0], run: (ctx: Awaited<ReturnType<typeof createSafeBin
src/agents/pi-tools.safe-bins.test.ts:125
↓ 6 callers
Function
withStateDir
( prefix: string, run: (stateDir: string) => Promise<void>, )
src/commands/onboard-non-interactive.gateway.test.ts:76
↓ 6 callers
Function
withTempCronHome
(fn: (home: string) => Promise<T>)
src/cron/isolated-agent.test-harness.ts:7
↓ 6 callers
Function
withTempDir
(run: (dir: string) => Promise<T>)
src/version.test.ts:16
↓ 6 callers
Function
withTempHome
(fn: (home: string) => Promise<T>)
src/commands/agent.acp.test.ts:27
↓ 6 callers
Function
withTempRoot
(prefix: string, run: (root: string) => Promise<T>)
src/agents/sandbox/fs-bridge-mutation-helper.test.ts:8
↓ 6 callers
Function
withTempSessionLockFile
( run: (params: { root: string; sessionFile: string; lockPath: string }) => Promise<void>, )
src/agents/session-write-lock.test.ts:50
↓ 6 callers
Function
writeAgentModelsJson
(content: unknown)
src/agents/models-config.fills-missing-provider-apikey-from-env-var.test.ts:34
↓ 6 callers
Function
writeAuthStore
( agentDir: string, usageStats?: Record< string, { lastUsed?: number; cooldownUntil?:
src/agents/model-fallback.run-embedded.e2e.test.ts:162
↓ 6 callers
Function
writeCallsToStore
(storePath: string, calls: Record<string, unknown>[])
extensions/voice-call/src/manager.test-harness.ts:101
↓ 6 callers
Function
writeConfigForTest
(home: string, config: unknown)
src/config/config.pruning-defaults.test.ts:8
↓ 6 callers
Function
writeExecutable
(filePath: string)
src/infra/brew.test.ts:17
↓ 6 callers
Function
writeMainSessionEntry
(params: { sessionId: string; lastChannel?: string; lastTo?: string; })
src/gateway/server.agent.gateway-server-agent-b.test.ts:98
↓ 6 callers
Function
writeMainSessionStore
()
src/gateway/server.chat.gateway-server-chat-b.test.ts:63
↓ 6 callers
Function
writeNostrBusState
(params: { accountId?: string; lastProcessedAt: number; gatewayStartedAt: number; recentEventIds?: str
extensions/nostr/src/nostr-state-store.ts:112
↓ 6 callers
Function
writePluginPackageManifest
(params: { packageDir: string; packageName: string; extensions: string[]; })
src/plugins/discovery.test.ts:38
↓ 6 callers
Function
writeStore
(data: unknown, prefix = "sessions")
src/commands/sessions.test-helpers.ts:52
↓ 6 callers
Function
writeTempFile
(buffer: Buffer, ext: string)
src/web/media.test.ts:45
↓ 5 callers
Function
CommandBlock
apps/android/app/src/main/java/ai/openclaw/app/ui/OnboardingFlow.kt:1552
↓ 5 callers
Function
_append_xml
(xml_path: Path, root_tag: str, content: str)
skills/docx/scripts/comment.py:86
↓ 5 callers
Method
_parse_id_value
(self, val: str, base: int = 16)
skills/pptx/scripts/office/validators/docx.py:251
↓ 5 callers
Method
_parse_id_value
(self, val: str, base: int = 16)
skills/docx/scripts/office/validators/docx.py:251
↓ 5 callers
Method
_parse_id_value
(self, val: str, base: int = 16)
skills/xlsx/scripts/office/validators/docx.py:251
↓ 5 callers
Method
_read_reference
(self, filename)
skills/open-notebook/scripts/test_open_notebook_skill.py:247
↓ 5 callers
Function
activateRuntimeSecrets
( config: OpenClawConfig, params: { reason: "startup" | "reload" | "restart-check"; activate: boolean
src/gateway/server.impl.ts:353
↓ 5 callers
Function
addAllowlistUserEntriesFromConfigEntry
(target: Set<string>, entry: unknown)
src/channels/allowlists/resolve-utils.ts:130
↓ 5 callers
Function
addBeforeModelResolveHook
( registry: PluginRegistry, pluginId: string, handler: ( event: PluginHookBeforeModelResolveEvent,
src/plugins/hooks.model-override-wiring.test.ts:23
↓ 5 callers
Function
addDiscordNameBasedEntries
(params: { target: Set<string>; values: unknown; source: string; })
src/security/audit-channel.ts:27
↓ 5 callers
Function
addEntry
(ref: { provider: string; model: string }, tag: string)
src/commands/models/list.configured.ts:33
↓ 5 callers
Function
addTokenVariants
(tokens: Set<string>, value: string)
src/auto-reply/reply/elevated-allowlist-matcher.ts:67
↓ 5 callers
Function
addTrimmedEntries
(ids: Set<string>, values: Iterable<unknown>)
src/channels/plugins/directory-config.ts:40
↓ 5 callers
Function
addValues
(prefix: string, values: string[])
ui/src/ui/views/usage-query.ts:182
↓ 5 callers
Function
addWebhookCronJob
(params: { ws: WebSocket; name: string; sessionTarget?: "main" | "isolated"; payloadText?: string; d
src/gateway/server.cron.test.ts:158
↓ 5 callers
Function
addWildcardAllowFrom
(allowFrom?: Array<string | number> | null)
src/channels/plugins/onboarding/helpers.ts:21
↓ 5 callers
Function
agentCliCommand
(opts: AgentCliOpts, runtime: RuntimeEnv, deps?: CliDeps)
src/commands/agent-via-gateway.ts:180
↓ 5 callers
Function
allocateColor
(usedColors: Set<string>)
src/browser/profiles.ts:94
↓ 5 callers
Function
anthropicBase
()
src/agents/model-compat.test.ts:107
↓ 5 callers
Function
appendClawHubHint
(output: string, json?: boolean)
src/cli/skills-cli.format.ts:21
↓ 5 callers
Function
appendHistoryEntry
(params: { historyMap: Map<string, T[]>; historyKey: string; entry: T; limit: number; })
src/auto-reply/reply/history.ts:52
↓ 5 callers
Function
applyAgentDefaultPrimaryModel
(params: { cfg: OpenClawConfig; model: string; legacyModels?: Set<string>; })
src/commands/model-default.ts:14
↓ 5 callers
Function
applyAppendOnlyStreamUpdate
(params: { incoming: string; rendered: string; source: string; })
src/slack/stream-mode.ts:38
↓ 5 callers
Function
applyCliProfileEnv
(params: { profile: string; env?: Record<string, string | undefined>; homedir?: () => string; })
src/cli/profile.ts:100
↓ 5 callers
Function
applyConfigOverrides
(cfg: OpenClawConfig)
src/config/runtime-overrides.ts:86
↓ 5 callers
Function
applyConfigSnapshot
(state: ConfigState, snapshot: ConfigSnapshot)
ui/src/ui/controllers/config.ts:79
↓ 5 callers
Function
applyExclusiveSlotSelection
(params: { config: OpenClawConfig; selectedId: string; selectedKind?: PluginKind; registry?: { plugins
src/plugins/slots.ts:39
↓ 5 callers
Function
applyGmailMappings
(config: Parameters<typeof resolveHookMappings>[0])
src/gateway/hooks-mapping.test.ts:36
↓ 5 callers
Function
applyPathPrepend
( env: Record<string, string>, prepend: string[] | undefined, options?: { requireExisting?: boolean }, )
src/infra/path-prepend.ts:60
← previous
next →
4,101–4,200 of 26,379, ranked by callers