Code
Hub
Workspaces
Following
Trending
Connect
MCP
copy
Create free account
hub
/
github.com/NeoLi00/memX
/ functions
Functions
2,243 in github.com/NeoLi00/memX
⨍
Functions
2,243
◇
Types & classes
47
↓ 299 callers
Function
clamp01
(value: number)
src/support.ts:122
↓ 255 callers
Method
get
(factId: string)
src/db/repositories/factRepo.ts:225
↓ 227 callers
Function
normalizeText
(text: string)
src/support.ts:33
↓ 211 callers
Function
truncateText
(text: string, maxChars: number)
src/support.ts:90
↓ 186 callers
Method
prepare
(sql: string)
src/db/client.ts:68
↓ 146 callers
Function
Boolean
()
src/tooling.ts:13
↓ 102 callers
Function
String
()
src/tooling.ts:7
↓ 79 callers
Function
stableHash
(parts: Array<string | undefined | null>)
src/support.ts:18
↓ 76 callers
Function
normalizeName
(value: string)
src/support.ts:135
↓ 69 callers
Function
objectRecord
(value: unknown)
src/support.ts:269
↓ 64 callers
Function
readOption
(argv: string[], name: string)
src/bin/memx.ts:29
↓ 60 callers
Function
semanticTextSimilarity
(left: string, right: string)
src/pipeline/semantic/textSimilarity.ts:275
↓ 59 callers
Function
Number
()
src/tooling.ts:10
↓ 45 callers
Method
getStore
(ctx: MemoryOperationContext)
src/runtime.ts:129
↓ 45 callers
Function
uniqueNonEmpty
(values: string[], limit = 8)
src/pipeline/queryCompiler.ts:810
↓ 44 callers
Function
uniqueNonEmpty
( values: Array<string | null | undefined>, limit = Number.POSITIVE_INFINITY, )
src/pipeline/retrieve.ts:383
↓ 43 callers
Method
close
()
src/db/client.ts:114
↓ 43 callers
Method
exec
(sql: string)
src/db/client.ts:72
↓ 43 callers
Function
nowIso
(date = new Date())
src/support.ts:10
↓ 39 callers
Function
asNumber
( raw: unknown, fallback: number, issues: ValidationIssue[], path: string, opts: { min?: number; max
src/config.ts:494
↓ 39 callers
Function
safeJsonParse
(value: string | null | undefined, fallback: T)
src/support.ts:111
↓ 37 callers
Function
jsonToolResult
(payload: unknown)
src/tooling.ts:46
↓ 36 callers
Function
operationType
(queryAnalysis: QueryCompileResult)
src/pipeline/evidenceAssembler.ts:75
↓ 34 callers
Method
flush
()
src/pipeline/turnScheduler.ts:647
↓ 32 callers
Function
count
(table: string)
src/cli/registerCli.ts:544
↓ 31 callers
Method
enqueue
(ctx: MemoryOperationContext, messages: TurnCaptureMessage[])
src/pipeline/turnScheduler.ts:630
↓ 31 callers
Function
logger
()
tests/lifecycle-regressions.test.mjs:20
↓ 30 callers
Function
readString
(params: Record<string, unknown>, key: string)
src/tooling.ts:53
↓ 30 callers
Function
uniqueMaintenanceRefs
(values: Array<string | undefined | null>)
src/pipeline/maintenanceContract.ts:16
↓ 26 callers
Method
closeAll
()
src/runtime.ts:145
↓ 24 callers
Function
chunkCandidate
(query, overrides = {})
tests/evidence-packet-selection.test.mjs:83
↓ 24 callers
Function
minimalCtx
()
tests/llm-only-entities.test.mjs:31
↓ 23 callers
Function
dedupeEvidenceRows
(rows: EvidenceRow[], limit: number)
src/pipeline/memoryObjectsHelpers.ts:164
↓ 23 callers
Function
stringValue
(value: unknown)
src/pipeline/abstractionPromotion.ts:61
↓ 22 callers
Function
compileQueryWithoutSemanticFallback
( query: string, reason = "llm-only-query-compiler-unavailable", )
src/pipeline/queryCompiler.ts:2502
↓ 22 callers
Function
ctxFor
(dbPath)
tests/lifecycle-regressions.test.mjs:49
↓ 22 callers
Function
readString
(record: Record<string, unknown>, keys: string[])
src/host/hookPayload.ts:24
↓ 22 callers
Function
trimOrUndefined
(value: string | undefined)
src/host/standaloneQuickstart.ts:138
↓ 21 callers
Function
average
(values: number[])
src/pipeline/abstractionJobs.ts:282
↓ 21 callers
Function
filterBootstrapRows
(rows: T[])
src/pipeline/bootstrapFilter.ts:48
↓ 20 callers
Function
randomId
(prefix: string)
src/support.ts:14
↓ 19 callers
Function
asBoolean
(raw: unknown, fallback: boolean)
src/config.ts:511
↓ 19 callers
Function
normalizeSourceRefs
(refs: unknown)
src/pipeline/sourceRefs.ts:120
↓ 19 callers
Function
runHook
(eventName, payload)
tests/multi-agent-adapters.test.mjs:442
↓ 19 callers
Function
stringProp
(description: string)
src/host/mcpProtocol.ts:37
↓ 19 callers
Function
stringValue
(value: unknown)
src/pipeline/abstractionJobs.ts:301
↓ 19 callers
Function
textMentionsFocusEntity
(text: string | undefined, terms: string[])
src/host/service.ts:500
↓ 18 callers
Function
trimOrUndefined
(value: string | undefined)
src/host/quickstart.ts:122
↓ 18 callers
Function
truthyString
(value: unknown)
src/pipeline/strategyHypotheses.ts:95
↓ 17 callers
Function
compileQuery
(params: QueryCompileParams)
src/pipeline/queryCompiler.ts:2758
↓ 17 callers
Function
recordMemoryLlmBudgetCall
( audit: MemoryLlmBudgetAudit | undefined, entry: Omit<MemoryLlmBudgetCall, "at"> & { at?: string }, )
src/pipeline/llmBudgetAudit.ts:23
↓ 17 callers
Function
stringArray
(value: unknown)
src/pipeline/maintenanceContract.ts:26
↓ 16 callers
Function
assessNativeContextEligibility
( query: string, queryAnalysis: QueryCompileResult, bundle: EvidenceBundle, )
src/host/service.ts:900
↓ 16 callers
Function
buildOperationContext
( config: MemoryPluginConfig, actor: PluginActorContext, overrides?: { now?: string }, )
src/runtime.ts:89
↓ 16 callers
Method
delete
(params: { agentId: string; scope?: string; key?: string })
src/db/repositories/stateRepo.ts:98
↓ 16 callers
Function
evidenceCoverageForText
( queryAnalysis: QueryCompileResult, text: string, )
src/pipeline/evidenceCoverage.ts:52
↓ 16 callers
Function
resolveEntityMention
( store: MemxStoreBundle, ctx: MemoryOperationContext, mention: EntityMention, options: ResolveOptions
src/pipeline/entityResolver.ts:487
↓ 16 callers
Function
stringValue
(value: unknown)
src/pipeline/stateLifecycle.ts:280
↓ 15 callers
Function
assembleEvidencePackets
(input: EvidenceAssemblerInput)
src/pipeline/evidenceAssembler.ts:3731
↓ 15 callers
Function
buildEntityMention
(params: BuildEntityMentionParams)
src/pipeline/entityResolver.ts:455
↓ 15 callers
Function
countByAgent
(table: string, column = "agent_id")
src/cli/registerCli.ts:583
↓ 15 callers
Function
entryKey
(entry: PromptEvidenceCandidate)
src/pipeline/evidenceAssembler.ts:275
↓ 15 callers
Function
hasFlag
(argv: string[], name: string)
src/bin/memx.ts:37
↓ 15 callers
Function
inferredSlotRole
( queryAnalysis: QueryCompileResult, entry: PromptEvidenceCandidate, )
src/pipeline/evidenceAssembler.ts:1040
↓ 15 callers
Method
listByAgent
(params: { agentId: string; limit?: number; readEpoch?: number })
src/db/repositories/beliefRepo.ts:96
↓ 15 callers
Function
slotFromHints
(params: { id: string; role?: QueryEvidenceSlot["role"]; requiredRole?: QueryEvidenceSlot["requiredRole"
src/pipeline/queryCompiler.ts:1218
↓ 15 callers
Function
subjectUser
()
src/pipeline/normalize.ts:72
↓ 15 callers
Function
toEvidenceRow
(params: { id: string; text: string; score: number; scope: string; confidence?: number; sourceRef?
src/pipeline/memoryObjectsHelpers.ts:17
↓ 14 callers
Function
canonicalStateKey
(key: string)
src/pipeline/semantic/heuristics.ts:259
↓ 14 callers
Function
dedupeSearchHits
(hits: T[])
src/pipeline/candidateGeneration.ts:566
↓ 14 callers
Function
entryAuthorRole
( entry: PromptEvidenceCandidate, )
src/pipeline/evidenceAssembler.ts:281
↓ 14 callers
Function
trimOrUndefined
(value: string | undefined)
src/host/uninstall.ts:66
↓ 14 callers
Function
withStore
(params: { config: MemoryPluginConfig; appConfig: { agents?: { list?: Array<{ id?: string }> } }; manage
src/cli/registerCli.ts:515
↓ 13 callers
Function
bindingSourceRefsForEntry
(entry: PromptEvidenceCandidate)
src/pipeline/evidenceAssembler.ts:161
↓ 13 callers
Function
getStore
()
src/plugin-tools.ts:67
↓ 13 callers
Method
listByTask
(taskId: string)
src/db/repositories/chunkRepo.ts:131
↓ 13 callers
Function
projectCodeFromStateKey
(key: string)
src/pipeline/projectIdentity.ts:248
↓ 13 callers
Function
projectIdentityKey
(value: string)
src/pipeline/projectIdentity.ts:165
↓ 13 callers
Function
resolutionResult
(params: { mention: EntityMention; entity: NormalizedEntity; method: EntityResolutionMethod; confidenc
src/pipeline/entityResolver.ts:260
↓ 13 callers
Function
semanticDraftGateScores
( action: MemoryAction, hintConfidence: number | undefined, )
src/pipeline/policy.ts:266
↓ 13 callers
Function
shouldUseExactSnippetSupport
(queryAnalysis: QueryCompileResult)
src/pipeline/retrieve.ts:410
↓ 13 callers
Function
slotCoverageForText
( queryAnalysis: RecallQueryAnalysis, text: string, )
src/pipeline/retrieve.ts:1255
↓ 13 callers
Function
sourceRefsForEntry
(entry: PromptEvidenceCandidate)
src/pipeline/evidenceAssembler.ts:124
↓ 13 callers
Function
sourceRefsFromMaintenanceMetadata
( metadata: Record<string, unknown> | undefined, )
src/pipeline/maintenanceContract.ts:40
↓ 12 callers
Function
average
(values: number[])
src/pipeline/beliefAggregation.ts:95
↓ 12 callers
Method
countByAgent
(params: { agentId: string; stages?: AbstractionCandidateRecord["stage"][]; })
src/db/repositories/abstractionRepo.ts:151
↓ 12 callers
Method
finishMaintenance
(run: MaintenanceRunRecord)
src/db/repositories/auditRepo.ts:736
↓ 12 callers
Method
getEntityById
(entityId: string)
src/db/repositories/graphRepo.ts:228
↓ 12 callers
Function
hook
(eventName: string)
src/host/standaloneQuickstart.ts:641
↓ 12 callers
Function
metadataNumber
( metadata: Record<string, unknown> | undefined, key: string, fallback = 0, )
src/pipeline/beliefAggregation.ts:441
↓ 12 callers
Function
persistResolution
( store: MemxStoreBundle, ctx: MemoryOperationContext, result: EntityResolutionResult, )
src/pipeline/entityResolver.ts:391
↓ 12 callers
Function
queryAnchorSupport
(text: string, anchors: string[])
src/pipeline/semantic/heuristics.ts:247
↓ 12 callers
Function
splitLabelValue
(text: string)
src/pipeline/memoryObjectsHelpers.ts:6
↓ 12 callers
Function
tokenizeSearchTerms
(text: string, stopwords: Set<string>)
src/pipeline/semantic/heuristics.ts:89
↓ 12 callers
Method
upsert
( fact: NormalizedFact, changeReason: string, )
src/db/repositories/factRepo.ts:360
↓ 11 callers
Function
fact
(id, text, relation, object)
tests/evidence-packet-selection.test.mjs:582
↓ 11 callers
Function
informativePromptAnchorSupport
(text: string, anchors: string[])
src/pipeline/retrieve.ts:976
↓ 11 callers
Function
json
(res: ServerResponse, status: number, payload: unknown)
src/host/httpServer.ts:9
↓ 11 callers
Method
keywordSearch
(params: { agentId: string; scopes: string[]; query: string; limit: number; readEpoch?: nu
src/db/repositories/vectorRepo.ts:106
↓ 11 callers
Function
metadataString
(value: unknown)
src/pipeline/taskSummary.ts:57
next →
1–100 of 2,243, ranked by callers