@litfamily/litcodex 1.0.5 → 1.0.7

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 (816) hide show
  1. package/README.md +327 -25
  2. package/dist/cli.js +42 -0
  3. package/dist/config-migration/config-paths.js +9 -2
  4. package/dist/install/execute.d.ts +2 -0
  5. package/dist/install/execute.js +8 -3
  6. package/dist/install/generated-skill-payload-hashes.d.ts +617 -21
  7. package/dist/install/generated-skill-payload-hashes.js +617 -21
  8. package/dist/install/index.js +13 -2
  9. package/dist/install/marketplace-payload.d.ts +1 -0
  10. package/dist/install/marketplace-payload.js +73 -2
  11. package/dist/install/motion-runtime.d.ts +36 -0
  12. package/dist/install/motion-runtime.js +82 -0
  13. package/dist/install/office-runtime.d.ts +20 -0
  14. package/dist/install/office-runtime.js +37 -0
  15. package/dist/install/skill-catalog.d.ts +1 -1
  16. package/dist/install/skill-catalog.js +26 -2
  17. package/dist/install/skill-resource-hashes.d.ts +1 -1
  18. package/dist/install/skill-resource-hashes.js +1 -1
  19. package/dist/postinstall.js +14 -2
  20. package/marketplace/plugins/litcodex/.codex-plugin/plugin.json +1 -1
  21. package/marketplace/plugins/litcodex/components/auto-update/package.json +1 -1
  22. package/marketplace/plugins/litcodex/components/comment-checker/package.json +1 -1
  23. package/marketplace/plugins/litcodex/components/git-bash/package.json +1 -1
  24. package/marketplace/plugins/litcodex/components/lit-loop/directive.md +90 -5
  25. package/marketplace/plugins/litcodex/components/lit-loop/directives/lit-comprehend.md +13 -17
  26. package/marketplace/plugins/litcodex/components/lit-loop/directives/litwork.md +8 -0
  27. package/marketplace/plugins/litcodex/components/lit-loop/dist/codex-hook.js +8 -1
  28. package/marketplace/plugins/litcodex/components/lit-loop/dist/motion-route.d.ts +18 -0
  29. package/marketplace/plugins/litcodex/components/lit-loop/dist/motion-route.js +95 -0
  30. package/marketplace/plugins/litcodex/components/lit-loop/dist/skill-renames.d.ts +3 -1
  31. package/marketplace/plugins/litcodex/components/lit-loop/dist/skill-renames.js +10 -5
  32. package/marketplace/plugins/litcodex/components/lit-loop/package.json +1 -1
  33. package/marketplace/plugins/litcodex/components/lsp/package.json +1 -1
  34. package/marketplace/plugins/litcodex/components/rules/bundled-rules/lit-humanizer.md +12 -0
  35. package/marketplace/plugins/litcodex/components/rules/dist/cli.js +22 -10
  36. package/marketplace/plugins/litcodex/components/rules/dist/deliverable-hedge-guard.d.ts +23 -34
  37. package/marketplace/plugins/litcodex/components/rules/dist/deliverable-hedge-guard.js +420 -388
  38. package/marketplace/plugins/litcodex/components/rules/package.json +1 -1
  39. package/marketplace/plugins/litcodex/components/start-work-continuation/package.json +1 -1
  40. package/marketplace/plugins/litcodex/components/telemetry/package.json +1 -1
  41. package/marketplace/plugins/litcodex/components/wikify-knowledge/package.json +1 -1
  42. package/marketplace/plugins/litcodex/hooks/hooks.json +32 -21
  43. package/marketplace/plugins/litcodex/skills/autoconference/assets/report_template.md +1 -1
  44. package/marketplace/plugins/litcodex/skills/browser-drive/SKILL.md +4 -0
  45. package/marketplace/plugins/litcodex/skills/browser-drive/scripts/capability-probe.mjs +25 -2
  46. package/marketplace/plugins/litcodex/skills/frontend-ui-ux/SKILL.md +14 -15
  47. package/marketplace/plugins/litcodex/skills/frontend-ui-ux/THIRD-PARTY-NOTICE.txt +7 -0
  48. package/marketplace/plugins/litcodex/skills/frontend-ui-ux/examples/readme-ab/README.md +13 -0
  49. package/marketplace/plugins/litcodex/skills/frontend-ui-ux/references/adaptive-layout.md +12 -83
  50. package/marketplace/plugins/litcodex/skills/frontend-ui-ux/references/brand-and-imagery.md +17 -65
  51. package/marketplace/plugins/litcodex/skills/frontend-ui-ux/references/complete-contract.md +44 -13
  52. package/marketplace/plugins/litcodex/skills/frontend-ui-ux/references/composition.md +14 -80
  53. package/marketplace/plugins/litcodex/skills/frontend-ui-ux/references/craft-floor.md +103 -0
  54. package/marketplace/plugins/litcodex/skills/frontend-ui-ux/references/creative-directions.md +13 -82
  55. package/marketplace/plugins/litcodex/skills/frontend-ui-ux/references/evidence-review.md +14 -112
  56. package/marketplace/plugins/litcodex/skills/frontend-ui-ux/references/implementation-platforms.md +16 -68
  57. package/marketplace/plugins/litcodex/skills/frontend-ui-ux/references/inclusive-interface.md +12 -86
  58. package/marketplace/plugins/litcodex/skills/frontend-ui-ux/references/interaction-motion.md +13 -82
  59. package/marketplace/plugins/litcodex/skills/frontend-ui-ux/references/motion-guide.md +123 -0
  60. package/marketplace/plugins/litcodex/skills/frontend-ui-ux/references/operating-lanes.md +12 -100
  61. package/marketplace/plugins/litcodex/skills/frontend-ui-ux/references/performance-delivery.md +12 -78
  62. package/marketplace/plugins/litcodex/skills/frontend-ui-ux/references/probe-and-review.md +41 -0
  63. package/marketplace/plugins/litcodex/skills/frontend-ui-ux/references/product-direction.md +10 -88
  64. package/marketplace/plugins/litcodex/skills/frontend-ui-ux/references/production-interview.md +10 -12
  65. package/marketplace/plugins/litcodex/skills/frontend-ui-ux/references/redesign-playbook.md +12 -74
  66. package/marketplace/plugins/litcodex/skills/frontend-ui-ux/references/slop-register.md +98 -0
  67. package/marketplace/plugins/litcodex/skills/frontend-ui-ux/references/system-foundations.md +13 -100
  68. package/marketplace/plugins/litcodex/skills/frontend-ui-ux/references/visual-language.md +11 -74
  69. package/marketplace/plugins/litcodex/skills/frontend-ui-ux/references/visual-reconstruction.md +9 -78
  70. package/marketplace/plugins/litcodex/skills/frontend-ui-ux/scripts/hover-probe.mjs +28 -0
  71. package/marketplace/plugins/litcodex/skills/frontend-ui-ux/scripts/page-probe.mjs +423 -0
  72. package/marketplace/plugins/litcodex/skills/frontend-ui-ux/scripts/probe.mjs +261 -0
  73. package/marketplace/plugins/litcodex/skills/frontend-ui-ux/scripts/route-mode.mjs +19 -0
  74. package/marketplace/plugins/litcodex/skills/frontend-ui-ux/scripts/rule-data.mjs +115 -0
  75. package/marketplace/plugins/litcodex/skills/frontend-ui-ux/scripts/serve-static.mjs +24 -0
  76. package/marketplace/plugins/litcodex/skills/lit-comprehend/SKILL.md +45 -53
  77. package/marketplace/plugins/litcodex/skills/lit-comprehend/references/artifact-template.md +10 -44
  78. package/marketplace/plugins/litcodex/skills/lit-comprehend/scripts/verify-explainer.ts +0 -18
  79. package/marketplace/plugins/litcodex/skills/lit-diagram-drawer/NOTICE +33 -0
  80. package/marketplace/plugins/litcodex/skills/lit-diagram-drawer/SKILL.md +167 -0
  81. package/marketplace/plugins/litcodex/skills/lit-diagram-drawer/agents/openai.yaml +6 -0
  82. package/marketplace/plugins/litcodex/skills/lit-diagram-drawer/assets/examples/type-architecture-dark.html +1 -0
  83. package/marketplace/plugins/litcodex/skills/lit-diagram-drawer/assets/examples/type-architecture-full.html +1 -0
  84. package/marketplace/plugins/litcodex/skills/lit-diagram-drawer/assets/examples/type-architecture-light.html +1 -0
  85. package/marketplace/plugins/litcodex/skills/lit-diagram-drawer/assets/examples/type-bar-dark.html +1 -0
  86. package/marketplace/plugins/litcodex/skills/lit-diagram-drawer/assets/examples/type-bar-full.html +1 -0
  87. package/marketplace/plugins/litcodex/skills/lit-diagram-drawer/assets/examples/type-bar-light.html +1 -0
  88. package/marketplace/plugins/litcodex/skills/lit-diagram-drawer/assets/examples/type-beeswarm-dark.html +1 -0
  89. package/marketplace/plugins/litcodex/skills/lit-diagram-drawer/assets/examples/type-beeswarm-full.html +1 -0
  90. package/marketplace/plugins/litcodex/skills/lit-diagram-drawer/assets/examples/type-beeswarm-light.html +1 -0
  91. package/marketplace/plugins/litcodex/skills/lit-diagram-drawer/assets/examples/type-bubble-dark.html +1 -0
  92. package/marketplace/plugins/litcodex/skills/lit-diagram-drawer/assets/examples/type-bubble-full.html +1 -0
  93. package/marketplace/plugins/litcodex/skills/lit-diagram-drawer/assets/examples/type-bubble-light.html +1 -0
  94. package/marketplace/plugins/litcodex/skills/lit-diagram-drawer/assets/examples/type-bump-dark.html +1 -0
  95. package/marketplace/plugins/litcodex/skills/lit-diagram-drawer/assets/examples/type-bump-full.html +1 -0
  96. package/marketplace/plugins/litcodex/skills/lit-diagram-drawer/assets/examples/type-bump-light.html +1 -0
  97. package/marketplace/plugins/litcodex/skills/lit-diagram-drawer/assets/examples/type-data-flow-dark.html +1 -0
  98. package/marketplace/plugins/litcodex/skills/lit-diagram-drawer/assets/examples/type-data-flow-full.html +1 -0
  99. package/marketplace/plugins/litcodex/skills/lit-diagram-drawer/assets/examples/type-data-flow-light.html +1 -0
  100. package/marketplace/plugins/litcodex/skills/lit-diagram-drawer/assets/examples/type-datalake-dark.html +1 -0
  101. package/marketplace/plugins/litcodex/skills/lit-diagram-drawer/assets/examples/type-datalake-full.html +1 -0
  102. package/marketplace/plugins/litcodex/skills/lit-diagram-drawer/assets/examples/type-datalake-light.html +1 -0
  103. package/marketplace/plugins/litcodex/skills/lit-diagram-drawer/assets/examples/type-db-schema-dark.html +1 -0
  104. package/marketplace/plugins/litcodex/skills/lit-diagram-drawer/assets/examples/type-db-schema-full.html +1 -0
  105. package/marketplace/plugins/litcodex/skills/lit-diagram-drawer/assets/examples/type-db-schema-light.html +1 -0
  106. package/marketplace/plugins/litcodex/skills/lit-diagram-drawer/assets/examples/type-dependency-dark.html +1 -0
  107. package/marketplace/plugins/litcodex/skills/lit-diagram-drawer/assets/examples/type-dependency-full.html +1 -0
  108. package/marketplace/plugins/litcodex/skills/lit-diagram-drawer/assets/examples/type-dependency-light.html +1 -0
  109. package/marketplace/plugins/litcodex/skills/lit-diagram-drawer/assets/examples/type-deployment-dark.html +1 -0
  110. package/marketplace/plugins/litcodex/skills/lit-diagram-drawer/assets/examples/type-deployment-full.html +1 -0
  111. package/marketplace/plugins/litcodex/skills/lit-diagram-drawer/assets/examples/type-deployment-light.html +1 -0
  112. package/marketplace/plugins/litcodex/skills/lit-diagram-drawer/assets/examples/type-dp-integration-dark.html +1 -0
  113. package/marketplace/plugins/litcodex/skills/lit-diagram-drawer/assets/examples/type-dp-integration-full.html +1 -0
  114. package/marketplace/plugins/litcodex/skills/lit-diagram-drawer/assets/examples/type-dp-integration-light.html +1 -0
  115. package/marketplace/plugins/litcodex/skills/lit-diagram-drawer/assets/examples/type-dp-security-matrix-dark.html +1 -0
  116. package/marketplace/plugins/litcodex/skills/lit-diagram-drawer/assets/examples/type-dp-security-matrix-full.html +1 -0
  117. package/marketplace/plugins/litcodex/skills/lit-diagram-drawer/assets/examples/type-dp-security-matrix-light.html +1 -0
  118. package/marketplace/plugins/litcodex/skills/lit-diagram-drawer/assets/examples/type-er-dark.html +1 -0
  119. package/marketplace/plugins/litcodex/skills/lit-diagram-drawer/assets/examples/type-er-full.html +1 -0
  120. package/marketplace/plugins/litcodex/skills/lit-diagram-drawer/assets/examples/type-er-light.html +1 -0
  121. package/marketplace/plugins/litcodex/skills/lit-diagram-drawer/assets/examples/type-fishbone-dark.html +1 -0
  122. package/marketplace/plugins/litcodex/skills/lit-diagram-drawer/assets/examples/type-fishbone-full.html +1 -0
  123. package/marketplace/plugins/litcodex/skills/lit-diagram-drawer/assets/examples/type-fishbone-light.html +1 -0
  124. package/marketplace/plugins/litcodex/skills/lit-diagram-drawer/assets/examples/type-flowchart-dark.html +1 -0
  125. package/marketplace/plugins/litcodex/skills/lit-diagram-drawer/assets/examples/type-flowchart-full.html +1 -0
  126. package/marketplace/plugins/litcodex/skills/lit-diagram-drawer/assets/examples/type-flowchart-light.html +1 -0
  127. package/marketplace/plugins/litcodex/skills/lit-diagram-drawer/assets/examples/type-gantt-dark.html +1 -0
  128. package/marketplace/plugins/litcodex/skills/lit-diagram-drawer/assets/examples/type-gantt-full.html +1 -0
  129. package/marketplace/plugins/litcodex/skills/lit-diagram-drawer/assets/examples/type-gantt-light.html +1 -0
  130. package/marketplace/plugins/litcodex/skills/lit-diagram-drawer/assets/examples/type-heatmap-dark.html +1 -0
  131. package/marketplace/plugins/litcodex/skills/lit-diagram-drawer/assets/examples/type-heatmap-full.html +1 -0
  132. package/marketplace/plugins/litcodex/skills/lit-diagram-drawer/assets/examples/type-heatmap-light.html +1 -0
  133. package/marketplace/plugins/litcodex/skills/lit-diagram-drawer/assets/examples/type-high-level-dark.html +1 -0
  134. package/marketplace/plugins/litcodex/skills/lit-diagram-drawer/assets/examples/type-high-level-full.html +1 -0
  135. package/marketplace/plugins/litcodex/skills/lit-diagram-drawer/assets/examples/type-high-level-light.html +1 -0
  136. package/marketplace/plugins/litcodex/skills/lit-diagram-drawer/assets/examples/type-high-level-vertical-dark.html +1 -0
  137. package/marketplace/plugins/litcodex/skills/lit-diagram-drawer/assets/examples/type-high-level-vertical-full.html +1 -0
  138. package/marketplace/plugins/litcodex/skills/lit-diagram-drawer/assets/examples/type-high-level-vertical-light.html +1 -0
  139. package/marketplace/plugins/litcodex/skills/lit-diagram-drawer/assets/examples/type-import-drawio-dark.html +1 -0
  140. package/marketplace/plugins/litcodex/skills/lit-diagram-drawer/assets/examples/type-import-drawio-full.html +1 -0
  141. package/marketplace/plugins/litcodex/skills/lit-diagram-drawer/assets/examples/type-import-drawio-light.html +1 -0
  142. package/marketplace/plugins/litcodex/skills/lit-diagram-drawer/assets/examples/type-import-excalidraw-dark.html +1 -0
  143. package/marketplace/plugins/litcodex/skills/lit-diagram-drawer/assets/examples/type-import-excalidraw-full.html +1 -0
  144. package/marketplace/plugins/litcodex/skills/lit-diagram-drawer/assets/examples/type-import-excalidraw-light.html +1 -0
  145. package/marketplace/plugins/litcodex/skills/lit-diagram-drawer/assets/examples/type-import-mermaid-dark.html +1 -0
  146. package/marketplace/plugins/litcodex/skills/lit-diagram-drawer/assets/examples/type-import-mermaid-full.html +1 -0
  147. package/marketplace/plugins/litcodex/skills/lit-diagram-drawer/assets/examples/type-import-mermaid-light.html +1 -0
  148. package/marketplace/plugins/litcodex/skills/lit-diagram-drawer/assets/examples/type-it-state-dark.html +1 -0
  149. package/marketplace/plugins/litcodex/skills/lit-diagram-drawer/assets/examples/type-it-state-full.html +1 -0
  150. package/marketplace/plugins/litcodex/skills/lit-diagram-drawer/assets/examples/type-it-state-light.html +1 -0
  151. package/marketplace/plugins/litcodex/skills/lit-diagram-drawer/assets/examples/type-journey-dark.html +1 -0
  152. package/marketplace/plugins/litcodex/skills/lit-diagram-drawer/assets/examples/type-journey-full.html +1 -0
  153. package/marketplace/plugins/litcodex/skills/lit-diagram-drawer/assets/examples/type-journey-light.html +1 -0
  154. package/marketplace/plugins/litcodex/skills/lit-diagram-drawer/assets/examples/type-kanban-dark.html +1 -0
  155. package/marketplace/plugins/litcodex/skills/lit-diagram-drawer/assets/examples/type-kanban-full.html +1 -0
  156. package/marketplace/plugins/litcodex/skills/lit-diagram-drawer/assets/examples/type-kanban-light.html +1 -0
  157. package/marketplace/plugins/litcodex/skills/lit-diagram-drawer/assets/examples/type-layers-dark.html +1 -0
  158. package/marketplace/plugins/litcodex/skills/lit-diagram-drawer/assets/examples/type-layers-full.html +1 -0
  159. package/marketplace/plugins/litcodex/skills/lit-diagram-drawer/assets/examples/type-layers-light.html +1 -0
  160. package/marketplace/plugins/litcodex/skills/lit-diagram-drawer/assets/examples/type-line-dark.html +1 -0
  161. package/marketplace/plugins/litcodex/skills/lit-diagram-drawer/assets/examples/type-line-full.html +1 -0
  162. package/marketplace/plugins/litcodex/skills/lit-diagram-drawer/assets/examples/type-line-light.html +1 -0
  163. package/marketplace/plugins/litcodex/skills/lit-diagram-drawer/assets/examples/type-loop-dark.html +1 -0
  164. package/marketplace/plugins/litcodex/skills/lit-diagram-drawer/assets/examples/type-loop-full.html +1 -0
  165. package/marketplace/plugins/litcodex/skills/lit-diagram-drawer/assets/examples/type-loop-light.html +1 -0
  166. package/marketplace/plugins/litcodex/skills/lit-diagram-drawer/assets/examples/type-loop-terminal-dark.html +1 -0
  167. package/marketplace/plugins/litcodex/skills/lit-diagram-drawer/assets/examples/type-loop-terminal-full.html +1 -0
  168. package/marketplace/plugins/litcodex/skills/lit-diagram-drawer/assets/examples/type-loop-terminal-light.html +1 -0
  169. package/marketplace/plugins/litcodex/skills/lit-diagram-drawer/assets/examples/type-marimekko-dark.html +1 -0
  170. package/marketplace/plugins/litcodex/skills/lit-diagram-drawer/assets/examples/type-marimekko-full.html +1 -0
  171. package/marketplace/plugins/litcodex/skills/lit-diagram-drawer/assets/examples/type-marimekko-light.html +1 -0
  172. package/marketplace/plugins/litcodex/skills/lit-diagram-drawer/assets/examples/type-medallion-dark.html +1 -0
  173. package/marketplace/plugins/litcodex/skills/lit-diagram-drawer/assets/examples/type-medallion-full.html +1 -0
  174. package/marketplace/plugins/litcodex/skills/lit-diagram-drawer/assets/examples/type-medallion-light.html +1 -0
  175. package/marketplace/plugins/litcodex/skills/lit-diagram-drawer/assets/examples/type-nested-dark.html +1 -0
  176. package/marketplace/plugins/litcodex/skills/lit-diagram-drawer/assets/examples/type-nested-full.html +1 -0
  177. package/marketplace/plugins/litcodex/skills/lit-diagram-drawer/assets/examples/type-nested-light.html +1 -0
  178. package/marketplace/plugins/litcodex/skills/lit-diagram-drawer/assets/examples/type-org-chart-dark.html +1 -0
  179. package/marketplace/plugins/litcodex/skills/lit-diagram-drawer/assets/examples/type-org-chart-full.html +1 -0
  180. package/marketplace/plugins/litcodex/skills/lit-diagram-drawer/assets/examples/type-org-chart-light.html +1 -0
  181. package/marketplace/plugins/litcodex/skills/lit-diagram-drawer/assets/examples/type-paved-road-animated-dark.html +1 -0
  182. package/marketplace/plugins/litcodex/skills/lit-diagram-drawer/assets/examples/type-paved-road-animated-full.html +1 -0
  183. package/marketplace/plugins/litcodex/skills/lit-diagram-drawer/assets/examples/type-paved-road-animated-light.html +1 -0
  184. package/marketplace/plugins/litcodex/skills/lit-diagram-drawer/assets/examples/type-polar-dark.html +1 -0
  185. package/marketplace/plugins/litcodex/skills/lit-diagram-drawer/assets/examples/type-polar-full.html +1 -0
  186. package/marketplace/plugins/litcodex/skills/lit-diagram-drawer/assets/examples/type-polar-light.html +1 -0
  187. package/marketplace/plugins/litcodex/skills/lit-diagram-drawer/assets/examples/type-policy-trace-animated-dark.html +1 -0
  188. package/marketplace/plugins/litcodex/skills/lit-diagram-drawer/assets/examples/type-policy-trace-animated-full.html +1 -0
  189. package/marketplace/plugins/litcodex/skills/lit-diagram-drawer/assets/examples/type-policy-trace-animated-light.html +1 -0
  190. package/marketplace/plugins/litcodex/skills/lit-diagram-drawer/assets/examples/type-process-dark.html +1 -0
  191. package/marketplace/plugins/litcodex/skills/lit-diagram-drawer/assets/examples/type-process-full.html +1 -0
  192. package/marketplace/plugins/litcodex/skills/lit-diagram-drawer/assets/examples/type-process-light.html +1 -0
  193. package/marketplace/plugins/litcodex/skills/lit-diagram-drawer/assets/examples/type-pyramid-dark.html +1 -0
  194. package/marketplace/plugins/litcodex/skills/lit-diagram-drawer/assets/examples/type-pyramid-full.html +1 -0
  195. package/marketplace/plugins/litcodex/skills/lit-diagram-drawer/assets/examples/type-pyramid-light.html +1 -0
  196. package/marketplace/plugins/litcodex/skills/lit-diagram-drawer/assets/examples/type-quadrant-consultant-dark.html +1 -0
  197. package/marketplace/plugins/litcodex/skills/lit-diagram-drawer/assets/examples/type-quadrant-consultant-full.html +1 -0
  198. package/marketplace/plugins/litcodex/skills/lit-diagram-drawer/assets/examples/type-quadrant-consultant-light.html +1 -0
  199. package/marketplace/plugins/litcodex/skills/lit-diagram-drawer/assets/examples/type-quadrant-dark.html +1 -0
  200. package/marketplace/plugins/litcodex/skills/lit-diagram-drawer/assets/examples/type-quadrant-full.html +1 -0
  201. package/marketplace/plugins/litcodex/skills/lit-diagram-drawer/assets/examples/type-quadrant-light.html +1 -0
  202. package/marketplace/plugins/litcodex/skills/lit-diagram-drawer/assets/examples/type-queue-animated-dark.html +1 -0
  203. package/marketplace/plugins/litcodex/skills/lit-diagram-drawer/assets/examples/type-queue-animated-full.html +1 -0
  204. package/marketplace/plugins/litcodex/skills/lit-diagram-drawer/assets/examples/type-queue-animated-light.html +1 -0
  205. package/marketplace/plugins/litcodex/skills/lit-diagram-drawer/assets/examples/type-radar-dark.html +1 -0
  206. package/marketplace/plugins/litcodex/skills/lit-diagram-drawer/assets/examples/type-radar-full.html +1 -0
  207. package/marketplace/plugins/litcodex/skills/lit-diagram-drawer/assets/examples/type-radar-light.html +1 -0
  208. package/marketplace/plugins/litcodex/skills/lit-diagram-drawer/assets/examples/type-ridgeline-dark.html +1 -0
  209. package/marketplace/plugins/litcodex/skills/lit-diagram-drawer/assets/examples/type-ridgeline-full.html +1 -0
  210. package/marketplace/plugins/litcodex/skills/lit-diagram-drawer/assets/examples/type-ridgeline-light.html +1 -0
  211. package/marketplace/plugins/litcodex/skills/lit-diagram-drawer/assets/examples/type-sankey-dark.html +1 -0
  212. package/marketplace/plugins/litcodex/skills/lit-diagram-drawer/assets/examples/type-sankey-full.html +1 -0
  213. package/marketplace/plugins/litcodex/skills/lit-diagram-drawer/assets/examples/type-sankey-light.html +1 -0
  214. package/marketplace/plugins/litcodex/skills/lit-diagram-drawer/assets/examples/type-scatter-dark.html +1 -0
  215. package/marketplace/plugins/litcodex/skills/lit-diagram-drawer/assets/examples/type-scatter-full.html +1 -0
  216. package/marketplace/plugins/litcodex/skills/lit-diagram-drawer/assets/examples/type-scatter-light.html +1 -0
  217. package/marketplace/plugins/litcodex/skills/lit-diagram-drawer/assets/examples/type-sequence-dark.html +1 -0
  218. package/marketplace/plugins/litcodex/skills/lit-diagram-drawer/assets/examples/type-sequence-full.html +1 -0
  219. package/marketplace/plugins/litcodex/skills/lit-diagram-drawer/assets/examples/type-sequence-light.html +1 -0
  220. package/marketplace/plugins/litcodex/skills/lit-diagram-drawer/assets/examples/type-sequence-oauth-dark.html +1 -0
  221. package/marketplace/plugins/litcodex/skills/lit-diagram-drawer/assets/examples/type-sequence-oauth-full.html +1 -0
  222. package/marketplace/plugins/litcodex/skills/lit-diagram-drawer/assets/examples/type-sequence-oauth-light.html +1 -0
  223. package/marketplace/plugins/litcodex/skills/lit-diagram-drawer/assets/examples/type-slopegraph-dark.html +1 -0
  224. package/marketplace/plugins/litcodex/skills/lit-diagram-drawer/assets/examples/type-slopegraph-full.html +1 -0
  225. package/marketplace/plugins/litcodex/skills/lit-diagram-drawer/assets/examples/type-slopegraph-light.html +1 -0
  226. package/marketplace/plugins/litcodex/skills/lit-diagram-drawer/assets/examples/type-state-dark.html +1 -0
  227. package/marketplace/plugins/litcodex/skills/lit-diagram-drawer/assets/examples/type-state-full.html +1 -0
  228. package/marketplace/plugins/litcodex/skills/lit-diagram-drawer/assets/examples/type-state-lifecycle-dark.html +1 -0
  229. package/marketplace/plugins/litcodex/skills/lit-diagram-drawer/assets/examples/type-state-lifecycle-full.html +1 -0
  230. package/marketplace/plugins/litcodex/skills/lit-diagram-drawer/assets/examples/type-state-lifecycle-light.html +1 -0
  231. package/marketplace/plugins/litcodex/skills/lit-diagram-drawer/assets/examples/type-state-light.html +1 -0
  232. package/marketplace/plugins/litcodex/skills/lit-diagram-drawer/assets/examples/type-story-map-dark.html +1 -0
  233. package/marketplace/plugins/litcodex/skills/lit-diagram-drawer/assets/examples/type-story-map-full.html +1 -0
  234. package/marketplace/plugins/litcodex/skills/lit-diagram-drawer/assets/examples/type-story-map-light.html +1 -0
  235. package/marketplace/plugins/litcodex/skills/lit-diagram-drawer/assets/examples/type-streamgraph-dark.html +1 -0
  236. package/marketplace/plugins/litcodex/skills/lit-diagram-drawer/assets/examples/type-streamgraph-full.html +1 -0
  237. package/marketplace/plugins/litcodex/skills/lit-diagram-drawer/assets/examples/type-streamgraph-light.html +1 -0
  238. package/marketplace/plugins/litcodex/skills/lit-diagram-drawer/assets/examples/type-swimlane-dark.html +1 -0
  239. package/marketplace/plugins/litcodex/skills/lit-diagram-drawer/assets/examples/type-swimlane-full.html +1 -0
  240. package/marketplace/plugins/litcodex/skills/lit-diagram-drawer/assets/examples/type-swimlane-light.html +1 -0
  241. package/marketplace/plugins/litcodex/skills/lit-diagram-drawer/assets/examples/type-timeline-dark.html +1 -0
  242. package/marketplace/plugins/litcodex/skills/lit-diagram-drawer/assets/examples/type-timeline-full.html +1 -0
  243. package/marketplace/plugins/litcodex/skills/lit-diagram-drawer/assets/examples/type-timeline-light.html +1 -0
  244. package/marketplace/plugins/litcodex/skills/lit-diagram-drawer/assets/examples/type-tree-block-decomposition-dark.html +1 -0
  245. package/marketplace/plugins/litcodex/skills/lit-diagram-drawer/assets/examples/type-tree-block-decomposition-full.html +1 -0
  246. package/marketplace/plugins/litcodex/skills/lit-diagram-drawer/assets/examples/type-tree-block-decomposition-light.html +1 -0
  247. package/marketplace/plugins/litcodex/skills/lit-diagram-drawer/assets/examples/type-tree-dark.html +1 -0
  248. package/marketplace/plugins/litcodex/skills/lit-diagram-drawer/assets/examples/type-tree-full.html +1 -0
  249. package/marketplace/plugins/litcodex/skills/lit-diagram-drawer/assets/examples/type-tree-light.html +1 -0
  250. package/marketplace/plugins/litcodex/skills/lit-diagram-drawer/assets/examples/type-treemap-dark.html +1 -0
  251. package/marketplace/plugins/litcodex/skills/lit-diagram-drawer/assets/examples/type-treemap-full.html +1 -0
  252. package/marketplace/plugins/litcodex/skills/lit-diagram-drawer/assets/examples/type-treemap-light.html +1 -0
  253. package/marketplace/plugins/litcodex/skills/lit-diagram-drawer/assets/examples/type-uml-class-dark.html +1 -0
  254. package/marketplace/plugins/litcodex/skills/lit-diagram-drawer/assets/examples/type-uml-class-full.html +1 -0
  255. package/marketplace/plugins/litcodex/skills/lit-diagram-drawer/assets/examples/type-uml-class-light.html +1 -0
  256. package/marketplace/plugins/litcodex/skills/lit-diagram-drawer/assets/examples/type-venn-dark.html +1 -0
  257. package/marketplace/plugins/litcodex/skills/lit-diagram-drawer/assets/examples/type-venn-full.html +1 -0
  258. package/marketplace/plugins/litcodex/skills/lit-diagram-drawer/assets/examples/type-venn-light.html +1 -0
  259. package/marketplace/plugins/litcodex/skills/lit-diagram-drawer/assets/examples/type-wardley-dark.html +1 -0
  260. package/marketplace/plugins/litcodex/skills/lit-diagram-drawer/assets/examples/type-wardley-full.html +1 -0
  261. package/marketplace/plugins/litcodex/skills/lit-diagram-drawer/assets/examples/type-wardley-light.html +1 -0
  262. package/marketplace/plugins/litcodex/skills/lit-diagram-drawer/assets/examples/type-waterfall-dark.html +1 -0
  263. package/marketplace/plugins/litcodex/skills/lit-diagram-drawer/assets/examples/type-waterfall-full.html +1 -0
  264. package/marketplace/plugins/litcodex/skills/lit-diagram-drawer/assets/examples/type-waterfall-light.html +1 -0
  265. package/marketplace/plugins/litcodex/skills/lit-diagram-drawer/assets/fonts/OFL.txt +94 -0
  266. package/marketplace/plugins/litcodex/skills/lit-diagram-drawer/assets/fonts/PretendardVariable.woff2 +0 -0
  267. package/marketplace/plugins/litcodex/skills/lit-diagram-drawer/assets/fonts/provenance.json +22 -0
  268. package/marketplace/plugins/litcodex/skills/lit-diagram-drawer/assets/icons.html +231 -0
  269. package/marketplace/plugins/litcodex/skills/lit-diagram-drawer/assets/index.html +1 -0
  270. package/marketplace/plugins/litcodex/skills/lit-diagram-drawer/assets/licenses/devicon-MIT.txt +20 -0
  271. package/marketplace/plugins/litcodex/skills/lit-diagram-drawer/assets/licenses/diagram-design-MIT.txt +21 -0
  272. package/marketplace/plugins/litcodex/skills/lit-diagram-drawer/assets/licenses/log-z-MIT.txt +21 -0
  273. package/marketplace/plugins/litcodex/skills/lit-diagram-drawer/assets/licenses/simple-icons-CC0.md +30 -0
  274. package/marketplace/plugins/litcodex/skills/lit-diagram-drawer/assets/licenses/tabler-MIT.txt +21 -0
  275. package/marketplace/plugins/litcodex/skills/lit-diagram-drawer/examples/01-service-architecture/after.html +1 -0
  276. package/marketplace/plugins/litcodex/skills/lit-diagram-drawer/examples/01-service-architecture/brief.md +33 -0
  277. package/marketplace/plugins/litcodex/skills/lit-diagram-drawer/examples/01-service-architecture/constructed-naive-foil.html +1 -0
  278. package/marketplace/plugins/litcodex/skills/lit-diagram-drawer/examples/02-release-decision/after.html +1 -0
  279. package/marketplace/plugins/litcodex/skills/lit-diagram-drawer/examples/02-release-decision/brief.md +18 -0
  280. package/marketplace/plugins/litcodex/skills/lit-diagram-drawer/examples/02-release-decision/constructed-naive-foil.html +1 -0
  281. package/marketplace/plugins/litcodex/skills/lit-diagram-drawer/examples/03-data-retention/after.html +1 -0
  282. package/marketplace/plugins/litcodex/skills/lit-diagram-drawer/examples/03-data-retention/brief.md +19 -0
  283. package/marketplace/plugins/litcodex/skills/lit-diagram-drawer/examples/03-data-retention/constructed-naive-foil.html +1 -0
  284. package/marketplace/plugins/litcodex/skills/lit-diagram-drawer/examples/04-oauth-sequence/after.html +1 -0
  285. package/marketplace/plugins/litcodex/skills/lit-diagram-drawer/examples/04-oauth-sequence/brief.md +17 -0
  286. package/marketplace/plugins/litcodex/skills/lit-diagram-drawer/examples/04-oauth-sequence/constructed-naive-foil.html +1 -0
  287. package/marketplace/plugins/litcodex/skills/lit-diagram-drawer/examples/05-review-lanes/after.html +1 -0
  288. package/marketplace/plugins/litcodex/skills/lit-diagram-drawer/examples/05-review-lanes/brief.md +17 -0
  289. package/marketplace/plugins/litcodex/skills/lit-diagram-drawer/examples/05-review-lanes/constructed-naive-foil.html +1 -0
  290. package/marketplace/plugins/litcodex/skills/lit-diagram-drawer/examples/06-rollout-gates/after.html +1 -0
  291. package/marketplace/plugins/litcodex/skills/lit-diagram-drawer/examples/06-rollout-gates/brief.md +17 -0
  292. package/marketplace/plugins/litcodex/skills/lit-diagram-drawer/examples/06-rollout-gates/constructed-naive-foil.html +1 -0
  293. package/marketplace/plugins/litcodex/skills/lit-diagram-drawer/examples/07-deployment-boundary/after.html +1 -0
  294. package/marketplace/plugins/litcodex/skills/lit-diagram-drawer/examples/07-deployment-boundary/brief.md +19 -0
  295. package/marketplace/plugins/litcodex/skills/lit-diagram-drawer/examples/07-deployment-boundary/constructed-naive-foil.html +1 -0
  296. package/marketplace/plugins/litcodex/skills/lit-diagram-drawer/examples/08-policy-traces/after.html +1 -0
  297. package/marketplace/plugins/litcodex/skills/lit-diagram-drawer/examples/08-policy-traces/brief.md +20 -0
  298. package/marketplace/plugins/litcodex/skills/lit-diagram-drawer/examples/08-policy-traces/constructed-naive-foil.html +1 -0
  299. package/marketplace/plugins/litcodex/skills/lit-diagram-drawer/references/accessibility.md +37 -0
  300. package/marketplace/plugins/litcodex/skills/lit-diagram-drawer/references/export.md +29 -0
  301. package/marketplace/plugins/litcodex/skills/lit-diagram-drawer/references/import-drawio.md +21 -0
  302. package/marketplace/plugins/litcodex/skills/lit-diagram-drawer/references/import-excalidraw.md +14 -0
  303. package/marketplace/plugins/litcodex/skills/lit-diagram-drawer/references/import-mermaid.md +18 -0
  304. package/marketplace/plugins/litcodex/skills/lit-diagram-drawer/references/import-schema.md +28 -0
  305. package/marketplace/plugins/litcodex/skills/lit-diagram-drawer/references/korean-typography.md +34 -0
  306. package/marketplace/plugins/litcodex/skills/lit-diagram-drawer/references/motion.md +29 -0
  307. package/marketplace/plugins/litcodex/skills/lit-diagram-drawer/references/office-pptx-docx.md +42 -0
  308. package/marketplace/plugins/litcodex/skills/lit-diagram-drawer/references/output-spec.md +48 -0
  309. package/marketplace/plugins/litcodex/skills/lit-diagram-drawer/references/primitive-annotation.md +12 -0
  310. package/marketplace/plugins/litcodex/skills/lit-diagram-drawer/references/primitive-icons.md +21 -0
  311. package/marketplace/plugins/litcodex/skills/lit-diagram-drawer/references/primitive-sketchy.md +11 -0
  312. package/marketplace/plugins/litcodex/skills/lit-diagram-drawer/references/primitive-terminal.md +11 -0
  313. package/marketplace/plugins/litcodex/skills/lit-diagram-drawer/references/profiles.md +24 -0
  314. package/marketplace/plugins/litcodex/skills/lit-diagram-drawer/references/semantic-patterns.md +27 -0
  315. package/marketplace/plugins/litcodex/skills/lit-diagram-drawer/references/style-guide.md +67 -0
  316. package/marketplace/plugins/litcodex/skills/lit-diagram-drawer/references/type-architecture.md +51 -0
  317. package/marketplace/plugins/litcodex/skills/lit-diagram-drawer/references/type-bar.md +51 -0
  318. package/marketplace/plugins/litcodex/skills/lit-diagram-drawer/references/type-beeswarm.md +49 -0
  319. package/marketplace/plugins/litcodex/skills/lit-diagram-drawer/references/type-bubble.md +49 -0
  320. package/marketplace/plugins/litcodex/skills/lit-diagram-drawer/references/type-bump.md +49 -0
  321. package/marketplace/plugins/litcodex/skills/lit-diagram-drawer/references/type-catalog.json +1433 -0
  322. package/marketplace/plugins/litcodex/skills/lit-diagram-drawer/references/type-data-flow.md +51 -0
  323. package/marketplace/plugins/litcodex/skills/lit-diagram-drawer/references/type-datalake.md +49 -0
  324. package/marketplace/plugins/litcodex/skills/lit-diagram-drawer/references/type-db-schema.md +49 -0
  325. package/marketplace/plugins/litcodex/skills/lit-diagram-drawer/references/type-dependency.md +49 -0
  326. package/marketplace/plugins/litcodex/skills/lit-diagram-drawer/references/type-deployment.md +49 -0
  327. package/marketplace/plugins/litcodex/skills/lit-diagram-drawer/references/type-dp-integration.md +49 -0
  328. package/marketplace/plugins/litcodex/skills/lit-diagram-drawer/references/type-dp-security-matrix.md +49 -0
  329. package/marketplace/plugins/litcodex/skills/lit-diagram-drawer/references/type-er.md +49 -0
  330. package/marketplace/plugins/litcodex/skills/lit-diagram-drawer/references/type-fishbone.md +49 -0
  331. package/marketplace/plugins/litcodex/skills/lit-diagram-drawer/references/type-flowchart.md +49 -0
  332. package/marketplace/plugins/litcodex/skills/lit-diagram-drawer/references/type-gantt.md +49 -0
  333. package/marketplace/plugins/litcodex/skills/lit-diagram-drawer/references/type-heatmap.md +53 -0
  334. package/marketplace/plugins/litcodex/skills/lit-diagram-drawer/references/type-high-level-vertical.md +53 -0
  335. package/marketplace/plugins/litcodex/skills/lit-diagram-drawer/references/type-high-level.md +53 -0
  336. package/marketplace/plugins/litcodex/skills/lit-diagram-drawer/references/type-import-drawio.md +53 -0
  337. package/marketplace/plugins/litcodex/skills/lit-diagram-drawer/references/type-import-excalidraw.md +53 -0
  338. package/marketplace/plugins/litcodex/skills/lit-diagram-drawer/references/type-import-mermaid.md +53 -0
  339. package/marketplace/plugins/litcodex/skills/lit-diagram-drawer/references/type-it-state.md +54 -0
  340. package/marketplace/plugins/litcodex/skills/lit-diagram-drawer/references/type-journey.md +54 -0
  341. package/marketplace/plugins/litcodex/skills/lit-diagram-drawer/references/type-kanban.md +54 -0
  342. package/marketplace/plugins/litcodex/skills/lit-diagram-drawer/references/type-layers.md +54 -0
  343. package/marketplace/plugins/litcodex/skills/lit-diagram-drawer/references/type-line.md +54 -0
  344. package/marketplace/plugins/litcodex/skills/lit-diagram-drawer/references/type-loop-terminal.md +53 -0
  345. package/marketplace/plugins/litcodex/skills/lit-diagram-drawer/references/type-loop.md +54 -0
  346. package/marketplace/plugins/litcodex/skills/lit-diagram-drawer/references/type-marimekko.md +54 -0
  347. package/marketplace/plugins/litcodex/skills/lit-diagram-drawer/references/type-medallion.md +54 -0
  348. package/marketplace/plugins/litcodex/skills/lit-diagram-drawer/references/type-nested.md +59 -0
  349. package/marketplace/plugins/litcodex/skills/lit-diagram-drawer/references/type-org-chart.md +58 -0
  350. package/marketplace/plugins/litcodex/skills/lit-diagram-drawer/references/type-paved-road-animated.md +72 -0
  351. package/marketplace/plugins/litcodex/skills/lit-diagram-drawer/references/type-polar.md +67 -0
  352. package/marketplace/plugins/litcodex/skills/lit-diagram-drawer/references/type-policy-trace-animated.md +69 -0
  353. package/marketplace/plugins/litcodex/skills/lit-diagram-drawer/references/type-process.md +58 -0
  354. package/marketplace/plugins/litcodex/skills/lit-diagram-drawer/references/type-pyramid.md +59 -0
  355. package/marketplace/plugins/litcodex/skills/lit-diagram-drawer/references/type-quadrant-consultant.md +60 -0
  356. package/marketplace/plugins/litcodex/skills/lit-diagram-drawer/references/type-quadrant.md +57 -0
  357. package/marketplace/plugins/litcodex/skills/lit-diagram-drawer/references/type-queue-animated.md +63 -0
  358. package/marketplace/plugins/litcodex/skills/lit-diagram-drawer/references/type-radar.md +57 -0
  359. package/marketplace/plugins/litcodex/skills/lit-diagram-drawer/references/type-ridgeline.md +63 -0
  360. package/marketplace/plugins/litcodex/skills/lit-diagram-drawer/references/type-sankey.md +68 -0
  361. package/marketplace/plugins/litcodex/skills/lit-diagram-drawer/references/type-scatter.md +60 -0
  362. package/marketplace/plugins/litcodex/skills/lit-diagram-drawer/references/type-sequence-oauth.md +66 -0
  363. package/marketplace/plugins/litcodex/skills/lit-diagram-drawer/references/type-sequence.md +63 -0
  364. package/marketplace/plugins/litcodex/skills/lit-diagram-drawer/references/type-slopegraph.md +65 -0
  365. package/marketplace/plugins/litcodex/skills/lit-diagram-drawer/references/type-state-lifecycle.md +53 -0
  366. package/marketplace/plugins/litcodex/skills/lit-diagram-drawer/references/type-state.md +59 -0
  367. package/marketplace/plugins/litcodex/skills/lit-diagram-drawer/references/type-story-map.md +52 -0
  368. package/marketplace/plugins/litcodex/skills/lit-diagram-drawer/references/type-streamgraph.md +53 -0
  369. package/marketplace/plugins/litcodex/skills/lit-diagram-drawer/references/type-swimlane.md +52 -0
  370. package/marketplace/plugins/litcodex/skills/lit-diagram-drawer/references/type-timeline.md +52 -0
  371. package/marketplace/plugins/litcodex/skills/lit-diagram-drawer/references/type-tree-block-decomposition.md +57 -0
  372. package/marketplace/plugins/litcodex/skills/lit-diagram-drawer/references/type-tree.md +54 -0
  373. package/marketplace/plugins/litcodex/skills/lit-diagram-drawer/references/type-treemap.md +54 -0
  374. package/marketplace/plugins/litcodex/skills/lit-diagram-drawer/references/type-uml-class.md +52 -0
  375. package/marketplace/plugins/litcodex/skills/lit-diagram-drawer/references/type-venn.md +51 -0
  376. package/marketplace/plugins/litcodex/skills/lit-diagram-drawer/references/type-wardley.md +52 -0
  377. package/marketplace/plugins/litcodex/skills/lit-diagram-drawer/references/type-waterfall.md +54 -0
  378. package/marketplace/plugins/litcodex/skills/lit-diagram-drawer/references/verifier-guide.md +59 -0
  379. package/marketplace/plugins/litcodex/skills/lit-diagram-drawer/scripts/block-registry.mjs +43 -0
  380. package/marketplace/plugins/litcodex/skills/lit-diagram-drawer/scripts/brief-contract.mjs +94 -0
  381. package/marketplace/plugins/litcodex/skills/lit-diagram-drawer/scripts/check-visible-text.mjs +15 -0
  382. package/marketplace/plugins/litcodex/skills/lit-diagram-drawer/scripts/diagram-craft-rules.mjs +14 -0
  383. package/marketplace/plugins/litcodex/skills/lit-diagram-drawer/scripts/diagram-metrics.mjs +219 -0
  384. package/marketplace/plugins/litcodex/skills/lit-diagram-drawer/scripts/doctor.mjs +28 -0
  385. package/marketplace/plugins/litcodex/skills/lit-diagram-drawer/scripts/drawio-model.mjs +162 -0
  386. package/marketplace/plugins/litcodex/skills/lit-diagram-drawer/scripts/drawio-source.mjs +147 -0
  387. package/marketplace/plugins/litcodex/skills/lit-diagram-drawer/scripts/drawio-xml.mjs +148 -0
  388. package/marketplace/plugins/litcodex/skills/lit-diagram-drawer/scripts/export.mjs +122 -0
  389. package/marketplace/plugins/litcodex/skills/lit-diagram-drawer/scripts/import-common.mjs +85 -0
  390. package/marketplace/plugins/litcodex/skills/lit-diagram-drawer/scripts/import-drawio.mjs +48 -0
  391. package/marketplace/plugins/litcodex/skills/lit-diagram-drawer/scripts/import-excalidraw.mjs +234 -0
  392. package/marketplace/plugins/litcodex/skills/lit-diagram-drawer/scripts/import-mermaid.mjs +104 -0
  393. package/marketplace/plugins/litcodex/skills/lit-diagram-drawer/scripts/mermaid-common.mjs +115 -0
  394. package/marketplace/plugins/litcodex/skills/lit-diagram-drawer/scripts/mermaid-er.mjs +70 -0
  395. package/marketplace/plugins/litcodex/skills/lit-diagram-drawer/scripts/mermaid-flowchart.mjs +178 -0
  396. package/marketplace/plugins/litcodex/skills/lit-diagram-drawer/scripts/mermaid-sequence.mjs +137 -0
  397. package/marketplace/plugins/litcodex/skills/lit-diagram-drawer/scripts/mermaid-state.mjs +80 -0
  398. package/marketplace/plugins/litcodex/skills/lit-diagram-drawer/scripts/office-safety.mjs +54 -0
  399. package/marketplace/plugins/litcodex/skills/lit-diagram-drawer/scripts/runtime-probes.mjs +11 -0
  400. package/marketplace/plugins/litcodex/skills/lit-diagram-drawer/scripts/verify-all.mjs +85 -0
  401. package/marketplace/plugins/litcodex/skills/lit-diagram-drawer/scripts/verify-brief.mjs +16 -0
  402. package/marketplace/plugins/litcodex/skills/lit-diagram-drawer/scripts/verify-diagram.mjs +27 -0
  403. package/marketplace/plugins/litcodex/skills/lit-diagram-drawer/scripts/verify-motion.mjs +12 -0
  404. package/marketplace/plugins/litcodex/skills/lit-diagram-drawer/scripts/verify-type.mjs +48 -0
  405. package/marketplace/plugins/litcodex/skills/lit-diagram-drawer/scripts/visual-quality-geometry.mjs +226 -0
  406. package/marketplace/plugins/litcodex/skills/lit-diagram-drawer/scripts/visual-quality.mjs +147 -0
  407. package/marketplace/plugins/litcodex/skills/lit-docx/LICENSE +21 -0
  408. package/marketplace/plugins/litcodex/skills/lit-docx/NOTICE +3 -0
  409. package/marketplace/plugins/litcodex/skills/lit-docx/SKILL.md +102 -0
  410. package/marketplace/plugins/litcodex/skills/lit-docx/agents/openai.yaml +14 -0
  411. package/marketplace/plugins/litcodex/skills/lit-docx/references/frontmatter_schema.md +42 -0
  412. package/marketplace/plugins/litcodex/skills/lit-docx/references/journal_style_spec.md +17 -0
  413. package/marketplace/plugins/litcodex/skills/lit-docx/references/markdown_quality_checklist.md +37 -0
  414. package/marketplace/plugins/litcodex/skills/lit-docx/references/slop_phrase_list.yaml +58 -0
  415. package/marketplace/plugins/litcodex/skills/lit-docx/references/slop_rules.md +35 -0
  416. package/marketplace/plugins/litcodex/skills/lit-docx/runtime/requirements.in +5 -0
  417. package/marketplace/plugins/litcodex/skills/lit-docx/runtime/requirements.lock +20 -0
  418. package/marketplace/plugins/litcodex/skills/lit-docx/scripts/clean_markdown.py +95 -0
  419. package/marketplace/plugins/litcodex/skills/lit-docx/scripts/convert_md_to_docx.py +1046 -0
  420. package/marketplace/plugins/litcodex/skills/lit-docx/scripts/convert_md_to_pdf.py +281 -0
  421. package/marketplace/plugins/litcodex/skills/lit-docx/scripts/convert_pdf.py +130 -0
  422. package/marketplace/plugins/litcodex/skills/lit-docx/scripts/docx_craft.py +95 -0
  423. package/marketplace/plugins/litcodex/skills/lit-docx/scripts/edit_docx.py +297 -0
  424. package/marketplace/plugins/litcodex/skills/lit-docx/scripts/embed_images.py +78 -0
  425. package/marketplace/plugins/litcodex/skills/lit-docx/scripts/generate_docx_templates.py +491 -0
  426. package/marketplace/plugins/litcodex/skills/lit-docx/scripts/slop_lint.py +473 -0
  427. package/marketplace/plugins/litcodex/skills/lit-docx/scripts/visual_audit.py +41 -0
  428. package/marketplace/plugins/litcodex/skills/lit-docx/templates/docx/acs.docx +0 -0
  429. package/marketplace/plugins/litcodex/skills/lit-docx/templates/docx/elsevier.docx +0 -0
  430. package/marketplace/plugins/litcodex/skills/lit-docx/templates/docx/ieee.docx +0 -0
  431. package/marketplace/plugins/litcodex/skills/lit-docx/templates/docx/korean-generic.docx +0 -0
  432. package/marketplace/plugins/litcodex/skills/lit-docx/templates/docx/nature.docx +0 -0
  433. package/marketplace/plugins/litcodex/skills/lit-docx/templates/latex/acs/README.md +5 -0
  434. package/marketplace/plugins/litcodex/skills/lit-docx/templates/latex/acs/template.tex +37 -0
  435. package/marketplace/plugins/litcodex/skills/lit-docx/templates/latex/elsevier/README.md +5 -0
  436. package/marketplace/plugins/litcodex/skills/lit-docx/templates/latex/elsevier/template.tex +38 -0
  437. package/marketplace/plugins/litcodex/skills/lit-docx/templates/latex/ieee/README.md +5 -0
  438. package/marketplace/plugins/litcodex/skills/lit-docx/templates/latex/ieee/template.tex +37 -0
  439. package/marketplace/plugins/litcodex/skills/lit-docx/templates/latex/korean-generic/README.md +5 -0
  440. package/marketplace/plugins/litcodex/skills/lit-docx/templates/latex/korean-generic/template.tex +37 -0
  441. package/marketplace/plugins/litcodex/skills/lit-docx/templates/latex/nature/README.md +5 -0
  442. package/marketplace/plugins/litcodex/skills/lit-docx/templates/latex/nature/template.tex +37 -0
  443. package/marketplace/plugins/litcodex/skills/lit-docx/templates/registry.yaml +1366 -0
  444. package/marketplace/plugins/litcodex/skills/lit-humanizer/NOTICE +160 -0
  445. package/marketplace/plugins/litcodex/skills/lit-humanizer/SKILL.md +146 -0
  446. package/marketplace/plugins/litcodex/skills/lit-humanizer/always-on-rule.md +9 -0
  447. package/marketplace/plugins/litcodex/skills/lit-humanizer/assets/always-on-rule.md +9 -0
  448. package/marketplace/plugins/litcodex/skills/lit-humanizer/assets/report-skeleton.md +25 -0
  449. package/marketplace/plugins/litcodex/skills/lit-humanizer/assets/slide-text-skeleton.md +28 -0
  450. package/marketplace/plugins/litcodex/skills/lit-humanizer/bench/prompts.md +73 -0
  451. package/marketplace/plugins/litcodex/skills/lit-humanizer/examples/accessibility-note/after.md +7 -0
  452. package/marketplace/plugins/litcodex/skills/lit-humanizer/examples/accessibility-note/before.md +7 -0
  453. package/marketplace/plugins/litcodex/skills/lit-humanizer/examples/api-reference/after.md +9 -0
  454. package/marketplace/plugins/litcodex/skills/lit-humanizer/examples/api-reference/before.md +15 -0
  455. package/marketplace/plugins/litcodex/skills/lit-humanizer/examples/changelog/after.md +5 -0
  456. package/marketplace/plugins/litcodex/skills/lit-humanizer/examples/changelog/before.md +12 -0
  457. package/marketplace/plugins/litcodex/skills/lit-humanizer/examples/code-comments/after.md +10 -0
  458. package/marketplace/plugins/litcodex/skills/lit-humanizer/examples/code-comments/before.md +19 -0
  459. package/marketplace/plugins/litcodex/skills/lit-humanizer/examples/commit/after.md +5 -0
  460. package/marketplace/plugins/litcodex/skills/lit-humanizer/examples/commit/before.md +7 -0
  461. package/marketplace/plugins/litcodex/skills/lit-humanizer/examples/data-release/after.md +7 -0
  462. package/marketplace/plugins/litcodex/skills/lit-humanizer/examples/data-release/before.md +9 -0
  463. package/marketplace/plugins/litcodex/skills/lit-humanizer/examples/english-essay/after.md +5 -0
  464. package/marketplace/plugins/litcodex/skills/lit-humanizer/examples/english-essay/before.md +5 -0
  465. package/marketplace/plugins/litcodex/skills/lit-humanizer/examples/incident-update/after.md +7 -0
  466. package/marketplace/plugins/litcodex/skills/lit-humanizer/examples/incident-update/before.md +7 -0
  467. package/marketplace/plugins/litcodex/skills/lit-humanizer/examples/ko-essay/after.md +7 -0
  468. package/marketplace/plugins/litcodex/skills/lit-humanizer/examples/ko-essay/before.md +9 -0
  469. package/marketplace/plugins/litcodex/skills/lit-humanizer/examples/ko-report/after.md +9 -0
  470. package/marketplace/plugins/litcodex/skills/lit-humanizer/examples/ko-report/before.md +13 -0
  471. package/marketplace/plugins/litcodex/skills/lit-humanizer/examples/ko-slide/after.md +19 -0
  472. package/marketplace/plugins/litcodex/skills/lit-humanizer/examples/ko-slide/before.md +21 -0
  473. package/marketplace/plugins/litcodex/skills/lit-humanizer/examples/meeting-brief/after.md +9 -0
  474. package/marketplace/plugins/litcodex/skills/lit-humanizer/examples/meeting-brief/before.md +11 -0
  475. package/marketplace/plugins/litcodex/skills/lit-humanizer/examples/policy-faq/after.md +9 -0
  476. package/marketplace/plugins/litcodex/skills/lit-humanizer/examples/policy-faq/before.md +9 -0
  477. package/marketplace/plugins/litcodex/skills/lit-humanizer/examples/pr/after.md +15 -0
  478. package/marketplace/plugins/litcodex/skills/lit-humanizer/examples/pr/before.md +17 -0
  479. package/marketplace/plugins/litcodex/skills/lit-humanizer/examples/project-update/after.md +7 -0
  480. package/marketplace/plugins/litcodex/skills/lit-humanizer/examples/project-update/before.md +9 -0
  481. package/marketplace/plugins/litcodex/skills/lit-humanizer/examples/readme/after.md +12 -0
  482. package/marketplace/plugins/litcodex/skills/lit-humanizer/examples/readme/before.md +14 -0
  483. package/marketplace/plugins/litcodex/skills/lit-humanizer/examples/report/after.md +13 -0
  484. package/marketplace/plugins/litcodex/skills/lit-humanizer/examples/report/before.md +11 -0
  485. package/marketplace/plugins/litcodex/skills/lit-humanizer/examples/research-abstract/after.md +5 -0
  486. package/marketplace/plugins/litcodex/skills/lit-humanizer/examples/research-abstract/before.md +5 -0
  487. package/marketplace/plugins/litcodex/skills/lit-humanizer/examples/slides/after.md +19 -0
  488. package/marketplace/plugins/litcodex/skills/lit-humanizer/examples/slides/before.md +19 -0
  489. package/marketplace/plugins/litcodex/skills/lit-humanizer/examples/troubleshooting/after.md +11 -0
  490. package/marketplace/plugins/litcodex/skills/lit-humanizer/examples/troubleshooting/before.md +11 -0
  491. package/marketplace/plugins/litcodex/skills/lit-humanizer/motion-guide.md +123 -0
  492. package/marketplace/plugins/litcodex/skills/lit-humanizer/references/code-patterns.md +468 -0
  493. package/marketplace/plugins/litcodex/skills/lit-humanizer/references/deliverable-channels.md +111 -0
  494. package/marketplace/plugins/litcodex/skills/lit-humanizer/references/en-patterns-checklist.md +43 -0
  495. package/marketplace/plugins/litcodex/skills/lit-humanizer/references/en-patterns-content.md +243 -0
  496. package/marketplace/plugins/litcodex/skills/lit-humanizer/references/en-patterns-structure.md +375 -0
  497. package/marketplace/plugins/litcodex/skills/lit-humanizer/references/en-patterns.md +57 -0
  498. package/marketplace/plugins/litcodex/skills/lit-humanizer/references/ko-metrics.md +33 -0
  499. package/marketplace/plugins/litcodex/skills/lit-humanizer/references/ko-patterns-a-d.md +659 -0
  500. package/marketplace/plugins/litcodex/skills/lit-humanizer/references/ko-patterns-e-j.md +387 -0
  501. package/marketplace/plugins/litcodex/skills/lit-humanizer/references/ko-patterns.md +31 -0
  502. package/marketplace/plugins/litcodex/skills/lit-humanizer/references/prompt-injection-handling.md +7 -0
  503. package/marketplace/plugins/litcodex/skills/lit-humanizer/references/rewrite-playbook.md +54 -0
  504. package/marketplace/plugins/litcodex/skills/lit-humanizer/references/taxonomy.md +153 -0
  505. package/marketplace/plugins/litcodex/skills/lit-humanizer/rules.json +884 -0
  506. package/marketplace/plugins/litcodex/skills/lit-humanizer/scripts/core.mjs +208 -0
  507. package/marketplace/plugins/litcodex/skills/lit-humanizer/scripts/detect.mjs +83 -0
  508. package/marketplace/plugins/litcodex/skills/lit-humanizer/scripts/extract_office_text.py +89 -0
  509. package/marketplace/plugins/litcodex/skills/lit-humanizer/scripts/ko-metrics.mjs +124 -0
  510. package/marketplace/plugins/litcodex/skills/lit-humanizer/scripts/test-fixtures.mjs +155 -0
  511. package/marketplace/plugins/litcodex/skills/lit-humanizer/scripts/test-ko-metrics.mjs +27 -0
  512. package/marketplace/plugins/litcodex/skills/lit-init/references/deep-repository-map.md +6 -10
  513. package/marketplace/plugins/litcodex/skills/lit-loop/SKILL.md +95 -12
  514. package/marketplace/plugins/litcodex/skills/lit-loop/agents/openai.yaml +3 -2
  515. package/marketplace/plugins/litcodex/skills/lit-loop/references/full-workflow.md +10 -3
  516. package/marketplace/plugins/litcodex/skills/lit-pptx/NOTICE +7 -0
  517. package/marketplace/plugins/litcodex/skills/lit-pptx/SKILL.md +102 -0
  518. package/marketplace/plugins/litcodex/skills/lit-pptx/agents/analyst.md +49 -0
  519. package/marketplace/plugins/litcodex/skills/lit-pptx/agents/antithesis.md +59 -0
  520. package/marketplace/plugins/litcodex/skills/lit-pptx/agents/architect.md +44 -0
  521. package/marketplace/plugins/litcodex/skills/lit-pptx/agents/critic.md +42 -0
  522. package/marketplace/plugins/litcodex/skills/lit-pptx/agents/openai.yaml +14 -0
  523. package/marketplace/plugins/litcodex/skills/lit-pptx/agents/synthesizer.md +47 -0
  524. package/marketplace/plugins/litcodex/skills/lit-pptx/agents/thesis.md +33 -0
  525. package/marketplace/plugins/litcodex/skills/lit-pptx/assets/azure/circle-lg.png +0 -0
  526. package/marketplace/plugins/litcodex/skills/lit-pptx/assets/azure/circle-md.png +0 -0
  527. package/marketplace/plugins/litcodex/skills/lit-pptx/assets/azure/circle-sm.png +0 -0
  528. package/marketplace/plugins/litcodex/skills/lit-pptx/fonts/a2z-font/A2Z-Black.otf +0 -0
  529. package/marketplace/plugins/litcodex/skills/lit-pptx/fonts/a2z-font/A2Z-Bold.otf +0 -0
  530. package/marketplace/plugins/litcodex/skills/lit-pptx/fonts/a2z-font/A2Z-Light.otf +0 -0
  531. package/marketplace/plugins/litcodex/skills/lit-pptx/fonts/a2z-font/A2Z-Medium.otf +0 -0
  532. package/marketplace/plugins/litcodex/skills/lit-pptx/fonts/a2z-font/A2Z-Regular.otf +0 -0
  533. package/marketplace/plugins/litcodex/skills/lit-pptx/fonts/a2z-font/OFL.txt +94 -0
  534. package/marketplace/plugins/litcodex/skills/lit-pptx/fonts/a2z-font/SOURCE.md +29 -0
  535. package/marketplace/plugins/litcodex/skills/lit-pptx/pretendard-font/LICENSE.txt +94 -0
  536. package/marketplace/plugins/litcodex/skills/lit-pptx/pretendard-font/public/static/PretendardGOV-Bold.otf +0 -0
  537. package/marketplace/plugins/litcodex/skills/lit-pptx/pretendard-font/public/static/PretendardGOV-Regular.otf +0 -0
  538. package/marketplace/plugins/litcodex/skills/lit-pptx/references/anti-slop-checklist.md +71 -0
  539. package/marketplace/plugins/litcodex/skills/lit-pptx/references/authoring-guide.md +141 -0
  540. package/marketplace/plugins/litcodex/skills/lit-pptx/references/consensus-protocol.md +125 -0
  541. package/marketplace/plugins/litcodex/skills/lit-pptx/references/data-display-cookbook.md +45 -0
  542. package/marketplace/plugins/litcodex/skills/lit-pptx/references/design-system-azure.md +58 -0
  543. package/marketplace/plugins/litcodex/skills/lit-pptx/references/interview-protocol.md +113 -0
  544. package/marketplace/plugins/litcodex/skills/lit-pptx/runtime/package-lock.json +747 -0
  545. package/marketplace/plugins/litcodex/skills/lit-pptx/runtime/package.json +13 -0
  546. package/marketplace/plugins/litcodex/skills/lit-pptx/runtime/requirements.in +2 -0
  547. package/marketplace/plugins/litcodex/skills/lit-pptx/runtime/requirements.lock +14 -0
  548. package/marketplace/plugins/litcodex/skills/lit-pptx/scripts/check_ooxml.py +40 -0
  549. package/marketplace/plugins/litcodex/skills/lit-pptx/scripts/compile-deck.js +399 -0
  550. package/marketplace/plugins/litcodex/skills/lit-pptx/scripts/craft_extras.py +246 -0
  551. package/marketplace/plugins/litcodex/skills/lit-pptx/scripts/embed_fonts.py +201 -0
  552. package/marketplace/plugins/litcodex/skills/lit-pptx/scripts/inventory.py +95 -0
  553. package/marketplace/plugins/litcodex/skills/lit-pptx/scripts/learn_template.py +433 -0
  554. package/marketplace/plugins/litcodex/skills/lit-pptx/scripts/lib/derive-palette.js +176 -0
  555. package/marketplace/plugins/litcodex/skills/lit-pptx/scripts/lib/directive-parser.js +244 -0
  556. package/marketplace/plugins/litcodex/skills/lit-pptx/scripts/lib/font-map.js +79 -0
  557. package/marketplace/plugins/litcodex/skills/lit-pptx/scripts/lib/gen-bg.js +85 -0
  558. package/marketplace/plugins/litcodex/skills/lit-pptx/scripts/lib/gen-gradient-assets.js +36 -0
  559. package/marketplace/plugins/litcodex/skills/lit-pptx/scripts/lib/layout-resolver.js +734 -0
  560. package/marketplace/plugins/litcodex/skills/lit-pptx/scripts/lib/markdown-loader.js +136 -0
  561. package/marketplace/plugins/litcodex/skills/lit-pptx/scripts/lib/render-adapter-html.js +358 -0
  562. package/marketplace/plugins/litcodex/skills/lit-pptx/scripts/lib/render-adapter-pptx.js +1885 -0
  563. package/marketplace/plugins/litcodex/skills/lit-pptx/scripts/lib/slide-ast.js +517 -0
  564. package/marketplace/plugins/litcodex/skills/lit-pptx/scripts/lib/spec-validator.js +94 -0
  565. package/marketplace/plugins/litcodex/skills/lit-pptx/scripts/lib/template-registry.js +355 -0
  566. package/marketplace/plugins/litcodex/skills/lit-pptx/scripts/office-run.mjs +137 -0
  567. package/marketplace/plugins/litcodex/skills/lit-pptx/scripts/package.json +1 -0
  568. package/marketplace/plugins/litcodex/skills/lit-pptx/scripts/qa_deck.py +795 -0
  569. package/marketplace/plugins/litcodex/skills/lit-pptx/scripts/validate_pptx.py +206 -0
  570. package/marketplace/plugins/litcodex/skills/lit-pptx/specs/markdown-slide-spec-v1.md +251 -0
  571. package/marketplace/plugins/litcodex/skills/lit-pptx/specs/markdown-slide-spec-v2.md +207 -0
  572. package/marketplace/plugins/litcodex/skills/lit-pptx/specs/slide-ast-v1.schema.json +229 -0
  573. package/marketplace/plugins/litcodex/skills/lit-pptx/specs/slide-ast-v2.schema.json +144 -0
  574. package/marketplace/plugins/litcodex/skills/lit-pptx/specs/template-enrollment-contract.md +379 -0
  575. package/marketplace/plugins/litcodex/skills/lit-pptx/templates/bauhaus_light.css +4 -0
  576. package/marketplace/plugins/litcodex/skills/lit-pptx/templates/boilerplate_professional.css +508 -0
  577. package/marketplace/plugins/litcodex/skills/lit-pptx/templates/enrolled/AZURE-A2Z/capabilities.yaml +146 -0
  578. package/marketplace/plugins/litcodex/skills/lit-pptx/templates/enrolled/AZURE-A2Z/layout-mapping.yaml +454 -0
  579. package/marketplace/plugins/litcodex/skills/lit-pptx/templates/enrolled/AZURE-A2Z/template.yaml +37 -0
  580. package/marketplace/plugins/litcodex/skills/lit-pptx/templates/enrolled/AZURE-PRO/capabilities.yaml +154 -0
  581. package/marketplace/plugins/litcodex/skills/lit-pptx/templates/enrolled/AZURE-PRO/layout-mapping.yaml +464 -0
  582. package/marketplace/plugins/litcodex/skills/lit-pptx/templates/enrolled/AZURE-PRO/template.yaml +37 -0
  583. package/marketplace/plugins/litcodex/skills/lit-pptx/templates/enrolled/BOILERPLATE-A2Z/capabilities.yaml +179 -0
  584. package/marketplace/plugins/litcodex/skills/lit-pptx/templates/enrolled/BOILERPLATE-A2Z/layout-mapping.yaml +299 -0
  585. package/marketplace/plugins/litcodex/skills/lit-pptx/templates/enrolled/BOILERPLATE-A2Z/template.yaml +45 -0
  586. package/marketplace/plugins/litcodex/skills/lit-pptx/templates/enrolled/BOILERPLATE-PRETENDARD/capabilities.yaml +181 -0
  587. package/marketplace/plugins/litcodex/skills/lit-pptx/templates/enrolled/BOILERPLATE-PRETENDARD/layout-mapping.yaml +299 -0
  588. package/marketplace/plugins/litcodex/skills/lit-pptx/templates/enrolled/BOILERPLATE-PRETENDARD/template.yaml +44 -0
  589. package/marketplace/plugins/litcodex/skills/lit-scientific-visualization/SKILL.md +2 -0
  590. package/marketplace/plugins/litcodex/skills/lit-typographic-motion/SKILL.md +73 -0
  591. package/marketplace/plugins/litcodex/skills/lit-typographic-motion/agents/openai.yaml +15 -0
  592. package/marketplace/plugins/litcodex/skills/lit-typographic-motion/engine/NOTICE +23 -0
  593. package/marketplace/plugins/litcodex/skills/lit-typographic-motion/engine/THIRD_PARTY_NOTICES +32 -0
  594. package/marketplace/plugins/litcodex/skills/lit-typographic-motion/engine/browser-app.js +735 -0
  595. package/marketplace/plugins/litcodex/skills/lit-typographic-motion/engine/completion.mjs +9 -0
  596. package/marketplace/plugins/litcodex/skills/lit-typographic-motion/engine/compose.mjs +255 -0
  597. package/marketplace/plugins/litcodex/skills/lit-typographic-motion/engine/constants.mjs +264 -0
  598. package/marketplace/plugins/litcodex/skills/lit-typographic-motion/engine/driver.mjs +169 -0
  599. package/marketplace/plugins/litcodex/skills/lit-typographic-motion/engine/encode.mjs +163 -0
  600. package/marketplace/plugins/litcodex/skills/lit-typographic-motion/engine/flash.mjs +251 -0
  601. package/marketplace/plugins/litcodex/skills/lit-typographic-motion/engine/fonts.mjs +169 -0
  602. package/marketplace/plugins/litcodex/skills/lit-typographic-motion/engine/gate.mjs +466 -0
  603. package/marketplace/plugins/litcodex/skills/lit-typographic-motion/engine/image.mjs +267 -0
  604. package/marketplace/plugins/litcodex/skills/lit-typographic-motion/engine/look.mjs +182 -0
  605. package/marketplace/plugins/litcodex/skills/lit-typographic-motion/engine/passes.mjs +181 -0
  606. package/marketplace/plugins/litcodex/skills/lit-typographic-motion/engine/presets.mjs +110 -0
  607. package/marketplace/plugins/litcodex/skills/lit-typographic-motion/engine/report.mjs +56 -0
  608. package/marketplace/plugins/litcodex/skills/lit-typographic-motion/engine/runtime.mjs +287 -0
  609. package/marketplace/plugins/litcodex/skills/lit-typographic-motion/engine/scenes.mjs +309 -0
  610. package/marketplace/plugins/litcodex/skills/lit-typographic-motion/engine/sound.mjs +463 -0
  611. package/marketplace/plugins/litcodex/skills/lit-typographic-motion/engine/stage-gate.mjs +155 -0
  612. package/marketplace/plugins/litcodex/skills/lit-typographic-motion/engine/stage-init.js +215 -0
  613. package/marketplace/plugins/litcodex/skills/lit-typographic-motion/engine/stage-kit.js +515 -0
  614. package/marketplace/plugins/litcodex/skills/lit-typographic-motion/engine/stage-qa.js +147 -0
  615. package/marketplace/plugins/litcodex/skills/lit-typographic-motion/engine/stage-qa.mjs +243 -0
  616. package/marketplace/plugins/litcodex/skills/lit-typographic-motion/engine/stage-render.mjs +335 -0
  617. package/marketplace/plugins/litcodex/skills/lit-typographic-motion/engine/stage-worker.mjs +26 -0
  618. package/marketplace/plugins/litcodex/skills/lit-typographic-motion/engine/stage.mjs +311 -0
  619. package/marketplace/plugins/litcodex/skills/lit-typographic-motion/engine/stroke.mjs +264 -0
  620. package/marketplace/plugins/litcodex/skills/lit-typographic-motion/engine/timeline.mjs +153 -0
  621. package/marketplace/plugins/litcodex/skills/lit-typographic-motion/engine/treatment.mjs +280 -0
  622. package/marketplace/plugins/litcodex/skills/lit-typographic-motion/engine/type.mjs +234 -0
  623. package/marketplace/plugins/litcodex/skills/lit-typographic-motion/engine/util.mjs +198 -0
  624. package/marketplace/plugins/litcodex/skills/lit-typographic-motion/fonts/archivo/Archivo-w100-wt400.ttf +0 -0
  625. package/marketplace/plugins/litcodex/skills/lit-typographic-motion/fonts/archivo/Archivo-w100-wt700.ttf +0 -0
  626. package/marketplace/plugins/litcodex/skills/lit-typographic-motion/fonts/archivo/Archivo-w100-wt900.ttf +0 -0
  627. package/marketplace/plugins/litcodex/skills/lit-typographic-motion/fonts/archivo/Archivo-w125-wt400.ttf +0 -0
  628. package/marketplace/plugins/litcodex/skills/lit-typographic-motion/fonts/archivo/Archivo-w125-wt700.ttf +0 -0
  629. package/marketplace/plugins/litcodex/skills/lit-typographic-motion/fonts/archivo/Archivo-w125-wt900.ttf +0 -0
  630. package/marketplace/plugins/litcodex/skills/lit-typographic-motion/fonts/archivo/Archivo-w75-wt400.ttf +0 -0
  631. package/marketplace/plugins/litcodex/skills/lit-typographic-motion/fonts/archivo/Archivo-w75-wt700.ttf +0 -0
  632. package/marketplace/plugins/litcodex/skills/lit-typographic-motion/fonts/archivo/Archivo-w75-wt900.ttf +0 -0
  633. package/marketplace/plugins/litcodex/skills/lit-typographic-motion/fonts/archivo/OFL.txt +93 -0
  634. package/marketplace/plugins/litcodex/skills/lit-typographic-motion/fonts/archivo/SHA256SUMS +16 -0
  635. package/marketplace/plugins/litcodex/skills/lit-typographic-motion/fonts/stroke/CREDITS +6 -0
  636. package/marketplace/plugins/litcodex/skills/lit-typographic-motion/fonts/stroke/EMSAllure.svg +216 -0
  637. package/marketplace/plugins/litcodex/skills/lit-typographic-motion/fonts/stroke/EMSFelix.svg +216 -0
  638. package/marketplace/plugins/litcodex/skills/lit-typographic-motion/fonts/stroke/EMSOsmotron.svg +216 -0
  639. package/marketplace/plugins/litcodex/skills/lit-typographic-motion/fonts/stroke/EMSReadability.svg +216 -0
  640. package/marketplace/plugins/litcodex/skills/lit-typographic-motion/fonts/stroke/EMSTech.svg +217 -0
  641. package/marketplace/plugins/litcodex/skills/lit-typographic-motion/fonts/stroke/OFL.txt +86 -0
  642. package/marketplace/plugins/litcodex/skills/lit-typographic-motion/fonts/vt323/OFL.txt +93 -0
  643. package/marketplace/plugins/litcodex/skills/lit-typographic-motion/fonts/vt323/VT323-Regular.ttf +0 -0
  644. package/marketplace/plugins/litcodex/skills/lit-typographic-motion/references/quality-gate.md +137 -0
  645. package/marketplace/plugins/litcodex/skills/lit-typographic-motion/references/runtime.md +68 -0
  646. package/marketplace/plugins/litcodex/skills/lit-typographic-motion/references/scene-author.md +57 -0
  647. package/marketplace/plugins/litcodex/skills/lit-typographic-motion/references/stage.md +175 -0
  648. package/marketplace/plugins/litcodex/skills/lit-typographic-motion/references/style-bibles.md +103 -0
  649. package/marketplace/plugins/litcodex/skills/lit-typographic-motion/references/treatment.md +119 -0
  650. package/marketplace/plugins/litcodex/skills/lit-typographic-motion/references/type-and-timing.md +83 -0
  651. package/marketplace/plugins/litcodex/skills/lit-typographic-motion/runtime/package-lock.json +59 -0
  652. package/marketplace/plugins/litcodex/skills/lit-typographic-motion/runtime/package.json +1 -0
  653. package/marketplace/plugins/litcodex/skills/lit-typographic-motion/runtime/requirements-audio.txt +1082 -0
  654. package/marketplace/plugins/litcodex/skills/lit-typographic-motion/runtime/word-timing-models.json +11 -0
  655. package/marketplace/plugins/litcodex/skills/lit-typographic-motion/scripts/beat-grid.py +50 -0
  656. package/marketplace/plugins/litcodex/skills/lit-typographic-motion/scripts/render.mjs +807 -0
  657. package/marketplace/plugins/litcodex/skills/lit-typographic-motion/scripts/runtime.mjs +43 -0
  658. package/marketplace/plugins/litcodex/skills/litresearch/SKILL.md +28 -41
  659. package/marketplace/plugins/litcodex/skills/litwork/SKILL.md +8 -0
  660. package/marketplace/plugins/litcodex/skills/litwork/references/delivery-playbook.md +6 -0
  661. package/node_modules/@litcodex/lit-loop/directive.md +90 -5
  662. package/node_modules/@litcodex/lit-loop/directives/lit-comprehend.md +13 -17
  663. package/node_modules/@litcodex/lit-loop/directives/litwork.md +8 -0
  664. package/node_modules/@litcodex/lit-loop/dist/codex-hook.js +8 -1
  665. package/node_modules/@litcodex/lit-loop/dist/motion-route.d.ts +18 -0
  666. package/node_modules/@litcodex/lit-loop/dist/motion-route.js +95 -0
  667. package/node_modules/@litcodex/lit-loop/dist/skill-renames.d.ts +3 -1
  668. package/node_modules/@litcodex/lit-loop/dist/skill-renames.js +10 -5
  669. package/node_modules/@litcodex/lit-loop/package.json +1 -1
  670. package/node_modules/@litcodex/lit-loop/skills/browser-drive/SKILL.md +4 -0
  671. package/node_modules/@litcodex/lit-loop/skills/browser-drive/scripts/capability-probe.mjs +25 -2
  672. package/node_modules/@litcodex/lit-loop/skills/lit-comprehend/SKILL.md +45 -53
  673. package/node_modules/@litcodex/lit-loop/skills/lit-humanizer/NOTICE +160 -0
  674. package/node_modules/@litcodex/lit-loop/skills/lit-humanizer/SKILL.md +146 -0
  675. package/node_modules/@litcodex/lit-loop/skills/lit-humanizer/always-on-rule.md +9 -0
  676. package/node_modules/@litcodex/lit-loop/skills/lit-humanizer/assets/always-on-rule.md +9 -0
  677. package/node_modules/@litcodex/lit-loop/skills/lit-humanizer/assets/report-skeleton.md +25 -0
  678. package/node_modules/@litcodex/lit-loop/skills/lit-humanizer/assets/slide-text-skeleton.md +28 -0
  679. package/node_modules/@litcodex/lit-loop/skills/lit-humanizer/bench/prompts.md +73 -0
  680. package/node_modules/@litcodex/lit-loop/skills/lit-humanizer/examples/accessibility-note/after.md +7 -0
  681. package/node_modules/@litcodex/lit-loop/skills/lit-humanizer/examples/accessibility-note/before.md +7 -0
  682. package/node_modules/@litcodex/lit-loop/skills/lit-humanizer/examples/api-reference/after.md +9 -0
  683. package/node_modules/@litcodex/lit-loop/skills/lit-humanizer/examples/api-reference/before.md +15 -0
  684. package/node_modules/@litcodex/lit-loop/skills/lit-humanizer/examples/changelog/after.md +5 -0
  685. package/node_modules/@litcodex/lit-loop/skills/lit-humanizer/examples/changelog/before.md +12 -0
  686. package/node_modules/@litcodex/lit-loop/skills/lit-humanizer/examples/code-comments/after.md +10 -0
  687. package/node_modules/@litcodex/lit-loop/skills/lit-humanizer/examples/code-comments/before.md +19 -0
  688. package/node_modules/@litcodex/lit-loop/skills/lit-humanizer/examples/commit/after.md +5 -0
  689. package/node_modules/@litcodex/lit-loop/skills/lit-humanizer/examples/commit/before.md +7 -0
  690. package/node_modules/@litcodex/lit-loop/skills/lit-humanizer/examples/data-release/after.md +7 -0
  691. package/node_modules/@litcodex/lit-loop/skills/lit-humanizer/examples/data-release/before.md +9 -0
  692. package/node_modules/@litcodex/lit-loop/skills/lit-humanizer/examples/english-essay/after.md +5 -0
  693. package/node_modules/@litcodex/lit-loop/skills/lit-humanizer/examples/english-essay/before.md +5 -0
  694. package/node_modules/@litcodex/lit-loop/skills/lit-humanizer/examples/incident-update/after.md +7 -0
  695. package/node_modules/@litcodex/lit-loop/skills/lit-humanizer/examples/incident-update/before.md +7 -0
  696. package/node_modules/@litcodex/lit-loop/skills/lit-humanizer/examples/ko-essay/after.md +7 -0
  697. package/node_modules/@litcodex/lit-loop/skills/lit-humanizer/examples/ko-essay/before.md +9 -0
  698. package/node_modules/@litcodex/lit-loop/skills/lit-humanizer/examples/ko-report/after.md +9 -0
  699. package/node_modules/@litcodex/lit-loop/skills/lit-humanizer/examples/ko-report/before.md +13 -0
  700. package/node_modules/@litcodex/lit-loop/skills/lit-humanizer/examples/ko-slide/after.md +19 -0
  701. package/node_modules/@litcodex/lit-loop/skills/lit-humanizer/examples/ko-slide/before.md +21 -0
  702. package/node_modules/@litcodex/lit-loop/skills/lit-humanizer/examples/meeting-brief/after.md +9 -0
  703. package/node_modules/@litcodex/lit-loop/skills/lit-humanizer/examples/meeting-brief/before.md +11 -0
  704. package/node_modules/@litcodex/lit-loop/skills/lit-humanizer/examples/policy-faq/after.md +9 -0
  705. package/node_modules/@litcodex/lit-loop/skills/lit-humanizer/examples/policy-faq/before.md +9 -0
  706. package/node_modules/@litcodex/lit-loop/skills/lit-humanizer/examples/pr/after.md +15 -0
  707. package/node_modules/@litcodex/lit-loop/skills/lit-humanizer/examples/pr/before.md +17 -0
  708. package/node_modules/@litcodex/lit-loop/skills/lit-humanizer/examples/project-update/after.md +7 -0
  709. package/node_modules/@litcodex/lit-loop/skills/lit-humanizer/examples/project-update/before.md +9 -0
  710. package/node_modules/@litcodex/lit-loop/skills/lit-humanizer/examples/readme/after.md +12 -0
  711. package/node_modules/@litcodex/lit-loop/skills/lit-humanizer/examples/readme/before.md +14 -0
  712. package/node_modules/@litcodex/lit-loop/skills/lit-humanizer/examples/report/after.md +13 -0
  713. package/node_modules/@litcodex/lit-loop/skills/lit-humanizer/examples/report/before.md +11 -0
  714. package/node_modules/@litcodex/lit-loop/skills/lit-humanizer/examples/research-abstract/after.md +5 -0
  715. package/node_modules/@litcodex/lit-loop/skills/lit-humanizer/examples/research-abstract/before.md +5 -0
  716. package/node_modules/@litcodex/lit-loop/skills/lit-humanizer/examples/slides/after.md +19 -0
  717. package/node_modules/@litcodex/lit-loop/skills/lit-humanizer/examples/slides/before.md +19 -0
  718. package/node_modules/@litcodex/lit-loop/skills/lit-humanizer/examples/troubleshooting/after.md +11 -0
  719. package/node_modules/@litcodex/lit-loop/skills/lit-humanizer/examples/troubleshooting/before.md +11 -0
  720. package/node_modules/@litcodex/lit-loop/skills/lit-humanizer/motion-guide.md +123 -0
  721. package/node_modules/@litcodex/lit-loop/skills/lit-humanizer/references/code-patterns.md +468 -0
  722. package/node_modules/@litcodex/lit-loop/skills/lit-humanizer/references/deliverable-channels.md +111 -0
  723. package/node_modules/@litcodex/lit-loop/skills/lit-humanizer/references/en-patterns-checklist.md +43 -0
  724. package/node_modules/@litcodex/lit-loop/skills/lit-humanizer/references/en-patterns-content.md +243 -0
  725. package/node_modules/@litcodex/lit-loop/skills/lit-humanizer/references/en-patterns-structure.md +375 -0
  726. package/node_modules/@litcodex/lit-loop/skills/lit-humanizer/references/en-patterns.md +57 -0
  727. package/node_modules/@litcodex/lit-loop/skills/lit-humanizer/references/ko-metrics.md +33 -0
  728. package/node_modules/@litcodex/lit-loop/skills/lit-humanizer/references/ko-patterns-a-d.md +659 -0
  729. package/node_modules/@litcodex/lit-loop/skills/lit-humanizer/references/ko-patterns-e-j.md +387 -0
  730. package/node_modules/@litcodex/lit-loop/skills/lit-humanizer/references/ko-patterns.md +31 -0
  731. package/node_modules/@litcodex/lit-loop/skills/lit-humanizer/references/prompt-injection-handling.md +7 -0
  732. package/node_modules/@litcodex/lit-loop/skills/lit-humanizer/references/rewrite-playbook.md +54 -0
  733. package/node_modules/@litcodex/lit-loop/skills/lit-humanizer/references/taxonomy.md +153 -0
  734. package/node_modules/@litcodex/lit-loop/skills/lit-humanizer/rules.json +884 -0
  735. package/node_modules/@litcodex/lit-loop/skills/lit-humanizer/scripts/core.mjs +208 -0
  736. package/node_modules/@litcodex/lit-loop/skills/lit-humanizer/scripts/detect.mjs +83 -0
  737. package/node_modules/@litcodex/lit-loop/skills/lit-humanizer/scripts/extract_office_text.py +89 -0
  738. package/node_modules/@litcodex/lit-loop/skills/lit-humanizer/scripts/ko-metrics.mjs +124 -0
  739. package/node_modules/@litcodex/lit-loop/skills/lit-humanizer/scripts/test-fixtures.mjs +155 -0
  740. package/node_modules/@litcodex/lit-loop/skills/lit-humanizer/scripts/test-ko-metrics.mjs +27 -0
  741. package/node_modules/@litcodex/lit-loop/skills/lit-init/references/deep-repository-map.md +6 -10
  742. package/node_modules/@litcodex/lit-loop/skills/lit-loop/SKILL.md +95 -12
  743. package/node_modules/@litcodex/lit-loop/skills/lit-scientific-visualization/SKILL.md +2 -0
  744. package/node_modules/@litcodex/lit-loop/skills/litresearch/SKILL.md +28 -41
  745. package/node_modules/@litcodex/lit-loop/skills/litwork/SKILL.md +8 -0
  746. package/package.json +3 -3
  747. package/readme-assets/ab-simple/assets/s11-baseline-desktop.webp +0 -0
  748. package/readme-assets/ab-simple/assets/s11-baseline-phone.webp +0 -0
  749. package/readme-assets/ab-simple/assets/s11-lit-desktop.webp +0 -0
  750. package/readme-assets/ab-simple/assets/s11-lit-phone.webp +0 -0
  751. package/readme-assets/ab-simple/assets/s3-baseline-desktop.webp +0 -0
  752. package/readme-assets/ab-simple/assets/s3-baseline-phone.webp +0 -0
  753. package/readme-assets/ab-simple/assets/s3-lit-desktop.webp +0 -0
  754. package/readme-assets/ab-simple/assets/s3-lit-phone.webp +0 -0
  755. package/readme-assets/ab-simple/assets/s4-baseline-desktop.webp +0 -0
  756. package/readme-assets/ab-simple/assets/s4-baseline-phone.webp +0 -0
  757. package/readme-assets/ab-simple/assets/s4-lit-desktop.webp +0 -0
  758. package/readme-assets/ab-simple/assets/s4-lit-phone.webp +0 -0
  759. package/readme-assets/ab-simple/assets/s5-baseline-slides.webp +0 -0
  760. package/readme-assets/ab-simple/assets/s5-lit-slides.webp +0 -0
  761. package/readme-assets/ab-simple/assets/s7-lit-diagram.webp +0 -0
  762. package/readme-assets/ab-simple/assets/s8-baseline-slides.webp +0 -0
  763. package/readme-assets/ab-simple/assets/s8-lit-slides.webp +0 -0
  764. package/readme-assets/ab-simple/assets/s9-lit-pages.webp +0 -0
  765. package/readme-assets/badge-version.svg +1 -1
  766. package/readme-assets/cover-motion-still.webp +0 -0
  767. package/readme-assets/cover-motion.webp +0 -0
  768. package/readme-assets/skills/autoconference.webp +0 -0
  769. package/readme-assets/skills/automatic-checks.webp +0 -0
  770. package/readme-assets/skills/autoresearch.webp +0 -0
  771. package/readme-assets/skills/browser-drive.webp +0 -0
  772. package/readme-assets/skills/coding-session-audit.webp +0 -0
  773. package/readme-assets/skills/debugging.webp +0 -0
  774. package/readme-assets/skills/deep-interview.webp +0 -0
  775. package/readme-assets/skills/frontend-ui-ux.webp +0 -0
  776. package/readme-assets/skills/lit-burnoff-file.webp +0 -0
  777. package/readme-assets/skills/lit-burnoff.webp +0 -0
  778. package/readme-assets/skills/lit-code.webp +0 -0
  779. package/readme-assets/skills/lit-commit.webp +0 -0
  780. package/readme-assets/skills/lit-comprehend.webp +0 -0
  781. package/readme-assets/skills/lit-crucible.webp +0 -0
  782. package/readme-assets/skills/lit-diagram-drawer.webp +0 -0
  783. package/readme-assets/skills/lit-docx.webp +0 -0
  784. package/readme-assets/skills/lit-fetch.webp +0 -0
  785. package/readme-assets/skills/lit-handoff.webp +0 -0
  786. package/readme-assets/skills/lit-humanizer.webp +0 -0
  787. package/readme-assets/skills/lit-init.webp +0 -0
  788. package/readme-assets/skills/lit-loop.webp +0 -0
  789. package/readme-assets/skills/lit-plan.webp +0 -0
  790. package/readme-assets/skills/lit-pptx.webp +0 -0
  791. package/readme-assets/skills/lit-recap.webp +0 -0
  792. package/readme-assets/skills/lit-scientific-visualization.webp +0 -0
  793. package/readme-assets/skills/lit-team.webp +0 -0
  794. package/readme-assets/skills/lit-typographic-motion.webp +0 -0
  795. package/readme-assets/skills/litcodex-contribute-bug-fix.webp +0 -0
  796. package/readme-assets/skills/litcodex-doctor.webp +0 -0
  797. package/readme-assets/skills/litcodex-report-bug.webp +0 -0
  798. package/readme-assets/skills/litgoal.webp +0 -0
  799. package/readme-assets/skills/litresearch.webp +0 -0
  800. package/readme-assets/skills/litwork.webp +0 -0
  801. package/readme-assets/skills/lsp-setup.webp +0 -0
  802. package/readme-assets/skills/readme-studio.webp +0 -0
  803. package/readme-assets/skills/refactor.webp +0 -0
  804. package/readme-assets/skills/review-work.webp +0 -0
  805. package/readme-assets/skills/start-approved-plan.webp +0 -0
  806. package/readme-assets/skills/structural-search.webp +0 -0
  807. package/readme-assets/skills/visual-qa.webp +0 -0
  808. package/readme-assets/skills/wikify.webp +0 -0
  809. package/marketplace/plugins/litcodex/skills/lit-korean/SKILL.md +0 -206
  810. package/marketplace/plugins/litcodex/skills/lit-korean/references/prompt-injection-handling.md +0 -23
  811. package/marketplace/plugins/litcodex/skills/lit-korean/references/quick-rules.md +0 -38
  812. package/marketplace/plugins/litcodex/skills/lit-korean/references/safety-checklist.md +0 -38
  813. package/node_modules/@litcodex/lit-loop/skills/lit-korean/SKILL.md +0 -206
  814. package/node_modules/@litcodex/lit-loop/skills/lit-korean/references/prompt-injection-handling.md +0 -23
  815. package/node_modules/@litcodex/lit-loop/skills/lit-korean/references/quick-rules.md +0 -38
  816. package/node_modules/@litcodex/lit-loop/skills/lit-korean/references/safety-checklist.md +0 -38
