Code
Hub
Workspaces
Following
Trending
Connect
MCP
copy
Create free account
hub
/
github.com/Zleap-AI/SAG
/ functions
Functions
494 in github.com/Zleap-AI/SAG
⨍
Functions
494
◇
Types & classes
85
↓ 1 callers
Function
normalizeToolArguments
(toolName: string, args: Record<string, unknown>)
src/services/mcp-agent-service.ts:434
↓ 1 callers
Function
normalizeVector
(vector: number[])
src/db/vector.ts:8
↓ 1 callers
Function
numberOrNull
(value: unknown)
web/src/App.tsx:4017
↓ 1 callers
Function
openRenameProjectDialog
(project: SourceRecord)
web/src/App.tsx:1298
↓ 1 callers
Function
parseJsonOrText
(text: string)
src/ai/rerank-client.ts:220
↓ 1 callers
Function
parseJsonOrText
(text: string)
src/ai/llm-client.ts:201
↓ 1 callers
Function
parseJsonOrText
(text: string)
src/ai/embedding-client.ts:112
↓ 1 callers
Function
parseJsonOrText
(text: string)
src/services/mcp-agent-service.ts:592
↓ 1 callers
Function
parseMarkdownTableAlignments
(line: string)
web/src/App.tsx:3486
↓ 1 callers
Function
parseModelCallLogProgress
(message: string | undefined)
src/services/mcp-agent-service.ts:820
↓ 1 callers
Function
parseRerankResponse
(responseBody: unknown, candidates: EventRecord[], topK: number)
src/ai/rerank-client.ts:152
↓ 1 callers
Function
parseSearchProgress
(message: string | undefined)
src/services/mcp-agent-service.ts:787
↓ 1 callers
Function
permanentlyDeleteDocument
(document: DocumentRecord)
web/src/App.tsx:573
↓ 1 callers
Function
permanentlyDeleteProject
(project: SourceRecord)
web/src/App.tsx:516
↓ 1 callers
Function
persistModelLogs
(logs: ModelCallLogRecord[])
web/src/App.tsx:3667
↓ 1 callers
Function
placeEventsOnOuterRings
(input: { events: ProjectGraphEventRecord[]; positions: Map<string, GraphPosition>; angleOffset: number;
web/src/components/ProjectGraphFlow.tsx:526
↓ 1 callers
Function
placeOnRings
(input: { ids: string[]; positions: Map<string, GraphPosition>; startRadius: number; ringGap: number;
web/src/components/ProjectGraphFlow.tsx:596
↓ 1 callers
Function
planToolAction
(input: { userContent: string; session: McpSessionRecord; history: Array<{ role: string; content: string
src/services/mcp-agent-service.ts:469
↓ 1 callers
Function
pollUploadJobs
(jobIds: string[])
web/src/App.tsx:363
↓ 1 callers
Method
prepareEvents
(input: { input: IngestDocumentInput; chunks: ChunkDraft[]; concurrency: number; onProgress?:
src/services/ingestion-service.ts:276
↓ 1 callers
Function
previewForPrompt
(content: string)
src/services/mcp-agent-service.ts:729
↓ 1 callers
Function
processStatusClassName
(status: ProcessStepStatus)
web/src/App.tsx:3709
↓ 1 callers
Function
processStatusLabel
(status: ProcessStepStatus, t: (zh: string, en: string) => string)
web/src/App.tsx:3703
↓ 1 callers
Function
readIndex
(value: unknown)
src/ai/rerank-client.ts:187
↓ 1 callers
Function
readResponseBody
(response: Response)
src/ai/rerank-client.ts:231
↓ 1 callers
Function
readResponseBody
(response: Response)
src/ai/llm-client.ts:212
↓ 1 callers
Function
readResponseBody
(response: Response)
src/ai/embedding-client.ts:123
↓ 1 callers
Function
readResponseBody
(response: Response)
src/services/mcp-agent-service.ts:603
↓ 1 callers
Function
readScore
(value: unknown, position: number)
src/ai/rerank-client.ts:195
↓ 1 callers
Function
rememberImportedLogId
(id: string)
src/observability/model-call-log.ts:87
↓ 1 callers
Method
remoteRerank
(settings: AiRuntimeSettings, input: { query: string; candidates: EventRecord[]; topK: number; }
src/ai/rerank-client.ts:43
↓ 1 callers
Function
renameDocument
(document: DocumentRecord)
web/src/App.tsx:539
↓ 1 callers
Function
renderMarkdownLines
(content: string, citations: AnswerCitation[] = [], onOpenCitation?: (citation: AnswerCitation) => void)
web/src/App.tsx:3364
↓ 1 callers
Function
replaceMcpProjectPlaceholder
(value: unknown, projectId: string)
web/src/App.tsx:3036
↓ 1 callers
Function
resolveMcpServerCommand
()
src/services/mcp-agent-service.ts:733
↓ 1 callers
Function
resolveMultiOptions
(input: SearchInput, defaultSearchTopK: number)
src/services/search-service.ts:524
↓ 1 callers
Function
restoreDocument
(input: { documentId: string; tenantId: string; })
src/db/repositories.ts:884
↓ 1 callers
Function
restoreSource
(input: { sourceId: string; tenantId: string; })
src/db/repositories.ts:282
↓ 1 callers
Method
runFallbackToolFlow
(input: { runner: Awaited<ReturnType<McpAgentService["createRunner"]>>; session: McpSessionRecord;
src/services/mcp-agent-service.ts:251
↓ 1 callers
Method
runLlmToolFlow
(input: { runner: Awaited<ReturnType<McpAgentService["createRunner"]>>; session: McpSessionRecord;
src/services/mcp-agent-service.ts:294
↓ 1 callers
Function
runSearch
()
web/src/App.tsx:853
↓ 1 callers
Method
runUploadJob
(jobId: string, input: { title: string; fileName: string; content: string; sourceId: string;
src/services/webui-service.ts:222
↓ 1 callers
Function
saveAiSettings
(input: SettingsInput)
web/src/App.tsx:1047
↓ 1 callers
Function
searchEntitiesByName
(input: { sourceIds: string[]; names: string[]; limit: number; })
src/db/repositories.ts:424
↓ 1 callers
Function
searchEntitiesByText
(input: { sourceIds: string[]; query: string; limit: number; })
src/db/repositories.ts:465
↓ 1 callers
Method
sectionsForSelectedEvents
( eventIds: string[], rankedEvents: EventRecord[], maxSections: number )
src/services/search-service.ts:493
↓ 1 callers
Function
seed
()
src/db/seed.ts:95
↓ 1 callers
Function
selectProjectSession
(projectId: string, sessionId: string)
web/src/App.tsx:1077
↓ 1 callers
Function
sendMcpMessage
()
web/src/App.tsx:966
↓ 1 callers
Function
shouldAutoTitleSession
(session: McpSessionRecord, messages: Array<{ role: string }>)
src/services/mcp-agent-service.ts:457
↓ 1 callers
Function
shouldUseDistServer
(cwd: string)
src/services/mcp-agent-service.ts:757
↓ 1 callers
Function
sleep
(ms: number)
src/services/mcp-agent-service.ts:783
↓ 1 callers
Function
splitBySentenceBoundary
(text: string)
src/ingestion/chunking/markdown.ts:284
↓ 1 callers
Function
splitMarkdownCodeBlocks
(content: string)
web/src/App.tsx:3346
↓ 1 callers
Function
splitTextByTokenLimit
(text: string, maxTokens: number)
src/ingestion/chunking/markdown.ts:251
↓ 1 callers
Function
startHttpServer
()
src/api/server.ts:605
↓ 1 callers
Function
startMcpServer
()
src/mcp/server.ts:188
↓ 1 callers
Function
stopMcpMessage
()
web/src/App.tsx:1025
↓ 1 callers
Function
toggleNode
(node: GraphNode)
web/src/components/ProjectGraphFlow.tsx:213
↓ 1 callers
Function
translate
(language: SupportedLanguage, zh: string, en: string)
web/src/i18n.tsx:57
↓ 1 callers
Function
uniqueEntities
(entities: ExtractedEntity[])
src/ai/llm-client.ts:616
↓ 1 callers
Function
updateDocument
(input: { documentId: string; tenantId: string; title?: string; metadata?: Record<string, unknown>; })
src/db/repositories.ts:840
↓ 1 callers
Function
updateMcpSessionTitle
(input: { sessionId: string; tenantId: string; title: string; metadata?: Record<string, unknown>; })
src/db/repositories.ts:1428
↓ 1 callers
Function
updateSource
(input: { sourceId: string; tenantId: string; name?: string; description?: string | null; metadata?:
src/db/repositories.ts:236
↓ 1 callers
Method
uploadDocument
(input: { title?: string; fileName: string; content: string; sourceId?: string; extract?:
src/services/webui-service.ts:131
↓ 1 callers
Function
uploadStageLabel
(stage: UploadJobRecord["stage"], t: (zh: string, en: string) => string)
web/src/App.tsx:3690
↓ 1 callers
Function
uploadStatusLabel
(status: UploadJobRecord["status"], t: (zh: string, en: string) => string)
web/src/App.tsx:3683
↓ 1 callers
Function
upsertAiProviderSettings
(input: { embeddingBaseUrl: string; embeddingModel: string; embeddingDimensions: number; embeddingApiK
src/db/repositories.ts:1289
↓ 1 callers
Function
upsertEntity
(input: { sourceId: string; type: string; name: string; description?: string; embedding: number[]; }
src/db/repositories.ts:354
↓ 1 callers
Function
useLanguageController
()
web/src/i18n.tsx:17
↓ 1 callers
Function
validateUploadInput
(input: { title?: string; fileName: string; content: string; sourceId?: string; })
src/services/webui-service.ts:370
Function
ActivityPanel
(props: { className?: string; mode: ContextPanelMode; processSteps: ProcessStep[]; modelLogs: ModelCal
web/src/App.tsx:2121
Function
App
()
web/src/App.tsx:100
Function
AppShell
()
web/src/App.tsx:109
Function
Badge
({ className, ...props }: React.HTMLAttributes<HTMLSpanElement>)
web/src/components/ui/badge.tsx:4
Function
Button
({ className, variant, size, ...props }: ButtonProps)
web/src/components/ui/button.tsx:33
Function
Card
({ className, ...props }: React.HTMLAttributes<HTMLDivElement>)
web/src/components/ui/card.tsx:4
Function
CardContent
({ className, ...props }: React.HTMLAttributes<HTMLDivElement>)
web/src/components/ui/card.tsx:14
Function
CardHeader
({ className, ...props }: React.HTMLAttributes<HTMLDivElement>)
web/src/components/ui/card.tsx:10
Function
ChunksPanel
({ chunks, hasFilter }: { chunks: ChunkRecord[]; hasFilter?: boolean })
web/src/App.tsx:2468
Function
CitationDetailPanel
({ citation }: { citation: AnswerCitation })
web/src/App.tsx:3211
Function
CitationStrip
(props: { citations: AnswerCitation[]; onOpenCitation: (citation: AnswerCitation) => void })
web/src/App.tsx:1810
Function
ConversationWorkspace
(props: { project: SourceRecord | null; detail: McpSessionDetail | null; input: string; isRunning: boo
web/src/App.tsx:1636
Function
CopyableCodeBlock
({ label, value }: { label: string; value: string })
web/src/App.tsx:3086
Function
DetailDrawer
(props: { drawer: Exclude<DetailDrawer, null>; onClose: () => void; onOpenEvent: (eventId: string) => vo
web/src/App.tsx:3115
Function
EmbeddingPreviewBlock
({ title, preview }: { title: string; preview?: EmbeddingPreview | null })
web/src/App.tsx:3300
Function
EmptyLine
({ text }: { text: string })
web/src/App.tsx:3600
Function
EmptyState
({ title, description }: { title: string; description: string })
web/src/App.tsx:3604
Function
EntitiesPanel
(props: { entities: EntityRecord[]; hasFilter?: boolean; onOpenEntity: (entityId: string) => void; })
web/src/App.tsx:2534
Function
EntityDetailPanel
({ detail, onOpenEvent }: { detail: EntityDetailRecord; onOpenEvent: (eventId: string) => void })
web/src/App.tsx:3191
Function
EventDetailPanel
({ detail, onOpenEntity }: { detail: EventDetailRecord; onOpenEntity: (entityId: string) => void })
web/src/App.tsx:3162
Function
EventsPanel
(props: { events: EventRecord[]; hasFilter?: boolean; onOpenEvent: (eventId: string) => void; onOpenEn
web/src/App.tsx:2493
Function
Field
({ label, children }: { label: string; children: ReactNode })
web/src/App.tsx:3291
Function
I18nProvider
({ value, children }: { value: I18nContextValue; children: ReactNode })
web/src/i18n.tsx:45
Function
Input
({ className, type, ...props }: React.InputHTMLAttributes<HTMLInputElement>)
web/src/components/ui/input.tsx:4
Function
JsonBlock
({ title, value, compact, preserveRaw }: { title: string; value: unknown; compact?: boolean; preserveRaw?: boo
web/src/App.tsx:3586
Function
MainWorkspaceTabs
(props: { view: WorkspaceView; onChange: (view: Exclude<WorkspaceView, "settings">) => void; })
web/src/App.tsx:1606
Function
MarkdownMessage
({ content, citations = [], onOpenCitation }: { content: string; citations?: AnswerCitation[]; onO
web/src/App.tsx:3319
Function
MarkdownTable
(props: { header: string[]; rows: string[][]; alignments: Array<"left" | "center" | "right">; citation
web/src/App.tsx:3427
Function
McpSettingsCard
({ project, settings }: { project: SourceRecord; settings: PublicMcpSettings | null })
web/src/App.tsx:2975
← previous
next →
301–400 of 494, ranked by callers