MCPcopy Create free account

hub / github.com/Zleap-AI/SAG / functions

Functions494 in github.com/Zleap-AI/SAG

↓ 365 callersFunctiont
(zh: string, en: string)
web/src/App.tsx:3722
↓ 38 callersFunctioncn
(...inputs: ClassValue[])
web/src/lib/utils.ts:4
↓ 34 callersFunctionrequest
(url: string, init?: RequestInit)
web/src/lib/api.ts:33
↓ 30 callersFunctionuseI18n
()
web/src/i18n.tsx:49
↓ 23 callersFunctiongetErrorMessage
(error: unknown)
web/src/App.tsx:4025
↓ 19 callersFunctionassertNotAborted
(signal?: AbortSignal)
src/services/mcp-agent-service.ts:428
↓ 14 callersFunctionemitSearchStep
( emit: SearchProgressEmitter | undefined, timings: Record<string, number>, key: string, step: { title
src/services/search-service.ts:607
↓ 14 callersFunctionestimateTokens
(text: string)
src/ingestion/chunking/markdown.ts:366
↓ 13 callersFunctionnormalizeSql
(value: unknown)
test/repository-delete.test.ts:76
↓ 13 callersFunctiontimed
( timings: Record<string, number>, key: string, fn: () => Promise<T>, emit?: SearchProgressEmitter,
src/services/search-service.ts:577
↓ 12 callersFunctionmakeStepId
(prefix: string)
web/src/App.tsx:3715
↓ 12 callersMethodsearch
(input: SearchInput, tenantId = config.DEFAULT_TENANT_ID, emit?: SearchProgressEmitter)
src/services/search-service.ts:56
↓ 11 callersFunctionisPlainRecord
(value: unknown)
web/src/App.tsx:4021
↓ 10 callersFunctioncreateModelCallLogger
(input: { kind: ModelCallKind; operation: string; request: unknown; })
src/observability/model-call-log.ts:30
↓ 10 callersMethodgetRuntimeSettings
()
src/services/ai-settings-service.ts:57
↓ 9 callersFunctioncountSummary
(value: unknown, unit: string, language: SupportedLanguage)
web/src/App.tsx:3991
↓ 9 callersFunctionsyncModelLogs
()
web/src/App.tsx:388
↓ 9 callersFunctiontoVectorLiteral
(vector: number[])
src/db/vector.ts:1
↓ 8 callersFunctionstripMarkdown
(text: string)
src/ingestion/chunking/markdown.ts:354
↓ 7 callersFunctionaddProcessStep
(step: Omit<ProcessStep, "id"> & { id?: string })
web/src/App.tsx:646
↓ 7 callersFunctionchunkMarkdown
(content: string, options: ChunkMarkdownOptions = {})
src/ingestion/chunking/markdown.ts:34
↓ 7 callersMethodgenerate
(text: string)
src/ai/embedding-client.ts:7
↓ 7 callersFunctionisRecord
(value: unknown)
src/services/mcp-agent-service.ts:868
↓ 7 callersFunctionnormalizeSql
(value: unknown)
test/repository-search-scope.test.ts:120
↓ 7 callersFunctionnotFound
(code: string, message: string)
src/api/server.ts:585
↓ 7 callersFunctionsourceFromRow
(row: Record<string, unknown>)
src/db/repositories.ts:32
↓ 7 callersFunctionunique
(items: Iterable<T>)
src/services/search-service.ts:560
↓ 6 callersFunctionbuildRerankUrl
(baseUrl: string)
src/ai/rerank-client.ts:132
↓ 6 callersFunctionclosePool
()
src/db/pool.ts:12
↓ 6 callersFunctioneventPayload
(record: Record<string, unknown>, eventKey: string, idKey: string)
web/src/App.tsx:3996
↓ 6 callersMethodextractEventsFromChunk
(input: { title: string; heading?: string; content: string; references: string[]; })
src/ai/llm-client.ts:9
↓ 6 callersFunctionloadMcpSession
(sessionId: string)
web/src/App.tsx:902
↓ 6 callersFunctionreadBoundedInteger
(value: unknown, fallback: number, min: number, max: number)
src/services/ai-settings-service.ts:188
↓ 6 callersFunctionrenderInlineMarkdown
( text: string, citations: AnswerCitation[] = [], onOpenCitation?: (citation: AnswerCitation) => void )
web/src/App.tsx:3501
↓ 5 callersFunctioncloseMenu
()
web/src/App.tsx:1388
↓ 5 callersFunctiondocumentFromRow
(row: Record<string, unknown>)
src/db/repositories.ts:73
↓ 5 callersFunctionevent
(id: string, sourceId: string, entityIds: string[])
test/search-service-multi.test.ts:276
↓ 5 callersFunctionflush
()
src/ingestion/chunking/markdown.ts:56
↓ 5 callersFunctionformatDate
(value?: string | null)
web/src/lib/utils.ts:12
↓ 5 callersFunctiongetEventIdsByEntityIds
(input: { entityIds: string[]; sourceIds: string[]; excludeEventIds?: string[]; })
src/db/repositories.ts:515
↓ 5 callersFunctiongetEventsWithEntityIds
(eventIds: string[])
src/db/repositories.ts:600
↓ 5 callersFunctiongraphText
(language: SupportedLanguage, zh: string, en: string)
web/src/components/ProjectGraphFlow.tsx:310
↓ 5 callersMethodingestDocument
( input: IngestDocumentInput, tenantId = config.DEFAULT_TENANT_ID, onProgress?: (update: IngestPro
src/services/ingestion-service.ts:55
↓ 5 callersFunctionloadProjectWorkspace
(projectId: string)
web/src/App.tsx:307
↓ 5 callersFunctionloadProjects
()
web/src/App.tsx:294
↓ 5 callersFunctionprogressForCompleted
(completed: number, total: number, start: number, end: number)
src/services/ingestion-service.ts:442
↓ 5 callersFunctionsearchModeLabel
(value: string | null, language: SupportedLanguage)
web/src/App.tsx:3977
↓ 5 callersFunctionsearchTraceText
(record: unknown, key: string)
web/src/App.tsx:3971
↓ 5 callersFunctionsend
(event: string, data: unknown)
src/api/server.ts:369
↓ 5 callersFunctionsplitMarkdownTableCells
(line: string)
web/src/App.tsx:3481
↓ 4 callersFunctionclampInteger
(value: unknown, fallback: number, min: number, max: number)
src/services/ai-settings-service.ts:192
↓ 4 callersFunctioncloneSection
(section: SectionDraft, rawContent: string, offset: number)
src/ingestion/chunking/markdown.ts:331
↓ 4 callersFunctioncoarseRankEventsByContent
(input: { sourceIds: string[]; eventIds: string[]; queryVector: number[]; maxEvents: number; })
src/db/repositories.ts:570
↓ 4 callersFunctiondb
(client?: Queryable)
src/db/repositories.ts:28
↓ 4 callersFunctionembeddingPreviewFromText
(value: unknown)
src/db/repositories.ts:103
↓ 4 callersFunctionentityFromRow
(row: Record<string, unknown>)
src/db/repositories.ts:61
↓ 4 callersMethodgetEvent
(eventId: string, tenantId = config.DEFAULT_TENANT_ID)
src/services/webui-service.ts:359
↓ 4 callersFunctiongetMcpSessionDetail
(input: { sessionId: string; tenantId: string; })
src/db/repositories.ts:1548
↓ 4 callersFunctionisLikelyLanguageDrift
(text: string, inputIsChinese: boolean)
src/ai/llm-client.ts:724
↓ 4 callersFunctionjsonContent
(value: unknown)
src/mcp/server.ts:119
↓ 4 callersFunctionlistModelCallLogs
(afterSequence = 0)
web/src/lib/api.ts:195
↓ 4 callersMethodlistProjects
(input: { limit?: number; cursor?: string; includeArchived?: boolean; }, tenantId = config.DEFAU
src/services/webui-service.ts:55
↓ 4 callersFunctionlocalKeywords
(text: string)
src/ai/llm-client.ts:674
↓ 4 callersFunctionmapWithConcurrency
( items: T[], concurrency: number, mapper: (item: T, index: number) => Promise<R> )
src/services/ingestion-service.ts:405
↓ 4 callersFunctionobjectSchema
(properties: Record<string, unknown>, required: string[] = [])
src/services/mcp-settings-service.ts:87
↓ 4 callersFunctionrefreshSessionsForProjects
(projectIds: string[])
web/src/App.tsx:425
↓ 4 callersFunctionresolveFinalSearchTopK
(value?: number)
src/services/search-service.ts:545
↓ 4 callersFunctionsummarizeConversationTitle
(content: string)
src/services/mcp-title.ts:9
↓ 4 callersFunctiontoTraceEvents
(events: Array<EventRecord & { entityIds?: string[] }>)
src/services/search-service.ts:625
↓ 4 callersMethodupdateUploadJob
(jobId: string, patch: Partial<UploadJobRecord> & Partial<IngestProgressUpdate>)
src/services/webui-service.ts:278
↓ 3 callersFunctionappendEventSnapshots
(trace: SearchTrace, events: SearchTraceEvent[])
src/services/search-service.ts:645
↓ 3 callersFunctionappendModelCallLog
(input: Omit<ModelCallLogRecord, "sequence" | "id" | "createdAt">)
src/observability/model-call-log.ts:106
↓ 3 callersFunctionbenchmarkEntityTypes
()
src/ai/llm-client.ts:280
↓ 3 callersFunctionboundedInteger
(value: unknown, fallback: number, min: number, max: number)
web/src/App.tsx:2659
↓ 3 callersMethodcallToolAndPersist
( runner: Awaited<ReturnType<McpAgentService["createRunner"]>>, sessionId: string, toolName: strin
src/services/mcp-agent-service.ts:356
↓ 3 callersMethodchatJson
(settings: AiRuntimeSettings, input: { system?: string; user?: string; messages?: ChatMessage[];
src/ai/llm-client.ts:111
↓ 3 callersFunctionclearClickTimer
()
web/src/components/ProjectGraphFlow.tsx:249
↓ 3 callersFunctioncollectNewEntityIds
( events: Map<string, EventRecord & { entityIds: string[] }>, trackedEntities: Set<string> )
src/services/search-service.ts:552
↓ 3 callersFunctionconciseText
(text: string, inputIsChinese: boolean)
src/ai/llm-client.ts:585
↓ 3 callersFunctioncreateMcpNotificationEmitter
(extra: McpToolExtra)
src/mcp/server.ts:145
↓ 3 callersFunctiondefaultMcpSessionTitle
()
src/services/mcp-title.ts:5
↓ 3 callersFunctiondeterministicEmbedding
(text: string, dimensions: number)
src/ai/embedding-client.ts:139
↓ 3 callersFunctionentityEmbeddingKey
(entity: ExtractedEntity)
src/services/ingestion-service.ts:434
↓ 3 callersFunctioneventFromRow
(row: Record<string, unknown>)
src/db/repositories.ts:45
↓ 3 callersFunctionfilterByKeyword
(items: T[], keyword: string, getTitle: (item: T) => string)
web/src/App.tsx:3621
↓ 3 callersFunctiongetErrorMessage
(error: unknown)
src/api/server.ts:594
↓ 3 callersFunctiongetEventDetail
(input: { eventId: string; tenantId: string; includeArchived?: boolean; })
src/db/repositories.ts:708
↓ 3 callersMethodgetSettingsOrFallback
()
src/services/ai-settings-service.ts:116
↓ 3 callersFunctionimportModelCallLog
(log: ModelCallLogRecord)
src/observability/model-call-log.ts:71
↓ 3 callersFunctionisMostlyChinese
(text: string)
src/ai/llm-client.ts:718
↓ 3 callersFunctionisRecord
(value: unknown)
src/ai/rerank-client.ts:267
↓ 3 callersMethodlistDocuments
(sourceId: string, input: { includeArchived?: boolean } = {}, tenantId = config.DEFAULT_TENANT_ID)
src/services/webui-service.ts:290
↓ 3 callersFunctionlocalExtractEvent
(input: { title: string; heading?: string; content: string; references: string[]; })
src/ai/llm-client.ts:630
↓ 3 callersFunctionlocalNamedEntities
(text: string)
src/ai/llm-client.ts:657
↓ 3 callersFunctionmcpSessionFromRow
(row: Record<string, unknown>)
src/db/repositories.ts:120
↓ 3 callersFunctionmodulo
(value: number, divisor: number)
web/src/components/ProjectGraphFlow.tsx:592
↓ 3 callersFunctionopenEntityDetail
(entityId: string)
web/src/App.tsx:1039
↓ 3 callersFunctionopenEventDetail
(eventId: string)
web/src/App.tsx:1031
↓ 3 callersFunctionpaginateItems
(items: T[], page: number, pageSize: number)
web/src/App.tsx:3626
↓ 3 callersFunctionpipeMcpModelCallLogs
(emit?: McpNotificationEmitter)
src/mcp/server.ts:176
next →1–100 of 494, ranked by callers