Compare commits

..
Author SHA1 Message Date
KarrixLee 4ee7d03937 refactor: remove unnecessary code 2025-09-10 14:53:07 +08:00
KarrixLee fdf1f08d8d fix: versioning display 2025-09-10 14:37:46 +08:00
KarrixLee 94a5f52b3f add: workflow version control 2025-09-09 23:28:37 +08:00
KarrixLee f91680d435 tweak again 2025-09-09 21:20:14 +08:00
KarrixLee 5e88e7e406 fix native mode 2025-09-09 21:13:26 +08:00
KarrixLee 7421b2ce9e add: real logic to upload model 2025-09-09 17:33:24 +08:00
KarrixLee eaf55eb974 test 2025-09-09 16:05:11 +08:00
KarrixLee 4ef8e7e12b add: model display 2025-09-09 13:36:38 +08:00
KarrixLee 142458994e tweak 2025-09-09 12:45:47 +08:00
KarrixLee 5ac4aa98a3 init 2025-09-09 12:41:28 +08:00
4 changed files with 30 additions and 2 deletions
+1 -1
View File
@@ -1,7 +1,7 @@
[project]
name = "comfyui-deploy"
description = "Open source comfyui deployment platform, a vercel for generative workflow infra."
version = "2.3.6"
version = "2.3.4"
license = { file = "LICENSE" }
dependencies = ["aiofiles", "pydantic", "opencv-python", "imageio-ffmpeg", "tabulate", "brotli"]
+14
View File
@@ -10,6 +10,7 @@ import {
} from "./workflow-list.js";
import { initializeMachineManager } from "./machine-manager.js";
import { initializeModelManager } from "./model-manager.js";
import { fetchSnapshotSimple } from "./snapshot-utils.js";
const styles = `
.comfydeploy-menu-item {
@@ -1354,6 +1355,19 @@ async function deployWorkflow() {
if (endpoint.endsWith("/")) {
endpoint = endpoint.slice(0, -1);
}
loadingDialog.showLoading("Generating snapshot");
const snapshot = await fetchSnapshotSimple();
console.log(snapshot);
loadingDialog.close();
if (!snapshot) {
showError(
"Error when deploying",
"Unable to generate snapshot, please install ComfyUI Manager"
);
return;
}
const title = deploy.querySelector("#button-title");
+1 -1
View File
@@ -1,7 +1,7 @@
// Machine Manager Script
// Handles local storage machine ID functionality
import { fetchSnapshot } from "./snapshot-utils.js";
import { fetchSnapshot, fetchSnapshotSimple } from "./snapshot-utils.js";
const MACHINE_STORAGE_KEY = "comfy_deploy_machine_id";
+14
View File
@@ -66,3 +66,17 @@ export async function fetchSnapshot(getDataFn = null) {
throw error;
}
}
/**
* Simple snapshot fetch without ComfyUI version fallback
* Use this when you don't need the ComfyUI version fallback logic
*
* @returns {Promise<Object>} - The snapshot data as-is
*/
export async function fetchSnapshotSimple() {
const response = await fetch("/snapshot/get_current");
if (!response.ok) {
throw new Error(`Snapshot fetch failed: ${response.status}`);
}
return response.json();
}