@cloud411716/fancy-webnovel 4.11.0 → 4.11.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/package.json
CHANGED
|
@@ -964,8 +964,8 @@ async function runCrawl(ctx, invocation, session, taskList) {
|
|
|
964
964
|
let aborted = false;
|
|
965
965
|
|
|
966
966
|
const progressText = () => queue
|
|
967
|
-
?
|
|
968
|
-
:
|
|
967
|
+
? `分析素材(子 Agent 并行:${queueStats.finished}/${queueStats.queued},并发 ${subagentWorkers})`
|
|
968
|
+
: `分析素材(${queueStats.finished}/${jobs.length})`;
|
|
969
969
|
|
|
970
970
|
const jobRecord = (job, extra = {}) => ({
|
|
971
971
|
account_url: job.accountUrl,
|
|
@@ -1064,6 +1064,7 @@ async function runCrawl(ctx, invocation, session, taskList) {
|
|
|
1064
1064
|
}
|
|
1065
1065
|
if (queue) {
|
|
1066
1066
|
queueStats.queued += 1;
|
|
1067
|
+
if (taskList.index < 4) taskList.advance(4);
|
|
1067
1068
|
queue.push(job);
|
|
1068
1069
|
taskList.progress(progressText());
|
|
1069
1070
|
} else {
|
|
@@ -1104,10 +1105,6 @@ async function runCrawl(ctx, invocation, session, taskList) {
|
|
|
1104
1105
|
workerPromises = queue
|
|
1105
1106
|
? Array.from({ length: subagentWorkers }, () => runWorker())
|
|
1106
1107
|
: [];
|
|
1107
|
-
if (queue) {
|
|
1108
|
-
taskList.progress(progressText());
|
|
1109
|
-
}
|
|
1110
|
-
|
|
1111
1108
|
outer:
|
|
1112
1109
|
for (const account of accounts) {
|
|
1113
1110
|
if (abortRequested(invocation)) { aborted = true; break; }
|
|
@@ -1188,7 +1185,7 @@ async function runCrawl(ctx, invocation, session, taskList) {
|
|
|
1188
1185
|
foundNotes += notes.length;
|
|
1189
1186
|
foundVideos += videos.length;
|
|
1190
1187
|
foundArticles += articles.length;
|
|
1191
|
-
taskList.advance(3);
|
|
1188
|
+
if (taskList.index < 3) taskList.advance(3);
|
|
1192
1189
|
|
|
1193
1190
|
for (const card of notes) {
|
|
1194
1191
|
if (abortRequested(invocation)) { aborted = true; break outer; }
|
|
@@ -1430,8 +1427,8 @@ async function runCrawl(ctx, invocation, session, taskList) {
|
|
|
1430
1427
|
|
|
1431
1428
|
processedWorks += 1;
|
|
1432
1429
|
video.account_url = account.url;
|
|
1433
|
-
taskList.advance(4);
|
|
1434
|
-
taskList.progress(
|
|
1430
|
+
if (taskList.index < 4) taskList.advance(4);
|
|
1431
|
+
taskList.progress(`分析素材(视频前 5 秒筛选:${video.title || videoId})`);
|
|
1435
1432
|
const relevance = await analyzeVideoRelevance(ctx, invocation, session, {
|
|
1436
1433
|
root,
|
|
1437
1434
|
accountUrl: account.url,
|
|
@@ -1705,7 +1702,7 @@ function douyinTaskTitles(invocation) {
|
|
|
1705
1702
|
'LLM 能力自检(图片 / 视频)',
|
|
1706
1703
|
'扫描账号主页',
|
|
1707
1704
|
'采集图文 / 视频 / 文章作品',
|
|
1708
|
-
'
|
|
1705
|
+
'分析素材',
|
|
1709
1706
|
'写入素材库',
|
|
1710
1707
|
];
|
|
1711
1708
|
}
|