MCPcopy Create free account

hub / github.com/cubewhy/skid-homework / functions

Functions376 in github.com/cubewhy/skid-homework

↓ 153 callersFunctioncn
(...inputs: ClassValue[])
src/lib/utils.ts:4
↓ 9 callersFunctionuseShortcut
( action: ShortcutAction, handler: (event: KeyboardEvent) => void, deps: unknown[] = [], )
src/hooks/use-shortcut.ts:8
↓ 6 callersFunctionuseMediaQuery
(query: string)
src/hooks/use-media-query.ts:7
↓ 5 callersFunctionsortThreadsByUpdated
(threads: ChatThreadRecord[])
src/store/chat-store.ts:56
↓ 4 callersFunctiongetAdbManager
()
src/lib/webadb/screenshot.ts:31
↓ 4 callersFunctiongetEnabledToolCallingPrompts
()
src/ai/prompts/prompt-manager.ts:5
↓ 4 callersFunctionhandleCopy
(text: string)
src/components/dialogs/InspectDialog.tsx:37
↓ 4 callersFunctionisNonRetryableError
( error: unknown, )
src/ai/errors.ts:9
↓ 4 callersFunctionsanitizeForCData
* 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 callersFunctioncreateId
()
src/db/chat-db.ts:41
↓ 3 callersFunctiondestroyBoard
()
src/components/markdown/diagram/JSXGraphDiagram.tsx:30
↓ 3 callersFunctionensureContent
(val: string | undefined | null, fb: string)
src/hooks/use-solution-export.ts:39
↓ 3 callersFunctiongenerateSourcesHashAsync
(sources: AiSource[])
src/hooks/use-available-models.ts:29
↓ 3 callersFunctiongenerateTextFilename
(content: string)
src/utils/file-utils.ts:1
↓ 3 callersFunctionhandleSelect
(model: string, sourceId: string | null)
src/components/ui/model-selector.tsx:94
↓ 3 callersFunctionisTextMimeType
(mimeType: string, fileName?: string)
src/utils/file-utils.ts:25
↓ 3 callersMethodparseSteps
* 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 callersFunctionreportError
(message: string | null)
src/components/markdown/diagram/JSXGraphDiagram.tsx:37
↓ 2 callersMethod_executeResponsesStream
* Streaming helper using the Responses API to support web search.
src/ai/openai.ts:377
↓ 2 callersMethod_executeStream
( model: string, messages: ChatCompletionMessageParam[], callback?: (text: string) => void )
src/ai/openai.ts:337
↓ 2 callersFunction_syncSelectedDevice
()
src/lib/webadb/screenshot.ts:8
↓ 2 callersFunctionapplyTheme
()
src/components/theme-provider.tsx:50
↓ 2 callersFunctionbase64Decoder
( base64: string, encoding: string = "utf-8", )
src/utils/encoding.ts:14
↓ 2 callersFunctioncopyToClipboard
(text: string)
src/components/solutions/SolutionViewer.tsx:71
↓ 2 callersFunctioncreateClientForSource
(source: AiSource)
src/store/ai-store.ts:142
↓ 2 callersFunctionexpandShortcutVariants
(shortcut?: string | null)
src/utils/shortcuts.ts:220
↓ 2 callersMethodformatOnlineSearch
( groundingChunks: { uri?: string | null; title?: string | null }[], queries: string[], existingTe
src/ai/gemini.ts:83
↓ 2 callersFunctionformatShortcutLabel
(shortcut?: string | null)
src/utils/shortcuts.ts:195
↓ 2 callersMethodgetAvailableModels
()
src/ai/gemini.ts:245
↓ 2 callersMethodgetSectionsByH3
* Extracts content grouped by H3 headers (### KEY). * Example: ### PROBLEM_TEXT -> content
src/ai/response.ts:45
↓ 2 callersFunctionhandleThinkingBudgetChange
(value: number)
src/components/settings/SettingsPage.tsx:317
↓ 2 callersFunctionhydrateCachedData
( cached: CachedSourceModels[], sources: AiSource[] )
src/hooks/use-available-models.ts:101
↓ 2 callersFunctioninitBoard
()
src/components/markdown/diagram/JSXGraphDiagram.tsx:80
↓ 2 callersMethodinjectCitations
( text: string, supports: { segment: { startIndex?: number; endIndex?: number }; grounding
src/ai/gemini.ts:55
↓ 2 callersFunctionnormalizeShortcutTokens
(tokens: string[])
src/utils/shortcuts.ts:251
↓ 2 callersFunctionreadCache
()
src/hooks/use-available-models.ts:60
↓ 2 callersFunctionreadTextFile
(url: string)
src/utils/file-utils.ts:14
↓ 2 callersFunctionreconnectAdbDevice
()
src/lib/webadb/screenshot.ts:75
↓ 2 callersFunctionrenderItems
()
src/components/preview/PreviewList.tsx:54
↓ 2 callersMethodrequestDevice
()
src/lib/webadb/manager.ts:41
↓ 2 callersFunctionresetAddDialog
()
src/components/settings/AddAISourceDialog.tsx:47
↓ 2 callersFunctionrunWithRetry
( model: string, sourceId: string | undefined, logPrefix: string )
src/components/pages/ScanPage.tsx:232
↓ 2 callersMethodsendMedia
( file: AiFile, prompt?: string, model = "gemini-3.1-pro-preview", callback?: (text: string) =
src/ai/gemini.ts:125
↓ 2 callersFunctiontoCacheFormat
(data: SourceModels[])
src/hooks/use-available-models.ts:119
↓ 2 callersFunctionuint8ToBase64
(uint8Array: Uint8Array)
src/utils/encoding.ts:1
↓ 2 callersFunctionupdateAdbStatus
()
src/components/actions/UploadArea.tsx:79
↓ 2 callersFunctionuseAvailableModels
()
src/hooks/use-available-models.ts:126
↓ 2 callersFunctionuseTheme
()
src/components/theme-provider.tsx:93
↓ 2 callersFunctionwriteCache
(data: CachedSourceModels[], sourcesHash: string)
src/hooks/use-available-models.ts:79
↓ 1 callersMethod_sendChatLegacy
( messages: AiChatMessage[], model: string, callback?: (text: string) => void )
src/ai/openai.ts:257
↓ 1 callersMethod_sendChatResponsesApi
( messages: AiChatMessage[], model: string, callback?: (text: string) => void, options?: { onl
src/ai/openai.ts:294
↓ 1 callersMethod_sendMediaLegacy
( file: AiFile, prompt?: string, model = "gpt-5.2", callback?: (text: string) => void )
src/ai/openai.ts:109
↓ 1 callersMethod_sendMediaResponsesApi
( file: AiFile, prompt?: string, model = "gpt-5.2", callback?: (text: string) => void, opt
src/ai/openai.ts:182
↓ 1 callersFunctionbuildShortcutFromKeyboardEvent
( event: KeyboardEvent, )
src/utils/shortcuts.ts:152
↓ 1 callersFunctionbytesToReadable
(size: number)
src/components/actions/UploadFilesInfo.tsx:4
↓ 1 callersFunctioncaptureAdbScreenshot
()
src/lib/webadb/screenshot.ts:84
↓ 1 callersFunctionclearAll
()
src/components/pages/ScanPage.tsx:213
↓ 1 callersFunctionclearCache
()
src/hooks/use-available-models.ts:90
↓ 1 callersMethodconnect
(device: AdbDaemonWebUsbDevice)
src/lib/webadb/manager.ts:45
↓ 1 callersFunctioncreateDefaultSources
()
src/store/ai-store.ts:112
↓ 1 callersFunctiondecodeSeedChat
(value: string)
src/lib/chat-seed.ts:21
↓ 1 callersFunctiondetectPresetFromUrl
(url: string | undefined)
src/components/settings/OpenAIAdvancedOptions.tsx:27
↓ 1 callersFunctiondetectPresetFromUrl
(url: string | undefined)
src/components/settings/AIAPICredentialsManager.tsx:40
↓ 1 callersFunctiondoFetch
()
src/hooks/use-available-models.ts:223
↓ 1 callersFunctionencodeSeedChat
(seed: SeedChatState)
src/lib/chat-seed.ts:11
↓ 1 callersFunctiongenerateSourcesHashSync
(sources: AiSource[])
src/hooks/use-available-models.ts:43
↓ 1 callersFunctiongetAdbConnection
()
src/lib/webadb/screenshot.ts:46
↓ 1 callersFunctiongetColorClassByStatus
(status: FileStatus)
src/components/preview/PreviewItem.tsx:23
↓ 1 callersMethodgetDevices
()
src/lib/webadb/manager.ts:55
↓ 1 callersMethodgetWebSearchToolType
(model: string)
src/ai/openai.ts:362
↓ 1 callersFunctionhandleAddDialogChange
(open: boolean)
src/components/settings/AddAISourceDialog.tsx:56
↓ 1 callersFunctionhandleConfirmRename
()
src/components/preview/PreviewList.tsx:47
↓ 1 callersFunctionhandleCopy
(content: string)
src/components/chat/chat-messages.tsx:48
↓ 1 callersFunctionhandleEditSave
( chatId: string | undefined, messageId: string, )
src/components/chat/chat-messages.tsx:67
↓ 1 callersFunctionhandleEditStart
(id: string, content: string)
src/components/chat/chat-messages.tsx:57
↓ 1 callersFunctionhandleLanguageSelect
(value: LanguagePreference)
src/components/settings/SettingsPage.tsx:203
↓ 1 callersFunctionhandleRemoveSource
(id: string)
src/components/settings/AISourceManager.tsx:52
↓ 1 callersFunctionhandleShareSource
(source: AiSource)
src/components/settings/AISourceManager.tsx:34
↓ 1 callersFunctionhandleSubmit
()
src/components/dialogs/TextInputDialog.tsx:48
↓ 1 callersFunctionhandleThemeSelect
(value: ThemePreference)
src/components/settings/SettingsPage.tsx:198
↓ 1 callersFunctionhandleTraitsChange
(value: string)
src/components/settings/SettingsPage.tsx:307
↓ 1 callersFunctionhandleUpdateSolution
(idx: number, res: ImproveResponse)
src/components/solutions/ActiveSolutionContent.tsx:121
↓ 1 callersFunctionisAdbDeviceConnected
()
src/lib/webadb/screenshot.ts:66
↓ 1 callersFunctionisModifier
(token: string)
src/utils/shortcuts.ts:150
↓ 1 callersFunctionloadHighlightedCode
()
src/components/ui/shadcn-io/code-block/index.tsx:592
↓ 1 callersFunctionloadLegacyGemini
()
src/store/ai-store.ts:75
↓ 1 callersFunctionloadLegacyModel
()
src/store/ai-store.ts:138
↓ 1 callersFunctionmapMessagesToAi
( messages: { role: "user" | "assistant" | "system"; content: string }[] )
src/hooks/use-chat-logic.ts:25
↓ 1 callersFunctionmergeMessage
( stateMessages: Record<string, ChatMessageRecord[]>, chatId: string, message: ChatMessageRecord, )
src/store/chat-store.ts:59
↓ 1 callersFunctionnormalizeBaseUrl
(baseUrl?: string)
src/ai/openai.ts:47
↓ 1 callersFunctionparseImproveResponse
(response: string)
src/ai/response.ts:195
↓ 1 callersFunctionparseSolveResponse
(response: string)
src/ai/response.ts:125
↓ 1 callersFunctionprocessImage
( imageFile: File, )
src/utils/image-post-processing.ts:7
↓ 1 callersFunctionprocessOne
(item: FileItem)
src/components/pages/ScanPage.tsx:391
↓ 1 callersFunctionrenderImproveXml
(data: ImproveXmlData)
src/ai/request.ts:31
↓ 1 callersFunctionrenderSidebarContent
(mobile = false)
src/components/chat/page.tsx:51
↓ 1 callersFunctionrenderStatusMessage
()
src/components/solutions/ActiveSolutionContent.tsx:132
↓ 1 callersFunctionresolveConfig
(hash: string)
src/components/pages/ImportSettingsPage.tsx:21
↓ 1 callersFunctionretryAsyncOperation
( asyncFn: (model: string, sourceId?: string) => Promise<string>, sourceName: string, primaryModel
src/components/pages/ScanPage.tsx:221
↓ 1 callersFunctionrun
()
src/utils/image-post-processing.ts:27
next →1–100 of 376, ranked by callers