@animastor/installer 0.2.4 → 0.2.10

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.
package/README.md CHANGED
@@ -14,7 +14,7 @@ published to npm as `@animastor/installer`.
14
14
 
15
15
  ```
16
16
  packages/animastor-installer/
17
- ├── package.json @animastor/installer 0.2.3, Node >=20, zero runtime deps
17
+ ├── package.json @animastor/installer 0.2.10, Node >=20, zero runtime deps
18
18
  ├── src/installer/
19
19
  │ ├── cli.js CLI entry (detect/plan/install/verify/resume/uninstall)
20
20
  │ ├── index.js Public API entry (10 exports, incl. setupContract)
@@ -119,17 +119,92 @@ it detaches at once (own session, stdin `/dev/null`, output appended to
119
119
  `~/animastor/logs/bootstrap.log` under a header with the boot time) and exits
120
120
  0; the detached `doctor --yes` waits up to 600 s by default. TIR starts its
121
121
  ComfyUI only after the startup script has finished, so waiting inside the
122
- script deadlocks. On type A the pip requirements of every required profile
123
- custom node are checked in the Python of the running `main.py` (taken from
124
- `/proc/<pid>`); missing ones are installed (boot / `--yes`: no question;
125
- interactive: one question) and the platform's ComfyUI is restarted — exactly
126
- that pid is stopped and the run waits until the platform starts a new one
127
- with the node classes. Restarting a ComfyUI the installer did not start needs
128
- the option: `--restart-platform-comfy` / `--no-restart-platform-comfy`, or the
129
- answer recorded in `install-state.json` (`installer_options.restartPlatformComfy`);
130
- `animastor boot` on type A defaults to yes. Type B checks its own venv and
131
- restarts its own ComfyUI. Missing node classes are re-checked until the end
132
- of the wait window when deps were just installed or the ComfyUI pid changed.
122
+ script deadlocks.
123
+
124
+ Custom-node Python dependencies on type A (0.2.5): the pip requirements of
125
+ every required profile custom node are checked in the Python of the running
126
+ `main.py` (taken from `/proc/<pid>`). Missing ones go into a persistent
127
+ OVERLAY venv `~/animastor/pydeps/py<X.Y>` (`python -m venv --without-pip
128
+ --system-site-packages`: pip of the platform runs there and writes only what
129
+ the platform lacks; torch is pinned as a constraint) and a generated custom
130
+ node `custom_nodes/animastor-pydeps/prestartup_script.py` puts that
131
+ site-packages in front of `sys.path` before ComfyUI imports the nodes. All of
132
+ it is in `/home`, so after a node restart the platform's ComfyUI loads the
133
+ nodes with no reinstall and no restart. (As root, pip into `/usr/bin/python3`
134
+ writes `/usr/local/lib/python3.X/dist-packages` and `--user` writes
135
+ `/root/.local` — both are lost with a node restart.) A ComfyUI without
136
+ prestartup-script support falls back to the 0.2.4 behaviour (install into its
137
+ Python; boot reinstalls). When the running ComfyUI lacks the node classes it
138
+ is restarted — only with consent: `--restart-platform-comfy` /
139
+ `--no-restart-platform-comfy`, the answer recorded in `install-state.json`
140
+ (`installer_options.restartPlatformComfy`, asked once interactively, default
141
+ Yes), or the boot default (yes). A plain `--yes` is not consent. The restart
142
+ stops exactly that pid (its argv, cwd and environment are read from `/proc`
143
+ first; nothing is stopped when they are unreadable or the signal is refused),
144
+ gives the platform 30 s to start it again, otherwise starts the same command
145
+ line itself (detached, log `~/animastor/logs/comfyui-restart.log`) and waits
146
+ for `GET /system_stats` at the original `--baseurl` address and the node
147
+ classes in `/object_info`. Type B checks its own venv and restarts its own
148
+ ComfyUI.
149
+
150
+ Version replacements of the overlay (0.2.6): the overlay is first in
151
+ `sys.path` of the WHOLE ComfyUI, so a node that pins a version (qwen-tts:
152
+ `transformers==4.57.3`) replaces the platform's package for ComfyUI and every
153
+ other node (E2E 02.11: transformers 5.0.0→4.57.3, huggingface_hub
154
+ 1.3.5→0.36.2, cryptography 3.4.8→50.0.2). After the dependencies are in place
155
+ the overlay is compared with the platform Python (`python -I`,
156
+ `importlib.metadata`, overlay not on `sys.path`); every replacement is logged
157
+ and shown in RESULT as
158
+ `[i] <pkg> platform X → overlay Y (needed by <node>)` — `!` when the major
159
+ version goes up or down — and recorded in `install-state.json`
160
+ (`installer_options.nodeDeps.overrides`). One GPU node — one profile: when
161
+ another profile is installed (or being installed) on the same ComfyUI and a
162
+ replacement touches a package one of its nodes uses, or — with more than one
163
+ profile — a ComfyUI core requirement (`<ComfyUI>/requirements.txt`) whose
164
+ range excludes the overlay version, the replacement needs consent: an
165
+ interactive question (default No) or `--accept-node-deps-overrides`; the
166
+ answer is recorded (`installer_options.nodeDeps.accepted`). `boot` and a
167
+ plain `--yes` never consent: the run is FAILED with the cause, and the overlay
168
+ is restored from the copy taken before pip (`py<X.Y>.pre-install`).
169
+
170
+ Node classes for the worker (0.2.7): the worker bundle (>= 2.2.2) asks for
171
+ tasks only when ComfyUI's `/object_info` lists every node class of its
172
+ profile. The list is `<worker dir>/node-classes.json`
173
+ (`{"profiles":{"audio/qwen-tts":[…]}}`), written from the manifests'
174
+ `provides_classes` (required dependencies only) on a fresh install, on a
175
+ bundle update and on every `doctor`/`boot` run — a node installed by an
176
+ older installer gets it on its next doctor/boot. An identical file is left
177
+ untouched; the file is registered for the uninstaller. Without the file the
178
+ worker keeps the previous behaviour (ComfyUI API only) and logs one warning.
179
+
180
+ A running worker is not restarted by `install`/`doctor` (0.2.8). It is left
181
+ as is (`worker already running (pid N), left as is`) unless its configuration
182
+ changed (`.env` or bundle files newer than the process). Then an idle worker
183
+ is restarted; a busy one (a `Task <id>` in its own log without `Done`/`Failed`)
184
+ is waited for up to `--wait-job-ms` (default 600000), else the run is FAILED
185
+ (exit 1) and the worker keeps running. `--force` restarts it anyway. The boot
186
+ path (`doctor --yes`, no TTY) only starts a stopped worker. An unchanged
187
+ `.env` is no longer rewritten. `doctor` and `status` print
188
+ `current job: none|<id>`.
189
+
190
+ The worker bundle is deployed WHOLE (0.2.10): every file of the source — the
191
+ hub bundle or the installer's bundled copy — is copied, not only
192
+ `manifest.worker_bundle.files` (that list is the minimal presence check; `.env`
193
+ and `.env.*` other than `.env.example`, `node_modules/`, `.git/`, `logs/` are
194
+ never copied). The deployed file list is recorded in install-state
195
+ (`components.worker.bundle_files`); the next update removes the files of the
196
+ old version the new bundle no longer ships (only recorded files, never `.env`
197
+ or `node-classes.json`; a 0.2.9 state falls back to `files_installed`). Before
198
+ a start every local `require('./…')` reachable from `worker.cjs` must exist,
199
+ otherwise the start is FAILED naming the file and the worker is not spawned.
200
+
201
+ Every install/doctor run first brings the management tools (`animastor`,
202
+ the persistent installer copy) and an installed worker bundle to its own
203
+ version — before any check that can end the run — so every printed fix
204
+ command exists in the installed `animastor`. Unknown options are an error
205
+ (exit 2). When node classes are missing the result names the cause: missing
206
+ packages, an `IMPORT FAILED` line from the ComfyUI log (`/internal/logs`,
207
+ the process stdout file, the restart log) or a needed restart.
133
208
 
134
209
  The fix list is APPLIED: `COMFY_URL`, `COMFY_PORT` and `NOTEBOOK_PATH` are
135
210
  rewritten in `.env` (only real differences are listed, one entry per key), and
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "manifest_version": "1.0.0",
3
- "revision": "2026.10.30-r1",
3
+ "revision": "2026.11.07-r1",
4
4
  "status": "ready",
5
5
  "profile": {
6
6
  "id": "audio/qwen-tts",
@@ -338,6 +338,7 @@
338
338
  "worker-cleanup.cjs",
339
339
  "worker-cleanup-journal.cjs",
340
340
  "job-protocol-v2.cjs",
341
+ "worker-logs.cjs",
341
342
  "package.json",
342
343
  "package-lock.json",
343
344
  ".env.example"
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "manifest_version": "1.0.0",
3
- "revision": "2026.08.27-r1",
3
+ "revision": "2026.11.07-r2",
4
4
  "status": "ready",
5
5
  "profile": {
6
6
  "id": "image/qwen-image",
@@ -21,10 +21,10 @@
21
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
22
  },
23
23
  "hardware": {
24
- "gpu_min_vram_gb": null,
25
- "basis": "unknown",
24
+ "gpu_min_vram_gb": 14,
25
+ "basis": "minimum_supported",
26
26
  "reference_gpu": "NVIDIA L40S (46068 MiB)",
27
- "todo": "Open question 12: minimum VRAM is not documented anywhere; needs measurement."
27
+ "derivation": "Estimate, not a measured floor (installer 0.2.10): img-qwen-image samples with the GGUF UNet qwen-image-2512-Q4_K_M (12.33 GiB) and the 4-step LoRA (1.10 GiB) resident together, plus activations at 768x1024; ComfyUI moves the Qwen2.5-VL-7B Q8_0 text encoder (7.54 GiB) out of VRAM after encoding. 14 GB keeps 16 GB cards (15.6-16 GiB as reported) in; 12 GB cards are below. Known to run on L40S 46 GB. Lower it only after a measured run on a smaller card."
28
28
  },
29
29
  "runtime_requirements": {
30
30
  "comfyui": {
@@ -300,7 +300,7 @@
300
300
  "basis": "optional",
301
301
  "editable": true,
302
302
  "target_dir": "user/default/workflows/animastor/image",
303
- "baseline_sha256": "fb4c25e52bbb2f75270367d2696b4b7469617d6557cd0bcc634a6a6fc03a5816",
303
+ "baseline_sha256": "d2cb4c4edead909b7358e1353fdd0e0e4d5efc231abfcad28749f1c0bc99d5be",
304
304
  "source": {
305
305
  "kind": "animastor",
306
306
  "repository_path": "backend/ai/workflows/img-qwen-image.json",
@@ -314,7 +314,7 @@
314
314
  "evidence": "backend/ai/workflows/img-qwen-image.json (production workflow)"
315
315
  },
316
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"
317
+ "sha256 of the canonical production workflow file in this repository (computed 2026-11-07); a differing hash on the target machine means the user customized it — that is allowed"
318
318
  ]
319
319
  }
320
320
  ]
@@ -329,6 +329,7 @@
329
329
  "worker-cleanup.cjs",
330
330
  "worker-cleanup-journal.cjs",
331
331
  "job-protocol-v2.cjs",
332
+ "worker-logs.cjs",
332
333
  "package.json",
333
334
  "package-lock.json",
334
335
  ".env.example"
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "manifest_version": "1.0.0",
3
- "revision": "2026.08.27-r1",
3
+ "revision": "2026.11.07-r2",
4
4
  "status": "ready",
5
5
  "profile": {
6
6
  "id": "video/ltx-2.3",
@@ -640,7 +640,7 @@
640
640
  "basis": "optional",
641
641
  "editable": true,
642
642
  "target_dir": "user/default/workflows/animastor/video",
643
- "baseline_sha256": "6ab036e1c7b4f9e3e9df11b31b08d7495a4c7a761d8f8159951bf06768df3cc1",
643
+ "baseline_sha256": "b675a572934f95a8fb475e4832e94a78d495f4b89b1e8a1e99e93fc4b6ef30d7",
644
644
  "source": {
645
645
  "kind": "animastor",
646
646
  "repository_path": "backend/ai/workflows/video-ltx-1p.json",
@@ -654,7 +654,7 @@
654
654
  "evidence": "backend/ai/workflows/video-ltx-1p.json (production workflow)"
655
655
  },
656
656
  "notes": [
657
- "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"
657
+ "sha256 of the canonical production workflow file in this repository (computed 2026-11-07); a differing hash on the target machine means the user customized it — that is allowed"
658
658
  ]
659
659
  },
660
660
  {
@@ -665,7 +665,7 @@
665
665
  "basis": "optional",
666
666
  "editable": true,
667
667
  "target_dir": "user/default/workflows/animastor/video",
668
- "baseline_sha256": "1be44f6fd00e2684a6db138e1a20e8445653bfc65bbb3caa62dfe00b31067617",
668
+ "baseline_sha256": "c6bc34f3a5eb36009e203deedd7a6467a1ae3d60b9ef4abb2f0122c02c352f62",
669
669
  "source": {
670
670
  "kind": "animastor",
671
671
  "repository_path": "backend/ai/workflows/video-ltx-2p.json",
@@ -679,7 +679,7 @@
679
679
  "evidence": "backend/ai/workflows/video-ltx-2p.json (production workflow)"
680
680
  },
681
681
  "notes": [
682
- "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"
682
+ "sha256 of the canonical production workflow file in this repository (computed 2026-11-07); a differing hash on the target machine means the user customized it — that is allowed"
683
683
  ]
684
684
  },
685
685
  {
@@ -690,7 +690,7 @@
690
690
  "basis": "optional",
691
691
  "editable": true,
692
692
  "target_dir": "user/default/workflows/animastor/video",
693
- "baseline_sha256": "ec15a01259afcc6b3d76df5d5eec75a080b6aa54bd6b064b79538bd30dcf90f4",
693
+ "baseline_sha256": "26692d1970c92ad1d56c52d676df2f930d77898dc85618814f95d10b10ec2a80",
694
694
  "source": {
695
695
  "kind": "animastor",
696
696
  "repository_path": "backend/ai/workflows/video-ltx-3p.json",
@@ -704,7 +704,7 @@
704
704
  "evidence": "backend/ai/workflows/video-ltx-3p.json (production workflow)"
705
705
  },
706
706
  "notes": [
707
- "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"
707
+ "sha256 of the canonical production workflow file in this repository (computed 2026-11-07); a differing hash on the target machine means the user customized it — that is allowed"
708
708
  ]
709
709
  },
710
710
  {
@@ -715,7 +715,7 @@
715
715
  "basis": "optional",
716
716
  "editable": true,
717
717
  "target_dir": "user/default/workflows/animastor/video",
718
- "baseline_sha256": "acef76b38f25b41f133b92bb71e2ab3ac8f75808209c29624319c9d08822d80d",
718
+ "baseline_sha256": "8ea650a8cde4660eaefce427152ffe77050ff433c1b5be0a0c72a8bd73288ca6",
719
719
  "source": {
720
720
  "kind": "animastor",
721
721
  "repository_path": "backend/ai/workflows/video-ltx-4p.json",
@@ -729,7 +729,7 @@
729
729
  "evidence": "backend/ai/workflows/video-ltx-4p.json (production workflow)"
730
730
  },
731
731
  "notes": [
732
- "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"
732
+ "sha256 of the canonical production workflow file in this repository (computed 2026-11-07); a differing hash on the target machine means the user customized it — that is allowed"
733
733
  ]
734
734
  }
735
735
  ]
@@ -744,6 +744,7 @@
744
744
  "worker-cleanup.cjs",
745
745
  "worker-cleanup-journal.cjs",
746
746
  "job-protocol-v2.cjs",
747
+ "worker-logs.cjs",
747
748
  "package.json",
748
749
  "package-lock.json",
749
750
  ".env.example"
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@animastor/installer",
3
- "version": "0.2.4",
3
+ "version": "0.2.10",
4
4
  "description": "Animastor Private GPU Worker installer — self-contained CLI and library for GPU worker setup, verification, and management.",
5
5
  "main": "src/installer/index.js",
6
6
  "exports": {