@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
|
@@ -0,0 +1,621 @@
|
|
|
1
|
+
"""Own recap timeline artifacts, continuation state, and cut QC surfaces."""
|
|
2
|
+
|
|
3
|
+
import json
|
|
4
|
+
import os
|
|
5
|
+
import shlex
|
|
6
|
+
import sys
|
|
7
|
+
from pathlib import Path
|
|
8
|
+
|
|
9
|
+
from lib import load_json
|
|
10
|
+
from recap_runtime import (
|
|
11
|
+
_coerce_videos,
|
|
12
|
+
_entry,
|
|
13
|
+
_load_run_manifest,
|
|
14
|
+
_multi_run_manifest_payload,
|
|
15
|
+
_run_manifest_payload,
|
|
16
|
+
)
|
|
17
|
+
from recap_source import audio_binding, uses_narration
|
|
18
|
+
|
|
19
|
+
ASSEMBLY_MANIFEST = "assembly_manifest.json"
|
|
20
|
+
|
|
21
|
+
PHASE_LEDGER = "recap_phase.json"
|
|
22
|
+
|
|
23
|
+
CUT_TIMELINE_CRAFT_BULLETS = [
|
|
24
|
+
"- 片段顺序必须服务同一条故事主线,而不是无序高光;可使用 0–1 个 cold open,随后回到 setup → turn → escalation → payoff。",
|
|
25
|
+
"- 每个片段必须对应 `recap_story_plan.json` 中的一个 change-based beat;删除后不损失因果、人物或情绪的片段通常不保留。",
|
|
26
|
+
"- 已从源证据确认的必保问答、反应或兑现段,写入同一 `clip_plan.json.required_evidence`(nodes登记id/source绝对路径/start/end原片秒/track/content,before登记必要先后);只锁具体区间,不锁整个beat。剪点吸附后工具会核验,reason或花字不能代替缺失的源段。",
|
|
27
|
+
"- `reason` 统一写成 `beat_id | function | change | POV | preferred moment | 入点 | 出点`,不能只写 hook、重要剧情或事件摘要。",
|
|
28
|
+
"- 优先保留因果、揭示、决定、关系移动、情绪转向与不可替代的表演/反应;跳过片尾、广告、重复静态画面和水印废片段。",
|
|
29
|
+
"- 片段追求最短但完整:建立镜头可以短,关键表演/反应允许多停一点;在完整台词、完整动作或自然声音边界结束,避免原声从半句中切入或切出。",
|
|
30
|
+
"- 新人物/地点/情绪场景先给画面建立空间,再进旁白;不要在原片叠化或闪白中间再切一次。scene score 只用于定位候选接点,最终必须播放接点前后判断。",
|
|
31
|
+
"- 对短时间内密集的 scene 候选先区分来源:原片的无关短镜头整段删除,相关短镜头扩展到完整动作/反应;本次拼接制造的切点优先移动边界、恢复同源连续运动或合并片段,能消除就不保留。",
|
|
32
|
+
]
|
|
33
|
+
|
|
34
|
+
MULTI_SOURCE_NARRATION_CRAFT_BULLETS = [
|
|
35
|
+
"- `narration.json` 只使用 edited_source.mp4 的 OUTPUT 时间线,不使用任一原片时间。",
|
|
36
|
+
"- 先为每个 beat 指定 `audio_owner`,再决定是否需要旁白;允许 original_dialogue、action_sound、ambience、music、silence 或 narration 主导。",
|
|
37
|
+
"- 旁白只承担 context、causal_link、foreshadow、interpretation 或 transition;`narration_job=none` 的 beat 不写旁白。",
|
|
38
|
+
"- 7:3 不是配额,只是素材无法给出更好判断时的粗略回退;强对白、动作声、环境或沉默可以完整拥有一个 beat。",
|
|
39
|
+
"- 旁白拥有 beat 时才写成一个连续思路的 BLOCK;句数不是目标,字幕拆 cue 也不能切碎 TTS。不要把每个 beat 都机械变成旁白块或固定原声留白。",
|
|
40
|
+
"- 使用 kept-clip map 与每个 source work_dir 核对人物、事实、ASR 和上下文;跨源转场必须有明确叙事任务。",
|
|
41
|
+
]
|
|
42
|
+
|
|
43
|
+
_ALLOWED_VISUAL_OVERLAY_TYPES = {"top_title", "inline_label_or_callout"}
|
|
44
|
+
|
|
45
|
+
_VISUAL_OVERLAYS = "visual_overlays.json"
|
|
46
|
+
|
|
47
|
+
|
|
48
|
+
def _canonical_visual_overlay(overlay, segment):
|
|
49
|
+
"""Return the first-release assemble overlay contract, or None for unsupported types.
|
|
50
|
+
|
|
51
|
+
Recap owns the handoff artifact but does not invent richer overlay semantics: only the
|
|
52
|
+
two overlay types implemented by assemble pass through, an overlay without its own
|
|
53
|
+
start/end inherits the narration segment's, and renderer placement hints are preserved.
|
|
54
|
+
"""
|
|
55
|
+
if overlay["type"] not in _ALLOWED_VISUAL_OVERLAY_TYPES:
|
|
56
|
+
return None
|
|
57
|
+
item = {
|
|
58
|
+
"type": overlay["type"],
|
|
59
|
+
"text": overlay["text"],
|
|
60
|
+
"start": overlay.get("start", segment["start"]),
|
|
61
|
+
"end": overlay.get("end", segment["end"]),
|
|
62
|
+
}
|
|
63
|
+
for key in ("anchor", "x", "y", "max_width", "style"):
|
|
64
|
+
if key in overlay:
|
|
65
|
+
item[key] = overlay[key]
|
|
66
|
+
return item
|
|
67
|
+
|
|
68
|
+
|
|
69
|
+
def _write_canonical_visual_overlays(work_dir, narration_path):
|
|
70
|
+
"""Write assemble's canonical work_dir/visual_overlays.json recap handoff.
|
|
71
|
+
|
|
72
|
+
Direct assemble still supports user-authored/manual visual_overlays.json files. Once
|
|
73
|
+
recap owns the handoff for a narration, the canonical artifact is a deterministic
|
|
74
|
+
reflection of the current narration so reused work_dirs cannot render stale overlays
|
|
75
|
+
from a previous run; unsupported types are filtered out and represented as an explicit
|
|
76
|
+
empty overlay list.
|
|
77
|
+
"""
|
|
78
|
+
path = Path(work_dir) / _VISUAL_OVERLAYS
|
|
79
|
+
overlays = [
|
|
80
|
+
item
|
|
81
|
+
for segment in load_json(narration_path)
|
|
82
|
+
for overlay in segment.get("visual_overlays", [])
|
|
83
|
+
if (item := _canonical_visual_overlay(overlay, segment)) is not None
|
|
84
|
+
]
|
|
85
|
+
payload = {"schema_version": 1, "overlays": overlays}
|
|
86
|
+
path.write_text(json.dumps(payload, ensure_ascii=False, indent=2), encoding="utf-8")
|
|
87
|
+
print(f"[video-recap] 🧩 visual overlays: {len(overlays)} → {path}", flush=True)
|
|
88
|
+
return path
|
|
89
|
+
|
|
90
|
+
|
|
91
|
+
def _print_grounding_qc_pointer(work_dir):
|
|
92
|
+
qc_path = Path(work_dir) / "grounding_qc.json"
|
|
93
|
+
if not qc_path.exists():
|
|
94
|
+
return
|
|
95
|
+
data = load_json(qc_path)
|
|
96
|
+
ranges = data["review_coverage"]["time_ranges"]
|
|
97
|
+
warnings = data["warnings"]
|
|
98
|
+
suffix = f" · warnings {len(warnings)}" if warnings else ""
|
|
99
|
+
print(
|
|
100
|
+
f"[video-recap] 🧭 Grounding QC: {data['verdict']} · ranges {len(ranges)}{suffix} → {qc_path}",
|
|
101
|
+
flush=True,
|
|
102
|
+
)
|
|
103
|
+
|
|
104
|
+
|
|
105
|
+
def _print_narration_review_pointer(work_dir, *, review_ran=True):
|
|
106
|
+
"""Surface the advisory narration review produced by this run, if any.
|
|
107
|
+
|
|
108
|
+
Review is optional/fail-open: review_ran=False (disabled or failed) prints nothing so a
|
|
109
|
+
stale narration_review.md from an older run is never surfaced. When it ran, video-script's
|
|
110
|
+
review_runner has written both narration_review.json and .md.
|
|
111
|
+
"""
|
|
112
|
+
_print_grounding_qc_pointer(work_dir)
|
|
113
|
+
if not review_ran:
|
|
114
|
+
return
|
|
115
|
+
review_md = Path(work_dir) / "narration_review.md"
|
|
116
|
+
data = load_json(Path(work_dir) / "narration_review.json")
|
|
117
|
+
n_err = sum(1 for f in data["findings"] if f["severity"] == "error")
|
|
118
|
+
print(
|
|
119
|
+
f"[video-recap] 📋 解说评审(建议性,不拦截): {data['verdict']} · "
|
|
120
|
+
f"{len(data['findings'])} 条意见(error {n_err})→ {review_md}"
|
|
121
|
+
)
|
|
122
|
+
|
|
123
|
+
|
|
124
|
+
def _settings_for_compare(settings):
|
|
125
|
+
"""Settings that, if changed, invalidate reusing an existing work_dir on resume.
|
|
126
|
+
|
|
127
|
+
`consolidate`/`consolidate_asr` are EXCLUDED: they only ADD an optional understanding
|
|
128
|
+
artifact and never re-run Phase A on a Phase-B resume, so a stored manifest carrying the
|
|
129
|
+
old default (or missing the key entirely, pre-dating it) must still resume — otherwise
|
|
130
|
+
flipping `--consolidate`'s default ON would hard-fail every in-flight work_dir.
|
|
131
|
+
"""
|
|
132
|
+
s = dict(settings)
|
|
133
|
+
s.pop("consolidate", None)
|
|
134
|
+
s.pop("consolidate_asr", None)
|
|
135
|
+
return s
|
|
136
|
+
|
|
137
|
+
|
|
138
|
+
def _manifest_mismatches(work_dir, video, args):
|
|
139
|
+
expected = _run_manifest_payload(video, args)
|
|
140
|
+
actual = _load_run_manifest(work_dir)
|
|
141
|
+
if actual is None:
|
|
142
|
+
return ["缺少 recap_run_manifest.json;不能证明 work_dir 属于当前视频/参数"]
|
|
143
|
+
# A multi-source manifest carries `sources` instead of these keys, so .get() reports it
|
|
144
|
+
# as a mismatch rather than a crash.
|
|
145
|
+
mismatches = [
|
|
146
|
+
f"{key}: expected {expected[key]!r}, got {actual.get(key)!r}"
|
|
147
|
+
for key in ("source_video", "source_video_identity")
|
|
148
|
+
if actual.get(key) != expected[key]
|
|
149
|
+
]
|
|
150
|
+
if _settings_for_compare(actual["settings"]) != _settings_for_compare(expected["settings"]):
|
|
151
|
+
mismatches.append("settings: 当前 CLI/env 参数与 Phase A manifest 不匹配")
|
|
152
|
+
actual_audio = actual.get("audio")
|
|
153
|
+
expected_audio = audio_binding(args)
|
|
154
|
+
if actual_audio != expected_audio:
|
|
155
|
+
mismatches.append(
|
|
156
|
+
f"audio: expected {expected_audio!r}, got {actual_audio!r}"
|
|
157
|
+
)
|
|
158
|
+
return mismatches
|
|
159
|
+
|
|
160
|
+
|
|
161
|
+
def _multi_manifest_mismatches(work_dir, videos, args, source_records):
|
|
162
|
+
expected = _multi_run_manifest_payload(videos, args, source_records)
|
|
163
|
+
actual = _load_run_manifest(work_dir)
|
|
164
|
+
if actual is None:
|
|
165
|
+
return ["缺少 recap_run_manifest.json;不能证明 work_dir 属于当前多视频/参数"]
|
|
166
|
+
if actual.get("mode") != "multi_source":
|
|
167
|
+
return [f"mode: expected 'multi_source', got {actual.get('mode')!r}"]
|
|
168
|
+
mismatches = []
|
|
169
|
+
identity = ("source_id", "source_path", "source_video_identity")
|
|
170
|
+
# A 0.5.0 manifest carries `source_video_fingerprint` instead of `source_video_identity`;
|
|
171
|
+
# .get() reports it as a mismatch rather than a crash.
|
|
172
|
+
if [{k: s.get(k) for k in identity} for s in actual["sources"]] != [
|
|
173
|
+
{k: s[k] for k in identity} for s in expected["sources"]
|
|
174
|
+
]:
|
|
175
|
+
mismatches.append(
|
|
176
|
+
"sources: 当前输入视频列表/顺序/source_id/identity 与 Phase A manifest 不匹配"
|
|
177
|
+
)
|
|
178
|
+
if _settings_for_compare(actual["settings"]) != _settings_for_compare(expected["settings"]):
|
|
179
|
+
mismatches.append("settings: 当前 CLI/env 参数与 Phase A manifest 不匹配")
|
|
180
|
+
actual_audio = actual.get("audio")
|
|
181
|
+
expected_audio = audio_binding(args)
|
|
182
|
+
if actual_audio != expected_audio:
|
|
183
|
+
mismatches.append(
|
|
184
|
+
f"audio: expected {expected_audio!r}, got {actual_audio!r}"
|
|
185
|
+
)
|
|
186
|
+
return mismatches
|
|
187
|
+
|
|
188
|
+
|
|
189
|
+
def _read_assembly_output(work_dir):
|
|
190
|
+
return Path(load_json(Path(work_dir) / ASSEMBLY_MANIFEST)["final_output"])
|
|
191
|
+
|
|
192
|
+
|
|
193
|
+
def _read_phase_ledger(work_dir):
|
|
194
|
+
"""Phase ledger (cut mode): which artifacts exist and the clip_plan/narration they match.
|
|
195
|
+
|
|
196
|
+
Lets resume be driven by recorded phase state rather than bare file existence — the
|
|
197
|
+
prerequisite for the cut-first/narrate-second two-pause flow, and the guard that keeps a
|
|
198
|
+
narration written for one clip_plan from silently driving a different cut into TTS.
|
|
199
|
+
None before the first cut pass has recorded anything.
|
|
200
|
+
"""
|
|
201
|
+
path = Path(work_dir) / PHASE_LEDGER
|
|
202
|
+
return load_json(path) if path.exists() else None
|
|
203
|
+
|
|
204
|
+
|
|
205
|
+
def _write_phase_ledger(work_dir, **fields):
|
|
206
|
+
ledger = _read_phase_ledger(work_dir) or {}
|
|
207
|
+
ledger.update(fields)
|
|
208
|
+
(Path(work_dir) / PHASE_LEDGER).write_text(
|
|
209
|
+
json.dumps(ledger, ensure_ascii=False, indent=2), encoding="utf-8"
|
|
210
|
+
)
|
|
211
|
+
return ledger
|
|
212
|
+
|
|
213
|
+
|
|
214
|
+
def _cut_narration_is_stale(ledger, current_clip_plan_identity):
|
|
215
|
+
"""Two-pass cut: the narration is authored against the rendered cut shown at the A2 pause,
|
|
216
|
+
i.e. against the clip_plan recorded in the ledger (its ``{size, mtime_ns}`` identity). If
|
|
217
|
+
clip_plan.json was rewritten since (a re-cut) while that narration is still present, it
|
|
218
|
+
describes the OLD cut — stale."""
|
|
219
|
+
return ledger is not None and ledger["clip_plan_identity"] != current_clip_plan_identity
|
|
220
|
+
|
|
221
|
+
|
|
222
|
+
def _continuation_command(video, work_dir, args):
|
|
223
|
+
# Values a project binding filled in are re-derived from --project on resume.
|
|
224
|
+
bound = getattr(args, "_bound_from_project", frozenset())
|
|
225
|
+
parts = [
|
|
226
|
+
sys.executable,
|
|
227
|
+
str(_entry("video-recap", "recap.py")),
|
|
228
|
+
*[str(v) for v in _coerce_videos(video)],
|
|
229
|
+
"--work-dir",
|
|
230
|
+
str(work_dir),
|
|
231
|
+
]
|
|
232
|
+
if args.context:
|
|
233
|
+
parts += ["--context", args.context]
|
|
234
|
+
if args.scene_threshold is not None:
|
|
235
|
+
parts += ["--scene-threshold", str(args.scene_threshold)]
|
|
236
|
+
if args.style != "纪录片":
|
|
237
|
+
parts += ["--style", args.style]
|
|
238
|
+
if args.edit_mode != "full":
|
|
239
|
+
parts += ["--edit-mode", args.edit_mode]
|
|
240
|
+
if args.audio_mode != "narration":
|
|
241
|
+
parts += ["--audio-mode", args.audio_mode]
|
|
242
|
+
if args.audio_stream_index != 0:
|
|
243
|
+
parts += ["--audio-stream-index", str(args.audio_stream_index)]
|
|
244
|
+
if args.target_duration:
|
|
245
|
+
parts += ["--target-duration", args.target_duration]
|
|
246
|
+
if args.allow_duration_drift:
|
|
247
|
+
parts.append("--allow-duration-drift")
|
|
248
|
+
if args.skip_asr:
|
|
249
|
+
parts.append("--skip-asr")
|
|
250
|
+
if args.mimo_video_overview:
|
|
251
|
+
parts.append("--mimo-video-overview")
|
|
252
|
+
if args.mimo_qc != "off":
|
|
253
|
+
parts += ["--mimo-qc", args.mimo_qc]
|
|
254
|
+
if args.mimo_qc_refresh:
|
|
255
|
+
parts.append("--mimo-qc-refresh")
|
|
256
|
+
if not args.consolidate: # default is ON; only the opt-out needs to round-trip
|
|
257
|
+
parts.append("--no-consolidate")
|
|
258
|
+
if args.consolidate_asr:
|
|
259
|
+
parts.append("--consolidate-asr")
|
|
260
|
+
if uses_narration(args):
|
|
261
|
+
if args.mimo_tts_voice and "mimo_tts_voice" not in bound:
|
|
262
|
+
parts += ["--mimo-tts-voice", args.mimo_tts_voice]
|
|
263
|
+
if args.tts_provider != "auto" and "tts_provider" not in bound:
|
|
264
|
+
parts += ["--tts-provider", args.tts_provider]
|
|
265
|
+
if args.voice_ref and "voice_ref" not in bound:
|
|
266
|
+
parts += ["--voice-ref", args.voice_ref]
|
|
267
|
+
if args.allow_partial_tts:
|
|
268
|
+
parts.append("--allow-partial-tts")
|
|
269
|
+
if args.preserve_approved_text:
|
|
270
|
+
parts.append("--preserve-approved-text")
|
|
271
|
+
if args.burn_subtitles is not None:
|
|
272
|
+
parts.append("--burn-subtitles" if args.burn_subtitles else "--no-burn-subtitles")
|
|
273
|
+
if args.subtitle_y_top is not None:
|
|
274
|
+
parts += ["--subtitle-y-top", str(args.subtitle_y_top)]
|
|
275
|
+
if args.subtitle_y_bot is not None:
|
|
276
|
+
parts += ["--subtitle-y-bot", str(args.subtitle_y_bot)]
|
|
277
|
+
if args.output_dir:
|
|
278
|
+
parts += ["--output-dir", args.output_dir]
|
|
279
|
+
if args.export_jianying:
|
|
280
|
+
parts.append("--export-jianying")
|
|
281
|
+
if args.jianying_bundle_media:
|
|
282
|
+
parts.append("--jianying-bundle-media")
|
|
283
|
+
if args.jianying_no_bundle_media:
|
|
284
|
+
parts.append("--jianying-no-bundle-media")
|
|
285
|
+
if uses_narration(args):
|
|
286
|
+
if args.review_narration is not None:
|
|
287
|
+
parts.append(
|
|
288
|
+
"--review-narration" if args.review_narration else "--no-review-narration"
|
|
289
|
+
)
|
|
290
|
+
if args.require_narration_review:
|
|
291
|
+
parts.append("--require-narration-review")
|
|
292
|
+
if args.material_library_dir and "material_library_dir" not in bound:
|
|
293
|
+
parts += ["--material-library-dir", args.material_library_dir]
|
|
294
|
+
if getattr(args, "project", None):
|
|
295
|
+
parts += ["--project", args.project]
|
|
296
|
+
if args.use_materials:
|
|
297
|
+
parts.append("--use-materials")
|
|
298
|
+
if args.save_materials:
|
|
299
|
+
parts.append("--save-materials")
|
|
300
|
+
if args.require_final_qc:
|
|
301
|
+
parts.append("--require-final-qc")
|
|
302
|
+
return " ".join(shlex.quote(part) for part in parts)
|
|
303
|
+
|
|
304
|
+
|
|
305
|
+
def _source_work_dir(project_work_dir, source_record):
|
|
306
|
+
return Path(project_work_dir) / source_record["source_work_dir"]
|
|
307
|
+
|
|
308
|
+
|
|
309
|
+
def _understand_args_for_source(source_record, source_work_dir, args):
|
|
310
|
+
uargs = [
|
|
311
|
+
source_record["source_path"],
|
|
312
|
+
"--work-dir",
|
|
313
|
+
str(source_work_dir),
|
|
314
|
+
"--style",
|
|
315
|
+
args.style,
|
|
316
|
+
"--edit-mode",
|
|
317
|
+
args.edit_mode,
|
|
318
|
+
]
|
|
319
|
+
if args.context:
|
|
320
|
+
uargs += ["--context", args.context]
|
|
321
|
+
if args.scene_threshold is not None:
|
|
322
|
+
uargs += ["--scene-threshold", str(args.scene_threshold)]
|
|
323
|
+
if args.target_duration:
|
|
324
|
+
uargs += ["--target-duration", args.target_duration]
|
|
325
|
+
if args.skip_asr:
|
|
326
|
+
uargs.append("--skip-asr")
|
|
327
|
+
if args.mimo_video_overview:
|
|
328
|
+
uargs.append("--mimo-video-overview")
|
|
329
|
+
uargs.append("--consolidate" if args.consolidate else "--no-consolidate")
|
|
330
|
+
if args.consolidate_asr:
|
|
331
|
+
uargs.append("--consolidate-asr")
|
|
332
|
+
return uargs
|
|
333
|
+
|
|
334
|
+
|
|
335
|
+
def _brief_excerpt(path, limit=1200):
|
|
336
|
+
text = Path(path).read_text(encoding="utf-8")
|
|
337
|
+
if len(text) <= limit:
|
|
338
|
+
return text
|
|
339
|
+
marker = "\n…\n"
|
|
340
|
+
|
|
341
|
+
def section(heading):
|
|
342
|
+
lines = text.splitlines()
|
|
343
|
+
try:
|
|
344
|
+
start = lines.index(heading)
|
|
345
|
+
except ValueError:
|
|
346
|
+
return ""
|
|
347
|
+
end = next(
|
|
348
|
+
(i for i in range(start + 1, len(lines)) if lines[i].startswith("## ")),
|
|
349
|
+
len(lines),
|
|
350
|
+
)
|
|
351
|
+
return "\n".join(lines[start:end]).strip()
|
|
352
|
+
|
|
353
|
+
def clipped(value, budget):
|
|
354
|
+
if len(value) <= budget:
|
|
355
|
+
return value
|
|
356
|
+
usable = budget - len(marker)
|
|
357
|
+
head = round(usable * 0.7)
|
|
358
|
+
return value[:head].rstrip() + marker + value[len(value) - (usable - head):].lstrip()
|
|
359
|
+
|
|
360
|
+
# The generic writing contract occupies the front of every generated brief. A raw
|
|
361
|
+
# prefix therefore drops the source facts that multi-source planning actually needs.
|
|
362
|
+
# Give evidence-bearing sections equal space and retain both their opening and tail.
|
|
363
|
+
preferred = [
|
|
364
|
+
value
|
|
365
|
+
for value in (
|
|
366
|
+
section("## Story context (from background_research.json)"),
|
|
367
|
+
section("## Understanding index (from consolidate.py)"),
|
|
368
|
+
section("## ASR writing chunks (semantic windows)"),
|
|
369
|
+
section("## Scene timing guide"),
|
|
370
|
+
)
|
|
371
|
+
if value
|
|
372
|
+
]
|
|
373
|
+
if preferred:
|
|
374
|
+
per_section = (limit - 2 * (len(preferred) - 1)) // len(preferred)
|
|
375
|
+
return "\n\n".join(clipped(value, per_section) for value in preferred)[:limit]
|
|
376
|
+
usable = limit - len(marker)
|
|
377
|
+
head = usable // 4
|
|
378
|
+
return text[:head].rstrip() + marker + text[len(text) - (usable - head):].lstrip()
|
|
379
|
+
|
|
380
|
+
|
|
381
|
+
def _write_multi_source_clip_brief(work_dir, source_records, args):
|
|
382
|
+
lines = [
|
|
383
|
+
"# Multi-source Clip Plan Brief",
|
|
384
|
+
"",
|
|
385
|
+
"你正在做多视频剪辑复盘。当前 MVP 只支持 `--edit-mode cut`:先做跨素材的故事与视听决定,再写 `clip_plan.json`;下一步会剪出 `edited_source.mp4`,最后按 OUTPUT 时间轴写 `narration.json`。",
|
|
386
|
+
"",
|
|
387
|
+
"## 创作决定",
|
|
388
|
+
"",
|
|
389
|
+
"先判断创作控制模式:CREATE 比较至少两个可行剪辑假设;DIRECTED 落实用户指定结构;REVISION 只改最新反馈点并冻结未点名内容。然后写或更新 `recap_story_plan.json` 与 `visual_audio_board.json`。前者记录观众承诺、POV、戏剧问题、选定主线及 change-based beats;后者记录每拍的具体画面/反应、入点/出点、原声锚点、`audio_owner` 与 `narration_job`。",
|
|
390
|
+
"",
|
|
391
|
+
"多视频不是把每个来源各做一段小总结。每个来源片段都必须服务同一条主线,并用 `source_id` 保留证据归属。这两份计划是 Agent 与建议型评审使用的工作记录,不是 CLI 渲染门禁。",
|
|
392
|
+
"",
|
|
393
|
+
"## 必须写入的格式",
|
|
394
|
+
"",
|
|
395
|
+
"```json",
|
|
396
|
+
'{"target_duration":"10m","clips":[{"source_id":"src_xxx","start":12.0,"end":38.0,"reason":"b01 | hook | knowledge: unknown→threat | POV=主角 | 保留倾听反应 | 入点=问题已问出 | 出点=沉默落地"}]}',
|
|
397
|
+
"```",
|
|
398
|
+
"",
|
|
399
|
+
"- 每个 clip 必须带 `source_id`。",
|
|
400
|
+
"- `start`/`end` 是对应 source 原视频时间(秒)。",
|
|
401
|
+
"- 不同 `source_id` 的相同时间段不算重叠;同一 `source_id` 内不要重复/重叠,除非你明确接受稀疏/重复剪辑风险。",
|
|
402
|
+
'- 素材库是文件系统 JSON/MD/JSONL;需要找历史素材时直接 `grep -R "关键词" <material-library-dir>`。',
|
|
403
|
+
"",
|
|
404
|
+
"## 剪辑规则",
|
|
405
|
+
*CUT_TIMELINE_CRAFT_BULLETS,
|
|
406
|
+
"- 跨来源选择必须服务共享主线;除非本来就是 setup / turn / payoff 的设计,不要让某个来源变成脱节的小复盘。",
|
|
407
|
+
"- 选片前使用下方 source work_dir(`sources/<source_id>`)核对 scenes.json、ASR、索引和逐来源 brief。",
|
|
408
|
+
]
|
|
409
|
+
if args.target_duration:
|
|
410
|
+
lines.append(f"- 目标时长:`{args.target_duration}`。")
|
|
411
|
+
lines += ["", "## Sources", ""]
|
|
412
|
+
for s in source_records:
|
|
413
|
+
swd = _source_work_dir(work_dir, s)
|
|
414
|
+
lines += [
|
|
415
|
+
f"### {s['source_id']} — {s['source_name']}",
|
|
416
|
+
f"- path: `{s['source_path']}`",
|
|
417
|
+
f"- work_dir: `{swd}`",
|
|
418
|
+
f"- material_id: `{s['material_id']}`",
|
|
419
|
+
]
|
|
420
|
+
excerpt = _brief_excerpt(swd / "agent_narration_brief.md")
|
|
421
|
+
if excerpt:
|
|
422
|
+
lines += ["", "#### per-source brief excerpt", "", excerpt, ""]
|
|
423
|
+
(Path(work_dir) / "agent_narration_brief.md").write_text(
|
|
424
|
+
"\n".join(lines).rstrip() + "\n", encoding="utf-8"
|
|
425
|
+
)
|
|
426
|
+
|
|
427
|
+
|
|
428
|
+
def _source_speech_rows(source_dir):
|
|
429
|
+
"""The cleaned transcript wins when it carries text; same precedence as
|
|
430
|
+
audio_mix._handoff_speech_evidence and sentence_boundaries._load_source_speech_spans."""
|
|
431
|
+
clean = source_dir / "asr_clean.json"
|
|
432
|
+
if clean.exists():
|
|
433
|
+
rows = load_json(clean)["segments"]
|
|
434
|
+
if any(row["text"].strip() for row in rows):
|
|
435
|
+
return rows
|
|
436
|
+
raw = source_dir / "asr_result.json"
|
|
437
|
+
return load_json(raw) if raw.exists() else []
|
|
438
|
+
|
|
439
|
+
|
|
440
|
+
def _write_multi_source_output_speech_evidence(work_dir, source_records, plan):
|
|
441
|
+
"""Map each source's speech and quiet evidence onto the combined output clock."""
|
|
442
|
+
source_by_id = {row["source_id"]: row for row in source_records}
|
|
443
|
+
cache = {}
|
|
444
|
+
|
|
445
|
+
def load_source(source_id):
|
|
446
|
+
if source_id not in cache:
|
|
447
|
+
source_dir = _source_work_dir(work_dir, source_by_id[source_id])
|
|
448
|
+
anchors_path = source_dir / "speech_boundary_anchors.json"
|
|
449
|
+
quiet_path = source_dir / "silence_periods.json"
|
|
450
|
+
cache[source_id] = (
|
|
451
|
+
load_json(anchors_path)["sentence_anchors"] if anchors_path.exists() else [],
|
|
452
|
+
_source_speech_rows(source_dir),
|
|
453
|
+
load_json(quiet_path) if quiet_path.exists() else [],
|
|
454
|
+
)
|
|
455
|
+
return cache[source_id]
|
|
456
|
+
|
|
457
|
+
mapped_anchors, mapped_speech, mapped_quiet = [], [], []
|
|
458
|
+
for clip in plan["clips"]:
|
|
459
|
+
source_id = clip["source_id"]
|
|
460
|
+
source_start = float(clip["source_start"])
|
|
461
|
+
source_end = float(clip["source_end"])
|
|
462
|
+
output_start = float(clip["output_start"])
|
|
463
|
+
anchors, speech_rows, quiet_rows = load_source(source_id)
|
|
464
|
+
for anchor in anchors:
|
|
465
|
+
when = float(anchor["time"])
|
|
466
|
+
if not (source_start - 0.05 <= when <= source_end + 0.05):
|
|
467
|
+
continue
|
|
468
|
+
pause = max(source_start, min(float(anchor["pause_start"]), when))
|
|
469
|
+
item = dict(anchor)
|
|
470
|
+
item.update(
|
|
471
|
+
source_id=source_id,
|
|
472
|
+
source_time=round(when, 3),
|
|
473
|
+
time=round(output_start + when - source_start, 3),
|
|
474
|
+
source_pause_start=round(pause, 3),
|
|
475
|
+
pause_start=round(output_start + pause - source_start, 3),
|
|
476
|
+
)
|
|
477
|
+
mapped_anchors.append(item)
|
|
478
|
+
for rows, destination, require_text in (
|
|
479
|
+
(speech_rows, mapped_speech, True),
|
|
480
|
+
(quiet_rows, mapped_quiet, False),
|
|
481
|
+
):
|
|
482
|
+
for row in rows:
|
|
483
|
+
if require_text and not row["text"].strip():
|
|
484
|
+
continue
|
|
485
|
+
if not require_text and row["has_speech"]:
|
|
486
|
+
continue
|
|
487
|
+
start = max(source_start, float(row["start"]))
|
|
488
|
+
end = min(source_end, float(row["end"]))
|
|
489
|
+
if end <= start:
|
|
490
|
+
continue
|
|
491
|
+
item = dict(row)
|
|
492
|
+
item.update(
|
|
493
|
+
source_id=source_id,
|
|
494
|
+
source_start=round(start, 3),
|
|
495
|
+
source_end=round(end, 3),
|
|
496
|
+
start=round(output_start + start - source_start, 3),
|
|
497
|
+
end=round(output_start + end - source_start, 3),
|
|
498
|
+
)
|
|
499
|
+
destination.append(item)
|
|
500
|
+
|
|
501
|
+
payload = {
|
|
502
|
+
"schema_version": 2,
|
|
503
|
+
"artifact": "speech_boundary_anchors_output.json",
|
|
504
|
+
"timeline": "cut_output",
|
|
505
|
+
"source_artifact": "multi_source_manifest.json",
|
|
506
|
+
"sentence_anchors": sorted(mapped_anchors, key=lambda row: row["time"]),
|
|
507
|
+
"speech_spans": sorted(mapped_speech, key=lambda row: (row["start"], row["end"])),
|
|
508
|
+
"quiet_windows": sorted(mapped_quiet, key=lambda row: (row["start"], row["end"])),
|
|
509
|
+
}
|
|
510
|
+
Path(work_dir, "speech_boundary_anchors_output.json").write_text(
|
|
511
|
+
json.dumps(payload, ensure_ascii=False, indent=2), encoding="utf-8"
|
|
512
|
+
)
|
|
513
|
+
return payload
|
|
514
|
+
|
|
515
|
+
|
|
516
|
+
def _write_multi_source_output_brief(work_dir, source_records, validated_plan_path):
|
|
517
|
+
plan = load_json(validated_plan_path)
|
|
518
|
+
source_by_id = {s["source_id"]: s for s in source_records}
|
|
519
|
+
speech_evidence = _write_multi_source_output_speech_evidence(
|
|
520
|
+
work_dir, source_records, plan
|
|
521
|
+
)
|
|
522
|
+
lines = [
|
|
523
|
+
"# Multi-source Output Narration Brief",
|
|
524
|
+
"",
|
|
525
|
+
"现在 `edited_source.mp4` 已经由多个源视频剪好。请对剪后成片的 OUTPUT 时间轴写 `narration.json`。",
|
|
526
|
+
"",
|
|
527
|
+
"## 更新创作决定",
|
|
528
|
+
"",
|
|
529
|
+
"先查看 `edited_source.mp4` 与下方 kept-clip map,在 `visual_audio_board.json` 中补齐 OUTPUT 起止时间,并根据实际成片重新确认每拍的 `audio_owner`、原声锚点与 `narration_job`。如剪后顺序改变了主线或情绪路径,同时更新 `recap_story_plan.json`。",
|
|
530
|
+
"",
|
|
531
|
+
"beat 对应关系保留在视听板中;`narration.json` 仍只承载时间、文本与朗读参数,CLI 不声称校验计划映射。",
|
|
532
|
+
"",
|
|
533
|
+
"## narration.json 格式",
|
|
534
|
+
"",
|
|
535
|
+
"```json",
|
|
536
|
+
'[{"start":0.0,"end":4.0,"narration":"解说文本。","pause_after_ms":250,"overlaps_speech":true,"emotion":"平静"}]',
|
|
537
|
+
"```",
|
|
538
|
+
"",
|
|
539
|
+
"注意:`start`/`end` 是剪后成片时间,不是原视频时间。",
|
|
540
|
+
"",
|
|
541
|
+
"## 输出时间线写作规则",
|
|
542
|
+
*MULTI_SOURCE_NARRATION_CRAFT_BULLETS,
|
|
543
|
+
"- 旁白增加上下文、因果、预期、证据支持的解释或跨源过渡,不复述画面像素;先保人物与原声,再润色句子。",
|
|
544
|
+
"",
|
|
545
|
+
"## Kept clips (output → source)",
|
|
546
|
+
]
|
|
547
|
+
for c in plan["clips"]:
|
|
548
|
+
src = source_by_id[c["source_id"]]
|
|
549
|
+
reason = f" — {c['reason']}" if c["reason"] else ""
|
|
550
|
+
lines.append(
|
|
551
|
+
f"- output {_fmt_range(c['output_start'], c['output_end'])} → "
|
|
552
|
+
f"{c['source_id']} `{src['source_path']}` "
|
|
553
|
+
f"source {_fmt_range(c['source_start'], c['source_end'])}{reason}"
|
|
554
|
+
)
|
|
555
|
+
anchors = speech_evidence["sentence_anchors"]
|
|
556
|
+
if anchors:
|
|
557
|
+
lines += ["", "## 原声句末安全切入点"]
|
|
558
|
+
lines.extend(
|
|
559
|
+
f"- {row['time']:.3f}s ({row['source_id']})"
|
|
560
|
+
for row in anchors
|
|
561
|
+
if row["confidence"] in {"high", "medium"}
|
|
562
|
+
)
|
|
563
|
+
lines += ["", "## Source work dirs"]
|
|
564
|
+
for s in source_records:
|
|
565
|
+
lines.append(f"- {s['source_id']}: `{_source_work_dir(work_dir, s)}`")
|
|
566
|
+
(Path(work_dir) / "agent_narration_brief.md").write_text(
|
|
567
|
+
"\n".join(lines).rstrip() + "\n", encoding="utf-8"
|
|
568
|
+
)
|
|
569
|
+
|
|
570
|
+
|
|
571
|
+
def _cut_qc_summary_line(qc):
|
|
572
|
+
geometry = qc["output_geometry"]
|
|
573
|
+
parts = [
|
|
574
|
+
f"target_duration_status={qc['target_duration_status']}",
|
|
575
|
+
f"total_duration={qc['total_duration']}",
|
|
576
|
+
f"clip_count={qc['clip_count']}",
|
|
577
|
+
f"join_fade_ms={qc['join_fade_ms']}",
|
|
578
|
+
f"output_geometry={geometry['width']}x{geometry['height']}@{geometry['fps']}fps"
|
|
579
|
+
f" reason={qc['output_geometry_reason']}",
|
|
580
|
+
]
|
|
581
|
+
if qc.get("warnings"):
|
|
582
|
+
parts.append(f"warnings={len(qc['warnings'])}")
|
|
583
|
+
return "[video-recap] cut QC: " + "; ".join(parts)
|
|
584
|
+
|
|
585
|
+
|
|
586
|
+
def _surface_cut_qc(work_dir):
|
|
587
|
+
"""Print the cut QC video-cut recorded; cut.py itself already fails on blocking QC."""
|
|
588
|
+
qc = load_json(Path(work_dir) / "clip_plan_validated.json")["qc"]
|
|
589
|
+
print(_cut_qc_summary_line(qc), flush=True)
|
|
590
|
+
return qc
|
|
591
|
+
|
|
592
|
+
|
|
593
|
+
def _fmt_range(start, end):
|
|
594
|
+
return f"{start:.3f}-{end:.3f}s"
|
|
595
|
+
|
|
596
|
+
|
|
597
|
+
def _material_library_dir(args):
|
|
598
|
+
return args.material_library_dir or os.environ.get("VIDEO_RECAP_MATERIAL_LIBRARY_DIR") or None
|
|
599
|
+
|
|
600
|
+
|
|
601
|
+
def _materials_enabled(args):
|
|
602
|
+
return bool(_material_library_dir(args) and args.use_materials)
|
|
603
|
+
|
|
604
|
+
|
|
605
|
+
def _save_materials_enabled(args):
|
|
606
|
+
return bool(_material_library_dir(args) and args.save_materials)
|
|
607
|
+
|
|
608
|
+
|
|
609
|
+
def _pause_for_agent(work_dir, need_text, cont, inspect_hint=None):
|
|
610
|
+
brief = Path(work_dir) / "agent_narration_brief.md"
|
|
611
|
+
print("=" * 50)
|
|
612
|
+
if "Research the story FIRST" in brief.read_text(encoding="utf-8"):
|
|
613
|
+
print(
|
|
614
|
+
"[video-recap] ⚑ 理解素材偏薄:先按 brief 顶部「Research the story FIRST」调研并写 "
|
|
615
|
+
"background_research.json,再写解说,避免看图说话。"
|
|
616
|
+
)
|
|
617
|
+
print(f"[video-recap] ⏸ 阅读 {brief}(按 video-script 规则)后写入 {need_text}")
|
|
618
|
+
if inspect_hint:
|
|
619
|
+
print(f"[video-recap] 先核对状态/时间轴(建议性): {inspect_hint}")
|
|
620
|
+
print(f"[video-recap] 写完后重跑继续: {cont}")
|
|
621
|
+
print("=" * 50)
|