Commit Graph

5 Commits

Author SHA1 Message Date
Dash
9e294565fd fix(plugin): admit 8 GiB downloads and resume after page replacement
Signed-off-by: Dash <125997726+dashhuang@users.noreply.github.com>
2026-09-28 23:41:17 +13:00
Dash
1f91e60ea5 Merge main and set plugin download budget to two hours
Signed-off-by: Dash <125997726+dashhuang@users.noreply.github.com>
2026-09-28 23:01:20 +13:00
Dash
eb319ffeae merge: rebase plugin downloads onto the unified downloader (#5110)
Merge dash/unified-downloads into this branch and port the plugin download
API onto its transport instead of keeping a second streaming transport.

- Drop downloader/streaming.ts: #5110's transport already pulls one chunk
  per awaited disk write, validates every redirect hop (isUrlAllowed),
  enforces maxBytes and supports cancel/resume.
- Add an optional `request` injection point (single hop, with release) so
  plugin URLs keep using guardedOutboundFetch (DNS pinning, HTTPS only,
  no credentials); Electron net remains the default for host downloads.
- A DownloadError thrown by the injected request is final (e.g. owner
  revoked after DNS resolution) instead of being retried as NETWORK.
- Add onVerifying to the unified transport and createDownloader() to the
  facade (same validation/normalization as download()).
- Cap persisted ETag/Last-Modified before echoing them back as If-Range.
- Port the streaming tests to requestInjection.test.ts against the unified
  transport; update downloadSlot/scheduler tests and the dev-rules doc.

Signed-off-by: Dash <125997726+dashhuang@users.noreply.github.com>
2026-09-27 13:30:43 +13:00
Dash
970e4cdad8 fix(plugins): bound downloads and hand artifacts through host receipts
Signed-off-by: Dash <125997726+dashhuang@users.noreply.github.com>
2026-09-27 06:31:30 +13:00
Dash
f543f1ef5c feat(plugins): 开放可取消下载与进度接口
Signed-off-by: Dash <125997726+dashhuang@users.noreply.github.com>
2026-09-27 06:31:30 +13:00