MCPcopy Create free account

hub / github.com/thunderbird/thunderbolt / functions

Functions1,802 in github.com/thunderbird/thunderbolt

↓ 11 callersFunctionsetupConsoleSpy
()
src/test-utils/console-spies.ts:34
↓ 11 callersFunctionuseConnectIntegrationWidgetState
( initialProvider: OAuthProviderOrEmpty, )
src/hooks/use-connect-integration-widget-state.ts:69
↓ 11 callersFunctionuseDraftInput
(chatThreadId: string, { persist = true }: { persist?: boolean } = {})
src/hooks/use-draft-input.ts:15
↓ 11 callersFunctionuseHandleIntegrationCompletion
({ saveMessages }: UseHandleIntegrationCompletionParams)
src/hooks/use-handle-integration-completion.ts:133
↓ 11 callersFunctionuseHaptics
()
src/hooks/use-haptics.tsx:97
↓ 11 callersFunctionuseHydrateChatStore
({ id, isNew }: UseHydrateChatStoreParams)
src/chats/use-hydrate-chat-store.ts:33
↓ 10 callersFunctionbuildStepOverrides
({ steps, messages, systemPrompt, profile, maxSteps, nudgeThreshold, activeNudges, }: { steps:
src/ai/step-logic.ts:97
↓ 10 callersFunctioncreateCanary
(ck: CryptoKey)
src/crypto/canary.ts:29
↓ 10 callersFunctioncreateMockSaveMessages
()
src/hooks/use-handle-integration-completion.test.ts:84
↓ 10 callersFunctioncreateMockToolPart
( toolName: string, state: ToolUIPart['state'] = 'output-available', duration?: number, )
src/components/chat/reasoning-item.test.tsx:26
↓ 10 callersFunctioncreateMockUseIsMobile
(isMobile: boolean = false)
src/components/chat/chat-prompt-input.test.tsx:39
↓ 10 callersFunctioncreateSSEStreamFromCompletion
( completion: CompletionStream, model: string, )
backend/src/utils/streaming.ts:15
↓ 10 callersFunctioncreateStubProfile
(overrides: Partial<ModelProfile> = {})
src/ai/step-logic.test.ts:19
↓ 10 callersFunctioncreateTextStream
(tokens: string[])
src/ai/middleware/tool-calls.test.ts:10
↓ 10 callersFunctionencrypt
(plaintext: string, ck: CryptoKey)
src/crypto/primitives.ts:279
↓ 10 callersFunctionextractDescription
(body: string)
web/src/loaders/repo-docs-loader.ts:113
↓ 10 callersFunctiongetAllChatThreads
(db: AnyDrizzleDatabase)
src/dal/chat-threads.ts:29
↓ 10 callersFunctiongetPowerSyncOptions
(path: string, config: PowerSyncDatabaseConfig = getPowerSyncDatabaseConfig())
src/db/powersync/database.ts:132
↓ 10 callersMethodinit
* Initialize the database
src/db/wa-sqlite-worker-client.ts:134
↓ 10 callersFunctionjsonResponse
(body: unknown, status = 200)
src/test-utils/http-client-spy.ts:9
↓ 10 callersFunctionmakeKnown
(...paths: string[])
web/src/loaders/repo-docs-loader.test.ts:219
↓ 10 callersFunctionmakeSource
(overrides: Partial<SourceMetadata> = {})
src/widgets/link-preview/widget.test.tsx:37
↓ 10 callersFunctionsanitizeErrorForTracking
(error: unknown)
src/db/powersync/sync-tracker.ts:17
↓ 10 callersFunctionseedUser
(userId: string, token: string, trustedDeviceId?: string)
backend/src/api/powersync.test.ts:1950
↓ 10 callersFunctionsetupStore
()
src/components/chat/chat-prompt-input.test.tsx:50
↓ 10 callersFunctionshouldRetry
( totalText: string, hadToolCalls: boolean, attemptNumber: number, maxAttempts: number, )
src/ai/step-logic.ts:66
↓ 10 callersMethodtoBeNullOrUndefined
()
src/matchers.d.ts:10
↓ 10 callersFunctionuseUnitsOptions
()
src/hooks/use-units-options.ts:14
↓ 9 callersFunctioncomputeSlug
(relPath: string, prefix: string)
web/src/loaders/repo-docs-loader.ts:138
↓ 9 callersFunctioncomputeWallClockTime
(intervals: Array<{ start: number; end: number }>)
src/lib/utils.ts:255
↓ 9 callersFunctioncreateAuthMacro
(auth: Auth)
backend/src/auth/elysia-plugin.ts:13
↓ 9 callersFunctioncreateChatThread
( db: AnyDrizzleDatabase, data: Pick<ChatThread, 'contextSize' | 'id' | 'title' | 'triggeredBy' | 'wasTrig
src/dal/chat-threads.ts:54
↓ 9 callersFunctioncreateConfigs
(httpClient: HttpClient, sourceCollector?: SourceMetadata[])
src/integrations/thunderbolt-pro/tools.ts:44
↓ 9 callersFunctioncreateError
(code: HandleError['code'], message: string)
src/components/app-error-screen.stories.tsx:32
↓ 9 callersFunctioncreateMockTool
(state: ToolUIPart['state'])
src/components/chat/tool-group.test.ts:9
↓ 9 callersFunctioncreateTestChallenge
(db: typeof DbType, email: string)
backend/src/test-utils/otp-challenge.ts:10
↓ 9 callersFunctioncreateTestThread
(modelId: string, title: string = 'Test Thread')
src/chats/use-hydrate-chat-store.test.tsx:99
↓ 9 callersFunctioncreateToolPart
(toolName: string)
src/lib/assistant-message.test.ts:9
↓ 9 callersFunctiongenerateCodeVerifier
()
src/lib/pkce.ts:9
↓ 9 callersFunctiongetAllPrompts
(db: AnyDrizzleDatabase, searchQuery?: string)
src/dal/prompts.ts:20
↓ 9 callersFunctiongetAvailableModels
(db: AnyDrizzleDatabase)
src/dal/models.ts:31
↓ 9 callersFunctioninsertCanaryWithSecret
(userId: string)
backend/src/api/account.test.ts:101
↓ 9 callersFunctionisNewAuthUser
(user: unknown)
src/components/sign-in/use-sign-in-form-state.ts:104
↓ 9 callersFunctionloginViaOidc
(page: Page)
e2e/helpers.ts:18
↓ 9 callersFunctionloginViaSaml
(page: Page)
e2e/helpers.ts:28
↓ 9 callersFunctionmakeChallenge
(email: string, overrides?: { challengeToken?: string; expiresAt?: Date })
backend/src/dal/otp-challenge.test.ts:15
↓ 9 callersFunctionmakeSource
(index: number, title = `Source ${index}`)
src/components/chat/text-part.test.ts:12
↓ 9 callersFunctionpost
(origin: string, data: unknown)
src/lib/auth.test.ts:34
↓ 9 callersFunctionprocessTextContent
(children: ReactNode)
src/components/chat/markdown-utils.tsx:73
↓ 9 callersFunctionrenderWithProviders
(ui: ReactElement)
src/widgets/link-preview/widget.test.tsx:24
↓ 9 callersFunctionsetupConsoleSpy
()
backend/src/test-utils/console-spies.ts:34
↓ 9 callersFunctionsortByOrder
(items: T[], order: string[], getKey: (item: T) => string)
src/lib/sort-by-order.ts:14
↓ 9 callersFunctiontriggerChange
(tables: string[])
src/test-utils/powersync-mock.tsx:131
↓ 9 callersFunctiontriggerSelection
()
src/lib/haptics.ts:14
↓ 9 callersFunctionupdateModel
(db: AnyDrizzleDatabase, id: string, updates: Partial<Model>)
src/dal/models.ts:134
↓ 9 callersFunctionupdateTask
(db: AnyDrizzleDatabase, id: string, updates: Partial<Task>)
src/dal/tasks.ts:59
↓ 9 callersFunctionuseChatAutomation
({ useChat = useChat_default }: UseChatAutomationProps = {})
src/chats/use-chat-automation.tsx:13
↓ 9 callersFunctionuseDeepLinkListener
(handler?: DeepLinkHandler, dependencies?: DeepLinkDependencies)
src/hooks/use-deep-link-listener.ts:112
↓ 9 callersFunctionuseToolItemState
({ tool, index }: UseToolItemStateParams)
src/components/chat/tool-item.tsx:22
↓ 9 callersFunctionverifySignedBearerToken
(bearerValue: string, secret: string)
backend/src/auth/bearer-token.ts:11
↓ 8 callersFunctionauthHeaders
()
src/api/encryption.ts:24
↓ 8 callersFunctioncapStream
( source: ReadableStream<Uint8Array>, opts: { maxBytes: number idleTimeoutMs: number onAbort:
backend/src/proxy/streaming.ts:8
↓ 8 callersMethodclose
Close the PGlite instance to release WASM resources and allow clean process exit
backend/src/test-utils/db.ts:33
↓ 8 callersFunctioncreateAuthIpRateLimit
(database: typeof DbType, settings: IpRateLimitSettings)
backend/src/middleware/rate-limit.ts:139
↓ 8 callersFunctioncreateMockCompletion
(chunks: any[])
backend/src/utils/streaming.test.ts:31
↓ 8 callersFunctioncreateMockReasoningPart
( state: 'streaming' | 'complete' = 'complete', duration?: number, text: string = 'Let me think about th
src/components/chat/reasoning-group.test.tsx:14
↓ 8 callersFunctioncreateMockStream
(chunks: any[] = [])
backend/src/inference/routes.test.ts:34
↓ 8 callersFunctioncreateMockTool
( state: ToolUIPart['state'], output?: unknown, toolCallId?: string, type = 'tool-test_tool', )
src/components/chat/tool-item.test.ts:20
↓ 8 callersFunctioncreateMockUseAutoScroll
( isAtBottom: boolean = true, scrollSucceeds: boolean = true, )
src/chats/use-chat-scroll-handler.test.tsx:17
↓ 8 callersFunctioncreateTestApp
(corsOrigins: string[])
backend/src/config/cors.test.ts:15
↓ 8 callersFunctioncreateWeatherData
(codes: number[], isDayTime: boolean = true)
src/widgets/weather-forecast/stories.tsx:88
↓ 8 callersFunctiondecodeRecoveryKey
(mnemonic: string)
src/crypto/recovery-key.ts:25
↓ 8 callersFunctiondecrypt
(data: EncryptedData, ck: CryptoKey)
src/crypto/primitives.ts:294
↓ 8 callersFunctiondeleteChatThread
(db: AnyDrizzleDatabase, id: string)
src/dal/chat-threads.ts:125
↓ 8 callersFunctiondeleteTriggersForPrompt
(db: AnyDrizzleDatabase, promptId: string)
src/dal/triggers.ts:40
↓ 8 callersFunctionderiveSiteName
(url: string)
src/lib/source-utils.ts:27
↓ 8 callersFunctionextractBody
(payload: any, mimeType: string)
src/integrations/google/utils.ts:45
↓ 8 callersFunctionextractDriveFileId
(input: string)
src/integrations/google/tools.ts:715
↓ 8 callersFunctionextractTextFromMessages
(messages: Message[])
src/ai/step-logic.ts:31
↓ 8 callersFunctiongetAllMcpServers
(db: AnyDrizzleDatabase)
src/dal/mcp-servers.ts:15
↓ 8 callersFunctiongetDeviceId
()
src/lib/auth-token.ts:18
↓ 8 callersFunctiongetPlatform
()
src/lib/platform.ts:39
↓ 8 callersFunctiongetSafeErrorMessage
(status: number)
backend/src/middleware/error-handling.ts:32
↓ 8 callersFunctioninvalidateCKCache
()
src/db/encryption/codec.ts:46
↓ 8 callersFunctionisDesktop
()
src/lib/platform.ts:50
↓ 8 callersFunctionpinnedUrl
(url: string)
backend/src/pro/proxy.test.ts:19
↓ 8 callersFunctionrenderWithProviders
(ui: ReactElement)
src/widgets/citation/widget.test.tsx:22
↓ 8 callersFunctionsanitizeUrl
(url: string)
src/lib/posthog.tsx:31
↓ 8 callersFunctionsaveMessagesWithContextUpdate
( db: AnyDrizzleDatabase, threadId: string, messages: ThunderboltUIMessage[], )
src/dal/chat-messages.ts:57
↓ 8 callersFunctionsetSyncEnabled
(enabled: boolean)
src/db/powersync/database.ts:103
↓ 8 callersFunctionshouldShowPreventiveNudge
(steps: Step[], threshold = 6)
src/ai/step-logic.ts:24
↓ 8 callersFunctionstartSsoFlowLoopback
(baseUrl: string, timeoutMs = ssoTimeoutMs)
src/lib/sso-loopback.ts:24
↓ 8 callersFunctiontoolCallSteps
(n: number)
src/ai/step-logic.test.ts:353
↓ 8 callersFunctionuseAuth
()
src/contexts/auth-context.tsx:123
↓ 8 callersFunctionuseToolGroupState
({ tools, isStreaming, isLastPartInMessage, hasTextInMessage, }: UseToolGroupStateParams)
src/components/chat/tool-group.tsx:24
↓ 8 callersFunctionwaitForOAuthCallback
( popup: Window | null, eventTarget: EventTarget = window, )
src/lib/oauth-callback.ts:10
↓ 7 callersFunctionbuildAuthUrl
( httpClient: HttpClient, state: string, codeChallenge: string, redirectUri?: string, )
src/integrations/google/auth.ts:49
↓ 7 callersFunctionbuildAuthUrl
( httpClient: HttpClient, state: string, codeChallenge: string, redirectUri?: string, )
src/integrations/microsoft/auth.ts:41
↓ 7 callersFunctioncategorizeModels
( models: Model[], chatThread: ModelSelectorProps['chatThread'], )
src/components/ui/model-selector/model-selector.tsx:38
↓ 7 callersFunctioncheckApprovalAndUnwrap
(httpClient: HttpClient)
src/services/encryption.ts:228
← previousnext →201–300 of 1,802, ranked by callers