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
↓ 5 callers
Method
getSessions
(input: SessionPageInput)
src/components/chat/session/session-repository.ts:27
↓ 5 callers
Method
getSkill
(id: string, visibility: SkillRepositoryVisibility)
src/lib/ai/skills/repository/server-skill-repository.ts:61
↓ 5 callers
Method
getSkillResource
Return raw content of a sub-resource file, or null if not found.
src/lib/ai/skills/skill-provider.ts:45
↓ 5 callers
Function
handler
(event: CustomEvent<TabInfo>)
src/components/main-page-tab-list.tsx:334
↓ 5 callers
Function
isAuthEnabled
()
src/auth.ts:257
↓ 5 callers
Method
isSafeRelativePath
(input: string)
src/lib/ai/skills/disk-skill-provider.ts:57
↓ 5 callers
Method
listSkillResource
( skillId: string, visibility: SkillRepositoryVisibility )
src/lib/ai/skills/repository/server-skill-repository.ts:62
↓ 5 callers
Function
loadDashboardLayout
(dashboardId: string)
src/components/shared/dashboard/dashboard-layout-storage.ts:110
↓ 5 callers
Function
logCodeSearchInfo
(message: string, details?: Record<string, unknown>)
src/lib/code-search/config.ts:45
↓ 5 callers
Function
matchesIncludedName
(relativePath: string, includeNames: string[])
src/lib/code-search/path-filters.ts:19
↓ 5 callers
Function
matchesSearchableSuffix
( relativePath: string, searchableSuffixes: string[] )
src/lib/code-search/path-filters.ts:29
↓ 5 callers
Function
normalizeTraceRow
(row: SpanLogElement)
src/components/span-log-inspector/span-log-inspector-topo-builder.ts:87
↓ 5 callers
Function
panel
(title: string)
src/components/shared/dashboard/__tests__/dashboard-panel-container.test.ts:5
↓ 5 callers
Function
parseRequiredTools
(input: unknown)
src/lib/ai/skills/skill-availability.ts:3
↓ 5 callers
Method
qualifyTableNames
* Replace unqualified table names in SQL with fully qualified names. * Only replaces table references (after FROM, JOIN, INTO, etc.), not column re
src/lib/sql-utils.ts:164
↓ 5 callers
Method
removeComments
* Remove single-line (--) and multiline (/* *\/) comments from SQL, then trim.
src/lib/sql-utils.ts:125
↓ 5 callers
Function
requiresLegacySectionLayoutInvalidation
( charts: (PanelDescriptor | DashboardGroup)[] )
src/components/shared/dashboard/dashboard-panel-container.tsx:123
↓ 5 callers
Method
resolveModel
(modelConfig: InputModel)
src/lib/ai/agent/session-title-generator.ts:19
↓ 5 callers
Function
resolveModelSupportsImageInput
( model?: Pick<ModelProps, "provider" | "modelId" | "supportsImageInput"> | null )
src/lib/ai/llm/llm-provider-factory.ts:88
↓ 5 callers
Function
restoreEnvValue
(key: keyof typeof originalEnv)
src/lib/code-search/__tests__/code-search-factory.test.ts:18
↓ 5 callers
Function
showConnectionEditDialog
(options: ShowConnectionEditDialogOptions)
src/components/connection/connection-edit-component.tsx:985
↓ 5 callers
Function
streamObject
(input: { model: LanguageModel; prompt: string; schema: SCHEMA; temperature?: number; supportsStruct
src/lib/ai/stream-utils.ts:60
↓ 5 callers
Method
streamObject
* Serializes the given object as JSON and enqueues it as an SSE data message.
src/lib/sse-streamer.ts:13
↓ 5 callers
Function
toMessages
(value: unknown)
src/lib/ai/message-pruner.test.ts:5
↓ 5 callers
Function
toStringValue
(value: unknown, fallback = "")
src/components/query-log-inspector/query-log-inspector-timeline-types.ts:19
↓ 5 callers
Method
toViewerUrl
(href: string)
src/components/chat/message/file-link.ts:61
↓ 5 callers
Function
uiMessageToText
(message: UIMessage)
src/lib/ai/agent/plan/planning-prompt-builder.ts:7
↓ 5 callers
Method
upsertMessage
(input: UpsertMessageInput)
src/lib/ai/session/server-session-repository.ts:99
↓ 5 callers
Function
useIsDarkTheme
()
src/components/shared/dashboard/use-is-dark-theme.ts:42
↓ 5 callers
Function
useQueryExecutor
()
src/components/query-tab/query-execution/query-executor.tsx:455
↓ 5 callers
Function
useStableCallback
( callback: (...args: Args) => Return )
src/components/chat/view/chat-view.tsx:34
↓ 5 callers
Method
withCompression
* Create a new LocalStorage instance with the specified compression setting * @param enable - Optional compression flag (defaults to true) * @re
src/lib/storage/local-storage-provider.ts:237
↓ 4 callers
Function
adjustBrightness
* Adjust the brightness of a hex color * @param hex - Hex color string (e.g., "#ffffff") * @param percent - Percentage to adjust (-100 to 100, negat
src/components/query-tab/query-response/explain-pipeline-response-view.tsx:42
↓ 4 callers
Method
applyTimestampDivisor
(value: unknown, params?: unknown[])
src/lib/formatter.tsx:521
↓ 4 callers
Function
buildAgentContextWithResponseLanguage
( agentContext: Partial<AgentContext> | undefined, configuredLanguage: string | undefined )
src/components/chat/chat-factory.ts:101
↓ 4 callers
Function
buildDescriptorFromState
( chartType: ChartType, title: string, sql: string, gridW: number, gridH: number, statOpts: StatOp
src/components/dashboard-tab/panel-edit/use-panel-edit-state.ts:551
↓ 4 callers
Function
buildShareCodeHeaders
(options?: SessionAccessOptions)
src/components/chat/session/remote-session-repository.ts:59
↓ 4 callers
Function
countRepeatedCharacter
(source: string, start: number, character: string)
src/components/chat/message/message-markdown-math.ts:1
↓ 4 callers
Function
createCodeSearchEnabledConfig
( config: Omit<CodeSearchConfig, "enabled"> )
src/lib/code-search/config.ts:377
↓ 4 callers
Method
createDescriptionHTML
* Helper function to create docHTML with standard styling
src/components/query-tab/query-input/completion/query-suggestion-manager.ts:99
↓ 4 callers
Function
createJsonCompactResponse
( meta: JSONCompactFormatResponse["meta"], data: JSONCompactFormatResponse["data"] )
src/lib/ai/tools/clickhouse/search-query-log.test.ts:9
↓ 4 callers
Function
createRepository
( sessions: PersistedChatSession[] )
src/lib/ai/session/session-access.test.ts:17
↓ 4 callers
Function
createToolPart
( input: unknown, output = "# Skill Resource: vizlayer / reference/flowchart.md\n\ncontent", state = "in
src/components/chat/message/message-tool-skill.test.tsx:11
↓ 4 callers
Function
createToolPart
( overrides: Partial<Record<string, unknown>> = {} )
src/components/chat/message/message-tool-ask-user-question.test.tsx:19
↓ 4 callers
Method
decode
(encodedPayload: string)
src/components/chat/input/inline-token.test.ts:13
↓ 4 callers
Method
escapeSqlIdentifier
* Escape a SQL identifier with backticks for ClickHouse and escape embedded backticks.
src/lib/sql-utils.ts:152
↓ 4 callers
Function
fetchJson
(url)
scripts/generate-release-notes.mjs:127
↓ 4 callers
Method
filterExpression
* Replace filter expression placeholder in the SQL query. * Replaces: {filterExpression:String} * * @param expression The filter expression (
src/components/shared/dashboard/sql-query-builder.ts:122
↓ 4 callers
Method
formatWithNoTrailingZeros
(fraction: number)
src/lib/number-utils.ts:7
↓ 4 callers
Method
getBasePath
()
src/lib/base-path.ts:12
↓ 4 callers
Function
getCSSColorAsHex
* Resolve a CSS custom property as a hex color by letting the browser apply * the value via a hidden DOM element. Works for any color format the brow
src/components/query-tab/query-response/explain-pipeline-response-view.tsx:24
↓ 4 callers
Function
getChatTitle
(chat: Pick<Chat, "title">)
src/components/chat/session/chat-session-list.tsx:97
↓ 4 callers
Method
getColor
(key: string)
src/lib/color-generator.ts:38
↓ 4 callers
Method
getCompleters
(completers: Ace.Completer[] | undefined)
src/components/query-tab/query-input/completion/query-suggestion-manager.ts:602
↓ 4 callers
Method
getMessagesForChat
(chatId: string)
src/components/chat/session/local-session-repository.ts:235
↓ 4 callers
Function
getOrCreateNode
(row: TraceRowRef)
src/components/span-log-inspector/span-log-inspector-topo-builder.ts:350
↓ 4 callers
Method
getSelectedFilter
()
src/components/shared/dashboard/dashboard-filter.tsx:280
↓ 4 callers
Function
getServerSkillRepository
()
src/lib/ai/skills/repository/server-skill-repository-factory.ts:13
↓ 4 callers
Method
getSession
(userId: string, sessionId: string)
src/lib/ai/session/server-session-repository.ts:94
↓ 4 callers
Function
getSessionRepositoryConnectionId
( connection?: { connectionId?: string } | null )
src/components/chat/session/session-connection-id.ts:9
↓ 4 callers
Function
getSystemProviderApiKey
(provider: string)
src/lib/ai/llm/llm-provider-factory.ts:811
↓ 4 callers
Function
groupRenderableParts
(parts: MessagePart[])
src/components/chat/message/chat-message-parts.ts:34
↓ 4 callers
Function
hasClickHouseConnection
(connection: unknown)
src/lib/ai/tools/clickhouse/clickhouse-connection.ts:8
↓ 4 callers
Function
hasDatabaseContextFacts
(context?: DatabaseContext)
src/components/chat/chat-context.ts:10
↓ 4 callers
Method
highlight
( text: string, search: string, matchedCssStyleClass: string = "text-yellow-500" )
src/lib/text-highlighter.tsx:4
↓ 4 callers
Function
isDashboardGroup
(item: unknown)
src/components/shared/dashboard/dashboard-panel-container.tsx:113
↓ 4 callers
Function
isIdentifierChar
(char: string)
src/lib/clickhouse/clickhouse-error-parser.ts:97
↓ 4 callers
Method
key
(index: number)
src/components/settings/models/model-manager.test.ts:28
↓ 4 callers
Function
matchesExcludedName
(relativePath: string, excludedNames: string[])
src/lib/code-search/path-filters.ts:14
↓ 4 callers
Function
maxNumber
(...values: Array<number | undefined>)
src/components/query-tab/query-response/explain-plan-utils.ts:126
↓ 4 callers
Method
normalize
(basePath: string | undefined)
src/lib/base-path.ts:2
↓ 4 callers
Method
normalizeMessage
(message: Message)
src/components/chat/session/local-session-repository.ts:85
↓ 4 callers
Function
normalizeVisualizationError
(message: string)
src/components/shared/dashboard/dashboard-visualization-panel.tsx:105
↓ 4 callers
Method
notifyListeners
()
src/components/query-tab/snippet/query-snippet-manager.ts:53
↓ 4 callers
Function
parseErrorLocation
( clickHouseErrorCode: string | undefined, detailMessage: string | null, sql: string | undefined )
src/lib/clickhouse/clickhouse-error-parser.ts:259
↓ 4 callers
Function
parseJsonField
(label: string, value: string | null)
src/lib/ai/session/serialization.ts:95
↓ 4 callers
Function
parsePositiveInteger
(rawValue: string | string[] | undefined)
src/app/code-viewer/page.tsx:8
↓ 4 callers
Function
postMessage
( text: string, options?: { forceNewChat?: boolean; agentContext?: Partial<AgentContext> } )
src/components/chat/view/use-chat-panel.tsx:203
↓ 4 callers
Method
queryRawResponse
* Execute a query and return the raw fetch Response for streaming. * The caller is responsible for reading the response body (e.g. via response.bod
src/lib/connection/connection.ts:414
↓ 4 callers
Method
reCalculateTimeSpan
()
src/components/shared/dashboard/timespan-selector.tsx:164
↓ 4 callers
Method
read
( reader: ReadableStreamDefaultReader<Uint8Array>, onLine: (line: string) => void )
src/lib/http-response-line-reader.ts:5
↓ 4 callers
Function
readJsonError
(response: Response, fallback: string)
src/components/settings/skills/skills-detail-view.tsx:65
↓ 4 callers
Function
reloadConnections
()
src/components/connection/connection-selector.tsx:61
↓ 4 callers
Function
removeLeadingCommand
(input: string)
src/components/chat/input/command-utils.ts:37
↓ 4 callers
Method
replaceAllLiteral
(input: string, token: string, value: string)
src/components/shared/dashboard/dashboard-filter.tsx:295
↓ 4 callers
Function
resolveExistingLocalDir
(localDir: string)
src/lib/code-search/config.ts:174
↓ 4 callers
Function
resolveModelConfig
( model?: RequestedModelConfig, requirements?: { imageInput?: boolean } )
src/lib/ai/llm/llm-provider-factory.ts:835
↓ 4 callers
Method
safeSave
( key: string | null, saveFn: () => void, currentChatId?: string, hasPrunedMessages = false
src/components/chat/session/local-session-repository.ts:170
↓ 4 callers
Method
save
(entries: QueryHistoryEntry[])
src/components/query-tab/query-history/query-history-storage.ts:12
↓ 4 callers
Function
saveDashboardLayout
(dashboardId: string, layouts: ResponsiveLayouts)
src/components/shared/dashboard/dashboard-layout-storage.ts:100
↓ 4 callers
Method
saveSession
(session: Chat)
src/components/chat/session/session-repository.ts:30
↓ 4 callers
Function
setInitialInput
( text: string, chatId?: string, mode: ChatComposerInputMode = "replace" )
src/components/chat/view/use-chat-panel.tsx:220
↓ 4 callers
Method
setJSON
(value: unknown)
src/lib/storage/local-storage-provider.ts:90
↓ 4 callers
Function
shouldCollectExplainPipeline
(sql: string, mode: CollectMode)
src/lib/ai/tools/clickhouse/collect-sql-optimization-evidence.ts:438
↓ 4 callers
Function
showSettingsDialog
(options: ShowSettingsDialogOptions = {})
src/components/settings/settings-dialog.tsx:184
↓ 4 callers
Function
sumTokenUsage
( usages: Array<LanguageModelUsage | undefined | null> )
src/lib/ai/token-usage-utils.ts:26
↓ 4 callers
Method
timeFormat
(time: number, fractionDigits: number, units: string[])
src/lib/formatter.tsx:617
↓ 4 callers
Method
toCompletion
()
src/components/query-tab/snippet/query-snippet-manager.ts:93
↓ 4 callers
Method
toLinkNode
()
src/components/chat/message/file-link.ts:83
↓ 4 callers
Function
toStandardReasoningLevel
(level: ReasoningLevel)
src/lib/ai/llm/llm-provider-factory.ts:201
← previous
next →
201–300 of 1,973, ranked by callers