@@ -0,0 +1,169 @@
1
+ // Font catalogue: where every face the presets use comes from, its pinned sha256, and its licence.
2
+ // Bundled faces ship in this skill; reused faces are LitCodex's own lit-pptx Hangul pair, checked
3
+ // against LitCodex's recorded hashes (MO-A-55); fetched faces arrive only through
4
+ // `litcodex motion-runtime install` and are read from the product cache (MO-A-42, MO-FT-03a).
5
+ import { createHash } from "node:crypto";
6
+ import { existsSync, readFileSync } from "node:fs";
7
+ import { dirname, join, resolve } from "node:path";
8
+ import { fileURLToPath } from "node:url";
9
+
10
+ export const SKILL_ROOT = resolve(dirname(fileURLToPath(import.meta.url)), "..");
11
+ const PPTX_FONTS = "../lit-pptx/pretendard-font";
12
+
13
+ const archivo = [75, 100, 125].flatMap((width) =>
14
+ [400, 700, 900].map((weight) => ({
15
+ key: `archivo-w${width}-${weight}`,
16
+ family: "Archivo",
17
+ width,
18
+ weight,
19
+ source: "bundled",
20
+ path: `fonts/archivo/Archivo-w${width}-wt${weight}.ttf`,
21
+ licence: ["fonts/archivo/OFL.txt"],
22
+ })),
23
+ );
24
+ const ARCHIVO_SHA = {
25
+ "archivo-w75-400": "4dc4b1a99bdeae009897c761bce7e1143efff543525bde91020d4493e33921ba",
26
+ "archivo-w75-700": "55424d853a7b020ccf975fa40a6c9e05d817529c8721e7af6d009fd25c907fc7",
27
+ "archivo-w75-900": "8726c4b11823235e452e53d2f1edcb7f6a8357497ca8a60c3c97ba837bd665ec",
28
+ "archivo-w100-400": "bb6a38015aa4f22aaa7eb0b11aae2fd91a0fab1cb9affaed260ee984c3723e6f",
29
+ "archivo-w100-700": "7e32f8857f5f4744781d501fd83afbc0587996bff3c2b78c0ed179a42fa51c94",
30
+ "archivo-w100-900": "b83eae2d3a2ec48a4fe5d3e34f9bb6653d2182cb998b7a99af231dd07ee54fcd",
31
+ "archivo-w125-400": "608ae8fd89513d91c22e88e45b418d2a29589f32dc9bc5373105e602369c5d09",
32
+ "archivo-w125-700": "1858ad005ef543cccaba015e2c46cd8001771bc2132b1d1f23123dca2a0c1583",
33
+ "archivo-w125-900": "f7f74623bee69fa2de1efe7d3fe25c2e8856fc3e0c62d7a86a2e36c7608462d0",
34
+ };
35
+
36
+ export const FONTS = Object.freeze([
37
+ ...archivo.map((entry) => ({ ...entry, sha256: ARCHIVO_SHA[entry.key] })),
38
+ {
39
+ key: "pretendard-400",
40
+ family: "PretendardGOV",
41
+ weight: 400,
42
+ source: "reuse",
43
+ path: `${PPTX_FONTS}/public/static/PretendardGOV-Regular.otf`,
44
+ sha256: "90cba0940a9f9719be561238dca3773ab9810a2ce1842f781cfad624e137ded0",
45
+ licence: [`${PPTX_FONTS}/LICENSE.txt`],
46
+ },
47
+ {
48
+ key: "pretendard-700",
49
+ family: "PretendardGOV",
50
+ weight: 700,
51
+ source: "reuse",
52
+ path: `${PPTX_FONTS}/public/static/PretendardGOV-Bold.otf`,
53
+ sha256: "9ff5e6551c0e11bb4e433f9d7a6a74c563b977a6caa523eb19249c0a4072ca86",
54
+ licence: [`${PPTX_FONTS}/LICENSE.txt`],
55
+ },
56
+ {
57
+ key: "vt323",
58
+ family: "VT323",
59
+ weight: 400,
60
+ source: "bundled",
61
+ path: "fonts/vt323/VT323-Regular.ttf",
62
+ sha256: "cf4de751ada78ceac033dbe16a687742939995b77bc2a052ae17a4957958594d",
63
+ licence: ["fonts/vt323/OFL.txt"],
64
+ },
65
+ {
66
+ key: "galmuri9",
67
+ family: "Galmuri9",
68
+ weight: 400,
69
+ source: "cache",
70
+ path: "fonts/Galmuri9.ttf",
71
+ sha256: "5cb68052ee0a15571747e91c20f145e24b51bb459c6cd58226fafee78d9c0b16",
72
+ licence: ["fonts/licenses/Galmuri-ofl.md"],
73
+ },
74
+ {
75
+ key: "meslo",
76
+ family: "MesloLGS NF",
77
+ weight: 400,
78
+ source: "cache",
79
+ path: "fonts/MesloLGS NF Regular.ttf",
80
+ sha256: "d97946186e97f8d7c0139e8983abf40a1d2d086924f2c5dbf1c29bd8f2c6e57d",
81
+ licence: ["fonts/licenses/MesloLGS-NF-License.txt", "fonts/licenses/Apache-2.0.txt", "fonts/licenses/DejaVu-LICENSE.txt"],
82
+ },
83
+ ]);
84
+
85
+ export const STROKE_FONTS = Object.freeze([
86
+ { key: "ems-allure", file: "fonts/stroke/EMSAllure.svg", connected: true, sha256: "55ed2de9c602229f32dd2784aae704023a5594eb8d208131f2552fae330a2a67" },
87
+ { key: "ems-felix", file: "fonts/stroke/EMSFelix.svg", connected: false, sha256: "e7b2463c6cb2a2cbef59db9b1f9f5a20a0ecd9158eeb8f01f2015c9e5be7dca4" },
88
+ { key: "ems-osmotron", file: "fonts/stroke/EMSOsmotron.svg", connected: false, sha256: "158b0f247a005ca5b6b8556f85684ad10cbb04c41ebbd394b9090c8ea2f16c52" },
89
+ { key: "ems-readability", file: "fonts/stroke/EMSReadability.svg", connected: false, sha256: "eebece4f2a47b9d3a8f40cab2b0f689ca60902997abd5c81064ef0d2a3a05522" },
90
+ { key: "ems-tech", file: "fonts/stroke/EMSTech.svg", connected: false, sha256: "7b5a420d4e16285213e7e2b1d187d086835c2dd7a7f64c5b8057434f082fc46f" },
91
+ ]);
92
+
93
+ // Pre-warm fetch list (MO-A-48): pinned URL, byte count and sha256 for each cached face and each
94
+ // licence text that travels with it. The render never fetches; it only verifies these bytes.
95
+ export const FETCHED = Object.freeze([
96
+ {
97
+ path: "fonts/Galmuri9.ttf",
98
+ url: "https://raw.githubusercontent.com/quiple/galmuri/v2.40.4/dist/Galmuri9.ttf",
99
+ bytes: 4649144,
100
+ sha256: "5cb68052ee0a15571747e91c20f145e24b51bb459c6cd58226fafee78d9c0b16",
101
+ },
102
+ {
103
+ path: "fonts/licenses/Galmuri-ofl.md",
104
+ url: "https://raw.githubusercontent.com/quiple/galmuri/v2.40.4/ofl.md",
105
+ sha256: "9a9e5a342c430c3fcf01a408b680f4405d5bf4ac659c931be35f8a1b27ea69c9",
106
+ },
107
+ {
108
+ path: "fonts/MesloLGS NF Regular.ttf",
109
+ url: "https://raw.githubusercontent.com/romkatv/powerlevel10k-media/145eb9fbc2f42ee408dacd9b22d8e6e0e553f83d/MesloLGS%20NF%20Regular.ttf",
110
+ bytes: 2594368,
111
+ sha256: "d97946186e97f8d7c0139e8983abf40a1d2d086924f2c5dbf1c29bd8f2c6e57d",
112
+ },
113
+ {
114
+ path: "fonts/licenses/MesloLGS-NF-License.txt",
115
+ url: "https://raw.githubusercontent.com/romkatv/powerlevel10k-media/145eb9fbc2f42ee408dacd9b22d8e6e0e553f83d/MesloLGS%20NF%20License.txt",
116
+ sha256: "0eb25f1a4e86320ceae5f650cb75e628117c3f575bc2e332bb13cd08c3be438e",
117
+ },
118
+ {
119
+ path: "fonts/licenses/Apache-2.0.txt",
120
+ url: "https://www.apache.org/licenses/LICENSE-2.0.txt",
121
+ sha256: "cfc7749b96f63bd31c3c42b5c471bf756814053e847c10f3eb003417bc523d30",
122
+ },
123
+ {
124
+ path: "fonts/licenses/DejaVu-LICENSE.txt",
125
+ url: "https://raw.githubusercontent.com/dejavu-fonts/dejavu-fonts/version_2_37/LICENSE",
126
+ sha256: "7a083b136e64d064794c3419751e5c7dd10d2f64c108fe5ba161eae5e5958a93",
127
+ },
128
+ ]);
129
+
130
+ /** Absolute path of a catalogue entry, given the product cache directory. */
131
+ export function fontPath(entry, cacheDir) {
132
+ return entry.source === "cache" ? join(cacheDir, entry.path) : join(SKILL_ROOT, entry.path);
133
+ }
134
+ export const fontEntry = (key) => FONTS.find((entry) => entry.key === key);
135
+
136
+ const digest = (bytes) => createHash("sha256").update(bytes).digest("hex");
137
+
138
+ /**
139
+ * Verify every face a preset needs (MO-A-48/55). Returns missing and mismatched items; a render
140
+ * turns any fault into exit 15 and never re-fetches.
141
+ */
142
+ export function verifyFonts(keys, cacheDir) {
143
+ const faults = [];
144
+ for (const key of keys) {
145
+ const entry = fontEntry(key);
146
+ if (!entry) {
147
+ faults.push({ key, fault: "unknown font key" });
148
+ continue;
149
+ }
150
+ const path = fontPath(entry, cacheDir);
151
+ if (!existsSync(path)) faults.push({ key, path, fault: "missing" });
152
+ else if (digest(readFileSync(path)) !== entry.sha256) faults.push({ key, path, fault: "sha256 mismatch" });
153
+ for (const licence of entry.licence) {
154
+ const licencePath = entry.source === "cache" ? join(cacheDir, licence) : join(SKILL_ROOT, licence);
155
+ if (!existsSync(licencePath)) faults.push({ key, path: licencePath, fault: "licence file missing" });
156
+ }
157
+ }
158
+ return faults;
159
+ }
160
+
161
+ export function verifyStrokeFonts() {
162
+ const faults = [];
163
+ for (const entry of STROKE_FONTS) {
164
+ const path = join(SKILL_ROOT, entry.file);
165
+ if (!existsSync(path)) faults.push({ key: entry.key, path, fault: "missing" });
166
+ else if (digest(readFileSync(path)) !== entry.sha256) faults.push({ key: entry.key, path, fault: "sha256 mismatch" });
167
+ }
168
+ return faults;
169
+ }
@@ -0,0 +1,466 @@
1
+ // The numeric QA gate (Section C, D2 and the measurable HARD/CAP rows of Sections A and B). Every
2
+ // rule reads recorded data only: the manifest, the per-frame render log, the flash records the
3
+ // render logged on the exact encoder bytes, masks and frames kept for contrast, ffprobe output,
4
+ // export sizes, and the stored perf and determinism runs. Nothing here re-renders.
5
+ import { ACCENT, CHROME_COMMON_FLAGS, CHROME_GPU_FLAGS, CHROME_KEYCHAIN_FLAGS, CHROME_SOFTWARE_FLAGS, CONTRAST, EVENTS, FULL_FRAME_STEP, LINE_HEIGHT, MEASURE, NEAR_BLACK, OUTPUT, PASS_CAPS, PERF, POST_FIELDS, PROVISIONAL, REDUCED_MOTION, SAFE, SOFTWARE_GL, TIMING, TRACKING } from "./constants.mjs";
6
+ import { FONTS, STROKE_FONTS } from "./fonts.mjs";
7
+ import { countFlashes } from "./flash.mjs";
8
+ import { linearOf } from "./image.mjs";
9
+ import { PASS_IDS } from "./passes.mjs";
10
+ import { eojeols, readingFloor, countUnits } from "./type.mjs";
11
+ import { contrastRatio, hexToHsl, hueDistance, passSeed } from "./util.mjs";
12
+ import { soundRules } from "./sound.mjs";
13
+
14
+ const PASS = "PASS";
15
+ const FAIL = "FAIL";
16
+ const WARN = "WARN";
17
+
18
+ export const isSoftwareRenderer = (renderer) => SOFTWARE_GL.some((needle) => String(renderer ?? "").toLowerCase().includes(needle));
19
+
20
+ function rule(id, name, status, detail, extra = {}) {
21
+ return { id, name, status, detail, provisional: PROVISIONAL.includes(id), ...extra };
22
+ }
23
+
24
+ const beatsOf = (manifest) => {
25
+ if (Array.isArray(manifest.beatGrid)) return manifest.beatGrid;
26
+ const beat = 60 / (manifest.bpm ?? TIMING.defaultBpm);
27
+ const out = [];
28
+ for (let t = 0; t <= (manifest.durationSec ?? 0) + beat; t += beat) out.push(Math.round(t * 1e6) / 1e6);
29
+ return out;
30
+ };
31
+ const shotsOf = (manifest) => manifest.timeline.filter((entry) => entry.kind === "line" || entry.kind === "scene");
32
+
33
+ /** Timeline rules that run before any frame (pre-flight) and again in the full gate. */
34
+ export function timelineRules(manifest, { coverage = null } = {}) {
35
+ const rules = [];
36
+ const fps = manifest.fps;
37
+ const units = manifest.timeline.map((entry) => ({ entry, floor: readingFloor(entry.text, entry.kind) }));
38
+ const under = units.filter(({ entry, floor }) => entry.holdSec < floor - 1 / fps);
39
+ const tightest = units.reduce((best, u) => (!best || u.entry.holdSec - u.floor < best.entry.holdSec - best.floor ? u : best), null);
40
+ const cps = manifest.timeline.filter((e) => e.kind === "line" || e.kind === "scene").filter((e) => countUnits(e.text).C / e.holdSec > 17 + 1e-9);
41
+ const hangul = under.filter(({ entry }) => /[가-힣]/u.test(entry.text));
42
+ const latin = under.filter(({ entry }) => !/[가-힣]/u.test(entry.text));
43
+ const describe = (u) => `"${u.entry.text}" (${u.entry.kind}) hold ${u.entry.holdSec.toFixed(3)} s vs floor ${u.floor.toFixed(3)} s`;
44
+ rules.push(rule("MO-C-07", "EN reading time", latin.length || cps.length ? FAIL : PASS, latin.length ? `under floor: ${describe(latin[0])}` : cps.length ? `over 17 cps: "${cps[0].text}"` : `tightest unit ${tightest ? describe(tightest) : "none"}`, { tightest: tightest ? describe(tightest) : null }));
45
+ rules.push(rule("MO-C-08", "KO reading time", hangul.length ? FAIL : PASS, hangul.length ? `under floor: ${describe(hangul[0])}` : "every Hangul unit at or above 0.2 s per syllable and the 1.0 s line floor"));
46
+ const beats = beatsOf(manifest);
47
+ const shots = shotsOf(manifest);
48
+ const offBeat = shots.filter((shot) => shot.start > 0).map((shot) => ({ shot, gap: Math.min(...beats.map((b) => Math.abs(b - shot.start))) })).filter((x) => x.gap > 1 / fps + 1e-9);
49
+ rules.push(rule("MO-A-15", "cut on the beat (<= 1 frame)", offBeat.length ? FAIL : PASS, offBeat.length ? `${offBeat[0].shot.id} starts ${(offBeat[0].gap * 1000).toFixed(1)} ms off the nearest beat` : `${shots.length} cuts within 1 frame of a beat`));
50
+ const beatAt = (t) => {
51
+ let k = 0;
52
+ while (k + 1 < beats.length && beats[k + 1] <= t + 1e-9) k++;
53
+ return (beats[k + 1] ?? beats[k] + 60 / (manifest.bpm ?? TIMING.defaultBpm)) - beats[k];
54
+ };
55
+ const short = shots.filter((shot) => shot.holdSec < TIMING.minSceneBeats * beatAt(shot.start) - 1 / fps);
56
+ rules.push(rule("MO-A-16", "scene held >= 2 beats", short.length ? FAIL : PASS, short.length ? `${short[0].id} holds ${short[0].holdSec} s, under 2 beats` : "every scene holds at least 2 beats"));
57
+ const split = manifest.timeline.filter((e) => e.kind === "reveal").filter((e) => {
58
+ const parent = shots.find((s) => s.sceneId === e.sceneId && s.shotIndex === e.shotIndex);
59
+ if (!parent) return true;
60
+ const clean = (words) => words.map((w) => w.replace(/[,;·•|/]+$/u, "")).filter((w) => w && !/^[·•|/]+$/u.test(w));
61
+ const tokens = clean(eojeols(parent.text));
62
+ const reveal = clean(eojeols(e.text));
63
+ return !tokens.some((_, i) => reveal.every((word, j) => tokens[i + j] === word));
64
+ });
65
+ rules.push(rule("MO-A-13", "no 어절 split in reveals", split.length ? FAIL : PASS, split.length ? `reveal "${split[0].text}" is not a run of whole 어절` : "every reveal step is whole 어절/words"));
66
+ if (coverage) rules.push(rule("MO-D-04", "glyph coverage", coverage.length ? FAIL : PASS, coverage.length ? `missing ${coverage.map((m) => `${m.codepoint} "${m.char}" in ${m.fontKey}`).slice(0, 6).join(", ")}` : "every codepoint resolves in its face's cmap", { missing: coverage }));
67
+ return rules;
68
+ }
69
+
70
+ function inside(box, margin, width = 1920, height = 1080) {
71
+ return box[0] >= margin.x - 1e-6 && box[1] >= margin.y - 1e-6 && box[2] <= width - margin.x + 1e-6 && box[3] <= height - margin.y + 1e-6;
72
+ }
73
+ function overrun(box, margin, width = 1920, height = 1080) {
74
+ return Math.max(margin.x - box[0], margin.y - box[1], box[2] - (width - margin.x), box[3] - (height - margin.y), 0);
75
+ }
76
+
77
+ /** Median and percentiles over a sorted array. */
78
+ const pct = (sorted, p) => (sorted.length ? sorted[Math.min(sorted.length - 1, Math.max(0, Math.floor(p * (sorted.length - 1))))] : Number.NaN);
79
+
80
+ function morph(mask, width, height, box, radiusPx, grow) {
81
+ const [x0, y0, x1, y1] = box;
82
+ const radius = Math.max(0, Math.round(radiusPx));
83
+ const out = new Uint8Array(mask.length);
84
+ for (let y = y0; y < y1; y++)
85
+ for (let x = x0; x < x1; x++) {
86
+ let hit = grow ? 0 : 1;
87
+ for (let dy = -radius; dy <= radius && (grow ? !hit : hit); dy++)
88
+ for (let dx = -radius; dx <= radius; dx++) {
89
+ const xx = x + dx;
90
+ const yy = y + dy;
91
+ const on = xx >= 0 && yy >= 0 && xx < width && yy < height && mask[yy * width + xx] >= 128;
92
+ if (grow && on) {
93
+ hit = 1;
94
+ break;
95
+ }
96
+ if (!grow && !on) {
97
+ hit = 0;
98
+ break;
99
+ }
100
+ }
101
+ out[y * width + x] = hit;
102
+ }
103
+ return out;
104
+ }
105
+
106
+ /** MO-C-06 contrast for one text box on one kept frame (CF-204 method, spec §C1). */
107
+ export function measureContrast(box, frame, { scale = frame.width / 1920, largeFontPx = null } = {}) {
108
+ const { width, height, rgba, mask } = frame;
109
+ const pad = CONTRAST.bboxExpandCap * box.capHeightPx;
110
+ const inner = [Math.max(0, Math.floor(box.bbox[0] * scale)), Math.max(0, Math.floor(box.bbox[1] * scale)), Math.min(width, Math.ceil(box.bbox[2] * scale)), Math.min(height, Math.ceil(box.bbox[3] * scale))];
111
+ const outer = [Math.max(0, Math.floor((box.bbox[0] - pad) * scale)), Math.max(0, Math.floor((box.bbox[1] - pad) * scale)), Math.min(width, Math.ceil((box.bbox[2] + pad) * scale)), Math.min(height, Math.ceil((box.bbox[3] + pad) * scale))];
112
+ const eroded = morph(mask, width, height, inner, CONTRAST.erodePx * scale, false);
113
+ const dilated = morph(mask, width, height, outer, CONTRAST.dilatePx * scale, true);
114
+ const lum = (i) => 0.2126 * linearOf(rgba[i * 4]) + 0.7152 * linearOf(rgba[i * 4 + 1]) + 0.0722 * linearOf(rgba[i * 4 + 2]);
115
+ const fg = [];
116
+ for (let y = inner[1]; y < inner[3]; y++) for (let x = inner[0]; x < inner[2]; x++) if (eroded[y * width + x]) fg.push(lum(y * width + x));
117
+ const bg = [];
118
+ for (let y = outer[1]; y < outer[3]; y++) for (let x = outer[0]; x < outer[2]; x++) if (!dilated[y * width + x]) bg.push(lum(y * width + x));
119
+ if (fg.length === 0 || bg.length === 0) return null;
120
+ fg.sort((a, b) => a - b);
121
+ bg.sort((a, b) => a - b);
122
+ const fgValues = box.fill === "gradient" ? [pct(fg, 0.05), pct(fg, 0.95)] : [pct(fg, 0.5)];
123
+ const bgValues = [pct(bg, 0.05), pct(bg, 0.95)];
124
+ let worst = Number.POSITIVE_INFINITY;
125
+ for (const f of fgValues) for (const b of bgValues) worst = Math.min(worst, contrastRatio(f, b));
126
+ const large = largeFontPx !== null ? box.fontSizePx >= largeFontPx : box.fontSizePx >= CONTRAST.largeFontPx || (box.fontSizePx >= CONTRAST.largeBoldFontPx && box.weight >= CONTRAST.boldWeight);
127
+ return { ratio: worst, floor: large ? CONTRAST.large : CONTRAST.body, large };
128
+ }
129
+
130
+ const LADDER = [...Object.values(CHROME_GPU_FLAGS), CHROME_SOFTWARE_FLAGS].map((rung) => [...rung, ...CHROME_COMMON_FLAGS, ...CHROME_KEYCHAIN_FLAGS].join(" "));
131
+
132
+ /**
133
+ * Evaluate the full gate over loaded run data. Returns ordered rule results; the caller writes the
134
+ * report. `data` fields: manifest, frames (frame lines), passLog (Map frame -> lines), preview
135
+ * { records, fps }, exports { mp4, preview, poster, still }, probe, perf, determinism, contrast,
136
+ * coverage, stillInk, round, framesViewed.
137
+ */
138
+ export function evaluate(data) {
139
+ const { manifest } = data;
140
+ const rules = [];
141
+ const frames = data.frames ?? [];
142
+ const byFrame = new Map(frames.map((line) => [line.frame, line]));
143
+ const total = Math.round(manifest.durationSec * manifest.fps);
144
+ const shots = shotsOf(manifest);
145
+ const software = isSoftwareRenderer(manifest.renderer);
146
+
147
+ // MO-C-01 / MO-SH-00 / 00a / 00b: interval-union coverage by passes that drew.
148
+ const ranges = Array.isArray(manifest.passRanges) ? manifest.passRanges : [];
149
+ const covered = new Uint8Array(total);
150
+ let gap = null;
151
+ let continuity = null;
152
+ for (const entry of ranges) {
153
+ if (!PASS_IDS.includes(entry.pass)) continue;
154
+ for (let f = entry.frameStart; f <= entry.frameEnd && f < total; f++) {
155
+ const lines = data.passLog.get(f)?.filter((line) => line.pass === entry.pass) ?? [];
156
+ if (lines.length === 0 && !continuity) continuity = `${entry.pass}@${entry.sceneId}#${entry.shotIndex} has no log line at frame ${f}`;
157
+ if (lines.some((line) => line.draws >= 1)) covered[f] = 1;
158
+ }
159
+ }
160
+ for (let f = 0; f < total && gap === null; f++) if (!covered[f]) gap = f;
161
+ rules.push(rule("MO-C-01", "GLSL presence", ranges.length === 0 || gap !== null ? FAIL : PASS, ranges.length === 0 ? "manifest lists no look-library pass" : gap !== null ? `frame ${gap} has no look-library pass that issued a draw` : `${total} frames covered by passes with draws >= 1`));
162
+ rules.push(rule("MO-SH-00", "passRanges record", ranges.length === 0 || ranges.some((e) => !PASS_IDS.includes(e.pass) || !Number.isInteger(e.frameStart) || !Number.isInteger(e.frameEnd)) ? FAIL : PASS, ranges.length === 0 ? "no passRanges entries" : `${ranges.length} entries`));
163
+ rules.push(rule("MO-SH-00a", "render-log continuity", continuity ? FAIL : PASS, continuity ?? "every manifest range has a log line on every frame"));
164
+
165
+ // MO-C-02 / MO-A-04 / MO-SH-09.
166
+ const webgl2 = Boolean(manifest.renderer) && !String(manifest.renderer).startsWith("NO_WEBGL2");
167
+ const unlabelled = software && manifest.softwareRenderer !== true;
168
+ rules.push(rule("MO-C-02", "WebGL2 tier", !webgl2 || unlabelled ? FAIL : PASS, !webgl2 ? "WebGL2 unavailable" : unlabelled ? `software renderer "${manifest.renderer}" not labelled` : `${software ? "software" : "hardware"}: ${manifest.renderer}`));
169
+ const downgradeFaults = [];
170
+ if (software) {
171
+ if (manifest.samples !== 1) downgradeFaults.push(`samples ${manifest.samples}, expected 1`);
172
+ for (const entry of ranges) {
173
+ if (entry.pass === "tidal-gradient" && (!entry.downgraded || entry.params.octaves !== Math.max(3, Math.floor((entry.params.octavesRequested ?? entry.params.octaves) / 2)))) downgradeFaults.push(`tidal-gradient@${entry.sceneId} not downgraded`);
174
+ if (entry.pass === "crt" && (!entry.downgraded || entry.params.persistenceEnabled)) downgradeFaults.push(`crt@${entry.sceneId} persistence on under software GL`);
175
+ }
176
+ }
177
+ rules.push(rule("MO-SH-09", "software-GL downgrade", downgradeFaults.length ? FAIL : PASS, downgradeFaults.length ? downgradeFaults[0] : software ? "samples 1, octaves halved, persistence off, entries marked downgraded" : "hardware renderer; no downgrade needed"));
178
+ rules.push(rule("MO-A-04", "software GL reported", software && manifest.softwareRenderer !== true ? FAIL : software && manifest.samples !== 1 ? FAIL : PASS, software ? `software renderer labelled, samples ${manifest.samples}` : "hardware renderer"));
179
+
180
+ // MO-C-03 / MO-SH-04 flash audit on the master (non-looping) and the exact preview frames (looping).
181
+ const master = countFlashes(frames.map((line) => ({ f: line.frame, g: line.flash?.g ?? [0, 0], r: line.flash?.r ?? [0, 0] })), manifest.fps, false);
182
+ const preview = data.preview?.records?.length ? countFlashes(data.preview.records, data.preview.fps, true) : null;
183
+ const flashPass = master.pass && (preview === null || preview.pass);
184
+ const worstG = Math.max(master.general.flashes, preview?.general.flashes ?? 0);
185
+ const worstR = Math.max(master.red.flashes, preview?.red.flashes ?? 0);
186
+ const worst = !master.pass || !preview ? master : preview;
187
+ rules.push(rule("MO-C-03", "flash audit", flashPass && data.preview?.records?.length ? PASS : FAIL, `worst window ${worstG} general / ${worstR} red (limit 3 / 3)${preview ? "" : "; preview frames not audited"}${flashPass ? "" : `; worst at frame ${worst.general.startFrame} (${(worst.general.startFrame / manifest.fps).toFixed(2)} s): ${worst.general.transitions.slice(0, 8).join(" ")}`}`, { master, preview }));
188
+ const step = frames.find((line) => (line.flash?.step ?? 0) > FULL_FRAME_STEP.areaFraction);
189
+ rules.push(rule("MO-SH-04a", "no full-frame luminance step", step ? FAIL : PASS, step ? `frame ${step.frame}: ${(step.flash.step * 100).toFixed(1)}% of the frame stepped >= 0.1` : "no frame pair steps more than 25% of the frame"));
190
+
191
+ // MO-C-04 / MO-C-05 safe areas; MO-A-33/35, MO-FT-04/08, MO-C-25..27 from textBoxes.
192
+ let titleFault = null;
193
+ let actionFault = null;
194
+ let trackingFault = null;
195
+ let hangulFault = null;
196
+ let outlineFault = null;
197
+ let strokeFault = null;
198
+ let lineHeightFault = null;
199
+ let measureFault = null;
200
+ let measureAdvice = null;
201
+ let breakFault = null;
202
+ const allowedHangul = new Set(FONTS.filter((f) => f.family === "PretendardGOV" || f.family === "Galmuri9").map((f) => f.path));
203
+ const strokeFiles = new Set(STROKE_FONTS.map((s) => s.file));
204
+ for (const line of frames) {
205
+ for (const box of line.textBoxes ?? []) {
206
+ if (!titleFault && !inside(box.bbox, SAFE.title)) titleFault = `"${box.text}"@${line.frame}: ${overrun(box.bbox, SAFE.title).toFixed(1)} px outside title-safe`;
207
+ const floor = box.voice === "display" ? TRACKING.displayMinEm : TRACKING.machineMinEm;
208
+ if (!trackingFault && box.trackingEm < floor - 1e-9) trackingFault = `"${box.text}"@${line.frame} (${box.voice}) tracking ${box.trackingEm}em`;
209
+ if (box.script === "hangul" && !hangulFault) {
210
+ if (box.trackingEm !== 0 || (box.widthPct !== null && box.widthPct !== undefined)) hangulFault = `MO-FT-04 "${box.text}"@${line.frame}: tracking/width motion on a Hangul run`;
211
+ else if (box.scaleX !== 1 || ![400, 700].includes(box.weight) || !allowedHangul.has(box.fontFile)) hangulFault = `MO-A-33 "${box.text}"@${line.frame}: ${box.fontFile} weight ${box.weight} scaleX ${box.scaleX}`;
212
+ }
213
+ if (!outlineFault && (box.outline || box.halo)) outlineFault = `"${box.text}"@${line.frame} is outlined or haloed`;
214
+ if (!strokeFault && box.voice === "signature" && !strokeFiles.has(box.fontFile)) strokeFault = `"${box.text}"@${line.frame} uses ${box.fontFile}`;
215
+ if (box.block && box.block.lines >= 2) {
216
+ const need = box.block.lines >= LINE_HEIGHT.manyLinesFrom ? LINE_HEIGHT.manyLines : box.script === "latin" ? LINE_HEIGHT.latin : LINE_HEIGHT.cjk;
217
+ if (!lineHeightFault && box.block.lineHeight < need - 1e-9) lineHeightFault = `"${box.text}"@${line.frame}: line-height ${box.block.lineHeight} under ${need}`;
218
+ }
219
+ if (box.block?.kind === "paragraph") {
220
+ for (const text of box.block.lineTexts ?? []) {
221
+ const chars = Array.from(text).length;
222
+ if (box.script === "latin" && (chars < MEASURE.latinMin || chars > MEASURE.latinMax) && !measureFault) measureFault = `"${text.slice(0, 24)}…"@${line.frame}: ${chars}ch outside 60-75`;
223
+ if (box.script !== "latin" && (chars < MEASURE.cjkMin || chars > MEASURE.cjkMax) && !measureAdvice) measureAdvice = `advisory: CJK line ${chars}ch outside 30-45`;
224
+ }
225
+ }
226
+ }
227
+ for (const block of line.blocks ?? []) {
228
+ const joined = block.lines.join(" ").replace(/\s+/gu, " ").trim();
229
+ if (!breakFault && joined !== block.sourceText.replace(/\s+/gu, " ").trim()) breakFault = `${block.elementId}@${line.frame}: line break inside a 어절`;
230
+ }
231
+ for (const element of line.elements ?? []) if (!actionFault && !inside(element.bbox, SAFE.action)) actionFault = `${element.elementId}@${line.frame}: ${overrun(element.bbox, SAFE.action).toFixed(1)} px outside action-safe`;
232
+ }
233
+ rules.push(rule("MO-C-04", "title-safe", titleFault ? FAIL : PASS, titleFault ?? "every glyph box inside [96,54]-[1824,1026]"));
234
+ rules.push(rule("MO-C-05", "action-safe", actionFault ? FAIL : PASS, actionFault ?? "every non-glyph element inside [48,27]-[1872,1053]"));
235
+
236
+ // MO-C-06 contrast on the kept settled frames.
237
+ let minContrast = null;
238
+ let contrastFault = null;
239
+ let measured = 0;
240
+ for (const frame of data.contrast ?? []) {
241
+ const line = byFrame.get(frame.frame) ?? frame.line;
242
+ for (const box of line?.textBoxes ?? []) {
243
+ if ((box.alpha ?? 1) < 0.999) continue;
244
+ const result = measureContrast(box, frame);
245
+ if (!result) continue;
246
+ measured++;
247
+ if (!minContrast || result.ratio / result.floor < minContrast.ratio / minContrast.floor) minContrast = { ...result, frame: frame.frame, text: box.text };
248
+ if (!contrastFault && result.ratio < result.floor) contrastFault = `"${box.text}"@${frame.frame}: ${result.ratio.toFixed(2)}:1 under ${result.floor}:1`;
249
+ }
250
+ }
251
+ rules.push(rule("MO-C-06", "type contrast", contrastFault || measured === 0 ? FAIL : PASS, contrastFault ?? (measured === 0 ? "no settled text box was measurable" : `min ratio ${minContrast.ratio.toFixed(2)}:1 at frame ${minContrast.frame} (floor ${minContrast.floor}:1)`), { minContrast }));
252
+
253
+ // MO-C-07/08, MO-A-13/15/16, MO-D-04 (timeline; coverage recorded at pre-flight).
254
+ rules.push(...timelineRules(manifest, { coverage: data.coverage ?? [] }));
255
+
256
+ // MO-C-09 / MO-A-24 / MO-A-25 determinism.
257
+ const det = data.determinism;
258
+ let detStatus = FAIL;
259
+ let detDetail = "no determinism re-render recorded";
260
+ if (det?.frames?.length) {
261
+ const mismatched = det.frames.filter((f) => f.video !== f.rerender);
262
+ if (mismatched.length === 0) {
263
+ detStatus = PASS;
264
+ detDetail = `rgbaSha256 match Y (frames re-rendered: ${det.frames.map((f) => f.frame).join(", ")})`;
265
+ } else if (det.swiftshader && det.swiftshader.every((f) => f.a === f.b)) {
266
+ detStatus = WARN;
267
+ detDetail = `hardware-nondeterminism: ${mismatched.length} hardware pair(s) differed; SwiftShader pairs match (frames ${det.swiftshader.map((f) => f.frame).join(", ")})`;
268
+ } else detDetail = `rgbaSha256 match N at frame ${mismatched[0].frame}: ${mismatched[0].video.slice(0, 12)} vs ${mismatched[0].rerender.slice(0, 12)}`;
269
+ }
270
+ rules.push(rule("MO-C-09", "determinism", detStatus, detDetail));
271
+ rules.push(rule("MO-A-25", "seeked equals sequential", detStatus, det?.frames?.length ? `seeked still(t) at samples ${manifest.samples} vs sequential video line: ${detStatus === PASS ? "equal" : detDetail}` : "no seeked re-render recorded"));
272
+
273
+ // MO-C-10/11/12 + MO-A-03 ffprobe.
274
+ const probe = data.probe;
275
+ const probeFaults = [];
276
+ if (!probe) probeFaults.push("ffprobe result missing");
277
+ else {
278
+ if (probe.width < OUTPUT.minWidth || probe.height < OUTPUT.minHeight) probeFaults.push(`resolution ${probe.width}x${probe.height}`);
279
+ if (probe.fps < OUTPUT.minFps) probeFaults.push(`fps ${probe.fps}`);
280
+ if (probe.duration < OUTPUT.minDurationSec) probeFaults.push(`duration ${probe.duration} s`);
281
+ if (probe.pixFmt !== OUTPUT.pixFmt || probe.colorSpace !== OUTPUT.colorSpace || probe.colorRange !== OUTPUT.colorRange) probeFaults.push(`tags ${probe.pixFmt}/${probe.colorSpace}/${probe.colorRange}`);
282
+ }
283
+ const tagsOk = probe && probe.pixFmt === OUTPUT.pixFmt && probe.colorSpace === OUTPUT.colorSpace && probe.colorRange === OUTPUT.colorRange;
284
+ const target = manifest.targetDurationSec;
285
+ const overTarget = probe && target > 0 && probe.duration > target * 1.1;
286
+ rules.push(rule("MO-C-10/11/12", "duration/fps/resolution", probeFaults.length ? FAIL : probe.duration > OUTPUT.warnDurationSec || overTarget ? WARN : PASS, `${overTarget ? `the reading floors made the film ${probe.duration.toFixed(2)} s, over the treatment's ${target} s target; ` : ""}${probe ? `${probe.duration.toFixed(2)} s @ ${probe.fps} fps, ${probe.width}x${probe.height}` : "no probe"} (ffprobe yuv420p/bt709/tv ${tagsOk ? "Y" : "N"})${probe && (probe.colorTransfer !== "bt709" || probe.colorPrimaries !== "bt709") ? `; transfer/primaries reported ${probe.colorTransfer ?? "unknown"}/${probe.colorPrimaries ?? "unknown"} by this ffmpeg` : ""}${probeFaults.length ? `; ${probeFaults.join("; ")}` : ""}`));
287
+
288
+ // MO-C-13 sizes; MO-A-37..41 presence.
289
+ const ex = data.exports ?? {};
290
+ const sizeFaults = [];
291
+ if (ex.preview?.bytes > OUTPUT.previewMaxBytes) sizeFaults.push(`preview ${ex.preview.bytes} B over 3 MB`);
292
+ if (ex.poster?.bytes > OUTPUT.posterMaxBytes) sizeFaults.push(`poster ${ex.poster.bytes} B over 1 MB`);
293
+ const mp4Warn = ex.mp4 && manifest.durationSec > 0 && ex.mp4.bytes / (manifest.durationSec / 10) > OUTPUT.mp4WarnBytesPer10s;
294
+ rules.push(rule("MO-C-13", "file sizes", sizeFaults.length ? FAIL : mp4Warn ? WARN : PASS, `mp4 ${ex.mp4?.bytes ?? "missing"}, ${manifest.previewEncoder === "gif" ? "gif" : "webp"} ${ex.preview?.bytes ?? "missing"} (cap 3 MB), poster ${ex.poster?.bytes ?? "missing"} (cap 1 MB)${sizeFaults.length ? `; ${sizeFaults.join("; ")}` : ""}`));
295
+ const missing = ["mp4", "preview", "poster", "still"].filter((key) => !ex[key]?.present);
296
+ rules.push(rule("MO-A-37..41", "four artifacts + manifest", missing.length || !manifest.schemaVersion ? FAIL : PASS, missing.length ? `missing ${missing.join(", ")}` : "film, preview, poster, reduced-motion still and manifest present"));
297
+
298
+ // MO-C-14 reduced-motion still settled.
299
+ const textShots = shots.filter((s) => s.text);
300
+ const final = textShots[textShots.length - 1];
301
+ const refFrame = final ? Math.round(final.end * manifest.fps) - 1 : null;
302
+ const refInk = byFrame.get(refFrame)?.glyphInkPixels ?? null;
303
+ const stillInk = data.stillInk ?? null;
304
+ const settled = ex.still?.present && refInk !== null && stillInk !== null && stillInk >= REDUCED_MOTION.minInkRatio * refInk;
305
+ rules.push(rule("MO-C-14", "reduced-motion still", settled ? PASS : FAIL, `present ${ex.still?.present ? "Y" : "N"}, ink-coverage check ${settled ? "PASS" : "FAIL"} (still ${stillInk ?? "?"} px vs ${refInk ?? "?"} px at frame ${refFrame})`));
306
+
307
+ // MO-C-25 tracking, MO-C-26 line height, MO-C-27 measure.
308
+ rules.push(rule("MO-C-25", "tracking by voice", trackingFault ? FAIL : PASS, trackingFault ?? "display voice >= -0.04em; machine and body voices >= 0"));
309
+ rules.push(rule("MO-C-26", "multi-line line-height", lineHeightFault ? FAIL : PASS, lineHeightFault ?? "every multi-line block at or above its floor"));
310
+ rules.push(rule("MO-C-27", "paragraph measure", measureFault ? FAIL : PASS, measureFault ?? (measureAdvice ? measureAdvice : "no Latin paragraph card outside 60-75ch")));
311
+
312
+ // MO-C-29 one accent colour per film.
313
+ const clusters = [];
314
+ for (const line of frames) {
315
+ for (const fill of line.fills ?? []) {
316
+ if (fill.w < ACCENT.minFillPx || fill.h < ACCENT.minFillPx) continue;
317
+ const hsl = hexToHsl(fill.color);
318
+ if (hsl.s < ACCENT.saturationFloor) continue;
319
+ let cluster = clusters.find((c) => hueDistance(c.hue, hsl.h) <= ACCENT.hueToleranceDeg);
320
+ if (!cluster) {
321
+ cluster = { hue: hsl.h, color: fill.color, frames: new Set(), shots: new Set() };
322
+ clusters.push(cluster);
323
+ }
324
+ cluster.frames.add(line.frame);
325
+ cluster.shots.add(line.shotId);
326
+ }
327
+ }
328
+ clusters.sort((a, b) => b.frames.size - a.frames.size);
329
+ const accentCluster = clusters[1];
330
+ const accentFault = clusters.length > ACCENT.maxSaturatedClusters ? `third saturated cluster ${clusters[2].color}` : accentCluster && (accentCluster.shots.size > ACCENT.maxAccentEntries || accentCluster.frames.size > ACCENT.maxAccentFrameFraction * total) ? `accent ${accentCluster.color} in ${accentCluster.shots.size} entries, ${accentCluster.frames.size}/${total} frames` : null;
331
+ rules.push(rule("MO-C-29", "one accent colour", accentFault ? FAIL : PASS, accentFault ?? `${clusters.length} saturated cluster(s)${accentCluster ? `; accent ${accentCluster.color} in ${accentCluster.shots.size} entry, ${accentCluster.frames.size} frames` : ""}`));
332
+
333
+ // MO-D-02 frame-time p95, MO-D-03 near-black runs.
334
+ const perf = data.perf;
335
+ const ceiling = software ? PERF.p95SoftwareMs : PERF.p95HardwareMs;
336
+ rules.push(rule("MO-D-02", "frame-time p95", !perf || perf.frames < PERF.minFrames || perf.p95 > ceiling ? FAIL : PASS, perf ? `p95 ${perf.p95.toFixed(1)} ms over ${perf.frames} frames (ceiling ${ceiling} ms${software ? ", software GL" : ""})${perf.p95 > ceiling ? "; fix: lower samples or tidal octaves" : ""}` : "no perf run recorded"));
337
+ let blackFault = null;
338
+ const beats = beatsOf(manifest);
339
+ for (const shot of shots) {
340
+ const k = Math.max(0, beats.findIndex((b) => b > shot.start + 1e-9) - 1);
341
+ const beat = (beats[k + 1] ?? beats[k] + 60 / (manifest.bpm ?? TIMING.defaultBpm)) - beats[k];
342
+ const limit = NEAR_BLACK.runFactor * TIMING.minSceneBeats * beat;
343
+ const a = Math.round(shot.start * manifest.fps);
344
+ const b = Math.min(total, Math.round(shot.end * manifest.fps));
345
+ let runStart = null;
346
+ for (let f = a; f <= b && !blackFault; f++) {
347
+ const line = byFrame.get(f);
348
+ const dark = f < b && line && line.glyphInkPixels === 0 && typeof line.p995 === "number" && line.p995 < NEAR_BLACK.luminance;
349
+ if (dark && runStart === null) runStart = f;
350
+ if (!dark && runStart !== null) {
351
+ const length = (f - runStart) / manifest.fps;
352
+ const edge = runStart === 0 || f === total ? NEAR_BLACK.edgeAllowanceSec : 0;
353
+ if (length > limit + edge) blackFault = `${f - runStart} near-black frames from ${runStart} in ${shot.id} (limit ${(limit + edge).toFixed(2)} s)`;
354
+ runStart = null;
355
+ }
356
+ }
357
+ }
358
+ rules.push(rule("MO-D-03", "near-black run cap", blackFault ? FAIL : PASS, blackFault ?? "no empty near-black run longer than 2x the scene hold floor"));
359
+
360
+ // Section A rows measured from the manifest and log.
361
+ const timelineFields = ["id", "sceneId", "shotIndex", "start", "end", "holdSec", "kind", "text", "script", "beatSec"];
362
+ const badEntry = manifest.timeline.find((e) => timelineFields.some((k) => e[k] === undefined));
363
+ rules.push(rule("MO-A-41a", "timeline ground truth", !Array.isArray(manifest.timeline) || badEntry ? FAIL : PASS, badEntry ? `entry ${badEntry.id} lacks a canonical field` : `${manifest.timeline.length} canonical entries`));
364
+ rules.push(rule("MO-A-51", "Chrome flag rung recorded", LADDER.includes((manifest.chromeFlags ?? []).join(" ")) ? PASS : FAIL, `chromeFlags ${(manifest.chromeFlags ?? []).join(" ")}`));
365
+ rules.push(rule("MO-A-33", "no fake Hangul weight or condensing", hangulFault?.startsWith("MO-A-33") ? FAIL : PASS, hangulFault?.startsWith("MO-A-33") ? hangulFault : "Hangul steps only between the lit-pptx Regular/Bold pair (or Galmuri9), scaleX 1"));
366
+ rules.push(rule("MO-A-35", "no outlined or haloed type", outlineFault ? FAIL : PASS, outlineFault ?? "no outline or halo on any text box"));
367
+ const postFault = postRangeFault(frames, shots, manifest);
368
+ rules.push(rule("MO-A-58", "post override vocabulary", postFault ? FAIL : PASS, postFault ?? "every override within range; invert only on cuts, held >= 2 beats"));
369
+
370
+ // Section B rows.
371
+ const seedFault = seedCheck(ranges, manifest, data.passLog);
372
+ rules.push(rule("MO-SH-01", "seed formula", seedFault ? FAIL : PASS, seedFault ?? "fnv1a32(runSeed:sceneId:shotIndex:pass) on every entry and log line"));
373
+ const eventFault = eventCeiling(frames, manifest.fps);
374
+ rules.push(rule("MO-SH-03", "<= 2 events per 1 s per shot", eventFault ? FAIL : PASS, eventFault ?? "every shot within the event ceiling"));
375
+ const capFaults = [];
376
+ for (const e of ranges) {
377
+ if (e.pass === "glitch" && (e.params.hitRatePerSecRealized > PASS_CAPS.glitchHitRate || e.params.areaCapPct > PASS_CAPS.glitchAreaPct || e.params.hitRatePerSec > PASS_CAPS.glitchHitRate)) capFaults.push(["MO-SH-05", `glitch@${e.sceneId}#${e.shotIndex}: rate ${e.params.hitRatePerSecRealized}/s, area ${e.params.areaCapPct}%`]);
378
+ if (e.pass === "tidal-gradient" && (e.params.surgeCapPerSec > PASS_CAPS.surgeRate || e.params.surgeAttackSec < PASS_CAPS.surgeMinAttackSec || e.params.surgeDecaySec < PASS_CAPS.surgeMinDecaySec || (e.params.surgeCountRealized ?? 0) / Math.max(1e-9, (e.frameEnd - e.frameStart + 1) / manifest.fps) > PASS_CAPS.surgeRate)) capFaults.push(["MO-SH-06", `tidal-gradient@${e.sceneId}#${e.shotIndex}: surge cap ${e.params.surgeCapPerSec}/s, attack ${e.params.surgeAttackSec} s, decay ${e.params.surgeDecaySec} s`]);
379
+ if (e.pass === "crt" && (e.params.flickerAmpRealized > PASS_CAPS.crtFlickerAmp || e.params.flickerAmp > PASS_CAPS.crtFlickerAmp)) capFaults.push(["MO-SH-07", `crt@${e.sceneId}#${e.shotIndex}: flicker ${e.params.flickerAmpRealized}`]);
380
+ if (e.pass === "crt" && e.params.persistenceEnabled && !e.params.sceneStateful) capFaults.push(["MO-SH-07", `crt@${e.sceneId}#${e.shotIndex}: persistence on a non-stateful scene`]);
381
+ if (e.pass === "swiss-grid" && e.params.showGuides) capFaults.push(["MO-SH-10", `swiss-grid@${e.sceneId}#${e.shotIndex}: showGuides true`]);
382
+ if (e.pass === "terminal-ui" && (e.params.layers ?? 1) > PASS_CAPS.terminalLayers) capFaults.push(["MO-SH-11", `terminal-ui@${e.sceneId}#${e.shotIndex}: ${e.params.layers} layers`]);
383
+ }
384
+ for (const [id, name] of [["MO-SH-05", "glitch caps"], ["MO-SH-06", "tidal surge caps"], ["MO-SH-07", "CRT flicker cap and persistence"]]) {
385
+ const fault = capFaults.find(([rid]) => rid === id);
386
+ rules.push(rule(id, name, fault ? FAIL : PASS, fault ? fault[1] : "within cap"));
387
+ }
388
+ const ditherFault = ditherSeedCheck(ranges, data.passLog);
389
+ rules.push(rule("MO-SH-08", "dither reseeds once per shot", ditherFault ? FAIL : PASS, ditherFault ?? "one dither seed per shot"));
390
+ for (const [id, name] of [["MO-SH-10", "swiss-grid guides off"], ["MO-SH-11", "terminal-ui layers <= 2"]]) {
391
+ const fault = capFaults.find(([rid]) => rid === id);
392
+ rules.push(rule(id, name, fault ? FAIL : PASS, fault ? fault[1] : "within contract"));
393
+ }
394
+ rules.push(rule("MO-FT-04", "no tracking/width motion on Hangul", hangulFault?.startsWith("MO-FT-04") ? FAIL : PASS, hangulFault?.startsWith("MO-FT-04") ? hangulFault : "Hangul runs keep tracking 0 and no width steps"));
395
+ rules.push(rule("MO-FT-05", "Korean breaks at 어절", breakFault ? FAIL : PASS, breakFault ?? "every multi-line block breaks at whitespace"));
396
+ rules.push(rule("MO-FT-08", "stroke fonts are the EMS five", strokeFault ? FAIL : PASS, strokeFault ?? "stroke type uses only the pinned EMS SVGs"));
397
+ if (data.soundMode) rules.push(...soundRules(data.sound, { mode: data.soundMode, videoDuration: probe?.videoDuration ?? probe?.duration ?? manifest.durationSec }));
398
+ return rules;
399
+ }
400
+
401
+ function postRangeFault(frames, shots, manifest) {
402
+ let lastInvert = null;
403
+ let lastChange = null;
404
+ const cutFrames = new Set(shots.map((s) => Math.round(s.start * manifest.fps)));
405
+ for (const line of frames) {
406
+ const post = line.post ?? {};
407
+ for (const [field, spec] of Object.entries(POST_FIELDS)) {
408
+ const value = post[field];
409
+ if (value === undefined) continue;
410
+ if (typeof value !== "number" || Number.isNaN(value) || (spec.exclusiveMin ? value <= spec.min : value < spec.min) || (spec.max !== null && value > spec.max)) return `frame ${line.frame}: ${field} ${value} outside its range`;
411
+ }
412
+ if (post.invert !== undefined && typeof post.invert !== "boolean") return `frame ${line.frame}: invert must be boolean`;
413
+ if (lastInvert !== null && post.invert !== lastInvert) {
414
+ if (!cutFrames.has(line.frame)) return `frame ${line.frame}: invert changed off a cut`;
415
+ if (lastChange !== null && (line.frame - lastChange) / manifest.fps < 2 * (60 / (manifest.bpm ?? TIMING.defaultBpm)) - 1e-9) return `frame ${line.frame}: invert held under 2 beats`;
416
+ lastChange = line.frame;
417
+ }
418
+ lastInvert = post.invert ?? lastInvert;
419
+ }
420
+ return null;
421
+ }
422
+
423
+ function seedCheck(ranges, manifest, passLog) {
424
+ for (const e of ranges) {
425
+ const expected = e.pass === "swiss-grid" ? null : passSeed(manifest.seed, e.sceneId, e.shotIndex, e.pass);
426
+ if (e.seed !== expected) return `${e.pass}@${e.sceneId}#${e.shotIndex}: seed ${e.seed}, expected ${expected}`;
427
+ if (expected === null) continue;
428
+ for (let f = e.frameStart; f <= e.frameEnd; f++) {
429
+ const line = passLog.get(f)?.find((l) => l.pass === e.pass);
430
+ const logged = line?.uniforms?.u_seed;
431
+ if (logged !== undefined && logged >>> 0 !== expected) return `${e.pass}@frame ${f}: u_seed ${logged}, expected ${expected}`;
432
+ }
433
+ }
434
+ return null;
435
+ }
436
+
437
+ function ditherSeedCheck(ranges, passLog) {
438
+ for (const e of ranges.filter((r) => r.pass === "dither")) {
439
+ const seeds = new Set();
440
+ for (let f = e.frameStart; f <= e.frameEnd; f++) {
441
+ const seed = passLog.get(f)?.find((l) => l.pass === "dither")?.uniforms?.u_seed;
442
+ if (seed !== undefined) seeds.add(seed);
443
+ }
444
+ if (seeds.size > 1) return `dither@${e.sceneId}#${e.shotIndex} reseeded inside the shot (${seeds.size} seeds)`;
445
+ }
446
+ return null;
447
+ }
448
+
449
+ function eventCeiling(frames, fps) {
450
+ const byShot = new Map();
451
+ for (const line of frames) for (const source of line.events ?? []) {
452
+ if (!byShot.has(line.shotId)) byShot.set(line.shotId, []);
453
+ byShot.get(line.shotId).push({ frame: line.frame, source });
454
+ }
455
+ for (const [shotId, events] of byShot) {
456
+ events.sort((a, b) => a.frame - b.frame);
457
+ for (let i = 0; i < events.length; i++) {
458
+ const inWindow = events.filter((e) => e.frame >= events[i].frame && e.frame < events[i].frame + EVENTS.windowSec * fps);
459
+ if (inWindow.length > EVENTS.maxPerWindow) return `${shotId}: ${inWindow.length} events (${inWindow.map((e) => e.source).join(", ")}) within 1 s from frame ${events[i].frame}`;
460
+ }
461
+ }
462
+ return null;
463
+ }
464
+
465
+ export const gatePassed = (rules) => rules.every((r) => r.status !== FAIL);
466
+ export const flashFailed = (rules) => rules.some((r) => r.id === "MO-C-03" && r.status === FAIL);