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
↓ 3 callers
Function
quoteIdentifier
(name: string)
src/lib/ai/tools/clickhouse/rca/evidence-collector-common.ts:278
↓ 3 callers
Function
removeTableMentionAt
(text: string, start: number, end: number)
src/components/chat/input/mention-utils.ts:58
↓ 3 callers
Method
renameSession
(sessionId: string, title: string, options?: SessionAccessOptions)
src/components/chat/session/session-repository.ts:33
↓ 3 callers
Function
renderTooltip
( children: React.ReactNode, tooltipContent?: React.ReactNode | (() => React.ReactNode), options?: {
src/components/ui/tree.tsx:131
↓ 3 callers
Function
replaceOrAppendMessageById
( persistedMessages: AppUIMessage[], incomingMessage: AppUIMessage )
src/lib/ai/session/remote-chat-request.ts:30
↓ 3 callers
Method
resolveClusterTemplates
* Process cluster template variables in SQL query. * Templates: * - {clusterAllReplicas:table} -> clusterAllReplicas('{cluster}', table) or tabl
src/lib/connection/connection.ts:543
↓ 3 callers
Function
resolveMetricExpression
( metric: SearchQueryLogMetric | undefined, availableColumns: Set<string> )
src/lib/ai/tools/clickhouse/search-query-log.ts:366
↓ 3 callers
Function
runQuery
( context: SymptomContext, stage: string, progress: number, fn: () => Promise<T> )
src/lib/ai/tools/clickhouse/rca/evidence-collector-common.ts:347
↓ 3 callers
Method
saveMessagesForChat
( chatId: string, messages: Record<string, Message>, hasPrunedMessages = false )
src/components/chat/session/local-session-repository.ts:250
↓ 3 callers
Method
saveSession
(session: Chat)
src/components/chat/session/local-session-repository.ts:276
↓ 3 callers
Function
scheduleAdjustment
()
src/components/shared/dashboard/dashboard-visualization-stat.tsx:619
↓ 3 callers
Function
searchQueryLogExecutor
(input, connection)
src/lib/ai/tools/clickhouse/search-query-log.ts:503
↓ 3 callers
Function
selectChat
(chatId: string, connectionId?: string, shareCode?: string)
src/components/chat/view/use-chat-panel.tsx:169
↓ 3 callers
Method
selectComponents
(components: Selection<SVGElement, unknown, null, undefined>)
src/components/shared/graphviz/GraphvizComponent.tsx:499
↓ 3 callers
Method
setChildAsString
(childKey: string, value: string)
src/lib/storage/local-storage-provider.ts:133
↓ 3 callers
Method
setChildJSON
* Set a child key's value as JSON without creating a subStorage object
src/lib/storage/local-storage-provider.ts:126
↓ 3 callers
Method
setSystemModels
(models: ModelProps[], notify = true)
src/components/settings/models/model-manager.ts:96
↓ 3 callers
Function
startMaterialization
(baseConfig: BaseCodeRepoConfig)
src/lib/code-search/config.ts:251
↓ 3 callers
Function
startSessionCleanupTimer
(repository: ServerSessionRepository)
src/lib/ai/session/server-session-repository-factory.ts:34
↓ 3 callers
Method
startsWithBasePath
(pathname: string)
src/lib/base-path.ts:21
↓ 3 callers
Method
stopClientTools
(sessionId: string)
src/components/chat/chat-factory.ts:324
↓ 3 callers
Function
stringArray
(value: unknown)
src/components/query-tab/query-response/explain-plan-utils.ts:105
↓ 3 callers
Function
stripWrappingQuotes
(value: string)
src/lib/ai/tools/clickhouse/collect-sql-optimization-evidence.ts:295
↓ 3 callers
Method
subscribe
(listener: () => void)
src/components/query-tab/snippet/query-snippet-manager.ts:46
↓ 3 callers
Method
subscribeToStorageProviderChange
* Subscribe to app storage identity changes (e.g. user login/logout). * Returns an unsubscribe function.
src/lib/storage/storage-manager.ts:45
↓ 3 callers
Method
toFilterExpression
(alias: string, pattern: QueryPattern)
src/components/shared/dashboard/dashboard-filter.tsx:318
↓ 3 callers
Function
toNumber
(value: unknown)
src/components/span-log-inspector/span-log-inspector-timeline-types.ts:20
↓ 3 callers
Function
toNumber
(value: unknown)
src/components/span-log-inspector/span-log-inspector-topo-builder.ts:44
↓ 3 callers
Function
toTableTreeNode
(table: { database: string; table: string; tableEngine: string; fullTableEngine: string; tableCommen
src/components/schema-tree/schema-tree-builder.tsx:164
↓ 3 callers
Method
toValidDate
(value: unknown)
src/components/chat/session/local-session-repository.ts:63
↓ 3 callers
Method
trackAbortableResult
( sessionId: string, result: AbortableQueryResult<TResponse> )
src/components/chat/chat-factory.ts:297
↓ 3 callers
Function
transformNode
(node: MarkdownNode)
src/components/chat/message/remark-extensions.ts:239
↓ 3 callers
Function
transformReferenceTokens
(value: string)
src/components/chat/message/remark-extensions.ts:95
↓ 3 callers
Method
unescapeTokenValue
(value: string)
src/components/chat/message/skill-link.ts:63
↓ 3 callers
Method
upsertFeedbackEvent
(input: UpsertFeedbackEventInput)
src/lib/ai/session/server-session-repository.ts:101
↓ 3 callers
Function
useRuntimeConfig
()
src/components/runtime-config-provider.tsx:41
↓ 3 callers
Function
verifySessionShareCode
(code: string)
src/lib/ai/session/session-share-code.ts:43
↓ 3 callers
Function
withModelMetadata
( message: AppUIMessage, modelConfig: { provider: string; modelId: string } )
src/app/api/ai/agent/route.ts:229
↓ 3 callers
Function
writeSkill
( rootDir: string, dirName: string, content: string, resources?: Record<string, string> )
src/lib/ai/skills/skill-provider.test.ts:10
↓ 2 callers
Function
addLink
(source: TraceRowRef, target: TraceRowRef, isTargetFake = false)
src/components/span-log-inspector/span-log-inspector-topo-builder.ts:402
↓ 2 callers
Method
addSelectedToItems
(items: SelectorItem[], selectedPatterns: Set<string>)
src/components/shared/selector.tsx:305
↓ 2 callers
Method
addSnippet
(caption: string, sql: string)
src/components/query-tab/snippet/query-snippet-manager.ts:69
↓ 2 callers
Function
appendLineWithinByteLimit
( lines: string[], line: string, currentBytes: number, maxBytes: number )
src/lib/code-search/local-file-search.ts:422
↓ 2 callers
Function
appendSnippetsToTree
( roots: TreeDataItem[], folderCache: Map<string, TreeDataItem>, snippets: Snippet[], source: "user" |
src/components/query-tab/snippet/snippet-list-view.tsx:44
↓ 2 callers
Function
applyGraphvizStyling
* Apply the same styling as dependency-view.tsx to the graphviz dot string * Applies styling to both the main graph and all subgraphs for consistency
src/components/query-tab/query-response/explain-pipeline-response-view.tsx:85
↓ 2 callers
Function
applyPattern
(node: TimelineNode, pattern: string)
src/components/shared/timeline/timeline-view.tsx:81
↓ 2 callers
Function
applyQueryToEditor
( editor: Ace.Editor, query: string, mode: "replace" | "insert", storageKey: string = "editor" )
src/components/query-tab/query-input/query-input-view.tsx:105
↓ 2 callers
Function
asArray
(items: TreeDataItem[] | TreeDataItem)
src/components/ui/tree.tsx:312
↓ 2 callers
Method
asSqlString
(value: string)
src/components/shared/dashboard/dashboard-filter.tsx:291
↓ 2 callers
Function
attachScrollPrevention
(element: HTMLElement)
src/components/query-tab/query-input/query-input-view.tsx:424
↓ 2 callers
Function
autoPositionPanels
( panels: { w: number; h: number }[], cols: number )
src/components/shared/dashboard/dashboard-section.tsx:70
↓ 2 callers
Method
autoSelectModel
* Auto-select a provider model based on available API keys * Priority: OpenAI > Google > Anthropic > OpenRouter > Groq * Randomly selects from a
src/lib/ai/llm/llm-provider-factory.ts:901
↓ 2 callers
Function
base64UrlEncode
(bytes: ArrayBuffer)
src/components/settings/models/codex-login-component.tsx:25
↓ 2 callers
Method
build
* Get the current context using the builder
src/components/chat/chat-context.ts:62
↓ 2 callers
Function
buildAdmonitionHtml
Build admonition HTML. Classes include both "admonition-note" (Tailwind) and "note" (ACE editor CSS).
src/lib/clickhouse/admonition-preprocessor.ts:26
↓ 2 callers
Method
buildCache
()
src/lib/ai/skills/disk-skill-provider.ts:178
↓ 2 callers
Function
buildLogTimeFilter
( window: GetClusterStatusInput["window"] | undefined, defaultMinutes = 15 )
src/lib/ai/tools/clickhouse/status/collect-cluster-status.ts:117
↓ 2 callers
Function
buildProvisionalSessionTitle
(text: string)
src/components/chat/chat-factory.ts:135
↓ 2 callers
Function
buildQueryLogPredicate
(scope: Scope, target: Target | undefined)
src/lib/ai/tools/clickhouse/rca/evidence-collector-common.ts:381
↓ 2 callers
Function
buildQueryLogResourceSummary
( profileEvents?: Record<string, number> )
src/lib/ai/tools/clickhouse/collect-sql-optimization-evidence.ts:269
↓ 2 callers
Method
buildQueryParameters
(userParams?: Record<string, unknown>)
src/lib/connection/connection.ts:274
↓ 2 callers
Function
buildReadFileResult
(args: { relativePath: string; requestedEndLine: number; maxLines: number; totalLines: number; conte
src/lib/code-search/local-file-search.ts:282
↓ 2 callers
Function
buildRgFilterArgs
(config: CodeSearchConfig, globPattern?: string)
src/lib/code-search/ripgrep-code-search.ts:27
↓ 2 callers
Function
buildSkillResourceUrl
(skillId: string, resourcePath: string)
src/components/settings/skills/skills-detail-view.tsx:38
↓ 2 callers
Function
buildSkillToolDescription
(skills: SkillCatalogItem[])
src/lib/ai/tools/server/skill-tool.ts:22
↓ 2 callers
Function
buildSqlGenerationPrompt
* Build SQL generation system prompt with shared logic * Returns both the prompt and context sections for reuse
src/lib/ai/agent/sql-generation-agent.ts:71
↓ 2 callers
Function
buildTraceTopo
(spanTree: SpanLogTreeNode[])
src/components/span-log-inspector/span-log-inspector-topo-builder.ts:341
↓ 2 callers
Function
buildViewerUrl
( pathname: string, options: { path: string; highlightedStartLine?: number; highlightedEndLine
src/components/code-analysis/code-viewer-content.tsx:149
↓ 2 callers
Function
calculateTimelineTooltipPosition
(x: number, y: number)
src/components/shared/timeline/timeline-tooltip.tsx:11
↓ 2 callers
Function
checkRelease
(isInitial = false)
src/components/release-note/release-detector.tsx:26
↓ 2 callers
Method
cleanupOldMessages
(chatId: string, count: number = 100)
src/components/chat/session/local-session-repository.ts:139
↓ 2 callers
Function
clearChartListeners
()
src/components/shared/dashboard/dashboard-visualization-timeseries.tsx:588
↓ 2 callers
Function
clearDashboardLayout
(dashboardId: string)
src/components/shared/dashboard/dashboard-layout-storage.ts:124
↓ 2 callers
Function
clearSearchHighlights
(root: HTMLElement)
src/components/shared/themed-syntax-highlighter.tsx:229
↓ 2 callers
Function
clearSelectedChat
()
src/components/chat/view/use-chat-panel.tsx:183
↓ 2 callers
Function
closeFn
()
src/components/shared/use-dialog.tsx:69
↓ 2 callers
Method
closeTab
* Emit a close tab event
src/components/tab-manager.ts:235
↓ 2 callers
Function
compare
( operator: ComparisonCondition["operator"], left: unknown, right: unknown )
src/lib/ai/tools/clickhouse/rca/impl/template-based-collector.ts:427
↓ 2 callers
Method
compareMessages
(a: Message, b: Message)
src/components/chat/session/local-session-repository.ts:239
↓ 2 callers
Function
compileArrayPredicate
(expression: string, predicate: SearchQueryLogPredicate)
src/lib/ai/tools/clickhouse/search-query-log.ts:262
↓ 2 callers
Function
compileNumericPredicate
(expression: string, predicate: SearchQueryLogPredicate)
src/lib/ai/tools/clickhouse/search-query-log.ts:235
↓ 2 callers
Method
compressString
(data: string)
src/lib/storage/local-storage-provider.ts:20
↓ 2 callers
Method
confirm
(dialogProps: DialogProps)
src/components/shared/use-dialog.tsx:308
↓ 2 callers
Function
convertToTimestampMs
(value: unknown)
src/components/shared/dashboard/dashboard-data-utils.ts:55
↓ 2 callers
Function
copyToClipboardWithMeta
(value: string)
src/components/ui/copy-button.tsx:15
↓ 2 callers
Method
createAutoModel
()
src/components/settings/models/model-manager.ts:26
↓ 2 callers
Function
createCodeSearchConfig
(baseConfig: BaseCodeRepoConfig, rootDir: string)
src/lib/code-search/config.ts:199
↓ 2 callers
Function
createCodeSearchTools
(args: { provider: CodeSearch; maxSearchResults: number })
src/lib/ai/tools/server/code-search-tools.ts:5
↓ 2 callers
Method
createCursor
(chat: Pick<Chat, "updatedAt" | "chatId">)
src/components/chat/session/local-session-repository.ts:30
↓ 2 callers
Function
createDeferredResponse
()
src/components/system-table-tab/zookeeper.test.tsx:43
↓ 2 callers
Function
createFolderNode
(id: string, name: string)
src/components/query-tab/snippet/snippet-list-view.tsx:34
↓ 2 callers
Function
createGenerateSqlTool
(inputModel: InputModel, context?: ServerDatabaseContext)
src/lib/ai/agent/sql-generation-agent.ts:234
↓ 2 callers
Method
createInternal
(options: CreateInternalOptions)
src/components/chat/chat-factory.ts:514
↓ 2 callers
Function
createLinkNode
(referenceType: string, tokenBody: string)
src/components/chat/message/remark-extensions.ts:75
↓ 2 callers
Method
createMatch
(text: string, start: number, end: number, payload: string)
src/components/chat/input/inline-token.test.ts:17
↓ 2 callers
Function
createMeasurementElement
( fontSize: string, textContent: string, textStyles: CSSStyleDeclaration )
src/components/shared/dashboard/dashboard-visualization-stat.tsx:45
↓ 2 callers
Method
createNew
* Create a new empty dashboard with default structure
src/components/dashboard-tab/custom-dashboard-storage.ts:81
↓ 2 callers
Function
createTimeSpanForDate
(eventDate: string)
src/components/query-log-inspector/query-log-inspector-tab.tsx:136
↓ 2 callers
Function
createTimeSpanForDate
(eventDate: string)
src/components/span-log-inspector/span-log-inspector-tab.tsx:146
↓ 2 callers
Function
createUserMessage
( id: string, text: string, mentionMetadata?: MentionMetadata )
src/lib/ai/mention-context.test.ts:82
← previous
next →
401–500 of 1,973, ranked by callers