Skip to content

The all-in-one local AI studio for your desktop: chat, image and video generation and a coding agent in one free, open source app. Windows and Linux. No Docker, no terminal, no cloud required.

tech(W-T2): 11 Importzyklen auf 0, mit einem Gate das nachweislich beisst

David5be70969634e
diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml
index 8f380805..1a8f17ce 100644
--- a/.github/workflows/ci.yml
+++ b/.github/workflows/ci.yml
@@ -55,6 +55,15 @@ jobs:
- name: Type check
run: npm run typecheck
+ # Audit W-T2: der Baum stand auf 11 Importzyklen, alle mit derselben
+ # Bauart — eine Kante, die es nicht geben durfte, versteckt hinter einem
+ # `await import()` mitten in einer Funktion. Sichtbar wird so etwas nur,
+ # wenn jemand misst; also misst CI. Gating ab dem ersten Tag, weil der
+ # Stand bei null anfängt und es hier folglich keine Altlast zu bezahlen
+ # gibt (anders als bei lint und clippy weiter unten).
+ - name: Import cycles
+ run: npm run cycles
+
- name: Unit tests
run: npx vitest run
diff --git a/package-lock.json b/package-lock.json
index c1657ae0..377e5a7d 100644
--- a/package-lock.json
+++ b/package-lock.json
@@ -49,6 +49,7 @@
"eslint-plugin-react-hooks": "^7.0.1",
"eslint-plugin-react-refresh": "^0.5.2",
"globals": "^17.4.0",
+ "madge": "^8.0.0",
"typescript": "~5.9.3",
"typescript-eslint": "^8.57.0",
"vite": "^8.0.1",
@@ -235,13 +236,13 @@
}
},
"node_modules/@babel/parser": {
- "version": "7.29.7",
- "resolved": "https://registry.npmjs.org/@babel/parser/-/parser-7.29.7.tgz",
- "integrity": "sha512-hnORnjP/1P/zFEndoeX+n+t1RwWRJiJpM/jO7FW32Kn9r5+sJB2JWOdYo4L6k78j15eCwY3Gm/7364B1EMwtNg==",
+ "version": "7.29.8",
+ "resolved": "https://registry.npmjs.org/@babel/parser/-/parser-7.29.8.tgz",
+ "integrity": "sha512-E8lTAYNB1KW+FH+VGJuZM1ioAx2E6oVlvQFRrf5P8ZZmsiJXYAD9vTFV7yyEURNzgh1dFqMZuO6tUwcARbqFCA==",
"dev": true,
"license": "MIT",
"dependencies": {
- "@babel/types": "^7.29.7"
+ "@babel/types": "^7.29.8"
},
"bin": {
"parser": "bin/babel-parser.js"
@@ -294,9 +295,9 @@
}
},
"node_modules/@babel/types": {
- "version": "7.29.7",
- "resolved": "https://registry.npmjs.org/@babel/types/-/types-7.29.7.tgz",
- "integrity": "sha512-4zBIxpPzowiZpusoFkyGVwakdRJUyuH5PxQ/PrqghfdFWWasvnCdPfQXHrenDai+gyLARulZjZowCOj6fjT4pA==",
+ "version": "7.29.8",
+ "resolved": "https://registry.npmjs.org/@babel/types/-/types-7.29.8.tgz",
+ "integrity": "sha512-Vj1jF3cPfxg7OAfoI7QnVKLoILlm2JF9pnVHrX8qx7AHMiYWT+NDAA7jChlNgRS4WTLc/fD1lXLmPixluj+3Gg==",
"dev": true,
"license": "MIT",
"dependencies": {
@@ -307,12 +308,36 @@
"node": ">=6.9.0"
}
},
+ "node_modules/@dependents/detective-less": {
+ "version": "5.0.3",
+ "resolved": "https://registry.npmjs.org/@dependents/detective-less/-/detective-less-5.0.3.tgz",
+ "integrity": "sha512-v6oD9Ukp+N7V4n6p5I/+mM5fIohSfkrDSGlFm5w/pYmchvbk+sMIHsLxrFJ5Lnujewj1BzWL0K84d88lwZAMQA==",
+ "dev": true,
+ "license": "MIT",
+ "dependencies": {
+ "gonzales-pe": "^4.3.0",
+ "node-source-walk": "^7.0.1"
+ },
+ "engines": {
+ "node": ">=18"
+ }
+ },
"node_modules/@dimforge/rapier3d-compat": {
"version": "0.12.0",
"resolved": "https://registry.npmjs.org/@dimforge/rapier3d-compat/-/rapier3d-compat-0.12.0.tgz",
"integrity": "sha512-uekIGetywIgopfD97oDL5PfeezkFpNhwlzlaEYNOA0N6ghdsOvh/HYjSMek5Q2O1PYvRSDFcqFVJl4r4ZBwOow==",
"license": "Apache-2.0"
},
+ "node_modules/@discoveryjs/json-ext": {
+ "version": "1.1.0",
+ "resolved": "https://registry.npmjs.org/@discoveryjs/json-ext/-/json-ext-1.1.0.tgz",
+ "integrity": "sha512-Xc3VhU02wqZ1HvHRJUwL09HkZSTvidqY5Ya0NXBSYOxAp+Ln9dcJr9fySI+CkONzP3PekQo9WdzCv0PGER/mOA==",
+ "dev": true,
+ "license": "MIT",
+ "engines": {
+ "node": ">=14.17.0"
+ }
+ },
"node_modules/@emnapi/core": {
"version": "1.10.0",
"resolved": "https://registry.npmjs.org/@emnapi/core/-/core-1.10.0.tgz",
@@ -1854,6 +1879,96 @@
"@tauri-apps/api": "^2.10.1"
}
},
+ "node_modules/@ts-graphviz/adapter": {
+ "version": "2.0.6",
+ "resolved": "https://registry.npmjs.org/@ts-graphviz/adapter/-/adapter-2.0.6.tgz",
+ "integrity": "sha512-kJ10lIMSWMJkLkkCG5gt927SnGZcBuG0s0HHswGzcHTgvtUe7yk5/3zTEr0bafzsodsOq5Gi6FhQeV775nC35Q==",
+ "dev": true,
+ "funding": [
+ {
+ "type": "github",
+ "url": "https://github.com/sponsors/ts-graphviz"
+ },
+ {
+ "type": "opencollective",
+ "url": "https://opencollective.com/ts-graphviz"
+ }
+ ],
+ "license": "MIT",
+ "dependencies": {
+ "@ts-graphviz/common": "^2.1.5"
+ },
+ "engines": {
+ "node": ">=18"
+ }
+ },
+ "node_modules/@ts-graphviz/ast": {
+ "version": "2.0.7",
+ "resolved": "https://registry.npmjs.org/@ts-graphviz/ast/-/ast-2.0.7.tgz",
+ "integrity": "sha512-e6+2qtNV99UT6DJSoLbHfkzfyqY84aIuoV8Xlb9+hZAjgpum8iVHprGeAMQ4rF6sKUAxrmY8rfF/vgAwoPc3gw==",
+ "dev": true,
+ "funding": [
+ {
+ "type": "github",
+ "url": "https://github.com/sponsors/ts-graphviz"
+ },
+ {
+ "type": "opencollective",
+ "url": "https://opencollective.com/ts-graphviz"
+ }
+ ],
+ "license": "MIT",
+ "dependencies": {
+ "@ts-graphviz/common": "^2.1.5"
+ },
+ "engines": {
+ "node": ">=18"
+ }
+ },
+ "node_modules/@ts-graphviz/common": {
+ "version": "2.1.5",
+ "resolved": "https://registry.npmjs.org/@ts-graphviz/common/-/common-2.1.5.tgz",
+ "integrity": "sha512-S6/9+T6x8j6cr/gNhp+U2olwo1n0jKj/682QVqsh7yXWV6ednHYqxFw0ZsY3LyzT0N8jaZ6jQY9YD99le3cmvg==",
+ "dev": true,
+ "funding": [
+ {
+ "type": "github",
+ "url": "https://github.com/sponsors/ts-graphviz"
+ },
+ {
+ "type": "opencollective",
+ "url": "https://opencollective.com/ts-graphviz"
+ }
+ ],
+ "license": "MIT",
+ "engines": {
+ "node": ">=18"
+ }
+ },
+ "node_modules/@ts-graphviz/core": {
+ "version": "2.0.7",
+ "resolved": "https://registry.npmjs.org/@ts-graphviz/core/-/core-2.0.7.tgz",
+ "integrity": "sha512-w071DSzP94YfN6XiWhOxnLpYT3uqtxJBDYdh6Jdjzt+Ce6DNspJsPQgpC7rbts/B8tEkq0LHoYuIF/O5Jh5rPg==",
+ "dev": true,
+ "funding": [
+ {
+ "type": "github",
+ "url": "https://github.com/sponsors/ts-graphviz"
+ },
+ {
+ "type": "opencollective",
+ "url": "https://opencollective.com/ts-graphviz"
+ }
+ ],
+ "license": "MIT",
+ "dependencies": {
+ "@ts-graphviz/ast": "^2.0.7",
+ "@ts-graphviz/common": "^2.1.5"
+ },
+ "engines": {
+ "node": ">=18"
+ }
+ },
"node_modules/@tweenjs/tween.js": {
"version": "23.1.3",
"resolved": "https://registry.npmjs.org/@tweenjs/tween.js/-/tween.js-23.1.3.tgz",
@@ -2511,6 +2626,94 @@
"url": "https://opencollective.com/vitest"
}
},
+ "node_modules/@vue/compiler-core": {
+ "version": "3.5.42",
+ "resolved": "https://registry.npmjs.org/@vue/compiler-core/-/compiler-core-3.5.42.tgz",
+ "integrity": "sha512-2Ye1ilMtKXxl8qZUrQ5j0CdgenFp/HFQmta6rfRyfEsTG69L6Wk+tWuNoHYHMx9E8tF2Slvdg1FuwDvAXdy1LQ==",
+ "dev": true,
+ "license": "MIT",
+ "dependencies": {
+ "@babel/parser": "^7.29.8",
+ "@vue/shared": "3.5.42",
+ "entities": "^7.0.1",
+ "estree-walker": "^2.0.2",
+ "source-map-js": "^1.2.1"
+ }
+ },
+ "node_modules/@vue/compiler-core/node_modules/entities": {
+ "version": "7.0.1",
+ "resolved": "https://registry.npmjs.org/entities/-/entities-7.0.1.tgz",
+ "integrity": "sha512-TWrgLOFUQTH994YUyl1yT4uyavY5nNB5muff+RtWaqNVCAK408b5ZnnbNAUEWLTCpum9w6arT70i1XdQ4UeOPA==",
+ "dev": true,
+ "license": "BSD-2-Clause",
+ "engines": {
+ "node": ">=0.12"
+ },
+ "funding": {
+ "url": "https://github.com/fb55/entities?sponsor=1"
+ }
+ },
+ "node_modules/@vue/compiler-core/node_modules/estree-walker": {
+ "version": "2.0.2",
+ "resolved": "https://registry.npmjs.org/estree-walker/-/estree-walker-2.0.2.tgz",
+ "integrity": "sha512-Rfkk/Mp/DL7JVje3u18FxFujQlTNR2q6QfMSMB7AvCBx91NGj/ba3kCfza0f6dVDbw7YlRf/nDrn7pQrCCyQ/w==",
+ "dev": true,
+ "license": "MIT"
+ },
+ "node_modules/@vue/compiler-dom": {
+ "version": "3.5.42",
+ "resolved": "https://registry.npmjs.org/@vue/compiler-dom/-/compiler-dom-3.5.42.tgz",
+ "integrity": "sha512-qbhQZEFmycr+ni/qyuccS4sucNN7VAbDfbkvNxWOX2VfgFm90MNs3/UhRNKoPMEIVn0F8gdlYjLPvqxHwHeQOA==",
+ "dev": true,
+ "license": "MIT",
+ "dependencies": {
+ "@vue/compiler-core": "3.5.42",
+ "@vue/shared": "3.5.42"
+ }
+ },
+ "node_modules/@vue/compiler-sfc": {
+ "version": "3.5.42",
+ "resolved": "https://registry.npmjs.org/@vue/compiler-sfc/-/compiler-sfc-3.5.42.tgz",
+ "integrity": "sha512-fkCAFB4okcAANGMThboWnScp/gzWjU0ZSkVnjTIiplmMDq2uq0tIB3j+xVu4rhv5rvOgBySCysudmbMd6xRRqw==",
+ "dev": true,
+ "license": "MIT",
+ "dependencies": {
+ "@babel/parser": "^7.29.8",
+ "@vue/compiler-core": "3.5.42",
+ "@vue/compiler-dom": "3.5.42",
+ "@vue/compiler-ssr": "3.5.42",
+ "@vue/shared": "3.5.42",
+ "estree-walker": "^2.0.2",
+ "magic-string": "^0.30.21",
+ "postcss": "^8.5.19",
+ "source-map-js": "^1.2.1"
+ }
+ },
+ "node_modules/@vue/compiler-sfc/node_modules/estree-walker": {
+ "version": "2.0.2",
+ "resolved": "https://registry.npmjs.org/estree-walker/-/estree-walker-2.0.2.tgz",
+ "integrity": "sha512-Rfkk/Mp/DL7JVje3u18FxFujQlTNR2q6QfMSMB7AvCBx91NGj/ba3kCfza0f6dVDbw7YlRf/nDrn7pQrCCyQ/w==",
+ "dev": true,
+ "license": "MIT"
+ },
+ "node_modules/@vue/compiler-ssr": {
+ "version": "3.5.42",
+ "resolved": "https://registry.npmjs.org/@vue/compiler-ssr/-/compiler-ssr-3.5.42.tgz",
+ "integrity": "sha512-xmLk3wLkbizPAiLyomjgFFosf2ys9b5Ghb+oh/k2tnvipNz8OFrQOiTcWCzyK7MpBp9KkyGtfvgfLUivbmuGYA==",
+ "dev": true,
+ "license": "MIT",
+ "dependencies": {
+ "@vue/compiler-dom": "3.5.42",
+ "@vue/shared": "3.5.42"
+ }
+ },
+ "node_modules/@vue/shared": {
+ "version": "3.5.42",
+ "resolved": "https://registry.npmjs.org/@vue/shared/-/shared-3.5.42.tgz",
+ "integrity": "sha512-2rPxex1jQf4jvl9MOHl6YaXCPcrNqz/FstMOEh3QWY+/OME9nQTvl9WYeCwhW7AFjaR0SnngZGlp/wkR6rkI6g==",
+ "dev": true,
+ "license": "MIT"
+ },
"node_modules/@webgpu/types": {
"version": "0.1.69",
"resolved": "https://registry.npmjs.org/@webgpu/types/-/types-0.1.69.tgz",
@@ -2566,6 +2769,16 @@
"url": "https://github.com/sponsors/epoberezkin"
}
},
+ "node_modules/ansi-regex": {
+ "version": "5.0.1",
+ "resolved": "https://registry.npmjs.org/ansi-regex/-/ansi-regex-5.0.1.tgz",
+ "integrity": "sha512-quJQXlTSUGL2LH9SUXo8VwsY4soanhgo6LNSm84E1LBcE8s3O0wpdiRzyR9z/ZZJMlMWv37qOOb9pdJlMUEKFQ==",
+ "dev": true,
+ "license": "MIT",
+ "engines": {
+ "node": ">=8"
+ }
+ },
"node_modules/ansi-styles": {
"version": "4.3.0",
"resolved": "https://registry.npmjs.org/ansi-styles/-/ansi-styles-4.3.0.tgz",
@@ -2582,6 +2795,20 @@
"url": "https://github.com/chalk/ansi-styles?sponsor=1"
}
},
+ "node_modules/any-promise": {
+ "version": "1.3.0",
+ "resolved": "https://registry.npmjs.org/any-promise/-/any-promise-1.3.0.tgz",
+ "integrity": "sha512-7UvmKalWRt1wgjL1RrGxoSJW/0QZFIegpeGvZG9kjp8vrRu55XTHbwnqq2GpXm9uLbcuhxm3IqX9OB4MZR1b2A==",
+ "dev": true,
+ "license": "MIT"
+ },
+ "node_modules/app-module-path": {
+ "version": "2.2.0",
+ "resolved": "https://registry.npmjs.org/app-module-path/-/app-module-path-2.2.0.tgz",
+ "integrity": "sha512-gkco+qxENJV+8vFcDiiFhuoSvRXb2a/QPqpSoWhVz829VNJfOTnELbBmPmNKFxf3xdNnw4DWCkzkDaavcX/1YQ==",
+ "dev": true,
+ "license": "BSD-2-Clause"
+ },
"node_modules/argparse": {
"version": "2.0.1",
"resolved": "https://registry.npmjs.org/argparse/-/argparse-2.0.1.tgz",
@@ -2599,6 +2826,16 @@
"node": ">=12"
}
},
+ "node_modules/ast-module-types": {
+ "version": "6.0.2",
+ "resolved": "https://registry.npmjs.org/ast-module-types/-/ast-module-types-6.0.2.tgz",
+ "integrity": "sha512-6KuK/7nZ/2Qh7sGuVEiwxjCxzTY2Pdb5mTo5z1e6/J8BA0tvjR7G8vQJKrQMTqwmnA3UPEyKIFX4YUS1DO1Hvw==",
+ "dev": true,
+ "license": "MIT",
+ "engines": {
+ "node": ">=18"
+ }
+ },
"node_modules/bail": {
"version": "2.0.2",
"resolved": "https://registry.npmjs.org/bail/-/bail-2.0.2.tgz",
@@ -2658,6 +2895,58 @@
"require-from-string": "^2.0.2"
}
},
+ "node_modules/bl": {
+ "version": "4.1.0",
+ "resolved": "https://registry.npmjs.org/bl/-/bl-4.1.0.tgz",
+ "integrity": "sha512-1W07cM9gS6DcLperZfFSj+bWLtaPGSOHWhPiGzXmvVJbRLdG82sH/Kn8EtW1VqWVA54AKf2h5k5BbnIbwF3h6w==",
+ "dev": true,
+ "license": "MIT",
+ "dependencies": {
+ "buffer": "^5.5.0",
+ "inherits": "^2.0.4",
+ "readable-stream": "^3.4.0"
+ }
+ },
+ "node_modules/bl/node_modules/buffer": {
+ "version": "5.7.1",
+ "resolved": "https://registry.npmjs.org/buffer/-/buffer-5.7.1.tgz",
+ "integrity": "sha512-EHcyIPBQ4BSGlvjB16k5KgAJ27CIsHY/2JBmCRReo48y9rQ3MaUzWX3KVlBa4U7MyX02HdVj0K7C3WaB3ju7FQ==",
+ "dev": true,
+ "funding": [
+ {
+ "type": "github",
+ "url": "https://github.com/sponsors/feross"
+ },
+ {
+ "type": "patreon",
+ "url": "https://www.patreon.com/feross"
+ },
+ {
+ "type": "consulting",
+ "url": "https://feross.org/support"
+ }
+ ],
+ "license": "MIT",
+ "dependencies": {
+ "base64-js": "^1.3.1",
+ "ieee754": "^1.1.13"
+ }
+ },
+ "node_modules/bl/node_modules/readable-stream": {
+ "version": "3.6.2",
+ "resolved": "https://registry.npmjs.org/readable-stream/-/readable-stream-3.6.2.tgz",
+ "integrity": "sha512-9u/sniCrY3D5WdsERHzHE4G2YCXqoG5FTHUiCC4SIbr6XcLZBY05ya9EKjYek9O5xOAwjGq+1JdGBAS7Q9ScoA==",
+ "dev": true,
+ "license": "MIT",
+ "dependencies": {
+ "inherits": "^2.0.3",
+ "string_decoder": "^1.1.1",
+ "util-deprecate": "^1.0.1"
+ },
+ "engines": {
+ "node": ">= 6"
+ }
+ },
"node_modules/bluebird": {
"version": "3.4.7",
"resolved": "https://registry.npmjs.org/bluebird/-/bluebird-3.4.7.tgz",
@@ -2854,6 +3143,42 @@
"url": "https://github.com/sponsors/wooorm"
}
},
+ "node_modules/cli-cursor": {
+ "version": "3.1.0",
+ "resolved": "https://registry.npmjs.org/cli-cursor/-/cli-cursor-3.1.0.tgz",
+ "integrity": "sha512-I/zHAwsKf9FqGoXM4WWRACob9+SNukZTd94DWF57E4toouRulbCxcUh6RKUEOQlYTHJnzkPMySvPNaaSLNfLZw==",
+ "dev": true,
+ "license": "MIT",
+ "dependencies": {
+ "restore-cursor": "^3.1.0"
+ },
+ "engines": {
+ "node": ">=8"
+ }
+ },
+ "node_modules/cli-spinners": {
+ "version": "2.9.2",
+ "resolved": "https://registry.npmjs.org/cli-spinners/-/cli-spinners-2.9.2.tgz",
+ "integrity": "sha512-ywqV+5MmyL4E7ybXgKys4DugZbX0FC6LnwrhjuykIjnK9k8OQacQ7axGKnjDXWNhns0xot3bZI5h55H8yo9cJg==",
+ "dev": true,
+ "license": "MIT",
+ "engines": {
+ "node": ">=6"
+ },
+ "funding": {
+ "url": "https://github.com/sponsors/sindresorhus"
+ }
+ },
+ "node_modules/clone": {
+ "version": "1.0.4",
+ "resolved": "https://registry.npmjs.org/clone/-/clone-1.0.4.tgz",
+ "integrity": "sha512-JQHZ2QMW6l3aH/j6xCqQThY/9OH4D/9ls34cgkUBiEeocRTU04tHfKPBsUK1PqZCUQM7GiA0IIXJSuXHI64Kbg==",
+ "dev": true,
+ "license": "MIT",
+ "engines": {
+ "node": ">=0.8"
+ }
+ },
"node_modules/color-convert": {
"version": "2.0.1",
"resolved": "https://registry.npmjs.org/color-convert/-/color-convert-2.0.1.tgz",
@@ -2893,6 +3218,13 @@
"node": ">= 12"
}
},
+ "node_modules/commondir": {
+ "version": "1.0.1",
+ "resolved": "https://registry.npmjs.org/commondir/-/commondir-1.0.1.tgz",
+ "integrity": "sha512-W9pAhw0ja1Edb5GVdIF1mjZw/ASI0AlShXM83UUGe2DVr5TdAPEA1OA8m/g8zWp9x6On7gqufY+FatDbC3MDQg==",
+ "dev": true,
+ "license": "MIT"
+ },
"node_modules/concat-map": {
"version": "0.0.1",
"resolved": "https://registry.npmjs.org/concat-map/-/concat-map-0.0.1.tgz",
@@ -2981,6 +3313,16 @@
"url": "https://github.com/sponsors/wooorm"
}
},
+ "node_modules/deep-extend": {
+ "version": "0.6.0",
+ "resolved": "https://registry.npmjs.org/deep-extend/-/deep-extend-0.6.0.tgz",
+ "integrity": "sha512-LOHxIOaPYdHlJRtCQfDIVZtfw/ufM8+rVj649RIHzcm/vGwQRXFt6OPqIFWsm2XEMrNIEtWR64sY1LEKD2vAOA==",
+ "dev": true,
+ "license": "MIT",
+ "engines": {
+ "node": ">=4.0.0"
+ }
+ },
"node_modules/deep-is": {
"version": "0.1.4",
"resolved": "https://registry.npmjs.org/deep-is/-/deep-is-0.1.4.tgz",
@@ -2988,6 +3330,49 @@
"dev": true,
"license": "MIT"
},
+ "node_modules/defaults": {
+ "version": "1.0.4",
+ "resolved": "https://registry.npmjs.org/defaults/-/defaults-1.0.4.tgz",
+ "integrity": "sha512-eFuaLoy/Rxalv2kr+lqMlUnrDWV+3j4pljOIJgLIhI058IQfWJ7vXhyEIHu+HtC738klGALYxOKDO0bQP3tg8A==",
+ "dev": true,
+ "license": "MIT",
+ "dependencies": {
+ "clone": "^1.0.2"
+ },
+ "funding": {
+ "url": "https://github.com/sponsors/sindresorhus"
+ }
+ },
+ "node_modules/dependency-tree": {
+ "version": "11.5.0",
+ "resolved": "https://registry.npmjs.org/dependency-tree/-/dependency-tree-11.5.0.tgz",
+ "integrity": "sha512-K9zBwKDZrot3RkxizugpVSdImxULAg4Ycp3+ydy2r561k96oiiw6nfsOR15fwNDQ5BF2UXe+2JFM/H5Xz4MGQg==",
+ "dev": true,
+ "license": "MIT",
+ "dependencies": {
+ "@discoveryjs/json-ext": "^1.1.0",
+ "commander": "^12.1.0",
+ "filing-cabinet": "^5.5.1",
+ "precinct": "^12.3.2",
+ "typescript": "^5.9.3"
+ },
+ "bin": {
+ "dependency-tree": "bin/cli.js"
+ },
+ "engines": {
+ "node": ">=18"
+ }
+ },
+ "node_modules/dependency-tree/node_modules/commander": {
+ "version": "12.1.0",
+ "resolved": "https://registry.npmjs.org/commander/-/commander-12.1.0.tgz",
+ "integrity": "sha512-Vw8qHK3bZM9y/P10u3Vib8o/DdkvA2OtPtZvD871QKjy74Wj1WSKFILMPRPSdUSx5RFK1arlJzEtA4PkFgnbuA==",
+ "dev": true,
+ "license": "MIT",
+ "engines": {
+ "node": ">=18"
+ }
+ },
"node_modules/dequal": {
"version": "2.0.3",
"resolved": "https://registry.npmjs.org/dequal/-/dequal-2.0.3.tgz",
@@ -3015,24 +3400,329 @@
"node": ">=8"
}
},
- "node_modules/devlop": {
- "version": "1.1.0",
- "resolved": "https://registry.npmjs.org/devlop/-/devlop-1.1.0.tgz",
- "integrity": "sha512-RWmIqhcFf1lRYBvNmr7qTNuyCt/7/ns2jbpp1+PalgE/rDQcBT0fioSMUpJ93irlUhC5hrg4cYqe6U+0ImW0rA==",
+ "node_modules/detective-amd": {
+ "version": "6.1.0",
+ "resolved": "https://registry.npmjs.org/detective-amd/-/detective-amd-6.1.0.tgz",
+ "integrity": "sha512-fmI6LGMvotqd49QaA3ZYw+q0aGp2yXmMjzIuY6fH9j9YFIXY/73yDhMwhX9cPbhWd+AH06NH1Di/LKOuCH0Ubg==",
+ "dev": true,
"license": "MIT",
"dependencies": {
- "dequal": "^2.0.0"
+ "ast-module-types": "^6.0.1",
+ "escodegen": "^2.1.0",
+ "get-amd-module-type": "^6.0.2",
+ "node-source-walk": "^7.0.1"
},
- "funding": {
- "type": "github",
- "url": "https://github.com/sponsors/wooorm"
+ "bin": {
+ "detective-amd": "bin/cli.js"
+ },
+ "engines": {
+ "node": ">=18"
}
},
- "node_modules/dingbat-to-unicode": {
- "version": "1.0.1",
- "resolved": "https://registry.npmjs.org/dingbat-to-unicode/-/dingbat-to-unicode-1.0.1.tgz",
- "integrity": "sha512-98l0sW87ZT58pU4i61wa2OHwxbiYSbuxsCBozaVnYX2iCnr3bLM3fIes1/ej7h1YdOKuKt/MLs706TVnALA65w==",
- "license": "BSD-2-Clause"
+ "node_modules/detective-cjs": {
+ "version": "6.1.1",
+ "resolved": "https://registry.npmjs.org/detective-cjs/-/detective-cjs-6.1.1.tgz",
+ "integrity": "sha512-pSh7mkCKEtLlmANqLu3KDFS3NV8Hx41jy/JF1/gAWOgU+Uo5QTkeI1tWNP4dWGo4L0E9j18Ez9EPsTleautKqA==",
+ "dev": true,
+ "license": "MIT",
+ "dependencies": {
+ "ast-module-types": "^6.0.1",
+ "node-source-walk": "^7.0.1"
+ },
+ "engines": {
+ "node": ">=18"
+ }
+ },
+ "node_modules/detective-es6": {
+ "version": "5.0.2",
+ "resolved": "https://registry.npmjs.org/detective-es6/-/detective-es6-5.0.2.tgz",
+ "integrity": "sha512-+qHHGYhjupiVs4rnIpI9nZ5B130A4AmE35ZX1w33hb46vcZ7T3jfDbvmPw0FhWtMHn5BS5HHu7ZtnZ53bMcXZA==",
+ "dev": true,
+ "license": "MIT",
+ "dependencies": {
+ "node-source-walk": "^7.0.1"
+ },
+ "engines": {
+ "node": ">=18"
+ }
+ },
+ "node_modules/detective-postcss": {
+ "version": "8.0.4",
+ "resolved": "https://registry.npmjs.org/detective-postcss/-/detective-postcss-8.0.4.tgz",
+ "integrity": "sha512-DZ7M/hWPZyr17ZUdoQ+TVXaPj70mYr4XXrAE+GeJbca44haCvZgb191L/jLJmFYewhxRJuBd4lUtNSu986TXag==",
+ "dev": true,
+ "license": "MIT",
+ "dependencies": {
+ "is-url-superb": "^4.0.0",
+ "postcss-values-parser": "^6.0.2"
+ },
+ "engines": {
+ "node": ">=18"
+ },
+ "peerDependencies": {
+ "postcss": "^8.4.47"
+ }
+ },
+ "node_modules/detective-sass": {
+ "version": "6.0.2",
+ "resolved": "https://registry.npmjs.org/detective-sass/-/detective-sass-6.0.2.tgz",
+ "integrity": "sha512-i3xpXHDKS0qI2aFW4asQ7fqlPK00ndOVZELvQapFJCaF0VxYmsNWtd0AmvXbTLMk7bfO5VdIeorhY9KfmHVoVA==",
+ "dev": true,
+ "license": "MIT",
+ "dependencies": {
+ "gonzales-pe": "^4.3.0",
+ "node-source-walk": "^7.0.1"
+ },
+ "engines": {
+ "node": ">=18"
+ }
+ },
+ "node_modules/detective-scss": {
+ "version": "5.0.2",
+ "resolved": "https://registry.npmjs.org/detective-scss/-/detective-scss-5.0.2.tgz",
+ "integrity": "sha512-9JOEMZ8pDh3ShXmftq7hoQqqJsClaGgxo1hghfCeFlmKf5TC/Twtwb0PAaK8dXwpg9Z0uCmEYSrCxO+kel2eEg==",
+ "dev": true,
+ "license": "MIT",
+ "dependencies": {
+ "gonzales-pe": "^4.3.0",
+ "node-source-walk": "^7.0.1"
+ },
+ "engines": {
+ "node": ">=18"
+ }
+ },
+ "node_modules/detective-stylus": {
+ "version": "5.0.1",
+ "resolved": "https://registry.npmjs.org/detective-stylus/-/detective-stylus-5.0.1.tgz",
+ "integrity": "sha512-Dgn0bUqdGbE3oZJ+WCKf8Dmu7VWLcmRJGc6RCzBgG31DLIyai9WAoEhYRgIHpt/BCRMrnXLbGWGPQuBUrnF0TA==",
+ "dev": true,
+ "license": "MIT",
+ "engines": {
+ "node": ">=18"
+ }
+ },
+ "node_modules/detective-typescript": {
+ "version": "14.1.2",
+ "resolved": "https://registry.npmjs.org/detective-typescript/-/detective-typescript-14.1.2.tgz",
+ "integrity": "sha512-bIeEn0eVi/JRsE1YizBR2ilnMlWRAIBJJ6kXCKNFxEEWhUcEY3R6I3KYIAy48ieURbD1hcb3Ebvl8AqeoPMSzg==",
+ "dev": true,
+ "license": "MIT",
+ "dependencies": {
+ "@typescript-eslint/typescript-estree": "^8.58.2",
+ "ast-module-types": "^6.0.1",
+ "node-source-walk": "^7.0.1"
+ },
+ "engines": {
+ "node": ">=18"
+ },
+ "peerDependencies": {
+ "typescript": "^5.4.4 || ^6.0.2"
+ }
+ },
+ "node_modules/detective-typescript/node_modules/@typescript-eslint/project-service": {
+ "version": "8.69.0",
+ "resolved": "https://registry.npmjs.org/@typescript-eslint/project-service/-/project-service-8.69.0.tgz",
+ "integrity": "sha512-yi4obFrHMmnsesWehHbkg9zMA7Jt8cXT+mKM08G999pH1yT6nqgsHx7MYm0uY1wAj8CqiBXYRJ7WAT0QdQHQXg==",
+ "dev": true,
+ "license": "MIT",
+ "dependencies": {
+ "@typescript-eslint/tsconfig-utils": "^8.69.0",
+ "@typescript-eslint/types": "^8.69.0",
+ "debug": "^4.4.3"
+ },
+ "engines": {
+ "node": "^18.18.0 || ^20.9.0 || >=21.1.0"
+ },
+ "funding": {
+ "type": "opencollective",
+ "url": "https://opencollective.com/typescript-eslint"
+ },
+ "peerDependencies": {
+ "typescript": ">=4.8.4 <6.1.0"
+ }
+ },
+ "node_modules/detective-typescript/node_modules/@typescript-eslint/tsconfig-utils": {
+ "version": "8.69.0",
+ "resolved": "https://registry.npmjs.org/@typescript-eslint/tsconfig-utils/-/tsconfig-utils-8.69.0.tgz",
+ "integrity": "sha512-xNqK7YTDZsLniQMV/4rpFR8Z5JlqeRvVjuG1YgF/mdPVH84HSD19L8CczMA0qg2RfwEV231GHH3VnToJDo4MfQ==",
+ "dev": true,
+ "license": "MIT",
+ "engines": {
+ "node": "^18.18.0 || ^20.9.0 || >=21.1.0"
+ },
+ "funding": {
+ "type": "opencollective",
+ "url": "https://opencollective.com/typescript-eslint"
+ },
+ "peerDependencies": {
+ "typescript": ">=4.8.4 <6.1.0"
+ }
+ },
+ "node_modules/detective-typescript/node_modules/@typescript-eslint/types": {
+ "version": "8.69.0",
+ "resolved": "https://registry.npmjs.org/@typescript-eslint/types/-/types-8.69.0.tgz",
+ "integrity": "sha512-K3VrubUPhlo9VDBS6QdI8YB5j7ClpqLRdefcz6PFrhnwicehBweqQ9Evhl4l+FYz0HdDmMqIiSX0aldGRYtDCA==",
+ "dev": true,
+ "license": "MIT",
+ "engines": {
+ "node": "^18.18.0 || ^20.9.0 || >=21.1.0"
+ },
+ "funding": {
+ "type": "opencollective",
+ "url": "https://opencollective.com/typescript-eslint"
+ }
+ },
+ "node_modules/detective-typescript/node_modules/@typescript-eslint/typescript-estree": {
+ "version": "8.69.0",
+ "resolved": "https://registry.npmjs.org/@typescript-eslint/typescript-estree/-/typescript-estree-8.69.0.tgz",
+ "integrity": "sha512-AdFkgqck3Vudb/kWnxlyafU/4aBhHrbQ9locP2N4psXTy5mOBg0SHJumnLvx7r6g1gV4DKvUFwV2nJZBoqOD8w==",
+ "dev": true,
+ "license": "MIT",
+ "dependencies": {
+ "@typescript-eslint/project-service": "8.69.0",
+ "@typescript-eslint/tsconfig-utils": "8.69.0",
+ "@typescript-eslint/types": "8.69.0",
+ "@typescript-eslint/visitor-keys": "8.69.0",
+ "debug": "^4.4.3",
+ "minimatch": "^10.2.2",
+ "semver": "^7.7.3",
+ "tinyglobby": "^0.2.15",
+ "ts-api-utils": "^2.5.0"
+ },
+ "engines": {
+ "node": "^18.18.0 || ^20.9.0 || >=21.1.0"
+ },
+ "funding": {
+ "type": "opencollective",
+ "url": "https://opencollective.com/typescript-eslint"
+ },
+ "peerDependencies": {
+ "typescript": ">=4.8.4 <6.1.0"
+ }
+ },
+ "node_modules/detective-typescript/node_modules/@typescript-eslint/visitor-keys": {
+ "version": "8.69.0",
+ "resolved": "https://registry.npmjs.org/@typescript-eslint/visitor-keys/-/visitor-keys-8.69.0.tgz",
+ "integrity": "sha512-+rmdgPA+EXkNgKYvHvFfhrs35utXbwaC5PGpDquSXcoXQDKUA5UjV0LmTucG/4JXkM31BTu4TilHtrN8IVBe8w==",
+ "dev": true,
+ "license": "MIT",
+ "dependencies": {
+ "@typescript-eslint/types": "8.69.0",
+ "eslint-visitor-keys": "^5.0.0"
+ },
+ "engines": {
+ "node": "^18.18.0 || ^20.9.0 || >=21.1.0"
+ },
+ "funding": {
+ "type": "opencollective",
+ "url": "https://opencollective.com/typescript-eslint"
+ }
+ },
+ "node_modules/detective-typescript/node_modules/balanced-match": {
+ "version": "4.0.4",
+ "resolved": "https://registry.npmjs.org/balanced-match/-/balanced-match-4.0.4.tgz",
+ "integrity": "sha512-BLrgEcRTwX2o6gGxGOCNyMvGSp35YofuYzw9h1IMTRmKqttAZZVU67bdb9Pr2vUHA8+j3i2tJfjO6C6+4myGTA==",
+ "dev": true,
+ "license": "MIT",
+ "engines": {
+ "node": "18 || 20 || >=22"
+ }
+ },
+ "node_modules/detective-typescript/node_modules/brace-expansion": {
+ "version": "5.0.9",
+ "resolved": "https://registry.npmjs.org/brace-expansion/-/brace-expansion-5.0.9.tgz",
+ "integrity": "sha512-ScQ4IuvIEF1TMlP7Zt+vjJ//9zlPb2SDcxWxM3bk8s6t6GGdJ7KO1dCcTidOPJKePW30LE/2cT7wCyPho9/Wxg==",
+ "dev": true,
+ "license": "MIT",
+ "dependencies": {
+ "balanced-match": "^4.0.2"
+ },
+ "engines": {
+ "node": "20 || >=22"
+ }
+ },
+ "node_modules/detective-typescript/node_modules/eslint-visitor-keys": {
+ "version": "5.0.1",
+ "resolved": "https://registry.npmjs.org/eslint-visitor-keys/-/eslint-visitor-keys-5.0.1.tgz",
+ "integrity": "sha512-tD40eHxA35h0PEIZNeIjkHoDR4YjjJp34biM0mDvplBe//mB+IHCqHDGV7pxF+7MklTvighcCPPZC7ynWyjdTA==",
+ "dev": true,
+ "license": "Apache-2.0",
+ "engines": {
+ "node": "^20.19.0 || ^22.13.0 || >=24"
+ },
+ "funding": {
+ "url": "https://opencollective.com/eslint"
+ }
+ },
+ "node_modules/detective-typescript/node_modules/minimatch": {
+ "version": "10.2.6",
+ "resolved": "https://registry.npmjs.org/minimatch/-/minimatch-10.2.6.tgz",
+ "integrity": "sha512-vpLQEs+VLCr1nU0BXS07maYoFwlDAH0gngQuuttxIwutDFEMHq2blX+8vpgxDdK3J1PwjCJiep77OitTZ4Ll1A==",
+ "dev": true,
+ "license": "BlueOak-1.0.0",
+ "dependencies": {
+ "brace-expansion": "^5.0.8"
+ },
+ "engines": {
+ "node": "18 || 20 || >=22"
+ },
+ "funding": {
+ "url": "https://github.com/sponsors/isaacs"
+ }
+ },
+ "node_modules/detective-typescript/node_modules/semver": {
+ "version": "7.8.5",
+ "resolved": "https://registry.npmjs.org/semver/-/semver-7.8.5.tgz",
+ "integrity": "sha512-Y7/KDsb8LjooZpwaqGyulO6DQlksgCncchHGk+sZIY4SBvUocMBEFH5Ur1fI4dV+Jvl0w6cjvucaIi40puRioA==",
+ "dev": true,
+ "license": "ISC",
+ "bin": {
+ "semver": "bin/semver.js"
+ },
+ "engines": {
+ "node": ">=10"
+ }
+ },
+ "node_modules/detective-vue2": {
+ "version": "2.3.0",
+ "resolved": "https://registry.npmjs.org/detective-vue2/-/detective-vue2-2.3.0.tgz",
+ "integrity": "sha512-3gwbZPqVTm9sL9XdZsgEJ7x4x99O853VVZHapQAiEkGuMJMpFPjHDrecSgfqnS5JW3FJfYXesLZGvUOibjn49g==",
+ "dev": true,
+ "license": "MIT",
+ "dependencies": {
+ "@dependents/detective-less": "^5.0.1",
+ "@vue/compiler-sfc": "^3.5.32",
+ "detective-es6": "^5.0.1",
+ "detective-sass": "^6.0.1",
+ "detective-scss": "^5.0.1",
+ "detective-stylus": "^5.0.1",
+ "detective-typescript": "^14.1.0"
+ },
+ "engines": {
+ "node": ">=18"
+ },
+ "peerDependencies": {
+ "typescript": "^5.4.4 || ^6.0.2"
+ }
+ },
+ "node_modules/devlop": {
+ "version": "1.1.0",
+ "resolved": "https://registry.npmjs.org/devlop/-/devlop-1.1.0.tgz",
+ "integrity": "sha512-RWmIqhcFf1lRYBvNmr7qTNuyCt/7/ns2jbpp1+PalgE/rDQcBT0fioSMUpJ93irlUhC5hrg4cYqe6U+0ImW0rA==",
+ "license": "MIT",
+ "dependencies": {
+ "dequal": "^2.0.0"
+ },
+ "funding": {
+ "type": "github",
+ "url": "https://github.com/sponsors/wooorm"
+ }
+ },
+ "node_modules/dingbat-to-unicode": {
+ "version": "1.0.1",
+ "resolved": "https://registry.npmjs.org/dingbat-to-unicode/-/dingbat-to-unicode-1.0.1.tgz",
+ "integrity": "sha512-98l0sW87ZT58pU4i61wa2OHwxbiYSbuxsCBozaVnYX2iCnr3bLM3fIes1/ej7h1YdOKuKt/MLs706TVnALA65w==",
+ "license": "BSD-2-Clause"
},
"node_modules/dotenv": {
"version": "17.3.1",
@@ -3069,13 +3759,13 @@
"license": "ISC"
},
"node_modules/enhanced-resolve": {
- "version": "5.20.1",
- "resolved": "https://registry.npmjs.org/enhanced-resolve/-/enhanced-resolve-5.20.1.tgz",
- "integrity": "sha512-Qohcme7V1inbAfvjItgw0EaxVX5q2rdVEZHRBrEQdRZTssLDGsL8Lwrznl8oQ/6kuTJONLaDcGjkNP247XEhcA==",
+ "version": "5.24.5",
+ "resolved": "https://registry.npmjs.org/enhanced-resolve/-/enhanced-resolve-5.24.5.tgz",
+ "integrity": "sha512-L1l8TNvomm6UVW5B253AGxQagSQr+vGwhMlrrfRS2qmhx46AMpMVJKQYLvWYbysTMY8VoicOvzHzoHMbyzB+4A==",
"license": "MIT",
"dependencies": {
"graceful-fs": "^4.2.4",
- "tapable": "^2.3.0"
+ "tapable": "^2.3.3"
},
"engines": {
"node": ">=10.13.0"
@@ -3093,6 +3783,16 @@
"url": "https://github.com/fb55/entities?sponsor=1"
}
},
+ "node_modules/es-errors": {
+ "version": "1.3.0",
+ "resolved": "https://registry.npmjs.org/es-errors/-/es-errors-1.3.0.tgz",
+ "integrity": "sha512-Zf5H2Kxt2xjTvbJvP2ZWLEICxA6j+hAmMzIlypy4xcBg1vKVnx89Wy0GbS+kf5cwCVFFzdCFh2XSCFNULS6csw==",
+ "dev": true,
+ "license": "MIT",
+ "engines": {
+ "node": ">= 0.4"
+ }
+ },
"node_modules/es-module-lexer": {
"version": "2.0.0",
"resolved": "https://registry.npmjs.org/es-module-lexer/-/es-module-lexer-2.0.0.tgz",
@@ -3123,6 +3823,28 @@
"url": "https://github.com/sponsors/sindresorhus"
}
},
+ "node_modules/escodegen": {
+ "version": "2.1.0",
+ "resolved": "https://registry.npmjs.org/escodegen/-/escodegen-2.1.0.tgz",
+ "integrity": "sha512-2NlIDTwUWJN0mRPQOdtQBzbUHvdGY2P1VXSyU83Q3xKxM7WHX2Ql8dKq782Q9TgQUNOLEzEYu9bzLNj1q88I5w==",
+ "dev": true,
+ "license": "BSD-2-Clause",
+ "dependencies": {
+ "esprima": "^4.0.1",
+ "estraverse": "^5.2.0",
+ "esutils": "^2.0.2"
+ },
+ "bin": {
+ "escodegen": "bin/escodegen.js",
+ "esgenerate": "bin/esgenerate.js"
+ },
+ "engines": {
+ "node": ">=6.0"
+ },
+ "optionalDependencies": {
+ "source-map": "~0.6.1"
+ }
+ },
"node_modules/eslint": {
"version": "9.39.4",
"resolved": "https://registry.npmjs.org/eslint/-/eslint-9.39.4.tgz",
@@ -3261,6 +3983,20 @@
"url": "https://opencollective.com/eslint"
}
},
+ "node_modules/esprima": {
+ "version": "4.0.1",
+ "resolved": "https://registry.npmjs.org/esprima/-/esprima-4.0.1.tgz",
+ "integrity": "sha512-eGuFFw7Upda+g4p+QHvnW0RyTX/SVeJBDM/gCtMARO0cLuT2HcEKnTPvhjV6aGeqrCB/sbNop0Kszm0jsaWU4A==",
+ "dev": true,
+ "license": "BSD-2-Clause",
+ "bin": {
+ "esparse": "bin/esparse.js",
+ "esvalidate": "bin/esvalidate.js"
+ },
+ "engines": {
+ "node": ">=4"
+ }
+ },
"node_modules/esquery": {
"version": "1.7.0",
"resolved": "https://registry.npmjs.org/esquery/-/esquery-1.7.0.tgz",
@@ -3413,6 +4149,42 @@
"node": ">=16.0.0"
}
},
+ "node_modules/filing-cabinet": {
+ "version": "5.5.1",
+ "resolved": "https://registry.npmjs.org/filing-cabinet/-/filing-cabinet-5.5.1.tgz",
+ "integrity": "sha512-PzLBTChlVPn6LnNxF0KWs+XqPziVh3Sfmz/3TXOymHxu6a9yhrDcQn7YwgpcRM6mqhR2WHVGPR8RU4fmcF1IVA==",
+ "dev": true,
+ "license": "MIT",
+ "dependencies": {
+ "app-module-path": "^2.2.0",
+ "commander": "^12.1.0",
+ "enhanced-resolve": "^5.21.0",
+ "module-definition": "^6.0.2",
+ "module-lookup-amd": "^9.1.3",
+ "resolve": "^1.22.12",
+ "resolve-dependency-path": "^4.0.1",
+ "sass-lookup": "^6.1.2",
+ "stylus-lookup": "^6.1.2",
+ "tsconfig-paths": "^4.2.0",
+ "typescript": "^5.9.3"
+ },
+ "bin": {
+ "filing-cabinet": "bin/cli.js"
+ },
+ "engines": {
+ "node": ">=18"
+ }
+ },
+ "node_modules/filing-cabinet/node_modules/commander": {
+ "version": "12.1.0",
+ "resolved": "https://registry.npmjs.org/commander/-/commander-12.1.0.tgz",
+ "integrity": "sha512-Vw8qHK3bZM9y/P10u3Vib8o/DdkvA2OtPtZvD871QKjy74Wj1WSKFILMPRPSdUSx5RFK1arlJzEtA4PkFgnbuA==",
+ "dev": true,
+ "license": "MIT",
+ "engines": {
+ "node": ">=18"
+ }
+ },
"node_modules/find-up": {
"version": "5.0.0",
"resolved": "https://registry.npmjs.org/find-up/-/find-up-5.0.0.tgz",
@@ -3500,6 +4272,16 @@
"node": "^8.16.0 || ^10.6.0 || >=11.0.0"
}
},
+ "node_modules/function-bind": {
+ "version": "1.1.2",
+ "resolved": "https://registry.npmjs.org/function-bind/-/function-bind-1.1.2.tgz",
+ "integrity": "sha512-7XHNxH7qX9xG5mIwxkhumTox/MIRNcOgDrxWsMt2pAr23WHp6MrRlN7FBSFpCpr+oVO0F744iUgR82nJMfG2SA==",
+ "dev": true,
+ "license": "MIT",
+ "funding": {
+ "url": "https://github.com/sponsors/ljharb"
+ }
+ },
"node_modules/gensync": {
"version": "1.0.0-beta.2",
"resolved": "https://registry.npmjs.org/gensync/-/gensync-1.0.0-beta.2.tgz",
@@ -3510,6 +4292,27 @@
"node": ">=6.9.0"
}
},
+ "node_modules/get-amd-module-type": {
+ "version": "6.0.2",
+ "resolved": "https://registry.npmjs.org/get-amd-module-type/-/get-amd-module-type-6.0.2.tgz",
+ "integrity": "sha512-7zShVYAYtMnj9S65CfN+hvpBCByfuB1OY8xID01nZEzXTZbx4YyysAfi+nMl95JSR6odt4q8TCj2W63KAoyVLQ==",
+ "dev": true,
+ "license": "MIT",
+ "dependencies": {
+ "ast-module-types": "^6.0.1",
+ "node-source-walk": "^7.0.1"
+ },
+ "engines": {
+ "node": ">=18"
+ }
+ },
+ "node_modules/get-own-enumerable-property-symbols": {
+ "version": "3.0.2",
+ "resolved": "https://registry.npmjs.org/get-own-enumerable-property-symbols/-/get-own-enumerable-property-symbols-3.0.2.tgz",
+ "integrity": "sha512-I0UBV/XOz1XkIJHEUDMZAbzCThU/H8DxmSfmdGcKPnVhu2VfFqr34jr9777IyaTYvxjedWhqVIilEDsCdP5G6g==",
+ "dev": true,
+ "license": "ISC"
+ },
"node_modules/glob-parent": {
"version": "6.0.2",
"resolved": "https://registry.npmjs.org/glob-parent/-/glob-parent-6.0.2.tgz",
@@ -3542,6 +4345,22 @@
"integrity": "sha512-b/ZCF6amfAUb7dJM/MxRs7AetQEahYzJ8PtgfrmEdtw6uyGOr+ZSGtgjFm6mfsBkxJ4d2W7kg+Nlqzqvn3Bc0w==",
"license": "MIT"
},
+ "node_modules/gonzales-pe": {
+ "version": "4.3.0",
+ "resolved": "https://registry.npmjs.org/gonzales-pe/-/gonzales-pe-4.3.0.tgz",
+ "integrity": "sha512-otgSPpUmdWJ43VXyiNgEYE4luzHCL2pz4wQ0OnDluC6Eg4Ko3Vexy/SrSynglw/eR+OhkzmqFCZa/OFa/RgAOQ==",
+ "dev": true,
+ "license": "MIT",
+ "dependencies": {
+ "minimist": "^1.2.5"
+ },
+ "bin": {
+ "gonzales": "bin/gonzales.js"
+ },
+ "engines": {
+ "node": ">=0.6.0"
+ }
+ },
"node_modules/graceful-fs": {
"version": "4.2.11",
"resolved": "https://registry.npmjs.org/graceful-fs/-/graceful-fs-4.2.11.tgz",
@@ -3558,6 +4377,19 @@
"node": ">=8"
}
},
+ "node_modules/hasown": {
+ "version": "2.0.4",
+ "resolved": "https://registry.npmjs.org/hasown/-/hasown-2.0.4.tgz",
+ "integrity": "sha512-T2UbfbBEF32wiepXIsMlTW9+dDYC6wMh/t/vYA4tuOMKqWz/n3vr1NFSxQiyP+zk2mXsoMA/i/7qV6LKut1t1A==",
+ "dev": true,
+ "license": "MIT",
+ "dependencies": {
+ "function-bind": "^1.1.2"
+ },
+ "engines": {
+ "node": ">= 0.4"
+ }
+ },
"node_modules/hast-util-from-dom": {
"version": "5.0.1",
"resolved": "https://registry.npmjs.org/hast-util-from-dom/-/hast-util-from-dom-5.0.1.tgz",
@@ -3852,6 +4684,13 @@
"integrity": "sha512-k/vGaX4/Yla3WzyMCvTQOXYeIHvqOKtnqBduzTHpzpQZzAskKMhZ2K+EnBiSM9zGSoIFeMpXKxa4dYeZIQqewQ==",
"license": "ISC"
},
+ "node_modules/ini": {
+ "version": "1.3.8",
+ "resolved": "https://registry.npmjs.org/ini/-/ini-1.3.8.tgz",
+ "integrity": "sha512-JV/yugV2uzW5iMRSiZAyDtQd+nxtUnjeLt0acNdw98kKLrvuRVyB80tsREOE7yvGVgalhZ6RNXCmEHkUKBKxew==",
+ "dev": true,
+ "license": "ISC"
+ },
"node_modules/inline-style-parser": {
"version": "0.2.7",
"resolved": "https://registry.npmjs.org/inline-style-parser/-/inline-style-parser-0.2.7.tgz",
@@ -3882,6 +4721,22 @@
"url": "https://github.com/sponsors/wooorm"
}
},
+ "node_modules/is-core-module": {
+ "version": "2.16.2",
+ "resolved": "https://registry.npmjs.org/is-core-module/-/is-core-module-2.16.2.tgz",
+ "integrity": "sha512-evOr8xfXKxE6qSR0hSXL2r3sd7ALj8+7jQEUvPYcm5sgZFdJ+AYzT6yNmJenvIYQBgIGwfwz08sL8zoL7yq2BA==",
+ "dev": true,
+ "license": "MIT",
+ "dependencies": {
+ "hasown": "^2.0.3"
+ },
+ "engines": {
+ "node": ">= 0.4"
+ },
+ "funding": {
+ "url": "https://github.com/sponsors/ljharb"
+ }
+ },
"node_modules/is-decimal": {
"version": "2.0.1",
"resolved": "https://registry.npmjs.org/is-decimal/-/is-decimal-2.0.1.tgz",
@@ -3925,6 +4780,26 @@
"url": "https://github.com/sponsors/wooorm"
}
},
+ "node_modules/is-interactive": {
+ "version": "1.0.0",
+ "resolved": "https://registry.npmjs.org/is-interactive/-/is-interactive-1.0.0.tgz",
+ "integrity": "sha512-2HvIEKRoqS62guEC+qBjpvRubdX910WCMuJTZ+I9yvqKU2/12eSL549HMwtabb4oupdj2sMP50k+XJfB/8JE6w==",
+ "dev": true,
+ "license": "MIT",
+ "engines": {
+ "node": ">=8"
+ }
+ },
+ "node_modules/is-obj": {
+ "version": "1.0.1",
+ "resolved": "https://registry.npmjs.org/is-obj/-/is-obj-1.0.1.tgz",
+ "integrity": "sha512-l4RyHgRqGN4Y3+9JHVrNqO+tN0rV5My76uW5/nuO4K1b6vw5G8d/cmFjP9tRfEsdhZNt0IFdZuK/c2Vr4Nb+Qg==",
+ "dev": true,
+ "license": "MIT",
+ "engines": {
+ "node": ">=0.10.0"
+ }
+ },
"node_modules/is-plain-obj": {
"version": "4.1.0",
"resolved": "https://registry.npmjs.org/is-plain-obj/-/is-plain-obj-4.1.0.tgz",
@@ -3943,6 +4818,42 @@
"integrity": "sha512-+lP4/6lKUBfQjZ2pdxThZvLUAafmZb8OAxFb8XXtiQmS35INgr85hdOGoEs124ez1FCnZJt6jau/T+alh58QFQ==",
"license": "MIT"
},
+ "node_modules/is-regexp": {
+ "version": "1.0.0",
+ "resolved": "https://registry.npmjs.org/is-regexp/-/is-regexp-1.0.0.tgz",
+ "integrity": "sha512-7zjFAPO4/gwyQAAgRRmqeEeyIICSdmCqa3tsVHMdBzaXXRiqopZL4Cyghg/XulGWrtABTpbnYYzzIRffLkP4oA==",
+ "dev": true,
+ "license": "MIT",
+ "engines": {
+ "node": ">=0.10.0"
+ }
+ },
+ "node_modules/is-unicode-supported": {
+ "version": "0.1.0",
+ "resolved": "https://registry.npmjs.org/is-unicode-supported/-/is-unicode-supported-0.1.0.tgz",
+ "integrity": "sha512-knxG2q4UC3u8stRGyAVJCOdxFmv5DZiRcdlIaAQXAbSfJya+OhopNotLQrstBhququ4ZpuKbDc/8S6mgXgPFPw==",
+ "dev": true,
+ "license": "MIT",
+ "engines": {
+ "node": ">=10"
+ },
+ "funding": {
+ "url": "https://github.com/sponsors/sindresorhus"
+ }
+ },
+ "node_modules/is-url-superb": {
+ "version": "4.0.0",
+ "resolved": "https://registry.npmjs.org/is-url-superb/-/is-url-superb-4.0.0.tgz",
+ "integrity": "sha512-GI+WjezhPPcbM+tqE9LnmsY5qqjwHzTvjJ36wxYX5ujNXefSUJ/T17r5bqDV8yLhcgB59KTPNOc9O9cmHTPWsA==",
+ "dev": true,
+ "license": "MIT",
+ "engines": {
+ "node": ">=10"
+ },
+ "funding": {
+ "url": "https://github.com/sponsors/sindresorhus"
+ }
+ },
"node_modules/isarray": {
"version": "1.0.0",
"resolved": "https://registry.npmjs.org/isarray/-/isarray-1.0.0.tgz",
@@ -4386,6 +5297,23 @@
"dev": true,
"license": "MIT"
},
+ "node_modules/log-symbols": {
+ "version": "4.1.0",
+ "resolved": "https://registry.npmjs.org/log-symbols/-/log-symbols-4.1.0.tgz",
+ "integrity": "sha512-8XPvpAA8uyhfteu8pIvQxpJZ7SYYdpUivZpGy6sFsBuKRY/7rQGavedeB8aK+Zkyq6upMFVL/9AW6vOYzfRyLg==",
+ "dev": true,
+ "license": "MIT",
+ "dependencies": {
+ "chalk": "^4.1.0",
+ "is-unicode-supported": "^0.1.0"
+ },
+ "engines": {
+ "node": ">=10"
+ },
+ "funding": {
+ "url": "https://github.com/sponsors/sindresorhus"
+ }
+ },
"node_modules/longest-streak": {
"version": "3.1.0",
"resolved": "https://registry.npmjs.org/longest-streak/-/longest-streak-3.1.0.tgz",
@@ -4450,6 +5378,55 @@
"three": ">=0.134.0"
}
},
+ "node_modules/madge": {
+ "version": "8.0.0",
+ "resolved": "https://registry.npmjs.org/madge/-/madge-8.0.0.tgz",
+ "integrity": "sha512-9sSsi3TBPhmkTCIpVQF0SPiChj1L7Rq9kU2KDG1o6v2XH9cCw086MopjVCD+vuoL5v8S77DTbVopTO8OUiQpIw==",
+ "dev": true,
+ "license": "MIT",
+ "dependencies": {
+ "chalk": "^4.1.2",
+ "commander": "^7.2.0",
+ "commondir": "^1.0.1",
+ "debug": "^4.3.4",
+ "dependency-tree": "^11.0.0",
+ "ora": "^5.4.1",
+ "pluralize": "^8.0.0",
+ "pretty-ms": "^7.0.1",
+ "rc": "^1.2.8",
+ "stream-to-array": "^2.3.0",
+ "ts-graphviz": "^2.1.2",
+ "walkdir": "^0.4.1"
+ },
+ "bin": {
+ "madge": "bin/cli.js"
+ },
+ "engines": {
+ "node": ">=18"
+ },
+ "funding": {
+ "type": "individual",
+ "url": "https://www.paypal.me/pahen"
+ },
+ "peerDependencies": {
+ "typescript": "^5.4.4"
+ },
+ "peerDependenciesMeta": {
+ "typescript": {
+ "optional": true
+ }
+ }
+ },
+ "node_modules/madge/node_modules/commander": {
+ "version": "7.2.0",
+ "resolved": "https://registry.npmjs.org/commander/-/commander-7.2.0.tgz",
+ "integrity": "sha512-QrWXB+ZQSVPmIWIhtEO9H+gwHaMGYiF5ChvoJ+K9ZGHG/sVsa6yiesAD1GC/x46sET00Xlwo1u49RVVVzvcSkw==",
+ "dev": true,
+ "license": "MIT",
+ "engines": {
+ "node": ">= 10"
+ }
+ },
"node_modules/magic-string": {
"version": "0.30.21",
"resolved": "https://registry.npmjs.org/magic-string/-/magic-string-0.30.21.tgz",
@@ -5416,6 +6393,16 @@
],
"license": "MIT"
},
+ "node_modules/mimic-fn": {
+ "version": "2.1.0",
+ "resolved": "https://registry.npmjs.org/mimic-fn/-/mimic-fn-2.1.0.tgz",
+ "integrity": "sha512-OqbOk5oEQeAZ8WXWydlu9HJjz9WVdEIvamMCcXmuqUYjTknH/sqsWvhQ3vgwKFRR1HpjvNBKQ37nbJgYzGqGcg==",
+ "dev": true,
+ "license": "MIT",
+ "engines": {
+ "node": ">=6"
+ }
+ },
"node_modules/minimatch": {
"version": "3.1.5",
"resolved": "https://registry.npmjs.org/minimatch/-/minimatch-3.1.5.tgz",
@@ -5429,6 +6416,61 @@
"node": "*"
}
},
+ "node_modules/minimist": {
+ "version": "1.2.8",
+ "resolved": "https://registry.npmjs.org/minimist/-/minimist-1.2.8.tgz",
+ "integrity": "sha512-2yyAR8qBkN3YuheJanUpWC5U3bb5osDywNB8RzDVlDwDHbocAJveqqj1u8+SVD7jkWT4yvsHCpWqqWqAxb0zCA==",
+ "dev": true,
+ "license": "MIT",
+ "funding": {
+ "url": "https://github.com/sponsors/ljharb"
+ }
+ },
+ "node_modules/module-definition": {
+ "version": "6.0.2",
+ "resolved": "https://registry.npmjs.org/module-definition/-/module-definition-6.0.2.tgz",
+ "integrity": "sha512-SvAU3lB0+Yjbq55yHY3wkRZBOh+fhU1SnIF3IFbTewv6mtAh7yUT8ACHAJ2mGIJ7tCes2QuCL/cl6m0JSZ/ArA==",
+ "dev": true,
+ "license": "MIT",
+ "dependencies": {
+ "ast-module-types": "^6.0.1",
+ "node-source-walk": "^7.0.1"
+ },
+ "bin": {
+ "module-definition": "bin/cli.js"
+ },
+ "engines": {
+ "node": ">=18"
+ }
+ },
+ "node_modules/module-lookup-amd": {
+ "version": "9.1.3",
+ "resolved": "https://registry.npmjs.org/module-lookup-amd/-/module-lookup-amd-9.1.3.tgz",
+ "integrity": "sha512-Jc3XmOaR9FdfMJSK8+vyLgsCkzm8z2L0NS6vrlRWi12DjS7MY7TMNE7E1yj8yXx837xtMDbKSSgcdXnFlJ2YLg==",
+ "dev": true,
+ "license": "MIT",
+ "dependencies": {
+ "commander": "^12.1.0",
+ "requirejs": "^2.3.8",
+ "requirejs-config-file": "^4.0.0"
+ },
+ "bin": {
+ "lookup-amd": "bin/cli.js"
+ },
+ "engines": {
+ "node": ">=18"
+ }
+ },
+ "node_modules/module-lookup-amd/node_modules/commander": {
+ "version": "12.1.0",
+ "resolved": "https://registry.npmjs.org/commander/-/commander-12.1.0.tgz",
+ "integrity": "sha512-Vw8qHK3bZM9y/P10u3Vib8o/DdkvA2OtPtZvD871QKjy74Wj1WSKFILMPRPSdUSx5RFK1arlJzEtA4PkFgnbuA==",
+ "dev": true,
+ "license": "MIT",
+ "engines": {
+ "node": ">=18"
+ }
+ },
"node_modules/motion-dom": {
"version": "12.38.0",
"resolved": "https://registry.npmjs.org/motion-dom/-/motion-dom-12.38.0.tgz",
@@ -5485,6 +6527,19 @@
"node": ">=18"
}
},
+ "node_modules/node-source-walk": {
+ "version": "7.0.2",
+ "resolved": "https://registry.npmjs.org/node-source-walk/-/node-source-walk-7.0.2.tgz",
+ "integrity": "sha512-71kFFjYaSshDTA8/a2HiTYPLdASWjLJxUyJxGE+ffxU+KhxSBtM9kiLUX+R2yooFdSFKMFpi4n3PFtDy6qXv8A==",
+ "dev": true,
+ "license": "MIT",
+ "dependencies": {
+ "@babel/parser": "^7.29.0"
+ },
+ "engines": {
+ "node": ">=18"
+ }
+ },
"node_modules/obug": {
"version": "2.1.1",
"resolved": "https://registry.npmjs.org/obug/-/obug-2.1.1.tgz",
@@ -5496,6 +6551,22 @@
],
"license": "MIT"
},
+ "node_modules/onetime": {
+ "version": "5.1.2",
+ "resolved": "https://registry.npmjs.org/onetime/-/onetime-5.1.2.tgz",
+ "integrity": "sha512-kbpaSSGJTWdAY5KPVeMOKXSrPtr8C8C7wodJbcsd51jRnmD+GZu8Y0VoU6Dm5Z4vWr0Ig/1NKuWRKf7j5aaYSg==",
+ "dev": true,
+ "license": "MIT",
+ "dependencies": {
+ "mimic-fn": "^2.1.0"
+ },
+ "engines": {
+ "node": ">=6"
+ },
+ "funding": {
+ "url": "https://github.com/sponsors/sindresorhus"
+ }
+ },
"node_modules/option": {
"version": "0.2.4",
"resolved": "https://registry.npmjs.org/option/-/option-0.2.4.tgz",
@@ -5520,6 +6591,30 @@
"node": ">= 0.8.0"
}
},
+ "node_modules/ora": {
+ "version": "5.4.1",
+ "resolved": "https://registry.npmjs.org/ora/-/ora-5.4.1.tgz",
+ "integrity": "sha512-5b6Y85tPxZZ7QytO+BQzysW31HJku27cRIlkbAXaNx+BdcVi+LlRFmVXzeF6a7JCwJpyw5c4b+YSVImQIrBpuQ==",
+ "dev": true,
+ "license": "MIT",
+ "dependencies": {
+ "bl": "^4.1.0",
+ "chalk": "^4.1.0",
+ "cli-cursor": "^3.1.0",
+ "cli-spinners": "^2.5.0",
+ "is-interactive": "^1.0.0",
+ "is-unicode-supported": "^0.1.0",
+ "log-symbols": "^4.1.0",
+ "strip-ansi": "^6.0.0",
+ "wcwidth": "^1.0.1"
+ },
+ "engines": {
+ "node": ">=10"
+ },
+ "funding": {
+ "url": "https://github.com/sponsors/sindresorhus"
+ }
+ },
"node_modules/p-limit": {
"version": "3.1.0",
"resolved": "https://registry.npmjs.org/p-limit/-/p-limit-3.1.0.tgz",
@@ -5596,6 +6691,16 @@
"integrity": "sha512-CmBKiL6NNo/OqgmMn95Fk9Whlp2mtvIv+KNpQKN2F4SjvrEesubTRWGYSg+BnWZOnlCaSTU1sMpsBOzgbYhnsA==",
"license": "MIT"
},
+ "node_modules/parse-ms": {
+ "version": "2.1.0",
+ "resolved": "https://registry.npmjs.org/parse-ms/-/parse-ms-2.1.0.tgz",
+ "integrity": "sha512-kHt7kzLoS9VBZfUsiKjv43mr91ea+U05EyKkEtqp7vNbHxmaVuEqN7XxeEVnGrMtYOAxGrDElSi96K7EgO1zCA==",
+ "dev": true,
+ "license": "MIT",
+ "engines": {
+ "node": ">=6"
+ }
+ },
"node_modules/parse5": {
"version": "7.3.0",
"resolved": "https://registry.npmjs.org/parse5/-/parse5-7.3.0.tgz",
@@ -5636,6 +6741,13 @@
"node": ">=8"
}
},
+ "node_modules/path-parse": {
+ "version": "1.0.7",
+ "resolved": "https://registry.npmjs.org/path-parse/-/path-parse-1.0.7.tgz",
+ "integrity": "sha512-LDJzPVEEEPR+y48z93A0Ed0yXb8pAByGWo/k5YYdYgpY2/2EsOsksJrq7lOHxryrVOn1ejG6oAp8ahvOIQD8sw==",
+ "dev": true,
+ "license": "MIT"
+ },
"node_modules/pathe": {
"version": "2.0.3",
"resolved": "https://registry.npmjs.org/pathe/-/pathe-2.0.3.tgz",
@@ -5720,6 +6832,16 @@
"node": "^8.16.0 || ^10.6.0 || >=11.0.0"
}
},
+ "node_modules/pluralize": {
+ "version": "8.0.0",
+ "resolved": "https://registry.npmjs.org/pluralize/-/pluralize-8.0.0.tgz",
+ "integrity": "sha512-Nc3IT5yHzflTfbjgqWcCPpo7DaKy4FnpB0l/zCAW0Tc7jxAiuqSxHasntB3D7887LSrA93kDJ9IXovxJYxyLCA==",
+ "dev": true,
+ "license": "MIT",
+ "engines": {
+ "node": ">=4"
+ }
+ },
"node_modules/postcss": {
"version": "8.5.26",
"resolved": "https://registry.npmjs.org/postcss/-/postcss-8.5.26.tgz",
@@ -5748,12 +6870,70 @@
"node": "^10 || ^12 || >=14"
}
},
+ "node_modules/postcss-values-parser": {
+ "version": "6.0.2",
+ "resolved": "https://registry.npmjs.org/postcss-values-parser/-/postcss-values-parser-6.0.2.tgz",
+ "integrity": "sha512-YLJpK0N1brcNJrs9WatuJFtHaV9q5aAOj+S4DI5S7jgHlRfm0PIbDCAFRYMQD5SHq7Fy6xsDhyutgS0QOAs0qw==",
+ "dev": true,
+ "license": "MPL-2.0",
+ "dependencies": {
+ "color-name": "^1.1.4",
+ "is-url-superb": "^4.0.0",
+ "quote-unquote": "^1.0.0"
+ },
+ "engines": {
+ "node": ">=10"
+ },
+ "peerDependencies": {
+ "postcss": "^8.2.9"
+ }
+ },
"node_modules/potpack": {
"version": "1.0.2",
"resolved": "https://registry.npmjs.org/potpack/-/potpack-1.0.2.tgz",
"integrity": "sha512-choctRBIV9EMT9WGAZHn3V7t0Z2pMQyl0EZE6pFc/6ml3ssw7Dlf/oAOvFwjm1HVsqfQN8GfeFyJ+d8tRzqueQ==",
"license": "ISC"
},
+ "node_modules/precinct": {
+ "version": "12.3.2",
+ "resolved": "https://registry.npmjs.org/precinct/-/precinct-12.3.2.tgz",
+ "integrity": "sha512-JbJevI1K80z8e/WIyDt/4vUN/4qcfBSKKqOjJA4mosPPPb7zODKRJQV7YN7apVWN3k58nZYm/vEsLgEGYmnxwg==",
+ "dev": true,
+ "license": "MIT",
+ "dependencies": {
+ "@dependents/detective-less": "^5.0.3",
+ "commander": "^12.1.0",
+ "detective-amd": "^6.1.0",
+ "detective-cjs": "^6.1.1",
+ "detective-es6": "^5.0.2",
+ "detective-postcss": "^8.0.3",
+ "detective-sass": "^6.0.2",
+ "detective-scss": "^5.0.2",
+ "detective-stylus": "^5.0.1",
+ "detective-typescript": "^14.1.2",
+ "detective-vue2": "^2.3.0",
+ "module-definition": "^6.0.2",
+ "node-source-walk": "^7.0.2",
+ "postcss": "^8.5.14",
+ "typescript": "^5.9.3"
+ },
+ "bin": {
+ "precinct": "bin/cli.js"
+ },
+ "engines": {
+ "node": ">=18"
+ }
+ },
+ "node_modules/precinct/node_modules/commander": {
+ "version": "12.1.0",
+ "resolved": "https://registry.npmjs.org/commander/-/commander-12.1.0.tgz",
+ "integrity": "sha512-Vw8qHK3bZM9y/P10u3Vib8o/DdkvA2OtPtZvD871QKjy74Wj1WSKFILMPRPSdUSx5RFK1arlJzEtA4PkFgnbuA==",
+ "dev": true,
+ "license": "MIT",
+ "engines": {
+ "node": ">=18"
+ }
+ },
"node_modules/prelude-ls": {
"version": "1.2.1",
"resolved": "https://registry.npmjs.org/prelude-ls/-/prelude-ls-1.2.1.tgz",
@@ -5764,6 +6944,22 @@
"node": ">= 0.8.0"
}
},
+ "node_modules/pretty-ms": {
+ "version": "7.0.1",
+ "resolved": "https://registry.npmjs.org/pretty-ms/-/pretty-ms-7.0.1.tgz",
+ "integrity": "sha512-973driJZvxiGOQ5ONsFhOF/DtzPMOMtgC11kCpUrPGMTgqp2q/1gwzCquocrN33is0VZ5GFHXZYMM9l6h67v2Q==",
+ "dev": true,
+ "license": "MIT",
+ "dependencies": {
+ "parse-ms": "^2.1.0"
+ },
+ "engines": {
+ "node": ">=10"
+ },
+ "funding": {
+ "url": "https://github.com/sponsors/sindresorhus"
+ }
+ },
"node_modules/prismjs": {
"version": "1.30.0",
"resolved": "https://registry.npmjs.org/prismjs/-/prismjs-1.30.0.tgz",
@@ -5809,6 +7005,39 @@
"node": ">=6"
}
},
+ "node_modules/quote-unquote": {
+ "version": "1.0.0",
+ "resolved": "https://registry.npmjs.org/quote-unquote/-/quote-unquote-1.0.0.tgz",
+ "integrity": "sha512-twwRO/ilhlG/FIgYeKGFqyHhoEhqgnKVkcmqMKi2r524gz3ZbDTcyFt38E9xjJI2vT+KbRNHVbnJ/e0I25Azwg==",
+ "dev": true,
+ "license": "MIT"
+ },
+ "node_modules/rc": {
+ "version": "1.2.8",
+ "resolved": "https://registry.npmjs.org/rc/-/rc-1.2.8.tgz",
+ "integrity": "sha512-y3bGgqKj3QBdxLbLkomlohkvsA8gdAiUQlSBJnBhfn+BPxg4bc62d8TcBW15wavDfgexCgccckhcZvywyQYPOw==",
+ "dev": true,
+ "license": "(BSD-2-Clause OR MIT OR Apache-2.0)",
+ "dependencies": {
+ "deep-extend": "^0.6.0",
+ "ini": "~1.3.0",
+ "minimist": "^1.2.0",
+ "strip-json-comments": "~2.0.1"
+ },
+ "bin": {
+ "rc": "cli.js"
+ }
+ },
+ "node_modules/rc/node_modules/strip-json-comments": {
+ "version": "2.0.1",
+ "resolved": "https://registry.npmjs.org/strip-json-comments/-/strip-json-comments-2.0.1.tgz",
+ "integrity": "sha512-4gB8na07fecVVkOI6Rs4e7T6NOTki5EmL7TUduTs6bu3EdnSycntVJ4re8kgZA+wx9IueI2Y11bfbgwtzuE0KQ==",
+ "dev": true,
+ "license": "MIT",
+ "engines": {
+ "node": ">=0.10.0"
+ }
+ },
"node_modules/react": {
"version": "19.2.4",
"resolved": "https://registry.npmjs.org/react/-/react-19.2.4.tgz",
@@ -6049,6 +7278,66 @@
"node": ">=0.10.0"
}
},
+ "node_modules/requirejs": {
+ "version": "2.3.8",
+ "resolved": "https://registry.npmjs.org/requirejs/-/requirejs-2.3.8.tgz",
+ "integrity": "sha512-7/cTSLOdYkNBNJcDMWf+luFvMriVm7eYxp4BcFCsAX0wF421Vyce5SXP17c+Jd5otXKGNehIonFlyQXSowL6Mw==",
+ "dev": true,
+ "license": "MIT",
+ "bin": {
+ "r_js": "bin/r.js",
+ "r.js": "bin/r.js"
+ },
+ "engines": {
+ "node": ">=0.4.0"
+ }
+ },
+ "node_modules/requirejs-config-file": {
+ "version": "4.0.0",
+ "resolved": "https://registry.npmjs.org/requirejs-config-file/-/requirejs-config-file-4.0.0.tgz",
+ "integrity": "sha512-jnIre8cbWOyvr8a5F2KuqBnY+SDA4NXr/hzEZJG79Mxm2WiFQz2dzhC8ibtPJS7zkmBEl1mxSwp5HhC1W4qpxw==",
+ "dev": true,
+ "license": "MIT",
+ "dependencies": {
+ "esprima": "^4.0.0",
+ "stringify-object": "^3.2.1"
+ },
+ "engines": {
+ "node": ">=10.13.0"
+ }
+ },
+ "node_modules/resolve": {
+ "version": "1.22.12",
+ "resolved": "https://registry.npmjs.org/resolve/-/resolve-1.22.12.tgz",
+ "integrity": "sha512-TyeJ1zif53BPfHootBGwPRYT1RUt6oGWsaQr8UyZW/eAm9bKoijtvruSDEmZHm92CwS9nj7/fWttqPCgzep8CA==",
+ "dev": true,
+ "license": "MIT",
+ "dependencies": {
+ "es-errors": "^1.3.0",
+ "is-core-module": "^2.16.1",
+ "path-parse": "^1.0.7",
+ "supports-preserve-symlinks-flag": "^1.0.0"
+ },
+ "bin": {
+ "resolve": "bin/resolve"
+ },
+ "engines": {
+ "node": ">= 0.4"
+ },
+ "funding": {
+ "url": "https://github.com/sponsors/ljharb"
+ }
+ },
+ "node_modules/resolve-dependency-path": {
+ "version": "4.0.1",
+ "resolved": "https://registry.npmjs.org/resolve-dependency-path/-/resolve-dependency-path-4.0.1.tgz",
+ "integrity": "sha512-YQftIIC4vzO9UMhO/sCgXukNyiwVRCVaxiWskCBy7Zpqkplm8kTAISZ8O1MoKW1ca6xzgLUBjZTcDgypXvXxiQ==",
+ "dev": true,
+ "license": "MIT",
+ "engines": {
+ "node": ">=18"
+ }
+ },
"node_modules/resolve-from": {
"version": "4.0.0",
"resolved": "https://registry.npmjs.org/resolve-from/-/resolve-from-4.0.0.tgz",
@@ -6059,6 +7348,20 @@
"node": ">=4"
}
},
+ "node_modules/restore-cursor": {
+ "version": "3.1.0",
+ "resolved": "https://registry.npmjs.org/restore-cursor/-/restore-cursor-3.1.0.tgz",
+ "integrity": "sha512-l+sSefzHpj5qimhFSE5a8nufZYAM3sBSVMAPtYkmC+4EH2anSGaEMXSD0izRQbu9nfyQ9y5JrVmp7E8oZrUjvA==",
+ "dev": true,
+ "license": "MIT",
+ "dependencies": {
+ "onetime": "^5.1.0",
+ "signal-exit": "^3.0.2"
+ },
+ "engines": {
+ "node": ">=8"
+ }
+ },
"node_modules/rolldown": {
"version": "1.0.3",
"resolved": "https://registry.npmjs.org/rolldown/-/rolldown-1.0.3.tgz",
@@ -6104,6 +7407,33 @@
"integrity": "sha512-Gd2UZBJDkXlY7GbJxfsE8/nvKkUEU1G38c1siN6QP6a9PT9MmHB8GnpscSmMJSoF8LOIrt8ud/wPtojys4G6+g==",
"license": "MIT"
},
+ "node_modules/sass-lookup": {
+ "version": "6.1.2",
+ "resolved": "https://registry.npmjs.org/sass-lookup/-/sass-lookup-6.1.2.tgz",
+ "integrity": "sha512-GjmndmKQBtlPil79RK72L7yc5kDXZPCQeH97bP8R8DcxtXQJO6vECExb3WP/m6+cxaV9h4ZxrSRvCkPG2v/VSw==",
+ "dev": true,
+ "license": "MIT",
+ "dependencies": {
+ "commander": "^12.1.0",
+ "enhanced-resolve": "^5.20.0"
+ },
+ "bin": {
+ "sass-lookup": "bin/cli.js"
+ },
+ "engines": {
+ "node": ">=18"
+ }
+ },
+ "node_modules/sass-lookup/node_modules/commander": {
+ "version": "12.1.0",
+ "resolved": "https://registry.npmjs.org/commander/-/commander-12.1.0.tgz",
+ "integrity": "sha512-Vw8qHK3bZM9y/P10u3Vib8o/DdkvA2OtPtZvD871QKjy74Wj1WSKFILMPRPSdUSx5RFK1arlJzEtA4PkFgnbuA==",
+ "dev": true,
+ "license": "MIT",
+ "engines": {
+ "node": ">=18"
+ }
+ },
"node_modules/scheduler": {
"version": "0.27.0",
"resolved": "https://registry.npmjs.org/scheduler/-/scheduler-0.27.0.tgz",
@@ -6154,6 +7484,24 @@
"dev": true,
"license": "ISC"
},
+ "node_modules/signal-exit": {
+ "version": "3.0.7",
+ "resolved": "https://registry.npmjs.org/signal-exit/-/signal-exit-3.0.7.tgz",
+ "integrity": "sha512-wnD2ZE+l+SPC/uoS0vXeE9L1+0wuaMqKlfz9AMUo38JsyLSBWSFcHR1Rri62LZc12vLr1gb3jl7iwQhgwpAbGQ==",
+ "dev": true,
+ "license": "ISC"
+ },
+ "node_modules/source-map": {
+ "version": "0.6.1",
+ "resolved": "https://registry.npmjs.org/source-map/-/source-map-0.6.1.tgz",
+ "integrity": "sha512-UjgapumWlbMhkBgzT7Ykc5YXUT46F0iKu8SGXq0bcwP5dz/h0Plj6enJqjz1Zbq2l5WaqYnrVbwWOWMyF3F47g==",
+ "dev": true,
+ "license": "BSD-3-Clause",
+ "optional": true,
+ "engines": {
+ "node": ">=0.10.0"
+ }
+ },
"node_modules/source-map-js": {
"version": "1.2.1",
"resolved": "https://registry.npmjs.org/source-map-js/-/source-map-js-1.2.1.tgz",
@@ -6219,6 +7567,16 @@
"dev": true,
"license": "MIT"
},
+ "node_modules/stream-to-array": {
+ "version": "2.3.0",
+ "resolved": "https://registry.npmjs.org/stream-to-array/-/stream-to-array-2.3.0.tgz",
+ "integrity": "sha512-UsZtOYEn4tWU2RGLOXr/o/xjRBftZRlG3dEWoaHr8j4GuypJ3isitGbVyjQKAuMu+xbiop8q224TjiZWc4XTZA==",
+ "dev": true,
+ "license": "MIT",
+ "dependencies": {
+ "any-promise": "^1.1.0"
+ }
+ },
"node_modules/string_decoder": {
"version": "1.1.1",
"resolved": "https://registry.npmjs.org/string_decoder/-/string_decoder-1.1.1.tgz",
@@ -6242,6 +7600,44 @@
"url": "https://github.com/sponsors/wooorm"
}
},
+ "node_modules/stringify-object": {
+ "version": "3.3.0",
+ "resolved": "https://registry.npmjs.org/stringify-object/-/stringify-object-3.3.0.tgz",
+ "integrity": "sha512-rHqiFh1elqCQ9WPLIC8I0Q/g/wj5J1eMkyoiD6eoQApWHP0FtlK7rqnhmabL5VUY9JQCcqwwvlOaSuutekgyrw==",
+ "dev": true,
+ "license": "BSD-2-Clause",
+ "dependencies": {
+ "get-own-enumerable-property-symbols": "^3.0.0",
+ "is-obj": "^1.0.1",
+ "is-regexp": "^1.0.0"
+ },
+ "engines": {
+ "node": ">=4"
+ }
+ },
+ "node_modules/strip-ansi": {
+ "version": "6.0.1",
+ "resolved": "https://registry.npmjs.org/strip-ansi/-/strip-ansi-6.0.1.tgz",
+ "integrity": "sha512-Y38VPSHcqkFrCpFnQ9vuSXmquuv5oXOKpGeT6aGrr3o3Gc9AlVa6JBfUSOCnbxGGZF+/0ooI7KrPuUSztUdU5A==",
+ "dev": true,
+ "license": "MIT",
+ "dependencies": {
+ "ansi-regex": "^5.0.1"
+ },
+ "engines": {
+ "node": ">=8"
+ }
+ },
+ "node_modules/strip-bom": {
+ "version": "3.0.0",
+ "resolved": "https://registry.npmjs.org/strip-bom/-/strip-bom-3.0.0.tgz",
+ "integrity": "sha512-vavAMRXOgBVNF6nyEEmL3DBK19iRpDcoIwW+swQ+CbGiu7lju6t+JklA1MHweoWtadgt4ISVUsXLyDq34ddcwA==",
+ "dev": true,
+ "license": "MIT",
+ "engines": {
+ "node": ">=4"
+ }
+ },
"node_modules/strip-json-comments": {
"version": "3.1.1",
"resolved": "https://registry.npmjs.org/strip-json-comments/-/strip-json-comments-3.1.1.tgz",
@@ -6273,6 +7669,32 @@
"inline-style-parser": "0.2.7"
}
},
+ "node_modules/stylus-lookup": {
+ "version": "6.1.2",
+ "resolved": "https://registry.npmjs.org/stylus-lookup/-/stylus-lookup-6.1.2.tgz",
+ "integrity": "sha512-O+Q/SJ8s1X2aMLh4213fQ9X/bND9M3dhSsyTRe+O1OXPcewGLiYmAtKCrnP7FDvDBaXB2ZHPkCt3zi4cJXBlCQ==",
+ "dev": true,
+ "license": "MIT",
+ "dependencies": {
+ "commander": "^12.1.0"
+ },
+ "bin": {
+ "stylus-lookup": "bin/cli.js"
+ },
+ "engines": {
+ "node": ">=18"
+ }
+ },
+ "node_modules/stylus-lookup/node_modules/commander": {
+ "version": "12.1.0",
+ "resolved": "https://registry.npmjs.org/commander/-/commander-12.1.0.tgz",
+ "integrity": "sha512-Vw8qHK3bZM9y/P10u3Vib8o/DdkvA2OtPtZvD871QKjy74Wj1WSKFILMPRPSdUSx5RFK1arlJzEtA4PkFgnbuA==",
+ "dev": true,
+ "license": "MIT",
+ "engines": {
+ "node": ">=18"
+ }
+ },
"node_modules/supports-color": {
"version": "7.2.0",
"resolved": "https://registry.npmjs.org/supports-color/-/supports-color-7.2.0.tgz",
@@ -6286,6 +7708,19 @@
"node": ">=8"
}
},
+ "node_modules/supports-preserve-symlinks-flag": {
+ "version": "1.0.0",
+ "resolved": "https://registry.npmjs.org/supports-preserve-symlinks-flag/-/supports-preserve-symlinks-flag-1.0.0.tgz",
+ "integrity": "sha512-ot0WnXS9fgdkgIcePe6RHNk1WA8+muPa6cSjeR3V8K27q9BB1rTE3R1p7Hv0z1ZyAc8s6Vvv8DIyWf681MAt0w==",
+ "dev": true,
+ "license": "MIT",
+ "engines": {
+ "node": ">= 0.4"
+ },
+ "funding": {
+ "url": "https://github.com/sponsors/ljharb"
+ }
+ },
"node_modules/suspend-react": {
"version": "0.1.3",
"resolved": "https://registry.npmjs.org/suspend-react/-/suspend-react-0.1.3.tgz",
@@ -6302,9 +7737,9 @@
"license": "MIT"
},
"node_modules/tapable": {
- "version": "2.3.2",
- "resolved": "https://registry.npmjs.org/tapable/-/tapable-2.3.2.tgz",
- "integrity": "sha512-1MOpMXuhGzGL5TTCZFItxCc0AARf1EZFQkGqMm7ERKj8+Hgr5oLvJOVFcC+lRmR8hCe2S3jC4T5D7Vg/d7/fhA==",
+ "version": "2.3.3",
+ "resolved": "https://registry.npmjs.org/tapable/-/tapable-2.3.3.tgz",
+ "integrity": "sha512-uxc/zpqFg6x7C8vOE7lh6Lbda8eEL9zmVm/PLeTPBRhh1xCgdWaQ+J1CUieGpIfm2HdtsUpRv+HshiasBMcc6A==",
"license": "MIT",
"engines": {
"node": ">=6"
@@ -6458,6 +7893,47 @@
"typescript": ">=4.8.4"
}
},
+ "node_modules/ts-graphviz": {
+ "version": "2.1.6",
+ "resolved": "https://registry.npmjs.org/ts-graphviz/-/ts-graphviz-2.1.6.tgz",
+ "integrity": "sha512-XyLVuhBVvdJTJr2FJJV2L1pc4MwSjMhcunRVgDE9k4wbb2ee7ORYnPewxMWUav12vxyfUM686MSGsqnVRIInuw==",
+ "dev": true,
+ "funding": [
+ {
+ "type": "github",
+ "url": "https://github.com/sponsors/ts-graphviz"
+ },
+ {
+ "type": "opencollective",
+ "url": "https://opencollective.com/ts-graphviz"
+ }
+ ],
+ "license": "MIT",
+ "dependencies": {
+ "@ts-graphviz/adapter": "^2.0.6",
+ "@ts-graphviz/ast": "^2.0.7",
+ "@ts-graphviz/common": "^2.1.5",
+ "@ts-graphviz/core": "^2.0.7"
+ },
+ "engines": {
+ "node": ">=18"
+ }
+ },
+ "node_modules/tsconfig-paths": {
+ "version": "4.2.0",
+ "resolved": "https://registry.npmjs.org/tsconfig-paths/-/tsconfig-paths-4.2.0.tgz",
+ "integrity": "sha512-NoZ4roiN7LnbKn9QqE1amc9DJfzvZXxF4xDavcOWt1BPkdx+m+0gJuPM+S0vCe7zTJMYUP0R8pO2XMr+Y8oLIg==",
+ "dev": true,
+ "license": "MIT",
+ "dependencies": {
+ "json5": "^2.2.2",
+ "minimist": "^1.2.6",
+ "strip-bom": "^3.0.0"
+ },
+ "engines": {
+ "node": ">=6"
+ }
+ },
"node_modules/tslib": {
"version": "2.8.1",
"resolved": "https://registry.npmjs.org/tslib/-/tslib-2.8.1.tgz",
@@ -6959,6 +8435,26 @@
}
}
},
+ "node_modules/walkdir": {
+ "version": "0.4.1",
+ "resolved": "https://registry.npmjs.org/walkdir/-/walkdir-0.4.1.tgz",
+ "integrity": "sha512-3eBwRyEln6E1MSzcxcVpQIhRG8Q1jLvEqRmCZqS3dsfXEDR/AhOF4d+jHg1qvDCpYaVRZjENPQyrVxAkQqxPgQ==",
+ "dev": true,
+ "license": "MIT",
+ "engines": {
+ "node": ">=6.0.0"
+ }
+ },
+ "node_modules/wcwidth": {
+ "version": "1.0.1",
+ "resolved": "https://registry.npmjs.org/wcwidth/-/wcwidth-1.0.1.tgz",
+ "integrity": "sha512-XHPEwS0q6TaxcvG85+8EYkbiCux2XtWG2mkc47Ng2A77BQu9+DqIOJldST4HgPkuea7dvKSj5VgX3P1d4rW8Tg==",
+ "dev": true,
+ "license": "MIT",
+ "dependencies": {
+ "defaults": "^1.0.3"
+ }
+ },
"node_modules/web-namespaces": {
"version": "2.0.1",
"resolved": "https://registry.npmjs.org/web-namespaces/-/web-namespaces-2.0.1.tgz",
diff --git a/package.json b/package.json
index 3fcb19a4..a8a38fbb 100644
--- a/package.json
+++ b/package.json
@@ -29,6 +29,7 @@
"build": "vite build",
"lint": "eslint .",
"typecheck": "tsc -b --force",
+ "cycles": "madge --circular --extensions ts,tsx src",
"test": "vitest run",
"preview": "vite preview",
"tauri": "tauri",
@@ -77,6 +78,7 @@
"eslint-plugin-react-hooks": "^7.0.1",
"eslint-plugin-react-refresh": "^0.5.2",
"globals": "^17.4.0",
+ "madge": "^8.0.0",
"typescript": "~5.9.3",
"typescript-eslint": "^8.57.0",
"vite": "^8.0.1",
diff --git a/src/api/comfyui-graph.ts b/src/api/comfyui-graph.ts
new file mode 100644
index 00000000..82a77117
--- /dev/null
+++ b/src/api/comfyui-graph.ts
@@ -0,0 +1,75 @@
+/**
+ * Reine ComfyUI-Graph-Bausteine: Funktionen, die aus Parametern ein Stück
+ * Prompt-JSON bauen und dafür nichts brauchen — kein HTTP, keinen Store, kein
+ * anderes Modul.
+ *
+ * Audit W-T2: Beide standen in api/dynamic-workflow.ts, und api/comfyui.ts hat
+ * sie sich für seine älteren Video-Builder mit `await import('./dynamic-workflow')`
+ * mitten in der Funktion geholt — weil dynamic-workflow.ts umgekehrt
+ * classifyModel/findMatchingVAE/findMatchingCLIP aus comfyui.ts zieht. Das war
+ * kein Code-Splitting, sondern eine versteckte Kante: dieselbe Datei lag ohnehin
+ * im selben Chunk, der dynamische Import hat nur den Zyklus unsichtbar gemacht
+ * (comfyui → dynamic-workflow → comfyui, und einmal weiter über comfyui-nodes).
+ *
+ * Die ehrliche Auflösung ist nicht "später importieren", sondern "hier gibt es
+ * nichts zu zyklen": das Gemeinsame liegt jetzt in einem blattnahen Modul, das
+ * beide Seiten statisch importieren. dynamic-workflow.ts re-exportiert beide
+ * Namen, damit kein Aufrufer und kein Test seinen Importpfad ändern muss.
+ */
+
+// ─── Output filename slug (David 2026-06-11) ───
+//
+// Generated media used to be `locally_uncensored_00123_.png` /
+// `locally_uncensored_vid_00011.mp4` — opaque. Now the ComfyUI SaveImage /
+// VHS `filename_prefix` is derived from the PROMPT, so a file is
+// `red_apple_on_white_plate_00001_.png`. That makes the result string
+// self-descriptive, so a follow-up "animate the red-apple image" can pass the
+// recognisable filename straight back. ComfyUI still appends its own
+// `_NNNNN_` counter, so uniqueness is preserved.
+//
+// Exported + pure for the unit tests.
+export function promptFilenamePrefix(prompt: string | undefined, isVideo: boolean): string {
+ const slug = (prompt || '')
+ .toLowerCase()
+ .replace(/[^a-z0-9]+/g, '_')
+ .replace(/^_+|_+$/g, '')
+ .split('_')
+ .filter(Boolean)
+ .slice(0, 6) // first ~6 words keep it readable
+ .join('_')
+ .slice(0, 48)
+ .replace(/_+$/g, '')
+ if (!slug) return isVideo ? 'locally_uncensored_vid' : 'locally_uncensored'
+ // Keep a short tag so a folder full of generations is still recognisably ours
+ // and videos never collide with the still they were made from.
+ return isVideo ? `${slug}__vid` : slug
+}
+
+/** Decode node for video latents: tiled whenever the install has the node.
+ * A full-frame WanVAE decode next to a resident 14B UNet left 312 MB of VRAM
+ * on a 12 GB card; CUDA paged through the Windows driver instead of throwing,
+ * so ComfyUI's own OOM-then-tiled retry never fired and the decode ran 45+
+ * minutes at "GPU 100%" (live, David 2026-08-02). Tiles keep the working set
+ * flat for a quality-neutral overlap cost.
+ *
+ * ALL four tiling fields are sent. The live validator refuses a prompt that
+ * omits a required-with-default field ("Node 8 (VAEDecodeTiled): Required
+ * input is missing" three times, e2e 2026-08-02), and cores old enough to
+ * lack the overlap/temporal fields simply ignore unknown inputs. Values are
+ * the node's own defaults except tile_size, halved for the low-VRAM cards
+ * this exists for. Image decodes stay on plain VAEDecode. */
+export function videoDecodeNode(
+ samplesRef: [string, number],
+ vaeRef: [string, number],
+ hasTiled: boolean,
+): Record<string, any> {
+ return hasTiled
+ ? {
+ class_type: 'VAEDecodeTiled',
+ inputs: {
+ samples: samplesRef, vae: vaeRef,
+ tile_size: 256, overlap: 64, temporal_size: 64, temporal_overlap: 8,
+ },
+ }
+ : { class_type: 'VAEDecode', inputs: { samples: samplesRef, vae: vaeRef } }
+}
diff --git a/src/api/comfyui-nodes.ts b/src/api/comfyui-nodes.ts
index 41ade5b4..f30f5dfb 100644
--- a/src/api/comfyui-nodes.ts
+++ b/src/api/comfyui-nodes.ts
@@ -1,9 +1,13 @@
import { comfyuiUrl, localFetch } from './backend'
import { log } from '../lib/logger'
import { readComboOptions } from './comfyui-enum'
-// Type-only import — erased at runtime, so it cannot form a comfyui.ts ↔
-// comfyui-nodes.ts import cycle. classifyModel/MODEL_TYPE_DEFAULTS (runtime
-// values) are pulled via a DYNAMIC import inside getModelCapabilities() below.
+// Audit W-T2: classifyModel/MODEL_TYPE_DEFAULTS kamen hier per `await import()`
+// mitten in getModelCapabilities() herein, „so this module never forms a runtime
+// import cycle". Den Kreis gab es (comfyui → dynamic-workflow → comfyui-nodes →
+// comfyui), aber er lief über eine Kante, die comfyui.ts gar nicht haben durfte
+// — die ist weg (siehe comfyui-graph.ts). comfyui.ts importiert dieses Modul
+// nicht, also ist ein ganz normaler statischer Import hier die ehrliche Form.
+import { classifyModel, MODEL_TYPE_DEFAULTS } from './comfyui'
import type { ModelType } from './comfyui'
// ─── Types ───
@@ -281,9 +285,6 @@ export async function getModelCapabilities(model: string): Promise<ModelCapabili
return null
}
- // classifyModel + MODEL_TYPE_DEFAULTS are runtime VALUES from comfyui.ts. Import
- // them DYNAMICALLY so this module never forms a runtime import cycle.
- const { classifyModel, MODEL_TYPE_DEFAULTS } = await import('./comfyui')
const type = classifyModel(model)
const caps: ModelCapabilities = { modelType: type, usesKSampler: true, discoveryErrors: [] }
diff --git a/src/api/comfyui.ts b/src/api/comfyui.ts
index 4525eb1e..dfbfde7a 100644
--- a/src/api/comfyui.ts
+++ b/src/api/comfyui.ts
@@ -3,6 +3,17 @@ import { log } from "../lib/logger"
import { LU_CLIENT_PREFIX } from "./comfyui-ws"
import { nodeComboOptions } from "./comfyui-enum"
import { resolveRunSeed } from '../lib/run-seed'
+// Audit W-T2: videoDecodeNode/promptFilenamePrefix kamen hier bis eben per
+// `await import('./dynamic-workflow')` mitten in den Buildern herein — ein
+// dynamischer Import, der nur den Zyklus comfyui ↔ dynamic-workflow
+// verdeckt hat. Beide sind reine Graph-Bausteine und wohnen jetzt in
+// comfyui-graph.ts, das nichts importiert.
+import { videoDecodeNode, promptFilenamePrefix } from './comfyui-graph'
+// Audit W-T2: der Katalog kam bis eben per `await import('./discover')` in
+// getKnownFileSizes() herein, „to break the cycle at runtime". Die
+// Bundle-Daten gehören weder hierher noch nach discover.ts — sie liegen
+// jetzt in model-bundles.ts, das beide Seiten statisch lesen.
+import { getImageBundles, getVideoBundles } from './model-bundles'
// ─── Control-plane fetch timeouts ───
//
@@ -769,16 +780,12 @@ export async function getAnimateDiffModels(): Promise<string[]> {
// ─── Partial Download Filter ───
// Filters out files that exist on disk but are incomplete (< 90% of expected size).
-// Uses known bundle file sizes from discover.ts. Unknown files pass through.
+// Uses known bundle file sizes from model-bundles.ts. Unknown files pass through.
let _knownFileSizes: Map<string, { subfolder: string; expectedBytes: number }> | null = null
async function getKnownFileSizes(): Promise<Map<string, { subfolder: string; expectedBytes: number }>> {
if (_knownFileSizes) return _knownFileSizes
- // Dynamic import (not CommonJS require) — discover.ts imports back into
- // comfyui.ts for classification helpers, so we defer the import to break
- // the cycle at runtime instead of at module init.
- const { getImageBundles, getVideoBundles } = await import('./discover')
_knownFileSizes = new Map()
for (const bundle of [...getImageBundles(), ...getVideoBundles()]) {
for (const f of (bundle as any).files) {
@@ -2002,7 +2009,6 @@ export async function buildWanVideoWorkflow(params: VideoParams): Promise<Record
const vae = await findMatchingVAE('wan')
const clip = await findMatchingCLIP('wan')
- const { videoDecodeNode } = await import('./dynamic-workflow')
const hasTiledDecode = await nodeExists('VAEDecodeTiled')
const workflow: Record<string, any> = {
@@ -2026,7 +2032,6 @@ export async function buildWanVideoWorkflow(params: VideoParams): Promise<Record
// Use SaveAnimatedWEBP if available, otherwise fall back to SaveImage (frame
// sequence). Prompt-based prefix (David 2026-06-11) — the dynamic builder got
// this in c40d13f, this legacy T2V path still wrote locally_uncensored_vid.
- const { promptFilenamePrefix } = await import('./dynamic-workflow')
const vidPrefix = promptFilenamePrefix(params.prompt, true)
if (hasSaveWEBP) {
workflow['9'] = {
@@ -2052,7 +2057,6 @@ export async function buildAnimateDiffWorkflow(params: VideoParams): Promise<Rec
// AnimateDiff: batch_size=1, motion model handles temporal dimension
const hasVHS = await nodeExists('VHS_VideoCombine')
- const { videoDecodeNode } = await import('./dynamic-workflow')
const hasTiledDecode = await nodeExists('VAEDecodeTiled')
const workflow: Record<string, any> = {
diff --git a/src/api/discover.ts b/src/api/discover.ts
index 04697c78..f5c6afae 100644
--- a/src/api/discover.ts
+++ b/src/api/discover.ts
@@ -2,74 +2,27 @@ import { backendCall, fetchExternal } from "./backend"
import { getCheckpoints, getDiffusionModels, getVAEModels, getCLIPModels, getGgufUnetModels, getAnimateDiffModels, getLoraModels, filterPartialFiles, refreshComfyModels } from "./comfyui"
import type { ProviderId } from "./providers/types"
import { log } from "../lib/logger"
-
-export interface DiscoverModel {
- name: string
- description: string
- pulls: string
- tags: string[]
- updated: string
- url?: string
- // For direct download
- downloadUrl?: string
- filename?: string
- subfolder?: string // ComfyUI models subfolder: checkpoints, diffusion_models, vae, text_encoders
- sizeGB?: number
- // Vision projector that belongs to `downloadUrl`. A text GGUF carries no
- // image tower: llama.cpp keeps it in a separate mmproj file and only sees
- // images when the server is started with `--mmproj`. When this is set the
- // download writes BOTH files into the model folder and the built-in engine
- // picks the projector up by name (see `mmprojFileName`). Ollama entries never
- // need it, their tag already ships a projector layer.
- mmprojUrl?: string
- mmprojSizeGB?: number
- // Discovery flags
- hot?: boolean // Featured/trending model
- agent?: boolean // Supports Agent Mode tool calling
- released?: string // Release date YYYY-MM for sorting (newest first)
- // F4 (juliandiggins-stack GH#21): explicit CPU-only / ≤8 GB RAM
- // tag. Surfaces a green "CPU-friendly" badge in DiscoverModels and
- // exposes the optional "Lightweight" filter. Set true for ≤4B
- // unfiltered models we have personally test-loaded on a CPU-only
- // 8 GB box.
- lightweight?: boolean
- // Multi-provider
- provider?: ProviderId // Which provider this model belongs to
- providerName?: string // Display name of the provider
- canPull?: boolean // false = no download/pull capability (cloud/external)
- ollamaModel?: string // Ollama model tag for `ollama pull` (e.g. 'qwen3.6')
- // Model Hub grouping (2.5.8 redesign): entries that are the SAME model in a
- // different quant share a `group` and render as ONE card with a size picker.
- // Different parameter sizes stay separate cards on purpose.
- group?: string
- // Optional hand-written one-liner for the card. When absent the card derives
- // a short line from `description` (text after the first "·", first sentence).
- blurb?: string
- /**
- * SHA256 of the file at `downloadUrl`, 64 hex characters.
- *
- * The only thing that can tell a complete multi-gigabyte model from a
- * plausible-looking truncated one. `sizeGB` cannot: it is a rounded human
- * number ("9.2"), which is why the old completeness check ran on a 10 %
- * tolerance and accepted a download that died at 91 %.
- *
- * Optional on purpose. HuggingFace states this digest for every LFS file
- * (`lfs.oid` in the tree API, which `resolveHfGgufFiles` now reads), but the
- * hand-written catalog entries below carry none yet. When it is absent the
- * download is checked against the server's exact byte count and the Rust side
- * logs, per file, that the CONTENT went unverified.
- */
- sha256?: string
-}
-
-export interface DownloadProgress {
- progress: number
- total: number
- speed: number
- filename: string
- status: 'connecting' | 'downloading' | 'pausing' | 'paused' | 'complete' | 'error'
- error?: string
-}
+import { waitForModelsVisible } from "../lib/bundle-install"
+import type { DownloadProgress } from "../types/downloads"
+import type { DiscoverModel, ModelBundle } from "./model-bundles"
+import {
+ CUSTOM_NODE_REGISTRY,
+ getImageBundles, getVideoBundles, getAudioBundles, getLipsyncBundles, getMotionBundles,
+} from "./model-bundles"
+
+// Katalog + Formen liegen in model-bundles.ts (siehe dort). Re-Export, damit
+// bestehende Importpfade unverändert bleiben.
+export type { DiscoverModel, ModelBundle, CustomNodeDef } from './model-bundles'
+export {
+ CUSTOM_NODE_REGISTRY,
+ getImageBundles, getImageModelsDiscover, getVideoBundles,
+ getAudioBundles, getLipsyncBundles, getMotionBundles,
+} from './model-bundles'
+
+// Die Fortschrittsform lebt in types/downloads.ts, damit lib/bundle-install.ts
+// sie lesen kann, ohne dieses Modul zu importieren. Re-Export, damit bestehende
+// Importpfade unverändert bleiben.
+export type { DownloadProgress }
// ─── Download API ───
@@ -553,7 +506,6 @@ function confirmVisibleOrAccuse(filename: string): Promise<void> {
async function runVisibilityConfirmation(filename: string): Promise<void> {
try {
- const { waitForModelsVisible } = await import('../lib/bundle-install')
const left = await waitForModelsVisible({
missing: () => modelsNotVisibleInComfy([filename]),
refresh: async () => {
@@ -643,9 +595,6 @@ export async function installBundleComplete(bundle: ModelBundle): Promise<void>
// folders, which was simply untrue. Same cure as the Create install and the
// download poller, on a much shorter clock. The rescan also refreshes the
// set every later file of this bundle is judged against.
- // waitForModelsVisible is pulled in here rather than at the top because
- // bundle-install.ts points back at this module.
- const { waitForModelsVisible } = await import('../lib/bundle-install')
const left = await waitForModelsVisible({
missing: async () => (visibleBases?.has(base) ? [] : [filename]),
refresh: async () => {
@@ -1489,1112 +1438,6 @@ export function catalogFilenames(): string[] {
return names
}
-// ─── Image Model Bundles ───
-
-export function getImageBundles(): ModelBundle[] {
- return [
- {
- name: 'Juggernaut XL V9 (Photorealistic)',
- description: 'Best photorealistic SDXL checkpoint. All in one. Just install and generate.',
- tags: ['SDXL', 'Photorealistic', '1024px'],
- uncensored: true,
- verified: true,
- totalSizeGB: 6.5,
- vramRequired: '6-8 GB',
- workflow: 'sdxl',
- url: 'https://huggingface.co/RunDiffusion/Juggernaut-XL-v9',
- files: [
- {
- name: 'Juggernaut XL V9 Photo v2',
- description: 'SDXL checkpoint · includes VAE and CLIP.',
- pulls: '', tags: ['Checkpoint', '6.5 GB'], updated: '',
- downloadUrl: 'https://huggingface.co/RunDiffusion/Juggernaut-XL-v9/resolve/main/Juggernaut-XL_v9_RunDiffusionPhoto_v2.safetensors',
- filename: 'Juggernaut-XL_v9.safetensors', subfolder: 'checkpoints', sizeGB: 6.5,
- },
- ],
- },
- {
- name: 'RealVisXL V5 (Photorealistic)',
- description: 'Great for portraits, landscapes, and product photos. Ready to use.',
- tags: ['SDXL', 'Photorealistic', '1024px'],
- uncensored: true,
- verified: true,
- totalSizeGB: 6.5,
- vramRequired: '6-8 GB',
- workflow: 'sdxl',
- url: 'https://huggingface.co/SG161222/RealVisXL_V5.0',
- files: [
- {
- name: 'RealVisXL V5 FP16',
- description: 'SDXL checkpoint · includes VAE and CLIP.',
- pulls: '', tags: ['Checkpoint', '6.5 GB'], updated: '',
- downloadUrl: 'https://huggingface.co/SG161222/RealVisXL_V5.0/resolve/main/RealVisXL_V5.0_fp16.safetensors',
- filename: 'RealVisXL_V5.safetensors', subfolder: 'checkpoints', sizeGB: 6.5,
- },
- ],
- },
- {
- name: 'FLUX.1 [schnell] FP8 (Fast & Modern)',
- description: 'State of the art image gen. 1 to 4 steps for fast results. Complete package with all required encoders.',
- tags: ['FLUX', 'Fast', 'FP8', '1024px'],
- verified: true,
- totalSizeGB: 21,
- vramRequired: '8-10 GB',
- workflow: 'flux',
- url: 'https://huggingface.co/Comfy-Org/flux1-schnell',
- files: [
- {
- name: 'FLUX.1 schnell FP8',
- description: 'The main FLUX diffusion model (quantized).',
- pulls: '', tags: ['Model', '16 GB'], updated: '',
- downloadUrl: 'https://huggingface.co/Comfy-Org/flux1-schnell/resolve/main/flux1-schnell-fp8.safetensors',
- filename: 'flux1-schnell-fp8.safetensors', subfolder: 'diffusion_models', sizeGB: 16.1,
- },
- {
- name: 'FLUX VAE',
- description: 'Required autoencoder for FLUX.1 (16 channel ae).',
- pulls: '', tags: ['VAE', '335 MB'], updated: '',
- downloadUrl: 'https://huggingface.co/Comfy-Org/z_image_turbo/resolve/main/split_files/vae/ae.safetensors',
- filename: 'ae.safetensors', subfolder: 'vae', sizeGB: 0.3,
- },
- {
- name: 'T5-XXL Text Encoder (FP8)',
- description: 'Required text encoder for FLUX prompt understanding.',
- pulls: '', tags: ['Text Encoder', '4.6 GB'], updated: '',
- downloadUrl: 'https://huggingface.co/comfyanonymous/flux_text_encoders/resolve/main/t5xxl_fp8_e4m3fn.safetensors',
- filename: 't5xxl_fp8_e4m3fn.safetensors', subfolder: 'text_encoders', sizeGB: 4.6,
- },
- {
- name: 'CLIP-L Text Encoder',
- description: 'Required secondary text encoder for FLUX.',
- pulls: '', tags: ['Text Encoder', '240 MB'], updated: '',
- downloadUrl: 'https://huggingface.co/comfyanonymous/flux_text_encoders/resolve/main/clip_l.safetensors',
- filename: 'clip_l.safetensors', subfolder: 'text_encoders', sizeGB: 0.2,
- },
- ],
- },
- {
- name: 'FLUX.1 [dev] FP8 (High Quality)',
- description: 'Highest quality FLUX. More steps but better results. Complete package with all required encoders.',
- tags: ['FLUX', 'Quality', 'FP8', '1024px'],
- verified: true,
- totalSizeGB: 21,
- vramRequired: '8-10 GB',
- workflow: 'flux',
- url: 'https://huggingface.co/Comfy-Org/flux1-dev',
- files: [
- {
- name: 'FLUX.1 dev FP8',
- description: 'The main FLUX diffusion model (dev, quantized).',
- pulls: '', tags: ['Model', '16 GB'], updated: '',
- downloadUrl: 'https://huggingface.co/Comfy-Org/flux1-dev/resolve/main/flux1-dev-fp8.safetensors',
- filename: 'flux1-dev-fp8.safetensors', subfolder: 'diffusion_models', sizeGB: 16.1,
- },
- {
- name: 'FLUX VAE',
- description: 'Required autoencoder for FLUX.1 (16 channel ae).',
- pulls: '', tags: ['VAE', '335 MB'], updated: '',
- downloadUrl: 'https://huggingface.co/Comfy-Org/z_image_turbo/resolve/main/split_files/vae/ae.safetensors',
- filename: 'ae.safetensors', subfolder: 'vae', sizeGB: 0.3,
- },
- {
- name: 'T5-XXL Text Encoder (FP8)',
- description: 'Required text encoder for FLUX prompt understanding.',
- pulls: '', tags: ['Text Encoder', '4.6 GB'], updated: '',
- downloadUrl: 'https://huggingface.co/comfyanonymous/flux_text_encoders/resolve/main/t5xxl_fp8_e4m3fn.safetensors',
- filename: 't5xxl_fp8_e4m3fn.safetensors', subfolder: 'text_encoders', sizeGB: 4.6,
- },
- {
- name: 'CLIP-L Text Encoder',
- description: 'Required secondary text encoder for FLUX.',
- pulls: '', tags: ['Text Encoder', '240 MB'], updated: '',
- downloadUrl: 'https://huggingface.co/comfyanonymous/flux_text_encoders/resolve/main/clip_l.safetensors',
- filename: 'clip_l.safetensors', subfolder: 'text_encoders', sizeGB: 0.2,
- },
- ],
- },
- {
- name: 'FLUX 2 Klein 4B (Next Gen)',
- description: 'Latest FLUX architecture. Fastest FLUX model with stunning quality. Includes Qwen 3 text encoder.',
- tags: ['FLUX 2', 'Fast', '1024px'],
- verified: true,
- totalSizeGB: 11.1,
- vramRequired: '8-10 GB',
- workflow: 'flux2',
- url: 'https://huggingface.co/Comfy-Org/vae-text-encorder-for-flux-klein-4b',
- files: [
- {
- name: 'FLUX 2 Klein Base 4B',
- description: 'FLUX 2 Klein diffusion model · next gen image generation.',
- pulls: '', tags: ['Diffusion Model', '7.2 GB'], updated: 'New',
- downloadUrl: 'https://huggingface.co/Comfy-Org/vae-text-encorder-for-flux-klein-4b/resolve/main/split_files/diffusion_models/flux-2-klein-base-4b.safetensors',
- filename: 'flux-2-klein-base-4b.safetensors', subfolder: 'diffusion_models', sizeGB: 7.2,
- },
- {
- name: 'FLUX 2 VAE',
- description: 'Required autoencoder for FLUX 2.',
- pulls: '', tags: ['VAE', '335 MB'], updated: '',
- downloadUrl: 'https://huggingface.co/Comfy-Org/vae-text-encorder-for-flux-klein-4b/resolve/main/split_files/vae/flux2-vae.safetensors',
- filename: 'flux2-vae.safetensors', subfolder: 'vae', sizeGB: 0.3,
- },
- {
- name: 'Qwen 3 4B Text Encoder (FP4)',
- description: 'Required text encoder for FLUX 2 Klein prompt understanding.',
- pulls: '', tags: ['Text Encoder', '~3.5 GB'], updated: 'New',
- downloadUrl: 'https://huggingface.co/Comfy-Org/vae-text-encorder-for-flux-klein-4b/resolve/main/split_files/text_encoders/qwen_3_4b_fp4_flux2.safetensors',
- filename: 'qwen_3_4b_fp4_flux2.safetensors', subfolder: 'text_encoders', sizeGB: 3.5,
- },
- ],
- },
- {
- name: 'Z-Image Turbo (Unfiltered, Fast)',
- description: 'Explicitly unfiltered image model. 8 to 15 seconds per image. No safety filters. Text to Image and Image to Image.',
- tags: ['Z-Image', 'Unfiltered', 'Fast', '1024px'],
- uncensored: true,
- verified: true,
- totalSizeGB: 19.3,
- vramRequired: '10-16 GB',
- workflow: 'zimage',
- url: 'https://huggingface.co/Comfy-Org/z_image_turbo',
- files: [
- {
- name: 'Z-Image Turbo BF16',
- description: 'Unfiltered diffusion model · no safety filters, fast generation.',
- pulls: '', tags: ['Diffusion Model', '11.5 GB'], updated: 'New',
- downloadUrl: 'https://huggingface.co/Comfy-Org/z_image_turbo/resolve/main/split_files/diffusion_models/z_image_turbo_bf16.safetensors',
- filename: 'z_image_turbo_bf16.safetensors', subfolder: 'diffusion_models', sizeGB: 11.5,
- },
- {
- name: 'Z-Image VAE',
- description: 'Required autoencoder for Z-Image Turbo.',
- pulls: '', tags: ['VAE', '335 MB'], updated: '',
- downloadUrl: 'https://huggingface.co/Comfy-Org/z_image_turbo/resolve/main/split_files/vae/ae.safetensors',
- filename: 'ae.safetensors', subfolder: 'vae', sizeGB: 0.3,
- },
- {
- name: 'Qwen 3 4B Text Encoder',
- description: 'Required text encoder for Z-Image Turbo prompt understanding.',
- pulls: '', tags: ['Text Encoder', '7.5 GB'], updated: '',
- downloadUrl: 'https://huggingface.co/Comfy-Org/z_image_turbo/resolve/main/split_files/text_encoders/qwen_3_4b.safetensors',
- filename: 'qwen_3_4b.safetensors', subfolder: 'text_encoders', sizeGB: 7.5,
- },
- ],
- },
- {
- name: 'Z-Image Base (Unfiltered, Quality)',
- description: 'Highest quality unfiltered model. 30 to 50 steps for maximum detail and composition diversity. Shares VAE/CLIP with Z-Image Turbo.',
- tags: ['Z-Image', 'Unfiltered', 'Quality', '1024px'],
- uncensored: true,
- verified: true,
- totalSizeGB: 19.3,
- vramRequired: '10-16 GB',
- workflow: 'zimage',
- url: 'https://huggingface.co/Comfy-Org/z_image',
- files: [
- {
- name: 'Z-Image Base BF16',
- description: 'Unfiltered diffusion model · maximum quality, more compositional diversity.',
- pulls: '', tags: ['Diffusion Model', '11.5 GB'], updated: 'New',
- downloadUrl: 'https://huggingface.co/Comfy-Org/z_image/resolve/main/split_files/diffusion_models/z_image_bf16.safetensors',
- filename: 'z_image_bf16.safetensors', subfolder: 'diffusion_models', sizeGB: 11.5,
- },
- {
- name: 'Z-Image VAE',
- description: 'Required autoencoder · shared with Z-Image Turbo.',
- pulls: '', tags: ['VAE', '335 MB'], updated: '',
- downloadUrl: 'https://huggingface.co/Comfy-Org/z_image/resolve/main/split_files/vae/ae.safetensors',
- filename: 'ae.safetensors', subfolder: 'vae', sizeGB: 0.3,
- },
- {
- name: 'Qwen 3 4B Text Encoder',
- description: 'Required text encoder · shared with Z-Image Turbo.',
- pulls: '', tags: ['Text Encoder', '7.5 GB'], updated: '',
- downloadUrl: 'https://huggingface.co/Comfy-Org/z_image/resolve/main/split_files/text_encoders/qwen_3_4b.safetensors',
- filename: 'qwen_3_4b.safetensors', subfolder: 'text_encoders', sizeGB: 7.5,
- },
- ],
- },
- {
- name: 'DreamShaper XL Turbo V2 (Anime/Stylized)',
- description: 'Fast anime and stylized art. Turbo mode for 4 step generation. Great for creative work.',
- tags: ['SDXL', 'Anime', 'Stylized', 'Turbo', '1024px'],
- uncensored: true,
- verified: true,
- totalSizeGB: 6.5,
- vramRequired: '6-8 GB',
- workflow: 'sdxl',
- url: 'https://huggingface.co/Lykon/dreamshaper-xl-v2-turbo',
- files: [
- {
- name: 'DreamShaper XL Turbo V2',
- description: 'SDXL checkpoint · anime and stylized art, turbo mode.',
- pulls: '', tags: ['Checkpoint', '6.5 GB'], updated: '',
- downloadUrl: 'https://huggingface.co/Lykon/dreamshaper-xl-v2-turbo/resolve/main/DreamShaperXL_Turbo_V2-SFW.safetensors',
- filename: 'DreamShaperXL_Turbo_V2.safetensors', subfolder: 'checkpoints', sizeGB: 6.5,
- },
- ],
- },
- {
- name: 'ERNIE-Image Turbo',
- description: 'Baidu ERNIE-Image Turbo · 8B DiT, 8 steps, 1024x1024. Fastest ERNIE variant with Ministral-3B encoder + Prompt Enhancer.',
- tags: ['ernie_image', 'Image', '1024x1024'],
- uncensored: false,
- verified: true,
- totalSizeGB: 28.9,
- vramRequired: '24 GB',
- workflow: 'ernie_image',
- url: 'https://huggingface.co/Comfy-Org/ERNIE-Image',
- files: [
- {
- name: 'ERNIE-Image Turbo (DiT 8B)',
- description: 'Baidu ERNIE-Image Turbo diffusion model. 8 steps, fast inference.',
- pulls: '', tags: ['Diffusion Model', '15.0 GB'], updated: 'New',
- downloadUrl: 'https://huggingface.co/Comfy-Org/ERNIE-Image/resolve/main/diffusion_models/ernie-image-turbo.safetensors',
- filename: 'ernie-image-turbo.safetensors', subfolder: 'diffusion_models', sizeGB: 15.0,
- },
- {
- name: 'Ministral-3-3B Text Encoder',
- description: 'Main text encoder (Ministral-3B) for ERNIE-Image prompt understanding.',
- pulls: '', tags: ['Text Encoder', '7.2 GB'], updated: 'New',
- downloadUrl: 'https://huggingface.co/Comfy-Org/ERNIE-Image/resolve/main/text_encoders/ministral-3-3b.safetensors',
- filename: 'ministral-3-3b.safetensors', subfolder: 'text_encoders', sizeGB: 7.2,
- },
- {
- name: 'ERNIE Prompt Enhancer',
- description: 'Optional prompt enhancer that expands short prompts into richer descriptions.',
- pulls: '', tags: ['Text Encoder', '6.4 GB'], updated: 'New',
- downloadUrl: 'https://huggingface.co/Comfy-Org/ERNIE-Image/resolve/main/text_encoders/ernie-image-prompt-enhancer.safetensors',
- filename: 'ernie-image-prompt-enhancer.safetensors', subfolder: 'text_encoders', sizeGB: 6.4,
- },
- {
- name: 'FLUX 2 VAE',
- description: 'Required autoencoder · shared with FLUX 2.',
- pulls: '', tags: ['VAE', '335 MB'], updated: '',
- downloadUrl: 'https://huggingface.co/Comfy-Org/ERNIE-Image/resolve/main/vae/flux2-vae.safetensors',
- filename: 'flux2-vae.safetensors', subfolder: 'vae', sizeGB: 0.3,
- },
- ],
- },
- {
- name: 'ERNIE-Image Base',
- description: 'Baidu ERNIE-Image Base · 8B DiT, 50 steps, 1024x1024. Highest quality ERNIE variant.',
- tags: ['ernie_image', 'Image', '1024x1024'],
- uncensored: false,
- verified: true,
- totalSizeGB: 28.9,
- vramRequired: '24 GB',
- workflow: 'ernie_image',
- url: 'https://huggingface.co/Comfy-Org/ERNIE-Image',
- files: [
- {
- name: 'ERNIE-Image Base (DiT 8B)',
- description: 'Baidu ERNIE-Image Base diffusion model. 50 steps, highest quality.',
- pulls: '', tags: ['Diffusion Model', '15.0 GB'], updated: 'New',
- downloadUrl: 'https://huggingface.co/Comfy-Org/ERNIE-Image/resolve/main/diffusion_models/ernie-image.safetensors',
- filename: 'ernie-image.safetensors', subfolder: 'diffusion_models', sizeGB: 15.0,
- },
- {
- name: 'Ministral-3-3B Text Encoder',
- description: 'Main text encoder (Ministral-3B) for ERNIE-Image prompt understanding.',
- pulls: '', tags: ['Text Encoder', '7.2 GB'], updated: 'New',
- downloadUrl: 'https://huggingface.co/Comfy-Org/ERNIE-Image/resolve/main/text_encoders/ministral-3-3b.safetensors',
- filename: 'ministral-3-3b.safetensors', subfolder: 'text_encoders', sizeGB: 7.2,
- },
- {
- name: 'ERNIE Prompt Enhancer',
- description: 'Optional prompt enhancer that expands short prompts into richer descriptions.',
- pulls: '', tags: ['Text Encoder', '6.4 GB'], updated: 'New',
- downloadUrl: 'https://huggingface.co/Comfy-Org/ERNIE-Image/resolve/main/text_encoders/ernie-image-prompt-enhancer.safetensors',
- filename: 'ernie-image-prompt-enhancer.safetensors', subfolder: 'text_encoders', sizeGB: 6.4,
- },
- {
- name: 'FLUX 2 VAE',
- description: 'Required autoencoder · shared with FLUX 2.',
- pulls: '', tags: ['VAE', '335 MB'], updated: '',
- downloadUrl: 'https://huggingface.co/Comfy-Org/ERNIE-Image/resolve/main/vae/flux2-vae.safetensors',
- filename: 'flux2-vae.safetensors', subfolder: 'vae', sizeGB: 0.3,
- },
- ],
- },
- {
- name: 'SDXL VAE (fp16-fix) · addon',
- description: 'Standard SDXL VAE (madebyollin fp16-fix). Optional VAE override for any SDXL checkpoint; fixes washed out / desaturated output on some models. After download, pick it under Advanced → VAE.',
- tags: ['SDXL', 'VAE', 'Addon'],
- verified: true,
- totalSizeGB: 0.33,
- vramRequired: 'any',
- workflow: 'sdxl',
- url: 'https://huggingface.co/madebyollin/sdxl-vae-fp16-fix',
- files: [
- {
- name: 'SDXL VAE fp16-fix',
- description: 'Drop in SDXL VAE → models/vae.',
- pulls: '', tags: ['VAE', '335 MB'], updated: '',
- downloadUrl: 'https://huggingface.co/madebyollin/sdxl-vae-fp16-fix/resolve/main/sdxl_vae.safetensors',
- filename: 'sdxl_vae.safetensors', subfolder: 'vae', sizeGB: 0.33,
- },
- ],
- },
- {
- name: 'Pixel Art XL · SDXL LoRA',
- description: 'nerijs Pixel Art XL · turns any SDXL model into crisp pixel art. A clearly visible style LoRA. After download, pick it under Advanced → LoRA and raise the strength.',
- tags: ['SDXL', 'LoRA', 'Style'],
- verified: true,
- totalSizeGB: 0.17,
- vramRequired: 'any',
- workflow: 'sdxl',
- url: 'https://huggingface.co/nerijs/pixel-art-xl',
- files: [
- {
- name: 'Pixel Art XL LoRA',
- description: 'SDXL pixel art style LoRA → models/loras.',
- pulls: '', tags: ['LoRA', '170 MB'], updated: '',
- downloadUrl: 'https://huggingface.co/nerijs/pixel-art-xl/resolve/main/pixel-art-xl.safetensors',
- filename: 'pixel-art-xl.safetensors', subfolder: 'loras', sizeGB: 0.17,
- },
- ],
- },
- ]
-}
-
-// Flat list for backwards compat
-export function getImageModelsDiscover(): DiscoverModel[] {
- const bundles = getImageBundles()
- const files: DiscoverModel[] = []
- for (const b of bundles) files.push(...b.files)
- const seen = new Set<string>()
- return files.filter(f => {
- if (!f.filename || seen.has(f.filename)) return false
- seen.add(f.filename)
- return true
- })
-}
-
-// ─── Video Model Bundles ───
-// Each bundle contains ALL files needed for a working video workflow.
-// "Install All" downloads model + VAE + CLIP together.
-
-export interface CustomNodeDef {
- key: string
- repo: string
- name: string
-}
-
-export const CUSTOM_NODE_REGISTRY: Record<string, { repo: string; name: string; requiredNodes: string[] }> = {
- 'animatediff-evolved': {
- repo: 'https://github.com/Kosinkadink/ComfyUI-AnimateDiff-Evolved',
- name: 'ComfyUI-AnimateDiff-Evolved',
- requiredNodes: ['ADE_LoadAnimateDiffModel', 'ADE_ApplyAnimateDiffModelSimple', 'ADE_UseEvolvedSampling'],
- },
- 'cogvideox-wrapper': {
- repo: 'https://github.com/kijai/ComfyUI-CogVideoXWrapper',
- name: 'ComfyUI-CogVideoXWrapper',
- requiredNodes: ['CogVideoXModelLoader', 'CogVideoXCLIPLoader', 'CogVideoXTextEncode', 'CogVideoXEmptyLatents', 'CogVideoXSampler', 'CogVideoXVAEDecode'],
- },
- 'framepack-wrapper': {
- repo: 'https://github.com/kijai/ComfyUI-FramePackWrapper',
- name: 'ComfyUI-FramePackWrapper',
- requiredNodes: ['LoadFramePackModel', 'FramePackSampler'],
- },
- 'pyramidflow-wrapper': {
- repo: 'https://github.com/kijai/ComfyUI-PyramidFlowWrapper',
- name: 'ComfyUI-PyramidFlowWrapper',
- requiredNodes: ['PyramidFlowModelLoader', 'PyramidFlowVAELoader', 'PyramidFlowTextEncode', 'PyramidFlowSampler', 'PyramidFlowDecode'],
- },
- 'allegro': {
- repo: 'https://github.com/bombax-xiaoice/ComfyUI-Allegro',
- name: 'ComfyUI-Allegro',
- requiredNodes: ['AllegroModelLoader', 'AllegroTextEncode', 'AllegroSampler', 'AllegroDecoder'],
- },
- // VHS_VideoCombine · the ONLY ComfyUI node that produces actual .mp4 video
- // output. Without it, the workflow falls back to SaveAnimatedWEBP which
- // makes "video generation" emit an animated .webp file. Two reporters
- // (miguelkodoatie on Discord 2026-05-14, Turbulent_Tomato7559 on Reddit
- // 2026-05-10) hit this on v2.4.3/2.4.4: t2i works, t2v "succeeds" but the
- // output is a .webp that no video player will open. v2.4.4 added a
- // warning banner; v2.4.5 makes it a one-click install instead.
- 'videohelpersuite': {
- repo: 'https://github.com/Kosinkadink/ComfyUI-VideoHelperSuite',
- name: 'ComfyUI-VideoHelperSuite',
- requiredNodes: ['VHS_VideoCombine', 'VHS_LoadVideo'],
- },
- // Background removal (Create → Remove Background). ComfyUI-RMBG registers the
- // `RMBG` node · the exact class the capability probe + workflow builder look
- // for · and auto-downloads its cutout model (BiRefNet / RMBG-2.0, ~300 MB)
- // into ComfyUI/models/RMBG on first use. So the one-click action only needs to
- // install the node; the model lands on the first cutout run.
- 'rmbg': {
- repo: 'https://github.com/1038lab/ComfyUI-RMBG',
- name: 'ComfyUI-RMBG',
- requiredNodes: ['RMBG'],
- },
- // GGUF quant loader (city96). Lets the 2.5.8 lanes offer Q4 quants of the
- // 14B Wan models (S2V / Animate / NSFW finetunes) — the difference between
- // "needs 16 GB on disk and heavy offload" and "runs comfortably on 12 GB".
- // requirements.txt is just the gguf package, no exotic wheels.
- 'gguf': {
- repo: 'https://github.com/city96/ComfyUI-GGUF',
- name: 'ComfyUI-GGUF',
- requiredNodes: ['UnetLoaderGGUF'],
- },
- // Pose extraction for the local Motion Control lane (DWPose skeletons feed
- // WanAnimateToVideo / WanVaceToVideo). Its requirements pull the CPU
- // onnxruntime wheel — works on every Windows box, no GPU wheel roulette;
- // the DWPose onnx models auto-download on first run.
- 'controlnet-aux': {
- repo: 'https://github.com/Fannovel16/comfyui_controlnet_aux',
- name: 'comfyui_controlnet_aux',
- requiredNodes: ['DWPreprocessor'],
- },
-}
-
-export interface ModelBundle {
- name: string
- description: string
- tags: string[]
- totalSizeGB: number
- vramRequired: string
- workflow: string
- files: DiscoverModel[]
- url?: string
- hot?: boolean
- uncensored?: boolean
- customNodes?: string[] // keys into CUSTOM_NODE_REGISTRY
- i2v?: boolean // Image-to-Video model
- verified?: boolean // E2E tested and confirmed working
-}
-
-export function getVideoBundles(): ModelBundle[] {
- return [
- {
- name: 'Wan 2.1 · 1.3B (Lightweight)',
- description: 'Best for 8 to 10 GB VRAM GPUs. Generates 480p video. Fast and lightweight.',
- tags: ['Wan 2.1', '480p', 'Fast'],
- uncensored: true,
- verified: true,
- totalSizeGB: 9.2,
- vramRequired: '8-10 GB',
- workflow: 'wan',
- url: 'https://huggingface.co/Comfy-Org/Wan_2.1_ComfyUI_repackaged',
- files: [
- {
- name: 'Wan 2.1 T2V 1.3B Model',
- description: 'The main video generation model.',
- pulls: '', tags: ['Model', '2.5 GB'], updated: '',
- downloadUrl: 'https://huggingface.co/Comfy-Org/Wan_2.1_ComfyUI_repackaged/resolve/main/split_files/diffusion_models/wan2.1_t2v_1.3B_bf16.safetensors',
- filename: 'wan2.1_t2v_1.3B_bf16.safetensors', subfolder: 'diffusion_models', sizeGB: 2.5,
- },
- {
- name: 'Wan 2.1 VAE',
- description: 'Required video encoder/decoder.',
- pulls: '', tags: ['VAE', '200 MB'], updated: '',
- downloadUrl: 'https://huggingface.co/Comfy-Org/Wan_2.1_ComfyUI_repackaged/resolve/main/split_files/vae/wan_2.1_vae.safetensors',
- filename: 'wan_2.1_vae.safetensors', subfolder: 'vae', sizeGB: 0.2,
- },
- {
- name: 'Wan 2.1 CLIP (UMT5-XXL FP8)',
- description: 'Required text encoder.',
- pulls: '', tags: ['CLIP', '4.9 GB'], updated: '',
- downloadUrl: 'https://huggingface.co/Comfy-Org/Wan_2.1_ComfyUI_repackaged/resolve/main/split_files/text_encoders/umt5_xxl_fp8_e4m3fn_scaled.safetensors',
- filename: 'umt5_xxl_fp8_e4m3fn_scaled.safetensors', subfolder: 'text_encoders', sizeGB: 6.3,
- },
- ],
- },
- {
- name: 'Wan 2.1 · 14B FP8 (High Quality)',
- description: 'Best quality for 12+ GB VRAM. Generates up to 720p. Slower but much better results.',
- tags: ['Wan 2.1', '720p', 'Quality'],
- uncensored: true,
- verified: true,
- totalSizeGB: 20.5,
- vramRequired: '12+ GB',
- workflow: 'wan',
- url: 'https://huggingface.co/Comfy-Org/Wan_2.1_ComfyUI_repackaged',
- files: [
- {
- name: 'Wan 2.1 T2V 14B (FP8)',
- description: 'The main video generation model (quantized).',
- pulls: '', tags: ['Model', '14 GB'], updated: '',
- downloadUrl: 'https://huggingface.co/Comfy-Org/Wan_2.1_ComfyUI_repackaged/resolve/main/split_files/diffusion_models/wan2.1_t2v_14B_fp8_e4m3fn.safetensors',
- filename: 'wan2.1_t2v_14B_fp8.safetensors', subfolder: 'diffusion_models', sizeGB: 14.0,
- },
- {
- name: 'Wan 2.1 VAE',
- description: 'Required video encoder/decoder.',
- pulls: '', tags: ['VAE', '200 MB'], updated: '',
- downloadUrl: 'https://huggingface.co/Comfy-Org/Wan_2.1_ComfyUI_repackaged/resolve/main/split_files/vae/wan_2.1_vae.safetensors',
- filename: 'wan_2.1_vae.safetensors', subfolder: 'vae', sizeGB: 0.2,
- },
- {
- name: 'Wan 2.1 CLIP (UMT5-XXL FP8)',
- description: 'Required text encoder.',
- pulls: '', tags: ['CLIP', '4.9 GB'], updated: '',
- downloadUrl: 'https://huggingface.co/Comfy-Org/Wan_2.1_ComfyUI_repackaged/resolve/main/split_files/text_encoders/umt5_xxl_fp8_e4m3fn_scaled.safetensors',
- filename: 'umt5_xxl_fp8_e4m3fn_scaled.safetensors', subfolder: 'text_encoders', sizeGB: 6.3,
- },
- ],
- },
- {
- name: 'Wan 2.2 · TI2V 5B (Image + Text to Video)',
- description: 'Wan 2.2 TI2V-5B · ONE model for both text to video and faithful image to video (the clip opens on your source image). Native 1280×704 @ 24 fps, smooth 2 to 7 s clips. The best quality video model that fits 12 GB.',
- tags: ['Wan 2.2', '720p', 'I2V', 'T2V', 'Quality'],
- uncensored: true,
- verified: true,
- i2v: true,
- hot: true,
- totalSizeGB: 16.9,
- vramRequired: '12+ GB',
- workflow: 'wan22',
- url: 'https://huggingface.co/Comfy-Org/Wan_2.2_ComfyUI_Repackaged',
- files: [
- {
- name: 'Wan 2.2 TI2V 5B Model (FP16)',
- description: 'The unified text + image to video model.',
- pulls: '', tags: ['Model', '~9.3 GB'], updated: 'New',
- downloadUrl: 'https://huggingface.co/Comfy-Org/Wan_2.2_ComfyUI_Repackaged/resolve/main/split_files/diffusion_models/wan2.2_ti2v_5B_fp16.safetensors',
- filename: 'wan2.2_ti2v_5B_fp16.safetensors', subfolder: 'diffusion_models', sizeGB: 9.3,
- },
- {
- name: 'Wan 2.2 VAE',
- description: 'Required video encoder/decoder · the 2.2 VAE (NOT the 2.1 VAE: higher compression, different latent shape).',
- pulls: '', tags: ['VAE', '~1.3 GB'], updated: 'New',
- downloadUrl: 'https://huggingface.co/Comfy-Org/Wan_2.2_ComfyUI_Repackaged/resolve/main/split_files/vae/wan2.2_vae.safetensors',
- filename: 'wan2.2_vae.safetensors', subfolder: 'vae', sizeGB: 1.3,
- },
- {
- name: 'Wan CLIP (UMT5-XXL FP8)',
- description: 'Required text encoder · shared with Wan 2.1, so it is skipped if already installed.',
- pulls: '', tags: ['CLIP', '6.3 GB'], updated: '',
- downloadUrl: 'https://huggingface.co/Comfy-Org/Wan_2.1_ComfyUI_repackaged/resolve/main/split_files/text_encoders/umt5_xxl_fp8_e4m3fn_scaled.safetensors',
- filename: 'umt5_xxl_fp8_e4m3fn_scaled.safetensors', subfolder: 'text_encoders', sizeGB: 6.3,
- },
- ],
- },
- {
- name: 'HunyuanVideo 1.5 T2V FP8 (High Quality)',
- description: 'Tencent HunyuanVideo 1.5 · excellent temporal consistency and visual quality. 480p text to video with CFG distillation.',
- tags: ['HunyuanVideo 1.5', '480p', 'Quality'],
- uncensored: true,
- verified: true,
- totalSizeGB: 18.8,
- vramRequired: '12+ GB',
- workflow: 'hunyuan',
- url: 'https://huggingface.co/Comfy-Org/HunyuanVideo_1.5_repackaged',
- files: [
- {
- name: 'HunyuanVideo 1.5 T2V FP8',
- description: 'The main video generation model (480p, CFG distilled, quantized).',
- pulls: '', tags: ['Model', '7.8 GB'], updated: '',
- downloadUrl: 'https://huggingface.co/Comfy-Org/HunyuanVideo_1.5_repackaged/resolve/main/split_files/diffusion_models/hunyuanvideo1.5_480p_t2v_cfg_distilled_fp8_scaled.safetensors',
- filename: 'hunyuanvideo1.5_480p_t2v_fp8.safetensors', subfolder: 'diffusion_models', sizeGB: 7.8,
- },
- {
- name: 'HunyuanVideo 1.5 VAE',
- description: 'Required video encoder/decoder.',
- pulls: '', tags: ['VAE', '2.3 GB'], updated: '',
- downloadUrl: 'https://huggingface.co/Comfy-Org/HunyuanVideo_1.5_repackaged/resolve/main/split_files/vae/hunyuanvideo15_vae_fp16.safetensors',
- filename: 'hunyuanvideo15_vae_fp16.safetensors', subfolder: 'vae', sizeGB: 2.3,
- },
- {
- name: 'Qwen 2.5 VL 7B Text Encoder (FP8)',
- description: 'Required text encoder for HunyuanVideo 1.5.',
- pulls: '', tags: ['Text Encoder', '8.8 GB'], updated: '',
- downloadUrl: 'https://huggingface.co/Comfy-Org/HunyuanVideo_1.5_repackaged/resolve/main/split_files/text_encoders/qwen_2.5_vl_7b_fp8_scaled.safetensors',
- filename: 'qwen_2.5_vl_7b_fp8_scaled.safetensors', subfolder: 'text_encoders', sizeGB: 8.8,
- },
- {
- name: 'CLIP-L Text Encoder',
- description: 'Required secondary text encoder.',
- pulls: '', tags: ['Text Encoder', '240 MB'], updated: '',
- downloadUrl: 'https://huggingface.co/Comfy-Org/HunyuanVideo_repackaged/resolve/main/split_files/text_encoders/clip_l.safetensors',
- filename: 'clip_l.safetensors', subfolder: 'text_encoders', sizeGB: 0.2,
- },
- ],
- },
- {
- name: 'LTX Video 2.3 · 22B FP8 (Latest)',
- description: 'Lightricks LTX Video 2.3 · fast inference, high quality. Uses Gemma 3 12B text encoder. Distilled for speed.',
- tags: ['LTX 2.3', '22B', 'Quality'],
- verified: true,
- totalSizeGB: 40,
- vramRequired: '16+ GB',
- workflow: 'ltx',
- url: 'https://huggingface.co/Lightricks/LTX-2.3-fp8',
- files: [
- {
- name: 'LTX 2.3 22B Distilled FP8',
- description: 'Main video model · distilled for fast inference.',
- pulls: '', tags: ['Model', '~22 GB'], updated: 'New',
- downloadUrl: 'https://huggingface.co/Lightricks/LTX-2.3-fp8/resolve/main/ltx-2.3-22b-distilled-fp8.safetensors',
- filename: 'ltx-2.3-22b-distilled-fp8.safetensors', subfolder: 'diffusion_models', sizeGB: 27.5,
- },
- {
- name: 'Gemma 3 12B Text Encoder (FP8)',
- description: 'Required text encoder for LTX Video 2.x.',
- pulls: '', tags: ['Text Encoder', '12.4 GB'], updated: 'New',
- downloadUrl: 'https://huggingface.co/Comfy-Org/ltx-2/resolve/main/split_files/text_encoders/gemma_3_12B_it_fp8_scaled.safetensors',
- filename: 'gemma_3_12B_it_fp8_scaled.safetensors', subfolder: 'text_encoders', sizeGB: 12.4,
- },
- ],
- },
- // ─── NEW VIDEO BUNDLES ───
- {
- name: 'AnimateDiff Lightning',
- description: 'Ultra fast 4 step animation on any SD1.5 checkpoint. Great for quick iterations. Needs an SD1.5 base model.',
- tags: ['AnimateDiff', '512x512', 'Lightning'],
- verified: true,
- totalSizeGB: 2.8,
- vramRequired: '6-8 GB',
- workflow: 'animatediff',
- customNodes: ['animatediff-evolved'],
- url: 'https://huggingface.co/ByteDance/AnimateDiff-Lightning',
- files: [
- {
- name: 'AnimateDiff Lightning Motion Model (4 step)',
- description: 'Lightning fast motion model. Only 4 sampling steps needed.',
- pulls: '', tags: ['Motion', '800 MB'], updated: '',
- downloadUrl: 'https://huggingface.co/ByteDance/AnimateDiff-Lightning/resolve/main/animatediff_lightning_4step_comfyui.safetensors',
- filename: 'animatediff_lightning_4step_comfyui.safetensors', subfolder: 'custom_nodes/ComfyUI-AnimateDiff-Evolved/models', sizeGB: 0.8,
- },
- {
- name: 'Realistic Vision V6 (SD1.5 Base)',
- description: 'Recommended SD1.5 base checkpoint for realistic animations.',
- pulls: '', tags: ['Checkpoint', '~2 GB'], updated: '',
- downloadUrl: 'https://huggingface.co/SG161222/Realistic_Vision_V6.0_B1_noVAE/resolve/main/Realistic_Vision_V6.0_NV_B1_fp16.safetensors',
- filename: 'Realistic_Vision_V6.0_NV_B1_fp16.safetensors', subfolder: 'checkpoints', sizeGB: 2.0,
- },
- ],
- },
- {
- name: 'AnimateDiff v3',
- description: 'Classic AnimateDiff with more frames and better quality than Lightning. Slower but more detailed.',
- tags: ['AnimateDiff', '512x768', 'Quality'],
- totalSizeGB: 3.6,
- vramRequired: '6-8 GB',
- workflow: 'animatediff',
- customNodes: ['animatediff-evolved'],
- url: 'https://huggingface.co/guoyww/animatediff',
- files: [
- {
- name: 'AnimateDiff v3 Motion Adapter',
- description: 'Standard motion model · 20 steps, good quality.',
- pulls: '', tags: ['Motion', '1.6 GB'], updated: '',
- downloadUrl: 'https://huggingface.co/guoyww/animatediff/resolve/main/v3_sd15_mm.ckpt',
- filename: 'v3_sd15_mm.ckpt', subfolder: 'custom_nodes/ComfyUI-AnimateDiff-Evolved/models', sizeGB: 1.6,
- },
- {
- name: 'Realistic Vision V6 (SD1.5 Base)',
- description: 'Recommended SD1.5 base checkpoint.',
- pulls: '', tags: ['Checkpoint', '~2 GB'], updated: '',
- downloadUrl: 'https://huggingface.co/SG161222/Realistic_Vision_V6.0_B1_noVAE/resolve/main/Realistic_Vision_V6.0_NV_B1_fp16.safetensors',
- filename: 'Realistic_Vision_V6.0_NV_B1_fp16.safetensors', subfolder: 'checkpoints', sizeGB: 2.0,
- },
- ],
- },
- // CogVideoX removed 2026-07-24 (D#88) · both bundles were 21 GB of download
- // for a lane that could never run. buildCogVideoWorkflow emits five class
- // types that exist in no version of kijai/ComfyUI-CogVideoXWrapper
- // (CogVideoXCLIPLoader, CogVideoXTextEncode, CogVideoXEmptyLatents,
- // CogVideoXSampler, CogVideoXVAEDecode · the real names are CogVideoTextEncode,
- // CogVideoSampler, CogVideoDecode and there is no empty latents node at all),
- // so every submit came back a 400. Verified against a real checkout of the
- // wrapper. Offering the download again needs a rebuilt builder plus a real
- // end to end run, not a rename. Wan, LTX and SVD cover the same ground and
- // are proven.
- {
- name: 'FramePack F1 (Image to Video)',
- description: 'Revolutionary I2V: runs on 6 GB VRAM via next frame prediction. Upload an image, get a video. Uses HunyuanVideo backbone.',
- tags: ['FramePack', 'I2V', 'Low VRAM'],
- uncensored: true,
- verified: true,
- totalSizeGB: 27.0,
- vramRequired: '6-8 GB',
- workflow: 'framepack',
- i2v: true,
- customNodes: ['framepack-wrapper'],
- url: 'https://huggingface.co/lllyasviel/FramePack_F1_I2V_HY_20250503',
- files: [
- {
- name: 'FramePack F1 I2V Model (FP8)',
- description: 'Main I2V model · generates video from a single image.',
- pulls: '', tags: ['Model', '15.3 GB'], updated: '',
- downloadUrl: 'https://huggingface.co/Kijai/HunyuanVideo_comfy/resolve/main/FramePackI2V_HY_fp8_e4m3fn.safetensors',
- filename: 'FramePackI2V_HY_fp8_e4m3fn.safetensors', subfolder: 'diffusion_models', sizeGB: 15.3,
- },
- {
- name: 'SigCLIP Vision Encoder',
- description: 'Required vision encoder for image understanding.',
- pulls: '', tags: ['CLIP Vision', '900 MB'], updated: '',
- downloadUrl: 'https://huggingface.co/Comfy-Org/sigclip_vision_384/resolve/main/sigclip_vision_patch14_384.safetensors',
- filename: 'sigclip_vision_patch14_384.safetensors', subfolder: 'clip_vision', sizeGB: 0.9,
- },
- {
- name: 'HunyuanVideo VAE',
- description: 'Required video encoder/decoder (HunyuanVideo 1.0, the backbone FramePack was trained on).',
- pulls: '', tags: ['VAE', '493 MB'], updated: '',
- downloadUrl: 'https://huggingface.co/Comfy-Org/HunyuanVideo_repackaged/resolve/main/split_files/vae/hunyuan_video_vae_bf16.safetensors',
- filename: 'hunyuan_video_vae_bf16.safetensors', subfolder: 'vae', sizeGB: 0.5,
- },
- {
- name: 'CLIP-L Text Encoder',
- description: 'Required text encoder (shared).',
- pulls: '', tags: ['Text Encoder', '240 MB'], updated: '',
- downloadUrl: 'https://huggingface.co/Comfy-Org/HunyuanVideo_repackaged/resolve/main/split_files/text_encoders/clip_l.safetensors',
- filename: 'clip_l.safetensors', subfolder: 'text_encoders', sizeGB: 0.2,
- },
- {
- name: 'LLaVA LLaMA3 Text Encoder (FP8)',
- description: 'Required text encoder for FramePack.',
- pulls: '', tags: ['Text Encoder', '8.5 GB'], updated: '',
- downloadUrl: 'https://huggingface.co/Comfy-Org/HunyuanVideo_repackaged/resolve/main/split_files/text_encoders/llava_llama3_fp8_scaled.safetensors',
- filename: 'llava_llama3_fp8_scaled.safetensors', subfolder: 'text_encoders', sizeGB: 8.5,
- },
- ],
- },
- {
- name: 'SVD-XT 1.1 (Image to Video)',
- description: 'Stable Video Diffusion by Stability AI. Upload an image, get 25 frames of smooth video. Native ComfyUI support.',
- tags: ['SVD', 'I2V', 'Native'],
- verified: true,
- totalSizeGB: 4.8,
- vramRequired: '12+ GB',
- workflow: 'svd',
- i2v: true,
- url: 'https://huggingface.co/stabilityai/stable-video-diffusion-img2vid-xt-1-1',
- files: [
- {
- name: 'SVD-XT 1.1 Checkpoint',
- description: 'Complete I2V model · no additional downloads needed.',
- pulls: '', tags: ['Checkpoint', '4.8 GB'], updated: '',
- downloadUrl: 'https://huggingface.co/vdo/stable-video-diffusion-img2vid-xt-1-1/resolve/main/svd_xt_1_1.safetensors',
- filename: 'svd_xt_1_1.safetensors', subfolder: 'checkpoints', sizeGB: 4.8,
- },
- ],
- },
- {
- name: 'Mochi 1 Preview (FP8)',
- description: 'Genmo Mochi · 848x480 video at 24 FPS. Good motion and temporal consistency. Native ComfyUI support.',
- tags: ['Mochi', '848x480', 'Native'],
- totalSizeGB: 20.4,
- vramRequired: '16+ GB',
- workflow: 'mochi',
- url: 'https://huggingface.co/Comfy-Org/mochi_preview_repackaged',
- files: [
- {
- name: 'Mochi 1 Preview (FP8)',
- description: 'Main video model (quantized for lower VRAM).',
- pulls: '', tags: ['Model', '10 GB'], updated: '',
- downloadUrl: 'https://huggingface.co/Comfy-Org/mochi_preview_repackaged/resolve/main/split_files/diffusion_models/mochi_preview_fp8_scaled.safetensors',
- filename: 'mochi_preview_fp8_scaled.safetensors', subfolder: 'diffusion_models', sizeGB: 10,
- },
- {
- name: 'Mochi VAE',
- description: 'Required video encoder/decoder.',
- pulls: '', tags: ['VAE', '0.9 GB'], updated: '',
- downloadUrl: 'https://huggingface.co/Comfy-Org/mochi_preview_repackaged/resolve/main/split_files/vae/mochi_vae.safetensors',
- filename: 'mochi_vae.safetensors', subfolder: 'vae', sizeGB: 0.9,
- },
- {
- name: 'T5-XXL Text Encoder (FP16)',
- description: 'Required text encoder for Mochi.',
- pulls: '', tags: ['Text Encoder', '9.5 GB'], updated: '',
- downloadUrl: 'https://huggingface.co/Comfy-Org/mochi_preview_repackaged/resolve/main/split_files/text_encoders/t5xxl_fp16.safetensors',
- filename: 't5xxl_fp16.safetensors', subfolder: 'text_encoders', sizeGB: 9.5,
- },
- ],
- },
- // Pyramid Flow removed 2026-07-24 (same audit as CogVideoX) · the builder was
- // written against invented node names too. Checked against a real checkout of
- // kijai/ComfyUI-PyramidFlowWrapper: the loader is registered as
- // PyramidFlowTransformerLoader (not PyramidFlowModelLoader), decode is
- // PyramidFlowVAEDecode (not PyramidFlowDecode) and needs a vae input we never
- // wired, the text encoder takes clip + positive_prompt + negative_prompt (we
- // passed a single `text` and no CLIP at all), and the sampler wants
- // prompt_embeds plus per stage step strings rather than steps and frames. That
- // is a rewrite, not a rename, so the 4.6 GB download comes back only with a
- // real run behind it.
- // Allegro removed · diffusers format only, no single-file safetensors available for one-click install
- {
- name: 'NVIDIA Cosmos 7B',
- description: 'NVIDIA Cosmos Diffusion 7B Text to World. 1024x1024 output at 24 FPS. Native ComfyUI support. Uses oldt5 text encoder (NOT t5xxl).',
- tags: ['Cosmos', '1024x1024', 'NVIDIA'],
- totalSizeGB: 19.2,
- vramRequired: '24+ GB',
- workflow: 'cosmos',
- url: 'https://huggingface.co/mcmonkey/cosmos-1.0',
- files: [
- {
- name: 'Cosmos 7B Text2World',
- description: 'Main video generation model by NVIDIA.',
- pulls: '', tags: ['Model', '14 GB'], updated: '',
- downloadUrl: 'https://huggingface.co/mcmonkey/cosmos-1.0/resolve/main/Cosmos-1_0-Diffusion-7B-Text2World.safetensors',
- filename: 'Cosmos-1_0-Diffusion-7B-Text2World.safetensors', subfolder: 'diffusion_models', sizeGB: 14,
- },
- {
- name: 'OldT5-XXL Text Encoder (FP8)',
- description: 'Required text encoder · NOT the same as regular T5-XXL!',
- pulls: '', tags: ['Text Encoder', '4.9 GB'], updated: '',
- downloadUrl: 'https://huggingface.co/comfyanonymous/cosmos_1.0_text_encoder_and_VAE_ComfyUI/resolve/main/text_encoders/oldt5_xxl_fp8_e4m3fn_scaled.safetensors',
- filename: 'oldt5_xxl_fp8_e4m3fn_scaled.safetensors', subfolder: 'text_encoders', sizeGB: 4.9,
- },
- {
- name: 'Cosmos VAE',
- description: 'Required video encoder/decoder.',
- pulls: '', tags: ['VAE', '300 MB'], updated: '',
- downloadUrl: 'https://huggingface.co/comfyanonymous/cosmos_1.0_text_encoder_and_VAE_ComfyUI/resolve/main/vae/cosmos_cv8x8x8_1.0.safetensors',
- filename: 'cosmos_cv8x8x8_1.0.safetensors', subfolder: 'vae', sizeGB: 0.2,
- },
- ],
- },
- {
- name: 'NSFW Wan 14B (Uncensored, GGUF)',
- description: 'Full uncensored finetune of Wan 2.1 14B. Text to video, motion trained in, no helper LoRA needed.',
- tags: ['Wan 2.1', 'Uncensored', 'GGUF', '480p'],
- uncensored: true,
- totalSizeGB: 15.5,
- vramRequired: '10-12 GB',
- workflow: 'wan',
- customNodes: ['gguf'],
- url: 'https://huggingface.co/NSFW-API/NSFW_Wan_14b',
- files: [
- {
- name: 'NSFW Wan 14B Q4 (GGUF)',
- description: 'The finetuned video model, final e15 epoch, Q4 quant.',
- pulls: '', tags: ['Model', '9 GB'], updated: '',
- downloadUrl: 'https://huggingface.co/NSFW-API/NSFW_Wan_14b/resolve/main/nsfw_wan_14b_e15_q4_k.gguf',
- filename: 'nsfw_wan_14b_e15_q4_k.gguf', subfolder: 'diffusion_models', sizeGB: 9.0,
- },
- {
- name: 'Wan 2.1 VAE',
- description: 'Required video encoder/decoder.',
- pulls: '', tags: ['VAE', '250 MB'], updated: '',
- downloadUrl: 'https://huggingface.co/Comfy-Org/Wan_2.1_ComfyUI_repackaged/resolve/main/split_files/vae/wan_2.1_vae.safetensors',
- filename: 'wan_2.1_vae.safetensors', subfolder: 'vae', sizeGB: 0.24,
- },
- {
- name: 'Wan CLIP (UMT5-XXL FP8)',
- description: 'Required text encoder.',
- pulls: '', tags: ['CLIP', '6.3 GB'], updated: '',
- downloadUrl: 'https://huggingface.co/Comfy-Org/Wan_2.1_ComfyUI_repackaged/resolve/main/split_files/text_encoders/umt5_xxl_fp8_e4m3fn_scaled.safetensors',
- filename: 'umt5_xxl_fp8_e4m3fn_scaled.safetensors', subfolder: 'text_encoders', sizeGB: 6.27,
- },
- ],
- },
- {
- name: 'Wan 2.2 Rapid AIO (Uncensored I2V, GGUF)',
- description: 'Uncensored Wan 2.2 image to video, lightning merged for few step renders. Great for Animate and Extend.',
- tags: ['Wan 2.2', 'Uncensored', 'I2V', 'GGUF', 'Fast'],
- uncensored: true,
- i2v: true,
- totalSizeGB: 16.6,
- vramRequired: '10-12 GB',
- workflow: 'wan',
- customNodes: ['gguf'],
- url: 'https://huggingface.co/desirel/WAN2.2-14B-Rapid-AllInOne-GGUF-NSFW-v10',
- files: [
- {
- name: 'Wan 2.2 Rapid AIO v10 Q4 (GGUF)',
- description: 'The merged uncensored i2v model, Q4 quant.',
- pulls: '', tags: ['Model', '10.1 GB'], updated: '',
- downloadUrl: 'https://huggingface.co/desirel/WAN2.2-14B-Rapid-AllInOne-GGUF-NSFW-v10/resolve/main/wan2.2-i2v-rapid-aio-v10-nsfw-Q4_K_M.gguf',
- filename: 'wan2.2-i2v-rapid-aio-v10-nsfw-Q4_K_M.gguf', subfolder: 'diffusion_models', sizeGB: 10.1,
- },
- {
- name: 'Wan 2.1 VAE',
- description: 'Required video encoder/decoder.',
- pulls: '', tags: ['VAE', '250 MB'], updated: '',
- downloadUrl: 'https://huggingface.co/Comfy-Org/Wan_2.1_ComfyUI_repackaged/resolve/main/split_files/vae/wan_2.1_vae.safetensors',
- filename: 'wan_2.1_vae.safetensors', subfolder: 'vae', sizeGB: 0.24,
- },
- {
- name: 'Wan CLIP (UMT5-XXL FP8)',
- description: 'Required text encoder.',
- pulls: '', tags: ['CLIP', '6.3 GB'], updated: '',
- downloadUrl: 'https://huggingface.co/Comfy-Org/Wan_2.1_ComfyUI_repackaged/resolve/main/split_files/text_encoders/umt5_xxl_fp8_e4m3fn_scaled.safetensors',
- filename: 'umt5_xxl_fp8_e4m3fn_scaled.safetensors', subfolder: 'text_encoders', sizeGB: 6.27,
- },
- ],
- },
- ]
-}
-
-// ─── 2.5.8 specialized local-lane bundles (music / talking character / motion) ───
-//
-// Every URL below was HEAD-verified against HuggingFace on 2026-07-18 (status
-// 200 + content-length; sizes in GiB from the actual response). Music and
-// talking character have no censored/uncensored axis — local rendering runs
-// unfiltered by nature, so no red badge games; the honest split lives in the
-// video list above (real uncensored finetunes) instead.
-
-export function getAudioBundles(): ModelBundle[] {
- return [
- {
- name: 'ACE Step 1.5 Turbo (Music)',
- description: 'Newest full song generator, MIT licensed. Vocals, lyrics and instruments from a text description. One file.',
- tags: ['Music', 'Vocals', 'MIT'],
- totalSizeGB: 9.4,
- vramRequired: '6-8 GB',
- workflow: 'ace',
- url: 'https://huggingface.co/Comfy-Org/ace_step_1.5_ComfyUI_files',
- files: [
- {
- name: 'ACE Step 1.5 Turbo (all in one)',
- description: 'Complete music model. Includes its text encoder and audio VAE.',
- pulls: '', tags: ['Checkpoint', '9.3 GB'], updated: '',
- downloadUrl: 'https://huggingface.co/Comfy-Org/ace_step_1.5_ComfyUI_files/resolve/main/checkpoints/ace_step_1.5_turbo_aio.safetensors',
- filename: 'ace_step_1.5_turbo_aio.safetensors', subfolder: 'checkpoints', sizeGB: 9.34,
- },
- ],
- },
- {
- name: 'ACE Step v1 3.5B (Music, lighter)',
- description: 'The proven full song generator. Smaller download, runs from 4 GB VRAM.',
- tags: ['Music', 'Vocals', 'Light'],
- totalSizeGB: 7.2,
- vramRequired: '4-6 GB',
- workflow: 'ace',
- url: 'https://huggingface.co/Comfy-Org/ACE-Step_ComfyUI_repackaged',
- files: [
- {
- name: 'ACE Step v1 3.5B (all in one)',
- description: 'Complete music model. Includes its text encoder and audio VAE.',
- pulls: '', tags: ['Checkpoint', '7.2 GB'], updated: '',
- downloadUrl: 'https://huggingface.co/Comfy-Org/ACE-Step_ComfyUI_repackaged/resolve/main/all_in_one/ace_step_v1_3.5b.safetensors',
- filename: 'ace_step_v1_3.5b.safetensors', subfolder: 'checkpoints', sizeGB: 7.17,
- },
- ],
- },
- ]
-}
-
-export function getLipsyncBundles(): ModelBundle[] {
- // Shared support files for the S2V graph (text encoder, VAE, audio encoder).
- const s2vSupport: DiscoverModel[] = [
- {
- name: 'Wan CLIP (UMT5-XXL FP8)',
- description: 'Required text encoder.',
- pulls: '', tags: ['CLIP', '6.3 GB'], updated: '',
- downloadUrl: 'https://huggingface.co/Comfy-Org/Wan_2.2_ComfyUI_Repackaged/resolve/main/split_files/text_encoders/umt5_xxl_fp8_e4m3fn_scaled.safetensors',
- filename: 'umt5_xxl_fp8_e4m3fn_scaled.safetensors', subfolder: 'text_encoders', sizeGB: 6.27,
- },
- {
- name: 'Wan 2.1 VAE',
- description: 'Required video encoder/decoder.',
- pulls: '', tags: ['VAE', '250 MB'], updated: '',
- downloadUrl: 'https://huggingface.co/Comfy-Org/Wan_2.2_ComfyUI_Repackaged/resolve/main/split_files/vae/wan_2.1_vae.safetensors',
- filename: 'wan_2.1_vae.safetensors', subfolder: 'vae', sizeGB: 0.24,
- },
- {
- name: 'Wav2Vec2 Audio Encoder',
- description: 'Turns the speech audio into the embeddings the model lip reads from.',
- pulls: '', tags: ['Audio Encoder', '600 MB'], updated: '',
- downloadUrl: 'https://huggingface.co/Comfy-Org/Wan_2.2_ComfyUI_Repackaged/resolve/main/split_files/audio_encoders/wav2vec2_large_english_fp16.safetensors',
- filename: 'wav2vec2_large_english_fp16.safetensors', subfolder: 'audio_encoders', sizeGB: 0.59,
- },
- ]
- return [
- {
- name: 'Wan 2.2 S2V Q4 (Talking Character, GGUF)',
- description: 'A portrait plus any voice becomes a talking video. Q4 quant, the comfortable pick for 12 GB cards.',
- tags: ['Wan 2.2', 'S2V', 'GGUF'],
- totalSizeGB: 20.0,
- vramRequired: '10-12 GB',
- workflow: 'wans2v',
- customNodes: ['gguf'],
- url: 'https://huggingface.co/QuantStack/Wan2.2-S2V-14B-GGUF',
- files: [
- {
- name: 'Wan 2.2 S2V 14B Q4 (GGUF)',
- description: 'The sound to video model, Q4 quant.',
- pulls: '', tags: ['Model', '12.9 GB'], updated: '',
- downloadUrl: 'https://huggingface.co/QuantStack/Wan2.2-S2V-14B-GGUF/resolve/main/Wan2.2-S2V-14B-Q4_K_M.gguf',
- filename: 'Wan2.2-S2V-14B-Q4_K_M.gguf', subfolder: 'diffusion_models', sizeGB: 12.91,
- },
- ...s2vSupport,
- ],
- },
- {
- name: 'Wan 2.2 S2V FP8 (Talking Character)',
- description: 'The full precision friendly variant. Bigger file; offloads below 16 GB VRAM, so renders take longer there.',
- tags: ['Wan 2.2', 'S2V', 'FP8'],
- totalSizeGB: 22.4,
- vramRequired: '16 GB best, offloads on less',
- workflow: 'wans2v',
- url: 'https://huggingface.co/Comfy-Org/Wan_2.2_ComfyUI_Repackaged',
- files: [
- {
- name: 'Wan 2.2 S2V 14B (FP8)',
- description: 'The sound to video model.',
- pulls: '', tags: ['Model', '15.3 GB'], updated: '',
- downloadUrl: 'https://huggingface.co/Comfy-Org/Wan_2.2_ComfyUI_Repackaged/resolve/main/split_files/diffusion_models/wan2.2_s2v_14B_fp8_scaled.safetensors',
- filename: 'wan2.2_s2v_14B_fp8_scaled.safetensors', subfolder: 'diffusion_models', sizeGB: 15.27,
- },
- ...s2vSupport,
- ],
- },
- ]
-}
-
-export function getMotionBundles(): ModelBundle[] {
- const wanSupport: DiscoverModel[] = [
- {
- name: 'Wan CLIP (UMT5-XXL FP8)',
- description: 'Required text encoder.',
- pulls: '', tags: ['CLIP', '6.3 GB'], updated: '',
- downloadUrl: 'https://huggingface.co/Comfy-Org/Wan_2.2_ComfyUI_Repackaged/resolve/main/split_files/text_encoders/umt5_xxl_fp8_e4m3fn_scaled.safetensors',
- filename: 'umt5_xxl_fp8_e4m3fn_scaled.safetensors', subfolder: 'text_encoders', sizeGB: 6.27,
- },
- {
- name: 'Wan 2.1 VAE',
- description: 'Required video encoder/decoder.',
- pulls: '', tags: ['VAE', '250 MB'], updated: '',
- downloadUrl: 'https://huggingface.co/Comfy-Org/Wan_2.2_ComfyUI_Repackaged/resolve/main/split_files/vae/wan_2.1_vae.safetensors',
- filename: 'wan_2.1_vae.safetensors', subfolder: 'vae', sizeGB: 0.24,
- },
- ]
- return [
- {
- name: 'Wan VACE 1.3B (Motion Control, light)',
- description: 'Your character copies the moves from any dance or pose video. The light pick, runs from 8 GB VRAM.',
- tags: ['VACE', 'Motion', 'Light'],
- totalSizeGB: 10.5,
- vramRequired: '8-10 GB',
- workflow: 'wanvace',
- customNodes: ['controlnet-aux'],
- url: 'https://huggingface.co/Comfy-Org/Wan_2.1_ComfyUI_repackaged',
- files: [
- {
- name: 'Wan 2.1 VACE 1.3B',
- description: 'The motion control model.',
- pulls: '', tags: ['Model', '4 GB'], updated: '',
- downloadUrl: 'https://huggingface.co/Comfy-Org/Wan_2.1_ComfyUI_repackaged/resolve/main/split_files/diffusion_models/wan2.1_vace_1.3B_fp16.safetensors',
- filename: 'wan2.1_vace_1.3B_fp16.safetensors', subfolder: 'diffusion_models', sizeGB: 4.01,
- },
- ...wanSupport,
- ],
- },
- {
- name: 'Wan 2.2 Animate Q4 (Motion Control, GGUF)',
- description: 'The bigger, better motion transfer model. Q4 quant for 12 GB cards.',
- tags: ['Wan 2.2', 'Animate', 'GGUF'],
- totalSizeGB: 17.3,
- vramRequired: '10-12 GB',
- workflow: 'wananimate',
- customNodes: ['gguf', 'controlnet-aux'],
- url: 'https://huggingface.co/QuantStack/Wan2.2-Animate-14B-GGUF',
- files: [
- {
- name: 'Wan 2.2 Animate 14B Q4 (GGUF)',
- description: 'The motion transfer model, Q4 quant.',
- pulls: '', tags: ['Model', '10.7 GB'], updated: '',
- downloadUrl: 'https://huggingface.co/QuantStack/Wan2.2-Animate-14B-GGUF/resolve/main/Wan2.2-Animate-14B-Q4_K_M.gguf',
- filename: 'Wan2.2-Animate-14B-Q4_K_M.gguf', subfolder: 'diffusion_models', sizeGB: 10.71,
- },
- ...wanSupport,
- ],
- },
- ]
-}
// ─── CivitAI Model Search ───
diff --git a/src/api/dynamic-workflow.ts b/src/api/dynamic-workflow.ts
index 5642fc2b..2729b24f 100644
--- a/src/api/dynamic-workflow.ts
+++ b/src/api/dynamic-workflow.ts
@@ -11,33 +11,10 @@ import {
type AvailableModels,
} from './comfyui-nodes'
-// ─── Output filename slug (David 2026-06-11) ───
-//
-// Generated media used to be `locally_uncensored_00123_.png` /
-// `locally_uncensored_vid_00011.mp4` — opaque. Now the ComfyUI SaveImage /
-// VHS `filename_prefix` is derived from the PROMPT, so a file is
-// `red_apple_on_white_plate_00001_.png`. That makes the result string
-// self-descriptive, so a follow-up "animate the red-apple image" can pass the
-// recognisable filename straight back. ComfyUI still appends its own
-// `_NNNNN_` counter, so uniqueness is preserved.
-//
-// Exported + pure for the unit tests.
-export function promptFilenamePrefix(prompt: string | undefined, isVideo: boolean): string {
- const slug = (prompt || '')
- .toLowerCase()
- .replace(/[^a-z0-9]+/g, '_')
- .replace(/^_+|_+$/g, '')
- .split('_')
- .filter(Boolean)
- .slice(0, 6) // first ~6 words keep it readable
- .join('_')
- .slice(0, 48)
- .replace(/_+$/g, '')
- if (!slug) return isVideo ? 'locally_uncensored_vid' : 'locally_uncensored'
- // Keep a short tag so a folder full of generations is still recognisably ours
- // and videos never collide with the still they were made from.
- return isVideo ? `${slug}__vid` : slug
-}
+// promptFilenamePrefix und videoDecodeNode wohnen in comfyui-graph.ts (siehe
+// dort). Re-Export, damit bestehende Importpfade unverändert bleiben.
+export { promptFilenamePrefix, videoDecodeNode } from './comfyui-graph'
+import { promptFilenamePrefix, videoDecodeNode } from './comfyui-graph'
// ─── Strategy Detection ───
@@ -1067,34 +1044,6 @@ function rmbgWidgetDefault(name: string, spec: any): { set: boolean; value?: any
return { set: false }
}
-/** Decode node for video latents: tiled whenever the install has the node.
- * A full-frame WanVAE decode next to a resident 14B UNet left 312 MB of VRAM
- * on a 12 GB card; CUDA paged through the Windows driver instead of throwing,
- * so ComfyUI's own OOM-then-tiled retry never fired and the decode ran 45+
- * minutes at "GPU 100%" (live, David 2026-08-02). Tiles keep the working set
- * flat for a quality-neutral overlap cost.
- *
- * ALL four tiling fields are sent. The live validator refuses a prompt that
- * omits a required-with-default field ("Node 8 (VAEDecodeTiled): Required
- * input is missing" three times, e2e 2026-08-02), and cores old enough to
- * lack the overlap/temporal fields simply ignore unknown inputs. Values are
- * the node's own defaults except tile_size, halved for the low-VRAM cards
- * this exists for. Image decodes stay on plain VAEDecode. */
-export function videoDecodeNode(
- samplesRef: [string, number],
- vaeRef: [string, number],
- hasTiled: boolean,
-): Record<string, any> {
- return hasTiled
- ? {
- class_type: 'VAEDecodeTiled',
- inputs: {
- samples: samplesRef, vae: vaeRef,
- tile_size: 256, overlap: 64, temporal_size: 64, temporal_overlap: 8,
- },
- }
- : { class_type: 'VAEDecode', inputs: { samples: samplesRef, vae: vaeRef } }
-}
function addVideoOutput(workflow: Record<string, any>, n: number, decodeId: string, fps: number, nodes: CategorizedNodes, prompt?: string): number {
const saveId = String(n++)
diff --git a/src/api/engine.ts b/src/api/engine.ts
index 1a108157..c4a0668d 100644
--- a/src/api/engine.ts
+++ b/src/api/engine.ts
@@ -13,7 +13,7 @@
import { backendCall } from './backend'
import { trackEngineSwap } from './engine-swap-gate'
-import { prefixModelName } from './providers'
+import { prefixModelName } from './providers/model-name'
import { useProviderStore } from '../stores/providerStore'
import { useSettingsStore } from '../stores/settingsStore'
import type { CloudModel } from '../types/models'
diff --git a/src/api/model-bundles.ts b/src/api/model-bundles.ts
new file mode 100644
index 00000000..b508eba3
--- /dev/null
+++ b/src/api/model-bundles.ts
@@ -0,0 +1,1188 @@
+/**
+ * Der Download-Katalog: welche Dateien es gibt, wie groß sie sind und in
+ * welchen ComfyUI-Ordner sie gehören. Reine Daten plus die Formen, die sie
+ * beschreiben — dieses Modul importiert außer einem Typ nichts.
+ *
+ * Audit W-T2: Der Katalog stand in api/discover.ts, dem Modul, das Downloads
+ * anstößt und ComfyUI nach installierten Dateien fragt. api/comfyui.ts braucht
+ * aus dem Katalog nur die erwarteten Dateigrößen (filterPartialFiles blendet
+ * angefangene Downloads aus) — und discover.ts braucht umgekehrt ein Dutzend
+ * Loader aus comfyui.ts. comfyui.ts hat sich deshalb mit
+ * `await import('./discover')` mitten in getKnownFileSizes() beholfen, mit dem
+ * Kommentar "we defer the import to break the cycle at runtime".
+ *
+ * Der Zyklus war echt, der dynamische Import hat ihn nur unsichtbar gemacht.
+ * Aufgelöst wird er dort, wo er entsteht: Daten, die beide Seiten brauchen,
+ * gehören keiner der beiden Seiten. Der Katalog liegt jetzt hier, comfyui.ts
+ * und discover.ts lesen ihn beide statisch, und discover.ts re-exportiert
+ * jeden Namen weiter, damit kein Aufrufer und kein Test seinen Importpfad
+ * ändern muss.
+ */
+
+import type { ProviderId } from './providers/types'
+
+export interface DiscoverModel {
+ name: string
+ description: string
+ pulls: string
+ tags: string[]
+ updated: string
+ url?: string
+ // For direct download
+ downloadUrl?: string
+ filename?: string
+ subfolder?: string // ComfyUI models subfolder: checkpoints, diffusion_models, vae, text_encoders
+ sizeGB?: number
+ // Vision projector that belongs to `downloadUrl`. A text GGUF carries no
+ // image tower: llama.cpp keeps it in a separate mmproj file and only sees
+ // images when the server is started with `--mmproj`. When this is set the
+ // download writes BOTH files into the model folder and the built-in engine
+ // picks the projector up by name (see `mmprojFileName`). Ollama entries never
+ // need it, their tag already ships a projector layer.
+ mmprojUrl?: string
+ mmprojSizeGB?: number
+ // Discovery flags
+ hot?: boolean // Featured/trending model
+ agent?: boolean // Supports Agent Mode tool calling
+ released?: string // Release date YYYY-MM for sorting (newest first)
+ // F4 (juliandiggins-stack GH#21): explicit CPU-only / ≤8 GB RAM
+ // tag. Surfaces a green "CPU-friendly" badge in DiscoverModels and
+ // exposes the optional "Lightweight" filter. Set true for ≤4B
+ // unfiltered models we have personally test-loaded on a CPU-only
+ // 8 GB box.
+ lightweight?: boolean
+ // Multi-provider
+ provider?: ProviderId // Which provider this model belongs to
+ providerName?: string // Display name of the provider
+ canPull?: boolean // false = no download/pull capability (cloud/external)
+ ollamaModel?: string // Ollama model tag for `ollama pull` (e.g. 'qwen3.6')
+ // Model Hub grouping (2.5.8 redesign): entries that are the SAME model in a
+ // different quant share a `group` and render as ONE card with a size picker.
+ // Different parameter sizes stay separate cards on purpose.
+ group?: string
+ // Optional hand-written one-liner for the card. When absent the card derives
+ // a short line from `description` (text after the first "·", first sentence).
+ blurb?: string
+ /**
+ * SHA256 of the file at `downloadUrl`, 64 hex characters.
+ *
+ * The only thing that can tell a complete multi-gigabyte model from a
+ * plausible-looking truncated one. `sizeGB` cannot: it is a rounded human
+ * number ("9.2"), which is why the old completeness check ran on a 10 %
+ * tolerance and accepted a download that died at 91 %.
+ *
+ * Optional on purpose. HuggingFace states this digest for every LFS file
+ * (`lfs.oid` in the tree API, which `resolveHfGgufFiles` now reads), but the
+ * hand-written catalog entries below carry none yet. When it is absent the
+ * download is checked against the server's exact byte count and the Rust side
+ * logs, per file, that the CONTENT went unverified.
+ */
+ sha256?: string
+}
+
+// ─── Image Model Bundles ───
+
+export function getImageBundles(): ModelBundle[] {
+ return [
+ {
+ name: 'Juggernaut XL V9 (Photorealistic)',
+ description: 'Best photorealistic SDXL checkpoint. All in one. Just install and generate.',
+ tags: ['SDXL', 'Photorealistic', '1024px'],
+ uncensored: true,
+ verified: true,
+ totalSizeGB: 6.5,
+ vramRequired: '6-8 GB',
+ workflow: 'sdxl',
+ url: 'https://huggingface.co/RunDiffusion/Juggernaut-XL-v9',
+ files: [
+ {
+ name: 'Juggernaut XL V9 Photo v2',
+ description: 'SDXL checkpoint · includes VAE and CLIP.',
+ pulls: '', tags: ['Checkpoint', '6.5 GB'], updated: '',
+ downloadUrl: 'https://huggingface.co/RunDiffusion/Juggernaut-XL-v9/resolve/main/Juggernaut-XL_v9_RunDiffusionPhoto_v2.safetensors',
+ filename: 'Juggernaut-XL_v9.safetensors', subfolder: 'checkpoints', sizeGB: 6.5,
+ },
+ ],
+ },
+ {
+ name: 'RealVisXL V5 (Photorealistic)',
+ description: 'Great for portraits, landscapes, and product photos. Ready to use.',
+ tags: ['SDXL', 'Photorealistic', '1024px'],
+ uncensored: true,
+ verified: true,
+ totalSizeGB: 6.5,
+ vramRequired: '6-8 GB',
+ workflow: 'sdxl',
+ url: 'https://huggingface.co/SG161222/RealVisXL_V5.0',
+ files: [
+ {
+ name: 'RealVisXL V5 FP16',
+ description: 'SDXL checkpoint · includes VAE and CLIP.',
+ pulls: '', tags: ['Checkpoint', '6.5 GB'], updated: '',
+ downloadUrl: 'https://huggingface.co/SG161222/RealVisXL_V5.0/resolve/main/RealVisXL_V5.0_fp16.safetensors',
+ filename: 'RealVisXL_V5.safetensors', subfolder: 'checkpoints', sizeGB: 6.5,
+ },
+ ],
+ },
+ {
+ name: 'FLUX.1 [schnell] FP8 (Fast & Modern)',
+ description: 'State of the art image gen. 1 to 4 steps for fast results. Complete package with all required encoders.',
+ tags: ['FLUX', 'Fast', 'FP8', '1024px'],
+ verified: true,
+ totalSizeGB: 21,
+ vramRequired: '8-10 GB',
+ workflow: 'flux',
+ url: 'https://huggingface.co/Comfy-Org/flux1-schnell',
+ files: [
+ {
+ name: 'FLUX.1 schnell FP8',
+ description: 'The main FLUX diffusion model (quantized).',
+ pulls: '', tags: ['Model', '16 GB'], updated: '',
+ downloadUrl: 'https://huggingface.co/Comfy-Org/flux1-schnell/resolve/main/flux1-schnell-fp8.safetensors',
+ filename: 'flux1-schnell-fp8.safetensors', subfolder: 'diffusion_models', sizeGB: 16.1,
+ },
+ {
+ name: 'FLUX VAE',
+ description: 'Required autoencoder for FLUX.1 (16 channel ae).',
+ pulls: '', tags: ['VAE', '335 MB'], updated: '',
+ downloadUrl: 'https://huggingface.co/Comfy-Org/z_image_turbo/resolve/main/split_files/vae/ae.safetensors',
+ filename: 'ae.safetensors', subfolder: 'vae', sizeGB: 0.3,
+ },
+ {
+ name: 'T5-XXL Text Encoder (FP8)',
+ description: 'Required text encoder for FLUX prompt understanding.',
+ pulls: '', tags: ['Text Encoder', '4.6 GB'], updated: '',
+ downloadUrl: 'https://huggingface.co/comfyanonymous/flux_text_encoders/resolve/main/t5xxl_fp8_e4m3fn.safetensors',
+ filename: 't5xxl_fp8_e4m3fn.safetensors', subfolder: 'text_encoders', sizeGB: 4.6,
+ },
+ {
+ name: 'CLIP-L Text Encoder',
+ description: 'Required secondary text encoder for FLUX.',
+ pulls: '', tags: ['Text Encoder', '240 MB'], updated: '',
+ downloadUrl: 'https://huggingface.co/comfyanonymous/flux_text_encoders/resolve/main/clip_l.safetensors',
+ filename: 'clip_l.safetensors', subfolder: 'text_encoders', sizeGB: 0.2,
+ },
+ ],
+ },
+ {
+ name: 'FLUX.1 [dev] FP8 (High Quality)',
+ description: 'Highest quality FLUX. More steps but better results. Complete package with all required encoders.',
+ tags: ['FLUX', 'Quality', 'FP8', '1024px'],
+ verified: true,
+ totalSizeGB: 21,
+ vramRequired: '8-10 GB',
+ workflow: 'flux',
+ url: 'https://huggingface.co/Comfy-Org/flux1-dev',
+ files: [
+ {
+ name: 'FLUX.1 dev FP8',
+ description: 'The main FLUX diffusion model (dev, quantized).',
+ pulls: '', tags: ['Model', '16 GB'], updated: '',
+ downloadUrl: 'https://huggingface.co/Comfy-Org/flux1-dev/resolve/main/flux1-dev-fp8.safetensors',
+ filename: 'flux1-dev-fp8.safetensors', subfolder: 'diffusion_models', sizeGB: 16.1,
+ },
+ {
+ name: 'FLUX VAE',
+ description: 'Required autoencoder for FLUX.1 (16 channel ae).',
+ pulls: '', tags: ['VAE', '335 MB'], updated: '',
+ downloadUrl: 'https://huggingface.co/Comfy-Org/z_image_turbo/resolve/main/split_files/vae/ae.safetensors',
+ filename: 'ae.safetensors', subfolder: 'vae', sizeGB: 0.3,
+ },
+ {
+ name: 'T5-XXL Text Encoder (FP8)',
+ description: 'Required text encoder for FLUX prompt understanding.',
+ pulls: '', tags: ['Text Encoder', '4.6 GB'], updated: '',
+ downloadUrl: 'https://huggingface.co/comfyanonymous/flux_text_encoders/resolve/main/t5xxl_fp8_e4m3fn.safetensors',
+ filename: 't5xxl_fp8_e4m3fn.safetensors', subfolder: 'text_encoders', sizeGB: 4.6,
+ },
+ {
+ name: 'CLIP-L Text Encoder',
+ description: 'Required secondary text encoder for FLUX.',
+ pulls: '', tags: ['Text Encoder', '240 MB'], updated: '',
+ downloadUrl: 'https://huggingface.co/comfyanonymous/flux_text_encoders/resolve/main/clip_l.safetensors',
+ filename: 'clip_l.safetensors', subfolder: 'text_encoders', sizeGB: 0.2,
+ },
+ ],
+ },
+ {
+ name: 'FLUX 2 Klein 4B (Next Gen)',
+ description: 'Latest FLUX architecture. Fastest FLUX model with stunning quality. Includes Qwen 3 text encoder.',
+ tags: ['FLUX 2', 'Fast', '1024px'],
+ verified: true,
+ totalSizeGB: 11.1,
+ vramRequired: '8-10 GB',
+ workflow: 'flux2',
+ url: 'https://huggingface.co/Comfy-Org/vae-text-encorder-for-flux-klein-4b',
+ files: [
+ {
+ name: 'FLUX 2 Klein Base 4B',
+ description: 'FLUX 2 Klein diffusion model · next gen image generation.',
+ pulls: '', tags: ['Diffusion Model', '7.2 GB'], updated: 'New',
+ downloadUrl: 'https://huggingface.co/Comfy-Org/vae-text-encorder-for-flux-klein-4b/resolve/main/split_files/diffusion_models/flux-2-klein-base-4b.safetensors',
+ filename: 'flux-2-klein-base-4b.safetensors', subfolder: 'diffusion_models', sizeGB: 7.2,
+ },
+ {
+ name: 'FLUX 2 VAE',
+ description: 'Required autoencoder for FLUX 2.',
+ pulls: '', tags: ['VAE', '335 MB'], updated: '',
+ downloadUrl: 'https://huggingface.co/Comfy-Org/vae-text-encorder-for-flux-klein-4b/resolve/main/split_files/vae/flux2-vae.safetensors',
+ filename: 'flux2-vae.safetensors', subfolder: 'vae', sizeGB: 0.3,
+ },
+ {
+ name: 'Qwen 3 4B Text Encoder (FP4)',
+ description: 'Required text encoder for FLUX 2 Klein prompt understanding.',
+ pulls: '', tags: ['Text Encoder', '~3.5 GB'], updated: 'New',
+ downloadUrl: 'https://huggingface.co/Comfy-Org/vae-text-encorder-for-flux-klein-4b/resolve/main/split_files/text_encoders/qwen_3_4b_fp4_flux2.safetensors',
+ filename: 'qwen_3_4b_fp4_flux2.safetensors', subfolder: 'text_encoders', sizeGB: 3.5,
+ },
+ ],
+ },
+ {
+ name: 'Z-Image Turbo (Unfiltered, Fast)',
+ description: 'Explicitly unfiltered image model. 8 to 15 seconds per image. No safety filters. Text to Image and Image to Image.',
+ tags: ['Z-Image', 'Unfiltered', 'Fast', '1024px'],
+ uncensored: true,
+ verified: true,
+ totalSizeGB: 19.3,
+ vramRequired: '10-16 GB',
+ workflow: 'zimage',
+ url: 'https://huggingface.co/Comfy-Org/z_image_turbo',
+ files: [
+ {
+ name: 'Z-Image Turbo BF16',
+ description: 'Unfiltered diffusion model · no safety filters, fast generation.',
+ pulls: '', tags: ['Diffusion Model', '11.5 GB'], updated: 'New',
+ downloadUrl: 'https://huggingface.co/Comfy-Org/z_image_turbo/resolve/main/split_files/diffusion_models/z_image_turbo_bf16.safetensors',
+ filename: 'z_image_turbo_bf16.safetensors', subfolder: 'diffusion_models', sizeGB: 11.5,
+ },
+ {
+ name: 'Z-Image VAE',
+ description: 'Required autoencoder for Z-Image Turbo.',
+ pulls: '', tags: ['VAE', '335 MB'], updated: '',
+ downloadUrl: 'https://huggingface.co/Comfy-Org/z_image_turbo/resolve/main/split_files/vae/ae.safetensors',
+ filename: 'ae.safetensors', subfolder: 'vae', sizeGB: 0.3,
+ },
+ {
+ name: 'Qwen 3 4B Text Encoder',
+ description: 'Required text encoder for Z-Image Turbo prompt understanding.',
+ pulls: '', tags: ['Text Encoder', '7.5 GB'], updated: '',
+ downloadUrl: 'https://huggingface.co/Comfy-Org/z_image_turbo/resolve/main/split_files/text_encoders/qwen_3_4b.safetensors',
+ filename: 'qwen_3_4b.safetensors', subfolder: 'text_encoders', sizeGB: 7.5,
+ },
+ ],
+ },
+ {
+ name: 'Z-Image Base (Unfiltered, Quality)',
+ description: 'Highest quality unfiltered model. 30 to 50 steps for maximum detail and composition diversity. Shares VAE/CLIP with Z-Image Turbo.',
+ tags: ['Z-Image', 'Unfiltered', 'Quality', '1024px'],
+ uncensored: true,
+ verified: true,
+ totalSizeGB: 19.3,
+ vramRequired: '10-16 GB',
+ workflow: 'zimage',
+ url: 'https://huggingface.co/Comfy-Org/z_image',
+ files: [
+ {
+ name: 'Z-Image Base BF16',
+ description: 'Unfiltered diffusion model · maximum quality, more compositional diversity.',
+ pulls: '', tags: ['Diffusion Model', '11.5 GB'], updated: 'New',
+ downloadUrl: 'https://huggingface.co/Comfy-Org/z_image/resolve/main/split_files/diffusion_models/z_image_bf16.safetensors',
+ filename: 'z_image_bf16.safetensors', subfolder: 'diffusion_models', sizeGB: 11.5,
+ },
+ {
+ name: 'Z-Image VAE',
+ description: 'Required autoencoder · shared with Z-Image Turbo.',
+ pulls: '', tags: ['VAE', '335 MB'], updated: '',
+ downloadUrl: 'https://huggingface.co/Comfy-Org/z_image/resolve/main/split_files/vae/ae.safetensors',
+ filename: 'ae.safetensors', subfolder: 'vae', sizeGB: 0.3,
+ },
+ {
+ name: 'Qwen 3 4B Text Encoder',
+ description: 'Required text encoder · shared with Z-Image Turbo.',
+ pulls: '', tags: ['Text Encoder', '7.5 GB'], updated: '',
+ downloadUrl: 'https://huggingface.co/Comfy-Org/z_image/resolve/main/split_files/text_encoders/qwen_3_4b.safetensors',
+ filename: 'qwen_3_4b.safetensors', subfolder: 'text_encoders', sizeGB: 7.5,
+ },
+ ],
+ },
+ {
+ name: 'DreamShaper XL Turbo V2 (Anime/Stylized)',
+ description: 'Fast anime and stylized art. Turbo mode for 4 step generation. Great for creative work.',
+ tags: ['SDXL', 'Anime', 'Stylized', 'Turbo', '1024px'],
+ uncensored: true,
+ verified: true,
+ totalSizeGB: 6.5,
+ vramRequired: '6-8 GB',
+ workflow: 'sdxl',
+ url: 'https://huggingface.co/Lykon/dreamshaper-xl-v2-turbo',
+ files: [
+ {
+ name: 'DreamShaper XL Turbo V2',
+ description: 'SDXL checkpoint · anime and stylized art, turbo mode.',
+ pulls: '', tags: ['Checkpoint', '6.5 GB'], updated: '',
+ downloadUrl: 'https://huggingface.co/Lykon/dreamshaper-xl-v2-turbo/resolve/main/DreamShaperXL_Turbo_V2-SFW.safetensors',
+ filename: 'DreamShaperXL_Turbo_V2.safetensors', subfolder: 'checkpoints', sizeGB: 6.5,
+ },
+ ],
+ },
+ {
+ name: 'ERNIE-Image Turbo',
+ description: 'Baidu ERNIE-Image Turbo · 8B DiT, 8 steps, 1024x1024. Fastest ERNIE variant with Ministral-3B encoder + Prompt Enhancer.',
+ tags: ['ernie_image', 'Image', '1024x1024'],
+ uncensored: false,
+ verified: true,
+ totalSizeGB: 28.9,
+ vramRequired: '24 GB',
+ workflow: 'ernie_image',
+ url: 'https://huggingface.co/Comfy-Org/ERNIE-Image',
+ files: [
+ {
+ name: 'ERNIE-Image Turbo (DiT 8B)',
+ description: 'Baidu ERNIE-Image Turbo diffusion model. 8 steps, fast inference.',
+ pulls: '', tags: ['Diffusion Model', '15.0 GB'], updated: 'New',
+ downloadUrl: 'https://huggingface.co/Comfy-Org/ERNIE-Image/resolve/main/diffusion_models/ernie-image-turbo.safetensors',
+ filename: 'ernie-image-turbo.safetensors', subfolder: 'diffusion_models', sizeGB: 15.0,
+ },
+ {
+ name: 'Ministral-3-3B Text Encoder',
+ description: 'Main text encoder (Ministral-3B) for ERNIE-Image prompt understanding.',
+ pulls: '', tags: ['Text Encoder', '7.2 GB'], updated: 'New',
+ downloadUrl: 'https://huggingface.co/Comfy-Org/ERNIE-Image/resolve/main/text_encoders/ministral-3-3b.safetensors',
+ filename: 'ministral-3-3b.safetensors', subfolder: 'text_encoders', sizeGB: 7.2,
+ },
+ {
+ name: 'ERNIE Prompt Enhancer',
+ description: 'Optional prompt enhancer that expands short prompts into richer descriptions.',
+ pulls: '', tags: ['Text Encoder', '6.4 GB'], updated: 'New',
+ downloadUrl: 'https://huggingface.co/Comfy-Org/ERNIE-Image/resolve/main/text_encoders/ernie-image-prompt-enhancer.safetensors',
+ filename: 'ernie-image-prompt-enhancer.safetensors', subfolder: 'text_encoders', sizeGB: 6.4,
+ },
+ {
+ name: 'FLUX 2 VAE',
+ description: 'Required autoencoder · shared with FLUX 2.',
+ pulls: '', tags: ['VAE', '335 MB'], updated: '',
+ downloadUrl: 'https://huggingface.co/Comfy-Org/ERNIE-Image/resolve/main/vae/flux2-vae.safetensors',
+ filename: 'flux2-vae.safetensors', subfolder: 'vae', sizeGB: 0.3,
+ },
+ ],
+ },
+ {
+ name: 'ERNIE-Image Base',
+ description: 'Baidu ERNIE-Image Base · 8B DiT, 50 steps, 1024x1024. Highest quality ERNIE variant.',
+ tags: ['ernie_image', 'Image', '1024x1024'],
+ uncensored: false,
+ verified: true,
+ totalSizeGB: 28.9,
+ vramRequired: '24 GB',
+ workflow: 'ernie_image',
+ url: 'https://huggingface.co/Comfy-Org/ERNIE-Image',
+ files: [
+ {
+ name: 'ERNIE-Image Base (DiT 8B)',
+ description: 'Baidu ERNIE-Image Base diffusion model. 50 steps, highest quality.',
+ pulls: '', tags: ['Diffusion Model', '15.0 GB'], updated: 'New',
+ downloadUrl: 'https://huggingface.co/Comfy-Org/ERNIE-Image/resolve/main/diffusion_models/ernie-image.safetensors',
+ filename: 'ernie-image.safetensors', subfolder: 'diffusion_models', sizeGB: 15.0,
+ },
+ {
+ name: 'Ministral-3-3B Text Encoder',
+ description: 'Main text encoder (Ministral-3B) for ERNIE-Image prompt understanding.',
+ pulls: '', tags: ['Text Encoder', '7.2 GB'], updated: 'New',
+ downloadUrl: 'https://huggingface.co/Comfy-Org/ERNIE-Image/resolve/main/text_encoders/ministral-3-3b.safetensors',
+ filename: 'ministral-3-3b.safetensors', subfolder: 'text_encoders', sizeGB: 7.2,
+ },
+ {
+ name: 'ERNIE Prompt Enhancer',
+ description: 'Optional prompt enhancer that expands short prompts into richer descriptions.',
+ pulls: '', tags: ['Text Encoder', '6.4 GB'], updated: 'New',
+ downloadUrl: 'https://huggingface.co/Comfy-Org/ERNIE-Image/resolve/main/text_encoders/ernie-image-prompt-enhancer.safetensors',
+ filename: 'ernie-image-prompt-enhancer.safetensors', subfolder: 'text_encoders', sizeGB: 6.4,
+ },
+ {
+ name: 'FLUX 2 VAE',
+ description: 'Required autoencoder · shared with FLUX 2.',
+ pulls: '', tags: ['VAE', '335 MB'], updated: '',
+ downloadUrl: 'https://huggingface.co/Comfy-Org/ERNIE-Image/resolve/main/vae/flux2-vae.safetensors',
+ filename: 'flux2-vae.safetensors', subfolder: 'vae', sizeGB: 0.3,
+ },
+ ],
+ },
+ {
+ name: 'SDXL VAE (fp16-fix) · addon',
+ description: 'Standard SDXL VAE (madebyollin fp16-fix). Optional VAE override for any SDXL checkpoint; fixes washed out / desaturated output on some models. After download, pick it under Advanced → VAE.',
+ tags: ['SDXL', 'VAE', 'Addon'],
+ verified: true,
+ totalSizeGB: 0.33,
+ vramRequired: 'any',
+ workflow: 'sdxl',
+ url: 'https://huggingface.co/madebyollin/sdxl-vae-fp16-fix',
+ files: [
+ {
+ name: 'SDXL VAE fp16-fix',
+ description: 'Drop in SDXL VAE → models/vae.',
+ pulls: '', tags: ['VAE', '335 MB'], updated: '',
+ downloadUrl: 'https://huggingface.co/madebyollin/sdxl-vae-fp16-fix/resolve/main/sdxl_vae.safetensors',
+ filename: 'sdxl_vae.safetensors', subfolder: 'vae', sizeGB: 0.33,
+ },
+ ],
+ },
+ {
+ name: 'Pixel Art XL · SDXL LoRA',
+ description: 'nerijs Pixel Art XL · turns any SDXL model into crisp pixel art. A clearly visible style LoRA. After download, pick it under Advanced → LoRA and raise the strength.',
+ tags: ['SDXL', 'LoRA', 'Style'],
+ verified: true,
+ totalSizeGB: 0.17,
+ vramRequired: 'any',
+ workflow: 'sdxl',
+ url: 'https://huggingface.co/nerijs/pixel-art-xl',
+ files: [
+ {
+ name: 'Pixel Art XL LoRA',
+ description: 'SDXL pixel art style LoRA → models/loras.',
+ pulls: '', tags: ['LoRA', '170 MB'], updated: '',
+ downloadUrl: 'https://huggingface.co/nerijs/pixel-art-xl/resolve/main/pixel-art-xl.safetensors',
+ filename: 'pixel-art-xl.safetensors', subfolder: 'loras', sizeGB: 0.17,
+ },
+ ],
+ },
+ ]
+}
+
+// Flat list for backwards compat
+export function getImageModelsDiscover(): DiscoverModel[] {
+ const bundles = getImageBundles()
+ const files: DiscoverModel[] = []
+ for (const b of bundles) files.push(...b.files)
+ const seen = new Set<string>()
+ return files.filter(f => {
+ if (!f.filename || seen.has(f.filename)) return false
+ seen.add(f.filename)
+ return true
+ })
+}
+
+// ─── Video Model Bundles ───
+// Each bundle contains ALL files needed for a working video workflow.
+// "Install All" downloads model + VAE + CLIP together.
+
+export interface CustomNodeDef {
+ key: string
+ repo: string
+ name: string
+}
+
+export const CUSTOM_NODE_REGISTRY: Record<string, { repo: string; name: string; requiredNodes: string[] }> = {
+ 'animatediff-evolved': {
+ repo: 'https://github.com/Kosinkadink/ComfyUI-AnimateDiff-Evolved',
+ name: 'ComfyUI-AnimateDiff-Evolved',
+ requiredNodes: ['ADE_LoadAnimateDiffModel', 'ADE_ApplyAnimateDiffModelSimple', 'ADE_UseEvolvedSampling'],
+ },
+ 'cogvideox-wrapper': {
+ repo: 'https://github.com/kijai/ComfyUI-CogVideoXWrapper',
+ name: 'ComfyUI-CogVideoXWrapper',
+ requiredNodes: ['CogVideoXModelLoader', 'CogVideoXCLIPLoader', 'CogVideoXTextEncode', 'CogVideoXEmptyLatents', 'CogVideoXSampler', 'CogVideoXVAEDecode'],
+ },
+ 'framepack-wrapper': {
+ repo: 'https://github.com/kijai/ComfyUI-FramePackWrapper',
+ name: 'ComfyUI-FramePackWrapper',
+ requiredNodes: ['LoadFramePackModel', 'FramePackSampler'],
+ },
+ 'pyramidflow-wrapper': {
+ repo: 'https://github.com/kijai/ComfyUI-PyramidFlowWrapper',
+ name: 'ComfyUI-PyramidFlowWrapper',
+ requiredNodes: ['PyramidFlowModelLoader', 'PyramidFlowVAELoader', 'PyramidFlowTextEncode', 'PyramidFlowSampler', 'PyramidFlowDecode'],
+ },
+ 'allegro': {
+ repo: 'https://github.com/bombax-xiaoice/ComfyUI-Allegro',
+ name: 'ComfyUI-Allegro',
+ requiredNodes: ['AllegroModelLoader', 'AllegroTextEncode', 'AllegroSampler', 'AllegroDecoder'],
+ },
+ // VHS_VideoCombine · the ONLY ComfyUI node that produces actual .mp4 video
+ // output. Without it, the workflow falls back to SaveAnimatedWEBP which
+ // makes "video generation" emit an animated .webp file. Two reporters
+ // (miguelkodoatie on Discord 2026-05-14, Turbulent_Tomato7559 on Reddit
+ // 2026-05-10) hit this on v2.4.3/2.4.4: t2i works, t2v "succeeds" but the
+ // output is a .webp that no video player will open. v2.4.4 added a
+ // warning banner; v2.4.5 makes it a one-click install instead.
+ 'videohelpersuite': {
+ repo: 'https://github.com/Kosinkadink/ComfyUI-VideoHelperSuite',
+ name: 'ComfyUI-VideoHelperSuite',
+ requiredNodes: ['VHS_VideoCombine', 'VHS_LoadVideo'],
+ },
+ // Background removal (Create → Remove Background). ComfyUI-RMBG registers the
+ // `RMBG` node · the exact class the capability probe + workflow builder look
+ // for · and auto-downloads its cutout model (BiRefNet / RMBG-2.0, ~300 MB)
+ // into ComfyUI/models/RMBG on first use. So the one-click action only needs to
+ // install the node; the model lands on the first cutout run.
+ 'rmbg': {
+ repo: 'https://github.com/1038lab/ComfyUI-RMBG',
+ name: 'ComfyUI-RMBG',
+ requiredNodes: ['RMBG'],
+ },
+ // GGUF quant loader (city96). Lets the 2.5.8 lanes offer Q4 quants of the
+ // 14B Wan models (S2V / Animate / NSFW finetunes) — the difference between
+ // "needs 16 GB on disk and heavy offload" and "runs comfortably on 12 GB".
+ // requirements.txt is just the gguf package, no exotic wheels.
+ 'gguf': {
+ repo: 'https://github.com/city96/ComfyUI-GGUF',
+ name: 'ComfyUI-GGUF',
+ requiredNodes: ['UnetLoaderGGUF'],
+ },
+ // Pose extraction for the local Motion Control lane (DWPose skeletons feed
+ // WanAnimateToVideo / WanVaceToVideo). Its requirements pull the CPU
+ // onnxruntime wheel — works on every Windows box, no GPU wheel roulette;
+ // the DWPose onnx models auto-download on first run.
+ 'controlnet-aux': {
+ repo: 'https://github.com/Fannovel16/comfyui_controlnet_aux',
+ name: 'comfyui_controlnet_aux',
+ requiredNodes: ['DWPreprocessor'],
+ },
+}
+
+export interface ModelBundle {
+ name: string
+ description: string
+ tags: string[]
+ totalSizeGB: number
+ vramRequired: string
+ workflow: string
+ files: DiscoverModel[]
+ url?: string
+ hot?: boolean
+ uncensored?: boolean
+ customNodes?: string[] // keys into CUSTOM_NODE_REGISTRY
+ i2v?: boolean // Image-to-Video model
+ verified?: boolean // E2E tested and confirmed working
+}
+
+export function getVideoBundles(): ModelBundle[] {
+ return [
+ {
+ name: 'Wan 2.1 · 1.3B (Lightweight)',
+ description: 'Best for 8 to 10 GB VRAM GPUs. Generates 480p video. Fast and lightweight.',
+ tags: ['Wan 2.1', '480p', 'Fast'],
+ uncensored: true,
+ verified: true,
+ totalSizeGB: 9.2,
+ vramRequired: '8-10 GB',
+ workflow: 'wan',
+ url: 'https://huggingface.co/Comfy-Org/Wan_2.1_ComfyUI_repackaged',
+ files: [
+ {
+ name: 'Wan 2.1 T2V 1.3B Model',
+ description: 'The main video generation model.',
+ pulls: '', tags: ['Model', '2.5 GB'], updated: '',
+ downloadUrl: 'https://huggingface.co/Comfy-Org/Wan_2.1_ComfyUI_repackaged/resolve/main/split_files/diffusion_models/wan2.1_t2v_1.3B_bf16.safetensors',
+ filename: 'wan2.1_t2v_1.3B_bf16.safetensors', subfolder: 'diffusion_models', sizeGB: 2.5,
+ },
+ {
+ name: 'Wan 2.1 VAE',
+ description: 'Required video encoder/decoder.',
+ pulls: '', tags: ['VAE', '200 MB'], updated: '',
+ downloadUrl: 'https://huggingface.co/Comfy-Org/Wan_2.1_ComfyUI_repackaged/resolve/main/split_files/vae/wan_2.1_vae.safetensors',
+ filename: 'wan_2.1_vae.safetensors', subfolder: 'vae', sizeGB: 0.2,
+ },
+ {
+ name: 'Wan 2.1 CLIP (UMT5-XXL FP8)',
+ description: 'Required text encoder.',
+ pulls: '', tags: ['CLIP', '4.9 GB'], updated: '',
+ downloadUrl: 'https://huggingface.co/Comfy-Org/Wan_2.1_ComfyUI_repackaged/resolve/main/split_files/text_encoders/umt5_xxl_fp8_e4m3fn_scaled.safetensors',
+ filename: 'umt5_xxl_fp8_e4m3fn_scaled.safetensors', subfolder: 'text_encoders', sizeGB: 6.3,
+ },
+ ],
+ },
+ {
+ name: 'Wan 2.1 · 14B FP8 (High Quality)',
+ description: 'Best quality for 12+ GB VRAM. Generates up to 720p. Slower but much better results.',
+ tags: ['Wan 2.1', '720p', 'Quality'],
+ uncensored: true,
+ verified: true,
+ totalSizeGB: 20.5,
+ vramRequired: '12+ GB',
+ workflow: 'wan',
+ url: 'https://huggingface.co/Comfy-Org/Wan_2.1_ComfyUI_repackaged',
+ files: [
+ {
+ name: 'Wan 2.1 T2V 14B (FP8)',
+ description: 'The main video generation model (quantized).',
+ pulls: '', tags: ['Model', '14 GB'], updated: '',
+ downloadUrl: 'https://huggingface.co/Comfy-Org/Wan_2.1_ComfyUI_repackaged/resolve/main/split_files/diffusion_models/wan2.1_t2v_14B_fp8_e4m3fn.safetensors',
+ filename: 'wan2.1_t2v_14B_fp8.safetensors', subfolder: 'diffusion_models', sizeGB: 14.0,
+ },
+ {
+ name: 'Wan 2.1 VAE',
+ description: 'Required video encoder/decoder.',
+ pulls: '', tags: ['VAE', '200 MB'], updated: '',
+ downloadUrl: 'https://huggingface.co/Comfy-Org/Wan_2.1_ComfyUI_repackaged/resolve/main/split_files/vae/wan_2.1_vae.safetensors',
+ filename: 'wan_2.1_vae.safetensors', subfolder: 'vae', sizeGB: 0.2,
+ },
+ {
+ name: 'Wan 2.1 CLIP (UMT5-XXL FP8)',
+ description: 'Required text encoder.',
+ pulls: '', tags: ['CLIP', '4.9 GB'], updated: '',
+ downloadUrl: 'https://huggingface.co/Comfy-Org/Wan_2.1_ComfyUI_repackaged/resolve/main/split_files/text_encoders/umt5_xxl_fp8_e4m3fn_scaled.safetensors',
+ filename: 'umt5_xxl_fp8_e4m3fn_scaled.safetensors', subfolder: 'text_encoders', sizeGB: 6.3,
+ },
+ ],
+ },
+ {
+ name: 'Wan 2.2 · TI2V 5B (Image + Text to Video)',
+ description: 'Wan 2.2 TI2V-5B · ONE model for both text to video and faithful image to video (the clip opens on your source image). Native 1280×704 @ 24 fps, smooth 2 to 7 s clips. The best quality video model that fits 12 GB.',
+ tags: ['Wan 2.2', '720p', 'I2V', 'T2V', 'Quality'],
+ uncensored: true,
+ verified: true,
+ i2v: true,
+ hot: true,
+ totalSizeGB: 16.9,
+ vramRequired: '12+ GB',
+ workflow: 'wan22',
+ url: 'https://huggingface.co/Comfy-Org/Wan_2.2_ComfyUI_Repackaged',
+ files: [
+ {
+ name: 'Wan 2.2 TI2V 5B Model (FP16)',
+ description: 'The unified text + image to video model.',
+ pulls: '', tags: ['Model', '~9.3 GB'], updated: 'New',
+ downloadUrl: 'https://huggingface.co/Comfy-Org/Wan_2.2_ComfyUI_Repackaged/resolve/main/split_files/diffusion_models/wan2.2_ti2v_5B_fp16.safetensors',
+ filename: 'wan2.2_ti2v_5B_fp16.safetensors', subfolder: 'diffusion_models', sizeGB: 9.3,
+ },
+ {
+ name: 'Wan 2.2 VAE',
+ description: 'Required video encoder/decoder · the 2.2 VAE (NOT the 2.1 VAE: higher compression, different latent shape).',
+ pulls: '', tags: ['VAE', '~1.3 GB'], updated: 'New',
+ downloadUrl: 'https://huggingface.co/Comfy-Org/Wan_2.2_ComfyUI_Repackaged/resolve/main/split_files/vae/wan2.2_vae.safetensors',
+ filename: 'wan2.2_vae.safetensors', subfolder: 'vae', sizeGB: 1.3,
+ },
+ {
+ name: 'Wan CLIP (UMT5-XXL FP8)',
+ description: 'Required text encoder · shared with Wan 2.1, so it is skipped if already installed.',
+ pulls: '', tags: ['CLIP', '6.3 GB'], updated: '',
+ downloadUrl: 'https://huggingface.co/Comfy-Org/Wan_2.1_ComfyUI_repackaged/resolve/main/split_files/text_encoders/umt5_xxl_fp8_e4m3fn_scaled.safetensors',
+ filename: 'umt5_xxl_fp8_e4m3fn_scaled.safetensors', subfolder: 'text_encoders', sizeGB: 6.3,
+ },
+ ],
+ },
+ {
+ name: 'HunyuanVideo 1.5 T2V FP8 (High Quality)',
+ description: 'Tencent HunyuanVideo 1.5 · excellent temporal consistency and visual quality. 480p text to video with CFG distillation.',
+ tags: ['HunyuanVideo 1.5', '480p', 'Quality'],
+ uncensored: true,
+ verified: true,
+ totalSizeGB: 18.8,
+ vramRequired: '12+ GB',
+ workflow: 'hunyuan',
+ url: 'https://huggingface.co/Comfy-Org/HunyuanVideo_1.5_repackaged',
+ files: [
+ {
+ name: 'HunyuanVideo 1.5 T2V FP8',
+ description: 'The main video generation model (480p, CFG distilled, quantized).',
+ pulls: '', tags: ['Model', '7.8 GB'], updated: '',
+ downloadUrl: 'https://huggingface.co/Comfy-Org/HunyuanVideo_1.5_repackaged/resolve/main/split_files/diffusion_models/hunyuanvideo1.5_480p_t2v_cfg_distilled_fp8_scaled.safetensors',
+ filename: 'hunyuanvideo1.5_480p_t2v_fp8.safetensors', subfolder: 'diffusion_models', sizeGB: 7.8,
+ },
+ {
+ name: 'HunyuanVideo 1.5 VAE',
+ description: 'Required video encoder/decoder.',
+ pulls: '', tags: ['VAE', '2.3 GB'], updated: '',
+ downloadUrl: 'https://huggingface.co/Comfy-Org/HunyuanVideo_1.5_repackaged/resolve/main/split_files/vae/hunyuanvideo15_vae_fp16.safetensors',
+ filename: 'hunyuanvideo15_vae_fp16.safetensors', subfolder: 'vae', sizeGB: 2.3,
+ },
+ {
+ name: 'Qwen 2.5 VL 7B Text Encoder (FP8)',
+ description: 'Required text encoder for HunyuanVideo 1.5.',
+ pulls: '', tags: ['Text Encoder', '8.8 GB'], updated: '',
+ downloadUrl: 'https://huggingface.co/Comfy-Org/HunyuanVideo_1.5_repackaged/resolve/main/split_files/text_encoders/qwen_2.5_vl_7b_fp8_scaled.safetensors',
+ filename: 'qwen_2.5_vl_7b_fp8_scaled.safetensors', subfolder: 'text_encoders', sizeGB: 8.8,
+ },
+ {
+ name: 'CLIP-L Text Encoder',
+ description: 'Required secondary text encoder.',
+ pulls: '', tags: ['Text Encoder', '240 MB'], updated: '',
+ downloadUrl: 'https://huggingface.co/Comfy-Org/HunyuanVideo_repackaged/resolve/main/split_files/text_encoders/clip_l.safetensors',
+ filename: 'clip_l.safetensors', subfolder: 'text_encoders', sizeGB: 0.2,
+ },
+ ],
+ },
+ {
+ name: 'LTX Video 2.3 · 22B FP8 (Latest)',
+ description: 'Lightricks LTX Video 2.3 · fast inference, high quality. Uses Gemma 3 12B text encoder. Distilled for speed.',
+ tags: ['LTX 2.3', '22B', 'Quality'],
+ verified: true,
+ totalSizeGB: 40,
+ vramRequired: '16+ GB',
+ workflow: 'ltx',
+ url: 'https://huggingface.co/Lightricks/LTX-2.3-fp8',
+ files: [
+ {
+ name: 'LTX 2.3 22B Distilled FP8',
+ description: 'Main video model · distilled for fast inference.',
+ pulls: '', tags: ['Model', '~22 GB'], updated: 'New',
+ downloadUrl: 'https://huggingface.co/Lightricks/LTX-2.3-fp8/resolve/main/ltx-2.3-22b-distilled-fp8.safetensors',
+ filename: 'ltx-2.3-22b-distilled-fp8.safetensors', subfolder: 'diffusion_models', sizeGB: 27.5,
+ },
+ {
+ name: 'Gemma 3 12B Text Encoder (FP8)',
+ description: 'Required text encoder for LTX Video 2.x.',
+ pulls: '', tags: ['Text Encoder', '12.4 GB'], updated: 'New',
+ downloadUrl: 'https://huggingface.co/Comfy-Org/ltx-2/resolve/main/split_files/text_encoders/gemma_3_12B_it_fp8_scaled.safetensors',
+ filename: 'gemma_3_12B_it_fp8_scaled.safetensors', subfolder: 'text_encoders', sizeGB: 12.4,
+ },
+ ],
+ },
+ // ─── NEW VIDEO BUNDLES ───
+ {
+ name: 'AnimateDiff Lightning',
+ description: 'Ultra fast 4 step animation on any SD1.5 checkpoint. Great for quick iterations. Needs an SD1.5 base model.',
+ tags: ['AnimateDiff', '512x512', 'Lightning'],
+ verified: true,
+ totalSizeGB: 2.8,
+ vramRequired: '6-8 GB',
+ workflow: 'animatediff',
+ customNodes: ['animatediff-evolved'],
+ url: 'https://huggingface.co/ByteDance/AnimateDiff-Lightning',
+ files: [
+ {
+ name: 'AnimateDiff Lightning Motion Model (4 step)',
+ description: 'Lightning fast motion model. Only 4 sampling steps needed.',
+ pulls: '', tags: ['Motion', '800 MB'], updated: '',
+ downloadUrl: 'https://huggingface.co/ByteDance/AnimateDiff-Lightning/resolve/main/animatediff_lightning_4step_comfyui.safetensors',
+ filename: 'animatediff_lightning_4step_comfyui.safetensors', subfolder: 'custom_nodes/ComfyUI-AnimateDiff-Evolved/models', sizeGB: 0.8,
+ },
+ {
+ name: 'Realistic Vision V6 (SD1.5 Base)',
+ description: 'Recommended SD1.5 base checkpoint for realistic animations.',
+ pulls: '', tags: ['Checkpoint', '~2 GB'], updated: '',
+ downloadUrl: 'https://huggingface.co/SG161222/Realistic_Vision_V6.0_B1_noVAE/resolve/main/Realistic_Vision_V6.0_NV_B1_fp16.safetensors',
+ filename: 'Realistic_Vision_V6.0_NV_B1_fp16.safetensors', subfolder: 'checkpoints', sizeGB: 2.0,
+ },
+ ],
+ },
+ {
+ name: 'AnimateDiff v3',
+ description: 'Classic AnimateDiff with more frames and better quality than Lightning. Slower but more detailed.',
+ tags: ['AnimateDiff', '512x768', 'Quality'],
+ totalSizeGB: 3.6,
+ vramRequired: '6-8 GB',
+ workflow: 'animatediff',
+ customNodes: ['animatediff-evolved'],
+ url: 'https://huggingface.co/guoyww/animatediff',
+ files: [
+ {
+ name: 'AnimateDiff v3 Motion Adapter',
+ description: 'Standard motion model · 20 steps, good quality.',
+ pulls: '', tags: ['Motion', '1.6 GB'], updated: '',
+ downloadUrl: 'https://huggingface.co/guoyww/animatediff/resolve/main/v3_sd15_mm.ckpt',
+ filename: 'v3_sd15_mm.ckpt', subfolder: 'custom_nodes/ComfyUI-AnimateDiff-Evolved/models', sizeGB: 1.6,
+ },
+ {
+ name: 'Realistic Vision V6 (SD1.5 Base)',
+ description: 'Recommended SD1.5 base checkpoint.',
+ pulls: '', tags: ['Checkpoint', '~2 GB'], updated: '',
+ downloadUrl: 'https://huggingface.co/SG161222/Realistic_Vision_V6.0_B1_noVAE/resolve/main/Realistic_Vision_V6.0_NV_B1_fp16.safetensors',
+ filename: 'Realistic_Vision_V6.0_NV_B1_fp16.safetensors', subfolder: 'checkpoints', sizeGB: 2.0,
+ },
+ ],
+ },
+ // CogVideoX removed 2026-07-24 (D#88) · both bundles were 21 GB of download
+ // for a lane that could never run. buildCogVideoWorkflow emits five class
+ // types that exist in no version of kijai/ComfyUI-CogVideoXWrapper
+ // (CogVideoXCLIPLoader, CogVideoXTextEncode, CogVideoXEmptyLatents,
+ // CogVideoXSampler, CogVideoXVAEDecode · the real names are CogVideoTextEncode,
+ // CogVideoSampler, CogVideoDecode and there is no empty latents node at all),
+ // so every submit came back a 400. Verified against a real checkout of the
+ // wrapper. Offering the download again needs a rebuilt builder plus a real
+ // end to end run, not a rename. Wan, LTX and SVD cover the same ground and
+ // are proven.
+ {
+ name: 'FramePack F1 (Image to Video)',
+ description: 'Revolutionary I2V: runs on 6 GB VRAM via next frame prediction. Upload an image, get a video. Uses HunyuanVideo backbone.',
+ tags: ['FramePack', 'I2V', 'Low VRAM'],
+ uncensored: true,
+ verified: true,
+ totalSizeGB: 27.0,
+ vramRequired: '6-8 GB',
+ workflow: 'framepack',
+ i2v: true,
+ customNodes: ['framepack-wrapper'],
+ url: 'https://huggingface.co/lllyasviel/FramePack_F1_I2V_HY_20250503',
+ files: [
+ {
+ name: 'FramePack F1 I2V Model (FP8)',
+ description: 'Main I2V model · generates video from a single image.',
+ pulls: '', tags: ['Model', '15.3 GB'], updated: '',
+ downloadUrl: 'https://huggingface.co/Kijai/HunyuanVideo_comfy/resolve/main/FramePackI2V_HY_fp8_e4m3fn.safetensors',
+ filename: 'FramePackI2V_HY_fp8_e4m3fn.safetensors', subfolder: 'diffusion_models', sizeGB: 15.3,
+ },
+ {
+ name: 'SigCLIP Vision Encoder',
+ description: 'Required vision encoder for image understanding.',
+ pulls: '', tags: ['CLIP Vision', '900 MB'], updated: '',
+ downloadUrl: 'https://huggingface.co/Comfy-Org/sigclip_vision_384/resolve/main/sigclip_vision_patch14_384.safetensors',
+ filename: 'sigclip_vision_patch14_384.safetensors', subfolder: 'clip_vision', sizeGB: 0.9,
+ },
+ {
+ name: 'HunyuanVideo VAE',
+ description: 'Required video encoder/decoder (HunyuanVideo 1.0, the backbone FramePack was trained on).',
+ pulls: '', tags: ['VAE', '493 MB'], updated: '',
+ downloadUrl: 'https://huggingface.co/Comfy-Org/HunyuanVideo_repackaged/resolve/main/split_files/vae/hunyuan_video_vae_bf16.safetensors',
+ filename: 'hunyuan_video_vae_bf16.safetensors', subfolder: 'vae', sizeGB: 0.5,
+ },
+ {
+ name: 'CLIP-L Text Encoder',
+ description: 'Required text encoder (shared).',
+ pulls: '', tags: ['Text Encoder', '240 MB'], updated: '',
+ downloadUrl: 'https://huggingface.co/Comfy-Org/HunyuanVideo_repackaged/resolve/main/split_files/text_encoders/clip_l.safetensors',
+ filename: 'clip_l.safetensors', subfolder: 'text_encoders', sizeGB: 0.2,
+ },
+ {
+ name: 'LLaVA LLaMA3 Text Encoder (FP8)',
+ description: 'Required text encoder for FramePack.',
+ pulls: '', tags: ['Text Encoder', '8.5 GB'], updated: '',
+ downloadUrl: 'https://huggingface.co/Comfy-Org/HunyuanVideo_repackaged/resolve/main/split_files/text_encoders/llava_llama3_fp8_scaled.safetensors',
+ filename: 'llava_llama3_fp8_scaled.safetensors', subfolder: 'text_encoders', sizeGB: 8.5,
+ },
+ ],
+ },
+ {
+ name: 'SVD-XT 1.1 (Image to Video)',
+ description: 'Stable Video Diffusion by Stability AI. Upload an image, get 25 frames of smooth video. Native ComfyUI support.',
+ tags: ['SVD', 'I2V', 'Native'],
+ verified: true,
+ totalSizeGB: 4.8,
+ vramRequired: '12+ GB',
+ workflow: 'svd',
+ i2v: true,
+ url: 'https://huggingface.co/stabilityai/stable-video-diffusion-img2vid-xt-1-1',
+ files: [
+ {
+ name: 'SVD-XT 1.1 Checkpoint',
+ description: 'Complete I2V model · no additional downloads needed.',
+ pulls: '', tags: ['Checkpoint', '4.8 GB'], updated: '',
+ downloadUrl: 'https://huggingface.co/vdo/stable-video-diffusion-img2vid-xt-1-1/resolve/main/svd_xt_1_1.safetensors',
+ filename: 'svd_xt_1_1.safetensors', subfolder: 'checkpoints', sizeGB: 4.8,
+ },
+ ],
+ },
+ {
+ name: 'Mochi 1 Preview (FP8)',
+ description: 'Genmo Mochi · 848x480 video at 24 FPS. Good motion and temporal consistency. Native ComfyUI support.',
+ tags: ['Mochi', '848x480', 'Native'],
+ totalSizeGB: 20.4,
+ vramRequired: '16+ GB',
+ workflow: 'mochi',
+ url: 'https://huggingface.co/Comfy-Org/mochi_preview_repackaged',
+ files: [
+ {
+ name: 'Mochi 1 Preview (FP8)',
+ description: 'Main video model (quantized for lower VRAM).',
+ pulls: '', tags: ['Model', '10 GB'], updated: '',
+ downloadUrl: 'https://huggingface.co/Comfy-Org/mochi_preview_repackaged/resolve/main/split_files/diffusion_models/mochi_preview_fp8_scaled.safetensors',
+ filename: 'mochi_preview_fp8_scaled.safetensors', subfolder: 'diffusion_models', sizeGB: 10,
+ },
+ {
+ name: 'Mochi VAE',
+ description: 'Required video encoder/decoder.',
+ pulls: '', tags: ['VAE', '0.9 GB'], updated: '',
+ downloadUrl: 'https://huggingface.co/Comfy-Org/mochi_preview_repackaged/resolve/main/split_files/vae/mochi_vae.safetensors',
+ filename: 'mochi_vae.safetensors', subfolder: 'vae', sizeGB: 0.9,
+ },
+ {
+ name: 'T5-XXL Text Encoder (FP16)',
+ description: 'Required text encoder for Mochi.',
+ pulls: '', tags: ['Text Encoder', '9.5 GB'], updated: '',
+ downloadUrl: 'https://huggingface.co/Comfy-Org/mochi_preview_repackaged/resolve/main/split_files/text_encoders/t5xxl_fp16.safetensors',
+ filename: 't5xxl_fp16.safetensors', subfolder: 'text_encoders', sizeGB: 9.5,
+ },
+ ],
+ },
+ // Pyramid Flow removed 2026-07-24 (same audit as CogVideoX) · the builder was
+ // written against invented node names too. Checked against a real checkout of
+ // kijai/ComfyUI-PyramidFlowWrapper: the loader is registered as
+ // PyramidFlowTransformerLoader (not PyramidFlowModelLoader), decode is
+ // PyramidFlowVAEDecode (not PyramidFlowDecode) and needs a vae input we never
+ // wired, the text encoder takes clip + positive_prompt + negative_prompt (we
+ // passed a single `text` and no CLIP at all), and the sampler wants
+ // prompt_embeds plus per stage step strings rather than steps and frames. That
+ // is a rewrite, not a rename, so the 4.6 GB download comes back only with a
+ // real run behind it.
+ // Allegro removed · diffusers format only, no single-file safetensors available for one-click install
+ {
+ name: 'NVIDIA Cosmos 7B',
+ description: 'NVIDIA Cosmos Diffusion 7B Text to World. 1024x1024 output at 24 FPS. Native ComfyUI support. Uses oldt5 text encoder (NOT t5xxl).',
+ tags: ['Cosmos', '1024x1024', 'NVIDIA'],
+ totalSizeGB: 19.2,
+ vramRequired: '24+ GB',
+ workflow: 'cosmos',
+ url: 'https://huggingface.co/mcmonkey/cosmos-1.0',
+ files: [
+ {
+ name: 'Cosmos 7B Text2World',
+ description: 'Main video generation model by NVIDIA.',
+ pulls: '', tags: ['Model', '14 GB'], updated: '',
+ downloadUrl: 'https://huggingface.co/mcmonkey/cosmos-1.0/resolve/main/Cosmos-1_0-Diffusion-7B-Text2World.safetensors',
+ filename: 'Cosmos-1_0-Diffusion-7B-Text2World.safetensors', subfolder: 'diffusion_models', sizeGB: 14,
+ },
+ {
+ name: 'OldT5-XXL Text Encoder (FP8)',
+ description: 'Required text encoder · NOT the same as regular T5-XXL!',
+ pulls: '', tags: ['Text Encoder', '4.9 GB'], updated: '',
+ downloadUrl: 'https://huggingface.co/comfyanonymous/cosmos_1.0_text_encoder_and_VAE_ComfyUI/resolve/main/text_encoders/oldt5_xxl_fp8_e4m3fn_scaled.safetensors',
+ filename: 'oldt5_xxl_fp8_e4m3fn_scaled.safetensors', subfolder: 'text_encoders', sizeGB: 4.9,
+ },
+ {
+ name: 'Cosmos VAE',
+ description: 'Required video encoder/decoder.',
+ pulls: '', tags: ['VAE', '300 MB'], updated: '',
+ downloadUrl: 'https://huggingface.co/comfyanonymous/cosmos_1.0_text_encoder_and_VAE_ComfyUI/resolve/main/vae/cosmos_cv8x8x8_1.0.safetensors',
+ filename: 'cosmos_cv8x8x8_1.0.safetensors', subfolder: 'vae', sizeGB: 0.2,
+ },
+ ],
+ },
+ {
+ name: 'NSFW Wan 14B (Uncensored, GGUF)',
+ description: 'Full uncensored finetune of Wan 2.1 14B. Text to video, motion trained in, no helper LoRA needed.',
+ tags: ['Wan 2.1', 'Uncensored', 'GGUF', '480p'],
+ uncensored: true,
+ totalSizeGB: 15.5,
+ vramRequired: '10-12 GB',
+ workflow: 'wan',
+ customNodes: ['gguf'],
+ url: 'https://huggingface.co/NSFW-API/NSFW_Wan_14b',
+ files: [
+ {
+ name: 'NSFW Wan 14B Q4 (GGUF)',
+ description: 'The finetuned video model, final e15 epoch, Q4 quant.',
+ pulls: '', tags: ['Model', '9 GB'], updated: '',
+ downloadUrl: 'https://huggingface.co/NSFW-API/NSFW_Wan_14b/resolve/main/nsfw_wan_14b_e15_q4_k.gguf',
+ filename: 'nsfw_wan_14b_e15_q4_k.gguf', subfolder: 'diffusion_models', sizeGB: 9.0,
+ },
+ {
+ name: 'Wan 2.1 VAE',
+ description: 'Required video encoder/decoder.',
+ pulls: '', tags: ['VAE', '250 MB'], updated: '',
+ downloadUrl: 'https://huggingface.co/Comfy-Org/Wan_2.1_ComfyUI_repackaged/resolve/main/split_files/vae/wan_2.1_vae.safetensors',
+ filename: 'wan_2.1_vae.safetensors', subfolder: 'vae', sizeGB: 0.24,
+ },
+ {
+ name: 'Wan CLIP (UMT5-XXL FP8)',
+ description: 'Required text encoder.',
+ pulls: '', tags: ['CLIP', '6.3 GB'], updated: '',
+ downloadUrl: 'https://huggingface.co/Comfy-Org/Wan_2.1_ComfyUI_repackaged/resolve/main/split_files/text_encoders/umt5_xxl_fp8_e4m3fn_scaled.safetensors',
+ filename: 'umt5_xxl_fp8_e4m3fn_scaled.safetensors', subfolder: 'text_encoders', sizeGB: 6.27,
+ },
+ ],
+ },
+ {
+ name: 'Wan 2.2 Rapid AIO (Uncensored I2V, GGUF)',
+ description: 'Uncensored Wan 2.2 image to video, lightning merged for few step renders. Great for Animate and Extend.',
+ tags: ['Wan 2.2', 'Uncensored', 'I2V', 'GGUF', 'Fast'],
+ uncensored: true,
+ i2v: true,
+ totalSizeGB: 16.6,
+ vramRequired: '10-12 GB',
+ workflow: 'wan',
+ customNodes: ['gguf'],
+ url: 'https://huggingface.co/desirel/WAN2.2-14B-Rapid-AllInOne-GGUF-NSFW-v10',
+ files: [
+ {
+ name: 'Wan 2.2 Rapid AIO v10 Q4 (GGUF)',
+ description: 'The merged uncensored i2v model, Q4 quant.',
+ pulls: '', tags: ['Model', '10.1 GB'], updated: '',
+ downloadUrl: 'https://huggingface.co/desirel/WAN2.2-14B-Rapid-AllInOne-GGUF-NSFW-v10/resolve/main/wan2.2-i2v-rapid-aio-v10-nsfw-Q4_K_M.gguf',
+ filename: 'wan2.2-i2v-rapid-aio-v10-nsfw-Q4_K_M.gguf', subfolder: 'diffusion_models', sizeGB: 10.1,
+ },
+ {
+ name: 'Wan 2.1 VAE',
+ description: 'Required video encoder/decoder.',
+ pulls: '', tags: ['VAE', '250 MB'], updated: '',
+ downloadUrl: 'https://huggingface.co/Comfy-Org/Wan_2.1_ComfyUI_repackaged/resolve/main/split_files/vae/wan_2.1_vae.safetensors',
+ filename: 'wan_2.1_vae.safetensors', subfolder: 'vae', sizeGB: 0.24,
+ },
+ {
+ name: 'Wan CLIP (UMT5-XXL FP8)',
+ description: 'Required text encoder.',
+ pulls: '', tags: ['CLIP', '6.3 GB'], updated: '',
+ downloadUrl: 'https://huggingface.co/Comfy-Org/Wan_2.1_ComfyUI_repackaged/resolve/main/split_files/text_encoders/umt5_xxl_fp8_e4m3fn_scaled.safetensors',
+ filename: 'umt5_xxl_fp8_e4m3fn_scaled.safetensors', subfolder: 'text_encoders', sizeGB: 6.27,
+ },
+ ],
+ },
+ ]
+}
+
+// ─── 2.5.8 specialized local-lane bundles (music / talking character / motion) ───
+//
+// Every URL below was HEAD-verified against HuggingFace on 2026-07-18 (status
+// 200 + content-length; sizes in GiB from the actual response). Music and
+// talking character have no censored/uncensored axis — local rendering runs
+// unfiltered by nature, so no red badge games; the honest split lives in the
+// video list above (real uncensored finetunes) instead.
+
+export function getAudioBundles(): ModelBundle[] {
+ return [
+ {
+ name: 'ACE Step 1.5 Turbo (Music)',
+ description: 'Newest full song generator, MIT licensed. Vocals, lyrics and instruments from a text description. One file.',
+ tags: ['Music', 'Vocals', 'MIT'],
+ totalSizeGB: 9.4,
+ vramRequired: '6-8 GB',
+ workflow: 'ace',
+ url: 'https://huggingface.co/Comfy-Org/ace_step_1.5_ComfyUI_files',
+ files: [
+ {
+ name: 'ACE Step 1.5 Turbo (all in one)',
+ description: 'Complete music model. Includes its text encoder and audio VAE.',
+ pulls: '', tags: ['Checkpoint', '9.3 GB'], updated: '',
+ downloadUrl: 'https://huggingface.co/Comfy-Org/ace_step_1.5_ComfyUI_files/resolve/main/checkpoints/ace_step_1.5_turbo_aio.safetensors',
+ filename: 'ace_step_1.5_turbo_aio.safetensors', subfolder: 'checkpoints', sizeGB: 9.34,
+ },
+ ],
+ },
+ {
+ name: 'ACE Step v1 3.5B (Music, lighter)',
+ description: 'The proven full song generator. Smaller download, runs from 4 GB VRAM.',
+ tags: ['Music', 'Vocals', 'Light'],
+ totalSizeGB: 7.2,
+ vramRequired: '4-6 GB',
+ workflow: 'ace',
+ url: 'https://huggingface.co/Comfy-Org/ACE-Step_ComfyUI_repackaged',
+ files: [
+ {
+ name: 'ACE Step v1 3.5B (all in one)',
+ description: 'Complete music model. Includes its text encoder and audio VAE.',
+ pulls: '', tags: ['Checkpoint', '7.2 GB'], updated: '',
+ downloadUrl: 'https://huggingface.co/Comfy-Org/ACE-Step_ComfyUI_repackaged/resolve/main/all_in_one/ace_step_v1_3.5b.safetensors',
+ filename: 'ace_step_v1_3.5b.safetensors', subfolder: 'checkpoints', sizeGB: 7.17,
+ },
+ ],
+ },
+ ]
+}
+
+export function getLipsyncBundles(): ModelBundle[] {
+ // Shared support files for the S2V graph (text encoder, VAE, audio encoder).
+ const s2vSupport: DiscoverModel[] = [
+ {
+ name: 'Wan CLIP (UMT5-XXL FP8)',
+ description: 'Required text encoder.',
+ pulls: '', tags: ['CLIP', '6.3 GB'], updated: '',
+ downloadUrl: 'https://huggingface.co/Comfy-Org/Wan_2.2_ComfyUI_Repackaged/resolve/main/split_files/text_encoders/umt5_xxl_fp8_e4m3fn_scaled.safetensors',
+ filename: 'umt5_xxl_fp8_e4m3fn_scaled.safetensors', subfolder: 'text_encoders', sizeGB: 6.27,
+ },
+ {
+ name: 'Wan 2.1 VAE',
+ description: 'Required video encoder/decoder.',
+ pulls: '', tags: ['VAE', '250 MB'], updated: '',
+ downloadUrl: 'https://huggingface.co/Comfy-Org/Wan_2.2_ComfyUI_Repackaged/resolve/main/split_files/vae/wan_2.1_vae.safetensors',
+ filename: 'wan_2.1_vae.safetensors', subfolder: 'vae', sizeGB: 0.24,
+ },
+ {
+ name: 'Wav2Vec2 Audio Encoder',
+ description: 'Turns the speech audio into the embeddings the model lip reads from.',
+ pulls: '', tags: ['Audio Encoder', '600 MB'], updated: '',
+ downloadUrl: 'https://huggingface.co/Comfy-Org/Wan_2.2_ComfyUI_Repackaged/resolve/main/split_files/audio_encoders/wav2vec2_large_english_fp16.safetensors',
+ filename: 'wav2vec2_large_english_fp16.safetensors', subfolder: 'audio_encoders', sizeGB: 0.59,
+ },
+ ]
+ return [
+ {
+ name: 'Wan 2.2 S2V Q4 (Talking Character, GGUF)',
+ description: 'A portrait plus any voice becomes a talking video. Q4 quant, the comfortable pick for 12 GB cards.',
+ tags: ['Wan 2.2', 'S2V', 'GGUF'],
+ totalSizeGB: 20.0,
+ vramRequired: '10-12 GB',
+ workflow: 'wans2v',
+ customNodes: ['gguf'],
+ url: 'https://huggingface.co/QuantStack/Wan2.2-S2V-14B-GGUF',
+ files: [
+ {
+ name: 'Wan 2.2 S2V 14B Q4 (GGUF)',
+ description: 'The sound to video model, Q4 quant.',
+ pulls: '', tags: ['Model', '12.9 GB'], updated: '',
+ downloadUrl: 'https://huggingface.co/QuantStack/Wan2.2-S2V-14B-GGUF/resolve/main/Wan2.2-S2V-14B-Q4_K_M.gguf',
+ filename: 'Wan2.2-S2V-14B-Q4_K_M.gguf', subfolder: 'diffusion_models', sizeGB: 12.91,
+ },
+ ...s2vSupport,
+ ],
+ },
+ {
+ name: 'Wan 2.2 S2V FP8 (Talking Character)',
+ description: 'The full precision friendly variant. Bigger file; offloads below 16 GB VRAM, so renders take longer there.',
+ tags: ['Wan 2.2', 'S2V', 'FP8'],
+ totalSizeGB: 22.4,
+ vramRequired: '16 GB best, offloads on less',
+ workflow: 'wans2v',
+ url: 'https://huggingface.co/Comfy-Org/Wan_2.2_ComfyUI_Repackaged',
+ files: [
+ {
+ name: 'Wan 2.2 S2V 14B (FP8)',
+ description: 'The sound to video model.',
+ pulls: '', tags: ['Model', '15.3 GB'], updated: '',
+ downloadUrl: 'https://huggingface.co/Comfy-Org/Wan_2.2_ComfyUI_Repackaged/resolve/main/split_files/diffusion_models/wan2.2_s2v_14B_fp8_scaled.safetensors',
+ filename: 'wan2.2_s2v_14B_fp8_scaled.safetensors', subfolder: 'diffusion_models', sizeGB: 15.27,
+ },
+ ...s2vSupport,
+ ],
+ },
+ ]
+}
+
+export function getMotionBundles(): ModelBundle[] {
+ const wanSupport: DiscoverModel[] = [
+ {
+ name: 'Wan CLIP (UMT5-XXL FP8)',
+ description: 'Required text encoder.',
+ pulls: '', tags: ['CLIP', '6.3 GB'], updated: '',
+ downloadUrl: 'https://huggingface.co/Comfy-Org/Wan_2.2_ComfyUI_Repackaged/resolve/main/split_files/text_encoders/umt5_xxl_fp8_e4m3fn_scaled.safetensors',
+ filename: 'umt5_xxl_fp8_e4m3fn_scaled.safetensors', subfolder: 'text_encoders', sizeGB: 6.27,
+ },
+ {
+ name: 'Wan 2.1 VAE',
+ description: 'Required video encoder/decoder.',
+ pulls: '', tags: ['VAE', '250 MB'], updated: '',
+ downloadUrl: 'https://huggingface.co/Comfy-Org/Wan_2.2_ComfyUI_Repackaged/resolve/main/split_files/vae/wan_2.1_vae.safetensors',
+ filename: 'wan_2.1_vae.safetensors', subfolder: 'vae', sizeGB: 0.24,
+ },
+ ]
+ return [
+ {
+ name: 'Wan VACE 1.3B (Motion Control, light)',
+ description: 'Your character copies the moves from any dance or pose video. The light pick, runs from 8 GB VRAM.',
+ tags: ['VACE', 'Motion', 'Light'],
+ totalSizeGB: 10.5,
+ vramRequired: '8-10 GB',
+ workflow: 'wanvace',
+ customNodes: ['controlnet-aux'],
+ url: 'https://huggingface.co/Comfy-Org/Wan_2.1_ComfyUI_repackaged',
+ files: [
+ {
+ name: 'Wan 2.1 VACE 1.3B',
+ description: 'The motion control model.',
+ pulls: '', tags: ['Model', '4 GB'], updated: '',
+ downloadUrl: 'https://huggingface.co/Comfy-Org/Wan_2.1_ComfyUI_repackaged/resolve/main/split_files/diffusion_models/wan2.1_vace_1.3B_fp16.safetensors',
+ filename: 'wan2.1_vace_1.3B_fp16.safetensors', subfolder: 'diffusion_models', sizeGB: 4.01,
+ },
+ ...wanSupport,
+ ],
+ },
+ {
+ name: 'Wan 2.2 Animate Q4 (Motion Control, GGUF)',
+ description: 'The bigger, better motion transfer model. Q4 quant for 12 GB cards.',
+ tags: ['Wan 2.2', 'Animate', 'GGUF'],
+ totalSizeGB: 17.3,
+ vramRequired: '10-12 GB',
+ workflow: 'wananimate',
+ customNodes: ['gguf', 'controlnet-aux'],
+ url: 'https://huggingface.co/QuantStack/Wan2.2-Animate-14B-GGUF',
+ files: [
+ {
+ name: 'Wan 2.2 Animate 14B Q4 (GGUF)',
+ description: 'The motion transfer model, Q4 quant.',
+ pulls: '', tags: ['Model', '10.7 GB'], updated: '',
+ downloadUrl: 'https://huggingface.co/QuantStack/Wan2.2-Animate-14B-GGUF/resolve/main/Wan2.2-Animate-14B-Q4_K_M.gguf',
+ filename: 'Wan2.2-Animate-14B-Q4_K_M.gguf', subfolder: 'diffusion_models', sizeGB: 10.71,
+ },
+ ...wanSupport,
+ ],
+ },
+ ]
+}
diff --git a/src/api/providers/client-cache.ts b/src/api/providers/client-cache.ts
new file mode 100644
index 00000000..3383df85
--- /dev/null
+++ b/src/api/providers/client-cache.ts
@@ -0,0 +1,53 @@
+/**
+ * Der Cache fertig gebauter Provider-Clients, plus sein Schlüssel.
+ *
+ * Ein Client wird pro (Slot, baseUrl, Schlüsselanfang) einmal gebaut; ändert
+ * sich die Konfiguration, ändert sich der Schlüssel und der alte Eintrag ist
+ * tot. Der providerStore leert den Cache zusätzlich bei jeder Schreiboperation,
+ * damit ein neu gesetzter API-Key sofort und nicht erst beim nächsten
+ * Slot-Wechsel greift.
+ *
+ * Audit W-T2: Cache und Fabrik saßen zusammen in registry.ts. Der Store wollte
+ * nur `clearProviderCache()` und importierte damit die Fabrik — die ihrerseits
+ * OpenAIProvider zieht, das über builtin-ensure.ts wieder im Store landet:
+ * providerStore → registry → lu-cloud-provider → openai-provider →
+ * builtin-ensure → providerStore.
+ *
+ * Der Cache braucht die Fabrik nicht, nur die Formen. Er liegt deshalb hier,
+ * in einem Modul ohne Laufzeit-Import, und beide Seiten greifen darauf zu:
+ * registry.ts legt Clients hinein, der Store wirft sie weg. Kante weg,
+ * Zyklus weg.
+ */
+
+import type { ProviderClient, ProviderConfig } from './types'
+
+const clientCache: Map<string, ProviderClient> = new Map()
+
+/**
+ * Create a unique cache key for a provider config.
+ * Invalidates when URL or API key changes.
+ */
+function cacheKey(config: ProviderConfig): string {
+ return `${config.id}:${config.baseUrl}:${config.apiKey?.slice(0, 8) || ''}`
+}
+
+/**
+ * Den Client zu dieser Konfiguration liefern — gebaut wird nur, was noch nicht
+ * im Cache liegt.
+ */
+export function cachedClient(config: ProviderConfig, create: () => ProviderClient): ProviderClient {
+ const key = cacheKey(config)
+ let client = clientCache.get(key)
+ if (!client) {
+ client = create()
+ clientCache.set(key, client)
+ }
+ return client
+}
+
+/**
+ * Clear the client cache (e.g. when provider config changes).
+ */
+export function clearProviderCache(): void {
+ clientCache.clear()
+}
diff --git a/src/api/providers/index.ts b/src/api/providers/index.ts
index 3233310d..261bfd35 100644
--- a/src/api/providers/index.ts
+++ b/src/api/providers/index.ts
@@ -11,8 +11,9 @@ export { OllamaProvider } from './ollama-provider'
export { OpenAIProvider } from './openai-provider'
export { AnthropicProvider } from './anthropic-provider'
-export {
- getProvider, getProviderForModel, getEnabledProviders,
- getProviderIdFromModel, prefixModelName, displayModelName,
- clearProviderCache,
-} from './registry'
+export { getProvider, getProviderForModel, getEnabledProviders } from './registry'
+// Aus den Blattmodulen, nicht über registry.ts: wer nur einen Modellnamen
+// zerlegen oder den Client-Cache leeren will, soll dafür nicht die
+// Provider-Fabrik und den providerStore mitziehen (Audit W-T2).
+export { getProviderIdFromModel, prefixModelName, displayModelName } from './model-name'
+export { clearProviderCache } from './client-cache'
diff --git a/src/api/providers/model-name.ts b/src/api/providers/model-name.ts
new file mode 100644
index 00000000..07014429
--- /dev/null
+++ b/src/api/providers/model-name.ts
@@ -0,0 +1,48 @@
+/**
+ * Der Modellname als Zeichenkette: wie ein Slot-Präfix drangeschrieben,
+ * ausgelesen und wieder abgeschnitten wird.
+ *
+ * "ollama::llama3.1:8b" → Slot ollama, Modell llama3.1:8b
+ * "llama3.1:8b" → Slot ollama (kein Präfix = Ollama, Altbestand)
+ *
+ * Audit W-T2: Diese drei Funktionen standen in registry.ts, zwischen der
+ * Client-Fabrik und dem Zugriff auf den providerStore. Wer nur wissen wollte,
+ * zu welchem Slot ein Name gehört — api/engine.ts, stores/modelStore.ts und ein
+ * Dutzend Komponenten —, zog damit die vier Provider-Klassen und den Store mit
+ * herein. Über engine.ts und modelStore.ts schloss sich daraus ein Kreis:
+ * providers/index → openai-provider → builtin-ensure → providerStore →
+ * modelStore/engine → providers/index.
+ *
+ * Sie brauchen nichts davon. Es sind reine Zeichenketten-Funktionen, sie
+ * kennen nur den Typ eines Slot-Bezeichners. Also liegen sie hier, in einem
+ * Modul ohne Laufzeit-Import. registry.ts und providers/index.ts exportieren
+ * sie unverändert weiter.
+ */
+
+import type { ProviderId } from './types'
+
+/**
+ * Extract the provider ID from a prefixed model name.
+ * Returns 'ollama' if no prefix.
+ */
+export function getProviderIdFromModel(modelName: string): ProviderId {
+ if (!modelName) return 'ollama'
+ const parts = modelName.split('::')
+ return parts.length === 2 ? parts[0] as ProviderId : 'ollama'
+}
+
+/**
+ * Create a prefixed model name for storage.
+ */
+export function prefixModelName(provider: ProviderId, modelId: string): string {
+ if (provider === 'ollama') return modelId // backward compat: Ollama models have no prefix
+ return `${provider}::${modelId}`
+}
+
+/**
+ * Get the display name for a model (strip provider prefix).
+ */
+export function displayModelName(modelName: string): string {
+ const parts = modelName.split('::')
+ return parts.length === 2 ? parts[1] : modelName
+}
diff --git a/src/api/providers/registry.ts b/src/api/providers/registry.ts
index dfb1b082..3b4a4659 100644
--- a/src/api/providers/registry.ts
+++ b/src/api/providers/registry.ts
@@ -11,18 +11,13 @@ import { OpenAIProvider } from './openai-provider'
import { AnthropicProvider } from './anthropic-provider'
import { LuCloudProvider } from './lu-cloud-provider'
import { useProviderStore } from '../../stores/providerStore'
+import { cachedClient } from './client-cache'
-// ── Provider client cache ──────────────────────────────────────
-
-const clientCache: Map<string, ProviderClient> = new Map()
-
-/**
- * Create a unique cache key for a provider config.
- * Invalidates when URL or API key changes.
- */
-function cacheKey(config: ProviderConfig): string {
- return `${config.id}:${config.baseUrl}:${config.apiKey?.slice(0, 8) || ''}`
-}
+// Cache und Namens-Helfer sind aus diesem Modul herausgezogen (Audit W-T2,
+// Begründung steht in client-cache.ts bzw. model-name.ts). Re-Export, damit
+// bestehende Importpfade unverändert bleiben.
+export { clearProviderCache } from './client-cache'
+export { getProviderIdFromModel, prefixModelName, displayModelName } from './model-name'
/**
* Create a provider client from config.
@@ -60,13 +55,7 @@ export function getProvider(id: ProviderId): ProviderClient {
// (m9mx Discord 2026-07-26, four providers).
const config = { ...stored, apiKey: state.getProviderApiKey(id) }
- const key = cacheKey(config)
- let client = clientCache.get(key)
- if (!client) {
- client = createClient(config)
- clientCache.set(key, client)
- }
- return client
+ return cachedClient(config, () => createClient(config))
}
/**
@@ -96,46 +85,5 @@ export function getProviderForModel(modelName: string): { provider: ProviderClie
*/
export function getEnabledProviders(): ProviderClient[] {
const configs = useProviderStore.getState().getEnabledProviders()
- return configs.map(c => {
- const key = cacheKey(c)
- let client = clientCache.get(key)
- if (!client) {
- client = createClient(c)
- clientCache.set(key, client)
- }
- return client
- })
-}
-
-/**
- * Extract the provider ID from a prefixed model name.
- * Returns 'ollama' if no prefix.
- */
-export function getProviderIdFromModel(modelName: string): ProviderId {
- if (!modelName) return 'ollama'
- const parts = modelName.split('::')
- return parts.length === 2 ? parts[0] as ProviderId : 'ollama'
-}
-
-/**
- * Create a prefixed model name for storage.
- */
-export function prefixModelName(provider: ProviderId, modelId: string): string {
- if (provider === 'ollama') return modelId // backward compat: Ollama models have no prefix
- return `${provider}::${modelId}`
-}
-
-/**
- * Get the display name for a model (strip provider prefix).
- */
-export function displayModelName(modelName: string): string {
- const parts = modelName.split('::')
- return parts.length === 2 ? parts[1] : modelName
-}
-
-/**
- * Clear the client cache (e.g. when provider config changes).
- */
-export function clearProviderCache(): void {
- clientCache.clear()
+ return configs.map(c => cachedClient(c, () => createClient(c)))
}
diff --git a/src/lib/bundle-install.ts b/src/lib/bundle-install.ts
index 121a1f8e..da0b2e94 100644
--- a/src/lib/bundle-install.ts
+++ b/src/lib/bundle-install.ts
@@ -1,5 +1,5 @@
import { formatBytes } from './formatters'
-import type { DownloadProgress } from '../api/discover'
+import type { DownloadProgress } from '../types/downloads'
/**
* The download half of the Create tab's "Download & install" cards, pulled out
diff --git a/src/lib/staged-overlay.ts b/src/lib/staged-overlay.ts
index b768a5b5..f4333210 100644
--- a/src/lib/staged-overlay.ts
+++ b/src/lib/staged-overlay.ts
@@ -10,7 +10,7 @@
* always sees its own pending work.
*/
-import type { StagedChange } from '../stores/stagedChangesStore'
+import type { StagedChange } from '../types/staged-changes'
/** Normalize for comparison: forward slashes, no leading "./", no trailing "/". */
export function normalizeStagedPath(p: string): string {
diff --git a/src/lib/workflow-engine.ts b/src/lib/workflow-engine.ts
index c354b787..dec64b70 100644
--- a/src/lib/workflow-engine.ts
+++ b/src/lib/workflow-engine.ts
@@ -8,7 +8,20 @@
import { useModelStore } from '../stores/modelStore'
import { useSettingsStore } from '../stores/settingsStore'
import { useMemoryStore } from '../stores/memoryStore'
-import { getOllamaTools, executeAgentTool } from '../api/tool-registry'
+// Audit W-T2: hier stand `from '../api/tool-registry'` — der als @deprecated
+// markierte Kompatibilitäts-Shim. Der zieht das ganze MCP-Barrel herein
+// (api/mcp/index.ts, das registerBuiltinTools ausführt), und weil
+// builtin-tools.ts umgekehrt diese Engine für sein run_workflow-Tool braucht,
+// schloss sich der Kreis: mcp/index → builtin-tools → workflow-engine →
+// tool-registry → mcp/index.
+//
+// Die Engine ist kein Altlast-Aufrufer. Sie braucht die Registry selbst, nicht
+// den Kompositions-Einstiegspunkt, der die Builtins einhängt — also importiert
+// sie jetzt genau die: das Registry-Modul und die Berechtigungs-Voreinstellung.
+// Beides sind generische Module ohne Rückkante. Der Shim bleibt für seine
+// verbliebenen Aufrufer bestehen.
+import { toolRegistry } from '../api/mcp/tool-registry'
+import { DEFAULT_PERMISSIONS } from '../api/mcp/types'
import { streamProviderTurn } from './provider-stream'
import { settleThinking } from './thinking-stripper'
import { buildHermesToolPrompt, parseHermesToolCalls, stripToolCallTags, hasToolCallTags } from '../api/hermes-tool-calling'
@@ -240,7 +253,7 @@ export class WorkflowEngine {
}
} else {
// With tools
- const tools: ToolDefinition[] = getOllamaTools()
+ const tools: ToolDefinition[] = toolRegistry.toOllamaTools(DEFAULT_PERMISSIONS)
const allowedTools = step.allowedTools
? tools.filter(t => step.allowedTools!.includes(t.function.name))
: tools
@@ -256,7 +269,7 @@ export class WorkflowEngine {
// Execute any tool calls
for (const tc of turn.toolCalls) {
- const result = await executeAgentTool(tc.function.name, tc.function.arguments)
+ const result = await toolRegistry.execute(tc.function.name, tc.function.arguments)
output += `\n[Tool: ${tc.function.name}] ${result}`
}
} else {
@@ -285,7 +298,7 @@ export class WorkflowEngine {
const toolCalls = parseHermesToolCalls(rawContent)
output = stripToolCallTags(rawContent)
for (const tc of toolCalls) {
- const result = await executeAgentTool(tc.name, tc.arguments)
+ const result = await toolRegistry.execute(tc.name, tc.arguments)
output += `\n[Tool: ${tc.name}] ${result}`
}
} else {
@@ -324,7 +337,7 @@ export class WorkflowEngine {
}
}
- const result = await executeAgentTool(step.toolName, args)
+ const result = await toolRegistry.execute(step.toolName, args)
const isError = result.startsWith('Error:')
return {
diff --git a/src/stores/__tests__/providerStore.keychain.test.ts b/src/stores/__tests__/providerStore.keychain.test.ts
index f0a1fcc7..4d46f16a 100644
--- a/src/stores/__tests__/providerStore.keychain.test.ts
+++ b/src/stores/__tests__/providerStore.keychain.test.ts
@@ -2,7 +2,7 @@ import { describe, it, expect, vi, beforeEach, afterEach } from 'vitest'
// H5: provider API keys move to the OS keychain on Win/macOS, with a
// localStorage fallback (Linux + web build). These tests mock the Rust
-// secret_* bridge and the registry, then exercise hydrateProviderKeys,
+// secret_* bridge and the client cache, then exercise hydrateProviderKeys,
// setProviderApiKey, migration, and the localStorage-strip via partialize.
//
// `keychainReady` is module-level state, so each case re-imports the store
@@ -14,7 +14,9 @@ const { secretGet, secretSet, secretDelete } = vi.hoisted(() => ({
secretDelete: vi.fn(),
}))
-vi.mock('../../api/providers/registry', () => ({ clearProviderCache: vi.fn() }))
+// Audit W-T2: Pfadanpassung — clearProviderCache wohnt jetzt in
+// providers/client-cache.ts (siehe dort). Gleiche Attrappe, gleicher Zweck.
+vi.mock('../../api/providers/client-cache', () => ({ clearProviderCache: vi.fn() }))
vi.mock('../../api/backend', () => ({ secretGet, secretSet, secretDelete }))
async function freshStore() {
diff --git a/src/stores/__tests__/providerStore.test.ts b/src/stores/__tests__/providerStore.test.ts
index b2aa4305..72246a5e 100644
--- a/src/stores/__tests__/providerStore.test.ts
+++ b/src/stores/__tests__/providerStore.test.ts
@@ -1,12 +1,16 @@
import { describe, it, expect, vi, beforeEach } from 'vitest'
-// Mock the registry before importing the store
-vi.mock('../../api/providers/registry', () => ({
+// Mock the client cache before importing the store.
+// Audit W-T2: stand vorher auf '../../api/providers/registry'. clearProviderCache
+// wohnt jetzt in providers/client-cache.ts (der Store zog über die Registry
+// sonst die ganze Provider-Fabrik herein). Reine Pfadanpassung — dieselbe
+// Funktion, dieselbe Zusicherung.
+vi.mock('../../api/providers/client-cache', () => ({
clearProviderCache: vi.fn(),
}))
import { useProviderStore } from '../providerStore'
-import { clearProviderCache } from '../../api/providers/registry'
+import { clearProviderCache } from '../../api/providers/client-cache'
// ── Default state snapshot ────────────────────────────────────
diff --git a/src/stores/modelStore.ts b/src/stores/modelStore.ts
index c9333613..b2c070ec 100644
--- a/src/stores/modelStore.ts
+++ b/src/stores/modelStore.ts
@@ -16,7 +16,8 @@ import { log } from '../lib/logger'
// ('sdxl::x.safetensors' → null vs 'sdxl', 'a::b::c' → null vs 'ollama'), which
// is the worst possible place for two answers: the guard below would decline to
// clear a pick that the send path would then route to a dead backend.
-import { getProviderIdFromModel } from '../api/providers'
+import { getProviderIdFromModel } from '../api/providers/model-name'
+import { onProviderSlotsDarkened } from '../lib/provider-slot-darkening'
import type { ProviderId } from '../api/providers/types'
export interface PullState {
@@ -294,3 +295,13 @@ export const useModelStore = create<ModelState>()(
}
)
)
+
+// Audit W-T2: Der providerStore hat sich diesen Store früher selbst geholt
+// (`void import('./modelStore')`), um bei abgeschalteten Slots die Modellwahl
+// zu räumen — ein dynamischer Import, der den Kreis providerStore ↔ modelStore
+// nur verdeckt hat. Jetzt wird dort angesagt und hier zugehört; die Anmeldung
+// passiert beim Laden dieses Moduls, wie registerBuiltinTools() sich beim
+// Tool-Registry anmeldet.
+onProviderSlotsDarkened((darkened) => {
+ for (const id of darkened) useModelStore.getState().dropActiveModelIfServedBy(id)
+})
diff --git a/src/stores/providerStore.ts b/src/stores/providerStore.ts
index bd23331d..6c577e42 100644
--- a/src/stores/providerStore.ts
+++ b/src/stores/providerStore.ts
@@ -10,8 +10,9 @@ import { persist } from 'zustand/middleware'
import { keepPersistedState } from '../lib/persist-version'
import { safeJSONStorage } from '../lib/storage-quota'
import type { ProviderId, ProviderConfig } from '../api/providers/types'
-import { clearProviderCache } from '../api/providers/registry'
+import { clearProviderCache } from '../api/providers/client-cache'
import { onLocalSlotChanged } from '../lib/builtin-slot-eviction'
+import { announceDarkenedSlots } from '../lib/provider-slot-darkening'
import { secretGet, secretSet, secretDelete } from '../api/backend'
import { CLOUD_BASE } from '../api/cloud/config'
@@ -116,23 +117,29 @@ const DEFAULT_PROVIDERS: Record<ProviderId, ProviderConfig> = {
* the same broken state through a supported, one-click, non-exotic path.
* `resetProvider` does the same for one slot.
*
- * Imported lazily on purpose: modelStore reaches back here through
- * chatStore/remoteStore, and a static edge would close that circle at
- * module-init time.
+ * Audit W-T2: hier stand `void import('./modelStore')` mit der Begründung
+ * "modelStore reaches back here through chatStore/remoteStore, and a static
+ * edge would close that circle at module-init time". Die Begründung stimmte,
+ * die Auflösung nicht: der dynamische Import hat den Kreis nicht geöffnet,
+ * sondern nur unsichtbar gemacht (providerStore → modelStore → engine →
+ * providerStore, und providerStore → modelStore → chatStore → remoteStore →
+ * providerStore).
+ *
+ * Dieser Store hat kein Geschäft damit, den Modell-Store zu kennen. Er weiß
+ * nur, welche Slots gerade dunkel geworden sind — und sagt es an. Wer darauf
+ * reagieren will, meldet sich an; die Leitung dazwischen steht in
+ * lib/provider-slot-darkening.ts, gehört keinem der beiden Stores und schließt
+ * damit keinen Kreis.
*/
function dropPicksForDarkenedSlots(
before: Partial<Record<ProviderId, ProviderConfig>>,
after: Partial<Record<ProviderId, ProviderConfig>>,
): void {
- const darkened = (Object.keys(after) as ProviderId[]).filter(
- (id) => before[id]?.enabled === true && after[id]?.enabled === false,
+ announceDarkenedSlots(
+ (Object.keys(after) as ProviderId[]).filter(
+ (id) => before[id]?.enabled === true && after[id]?.enabled === false,
+ ),
)
- if (darkened.length === 0) return
- void import('./modelStore')
- .then((m) => {
- for (const id of darkened) m.useModelStore.getState().dropActiveModelIfServedBy(id)
- })
- .catch(() => { /* best-effort: the next inventory refresh re-checks */ })
}
// ── Store Interface ────────────────────────────────────────────
diff --git a/src/stores/stagedChangesStore.ts b/src/stores/stagedChangesStore.ts
index f438a0c9..bc20bad7 100644
--- a/src/stores/stagedChangesStore.ts
+++ b/src/stores/stagedChangesStore.ts
@@ -2,43 +2,15 @@ import { create } from 'zustand'
import { persist } from 'zustand/middleware'
import { v4 as uuid } from 'uuid'
import { normalizeStagedPath } from '../lib/staged-overlay'
+import type { StagedChange } from '../types/staged-changes'
import { idbStorage } from '../lib/idbStorage'
import { coalescedJSONStorage } from '../lib/coalescedStorage'
-export interface StagedChange {
- /** Stable id assigned at stage-time so the UI can key + remove safely. */
- id: string
- /** Path the model called `file_write` with (as the model wrote it — may be relative). */
- path: string
- /**
- * Absolute path resolved against the run's workspace AT STAGE TIME. Apply
- * happens after the run ends, when useCodex's finally has cleared the active
- * chat/workspace context — so a relative `path` would route to
- * agent-workspace/default/ instead of the project folder the agent wrote into.
- * Writing this captured absolute path makes the approved diff land exactly
- * where it should. Falls back to `path` (already absolute / no workspace set).
- */
- resolvedPath?: string
- /**
- * The run's workspace root, captured AT STAGE TIME. Apply runs after the loop
- * ends, when the active chat/workspace context is cleared — so without this
- * the write jails to agent-workspace/default and REJECTS the absolute project
- * path ("escapes the allowed workspace"), silently failing every apply into a
- * real folder. The apply path (a trusted, user-gated UI action) passes this
- * as fs_write's working_directory so the jail root is the real project folder.
- * Undefined for sandbox-mode runs (no real folder), where the per-chat
- * sandbox is the correct root anyway.
- */
- workingDirectory?: string
- /** Full file content before the write — empty string when the target didn't exist. */
- oldContent: string
- /** Full file content the model wants to write. */
- newContent: string
- /** Pre-computed unified diff for snappy rendering — caller decides format. */
- diff: string
- /** Wall-clock when the model staged this change. */
- stagedAt: number
-}
+// Die Datenform lebt in types/staged-changes.ts, damit lib/staged-overlay.ts
+// sie lesen kann, ohne diesen Store zu importieren (der seinerseits
+// normalizeStagedPath aus dem Overlay zieht). Re-Export, damit bestehende
+// Importpfade unverändert bleiben.
+export type { StagedChange }
interface StagedChangesState {
/** Per-conversation queue. Cleared on apply-all / reject-all / chat reset. */