|
const IPC_CHANNELS = { |
|
LOADING_PROGRESS: "loading-progress", |
|
IS_PACKAGED: "is-packaged", |
|
RENDERER_READY: "renderer-ready", |
|
RESTART_APP: "restart-app", |
|
REINSTALL: "reinstall", |
|
LOG_MESSAGE: "log-message", |
|
OPEN_DIALOG: "open-dialog", |
|
DOWNLOAD_PROGRESS: "download-progress", |
|
START_DOWNLOAD: "start-download", |
|
PAUSE_DOWNLOAD: "pause-download", |
|
RESUME_DOWNLOAD: "resume-download", |
|
CANCEL_DOWNLOAD: "cancel-download", |
|
DELETE_MODEL: "delete-model", |
|
GET_ALL_DOWNLOADS: "get-all-downloads", |
|
GET_ELECTRON_VERSION: "get-electron-version", |
|
SEND_ERROR_TO_SENTRY: "send-error-to-sentry", |
|
GET_BASE_PATH: "get-base-path", |
|
GET_MODEL_CONFIG_PATH: "get-model-config-path", |
|
OPEN_PATH: "open-path", |
|
OPEN_LOGS_PATH: "open-logs-path", |
|
OPEN_DEV_TOOLS: "open-dev-tools", |
|
TERMINAL_WRITE: "execute-terminal-command", |
|
TERMINAL_RESIZE: "resize-terminal", |
|
TERMINAL_RESTORE: "restore-terminal", |
|
TERMINAL_ON_OUTPUT: "terminal-output", |
|
IS_FIRST_TIME_SETUP: "is-first-time-setup", |
|
GET_SYSTEM_PATHS: "get-system-paths", |
|
VALIDATE_INSTALL_PATH: "validate-install-path", |
|
VALIDATE_COMFYUI_SOURCE: "validate-comfyui-source", |
|
SHOW_DIRECTORY_PICKER: "show-directory-picker", |
|
INSTALL_COMFYUI: "install-comfyui" |
|
}; |
|
var ProgressStatus = ((ProgressStatus2) => { |
|
ProgressStatus2["INITIAL_STATE"] = "initial-state"; |
|
ProgressStatus2["PYTHON_SETUP"] = "python-setup"; |
|
ProgressStatus2["STARTING_SERVER"] = "starting-server"; |
|
ProgressStatus2["READY"] = "ready"; |
|
ProgressStatus2["ERROR"] = "error"; |
|
return ProgressStatus2; |
|
})(ProgressStatus || {}); |
|
const ProgressMessages = { |
|
[ |
|
"initial-state" |
|
|
|
]: "Loading...", |
|
[ |
|
"python-setup" |
|
|
|
]: "Setting up Python Environment...", |
|
[ |
|
"starting-server" |
|
|
|
]: "Starting ComfyUI server...", |
|
[ |
|
"ready" |
|
|
|
]: "Finishing...", |
|
[ |
|
"error" |
|
|
|
]: "Was not able to start ComfyUI. Please check the logs for more details. You can open it from the Help menu. Please report issues to: https://forum.comfy.org" |
|
}; |
|
const ELECTRON_BRIDGE_API = "electronAPI"; |
|
const SENTRY_URL_ENDPOINT = "https://942cadba58d247c9cab96f45221aa813@o4507954455314432.ingest.us.sentry.io/4508007940685824"; |
|
const MigrationItems = [ |
|
{ |
|
id: "user_files", |
|
label: "User Files", |
|
description: "Settings and user-created workflows" |
|
}, |
|
{ |
|
id: "models", |
|
label: "Models", |
|
description: "Reference model files from existing ComfyUI installations. (No copy)" |
|
} |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
]; |
|
const DEFAULT_SERVER_ARGS = { |
|
|
|
host: "127.0.0.1", |
|
|
|
port: 8e3, |
|
|
|
extraServerArgs: {} |
|
}; |
|
var DownloadStatus = ((DownloadStatus2) => { |
|
DownloadStatus2["PENDING"] = "pending"; |
|
DownloadStatus2["IN_PROGRESS"] = "in_progress"; |
|
DownloadStatus2["COMPLETED"] = "completed"; |
|
DownloadStatus2["PAUSED"] = "paused"; |
|
DownloadStatus2["ERROR"] = "error"; |
|
DownloadStatus2["CANCELLED"] = "cancelled"; |
|
return DownloadStatus2; |
|
})(DownloadStatus || {}); |
|
export { |
|
MigrationItems as M, |
|
ProgressStatus as P |
|
}; |
|
|
|
|