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
Method
needsMigration
(filename: string, content: string)
src/soul/identity.ts:197
↓ 1 callers
Function
nextLine
()
docs/app.js:75
↓ 1 callers
Method
notifyAdminsOfPendingRequest
(request: TelegramPendingRequest)
src/channels/telegram.ts:616
↓ 1 callers
Function
onAbort
()
src/utils/arrow-select.ts:109
↓ 1 callers
Method
onAsk
(handler: (prompt: string) => Promise<string>)
src/capabilities/permissions.ts:172
↓ 1 callers
Method
onHeartbeat
(handler: () => Promise<void>)
src/core/scheduler.ts:76
↓ 1 callers
Method
onIncomingMessage
(handler: (msg: ChannelMessage) => void)
src/channels/registry.ts:65
↓ 1 callers
Method
onMessage
(handler: (msg: ChannelMessage) => void)
src/channels/base.ts:16
↓ 1 callers
Method
openCliCommandMenu
(channel: CLIChannel, channelId: string)
src/core/agent.ts:1545
↓ 1 callers
Function
parseGithubRepo
(input: string)
src/index.ts:435
↓ 1 callers
Function
parseProviderSelection
(input: string)
src/index.ts:127
↓ 1 callers
Function
personToJson
(p: any)
src/web/api/brain.ts:49
↓ 1 callers
Function
pickBetterSummary
(existing: string, incoming: string)
src/memory/user-memory.ts:825
↓ 1 callers
Function
prioritizeModels
(models: string[], preferred: readonly string[])
src/utils/provider-models.ts:111
↓ 1 callers
Method
processInternalPrompt
(prompt: string, channelId?: string, channelType?: string)
src/core/agent.ts:1011
↓ 1 callers
Method
processQueue
()
src/core/agent.ts:286
↓ 1 callers
Method
promoteToDurable
(userKey: string)
src/memory/second-brain-db.ts:379
↓ 1 callers
Method
prompt
(question: string)
src/channels/cli.ts:349
↓ 1 callers
Function
promptOllamaLocalModelSelection
(config: MercuryConfig)
src/index.ts:370
↓ 1 callers
Function
promptValidatedValue
( prompt: string, validator: (value: string) => string | null, existingValue?: string, options?: { all
src/index.ts:401
↓ 1 callers
Method
pruneStale
(userKey: string)
src/memory/second-brain-db.ts:389
↓ 1 callers
Function
readPid
()
src/cli/daemon.ts:19
↓ 1 callers
Method
rebuildPersonsFromMemory
()
src/memory/user-memory.ts:150
↓ 1 callers
Method
registerAll
()
src/capabilities/registry.ts:111
↓ 1 callers
Method
registerCommands
()
src/channels/telegram.ts:226
↓ 1 callers
Method
removeSSEClient
(id: string)
src/channels/web.ts:73
↓ 1 callers
Function
renderBlockquote
(t: any)
src/utils/markdown.ts:147
↓ 1 callers
Function
renderChat
(c: Context)
src/web/pages/chat.ts:4
↓ 1 callers
Function
renderCodeBlock
(t: any)
src/utils/markdown.ts:113
↓ 1 callers
Function
renderDashboard
(c: Context, status: any)
src/web/pages/dashboard.ts:4
↓ 1 callers
Function
renderGoals
(c: Context)
src/web/pages/brain/goals.ts:4
↓ 1 callers
Function
renderGraph
(c: Context)
src/web/pages/brain/graph.ts:4
↓ 1 callers
Function
renderHeading
(t: any)
src/utils/markdown.ts:88
↓ 1 callers
Function
renderList
(t: any)
src/utils/markdown.ts:122
↓ 1 callers
Function
renderMarkdown
(md)
src/web/static/app.js:914
↓ 1 callers
Function
renderMemory
(c: Context, stats: any)
src/web/pages/brain/memory.ts:4
↓ 1 callers
Function
renderPermissions
(c: Context)
src/web/pages/permissions.ts:4
↓ 1 callers
Function
renderPerson
(c: Context, personId: string)
src/web/pages/brain/person.ts:4
↓ 1 callers
Function
renderPersons
(c: Context)
src/web/pages/brain/persons.ts:4
↓ 1 callers
Function
renderProviders
(c: Context, providers: any[])
src/web/pages/providers.ts:4
↓ 1 callers
Function
renderSchedules
(c: Context)
src/web/pages/schedules.ts:4
↓ 1 callers
Function
renderSettings
(c: Context, config: any, username: string)
src/web/pages/settings.ts:4
↓ 1 callers
Function
renderSkills
(c: Context)
src/web/pages/skills.ts:4
↓ 1 callers
Function
renderTable
(t: any)
src/utils/markdown.ts:157
↓ 1 callers
Function
renderToken
(t: any)
src/utils/markdown.ts:46
↓ 1 callers
Function
renderUsage
(c: Context)
src/web/pages/usage.ts:4
↓ 1 callers
Method
replaceManifest
(manifest: ScheduledTaskManifest)
src/core/scheduler.ts:177
↓ 1 callers
Method
requestScopeExternal
(path: string, mode: 'read' | 'write')
src/capabilities/permissions.ts:402
↓ 1 callers
Method
resetAccess
()
src/channels/telegram.ts:900
↓ 1 callers
Method
resetStepCounter
(targetId?: string)
src/channels/web.ts:250
↓ 1 callers
Method
resetUsage
()
src/utils/tokens.ts:58
↓ 1 callers
Method
resolveApproval
(id: string, action: string)
src/channels/web.ts:83
↓ 1 callers
Method
resolveConflict
(existing: MemoryRow, candidate: UserMemoryCandidate)
src/memory/user-memory.ts:423
↓ 1 callers
Method
restorePersistedTasks
()
src/core/scheduler.ts:191
↓ 1 callers
Function
runWithWatchdog
(agentFn: () => Promise<void>)
src/cli/watchdog.ts:7
↓ 1 callers
Function
saveSchedules
(tasks: ScheduledTaskManifest[])
src/core/scheduler.ts:48
↓ 1 callers
Function
saveSettings
(settings: ChatWebSettings)
src/web/api/chat.ts:31
↓ 1 callers
Method
saveToDisk
(conversationId: string, messages: MemoryEntry[])
src/memory/store.ts:102
↓ 1 callers
Method
scoreAndRank
(rows: MemoryRow[], query: string)
src/memory/user-memory.ts:492
↓ 1 callers
Method
searchFTS
(userKey: string, query: string, limit: number = 10)
src/memory/second-brain-db.ts:352
↓ 1 callers
Method
seedTemplate
()
src/skills/loader.ts:214
↓ 1 callers
Function
sendMessage
()
src/web/static/app.js:1270
↓ 1 callers
Method
sendProviderInfo
(name: string, model: string, targetId?: string)
src/channels/web.ts:229
↓ 1 callers
Method
sendStreamToChat
(chatId: number, textStream: AsyncIterable<string>)
src/channels/telegram.ts:391
↓ 1 callers
Method
setBudget
(newBudget: number)
src/utils/tokens.ts:65
↓ 1 callers
Method
setChannelContext
(channelId: string, channelType: string)
src/capabilities/registry.ts:86
↓ 1 callers
Method
setChatCommandContext
(ctx: import('../capabilities/registry.js').ChatCommandContext)
src/channels/telegram.ts:49
↓ 1 callers
Method
setChatCommandContext
(ctx: ChatCommandContext)
src/capabilities/registry.ts:78
↓ 1 callers
Method
setCurrentChannelType
(type: string)
src/capabilities/permissions.ts:164
↓ 1 callers
Function
setGitHubToken
(token: string)
src/utils/github.ts:7
↓ 1 callers
Method
setOnPermissionMode
(handler: (mode: PermissionMode, chatId: number) => void)
src/channels/telegram.ts:53
↓ 1 callers
Method
setOnScheduledTask
(handler: (manifest: ScheduledTaskManifest) => Promise<void>)
src/core/scheduler.ts:72
↓ 1 callers
Method
setSendFileHandler
(handler: (filePath: string) => Promise<void>)
src/capabilities/registry.ts:103
↓ 1 callers
Method
setSendMessageHandler
(handler: (content: string) => Promise<void>)
src/capabilities/registry.ts:107
↓ 1 callers
Function
shouldStoreCandidate
(candidate: UserMemoryCandidate)
src/memory/user-memory.ts:742
↓ 1 callers
Function
showLinuxStatus
()
src/cli/service.ts:293
↓ 1 callers
Function
showLogs
()
src/cli/daemon.ts:151
↓ 1 callers
Function
showMacStatus
()
src/cli/service.ts:180
↓ 1 callers
Function
showServiceStatus
()
src/cli/service.ts:72
↓ 1 callers
Function
showWindowsStatus
()
src/cli/service.ts:361
↓ 1 callers
Method
shutdown
()
src/core/agent.ts:1193
↓ 1 callers
Function
simpleMarkdown
(md)
src/web/static/app.js:875
↓ 1 callers
Function
sleep
(ms: number)
src/cli/watchdog.ts:34
↓ 1 callers
Method
sleep
()
src/core/agent.ts:324
↓ 1 callers
Method
softDeleteMemory
(id: string)
src/memory/user-memory.ts:314
↓ 1 callers
Function
splashScreen
()
src/index.ts:80
↓ 1 callers
Method
splitMessage
(text: string, maxLen: number)
src/channels/telegram.ts:918
↓ 1 callers
Method
start
()
src/channels/telegram.ts:61
↓ 1 callers
Method
startAll
()
src/channels/registry.ts:33
↓ 1 callers
Method
startHeartbeat
()
src/core/scheduler.ts:80
↓ 1 callers
Method
startSpinner
()
src/channels/cli.ts:167
↓ 1 callers
Method
startTypingLoop
(chatId: number)
src/channels/telegram.ts:376
↓ 1 callers
Method
stopHeartbeat
()
src/core/scheduler.ts:94
↓ 1 callers
Function
stripHtml
(html: string)
src/capabilities/web/fetch-url.ts:6
↓ 1 callers
Method
textSimilarity
(a: string, b: string)
src/core/agent.ts:181
↓ 1 callers
Function
tokenize
(input: string)
src/memory/user-memory.ts:801
↓ 1 callers
Function
topIndicator
(hasHiddenAbove: boolean)
src/utils/arrow-select.ts:48
↓ 1 callers
Method
typing
(targetId?: string)
src/channels/base.ts:12
↓ 1 callers
Function
uninstallLinux
()
src/cli/service.ts:261
↓ 1 callers
Function
uninstallMac
()
src/cli/service.ts:153
← previous
next →
401–500 of 707, ranked by callers