feat: add configurable parallel video uploads

Allow up to four video upload connections while keeping one connection as the default. Preserve existing messaging interfaces and add configuration controls, reliable failure handling, and upload diagnostics.

Closes #569
This commit is contained in:
DrSmoothl committed 2026-10-24 22:58:46 +08:00
1 parent 3bd74acb60
commit 5c9328206f
18 files changed
+1182 -217

No files matched your search

+17
View File
@@ -679,6 +679,23 @@ describe('prepareRestorePlan — strict semantic preflight', () => {
expect(canonical.webuiTls.enabled).toBe(false);
});
it('preserves video concurrency in backups and rejects invalid restored values', () => {
const prepare = (videoUploadConcurrency: number) =>
prepareRestorePlan(
backupWith({
'snowluma.json': {
encoding: 'utf8',
data: JSON.stringify({ videoUploadConcurrency }),
},
}),
{ restoreCredentials: false, readCurrent: () => null },
);
expect(JSON.parse(prepare(4).restore[0].data.toString('utf8')).videoUploadConcurrency).toBe(
4,
);
expect(() => prepare(5)).toThrow(/videoUploadConcurrency/);
});
it('accepts owner-supported whitespace trimming without accepting changed values', () => {
const prepared = prepareRestorePlan(
backupWith({