Code
Hub
Workspaces
Following
Trending
Connect
MCP
copy
Create free account
hub
/
github.com/cubewhy/skid-homework
/ functions
Functions
376 in github.com/cubewhy/skid-homework
⨍
Functions
376
◇
Types & classes
50
↓ 153 callers
Function
cn
(...inputs: ClassValue[])
src/lib/utils.ts:4
↓ 9 callers
Function
useShortcut
( action: ShortcutAction, handler: (event: KeyboardEvent) => void, deps: unknown[] = [], )
src/hooks/use-shortcut.ts:8
↓ 6 callers
Function
useMediaQuery
(query: string)
src/hooks/use-media-query.ts:7
↓ 5 callers
Function
sortThreadsByUpdated
(threads: ChatThreadRecord[])
src/store/chat-store.ts:56
↓ 4 callers
Function
getAdbManager
()
src/lib/webadb/screenshot.ts:31
↓ 4 callers
Function
getEnabledToolCallingPrompts
()
src/ai/prompts/prompt-manager.ts:5
↓ 4 callers
Function
handleCopy
(text: string)
src/components/dialogs/InspectDialog.tsx:37
↓ 4 callers
Function
isNonRetryableError
( error: unknown, )
src/ai/errors.ts:9
↓ 4 callers
Function
sanitizeForCData
* Sanitizes content to be safely placed inside a CDATA section. * The string "]]>" is not allowed within a CDATA section. This function escapes it *
src/ai/request.ts:18
↓ 3 callers
Function
createId
()
src/db/chat-db.ts:41
↓ 3 callers
Function
destroyBoard
()
src/components/markdown/diagram/JSXGraphDiagram.tsx:30
↓ 3 callers
Function
ensureContent
(val: string | undefined | null, fb: string)
src/hooks/use-solution-export.ts:39
↓ 3 callers
Function
generateSourcesHashAsync
(sources: AiSource[])
src/hooks/use-available-models.ts:29
↓ 3 callers
Function
generateTextFilename
(content: string)
src/utils/file-utils.ts:1
↓ 3 callers
Function
handleSelect
(model: string, sourceId: string | null)
src/components/ui/model-selector.tsx:94
↓ 3 callers
Function
isTextMimeType
(mimeType: string, fileName?: string)
src/utils/file-utils.ts:25
↓ 3 callers
Method
parseSteps
* Static helper to parse steps from a specific explanation string. * Looks for H4 headers (#### Step X) to split content.
src/ai/response.ts:75
↓ 3 callers
Function
reportError
(message: string | null)
src/components/markdown/diagram/JSXGraphDiagram.tsx:37
↓ 2 callers
Method
_executeResponsesStream
* Streaming helper using the Responses API to support web search.
src/ai/openai.ts:377
↓ 2 callers
Method
_executeStream
( model: string, messages: ChatCompletionMessageParam[], callback?: (text: string) => void )
src/ai/openai.ts:337
↓ 2 callers
Function
_syncSelectedDevice
()
src/lib/webadb/screenshot.ts:8
↓ 2 callers
Function
applyTheme
()
src/components/theme-provider.tsx:50
↓ 2 callers
Function
base64Decoder
( base64: string, encoding: string = "utf-8", )
src/utils/encoding.ts:14
↓ 2 callers
Function
copyToClipboard
(text: string)
src/components/solutions/SolutionViewer.tsx:71
↓ 2 callers
Function
createClientForSource
(source: AiSource)
src/store/ai-store.ts:142
↓ 2 callers
Function
expandShortcutVariants
(shortcut?: string | null)
src/utils/shortcuts.ts:220
↓ 2 callers
Method
formatOnlineSearch
( groundingChunks: { uri?: string | null; title?: string | null }[], queries: string[], existingTe
src/ai/gemini.ts:83
↓ 2 callers
Function
formatShortcutLabel
(shortcut?: string | null)
src/utils/shortcuts.ts:195
↓ 2 callers
Method
getAvailableModels
()
src/ai/gemini.ts:245
↓ 2 callers
Method
getSectionsByH3
* Extracts content grouped by H3 headers (### KEY). * Example: ### PROBLEM_TEXT -> content
src/ai/response.ts:45
↓ 2 callers
Function
handleThinkingBudgetChange
(value: number)
src/components/settings/SettingsPage.tsx:317
↓ 2 callers
Function
hydrateCachedData
( cached: CachedSourceModels[], sources: AiSource[] )
src/hooks/use-available-models.ts:101
↓ 2 callers
Function
initBoard
()
src/components/markdown/diagram/JSXGraphDiagram.tsx:80
↓ 2 callers
Method
injectCitations
( text: string, supports: { segment: { startIndex?: number; endIndex?: number }; grounding
src/ai/gemini.ts:55
↓ 2 callers
Function
normalizeShortcutTokens
(tokens: string[])
src/utils/shortcuts.ts:251
↓ 2 callers
Function
readCache
()
src/hooks/use-available-models.ts:60
↓ 2 callers
Function
readTextFile
(url: string)
src/utils/file-utils.ts:14
↓ 2 callers
Function
reconnectAdbDevice
()
src/lib/webadb/screenshot.ts:75
↓ 2 callers
Function
renderItems
()
src/components/preview/PreviewList.tsx:54
↓ 2 callers
Method
requestDevice
()
src/lib/webadb/manager.ts:41
↓ 2 callers
Function
resetAddDialog
()
src/components/settings/AddAISourceDialog.tsx:47
↓ 2 callers
Function
runWithRetry
( model: string, sourceId: string | undefined, logPrefix: string )
src/components/pages/ScanPage.tsx:232
↓ 2 callers
Method
sendMedia
( file: AiFile, prompt?: string, model = "gemini-3.1-pro-preview", callback?: (text: string) =
src/ai/gemini.ts:125
↓ 2 callers
Function
toCacheFormat
(data: SourceModels[])
src/hooks/use-available-models.ts:119
↓ 2 callers
Function
uint8ToBase64
(uint8Array: Uint8Array)
src/utils/encoding.ts:1
↓ 2 callers
Function
updateAdbStatus
()
src/components/actions/UploadArea.tsx:79
↓ 2 callers
Function
useAvailableModels
()
src/hooks/use-available-models.ts:126
↓ 2 callers
Function
useTheme
()
src/components/theme-provider.tsx:93
↓ 2 callers
Function
writeCache
(data: CachedSourceModels[], sourcesHash: string)
src/hooks/use-available-models.ts:79
↓ 1 callers
Method
_sendChatLegacy
( messages: AiChatMessage[], model: string, callback?: (text: string) => void )
src/ai/openai.ts:257
↓ 1 callers
Method
_sendChatResponsesApi
( messages: AiChatMessage[], model: string, callback?: (text: string) => void, options?: { onl
src/ai/openai.ts:294
↓ 1 callers
Method
_sendMediaLegacy
( file: AiFile, prompt?: string, model = "gpt-5.2", callback?: (text: string) => void )
src/ai/openai.ts:109
↓ 1 callers
Method
_sendMediaResponsesApi
( file: AiFile, prompt?: string, model = "gpt-5.2", callback?: (text: string) => void, opt
src/ai/openai.ts:182
↓ 1 callers
Function
buildShortcutFromKeyboardEvent
( event: KeyboardEvent, )
src/utils/shortcuts.ts:152
↓ 1 callers
Function
bytesToReadable
(size: number)
src/components/actions/UploadFilesInfo.tsx:4
↓ 1 callers
Function
captureAdbScreenshot
()
src/lib/webadb/screenshot.ts:84
↓ 1 callers
Function
clearAll
()
src/components/pages/ScanPage.tsx:213
↓ 1 callers
Function
clearCache
()
src/hooks/use-available-models.ts:90
↓ 1 callers
Method
connect
(device: AdbDaemonWebUsbDevice)
src/lib/webadb/manager.ts:45
↓ 1 callers
Function
createDefaultSources
()
src/store/ai-store.ts:112
↓ 1 callers
Function
decodeSeedChat
(value: string)
src/lib/chat-seed.ts:21
↓ 1 callers
Function
detectPresetFromUrl
(url: string | undefined)
src/components/settings/OpenAIAdvancedOptions.tsx:27
↓ 1 callers
Function
detectPresetFromUrl
(url: string | undefined)
src/components/settings/AIAPICredentialsManager.tsx:40
↓ 1 callers
Function
doFetch
()
src/hooks/use-available-models.ts:223
↓ 1 callers
Function
encodeSeedChat
(seed: SeedChatState)
src/lib/chat-seed.ts:11
↓ 1 callers
Function
generateSourcesHashSync
(sources: AiSource[])
src/hooks/use-available-models.ts:43
↓ 1 callers
Function
getAdbConnection
()
src/lib/webadb/screenshot.ts:46
↓ 1 callers
Function
getColorClassByStatus
(status: FileStatus)
src/components/preview/PreviewItem.tsx:23
↓ 1 callers
Method
getDevices
()
src/lib/webadb/manager.ts:55
↓ 1 callers
Method
getWebSearchToolType
(model: string)
src/ai/openai.ts:362
↓ 1 callers
Function
handleAddDialogChange
(open: boolean)
src/components/settings/AddAISourceDialog.tsx:56
↓ 1 callers
Function
handleConfirmRename
()
src/components/preview/PreviewList.tsx:47
↓ 1 callers
Function
handleCopy
(content: string)
src/components/chat/chat-messages.tsx:48
↓ 1 callers
Function
handleEditSave
( chatId: string | undefined, messageId: string, )
src/components/chat/chat-messages.tsx:67
↓ 1 callers
Function
handleEditStart
(id: string, content: string)
src/components/chat/chat-messages.tsx:57
↓ 1 callers
Function
handleLanguageSelect
(value: LanguagePreference)
src/components/settings/SettingsPage.tsx:203
↓ 1 callers
Function
handleRemoveSource
(id: string)
src/components/settings/AISourceManager.tsx:52
↓ 1 callers
Function
handleShareSource
(source: AiSource)
src/components/settings/AISourceManager.tsx:34
↓ 1 callers
Function
handleSubmit
()
src/components/dialogs/TextInputDialog.tsx:48
↓ 1 callers
Function
handleThemeSelect
(value: ThemePreference)
src/components/settings/SettingsPage.tsx:198
↓ 1 callers
Function
handleTraitsChange
(value: string)
src/components/settings/SettingsPage.tsx:307
↓ 1 callers
Function
handleUpdateSolution
(idx: number, res: ImproveResponse)
src/components/solutions/ActiveSolutionContent.tsx:121
↓ 1 callers
Function
isAdbDeviceConnected
()
src/lib/webadb/screenshot.ts:66
↓ 1 callers
Function
isModifier
(token: string)
src/utils/shortcuts.ts:150
↓ 1 callers
Function
loadHighlightedCode
()
src/components/ui/shadcn-io/code-block/index.tsx:592
↓ 1 callers
Function
loadLegacyGemini
()
src/store/ai-store.ts:75
↓ 1 callers
Function
loadLegacyModel
()
src/store/ai-store.ts:138
↓ 1 callers
Function
mapMessagesToAi
( messages: { role: "user" | "assistant" | "system"; content: string }[] )
src/hooks/use-chat-logic.ts:25
↓ 1 callers
Function
mergeMessage
( stateMessages: Record<string, ChatMessageRecord[]>, chatId: string, message: ChatMessageRecord, )
src/store/chat-store.ts:59
↓ 1 callers
Function
normalizeBaseUrl
(baseUrl?: string)
src/ai/openai.ts:47
↓ 1 callers
Function
parseImproveResponse
(response: string)
src/ai/response.ts:195
↓ 1 callers
Function
parseSolveResponse
(response: string)
src/ai/response.ts:125
↓ 1 callers
Function
processImage
( imageFile: File, )
src/utils/image-post-processing.ts:7
↓ 1 callers
Function
processOne
(item: FileItem)
src/components/pages/ScanPage.tsx:391
↓ 1 callers
Function
renderImproveXml
(data: ImproveXmlData)
src/ai/request.ts:31
↓ 1 callers
Function
renderSidebarContent
(mobile = false)
src/components/chat/page.tsx:51
↓ 1 callers
Function
renderStatusMessage
()
src/components/solutions/ActiveSolutionContent.tsx:132
↓ 1 callers
Function
resolveConfig
(hash: string)
src/components/pages/ImportSettingsPage.tsx:21
↓ 1 callers
Function
retryAsyncOperation
( asyncFn: (model: string, sourceId?: string) => Promise<string>, sourceName: string, primaryModel
src/components/pages/ScanPage.tsx:221
↓ 1 callers
Function
run
()
src/utils/image-post-processing.ts:27
next →
1–100 of 376, ranked by callers