MCPcopy Index your code

hub / github.com/11cafe/jaaz / functions

Functions838 in github.com/11cafe/jaaz

↓ 110 callersFunctioncn
(...inputs: ClassValue[])
react/src/lib/utils.ts:4
↓ 48 callersFunctionsendLog
* Send log message to main window or parent process * @param {string} message - Log message
electron/comfyUIInstaller.js:218
↓ 18 callersFunctionsend_to_websocket
(session_id: str, event: Dict[str, Any])
server/services/websocket_service.py:25
↓ 17 callersFunctionlog_result
(test_name, success, message, details=None)
server/routers/ssl_test.py:69
↓ 16 callersMethodconnect
(self)
server/routers/comfyui_execution.py:143
↓ 16 callersMethodcreate_aiohttp
创建 aiohttp 客户端上下文管理器 Args: trust_env: 是否信任环境变量代理设置 (HTTP_PROXY, HTTPS_PROXY, etc.) **kwargs: 其他 aiohttp.ClientSession
server/utils/http_client.py:127
↓ 14 callersFunctiongenerate_image_with_provider
通用图像生成函数,支持不同的模型和提供商 Args: prompt: 图像生成提示词 aspect_ratio: 图像长宽比 model_name: 内部模型名称 (如 'gpt-image-1', 'imagen-4')
server/tools/utils/image_generation_core.py:33
↓ 14 callersFunctionuseConfigs
()
react/src/contexts/configs.tsx:99
↓ 13 callersFunctionisInstallationCancelled
* Check if installation is cancelled * @returns {boolean} - True if cancelled
electron/comfyUIInstaller.js:78
↓ 13 callersFunctionsendProgress
* Send progress update to main window or parent process * @param {number} percent - Progress percentage * @param {string} status - Status message
electron/comfyUIInstaller.js:188
↓ 12 callersMethodcreate
创建异步客户端上下文管理器
server/utils/http_client.py:88
↓ 12 callersFunctiongenerate_image_id
Generate unique image ID
server/tools/utils/image_utils.py:13
↓ 12 callersFunctionget_image_info_and_save
Download image from URL or decode base64, convert to PNG and save with metadata Args: url: Image URL or base64 string file_p
server/tools/utils/image_utils.py:18
↓ 11 callersMethodwrite
(chunk)
electron/test/comfyUIInstaller/download-functions.test.js:24
↓ 10 callersMethodkill
(signal)
electron/test/comfyUIInstaller/process-management.test.js:43
↓ 10 callersFunctionuseCanvas
()
react/src/contexts/canvas.tsx:16
↓ 9 callersFunctiongetFileServiceUrl
(filePath: string)
react/src/api/settings.ts:177
↓ 9 callersFunctionprocess_input_image
Process input image and convert to base64 format Args: input_image: Image file path Returns: Base64 encoded image with
server/tools/utils/image_utils.py:137
↓ 7 callersFunctionuseAuth
()
react/src/contexts/AuthContext.tsx:51
↓ 6 callersFunctionauthenticatedFetch
( url: string, options: RequestInit = {} )
react/src/api/auth.ts:199
↓ 6 callersMethodclose
()
electron/test/comfyUIInstaller/download-functions.test.js:35
↓ 6 callersFunctionformatFileSize
(bytes: number)
react/src/components/material/FilePreviewModal.tsx:69
↓ 6 callersMethodget_canvas_data
Get canvas data
server/services/db_service.py:139
↓ 6 callersMethodinitialize
(self)
server/services/tool_service.py:220
↓ 6 callersFunctionuseTheme
()
react/src/hooks/use-theme.ts:4
↓ 5 callersMethod_build_headers
构建请求头
server/services/jaaz_service.py:35
↓ 5 callersFunctionbroadcast_session_update
(session_id: str, canvas_id: str | None, event: Dict[str, Any])
server/services/websocket_service.py:7
↓ 5 callersFunctioncopyPasteContent
(page, content)
electron/ipcHandlers.js:628
↓ 5 callersFunctionformatDate
(timestamp: number)
react/src/components/material/FilePreviewModal.tsx:77
↓ 5 callersFunctionget_file_type
根据文件扩展名判断文件类型 Args: file_path: 文件路径 Returns: 文件类型: 'image', 'video', 'audio', 'document', 'archive', 'code', 'f
server/routers/workspace.py:318
↓ 5 callersMethodget_raw_settings
获取原始设置(内部使用,不掩码敏感信息) 该方法返回完整的设置配置,包括敏感信息,主要用于: 1. 系统内部逻辑使用 2. 代理配置等需要完整信息的场景 3. 设置的验证和处理 Returns:
server/services/settings_service.py:123
↓ 5 callersFunctionprocess_video_result
Complete video processing pipeline: save, update canvas, notify Args: video_url: URL of the generated video session_id: Sess
server/tools/video_generation/video_canvas_utils.py:158
↓ 5 callersFunctionsend_video_start_notification
Send WebSocket notification about video generation start
server/tools/video_generation/video_canvas_utils.py:116
↓ 4 callersMethod_get_client_config
获取 httpx 客户端配置
server/utils/http_client.py:50
↓ 4 callersFunctioncreateVideoElement
(finalWidth: number, finalHeight: number)
react/src/components/canvas/CanvasExcali.tsx:207
↓ 4 callersMethodcreate_message
Save a chat message
server/services/db_service.py:76
↓ 4 callersFunctionexecute
( workflow: dict, base_url, wait=True, verbose=False, local_paths=False, timeout=300,
server/routers/comfyui_execution.py:29
↓ 4 callersMethodget_config
(self)
server/services/config_service.py:147
↓ 4 callersMethodget_node_title
(self, node_id)
server/routers/comfyui_execution.py:206
↓ 4 callersFunctionisValidUrl
(url: string)
react/src/components/settings/ComfyuiSetting.tsx:42
↓ 4 callersMethodnotifyListeners
()
react/src/lib/notifications.ts:125
↓ 4 callersMethodpoll_for_task_completion
等待任务完成并返回结果 Args: task_id: 任务 ID max_attempts: 最大轮询次数 interval: 轮询间隔(秒) Returns:
server/services/jaaz_service.py:144
↓ 4 callersMethodsave_canvas_data
Save canvas data
server/services/db_service.py:129
↓ 4 callersMethodupdate_settings
更新设置配置 该方法会: 1. 读取现有设置 2. 与新数据进行合并(深度合并字典类型) 3. 保存更新后的设置到文件 4. 更新全局设置缓存 Args: d
server/services/settings_service.py:246
↓ 4 callersFunctionuseSidebar
()
react/src/components/ui/sidebar.tsx:45
↓ 3 callersMethod_build_headers
(self)
server/tools/image_providers/jaaz_provider.py:57
↓ 3 callersMethod_get_jaaz_url
Get the correct jaaz URL
server/services/config_service.py:101
↓ 3 callersMethod_get_ssl_context
获取缓存的 SSL 上下文
server/utils/http_client.py:39
↓ 3 callersFunctiongenerate_file_id
Generate unique file ID
server/tools/utils/image_canvas_utils.py:18
↓ 3 callersMethodgenerate_video
生成视频的完整流程 Args: prompt: 视频生成提示词 model: 视频生成模型 resolution: 视频分辨率 duration: 视频时长(秒)
server/services/jaaz_service.py:239
↓ 3 callersFunctiongenerate_video_with_provider
Universal video generation function supporting different models and providers Args: prompt: Video generation prompt resoluti
server/tools/video_generation/video_generation_core.py:19
↓ 3 callersFunctiongetConfig
()
react/src/api/config.ts:8
↓ 3 callersFunctiongetCurrentLanguage
()
react/src/hooks/use-language.ts:10
↓ 3 callersFunctiongetDB
()
react/src/App.tsx:30
↓ 3 callersFunctiongetProviderDisplayName
(provider: string)
react/src/components/chat/ModelSelectorV2.tsx:166
↓ 3 callersFunctionhandleChange
(field: keyof LLMConfig, value: string | number)
react/src/components/settings/CommonSetting.tsx:40
↓ 3 callersFunctionhandleImagePositioning
(id: string)
react/src/components/chat/Markdown.tsx:84
↓ 3 callersFunctionhandleZoomChange
(zoom: number)
react/src/components/canvas/menu/CanvasViewMenu.tsx:21
↓ 3 callersFunctionlaunchBrowser
()
electron/ipcHandlers.js:364
↓ 3 callersFunctionloadWorkflows
()
react/src/components/settings/ComfyuiWorkflowSetting.tsx:65
↓ 3 callersFunctiononChange
()
react/src/hooks/use-mobile.ts:10
↓ 3 callersFunctionreadUint32BE
* 从ArrayBuffer中读取4字节big-endian整数
react/src/utils/pngMetadata.ts:28
↓ 3 callersFunctionrefreshAuth
()
react/src/contexts/AuthContext.tsx:20
↓ 3 callersFunctionsave_image_to_canvas
Save image to canvas with proper locking and positioning
server/tools/utils/image_canvas_utils.py:94
↓ 3 callersMethodsetSessionsProxy
* 设置 Electron session 代理 * @param {Object} config 代理配置对象
electron/settingsService.js:91
↓ 3 callersFunctionshowKnowledgeDetail
(knowledge: KnowledgeBase)
react/src/components/knowledge/Knowledge.tsx:168
↓ 3 callersFunctionupdateConfig
(config: { [key: string]: LLMConfig })
react/src/api/config.ts:13
↓ 3 callersMethodupdate_overall_progress
(self)
server/routers/comfyui_execution.py:201
↓ 3 callersFunctionuseRefreshModels
()
react/src/contexts/configs.tsx:107
↓ 2 callersMethod_build_url
Build request URL
server/tools/image_providers/jaaz_provider.py:32
↓ 2 callersMethod_create_langgraph_agent
根据配置创建单个 LangGraph 智能体 Args: model: 语言模型实例 config: 智能体配置字典 Returns: Any: 创建好的 LangGraph 智能体实例
server/services/langgraph_service/agent_manager.py:63
↓ 2 callersMethod_get_aiohttp_config
获取 aiohttp 客户端配置
server/utils/http_client.py:66
↓ 2 callersMethod_make_request
Send HTTP request and handle response Returns: JaazImagesResponse: Jaaz compatible image response object
server/tools/image_providers/jaaz_provider.py:189
↓ 2 callersMethod_process_cloud_task_result
Process cloud task result and download image Args: task: Task data from cloud metadata: Optional metadata
server/tools/image_providers/jaaz_provider.py:161
↓ 2 callersMethod_process_response
Process ImagesResponse and save image Args: res: OpenAI ImagesResponse object error_prefix: Error message pr
server/tools/image_providers/jaaz_provider.py:213
↓ 2 callersMethod_register_required_tools
注册必须的工具
server/services/tool_service.py:201
↓ 2 callersMethod_wait_for_task_completion
Wait for cloud task to complete Args: prompt: The generation prompt model: The model used max_wa
server/tools/image_providers/jaaz_provider.py:105
↓ 2 callersMethodaddNotification
( notification: Omit<Notification, 'id' | 'timestamp' | 'read'> )
react/src/lib/notifications.ts:52
↓ 2 callersFunctionadd_stream_task
Add a stream task for the given session_id. Args: session_id (str): Unique identifier for the session. task: The task object
server/services/stream_service.py:8
↓ 2 callersMethodapplyProxySettings
* 应用代理设置 * @returns {Object} 代理环境变量对象
electron/settingsService.js:215
↓ 2 callersFunctionbrowseFolderApi
(path: string = '')
react/src/api/settings.ts:132
↓ 2 callersMethodcancel_confirmation
取消工具调用
server/services/tool_confirmation_manager.py:63
↓ 2 callersFunctionclearJaazApiKey
()
react/src/api/config.ts:43
↓ 2 callersFunctioncompressLargeImage
* Compress large image (>2MB) to ~1MB
react/src/utils/imageUtils.ts:28
↓ 2 callersMethodconnect
(serverUrl?: string)
react/src/lib/socket.ts:23
↓ 2 callersMethodcreate_chat_session
Save a new chat session
server/services/db_service.py:67
↓ 2 callersMethodcreate_default_settings
创建默认设置文件 当设置文件不存在时,根据 DEFAULT_SETTINGS 模板创建新的配置文件。 会自动创建必要的目录结构。 Raises: Exception: 当文件创建失败时抛出异常
server/services/settings_service.py:226
↓ 2 callersFunctioncreate_jaaz_response
基于云端服务的图像生成响应函数 实现和 magic_agent 相同的功能
server/services/OpenAIAgents_service/jaaz_magic_agent.py:14
↓ 2 callersMethodcreate_sync
创建同步客户端上下文管理器
server/utils/http_client.py:101
↓ 2 callersMethodcreate_sync_client
直接创建同步客户端(需要手动关闭)
server/utils/http_client.py:119
↓ 2 callersFunctiondataURLToFile
(dataURL: string, filename: string)
react/src/lib/utils.ts:8
↓ 2 callersMethoddisconnect
()
react/src/lib/socket.ts:151
↓ 2 callersFunctiondownloadImage
(imageUrl: string)
react/src/components/canvas/CanvasExport.tsx:14
↓ 2 callersMethodexists_config
(self)
server/services/config_service.py:170
↓ 2 callersFunctionfetchKnowledgeList
(params: KnowledgeListParams = {})
react/src/components/knowledge/Knowledge.tsx:71
↓ 2 callersFunctionfindComfyUIMainDir
* Find ComfyUI main directory (may be in subdirectory after extraction) * @param {string} comfyUIDir - ComfyUI installation directory * @returns {st
electron/comfyUIManager.js:67
↓ 2 callersFunctionfindRunScript
* Find run script * @param {string} comfyUIDir - ComfyUI directory * @returns {string|null} - Script path or null if not found
electron/comfyUIManager.js:85
↓ 2 callersFunctionfind_next_best_element_position
Calculates the next best position for a new element on the canvas. This final version uses a robust row detection algorithm to handle complex
server/utils/canvas.py:4
↓ 2 callersFunctionformatTime
(time: number)
react/src/components/ui/video-player.tsx:146
↓ 2 callersMethodformat_image_path
(self, img)
server/routers/comfyui_execution.py:226
next →1–100 of 838, ranked by callers