feat(手动下载): 保存目录选项接口与下载前指定作品

- GET /download-save-paths:按下载器列出默认保存目录与路径映射的下载器侧目录,并给出「自动」会用的下载器(站点指定 > 默认 > 第一个)
- POST /acquisition-plans 新增 identity(本地作品或 TMDB 外部身份):转调 /source-releases/{id}/identity 建 / 绑作品并加人工锁,再按该作品下载
- 测试 harness 支持装配 agent 模块;pg 测试覆盖保存目录选项与指定身份下载

Co-Authored-By: Claude Opus 5.5 <[email protected]>
Claude-Session: https://claude.ai/code/session_01Cxwgnn2pbzQ7rXv3rq7fei
This commit is contained in:
rootandClaude Opus 5.5 committed 2026-10-06 12:10:03 +08:00
1 parent fb6c76875c
commit 4bb19433ad
7 files changed
+260 -6

No files matched your search

+8
View File
@@ -64,6 +64,14 @@ export const executionApi = {
body: execution.ManualAcquisitionRequest,
response: execution.ManualAcquisitionResult,
}),
savePaths: ep({
method: "get",
path: "/download-save-paths",
scope: "read",
summary: "手动下载可选的下载器与保存目录(默认保存目录 + 路径映射),以及「自动」会用哪个下载器",
query: execution.DownloadSavePathQuery,
response: execution.DownloadSavePaths,
}),
why: ep({
method: "get",
path: "/acquisition-plans/{id}/why",