MCPcopy Create free account

hub / github.com/MemeCalculate/moyin-creator / functions

Functions1,435 in github.com/MemeCalculate/moyin-creator

↓ 415 callersFunctioncn
(...inputs: ClassValue[])
src/lib/utils.ts:9
↓ 97 callersMethodget
(key: string)
src/lib/storage/types.ts:8
↓ 93 callersFunctionpromptInput
()
src/lib/freedom/model-registry.ts:41
↓ 83 callersMethodset
(key: string, value: T)
src/lib/storage/types.ts:9
↓ 80 callersFunctiononProgress
(completed: number, total: number)
src/components/panels/script/index.tsx:1514
↓ 67 callersFunctionaspectRatioInput
( ratios: string[], defaultRatio?: string, )
src/lib/freedom/model-registry.ts:70
↓ 59 callersFunctiongetFeatureConfig
(feature: AIFeature)
src/lib/ai/feature-router.ts:144
↓ 47 callersMethodkeys
()
src/lib/storage/types.ts:68
↓ 39 callersMethodentries
()
src/lib/storage/types.ts:70
↓ 38 callersMethodgetCurrentKey
* Get the current API key
src/lib/api-key-manager.ts:307
↓ 35 callersFunctiongetFeatureNotConfiguredMessage
(feature: AIFeature)
src/lib/ai/feature-router.ts:220
↓ 33 callersFunctiondurationInput
( opts: { default?: number; enum?: number[] }, )
src/lib/freedom/model-registry.ts:90
↓ 32 callersFunctionresolutionInput
( values: string[], defaultVal?: string, )
src/lib/freedom/model-registry.ts:99
↓ 30 callersFunctionparseApiKeys
(apiKey: string)
src/lib/api-key-manager.ts:224
↓ 26 callersFunctionpersistSceneImage
( imageData: string, sceneId: number, frameType: 'first' | 'end' = 'first', category: ImageCategor
src/lib/utils/image-persist.ts:33
↓ 25 callersFunctionreportSceneProgress
* Helper: Report scene progress
src/workers/ai-worker.ts:528
↓ 24 callersFunctiongetStyleById
(styleId: string)
src/lib/constants/visual-styles.ts:588
↓ 22 callersFunctioncopyDir
(source: string, destination: string)
electron/main.ts:351
↓ 22 callersFunctionsaveImageToLocal
( url: string, category: ImageCategory, filename: string = 'image.png' )
src/lib/image-storage.ts:38
↓ 20 callersFunctionreadImageAsBase64
(imagePath: string)
src/lib/image-storage.ts:115
↓ 20 callersFunctionremoveDir
(dirPath: string)
electron/main.ts:356
↓ 19 callersFunctionwidthHeightInputs
( min: number, max: number, step: number, defaults?: { width?: number; height?: number }, )
src/lib/freedom/model-registry.ts:46
↓ 18 callersFunctiongetMediaRoot
()
electron/main.ts:317
↓ 18 callersFunctionpostEvent
(event: WorkerEvent)
src/workers/ai-worker.ts:1202
↓ 17 callersFunctionsubmitGridImageRequest
(params: { model: string; prompt: string; apiKey: string; baseUrl: string; aspectRatio: string;
src/lib/ai/image-generator.ts:779
↓ 16 callersMethodon
* Register event handlers
src/lib/ai/worker-bridge.ts:81
↓ 15 callersFunctionnormalizeUrl
(url: unknown)
src/components/panels/director/use-image-generation.ts:11
↓ 15 callersFunctionnumImagesInput
( min: number, max: number, )
src/lib/freedom/model-registry.ts:80
↓ 14 callersMethodclear
()
src/lib/storage/types.ts:12
↓ 14 callersMethodremove
(key: string)
src/lib/storage/types.ts:10
↓ 14 callersFunctionretryOperation
( operation: () => Promise<T>, options: RetryOptions = {} )
src/lib/utils/retry.ts:65
↓ 14 callersFunctiontoUploadHttpUrl
(file: FreedomVideoUploadFile)
src/lib/freedom/freedom-api.ts:1018
↓ 14 callersMethodvalues
()
src/lib/storage/types.ts:69
↓ 13 callersFunctioncallFeatureAPI
( feature: AIFeature, systemPrompt: string, userPrompt: string, options?: CallFeatureAPIOptions )
src/lib/ai/feature-router.ts:253
↓ 13 callersFunctionensureDir
(dirPath: string)
electron/main.ts:262
↓ 13 callersFunctiongetPromptByLanguage
(zh: string | undefined, en: string | undefined)
src/components/panels/director/split-scene-card.tsx:187
↓ 13 callersFunctionisValid
(v?: string | null)
src/components/panels/sclass/sclass-prompt-builder.ts:452
↓ 13 callersFunctionnormalizePath
(inputPath: string)
electron/main.ts:268
↓ 13 callersFunctionupdate
(props: ToasterToast)
src/hooks/use-toast.ts:148
↓ 12 callersMethodhandleError
* Handle API errors and decide whether to rotate * Returns true if key was rotated
src/lib/api-key-manager.ts:372
↓ 12 callersFunctionnormalizeUrl
(url: any)
src/components/panels/director/split-scenes.tsx:1120
↓ 12 callersFunctionuseActiveScriptProject
()
src/stores/script-store.ts:1147
↓ 11 callersFunctionfindPresetToken
* 查找预设 token 并应用媒介类型翻译。 * 当 mediaType 为 undefined 时视为 cinematic(直通)。
src/lib/generation/prompt-builder.ts:78
↓ 11 callersFunctiongetCharacterReferenceImages
()
src/components/panels/director/screenplay-input.tsx:364
↓ 11 callersFunctiongetShotCompletionStatus
(shot: Shot)
src/lib/script/shot-utils.ts:15
↓ 11 callersFunctionnormalizeUrlValue
(url: any)
src/components/panels/sclass/sclass-scenes.tsx:1822
↓ 11 callersFunctionnormalizeUrlValue
(url: any)
src/components/panels/director/split-scenes.tsx:2064
↓ 11 callersFunctionpush
(value?: string | null, maxLength = 96)
src/components/panels/director/split-scenes.tsx:215
↓ 11 callersFunctiontoHttpError
(prefix: string, status: number, body: string)
src/lib/freedom/freedom-api.ts:600
↓ 11 callersFunctionuseActiveDirectorProject
()
src/stores/director-store.ts:2198
↓ 11 callersFunctionwriteJSON
(filePath, data)
scripts/prepare-demo-data.cjs:37
↓ 10 callersFunctionextractVideoUrl
(data: any)
src/lib/freedom/freedom-api.ts:1590
↓ 10 callersFunctiongetRootBaseUrl
(baseUrl: string)
src/lib/freedom/freedom-api.ts:155
↓ 10 callersFunctiongetStylePrompt
(styleId: string | null | undefined)
src/lib/constants/visual-styles.ts:593
↓ 10 callersFunctionisImageHostConfigured
()
src/lib/image-host.ts:380
↓ 10 callersFunctionnormalizeUrl
(url: any)
src/components/panels/sclass/sclass-scenes.tsx:897
↓ 10 callersFunctionsleepOrAbort
AbortSignal 感知的 sleep:若信号触发则立即以 '用户已取消' 拒绝
src/components/panels/director/use-video-generation.ts:410
↓ 10 callersFunctionuseResolvedImageUrl
(rawUrl: string | null | undefined)
src/hooks/use-resolved-image-url.ts:24
↓ 9 callersFunctiondelay
(ms: number)
src/lib/utils/rate-limiter.ts:66
↓ 9 callersFunctionensureString
(val: any)
src/lib/script/ai-character-finder.ts:388
↓ 9 callersFunctiongetProjectDataRoot
()
electron/main.ts:311
↓ 9 callersFunctionnormalizeGenerationPrefs
( prefs?: Partial<SceneGenerationPrefs> | null )
src/stores/scene-store.ts:131
↓ 9 callersFunctionreportSceneFailed
* Helper: Report scene failed
src/workers/ai-worker.ts:553
↓ 8 callersFunctionconvertToHttpUrl
( rawUrl: unknown, options?: ConvertToHttpUrlOptions )
src/components/panels/director/use-video-generation.ts:89
↓ 8 callersFunctionextractVideoUrl
* Extract video URL from various response formats
src/components/panels/director/use-video-generation.ts:520
↓ 8 callersFunctiongenerateId
()
src/lib/api-key-manager.ts:217
↓ 8 callersFunctionisElectron
()
src/lib/image-storage.ts:27
↓ 8 callersFunctionsaveToMediaLibrary
( url: string, prompt: string, source: 'ai-image' | 'ai-video' )
src/lib/freedom/freedom-api.ts:1643
↓ 8 callersMethodsendCommand
(command: WorkerCommand)
src/lib/ai/worker-bridge.ts:230
↓ 7 callersFunction_findStyle
内部:先查内置,再查自定义
src/lib/constants/visual-styles.ts:574
↓ 7 callersFunctiondownloadFile
* Download a file from any URL type (HTTP, local-image://, data:) as Blob
src/lib/script/export-service.ts:90
↓ 7 callersFunctiongenerateUUID
()
src/lib/utils.ts:21
↓ 7 callersFunctiongetActiveProjectId
* Get current activeProjectId from project-store. * MUST be called synchronously (before any await) to avoid race conditions.
src/lib/project-storage.ts:22
↓ 7 callersFunctiongetAngleLabel
( direction: HorizontalDirection, elevation: ElevationAngle, shotSize: ShotSize )
src/lib/ai/runninghub-angles.ts:162
↓ 7 callersFunctiongetCharacterReferenceImages
(shot: Shot)
src/components/panels/script/shot-list.tsx:68
↓ 7 callersFunctiongetDataDir
()
electron/main.ts:946
↓ 7 callersFunctionhandleVideoSubmitError
( status: number, errorText: string, keyManager?: { handleError: (status: number, errorText?: string)
src/components/panels/director/use-video-generation.ts:291
↓ 7 callersFunctionisNonEmptyString
(value: unknown)
electron/main.ts:46
↓ 7 callersFunctionnormalizeLocation
* 标准化地点名称用于匹配
src/lib/script/scene-calibrator.ts:224
↓ 7 callersMethodpoll
* Poll an async task until completion or failure * Automatically extends timeout based on server's estimated_time
src/packages/ai-core/api/task-poller.ts:33
↓ 7 callersFunctionreadJSON
(filePath)
scripts/prepare-demo-data.cjs:32
↓ 7 callersFunctionuploadToImageHost
( imageData: string, options?: UploadOptions )
src/lib/image-host.ts:301
↓ 6 callersFunctionbuildSeriesContextSummary
(meta: SeriesMeta | null)
src/lib/script/series-meta-sync.ts:119
↓ 6 callersFunctioncalculateProgress
(items: { status?: CompletionStatus }[])
src/lib/script/shot-utils.ts:28
↓ 6 callersFunctionensureString
(val: any)
src/lib/script/ai-scene-finder.ts:238
↓ 6 callersFunctionextractImageUrl
(data: any)
src/lib/freedom/freedom-api.ts:1570
↓ 6 callersFunctiongetMediaType
(styleId: string | null | undefined)
src/lib/constants/visual-styles.ts:665
↓ 6 callersFunctiongetOptionKey
(option: ProviderOption)
src/components/api-manager/FeatureBindingPanel.tsx:108
↓ 6 callersMethodgetProjectMediaAdapters
({ projectId }: { projectId: string })
src/lib/storage/storage-service.ts:46
↓ 6 callersMethodgetTotalKeyCount
* Get total key count
src/lib/api-key-manager.ts:405
↓ 6 callersFunctionisProviderConfigured
(providerIdOrPlatform: string)
src/components/api-manager/FeatureBindingPanel.tsx:267
↓ 6 callersFunctionnormalizeUrl
(url: any)
src/lib/ai/image-generator.ts:881
↓ 6 callersFunctionpad
(value: number, length: number = 2)
src/lib/time.ts:7
↓ 6 callersFunctionsanitizeExternalUrl
(value?: string)
electron/main.ts:50
↓ 5 callersFunctioncleanup
()
src/components/panels/director/use-video-generation.ts:1342
↓ 5 callersFunctioncreateShot
* 创建分镜对象
src/lib/script/full-script-service.ts:919
↓ 5 callersFunctiondispatch
(action: Action)
src/hooks/use-toast.ts:136
↓ 5 callersFunctionestimateTokens
(text: string)
src/lib/ai/model-registry.ts:260
↓ 5 callersFunctionexportProjectMetadata
(projectId: string)
src/lib/script/full-script-service.ts:2429
↓ 5 callersFunctiongenerateAngleSwitch
(params: { referenceImage: string; direction: HorizontalDirection; elevation: ElevationAngle; shot
src/lib/ai/runninghub-client.ts:230
next →1–100 of 1,435, ranked by callers