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
↓ 2 callers
Function
isLikelyHumanName
(name: string)
src/memory/user-memory.ts:723
↓ 2 callers
Function
isRowStale
(row: MemoryRow)
src/memory/user-memory.ts:790
↓ 2 callers
Function
isServiceInstalled
()
src/cli/service.ts:13
↓ 2 callers
Method
linkMemoryPerson
(memoryId: string, personId: string, role: string = 'mentioned', confidence: number = 0.7)
src/memory/second-brain-db.ts:498
↓ 2 callers
Method
listPersons
(query?: string, limit: number = 100)
src/memory/user-memory.ts:131
↓ 2 callers
Method
load
()
src/capabilities/permissions.ts:217
↓ 2 callers
Method
loadFromDisk
(conversationId: string)
src/memory/store.ts:92
↓ 2 callers
Function
looksLikeToken
(value: string, minLength: number = 20)
src/index.ts:218
↓ 2 callers
Method
markSuccess
(name: string)
src/providers/registry.ts:77
↓ 2 callers
Function
memToJson
(r: any)
src/web/api/brain.ts:29
↓ 2 callers
Function
mentionsPerson
(text: string, name: string)
src/memory/user-memory.ts:731
↓ 2 callers
Method
normalizePersonName
(input: string)
src/memory/second-brain-db.ts:689
↓ 2 callers
Method
openCliMemoryMenu
(channel: CLIChannel, channelId: string, select?: (title: string, options: ArrowSelectOption[]) => Promise<str
src/core/agent.ts:1638
↓ 2 callers
Method
openCliTelegramMenu
( channel: CLIChannel, channelId: string, select: (title: string, options: ArrowSelectOption[]) =>
src/core/agent.ts:1723
↓ 2 callers
Function
printTelegramAccessState
(config: MercuryConfig)
src/index.ts:454
↓ 2 callers
Method
prune
(olderThanDays: number = 7)
src/memory/store.ts:180
↓ 2 callers
Method
recordNoActionResult
()
src/core/agent.ts:79
↓ 2 callers
Function
renderTokens
(tokens: any[])
src/utils/markdown.ts:42
↓ 2 callers
Function
restartDaemon
()
src/cli/daemon.ts:129
↓ 2 callers
Method
restore
()
src/utils/tokens.ts:135
↓ 2 callers
Method
resumePrompt
()
src/channels/cli.ts:344
↓ 2 callers
Method
retrieveRelevant
( query: string, options?: { maxRecords?: number; maxChars?: number }, )
src/memory/user-memory.ts:162
↓ 2 callers
Method
rowHasNegationMismatch
(existingSummary: string, incomingTerms: string[])
src/memory/second-brain-db.ts:319
↓ 2 callers
Method
sanitizeLogEntry
(entry: Omit<TokenLogEntry, 'timestamp'> & { timestamp?: unknown }, timestamp: number)
src/utils/tokens.ts:178
↓ 2 callers
Method
sanitizeTimestamp
(value: unknown)
src/utils/tokens.ts:174
↓ 2 callers
Method
saveSkill
(name: string, content: string)
src/skills/loader.ts:113
↓ 2 callers
Method
searchRelevant
(userKey: string, query: string, limit: number = 10)
src/memory/second-brain-db.ts:328
↓ 2 callers
Function
send
(data: string)
src/web/api/chat.ts:55
↓ 2 callers
Method
sendMemoryKeyboard
(chatId: number)
src/channels/telegram.ts:714
↓ 2 callers
Method
sendMemoryOverview
(channel: any, channelId: string)
src/core/agent.ts:1613
↓ 2 callers
Method
setBypassPermissions
(enabled: boolean)
src/channels/web.ts:275
↓ 2 callers
Method
setCwd
(dir: string)
src/capabilities/registry.ts:99
↓ 2 callers
Method
setRestrictUser
(enabled: boolean)
src/channels/web.ts:279
↓ 2 callers
Method
setSkillActive
(name: string, active: boolean)
src/skills/loader.ts:154
↓ 2 callers
Method
softDelete
(id: string)
src/memory/second-brain-db.ts:356
↓ 2 callers
Method
start
()
src/channels/base.ts:7
↓ 2 callers
Function
startWebServer
()
src/web/server.ts:159
↓ 2 callers
Method
stop
()
src/channels/telegram.ts:255
↓ 2 callers
Method
stopAll
()
src/core/scheduler.ts:219
↓ 2 callers
Function
stopDaemon
()
src/cli/daemon.ts:98
↓ 2 callers
Method
suspendPrompt
()
src/channels/cli.ts:337
↓ 2 callers
Function
toCamel
(r: any)
src/web/api/brain-fallback.ts:55
↓ 2 callers
Method
toPersonRecord
(row: PersonListRow)
src/memory/user-memory.ts:519
↓ 2 callers
Method
totalActive
(userKey: string)
src/memory/second-brain-db.ts:723
↓ 2 callers
Function
truncate
(maxLen: number)
src/utils/tool-label.ts:50
↓ 2 callers
Function
tryAutoDaemonize
()
src/cli/daemon.ts:163
↓ 2 callers
Function
typeChars
(text, done, customSpeed)
docs/app.js:157
↓ 2 callers
Function
typeTerminal
(container, lines, speed, callback)
docs/app.js:70
↓ 2 callers
Method
updateStatusMessage
(text: string, targetId?: string)
src/channels/telegram.ts:947
↓ 2 callers
Function
validateSession
(token: string)
src/web/auth.ts:131
↓ 1 callers
Method
addPersonAlias
(personId: string, alias: string, source: string = 'memory')
src/memory/second-brain-db.ts:487
↓ 1 callers
Method
addSSEClient
(controller: ReadableStreamDefaultController)
src/channels/web.ts:66
↓ 1 callers
Method
addScope
(path: string, read: boolean, write: boolean)
src/capabilities/permissions.ts:374
↓ 1 callers
Method
addTask
(task: ScheduledTask)
src/core/scheduler.ts:102
↓ 1 callers
Function
appendToEnv
(key: string, value: string)
src/index.ts:423
↓ 1 callers
Method
askPermissionMode
()
src/channels/base.ts:14
↓ 1 callers
Function
attempt
()
src/cli/watchdog.ts:10
↓ 1 callers
Function
basename
(p: string)
src/utils/tool-label.ts:45
↓ 1 callers
Method
birth
()
src/core/agent.ts:305
↓ 1 callers
Function
bottomIndicator
(hasHiddenBelow: boolean)
src/utils/arrow-select.ts:51
↓ 1 callers
Function
buildActiveSummary
(records: MemoryRow[])
src/memory/user-memory.ts:895
↓ 1 callers
Function
buildProfileSummary
(records: MemoryRow[])
src/memory/user-memory.ts:878
↓ 1 callers
Function
buildReflectionCandidates
(records: MemoryRow[])
src/memory/user-memory.ts:912
↓ 1 callers
Method
buildSystemPrompt
()
src/core/agent.ts:947
↓ 1 callers
Method
canAfford
(estimatedTokens: number)
src/utils/tokens.ts:39
↓ 1 callers
Function
changePassword
()
src/web/static/app.js:85
↓ 1 callers
Function
changeUsername
()
src/web/static/app.js:74
↓ 1 callers
Function
chooseDefaultProvider
(config: MercuryConfig)
src/index.ts:174
↓ 1 callers
Function
chooseProvidersToConfigure
(config: MercuryConfig, isReconfig: boolean)
src/index.ts:145
↓ 1 callers
Function
chooseRecommendedModel
( provider: ProviderName, models: string[], currentModel?: string, )
src/utils/provider-models.ts:145
↓ 1 callers
Method
clearByType
(userKey: string, type?: string)
src/memory/second-brain-db.ts:362
↓ 1 callers
Method
clearElevation
()
src/capabilities/permissions.ts:196
↓ 1 callers
Method
clearMemoryPersons
(memoryId: string)
src/memory/second-brain-db.ts:509
↓ 1 callers
Method
clearRelationshipsByMemory
(memoryId: string)
src/memory/second-brain-db.ts:514
↓ 1 callers
Method
clearUserPersonGraph
(userKey: string)
src/memory/second-brain-db.ts:519
↓ 1 callers
Function
completeInitialTelegramPairing
(config: MercuryConfig)
src/index.ts:482
↓ 1 callers
Method
countByType
(userKey: string)
src/memory/second-brain-db.ts:713
↓ 1 callers
Function
createApproveCommandTool
(permissions: PermissionManager)
src/capabilities/shell/approve-command.ts:5
↓ 1 callers
Function
createApproveScopeTool
(permissions: PermissionManager, getCwd: () => string)
src/capabilities/filesystem/approve-scope.ts:6
↓ 1 callers
Function
createBudgetStatusTool
(tokenBudget: TokenBudget)
src/capabilities/system/budget-status.ts:5
↓ 1 callers
Function
createCancelTaskTool
(scheduler: Scheduler)
src/capabilities/scheduler/cancel-task.ts:5
↓ 1 callers
Function
createCdTool
(getCwd: () => string, setCwd: (dir: string) => void)
src/capabilities/shell/cd.ts:6
↓ 1 callers
Function
createCreateFileTool
(permissions: PermissionManager, getCwd: () => string)
src/capabilities/filesystem/create-file.ts:7
↓ 1 callers
Function
createCreateIssueTool
()
src/capabilities/github/create-issue.ts:5
↓ 1 callers
Function
createCreatePrTool
()
src/capabilities/github/create-pr.ts:5
↓ 1 callers
Function
createDeleteFileTool
(permissions: PermissionManager, getCwd: () => string)
src/capabilities/filesystem/delete-file.ts:7
↓ 1 callers
Function
createEditFileTool
(permissions: PermissionManager, getCwd: () => string)
src/capabilities/filesystem/edit-file.ts:7
↓ 1 callers
Function
createFetchUrlTool
()
src/capabilities/web/fetch-url.ts:44
↓ 1 callers
Function
createGitAddTool
(getCwd: () => string)
src/capabilities/git/git-add.ts:5
↓ 1 callers
Function
createGitCommitTool
(getCwd: () => string)
src/capabilities/git/git-commit.ts:9
↓ 1 callers
Function
createGitDiffTool
(getCwd: () => string)
src/capabilities/git/git-diff.ts:5
↓ 1 callers
Function
createGitLogTool
(getCwd: () => string)
src/capabilities/git/git-log.ts:5
↓ 1 callers
Function
createGitPushTool
(permissions: PermissionManager, getCwd: () => string)
src/capabilities/git/git-push.ts:6
↓ 1 callers
Function
createGitStatusTool
(getCwd: () => string)
src/capabilities/git/git-status.ts:5
↓ 1 callers
Function
createGithubApiTool
()
src/capabilities/github/github-api.ts:31
↓ 1 callers
Function
createInstallSkillTool
(skillLoader: SkillLoader)
src/capabilities/skills/install-skill.ts:6
↓ 1 callers
Function
createListDirTool
(permissions: PermissionManager, getCwd: () => string)
src/capabilities/filesystem/list-dir.ts:7
↓ 1 callers
Function
createListIssuesTool
()
src/capabilities/github/list-issues.ts:5
↓ 1 callers
Function
createListSkillsTool
(skillLoader: SkillLoader)
src/capabilities/skills/list-skills.ts:5
↓ 1 callers
Function
createListTasksTool
(scheduler: Scheduler)
src/capabilities/scheduler/list-tasks.ts:5
← previous
next →
201–300 of 707, ranked by callers