@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.
Files changed (794) hide show
  1. package/docs/THIRD_PARTY_LICENSES.md +10 -0
  2. package/docs/blocked-delivery-recovery.md +7 -0
  3. package/docs/concern-attention.md +19 -0
  4. package/docs/observation-contract.md +11 -0
  5. package/docs/releases/2.8.2.md +7 -0
  6. package/lib/agent-runtime.d.ts +7 -0
  7. package/lib/agent-runtime.d.ts.map +1 -1
  8. package/lib/agent-runtime.js +110 -32
  9. package/lib/agent-runtime.js.map +1 -1
  10. package/lib/api.js +28 -6
  11. package/lib/api.js.map +1 -1
  12. package/lib/autonomy.d.ts.map +1 -1
  13. package/lib/autonomy.js +5 -0
  14. package/lib/autonomy.js.map +1 -1
  15. package/lib/channel-message.d.ts +2 -0
  16. package/lib/channel-message.d.ts.map +1 -1
  17. package/lib/channel-message.js.map +1 -1
  18. package/lib/channels/direct/message-format.js +127 -127
  19. package/lib/channels/direct/message-format.js.map +1 -1
  20. package/lib/channels/manager.d.ts.map +1 -1
  21. package/lib/channels/manager.js +4 -3
  22. package/lib/channels/manager.js.map +1 -1
  23. package/lib/channels/notification-delivery.d.ts.map +1 -1
  24. package/lib/channels/notification-delivery.js +10 -0
  25. package/lib/channels/notification-delivery.js.map +1 -1
  26. package/lib/channels/weixin/connect.d.ts.map +1 -1
  27. package/lib/client-api.d.ts +7 -2
  28. package/lib/client-api.d.ts.map +1 -1
  29. package/lib/client-api.js +8 -1
  30. package/lib/client-api.js.map +1 -1
  31. package/lib/client.d.ts.map +1 -1
  32. package/lib/client.js +2185 -1956
  33. package/lib/client.js.map +4 -4
  34. package/lib/collaboration/composition.js +1 -1
  35. package/lib/collaboration/composition.js.map +1 -1
  36. package/lib/concern-attention.d.ts +19 -0
  37. package/lib/concern-attention.d.ts.map +1 -0
  38. package/lib/concern-attention.js +36 -0
  39. package/lib/concern-attention.js.map +1 -0
  40. package/lib/concern-domain.d.ts +7 -1
  41. package/lib/concern-domain.d.ts.map +1 -1
  42. package/lib/concern-domain.js +4 -0
  43. package/lib/concern-domain.js.map +1 -1
  44. package/lib/concern-execution-notes.d.ts +18 -0
  45. package/lib/concern-execution-notes.d.ts.map +1 -0
  46. package/lib/concern-execution-notes.js +41 -0
  47. package/lib/concern-execution-notes.js.map +1 -0
  48. package/lib/concern-execution-receipt.d.ts +4 -0
  49. package/lib/concern-execution-receipt.d.ts.map +1 -0
  50. package/lib/concern-execution-receipt.js +28 -0
  51. package/lib/concern-execution-receipt.js.map +1 -0
  52. package/lib/concern-execution.d.ts +30 -0
  53. package/lib/concern-execution.d.ts.map +1 -0
  54. package/lib/concern-execution.js +86 -0
  55. package/lib/concern-execution.js.map +1 -0
  56. package/lib/concern-management-tool.d.ts.map +1 -1
  57. package/lib/concern-management-tool.js +21 -19
  58. package/lib/concern-management-tool.js.map +1 -1
  59. package/lib/concern-note-source.d.ts +7 -0
  60. package/lib/concern-note-source.d.ts.map +1 -0
  61. package/lib/concern-note-source.js +25 -0
  62. package/lib/concern-note-source.js.map +1 -0
  63. package/lib/concern-resources.d.ts +27 -0
  64. package/lib/concern-resources.d.ts.map +1 -0
  65. package/lib/concern-resources.js +36 -0
  66. package/lib/concern-resources.js.map +1 -0
  67. package/lib/concern-sources.d.ts +1 -1
  68. package/lib/concern-sources.d.ts.map +1 -1
  69. package/lib/concern-store.d.ts +9 -1
  70. package/lib/concern-store.d.ts.map +1 -1
  71. package/lib/concern-store.js +111 -34
  72. package/lib/concern-store.js.map +1 -1
  73. package/lib/concern-tool.d.ts +1 -0
  74. package/lib/concern-tool.d.ts.map +1 -1
  75. package/lib/concern-tool.js +8 -4
  76. package/lib/concern-tool.js.map +1 -1
  77. package/lib/decision/conversation.d.ts +11 -0
  78. package/lib/decision/conversation.d.ts.map +1 -0
  79. package/lib/decision/conversation.js +52 -0
  80. package/lib/decision/conversation.js.map +1 -0
  81. package/lib/decision/events.d.ts +16 -0
  82. package/lib/decision/events.d.ts.map +1 -0
  83. package/lib/decision/events.js +9 -0
  84. package/lib/decision/events.js.map +1 -0
  85. package/lib/domain.d.ts +2 -0
  86. package/lib/domain.d.ts.map +1 -1
  87. package/lib/domain.js.map +1 -1
  88. package/lib/heartbeat.d.ts +12 -10
  89. package/lib/heartbeat.d.ts.map +1 -1
  90. package/lib/heartbeat.js +54 -26
  91. package/lib/heartbeat.js.map +1 -1
  92. package/lib/index.d.ts.map +1 -1
  93. package/lib/index.js +3 -0
  94. package/lib/index.js.map +1 -1
  95. package/lib/memory-prompt-context.js +1 -0
  96. package/lib/memory-prompt-context.js.map +1 -1
  97. package/lib/memory-reflection.js +1 -1
  98. package/lib/observation-contract.d.ts +9 -0
  99. package/lib/observation-contract.d.ts.map +1 -0
  100. package/lib/observation-contract.js +19 -0
  101. package/lib/observation-contract.js.map +1 -0
  102. package/lib/observation-executor.d.ts +5 -0
  103. package/lib/observation-executor.d.ts.map +1 -1
  104. package/lib/observation-executor.js +17 -1
  105. package/lib/observation-executor.js.map +1 -1
  106. package/lib/observation-loop.d.ts +5 -0
  107. package/lib/observation-loop.d.ts.map +1 -1
  108. package/lib/observation-loop.js +36 -3
  109. package/lib/observation-loop.js.map +1 -1
  110. package/lib/observation-sources.d.ts +14 -0
  111. package/lib/observation-sources.d.ts.map +1 -0
  112. package/lib/observation-sources.js +12 -0
  113. package/lib/observation-sources.js.map +1 -0
  114. package/lib/requirements/service.d.ts.map +1 -1
  115. package/lib/requirements/service.js +2 -0
  116. package/lib/requirements/service.js.map +1 -1
  117. package/lib/requirements/worker.d.ts.map +1 -1
  118. package/lib/requirements/worker.js +1 -0
  119. package/lib/requirements/worker.js.map +1 -1
  120. package/lib/scheduler/continuations.d.ts.map +1 -1
  121. package/lib/scheduler/continuations.js +17 -3
  122. package/lib/scheduler/continuations.js.map +1 -1
  123. package/lib/skills/builtin.d.ts.map +1 -1
  124. package/lib/skills/builtin.js +2 -0
  125. package/lib/skills/builtin.js.map +1 -1
  126. package/lib/skills/drama-builtin.d.ts.map +1 -1
  127. package/lib/skills/drama-builtin.js +13 -1
  128. package/lib/skills/drama-builtin.js.map +1 -1
  129. package/lib/skills/story-builtins.d.ts +3 -0
  130. package/lib/skills/story-builtins.d.ts.map +1 -0
  131. package/lib/skills/story-builtins.js +72 -0
  132. package/lib/skills/story-builtins.js.map +1 -0
  133. package/lib/skills/viora-canvas-builtin.d.ts.map +1 -1
  134. package/lib/skills/viora-canvas-builtin.js +12 -1
  135. package/lib/skills/viora-canvas-builtin.js.map +1 -1
  136. package/lib/snapshot-cache.d.ts +7 -0
  137. package/lib/snapshot-cache.d.ts.map +1 -0
  138. package/lib/snapshot-cache.js +26 -0
  139. package/lib/snapshot-cache.js.map +1 -0
  140. package/lib/tasks/result.js +1 -1
  141. package/lib/tasks/result.js.map +1 -1
  142. package/lib/ui/memory/concern-board.d.ts +1 -1
  143. package/lib/ui/memory/concern-board.d.ts.map +1 -1
  144. package/lib/ui/memory/concern-board.js +12 -6
  145. package/lib/ui/memory/concern-board.js.map +1 -1
  146. package/lib/ui/memory/concern-deletion.d.ts.map +1 -1
  147. package/lib/ui/memory/concern-deletion.js +2 -1
  148. package/lib/ui/memory/concern-deletion.js.map +1 -1
  149. package/lib/ui/memory/concern-editor.d.ts.map +1 -1
  150. package/lib/ui/memory/concern-editor.js +5 -3
  151. package/lib/ui/memory/concern-editor.js.map +1 -1
  152. package/lib/ui/memory/concern-execution-fields.d.ts +7 -0
  153. package/lib/ui/memory/concern-execution-fields.d.ts.map +1 -0
  154. package/lib/ui/memory/concern-execution-fields.js +8 -0
  155. package/lib/ui/memory/concern-execution-fields.js.map +1 -0
  156. package/lib/ui/memory/concern-feedback.d.ts +15 -0
  157. package/lib/ui/memory/concern-feedback.d.ts.map +1 -0
  158. package/lib/ui/memory/concern-feedback.js +13 -0
  159. package/lib/ui/memory/concern-feedback.js.map +1 -0
  160. package/lib/ui/memory/concern-panel.d.ts.map +1 -1
  161. package/lib/ui/memory/concern-panel.js +11 -3
  162. package/lib/ui/memory/concern-panel.js.map +1 -1
  163. package/package.json +5 -1
  164. package/resources/skills/novel-game-creation/manifest.json +393 -0
  165. package/resources/skills/novel-game-creation/upstream/LICENSE +21 -0
  166. package/resources/skills/novel-game-creation/upstream/README.md +420 -0
  167. package/resources/skills/novel-game-creation/upstream/README_ZH.md +421 -0
  168. package/resources/skills/novel-game-creation/upstream/VERSION +1 -0
  169. package/resources/skills/novel-game-creation/upstream/examples/jin-ping-mei/build/BUILD_BRIEF.md +219 -0
  170. package/resources/skills/novel-game-creation/upstream/examples/jin-ping-mei/build/app/.vercelignore +3 -0
  171. package/resources/skills/novel-game-creation/upstream/examples/jin-ping-mei/build/app/RUN.md +138 -0
  172. package/resources/skills/novel-game-creation/upstream/examples/jin-ping-mei/build/app/assets/bg/compound_new_guofeng.webp +0 -0
  173. package/resources/skills/novel-game-creation/upstream/examples/jin-ping-mei/build/app/assets/cg/finale/fate_coda.webp +0 -0
  174. package/resources/skills/novel-game-creation/upstream/examples/jin-ping-mei/build/app/assets/cg/finale/meng.webp +0 -0
  175. package/resources/skills/novel-game-creation/upstream/examples/jin-ping-mei/build/app/assets/cg/finale/pan.webp +0 -0
  176. package/resources/skills/novel-game-creation/upstream/examples/jin-ping-mei/build/app/assets/cg/finale/pinger.webp +0 -0
  177. package/resources/skills/novel-game-creation/upstream/examples/jin-ping-mei/build/app/assets/cg/finale/xuee.webp +0 -0
  178. package/resources/skills/novel-game-creation/upstream/examples/jin-ping-mei/build/app/assets/cg/finale/yue.webp +0 -0
  179. package/resources/skills/novel-game-creation/upstream/examples/jin-ping-mei/build/app/assets/cg/group/inner_court_accord_five.webp +0 -0
  180. package/resources/skills/novel-game-creation/upstream/examples/jin-ping-mei/build/app/assets/cg/group/inner_court_afterglow_five.webp +0 -0
  181. package/resources/skills/novel-game-creation/upstream/examples/jin-ping-mei/build/app/assets/cg/group/inner_court_alliance.webp +0 -0
  182. package/resources/skills/novel-game-creation/upstream/examples/jin-ping-mei/build/app/assets/cg/group/public_day10.webp +0 -0
  183. package/resources/skills/novel-game-creation/upstream/examples/jin-ping-mei/build/app/assets/cg/group/public_day15.webp +0 -0
  184. package/resources/skills/novel-game-creation/upstream/examples/jin-ping-mei/build/app/assets/cg/group/public_day5.webp +0 -0
  185. package/resources/skills/novel-game-creation/upstream/examples/jin-ping-mei/build/app/assets/cg/group/title_new_guofeng.webp +0 -0
  186. package/resources/skills/novel-game-creation/upstream/examples/jin-ping-mei/build/app/assets/cg/joint/pan_pinger.webp +0 -0
  187. package/resources/skills/novel-game-creation/upstream/examples/jin-ping-mei/build/app/assets/cg/joint/pan_xuee.webp +0 -0
  188. package/resources/skills/novel-game-creation/upstream/examples/jin-ping-mei/build/app/assets/cg/joint/yue_meng.webp +0 -0
  189. package/resources/skills/novel-game-creation/upstream/examples/jin-ping-mei/build/app/assets/cg/joint/yue_pan.webp +0 -0
  190. package/resources/skills/novel-game-creation/upstream/examples/jin-ping-mei/build/app/assets/cg/joint/yue_pinger.webp +0 -0
  191. package/resources/skills/novel-game-creation/upstream/examples/jin-ping-mei/build/app/assets/cg/meng/explicit.webp +0 -0
  192. package/resources/skills/novel-game-creation/upstream/examples/jin-ping-mei/build/app/assets/cg/meng/prelude.webp +0 -0
  193. package/resources/skills/novel-game-creation/upstream/examples/jin-ping-mei/build/app/assets/cg/milestone/meng.webp +0 -0
  194. package/resources/skills/novel-game-creation/upstream/examples/jin-ping-mei/build/app/assets/cg/milestone/pan.webp +0 -0
  195. package/resources/skills/novel-game-creation/upstream/examples/jin-ping-mei/build/app/assets/cg/milestone/pinger.webp +0 -0
  196. package/resources/skills/novel-game-creation/upstream/examples/jin-ping-mei/build/app/assets/cg/milestone/xuee.webp +0 -0
  197. package/resources/skills/novel-game-creation/upstream/examples/jin-ping-mei/build/app/assets/cg/milestone/yue.webp +0 -0
  198. package/resources/skills/novel-game-creation/upstream/examples/jin-ping-mei/build/app/assets/cg/pan/explicit.webp +0 -0
  199. package/resources/skills/novel-game-creation/upstream/examples/jin-ping-mei/build/app/assets/cg/pan/prelude.webp +0 -0
  200. package/resources/skills/novel-game-creation/upstream/examples/jin-ping-mei/build/app/assets/cg/pinger/explicit.webp +0 -0
  201. package/resources/skills/novel-game-creation/upstream/examples/jin-ping-mei/build/app/assets/cg/pinger/prelude.webp +0 -0
  202. package/resources/skills/novel-game-creation/upstream/examples/jin-ping-mei/build/app/assets/cg/xuee/explicit.webp +0 -0
  203. package/resources/skills/novel-game-creation/upstream/examples/jin-ping-mei/build/app/assets/cg/xuee/prelude.webp +0 -0
  204. package/resources/skills/novel-game-creation/upstream/examples/jin-ping-mei/build/app/assets/cg/yue/explicit.webp +0 -0
  205. package/resources/skills/novel-game-creation/upstream/examples/jin-ping-mei/build/app/assets/cg/yue/prelude.webp +0 -0
  206. package/resources/skills/novel-game-creation/upstream/examples/jin-ping-mei/build/app/assets/heroine/meng/night.webp +0 -0
  207. package/resources/skills/novel-game-creation/upstream/examples/jin-ping-mei/build/app/assets/heroine/pan/night.webp +0 -0
  208. package/resources/skills/novel-game-creation/upstream/examples/jin-ping-mei/build/app/assets/heroine/pinger/night.webp +0 -0
  209. package/resources/skills/novel-game-creation/upstream/examples/jin-ping-mei/build/app/assets/heroine/xuee/night.webp +0 -0
  210. package/resources/skills/novel-game-creation/upstream/examples/jin-ping-mei/build/app/assets/heroine/yue/night.webp +0 -0
  211. package/resources/skills/novel-game-creation/upstream/examples/jin-ping-mei/build/app/assets/household/li_jiaoer.webp +0 -0
  212. package/resources/skills/novel-game-creation/upstream/examples/jin-ping-mei/build/app/assets/scene/gate_collector.webp +0 -0
  213. package/resources/skills/novel-game-creation/upstream/examples/jin-ping-mei/build/app/css/new-guofeng.css +1494 -0
  214. package/resources/skills/novel-game-creation/upstream/examples/jin-ping-mei/build/app/css/style.css +2508 -0
  215. package/resources/skills/novel-game-creation/upstream/examples/jin-ping-mei/build/app/index.html +18 -0
  216. package/resources/skills/novel-game-creation/upstream/examples/jin-ping-mei/build/app/js/assets.js +147 -0
  217. package/resources/skills/novel-game-creation/upstream/examples/jin-ping-mei/build/app/js/audio.js +332 -0
  218. package/resources/skills/novel-game-creation/upstream/examples/jin-ping-mei/build/app/js/data.js +7470 -0
  219. package/resources/skills/novel-game-creation/upstream/examples/jin-ping-mei/build/app/js/engine.js +13066 -0
  220. package/resources/skills/novel-game-creation/upstream/examples/jin-ping-mei/build/app/js/main.js +3051 -0
  221. package/resources/skills/novel-game-creation/upstream/examples/jin-ping-mei/build/app/js/text.js +32 -0
  222. package/resources/skills/novel-game-creation/upstream/examples/jin-ping-mei/build/app/package.json +11 -0
  223. package/resources/skills/novel-game-creation/upstream/examples/jin-ping-mei/build/app/vercel.json +23 -0
  224. package/resources/skills/novel-game-creation/upstream/examples/jin-ping-mei/build/art/generated-art.json +161 -0
  225. package/resources/skills/novel-game-creation/upstream/examples/jin-ping-mei/example.json +12 -0
  226. package/resources/skills/novel-game-creation/upstream/examples/jin-ping-mei/qa/README.md +26 -0
  227. package/resources/skills/novel-game-creation/upstream/examples/jin-ping-mei/qa/playable-model.json +99 -0
  228. package/resources/skills/novel-game-creation/upstream/examples/jin-ping-mei/qa/verification.json +41 -0
  229. package/resources/skills/novel-game-creation/upstream/examples/jin-ping-mei/qa/verify_playable_model.mjs +152 -0
  230. package/resources/skills/novel-game-creation/upstream/manifest.json +498 -0
  231. package/resources/skills/novel-game-creation/upstream/skills/game-art-direction/SKILL.md +47 -0
  232. package/resources/skills/novel-game-creation/upstream/skills/game-art-direction/agents/openai.yaml +4 -0
  233. package/resources/skills/novel-game-creation/upstream/skills/game-art-direction/references/art-direction-method.md +40 -0
  234. package/resources/skills/novel-game-creation/upstream/skills/game-build/SKILL.md +66 -0
  235. package/resources/skills/novel-game-creation/upstream/skills/game-build/agents/openai.yaml +4 -0
  236. package/resources/skills/novel-game-creation/upstream/skills/game-build/references/blender-asset-workflow.md +24 -0
  237. package/resources/skills/novel-game-creation/upstream/skills/game-build/references/build-brief-contract.md +72 -0
  238. package/resources/skills/novel-game-creation/upstream/skills/game-build/references/generative-media-pipeline.md +25 -0
  239. package/resources/skills/novel-game-creation/upstream/skills/game-build/references/playable-model-contract.md +46 -0
  240. package/resources/skills/novel-game-creation/upstream/skills/game-build/references/tts-production-contract.md +23 -0
  241. package/resources/skills/novel-game-creation/upstream/skills/game-concept/SKILL.md +54 -0
  242. package/resources/skills/novel-game-creation/upstream/skills/game-concept/agents/openai.yaml +4 -0
  243. package/resources/skills/novel-game-creation/upstream/skills/game-concept/references/concept-method.md +47 -0
  244. package/resources/skills/novel-game-creation/upstream/skills/game-qa/SKILL.md +39 -0
  245. package/resources/skills/novel-game-creation/upstream/skills/game-qa/agents/openai.yaml +4 -0
  246. package/resources/skills/novel-game-creation/upstream/skills/game-qa/references/qa-contract.md +66 -0
  247. package/resources/skills/novel-game-creation/upstream/skills/game-qa/references/test-design-method.md +49 -0
  248. package/resources/skills/novel-game-creation/upstream/skills/game-world-design/SKILL.md +50 -0
  249. package/resources/skills/novel-game-creation/upstream/skills/game-world-design/agents/openai.yaml +4 -0
  250. package/resources/skills/novel-game-creation/upstream/skills/game-world-design/references/narrative-design-method.md +35 -0
  251. package/resources/skills/novel-game-creation/upstream/skills/game-world-design/references/numeric-design-method.md +22 -0
  252. package/resources/skills/novel-game-creation/upstream/skills/game-world-design/references/world-design-method.md +57 -0
  253. package/resources/skills/novel-game-creation/upstream/skills/novel-game-analyze/SKILL.md +68 -0
  254. package/resources/skills/novel-game-creation/upstream/skills/novel-game-analyze/agents/openai.yaml +4 -0
  255. package/resources/skills/novel-game-creation/upstream/skills/novel-game-analyze/references/gameability-protocol.md +65 -0
  256. package/resources/skills/novel-game-creation/upstream/skills/novel-to-game/SKILL.md +54 -0
  257. package/resources/skills/novel-game-creation/upstream/skills/novel-to-game/agents/openai.yaml +4 -0
  258. package/resources/skills/novel-game-creation/upstream/skills/novel-to-game/references/intake-method.md +50 -0
  259. package/resources/skills/novel-game-creation/upstream/skills/novel-to-game/references/pipeline-contract.md +60 -0
  260. package/resources/skills/story-creation/manifest.json +1477 -0
  261. package/resources/skills/story-creation/upstream/LICENSE.upstream +21 -0
  262. package/resources/skills/story-creation/upstream/manifest.json +1861 -0
  263. package/resources/skills/story-creation/upstream/roles/chapter-extractor.md +254 -0
  264. package/resources/skills/story-creation/upstream/roles/character-designer.md +168 -0
  265. package/resources/skills/story-creation/upstream/roles/consistency-checker.md +192 -0
  266. package/resources/skills/story-creation/upstream/roles/narrative-writer.md +105 -0
  267. package/resources/skills/story-creation/upstream/roles/story-architect.md +139 -0
  268. package/resources/skills/story-creation/upstream/roles/story-explorer.md +262 -0
  269. package/resources/skills/story-creation/upstream/roles/story-researcher.md +303 -0
  270. package/resources/skills/story-creation/upstream/skills/browser-cdp/SKILL.md +175 -0
  271. package/resources/skills/story-creation/upstream/skills/story/SKILL.md +129 -0
  272. package/resources/skills/story-creation/upstream/skills/story/VERSION +1 -0
  273. package/resources/skills/story-creation/upstream/skills/story/references/author-memory-maintenance.md +75 -0
  274. package/resources/skills/story-creation/upstream/skills/story/references/author-memory.md +117 -0
  275. package/resources/skills/story-creation/upstream/skills/story/scripts/author_memory_commit.py +1635 -0
  276. package/resources/skills/story-creation/upstream/skills/story-cover/SKILL.md +336 -0
  277. package/resources/skills/story-creation/upstream/skills/story-cover/references/cover-styles.md +210 -0
  278. package/resources/skills/story-creation/upstream/skills/story-deslop/SKILL.md +274 -0
  279. package/resources/skills/story-creation/upstream/skills/story-deslop/references/agent-calls.md +5 -0
  280. package/resources/skills/story-creation/upstream/skills/story-deslop/references/anti-ai-writing.md +556 -0
  281. package/resources/skills/story-creation/upstream/skills/story-deslop/references/author-memory-maintenance.md +75 -0
  282. package/resources/skills/story-creation/upstream/skills/story-deslop/references/author-memory.md +117 -0
  283. package/resources/skills/story-creation/upstream/skills/story-deslop/references/banned-words.md +151 -0
  284. package/resources/skills/story-creation/upstream/skills/story-deslop/references/deslop-gates.md +171 -0
  285. package/resources/skills/story-creation/upstream/skills/story-deslop/references/style-resolution.md +27 -0
  286. package/resources/skills/story-creation/upstream/skills/story-deslop/scripts/author_memory_commit.py +1635 -0
  287. package/resources/skills/story-creation/upstream/skills/story-deslop/scripts/check-ai-patterns.js +1586 -0
  288. package/resources/skills/story-creation/upstream/skills/story-deslop/scripts/check-degeneration.js +349 -0
  289. package/resources/skills/story-creation/upstream/skills/story-deslop/scripts/normalize-punctuation.js +415 -0
  290. package/resources/skills/story-creation/upstream/skills/story-deslop/scripts/style-whitelist.js +39 -0
  291. package/resources/skills/story-creation/upstream/skills/story-import/SKILL.md +127 -0
  292. package/resources/skills/story-creation/upstream/skills/story-import/references/character-state-reverse.md +82 -0
  293. package/resources/skills/story-creation/upstream/skills/story-import/references/deep-analysis.md +47 -0
  294. package/resources/skills/story-creation/upstream/skills/story-import/references/format-and-structure.md +168 -0
  295. package/resources/skills/story-creation/upstream/skills/story-import/references/import-report.md +64 -0
  296. package/resources/skills/story-creation/upstream/skills/story-import/references/import-special-cases.md +34 -0
  297. package/resources/skills/story-creation/upstream/skills/story-import/references/import-tracking.md +95 -0
  298. package/resources/skills/story-creation/upstream/skills/story-import/references/length-routing.md +134 -0
  299. package/resources/skills/story-creation/upstream/skills/story-import/references/outline-reverse-rules.md +79 -0
  300. package/resources/skills/story-creation/upstream/skills/story-import/references/outline-reverse.md +24 -0
  301. package/resources/skills/story-creation/upstream/skills/story-import/references/state-tracking.md +43 -0
  302. package/resources/skills/story-creation/upstream/skills/story-import/references/structure-mapping-long.md +448 -0
  303. package/resources/skills/story-creation/upstream/skills/story-import/references/structure-mapping-short.md +187 -0
  304. package/resources/skills/story-creation/upstream/skills/story-import/references/tracking-initialization.md +31 -0
  305. package/resources/skills/story-creation/upstream/skills/story-import/references/tracking-transaction.md +146 -0
  306. package/resources/skills/story-creation/upstream/skills/story-import/scripts/build_outline_brief.py +332 -0
  307. package/resources/skills/story-creation/upstream/skills/story-import/scripts/check-outline-contract.js +520 -0
  308. package/resources/skills/story-creation/upstream/skills/story-import/scripts/tracking_commit.py +1691 -0
  309. package/resources/skills/story-creation/upstream/skills/story-import/scripts/wordcount_core.py +405 -0
  310. package/resources/skills/story-creation/upstream/skills/story-long-analyze/SKILL.md +140 -0
  311. package/resources/skills/story-creation/upstream/skills/story-long-analyze/references/author-facing.md +252 -0
  312. package/resources/skills/story-creation/upstream/skills/story-long-analyze/references/deconstruction-notes.md +270 -0
  313. package/resources/skills/story-creation/upstream/skills/story-long-analyze/references/final-checks.md +19 -0
  314. package/resources/skills/story-creation/upstream/skills/story-long-analyze/references/index-rebuild.md +11 -0
  315. package/resources/skills/story-creation/upstream/skills/story-long-analyze/references/inspiration-library.md +105 -0
  316. package/resources/skills/story-creation/upstream/skills/story-long-analyze/references/pipeline-ops.md +154 -0
  317. package/resources/skills/story-creation/upstream/skills/story-long-analyze/references/semantic-acceptance-fixtures.md +84 -0
  318. package/resources/skills/story-creation/upstream/skills/story-long-analyze/references/stage1-golden-chapters.md +128 -0
  319. package/resources/skills/story-creation/upstream/skills/story-long-analyze/references/stage2-extraction.md +229 -0
  320. package/resources/skills/story-creation/upstream/skills/story-long-analyze/references/stage3-plot-rhythm.md +480 -0
  321. package/resources/skills/story-creation/upstream/skills/story-long-analyze/references/stage4-characters-settings.md +195 -0
  322. package/resources/skills/story-creation/upstream/skills/story-long-analyze/references/stage5-report.md +33 -0
  323. package/resources/skills/story-creation/upstream/skills/story-long-analyze/references/style-profile-generator.md +76 -0
  324. package/resources/skills/story-creation/upstream/skills/story-long-analyze/references/style-profile-protocol.md +133 -0
  325. package/resources/skills/story-creation/upstream/skills/story-long-analyze/references/synthesis-inputs.md +39 -0
  326. package/resources/skills/story-creation/upstream/skills/story-long-analyze/scripts/build_chapter_index.py +466 -0
  327. package/resources/skills/story-creation/upstream/skills/story-long-analyze/scripts/inspect_existing_assets.py +702 -0
  328. package/resources/skills/story-creation/upstream/skills/story-long-analyze/scripts/inspiration_index.py +864 -0
  329. package/resources/skills/story-creation/upstream/skills/story-long-analyze/scripts/manage_analysis_run.py +1145 -0
  330. package/resources/skills/story-creation/upstream/skills/story-long-analyze/scripts/render_relation_chart.py +425 -0
  331. package/resources/skills/story-creation/upstream/skills/story-long-scan/SKILL.md +193 -0
  332. package/resources/skills/story-creation/upstream/skills/story-long-scan/references/genre-trends.md +197 -0
  333. package/resources/skills/story-creation/upstream/skills/story-long-scan/references/platform-ciweimao.md +19 -0
  334. package/resources/skills/story-creation/upstream/skills/story-long-scan/references/platform-fanqie.md +45 -0
  335. package/resources/skills/story-creation/upstream/skills/story-long-scan/references/platform-jjwxc.md +28 -0
  336. package/resources/skills/story-creation/upstream/skills/story-long-scan/references/platform-qidian.md +35 -0
  337. package/resources/skills/story-creation/upstream/skills/story-long-scan/references/platform-qimao.md +27 -0
  338. package/resources/skills/story-creation/upstream/skills/story-long-scan/references/publishing-guide.md +114 -0
  339. package/resources/skills/story-creation/upstream/skills/story-long-scan/references/reader-profiling.md +105 -0
  340. package/resources/skills/story-creation/upstream/skills/story-long-scan/references/topic-decision.md +82 -0
  341. package/resources/skills/story-creation/upstream/skills/story-long-scan/scripts/aggregate-rank.js +682 -0
  342. package/resources/skills/story-creation/upstream/skills/story-long-scan/scripts/cdp-utils.js +242 -0
  343. package/resources/skills/story-creation/upstream/skills/story-long-scan/scripts/ciweimao-rank-scraper.js +240 -0
  344. package/resources/skills/story-creation/upstream/skills/story-long-scan/scripts/fanqie-rank-scraper.js +658 -0
  345. package/resources/skills/story-creation/upstream/skills/story-long-scan/scripts/jjwxc-rank-scraper.js +400 -0
  346. package/resources/skills/story-creation/upstream/skills/story-long-scan/scripts/qidian-rank-scraper.js +592 -0
  347. package/resources/skills/story-creation/upstream/skills/story-long-scan/scripts/qimao-rank-scraper.js +435 -0
  348. package/resources/skills/story-creation/upstream/skills/story-long-write/SKILL.md +136 -0
  349. package/resources/skills/story-creation/upstream/skills/story-long-write/references/agent-calls.md +47 -0
  350. package/resources/skills/story-creation/upstream/skills/story-long-write/references/anti-ai-writing.md +556 -0
  351. package/resources/skills/story-creation/upstream/skills/story-long-write/references/artifact-protocols.md +183 -0
  352. package/resources/skills/story-creation/upstream/skills/story-long-write/references/author-memory-maintenance.md +75 -0
  353. package/resources/skills/story-creation/upstream/skills/story-long-write/references/author-memory.md +117 -0
  354. package/resources/skills/story-creation/upstream/skills/story-long-write/references/banned-words.md +151 -0
  355. package/resources/skills/story-creation/upstream/skills/story-long-write/references/benchmark-recall.md +16 -0
  356. package/resources/skills/story-creation/upstream/skills/story-long-write/references/character-basics.md +445 -0
  357. package/resources/skills/story-creation/upstream/skills/story-long-write/references/character-design-methods.md +428 -0
  358. package/resources/skills/story-creation/upstream/skills/story-long-write/references/character-relations.md +433 -0
  359. package/resources/skills/story-creation/upstream/skills/story-long-write/references/commercial-core-methods.md +502 -0
  360. package/resources/skills/story-creation/upstream/skills/story-long-write/references/cross-book-recall.md +88 -0
  361. package/resources/skills/story-creation/upstream/skills/story-long-write/references/deslop-gates.md +171 -0
  362. package/resources/skills/story-creation/upstream/skills/story-long-write/references/dialogue-mastery.md +288 -0
  363. package/resources/skills/story-creation/upstream/skills/story-long-write/references/emotion-on-page.md +116 -0
  364. package/resources/skills/story-creation/upstream/skills/story-long-write/references/emotional-arc-design.md +313 -0
  365. package/resources/skills/story-creation/upstream/skills/story-long-write/references/emotional-methods.md +209 -0
  366. package/resources/skills/story-creation/upstream/skills/story-long-write/references/female-audience-writing.md +188 -0
  367. 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
  368. 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
  369. 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
  370. 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
  371. 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
  372. 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
  373. 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
  374. 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
  375. 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
  376. 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
  377. package/resources/skills/story-creation/upstream/skills/story-long-write/references/genre-prose-cards//345/271/264/344/273/243.md +53 -0
  378. package/resources/skills/story-creation/upstream/skills/story-long-write/references/genre-prose-cards//345/277/253/347/251/277.md +51 -0
  379. 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
  380. 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
  381. 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
  382. 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
  383. 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
  384. 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
  385. 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
  386. 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
  387. 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
  388. 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
  389. 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
  390. 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
  391. 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
  392. 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
  393. 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
  394. 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
  395. 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
  396. 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
  397. 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
  398. 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
  399. package/resources/skills/story-creation/upstream/skills/story-long-write/references/genre-prose-cards.md +91 -0
  400. package/resources/skills/story-creation/upstream/skills/story-long-write/references/genre-readers.md +235 -0
  401. package/resources/skills/story-creation/upstream/skills/story-long-write/references/long-chapter-hooks.md +225 -0
  402. package/resources/skills/story-creation/upstream/skills/story-long-write/references/long-chapter-quality.md +177 -0
  403. package/resources/skills/story-creation/upstream/skills/story-long-write/references/long-format.md +36 -0
  404. package/resources/skills/story-creation/upstream/skills/story-long-write/references/long-genre-catalog.md +394 -0
  405. package/resources/skills/story-creation/upstream/skills/story-long-write/references/long-genre-mechanics.md +415 -0
  406. package/resources/skills/story-creation/upstream/skills/story-long-write/references/long-reversal.md +335 -0
  407. package/resources/skills/story-creation/upstream/skills/story-long-write/references/long-suspense.md +352 -0
  408. package/resources/skills/story-creation/upstream/skills/story-long-write/references/opening-design.md +349 -0
  409. package/resources/skills/story-creation/upstream/skills/story-long-write/references/outline-conflict.md +457 -0
  410. package/resources/skills/story-creation/upstream/skills/story-long-write/references/outline-methods.md +287 -0
  411. package/resources/skills/story-creation/upstream/skills/story-long-write/references/outline-rhythm.md +389 -0
  412. package/resources/skills/story-creation/upstream/skills/story-long-write/references/outline-structure-theory.md +273 -0
  413. package/resources/skills/story-creation/upstream/skills/story-long-write/references/plot-core-methods.md +522 -0
  414. package/resources/skills/story-creation/upstream/skills/story-long-write/references/plot-emotion-system.md +354 -0
  415. package/resources/skills/story-creation/upstream/skills/story-long-write/references/plot-frameworks.md +711 -0
  416. package/resources/skills/story-creation/upstream/skills/story-long-write/references/plot-special-topics.md +622 -0
  417. package/resources/skills/story-creation/upstream/skills/story-long-write/references/project-files.md +114 -0
  418. package/resources/skills/story-creation/upstream/skills/story-long-write/references/reader-contract-and-progression.md +117 -0
  419. package/resources/skills/story-creation/upstream/skills/story-long-write/references/reference-index.md +86 -0
  420. package/resources/skills/story-creation/upstream/skills/story-long-write/references/stop-and-fix.md +9 -0
  421. package/resources/skills/story-creation/upstream/skills/story-long-write/references/style-combat-face.md +352 -0
  422. package/resources/skills/story-creation/upstream/skills/story-long-write/references/style-craft.md +327 -0
  423. package/resources/skills/story-creation/upstream/skills/story-long-write/references/style-genre-modules.md +510 -0
  424. package/resources/skills/story-creation/upstream/skills/story-long-write/references/style-resolution.md +27 -0
  425. package/resources/skills/story-creation/upstream/skills/story-long-write/references/tracking-initialization.md +31 -0
  426. package/resources/skills/story-creation/upstream/skills/story-long-write/references/tracking-transaction.md +146 -0
  427. package/resources/skills/story-creation/upstream/skills/story-long-write/references/workflow-chapter.md +104 -0
  428. package/resources/skills/story-creation/upstream/skills/story-long-write/references/workflow-daily.md +75 -0
  429. package/resources/skills/story-creation/upstream/skills/story-long-write/references/workflow-outline.md +157 -0
  430. package/resources/skills/story-creation/upstream/skills/story-long-write/references/workflow-revision.md +89 -0
  431. package/resources/skills/story-creation/upstream/skills/story-long-write/references/workflow-setup.md +170 -0
  432. package/resources/skills/story-creation/upstream/skills/story-long-write/references/workflow-volume.md +142 -0
  433. package/resources/skills/story-creation/upstream/skills/story-long-write/references/writer-prompt-fallback.md +24 -0
  434. package/resources/skills/story-creation/upstream/skills/story-long-write/references/writing-craft.md +442 -0
  435. package/resources/skills/story-creation/upstream/skills/story-long-write/scripts/author_memory_commit.py +1635 -0
  436. package/resources/skills/story-creation/upstream/skills/story-long-write/scripts/build_architect_brief.py +260 -0
  437. package/resources/skills/story-creation/upstream/skills/story-long-write/scripts/build_writer_prompt.py +611 -0
  438. package/resources/skills/story-creation/upstream/skills/story-long-write/scripts/check-ai-patterns.js +1586 -0
  439. package/resources/skills/story-creation/upstream/skills/story-long-write/scripts/check-degeneration.js +349 -0
  440. package/resources/skills/story-creation/upstream/skills/story-long-write/scripts/check-outline-contract.js +520 -0
  441. package/resources/skills/story-creation/upstream/skills/story-long-write/scripts/check-outline-copy.js +313 -0
  442. package/resources/skills/story-creation/upstream/skills/story-long-write/scripts/normalize-punctuation.js +415 -0
  443. package/resources/skills/story-creation/upstream/skills/story-long-write/scripts/outline_view.py +286 -0
  444. package/resources/skills/story-creation/upstream/skills/story-long-write/scripts/storyctl.py +561 -0
  445. package/resources/skills/story-creation/upstream/skills/story-long-write/scripts/style-whitelist.js +39 -0
  446. package/resources/skills/story-creation/upstream/skills/story-long-write/scripts/tracking_commit.py +1691 -0
  447. package/resources/skills/story-creation/upstream/skills/story-long-write/scripts/wordcount_core.py +405 -0
  448. package/resources/skills/story-creation/upstream/skills/story-review/SKILL.md +231 -0
  449. package/resources/skills/story-creation/upstream/skills/story-review/references/agent-prompts.md +184 -0
  450. package/resources/skills/story-creation/upstream/skills/story-review/references/anti-ai-writing.md +556 -0
  451. package/resources/skills/story-creation/upstream/skills/story-review/references/author-memory-maintenance.md +75 -0
  452. package/resources/skills/story-creation/upstream/skills/story-review/references/author-memory.md +117 -0
  453. package/resources/skills/story-creation/upstream/skills/story-review/references/banned-words.md +151 -0
  454. package/resources/skills/story-creation/upstream/skills/story-review/references/batch-review.md +19 -0
  455. package/resources/skills/story-creation/upstream/skills/story-review/references/character-relations.md +433 -0
  456. package/resources/skills/story-creation/upstream/skills/story-review/references/dialogue-mastery.md +288 -0
  457. package/resources/skills/story-creation/upstream/skills/story-review/references/plot-core-methods.md +522 -0
  458. package/resources/skills/story-creation/upstream/skills/story-review/references/quality-rubric.md +55 -0
  459. package/resources/skills/story-creation/upstream/skills/story-review/references/review-quality.md +246 -0
  460. package/resources/skills/story-creation/upstream/skills/story-review/references/review-tracking.md +10 -0
  461. package/resources/skills/story-creation/upstream/skills/story-review/references/rubrics/fanqie.md +18 -0
  462. package/resources/skills/story-creation/upstream/skills/story-review/references/rubrics/qidian.md +19 -0
  463. package/resources/skills/story-creation/upstream/skills/story-review/references/rubrics/zhihu.md +20 -0
  464. package/resources/skills/story-creation/upstream/skills/story-review/references/solo.md +52 -0
  465. package/resources/skills/story-creation/upstream/skills/story-review/references/style-resolution.md +27 -0
  466. package/resources/skills/story-creation/upstream/skills/story-review/references/tracking-initialization.md +31 -0
  467. package/resources/skills/story-creation/upstream/skills/story-review/references/tracking-transaction.md +146 -0
  468. package/resources/skills/story-creation/upstream/skills/story-review/scripts/author_memory_commit.py +1635 -0
  469. package/resources/skills/story-creation/upstream/skills/story-review/scripts/check-ai-patterns.js +1586 -0
  470. package/resources/skills/story-creation/upstream/skills/story-review/scripts/check-degeneration.js +349 -0
  471. package/resources/skills/story-creation/upstream/skills/story-review/scripts/normalize-punctuation.js +415 -0
  472. package/resources/skills/story-creation/upstream/skills/story-review/scripts/style-whitelist.js +39 -0
  473. package/resources/skills/story-creation/upstream/skills/story-review/scripts/tracking_commit.py +1691 -0
  474. package/resources/skills/story-creation/upstream/skills/story-review/scripts/wordcount_core.py +405 -0
  475. package/resources/skills/story-creation/upstream/skills/story-setup/SKILL.md +165 -0
  476. package/resources/skills/story-creation/upstream/skills/story-setup/references/agent-references/agent-quality.md +72 -0
  477. package/resources/skills/story-creation/upstream/skills/story-setup/references/agent-references/agent-reference-profiles.md +55 -0
  478. package/resources/skills/story-creation/upstream/skills/story-setup/references/agent-references/anti-ai-writing.md +556 -0
  479. package/resources/skills/story-creation/upstream/skills/story-setup/references/agent-references/banned-words.md +151 -0
  480. package/resources/skills/story-creation/upstream/skills/story-setup/references/agent-references/benchmark-style-load.md +107 -0
  481. package/resources/skills/story-creation/upstream/skills/story-setup/references/agent-references/character-basics.md +445 -0
  482. package/resources/skills/story-creation/upstream/skills/story-setup/references/agent-references/character-design-methods.md +428 -0
  483. package/resources/skills/story-creation/upstream/skills/story-setup/references/agent-references/character-relations.md +433 -0
  484. package/resources/skills/story-creation/upstream/skills/story-setup/references/agent-references/deslop-gates.md +171 -0
  485. package/resources/skills/story-creation/upstream/skills/story-setup/references/agent-references/dialogue-mastery.md +288 -0
  486. package/resources/skills/story-creation/upstream/skills/story-setup/references/agent-references/emotion-on-page.md +116 -0
  487. package/resources/skills/story-creation/upstream/skills/story-setup/references/agent-references/emotional-arc-design.md +313 -0
  488. package/resources/skills/story-creation/upstream/skills/story-setup/references/agent-references/format-and-structure.md +168 -0
  489. 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
  490. 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
  491. 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
  492. 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
  493. 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
  494. 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
  495. 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
  496. 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
  497. 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
  498. 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
  499. package/resources/skills/story-creation/upstream/skills/story-setup/references/agent-references/genre-prose-cards//345/271/264/344/273/243.md +53 -0
  500. package/resources/skills/story-creation/upstream/skills/story-setup/references/agent-references/genre-prose-cards//345/277/253/347/251/277.md +51 -0
  501. 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
  502. 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
  503. 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
  504. 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
  505. 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
  506. 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
  507. 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
  508. 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
  509. 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
  510. 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
  511. 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
  512. 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
  513. 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
  514. 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
  515. 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
  516. 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
  517. 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
  518. 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
  519. 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
  520. 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
  521. package/resources/skills/story-creation/upstream/skills/story-setup/references/agent-references/genre-prose-cards.md +91 -0
  522. package/resources/skills/story-creation/upstream/skills/story-setup/references/agent-references/genre-readers.md +235 -0
  523. package/resources/skills/story-creation/upstream/skills/story-setup/references/agent-references/long-chapter-hooks.md +225 -0
  524. package/resources/skills/story-creation/upstream/skills/story-setup/references/agent-references/long-emotional-methods.md +209 -0
  525. package/resources/skills/story-creation/upstream/skills/story-setup/references/agent-references/long-genre-catalog.md +394 -0
  526. package/resources/skills/story-creation/upstream/skills/story-setup/references/agent-references/long-genre-mechanics.md +415 -0
  527. package/resources/skills/story-creation/upstream/skills/story-setup/references/agent-references/long-quality.md +42 -0
  528. package/resources/skills/story-creation/upstream/skills/story-setup/references/agent-references/long-reversal.md +335 -0
  529. package/resources/skills/story-creation/upstream/skills/story-setup/references/agent-references/long-suspense.md +352 -0
  530. package/resources/skills/story-creation/upstream/skills/story-setup/references/agent-references/opening-design.md +349 -0
  531. package/resources/skills/story-creation/upstream/skills/story-setup/references/agent-references/outline-conflict.md +457 -0
  532. package/resources/skills/story-creation/upstream/skills/story-setup/references/agent-references/outline-methods.md +287 -0
  533. package/resources/skills/story-creation/upstream/skills/story-setup/references/agent-references/outline-rhythm.md +389 -0
  534. package/resources/skills/story-creation/upstream/skills/story-setup/references/agent-references/plot-core-methods.md +522 -0
  535. package/resources/skills/story-creation/upstream/skills/story-setup/references/agent-references/short-chapter-hooks.md +225 -0
  536. package/resources/skills/story-creation/upstream/skills/story-setup/references/agent-references/short-emotional-methods.md +179 -0
  537. package/resources/skills/story-creation/upstream/skills/story-setup/references/agent-references/short-genre-formulas.md +417 -0
  538. package/resources/skills/story-creation/upstream/skills/story-setup/references/agent-references/short-paragraph-hooks.md +146 -0
  539. package/resources/skills/story-creation/upstream/skills/story-setup/references/agent-references/short-quality.md +39 -0
  540. package/resources/skills/story-creation/upstream/skills/story-setup/references/agent-references/short-reversal.md +355 -0
  541. package/resources/skills/story-creation/upstream/skills/story-setup/references/agent-references/short-suspense.md +352 -0
  542. package/resources/skills/story-creation/upstream/skills/story-setup/references/agent-references/style-combat-face.md +352 -0
  543. package/resources/skills/story-creation/upstream/skills/story-setup/references/agent-references/style-genre-modules.md +510 -0
  544. package/resources/skills/story-creation/upstream/skills/story-setup/references/agent-references/style-resolution.md +27 -0
  545. package/resources/skills/story-creation/upstream/skills/story-setup/references/agent-references/writing-craft.md +442 -0
  546. package/resources/skills/story-creation/upstream/skills/story-setup/references/diagnostics.md +38 -0
  547. package/resources/skills/story-creation/upstream/skills/story-short-analyze/SKILL.md +224 -0
  548. package/resources/skills/story-creation/upstream/skills/story-short-analyze/references/analysis-character-basics.md +453 -0
  549. package/resources/skills/story-creation/upstream/skills/story-short-analyze/references/analysis-character-design.md +438 -0
  550. package/resources/skills/story-creation/upstream/skills/story-short-analyze/references/analysis-character-relations.md +395 -0
  551. package/resources/skills/story-creation/upstream/skills/story-short-analyze/references/analysis-method.md +42 -0
  552. package/resources/skills/story-creation/upstream/skills/story-short-analyze/references/analysis-paragraph-hooks.md +146 -0
  553. package/resources/skills/story-creation/upstream/skills/story-short-analyze/references/analysis-reader-profile.md +245 -0
  554. package/resources/skills/story-creation/upstream/skills/story-short-analyze/references/analysis-report-style.md +45 -0
  555. package/resources/skills/story-creation/upstream/skills/story-short-analyze/references/analysis-short-genres.md +65 -0
  556. package/resources/skills/story-creation/upstream/skills/story-short-analyze/references/analysis-short-hooks.md +77 -0
  557. package/resources/skills/story-creation/upstream/skills/story-short-analyze/references/analysis-short-mechanics.md +82 -0
  558. package/resources/skills/story-creation/upstream/skills/story-short-analyze/references/analysis-short-patterns.md +50 -0
  559. package/resources/skills/story-creation/upstream/skills/story-short-analyze/references/analysis-short-suspense.md +98 -0
  560. package/resources/skills/story-creation/upstream/skills/story-short-analyze/references/analysis-writing-techniques.md +477 -0
  561. package/resources/skills/story-creation/upstream/skills/story-short-analyze/references/deconstruction-examples.md +79 -0
  562. package/resources/skills/story-creation/upstream/skills/story-short-analyze/references/optional-modules.md +97 -0
  563. package/resources/skills/story-creation/upstream/skills/story-short-analyze/references/output-contract.md +127 -0
  564. package/resources/skills/story-creation/upstream/skills/story-short-analyze/references/quality-checklist.md +80 -0
  565. package/resources/skills/story-creation/upstream/skills/story-short-analyze/references/real-market-data.md +90 -0
  566. package/resources/skills/story-creation/upstream/skills/story-short-analyze/references/source-story-quality.md +221 -0
  567. package/resources/skills/story-creation/upstream/skills/story-short-analyze/references/stage2-3-structure-emotion.md +308 -0
  568. package/resources/skills/story-creation/upstream/skills/story-short-analyze/references/stage4-6-reversal-summary.md +611 -0
  569. package/resources/skills/story-creation/upstream/skills/story-short-analyze/references/zhihu-style.md +54 -0
  570. package/resources/skills/story-creation/upstream/skills/story-short-scan/SKILL.md +182 -0
  571. package/resources/skills/story-creation/upstream/skills/story-short-scan/references/manual-rank-input.md +36 -0
  572. package/resources/skills/story-creation/upstream/skills/story-short-scan/references/platform-dianzhong.md +24 -0
  573. package/resources/skills/story-creation/upstream/skills/story-short-scan/references/platform-heiyan.md +21 -0
  574. package/resources/skills/story-creation/upstream/skills/story-short-scan/references/real-market-data.md +90 -0
  575. package/resources/skills/story-creation/upstream/skills/story-short-scan/references/topic-match.md +38 -0
  576. package/resources/skills/story-creation/upstream/skills/story-short-scan/scripts/aggregate-rank.js +682 -0
  577. package/resources/skills/story-creation/upstream/skills/story-short-scan/scripts/cdp-utils.js +242 -0
  578. package/resources/skills/story-creation/upstream/skills/story-short-scan/scripts/dz-browse-scraper.js +232 -0
  579. package/resources/skills/story-creation/upstream/skills/story-short-scan/scripts/heiyan-booklist-scraper.js +345 -0
  580. package/resources/skills/story-creation/upstream/skills/story-short-write/SKILL.md +136 -0
  581. package/resources/skills/story-creation/upstream/skills/story-short-write/references/agent-calls.md +13 -0
  582. package/resources/skills/story-creation/upstream/skills/story-short-write/references/author-memory-maintenance.md +75 -0
  583. package/resources/skills/story-creation/upstream/skills/story-short-write/references/author-memory.md +117 -0
  584. package/resources/skills/story-creation/upstream/skills/story-short-write/references/banned-words.md +151 -0
  585. package/resources/skills/story-creation/upstream/skills/story-short-write/references/benchmark-recall.md +40 -0
  586. package/resources/skills/story-creation/upstream/skills/story-short-write/references/cross-book-recall.md +62 -0
  587. package/resources/skills/story-creation/upstream/skills/story-short-write/references/dialogue-mastery.md +288 -0
  588. package/resources/skills/story-creation/upstream/skills/story-short-write/references/emotional-methods.md +179 -0
  589. 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
  590. 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
  591. 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
  592. 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
  593. 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
  594. package/resources/skills/story-creation/upstream/skills/story-short-write/references/genre-styles//346/202/254/347/226/221.md +166 -0
  595. 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
  596. 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
  597. package/resources/skills/story-creation/upstream/skills/story-short-write/references/genre-styles//347/224/234/345/256/240.md +153 -0
  598. 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
  599. package/resources/skills/story-creation/upstream/skills/story-short-write/references/genre-writing-formulas.md +417 -0
  600. package/resources/skills/story-creation/upstream/skills/story-short-write/references/genre-writing-techniques.md +490 -0
  601. package/resources/skills/story-creation/upstream/skills/story-short-write/references/hooks-chapter.md +225 -0
  602. package/resources/skills/story-creation/upstream/skills/story-short-write/references/hooks-paragraph.md +146 -0
  603. package/resources/skills/story-creation/upstream/skills/story-short-write/references/output-contract.md +127 -0
  604. package/resources/skills/story-creation/upstream/skills/story-short-write/references/reference-index.md +23 -0
  605. package/resources/skills/story-creation/upstream/skills/story-short-write/references/scene-craft.md +40 -0
  606. package/resources/skills/story-creation/upstream/skills/story-short-write/references/short-craft.md +147 -0
  607. package/resources/skills/story-creation/upstream/skills/story-short-write/references/short-deslop.md +133 -0
  608. package/resources/skills/story-creation/upstream/skills/story-short-write/references/short-format.md +199 -0
  609. package/resources/skills/story-creation/upstream/skills/story-short-write/references/short-prose-quality.md +224 -0
  610. package/resources/skills/story-creation/upstream/skills/story-short-write/references/short-reversal.md +355 -0
  611. package/resources/skills/story-creation/upstream/skills/story-short-write/references/short-suspense.md +352 -0
  612. package/resources/skills/story-creation/upstream/skills/story-short-write/references/style-resolution.md +27 -0
  613. package/resources/skills/story-creation/upstream/skills/story-short-write/references/submission-craft.md +35 -0
  614. package/resources/skills/story-creation/upstream/skills/story-short-write/references/villain-and-reveal.md +153 -0
  615. package/resources/skills/story-creation/upstream/skills/story-short-write/references/workflow-design.md +85 -0
  616. package/resources/skills/story-creation/upstream/skills/story-short-write/references/workflow-draft.md +116 -0
  617. package/resources/skills/story-creation/upstream/skills/story-short-write/references/workflow-revision.md +99 -0
  618. package/resources/skills/story-creation/upstream/skills/story-short-write/references/writing-workflow.md +50 -0
  619. package/resources/skills/story-creation/upstream/skills/story-short-write/scripts/author_memory_commit.py +1635 -0
  620. package/resources/skills/story-creation/upstream/skills/story-short-write/scripts/check-ai-patterns.js +1586 -0
  621. package/resources/skills/story-creation/upstream/skills/story-short-write/scripts/check-degeneration.js +349 -0
  622. package/resources/skills/story-creation/upstream/skills/story-short-write/scripts/check-delivery-contract.js +241 -0
  623. package/resources/skills/story-creation/upstream/skills/story-short-write/scripts/check-outline-copy.js +313 -0
  624. package/resources/skills/story-creation/upstream/skills/story-short-write/scripts/check-phase2-contract.js +363 -0
  625. package/resources/skills/story-creation/upstream/skills/story-short-write/scripts/normalize-punctuation.js +415 -0
  626. package/resources/skills/story-creation/upstream/skills/story-short-write/scripts/style-whitelist.js +39 -0
  627. package/resources/skills/video-recap-production/manifest.json +673 -0
  628. package/resources/skills/video-recap-production/upstream/CHANGELOG.md +371 -0
  629. package/resources/skills/video-recap-production/upstream/LICENSE +21 -0
  630. package/resources/skills/video-recap-production/upstream/README.en.md +468 -0
  631. package/resources/skills/video-recap-production/upstream/README.md +459 -0
  632. package/resources/skills/video-recap-production/upstream/manifest.json +839 -0
  633. package/resources/skills/video-recap-production/upstream/skills/video-assemble/SKILL.md +112 -0
  634. package/resources/skills/video-recap-production/upstream/skills/video-assemble/references/audio-modes.md +63 -0
  635. package/resources/skills/video-recap-production/upstream/skills/video-assemble/references/explicit-audio-mix.md +75 -0
  636. package/resources/skills/video-recap-production/upstream/skills/video-assemble/references/foreground-compose.md +118 -0
  637. package/resources/skills/video-recap-production/upstream/skills/video-assemble/references/jianying/LICENSE.duo-video +21 -0
  638. package/resources/skills/video-recap-production/upstream/skills/video-assemble/references/jianying/SOURCE.md +15 -0
  639. package/resources/skills/video-recap-production/upstream/skills/video-assemble/references/jianying/empty_draft_meta_info.json +69 -0
  640. package/resources/skills/video-recap-production/upstream/skills/video-assemble/references/jianying/empty_jy_combination_segment.json +84 -0
  641. package/resources/skills/video-recap-production/upstream/skills/video-assemble/references/jianying/empty_jy_combination_video_material.json +98 -0
  642. package/resources/skills/video-recap-production/upstream/skills/video-assemble/references/jianying/empty_jy_draft.json +204 -0
  643. package/resources/skills/video-recap-production/upstream/skills/video-assemble/references/jianying/empty_jy_material_video.json +83 -0
  644. package/resources/skills/video-recap-production/upstream/skills/video-assemble/references/jianying/empty_jy_meta_material_value.json +23 -0
  645. package/resources/skills/video-recap-production/upstream/skills/video-assemble/references/jianying/empty_jy_project_info.json +133 -0
  646. package/resources/skills/video-recap-production/upstream/skills/video-assemble/references/jianying/empty_jy_segment.json +70 -0
  647. package/resources/skills/video-recap-production/upstream/skills/video-assemble/references/jianying/empty_jy_text_styles.json +30 -0
  648. package/resources/skills/video-recap-production/upstream/skills/video-assemble/references/jianying/empty_yj_material_audio.json +41 -0
  649. package/resources/skills/video-recap-production/upstream/skills/video-assemble/references/jianying/empty_yj_material_text.json +109 -0
  650. package/resources/skills/video-recap-production/upstream/skills/video-assemble/references/narration-adoption.md +103 -0
  651. package/resources/skills/video-recap-production/upstream/skills/video-assemble/references/packaging.md +45 -0
  652. package/resources/skills/video-recap-production/upstream/skills/video-assemble/references/pair-media.md +74 -0
  653. package/resources/skills/video-recap-production/upstream/skills/video-assemble/references/source-score.md +147 -0
  654. package/resources/skills/video-recap-production/upstream/skills/video-assemble/references/subtitle-track.md +202 -0
  655. package/resources/skills/video-recap-production/upstream/skills/video-assemble/scripts/adoption/__init__.py +1 -0
  656. package/resources/skills/video-recap-production/upstream/skills/video-assemble/scripts/adoption/audio_mix_binding.py +279 -0
  657. package/resources/skills/video-recap-production/upstream/skills/video-assemble/scripts/adoption/frozen_audio.py +187 -0
  658. package/resources/skills/video-recap-production/upstream/skills/video-assemble/scripts/adoption/narration_binding.py +323 -0
  659. package/resources/skills/video-recap-production/upstream/skills/video-assemble/scripts/adoption/strict_inputs.py +109 -0
  660. package/resources/skills/video-recap-production/upstream/skills/video-assemble/scripts/adoption/strict_publish.py +130 -0
  661. package/resources/skills/video-recap-production/upstream/skills/video-assemble/scripts/artifacts.py +47 -0
  662. package/resources/skills/video-recap-production/upstream/skills/video-assemble/scripts/assemble.py +591 -0
  663. package/resources/skills/video-recap-production/upstream/skills/video-assemble/scripts/assemble_constants.py +51 -0
  664. package/resources/skills/video-recap-production/upstream/skills/video-assemble/scripts/assembly_contract.py +318 -0
  665. package/resources/skills/video-recap-production/upstream/skills/video-assemble/scripts/assembly_settings.py +138 -0
  666. package/resources/skills/video-recap-production/upstream/skills/video-assemble/scripts/audio_automation.py +195 -0
  667. package/resources/skills/video-recap-production/upstream/skills/video-assemble/scripts/audio_mix.py +465 -0
  668. package/resources/skills/video-recap-production/upstream/skills/video-assemble/scripts/compose_foreground.py +293 -0
  669. package/resources/skills/video-recap-production/upstream/skills/video-assemble/scripts/export_jianying.py +254 -0
  670. package/resources/skills/video-recap-production/upstream/skills/video-assemble/scripts/jianying/__init__.py +1 -0
  671. package/resources/skills/video-recap-production/upstream/skills/video-assemble/scripts/jianying/builders.py +718 -0
  672. package/resources/skills/video-recap-production/upstream/skills/video-assemble/scripts/jianying/model.py +105 -0
  673. package/resources/skills/video-recap-production/upstream/skills/video-assemble/scripts/jianying/optional.py +23 -0
  674. package/resources/skills/video-recap-production/upstream/skills/video-assemble/scripts/jianying/schema.py +53 -0
  675. package/resources/skills/video-recap-production/upstream/skills/video-assemble/scripts/jianying/templates.py +37 -0
  676. package/resources/skills/video-recap-production/upstream/skills/video-assemble/scripts/jianying/timeline_contract.py +223 -0
  677. package/resources/skills/video-recap-production/upstream/skills/video-assemble/scripts/jianying/tracks.py +72 -0
  678. package/resources/skills/video-recap-production/upstream/skills/video-assemble/scripts/jianying/writer.py +383 -0
  679. package/resources/skills/video-recap-production/upstream/skills/video-assemble/scripts/lib.py +218 -0
  680. package/resources/skills/video-recap-production/upstream/skills/video-assemble/scripts/media.py +190 -0
  681. package/resources/skills/video-recap-production/upstream/skills/video-assemble/scripts/narration_audio.py +413 -0
  682. package/resources/skills/video-recap-production/upstream/skills/video-assemble/scripts/packaging.py +122 -0
  683. package/resources/skills/video-recap-production/upstream/skills/video-assemble/scripts/pair_media.py +216 -0
  684. package/resources/skills/video-recap-production/upstream/skills/video-assemble/scripts/render_preflight.py +33 -0
  685. package/resources/skills/video-recap-production/upstream/skills/video-assemble/scripts/source_score.py +469 -0
  686. package/resources/skills/video-recap-production/upstream/skills/video-assemble/scripts/source_subtitles.py +423 -0
  687. package/resources/skills/video-recap-production/upstream/skills/video-assemble/scripts/subtitles/__init__.py +1 -0
  688. package/resources/skills/video-recap-production/upstream/skills/video-assemble/scripts/subtitles/core.py +330 -0
  689. package/resources/skills/video-recap-production/upstream/skills/video-assemble/scripts/subtitles/render.py +82 -0
  690. package/resources/skills/video-recap-production/upstream/skills/video-assemble/scripts/subtitles/track.py +324 -0
  691. package/resources/skills/video-recap-production/upstream/skills/video-assemble/scripts/subtitles/track_binding.py +200 -0
  692. package/resources/skills/video-recap-production/upstream/skills/video-assemble/scripts/timeline.py +217 -0
  693. package/resources/skills/video-recap-production/upstream/skills/video-assemble/scripts/timeline_emit.py +167 -0
  694. package/resources/skills/video-recap-production/upstream/skills/video-assemble/scripts/visual_render.py +448 -0
  695. package/resources/skills/video-recap-production/upstream/skills/video-cut/SKILL.md +108 -0
  696. package/resources/skills/video-recap-production/upstream/skills/video-cut/references/shot-review.md +50 -0
  697. package/resources/skills/video-recap-production/upstream/skills/video-cut/scripts/cut.py +41 -0
  698. package/resources/skills/video-recap-production/upstream/skills/video-cut/scripts/cut_cli.py +308 -0
  699. package/resources/skills/video-recap-production/upstream/skills/video-cut/scripts/cut_contract.py +424 -0
  700. package/resources/skills/video-recap-production/upstream/skills/video-cut/scripts/cut_render.py +304 -0
  701. package/resources/skills/video-recap-production/upstream/skills/video-cut/scripts/lib.py +114 -0
  702. package/resources/skills/video-recap-production/upstream/skills/video-cut/scripts/media_geometry.py +238 -0
  703. package/resources/skills/video-recap-production/upstream/skills/video-cut/scripts/narration_mapping.py +71 -0
  704. package/resources/skills/video-recap-production/upstream/skills/video-cut/scripts/narrative_selection.py +244 -0
  705. package/resources/skills/video-recap-production/upstream/skills/video-cut/scripts/sentence_boundaries.py +585 -0
  706. package/resources/skills/video-recap-production/upstream/skills/video-cut/scripts/shot_review.py +357 -0
  707. package/resources/skills/video-recap-production/upstream/skills/video-recap/SKILL.md +260 -0
  708. package/resources/skills/video-recap-production/upstream/skills/video-recap/references/audio-routing.md +126 -0
  709. package/resources/skills/video-recap-production/upstream/skills/video-recap/references/config-playbook.md +65 -0
  710. package/resources/skills/video-recap-production/upstream/skills/video-recap/references/data-schema.md +545 -0
  711. package/resources/skills/video-recap-production/upstream/skills/video-recap/references/resource-library.md +151 -0
  712. package/resources/skills/video-recap-production/upstream/skills/video-recap/references/shift-left-qc-schema.md +23 -0
  713. package/resources/skills/video-recap-production/upstream/skills/video-recap/scripts/doctor.py +556 -0
  714. package/resources/skills/video-recap-production/upstream/skills/video-recap/scripts/final_qc.py +527 -0
  715. package/resources/skills/video-recap-production/upstream/skills/video-recap/scripts/lib.py +220 -0
  716. package/resources/skills/video-recap-production/upstream/skills/video-recap/scripts/library.py +509 -0
  717. package/resources/skills/video-recap-production/upstream/skills/video-recap/scripts/materials.py +406 -0
  718. package/resources/skills/video-recap-production/upstream/skills/video-recap/scripts/mimo_qc.py +33 -0
  719. package/resources/skills/video-recap-production/upstream/skills/video-recap/scripts/project_binding.py +286 -0
  720. package/resources/skills/video-recap-production/upstream/skills/video-recap/scripts/qc/__init__.py +1 -0
  721. package/resources/skills/video-recap-production/upstream/skills/video-recap/scripts/qc/mimo_client.py +13 -0
  722. package/resources/skills/video-recap-production/upstream/skills/video-recap/scripts/qc/mimo_contract.py +9 -0
  723. package/resources/skills/video-recap-production/upstream/skills/video-recap/scripts/qc/mimo_evidence.py +287 -0
  724. package/resources/skills/video-recap-production/upstream/skills/video-recap/scripts/qc/mimo_observations.py +175 -0
  725. package/resources/skills/video-recap-production/upstream/skills/video-recap/scripts/qc/mimo_payload.py +206 -0
  726. package/resources/skills/video-recap-production/upstream/skills/video-recap/scripts/qc/mimo_report.py +318 -0
  727. package/resources/skills/video-recap-production/upstream/skills/video-recap/scripts/qc/mimo_runner.py +130 -0
  728. package/resources/skills/video-recap-production/upstream/skills/video-recap/scripts/qc_contract.py +320 -0
  729. package/resources/skills/video-recap-production/upstream/skills/video-recap/scripts/recap.py +9 -0
  730. package/resources/skills/video-recap-production/upstream/skills/video-recap/scripts/recap_cli.py +209 -0
  731. package/resources/skills/video-recap-production/upstream/skills/video-recap/scripts/recap_inspect.py +452 -0
  732. package/resources/skills/video-recap-production/upstream/skills/video-recap/scripts/recap_review.py +70 -0
  733. package/resources/skills/video-recap-production/upstream/skills/video-recap/scripts/recap_runner.py +696 -0
  734. package/resources/skills/video-recap-production/upstream/skills/video-recap/scripts/recap_runtime.py +260 -0
  735. package/resources/skills/video-recap-production/upstream/skills/video-recap/scripts/recap_source.py +278 -0
  736. package/resources/skills/video-recap-production/upstream/skills/video-recap/scripts/recap_stage_qc.py +160 -0
  737. package/resources/skills/video-recap-production/upstream/skills/video-recap/scripts/recap_timeline.py +621 -0
  738. package/resources/skills/video-recap-production/upstream/skills/video-recap/scripts/resource_lock.py +162 -0
  739. package/resources/skills/video-recap-production/upstream/skills/video-script/SKILL.md +251 -0
  740. package/resources/skills/video-recap-production/upstream/skills/video-script/references/creative-editing-playbook.md +229 -0
  741. package/resources/skills/video-recap-production/upstream/skills/video-script/references/promotional-copy.md +68 -0
  742. package/resources/skills/video-recap-production/upstream/skills/video-script/references/research-guide.md +75 -0
  743. package/resources/skills/video-recap-production/upstream/skills/video-script/scripts/agent_text.py +301 -0
  744. package/resources/skills/video-recap-production/upstream/skills/video-script/scripts/deslop_qc.py +211 -0
  745. package/resources/skills/video-recap-production/upstream/skills/video-script/scripts/evidence_bundle.py +440 -0
  746. package/resources/skills/video-recap-production/upstream/skills/video-script/scripts/lib.py +254 -0
  747. package/resources/skills/video-recap-production/upstream/skills/video-script/scripts/narration_lint.py +707 -0
  748. package/resources/skills/video-recap-production/upstream/skills/video-script/scripts/review.py +40 -0
  749. package/resources/skills/video-recap-production/upstream/skills/video-script/scripts/review_grounding.py +238 -0
  750. package/resources/skills/video-recap-production/upstream/skills/video-script/scripts/review_response.py +669 -0
  751. package/resources/skills/video-recap-production/upstream/skills/video-script/scripts/review_runner.py +186 -0
  752. package/resources/skills/video-recap-production/upstream/skills/video-script/scripts/speech_ownership.py +143 -0
  753. package/resources/skills/video-recap-production/upstream/skills/video-script/scripts/timeline_fusion.py +108 -0
  754. package/resources/skills/video-recap-production/upstream/skills/video-script/scripts/validate.py +175 -0
  755. package/resources/skills/video-recap-production/upstream/skills/video-understanding/SKILL.md +77 -0
  756. package/resources/skills/video-recap-production/upstream/skills/video-understanding/references/data-schema.md +193 -0
  757. package/resources/skills/video-recap-production/upstream/skills/video-understanding/references/prompt-templates.md +37 -0
  758. package/resources/skills/video-recap-production/upstream/skills/video-understanding/references/research-guide.md +74 -0
  759. package/resources/skills/video-recap-production/upstream/skills/video-understanding/scripts/agent_text.py +301 -0
  760. package/resources/skills/video-recap-production/upstream/skills/video-understanding/scripts/asr.py +279 -0
  761. package/resources/skills/video-recap-production/upstream/skills/video-understanding/scripts/asr_timing_evidence.py +270 -0
  762. package/resources/skills/video-recap-production/upstream/skills/video-understanding/scripts/brief.py +9 -0
  763. package/resources/skills/video-recap-production/upstream/skills/video-understanding/scripts/briefing/__init__.py +1 -0
  764. package/resources/skills/video-recap-production/upstream/skills/video-understanding/scripts/briefing/builder.py +402 -0
  765. package/resources/skills/video-recap-production/upstream/skills/video-understanding/scripts/briefing/context.py +317 -0
  766. package/resources/skills/video-recap-production/upstream/skills/video-understanding/scripts/briefing/inputs.py +268 -0
  767. package/resources/skills/video-recap-production/upstream/skills/video-understanding/scripts/briefing/timeline.py +326 -0
  768. package/resources/skills/video-recap-production/upstream/skills/video-understanding/scripts/consolidate.py +596 -0
  769. package/resources/skills/video-recap-production/upstream/skills/video-understanding/scripts/deslop_qc.py +211 -0
  770. package/resources/skills/video-recap-production/upstream/skills/video-understanding/scripts/detect.py +504 -0
  771. package/resources/skills/video-recap-production/upstream/skills/video-understanding/scripts/extract.py +62 -0
  772. package/resources/skills/video-recap-production/upstream/skills/video-understanding/scripts/lib.py +419 -0
  773. package/resources/skills/video-recap-production/upstream/skills/video-understanding/scripts/narration_lint.py +707 -0
  774. package/resources/skills/video-recap-production/upstream/skills/video-understanding/scripts/speech_ownership.py +143 -0
  775. package/resources/skills/video-recap-production/upstream/skills/video-understanding/scripts/storyboard.py +445 -0
  776. package/resources/skills/video-recap-production/upstream/skills/video-understanding/scripts/timeline_fusion.py +108 -0
  777. package/resources/skills/video-recap-production/upstream/skills/video-understanding/scripts/understand.py +9 -0
  778. package/resources/skills/video-recap-production/upstream/skills/video-understanding/scripts/understanding_brief.py +190 -0
  779. package/resources/skills/video-recap-production/upstream/skills/video-understanding/scripts/understanding_cache.py +345 -0
  780. package/resources/skills/video-recap-production/upstream/skills/video-understanding/scripts/understanding_runner.py +387 -0
  781. package/resources/skills/video-recap-production/upstream/skills/video-understanding/scripts/understanding_storyboard.py +167 -0
  782. package/resources/skills/video-recap-production/upstream/skills/video-understanding/scripts/vlm.py +674 -0
  783. package/resources/skills/video-recap-production/upstream/skills/video-voiceover/SKILL.md +91 -0
  784. package/resources/skills/video-recap-production/upstream/skills/video-voiceover/references/index-tts.md +31 -0
  785. package/resources/skills/video-recap-production/upstream/skills/video-voiceover/scripts/approved_text_policy.py +123 -0
  786. package/resources/skills/video-recap-production/upstream/skills/video-voiceover/scripts/dub.py +623 -0
  787. package/resources/skills/video-recap-production/upstream/skills/video-voiceover/scripts/lib.py +352 -0
  788. package/resources/skills/video-recap-production/upstream/skills/video-voiceover/scripts/providers/__init__.py +1 -0
  789. package/resources/skills/video-recap-production/upstream/skills/video-voiceover/scripts/providers/fish_audio.py +91 -0
  790. package/resources/skills/video-recap-production/upstream/skills/video-voiceover/scripts/providers/index_tts.py +184 -0
  791. package/resources/skills/video-recap-production/upstream/skills/video-voiceover/scripts/tts_audio.py +102 -0
  792. package/resources/skills/video-recap-production/upstream/skills/video-voiceover/scripts/voiceover.py +771 -0
  793. package/resources/skills/viora-canvas-production/manifest.json +5 -1
  794. package/resources/skills/viora-canvas-production/references/story-handoff.md +49 -0
