MCPcopy Create free account

hub / github.com/SamuelZ12/longcut / functions

Functions698 in github.com/SamuelZ12/longcut

↓ 3 callersFunctionrateLimitResponse
( result: RateLimitResult )
lib/rate-limiter.ts:276
↓ 3 callersFunctionrequestTranslation
(theme: string)
components/theme-selector.tsx:105
↓ 3 callersFunctionresolveProviderKey
(preferred?: string)
lib/ai-providers/registry.ts:32
↓ 3 callersFunctionretryProviderBackedTopicGeneration
( options: RetryProviderBackedTopicGenerationOptions<T> )
lib/ai-processing.ts:691
↓ 3 callersFunctionrunSinglePassTopicGeneration
( transcript: TranscriptSegment[], transcriptWithTimestamps: string, model: string, provider?: Provide
lib/ai-processing.ts:518
↓ 3 callersFunctionsanitizeText
(text: string)
lib/sanitizer.ts:49
↓ 3 callersFunctionshouldForceSmartModeOnClient
()
lib/ai-providers/client-config.ts:17
↓ 3 callersFunctionshowHelp
()
scripts/grant-pro-access.ts:117
↓ 3 callersFunctionstartCheckout
(priceType: PriceType, currency: Currency = 'usd')
lib/stripe-actions.ts:16
↓ 3 callersFunctionvalidateCSRFToken
( cookieToken: string | null, headerToken: string | null )
lib/csrf-protection.ts:45
↓ 3 callersFunctionwithEnv
( values: Record<string, string | undefined>, run: () => T | Promise<T> )
components/__tests__/url-input.mode.test.tsx:8
↓ 2 callersFunctionapproximateTimeOffset
(segment: TranscriptSegment | undefined, charOffset?: number | null)
lib/topic-utils.ts:121
↓ 2 callersFunctionboyerMooreSearch
(text: string, pattern: string)
lib/quote-matcher.ts:68
↓ 2 callersFunctionbuildFallbackTopicTitle
(startTime: number, endTime: number)
lib/ai-processing.ts:447
↓ 2 callersFunctionbuildTranscriptIndex
(transcript: TranscriptSegment[])
lib/quote-matcher.ts:112
↓ 2 callersFunctioncanGenerateImage
( userId: string, options?: { client?: DatabaseClient; now?: Date } )
lib/image-generation-manager.ts:120
↓ 2 callersFunctioncanGenerateVideo
( userId: string, youtubeId?: string, options?: { client?: DatabaseClient; now?: Date; skipC
lib/subscription-manager.ts:229
↓ 2 callersFunctioncleanText
(raw: string)
lib/youtube-transcript-provider.ts:339
↓ 2 callersFunctionclear
()
lib/ai-providers/grok-adapter.ts:53
↓ 2 callersFunctionclearCSRFToken
()
lib/csrf-client.ts:63
↓ 2 callersFunctioncoerceProviderParams
( prompt: string, options: GenerateAIOptions )
lib/ai-client.ts:31
↓ 2 callersFunctionconsumeVideoCreditAtomic
({ userId, youtubeId, subscription, statsSnapshot, videoAnalysisId, counted = true, identifier,
lib/subscription-manager.ts:401
↓ 2 callersFunctiondescribeError
(error: any)
lib/ai-providers/gemini-adapter.ts:36
↓ 2 callersFunctiondetectTranscriptFormat
( transcript: TranscriptSegment[] )
lib/transcript-format-detector.ts:23
↓ 2 callersFunctiondisplayProfile
(profile: Profile, label: string)
scripts/grant-pro-access.ts:145
↓ 2 callersFunctiondisplayProfile
(profile: Profile, label: string)
scripts/add-credits.ts:132
↓ 2 callersFunctionensureMergedFormat
( transcript: TranscriptSegment[], options?: { /** Enable logging for format detection and migration *
lib/transcript-format-detector.ts:69
↓ 2 callersFunctionensureProvider
(key: ProviderKey)
lib/ai-providers/registry.ts:52
↓ 2 callersFunctionextractInvoiceRefs
(invoice: Stripe.Invoice)
app/api/webhooks/stripe/route.ts:396
↓ 2 callersFunctionextractJsonPayload
(raw: string)
lib/json-utils.ts:64
↓ 2 callersFunctionextractVideoIdFromSlug
(slug: string)
app/v/[slug]/page.tsx:9
↓ 2 callersFunctionfetchVideoBatch
( supabase: SupabaseServerClient, start: number, end: number )
app/api/random-video/route.ts:21
↓ 2 callersFunctionfindSegmentIndexByTime
(transcript: TranscriptSegment[], time: number)
lib/topic-utils.ts:194
↓ 2 callersFunctionformatSrtTimestamp
(seconds: number)
lib/transcript-export.ts:34
↓ 2 callersFunctionformatTime
(totalSeconds: number)
lib/prompts/takeaways.ts:7
↓ 2 callersFunctionformatTimestampFromSeconds
(totalSeconds: number)
lib/timestamp-normalization.ts:27
↓ 2 callersFunctionformatTranscriptWithTimestamps
(segments: TranscriptSegment[])
lib/prompts/takeaways.ts:19
↓ 2 callersFunctionformatVideoInfoBlock
(videoInfo: Partial<VideoInfo> = {})
lib/prompts/takeaways.ts:27
↓ 2 callersFunctiongenerateThemesFromTranscript
( transcript: TranscriptSegment[], videoInfo?: Partial<VideoInfo>, model: string = getProviderModelDefau
lib/ai-processing.ts:1529
↓ 2 callersFunctiongetCSRFTokenFromCookie
(request: NextRequest)
lib/csrf-protection.ts:31
↓ 2 callersFunctiongetConfiguredProviderKey
(preferred?: string)
lib/ai-providers/provider-config.ts:42
↓ 2 callersFunctiongetFallbackVideoInfo
(videoId: string)
lib/video-info-provider.ts:11
↓ 2 callersFunctiongetGuestAccessState
(options?: { supabase?: SupabaseClient })
lib/guest-usage.ts:30
↓ 2 callersFunctiongetHandleGenerateHighlightsSource
()
app/analyze/__tests__/cached-highlights-flow.test.ts:11
↓ 2 callersFunctiongetHtmlBody
(unsubscribeUrl: string)
lib/email/templates/monthly-update.ts:3
↓ 2 callersFunctiongetImageUsageStats
( userId: string, options?: { client?: DatabaseClient; now?: Date } )
lib/image-generation-manager.ts:91
↓ 2 callersFunctiongetProductFromPrice
* Get the product ID from a price
scripts/setup-stripe-portal.ts:94
↓ 2 callersFunctiongetSubject
()
lib/email/templates/monthly-update.ts:1
↓ 2 callersFunctiongetSummaryFailureBranch
(operationName: string)
app/analyze/__tests__/summary-background-flow.test.ts:19
↓ 2 callersFunctiongetTopicStartTime
(topic: { segments: { start: number; end: number }[]; quote?: { timestamp?: string } | null; })
lib/ai-processing.ts:1351
↓ 2 callersFunctiongetYouTubePlayerVars
(origin?: string | null)
components/youtube-player.tsx:43
↓ 2 callersFunctionhandleAction
(action: "explain" | "note")
components/selection-actions.tsx:160
↓ 2 callersFunctionhandleActivation
(nextSummary?: SubscriptionSummary | null)
app/settings/settings-form.tsx:256
↓ 2 callersFunctionhandleAuthRedirect
()
app/pricing/pricing-content.tsx:71
↓ 2 callersFunctionhandleCheckout
(priceType: 'subscription' | 'topup')
app/settings/settings-form.tsx:429
↓ 2 callersFunctionhitEndpoint
(path, options)
scripts/stripe-smoke.mjs:6
↓ 2 callersFunctioninitializePlayer
()
components/youtube-player.tsx:335
↓ 2 callersMethodlogSecurityEvent
* Logs a security event
lib/audit-logger.ts:101
↓ 2 callersFunctionnormalize
(items?: Iterable<string>)
lib/suggested-question-fallback.ts:28
↓ 2 callersFunctionnormalizeBracketTimestamps
(text: string)
components/ai-chat.tsx:24
↓ 2 callersFunctionparseTimestampRange
(range: string)
lib/timestamp-utils.ts:83
↓ 2 callersMethodprocessNextBatch
* Process the next batch from the queue * Protected from concurrent execution by this.processing flag
lib/translation-batcher.ts:109
↓ 2 callersFunctionprocessTextWithCitations
(text: string)
components/chat-message.tsx:175
↓ 2 callersFunctionprocessTopupCheckout
( session: Stripe.Checkout.Session, supabase: DatabaseClient )
lib/stripe-topup.ts:78
↓ 2 callersFunctionpushChunk
(endIndex: number)
lib/transcript-sentence-merger.ts:60
↓ 2 callersFunctionrecordGuestUsage
( state: GuestAccessState, options?: { supabase?: SupabaseClient } )
lib/guest-usage.ts:94
↓ 2 callersFunctionrecoverPartialResponse
(raw: string)
app/api/chat/route.ts:29
↓ 2 callersFunctionrepairJson
(raw: string)
lib/json-utils.ts:108
↓ 2 callersFunctionresolveUserIdFromSubscription
( subscription: Stripe.Subscription, supabase: SupabaseClient<any, string, any> )
app/api/webhooks/stripe/route.ts:418
↓ 2 callersFunctionresolveVideoFromSlug
( supabase: SupabaseServerClient, slug: string )
app/v/[slug]/page.tsx:34
↓ 2 callersFunctionsafeJsonParse
(raw: string)
lib/json-utils.ts:170
↓ 2 callersFunctionsafeParseHost
(url: string | undefined)
lib/utils.ts:119
↓ 2 callersMethodsanitizeDetails
* Sanitizes log details to prevent log injection
lib/audit-logger.ts:172
↓ 2 callersFunctionsanitizeTimestamp
(value: string)
lib/timestamp-normalization.ts:38
↓ 2 callersFunctionsaveVideoAnalysisWithRetry
( supabase: SupabaseClient, params: VideoAnalysisParams, options?: RetryOptions )
lib/video-save-utils.ts:38
↓ 2 callersFunctionselectEnglishVideo
(batch: RandomVideoRow[])
app/api/random-video/route.ts:42
↓ 2 callersFunctionsetCSRFTokenCookie
(response: NextResponse, token: string)
lib/csrf-protection.ts:18
↓ 2 callersFunctionshowProcessingToast
()
app/settings/settings-form.tsx:211
↓ 2 callersMethodsleep
* Sleep helper for retry logic
lib/translation-batcher.ts:189
↓ 2 callersFunctionsyncSubscriptionSnapshot
(summary?: SubscriptionSummary | null)
app/settings/settings-form.tsx:246
↓ 2 callersMethodtranslateBatch
(texts: string[], targetLanguage: string, context?: TranslationContext)
lib/translation/types.ts:14
↓ 2 callersMethodtranslateBatchInternal
* Internal method to translate a batch with retry logic and partial result recovery
lib/translation/llm-translate-client.ts:82
↓ 2 callersFunctiontriggerExplainSelection
(detail: SelectionActionPayload)
components/selection-actions.tsx:18
↓ 2 callersFunctionuseModePreference
()
lib/hooks/use-mode-preference.ts:18
↓ 2 callersFunctionwithEnv
(values: Record<string, string | undefined>, run: () => T)
lib/__tests__/provider-config.test.ts:13
↓ 1 callersFunctionaddCredits
(options: AddCreditsOptions)
scripts/add-credits.ts:140
↓ 1 callersFunctionaddToExclude
(question: string | undefined | null)
components/ai-chat.tsx:455
↓ 1 callersFunctionaddTopupCredits
( userId: string, amount: number, options?: { client?: DatabaseClient } )
lib/subscription-manager.ts:500
↓ 1 callersFunctionadjustRightColumnHeight
()
app/analyze/[videoId]/page.tsx:1624
↓ 1 callersFunctionareThemesSimilar
(aTokens: string[], bTokens: string[])
lib/ai-processing.ts:1455
↓ 1 callersFunctionassessTranscriptLanguage
( transcript: unknown, options: TranscriptLanguageOptions = {} )
lib/transcript-language.ts:59
↓ 1 callersFunctionbuildAbortController
(timeoutMs?: number)
lib/ai-providers/grok-adapter.ts:43
↓ 1 callersFunctionbuildAbortController
(timeoutMs?: number)
lib/ai-providers/minimax-adapter.ts:8
↓ 1 callersFunctionbuildCanonicalSlug
(video: VideoAnalysis)
app/my-videos/video-grid.tsx:39
↓ 1 callersFunctionbuildChunkPrompt
( chunk: TranscriptChunk, maxCandidates: number, videoInfo?: Partial<VideoInfo>, theme?: string, lan
lib/ai-processing.ts:227
↓ 1 callersFunctionbuildFallbackPreview
(options: { videoTitle?: string; channelName?: string; videoDescription?: string; })
app/api/quick-preview/route.ts:9
↓ 1 callersFunctionbuildFallbackTopics
( transcript: TranscriptSegment[], maxTopics: number, fullText: string, theme?: string )
lib/ai-processing.ts:451
↓ 1 callersFunctionbuildGenerationConfig
(params: ProviderGenerateParams)
lib/ai-providers/gemini-adapter.ts:132
↓ 1 callersMethodbuildIndexedPrompt
* Build indexed prompt for translation (more robust than delimiter format)
lib/translation/llm-translate-client.ts:303
↓ 1 callersFunctionbuildMiniMaxError
(response: Response, parsed: any)
lib/ai-providers/minimax-adapter.ts:198
← previousnext →101–200 of 698, ranked by callers