MCPcopy Index your code

hub / github.com/sahat/hackathon-starter / functions

Functions92 in github.com/sahat/hackathon-starter

↓ 21 callersFunctionrevokeProviderTokens
(providerName, tokenData)
config/token-revocation.js:130
↓ 13 callersFunctionisInManifest
(id)
test/tools/fixture-helpers.js:55
↓ 13 callersFunctionregisterTestInManifest
(testFile)
test/tools/fixture-helpers.js:40
↓ 12 callersFunctiongenerateState
()
config/passport.js:30
↓ 11 callersFunctionauthError2Flash
* Helper function to handle OAuth errors with provider-specific messages. * Returns true if error was handled, false otherwise.
config/passport.js:167
↓ 11 callersFunctionhandleAuthLogin
* Helper function that contains the shared post-profile OAuth logic * (supports OAuth 1.0a and OAuth 2.0 providers). * Returns User (new or updated)
config/passport.js:83
↓ 7 callersFunctionrevokeAllProviderTokens
(tokens)
config/token-revocation.js:143
↓ 6 callersFunctionsendSSE
* Helper: Send SSE event to client * @param {Object} res - Express response object * @param {string} eventType - Type of SSE event (chat, status, ra
controllers/ai-agent.js:177
↓ 5 callersFunctiongetCheckpointer
* Initialize MongoDB checkpointer for persistent sessions. * * Session cleanup strategy: * - Authenticated users: Data cleaned up on account deleti
controllers/ai-agent.js:109
↓ 4 callersFunctioncheckList
(deduped)
test/tools/simple-link-image-check.js:188
↓ 4 callersFunctiondedupeList
(list)
test/tools/simple-link-image-check.js:178
↓ 4 callersFunctionkeyFor
(method, url, body)
test/tools/fixture-helpers.js:25
↓ 4 callersFunctionmakeURL
(baseURL, params)
controllers/api.js:381
↓ 3 callersFunctioncreateCacheKey
(text, modelName, prefix)
controllers/ai.js:84
↓ 3 callersFunctiongotoGithubWithRateLimitRetry
(sharedPage, request)
test/e2e-nokey/github-api.e2e.test.js:19
↓ 3 callersFunctionisSafeRedirect
(url)
app.js:165
↓ 3 callersFunctionsaveOAuth2UserTokens
* Common function to handle OAuth2 token processing and saving user data. * * This function is to handle various scenarios that we would run into wh
config/passport.js:203
↓ 3 callersFunctionsetupRagCollection
* Initialize the MongoDB collection for RAG
controllers/ai.js:182
↓ 2 callersFunctioncallGroqApi
(apiRequestBody, apiKey)
controllers/ai.js:596
↓ 2 callersFunctioncleanupTestFiles
()
test/e2e/rag.e2e.test.js:91
↓ 2 callersFunctionconfigureVectorIndex
* Configure or update the vector index dimensions based on our embedding results * Do this only once. If you change your embedding model to a differe
controllers/ai.js:217
↓ 2 callersFunctioncreateCachedEmbeddings
(baseEmbeddings, modelName)
controllers/ai.js:94
↓ 2 callersFunctioncreateCollectionForVectorSearch
(db, collectionName, indexes)
controllers/ai.js:152
↓ 2 callersFunctionextractQpmFromLog
()
test/e2e/llm-classifier.e2e.test.js:17
↓ 2 callersFunctionfetchAndCacheTraktImage
(imageUrl)
controllers/api.js:1272
↓ 2 callersFunctionfetchJson
(url, fetchOptions, label)
controllers/api.js:41
↓ 2 callersFunctiongetPayPalAccessToken
()
controllers/api.js:918
↓ 2 callersFunctioninitializeEmbeddingCaches
(mongoUri)
controllers/ai.js:58
↓ 2 callersFunctionnormalizeUrl
(u)
test/tools/simple-link-image-check.js:54
↓ 2 callersFunctionprepareRagFolder
()
controllers/ai.js:43
↓ 2 callersFunctionrevokeToken
(revokeURL, token, tokenTypeHint, config, tokenSecret)
config/token-revocation.js:43
↓ 2 callersFunctionscanMarkdown
()
test/tools/simple-link-image-check.js:161
↓ 2 callersFunctionscanViews
()
test/tools/simple-link-image-check.js:114
↓ 2 callersFunctionsendTwoFactorEmail
* Helper to send a 2FA code email. * The success flash message is customizable so callers can distinguish * between first send and resend.
controllers/user.js:787
↓ 2 callersFunctionsetVectorIndex
* Helper function to update or set a vector index in MongoDB Atlas with a new index definition
controllers/ai.js:199
↓ 1 callersFunctioncaptureContentLength
(req, res, next)
config/morgan.js:98
↓ 1 callersFunctioncheckUrl
(initialUrl, timeout = TIMEOUT)
test/tools/simple-link-image-check.js:70
↓ 1 callersFunctioncreateAIAgent
* Create the Customer Service Agent using createAgent with built-in middleware
controllers/ai-agent.js:608
↓ 1 callersFunctioncreateClassifierLLMRequestBody
(inputText, model, systemPrompt)
controllers/ai.js:644
↓ 1 callersFunctioncreateImageDataUrl
(file)
controllers/ai.js:719
↓ 1 callersFunctioncreateImageUploader
()
controllers/ai.js:700
↓ 1 callersFunctioncreateVisionLLMRequestBody
(dataUrl, model)
controllers/ai.js:615
↓ 1 callersFunctionextractAIMessages
* Helper: Extract AI chat messages from model_request node
controllers/ai-agent.js:185
↓ 1 callersFunctionextractClassifierResponse
(content)
controllers/ai.js:654
↓ 1 callersFunctionextractStatus
* Helper: Extract status from graph node updates
controllers/ai-agent.js:202
↓ 1 callersFunctionextractUrlsFromHtmlLike
(text)
test/tools/simple-link-image-check.js:29
↓ 1 callersFunctionextractUrlsFromMarkdown
(md)
test/tools/simple-link-image-check.js:42
↓ 1 callersFunctionextractVisionAnalysis
(data)
controllers/ai.js:636
↓ 1 callersFunctionfetchMovieDetails
(slug, watchers)
controllers/api.js:1369
↓ 1 callersFunctionfetchTraktTrendingMovies
(limit)
controllers/api.js:1343
↓ 1 callersFunctionfetchTraktUserHistory
(traktToken, limit)
controllers/api.js:1330
↓ 1 callersFunctionfetchTraktUserProfile
(traktToken)
controllers/api.js:1316
↓ 1 callersFunctiongenerateDefaultPublicKey
()
controllers/webauthn.js:5
↓ 1 callersFunctiongenerateOAuth1Header
(method, url, consumerKey, consumerSecret, token, tokenSecret)
config/token-revocation.js:4
↓ 1 callersFunctiongetArtistInfo
()
controllers/api.js:314
↓ 1 callersFunctiongetArtistTopAlbums
()
controllers/api.js:336
↓ 1 callersFunctiongetArtistTopTracks
()
controllers/api.js:324
↓ 1 callersFunctiongetFollowers
(userID)
controllers/api.js:608
↓ 1 callersFunctiongetMarkdownChecks
()
test/tools/simple-link-image-check.js:258
↓ 1 callersFunctiongetMorganFormat
()
config/morgan.js:91
↓ 1 callersFunctiongetOwnedGames
()
controllers/api.js:444
↓ 1 callersFunctiongetPageExtract
(title)
controllers/api.js:1634
↓ 1 callersFunctiongetPageImage
(title)
controllers/api.js:1650
↓ 1 callersFunctiongetPageSections
(title)
controllers/api.js:1619
↓ 1 callersFunctiongetPlayerAchievements
()
controllers/api.js:388
↓ 1 callersFunctiongetPlayerSummaries
()
controllers/api.js:427
↓ 1 callersFunctiongetStreams
(gameID)
controllers/api.js:621
↓ 1 callersFunctiongetTumblrAuthHeader
(url, method)
controllers/api.js:81
↓ 1 callersFunctiongetTumblrAuthHeader
(url, method)
config/passport.js:605
↓ 1 callersFunctiongetUser
(userID)
controllers/api.js:595
↓ 1 callersFunctiongetUserByLogin
(loginID)
controllers/api.js:635
↓ 1 callersFunctiongetViewsChecks
()
test/tools/simple-link-image-check.js:251
↓ 1 callersFunctionhashBody
(body)
test/tools/fixture-helpers.js:7
↓ 1 callersFunctioninstallServerApiFixtures
({ mode = process.env.API_MODE } = {})
test/tools/server-fetch-fixtures.js:30
↓ 1 callersFunctioninstallServerAxiosFixtures
({ mode = process.env.API_MODE } = {})
test/tools/server-axios-fixtures.js:33
↓ 1 callersFunctionnormalizeTextForCaching
(text)
controllers/ai.js:77
↓ 1 callersFunctionpromptGuardMiddleware
()
controllers/ai-agent.js:33
↓ 1 callersFunctionrun
()
test/tools/simple-link-image-check.js:210
↓ 1 callersFunctionsearchWikipedia
(term)
controllers/api.js:1601
↓ 1 callersFunctionsendContactEmail
()
controllers/contact.js:90
↓ 1 callersFunctionsendPasswordlessLoginLinkIfUserExists
* Helper to send a passwordless login link if a user is trying to create an account * but we already have an account for that email address. * This
controllers/user.js:165
↓ 1 callersFunctionsendPasswordlessSignupLink
* Helper to send a passwordless signup link for new users.
controllers/user.js:201
↓ 1 callersFunctionsetupApp
(controller)
test/contact.test.js:13
↓ 1 callersFunctiontraktUrlToFilename
(url)
controllers/api.js:1262
↓ 1 callersFunctionvalidateReCAPTCHA
(token)
controllers/contact.js:4
↓ 1 callersFunctionwriteMinimalPdf
* Create a minimal PDF file with ExampleCorp test data * * Note: This minimal PDF structure will trigger a "Warning: Indexing all PDF objects" * me
test/e2e/rag.e2e.test.js:25
FunctionformatDate
(isoString)
controllers/api.js:1241
Functionget
(name)
test/morgan.test.js:35
FunctiongetHeader
(name)
test/morgan.test.js:32
FunctionremoveSessionByUserId
* Removes all valid sessions for a given user * @param {string} userId * @returns {Promise}
models/Session.js:14
FunctionsetHeader
(name, value)
test/morgan.test.js:38
Functionstop
()
test/tools/start-with-memory-db.js:25