MCPcopy Create free account

hub / github.com/FrankChen021/datastoria / functions

Functions1,973 in github.com/FrankChen021/datastoria

↓ 419 callersMethodpush
(item: T)
src/lib/stack.ts:4
↓ 311 callersFunctioncn
(...inputs: ClassValue[])
src/lib/utils.ts:4
↓ 161 callersMethodset
(key: string, value: string)
src/lib/host-name-manager.ts:23
↓ 135 callersMethodget
* Get a single dashboard by ID
src/components/dashboard-tab/custom-dashboard-storage.ts:55
↓ 100 callersMethodrender
(id: string, text: string)
src/types/mermaid.d.ts:15
↓ 89 callersMethodreplace
* Replace a custom variable in the SQL query. * Replaces: {variableName} with the provided value * * @param variableName The name of the vari
src/components/shared/dashboard/sql-query-builder.ts:135
↓ 79 callersMethodget
(key: string)
src/lib/host-name-manager.ts:13
↓ 62 callersMethodquery
( sql: string, params?: Record<string, unknown>, headers?: Record<string, string> )
src/lib/connection/connection.ts:287
↓ 61 callersFunctioncreateNode
* Helper function to create a tree node
src/lib/tree-search.test.ts:8
↓ 56 callersMethodparse
(token: string)
src/components/chat/message/file-link.ts:29
↓ 55 callersMethodadd
( entry: Omit<QueryHistoryEntry, "id"> & { id?: string; } )
src/components/query-tab/query-history/query-history-manager.ts:49
↓ 49 callersMethoddelete
* Delete a dashboard by ID
src/components/dashboard-tab/custom-dashboard-storage.ts:72
↓ 49 callersMethodgetInstance
()
src/components/settings/models/model-manager.ts:61
↓ 47 callersFunctionuseConnection
()
src/components/connection/connection-context.tsx:171
↓ 46 callersMethodfloor
* Floor a date to the nearest multiple of duration * @param date The date to floor * @param duration Duration in milliseconds
src/lib/datetime-utils.ts:35
↓ 45 callersMethodindexOf
(name: string)
src/lib/connection/connection-manager.ts:197
↓ 45 callersMethodreplace
(name: string, newConnection: ConnectionConfig)
src/lib/connection/connection-manager.ts:145
↓ 43 callersMethodescapeSqlString
* Escape single quotes in SQL strings to reduce SQL injection risk when embedding values into * single-quoted SQL literals. * * Note: Prefer
src/lib/sql-utils.ts:145
↓ 41 callersMethodkeys
* Get all sub-keys that start with this key as prefix (returns keys without the prefix)
src/lib/storage/local-storage-provider.ts:193
↓ 41 callersFunctionsearchTree
( tree: TreeDataItem[] | undefined, search: string, options?: { pathSeparator?: string; highligh
src/lib/tree-search.ts:349
↓ 40 callersMethodtoString
* Get the current SQL query string without finalizing. * Useful for debugging or intermediate inspection. * * @returns The current SQL query
src/components/shared/dashboard/sql-query-builder.ts:169
↓ 36 callersMethodgetFormatter
(formatType: string)
src/lib/formatter.tsx:586
↓ 34 callersMethodgetURL
(pathname: string)
src/lib/base-path.ts:16
↓ 31 callersMethodadd
(connection: ConnectionConfig)
src/lib/connection/connection-manager.ts:125
↓ 31 callersMethodformatISO8601
* Format date to ISO 8601 format
src/lib/datetime-utils.ts:49
↓ 31 callersMethodremove
(id: string)
src/components/query-tab/query-history/query-history-manager.ts:66
↓ 30 callersMethodreplaceAll
* Replace multiple custom variables in the SQL query. * * @param replacements An object mapping variable names to their replacement values *
src/components/shared/dashboard/sql-query-builder.ts:147
↓ 28 callersMethodclose
* Closes the most recently opened dialog.
src/components/shared/use-dialog.tsx:263
↓ 25 callersMethodclear
()
src/components/query-tab/query-history/query-history-storage.ts:13
↓ 24 callersMethodopenTab
* Open a tab with the specified information
src/components/tab-manager.ts:156
↓ 24 callersMethodshowDialog
(dialogProps: DialogProps)
src/components/shared/use-dialog.tsx:317
↓ 23 callersMethodabort
* Aborts any ongoing loading request
src/components/schema-tree/schema-tree-loader.tsx:21
↓ 22 callersFunctiongetStructure
* Helper function to extract the structure of search results (without React nodes) * This makes assertions easier to read and write
src/lib/tree-search.test.ts:21
↓ 21 callersMethodcontains
(name: string)
src/lib/connection/connection-manager.ts:121
↓ 20 callersMethodshow
(message: string | React.ReactNode, type: ToastType = "info")
src/lib/toast.ts:28
↓ 19 callersFunctiongetAuthenticatedUserEmail
(request: Request)
src/auth.ts:16
↓ 19 callersFunctionresolveModelReasoningLevels
( model?: Pick<ModelProps, "provider" | "modelId" | "reasoningLevels"> | null )
src/lib/ai/llm/llm-provider-factory.ts:166
↓ 19 callersMethodupdateProviderSetting
* Update a specific provider setting * @param provider - The provider name to update * @param updates - Partial updates to apply
src/components/settings/models/model-manager.ts:286
↓ 18 callersMethodgetInstance
()
src/components/query-tab/snippet/query-snippet-manager.ts:10
↓ 18 callersFunctiongetNum
(value: number | undefined)
src/lib/ai/token-usage-utils.ts:18
↓ 18 callersFunctiontoStringValue
(value: unknown)
src/components/span-log-inspector/span-log-inspector-topo-builder.ts:57
↓ 17 callersFunctiononChange
()
src/hooks/use-mobile.tsx:10
↓ 17 callersMethodpop
()
src/lib/stack.ts:8
↓ 16 callersFunctioncreateConfig
( rootDir: string, overrides?: Partial<ReturnType<typeof createCodeSearchEnabledConfig>> )
src/lib/code-search/__tests__/local-file-search.test.ts:9
↓ 16 callersMethodgetSession
(sessionId: string, options?: SessionAccessOptions)
src/components/chat/session/session-repository.ts:26
↓ 16 callersFunctionstringProp
(record: Record<string, unknown>, key: string)
src/components/query-tab/query-response/explain-plan-utils.ts:90
↓ 16 callersMethodtoExplainSQL
* Build EXPLAIN query string from SQL. Strips comments, trailing \G, comments out trailing * FORMAT clause, then prefixes with EXPLAIN &lt;type&gt;
src/lib/sql-utils.ts:102
↓ 15 callersFunctioncreateMessage
(id: string, role: "user" | "assistant", text: string)
src/components/chat/message/chat-message-list.test.tsx:23
↓ 15 callersMethodgetAsJSON
(defaultValueFactory: () => T)
src/components/settings/models/model-manager.test.ts:47
↓ 15 callersMethodgetItem
(key: string)
src/components/settings/models/model-manager.test.ts:12
↓ 15 callersMethodgetStorageProvider
()
src/lib/storage/storage-manager.ts:23
↓ 15 callersFunctionloadSectionLayout
( dashboardId: string, sectionIndex: number )
src/components/shared/dashboard/dashboard-layout-storage.ts:42
↓ 14 callersFunctioncreateSpan
(overrides: Record<string, unknown>)
src/components/span-log-inspector/span-log-inspector-topo-builder.test.ts:8
↓ 14 callersMethodisAvailable
()
src/lib/storage/local-storage-provider.ts:15
↓ 14 callersFunctionquoteValue
(value: string | number | boolean)
src/lib/ai/tools/clickhouse/search-query-log.ts:180
↓ 14 callersFunctionsanitizeMessageForPersistence
(message: AppUIMessage)
src/lib/ai/session/serialization.ts:41
↓ 14 callersFunctionsaveSectionLayout
( dashboardId: string, sectionIndex: number, layouts: ResponsiveLayouts )
src/components/shared/dashboard/dashboard-layout-storage.ts:25
↓ 14 callersMethodsubStorage
(subKey: string)
src/components/settings/models/model-manager.test.ts:36
↓ 13 callersFunctiongetSessionRepository
()
src/components/chat/session/session-repository-factory.ts:9
↓ 13 callersMethodobserve
()
src/components/chat/input/chat-input-suggestions.test.tsx:51
↓ 13 callersFunctionpluralize
(count: number, singular: string, plural: string)
src/components/query-tab/query-response/explain-plan-utils.ts:134
↓ 13 callersMethodrefresh
(param: RefreshOptions)
src/components/shared/dashboard/dashboard-visualization-layout.tsx:25
↓ 13 callersFunctionrequireScalarValue
(predicate: SearchQueryLogPredicate)
src/lib/ai/tools/clickhouse/search-query-log.ts:193
↓ 13 callersMethodsetItem
(key: string, value: string)
src/components/settings/models/model-manager.test.ts:16
↓ 13 callersFunctionuseChatPanel
()
src/components/chat/view/use-chat-panel.tsx:265
↓ 12 callersFunctioncreateToolPart
( toolName: string, toolCallId: string, state = "output-available", output: unknown = { success: true
src/components/chat/message/chat-message-parts.test.ts:5
↓ 12 callersMethodfirst
()
src/lib/connection/connection-manager.ts:204
↓ 12 callersMethodgetInstance
()
src/components/query-tab/query-input/completion/query-suggestion-manager.ts:21
↓ 12 callersMethodgetShortHostname
(hostname: string)
src/lib/host-name-manager.ts:114
↓ 12 callersFunctionisNoConnectionSessionConnectionId
(connectionId?: string | null)
src/components/chat/session/session-connection-id.ts:15
↓ 12 callersFunctionisRecord
(value: unknown)
src/components/query-tab/query-response/explain-plan-utils.ts:86
↓ 12 callersFunctionqueryJsonCompact
( sql: string, connection: Parameters<ToolExecutor<GetClusterStatusInput, GetClusterStatusOutput>>[1] )
src/lib/ai/tools/clickhouse/status/collect-cluster-status.ts:144
↓ 12 callersMethodreadFile
(input: ReadFileInput)
src/lib/code-search/types.ts:86
↓ 12 callersMethodremoveChild
* Remove a child key without creating a subStorage object
src/lib/storage/local-storage-provider.ts:141
↓ 12 callersMethodsetJSON
(value: unknown)
src/components/settings/models/model-manager.test.ts:52
↓ 12 callersMethodsplitSqlStatements
* Split SQL script text into executable statements. * * Strategy: * - `semicolon`: semicolon-aware split (ignores semicolons inside quotes/co
src/lib/sql-utils.ts:53
↓ 12 callersMethodtoYYYYMMddHHmmss
(date: Date)
src/lib/datetime-utils.ts:7
↓ 11 callersMethodalert
(dialogProps: DialogProps)
src/components/shared/use-dialog.tsx:301
↓ 11 callersMethodformatDateTime
* Format date with custom format string
src/lib/datetime-utils.ts:26
↓ 11 callersMethodgetTimeSpan
()
src/components/shared/dashboard/timespan-selector.tsx:157
↓ 11 callersMethodlistSkills
Return catalog metadata for all skills from this source.
src/lib/ai/skills/skill-provider.ts:36
↓ 11 callersMethodsearchFile
(input: SearchFileInput)
src/lib/code-search/types.ts:85
↓ 10 callersFunctionbuildTableKey
(database: string, table: string)
src/lib/ai/tools/clickhouse/collect-sql-optimization-evidence.ts:209
↓ 10 callersMethodcreate
* Create or retrieve a persisted chat instance
src/components/chat/chat-factory.ts:376
↓ 10 callersFunctioncreateMessage
(overrides: Partial<AppUIMessage>)
src/lib/ai/session/remote-chat-request.test.ts:10
↓ 10 callersMethodcreateModel
* Create a language model with the provided parameters * * Priority: * 1. If USE_MOCK_LLM=true, returns mock models * 2. Otherwise, create
src/lib/ai/llm/llm-provider-factory.ts:971
↓ 10 callersMethoddisconnect
()
src/components/chat/input/chat-input-suggestions.test.tsx:53
↓ 10 callersFunctionemitChange
()
src/components/chat/session/session-manager.ts:44
↓ 10 callersFunctiongetAutoExplainState
(clickHouseErrorCode?: string | number)
src/components/query-tab/query-response/query-error-auto-explain-config.ts:15
↓ 10 callersMethodgetConfiguration
()
src/components/settings/agent/agent-manager.ts:75
↓ 10 callersFunctiongetServerSessionRepository
()
src/lib/ai/session/server-session-repository-factory.ts:96
↓ 10 callersFunctionlimitOutliers
(items: T[], maxOutliers: number | undefined)
src/lib/ai/tools/clickhouse/status/collect-cluster-status.ts:89
↓ 10 callersMethodparseComparator
(name: string)
src/components/shared/selector.tsx:93
↓ 10 callersFunctionregisterIssueNode
(node: string)
src/lib/ai/tools/clickhouse/status/collect-cluster-status.ts:1276
↓ 10 callersFunctionregisterObservedNode
(node: string)
src/lib/ai/tools/clickhouse/status/collect-cluster-status.ts:1271
↓ 10 callersFunctiontransformTree
(tree: MarkdownNode)
src/components/chat/message/remark-extensions.test.ts:12
↓ 9 callersFunctionbuildSendMessagesRequestPayload
({ sessionId, connectionId, messages, trigger, messageId, body, requestContext, clickHouseConn
src/components/chat/chat-factory.ts:170
↓ 9 callersFunctiongetErrorMessage
(error: unknown)
src/lib/ai/tools/clickhouse/collect-sql-optimization-evidence.ts:118
↓ 9 callersFunctiongetModel
(provider: string, modelId: string)
src/lib/ai/llm/llm-provider-factory.test.ts:10
↓ 9 callersFunctiongetSortIcon
(column: "key" | "value")
src/lib/formatter.tsx:54
next →1–100 of 1,973, ranked by callers