@animastor/installer 0.2.9 → 0.2.11

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.9, 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)
@@ -187,6 +187,17 @@ path (`doctor --yes`, no TTY) only starts a stopped worker. An unchanged
187
187
  `.env` is no longer rewritten. `doctor` and `status` print
188
188
  `current job: none|<id>`.
189
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
+
190
201
  Every install/doctor run first brings the management tools (`animastor`,
191
202
  the persistent installer copy) and an installed worker bundle to its own
192
203
  version — before any check that can end the run — so every printed fix
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "manifest_version": "1.0.0",
3
- "revision": "2026.10.30-r1",
3
+ "revision": "2026.11.12-r1",
4
4
  "status": "ready",
5
5
  "profile": {
6
6
  "id": "audio/qwen-tts",
@@ -10,11 +10,15 @@
10
10
  "provenance": {
11
11
  "workflows": [
12
12
  "tts-qwen-narrator",
13
- "tts-qwen-dialogue"
13
+ "tts-qwen-dialogue",
14
+ "tts-qwen-voice-reference",
15
+ "tts-qwen-voice-transcribe"
14
16
  ],
15
17
  "connectors_backend_only": [
16
18
  "conn-tts-narration",
17
- "conn-tts-dialogue"
19
+ "conn-tts-dialogue",
20
+ "conn-tts-voice-reference",
21
+ "conn-tts-voice-transcribe"
18
22
  ],
19
23
  "sources": [
20
24
  "docs/04-planning/private-worker-installer-dependency-research.md",
@@ -23,10 +27,10 @@
23
27
  "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
28
  },
25
29
  "hardware": {
26
- "gpu_min_vram_gb": 12,
30
+ "gpu_min_vram_gb": 8,
27
31
  "basis": "minimum_supported",
28
32
  "reference_gpu": "NVIDIA L40S (46068 MiB)",
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."
33
+ "derivation": "Estimate, not a measured floor (VOICE_REFERENCES.md): every workflow now loads ONE 1.7B repo — narrator/dialogue the Base model only (voice clone from a locked reference), voice-reference the VoiceDesign model only (3.57 GiB weights + 0.65 GiB speech tokenizer ≈ 4.2 GiB) plus faster-whisper small (≈ 0.5 GiB fp16) and activations; 8 GB leaves headroom. Was 12 GB while the dialogue workflow loaded VoiceDesign + Base together. 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
34
  },
31
35
  "runtime_requirements": {
32
36
  "comfyui": {
@@ -125,20 +129,22 @@
125
129
  "Qwen3TTSVoiceDesign",
126
130
  "Qwen3TTSLoader",
127
131
  "Qwen3TTSVoiceClonePrompt",
132
+ "Qwen3TTSVoiceClone",
128
133
  "Qwen3TTSRoleBank",
129
134
  "Qwen3TTSAdvancedDialogue",
130
- "Qwen3TTSScriptProcessor",
131
- "SaveAudioMP3"
135
+ "Qwen3TTSScriptProcessor"
132
136
  ],
133
137
  "provenance": {
134
138
  "workflows": [
135
139
  "tts-qwen-narrator",
136
- "tts-qwen-dialogue"
140
+ "tts-qwen-dialogue",
141
+ "tts-qwen-voice-reference"
137
142
  ],
138
143
  "evidence": "docs/04-planning/private-worker-installer-dependency-research.md §6.1; audit-2026-08-25.txt [6]"
139
144
  },
140
145
  "notes": [
141
- "SaveAudioMP3 attribution to this package is by elimination (only manager + qwen3-tts installed on the working instance); high confidence, needs /object_info confirmation (open question 5)."
146
+ "SaveAudioMP3 and LoadAudio are ComfyUI CORE nodes (not in nodes.py of this package at 2ee1131) — confirm both via /object_info on the reference fork (open question 5).",
147
+ "qwen-tts (pip) silently ignores `instruct` on the Base clone (0.1.1: kwargs swallowed by model.generate) — the clone copies the delivery of the reference."
142
148
  ]
143
149
  },
144
150
  {
@@ -186,8 +192,7 @@
186
192
  },
187
193
  "provenance": {
188
194
  "workflows": [
189
- "tts-qwen-narrator",
190
- "tts-qwen-dialogue"
195
+ "tts-qwen-voice-reference"
191
196
  ],
192
197
  "node_refs": [
193
198
  "78 Qwen3TTSLoader.model_repo"
@@ -239,6 +244,7 @@
239
244
  },
240
245
  "provenance": {
241
246
  "workflows": [
247
+ "tts-qwen-narrator",
242
248
  "tts-qwen-dialogue"
243
249
  ],
244
250
  "node_refs": [
@@ -246,6 +252,174 @@
246
252
  ]
247
253
  }
248
254
  },
255
+ {
256
+ "id": "custom-node:animastor-voice-ref",
257
+ "kind": "custom_node",
258
+ "name": "animastor-voice-ref",
259
+ "requirement": "required",
260
+ "basis": "known_working",
261
+ "install": {
262
+ "directory": "animastor-voice-ref",
263
+ "source": {
264
+ "kind": "github",
265
+ "repository": "https://github.com/Animastor/animastor-worker",
266
+ "commit": "6a88ad960e47df9fa6e76e4cce5308d9590297c3",
267
+ "subdirectory": "comfyui-nodes/animastor-voice-ref",
268
+ "verification": "confirmed"
269
+ }
270
+ },
271
+ "provides_classes": [
272
+ "SaveAudioAnimastorReference"
273
+ ],
274
+ "python_requirements": [
275
+ "faster-whisper==1.2.1",
276
+ "ctranslate2==4.6.0"
277
+ ],
278
+ "provenance": {
279
+ "workflows": [
280
+ "tts-qwen-voice-reference",
281
+ "tts-qwen-voice-transcribe"
282
+ ],
283
+ "evidence": "animastor-worker comfyui-nodes/animastor-voice-ref (MIT); animastor-docs architecture/VOICE_REFERENCES.md"
284
+ },
285
+ "notes": [
286
+ "Needs the ffmpeg binary on PATH (normalisation to WAV pcm_s16le mono 24 kHz).",
287
+ "faster-whisper device=auto: CUDA float16, else CPU int8 (recorded in the candidate metadata). The ctranslate2 4.6.0 CUDA path on a V100 (sm_70) is NOT verified yet — live check step in reports/2026-11-12/voice-references.md.",
288
+ "Installed from a SUBDIRECTORY of the repository (install.source.subdirectory); the installer writes .animastor-source.json (repository + commit) into the node folder so the pinned version stays verifiable."
289
+ ]
290
+ },
291
+ {
292
+ "id": "model:audio.whisper.faster-whisper-small.config-json",
293
+ "kind": "model",
294
+ "name": "faster-whisper-small/config.json",
295
+ "filename": "config.json",
296
+ "target_dir": "models/whisper/faster-whisper-small",
297
+ "requirement": "required",
298
+ "basis": "known_working",
299
+ "size_bytes_approx": 2370,
300
+ "checksum": {
301
+ "algo": "sha256",
302
+ "value": "b55496ac7940a7ae47d2c01eab40edfd8701feec1229d9cce3b40014383fb828"
303
+ },
304
+ "source": {
305
+ "kind": "huggingface",
306
+ "repository": "Systran/faster-whisper-small",
307
+ "file_path": "config.json",
308
+ "revision": "536b0662742c02347bc0e980a01041f333bce120",
309
+ "gated": false,
310
+ "verification": "confirmed",
311
+ "verified_at": "2026-11-12",
312
+ "download_url": "https://huggingface.co/Systran/faster-whisper-small/resolve/536b0662742c02347bc0e980a01041f333bce120/config.json"
313
+ },
314
+ "provenance": {
315
+ "workflows": [
316
+ "tts-qwen-voice-reference",
317
+ "tts-qwen-voice-transcribe"
318
+ ],
319
+ "node_refs": [
320
+ "1009 SaveAudioAnimastorReference.whisper_model=small"
321
+ ]
322
+ }
323
+ },
324
+ {
325
+ "id": "model:audio.whisper.faster-whisper-small.model-bin",
326
+ "kind": "model",
327
+ "name": "faster-whisper-small/model.bin",
328
+ "filename": "model.bin",
329
+ "target_dir": "models/whisper/faster-whisper-small",
330
+ "requirement": "required",
331
+ "basis": "known_working",
332
+ "size_bytes_approx": 483546902,
333
+ "checksum": {
334
+ "algo": "sha256",
335
+ "value": "3e305921506d8872816023e4c273e75d2419fb89b24da97b4fe7bce14170d671"
336
+ },
337
+ "source": {
338
+ "kind": "huggingface",
339
+ "repository": "Systran/faster-whisper-small",
340
+ "file_path": "model.bin",
341
+ "revision": "536b0662742c02347bc0e980a01041f333bce120",
342
+ "gated": false,
343
+ "verification": "confirmed",
344
+ "verified_at": "2026-11-12",
345
+ "download_url": "https://huggingface.co/Systran/faster-whisper-small/resolve/536b0662742c02347bc0e980a01041f333bce120/model.bin"
346
+ },
347
+ "provenance": {
348
+ "workflows": [
349
+ "tts-qwen-voice-reference",
350
+ "tts-qwen-voice-transcribe"
351
+ ],
352
+ "node_refs": [
353
+ "1009 SaveAudioAnimastorReference.whisper_model=small"
354
+ ]
355
+ }
356
+ },
357
+ {
358
+ "id": "model:audio.whisper.faster-whisper-small.tokenizer-json",
359
+ "kind": "model",
360
+ "name": "faster-whisper-small/tokenizer.json",
361
+ "filename": "tokenizer.json",
362
+ "target_dir": "models/whisper/faster-whisper-small",
363
+ "requirement": "required",
364
+ "basis": "known_working",
365
+ "size_bytes_approx": 2203239,
366
+ "checksum": {
367
+ "algo": "sha256",
368
+ "value": "fb7b63191e9bb045082c79fd742a3106a12c99513ab30df4a0d47fa6cb6fd0ab"
369
+ },
370
+ "source": {
371
+ "kind": "huggingface",
372
+ "repository": "Systran/faster-whisper-small",
373
+ "file_path": "tokenizer.json",
374
+ "revision": "536b0662742c02347bc0e980a01041f333bce120",
375
+ "gated": false,
376
+ "verification": "confirmed",
377
+ "verified_at": "2026-11-12",
378
+ "download_url": "https://huggingface.co/Systran/faster-whisper-small/resolve/536b0662742c02347bc0e980a01041f333bce120/tokenizer.json"
379
+ },
380
+ "provenance": {
381
+ "workflows": [
382
+ "tts-qwen-voice-reference",
383
+ "tts-qwen-voice-transcribe"
384
+ ],
385
+ "node_refs": [
386
+ "1009 SaveAudioAnimastorReference.whisper_model=small"
387
+ ]
388
+ }
389
+ },
390
+ {
391
+ "id": "model:audio.whisper.faster-whisper-small.vocabulary-txt",
392
+ "kind": "model",
393
+ "name": "faster-whisper-small/vocabulary.txt",
394
+ "filename": "vocabulary.txt",
395
+ "target_dir": "models/whisper/faster-whisper-small",
396
+ "requirement": "required",
397
+ "basis": "known_working",
398
+ "size_bytes_approx": 459861,
399
+ "checksum": {
400
+ "algo": "sha256",
401
+ "value": "34ce3fe1c5041027b3f8d42912270993f986dbc4bb34cf27f951e34a1e453913"
402
+ },
403
+ "source": {
404
+ "kind": "huggingface",
405
+ "repository": "Systran/faster-whisper-small",
406
+ "file_path": "vocabulary.txt",
407
+ "revision": "536b0662742c02347bc0e980a01041f333bce120",
408
+ "gated": false,
409
+ "verification": "confirmed",
410
+ "verified_at": "2026-11-12",
411
+ "download_url": "https://huggingface.co/Systran/faster-whisper-small/resolve/536b0662742c02347bc0e980a01041f333bce120/vocabulary.txt"
412
+ },
413
+ "provenance": {
414
+ "workflows": [
415
+ "tts-qwen-voice-reference",
416
+ "tts-qwen-voice-transcribe"
417
+ ],
418
+ "node_refs": [
419
+ "1009 SaveAudioAnimastorReference.whisper_model=small"
420
+ ]
421
+ }
422
+ },
249
423
  {
250
424
  "id": "custom-node:comfyui-manager",
251
425
  "kind": "custom_node",
@@ -278,13 +452,13 @@
278
452
  "artifacts": [
279
453
  {
280
454
  "id": "workflow:tts-qwen-narrator",
281
- "name": "Qwen TTS narrator",
455
+ "name": "Qwen TTS narrator (voice clone)",
282
456
  "filename": "tts-qwen-narrator.json",
283
457
  "requirement": "optional",
284
458
  "basis": "optional",
285
459
  "editable": true,
286
460
  "target_dir": "user/default/workflows/animastor/audio",
287
- "baseline_sha256": "87180aee01288be6e23240b2d873ce2d451f63cf404dec331a3b221bb9f8b8c1",
461
+ "baseline_sha256": "3c99707a3e78c2432bcbd6ec7be3dc8638c636185c79eabb732d671768ac561e",
288
462
  "source": {
289
463
  "kind": "animastor",
290
464
  "repository_path": "backend/ai/workflows/tts-qwen-narrator.json",
@@ -298,18 +472,18 @@
298
472
  "evidence": "backend/ai/workflows/tts-qwen-narrator.json (production workflow)"
299
473
  },
300
474
  "notes": [
301
- "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"
475
+ "sha256 of the canonical production workflow file in this repository (computed 2026-11-12); a differing hash on the target machine means the user customized it — that is allowed"
302
476
  ]
303
477
  },
304
478
  {
305
479
  "id": "workflow:tts-qwen-dialogue",
306
- "name": "Qwen TTS dialogue",
480
+ "name": "Qwen TTS dialogue (voice clone)",
307
481
  "filename": "tts-qwen-dialogue.json",
308
482
  "requirement": "optional",
309
483
  "basis": "optional",
310
484
  "editable": true,
311
485
  "target_dir": "user/default/workflows/animastor/audio",
312
- "baseline_sha256": "7dcdc6997d36aaeb1a54e1578c69f0c534be29698c7a7b48813f637c740e69db",
486
+ "baseline_sha256": "48db08cfcad19c25fd8bbb8d17e0cd0324a20afd012bcdeb085f5f672d5672da",
313
487
  "source": {
314
488
  "kind": "animastor",
315
489
  "repository_path": "backend/ai/workflows/tts-qwen-dialogue.json",
@@ -323,7 +497,57 @@
323
497
  "evidence": "backend/ai/workflows/tts-qwen-dialogue.json (production workflow)"
324
498
  },
325
499
  "notes": [
326
- "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"
500
+ "sha256 of the canonical production workflow file in this repository (computed 2026-11-12); a differing hash on the target machine means the user customized it — that is allowed"
501
+ ]
502
+ },
503
+ {
504
+ "id": "workflow:tts-qwen-voice-reference",
505
+ "name": "Qwen voice reference candidate",
506
+ "filename": "tts-qwen-voice-reference.json",
507
+ "requirement": "optional",
508
+ "basis": "optional",
509
+ "editable": true,
510
+ "target_dir": "user/default/workflows/animastor/audio",
511
+ "baseline_sha256": "f2df67267445bbf48df60dbd8219ef70b3c7db1ab808d99fadff33275392ef9e",
512
+ "source": {
513
+ "kind": "animastor",
514
+ "repository_path": "backend/ai/workflows/tts-qwen-voice-reference.json",
515
+ "endpoint": "GET {HUB_URL}/workflow/tts-qwen-voice-reference",
516
+ "verification": "confirmed"
517
+ },
518
+ "provenance": {
519
+ "workflows": [
520
+ "tts-qwen-voice-reference"
521
+ ],
522
+ "evidence": "backend/ai/workflows/tts-qwen-voice-reference.json (production workflow)"
523
+ },
524
+ "notes": [
525
+ "sha256 of the canonical production workflow file in this repository (computed 2026-11-12); a differing hash on the target machine means the user customized it — that is allowed"
526
+ ]
527
+ },
528
+ {
529
+ "id": "workflow:tts-qwen-voice-transcribe",
530
+ "name": "Uploaded voice sample → reference",
531
+ "filename": "tts-qwen-voice-transcribe.json",
532
+ "requirement": "optional",
533
+ "basis": "optional",
534
+ "editable": true,
535
+ "target_dir": "user/default/workflows/animastor/audio",
536
+ "baseline_sha256": "4df13e1d914cdac97fb552802fb0ccdfedb3926f0fe3a1333a8e1539dd2cb12b",
537
+ "source": {
538
+ "kind": "animastor",
539
+ "repository_path": "backend/ai/workflows/tts-qwen-voice-transcribe.json",
540
+ "endpoint": "GET {HUB_URL}/workflow/tts-qwen-voice-transcribe",
541
+ "verification": "confirmed"
542
+ },
543
+ "provenance": {
544
+ "workflows": [
545
+ "tts-qwen-voice-transcribe"
546
+ ],
547
+ "evidence": "backend/ai/workflows/tts-qwen-voice-transcribe.json (production workflow)"
548
+ },
549
+ "notes": [
550
+ "sha256 of the canonical production workflow file in this repository (computed 2026-11-12); a differing hash on the target machine means the user customized it — that is allowed"
327
551
  ]
328
552
  }
329
553
  ]
@@ -338,6 +562,7 @@
338
562
  "worker-cleanup.cjs",
339
563
  "worker-cleanup-journal.cjs",
340
564
  "job-protocol-v2.cjs",
565
+ "worker-logs.cjs",
341
566
  "package.json",
342
567
  "package-lock.json",
343
568
  ".env.example"
@@ -431,14 +656,17 @@
431
656
  }
432
657
  ],
433
658
  "disk_budget": {
434
- "models_bytes_approx": 9052587295,
435
- "note": "≈8.4 GiB of models (audit [5]) plus ComfyUI + venv overhead. Approximate: derived from human-readable audit sizes."
659
+ "models_bytes_approx": 9538799667,
660
+ "note": "≈8.4 GiB Qwen3-TTS repos (audit [5]) + 0.46 GiB faster-whisper small, plus ComfyUI + venv overhead. Approximate."
436
661
  },
437
662
  "open_questions": [
438
663
  "D1: canonical ComfyUI pin — fork c4cfee7 (known-working reference) vs official v0.27.0; golden run required",
439
664
  "D1: canonical torch/CUDA tier — cu128 reference vs cu124",
440
665
  "Open question 5: confirm SaveAudioMP3 belongs to ComfyUI-Qwen3-TTS via /object_info",
441
666
  "Open question 8: ComfyUI-Manager inclusion (D7)",
442
- "Open question 12: minimum VRAM is an estimate (12 GB, hardware.derivation) — measure on a smaller card"
667
+ "Open question 12: minimum VRAM is an estimate (12 GB, hardware.derivation) — measure on a smaller card",
668
+ "VOICE_REFERENCES: confirm LoadAudio (core) on the reference fork c4cfee7 via /object_info",
669
+ "VOICE_REFERENCES: ctranslate2 4.6.0 CUDA path on Tesla V100 (sm_70) — measure; CPU int8 fallback is automatic",
670
+ "VOICE_REFERENCES: qwen-tts pip version on the worker (`pip show qwen-tts`)"
443
671
  ]
444
672
  }
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "manifest_version": "1.0.0",
3
- "revision": "2026.11.07-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": {
@@ -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.11.07-r1",
3
+ "revision": "2026.11.07-r2",
4
4
  "status": "ready",
5
5
  "profile": {
6
6
  "id": "video/ltx-2.3",
@@ -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.9",
3
+ "version": "0.2.11",
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": {
@@ -874,6 +874,28 @@ function nodeDepsFailedResult({ gate, mode }) {
874
874
  };
875
875
  }
876
876
 
877
+ /** installer 0.2.10: install-state worker.bundle_files (fallback files_installed) of THIS dir, or null. */
878
+ function previousBundleFilesFromState(io, statePath, workerDir) {
879
+ try {
880
+ const st = stateStore.loadState(io, statePath);
881
+ return engineMod.previousBundleFilesOf(st && st.components && st.components.worker, workerDir);
882
+ } catch (_) { return null; }
883
+ }
884
+
885
+ /** After a bundle update: record the new bundle file list and the copied files; drop removed ones. */
886
+ function recordWorkerBundle(io, statePath, workerDir, res) {
887
+ try {
888
+ const st = stateStore.loadState(io, statePath);
889
+ const w = st && st.components && st.components.worker;
890
+ if (!w || !w.dir || path.resolve(w.dir) !== path.resolve(workerDir)) return false;
891
+ const removed = new Set(res.files_removed || []);
892
+ w.files_installed = [...new Set([...(w.files_installed || []), ...(res.files_installed || [])])].filter((f) => !removed.has(f));
893
+ if (Array.isArray(res.bundle_files)) w.bundle_files = res.bundle_files.slice();
894
+ stateStore.saveState(io, statePath, st, io.now);
895
+ return true;
896
+ } catch (_) { return false; }
897
+ }
898
+
877
899
  /**
878
900
  * Register a file the installer wrote into the worker dir (uninstall removes
879
901
  * it). Only for the recorded worker of THIS dir; no-op without a state.
@@ -1037,7 +1059,9 @@ async function preflightSelfUpdate(io, {
1037
1059
  try {
1038
1060
  out.bundle = await engineMod.refreshInstalledWorkerBundle(io, {
1039
1061
  workerDir, manifest: manifests[0], repoRoot, hubUrl, log: logger, nodeBin,
1062
+ previousBundleFiles: previousBundleFilesFromState(io, statePath, workerDir),
1040
1063
  });
1064
+ if (out.bundle && out.bundle.status === 'updated') recordWorkerBundle(io, statePath, workerDir, out.bundle);
1041
1065
  } catch (err) {
1042
1066
  out.bundle = { status: 'failed', reason: err.message };
1043
1067
  }
@@ -978,6 +978,7 @@ async function runInstallation(args) {
978
978
  httpFetchText: null, log,
979
979
  update: decisions.apply_fixes !== false,
980
980
  nodeBin,
981
+ previousBundleFiles: previousBundleFilesOf(st.components.worker, workerDir),
981
982
  }));
982
983
  } finally {
983
984
  if (bundleTmp) {
@@ -989,12 +990,19 @@ async function runInstallation(args) {
989
990
  if (bundleRes.ok && bundleRes.value.status === 'installed') {
990
991
  // Ownership is per-file: a pre-existing worker dir keeps its
991
992
  // own files; only what the installer copied is registered.
993
+ const prevW = st.components.worker && st.components.worker.dir
994
+ && path.resolve(st.components.worker.dir) === path.resolve(workerDir) ? st.components.worker : null;
995
+ const removedSet = new Set(bundleRes.value.files_removed || []);
992
996
  st.components.worker = {
993
- owned: bundleRes.value.dir_created === true,
997
+ // a re-run over the installer's own dir keeps its ownership and earlier files
998
+ owned: bundleRes.value.dir_created === true || (prevW ? prevW.owned === true : false),
994
999
  dir: workerDir,
995
- files_installed: bundleRes.value.files_installed || [],
1000
+ files_installed: [...new Set([...(prevW ? prevW.files_installed || [] : []), ...(bundleRes.value.files_installed || [])])]
1001
+ .filter((f) => !removedSet.has(f)),
996
1002
  files_kept: bundleRes.value.files_kept || [],
997
- env_created: null, // finalized by the .env step below
1003
+ // installer 0.2.10: the deployed bundle's file list — the next update removes what it no longer ships
1004
+ bundle_files: bundleRes.value.bundle_files || [],
1005
+ env_created: prevW ? (prevW.env_created ?? null) : null, // finalized by the .env step below
998
1006
  };
999
1007
  }
1000
1008
  state.setArtifact(st, w.id, bundleRes.ok && bundleRes.value.status === 'installed' ? 'installed' : 'failed');
@@ -1315,7 +1323,20 @@ async function runInstallation(args) {
1315
1323
  * behind). A missing installation is left to the regular install step.
1316
1324
  * @returns {Promise<{ status: 'absent'|'current'|'unknown'|'updated'|'failed', have: string|null, want: string|null, files_installed?: string[], reason?: string }>}
1317
1325
  */
1318
- async function refreshInstalledWorkerBundle(io, { workerDir, manifest, repoRoot = null, hubUrl = null, log = null, nodeBin = null }) {
1326
+ /**
1327
+ * installer 0.2.10: the file list of the bundle version on disk, as recorded in
1328
+ * install-state (worker.bundle_files). Installs by 0.2.9 and older recorded only
1329
+ * files_installed (manifest files they copied) — that list is the fallback.
1330
+ * null when the state does not describe THIS worker dir.
1331
+ */
1332
+ function previousBundleFilesOf(w, workerDir) {
1333
+ if (!w || !w.dir || !workerDir || path.resolve(w.dir) !== path.resolve(workerDir)) return null;
1334
+ if (Array.isArray(w.bundle_files)) return w.bundle_files.slice();
1335
+ if (Array.isArray(w.files_installed)) return w.files_installed.filter((f) => f !== worker.NODE_CLASSES_FILE);
1336
+ return null;
1337
+ }
1338
+
1339
+ async function refreshInstalledWorkerBundle(io, { workerDir, manifest, repoRoot = null, hubUrl = null, log = null, nodeBin = null, previousBundleFiles = null }) {
1319
1340
  if (!workerDir || !manifest || !io.fs.existsSync(path.join(workerDir, 'worker.cjs'))) return { status: 'absent', have: null, want: null };
1320
1341
  const srcDir = repoBundleSource.resolveRepoBundleDir(io.fs, repoRoot);
1321
1342
  const have = worker.readPkgVersion(io, workerDir);
@@ -1338,11 +1359,11 @@ async function refreshInstalledWorkerBundle(io, { workerDir, manifest, repoRoot
1338
1359
  if (fetched.bundleDir) { bundleDir = fetched.bundleDir; bundleTmp = fetched.tmpDir; }
1339
1360
  else return { status: 'failed', have, want, reason: `worker bundle fetch failed: ${fetched.reason}` };
1340
1361
  }
1341
- const r = worker.installWorkerBundle(io, { workerDir, manifest, repoRoot, bundleDir, hubUrl, httpFetchText: null, log, update: true, nodeBin });
1362
+ const r = worker.installWorkerBundle(io, { workerDir, manifest, repoRoot, bundleDir, hubUrl, httpFetchText: null, log, update: true, nodeBin, previousBundleFiles });
1342
1363
  if (r.status !== 'installed') return { status: 'failed', have, want, reason: r.reason || r.status };
1343
1364
  const now = worker.readPkgVersion(io, workerDir);
1344
1365
  if (now !== want) return { status: 'failed', have, want, reason: `bundle is ${now} after the update, expected ${want}` };
1345
- return { status: 'updated', have, want, files_installed: r.files_installed || [] };
1366
+ return { status: 'updated', have, want, files_installed: r.files_installed || [], bundle_files: r.bundle_files || [], files_removed: r.files_removed || [] };
1346
1367
  } catch (err) {
1347
1368
  return { status: 'failed', have, want, reason: err.message };
1348
1369
  } finally {
@@ -1712,6 +1733,7 @@ module.exports = {
1712
1733
  autoPickComfyPort,
1713
1734
  platformComfyMissingChecks,
1714
1735
  refreshInstalledWorkerBundle,
1736
+ previousBundleFilesOf,
1715
1737
  writeNodeClasses: worker.writeNodeClasses,
1716
1738
  desiredEnvWiring,
1717
1739
  endToEndChecks,
@@ -58,6 +58,9 @@ function pipInstallRequirements(io, { root, reqPath, python, torchSpec, log = nu
58
58
  * retry a broken deps state would never heal).
59
59
  * @returns {{ status: 'installed'|'blocked'|'failed', origin?, reason?, directory? }}
60
60
  */
61
+ /** marker written into a node installed from a repository subdirectory (probe reads it) */
62
+ const SOURCE_MARKER = '.animastor-source.json';
63
+
61
64
  function installCustomNode(io, { root, dep, python = null, torchSpec = null, retryDeps = false, log = null }) {
62
65
  const src = (dep.install && dep.install.source) || {};
63
66
  const dirName = (dep.install && dep.install.directory) || dep.name;
@@ -84,15 +87,51 @@ function installCustomNode(io, { root, dep, python = null, torchSpec = null, ret
84
87
  return { status: 'installed', origin: 'pre-existing', directory: dirName, reason: 'already present — kept as-is' };
85
88
  }
86
89
 
87
- let r = io.exec('git', ['clone', src.repository, target]);
88
- if (r.code !== 0) {
89
- return { status: 'failed', reason: `git clone ${src.repository} failed: ${String(r.stderr || r.error).slice(-300)}` };
90
- }
91
-
92
- if (src.commit) {
93
- r = io.exec('git', ['-C', target, 'checkout', src.commit]);
90
+ if (src.subdirectory) {
91
+ // 0.2.11 — a node that lives in a SUBDIRECTORY of a repository (e.g.
92
+ // animastor-worker/comfyui-nodes/animastor-voice-ref): clone OUTSIDE
93
+ // custom_nodes (ComfyUI would load the whole checkout as a node),
94
+ // check out the pin, copy the subdirectory, record the source.
95
+ const sub = String(src.subdirectory);
96
+ if (path.isAbsolute(sub) || sub.split(/[\\/]/).includes('..')) {
97
+ return { status: 'blocked', reason: `bad subdirectory ${JSON.stringify(sub)} for ${dep.id}` };
98
+ }
99
+ if (!src.commit) {
100
+ return { status: 'blocked', reason: `${dep.id}: a subdirectory source needs a pinned commit` };
101
+ }
102
+ const staging = path.join(root, '.animastor-node-sources', dirName);
103
+ io.fs.rmSync(staging, { recursive: true, force: true });
104
+ io.fs.mkdirSync(path.dirname(staging), { recursive: true });
105
+ let c = io.exec('git', ['clone', src.repository, staging]);
106
+ if (c.code !== 0) {
107
+ io.fs.rmSync(staging, { recursive: true, force: true });
108
+ return { status: 'failed', reason: `git clone ${src.repository} failed: ${String(c.stderr || c.error).slice(-300)}` };
109
+ }
110
+ c = io.exec('git', ['-C', staging, 'checkout', src.commit]);
111
+ if (c.code !== 0) {
112
+ io.fs.rmSync(staging, { recursive: true, force: true });
113
+ return { status: 'failed', reason: `git checkout ${src.commit} failed: ${String(c.stderr).slice(-300)}` };
114
+ }
115
+ const from = path.join(staging, sub);
116
+ if (!io.fs.isDirectory(from)) {
117
+ io.fs.rmSync(staging, { recursive: true, force: true });
118
+ return { status: 'failed', reason: `subdirectory ${sub} not found in ${src.repository}@${src.commit}` };
119
+ }
120
+ c = io.exec('cp', ['-a', from, target]);
121
+ io.fs.rmSync(staging, { recursive: true, force: true });
122
+ if (c.code !== 0) return { status: 'failed', reason: `copy of ${sub} failed: ${String(c.stderr || c.error).slice(-300)}` };
123
+ io.fs.writeFileSync(path.join(target, SOURCE_MARKER), JSON.stringify({ repository: src.repository, commit: src.commit, subdirectory: sub }, null, 2) + '\n');
124
+ } else {
125
+ let r = io.exec('git', ['clone', src.repository, target]);
94
126
  if (r.code !== 0) {
95
- return { status: 'failed', reason: `git checkout ${src.commit} failed: ${String(r.stderr).slice(-300)}` };
127
+ return { status: 'failed', reason: `git clone ${src.repository} failed: ${String(r.stderr || r.error).slice(-300)}` };
128
+ }
129
+
130
+ if (src.commit) {
131
+ r = io.exec('git', ['-C', target, 'checkout', src.commit]);
132
+ if (r.code !== 0) {
133
+ return { status: 'failed', reason: `git checkout ${src.commit} failed: ${String(r.stderr).slice(-300)}` };
134
+ }
96
135
  }
97
136
  }
98
137
 
@@ -87,7 +87,17 @@ function probeCuda(io) {
87
87
  }
88
88
 
89
89
  function gitInfo(io, dir) {
90
- if (!io.fs.isDirectory(path.join(dir, '.git'))) return null;
90
+ if (!io.fs.isDirectory(path.join(dir, '.git'))) {
91
+ // 0.2.11: a node copied from a repository subdirectory carries its source
92
+ // in .animastor-source.json (engine/nodes.js) — the pin stays verifiable
93
+ const marker = path.join(dir, '.animastor-source.json');
94
+ if (!io.fs.existsSync(marker)) return null;
95
+ try {
96
+ const m = JSON.parse(io.fs.readFileSync(marker, 'utf8'));
97
+ if (m && typeof m.repository === 'string' && typeof m.commit === 'string') return { repository: m.repository, commit: m.commit, tag: null };
98
+ } catch (_) { /* unreadable marker → plain directory */ }
99
+ return null;
100
+ }
91
101
  const remote = io.exec('git', ['-C', dir, 'remote', 'get-url', 'origin']);
92
102
  const head = io.exec('git', ['-C', dir, 'rev-parse', 'HEAD']);
93
103
  const tag = io.exec('git', ['-C', dir, 'describe', '--tags', '--exact-match']);
@@ -599,6 +609,7 @@ module.exports = {
599
609
  probeNvidiaGpu,
600
610
  probeAmdGpu,
601
611
  probeComfyui,
612
+ probeCustomNodes,
602
613
  probeWorker,
603
614
  parseEnvKeys,
604
615
  renderDetection,
@@ -103,9 +103,53 @@ function ensureWorkerDependencies(io, { workerDir, nodeBin = null }) {
103
103
  * already on disk and were kept (files_kept).
104
104
  * @returns {{ status, files, files_installed, files_kept, dir_created, updated_from?, reason? }}
105
105
  */
106
- function installWorkerBundle(io, { workerDir, manifest, repoRoot = null, bundleDir = null, hubUrl = null, httpFetchText = null, log = null, update = true, nodeBin = null }) {
106
+ // ── installer 0.2.10: the bundle source is copied WHOLE ─────────────────────
107
+ // 0.2.9 copied only manifest.worker_bundle.files; bundle 2.4.1 added
108
+ // worker-logs.cjs (required by worker.cjs) → «Cannot find module
109
+ // './worker-logs.cjs'» after an update. The source dir (hub bundle or the
110
+ // installer's bundled copy) IS the bundle: every regular file is deployed;
111
+ // the manifest list is only the minimal presence check. Never copied: .env
112
+ // and .env.* (except .env.example), node_modules/, .git/, logs/.
113
+ const BUNDLE_SKIP_DIRS = new Set(['node_modules', '.git', 'logs']);
114
+ /** Files of a bundle that are never removed as «stale» (user data / installer-written). */
115
+ const BUNDLE_PROTECTED = new Set(['.env', 'node-classes.json']);
116
+
117
+ /** io.fs.statSync returns booleans; node fs returns methods — accept both. */
118
+ function statIs(st, what) {
119
+ if (!st) return false;
120
+ const v = st[what];
121
+ return typeof v === 'function' ? v.call(st) === true : v === true;
122
+ }
123
+
124
+ function isBundleFile(relPath) {
125
+ const base = relPath.split('/').pop();
126
+ if (base === '.env' || /^\.env\..+$/.test(base)) return base === '.env.example';
127
+ return true;
128
+ }
129
+
130
+ /** Sorted relative paths of every deployable file of a bundle dir. */
131
+ function listBundleFiles(io, dir) {
132
+ const out = [];
133
+ const walk = (rel) => {
134
+ const abs = rel ? path.join(dir, rel) : dir;
135
+ let names;
136
+ try { names = io.fs.readdirSync(abs); } catch (_) { return; }
137
+ for (const name of names) {
138
+ const r = rel ? `${rel}/${name}` : name;
139
+ const p = path.join(dir, r);
140
+ let st;
141
+ try { st = io.fs.statSync(p); } catch (_) { continue; }
142
+ if (statIs(st, 'isDirectory')) { if (!BUNDLE_SKIP_DIRS.has(name)) walk(r); continue; }
143
+ if (statIs(st, 'isFile') && isBundleFile(r)) out.push(r);
144
+ }
145
+ };
146
+ walk('');
147
+ return out.sort();
148
+ }
149
+
150
+ function installWorkerBundle(io, { workerDir, manifest, repoRoot = null, bundleDir = null, hubUrl = null, httpFetchText = null, log = null, update = true, nodeBin = null, previousBundleFiles = null }) {
107
151
  const wb = manifest.worker_bundle || {};
108
- const files = wb.files || [];
152
+ const manifestFiles = wb.files || [];
109
153
  const dirCreated = !io.fs.existsSync(workerDir);
110
154
  if (dirCreated) io.fs.mkdirSync(workerDir, { recursive: true });
111
155
 
@@ -118,17 +162,22 @@ function installWorkerBundle(io, { workerDir, manifest, repoRoot = null, bundleD
118
162
  const installed = [];
119
163
  const kept = [];
120
164
  const failed = [];
165
+ const removed = [];
121
166
 
122
- for (const f of files) {
167
+ // every file of the source bundle(s), manifest-listed or not; a file only
168
+ // the hub bundle has (repo copy partial) still comes from the hub bundle
169
+ const sources = [fromRepo ? repoBundleDir : null, bundleDir].filter(Boolean);
170
+ const sourceOf = new Map();
171
+ for (const dir of sources) for (const f of listBundleFiles(io, dir)) if (!sourceOf.has(f)) sourceOf.set(f, dir);
172
+ const bundleFiles = [...new Set([...sourceOf.keys(), ...manifestFiles])].sort();
173
+
174
+ for (const f of bundleFiles) {
123
175
  const dest = path.join(workerDir, f);
124
176
  if (io.fs.existsSync(dest) && !outdated) { kept.push(f); continue; }
125
- if (fromRepo && io.fs.existsSync(path.join(repoBundleDir, f))) {
126
- io.fs.copyFileSync(path.join(repoBundleDir, f), dest);
127
- installed.push(f);
128
- continue;
129
- }
130
- if (bundleDir && io.fs.existsSync(path.join(bundleDir, f))) {
131
- io.fs.copyFileSync(path.join(bundleDir, f), dest);
177
+ const src = sourceOf.get(f);
178
+ if (src) {
179
+ io.fs.mkdirSync(path.dirname(dest), { recursive: true });
180
+ io.fs.copyFileSync(path.join(src, f), dest);
132
181
  installed.push(f);
133
182
  continue;
134
183
  }
@@ -136,10 +185,28 @@ function installWorkerBundle(io, { workerDir, manifest, repoRoot = null, bundleD
136
185
  failed.push(f);
137
186
  }
138
187
 
188
+ // minimal presence check: everything the manifest names must be on disk
189
+ const missing = manifestFiles.filter((f) => !io.fs.existsSync(path.join(workerDir, f)));
190
+ for (const f of missing) if (!failed.includes(f)) failed.push(f);
139
191
  if (failed.length > 0) {
140
192
  return { status: 'failed', files: installed, files_installed: installed, files_kept: kept, dir_created: dirCreated, reason: `could not obtain bundle files: ${failed.join(', ')} (no repo checkout, no hub bundle)` };
141
193
  }
142
194
 
195
+ // an UPDATE removes the files of the previous bundle version that the new
196
+ // one no longer ships — only files the installer itself recorded
197
+ // (install-state worker.bundle_files), never .env / node-classes.json
198
+ if (outdated && Array.isArray(previousBundleFiles) && sources.length > 0) {
199
+ const now = new Set(bundleFiles);
200
+ for (const f of previousBundleFiles) {
201
+ if (typeof f !== 'string' || !f || now.has(f) || BUNDLE_PROTECTED.has(f) || f.includes('..') || path.isAbsolute(f)) continue;
202
+ const p = path.join(workerDir, f);
203
+ try {
204
+ if (io.fs.existsSync(p) && statIs(io.fs.statSync(p), 'isFile')) { io.fs.unlinkSync(p); removed.push(f); }
205
+ } catch (_) { /* best effort */ }
206
+ }
207
+ if (removed.length && log) log.info(`worker bundle: removed ${removed.length} file(s) of ${installedVersion} not in ${sourceVersion}: ${removed.join(', ')}`);
208
+ }
209
+
143
210
  const deps = ensureWorkerDependencies(io, { workerDir, nodeBin });
144
211
  if (deps.ran && log) log.info(`worker dependencies installed (${deps.deps.join(', ')})`);
145
212
 
@@ -149,6 +216,9 @@ function installWorkerBundle(io, { workerDir, manifest, repoRoot = null, bundleD
149
216
  }
150
217
  return {
151
218
  status: 'installed', files: installed, files_installed: installed, files_kept: kept, dir_created: dirCreated,
219
+ // install-state worker.bundle_files: what the NEXT update may remove as stale
220
+ bundle_files: sources.length > 0 ? bundleFiles : (Array.isArray(previousBundleFiles) ? previousBundleFiles : bundleFiles),
221
+ files_removed: removed,
152
222
  version: readPkgVersion(io, workerDir),
153
223
  ...(outdated ? { updated_from: installedVersion } : {}),
154
224
  };
@@ -331,9 +401,50 @@ async function verifyRegistration(io, { hubUrl, token, expectedType = null }) {
331
401
  * DECLARES (the canonical bundle declares none — the old hard-coded
332
402
  * node-fetch probe made every zero-dependency install "unstartable").
333
403
  */
404
+ const LOCAL_REQUIRE_RE = /require\(\s*(["'])(\.{1,2}\/[^"']+)\1\s*\)/g;
405
+
406
+ /**
407
+ * installer 0.2.10: every local `require('./…')` reachable from worker.cjs
408
+ * must exist on disk — otherwise the worker dies at start with «Cannot find
409
+ * module» (bundle 2.4.1 / worker-logs.cjs). Pure over io.fs.
410
+ * @returns {string[]} missing modules as written in the source (e.g. './worker-logs.cjs')
411
+ */
412
+ function missingLocalRequires(io, workerDir, entry = 'worker.cjs') {
413
+ const missing = [];
414
+ const seen = new Set();
415
+ const queue = [path.join(workerDir, entry)];
416
+ const resolve = (from, spec) => {
417
+ const base = path.resolve(path.dirname(from), spec);
418
+ for (const c of [base, `${base}.js`, `${base}.cjs`, `${base}.json`, path.join(base, 'index.js')]) {
419
+ try { if (io.fs.existsSync(c) && statIs(io.fs.statSync(c), 'isFile')) return c; } catch (_) { /* next */ }
420
+ }
421
+ return null;
422
+ };
423
+ while (queue.length) {
424
+ const file = queue.shift();
425
+ if (seen.has(file)) continue;
426
+ seen.add(file);
427
+ let src;
428
+ try { src = io.fs.readFileSync(file, 'utf8'); } catch (_) { continue; }
429
+ if (typeof src !== 'string') src = String(src);
430
+ LOCAL_REQUIRE_RE.lastIndex = 0;
431
+ let m;
432
+ while ((m = LOCAL_REQUIRE_RE.exec(src)) !== null) {
433
+ const hit = resolve(file, m[2]);
434
+ if (!hit) { if (!missing.includes(m[2])) missing.push(m[2]); continue; }
435
+ if (/\.(c?js)$/.test(hit) && path.resolve(hit).startsWith(path.resolve(workerDir))) queue.push(hit);
436
+ }
437
+ }
438
+ return missing;
439
+ }
440
+
334
441
  function checkWorkerCanStart(io, { workerDir, nodeBin = 'node' }) {
335
442
  const workerCjs = path.join(workerDir, 'worker.cjs');
336
443
  if (!io.fs.existsSync(workerCjs)) return { ok: false, reason: 'worker.cjs missing' };
444
+ const missing = missingLocalRequires(io, workerDir);
445
+ if (missing.length > 0) {
446
+ return { ok: false, reason: `worker bundle incomplete: ${missing.join(', ')} missing in ${workerDir} (required by worker.cjs) — re-run the installer to redeploy the bundle`, missing };
447
+ }
337
448
  const syntax = io.exec(nodeBin, ['--check', workerCjs]);
338
449
  if (syntax.code !== 0) return { ok: false, reason: `worker.cjs failed syntax check: ${String(syntax.stderr).slice(-200)}` };
339
450
  const deps = Object.keys(declaredDependencies(io, workerDir));
@@ -449,7 +560,7 @@ function workerProcessStartMs(io, { workerDir, pid, platformAdapter = null }) {
449
560
 
450
561
  /** Files whose change requires a worker restart: .env and the bundle (installer 0.2.8). */
451
562
  const WORKER_CONFIG_FILES = Object.freeze(['.env', 'package.json', 'worker.cjs', 'worker-env.cjs',
452
- 'job-protocol-v2.cjs', 'worker-cleanup.cjs', 'worker-cleanup-journal.cjs']);
563
+ 'job-protocol-v2.cjs', 'worker-cleanup.cjs', 'worker-cleanup-journal.cjs', 'worker-logs.cjs']);
453
564
 
454
565
  /**
455
566
  * Configuration files (.env, bundle files) modified AFTER the worker `pid`
@@ -1077,6 +1188,8 @@ function writeNodeClasses(io, { workerDir, manifests, log = null, version = null
1077
1188
 
1078
1189
  module.exports = {
1079
1190
  installWorkerBundle,
1191
+ listBundleFiles,
1192
+ missingLocalRequires,
1080
1193
  ensureWorkerDependencies,
1081
1194
  declaredDependencies,
1082
1195
  readPkgVersion,