@litfamily/litmuse 0.1.11 → 0.1.12

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 (1035) hide show
  1. package/CHANGELOG.md +12 -0
  2. package/README.md +76 -10
  3. package/README_ko-KR.md +76 -10
  4. package/bin/litmuse.mjs +0 -4
  5. package/lib/bundle.mjs +1 -1
  6. package/lib/doctor.mjs +20 -31
  7. package/lib/install.mjs +26 -1
  8. package/lib/paths.mjs +1 -0
  9. package/lib/safe-write.mjs +1 -1
  10. package/package.json +2 -2
  11. package/plugin/.muse-plugin/plugin.json +11 -11
  12. package/plugin/hooks/lib/digest.mjs +4 -7
  13. package/plugin/hooks/lib/extensions.mjs +80 -0
  14. package/plugin/hooks/lib/moved.mjs +42 -0
  15. package/plugin/hooks/post-tool-use.mjs +0 -4
  16. package/plugin/hooks/session-start.mjs +6 -1
  17. package/plugin/hooks/stop.mjs +1 -7
  18. package/plugin/hooks/user-prompt-submit.mjs +4 -4
  19. package/plugin/skills/frontend-ui-ux/SKILL.md +33 -228
  20. package/plugin/skills/lit-diagram-drawer/SKILL.md +35 -212
  21. package/plugin/skills/lit-docx/SKILL.md +33 -239
  22. package/plugin/skills/lit-pptx/SKILL.md +33 -281
  23. package/plugin/skills/lit-schematic/SKILL.md +35 -224
  24. package/plugin/skills/lit-scientific-visualization/SKILL.md +34 -219
  25. package/plugin/skills/lit-typographic-motion/SKILL.md +33 -165
  26. package/plugin/skills/readme-studio/SKILL.md +35 -100
  27. package/plugin/skills/visual-qa/SKILL.md +35 -175
  28. package/lib/runtime.mjs +0 -73
  29. package/plugin/hooks/lib/motion.mjs +0 -156
  30. package/plugin/lib/office-runtime-lock/package-lock.json +0 -793
  31. package/plugin/lib/office-runtime-lock/package.json +0 -12
  32. package/plugin/lib/office-runtime-lock/requirements.lock +0 -15
  33. package/plugin/lib/office-runtime.mjs +0 -274
  34. package/plugin/lib/office_data.py +0 -493
  35. package/plugin/lib/office_runtime_bootstrap.py +0 -76
  36. package/plugin/lib/ooxml_integrity.py +0 -199
  37. package/plugin/lib/pdf_fonts.py +0 -91
  38. package/plugin/lib/render_pages.py +0 -133
  39. package/plugin/lib/strict-json.mjs +0 -143
  40. package/plugin/skills/frontend-ui-ux/ATTRIBUTION.md +0 -23
  41. package/plugin/skills/frontend-ui-ux/LICENSE +0 -21
  42. package/plugin/skills/frontend-ui-ux/PROVENANCE.json +0 -38
  43. package/plugin/skills/frontend-ui-ux/SOURCE-MANIFEST.json +0 -1060
  44. package/plugin/skills/frontend-ui-ux/THIRD-PARTY-NOTICE.txt +0 -14
  45. package/plugin/skills/frontend-ui-ux/data/design-intelligence.json +0 -1
  46. package/plugin/skills/frontend-ui-ux/examples/design-contract.example.json +0 -186
  47. package/plugin/skills/frontend-ui-ux/examples/phase-3-readme-ab/README.md +0 -9
  48. package/plugin/skills/frontend-ui-ux/kit/components.css +0 -414
  49. package/plugin/skills/frontend-ui-ux/kit/fonts.json +0 -22
  50. package/plugin/skills/frontend-ui-ux/kit/layouts/landing.html +0 -164
  51. package/plugin/skills/frontend-ui-ux/kit/layouts/settings.html +0 -114
  52. package/plugin/skills/frontend-ui-ux/kit/layouts/workspace.html +0 -115
  53. package/plugin/skills/frontend-ui-ux/kit/styles/computational-brutalism.json +0 -227
  54. package/plugin/skills/frontend-ui-ux/kit/styles/field-notes.json +0 -205
  55. package/plugin/skills/frontend-ui-ux/kit/styles/graphite.json +0 -200
  56. package/plugin/skills/frontend-ui-ux/kit/styles/meadow.json +0 -199
  57. package/plugin/skills/frontend-ui-ux/kit/styles/neo-brutalism.json +0 -222
  58. package/plugin/skills/frontend-ui-ux/kit/ui.js +0 -226
  59. package/plugin/skills/frontend-ui-ux/references/_canonical-corpus/legal/frontend-ATTRIBUTION.md +0 -217
  60. package/plugin/skills/frontend-ui-ux/references/_canonical-corpus/legal/frontend-LICENSE-Apache-2.0.txt +0 -201
  61. package/plugin/skills/frontend-ui-ux/references/_canonical-corpus/legal/root-LICENSE +0 -21
  62. package/plugin/skills/frontend-ui-ux/references/_canonical-corpus/manifest.json +0 -873
  63. package/plugin/skills/frontend-ui-ux/references/adaptive-layout.md +0 -92
  64. package/plugin/skills/frontend-ui-ux/references/brand-and-imagery.md +0 -93
  65. package/plugin/skills/frontend-ui-ux/references/complete-contract.md +0 -579
  66. package/plugin/skills/frontend-ui-ux/references/composition.md +0 -85
  67. package/plugin/skills/frontend-ui-ux/references/craft-floor.md +0 -264
  68. package/plugin/skills/frontend-ui-ux/references/creative-directions.md +0 -80
  69. package/plugin/skills/frontend-ui-ux/references/default-editorial-pixel.json +0 -79
  70. package/plugin/skills/frontend-ui-ux/references/design/README.md +0 -248
  71. package/plugin/skills/frontend-ui-ux/references/design/_INDEX.md +0 -191
  72. package/plugin/skills/frontend-ui-ux/references/design/airbnb.md +0 -393
  73. package/plugin/skills/frontend-ui-ux/references/design/airtable.md +0 -92
  74. package/plugin/skills/frontend-ui-ux/references/design/apple.md +0 -250
  75. package/plugin/skills/frontend-ui-ux/references/design/aside.md +0 -209
  76. package/plugin/skills/frontend-ui-ux/references/design/binance.md +0 -348
  77. package/plugin/skills/frontend-ui-ux/references/design/bmw.md +0 -183
  78. package/plugin/skills/frontend-ui-ux/references/design/brutalist-skill.md +0 -92
  79. package/plugin/skills/frontend-ui-ux/references/design/bugatti.md +0 -271
  80. package/plugin/skills/frontend-ui-ux/references/design/cal.md +0 -262
  81. package/plugin/skills/frontend-ui-ux/references/design/claude.md +0 -315
  82. package/plugin/skills/frontend-ui-ux/references/design/clay.md +0 -307
  83. package/plugin/skills/frontend-ui-ux/references/design/clickhouse.md +0 -284
  84. package/plugin/skills/frontend-ui-ux/references/design/clone-from-url.md +0 -65
  85. package/plugin/skills/frontend-ui-ux/references/design/cohere.md +0 -269
  86. package/plugin/skills/frontend-ui-ux/references/design/coinbase.md +0 -132
  87. package/plugin/skills/frontend-ui-ux/references/design/composio.md +0 -310
  88. package/plugin/skills/frontend-ui-ux/references/design/cursor.md +0 -312
  89. package/plugin/skills/frontend-ui-ux/references/design/design-system-architecture.md +0 -244
  90. package/plugin/skills/frontend-ui-ux/references/design/elevenlabs.md +0 -268
  91. package/plugin/skills/frontend-ui-ux/references/design/expo.md +0 -284
  92. package/plugin/skills/frontend-ui-ux/references/design/ferrari.md +0 -317
  93. package/plugin/skills/frontend-ui-ux/references/design/figma.md +0 -223
  94. package/plugin/skills/frontend-ui-ux/references/design/framer.md +0 -249
  95. package/plugin/skills/frontend-ui-ux/references/design/gpt-tasteskill.md +0 -74
  96. package/plugin/skills/frontend-ui-ux/references/design/hashicorp.md +0 -281
  97. package/plugin/skills/frontend-ui-ux/references/design/ibm.md +0 -335
  98. package/plugin/skills/frontend-ui-ux/references/design/image-to-code-skill.md +0 -1228
  99. package/plugin/skills/frontend-ui-ux/references/design/imagegen-brandkit.md +0 -798
  100. package/plugin/skills/frontend-ui-ux/references/design/imagegen-frontend-mobile.md +0 -1465
  101. package/plugin/skills/frontend-ui-ux/references/design/imagegen-frontend-web.md +0 -987
  102. package/plugin/skills/frontend-ui-ux/references/design/intercom.md +0 -149
  103. package/plugin/skills/frontend-ui-ux/references/design/kraken.md +0 -128
  104. package/plugin/skills/frontend-ui-ux/references/design/lamborghini.md +0 -291
  105. package/plugin/skills/frontend-ui-ux/references/design/layout-skill.md +0 -107
  106. package/plugin/skills/frontend-ui-ux/references/design/lazyweb.md +0 -77
  107. package/plugin/skills/frontend-ui-ux/references/design/linear.app.md +0 -370
  108. package/plugin/skills/frontend-ui-ux/references/design/lovable.md +0 -301
  109. package/plugin/skills/frontend-ui-ux/references/design/mastercard.md +0 -368
  110. package/plugin/skills/frontend-ui-ux/references/design/meta.md +0 -369
  111. package/plugin/skills/frontend-ui-ux/references/design/minimalist-skill.md +0 -85
  112. package/plugin/skills/frontend-ui-ux/references/design/minimax.md +0 -260
  113. package/plugin/skills/frontend-ui-ux/references/design/mintlify.md +0 -329
  114. package/plugin/skills/frontend-ui-ux/references/design/miro.md +0 -111
  115. package/plugin/skills/frontend-ui-ux/references/design/mistral.ai.md +0 -264
  116. package/plugin/skills/frontend-ui-ux/references/design/mongodb.md +0 -269
  117. package/plugin/skills/frontend-ui-ux/references/design/nike.md +0 -366
  118. package/plugin/skills/frontend-ui-ux/references/design/notion.md +0 -312
  119. package/plugin/skills/frontend-ui-ux/references/design/nvidia.md +0 -296
  120. package/plugin/skills/frontend-ui-ux/references/design/ollama.md +0 -270
  121. package/plugin/skills/frontend-ui-ux/references/design/opencode.ai.md +0 -284
  122. package/plugin/skills/frontend-ui-ux/references/design/output-skill.md +0 -49
  123. package/plugin/skills/frontend-ui-ux/references/design/pinterest.md +0 -233
  124. package/plugin/skills/frontend-ui-ux/references/design/playstation.md +0 -367
  125. package/plugin/skills/frontend-ui-ux/references/design/posthog.md +0 -259
  126. package/plugin/skills/frontend-ui-ux/references/design/raycast.md +0 -271
  127. package/plugin/skills/frontend-ui-ux/references/design/react-dev-tooling-skill.md +0 -230
  128. package/plugin/skills/frontend-ui-ux/references/design/redesign-skill.md +0 -178
  129. package/plugin/skills/frontend-ui-ux/references/design/renault.md +0 -314
  130. package/plugin/skills/frontend-ui-ux/references/design/replicate.md +0 -264
  131. package/plugin/skills/frontend-ui-ux/references/design/resend.md +0 -306
  132. package/plugin/skills/frontend-ui-ux/references/design/revolut.md +0 -188
  133. package/plugin/skills/frontend-ui-ux/references/design/runwayml.md +0 -247
  134. package/plugin/skills/frontend-ui-ux/references/design/sanity.md +0 -360
  135. package/plugin/skills/frontend-ui-ux/references/design/sentry.md +0 -265
  136. package/plugin/skills/frontend-ui-ux/references/design/shopify.md +0 -353
  137. package/plugin/skills/frontend-ui-ux/references/design/soft-skill.md +0 -98
  138. package/plugin/skills/frontend-ui-ux/references/design/spacex.md +0 -197
  139. package/plugin/skills/frontend-ui-ux/references/design/spotify.md +0 -249
  140. package/plugin/skills/frontend-ui-ux/references/design/starbucks.md +0 -583
  141. package/plugin/skills/frontend-ui-ux/references/design/stitch-design-example.md +0 -121
  142. package/plugin/skills/frontend-ui-ux/references/design/stitch-skill.md +0 -184
  143. package/plugin/skills/frontend-ui-ux/references/design/stripe.md +0 -325
  144. package/plugin/skills/frontend-ui-ux/references/design/supabase.md +0 -258
  145. package/plugin/skills/frontend-ui-ux/references/design/superhuman.md +0 -255
  146. package/plugin/skills/frontend-ui-ux/references/design/taste-skill.md +0 -1206
  147. package/plugin/skills/frontend-ui-ux/references/design/tesla.md +0 -289
  148. package/plugin/skills/frontend-ui-ux/references/design/theverge.md +0 -342
  149. package/plugin/skills/frontend-ui-ux/references/design/together.ai.md +0 -266
  150. package/plugin/skills/frontend-ui-ux/references/design/uber.md +0 -298
  151. package/plugin/skills/frontend-ui-ux/references/design/vercel.md +0 -313
  152. package/plugin/skills/frontend-ui-ux/references/design/vodafone.md +0 -426
  153. package/plugin/skills/frontend-ui-ux/references/design/voltagent.md +0 -326
  154. package/plugin/skills/frontend-ui-ux/references/design/warp.md +0 -256
  155. package/plugin/skills/frontend-ui-ux/references/design/webflow.md +0 -95
  156. package/plugin/skills/frontend-ui-ux/references/design/wired.md +0 -281
  157. package/plugin/skills/frontend-ui-ux/references/design/wise.md +0 -176
  158. package/plugin/skills/frontend-ui-ux/references/design/x.ai.md +0 -260
  159. package/plugin/skills/frontend-ui-ux/references/design/zapier.md +0 -331
  160. package/plugin/skills/frontend-ui-ux/references/designpowers/EVIDENCE.md +0 -97
  161. package/plugin/skills/frontend-ui-ux/references/designpowers/README.md +0 -48
  162. package/plugin/skills/frontend-ui-ux/references/designpowers/UPSTREAM.md +0 -80
  163. package/plugin/skills/frontend-ui-ux/references/designpowers/lane-a-direction.md +0 -64
  164. package/plugin/skills/frontend-ui-ux/references/designpowers/lane-b-execution.md +0 -65
  165. package/plugin/skills/frontend-ui-ux/references/designpowers/lane-c-review.md +0 -65
  166. package/plugin/skills/frontend-ui-ux/references/designpowers/lane-d-memory.md +0 -83
  167. package/plugin/skills/frontend-ui-ux/references/designpowers/orchestration.md +0 -80
  168. package/plugin/skills/frontend-ui-ux/references/designpowers/routing.md +0 -79
  169. package/plugin/skills/frontend-ui-ux/references/designpowers/vendor/LICENSE +0 -21
  170. package/plugin/skills/frontend-ui-ux/references/designpowers/vendor/agents/accessibility-reviewer.md +0 -83
  171. package/plugin/skills/frontend-ui-ux/references/designpowers/vendor/agents/content-writer.md +0 -132
  172. package/plugin/skills/frontend-ui-ux/references/designpowers/vendor/agents/design-builder.md +0 -109
  173. package/plugin/skills/frontend-ui-ux/references/designpowers/vendor/agents/design-critic.md +0 -89
  174. package/plugin/skills/frontend-ui-ux/references/designpowers/vendor/agents/design-lead.md +0 -113
  175. package/plugin/skills/frontend-ui-ux/references/designpowers/vendor/agents/design-scout.md +0 -78
  176. package/plugin/skills/frontend-ui-ux/references/designpowers/vendor/agents/design-strategist.md +0 -121
  177. package/plugin/skills/frontend-ui-ux/references/designpowers/vendor/agents/heuristic-evaluator.md +0 -268
  178. package/plugin/skills/frontend-ui-ux/references/designpowers/vendor/agents/inspiration-scout.md +0 -107
  179. package/plugin/skills/frontend-ui-ux/references/designpowers/vendor/agents/motion-designer.md +0 -120
  180. package/plugin/skills/frontend-ui-ux/references/designpowers/vendor/skills/accessible-content/reference.md +0 -101
  181. package/plugin/skills/frontend-ui-ux/references/designpowers/vendor/skills/adaptive-interfaces/reference.md +0 -109
  182. package/plugin/skills/frontend-ui-ux/references/designpowers/vendor/skills/cognitive-accessibility/reference.md +0 -107
  183. package/plugin/skills/frontend-ui-ux/references/designpowers/vendor/skills/design-debate/reference.md +0 -199
  184. package/plugin/skills/frontend-ui-ux/references/designpowers/vendor/skills/design-debt-tracker/reference.md +0 -174
  185. package/plugin/skills/frontend-ui-ux/references/designpowers/vendor/skills/design-handoff/reference.md +0 -125
  186. package/plugin/skills/frontend-ui-ux/references/designpowers/vendor/skills/design-md/reference.md +0 -106
  187. package/plugin/skills/frontend-ui-ux/references/designpowers/vendor/skills/design-retrospective/reference.md +0 -266
  188. package/plugin/skills/frontend-ui-ux/references/designpowers/vendor/skills/design-review/reference.md +0 -123
  189. package/plugin/skills/frontend-ui-ux/references/designpowers/vendor/skills/design-system-alignment/reference.md +0 -120
  190. package/plugin/skills/frontend-ui-ux/references/designpowers/vendor/skills/designpowers-critique/reference.md +0 -164
  191. package/plugin/skills/frontend-ui-ux/references/designpowers/vendor/skills/heuristic-evaluation/reference.md +0 -85
  192. package/plugin/skills/frontend-ui-ux/references/designpowers/vendor/skills/inclusive-personas/reference.md +0 -98
  193. package/plugin/skills/frontend-ui-ux/references/designpowers/vendor/skills/inspiration-scouting/reference.md +0 -165
  194. package/plugin/skills/frontend-ui-ux/references/designpowers/vendor/skills/interaction-design/reference.md +0 -122
  195. package/plugin/skills/frontend-ui-ux/references/designpowers/vendor/skills/motion-choreography/reference.md +0 -81
  196. package/plugin/skills/frontend-ui-ux/references/designpowers/vendor/skills/research-planning/reference.md +0 -96
  197. package/plugin/skills/frontend-ui-ux/references/designpowers/vendor/skills/responsive-patterns/reference.md +0 -77
  198. package/plugin/skills/frontend-ui-ux/references/designpowers/vendor/skills/synthetic-user-testing/reference.md +0 -192
  199. package/plugin/skills/frontend-ui-ux/references/designpowers/vendor/skills/taste-feedback/reference.md +0 -165
  200. package/plugin/skills/frontend-ui-ux/references/designpowers/vendor/skills/taste-report/reference.md +0 -78
  201. package/plugin/skills/frontend-ui-ux/references/designpowers/vendor/skills/token-architecture/reference.md +0 -75
  202. package/plugin/skills/frontend-ui-ux/references/designpowers/vendor/skills/ui-composition/reference.md +0 -117
  203. package/plugin/skills/frontend-ui-ux/references/designpowers/vendor/skills/usability-testing/reference.md +0 -78
  204. package/plugin/skills/frontend-ui-ux/references/designpowers/vendor/skills/verification-before-shipping/reference.md +0 -125
  205. package/plugin/skills/frontend-ui-ux/references/designpowers/vendor/skills/voice-and-tone/reference.md +0 -79
  206. package/plugin/skills/frontend-ui-ux/references/designpowers/vendor/skills/writing-design-plans/reference.md +0 -119
  207. package/plugin/skills/frontend-ui-ux/references/evidence-review.md +0 -126
  208. package/plugin/skills/frontend-ui-ux/references/house-styles.md +0 -234
  209. package/plugin/skills/frontend-ui-ux/references/implementation-platforms.md +0 -109
  210. package/plugin/skills/frontend-ui-ux/references/inclusive-interface.md +0 -92
  211. package/plugin/skills/frontend-ui-ux/references/interaction-motion.md +0 -47
  212. package/plugin/skills/frontend-ui-ux/references/motion-guide.md +0 -130
  213. package/plugin/skills/frontend-ui-ux/references/operating-lanes.md +0 -92
  214. package/plugin/skills/frontend-ui-ux/references/perfection/README.md +0 -160
  215. package/plugin/skills/frontend-ui-ux/references/perfection/react-perf-tooling.md +0 -127
  216. package/plugin/skills/frontend-ui-ux/references/performance-delivery.md +0 -93
  217. package/plugin/skills/frontend-ui-ux/references/product-direction.md +0 -84
  218. package/plugin/skills/frontend-ui-ux/references/production-interview.md +0 -17
  219. package/plugin/skills/frontend-ui-ux/references/redesign-playbook.md +0 -97
  220. package/plugin/skills/frontend-ui-ux/references/slop-register.md +0 -150
  221. package/plugin/skills/frontend-ui-ux/references/system-foundations.md +0 -84
  222. package/plugin/skills/frontend-ui-ux/references/taste-direction.md +0 -86
  223. package/plugin/skills/frontend-ui-ux/references/ui-ux-db/README.md +0 -659
  224. package/plugin/skills/frontend-ui-ux/references/ui-ux-db/data/charts.csv +0 -26
  225. package/plugin/skills/frontend-ui-ux/references/ui-ux-db/data/colors.csv +0 -162
  226. package/plugin/skills/frontend-ui-ux/references/ui-ux-db/data/icons.csv +0 -106
  227. package/plugin/skills/frontend-ui-ux/references/ui-ux-db/data/landing.csv +0 -35
  228. package/plugin/skills/frontend-ui-ux/references/ui-ux-db/data/products.csv +0 -162
  229. package/plugin/skills/frontend-ui-ux/references/ui-ux-db/data/react-performance.csv +0 -45
  230. package/plugin/skills/frontend-ui-ux/references/ui-ux-db/data/stacks/astro.csv +0 -54
  231. package/plugin/skills/frontend-ui-ux/references/ui-ux-db/data/stacks/flutter.csv +0 -53
  232. package/plugin/skills/frontend-ui-ux/references/ui-ux-db/data/stacks/html-tailwind.csv +0 -56
  233. package/plugin/skills/frontend-ui-ux/references/ui-ux-db/data/stacks/jetpack-compose.csv +0 -53
  234. package/plugin/skills/frontend-ui-ux/references/ui-ux-db/data/stacks/nextjs.csv +0 -53
  235. package/plugin/skills/frontend-ui-ux/references/ui-ux-db/data/stacks/nuxt-ui.csv +0 -51
  236. package/plugin/skills/frontend-ui-ux/references/ui-ux-db/data/stacks/nuxtjs.csv +0 -59
  237. package/plugin/skills/frontend-ui-ux/references/ui-ux-db/data/stacks/react-native.csv +0 -52
  238. package/plugin/skills/frontend-ui-ux/references/ui-ux-db/data/stacks/react.csv +0 -54
  239. package/plugin/skills/frontend-ui-ux/references/ui-ux-db/data/stacks/shadcn.csv +0 -61
  240. package/plugin/skills/frontend-ui-ux/references/ui-ux-db/data/stacks/svelte.csv +0 -54
  241. package/plugin/skills/frontend-ui-ux/references/ui-ux-db/data/stacks/swiftui.csv +0 -51
  242. package/plugin/skills/frontend-ui-ux/references/ui-ux-db/data/stacks/vue.csv +0 -50
  243. package/plugin/skills/frontend-ui-ux/references/ui-ux-db/data/styles.csv +0 -85
  244. package/plugin/skills/frontend-ui-ux/references/ui-ux-db/data/typography.csv +0 -74
  245. package/plugin/skills/frontend-ui-ux/references/ui-ux-db/data/ui-reasoning.csv +0 -162
  246. package/plugin/skills/frontend-ui-ux/references/ui-ux-db/data/ux-guidelines.csv +0 -100
  247. package/plugin/skills/frontend-ui-ux/references/ui-ux-db/data/web-interface.csv +0 -31
  248. package/plugin/skills/frontend-ui-ux/references/ui-ux-db/scripts/core.py +0 -262
  249. package/plugin/skills/frontend-ui-ux/references/ui-ux-db/scripts/design_system.py +0 -1148
  250. package/plugin/skills/frontend-ui-ux/references/ui-ux-db/scripts/search.py +0 -114
  251. package/plugin/skills/frontend-ui-ux/references/visual-language.md +0 -84
  252. package/plugin/skills/frontend-ui-ux/references/visual-reconstruction.md +0 -51
  253. package/plugin/skills/frontend-ui-ux/schemas/design-contract-v1alpha1.schema.json +0 -306
  254. package/plugin/skills/frontend-ui-ux/schemas/design-contract-v1beta1.schema.json +0 -291
  255. package/plugin/skills/frontend-ui-ux/schemas/design-contract-v1beta2.schema.json +0 -311
  256. package/plugin/skills/frontend-ui-ux/scripts/chrome-driver.mjs +0 -202
  257. package/plugin/skills/frontend-ui-ux/scripts/design-contract-format.mjs +0 -286
  258. package/plugin/skills/frontend-ui-ux/scripts/design-contract-inventory-rules.mjs +0 -354
  259. package/plugin/skills/frontend-ui-ux/scripts/design-contract-rules.mjs +0 -361
  260. package/plugin/skills/frontend-ui-ux/scripts/design-contract-surface-rules.mjs +0 -313
  261. package/plugin/skills/frontend-ui-ux/scripts/design-data.mjs +0 -68
  262. package/plugin/skills/frontend-ui-ux/scripts/design-lock.mjs +0 -400
  263. package/plugin/skills/frontend-ui-ux/scripts/errors.mjs +0 -12
  264. package/plugin/skills/frontend-ui-ux/scripts/import-design-intelligence.mjs +0 -124
  265. package/plugin/skills/frontend-ui-ux/scripts/interface-probe-lock.mjs +0 -196
  266. package/plugin/skills/frontend-ui-ux/scripts/interface-probe-page.mjs +0 -1555
  267. package/plugin/skills/frontend-ui-ux/scripts/interface-probe-rules.mjs +0 -153
  268. package/plugin/skills/frontend-ui-ux/scripts/interface-probe-server.mjs +0 -57
  269. package/plugin/skills/frontend-ui-ux/scripts/interface-probe-static.mjs +0 -133
  270. package/plugin/skills/frontend-ui-ux/scripts/interface-probe.mjs +0 -341
  271. package/plugin/skills/frontend-ui-ux/scripts/json-boundary.mjs +0 -63
  272. package/plugin/skills/frontend-ui-ux/scripts/pixel-art.mjs +0 -60
  273. package/plugin/skills/frontend-ui-ux/scripts/query-design-intelligence.mjs +0 -106
  274. package/plugin/skills/frontend-ui-ux/scripts/search.mjs +0 -43
  275. package/plugin/skills/frontend-ui-ux/scripts/source-replay.mjs +0 -153
  276. package/plugin/skills/frontend-ui-ux/scripts/validate-design-contract.mjs +0 -52
  277. package/plugin/skills/frontend-ui-ux/scripts/verify-corpus.mjs +0 -90
  278. package/plugin/skills/lit-diagram-drawer/NOTICE +0 -33
  279. package/plugin/skills/lit-diagram-drawer/assets/examples/type-architecture-dark.html +0 -1
  280. package/plugin/skills/lit-diagram-drawer/assets/examples/type-architecture-full.html +0 -1
  281. package/plugin/skills/lit-diagram-drawer/assets/examples/type-architecture-light.html +0 -1
  282. package/plugin/skills/lit-diagram-drawer/assets/examples/type-bar-dark.html +0 -1
  283. package/plugin/skills/lit-diagram-drawer/assets/examples/type-bar-full.html +0 -1
  284. package/plugin/skills/lit-diagram-drawer/assets/examples/type-bar-light.html +0 -1
  285. package/plugin/skills/lit-diagram-drawer/assets/examples/type-beeswarm-dark.html +0 -1
  286. package/plugin/skills/lit-diagram-drawer/assets/examples/type-beeswarm-full.html +0 -1
  287. package/plugin/skills/lit-diagram-drawer/assets/examples/type-beeswarm-light.html +0 -1
  288. package/plugin/skills/lit-diagram-drawer/assets/examples/type-bubble-dark.html +0 -1
  289. package/plugin/skills/lit-diagram-drawer/assets/examples/type-bubble-full.html +0 -1
  290. package/plugin/skills/lit-diagram-drawer/assets/examples/type-bubble-light.html +0 -1
  291. package/plugin/skills/lit-diagram-drawer/assets/examples/type-bump-dark.html +0 -1
  292. package/plugin/skills/lit-diagram-drawer/assets/examples/type-bump-full.html +0 -1
  293. package/plugin/skills/lit-diagram-drawer/assets/examples/type-bump-light.html +0 -1
  294. package/plugin/skills/lit-diagram-drawer/assets/examples/type-data-flow-dark.html +0 -1
  295. package/plugin/skills/lit-diagram-drawer/assets/examples/type-data-flow-full.html +0 -1
  296. package/plugin/skills/lit-diagram-drawer/assets/examples/type-data-flow-light.html +0 -1
  297. package/plugin/skills/lit-diagram-drawer/assets/examples/type-datalake-dark.html +0 -1
  298. package/plugin/skills/lit-diagram-drawer/assets/examples/type-datalake-full.html +0 -1
  299. package/plugin/skills/lit-diagram-drawer/assets/examples/type-datalake-light.html +0 -1
  300. package/plugin/skills/lit-diagram-drawer/assets/examples/type-db-schema-dark.html +0 -1
  301. package/plugin/skills/lit-diagram-drawer/assets/examples/type-db-schema-full.html +0 -1
  302. package/plugin/skills/lit-diagram-drawer/assets/examples/type-db-schema-light.html +0 -1
  303. package/plugin/skills/lit-diagram-drawer/assets/examples/type-dependency-dark.html +0 -1
  304. package/plugin/skills/lit-diagram-drawer/assets/examples/type-dependency-full.html +0 -1
  305. package/plugin/skills/lit-diagram-drawer/assets/examples/type-dependency-light.html +0 -1
  306. package/plugin/skills/lit-diagram-drawer/assets/examples/type-deployment-dark.html +0 -1
  307. package/plugin/skills/lit-diagram-drawer/assets/examples/type-deployment-full.html +0 -1
  308. package/plugin/skills/lit-diagram-drawer/assets/examples/type-deployment-light.html +0 -1
  309. package/plugin/skills/lit-diagram-drawer/assets/examples/type-dp-integration-dark.html +0 -1
  310. package/plugin/skills/lit-diagram-drawer/assets/examples/type-dp-integration-full.html +0 -1
  311. package/plugin/skills/lit-diagram-drawer/assets/examples/type-dp-integration-light.html +0 -1
  312. package/plugin/skills/lit-diagram-drawer/assets/examples/type-dp-security-matrix-dark.html +0 -1
  313. package/plugin/skills/lit-diagram-drawer/assets/examples/type-dp-security-matrix-full.html +0 -1
  314. package/plugin/skills/lit-diagram-drawer/assets/examples/type-dp-security-matrix-light.html +0 -1
  315. package/plugin/skills/lit-diagram-drawer/assets/examples/type-er-dark.html +0 -1
  316. package/plugin/skills/lit-diagram-drawer/assets/examples/type-er-full.html +0 -1
  317. package/plugin/skills/lit-diagram-drawer/assets/examples/type-er-light.html +0 -1
  318. package/plugin/skills/lit-diagram-drawer/assets/examples/type-fishbone-dark.html +0 -1
  319. package/plugin/skills/lit-diagram-drawer/assets/examples/type-fishbone-full.html +0 -1
  320. package/plugin/skills/lit-diagram-drawer/assets/examples/type-fishbone-light.html +0 -1
  321. package/plugin/skills/lit-diagram-drawer/assets/examples/type-flowchart-dark.html +0 -1
  322. package/plugin/skills/lit-diagram-drawer/assets/examples/type-flowchart-full.html +0 -1
  323. package/plugin/skills/lit-diagram-drawer/assets/examples/type-flowchart-light.html +0 -1
  324. package/plugin/skills/lit-diagram-drawer/assets/examples/type-gantt-dark.html +0 -1
  325. package/plugin/skills/lit-diagram-drawer/assets/examples/type-gantt-full.html +0 -1
  326. package/plugin/skills/lit-diagram-drawer/assets/examples/type-gantt-light.html +0 -1
  327. package/plugin/skills/lit-diagram-drawer/assets/examples/type-heatmap-dark.html +0 -1
  328. package/plugin/skills/lit-diagram-drawer/assets/examples/type-heatmap-full.html +0 -1
  329. package/plugin/skills/lit-diagram-drawer/assets/examples/type-heatmap-light.html +0 -1
  330. package/plugin/skills/lit-diagram-drawer/assets/examples/type-high-level-dark.html +0 -1
  331. package/plugin/skills/lit-diagram-drawer/assets/examples/type-high-level-full.html +0 -1
  332. package/plugin/skills/lit-diagram-drawer/assets/examples/type-high-level-light.html +0 -1
  333. package/plugin/skills/lit-diagram-drawer/assets/examples/type-high-level-vertical-dark.html +0 -1
  334. package/plugin/skills/lit-diagram-drawer/assets/examples/type-high-level-vertical-full.html +0 -1
  335. package/plugin/skills/lit-diagram-drawer/assets/examples/type-high-level-vertical-light.html +0 -1
  336. package/plugin/skills/lit-diagram-drawer/assets/examples/type-import-drawio-dark.html +0 -1
  337. package/plugin/skills/lit-diagram-drawer/assets/examples/type-import-drawio-full.html +0 -1
  338. package/plugin/skills/lit-diagram-drawer/assets/examples/type-import-drawio-light.html +0 -1
  339. package/plugin/skills/lit-diagram-drawer/assets/examples/type-import-excalidraw-dark.html +0 -1
  340. package/plugin/skills/lit-diagram-drawer/assets/examples/type-import-excalidraw-full.html +0 -1
  341. package/plugin/skills/lit-diagram-drawer/assets/examples/type-import-excalidraw-light.html +0 -1
  342. package/plugin/skills/lit-diagram-drawer/assets/examples/type-import-mermaid-dark.html +0 -1
  343. package/plugin/skills/lit-diagram-drawer/assets/examples/type-import-mermaid-full.html +0 -1
  344. package/plugin/skills/lit-diagram-drawer/assets/examples/type-import-mermaid-light.html +0 -1
  345. package/plugin/skills/lit-diagram-drawer/assets/examples/type-it-state-dark.html +0 -1
  346. package/plugin/skills/lit-diagram-drawer/assets/examples/type-it-state-full.html +0 -1
  347. package/plugin/skills/lit-diagram-drawer/assets/examples/type-it-state-light.html +0 -1
  348. package/plugin/skills/lit-diagram-drawer/assets/examples/type-journey-dark.html +0 -1
  349. package/plugin/skills/lit-diagram-drawer/assets/examples/type-journey-full.html +0 -1
  350. package/plugin/skills/lit-diagram-drawer/assets/examples/type-journey-light.html +0 -1
  351. package/plugin/skills/lit-diagram-drawer/assets/examples/type-kanban-dark.html +0 -1
  352. package/plugin/skills/lit-diagram-drawer/assets/examples/type-kanban-full.html +0 -1
  353. package/plugin/skills/lit-diagram-drawer/assets/examples/type-kanban-light.html +0 -1
  354. package/plugin/skills/lit-diagram-drawer/assets/examples/type-layers-dark.html +0 -1
  355. package/plugin/skills/lit-diagram-drawer/assets/examples/type-layers-full.html +0 -1
  356. package/plugin/skills/lit-diagram-drawer/assets/examples/type-layers-light.html +0 -1
  357. package/plugin/skills/lit-diagram-drawer/assets/examples/type-line-dark.html +0 -1
  358. package/plugin/skills/lit-diagram-drawer/assets/examples/type-line-full.html +0 -1
  359. package/plugin/skills/lit-diagram-drawer/assets/examples/type-line-light.html +0 -1
  360. package/plugin/skills/lit-diagram-drawer/assets/examples/type-loop-dark.html +0 -1
  361. package/plugin/skills/lit-diagram-drawer/assets/examples/type-loop-full.html +0 -1
  362. package/plugin/skills/lit-diagram-drawer/assets/examples/type-loop-light.html +0 -1
  363. package/plugin/skills/lit-diagram-drawer/assets/examples/type-loop-terminal-dark.html +0 -1
  364. package/plugin/skills/lit-diagram-drawer/assets/examples/type-loop-terminal-full.html +0 -1
  365. package/plugin/skills/lit-diagram-drawer/assets/examples/type-loop-terminal-light.html +0 -1
  366. package/plugin/skills/lit-diagram-drawer/assets/examples/type-marimekko-dark.html +0 -1
  367. package/plugin/skills/lit-diagram-drawer/assets/examples/type-marimekko-full.html +0 -1
  368. package/plugin/skills/lit-diagram-drawer/assets/examples/type-marimekko-light.html +0 -1
  369. package/plugin/skills/lit-diagram-drawer/assets/examples/type-medallion-dark.html +0 -1
  370. package/plugin/skills/lit-diagram-drawer/assets/examples/type-medallion-full.html +0 -1
  371. package/plugin/skills/lit-diagram-drawer/assets/examples/type-medallion-light.html +0 -1
  372. package/plugin/skills/lit-diagram-drawer/assets/examples/type-nested-dark.html +0 -1
  373. package/plugin/skills/lit-diagram-drawer/assets/examples/type-nested-full.html +0 -1
  374. package/plugin/skills/lit-diagram-drawer/assets/examples/type-nested-light.html +0 -1
  375. package/plugin/skills/lit-diagram-drawer/assets/examples/type-org-chart-dark.html +0 -1
  376. package/plugin/skills/lit-diagram-drawer/assets/examples/type-org-chart-full.html +0 -1
  377. package/plugin/skills/lit-diagram-drawer/assets/examples/type-org-chart-light.html +0 -1
  378. package/plugin/skills/lit-diagram-drawer/assets/examples/type-paved-road-animated-dark.html +0 -1
  379. package/plugin/skills/lit-diagram-drawer/assets/examples/type-paved-road-animated-full.html +0 -1
  380. package/plugin/skills/lit-diagram-drawer/assets/examples/type-paved-road-animated-light.html +0 -1
  381. package/plugin/skills/lit-diagram-drawer/assets/examples/type-polar-dark.html +0 -1
  382. package/plugin/skills/lit-diagram-drawer/assets/examples/type-polar-full.html +0 -1
  383. package/plugin/skills/lit-diagram-drawer/assets/examples/type-polar-light.html +0 -1
  384. package/plugin/skills/lit-diagram-drawer/assets/examples/type-policy-trace-animated-dark.html +0 -1
  385. package/plugin/skills/lit-diagram-drawer/assets/examples/type-policy-trace-animated-full.html +0 -1
  386. package/plugin/skills/lit-diagram-drawer/assets/examples/type-policy-trace-animated-light.html +0 -1
  387. package/plugin/skills/lit-diagram-drawer/assets/examples/type-process-dark.html +0 -1
  388. package/plugin/skills/lit-diagram-drawer/assets/examples/type-process-full.html +0 -1
  389. package/plugin/skills/lit-diagram-drawer/assets/examples/type-process-light.html +0 -1
  390. package/plugin/skills/lit-diagram-drawer/assets/examples/type-pyramid-dark.html +0 -1
  391. package/plugin/skills/lit-diagram-drawer/assets/examples/type-pyramid-full.html +0 -1
  392. package/plugin/skills/lit-diagram-drawer/assets/examples/type-pyramid-light.html +0 -1
  393. package/plugin/skills/lit-diagram-drawer/assets/examples/type-quadrant-consultant-dark.html +0 -1
  394. package/plugin/skills/lit-diagram-drawer/assets/examples/type-quadrant-consultant-full.html +0 -1
  395. package/plugin/skills/lit-diagram-drawer/assets/examples/type-quadrant-consultant-light.html +0 -1
  396. package/plugin/skills/lit-diagram-drawer/assets/examples/type-quadrant-dark.html +0 -1
  397. package/plugin/skills/lit-diagram-drawer/assets/examples/type-quadrant-full.html +0 -1
  398. package/plugin/skills/lit-diagram-drawer/assets/examples/type-quadrant-light.html +0 -1
  399. package/plugin/skills/lit-diagram-drawer/assets/examples/type-queue-animated-dark.html +0 -1
  400. package/plugin/skills/lit-diagram-drawer/assets/examples/type-queue-animated-full.html +0 -1
  401. package/plugin/skills/lit-diagram-drawer/assets/examples/type-queue-animated-light.html +0 -1
  402. package/plugin/skills/lit-diagram-drawer/assets/examples/type-radar-dark.html +0 -1
  403. package/plugin/skills/lit-diagram-drawer/assets/examples/type-radar-full.html +0 -1
  404. package/plugin/skills/lit-diagram-drawer/assets/examples/type-radar-light.html +0 -1
  405. package/plugin/skills/lit-diagram-drawer/assets/examples/type-ridgeline-dark.html +0 -1
  406. package/plugin/skills/lit-diagram-drawer/assets/examples/type-ridgeline-full.html +0 -1
  407. package/plugin/skills/lit-diagram-drawer/assets/examples/type-ridgeline-light.html +0 -1
  408. package/plugin/skills/lit-diagram-drawer/assets/examples/type-sankey-dark.html +0 -1
  409. package/plugin/skills/lit-diagram-drawer/assets/examples/type-sankey-full.html +0 -1
  410. package/plugin/skills/lit-diagram-drawer/assets/examples/type-sankey-light.html +0 -1
  411. package/plugin/skills/lit-diagram-drawer/assets/examples/type-scatter-dark.html +0 -1
  412. package/plugin/skills/lit-diagram-drawer/assets/examples/type-scatter-full.html +0 -1
  413. package/plugin/skills/lit-diagram-drawer/assets/examples/type-scatter-light.html +0 -1
  414. package/plugin/skills/lit-diagram-drawer/assets/examples/type-sequence-dark.html +0 -1
  415. package/plugin/skills/lit-diagram-drawer/assets/examples/type-sequence-full.html +0 -1
  416. package/plugin/skills/lit-diagram-drawer/assets/examples/type-sequence-light.html +0 -1
  417. package/plugin/skills/lit-diagram-drawer/assets/examples/type-sequence-oauth-dark.html +0 -1
  418. package/plugin/skills/lit-diagram-drawer/assets/examples/type-sequence-oauth-full.html +0 -1
  419. package/plugin/skills/lit-diagram-drawer/assets/examples/type-sequence-oauth-light.html +0 -1
  420. package/plugin/skills/lit-diagram-drawer/assets/examples/type-slopegraph-dark.html +0 -1
  421. package/plugin/skills/lit-diagram-drawer/assets/examples/type-slopegraph-full.html +0 -1
  422. package/plugin/skills/lit-diagram-drawer/assets/examples/type-slopegraph-light.html +0 -1
  423. package/plugin/skills/lit-diagram-drawer/assets/examples/type-state-dark.html +0 -1
  424. package/plugin/skills/lit-diagram-drawer/assets/examples/type-state-full.html +0 -1
  425. package/plugin/skills/lit-diagram-drawer/assets/examples/type-state-lifecycle-dark.html +0 -1
  426. package/plugin/skills/lit-diagram-drawer/assets/examples/type-state-lifecycle-full.html +0 -1
  427. package/plugin/skills/lit-diagram-drawer/assets/examples/type-state-lifecycle-light.html +0 -1
  428. package/plugin/skills/lit-diagram-drawer/assets/examples/type-state-light.html +0 -1
  429. package/plugin/skills/lit-diagram-drawer/assets/examples/type-story-map-dark.html +0 -1
  430. package/plugin/skills/lit-diagram-drawer/assets/examples/type-story-map-full.html +0 -1
  431. package/plugin/skills/lit-diagram-drawer/assets/examples/type-story-map-light.html +0 -1
  432. package/plugin/skills/lit-diagram-drawer/assets/examples/type-streamgraph-dark.html +0 -1
  433. package/plugin/skills/lit-diagram-drawer/assets/examples/type-streamgraph-full.html +0 -1
  434. package/plugin/skills/lit-diagram-drawer/assets/examples/type-streamgraph-light.html +0 -1
  435. package/plugin/skills/lit-diagram-drawer/assets/examples/type-swimlane-dark.html +0 -1
  436. package/plugin/skills/lit-diagram-drawer/assets/examples/type-swimlane-full.html +0 -1
  437. package/plugin/skills/lit-diagram-drawer/assets/examples/type-swimlane-light.html +0 -1
  438. package/plugin/skills/lit-diagram-drawer/assets/examples/type-timeline-dark.html +0 -1
  439. package/plugin/skills/lit-diagram-drawer/assets/examples/type-timeline-full.html +0 -1
  440. package/plugin/skills/lit-diagram-drawer/assets/examples/type-timeline-light.html +0 -1
  441. package/plugin/skills/lit-diagram-drawer/assets/examples/type-tree-block-decomposition-dark.html +0 -1
  442. package/plugin/skills/lit-diagram-drawer/assets/examples/type-tree-block-decomposition-full.html +0 -1
  443. package/plugin/skills/lit-diagram-drawer/assets/examples/type-tree-block-decomposition-light.html +0 -1
  444. package/plugin/skills/lit-diagram-drawer/assets/examples/type-tree-dark.html +0 -1
  445. package/plugin/skills/lit-diagram-drawer/assets/examples/type-tree-full.html +0 -1
  446. package/plugin/skills/lit-diagram-drawer/assets/examples/type-tree-light.html +0 -1
  447. package/plugin/skills/lit-diagram-drawer/assets/examples/type-treemap-dark.html +0 -1
  448. package/plugin/skills/lit-diagram-drawer/assets/examples/type-treemap-full.html +0 -1
  449. package/plugin/skills/lit-diagram-drawer/assets/examples/type-treemap-light.html +0 -1
  450. package/plugin/skills/lit-diagram-drawer/assets/examples/type-uml-class-dark.html +0 -1
  451. package/plugin/skills/lit-diagram-drawer/assets/examples/type-uml-class-full.html +0 -1
  452. package/plugin/skills/lit-diagram-drawer/assets/examples/type-uml-class-light.html +0 -1
  453. package/plugin/skills/lit-diagram-drawer/assets/examples/type-venn-dark.html +0 -1
  454. package/plugin/skills/lit-diagram-drawer/assets/examples/type-venn-full.html +0 -1
  455. package/plugin/skills/lit-diagram-drawer/assets/examples/type-venn-light.html +0 -1
  456. package/plugin/skills/lit-diagram-drawer/assets/examples/type-wardley-dark.html +0 -1
  457. package/plugin/skills/lit-diagram-drawer/assets/examples/type-wardley-full.html +0 -1
  458. package/plugin/skills/lit-diagram-drawer/assets/examples/type-wardley-light.html +0 -1
  459. package/plugin/skills/lit-diagram-drawer/assets/examples/type-waterfall-dark.html +0 -1
  460. package/plugin/skills/lit-diagram-drawer/assets/examples/type-waterfall-full.html +0 -1
  461. package/plugin/skills/lit-diagram-drawer/assets/examples/type-waterfall-light.html +0 -1
  462. package/plugin/skills/lit-diagram-drawer/assets/fonts/OFL.txt +0 -94
  463. package/plugin/skills/lit-diagram-drawer/assets/fonts/PretendardVariable.woff2 +0 -0
  464. package/plugin/skills/lit-diagram-drawer/assets/fonts/provenance.json +0 -22
  465. package/plugin/skills/lit-diagram-drawer/assets/icons.html +0 -231
  466. package/plugin/skills/lit-diagram-drawer/assets/index.html +0 -1
  467. package/plugin/skills/lit-diagram-drawer/assets/licenses/devicon-MIT.txt +0 -20
  468. package/plugin/skills/lit-diagram-drawer/assets/licenses/diagram-design-MIT.txt +0 -21
  469. package/plugin/skills/lit-diagram-drawer/assets/licenses/log-z-MIT.txt +0 -21
  470. package/plugin/skills/lit-diagram-drawer/assets/licenses/simple-icons-CC0.md +0 -30
  471. package/plugin/skills/lit-diagram-drawer/assets/licenses/tabler-MIT.txt +0 -21
  472. package/plugin/skills/lit-diagram-drawer/examples/01-service-architecture/after.html +0 -1
  473. package/plugin/skills/lit-diagram-drawer/examples/01-service-architecture/brief.md +0 -33
  474. package/plugin/skills/lit-diagram-drawer/examples/01-service-architecture/constructed-naive-foil.html +0 -1
  475. package/plugin/skills/lit-diagram-drawer/examples/02-release-decision/after.html +0 -1
  476. package/plugin/skills/lit-diagram-drawer/examples/02-release-decision/brief.md +0 -18
  477. package/plugin/skills/lit-diagram-drawer/examples/02-release-decision/constructed-naive-foil.html +0 -1
  478. package/plugin/skills/lit-diagram-drawer/examples/03-data-retention/after.html +0 -1
  479. package/plugin/skills/lit-diagram-drawer/examples/03-data-retention/brief.md +0 -19
  480. package/plugin/skills/lit-diagram-drawer/examples/03-data-retention/constructed-naive-foil.html +0 -1
  481. package/plugin/skills/lit-diagram-drawer/examples/04-oauth-sequence/after.html +0 -1
  482. package/plugin/skills/lit-diagram-drawer/examples/04-oauth-sequence/brief.md +0 -17
  483. package/plugin/skills/lit-diagram-drawer/examples/04-oauth-sequence/constructed-naive-foil.html +0 -1
  484. package/plugin/skills/lit-diagram-drawer/examples/05-review-lanes/after.html +0 -1
  485. package/plugin/skills/lit-diagram-drawer/examples/05-review-lanes/brief.md +0 -17
  486. package/plugin/skills/lit-diagram-drawer/examples/05-review-lanes/constructed-naive-foil.html +0 -1
  487. package/plugin/skills/lit-diagram-drawer/examples/06-rollout-gates/after.html +0 -1
  488. package/plugin/skills/lit-diagram-drawer/examples/06-rollout-gates/brief.md +0 -17
  489. package/plugin/skills/lit-diagram-drawer/examples/06-rollout-gates/constructed-naive-foil.html +0 -1
  490. package/plugin/skills/lit-diagram-drawer/examples/07-deployment-boundary/after.html +0 -1
  491. package/plugin/skills/lit-diagram-drawer/examples/07-deployment-boundary/brief.md +0 -19
  492. package/plugin/skills/lit-diagram-drawer/examples/07-deployment-boundary/constructed-naive-foil.html +0 -1
  493. package/plugin/skills/lit-diagram-drawer/examples/08-policy-traces/after.html +0 -1
  494. package/plugin/skills/lit-diagram-drawer/examples/08-policy-traces/brief.md +0 -20
  495. package/plugin/skills/lit-diagram-drawer/examples/08-policy-traces/constructed-naive-foil.html +0 -1
  496. package/plugin/skills/lit-diagram-drawer/references/accessibility.md +0 -37
  497. package/plugin/skills/lit-diagram-drawer/references/export.md +0 -29
  498. package/plugin/skills/lit-diagram-drawer/references/import-drawio.md +0 -21
  499. package/plugin/skills/lit-diagram-drawer/references/import-excalidraw.md +0 -14
  500. package/plugin/skills/lit-diagram-drawer/references/import-mermaid.md +0 -18
  501. package/plugin/skills/lit-diagram-drawer/references/import-schema.md +0 -28
  502. package/plugin/skills/lit-diagram-drawer/references/korean-typography.md +0 -34
  503. package/plugin/skills/lit-diagram-drawer/references/motion.md +0 -29
  504. package/plugin/skills/lit-diagram-drawer/references/office-pptx-docx.md +0 -42
  505. package/plugin/skills/lit-diagram-drawer/references/output-spec.md +0 -48
  506. package/plugin/skills/lit-diagram-drawer/references/primitive-annotation.md +0 -12
  507. package/plugin/skills/lit-diagram-drawer/references/primitive-icons.md +0 -21
  508. package/plugin/skills/lit-diagram-drawer/references/primitive-sketchy.md +0 -11
  509. package/plugin/skills/lit-diagram-drawer/references/primitive-terminal.md +0 -11
  510. package/plugin/skills/lit-diagram-drawer/references/profiles.md +0 -24
  511. package/plugin/skills/lit-diagram-drawer/references/semantic-patterns.md +0 -27
  512. package/plugin/skills/lit-diagram-drawer/references/style-guide.md +0 -67
  513. package/plugin/skills/lit-diagram-drawer/references/type-architecture.md +0 -51
  514. package/plugin/skills/lit-diagram-drawer/references/type-bar.md +0 -51
  515. package/plugin/skills/lit-diagram-drawer/references/type-beeswarm.md +0 -49
  516. package/plugin/skills/lit-diagram-drawer/references/type-bubble.md +0 -49
  517. package/plugin/skills/lit-diagram-drawer/references/type-bump.md +0 -49
  518. package/plugin/skills/lit-diagram-drawer/references/type-catalog.json +0 -1433
  519. package/plugin/skills/lit-diagram-drawer/references/type-data-flow.md +0 -51
  520. package/plugin/skills/lit-diagram-drawer/references/type-datalake.md +0 -49
  521. package/plugin/skills/lit-diagram-drawer/references/type-db-schema.md +0 -49
  522. package/plugin/skills/lit-diagram-drawer/references/type-dependency.md +0 -49
  523. package/plugin/skills/lit-diagram-drawer/references/type-deployment.md +0 -49
  524. package/plugin/skills/lit-diagram-drawer/references/type-dp-integration.md +0 -49
  525. package/plugin/skills/lit-diagram-drawer/references/type-dp-security-matrix.md +0 -49
  526. package/plugin/skills/lit-diagram-drawer/references/type-er.md +0 -49
  527. package/plugin/skills/lit-diagram-drawer/references/type-fishbone.md +0 -49
  528. package/plugin/skills/lit-diagram-drawer/references/type-flowchart.md +0 -49
  529. package/plugin/skills/lit-diagram-drawer/references/type-gantt.md +0 -49
  530. package/plugin/skills/lit-diagram-drawer/references/type-heatmap.md +0 -53
  531. package/plugin/skills/lit-diagram-drawer/references/type-high-level-vertical.md +0 -53
  532. package/plugin/skills/lit-diagram-drawer/references/type-high-level.md +0 -53
  533. package/plugin/skills/lit-diagram-drawer/references/type-import-drawio.md +0 -53
  534. package/plugin/skills/lit-diagram-drawer/references/type-import-excalidraw.md +0 -53
  535. package/plugin/skills/lit-diagram-drawer/references/type-import-mermaid.md +0 -53
  536. package/plugin/skills/lit-diagram-drawer/references/type-it-state.md +0 -54
  537. package/plugin/skills/lit-diagram-drawer/references/type-journey.md +0 -54
  538. package/plugin/skills/lit-diagram-drawer/references/type-kanban.md +0 -54
  539. package/plugin/skills/lit-diagram-drawer/references/type-layers.md +0 -54
  540. package/plugin/skills/lit-diagram-drawer/references/type-line.md +0 -54
  541. package/plugin/skills/lit-diagram-drawer/references/type-loop-terminal.md +0 -53
  542. package/plugin/skills/lit-diagram-drawer/references/type-loop.md +0 -54
  543. package/plugin/skills/lit-diagram-drawer/references/type-marimekko.md +0 -54
  544. package/plugin/skills/lit-diagram-drawer/references/type-medallion.md +0 -54
  545. package/plugin/skills/lit-diagram-drawer/references/type-nested.md +0 -59
  546. package/plugin/skills/lit-diagram-drawer/references/type-org-chart.md +0 -58
  547. package/plugin/skills/lit-diagram-drawer/references/type-paved-road-animated.md +0 -72
  548. package/plugin/skills/lit-diagram-drawer/references/type-polar.md +0 -67
  549. package/plugin/skills/lit-diagram-drawer/references/type-policy-trace-animated.md +0 -69
  550. package/plugin/skills/lit-diagram-drawer/references/type-process.md +0 -58
  551. package/plugin/skills/lit-diagram-drawer/references/type-pyramid.md +0 -59
  552. package/plugin/skills/lit-diagram-drawer/references/type-quadrant-consultant.md +0 -60
  553. package/plugin/skills/lit-diagram-drawer/references/type-quadrant.md +0 -57
  554. package/plugin/skills/lit-diagram-drawer/references/type-queue-animated.md +0 -63
  555. package/plugin/skills/lit-diagram-drawer/references/type-radar.md +0 -57
  556. package/plugin/skills/lit-diagram-drawer/references/type-ridgeline.md +0 -63
  557. package/plugin/skills/lit-diagram-drawer/references/type-sankey.md +0 -68
  558. package/plugin/skills/lit-diagram-drawer/references/type-scatter.md +0 -60
  559. package/plugin/skills/lit-diagram-drawer/references/type-sequence-oauth.md +0 -66
  560. package/plugin/skills/lit-diagram-drawer/references/type-sequence.md +0 -63
  561. package/plugin/skills/lit-diagram-drawer/references/type-slopegraph.md +0 -65
  562. package/plugin/skills/lit-diagram-drawer/references/type-state-lifecycle.md +0 -53
  563. package/plugin/skills/lit-diagram-drawer/references/type-state.md +0 -59
  564. package/plugin/skills/lit-diagram-drawer/references/type-story-map.md +0 -52
  565. package/plugin/skills/lit-diagram-drawer/references/type-streamgraph.md +0 -53
  566. package/plugin/skills/lit-diagram-drawer/references/type-swimlane.md +0 -52
  567. package/plugin/skills/lit-diagram-drawer/references/type-timeline.md +0 -52
  568. package/plugin/skills/lit-diagram-drawer/references/type-tree-block-decomposition.md +0 -57
  569. package/plugin/skills/lit-diagram-drawer/references/type-tree.md +0 -54
  570. package/plugin/skills/lit-diagram-drawer/references/type-treemap.md +0 -54
  571. package/plugin/skills/lit-diagram-drawer/references/type-uml-class.md +0 -52
  572. package/plugin/skills/lit-diagram-drawer/references/type-venn.md +0 -51
  573. package/plugin/skills/lit-diagram-drawer/references/type-wardley.md +0 -52
  574. package/plugin/skills/lit-diagram-drawer/references/type-waterfall.md +0 -54
  575. package/plugin/skills/lit-diagram-drawer/references/verifier-guide.md +0 -59
  576. package/plugin/skills/lit-diagram-drawer/scripts/block-registry.mjs +0 -43
  577. package/plugin/skills/lit-diagram-drawer/scripts/brief-contract.mjs +0 -94
  578. package/plugin/skills/lit-diagram-drawer/scripts/check-visible-text.mjs +0 -15
  579. package/plugin/skills/lit-diagram-drawer/scripts/diagram-craft-rules.mjs +0 -13
  580. package/plugin/skills/lit-diagram-drawer/scripts/diagram-metrics.mjs +0 -219
  581. package/plugin/skills/lit-diagram-drawer/scripts/diagram-runtime-lock/package.json +0 -9
  582. package/plugin/skills/lit-diagram-drawer/scripts/diagram-runtime.mjs +0 -275
  583. package/plugin/skills/lit-diagram-drawer/scripts/doctor.mjs +0 -25
  584. package/plugin/skills/lit-diagram-drawer/scripts/drawio-model.mjs +0 -162
  585. package/plugin/skills/lit-diagram-drawer/scripts/drawio-source.mjs +0 -147
  586. package/plugin/skills/lit-diagram-drawer/scripts/drawio-xml.mjs +0 -148
  587. package/plugin/skills/lit-diagram-drawer/scripts/export.mjs +0 -119
  588. package/plugin/skills/lit-diagram-drawer/scripts/import-common.mjs +0 -85
  589. package/plugin/skills/lit-diagram-drawer/scripts/import-drawio.mjs +0 -48
  590. package/plugin/skills/lit-diagram-drawer/scripts/import-excalidraw.mjs +0 -234
  591. package/plugin/skills/lit-diagram-drawer/scripts/import-mermaid.mjs +0 -104
  592. package/plugin/skills/lit-diagram-drawer/scripts/mermaid-common.mjs +0 -115
  593. package/plugin/skills/lit-diagram-drawer/scripts/mermaid-er.mjs +0 -70
  594. package/plugin/skills/lit-diagram-drawer/scripts/mermaid-flowchart.mjs +0 -178
  595. package/plugin/skills/lit-diagram-drawer/scripts/mermaid-sequence.mjs +0 -137
  596. package/plugin/skills/lit-diagram-drawer/scripts/mermaid-state.mjs +0 -80
  597. package/plugin/skills/lit-diagram-drawer/scripts/office-safety.mjs +0 -54
  598. package/plugin/skills/lit-diagram-drawer/scripts/runtime-probes.mjs +0 -11
  599. package/plugin/skills/lit-diagram-drawer/scripts/verify-all.mjs +0 -85
  600. package/plugin/skills/lit-diagram-drawer/scripts/verify-brief.mjs +0 -16
  601. package/plugin/skills/lit-diagram-drawer/scripts/verify-diagram.mjs +0 -27
  602. package/plugin/skills/lit-diagram-drawer/scripts/verify-motion.mjs +0 -12
  603. package/plugin/skills/lit-diagram-drawer/scripts/verify-type.mjs +0 -48
  604. package/plugin/skills/lit-diagram-drawer/scripts/visual-quality-geometry.mjs +0 -226
  605. package/plugin/skills/lit-diagram-drawer/scripts/visual-quality.mjs +0 -146
  606. package/plugin/skills/lit-docx/NOTICE +0 -33
  607. package/plugin/skills/lit-docx/references/components.md +0 -207
  608. package/plugin/skills/lit-docx/references/direction-step.md +0 -277
  609. package/plugin/skills/lit-docx/references/examples/01-report-ko.md +0 -166
  610. package/plugin/skills/lit-docx/references/examples/02-brief-ko.md +0 -105
  611. package/plugin/skills/lit-docx/references/examples/03-manual-ko.md +0 -164
  612. package/plugin/skills/lit-docx/references/examples/04-proposal-ko.md +0 -138
  613. package/plugin/skills/lit-docx/references/examples/05-memo-en.md +0 -55
  614. package/plugin/skills/lit-docx/references/examples/06-journal-en.md +0 -130
  615. package/plugin/skills/lit-docx/references/examples/07-report-en.md +0 -123
  616. package/plugin/skills/lit-docx/references/examples/08-proposal-en.md +0 -123
  617. package/plugin/skills/lit-docx/references/examples/09-memo-ko.md +0 -45
  618. package/plugin/skills/lit-docx/references/frontmatter_schema.md +0 -42
  619. package/plugin/skills/lit-docx/references/journal_style_spec.md +0 -17
  620. package/plugin/skills/lit-docx/references/markdown_quality_checklist.md +0 -37
  621. package/plugin/skills/lit-docx/references/page-composition.md +0 -221
  622. package/plugin/skills/lit-docx/references/slop_phrase_list.yaml +0 -58
  623. package/plugin/skills/lit-docx/references/slop_rules.md +0 -35
  624. package/plugin/skills/lit-docx/references/tonalities/brief.md +0 -143
  625. package/plugin/skills/lit-docx/references/tonalities/journal.md +0 -142
  626. package/plugin/skills/lit-docx/references/tonalities/manual.md +0 -148
  627. package/plugin/skills/lit-docx/references/tonalities/memo.md +0 -137
  628. package/plugin/skills/lit-docx/references/tonalities/proposal.md +0 -140
  629. package/plugin/skills/lit-docx/references/tonalities/report.md +0 -156
  630. package/plugin/skills/lit-docx/scripts/clean_markdown.py +0 -95
  631. package/plugin/skills/lit-docx/scripts/convert_md_to_docx.py +0 -1395
  632. package/plugin/skills/lit-docx/scripts/convert_md_to_pdf.py +0 -302
  633. package/plugin/skills/lit-docx/scripts/convert_pdf.py +0 -139
  634. package/plugin/skills/lit-docx/scripts/docx_design.py +0 -2449
  635. package/plugin/skills/lit-docx/scripts/docx_layout.py +0 -959
  636. package/plugin/skills/lit-docx/scripts/edit_docx.py +0 -306
  637. package/plugin/skills/lit-docx/scripts/embed_images.py +0 -78
  638. package/plugin/skills/lit-docx/scripts/generate_docx_templates.py +0 -500
  639. package/plugin/skills/lit-docx/scripts/qa_docx.py +0 -234
  640. package/plugin/skills/lit-docx/scripts/slop_lint.py +0 -573
  641. package/plugin/skills/lit-docx/scripts/visual_audit.py +0 -48
  642. package/plugin/skills/lit-docx/templates/docx/acs.docx +0 -0
  643. package/plugin/skills/lit-docx/templates/docx/elsevier.docx +0 -0
  644. package/plugin/skills/lit-docx/templates/docx/ieee.docx +0 -0
  645. package/plugin/skills/lit-docx/templates/docx/korean-generic.docx +0 -0
  646. package/plugin/skills/lit-docx/templates/docx/nature.docx +0 -0
  647. package/plugin/skills/lit-docx/templates/latex/acs/README.md +0 -5
  648. package/plugin/skills/lit-docx/templates/latex/acs/template.tex +0 -39
  649. package/plugin/skills/lit-docx/templates/latex/elsevier/README.md +0 -5
  650. package/plugin/skills/lit-docx/templates/latex/elsevier/template.tex +0 -40
  651. package/plugin/skills/lit-docx/templates/latex/ieee/README.md +0 -5
  652. package/plugin/skills/lit-docx/templates/latex/ieee/template.tex +0 -39
  653. package/plugin/skills/lit-docx/templates/latex/korean-generic/README.md +0 -5
  654. package/plugin/skills/lit-docx/templates/latex/korean-generic/template.tex +0 -39
  655. package/plugin/skills/lit-docx/templates/latex/nature/README.md +0 -5
  656. package/plugin/skills/lit-docx/templates/latex/nature/template.tex +0 -39
  657. package/plugin/skills/lit-docx/templates/registry.yaml +0 -1366
  658. package/plugin/skills/lit-docx/templates/tonalities/brief.yaml +0 -28
  659. package/plugin/skills/lit-docx/templates/tonalities/journal.yaml +0 -25
  660. package/plugin/skills/lit-docx/templates/tonalities/manual.yaml +0 -26
  661. package/plugin/skills/lit-docx/templates/tonalities/memo.yaml +0 -26
  662. package/plugin/skills/lit-docx/templates/tonalities/proposal.yaml +0 -26
  663. package/plugin/skills/lit-docx/templates/tonalities/report.yaml +0 -26
  664. package/plugin/skills/lit-pptx/NOTICE +0 -38
  665. package/plugin/skills/lit-pptx/assets/azure/circle-lg.png +0 -0
  666. package/plugin/skills/lit-pptx/assets/azure/circle-md.png +0 -0
  667. package/plugin/skills/lit-pptx/assets/azure/circle-sm.png +0 -0
  668. package/plugin/skills/lit-pptx/fonts/a2z/A2Z-Black.otf +0 -0
  669. package/plugin/skills/lit-pptx/fonts/a2z/A2Z-Bold.otf +0 -0
  670. package/plugin/skills/lit-pptx/fonts/a2z/A2Z-Light.otf +0 -0
  671. package/plugin/skills/lit-pptx/fonts/a2z/A2Z-Medium.otf +0 -0
  672. package/plugin/skills/lit-pptx/fonts/a2z/A2Z-Regular.otf +0 -0
  673. package/plugin/skills/lit-pptx/fonts/a2z/OFL.txt +0 -94
  674. package/plugin/skills/lit-pptx/fonts/a2z/SOURCE.md +0 -29
  675. package/plugin/skills/lit-pptx/fonts/jetbrains-mono/JetBrainsMono-Bold.ttf +0 -0
  676. package/plugin/skills/lit-pptx/fonts/jetbrains-mono/JetBrainsMono-Regular.ttf +0 -0
  677. package/plugin/skills/lit-pptx/fonts/jetbrains-mono/OFL.txt +0 -93
  678. package/plugin/skills/lit-pptx/fonts/pretendard/OFL.txt +0 -94
  679. package/plugin/skills/lit-pptx/fonts/pretendard/Pretendard-Bold.otf +0 -0
  680. package/plugin/skills/lit-pptx/fonts/pretendard/Pretendard-Regular.otf +0 -0
  681. package/plugin/skills/lit-pptx/fonts/provenance.json +0 -109
  682. package/plugin/skills/lit-pptx/references/agents/analyst.md +0 -49
  683. package/plugin/skills/lit-pptx/references/agents/antithesis.md +0 -59
  684. package/plugin/skills/lit-pptx/references/agents/architect.md +0 -44
  685. package/plugin/skills/lit-pptx/references/agents/critic.md +0 -42
  686. package/plugin/skills/lit-pptx/references/agents/synthesizer.md +0 -47
  687. package/plugin/skills/lit-pptx/references/agents/thesis.md +0 -33
  688. package/plugin/skills/lit-pptx/references/anti-slop-checklist.md +0 -110
  689. package/plugin/skills/lit-pptx/references/authoring-guide.md +0 -250
  690. package/plugin/skills/lit-pptx/references/consensus-protocol.md +0 -125
  691. package/plugin/skills/lit-pptx/references/data-display-cookbook.md +0 -52
  692. package/plugin/skills/lit-pptx/references/density-and-fill.md +0 -164
  693. package/plugin/skills/lit-pptx/references/design-system-azure.md +0 -61
  694. package/plugin/skills/lit-pptx/references/direction-step.md +0 -203
  695. package/plugin/skills/lit-pptx/references/examples/01-pitch-signal-ko.md +0 -210
  696. package/plugin/skills/lit-pptx/references/examples/02-pitch-studio-ko.md +0 -147
  697. package/plugin/skills/lit-pptx/references/examples/03-business-review-ledger-ko.md +0 -199
  698. package/plugin/skills/lit-pptx/references/examples/04-business-review-night-en.md +0 -203
  699. package/plugin/skills/lit-pptx/references/examples/05-research-talk-paper-en.md +0 -178
  700. package/plugin/skills/lit-pptx/references/examples/06-lecture-chalk-ko.md +0 -199
  701. package/plugin/skills/lit-pptx/references/examples/07-data-review-night-en.md +0 -194
  702. package/plugin/skills/lit-pptx/references/examples/08-image-led-atlas-ko.md +0 -175
  703. package/plugin/skills/lit-pptx/references/examples/09-briefing-gazette-ko.md +0 -204
  704. package/plugin/skills/lit-pptx/references/examples/10-status-update-ledger-ko.md +0 -179
  705. package/plugin/skills/lit-pptx/references/examples/11-portfolio-studio-en.md +0 -164
  706. package/plugin/skills/lit-pptx/references/examples/12-research-tutorial-chalk-en.md +0 -174
  707. package/plugin/skills/lit-pptx/references/examples/13-engineering-review-computational-brutalism-ko.md +0 -173
  708. package/plugin/skills/lit-pptx/references/examples/14-launch-pitch-neo-brutalism-ko.md +0 -154
  709. package/plugin/skills/lit-pptx/references/examples/15-design-lecture-bauhaus-ko.md +0 -139
  710. package/plugin/skills/lit-pptx/references/examples/16-community-programme-riso-ko.md +0 -158
  711. package/plugin/skills/lit-pptx/references/examples/17-public-data-briefing-newsroom-ko.md +0 -179
  712. package/plugin/skills/lit-pptx/references/interview-protocol.md +0 -113
  713. package/plugin/skills/lit-pptx/references/layout-families.md +0 -198
  714. package/plugin/skills/lit-pptx/references/stages/autopilot.md +0 -48
  715. package/plugin/skills/lit-pptx/references/stages/interview.md +0 -52
  716. package/plugin/skills/lit-pptx/references/stages/plan.md +0 -42
  717. package/plugin/skills/lit-pptx/references/title-treatments.md +0 -109
  718. package/plugin/skills/lit-pptx/references/tonalities/atlas.md +0 -139
  719. package/plugin/skills/lit-pptx/references/tonalities/bauhaus.md +0 -112
  720. package/plugin/skills/lit-pptx/references/tonalities/chalk.md +0 -148
  721. package/plugin/skills/lit-pptx/references/tonalities/computational-brutalism.md +0 -118
  722. package/plugin/skills/lit-pptx/references/tonalities/gazette.md +0 -149
  723. package/plugin/skills/lit-pptx/references/tonalities/ledger.md +0 -149
  724. package/plugin/skills/lit-pptx/references/tonalities/neo-brutalism.md +0 -125
  725. package/plugin/skills/lit-pptx/references/tonalities/newsroom.md +0 -115
  726. package/plugin/skills/lit-pptx/references/tonalities/night.md +0 -147
  727. package/plugin/skills/lit-pptx/references/tonalities/paper.md +0 -151
  728. package/plugin/skills/lit-pptx/references/tonalities/riso.md +0 -109
  729. package/plugin/skills/lit-pptx/references/tonalities/signal.md +0 -150
  730. package/plugin/skills/lit-pptx/references/tonalities/studio.md +0 -132
  731. package/plugin/skills/lit-pptx/scripts/compile-deck.js +0 -462
  732. package/plugin/skills/lit-pptx/scripts/craft_extras.py +0 -1078
  733. package/plugin/skills/lit-pptx/scripts/deck_craft.py +0 -363
  734. package/plugin/skills/lit-pptx/scripts/embed_fonts.py +0 -227
  735. package/plugin/skills/lit-pptx/scripts/forbidden-terms.json +0 -55
  736. package/plugin/skills/lit-pptx/scripts/layout_inventory.py +0 -418
  737. package/plugin/skills/lit-pptx/scripts/learn_template.py +0 -446
  738. package/plugin/skills/lit-pptx/scripts/lib/derive-palette.js +0 -176
  739. package/plugin/skills/lit-pptx/scripts/lib/directive-parser.js +0 -244
  740. package/plugin/skills/lit-pptx/scripts/lib/font-map.js +0 -79
  741. package/plugin/skills/lit-pptx/scripts/lib/gen-bg.js +0 -86
  742. package/plugin/skills/lit-pptx/scripts/lib/gen-gradient-assets.js +0 -37
  743. package/plugin/skills/lit-pptx/scripts/lib/grid-resolver.js +0 -510
  744. package/plugin/skills/lit-pptx/scripts/lib/layout-resolver.js +0 -1113
  745. package/plugin/skills/lit-pptx/scripts/lib/markdown-loader.js +0 -138
  746. package/plugin/skills/lit-pptx/scripts/lib/render-adapter-html.js +0 -356
  747. package/plugin/skills/lit-pptx/scripts/lib/render-adapter-pptx.js +0 -2240
  748. package/plugin/skills/lit-pptx/scripts/lib/render-pack.js +0 -3366
  749. package/plugin/skills/lit-pptx/scripts/lib/runtime-require.js +0 -28
  750. package/plugin/skills/lit-pptx/scripts/lib/slide-ast.js +0 -565
  751. package/plugin/skills/lit-pptx/scripts/lib/slide-grid.js +0 -104
  752. package/plugin/skills/lit-pptx/scripts/lib/spec-validator.js +0 -94
  753. package/plugin/skills/lit-pptx/scripts/lib/template-registry.js +0 -730
  754. package/plugin/skills/lit-pptx/scripts/package.json +0 -4
  755. package/plugin/skills/lit-pptx/scripts/qa_deck.py +0 -795
  756. package/plugin/skills/lit-pptx/scripts/validate_pptx.py +0 -230
  757. package/plugin/skills/lit-pptx/specs/markdown-slide-spec-v1.md +0 -251
  758. package/plugin/skills/lit-pptx/specs/markdown-slide-spec-v2.md +0 -214
  759. package/plugin/skills/lit-pptx/specs/slide-ast-v1.schema.json +0 -229
  760. package/plugin/skills/lit-pptx/specs/slide-ast-v2.schema.json +0 -144
  761. package/plugin/skills/lit-pptx/specs/template-enrollment-contract.md +0 -382
  762. package/plugin/skills/lit-pptx/templates/enrolled/AZURE-A2Z/capabilities.yaml +0 -146
  763. package/plugin/skills/lit-pptx/templates/enrolled/AZURE-A2Z/layout-mapping.yaml +0 -454
  764. package/plugin/skills/lit-pptx/templates/enrolled/AZURE-A2Z/template.yaml +0 -40
  765. package/plugin/skills/lit-pptx/templates/enrolled/AZURE-PRO/capabilities.yaml +0 -154
  766. package/plugin/skills/lit-pptx/templates/enrolled/AZURE-PRO/layout-mapping.yaml +0 -475
  767. package/plugin/skills/lit-pptx/templates/enrolled/AZURE-PRO/template.yaml +0 -40
  768. package/plugin/skills/lit-pptx/templates/enrolled/BOILERPLATE-A2Z/capabilities.yaml +0 -179
  769. package/plugin/skills/lit-pptx/templates/enrolled/BOILERPLATE-A2Z/layout-mapping.yaml +0 -299
  770. package/plugin/skills/lit-pptx/templates/enrolled/BOILERPLATE-A2Z/template.yaml +0 -45
  771. package/plugin/skills/lit-pptx/templates/enrolled/BOILERPLATE-PRETENDARD/capabilities.yaml +0 -181
  772. package/plugin/skills/lit-pptx/templates/enrolled/BOILERPLATE-PRETENDARD/layout-mapping.yaml +0 -299
  773. package/plugin/skills/lit-pptx/templates/enrolled/BOILERPLATE-PRETENDARD/template.yaml +0 -44
  774. package/plugin/skills/lit-pptx/templates/tonalities/atlas/pack.yaml +0 -92
  775. package/plugin/skills/lit-pptx/templates/tonalities/bauhaus/pack.yaml +0 -98
  776. package/plugin/skills/lit-pptx/templates/tonalities/chalk/pack.yaml +0 -97
  777. package/plugin/skills/lit-pptx/templates/tonalities/computational-brutalism/pack.yaml +0 -99
  778. package/plugin/skills/lit-pptx/templates/tonalities/gazette/pack.yaml +0 -93
  779. package/plugin/skills/lit-pptx/templates/tonalities/ledger/pack.yaml +0 -94
  780. package/plugin/skills/lit-pptx/templates/tonalities/neo-brutalism/pack.yaml +0 -107
  781. package/plugin/skills/lit-pptx/templates/tonalities/newsroom/pack.yaml +0 -99
  782. package/plugin/skills/lit-pptx/templates/tonalities/night/pack.yaml +0 -93
  783. package/plugin/skills/lit-pptx/templates/tonalities/paper/pack.yaml +0 -98
  784. package/plugin/skills/lit-pptx/templates/tonalities/riso/pack.yaml +0 -99
  785. package/plugin/skills/lit-pptx/templates/tonalities/signal/pack.yaml +0 -94
  786. package/plugin/skills/lit-pptx/templates/tonalities/studio/pack.yaml +0 -92
  787. package/plugin/skills/lit-schematic/examples/iso-heat-exchanger/build.mjs +0 -14
  788. package/plugin/skills/lit-schematic/examples/iso-heat-exchanger/scene.mjs +0 -8
  789. package/plugin/skills/lit-schematic/examples/journal-adsorption-rig/build.mjs +0 -22
  790. package/plugin/skills/lit-schematic/examples/pid-dosing-skid/build.mjs +0 -81
  791. package/plugin/skills/lit-schematic/references/cutaway-outputs.md +0 -25
  792. package/plugin/skills/lit-schematic/references/isometric-craft.md +0 -24
  793. package/plugin/skills/lit-schematic/references/journal-figures.md +0 -19
  794. package/plugin/skills/lit-schematic/references/kit-api.md +0 -42
  795. package/plugin/skills/lit-schematic/references/pfd-and-layout.md +0 -20
  796. package/plugin/skills/lit-schematic/references/pid-drafting.md +0 -30
  797. package/plugin/skills/lit-schematic/references/pid-symbols.md +0 -35
  798. package/plugin/skills/lit-schematic/references/verification.md +0 -31
  799. package/plugin/skills/lit-schematic/scripts/doctor.mjs +0 -13
  800. package/plugin/skills/lit-schematic/scripts/lib/figure.mjs +0 -49
  801. package/plugin/skills/lit-schematic/scripts/lib/isa.mjs +0 -18
  802. package/plugin/skills/lit-schematic/scripts/lib/iso.mjs +0 -58
  803. package/plugin/skills/lit-schematic/scripts/lib/legend-sheet.mjs +0 -10
  804. package/plugin/skills/lit-schematic/scripts/lib/qa-core.mjs +0 -349
  805. package/plugin/skills/lit-schematic/scripts/lib/sheet.mjs +0 -497
  806. package/plugin/skills/lit-schematic/scripts/lib/svg.mjs +0 -39
  807. package/plugin/skills/lit-schematic/scripts/lib/theme.mjs +0 -25
  808. package/plugin/skills/lit-schematic/scripts/motion.mjs +0 -8
  809. package/plugin/skills/lit-schematic/scripts/qa.mjs +0 -21
  810. package/plugin/skills/lit-schematic/scripts/render.mjs +0 -38
  811. package/plugin/skills/lit-schematic/scripts/scaffold.mjs +0 -73
  812. package/plugin/skills/lit-scientific-visualization/LICENSE +0 -21
  813. package/plugin/skills/lit-scientific-visualization/assets/color_palettes.py +0 -197
  814. package/plugin/skills/lit-scientific-visualization/assets/nature.mplstyle +0 -75
  815. package/plugin/skills/lit-scientific-visualization/assets/presentation.mplstyle +0 -74
  816. package/plugin/skills/lit-scientific-visualization/assets/publication.mplstyle +0 -78
  817. package/plugin/skills/lit-scientific-visualization/evals/evals.json +0 -158
  818. package/plugin/skills/lit-scientific-visualization/references/canonical-workflow.md +0 -283
  819. package/plugin/skills/lit-scientific-visualization/references/color_palettes.md +0 -380
  820. package/plugin/skills/lit-scientific-visualization/references/journal_requirements.md +0 -359
  821. package/plugin/skills/lit-scientific-visualization/references/matplotlib_examples.md +0 -608
  822. package/plugin/skills/lit-scientific-visualization/references/mdanalysis_martini_visualization.md +0 -85
  823. package/plugin/skills/lit-scientific-visualization/references/publication_guidelines.md +0 -217
  824. package/plugin/skills/lit-scientific-visualization/references/seaborn_for_publications.md +0 -293
  825. package/plugin/skills/lit-scientific-visualization/scripts/figure_export.py +0 -238
  826. package/plugin/skills/lit-scientific-visualization/scripts/sciviz-runtime-requirements.lock +0 -23
  827. package/plugin/skills/lit-scientific-visualization/scripts/sciviz-runtime.mjs +0 -225
  828. package/plugin/skills/lit-scientific-visualization/scripts/style_presets.py +0 -467
  829. package/plugin/skills/lit-scientific-visualization/tests/test_figure_export.py +0 -51
  830. package/plugin/skills/lit-scientific-visualization/tests/test_style_presets.py +0 -114
  831. package/plugin/skills/lit-typographic-motion/engine/NOTICE +0 -23
  832. package/plugin/skills/lit-typographic-motion/engine/THIRD_PARTY_NOTICES +0 -73
  833. package/plugin/skills/lit-typographic-motion/engine/audio/beat_grid.py +0 -56
  834. package/plugin/skills/lit-typographic-motion/engine/audio/requirements.lock +0 -1084
  835. package/plugin/skills/lit-typographic-motion/engine/blender/runner.py +0 -218
  836. package/plugin/skills/lit-typographic-motion/engine/core/constants.mjs +0 -246
  837. package/plugin/skills/lit-typographic-motion/engine/core/contrast.mjs +0 -90
  838. package/plugin/skills/lit-typographic-motion/engine/core/events.mjs +0 -46
  839. package/plugin/skills/lit-typographic-motion/engine/core/flash.mjs +0 -211
  840. package/plugin/skills/lit-typographic-motion/engine/core/gate-rules.mjs +0 -550
  841. package/plugin/skills/lit-typographic-motion/engine/core/presets.mjs +0 -123
  842. package/plugin/skills/lit-typographic-motion/engine/core/text.mjs +0 -100
  843. package/plugin/skills/lit-typographic-motion/engine/core/timeline.mjs +0 -142
  844. package/plugin/skills/lit-typographic-motion/engine/core/util.mjs +0 -167
  845. package/plugin/skills/lit-typographic-motion/engine/core/voices.mjs +0 -19
  846. package/plugin/skills/lit-typographic-motion/engine/models/word-timing.json +0 -198
  847. package/plugin/skills/lit-typographic-motion/engine/node/analysis.mjs +0 -108
  848. package/plugin/skills/lit-typographic-motion/engine/node/assets.mjs +0 -218
  849. package/plugin/skills/lit-typographic-motion/engine/node/blender.mjs +0 -144
  850. package/plugin/skills/lit-typographic-motion/engine/node/board.mjs +0 -136
  851. package/plugin/skills/lit-typographic-motion/engine/node/brief.mjs +0 -158
  852. package/plugin/skills/lit-typographic-motion/engine/node/chrome.mjs +0 -330
  853. package/plugin/skills/lit-typographic-motion/engine/node/cover-assets.mjs +0 -102
  854. package/plugin/skills/lit-typographic-motion/engine/node/cover-capture.mjs +0 -213
  855. package/plugin/skills/lit-typographic-motion/engine/node/cover-gate.mjs +0 -346
  856. package/plugin/skills/lit-typographic-motion/engine/node/cover-image.mjs +0 -141
  857. package/plugin/skills/lit-typographic-motion/engine/node/cover-sheet.mjs +0 -76
  858. package/plugin/skills/lit-typographic-motion/engine/node/cover-treatment.mjs +0 -106
  859. package/plugin/skills/lit-typographic-motion/engine/node/cover-worker.mjs +0 -32
  860. package/plugin/skills/lit-typographic-motion/engine/node/cover.mjs +0 -373
  861. package/plugin/skills/lit-typographic-motion/engine/node/coverage.mjs +0 -83
  862. package/plugin/skills/lit-typographic-motion/engine/node/done.mjs +0 -209
  863. package/plugin/skills/lit-typographic-motion/engine/node/encode.mjs +0 -102
  864. package/plugin/skills/lit-typographic-motion/engine/node/frame-worker.mjs +0 -36
  865. package/plugin/skills/lit-typographic-motion/engine/node/gallery.mjs +0 -120
  866. package/plugin/skills/lit-typographic-motion/engine/node/house.mjs +0 -44
  867. package/plugin/skills/lit-typographic-motion/engine/node/look.mjs +0 -164
  868. package/plugin/skills/lit-typographic-motion/engine/node/pipeline.mjs +0 -603
  869. package/plugin/skills/lit-typographic-motion/engine/node/png.mjs +0 -112
  870. package/plugin/skills/lit-typographic-motion/engine/node/report.mjs +0 -66
  871. package/plugin/skills/lit-typographic-motion/engine/node/runtime.mjs +0 -348
  872. package/plugin/skills/lit-typographic-motion/engine/node/scaffold.mjs +0 -210
  873. package/plugin/skills/lit-typographic-motion/engine/node/score.mjs +0 -639
  874. package/plugin/skills/lit-typographic-motion/engine/node/session.mjs +0 -145
  875. package/plugin/skills/lit-typographic-motion/engine/node/sound-cli.mjs +0 -77
  876. package/plugin/skills/lit-typographic-motion/engine/node/sound.mjs +0 -740
  877. package/plugin/skills/lit-typographic-motion/engine/node/stage-capture.mjs +0 -179
  878. package/plugin/skills/lit-typographic-motion/engine/node/stage-gate.mjs +0 -123
  879. package/plugin/skills/lit-typographic-motion/engine/node/stage-qa.mjs +0 -295
  880. package/plugin/skills/lit-typographic-motion/engine/node/stage-serve.mjs +0 -430
  881. package/plugin/skills/lit-typographic-motion/engine/node/stage.mjs +0 -572
  882. package/plugin/skills/lit-typographic-motion/engine/node/stills.mjs +0 -100
  883. package/plugin/skills/lit-typographic-motion/engine/node/styles.mjs +0 -214
  884. package/plugin/skills/lit-typographic-motion/engine/node/treatment.mjs +0 -645
  885. package/plugin/skills/lit-typographic-motion/engine/node/webp.mjs +0 -145
  886. package/plugin/skills/lit-typographic-motion/engine/node/ws-server.mjs +0 -132
  887. package/plugin/skills/lit-typographic-motion/engine/package-lock.json +0 -25
  888. package/plugin/skills/lit-typographic-motion/engine/package.json +0 -10
  889. package/plugin/skills/lit-typographic-motion/engine/stage/cover-init.js +0 -37
  890. package/plugin/skills/lit-typographic-motion/engine/stage/init.js +0 -288
  891. package/plugin/skills/lit-typographic-motion/engine/stage/loop-kit.js +0 -106
  892. package/plugin/skills/lit-typographic-motion/engine/stage/qa.js +0 -157
  893. package/plugin/skills/lit-typographic-motion/engine/stage/stage-kit.js +0 -741
  894. package/plugin/skills/lit-typographic-motion/engine/vendor/three/LICENSE +0 -21
  895. package/plugin/skills/lit-typographic-motion/engine/vendor/three/addons/environments/RoomEnvironment.js +0 -144
  896. package/plugin/skills/lit-typographic-motion/engine/vendor/three/addons/geometries/RoundedBoxGeometry.js +0 -155
  897. package/plugin/skills/lit-typographic-motion/engine/vendor/three/three.module.js +0 -54571
  898. package/plugin/skills/lit-typographic-motion/engine/web/boot.mjs +0 -123
  899. package/plugin/skills/lit-typographic-motion/engine/web/engine.mjs +0 -281
  900. package/plugin/skills/lit-typographic-motion/engine/web/gl.mjs +0 -319
  901. package/plugin/skills/lit-typographic-motion/engine/web/glsl-common.mjs +0 -78
  902. package/plugin/skills/lit-typographic-motion/engine/web/index.html +0 -6
  903. package/plugin/skills/lit-typographic-motion/engine/web/lines.mjs +0 -112
  904. package/plugin/skills/lit-typographic-motion/engine/web/passes/crt.mjs +0 -98
  905. package/plugin/skills/lit-typographic-motion/engine/web/passes/dither.mjs +0 -49
  906. package/plugin/skills/lit-typographic-motion/engine/web/passes/glitch.mjs +0 -77
  907. package/plugin/skills/lit-typographic-motion/engine/web/passes/swiss-grid.mjs +0 -61
  908. package/plugin/skills/lit-typographic-motion/engine/web/passes/terminal-ui.mjs +0 -88
  909. package/plugin/skills/lit-typographic-motion/engine/web/passes/tidal-gradient.mjs +0 -86
  910. package/plugin/skills/lit-typographic-motion/engine/web/post.mjs +0 -165
  911. package/plugin/skills/lit-typographic-motion/engine/web/scale.mjs +0 -15
  912. package/plugin/skills/lit-typographic-motion/engine/web/scene.mjs +0 -82
  913. package/plugin/skills/lit-typographic-motion/engine/web/scenes/end-card.mjs +0 -30
  914. package/plugin/skills/lit-typographic-motion/engine/web/scenes/index.mjs +0 -16
  915. package/plugin/skills/lit-typographic-motion/engine/web/scenes/karaoke-line.mjs +0 -47
  916. package/plugin/skills/lit-typographic-motion/engine/web/scenes/kinetic-list.mjs +0 -45
  917. package/plugin/skills/lit-typographic-motion/engine/web/scenes/number-counter.mjs +0 -29
  918. package/plugin/skills/lit-typographic-motion/engine/web/scenes/signature.mjs +0 -73
  919. package/plugin/skills/lit-typographic-motion/engine/web/scenes/title-slam.mjs +0 -73
  920. package/plugin/skills/lit-typographic-motion/engine/web/stroke.mjs +0 -236
  921. package/plugin/skills/lit-typographic-motion/engine/web/type.mjs +0 -180
  922. package/plugin/skills/lit-typographic-motion/fonts/archivo/Archivo-w100-400.ttf +0 -0
  923. package/plugin/skills/lit-typographic-motion/fonts/archivo/Archivo-w100-700.ttf +0 -0
  924. package/plugin/skills/lit-typographic-motion/fonts/archivo/Archivo-w100-900.ttf +0 -0
  925. package/plugin/skills/lit-typographic-motion/fonts/archivo/Archivo-w125-400.ttf +0 -0
  926. package/plugin/skills/lit-typographic-motion/fonts/archivo/Archivo-w125-700.ttf +0 -0
  927. package/plugin/skills/lit-typographic-motion/fonts/archivo/Archivo-w125-900.ttf +0 -0
  928. package/plugin/skills/lit-typographic-motion/fonts/archivo/Archivo-w75-400.ttf +0 -0
  929. package/plugin/skills/lit-typographic-motion/fonts/archivo/Archivo-w75-700.ttf +0 -0
  930. package/plugin/skills/lit-typographic-motion/fonts/archivo/Archivo-w75-900.ttf +0 -0
  931. package/plugin/skills/lit-typographic-motion/fonts/archivo/OFL.txt +0 -93
  932. package/plugin/skills/lit-typographic-motion/fonts/jetbrains-mono/JetBrainsMono-wght-latin.woff2 +0 -0
  933. package/plugin/skills/lit-typographic-motion/fonts/jetbrains-mono/OFL.txt +0 -93
  934. package/plugin/skills/lit-typographic-motion/fonts/manifest.json +0 -455
  935. package/plugin/skills/lit-typographic-motion/fonts/silkscreen/OFL.txt +0 -93
  936. package/plugin/skills/lit-typographic-motion/fonts/silkscreen/Silkscreen-Bold.ttf +0 -0
  937. package/plugin/skills/lit-typographic-motion/fonts/silkscreen/Silkscreen-Regular.ttf +0 -0
  938. package/plugin/skills/lit-typographic-motion/fonts/stroke/CREDITS +0 -42
  939. package/plugin/skills/lit-typographic-motion/fonts/stroke/EMSAllure.svg +0 -216
  940. package/plugin/skills/lit-typographic-motion/fonts/stroke/EMSFelix.svg +0 -216
  941. package/plugin/skills/lit-typographic-motion/fonts/stroke/EMSOsmotron.svg +0 -216
  942. package/plugin/skills/lit-typographic-motion/fonts/stroke/EMSReadability.svg +0 -216
  943. package/plugin/skills/lit-typographic-motion/fonts/stroke/EMSTech.svg +0 -217
  944. package/plugin/skills/lit-typographic-motion/fonts/stroke/OFL.txt +0 -91
  945. package/plugin/skills/lit-typographic-motion/fonts/vt323/OFL.txt +0 -93
  946. package/plugin/skills/lit-typographic-motion/fonts/vt323/VT323-Regular.ttf +0 -0
  947. package/plugin/skills/lit-typographic-motion/recipes/hero-3d/expected.json +0 -69
  948. package/plugin/skills/lit-typographic-motion/recipes/hero-3d/index.html +0 -139
  949. package/plugin/skills/lit-typographic-motion/recipes/negatives/card-scenes/expected.json +0 -16
  950. package/plugin/skills/lit-typographic-motion/recipes/negatives/card-scenes/index.html +0 -27
  951. package/plugin/skills/lit-typographic-motion/recipes/negatives/reset-sweep/expected.json +0 -16
  952. package/plugin/skills/lit-typographic-motion/recipes/negatives/reset-sweep/index.html +0 -17
  953. package/plugin/skills/lit-typographic-motion/recipes/negatives/still-glow/expected.json +0 -17
  954. package/plugin/skills/lit-typographic-motion/recipes/negatives/still-glow/index.html +0 -18
  955. package/plugin/skills/lit-typographic-motion/recipes/negatives/title-slam/expected.json +0 -17
  956. package/plugin/skills/lit-typographic-motion/recipes/negatives/title-slam/index.html +0 -30
  957. package/plugin/skills/lit-typographic-motion/recipes/orbit-loop/expected.json +0 -67
  958. package/plugin/skills/lit-typographic-motion/recipes/orbit-loop/index.html +0 -152
  959. package/plugin/skills/lit-typographic-motion/recipes/painted-light/expected.json +0 -95
  960. package/plugin/skills/lit-typographic-motion/recipes/painted-light/index.html +0 -202
  961. package/plugin/skills/lit-typographic-motion/recipes/weight-tide/expected.json +0 -67
  962. package/plugin/skills/lit-typographic-motion/recipes/weight-tide/index.html +0 -100
  963. package/plugin/skills/lit-typographic-motion/references/brief-schema.md +0 -119
  964. package/plugin/skills/lit-typographic-motion/references/cover.md +0 -475
  965. package/plugin/skills/lit-typographic-motion/references/craft-loop.md +0 -100
  966. package/plugin/skills/lit-typographic-motion/references/depth.md +0 -122
  967. package/plugin/skills/lit-typographic-motion/references/engine-contract.md +0 -124
  968. package/plugin/skills/lit-typographic-motion/references/look.md +0 -157
  969. package/plugin/skills/lit-typographic-motion/references/runtime.md +0 -98
  970. package/plugin/skills/lit-typographic-motion/references/sound.md +0 -181
  971. package/plugin/skills/lit-typographic-motion/references/stage.md +0 -310
  972. package/plugin/skills/lit-typographic-motion/references/studio.md +0 -245
  973. package/plugin/skills/lit-typographic-motion/references/style-bibles.md +0 -130
  974. package/plugin/skills/lit-typographic-motion/references/treatment.md +0 -189
  975. package/plugin/skills/lit-typographic-motion/references/type-craft.md +0 -87
  976. package/plugin/skills/lit-typographic-motion/scripts/motion-doctor.mjs +0 -99
  977. package/plugin/skills/lit-typographic-motion/scripts/motion-runtime.mjs +0 -95
  978. package/plugin/skills/lit-typographic-motion/scripts/motion.mjs +0 -206
  979. package/plugin/skills/lit-typographic-motion/styles/paper.json +0 -41
  980. package/plugin/skills/lit-typographic-motion/styles/swiss-signal.json +0 -41
  981. package/plugin/skills/lit-typographic-motion/styles/terminalcore.json +0 -42
  982. package/plugin/skills/lit-typographic-motion/styles/tidal.json +0 -41
  983. package/plugin/skills/readme-studio/references/decoration-and-navigation.md +0 -55
  984. package/plugin/skills/readme-studio/references/facts-and-assembly.md +0 -19
  985. package/plugin/skills/readme-studio/references/production-interview.md +0 -11
  986. package/plugin/skills/readme-studio/references/render-and-deliver.md +0 -44
  987. package/plugin/skills/readme-studio/references/type-and-background.md +0 -23
  988. package/plugin/skills/readme-studio/scripts/readme-runtime-lock/package-lock.json +0 -133
  989. package/plugin/skills/readme-studio/scripts/readme-runtime-lock/package.json +0 -6
  990. package/plugin/skills/readme-studio/scripts/readme-runtime.mjs +0 -77
  991. package/plugin/skills/readme-studio/scripts/validate-readme-facts.mjs +0 -28
  992. package/plugin/skills/readme-studio/templates/cover-source.json +0 -21
  993. package/plugin/skills/readme-studio/templates/hyperframes-cover/index.html +0 -30
  994. package/plugin/skills/readme-studio/templates/hyperframes-cover/index.motion.json +0 -1
  995. package/plugin/skills/readme-studio/templates/hyperframes-cover/package-lock.json +0 -2017
  996. package/plugin/skills/readme-studio/templates/hyperframes-cover/package.json +0 -8
  997. package/plugin/skills/readme-studio/templates/readme-cover-section.md +0 -75
  998. package/plugin/skills/readme-studio/templates/readme-facts.json +0 -4
  999. package/plugin/skills/readme-studio/templates/remotion-cover/package-lock.json +0 -3783
  1000. package/plugin/skills/readme-studio/templates/remotion-cover/package.json +0 -7
  1001. package/plugin/skills/readme-studio/templates/remotion-cover/src/index.tsx +0 -36
  1002. package/plugin/skills/readme-studio/templates/typography/package-lock.json +0 -133
  1003. package/plugin/skills/readme-studio/templates/typography/package.json +0 -6
  1004. package/plugin/skills/readme-studio/templates/typography/safe-files.mjs +0 -57
  1005. package/plugin/skills/readme-studio/templates/typography/shape-text-to-svg.mjs +0 -63
  1006. package/plugin/skills/visual-qa/references/capture-playbook.md +0 -126
  1007. package/plugin/skills/visual-qa/references/complete-contract.md +0 -677
  1008. package/plugin/skills/visual-qa/schemas/design-contract-v1alpha1.schema.json +0 -305
  1009. package/plugin/skills/visual-qa/schemas/design-contract-v1beta1.schema.json +0 -291
  1010. package/plugin/skills/visual-qa/schemas/design-contract-v1beta2.schema.json +0 -311
  1011. package/plugin/skills/visual-qa/schemas/evidence-manifest-v1alpha1.schema.json +0 -235
  1012. package/plugin/skills/visual-qa/schemas/evidence-manifest-v1beta1.schema.json +0 -208
  1013. package/plugin/skills/visual-qa/schemas/review-receipt-v1alpha1.schema.json +0 -66
  1014. package/plugin/skills/visual-qa/scripts/ansi.ts +0 -17
  1015. package/plugin/skills/visual-qa/scripts/cli.mjs +0 -101
  1016. package/plugin/skills/visual-qa/scripts/cli.ts +0 -96
  1017. package/plugin/skills/visual-qa/scripts/design-contract-shape.mjs +0 -448
  1018. package/plugin/skills/visual-qa/scripts/east-asian-width.ts +0 -72
  1019. package/plugin/skills/visual-qa/scripts/errors.mjs +0 -12
  1020. package/plugin/skills/visual-qa/scripts/evidence-io.mjs +0 -184
  1021. package/plugin/skills/visual-qa/scripts/evidence-semantic.mjs +0 -95
  1022. package/plugin/skills/visual-qa/scripts/evidence-shape.mjs +0 -163
  1023. package/plugin/skills/visual-qa/scripts/evidence.mjs +0 -421
  1024. package/plugin/skills/visual-qa/scripts/image-diff.mjs +0 -89
  1025. package/plugin/skills/visual-qa/scripts/image-diff.ts +0 -109
  1026. package/plugin/skills/visual-qa/scripts/png-chunks.mjs +0 -107
  1027. package/plugin/skills/visual-qa/scripts/png-crc.ts +0 -27
  1028. package/plugin/skills/visual-qa/scripts/png-decode.mjs +0 -143
  1029. package/plugin/skills/visual-qa/scripts/png-decode.ts +0 -206
  1030. package/plugin/skills/visual-qa/scripts/png-synth.ts +0 -57
  1031. package/plugin/skills/visual-qa/scripts/review-rules.mjs +0 -137
  1032. package/plugin/skills/visual-qa/scripts/terminal-text.mjs +0 -117
  1033. package/plugin/skills/visual-qa/scripts/tui-check.mjs +0 -74
  1034. package/plugin/skills/visual-qa/scripts/tui-grid.ts +0 -88
  1035. package/plugin/skills/visual-qa/scripts/types.ts +0 -54
