@animastor/installer 0.1.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (37) hide show
  1. package/LICENSE +21 -0
  2. package/README.md +66 -0
  3. package/ai/install-manifests/audio/qwen-tts.json +445 -0
  4. package/ai/install-manifests/image/qwen-image.json +465 -0
  5. package/ai/install-manifests/video/ltx-2.3.json +892 -0
  6. package/package.json +42 -0
  7. package/src/installer/cli.js +1067 -0
  8. package/src/installer/compatibility-resolver.js +1287 -0
  9. package/src/installer/download-planner.js +172 -0
  10. package/src/installer/engine/comfyui.js +508 -0
  11. package/src/installer/engine/downloader.js +514 -0
  12. package/src/installer/engine/engine.js +1180 -0
  13. package/src/installer/engine/io.js +437 -0
  14. package/src/installer/engine/logger.js +75 -0
  15. package/src/installer/engine/nodes.js +146 -0
  16. package/src/installer/engine/prereq.js +399 -0
  17. package/src/installer/engine/probe.js +349 -0
  18. package/src/installer/engine/progress.js +350 -0
  19. package/src/installer/engine/state.js +170 -0
  20. package/src/installer/engine/term.js +298 -0
  21. package/src/installer/engine/worker.js +430 -0
  22. package/src/installer/engine/workflows.js +153 -0
  23. package/src/installer/index.js +40 -0
  24. package/src/installer/install-manifest.js +376 -0
  25. package/src/installer/install-plan.js +741 -0
  26. package/src/installer/management.js +489 -0
  27. package/src/installer/platform/deployment/docker.js +78 -0
  28. package/src/installer/platform/deployment/native.js +36 -0
  29. package/src/installer/platform/index.js +165 -0
  30. package/src/installer/platform/linux.js +341 -0
  31. package/src/installer/platform/windows.js +360 -0
  32. package/src/installer/safety-rules.js +156 -0
  33. package/src/installer/setup-contract.js +1401 -0
  34. package/src/installer/uninstaller.js +572 -0
  35. package/src/installer/verification-report.js +220 -0
  36. package/src/installer/worker-bundle-source.js +64 -0
  37. package/src/installer/workflow-artifacts.js +152 -0
