Code
Hub
Workspaces
Following
Trending
Connect
MCP
copy
Create free account
hub
/
github.com/cosmicstack-labs/mercury-agent
/ functions
Functions
707 in github.com/cosmicstack-labs/mercury-agent
⨍
Functions
707
◇
Types & classes
115
↓ 4 callers
Function
saveWebAuth
(auth: WebAuth)
src/web/auth.ts:42
↓ 4 callers
Function
select
(s)
src/web/static/app.js:297
↓ 4 callers
Method
setAutoApproveAll
(value: boolean)
src/capabilities/permissions.ts:176
↓ 4 callers
Method
setLearningPaused
(paused: boolean)
src/memory/user-memory.ts:257
↓ 4 callers
Method
showPrompt
()
src/channels/cli.ts:276
↓ 4 callers
Method
stop
()
src/channels/base.ts:8
↓ 3 callers
Method
addApprovedCommand
(baseCommand: string)
src/capabilities/permissions.ts:244
↓ 3 callers
Method
addDelayedTask
(manifest: ScheduledTaskManifest)
src/core/scheduler.ts:132
↓ 3 callers
Method
addPersistedTask
(manifest: ScheduledTaskManifest)
src/core/scheduler.ts:117
↓ 3 callers
Method
askPermission
(prompt: string, _targetId?: string)
src/channels/web.ts:135
↓ 3 callers
Function
authenticate
(username: string, password: string)
src/web/auth.ts:81
↓ 3 callers
Function
banner
()
src/index.ts:69
↓ 3 callers
Method
beginOutput
()
src/channels/cli.ts:326
↓ 3 callers
Function
cleanup
()
src/utils/arrow-select.ts:101
↓ 3 callers
Method
closeActiveMenu
()
src/channels/cli.ts:320
↓ 3 callers
Method
createInterface
()
src/channels/cli.ts:54
↓ 3 callers
Function
demoteTelegramAdmin
(config: MercuryConfig, userId: number)
src/utils/config.ts:436
↓ 3 callers
Method
ensurePersonsBackfilled
()
src/memory/user-memory.ts:512
↓ 3 callers
Function
fetchProviderModelCatalog
( provider: ProviderName, config: ProviderConfig, )
src/utils/provider-models.ts:284
↓ 3 callers
Method
formatBlock
(name: string, suffix: string, content: string)
src/channels/cli.ts:283
↓ 3 callers
Function
formatToolResult
(toolName: string, result: unknown)
src/utils/tool-label.ts:69
↓ 3 callers
Method
getActive
(userKey: string)
src/memory/second-brain-db.ts:282
↓ 3 callers
Method
getByType
(type: UserMemoryType)
src/memory/user-memory.ts:126
↓ 3 callers
Function
getConfiguredProviderNames
(config: MercuryConfig)
src/index.ts:117
↓ 3 callers
Method
getDailyUsed
()
src/utils/tokens.ts:77
↓ 3 callers
Function
getDb
()
src/web/api/brain-fallback.ts:10
↓ 3 callers
Function
getDistPath
()
src/cli/service.ts:35
↓ 3 callers
Method
getModelInstance
()
src/providers/ollama.ts:43
↓ 3 callers
Function
getNodeBinPath
()
src/cli/service.ts:31
↓ 3 callers
Method
getPendingStatusMessage
(request?: TelegramPendingRequest)
src/channels/telegram.ts:874
↓ 3 callers
Method
getRemaining
()
src/utils/tokens.ts:90
↓ 3 callers
Method
getUsagePercentage
()
src/utils/tokens.ts:96
↓ 3 callers
Method
indexPersonsForMemory
(memory: UserMemoryRecord)
src/memory/user-memory.ts:535
↓ 3 callers
Function
installService
()
src/cli/service.ts:42
↓ 3 callers
Method
isAdminUser
(userId: number)
src/channels/telegram.ts:866
↓ 3 callers
Function
isProviderConfigured
(provider: ProviderConfig)
src/utils/config.ts:281
↓ 3 callers
Method
isReady
()
src/channels/base.ts:15
↓ 3 callers
Method
matchPattern
(command: string, pattern: string)
src/capabilities/permissions.ts:439
↓ 3 callers
Function
migrateLegacyTelegramAccess
(config: MercuryConfig)
src/utils/config.ts:463
↓ 3 callers
Function
promoteTelegramUserToAdmin
(config: MercuryConfig, userId: number)
src/utils/config.ts:427
↓ 3 callers
Method
record
(toolName: string, params: Record<string, any>, failed: boolean = false)
src/core/agent.ts:69
↓ 3 callers
Method
recordStepText
(text: string)
src/core/agent.ts:84
↓ 3 callers
Method
register
(type: ChannelType, channel: Channel)
src/channels/registry.ts:19
↓ 3 callers
Function
removeTelegramUser
(config: MercuryConfig, userId: number)
src/utils/config.ts:409
↓ 3 callers
Function
render
()
src/utils/arrow-select.ts:70
↓ 3 callers
Function
renderLoginPage
(error?: string)
src/web/pages/login.ts:1
↓ 3 callers
Function
runAgent
(isDaemon: boolean = false)
src/index.ts:866
↓ 3 callers
Function
selectWithArrowKeys
( title: string, options: ArrowSelectOption[], config: ArrowSelectConfig = {}, )
src/utils/arrow-select.ts:22
↓ 3 callers
Method
sendFile
(filePath: string, targetId?: string)
src/channels/base.ts:10
↓ 3 callers
Function
setWebPassword
(password: string)
src/web/auth.ts:71
↓ 3 callers
Function
startBackground
()
src/cli/daemon.ts:83
↓ 3 callers
Method
stopSpinner
()
src/channels/cli.ts:180
↓ 3 callers
Method
stopTypingLoop
()
src/channels/telegram.ts:384
↓ 3 callers
Method
stream
(content: AsyncIterable<string>, targetId?: string)
src/channels/base.ts:11
↓ 3 callers
Function
trimTrailingSlash
(value: string)
src/utils/provider-models.ts:81
↓ 3 callers
Method
withMenu
(runner: (select: (title: string, options: ArrowSelectOption[]) => Promise<string>) => Promise<T>)
src/channels/cli.ts:292
↓ 2 callers
Method
addPendingApproval
(baseCommand: string)
src/capabilities/permissions.ts:209
↓ 2 callers
Function
agentName
(name: string, suffix?: string)
src/channels/cli.ts:19
↓ 2 callers
Method
askPermissionMode
(targetId?: string)
src/channels/telegram.ts:536
↓ 2 callers
Method
askToContinue
(question: string, targetId?: string)
src/channels/base.ts:13
↓ 2 callers
Method
checkShellCommand
(command: string)
src/capabilities/permissions.ts:287
↓ 2 callers
Function
chooseProviderModel
( providerLabel: string, recommendedModel: string, models: string[], )
src/index.ts:274
↓ 2 callers
Function
decodeHtmlEntities
(text: string)
src/utils/markdown.ts:17
↓ 2 callers
Method
deleteStatusMessage
(targetId?: string)
src/channels/telegram.ts:980
↓ 2 callers
Method
detectAbsoluteLimit
()
src/core/agent.ts:94
↓ 2 callers
Function
detectCd
(command: string, currentCwd: string, setCwd: (dir: string) => void)
src/capabilities/shell/run-command.ts:64
↓ 2 callers
Method
detectIdentical
()
src/core/agent.ts:101
↓ 2 callers
Method
detectSameTool
()
src/core/agent.ts:192
↓ 2 callers
Method
detectSimilarLoop
()
src/core/agent.ts:127
↓ 2 callers
Method
detectTextRepetition
()
src/core/agent.ts:155
↓ 2 callers
Method
emitMessageInThread
(content: string, threadId: string)
src/channels/web.ts:259
↓ 2 callers
Method
enqueueMessage
(msg: ChannelMessage)
src/core/agent.ts:280
↓ 2 callers
Function
ensureDaemonRunning
()
src/cli/daemon.ts:51
↓ 2 callers
Method
findScope
(resolvedPath: string)
src/capabilities/permissions.ts:391
↓ 2 callers
Method
findSkillEntryByName
(name: string)
src/skills/loader.ts:194
↓ 2 callers
Function
findTelegramApprovedUser
(config: MercuryConfig, userId: number)
src/utils/config.ts:308
↓ 2 callers
Function
findTelegramPendingRequestByPairingCode
( config: MercuryConfig, pairingCode: string, )
src/utils/config.ts:320
↓ 2 callers
Method
formatRequestLabel
(request: TelegramPendingRequest)
src/channels/telegram.ts:894
↓ 2 callers
Function
formatToolStep
(toolName: string, args: Record<string, any>)
src/utils/tool-label.ts:54
↓ 2 callers
Function
generateId
()
src/memory/store.ts:204
↓ 2 callers
Function
generateId
(prefix: string)
src/memory/user-memory.ts:833
↓ 2 callers
Method
get
(name?: string)
src/providers/registry.ts:45
↓ 2 callers
Method
getActiveChannels
()
src/channels/registry.ts:49
↓ 2 callers
Method
getChannelContext
()
src/capabilities/registry.ts:91
↓ 2 callers
Method
getChannelForMessage
(message: ChannelMessage)
src/channels/registry.ts:29
↓ 2 callers
Method
getDefault
()
src/providers/registry.ts:50
↓ 2 callers
Method
getDiscovered
()
src/skills/loader.ts:103
↓ 2 callers
Function
getGitHubToken
()
src/utils/github.ts:11
↓ 2 callers
Function
getManual
()
src/utils/manual.ts:3
↓ 2 callers
Method
getNotificationChannel
()
src/channels/registry.ts:55
↓ 2 callers
Method
getPersonById
(id: string)
src/memory/second-brain-db.ts:482
↓ 2 callers
Method
getProfile
()
src/memory/user-memory.ts:108
↓ 2 callers
Function
getSchedulesPath
()
src/core/scheduler.ts:31
↓ 2 callers
Method
getSettings
()
src/channels/web.ts:283
↓ 2 callers
Function
getTelegramApprovedChatIds
(config: MercuryConfig)
src/utils/config.ts:296
↓ 2 callers
Method
getTools
()
src/capabilities/registry.ts:191
↓ 2 callers
Function
getWebConfigPath
()
src/web/auth.ts:15
↓ 2 callers
Method
indexPersonsForMemoryRow
(memory: MemoryRow)
src/memory/user-memory.ts:540
↓ 2 callers
Method
insert
(row: Omit<MemoryRow, 'rowid'> & { rowid?: never })
src/memory/second-brain-db.ts:220
↓ 2 callers
Method
isAutoApproveAll
()
src/capabilities/permissions.ts:180
← previous
next →
101–200 of 707, ranked by callers