Code
Hub
Workspaces
Following
Trending
Connect
MCP
copy
Create free account
hub
/
github.com/CookSleep/gpt_image_playground
/ functions
Functions
1,073 in github.com/CookSleep/gpt_image_playground
⨍
Functions
1,073
◇
Types & classes
79
↓ 6 callers
Function
createImagePixels
(width: number, height: number, rgba: [number, number, number, number])
src/lib/transparentImage.test.ts:105
↓ 6 callers
Function
downloadImageEntriesAsZip
(entries: DownloadImageZipEntry[], zipFileNameBase = 'images')
src/lib/downloadImages.ts:53
↓ 6 callers
Function
ensureStreamingAgentTask
( toolCallId: string, taskPrompt = '', inputImageIds = round.inputImageIds ?? [], opti
src/store.ts:3827
↓ 6 callers
Function
getAllTasks
()
src/lib/db.ts:57
↓ 6 callers
Function
getApiProfileDedupKey
(profile: ApiProfile)
src/lib/apiProfiles.ts:720
↓ 6 callers
Function
getAtImageQuery
(prompt: string, cursor: number, imageSource: Pick<InputImage[], 'length'>)
src/lib/promptImageMentions.ts:49
↓ 6 callers
Function
getContentEditableSelection
(el: HTMLElement)
src/components/InputBar.tsx:146
↓ 6 callers
Function
getDataUrlEncodedByteSize
(dataUrl: string)
src/lib/imageApiShared.ts:56
↓ 6 callers
Function
getImageMentionLabel
(index: number)
src/lib/promptImageMentions.ts:13
↓ 6 callers
Function
getPagePoint
(clientX: number, clientY: number)
src/components/TaskGrid.tsx:54
↓ 6 callers
Function
getPromptIndexFromVisibleIndex
(prompt: string, visibleIndex: number)
src/lib/promptImageMentions.ts:29
↓ 6 callers
Function
isAgentTask
(task: TaskRecord)
src/store.ts:344
↓ 6 callers
Function
loadCustomProviderSettingsFromUrl
( configUrl: string, fetcher: FetchLike = fetch, )
src/lib/customProviderConfigUrl.ts:41
↓ 6 callers
Function
normalizeAgentConversations
(value: unknown)
src/store.ts:455
↓ 6 callers
Function
normalizeStringArray
(value: unknown, fallback: string[])
src/lib/apiProfiles.ts:134
↓ 6 callers
Function
pickActualParams
(source: unknown)
src/lib/imageApiShared.ts:177
↓ 6 callers
Function
readExportZipFileAsDataUrl
(files: Record<string, Uint8Array>, path: string)
src/lib/exportZip.ts:106
↓ 6 callers
Function
replaceAgentPromptImageReferencesForApi
( prompt: string, currentRound: AgentRound, rounds: AgentRound[], tasks: TaskRecord[], )
src/lib/agentImageReferences.ts:54
↓ 6 callers
Function
restoreAgentInputDraftState
(drafts: Record<string, AgentInputDraft>, conversationId: string | null)
src/store.ts:1106
↓ 6 callers
Function
syncHistoryState
()
src/components/MaskEditorModal.tsx:263
↓ 6 callers
Function
updateSwipeDirection
(nextDirection: -1 | 0 | 1)
src/components/TaskCard.tsx:93
↓ 6 callers
Function
validateApiProfile
(profile: ApiProfile)
src/lib/apiProfiles.ts:681
↓ 5 callers
Function
addTaskReferencedImageIds
(target: Set<string>, task: TaskRecord)
src/store.ts:2838
↓ 5 callers
Function
assertImageInputPayloadSize
(bytes: number)
src/lib/imageApiShared.ts:79
↓ 5 callers
Function
clearImageHintTimer
()
src/components/InputBar.tsx:1031
↓ 5 callers
Function
collectAgentRoundOutputImageSlots
(round: AgentRound, tasks: TaskRecord[])
src/lib/agentImageReferences.ts:23
↓ 5 callers
Function
completeAgentImageTask
(image: AgentApiResultImage, rawResponsePayload?: string)
src/store.ts:3876
↓ 5 callers
Function
countSuccessfulOutputImages
(tasks: TaskRecord[])
src/store.ts:354
↓ 5 callers
Function
deleteFavoriteCollection
(collectionId: string, deleteTasks = false)
src/store.ts:5014
↓ 5 callers
Function
deleteImage
(id: string)
src/lib/db.ts:179
↓ 5 callers
Function
deleteUnreferencedImageIds
(imageIds: Iterable<string>)
src/store.ts:2896
↓ 5 callers
Function
extractAgentReferenceIds
(text: string)
src/lib/agentImageReferences.ts:36
↓ 5 callers
Function
failAgentImageTask
(toolCallId: string, error: string, rawResponsePayload?: string)
src/store.ts:3906
↓ 5 callers
Function
finish
(params: Partial<TaskParams> | undefined)
src/store.ts:2018
↓ 5 callers
Function
firstActualParams
(paramsList: Array<Partial<TaskParams> | undefined> | undefined)
src/store.ts:1980
↓ 5 callers
Function
formatDuration
()
src/components/DetailModal.tsx:279
↓ 5 callers
Function
formatExportFileTime
(date: Date)
src/lib/exportFileName.ts:1
↓ 5 callers
Function
getAgentImageApiProfile
(settings: Partial<AppSettings> | unknown)
src/lib/apiProfiles.ts:578
↓ 5 callers
Function
getAgentTextApiProfile
(settings: Partial<AppSettings> | unknown)
src/lib/apiProfiles.ts:572
↓ 5 callers
Function
getBackgroundConfidence
(data: Uint8ClampedArray, index: number, keyRgb: Rgb)
src/lib/transparentImage.ts:324
↓ 5 callers
Function
getCustomProviderDedupKey
(provider: CustomProviderDefinition)
src/lib/apiProfiles.ts:760
↓ 5 callers
Function
getCustomProviderDefinition
(settings: Partial<AppSettings> | unknown, provider: ApiProvider)
src/lib/apiProfiles.ts:584
↓ 5 callers
Function
getImageZipEntries
(imageIds: string[], fileNameBase = 'image')
src/lib/downloadImages.ts:98
↓ 5 callers
Function
getMentionTagTextLength
(el: Element)
src/components/InputBar.tsx:22
↓ 5 callers
Function
getMode
(url, body)
scripts/mock-image-api.mjs:98
↓ 5 callers
Function
getParamDisplay
(task: TaskRecord, paramKey: ParamKey, actualParams = task.actualParams)
src/lib/paramDisplay.tsx:66
↓ 5 callers
Function
getPromptMentionParts
(prompt: string, inputImages: InputImage[])
src/lib/promptImageMentions.ts:115
↓ 5 callers
Function
importData
(file: File, options: ImportOptions = { importConfig: true, importTasks: true })
src/store.ts:5471
↓ 5 callers
Function
isDataUrl
(value: unknown)
src/lib/imageApiShared.ts:44
↓ 5 callers
Function
isImportableConfigUrl
(value: string)
src/lib/customProviderConfigUrl.ts:9
↓ 5 callers
Function
normalizeFavoriteCollectionIds
(ids: unknown)
src/store.ts:4911
↓ 5 callers
Function
normalizeFavoriteCollections
(value: unknown)
src/store.ts:590
↓ 5 callers
Function
normalizeImageSize
(size: string)
src/lib/size.ts:61
↓ 5 callers
Function
orderInputImagesForMask
(inputImages: InputImage[], targetImageId: string)
src/lib/mask.ts:11
↓ 5 callers
Function
pad
(value: number)
src/lib/exportFileName.ts:2
↓ 5 callers
Function
persistTaskStreamPartialImage
(taskId: string, dataUrl: string)
src/store.ts:2915
↓ 5 callers
Function
putImageThumbnail
(thumbnail: StoredImageThumbnail)
src/lib/db.ts:117
↓ 5 callers
Function
removeTask
(task: TaskRecord)
src/store.ts:5270
↓ 5 callers
Function
renderPreview
()
src/components/MaskEditorModal.tsx:289
↓ 5 callers
Function
saveActiveAgentInputDrafts
(state: Pick<AppState, 'appMode' | 'activeAgentConversationId' | 'agentInputDrafts' | 'prompt' | 'inputImages'
src/store.ts:1081
↓ 5 callers
Function
scheduleFalRecovery
(taskId: string, delayMs = FAL_RECOVERY_POLL_MS)
src/store.ts:1952
↓ 5 callers
Function
setContentEditableCursor
在 contentEditable 中设置光标到指定纯文本偏移量
src/components/InputBar.tsx:220
↓ 5 callers
Function
storeImageWithSize
(dataUrl: string, source: NonNullable<StoredImage['source']> = 'upload')
src/lib/db.ts:248
↓ 5 callers
Function
taskMatchesSearchQuery
(task: TaskRecord, query: string)
src/store.ts:1786
↓ 4 callers
Function
addDistanceNeighbor
( distance: Uint8Array, mask: Uint8Array, nextFrontier: number[], neighborIndex: number, currentDist
src/lib/transparentImage.ts:312
↓ 4 callers
Function
addImageFileNameBases
(bases: Map<string, string>, imageIds: string[], fileNameBase: string)
src/lib/exportZip.ts:146
↓ 4 callers
Function
appendStreamingFormatHint
(message: string)
src/lib/imageApiShared.ts:95
↓ 4 callers
Function
applySwipeOffset
(offset: number)
src/components/TaskCard.tsx:105
↓ 4 callers
Function
applySwipeOffset
(offset: number)
src/components/favorites/FavoriteCollectionOverviewCard.tsx:95
↓ 4 callers
Function
assertUsableMaskCoverage
(coverage: MaskCoverage)
src/lib/mask.ts:31
↓ 4 callers
Function
cacheThumbnail
(id: string, thumbnail: { dataUrl: string; width?: number; height?: number; thumbnailVersion?: number })
src/store.ts:176
↓ 4 callers
Function
calculateMaskWorkingSize
( width: number, height: number, maxEdge = DEFAULT_MASK_WORKING_MAX_EDGE, multiple = MASK_WORKING_DIME
src/lib/maskPreprocess.ts:26
↓ 4 callers
Function
cancelSwipeFrame
()
src/components/favorites/FavoriteCollectionOverviewCard.tsx:100
↓ 4 callers
Function
clampViewTransform
(transform: ViewTransform, viewportSize: Size)
src/lib/viewportTransform.ts:31
↓ 4 callers
Function
classifyMaskAlpha
(imageData: Pick<ImageData, 'data'>)
src/lib/mask.ts:16
↓ 4 callers
Function
clearAgentConversations
()
src/lib/db.ts:83
↓ 4 callers
Function
clearFailedTasks
(taskIds?: string[])
src/store.ts:5244
↓ 4 callers
Function
commitActiveProfilePatch
(patch: Partial<ApiProfile>)
src/components/SettingsModal.tsx:671
↓ 4 callers
Function
continueRecoveredAgentRound
(taskId: string)
src/store.ts:3427
↓ 4 callers
Function
copyAgentInputDraft
(draft: AgentInputDraft)
src/store.ts:1047
↓ 4 callers
Function
createMaskPreviewDataUrl
(imageDataUrl: string, maskDataUrl: string)
src/lib/canvasImage.ts:63
↓ 4 callers
Function
createRequestHeaders
(profile: ApiProfile)
src/lib/openaiCompatibleImageApi.ts:85
↓ 4 callers
Function
detectKeyColorFromPixels
(data: Uint8ClampedArray, width: number, height: number)
src/lib/transparentImage.ts:61
↓ 4 callers
Function
editOutputs
(task: TaskRecord)
src/store.ts:5177
↓ 4 callers
Function
enqueueNeighbor
(neighborIndex: number)
src/lib/transparentImage.ts:180
↓ 4 callers
Function
ensureDefaultFavoriteCollection
(collections: FavoriteCollection[])
src/store.ts:613
↓ 4 callers
Function
executeAgentRound
( conversationId: string, roundId: string, params: TaskParams, requestSettings: AppSettings, activeP
src/store.ts:3773
↓ 4 callers
Function
extractImages
(payload: ResponsesApiResponse, fallbackMime: string)
src/lib/agentApi.ts:457
↓ 4 callers
Function
floorToMultiple
(value: number, multiple: number)
src/lib/size.ts:16
↓ 4 callers
Function
getAgentCurrentReferenceId
(round: AgentRound, index: number)
src/lib/agentImageReferences.ts:7
↓ 4 callers
Function
getAgentProfileValidationError
(settings: AppSettings)
src/store.ts:1858
↓ 4 callers
Function
getAgentRoundChildren
(conversation: AgentConversation, parentRoundId: string | null)
src/store.ts:2674
↓ 4 callers
Function
getAllAgentConversations
()
src/lib/db.ts:75
↓ 4 callers
Function
getApiProfileConnectionKey
(profile: ApiProfile)
src/lib/apiProfiles.ts:730
↓ 4 callers
Function
getApiProviderLabel
(settings: Partial<AppSettings> | unknown, provider: ApiProvider)
src/lib/apiProfiles.ts:589
↓ 4 callers
Function
getDataUrlDecodedByteSize
(dataUrl: string)
src/lib/imageApiShared.ts:60
↓ 4 callers
Function
getDefaultModelForMode
(apiMode: AppSettings['apiMode'])
src/components/SettingsModal.tsx:404
↓ 4 callers
Function
getNumberValue
(source: Record<string, unknown>, key: string)
src/lib/agentApi.ts:250
↓ 4 callers
Function
getOutputImageLimitForSettings
(settings: AppSettings)
src/lib/paramCompatibility.ts:9
↓ 4 callers
Function
getRawErrorPayload
(err: unknown)
src/store.ts:1935
← previous
next →
101–200 of 1,073, ranked by callers