MCPcopy Create free account

hub / github.com/FrankChen021/datastoria / functions

Functions1,973 in github.com/FrankChen021/datastoria

↓ 3 callersFunctionquoteIdentifier
(name: string)
src/lib/ai/tools/clickhouse/rca/evidence-collector-common.ts:278
↓ 3 callersFunctionremoveTableMentionAt
(text: string, start: number, end: number)
src/components/chat/input/mention-utils.ts:58
↓ 3 callersMethodrenameSession
(sessionId: string, title: string, options?: SessionAccessOptions)
src/components/chat/session/session-repository.ts:33
↓ 3 callersFunctionrenderTooltip
( children: React.ReactNode, tooltipContent?: React.ReactNode | (() => React.ReactNode), options?: {
src/components/ui/tree.tsx:131
↓ 3 callersFunctionreplaceOrAppendMessageById
( persistedMessages: AppUIMessage[], incomingMessage: AppUIMessage )
src/lib/ai/session/remote-chat-request.ts:30
↓ 3 callersMethodresolveClusterTemplates
* Process cluster template variables in SQL query. * Templates: * - {clusterAllReplicas:table} -> clusterAllReplicas('{cluster}', table) or tabl
src/lib/connection/connection.ts:543
↓ 3 callersFunctionresolveMetricExpression
( metric: SearchQueryLogMetric | undefined, availableColumns: Set<string> )
src/lib/ai/tools/clickhouse/search-query-log.ts:366
↓ 3 callersFunctionrunQuery
( context: SymptomContext, stage: string, progress: number, fn: () => Promise<T> )
src/lib/ai/tools/clickhouse/rca/evidence-collector-common.ts:347
↓ 3 callersMethodsaveMessagesForChat
( chatId: string, messages: Record<string, Message>, hasPrunedMessages = false )
src/components/chat/session/local-session-repository.ts:250
↓ 3 callersMethodsaveSession
(session: Chat)
src/components/chat/session/local-session-repository.ts:276
↓ 3 callersFunctionscheduleAdjustment
()
src/components/shared/dashboard/dashboard-visualization-stat.tsx:619
↓ 3 callersFunctionsearchQueryLogExecutor
(input, connection)
src/lib/ai/tools/clickhouse/search-query-log.ts:503
↓ 3 callersFunctionselectChat
(chatId: string, connectionId?: string, shareCode?: string)
src/components/chat/view/use-chat-panel.tsx:169
↓ 3 callersMethodselectComponents
(components: Selection<SVGElement, unknown, null, undefined>)
src/components/shared/graphviz/GraphvizComponent.tsx:499
↓ 3 callersMethodsetChildAsString
(childKey: string, value: string)
src/lib/storage/local-storage-provider.ts:133
↓ 3 callersMethodsetChildJSON
* Set a child key's value as JSON without creating a subStorage object
src/lib/storage/local-storage-provider.ts:126
↓ 3 callersMethodsetSystemModels
(models: ModelProps[], notify = true)
src/components/settings/models/model-manager.ts:96
↓ 3 callersFunctionstartMaterialization
(baseConfig: BaseCodeRepoConfig)
src/lib/code-search/config.ts:251
↓ 3 callersFunctionstartSessionCleanupTimer
(repository: ServerSessionRepository)
src/lib/ai/session/server-session-repository-factory.ts:34
↓ 3 callersMethodstartsWithBasePath
(pathname: string)
src/lib/base-path.ts:21
↓ 3 callersMethodstopClientTools
(sessionId: string)
src/components/chat/chat-factory.ts:324
↓ 3 callersFunctionstringArray
(value: unknown)
src/components/query-tab/query-response/explain-plan-utils.ts:105
↓ 3 callersFunctionstripWrappingQuotes
(value: string)
src/lib/ai/tools/clickhouse/collect-sql-optimization-evidence.ts:295
↓ 3 callersMethodsubscribe
(listener: () => void)
src/components/query-tab/snippet/query-snippet-manager.ts:46
↓ 3 callersMethodsubscribeToStorageProviderChange
* Subscribe to app storage identity changes (e.g. user login/logout). * Returns an unsubscribe function.
src/lib/storage/storage-manager.ts:45
↓ 3 callersMethodtoFilterExpression
(alias: string, pattern: QueryPattern)
src/components/shared/dashboard/dashboard-filter.tsx:318
↓ 3 callersFunctiontoNumber
(value: unknown)
src/components/span-log-inspector/span-log-inspector-timeline-types.ts:20
↓ 3 callersFunctiontoNumber
(value: unknown)
src/components/span-log-inspector/span-log-inspector-topo-builder.ts:44
↓ 3 callersFunctiontoTableTreeNode
(table: { database: string; table: string; tableEngine: string; fullTableEngine: string; tableCommen
src/components/schema-tree/schema-tree-builder.tsx:164
↓ 3 callersMethodtoValidDate
(value: unknown)
src/components/chat/session/local-session-repository.ts:63
↓ 3 callersMethodtrackAbortableResult
( sessionId: string, result: AbortableQueryResult<TResponse> )
src/components/chat/chat-factory.ts:297
↓ 3 callersFunctiontransformNode
(node: MarkdownNode)
src/components/chat/message/remark-extensions.ts:239
↓ 3 callersFunctiontransformReferenceTokens
(value: string)
src/components/chat/message/remark-extensions.ts:95
↓ 3 callersMethodunescapeTokenValue
(value: string)
src/components/chat/message/skill-link.ts:63
↓ 3 callersMethodupsertFeedbackEvent
(input: UpsertFeedbackEventInput)
src/lib/ai/session/server-session-repository.ts:101
↓ 3 callersFunctionuseRuntimeConfig
()
src/components/runtime-config-provider.tsx:41
↓ 3 callersFunctionverifySessionShareCode
(code: string)
src/lib/ai/session/session-share-code.ts:43
↓ 3 callersFunctionwithModelMetadata
( message: AppUIMessage, modelConfig: { provider: string; modelId: string } )
src/app/api/ai/agent/route.ts:229
↓ 3 callersFunctionwriteSkill
( rootDir: string, dirName: string, content: string, resources?: Record<string, string> )
src/lib/ai/skills/skill-provider.test.ts:10
↓ 2 callersFunctionaddLink
(source: TraceRowRef, target: TraceRowRef, isTargetFake = false)
src/components/span-log-inspector/span-log-inspector-topo-builder.ts:402
↓ 2 callersMethodaddSelectedToItems
(items: SelectorItem[], selectedPatterns: Set<string>)
src/components/shared/selector.tsx:305
↓ 2 callersMethodaddSnippet
(caption: string, sql: string)
src/components/query-tab/snippet/query-snippet-manager.ts:69
↓ 2 callersFunctionappendLineWithinByteLimit
( lines: string[], line: string, currentBytes: number, maxBytes: number )
src/lib/code-search/local-file-search.ts:422
↓ 2 callersFunctionappendSnippetsToTree
( roots: TreeDataItem[], folderCache: Map<string, TreeDataItem>, snippets: Snippet[], source: "user" |
src/components/query-tab/snippet/snippet-list-view.tsx:44
↓ 2 callersFunctionapplyGraphvizStyling
* 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 callersFunctionapplyPattern
(node: TimelineNode, pattern: string)
src/components/shared/timeline/timeline-view.tsx:81
↓ 2 callersFunctionapplyQueryToEditor
( editor: Ace.Editor, query: string, mode: "replace" | "insert", storageKey: string = "editor" )
src/components/query-tab/query-input/query-input-view.tsx:105
↓ 2 callersFunctionasArray
(items: TreeDataItem[] | TreeDataItem)
src/components/ui/tree.tsx:312
↓ 2 callersMethodasSqlString
(value: string)
src/components/shared/dashboard/dashboard-filter.tsx:291
↓ 2 callersFunctionattachScrollPrevention
(element: HTMLElement)
src/components/query-tab/query-input/query-input-view.tsx:424
↓ 2 callersFunctionautoPositionPanels
( panels: { w: number; h: number }[], cols: number )
src/components/shared/dashboard/dashboard-section.tsx:70
↓ 2 callersMethodautoSelectModel
* 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 callersFunctionbase64UrlEncode
(bytes: ArrayBuffer)
src/components/settings/models/codex-login-component.tsx:25
↓ 2 callersMethodbuild
* Get the current context using the builder
src/components/chat/chat-context.ts:62
↓ 2 callersFunctionbuildAdmonitionHtml
Build admonition HTML. Classes include both "admonition-note" (Tailwind) and "note" (ACE editor CSS).
src/lib/clickhouse/admonition-preprocessor.ts:26
↓ 2 callersMethodbuildCache
()
src/lib/ai/skills/disk-skill-provider.ts:178
↓ 2 callersFunctionbuildLogTimeFilter
( window: GetClusterStatusInput["window"] | undefined, defaultMinutes = 15 )
src/lib/ai/tools/clickhouse/status/collect-cluster-status.ts:117
↓ 2 callersFunctionbuildProvisionalSessionTitle
(text: string)
src/components/chat/chat-factory.ts:135
↓ 2 callersFunctionbuildQueryLogPredicate
(scope: Scope, target: Target | undefined)
src/lib/ai/tools/clickhouse/rca/evidence-collector-common.ts:381
↓ 2 callersFunctionbuildQueryLogResourceSummary
( profileEvents?: Record<string, number> )
src/lib/ai/tools/clickhouse/collect-sql-optimization-evidence.ts:269
↓ 2 callersMethodbuildQueryParameters
(userParams?: Record<string, unknown>)
src/lib/connection/connection.ts:274
↓ 2 callersFunctionbuildReadFileResult
(args: { relativePath: string; requestedEndLine: number; maxLines: number; totalLines: number; conte
src/lib/code-search/local-file-search.ts:282
↓ 2 callersFunctionbuildRgFilterArgs
(config: CodeSearchConfig, globPattern?: string)
src/lib/code-search/ripgrep-code-search.ts:27
↓ 2 callersFunctionbuildSkillResourceUrl
(skillId: string, resourcePath: string)
src/components/settings/skills/skills-detail-view.tsx:38
↓ 2 callersFunctionbuildSkillToolDescription
(skills: SkillCatalogItem[])
src/lib/ai/tools/server/skill-tool.ts:22
↓ 2 callersFunctionbuildSqlGenerationPrompt
* 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 callersFunctionbuildTraceTopo
(spanTree: SpanLogTreeNode[])
src/components/span-log-inspector/span-log-inspector-topo-builder.ts:341
↓ 2 callersFunctionbuildViewerUrl
( pathname: string, options: { path: string; highlightedStartLine?: number; highlightedEndLine
src/components/code-analysis/code-viewer-content.tsx:149
↓ 2 callersFunctioncalculateTimelineTooltipPosition
(x: number, y: number)
src/components/shared/timeline/timeline-tooltip.tsx:11
↓ 2 callersFunctioncheckRelease
(isInitial = false)
src/components/release-note/release-detector.tsx:26
↓ 2 callersMethodcleanupOldMessages
(chatId: string, count: number = 100)
src/components/chat/session/local-session-repository.ts:139
↓ 2 callersFunctionclearChartListeners
()
src/components/shared/dashboard/dashboard-visualization-timeseries.tsx:588
↓ 2 callersFunctionclearDashboardLayout
(dashboardId: string)
src/components/shared/dashboard/dashboard-layout-storage.ts:124
↓ 2 callersFunctionclearSearchHighlights
(root: HTMLElement)
src/components/shared/themed-syntax-highlighter.tsx:229
↓ 2 callersFunctionclearSelectedChat
()
src/components/chat/view/use-chat-panel.tsx:183
↓ 2 callersFunctioncloseFn
()
src/components/shared/use-dialog.tsx:69
↓ 2 callersMethodcloseTab
* Emit a close tab event
src/components/tab-manager.ts:235
↓ 2 callersFunctioncompare
( operator: ComparisonCondition["operator"], left: unknown, right: unknown )
src/lib/ai/tools/clickhouse/rca/impl/template-based-collector.ts:427
↓ 2 callersMethodcompareMessages
(a: Message, b: Message)
src/components/chat/session/local-session-repository.ts:239
↓ 2 callersFunctioncompileArrayPredicate
(expression: string, predicate: SearchQueryLogPredicate)
src/lib/ai/tools/clickhouse/search-query-log.ts:262
↓ 2 callersFunctioncompileNumericPredicate
(expression: string, predicate: SearchQueryLogPredicate)
src/lib/ai/tools/clickhouse/search-query-log.ts:235
↓ 2 callersMethodcompressString
(data: string)
src/lib/storage/local-storage-provider.ts:20
↓ 2 callersMethodconfirm
(dialogProps: DialogProps)
src/components/shared/use-dialog.tsx:308
↓ 2 callersFunctionconvertToTimestampMs
(value: unknown)
src/components/shared/dashboard/dashboard-data-utils.ts:55
↓ 2 callersFunctioncopyToClipboardWithMeta
(value: string)
src/components/ui/copy-button.tsx:15
↓ 2 callersMethodcreateAutoModel
()
src/components/settings/models/model-manager.ts:26
↓ 2 callersFunctioncreateCodeSearchConfig
(baseConfig: BaseCodeRepoConfig, rootDir: string)
src/lib/code-search/config.ts:199
↓ 2 callersFunctioncreateCodeSearchTools
(args: { provider: CodeSearch; maxSearchResults: number })
src/lib/ai/tools/server/code-search-tools.ts:5
↓ 2 callersMethodcreateCursor
(chat: Pick<Chat, "updatedAt" | "chatId">)
src/components/chat/session/local-session-repository.ts:30
↓ 2 callersFunctioncreateDeferredResponse
()
src/components/system-table-tab/zookeeper.test.tsx:43
↓ 2 callersFunctioncreateFolderNode
(id: string, name: string)
src/components/query-tab/snippet/snippet-list-view.tsx:34
↓ 2 callersFunctioncreateGenerateSqlTool
(inputModel: InputModel, context?: ServerDatabaseContext)
src/lib/ai/agent/sql-generation-agent.ts:234
↓ 2 callersMethodcreateInternal
(options: CreateInternalOptions)
src/components/chat/chat-factory.ts:514
↓ 2 callersFunctioncreateLinkNode
(referenceType: string, tokenBody: string)
src/components/chat/message/remark-extensions.ts:75
↓ 2 callersMethodcreateMatch
(text: string, start: number, end: number, payload: string)
src/components/chat/input/inline-token.test.ts:17
↓ 2 callersFunctioncreateMeasurementElement
( fontSize: string, textContent: string, textStyles: CSSStyleDeclaration )
src/components/shared/dashboard/dashboard-visualization-stat.tsx:45
↓ 2 callersMethodcreateNew
* Create a new empty dashboard with default structure
src/components/dashboard-tab/custom-dashboard-storage.ts:81
↓ 2 callersFunctioncreateTimeSpanForDate
(eventDate: string)
src/components/query-log-inspector/query-log-inspector-tab.tsx:136
↓ 2 callersFunctioncreateTimeSpanForDate
(eventDate: string)
src/components/span-log-inspector/span-log-inspector-tab.tsx:146
↓ 2 callersFunctioncreateUserMessage
( id: string, text: string, mentionMetadata?: MentionMetadata )
src/lib/ai/mention-context.test.ts:82
← previousnext →401–500 of 1,973, ranked by callers