Skip to content

Allow Cloudflare Worker downloads from novel URLs - #18

Draft
Rumia-Channel wants to merge 1 commit into
refactor-platform-abstractionfrom
feature-worker-url-download
Draft

Allow Cloudflare Worker downloads from novel URLs#18
Rumia-Channel wants to merge 1 commit into
refactor-platform-abstractionfrom
feature-worker-url-download

Conversation

@Rumia-Channel

@Rumia-Channel Rumia-Channel commented Sep 2, 2026

Copy link
Copy Markdown
Owner

Cloudflare Worker の /api/jobs から、既存ライブラリ ID / ncode だけでなく HTTP(S) の小説 URL を Download ジョブとして投入できるようにします。

  • JobTarget::Url を追加
  • URL を Queue/D1 の durable target として round-trip
  • fragment を除去して active job dedupe を安定化
  • credentials / non-HTTP(S) URL を planner で拒否
  • 既存 Downloader の Worker HTTP transport / rate limiter / persistence 経路をそのまま利用
  • URL normalization / validation / serialization のテストを追加

検証状況:

  • Portable wasm check: success
  • Worker worker-build --release: success
  • Native cargo check --workspace --all-targets: failure。ただし失敗箇所はこのPRで変更していない src/compat.rs の既存 configure_process_group_command 参照2件で、PR head の親は現在の base (1531552c0afbcf72933790c819c95ffb4f2146f0) と一致しています。

未実施:

  • 実デプロイ済み Worker / 実サイトを使った end-to-end fetch(Cloudflare bindings / endpoint が必要)

注: 現在の差分には既存コメント/空行の削除が含まれますが、production code の削除はありません。機能確認後に必要なら整形差分を整理します。

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant