Code
Hub
Workspaces
Following
Trending
Connect
MCP
copy
Create free account
hub
/
github.com/FrankChen021/datastoria
/ functions
Functions
1,973 in github.com/FrankChen021/datastoria
⨍
Functions
1,973
◇
Types & classes
637
↓ 4 callers
Function
toStringValue
(value: unknown)
src/components/span-log-inspector/span-log-inspector-timeline-types.ts:33
↓ 4 callers
Function
transformSpanRowsToTimelineTree
(spanLogs: SpanLogElement[])
src/components/span-log-inspector/span-log-inspector-timeline-types.ts:47
↓ 4 callers
Function
updateBlacklist
(next: Set<string>)
src/components/settings/agent/agent-edit.tsx:249
↓ 4 callers
Function
updateQueryInputState
(state: Partial<QueryInputState>)
src/components/query-tab/query-input/use-query-input.tsx:20
↓ 4 callers
Function
useAgentCommands
()
src/components/chat/agent-command-context.tsx:62
↓ 4 callers
Function
useChatInputRuntime
()
src/components/chat/input/chat-input.tsx:103
↓ 4 callers
Function
useEcharts
(options: UseEchartsOptions = {})
src/components/shared/dashboard/use-echarts.ts:37
↓ 4 callers
Function
useModelConfig
()
src/hooks/use-model-config.ts:61
↓ 4 callers
Function
validateConnectionId
(connectionId: unknown)
src/lib/ai/session/remote-chat-request.ts:48
↓ 4 callers
Function
validateRcaTemplate
(templateId: string, template: RcaTemplate)
src/lib/ai/tools/clickhouse/rca/impl/template-based-collector.ts:355
↓ 4 callers
Function
validateUpsertFeedbackEventRequest
( payload: unknown )
src/lib/ai/session/feedback-events.ts:66
↓ 4 callers
Function
writeSkill
(rootDir: string, dirName: string, content: string)
src/lib/ai/skills/disk-skill-provider.test.ts:7
↓ 3 callers
Function
POST
(req: NextRequest)
src/app/api/ai/models/available/route.ts:28
↓ 3 callers
Method
addDependency
(source: DependencyTableInfo, depInfo: DependencyInfo)
src/components/dependency-view/dependency-builder.ts:424
↓ 3 callers
Function
adjust
(value: number)
src/components/query-tab/query-response/explain-pipeline-response-view.tsx:52
↓ 3 callers
Function
applyReducer
(data: (number | null | undefined)[], reducer: Reducer)
src/components/shared/dashboard/dashboard-model.ts:302
↓ 3 callers
Function
buildCodeViewerWindow
(input: BuildCodeViewerWindowInput)
src/lib/code-search/code-viewer-window.ts:18
↓ 3 callers
Function
buildErrorLocation
( lineNumber: number, columnNumber: number, sql: string, message?: string, errorLength: number = 1 )
src/lib/clickhouse/clickhouse-error-parser.ts:17
↓ 3 callers
Function
buildFeedbackReport
(events: PersistedFeedbackEvent[])
src/lib/ai/session/feedback-report.ts:24
↓ 3 callers
Function
buildNodePredicate
( scope: Scope, target: Target | undefined, expr = "hostName()" )
src/lib/ai/tools/clickhouse/rca/evidence-collector-common.ts:369
↓ 3 callers
Function
buildSkillDetailUrl
(skillId: string)
src/components/settings/skills/skills-detail-view.tsx:34
↓ 3 callers
Function
buildTableWhereClause
* Build WHERE clause for batched table queries
src/lib/ai/tools/clickhouse/collect-sql-optimization-evidence.ts:732
↓ 3 callers
Method
buildToken
(link: SkillLink)
src/components/chat/message/skill-link.ts:34
↓ 3 callers
Function
chatNodeId
(chatId: string)
src/components/chat/session/chat-session-list.tsx:93
↓ 3 callers
Function
cleanGraphviz
* ClickHouse has bug that returns extra string before the 'digraph'. * We have to clean up these invalid string
src/components/query-tab/query-response/explain-pipeline-response-view.tsx:69
↓ 3 callers
Method
cleanupPinchZoom
()
src/components/shared/graphviz/GraphvizComponent.tsx:259
↓ 3 callers
Function
clearAllSectionLayouts
(dashboardId: string)
src/components/shared/dashboard/dashboard-layout-storage.ts:70
↓ 3 callers
Function
clearCodeSearchConfigCache
()
src/lib/code-search/config.ts:368
↓ 3 callers
Method
collect
(symptom: CanonicalSymptom, context: SymptomContext)
src/lib/ai/tools/clickhouse/rca/evidence-collector-common.ts:254
↓ 3 callers
Function
collectQueryPerformanceCategory
( { connection, window, thresholds, maxOutliers, registerObservedNode, registerIssue
src/lib/ai/tools/clickhouse/status/collect-cluster-status.ts:168
↓ 3 callers
Method
compareChatsDesc
( a: Pick<Chat, "updatedAt" | "chatId">, b: Pick<Chat, "updatedAt" | "chatId"> )
src/components/chat/session/local-session-repository.ts:19
↓ 3 callers
Function
compileScalarPredicate
(expression: string, predicate: SearchQueryLogPredicate)
src/lib/ai/tools/clickhouse/search-query-log.ts:208
↓ 3 callers
Function
connectionNodeId
(connectionId: string)
src/components/chat/session/chat-session-list.tsx:95
↓ 3 callers
Method
create
()
src/lib/ai/tools/clickhouse/rca/evidence-collector-factory.ts:31
↓ 3 callers
Method
createSession
(input: CreateSessionInput)
src/lib/ai/session/server-session-repository.ts:97
↓ 3 callers
Method
createSessionFromMessages
(input: CreateSessionFromMessagesInput)
src/components/chat/session/session-repository.ts:29
↓ 3 callers
Function
createToolPart
(output: { columns: Array<{ name: string; type: string }>; rows?: Array<Record<string, unknown>>; rowCou
src/components/chat/message/message-tool-execute-sql.test.tsx:24
↓ 3 callers
Function
dedupeTableNames
(tableNames: TableName[])
src/lib/ai/tools/clickhouse/collect-sql-optimization-evidence.ts:213
↓ 3 callers
Method
disconnect
()
src/components/query-tab/query-control/query-control.test.tsx:43
↓ 3 callers
Function
ensureDir
(dir)
scripts/sync-skills.mjs:21
↓ 3 callers
Method
escapeTokenValue
(value: string)
src/components/chat/message/skill-link.ts:59
↓ 3 callers
Function
expandCommand
(messages: UIMessage[], commandManager: CommandManager)
src/app/api/ai/agent/route.ts:184
↓ 3 callers
Function
findExplainPlanNodeById
( nodes: ExplainPlanNode[], nodeId: string )
src/components/query-tab/query-response/explain-query-response-view.tsx:1209
↓ 3 callers
Function
findMatchingConnectionConfigs
(connectionId?: string | null)
src/components/chat/session/chat-session-list.tsx:120
↓ 3 callers
Method
formatCompactNumber
()
src/lib/number-utils.ts:6
↓ 3 callers
Function
formatReasoningLevel
(level: ReasoningLevel)
src/lib/ai/reasoning-levels.ts:19
↓ 3 callers
Function
generateTitleFromUIMessage
* Extract title from UI message text: first 10 tokens, maximum 64 characters
src/lib/ai/agent/plan/planning-agent.ts:246
↓ 3 callers
Function
getBaseConfig
()
src/lib/code-search/config.ts:159
↓ 3 callers
Method
getChildAsString
(childKey: string)
src/lib/storage/local-storage-provider.ts:116
↓ 3 callers
Function
getCommaNumberFormatter
()
src/components/query-log-inspector/query-log-inspector-detail-pane.tsx:13
↓ 3 callers
Function
getDocumentIsDark
()
src/components/shared/dashboard/use-is-dark-theme.ts:6
↓ 3 callers
Function
getEffectiveWindow
( totalLines: number, requestedStartLine: number, requestedEndLine: number, maxLines: number )
src/lib/code-search/local-file-search.ts:266
↓ 3 callers
Function
getExplainPlanNodeMetricLabel
(node: ExplainPlanNode)
src/components/query-tab/query-response/explain-plan-utils.ts:392
↓ 3 callers
Function
getExplainPlanSummaryBadges
(node: ExplainPlanNode)
src/components/query-tab/query-response/explain-plan-utils.ts:449
↓ 3 callers
Function
getGridPos
(panel: PanelDescriptor)
src/components/shared/dashboard/dashboard-section.tsx:59
↓ 3 callers
Method
getHistoryStorage
()
src/components/query-tab/query-history/query-history-local-storage.ts:9
↓ 3 callers
Method
getInput
(key: string)
src/components/query-tab/query-input/query-input-local-storage.ts:4
↓ 3 callers
Method
getInstance
()
src/components/settings/query-context/query-context-manager.ts:11
↓ 3 callers
Method
getInstance
()
src/lib/connection/connection-manager.ts:23
↓ 3 callers
Function
getResourcePath
(row: PersistedSkillRecord)
src/lib/ai/skills/database-skill-provider.ts:163
↓ 3 callers
Function
getRuntimeAvailableToolNames
(options: { codeSearchEnabled: boolean })
src/lib/ai/tools/server/runtime-tools.ts:5
↓ 3 callers
Function
getSectionKey
* Generate storage key for a section-specific layout * Format: dashboard-layout:{dashboardId}-section-{sectionIndex}
src/components/shared/dashboard/dashboard-layout-storage.ts:18
↓ 3 callers
Function
getSegmentLength
(node: ChildNode)
src/components/chat/input/chat-input.tsx:281
↓ 3 callers
Method
getSelectedModel
* Get the currently selected model configuration from localStorage * @returns The selected model configuration or undefined
src/components/settings/models/model-manager.ts:154
↓ 3 callers
Method
getSelectedTimeSpan
()
src/components/shared/dashboard/timespan-selector.tsx:415
↓ 3 callers
Function
getSessionRepositoryType
(userId: string | null)
src/lib/ai/session/server-session-repository-factory.ts:81
↓ 3 callers
Function
getSessionShareCode
(sessionId: string)
src/components/chat/view/use-chat-panel.tsx:187
↓ 3 callers
Method
getStorage
()
src/components/query-tab/snippet/query-snippet-manager.ts:18
↓ 3 callers
Method
getStoredContext
()
src/components/settings/query-context/query-context-manager.ts:22
↓ 3 callers
Method
getStoredSessions
()
src/components/chat/session/local-session-repository.ts:310
↓ 3 callers
Function
getSuggestionValue
( item: Pick<ChatInputSuggestionItem, "type" | "group" | "name"> )
src/components/chat/input/chat-input-suggestions.tsx:89
↓ 3 callers
Function
getTableMentionMatches
(text: string)
src/components/chat/input/mention-utils.ts:39
↓ 3 callers
Function
handleClose
()
src/components/connection/connection-edit-component.tsx:989
↓ 3 callers
Function
handleDeleteConfirm
()
src/components/query-tab/snippet/snippet-item.tsx:105
↓ 3 callers
Function
handleMenuItemClick
(interval: number)
src/components/shared/dashboard/timespan-selector.tsx:50
↓ 3 callers
Function
handleSaveEdit
()
src/components/query-tab/snippet/snippet-item.tsx:73
↓ 3 callers
Function
handleSignIn
(provider: string)
src/app/login/login-form.tsx:33
↓ 3 callers
Method
inject
(messages: TMessage[])
src/lib/ai/mention-context.ts:129
↓ 3 callers
Function
invalidateLegacySectionLayoutKeys
(dashboardId: string)
src/components/shared/dashboard/dashboard-layout-storage.ts:89
↓ 3 callers
Function
isDashboardGroup
* Check if an item is a DashboardGroup
src/components/dashboard-tab/custom-dashboard-tab.tsx:359
↓ 3 callers
Function
isDisabledBaseConfig
( value: BaseCodeRepoConfig | Exclude<DisabledCodeSearchConfig, { reason: "materialize_failed" }> )
src/lib/code-search/config.ts:153
↓ 3 callers
Function
isEnglishLanguageTag
(tag: string)
src/lib/ai/language-utils.ts:2
↓ 3 callers
Function
isPathInsideRoot
(rootDir: string, candidate: string)
src/lib/code-search/local-file-search.ts:36
↓ 3 callers
Function
isTimestampColumn
(colName: string, colType?: string)
src/components/shared/dashboard/dashboard-data-utils.ts:8
↓ 3 callers
Function
isToolPart
(part: MessagePart)
src/components/chat/message/chat-message-parts.ts:20
↓ 3 callers
Function
loadData
()
src/components/schema-tree/schema-tree-view.tsx:103
↓ 3 callers
Method
loadSettingTable
( connection: Connection, sql: string, category: ClickHouseSettingCategory, hasReadonly: boole
src/lib/clickhouse/clickhouse-setting-loader.ts:66
↓ 3 callers
Function
loadTemplateSources
()
src/lib/ai/tools/clickhouse/rca/impl/template-based-collector.ts:287
↓ 3 callers
Function
normalizeFeedbackText
(value: string | null | undefined)
src/lib/ai/session/feedback-events.ts:61
↓ 3 callers
Method
notify
()
src/lib/toast.ts:13
↓ 3 callers
Function
notifyQueryHistoryUpdated
()
src/components/query-tab/query-history/query-history-manager.ts:9
↓ 3 callers
Function
numberArray
(value: unknown)
src/components/query-tab/query-response/explain-plan-utils.ts:112
↓ 3 callers
Method
observe
()
src/components/query-tab/query-control/query-control.test.tsx:41
↓ 3 callers
Function
openSaveSnippetDialog
({ initialSql = "", initialName = "", onSaved, }: OpenSaveSnippetDialogOptions = {})
src/components/query-tab/snippet/save-snippet-dialog.tsx:98
↓ 3 callers
Function
parseAttributes
(value: unknown)
src/components/span-log-inspector/span-log-utils.ts:1
↓ 3 callers
Function
parseExplainIndexText
( explainText: string, mode: CollectMode = "light" )
src/lib/ai/tools/clickhouse/collect-sql-optimization-evidence.ts:329
↓ 3 callers
Function
parsePositiveInteger
(rawValue: string | undefined, defaultValue: number)
src/lib/code-search/config.ts:64
↓ 3 callers
Function
persistFeedback
( solved: boolean, recoveryActionTaken = false )
src/components/query-tab/query-response/query-error-ai-explanation.tsx:151
↓ 3 callers
Function
persistedSessionToDTO
(session: PersistedChatSession)
src/lib/ai/session/serialization.ts:129
↓ 3 callers
Method
publishSkillResources
(ownerId: string, input: PublishSkillResourcesInput)
src/lib/ai/skills/repository/server-skill-repository.ts:73
← previous
next →
301–400 of 1,973, ranked by callers