Commit Graph
6 Commits
Author SHA1 Message Date
gsalucci 9475c4b6df fix(doctor): riconosce i modelli split .ckpt + .ckpt-tensordata
Draw Things distribuisce alcuni checkpoint in due file: un .ckpt di
pochi MB con la sola intestazione, e un .ckpt-tensordata con i pesi
(5-6 GB). Il check sui modelli usava una soglia fissa di 64 MB sul
solo .ckpt e segnalava quindi questi modelli come 'scaricati a metà',
anche quando i pesi erano integri accanto a lui.

Prima di dichiarare un modello troncato, il check ora guarda il
fratello <file>.ckpt-tensordata: se esiste ed è di taglia reale, il
modello è intero e la dimensione riportata è quella dei pesi.

Era la causa del messaggio 'manca qualche modello' persistente a
disco e installazione corretti.
2026-08-27 16:01:30 +02:00
gsalucci b5badf7fce Merge pull request 'Fix/doctor engine level and test deps' (#2) from fix/doctor-engine-level-and-test-deps into main
Reviewed-on: #2
2026-08-27 15:52:35 +02:00
gsalucci 898b8d74af test(e2e): add jiti devDep, derive repo root from import.meta.url
'npm run test:e2e' was failing before it even started:
the four tests import { createJiti } from 'jiti' but jiti was never
declared in package.json, so Node threw ERR_MODULE_NOT_FOUND on the
first import. Adding it to devDependencies fixes the loader.

The same tests hard-coded the original developer's path
('/home/moze/Sorgenti/pi-imgen'), so even with jiti installed they
would have failed on any other checkout. Replacing it with
dirname(dirname(dirname(fileURLToPath(import.meta.url)))) lets the
suite run from wherever the repo is cloned.
2026-08-27 15:52:04 +02:00
gsalucci 8d14a4f23e fix(doctor): engine presence is info, never warn or error
The resident gRPC daemon is an optimisation, not a requirement:
draw-things-cli works fine cold (it just reloads 6GB of weights per call)
and index.ts's waitForServer() warms it on the first generation anyway.
A doctor that lists the engine under 'Qualcosa non va' makes a working
install look broken every morning and pushes the user to chase a non-issue.

All four reachable branches of checkServer — disabled, binaryMissing,
notExecutable, stopped — now return level: 'info'. The fix hint stays in
the report so the user can still copy the manual start command when they
want to.
2026-08-27 15:52:00 +02:00
gsalucci a668712bcf Merge pull request 'fixes' (#1) from fix/poster-quality-and-tui-progress into main
Reviewed-on: #1
2026-08-27 15:36:49 +02:00
gsalucci 38c7263068 fixes 2026-08-27 15:26:55 +02:00