@animastor/installer 0.1.0 → 0.2.4
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 +89 -1
- package/ai/install-manifests/audio/qwen-tts.json +6 -7
- package/package.json +4 -4
- package/src/installer/cli.js +1036 -211
- package/src/installer/compatibility-resolver.js +58 -11
- package/src/installer/engine/comfy-owner.js +385 -0
- package/src/installer/engine/downloader.js +26 -0
- package/src/installer/engine/engine.js +455 -61
- package/src/installer/engine/fixes.js +96 -0
- package/src/installer/engine/io.js +33 -2
- package/src/installer/engine/node-deps.js +274 -0
- package/src/installer/engine/prereq.js +176 -0
- package/src/installer/engine/probe.js +265 -8
- package/src/installer/engine/summary.js +108 -0
- package/src/installer/engine/tty.js +214 -0
- package/src/installer/engine/worker.js +379 -47
- package/src/installer/install-plan.js +99 -15
- package/src/installer/management.js +336 -12
- package/src/installer/platform/linux.js +17 -0
- package/src/installer/setup-contract.js +35 -23
- package/src/installer/verification-report.js +3 -1
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.
|
|
17
|
+
├── package.json @animastor/installer 0.2.3, 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)
|
|
@@ -50,6 +50,94 @@ candidates (repo root + tarball prefix), never package-locally.
|
|
|
50
50
|
|
|
51
51
|
`animastor-installer` (package `bin` → `src/installer/cli.js`).
|
|
52
52
|
|
|
53
|
+
Normal use is the hub bootstrap — one command from the Animastor setup page:
|
|
54
|
+
|
|
55
|
+
```
|
|
56
|
+
curl -fsSL "https://animastor.org/gpu/installer?profile=…&mode=…&platform=linux" | bash
|
|
57
|
+
```
|
|
58
|
+
|
|
59
|
+
- every question and the hidden Worker Key are read from `/dev/tty` (stdin is
|
|
60
|
+
the piped script); without a terminal the installer stops with a clear
|
|
61
|
+
message (exit 3) unless `--yes` is given;
|
|
62
|
+
- the mode follows the MACHINE, not the recorded state (`engine/comfy-owner.js`):
|
|
63
|
+
a ComfyUI process the installer did not start (a platform/notebook instance
|
|
64
|
+
with `--listen 0.0.0.0 --port 8888 --baseurl /notebook/…`) means `existing`,
|
|
65
|
+
and its address is taken from its own cmdline and confirmed by a ComfyUI
|
|
66
|
+
`/system_stats` payload; the installer never starts a second ComfyUI next to
|
|
67
|
+
it. `managed` only when the installer created the ComfyUI and nobody else
|
|
68
|
+
runs it. A recorded `managed/startComfyui=true` that contradicts the machine
|
|
69
|
+
is shown and corrected; an extra installer-owned instance is offered for
|
|
70
|
+
stop;
|
|
71
|
+
- no `--mode` → as above (never "managed" just because the state says so), and
|
|
72
|
+
an explicit `--mode` that contradicts the machine is reported, not applied;
|
|
73
|
+
- problems of an existing installation (worker type, Node.js, ComfyUI URL /
|
|
74
|
+
notebook prefix, outdated worker bundle, missing worker dependencies) are
|
|
75
|
+
listed once and fixed after ONE question (`--yes` = fix, `--no-fix` = keep);
|
|
76
|
+
- the run ends with a RESULT block: ComfyUI API → worker "ComfyUI ready" →
|
|
77
|
+
hub heartbeat; every ✗ is one cause line plus one fix command.
|
|
78
|
+
|
|
79
|
+
The installer also links the `animastor` command into `~/.local/bin` (root
|
|
80
|
+
included — E2E nodes keep only `/home` across a reboot) and adds that directory
|
|
81
|
+
to PATH in `~/.bashrc` / `~/.profile` once; the command points at a persistent
|
|
82
|
+
copy of itself (`~/animastor/installer`):
|
|
83
|
+
|
|
84
|
+
```
|
|
85
|
+
animastor start | stop | status | logs [-f] | doctor [--new-key]
|
|
86
|
+
```
|
|
87
|
+
|
|
88
|
+
`doctor` re-runs the installation idempotently for the recorded profile(s):
|
|
89
|
+
nothing that is present is downloaded again, the worker is started again (also
|
|
90
|
+
after a node reboot), and a missing system prerequisite (`python3.X-venv`, …)
|
|
91
|
+
is installed on a single `Install <pkg> now? [Y/n]` question when the host
|
|
92
|
+
allows it (root or passwordless `sudo -n`). The Worker Key in `.env` is never
|
|
93
|
+
asked for again on a re-run.
|
|
94
|
+
|
|
95
|
+
`doctor --yes` is the boot path: no TTY, no questions, ONE line of output and
|
|
96
|
+
an exit code. It installs missing apt packages, starts the worker (and its
|
|
97
|
+
own ComfyUI in `managed` mode), and re-applies the PATH block — E2E nodes
|
|
98
|
+
reset `~/.bashrc`/`~/.profile` on every boot.
|
|
99
|
+
|
|
100
|
+
Type A (the platform starts ComfyUI, e.g. TIR): when the install state says
|
|
101
|
+
the ComfyUI belongs to the platform (`mode existing`, `startComfyui=false`,
|
|
102
|
+
or `comfy_owner.owner = foreign` recorded by an earlier run) and no verified
|
|
103
|
+
platform instance answers yet, `doctor` waits up to `--comfy-wait-ms`
|
|
104
|
+
(default 180000 on boot) for the `main.py` process AND its
|
|
105
|
+
`GET /system_stats`, re-reading the address from the process cmdline on every
|
|
106
|
+
poll and logging progress every 30 s. Only then are `COMFY_URL` /
|
|
107
|
+
`COMFY_PORT` / `NOTEBOOK_PATH` recomputed and the worker started; its 90 s
|
|
108
|
+
"ComfyUI ready" window opens after ComfyUI answered. If ComfyUI does not come
|
|
109
|
+
up in time the result is `FAILED` — "ComfyUI is started by the platform; it
|
|
110
|
+
did not come up in N s" — and the worker is NOT started against the address
|
|
111
|
+
of a previous boot. `animastor status` labels such a ComfyUI
|
|
112
|
+
"started by the platform (pid …)". `~/animastor/start-worker.sh` is
|
|
113
|
+
replaced by a wrapper (`exec ~/.local/bin/animastor start "$@"`, old script
|
|
114
|
+
kept as `start-worker.sh.bak`); ready-to-use boot scripts for both node types
|
|
115
|
+
are in `animastor-docs/04-planning/INSTALLER_BOOT_STARTUP.md`.
|
|
116
|
+
|
|
117
|
+
`animastor boot` (0.2.4) is the whole node startup script on both node types:
|
|
118
|
+
it detaches at once (own session, stdin `/dev/null`, output appended to
|
|
119
|
+
`~/animastor/logs/bootstrap.log` under a header with the boot time) and exits
|
|
120
|
+
0; the detached `doctor --yes` waits up to 600 s by default. TIR starts its
|
|
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.
|
|
133
|
+
|
|
134
|
+
The fix list is APPLIED: `COMFY_URL`, `COMFY_PORT` and `NOTEBOOK_PATH` are
|
|
135
|
+
rewritten in `.env` (only real differences are listed, one entry per key), and
|
|
136
|
+
a second run over the fixed `.env` prints no fix list. The address is
|
|
137
|
+
recomputed on every run because the platform's port and notebook prefix change
|
|
138
|
+
between boots. Answers already given (a declined optional workflow, a declined
|
|
139
|
+
model download) are remembered and not asked again, also under `--yes`.
|
|
140
|
+
|
|
53
141
|
## Manifest resolution (MANIFEST_ROOT contract)
|
|
54
142
|
|
|
55
143
|
1. `/app/artifacts/install-manifests` (baked container layout)
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"manifest_version": "1.0.0",
|
|
3
|
-
"revision": "2026.
|
|
3
|
+
"revision": "2026.10.30-r1",
|
|
4
4
|
"status": "ready",
|
|
5
5
|
"profile": {
|
|
6
6
|
"id": "audio/qwen-tts",
|
|
@@ -23,10 +23,10 @@
|
|
|
23
23
|
"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."
|
|
24
24
|
},
|
|
25
25
|
"hardware": {
|
|
26
|
-
"gpu_min_vram_gb":
|
|
27
|
-
"basis": "
|
|
26
|
+
"gpu_min_vram_gb": 12,
|
|
27
|
+
"basis": "minimum_supported",
|
|
28
28
|
"reference_gpu": "NVIDIA L40S (46068 MiB)",
|
|
29
|
-
"
|
|
29
|
+
"derivation": "Estimate, not a measured floor: tts-qwen-dialogue loads both 1.7B repos at once (VoiceDesign + Base: 2 x (3.57 GiB weights + 0.65 GiB speech tokenizer) = ~8.4 GiB) plus activations; 12 GB leaves headroom. Known to run on L40S 46 GB; installed on Tesla V100 (E2E, 2026-10-30). Lower it only after a measured run on a smaller card."
|
|
30
30
|
},
|
|
31
31
|
"runtime_requirements": {
|
|
32
32
|
"comfyui": {
|
|
@@ -381,7 +381,7 @@
|
|
|
381
381
|
},
|
|
382
382
|
"provenance": {
|
|
383
383
|
"evidence": [
|
|
384
|
-
"packages/animastor-worker/worker/worker.cjs:1-4 (v2.
|
|
384
|
+
"packages/animastor-worker/worker/worker.cjs:1-4 (v2.2.0, Node 20+)",
|
|
385
385
|
"packages/animastor-worker/worker/.env.example",
|
|
386
386
|
"gpu-hub/gpu-hub.js GET /worker-bundle"
|
|
387
387
|
]
|
|
@@ -439,7 +439,6 @@
|
|
|
439
439
|
"D1: canonical torch/CUDA tier — cu128 reference vs cu124",
|
|
440
440
|
"Open question 5: confirm SaveAudioMP3 belongs to ComfyUI-Qwen3-TTS via /object_info",
|
|
441
441
|
"Open question 8: ComfyUI-Manager inclusion (D7)",
|
|
442
|
-
"Open question
|
|
443
|
-
"Open question 12: minimum VRAM undocumented"
|
|
442
|
+
"Open question 12: minimum VRAM is an estimate (12 GB, hardware.derivation) — measure on a smaller card"
|
|
444
443
|
]
|
|
445
444
|
}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@animastor/installer",
|
|
3
|
-
"version": "0.
|
|
3
|
+
"version": "0.2.4",
|
|
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": {
|
|
@@ -28,13 +28,13 @@
|
|
|
28
28
|
},
|
|
29
29
|
"repository": {
|
|
30
30
|
"type": "git",
|
|
31
|
-
"url": "git+https://github.com/Animastor/animastor.git",
|
|
31
|
+
"url": "git+https://github.com/Animastor/animastor-backend.git",
|
|
32
32
|
"directory": "packages/animastor-installer"
|
|
33
33
|
},
|
|
34
34
|
"bugs": {
|
|
35
|
-
"url": "https://github.com/Animastor/animastor/issues"
|
|
35
|
+
"url": "https://github.com/Animastor/animastor-backend/issues"
|
|
36
36
|
},
|
|
37
|
-
"homepage": "https://animastor.
|
|
37
|
+
"homepage": "https://animastor.org",
|
|
38
38
|
"devDependencies": {
|
|
39
39
|
"chai": "^6.2.2",
|
|
40
40
|
"mocha": "^11.7.5"
|