MCPcopy Index your code

hub / github.com/cosmicstack-labs/mercury-agent / functions

Functions707 in github.com/cosmicstack-labs/mercury-agent

↓ 110 callersMethodget
(type: ChannelType)
src/channels/registry.ts:25
↓ 104 callersMethodreplace
(text: string)
src/soul/identity.ts:142
↓ 77 callersMethodsend
(content: string, targetId?: string, elapsedMs?: number)
src/channels/base.ts:9
↓ 29 callersMethodremember
( candidates: UserMemoryCandidate[], source: UserMemoryRecord['source'] = 'conversation', )
src/memory/user-memory.ts:216
↓ 28 callersFunctiongetEnv
(key: string, fallback: string = '')
src/utils/config.ts:111
↓ 25 callersFunctiongetMercuryHome
()
src/utils/config.ts:15
↓ 24 callersFunctionsaveConfig
(config: MercuryConfig)
src/utils/config.ts:232
↓ 23 callersFunctionloadConfig
()
src/utils/config.ts:222
↓ 19 callersFunctionask
(prompt: string)
src/index.ts:92
↓ 18 callersMethodtransition
(to: AgentState)
src/core/lifecycle.ts:27
↓ 17 callersMethodgetCwd
()
src/capabilities/registry.ts:95
↓ 15 callersMethodgetSummary
()
src/memory/user-memory.ts:97
↓ 14 callersMethodadd
(fact: Omit<LongTermFact, 'id' | 'timestamp'>)
src/memory/store.ts:118
↓ 14 callersMethodclear
(conversationId: string)
src/memory/store.ts:86
↓ 14 callersFunctionformatTelegramUser
(user: { userId: number; username?: string; firstName?: string; })
src/index.ts:444
↓ 14 callersMethodsendDirectMessage
(chatId: number, content: string)
src/channels/telegram.ts:1013
↓ 13 callersMethodhandleChatCommand
(content: string, channelType: string, channelId: string)
src/core/agent.ts:1236
↓ 13 callersFunctionrenderLayout
(c: Context, title: string, body: string)
src/web/pages/layout.ts:24
↓ 12 callersFunctioncreateStore
()
src/memory/user-memory.test.ts:13
↓ 12 callersMethodgetStatusText
()
src/utils/tokens.ts:102
↓ 12 callersMethodinit
()
src/memory/second-brain-db.ts:103
↓ 12 callersFunctionmemoryHealthScore
(row: MemoryRow)
src/memory/user-memory.ts:761
↓ 11 callersMethodbroadcast
(event: ChatEvent)
src/channels/web.ts:77
↓ 11 callersMethodclose
()
src/types/sql-js.d.ts:1
↓ 11 callersFunctionensureMemory
()
src/web/api/brain.ts:16
↓ 11 callersFunctionrenderInline
(tokens: any[] | undefined)
src/utils/markdown.ts:95
↓ 11 callersFunctiontrimFirst
(s: string)
src/utils/tool-label.ts:125
↓ 10 callersFunctionclamp
(value: number, min: number, max: number)
src/memory/user-memory.ts:829
↓ 10 callersMethodexec
(sql: string, params?: any[])
src/types/sql-js.d.ts:1
↓ 10 callersFunctiongetDaemonStatus
()
src/cli/daemon.ts:40
↓ 10 callersMethodgetRecent
(count: number = 20)
src/memory/store.ts:176
↓ 10 callersMethodsanitizeCount
(value: unknown)
src/utils/tokens.ts:170
↓ 9 callersFunctiongetEnvBool
(key: string, fallback: boolean)
src/utils/config.ts:120
↓ 9 callersFunctiongetMemoryDir
()
src/utils/config.ts:19
↓ 9 callersMethodgetMeta
(key: string)
src/memory/second-brain-db.ts:702
↓ 9 callersFunctionmdToTelegram
(text: string)
src/utils/markdown.ts:185
↓ 9 callersFunctionnormalize
(input: string)
src/memory/user-memory.ts:809
↓ 9 callersMethodresolveTargetChatIds
(targetId?: string)
src/channels/telegram.ts:852
↓ 8 callersFunctionapproveTelegramPendingRequest
( config: MercuryConfig, userId: number, role: 'admin' | 'member' = 'member', )
src/utils/config.ts:358
↓ 8 callersMethodcheckFsAccess
(path: string, mode: 'read' | 'write')
src/capabilities/permissions.ts:255
↓ 8 callersFunctiongetTelegramApprovedUsers
(config: MercuryConfig)
src/utils/config.ts:289
↓ 8 callersMethodisLearningPaused
()
src/memory/user-memory.ts:261
↓ 8 callersMethodsearch
(query: string, limit: number = 5)
src/memory/store.ts:128
↓ 8 callersMethodtoRecord
(row: MemoryRow)
src/memory/user-memory.ts:574
↓ 7 callersFunctionaddTelegramPendingRequest
( config: MercuryConfig, request: Omit<TelegramPendingRequest, 'requestedAt'> & { requestedAt?: string },
src/utils/config.ts:337
↓ 7 callersFunctionbuildModelCatalog
( provider: ProviderName, models: string[], currentModel?: string, )
src/utils/provider-models.ts:172
↓ 7 callersFunctionclearTelegramAccess
(config: MercuryConfig)
src/utils/config.ts:449
↓ 7 callersFunctioncommandExists
(cmd)
scripts/check-native-deps.js:53
↓ 7 callersFunctionconfigure
(existingConfig?: MercuryConfig)
src/index.ts:528
↓ 7 callersFunctiongetDefaultConfig
()
src/utils/config.ts:127
↓ 7 callersFunctiongetTelegramAccessSummary
(config: MercuryConfig)
src/utils/config.ts:331
↓ 7 callersFunctiongithubRequest
(path: string, options: GitHubRequestOptions = {})
src/utils/github.ts:26
↓ 7 callersFunctionhasTelegramAdmins
(config: MercuryConfig)
src/utils/config.ts:327
↓ 7 callersFunctionhr
()
src/index.ts:57
↓ 7 callersFunctionloadWebAuth
()
src/web/auth.ts:31
↓ 7 callersFunctionmaskKey
(key: string)
src/index.ts:102
↓ 7 callersFunctionrestartDaemonIfRunning
(message?: string)
src/index.ts:472
↓ 7 callersMethodstripHtml
(html: string)
src/channels/telegram.ts:936
↓ 6 callersFunctioncheck
(label, fn)
scripts/verify-package.cjs:12
↓ 6 callersMethodconsolidate
()
src/memory/user-memory.ts:269
↓ 6 callersMethodescapeHtml
(text: string)
src/channels/telegram.ts:911
↓ 6 callersFunctionfindTelegramPendingRequest
(config: MercuryConfig, userId: number)
src/utils/config.ts:316
↓ 6 callersFunctiongetProviderLabel
(name: ProviderName)
src/index.ts:123
↓ 6 callersFunctionisSetupComplete
()
src/utils/config.ts:240
↓ 6 callersFunctionlogPath
()
src/cli/daemon.ts:15
↓ 6 callersMethodpersistSchedules
()
src/core/scheduler.ts:215
↓ 6 callersFunctionpidPath
()
src/cli/daemon.ts:11
↓ 6 callersMethodreset
()
src/core/agent.ts:233
↓ 6 callersMethodresetIfNewDay
()
src/utils/tokens.ts:109
↓ 6 callersMethodsendStepDone
(toolName: string, result: unknown, targetId?: string)
src/channels/web.ts:219
↓ 6 callersMethodsendToolFeedback
(toolName: string, args: Record<string, unknown>, targetId?: string)
src/channels/web.ts:204
↓ 6 callersMethodupdate
(row: Partial<MemoryRow> & { id: string })
src/memory/second-brain-db.ts:258
↓ 5 callersMethoddiscover
()
src/skills/loader.ts:38
↓ 5 callersMethodendOutput
()
src/channels/cli.ts:330
↓ 5 callersFunctionescapeHtml
(text: string)
src/utils/markdown.ts:181
↓ 5 callersMethodgetById
(id: string)
src/memory/second-brain-db.ts:287
↓ 5 callersFunctiongetEnvNum
(key: string, fallback: number)
src/utils/config.ts:115
↓ 5 callersMethodgetManifest
(id: string)
src/core/scheduler.ts:173
↓ 5 callersMethodgetManifests
()
src/core/scheduler.ts:169
↓ 5 callersFunctiongetSessionCookieName
()
src/web/auth.ts:145
↓ 5 callersMethodhandleBudgetCommand
(subcommand: string, channelType: string, channelId: string)
src/core/agent.ts:1206
↓ 5 callersFunctionparseSkillMd
(content: string)
src/skills/loader.ts:11
↓ 5 callersMethodpersist
()
src/utils/tokens.ts:120
↓ 5 callersFunctionpromptApiKeyWithModelSelection
( config: MercuryConfig, provider: ProviderName, providerLabel: string, prompt: string, isReconfig:
src/index.ts:320
↓ 5 callersMethodsave
(manifest?: PermissionsManifest)
src/capabilities/permissions.ts:232
↓ 5 callersMethodsetMeta
(key: string, value: string)
src/memory/second-brain-db.ts:697
↓ 4 callersMethodaddTempScope
(path: string, read: boolean, write: boolean)
src/capabilities/permissions.ts:423
↓ 4 callersFunctionapproveTelegramPendingRequestByPairingCode
( config: MercuryConfig, pairingCode: string, )
src/utils/config.ts:391
↓ 4 callersFunctionautoDaemonize
()
src/index.ts:838
↓ 4 callersMethodgetActiveSummary
()
src/memory/user-memory.ts:112
↓ 4 callersMethodgetChatCommandContext
()
src/capabilities/registry.ts:82
↓ 4 callersFunctiongetTelegramPendingRequests
(config: MercuryConfig)
src/utils/config.ts:304
↓ 4 callersMethodgetToolNames
()
src/capabilities/registry.ts:195
↓ 4 callersFunctionisBetterSqlite3Available
()
src/memory/second-brain-db.ts:31
↓ 4 callersMethodload
()
src/soul/identity.ts:126
↓ 4 callersMethodloadOrInit
(filename: string, template: string)
src/soul/identity.ts:178
↓ 4 callersFunctionoverlapScore
(a: string, b: string)
src/memory/user-memory.ts:813
↓ 4 callersMethodrecordUsage
(entry: Omit<TokenLogEntry, 'timestamp'>)
src/utils/tokens.ts:82
↓ 4 callersFunctionrejectTelegramPendingRequest
(config: MercuryConfig, userId: number)
src/utils/config.ts:401
↓ 4 callersMethodremoveTask
(id: string)
src/core/scheduler.ts:155
next →1–100 of 707, ranked by callers