MCPcopy Index your code

hub / github.com/thunderbird/thunderbolt / functions

Functions1,802 in github.com/thunderbird/thunderbolt

↓ 674 callersFunctiongetDb
()
src/db/database.ts:127
↓ 210 callersFunctiongetClock
()
src/testing-library.ts:136
↓ 200 callersFunctioncn
(...inputs: ClassValue[])
src/lib/utils.ts:18
↓ 112 callersFunctioncreateTestProvider
(options?: TestProviderOptions)
src/test-utils/test-provider.tsx:51
↓ 75 callersFunctionupdateSettings
( db: AnyDrizzleDatabase, settings: Record<string, any>, // eslint-disable-line @typescript-eslint/no-expl
src/dal/settings.ts:263
↓ 72 callersFunctioncreateQueryTestWrapper
(options?: { defaultOptions?: { queries?: { retry?: boolean | number gcTime?: number s
src/test-utils/react-query.tsx:17
↓ 66 callersFunctionparseContentParts
(rawText: string)
src/ai/widget-parser.ts:126
↓ 62 callersFunctioninsertDevice
( id: string, userId: string, options: { trusted?: boolean approvalPending?: boolean
backend/src/api/encryption.test.ts:73
↓ 60 callersFunctionhydrateStore
(state: { chatInstance: Chat<ThunderboltUIMessage> | null chatThread: ChatThread | null id: string mcp
src/test-utils/chat-store-mocks.ts:186
↓ 60 callersFunctionsetupTestDatabase
()
src/dal/test-utils.ts:21
↓ 59 callersFunctionteardownTestDatabase
()
src/dal/test-utils.ts:41
↓ 56 callersFunctionrenderComponent
(props = {}, locationState: unknown = null)
src/components/onboarding/onboarding-auth-step.test.tsx:63
↓ 54 callersFunctiongetSettings
()
backend/src/config/settings.ts:174
↓ 52 callersMethodexec
* Execute SQL statement
src/db/wa-sqlite-worker-client.ts:141
↓ 52 callersFunctiontrackEvent
(eventName: EventType, properties?: Record<string, unknown>)
src/lib/posthog.tsx:207
↓ 50 callersFunctioncreateMockChatInstance
( messages: ThunderboltUIMessage[] = [], status: 'ready' | 'streaming' = 'ready', )
src/test-utils/chat-store-mocks.ts:64
↓ 48 callersFunctioncreateUserAndSession
(userId: string, token: string, email = `${userId}@test.com`)
backend/src/api/encryption.test.ts:54
↓ 46 callersFunctionresetTestDatabase
()
src/dal/test-utils.ts:59
↓ 45 callersMethodclose
* Close the database connection.
src/db/database.ts:92
↓ 45 callersFunctionsignToken
(token: string)
backend/src/api/encryption.test.ts:19
↓ 42 callersFunctioncleanup
()
src/lib/oauth-callback.ts:15
↓ 42 callersFunctiongetSettings
( db: AnyDrizzleDatabase, schema: T, options: { camelCase?: boolean } = {}, )
src/dal/settings.ts:135
↓ 41 callersFunctioncreateMockUseChat
(chatInstance: Chat<ThunderboltUIMessage>, error?: Error)
src/test-utils/chat-store-mocks.ts:91
↓ 41 callersFunctionrenderComponent
()
src/components/onboarding/onboarding-name-step.test.tsx:44
↓ 41 callersFunctionresolveCountryCode
(countryInput: string)
backend/src/utils/country.ts:13
↓ 38 callersFunctiondeserializeValue
( value: string | null | undefined, typeHint?: StringConstructor | BooleanConstructor | NumberConstructor,
src/lib/serialization.ts:82
↓ 38 callersFunctiontimestamp
()
src/ai/eval/report.ts:22
↓ 37 callersFunctiongenerateCK
(extractable = false)
src/crypto/primitives.ts:79
↓ 35 callersFunctionisTauri
()
src/lib/platform.ts:28
↓ 35 callersFunctionreconcileDefaultsForTable
( db: AnyDrizzleDatabase, table: SQLiteTableWithColumns<any>, defaults: readonly T[], hashFn: (item: a
src/lib/reconcile-defaults.ts:26
↓ 34 callersFunctioncreateMockHttpClient
(responses: unknown[] = [])
src/integrations/google/tools.test.ts:42
↓ 34 callersFunctionsignToken
(token: string)
backend/src/api/powersync.test.ts:20
↓ 32 callersFunctionuseOnboardingState
()
src/hooks/use-onboarding-state.ts:196
↓ 31 callersFunctioncreateMockHtmlResponse
(html: string, options: ResponseInit = {})
backend/src/pro/link-preview.test.ts:25
↓ 29 callersFunctionuseSettings
( schema: T, options: { camelCase?: boolean } = {}, )
src/hooks/use-settings.ts:161
↓ 28 callersFunctiondecodeCitationSources
(sourcesStr: string)
src/lib/citation-utils.ts:28
↓ 27 callersFunctioncreateMessageMetadata
(modelId: string, sourceCollector?: SourceMetadata[])
src/ai/message-metadata.ts:24
↓ 27 callersFunctioninsertEnvelope
(deviceId: string, userId: string, wrappedCk = 'wrapped-ck')
backend/src/api/encryption.test.ts:107
↓ 27 callersFunctioninsertTrustedDevice
(deviceId: string, userId: string)
backend/src/api/powersync.test.ts:94
↓ 27 callersFunctionrenderComponent
(onFormDirtyChange?: (isDirty: boolean) => void)
src/components/onboarding/onboarding-location-step.test.tsx:40
↓ 27 callersFunctionrenderComponent
(props = {})
src/components/onboarding/onboarding-action-buttons.test.tsx:27
↓ 27 callersFunctiontransformDriveQuery
(query: string)
src/integrations/google/utils.ts:209
↓ 26 callersFunctionclearSettingsCache
()
backend/src/config/settings.ts:184
↓ 26 callersFunctionisInsertConflictError
(error: unknown)
src/lib/sqlite-errors.ts:19
↓ 26 callersFunctionserializeValue
(value: any)
src/lib/serialization.ts:55
↓ 25 callersFunctionclearNullableColumns
(table: T)
src/lib/utils.ts:327
↓ 25 callersFunctioncreateClient
(config: HttpClientConfig = {})
src/lib/http.ts:90
↓ 25 callersFunctionuploadHeaders
(bearer: string, deviceId = 'test-device-id')
backend/src/api/powersync.test.ts:87
↓ 25 callersFunctionuseChatScrollHandler
({ useAutoScroll = useAutoScroll_default, useChat = useChat_default, useCurrentChatSession = useCurrentC
src/chats/use-chat-scroll-handler.ts:25
↓ 24 callersFunctionbuildSourceCitationPlaceholders
( text: string, sources: SourceMetadata[], startKey = 0, )
src/components/chat/text-part.tsx:64
↓ 24 callersFunctionhashValues
(values: (string | number | null | undefined)[])
src/lib/utils.ts:219
↓ 24 callersFunctionrenderModal
( props: Partial<{ open: boolean; onOpenChange: (open: boolean) => void }> = {}, httpClient?: HttpClie
src/components/sign-in-modal.test.tsx:96
↓ 24 callersFunctionresolve
({ status, request: { headers } })
backend/src/auth/elysia-plugin.ts:16
↓ 24 callersFunctionuseDatabase
()
src/contexts/database-context.tsx:20
↓ 23 callersFunctiongetAuthToken
()
src/lib/auth-token.ts:28
↓ 23 callersFunctionhashSetting
(setting: Setting)
src/defaults/settings.ts:14
↓ 23 callersFunctioninsertApprovedWaitlist
(email: string)
backend/src/auth/otp-security.test.ts:58
↓ 23 callersFunctionisSettingModified
(setting: Setting | undefined)
src/defaults/utils.ts:35
↓ 23 callersFunctionuseAutoScroll
({ dependencies = [], smooth = true, isStreaming = false, rootMargin = '0px', }: UseAutoScrollOptions
src/hooks/use-auto-scroll.tsx:46
↓ 22 callersFunctiongetModel
(db: AnyDrizzleDatabase, id: string)
src/dal/models.ts:73
↓ 22 callersMethodsearchLocations
* Search for locations by name
backend/src/pro/weather.ts:115
↓ 21 callersFunctioncreateAuth
(database: typeof DbType)
backend/src/auth/auth.ts:105
↓ 21 callersFunctioncreateMockToolPart
( toolName: string, state: ToolUIPart['state'] = 'output-available', duration?: number, )
src/components/chat/reasoning-group.test.tsx:32
↓ 21 callersFunctioncreateToolPart
(state: ToolUIPart['state'], toolName = 'search')
src/components/chat/assistant-message.test.tsx:22
↓ 21 callersFunctionmakeLinkPreview
(url: string)
src/components/chat/text-part.test.ts:231
↓ 21 callersFunctionmountMessageParts
( groupedParts: GroupedUIPart[], isStreaming: boolean, messageId: string, reasoningTime: Record<string
src/components/chat/assistant-message.tsx:41
↓ 21 callersFunctionnowIso
()
src/lib/utils.ts:170
↓ 21 callersFunctionrenderModal
(props: Partial<{ open: boolean; onOpenChange: (open: boolean) => void }> = {})
src/components/logout-modal.test.tsx:64
↓ 21 callersFunctionwaitForModal
()
src/components/sign-in-modal.test.tsx:109
↓ 20 callersFunctioncreateHandleError
(code: HandleErrorCode, message: string, originalError?: unknown)
src/lib/error-utils.ts:34
↓ 20 callersFunctioncreateTestDb
()
backend/src/test-utils/db.ts:73
↓ 20 callersFunctiongetDeviceById
(database: typeof DbType, deviceId: string)
backend/src/dal/devices.ts:10
↓ 20 callersFunctionrequestWithIp
(ip: string)
backend/src/middleware/rate-limit.test.ts:39
↓ 20 callersFunctionsetAuthToken
(token: string)
src/lib/auth-token.ts:31
↓ 20 callersFunctionvalidateSafeUrl
(url: string)
backend/src/utils/url-validation.ts:47
↓ 19 callersFunctioncreateMockAuthClient
(options: MockAuthClientOptions = {})
src/test-utils/auth-client.ts:29
↓ 19 callersFunctioncreateMockChatThread
(overrides?: Partial<ChatThread>)
src/test-utils/chat-store-mocks.ts:43
↓ 19 callersFunctioncreateMockTool
( state: ToolUIPart['state'], output?: unknown, toolCallId?: string, type = 'tool:search', )
src/components/chat/tool-group.stories.tsx:39
↓ 19 callersFunctioncreateSetting
(db: AnyDrizzleDatabase, key: string, value: string | null)
src/dal/settings.ts:223
↓ 19 callersFunctionformatNumber
(num: number)
src/lib/utils.ts:195
↓ 19 callersFunctiongetChatThread
(db: AnyDrizzleDatabase, id: string)
src/dal/chat-threads.ts:41
↓ 19 callersFunctionreducer
(state: SyncSetupState, action: SyncSetupAction)
src/hooks/use-sync-setup.ts:65
↓ 19 callersFunctionsplitPartType
(type: string)
src/lib/utils.ts:207
↓ 18 callersFunctiongetIncompleteTasks
(db: AnyDrizzleDatabase, searchQuery?: string)
src/dal/tasks.ts:25
↓ 18 callersFunctionhashPrompt
(prompt: Prompt)
src/defaults/automations.ts:13
↓ 18 callersFunctionrenderComponent
(email?: string, otp?: string)
src/components/magic-link-verify.test.tsx:53
↓ 18 callersFunctionrenderWithReactivity
( ui: ReactElement, options: RenderWithReactivityOptions = {}, )
src/test-utils/powersync-reactivity-test.tsx:59
↓ 18 callersFunctionresetStore
()
src/test-utils/chat-store-mocks.ts:240
↓ 18 callersFunctionset
(field: FormField)
web/src/components/marketing/sections/contact-page.tsx:58
↓ 18 callersFunctionuseAuthGate
(require: AuthRequirement)
src/components/auth-gate/use-auth-gate.ts:24
↓ 18 callersFunctionuseIsMobile
()
src/hooks/use-mobile.ts:18
↓ 18 callersFunctionwaitForElement
(getElement: () => HTMLElement | null, timeoutMs = 2000)
src/test-utils/powersync-reactivity-test.tsx:14
↓ 17 callersFunctionconvertTemperature
(temp: number, sourceUnit: 'c' | 'f', targetUnit: 'c' | 'f')
src/widgets/weather-forecast/lib.ts:211
↓ 17 callersFunctionextractFaviconUrl
(toolName: string, output: unknown)
src/components/chat/tool-icon.tsx:28
↓ 17 callersFunctionhashModel
(model: Model)
src/defaults/models.ts:12
↓ 17 callersFunctionhashModelProfile
(profile: ModelProfile)
src/defaults/model-profiles/index.ts:20
↓ 17 callersFunctionrenderComponent
()
src/components/onboarding/onboarding-celebration-step.test.tsx:26
↓ 17 callersFunctionrevokeRequest
( deviceId: string, token: string, opts?: { callerDeviceId?: string; canarySecret?: string; omitDe
backend/src/api/account.test.ts:114
↓ 17 callersFunctionuseExternalLinkDialog
()
src/hooks/use-external-link-dialog.ts:67
↓ 17 callersFunctionwaitForStateChange
()
src/components/magic-link-verify.test.tsx:101
next →1–100 of 1,802, ranked by callers