feat: stream hashing y entradas en archivos

- Añade `computeHashesFromStream` para hashing desde streams
- Añade `streamArchiveEntry` e integra en `importDirectory` (path codificado con ::)
- Extiende `scanDirectory` para exponer entradas internas, normaliza rutas POSIX y evita traversal; `ARCHIVE_MAX_ENTRIES` configurable
- Limpia listeners en hashing y mejora robustez/logging
- Añade tests unitarios e integración; actualiza mocks a `Mock` types
- CI: instala `unzip` junto a `p7zip` para soportar tests de integración
This commit is contained in:
2026-02-09 19:49:56 +01:00
parent 7ca465fb73
commit 79c42fad55
7 changed files with 187 additions and 50 deletions

View File

@@ -30,11 +30,11 @@ jobs:
- name: Install dependencies
run: yarn install --immutable
- name: Install native archive tools (p7zip, chdman)
- name: Install native archive tools (p7zip, unzip, chdman)
run: |
sudo apt-get update
# 7z / p7zip
sudo apt-get install -y p7zip-full p7zip-rar || true
sudo apt-get install -y p7zip-full p7zip-rar unzip || true
# chdman (intentar instalar desde paquetes disponibles: mame-tools o mame)
sudo apt-get install -y mame-tools || sudo apt-get install -y mame || true
continue-on-error: true
@@ -66,10 +66,10 @@ jobs:
- name: Install dependencies
run: yarn install --immutable
- name: Install native archive tools (p7zip, chdman)
- name: Install native archive tools (p7zip, unzip, chdman)
run: |
sudo apt-get update
sudo apt-get install -y p7zip-full p7zip-rar || true
sudo apt-get install -y p7zip-full p7zip-rar unzip || true
sudo apt-get install -y mame-tools || sudo apt-get install -y mame || true
continue-on-error: true