@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,735 @@
1
+ /* LitCodex motion engine, browser half. Node computes every display list from time t; this page
2
+ * rasterizes glyph outlines and furniture on CPU canvases, runs the look-library GLSL passes and
3
+ * the linear-HDR post chain on WebGL2 half-float targets, and reads the finished 8-bit RGBA frame
4
+ * back through a pixel-pack buffer and a fence. Nothing here reads a clock or an unseeded random
5
+ * source for pixels (MO-A-23). GL plumbing, the bloom pyramid and the capsule line batch are
6
+ * adapted in method from the credited engine (NOTICE); the look passes are original. */
7
+ (() => {
8
+ "use strict";
9
+ const VERT = `#version 300 es
10
+ void main() { vec2 p = vec2(float((gl_VertexID << 1) & 2), float(gl_VertexID & 2)); gl_Position = vec4(p * 2.0 - 1.0, 0.0, 1.0); }`;
11
+
12
+ const COMMON = `#version 300 es
13
+ precision highp float;
14
+ precision highp int;
15
+ uniform vec2 u_res;
16
+ uniform float u_scale;
17
+ out vec4 o;
18
+ vec2 fragTop() { return vec2(gl_FragCoord.x, u_res.y - gl_FragCoord.y); }
19
+ vec2 logicalPx() { return fragTop() / u_scale; }
20
+ vec2 uvGL(vec2 topPx) { return vec2(topPx.x, u_res.y - topPx.y) / u_res; }
21
+ uint mixBits(uint x) { x ^= x >> 16; x *= 0x7feb352du; x ^= x >> 15; x *= 0x846ca68bu; x ^= x >> 16; return x; }
22
+ float rand1(uint x) { return float(mixBits(x)) / 4294967296.0; }
23
+ float rand2(uvec2 p, uint s) { return rand1(p.x * 1597334677u ^ mixBits(p.y * 3812015801u ^ s)); }
24
+ vec3 toLinear(vec3 s) { return mix(s / 12.92, pow((s + 0.055) / 1.055, vec3(2.4)), step(vec3(0.04045), s)); }
25
+ vec3 toDisplay(vec3 l) { l = clamp(l, 0.0, 1.0); return mix(l * 12.92, 1.055 * pow(l, vec3(1.0 / 2.4)) - 0.055, step(vec3(0.0031308), l)); }
26
+ vec3 displaySlope(vec3 l) { l = max(l, vec3(0.0031308)); return 1.0 / (1.055 / 2.4 * pow(l, vec3(1.0 / 2.4 - 1.0))); }
27
+ float luma(vec3 c) { return dot(c, vec3(0.2126, 0.7152, 0.0722)); }
28
+ vec2 grad2(uvec2 cell, uint seed) { float a = rand2(cell, seed) * 6.28318530718; return vec2(cos(a), sin(a)); }
29
+ float gnoise(vec2 p, uint seed) {
30
+ vec2 i = floor(p); vec2 f = p - i; vec2 u = f * f * f * (f * (f * 6.0 - 15.0) + 10.0);
31
+ uvec2 c = uvec2(ivec2(i) + 4096);
32
+ float a = dot(grad2(c, seed), f), b = dot(grad2(c + uvec2(1, 0), seed), f - vec2(1, 0));
33
+ float d = dot(grad2(c + uvec2(0, 1), seed), f - vec2(0, 1)), e = dot(grad2(c + uvec2(1, 1), seed), f - vec2(1, 1));
34
+ return mix(mix(a, b, u.x), mix(d, e, u.x), u.y) * 1.4142;
35
+ }
36
+ float fbm(vec2 p, int octaves, uint seed) { float s = 0.0, a = 0.5; for (int i = 0; i < 8; i++) { if (i >= octaves) break; s += a * gnoise(p, seed + uint(i) * 101u); p = mat2(0.8, -0.6, 0.6, 0.8) * p * 2.03 + 11.7; a *= 0.5; } return s; }
37
+ `;
38
+
39
+ const FS = {
40
+ fill: `uniform vec3 u_color; void main() { o = vec4(u_color, 1.0); }`,
41
+ copy: `uniform sampler2D u_src; uniform float u_weight; void main() { o = vec4(texture(u_src, gl_FragCoord.xy / u_res).rgb * u_weight, 1.0); }`,
42
+ layer: `uniform sampler2D u_layer; void main() { vec4 g = texture(u_layer, fragTop() / u_res); o = vec4(toLinear(g.rgb), g.a); }`,
43
+ tidal: `uniform float u_time; uniform uint u_seed; uniform float u_flowSpeed, u_warpAmount, u_curlStrength, u_surge, u_ditherAmount; uniform int u_octaves, u_bandingSteps; uniform vec2 u_origin; uniform vec3 u_bg, u_stopA, u_stopB;
44
+ void main() {
45
+ vec2 q = logicalPx() / 1080.0 * 0.75 + u_origin;
46
+ float t = u_time * u_flowSpeed;
47
+ vec2 warp = vec2(fbm(q + vec2(t, 0.0), u_octaves, u_seed), fbm(q + vec2(5.2, 1.3 - t), u_octaves, u_seed + 17u));
48
+ float e = 0.35; float n0 = fbm(q * 0.7 + vec2(0.0, e) + t, 3, u_seed + 29u) - fbm(q * 0.7 - vec2(0.0, e) + t, 3, u_seed + 29u);
49
+ float n1 = fbm(q * 0.7 + vec2(e, 0.0) + t, 3, u_seed + 29u) - fbm(q * 0.7 - vec2(e, 0.0) + t, 3, u_seed + 29u);
50
+ vec2 curl = vec2(n0, -n1) / (2.0 * e);
51
+ float field = fbm(q + u_warpAmount * warp + u_curlStrength * 0.15 * curl, u_octaves, u_seed + 53u);
52
+ float mixA = smoothstep(-0.9, 0.9, field);
53
+ float mixB = smoothstep(-0.6, 0.8, fbm(q * 0.5 - t * 0.5, max(2, u_octaves - 1), u_seed + 71u));
54
+ if (u_bandingSteps > 0) { mixA = floor(mixA * float(u_bandingSteps)) / float(u_bandingSteps); }
55
+ vec3 stop = mix(u_stopA, u_stopB, mixB);
56
+ vec3 c = mix(u_bg, stop, 0.2 + 0.7 * mixA);
57
+ c *= 1.0 + 0.35 * u_surge;
58
+ c += (rand2(uvec2(gl_FragCoord.xy), u_seed ^ uint(u_time * 60.0 + 0.5)) - 0.5) * u_ditherAmount * displaySlope(c) * 0.25;
59
+ o = vec4(max(c, 0.0), 1.0);
60
+ }`,
61
+ crt: `uniform sampler2D u_src; uniform sampler2D u_history; uniform float u_scanlineFreqPerFrame, u_scanlineDepth, u_phosphorPersistence, u_bloomAmount, u_curvature, u_vignette, u_triadMaskAmount, u_flicker; uniform uint u_seed;
62
+ void main() {
63
+ vec2 uv = gl_FragCoord.xy / u_res; vec2 d = uv - 0.5; float r2 = dot(d, d);
64
+ vec2 bent = 0.5 + d * (1.0 + u_curvature * r2);
65
+ vec3 c = (bent.x < 0.0 || bent.y < 0.0 || bent.x > 1.0 || bent.y > 1.0) ? vec3(0.0) : texture(u_src, bent).rgb;
66
+ vec3 soft = (texture(u_src, bent + vec2(1.5, 0.0) / u_res).rgb + texture(u_src, bent - vec2(1.5, 0.0) / u_res).rgb) * 0.5;
67
+ c += soft * u_bloomAmount * 0.25;
68
+ float line = 0.5 + 0.5 * cos(3.14159265 * 2.0 * (u_res.y - gl_FragCoord.y) / u_scale * u_scanlineFreqPerFrame / 1080.0);
69
+ c *= 1.0 - u_scanlineDepth * line;
70
+ int triad = int(gl_FragCoord.x / u_scale) % 3;
71
+ vec3 mask = triad == 0 ? vec3(1.0, 0.85, 0.85) : triad == 1 ? vec3(0.85, 1.0, 0.85) : vec3(0.85, 0.85, 1.0);
72
+ c *= mix(vec3(1.0), mask, u_triadMaskAmount * (0.9 + 0.2 * rand2(uvec2(gl_FragCoord.xy / (2.0 * u_scale)), u_seed)));
73
+ c *= mix(1.0, smoothstep(0.75, 0.2, length(d * vec2(1.0, 0.9))), u_vignette);
74
+ c *= 1.0 + u_flicker;
75
+ vec3 h = texture(u_history, uv).rgb;
76
+ o = vec4(max(c, h * u_phosphorPersistence), 1.0);
77
+ }`,
78
+ dither: `uniform sampler2D u_src; uniform int u_ditherMode, u_paletteSize, u_pixelScale; uniform float u_ditherStrength; uniform uint u_seed;
79
+ float bayer(ivec2 p, int n) {
80
+ if (n == 2) { int m[4] = int[4](0, 2, 3, 1); return float(m[(p.y % 2) * 2 + p.x % 2]) / 4.0; }
81
+ if (n == 4) { int m[16] = int[16](0, 8, 2, 10, 12, 4, 14, 6, 3, 11, 1, 9, 15, 7, 13, 5); return float(m[(p.y % 4) * 4 + p.x % 4]) / 16.0; }
82
+ int v = 0; for (int bit = 0; bit < 3; bit++) { int x = (p.x >> bit) & 1; int y = (p.y >> bit) & 1; v = v * 4 + ((x ^ y) * 2 + y); }
83
+ return float(v) / 64.0;
84
+ }
85
+ void main() {
86
+ vec2 top = logicalPx(); float cell = float(max(u_pixelScale, 1));
87
+ vec2 centre = (floor(top / cell) + 0.5) * cell;
88
+ vec3 c = texture(u_src, uvGL(centre * u_scale)).rgb;
89
+ ivec2 k = ivec2(floor(top / cell));
90
+ float threshold = u_ditherMode == 3 ? rand2(uvec2(k & 63) + uvec2(u_seed & 63u, (u_seed >> 6) & 63u), u_seed) : bayer(k, u_ditherMode == 0 ? 2 : u_ditherMode == 1 ? 4 : 8);
91
+ vec3 s = toDisplay(c) + (threshold - 0.5) * u_ditherStrength / 24.0;
92
+ if (u_paletteSize > 1) { float n = float(u_paletteSize - 1); s = floor(s * n + threshold) / n; }
93
+ o = vec4(toLinear(clamp(s, 0.0, 1.0)) + max(c - 1.0, 0.0), 1.0);
94
+ }`,
95
+ glitch: `uniform sampler2D u_src; uniform int u_hit, u_sliceCount; uniform uint u_hitSeed; uniform float u_intensity, u_maxOffsetPx, u_rgbSplitPx, u_areaCapPct; uniform vec2 u_blockCorruptSize;
96
+ void main() {
97
+ vec2 uv = gl_FragCoord.xy / u_res;
98
+ if (u_hit == 0) { o = vec4(texture(u_src, uv).rgb, 1.0); return; }
99
+ vec2 top = logicalPx();
100
+ float bandH = 1080.0 * u_areaCapPct / 100.0;
101
+ float bandY = 54.0 + rand1(u_hitSeed) * (1080.0 - 108.0 - bandH);
102
+ if (top.y < bandY || top.y >= bandY + bandH) { o = vec4(texture(u_src, uv).rgb, 1.0); return; }
103
+ int slice = int(float(u_sliceCount) * (top.y - bandY) / bandH);
104
+ float shift = (rand1(u_hitSeed ^ uint(slice * 7919 + 1)) - 0.5) * 2.0 * u_maxOffsetPx * u_intensity;
105
+ uvec2 block = uvec2(top / u_blockCorruptSize);
106
+ if (rand2(block, u_hitSeed) < 0.18 * u_intensity) shift += (rand2(block, u_hitSeed + 7u) - 0.5) * u_blockCorruptSize.x;
107
+ vec2 src = top + vec2(shift, 0.0);
108
+ float split = u_rgbSplitPx * u_intensity;
109
+ vec3 c = vec3(texture(u_src, uvGL((src + vec2(split, 0.0)) * u_scale)).r, texture(u_src, uvGL(src * u_scale)).g, texture(u_src, uvGL((src - vec2(split, 0.0)) * u_scale)).b);
110
+ o = vec4(c, 1.0);
111
+ }`,
112
+ prefilter: `uniform sampler2D u_src; uniform vec2 u_texel; uniform float u_threshold, u_knee;
113
+ void main() {
114
+ vec2 uv = gl_FragCoord.xy / u_res;
115
+ vec3 c = 0.25 * (texture(u_src, uv + u_texel * vec2(-1, -1)).rgb + texture(u_src, uv + u_texel * vec2(1, -1)).rgb + texture(u_src, uv + u_texel * vec2(-1, 1)).rgb + texture(u_src, uv + u_texel * vec2(1, 1)).rgb);
116
+ c = min(c, vec3(32.0));
117
+ float l = max(c.r, max(c.g, c.b)); float knee = max(u_knee, 1e-4);
118
+ float soft = clamp(l - u_threshold + knee, 0.0, 2.0 * knee); soft = soft * soft / (4.0 * knee);
119
+ o = vec4(c * max(soft, l - u_threshold) / max(l, 1e-4), 1.0);
120
+ }`,
121
+ down: `uniform sampler2D u_src; uniform vec2 u_texel;
122
+ void main() {
123
+ vec2 uv = gl_FragCoord.xy / u_res; vec3 s = texture(u_src, uv).rgb * 0.25;
124
+ s += 0.125 * (texture(u_src, uv + u_texel * vec2(-1, -1)).rgb + texture(u_src, uv + u_texel * vec2(1, -1)).rgb + texture(u_src, uv + u_texel * vec2(-1, 1)).rgb + texture(u_src, uv + u_texel * vec2(1, 1)).rgb);
125
+ s += 0.0625 * (texture(u_src, uv + u_texel * vec2(-2, 0)).rgb + texture(u_src, uv + u_texel * vec2(2, 0)).rgb + texture(u_src, uv + u_texel * vec2(0, -2)).rgb + texture(u_src, uv + u_texel * vec2(0, 2)).rgb);
126
+ o = vec4(s, 1.0);
127
+ }`,
128
+ up: `uniform sampler2D u_src; uniform sampler2D u_base; uniform vec2 u_texel; uniform float u_radius;
129
+ void main() {
130
+ vec2 uv = gl_FragCoord.xy / u_res; vec2 r = u_texel * u_radius;
131
+ vec3 s = 4.0 * texture(u_src, uv).rgb + 2.0 * (texture(u_src, uv + vec2(r.x, 0)).rgb + texture(u_src, uv - vec2(r.x, 0)).rgb + texture(u_src, uv + vec2(0, r.y)).rgb + texture(u_src, uv - vec2(0, r.y)).rgb)
132
+ + texture(u_src, uv + r).rgb + texture(u_src, uv - r).rgb + texture(u_src, uv + vec2(r.x, -r.y)).rgb + texture(u_src, uv + vec2(-r.x, r.y)).rgb;
133
+ o = vec4(texture(u_base, uv).rgb + s / 16.0, 1.0);
134
+ }`,
135
+ post: `uniform sampler2D u_src; uniform sampler2D u_bloom; uniform sampler2D u_halo; uniform float u_exposure, u_bloomMix, u_halation, u_ca, u_grain, u_vignette, u_flash; uniform uint u_grainKey;
136
+ vec3 shoulder(vec3 x) { const float k = 0.72; vec3 y = mix(x, k + (1.0 - k) * (1.0 - exp(-(x - k) / (1.0 - k))), step(k, x)); return mix(y, vec3(1.0), smoothstep(2.0, 12.0, max(x.r, max(x.g, x.b))) * 0.85); }
137
+ void main() {
138
+ vec2 uv = gl_FragCoord.xy / u_res; vec2 d = uv - 0.5;
139
+ vec2 off = d * dot(d * vec2(1.7778, 1.0), d * vec2(1.7778, 1.0)) * u_ca * u_scale / u_res.x * 4.0;
140
+ vec3 c = vec3(texture(u_src, uv + off).r, texture(u_src, uv).g, texture(u_src, uv - off).b);
141
+ c += texture(u_bloom, uv).rgb * u_bloomMix;
142
+ c += vec3(1.0, 0.3, 0.12) * luma(texture(u_halo, uv).rgb) * u_halation;
143
+ c = shoulder(c * u_exposure);
144
+ float g = (rand2(uvec2(gl_FragCoord.xy), u_grainKey) - 0.5) * 0.6 + (rand2(uvec2(gl_FragCoord.xy / (2.0 * u_scale)), u_grainKey ^ 0x9e3779b9u) - 0.5) * 0.4;
145
+ float lm = luma(toDisplay(c));
146
+ c += g * u_grain * (0.55 + 1.2 * lm * (1.0 - lm)) * displaySlope(c);
147
+ c *= mix(1.0, smoothstep(0.95, 0.25, length(d * vec2(1.0, 0.8))), u_vignette);
148
+ c += vec3(0.8, 0.82, 0.78) * u_flash;
149
+ o = vec4(max(c, 0.0), 1.0);
150
+ }`,
151
+ output: `uniform sampler2D u_src; uniform float u_zoom, u_fade, u_maskCurvature; uniform vec2 u_shake; uniform int u_invert, u_maskMode;
152
+ void main() {
153
+ vec2 c = vec2(960.0, 540.0);
154
+ vec2 srcTop = (vec2(gl_FragCoord.x, gl_FragCoord.y) / u_scale - c) / u_zoom + c - u_shake;
155
+ vec2 uv = srcTop * u_scale / u_res;
156
+ if (u_maskMode == 1) {
157
+ vec2 d = uv - 0.5;
158
+ vec2 bent = 0.5 + d * (1.0 + u_maskCurvature * dot(d, d));
159
+ float a = (bent.x < 0.0 || bent.y < 0.0 || bent.x > 1.0 || bent.y > 1.0) ? 0.0 : texture(u_src, bent).a;
160
+ o = vec4(a, a, a, 1.0);
161
+ return;
162
+ }
163
+ vec3 col = texture(u_src, vec2(uv.x, 1.0 - uv.y)).rgb * u_fade;
164
+ vec3 s = toDisplay(col);
165
+ if (u_invert == 1) s = 1.0 - s;
166
+ o = vec4(s, 1.0);
167
+ }`,
168
+ };
169
+
170
+ const LINE_VS = `#version 300 es
171
+ precision highp float;
172
+ layout(location = 0) in vec2 a_corner; layout(location = 1) in vec4 a_seg; layout(location = 2) in float a_width; layout(location = 3) in vec4 a_color;
173
+ uniform vec2 u_res; uniform float u_scale;
174
+ out vec2 v_local; out float v_len; out float v_half; out vec4 v_color;
175
+ void main() {
176
+ vec2 a = a_seg.xy * u_scale, b = a_seg.zw * u_scale; float w = max(a_width * u_scale, 0.7); float hw = w * 0.5 + 1.0;
177
+ vec2 d = b - a; float len = length(d); vec2 dir = len > 1e-4 ? d / len : vec2(1.0, 0.0); vec2 nrm = vec2(-dir.y, dir.x);
178
+ float along = mix(-hw, len + hw, a_corner.x);
179
+ vec2 p = a + dir * along + nrm * a_corner.y * hw;
180
+ gl_Position = vec4(p.x / u_res.x * 2.0 - 1.0, 1.0 - p.y / u_res.y * 2.0, 0.0, 1.0);
181
+ v_local = vec2(along, a_corner.y * hw); v_len = len; v_half = w * 0.5; v_color = a_color;
182
+ }`;
183
+ const LINE_FS = `#version 300 es
184
+ precision highp float;
185
+ in vec2 v_local; in float v_len; in float v_half; in vec4 v_color; out vec4 o;
186
+ void main() { float x = clamp(v_local.x, 0.0, v_len); float d = length(vec2(v_local.x - x, v_local.y)) - v_half; float a = clamp(0.5 - d, 0.0, 1.0) * v_color.a; if (a <= 0.0) discard; o = vec4(v_color.rgb, a); }`;
187
+
188
+ const srgbToLinear = (v) => (v <= 0.04045 ? v / 12.92 : ((v + 0.055) / 1.055) ** 2.4);
189
+ const hexLinear = (hex) => {
190
+ const n = Number.parseInt(hex.slice(1), 16);
191
+ return [(n >> 16) & 255, (n >> 8) & 255, n & 255].map((v) => srgbToLinear(v / 255));
192
+ };
193
+ const rgba = (hex, alpha) => {
194
+ const n = Number.parseInt(hex.slice(1), 16);
195
+ return `rgba(${(n >> 16) & 255},${(n >> 8) & 255},${n & 255},${alpha})`;
196
+ };
197
+ const yieldTask = () =>
198
+ new Promise((resolve) => {
199
+ const channel = new MessageChannel();
200
+ channel.port1.onmessage = resolve;
201
+ channel.port2.postMessage(0);
202
+ });
203
+
204
+ let S = null;
205
+
206
+ function compile(gl, type, source) {
207
+ const shader = gl.createShader(type);
208
+ gl.shaderSource(shader, source);
209
+ gl.compileShader(shader);
210
+ if (!gl.getShaderParameter(shader, gl.COMPILE_STATUS)) throw new Error(`shader compile: ${gl.getShaderInfoLog(shader)}`);
211
+ return shader;
212
+ }
213
+ function link(gl, vs, fs) {
214
+ const program = gl.createProgram();
215
+ gl.attachShader(program, compile(gl, gl.VERTEX_SHADER, vs));
216
+ gl.attachShader(program, compile(gl, gl.FRAGMENT_SHADER, fs));
217
+ gl.linkProgram(program);
218
+ if (!gl.getProgramParameter(program, gl.LINK_STATUS)) throw new Error(`program link: ${gl.getProgramInfoLog(program)}`);
219
+ return program;
220
+ }
221
+
222
+ /** The one uniform-setter wrapper every pass routes through, so draws and uniforms are logged (MO-SH-00a). */
223
+ class Pass {
224
+ constructor(gl, name, program) {
225
+ this.gl = gl;
226
+ this.name = name;
227
+ this.program = program;
228
+ this.locations = new Map();
229
+ this.draws = 0;
230
+ this.uniforms = {};
231
+ this.samplers = 0;
232
+ }
233
+ use() {
234
+ this.gl.useProgram(this.program);
235
+ this.samplers = 0;
236
+ return this;
237
+ }
238
+ loc(name) {
239
+ if (!this.locations.has(name)) this.locations.set(name, this.gl.getUniformLocation(this.program, name));
240
+ return this.locations.get(name);
241
+ }
242
+ set(name, value, kind = "f", log = true) {
243
+ const gl = this.gl;
244
+ const at = this.loc(name);
245
+ if (log) this.uniforms[name] = value;
246
+ if (at === null) return this;
247
+ if (kind === "u") gl.uniform1ui(at, value >>> 0);
248
+ else if (kind === "i") gl.uniform1i(at, value | 0);
249
+ else if (Array.isArray(value) && value.length === 2) gl.uniform2f(at, value[0], value[1]);
250
+ else if (Array.isArray(value) && value.length === 3) gl.uniform3f(at, value[0], value[1], value[2]);
251
+ else gl.uniform1f(at, value);
252
+ return this;
253
+ }
254
+ texture(name, tex) {
255
+ const gl = this.gl;
256
+ gl.activeTexture(gl.TEXTURE0 + this.samplers);
257
+ gl.bindTexture(gl.TEXTURE_2D, tex);
258
+ gl.uniform1i(this.loc(name), this.samplers);
259
+ this.samplers++;
260
+ return this;
261
+ }
262
+ frame(target, width, height) {
263
+ const gl = this.gl;
264
+ gl.bindFramebuffer(gl.FRAMEBUFFER, target);
265
+ gl.viewport(0, 0, width, height);
266
+ gl.uniform2f(this.loc("u_res"), width, height);
267
+ gl.uniform1f(this.loc("u_scale"), S.scale);
268
+ return this;
269
+ }
270
+ draw() {
271
+ this.gl.drawArrays(this.gl.TRIANGLES, 0, 3);
272
+ this.draws++;
273
+ return this;
274
+ }
275
+ }
276
+
277
+ function target(gl, width, height, format) {
278
+ const tex = gl.createTexture();
279
+ gl.bindTexture(gl.TEXTURE_2D, tex);
280
+ gl.texStorage2D(gl.TEXTURE_2D, 1, format, width, height);
281
+ gl.texParameteri(gl.TEXTURE_2D, gl.TEXTURE_MIN_FILTER, gl.LINEAR);
282
+ gl.texParameteri(gl.TEXTURE_2D, gl.TEXTURE_MAG_FILTER, gl.LINEAR);
283
+ gl.texParameteri(gl.TEXTURE_2D, gl.TEXTURE_WRAP_S, gl.CLAMP_TO_EDGE);
284
+ gl.texParameteri(gl.TEXTURE_2D, gl.TEXTURE_WRAP_T, gl.CLAMP_TO_EDGE);
285
+ const fb = gl.createFramebuffer();
286
+ gl.bindFramebuffer(gl.FRAMEBUFFER, fb);
287
+ gl.framebufferTexture2D(gl.FRAMEBUFFER, gl.COLOR_ATTACHMENT0, gl.TEXTURE_2D, tex, 0);
288
+ if (gl.checkFramebufferStatus(gl.FRAMEBUFFER) !== gl.FRAMEBUFFER_COMPLETE) throw new Error("render target incomplete");
289
+ return { tex, fb, width, height };
290
+ }
291
+
292
+ function probe() {
293
+ const canvas = document.createElement("canvas");
294
+ const gl = canvas.getContext("webgl2");
295
+ if (!gl) return { webgl2: false, renderer: null, halfFloat: false };
296
+ const info = gl.getExtension("WEBGL_debug_renderer_info");
297
+ const renderer = info ? gl.getParameter(info.UNMASKED_RENDERER_WEBGL) : "unknown (debug-info extension unavailable)";
298
+ return { webgl2: true, renderer, halfFloat: Boolean(gl.getExtension("EXT_color_buffer_float")) };
299
+ }
300
+
301
+ function init(config) {
302
+ const width = 1920 * config.scale;
303
+ const height = 1080 * config.scale;
304
+ const canvas = document.createElement("canvas");
305
+ canvas.width = width;
306
+ canvas.height = height;
307
+ const gl = canvas.getContext("webgl2", { antialias: false, alpha: false, depth: false, preserveDrawingBuffer: false, powerPreference: "high-performance" });
308
+ if (!gl) throw new Error("NO_WEBGL2");
309
+ if (!gl.getExtension("EXT_color_buffer_float")) throw new Error("NO_HALF_FLOAT_TARGET");
310
+ const info = gl.getExtension("WEBGL_debug_renderer_info");
311
+ const glyphCanvas = document.createElement("canvas");
312
+ glyphCanvas.width = width;
313
+ glyphCanvas.height = height;
314
+ const terminalCanvas = document.createElement("canvas");
315
+ terminalCanvas.width = width;
316
+ terminalCanvas.height = height;
317
+ const programs = {};
318
+ for (const [name, body] of Object.entries(FS)) programs[name] = link(gl, VERT, COMMON + body);
319
+ const lineProgram = link(gl, LINE_VS, LINE_FS);
320
+ const passes = {};
321
+ for (const name of ["swiss-grid", "terminal-ui", "tidal-gradient", "crt", "dither", "glitch"]) {
322
+ const program = { "swiss-grid": lineProgram, "terminal-ui": programs.layer, "tidal-gradient": programs.tidal, crt: programs.crt, dither: programs.dither, glitch: programs.glitch }[name];
323
+ passes[name] = new Pass(gl, name, program);
324
+ }
325
+ const tools = Object.fromEntries(Object.entries(programs).map(([name, program]) => [name, new Pass(gl, name, program)]));
326
+ const layerTex = (canvasEl) => {
327
+ const tex = gl.createTexture();
328
+ gl.bindTexture(gl.TEXTURE_2D, tex);
329
+ gl.texStorage2D(gl.TEXTURE_2D, 1, gl.RGBA8, width, height);
330
+ gl.texParameteri(gl.TEXTURE_2D, gl.TEXTURE_MIN_FILTER, gl.LINEAR);
331
+ gl.texParameteri(gl.TEXTURE_2D, gl.TEXTURE_MAG_FILTER, gl.LINEAR);
332
+ gl.texParameteri(gl.TEXTURE_2D, gl.TEXTURE_WRAP_S, gl.CLAMP_TO_EDGE);
333
+ gl.texParameteri(gl.TEXTURE_2D, gl.TEXTURE_WRAP_T, gl.CLAMP_TO_EDGE);
334
+ return { tex, canvas: canvasEl, ctx: canvasEl.getContext("2d", { willReadFrequently: true, alpha: true }) };
335
+ };
336
+ const H16 = gl.RGBA16F;
337
+ const mips = [];
338
+ let mw = 960;
339
+ let mh = 540;
340
+ for (let i = 0; i < 6; i++) {
341
+ mips.push({ down: target(gl, Math.max(2, mw), Math.max(2, mh), H16), up: target(gl, Math.max(2, mw), Math.max(2, mh), H16) });
342
+ mw >>= 1;
343
+ mh >>= 1;
344
+ }
345
+ const lineVao = gl.createVertexArray();
346
+ gl.bindVertexArray(lineVao);
347
+ const corner = gl.createBuffer();
348
+ gl.bindBuffer(gl.ARRAY_BUFFER, corner);
349
+ gl.bufferData(gl.ARRAY_BUFFER, new Float32Array([0, -1, 1, -1, 1, 1, 0, -1, 1, 1, 0, 1]), gl.STATIC_DRAW);
350
+ gl.enableVertexAttribArray(0);
351
+ gl.vertexAttribPointer(0, 2, gl.FLOAT, false, 0, 0);
352
+ const instances = gl.createBuffer();
353
+ gl.bindBuffer(gl.ARRAY_BUFFER, instances);
354
+ const stride = 9 * 4;
355
+ gl.enableVertexAttribArray(1);
356
+ gl.vertexAttribPointer(1, 4, gl.FLOAT, false, stride, 0);
357
+ gl.vertexAttribDivisor(1, 1);
358
+ gl.enableVertexAttribArray(2);
359
+ gl.vertexAttribPointer(2, 1, gl.FLOAT, false, stride, 16);
360
+ gl.vertexAttribDivisor(2, 1);
361
+ gl.enableVertexAttribArray(3);
362
+ gl.vertexAttribPointer(3, 4, gl.FLOAT, false, stride, 20);
363
+ gl.vertexAttribDivisor(3, 1);
364
+ gl.bindVertexArray(null);
365
+ const emptyVao = gl.createVertexArray();
366
+ const pbo = gl.createBuffer();
367
+ gl.bindBuffer(gl.PIXEL_PACK_BUFFER, pbo);
368
+ gl.bufferData(gl.PIXEL_PACK_BUFFER, width * height * 4, gl.STREAM_READ);
369
+ gl.bindBuffer(gl.PIXEL_PACK_BUFFER, null);
370
+ S = {
371
+ gl,
372
+ canvas,
373
+ width,
374
+ height,
375
+ scale: config.scale,
376
+ renderer: info ? gl.getParameter(info.UNMASKED_RENDERER_WEBGL) : "unknown (debug-info extension unavailable)",
377
+ glyph: layerTex(glyphCanvas),
378
+ terminal: layerTex(terminalCanvas),
379
+ scene: [target(gl, width, height, H16), target(gl, width, height, H16)],
380
+ accum: target(gl, width, height, H16),
381
+ history: target(gl, width, height, H16),
382
+ post: target(gl, width, height, H16),
383
+ out: target(gl, width, height, gl.RGBA8),
384
+ mips,
385
+ passes,
386
+ tools,
387
+ lineProgram,
388
+ lineVao,
389
+ instances,
390
+ emptyVao,
391
+ pbo,
392
+ bytes: new Uint8Array(width * height * 4),
393
+ paths: new Map(),
394
+ socket: null,
395
+ pending: 0,
396
+ acks: [],
397
+ order: config.order,
398
+ };
399
+ gl.bindVertexArray(emptyVao);
400
+ return { renderer: S.renderer, width, height };
401
+ }
402
+
403
+ function defineGlyphs(defs) {
404
+ for (const [handle, d] of defs) S.paths.set(handle, d ? new Path2D(d) : null);
405
+ }
406
+
407
+ /** Draw one sample's glyph layer; return the glyph-ink pixel count when asked (R8 mask, alpha >= 0.5). */
408
+ function drawGlyphs(sample, countInk) {
409
+ const { ctx } = S.glyph;
410
+ ctx.setTransform(1, 0, 0, 1, 0, 0);
411
+ ctx.clearRect(0, 0, S.width, S.height);
412
+ for (const group of sample.glyphs) {
413
+ ctx.fillStyle = rgba(group.fill, group.alpha);
414
+ const d = group.draws;
415
+ for (let i = 0; i < d.length; i += 4) {
416
+ const path = S.paths.get(d[i]);
417
+ if (!path) continue;
418
+ const k = d[i + 3] * S.scale;
419
+ ctx.setTransform(k, 0, 0, k, d[i + 1] * S.scale, d[i + 2] * S.scale);
420
+ ctx.fill(path);
421
+ }
422
+ }
423
+ ctx.setTransform(S.scale, 0, 0, S.scale, 0, 0);
424
+ ctx.lineCap = "round";
425
+ ctx.lineJoin = "round";
426
+ for (const stroke of sample.strokes) {
427
+ ctx.strokeStyle = rgba(stroke.fill, stroke.alpha);
428
+ ctx.lineWidth = stroke.widthPx;
429
+ ctx.beginPath();
430
+ for (const line of stroke.polylines) {
431
+ ctx.moveTo(line[0], line[1]);
432
+ for (let i = 2; i < line.length; i += 2) ctx.lineTo(line[i], line[i + 1]);
433
+ if (line.length === 2) ctx.lineTo(line[0] + 0.01, line[1]);
434
+ }
435
+ ctx.stroke();
436
+ }
437
+ let ink = null;
438
+ if (countInk) {
439
+ const data = new Uint32Array(ctx.getImageData(0, 0, S.width, S.height).data.buffer);
440
+ ink = 0;
441
+ for (let i = 0; i < data.length; i++) if (data[i] >>> 24 >= 128) ink++;
442
+ }
443
+ const gl = S.gl;
444
+ gl.bindTexture(gl.TEXTURE_2D, S.glyph.tex);
445
+ gl.texSubImage2D(gl.TEXTURE_2D, 0, 0, 0, gl.RGBA, gl.UNSIGNED_BYTE, S.glyph.canvas);
446
+ return ink;
447
+ }
448
+
449
+ function drawTerminal(terminal) {
450
+ const { ctx } = S.terminal;
451
+ ctx.setTransform(1, 0, 0, 1, 0, 0);
452
+ ctx.clearRect(0, 0, S.width, S.height);
453
+ ctx.setTransform(S.scale, 0, 0, S.scale, 0, 0);
454
+ for (const item of terminal) {
455
+ if (item.type === "terminal") {
456
+ const [x0, y0, x1, y1] = item.box;
457
+ ctx.fillStyle = item.fill;
458
+ ctx.fillRect(x0, y0, x1 - x0, y1 - y0);
459
+ ctx.strokeStyle = item.stroke;
460
+ ctx.lineWidth = item.chromePx;
461
+ ctx.strokeRect(x0 + item.chromePx / 2, y0 + item.chromePx / 2, x1 - x0 - item.chromePx, y1 - y0 - item.chromePx);
462
+ ctx.beginPath();
463
+ ctx.moveTo(x0, y0 + item.titleBarPx);
464
+ ctx.lineTo(x1, y0 + item.titleBarPx);
465
+ ctx.stroke();
466
+ item.meters.forEach((level, k) => {
467
+ const mx = x1 - 260;
468
+ const my = y1 - 44 - k * 22;
469
+ ctx.fillStyle = item.stroke;
470
+ ctx.fillRect(mx, my, 220, 8);
471
+ ctx.fillStyle = item.meterColor;
472
+ ctx.fillRect(mx, my, Math.round(220 * level), 8);
473
+ });
474
+ } else if (item.type === "caret" && item.alpha > 0) {
475
+ ctx.fillStyle = rgba(item.fill, item.alpha);
476
+ ctx.fillRect(item.x, item.y, item.w, item.h);
477
+ }
478
+ }
479
+ const gl = S.gl;
480
+ gl.bindTexture(gl.TEXTURE_2D, S.terminal.tex);
481
+ gl.texSubImage2D(gl.TEXTURE_2D, 0, 0, 0, gl.RGBA, gl.UNSIGNED_BYTE, S.terminal.canvas);
482
+ }
483
+
484
+ function composite(pass, layerTex, dest) {
485
+ const gl = S.gl;
486
+ gl.enable(gl.BLEND);
487
+ gl.blendFuncSeparate(gl.SRC_ALPHA, gl.ONE_MINUS_SRC_ALPHA, gl.ZERO, gl.ONE);
488
+ pass.use().frame(dest.fb, S.width, S.height).texture("u_layer", layerTex).draw();
489
+ gl.disable(gl.BLEND);
490
+ }
491
+
492
+ function drawLines(pass, lines, dest, log) {
493
+ const gl = S.gl;
494
+ const data = [];
495
+ for (const line of lines) {
496
+ const c = hexLinear(line.fill);
497
+ data.push(line.x0, line.y0, line.x1, line.y1, line.widthPx, c[0], c[1], c[2], line.alpha);
498
+ }
499
+ if (data.length === 0) return;
500
+ gl.useProgram(S.lineProgram);
501
+ gl.bindFramebuffer(gl.FRAMEBUFFER, dest.fb);
502
+ gl.viewport(0, 0, S.width, S.height);
503
+ gl.uniform2f(gl.getUniformLocation(S.lineProgram, "u_res"), S.width, S.height);
504
+ gl.uniform1f(gl.getUniformLocation(S.lineProgram, "u_scale"), S.scale);
505
+ gl.bindVertexArray(S.lineVao);
506
+ gl.bindBuffer(gl.ARRAY_BUFFER, S.instances);
507
+ gl.bufferData(gl.ARRAY_BUFFER, new Float32Array(data), gl.STREAM_DRAW);
508
+ gl.enable(gl.BLEND);
509
+ gl.blendFuncSeparate(gl.SRC_ALPHA, gl.ONE_MINUS_SRC_ALPHA, gl.ZERO, gl.ONE);
510
+ gl.drawArraysInstanced(gl.TRIANGLES, 0, 6, data.length / 9);
511
+ gl.disable(gl.BLEND);
512
+ gl.bindVertexArray(S.emptyVao);
513
+ pass.draws++;
514
+ if (log) pass.uniforms.u_segments = data.length / 9;
515
+ }
516
+
517
+ /** Render one sub-frame sample into a half-float scene target and return that target. */
518
+ function renderSample(sample, countInk, log) {
519
+ const gl = S.gl;
520
+ let current = S.scene[0];
521
+ let spare = S.scene[1];
522
+ S.tools.fill.use().frame(current.fb, S.width, S.height).set("u_color", hexLinear(sample.background), "f", false).draw();
523
+ const ink = drawGlyphs(sample, countInk);
524
+ let typeDrawn = false;
525
+ const drawType = () => {
526
+ if (typeDrawn) return;
527
+ composite(S.tools.layer, S.glyph.tex, current);
528
+ typeDrawn = true;
529
+ };
530
+ for (const step of sample.passes) {
531
+ const pass = S.passes[step.pass];
532
+ const u = step.uniforms;
533
+ const setAll = (p) => {
534
+ for (const [name, value] of Object.entries(u)) {
535
+ const kind = name === "u_seed" || name === "u_hitSeed" ? "u" : ["u_octaves", "u_bandingSteps", "u_ditherMode", "u_paletteSize", "u_pixelScale", "u_hit", "u_sliceCount", "u_showGuides", "u_meterCount", "u_columns"].includes(name) ? "i" : "f";
536
+ if (value === null || value === undefined) continue;
537
+ p.set(name, value, kind, log);
538
+ }
539
+ };
540
+ if (step.pass === "tidal-gradient") {
541
+ const p = pass.use().frame(current.fb, S.width, S.height);
542
+ setAll(p);
543
+ p.set("u_bg", hexLinear(step.colors.bg), "f", false).set("u_stopA", hexLinear(step.colors.stopA), "f", false).set("u_stopB", hexLinear(step.colors.stopB), "f", false).draw();
544
+ } else if (step.pass === "swiss-grid") {
545
+ if (log) pass.uniforms = { ...u };
546
+ drawLines(pass, step.lines, current, log);
547
+ } else if (step.pass === "terminal-ui") {
548
+ drawTerminal(step.terminal);
549
+ if (log) pass.uniforms = { ...u };
550
+ composite(pass, S.terminal.tex, current);
551
+ } else {
552
+ drawType();
553
+ const p = pass.use().frame(spare.fb, S.width, S.height).texture("u_src", current.tex);
554
+ if (step.pass === "crt") p.texture("u_history", S.history.tex);
555
+ setAll(p);
556
+ p.draw();
557
+ [current, spare] = [spare, current];
558
+ if (step.pass === "crt") {
559
+ S.tools.copy.use().frame(S.history.fb, S.width, S.height).texture("u_src", current.tex).set("u_weight", 1, "f", false).draw();
560
+ }
561
+ }
562
+ }
563
+ drawType();
564
+ return { result: current, ink };
565
+ }
566
+
567
+ function bloom(src, post) {
568
+ const gl = S.gl;
569
+ const first = S.mips[0].down;
570
+ S.tools.prefilter.use().frame(first.fb, first.width, first.height).texture("u_src", src.tex).set("u_texel", [1 / S.width, 1 / S.height], "f", false).set("u_threshold", post.bloomThreshold, "f", false).set("u_knee", post.bloomKnee, "f", false).draw();
571
+ for (let i = 1; i < S.mips.length; i++) {
572
+ const from = S.mips[i - 1].down;
573
+ const to = S.mips[i].down;
574
+ S.tools.down.use().frame(to.fb, to.width, to.height).texture("u_src", from.tex).set("u_texel", [1 / from.width, 1 / from.height], "f", false).draw();
575
+ }
576
+ let previous = S.mips[S.mips.length - 1].down;
577
+ for (let i = S.mips.length - 2; i >= 0; i--) {
578
+ const to = S.mips[i].up;
579
+ S.tools.up.use().frame(to.fb, to.width, to.height).texture("u_src", previous.tex).texture("u_base", S.mips[i].down.tex).set("u_texel", [1 / previous.width, 1 / previous.height], "f", false).set("u_radius", 0.5 + post.bloomRadius, "f", false).draw();
580
+ previous = to;
581
+ }
582
+ gl.bindFramebuffer(gl.FRAMEBUFFER, null);
583
+ return { bloom: S.mips[0].up.tex, halo: S.mips[3].up.tex };
584
+ }
585
+
586
+ async function readOut() {
587
+ const gl = S.gl;
588
+ gl.bindFramebuffer(gl.FRAMEBUFFER, S.out.fb);
589
+ gl.bindBuffer(gl.PIXEL_PACK_BUFFER, S.pbo);
590
+ gl.readPixels(0, 0, S.width, S.height, gl.RGBA, gl.UNSIGNED_BYTE, 0);
591
+ const sync = gl.fenceSync(gl.SYNC_GPU_COMMANDS_COMPLETE, 0);
592
+ gl.flush();
593
+ for (;;) {
594
+ const status = gl.clientWaitSync(sync, 0, 0);
595
+ if (status === gl.ALREADY_SIGNALED || status === gl.CONDITION_SATISFIED) break;
596
+ if (status === gl.WAIT_FAILED) throw new Error("GPU fence wait failed");
597
+ await yieldTask();
598
+ }
599
+ gl.deleteSync(sync);
600
+ gl.getBufferSubData(gl.PIXEL_PACK_BUFFER, 0, S.bytes);
601
+ gl.bindBuffer(gl.PIXEL_PACK_BUFFER, null);
602
+ return S.bytes;
603
+ }
604
+
605
+ /** Render one output frame: N samples averaged in linear HDR, the post chain once, 8-bit readback. */
606
+ async function renderFrame(cmd) {
607
+ const gl = S.gl;
608
+ for (const pass of Object.values(S.passes)) {
609
+ pass.draws = 0;
610
+ pass.uniforms = {};
611
+ }
612
+ const n = cmd.samples.length;
613
+ const rep = Math.floor(n / 2);
614
+ gl.bindFramebuffer(gl.FRAMEBUFFER, S.accum.fb);
615
+ gl.viewport(0, 0, S.width, S.height);
616
+ gl.clearColor(0, 0, 0, 1);
617
+ gl.clear(gl.COLOR_BUFFER_BIT);
618
+ let ink = null;
619
+ for (let i = 0; i < n; i++) {
620
+ const { result, ink: count } = renderSample(cmd.samples[i], i === rep && cmd.countInk, i === rep);
621
+ if (i === rep) ink = count;
622
+ gl.enable(gl.BLEND);
623
+ gl.blendFunc(gl.ONE, gl.ONE);
624
+ S.tools.copy.use().frame(S.accum.fb, S.width, S.height).texture("u_src", result.tex).set("u_weight", 1 / n, "f", false).draw();
625
+ gl.disable(gl.BLEND);
626
+ }
627
+ const post = cmd.post;
628
+ const { bloom: bloomTex, halo } = bloom(S.accum, post);
629
+ S.tools.post
630
+ .use()
631
+ .frame(S.post.fb, S.width, S.height)
632
+ .texture("u_src", S.accum.tex)
633
+ .texture("u_bloom", bloomTex)
634
+ .texture("u_halo", halo)
635
+ .set("u_exposure", post.exposure, "f", false)
636
+ .set("u_bloomMix", post.bloom / 2.5, "f", false)
637
+ .set("u_halation", post.halation, "f", false)
638
+ .set("u_ca", post.ca, "f", false)
639
+ .set("u_grain", post.grain, "f", false)
640
+ .set("u_vignette", post.vignette, "f", false)
641
+ .set("u_flash", post.flash, "f", false)
642
+ .set("u_grainKey", cmd.grainKey, "u", false)
643
+ .draw();
644
+ S.tools.output
645
+ .use()
646
+ .frame(S.out.fb, S.width, S.height)
647
+ .texture("u_src", S.post.tex)
648
+ .set("u_zoom", post.zoom, "f", false)
649
+ .set("u_fade", post.fade, "f", false)
650
+ .set("u_shake", post.shake, "f", false)
651
+ .set("u_invert", post.invert ? 1 : 0, "i", false)
652
+ .set("u_maskMode", 0, "i", false)
653
+ .draw();
654
+ const log = cmd.order.map((name) => ({ pass: name, draws: S.passes[name].draws, uniforms: S.passes[name].uniforms }));
655
+ if (cmd.discard) {
656
+ gl.finish();
657
+ return { log, ink };
658
+ }
659
+ const bytes = await readOut();
660
+ let mask = null;
661
+ if (cmd.mask) {
662
+ drawGlyphs(cmd.samples[rep], false);
663
+ S.tools.output
664
+ .use()
665
+ .frame(S.out.fb, S.width, S.height)
666
+ .texture("u_src", S.glyph.tex)
667
+ .set("u_zoom", post.zoom, "f", false)
668
+ .set("u_fade", 1, "f", false)
669
+ .set("u_shake", post.shake, "f", false)
670
+ .set("u_invert", 0, "i", false)
671
+ .set("u_maskMode", 1, "i", false)
672
+ .set("u_maskCurvature", cmd.maskCurvature ?? 0, "f", false)
673
+ .draw();
674
+ const frameCopy = bytes.slice();
675
+ const maskBytes = await readOut();
676
+ mask = new Uint8Array(S.width * S.height);
677
+ for (let i = 0; i < mask.length; i++) mask[i] = maskBytes[i * 4];
678
+ S.bytes.set(frameCopy);
679
+ }
680
+ return { log, ink, bytes: S.bytes, mask };
681
+ }
682
+
683
+ const toBase64 = (bytes) => {
684
+ let text = "";
685
+ for (let i = 0; i < bytes.length; i += 0x8000) text += String.fromCharCode.apply(null, bytes.subarray(i, i + 0x8000));
686
+ return btoa(text);
687
+ };
688
+
689
+ async function connect(url) {
690
+ const socket = new WebSocket(url);
691
+ socket.binaryType = "arraybuffer";
692
+ await new Promise((resolve, reject) => {
693
+ socket.onopen = resolve;
694
+ socket.onerror = () => reject(new Error("frame socket failed to open"));
695
+ });
696
+ socket.onmessage = () => {
697
+ S.pending--;
698
+ S.acks.shift()?.();
699
+ };
700
+ S.pending = 0;
701
+ S.acks = [];
702
+ S.socket = socket;
703
+ return true;
704
+ }
705
+
706
+ /** Frame entry point used by the Node driver; ships bytes over the socket or returns base64. */
707
+ async function frame(cmd) {
708
+ if (cmd.defs?.length) defineGlyphs(cmd.defs);
709
+ const result = await renderFrame(cmd);
710
+ const out = { log: result.log, ink: result.ink };
711
+ if (cmd.discard) return out;
712
+ if (result.mask) out.mask = toBase64(result.mask);
713
+ if (S.socket && !cmd.pull) {
714
+ while (S.pending >= 3) await new Promise((resolve) => S.acks.push(resolve));
715
+ S.pending++;
716
+ S.socket.send(result.bytes);
717
+ if (cmd.wait) while (S.pending > 0) await new Promise((resolve) => S.acks.push(resolve));
718
+ out.egress = "websocket";
719
+ } else {
720
+ out.rgba = toBase64(result.bytes);
721
+ out.egress = "cdp-pull";
722
+ }
723
+ return out;
724
+ }
725
+
726
+ /** Frame time for MO-D-02: from the call to readback complete, one sample, no egress. */
727
+ async function perfFrame(cmd) {
728
+ if (cmd.defs?.length) defineGlyphs(cmd.defs);
729
+ const started = performance.now();
730
+ await renderFrame({ ...cmd, discard: false, mask: false });
731
+ return performance.now() - started;
732
+ }
733
+
734
+ window.__litMotion = { probe, init, frame, perfFrame, connect };
735
+ })();