@@ -0,0 +1,18 @@
1
+ <!DOCTYPE html>
2
+ <html lang="zh-CN">
3
+ <head>
4
+ <meta charset="UTF-8" />
5
+ <meta name="viewport" content="width=device-width, initial-scale=1.0" />
6
+ <meta name="color-scheme" content="light" />
7
+ <meta name="description" content="《金瓶梅·风月总账》20日男性第一人称成人后宫关系模拟:五条深线、四幕危机与证据化结局" />
8
+ <title>金瓶梅·风月总账</title>
9
+ <link rel="icon" href="data:," />
10
+ <link rel="stylesheet" href="css/style.css" />
11
+ <link rel="stylesheet" href="css/new-guofeng.css" />
12
+ </head>
13
+ <body>
14
+ <div id="app"></div>
15
+ <div id="announcer" class="sr-only" aria-live="polite" aria-atomic="true"></div>
16
+ <script type="module" src="js/main.js"></script>
17
+ </body>
18
+ </html>
@@ -0,0 +1,147 @@
1
+ // 视觉键表:发布模式对所有首屏、人物近景与奖励 CG 采用 fail-closed,不静默回退。
2
+
3
+ export const ASSET_PATHS = Object.freeze({
4
+ // 标题与全套 CG 使用同一批二维新国风叙事母版:角色集中在中右区域,
5
+ // 左侧春庭留白交给真实 HTML 标题,既保留古代世界,也给玩家想象空间。
6
+ cover: 'assets/cg/group/title_new_guofeng.webp',
7
+ compound: 'assets/bg/compound_new_guofeng.webp',
8
+ // 催账到期那两个早晨的门前画面:来人、契纸与受阻门槛承担压力,不靠压黑画面。
9
+ // 不进 CRITICAL_CG_KEYS——报条文字已经把账说清楚,缺图不该拦住一局。
10
+ 'scene/gate_collector': 'assets/scene/gate_collector.webp',
11
+ // 门卡与对话使用同一张二维身份母版,脸、发式、衣色与器物贯穿所有剧情 CG。
12
+ 'heroine/yue': 'assets/heroine/yue/night.webp',
13
+ 'heroine/pan': 'assets/heroine/pan/night.webp',
14
+ 'heroine/pinger': 'assets/heroine/pinger/night.webp',
15
+ 'heroine/meng': 'assets/heroine/meng/night.webp',
16
+ 'heroine/xuee': 'assets/heroine/xuee/night.webp',
17
+ 'household/jiaoer': 'assets/household/li_jiaoer.webp',
18
+ // 日常近景、门卡与人物身份母版统一;夜间专属图只改变关系动作与灯月,不更换画风。
19
+ 'heroine/yue/close': 'assets/heroine/yue/night.webp',
20
+ 'heroine/pan/close': 'assets/heroine/pan/night.webp',
21
+ 'heroine/pinger/close': 'assets/heroine/pinger/night.webp',
22
+ 'heroine/meng/close': 'assets/heroine/meng/night.webp',
23
+ 'heroine/xuee/close': 'assets/heroine/xuee/night.webp',
24
+ 'cg/yue/prelude': 'assets/cg/yue/prelude.webp',
25
+ 'cg/yue/explicit': 'assets/cg/yue/explicit.webp',
26
+ 'cg/pan/prelude': 'assets/cg/pan/prelude.webp',
27
+ 'cg/pan/explicit': 'assets/cg/pan/explicit.webp',
28
+ 'cg/pinger/prelude': 'assets/cg/pinger/prelude.webp',
29
+ 'cg/pinger/explicit': 'assets/cg/pinger/explicit.webp',
30
+ 'cg/meng/prelude': 'assets/cg/meng/prelude.webp',
31
+ 'cg/meng/explicit': 'assets/cg/meng/explicit.webp',
32
+ 'cg/xuee/prelude': 'assets/cg/xuee/prelude.webp',
33
+ 'cg/xuee/explicit': 'assets/cg/xuee/explicit.webp',
34
+ 'cg/group/public_day5': 'assets/cg/group/public_day5.webp',
35
+ 'cg/group/public_day10': 'assets/cg/group/public_day10.webp',
36
+ 'cg/group/public_day15': 'assets/cg/group/public_day15.webp',
37
+ 'cg/group/inner_court_alliance': 'assets/cg/group/inner_court_alliance.webp',
38
+ 'cg/group/inner_court_accord': 'assets/cg/group/inner_court_accord_five.webp',
39
+ 'cg/group/inner_court_afterglow': 'assets/cg/group/inner_court_afterglow_five.webp',
40
+ 'cg/joint/yue_pan': 'assets/cg/joint/yue_pan.webp',
41
+ 'cg/joint/yue_pinger': 'assets/cg/joint/yue_pinger.webp',
42
+ 'cg/joint/pan_pinger': 'assets/cg/joint/pan_pinger.webp',
43
+ 'cg/joint/yue_meng': 'assets/cg/joint/yue_meng.webp',
44
+ 'cg/joint/pan_xuee': 'assets/cg/joint/pan_xuee.webp',
45
+ // 第二十夜的一院终章不是把旧门卡放大:五个人各有一张能读出
46
+ // 她的核心边界与另外四院善后方式的安全终章画面。
47
+ 'cg/finale/yue': 'assets/cg/finale/yue.webp',
48
+ 'cg/finale/pan': 'assets/cg/finale/pan.webp',
49
+ 'cg/finale/pinger': 'assets/cg/finale/pinger.webp',
50
+ 'cg/finale/meng': 'assets/cg/finale/meng.webp',
51
+ 'cg/finale/xuee': 'assets/cg/finale/xuee.webp',
52
+ // 命数三页不用任何人物遗照消费悲剧;空宅、六把钥匙、五张名签、
53
+ // 药碗与未写完的账页承担第 30—100 回的长期回声。
54
+ 'cg/finale/fate_coda': 'assets/cg/finale/fate_coda.webp',
55
+ 'cg/milestone/yue': 'assets/cg/milestone/yue.webp',
56
+ 'cg/milestone/pan': 'assets/cg/milestone/pan.webp',
57
+ 'cg/milestone/pinger': 'assets/cg/milestone/pinger.webp',
58
+ 'cg/milestone/meng': 'assets/cg/milestone/meng.webp',
59
+ 'cg/milestone/xuee': 'assets/cg/milestone/xuee.webp',
60
+ });
61
+
62
+ export const CRITICAL_CG_KEYS = Object.freeze([
63
+ 'cover', 'heroine/yue', 'heroine/pan', 'heroine/pinger', 'heroine/meng', 'heroine/xuee',
64
+ 'household/jiaoer',
65
+ 'heroine/yue/close', 'heroine/pan/close', 'heroine/pinger/close', 'heroine/meng/close', 'heroine/xuee/close',
66
+ 'cg/yue/prelude', 'cg/yue/explicit', 'cg/pan/prelude', 'cg/pan/explicit',
67
+ 'cg/pinger/prelude', 'cg/pinger/explicit', 'cg/meng/prelude', 'cg/meng/explicit',
68
+ 'cg/xuee/prelude', 'cg/xuee/explicit', 'cg/group/public_day5', 'cg/group/public_day10', 'cg/group/public_day15',
69
+ 'cg/group/inner_court_alliance', 'cg/group/inner_court_accord', 'cg/group/inner_court_afterglow',
70
+ 'cg/joint/yue_pan', 'cg/joint/yue_pinger', 'cg/joint/pan_pinger', 'cg/joint/yue_meng', 'cg/joint/pan_xuee',
71
+ 'cg/finale/yue', 'cg/finale/pan', 'cg/finale/pinger', 'cg/finale/meng', 'cg/finale/xuee', 'cg/finale/fate_coda',
72
+ 'cg/milestone/yue', 'cg/milestone/pan', 'cg/milestone/pinger', 'cg/milestone/meng', 'cg/milestone/xuee',
73
+ ]);
74
+
75
+ export const BOOT_ASSET_KEYS = Object.freeze(['cover', 'compound']);
76
+ export const ADULT_ASSET_KEYS = Object.freeze([
77
+ 'cg/yue/prelude', 'cg/yue/explicit', 'cg/pan/prelude', 'cg/pan/explicit',
78
+ 'cg/pinger/prelude', 'cg/pinger/explicit', 'cg/meng/prelude', 'cg/meng/explicit',
79
+ 'cg/xuee/prelude', 'cg/xuee/explicit', 'cg/group/inner_court_afterglow',
80
+ ]);
81
+ export const FINALE_ASSET_KEYS = Object.freeze([
82
+ 'cg/finale/yue', 'cg/finale/pan', 'cg/finale/pinger', 'cg/finale/meng', 'cg/finale/xuee', 'cg/finale/fate_coda',
83
+ ]);
84
+ export const MILESTONE_ASSET_KEYS = Object.freeze([
85
+ 'cg/milestone/yue', 'cg/milestone/pan', 'cg/milestone/pinger', 'cg/milestone/meng', 'cg/milestone/xuee',
86
+ ]);
87
+ // 终章画是安全内容,但不该在玩家刚过年龄门时就把五张结局一起下载。
88
+ // 第四幕再闲时预取,真正进入终章时浏览器也会从相同 URL 直接复用缓存。
89
+ export const SAFE_GAME_ASSET_KEYS = Object.freeze(CRITICAL_CG_KEYS.filter((key) => (
90
+ !ADULT_ASSET_KEYS.includes(key) && !FINALE_ASSET_KEYS.includes(key) && !MILESTONE_ASSET_KEYS.includes(key)
91
+ )));
92
+
93
+ const loaded = new Map();
94
+ const requested = new Set();
95
+ const inflight = new Map();
96
+
97
+ function loadOne(key, path) {
98
+ if (loaded.get(key)?.ok === true) return Promise.resolve();
99
+ if (inflight.has(key)) return inflight.get(key);
100
+ requested.add(key);
101
+ const promise = new Promise((resolve) => {
102
+ const image = new Image();
103
+ image.onload = () => { loaded.set(key, { ok: true, width: image.naturalWidth, height: image.naturalHeight }); inflight.delete(key); resolve(); };
104
+ image.onerror = () => { loaded.set(key, { ok: false, width: 0, height: 0 }); inflight.delete(key); resolve(); };
105
+ image.src = path;
106
+ });
107
+ inflight.set(key, promise);
108
+ return promise;
109
+ }
110
+
111
+ export async function loadAssets(keys = BOOT_ASSET_KEYS) {
112
+ await Promise.all(keys.map((key) => loadOne(key, ASSET_PATHS[key])));
113
+ return assetReport();
114
+ }
115
+
116
+ export function preloadSafeAssets() {
117
+ return loadAssets(SAFE_GAME_ASSET_KEYS);
118
+ }
119
+
120
+ export function preloadFinaleAssets() {
121
+ return loadAssets(FINALE_ASSET_KEYS);
122
+ }
123
+
124
+ export function assetReport() {
125
+ const missingCritical = CRITICAL_CG_KEYS.filter((key) => requested.has(key) && loaded.get(key)?.ok === false);
126
+ const bootReady = BOOT_ASSET_KEYS.every((key) => loaded.get(key)?.ok === true);
127
+ return {
128
+ missingCritical,
129
+ loaded: Object.fromEntries([...loaded.entries()]),
130
+ requested: [...requested],
131
+ adultRequested: ADULT_ASSET_KEYS.filter((key) => requested.has(key)),
132
+ bootReady,
133
+ complete: CRITICAL_CG_KEYS.every((key) => loaded.get(key)?.ok === true),
134
+ ok: bootReady && missingCritical.length === 0,
135
+ };
136
+ }
137
+
138
+ export function urlFor(key) {
139
+ const path = ASSET_PATHS[key] ?? '';
140
+ return globalThis.document ? new URL(path, document.baseURI).href : path;
141
+ }
142
+
143
+ export function assertCriticalAssetSchema() {
144
+ const missingKeys = CRITICAL_CG_KEYS.filter((key) => !ASSET_PATHS[key]);
145
+ if (missingKeys.length) throw new Error(`关键 CG 未登记:${missingKeys.join(', ')}`);
146
+ return true;
147
+ }
@@ -0,0 +1,332 @@
1
+ // 音频:Web Audio 程序化合成,零素材零依赖。
2
+ // 明代市井家宅——克制、室内、偏冷。五声音阶(宫商角徵羽),丝竹音色:
3
+ // 笛/箫(正弦+轻噪气声+揉音)、琵琶/古筝(快起音快衰减拨弦)、云板/木鱼(短促打击)。
4
+ // 功能三色通感:明账=清亮金属音,暗账=几乎听不见的闷木音,风声=不安的擦弦音。
5
+ // 一切方法在 AudioContext 不可用时静默降级,绝不影响游戏运行;删掉本模块玩法不变。
6
+
7
+ const PENTA = [0, 2, 4, 7, 9]; // 宫 商 角 徵 羽
8
+ const BASE = 196; // G3,偏冷
9
+
10
+ function freq(degree, octave = 0) {
11
+ const idx = ((degree % 5) + 5) % 5;
12
+ const extra = Math.floor(degree / 5);
13
+ return BASE * Math.pow(2, octave + extra + PENTA[idx] / 12);
14
+ }
15
+
16
+ // 散板/慢板乐句:[音级(null=休止), 八度, 拍数]。无强拍循环,留白多。
17
+ const SCENES = {
18
+ title: {
19
+ bpm: 50, vol: 0.10, voices: ['di'],
20
+ melody: [[0, 0, 3], [2, 0, 2], [null, 0, 1], [4, 0, 3], [2, 0, 1.5], [null, 0, 2], [1, 0, 2], [0, 0, 4], [null, 0, 3]],
21
+ bass: [],
22
+ },
23
+ act1: {
24
+ bpm: 60, vol: 0.07, voices: ['pluck'],
25
+ melody: [[0, 0, 1], [null, 0, 1], [2, 0, 0.5], [null, 0, 1.5], [4, 0, 1], [null, 0, 2], [2, 0, 0.5], [1, 0, 0.5], [null, 0, 2], [0, 0, 1], [null, 0, 3]],
26
+ bass: [0],
27
+ },
28
+ act2: {
29
+ bpm: 66, vol: 0.08, voices: ['pluck', 'di'],
30
+ melody: [[0, 0, 1], [2, 0, 0.5], [4, 0, 1], [7, 0, 1.5], [4, 0, 0.5], [2, 0, 1], [null, 0, 0.5], [4, 0, 1], [7, 0, 1], [9, 0, 2], [7, 0, 1], [4, 0, 1], [null, 0, 1], [2, 0, 2]],
31
+ melody2: [[0, -1, 2], [null, 0, 1], [4, -1, 2], [null, 0, 1], [0, -1, 3], [null, 0, 2]],
32
+ bass: [0, 3],
33
+ },
34
+ act3: {
35
+ bpm: 46, vol: 0.07, voices: ['di'],
36
+ melody: [[4, -1, 2], [null, 0, 2], [2, -1, 1.5], [null, 0, 3], [0, -1, 3], [null, 0, 4]],
37
+ bass: [],
38
+ },
39
+ act4: {
40
+ bpm: 58, vol: 0.085, voices: ['pluck', 'di'],
41
+ melody: [[0, -1, 1], [4, -1, 1], [7, 0, 1.5], [null, 0, .5], [9, 0, 2], [7, 0, 1], [4, 0, 1], [2, 0, 2], [null, 0, 1], [0, 0, 3]],
42
+ melody2: [[0, -1, 2], [2, -1, 2], [4, -1, 2], [7, -1, 3], [null, 0, 2]],
43
+ bass: [0, 4],
44
+ },
45
+ ending_liyanei: { // 向上收束的完整乐句
46
+ bpm: 54, vol: 0.10, voices: ['di'],
47
+ melody: [[0, 0, 1.5], [2, 0, 1], [4, 0, 1.5], [7, 0, 2], [9, 0, 3], [null, 0, 2], [7, 0, 1.5], [9, 0, 4], [null, 0, 4]],
48
+ bass: [0],
49
+ },
50
+ ending_liuluo: { // 乐句不完整,中途停住
51
+ bpm: 50, vol: 0.09, voices: ['di'],
52
+ melody: [[0, 0, 2], [2, 0, 1.5], [1, 0, 1], [null, 0, 12]],
53
+ bass: [],
54
+ },
55
+ ending_other: {
56
+ bpm: 50, vol: 0.09, voices: ['di'],
57
+ melody: [[4, 0, 2], [2, 0, 1.5], [0, 0, 3], [null, 0, 4], [2, -1, 3], [null, 0, 5]],
58
+ bass: [],
59
+ },
60
+ };
61
+
62
+ const MUTE_KEY = 'jpm_mute';
63
+
64
+ class AudioEngine {
65
+ constructor() {
66
+ this.ctx = null;
67
+ this.master = null;
68
+ this.bgmGain = null;
69
+ this.sfxGain = null;
70
+ this.bgm = null;
71
+ this.muted = localStorage.getItem(MUTE_KEY) === '1';
72
+ this._noiseBuf = null;
73
+ this._clearing = false;
74
+ }
75
+
76
+ unlock() {
77
+ try {
78
+ if (!this.ctx) {
79
+ const AC = window.AudioContext || window.webkitAudioContext;
80
+ if (!AC) return;
81
+ this.ctx = new AC();
82
+ this.master = this.ctx.createGain();
83
+ this.master.gain.value = this.muted ? 0 : 0.5;
84
+ this.master.connect(this.ctx.destination);
85
+ this.bgmGain = this.ctx.createGain();
86
+ this.bgmGain.gain.value = 0.30; // BGM 明显低于音效
87
+ this.bgmGain.connect(this.master);
88
+ this.sfxGain = this.ctx.createGain();
89
+ this.sfxGain.gain.value = 0.55;
90
+ this.sfxGain.connect(this.master);
91
+ }
92
+ if (this.ctx.state === 'suspended') this.ctx.resume();
93
+ } catch { /* 静默降级 */ }
94
+ }
95
+
96
+ get ready() { return !!this.ctx; }
97
+ get currentScene() { return this.bgm?.scene ?? null; }
98
+
99
+ setMuted(m) {
100
+ this.muted = m;
101
+ localStorage.setItem(MUTE_KEY, m ? '1' : '0');
102
+ if (this.master) this.master.gain.setTargetAtTime(m ? 0 : 0.5, this.ctx.currentTime, 0.05);
103
+ }
104
+ toggleMuted() { this.setMuted(!this.muted); return this.muted; }
105
+
106
+ // ---------- BGM ----------
107
+ playBGM(scene) {
108
+ if (!this.ctx || this._clearing) return;
109
+ if (this.bgm?.scene === scene) return;
110
+ this.stopBGM();
111
+ const cfg = SCENES[scene];
112
+ if (!cfg) return;
113
+ const beatLen = 60 / cfg.bpm;
114
+ const total = cfg.melody.reduce((a, n) => a + n[2], 0);
115
+ const st = { scene, cfg, beatLen, next: this.ctx.currentTime + 0.1, loopLen: total * beatLen };
116
+ st.timer = setInterval(() => this._schedule(st), 400);
117
+ this._schedule(st);
118
+ this.bgm = st;
119
+ }
120
+
121
+ stopBGM() {
122
+ if (this.bgm) { clearInterval(this.bgm.timer); this.bgm = null; }
123
+ }
124
+
125
+ _schedule(st) {
126
+ if (!this.ctx) return;
127
+ const horizon = this.ctx.currentTime + 1.2;
128
+ while (st.next < horizon) {
129
+ this._loopOnce(st, st.next);
130
+ st.next += st.loopLen;
131
+ }
132
+ }
133
+
134
+ _loopOnce(st, t0) {
135
+ const { cfg, beatLen } = st;
136
+ let t = t0;
137
+ for (const [deg, oct, beats] of cfg.melody) {
138
+ if (deg !== null) this._voice(cfg.voices[0], freq(deg, oct), t, beats * beatLen, cfg.vol);
139
+ t += beats * beatLen;
140
+ }
141
+ if (cfg.melody2) {
142
+ let t2 = t0;
143
+ for (const [deg, oct, beats] of cfg.melody2) {
144
+ if (deg !== null) this._voice('di', freq(deg, oct), t2, beats * beatLen, cfg.vol * 0.7);
145
+ t2 += beats * beatLen;
146
+ }
147
+ }
148
+ const perBeat = st.loopLen / Math.max(1, cfg.bass.length);
149
+ cfg.bass.forEach((deg, i) => {
150
+ this._voice('pluckLow', freq(deg, -1), t0 + i * perBeat, perBeat, cfg.vol * 0.6);
151
+ });
152
+ }
153
+
154
+ // 丝竹声部:di=笛/箫(气声+揉音), pluck=琵琶/古筝(拨弦), pluckLow=低音拨弦
155
+ _voice(kind, f, t, dur, vol) {
156
+ if (kind === 'di') this._di(f, t, dur, vol);
157
+ else if (kind === 'pluck') this._pluck(f, t, Math.min(dur, 0.9), vol);
158
+ else this._pluck(f, t, Math.min(dur, 1.2), vol * 0.8);
159
+ }
160
+
161
+ _di(f, t, dur, vol) {
162
+ if (!this.ctx) return;
163
+ try {
164
+ const o = this.ctx.createOscillator();
165
+ const g = this.ctx.createGain();
166
+ o.type = 'sine';
167
+ o.frequency.value = f;
168
+ // 揉音
169
+ const lfo = this.ctx.createOscillator();
170
+ const lg = this.ctx.createGain();
171
+ lfo.frequency.value = 4.5;
172
+ lg.gain.value = f * 0.006;
173
+ lfo.connect(lg).connect(o.frequency);
174
+ const atk = Math.min(0.18, dur * 0.3);
175
+ g.gain.setValueAtTime(0, t);
176
+ g.gain.linearRampToValueAtTime(vol, t + atk);
177
+ g.gain.setValueAtTime(vol * 0.85, t + Math.max(atk, dur - 0.25));
178
+ g.gain.linearRampToValueAtTime(0.0001, t + dur);
179
+ o.connect(g).connect(this.bgmGain);
180
+ o.start(t); o.stop(t + dur + 0.05);
181
+ lfo.start(t); lfo.stop(t + dur + 0.05);
182
+ // 轻噪气声
183
+ this._noise(t, Math.min(dur, 0.4), vol * 0.15, this.bgmGain, f * 4, 6);
184
+ } catch { /* ignore */ }
185
+ }
186
+
187
+ _pluck(f, t, dur, vol) {
188
+ if (!this.ctx) return;
189
+ try {
190
+ for (const [mult, v] of [[1, 1], [2, 0.4]]) {
191
+ const o = this.ctx.createOscillator();
192
+ const g = this.ctx.createGain();
193
+ o.type = 'triangle';
194
+ o.frequency.value = f * mult;
195
+ g.gain.setValueAtTime(vol * v, t);
196
+ g.gain.exponentialRampToValueAtTime(0.0001, t + dur);
197
+ o.connect(g).connect(this.bgmGain);
198
+ o.start(t); o.stop(t + dur + 0.05);
199
+ }
200
+ } catch { /* ignore */ }
201
+ }
202
+
203
+ _noise(t, dur, vol, dest, filterFreq = 1200, q = 1) {
204
+ if (!this.ctx) return;
205
+ try {
206
+ if (!this._noiseBuf) {
207
+ const len = this.ctx.sampleRate * 0.5;
208
+ this._noiseBuf = this.ctx.createBuffer(1, len, this.ctx.sampleRate);
209
+ const d = this._noiseBuf.getChannelData(0);
210
+ for (let i = 0; i < len; i++) d[i] = Math.random() * 2 - 1;
211
+ }
212
+ const src = this.ctx.createBufferSource();
213
+ src.buffer = this._noiseBuf;
214
+ const f = this.ctx.createBiquadFilter();
215
+ f.type = 'bandpass';
216
+ f.frequency.value = filterFreq;
217
+ f.Q.value = q;
218
+ const g = this.ctx.createGain();
219
+ g.gain.setValueAtTime(vol, t);
220
+ g.gain.exponentialRampToValueAtTime(0.0001, t + dur);
221
+ src.connect(f).connect(g).connect(dest);
222
+ src.start(t); src.stop(t + dur + 0.02);
223
+ } catch { /* ignore */ }
224
+ }
225
+
226
+ _block(t, f, dur, vol, dest) { // 木鱼/云板基件
227
+ this._tone(f, t, dur, 'sine', vol, dest, 0.002, dur * 0.6);
228
+ this._noise(t, Math.min(0.04, dur), vol * 0.5, dest, f * 3, 4);
229
+ }
230
+
231
+ _tone(f, t, dur, wave, vol, dest, attack = 0.005, release = 0.06) {
232
+ if (!this.ctx) return;
233
+ try {
234
+ const o = this.ctx.createOscillator();
235
+ const g = this.ctx.createGain();
236
+ o.type = wave;
237
+ o.frequency.value = f;
238
+ g.gain.setValueAtTime(0, t);
239
+ g.gain.linearRampToValueAtTime(vol, t + attack);
240
+ g.gain.setValueAtTime(vol * 0.8, t + Math.max(attack, dur - release));
241
+ g.gain.linearRampToValueAtTime(0.0001, t + dur);
242
+ o.connect(g).connect(dest);
243
+ o.start(t); o.stop(t + dur + 0.05);
244
+ } catch { /* ignore */ }
245
+ }
246
+
247
+ // ---------- 第79回:两秒内抽空,静默3-4秒 ----------
248
+ // 全作最重要的听觉时刻;任何音效不得盖过这段静默。
249
+ playClear(onDone) {
250
+ if (!this.ctx) { onDone?.(); return; }
251
+ this._clearing = true;
252
+ this.stopBGM();
253
+ const t = this.ctx.currentTime;
254
+ const g = this.bgmGain.gain;
255
+ g.cancelScheduledValues(t);
256
+ g.setValueAtTime(g.value, t);
257
+ g.linearRampToValueAtTime(0.0001, t + 2.0); // 抽空
258
+ // 只剩一个衰减的低音
259
+ this._tone(freq(0, -2), t + 0.3, 2.2, 'sine', 0.12, this.master, 0.02, 1.8);
260
+ // 静默 3.4 秒后归还声场
261
+ setTimeout(() => {
262
+ if (!this.ctx) return;
263
+ this.bgmGain.gain.setTargetAtTime(0.30, this.ctx.currentTime, 0.5);
264
+ this._clearing = false;
265
+ onDone?.();
266
+ }, 2000 + 3400);
267
+ }
268
+
269
+ // ---------- SFX ----------
270
+ sfx(name, opt = {}) {
271
+ if (!this.ctx || this.muted) return;
272
+ const t = this.ctx.currentTime + 0.01;
273
+ const out = this.sfxGain;
274
+ switch (name) {
275
+ case 'ming': // 金:清亮金属泛音,短促上扬
276
+ this._tone(1568, t, 0.14, 'sine', 0.16, out, 0.001, 0.08);
277
+ this._tone(2093, t + 0.05, 0.16, 'sine', 0.12, out, 0.001, 0.1);
278
+ this._tone(2637, t + 0.09, 0.12, 'sine', 0.06, out, 0.001, 0.08);
279
+ break;
280
+ case 'an': // 墨:低而闷的木质轻响,几乎听不见
281
+ this._block(t, 320, 0.06, 0.045, out);
282
+ break;
283
+ case 'wind': // 朱:压抑的擦弦/气声,不安
284
+ this._noise(t, 0.35, 0.09, out, 480, 3);
285
+ this._tone(233, t, 0.3, 'sawtooth', 0.03, out, 0.12, 0.12);
286
+ break;
287
+ case 'submit': // 云板一记
288
+ this._tone(1180, t, 0.1, 'sine', 0.2, out, 0.001, 0.06);
289
+ this._noise(t, 0.05, 0.12, out, 2600, 4);
290
+ break;
291
+ case 'plank': // 木牌翻动
292
+ this._block(t, 640, 0.05, 0.14, out);
293
+ this._block(t + 0.06, 520, 0.05, 0.11, out);
294
+ break;
295
+ case 'paper': // 纸张轻响
296
+ this._noise(t, 0.12, 0.08, out, 3200, 1.2);
297
+ break;
298
+ case 'wang': // 闷实的印章落纸
299
+ this._block(t, 210, 0.1, 0.2, out);
300
+ this._noise(t, 0.07, 0.1, out, 700, 1.5);
301
+ break;
302
+ case 'mou': { // 极轻的连续摩擦,进度越高越明显
303
+ const p = Math.min(1, (opt.progress ?? 30) / 100);
304
+ this._noise(t, 0.3, 0.03 + p * 0.05, out, 900 + p * 600, 5);
305
+ break;
306
+ }
307
+ case 'faluo': { // 沉重的堂木+余响
308
+ this._tone(140, t, 0.4, 'sine', 0.3, out, 0.002, 0.3);
309
+ this._block(t, 260, 0.12, 0.26, out);
310
+ this._noise(t + 0.1, 0.6, 0.08, out, 300, 1);
311
+ break;
312
+ }
313
+ case 'watch': // 远处更漏,两下
314
+ this._block(t, 380, 0.09, 0.07, out);
315
+ this._block(t + 0.5, 340, 0.09, 0.055, out);
316
+ break;
317
+ case 'qing': { // 结局定格:悠长的磬
318
+ this._tone(1047, t, 2.8, 'sine', 0.14, out, 0.004, 2.4);
319
+ this._tone(1568, t, 2.2, 'sine', 0.05, out, 0.004, 1.8);
320
+ this._tone(524, t, 3.0, 'sine', 0.06, out, 0.004, 2.6);
321
+ break;
322
+ }
323
+ case 'click':
324
+ this._block(t, 760, 0.04, 0.1, out);
325
+ break;
326
+ default:
327
+ break;
328
+ }
329
+ }
330
+ }
331
+
332
+ export const audio = new AudioEngine();