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
↓ 9 callers
Function
handleSort
(column: "key" | "value")
src/lib/formatter.tsx:38
↓ 9 callers
Function
isInBrowser
* Unified tab events for event-based communication between components
src/components/tab-manager.ts:5
↓ 9 callers
Method
list
()
src/components/query-tab/query-history/query-history-manager.ts:31
↓ 9 callers
Method
matchesSessionConnectionId
(connectionId?: string | null)
src/lib/connection/connection.ts:253
↓ 9 callers
Function
normalizeAIResponseLanguage
(raw: string | undefined)
src/components/settings/agent/agent-manager.ts:37
↓ 9 callers
Function
numberProp
(record: Record<string, unknown>, key: string)
src/components/query-tab/query-response/explain-plan-utils.ts:95
↓ 9 callers
Function
resolveModelSupportsReasoning
( model?: Pick<ModelProps, "provider" | "modelId" | "supportsReasoning" | "reasoningLevels"> | null )
src/lib/ai/llm/llm-provider-factory.ts:143
↓ 9 callers
Function
resolveSessionAccess
(input: { repository: ServerSessionRepository; authenticatedUserId: string | undefined; sessionId: strin
src/lib/ai/session/session-access.ts:29
↓ 9 callers
Function
useTheme
()
src/components/shared/theme-provider.tsx:76
↓ 8 callers
Method
activateQueryTab
* Emit an activate query tab event (query tab is always present, this just activates it)
src/components/tab-manager.ts:167
↓ 8 callers
Function
asNumber
(value: unknown)
src/lib/ai/tools/clickhouse/rca/evidence-collector-common.ts:364
↓ 8 callers
Function
bind
(toolName: ClickHouseToolName)
src/lib/ai/tools/clickhouse/clickhouse-tools.ts:642
↓ 8 callers
Method
buildProviderOptions
( input: ProviderOptionsRequestInput )
src/lib/ai/llm/llm-provider-factory.ts:1015
↓ 8 callers
Method
canUserEditSkill
(userId: string | null | undefined)
src/lib/ai/skills/skill-permission-manager.ts:38
↓ 8 callers
Function
createCommandPart
(displayName: string)
src/test/cmdk-stub.tsx:10
↓ 8 callers
Function
createMessage
(overrides: Partial<AppUIMessage>)
src/components/chat/chat-factory.test.ts:9
↓ 8 callers
Function
createModel
(provider: string, modelId: string)
src/lib/ai/agent/session-title-generator.test.ts:5
↓ 8 callers
Function
getClickHouseConnectionValidationError
(connection: unknown)
src/lib/ai/tools/clickhouse/clickhouse-connection.ts:61
↓ 8 callers
Function
getCodeSearchConfig
()
src/lib/code-search/config.ts:359
↓ 8 callers
Method
getConnectionStorage
()
src/lib/connection/connection-manager.ts:30
↓ 8 callers
Method
getDefaultTemperature
* Get the default temperature for a given model * Different models have different default and supported temperature ranges * * @param modelId
src/lib/ai/llm/llm-provider-factory.ts:877
↓ 8 callers
Method
getSkillDetail
Return full detail for a single skill by id, or null if not found.
src/lib/ai/skills/skill-provider.ts:39
↓ 8 callers
Method
load
()
src/components/query-tab/query-history/query-history-storage.ts:11
↓ 8 callers
Method
queryJsonCompact
* Execute a query with JSONCompact format and return parsed response.
src/lib/connection/connection.ts:485
↓ 8 callers
Function
setTestResultWithDelay
(result: { type: "success" | "error"; message: string })
src/components/connection/connection-edit-component.tsx:595
↓ 8 callers
Function
toSessionRepositoryConnectionId
(connectionId: string)
src/components/chat/session/session-connection-id.ts:5
↓ 8 callers
Method
upsertSkill
(input: UpsertSkillRecordInput)
src/lib/ai/skills/repository/server-skill-repository.ts:74
↓ 8 callers
Function
useIsMobile
()
src/hooks/use-mobile.tsx:5
↓ 8 callers
Function
useSidebar
()
src/components/ui/sidebar.tsx:45
↓ 8 callers
Function
validateSessionId
(sessionId: string)
src/lib/ai/session/remote-chat-request.ts:44
↓ 7 callers
Function
buildOrchestratorSystemPrompt
( context?: ServerDatabaseContext, options?: { responseLanguage?: string } )
src/lib/ai/agent/orchestrator-prompt.ts:23
↓ 7 callers
Function
buildVisibility
(options: DatabaseSkillProviderOptions)
src/lib/ai/skills/database-skill-provider.ts:156
↓ 7 callers
Function
createMessage
(parts: AppUIMessage["parts"])
src/lib/ai/session/serialization.test.ts:5
↓ 7 callers
Function
getConnectionBucket
(connectionId: string)
src/components/chat/session/session-manager.ts:49
↓ 7 callers
Function
getFirstNonEmptyValue
( row: Record<string, unknown>, attributes: Record<string, unknown>, keys: string[] )
src/components/span-log-inspector/span-log-inspector-topo-builder.ts:154
↓ 7 callers
Function
getLeadingCommand
(text: string)
src/components/chat/input/command-utils.ts:10
↓ 7 callers
Function
getPanelConstraints
(panelType: string)
src/components/shared/dashboard/dashboard-layout-constraints.ts:27
↓ 7 callers
Method
getProviderSettings
* Get all provider settings from localStorage * @returns Array of provider settings
src/components/settings/models/model-manager.ts:228
↓ 7 callers
Method
getSkillResource
( skillId: string, resourcePath: string, visibility: SkillRepositoryVisibility )
src/lib/ai/skills/repository/server-skill-repository.ts:66
↓ 7 callers
Function
normalizeRefreshOptions
( options: RefreshOptions | undefined )
src/components/shared/dashboard/dashboard-visualization-panel.tsx:112
↓ 7 callers
Method
notify
* Notify listeners that the model configuration has changed
src/components/settings/models/model-manager.ts:144
↓ 7 callers
Function
parseExplainPlanResponse
(data: unknown)
src/components/query-tab/query-response/explain-plan-utils.ts:338
↓ 7 callers
Method
prettyFormatQuery
* Format SQL query for pretty-printing using sql-formatter.
src/lib/sql-utils.ts:80
↓ 7 callers
Method
queryOnNode
( sql: string, params?: Record<string, unknown>, headers?: Record<string, string> )
src/lib/connection/connection.ts:491
↓ 7 callers
Function
replaceLeadingCommand
( input: string, commandName: string, cursorOffset: number = input.length )
src/components/chat/input/command-utils.ts:23
↓ 7 callers
Method
resolveExecutionSql
* Resolve which SQL should run from editor context. * - If text is selected, run selected text. * - Otherwise run current cursor line.
src/lib/sql-utils.ts:22
↓ 7 callers
Function
restoreEnvValue
(key: keyof typeof originalEnv)
src/lib/code-search/__tests__/config.test.ts:19
↓ 7 callers
Method
setConfiguration
(cfg: AgentConfiguration)
src/components/settings/agent/agent-manager.ts:98
↓ 7 callers
Method
toDateValue
(value: unknown)
src/lib/formatter.tsx:515
↓ 7 callers
Function
toManagedSession
( session: Chat, current?: ManagedSession, options?: SessionAccessOptions )
src/components/chat/session/session-manager.ts:56
↓ 7 callers
Function
updateStep
(id: string, status: StepStatus, label?: string)
src/components/main-page.tsx:375
↓ 6 callers
Function
buildExplainErrorPrompt
({ errorMessage, errorCode, sql, language = DEFAULT_AI_RESPONSE_LANGUAGE, }: { errorMessage: string;
src/components/query-tab/query-response/explain-error-prompt.ts:7
↓ 6 callers
Function
buildTopo
(spans: Record<string, unknown>[])
src/components/span-log-inspector/span-log-inspector-topo-builder.test.ts:21
↓ 6 callers
Method
calculateAbsoluteTimeSpan
()
src/components/shared/dashboard/timespan-selector.tsx:169
↓ 6 callers
Function
clickText
(container: HTMLElement, text: string)
src/components/chat/message/message-tool-ask-user-question.test.tsx:66
↓ 6 callers
Method
commentOutFormatClause
* Comment out the FORMAT <format_name> clause so it is preserved for debugging * but does not affect execution. Case-insensitive. Matches FOR
src/lib/sql-utils.ts:93
↓ 6 callers
Method
create
(config: ConnectionConfig)
src/lib/connection/connection.ts:249
↓ 6 callers
Method
getAllModels
* Get all registered models (static + dynamic)
src/components/settings/models/model-manager.ts:121
↓ 6 callers
Method
getCodeSearchContext
()
src/lib/code-search/code-search-factory.ts:21
↓ 6 callers
Method
getConnections
()
src/lib/connection/connection-manager.ts:117
↓ 6 callers
Method
getMessages
(sessionId: string, options?: SessionAccessOptions)
src/components/chat/session/session-repository.ts:28
↓ 6 callers
Method
getProvider
(options: SkillProviderFactoryOptions)
src/lib/ai/skills/skill-provider-factory.ts:14
↓ 6 callers
Function
getRuntimeConfig
()
src/components/runtime-config-provider.tsx:45
↓ 6 callers
Method
getStorage
()
src/components/dashboard-tab/custom-dashboard-storage.ts:37
↓ 6 callers
Function
group
(title: string, count = 1)
src/components/shared/dashboard/__tests__/dashboard-panel-container.test.ts:14
↓ 6 callers
Method
highlight2
( text: string, start: number, end: number, matchedCssStyleClass: string )
src/lib/text-highlighter.tsx:15
↓ 6 callers
Method
indexOfIgnoreCase
(text: string, search: string)
src/lib/string-utils.ts:30
↓ 6 callers
Method
listFiles
()
src/lib/code-search/types.ts:87
↓ 6 callers
Function
listener
()
src/components/query-tab/query-input/use-query-input.tsx:53
↓ 6 callers
Function
normalizeRelativePath
(relativePath: string)
src/lib/code-search/path-filters.ts:5
↓ 6 callers
Function
normalizeUsage
( u: Record<string, unknown> | undefined )
src/lib/ai/token-usage-utils.ts:60
↓ 6 callers
Method
prune
* Main entry point for message pruning. * Compresses conversation history by removing redundant intermediate tool calls. * Currently prunes all
src/lib/ai/message-pruner.ts:13
↓ 6 callers
Function
recordArray
(value: unknown)
src/components/query-tab/query-response/explain-plan-utils.ts:119
↓ 6 callers
Method
removeItem
(key: string)
src/components/settings/models/model-manager.test.ts:20
↓ 6 callers
Function
requireArrayValue
(predicate: SearchQueryLogPredicate)
src/lib/ai/tools/clickhouse/search-query-log.ts:200
↓ 6 callers
Function
signSessionShareCode
(input: { ownerId: string; sessionId: string; expiresAt?: number; })
src/lib/ai/session/session-share-code.ts:24
↓ 6 callers
Method
timeSpan
* Replace time span template parameters in the SQL query. * Replaces: {timeFilter}, {rounding:UInt32}, {seconds:UInt32}, {startTimestamp:UInt32},
src/components/shared/dashboard/sql-query-builder.ts:104
↓ 6 callers
Method
updateTitle
* Update the chat title * Dispatches an event that ChatPanel will listen to
src/components/chat/chat-ui-context.ts:27
↓ 6 callers
Method
upsertSkillBundle
(ownerId: string, input: UpsertSkillBundleInput)
src/lib/ai/skills/repository/server-skill-repository.ts:71
↓ 6 callers
Function
validateRemoteChatRequest
(payload: unknown)
src/lib/ai/session/remote-chat-request.ts:66
↓ 5 callers
Function
POST
(req: Request)
src/app/api/ai/skills/actions/review/route.ts:19
↓ 5 callers
Function
areRefreshOptionsEqual
( left: RefreshOptions | undefined, right: RefreshOptions | undefined )
src/components/shared/dashboard/dashboard-visualization-panel.tsx:125
↓ 5 callers
Method
build
* Get the final SQL query string. * * @returns The processed SQL query
src/components/shared/dashboard/sql-query-builder.ts:159
↓ 5 callers
Function
buildSearchQueryLogSql
( input: SearchQueryLogInput, availableColumns: Set<string> )
src/lib/ai/tools/clickhouse/search-query-log.ts:388
↓ 5 callers
Function
clearDiskSkillProviderCache
()
src/lib/ai/skills/disk-skill-provider.ts:23
↓ 5 callers
Function
createIdentifierHandler
(patterns: RegExp[])
src/lib/clickhouse/clickhouse-error-parser.ts:165
↓ 5 callers
Function
createSession
(userId: string, sessionId: string)
src/lib/ai/session/session-access.test.ts:6
↓ 5 callers
Function
createSkillAvailabilityFilter
( availableTools: ReadonlySet<string> )
src/lib/ai/skills/skill-availability.ts:16
↓ 5 callers
Function
createTextNode
(value: string)
src/components/chat/message/remark-extensions.ts:55
↓ 5 callers
Method
expand
(input: string)
src/components/chat/input/sql-snippet-token.ts:17
↓ 5 callers
Method
formatBinarySize
()
src/lib/number-utils.ts:5
↓ 5 callers
Function
formatPrimitive
(value: unknown)
src/components/query-tab/query-response/explain-query-response-view.tsx:154
↓ 5 callers
Method
getAvailableModels
* Get all available models that are enabled and have an API key configured. * Includes a special 'Auto' model representing the server-side default
src/components/settings/models/model-manager.ts:323
↓ 5 callers
Method
getCache
()
src/lib/ai/skills/disk-skill-provider.ts:267
↓ 5 callers
Function
getConnectionGroupMeta
( connectionId: string, currentConnectionId?: string )
src/components/chat/session/chat-session-list.tsx:151
↓ 5 callers
Function
getDatabaseContextFromConnection
( connection?: Pick<Connection, "cluster" | "metadata"> | null )
src/components/chat/chat-context.ts:28
↓ 5 callers
Method
getInstance
()
src/components/dashboard-tab/custom-dashboard-storage.ts:30
↓ 5 callers
Method
getModelSettings
* Get all model settings from localStorage * @returns Array of model settings
src/components/settings/models/model-manager.ts:211
↓ 5 callers
Function
getSelectionOffsets
(root: HTMLElement)
src/components/chat/input/chat-input.tsx:347
↓ 5 callers
Function
getServerSessionRepositoryConfig
()
src/lib/ai/session/server-session-repository-factory.ts:54
← previous
next →
101–200 of 1,973, ranked by callers