Code
Hub
Workspaces
Following
Trending
Connect
MCP
copy
Create free account
hub
/
github.com/MemeCalculate/moyin-creator
/ functions
Functions
1,435 in github.com/MemeCalculate/moyin-creator
⨍
Functions
1,435
◇
Types & classes
419
↓ 3 callers
Function
hasExactEndpoint
(name: string)
src/lib/freedom/freedom-api.ts:192
↓ 3 callers
Function
hasRichData
(jsonStr: string | null)
src/lib/indexed-db-storage.ts:32
↓ 3 callers
Function
isContentModerationError
(error: string | Error | unknown)
src/components/panels/director/use-video-generation.ts:45
↓ 3 callers
Function
isHttpUrl
(value: string)
electron/main.ts:504
↓ 3 callers
Function
isHttpUrl
(value: string)
src/lib/image-host.ts:49
↓ 3 callers
Function
isNanoBananaProModel
(model?: string | null)
src/components/panels/director/split-scenes.tsx:172
↓ 3 callers
Function
isValidCharacterName
* 检查是否为有效角色名(放宽过滤,让 AI 做智能校准)
src/lib/script/episode-parser.ts:891
↓ 3 callers
Function
isVeoModel
(model: string)
src/lib/freedom/veo-capability.ts:34
↓ 3 callers
Method
loadSavedSounds
()
src/lib/storage/storage-service.ts:406
↓ 3 callers
Function
migrateFlatStore
( legacyKey: string, storeName: string, projectIds: string[], config: FlatMigrationConfig, )
src/lib/storage-migration.ts:162
↓ 3 callers
Function
normalizeImageHostProvider
(provider: ImageHostProvider)
src/stores/api-config-store.ts:285
↓ 3 callers
Function
parseScenes
(episodeText: string)
src/lib/script/episode-parser.ts:362
↓ 3 callers
Function
project3D
(x: number, y: number, z: number, scale: number = 1)
src/components/angle-switch/AngleController.tsx:254
↓ 3 callers
Function
renderTagGroup
( title: string, tags: readonly { id: string; label: string; emoji: string }[] )
src/components/panels/director/emotion-tags.tsx:57
↓ 3 callers
Function
renderUploadSlot
( label: string, asset: LocalUploadAsset | null, onPick: () => void, onClear: () => void,
src/components/panels/freedom/VideoStudio.tsx:289
↓ 3 callers
Function
resolveImageApiFormat
(endpointTypes: string[] | undefined, modelName?: string)
src/lib/api-key-manager.ts:160
↓ 3 callers
Function
resolveSafeScriptCharacters
( preferredCharacters: ScriptCharacter[], options?: { existingCharacters?: ScriptCharacter[]; seri
src/lib/script/character-calibrator.ts:836
↓ 3 callers
Function
run
(command, args)
scripts/build-desktop.mjs:54
↓ 3 callers
Function
runStaggered
( tasks: (() => Promise<T>)[], maxConcurrent: number, staggerMs: number = 5000 )
src/lib/utils/concurrency.ts:27
↓ 3 callers
Function
saveVideoToLocal
( url: string, filename: string = 'video.mp4' )
src/lib/image-storage.ts:186
↓ 3 callers
Function
shouldRefreshImageViaCurrentHost
(localUrl?: string | null)
src/components/panels/director/split-scenes.tsx:126
↓ 3 callers
Function
splitMultipleCharacters
* 拆分多人组合名字,如 "张明、老周" -> ["张明", "老周"]
src/lib/script/episode-parser.ts:880
↓ 3 callers
Function
startEditing
(type: 'image' | 'video' | 'endFrame')
src/components/panels/sclass/sclass-scene-card.tsx:182
↓ 3 callers
Function
startEditing
(type: 'image' | 'video' | 'endFrame')
src/components/panels/director/split-scene-card.tsx:195
↓ 3 callers
Function
switchProject
(newProjectId: string)
src/lib/project-switcher.ts:39
↓ 3 callers
Function
syncToSeriesMeta
( meta: SeriesMeta, syncType: CalibrationSyncType, results: { characters?: ScriptCharacter[];
src/lib/script/series-meta-sync.ts:198
↓ 3 callers
Function
translateToken
( mediaType: MediaType, field: CinematographyField, presetId: string, originalToken: string, )
src/lib/generation/media-type-tokens.ts:185
↓ 3 callers
Function
writeMigrationFlag
()
src/lib/storage-migration.ts:366
↓ 2 callers
Function
addToRemoveQueue
(toastId: string)
src/hooks/use-toast.ts:61
↓ 2 callers
Function
analyzeSceneViewpoints
( scene: ScriptScene, shots: Shot[], options?: ViewpointAnalysisOptions )
src/lib/script/viewpoint-analyzer.ts:49
↓ 2 callers
Function
applyEdit
()
src/components/ui/editable-timecode.tsx:53
↓ 2 callers
Function
applyPromptLanguageToShotPrompts
* 根据用户选择的提示词语言,清理/保留分镜提示词字段,避免语言切换后残留旧字段
src/lib/script/full-script-service.ts:1280
↓ 2 callers
Function
base64ToBlob
(base64Data: string, mimeType = 'image/png')
src/lib/image-host.ts:106
↓ 2 callers
Function
buildAliasIndex
Build a reverse index: registryId/alias → registry model (O(1) lookup)
src/lib/freedom/model-registry.ts:1393
↓ 2 callers
Function
buildCinemaPrompt
( basePrompt: string, camera: string, lens: string, focalLength: number, aperture: string, )
src/lib/freedom/camera-dictionary.ts:86
↓ 2 callers
Function
buildCinematographyGuidance
(profileId: string)
src/lib/constants/cinematography-profiles.ts:436
↓ 2 callers
Function
buildDirectorManifest
* Build manifest for Director export
src/lib/script/export-service.ts:440
↓ 2 callers
Function
buildEndpoint
(baseUrl: string, path: string)
src/lib/ai/image-generator.ts:31
↓ 2 callers
Function
buildGroupPrompt
(options: BuildGroupPromptOptions)
src/components/panels/sclass/sclass-prompt-builder.ts:579
↓ 2 callers
Function
buildManifest
* Build export manifest JSON
src/lib/script/export-service.ts:144
↓ 2 callers
Function
buildPromptWithCharacters
()
src/components/panels/director/screenplay-input.tsx:351
↓ 2 callers
Function
buildReferencePriorityHint
(model: string | undefined, hasCharacterReferences: boolean)
src/components/panels/director/split-scenes.tsx:200
↓ 2 callers
Function
buildScenePrompt
( scene: Partial<Scene> & { styleId?: string }, actionDescriptions?: string[] )
src/components/panels/scenes/generation-panel.tsx:3397
↓ 2 callers
Function
buildStoryboardPrompt
(config: StoryboardPromptConfig)
src/lib/storyboard/prompt-builder.ts:32
↓ 2 callers
Function
calibrateCharacters
( rawCharacters: ScriptCharacter[], background: ProjectBackground, episodeScripts: EpisodeRawScript[]
src/lib/script/character-calibrator.ts:270
↓ 2 callers
Function
calibrateEpisodeShots
( episodeIndex: number, projectId: string, options: ShotCalibrationOptions, onProgress?: (current:
src/lib/script/full-script-service.ts:1331
↓ 2 callers
Function
calibrateEpisodeTitles
( projectId: string, _options?: CalibrationOptions, // 不再需要,保留以兼容 onProgress?: (current: number, tota
src/lib/script/full-script-service.ts:1112
↓ 2 callers
Function
calibrateScenes
( currentScenes: ScriptScene[], background: ProjectBackground, episodeScripts: EpisodeRawScript[],
src/lib/script/scene-calibrator.ts:257
↓ 2 callers
Function
calibrateShotsMultiStage
( shots: ShotInputData[], options: CalibrationOptions, globalContext: GlobalContext, onStageProgre
src/lib/script/shot-calibration-stages.ts:71
↓ 2 callers
Function
captureFrame
()
src/components/panels/director/use-video-generation.ts:1363
↓ 2 callers
Function
cleanLocationString
* 清理场景地点字符串,移除人物信息等无关内容
src/lib/script/scene-calibrator.ts:234
↓ 2 callers
Method
closeFrame
(frame: CachedFrame | null)
src/lib/video-cache.ts:41
↓ 2 callers
Function
collectFirstFrameRefs
(scenes: SplitScene[])
src/components/panels/sclass/sclass-prompt-builder.ts:281
↓ 2 callers
Function
collectOptimizedRefsFromTasks
(pageTasks: GridTask[])
src/components/panels/director/split-scenes.tsx:2384
↓ 2 callers
Function
collectRefsFromTasks
(pageTasks: GridTask[])
src/components/panels/sclass/sclass-scenes.tsx:2101
↓ 2 callers
Function
collectSceneRefs
( scenes: SplitScene[], sceneLibrary: Scene[], )
src/components/panels/sclass/sclass-prompt-builder.ts:229
↓ 2 callers
Function
convertBlobToBase64
(blob: Blob)
src/lib/ai/image-generator.ts:1029
↓ 2 callers
Function
convertToHttpUrl
( rawUrl: any, options?: { localFallback?: string | null; frameLabel?: string } )
src/components/panels/director/split-scenes.tsx:1638
↓ 2 callers
Function
convertToScriptCharacters
( calibrated: CalibratedCharacter[], originalCharacters?: ScriptCharacter[], promptLanguage: PromptLangu
src/lib/script/character-calibrator.ts:761
↓ 2 callers
Function
copyDirSync
* Recursively copy a directory. * Uses fs.cpSync which is available in Node 16.7+.
electron/main.ts:1615
↓ 2 callers
Function
createWindow
()
electron/main.ts:160
↓ 2 callers
Method
deleteMediaFile
({ projectId, id, }: { projectId: string; id: string; })
src/lib/storage/storage-service.ts:277
↓ 2 callers
Method
deleteProjectMedia
({ projectId, }: { projectId: string; })
src/lib/storage/storage-service.ts:293
↓ 2 callers
Method
deleteProjectTimeline
({ projectId, }: { projectId: string; })
src/lib/storage/storage-service.ts:343
↓ 2 callers
Function
detectAmbientSound
* 检测环境音
src/lib/script/full-script-service.ts:965
↓ 2 callers
Function
detectGenre
* 从大纲和人物小传中检测剧本类型(genre) * 通用检测,不硬编码具体类型名,而是通过关键词模式匹配
src/lib/script/episode-parser.ts:209
↓ 2 callers
Function
detectMultiStageHints
(outline: string, totalEpisodes: number)
src/lib/script/character-stage-analyzer.ts:221
↓ 2 callers
Function
detectWeather
* 从场景内容和动作描写中检测天气
src/lib/script/episode-parser.ts:542
↓ 2 callers
Function
ensureDir
(dirPath)
scripts/prepare-demo-data.cjs:28
↓ 2 callers
Function
executeBatchWithRetry
* 执行单个批次,带重试(指数退避,最多 MAX_BATCH_RETRIES 次)
src/lib/ai/batch-processor.ts:292
↓ 2 callers
Function
exportProjectToFolder
( config: ExportConfig, onProgress?: (progress: ExportProgress) => void )
src/lib/script/export-service.ts:276
↓ 2 callers
Function
extractEpisodeSummary
* 从集内容中提取摘要
src/lib/script/full-script-service.ts:1075
↓ 2 callers
Function
extractPersonality
* 从描述中提取性格特点
src/lib/script/episode-parser.ts:828
↓ 2 callers
Function
extractSpatialAssets
(scene: Scene)
src/components/panels/scenes/generation-panel.tsx:2082
↓ 2 callers
Function
extractTraits
* 从描述中提取核心特质
src/lib/script/episode-parser.ts:841
↓ 2 callers
Function
findMatchingParentScenes
* 查找匹配的场景库场景(父场景)
src/lib/scene/viewpoint-matcher.ts:189
↓ 2 callers
Function
findMatchingSceneAndViewpointQuick
(shot: Shot, scene: ScriptScene, shotIndexInScene?: number)
src/components/panels/director/context-panel.tsx:213
↓ 2 callers
Function
findSegments
(profile: Float32Array, length: number, expectedCount?: number)
src/lib/storyboard/image-splitter.ts:171
↓ 2 callers
Function
flush
()
src/components/panels/sclass/auto-grouping.ts:85
↓ 2 callers
Function
freedomRetry
* Retry an operation with exponential backoff for retryable errors. * 支持 keyManager:遇到可重试错误时先触发 key 轮换,下次重试自动使用新 key。
src/lib/freedom/freedom-api.ts:113
↓ 2 callers
Function
generateEpisodeShots
( episodeIndex: number, projectId: string, options: GenerateShotsOptions, onProgress?: (message: s
src/lib/script/full-script-service.ts:376
↓ 2 callers
Function
generateEpisodeSynopses
( projectId: string, _options?: CalibrationOptions, // 不再需要,保留以兼容 onProgress?: (current: number, tota
src/lib/script/full-script-service.ts:2261
↓ 2 callers
Function
generateFreedomImage
( params: FreedomImageParams )
src/lib/freedom/freedom-api.ts:327
↓ 2 callers
Function
generateGridAndSlice
( pageTasks: GridTask[], refs: string[] )
src/components/panels/sclass/sclass-scenes.tsx:2223
↓ 2 callers
Function
generateGridAndSlice
( pageTasks: GridTask[], refs: string[] )
src/components/panels/director/split-scenes.tsx:2531
↓ 2 callers
Function
generateImage
* Core image generation function * Uses the provider bound to the feature via service mapping
src/lib/ai/image-generator.ts:157
↓ 2 callers
Function
generatePromptFromText
* Generate prompt from text description (no API call)
src/lib/storyboard/scene-prompt-generator.ts:128
↓ 2 callers
Function
generateScenePrompts
( config: ScenePromptRequest )
src/lib/storyboard/scene-prompt-generator.ts:192
↓ 2 callers
Function
generateShotImage
( shot: Shot, config: ShotGenerationConfig, onProgress?: (progress: number) => void )
src/lib/script/shot-generator.ts:134
↓ 2 callers
Function
generateVideoThumbnail
( file: File )
src/stores/media-store.ts:151
↓ 2 callers
Function
getAllFeatureConfigs
(feature: AIFeature)
src/lib/ai/feature-router.ts:107
↓ 2 callers
Function
getBrandIcon
(brandId: string, size = 16)
src/components/api-manager/brand-icons/index.tsx:31
↓ 2 callers
Function
getBrandInfo
(brandId: string)
src/lib/brand-mapping.ts:157
↓ 2 callers
Function
getCacheDirs
()
electron/main.ts:323
↓ 2 callers
Function
getDirectorySize
(dirPath: string)
electron/main.ts:332
↓ 2 callers
Function
getEnergyProfile
( data: Uint8ClampedArray, width: number, height: number, axis: 'x' | 'y' )
src/lib/storyboard/image-splitter.ts:81
↓ 2 callers
Function
getExportStats
(shots: Shot[])
src/lib/script/export-service.ts:383
↓ 2 callers
Function
getFolderIcon
(folder: MediaFolder)
src/components/panels/media/index.tsx:80
↓ 2 callers
Function
getMediaTypeGuidance
(mediaType: MediaType)
src/lib/generation/media-type-tokens.ts:222
↓ 2 callers
Function
getModelLimits
(modelName: string)
src/lib/ai/model-registry.ts:125
← previous
next →
201–300 of 1,435, ranked by callers