Code
Hub
Workspaces
Following
Trending
Connect
MCP
copy
Create free account
hub
/
github.com/Bitterbot-AI/bitterbot-desktop
/ functions
Functions
14,466 in github.com/Bitterbot-AI/bitterbot-desktop
⨍
Functions
14,466
◇
Types & classes
889
↓ 36 callers
Function
resolveSessionAgentId
(params: { sessionKey?: string; config?: BitterbotConfig; })
src/agents/agent-scope.ts:87
↓ 35 callers
Function
handleTelegramAction
( params: Record<string, unknown>, cfg: BitterbotConfig, )
src/agents/tools/telegram-actions.ts:72
↓ 35 callers
Function
info
(text: string)
src/cli/memory-cli.ts:355
↓ 35 callers
Function
parseAgentSessionKey
( sessionKey: string | undefined | null, )
src/sessions/session-key-utils.ts:6
↓ 35 callers
Function
resolveAgentConfig
( cfg: BitterbotConfig, agentId: string, )
src/agents/agent-scope.ts:99
↓ 35 callers
Function
resolveDiscordRest
(opts: DiscordClientOpts)
src/discord/client.ts:58
↓ 35 callers
Function
writeSkill
(params: SkillFixture)
src/agents/skills.e2e.test.ts:31
↓ 34 callers
Function
buildProfileQuery
(profile?: string)
src/browser/client.ts:89
↓ 34 callers
Function
connectReq
( ws: WebSocket, opts?: { token?: string; deviceToken?: string; password?: string; skipDef
src/gateway/test-helpers.server.ts:435
↓ 34 callers
Function
formatForLog
(value: unknown)
src/gateway/ws-log.ts:62
↓ 34 callers
Function
isTrustedProxyAddress
(ip: string | undefined, trustedProxies?: string[])
src/gateway/net.ts:206
↓ 34 callers
Method
open
(dbPath: string)
src/tasks/store.ts:99
↓ 34 callers
Function
parseEmbedding
(raw: string)
src/memory/internal.ts:287
↓ 34 callers
Function
runMessageAction
( input: RunMessageActionParams, )
src/infra/outbound/message-action-runner.ts:688
↓ 34 callers
Method
upsert_entity
Insert-or-merge an entity keyed on (normalized name, type). On duplicate: merges `properties`, increments `mention_count`, bumps `las
benchmarks/arc-agi-3/kaggle/bitterbot_memory_py/bitterbot_memory/knowledge_graph.py:162
↓ 33 callers
Function
buildProgram
()
src/cli/program/build-program.ts:8
↓ 33 callers
Function
defaultHarnessPolicy
()
src/agents/pi-embedded-runner/harness-policy.ts:70
↓ 33 callers
Function
fakeEmbedding
A trivial 4-dimensional embedding for testing.
src/memory/knowledge-crystal-system.test.ts:47
↓ 33 callers
Function
formatTimeAgo
( durationMs: number | null | undefined, options?: FormatTimeAgoOptions, )
src/infra/format-time/format-relative.ts:26
↓ 33 callers
Function
isObject$1
(value)
src/canvas-host/a2ui/a2ui.bundle.js:1989
↓ 33 callers
Function
monitorWebInbox
(options: { verbose: boolean; accountId: string; authDir: string; onMessage: (msg: WebInboundMessage)
src/web/inbound/monitor.ts:25
↓ 33 callers
Method
next
()
src/wizard/session.ts:175
↓ 33 callers
Function
readConfigFileSnapshot
()
src/config/io.ts:821
↓ 33 callers
Method
register
(interceptor: PreActionInterceptor, origin: InterceptorOrigin = "builtin")
src/agents/skills/interceptor-registry.ts:28
↓ 33 callers
Function
withTelegramApiErrorLogging
({ operation, fn, runtime, logger, shouldLog, }: TelegramApiLoggingParams<T>)
src/telegram/api-logging.ts:28
↓ 32 callers
Function
cosineSimilarity
(a: number[], b: number[])
src/memory/internal.ts:296
↓ 32 callers
Function
defineChatCommand
(command: DefineChatCommandInput)
src/auto-reply/commands-registry.data.ts:26
↓ 32 callers
Function
ensureRecord
( root: Record<string, unknown>, key: string, )
src/config/legacy.shared.ts:20
↓ 32 callers
Function
extractAssistantText
(msg: AssistantMessage)
src/agents/pi-embedded-utils.ts:209
↓ 32 callers
Method
getClient
* Get or create a chat client for an account
extensions/twitch/src/twitch-client.ts:77
↓ 32 callers
Method
normalize
Update the running statistics and return the normalized value in [0, 1].
src/memory/gccrf-reward.ts:124
↓ 32 callers
Function
resolveBitterbotAgentDir
()
src/agents/agent-paths.ts:6
↓ 32 callers
Function
resolveBrowserConfig
( cfg: BrowserConfig | undefined, rootConfig?: BitterbotConfig, )
src/browser/config.ts:139
↓ 32 callers
Method
result
()
benchmarks/biomemeval/scoring.ts:88
↓ 32 callers
Function
sanitizeUserFacingText
(text: string, opts?: { errorContext?: boolean })
src/agents/pi-embedded-helpers/errors.ts:516
↓ 31 callers
Function
createExecTool
( defaults?: ExecToolDefaults, // oxlint-disable-next-line typescript/no-explicit-any )
src/agents/bash-tools.exec.ts:126
↓ 31 callers
Function
getSock
()
src/web/monitor-inbox.test-harness.ts:99
↓ 31 callers
Function
initSessionState
(params: { ctx: MsgContext; cfg: BitterbotConfig; commandAuthorized: boolean; })
src/auto-reply/reply/session.ts:99
↓ 31 callers
Function
onceMessage
( ws: WebSocket, filter: (obj: unknown) => boolean, // Full-suite runs can saturate the event loop (581+
src/gateway/test-helpers.server.ts:299
↓ 31 callers
Method
recordFailure
Record a failed authentication attempt for `ip`.
src/gateway/auth-rate-limit.ts:60
↓ 31 callers
Function
requirePwAi
( res: BrowserResponse, feature: string, )
src/browser/routes/agent.shared.ts:50
↓ 31 callers
Function
safeTrim
(value: unknown)
src/auto-reply/reply/inbound-meta.ts:5
↓ 31 callers
Function
setLoggerOverride
(settings: LoggerSettings | null)
src/logging/logger.ts:184
↓ 30 callers
Method
addScenario
(result: ScenarioResult)
benchmarks/biomemeval/scoring.ts:84
↓ 30 callers
Function
configPath
(...parts: string[])
src/config/includes.test.ts:17
↓ 30 callers
Function
guardCancel
(value: T | symbol, runtime: RuntimeEnv)
src/commands/onboard-helpers.ts:30
↓ 30 callers
Function
handleRouteError
(ctx: BrowserRouteContext, res: BrowserResponse, err: unknown)
src/browser/routes/agent.shared.ts:25
↓ 30 callers
Function
resolveGatewayPort
( cfg?: BitterbotConfig, env: NodeJS.ProcessEnv = process.env, )
src/config/paths.ts:218
↓ 30 callers
Function
resolveProfileContext
( req: BrowserRequest, res: BrowserResponse, ctx: BrowserRouteContext, )
src/browser/routes/agent.shared.ts:33
↓ 30 callers
Function
runHeartbeatOnce
(opts: { cfg?: BitterbotConfig; agentId?: string; heartbeat?: HeartbeatConfig; reason?: string; deps
src/infra/heartbeat-runner.ts:378
↓ 30 callers
Function
spawn
(cmd: string, args: string[])
src/infra/run-node.test.ts:27
↓ 30 callers
Method
tick
()
src/cron/engine.ts:182
↓ 29 callers
Function
callTool
( tool: ReturnType<typeof createTaskCreateTool>, params: Record<string, unknown>, )
src/agents/tools/task-tool.phase-c.test.ts:52
↓ 29 callers
Function
deliverOutboundPayloads
( params: DeliverOutboundPayloadsParams, )
src/infra/outbound/deliver.ts:198
↓ 29 callers
Function
extensionForMime
(mime?: string | null)
src/media/mime.ts:147
↓ 29 callers
Function
isRich
(opts?: { json?: boolean; plain?: boolean })
src/commands/models/list.format.ts:3
↓ 29 callers
Function
logError
(message: string, runtime: RuntimeEnv = defaultRuntime)
src/logger.ts:47
↓ 29 callers
Method
publish
* Publish a crystal for sharing by updating its governance visibility.
src/memory/mem-store.ts:63
↓ 29 callers
Function
registerAgentRunContext
(runId: string, context: AgentRunContext)
src/infra/agent-events.ts:29
↓ 29 callers
Method
rename
(params: { from: string; to: string; cwd?: string; signal?: AbortSignal; })
src/agents/sandbox/fs-bridge.ts:142
↓ 29 callers
Function
resolveSessionFilePath
( sessionId: string, entry?: { sessionFile?: string }, opts?: SessionFilePathOptions, )
src/config/sessions/paths.ts:190
↓ 29 callers
Function
run
()
src/auto-reply/reply/dispatch-from-config.ts:302
↓ 29 callers
Function
step
( name: string, argv: string[], cwd: string, env?: NodeJS.ProcessEnv, )
src/infra/update-runner.ts:339
↓ 28 callers
Function
addSubagentRunForTests
(entry: SubagentRunRecord)
src/agents/subagent-registry.ts:538
↓ 28 callers
Function
applyMediaUnderstanding
(params: { ctx: MsgContext; cfg: BitterbotConfig; agentDir?: string; providers?: Record<string, MediaU
src/media-understanding/apply.ts:478
↓ 28 callers
Method
cleanup
()
benchmarks/dream-ablation/bridge.ts:60
↓ 28 callers
Function
createConfigIO
(overrides: ConfigIoDeps = {})
src/config/io.ts:523
↓ 28 callers
Function
fileExists
(path)
scripts/fetch-orchestrator.mjs:123
↓ 28 callers
Function
get
(runId: string)
src/gateway/server-chat.ts:175
↓ 28 callers
Function
postResponses
(port: number, body: unknown, headers?: Record<string, string>)
src/gateway/openresponses-http.e2e.test.ts:46
↓ 28 callers
Function
recordChannelActivity
(params: { channel: ChannelId; accountId?: string | null; direction: ChannelDirection; at?: number; })
src/infra/channel-activity.ts:26
↓ 28 callers
Function
requestHeartbeatNow
(opts?: { reason?: string; coalesceMs?: number })
src/infra/heartbeat-wake.ts:181
↓ 28 callers
Function
sanitizeSessionHistory
(params: { messages: AgentMessage[]; modelApi?: string | null; modelId?: string; provider?: string;
src/agents/pi-embedded-runner/google.ts:410
↓ 28 callers
Function
upsertAuthProfile
(params: { profileId: string; credential: AuthProfileCredential; agentDir?: string; })
src/agents/auth-profiles/profiles.ts:48
↓ 27 callers
Function
callGatewayCli
( method: string, opts: NodesRpcOpts, params?: unknown, callOpts?: { transportTimeoutMs?: number }, )
src/cli/nodes-cli/rpc.ts:16
↓ 27 callers
Function
createWebFetchTool
(options?: { config?: BitterbotConfig; sandboxed?: boolean; })
src/agents/tools/web-fetch.ts:755
↓ 27 callers
Function
getLineData
(result: ReturnType<typeof parseLineDirectives>)
src/auto-reply/reply/reply-flow.test.ts:226
↓ 27 callers
Function
parseModelRef
(raw: string, defaultProvider: string)
src/agents/model-selection.ts:107
↓ 27 callers
Function
resolveSlackAccount
(params: { cfg: BitterbotConfig; accountId?: string | null; })
src/slack/accounts.ts:74
↓ 27 callers
Function
resolveTextChunkLimit
( cfg: BitterbotConfig | undefined, provider?: TextChunkProvider, accountId?: string | null, opts?: {
src/auto-reply/chunk.ts:56
↓ 27 callers
Function
sendMessageDiscord
( to: string, text: string, opts: DiscordSendOpts = {}, )
src/discord/send.outbound.ts:76
↓ 26 callers
Function
agentCommand
( opts: AgentCommandOpts, runtime: RuntimeEnv = defaultRuntime, deps: CliDeps = createDefaultDeps(), )
src/commands/agent.ts:207
↓ 26 callers
Function
applyAuthChoice
( params: ApplyAuthChoiceParams, )
src/commands/auth-choice.apply.ts:41
↓ 26 callers
Function
callTool
( tool: ReturnType<typeof createTaskCreateTool>, params: Record<string, unknown>, )
src/agents/tools/task-tool.phase4.test.ts:31
↓ 26 callers
Function
ensureBitterbotModelsJson
( config?: BitterbotConfig, agentDirOverride?: string, )
src/agents/models-config.ts:81
↓ 26 callers
Function
err
(code: number, message: string)
src/gateway/a2a/forage.ts:38
↓ 26 callers
Function
info
(message: string)
src/commands/doctor-p2p.ts:33
↓ 26 callers
Function
makeMessage
(id: number, size: number)
src/agents/compaction.e2e.test.ts:9
↓ 26 callers
Function
nodesCallOpts
(cmd: Command, defaults?: { timeoutMs?: number })
src/cli/nodes-cli/rpc.ts:9
↓ 26 callers
Function
normalizeChatType
(raw?: string)
src/channels/chat-type.ts:3
↓ 26 callers
Function
normalizeMessageChannel
(raw?: string | null)
src/utils/message-channel.ts:55
↓ 26 callers
Function
parseLineDirectives
(payload: ReplyPayload)
src/auto-reply/reply/line-directives.ts:27
↓ 26 callers
Function
planQueryHeuristic
(rawQuery: string, opts: QueryPlannerOptions = {})
src/memory/query-planner.ts:286
↓ 26 callers
Function
readStringParam
* Read a string parameter from action arguments. * * @param args - Action arguments * @param key - Parameter key * @param options - Options for re
extensions/twitch/src/actions.ts:34
↓ 26 callers
Function
resolveAgentDir
(cfg: BitterbotConfig, agentId: string)
src/agents/agent-scope.ts:199
↓ 26 callers
Function
resolveTelegramAccount
(params: { cfg: BitterbotConfig; accountId?: string | null; })
src/telegram/accounts.ts:88
↓ 26 callers
Function
runCommandWithRuntime
( runtime: { error: (message: string) => void; exit: (code: number) => void }, action: () => Promise<void>
src/cli/cli-utils.ts:34
↓ 26 callers
Function
send
( method: string, params?: Record<string, unknown>, sessionId?: string, )
src/browser/cdp.helpers.ts:58
↓ 26 callers
Function
setRegistry
(registry: PluginRegistry)
src/gateway/server.channels.e2e.test.ts:141
↓ 26 callers
Function
skillManage
( ctx: SkillManageContext, params: SkillManageParams, )
src/agents/skills/skill-manage.ts:228
← previous
next →
201–300 of 14,466, ranked by callers