@@ -1,1113 +0,0 @@
1
- "use strict";
2
-
3
- /**
4
- * layout-resolver.js — Resolve AST slides against a template's layout mapping.
5
- *
6
- * Takes a compiled AST (from compile-deck.js) and a loaded template object
7
- * (from template-registry.js) and produces a render-ready resolved spec with
8
- * positioned regions and decoration elements for each slide.
9
- *
10
- * API:
11
- * const { resolve } = require('./layout-resolver');
12
- * const resolved = resolve(ast, templateObj);
13
- */
14
-
15
- // ---------------------------------------------------------------------------
16
- // Minimal YAML parser (no external dependencies)
17
- // Handles: key: value, nested maps via indentation, lists with "- ", comments
18
- // ---------------------------------------------------------------------------
19
-
20
- /**
21
- * Parse a YAML string into a JS object.
22
- * Supports: maps, scalar values, quoted strings, dash lists, comments.
23
- * @param {string} text — Raw YAML content
24
- * @returns {object}
25
- */
26
- function parseYaml(text) {
27
- const lines = text.split("\n");
28
- return parseBlock(lines, 0).value;
29
- }
30
-
31
- /**
32
- * Parse a block of YAML lines starting at a given indent level.
33
- * Returns { value, end } where end is the next unparsed line index.
34
- */
35
- function parseBlock(lines, start) {
36
- if (start >= lines.length) return { value: null, end: lines.length };
37
-
38
- const firstLine = stripComment(lines[start]);
39
- const firstIndent = leadingSpaces(lines[start]);
40
-
41
- // Empty/blank first line — skip ahead
42
- if (!firstLine.trim()) {
43
- return parseBlock(lines, start + 1);
44
- }
45
-
46
- // Determine if this is a list block or map block
47
- if (firstLine.trimStart().startsWith("- ")) {
48
- return parseList(lines, start, firstIndent);
49
- }
50
-
51
- return parseMap(lines, start, firstIndent);
52
- }
53
-
54
- /**
55
- * Parse a YAML map block at a given indent level.
56
- */
57
- function parseMap(lines, start, baseIndent) {
58
- const obj = {};
59
- let i = start;
60
-
61
- while (i < lines.length) {
62
- const raw = lines[i];
63
- const line = stripComment(raw);
64
- const indent = leadingSpaces(raw);
65
-
66
- // Blank line — skip
67
- if (!line.trim()) { i++; continue; }
68
-
69
- // Dedent — end of this map
70
- if (indent < baseIndent) break;
71
-
72
- // List item at our indent — not part of this map
73
- if (line.trimStart().startsWith("- ") && indent === baseIndent) break;
74
-
75
- // Expect key: value
76
- const colonIdx = line.indexOf(":");
77
- if (colonIdx === -1) { i++; continue; }
78
-
79
- const key = line.substring(0, colonIdx).trim();
80
- const afterColon = line.substring(colonIdx + 1).trim();
81
-
82
- if (afterColon === "") {
83
- // Value is on subsequent lines (nested block)
84
- const next = parseBlock(lines, i + 1);
85
- if (next.value !== null) {
86
- // Check if next block starts with a dash list
87
- const nextLine = stripComment(lines[i + 1] || "");
88
- if (nextLine.trimStart().startsWith("- ") && leadingSpaces(lines[i + 1]) > indent) {
89
- obj[key] = next.value;
90
- } else {
91
- obj[key] = next.value;
92
- }
93
- } else {
94
- obj[key] = null;
95
- }
96
- i = next.end;
97
- } else {
98
- obj[key] = parseScalar(afterColon);
99
- i++;
100
- }
101
- }
102
-
103
- return { value: obj, end: i };
104
- }
105
-
106
- /**
107
- * Parse a YAML list block at a given indent level.
108
- */
109
- function parseList(lines, start, baseIndent) {
110
- const arr = [];
111
- let i = start;
112
-
113
- while (i < lines.length) {
114
- const raw = lines[i];
115
- const line = stripComment(raw);
116
- const indent = leadingSpaces(raw);
117
-
118
- if (!line.trim()) { i++; continue; }
119
- if (indent < baseIndent) break;
120
-
121
- const trimmed = line.trimStart();
122
- if (trimmed.startsWith("- ") && indent === baseIndent) {
123
- const itemText = trimmed.substring(2).trim();
124
- if (itemText.includes(":")) {
125
- // Inline map item: "- key: value"
126
- const inlineObj = {};
127
- const colonIdx = itemText.indexOf(":");
128
- const k = itemText.substring(0, colonIdx).trim();
129
- const v = itemText.substring(colonIdx + 1).trim();
130
- inlineObj[k] = parseScalar(v);
131
-
132
- // Check for continuation lines that belong to this item
133
- const nextI = i + 1;
134
- if (nextI < lines.length) {
135
- const nextRaw = lines[nextI];
136
- const nextIndent = leadingSpaces(nextRaw);
137
- if (nextIndent > indent && !stripComment(nextRaw).trimStart().startsWith("- ")) {
138
- const nested = parseMap(lines, nextI, nextIndent);
139
- Object.assign(inlineObj, nested.value);
140
- i = nested.end;
141
- arr.push(inlineObj);
142
- continue;
143
- }
144
- }
145
- arr.push(inlineObj);
146
- } else {
147
- arr.push(parseScalar(itemText));
148
- }
149
- i++;
150
- } else {
151
- break;
152
- }
153
- }
154
-
155
- return { value: arr, end: i };
156
- }
157
-
158
- /**
159
- * Parse a scalar YAML value (string, number, boolean, null) or inline array.
160
- * Handles: [a, b, c] inline array syntax.
161
- */
162
- function parseScalar(val) {
163
- // Inline array: [item1, item2, ...]
164
- if (val.startsWith("[") && val.endsWith("]")) {
165
- const inner = val.slice(1, -1).trim();
166
- if (inner === "") return [];
167
- return inner.split(",").map((s) => parseScalar(s.trim()));
168
- }
169
- if (val === "null" || val === "~") return null;
170
- if (val === "true") return true;
171
- if (val === "false") return false;
172
- // Quoted string
173
- if ((val.startsWith('"') && val.endsWith('"')) ||
174
- (val.startsWith("'") && val.endsWith("'"))) {
175
- return val.slice(1, -1);
176
- }
177
- // Number
178
- if (/^-?\d+(\.\d+)?$/.test(val)) return parseFloat(val);
179
- return val;
180
- }
181
-
182
- /** Remove trailing # comment from a line, respecting quoted strings. */
183
- function stripComment(line) {
184
- let inQuote = false;
185
- let quoteChar = "";
186
- for (let i = 0; i < line.length; i++) {
187
- const ch = line[i];
188
- if (inQuote) {
189
- if (ch === quoteChar) inQuote = false;
190
- } else {
191
- if (ch === '"' || ch === "'") {
192
- inQuote = true;
193
- quoteChar = ch;
194
- } else if (ch === "#") {
195
- return line.substring(0, i);
196
- }
197
- }
198
- }
199
- return line;
200
- }
201
-
202
- /** Count leading spaces of a line. */
203
- function leadingSpaces(line) {
204
- let count = 0;
205
- for (let i = 0; i < line.length; i++) {
206
- if (line[i] === " ") count++;
207
- else break;
208
- }
209
- return count;
210
- }
211
-
212
- // ---------------------------------------------------------------------------
213
- // Block-to-region mapping
214
- // ---------------------------------------------------------------------------
215
-
216
- /**
217
- * Map a block type to the corresponding region name in the layout mapping.
218
- * @param {string} blockType
219
- * @param {object} block — The block object (used for summary-group position)
220
- * @returns {string|null} — Region name or null if not mappable
221
- */
222
- function blockToRegion(blockType, block, layout) {
223
- switch (blockType) {
224
- case "title": return "title";
225
- case "body": return "body";
226
- case "kpi-table":
227
- // content/summary layout defines "table" region; main layout defines "kpi_table" region
228
- return (layout === "main") ? "kpi_table" : "table";
229
- case "image": return "image";
230
- case "main-box": return "main_box";
231
- case "key-message": return "key_message";
232
- case "table": return "table";
233
- case "figure-caption": return "figure_caption";
234
- case "table-caption": return "table_caption";
235
- case "summary-group":
236
- return block.position === "top" ? "group_top" : "group_bottom";
237
- default:
238
- return null;
239
- }
240
- }
241
-
242
- /**
243
- * Would this table block render as KPI badges rather than as a table?
244
- *
245
- * The renderer decides that from the block's shape, and the answer changes how
246
- * much vertical room the block needs, so the rule lives here where the geometry
247
- * is worked out and the renderer reads it from here.
248
- */
249
- function looksLikeKpi(content, o = {}) {
250
- if (content && content.chart) return false;
251
- const headers = (content && content.headers) || [];
252
- const rows = (content && content.rows) || [];
253
- const cols = headers.length;
254
- // Under a tonality a row may hold up to six figures (spec-v2 Amendments 6); legacy cards stop at four.
255
- if (cols < 2 || cols > (o.basis ? 6 : 4)) return false;
256
- if (cols === 2) {
257
- const pairs = [headers, ...rows];
258
- return pairs.length <= 4 && pairs.every((p) => String(p[0]).length <= 12);
259
- }
260
- // Under a tonality a second row may give each figure's basis or comparison (spec-v2 Amendments 5).
261
- if (o.basis && rows.length === 2) return rows[0].every((c) => String(c).length <= 12) && rows[1].every((c) => String(c).length <= 24);
262
- return rows.length === 1 && rows[0].every((c) => String(c).length <= 12);
263
- }
264
-
265
- // A KPI badge stacks a small label over a large value, so it stands roughly as tall as the
266
- // template's kpi.blockHeight token (1.75in on the legacy templates) no matter how few rows fed it.
267
- const grid = require("./grid-resolver");
268
-
269
- // ---------------------------------------------------------------------------
270
- // Capability validation
271
- // ---------------------------------------------------------------------------
272
-
273
- /**
274
- * Capability rules: which block types each layout supports.
275
- * Mirrors the structure in capabilities.yaml but kept as code
276
- * so validation works even with minimal template data.
277
- */
278
- const CAPABILITY_RULES = {
279
- cover: new Set(["title", "notes"]),
280
- section: new Set(["title", "notes", "image", "figure-caption"]),
281
- content: new Set(["title", "key-message", "body", "image", "notes", "kpi-table", "figure-caption", "table-caption"]),
282
- main: new Set(["title", "key-message", "body", "main-box", "kpi-table", "image", "notes", "figure-caption", "table-caption"]),
283
- summary: new Set(["title", "key-message", "summary-group", "image", "kpi-table", "figure-caption", "table-caption"]),
284
- closing: new Set(["title", "notes"]),
285
- };
286
-
287
- // Blocks that carry their own position and so never claim a region.
288
- const PLACEMENT_BLOCK_TYPES = new Set(["box", "shape", "columns"]);
289
-
290
- // Notes are slide-level metadata; placement blocks position themselves. Neither
291
- // depends on what regions a layout happens to declare.
292
- const ALWAYS_ALLOWED = new Set(["notes", ...PLACEMENT_BLOCK_TYPES]);
293
-
294
- // The inverse of blockToRegion. A template may declare a layout without also
295
- // listing its supported blocks, and the regions it declares already say which
296
- // blocks it can hold — deriving the answer keeps the layout set open without
297
- // hardcoding another table that would drift from this one.
298
- const REGION_TO_BLOCKS = {
299
- title: ["title"],
300
- body: ["body"],
301
- table: ["kpi-table", "table"],
302
- kpi_table: ["kpi-table"],
303
- image: ["image"],
304
- main_box: ["main-box"],
305
- key_message: ["key-message"],
306
- figure_caption: ["figure-caption"],
307
- table_caption: ["table-caption"],
308
- group_top: ["summary-group"],
309
- group_bottom: ["summary-group"],
310
- };
311
-
312
- // "free" needs no template declaration: it means "this slide uses no template
313
- // region", so every template supports it by construction. A template may still
314
- // declare its own free layout, and that declaration wins.
315
- const FREE_LAYOUT = { layout_source: "none", decorations: null, regions: {} };
316
-
317
- // A region holds one block. Images are the documented exception — they collapse
318
- // into a grid. Captions are subordinate labels rather than content, and last-wins
319
- // is how every existing deck already renders them.
320
- const MERGEABLE_REGIONS = new Set(["image"]);
321
- const SUBORDINATE_REGIONS = new Set(["figure_caption", "table_caption"]);
322
-
323
- /**
324
- * Validate blocks against capability rules from the template's capabilities.
325
- * @param {number} slideIndex
326
- * @param {string} layout
327
- * @param {Array} blocks
328
- * @param {object} [templateCapabilities] — Parsed capabilities.yaml (optional)
329
- * @param {object} [layoutConfig] — The layout's mapping entry, used to derive
330
- * capabilities when the template publishes none for this layout
331
- */
332
- function validateCapabilities(slideIndex, layout, blocks, templateCapabilities, layoutConfig) {
333
- // Use template capabilities if provided, otherwise fall back to built-in
334
- // rules, otherwise derive from the regions this layout declares.
335
- let allowed;
336
- if (templateCapabilities && templateCapabilities.supported_blocks &&
337
- templateCapabilities.supported_blocks[layout]) {
338
- allowed = new Set(templateCapabilities.supported_blocks[layout]);
339
- } else if (CAPABILITY_RULES[layout]) {
340
- allowed = CAPABILITY_RULES[layout];
341
- } else if (layoutConfig && layoutConfig.regions) {
342
- allowed = new Set(
343
- Object.keys(layoutConfig.regions).flatMap((r) => REGION_TO_BLOCKS[r] || [])
344
- );
345
- }
346
-
347
- if (!allowed) {
348
- throw new Error(
349
- `Slide ${slideIndex}: unknown layout "${layout}" with no capability rules`
350
- );
351
- }
352
-
353
- for (const block of blocks) {
354
- if (ALWAYS_ALLOWED.has(block.type)) continue;
355
-
356
- if (!allowed.has(block.type)) {
357
- throw new Error(
358
- `Slide ${slideIndex} (layout: ${layout}): ` +
359
- `block type "${block.type}" is not allowed. ` +
360
- `Allowed: ${[...allowed, ...ALWAYS_ALLOWED].join(", ") || "(placement blocks only)"}`
361
- );
362
- }
363
- }
364
- }
365
-
366
- /**
367
- * Divide a layout's body region into columns.
368
- *
369
- * Tracks are ratios, so the source carries no coordinates and the same deck
370
- * still lands correctly on a template with a different canvas.
371
- *
372
- * @returns {Array<object>} one content-band placement per column
373
- */
374
- function resolveColumns(slideIndex, layout, regionDefs, block) {
375
- const bodyDef = regionDefs && regionDefs.body;
376
- if (!bodyDef) {
377
- throw new Error(
378
- `Slide ${slideIndex} (layout: ${layout}): ":::: columns" divides the layout's ` +
379
- `body region, but "${layout}" declares none. ` +
380
- `Regions here: ${Object.keys(regionDefs || {}).join(", ") || "(none)"}`
381
- );
382
- }
383
-
384
- const weights = block.tracks.map((track) => {
385
- const value = parseFloat(String(track));
386
- if (!isFinite(value) || value <= 0) {
387
- throw new Error(
388
- `Slide ${slideIndex}: column track "${track}" is not a positive ratio ` +
389
- `(write them as "2fr 1fr").`
390
- );
391
- }
392
- return value;
393
- });
394
-
395
- const total = weights.reduce((sum, w) => sum + w, 0);
396
- const gap = typeof block.gap === "number" ? block.gap : 0.25;
397
- const inner = bodyDef.w - gap * (weights.length - 1);
398
- if (inner <= 0) {
399
- throw new Error(
400
- `Slide ${slideIndex}: a gap of ${gap}in leaves no width for ${weights.length} columns ` +
401
- `inside a body region ${bodyDef.w}in wide.`
402
- );
403
- }
404
-
405
- let x = bodyDef.x;
406
- return block.columns.map((column, i) => {
407
- const w = inner * (weights[i] / total);
408
- const placement = {
409
- kind: "box",
410
- z: "content",
411
- x,
412
- y: bodyDef.y,
413
- w,
414
- ...(bodyDef.h !== undefined ? { h: bodyDef.h } : {}),
415
- blocks: column.blocks || [],
416
- };
417
- x += w + gap;
418
- return placement;
419
- });
420
- }
421
-
422
- // ---------------------------------------------------------------------------
423
- // Main resolve function
424
- // ---------------------------------------------------------------------------
425
-
426
- /**
427
- * Resolve a compiled AST against a template to produce render-ready specs.
428
- *
429
- * @param {object} ast — AST from compile-deck.js (conforms to slide-ast-v1)
430
- * @param {object} templateObj — Template object from template-registry.js
431
- * Expected shape:
432
- * {
433
- * name: "AZURE-PRO",
434
- * mapping: "<yaml string of layout-mapping.yaml>",
435
- * capabilities: "<yaml string of capabilities.yaml>",
436
- * template: "<yaml string of template.yaml>"
437
- * }
438
- * @returns {object} — Resolved deck spec with positioned regions
439
- */
440
- /**
441
- * Caption prefixes in the deck's language: "도"/"표" for a Korean deck, "Figure"/
442
- * "Table" otherwise. Frontmatter `lang: ko|en` decides; without it, a deck whose
443
- * text is at least a tenth Hangul (one syllable weighs about two Latin letters)
444
- * is Korean. English decks used to get Korean prefixes.
445
- */
446
- function captionPrefixes(ast) {
447
- const meta = (ast.deck && ast.deck.metadata) || {};
448
- const lang = String(meta.lang || meta.language || "").toLowerCase();
449
- let korean;
450
- if (lang) korean = lang.startsWith("ko");
451
- else {
452
- const strings = [];
453
- const walk = (node, key) => {
454
- if (typeof node === "string") { if (!["type", "layout", "src", "variant", "kind", "align"].includes(key)) strings.push(node); }
455
- else if (Array.isArray(node)) node.forEach((n) => walk(n, key));
456
- else if (node && typeof node === "object") for (const [k, v] of Object.entries(node)) walk(v, k);
457
- };
458
- walk(ast.slides || [], "");
459
- const text = strings.join(" ");
460
- const hangul = (text.match(/[\uac00-\ud7a3]/gu) || []).length;
461
- const latin = (text.match(/[A-Za-z]/gu) || []).length;
462
- korean = hangul * 2 >= 0.1 * (hangul * 2 + latin) && hangul > 0;
463
- }
464
- return korean ? ["도", "표"] : ["Figure", "Table"];
465
- }
466
-
467
- function resolve(ast, templateObj) {
468
- if (!ast || !ast.slides) {
469
- throw new Error("resolve(): invalid AST — expected an object with a slides array");
470
- }
471
- if (!templateObj) {
472
- throw new Error("resolve(): templateObj is required");
473
- }
474
- if (templateObj.pack && !templateObj.pack.legacy) return resolvePack(ast, templateObj);
475
-
476
- // Parse YAML strings from template object
477
- const mapping = typeof templateObj.mapping === "string"
478
- ? parseYaml(templateObj.mapping)
479
- : templateObj.mapping;
480
- const capabilities = typeof templateObj.capabilities === "string"
481
- ? parseYaml(templateObj.capabilities)
482
- : templateObj.capabilities;
483
-
484
- if (!mapping || !mapping.layouts) {
485
- throw new Error(
486
- `resolve(): template "${templateObj.name || "unknown"}" has no layout mapping`
487
- );
488
- }
489
-
490
- const resolvedSlides = [];
491
- let figureCount = 0;
492
- let tableCount = 0;
493
-
494
- const deckMeta = ast.deck || {};
495
- const [FIGURE, TABLE] = captionPrefixes(ast);
496
-
497
- const tokens = (templateObj.pack && templateObj.pack.tokens) || {};
498
- const kpiBlockHeight = (tokens.kpi && tokens.kpi.blockHeight) || 1.75;
499
- for (const slide of ast.slides) {
500
- if (slide.meta && slide.meta.title) {
501
- throw new Error(
502
- `Slide ${slide.index + 1}: "title: ${slide.meta.title}" picks a title treatment, which needs a tonality; ` +
503
- `${templateObj.name || "this template"} is a legacy template with one title look`
504
- );
505
- }
506
- const resolved = resolveSlide(slide, mapping, capabilities, deckMeta, kpiBlockHeight);
507
- // Auto-number captions across the deck
508
- for (const [name, region] of Object.entries(resolved.regions || {})) {
509
- if (region.content && region.content.type === "figure-caption") {
510
- figureCount++;
511
- region.content.number = figureCount;
512
- region.content.prefix = FIGURE;
513
- }
514
- if (region.content && region.content.type === "table-caption" && region.content.figure) {
515
- // A chart's caption is a figure caption, numbered with the figures.
516
- figureCount++;
517
- region.content.number = figureCount;
518
- region.content.prefix = FIGURE;
519
- } else if (region.content && region.content.type === "table-caption") {
520
- tableCount++;
521
- region.content.number = tableCount;
522
- region.content.prefix = TABLE;
523
- }
524
- }
525
- resolvedSlides.push(resolved);
526
- }
527
-
528
- return {
529
- deck: { ...ast.deck },
530
- slides: resolvedSlides,
531
- };
532
- }
533
-
534
- /**
535
- * Resolve a single slide against the layout mapping.
536
- *
537
- * @param {object} slide — A slide from the AST
538
- * @param {object} mapping — Parsed layout-mapping.yaml
539
- * @param {object} [capabilities] — Parsed capabilities.yaml
540
- * @returns {object} — Resolved slide spec
541
- */
542
- function resolveSlide(slide, mapping, capabilities, deckMeta, kpiBlockHeight) {
543
- const { index, blocks } = slide;
544
-
545
- // 1. Look up layout configuration. A layout family the template does not declare (kpi-row,
546
- // chart-insight, …) is drawn on the template layout that hosts its kind of slide.
547
- const family = familyOf(slide.layout, mapping, index);
548
- const layout = (mapping.layouts[slide.layout] || slide.layout === "free") ? slide.layout : family.host;
549
- const layoutConfig = mapping.layouts[layout] ||
550
- (layout === "free" ? FREE_LAYOUT : null);
551
- if (!layoutConfig) {
552
- throw new Error(
553
- `Slide ${index}: layout "${layout}" not found in template mapping. ` +
554
- `Available: ${Object.keys(mapping.layouts).join(", ")}, free`
555
- );
556
- }
557
-
558
- // 2. Validate blocks against capabilities
559
- validateCapabilities(index, layout, blocks, capabilities, layoutConfig);
560
-
561
- // 3. Pick the variant, if the slide asked for one. A variant swaps the
562
- // decoration set and may move the regions the new furniture displaces —
563
- // a split cover needs a narrower title than a full-bleed one.
564
- let decorKey = layoutConfig.decorations;
565
- let regionDefs = layoutConfig.regions || {};
566
- const variantName = slide.meta && slide.meta.variant;
567
- if (variantName) {
568
- const variants = layoutConfig.variants || {};
569
- const variant = variants[variantName];
570
- if (!variant) {
571
- throw new Error(
572
- `Slide ${index}: layout "${layout}" has no variant "${variantName}". ` +
573
- `Available: ${Object.keys(variants).join(", ") || "(none — this layout declares no variants)"}`
574
- );
575
- }
576
- if (variant.decorations) decorKey = variant.decorations;
577
- if (variant.regions) regionDefs = { ...regionDefs, ...variant.regions };
578
- }
579
-
580
- let decorations = [];
581
- if (decorKey && mapping.decorations && mapping.decorations[decorKey]) {
582
- decorations = mapping.decorations[decorKey].elements || [];
583
- }
584
-
585
- // 4. Map blocks to regions, and collect the blocks that place themselves
586
- const regions = {};
587
- const placements = [];
588
- let hasColumns = false;
589
-
590
- for (const block of blocks) {
591
- if (block.type === "shape") {
592
- const { type, ...rest } = block;
593
- placements.push({ kind: "shape", ...rest });
594
- continue;
595
- }
596
- if (block.type === "box") {
597
- // A role that does not exist would otherwise fall back to a default and
598
- // render in the wrong type, which is worse than not rendering: the deck
599
- // looks finished and is quietly off-system.
600
- const roles = (capabilities && capabilities.font_roles) || null;
601
- if (block.role && roles && !roles[block.role]) {
602
- throw new Error(
603
- `Slide ${index}: "::: box role=${block.role}" names a font role this ` +
604
- `template does not define. Available: ${Object.keys(roles).join(", ")}`
605
- );
606
- }
607
- const { type, ...rest } = block;
608
- placements.push({ kind: "box", ...rest });
609
- continue;
610
- }
611
- if (block.type === "columns") {
612
- placements.push(...resolveColumns(index, layout, regionDefs, block));
613
- hasColumns = true;
614
- continue;
615
- }
616
-
617
- // An explicit "::: region name=" beats the block type's default region.
618
- const regionName = block.regionHint || blockToRegion(block.type, block, layout);
619
- if (!regionName) continue;
620
-
621
- const regionDef = regionDefs[regionName];
622
- if (!regionDef) {
623
- throw new Error(
624
- `Slide ${index} (layout: ${layout}): ` +
625
- `block "${block.type}" maps to region "${regionName}" ` +
626
- `which is not defined in the layout mapping. ` +
627
- `Available regions: ${Object.keys(regionDefs).join(", ") || "(none)"}`
628
- );
629
- }
630
-
631
- // Build the resolved region: position metadata + block content
632
- const resolved = {
633
- x: regionDef.x,
634
- y: regionDef.y,
635
- w: regionDef.w,
636
- ...(regionDef.h !== undefined ? { h: regionDef.h } : {}),
637
- content: extractContent(block),
638
- };
639
-
640
- // Copy region metadata (font roles, autofit, alignment, border, etc.)
641
- for (const key of Object.keys(regionDef)) {
642
- if (key === "x" || key === "y" || key === "w" || key === "h") continue;
643
- resolved[key] = regionDef[key];
644
- }
645
-
646
- if (regions[regionName]) {
647
- if (MERGEABLE_REGIONS.has(regionName)) {
648
- const existing = regions[regionName].content;
649
- const images = existing && existing.type === "image-grid"
650
- ? existing.images
651
- : [existing];
652
- images.push(resolved.content);
653
- regions[regionName].content = { type: "image-grid", images };
654
- } else if (SUBORDINATE_REGIONS.has(regionName)) {
655
- regions[regionName] = resolved;
656
- } else {
657
- throw new Error(
658
- `Slide ${index} (layout: ${layout}): two blocks both claim region ` +
659
- `"${regionName}", so one would be lost. A region holds one block — ` +
660
- `send one of them elsewhere with "::: region name=<region>", or place ` +
661
- `them side by side with ":::: columns". ` +
662
- `Regions here: ${Object.keys(regionDefs).join(", ")}`
663
- );
664
- }
665
- } else {
666
- regions[regionName] = resolved;
667
- }
668
- }
669
-
670
- // Columns take over the body area, so the body region must not also render.
671
- if (hasColumns) delete regions.body;
672
-
673
- // When body + image coexist, narrow body to leave room for the image
674
- if (regions.body && regions.image) {
675
- const imageX = regions.image.x || 0;
676
- if (imageX > 0 && imageX < (regions.body.x || 0) + (regions.body.w || 10)) {
677
- regions.body.w = Math.max(1, imageX - (regions.body.x || 0) - 0.2);
678
- }
679
- }
680
-
681
- // When a table + image coexist on one slide, narrow the table so it never
682
- // overlaps the image (the image keeps its right-hand column with a gutter).
683
- // Content layouts map the table to "table"; main layouts to "kpi_table".
684
- const tableImageRegion = regions.kpi_table || regions.table;
685
- if (tableImageRegion && regions.image) {
686
- const imageX = regions.image.x || 0;
687
- if (imageX > 0 && imageX < (tableImageRegion.x || 0) + (tableImageRegion.w || 10)) {
688
- tableImageRegion.w = Math.max(1, imageX - (tableImageRegion.x || 0) - 0.2);
689
- }
690
- }
691
-
692
- // When table + body coexist, offset body below the table. Content layouts
693
- // map KPI tables to "table" while main layouts map them to "kpi_table".
694
- const tableRegion = regions.kpi_table || regions.table;
695
- if (tableRegion && regions.body) {
696
- const tblY = tableRegion.y || 1.044;
697
- const tblRows = (tableRegion.content && tableRegion.content.rows) || [];
698
- const tblHeaders = (tableRegion.content && tableRegion.content.headers) || [];
699
- const rowCount = tblRows.length + (tblHeaders.length > 0 ? 1 : 0);
700
- const rowH = 0.35;
701
- // The row model only describes a table drawn as a table. The same block
702
- // renders as KPI badges when its shape suggests it, and those stand far
703
- // taller than their row count, so a body placed by the row estimate alone
704
- // lands on top of them.
705
- const tableContent = tableRegion.content || {};
706
- const needed = looksLikeKpi(tableContent)
707
- ? kpiBlockHeight
708
- : rowCount * rowH;
709
- const tableBottom = tblY + Math.max(needed, tableRegion.h || 0) + 0.3;
710
- if ((regions.body.y || 1.044) < tableBottom) {
711
- regions.body.y = tableBottom;
712
- }
713
- }
714
-
715
- // Cover slide: auto-populate date_line from deck metadata
716
- if (layout === "cover" && deckMeta) {
717
- const meta = deckMeta.metadata || {};
718
- if (regionDefs.date_line && !regions.date_line) {
719
- const parts = [];
720
- if (meta.date) parts.push(meta.date);
721
- if (meta.department) parts.push(meta.department);
722
- if (parts.length > 0) {
723
- const rd = regionDefs.date_line;
724
- regions.date_line = {
725
- x: rd.x, y: rd.y, w: rd.w,
726
- ...(rd.h !== undefined ? { h: rd.h } : {}),
727
- content: parts.join(" | "),
728
- };
729
- for (const key of Object.keys(rd)) {
730
- if (key === "x" || key === "y" || key === "w" || key === "h") continue;
731
- regions.date_line[key] = rd[key];
732
- }
733
- }
734
- }
735
- // Auto-populate any cover region named after a frontmatter key (e.g. subtitle,
736
- // eyebrow) so designed cover templates can surface deck metadata.
737
- for (const [rname, rdef] of Object.entries(regionDefs)) {
738
- if (regions[rname] || rname === "date_line" || rname === "title") continue;
739
- if (meta[rname] == null) continue;
740
- regions[rname] = { x: rdef.x, y: rdef.y, w: rdef.w, ...(rdef.h !== undefined ? { h: rdef.h } : {}), content: String(meta[rname]) };
741
- for (const key of Object.keys(rdef)) {
742
- if (["x", "y", "w", "h"].includes(key)) continue;
743
- regions[rname][key] = rdef[key];
744
- }
745
- }
746
- }
747
-
748
- return {
749
- index,
750
- layout,
751
- family: family.id,
752
- layoutSource: layoutConfig.layout_source,
753
- decorations,
754
- regions,
755
- placements,
756
- blocks,
757
- ...(slide.meta ? { meta: slide.meta } : {}),
758
- };
759
- }
760
-
761
- /**
762
- * Extract the primary text content from a block for the resolved region.
763
- * @param {object} block
764
- * @returns {string}
765
- */
766
- function extractContent(block) {
767
- if (block.type === "title") return block.content || "";
768
- if (block.type === "main-box") return block.content || "";
769
- if (block.type === "key-message") return block.content || "";
770
- if (block.type === "notes") return block.content || "";
771
- if (block.type === "body") return { type: "body", items: block.items || [] };
772
- if (block.type === "kpi-table") return { type: "kpi-table", headers: block.headers || [], rows: block.rows || [], caption: block.caption || "", ...(block.chart ? { chart: block.chart } : {}) };
773
- if (block.type === "image") return { type: "image", src: block.src || "", caption: block.caption || "" };
774
- if (block.type === "figure-caption") return { type: "figure-caption", caption: block.caption || "" };
775
- if (block.type === "table-caption") return { type: "table-caption", caption: block.caption || "", ...(block.figure ? { figure: true } : {}) };
776
- if (block.type === "summary-group") return { type: "summary-group", heading: block.heading, items: block.items || [] };
777
- return "";
778
- }
779
-
780
- // ---------------------------------------------------------------------------
781
- // Layout families
782
- // ---------------------------------------------------------------------------
783
-
784
- /**
785
- * The family a slide is stamped with, and the template layout that hosts it when the template
786
- * does not declare the name itself. A name that is neither keeps the template's own error.
787
- */
788
- function familyOf(layout, mapping, index) {
789
- if (grid.LEGACY_LAYOUTS[layout]) return { id: grid.LEGACY_LAYOUTS[layout], host: layout };
790
- if (mapping.layouts[layout]) return { id: layout, host: layout };
791
- try {
792
- const f = grid.resolveFamily(layout, index + 1);
793
- return { id: f.family || layout, host: f.kind === "cover" || f.kind === "section" ? f.kind : "content" };
794
- } catch (_) {
795
- return { id: layout, host: layout };
796
- }
797
- }
798
-
799
- // ---------------------------------------------------------------------------
800
- // Tonality packs: regions on the 12-column grid
801
- // ---------------------------------------------------------------------------
802
-
803
- const PACK_BLOCKS = {
804
- cover: new Set(["title", "notes"]),
805
- section: new Set(["title", "notes", "image", "figure-caption"]),
806
- content: new Set(["title", "key-message", "body", "main-box", "kpi-table", "image", "notes", "figure-caption", "table-caption", "summary-group"]),
807
- };
808
-
809
- const plain = (text) => String(text || "").replace(/\*\*/g, "").trim();
810
-
811
- /** What a slide holds, as the treatment rules need it. */
812
- function slideFacts(blocks) {
813
- const all = blocks.flatMap((b) => (b.type === "columns" ? b.columns.flatMap((c) => c.blocks || []) : [b]));
814
- const has = (type) => all.some((b) => b.type === type);
815
- const textBlocks = all.filter((b) => ["body", "summary-group", "main-box", "key-message"].includes(b.type)).length +
816
- (blocks.some((b) => b.type === "columns") ? 1 : 0);
817
- const bodyItems = all.filter((b) => b.type === "body").reduce((n, b) => n + (b.items || []).length, 0);
818
- return {
819
- image: has("image"),
820
- visual: has("image") || has("kpi-table"),
821
- textBlocks: textBlocks + (bodyItems > 1 ? 1 : 0),
822
- };
823
- }
824
-
825
- /** Comparison halves of numbers are data; halves of arguments are content. */
826
- function comparisonRole(blocks) {
827
- const text = JSON.stringify(blocks);
828
- const digits = (text.match(/\d/g) || []).length;
829
- return digits / Math.max(1, plain(text).length) >= 0.04 ? "data" : "content";
830
- }
831
-
832
- /** The ordered content of a pack slide, captions bound to the visual before them. */
833
- // Families whose geometry is a chart: a table of numbers there is drawn as one.
834
- const DISPLAY_FAMILIES = new Set(["statement", "quote", "closing-statement"]);
835
- const CHART_FAMILIES = new Set(["chart-insight", "full-chart", "kpi-over-chart", "dashboard-grid"]);
836
- const NUMBER_CELL = /^[+\-−±▲▼△▽]?\s*[\d.,]+\s*(?:%p?|배|x|pt|bp|[가-힣]{1,3}|[A-Za-z]{1,3})?$/u;
837
-
838
- /** A table whose data columns are all numbers, over three or more rows, can be drawn as a chart. */
839
- function chartable(c) {
840
- const rows = c.rows || [];
841
- const headers = c.headers || [];
842
- return headers.length >= 2 && rows.length >= 3 &&
843
- headers.slice(1).every((_, ci) => rows.every((r) => r[ci + 1] != null && NUMBER_CELL.test(plain(r[ci + 1]))));
844
- }
845
-
846
- function packItems(blocks, numbering, charts = false) {
847
- const items = [];
848
- for (const block of blocks) {
849
- if (["title", "notes", "key-message", "box", "shape"].includes(block.type)) continue;
850
- if (block.type === "columns") {
851
- items.push({ type: "columns", tracks: block.tracks, columns: block.columns.map((c) => packItems(c.blocks || [], numbering, charts)) });
852
- continue;
853
- }
854
- const content = extractContent(block);
855
- if (charts && block.type === "kpi-table" && !content.chart && chartable(content)) {
856
- content.chart = { type: (content.rows || []).length > 8 ? "line" : "column" };
857
- }
858
- if (block.type === "figure-caption" || block.type === "table-caption") {
859
- // A table drawn as a chart is captioned as a figure.
860
- const charted = [...items].reverse().find((i) => i.type === "kpi-table");
861
- const figure = block.type === "figure-caption" || block.figure || Boolean(charted && charted.content.chart);
862
- content.number = figure ? ++numbering.figure : ++numbering.table;
863
- content.prefix = figure ? numbering.FIGURE : numbering.TABLE;
864
- const target = [...items].reverse().find((i) => ["kpi-table", "image"].includes(i.type));
865
- if (target && !target.caption) target.caption = content;
866
- else items.push({ type: "caption", content });
867
- continue;
868
- }
869
- items.push({ type: block.type, content });
870
- }
871
- return items;
872
- }
873
-
874
- /**
875
- * What covers and sections can draw from the deck itself: the first image, the part names (from
876
- * the agenda heads, else the section titles), the first row of headline numbers and a real year.
877
- */
878
- function deckFacts(ast) {
879
- const facts = { image: null, index: [], figures: [], numeral: null };
880
- const sections = [];
881
- for (const slide of ast.slides) {
882
- for (const b of slide.blocks) {
883
- if (!facts.image && b.type === "image" && b.src) facts.image = { src: b.src, caption: b.caption };
884
- if (!facts.figures.length && b.type === "kpi-table" && !b.chart && looksLikeKpi(b, { basis: true })) {
885
- const headers = b.headers || [];
886
- const row = (b.rows || [])[0] || [];
887
- facts.figures = headers.slice(0, 4).map((h, i) => ({ label: plain(h), value: plain(row[i]) })).filter((f) => f.value);
888
- }
889
- }
890
- if (slide.layout === "agenda" && !facts.index.length) {
891
- const body = slide.blocks.find((b) => b.type === "body");
892
- const items = ((body && body.items) || []).filter((i) => plain(i.heading || i.text)).slice(0, 6);
893
- facts.index = items.map((i) => plain(i.heading || String(i.text || "").replace(/^\*\*(.+?)\*\*.*$/u, "$1")));
894
- // What each part is about, so a section titled with an entry's description finds its place too.
895
- facts.indexAbout = items.map((i) => plain(String(i.text || "").replace(/^\*\*(.+?)\*\*/u, "")));
896
- }
897
- if (/^section/u.test(slide.layout)) {
898
- const t = slide.blocks.find((b) => b.type === "title");
899
- if (t) sections.push(plain(t.content));
900
- }
901
- }
902
- if (!facts.index.length && sections.length >= 2) facts.index = sections.slice(0, 6);
903
- facts.indexAbout = facts.indexAbout || [];
904
- const meta = (ast.deck && ast.deck.metadata) || {};
905
- const year = `${ast.deck && ast.deck.title ? ast.deck.title : ""} ${meta.date || ""}`.match(/\b(19|20)\d{2}\b/u);
906
- facts.numeral = year ? year[0] : null;
907
- return facts;
908
- }
909
-
910
- /** Titles of the content slides a section opens, up to the next section or closing (at most three). */
911
- function sectionContents(ast, from) {
912
- const out = [];
913
- for (const s of ast.slides.slice(from + 1)) {
914
- if (/^(section|closing)/u.test(s.layout || "")) break;
915
- const t = s.blocks.find((b) => b.type === "title");
916
- if (t && plain(t.content)) out.push(plain(t.content));
917
- }
918
- return out.slice(0, 3);
919
- }
920
-
921
- /**
922
- * A preview line: a bold run-in label stays bold and is followed by a colon ("**결과:** 공부 시간이 …"),
923
- * unless the label ends in its own separator; any other line is plain text.
924
- */
925
- function runIn(text) {
926
- const m = /^\*\*(.+?)\*\*\s*(.*)$/u.exec(String(text || "").trim());
927
- if (!m || !plain(m[2])) return plain(text);
928
- const label = plain(m[1]);
929
- return `**${/[::.)\]–—-]$/u.test(label) ? label : `${label}:`}** ${plain(m[2])}`;
930
- }
931
-
932
- /** The first body lines (bullets or text, up to five) of the slides a section opens, by title. */
933
- function sectionDigest(ast, from) {
934
- const out = [];
935
- for (const s of ast.slides.slice(from + 1)) {
936
- if (/^(section|closing)/u.test(s.layout || "")) break;
937
- const t = s.blocks.find((b) => b.type === "title");
938
- if (!t || !plain(t.content)) continue;
939
- const lines = s.blocks.filter((b) => b.type === "body").flatMap((b) => b.items || [])
940
- .filter((i) => ["bullet", "text", "numbered"].includes(i.type) && plain(i.text)).slice(0, 5).map((i) => runIn(i.text));
941
- out.push({ title: plain(t.content), lines });
942
- }
943
- return out.slice(0, 3);
944
- }
945
-
946
- /** Position of a section title in the deck's part index (by entry or by its description), or -1. */
947
- function indexOf(facts, title) {
948
- const t = String(title || "").trim();
949
- if (!t || facts.index.length < 2) return -1;
950
- const at = facts.index.findIndex((name) => name === t);
951
- return at >= 0 ? at : facts.indexAbout.findIndex((about) => about === t);
952
- }
953
-
954
- /** Can this cover, section or closing variant be drawn with what the deck and slide hold? true or the reason. */
955
- function variantApplies(variant, facts, slide) {
956
- const ownImage = slide.blocks.find((b) => b.type === "image");
957
- if (["cover-split-image", "cover-full-image"].includes(variant) && !facts.image) return "the deck has no image";
958
- if (variant === "section-image" && !ownImage) return "the section slide has no image";
959
- if (variant === "cover-numeral" && !facts.numeral) return "the deck names no year or real figure";
960
- if (variant === "cover-index" && facts.index.length < 2) return "the deck has no agenda or sections to list";
961
- if (variant === "cover-figures" && facts.figures.length < 2) return "the deck has no row of headline numbers";
962
- if (variant === "closing-statement" && slide.blocks.some((b) => ["kpi-table", "image"].includes(b.type))) return "a statement closing has no table or image";
963
- return true;
964
- }
965
-
966
- /**
967
- * The variant of a cover, section or closing: the one the source names when the pack lists it and
968
- * it can be drawn, else the pack's first that can. A generic name (cover, section, closing) asks
969
- * for the pack's own first choice.
970
- */
971
- function chooseVariant(kind, named, pack, facts, slide, notes) {
972
- const list = pack[kind === "cover" ? "covers" : kind === "section" ? "sections" : "closings"] || [];
973
- const n = slide.index + 1;
974
- if (named && list.includes(named)) {
975
- const why = variantApplies(named, facts, slide);
976
- if (why === true) return named;
977
- notes.push(`slide ${n}: ${named} cannot be drawn (${why})`);
978
- } else if (named && !["cover", "section", "closing"].includes(named)) {
979
- notes.push(`slide ${n}: ${named} is not a ${pack.id} ${kind} variant (${list.join(", ")})`);
980
- }
981
- const pick = list.find((v) => v !== named && variantApplies(v, facts, slide) === true);
982
- if (!pick) throw new Error(`Slide ${n}: no ${pack.id} ${kind} variant (${list.join(", ")}) can be drawn here`);
983
- if (named) notes.push(`slide ${n}: drawn as ${pick}`);
984
- return pick;
985
- }
986
-
987
- /**
988
- * Resolve every slide of a deck against a tonality pack: its family, the title treatments it may
989
- * take (the pack's role default first, then the others the family allows; the renderer picks among
990
- * them by fill and the variance dial), the treatment geometry inputs and its content in reading
991
- * order. Notes go to the build log.
992
- */
993
- function resolvePack(ast, templateObj) {
994
- const pack = templateObj.pack;
995
- const sizes = pack.tok.sizes;
996
- const decoration = new Set(pack.decoration || []);
997
- const notes = [];
998
- const [FIGURE, TABLE] = captionPrefixes(ast);
999
- const numbering = { figure: 0, table: 0, FIGURE, TABLE };
1000
- const facts = deckFacts(ast);
1001
- const families = pack["layout-families"] || [];
1002
- const wide = { title: (t) => grid.faceWidth(pack.faces.title, t), display: (t) => grid.faceWidth(pack.faces.display, t) };
1003
- let part = 0;
1004
-
1005
- const slides = ast.slides.map((slide) => {
1006
- const n = slide.index + 1;
1007
- const meta = slide.meta || {};
1008
- const fam = grid.resolveFamily(slide.layout, n);
1009
- const kind = fam.kind === "free" ? "content" : fam.kind;
1010
- const allowed = PACK_BLOCKS[kind];
1011
- for (const block of slide.blocks) {
1012
- if (["box", "shape", "columns"].includes(block.type) || allowed.has(block.type)) continue;
1013
- throw new Error(`Slide ${n} (layout: ${slide.layout}): block type "${block.type}" is not allowed on a ${kind} slide. ` +
1014
- `Allowed: ${[...allowed].join(", ")}`);
1015
- }
1016
- const titleBlock = slide.blocks.find((b) => b.type === "title");
1017
- const title = titleBlock ? titleBlock.content : "";
1018
- const lead = slide.blocks.find((b) => b.type === "key-message");
1019
- const placements = slide.blocks
1020
- .filter((b) => b.type === "box" || b.type === "shape")
1021
- .map(({ type, ...rest }) => ({ kind: type === "shape" ? "shape" : "box", ...rest }));
1022
- const base = { index: slide.index, layout: slide.layout, kind, title, lead: lead ? lead.content : null, placements, blocks: slide.blocks, meta, regions: {} };
1023
-
1024
- if (kind === "cover" || kind === "section") {
1025
- if (meta.title) throw new Error(`Slide ${n}: a ${kind} slide takes its variant's title, not "title: ${meta.title}"`);
1026
- const variant = chooseVariant(kind, fam.family || fam.legacyLayout, pack, facts, slide, notes);
1027
- let parts = null;
1028
- if (kind === "section") {
1029
- // A section numbers itself by its place in the deck's agenda when its title is an agenda
1030
- // entry (or that entry's description); otherwise it counts the sections so far.
1031
- const at = indexOf(facts, plain(title));
1032
- part = at >= 0 ? at + 1 : part + 1;
1033
- parts = at >= 0 ? facts.index.length : null;
1034
- }
1035
- const ownImage = slide.blocks.find((b) => b.type === "image");
1036
- const cover = { ...facts, image: kind === "section" && ownImage ? { src: ownImage.src, caption: ownImage.caption } : facts.image };
1037
- const contents = kind === "section" ? sectionContents(ast, slide.index) : [];
1038
- const digest = kind === "section" ? sectionDigest(ast, slide.index) : [];
1039
- return { ...base, family: variant, variant, part, parts, cover, contents, digest, regions: { title: { content: title } } };
1040
- }
1041
-
1042
- let family = fam.family === "free" ? "text-column" : fam.family;
1043
- let role = family === "comparison" ? comparisonRole(slide.blocks) : fam.role;
1044
- if (grid.VARIANTS.closing.includes(family) || fam.legacyLayout === "closing") {
1045
- family = chooseVariant("closing", fam.legacyLayout === "closing" ? "closing" : family, pack, facts, slide, notes);
1046
- role = family === "closing-statement" ? "statement" : "content";
1047
- } else if (!families.includes(family)) {
1048
- notes.push(`slide ${n}: ${family} is not a ${pack.id} layout family (${families.join(", ")}); drawn with its own geometry`);
1049
- }
1050
- const items = packItems(slide.blocks, numbering, CHART_FAMILIES.has(family));
1051
- const paras = slide.blocks.filter((b) => b.type === "body").flatMap((b) => b.items || []);
1052
- // A closing is not part of a section, so it never carries the part number.
1053
- const closing = grid.VARIANTS.closing.includes(family);
1054
- // An agenda numbers its own rows: a count beside its title reads as a stray section number (spec-v2 Amendments 8).
1055
- const numeral = family === "agenda" ? null : part > 0 && !closing ? part : null;
1056
- const ctx = { grid: pack.grid, sizes, title: plain(title), hero: pack.hero, decoration, numeral, rail: pack.rail, wide, tight: Boolean((pack.tok || {}).tight) };
1057
- const facts1 = slideFacts(slide.blocks);
1058
- // A quote under a statement title says the quote; the source line becomes the support line.
1059
- let statementText = null;
1060
- let supportText = null;
1061
- if (family === "quote") {
1062
- const texts = paras.filter((i) => i.type === "text").map((i) => plain(i.text));
1063
- const by = texts.find((t) => /^[—–-]\s*/u.test(t));
1064
- statementText = texts.filter((t) => t !== by).join(" ") || null;
1065
- supportText = by || null;
1066
- }
1067
- const applicable = (t) => {
1068
- const c = t === "statement" && statementText ? { ...ctx, title: statementText } : ctx;
1069
- const f = t === "statement" && family === "quote" ? { ...facts1, textBlocks: 1 } : facts1;
1070
- return grid.treatmentApplies(t, f, c);
1071
- };
1072
- let allow = grid.familyAllows(family);
1073
- let treatment;
1074
- // A statement, a quote and a closing statement sit in the display zone in every pack (the shared
1075
- // slide grid): the statement title is theirs whether or not the pack lists it among its treatments.
1076
- const display = DISPLAY_FAMILIES.has(family) && !meta.title && applicable("statement") === true;
1077
- if (display) {
1078
- treatment = "statement";
1079
- } else if (!families.includes(family) && !meta.title && !pack.treatments.some((t) => allow.includes(t) && applicable(t) === true)) {
1080
- // A family from outside the pack that takes none of its titles gets the pack's title for its role.
1081
- allow = [pack["role-defaults"][role] || pack.treatments[0], ...grid.familyAllows("text-column")];
1082
- treatment = pack.treatments.find((t) => allow.includes(t) && applicable(t) === true) || allow[0];
1083
- notes.push(`slide ${n}: the ${family} family takes none of the ${pack.id} titles; drawn under ${treatment}`);
1084
- } else {
1085
- treatment = grid.pickTreatment({
1086
- pack, family, role, override: meta.title, slideNumber: n, used: new Set(), max: Infinity,
1087
- applicable, onNote: (note) => notes.push(note),
1088
- });
1089
- }
1090
- const candidates = meta.title || display ? [treatment] : [treatment, ...pack.treatments.filter((t) =>
1091
- t !== treatment && allow.includes(t) && !["statement", "overlay"].includes(t) && applicable(t) === true)];
1092
- return {
1093
- ...base,
1094
- family,
1095
- role,
1096
- treatment,
1097
- candidates,
1098
- ctx,
1099
- statementText,
1100
- supportText,
1101
- items,
1102
- regions: { title: { content: title } },
1103
- };
1104
- });
1105
-
1106
- return { deck: { ...ast.deck }, slides, notes };
1107
- }
1108
-
1109
- // ---------------------------------------------------------------------------
1110
- // Exports
1111
- // ---------------------------------------------------------------------------
1112
-
1113
- module.exports = { resolve, extractContent, looksLikeKpi };