feat: 视频阶段诊断增强 + 新账号 product_viral_factory + 执黑先行提示词更新

- phase-videos.js: 增加 item 不符合条件时的逐项诊断日志,明确 confirmed 校验
- pipeline-utils.js: saveManifest 先直写,EPERM 时回退 tmp+rename
- 执黑先行: 分镜/图片/视频提示词完善
- 新增 product_viral_factory 账号(PPT产品宣传片方向)

Co-Authored-By: Claude Opus 4.7 <noreply@anthropic.com>
This commit is contained in:
lc
2026-05-10 17:07:06 +08:00
parent 1c0703cc80
commit 2232be4eee
15 changed files with 1073 additions and 37 deletions

View File

@@ -27,9 +27,16 @@ function loadManifest(manifestPath) {
}
function saveManifest(manifestPath, manifest) {
const tmp = manifestPath + '.tmp'
fs.writeFileSync(tmp, JSON.stringify(manifest, null, 2), 'utf-8')
fs.renameSync(tmp, manifestPath)
try {
fs.writeFileSync(manifestPath, JSON.stringify(manifest, null, 2), 'utf-8')
} catch (err) {
if (err.code === 'EPERM') {
// rename/tmp fallback on EPERM
const tmp = manifestPath + '.tmp'
fs.writeFileSync(tmp, JSON.stringify(manifest, null, 2), 'utf-8')
try { fs.renameSync(tmp, manifestPath) } catch (_) {}
}
}
}
function loadAccountConfig(accountId) {