MCPcopy Index your code

hub / github.com/sourcebot-dev/sourcebot / functions

Functions1,810 in github.com/sourcebot-dev/sourcebot

↓ 316 callersFunctioncn
(...inputs: ClassValue[])
packages/web/src/lib/utils.ts:20
↓ 218 callersFunctionisServiceError
(data: unknown)
packages/web/src/lib/utils.ts:452
↓ 178 callersFunctiontoast
({ ...props }: Toast)
packages/web/src/components/hooks/use-toast.ts:145
↓ 106 callersFunctionsew
(fn: () => Promise<T>)
packages/web/src/middleware/sew.ts:14
↓ 93 callersFunctioncaptureEvent
(event: E, properties: PosthogEventMap[E])
packages/web/src/lib/posthog.ts:82
↓ 82 callersFunctionwithAuth
(fn: (params: RequiredAuthContext) => Promise<T>)
packages/web/src/middleware/withAuth.ts:32
↓ 70 callersFunctioncreateLogger
(label: string)
packages/shared/src/logger.ts:42
↓ 70 callersFunctionnotFound
(message?: string)
packages/web/src/lib/serviceError.ts:90
↓ 70 callersFunctionresolveActiveBanner
(ctx: BannerContext)
packages/web/src/app/(app)/components/banners/bannerResolver.tsx:39
↓ 69 callersFunctionmakeContext
(overrides: Partial<BannerContext> = {})
packages/web/src/app/(app)/components/banners/bannerResolver.test.ts:74
↓ 63 callersFunctionserviceErrorResponse
({ statusCode, errorCode, message }: ServiceError)
packages/web/src/lib/serviceError.ts:22
↓ 59 callersFunctiongetTokenFromConfig
(token: Token)
packages/shared/src/crypto.ts:104
↓ 59 callersFunctionhasEntitlement
(entitlement: Entitlement)
packages/web/src/lib/entitlements.ts:34
↓ 59 callersFunctionuseToast
()
packages/web/src/components/hooks/use-toast.ts:174
↓ 51 callersFunctionmakeLicense
(overrides: Partial<License> = {})
packages/web/src/app/(app)/components/banners/bannerResolver.test.ts:34
↓ 49 callersFunctionwithOptionalAuth
(fn: (params: OptionalAuthContext) => Promise<T>)
packages/web/src/middleware/withAuth.ts:48
↓ 43 callersFunctionapiHandler
( handler: H, config: ApiHandlerConfig = {} )
packages/web/src/lib/apiHandler.ts:37
↓ 42 callersFunctioncreateAudit
(event: Omit<AuditEvent, 'sourcebotVersion'>)
packages/web/src/ee/features/audit/audit.ts:9
↓ 42 callersFunctionerrorJson
(description: string)
packages/web/src/openapi/publicApiDocument.ts:99
↓ 41 callersFunctionwithMinimumOrgRole
( userRole: OrgRole, minRequiredRole: OrgRole = OrgRole.MEMBER, fn: () => Promise<T> )
packages/web/src/middleware/withMinimumOrgRole.ts:6
↓ 38 callersFunctionfetchWithRetry
( fetchFn: () => Promise<T>, identifier: string, logger: Logger, maxAttempts: number = 3 )
packages/backend/src/utils.ts:68
↓ 38 callersFunctiongetBrowsePath
(props: BrowseProps)
packages/web/src/app/(app)/browse/hooks/utils.ts:149
↓ 36 callersFunctionparseTemporalDate
(dateStr: string | undefined)
packages/web/src/features/git/dateUtils.ts:21
↓ 32 callersFunctionlistCommits
({ repo: repoName, query, since, until, author, ref = 'HEAD', path, maxCount =
packages/web/src/features/git/listCommitsApi.ts:49
↓ 30 callersFunctionsetAuthContext
(role: OrgRole, prisma = createPrismaMock())
packages/web/src/ee/features/chat/mcp/actions.test.ts:82
↓ 29 callersFunctionuseCaptureEvent
()
packages/web/src/hooks/useCaptureEvent.ts:22
↓ 28 callersFunctionshouldExcludeRepo
({ repo, include, exclude }: { repo: OctokitRepository, include?: { topics?: Githu
packages/backend/src/github.ts:479
↓ 25 callersFunctiongetBrowseParamsFromPathParam
(pathParam: string)
packages/web/src/app/(app)/browse/hooks/utils.ts:62
↓ 25 callersFunctionunexpectedError
(message: string)
packages/web/src/lib/serviceError.ts:64
↓ 24 callersFunctionsetMockHeaders
(headers: Headers)
packages/web/src/middleware/withAuth.test.ts:64
↓ 23 callersFunctioncreateMockClient
(overrides: Partial<McpToolSet> & { serverName: string })
packages/web/src/ee/features/chat/mcp/mcpToolSets.test.ts:87
↓ 23 callersFunctiongetAuthenticatedUser
()
packages/web/src/middleware/withAuth.ts:134
↓ 22 callersFunctiongetFileSourceForRepo
( { path: filePath, repo: repoName, ref }: FileSourceRequest, { org, prisma }: { org: Org; prisma: Pri
packages/web/src/features/git/getFileSourceApi.ts:26
↓ 22 callersFunctionjsonContent
(schema: ZodTypeAny | SchemaObject)
packages/web/src/openapi/publicApiDocument.ts:91
↓ 21 callersFunctiongetMcpPrismaQueryExtension
(user?: UserWithAccounts)
packages/web/src/features/mcp/prismaScope.ts:252
↓ 21 callersFunctiongetMcpTools
(clients: McpToolSet[], analyticsContext?: McpToolsAnalyticsContext)
packages/web/src/ee/features/chat/mcp/mcpToolSets.ts:181
↓ 21 callersFunctionmarshalBool
(value?: boolean)
packages/backend/src/utils.ts:22
↓ 21 callersFunctionmeasure
(cb: () => Promise<T>)
packages/backend/src/utils.ts:12
↓ 21 callersFunctionresetQuery
()
packages/web/src/features/mcp/prismaScope.test.ts:20
↓ 20 callersFunctioncreateMockMcpClient
(toolDefs: MockToolDef[])
packages/web/src/ee/features/chat/mcp/mcpToolSets.test.ts:69
↓ 20 callersFunctionredirect
({ url, baseUrl })
packages/web/src/auth.ts:334
↓ 20 callersFunctionrepairReferences
(text: string)
packages/web/src/features/chat/utils.ts:380
↓ 20 callersFunctionsyncSearchContexts
(params: SyncSearchContextsParams)
packages/backend/src/ee/syncSearchContexts.ts:16
↓ 19 callersFunctionassertNoUserMcpServerRelationAccess
(args: unknown, operation: string)
packages/web/src/features/mcp/prismaScope.ts:224
↓ 19 callersFunctiongetTurnProgressState
({ messages, status, }: { messages: SBChatMessage[]; status: ChatStatus; })
packages/web/src/features/chat/utils.ts:338
↓ 18 callersFunctionbuildDb
(overrides: Partial<{ repoFindMany: unknown[]; connectionFindMany: unknown[]; searchContextFindUni
packages/backend/src/ee/syncSearchContexts.test.ts:62
↓ 18 callersFunctiongetExternalMcpErrorLogFields
(error: unknown)
packages/web/src/ee/features/chat/mcp/externalMcpError.ts:157
↓ 18 callersFunctionsetMockSession
(session: Session | null)
packages/web/src/middleware/withAuth.test.ts:60
↓ 17 callersFunctioncaptureEvent
(event: E, properties: PosthogEventMap[E], options?: CaptureOptions)
packages/web/src/hooks/useCaptureEvent.ts:7
↓ 17 callersFunctionmakeLicense
(overrides: Partial<License> = {})
packages/shared/src/entitlements.test.ts:52
↓ 17 callersFunctionprocessPromiseResults
( results: PromiseSettledResult<CustomResult<T>>[], )
packages/backend/src/connectionUtils.ts:15
↓ 17 callersFunctionsplitQuery
(query: string, cursorPos: number)
packages/web/src/app/(app)/components/searchBar/searchSuggestionsBox.tsx:438
↓ 17 callersFunctionthrowIfAnyFailed
(results: PromiseSettledResult<T>[])
packages/backend/src/connectionUtils.ts:41
↓ 16 callersFunctionauthenticatedPage
( fn: (auth: AuthContextFor<O>, props: P) => Promise<React.ReactElement>, opts?: O, )
packages/web/src/middleware/authenticatedPage.tsx:68
↓ 16 callersFunctioncreateMockSession
(overrides: Partial<Session> = {})
packages/web/src/middleware/withAuth.test.ts:69
↓ 16 callersFunctionnormalizeMcpRequestedOAuthScopes
(oauthScopes: string[])
packages/web/src/ee/features/chat/mcp/oauthScopeUtils.ts:12
↓ 16 callersFunctionnotFoundResponse
()
packages/web/src/ee/features/chat/mcp/dcrDiscovery.test.ts:11
↓ 16 callersFunctionnote
(message: string, title?: string)
packages/setupWizard/src/utils.ts:127
↓ 16 callersFunctionunwrapServiceError
(promise: Promise<ServiceError | T>)
packages/web/src/lib/utils.ts:584
↓ 15 callersFunctioncalculateVisibleRanges
( references: FileReference[], totalLines: number, padding: number = 3 )
packages/web/src/ee/features/chat/components/chatThread/codeFoldingExtension.ts:43
↓ 15 callersFunctioncreateMockRepoWithConnections
(overrides: Partial<RepoWithConnections> = {})
packages/backend/src/repoIndexManager.test.ts:222
↓ 15 callersFunctionencryptOAuthToken
(text: string | null | undefined)
packages/shared/src/crypto.ts:171
↓ 15 callersFunctiongetCodeHostIcon
(codeHostType: CodeHostType | ConnectionType)
packages/web/src/lib/utils.ts:309
↓ 15 callersFunctiongetEntitlements
(_license: License | null)
packages/shared/src/entitlements.ts:159
↓ 15 callersFunctiongitlabPushMrReviews
( gitlabClient: InstanceType<typeof Gitlab>, projectId: number, prPayload: sourcebot_pr_payload,
packages/web/src/features/agents/review-agent/nodes/gitlabPushMrReviews.ts:60
↓ 15 callersFunctionisPermittedRedirectUrl
(url: string)
packages/web/src/ee/features/oauth/constants.ts:11
↓ 15 callersFunctionisUnauthorized
(err: unknown)
packages/backend/src/errors.ts:28
↓ 15 callersFunctionrequestBodySchemaValidationError
(error: ZodError)
packages/web/src/lib/serviceError.ts:40
↓ 14 callersFunctionarraysEqualShallow
(a?: readonly T[], b?: readonly T[])
packages/backend/src/utils.ts:39
↓ 14 callersFunctioncreateAudits
( userId: string, action: string, count: number, currentDate:
packages/db/tools/scripts/inject-audit-data-v2.ts:146
↓ 14 callersFunctiongetRepoPath
(repo: Repo)
packages/shared/src/utils.ts:105
↓ 14 callersFunctiongitlabMrParser
( gitlabClient: InstanceType<typeof Gitlab>, mrPayload: GitLabMergeRequestPayload, hostDomain: str
packages/web/src/features/agents/review-agent/nodes/gitlabMrParser.ts:9
↓ 14 callersFunctionisAnonymousAccessAvailable
(_license: License | null)
packages/shared/src/entitlements.ts:146
↓ 14 callersFunctionnotAuthenticated
()
packages/web/src/lib/serviceError.ts:82
↓ 14 callersFunctionscaledCount
(baseMin: number, baseMax: number, weight: number, isWeekend: boolean)
packages/db/tools/scripts/inject-audit-data-v2.ts:138
↓ 14 callersFunctionsearchMcpTools
( query: string, registry: McpToolRegistryEntry[], topK = 5, )
packages/web/src/ee/features/chat/mcp/mcpToolRegistry.ts:63
↓ 14 callersFunctiontoGitDate
(dateStr: string | undefined)
packages/web/src/features/git/dateUtils.ts:164
↓ 13 callersFunctioncallAllOperations
( model: { $allOperations: (params: { operation: string; args: unknown;
packages/web/src/features/mcp/prismaScope.test.ts:25
↓ 13 callersFunctioncreateGitClientForPath
(path: string, onProgress?: onProgressFn, signal?: AbortSignal)
packages/backend/src/git.ts:37
↓ 13 callersFunctiondaysFromNow
(d: number)
packages/web/src/app/(app)/components/banners/bannerResolver.test.ts:32
↓ 13 callersFunctionextractLanguageModelKeyValuePairs
( pairs: { [k: string]: string | Token; } )
packages/web/src/features/chat/llm.server.ts:329
↓ 13 callersFunctiongetConfigSettings
(configPath?: string)
packages/shared/src/utils.ts:78
↓ 13 callersFunctionisWhitespace
(ch: number)
packages/queryLanguage/src/tokens.ts:30
↓ 13 callersFunctionjsonResponse
(body: unknown)
packages/web/src/ee/features/chat/mcp/dcrDiscovery.test.ts:4
↓ 13 callersFunctionrunGit
( repoPath: string, args: string[], env: Record<string, string> = {}, )
packages/backend/src/git.test.ts:8
↓ 13 callersFunctionshouldExcludeProject
({ project, include, exclude, }: { project: ProjectSchema, include?: { topics?: Gi
packages/backend/src/gitlab.ts:213
↓ 12 callersFunctioncreateMockLogger
()
packages/backend/src/utils.test.ts:11
↓ 12 callersFunctioncreateUserMessage
()
packages/web/src/features/chat/utils.test.ts:19
↓ 12 callersFunctiongetColor
(colorKey: keyof typeof chartColors)
packages/web/src/ee/features/analytics/analyticsContent.tsx:439
↓ 12 callersFunctiongetLanguageModelKey
(model: LanguageModelInfo)
packages/web/src/features/chat/utils.ts:427
↓ 12 callersFunctiongetRepoInfoByName
(repoName: string)
packages/web/src/actions.ts:319
↓ 12 callersFunctiongetStoredMcpConnectionStatus
( encryptedTokens: string | null | undefined, tokensExpiresAt: Date | null, )
packages/web/src/ee/features/chat/mcp/connectionStatus.ts:47
↓ 12 callersFunctionisAnonymousAccessEnabled
()
packages/web/src/lib/entitlements.ts:44
↓ 12 callersFunctionisPathValid
(path: string)
packages/web/src/features/git/utils.ts:10
↓ 12 callersFunctionmakeMockClient
(discussionResult: 'resolve' | 'reject' = 'resolve')
packages/web/src/features/agents/review-agent/nodes/gitlabPushMrReviews.test.ts:40
↓ 12 callersFunctionqueryParamsSchemaValidationError
(error: ZodError)
packages/web/src/lib/serviceError.ts:48
↓ 12 callersFunctionvalidateDateRange
(since: string | undefined, until: string | undefined)
packages/web/src/features/git/dateUtils.ts:110
↓ 11 callersFunctioncalculateHiddenRegions
( visibleRanges: Range[], totalLines: number )
packages/web/src/ee/features/chat/components/chatThread/codeFoldingExtension.ts:88
↓ 11 callersFunctioncreateAssistantMessage
(parts: SBChatMessagePart[])
packages/web/src/features/chat/utils.test.ts:13
↓ 11 callersFunctioncreatePrismaMock
()
packages/web/src/ee/features/chat/mcp/prismaOAuthClientProvider.test.ts:31
next →1–100 of 1,810, ranked by callers