MCPcopy Create free account

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

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

↓ 1 callersFunctioninferMediaType
从分类推断媒介类型
src/stores/custom-style-store.ts:233
↓ 1 callersFunctioninferNeedsEndFrame
* Determine if scene needs end frame based on text content
src/lib/storyboard/scene-prompt-generator.ts:95
↓ 1 callersMethodinitialize
* Initialize the worker * Call this once when the app starts
src/lib/ai/worker-bridge.ts:48
↓ 1 callersMethodinitializeSink
(mediaId: string, file: File)
src/lib/video-cache.ts:194
↓ 1 callersFunctioninitializeWorkerBridge
()
src/lib/ai/worker-bridge.ts:420
↓ 1 callersFunctioninjectDiscoveryCache
( getter: (model: string) => DiscoveredModelLimits | undefined, setter: (model: string, limits: Partial<
src/lib/ai/model-registry.ts:107
↓ 1 callersMethodinterpolate
* Mustache-style interpolation
src/packages/ai-core/services/prompt-compiler.ts:74
↓ 1 callersFunctionisCellEmpty
(canvas: HTMLCanvasElement, threshold: number = 30)
src/lib/storyboard/image-splitter.ts:416
↓ 1 callersFunctionisElectron
检测是否在 Electron 环境中运行
src/lib/cors-fetch.ts:14
↓ 1 callersFunctionisEpTitle
(t: string)
src/lib/script/series-meta-sync.ts:37
↓ 1 callersFunctionisFieldSkipped
(mediaType: MediaType, field: CinematographyField)
src/lib/generation/media-type-tokens.ts:213
↓ 1 callersFunctionisGeminiImageModel
* 判断模型是否为 Gemini 图片生成模型(Nano Banana 系列) * - Nano Banana Pro = gemini-3-pro-image-preview → 支持 1K/2K/4K * - Nano Banana 2 = gemini-3.1-flash-ima
src/lib/ai/image-generator.ts:97
↓ 1 callersFunctionisMissingTitle
* 检查集数是否缺失标题 * 缺失标题的判断标准:标题为空,或只有"第X集"没有冒号后的内容
src/lib/script/full-script-service.ts:1050
↓ 1 callersFunctionisModelAllowedByPanelType
( type: 'image' | 'video', modelId: string, modelTypes: Record<string, string>, modelEndpointTypes: Re
src/components/panels/freedom/ModelSelector.tsx:377
↓ 1 callersFunctionisModelIncompatibleError
(errorText?: string)
src/lib/api-key-manager.ts:260
↓ 1 callersFunctionisRateLimitError
(error: unknown)
src/lib/utils/retry.ts:20
↓ 1 callersFunctionisRetryableError
* Check if an error is retryable (rate limit / service unavailable / upstream overload)
src/lib/freedom/freedom-api.ts:78
↓ 1 callersFunctionisSameScene
判断两个镜头是否同场景
src/components/panels/sclass/auto-grouping.ts:55
↓ 1 callersFunctionisSceneCompleted
(s: SplitScene)
src/components/panels/sclass/sclass-scenes.tsx:2059
↓ 1 callersFunctionisSceneCompleted
(s: SplitScene)
src/components/panels/director/split-scenes.tsx:2325
↓ 1 callersFunctionisSelected
(tagId: EmotionTag)
src/components/panels/director/emotion-tags.tsx:54
↓ 1 callersMethodisSupported
()
src/lib/storage/opfs-adapter.ts:73
↓ 1 callersFunctionisUnconfiguredDefaultCatboxProvider
(provider: ImageHostProvider)
src/stores/api-config-store.ts:236
↓ 1 callersFunctionisUnconfiguredDefaultImgBBProvider
(provider: ImageHostProvider)
src/stores/api-config-store.ts:222
↓ 1 callersFunctionisVisibleImageHostPlatform
(platform: string)
src/stores/api-config-store.ts:198
↓ 1 callersFunctionisVisibleImageHostProvider
( provider: Pick<ImageHostProvider, 'platform'>, )
src/stores/api-config-store.ts:202
↓ 1 callersFunctionisViteDev
检测是否在 Vite 开发服务器中运行
src/lib/cors-fetch.ts:22
↓ 1 callersMethoditerateToTime
( sinkData: VideoSinkData, targetTime: number )
src/lib/video-cache.ts:119
↓ 1 callersMethodloadAllMediaFiles
({ projectId, }: { projectId: string; })
src/lib/storage/storage-service.ts:255
↓ 1 callersFunctionloadImage
(src: string)
src/lib/storyboard/image-splitter.ts:57
↓ 1 callersMethodloadMediaFile
({ projectId, id, }: { projectId: string; id: string; })
src/lib/storage/storage-service.ts:208
↓ 1 callersMethodloadProject
({ id }: { id: string })
src/lib/storage/storage-service.ts:108
↓ 1 callersFunctionloadStorageConfig
()
electron/main.ts:241
↓ 1 callersFunctionmain
()
scripts/prepare-demo-data.cjs:254
↓ 1 callersFunctionmapMidjourneyMode
(speed: unknown)
src/lib/freedom/freedom-api.ts:625
↓ 1 callersFunctionmatchByAI
* 使用 AI 匹配视角
src/lib/scene/viewpoint-matcher.ts:109
↓ 1 callersFunctionmatchCharacterVariationsForEpisode
* 根据集数自动匹配角色的阶段变体 * 用于分镜生成时自动选择正确版本的角色(如第50集自动用张明中年版)
src/lib/script/full-script-service.ts:873
↓ 1 callersFunctionmatchSceneAndViewpoint
( sceneName: string, actionSummary: string, sceneLibraryScenes: Scene[], useAI: boolean = true )
src/lib/scene/viewpoint-matcher.ts:303
↓ 1 callersFunctionmergeToGridImage
( imageUrls: string[], aspectRatio: string = '16:9', )
src/components/panels/sclass/sclass-prompt-builder.ts:112
↓ 1 callersFunctionmigrateBase64ToLocalImages
* One-time migration: convert base64 data URLs to local-image:// files. * Runs asynchronously after store rehydration.
src/stores/scene-store.ts:470
↓ 1 callersFunctionmigrateConfig
(config: any)
src/stores/sclass-store.ts:819
↓ 1 callersFunctionmigrateFromLocalStorage
(_key: string)
src/lib/indexed-db-storage.ts:206
↓ 1 callersFunctionmigrateMediaDataUrls
* Migrate data: URLs in media files to local files on startup. * This handles legacy data that was stored before the partialize fix.
src/stores/media-store.ts:698
↓ 1 callersFunctionmigrateTimelineStore
(activeProjectId: string)
src/lib/storage-migration.ts:222
↓ 1 callersFunctionmigrateToProjectStorage
()
src/lib/storage-migration.ts:23
↓ 1 callersFunctionmodelSupportsCapability
* 检查特定模型是否支持所需能力 * 优先级:硬编码映射 → 平台元数据(model_type/tags) → 模型名称推断 → 平台级别 fallback
src/components/api-manager/FeatureBindingPanel.tsx:196
↓ 1 callersFunctionneedsPixelSize
* 判断模型是否需要像素尺寸格式 (如 "1024x1024") 而非比例格式 (如 "1:1") * doubao-seedream, cogview 等国产模型需要像素尺寸
src/lib/ai/image-generator.ts:134
↓ 1 callersFunctionnormalize
(s?: string)
src/components/panels/sclass/sclass-scenes.tsx:1948
↓ 1 callersFunctionnormalize
(s?: string)
src/components/panels/director/split-scenes.tsx:2214
↓ 1 callersFunctionnormalize
(s?: string)
src/components/panels/director/use-image-generation.ts:235
↓ 1 callersFunctionnormalizeArch
(arch)
scripts/build-desktop.mjs:74
↓ 1 callersFunctionnormalizeCharacterIdentityText
(value?: string | null, maxLength = 96)
src/components/panels/director/split-scenes.tsx:159
↓ 1 callersFunctionnormalizeCharacterSection
* 人物小传区域检测与标记插入 * 支持: * - 显式标题:人物介绍:、角色介绍:、主要角色:、角色设定: * - 中文编号角色分类:一、核心主角 / 一、主要角色 * - 角色描述模式:XX:年龄:35 / XX:35岁
src/lib/script/script-normalizer.ts:483
↓ 1 callersFunctionnormalizeOutlineSection
* 大纲区域检测与标记插入 * 支持: * - 显式标题:故事背景:、故事简介:、剧情简介:、概述: * - 如果找不到大纲但有人物小传标记,在人物小传前插入空大纲标记
src/lib/script/script-normalizer.ts:528
↓ 1 callersFunctionnormalizeScriptFormat
(text: string)
src/lib/script/script-normalizer.ts:122
↓ 1 callersFunctionnormalizeTime
* 标准化时间
src/lib/script/episode-parser.ts:1075
↓ 1 callersFunctionnormalizeTimeValue
* Normalize time value to match scene-store TIME_PRESETS * Maps Chinese time descriptions to standard time IDs
src/lib/script/script-parser.ts:22
↓ 1 callersFunctionnormalizeTitle
* 标题检测与归一化 * 取前5行中第一个符合条件的短行作为标题,包裹《》
src/lib/script/script-normalizer.ts:425
↓ 1 callersFunctiononResize
()
src/hooks/use-mobile.ts:18
↓ 1 callersFunctiononShotsGenerated
(newShots: import("@/types/script").Shot[], sceneIndex: number)
src/components/panels/script/index.tsx:1497
↓ 1 callersFunctionparseAlternativeSceneFormat
* 解析备用场景格式(当标准格式不匹配时)
src/lib/script/episode-parser.ts:497
↓ 1 callersFunctionparseBindingValue
* 解析 platform:model 格式
src/lib/ai/feature-router.ts:65
↓ 1 callersFunctionparseCharacterBios
(bios: string)
src/lib/script/episode-parser.ts:721
↓ 1 callersFunctionparseCompactBioFormat
* 紧凑格式解析:角色名:年龄:XX身份:...关键行为:... * 自动剥离段落标记(一、核心主角 等)提取真实角色名
src/lib/script/episode-parser.ts:740
↓ 1 callersFunctionparseEpisodes
(text: string)
src/lib/script/episode-parser.ts:305
↓ 1 callersFunctionparseFullScript
(fullText: string)
src/lib/script/episode-parser.ts:49
↓ 1 callersFunctionparseModelLimitsFromError
(errorText: string)
src/lib/ai/model-registry.ts:178
↓ 1 callersFunctionparseScript
( rawScript: string, options: ParseOptions )
src/lib/script/script-parser.ts:470
↓ 1 callersFunctionparseStageJSON
(raw: string)
src/lib/script/shot-calibration-stages.ts:126
↓ 1 callersFunctionparseStandardBioFormat
* 标准格式解析(原逻辑):角色名:描述 或 角色名(年龄):描述
src/lib/script/episode-parser.ts:794
↓ 1 callersFunctionparseTimeCode
(value: string, format: TimeCode = "HH:MM:SS:FF", fps: number = 30)
src/lib/time.ts:25
↓ 1 callersFunctionpathsConflict
(source: string, dest: string)
electron/main.ts:280
↓ 1 callersFunctionpollForVariationImage
* Poll async task for variation image completion.
src/components/panels/characters/wardrobe-modal.tsx:811
↓ 1 callersFunctionpollTaskUntilComplete
( taskId: string, apiKey: string, baseUrl: string, onProgress?: (progress: number, status: string)
src/lib/ai/runninghub-client.ts:183
↓ 1 callersFunctionpollVideoTaskCompletion
* Poll video task status until completion * Uses the same unified /v1/tasks/ endpoint
src/lib/storyboard/storyboard-service.ts:636
↓ 1 callersFunctionpopulateSeriesMetaFromImport
( background: ProjectBackground, scriptData: ScriptData, aiAnalysis?: ScriptStructureAnalysis | null,
src/lib/script/series-meta-sync.ts:30
↓ 1 callersFunctionprepareCharacterLibrary
()
scripts/prepare-demo-data.cjs:191
↓ 1 callersFunctionprepareCharacters
()
scripts/prepare-demo-data.cjs:112
↓ 1 callersFunctionprepareDirector
()
scripts/prepare-demo-data.cjs:86
↓ 1 callersFunctionprepareMedia
()
scripts/prepare-demo-data.cjs:149
↓ 1 callersFunctionprepareMediaFiles
()
scripts/prepare-demo-data.cjs:229
↓ 1 callersFunctionprepareProjectStore
()
scripts/prepare-demo-data.cjs:58
↓ 1 callersFunctionprepareScenes
()
scripts/prepare-demo-data.cjs:140
↓ 1 callersFunctionprepareSclass
()
scripts/prepare-demo-data.cjs:166
↓ 1 callersFunctionprepareScript
()
scripts/prepare-demo-data.cjs:76
↓ 1 callersFunctionprepareShared
()
scripts/prepare-demo-data.cjs:217
↓ 1 callersFunctionprocessMediaFiles
( files: FileList | File[], onProgress?: (progress: number) => void )
src/lib/media-processing.ts:15
↓ 1 callersFunctionprocessScene
(taskIndex: number)
src/lib/script/full-script-service.ts:515
↓ 1 callersFunctionprocessScene
(sceneIndex: number)
src/lib/script/script-parser.ts:622
↓ 1 callersFunctionproviderSupportsCapability
( provider: { platform: string; capabilities?: ModelCapability[] }, required?: ModelCapability )
src/components/api-manager/FeatureBindingPanel.tsx:174
↓ 1 callersFunctionqueryTaskStatus
( taskId: string, apiKey: string, baseUrl: string )
src/lib/ai/runninghub-client.ts:131
↓ 1 callersFunctionreadFileAsDataUrl
(file: File)
src/components/panels/sclass/group-ref-manager.tsx:593
↓ 1 callersFunctionrecalcGroupDuration
( group: ShotGroup, scenes: SplitScene[], defaultDuration = 5, )
src/components/panels/sclass/auto-grouping.ts:156
↓ 1 callersFunctionrecoverFromLegacy
()
src/lib/storage-migration.ts:254
↓ 1 callersFunctionreducer
(state: State, action: Action)
src/hooks/use-toast.ts:77
↓ 1 callersFunctionregenerateAllEpisodeShots
( projectId: string, options: GenerateShotsOptions, onProgress?: (current: number, total: number, mes
src/lib/script/full-script-service.ts:978
↓ 1 callersFunctionregisterCustomStyleLookup
(fn: (id: string) => StylePreset | undefined)
src/lib/constants/visual-styles.ts:569
↓ 1 callersFunctionrelease
()
src/lib/utils/concurrency.ts:49
↓ 1 callersFunctionremoveCharacter
(characterId: string)
src/components/panels/director/screenplay-input.tsx:322
↓ 1 callersFunctionremoveImage
(index: number)
src/components/panels/characters/generation-panel.tsx:290
← previousnext →701–800 of 1,435, ranked by callers