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
↓ 1 callers
Function
createReadFileTool
(permissions: PermissionManager, getCwd: () => string)
src/capabilities/filesystem/read-file.ts:7
↓ 1 callers
Function
createReviewPrTool
()
src/capabilities/github/review-pr.ts:5
↓ 1 callers
Function
createRunCommandTool
(permissions: PermissionManager, getCwd: () => string, setCwd: (dir: string) => void)
src/capabilities/shell/run-command.ts:10
↓ 1 callers
Function
createSaveMemoryTool
(userMemory: UserMemoryStore)
src/capabilities/system/save-memory.ts:5
↓ 1 callers
Function
createScheduleTaskTool
(scheduler: Scheduler, getContext: () => { channelId: string; channelType: string })
src/capabilities/scheduler/schedule-task.ts:6
↓ 1 callers
Function
createSearchMemoryTool
(userMemory: UserMemoryStore)
src/capabilities/system/search-memory.ts:5
↓ 1 callers
Function
createSendFileTool
( permissions: PermissionManager, getCwd: () => string, sendFile: (filePath: string) => Promise<void>, )
src/capabilities/filesystem/send-file.ts:7
↓ 1 callers
Function
createSendMessageTool
( sendMessage: (content: string) => Promise<void>, )
src/capabilities/messaging/send-message.ts:4
↓ 1 callers
Function
createSession
()
src/web/auth.ts:122
↓ 1 callers
Function
createSessionToken
()
src/web/auth.ts:111
↓ 1 callers
Function
createUseSkillTool
(skillLoader: SkillLoader, permissions: PermissionManager)
src/capabilities/skills/use-skill.ts:6
↓ 1 callers
Function
createWriteFileTool
(permissions: PermissionManager, getCwd: () => string)
src/capabilities/filesystem/write-file.ts:8
↓ 1 callers
Function
deepMerge
(target: T, source: Partial<T>)
src/utils/config.ts:254
↓ 1 callers
Method
deleteOrphanPersons
(userKey: string)
src/memory/second-brain-db.ts:530
↓ 1 callers
Method
deleteSkill
(name: string)
src/skills/loader.ts:167
↓ 1 callers
Function
destroySession
(token: string)
src/web/auth.ts:141
↓ 1 callers
Function
effectiveConfidence
(row: MemoryRow)
src/memory/user-memory.ts:771
↓ 1 callers
Method
elevateForSkill
(allowedTools: string[])
src/capabilities/permissions.ts:184
↓ 1 callers
Method
enforceMaxRecords
()
src/memory/user-memory.ts:462
↓ 1 callers
Function
ensureCreatorField
(config: MercuryConfig)
src/utils/config.ts:246
↓ 1 callers
Function
extractHumanNames
(segment: string)
src/memory/user-memory.ts:712
↓ 1 callers
Method
extractMemory
(userMessage: string, agentResponse: string)
src/core/agent.ts:1108
↓ 1 callers
Function
extractUserRelationshipMentions
(text: string)
src/memory/user-memory.ts:647
↓ 1 callers
Function
fetchAnthropicModels
(config: ProviderConfig)
src/utils/provider-models.ts:224
↓ 1 callers
Function
fetchGrokModels
(config: ProviderConfig)
src/utils/provider-models.ts:243
↓ 1 callers
Function
fetchOllamaModels
(provider: ProviderName, config: ProviderConfig)
src/utils/provider-models.ts:262
↓ 1 callers
Function
fetchOpenAICompatModels
(provider: ProviderName, config: ProviderConfig)
src/utils/provider-models.ts:201
↓ 1 callers
Method
findConflictCandidate
(userKey: string, type: string, summaryTerms: string[])
src/memory/second-brain-db.ts:308
↓ 1 callers
Method
findMergeCandidate
(userKey: string, type: string, normalizedTerms: string[])
src/memory/second-brain-db.ts:297
↓ 1 callers
Function
findMergeTarget
(rows: MemoryRow[], candidate: UserMemoryCandidate)
src/memory/user-memory.ts:750
↓ 1 callers
Function
findTelegramAdmin
(config: MercuryConfig, userId: number)
src/utils/config.ts:312
↓ 1 callers
Method
findTempScope
(resolvedPath: string)
src/capabilities/permissions.ts:429
↓ 1 callers
Method
forceAllowNext
()
src/utils/tokens.ts:53
↓ 1 callers
Function
formatSize
(bytes: number)
src/capabilities/filesystem/list-dir.ts:55
↓ 1 callers
Method
generatePairingCode
()
src/channels/telegram.ts:907
↓ 1 callers
Method
getAllSkills
()
src/skills/loader.ts:128
↓ 1 callers
Method
getApprovedStatusMessage
(user: TelegramAccessUser)
src/channels/telegram.ts:889
↓ 1 callers
Method
getBudget
()
src/utils/tokens.ts:73
↓ 1 callers
Method
getCommandName
(text: string)
src/channels/telegram.ts:870
↓ 1 callers
Method
getCurrentChannelType
()
src/capabilities/permissions.ts:168
↓ 1 callers
Method
getFallbackIterator
()
src/providers/registry.ts:65
↓ 1 callers
Method
getManifest
()
src/capabilities/permissions.ts:240
↓ 1 callers
Method
getMemoriesForPerson
(userKey: string, personId: string, limit: number = 50)
src/memory/second-brain-db.ts:667
↓ 1 callers
Method
getPerson
(personId: string)
src/memory/user-memory.ts:137
↓ 1 callers
Method
getPersonMemories
(personId: string, limit: number = 50)
src/memory/user-memory.ts:144
↓ 1 callers
Method
getPersonWithCount
(userKey: string, personId: string)
src/memory/second-brain-db.ts:633
↓ 1 callers
Method
getRelationshipMemoryRows
(userKey: string)
src/memory/second-brain-db.ts:680
↓ 1 callers
Method
getSameToolThreshold
(toolName: string, failingCount: number)
src/core/agent.ts:58
↓ 1 callers
Function
getSessionMaxAge
()
src/web/auth.ts:149
↓ 1 callers
Method
getSkillContext
()
src/capabilities/registry.ts:199
↓ 1 callers
Method
getSkillSummariesText
()
src/skills/loader.ts:107
↓ 1 callers
Function
getStatus
()
src/web/api/status.ts:33
↓ 1 callers
Method
getSystemPrompt
(identity: { name: string; owner: string; creator?: string })
src/soul/identity.ts:140
↓ 1 callers
Function
getTelegramAdmins
(config: MercuryConfig)
src/utils/config.ts:300
↓ 1 callers
Function
getWebPort
()
src/web/auth.ts:19
↓ 1 callers
Method
handleAccessCallback
(ctx: Parameters<Bot['on']>[1] extends never ? never : any, data: string)
src/channels/telegram.ts:648
↓ 1 callers
Method
handleAccessRequest
( userId: number, chatId: number, username?: string, firstName?: string, )
src/channels/telegram.ts:571
↓ 1 callers
Method
handleBudgetOverrideCLI
(channel: import('../channels/base.js').Channel, msg: ChannelMessage)
src/core/agent.ts:1198
↓ 1 callers
Method
handleIncomingMessage
(msg: ChannelMessage)
src/channels/registry.ts:69
↓ 1 callers
Method
handleMemoryCallback
(ctx: any, data: string)
src/channels/telegram.ts:750
↓ 1 callers
Method
handleMessage
(msg: ChannelMessage)
src/core/agent.ts:332
↓ 1 callers
Method
handleScheduledTask
(manifest: ScheduledTaskManifest)
src/core/agent.ts:1023
↓ 1 callers
Method
hardDeleteDismissed
(userKey: string)
src/memory/second-brain-db.ts:373
↓ 1 callers
Function
hasConflict
(a: string, b: string)
src/memory/user-memory.ts:844
↓ 1 callers
Method
hasPathBeyondCwd
(command: string)
src/capabilities/permissions.ts:448
↓ 1 callers
Method
hasProviders
()
src/providers/registry.ts:85
↓ 1 callers
Method
heartbeat
()
src/core/agent.ts:1052
↓ 1 callers
Function
inferScope
(candidate: UserMemoryCandidate)
src/memory/user-memory.ts:837
↓ 1 callers
Function
initWebAuth
()
src/web/auth.ts:52
↓ 1 callers
Function
injectCoAuthor
(body: any)
src/capabilities/github/github-api.ts:13
↓ 1 callers
Method
insertRecord
(candidate: UserMemoryCandidate, source: UserMemoryRecord['source'])
src/memory/user-memory.ts:343
↓ 1 callers
Method
insertReflection
(candidate: UserMemoryCandidate)
src/memory/user-memory.ts:375
↓ 1 callers
Method
installFromContent
(content: string)
src/skills/loader.ts:185
↓ 1 callers
Method
installFromUrl
(url: string)
src/skills/loader.ts:176
↓ 1 callers
Function
installLinux
()
src/cli/service.ts:201
↓ 1 callers
Function
installMac
()
src/cli/service.ts:84
↓ 1 callers
Function
installWindows
()
src/cli/service.ts:313
↓ 1 callers
Method
is
(newState: AgentState)
src/core/lifecycle.ts:38
↓ 1 callers
Method
isAudioFile
(ext: string)
src/channels/telegram.ts:1005
↓ 1 callers
Function
isContentCreatePath
(path: string)
src/capabilities/github/github-api.ts:9
↓ 1 callers
Function
isGitHubConfigured
()
src/utils/github.ts:16
↓ 1 callers
Method
isHardAborted
()
src/core/agent.ts:229
↓ 1 callers
Method
isImageFile
(ext: string)
src/channels/telegram.ts:1001
↓ 1 callers
Function
isOpenAIChatModel
(id: string)
src/utils/provider-models.ts:125
↓ 1 callers
Method
isOverBudget
()
src/utils/tokens.ts:44
↓ 1 callers
Function
isProcessRunning
(pid: number)
src/cli/daemon.ts:31
↓ 1 callers
Method
isShellElevated
()
src/capabilities/permissions.ts:205
↓ 1 callers
Method
isVideoFile
(ext: string)
src/channels/telegram.ts:1009
↓ 1 callers
Function
isWebAuthInitialized
()
src/web/auth.ts:67
↓ 1 callers
Function
limitModels
(models: string[])
src/utils/provider-models.ts:121
↓ 1 callers
Method
listAvailable
()
src/providers/registry.ts:81
↓ 1 callers
Method
load
()
src/memory/store.ts:143
↓ 1 callers
Method
load
()
src/memory/store.ts:191
↓ 1 callers
Function
loadSchedules
()
src/core/scheduler.ts:35
↓ 1 callers
Function
loadSettings
()
src/web/api/chat.ts:16
↓ 1 callers
Method
markUsed
(ids: string[], query?: string)
src/memory/user-memory.ts:480
↓ 1 callers
Function
maskApiKey
(key: string)
src/web/api/providers.ts:4
↓ 1 callers
Method
mergeDefaults
(parsed: Partial<PermissionsManifest>)
src/capabilities/permissions.ts:468
↓ 1 callers
Method
mergeRecord
(existing: MemoryRow, candidate: UserMemoryCandidate)
src/memory/user-memory.ts:403
↓ 1 callers
Function
migrateLegacyMemory
()
src/memory/store.ts:7
← previous
next →
301–400 of 707, ranked by callers