MCPcopy Index your code

hub / github.com/thunderbird/thunderbolt / functions

Functions1,802 in github.com/thunderbird/thunderbolt

↓ 16 callersFunctionbuildWithBody
(body: string)
src/integrations/google/utils.test.ts:76
↓ 16 callersFunctioncreateMockContainer
(scrollTop = 0, scrollHeight = 1000, clientHeight = 500)
src/hooks/use-auto-scroll.test.tsx:16
↓ 16 callersFunctioncreateMockTarget
()
src/hooks/use-auto-scroll.test.tsx:33
↓ 16 callersFunctioncreatePrompt
({ modelName, profile, modeName, preferredName, location, localization, integrationStatus, mod
src/ai/prompt.ts:32
↓ 16 callersFunctiongenerateMlKemKeyPair
()
src/crypto/primitives.ts:59
↓ 16 callersFunctiongetHostname
(url: string)
src/widgets/link-preview/utils.ts:6
↓ 16 callersFunctiongetOrCreateOtpChallenge
( database: typeof DbType, data: { id: string; email: string; challengeToken: string; expiresAt: Date }, )
backend/src/dal/otp-challenge.ts:18
↓ 16 callersFunctionrenderWithProvider
(ui: ReactElement)
src/components/chat/source-list.test.tsx:13
↓ 16 callersFunctionrenderWithProvider
(ui: ReactElement)
src/components/chat/source-card.test.tsx:13
↓ 16 callersFunctionsetupRefs
( result: { current: ReturnType<typeof useAutoScroll> }, container: HTMLDivElement, target: HTMLDi
src/hooks/use-auto-scroll.test.tsx:36
↓ 16 callersFunctiontrackSyncEvent
(eventName: SyncEventType, extraProps?: Record<string, unknown>)
src/db/powersync/sync-tracker.ts:65
↓ 16 callersFunctionupdateReducer
(state: UpdateState, action: UpdateAction)
src/hooks/use-desktop-update.ts:36
↓ 16 callersFunctionuseHttpClient
()
src/contexts/http-client-context.tsx:20
↓ 16 callersFunctionuseLocalStorage
( key: string, defaultValue: string, options?: { debounceMs?: number; disabled?: boolean }, )
src/hooks/use-local-storage.ts:18
↓ 16 callersFunctionwrite
(text: string)
src/ai/eval/ui.ts:7
↓ 15 callersFunctioncreateAuthenticatedClient
( prefixUrl: string, getToken: () => string | null, config: Pick<HttpClientConfig, 'fetch' | 'credential
src/lib/http.ts:152
↓ 15 callersFunctioncreateMockUseAutoScroll
()
src/chats/use-chat-scroll-handler.test.ts:26
↓ 15 callersFunctioncreateMockUseChat
(status: string, messages: any[] = [])
src/chats/use-chat-scroll-handler.test.ts:21
↓ 15 callersFunctioncreateMockUseCurrentChatSession
()
src/chats/use-chat-scroll-handler.test.ts:10
↓ 15 callersFunctioncreateTestMessage
(overrides?: Partial<ThunderboltUIMessage>)
src/components/chat/chat-messages.test.tsx:35
↓ 15 callersFunctioncreateToolGroupPart
(tools: ToolUIPart[])
src/components/chat/assistant-message.test.tsx:39
↓ 15 callersFunctionestimateTokensForText
(text: string)
src/ai/tokenizers.ts:15
↓ 15 callersFunctiongetChatMessages
(db: AnyDrizzleDatabase, threadId: string)
src/dal/chat-messages.ts:27
↓ 15 callersFunctiongetCorsOriginsList
(settings: Pick<Settings, 'corsOrigins'>)
backend/src/config/settings.ts:189
↓ 15 callersFunctiongetProxiedFaviconUrl
(faviconUrl: string, proxyBase: string)
src/lib/url-utils.ts:22
↓ 15 callersFunctioninferTypeFromSchema
( schemaValue: any, )
src/lib/serialization.ts:20
↓ 15 callersFunctioninsertExistingUser
(email: string)
backend/src/auth/otp-security.test.ts:46
↓ 15 callersFunctionisRateLimitError
(error?: Error | null)
src/lib/error-utils.ts:16
↓ 15 callersFunctionisSafeUrl
(url: string)
src/lib/url-utils.ts:9
↓ 15 callersFunctionsetOpen
(newOpen: boolean)
src/components/ui/searchable-menu/searchable-menu.tsx:138
↓ 15 callersFunctionsignInWithChallenge
(email: string, otp: string, challengeToken: string)
backend/src/auth/otp-security.test.ts:85
↓ 15 callersFunctionuseSidebarWebview
( config: SidebarWebviewConfig | null, containerRef: RefObject<HTMLElement | null>, hidden = false, )
src/content-view/use-sidebar-webview.ts:23
↓ 15 callersFunctionwrapCK
(ck: CryptoKey, ecdhPublicKey: CryptoKey, mlkemPublicKey: Uint8Array)
src/crypto/primitives.ts:142
↓ 14 callersFunctioncreateTestWrapper
()
src/components/chat/chat-messages.test.tsx:24
↓ 14 callersFunctiondeduplicateLinkPreviews
(parts: ContentPart[])
src/components/chat/text-part.tsx:42
↓ 14 callersFunctiondeleteModel
(db: AnyDrizzleDatabase, id: string)
src/dal/models.ts:154
↓ 14 callersFunctiondetermineNavigationTarget
( oauthReturnContext: ReturnContext | null, oauth: OAuthCallbackData, )
src/hooks/use-deep-link-listener.ts:37
↓ 14 callersFunctionexec
(command: string, silent = false)
scripts/create-release.ts:43
↓ 14 callersFunctiongenerateKeyPair
()
src/crypto/primitives.ts:28
↓ 14 callersFunctiongetAllTriggersForPrompt
(db: AnyDrizzleDatabase, promptId: string)
src/dal/triggers.ts:16
↓ 14 callersFunctiongetModelProfile
(db: AnyDrizzleDatabase, modelId: string)
src/dal/model-profiles.ts:15
↓ 14 callersFunctionsearchDrive
( params: SearchDriveParams, httpClient: HttpClient = http, auth: GoogleAuthDeps = defaultAuthDeps, )
src/integrations/google/tools.ts:640
↓ 14 callersFunctionupdateChatThread
( db: AnyDrizzleDatabase, id: string, data: Partial<Pick<ChatThread, 'contextSize' | 'modeId' | 'title'
src/dal/chat-threads.ts:65
↓ 14 callersFunctionuseIntegrationStatus
()
src/hooks/use-integration-status.ts:18
↓ 14 callersFunctionuseLocationSearch
({ autoOpen }: UseLocationSearchOptions = {})
src/hooks/use-location-search.ts:58
↓ 13 callersFunctioncreateMockHttpClient
(mockResponse: unknown = [], prefixUrl = 'http://test-api.local')
src/test-utils/http-client.ts:12
↓ 13 callersFunctioncreateMockModel
(overrides?: Partial<Model>)
src/test-utils/chat-store-mocks.ts:28
↓ 13 callersFunctioncreateModel
( db: AnyDrizzleDatabase, data: Partial<Model> & Pick<Model, 'id' | 'provider' | 'name' | 'model'>, )
src/dal/models.ts:170
↓ 13 callersFunctioncreateStubProfile
(overrides: Partial<ModelProfile> = {})
src/defaults/model-profiles.test.ts:9
↓ 13 callersFunctioncreateTestApp
( database: typeof DbType, settings: RateLimitSettings, middleware: (db: typeof DbType, s: RateLimitSett
backend/src/middleware/rate-limit.test.ts:23
↓ 13 callersFunctioncreateTestHttpClient
(...handlers: RouteHandler[])
src/services/encryption.test.ts:71
↓ 13 callersFunctionextractClientIp
( headers: Headers, fallback = 'unknown', trustedProxy: '' | 'cloudflare' | 'akamai' = '', )
backend/src/utils/request.ts:55
↓ 13 callersFunctiongetCurrentSession
()
src/test-utils/chat-store-mocks.ts:253
↓ 13 callersFunctiongetWeatherMetadata
(code: number, dateString: string)
src/widgets/weather-forecast/lib.ts:44
↓ 13 callersFunctionisOriginAllowed
(origin: string, settings: Pick<Settings, 'corsOrigins'>)
backend/src/config/settings.ts:197
↓ 13 callersFunctionisPrivateAddress
(rawHostname: string)
backend/src/utils/url-validation.ts:25
↓ 13 callersFunctionmockFetch
(response: Partial<Response> = {})
src/lib/http.test.ts:10
↓ 13 callersFunctionmockTokenAbsent
()
src/components/auth-gate/use-auth-gate.test.ts:33
↓ 13 callersFunctionnormalizeEmail
(email: string)
backend/src/lib/email.ts:10
↓ 13 callersFunctionrenderModal
(props: Partial<{ open: boolean }> = {})
src/components/revoked-device-modal.test.tsx:39
↓ 13 callersFunctionuseCountryUnits
(country?: string)
src/hooks/use-country-units.ts:37
↓ 12 callersFunctioncallbackUrl
(port: number | string, cookies?: string)
backend/src/auth/sso-desktop-callback.test.ts:19
↓ 12 callersFunctioncreateApp
(deps?: AppDeps)
backend/src/index.ts:34
↓ 12 callersFunctioncreateMockResponse
(body: string, options: ResponseInit = {})
backend/src/pro/proxy.test.ts:31
↓ 12 callersFunctioncreateSpyHttpClient
( fetchImpl?: (req: Request) => Promise<Response>, defaultResponse: unknown = { success: true }, )
src/test-utils/http-client-spy.ts:13
↓ 12 callersFunctioncreateTestSettings
(overrides: Partial<Settings> = {})
backend/src/test-utils/settings.ts:12
↓ 12 callersFunctioncreateUserSessionAndDevice
(userId: string, token: string, callerDeviceId: string)
backend/src/api/account.test.ts:65
↓ 12 callersFunctiondispatchCredentialsInvalid
( reason: 'account_deleted' | 'device_revoked' | 'device_id_taken' | 'device_id_required' | 'session_expir
src/hooks/use-powersync-credentials-invalid-listener.test.tsx:101
↓ 12 callersFunctiongetNudgeMessagesFromProfile
(profile: ModelProfile | null, modeName?: string)
src/ai/step-logic.ts:149
↓ 12 callersMethodinitialize
* Initialize the database connection. * This method is idempotent - it will only initialize once. * @param type - The database type to use ('wa-
src/db/database.ts:19
↓ 12 callersFunctioninsertCanaryWithSecret
(userId: string)
backend/src/api/encryption.test.ts:143
↓ 12 callersFunctionparseVerifyLinkCallback
(url: URL)
src/hooks/use-deep-link-listener.ts:83
↓ 12 callersFunctionrenderComponent
()
src/components/onboarding/onboarding-privacy-step.test.tsx:46
↓ 12 callersFunctionsendOtpWithChallenge
(email: string)
backend/src/auth/otp-security.test.ts:77
↓ 12 callersFunctiontrackError
(error: HandleError, context?: Record<string, unknown>)
src/lib/posthog.tsx:221
↓ 12 callersFunctionuseApprovalPolling
({ enabled, checkApproval, onApproved, onRevoked, onDenied, intervalMs = 3000, }: UseApprovalPolli
src/hooks/use-approval-polling.ts:23
↓ 12 callersFunctionuseOAuthConnect
(options: UseOAuthConnectOptions = {})
src/hooks/use-oauth-connect.ts:92
↓ 12 callersFunctionusePowerSyncCredentialsInvalidListener
()
src/hooks/use-powersync-credentials-invalid-listener.ts:51
↓ 12 callersFunctionuseSidebar
()
src/components/ui/sidebar.tsx:62
↓ 11 callersFunctioncleanup
()
src/hooks/use-oauth-connect.ts:280
↓ 11 callersFunctionclearAuthToken
()
src/lib/auth-token.ts:36
↓ 11 callersFunctioncreateMockChatInstanceWithValidation
( messages: ThunderboltUIMessage[] = [], )
src/test-utils/chat-store-mocks.ts:114
↓ 11 callersFunctioncreateMockHttpClient
(response: unknown)
src/integrations/thunderbolt-pro/tools.test.ts:17
↓ 11 callersFunctioncreateParser
( schema: T, )
src/lib/create-parser.ts:18
↓ 11 callersFunctiondeleteSetting
(db: AnyDrizzleDatabase, key: string)
src/dal/settings.ts:318
↓ 11 callersFunctionencodeRecoveryKey
(ck: CryptoKey)
src/crypto/recovery-key.ts:14
↓ 11 callersFunctiongenerateCodeChallenge
(verifier: string)
src/lib/pkce.ts:23
↓ 11 callersFunctiongenerateFullKeyPair
()
src/services/encryption.test.ts:150
↓ 11 callersFunctiongetAllEnabledTriggers
(db: AnyDrizzleDatabase)
src/dal/triggers.ts:27
↓ 11 callersFunctiongetAllModels
(db: AnyDrizzleDatabase)
src/dal/models.ts:17
↓ 11 callersFunctiongetHeader
(message: any, name: string)
src/integrations/google/utils.ts:34
↓ 11 callersFunctiongetOAuthWidgetKey
( messageId: string, key: 'provider' | 'completed' | 'eventDispatched' | 'connecting', )
src/widgets/connect-integration/constants.ts:6
↓ 11 callersFunctiongetOtpErrorMessage
(error: OtpError, context: OtpErrorContext)
src/lib/otp-error-messages.ts:27
↓ 11 callersFunctiongetPowerSyncDatabaseConfig
( platform: ReturnType<typeof getPlatform> = getPlatform(), browser: ReturnType<typeof getWebBrowser> = ge
src/db/powersync/database.ts:36
↓ 11 callersFunctionhandleCredentialsInvalidIfNeeded
(status: number, body: ErrorBody)
src/db/powersync/connector.ts:58
↓ 11 callersFunctionisOAuthRedirectUriAllowed
(uri: string, settings: Pick<Settings, 'corsOrigins'>)
backend/src/config/settings.ts:202
↓ 11 callersFunctionisSsoMode
()
src/lib/auth-mode.ts:5
↓ 11 callersFunctionparseOAuthCallback
(url: URL)
src/hooks/use-deep-link-listener.ts:61
↓ 11 callersFunctionpostWaitlistJoin
(email: string, appInstance = app)
backend/src/auth/otp-security.test.ts:67
↓ 11 callersFunctionrewriteLinks
( body: string, sourceRelPath: string, urlPrefix: string, githubBaseUrl: string, knownDocPaths: Set<strin
web/src/loaders/repo-docs-loader.ts:150
← previousnext →101–200 of 1,802, ranked by callers