@lemoncat7/dsh-partner 2.8.1 → 2.8.2
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/THIRD_PARTY_LICENSES.md +10 -0
- package/docs/blocked-delivery-recovery.md +7 -0
- package/docs/concern-attention.md +19 -0
- package/docs/observation-contract.md +11 -0
- package/docs/releases/2.8.2.md +7 -0
- package/lib/agent-runtime.d.ts +7 -0
- package/lib/agent-runtime.d.ts.map +1 -1
- package/lib/agent-runtime.js +110 -32
- package/lib/agent-runtime.js.map +1 -1
- package/lib/api.js +28 -6
- package/lib/api.js.map +1 -1
- package/lib/autonomy.d.ts.map +1 -1
- package/lib/autonomy.js +5 -0
- package/lib/autonomy.js.map +1 -1
- package/lib/channel-message.d.ts +2 -0
- package/lib/channel-message.d.ts.map +1 -1
- package/lib/channel-message.js.map +1 -1
- package/lib/channels/direct/message-format.js +127 -127
- package/lib/channels/direct/message-format.js.map +1 -1
- package/lib/channels/manager.d.ts.map +1 -1
- package/lib/channels/manager.js +4 -3
- package/lib/channels/manager.js.map +1 -1
- package/lib/channels/notification-delivery.d.ts.map +1 -1
- package/lib/channels/notification-delivery.js +10 -0
- package/lib/channels/notification-delivery.js.map +1 -1
- package/lib/channels/weixin/connect.d.ts.map +1 -1
- package/lib/client-api.d.ts +7 -2
- package/lib/client-api.d.ts.map +1 -1
- package/lib/client-api.js +8 -1
- package/lib/client-api.js.map +1 -1
- package/lib/client.d.ts.map +1 -1
- package/lib/client.js +2185 -1956
- package/lib/client.js.map +4 -4
- package/lib/collaboration/composition.js +1 -1
- package/lib/collaboration/composition.js.map +1 -1
- package/lib/concern-attention.d.ts +19 -0
- package/lib/concern-attention.d.ts.map +1 -0
- package/lib/concern-attention.js +36 -0
- package/lib/concern-attention.js.map +1 -0
- package/lib/concern-domain.d.ts +7 -1
- package/lib/concern-domain.d.ts.map +1 -1
- package/lib/concern-domain.js +4 -0
- package/lib/concern-domain.js.map +1 -1
- package/lib/concern-execution-notes.d.ts +18 -0
- package/lib/concern-execution-notes.d.ts.map +1 -0
- package/lib/concern-execution-notes.js +41 -0
- package/lib/concern-execution-notes.js.map +1 -0
- package/lib/concern-execution-receipt.d.ts +4 -0
- package/lib/concern-execution-receipt.d.ts.map +1 -0
- package/lib/concern-execution-receipt.js +28 -0
- package/lib/concern-execution-receipt.js.map +1 -0
- package/lib/concern-execution.d.ts +30 -0
- package/lib/concern-execution.d.ts.map +1 -0
- package/lib/concern-execution.js +86 -0
- package/lib/concern-execution.js.map +1 -0
- package/lib/concern-management-tool.d.ts.map +1 -1
- package/lib/concern-management-tool.js +21 -19
- package/lib/concern-management-tool.js.map +1 -1
- package/lib/concern-note-source.d.ts +7 -0
- package/lib/concern-note-source.d.ts.map +1 -0
- package/lib/concern-note-source.js +25 -0
- package/lib/concern-note-source.js.map +1 -0
- package/lib/concern-resources.d.ts +27 -0
- package/lib/concern-resources.d.ts.map +1 -0
- package/lib/concern-resources.js +36 -0
- package/lib/concern-resources.js.map +1 -0
- package/lib/concern-sources.d.ts +1 -1
- package/lib/concern-sources.d.ts.map +1 -1
- package/lib/concern-store.d.ts +9 -1
- package/lib/concern-store.d.ts.map +1 -1
- package/lib/concern-store.js +111 -34
- package/lib/concern-store.js.map +1 -1
- package/lib/concern-tool.d.ts +1 -0
- package/lib/concern-tool.d.ts.map +1 -1
- package/lib/concern-tool.js +8 -4
- package/lib/concern-tool.js.map +1 -1
- package/lib/decision/conversation.d.ts +11 -0
- package/lib/decision/conversation.d.ts.map +1 -0
- package/lib/decision/conversation.js +52 -0
- package/lib/decision/conversation.js.map +1 -0
- package/lib/decision/events.d.ts +16 -0
- package/lib/decision/events.d.ts.map +1 -0
- package/lib/decision/events.js +9 -0
- package/lib/decision/events.js.map +1 -0
- package/lib/domain.d.ts +2 -0
- package/lib/domain.d.ts.map +1 -1
- package/lib/domain.js.map +1 -1
- package/lib/heartbeat.d.ts +12 -10
- package/lib/heartbeat.d.ts.map +1 -1
- package/lib/heartbeat.js +54 -26
- package/lib/heartbeat.js.map +1 -1
- package/lib/index.d.ts.map +1 -1
- package/lib/index.js +3 -0
- package/lib/index.js.map +1 -1
- package/lib/memory-prompt-context.js +1 -0
- package/lib/memory-prompt-context.js.map +1 -1
- package/lib/memory-reflection.js +1 -1
- package/lib/observation-contract.d.ts +9 -0
- package/lib/observation-contract.d.ts.map +1 -0
- package/lib/observation-contract.js +19 -0
- package/lib/observation-contract.js.map +1 -0
- package/lib/observation-executor.d.ts +5 -0
- package/lib/observation-executor.d.ts.map +1 -1
- package/lib/observation-executor.js +17 -1
- package/lib/observation-executor.js.map +1 -1
- package/lib/observation-loop.d.ts +5 -0
- package/lib/observation-loop.d.ts.map +1 -1
- package/lib/observation-loop.js +36 -3
- package/lib/observation-loop.js.map +1 -1
- package/lib/observation-sources.d.ts +14 -0
- package/lib/observation-sources.d.ts.map +1 -0
- package/lib/observation-sources.js +12 -0
- package/lib/observation-sources.js.map +1 -0
- package/lib/requirements/service.d.ts.map +1 -1
- package/lib/requirements/service.js +2 -0
- package/lib/requirements/service.js.map +1 -1
- package/lib/requirements/worker.d.ts.map +1 -1
- package/lib/requirements/worker.js +1 -0
- package/lib/requirements/worker.js.map +1 -1
- package/lib/scheduler/continuations.d.ts.map +1 -1
- package/lib/scheduler/continuations.js +17 -3
- package/lib/scheduler/continuations.js.map +1 -1
- package/lib/skills/builtin.d.ts.map +1 -1
- package/lib/skills/builtin.js +2 -0
- package/lib/skills/builtin.js.map +1 -1
- package/lib/skills/drama-builtin.d.ts.map +1 -1
- package/lib/skills/drama-builtin.js +13 -1
- package/lib/skills/drama-builtin.js.map +1 -1
- package/lib/skills/story-builtins.d.ts +3 -0
- package/lib/skills/story-builtins.d.ts.map +1 -0
- package/lib/skills/story-builtins.js +72 -0
- package/lib/skills/story-builtins.js.map +1 -0
- package/lib/skills/viora-canvas-builtin.d.ts.map +1 -1
- package/lib/skills/viora-canvas-builtin.js +12 -1
- package/lib/skills/viora-canvas-builtin.js.map +1 -1
- package/lib/snapshot-cache.d.ts +7 -0
- package/lib/snapshot-cache.d.ts.map +1 -0
- package/lib/snapshot-cache.js +26 -0
- package/lib/snapshot-cache.js.map +1 -0
- package/lib/tasks/result.js +1 -1
- package/lib/tasks/result.js.map +1 -1
- package/lib/ui/memory/concern-board.d.ts +1 -1
- package/lib/ui/memory/concern-board.d.ts.map +1 -1
- package/lib/ui/memory/concern-board.js +12 -6
- package/lib/ui/memory/concern-board.js.map +1 -1
- package/lib/ui/memory/concern-deletion.d.ts.map +1 -1
- package/lib/ui/memory/concern-deletion.js +2 -1
- package/lib/ui/memory/concern-deletion.js.map +1 -1
- package/lib/ui/memory/concern-editor.d.ts.map +1 -1
- package/lib/ui/memory/concern-editor.js +5 -3
- package/lib/ui/memory/concern-editor.js.map +1 -1
- package/lib/ui/memory/concern-execution-fields.d.ts +7 -0
- package/lib/ui/memory/concern-execution-fields.d.ts.map +1 -0
- package/lib/ui/memory/concern-execution-fields.js +8 -0
- package/lib/ui/memory/concern-execution-fields.js.map +1 -0
- package/lib/ui/memory/concern-feedback.d.ts +15 -0
- package/lib/ui/memory/concern-feedback.d.ts.map +1 -0
- package/lib/ui/memory/concern-feedback.js +13 -0
- package/lib/ui/memory/concern-feedback.js.map +1 -0
- package/lib/ui/memory/concern-panel.d.ts.map +1 -1
- package/lib/ui/memory/concern-panel.js +11 -3
- package/lib/ui/memory/concern-panel.js.map +1 -1
- package/package.json +5 -1
- package/resources/skills/novel-game-creation/manifest.json +393 -0
- package/resources/skills/novel-game-creation/upstream/LICENSE +21 -0
- package/resources/skills/novel-game-creation/upstream/README.md +420 -0
- package/resources/skills/novel-game-creation/upstream/README_ZH.md +421 -0
- package/resources/skills/novel-game-creation/upstream/VERSION +1 -0
- package/resources/skills/novel-game-creation/upstream/examples/jin-ping-mei/build/BUILD_BRIEF.md +219 -0
- package/resources/skills/novel-game-creation/upstream/examples/jin-ping-mei/build/app/.vercelignore +3 -0
- package/resources/skills/novel-game-creation/upstream/examples/jin-ping-mei/build/app/RUN.md +138 -0
- package/resources/skills/novel-game-creation/upstream/examples/jin-ping-mei/build/app/assets/bg/compound_new_guofeng.webp +0 -0
- package/resources/skills/novel-game-creation/upstream/examples/jin-ping-mei/build/app/assets/cg/finale/fate_coda.webp +0 -0
- package/resources/skills/novel-game-creation/upstream/examples/jin-ping-mei/build/app/assets/cg/finale/meng.webp +0 -0
- package/resources/skills/novel-game-creation/upstream/examples/jin-ping-mei/build/app/assets/cg/finale/pan.webp +0 -0
- package/resources/skills/novel-game-creation/upstream/examples/jin-ping-mei/build/app/assets/cg/finale/pinger.webp +0 -0
- package/resources/skills/novel-game-creation/upstream/examples/jin-ping-mei/build/app/assets/cg/finale/xuee.webp +0 -0
- package/resources/skills/novel-game-creation/upstream/examples/jin-ping-mei/build/app/assets/cg/finale/yue.webp +0 -0
- package/resources/skills/novel-game-creation/upstream/examples/jin-ping-mei/build/app/assets/cg/group/inner_court_accord_five.webp +0 -0
- package/resources/skills/novel-game-creation/upstream/examples/jin-ping-mei/build/app/assets/cg/group/inner_court_afterglow_five.webp +0 -0
- package/resources/skills/novel-game-creation/upstream/examples/jin-ping-mei/build/app/assets/cg/group/inner_court_alliance.webp +0 -0
- package/resources/skills/novel-game-creation/upstream/examples/jin-ping-mei/build/app/assets/cg/group/public_day10.webp +0 -0
- package/resources/skills/novel-game-creation/upstream/examples/jin-ping-mei/build/app/assets/cg/group/public_day15.webp +0 -0
- package/resources/skills/novel-game-creation/upstream/examples/jin-ping-mei/build/app/assets/cg/group/public_day5.webp +0 -0
- package/resources/skills/novel-game-creation/upstream/examples/jin-ping-mei/build/app/assets/cg/group/title_new_guofeng.webp +0 -0
- package/resources/skills/novel-game-creation/upstream/examples/jin-ping-mei/build/app/assets/cg/joint/pan_pinger.webp +0 -0
- package/resources/skills/novel-game-creation/upstream/examples/jin-ping-mei/build/app/assets/cg/joint/pan_xuee.webp +0 -0
- package/resources/skills/novel-game-creation/upstream/examples/jin-ping-mei/build/app/assets/cg/joint/yue_meng.webp +0 -0
- package/resources/skills/novel-game-creation/upstream/examples/jin-ping-mei/build/app/assets/cg/joint/yue_pan.webp +0 -0
- package/resources/skills/novel-game-creation/upstream/examples/jin-ping-mei/build/app/assets/cg/joint/yue_pinger.webp +0 -0
- package/resources/skills/novel-game-creation/upstream/examples/jin-ping-mei/build/app/assets/cg/meng/explicit.webp +0 -0
- package/resources/skills/novel-game-creation/upstream/examples/jin-ping-mei/build/app/assets/cg/meng/prelude.webp +0 -0
- package/resources/skills/novel-game-creation/upstream/examples/jin-ping-mei/build/app/assets/cg/milestone/meng.webp +0 -0
- package/resources/skills/novel-game-creation/upstream/examples/jin-ping-mei/build/app/assets/cg/milestone/pan.webp +0 -0
- package/resources/skills/novel-game-creation/upstream/examples/jin-ping-mei/build/app/assets/cg/milestone/pinger.webp +0 -0
- package/resources/skills/novel-game-creation/upstream/examples/jin-ping-mei/build/app/assets/cg/milestone/xuee.webp +0 -0
- package/resources/skills/novel-game-creation/upstream/examples/jin-ping-mei/build/app/assets/cg/milestone/yue.webp +0 -0
- package/resources/skills/novel-game-creation/upstream/examples/jin-ping-mei/build/app/assets/cg/pan/explicit.webp +0 -0
- package/resources/skills/novel-game-creation/upstream/examples/jin-ping-mei/build/app/assets/cg/pan/prelude.webp +0 -0
- package/resources/skills/novel-game-creation/upstream/examples/jin-ping-mei/build/app/assets/cg/pinger/explicit.webp +0 -0
- package/resources/skills/novel-game-creation/upstream/examples/jin-ping-mei/build/app/assets/cg/pinger/prelude.webp +0 -0
- package/resources/skills/novel-game-creation/upstream/examples/jin-ping-mei/build/app/assets/cg/xuee/explicit.webp +0 -0
- package/resources/skills/novel-game-creation/upstream/examples/jin-ping-mei/build/app/assets/cg/xuee/prelude.webp +0 -0
- package/resources/skills/novel-game-creation/upstream/examples/jin-ping-mei/build/app/assets/cg/yue/explicit.webp +0 -0
- package/resources/skills/novel-game-creation/upstream/examples/jin-ping-mei/build/app/assets/cg/yue/prelude.webp +0 -0
- package/resources/skills/novel-game-creation/upstream/examples/jin-ping-mei/build/app/assets/heroine/meng/night.webp +0 -0
- package/resources/skills/novel-game-creation/upstream/examples/jin-ping-mei/build/app/assets/heroine/pan/night.webp +0 -0
- package/resources/skills/novel-game-creation/upstream/examples/jin-ping-mei/build/app/assets/heroine/pinger/night.webp +0 -0
- package/resources/skills/novel-game-creation/upstream/examples/jin-ping-mei/build/app/assets/heroine/xuee/night.webp +0 -0
- package/resources/skills/novel-game-creation/upstream/examples/jin-ping-mei/build/app/assets/heroine/yue/night.webp +0 -0
- package/resources/skills/novel-game-creation/upstream/examples/jin-ping-mei/build/app/assets/household/li_jiaoer.webp +0 -0
- package/resources/skills/novel-game-creation/upstream/examples/jin-ping-mei/build/app/assets/scene/gate_collector.webp +0 -0
- package/resources/skills/novel-game-creation/upstream/examples/jin-ping-mei/build/app/css/new-guofeng.css +1494 -0
- package/resources/skills/novel-game-creation/upstream/examples/jin-ping-mei/build/app/css/style.css +2508 -0
- package/resources/skills/novel-game-creation/upstream/examples/jin-ping-mei/build/app/index.html +18 -0
- package/resources/skills/novel-game-creation/upstream/examples/jin-ping-mei/build/app/js/assets.js +147 -0
- package/resources/skills/novel-game-creation/upstream/examples/jin-ping-mei/build/app/js/audio.js +332 -0
- package/resources/skills/novel-game-creation/upstream/examples/jin-ping-mei/build/app/js/data.js +7470 -0
- package/resources/skills/novel-game-creation/upstream/examples/jin-ping-mei/build/app/js/engine.js +13066 -0
- package/resources/skills/novel-game-creation/upstream/examples/jin-ping-mei/build/app/js/main.js +3051 -0
- package/resources/skills/novel-game-creation/upstream/examples/jin-ping-mei/build/app/js/text.js +32 -0
- package/resources/skills/novel-game-creation/upstream/examples/jin-ping-mei/build/app/package.json +11 -0
- package/resources/skills/novel-game-creation/upstream/examples/jin-ping-mei/build/app/vercel.json +23 -0
- package/resources/skills/novel-game-creation/upstream/examples/jin-ping-mei/build/art/generated-art.json +161 -0
- package/resources/skills/novel-game-creation/upstream/examples/jin-ping-mei/example.json +12 -0
- package/resources/skills/novel-game-creation/upstream/examples/jin-ping-mei/qa/README.md +26 -0
- package/resources/skills/novel-game-creation/upstream/examples/jin-ping-mei/qa/playable-model.json +99 -0
- package/resources/skills/novel-game-creation/upstream/examples/jin-ping-mei/qa/verification.json +41 -0
- package/resources/skills/novel-game-creation/upstream/examples/jin-ping-mei/qa/verify_playable_model.mjs +152 -0
- package/resources/skills/novel-game-creation/upstream/manifest.json +498 -0
- package/resources/skills/novel-game-creation/upstream/skills/game-art-direction/SKILL.md +47 -0
- package/resources/skills/novel-game-creation/upstream/skills/game-art-direction/agents/openai.yaml +4 -0
- package/resources/skills/novel-game-creation/upstream/skills/game-art-direction/references/art-direction-method.md +40 -0
- package/resources/skills/novel-game-creation/upstream/skills/game-build/SKILL.md +66 -0
- package/resources/skills/novel-game-creation/upstream/skills/game-build/agents/openai.yaml +4 -0
- package/resources/skills/novel-game-creation/upstream/skills/game-build/references/blender-asset-workflow.md +24 -0
- package/resources/skills/novel-game-creation/upstream/skills/game-build/references/build-brief-contract.md +72 -0
- package/resources/skills/novel-game-creation/upstream/skills/game-build/references/generative-media-pipeline.md +25 -0
- package/resources/skills/novel-game-creation/upstream/skills/game-build/references/playable-model-contract.md +46 -0
- package/resources/skills/novel-game-creation/upstream/skills/game-build/references/tts-production-contract.md +23 -0
- package/resources/skills/novel-game-creation/upstream/skills/game-concept/SKILL.md +54 -0
- package/resources/skills/novel-game-creation/upstream/skills/game-concept/agents/openai.yaml +4 -0
- package/resources/skills/novel-game-creation/upstream/skills/game-concept/references/concept-method.md +47 -0
- package/resources/skills/novel-game-creation/upstream/skills/game-qa/SKILL.md +39 -0
- package/resources/skills/novel-game-creation/upstream/skills/game-qa/agents/openai.yaml +4 -0
- package/resources/skills/novel-game-creation/upstream/skills/game-qa/references/qa-contract.md +66 -0
- package/resources/skills/novel-game-creation/upstream/skills/game-qa/references/test-design-method.md +49 -0
- package/resources/skills/novel-game-creation/upstream/skills/game-world-design/SKILL.md +50 -0
- package/resources/skills/novel-game-creation/upstream/skills/game-world-design/agents/openai.yaml +4 -0
- package/resources/skills/novel-game-creation/upstream/skills/game-world-design/references/narrative-design-method.md +35 -0
- package/resources/skills/novel-game-creation/upstream/skills/game-world-design/references/numeric-design-method.md +22 -0
- package/resources/skills/novel-game-creation/upstream/skills/game-world-design/references/world-design-method.md +57 -0
- package/resources/skills/novel-game-creation/upstream/skills/novel-game-analyze/SKILL.md +68 -0
- package/resources/skills/novel-game-creation/upstream/skills/novel-game-analyze/agents/openai.yaml +4 -0
- package/resources/skills/novel-game-creation/upstream/skills/novel-game-analyze/references/gameability-protocol.md +65 -0
- package/resources/skills/novel-game-creation/upstream/skills/novel-to-game/SKILL.md +54 -0
- package/resources/skills/novel-game-creation/upstream/skills/novel-to-game/agents/openai.yaml +4 -0
- package/resources/skills/novel-game-creation/upstream/skills/novel-to-game/references/intake-method.md +50 -0
- package/resources/skills/novel-game-creation/upstream/skills/novel-to-game/references/pipeline-contract.md +60 -0
- package/resources/skills/story-creation/manifest.json +1477 -0
- package/resources/skills/story-creation/upstream/LICENSE.upstream +21 -0
- package/resources/skills/story-creation/upstream/manifest.json +1861 -0
- package/resources/skills/story-creation/upstream/roles/chapter-extractor.md +254 -0
- package/resources/skills/story-creation/upstream/roles/character-designer.md +168 -0
- package/resources/skills/story-creation/upstream/roles/consistency-checker.md +192 -0
- package/resources/skills/story-creation/upstream/roles/narrative-writer.md +105 -0
- package/resources/skills/story-creation/upstream/roles/story-architect.md +139 -0
- package/resources/skills/story-creation/upstream/roles/story-explorer.md +262 -0
- package/resources/skills/story-creation/upstream/roles/story-researcher.md +303 -0
- package/resources/skills/story-creation/upstream/skills/browser-cdp/SKILL.md +175 -0
- package/resources/skills/story-creation/upstream/skills/story/SKILL.md +129 -0
- package/resources/skills/story-creation/upstream/skills/story/VERSION +1 -0
- package/resources/skills/story-creation/upstream/skills/story/references/author-memory-maintenance.md +75 -0
- package/resources/skills/story-creation/upstream/skills/story/references/author-memory.md +117 -0
- package/resources/skills/story-creation/upstream/skills/story/scripts/author_memory_commit.py +1635 -0
- package/resources/skills/story-creation/upstream/skills/story-cover/SKILL.md +336 -0
- package/resources/skills/story-creation/upstream/skills/story-cover/references/cover-styles.md +210 -0
- package/resources/skills/story-creation/upstream/skills/story-deslop/SKILL.md +274 -0
- package/resources/skills/story-creation/upstream/skills/story-deslop/references/agent-calls.md +5 -0
- package/resources/skills/story-creation/upstream/skills/story-deslop/references/anti-ai-writing.md +556 -0
- package/resources/skills/story-creation/upstream/skills/story-deslop/references/author-memory-maintenance.md +75 -0
- package/resources/skills/story-creation/upstream/skills/story-deslop/references/author-memory.md +117 -0
- package/resources/skills/story-creation/upstream/skills/story-deslop/references/banned-words.md +151 -0
- package/resources/skills/story-creation/upstream/skills/story-deslop/references/deslop-gates.md +171 -0
- package/resources/skills/story-creation/upstream/skills/story-deslop/references/style-resolution.md +27 -0
- package/resources/skills/story-creation/upstream/skills/story-deslop/scripts/author_memory_commit.py +1635 -0
- package/resources/skills/story-creation/upstream/skills/story-deslop/scripts/check-ai-patterns.js +1586 -0
- package/resources/skills/story-creation/upstream/skills/story-deslop/scripts/check-degeneration.js +349 -0
- package/resources/skills/story-creation/upstream/skills/story-deslop/scripts/normalize-punctuation.js +415 -0
- package/resources/skills/story-creation/upstream/skills/story-deslop/scripts/style-whitelist.js +39 -0
- package/resources/skills/story-creation/upstream/skills/story-import/SKILL.md +127 -0
- package/resources/skills/story-creation/upstream/skills/story-import/references/character-state-reverse.md +82 -0
- package/resources/skills/story-creation/upstream/skills/story-import/references/deep-analysis.md +47 -0
- package/resources/skills/story-creation/upstream/skills/story-import/references/format-and-structure.md +168 -0
- package/resources/skills/story-creation/upstream/skills/story-import/references/import-report.md +64 -0
- package/resources/skills/story-creation/upstream/skills/story-import/references/import-special-cases.md +34 -0
- package/resources/skills/story-creation/upstream/skills/story-import/references/import-tracking.md +95 -0
- package/resources/skills/story-creation/upstream/skills/story-import/references/length-routing.md +134 -0
- package/resources/skills/story-creation/upstream/skills/story-import/references/outline-reverse-rules.md +79 -0
- package/resources/skills/story-creation/upstream/skills/story-import/references/outline-reverse.md +24 -0
- package/resources/skills/story-creation/upstream/skills/story-import/references/state-tracking.md +43 -0
- package/resources/skills/story-creation/upstream/skills/story-import/references/structure-mapping-long.md +448 -0
- package/resources/skills/story-creation/upstream/skills/story-import/references/structure-mapping-short.md +187 -0
- package/resources/skills/story-creation/upstream/skills/story-import/references/tracking-initialization.md +31 -0
- package/resources/skills/story-creation/upstream/skills/story-import/references/tracking-transaction.md +146 -0
- package/resources/skills/story-creation/upstream/skills/story-import/scripts/build_outline_brief.py +332 -0
- package/resources/skills/story-creation/upstream/skills/story-import/scripts/check-outline-contract.js +520 -0
- package/resources/skills/story-creation/upstream/skills/story-import/scripts/tracking_commit.py +1691 -0
- package/resources/skills/story-creation/upstream/skills/story-import/scripts/wordcount_core.py +405 -0
- package/resources/skills/story-creation/upstream/skills/story-long-analyze/SKILL.md +140 -0
- package/resources/skills/story-creation/upstream/skills/story-long-analyze/references/author-facing.md +252 -0
- package/resources/skills/story-creation/upstream/skills/story-long-analyze/references/deconstruction-notes.md +270 -0
- package/resources/skills/story-creation/upstream/skills/story-long-analyze/references/final-checks.md +19 -0
- package/resources/skills/story-creation/upstream/skills/story-long-analyze/references/index-rebuild.md +11 -0
- package/resources/skills/story-creation/upstream/skills/story-long-analyze/references/inspiration-library.md +105 -0
- package/resources/skills/story-creation/upstream/skills/story-long-analyze/references/pipeline-ops.md +154 -0
- package/resources/skills/story-creation/upstream/skills/story-long-analyze/references/semantic-acceptance-fixtures.md +84 -0
- package/resources/skills/story-creation/upstream/skills/story-long-analyze/references/stage1-golden-chapters.md +128 -0
- package/resources/skills/story-creation/upstream/skills/story-long-analyze/references/stage2-extraction.md +229 -0
- package/resources/skills/story-creation/upstream/skills/story-long-analyze/references/stage3-plot-rhythm.md +480 -0
- package/resources/skills/story-creation/upstream/skills/story-long-analyze/references/stage4-characters-settings.md +195 -0
- package/resources/skills/story-creation/upstream/skills/story-long-analyze/references/stage5-report.md +33 -0
- package/resources/skills/story-creation/upstream/skills/story-long-analyze/references/style-profile-generator.md +76 -0
- package/resources/skills/story-creation/upstream/skills/story-long-analyze/references/style-profile-protocol.md +133 -0
- package/resources/skills/story-creation/upstream/skills/story-long-analyze/references/synthesis-inputs.md +39 -0
- package/resources/skills/story-creation/upstream/skills/story-long-analyze/scripts/build_chapter_index.py +466 -0
- package/resources/skills/story-creation/upstream/skills/story-long-analyze/scripts/inspect_existing_assets.py +702 -0
- package/resources/skills/story-creation/upstream/skills/story-long-analyze/scripts/inspiration_index.py +864 -0
- package/resources/skills/story-creation/upstream/skills/story-long-analyze/scripts/manage_analysis_run.py +1145 -0
- package/resources/skills/story-creation/upstream/skills/story-long-analyze/scripts/render_relation_chart.py +425 -0
- package/resources/skills/story-creation/upstream/skills/story-long-scan/SKILL.md +193 -0
- package/resources/skills/story-creation/upstream/skills/story-long-scan/references/genre-trends.md +197 -0
- package/resources/skills/story-creation/upstream/skills/story-long-scan/references/platform-ciweimao.md +19 -0
- package/resources/skills/story-creation/upstream/skills/story-long-scan/references/platform-fanqie.md +45 -0
- package/resources/skills/story-creation/upstream/skills/story-long-scan/references/platform-jjwxc.md +28 -0
- package/resources/skills/story-creation/upstream/skills/story-long-scan/references/platform-qidian.md +35 -0
- package/resources/skills/story-creation/upstream/skills/story-long-scan/references/platform-qimao.md +27 -0
- package/resources/skills/story-creation/upstream/skills/story-long-scan/references/publishing-guide.md +114 -0
- package/resources/skills/story-creation/upstream/skills/story-long-scan/references/reader-profiling.md +105 -0
- package/resources/skills/story-creation/upstream/skills/story-long-scan/references/topic-decision.md +82 -0
- package/resources/skills/story-creation/upstream/skills/story-long-scan/scripts/aggregate-rank.js +682 -0
- package/resources/skills/story-creation/upstream/skills/story-long-scan/scripts/cdp-utils.js +242 -0
- package/resources/skills/story-creation/upstream/skills/story-long-scan/scripts/ciweimao-rank-scraper.js +240 -0
- package/resources/skills/story-creation/upstream/skills/story-long-scan/scripts/fanqie-rank-scraper.js +658 -0
- package/resources/skills/story-creation/upstream/skills/story-long-scan/scripts/jjwxc-rank-scraper.js +400 -0
- package/resources/skills/story-creation/upstream/skills/story-long-scan/scripts/qidian-rank-scraper.js +592 -0
- package/resources/skills/story-creation/upstream/skills/story-long-scan/scripts/qimao-rank-scraper.js +435 -0
- package/resources/skills/story-creation/upstream/skills/story-long-write/SKILL.md +136 -0
- package/resources/skills/story-creation/upstream/skills/story-long-write/references/agent-calls.md +47 -0
- package/resources/skills/story-creation/upstream/skills/story-long-write/references/anti-ai-writing.md +556 -0
- package/resources/skills/story-creation/upstream/skills/story-long-write/references/artifact-protocols.md +183 -0
- package/resources/skills/story-creation/upstream/skills/story-long-write/references/author-memory-maintenance.md +75 -0
- package/resources/skills/story-creation/upstream/skills/story-long-write/references/author-memory.md +117 -0
- package/resources/skills/story-creation/upstream/skills/story-long-write/references/banned-words.md +151 -0
- package/resources/skills/story-creation/upstream/skills/story-long-write/references/benchmark-recall.md +16 -0
- package/resources/skills/story-creation/upstream/skills/story-long-write/references/character-basics.md +445 -0
- package/resources/skills/story-creation/upstream/skills/story-long-write/references/character-design-methods.md +428 -0
- package/resources/skills/story-creation/upstream/skills/story-long-write/references/character-relations.md +433 -0
- package/resources/skills/story-creation/upstream/skills/story-long-write/references/commercial-core-methods.md +502 -0
- package/resources/skills/story-creation/upstream/skills/story-long-write/references/cross-book-recall.md +88 -0
- package/resources/skills/story-creation/upstream/skills/story-long-write/references/deslop-gates.md +171 -0
- package/resources/skills/story-creation/upstream/skills/story-long-write/references/dialogue-mastery.md +288 -0
- package/resources/skills/story-creation/upstream/skills/story-long-write/references/emotion-on-page.md +116 -0
- package/resources/skills/story-creation/upstream/skills/story-long-write/references/emotional-arc-design.md +313 -0
- package/resources/skills/story-creation/upstream/skills/story-long-write/references/emotional-methods.md +209 -0
- package/resources/skills/story-creation/upstream/skills/story-long-write/references/female-audience-writing.md +188 -0
- package/resources/skills/story-creation/upstream/skills/story-long-write/references/genre-prose-cards//344/270/234/346/226/271/344/273/231/344/276/240.md +51 -0
- package/resources/skills/story-creation/upstream/skills/story-long-write/references/genre-prose-cards//344/274/240/347/273/237/347/216/204/345/271/273.md +51 -0
- package/resources/skills/story-creation/upstream/skills/story-long-write/references/genre-prose-cards//345/216/206/345/217/262/345/217/244/344/273/243.md +51 -0
- package/resources/skills/story-creation/upstream/skills/story-long-write/references/genre-prose-cards//345/216/206/345/217/262/350/204/221/346/264/236.md +51 -0
- package/resources/skills/story-creation/upstream/skills/story-long-write/references/genre-prose-cards//345/217/214/347/224/267/344/270/273.md +53 -0
- package/resources/skills/story-creation/upstream/skills/story-long-write/references/genre-prose-cards//345/217/244/350/250/200/350/204/221/346/264/236.md +51 -0
- package/resources/skills/story-creation/upstream/skills/story-long-write/references/genre-prose-cards//345/217/244/351/243/216/344/270/226/346/203/205.md +51 -0
- package/resources/skills/story-creation/upstream/skills/story-long-write/references/genre-prose-cards//345/245/263/351/242/221/346/202/254/347/226/221.md +51 -0
- package/resources/skills/story-creation/upstream/skills/story-long-write/references/genre-prose-cards//345/245/263/351/242/221/347/247/215/347/224/260.md +51 -0
- package/resources/skills/story-creation/upstream/skills/story-long-write/references/genre-prose-cards//345/256/253/346/226/227/345/256/205/346/226/227.md +51 -0
- package/resources/skills/story-creation/upstream/skills/story-long-write/references/genre-prose-cards//345/271/264/344/273/243.md +53 -0
- package/resources/skills/story-creation/upstream/skills/story-long-write/references/genre-prose-cards//345/277/253/347/251/277.md +51 -0
- package/resources/skills/story-creation/upstream/skills/story-long-write/references/genre-prose-cards//346/202/254/347/226/221/347/201/265/345/274/202.md +51 -0
- package/resources/skills/story-creation/upstream/skills/story-long-write/references/genre-prose-cards//346/202/254/347/226/221/350/204/221/346/264/236.md +51 -0
- package/resources/skills/story-creation/upstream/skills/story-long-write/references/genre-prose-cards//346/210/230/347/245/236/350/265/230/345/251/277.md +51 -0
- package/resources/skills/story-creation/upstream/skills/story-long-write/references/genre-prose-cards//346/212/227/346/210/230/350/260/215/346/210/230.md +51 -0
- package/resources/skills/story-creation/upstream/skills/story-long-write/references/genre-prose-cards//346/230/237/345/205/211/347/222/200/347/222/250.md +51 -0
- package/resources/skills/story-creation/upstream/skills/story-long-write/references/genre-prose-cards//346/260/221/345/233/275/350/250/200/346/203/205.md +51 -0
- package/resources/skills/story-creation/upstream/skills/story-long-write/references/genre-prose-cards//346/270/270/346/210/217/344/275/223/350/202/262.md +51 -0
- package/resources/skills/story-creation/upstream/skills/story-long-write/references/genre-prose-cards//347/216/204/345/271/273/350/204/221/346/264/236.md +53 -0
- package/resources/skills/story-creation/upstream/skills/story-long-write/references/genre-prose-cards//347/216/204/345/271/273/350/250/200/346/203/205.md +51 -0
- package/resources/skills/story-creation/upstream/skills/story-long-write/references/genre-prose-cards//347/216/260/350/250/200/350/204/221/346/264/236.md +51 -0
- package/resources/skills/story-creation/upstream/skills/story-long-write/references/genre-prose-cards//347/247/221/345/271/273/346/234/253/344/270/226.md +51 -0
- package/resources/skills/story-creation/upstream/skills/story-long-write/references/genre-prose-cards//350/201/214/345/234/272/345/251/232/346/201/213.md +51 -0
- package/resources/skills/story-creation/upstream/skills/story-long-write/references/genre-prose-cards//350/245/277/346/226/271/345/245/207/345/271/273.md +51 -0
- package/resources/skills/story-creation/upstream/skills/story-long-write/references/genre-prose-cards//350/261/252/351/227/250/346/200/273/350/243/201.md +53 -0
- package/resources/skills/story-creation/upstream/skills/story-long-write/references/genre-prose-cards//351/203/275/345/270/202/344/277/256/347/234/237.md +51 -0
- package/resources/skills/story-creation/upstream/skills/story-long-write/references/genre-prose-cards//351/203/275/345/270/202/346/227/245/345/270/270.md +53 -0
- package/resources/skills/story-creation/upstream/skills/story-long-write/references/genre-prose-cards//351/203/275/345/270/202/347/247/215/347/224/260.md +51 -0
- package/resources/skills/story-creation/upstream/skills/story-long-write/references/genre-prose-cards//351/203/275/345/270/202/350/204/221/346/264/236.md +53 -0
- package/resources/skills/story-creation/upstream/skills/story-long-write/references/genre-prose-cards//351/203/275/345/270/202/351/253/230/346/255/246.md +53 -0
- package/resources/skills/story-creation/upstream/skills/story-long-write/references/genre-prose-cards//351/235/222/346/230/245/347/224/234/345/256/240.md +51 -0
- package/resources/skills/story-creation/upstream/skills/story-long-write/references/genre-prose-cards.md +91 -0
- package/resources/skills/story-creation/upstream/skills/story-long-write/references/genre-readers.md +235 -0
- package/resources/skills/story-creation/upstream/skills/story-long-write/references/long-chapter-hooks.md +225 -0
- package/resources/skills/story-creation/upstream/skills/story-long-write/references/long-chapter-quality.md +177 -0
- package/resources/skills/story-creation/upstream/skills/story-long-write/references/long-format.md +36 -0
- package/resources/skills/story-creation/upstream/skills/story-long-write/references/long-genre-catalog.md +394 -0
- package/resources/skills/story-creation/upstream/skills/story-long-write/references/long-genre-mechanics.md +415 -0
- package/resources/skills/story-creation/upstream/skills/story-long-write/references/long-reversal.md +335 -0
- package/resources/skills/story-creation/upstream/skills/story-long-write/references/long-suspense.md +352 -0
- package/resources/skills/story-creation/upstream/skills/story-long-write/references/opening-design.md +349 -0
- package/resources/skills/story-creation/upstream/skills/story-long-write/references/outline-conflict.md +457 -0
- package/resources/skills/story-creation/upstream/skills/story-long-write/references/outline-methods.md +287 -0
- package/resources/skills/story-creation/upstream/skills/story-long-write/references/outline-rhythm.md +389 -0
- package/resources/skills/story-creation/upstream/skills/story-long-write/references/outline-structure-theory.md +273 -0
- package/resources/skills/story-creation/upstream/skills/story-long-write/references/plot-core-methods.md +522 -0
- package/resources/skills/story-creation/upstream/skills/story-long-write/references/plot-emotion-system.md +354 -0
- package/resources/skills/story-creation/upstream/skills/story-long-write/references/plot-frameworks.md +711 -0
- package/resources/skills/story-creation/upstream/skills/story-long-write/references/plot-special-topics.md +622 -0
- package/resources/skills/story-creation/upstream/skills/story-long-write/references/project-files.md +114 -0
- package/resources/skills/story-creation/upstream/skills/story-long-write/references/reader-contract-and-progression.md +117 -0
- package/resources/skills/story-creation/upstream/skills/story-long-write/references/reference-index.md +86 -0
- package/resources/skills/story-creation/upstream/skills/story-long-write/references/stop-and-fix.md +9 -0
- package/resources/skills/story-creation/upstream/skills/story-long-write/references/style-combat-face.md +352 -0
- package/resources/skills/story-creation/upstream/skills/story-long-write/references/style-craft.md +327 -0
- package/resources/skills/story-creation/upstream/skills/story-long-write/references/style-genre-modules.md +510 -0
- package/resources/skills/story-creation/upstream/skills/story-long-write/references/style-resolution.md +27 -0
- package/resources/skills/story-creation/upstream/skills/story-long-write/references/tracking-initialization.md +31 -0
- package/resources/skills/story-creation/upstream/skills/story-long-write/references/tracking-transaction.md +146 -0
- package/resources/skills/story-creation/upstream/skills/story-long-write/references/workflow-chapter.md +104 -0
- package/resources/skills/story-creation/upstream/skills/story-long-write/references/workflow-daily.md +75 -0
- package/resources/skills/story-creation/upstream/skills/story-long-write/references/workflow-outline.md +157 -0
- package/resources/skills/story-creation/upstream/skills/story-long-write/references/workflow-revision.md +89 -0
- package/resources/skills/story-creation/upstream/skills/story-long-write/references/workflow-setup.md +170 -0
- package/resources/skills/story-creation/upstream/skills/story-long-write/references/workflow-volume.md +142 -0
- package/resources/skills/story-creation/upstream/skills/story-long-write/references/writer-prompt-fallback.md +24 -0
- package/resources/skills/story-creation/upstream/skills/story-long-write/references/writing-craft.md +442 -0
- package/resources/skills/story-creation/upstream/skills/story-long-write/scripts/author_memory_commit.py +1635 -0
- package/resources/skills/story-creation/upstream/skills/story-long-write/scripts/build_architect_brief.py +260 -0
- package/resources/skills/story-creation/upstream/skills/story-long-write/scripts/build_writer_prompt.py +611 -0
- package/resources/skills/story-creation/upstream/skills/story-long-write/scripts/check-ai-patterns.js +1586 -0
- package/resources/skills/story-creation/upstream/skills/story-long-write/scripts/check-degeneration.js +349 -0
- package/resources/skills/story-creation/upstream/skills/story-long-write/scripts/check-outline-contract.js +520 -0
- package/resources/skills/story-creation/upstream/skills/story-long-write/scripts/check-outline-copy.js +313 -0
- package/resources/skills/story-creation/upstream/skills/story-long-write/scripts/normalize-punctuation.js +415 -0
- package/resources/skills/story-creation/upstream/skills/story-long-write/scripts/outline_view.py +286 -0
- package/resources/skills/story-creation/upstream/skills/story-long-write/scripts/storyctl.py +561 -0
- package/resources/skills/story-creation/upstream/skills/story-long-write/scripts/style-whitelist.js +39 -0
- package/resources/skills/story-creation/upstream/skills/story-long-write/scripts/tracking_commit.py +1691 -0
- package/resources/skills/story-creation/upstream/skills/story-long-write/scripts/wordcount_core.py +405 -0
- package/resources/skills/story-creation/upstream/skills/story-review/SKILL.md +231 -0
- package/resources/skills/story-creation/upstream/skills/story-review/references/agent-prompts.md +184 -0
- package/resources/skills/story-creation/upstream/skills/story-review/references/anti-ai-writing.md +556 -0
- package/resources/skills/story-creation/upstream/skills/story-review/references/author-memory-maintenance.md +75 -0
- package/resources/skills/story-creation/upstream/skills/story-review/references/author-memory.md +117 -0
- package/resources/skills/story-creation/upstream/skills/story-review/references/banned-words.md +151 -0
- package/resources/skills/story-creation/upstream/skills/story-review/references/batch-review.md +19 -0
- package/resources/skills/story-creation/upstream/skills/story-review/references/character-relations.md +433 -0
- package/resources/skills/story-creation/upstream/skills/story-review/references/dialogue-mastery.md +288 -0
- package/resources/skills/story-creation/upstream/skills/story-review/references/plot-core-methods.md +522 -0
- package/resources/skills/story-creation/upstream/skills/story-review/references/quality-rubric.md +55 -0
- package/resources/skills/story-creation/upstream/skills/story-review/references/review-quality.md +246 -0
- package/resources/skills/story-creation/upstream/skills/story-review/references/review-tracking.md +10 -0
- package/resources/skills/story-creation/upstream/skills/story-review/references/rubrics/fanqie.md +18 -0
- package/resources/skills/story-creation/upstream/skills/story-review/references/rubrics/qidian.md +19 -0
- package/resources/skills/story-creation/upstream/skills/story-review/references/rubrics/zhihu.md +20 -0
- package/resources/skills/story-creation/upstream/skills/story-review/references/solo.md +52 -0
- package/resources/skills/story-creation/upstream/skills/story-review/references/style-resolution.md +27 -0
- package/resources/skills/story-creation/upstream/skills/story-review/references/tracking-initialization.md +31 -0
- package/resources/skills/story-creation/upstream/skills/story-review/references/tracking-transaction.md +146 -0
- package/resources/skills/story-creation/upstream/skills/story-review/scripts/author_memory_commit.py +1635 -0
- package/resources/skills/story-creation/upstream/skills/story-review/scripts/check-ai-patterns.js +1586 -0
- package/resources/skills/story-creation/upstream/skills/story-review/scripts/check-degeneration.js +349 -0
- package/resources/skills/story-creation/upstream/skills/story-review/scripts/normalize-punctuation.js +415 -0
- package/resources/skills/story-creation/upstream/skills/story-review/scripts/style-whitelist.js +39 -0
- package/resources/skills/story-creation/upstream/skills/story-review/scripts/tracking_commit.py +1691 -0
- package/resources/skills/story-creation/upstream/skills/story-review/scripts/wordcount_core.py +405 -0
- package/resources/skills/story-creation/upstream/skills/story-setup/SKILL.md +165 -0
- package/resources/skills/story-creation/upstream/skills/story-setup/references/agent-references/agent-quality.md +72 -0
- package/resources/skills/story-creation/upstream/skills/story-setup/references/agent-references/agent-reference-profiles.md +55 -0
- package/resources/skills/story-creation/upstream/skills/story-setup/references/agent-references/anti-ai-writing.md +556 -0
- package/resources/skills/story-creation/upstream/skills/story-setup/references/agent-references/banned-words.md +151 -0
- package/resources/skills/story-creation/upstream/skills/story-setup/references/agent-references/benchmark-style-load.md +107 -0
- package/resources/skills/story-creation/upstream/skills/story-setup/references/agent-references/character-basics.md +445 -0
- package/resources/skills/story-creation/upstream/skills/story-setup/references/agent-references/character-design-methods.md +428 -0
- package/resources/skills/story-creation/upstream/skills/story-setup/references/agent-references/character-relations.md +433 -0
- package/resources/skills/story-creation/upstream/skills/story-setup/references/agent-references/deslop-gates.md +171 -0
- package/resources/skills/story-creation/upstream/skills/story-setup/references/agent-references/dialogue-mastery.md +288 -0
- package/resources/skills/story-creation/upstream/skills/story-setup/references/agent-references/emotion-on-page.md +116 -0
- package/resources/skills/story-creation/upstream/skills/story-setup/references/agent-references/emotional-arc-design.md +313 -0
- package/resources/skills/story-creation/upstream/skills/story-setup/references/agent-references/format-and-structure.md +168 -0
- package/resources/skills/story-creation/upstream/skills/story-setup/references/agent-references/genre-prose-cards//344/270/234/346/226/271/344/273/231/344/276/240.md +51 -0
- package/resources/skills/story-creation/upstream/skills/story-setup/references/agent-references/genre-prose-cards//344/274/240/347/273/237/347/216/204/345/271/273.md +51 -0
- package/resources/skills/story-creation/upstream/skills/story-setup/references/agent-references/genre-prose-cards//345/216/206/345/217/262/345/217/244/344/273/243.md +51 -0
- package/resources/skills/story-creation/upstream/skills/story-setup/references/agent-references/genre-prose-cards//345/216/206/345/217/262/350/204/221/346/264/236.md +51 -0
- package/resources/skills/story-creation/upstream/skills/story-setup/references/agent-references/genre-prose-cards//345/217/214/347/224/267/344/270/273.md +53 -0
- package/resources/skills/story-creation/upstream/skills/story-setup/references/agent-references/genre-prose-cards//345/217/244/350/250/200/350/204/221/346/264/236.md +51 -0
- package/resources/skills/story-creation/upstream/skills/story-setup/references/agent-references/genre-prose-cards//345/217/244/351/243/216/344/270/226/346/203/205.md +51 -0
- package/resources/skills/story-creation/upstream/skills/story-setup/references/agent-references/genre-prose-cards//345/245/263/351/242/221/346/202/254/347/226/221.md +51 -0
- package/resources/skills/story-creation/upstream/skills/story-setup/references/agent-references/genre-prose-cards//345/245/263/351/242/221/347/247/215/347/224/260.md +51 -0
- package/resources/skills/story-creation/upstream/skills/story-setup/references/agent-references/genre-prose-cards//345/256/253/346/226/227/345/256/205/346/226/227.md +51 -0
- package/resources/skills/story-creation/upstream/skills/story-setup/references/agent-references/genre-prose-cards//345/271/264/344/273/243.md +53 -0
- package/resources/skills/story-creation/upstream/skills/story-setup/references/agent-references/genre-prose-cards//345/277/253/347/251/277.md +51 -0
- package/resources/skills/story-creation/upstream/skills/story-setup/references/agent-references/genre-prose-cards//346/202/254/347/226/221/347/201/265/345/274/202.md +51 -0
- package/resources/skills/story-creation/upstream/skills/story-setup/references/agent-references/genre-prose-cards//346/202/254/347/226/221/350/204/221/346/264/236.md +51 -0
- package/resources/skills/story-creation/upstream/skills/story-setup/references/agent-references/genre-prose-cards//346/210/230/347/245/236/350/265/230/345/251/277.md +51 -0
- package/resources/skills/story-creation/upstream/skills/story-setup/references/agent-references/genre-prose-cards//346/212/227/346/210/230/350/260/215/346/210/230.md +51 -0
- package/resources/skills/story-creation/upstream/skills/story-setup/references/agent-references/genre-prose-cards//346/230/237/345/205/211/347/222/200/347/222/250.md +51 -0
- package/resources/skills/story-creation/upstream/skills/story-setup/references/agent-references/genre-prose-cards//346/260/221/345/233/275/350/250/200/346/203/205.md +51 -0
- package/resources/skills/story-creation/upstream/skills/story-setup/references/agent-references/genre-prose-cards//346/270/270/346/210/217/344/275/223/350/202/262.md +51 -0
- package/resources/skills/story-creation/upstream/skills/story-setup/references/agent-references/genre-prose-cards//347/216/204/345/271/273/350/204/221/346/264/236.md +53 -0
- package/resources/skills/story-creation/upstream/skills/story-setup/references/agent-references/genre-prose-cards//347/216/204/345/271/273/350/250/200/346/203/205.md +51 -0
- package/resources/skills/story-creation/upstream/skills/story-setup/references/agent-references/genre-prose-cards//347/216/260/350/250/200/350/204/221/346/264/236.md +51 -0
- package/resources/skills/story-creation/upstream/skills/story-setup/references/agent-references/genre-prose-cards//347/247/221/345/271/273/346/234/253/344/270/226.md +51 -0
- package/resources/skills/story-creation/upstream/skills/story-setup/references/agent-references/genre-prose-cards//350/201/214/345/234/272/345/251/232/346/201/213.md +51 -0
- package/resources/skills/story-creation/upstream/skills/story-setup/references/agent-references/genre-prose-cards//350/245/277/346/226/271/345/245/207/345/271/273.md +51 -0
- package/resources/skills/story-creation/upstream/skills/story-setup/references/agent-references/genre-prose-cards//350/261/252/351/227/250/346/200/273/350/243/201.md +53 -0
- package/resources/skills/story-creation/upstream/skills/story-setup/references/agent-references/genre-prose-cards//351/203/275/345/270/202/344/277/256/347/234/237.md +51 -0
- package/resources/skills/story-creation/upstream/skills/story-setup/references/agent-references/genre-prose-cards//351/203/275/345/270/202/346/227/245/345/270/270.md +53 -0
- package/resources/skills/story-creation/upstream/skills/story-setup/references/agent-references/genre-prose-cards//351/203/275/345/270/202/347/247/215/347/224/260.md +51 -0
- package/resources/skills/story-creation/upstream/skills/story-setup/references/agent-references/genre-prose-cards//351/203/275/345/270/202/350/204/221/346/264/236.md +53 -0
- package/resources/skills/story-creation/upstream/skills/story-setup/references/agent-references/genre-prose-cards//351/203/275/345/270/202/351/253/230/346/255/246.md +53 -0
- package/resources/skills/story-creation/upstream/skills/story-setup/references/agent-references/genre-prose-cards//351/235/222/346/230/245/347/224/234/345/256/240.md +51 -0
- package/resources/skills/story-creation/upstream/skills/story-setup/references/agent-references/genre-prose-cards.md +91 -0
- package/resources/skills/story-creation/upstream/skills/story-setup/references/agent-references/genre-readers.md +235 -0
- package/resources/skills/story-creation/upstream/skills/story-setup/references/agent-references/long-chapter-hooks.md +225 -0
- package/resources/skills/story-creation/upstream/skills/story-setup/references/agent-references/long-emotional-methods.md +209 -0
- package/resources/skills/story-creation/upstream/skills/story-setup/references/agent-references/long-genre-catalog.md +394 -0
- package/resources/skills/story-creation/upstream/skills/story-setup/references/agent-references/long-genre-mechanics.md +415 -0
- package/resources/skills/story-creation/upstream/skills/story-setup/references/agent-references/long-quality.md +42 -0
- package/resources/skills/story-creation/upstream/skills/story-setup/references/agent-references/long-reversal.md +335 -0
- package/resources/skills/story-creation/upstream/skills/story-setup/references/agent-references/long-suspense.md +352 -0
- package/resources/skills/story-creation/upstream/skills/story-setup/references/agent-references/opening-design.md +349 -0
- package/resources/skills/story-creation/upstream/skills/story-setup/references/agent-references/outline-conflict.md +457 -0
- package/resources/skills/story-creation/upstream/skills/story-setup/references/agent-references/outline-methods.md +287 -0
- package/resources/skills/story-creation/upstream/skills/story-setup/references/agent-references/outline-rhythm.md +389 -0
- package/resources/skills/story-creation/upstream/skills/story-setup/references/agent-references/plot-core-methods.md +522 -0
- package/resources/skills/story-creation/upstream/skills/story-setup/references/agent-references/short-chapter-hooks.md +225 -0
- package/resources/skills/story-creation/upstream/skills/story-setup/references/agent-references/short-emotional-methods.md +179 -0
- package/resources/skills/story-creation/upstream/skills/story-setup/references/agent-references/short-genre-formulas.md +417 -0
- package/resources/skills/story-creation/upstream/skills/story-setup/references/agent-references/short-paragraph-hooks.md +146 -0
- package/resources/skills/story-creation/upstream/skills/story-setup/references/agent-references/short-quality.md +39 -0
- package/resources/skills/story-creation/upstream/skills/story-setup/references/agent-references/short-reversal.md +355 -0
- package/resources/skills/story-creation/upstream/skills/story-setup/references/agent-references/short-suspense.md +352 -0
- package/resources/skills/story-creation/upstream/skills/story-setup/references/agent-references/style-combat-face.md +352 -0
- package/resources/skills/story-creation/upstream/skills/story-setup/references/agent-references/style-genre-modules.md +510 -0
- package/resources/skills/story-creation/upstream/skills/story-setup/references/agent-references/style-resolution.md +27 -0
- package/resources/skills/story-creation/upstream/skills/story-setup/references/agent-references/writing-craft.md +442 -0
- package/resources/skills/story-creation/upstream/skills/story-setup/references/diagnostics.md +38 -0
- package/resources/skills/story-creation/upstream/skills/story-short-analyze/SKILL.md +224 -0
- package/resources/skills/story-creation/upstream/skills/story-short-analyze/references/analysis-character-basics.md +453 -0
- package/resources/skills/story-creation/upstream/skills/story-short-analyze/references/analysis-character-design.md +438 -0
- package/resources/skills/story-creation/upstream/skills/story-short-analyze/references/analysis-character-relations.md +395 -0
- package/resources/skills/story-creation/upstream/skills/story-short-analyze/references/analysis-method.md +42 -0
- package/resources/skills/story-creation/upstream/skills/story-short-analyze/references/analysis-paragraph-hooks.md +146 -0
- package/resources/skills/story-creation/upstream/skills/story-short-analyze/references/analysis-reader-profile.md +245 -0
- package/resources/skills/story-creation/upstream/skills/story-short-analyze/references/analysis-report-style.md +45 -0
- package/resources/skills/story-creation/upstream/skills/story-short-analyze/references/analysis-short-genres.md +65 -0
- package/resources/skills/story-creation/upstream/skills/story-short-analyze/references/analysis-short-hooks.md +77 -0
- package/resources/skills/story-creation/upstream/skills/story-short-analyze/references/analysis-short-mechanics.md +82 -0
- package/resources/skills/story-creation/upstream/skills/story-short-analyze/references/analysis-short-patterns.md +50 -0
- package/resources/skills/story-creation/upstream/skills/story-short-analyze/references/analysis-short-suspense.md +98 -0
- package/resources/skills/story-creation/upstream/skills/story-short-analyze/references/analysis-writing-techniques.md +477 -0
- package/resources/skills/story-creation/upstream/skills/story-short-analyze/references/deconstruction-examples.md +79 -0
- package/resources/skills/story-creation/upstream/skills/story-short-analyze/references/optional-modules.md +97 -0
- package/resources/skills/story-creation/upstream/skills/story-short-analyze/references/output-contract.md +127 -0
- package/resources/skills/story-creation/upstream/skills/story-short-analyze/references/quality-checklist.md +80 -0
- package/resources/skills/story-creation/upstream/skills/story-short-analyze/references/real-market-data.md +90 -0
- package/resources/skills/story-creation/upstream/skills/story-short-analyze/references/source-story-quality.md +221 -0
- package/resources/skills/story-creation/upstream/skills/story-short-analyze/references/stage2-3-structure-emotion.md +308 -0
- package/resources/skills/story-creation/upstream/skills/story-short-analyze/references/stage4-6-reversal-summary.md +611 -0
- package/resources/skills/story-creation/upstream/skills/story-short-analyze/references/zhihu-style.md +54 -0
- package/resources/skills/story-creation/upstream/skills/story-short-scan/SKILL.md +182 -0
- package/resources/skills/story-creation/upstream/skills/story-short-scan/references/manual-rank-input.md +36 -0
- package/resources/skills/story-creation/upstream/skills/story-short-scan/references/platform-dianzhong.md +24 -0
- package/resources/skills/story-creation/upstream/skills/story-short-scan/references/platform-heiyan.md +21 -0
- package/resources/skills/story-creation/upstream/skills/story-short-scan/references/real-market-data.md +90 -0
- package/resources/skills/story-creation/upstream/skills/story-short-scan/references/topic-match.md +38 -0
- package/resources/skills/story-creation/upstream/skills/story-short-scan/scripts/aggregate-rank.js +682 -0
- package/resources/skills/story-creation/upstream/skills/story-short-scan/scripts/cdp-utils.js +242 -0
- package/resources/skills/story-creation/upstream/skills/story-short-scan/scripts/dz-browse-scraper.js +232 -0
- package/resources/skills/story-creation/upstream/skills/story-short-scan/scripts/heiyan-booklist-scraper.js +345 -0
- package/resources/skills/story-creation/upstream/skills/story-short-write/SKILL.md +136 -0
- package/resources/skills/story-creation/upstream/skills/story-short-write/references/agent-calls.md +13 -0
- package/resources/skills/story-creation/upstream/skills/story-short-write/references/author-memory-maintenance.md +75 -0
- package/resources/skills/story-creation/upstream/skills/story-short-write/references/author-memory.md +117 -0
- package/resources/skills/story-creation/upstream/skills/story-short-write/references/banned-words.md +151 -0
- package/resources/skills/story-creation/upstream/skills/story-short-write/references/benchmark-recall.md +40 -0
- package/resources/skills/story-creation/upstream/skills/story-short-write/references/cross-book-recall.md +62 -0
- package/resources/skills/story-creation/upstream/skills/story-short-write/references/dialogue-mastery.md +288 -0
- package/resources/skills/story-creation/upstream/skills/story-short-write/references/emotional-methods.md +179 -0
- package/resources/skills/story-creation/upstream/skills/story-short-write/references/genre-styles//344/270/226/346/203/205/346/211/223/350/204/270.md +159 -0
- package/resources/skills/story-creation/upstream/skills/story-short-write/references/genre-styles//345/217/214/347/224/267/344/270/273.md +156 -0
- package/resources/skills/story-creation/upstream/skills/story-short-write/references/genre-styles//345/244/215/344/273/207/346/211/223/350/204/270.md +163 -0
- package/resources/skills/story-creation/upstream/skills/story-short-write/references/genre-styles//345/256/205/346/226/227/345/256/253/346/226/227.md +167 -0
- package/resources/skills/story-creation/upstream/skills/story-short-write/references/genre-styles//346/200/273/350/243/201/350/261/252/351/227/250.md +178 -0
- package/resources/skills/story-creation/upstream/skills/story-short-write/references/genre-styles//346/202/254/347/226/221.md +166 -0
- package/resources/skills/story-creation/upstream/skills/story-short-write/references/genre-styles//346/260/221/344/277/227/346/200/252/350/260/210.md +159 -0
- package/resources/skills/story-creation/upstream/skills/story-short-write/references/genre-styles//346/262/231/351/233/225/350/204/221/346/264/236.md +151 -0
- package/resources/skills/story-creation/upstream/skills/story-short-write/references/genre-styles//347/224/234/345/256/240.md +153 -0
- package/resources/skills/story-creation/upstream/skills/story-short-write/references/genre-styles//350/277/275/345/246/273/347/201/253/350/221/254/345/234/272.md +210 -0
- package/resources/skills/story-creation/upstream/skills/story-short-write/references/genre-writing-formulas.md +417 -0
- package/resources/skills/story-creation/upstream/skills/story-short-write/references/genre-writing-techniques.md +490 -0
- package/resources/skills/story-creation/upstream/skills/story-short-write/references/hooks-chapter.md +225 -0
- package/resources/skills/story-creation/upstream/skills/story-short-write/references/hooks-paragraph.md +146 -0
- package/resources/skills/story-creation/upstream/skills/story-short-write/references/output-contract.md +127 -0
- package/resources/skills/story-creation/upstream/skills/story-short-write/references/reference-index.md +23 -0
- package/resources/skills/story-creation/upstream/skills/story-short-write/references/scene-craft.md +40 -0
- package/resources/skills/story-creation/upstream/skills/story-short-write/references/short-craft.md +147 -0
- package/resources/skills/story-creation/upstream/skills/story-short-write/references/short-deslop.md +133 -0
- package/resources/skills/story-creation/upstream/skills/story-short-write/references/short-format.md +199 -0
- package/resources/skills/story-creation/upstream/skills/story-short-write/references/short-prose-quality.md +224 -0
- package/resources/skills/story-creation/upstream/skills/story-short-write/references/short-reversal.md +355 -0
- package/resources/skills/story-creation/upstream/skills/story-short-write/references/short-suspense.md +352 -0
- package/resources/skills/story-creation/upstream/skills/story-short-write/references/style-resolution.md +27 -0
- package/resources/skills/story-creation/upstream/skills/story-short-write/references/submission-craft.md +35 -0
- package/resources/skills/story-creation/upstream/skills/story-short-write/references/villain-and-reveal.md +153 -0
- package/resources/skills/story-creation/upstream/skills/story-short-write/references/workflow-design.md +85 -0
- package/resources/skills/story-creation/upstream/skills/story-short-write/references/workflow-draft.md +116 -0
- package/resources/skills/story-creation/upstream/skills/story-short-write/references/workflow-revision.md +99 -0
- package/resources/skills/story-creation/upstream/skills/story-short-write/references/writing-workflow.md +50 -0
- package/resources/skills/story-creation/upstream/skills/story-short-write/scripts/author_memory_commit.py +1635 -0
- package/resources/skills/story-creation/upstream/skills/story-short-write/scripts/check-ai-patterns.js +1586 -0
- package/resources/skills/story-creation/upstream/skills/story-short-write/scripts/check-degeneration.js +349 -0
- package/resources/skills/story-creation/upstream/skills/story-short-write/scripts/check-delivery-contract.js +241 -0
- package/resources/skills/story-creation/upstream/skills/story-short-write/scripts/check-outline-copy.js +313 -0
- package/resources/skills/story-creation/upstream/skills/story-short-write/scripts/check-phase2-contract.js +363 -0
- package/resources/skills/story-creation/upstream/skills/story-short-write/scripts/normalize-punctuation.js +415 -0
- package/resources/skills/story-creation/upstream/skills/story-short-write/scripts/style-whitelist.js +39 -0
- package/resources/skills/video-recap-production/manifest.json +673 -0
- package/resources/skills/video-recap-production/upstream/CHANGELOG.md +371 -0
- package/resources/skills/video-recap-production/upstream/LICENSE +21 -0
- package/resources/skills/video-recap-production/upstream/README.en.md +468 -0
- package/resources/skills/video-recap-production/upstream/README.md +459 -0
- package/resources/skills/video-recap-production/upstream/manifest.json +839 -0
- package/resources/skills/video-recap-production/upstream/skills/video-assemble/SKILL.md +112 -0
- package/resources/skills/video-recap-production/upstream/skills/video-assemble/references/audio-modes.md +63 -0
- package/resources/skills/video-recap-production/upstream/skills/video-assemble/references/explicit-audio-mix.md +75 -0
- package/resources/skills/video-recap-production/upstream/skills/video-assemble/references/foreground-compose.md +118 -0
- package/resources/skills/video-recap-production/upstream/skills/video-assemble/references/jianying/LICENSE.duo-video +21 -0
- package/resources/skills/video-recap-production/upstream/skills/video-assemble/references/jianying/SOURCE.md +15 -0
- package/resources/skills/video-recap-production/upstream/skills/video-assemble/references/jianying/empty_draft_meta_info.json +69 -0
- package/resources/skills/video-recap-production/upstream/skills/video-assemble/references/jianying/empty_jy_combination_segment.json +84 -0
- package/resources/skills/video-recap-production/upstream/skills/video-assemble/references/jianying/empty_jy_combination_video_material.json +98 -0
- package/resources/skills/video-recap-production/upstream/skills/video-assemble/references/jianying/empty_jy_draft.json +204 -0
- package/resources/skills/video-recap-production/upstream/skills/video-assemble/references/jianying/empty_jy_material_video.json +83 -0
- package/resources/skills/video-recap-production/upstream/skills/video-assemble/references/jianying/empty_jy_meta_material_value.json +23 -0
- package/resources/skills/video-recap-production/upstream/skills/video-assemble/references/jianying/empty_jy_project_info.json +133 -0
- package/resources/skills/video-recap-production/upstream/skills/video-assemble/references/jianying/empty_jy_segment.json +70 -0
- package/resources/skills/video-recap-production/upstream/skills/video-assemble/references/jianying/empty_jy_text_styles.json +30 -0
- package/resources/skills/video-recap-production/upstream/skills/video-assemble/references/jianying/empty_yj_material_audio.json +41 -0
- package/resources/skills/video-recap-production/upstream/skills/video-assemble/references/jianying/empty_yj_material_text.json +109 -0
- package/resources/skills/video-recap-production/upstream/skills/video-assemble/references/narration-adoption.md +103 -0
- package/resources/skills/video-recap-production/upstream/skills/video-assemble/references/packaging.md +45 -0
- package/resources/skills/video-recap-production/upstream/skills/video-assemble/references/pair-media.md +74 -0
- package/resources/skills/video-recap-production/upstream/skills/video-assemble/references/source-score.md +147 -0
- package/resources/skills/video-recap-production/upstream/skills/video-assemble/references/subtitle-track.md +202 -0
- package/resources/skills/video-recap-production/upstream/skills/video-assemble/scripts/adoption/__init__.py +1 -0
- package/resources/skills/video-recap-production/upstream/skills/video-assemble/scripts/adoption/audio_mix_binding.py +279 -0
- package/resources/skills/video-recap-production/upstream/skills/video-assemble/scripts/adoption/frozen_audio.py +187 -0
- package/resources/skills/video-recap-production/upstream/skills/video-assemble/scripts/adoption/narration_binding.py +323 -0
- package/resources/skills/video-recap-production/upstream/skills/video-assemble/scripts/adoption/strict_inputs.py +109 -0
- package/resources/skills/video-recap-production/upstream/skills/video-assemble/scripts/adoption/strict_publish.py +130 -0
- package/resources/skills/video-recap-production/upstream/skills/video-assemble/scripts/artifacts.py +47 -0
- package/resources/skills/video-recap-production/upstream/skills/video-assemble/scripts/assemble.py +591 -0
- package/resources/skills/video-recap-production/upstream/skills/video-assemble/scripts/assemble_constants.py +51 -0
- package/resources/skills/video-recap-production/upstream/skills/video-assemble/scripts/assembly_contract.py +318 -0
- package/resources/skills/video-recap-production/upstream/skills/video-assemble/scripts/assembly_settings.py +138 -0
- package/resources/skills/video-recap-production/upstream/skills/video-assemble/scripts/audio_automation.py +195 -0
- package/resources/skills/video-recap-production/upstream/skills/video-assemble/scripts/audio_mix.py +465 -0
- package/resources/skills/video-recap-production/upstream/skills/video-assemble/scripts/compose_foreground.py +293 -0
- package/resources/skills/video-recap-production/upstream/skills/video-assemble/scripts/export_jianying.py +254 -0
- package/resources/skills/video-recap-production/upstream/skills/video-assemble/scripts/jianying/__init__.py +1 -0
- package/resources/skills/video-recap-production/upstream/skills/video-assemble/scripts/jianying/builders.py +718 -0
- package/resources/skills/video-recap-production/upstream/skills/video-assemble/scripts/jianying/model.py +105 -0
- package/resources/skills/video-recap-production/upstream/skills/video-assemble/scripts/jianying/optional.py +23 -0
- package/resources/skills/video-recap-production/upstream/skills/video-assemble/scripts/jianying/schema.py +53 -0
- package/resources/skills/video-recap-production/upstream/skills/video-assemble/scripts/jianying/templates.py +37 -0
- package/resources/skills/video-recap-production/upstream/skills/video-assemble/scripts/jianying/timeline_contract.py +223 -0
- package/resources/skills/video-recap-production/upstream/skills/video-assemble/scripts/jianying/tracks.py +72 -0
- package/resources/skills/video-recap-production/upstream/skills/video-assemble/scripts/jianying/writer.py +383 -0
- package/resources/skills/video-recap-production/upstream/skills/video-assemble/scripts/lib.py +218 -0
- package/resources/skills/video-recap-production/upstream/skills/video-assemble/scripts/media.py +190 -0
- package/resources/skills/video-recap-production/upstream/skills/video-assemble/scripts/narration_audio.py +413 -0
- package/resources/skills/video-recap-production/upstream/skills/video-assemble/scripts/packaging.py +122 -0
- package/resources/skills/video-recap-production/upstream/skills/video-assemble/scripts/pair_media.py +216 -0
- package/resources/skills/video-recap-production/upstream/skills/video-assemble/scripts/render_preflight.py +33 -0
- package/resources/skills/video-recap-production/upstream/skills/video-assemble/scripts/source_score.py +469 -0
- package/resources/skills/video-recap-production/upstream/skills/video-assemble/scripts/source_subtitles.py +423 -0
- package/resources/skills/video-recap-production/upstream/skills/video-assemble/scripts/subtitles/__init__.py +1 -0
- package/resources/skills/video-recap-production/upstream/skills/video-assemble/scripts/subtitles/core.py +330 -0
- package/resources/skills/video-recap-production/upstream/skills/video-assemble/scripts/subtitles/render.py +82 -0
- package/resources/skills/video-recap-production/upstream/skills/video-assemble/scripts/subtitles/track.py +324 -0
- package/resources/skills/video-recap-production/upstream/skills/video-assemble/scripts/subtitles/track_binding.py +200 -0
- package/resources/skills/video-recap-production/upstream/skills/video-assemble/scripts/timeline.py +217 -0
- package/resources/skills/video-recap-production/upstream/skills/video-assemble/scripts/timeline_emit.py +167 -0
- package/resources/skills/video-recap-production/upstream/skills/video-assemble/scripts/visual_render.py +448 -0
- package/resources/skills/video-recap-production/upstream/skills/video-cut/SKILL.md +108 -0
- package/resources/skills/video-recap-production/upstream/skills/video-cut/references/shot-review.md +50 -0
- package/resources/skills/video-recap-production/upstream/skills/video-cut/scripts/cut.py +41 -0
- package/resources/skills/video-recap-production/upstream/skills/video-cut/scripts/cut_cli.py +308 -0
- package/resources/skills/video-recap-production/upstream/skills/video-cut/scripts/cut_contract.py +424 -0
- package/resources/skills/video-recap-production/upstream/skills/video-cut/scripts/cut_render.py +304 -0
- package/resources/skills/video-recap-production/upstream/skills/video-cut/scripts/lib.py +114 -0
- package/resources/skills/video-recap-production/upstream/skills/video-cut/scripts/media_geometry.py +238 -0
- package/resources/skills/video-recap-production/upstream/skills/video-cut/scripts/narration_mapping.py +71 -0
- package/resources/skills/video-recap-production/upstream/skills/video-cut/scripts/narrative_selection.py +244 -0
- package/resources/skills/video-recap-production/upstream/skills/video-cut/scripts/sentence_boundaries.py +585 -0
- package/resources/skills/video-recap-production/upstream/skills/video-cut/scripts/shot_review.py +357 -0
- package/resources/skills/video-recap-production/upstream/skills/video-recap/SKILL.md +260 -0
- package/resources/skills/video-recap-production/upstream/skills/video-recap/references/audio-routing.md +126 -0
- package/resources/skills/video-recap-production/upstream/skills/video-recap/references/config-playbook.md +65 -0
- package/resources/skills/video-recap-production/upstream/skills/video-recap/references/data-schema.md +545 -0
- package/resources/skills/video-recap-production/upstream/skills/video-recap/references/resource-library.md +151 -0
- package/resources/skills/video-recap-production/upstream/skills/video-recap/references/shift-left-qc-schema.md +23 -0
- package/resources/skills/video-recap-production/upstream/skills/video-recap/scripts/doctor.py +556 -0
- package/resources/skills/video-recap-production/upstream/skills/video-recap/scripts/final_qc.py +527 -0
- package/resources/skills/video-recap-production/upstream/skills/video-recap/scripts/lib.py +220 -0
- package/resources/skills/video-recap-production/upstream/skills/video-recap/scripts/library.py +509 -0
- package/resources/skills/video-recap-production/upstream/skills/video-recap/scripts/materials.py +406 -0
- package/resources/skills/video-recap-production/upstream/skills/video-recap/scripts/mimo_qc.py +33 -0
- package/resources/skills/video-recap-production/upstream/skills/video-recap/scripts/project_binding.py +286 -0
- package/resources/skills/video-recap-production/upstream/skills/video-recap/scripts/qc/__init__.py +1 -0
- package/resources/skills/video-recap-production/upstream/skills/video-recap/scripts/qc/mimo_client.py +13 -0
- package/resources/skills/video-recap-production/upstream/skills/video-recap/scripts/qc/mimo_contract.py +9 -0
- package/resources/skills/video-recap-production/upstream/skills/video-recap/scripts/qc/mimo_evidence.py +287 -0
- package/resources/skills/video-recap-production/upstream/skills/video-recap/scripts/qc/mimo_observations.py +175 -0
- package/resources/skills/video-recap-production/upstream/skills/video-recap/scripts/qc/mimo_payload.py +206 -0
- package/resources/skills/video-recap-production/upstream/skills/video-recap/scripts/qc/mimo_report.py +318 -0
- package/resources/skills/video-recap-production/upstream/skills/video-recap/scripts/qc/mimo_runner.py +130 -0
- package/resources/skills/video-recap-production/upstream/skills/video-recap/scripts/qc_contract.py +320 -0
- package/resources/skills/video-recap-production/upstream/skills/video-recap/scripts/recap.py +9 -0
- package/resources/skills/video-recap-production/upstream/skills/video-recap/scripts/recap_cli.py +209 -0
- package/resources/skills/video-recap-production/upstream/skills/video-recap/scripts/recap_inspect.py +452 -0
- package/resources/skills/video-recap-production/upstream/skills/video-recap/scripts/recap_review.py +70 -0
- package/resources/skills/video-recap-production/upstream/skills/video-recap/scripts/recap_runner.py +696 -0
- package/resources/skills/video-recap-production/upstream/skills/video-recap/scripts/recap_runtime.py +260 -0
- package/resources/skills/video-recap-production/upstream/skills/video-recap/scripts/recap_source.py +278 -0
- package/resources/skills/video-recap-production/upstream/skills/video-recap/scripts/recap_stage_qc.py +160 -0
- package/resources/skills/video-recap-production/upstream/skills/video-recap/scripts/recap_timeline.py +621 -0
- package/resources/skills/video-recap-production/upstream/skills/video-recap/scripts/resource_lock.py +162 -0
- package/resources/skills/video-recap-production/upstream/skills/video-script/SKILL.md +251 -0
- package/resources/skills/video-recap-production/upstream/skills/video-script/references/creative-editing-playbook.md +229 -0
- package/resources/skills/video-recap-production/upstream/skills/video-script/references/promotional-copy.md +68 -0
- package/resources/skills/video-recap-production/upstream/skills/video-script/references/research-guide.md +75 -0
- package/resources/skills/video-recap-production/upstream/skills/video-script/scripts/agent_text.py +301 -0
- package/resources/skills/video-recap-production/upstream/skills/video-script/scripts/deslop_qc.py +211 -0
- package/resources/skills/video-recap-production/upstream/skills/video-script/scripts/evidence_bundle.py +440 -0
- package/resources/skills/video-recap-production/upstream/skills/video-script/scripts/lib.py +254 -0
- package/resources/skills/video-recap-production/upstream/skills/video-script/scripts/narration_lint.py +707 -0
- package/resources/skills/video-recap-production/upstream/skills/video-script/scripts/review.py +40 -0
- package/resources/skills/video-recap-production/upstream/skills/video-script/scripts/review_grounding.py +238 -0
- package/resources/skills/video-recap-production/upstream/skills/video-script/scripts/review_response.py +669 -0
- package/resources/skills/video-recap-production/upstream/skills/video-script/scripts/review_runner.py +186 -0
- package/resources/skills/video-recap-production/upstream/skills/video-script/scripts/speech_ownership.py +143 -0
- package/resources/skills/video-recap-production/upstream/skills/video-script/scripts/timeline_fusion.py +108 -0
- package/resources/skills/video-recap-production/upstream/skills/video-script/scripts/validate.py +175 -0
- package/resources/skills/video-recap-production/upstream/skills/video-understanding/SKILL.md +77 -0
- package/resources/skills/video-recap-production/upstream/skills/video-understanding/references/data-schema.md +193 -0
- package/resources/skills/video-recap-production/upstream/skills/video-understanding/references/prompt-templates.md +37 -0
- package/resources/skills/video-recap-production/upstream/skills/video-understanding/references/research-guide.md +74 -0
- package/resources/skills/video-recap-production/upstream/skills/video-understanding/scripts/agent_text.py +301 -0
- package/resources/skills/video-recap-production/upstream/skills/video-understanding/scripts/asr.py +279 -0
- package/resources/skills/video-recap-production/upstream/skills/video-understanding/scripts/asr_timing_evidence.py +270 -0
- package/resources/skills/video-recap-production/upstream/skills/video-understanding/scripts/brief.py +9 -0
- package/resources/skills/video-recap-production/upstream/skills/video-understanding/scripts/briefing/__init__.py +1 -0
- package/resources/skills/video-recap-production/upstream/skills/video-understanding/scripts/briefing/builder.py +402 -0
- package/resources/skills/video-recap-production/upstream/skills/video-understanding/scripts/briefing/context.py +317 -0
- package/resources/skills/video-recap-production/upstream/skills/video-understanding/scripts/briefing/inputs.py +268 -0
- package/resources/skills/video-recap-production/upstream/skills/video-understanding/scripts/briefing/timeline.py +326 -0
- package/resources/skills/video-recap-production/upstream/skills/video-understanding/scripts/consolidate.py +596 -0
- package/resources/skills/video-recap-production/upstream/skills/video-understanding/scripts/deslop_qc.py +211 -0
- package/resources/skills/video-recap-production/upstream/skills/video-understanding/scripts/detect.py +504 -0
- package/resources/skills/video-recap-production/upstream/skills/video-understanding/scripts/extract.py +62 -0
- package/resources/skills/video-recap-production/upstream/skills/video-understanding/scripts/lib.py +419 -0
- package/resources/skills/video-recap-production/upstream/skills/video-understanding/scripts/narration_lint.py +707 -0
- package/resources/skills/video-recap-production/upstream/skills/video-understanding/scripts/speech_ownership.py +143 -0
- package/resources/skills/video-recap-production/upstream/skills/video-understanding/scripts/storyboard.py +445 -0
- package/resources/skills/video-recap-production/upstream/skills/video-understanding/scripts/timeline_fusion.py +108 -0
- package/resources/skills/video-recap-production/upstream/skills/video-understanding/scripts/understand.py +9 -0
- package/resources/skills/video-recap-production/upstream/skills/video-understanding/scripts/understanding_brief.py +190 -0
- package/resources/skills/video-recap-production/upstream/skills/video-understanding/scripts/understanding_cache.py +345 -0
- package/resources/skills/video-recap-production/upstream/skills/video-understanding/scripts/understanding_runner.py +387 -0
- package/resources/skills/video-recap-production/upstream/skills/video-understanding/scripts/understanding_storyboard.py +167 -0
- package/resources/skills/video-recap-production/upstream/skills/video-understanding/scripts/vlm.py +674 -0
- package/resources/skills/video-recap-production/upstream/skills/video-voiceover/SKILL.md +91 -0
- package/resources/skills/video-recap-production/upstream/skills/video-voiceover/references/index-tts.md +31 -0
- package/resources/skills/video-recap-production/upstream/skills/video-voiceover/scripts/approved_text_policy.py +123 -0
- package/resources/skills/video-recap-production/upstream/skills/video-voiceover/scripts/dub.py +623 -0
- package/resources/skills/video-recap-production/upstream/skills/video-voiceover/scripts/lib.py +352 -0
- package/resources/skills/video-recap-production/upstream/skills/video-voiceover/scripts/providers/__init__.py +1 -0
- package/resources/skills/video-recap-production/upstream/skills/video-voiceover/scripts/providers/fish_audio.py +91 -0
- package/resources/skills/video-recap-production/upstream/skills/video-voiceover/scripts/providers/index_tts.py +184 -0
- package/resources/skills/video-recap-production/upstream/skills/video-voiceover/scripts/tts_audio.py +102 -0
- package/resources/skills/video-recap-production/upstream/skills/video-voiceover/scripts/voiceover.py +771 -0
- package/resources/skills/viora-canvas-production/manifest.json +5 -1
- package/resources/skills/viora-canvas-production/references/story-handoff.md +49 -0
package/resources/skills/video-recap-production/upstream/skills/video-recap/scripts/recap_runner.py
ADDED
|
@@ -0,0 +1,696 @@
|
|
|
1
|
+
"""Orchestrate single- and multi-source recap pipelines."""
|
|
2
|
+
|
|
3
|
+
import json
|
|
4
|
+
import os
|
|
5
|
+
from pathlib import Path
|
|
6
|
+
|
|
7
|
+
import materials as material_lib
|
|
8
|
+
import project_binding
|
|
9
|
+
import resource_lock
|
|
10
|
+
|
|
11
|
+
from recap_cli import TTS_PROVIDERS, parse_args
|
|
12
|
+
from recap_review import run_narration_review
|
|
13
|
+
from recap_runtime import (
|
|
14
|
+
_analysis_settings,
|
|
15
|
+
_build_multi_source_records,
|
|
16
|
+
_coerce_videos,
|
|
17
|
+
_entry,
|
|
18
|
+
_optional_env_int,
|
|
19
|
+
_preflight_burn_subtitles,
|
|
20
|
+
_probe_display_height_or_raise,
|
|
21
|
+
_probe_display_size_or_raise,
|
|
22
|
+
_read_video_duration_or_raise,
|
|
23
|
+
_run,
|
|
24
|
+
_write_multi_source_manifest,
|
|
25
|
+
_write_project_run_manifest,
|
|
26
|
+
_write_run_manifest,
|
|
27
|
+
)
|
|
28
|
+
from recap_stage_qc import (
|
|
29
|
+
_post_render_qc_metadata,
|
|
30
|
+
_prepare_mimo_qc,
|
|
31
|
+
_print_final_qc_pointer,
|
|
32
|
+
_require_final_qc,
|
|
33
|
+
_run_mimo_qc_stage,
|
|
34
|
+
_tts_qc_metadata,
|
|
35
|
+
_write_final_qc_reports,
|
|
36
|
+
_write_shift_left_stage_qc,
|
|
37
|
+
)
|
|
38
|
+
from recap_source import (
|
|
39
|
+
begin_local_adoption_qc,
|
|
40
|
+
begin_non_narration_qc,
|
|
41
|
+
extend_assemble_args,
|
|
42
|
+
load_local_assembly_evidence,
|
|
43
|
+
needs_voiceover,
|
|
44
|
+
owned_local_delivery,
|
|
45
|
+
reject_unbound_narration_workdir,
|
|
46
|
+
reject_unsupported_subtitle_track,
|
|
47
|
+
uses_local_adoption,
|
|
48
|
+
uses_narration,
|
|
49
|
+
validate_audio_routing,
|
|
50
|
+
verify_local_assembly_evidence,
|
|
51
|
+
remove_owned_local_delivery,
|
|
52
|
+
)
|
|
53
|
+
from recap_timeline import (
|
|
54
|
+
_continuation_command,
|
|
55
|
+
_cut_narration_is_stale,
|
|
56
|
+
_manifest_mismatches,
|
|
57
|
+
_material_library_dir,
|
|
58
|
+
_materials_enabled,
|
|
59
|
+
_multi_manifest_mismatches,
|
|
60
|
+
_pause_for_agent,
|
|
61
|
+
_print_narration_review_pointer,
|
|
62
|
+
_read_assembly_output,
|
|
63
|
+
_read_phase_ledger,
|
|
64
|
+
_save_materials_enabled,
|
|
65
|
+
_source_work_dir,
|
|
66
|
+
_surface_cut_qc,
|
|
67
|
+
_understand_args_for_source,
|
|
68
|
+
_write_canonical_visual_overlays,
|
|
69
|
+
_write_multi_source_clip_brief,
|
|
70
|
+
_write_multi_source_output_brief,
|
|
71
|
+
_write_phase_ledger,
|
|
72
|
+
)
|
|
73
|
+
|
|
74
|
+
RUN_MANIFEST = "recap_run_manifest.json"
|
|
75
|
+
|
|
76
|
+
|
|
77
|
+
def _voiceover_args(work_dir, narration_path, args):
|
|
78
|
+
"""Build the shared full/cut invocation for video-voiceover."""
|
|
79
|
+
result = ["--work-dir", str(work_dir), "--narration", str(narration_path)]
|
|
80
|
+
if args.tts_provider != "auto":
|
|
81
|
+
result += ["--tts-provider", args.tts_provider]
|
|
82
|
+
if args.mimo_tts_voice:
|
|
83
|
+
result += ["--mimo-voice", args.mimo_tts_voice]
|
|
84
|
+
if args.voice_ref:
|
|
85
|
+
result += ["--voice-ref", args.voice_ref]
|
|
86
|
+
if args.allow_partial_tts:
|
|
87
|
+
result.append("--allow-partial-tts")
|
|
88
|
+
if args.preserve_approved_text:
|
|
89
|
+
result.append("--preserve-approved-text")
|
|
90
|
+
return result
|
|
91
|
+
|
|
92
|
+
|
|
93
|
+
def _approved_validation_args(args):
|
|
94
|
+
return ["--preserve-approved-text"] if args.preserve_approved_text else []
|
|
95
|
+
|
|
96
|
+
|
|
97
|
+
def _record_resources(work_dir, args):
|
|
98
|
+
"""Write resource_lock.json for the finished render and surface anything needing a person."""
|
|
99
|
+
library_dir = getattr(args, "material_library_dir", None) or os.environ.get(
|
|
100
|
+
"VIDEO_RECAP_MATERIAL_LIBRARY_DIR"
|
|
101
|
+
)
|
|
102
|
+
try:
|
|
103
|
+
lock = resource_lock.write_resource_lock(
|
|
104
|
+
work_dir, library_dir=library_dir, project=getattr(args, "resolved_project", None)
|
|
105
|
+
)
|
|
106
|
+
except (OSError, ValueError, TypeError, KeyError) as exc: # a record must never fail a finished render
|
|
107
|
+
print(f"[video-recap] ⚠ 未能写出 resource_lock.json: {type(exc).__name__}: {exc}", flush=True)
|
|
108
|
+
return
|
|
109
|
+
print(resource_lock.summary_line(lock), flush=True)
|
|
110
|
+
|
|
111
|
+
|
|
112
|
+
def _finish_recap(work_dir, final_output, args):
|
|
113
|
+
final_qc_result = _write_final_qc_reports(work_dir, final_output)
|
|
114
|
+
if args.require_final_qc:
|
|
115
|
+
_require_final_qc(final_qc_result, work_dir)
|
|
116
|
+
print(f"[video-recap] ✅ 完成: {final_output}")
|
|
117
|
+
_print_final_qc_pointer(final_qc_result)
|
|
118
|
+
|
|
119
|
+
|
|
120
|
+
def _run_local_adoption(video, work_dir, args):
|
|
121
|
+
"""Run the strict local bundle directly through the authoritative assembler."""
|
|
122
|
+
work_dir.mkdir(parents=True, exist_ok=False)
|
|
123
|
+
manifest = _write_run_manifest(work_dir, video, args)
|
|
124
|
+
def record_failure(exc):
|
|
125
|
+
failed = {**manifest, "local_adoption_run": {
|
|
126
|
+
"status": "FAILED", "error_type": type(exc).__name__,
|
|
127
|
+
}}
|
|
128
|
+
(work_dir / RUN_MANIFEST).write_text(
|
|
129
|
+
json.dumps(failed, ensure_ascii=False, indent=2), encoding="utf-8"
|
|
130
|
+
)
|
|
131
|
+
begin_local_adoption_qc(work_dir, _write_shift_left_stage_qc)
|
|
132
|
+
assemble_args = [
|
|
133
|
+
str(video),
|
|
134
|
+
"--work-dir", str(work_dir),
|
|
135
|
+
"--recap-stem", video.stem,
|
|
136
|
+
"--output-dir", args.output_dir,
|
|
137
|
+
"--tts-meta", args.tts_meta,
|
|
138
|
+
"--narration-adoption", args.narration_adoption,
|
|
139
|
+
"--audio-mix-adoption", args.audio_mix_adoption,
|
|
140
|
+
]
|
|
141
|
+
if args.burn_subtitles is not None:
|
|
142
|
+
assemble_args.append(
|
|
143
|
+
"--burn-subtitles" if args.burn_subtitles else "--no-burn-subtitles"
|
|
144
|
+
)
|
|
145
|
+
if args.subtitle_y_top is not None:
|
|
146
|
+
assemble_args += [
|
|
147
|
+
"--subtitle-y-top", str(args.subtitle_y_top),
|
|
148
|
+
"--subtitle-y-bot", str(args.subtitle_y_bot),
|
|
149
|
+
]
|
|
150
|
+
owned_delivery = None
|
|
151
|
+
try:
|
|
152
|
+
_run("video-assemble", "assemble.py", *assemble_args)
|
|
153
|
+
evidence = load_local_assembly_evidence(work_dir)
|
|
154
|
+
owned_delivery = owned_local_delivery(evidence)
|
|
155
|
+
verify_local_assembly_evidence(evidence, manifest)
|
|
156
|
+
except BaseException as exc:
|
|
157
|
+
remove_owned_local_delivery(owned_delivery)
|
|
158
|
+
record_failure(exc)
|
|
159
|
+
raise
|
|
160
|
+
final_output = _read_assembly_output(work_dir)
|
|
161
|
+
_record_resources(work_dir, args)
|
|
162
|
+
_write_shift_left_stage_qc(
|
|
163
|
+
work_dir,
|
|
164
|
+
"post_render",
|
|
165
|
+
metadata=_post_render_qc_metadata(work_dir, final_output),
|
|
166
|
+
)
|
|
167
|
+
_finish_recap(work_dir, final_output, args)
|
|
168
|
+
|
|
169
|
+
|
|
170
|
+
def _run_or_restore_understanding(source_record, source_work_dir, args):
|
|
171
|
+
"""Run video-understanding for one source, or restore it from the material library."""
|
|
172
|
+
source_work_dir = Path(source_work_dir)
|
|
173
|
+
source_work_dir.mkdir(parents=True, exist_ok=True)
|
|
174
|
+
source_path = source_record["source_path"]
|
|
175
|
+
source_identity = source_record["source_video_identity"]
|
|
176
|
+
settings = source_record["settings"]
|
|
177
|
+
lib_dir = _material_library_dir(args)
|
|
178
|
+
restored = False
|
|
179
|
+
if _materials_enabled(args):
|
|
180
|
+
result = material_lib.restore_material(
|
|
181
|
+
lib_dir,
|
|
182
|
+
source_work_dir,
|
|
183
|
+
source_path=source_path,
|
|
184
|
+
source_identity=source_identity,
|
|
185
|
+
settings=settings,
|
|
186
|
+
)
|
|
187
|
+
restored = result["restored"]
|
|
188
|
+
if restored:
|
|
189
|
+
print(
|
|
190
|
+
f"[video-recap] ♻️ 复用素材库: {result['material_id']} → {source_work_dir}",
|
|
191
|
+
flush=True,
|
|
192
|
+
)
|
|
193
|
+
else:
|
|
194
|
+
print(
|
|
195
|
+
f"[video-recap] 素材库未复用 {source_record['source_name']}: {result['reason']}",
|
|
196
|
+
flush=True,
|
|
197
|
+
)
|
|
198
|
+
if not restored:
|
|
199
|
+
_run(
|
|
200
|
+
"video-understanding",
|
|
201
|
+
"understand.py",
|
|
202
|
+
*_understand_args_for_source(source_record, source_work_dir, args),
|
|
203
|
+
)
|
|
204
|
+
_write_run_manifest(source_work_dir, source_record["source_path"], args)
|
|
205
|
+
if _save_materials_enabled(args):
|
|
206
|
+
meta = material_lib.save_material(
|
|
207
|
+
lib_dir,
|
|
208
|
+
source_work_dir,
|
|
209
|
+
source_path,
|
|
210
|
+
source_identity,
|
|
211
|
+
settings,
|
|
212
|
+
source_id=source_record["source_id"],
|
|
213
|
+
material_id=source_record["material_id"],
|
|
214
|
+
)
|
|
215
|
+
source_record["material_id"] = meta["material_id"]
|
|
216
|
+
print(
|
|
217
|
+
f"[video-recap] 💾 已沉淀素材: {meta['material_id']} → {lib_dir}",
|
|
218
|
+
flush=True,
|
|
219
|
+
)
|
|
220
|
+
return restored
|
|
221
|
+
|
|
222
|
+
|
|
223
|
+
def _single_source_record(video, args):
|
|
224
|
+
"""Identity + settings for the one source of a single-video run."""
|
|
225
|
+
identity = material_lib.file_identity(video)
|
|
226
|
+
return {
|
|
227
|
+
"source_id": material_lib.source_id_for(video),
|
|
228
|
+
"source_path": str(video),
|
|
229
|
+
"source_name": video.name,
|
|
230
|
+
"source_video_identity": identity,
|
|
231
|
+
"settings": _analysis_settings(args),
|
|
232
|
+
"material_id": material_lib.material_id_for(video, identity),
|
|
233
|
+
}
|
|
234
|
+
|
|
235
|
+
|
|
236
|
+
def _rebuild_understanding_brief(source_record, source_work_dir, args):
|
|
237
|
+
"""Rebuild agent_narration_brief.md from cached/restored analysis only.
|
|
238
|
+
Cut pass 2 needs an OUTPUT-time brief after edited_source.mp4 exists. A
|
|
239
|
+
material restore may have supplied pass-1 analysis artifacts (and even a
|
|
240
|
+
source-time brief), but it must not skip this phase-specific brief rebuild.
|
|
241
|
+
"""
|
|
242
|
+
_run(
|
|
243
|
+
"video-understanding",
|
|
244
|
+
"understand.py",
|
|
245
|
+
*_understand_args_for_source(source_record, source_work_dir, args),
|
|
246
|
+
"--brief-only",
|
|
247
|
+
)
|
|
248
|
+
|
|
249
|
+
|
|
250
|
+
def _reject_stale(mismatches, label):
|
|
251
|
+
if mismatches:
|
|
252
|
+
details = "\n - ".join(mismatches)
|
|
253
|
+
raise SystemExit(
|
|
254
|
+
f"work_dir 与当前{label}recap 输入不匹配,拒绝复用既有 narration/clip_plan;"
|
|
255
|
+
"请使用新的 --work-dir,或删除旧产物后重新运行 Phase A。\n"
|
|
256
|
+
f" - {details}"
|
|
257
|
+
)
|
|
258
|
+
|
|
259
|
+
|
|
260
|
+
def _reject_stale_multi_manifest(work_dir, videos, args, source_records):
|
|
261
|
+
_reject_stale(_multi_manifest_mismatches(work_dir, videos, args, source_records), "多视频 ")
|
|
262
|
+
|
|
263
|
+
|
|
264
|
+
def _render_cut(video_arg, work_dir, args, *extra):
|
|
265
|
+
"""Render edited_source.mp4 from clip_plan.json and record the post-cut QC stage."""
|
|
266
|
+
crender = [str(video_arg), "--work-dir", str(work_dir), *extra]
|
|
267
|
+
if args.target_duration:
|
|
268
|
+
crender += ["--target-duration", args.target_duration]
|
|
269
|
+
if args.allow_duration_drift:
|
|
270
|
+
crender.append("--allow-duration-drift")
|
|
271
|
+
_run("video-cut", "cut.py", *crender)
|
|
272
|
+
cut_qc = _surface_cut_qc(work_dir)
|
|
273
|
+
_write_shift_left_stage_qc(work_dir, "post_cut", metadata={"cut_qc": cut_qc})
|
|
274
|
+
|
|
275
|
+
|
|
276
|
+
def _reject_stale_cut_narration(work_dir, clip_plan_identity):
|
|
277
|
+
if _cut_narration_is_stale(_read_phase_ledger(work_dir), clip_plan_identity):
|
|
278
|
+
raise SystemExit(
|
|
279
|
+
"clip_plan.json 已改变,但 narration.json 仍是对旧剪辑写的,会与剪后画面对不上。"
|
|
280
|
+
"请删除 narration.json,重跑后按新成片重新写解说。"
|
|
281
|
+
)
|
|
282
|
+
|
|
283
|
+
|
|
284
|
+
def _validate_cut_output_narration(work_dir, args):
|
|
285
|
+
output_duration = _read_video_duration_or_raise(work_dir / "edited_source.mp4")
|
|
286
|
+
_run(
|
|
287
|
+
"video-script", "validate.py", "--work-dir", work_dir,
|
|
288
|
+
"--mode", "cut_output", "--output-duration", f"{output_duration:.3f}",
|
|
289
|
+
*_approved_validation_args(args),
|
|
290
|
+
)
|
|
291
|
+
|
|
292
|
+
|
|
293
|
+
def _narrate(work_dir, args, timeline):
|
|
294
|
+
"""Review -> TTS -> visual overlays for a validated narration.json."""
|
|
295
|
+
narration_json = work_dir / "narration.json"
|
|
296
|
+
review_ran = run_narration_review(work_dir, args, run=_run, timeline=timeline)
|
|
297
|
+
_write_shift_left_stage_qc(
|
|
298
|
+
work_dir, "pre_tts", metadata={"review_ran": review_ran, "timeline": timeline}
|
|
299
|
+
)
|
|
300
|
+
_run(
|
|
301
|
+
"video-voiceover", "voiceover.py",
|
|
302
|
+
*_voiceover_args(work_dir, narration_json, args),
|
|
303
|
+
)
|
|
304
|
+
_write_shift_left_stage_qc(work_dir, "post_tts", metadata=_tts_qc_metadata(work_dir))
|
|
305
|
+
overlays_path = _write_canonical_visual_overlays(work_dir, narration_json)
|
|
306
|
+
_write_shift_left_stage_qc(
|
|
307
|
+
work_dir, "pre_assemble", metadata={"visual_overlays": str(overlays_path)}
|
|
308
|
+
)
|
|
309
|
+
_run_mimo_qc_stage(work_dir, args, "pre_assemble")
|
|
310
|
+
return review_ran
|
|
311
|
+
|
|
312
|
+
|
|
313
|
+
def _deliver(work_dir, args, assemble_video, recap_stem, timeline, extra_assemble_args=()):
|
|
314
|
+
"""Shared tail of every full/cut run: narration (if owned) -> assemble -> final QC."""
|
|
315
|
+
project = getattr(args, "resolved_project", None)
|
|
316
|
+
if project and project["templates"]:
|
|
317
|
+
project_binding.check_canvas(project, *_probe_display_size_or_raise(assemble_video))
|
|
318
|
+
project_binding.sync_packaging_layers(work_dir, project)
|
|
319
|
+
review_ran = _narrate(work_dir, args, timeline) if uses_narration(args) else None
|
|
320
|
+
aargs = [str(assemble_video), "--work-dir", str(work_dir), "--recap-stem", recap_stem]
|
|
321
|
+
extend_assemble_args(aargs, args)
|
|
322
|
+
if args.output_dir:
|
|
323
|
+
aargs += ["--output-dir", args.output_dir]
|
|
324
|
+
if args.burn_subtitles is not None:
|
|
325
|
+
aargs.append(
|
|
326
|
+
"--burn-subtitles" if args.burn_subtitles else "--no-burn-subtitles"
|
|
327
|
+
)
|
|
328
|
+
if args.subtitle_y_top is not None:
|
|
329
|
+
aargs += [
|
|
330
|
+
"--subtitle-y-top", str(args.subtitle_y_top),
|
|
331
|
+
"--subtitle-y-bot", str(args.subtitle_y_bot),
|
|
332
|
+
]
|
|
333
|
+
# env-only burn intent (BURN_SUBTITLES) is propagated implicitly: assemble re-derives it
|
|
334
|
+
# via the same env_bool default the preflight used, so the two agree by shared env.
|
|
335
|
+
aargs += extra_assemble_args
|
|
336
|
+
if args.export_jianying: # env EXPORT_JIANYING is honored by assemble.py itself
|
|
337
|
+
aargs.append("--export-jianying")
|
|
338
|
+
if args.jianying_bundle_media:
|
|
339
|
+
aargs.append("--jianying-bundle-media")
|
|
340
|
+
if args.jianying_no_bundle_media:
|
|
341
|
+
aargs.append("--jianying-no-bundle-media")
|
|
342
|
+
_run("video-assemble", "assemble.py", *aargs)
|
|
343
|
+
|
|
344
|
+
final_output = _read_assembly_output(work_dir)
|
|
345
|
+
_record_resources(work_dir, args)
|
|
346
|
+
_write_shift_left_stage_qc(
|
|
347
|
+
work_dir,
|
|
348
|
+
"post_render",
|
|
349
|
+
metadata=_post_render_qc_metadata(work_dir, final_output),
|
|
350
|
+
)
|
|
351
|
+
if uses_narration(args):
|
|
352
|
+
_run_mimo_qc_stage(work_dir, args, "post_render", final_output=final_output)
|
|
353
|
+
_finish_recap(work_dir, final_output, args)
|
|
354
|
+
if uses_narration(args):
|
|
355
|
+
_print_narration_review_pointer(work_dir, review_ran=review_ran)
|
|
356
|
+
|
|
357
|
+
|
|
358
|
+
def _run_multi_cut(videos, work_dir, args):
|
|
359
|
+
"""Multi-video MVP: cut-first/narrate-second over a project work_dir."""
|
|
360
|
+
videos = _coerce_videos(videos)
|
|
361
|
+
work_dir = Path(work_dir)
|
|
362
|
+
work_dir.mkdir(parents=True, exist_ok=True)
|
|
363
|
+
reject_unbound_narration_workdir(work_dir, args)
|
|
364
|
+
reject_unsupported_subtitle_track(work_dir, args)
|
|
365
|
+
source_records = _build_multi_source_records(videos, args)
|
|
366
|
+
narration_json = work_dir / "narration.json"
|
|
367
|
+
clip_plan_json = work_dir / "clip_plan.json"
|
|
368
|
+
edited_source = work_dir / "edited_source.mp4"
|
|
369
|
+
inspect_py = _entry("video-recap", "recap_inspect.py")
|
|
370
|
+
# If a project manifest already exists, it must match before any Phase-B reuse.
|
|
371
|
+
if (work_dir / RUN_MANIFEST).exists():
|
|
372
|
+
_reject_stale_multi_manifest(work_dir, videos, args, source_records)
|
|
373
|
+
manifest_path = _write_multi_source_manifest(work_dir, source_records)
|
|
374
|
+
if not uses_narration(args):
|
|
375
|
+
begin_non_narration_qc(work_dir, args, _write_shift_left_stage_qc)
|
|
376
|
+
if not clip_plan_json.exists():
|
|
377
|
+
for record in source_records:
|
|
378
|
+
_run_or_restore_understanding(
|
|
379
|
+
record, _source_work_dir(work_dir, record), args
|
|
380
|
+
)
|
|
381
|
+
# Rewrite: _run_or_restore_understanding fills in material_id per record.
|
|
382
|
+
manifest_path = _write_multi_source_manifest(work_dir, source_records)
|
|
383
|
+
_write_project_run_manifest(work_dir, videos, args, source_records)
|
|
384
|
+
_write_multi_source_clip_brief(work_dir, source_records, args)
|
|
385
|
+
_pause_for_agent(
|
|
386
|
+
work_dir,
|
|
387
|
+
f"{clip_plan_json}(多视频剪辑计划;每个 clip 必须带 source_id)",
|
|
388
|
+
_continuation_command(videos, work_dir, args),
|
|
389
|
+
inspect_hint=f"python3 {inspect_py} --work-dir {work_dir} state",
|
|
390
|
+
)
|
|
391
|
+
return
|
|
392
|
+
|
|
393
|
+
_reject_stale_multi_manifest(work_dir, videos, args, source_records)
|
|
394
|
+
cp_identity = material_lib.file_identity(clip_plan_json)
|
|
395
|
+
_render_cut(videos[0], work_dir, args, "--sources-manifest", str(manifest_path))
|
|
396
|
+
if uses_narration(args):
|
|
397
|
+
if not narration_json.exists():
|
|
398
|
+
_write_multi_source_output_brief(
|
|
399
|
+
work_dir, source_records, work_dir / "clip_plan_validated.json"
|
|
400
|
+
)
|
|
401
|
+
_write_phase_ledger(
|
|
402
|
+
work_dir,
|
|
403
|
+
clip_plan_identity=cp_identity,
|
|
404
|
+
edited_source_rendered=True,
|
|
405
|
+
multi_source=True,
|
|
406
|
+
)
|
|
407
|
+
_pause_for_agent(
|
|
408
|
+
work_dir,
|
|
409
|
+
f"{narration_json}(用成片 OUTPUT 时间轴写解说,对着 {edited_source})",
|
|
410
|
+
_continuation_command(videos, work_dir, args),
|
|
411
|
+
inspect_hint=(
|
|
412
|
+
f"python3 {inspect_py} --work-dir {work_dir} "
|
|
413
|
+
"clip-map --output-start <s> --output-end <e>"
|
|
414
|
+
),
|
|
415
|
+
)
|
|
416
|
+
return
|
|
417
|
+
_reject_stale_cut_narration(work_dir, cp_identity)
|
|
418
|
+
_write_phase_ledger(
|
|
419
|
+
work_dir,
|
|
420
|
+
clip_plan_identity=cp_identity,
|
|
421
|
+
narration_written=True,
|
|
422
|
+
multi_source=True,
|
|
423
|
+
)
|
|
424
|
+
_validate_cut_output_narration(work_dir, args)
|
|
425
|
+
|
|
426
|
+
_deliver(work_dir, args, edited_source, f"multi_{videos[0].stem}", "cut_output")
|
|
427
|
+
|
|
428
|
+
|
|
429
|
+
def main():
|
|
430
|
+
ap, args = parse_args()
|
|
431
|
+
|
|
432
|
+
if args.require_final_qc and args.edit_mode == "dub":
|
|
433
|
+
ap.error("--require-final-qc is only supported in full/cut modes, not dub")
|
|
434
|
+
# argparse `choices` does not cover the TTS_PROVIDER env default; source-owned audio and
|
|
435
|
+
# local adoption never synthesise, so an ambient provider is irrelevant there.
|
|
436
|
+
if (args.doctor or needs_voiceover(args)) and args.tts_provider not in TTS_PROVIDERS:
|
|
437
|
+
ap.error("TTS_PROVIDER/--tts-provider must be one of: " + ", ".join(TTS_PROVIDERS))
|
|
438
|
+
|
|
439
|
+
if args.doctor:
|
|
440
|
+
if any(
|
|
441
|
+
getattr(args, field) is not None
|
|
442
|
+
for field in ("tts_meta", "narration_adoption", "audio_mix_adoption")
|
|
443
|
+
):
|
|
444
|
+
ap.error("--doctor cannot be combined with local adoption inputs")
|
|
445
|
+
doctor_args = []
|
|
446
|
+
if args.tts_provider != "auto":
|
|
447
|
+
doctor_args += ["--tts-provider", args.tts_provider]
|
|
448
|
+
_run("video-recap", "doctor.py", *doctor_args)
|
|
449
|
+
return
|
|
450
|
+
if not uses_local_adoption(args) and args.mimo_qc not in {
|
|
451
|
+
"off", "pre-assemble", "post-render", "both"
|
|
452
|
+
}:
|
|
453
|
+
ap.error(
|
|
454
|
+
"MIMO_QC/--mimo-qc must be one of: off, pre-assemble, post-render, both"
|
|
455
|
+
)
|
|
456
|
+
if not args.video:
|
|
457
|
+
ap.error("video is required (unless --doctor)")
|
|
458
|
+
validate_audio_routing(ap, args)
|
|
459
|
+
args.resolved_project = None
|
|
460
|
+
if args.project:
|
|
461
|
+
args.project = str(project_binding.project_path(args.project))
|
|
462
|
+
if uses_local_adoption(args) or args.edit_mode == "dub":
|
|
463
|
+
ap.error("--project applies to full/cut runs, not dub or local adoption bundles")
|
|
464
|
+
project_binding.apply_project(
|
|
465
|
+
project_binding.resolve_project(
|
|
466
|
+
args.project, args, include_voice=needs_voiceover(args)
|
|
467
|
+
),
|
|
468
|
+
args,
|
|
469
|
+
)
|
|
470
|
+
|
|
471
|
+
if needs_voiceover(args) and args.voice_ref is None:
|
|
472
|
+
args.voice_ref = os.environ.get("VOICE_REF", "").strip() or None
|
|
473
|
+
elif not needs_voiceover(args):
|
|
474
|
+
# Source-owned audio must not inherit ambient narration configuration. Explicit
|
|
475
|
+
# narration flags were already rejected by validate_audio_routing().
|
|
476
|
+
args.voice_ref = None
|
|
477
|
+
try:
|
|
478
|
+
if args.subtitle_y_top is None:
|
|
479
|
+
args.subtitle_y_top = _optional_env_int("SUBTITLE_Y_TOP")
|
|
480
|
+
if args.subtitle_y_bot is None:
|
|
481
|
+
args.subtitle_y_bot = _optional_env_int("SUBTITLE_Y_BOT")
|
|
482
|
+
except ValueError as exc:
|
|
483
|
+
ap.error(str(exc))
|
|
484
|
+
|
|
485
|
+
if needs_voiceover(args):
|
|
486
|
+
explicit_mimo_voice = (
|
|
487
|
+
args.mimo_tts_voice or os.environ.get("MIMO_TTS_VOICE", "").strip()
|
|
488
|
+
)
|
|
489
|
+
if explicit_mimo_voice and args.voice_ref:
|
|
490
|
+
ap.error("--mimo-tts-voice and --voice-ref are mutually exclusive")
|
|
491
|
+
if args.tts_provider in {"fish-audio", "index-tts"} and (
|
|
492
|
+
explicit_mimo_voice or args.voice_ref
|
|
493
|
+
):
|
|
494
|
+
ap.error(
|
|
495
|
+
"--mimo-tts-voice/--voice-ref are only supported by --tts-provider mimo-tts"
|
|
496
|
+
)
|
|
497
|
+
if args.edit_mode == "dub" and args.voice_ref:
|
|
498
|
+
ap.error(
|
|
499
|
+
"--voice-ref is only supported in full/cut modes; dub clones the source voice automatically"
|
|
500
|
+
)
|
|
501
|
+
if args.edit_mode == "dub" and args.tts_provider == "fish-audio":
|
|
502
|
+
ap.error(
|
|
503
|
+
"--tts-provider fish-audio is only supported in full/cut modes; "
|
|
504
|
+
"dub uses MiMo voice cloning"
|
|
505
|
+
)
|
|
506
|
+
if args.edit_mode == "dub" and args.subtitle_y_top is not None:
|
|
507
|
+
ap.error(
|
|
508
|
+
"--subtitle-y-top/--subtitle-y-bot are only supported in full/cut modes"
|
|
509
|
+
)
|
|
510
|
+
if args.edit_mode == "dub" and args.burn_subtitles:
|
|
511
|
+
ap.error("--burn-subtitles is only supported in full/cut modes; dub never burns subtitles")
|
|
512
|
+
if (args.subtitle_y_top is None) != (args.subtitle_y_bot is None):
|
|
513
|
+
ap.error("--subtitle-y-top and --subtitle-y-bot must be provided together")
|
|
514
|
+
if args.subtitle_y_top is not None:
|
|
515
|
+
if args.subtitle_y_top < 0 or args.subtitle_y_bot <= args.subtitle_y_top:
|
|
516
|
+
ap.error("subtitle Y coordinates must satisfy 0 <= top < bot")
|
|
517
|
+
|
|
518
|
+
videos = _coerce_videos(args.video)
|
|
519
|
+
if len(videos) > 1 and args.edit_mode != "cut":
|
|
520
|
+
raise SystemExit(
|
|
521
|
+
"多视频输入当前 MVP 只支持 --edit-mode cut;full/dub 请一次输入一个视频。"
|
|
522
|
+
)
|
|
523
|
+
if len(videos) > 1 and args.subtitle_y_top is not None:
|
|
524
|
+
ap.error("多视频 cut 暂不支持全局 subtitle Y 坐标;各源字幕带可能不同")
|
|
525
|
+
if args.subtitle_y_top is not None:
|
|
526
|
+
canvas_height = _probe_display_height_or_raise(
|
|
527
|
+
videos[0], require_square_pixels=True
|
|
528
|
+
)
|
|
529
|
+
if args.subtitle_y_bot > canvas_height:
|
|
530
|
+
ap.error(
|
|
531
|
+
f"subtitle Y coordinates exceed display canvas height {canvas_height}: "
|
|
532
|
+
f"bot={args.subtitle_y_bot}"
|
|
533
|
+
)
|
|
534
|
+
if args.voice_ref:
|
|
535
|
+
voice_ref = Path(args.voice_ref).expanduser().resolve()
|
|
536
|
+
if not voice_ref.is_file():
|
|
537
|
+
ap.error(f"reference audio does not exist or is not a file: {voice_ref}")
|
|
538
|
+
args.voice_ref = str(voice_ref)
|
|
539
|
+
|
|
540
|
+
_execute_pipeline(args, videos)
|
|
541
|
+
|
|
542
|
+
|
|
543
|
+
def _execute_pipeline(args, videos):
|
|
544
|
+
# Fail fast before any expensive understanding/VLM/ASR/TTS work if the run will burn
|
|
545
|
+
# subtitles but this ffmpeg can't (otherwise it only blows up at the final render).
|
|
546
|
+
_preflight_burn_subtitles(args)
|
|
547
|
+
|
|
548
|
+
if uses_local_adoption(args):
|
|
549
|
+
_run_local_adoption(videos[0], Path(args.work_dir), args)
|
|
550
|
+
return
|
|
551
|
+
|
|
552
|
+
if len(videos) > 1:
|
|
553
|
+
work_dir = (
|
|
554
|
+
Path(args.work_dir).resolve()
|
|
555
|
+
if args.work_dir
|
|
556
|
+
else videos[0].parent / f"work_dir_multi_{videos[0].stem}"
|
|
557
|
+
)
|
|
558
|
+
# Validate the work-directory audio policy before any run-local QC state is reset.
|
|
559
|
+
reject_unbound_narration_workdir(work_dir, args)
|
|
560
|
+
_prepare_mimo_qc(work_dir, args)
|
|
561
|
+
_run_multi_cut(videos, work_dir, args)
|
|
562
|
+
return
|
|
563
|
+
|
|
564
|
+
video = videos[0]
|
|
565
|
+
work_dir = (
|
|
566
|
+
Path(args.work_dir).resolve()
|
|
567
|
+
if args.work_dir
|
|
568
|
+
else video.parent / f"work_dir_{video.stem}"
|
|
569
|
+
)
|
|
570
|
+
work_dir.mkdir(parents=True, exist_ok=True)
|
|
571
|
+
reject_unbound_narration_workdir(work_dir, args)
|
|
572
|
+
reject_unsupported_subtitle_track(work_dir, args)
|
|
573
|
+
_prepare_mimo_qc(work_dir, args)
|
|
574
|
+
if args.edit_mode == "dub":
|
|
575
|
+
_run_dub(video, work_dir, args)
|
|
576
|
+
else:
|
|
577
|
+
_run_single(video, work_dir, args)
|
|
578
|
+
|
|
579
|
+
|
|
580
|
+
def _run_dub(video, work_dir, args):
|
|
581
|
+
"""EN->ZH translation-dub in the original cloned voice (replaces speech, not overlay).
|
|
582
|
+
One pause: prepare (ASR + sentence-seg + reference) -> agent writes the Chinese
|
|
583
|
+
translation (dub_script.json) -> render (clone TTS + full-replace mux)."""
|
|
584
|
+
dub_script = work_dir / "dub_script.json"
|
|
585
|
+
dub_args = ["--video", str(video), "--work-dir", str(work_dir)]
|
|
586
|
+
if not dub_script.exists():
|
|
587
|
+
_run("video-voiceover", "dub.py", "--stage", "prepare", *dub_args)
|
|
588
|
+
_write_run_manifest(work_dir, video, args)
|
|
589
|
+
cont = _continuation_command(video, work_dir, args)
|
|
590
|
+
print("=" * 50)
|
|
591
|
+
print(
|
|
592
|
+
f"[video-recap] ⏸ 阅读 {work_dir / 'dub_brief.md'},把英文原声转写切分并翻译成中文,写入 {dub_script}"
|
|
593
|
+
)
|
|
594
|
+
print(
|
|
595
|
+
'[video-recap] 格式 [{"start": 起秒, "end": 止秒, "zh": "译文"}](按 start 升序);逐句忠实、跟原声节奏一致、保留原音色'
|
|
596
|
+
)
|
|
597
|
+
print(f"[video-recap] 写完后重跑继续: {cont}")
|
|
598
|
+
print("=" * 50)
|
|
599
|
+
return
|
|
600
|
+
_reject_stale(_manifest_mismatches(work_dir, video, args), " ")
|
|
601
|
+
_run("video-voiceover", "dub.py", "--stage", "render", *dub_args)
|
|
602
|
+
print(f"[video-recap] ✅ 配音完成: {work_dir / ('dub_' + video.stem + '.mp4')}")
|
|
603
|
+
|
|
604
|
+
|
|
605
|
+
def _run_single(video, work_dir, args):
|
|
606
|
+
"""Single-video full or cut run; returns early at each agent pause."""
|
|
607
|
+
cut = args.edit_mode == "cut"
|
|
608
|
+
narration_json = work_dir / "narration.json"
|
|
609
|
+
clip_plan_json = work_dir / "clip_plan.json"
|
|
610
|
+
edited_source = work_dir / "edited_source.mp4"
|
|
611
|
+
inspect_py = _entry("video-recap", "recap_inspect.py")
|
|
612
|
+
state_hint = f"python3 {inspect_py} --work-dir {work_dir} state"
|
|
613
|
+
|
|
614
|
+
def _understand():
|
|
615
|
+
_run_or_restore_understanding(_single_source_record(video, args), work_dir, args)
|
|
616
|
+
|
|
617
|
+
def _pause(need_text, inspect_hint):
|
|
618
|
+
# Same banner as the multi-source flow; only the continuation command differs.
|
|
619
|
+
_pause_for_agent(
|
|
620
|
+
work_dir,
|
|
621
|
+
need_text,
|
|
622
|
+
_continuation_command(video, work_dir, args),
|
|
623
|
+
inspect_hint=inspect_hint,
|
|
624
|
+
)
|
|
625
|
+
|
|
626
|
+
def _reject_stale_manifest():
|
|
627
|
+
_reject_stale(_manifest_mismatches(work_dir, video, args), " ")
|
|
628
|
+
|
|
629
|
+
if not cut:
|
|
630
|
+
# Full mode: a single pause (understand -> agent writes narration.json -> produce).
|
|
631
|
+
if uses_narration(args):
|
|
632
|
+
if not narration_json.exists():
|
|
633
|
+
_understand()
|
|
634
|
+
_write_run_manifest(work_dir, video, args)
|
|
635
|
+
_pause(f"{narration_json}", state_hint)
|
|
636
|
+
return
|
|
637
|
+
_reject_stale_manifest()
|
|
638
|
+
_run(
|
|
639
|
+
"video-script", "validate.py", "--work-dir", work_dir,
|
|
640
|
+
"--mode", "full", *_approved_validation_args(args),
|
|
641
|
+
)
|
|
642
|
+
elif (work_dir / RUN_MANIFEST).exists():
|
|
643
|
+
_reject_stale_manifest()
|
|
644
|
+
else:
|
|
645
|
+
_write_run_manifest(work_dir, video, args)
|
|
646
|
+
if not uses_narration(args):
|
|
647
|
+
begin_non_narration_qc(work_dir, args, _write_shift_left_stage_qc)
|
|
648
|
+
_deliver(work_dir, args, video, video.stem, "source")
|
|
649
|
+
return
|
|
650
|
+
|
|
651
|
+
# Cut mode: cut-first / narrate-second (two pauses), so narration is authored against the
|
|
652
|
+
# REAL output timeline — no source-time mapping exists that could drop/clamp/desync.
|
|
653
|
+
if not clip_plan_json.exists():
|
|
654
|
+
# PASS 1: understand -> agent writes clip_plan.json ONLY.
|
|
655
|
+
if not uses_narration(args) and (work_dir / RUN_MANIFEST).exists():
|
|
656
|
+
_reject_stale_manifest()
|
|
657
|
+
if not uses_narration(args):
|
|
658
|
+
begin_non_narration_qc(work_dir, args, _write_shift_left_stage_qc)
|
|
659
|
+
_understand()
|
|
660
|
+
_write_run_manifest(work_dir, video, args)
|
|
661
|
+
_pause(f"{clip_plan_json}(只写剪辑计划;解说下一步对着剪好的成片写)", state_hint)
|
|
662
|
+
return
|
|
663
|
+
_reject_stale_manifest()
|
|
664
|
+
if not uses_narration(args):
|
|
665
|
+
begin_non_narration_qc(work_dir, args, _write_shift_left_stage_qc)
|
|
666
|
+
cp_identity = material_lib.file_identity(clip_plan_json)
|
|
667
|
+
_render_cut(video, work_dir, args)
|
|
668
|
+
if uses_narration(args):
|
|
669
|
+
if not narration_json.exists():
|
|
670
|
+
# PASS 2: rebuild the brief (now an OUTPUT-timeline variant) and pause for narration.
|
|
671
|
+
_rebuild_understanding_brief(_single_source_record(video, args), work_dir, args)
|
|
672
|
+
_write_phase_ledger(
|
|
673
|
+
work_dir, clip_plan_identity=cp_identity, edited_source_rendered=True
|
|
674
|
+
)
|
|
675
|
+
_pause(
|
|
676
|
+
f"{narration_json}(用成片 OUTPUT 时间轴写解说,对着 {edited_source})",
|
|
677
|
+
f"python3 {inspect_py} --work-dir {work_dir} "
|
|
678
|
+
"clip-map --output-start <s> --output-end <e> # 核对输出↔原片时间轴",
|
|
679
|
+
)
|
|
680
|
+
return
|
|
681
|
+
_reject_stale_cut_narration(work_dir, cp_identity)
|
|
682
|
+
_write_phase_ledger(work_dir, clip_plan_identity=cp_identity, narration_written=True)
|
|
683
|
+
_validate_cut_output_narration(work_dir, args)
|
|
684
|
+
else:
|
|
685
|
+
_write_phase_ledger(
|
|
686
|
+
work_dir,
|
|
687
|
+
clip_plan_identity=cp_identity,
|
|
688
|
+
edited_source_rendered=True,
|
|
689
|
+
audio_mode=args.audio_mode,
|
|
690
|
+
audio_stream_index=args.audio_stream_index,
|
|
691
|
+
)
|
|
692
|
+
# let the timeline / 剪映 export reference the original clips, not edited_source.mp4
|
|
693
|
+
_deliver(
|
|
694
|
+
work_dir, args, edited_source, video.stem, "cut_output",
|
|
695
|
+
["--source-video", str(video)],
|
|
696
|
+
)
|