MCPcopy Create free account

hub / github.com/SamuelZ12/longcut / functions

Functions698 in github.com/SamuelZ12/longcut

↓ 1 callersFunctionbuildModelList
(model?: string)
lib/ai-providers/gemini-adapter.ts:167
↓ 1 callersFunctionbuildPayload
(params: ProviderGenerateParams)
lib/ai-providers/grok-adapter.ts:122
↓ 1 callersFunctionbuildPayload
(params: ProviderGenerateParams)
lib/ai-providers/minimax-adapter.ts:167
↓ 1 callersFunctionbuildPrompt
(params: ProviderGenerateParams)
lib/ai-providers/minimax-adapter.ts:113
↓ 1 callersFunctionbuildPrompt
( transcript: TranscriptSegment[], videoTitle: string | undefined, videoAuthor: string | undefined, st
app/api/generate-image/route.ts:73
↓ 1 callersFunctionbuildQuotesMarkdown
(quotes: Array<{ title: string; quote: string; timestamp: string }>)
app/api/top-quotes/route.ts:38
↓ 1 callersFunctionbuildReducePrompt
( candidates: CandidateTopic[], maxTopics: number, videoInfo?: Partial<VideoInfo>, minTopics: number =
lib/ai-processing.ts:280
↓ 1 callersFunctionbuildTakeawaysMarkdown
(takeaways: StructuredTakeaway[])
app/api/generate-summary/route.ts:205
↓ 1 callersFunctionbuildTakeawaysPrompt
({ transcript, videoInfo }: BuildTakeawaysPromptParams)
lib/prompts/takeaways.ts:48
↓ 1 callersFunctionbuildTopQuotesPrompt
(transcript: TranscriptSegment[], videoInfo: Partial<VideoInfo> | undefined)
app/api/top-quotes/route.ts:10
↓ 1 callersFunctioncalculateDensity
()
components/video-progress-bar.tsx:67
↓ 1 callersFunctioncalculateNgramSimilarity
(str1: string, str2: string)
lib/quote-matcher.ts:34
↓ 1 callersFunctioncalculateTranscriptDuration
(segments: { start: number; duration: number }[])
app/api/transcript/route.ts:24
↓ 1 callersFunctioncalculateUsageInPeriod
( userId: string, periodStart: Date, periodEnd: Date, options?: { client?: DatabaseClient } )
lib/subscription-manager.ts:165
↓ 1 callersFunctioncallGeminiImageAPI
( prompt: string, model: string, apiKey: string, aspectRatio: AspectRatio )
app/api/generate-image/route.ts:100
↓ 1 callersFunctioncheckScrollNeeded
()
components/theme-selector.tsx:222
↓ 1 callersFunctionchunk
(arr: T[], size: number)
app/api/translate/route.ts:94
↓ 1 callersFunctionchunkTranscript
( segments: TranscriptSegment[], chunkDurationSeconds: number, overlapSeconds: number )
lib/ai-processing.ts:90
↓ 1 callersMethodclearPending
* Clear pending requests (alias for backward compatibility)
lib/translation-batcher.ts:327
↓ 1 callersFunctioncloseCustomInput
()
components/theme-selector.tsx:186
↓ 1 callersFunctioncollectTimestampCandidates
(source: unknown, depth = 0)
lib/timestamp-normalization.ts:122
↓ 1 callersFunctioncombineTranscript
(segments: TranscriptSegment[])
lib/ai-processing.ts:638
↓ 1 callersFunctioncomputeDuration
(segments: TopicSegment[] = [])
lib/topic-utils.ts:104
↓ 1 callersFunctionconfirmCheckout
()
app/settings/settings-form.tsx:295
↓ 1 callersFunctionconsumeImageCreditAtomic
({ userId, youtubeId, subscription, statsSnapshot, videoAnalysisId, counted = true, client, }: {
lib/image-generation-manager.ts:174
↓ 1 callersFunctionconvertToGeminiSchema
(jsonSchema: any)
lib/ai-providers/gemini-adapter.ts:55
↓ 1 callersFunctioncreateFallbackSegment
(transcript: TranscriptSegment[])
lib/topic-utils.ts:261
↓ 1 callersFunctioncreateOrRetrieveStripeCustomer
( userId: string, email: string )
lib/subscription-manager.ts:544
↓ 1 callersFunctioncreatePortalConfiguration
* Create a new billing portal configuration
scripts/setup-stripe-portal.ts:107
↓ 1 callersFunctioncreateReduceSelectionSchema
(limit: number)
lib/ai-processing.ts:340
↓ 1 callersFunctioncreateSegmentFromMatch
( match: NonNullable<ReturnType<typeof findTextInTranscript>>, transcript: TranscriptSegment[], preferre
lib/topic-utils.ts:146
↓ 1 callersFunctioncreateSegmentFromTimestamp
( timestamp: string | undefined, transcript: TranscriptSegment[], preferredText?: string, )
lib/topic-utils.ts:211
↓ 1 callersFunctioncreateStripeClient
()
lib/stripe-client.ts:10
↓ 1 callersFunctioncreateTranscript
(durationSeconds: number)
lib/__tests__/topic-generation-fallback.test.ts:47
↓ 1 callersFunctioncreateTranscriptExport
( transcript: TranscriptSegment[], options: TranscriptExportOptions )
lib/transcript-export.ts:270
↓ 1 callersFunctiondecodeHtmlEntities
(text: string)
lib/youtube-transcript-provider.ts:102
↓ 1 callersFunctiondedupeCandidates
(candidates: CandidateTopic[])
lib/ai-processing.ts:193
↓ 1 callersFunctiondeleteNote
(noteId: string)
lib/notes-client.ts:57
↓ 1 callersFunctiondispatchStripeEvent
( event: Stripe.Event, supabase: SupabaseClient<any, string, any>, stripe: Stripe )
app/api/webhooks/stripe/route.ts:81
↓ 1 callersFunctionendsWithSentence
* Check if text ends with a sentence-ending punctuation
lib/transcript-sentence-merger.ts:147
↓ 1 callersFunctionenhanceNoteQuote
(quote: string)
lib/notes-client.ts:39
↓ 1 callersFunctionensureSchemaName
(name?: string)
lib/ai-providers/grok-adapter.ts:36
↓ 1 callersFunctionensureSchemaName
(name?: string)
lib/ai-providers/minimax-adapter.ts:85
↓ 1 callersFunctionensureTranscriptIndex
( existingIndex: TranscriptIndex | null, transcript: TranscriptSegment[], )
lib/topic-utils.ts:294
↓ 1 callersFunctionensureUserVideoLink
( supabase: SupabaseClient, userId: string, youtubeId: string )
lib/video-save-utils.ts:112
↓ 1 callersMethodexecuteBatch
* Execute a batch - the actual business logic * Separated from orchestration logic for clarity
lib/translation-batcher.ts:152
↓ 1 callersFunctionextractTextFromChoice
(choice: any)
lib/ai-providers/grok-adapter.ts:58
↓ 1 callersFunctionextractTextFromChoice
(choice: any)
lib/ai-providers/minimax-adapter.ts:22
↓ 1 callersFunctionextractThemeTokens
(theme: string)
lib/ai-processing.ts:1443
↓ 1 callersFunctionextractTimestamps
(text: string)
lib/timestamp-utils.ts:54
↓ 1 callersFunctionextractTopupValuesFromSession
( session: Stripe.Checkout.Session )
lib/stripe-topup.ts:36
↓ 1 callersFunctionfallbackClean
(text: string)
app/api/notes/enhance/route.ts:58
↓ 1 callersFunctionfetchAllNotes
()
lib/notes-client.ts:69
↓ 1 callersFunctionfetchCaptionTrack
* Downloads a caption track from the given URL and parses it.
lib/youtube-transcript-provider.ts:385
↓ 1 callersFunctionfetchImageUsageInPeriod
( userId: string, periodStart: Date, periodEnd: Date, options?: { client?: DatabaseClient } )
lib/image-generation-manager.ts:65
↓ 1 callersFunctionfetchInnerTubePlayer
* Calls YouTube's InnerTube Player API to get video metadata including caption tracks. * This is the same API that YouTube's own apps use internally.
lib/youtube-transcript-provider.ts:197
↓ 1 callersFunctionfetchNotes
(params: { youtubeId: string })
lib/notes-client.ts:13
↓ 1 callersFunctionfetchSubscriptionTier
()
components/user-menu.tsx:33
↓ 1 callersFunctionfetchUsageBreakdown
({ userId, start, end, client, }: UsageInPeriodParams)
lib/usage-tracker.ts:40
↓ 1 callersFunctionfindClosestSegment
(transcript: TranscriptSegment[], targetSeconds: number)
app/api/chat/route.ts:53
↓ 1 callersFunctionfindEarlyPunctuation
* Find sentence-ending punctuation near the beginning of text (within first 2 words) * Returns the index position right after the punctuation, or -1
lib/transcript-sentence-merger.ts:168
↓ 1 callersFunctionfindExactQuotes
( transcript: TranscriptSegment[], quotes: Array<{ timestamp: string; text: string }>, index: Transcript
lib/ai-processing.ts:1038
↓ 1 callersFunctionfindLatePunctuation
* Find sentence-ending punctuation near the end of text (within last 2 words) * Returns the index position right after the punctuation, or -1 if none
lib/transcript-sentence-merger.ts:219
↓ 1 callersFunctionfindLongCutProProduct
* Find the LongCut Pro product
scripts/update-product-description.ts:72
↓ 1 callersFunctionfindTopicForSegment
( segment: TranscriptSegment, topics: Topic[] | undefined )
lib/transcript-export.ts:64
↓ 1 callersFunctionformatCancellationDate
(periodEnd: string | null | undefined)
app/settings/settings-form.tsx:121
↓ 1 callersFunctionformatDate
(dateString: string)
app/my-videos/video-grid.tsx:70
↓ 1 callersFunctionformatDateOnly
(dateString: string)
components/notes-panel.tsx:13
↓ 1 callersFunctionformatDuration
(seconds: number)
app/v/[slug]/page.tsx:217
↓ 1 callersFunctionformatResetAt
(date: Date)
lib/usage-tracker.ts:117
↓ 1 callersFunctionformatResetCopy
(resetAt: Date | null)
components/usage-indicator.tsx:22
↓ 1 callersFunctionformatStatus
(subscription: SubscriptionSummary | null)
app/settings/settings-form.tsx:139
↓ 1 callersFunctionformatTranscriptForContext
(segments: TranscriptSegment[])
app/api/chat/route.ts:14
↓ 1 callersFunctionformatTranscriptForContext
(segments: TranscriptSegment[])
app/api/suggested-questions/route.ts:10
↓ 1 callersFunctiongenerateCsvContent
( transcript: TranscriptSegment[], options: TranscriptExportOptions, hasSpeakerLabels: boolean )
lib/transcript-export.ts:201
↓ 1 callersFunctiongenerateProviderBackedTopicsFromTranscript
( transcript: TranscriptSegment[], options: GenerateTopicsOptions, provider: ProviderKey )
lib/ai-processing.ts:756
↓ 1 callersFunctiongenerateSrtContent
( transcript: TranscriptSegment[], options: TranscriptExportOptions, hasSpeakerLabels: boolean )
lib/transcript-export.ts:149
↓ 1 callersFunctiongenerateTxtContent
( transcript: TranscriptSegment[], options: TranscriptExportOptions, hasSpeakerLabels: boolean )
lib/transcript-export.ts:94
↓ 1 callersMethodgetBackoffDelay
* Calculate exponential backoff delay
lib/translation-batcher.ts:196
↓ 1 callersFunctiongetCSRFTokenFromHeader
(request: NextRequest)
lib/csrf-protection.ts:38
↓ 1 callersFunctiongetCurrentSegmentIndex
()
components/transcript-viewer.tsx:525
↓ 1 callersFunctiongetExistingConfiguration
* Check if a portal configuration already exists
scripts/setup-stripe-portal.ts:81
↓ 1 callersFunctiongetFallbackProvider
(currentKey: ProviderKey)
lib/ai-providers/registry.ts:103
↓ 1 callersFunctiongetHighlightedText
(segment: TranscriptSegment, segmentIndex: number)
components/transcript-viewer.tsx:357
↓ 1 callersMethodgetInstance
()
lib/csrf-protection.ts:110
↓ 1 callersFunctiongetIpHash
()
lib/guest-usage.ts:19
↓ 1 callersFunctiongetMockTranscript
()
lib/mock-data.ts:29
↓ 1 callersFunctiongetMockVideoInfo
(videoId: string)
lib/mock-data.ts:18
↓ 1 callersFunctiongetModalContent
()
components/auth-modal.tsx:133
↓ 1 callersFunctiongetOperationSource
(operationName: string)
app/analyze/__tests__/summary-background-flow.test.ts:11
↓ 1 callersFunctiongetProvider
(key?: string)
lib/ai-providers/registry.ts:80
↓ 1 callersFunctiongetProviderKey
(preferred?: string)
lib/ai-providers/registry.ts:48
↓ 1 callersFunctiongetProviderPriorityOrder
()
lib/ai-providers/provider-config.ts:90
↓ 1 callersFunctiongetRandomEnglishVideo
( supabase: SupabaseServerClient, totalCount: number )
app/api/random-video/route.ts:54
↓ 1 callersMethodgetScenarioInstructions
* Get specific instructions for each translation scenario
lib/translation/llm-translate-client.ts:474
↓ 1 callersFunctiongetSegmentStyles
(segment: Topic['segments'][number])
components/video-progress-bar.tsx:104
↓ 1 callersFunctiongetSegmentTopic
(segment: TranscriptSegment)
components/transcript-viewer.tsx:343
↓ 1 callersFunctiongetShuffledTopicColors
(videoId: string)
lib/utils.ts:106
↓ 1 callersFunctiongetSourceColor
(source: NoteSource)
app/all-notes/page.tsx:37
↓ 1 callersFunctiongetSourceLabel
(source: NoteSource)
components/notes-panel.tsx:98
← previousnext →201–300 of 698, ranked by callers