@cloud411716/fancy-webnovel 4.11.3 → 4.12.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/docs/douyin-plugin.md
CHANGED
|
@@ -144,7 +144,16 @@ FANCY_DOUYIN_SUBAGENTS=0 # 关闭子 Agent,回退单 Agent 串行
|
|
|
144
144
|
|
|
145
145
|
子 Agent 不操作 Chrome,不修改 `crawled.json`,不运行 `import.js`,也不直接写素材数据库;数据库导入和采集状态只由父进程串行处理,避免并发覆盖。
|
|
146
146
|
|
|
147
|
-
|
|
147
|
+
采集和分析重叠时,任务列表会同时把“采集作品”和“分析素材”标为进行中:采集行显示已扫描账号数和已入队作品数,分析行显示已分析/已入队和当前并发数。所有账号采集完成后,“采集作品”才标记完成,“分析素材”继续转圈直到子 Agent 队列清空。
|
|
148
|
+
|
|
149
|
+
子 Agent 是独立的新会话,不继承父 Agent 当前对话。因此 `.tmp` 临时文件规则、完整分析提示词和“不要删除测试文件/不要执行 rm”的约束都会直接写进子 Agent 任务提示,而不是依赖父对话。
|
|
150
|
+
|
|
151
|
+
有子 Agent 服务时,视觉能力自检和视频前 5 秒相关性判断也会交给子 Agent:
|
|
152
|
+
|
|
153
|
+
- 能力自检子 Agent 写 `capabilities.json`
|
|
154
|
+
- 视频子 Agent 先读前 5 秒关键帧:无关就只写 skip,有关再继续完整分析
|
|
155
|
+
- 主对话只保留采集进度和结果,不再出现这两段分析提示词
|
|
156
|
+
- 没有子 Agent 服务时才回退到父 Agent
|
|
148
157
|
|
|
149
158
|
## 素材格式
|
|
150
159
|
|
|
@@ -91,9 +91,14 @@ DEFINE INDEX IF NOT EXISTS douyin_job_analysis_status ON douyin_job FIELDS analy
|
|
|
91
91
|
DEFINE INDEX IF NOT EXISTS douyin_job_import_status ON douyin_job FIELDS import_status;
|
|
92
92
|
DEFINE INDEX IF NOT EXISTS douyin_job_updated_at ON douyin_job FIELDS updated_at;
|
|
93
93
|
|
|
94
|
+
-- 允许工作区数据库用户读写任务表;schema 本身仍由 root 创建。
|
|
95
|
+
ALTER TABLE douyin_job PERMISSIONS FOR select, create, update, delete FULL;
|
|
96
|
+
|
|
94
97
|
-- 迁移/维护标记(例如 crawled.json 是否已导入任务表)
|
|
95
98
|
DEFINE TABLE IF NOT EXISTS douyin_meta SCHEMAFULL;
|
|
96
99
|
DEFINE FIELD OVERWRITE meta_key ON douyin_meta TYPE string;
|
|
97
100
|
DEFINE FIELD OVERWRITE meta_value ON douyin_meta TYPE string;
|
|
98
101
|
DEFINE FIELD OVERWRITE updated_at ON douyin_meta TYPE datetime VALUE time::now();
|
|
99
102
|
DEFINE INDEX IF NOT EXISTS douyin_meta_key_unique ON douyin_meta FIELDS meta_key UNIQUE;
|
|
103
|
+
|
|
104
|
+
ALTER TABLE douyin_meta PERMISSIONS FOR select, create, update, delete FULL;
|
package/lib/task-list.js
CHANGED
|
@@ -130,11 +130,35 @@ class TaskListController {
|
|
|
130
130
|
* 只改文案,不改状态;用于长循环里让用户看到进度。
|
|
131
131
|
*/
|
|
132
132
|
progress(text) {
|
|
133
|
+
return this.progressAt(this.index, text);
|
|
134
|
+
}
|
|
135
|
+
|
|
136
|
+
/**
|
|
137
|
+
* 修改指定步骤的文案,不改状态。
|
|
138
|
+
* 用于多个步骤同时进行时,各自刷新自己的进度。
|
|
139
|
+
*/
|
|
140
|
+
progressAt(index, text) {
|
|
141
|
+
const target = Number(index);
|
|
142
|
+
if (!Number.isInteger(target) || target < 0 || target >= this.items.length) return this;
|
|
133
143
|
const content = String(text == null ? '' : text).trim();
|
|
134
|
-
if (!content
|
|
144
|
+
if (!content) return this;
|
|
135
145
|
// content 不能和已有项重复(DSH 会拒绝整表)
|
|
136
|
-
if (this.items.some((item, i) => i !==
|
|
137
|
-
this.items[
|
|
146
|
+
if (this.items.some((item, i) => i !== target && item.content === content)) return this;
|
|
147
|
+
if (this.items[target].content === content) return this;
|
|
148
|
+
this.items[target].content = content;
|
|
149
|
+
this._write();
|
|
150
|
+
return this;
|
|
151
|
+
}
|
|
152
|
+
|
|
153
|
+
/**
|
|
154
|
+
* 把一个 pending 步骤也标记为 in_progress,不影响当前步骤。
|
|
155
|
+
* DSH 允许并行任务同时进行;用于“采集作品”和“分析素材”重叠的阶段。
|
|
156
|
+
*/
|
|
157
|
+
activate(index) {
|
|
158
|
+
const target = Number(index);
|
|
159
|
+
if (!Number.isInteger(target) || target < 0 || target >= this.items.length) return this;
|
|
160
|
+
if (this.items[target].status !== 'pending') return this;
|
|
161
|
+
this.items[target].status = 'in_progress';
|
|
138
162
|
this._write();
|
|
139
163
|
return this;
|
|
140
164
|
}
|
package/package.json
CHANGED
|
@@ -416,7 +416,59 @@ export function readRelevanceMarker(file) {
|
|
|
416
416
|
return null;
|
|
417
417
|
}
|
|
418
418
|
|
|
419
|
-
async function
|
|
419
|
+
async function detectCapabilitiesWithSubagent(subagents, invocation, taskList, runDir, signal) {
|
|
420
|
+
const file = path.join(runDir, 'capabilities.json');
|
|
421
|
+
taskList.watchTurns(invocation);
|
|
422
|
+
for (let attempt = 1; attempt <= 2; attempt += 1) {
|
|
423
|
+
try { fs.rmSync(file, { force: true }); } catch { /* ignore */ }
|
|
424
|
+
let activation;
|
|
425
|
+
try {
|
|
426
|
+
activation = await subagents.startActivation({
|
|
427
|
+
provider: 'spawn',
|
|
428
|
+
label: 'fancy-douyin capability probe',
|
|
429
|
+
parent: invocation.agent,
|
|
430
|
+
prompt: [{ type: 'text', text: capabilityPrompt({ capabilityFile: file }) }],
|
|
431
|
+
signal,
|
|
432
|
+
delivery: 'caller',
|
|
433
|
+
});
|
|
434
|
+
} catch (err) {
|
|
435
|
+
return { ok: false, error: '能力自检子 Agent 启动失败:' + (err && err.message ? err.message : String(err)) };
|
|
436
|
+
}
|
|
437
|
+
let timer = null;
|
|
438
|
+
try {
|
|
439
|
+
await Promise.race([
|
|
440
|
+
activation.result,
|
|
441
|
+
new Promise((_, reject) => {
|
|
442
|
+
timer = setTimeout(() => reject(new Error('能力自检子 Agent 超时')), CAPABILITY_TIMEOUT_MS);
|
|
443
|
+
if (timer && typeof timer.unref === 'function') timer.unref();
|
|
444
|
+
}),
|
|
445
|
+
]);
|
|
446
|
+
} catch (err) {
|
|
447
|
+
if (signal && signal.aborted) return { ok: false, aborted: true, error: '用户中断' };
|
|
448
|
+
return { ok: false, error: '能力自检子 Agent 执行失败:' + (err && err.message ? err.message : String(err)) };
|
|
449
|
+
} finally {
|
|
450
|
+
if (timer) clearTimeout(timer);
|
|
451
|
+
try { await activation.dispose(); } catch { /* best effort */ }
|
|
452
|
+
}
|
|
453
|
+
let text = '';
|
|
454
|
+
try { text = fs.readFileSync(file, 'utf8'); } catch { /* retry */ }
|
|
455
|
+
const parsed = parseCapabilityResult(text);
|
|
456
|
+
if (parsed) return { ok: true, ...parsed };
|
|
457
|
+
}
|
|
458
|
+
return { ok: false, error: '能力自检子 Agent 没有返回可解析结果' };
|
|
459
|
+
}
|
|
460
|
+
|
|
461
|
+
async function detectCapabilities(ctx, invocation, session, taskList, root, runDir, options = {}) {
|
|
462
|
+
if (options.subagentRuntime) {
|
|
463
|
+
return detectCapabilitiesWithSubagent(
|
|
464
|
+
options.subagentRuntime,
|
|
465
|
+
invocation,
|
|
466
|
+
taskList,
|
|
467
|
+
runDir,
|
|
468
|
+
options.signal,
|
|
469
|
+
);
|
|
470
|
+
}
|
|
471
|
+
|
|
420
472
|
const file = path.join(runDir, 'capabilities.json');
|
|
421
473
|
try { fs.rmSync(file, { force: true }); } catch { /* ignore */ }
|
|
422
474
|
taskList.watchTurns(invocation);
|
|
@@ -687,18 +739,48 @@ function analysisPromptForJob(job, root, materialTools) {
|
|
|
687
739
|
});
|
|
688
740
|
}
|
|
689
741
|
|
|
690
|
-
function
|
|
691
|
-
return
|
|
742
|
+
function first5sFrames(video) {
|
|
743
|
+
if (video && Array.isArray(video.first5s) && video.first5s.length) return video.first5s;
|
|
744
|
+
const frames = video && Array.isArray(video.frames) ? video.frames : [];
|
|
745
|
+
const early = frames.filter((frame) => Number(frame.time) < 5);
|
|
746
|
+
return early.length ? early : frames.slice(0, 1);
|
|
747
|
+
}
|
|
748
|
+
|
|
749
|
+
function first5sFrameText(video) {
|
|
750
|
+
return first5sFrames(video)
|
|
751
|
+
.map((frame) => `- \`${frame.file}\`(第 ${frame.time} 秒)`)
|
|
752
|
+
.join('\n');
|
|
753
|
+
}
|
|
754
|
+
|
|
755
|
+
export function subagentTaskPrompt(job, root, materialTools) {
|
|
756
|
+
const lines = [
|
|
692
757
|
'你是 fancy-douyin 的分析子 Agent,只处理下面这一篇作品。',
|
|
693
758
|
'不要扫描账号,不要启动或操作 Chrome,不要修改 crawled.json,不要运行 import.js 或直接写素材数据库。',
|
|
694
759
|
'只读取给定文件,按提示词提取素材,写入目标 JSONL,运行 validate.js 后结束。',
|
|
695
760
|
'如果需要创建测试文件,放在当前项目的 `.tmp` 目录下(绝对路径:`' + path.join(root, '.tmp') + '`),并且测试后不需要删除测试文件。',
|
|
696
761
|
'禁止执行 rm、rmdir、find -delete、git clean 等删除命令,也不要删除已有文件。',
|
|
697
762
|
'',
|
|
698
|
-
|
|
699
|
-
|
|
700
|
-
|
|
701
|
-
|
|
763
|
+
];
|
|
764
|
+
if (job.type === 'video' && job.relevanceGate) {
|
|
765
|
+
lines.push('## 第一步:前 5 秒相关性判断');
|
|
766
|
+
lines.push('');
|
|
767
|
+
lines.push('只根据下面这些前 5 秒关键帧判断内容是否与网文小说创作素材、灵感、设定、写作技巧有关:');
|
|
768
|
+
lines.push('');
|
|
769
|
+
lines.push(first5sFrameText(job.video) || '(没有前 5 秒关键帧)');
|
|
770
|
+
lines.push('');
|
|
771
|
+
lines.push('如果无关:不要继续分析,只把下面的 skip 标记写进目标文件,然后结束:');
|
|
772
|
+
lines.push('```json');
|
|
773
|
+
lines.push('{"skip": true, "reason": "前 5 秒与网文创作无关:<一句话原因>"}');
|
|
774
|
+
lines.push('```');
|
|
775
|
+
lines.push('如果有关:继续执行第二步的完整视频分析。');
|
|
776
|
+
lines.push('');
|
|
777
|
+
lines.push('## 第二步:完整视频分析');
|
|
778
|
+
lines.push('');
|
|
779
|
+
}
|
|
780
|
+
lines.push('以下是本作品的完整分析提示词,必须逐条遵守(包括提取规则、字段要求、清单逐条规则、同风格扩写和校验命令):');
|
|
781
|
+
lines.push('');
|
|
782
|
+
lines.push(analysisPromptForJob(job, root, materialTools));
|
|
783
|
+
return lines.join('\n');
|
|
702
784
|
}
|
|
703
785
|
|
|
704
786
|
async function runSubagentAnalysisJob({
|
|
@@ -826,11 +908,24 @@ async function runCrawl(ctx, invocation, session, taskList) {
|
|
|
826
908
|
fs.mkdirSync(runDir, { recursive: true });
|
|
827
909
|
fs.mkdirSync(paths.jobs, { recursive: true });
|
|
828
910
|
|
|
911
|
+
const subagentRuntime = getSubagentRuntime(ctx);
|
|
912
|
+
const subagentWorkers = subagentRuntime ? subagentWorkerCount() : 0;
|
|
913
|
+
const useSubagents = Boolean(subagentRuntime && subagentWorkers > 0);
|
|
914
|
+
const abortController = new AbortController();
|
|
915
|
+
if (invocation.signal) {
|
|
916
|
+
if (invocation.signal.aborted) abortController.abort();
|
|
917
|
+
else invocation.signal.addEventListener('abort', () => abortController.abort(), { once: true });
|
|
918
|
+
}
|
|
919
|
+
const jobSignal = abortController.signal;
|
|
920
|
+
|
|
829
921
|
// 先做能力自检:如果模型既不能看图也不能看视频,直接退出,
|
|
830
922
|
// 不启动 Chrome,也不扫描账号。
|
|
831
923
|
taskList.advance(1);
|
|
832
924
|
taskList.progress('LLM 能力自检(图片 / 视频)');
|
|
833
|
-
const capabilities = await detectCapabilities(ctx, invocation, session, taskList, root, runDir
|
|
925
|
+
const capabilities = await detectCapabilities(ctx, invocation, session, taskList, root, runDir, {
|
|
926
|
+
subagentRuntime,
|
|
927
|
+
signal: jobSignal,
|
|
928
|
+
});
|
|
834
929
|
if (!capabilities.ok) {
|
|
835
930
|
return notify(session, 'error', '❌ LLM 能力自检失败:' + capabilities.error);
|
|
836
931
|
}
|
|
@@ -875,16 +970,7 @@ async function runCrawl(ctx, invocation, session, taskList) {
|
|
|
875
970
|
const failures = [];
|
|
876
971
|
const jobs = [];
|
|
877
972
|
const queued = new Set();
|
|
878
|
-
const subagentRuntime = getSubagentRuntime(ctx);
|
|
879
|
-
const subagentWorkers = subagentRuntime ? subagentWorkerCount() : 0;
|
|
880
|
-
const useSubagents = Boolean(subagentRuntime && subagentWorkers > 0);
|
|
881
973
|
const withStateLock = createSerialLock();
|
|
882
|
-
const abortController = new AbortController();
|
|
883
|
-
if (invocation.signal) {
|
|
884
|
-
if (invocation.signal.aborted) abortController.abort();
|
|
885
|
-
else invocation.signal.addEventListener('abort', () => abortController.abort(), { once: true });
|
|
886
|
-
}
|
|
887
|
-
const jobSignal = abortController.signal;
|
|
888
974
|
const markJobFailedLocked = async (job, reason, { crawl = false } = {}) => {
|
|
889
975
|
if (!job || !job.id) return;
|
|
890
976
|
markCrawled(root, job.id, {
|
|
@@ -967,14 +1053,13 @@ async function runCrawl(ctx, invocation, session, taskList) {
|
|
|
967
1053
|
let skippedMaterials = 0;
|
|
968
1054
|
let aborted = false;
|
|
969
1055
|
|
|
970
|
-
const
|
|
971
|
-
|
|
972
|
-
|
|
973
|
-
}
|
|
974
|
-
|
|
975
|
-
|
|
976
|
-
|
|
977
|
-
return `分析素材(${queueStats.finished}/${jobs.length})`;
|
|
1056
|
+
const collectText = () => `采集作品(已扫描 ${scannedAccounts}/${accounts.length},已入队 ${queueStats.queued})`;
|
|
1057
|
+
const analysisText = () => queue
|
|
1058
|
+
? `分析素材(已分析 ${queueStats.finished}/${queueStats.queued},并发 ${subagentWorkers})`
|
|
1059
|
+
: `分析素材(${queueStats.finished}/${jobs.length})`;
|
|
1060
|
+
const refreshProgress = () => {
|
|
1061
|
+
if (taskList.index <= 3) taskList.progressAt(3, collectText());
|
|
1062
|
+
if (queue || taskList.index >= 4) taskList.progressAt(4, analysisText());
|
|
978
1063
|
};
|
|
979
1064
|
|
|
980
1065
|
const jobRecord = (job, extra = {}) => ({
|
|
@@ -1015,7 +1100,7 @@ async function runCrawl(ctx, invocation, session, taskList) {
|
|
|
1015
1100
|
failures.push({ id: job.id, url: job.url, reason });
|
|
1016
1101
|
await markJobFailedLocked(job, reason);
|
|
1017
1102
|
queueStats.finished += 1;
|
|
1018
|
-
|
|
1103
|
+
refreshProgress();
|
|
1019
1104
|
return;
|
|
1020
1105
|
}
|
|
1021
1106
|
if (analyzed.skipped) {
|
|
@@ -1056,7 +1141,7 @@ async function runCrawl(ctx, invocation, session, taskList) {
|
|
|
1056
1141
|
}
|
|
1057
1142
|
crawled[job.id] = true;
|
|
1058
1143
|
queueStats.finished += 1;
|
|
1059
|
-
|
|
1144
|
+
refreshProgress();
|
|
1060
1145
|
});
|
|
1061
1146
|
};
|
|
1062
1147
|
|
|
@@ -1074,11 +1159,13 @@ async function runCrawl(ctx, invocation, session, taskList) {
|
|
|
1074
1159
|
}
|
|
1075
1160
|
queueStats.queued += 1;
|
|
1076
1161
|
if (queue) {
|
|
1162
|
+
// 子 Agent 已开始处理第一个作品:采集尚未结束,但分析也进入进行中。
|
|
1163
|
+
taskList.activate(4);
|
|
1077
1164
|
queue.push(job);
|
|
1078
1165
|
} else {
|
|
1079
1166
|
jobs.push(job);
|
|
1080
1167
|
}
|
|
1081
|
-
|
|
1168
|
+
refreshProgress();
|
|
1082
1169
|
};
|
|
1083
1170
|
|
|
1084
1171
|
const runWorker = async () => {
|
|
@@ -1436,38 +1523,43 @@ async function runCrawl(ctx, invocation, session, taskList) {
|
|
|
1436
1523
|
|
|
1437
1524
|
processedWorks += 1;
|
|
1438
1525
|
video.account_url = account.url;
|
|
1439
|
-
|
|
1440
|
-
|
|
1441
|
-
|
|
1442
|
-
|
|
1443
|
-
|
|
1444
|
-
|
|
1445
|
-
|
|
1446
|
-
|
|
1447
|
-
|
|
1448
|
-
target,
|
|
1449
|
-
taskList,
|
|
1450
|
-
});
|
|
1451
|
-
if (!relevance.ok) {
|
|
1452
|
-
failures.push({ id: videoId, url: card.href, reason: relevance.error });
|
|
1453
|
-
if (relevance.aborted) { aborted = true; break outer; }
|
|
1454
|
-
await markFailed(videoId, card, { type: 'video', dir: videoDir, title: video.title, duration: video.duration }, relevance.error);
|
|
1455
|
-
continue;
|
|
1456
|
-
}
|
|
1457
|
-
if (relevance.skip) {
|
|
1458
|
-
skippedIrrelevant += 1;
|
|
1459
|
-
await markJobSkipped({
|
|
1460
|
-
id: videoId,
|
|
1461
|
-
jobKey,
|
|
1526
|
+
let relevanceGate = false;
|
|
1527
|
+
if (!useSubagents) {
|
|
1528
|
+
if (taskList.index <= 3) {
|
|
1529
|
+
taskList.progress(`采集作品(视频前 5 秒筛选:${video.title || videoId})`);
|
|
1530
|
+
} else {
|
|
1531
|
+
taskList.progress(`分析素材(视频前 5 秒筛选:${video.title || videoId})`);
|
|
1532
|
+
}
|
|
1533
|
+
const relevance = await analyzeVideoRelevance(ctx, invocation, session, {
|
|
1534
|
+
root,
|
|
1462
1535
|
accountUrl: account.url,
|
|
1463
|
-
|
|
1464
|
-
|
|
1465
|
-
|
|
1466
|
-
|
|
1467
|
-
|
|
1468
|
-
card,
|
|
1469
|
-
|
|
1470
|
-
|
|
1536
|
+
video,
|
|
1537
|
+
target,
|
|
1538
|
+
taskList,
|
|
1539
|
+
});
|
|
1540
|
+
if (!relevance.ok) {
|
|
1541
|
+
failures.push({ id: videoId, url: card.href, reason: relevance.error });
|
|
1542
|
+
if (relevance.aborted) { aborted = true; break outer; }
|
|
1543
|
+
await markFailed(videoId, card, { type: 'video', dir: videoDir, title: video.title, duration: video.duration }, relevance.error);
|
|
1544
|
+
continue;
|
|
1545
|
+
}
|
|
1546
|
+
if (relevance.skip) {
|
|
1547
|
+
skippedIrrelevant += 1;
|
|
1548
|
+
await markJobSkipped({
|
|
1549
|
+
id: videoId,
|
|
1550
|
+
jobKey,
|
|
1551
|
+
accountUrl: account.url,
|
|
1552
|
+
url: video.url || card.href,
|
|
1553
|
+
title: video.title || card.text || '',
|
|
1554
|
+
type: 'video',
|
|
1555
|
+
duration: video.duration,
|
|
1556
|
+
dir: videoDir,
|
|
1557
|
+
card,
|
|
1558
|
+
}, relevance.reason || '前 5 秒与网文创作无关');
|
|
1559
|
+
continue;
|
|
1560
|
+
}
|
|
1561
|
+
} else {
|
|
1562
|
+
relevanceGate = true;
|
|
1471
1563
|
}
|
|
1472
1564
|
|
|
1473
1565
|
await enqueueJob({
|
|
@@ -1480,6 +1572,7 @@ async function runCrawl(ctx, invocation, session, taskList) {
|
|
|
1480
1572
|
dir: videoDir,
|
|
1481
1573
|
dirRel,
|
|
1482
1574
|
video,
|
|
1575
|
+
relevanceGate,
|
|
1483
1576
|
target,
|
|
1484
1577
|
title: video.title,
|
|
1485
1578
|
duration: video.duration,
|
|
@@ -1610,13 +1703,13 @@ async function runCrawl(ctx, invocation, session, taskList) {
|
|
|
1610
1703
|
if (queue) {
|
|
1611
1704
|
if (taskList.index < 4) {
|
|
1612
1705
|
taskList.advance(4);
|
|
1613
|
-
|
|
1706
|
+
refreshProgress();
|
|
1614
1707
|
}
|
|
1615
1708
|
queue.close();
|
|
1616
1709
|
await Promise.all(workerPromises);
|
|
1617
1710
|
} else if (jobs.length) {
|
|
1618
1711
|
taskList.advance(4);
|
|
1619
|
-
|
|
1712
|
+
refreshProgress();
|
|
1620
1713
|
for (const job of jobs) {
|
|
1621
1714
|
if (abortRequested(invocation)) { aborted = true; break; }
|
|
1622
1715
|
const analyzed = await runLocalAnalysisJob(ctx, invocation, session, job, {
|
|
@@ -32,6 +32,7 @@ export function helpText() {
|
|
|
32
32
|
- 扫描一个账号后,未处理作品会边采集边交给子 Agent 分析,不再等所有账号采集完。
|
|
33
33
|
- 父进程负责采集、校验、入库和任务状态;子 Agent 只写各作品的 materials.jsonl。
|
|
34
34
|
- 作品任务状态记录在素材库的 douyin_job 表;中途重启会复用稳定任务目录,已导入/已跳过的作品不会重采。
|
|
35
|
+
- 有子 Agent 时,视觉能力自检和视频前 5 秒相关性判断也由子 Agent 完成,主对话不再出现这些分析提示词。
|
|
35
36
|
- 子 Agent 并发数由 FANCY_DOUYIN_SUBAGENTS 控制(默认 3,0 关闭);DSH 没有 subagent 服务或 spawn provider 时自动回退单 Agent 串行。
|
|
36
37
|
- 视频作品先判断时长:超过 1 分钟直接跳过;不超过 1 分钟的先看前 5 秒,
|
|
37
38
|
与网文创作无关就跳过,有关才继续分析关键帧。
|