MCPcopy Create free account

hub / github.com/thunderbird/thunderbolt / functions

Functions1,802 in github.com/thunderbird/thunderbolt

↓ 7 callersFunctioncreateCSSVars
(insets: { bottom: number; top: number })
src/hooks/use-safe-area-inset.ts:24
↓ 7 callersFunctioncreateMockReasoningPart
(state: 'streaming' | 'complete' = 'complete', duration?: number)
src/components/chat/reasoning-item.test.tsx:12
↓ 7 callersFunctioncreateRefreshableAuthClient
(initialSession: typeof sessionWithUser | null, initialPending: boolean)
src/components/auth-gate/use-auth-gate.test.ts:37
↓ 7 callersFunctioncreateSystemModel
()
src/chats/use-hydrate-chat-store.test.tsx:47
↓ 7 callersFunctioncreateTestModel
()
src/dal/chat-threads.test.ts:37
↓ 7 callersFunctioncreateTextPart
(text: string)
src/components/chat/assistant-message.test.tsx:16
↓ 7 callersFunctionencodeForUpload
(operation: CrudOperation)
src/db/encryption/upload-encoder.ts:19
↓ 7 callersFunctionfetch
(input, init)
src/ai/fetch.ts:51
↓ 7 callersFunctionformatTokenCount
(used: number, max?: number)
src/ai/tokenizers.ts:70
↓ 7 callersFunctiongetErrorStatus
(error: unknown, fallbackStatus: number = 500)
backend/src/middleware/error-handling.ts:53
↓ 7 callersFunctiongetHttpMcpServers
(db: AnyDrizzleDatabase)
src/dal/mcp-servers.ts:23
↓ 7 callersFunctiongetOrCreateChatThread
( db: AnyDrizzleDatabase, id: string, modelId: string, )
src/dal/chat-threads.ts:76
↓ 7 callersMethodgetWeatherForecast
* Get weather forecast for a location
backend/src/pro/weather.ts:206
↓ 7 callersFunctionhasToolCalls
(messages: Message[])
src/ai/step-logic.ts:50
↓ 7 callersFunctioninitPosthog
(httpClient?: HttpClient)
src/lib/posthog.tsx:54
↓ 7 callersFunctionisFinalStep
(currentStepCount: number, maxSteps: number)
src/ai/step-logic.ts:18
↓ 7 callersFunctionisSyncEnabled
()
src/db/powersync/database.ts:93
↓ 7 callersFunctionisTokenFresh
(expiresAt: number | undefined, now: number)
src/integrations/microsoft/tools.ts:168
↓ 7 callersFunctionmakeOkResponse
(body = 'ok', extraHeaders: Record<string, string> = {})
backend/src/proxy/routes.test.ts:33
↓ 7 callersFunctionmoveTo
(row: number, col = 1)
src/ai/eval/ui.ts:23
↓ 7 callersFunctionparseArgs
(args: unknown)
src/ai/middleware/tool-calls.test.ts:24
↓ 7 callersFunctionparseTrustedOrigins
(envValue?: string)
backend/src/auth/utils.tsx:21
↓ 7 callersFunctionreadStreamChunks
(stream: ReadableStream<Uint8Array>)
backend/src/utils/streaming.test.ts:42
↓ 7 callersFunctionresolveRepoPath
(fromFile: string, url: string)
web/src/loaders/repo-docs-loader.ts:178
↓ 7 callersFunctionsetAndroidBarColor
( style: 'dark' | 'light', deps: SetAndroidBarColorDeps = defaultDeps, )
src/lib/set-android-bar-color.ts:19
↓ 7 callersFunctionsetup
(title: string | null = 'My Chat')
src/layout/sidebar/rename-chat-dialog.test.tsx:9
↓ 7 callersFunctionstartOAuthFlowLoopback
( httpClient: HttpClient, provider: OAuthProvider, timeoutMs = oauthTimeoutMs, )
src/lib/oauth-loopback.ts:39
↓ 7 callersFunctionuseCopyToClipboard
(resetMs = 2000)
src/hooks/use-copy-to-clipboard.ts:13
↓ 7 callersFunctionwithTimeout
(promise: Promise<T>, ms: number, label: string)
src/lib/timeout.ts:9
↓ 6 callersFunctionbuildScenarios
( prompts: PromptDef[], modeName: EvalScenario['modeName'], defaultCriteria: EvalCriteria, )
src/ai/eval/scenarios.ts:290
↓ 6 callersFunctioncheckInbox
( params: CheckInboxParams, httpClient: HttpClient = http, auth: GoogleAuthDeps = defaultAuthDeps, )
src/integrations/google/tools.ts:284
↓ 6 callersFunctionclearConnecting
(key: string)
src/hooks/use-oauth-connect.ts:119
↓ 6 callersFunctioncollectStream
(stream: ReadableStream<Uint8Array>)
backend/src/proxy/streaming.test.ts:12
↓ 6 callersFunctionconvertUIMessageToDbChatMessage
( message: UIMessage, chatThreadId: string, parentId?: string | null, )
src/lib/utils.ts:35
↓ 6 callersFunctioncountActiveDevices
(database: typeof DbType, userId: string)
backend/src/dal/devices.ts:76
↓ 6 callersFunctioncreateAutomation
( db: AnyDrizzleDatabase, data: Partial<Prompt> & Pick<Prompt, 'id' | 'prompt' | 'modelId'>, )
src/dal/prompts.ts:139
↓ 6 callersFunctioncreateCapturingHttpClient
( mockResponse: unknown = {}, )
src/api/encryption.test.ts:15
↓ 6 callersFunctioncreateIpTestApp
(database: typeof DbType, settings: IpRateLimitSettings)
backend/src/middleware/rate-limit.test.ts:35
↓ 6 callersFunctioncreateMcpServer
( db: AnyDrizzleDatabase, data: Partial<McpServer> & Pick<McpServer, 'id' | 'name'>, )
src/dal/mcp-servers.ts:46
↓ 6 callersFunctioncreateMockHttpClient
(apiKey = 'test-key')
src/lib/posthog.test.ts:41
↓ 6 callersFunctioncreateMockImageResponse
(contentType = 'image/png', size = 100)
backend/src/pro/link-preview.test.ts:520
↓ 6 callersFunctioncreateMockResponse
(body: string, options: ResponseInit = {})
backend/src/mcp-proxy/routes.test.ts:25
↓ 6 callersFunctioncreateReasoningGroupPart
( items: Array<{ type: 'reasoning' | 'tool'; content: ReasoningUIPart | ToolUIPart; id: string }>, )
src/components/chat/assistant-message.test.tsx:31
↓ 6 callersFunctioncreateSteps
(toolCallCount: number, otherCount = 0)
src/ai/step-logic.test.ts:69
↓ 6 callersFunctioncreateStubProfile
(overrides: Partial<ModelProfile> = {})
src/ai/prompt.test.ts:9
↓ 6 callersFunctioncreateTestThread
()
src/hooks/use-handle-integration-completion.test.ts:89
↓ 6 callersFunctioncreateTrigger
( db: AnyDrizzleDatabase, data: Partial<Trigger> & Pick<Trigger, 'id' | 'promptId' | 'isEnabled' | 'trigge
src/dal/triggers.ts:66
↓ 6 callersFunctiondeleteMcpServer
(db: AnyDrizzleDatabase, id: string)
src/dal/mcp-servers.ts:36
↓ 6 callersFunctiondenyDevice
(database: typeof DbType, deviceId: string, userId: string)
backend/src/dal/devices.ts:86
↓ 6 callersFunctionestimateTokensForMessages
(messages: ThunderboltUIMessage[])
src/ai/tokenizers.ts:29
↓ 6 callersMethodfetchCredentials
* Fetch credentials (JWT token) from the backend. * Returns null if unable to get credentials (e.g., not authenticated or PowerSync not configured)
src/db/powersync/connector.ts:96
↓ 6 callersFunctiongetDevice
(db: AnyDrizzleDatabase, deviceId: string)
src/dal/devices.ts:26
↓ 6 callersFunctiongetDriveFileContent
( params: GetDriveFileContentParams, httpClient: HttpClient = http, auth: GoogleAuthDeps = defaultAuthDe
src/integrations/google/tools.ts:735
↓ 6 callersFunctiongetSearchTool
(configs: ReturnType<typeof createConfigs>)
src/integrations/thunderbolt-pro/tools.test.ts:371
↓ 6 callersFunctiongetTriggerPromptForThread
( db: AnyDrizzleDatabase, threadId: string, )
src/dal/prompts.ts:38
↓ 6 callersFunctiongetWaitlistAutoApproveDomains
(settings: Settings)
backend/src/config/settings.ts:229
↓ 6 callersFunctionhasSetting
(db: AnyDrizzleDatabase, key: string)
src/dal/settings.ts:209
↓ 6 callersFunctionhashSecret
(secret: string)
backend/src/api/encryption.test.ts:118
↓ 6 callersFunctioninsertCanary
( userId: string, canaryIv = 'iv-test', canaryCtext = 'ctext-test', canarySecretHash?: string,
backend/src/api/encryption.test.ts:127
↓ 6 callersFunctionisChatThreadDeleted
(db: AnyDrizzleDatabase, id: string)
src/dal/chat-threads.ts:17
↓ 6 callersFunctionisEncryptionEnabled
()
src/db/encryption/config.ts:9
↓ 6 callersFunctionisMobile
()
src/lib/platform.ts:59
↓ 6 callersFunctionisPostHogConfigured
()
backend/src/posthog/client.ts:59
↓ 6 callersFunctionisPosthogRequest
(url: string)
backend/src/test-utils/posthog.ts:10
↓ 6 callersFunctionlogConfig
(container: string)
deploy/pulumi/src/services.ts:145
↓ 6 callersFunctionlogoutViaSidebar
(page: Page, option: 'keep' | 'delete' = 'keep')
e2e/helpers.ts:40
↓ 6 callersFunctionmakeSources
(name: string)
src/components/chat/markdown-utils.test.tsx:30
↓ 6 callersFunctionmarkDeviceTrusted
(database: typeof DbType, deviceId: string, userId: string)
backend/src/dal/devices.ts:60
↓ 6 callersFunctionopenDB
()
src/crypto/key-storage.ts:21
↓ 6 callersFunctionparseFrontmatter
(raw: string)
web/src/loaders/repo-docs-loader.ts:93
↓ 6 callersFunctionrenderFooter
()
src/ai/eval/ui.ts:129
↓ 6 callersFunctionrenderStandalone
(ui: ReactElement)
src/components/chat/citation-badge.test.tsx:25
↓ 6 callersFunctionrenderWithCitations
(content: string, citations: CitationMap)
src/components/chat/markdown-utils.test.tsx:270
↓ 6 callersFunctionsendMessages
(messages: Array<{ role: string; content: string }>)
backend/src/inference/routes.test.ts:402
↓ 6 callersFunctionunwrapCK
( wrappedBase64: string, ecdhPrivateKey: CryptoKey, mlkemSecretKey: Uint8Array, )
src/crypto/primitives.ts:197
↓ 6 callersFunctionuseCurrentChatSession
()
src/chats/chat-store.ts:164
↓ 6 callersFunctionuseSafeAreaInset
(deps: SafeAreaInsetDeps = defaultDeps)
src/hooks/use-safe-area-inset.ts:36
↓ 5 callersFunctionappendText
(text: string)
src/ai/middleware/tool-calls.ts:68
↓ 5 callersFunctionbase64ToUint8Array
(base64: string)
src/crypto/primitives.ts:317
↓ 5 callersFunctioncamelCased
(str: string)
src/lib/utils.ts:113
↓ 5 callersFunctioncheckCalendar
( params: CheckCalendarParams, httpClient: HttpClient = http, auth: GoogleAuthDeps = defaultAuthDeps, )
src/integrations/google/tools.ts:565
↓ 5 callersFunctionclearInferenceClientCache
()
backend/src/inference/client.ts:201
↓ 5 callersFunctionclearLocalData
(options?: ClearLocalDataOptions)
src/lib/cleanup.ts:27
↓ 5 callersFunctionclearPostHogClient
()
backend/src/posthog/client.ts:67
↓ 5 callersFunctioncreateBetterAuthPlugin
(database: typeof DbType, ipRateLimit?: AnyElysia)
backend/src/auth/elysia-plugin.ts:32
↓ 5 callersFunctioncreateMockHttpClient
(responses: unknown[])
src/integrations/google/auth.test.ts:10
↓ 5 callersFunctioncreateMockHttpClient
(responses: unknown[])
src/integrations/microsoft/auth.test.ts:10
↓ 5 callersFunctioncreateMockTool
( state: ToolUIPart['state'], output?: unknown, toolCallId?: string, type = 'tool:search', )
src/components/chat/tool-item.stories.tsx:39
↓ 5 callersFunctioncreatePowerSyncRoutes
(auth: Auth, settings: Settings, database: typeof DbType)
backend/src/api/powersync.ts:136
↓ 5 callersFunctioncreateReasoningPart
(text: string)
src/components/chat/assistant-message.test.tsx:10
↓ 5 callersFunctioncreateTask
( db: AnyDrizzleDatabase, data: Pick<Task, 'id' | 'item' | 'order' | 'isComplete'>, )
src/dal/tasks.ts:92
↓ 5 callersFunctioncreateTestMessage
(overrides?: Partial<ThunderboltUIMessage>)
src/chats/use-hydrate-chat-store.test.tsx:122
↓ 5 callersFunctioncreateTestMessages
(threadId: string, messages: ThunderboltUIMessage[])
src/hooks/use-handle-integration-completion.test.ts:105
↓ 5 callersFunctioncreateWaitlistEntry
( database: typeof DbType, entry: { id: string; email: string; status: 'pending' | 'approved' }, )
backend/src/dal/waitlist.ts:19
↓ 5 callersFunctiondeleteAllChatThreads
(db: AnyDrizzleDatabase)
src/dal/chat-threads.ts:145
↓ 5 callersFunctiondeleteTask
(db: AnyDrizzleDatabase, id: string)
src/dal/tasks.ts:70
↓ 5 callersFunctiondeleteTriggersForPrompts
(db: AnyDrizzleDatabase, promptIds: string[])
src/dal/triggers.ts:52
↓ 5 callersMethoddisconnect
()
src/content-view/use-sidebar-webview.test.ts:17
↓ 5 callersFunctionerrorHtml
(message: string)
backend/src/auth/sso-desktop-callback.ts:27
↓ 5 callersFunctionexportPublicKey
(publicKey: CryptoKey)
src/crypto/primitives.ts:32
← previousnext →301–400 of 1,802, ranked by callers