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
Function
McpToolCard
({ tool, expanded, onToggle }: { tool: PublicMcpSettings["tools"][number]; expanded: boolean; onTo
web/src/App.tsx:3051
Function
Metric
({ label, value }: { label: string; value: number })
web/src/App.tsx:3267
Function
MetricChip
({ label, value }: { label: string; value: number })
web/src/components/ProjectGraphFlow.tsx:637
Function
MiniButton
({ children, danger, onClick }: { children: ReactNode; danger?: boolean; onClick: () => void })
web/src/App.tsx:3276
Function
OverviewPanel
(props: { document: DocumentRecord | null; chunks: ChunkRecord[]; events: EventRecord[]; entities: Ent
web/src/App.tsx:2353
Function
PaginationControls
(props: { page: number; pageSize: number; totalCount: number; className?: string; onPageChange: (pag
web/src/App.tsx:2428
Function
PanelInfo
({ label, value, multiline }: { label: string; value: string; multiline?: boolean })
web/src/App.tsx:3258
Function
PanelSection
({ title, action, children }: { title: string; action?: ReactNode; children: ReactNode })
web/src/App.tsx:3246
Function
ProcessPanel
({ steps }: { steps: ProcessStep[] })
web/src/App.tsx:2170
Function
ProjectDocumentsWorkspace
(props: { project: SourceRecord | null; documents: DocumentRecord[]; selectedDocumentId: string; selec
web/src/App.tsx:1832
Function
ProjectGraphCanvas
(props: { graph: ProjectGraphRecord; language: SupportedLanguage; onOpenEvent: (eventId: string) => void
web/src/components/ProjectGraphFlow.tsx:69
Function
ProjectGraphFlow
(props: { graph: ProjectGraphRecord; language: SupportedLanguage; onOpenEvent: (eventId: string) => void
web/src/components/ProjectGraphFlow.tsx:56
Function
ProjectGraphWorkspace
(props: { project: SourceRecord | null; graph: ProjectGraphRecord | null; onOpenEvent: (eventId: string)
web/src/App.tsx:2082
Function
ProjectMcpWorkspace
({ project, settings }: { project: SourceRecord | null; settings: PublicMcpSettings | null })
web/src/App.tsx:2950
Function
ProjectMenuItem
({ children, danger, onClick }: { children: ReactNode; danger?: boolean; onClick: () => void })
web/src/App.tsx:1590
Function
ProjectRail
(props: { projects: SourceRecord[]; selectedProjectId: string; sessionsByProjectId: Record<string, McpSe
web/src/App.tsx:1252
Function
RawLogsPanel
(props: { logs: ModelCallLogRecord[]; onRefresh: () => void; onClear: () => void; })
web/src/App.tsx:2213
Function
ResultTitleSearch
(props: { label: string; query: string; totalCount: number; matchedCount: number; onQueryChange: (va
web/src/App.tsx:2394
Function
RunningMcpSearchPanel
(props: { searches: RunningMcpSearch[] })
web/src/App.tsx:1775
Function
SearchPanel
(props: { query: string; searchMode: SearchMode; result: SearchResult | null; isSearching: boolean;
web/src/App.tsx:2566
Function
SettingsCard
({ title, badge, children }: { title: string; badge: string; children: ReactNode })
web/src/App.tsx:3234
Function
SettingsPanel
(props: { settings: PublicAiProviderSettings | null; isSaving: boolean; language: SupportedLanguage; l
web/src/App.tsx:2668
Function
Textarea
({ className, ...props }: React.TextareaHTMLAttributes<HTMLTextAreaElement>)
web/src/components/ui/textarea.tsx:4
Function
UploadJobsPanel
({ jobs, expanded, onToggle }: { jobs: UploadJobRecord[]; expanded: boolean; onToggle: () => void; })
web/src/App.tsx:2273
Function
abortFromParent
()
src/services/mcp-agent-service.ts:480
Function
abortRun
()
src/api/server.ts:506
Function
archiveDocument
(documentId: string)
web/src/lib/api.ts:125
Function
archiveProject
(projectId: string)
web/src/lib/api.ts:71
Function
buildSearchProcessSteps
(result: SearchResult, language: SupportedLanguage)
web/src/App.tsx:3720
Function
buildSections
(content: string)
src/ingestion/chunking/markdown.ts:167
Function
buildToolProcessPayload
(toolCall: McpToolCallRecord, language: SupportedLanguage)
web/src/App.tsx:3868
Function
chunkFromRow
(row: Record<string, unknown>)
src/db/repositories.ts:87
Function
clearMcpSession
(sessionId: string)
web/src/lib/api.ts:267
Method
constructor
()
src/services/mcp-agent-service.ts:422
Method
constructor
( private readonly embeddings: EmbeddingClient = embeddingClient, private readonly llm: LlmClient = ll
src/services/search-service.ts:50
Method
constructor
( private readonly embeddings: EmbeddingClient = embeddingClient, private readonly llm: LlmClient = ll
src/services/ingestion-service.ts:50
Function
createMcpSession
(input: { title?: string; sourceIds?: string[] })
web/src/lib/api.ts:256
Function
createProject
()
web/src/App.tsx:464
Function
createProject
(input: { name: string; description?: string | null })
web/src/lib/api.ts:57
Function
createUploadJob
(input: { sourceId?: string; title?: string; fileName: string; content: string; chunking?:
web/src/lib/api.ts:174
Function
deleteMcpSession
(sessionId: string)
web/src/lib/api.ts:273
Function
deleteProject
(projectId: string)
web/src/lib/api.ts:83
Function
expandAll
()
web/src/components/ProjectGraphFlow.tsx:264
Method
extractEventsFromChunk
(input: { title: string; heading?: string; content: string; references: string[]; })
src/ai/llm-client.ts:46
Method
extractNamedEntities
(query: string)
src/ai/llm-client.ts:23
Function
fail
(error: unknown, response?: unknown)
src/observability/model-call-log.ts:47
Function
formatToolStatus
(status: "PENDING" | "SUCCEEDED" | "FAILED", t: (zh: string, en: string) => string)
web/src/App.tsx:4047
Method
generate
(text: string)
src/ai/embedding-client.ts:12
Function
getAiSettings
()
web/src/lib/api.ts:311
Function
getDocument
(documentId: string)
web/src/lib/api.ts:102
Function
getEntity
(entityId: string)
web/src/lib/api.ts:147
Function
getEvent
(eventId: string)
web/src/lib/api.ts:143
Method
getEvent
(eventId: string, tenantId = config.DEFAULT_TENANT_ID)
src/services/graph-service.ts:5
Function
getMcpSession
(sessionId: string)
web/src/lib/api.ts:263
Function
getMcpSettings
()
web/src/lib/api.ts:315
Function
getProjectGraph
(projectId: string)
web/src/lib/api.ts:98
Function
getProjectStats
(projectId: string)
web/src/lib/api.ts:94
Function
getSource
(sourceId: string, tenantId: string)
src/db/repositories.ts:202
Function
getUploadJob
(jobId: string)
web/src/lib/api.ts:191
Function
handleMcpStreamEvent
(event: McpStreamEvent)
web/src/App.tsx:705
Function
handleSearchStreamEvent
(event: SearchStreamEvent)
web/src/App.tsx:807
Function
listChunks
(documentId: string)
web/src/lib/api.ts:106
Function
listDocuments
(projectId: string, includeArchived = false)
web/src/lib/api.ts:89
Function
listEntities
(documentId: string)
web/src/lib/api.ts:114
Function
listEvents
(documentId: string)
web/src/lib/api.ts:110
Function
listMcpSessions
(projectId?: string)
web/src/lib/api.ts:249
Function
listProjects
(includeArchived = false)
web/src/lib/api.ts:52
Method
listSources
(input: { limit?: number; cursor?: string }, tenantId = config.DEFAULT_TENANT_ID)
src/services/graph-service.ts:9
Function
normalizeAnswerCitation
(value: unknown)
web/src/App.tsx:3562
Function
onNodeClick
(event, node)
web/src/components/ProjectGraphFlow.tsx:191
Function
onNodeDoubleClick
(event, node)
web/src/components/ProjectGraphFlow.tsx:201
Function
openCreateProjectDialog
()
web/src/App.tsx:1287
Function
refreshBrowserLanguage
()
web/src/i18n.tsx:27
Function
renameProject
(project: SourceRecord, name: string)
web/src/App.tsx:481
Method
rerankEvents
(input: { query: string; candidates: EventRecord[]; topK: number; })
src/ai/rerank-client.ts:7
Method
rerankEvents
(input: { query: string; candidates: EventRecord[]; topK: number; })
src/ai/rerank-client.ts:15
Method
rerankEvents
(input: { query: string; candidates: EventRecord[]; topK: number; })
src/ai/llm-client.ts:76
Function
resetGraph
()
web/src/components/ProjectGraphFlow.tsx:257
Function
restoreDocument
(documentId: string)
web/src/lib/api.ts:131
Function
restoreProject
(projectId: string)
web/src/lib/api.ts:77
Function
search
(input: { query: string; sourceIds: string[]; searchMode?: SearchMode; topK?: number; })
web/src/lib/api.ts:202
Function
sendMcpMessage
(sessionId: string, content: string)
web/src/lib/api.ts:279
Function
setActivityPanelMode
(mode: ContextPanelMode)
web/src/App.tsx:418
Function
setPreference
(nextPreference: LanguagePreference)
web/src/i18n.tsx:32
Function
splitLargeSection
(section: SectionDraft, maxTokens: number)
src/ingestion/chunking/markdown.ts:219
Function
streamMcpMessage
( sessionId: string, content: string, onEvent: (event: McpStreamEvent) => void, options: { sig
web/src/lib/api.ts:288
Function
streamSearch
(input: { query: string; sourceIds: string[]; searchMode?: SearchMode; topK?: number; }, onE
web/src/lib/api.ts:221
Function
succeed
(response: unknown)
src/observability/model-call-log.ts:37
Function
toggleProjectExpanded
(projectId: string)
web/src/App.tsx:1065
Function
toggleSettings
()
web/src/App.tsx:1061
Function
updateAiSettings
(input: { embeddingBaseUrl: string; embeddingModel: string; embeddingDimensions: number; embed
web/src/lib/api.ts:319
Function
updateDocument
(documentId: string, input: { title?: string })
web/src/lib/api.ts:118
Function
updateProject
(projectId: string, input: { name?: string; description?: string | null })
web/src/lib/api.ts:64
Function
uploadDocument
(input: { sourceId?: string; title?: string; fileName: string; content: string; chunking?:
web/src/lib/api.ts:151
← previous
401–494 of 494, ranked by callers