@@ -0,0 +1,465 @@
1
+ {
2
+ "manifest_version": "1.0.0",
3
+ "revision": "2026.08.27-r1",
4
+ "status": "ready",
5
+ "profile": {
6
+ "id": "image/qwen-image",
7
+ "type": "image",
8
+ "name": "qwen-image"
9
+ },
10
+ "provenance": {
11
+ "workflows": [
12
+ "img-qwen-image"
13
+ ],
14
+ "connectors_backend_only": [
15
+ "conn-image-generation"
16
+ ],
17
+ "sources": [
18
+ "docs/04-planning/private-worker-installer-dependency-research.md",
19
+ "docs/runtime-audits/image-qwen/animastor-image-qwen-runtime-audit-2026-08-26.md"
20
+ ],
21
+ "note": "Workflows are the single source of truth for 'required'. Connectors are backend-only execution metadata and are NOT installed. Runtime audits are reference only, never the source of truth. Legacy old_img-qwen-image.json is excluded by the workflow loader and must not influence this manifest (it references a different CLIP quant — Q4_K_M instead of Q8_0)."
22
+ },
23
+ "hardware": {
24
+ "gpu_min_vram_gb": null,
25
+ "basis": "unknown",
26
+ "reference_gpu": "NVIDIA L40S (46068 MiB)",
27
+ "todo": "Open question 12: minimum VRAM is not documented anywhere; needs measurement."
28
+ },
29
+ "runtime_requirements": {
30
+ "comfyui": {
31
+ "policy": "exact-pin-preferred",
32
+ "pin": null,
33
+ "min_version": null,
34
+ "max_tested_version": null,
35
+ "basis": "unknown",
36
+ "known_working_reference": {
37
+ "repository": "https://github.com/rajsingh1-dev/ComfyUI.git",
38
+ "commit": "c4cfee7ad16cfeb082e12f43cf4751b4a67a4e11",
39
+ "tag": null,
40
+ "source": "docs/runtime-audits/image-qwen/animastor-image-qwen-runtime-audit-2026-08-26.md"
41
+ },
42
+ "todo": "Decision D1: the reference instance runs a fork preinstalled in the E2E image. It is NOT established whether official ComfyUI v0.27.0 also works for this profile. Golden run required before a canonical pin can be set.",
43
+ "notes": [
44
+ "The fork@c4cfee7 below is a known-working reference, not a universal Animastor requirement.",
45
+ "Installer must never auto-downgrade or auto-replace an existing ComfyUI to satisfy this entry while the canonical pin is unknown."
46
+ ]
47
+ },
48
+ "python": {
49
+ "policy": "minimum",
50
+ "minimum": "3.10",
51
+ "basis": "minimum_supported",
52
+ "known_working_reference": {
53
+ "version": "3.10.12",
54
+ "source": "docs/runtime-audits/image-qwen/animastor-image-qwen-runtime-audit-2026-08-26.md"
55
+ },
56
+ "notes": [
57
+ "All reference instances run 3.10.12; lower versions are unverified."
58
+ ]
59
+ },
60
+ "torch": {
61
+ "policy": "exact",
62
+ "pin": null,
63
+ "index_url": null,
64
+ "cuda_tier": null,
65
+ "basis": "unknown",
66
+ "cpu": {
67
+ "pin": "2.10.0",
68
+ "index_url": "https://download.pytorch.org/whl/cpu",
69
+ "basis": "known_working",
70
+ "notes": [
71
+ "CPU-only fallback branch (no GPU / no supported GPU runtime): CPU wheel index, no CUDA-specific build.",
72
+ "Image generation on CPU is not a supported production scenario — CPU branch exists for environment bring-up/testing only."
73
+ ]
74
+ },
75
+ "known_working_reference": {
76
+ "version": "2.10.0+cu128",
77
+ "cuda_tier": "12.8",
78
+ "source": "docs/runtime-audits/image-qwen/animastor-image-qwen-runtime-audit-2026-08-26.md"
79
+ },
80
+ "todo": "Decision D1: cu124 (video) vs cu128 (audio/image reference) — a single tier or per-profile policy is not decided yet.",
81
+ "notes": [
82
+ "Reference torch came with the preinstalled E2E image; it is known-working, not a universal requirement."
83
+ ]
84
+ },
85
+ "nodejs": {
86
+ "policy": "minimum",
87
+ "minimum": "20",
88
+ "basis": "minimum_supported",
89
+ "notes": [
90
+ "packages/animastor-worker/worker/worker.cjs header: 'Node 18+ with global fetch is assumed' (engines: node >=18).",
91
+ "Installer enforces 20 as a conservative minimum; the bundle itself requires Node 18+."
92
+ ]
93
+ },
94
+ "nvidia_driver": {
95
+ "policy": "reference-only",
96
+ "basis": "environment_reference",
97
+ "reference": {
98
+ "driver": "550.127.08",
99
+ "cuda_reported_by_driver": "12.4"
100
+ },
101
+ "notes": [
102
+ "Installer v1 only checks driver/GPU presence; it never installs or upgrades the NVIDIA driver."
103
+ ]
104
+ }
105
+ },
106
+ "dependencies": [
107
+ {
108
+ "id": "custom-node:comfyui-gguf",
109
+ "kind": "custom_node",
110
+ "name": "ComfyUI-GGUF",
111
+ "requirement": "required",
112
+ "basis": "known_working",
113
+ "install": {
114
+ "directory": "ComfyUI-GGUF",
115
+ "source": {
116
+ "kind": "github",
117
+ "repository": "https://github.com/city96/ComfyUI-GGUF",
118
+ "commit": "6ea2651e7df66d7585f6ffee804b20e92fb38b8a",
119
+ "verification": "confirmed"
120
+ }
121
+ },
122
+ "provides_classes": [
123
+ "UnetLoaderGGUF",
124
+ "CLIPLoaderGGUF"
125
+ ],
126
+ "provenance": {
127
+ "workflows": [
128
+ "img-qwen-image"
129
+ ],
130
+ "evidence": "docs/04-planning/private-worker-installer-dependency-research.md §6.1; image audit (commit 6ea2651)"
131
+ }
132
+ },
133
+ {
134
+ "id": "model:image.unet.qwen-image-2512-q4-k-m",
135
+ "kind": "model",
136
+ "name": "qwen-image-2512-Q4_K_M.gguf",
137
+ "filename": "qwen-image-2512-Q4_K_M.gguf",
138
+ "target_dir": "models/unet",
139
+ "requirement": "required",
140
+ "basis": "known_working",
141
+ "size": "12.33 GiB",
142
+ "size_bytes_approx": 13244758560,
143
+ "checksum": {
144
+ "algo": "sha256",
145
+ "value": "b2a5f6249eb58ee10c9e2ce8cb1114b89897db23de2fdf7dc49140800aa928fc"
146
+ },
147
+ "source": {
148
+ "kind": "huggingface",
149
+ "repository": "unsloth/Qwen-Image-2512-GGUF",
150
+ "file_path": "qwen-image-2512-Q4_K_M.gguf",
151
+ "revision": "main",
152
+ "gated": false,
153
+ "verification": "confirmed",
154
+ "verified_at": "2026-08-27",
155
+ "download_url": "https://huggingface.co/unsloth/Qwen-Image-2512-GGUF/resolve/main/qwen-image-2512-Q4_K_M.gguf"
156
+ },
157
+ "provenance": {
158
+ "workflows": [
159
+ "img-qwen-image"
160
+ ],
161
+ "node_refs": [
162
+ "10 UnetLoaderGGUF.unet_name"
163
+ ]
164
+ }
165
+ },
166
+ {
167
+ "id": "model:image.clip.qwen2.5-vl-7b-instruct-q8-0",
168
+ "kind": "model",
169
+ "name": "Qwen2.5-VL-7B-Instruct-Q8_0.gguf",
170
+ "filename": "Qwen2.5-VL-7B-Instruct-Q8_0.gguf",
171
+ "target_dir": "models/clip",
172
+ "requirement": "required",
173
+ "basis": "known_working",
174
+ "size": "7.54 GiB",
175
+ "size_bytes_approx": 8098523680,
176
+ "checksum": {
177
+ "algo": "sha256",
178
+ "value": "e191b017a8406c60f59c3bd023964aa2dea83ae0ab89caa57ba3290b7379846c"
179
+ },
180
+ "source": {
181
+ "kind": "huggingface",
182
+ "repository": "ggml-org/Qwen2.5-VL-7B-Instruct-GGUF",
183
+ "file_path": "Qwen2.5-VL-7B-Instruct-Q8_0.gguf",
184
+ "revision": "main",
185
+ "gated": false,
186
+ "verification": "confirmed",
187
+ "verified_at": "2026-08-27",
188
+ "download_url": "https://huggingface.co/ggml-org/Qwen2.5-VL-7B-Instruct-GGUF/resolve/main/Qwen2.5-VL-7B-Instruct-Q8_0.gguf"
189
+ },
190
+ "provenance": {
191
+ "workflows": [
192
+ "img-qwen-image"
193
+ ],
194
+ "node_refs": [
195
+ "11 CLIPLoaderGGUF.clip_name (type qwen_image)"
196
+ ]
197
+ }
198
+ },
199
+ {
200
+ "id": "model:image.vae.qwen-image-vae",
201
+ "kind": "model",
202
+ "name": "qwen_image_vae.safetensors",
203
+ "filename": "qwen_image_vae.safetensors",
204
+ "target_dir": "models/vae",
205
+ "requirement": "required",
206
+ "basis": "known_working",
207
+ "size": "242.0 MiB",
208
+ "size_bytes_approx": 253806246,
209
+ "checksum": {
210
+ "algo": "sha256",
211
+ "value": "a70580f0213e67967ee9c95f05bb400e8fb08307e017a924bf3441223e023d1f"
212
+ },
213
+ "source": {
214
+ "kind": "huggingface",
215
+ "repository": "zhenshipo/qwen_image_vae_models",
216
+ "file_path": "qwen_image_vae.safetensors",
217
+ "revision": "main",
218
+ "gated": false,
219
+ "verification": "confirmed",
220
+ "verified_at": "2026-08-27",
221
+ "download_url": "https://huggingface.co/zhenshipo/qwen_image_vae_models/resolve/main/qwen_image_vae.safetensors"
222
+ },
223
+ "provenance": {
224
+ "workflows": [
225
+ "img-qwen-image"
226
+ ],
227
+ "node_refs": [
228
+ "12 VAELoader.vae_name"
229
+ ]
230
+ }
231
+ },
232
+ {
233
+ "id": "model:image.loras.wuli-qwen-image-2512-turbo-4steps",
234
+ "kind": "model",
235
+ "name": "Wuli-Qwen-Image-2512-Turbo-LoRA-4steps-V3.0-bf16.safetensors",
236
+ "filename": "Wuli-Qwen-Image-2512-Turbo-LoRA-4steps-V3.0-bf16.safetensors",
237
+ "target_dir": "models/loras",
238
+ "requirement": "required",
239
+ "basis": "known_working",
240
+ "size": "1.10 GiB",
241
+ "size_bytes_approx": 1179883224,
242
+ "checksum": {
243
+ "algo": "sha256",
244
+ "value": "150a8b0ecc14086d53b3243f2e2b133d7cbdb6e838210feef2c3cc3b5b510c1c"
245
+ },
246
+ "source": {
247
+ "kind": "huggingface",
248
+ "repository": "Wuli-art/Qwen-Image-2512-Turbo-LoRA",
249
+ "file_path": "Wuli-Qwen-Image-2512-Turbo-LoRA-4steps-V3.0-bf16.safetensors",
250
+ "revision": "main",
251
+ "gated": false,
252
+ "verification": "confirmed",
253
+ "verified_at": "2026-08-27",
254
+ "download_url": "https://huggingface.co/Wuli-art/Qwen-Image-2512-Turbo-LoRA/resolve/main/Wuli-Qwen-Image-2512-Turbo-LoRA-4steps-V3.0-bf16.safetensors"
255
+ },
256
+ "provenance": {
257
+ "workflows": [
258
+ "img-qwen-image"
259
+ ],
260
+ "node_refs": [
261
+ "1010 LoraLoaderModelOnly.lora_name"
262
+ ]
263
+ }
264
+ },
265
+ {
266
+ "id": "custom-node:comfyui-manager",
267
+ "kind": "custom_node",
268
+ "name": "ComfyUI-Manager",
269
+ "requirement": "optional",
270
+ "basis": "optional",
271
+ "install": {
272
+ "directory": "comfyui-manager",
273
+ "source": {
274
+ "kind": "github",
275
+ "repository": "https://github.com/Comfy-Org/ComfyUI-Manager",
276
+ "commit": "df1eaff802b2e2fac858551a18fd1e6389d18e81",
277
+ "verification": "confirmed"
278
+ }
279
+ },
280
+ "provenance": {
281
+ "workflows": [],
282
+ "evidence": "present in image audit; not referenced by any production workflow"
283
+ },
284
+ "notes": [
285
+ "Utility only. Inclusion in manifest is open question D7.",
286
+ "Repository moved from ltdrdata/ComfyUI-Manager to Comfy-Org/ComfyUI-Manager."
287
+ ]
288
+ }
289
+ ],
290
+ "workflows": {
291
+ "policy": "editable-baseline",
292
+ "baseline_dir": "user/default/workflows/animastor",
293
+ "note": "OPTIONAL profile workflows (Phase 1.5). They are demo/test copies of the profile's production workflows, NOT a runtime requirement: Animastor sends workflow JSON with each task via the API/GPU Hub (task.params), so generation works without any locally installed copies. Locally installed copies are useful to test the installed ComfyUI in its Web UI (nodes/models present, workflow opens) and as editable starting points for the user's own workflows. They are editable starting points, NOT immutable configuration: the installer downloads them once, never modifies them afterwards, and never overwrites a user-customized copy. A fresh official copy can always be downloaded separately under a distinct name without touching the user's version.",
294
+ "artifacts": [
295
+ {
296
+ "id": "workflow:img-qwen-image",
297
+ "name": "Qwen Image",
298
+ "filename": "img-qwen-image.json",
299
+ "requirement": "optional",
300
+ "basis": "optional",
301
+ "editable": true,
302
+ "target_dir": "user/default/workflows/animastor/image",
303
+ "baseline_sha256": "fb4c25e52bbb2f75270367d2696b4b7469617d6557cd0bcc634a6a6fc03a5816",
304
+ "source": {
305
+ "kind": "animastor",
306
+ "repository_path": "backend/ai/workflows/img-qwen-image.json",
307
+ "endpoint": "GET {HUB_URL}/workflow/img-qwen-image",
308
+ "verification": "confirmed"
309
+ },
310
+ "provenance": {
311
+ "workflows": [
312
+ "img-qwen-image"
313
+ ],
314
+ "evidence": "backend/ai/workflows/img-qwen-image.json (production workflow)"
315
+ },
316
+ "notes": [
317
+ "sha256 of the canonical production workflow file in this repository (computed 2026-08-26); a differing hash on the target machine means the user customized it — that is allowed"
318
+ ]
319
+ }
320
+ ]
321
+ },
322
+ "worker_bundle": {
323
+ "basis": "minimum_supported",
324
+ "worker_type": "image",
325
+ "min_version": "2.0.0",
326
+ "files": [
327
+ "worker.cjs",
328
+ "worker-env.cjs",
329
+ "worker-cleanup.cjs",
330
+ "worker-cleanup-journal.cjs",
331
+ "job-protocol-v2.cjs",
332
+ "package.json",
333
+ "package-lock.json",
334
+ ".env.example"
335
+ ],
336
+ "source": {
337
+ "kind": "animastor",
338
+ "options": [
339
+ {
340
+ "kind": "animastor-origin",
341
+ "endpoint": "GET {HUB_URL}/worker-bundle"
342
+ },
343
+ {
344
+ "kind": "repository",
345
+ "path": "packages/animastor-worker/worker/"
346
+ }
347
+ ],
348
+ "verification": "confirmed"
349
+ },
350
+ "env": {
351
+ "template": "packages/animastor-worker/worker/.env.example",
352
+ "required": [
353
+ "HUB_URL",
354
+ "ANIMASTOR_WORKER_TOKEN",
355
+ "WORKER_TYPE",
356
+ "WORKER_ID"
357
+ ],
358
+ "optional": [
359
+ "COMFY_PORT",
360
+ "COMFY_INPUT_DIR",
361
+ "WORKER_JOURNAL_DIR",
362
+ "NOTEBOOK_PATH"
363
+ ],
364
+ "secrets": [
365
+ "ANIMASTOR_WORKER_TOKEN"
366
+ ],
367
+ "rules": [
368
+ "merge semantics: never overwrite an existing valid token",
369
+ "chmod 600 on .env",
370
+ "secrets never in logs/argv/state files (redaction per audit script SECRET_NAMES)"
371
+ ]
372
+ },
373
+ "provenance": {
374
+ "evidence": [
375
+ "packages/animastor-worker/worker/worker.cjs:1-4 (v2.1.1, Node 18+)",
376
+ "packages/animastor-worker/worker/.env.example",
377
+ "gpu-hub/gpu-hub.js GET /worker-bundle"
378
+ ]
379
+ }
380
+ },
381
+ "verification": {
382
+ "method": "resolver-diff",
383
+ "tools": [
384
+ "backend/src/installer/compatibility-resolver.js",
385
+ "scripts/animastor-runtime-audit.sh (read-only reference diff)"
386
+ ],
387
+ "pass": "all required dependencies status=installed; missing=0; incompatible=0",
388
+ "warn": "unknown>0 or unused>0",
389
+ "fail": "missing>0 or incompatible>0",
390
+ "notes": [
391
+ "Runtime audit is reference/verification only — never the source of truth for this manifest."
392
+ ]
393
+ },
394
+ "environment_reference": [
395
+ {
396
+ "provider": "E2E Networks",
397
+ "label": "image-qwen reference instance (preinstalled E2E image)",
398
+ "audit": "docs/runtime-audits/image-qwen/animastor-image-qwen-runtime-audit-2026-08-26.md",
399
+ "captured": "2026-08-26",
400
+ "gpu": {
401
+ "name": "NVIDIA L40S",
402
+ "vram_mib": 46068
403
+ },
404
+ "nvidia_driver": "550.127.08",
405
+ "cuda_reported_by_driver": "12.4",
406
+ "os_notes": "Ubuntu-based E2E image; python at /home/jovyan/animastor/python3 (3.10.12); ComfyUI at /home/jovyan/ComfyUI",
407
+ "comfyui": {
408
+ "repository": "https://github.com/rajsingh1-dev/ComfyUI.git",
409
+ "commit": "c4cfee7ad16cfeb082e12f43cf4751b4a67a4e11",
410
+ "note": "Old ComfyUI fork preinstalled in the E2E image — a known-working environment, not a universal Animastor requirement."
411
+ },
412
+ "torch": "2.10.0+cu128",
413
+ "python": "3.10.12",
414
+ "known_extras": [
415
+ {
416
+ "kind": "custom_node",
417
+ "name": "ComfyUI-Florence2",
418
+ "note": "operator extra; not referenced by img-qwen-image"
419
+ },
420
+ {
421
+ "kind": "custom_node",
422
+ "name": "ComfyUI-KJNodes",
423
+ "note": "operator extra; not referenced by img-qwen-image"
424
+ },
425
+ {
426
+ "kind": "custom_node",
427
+ "name": "ComfyUI-RMBG",
428
+ "note": "operator extra"
429
+ },
430
+ {
431
+ "kind": "custom_node",
432
+ "name": "ComfyUI-segment-anything-2",
433
+ "note": "operator extra"
434
+ },
435
+ {
436
+ "kind": "custom_node",
437
+ "name": "qwen3-tts",
438
+ "note": "audio-profile node present on the shared image instance"
439
+ },
440
+ {
441
+ "kind": "custom_node",
442
+ "name": "comfyui-manager",
443
+ "note": "utility"
444
+ },
445
+ {
446
+ "kind": "workflow_files",
447
+ "name": "user/default/workflows/*",
448
+ "note": "local UI test artifacts — explicitly NOT a dependency"
449
+ }
450
+ ],
451
+ "disclaimer": "Known-working reference environment for this profile. Provider/image-specific information; MUST NOT be treated as a canonical requirement."
452
+ }
453
+ ],
454
+ "disk_budget": {
455
+ "models_bytes_approx": 22776971710,
456
+ "note": "≈21.2 GiB of models (13244758560 + 8098523680 + 253806246 + 1179883224) plus ComfyUI + venv overhead. Exact: from verified HF sources."
457
+ },
458
+ "open_questions": [
459
+ "D1: canonical ComfyUI pin — fork c4cfee7 (known-working reference) vs official v0.27.0; golden run required",
460
+ "D1: canonical torch/CUDA tier — cu128 reference vs cu124",
461
+ "Open question 8: ComfyUI-Manager inclusion (D7)",
462
+ "Open question 11: Node.js 18 (start-worker.sh) vs 20 (worker.cjs)",
463
+ "Open question 12: minimum VRAM undocumented"
464
+ ]
465
+ }